diff --git a/.clang-format b/.clang-format deleted file mode 100644 index dc371319..00000000 --- a/.clang-format +++ /dev/null @@ -1,14 +0,0 @@ -BasedOnStyle: Google -IndentWidth: 4 -ColumnLimit: 150 -AccessModifierOffset: -2 -TabWidth: 4 -NamespaceIndentation: All -UseTab: ForContinuationAndIndentation -AllowShortEnumsOnASingleLine: true -AllowShortCaseLabelsOnASingleLine: true -AllowShortFunctionsOnASingleLine: true -AllowShortIfStatementsOnASingleLine: true -Cpp11BracedListStyle: true -PackConstructorInitializers: BinPack -AlignAfterOpenBracket: BlockIndent diff --git a/.github/Alber.desktop b/.github/Alber.desktop deleted file mode 100644 index 01e639cf..00000000 --- a/.github/Alber.desktop +++ /dev/null @@ -1,15 +0,0 @@ -[Desktop Entry] -Version=1.0 -Type=Application -Name=Alber -GenericName=3DS Emulator -GenericName[fr]=Émulateur 3DS -Comment=Nintendo 3DS video game console emulator -Comment[fr]=Émulateur de console de jeu Nintendo 3DS -Icon=Alber -TryExec=Alber -Exec=Alber %f -Categories=Game;Emulator; -MimeType=application/x-ctr-3dsx;application/x-ctr-cci;application/x-ctr-cia;application/x-ctr-cxi; -Keywords=3DS;Nintendo; -PrefersNonDefaultGPU=true diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index da32523a..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -patreon: wheremyfoodat -ko_fi: wheremyfoodat \ No newline at end of file diff --git a/.github/gles.patch b/.github/gles.patch deleted file mode 100644 index f1dc2c73..00000000 --- a/.github/gles.patch +++ /dev/null @@ -1,280 +0,0 @@ -diff --git a/src/core/renderer_gl/renderer_gl.cpp b/src/core/renderer_gl/renderer_gl.cpp -index a11a6ffa..77486a09 100644 ---- a/src/core/renderer_gl/renderer_gl.cpp -+++ b/src/core/renderer_gl/renderer_gl.cpp -@@ -357,27 +357,27 @@ void RendererGL::bindTexturesToSlots() { - } - - glActiveTexture(GL_TEXTURE0 + 3); -- glBindTexture(GL_TEXTURE_1D_ARRAY, lightLUTTextureArray); -+ // glBindTexture(GL_TEXTURE_1D_ARRAY, lightLUTTextureArray); - glActiveTexture(GL_TEXTURE0); - } - - void RendererGL::updateLightingLUT() { -- gpu.lightingLUTDirty = false; -- std::array u16_lightinglut; -- -- for (int i = 0; i < gpu.lightingLUT.size(); i++) { -- uint64_t value = gpu.lightingLUT[i] & ((1 << 12) - 1); -- u16_lightinglut[i] = value * 65535 / 4095; -- } -- -- glActiveTexture(GL_TEXTURE0 + 3); -- glBindTexture(GL_TEXTURE_1D_ARRAY, lightLUTTextureArray); -- glTexImage2D(GL_TEXTURE_1D_ARRAY, 0, GL_R16, 256, Lights::LUT_Count, 0, GL_RED, GL_UNSIGNED_SHORT, u16_lightinglut.data()); -- glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_MIN_FILTER, GL_LINEAR); -- glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_MAG_FILTER, GL_LINEAR); -- glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); -- glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); -- glActiveTexture(GL_TEXTURE0); -+ // gpu.lightingLUTDirty = false; -+ // std::array u16_lightinglut; -+ -+ // for (int i = 0; i < gpu.lightingLUT.size(); i++) { -+ // uint64_t value = gpu.lightingLUT[i] & ((1 << 12) - 1); -+ // u16_lightinglut[i] = value * 65535 / 4095; -+ // } -+ -+ // glActiveTexture(GL_TEXTURE0 + 3); -+ // glBindTexture(GL_TEXTURE_1D_ARRAY, lightLUTTextureArray); -+ // glTexImage2D(GL_TEXTURE_1D_ARRAY, 0, GL_R16, 256, Lights::LUT_Count, 0, GL_RED, GL_UNSIGNED_SHORT, u16_lightinglut.data()); -+ // glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_MIN_FILTER, GL_LINEAR); -+ // glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_MAG_FILTER, GL_LINEAR); -+ // glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); -+ // glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); -+ // glActiveTexture(GL_TEXTURE0); - } - - void RendererGL::drawVertices(PICA::PrimType primType, std::span vertices) { -diff --git a/src/host_shaders/opengl_display.frag b/src/host_shaders/opengl_display.frag -index 612671c8..1937f711 100644 ---- a/src/host_shaders/opengl_display.frag -+++ b/src/host_shaders/opengl_display.frag -@@ -1,4 +1,5 @@ --#version 410 core -+#version 300 es -+precision mediump float; - in vec2 UV; - out vec4 FragColor; - -diff --git a/src/host_shaders/opengl_display.vert b/src/host_shaders/opengl_display.vert -index 990e2f80..2e7842ac 100644 ---- a/src/host_shaders/opengl_display.vert -+++ b/src/host_shaders/opengl_display.vert -@@ -1,4 +1,5 @@ --#version 410 core -+#version 300 es -+precision mediump float; - out vec2 UV; - - void main() { -diff --git a/src/host_shaders/opengl_fragment_shader.frag b/src/host_shaders/opengl_fragment_shader.frag -index f6fa6c55..bb88e278 100644 ---- a/src/host_shaders/opengl_fragment_shader.frag -+++ b/src/host_shaders/opengl_fragment_shader.frag -@@ -1,4 +1,5 @@ --#version 410 core -+#version 300 es -+precision mediump float; - - in vec3 v_tangent; - in vec3 v_normal; -@@ -27,7 +28,7 @@ uniform bool u_depthmapEnable; - uniform sampler2D u_tex0; - uniform sampler2D u_tex1; - uniform sampler2D u_tex2; --uniform sampler1DArray u_tex_lighting_lut; -+// uniform sampler1DArray u_tex_lighting_lut; - - uniform uint u_picaRegs[0x200 - 0x48]; - -@@ -145,16 +146,23 @@ vec4 tevCalculateCombiner(int tev_id) { - #define RR_LUT 6u - - float lutLookup(uint lut, uint light, float value) { -- if (lut >= FR_LUT && lut <= RR_LUT) lut -= 1; -- if (lut == SP_LUT) lut = light + 8; -- return texture(u_tex_lighting_lut, vec2(value, lut)).r; -+ // if (lut >= FR_LUT && lut <= RR_LUT) lut -= 1; -+ // if (lut == SP_LUT) lut = light + 8; -+ // return texture(u_tex_lighting_lut, vec2(value, lut)).r; -+ return 0.0; -+} -+ -+// some gles versions have bitfieldExtract and complain if you redefine it, some don't and compile error, using this instead -+uint bitfieldExtractCompat(uint val, int off, int size) { -+ uint mask = uint((1 << size) - 1); -+ return uint(val >> off) & mask; - } - - vec3 regToColor(uint reg) { - // Normalization scale to convert from [0...255] to [0.0...1.0] - const float scale = 1.0 / 255.0; - -- return scale * vec3(float(bitfieldExtract(reg, 20, 8)), float(bitfieldExtract(reg, 10, 8)), float(bitfieldExtract(reg, 00, 8))); -+ return scale * vec3(float(bitfieldExtractCompat(reg, 20, 8)), float(bitfieldExtractCompat(reg, 10, 8)), float(bitfieldExtractCompat(reg, 00, 8))); - } - - // Convert an arbitrary-width floating point literal to an f32 -@@ -189,7 +197,7 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - vec3 view = normalize(v_view); - - uint GPUREG_LIGHTING_ENABLE = readPicaReg(0x008Fu); -- if (bitfieldExtract(GPUREG_LIGHTING_ENABLE, 0, 1) == 0u) { -+ if (bitfieldExtractCompat(GPUREG_LIGHTING_ENABLE, 0, 1) == 0u) { - primary_color = secondary_color = vec4(1.0); - return; - } -@@ -213,7 +221,7 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - bool error_unimpl = false; - - for (uint i = 0u; i < GPUREG_LIGHTING_NUM_LIGHTS; i++) { -- uint light_id = bitfieldExtract(GPUREG_LIGHTING_LIGHT_PERMUTATION, int(i * 3u), 3); -+ uint light_id = bitfieldExtractCompat(GPUREG_LIGHTING_LIGHT_PERMUTATION, int(i * 3u), 3); - - uint GPUREG_LIGHTi_SPECULAR0 = readPicaReg(0x0140u + 0x10u * light_id); - uint GPUREG_LIGHTi_SPECULAR1 = readPicaReg(0x0141u + 0x10u * light_id); -@@ -224,14 +232,14 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - uint GPUREG_LIGHTi_CONFIG = readPicaReg(0x0149u + 0x10u * light_id); - - vec3 light_vector = normalize(vec3( -- decodeFP(bitfieldExtract(GPUREG_LIGHTi_VECTOR_LOW, 0, 16), 5u, 10u), decodeFP(bitfieldExtract(GPUREG_LIGHTi_VECTOR_LOW, 16, 16), 5u, 10u), -- decodeFP(bitfieldExtract(GPUREG_LIGHTi_VECTOR_HIGH, 0, 16), 5u, 10u) -+ decodeFP(bitfieldExtractCompat(GPUREG_LIGHTi_VECTOR_LOW, 0, 16), 5u, 10u), decodeFP(bitfieldExtractCompat(GPUREG_LIGHTi_VECTOR_LOW, 16, 16), 5u, 10u), -+ decodeFP(bitfieldExtractCompat(GPUREG_LIGHTi_VECTOR_HIGH, 0, 16), 5u, 10u) - )); - - vec3 half_vector; - - // Positional Light -- if (bitfieldExtract(GPUREG_LIGHTi_CONFIG, 0, 1) == 0u) { -+ if (bitfieldExtractCompat(GPUREG_LIGHTi_CONFIG, 0, 1) == 0u) { - // error_unimpl = true; - half_vector = normalize(normalize(light_vector + v_view) + view); - } -@@ -242,12 +250,12 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - } - - for (int c = 0; c < 7; c++) { -- if (bitfieldExtract(GPUREG_LIGHTING_CONFIG1, 16 + c, 1) == 0u) { -- uint scale_id = bitfieldExtract(GPUREG_LIGHTING_LUTINPUT_SCALE, c * 4, 3); -+ if (bitfieldExtractCompat(GPUREG_LIGHTING_CONFIG1, 16 + c, 1) == 0u) { -+ uint scale_id = bitfieldExtractCompat(GPUREG_LIGHTING_LUTINPUT_SCALE, c * 4, 3); - float scale = float(1u << scale_id); - if (scale_id >= 6u) scale /= 256.0; - -- uint input_id = bitfieldExtract(GPUREG_LIGHTING_LUTINPUT_SELECT, c * 4, 3); -+ uint input_id = bitfieldExtractCompat(GPUREG_LIGHTING_LUTINPUT_SELECT, c * 4, 3); - if (input_id == 0u) - d[c] = dot(normal, half_vector); - else if (input_id == 1u) -@@ -260,9 +268,9 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - uint GPUREG_LIGHTi_SPOTDIR_LOW = readPicaReg(0x0146u + 0x10u * light_id); - uint GPUREG_LIGHTi_SPOTDIR_HIGH = readPicaReg(0x0147u + 0x10u * light_id); - vec3 spot_light_vector = normalize(vec3( -- decodeFP(bitfieldExtract(GPUREG_LIGHTi_SPOTDIR_LOW, 0, 16), 1u, 11u), -- decodeFP(bitfieldExtract(GPUREG_LIGHTi_SPOTDIR_LOW, 16, 16), 1u, 11u), -- decodeFP(bitfieldExtract(GPUREG_LIGHTi_SPOTDIR_HIGH, 0, 16), 1u, 11u) -+ decodeFP(bitfieldExtractCompat(GPUREG_LIGHTi_SPOTDIR_LOW, 0, 16), 1u, 11u), -+ decodeFP(bitfieldExtractCompat(GPUREG_LIGHTi_SPOTDIR_LOW, 16, 16), 1u, 11u), -+ decodeFP(bitfieldExtractCompat(GPUREG_LIGHTi_SPOTDIR_HIGH, 0, 16), 1u, 11u) - )); - d[c] = dot(-light_vector, spot_light_vector); // -L dot P (aka Spotlight aka SP); - } else if (input_id == 5u) { -@@ -273,13 +281,13 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - } - - d[c] = lutLookup(uint(c), light_id, d[c] * 0.5 + 0.5) * scale; -- if (bitfieldExtract(GPUREG_LIGHTING_LUTINPUT_ABS, 2 * c, 1) != 0u) d[c] = abs(d[c]); -+ if (bitfieldExtractCompat(GPUREG_LIGHTING_LUTINPUT_ABS, 2 * c, 1) != 0u) d[c] = abs(d[c]); - } else { - d[c] = 1.0; - } - } - -- uint lookup_config = bitfieldExtract(GPUREG_LIGHTi_CONFIG, 4, 4); -+ uint lookup_config = bitfieldExtractCompat(GPUREG_LIGHTi_CONFIG, 4, 4); - if (lookup_config == 0u) { - d[D1_LUT] = 0.0; - d[FR_LUT] = 0.0; -@@ -310,7 +318,7 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - float NdotL = dot(normal, light_vector); // Li dot N - - // Two sided diffuse -- if (bitfieldExtract(GPUREG_LIGHTi_CONFIG, 1, 1) == 0u) -+ if (bitfieldExtractCompat(GPUREG_LIGHTi_CONFIG, 1, 1) == 0u) - NdotL = max(0.0, NdotL); - else - NdotL = abs(NdotL); -@@ -321,8 +329,8 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - secondary_color.rgb += light_factor * (regToColor(GPUREG_LIGHTi_SPECULAR0) * d[D0_LUT] + - regToColor(GPUREG_LIGHTi_SPECULAR1) * d[D1_LUT] * vec3(d[RR_LUT], d[RG_LUT], d[RB_LUT])); - } -- uint fresnel_output1 = bitfieldExtract(GPUREG_LIGHTING_CONFIG0, 2, 1); -- uint fresnel_output2 = bitfieldExtract(GPUREG_LIGHTING_CONFIG0, 3, 1); -+ uint fresnel_output1 = bitfieldExtractCompat(GPUREG_LIGHTING_CONFIG0, 2, 1); -+ uint fresnel_output2 = bitfieldExtractCompat(GPUREG_LIGHTING_CONFIG0, 3, 1); - - if (fresnel_output1 == 1u) primary_color.a = d[FR_LUT]; - if (fresnel_output2 == 1u) secondary_color.a = d[FR_LUT]; -diff --git a/src/host_shaders/opengl_vertex_shader.vert b/src/host_shaders/opengl_vertex_shader.vert -index a25d7a6d..7cf40398 100644 ---- a/src/host_shaders/opengl_vertex_shader.vert -+++ b/src/host_shaders/opengl_vertex_shader.vert -@@ -1,4 +1,6 @@ --#version 410 core -+#version 300 es -+precision mediump float; -+precision mediump int; - - layout(location = 0) in vec4 a_coords; - layout(location = 1) in vec4 a_quaternion; -@@ -20,7 +22,7 @@ out vec2 v_texcoord2; - flat out vec4 v_textureEnvColor[6]; - flat out vec4 v_textureEnvBufferColor; - --out float gl_ClipDistance[2]; -+// out float gl_ClipDistance[2]; - - // TEV uniforms - uniform uint u_textureEnvColor[6]; -@@ -93,6 +95,6 @@ void main() { - ); - - // There's also another, always-on clipping plane based on vertex z -- gl_ClipDistance[0] = -a_coords.z; -- gl_ClipDistance[1] = dot(clipData, a_coords); -+ // gl_ClipDistance[0] = -a_coords.z; -+ // gl_ClipDistance[1] = dot(clipData, a_coords); - } -diff --git a/third_party/opengl/opengl.hpp b/third_party/opengl/opengl.hpp -index f368f573..5ead7f63 100644 ---- a/third_party/opengl/opengl.hpp -+++ b/third_party/opengl/opengl.hpp -@@ -520,21 +520,21 @@ namespace OpenGL { - static void enableBlend() { glEnable(GL_BLEND); } - static void disableBlend() { glDisable(GL_BLEND); } - static void enableLogicOp() { glEnable(GL_COLOR_LOGIC_OP); } -- static void disableLogicOp() { glDisable(GL_COLOR_LOGIC_OP); } -+ static void disableLogicOp() { /* glDisable(GL_COLOR_LOGIC_OP); */ } - static void enableDepth() { glEnable(GL_DEPTH_TEST); } - static void disableDepth() { glDisable(GL_DEPTH_TEST); } - static void enableStencil() { glEnable(GL_STENCIL_TEST); } - static void disableStencil() { glDisable(GL_STENCIL_TEST); } - -- static void enableClipPlane(GLuint index) { glEnable(GL_CLIP_DISTANCE0 + index); } -- static void disableClipPlane(GLuint index) { glDisable(GL_CLIP_DISTANCE0 + index); } -+ static void enableClipPlane(GLuint index) { /* glEnable(GL_CLIP_DISTANCE0 + index); */ } -+ static void disableClipPlane(GLuint index) { /* glDisable(GL_CLIP_DISTANCE0 + index); */ } - - static void setDepthFunc(DepthFunc func) { glDepthFunc(static_cast(func)); } - static void setColourMask(GLboolean r, GLboolean g, GLboolean b, GLboolean a) { glColorMask(r, g, b, a); } - static void setDepthMask(GLboolean mask) { glDepthMask(mask); } - - // TODO: Add a proper enum for this -- static void setLogicOp(GLenum op) { glLogicOp(op); } -+ static void setLogicOp(GLenum op) { /* glLogicOp(op); */ } - - enum Primitives { - Triangle = GL_TRIANGLES, diff --git a/.github/linux-appimage-qt.sh b/.github/linux-appimage-qt.sh deleted file mode 100644 index 075379fc..00000000 --- a/.github/linux-appimage-qt.sh +++ /dev/null @@ -1,9 +0,0 @@ -# Prepare Tools for building the AppImage -wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage - -chmod a+x linuxdeploy-x86_64.AppImage -chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage - -# Build AppImage -QMAKE=/usr/lib/qt6/bin/qmake ./linuxdeploy-x86_64.AppImage --appdir AppDir -d ./.github/Alber.desktop -e ./build/Alber -i ./docs/img/Alber.png --plugin qt --output appimage diff --git a/.github/linux-appimage.sh b/.github/linux-appimage.sh deleted file mode 100755 index 218f1c2b..00000000 --- a/.github/linux-appimage.sh +++ /dev/null @@ -1,6 +0,0 @@ -# Prepare Tools for building the AppImage -wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -chmod a+x linuxdeploy-x86_64.AppImage - -# Build AppImage -./linuxdeploy-x86_64.AppImage --appdir AppDir -d ./.github/Alber.desktop -e ./build/Alber -i ./docs/img/Alber.png --output appimage diff --git a/.github/mac-bundle-qt.sh b/.github/mac-bundle-qt.sh deleted file mode 100644 index e18be8a5..00000000 --- a/.github/mac-bundle-qt.sh +++ /dev/null @@ -1,52 +0,0 @@ -# Taken from pcsx-redux create-app-bundle.sh -# For Plist buddy -PATH="$PATH:/usr/libexec" - - -# Construct the app iconset. -mkdir alber.iconset -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 16x16 alber.iconset/icon_16x16.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 32x32 alber.iconset/icon_16x16@2x.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 32x32 alber.iconset/icon_32x32.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 64x64 alber.iconset/icon_32x32@2x.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 128x128 alber.iconset/icon_128x128.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 256x256 alber.iconset/icon_128x128@2x.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 256x256 alber.iconset/icon_256x256.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 512x512 alber.iconset/icon_256x256@2x.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 512x512 alber.iconset/icon_512x512.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 1024x1024 alber.iconset/icon_512x512@2x.png -iconutil --convert icns alber.iconset - -# Set up the .app directory -mkdir -p Alber.app/Contents/MacOS/Libraries -mkdir Alber.app/Contents/Resources - - -# Copy binary into App -cp ./build/Alber Alber.app/Contents/MacOS/Alber -chmod a+x Alber.app/Contents/Macos/Alber - -# Copy icons into App -cp alber.icns Alber.app/Contents/Resources/AppIcon.icns - -# Fix up Plist stuff -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleDisplayName string Alber" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleIconName string AppIcon" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleIconFile string AppIcon" -PlistBuddy Alber.app/Contents/Info.plist -c "add NSHighResolutionCapable bool true" -PlistBuddy Alber.app/Contents/version.plist -c "add ProjectName string Alber" - -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleExecutable string Alber" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleDevelopmentRegion string en" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleInfoDictionaryVersion string 6.0" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleName string Panda3DS" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundlePackageType string APPL" -PlistBuddy Alber.app/Contents/Info.plist -c "add NSHumanReadableCopyright string Copyright 2023 Panda3DS Team" - -PlistBuddy Alber.app/Contents/Info.plist -c "add LSMinimumSystemVersion string 10.15" - -# Bundle dylibs -ruby .github/mac-libs.rb ./build/ - -# relative rpath -install_name_tool -add_rpath @loader_path/../Frameworks Alber.app/Contents/MacOS/Alber diff --git a/.github/mac-bundle.sh b/.github/mac-bundle.sh deleted file mode 100755 index 314b30f7..00000000 --- a/.github/mac-bundle.sh +++ /dev/null @@ -1,52 +0,0 @@ -# Taken from pcsx-redux create-app-bundle.sh -# For Plist buddy -PATH="$PATH:/usr/libexec" - - -# Construct the app iconset. -mkdir alber.iconset -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 16x16 alber.iconset/icon_16x16.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 32x32 alber.iconset/icon_16x16@2x.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 32x32 alber.iconset/icon_32x32.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 64x64 alber.iconset/icon_32x32@2x.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 128x128 alber.iconset/icon_128x128.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 256x256 alber.iconset/icon_128x128@2x.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 256x256 alber.iconset/icon_256x256.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 512x512 alber.iconset/icon_256x256@2x.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 72 -resize 512x512 alber.iconset/icon_512x512.png -convert docs/img/alber-icon.ico -alpha on -background none -units PixelsPerInch -density 144 -resize 1024x1024 alber.iconset/icon_512x512@2x.png -iconutil --convert icns alber.iconset - -# Set up the .app directory -mkdir -p Alber.app/Contents/MacOS/Libraries -mkdir Alber.app/Contents/Resources - - -# Copy binary into App -cp ./build/Alber Alber.app/Contents/MacOS/Alber -chmod a+x Alber.app/Contents/Macos/Alber - -# Copy icons into App -cp alber.icns Alber.app/Contents/Resources/AppIcon.icns - -# Fix up Plist stuff -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleDisplayName string Alber" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleIconName string AppIcon" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleIconFile string AppIcon" -PlistBuddy Alber.app/Contents/Info.plist -c "add NSHighResolutionCapable bool true" -PlistBuddy Alber.app/Contents/version.plist -c "add ProjectName string Alber" - -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleExecutable string Alber" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleDevelopmentRegion string en" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleInfoDictionaryVersion string 6.0" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundleName string Panda3DS" -PlistBuddy Alber.app/Contents/Info.plist -c "add CFBundlePackageType string APPL" -PlistBuddy Alber.app/Contents/Info.plist -c "add NSHumanReadableCopyright string Copyright 2023 Panda3DS Team" - -PlistBuddy Alber.app/Contents/Info.plist -c "add LSMinimumSystemVersion string 10.15" - -# Bundle dylibs -dylibbundler -od -b -x Alber.app/Contents/MacOS/Alber -d Alber.app/Contents/Frameworks/ -p @rpath -s /Users/runner/work/Panda3DS/Panda3DS/VULKAN_SDK/lib - -# relative rpath -install_name_tool -add_rpath @loader_path/../Frameworks Alber.app/Contents/MacOS/Alber diff --git a/.github/mac-libs.rb b/.github/mac-libs.rb deleted file mode 100644 index d0c83a5b..00000000 --- a/.github/mac-libs.rb +++ /dev/null @@ -1,255 +0,0 @@ -#!/usr/bin/env ruby - -require "open3" -require "fileutils" - -$app_name = "Alber" -$build_dmg = false -$build_dir = "" -$bundle = "" -$fallback_rpaths = [] - -def frameworks_dir - File.join($bundle, "Contents", "Frameworks") -end - -def executable - File.join($bundle, "Contents", "MacOS", $app_name) -end - -def get_rpaths(lib) - out, _ = Open3.capture2("otool", "-l", lib) - out = out.split("\n") - rpaths = [] - - out.each_with_index do |line, i| - if line.match(/^ *cmd LC_RPATH$/) - rpaths << out[i + 2].strip.split(" ")[1] - end - end - - return rpaths -end - -def get_load_libs(lib) - out, _ = Open3.capture2("otool", "-L", lib) - out.split("\n") - .drop(1) - .map { |it| it.strip.gsub(/ \(.*/, "") } -end - -def expand_load_path(lib, path) - if path.match(/@(rpath|loader_path|executable_path)/) - path_type = $1 - file_name = path.gsub(/^@#{path_type}\//, "") - - case path_type - when "rpath" - get_rpaths(lib).each do |rpath| - file = File.join(rpath, file_name) - return file, :rpath if File.exist? file - if rpath.match(/^@executable_path(.*)/) != nil - relative = rpath.sub(/^@executable_path/, "") - return "#{$bundle}/Contents/MacOS#{relative}/#{file_name}", :executable_path - end - end - file = $fallback_rpaths - .map { |it| File.join(it, file_name) } - .find { |it| File.exist? it } - if file == nil - path = File.join(File.dirname(lib), file_name) - file = path if File.exist? path - end - return file, :rpath if file - when "executable_path" - file = File.join(File.dirname(executable), file_name) - return file, :executable_path if File.exist? file - when "loader_path" - file = File.join(File.dirname(lib), file_name) - return file, :loader_path if File.exist? file - else - throw "Unknown @path type" - end - else - return File.absolute_path(path), :absolute - end - - return nil -end - -def system_path?(path) - path.match(/^\/usr\/lib|^\/System/) != nil -end - -def system_lib?(lib) - system_path? File.dirname(lib) -end - -def install_name_tool(exec, action, path1, path2 = nil) - args = ["-#{action.to_s}", path1] - args << path2 if path2 != nil - - Open3.popen3("install_name_tool", *args, exec) do |stdin, stdout, stderr, thread| - print stdout.read - err = stderr.read - unless err.match? "code signature" - print err - end - end -end - -def strip(lib) - out, _ = Open3.capture2("strip", "-no_code_signature_warning", "-Sx", lib) - print out -end - -def fixup_libs(prog, orig_path) - throw "fixup_libs: #{prog} doesn't exist" unless File.exist? prog - - libs = get_load_libs(prog).map { |it| expand_load_path(orig_path, it) }.select { |it| not system_lib? it[0] } - - FileUtils.chmod("u+w", prog) - strip prog - - libs.each do |lib| - libpath, libtype = lib - if File.basename(libpath) == File.basename(prog) - if libtype == :absolute - install_name_tool prog, :change, libpath, File.join("@rpath", File.basename(libpath)) - end - next - end - - framework = libpath.match(/(.*).framework/) - framework = framework.to_s if framework - - if framework - fwlib = libpath.sub(framework + "/", "") - fwname = File.basename(framework) - - unless libtype == :rpath - install_name_tool prog, :change, libpath, File.join("@rpath", fwname, fwlib) - end - - next if File.exist? File.join(frameworks_dir, fwname) - expath, _ = expand_load_path(orig_path, framework) - FileUtils.cp_r(expath, frameworks_dir, preserve: true) - FileUtils.chmod_R("u+w", File.join(frameworks_dir, fwname)) - fixup_libs File.join(frameworks_dir, fwname, fwlib), libpath - else - libname = File.basename(libpath) - dest = File.join(frameworks_dir, libname) - - if libtype == :absolute - install_name_tool prog, :change, libpath, File.join("@rpath", libname) - end - - next if File.exist? dest - expath, _ = expand_load_path(orig_path, libpath) - FileUtils.copy expath, frameworks_dir - FileUtils.chmod("u+w", dest) - fixup_libs dest, libpath - end - end -end - -if ARGV[0] == "--dmg" - $build_dmg = true - ARGV.shift -end - -if ARGV.length != 1 - puts "Usage: #{Process.argv0} [--dmg] " - return -end - -$build_dir = ARGV[0] -unless File.exist? $build_dir - puts "#{$build_dir} doesn't exist" -end - - -$bundle = "#{$app_name}.app" - -unless File.exist? $bundle and File.exist? File.join($build_dir, "CMakeCache.txt") - puts "#{$build_dir} doesn't look like a valid build directory" - exit 1 -end - -File.read(File.join($build_dir, "CMakeCache.txt")) - .split("\n") - .find { |it| it.match /Qt(.)_DIR:PATH=(.*)/ } - -qt_major = $1 -qt_dir = $2 -qt_dir = File.absolute_path("#{qt_dir}/../../..") - -for lib in get_load_libs(executable) do - next if system_lib? lib - - path = File.dirname(lib) - - if path.match? ".framework" - path = path.sub(/\/[^\/]+\.framework.*/, "") - end - - $fallback_rpaths << path unless $fallback_rpaths.include? path -end - -$fallback_rpaths << File.join(qt_dir, "lib") - -plugin_paths = [ - File.join(qt_dir, "libexec", "qt#{qt_major}", "plugins"), - File.join(qt_dir, "plugins"), - File.join(qt_dir, "share", "qt", "plugins") -] - -qt_plugins = plugin_paths.find { |file| File.exist? file } - -if qt_plugins == nil - puts "Couldn't find Qt plugins, tried looking for:" - plugin_paths.each { |path| puts " - #{path}" } - exit 1 -end - -FileUtils.mkdir_p(frameworks_dir) -fixup_libs(executable, executable) - -bundle_plugins = File.join($bundle, "Contents", "PlugIns") - -want_plugins = ["styles/libqmacstyle.dylib", "platforms/libqcocoa.dylib", "imageformats/libqsvg.dylib"] -want_plugins.each do |plug| - destdir = File.join(bundle_plugins, File.dirname(plug)) - FileUtils.mkdir_p(destdir) - FileUtils.copy(File.join(qt_plugins, plug), destdir) - fixup_libs File.join(bundle_plugins, plug), File.join(qt_plugins, plug) -end - -want_rpath = "@executable_path/../Frameworks" -exec_rpaths = get_rpaths(executable) -exec_rpaths.select { |path| path != want_rpath }.each do |path| - install_name_tool executable, :delete_rpath, path -end - -unless exec_rpaths.include? want_rpath - install_name_tool executable, :add_rpath, want_rpath -end - -exec_rpaths = get_rpaths(executable) - -Dir.glob("#{frameworks_dir}/**/Headers").each do |dir| - FileUtils.rm_rf dir -end - -out, _ = Open3.capture2("codesign", "-s", "-", "-f", "--deep", $bundle) -print out - -if $build_dmg - dmg_dir = File.join($build_dir, "dmg") - FileUtils.mkdir_p(dmg_dir) - FileUtils.cp_r($bundle, dmg_dir, preserve: true) - FileUtils.ln_s("/Applications", File.join(dmg_dir, "Applications")) - - `hdiutil create -fs HFS+ -volname melonDS -srcfolder "#{dmg_dir}" -ov -format UDBZ "#{$build_dir}/melonDS.dmg"` - FileUtils.rm_rf(dmg_dir) -end diff --git a/.github/workflows/Android_Build.yml b/.github/workflows/Android_Build.yml deleted file mode 100644 index 2a06a12c..00000000 --- a/.github/workflows/Android_Build.yml +++ /dev/null @@ -1,119 +0,0 @@ -name: Android Build - -on: - push: - branches: - - master - pull_request: - -jobs: - x64: - runs-on: ubuntu-latest - - strategy: - matrix: - build_type: - - release - - steps: - - name: Set BUILD_TYPE variable - run: echo "BUILD_TYPE=${{ matrix.build_type }}" >> $GITHUB_ENV - - - uses: actions/checkout@v4 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: 'zulu' - java-version: '17' - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DBUILD_HYDRA_CORE=1 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86_64 -DENABLE_VULKAN=0 -DENABLE_USER_BUILD=ON - - - name: Build - run: | - # Apply patch for GLES compatibility - git apply ./.github/gles.patch - # Build the project with CMake - cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }} - - # Strip the generated library and move it to the appropriate location - ${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --strip-unneeded ./build/libAlber.so - mv ./build/libAlber.so ./src/pandroid/app/src/main/jniLibs/x86_64/ - - # Build the Android app with Gradle - cd src/pandroid - ./gradlew assemble${{ env.BUILD_TYPE }} - cd ../.. - - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: Android APKs (x86-64) - path: | - ./src/pandroid/app/build/outputs/apk/${{ env.BUILD_TYPE }}/app-${{ env.BUILD_TYPE }}.apk - - arm64: - runs-on: ubuntu-latest - - strategy: - matrix: - build_type: - - release - - steps: - - name: Set BUILD_TYPE variable - run: echo "BUILD_TYPE=${{ matrix.build_type }}" >> $GITHUB_ENV - - - uses: actions/checkout@v4 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: 'zulu' - java-version: '17' - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DBUILD_HYDRA_CORE=1 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DENABLE_VULKAN=0 -DENABLE_USER_BUILD=ON -DCMAKE_CXX_FLAGS="-march=armv8-a+crypto" - - - name: Build - run: | - # Apply patch for GLES compatibility - git apply ./.github/gles.patch - # Build the project with CMake - cmake --build ${{github.workspace}}/build --config ${{ env.BUILD_TYPE }} - - # Strip the generated library and move it to the appropriate location - ${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --strip-unneeded ./build/libAlber.so - mv ./build/libAlber.so ./src/pandroid/app/src/main/jniLibs/arm64-v8a/ - - # Build the Android app with Gradle - cd src/pandroid - ./gradlew assemble${{ env.BUILD_TYPE }} - ls -R app/build/outputs - cd ../.. - - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: Android APKs (arm64) - path: | - ./src/pandroid/app/build/outputs/apk/${{ env.BUILD_TYPE }}/app-${{ env.BUILD_TYPE }}.apk diff --git a/.github/workflows/HTTP_Build.yml b/.github/workflows/HTTP_Build.yml deleted file mode 100644 index 7bfe9c7f..00000000 --- a/.github/workflows/HTTP_Build.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: HTTP Server Build - -on: - push: - branches: - - master - pull_request: - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Install newer Clang - run: | - wget https://apt.llvm.org/llvm.sh - chmod +x ./llvm.sh - sudo ./llvm.sh 17 - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 -DENABLE_USER_BUILD=ON -DENABLE_HTTP_SERVER=ON - - - name: Build - # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} diff --git a/.github/workflows/Hydra_Build.yml b/.github/workflows/Hydra_Build.yml deleted file mode 100644 index 3387d46d..00000000 --- a/.github/workflows/Hydra_Build.yml +++ /dev/null @@ -1,135 +0,0 @@ -name: Hydra Core Build - -on: - push: - branches: - - master - pull_request: - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - Windows: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_USER_BUILD=ON -DBUILD_HYDRA_CORE=ON - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Upload core - uses: actions/upload-artifact@v2 - with: - name: Windows core - path: '${{github.workspace}}/build/Release/Alber.dll' - - - MacOS: - runs-on: macos-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_USER_BUILD=ON -DBUILD_HYDRA_CORE=ON - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Upload core - uses: actions/upload-artifact@v2 - with: - name: MacOS core - path: '${{github.workspace}}/build/libAlber.dylib' - - Linux: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Install misc packages - run: | - sudo apt-get update && sudo apt install libx11-dev libgl1-mesa-glx mesa-common-dev libfuse2 libwayland-dev - - - name: Install newer Clang - run: | - wget https://apt.llvm.org/llvm.sh - chmod +x ./llvm.sh - sudo ./llvm.sh 17 - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 -DENABLE_USER_BUILD=ON -DBUILD_HYDRA_CORE=ON - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Upload core - uses: actions/upload-artifact@v2 - with: - name: Linux core - path: '${{github.workspace}}/build/libAlber.so' - - Android-x64: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Install misc packages - run: | - sudo apt-get update && sudo apt install libx11-dev libgl1-mesa-glx mesa-common-dev libfuse2 libwayland-dev - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86_64 -DBUILD_HYDRA_CORE=1 -DENABLE_VULKAN=0 - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Upload core - uses: actions/upload-artifact@v2 - with: - name: Android core - path: '${{github.workspace}}/build/libAlber.so' diff --git a/.github/workflows/Linux_AppImage_Build.yml b/.github/workflows/Linux_AppImage_Build.yml deleted file mode 100644 index 507187a3..00000000 --- a/.github/workflows/Linux_AppImage_Build.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Linux AppImage Build - -on: - push: - branches: - - master - pull_request: - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Install misc packages - run: sudo apt-get update && sudo apt install libx11-dev libgl1-mesa-glx mesa-common-dev libfuse2 - - - name: Install newer Clang - run: | - wget https://apt.llvm.org/llvm.sh - chmod +x ./llvm.sh - sudo ./llvm.sh 17 - - - name: Setup Vulkan SDK - run: | - wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - - sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list - sudo apt update - sudo apt install vulkan-sdk - - - name: Configure CMake - # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 -DENABLE_USER_BUILD=ON - - - name: Build - # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Run AppImage packaging script - run: ./.github/linux-appimage.sh - - - name: Upload executable - uses: actions/upload-artifact@v2 - with: - name: Linux executable - path: './Alber-x86_64.AppImage' diff --git a/.github/workflows/Linux_Build.yml b/.github/workflows/Linux_Build.yml deleted file mode 100644 index 78e5cc5a..00000000 --- a/.github/workflows/Linux_Build.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Linux Build - -on: - push: - branches: - - master - pull_request: - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Install misc packages - run: sudo apt-get update && sudo apt install libx11-dev libgl1-mesa-glx mesa-common-dev - - - name: Install newer Clang - run: | - wget https://apt.llvm.org/llvm.sh - chmod +x ./llvm.sh - sudo ./llvm.sh 17 - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 -DENABLE_USER_BUILD=ON - - - name: Build - # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Upload executable - uses: actions/upload-artifact@v2 - with: - name: Linux executable - path: './build/Alber' diff --git a/.github/workflows/MacOS_Build.yml b/.github/workflows/MacOS_Build.yml deleted file mode 100644 index b659e3fa..00000000 --- a/.github/workflows/MacOS_Build.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: MacOS Build - -on: - push: - branches: - - master - pull_request: - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: macos-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_USER_BUILD=ON - - - name: Build - # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Install bundle dependencies - run: brew install dylibbundler imagemagick - - - name: Run bundle script - run: ./.github/mac-bundle.sh - - - name: Sign the App - run: codesign --force -s - -vvvv Alber.app - - - name: Zip it up - run: zip -r Alber Alber.app - - - name: Upload MacOS App - uses: actions/upload-artifact@v2 - with: - name: MacOS Alber App Bundle - path: 'Alber.zip' diff --git a/.github/workflows/Qt_Build.yml b/.github/workflows/Qt_Build.yml deleted file mode 100644 index 0b3910d7..00000000 --- a/.github/workflows/Qt_Build.yml +++ /dev/null @@ -1,141 +0,0 @@ -name: Qt Build - -on: - push: - branches: - - master - pull_request: - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - Windows: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Setup Qt - uses: jurplel/install-qt-action@v3 - with: - arch: win64_msvc2019_64 - version: 6.2.0 - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_USER_BUILD=ON -DENABLE_QT_GUI=ON - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Deploy - run: | - mkdir upload - move build/Release/Alber.exe upload - windeployqt --dir upload upload/Alber.exe - - - name: Upload executable - uses: actions/upload-artifact@v2 - with: - name: Windows executable - path: upload - - MacOS: - runs-on: macos-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Install bundle dependencies - run: | - brew install dylibbundler imagemagick - - - name: Install qt - run: brew install qt && which macdeployqt - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_USER_BUILD=ON -DENABLE_QT_GUI=ON - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Run bundle script - run: | - chmod +x .github/mac-bundle-qt.sh - ./.github/mac-bundle-qt.sh - - - name: Sign the App - run: codesign --force -s - -vvvv Alber.app - - - name: Zip it up - run: zip -r Alber Alber.app - - - name: Upload MacOS App - uses: actions/upload-artifact@v2 - with: - name: MacOS Alber App Bundle - path: 'Alber.zip' - - Linux: - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Install misc packages - run: | - sudo apt-get update && sudo apt install libx11-dev libgl1-mesa-glx mesa-common-dev libfuse2 libwayland-dev - sudo add-apt-repository -y ppa:savoury1/qt-6-2 - sudo apt update - sudo apt install qt6-base-dev qt6-base-private-dev - - - name: Install newer Clang - run: | - wget https://apt.llvm.org/llvm.sh - chmod +x ./llvm.sh - sudo ./llvm.sh 17 - - - name: Setup Vulkan SDK - run: | - wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - - sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list - sudo apt update - sudo apt install vulkan-sdk - - - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 -DENABLE_USER_BUILD=ON -DENABLE_QT_GUI=ON - - - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Run AppImage packaging script - run: | - chmod +x .github/linux-appimage-qt.sh - ./.github/linux-appimage-qt.sh - - - name: Upload executable - uses: actions/upload-artifact@v2 - with: - name: Linux executable - path: './Alber-x86_64.AppImage' diff --git a/.github/workflows/Windows_Build.yml b/.github/workflows/Windows_Build.yml deleted file mode 100644 index ae9fd587..00000000 --- a/.github/workflows/Windows_Build.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Windows Build - -on: - push: - branches: - - master - pull_request: - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - name: Fetch submodules - run: git submodule update --init --recursive - - - name: Setup Vulkan SDK - uses: humbletim/setup-vulkan-sdk@v1.2.0 - with: - vulkan-query-version: latest - vulkan-use-cache: true - vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang - - - name: Configure CMake - # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_USER_BUILD=ON - - - name: Build - # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - - name: Upload executable - uses: actions/upload-artifact@v2 - with: - name: Windows executable - path: './build/Release/Alber.exe' diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 6c69fe14..00000000 --- a/.gitmodules +++ /dev/null @@ -1,63 +0,0 @@ -[submodule "third_party/elfio"] - path = third_party/elfio - url = https://github.com/serge1/ELFIO -[submodule "third_party/SDL2"] - path = third_party/SDL2 - url = https://github.com/libsdl-org/SDL -[submodule "third_party/cryptopp/cryptopp"] - path = third_party/cryptopp/cryptopp - url = https://github.com/weidai11/cryptopp -[submodule "third_party/xbyak"] - path = third_party/xbyak - url = https://github.com/herumi/xbyak -[submodule "third_party/toml11"] - path = third_party/toml11 - url = https://github.com/ToruNiina/toml11 -[submodule "cpp-httplib"] - path = third_party/httplib - url = https://github.com/yhirose/cpp-httplib -[submodule "stb"] - path = third_party/stb - url = https://github.com/nothings/stb -[submodule "third_party/cmrc"] - path = third_party/cmrc - url = https://github.com/vector-of-bool/cmrc -[submodule "third_party/glm"] - path = third_party/glm - url = https://github.com/g-truc/glm -[submodule "third_party/discord-rpc"] - path = third_party/discord-rpc - url = https://github.com/Panda3DS-emu/discord-rpc -[submodule "third_party/LuaJIT"] - path = third_party/LuaJIT - url = https://github.com/Panda3DS-emu/LuaJIT -[submodule "third_party/mio"] - path = third_party/mio - url = https://github.com/vimpunk/mio -[submodule "third_party/hydra_core"] - path = third_party/hydra_core - url = https://github.com/hydra-emu/core -[submodule "third_party/zep"] - path = third_party/zep - url = https://github.com/Panda3DS-emu/zep -[submodule "third_party/oaknut"] - path = third_party/oaknut - url = https://github.com/merryhime/oaknut -[submodule "third_party/luv"] - path = third_party/luv - url = https://github.com/luvit/luv -[submodule "third_party/libuv"] - path = third_party/libuv - url = https://github.com/libuv/libuv -[submodule "third_party/miniaudio"] - path = third_party/miniaudio - url = https://github.com/mackron/miniaudio -[submodule "third_party/teakra"] - path = third_party/teakra - url = https://github.com/wwylele/teakra -[submodule "third_party/boost"] - path = third_party/boost - url = https://github.com/Panda3DS-emu/ext-boost -[submodule "third_party/dynarmic"] - path = third_party/dynarmic - url = https://github.com/Panda3DS-emu/dynarmic diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dbe438f..3ff173f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,511 +1,8 @@ -# We need to be able to use enable_language(OBJC) on Mac, so we need CMake 3.16 vs the 3.10 we use otherwise. Blame Apple. -if (APPLE) - set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version") - cmake_minimum_required(VERSION 3.16) -else() - cmake_minimum_required(VERSION 3.10) -endif() +cmake_minimum_required(VERSION 3.16) set(CMAKE_CXX_STANDARD 20) -set(CMAKE_CXX_STANDARD_REQUIRED True) +set(CMAKE_CXX_STANDARD_REQUIRED ON) -if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 12) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fbracket-depth=4096") -endif() +project(Alber CXX) -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release) -endif() - -project(Alber) -set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) - -if(APPLE) - enable_language(OBJC) -endif() - -if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-format-nonliteral -Wno-format-security") -endif() - -option(DISABLE_PANIC_DEV "Make a build with fewer and less intrusive asserts" ON) -option(GPU_DEBUG_INFO "Enable additional GPU debugging info" OFF) -option(ENABLE_OPENGL "Enable OpenGL rendering backend" ON) -option(ENABLE_VULKAN "Enable Vulkan rendering backend" ON) -option(ENABLE_LTO "Enable link-time optimization" OFF) -option(ENABLE_USER_BUILD "Make a user-facing build. These builds have various assertions disabled, LTO, and more" OFF) -option(ENABLE_HTTP_SERVER "Enable HTTP server. Used for Discord bot support" OFF) -option(ENABLE_DISCORD_RPC "Compile with Discord RPC support (disabled by default)" ON) -option(ENABLE_LUAJIT "Enable scripting with the Lua programming language" ON) -option(ENABLE_QT_GUI "Enable the Qt GUI. If not selected then the emulator uses a minimal SDL-based UI instead" OFF) -option(BUILD_HYDRA_CORE "Build a Hydra core" OFF) - -include_directories(${PROJECT_SOURCE_DIR}/include/) -include_directories(${PROJECT_SOURCE_DIR}/include/kernel) -include_directories (${FMT_INCLUDE_DIR}) -include_directories(third_party/boost/) -include_directories(third_party/elfio/) -include_directories(third_party/imgui/) -include_directories(third_party/dynarmic/src) -include_directories(third_party/cryptopp/) -include_directories(third_party/cityhash/include) -include_directories(third_party/result/include) -include_directories(third_party/xxhash/include) -include_directories(third_party/httplib) -include_directories(third_party/stb) -include_directories(third_party/opengl) -include_directories(third_party/miniaudio) -include_directories(third_party/mio/single_include) - -add_compile_definitions(NOMINMAX) # Make windows.h not define min/max macros because third-party deps don't like it -add_compile_definitions(WIN32_LEAN_AND_MEAN) # Make windows.h not include literally everything -add_compile_definitions(SDL_MAIN_HANDLED) - -if(BUILD_HYDRA_CORE) - set(CMAKE_POSITION_INDEPENDENT_CODE ON) -endif() - -if(ENABLE_DISCORD_RPC AND NOT ANDROID) - add_subdirectory(third_party/discord-rpc) - include_directories(third_party/discord-rpc/include) -endif() - -if(ENABLE_QT_GUI) - find_package(Qt6 REQUIRED COMPONENTS Widgets) - - # We can't use qt_standard_project_setup since it's Qt 6.3+ and we don't need to set the minimum that high - set(CMAKE_AUTOMOC ON) - set(CMAKE_AUTORCC ON) - set(CMAKE_AUTOUIC ON) -endif() - -set(SDL_STATIC ON CACHE BOOL "" FORCE) -set(SDL_SHARED OFF CACHE BOOL "" FORCE) -set(SDL_TEST OFF CACHE BOOL "" FORCE) -add_subdirectory(third_party/SDL2) - -add_subdirectory(third_party/toml11) -include_directories(${SDL2_INCLUDE_DIR}) -include_directories(third_party/toml11) -include_directories(third_party/glm) - -add_subdirectory(third_party/cmrc) - -set(BOOST_ROOT "${CMAKE_SOURCE_DIR}/third_party/boost") -set(Boost_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/third_party/boost") -set(Boost_NO_SYSTEM_PATHS ON) -add_compile_definitions(BOOST_NO_CXX98_FUNCTION_BASE) # Forbid Boost from using std::unary_function (Fixes MacOS build) - -add_library(boost INTERFACE) -target_include_directories(boost SYSTEM INTERFACE ${Boost_INCLUDE_DIR}) - -if(ANDROID) - set(CRYPTOPP_OPT_DISABLE_ASM ON CACHE BOOL "" FORCE) -endif() - -set(CRYPTOPP_BUILD_TESTING OFF) -add_subdirectory(third_party/cryptopp) -add_subdirectory(third_party/glad) - -if(ENABLE_LUAJIT) - add_subdirectory(third_party/LuaJIT luajit) - include_directories(third_party/LuaJIT/src ${CMAKE_BINARY_DIR}/luajit) - set_target_properties(luajit PROPERTIES EXCLUDE_FROM_ALL 1) - - if(MSVC) - target_compile_definitions(libluajit PRIVATE _CRT_SECURE_NO_WARNINGS) - target_compile_definitions(minilua PRIVATE _CRT_SECURE_NO_WARNINGS) - target_compile_definitions(buildvm PRIVATE _CRT_SECURE_NO_WARNINGS) - endif() -endif() - -# Check for x64 -if (CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "x86-64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") - set(HOST_X64 TRUE) - add_subdirectory(third_party/xbyak) # Add xbyak submodule for x86 JITs - include_directories(third_party/xbyak) - add_compile_definitions(PANDA3DS_DYNAPICA_SUPPORTED) - add_compile_definitions(PANDA3DS_X64_HOST) -else() - set(HOST_X64 FALSE) -endif() - -# Check for arm64 -if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") - set(HOST_ARM64 TRUE) - add_subdirectory(third_party/oaknut) # Add Oaknut submodule for arm64 JITs - include_directories(third_party/oaknut/include) - add_compile_definitions(PANDA3DS_DYNAPICA_SUPPORTED) - add_compile_definitions(PANDA3DS_ARM64_HOST) -else() - set(HOST_ARM64 FALSE) -endif() - -if(HOST_X64 OR HOST_ARM64) - set(DYNARMIC_TESTS OFF) - #set(DYNARMIC_NO_BUNDLED_FMT ON) - set(DYNARMIC_FRONTENDS "A32" CACHE STRING "") - add_subdirectory(third_party/dynarmic) - add_compile_definitions(CPU_DYNARMIC) -else() - message(FATAL_ERROR "Currently unsupported CPU architecture") -endif() -add_subdirectory(third_party/teakra EXCLUDE_FROM_ALL) - -set(SOURCE_FILES src/emulator.cpp src/io_file.cpp src/config.cpp - src/core/CPU/cpu_dynarmic.cpp src/core/CPU/dynarmic_cycles.cpp - src/core/memory.cpp src/renderer.cpp src/core/renderer_null/renderer_null.cpp - src/http_server.cpp src/stb_image_write.c src/core/cheats.cpp src/core/action_replay.cpp - src/discord_rpc.cpp src/lua.cpp src/memory_mapped_file.cpp src/miniaudio.cpp -) -set(CRYPTO_SOURCE_FILES src/core/crypto/aes_engine.cpp) -set(KERNEL_SOURCE_FILES src/core/kernel/kernel.cpp src/core/kernel/resource_limits.cpp - src/core/kernel/memory_management.cpp src/core/kernel/ports.cpp - src/core/kernel/events.cpp src/core/kernel/threads.cpp - src/core/kernel/address_arbiter.cpp src/core/kernel/error.cpp - src/core/kernel/file_operations.cpp src/core/kernel/directory_operations.cpp - src/core/kernel/idle_thread.cpp src/core/kernel/timers.cpp -) -set(SERVICE_SOURCE_FILES src/core/services/service_manager.cpp src/core/services/apt.cpp src/core/services/hid.cpp - src/core/services/fs.cpp src/core/services/gsp_gpu.cpp src/core/services/gsp_lcd.cpp - src/core/services/ndm.cpp src/core/services/dsp.cpp src/core/services/cfg.cpp - src/core/services/ptm.cpp src/core/services/mic.cpp src/core/services/cecd.cpp - src/core/services/ac.cpp src/core/services/am.cpp src/core/services/boss.cpp - src/core/services/frd.cpp src/core/services/nim.cpp src/core/services/mcu/mcu_hwc.cpp - src/core/services/y2r.cpp src/core/services/cam.cpp src/core/services/ldr_ro.cpp - src/core/services/act.cpp src/core/services/nfc.cpp src/core/services/dlp_srvr.cpp - src/core/services/ir_user.cpp src/core/services/http.cpp src/core/services/soc.cpp - src/core/services/ssl.cpp src/core/services/news_u.cpp src/core/services/amiibo_device.cpp - src/core/services/csnd.cpp src/core/services/nwm_uds.cpp -) -set(PICA_SOURCE_FILES src/core/PICA/gpu.cpp src/core/PICA/regs.cpp src/core/PICA/shader_unit.cpp - src/core/PICA/shader_interpreter.cpp src/core/PICA/dynapica/shader_rec.cpp - src/core/PICA/dynapica/shader_rec_emitter_x64.cpp src/core/PICA/pica_hash.cpp - src/core/PICA/dynapica/shader_rec_emitter_arm64.cpp -) - -set(LOADER_SOURCE_FILES src/core/loader/elf.cpp src/core/loader/ncsd.cpp src/core/loader/ncch.cpp src/core/loader/3dsx.cpp src/core/loader/lz77.cpp) -set(FS_SOURCE_FILES src/core/fs/archive_self_ncch.cpp src/core/fs/archive_save_data.cpp src/core/fs/archive_sdmc.cpp - src/core/fs/archive_ext_save_data.cpp src/core/fs/archive_ncch.cpp src/core/fs/romfs.cpp - src/core/fs/ivfc.cpp src/core/fs/archive_user_save_data.cpp src/core/fs/archive_system_save_data.cpp -) - -set(APPLET_SOURCE_FILES src/core/applets/applet.cpp src/core/applets/mii_selector.cpp src/core/applets/software_keyboard.cpp src/core/applets/applet_manager.cpp - src/core/applets/error_applet.cpp -) -set(AUDIO_SOURCE_FILES src/core/audio/dsp_core.cpp src/core/audio/null_core.cpp src/core/audio/teakra_core.cpp - src/core/audio/miniaudio_device.cpp -) -set(RENDERER_SW_SOURCE_FILES src/core/renderer_sw/renderer_sw.cpp) - -# Frontend source files -if(NOT ANDROID) - if(ENABLE_QT_GUI) - set(FRONTEND_SOURCE_FILES src/panda_qt/main.cpp src/panda_qt/screen.cpp src/panda_qt/main_window.cpp src/panda_qt/about_window.cpp - src/panda_qt/config_window.cpp src/panda_qt/zep.cpp src/panda_qt/text_editor.cpp src/panda_qt/cheats_window.cpp - ) - set(FRONTEND_HEADER_FILES include/panda_qt/screen.hpp include/panda_qt/main_window.hpp include/panda_qt/about_window.hpp - include/panda_qt/config_window.hpp include/panda_qt/text_editor.hpp include/panda_qt/cheats_window.hpp - ) - - source_group("Source Files\\Qt" FILES ${FRONTEND_SOURCE_FILES}) - source_group("Header Files\\Qt" FILES ${FRONTEND_HEADER_FILES}) - include_directories(${Qt6Gui_PRIVATE_INCLUDE_DIRS}) - - include_directories(third_party/zep/include) # Include zep for text editor usage - configure_file(third_party/zep/cmake/config_app.h.cmake ${CMAKE_BINARY_DIR}/zep_config/config_app.h) - include_directories(${CMAKE_BINARY_DIR}/zep_config) - else() - set(FRONTEND_SOURCE_FILES src/panda_sdl/main.cpp src/panda_sdl/frontend_sdl.cpp) - set(FRONTEND_HEADER_FILES "") - endif() -endif() - -set(HEADER_FILES include/emulator.hpp include/helpers.hpp include/termcolor.hpp - include/cpu.hpp include/cpu_dynarmic.hpp include/memory.hpp include/renderer.hpp include/kernel/kernel.hpp - include/dynarmic_cp15.hpp include/kernel/resource_limits.hpp include/kernel/kernel_types.hpp - include/kernel/config_mem.hpp include/services/service_manager.hpp include/services/apt.hpp - include/kernel/handles.hpp include/services/hid.hpp include/services/fs.hpp - include/services/gsp_gpu.hpp include/services/gsp_lcd.hpp include/arm_defs.hpp include/renderer_null/renderer_null.hpp - include/PICA/gpu.hpp include/PICA/regs.hpp include/services/ndm.hpp - include/PICA/shader.hpp include/PICA/shader_unit.hpp include/PICA/float_types.hpp - include/logger.hpp include/loader/ncch.hpp include/loader/ncsd.hpp include/loader/3dsx.hpp include/io_file.hpp - include/loader/lz77.hpp include/fs/archive_base.hpp include/fs/archive_self_ncch.hpp - include/services/dsp.hpp include/services/cfg.hpp include/services/region_codes.hpp - include/fs/archive_save_data.hpp include/fs/archive_sdmc.hpp include/services/ptm.hpp - include/services/mic.hpp include/services/cecd.hpp include/services/ac.hpp - include/services/am.hpp include/services/boss.hpp include/services/frd.hpp include/services/nim.hpp - include/fs/archive_ext_save_data.hpp include/fs/archive_ncch.hpp include/services/mcu/mcu_hwc.hpp - include/colour.hpp include/services/y2r.hpp include/services/cam.hpp include/services/ssl.hpp - include/services/ldr_ro.hpp include/ipc.hpp include/services/act.hpp include/services/nfc.hpp - include/system_models.hpp include/services/dlp_srvr.hpp include/PICA/dynapica/pica_recs.hpp - include/PICA/dynapica/x64_regs.hpp include/PICA/dynapica/vertex_loader_rec.hpp include/PICA/dynapica/shader_rec.hpp - include/PICA/dynapica/shader_rec_emitter_x64.hpp include/PICA/pica_hash.hpp include/result/result.hpp - include/result/result_common.hpp include/result/result_fs.hpp include/result/result_fnd.hpp - include/result/result_gsp.hpp include/result/result_kernel.hpp include/result/result_os.hpp - include/crypto/aes_engine.hpp include/metaprogramming.hpp include/PICA/pica_vertex.hpp - include/config.hpp include/services/ir_user.hpp include/http_server.hpp include/cheats.hpp - include/action_replay.hpp include/renderer_sw/renderer_sw.hpp include/compiler_builtins.hpp - include/fs/romfs.hpp include/fs/ivfc.hpp include/discord_rpc.hpp include/services/http.hpp include/result/result_cfg.hpp - include/applets/applet.hpp include/applets/mii_selector.hpp include/math_util.hpp include/services/soc.hpp - include/services/news_u.hpp include/applets/software_keyboard.hpp include/applets/applet_manager.hpp include/fs/archive_user_save_data.hpp - include/services/amiibo_device.hpp include/services/nfc_types.hpp include/swap.hpp include/services/csnd.hpp include/services/nwm_uds.hpp - include/fs/archive_system_save_data.hpp include/lua_manager.hpp include/memory_mapped_file.hpp include/hydra_icon.hpp - include/PICA/dynapica/shader_rec_emitter_arm64.hpp include/scheduler.hpp include/applets/error_applet.hpp - include/audio/dsp_core.hpp include/audio/null_core.hpp include/audio/teakra_core.hpp - include/audio/miniaudio_device.hpp include/ring_buffer.hpp -) - -cmrc_add_resource_library( - resources_console_fonts - NAMESPACE ConsoleFonts - WHENCE "src/core/services/fonts/" - "src/core/services/fonts/CitraSharedFontUSRelocated.bin" -) - -set(THIRD_PARTY_SOURCE_FILES third_party/imgui/imgui.cpp - third_party/imgui/imgui_draw.cpp - third_party/imgui/imgui_tables.cpp - third_party/imgui/imgui_widgets.cpp - third_party/imgui/imgui_demo.cpp - - third_party/cityhash/cityhash.cpp - third_party/xxhash/xxhash.c -) - -if(ENABLE_LUAJIT AND NOT ANDROID) - # Build luv and libuv for Lua TCP server usage if we're not on Android - include_directories(third_party/luv/src) - include_directories(third_party/luv/deps/lua-compat-5.3/c-api) - include_directories(third_party/libuv/include) - set(THIRD_PARTY_SOURCE_FILES ${THIRD_PARTY_SOURCE_FILES} third_party/luv/src/luv.c) - set(LIBUV_BUILD_SHARED OFF) - - add_subdirectory(third_party/libuv) -endif() - -if(ENABLE_QT_GUI) - include_directories(third_party/duckstation) - set(THIRD_PARTY_SOURCE_FILES ${THIRD_PARTY_SOURCE_FILES} third_party/duckstation/window_info.cpp third_party/duckstation/gl/context.cpp) - - if(APPLE) - set(THIRD_PARTY_SOURCE_FILES ${THIRD_PARTY_SOURCE_FILES} third_party/duckstation/gl/context_agl.mm) - elseif(WIN32) - set(THIRD_PARTY_SOURCE_FILES ${THIRD_PARTY_SOURCE_FILES} third_party/duckstation/gl/context_wgl.cpp) - else() - set(THIRD_PARTY_SOURCE_FILES ${THIRD_PARTY_SOURCE_FILES} third_party/duckstation/gl/context_egl.cpp third_party/duckstation/gl/context_egl_wayland.cpp - third_party/duckstation/gl/context_egl_x11.cpp third_party/duckstation/gl/context_glx.cpp third_party/duckstation/gl/x11_window.cpp) - endif() -endif() - -source_group("Source Files\\Core" FILES ${SOURCE_FILES}) -source_group("Source Files\\Core\\Crypto" FILES ${CRYPTO_SOURCE_FILES}) -source_group("Source Files\\Core\\Filesystem" FILES ${FS_SOURCE_FILES}) -source_group("Source Files\\Core\\Kernel" FILES ${KERNEL_SOURCE_FILES}) -source_group("Source Files\\Core\\Loader" FILES ${LOADER_SOURCE_FILES}) -source_group("Source Files\\Core\\Services" FILES ${SERVICE_SOURCE_FILES}) -source_group("Source Files\\Core\\Applets" FILES ${APPLET_SOURCE_FILES}) -source_group("Source Files\\Core\\PICA" FILES ${PICA_SOURCE_FILES}) -source_group("Source Files\\Core\\Audio" FILES ${AUDIO_SOURCE_FILES}) -source_group("Source Files\\Core\\Software Renderer" FILES ${RENDERER_SW_SOURCE_FILES}) -source_group("Source Files\\Third Party" FILES ${THIRD_PARTY_SOURCE_FILES}) - -set(RENDERER_GL_SOURCE_FILES "") # Empty by default unless we are compiling with the GL renderer -set(RENDERER_VK_SOURCE_FILES "") # Empty by default unless we are compiling with the VK renderer - -if(ENABLE_OPENGL) - # This may look weird but opengl.hpp is our header even if it's in the third_party folder - set(RENDERER_GL_INCLUDE_FILES third_party/opengl/opengl.hpp - include/renderer_gl/renderer_gl.hpp include/renderer_gl/textures.hpp - include/renderer_gl/surfaces.hpp include/renderer_gl/surface_cache.hpp - include/renderer_gl/gl_state.hpp - ) - - set(RENDERER_GL_SOURCE_FILES src/core/renderer_gl/renderer_gl.cpp - src/core/renderer_gl/textures.cpp src/core/renderer_gl/etc1.cpp - src/core/renderer_gl/gl_state.cpp src/host_shaders/opengl_display.frag - src/host_shaders/opengl_display.vert src/host_shaders/opengl_vertex_shader.vert - src/host_shaders/opengl_fragment_shader.frag - ) - - set(HEADER_FILES ${HEADER_FILES} ${RENDERER_GL_INCLUDE_FILES}) - source_group("Source Files\\Core\\OpenGL Renderer" FILES ${RENDERER_GL_SOURCE_FILES}) - - cmrc_add_resource_library( - resources_renderer_gl - NAMESPACE RendererGL - WHENCE "src/host_shaders/" - "src/host_shaders/opengl_display.frag" - "src/host_shaders/opengl_display.vert" - "src/host_shaders/opengl_vertex_shader.vert" - "src/host_shaders/opengl_fragment_shader.frag" - ) -endif() - -if(ENABLE_VULKAN) - find_package( - Vulkan 1.3.206 REQUIRED - COMPONENTS glslangValidator - ) - - set(RENDERER_VK_INCLUDE_FILES include/renderer_vk/renderer_vk.hpp - include/renderer_vk/vk_api.hpp include/renderer_vk/vk_debug.hpp - include/renderer_vk/vk_descriptor_heap.hpp - include/renderer_vk/vk_descriptor_update_batch.hpp - include/renderer_vk/vk_sampler_cache.hpp - include/renderer_vk/vk_memory.hpp include/renderer_vk/vk_pica.hpp - ) - - set(RENDERER_VK_SOURCE_FILES src/core/renderer_vk/renderer_vk.cpp - src/core/renderer_vk/vk_api.cpp src/core/renderer_vk/vk_debug.cpp - src/core/renderer_vk/vk_descriptor_heap.cpp - src/core/renderer_vk/vk_descriptor_update_batch.cpp - src/core/renderer_vk/vk_sampler_cache.cpp - src/core/renderer_vk/vk_memory.cpp src/core/renderer_vk/vk_pica.cpp - ) - - set(HEADER_FILES ${HEADER_FILES} ${RENDERER_VK_INCLUDE_FILES}) - source_group("Source Files\\Core\\Vulkan Renderer" FILES ${RENDERER_VK_SOURCE_FILES}) - - set(RENDERER_VK_HOST_SHADERS_SOURCE - "src/host_shaders/vulkan_display.frag" - "src/host_shaders/vulkan_display.vert" - ) - - set(RENDERER_VK_HOST_SHADERS_FLAGS -e main --target-env vulkan1.1) - - if(GPU_DEBUG_INFO) - # generate nonsemantic shader debug information with source - set(RENDERER_VK_HOST_SHADERS_FLAGS ${RENDERER_VK_HOST_SHADERS_FLAGS} -gVS) - else() - set(RENDERER_VK_HOST_SHADERS_FLAGS ${RENDERER_VK_HOST_SHADERS_FLAGS} -g0) - endif() - - # Compile each vulkan shader into an .spv file - foreach( HOST_SHADER_SOURCE ${RENDERER_VK_HOST_SHADERS_SOURCE} ) - get_filename_component( FILE_NAME ${HOST_SHADER_SOURCE} NAME ) - set( HOST_SHADER_SPIRV "${PROJECT_BINARY_DIR}/host_shaders/${FILE_NAME}.spv" ) - add_custom_command( - OUTPUT ${HOST_SHADER_SPIRV} - COMMAND ${CMAKE_COMMAND} -E make_directory "${PROJECT_BINARY_DIR}/host_shaders/" - COMMAND Vulkan::glslangValidator ${RENDERER_VK_HOST_SHADERS_FLAGS} -V "${PROJECT_SOURCE_DIR}/${HOST_SHADER_SOURCE}" -o ${HOST_SHADER_SPIRV} - DEPENDS ${HOST_SHADER_SOURCE} - ) - list( APPEND RENDERER_VK_HOST_SHADERS_SPIRV ${HOST_SHADER_SPIRV} ) - endforeach() - - cmrc_add_resource_library( - resources_renderer_vk - NAMESPACE RendererVK - WHENCE "${PROJECT_BINARY_DIR}/host_shaders/" - ${RENDERER_VK_HOST_SHADERS_SPIRV} - ) -endif() - -source_group("Header Files\\Core" FILES ${HEADER_FILES}) -set(ALL_SOURCES ${SOURCE_FILES} ${FRONTEND_SOURCE_FILES} ${FS_SOURCE_FILES} ${CRYPTO_SOURCE_FILES} ${KERNEL_SOURCE_FILES} - ${LOADER_SOURCE_FILES} ${SERVICE_SOURCE_FILES} ${APPLET_SOURCE_FILES} ${RENDERER_SW_SOURCE_FILES} ${PICA_SOURCE_FILES} ${THIRD_PARTY_SOURCE_FILES} - ${AUDIO_SOURCE_FILES} ${HEADER_FILES} ${FRONTEND_HEADER_FILES}) - -if(ENABLE_OPENGL) - # Add the OpenGL source files to ALL_SOURCES - set(ALL_SOURCES ${ALL_SOURCES} ${RENDERER_GL_SOURCE_FILES}) -endif() - -if(ENABLE_VULKAN) - # Add the Vulkan source files to ALL_SOURCES - set(ALL_SOURCES ${ALL_SOURCES} ${RENDERER_VK_SOURCE_FILES}) -endif() - -if(ANDROID) - set(ALL_SOURCES ${ALL_SOURCES} src/jni_driver.cpp) -endif() - -if(BUILD_HYDRA_CORE) - include_directories(third_party/hydra_core/include) - add_library(Alber SHARED ${ALL_SOURCES} src/hydra_core.cpp) - target_compile_definitions(Alber PRIVATE PANDA3DS_HYDRA_CORE=1) -else() - add_executable(Alber ${ALL_SOURCES}) -endif() - -if(ANDROID) - target_link_libraries(Alber PRIVATE EGL log) -endif() - -if(ENABLE_LTO OR ENABLE_USER_BUILD) - set_target_properties(Alber PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE) -endif() - -target_link_libraries(Alber PRIVATE dynarmic cryptopp glad resources_console_fonts teakra) - -if(NOT ANDROID) - target_link_libraries(Alber PRIVATE SDL2-static) -endif() - -if(ENABLE_DISCORD_RPC AND NOT ANDROID) - target_compile_definitions(Alber PUBLIC "PANDA3DS_ENABLE_DISCORD_RPC=1") - target_link_libraries(Alber PRIVATE discord-rpc) -endif() - -if(ENABLE_LUAJIT) - target_compile_definitions(Alber PUBLIC "PANDA3DS_ENABLE_LUA=1") - target_link_libraries(Alber PRIVATE libluajit) - - # If we're not on Android, link libuv too - if (NOT ANDROID) - target_link_libraries(Alber PRIVATE uv_a) - endif() -endif() - -if(ENABLE_OPENGL) - target_compile_definitions(Alber PUBLIC "PANDA3DS_ENABLE_OPENGL=1") - target_link_libraries(Alber PRIVATE resources_renderer_gl) -endif() - -if(ENABLE_VULKAN) - target_compile_definitions(Alber PUBLIC "PANDA3DS_ENABLE_VULKAN=1") - target_link_libraries(Alber PRIVATE Vulkan::Vulkan resources_renderer_vk) -endif() - -if(ENABLE_QT_GUI) - target_compile_definitions(Alber PUBLIC "PANDA3DS_FRONTEND_QT=1") - target_compile_definitions(Alber PUBLIC "ZEP_QT=1") - target_compile_definitions(Alber PUBLIC "ZEP_FEATURE_CPP_FILE_SYSTEM=1") - - target_link_libraries(Alber PRIVATE Qt6::Widgets) - - if(LINUX OR FREEBSD) - find_package(X11 REQUIRED) - target_link_libraries(Alber PRIVATE ${X11_LIBRARIES}) - - if(ENABLE_OPENGL) - find_package(OpenGL REQUIRED COMPONENTS OpenGL EGL GLX) - target_link_libraries(Alber PRIVATE OpenGL::OpenGL OpenGL::EGL OpenGL::GLX) - endif() - endif() - - qt_add_resources(Alber "app_images" - PREFIX "/" - FILES - docs/img/rsob_icon.png docs/img/rstarstruck_icon.png - ) -else() - target_compile_definitions(Alber PUBLIC "PANDA3DS_FRONTEND_SDL=1") -endif() - -if(GPU_DEBUG_INFO) - target_compile_definitions(Alber PRIVATE GPU_DEBUG_INFO=1) -endif() - -if(ENABLE_USER_BUILD) - target_compile_definitions(Alber PRIVATE PANDA3DS_USER_BUILD=1) -endif() - -if(ENABLE_USER_BUILD OR DISABLE_PANIC_DEV) - target_compile_definitions(Alber PRIVATE PANDA3DS_LIMITED_PANICS=1) -endif() - -if(ENABLE_HTTP_SERVER) - target_compile_definitions(Alber PRIVATE PANDA3DS_ENABLE_HTTP_SERVER=1) -endif() +add_executable(${PROJECT_NAME} src/main.cpp) diff --git a/docs/img/Alber.png b/docs/img/Alber.png deleted file mode 100644 index 2cbedd7b..00000000 Binary files a/docs/img/Alber.png and /dev/null differ diff --git a/docs/img/KirbyRobobot.png b/docs/img/KirbyRobobot.png deleted file mode 100644 index 7b0da89b..00000000 Binary files a/docs/img/KirbyRobobot.png and /dev/null differ diff --git a/docs/img/MK7.png b/docs/img/MK7.png deleted file mode 100644 index c62e40f9..00000000 Binary files a/docs/img/MK7.png and /dev/null differ diff --git a/docs/img/OoT_Title.png b/docs/img/OoT_Title.png deleted file mode 100644 index 6770d0cf..00000000 Binary files a/docs/img/OoT_Title.png and /dev/null differ diff --git a/docs/img/alber-icon.ico b/docs/img/alber-icon.ico deleted file mode 100644 index b6251a0e..00000000 Binary files a/docs/img/alber-icon.ico and /dev/null differ diff --git a/docs/img/panda.jpg b/docs/img/panda.jpg deleted file mode 100644 index 955d8d58..00000000 Binary files a/docs/img/panda.jpg and /dev/null differ diff --git a/docs/img/pokegang.png b/docs/img/pokegang.png deleted file mode 100644 index 58903960..00000000 Binary files a/docs/img/pokegang.png and /dev/null differ diff --git a/docs/img/rsob_icon.png b/docs/img/rsob_icon.png deleted file mode 100644 index 4cabd3fb..00000000 Binary files a/docs/img/rsob_icon.png and /dev/null differ diff --git a/docs/img/rstarstruck_icon.png b/docs/img/rstarstruck_icon.png deleted file mode 100644 index 2b4aab06..00000000 Binary files a/docs/img/rstarstruck_icon.png and /dev/null differ diff --git a/include/PICA/dynapica/pica_recs.hpp b/include/PICA/dynapica/pica_recs.hpp deleted file mode 100644 index acfd226e..00000000 --- a/include/PICA/dynapica/pica_recs.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "vertex_loader_rec.hpp" - -// Common file for our PICA JITs (From vertex config -> CPU assembly and from PICA shader -> CPU assembly) - -namespace Dynapica { -#ifdef PANDA3DS_DYNAPICA_SUPPORTED - static constexpr bool supported() { return true; } -#else - static constexpr bool supported() { return false; } -#endif -} \ No newline at end of file diff --git a/include/PICA/dynapica/shader_rec.hpp b/include/PICA/dynapica/shader_rec.hpp deleted file mode 100644 index 2dabc128..00000000 --- a/include/PICA/dynapica/shader_rec.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#pragma once -#include "PICA/shader.hpp" - -#if defined(PANDA3DS_DYNAPICA_SUPPORTED) && (defined(PANDA3DS_X64_HOST) || defined(PANDA3DS_ARM64_HOST)) -#define PANDA3DS_SHADER_JIT_SUPPORTED -#include -#include - -#ifdef PANDA3DS_X64_HOST -#include "shader_rec_emitter_x64.hpp" -#elif defined(PANDA3DS_ARM64_HOST) -#include "shader_rec_emitter_arm64.hpp" -#endif -#endif - -class ShaderJIT { -#ifdef PANDA3DS_SHADER_JIT_SUPPORTED - using Hash = PICAShader::Hash; - using ShaderCache = std::unordered_map>; - ShaderEmitter::PrologueCallback prologueCallback; - ShaderEmitter::InstructionCallback entrypointCallback; - - ShaderCache cache; -#endif - - public: -#ifdef PANDA3DS_SHADER_JIT_SUPPORTED - // Call this before starting to process a batch of vertices - // This will read the PICA config (uploaded shader and shader operand descriptors) and search if we've already compiled this shader - // If yes, it sets it as the active shader. if not, then it compiles it, adds it to the cache, and sets it as active, - // The caller must make sure the entrypoint has been properly set beforehand - void prepare(PICAShader& shaderUnit); - void reset(); - void run(PICAShader& shaderUnit) { prologueCallback(shaderUnit, entrypointCallback); } - - static constexpr bool isAvailable() { return true; } -#else - void prepare(PICAShader& shaderUnit) { - Helpers::panic("Vertex Loader JIT: Tried to run ShaderJIT::Prepare on platform that does not support shader jit"); - } - - void run(PICAShader& shaderUnit) { - Helpers::panic("Vertex Loader JIT: Tried to run ShaderJIT::Run on platform that does not support shader jit"); - } - - // Define dummy callback. This should never be called if the shader JIT is not supported - using Callback = void (*)(PICAShader& shaderUnit); - Callback activeShaderCallback = nullptr; - - void reset() {} - static constexpr bool isAvailable() { return false; } -#endif -}; \ No newline at end of file diff --git a/include/PICA/dynapica/shader_rec_emitter_arm64.hpp b/include/PICA/dynapica/shader_rec_emitter_arm64.hpp deleted file mode 100644 index 7a4a6350..00000000 --- a/include/PICA/dynapica/shader_rec_emitter_arm64.hpp +++ /dev/null @@ -1,134 +0,0 @@ -#pragma once - -// Only do anything if we're on an x64 target with JIT support enabled -#if defined(PANDA3DS_DYNAPICA_SUPPORTED) && defined(PANDA3DS_ARM64_HOST) -#include -#include -#include - -#include "PICA/shader.hpp" -#include "helpers.hpp" -#include "logger.hpp" - -class ShaderEmitter : private oaknut::CodeBlock, public oaknut::CodeGenerator { - static constexpr size_t executableMemorySize = PICAShader::maxInstructionCount * 96; // How much executable memory to alloc for each shader - // Allocate some extra space as padding for security purposes in the extremely unlikely occasion we manage to overflow the above size - static constexpr size_t allocSize = executableMemorySize + 0x1000; - - // If the swizzle field is this value then the swizzle pattern is .xyzw so we don't need a shuffle - static constexpr uint noSwizzle = 0x1B; - - using f24 = Floats::f24; - using vec4f = std::array; - - // An array of labels (incl pointers) to each compiled (to x64) PICA instruction - std::array instructionLabels; - // A vector of PCs that can potentially return based on the state of the PICA callstack. - // Filled before compiling a shader by scanning the code for call instructions - std::vector returnPCs; - - // An array of 128-bit masks for blending registers together to perform masked writes. - // Eg for writing only the x and y components, the mask is 0x00000000'00000000'FFFFFFFF'FFFF - oaknut::Label blendMasks; - - u32 recompilerPC = 0; // PC the recompiler is currently recompiling @ - u32 loopLevel = 0; // The current loop nesting level (0 = not in a loop) - - // Shows whether the loaded shader has any log2 and exp2 instructions - bool codeHasLog2 = false; - bool codeHasExp2 = false; - - oaknut::Label log2Func, exp2Func; - oaknut::Label emitLog2Func(); - oaknut::Label emitExp2Func(); - - template - T getLabelPointer(const oaknut::Label& label) { - auto pointer = reinterpret_cast(oaknut::CodeBlock::ptr()) + label.offset(); - return reinterpret_cast(pointer); - } - - // Compile all instructions from [current recompiler PC, end) - void compileUntil(const PICAShader& shaderUnit, u32 endPC); - // Compile instruction "instr" - void compileInstruction(const PICAShader& shaderUnit); - - bool isCall(u32 instruction) { - const u32 opcode = instruction >> 26; - return (opcode == ShaderOpcodes::CALL) || (opcode == ShaderOpcodes::CALLC) || (opcode == ShaderOpcodes::CALLU); - } - - // Scan the shader code for call instructions to fill up the returnPCs vector before starting compilation - // We also scan for log2/exp2 instructions to see whether to emit the relevant functions - void scanCode(const PICAShader& shaderUnit); - - // Load register with number "srcReg" indexed by index "idx" into the arm64 register "reg" - template - void loadRegister(oaknut::QReg dest, const PICAShader& shader, u32 src, u32 idx, u32 operandDescriptor); - void storeRegister(oaknut::QReg source, const PICAShader& shader, u32 dest, u32 operandDescriptor); - - const vec4f& getSourceRef(const PICAShader& shader, u32 src); - const vec4f& getDestRef(const PICAShader& shader, u32 dest); - - // Check the value of the cmp register for instructions like ifc and callc - // Result is returned in the zero flag. If the comparison is true then zero == 1, else zero == 0 - void checkCmpRegister(const PICAShader& shader, u32 instruction); - - // Check the value of the bool uniform for instructions like ifu and callu - // Result is returned in the zero flag. If the comparison is true then zero == 0, else zero == 1 (Opposite of checkCmpRegister) - void checkBoolUniform(const PICAShader& shader, u32 instruction); - - // Instruction recompilation functions - void recADD(const PICAShader& shader, u32 instruction); - void recCALL(const PICAShader& shader, u32 instruction); - void recCALLC(const PICAShader& shader, u32 instruction); - void recCALLU(const PICAShader& shader, u32 instruction); - void recCMP(const PICAShader& shader, u32 instruction); - void recDP3(const PICAShader& shader, u32 instruction); - void recDP4(const PICAShader& shader, u32 instruction); - void recDPH(const PICAShader& shader, u32 instruction); - void recEMIT(const PICAShader& shader, u32 instruction); - void recEND(const PICAShader& shader, u32 instruction); - void recEX2(const PICAShader& shader, u32 instruction); - void recFLR(const PICAShader& shader, u32 instruction); - void recIFC(const PICAShader& shader, u32 instruction); - void recIFU(const PICAShader& shader, u32 instruction); - void recJMPC(const PICAShader& shader, u32 instruction); - void recJMPU(const PICAShader& shader, u32 instruction); - void recLG2(const PICAShader& shader, u32 instruction); - void recLOOP(const PICAShader& shader, u32 instruction); - void recMAD(const PICAShader& shader, u32 instruction); - void recMAX(const PICAShader& shader, u32 instruction); - void recMIN(const PICAShader& shader, u32 instruction); - void recMOVA(const PICAShader& shader, u32 instruction); - void recMOV(const PICAShader& shader, u32 instruction); - void recMUL(const PICAShader& shader, u32 instruction); - void recRCP(const PICAShader& shader, u32 instruction); - void recRSQ(const PICAShader& shader, u32 instruction); - void recSETEMIT(const PICAShader& shader, u32 instruction); - void recSGE(const PICAShader& shader, u32 instruction); - void recSLT(const PICAShader& shader, u32 instruction); - - MAKE_LOG_FUNCTION(log, shaderJITLogger) - - public: - // Callback type used for instructions - using InstructionCallback = const void (*)(PICAShader& shaderUnit); - // Callback type used for the JIT prologue. This is what the caller will call - using PrologueCallback = const void (*)(PICAShader& shaderUnit, InstructionCallback cb); - - PrologueCallback prologueCb = nullptr; - - // Initialize our emitter with "allocSize" bytes of memory allocated for the code buffer - ShaderEmitter() : oaknut::CodeBlock(allocSize), oaknut::CodeGenerator(oaknut::CodeBlock::ptr()) {} - - // PC must be a valid entrypoint here. It doesn't have that much overhead in this case, so we use std::array<>::at() to assert it does - InstructionCallback getInstructionCallback(u32 pc) { - return getLabelPointer(instructionLabels.at(pc)); - } - - PrologueCallback getPrologueCallback() { return prologueCb; } - void compile(const PICAShader& shaderUnit); -}; - -#endif // arm64 recompiler check diff --git a/include/PICA/dynapica/shader_rec_emitter_x64.hpp b/include/PICA/dynapica/shader_rec_emitter_x64.hpp deleted file mode 100644 index 0338911c..00000000 --- a/include/PICA/dynapica/shader_rec_emitter_x64.hpp +++ /dev/null @@ -1,152 +0,0 @@ -#pragma once - -// Only do anything if we're on an x64 target with JIT support enabled -#if defined(PANDA3DS_DYNAPICA_SUPPORTED) && defined(PANDA3DS_X64_HOST) -#include - -#include "PICA/shader.hpp" -#include "helpers.hpp" -#include "logger.hpp" -#include "x64_regs.hpp" -#include "xbyak/xbyak.h" -#include "xbyak/xbyak_util.h" - -class ShaderEmitter : public Xbyak::CodeGenerator { - static constexpr size_t executableMemorySize = PICAShader::maxInstructionCount * 96; // How much executable memory to alloc for each shader - // Allocate some extra space as padding for security purposes in the extremely unlikely occasion we manage to overflow the above size - static constexpr size_t allocSize = executableMemorySize + 0x1000; - - // If the swizzle field is this value then the swizzle pattern is .xyzw so we don't need a shuffle - static constexpr uint noSwizzle = 0x1B; - - using f24 = Floats::f24; - using vec4f = std::array; - - // An array of labels (incl pointers) to each compiled (to x64) PICA instruction - std::array instructionLabels; - // A vector of PCs that can potentially return based on the state of the PICA callstack. - // Filled before compiling a shader by scanning the code for call instructions - std::vector returnPCs; - - // Vector value of (-0.0, -0.0, -0.0, -0.0) for negating vectors via pxor - Label negateVector; - // Vector value of (1.0, 1.0, 1.0, 1.0) for SLT(i)/SGE(i) - Label onesVector; - - u32 recompilerPC = 0; // PC the recompiler is currently recompiling @ - u32 loopLevel = 0; // The current loop nesting level (0 = not in a loop) - - bool haveSSE4_1 = false; // Shows if the CPU supports SSE4.1 - bool haveAVX = false; // Shows if the CPU supports AVX (NOT AVX2, NOT AVX512. Regular AVX) - bool haveFMA3 = false; // Shows if the CPU supports FMA3 - - // Shows whether the loaded shader has any log2 and exp2 instructions - bool codeHasLog2 = false; - bool codeHasExp2 = false; - - Xbyak::Label log2Func, exp2Func; - Xbyak::Label emitLog2Func(); - Xbyak::Label emitExp2Func(); - Xbyak::util::Cpu cpuCaps; - - // Compile all instructions from [current recompiler PC, end) - void compileUntil(const PICAShader& shaderUnit, u32 endPC); - // Compile instruction "instr" - void compileInstruction(const PICAShader& shaderUnit); - - bool isCall(u32 instruction) { - const u32 opcode = instruction >> 26; - return (opcode == ShaderOpcodes::CALL) || (opcode == ShaderOpcodes::CALLC) || (opcode == ShaderOpcodes::CALLU); - } - - // Scan the shader code for call instructions to fill up the returnPCs vector before starting compilation - // We also scan for log2/exp2 instructions to see whether to emit the relevant functions - void scanCode(const PICAShader& shaderUnit); - - // Load register with number "srcReg" indexed by index "idx" into the xmm register "reg" - template - void loadRegister(Xmm dest, const PICAShader& shader, u32 src, u32 idx, u32 operandDescriptor); - void storeRegister(Xmm source, const PICAShader& shader, u32 dest, u32 operandDescriptor); - - const vec4f& getSourceRef(const PICAShader& shader, u32 src); - const vec4f& getDestRef(const PICAShader& shader, u32 dest); - - // Check the value of the cmp register for instructions like ifc and callc - // Result is returned in the zero flag. If the comparison is true then zero == 1, else zero == 0 - void checkCmpRegister(const PICAShader& shader, u32 instruction); - - // Check the value of the bool uniform for instructions like ifu and callu - // Result is returned in the zero flag. If the comparison is true then zero == 0, else zero == 1 (Opposite of checkCmpRegister) - void checkBoolUniform(const PICAShader& shader, u32 instruction); - - // Prints a log. This is not meant to be used outside of debugging so it is very slow with our internal ABI. - void emitPrintLog(const PICAShader& shaderUnit); - static void printLog(const PICAShader& shaderUnit); - - // Instruction recompilation functions - void recADD(const PICAShader& shader, u32 instruction); - void recCALL(const PICAShader& shader, u32 instruction); - void recCALLC(const PICAShader& shader, u32 instruction); - void recCALLU(const PICAShader& shader, u32 instruction); - void recCMP(const PICAShader& shader, u32 instruction); - void recDP3(const PICAShader& shader, u32 instruction); - void recDP4(const PICAShader& shader, u32 instruction); - void recDPH(const PICAShader& shader, u32 instruction); - void recEMIT(const PICAShader& shader, u32 instruction); - void recEND(const PICAShader& shader, u32 instruction); - void recEX2(const PICAShader& shader, u32 instruction); - void recFLR(const PICAShader& shader, u32 instruction); - void recIFC(const PICAShader& shader, u32 instruction); - void recIFU(const PICAShader& shader, u32 instruction); - void recJMPC(const PICAShader& shader, u32 instruction); - void recJMPU(const PICAShader& shader, u32 instruction); - void recLG2(const PICAShader& shader, u32 instruction); - void recLOOP(const PICAShader& shader, u32 instruction); - void recMAD(const PICAShader& shader, u32 instruction); - void recMAX(const PICAShader& shader, u32 instruction); - void recMIN(const PICAShader& shader, u32 instruction); - void recMOVA(const PICAShader& shader, u32 instruction); - void recMOV(const PICAShader& shader, u32 instruction); - void recMUL(const PICAShader& shader, u32 instruction); - void recRCP(const PICAShader& shader, u32 instruction); - void recRSQ(const PICAShader& shader, u32 instruction); - void recSETEMIT(const PICAShader& shader, u32 instruction); - void recSGE(const PICAShader& shader, u32 instruction); - void recSLT(const PICAShader& shader, u32 instruction); - - MAKE_LOG_FUNCTION(log, shaderJITLogger) - - public: - // Callback type used for instructions - using InstructionCallback = const void (*)(PICAShader& shaderUnit); - // Callback type used for the JIT prologue. This is what the caller will call - using PrologueCallback = const void (*)(PICAShader& shaderUnit, InstructionCallback cb); - - PrologueCallback prologueCb = nullptr; - - // Initialize our emitter with "allocSize" bytes of RWX memory - ShaderEmitter() : Xbyak::CodeGenerator(allocSize) { - cpuCaps = Xbyak::util::Cpu(); - - haveSSE4_1 = cpuCaps.has(Xbyak::util::Cpu::tSSE41); - haveAVX = cpuCaps.has(Xbyak::util::Cpu::tAVX); - haveFMA3 = cpuCaps.has(Xbyak::util::Cpu::tFMA); - - if (!cpuCaps.has(Xbyak::util::Cpu::tSSE3)) { - Helpers::panic("This CPU does not support SSE3. Please use the shader interpreter instead"); - } - } - - void compile(const PICAShader& shaderUnit); - - // PC must be a valid entrypoint here. It doesn't have that much overhead in this case, so we use std::array<>::at() to assert it does - InstructionCallback getInstructionCallback(u32 pc) { - // Cast away the constness because casting to a function pointer is hard otherwise. Legal as long as we don't write to *ptr - uint8_t* ptr = const_cast(instructionLabels.at(pc).getAddress()); - return reinterpret_cast(ptr); - } - - PrologueCallback getPrologueCallback() { return prologueCb; } -}; - -#endif // x64 recompiler check \ No newline at end of file diff --git a/include/PICA/dynapica/vertex_loader_rec.hpp b/include/PICA/dynapica/vertex_loader_rec.hpp deleted file mode 100644 index 99cc531e..00000000 --- a/include/PICA/dynapica/vertex_loader_rec.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "renderer_gl/renderer_gl.hpp" -#include "x64_regs.hpp" - -// Recompiler that takes the current vertex attribute configuration, ie the format of vertices (VAO in OpenGL) and emits optimized -// code in our CPU's native architecture for loading vertices. Unimplemented at the moment, we've only got a skeleton of it here for later - -class VertexLoaderJIT { - using PICARegs = const std::array&; - using Callback = void(*)(Vertex* output, size_t count); // A function pointer to JIT-emitted code - Callback compileConfig(PICARegs regs); - -public: -#if defined(PANDA3DS_DYNAPICA_SUPPORTED) && defined(PANDA3DS_X64_HOST) - #define PANDA3DS_VERTEX_LOADER_JIT_SUPPORTED - - void loadVertices(Vertex* output, size_t count, PICARegs regs); - static constexpr bool isAvailable() { return true; } - -#else - void loadVertices(Vertex* output, size_t count, PICARegs regs) { - Helpers::panic("Vertex Loader JIT: Tried to load vertices with JIT on platform that does not support vertex loader jit"); - } - - static constexpr bool isAvailable() { return false; } -#endif -}; \ No newline at end of file diff --git a/include/PICA/dynapica/x64_regs.hpp b/include/PICA/dynapica/x64_regs.hpp deleted file mode 100644 index 16bc7ca3..00000000 --- a/include/PICA/dynapica/x64_regs.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once - -#ifdef PANDA3DS_X64_HOST -#include "xbyak/xbyak.h" -using namespace Xbyak; -using namespace Xbyak::util; - -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) -#define PANDA3DS_MS_ABI -constexpr Reg32 arg1 = ecx; // register where first arg is stored -constexpr Reg32 arg2 = edx; // register where second arg is stored -constexpr Reg32 arg3 = r8d; // register where third arg is stored -constexpr Reg32 arg4 = r9d; // register where fourth arg is stored - -// Similar for floating point and vector arguemnts. -constexpr Xmm arg1f = xmm0; -constexpr Xmm arg2f = xmm1; -constexpr Xmm arg3f = xmm2; -constexpr Xmm arg4f = xmm3; - -constexpr bool isWindows() { return true; } - -#else // System V calling convention -#define PANDA3DS_SYSV_ABI -constexpr Reg32 arg1 = edi; -constexpr Reg32 arg2 = esi; -constexpr Reg32 arg3 = edx; -constexpr Reg32 arg4 = ecx; - -constexpr Xmm arg1f = xmm0; -constexpr Xmm arg2f = xmm1; -constexpr Xmm arg3f = xmm2; -constexpr Xmm arg4f = xmm3; -constexpr Xmm arg5f = xmm4; -constexpr Xmm arg6f = xmm5; -constexpr Xmm arg7f = xmm6; -constexpr Xmm arg8f = xmm7; - -constexpr bool isWindows() { return false; } -#endif -#endif // PANDA3DS_X64_HOST \ No newline at end of file diff --git a/include/PICA/float_types.hpp b/include/PICA/float_types.hpp deleted file mode 100644 index 3012ac74..00000000 --- a/include/PICA/float_types.hpp +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright 2015 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. -// Slightly adapted for the purposes of this project -#pragma once - -#include -#include -#include "helpers.hpp" - -namespace Floats { - /** - * Template class for converting arbitrary Pica float types to IEEE 754 32-bit single-precision - * floating point. - * - * When decoding, format is as follows: - * - The first `M` bits are the mantissa - * - The next `E` bits are the exponent - * - The last bit is the sign bit - * - * @todo Verify on HW if this conversion is sufficiently accurate. - */ - template - struct Float { - public: - static Float fromFloat32(float val) { - Float ret; - ret.value = val; - return ret; - } - - static Float fromRaw(u32 hex) { - Float res; - - const int width = M + E + 1; - const int bias = 128 - (1 << (E - 1)); - int exponent = (hex >> M) & ((1 << E) - 1); - const unsigned mantissa = hex & ((1 << M) - 1); - const unsigned sign = (hex >> (E + M)) << 31; - - if (hex & ((1 << (width - 1)) - 1)) { - if (exponent == (1 << E) - 1) - exponent = 255; - else - exponent += bias; - hex = sign | (mantissa << (23 - M)) | (exponent << 23); - } - else { - hex = sign; - } - - std::memcpy(&res.value, &hex, sizeof(float)); - - return res; - } - - static Float zero() { - return fromFloat32(0.f); - } - - // Not recommended for anything but logging - float toFloat32() const { - return value; - } - - double toFloat64() const { - return static_cast(value); - } - - operator float() { - return toFloat32(); - } - - operator double() { - return toFloat64(); - } - - Float operator*(const Float& flt) const { - float result = value * flt.toFloat32(); - // PICA gives 0 instead of NaN when multiplying by inf - if (std::isnan(result)) - if (!std::isnan(value) && !std::isnan(flt.toFloat32())) - result = 0.f; - return Float::fromFloat32(result); - } - - Float operator/(const Float& flt) const { - return Float::fromFloat32(toFloat32() / flt.toFloat32()); - } - - Float operator+(const Float& flt) const { - return Float::fromFloat32(toFloat32() + flt.toFloat32()); - } - - Float operator-(const Float& flt) const { - return Float::fromFloat32(toFloat32() - flt.toFloat32()); - } - - Float& operator*=(const Float& flt) { - value = operator*(flt).value; - return *this; - } - - Float& operator/=(const Float& flt) { - value /= flt.toFloat32(); - return *this; - } - - Float& operator+=(const Float& flt) { - value += flt.toFloat32(); - return *this; - } - - Float& operator-=(const Float& flt) { - value -= flt.toFloat32(); - return *this; - } - - Float operator-() const { - return Float::fromFloat32(-toFloat32()); - } - - bool operator<(const Float& flt) const { - return toFloat32() < flt.toFloat32(); - } - - bool operator>(const Float& flt) const { - return toFloat32() > flt.toFloat32(); - } - - bool operator>=(const Float& flt) const { - return toFloat32() >= flt.toFloat32(); - } - - bool operator<=(const Float& flt) const { - return toFloat32() <= flt.toFloat32(); - } - - bool operator==(const Float& flt) const { - return toFloat32() == flt.toFloat32(); - } - - bool operator!=(const Float& flt) const { - return toFloat32() != flt.toFloat32(); - } - - private: - static constexpr unsigned MASK = (1 << (M + E + 1)) - 1; - static constexpr unsigned MANTISSA_MASK = (1 << M) - 1; - static constexpr unsigned EXPONENT_MASK = (1 << E) - 1; - - // Stored as a regular float, merely for convenience - // TODO: Perform proper arithmetic on this! - float value; - }; - - using f24 = Float<16, 7>; - using f20 = Float<12, 7>; - using f16 = Float<10, 5>; - -} // namespace Floats diff --git a/include/PICA/gpu.hpp b/include/PICA/gpu.hpp deleted file mode 100644 index 2336493c..00000000 --- a/include/PICA/gpu.hpp +++ /dev/null @@ -1,170 +0,0 @@ -#pragma once -#include - -#include "PICA/dynapica/shader_rec.hpp" -#include "PICA/float_types.hpp" -#include "PICA/pica_vertex.hpp" -#include "PICA/regs.hpp" -#include "PICA/shader_unit.hpp" -#include "config.hpp" -#include "helpers.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "renderer.hpp" - -class GPU { - static constexpr u32 regNum = 0x300; - static constexpr u32 extRegNum = 0x1000; - - using vec4f = std::array; - using Registers = std::array; // Internal registers (named registers in short since they're the main ones) - using ExternalRegisters = std::array; - - Memory& mem; - EmulatorConfig& config; - ShaderUnit shaderUnit; - ShaderJIT shaderJIT; // Doesn't do anything if JIT is disabled or not supported - - u8* vram = nullptr; - MAKE_LOG_FUNCTION(log, gpuLogger) - - static constexpr u32 maxAttribCount = 12; // Up to 12 vertex attributes - static constexpr u32 vramSize = u32(6_MB); - Registers regs; // GPU internal registers - std::array currentAttributes; // Vertex attributes before being passed to the shader - - std::array immediateModeAttributes; // Vertex attributes uploaded via immediate mode submission - std::array immediateModeVertices; - uint immediateModeVertIndex; - uint immediateModeAttrIndex; // Index of the immediate mode attribute we're uploading - - template - void drawArrays(); - - // Silly method of avoiding linking problems. TODO: Change to something less silly - void drawArrays(bool indexed); - - struct AttribInfo { - u32 offset = 0; // Offset from base vertex array - int size = 0; // Bytes per vertex - u32 config1 = 0; - u32 config2 = 0; - u32 componentCount = 0; // Number of components for the attribute - - u64 getConfigFull() { return u64(config1) | (u64(config2) << 32); } - }; - - u64 getVertexShaderInputConfig() { - return u64(regs[PICA::InternalRegs::VertexShaderInputCfgLow]) | (u64(regs[PICA::InternalRegs::VertexShaderInputCfgHigh]) << 32); - } - - std::array attributeInfo; // Info for each of the 12 attributes - u32 totalAttribCount = 0; // Number of vertex attributes to send to VS - u32 fixedAttribMask = 0; // Which attributes are fixed? - - u32 fixedAttribIndex = 0; // Which fixed attribute are we writing to ([0, 11] range) - u32 fixedAttribCount = 0; // How many attribute components have we written? When we get to 4 the attr will actually get submitted - std::array fixedAttrBuff; // Buffer to hold fixed attributes in until they get submitted - - // Command processor pointers for GPU command lists - u32* cmdBuffStart = nullptr; - u32* cmdBuffEnd = nullptr; - u32* cmdBuffCurr = nullptr; - - std::unique_ptr renderer; - PICA::Vertex getImmediateModeVertex(); - - public: - // 256 entries per LUT with each LUT as its own row forming a 2D image 256 * LUT_COUNT - // Encoded in PICA native format - static constexpr size_t LightingLutSize = PICA::Lights::LUT_Count * 256; - std::array lightingLUT; - - // Used to prevent uploading the lighting_lut on every draw call - // Set to true when the CPU writes to the lighting_lut - // Set to false by the renderer when the lighting_lut is uploaded ot the GPU - bool lightingLUTDirty = false; - - GPU(Memory& mem, EmulatorConfig& config); - void display() { renderer->display(); } - void screenshot(const std::string& name) { renderer->screenshot(name); } - void deinitGraphicsContext() { renderer->deinitGraphicsContext(); } - -#if defined(PANDA3DS_FRONTEND_SDL) - void initGraphicsContext(SDL_Window* window) { renderer->initGraphicsContext(window); } -#elif defined(PANDA3DS_FRONTEND_QT) - void initGraphicsContext(GL::Context* context) { renderer->initGraphicsContext(context); } -#endif - - void fireDMA(u32 dest, u32 source, u32 size); - void reset(); - - Registers& getRegisters() { return regs; } - ExternalRegisters& getExtRegisters() { return externalRegs; } - void startCommandList(u32 addr, u32 size); - - // Used by the GSP GPU service for readHwRegs/writeHwRegs/writeHwRegsMasked - u32 readReg(u32 address); - void writeReg(u32 address, u32 value); - - u32 readExternalReg(u32 index); - void writeExternalReg(u32 index, u32 value); - - // Used when processing GPU command lists - u32 readInternalReg(u32 index); - void writeInternalReg(u32 index, u32 value, u32 mask); - - // Used for setting the size of the window we'll be outputting graphics to - void setOutputSize(u32 width, u32 height) { renderer->setOutputSize(width, height); } - - // TODO: Emulate the transfer engine & its registers - // Then this can be emulated by just writing the appropriate values there - void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) { renderer->clearBuffer(startAddress, endAddress, value, control); } - - // TODO: Emulate the transfer engine & its registers - // Then this can be emulated by just writing the appropriate values there - void displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) { - renderer->displayTransfer(inputAddr, outputAddr, inputSize, outputSize, flags); - } - - void textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) { - renderer->textureCopy(inputAddr, outputAddr, totalBytes, inputSize, outputSize, flags); - } - - // Read a value of type T from physical address paddr - // This is necessary because vertex attribute fetching uses physical addresses - template - T readPhysical(u32 paddr) { - if (paddr >= PhysicalAddrs::FCRAM && paddr <= PhysicalAddrs::FCRAMEnd) { - u8* fcram = mem.getFCRAM(); - u32 index = paddr - PhysicalAddrs::FCRAM; - - return *(T*)&fcram[index]; - } else { - Helpers::panic("[PICA] Read unimplemented paddr %08X", paddr); - } - } - - // Get a pointer of type T* to the data starting from physical address paddr - template - T* getPointerPhys(u32 paddr, u32 size = 0) { - if (paddr >= PhysicalAddrs::FCRAM && paddr + size <= PhysicalAddrs::FCRAMEnd) { - u8* fcram = mem.getFCRAM(); - u32 index = paddr - PhysicalAddrs::FCRAM; - - return (T*)&fcram[index]; - } else if (paddr >= PhysicalAddrs::VRAM && paddr + size <= PhysicalAddrs::VRAMEnd) { - u32 index = paddr - PhysicalAddrs::VRAM; - return (T*)&vram[index]; - } else [[unlikely]] { - Helpers::panic("[GPU] Tried to access unknown physical address: %08X", paddr); - } - } - - Renderer* getRenderer() { return renderer.get(); } - private: - // GPU external registers - // We have them in the end of the struct for cache locality reasons. Tl;dr we want the more commonly used things to be packed in the start - // Of the struct, instead of externalRegs being in the middle - ExternalRegisters externalRegs; -}; diff --git a/include/PICA/pica_hash.hpp b/include/PICA/pica_hash.hpp deleted file mode 100644 index 32d892b7..00000000 --- a/include/PICA/pica_hash.hpp +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once -#include -#include - -// Defines to pick which hash algorithm to use for the PICA (For hashing shaders, etc) -// Please only define one of them -// Available algorithms: -// xxh3: 64-bit non-cryptographic hash using SIMD, default. -// Google CityHash64: 64-bit non-cryptographic hash, generated using regular 64-bit arithmetic - -//#define PANDA3DS_PICA_CITYHASH -#define PANDA3DS_PICA_XXHASH3 - -namespace PICAHash { - #if defined(PANDA3DS_PICA_CITYHASH) || defined(PANDA3DS_PICA_XXHASH3) - using HashType = std::uint64_t; - #endif - - HashType computeHash(const char* buf, std::size_t len); -} // namespace PICAHash \ No newline at end of file diff --git a/include/PICA/pica_vertex.hpp b/include/PICA/pica_vertex.hpp deleted file mode 100644 index 800dff9a..00000000 --- a/include/PICA/pica_vertex.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once -#include "PICA/float_types.hpp" -#include - -namespace PICA { - // A representation of the output vertex as it comes out of the vertex shader, with padding and all - struct Vertex { - using vec2f = std::array; - using vec3f = std::array; - using vec4f = std::array; - - union { - struct { - vec4f positions; // Vertex position - vec4f quaternion; // Quaternion specifying the normal/tangent frame (for fragment lighting) - vec4f colour; // Vertex color - vec2f texcoord0; // Texcoords for texture unit 0 (Only U and V, W is stored separately for 3D textures!) - vec2f texcoord1; // Texcoords for TU 1 - Floats::f24 texcoord0_w; // W component for texcoord 0 if using a 3D texture - u32 padding; // Unused - - vec3f view; // View vector (for fragment lighting) - u32 padding2; // Unused - vec2f texcoord2; // Texcoords for TU 2 - } s; - - // The software, non-accelerated vertex loader writes here and then reads specific components from the above struct - Floats::f24 raw[0x20]; - }; - Vertex() {} - }; -} // namespace PICA - -// Float is used here instead of Floats::f24 to ensure that Floats::f24 is properly sized for direct interpretations as a float by the render backend -#define ASSERT_POS(member, pos) static_assert(offsetof(PICA::Vertex, s.member) == pos * sizeof(float), "PICA::Vertex struct is broken!"); - -ASSERT_POS(positions, 0) -ASSERT_POS(quaternion, 4) -ASSERT_POS(colour, 8) -ASSERT_POS(texcoord0, 12) -ASSERT_POS(texcoord1, 14) -ASSERT_POS(texcoord0_w, 16) -ASSERT_POS(view, 18) -ASSERT_POS(texcoord2, 22) -#undef ASSERT_POS \ No newline at end of file diff --git a/include/PICA/regs.hpp b/include/PICA/regs.hpp deleted file mode 100644 index 70cecf7b..00000000 --- a/include/PICA/regs.hpp +++ /dev/null @@ -1,347 +0,0 @@ -#pragma once -#include "helpers.hpp" - -namespace PICA { - namespace InternalRegs { - enum : u32 { - // Rasterizer registers - ViewportWidth = 0x41, - ViewportInvw = 0x42, - ViewportHeight = 0x43, - ViewportInvh = 0x44, - - // Clipping plane control - ClipEnable = 0x47, - ClipData0 = 0x48, - ClipData1 = 0x49, - ClipData2 = 0x4A, - ClipData3 = 0x4B, - - DepthScale = 0x4D, - DepthOffset = 0x4E, - ShaderOutputCount = 0x4F, - ShaderOutmap0 = 0x50, - - ViewportXY = 0x68, - DepthmapEnable = 0x6D, - - // Texture registers - TexUnitCfg = 0x80, - Tex0BorderColor = 0x81, - Tex1BorderColor = 0x91, - Tex2BorderColor = 0x99, - TexEnvUpdateBuffer = 0xE0, - TexEnvBufferColor = 0xFD, - - // clang-format off - #define defineTexEnv(index, offset) \ - TexEnv##index##Source = offset + 0, \ - TexEnv##index##Operand = offset + 1, \ - TexEnv##index##Combiner = offset + 2, \ - TexEnv##index##Color = offset + 3, \ - TexEnv##index##Scale = offset + 4, - - defineTexEnv(0, 0xC0) - defineTexEnv(1, 0xC8) - defineTexEnv(2, 0xD0) - defineTexEnv(3, 0xD8) - defineTexEnv(4, 0xF0) - defineTexEnv(5, 0xF8) - - #undef defineTexEnv - // clang-format on - - // Framebuffer registers - ColourOperation = 0x100, - BlendFunc = 0x101, - LogicOp = 0x102, - BlendColour = 0x103, - AlphaTestConfig = 0x104, - StencilTest = 0x105, - StencilOp = 0x106, - DepthAndColorMask = 0x107, - DepthBufferWrite = 0x115, - DepthBufferFormat = 0x116, - ColourBufferFormat = 0x117, - DepthBufferLoc = 0x11C, - ColourBufferLoc = 0x11D, - FramebufferSize = 0x11E, - - //LightingRegs - LightingLUTIndex = 0x01C5, - LightingLUTData0 = 0x01C8, - LightingLUTData1 = 0x01C9, - LightingLUTData2 = 0x01CA, - LightingLUTData3 = 0x01CB, - LightingLUTData4 = 0x01CC, - LightingLUTData5 = 0x01CD, - LightingLUTData6 = 0x01CE, - LightingLUTData7 = 0x01CF, - - // Geometry pipeline registers - VertexAttribLoc = 0x200, - AttribFormatLow = 0x201, - AttribFormatHigh = 0x202, - IndexBufferConfig = 0x227, - VertexCountReg = 0x228, - VertexOffsetReg = 0x22A, - SignalDrawArrays = 0x22E, - SignalDrawElements = 0x22F, - - Attrib0Offset = 0x203, - Attrib1Offset = 0x206, - Attrib2Offset = 0x209, - Attrib3Offset = 0x20C, - Attrib4Offset = 0x20F, - Attrib5Offset = 0x212, - Attrib6Offset = 0x215, - Attrib7Offset = 0x218, - Attrib8Offset = 0x21B, - Attrib9Offset = 0x21E, - Attrib10Offset = 0x221, - Attrib11Offset = 0x224, - - Attrib0Config2 = 0x205, - Attrib1Config2 = 0x208, - Attrib2Config2 = 0x20B, - Attrib3Config2 = 0x20E, - Attrib4Config2 = 0x211, - Attrib5Config2 = 0x214, - Attrib6Config2 = 0x217, - Attrib7Config2 = 0x21A, - Attrib8Config2 = 0x21D, - Attrib9Config2 = 0x220, - Attrib10Config2 = 0x223, - Attrib11Config2 = 0x226, - - AttribInfoStart = Attrib0Offset, - AttribInfoEnd = Attrib11Config2, - - // Fixed attribute registers - FixedAttribIndex = 0x232, - FixedAttribData0 = 0x233, - FixedAttribData1 = 0x234, - FixedAttribData2 = 0x235, - - // Command processor registers - CmdBufSize0 = 0x238, - CmdBufSize1 = 0x239, - CmdBufAddr0 = 0x23A, - CmdBufAddr1 = 0x23B, - CmdBufTrigger0 = 0x23C, - CmdBufTrigger1 = 0x23D, - - PrimitiveConfig = 0x25E, - PrimitiveRestart = 0x25F, - - // Vertex shader registers - VertexShaderAttrNum = 0x242, - VertexBoolUniform = 0x2B0, - VertexIntUniform0 = 0x2B1, - VertexIntUniform1 = 0x2B2, - VertexIntUniform2 = 0x2B3, - VertexIntUniform3 = 0x2B4, - - VertexShaderEntrypoint = 0x2BA, - VertexShaderTransferEnd = 0x2BF, - VertexFloatUniformIndex = 0x2C0, - VertexFloatUniformData0 = 0x2C1, - VertexFloatUniformData1 = 0x2C2, - VertexFloatUniformData2 = 0x2C3, - VertexFloatUniformData3 = 0x2C4, - VertexFloatUniformData4 = 0x2C5, - VertexFloatUniformData5 = 0x2C6, - VertexFloatUniformData6 = 0x2C7, - VertexFloatUniformData7 = 0x2C8, - - VertexShaderInputBufferCfg = 0x2B9, - VertexShaderInputCfgLow = 0x2BB, - VertexShaderInputCfgHigh = 0x2BC, - - VertexShaderTransferIndex = 0x2CB, - VertexShaderData0 = 0x2CC, - VertexShaderData1 = 0x2CD, - VertexShaderData2 = 0x2CE, - VertexShaderData3 = 0x2CF, - VertexShaderData4 = 0x2D0, - VertexShaderData5 = 0x2D1, - VertexShaderData6 = 0x2D2, - VertexShaderData7 = 0x2D3, - VertexShaderOpDescriptorIndex = 0x2D5, - VertexShaderOpDescriptorData0 = 0x2D6, - VertexShaderOpDescriptorData1 = 0x2D7, - VertexShaderOpDescriptorData2 = 0x2D8, - VertexShaderOpDescriptorData3 = 0x2D9, - VertexShaderOpDescriptorData4 = 0x2DA, - VertexShaderOpDescriptorData5 = 0x2DB, - VertexShaderOpDescriptorData6 = 0x2DC, - VertexShaderOpDescriptorData7 = 0x2DD, - }; - } - - namespace ExternalRegs { - enum : u32 { - MemFill1BufferStartPaddr = 0x3, - MemFill1BufferEndPAddr = 0x4, - MemFill1Value = 0x5, - MemFill1Control = 0x6, - MemFill2BufferStartPaddr = 0x7, - MemFill2BufferEndPAddr = 0x8, - MemFill2Value = 0x9, - MemFill2Control = 0xA, - VramBankControl = 0xB, - GPUBusy = 0xC, - BacklightControl = 0xBC, - Framebuffer0Size = 0x118, - Framebuffer0AFirstAddr = 0x119, - Framebuffer0ASecondAddr = 0x11A, - Framebuffer0Config = 0x11B, - Framebuffer0Select = 0x11D, - Framebuffer0Stride = 0x123, - Framebuffer0BFirstAddr = 0x124, - Framebuffer0BSecondAddr = 0x125, - Framebuffer1Size = 0x156, - Framebuffer1AFirstAddr = 0x159, - Framebuffer1ASecondAddr = 0x15A, - Framebuffer1Config = 0x15B, - Framebuffer1Select = 0x15D, - Framebuffer1Stride = 0x163, - Framebuffer1BFirstAddr = 0x164, - Framebuffer1BSecondAddr = 0x165, - TransferInputPAddr = 0x2FF, - TransferOutputPAddr = 0x300, - DisplayTransferOutputDim = 0x301, - DisplayTransferInputDim = 0x302, - TransferFlags = 0x303, - TransferTrigger = 0x305, - TextureCopyTotalBytes = 0x307, - TextureCopyInputLineGap = 0x308, - TextureCopyOutputLineGap = 0x309, - }; - } - - enum class Scaling : u32 { - None = 0, - X = 1, - XY = 2, - }; - - namespace Lights { - enum : u32 { - LUT_D0 = 0, - LUT_D1, - LUT_FR, - LUT_RB, - LUT_RG, - LUT_RR, - LUT_SP0 = 0x8, - LUT_SP1, - LUT_SP2, - LUT_SP3, - LUT_SP4, - LUT_SP5, - LUT_SP6, - LUT_SP7, - LUT_DA0 = 0x10, - LUT_DA1, - LUT_DA2, - LUT_DA3, - LUT_DA4, - LUT_DA5, - LUT_DA6, - LUT_DA7, - LUT_Count - }; - } - - enum class TextureFmt : u32 { - RGBA8 = 0x0, - RGB8 = 0x1, - RGBA5551 = 0x2, - RGB565 = 0x3, - RGBA4 = 0x4, - IA8 = 0x5, - RG8 = 0x6, - I8 = 0x7, - A8 = 0x8, - IA4 = 0x9, - I4 = 0xA, - A4 = 0xB, - ETC1 = 0xC, - ETC1A4 = 0xD, - }; - - enum class ColorFmt : u32 { - RGBA8 = 0x0, - RGB8 = 0x1, - RGBA5551 = 0x2, - RGB565 = 0x3, - RGBA4 = 0x4, - }; - - enum class DepthFmt : u32 { - Depth16 = 0, - Unknown1 = 1, // Technically selectable, but function is unknown - Depth24 = 2, - Depth24Stencil8 = 3, - }; - - // Returns the string representation of a texture format - inline constexpr const char* textureFormatToString(TextureFmt fmt) { - switch (fmt) { - case TextureFmt::RGBA8: return "RGBA8"; - case TextureFmt::RGB8: return "RGB8"; - case TextureFmt::RGBA5551: return "RGBA5551"; - case TextureFmt::RGB565: return "RGB565"; - case TextureFmt::RGBA4: return "RGBA4"; - case TextureFmt::IA8: return "IA8"; - case TextureFmt::RG8: return "RG8"; - case TextureFmt::I8: return "I8"; - case TextureFmt::A8: return "A8"; - case TextureFmt::IA4: return "IA4"; - case TextureFmt::I4: return "I4"; - case TextureFmt::A4: return "A4"; - case TextureFmt::ETC1: return "ETC1"; - case TextureFmt::ETC1A4: return "ETC1A4"; - default: return "Unknown"; - } - } - - inline constexpr const char* textureFormatToString(ColorFmt fmt) { - return textureFormatToString(static_cast(fmt)); - } - - inline constexpr bool hasStencil(DepthFmt format) { return format == PICA::DepthFmt::Depth24Stencil8; } - - // Size occupied by each pixel in bytes - - // All formats are 16BPP except for RGBA8 (32BPP) and BGR8 (24BPP) - inline constexpr usize sizePerPixel(TextureFmt format) { - switch (format) { - case TextureFmt::RGB8: return 3; - case TextureFmt::RGBA8: return 4; - default: return 2; - } - } - - inline constexpr usize sizePerPixel(ColorFmt format) { - return sizePerPixel(static_cast(format)); - } - - inline constexpr usize sizePerPixel(DepthFmt format) { - switch (format) { - case DepthFmt::Depth16: return 2; - case DepthFmt::Depth24: return 3; - case DepthFmt::Depth24Stencil8: return 4; - default: return 1; // Invalid format - } - } - - enum class PrimType : u32 { - TriangleList = 0, - TriangleStrip = 1, - TriangleFan = 2, - GeometryPrimitive = 3, - }; - -} // namespace PICA diff --git a/include/PICA/shader.hpp b/include/PICA/shader.hpp deleted file mode 100644 index 5b05e0b7..00000000 --- a/include/PICA/shader.hpp +++ /dev/null @@ -1,296 +0,0 @@ -#pragma once -#include -#include -#include - -#include "PICA/float_types.hpp" -#include "PICA/pica_hash.hpp" -#include "helpers.hpp" - -enum class ShaderType { - Vertex, - Geometry, -}; - -namespace ShaderOpcodes { - enum : u32 { - ADD = 0x00, - DP3 = 0x01, - DP4 = 0x02, - DPH = 0x03, - DST = 0x04, - EX2 = 0x05, - LG2 = 0x06, - LIT = 0x07, - MUL = 0x08, - SGE = 0x09, - SLT = 0x0A, - FLR = 0x0B, - MAX = 0x0C, - MIN = 0x0D, - RCP = 0x0E, - RSQ = 0x0F, - MOVA = 0x12, - MOV = 0x13, - DPHI = 0x18, - DSTI = 0x19, - SGEI = 0x1A, - SLTI = 0x1B, - BREAK = 0x20, - NOP = 0x21, - END = 0x22, - BREAKC = 0x23, - CALL = 0x24, - CALLC = 0x25, - CALLU = 0x26, - IFU = 0x27, - IFC = 0x28, - LOOP = 0x29, - EMIT = 0x2A, - SETEMIT = 0x2B, - JMPC = 0x2C, - JMPU = 0x2D, - CMP1 = 0x2E, // Both of these instructions are CMP - CMP2 = 0x2F, - MAD = 0x38 // Everything between 0x38-0x3F is a MAD but fuck it - }; -} - -// Note: All PICA f24 vec4 registers must have the alignas(16) specifier to make them easier to access in SSE/NEON code in the JIT -class PICAShader { - using f24 = Floats::f24; - using vec4f = std::array; - - struct Loop { - u32 startingPC; // PC at the start of the loop - u32 endingPC; // PC at the end of the loop - u32 iterations; // How many iterations of the loop to run - u32 increment; // How much to increment the loop counter after each iteration - }; - - // Info for ifc/ifu stack - struct ConditionalInfo { - u32 endingPC; // PC at the end of the if block (= DST) - u32 newPC; // PC after the if block is done executing (= DST + NUM) - }; - - struct CallInfo { - u32 endingPC; // PC at the end of the function - u32 returnPC; // PC to return to after the function ends - }; - - int bufferIndex; // Index of the next instruction to overwrite for shader uploads - int opDescriptorIndex; // Index of the next operand descriptor we'll overwrite - u32 floatUniformIndex = 0; // Which float uniform are we writing to? ([0, 95] range) - u32 floatUniformWordCount = 0; // How many words have we buffered for the current uniform transfer? - bool f32UniformTransfer = false; // Are we transferring an f32 uniform or an f24 uniform? - - std::array floatUniformBuffer; // Buffer for temporarily caching float uniform data - - public: - // These are placed close to the temp registers and co because it helps the JIT generate better code - u32 entrypoint = 0; // Initial shader PC - u32 boolUniform; - std::array, 4> intUniforms; - alignas(16) std::array floatUniforms; - - alignas(16) std::array fixedAttributes; // Fixed vertex attributes - alignas(16) std::array inputs; // Attributes passed to the shader - alignas(16) std::array outputs; - alignas(16) vec4f dummy = vec4f({f24::zero(), f24::zero(), f24::zero(), f24::zero()}); // Dummy register used by the JIT - - protected: - std::array operandDescriptors; - alignas(16) std::array tempRegisters; // General purpose registers the shader can use for temp values - std::array addrRegister; // Address register - bool cmpRegister[2]; // Comparison registers where the result of CMP is stored in - u32 loopCounter; - - u32 pc = 0; // Program counter: Index of the next instruction we're going to execute - u32 loopIndex = 0; // The index of our loop stack (0 = empty, 4 = full) - u32 ifIndex = 0; // The index of our IF stack - u32 callIndex = 0; // The index of our CALL stack - - std::array loopInfo; - std::array conditionalInfo; - std::array callInfo; - ShaderType type; - - // We use a hashmap for matching 3DS shaders to their equivalent compiled code in our shader cache in the shader JIT - // We choose our hash type to be a 64-bit integer by default, as the collision chance is very tiny and generating it is decently optimal - // Ideally we want to be able to support multiple different types of hash depending on compilation settings, but let's get this working first - using Hash = PICAHash::HashType; - - Hash lastCodeHash = 0; // Last hash computed for the shader code (Used for the JIT caching mechanism) - Hash lastOpdescHash = 0; // Last hash computed for the operand descriptors (Also used for the JIT) - - bool codeHashDirty = false; - bool opdescHashDirty = false; - - // Add these as friend classes for the JIT so it has access to all important state - friend class ShaderJIT; - friend class ShaderEmitter; - - vec4f getSource(u32 source); - vec4f& getDest(u32 dest); - - private: - // Interpreter functions for the various shader functions - void add(u32 instruction); - void call(u32 instruction); - void callc(u32 instruction); - void callu(u32 instruction); - void cmp(u32 instruction); - void dp3(u32 instruction); - void dp4(u32 instruction); - void dphi(u32 instruction); - void ex2(u32 instruction); - void flr(u32 instruction); - void ifc(u32 instruction); - void ifu(u32 instruction); - void jmpc(u32 instruction); - void jmpu(u32 instruction); - void lg2(u32 instruction); - void loop(u32 instruction); - void mad(u32 instruction); - void madi(u32 instruction); - void max(u32 instruction); - void min(u32 instruction); - void mov(u32 instruction); - void mova(u32 instruction); - void mul(u32 instruction); - void rcp(u32 instruction); - void rsq(u32 instruction); - void sge(u32 instruction); - void sgei(u32 instruction); - void slt(u32 instruction); - void slti(u32 instruction); - - // src1, src2 and src3 have different negation & component swizzle bits in the operand descriptor - // https://problemkaputt.github.io/gbatek.htm#3dsgpushaderinstructionsetopcodesummary in the - // "Shader Operand Descriptors" section - template - vec4f swizzle(vec4f& source, u32 opDescriptor) { - vec4f ret; - u32 compSwizzle; - bool negate; - - using namespace Helpers; - if constexpr (sourceIndex == 1) { // SRC1 - negate = (getBit<4>(opDescriptor)) != 0; - compSwizzle = getBits<5, 8>(opDescriptor); - } else if constexpr (sourceIndex == 2) { // SRC2 - negate = (getBit<13>(opDescriptor)) != 0; - compSwizzle = getBits<14, 8>(opDescriptor); - } else if constexpr (sourceIndex == 3) { // SRC3 - negate = (getBit<22>(opDescriptor)) != 0; - compSwizzle = getBits<23, 8>(opDescriptor); - } - - // Iterate through every component of the swizzled vector in reverse order - // And get which source component's index to match it with - for (int comp = 0; comp < 4; comp++) { - int index = compSwizzle & 3; // Get index for this component - compSwizzle >>= 2; // Move to next component index - ret[3 - comp] = source[index]; - } - - // Negate result if the negate bit is set - if (negate) { - ret[0] = -ret[0]; - ret[1] = -ret[1]; - ret[2] = -ret[2]; - ret[3] = -ret[3]; - } - - return ret; - } - - template - vec4f getSourceSwizzled(u32 source, u32 opDescriptor) { - vec4f srcVector = getSource(source); - srcVector = swizzle(srcVector, opDescriptor); - - return srcVector; - } - - u8 getIndexedSource(u32 source, u32 index); - bool isCondTrue(u32 instruction); - - public: - static constexpr size_t maxInstructionCount = 4096; - std::array loadedShader; // Currently loaded & active shader - std::array bufferedShader; // Shader to be transferred when the SH_CODETRANSFER_END reg gets written to - - PICAShader(ShaderType type) : type(type) {} - - // Theese functions are in the header to be inlined more easily, though with LTO I hope I'll be able to move them - void finalize() { std::memcpy(&loadedShader[0], &bufferedShader[0], 4096 * sizeof(u32)); } - - void setBufferIndex(u32 index) { bufferIndex = index & 0xfff; } - void setOpDescriptorIndex(u32 index) { opDescriptorIndex = index & 0x7f; } - - void uploadWord(u32 word) { - if (bufferIndex >= 4095) { - Helpers::panic("o no, shader upload overflew"); - } - - bufferedShader[bufferIndex++] = word; - bufferIndex &= 0xfff; - - codeHashDirty = true; // Signal the JIT if necessary that the program hash has potentially changed - } - - void uploadDescriptor(u32 word) { - operandDescriptors[opDescriptorIndex++] = word; - opDescriptorIndex &= 0x7f; - - opdescHashDirty = true; // Signal the JIT if necessary that the program hash has potentially changed - } - - void setFloatUniformIndex(u32 word) { - floatUniformIndex = word & 0xff; - floatUniformWordCount = 0; - f32UniformTransfer = (word & 0x80000000) != 0; - } - - void uploadFloatUniform(u32 word) { - floatUniformBuffer[floatUniformWordCount++] = word; - if (floatUniformIndex >= 96) { - Helpers::panic("[PICA] Tried to write float uniform %d", floatUniformIndex); - } - - if ((f32UniformTransfer && floatUniformWordCount >= 4) || (!f32UniformTransfer && floatUniformWordCount >= 3)) { - vec4f& uniform = floatUniforms[floatUniformIndex++]; - floatUniformWordCount = 0; - - if (f32UniformTransfer) { - uniform[0] = f24::fromFloat32(*(float*)&floatUniformBuffer[3]); - uniform[1] = f24::fromFloat32(*(float*)&floatUniformBuffer[2]); - uniform[2] = f24::fromFloat32(*(float*)&floatUniformBuffer[1]); - uniform[3] = f24::fromFloat32(*(float*)&floatUniformBuffer[0]); - } else { - uniform[0] = f24::fromRaw(floatUniformBuffer[2] & 0xffffff); - uniform[1] = f24::fromRaw(((floatUniformBuffer[1] & 0xffff) << 8) | (floatUniformBuffer[2] >> 24)); - uniform[2] = f24::fromRaw(((floatUniformBuffer[0] & 0xff) << 16) | (floatUniformBuffer[1] >> 16)); - uniform[3] = f24::fromRaw(floatUniformBuffer[0] >> 8); - } - } - } - - void uploadIntUniform(int index, u32 word) { - using namespace Helpers; - - auto& u = intUniforms[index]; - u[0] = word & 0xff; - u[1] = getBits<8, 8>(word); - u[2] = getBits<16, 8>(word); - u[3] = getBits<24, 8>(word); - } - - void run(); - void reset(); - - Hash getCodeHash(); - Hash getOpdescHash(); -}; \ No newline at end of file diff --git a/include/PICA/shader_unit.hpp b/include/PICA/shader_unit.hpp deleted file mode 100644 index d8d93160..00000000 --- a/include/PICA/shader_unit.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once -#include "PICA/shader.hpp" - -class ShaderUnit { - -public: - PICAShader vs; // Vertex shader - PICAShader gs; // Geometry shader - - ShaderUnit() : vs(ShaderType::Vertex), gs(ShaderType::Geometry) {} - void reset(); -}; \ No newline at end of file diff --git a/include/action_replay.hpp b/include/action_replay.hpp deleted file mode 100644 index a6b97df9..00000000 --- a/include/action_replay.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#pragma once -#include -#include -#include - -#include "helpers.hpp" -#include "memory.hpp" -#include "services/hid.hpp" - -class ActionReplay { - using Cheat = std::vector; // A cheat is really just a bunch of 64-bit opcodes neatly encoded into 32-bit chunks - static constexpr size_t ifStackSize = 32; // TODO: How big is this, really? - - u32 offset1, offset2; // Memory offset registers. Non-persistent. - u32 data1, data2; // Data offset registers. Non-persistent. - u32 storage1, storage2; // Storage registers. Persistent. - - // When an instruction does not specify which offset or data register to use, we use the "active" one - // Which is by default #1 and may be changed by certain AR operations - u32 *activeOffset, *activeData, *activeStorage; - u32 ifStackIndex; // Our index in the if stack. Shows how many entries we have at the moment. - u32 loopStackIndex; // Same but for loops - std::bitset<32> ifStack; - - // Program counter - u32 pc = 0; - Memory& mem; - HIDService& hid; - - // Has the cheat ended? - bool running = false; - // Run 1 AR instruction - void runInstruction(const Cheat& cheat, u32 instruction); - - // Action Replay has a billion D-type opcodes so this handles all of them - void executeDType(const Cheat& cheat, u32 instruction); - - u8 read8(u32 addr); - u16 read16(u32 addr); - u32 read32(u32 addr); - - void write8(u32 addr, u8 value); - void write16(u32 addr, u16 value); - void write32(u32 addr, u32 value); - - void pushConditionBlock(bool condition); - - public: - ActionReplay(Memory& mem, HIDService& hid); - void runCheat(const Cheat& cheat); - void reset(); -}; \ No newline at end of file diff --git a/include/android_utils.hpp b/include/android_utils.hpp deleted file mode 100644 index 0e1a016a..00000000 --- a/include/android_utils.hpp +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -namespace AndroidUtils { - int openDocument(const char* directory, const char* mode); -} \ No newline at end of file diff --git a/include/applets/applet.hpp b/include/applets/applet.hpp deleted file mode 100644 index 48f20b03..00000000 --- a/include/applets/applet.hpp +++ /dev/null @@ -1,94 +0,0 @@ -#pragma once - -#include - -#include "helpers.hpp" -#include "kernel/kernel_types.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -namespace Applets { - namespace AppletIDs { - enum : u32 { - None = 0, - SysAppletMask = 0x100, - HomeMenu = 0x101, - AltMenu = 0x103, - Camera = 0x110, - Friends = 0x112, - GameNotes = 0x113, - Browser = 0x114, - InstructionManual = 0x115, - Notifications = 0x116, - Miiverse = 0x117, - MiiversePosting = 0x118, - AmiiboSettings = 0x119, - SysLibraryAppletMask = 0x200, - SoftwareKeyboard = 0x201, - MiiSelector = 0x202, - PNote = 0x204, // TODO: What dis? - SNote = 0x205, // What is this too? - ErrDisp = 0x206, - EshopMint = 0x207, - CirclePadProCalib = 0x208, - Notepad = 0x209, - Application = 0x300, - EshopTiger = 0x301, - LibraryAppletMask = 0x400, - SoftwareKeyboard2 = 0x401, - MiiSelector2 = 0x402, - Pnote2 = 0x404, - SNote2 = 0x405, - ErrDisp2 = 0x406, - EshopMint2 = 0x407, - CirclePadProCalib2 = 0x408, - Notepad2 = 0x409, - }; - } - - enum class APTSignal : u32 { - None = 0x0, - Wakeup = 0x1, - Request = 0x2, - Response = 0x3, - Exit = 0x4, - Message = 0x5, - HomeButtonSingle = 0x6, - HomeButtonDouble = 0x7, - DspSleep = 0x8, - DspWakeup = 0x9, - WakeupByExit = 0xA, - WakeupByPause = 0xB, - WakeupByCancel = 0xC, - WakeupByCancelAll = 0xD, - WakeupByPowerButtonClick = 0xE, - WakeupToJumpHome = 0xF, - RequestForSysApplet = 0x10, - WakeupToLaunchApplication = 0x11, - }; - - struct Parameter { - u32 senderID; // ID of the parameter sender - u32 destID; // ID of the app to receive parameter - u32 signal; // Signal type (eg request) - u32 object; // Some applets will also respond with shared memory handles for transferring data between the sender and called - std::vector data; // Misc data - }; - - class AppletBase { - protected: - Memory& mem; - std::optional& nextParameter; - - public: - virtual const char* name() = 0; - - // Called by APT::StartLibraryApplet and similar - virtual Result::HorizonResult start(const MemoryBlock* sharedMem, const std::vector& parameters, u32 appID) = 0; - // Transfer parameters from application -> applet - virtual Result::HorizonResult receiveParameter(const Parameter& parameter) = 0; - virtual void reset() = 0; - - AppletBase(Memory& mem, std::optional& nextParam) : mem(mem), nextParameter(nextParam) {} - }; -} // namespace Applets \ No newline at end of file diff --git a/include/applets/applet_manager.hpp b/include/applets/applet_manager.hpp deleted file mode 100644 index d8cfff12..00000000 --- a/include/applets/applet_manager.hpp +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once -#include - -#include "applets/error_applet.hpp" -#include "applets/mii_selector.hpp" -#include "applets/software_keyboard.hpp" -#include "helpers.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -namespace Applets { - class AppletManager { - MiiSelectorApplet miiSelector; - SoftwareKeyboardApplet swkbd; - ErrorApplet error; - std::optional nextParameter = std::nullopt; - - public: - AppletManager(Memory& mem); - void reset(); - AppletBase* getApplet(u32 id); - - Applets::Parameter glanceParameter(); - Applets::Parameter receiveParameter(); - }; -} // namespace Applets \ No newline at end of file diff --git a/include/applets/error_applet.hpp b/include/applets/error_applet.hpp deleted file mode 100644 index 4dcc319d..00000000 --- a/include/applets/error_applet.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#include "applets/applet.hpp" - -namespace Applets { - class ErrorApplet final : public AppletBase { - public: - virtual const char* name() override { return "Error/EULA Agreement"; } - virtual Result::HorizonResult start(const MemoryBlock* sharedMem, const std::vector& parameters, u32 appID) override; - virtual Result::HorizonResult receiveParameter(const Applets::Parameter& parameter) override; - virtual void reset() override; - - ErrorApplet(Memory& memory, std::optional& nextParam) : AppletBase(memory, nextParam) {} - }; -} // namespace Applets \ No newline at end of file diff --git a/include/applets/mii_selector.hpp b/include/applets/mii_selector.hpp deleted file mode 100644 index 36f9fe79..00000000 --- a/include/applets/mii_selector.hpp +++ /dev/null @@ -1,83 +0,0 @@ -#include - -#include "applets/applet.hpp" -#include "swap.hpp" - -namespace Applets { - struct MiiConfig { - u8 enableCancelButton; - u8 enableGuestMii; - u8 showOnTopScreen; - std::array pad1; - std::array title; - std::array pad2; - u8 showGuestMiis; - std::array pad3; - u32 initiallySelectedIndex; - std::array guestMiiWhitelist; - std::array userMiiWhitelist; - std::array pad4; - u32 magicValue; - }; - static_assert(sizeof(MiiConfig) == 0x104, "Mii config size is wrong"); - - // Some members of this struct are not properly aligned so we need pragma pack -#pragma pack(push, 1) - struct MiiData { - u8 version; - u8 miiOptions; - u8 miiPos; - u8 consoleID; - - u64_be systemID; - u32_be miiID; - std::array creatorMAC; - u16 padding; - - u16_be miiDetails; - std::array miiName; - u8 height; - u8 width; - - u8 faceStyle; - u8 faceDetails; - u8 hairStyle; - u8 hairDetails; - u32_be eyeDetails; - u32_be eyebrowDetails; - u16_be noseDetails; - u16_be mouthDetails; - u16_be moustacheDetails; - u16_be beardDetails; - u16_be glassesDetails; - u16_be moleDetails; - - std::array authorName; - }; -#pragma pack(pop) - static_assert(sizeof(MiiData) == 0x5C, "MiiData structure has incorrect size"); - - struct MiiResult { - u32_be returnCode; - u32_be isGuestMiiSelected; - u32_be selectedGuestMiiIndex; - MiiData selectedMiiData; - u16_be unknown1; - u16_be miiChecksum; - std::array guestMiiName; - }; - static_assert(sizeof(MiiResult) == 0x84, "MiiResult structure has incorrect size"); - - class MiiSelectorApplet final : public AppletBase { - public: - virtual const char* name() override { return "Mii Selector"; } - virtual Result::HorizonResult start(const MemoryBlock* sharedMem, const std::vector& parameters, u32 appID) override; - virtual Result::HorizonResult receiveParameter(const Applets::Parameter& parameter) override; - virtual void reset() override; - - MiiResult output; - MiiConfig config; - MiiResult getDefaultMii(); - MiiSelectorApplet(Memory& memory, std::optional& nextParam) : AppletBase(memory, nextParam) {} - }; -} // namespace Applets \ No newline at end of file diff --git a/include/applets/software_keyboard.hpp b/include/applets/software_keyboard.hpp deleted file mode 100644 index f753566d..00000000 --- a/include/applets/software_keyboard.hpp +++ /dev/null @@ -1,162 +0,0 @@ -#include - -#include "applets/applet.hpp" -#include "swap.hpp" - -namespace Applets { - // Software keyboard definitions adapted from libctru/Citra - // Keyboard input filtering flags. Allows the caller to specify what input is explicitly not allowed - namespace SoftwareKeyboardFilter { - enum Filter : u32 { - Digits = 1, // Disallow the use of more than a certain number of digits (0 or more) - At = 1 << 1, // Disallow the use of the @ sign. - Percent = 1 << 2, // Disallow the use of the % sign. - Backslash = 1 << 3, // Disallow the use of the \ sign. - Profanity = 1 << 4, // Disallow profanity using Nintendo's profanity filter. - Callback = 1 << 5, // Use a callback in order to check the input. - }; - } // namespace SoftwareKeyboardFilter - - // Keyboard features. - namespace SoftwareKeyboardFeature { - enum Feature { - Parental = 1, // Parental PIN mode. - DarkenTopScreen = 1 << 1, // Darken the top screen when the keyboard is shown. - PredictiveInput = 1 << 2, // Enable predictive input (necessary for Kanji input in JPN systems). - Multiline = 1 << 3, // Enable multiline input. - FixedWidth = 1 << 4, // Enable fixed-width mode. - AllowHome = 1 << 5, // Allow the usage of the HOME button. - AllowReset = 1 << 6, // Allow the usage of a software-reset combination. - AllowPower = 1 << 7, // Allow the usage of the POWER button. - DefaultQWERTY = 1 << 9, // Default to the QWERTY page when the keyboard is shown. - }; - } // namespace SoftwareKeyboardFeature - - class SoftwareKeyboardApplet final : public AppletBase { - public: - static constexpr int MAX_BUTTON = 3; // Maximum number of buttons that can be in the keyboard. - static constexpr int MAX_BUTTON_TEXT_LEN = 16; // Maximum button text length, in UTF-16 code units. - static constexpr int MAX_HINT_TEXT_LEN = 64; // Maximum hint text length, in UTF-16 code units. - static constexpr int MAX_CALLBACK_MSG_LEN = 256; // Maximum filter callback error message length, in UTF-16 code units. - - // Keyboard types - enum class SoftwareKeyboardType : u32 { - Normal, // Normal keyboard with several pages (QWERTY/accents/symbol/mobile) - QWERTY, // QWERTY keyboard only. - NumPad, // Number pad. - Western, // On JPN systems, a text keyboard without Japanese input capabilities, otherwise same as SWKBD_TYPE_NORMAL. - }; - - // Keyboard dialog buttons. - enum class SoftwareKeyboardButtonConfig : u32 { - SingleButton, // Ok button - DualButton, // Cancel | Ok buttons - TripleButton, // Cancel | I Forgot | Ok buttons - NoButton, // No button (returned by swkbdInputText in special cases) - }; - - // Accepted input types. - enum class SoftwareKeyboardValidInput : u32 { - Anything, // All inputs are accepted. - NotEmpty, // Empty inputs are not accepted. - NotEmptyNotBlank, // Empty or blank inputs (consisting solely of whitespace) are not accepted. - NotBlank, // Blank inputs (consisting solely of whitespace) are not accepted, but empty inputs are. - FixedLen, // The input must have a fixed length (specified by maxTextLength in swkbdInit) - }; - - // Keyboard password modes. - enum class SoftwareKeyboardPasswordMode : u32 { - None, // Characters are not concealed. - Hide, // Characters are concealed immediately. - HideDelay, // Characters are concealed a second after they've been typed. - }; - - // Keyboard filter callback return values. - enum class SoftwareKeyboardCallbackResult : u32 { - OK, // Specifies that the input is valid. - Close, // Displays an error message, then closes the keyboard. - Continue, // Displays an error message and continues displaying the keyboard. - }; - - // Keyboard return values. - enum class SoftwareKeyboardResult : s32 { - None = -1, // Dummy/unused. - InvalidInput = -2, // Invalid parameters to swkbd. - OutOfMem = -3, // Out of memory. - - D0Click = 0, // The button was clicked in 1-button dialogs. - D1Click0, // The left button was clicked in 2-button dialogs. - D1Click1, // The right button was clicked in 2-button dialogs. - D2Click0, // The left button was clicked in 3-button dialogs. - D2Click1, // The middle button was clicked in 3-button dialogs. - D2Click2, // The right button was clicked in 3-button dialogs. - - HomePressed = 10, // The HOME button was pressed. - ResetPressed, // The soft-reset key combination was pressed. - PowerPressed, // The POWER button was pressed. - - ParentalOK = 20, // The parental PIN was verified successfully. - ParentalFail, // The parental PIN was incorrect. - - BannedInput = 30, // The filter callback returned SoftwareKeyboardCallback::CLOSE. - }; - - struct SoftwareKeyboardConfig { - enum_le type; - enum_le numButtonsM1; - enum_le validInput; - enum_le passwordMode; - s32_le isParentalScreen; - s32_le darkenTopScreen; - u32_le filterFlags; - u32_le saveStateFlags; - u16_le maxTextLength; - u16_le dictWordCount; - u16_le maxDigits; - std::array, MAX_BUTTON> buttonText; - std::array numpadKeys; - std::array hintText; // Text to display when asking the user for input - bool predictiveInput; - bool multiline; - bool fixedWidth; - bool allowHome; - bool allowReset; - bool allowPower; - bool unknown; - bool defaultQwerty; - std::array buttonSubmitsText; - u16_le language; - - u32_le initialTextOffset; // Offset of the default text in the output SharedMemory - u32_le dictOffset; - u32_le initialStatusOffset; - u32_le initialLearningOffset; - u32_le sharedMemorySize; // Size of the SharedMemory - u32_le version; - - enum_le returnCode; - - u32_le statusOffset; - u32_le learningOffset; - - u32_le textOffset; // Offset in the SharedMemory where the output text starts - u16_le textLength; // Length in characters of the output text - - enum_le callbackResult; - std::array callbackMessage; - bool skipAtCheck; - std::array pad; - }; - static_assert(sizeof(SoftwareKeyboardConfig) == 0x400, "Software keyboard config size is wrong"); - - virtual const char* name() override { return "Software Keyboard"; } - virtual Result::HorizonResult start(const MemoryBlock* sharedMem, const std::vector& parameters, u32 appID) override; - virtual Result::HorizonResult receiveParameter(const Applets::Parameter& parameter) override; - virtual void reset() override; - - SoftwareKeyboardApplet(Memory& memory, std::optional& nextParam) : AppletBase(memory, nextParam) {} - void closeKeyboard(u32 appID); - - SoftwareKeyboardConfig config; - }; -} // namespace Applets \ No newline at end of file diff --git a/include/arm_defs.hpp b/include/arm_defs.hpp deleted file mode 100644 index 2f167e2f..00000000 --- a/include/arm_defs.hpp +++ /dev/null @@ -1,68 +0,0 @@ -#pragma once -#include - -// Status register definitions -namespace CPSR { - enum : std::uint32_t { - // Privilege modes - UserMode = 16, - FIQMode = 17, - IRQMode = 18, - SVCMode = 19, - AbortMode = 23, - UndefMode = 27, - SystemMode = 31, - - // CPSR flag fields - Thumb = 1 << 5, - FIQDisable = 1 << 6, - IRQDisable = 1 << 7, - StickyOverflow = 1 << 27, - Overflow = 1 << 28, - Carry = 1 << 29, - Zero = 1 << 30, - Sign = 1U << 31U - }; -} - -namespace FPSCR { - // FPSCR Flags - enum : std::uint32_t { - Sign = 1U << 31U, // Negative condition flag - Zero = 1 << 30, // Zero condition flag - Carry = 1 << 29, // Carry condition flag - Overflow = 1 << 28, // Overflow condition flag - - QC = 1 << 27, // Cumulative saturation bit - AHP = 1 << 26, // Alternative half-precision control bit - DefaultNan = 1 << 25, // Default NaN mode control bit - FlushToZero = 1 << 24, // Flush abnormals to 0 control bit - RmodeMask = 3 << 22, // Rounding Mode bit mask - StrideMask = 3 << 20, // Vector stride bit mask - LengthMask = 7 << 16, // Vector length bit mask - - IDE = 1 << 15, // Input Denormal exception trap enable. - IXE = 1 << 12, // Inexact exception trap enable - UFE = 1 << 11, // Undeflow exception trap enable - OFE = 1 << 10, // Overflow exception trap enable - DZE = 1 << 9, // Division by Zero exception trap enable - IOE = 1 << 8, // Invalid Operation exception trap enable - - IDC = 1 << 7, // Input Denormal cumulative exception bit - IXC = 1 << 4, // Inexact cumulative exception bit - UFC = 1 << 3, // Undeflow cumulative exception bit - OFC = 1 << 2, // Overflow cumulative exception bit - DZC = 1 << 1, // Division by Zero cumulative exception bit - IOC = 1 << 0, // Invalid Operation cumulative exception bit - - // VFP rounding modes - RoundNearest = 0 << 22, - RoundPlusInf = 1 << 22, - RoundMinusInf = 2 << 22, - RoundToZero = 3 << 22, - - // Default FPSCR value for threads - ThreadDefault = DefaultNan | FlushToZero | RoundToZero, - MainThreadDefault = ThreadDefault | IXC - }; -} \ No newline at end of file diff --git a/include/audio/dsp_core.hpp b/include/audio/dsp_core.hpp deleted file mode 100644 index 1a556f28..00000000 --- a/include/audio/dsp_core.hpp +++ /dev/null @@ -1,66 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include - -#include "helpers.hpp" -#include "logger.hpp" -#include "scheduler.hpp" -#include "ring_buffer.hpp" - -// The DSP core must have access to the DSP service to be able to trigger interrupts properly -class DSPService; -class Memory; - -namespace Audio { - // There are 160 stereo samples in 1 audio frame, so 320 samples total - static constexpr u64 samplesInFrame = 160; - // 1 frame = 4096 DSP cycles = 8192 ARM11 cycles - static constexpr u64 cyclesPerFrame = samplesInFrame * 8192; - // For LLE DSP cores, we run the DSP for N cycles at a time, every N*2 arm11 cycles since the ARM11 runs twice as fast - static constexpr u64 lleSlice = 16384; - - class DSPCore { - using Samples = Common::RingBuffer; - - protected: - Memory& mem; - Scheduler& scheduler; - DSPService& dspService; - - Samples sampleBuffer; - bool audioEnabled = false; - - MAKE_LOG_FUNCTION(log, dspLogger) - - public: - enum class Type { Null, Teakra }; - DSPCore(Memory& mem, Scheduler& scheduler, DSPService& dspService) - : mem(mem), scheduler(scheduler), dspService(dspService) {} - virtual ~DSPCore() {} - - virtual void reset() = 0; - virtual void runAudioFrame() = 0; - virtual u8* getDspMemory() = 0; - - virtual u16 recvData(u32 regId) = 0; - virtual bool recvDataIsReady(u32 regId) = 0; - virtual void setSemaphore(u16 value) = 0; - virtual void writeProcessPipe(u32 channel, u32 size, u32 buffer) = 0; - virtual std::vector readPipe(u32 channel, u32 peer, u32 size, u32 buffer) = 0; - virtual void loadComponent(std::vector& data, u32 programMask, u32 dataMask) = 0; - virtual void unloadComponent() = 0; - virtual void setSemaphoreMask(u16 value) = 0; - - static Audio::DSPCore::Type typeFromString(std::string inString); - static const char* typeToString(Audio::DSPCore::Type type); - - Samples& getSamples() { return sampleBuffer; } - virtual void setAudioEnabled(bool enable) { audioEnabled = enable; } - }; - - std::unique_ptr makeDSPCore(DSPCore::Type type, Memory& mem, Scheduler& scheduler, DSPService& dspService); -} // namespace Audio \ No newline at end of file diff --git a/include/audio/miniaudio_device.hpp b/include/audio/miniaudio_device.hpp deleted file mode 100644 index f4d126d8..00000000 --- a/include/audio/miniaudio_device.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once -#include -#include -#include - -#include "miniaudio.h" -#include "ring_buffer.hpp" - -class MiniAudioDevice { - using Samples = Common::RingBuffer; - static constexpr ma_uint32 sampleRate = 32768; // 3DS sample rate - static constexpr ma_uint32 channelCount = 2; // Audio output is stereo - - ma_context context; - ma_device_config deviceConfig; - ma_device device; - ma_resampler resampler; - Samples* samples = nullptr; - - bool initialized = false; - bool running = false; - - std::vector audioDevices; - public: - MiniAudioDevice(); - // If safe is on, we create a null audio device - void init(Samples& samples, bool safe = false); - - void start(); - void stop(); -}; \ No newline at end of file diff --git a/include/audio/null_core.hpp b/include/audio/null_core.hpp deleted file mode 100644 index 7d6f1c9e..00000000 --- a/include/audio/null_core.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#pragma once -#include - -#include "audio/dsp_core.hpp" -#include "memory.hpp" - -namespace Audio { - class NullDSP : public DSPCore { - enum class DSPState : u32 { - Off, - On, - Slep, - }; - - // Number of DSP pipes - static constexpr size_t pipeCount = 8; - DSPState dspState; - - std::array, pipeCount> pipeData; // The data of each pipe - std::array dspRam; - - void resetAudioPipe(); - bool loaded = false; // Have we loaded a component? - - public: - NullDSP(Memory& mem, Scheduler& scheduler, DSPService& dspService) : DSPCore(mem, scheduler, dspService) {} - ~NullDSP() override {} - - void reset() override; - void runAudioFrame() override; - - u8* getDspMemory() override { return dspRam.data(); } - - u16 recvData(u32 regId) override; - bool recvDataIsReady(u32 regId) override { return true; } // Treat data as always ready - void writeProcessPipe(u32 channel, u32 size, u32 buffer) override; - std::vector readPipe(u32 channel, u32 peer, u32 size, u32 buffer) override; - - // NOPs for null DSP core - void loadComponent(std::vector& data, u32 programMask, u32 dataMask) override; - void unloadComponent() override; - void setSemaphore(u16 value) override {} - void setSemaphoreMask(u16 value) override {} - }; - -} // namespace Audio \ No newline at end of file diff --git a/include/audio/teakra_core.hpp b/include/audio/teakra_core.hpp deleted file mode 100644 index 6a011231..00000000 --- a/include/audio/teakra_core.hpp +++ /dev/null @@ -1,104 +0,0 @@ -#pragma once -#include - -#include "audio/dsp_core.hpp" -#include "memory.hpp" -#include "swap.hpp" -#include "teakra/teakra.h" - -namespace Audio { - class TeakraDSP : public DSPCore { - Teakra::Teakra teakra; - u32 pipeBaseAddr; - bool running; // Is the DSP running? - bool loaded; // Have we finished loading a binary with LoadComponent? - bool signalledData; - bool signalledSemaphore; - - uint audioFrameIndex = 0; // Index in our audio frame - std::array audioFrame; - - // Get a pointer to a data memory address - u8* getDataPointer(u32 address) { return getDspMemory() + Memory::DSP_DATA_MEMORY_OFFSET + address; } - - enum class PipeDirection { - DSPtoCPU = 0, - CPUtoDSP = 1, - }; - - // A lot of Teakra integration code, especially pipe stuff is based on Citra's integration here: - // https://github.com/citra-emu/citra/blob/master/src/audio_core/lle/lle.cpp - struct PipeStatus { - // All addresses and sizes here refer to byte values, NOT 16-bit values. - u16_le address; - u16_le byteSize; - u16_le readPointer; - u16_le writePointer; - u8 slot; - u8 flags; - - static constexpr u16 wrapBit = 0x8000; - static constexpr u16 pointerMask = 0x7FFF; - - bool isFull() const { return (readPointer ^ writePointer) == wrapBit; } - bool isEmpty() const { return (readPointer ^ writePointer) == 0; } - - // isWrapped: Are read and write pointers in different memory passes. - // true: xxxx]----[xxxx (data is wrapping around the end of memory) - // false: ----[xxxx]---- - bool isWrapped() const { return (readPointer ^ writePointer) >= wrapBit; } - }; - static_assert(sizeof(PipeStatus) == 10, "Teakra: Pipe Status size is wrong"); - static constexpr u8 pipeToSlotIndex(u8 pipe, PipeDirection direction) { return (pipe * 2) + u8(direction); } - - PipeStatus getPipeStatus(u8 pipe, PipeDirection direction) { - PipeStatus ret; - const u8 index = pipeToSlotIndex(pipe, direction); - - std::memcpy(&ret, getDataPointer(pipeBaseAddr * 2 + index * sizeof(PipeStatus)), sizeof(PipeStatus)); - return ret; - } - - void updatePipeStatus(const PipeStatus& status) { - u8 slot = status.slot; - u8* statusAddress = getDataPointer(pipeBaseAddr * 2 + slot * sizeof(PipeStatus)); - - if (slot % 2 == 0) { - std::memcpy(statusAddress + 4, &status.readPointer, sizeof(u16)); - } else { - std::memcpy(statusAddress + 6, &status.writePointer, sizeof(u16)); - } - } - // Run 1 slice of DSP instructions - void runSlice() { - if (running) { - teakra.Run(Audio::lleSlice); - } - } - - public: - TeakraDSP(Memory& mem, Scheduler& scheduler, DSPService& dspService); - ~TeakraDSP() override {} - - void reset() override; - - // Run 1 slice of DSP instructions and schedule the next audio frame - void runAudioFrame() override { - runSlice(); - scheduler.addEvent(Scheduler::EventType::RunDSP, scheduler.currentTimestamp + Audio::lleSlice * 2); - } - - void setAudioEnabled(bool enable) override; - u8* getDspMemory() override { return teakra.GetDspMemory().data(); } - - u16 recvData(u32 regId) override { return teakra.RecvData(regId); } - bool recvDataIsReady(u32 regId) override { return teakra.RecvDataIsReady(regId); } - void setSemaphore(u16 value) override { teakra.SetSemaphore(value); } - void setSemaphoreMask(u16 value) override { teakra.MaskSemaphore(value); } - - void writeProcessPipe(u32 channel, u32 size, u32 buffer) override; - std::vector readPipe(u32 channel, u32 peer, u32 size, u32 buffer) override; - void loadComponent(std::vector& data, u32 programMask, u32 dataMask) override; - void unloadComponent() override; - }; -} // namespace Audio diff --git a/include/cheats.hpp b/include/cheats.hpp deleted file mode 100644 index b90c080b..00000000 --- a/include/cheats.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once -#include -#include - -#include "action_replay.hpp" -#include "helpers.hpp" -#include "services/hid.hpp" - -// Forward-declare this since it's just passed and we don't want to include memory.hpp and increase compile time -class Memory; - -class Cheats { - public: - enum class CheatType { - None, // Cheat has been removed by the frontend or is invalid - ActionReplay, // CTRPF cheats - }; - - struct Cheat { - bool enabled = true; - CheatType type = CheatType::ActionReplay; - std::vector instructions; - }; - - Cheats(Memory& mem, HIDService& hid); - u32 addCheat(const Cheat& cheat); - u32 addCheat(const u8* data, size_t size); - void removeCheat(u32 id); - void enableCheat(u32 id); - void disableCheat(u32 id); - void reset(); - void run(); - - void clear(); - bool haveCheats() const { return cheatsLoaded; } - static constexpr u32 badCheatHandle = 0xFFFFFFFF; - - private: - ActionReplay ar; // An ActionReplay cheat machine for executing CTRPF codes - std::vector cheats; - bool cheatsLoaded = false; -}; diff --git a/include/colour.hpp b/include/colour.hpp deleted file mode 100644 index 4d02b80f..00000000 --- a/include/colour.hpp +++ /dev/null @@ -1,17 +0,0 @@ -#pragma once -#include "helpers.hpp" - -// Helpers functions for converting colour channels between bit depths -namespace Colour { - inline static constexpr u8 convert4To8Bit(u8 c) { - return (c << 4) | c; - } - - inline static constexpr u8 convert5To8Bit(u8 c) { - return (c << 3) | (c >> 2); - } - - inline static constexpr u8 convert6To8Bit(u8 c) { - return (c << 2) | (c >> 4); - } -} \ No newline at end of file diff --git a/include/compiler_builtins.hpp b/include/compiler_builtins.hpp deleted file mode 100644 index 92882436..00000000 --- a/include/compiler_builtins.hpp +++ /dev/null @@ -1,7 +0,0 @@ -#pragma once - -#ifdef _MSC_VER -#define ALWAYS_INLINE __forceinline -#else -#define ALWAYS_INLINE __attribute__((always_inline)) -#endif \ No newline at end of file diff --git a/include/config.hpp b/include/config.hpp deleted file mode 100644 index 8c0d2e12..00000000 --- a/include/config.hpp +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once -#include - -#include "audio/dsp_core.hpp" -#include "renderer.hpp" - -// Remember to initialize every field here to its default value otherwise bad things will happen -struct EmulatorConfig { - // Only enable the shader JIT by default on platforms where it's completely tested -#ifdef PANDA3DS_X64_HOST - static constexpr bool shaderJitDefault = true; -#else - static constexpr bool shaderJitDefault = false; -#endif - - bool shaderJitEnabled = shaderJitDefault; - bool discordRpcEnabled = false; - RendererType rendererType = RendererType::OpenGL; - Audio::DSPCore::Type dspType = Audio::DSPCore::Type::Null; - - bool sdCardInserted = true; - bool sdWriteProtected = false; - bool usePortableBuild = false; - - bool audioEnabled = false; - bool vsyncEnabled = true; - - bool chargerPlugged = true; - // Default to 3% battery to make users suffer - int batteryPercentage = 3; - - std::filesystem::path filePath; - - EmulatorConfig(const std::filesystem::path& path); - void load(); - void save(); -}; \ No newline at end of file diff --git a/include/cpu.hpp b/include/cpu.hpp deleted file mode 100644 index 14800e19..00000000 --- a/include/cpu.hpp +++ /dev/null @@ -1,9 +0,0 @@ -#pragma once - -#ifdef CPU_DYNARMIC -#include "cpu_dynarmic.hpp" -#elif defined(CPU_KVM) -#error KVM CPU is not implemented yet -#else -#error No CPU core implemented :( -#endif \ No newline at end of file diff --git a/include/cpu_dynarmic.hpp b/include/cpu_dynarmic.hpp deleted file mode 100644 index 43f31d30..00000000 --- a/include/cpu_dynarmic.hpp +++ /dev/null @@ -1,185 +0,0 @@ -#pragma once - -#include - -#include "dynarmic/interface/A32/a32.h" -#include "dynarmic/interface/A32/config.h" -#include "dynarmic/interface/exclusive_monitor.h" -#include "dynarmic_cp15.hpp" -#include "helpers.hpp" -#include "kernel.hpp" -#include "memory.hpp" -#include "scheduler.hpp" - -class Emulator; -class CPU; - -class MyEnvironment final : public Dynarmic::A32::UserCallbacks { - public: - u64 ticksLeft = 0; - Memory& mem; - Kernel& kernel; - Scheduler& scheduler; - - u64 getCyclesForInstruction(bool isThumb, u32 instruction); - - u8 MemoryRead8(u32 vaddr) override { - return mem.read8(vaddr); - } - - u16 MemoryRead16(u32 vaddr) override { - return mem.read16(vaddr); - } - - u32 MemoryRead32(u32 vaddr) override { - return mem.read32(vaddr); - } - - u64 MemoryRead64(u32 vaddr) override { - return mem.read64(vaddr); - } - - void MemoryWrite8(u32 vaddr, u8 value) override { - mem.write8(vaddr, value); - } - - void MemoryWrite16(u32 vaddr, u16 value) override { - mem.write16(vaddr, value); - } - - void MemoryWrite32(u32 vaddr, u32 value) override { - mem.write32(vaddr, value); - } - - void MemoryWrite64(u32 vaddr, u64 value) override { - mem.write64(vaddr, value); - } - - #define makeExclusiveWriteHandler(size) \ - bool MemoryWriteExclusive##size(u32 vaddr, u##size value, u##size expected) override { \ - u##size current = mem.read##size(vaddr); /* Get current value */ \ - if (current == expected) { /* Perform the write if current == expected */ \ - mem.write##size(vaddr, value); \ - return true; /* Exclusive write succeeded */ \ - } \ - \ - return false; /* Exclusive write failed */ \ - } - - makeExclusiveWriteHandler(8) - makeExclusiveWriteHandler(16) - makeExclusiveWriteHandler(32) - makeExclusiveWriteHandler(64) - - #undef makeExclusiveWriteHandler - - void InterpreterFallback(u32 pc, size_t num_instructions) override { - // This is never called in practice. - std::terminate(); - } - - void CallSVC(u32 swi) override { - kernel.serviceSVC(swi); - } - - void ExceptionRaised(u32 pc, Dynarmic::A32::Exception exception) override { - switch (exception) { - case Dynarmic::A32::Exception::UnpredictableInstruction: - Helpers::panic("Unpredictable instruction at pc = %08X", pc); - break; - - default: Helpers::panic("Fired exception oops"); - } - } - - void AddTicks(u64 ticks) override { - scheduler.currentTimestamp += ticks; - - if (ticks > ticksLeft) { - ticksLeft = 0; - return; - } - ticksLeft -= ticks; - } - - u64 GetTicksRemaining() override { - return ticksLeft; - } - - u64 GetTicksForCode(bool isThumb, u32 vaddr, u32 instruction) override { - return getCyclesForInstruction(isThumb, instruction); - } - - MyEnvironment(Memory& mem, Kernel& kernel, Scheduler& scheduler) : mem(mem), kernel(kernel), scheduler(scheduler) {} -}; - -class CPU { - std::unique_ptr jit; - std::shared_ptr cp15; - - // Make exclusive monitor with only 1 CPU core - Dynarmic::ExclusiveMonitor exclusiveMonitor{1}; - MyEnvironment env; - Memory& mem; - Scheduler& scheduler; - Emulator& emu; - - public: - static constexpr u64 ticksPerSec = Scheduler::arm11Clock; - - CPU(Memory& mem, Kernel& kernel, Emulator& emu); - void reset(); - - void setReg(int index, u32 value) { - jit->Regs()[index] = value; - } - - u32 getReg(int index) { - return jit->Regs()[index]; - } - - std::span regs() { return jit->Regs(); } - - // Get reference to array of FPRs. This array consists of the FPRs as single precision values - // Hence why its base type is u32 - std::span fprs() { return std::span(jit->ExtRegs()).first<32>(); } - - void setCPSR(u32 value) { - jit->SetCpsr(value); - } - - u32 getCPSR() { - return jit->Cpsr(); - } - - void setFPSCR(u32 value) { - jit->SetFpscr(value); - } - - u32 getFPSCR() { - return jit->Fpscr(); - } - - // Set the base pointer to thread-local storage, stored in a CP15 register on the 3DS - void setTLSBase(u32 value) { - cp15->setTLSBase(value); - } - - u64 getTicks() { - return scheduler.currentTimestamp; - } - - // Get reference to tick count. Memory needs access to this - u64& getTicksRef() { - return scheduler.currentTimestamp; - } - - Scheduler& getScheduler() { - return scheduler; - } - - void addTicks(u64 ticks) { env.AddTicks(ticks); } - - void clearCache() { jit->ClearCache(); } - void runFrame(); -}; \ No newline at end of file diff --git a/include/crypto/aes_engine.hpp b/include/crypto/aes_engine.hpp deleted file mode 100644 index 324f4adf..00000000 --- a/include/crypto/aes_engine.hpp +++ /dev/null @@ -1,166 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include - -#include "helpers.hpp" - -namespace Crypto { - constexpr std::size_t AesKeySize = 0x10; - using AESKey = std::array; - - template - static std::array rolArray(const std::array& value, std::size_t bits) { - const auto bitWidth = N * CHAR_BIT; - - bits %= bitWidth; - - const auto byteShift = bits / CHAR_BIT; - const auto bitShift = bits % CHAR_BIT; - - std::array result; - - for (std::size_t i = 0; i < N; i++) { - result[i] = ((value[(i + byteShift) % N] << bitShift) | (value[(i + byteShift + 1) % N] >> (CHAR_BIT - bitShift))) & UINT8_MAX; - } - - return result; - } - - template - static std::array addArray(const std::array& a, const std::array& b) { - std::array result; - std::size_t sum = 0; - std::size_t carry = 0; - - for (std::int64_t i = N - 1; i >= 0; i--) { - sum = a[i] + b[i] + carry; - carry = sum >> CHAR_BIT; - result[i] = static_cast(sum & UINT8_MAX); - } - - return result; - } - - template - static std::array xorArray(const std::array& a, const std::array& b) { - std::array result; - - for (std::size_t i = 0; i < N; i++) { - result[i] = a[i] ^ b[i]; - } - - return result; - } - - static std::optional createKeyFromHex(const std::string& hex) { - if (hex.size() < 32) { - return {}; - } - - AESKey rawKey; - for (std::size_t i = 0; i < rawKey.size(); i++) { - rawKey[i] = static_cast(std::stoi(hex.substr(i * 2, 2), 0, 16)); - } - - return rawKey; - } - - struct AESKeySlot { - std::optional keyX = std::nullopt; - std::optional keyY = std::nullopt; - std::optional normalKey = std::nullopt; - }; - - enum KeySlotId : std::size_t { - NCCHKey0 = 0x2C, - NCCHKey1 = 0x25, - NCCHKey2 = 0x18, - NCCHKey3 = 0x1B, - }; - - class AESEngine { - private: - constexpr static std::size_t AesKeySlotCount = 0x40; - - std::optional m_generator = std::nullopt; - std::array m_slots; - bool keysLoaded = false; - - constexpr void updateNormalKey(std::size_t slotId) { - if (m_generator.has_value() && hasKeyX(slotId) && hasKeyY(slotId)) { - auto& keySlot = m_slots.at(slotId); - AESKey keyX = keySlot.keyX.value(); - AESKey keyY = keySlot.keyY.value(); - - keySlot.normalKey = rolArray(addArray(xorArray(rolArray(keyX, 2), keyY), m_generator.value()), 87); - } - } - - public: - AESEngine() {} - void loadKeys(const std::filesystem::path& path); - bool haveKeys() { return keysLoaded; } - bool haveGenerator() { return m_generator.has_value(); } - - constexpr bool hasKeyX(std::size_t slotId) { - if (slotId >= AesKeySlotCount) { - return false; - } - - return m_slots.at(slotId).keyX.has_value(); - } - - constexpr AESKey getKeyX(std::size_t slotId) { - return m_slots.at(slotId).keyX.value_or(AESKey{}); - } - - constexpr void setKeyX(std::size_t slotId, const AESKey &key) { - if (slotId < AesKeySlotCount) { - m_slots.at(slotId).keyX = key; - updateNormalKey(slotId); - } - } - - constexpr bool hasKeyY(std::size_t slotId) { - if (slotId >= AesKeySlotCount) { - return false; - } - - return m_slots.at(slotId).keyY.has_value(); - } - - constexpr AESKey getKeyY(std::size_t slotId) { - return m_slots.at(slotId).keyY.value_or(AESKey{}); - } - - constexpr void setKeyY(std::size_t slotId, const AESKey &key) { - if (slotId < AesKeySlotCount) { - m_slots.at(slotId).keyY = key; - updateNormalKey(slotId); - } - } - - constexpr bool hasNormalKey(std::size_t slotId) { - if (slotId >= AesKeySlotCount) { - return false; - } - - return m_slots.at(slotId).normalKey.has_value(); - } - - constexpr AESKey getNormalKey(std::size_t slotId) { - return m_slots.at(slotId).normalKey.value_or(AESKey{}); - } - - constexpr void setNormalKey(std::size_t slotId, const AESKey &key) { - if (slotId < AesKeySlotCount) { - m_slots.at(slotId).normalKey = key; - } - } - }; -} \ No newline at end of file diff --git a/include/discord_rpc.hpp b/include/discord_rpc.hpp deleted file mode 100644 index 9b244faf..00000000 --- a/include/discord_rpc.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#ifdef PANDA3DS_ENABLE_DISCORD_RPC -#include - -#include -#include - -namespace Discord { - enum class RPCStatus { Idling, Playing }; - - class RPC { - std::uint64_t startTimestamp; - bool enabled = false; - - public: - void init(); - void update(RPCStatus status, const std::string& title); - void stop(); - }; -} // namespace Discord - -#endif \ No newline at end of file diff --git a/include/dynarmic_cp15.hpp b/include/dynarmic_cp15.hpp deleted file mode 100644 index 1345aad4..00000000 --- a/include/dynarmic_cp15.hpp +++ /dev/null @@ -1,71 +0,0 @@ -#pragma once - -#include "dynarmic/interface/A32/a32.h" -#include "dynarmic/interface/A32/config.h" -#include "dynarmic/interface/A32/coprocessor.h" -#include "helpers.hpp" -#include "memory.hpp" - -class CP15 final : public Dynarmic::A32::Coprocessor { - using Callback = Dynarmic::A32::Coprocessor::Callback; - using CoprocReg = Dynarmic::A32::CoprocReg; - using CallbackOrAccessOneWord = Dynarmic::A32::Coprocessor::CallbackOrAccessOneWord; - using CallbackOrAccessTwoWords = Dynarmic::A32::Coprocessor::CallbackOrAccessTwoWords; - - u32 threadStoragePointer; // Pointer to thread-local storage - u32 dummy; // MCR writes here for registers whose values are ignored - - std::optional CompileInternalOperation(bool two, unsigned opc1, - CoprocReg CRd, CoprocReg CRn, - CoprocReg CRm, unsigned opc2) override { - return std::nullopt; - } - - CallbackOrAccessOneWord CompileSendOneWord(bool two, unsigned opc1, CoprocReg CRn, - CoprocReg CRm, unsigned opc2) override { - if (!two && opc1 == 0 && CRn == CoprocReg::C7 && CRm == CoprocReg::C10 && opc2 == 4) { - return &dummy; // Normally inserts a "Data Synchronization Barrier" - } - - if (!two && opc1 == 0 && CRn == CoprocReg::C7 && CRm == CoprocReg::C10 && opc2 == 5) { - return &dummy; // Normally inserts a "Data Memory Barrier" - } - Helpers::panic("CP15: CompileSendOneWord\nopc1: %d CRn: %d CRm: %d opc2: %d\n", opc1, (int)CRn, (int)CRm, opc2); - } - - CallbackOrAccessTwoWords CompileSendTwoWords(bool two, unsigned opc, CoprocReg CRm) override { - return std::monostate{}; - } - - CallbackOrAccessOneWord CompileGetOneWord(bool two, unsigned opc1, CoprocReg CRn, - CoprocReg CRm, unsigned opc2) override { - // Stores a pointer to thread-local storage, accessed via mrc p15, 0, rd, c13, c0, 3 - if (!two && CRn == CoprocReg::C13 && opc1 == 0 && CRm == CoprocReg::C0 && opc2 == 3) { - return &threadStoragePointer; - } - - Helpers::panic("CP15: CompileGetOneWord\nopc1: %d CRn: %d CRm: %d opc2: %d\n", opc1, (int)CRn, (int)CRm, opc2); - } - - CallbackOrAccessTwoWords CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) override { - return std::monostate{}; - } - - std::optional CompileLoadWords(bool two, bool long_transfer, CoprocReg CRd, - std::optional option) override { - return std::nullopt; - } - - std::optional CompileStoreWords(bool two, bool long_transfer, CoprocReg CRd, - std::optional option) override { - return std::nullopt; - } - -public: - void setTLSBase(u32 value) { - threadStoragePointer = value; - } - - // Currently does nothing but may be needed in the future - void reset() {} -}; \ No newline at end of file diff --git a/include/emulator.hpp b/include/emulator.hpp deleted file mode 100644 index 47fbc839..00000000 --- a/include/emulator.hpp +++ /dev/null @@ -1,150 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include - -#include "PICA/gpu.hpp" -#include "audio/dsp_core.hpp" -#include "audio/miniaudio_device.hpp" -#include "cheats.hpp" -#include "config.hpp" -#include "cpu.hpp" -#include "crypto/aes_engine.hpp" -#include "discord_rpc.hpp" -#include "fs/romfs.hpp" -#include "io_file.hpp" -#include "lua_manager.hpp" -#include "memory.hpp" -#include "scheduler.hpp" - -#ifdef PANDA3DS_ENABLE_HTTP_SERVER -#include "http_server.hpp" -#endif - -#ifdef PANDA3DS_FRONTEND_QT -#include "gl/context.h" -#endif - -struct SDL_Window; - -enum class ROMType { - None, - ELF, - NCSD, - CXI, - HB_3DSX, -}; - -class Emulator { - EmulatorConfig config; - CPU cpu; - GPU gpu; - Memory memory; - Kernel kernel; - std::unique_ptr dsp; - Scheduler scheduler; - - Crypto::AESEngine aesEngine; - MiniAudioDevice audioDevice; - Cheats cheats; - - // Variables to keep track of whether the user is controlling the 3DS analog stick with their keyboard - // This is done so when a gamepad is connected, we won't automatically override the 3DS analog stick settings with the gamepad's state - // And so the user can still use the keyboard to control the analog - bool keyboardAnalogX = false; - bool keyboardAnalogY = false; - - // For tracking whether to update gyroscope - // We bind gyro to right click + mouse movement - bool holdingRightClick = false; - - public: - static constexpr u32 width = 400; - static constexpr u32 height = 240 * 2; // * 2 because 2 screens - ROMType romType = ROMType::None; - bool running = false; // Is the emulator running a game? - bool programRunning = false; // Is the emulator program itself running? - - private: -#ifdef PANDA3DS_ENABLE_HTTP_SERVER - HttpServer httpServer; - friend struct HttpServer; -#endif - -#ifdef PANDA3DS_ENABLE_DISCORD_RPC - Discord::RPC discordRpc; -#endif - void setAudioEnabled(bool enable); - void updateDiscord(); - - // Keep the handle for the ROM here to reload when necessary and to prevent deleting it - // This is currently only used for ELFs, NCSDs use the IOFile API instead - std::ifstream loadedELF; - NCSD loadedNCSD; - - std::optional romPath = std::nullopt; - LuaManager lua; - - public: - // Decides whether to reload or not reload the ROM when resetting. We use enum class over a plain bool for clarity. - // If NoReload is selected, the emulator will not reload its selected ROM. This is useful for things like booting up the emulator, or resetting to - // change ROMs. If Reload is selected, the emulator will reload its selected ROM. This is useful for eg a "reset" button that keeps the current - // ROM and just resets the emu - enum class ReloadOption { NoReload, Reload }; - // Used in CPU::runFrame - bool frameDone = false; - - Emulator(); - ~Emulator(); - - void step(); - void render(); - void reset(ReloadOption reload); - void run(void* frontend = nullptr); - void runFrame(); - // Poll the scheduler for events - void pollScheduler(); - - void resume(); // Resume the emulator - void pause(); // Pause the emulator - void togglePause(); - - bool loadAmiibo(const std::filesystem::path& path); - bool loadROM(const std::filesystem::path& path); - bool loadNCSD(const std::filesystem::path& path, ROMType type); - bool load3DSX(const std::filesystem::path& path); - bool loadELF(const std::filesystem::path& path); - bool loadELF(std::ifstream& file); - -#ifdef PANDA3DS_FRONTEND_QT - // For passing the GL context from Qt to the renderer - void initGraphicsContext(GL::Context* glContext) { gpu.initGraphicsContext(nullptr); } -#else - void initGraphicsContext(SDL_Window* window) { gpu.initGraphicsContext(window); } -#endif - - RomFS::DumpingResult dumpRomFS(const std::filesystem::path& path); - void setOutputSize(u32 width, u32 height) { gpu.setOutputSize(width, height); } - void deinitGraphicsContext() { gpu.deinitGraphicsContext(); } - - EmulatorConfig& getConfig() { return config; } - Cheats& getCheats() { return cheats; } - ServiceManager& getServiceManager() { return kernel.getServiceManager(); } - LuaManager& getLua() { return lua; } - Scheduler& getScheduler() { return scheduler; } - Memory& getMemory() { return memory; } - - RendererType getRendererType() const { return config.rendererType; } - Renderer* getRenderer() { return gpu.getRenderer(); } - u64 getTicks() { return cpu.getTicks(); } - - std::filesystem::path getConfigPath(); - std::filesystem::path getAndroidAppPath(); - // Get the root path for the emulator's app data - std::filesystem::path getAppDataRoot(); - - std::span getSMDH(); -}; diff --git a/include/fs/archive_base.hpp b/include/fs/archive_base.hpp deleted file mode 100644 index 2843be68..00000000 --- a/include/fs/archive_base.hpp +++ /dev/null @@ -1,266 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include "helpers.hpp" -#include "memory.hpp" -#include "result.hpp" -#include "result/result.hpp" - -using Result::HorizonResult; - -namespace PathType { - enum : u32 { - Invalid = 0, - Empty = 1, - Binary = 2, - ASCII = 3, - UTF16 = 4, - }; -} - -namespace ArchiveID { - enum : u32 { - SelfNCCH = 3, - SaveData = 4, - ExtSaveData = 6, - SharedExtSaveData = 7, - SystemSaveData = 8, - SDMC = 9, - SDMCWriteOnly = 0xA, - - SavedataAndNcch = 0x2345678A, - // 3DBrew: This is the same as the regular SaveData archive, except with this the savedata ID and mediatype is loaded from the input archive - // lowpath. - UserSaveData1 = 0x567890B2, - // 3DBrew: Similar to 0x567890B2 but can only access Accessible Save specified in exheader? - UserSaveData2 = 0x567890B4, - }; - - static std::string toString(u32 id) { - switch (id) { - case SelfNCCH: return "SelfNCCH"; - case SaveData: return "SaveData"; - case ExtSaveData: return "ExtSaveData"; - case SharedExtSaveData: return "SharedExtSaveData"; - case SystemSaveData: return "SystemSaveData"; - case SDMC: return "SDMC"; - case SDMCWriteOnly: return "SDMC (Write-only)"; - case SavedataAndNcch: return "Savedata & NCCH (archive 0x2345678A)"; - default: return "Unknown archive"; - } - } -} - -struct FSPath { - u32 type = PathType::Invalid; - - std::vector binary; // Path data for binary paths - std::string string; // Path data for ASCII paths - std::u16string utf16_string; - - FSPath() {} - - FSPath(u32 type, const std::vector& vec) : type(type) { - switch (type) { - case PathType::Binary: - binary = std::move(vec); - break; - - case PathType::ASCII: - string.resize(vec.size() - 1); // -1 because of the null terminator - std::memcpy(string.data(), vec.data(), vec.size() - 1); // Copy string data - break; - - case PathType::UTF16: { - const size_t size = vec.size() / sizeof(u16) - 1; // Character count. -1 because null terminator here too - utf16_string.resize(size); - std::memcpy(utf16_string.data(), vec.data(), size * sizeof(u16)); - break; - } -; } - } -}; - -struct FilePerms { - u32 raw; - - FilePerms(u32 val) : raw(val) {} - bool read() const { return (raw & 1) != 0; } - bool write() const { return (raw & 2) != 0; } - bool create() const { return (raw & 4) != 0; } -}; - -class ArchiveBase; -struct FileSession { - ArchiveBase* archive = nullptr; - FILE* fd = nullptr; // File descriptor for file sessions that require them. - FSPath path; - FSPath archivePath; - u32 priority = 0; // TODO: What does this even do - bool isOpen; - - FileSession(ArchiveBase* archive, const FSPath& filePath, const FSPath& archivePath, FILE* fd, bool isOpen = true) : - archive(archive), path(filePath), archivePath(archivePath), fd(fd), isOpen(isOpen), priority(0) {} - - // For cloning a file session - FileSession(const FileSession& other) : archive(other.archive), path(other.path), - archivePath(other.archivePath), fd(other.fd), isOpen(other.isOpen), priority(other.priority) {} -}; - -struct ArchiveSession { - ArchiveBase* archive = nullptr; - FSPath path; - bool isOpen; - - ArchiveSession(ArchiveBase* archive, const FSPath& filePath, bool isOpen = true) : archive(archive), path(filePath), isOpen(isOpen) {} -}; - -struct DirectoryEntry { - std::filesystem::path path; - bool isDirectory; -}; - -struct DirectorySession { - ArchiveBase* archive = nullptr; - // For directories which are mirrored to a specific path on the disk, this contains that path - // Otherwise this is a nullopt - std::optional pathOnDisk; - - // The list of directory entries + the index of the entry we're currently inspecting - std::vector entries; - size_t currentEntry; - - bool isOpen; - - DirectorySession(ArchiveBase* archive, std::filesystem::path path, bool isOpen = true) : archive(archive), pathOnDisk(path), isOpen(isOpen) { - currentEntry = 0; // Start from entry 0 - - // Read all directory entries, cache them - for (auto& e : std::filesystem::directory_iterator(path)) { - DirectoryEntry entry; - entry.path = e.path(); - entry.isDirectory = std::filesystem::is_directory(e); - entries.push_back(entry); - } - } -}; - -// Represents a file descriptor obtained from OpenFile. If the optional is nullopt, opening the file failed. -// Otherwise the fd of the opened file is returned (or nullptr if the opened file doesn't require one) -using FileDescriptor = std::optional; - -class ArchiveBase { -public: - struct FormatInfo { - u32 size; // Archive size - u32 numOfDirectories; // Number of directories - u32 numOfFiles; // Number of files - bool duplicateData; // Whether to duplicate data or not - }; - -protected: - using Handle = u32; - - static constexpr FileDescriptor NoFile = nullptr; - static constexpr FileDescriptor FileError = std::nullopt; - Memory& mem; - - // Returns if a specified 3DS path in UTF16 or ASCII format is safe or not - // A 3DS path is considered safe if its first character is '/' which means we're not trying to access anything outside the root of the fs - // And if it doesn't contain enough instances of ".." (Indicating "climb up a folder" in filesystems) to let the software climb up the directory tree - // And access files outside of the emulator's app data folder - template - bool isPathSafe(const FSPath& path) { - static_assert(format == PathType::ASCII || format == PathType::UTF16); - using String = typename std::conditional::type; // String type for the path - using Char = typename String::value_type; // Char type for the path - - String pathString, dots; - if constexpr (std::is_same()) { - pathString = path.utf16_string; - dots = u".."; - } else { - pathString = path.string; - dots = ".."; - } - - // If the path string doesn't begin with / then that means it's accessing outside the FS root, which is invalid & unsafe - if (pathString[0] != Char('/')) return false; - - // Counts how many folders sans the root our file is nested under. - // If it's < 0 at any point of parsing, then the path is unsafe and tries to crawl outside our file sandbox. - // If it's 0 then this is the FS root. - // If it's > 0 then we're in a subdirectory of the root. - int level = 0; - - // Split the string on / characters and see how many of the substrings are ".." - size_t pos = 0; - while ((pos = pathString.find(Char('/'))) != String::npos) { - String token = pathString.substr(0, pos); - pathString.erase(0, pos + 1); - - if (token == dots) { - level--; - if (level < 0) return false; - } else { - level++; - } - } - - return true; - } - -public: - virtual std::string name() = 0; - virtual u64 getFreeBytes() = 0; - virtual HorizonResult createFile(const FSPath& path, u64 size) = 0; - virtual HorizonResult deleteFile(const FSPath& path) = 0; - - virtual Rust::Result getFormatInfo(const FSPath& path) { - Helpers::panic("Unimplemented GetFormatInfo for %s archive", name().c_str()); - // Return a dummy struct just to avoid the UB of not returning anything, even if we panic - return Ok(FormatInfo{ .size = 0, .numOfDirectories = 0, .numOfFiles = 0, .duplicateData = false }); - } - - virtual HorizonResult createDirectory(const FSPath& path) { - Helpers::panic("Unimplemented CreateDirectory for %s archive", name().c_str()); - return Result::FS::AlreadyExists; - } - - // Returns nullopt if opening the file failed, otherwise returns a file descriptor to it (nullptr if none is needed) - virtual FileDescriptor openFile(const FSPath& path, const FilePerms& perms) = 0; - virtual Rust::Result openArchive(const FSPath& path) = 0; - - virtual Rust::Result openDirectory(const FSPath& path) { - Helpers::panic("Unimplemented OpenDirectory for %s archive", name().c_str()); - return Err(Result::FS::FileNotFoundAlt); - } - - virtual void format(const FSPath& path, const FormatInfo& info) { - Helpers::panic("Unimplemented Format for %s archive", name().c_str()); - } - - virtual HorizonResult renameFile(const FSPath& oldPath, const FSPath& newPath) { - Helpers::panic("Unimplemented RenameFile for %s archive", name().c_str()); - return Result::Success; - } - - // Read size bytes from a file starting at offset "offset" into a certain buffer in memory - // Returns the number of bytes read, or nullopt if the read failed - virtual std::optional readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) = 0; - - ArchiveBase(Memory& mem) : mem(mem) {} -}; - -struct ArchiveResource { - u32 sectorSize; // Size of a sector in bytes - u32 clusterSize; // Size of a cluster in bytes - u32 partitionCapacityInClusters; - u32 freeSpaceInClusters; -}; \ No newline at end of file diff --git a/include/fs/archive_ext_save_data.hpp b/include/fs/archive_ext_save_data.hpp deleted file mode 100644 index 7c8c7503..00000000 --- a/include/fs/archive_ext_save_data.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#pragma once -#include "archive_base.hpp" - -class ExtSaveDataArchive : public ArchiveBase { -public: - ExtSaveDataArchive(Memory& mem, const std::string& folder, bool isShared = false) : ArchiveBase(mem), - isShared(isShared), backingFolder(folder) {} - - u64 getFreeBytes() override { Helpers::panic("ExtSaveData::GetFreeBytes unimplemented"); return 0; } - std::string name() override { return "ExtSaveData::" + backingFolder; } - - HorizonResult createDirectory(const FSPath& path) override; - HorizonResult createFile(const FSPath& path, u64 size) override; - HorizonResult deleteFile(const FSPath& path) override; - HorizonResult renameFile(const FSPath& oldPath, const FSPath& newPath) override; - - Rust::Result openArchive(const FSPath& path) override; - Rust::Result openDirectory(const FSPath& path) override; - FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override; - std::optional readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override; - - Rust::Result getFormatInfo(const FSPath& path) override { - Helpers::warn("Stubbed ExtSaveData::GetFormatInfo"); - return Ok(FormatInfo{.size = 1_GB, .numOfDirectories = 255, .numOfFiles = 255, .duplicateData = false}); - } - - // Takes in a binary ExtSaveData path, outputs a combination of the backing folder with the low and high save entries of the path - // Used for identifying the archive format info files - std::string getExtSaveDataPathFromBinary(const FSPath& path); - - bool isShared = false; - std::string backingFolder; // Backing folder for the archive. Can be NAND, Gamecard or SD depending on the archive path. -}; \ No newline at end of file diff --git a/include/fs/archive_ncch.hpp b/include/fs/archive_ncch.hpp deleted file mode 100644 index 275bcd20..00000000 --- a/include/fs/archive_ncch.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include "archive_base.hpp" - -class NCCHArchive : public ArchiveBase { -public: - NCCHArchive(Memory& mem) : ArchiveBase(mem) {} - - u64 getFreeBytes() override { Helpers::panic("NCCH::GetFreeBytes unimplemented"); return 0; } - std::string name() override { return "NCCH"; } - - HorizonResult createFile(const FSPath& path, u64 size) override; - HorizonResult deleteFile(const FSPath& path) override; - - Rust::Result openArchive(const FSPath& path) override; - FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override; - std::optional readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override; - - // Returns whether the cart has a RomFS - bool hasRomFS() { - auto cxi = mem.getCXI(); - return (cxi != nullptr && cxi->hasRomFS()); - } - - // Returns whether the cart has an ExeFS (All executable carts should have an ExeFS. This is just here to be safe) - bool hasExeFS() { - auto cxi = mem.getCXI(); - return (cxi != nullptr && cxi->hasExeFS()); - } -}; \ No newline at end of file diff --git a/include/fs/archive_save_data.hpp b/include/fs/archive_save_data.hpp deleted file mode 100644 index 5b1ba489..00000000 --- a/include/fs/archive_save_data.hpp +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once -#include "archive_base.hpp" - -class SaveDataArchive : public ArchiveBase { -public: - SaveDataArchive(Memory& mem) : ArchiveBase(mem) {} - - u64 getFreeBytes() override { return 32_MB; } - std::string name() override { return "SaveData"; } - - HorizonResult createDirectory(const FSPath& path) override; - HorizonResult createFile(const FSPath& path, u64 size) override; - HorizonResult deleteFile(const FSPath& path) override; - - Rust::Result openArchive(const FSPath& path) override; - Rust::Result openDirectory(const FSPath& path) override; - FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override; - std::optional readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override; - - void format(const FSPath& path, const FormatInfo& info) override; - Rust::Result getFormatInfo(const FSPath& path) override; - - std::filesystem::path getFormatInfoPath() { - return IOFile::getAppData() / "FormatInfo" / "SaveData.format"; - } - - // Returns whether the cart has save data or not - bool cartHasSaveData() { - auto cxi = mem.getCXI(); - return (cxi != nullptr && cxi->hasSaveData()); // We need to have a CXI file with more than 0 bytes of save data - } -}; \ No newline at end of file diff --git a/include/fs/archive_sdmc.hpp b/include/fs/archive_sdmc.hpp deleted file mode 100644 index f63731c4..00000000 --- a/include/fs/archive_sdmc.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include "archive_base.hpp" -#include "result/result.hpp" - -using Result::HorizonResult; - -class SDMCArchive : public ArchiveBase { - bool isWriteOnly = false; // There's 2 variants of the SDMC archive: Regular one (Read/Write) and write-only - - public: - SDMCArchive(Memory& mem, bool writeOnly = false) : ArchiveBase(mem), isWriteOnly(writeOnly) {} - - u64 getFreeBytes() override { return 1_GB; } - std::string name() override { return "SDMC"; } - - HorizonResult createFile(const FSPath& path, u64 size) override; - HorizonResult deleteFile(const FSPath& path) override; - HorizonResult createDirectory(const FSPath& path) override; - - Rust::Result openArchive(const FSPath& path) override; - Rust::Result openDirectory(const FSPath& path) override; - - FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override; - std::optional readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override; -}; \ No newline at end of file diff --git a/include/fs/archive_self_ncch.hpp b/include/fs/archive_self_ncch.hpp deleted file mode 100644 index ed882a7d..00000000 --- a/include/fs/archive_self_ncch.hpp +++ /dev/null @@ -1,30 +0,0 @@ -#pragma once -#include "archive_base.hpp" - -class SelfNCCHArchive : public ArchiveBase { -public: - SelfNCCHArchive(Memory& mem) : ArchiveBase(mem) {} - - u64 getFreeBytes() override { return 0; } - std::string name() override { return "SelfNCCH"; } - - HorizonResult createFile(const FSPath& path, u64 size) override; - HorizonResult deleteFile(const FSPath& path) override; - - Rust::Result openArchive(const FSPath& path) override; - FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override; - std::optional readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override; - - // Returns whether the cart has a RomFS - bool hasRomFS() { - auto cxi = mem.getCXI(); - auto hb3dsx = mem.get3DSX(); - return (cxi != nullptr && cxi->hasRomFS()) || (hb3dsx != nullptr && hb3dsx->hasRomFs()); - } - - // Returns whether the cart has an ExeFS (All executable carts should have an ExeFS. This is just here to be safe) - bool hasExeFS() { - auto cxi = mem.getCXI(); - return (cxi != nullptr && cxi->hasExeFS()); - } -}; \ No newline at end of file diff --git a/include/fs/archive_system_save_data.hpp b/include/fs/archive_system_save_data.hpp deleted file mode 100644 index c4526bec..00000000 --- a/include/fs/archive_system_save_data.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include "archive_base.hpp" - -class SystemSaveDataArchive : public ArchiveBase { - public: - SystemSaveDataArchive(Memory& mem) : ArchiveBase(mem) {} - - u64 getFreeBytes() override { - Helpers::warn("Unimplemented GetFreeBytes for SystemSaveData archive"); - return 32_MB; - } - - std::string name() override { return "SystemSaveData"; } - - HorizonResult createDirectory(const FSPath& path) override; - HorizonResult createFile(const FSPath& path, u64 size) override; - HorizonResult deleteFile(const FSPath& path) override; - - Rust::Result openArchive(const FSPath& path) override; - Rust::Result openDirectory(const FSPath& path) override; - - FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override; - - std::optional readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override { - Helpers::panic("Unimplemented ReadFile for SystemSaveData archive"); - return {}; - }; -}; \ No newline at end of file diff --git a/include/fs/archive_user_save_data.hpp b/include/fs/archive_user_save_data.hpp deleted file mode 100644 index 56e2c0f6..00000000 --- a/include/fs/archive_user_save_data.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once -#include "archive_base.hpp" - -class UserSaveDataArchive : public ArchiveBase { - u32 archiveID; - public: - UserSaveDataArchive(Memory& mem, u32 archiveID) : ArchiveBase(mem), archiveID(archiveID) {} - - u64 getFreeBytes() override { return 32_MB; } - std::string name() override { return "UserSaveData"; } - - HorizonResult createDirectory(const FSPath& path) override; - HorizonResult createFile(const FSPath& path, u64 size) override; - HorizonResult deleteFile(const FSPath& path) override; - - Rust::Result openArchive(const FSPath& path) override; - Rust::Result openDirectory(const FSPath& path) override; - FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override; - std::optional readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override; - - void format(const FSPath& path, const FormatInfo& info) override; - Rust::Result getFormatInfo(const FSPath& path) override; - - std::filesystem::path getFormatInfoPath() { return IOFile::getAppData() / "FormatInfo" / "SaveData.format"; } - - // Returns whether the cart has save data or not - bool cartHasSaveData() { - auto cxi = mem.getCXI(); - return (cxi != nullptr && cxi->hasSaveData()); // We need to have a CXI file with more than 0 bytes of save data - } -}; \ No newline at end of file diff --git a/include/fs/bad_word_list.hpp b/include/fs/bad_word_list.hpp deleted file mode 100644 index 752721b7..00000000 --- a/include/fs/bad_word_list.hpp +++ /dev/null @@ -1,132 +0,0 @@ -// Generated with https://github.com/B3n30/citra_system_archives -#pragma once - -const unsigned char BAD_WORD_LIST_DATA[] = { - 0x28, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, - 0x4c, 0x00, 0x00, 0x00, 0x98, 0x00, 0x00, 0x00, 0x24, 0x03, 0x00, 0x00, - 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xec, 0x02, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, - 0xc0, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x8c, 0x01, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xe4, 0x01, 0x00, 0x00, 0x94, 0x02, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x3c, 0x02, 0x00, 0x00, 0x34, 0x01, 0x00, 0x00, - 0x2c, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xb8, 0x01, 0x00, 0x00, 0x60, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x0a, 0x00, 0x00, 0x00, 0x30, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, - 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x00, - 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x0a, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x0c, 0x00, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, - 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xb0, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x0c, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, 0x2e, 0x00, 0x74, 0x00, - 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdc, 0x00, 0x00, 0x00, - 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x0c, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x32, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x0c, 0x00, 0x00, 0x00, 0x31, 0x00, 0x33, 0x00, - 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x34, 0x01, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x0c, 0x00, 0x00, 0x00, 0x31, 0x00, 0x34, 0x00, 0x2e, 0x00, 0x74, 0x00, - 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x01, 0x00, 0x00, - 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x0c, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x35, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x8c, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x0c, 0x00, 0x00, 0x00, 0x31, 0x00, 0x36, 0x00, - 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xb8, 0x01, 0x00, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x0a, 0x00, 0x00, 0x00, 0x32, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, - 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe4, 0x01, 0x00, 0x00, - 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x0a, 0x00, 0x00, 0x00, - 0x33, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x60, 0x01, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x0a, 0x00, 0x00, 0x00, 0x34, 0x00, 0x2e, 0x00, - 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x3c, 0x02, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x0a, 0x00, 0x00, 0x00, 0x35, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, - 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x02, 0x00, 0x00, - 0xa0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x36, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x94, 0x02, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xdc, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x37, 0x00, 0x2e, 0x00, - 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xc0, 0x02, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x16, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x0a, 0x00, 0x00, 0x00, 0x38, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, - 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xec, 0x02, 0x00, 0x00, - 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x39, 0x00, 0x2e, 0x00, 0x74, 0x00, 0x78, 0x00, 0x74, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x20, 0x02, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x16, 0x00, 0x00, 0x00, 0x76, 0x00, 0x65, 0x00, - 0x72, 0x00, 0x73, 0x00, 0x69, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x2e, 0x00, - 0x64, 0x00, 0x61, 0x00, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, - 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, - 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, - 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, - 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, - 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, - 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, - 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, - 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, - 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, - 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, - 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, - 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, - 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, - 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, - 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, - 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, - 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, - 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, - 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, - 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, - 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, - 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, - 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, - 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, - 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xfe, 0x5e, 0x00, 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, - 0x6f, 0x00, 0x72, 0x00, 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfe, 0x5e, 0x00, - 0x62, 0x00, 0x61, 0x00, 0x64, 0x00, 0x77, 0x00, 0x6f, 0x00, 0x72, 0x00, - 0x64, 0x00, 0x24, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00 -}; -const unsigned int BAD_WORD_LIST_DATA_len = 1508; \ No newline at end of file diff --git a/include/fs/country_list.hpp b/include/fs/country_list.hpp deleted file mode 100644 index b2e8ead3..00000000 --- a/include/fs/country_list.hpp +++ /dev/null @@ -1,18260 +0,0 @@ -// Generated with https://github.com/B3n30/citra_system_archives -#pragma once - -const unsigned char COUNTRY_LIST_DATA[] = { - 0x28, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, - 0x44, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, - 0x0c, 0x02, 0x00, 0x00, 0x10, 0x03, 0x00, 0x00, 0x58, 0x1a, 0x00, 0x00, - 0x70, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x88, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xa4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x18, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x04, 0x00, 0x00, 0x00, 0x43, 0x00, 0x4e, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x70, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x04, 0x00, 0x00, 0x00, - 0x45, 0x00, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x48, 0x0e, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x4a, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x88, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xb4, 0x0e, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x04, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x52, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x24, 0x0f, 0x00, 0x00, 0x6c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x54, 0x00, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xfc, 0x0f, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x00, 0x00, 0x55, 0x00, 0x53, 0x00, 0xe0, 0x15, 0x00, 0x00, - 0xb4, 0x17, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x00, 0xa0, 0x0c, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xb0, 0x16, 0x00, 0x00, - 0x10, 0x15, 0x00, 0x00, 0x74, 0x14, 0x00, 0x00, 0xa8, 0x01, 0x00, 0x00, - 0xb4, 0x04, 0x00, 0x00, 0x34, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xe8, 0x0e, 0x00, 0x00, 0xa4, 0x13, 0x00, 0x00, - 0x4c, 0x04, 0x00, 0x00, 0x9c, 0x11, 0x00, 0x00, 0x64, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xc4, 0x08, 0x00, 0x00, 0x54, 0x19, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8c, 0x0f, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x94, 0x09, 0x00, 0x00, 0xf4, 0x07, 0x00, 0x00, - 0x14, 0x16, 0x00, 0x00, 0xe8, 0x17, 0x00, 0x00, 0x0c, 0x01, 0x00, 0x00, - 0xd4, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xe4, 0x16, 0x00, 0x00, 0xb8, 0x18, 0x00, 0x00, 0x18, 0x17, 0x00, 0x00, - 0xa4, 0x0d, 0x00, 0x00, 0x04, 0x0c, 0x00, 0x00, 0x68, 0x0b, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xa0, 0x12, 0x00, 0x00, - 0xd8, 0x13, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xb8, 0x05, 0x00, 0x00, - 0xec, 0x19, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xa8, 0x14, 0x00, 0x00, 0x08, 0x13, 0x00, 0x00, 0xf8, 0x08, 0x00, 0x00, - 0x88, 0x19, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc8, 0x09, 0x00, 0x00, - 0x28, 0x08, 0x00, 0x00, 0x48, 0x16, 0x00, 0x00, 0x1c, 0x18, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x08, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xec, 0x18, 0x00, 0x00, - 0x4c, 0x17, 0x00, 0x00, 0x04, 0x12, 0x00, 0x00, 0x38, 0x0c, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8c, 0x07, 0x00, 0x00, - 0xd4, 0x12, 0x00, 0x00, 0x0c, 0x14, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, - 0xec, 0x05, 0x00, 0x00, 0xbc, 0x19, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdc, 0x14, 0x00, 0x00, 0x3c, 0x13, 0x00, 0x00, - 0x2c, 0x09, 0x00, 0x00, 0x9c, 0x0b, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x5c, 0x08, 0x00, 0x00, 0x7c, 0x16, 0x00, 0x00, - 0x50, 0x18, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x3c, 0x0d, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xac, 0x15, 0x00, 0x00, 0x80, 0x17, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x6c, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x24, 0x0f, 0x00, 0x00, - 0xc0, 0x07, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x40, 0x14, 0x00, 0x00, - 0x74, 0x01, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x1c, 0x1a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x70, 0x13, 0x00, 0x00, 0x60, 0x09, 0x00, 0x00, 0xd0, 0x0b, 0x00, 0x00, - 0x00, 0x11, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x90, 0x08, 0x00, 0x00, - 0x20, 0x19, 0x00, 0x00, 0x84, 0x18, 0x00, 0x00, 0x78, 0x0e, 0x00, 0x00, - 0x58, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x18, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0c, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x36, 0x00, 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x18, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x10, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x1c, 0x00, 0x00, 0x00, 0x63, 0x00, 0x6f, 0x00, 0x75, 0x00, 0x6e, 0x00, - 0x74, 0x00, 0x72, 0x00, 0x79, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x80, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x31, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, 0x30, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xd8, 0x00, 0x00, 0x00, 0xc0, 0x4a, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xee, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, - 0x31, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0x0c, 0x01, 0x00, 0x00, - 0xb0, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6f, 0x03, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x30, 0x00, 0x32, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x40, 0x01, 0x00, 0x00, 0x20, 0x4f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xa6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, 0x33, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x74, 0x01, 0x00, 0x00, 0xd0, 0x4f, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xa8, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, - 0x34, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0xa8, 0x01, 0x00, 0x00, - 0x80, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5c, 0x0b, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x30, 0x00, 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0xdc, 0x01, 0x00, 0x00, 0xe0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x7a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, 0x36, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x60, 0x62, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x5b, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, - 0x37, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0x44, 0x02, 0x00, 0x00, - 0xc0, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x0e, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x30, 0x00, 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x78, 0x02, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x28, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x30, 0x00, 0x39, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xac, 0x02, 0x00, 0x00, 0x30, 0x9f, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xad, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, - 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0xe0, 0x02, 0x00, 0x00, - 0xe0, 0xa6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x31, 0x00, 0x31, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x14, 0x03, 0x00, 0x00, 0x70, 0xa7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, 0x32, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x48, 0x03, 0x00, 0x00, 0x10, 0xa8, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xcf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, - 0x33, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0x7c, 0x03, 0x00, 0x00, - 0xe0, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x31, 0x00, 0x34, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0xb0, 0x03, 0x00, 0x00, 0x90, 0xa9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, 0x35, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xe4, 0x03, 0x00, 0x00, 0x00, 0xaa, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, - 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0x18, 0x04, 0x00, 0x00, - 0x80, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x31, 0x00, 0x37, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x4c, 0x04, 0x00, 0x00, 0x10, 0xab, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, 0x38, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0xa0, 0xab, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, - 0x39, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0xb4, 0x04, 0x00, 0x00, - 0x40, 0xac, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x32, 0x00, 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0xe8, 0x04, 0x00, 0x00, 0xd0, 0xac, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x85, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x32, 0x00, 0x31, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x1c, 0x05, 0x00, 0x00, 0x60, 0xad, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x7d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x32, 0x00, - 0x32, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0x50, 0x05, 0x00, 0x00, - 0xe0, 0xad, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x32, 0x00, 0x33, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x84, 0x05, 0x00, 0x00, 0x80, 0xae, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x02, 0x00, 0x00, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x32, 0x00, 0x34, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xb8, 0x05, 0x00, 0x00, 0x10, 0xaf, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xb1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xac, 0x02, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x32, 0x00, - 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0xec, 0x05, 0x00, 0x00, - 0xd0, 0xaf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xe0, 0x02, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x32, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x20, 0x06, 0x00, 0x00, 0x50, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x94, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x03, 0x00, 0x00, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x32, 0x00, 0x37, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x54, 0x06, 0x00, 0x00, 0xf0, 0xb0, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x38, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x36, 0x00, - 0x39, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, 0x88, 0x06, 0x00, 0x00, - 0x30, 0xc4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa1, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x38, 0x00, 0x34, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x34, 0x00, 0x00, 0x00, - 0xbc, 0x06, 0x00, 0x00, 0xe0, 0xc4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xbd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x38, 0x00, 0x35, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xf0, 0x06, 0x00, 0x00, 0xa0, 0xc5, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x58, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x36, 0x00, 0x34, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x24, 0x07, 0x00, 0x00, - 0x00, 0xcb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x06, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x36, 0x00, 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x58, 0x07, 0x00, 0x00, 0x90, 0xd1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x4f, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x36, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x8c, 0x07, 0x00, 0x00, 0xe0, 0xd6, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x82, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x36, 0x00, 0x37, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0xc0, 0x07, 0x00, 0x00, - 0x70, 0xd9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x03, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x36, 0x00, 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0xf4, 0x07, 0x00, 0x00, 0x80, 0xdc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x87, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x36, 0x00, 0x39, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x28, 0x08, 0x00, 0x00, 0x10, 0xdd, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xb6, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x37, 0x00, 0x30, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x5c, 0x08, 0x00, 0x00, - 0xd0, 0xeb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc7, 0x0f, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x37, 0x00, 0x31, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x90, 0x08, 0x00, 0x00, 0xa0, 0xfb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x95, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x37, 0x00, 0x32, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xc4, 0x08, 0x00, 0x00, 0x40, 0xfc, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xcb, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x37, 0x00, 0x33, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0xf8, 0x08, 0x00, 0x00, - 0x10, 0x06, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x05, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x37, 0x00, 0x34, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x2c, 0x09, 0x00, 0x00, 0x20, 0x0b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x37, 0x00, 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x60, 0x09, 0x00, 0x00, 0xc0, 0x0b, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x86, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x37, 0x00, 0x36, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x94, 0x09, 0x00, 0x00, - 0x50, 0x1a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcd, 0x11, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x18, 0x04, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x37, 0x00, 0x37, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0xc8, 0x09, 0x00, 0x00, 0x20, 0x2c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x9b, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x37, 0x00, 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xfc, 0x09, 0x00, 0x00, 0xc0, 0x36, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x85, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x37, 0x00, 0x39, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x30, 0x0a, 0x00, 0x00, - 0x50, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe6, 0x0a, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x38, 0x00, 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x64, 0x0a, 0x00, 0x00, 0x40, 0x4b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xa1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x38, 0x00, 0x31, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x98, 0x0a, 0x00, 0x00, 0xf0, 0x4b, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x51, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x38, 0x00, 0x32, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0xcc, 0x0a, 0x00, 0x00, - 0x50, 0x57, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x0c, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x38, 0x00, 0x33, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x00, 0x0b, 0x00, 0x00, 0xa0, 0x63, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xa5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x38, 0x00, 0x34, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x34, 0x0b, 0x00, 0x00, 0x50, 0x64, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x3e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x38, 0x00, 0x35, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x68, 0x0b, 0x00, 0x00, - 0x90, 0x68, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x99, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x38, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x9c, 0x0b, 0x00, 0x00, 0x30, 0x69, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xdf, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x38, 0x00, 0x37, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xd0, 0x0b, 0x00, 0x00, 0x10, 0x6e, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xe4, 0x03, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x38, 0x00, 0x38, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x04, 0x0c, 0x00, 0x00, - 0xc0, 0x6e, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x01, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x50, 0x05, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x38, 0x00, 0x39, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x38, 0x0c, 0x00, 0x00, 0xd0, 0x6f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0x04, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x39, 0x00, 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x6c, 0x0c, 0x00, 0x00, 0x50, 0x70, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x1c, 0x05, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x39, 0x00, 0x31, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0xa0, 0x0c, 0x00, 0x00, - 0xf0, 0x70, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9e, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x39, 0x00, 0x32, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0xd4, 0x0c, 0x00, 0x00, 0x90, 0x71, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x39, 0x00, 0x33, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x08, 0x0d, 0x00, 0x00, 0x20, 0x72, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xea, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x39, 0x00, 0x34, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x3c, 0x0d, 0x00, 0x00, - 0x10, 0x79, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xed, 0x07, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x39, 0x00, 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x70, 0x0d, 0x00, 0x00, 0x00, 0x81, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x65, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x39, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xa4, 0x0d, 0x00, 0x00, 0x70, 0x8a, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xdc, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x39, 0x00, 0x37, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0xd8, 0x0d, 0x00, 0x00, - 0x50, 0x95, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6f, 0x09, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xdc, 0x01, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x39, 0x00, 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x0c, 0x0e, 0x00, 0x00, 0xc0, 0x9e, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x39, 0x00, 0x39, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xc0, 0xaf, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x30, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x54, 0x06, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x63, 0x00, 0x6f, 0x00, - 0x75, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x72, 0x00, 0x79, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x50, 0x00, 0x00, 0x00, 0x78, 0x0e, 0x00, 0x00, 0xf0, 0xd7, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x50, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x31, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x50, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x40, 0xe7, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x69, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x1c, 0x00, 0x00, 0x00, 0x63, 0x00, 0x6f, 0x00, - 0x75, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x72, 0x00, 0x79, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x6c, 0x00, 0x00, 0x00, 0xe8, 0x0e, 0x00, 0x00, 0xb0, 0xe7, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x7d, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x70, 0x0d, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x33, 0x00, - 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x6c, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x30, 0xef, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb6, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x1c, 0x00, 0x00, 0x00, - 0x63, 0x00, 0x6f, 0x00, 0x75, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x72, 0x00, - 0x79, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x88, 0x00, 0x00, 0x00, 0x58, 0x0f, 0x00, 0x00, - 0xf0, 0xef, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6a, 0x0a, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x32, 0x00, 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x88, 0x00, 0x00, 0x00, - 0x8c, 0x0f, 0x00, 0x00, 0x60, 0xfa, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x83, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb4, 0x0e, 0x00, 0x00, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x34, 0x00, 0x34, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0x88, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0xf0, 0xfa, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x48, 0x0e, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x34, 0x00, - 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x88, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x70, 0xfb, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6a, 0x01, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xfc, 0x09, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, - 0x63, 0x00, 0x6f, 0x00, 0x75, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x72, 0x00, - 0x79, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x30, 0x10, 0x00, 0x00, - 0xe0, 0xfc, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x0b, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x64, 0x10, 0x00, 0x00, 0xe0, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x6a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x31, 0x00, 0x31, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x98, 0x10, 0x00, 0x00, 0x50, 0x09, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x31, 0x00, 0x32, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xcc, 0x10, 0x00, 0x00, - 0xe0, 0x09, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x33, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x00, 0x11, 0x00, 0x00, 0x70, 0x0a, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x61, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x31, 0x00, 0x34, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x34, 0x11, 0x00, 0x00, 0xe0, 0x0c, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x9b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x30, 0x0a, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x35, 0x00, - 0x33, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x68, 0x11, 0x00, 0x00, - 0x80, 0x0d, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb8, 0x06, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x35, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x9c, 0x11, 0x00, 0x00, 0x40, 0x14, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x9b, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x31, 0x00, 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0xd0, 0x11, 0x00, 0x00, 0xe0, 0x17, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xc2, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x84, 0x05, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x36, 0x00, - 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x04, 0x12, 0x00, 0x00, - 0xb0, 0x1b, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf2, 0x0c, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x44, 0x02, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x38, 0x12, 0x00, 0x00, 0xb0, 0x28, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x48, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd8, 0x0d, 0x00, 0x00, - 0x14, 0x00, 0x00, 0x00, 0x31, 0x00, 0x37, 0x00, 0x34, 0x00, 0x5f, 0x00, - 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x6c, 0x12, 0x00, 0x00, 0x00, 0x30, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x67, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x31, 0x00, 0x37, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xa0, 0x12, 0x00, 0x00, - 0x70, 0x31, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xd0, 0x11, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, - 0x31, 0x00, 0x38, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, - 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0xd4, 0x12, 0x00, 0x00, 0x00, 0x32, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x31, 0x00, 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x08, 0x13, 0x00, 0x00, 0x10, 0x3b, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xf6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x31, 0x00, 0x39, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x3c, 0x13, 0x00, 0x00, - 0x10, 0x3c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x08, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x0c, 0x0e, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x32, 0x00, 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x70, 0x13, 0x00, 0x00, 0x70, 0x44, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x06, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x32, 0x00, 0x31, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0xa4, 0x13, 0x00, 0x00, 0x70, 0x54, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x30, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x32, 0x00, 0x32, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xd8, 0x13, 0x00, 0x00, - 0xa0, 0x57, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x96, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x32, 0x00, 0x33, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x0c, 0x14, 0x00, 0x00, 0x40, 0x58, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x35, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x0f, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x32, 0x00, 0x34, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x40, 0x14, 0x00, 0x00, 0x80, 0x67, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x57, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x30, 0x10, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x32, 0x00, 0x35, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x74, 0x14, 0x00, 0x00, - 0xe0, 0x72, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x06, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x64, 0x10, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x32, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0xa8, 0x14, 0x00, 0x00, 0x20, 0x79, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xf3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x98, 0x10, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x32, 0x00, 0x37, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0xdc, 0x14, 0x00, 0x00, 0x20, 0x7a, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x32, 0x00, 0x38, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x10, 0x15, 0x00, 0x00, - 0xb0, 0x7a, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x32, 0x00, 0x39, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x44, 0x15, 0x00, 0x00, 0x50, 0x7b, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xf2, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x33, 0x00, 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x78, 0x15, 0x00, 0x00, 0x50, 0x85, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x71, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x33, 0x00, 0x31, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xac, 0x15, 0x00, 0x00, - 0xd0, 0x8c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x95, 0x04, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xbc, 0x06, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x33, 0x00, 0x32, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0xe0, 0x15, 0x00, 0x00, 0x70, 0x91, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x14, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x06, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x33, 0x00, 0x33, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x14, 0x16, 0x00, 0x00, 0x90, 0x99, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x1c, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x24, 0x07, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x33, 0x00, 0x34, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x48, 0x16, 0x00, 0x00, - 0xb0, 0x9f, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x99, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x58, 0x07, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x33, 0x00, 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x7c, 0x16, 0x00, 0x00, 0x50, 0xa0, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xa4, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x06, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x33, 0x00, 0x36, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0xb0, 0x16, 0x00, 0x00, 0x00, 0xb0, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, 0x33, 0x00, 0x37, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xe4, 0x16, 0x00, 0x00, - 0x90, 0xb0, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x01, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x33, 0x00, 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x18, 0x17, 0x00, 0x00, 0xd0, 0xb1, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x19, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x33, 0x00, 0x39, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x4c, 0x17, 0x00, 0x00, 0xf0, 0xb9, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x79, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xcc, 0x10, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x34, 0x00, 0x30, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x80, 0x17, 0x00, 0x00, - 0x70, 0xbe, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0x08, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x68, 0x11, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x31, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0xb4, 0x17, 0x00, 0x00, 0x00, 0xc7, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x5b, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6c, 0x12, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x34, 0x00, 0x32, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0xe8, 0x17, 0x00, 0x00, 0x60, 0xd1, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x06, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x38, 0x12, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x34, 0x00, 0x33, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x1c, 0x18, 0x00, 0x00, - 0x70, 0xd9, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb6, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x34, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x50, 0x18, 0x00, 0x00, 0x30, 0xda, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x4b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x12, 0x00, 0x00, 0x00, 0x34, 0x00, 0x35, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x84, 0x18, 0x00, 0x00, 0x80, 0xdb, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x32, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x34, 0x11, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x34, 0x00, 0x36, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xb8, 0x18, 0x00, 0x00, - 0xc0, 0xdf, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x06, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x12, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x37, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0xec, 0x18, 0x00, 0x00, 0x00, 0xe6, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x30, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x15, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x34, 0x00, 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0x20, 0x19, 0x00, 0x00, 0x30, 0xe7, 0x02, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x35, 0x1a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x78, 0x15, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x34, 0x00, 0x39, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x54, 0x19, 0x00, 0x00, - 0x70, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x08, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x48, 0x03, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, - 0x35, 0x00, 0x30, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, - 0x88, 0x19, 0x00, 0x00, 0x80, 0x09, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x92, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7c, 0x03, 0x00, 0x00, - 0x12, 0x00, 0x00, 0x00, 0x35, 0x00, 0x31, 0x00, 0x5f, 0x00, 0x4c, 0x00, - 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, - 0xa4, 0x00, 0x00, 0x00, 0xbc, 0x19, 0x00, 0x00, 0x20, 0x0b, 0x03, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xa7, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xb0, 0x03, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x35, 0x00, 0x32, 0x00, - 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xec, 0x19, 0x00, 0x00, - 0xd0, 0x16, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x85, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xcc, 0x0a, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, - 0x38, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x1c, 0x1a, 0x00, 0x00, - 0x60, 0x17, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x37, 0x03, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x98, 0x0a, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, - 0x39, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0xa4, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xa0, 0x1a, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x1f, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x1c, 0x00, 0x00, 0x00, - 0x63, 0x00, 0x6f, 0x00, 0x75, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x72, 0x00, - 0x79, 0x00, 0x5f, 0x00, 0x4c, 0x00, 0x5a, 0x00, 0x2e, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x58, 0x1d, 0x01, 0x11, 0x1f, 0x00, 0x00, 0x30, 0x01, 0xa0, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x62, 0x1c, 0xcc, 0x52, 0x00, 0x00, 0x00, 0x02, 0xa0, 0x17, 0x53, - 0xac, 0x4e, 0x02, 0x40, 0x5e, 0x06, 0x98, 0x1b, 0x42, 0x00, 0x65, 0x00, - 0x69, 0x00, 0x44, 0x6a, 0x20, 0x03, 0x6e, 0x00, 0x67, 0x06, 0x28, 0xa2, - 0x50, 0x00, 0x1b, 0xe9, 0x00, 0x6b, 0x40, 0x7d, 0x06, 0x59, 0x1f, 0x50, - 0x20, 0xff, 0x50, 0x7f, 0xc5, 0x06, 0x30, 0xfd, 0x50, 0x7f, 0x63, 0x00, - 0x68, 0x41, 0x7f, 0x6f, 0x06, 0x80, 0xff, 0x60, 0xed, 0x06, 0x81, 0x7f, - 0x06, 0xf2, 0xff, 0xa0, 0xbc, 0x74, 0xc7, 0xd5, 0x41, 0xc9, 0x0e, 0xb3, - 0x7f, 0x65, 0x00, 0x71, 0x00, 0x75, 0x24, 0x03, 0x40, 0x6d, 0x06, 0x4c, - 0xa0, 0x1f, 0x04, 0x35, 0x04, 0x3a, 0x04, 0x0e, 0x38, 0x04, 0x3d, 0x04, - 0x0e, 0x52, 0x7f, 0x06, 0xf5, 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x01, 0x60, - 0x01, 0xd0, 0x01, 0x58, 0x17, 0x03, 0xa0, 0xcd, 0x91, 0x76, 0x55, 0x61, - 0x06, 0xb8, 0x17, 0x43, 0x26, 0x93, 0x6f, 0x48, 0x13, 0x71, 0x06, 0x48, - 0x1b, 0x84, 0x10, 0x0e, 0xf0, 0x7f, 0xcd, 0x91, 0x86, 0x5e, 0x06, 0xbb, - 0x17, 0xa9, 0xcd, 0x22, 0x6d, 0xce, 0x06, 0xbf, 0xb1, 0x54, 0x00, 0x73, - 0x2b, 0x95, 0x6f, 0xf1, 0x2b, 0x9d, 0x3b, 0x97, 0x06, 0x1a, 0xa1, 0x06, - 0xf3, 0xff, 0x27, 0x04, 0x43, 0x28, 0x13, 0x64, 0x46, 0x06, 0x88, 0x19, - 0x10, 0x16, 0xf5, 0x7f, 0x02, 0x02, 0xd0, 0x01, 0x0c, 0x15, 0x00, 0xa3, - 0x4b, 0x00, 0x00, 0x04, 0xa0, 0x0a, 0x4e, 0x2b, 0x77, 0x6d, 0x06, 0xbd, - 0x2f, 0x53, 0x2e, 0xab, 0x61, 0x4f, 0x2d, 0x30, 0x07, 0x58, 0x69, 0x10, - 0x0e, 0xc0, 0x7f, 0xe1, 0x06, 0x21, 0xff, 0x06, 0xf2, 0xff, 0xc1, 0xc0, - 0x58, 0x15, 0xd5, 0x74, 0xc7, 0x06, 0xb3, 0x7f, 0x6a, 0x06, 0xc3, 0x7f, - 0x58, 0x63, 0xfd, 0xc5, 0x06, 0x33, 0xfb, 0x3f, 0xff, 0x28, 0x04, 0x30, - 0x28, 0x17, 0x45, 0x20, 0x05, 0x64, 0x39, 0x06, 0x48, 0x17, 0x10, 0x16, - 0xf5, 0x7f, 0x03, 0x03, 0xd0, 0x01, 0x38, 0x16, 0x00, 0x61, 0x56, 0x00, - 0x00, 0x05, 0xa0, 0x29, 0x59, 0x5b, 0x25, 0x06, 0xc8, 0x17, 0x54, 0x2f, - 0xa5, 0x38, 0x17, 0x6a, 0x4f, 0xad, 0x10, 0x06, 0x50, 0x7f, 0xbc, 0x3e, - 0x2b, 0x74, 0x2e, 0x37, 0x06, 0x31, 0x81, 0x06, 0xf1, 0xff, 0x06, 0xf2, - 0xff, 0x88, 0xd1, 0x31, 0xc4, 0xc9, 0x06, 0x9e, 0x2d, 0x0f, 0x13, 0x7f, - 0x22, 0x04, 0x4f, 0x28, 0x17, 0x01, 0x4c, 0x04, 0x46, 0x04, 0x37, 0x04, - 0x38, 0x40, 0x09, 0xe4, 0x0d, 0xd2, 0x7f, 0x10, 0x07, 0x35, 0x7f, 0x06, - 0xb6, 0xff, 0x04, 0x04, 0xd0, 0x01, 0xd7, 0x1b, 0x00, 0x54, 0x53, 0x00, - 0x00, 0x06, 0xa0, 0x89, 0x5b, 0x0a, 0xbd, 0x5f, 0x01, 0x77, 0x06, 0x9d, - 0x2f, 0x41, 0x2f, 0xab, 0x68, 0x38, 0x00, 0x75, 0x06, 0x6c, 0x2d, 0x10, - 0x0f, 0x10, 0x7f, 0x06, 0xf2, 0xff, 0x48, 0xc5, 0xc4, 0x01, 0xd6, 0x74, - 0xc7, 0x20, 0x00, 0x31, 0xc1, 0x10, 0x06, 0x53, 0x7f, 0x41, 0x10, 0x48, - 0x15, 0x45, 0x04, 0x3e, 0x04, 0x39, 0x05, 0xe8, 0x11, 0xc8, 0x07, 0x52, - 0x7f, 0x10, 0x0e, 0xf5, 0x7f, 0x05, 0x05, 0xd0, 0x01, 0xb5, 0x16, 0x6c, - 0x81, 0x28, 0x17, 0x07, 0xa0, 0x8f, 0x79, 0xfa, 0x5e, 0x06, 0xb8, 0x17, - 0x7c, 0x46, 0x28, 0x13, 0x3f, 0xab, 0x3f, 0xb3, 0x10, 0x16, 0x30, 0x7f, - 0x06, 0xf2, 0xff, 0x78, 0xd4, 0x30, 0x20, 0xc8, 0x06, 0x98, 0x15, 0x0f, - 0x13, 0x7f, 0x24, 0x04, 0x43, 0x04, 0x07, 0x46, 0x04, 0x37, 0x04, 0x4f, - 0x48, 0x1f, 0x0e, 0x12, 0x7f, 0x10, 0x0e, 0xf5, 0x7f, 0x20, 0x06, 0x06, - 0xd0, 0x01, 0x8c, 0x12, 0xd5, 0x54, 0x00, 0x01, 0x00, 0x08, 0xa0, 0x18, - 0x75, 0x9b, 0x7c, 0x06, 0xbd, 0x2f, 0x58, 0x47, 0x48, 0x11, 0x73, 0x2f, - 0xb1, 0x10, 0x16, 0x50, 0x7f, 0x18, 0x75, 0x83, 0x43, 0x80, 0x06, 0xbd, - 0xaf, 0x04, 0xac, 0x64, 0xc4, 0x06, 0xb8, 0x17, 0x0e, 0xf3, 0x7f, 0x16, - 0x13, 0x04, 0x30, 0x48, 0x11, 0x41, 0x28, 0x1f, 0x06, 0x52, 0x7f, 0x85, - 0xc8, 0x06, 0xc2, 0x7f, 0x10, 0x0e, 0xf5, 0x7f, 0x07, 0x07, 0xd0, 0x01, - 0x9f, 0x19, 0xc7, 0x00, 0x49, 0x00, 0x00, 0x09, 0xa0, 0x83, 0x5e, 0x71, - 0x50, 0x67, 0x06, 0xd8, 0x17, 0x75, 0x4f, 0xab, 0x67, 0x00, 0x64, 0x00, - 0x68, 0x6f, 0x40, 0x07, 0x10, 0x0d, 0xd0, 0x7f, 0x43, 0x4e, 0xa9, 0x74, - 0x00, 0xf3, 0x84, 0x06, 0x6e, 0xaf, 0x7f, 0x5e, 0x1c, 0x4e, 0x06, 0xbd, - 0xaf, 0x11, 0xad, 0x36, 0x65, 0xb4, 0x06, 0xd8, 0x17, 0x0e, 0xd3, 0x7f, - 0x13, 0x28, 0x0f, 0x38, 0x19, 0x34, 0xa9, 0x28, 0x17, 0x3d, 0x06, 0x28, - 0x19, 0xe3, 0x10, 0x16, 0xe5, 0x7f, 0x08, 0x08, 0xd0, 0x01, 0x00, 0x6d, - 0x10, 0x6d, 0x50, 0x00, 0x00, 0x0a, 0xa0, 0x08, 0xb4, 0x8c, 0xde, 0x5d, - 0x06, 0xf8, 0x17, 0x69, 0x00, 0x7a, 0x39, 0x00, 0x68, 0x28, 0x15, 0x06, - 0x3f, 0xb3, 0x10, 0x0e, 0xf0, 0x7f, 0x35, 0x8d, 0x06, 0xd2, 0xff, 0x00, - 0x6c, 0xad, 0x74, 0xc7, 0x00, 0xc8, 0xb0, 0xc6, 0xe0, 0x06, 0x78, 0x1b, - 0x0e, 0xf3, 0x7f, 0x38, 0x17, 0x39, 0x04, 0x47, 0x04, 0x36, 0x39, 0x04, - 0x3e, 0x28, 0x21, 0x06, 0x1f, 0xb7, 0x10, 0x16, 0xf5, 0x7f, 0x09, 0x09, - 0xd0, 0x01, 0x00, 0xe4, 0x12, 0xdd, 0x4b, 0x00, 0x00, 0x0b, 0xa0, 0x0a, - 0x77, 0x6d, 0x57, 0x53, 0x06, 0xbd, 0x2f, 0x48, 0x2f, 0xad, 0x69, 0xf0, - 0x2f, 0xaf, 0x3f, 0xb3, 0x10, 0x16, 0x30, 0x7f, 0x06, 0xf2, 0xff, 0x58, - 0xd5, 0x74, 0xc7, 0x31, 0x9c, 0xb0, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, - 0x25, 0x04, 0x30, 0x28, 0x17, 0x46, 0x3d, 0x20, 0x05, 0x3d, 0x04, 0x4c, - 0x06, 0x28, 0x17, 0x10, 0x16, 0xf5, 0x7f, 0x0a, 0x40, 0x0a, 0xd0, 0x01, - 0x48, 0x0e, 0x75, 0x4e, 0x00, 0x00, 0x04, 0x0c, 0xa0, 0xb3, 0x6c, 0x17, - 0x06, 0xe8, 0x17, 0x65, 0x00, 0x58, 0x62, 0x20, 0x03, 0x69, 0x10, 0x16, - 0x60, 0x7f, 0x06, 0xf2, 0xff, 0xc8, 0xd5, 0xa0, 0x18, 0xbc, 0x74, 0xc7, - 0x06, 0xb8, 0x17, 0x0e, 0xd3, 0x7f, 0x25, 0x04, 0x4d, 0x2e, 0x04, 0x31, - 0x20, 0x03, 0x39, 0x06, 0x28, 0x13, 0x07, 0x32, 0x7f, 0x10, 0x0e, 0xf5, - 0x7f, 0x0b, 0x40, 0x0b, 0xd0, 0x01, 0x0e, 0x1b, 0x66, 0x51, 0x00, 0x00, - 0x00, 0x0d, 0xa0, 0xd2, 0x9e, 0x8d, 0x9f, 0x5f, 0x6c, 0xc1, 0x06, 0x9d, - 0x31, 0x38, 0x17, 0x69, 0x00, 0x6c, 0x00, 0x6f, 0x2f, 0xb3, 0x1a, 0x67, - 0x00, 0x6a, 0x2f, 0xbb, 0x3f, 0xb9, 0x67, 0x10, 0x15, 0x80, 0x7f, 0xd1, - 0x20, 0x9e, 0x99, 0x06, 0xc2, 0xff, 0xe4, 0xd5, 0x74, 0xc7, 0xfd, 0x3c, - 0xb8, 0xa5, 0x06, 0x88, 0x19, 0x07, 0xf3, 0x7f, 0x05, 0xd3, 0xfd, 0x58, - 0x17, 0x39, 0x04, 0x00, 0x3b, 0x04, 0x43, 0x04, 0x3d, 0x04, 0x46, 0x04, - 0x1a, 0x37, 0x04, 0x4f, 0x20, 0x07, 0x05, 0xbf, 0xbd, 0xd1, 0x10, 0x16, - 0xe5, 0x7f, 0x0c, 0x40, 0x0c, 0xd0, 0x01, 0x8b, 0x20, 0x19, 0x5a, 0x00, - 0x00, 0x05, 0x0e, 0xa0, 0xb3, 0x6c, 0x57, 0x07, 0x0a, 0xaf, 0x6e, 0x48, - 0x0b, 0xc3, 0x10, 0x16, 0x50, 0x7f, 0x06, 0xf2, 0xff, 0xc8, 0xd5, 0x9c, - 0xb0, 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x8b, 0x38, 0x17, 0x3d, 0x04, - 0x30, 0x28, 0x15, 0x4c, 0x05, 0xc8, 0x0f, 0x07, 0x72, 0x7f, 0x90, 0x10, - 0x0e, 0xf5, 0x7f, 0x0d, 0x0d, 0xd0, 0x01, 0x9a, 0x18, 0xce, 0x50, 0x01, - 0x00, 0x00, 0x0f, 0xa0, 0x56, 0x6e, 0x17, 0x06, 0xe8, 0x17, 0x1c, 0x75, - 0x00, 0x62, 0x4f, 0xb3, 0x10, 0x16, 0x50, 0x7f, 0x06, 0xf2, 0xff, 0xc4, - 0xd6, 0x0c, 0xa0, 0xbc, 0x74, 0xc7, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, - 0x25, 0x04, 0x17, 0x43, 0x04, 0x31, 0x28, 0x1b, 0x39, 0x06, 0x48, 0x15, - 0x07, 0x12, 0x7f, 0x10, 0x0e, 0xf5, 0x7f, 0x20, 0x0e, 0x0e, 0xd0, 0x01, - 0xbf, 0x15, 0x4a, 0x51, 0x00, 0x35, 0x00, 0x10, 0x28, 0x17, 0x06, 0xfa, - 0xaf, 0xfa, 0x2f, 0xaf, 0xe1, 0x06, 0xaf, 0xaf, 0x70, 0x75, 0x06, 0xef, - 0xaf, 0x10, 0x06, 0xd0, 0x7f, 0x06, 0xf2, 0xff, 0xc4, 0xd6, 0x9c, 0xb0, - 0xe2, 0x06, 0x98, 0x15, 0x0f, 0x12, 0xff, 0x38, 0x17, 0x3d, 0x04, 0x30, - 0x20, 0x03, 0x4c, 0xe4, 0x06, 0x48, 0x19, 0x0f, 0x15, 0x7f, 0x10, 0x06, - 0xd0, 0x7f, 0x0f, 0x0f, 0xd0, 0x01, 0x0a, 0x14, 0x00, 0x57, 0x50, 0x00, - 0x00, 0x11, 0xa0, 0x5f, 0x6c, 0x2c, 0x07, 0x86, 0x06, 0xbd, 0x2f, 0x4a, - 0x2f, 0xa9, 0x37, 0x95, 0x67, 0x00, 0x61, 0x73, 0x2f, 0xb9, 0x10, 0x16, - 0x10, 0x7f, 0x5f, 0x6c, 0xcf, 0x82, 0x06, 0xbd, 0xaf, 0x0c, 0xa5, 0xc7, - 0x64, 0xc4, 0x06, 0xb8, 0x17, 0x0e, 0xf3, 0x7f, 0x26, 0x04, 0x17, 0x37, - 0x04, 0x4f, 0x28, 0x19, 0x41, 0x28, 0x1f, 0x06, 0x3f, 0xb5, 0x10, 0x16, - 0xf5, 0x7f, 0x20, 0x10, 0x10, 0xd0, 0x01, 0xc7, 0x16, 0x80, 0x54, 0x00, - 0x25, 0x00, 0x12, 0x28, 0x17, 0x7f, 0x89, 0x07, 0x58, 0x17, 0x78, 0x28, - 0x21, 0xc3, 0x10, 0x16, 0x10, 0x7f, 0x06, 0xf2, 0xff, 0xa5, 0xc7, 0xdc, - 0xc2, 0x07, 0x58, 0x17, 0x0e, 0x53, 0x7f, 0xb2, 0x98, 0x17, 0x38, 0x06, - 0x68, 0x17, 0x10, 0x16, 0xd5, 0x7f, 0x11, 0x11, 0xd0, 0x01, 0x5c, 0x00, - 0x14, 0x71, 0x52, 0x00, 0x00, 0x13, 0xa0, 0x09, 0x15, 0x54, 0x97, 0x67, - 0x06, 0xfa, 0xaf, 0x6c, 0x2f, 0xb3, 0x6e, 0x10, 0x16, 0x60, 0x7f, 0x86, - 0x06, 0xf2, 0xff, 0xc0, 0xc9, 0xb0, 0xb9, 0x06, 0xf8, 0x17, 0x0e, 0xb3, - 0x7f, 0x13, 0xae, 0x28, 0x0f, 0x40, 0x28, 0x13, 0x3d, 0x06, 0x48, 0x15, - 0x07, 0x12, 0x7f, 0x10, 0x0e, 0xf5, 0x7f, 0x12, 0x40, 0x12, 0xd0, 0x01, - 0x37, 0x1f, 0x17, 0x59, 0x00, 0x00, 0x02, 0x14, 0xa0, 0x7c, 0x90, 0xe7, - 0x5b, 0x06, 0xbd, 0x2f, 0x4c, 0xb4, 0x4f, 0xaf, 0x6f, 0x2f, 0xb1, 0x38, - 0x1b, 0x67, 0x10, 0x16, 0x00, 0x7f, 0xbd, 0x8f, 0x40, 0x81, 0x06, 0xc2, - 0xff, 0xb4, 0xb7, 0x24, 0xc6, 0xdd, 0xb2, 0xc1, 0x06, 0x98, 0x19, 0x0e, - 0xf3, 0x7f, 0x1b, 0x04, 0x4f, 0x04, 0x3e, 0x28, 0x15, 0xc8, 0x06, 0x78, - 0x19, 0x10, 0x16, 0xf5, 0x7f, 0x13, 0x13, 0xd0, 0x01, 0xb9, 0x1d, 0xbd, - 0x00, 0x57, 0x00, 0x00, 0x15, 0xa0, 0x52, 0x97, 0x77, 0x55, 0x6d, 0x06, - 0xbd, 0x2f, 0x51, 0x68, 0x0f, 0x68, 0x28, 0x1d, 0x69, 0x10, 0x16, 0x20, - 0x7f, 0x81, 0x06, 0xf2, 0xff, 0x6d, 0xce, 0x58, 0xd5, 0x74, 0xc7, 0x06, - 0x98, 0x17, 0xa0, 0x0e, 0xf3, 0x7f, 0x26, 0x48, 0x11, 0x45, 0x04, 0x30, - 0x04, 0x39, 0xc8, 0x06, 0x48, 0x17, 0x10, 0x16, 0xf5, 0x7f, 0x14, 0x14, - 0xd0, 0x01, 0x06, 0x1a, 0x79, 0x00, 0x48, 0x00, 0x00, 0x16, 0xa0, 0x5d, - 0x96, 0x7f, 0x51, 0x89, 0x06, 0xbd, 0x2f, 0x53, 0x48, 0x11, 0x6e, 0x00, - 0x78, 0x06, 0x48, 0x15, 0xe8, 0x70, 0x7f, 0x06, 0x90, 0x81, 0x10, 0x06, - 0xf0, 0x7f, 0x55, 0x06, 0xe2, 0xff, 0xb0, 0xc0, 0xdc, 0x62, 0xc2, 0x06, - 0x98, 0x15, 0x0f, 0x12, 0xff, 0x28, 0x04, 0x4d, 0x28, 0x17, 0x4c, 0x3c, - 0x04, 0x41, 0x28, 0x1f, 0x06, 0x3f, 0xb5, 0x0f, 0x55, 0x7f, 0x10, 0x06, - 0x90, 0x7f, 0x15, 0x15, 0x80, 0xd0, 0x01, 0x5e, 0x18, 0x70, 0x4d, 0x00, - 0x00, 0x17, 0x04, 0xa0, 0x71, 0x5c, 0x71, 0x67, 0x07, 0x38, 0x17, 0x64, - 0x00, 0x61, 0x6f, 0x4f, 0xb7, 0x10, 0x15, 0xf0, 0x7f, 0x71, 0x5c, 0x1c, - 0x4e, 0x06, 0xd8, 0x17, 0x31, 0x65, 0xb4, 0x07, 0x18, 0x17, 0x0e, 0x93, - 0x7f, 0x28, 0x04, 0x30, 0x48, 0x17, 0x1c, 0x34, 0x04, 0x43, 0x28, 0x1f, - 0x06, 0x1f, 0xb7, 0x10, 0x16, 0xf5, 0x7f, 0x16, 0x16, 0x80, 0xd0, 0x01, - 0x1c, 0x1a, 0x36, 0x53, 0x00, 0x00, 0x18, 0xf0, 0x28, 0x17, 0x10, 0x16, - 0xda, 0xaf, 0x06, 0xfc, 0xaf, 0x06, 0xf2, 0xff, 0xb0, 0xc0, 0xdc, 0xc2, - 0xe3, 0x07, 0x38, 0x17, 0x0e, 0x7e, 0x2f, 0x78, 0x17, 0x41, 0x04, 0x38, - 0x06, 0x28, 0x15, 0x07, 0x12, 0x7f, 0x90, 0x10, 0x0e, 0xf5, 0x7f, 0x17, - 0x17, 0xd0, 0x01, 0xe7, 0x1a, 0x00, 0x50, 0x00, 0x00, 0x00, 0x19, 0xa0, - 0xdb, 0x56, 0xdd, 0x5d, 0x8b, 0x06, 0xda, 0xaf, 0x69, 0x00, 0x63, 0x2f, - 0xb3, 0x75, 0x4f, 0xb5, 0x10, 0x16, 0x10, 0x7f, 0x86, 0x06, 0xf2, 0xff, - 0xf0, 0xc4, 0x28, 0xcd, 0x06, 0xd8, 0x17, 0x0e, 0xd3, 0x7f, 0x21, 0x03, - 0x04, 0x4b, 0x04, 0x47, 0x04, 0x43, 0x68, 0x1d, 0x0e, 0x12, 0x7f, 0x90, - 0x10, 0x0e, 0xf5, 0x7f, 0x18, 0x18, 0xd0, 0x01, 0xc8, 0x15, 0x09, 0x4a, - 0x00, 0x00, 0x00, 0x1a, 0xa0, 0xf2, 0x96, 0x57, 0x53, 0xae, 0x06, 0xbd, - 0x2f, 0x59, 0x28, 0x11, 0x6e, 0x2f, 0xaf, 0x06, 0x58, 0x15, 0x10, 0x0f, - 0x10, 0x7f, 0x91, 0x43, 0x4e, 0x06, 0xd2, 0xff, 0x08, 0xc7, 0x9c, 0xb0, - 0x06, 0xb8, 0x17, 0x0e, 0xf3, 0x7f, 0x59, 0x2e, 0x48, 0x0f, 0x3d, 0x06, - 0x88, 0x17, 0x10, 0x16, 0xf5, 0x7f, 0x19, 0x19, 0xd0, 0x01, 0x00, 0xd3, - 0x11, 0x04, 0x49, 0x00, 0x00, 0x1b, 0xa0, 0x0a, 0x59, 0x6d, 0x5f, 0x6c, - 0x06, 0xbd, 0x2f, 0x5a, 0x2f, 0xab, 0x65, 0x36, 0x00, 0x6a, 0x2f, 0xb5, - 0x3f, 0xaf, 0x67, 0x10, 0x16, 0x00, 0x7f, 0x06, 0xf2, 0xff, 0x00, 0x18, - 0xc8, 0xa5, 0xc7, 0x06, 0xb8, 0x17, 0x0e, 0xf3, 0x7f, 0x27, 0x04, 0x36, - 0x00, 0x04, 0x4d, 0x04, 0x46, 0x04, 0x37, 0x04, 0x4f, 0xe4, 0x28, 0x21, - 0x06, 0x2d, 0x17, 0x10, 0x16, 0xe5, 0x7f, 0x1a, 0x1a, 0xd0, 0x01, 0x8b, - 0x15, 0x00, 0x6a, 0x55, 0x00, 0x00, 0x1d, 0xa0, 0x83, 0x5e, 0x00, 0x7f, - 0x89, 0xc1, 0x30, 0xef, 0x30, 0xf3, 0x30, 0x00, 0xcf, 0x65, 0xea, 0x81, - 0xbb, 0x6c, 0x3a, 0x53, 0xb5, 0x05, 0xdf, 0xb6, 0x47, 0x2f, 0xaf, 0x58, - 0x11, 0x78, 0x28, 0x1b, 0x2d, 0x48, 0x27, 0xbd, 0x70, 0x11, 0x7a, 0x2f, - 0xcb, 0x05, 0xd0, 0x7f, 0x06, 0x1f, 0xb2, 0x07, 0xd0, 0x7f, 0x20, 0xc1, - 0x7f, 0xa6, 0x0d, 0x30, 0xff, 0x7f, 0x22, 0xff, 0xee, 0x58, 0x06, 0x52, - 0xfb, 0x3f, 0xff, 0x11, 0x00, 0xad, 0xdc, 0xc2, 0xa1, 0xc8, 0x20, 0x00, - 0x71, 0x81, 0x20, 0x03, 0x90, 0xc7, 0x58, 0xce, 0x6c, 0xad, 0x0e, 0xb2, - 0x7f, 0x82, 0x06, 0x1f, 0xaf, 0x13, 0x04, 0x43, 0x04, 0x30, 0x28, 0x11, - 0x41, 0x0d, 0x04, 0x38, 0x04, 0x2d, 0x48, 0x25, 0x70, 0x0f, 0x3a, 0x20, - 0x11, 0x00, 0x39, 0x04, 0x20, 0x00, 0x30, 0x04, 0x32, 0x04, 0x11, 0x42, - 0x04, 0x3e, 0x28, 0x35, 0x3e, 0x04, 0x3c, 0x28, 0x3b, 0x56, 0x4b, 0x40, - 0x15, 0x40, 0x20, 0x35, 0x39, 0x40, 0x15, 0x02, 0xdf, 0xeb, 0xe3, 0xae, - 0x25, 0x7f, 0xef, 0x62, 0x7f, 0x40, 0x06, 0x22, 0x7f, 0x07, 0xd5, 0x7f, - 0x10, 0x06, 0x10, 0x7f, 0x1b, 0x40, 0x1b, 0xd0, 0x01, 0x3c, 0x10, 0x06, - 0x4d, 0x00, 0x00, 0x04, 0x1e, 0xa0, 0x85, 0x51, 0xe2, 0x28, 0x13, 0xb4, - 0x30, 0x2d, 0xeb, 0x30, 0x06, 0x55, 0x19, 0x4e, 0x2f, 0xad, 0x38, 0x0f, - 0x4d, 0x2f, 0xb5, 0xb1, 0x3f, 0xaf, 0x67, 0x05, 0x28, 0x0b, 0xbf, 0xff, - 0x4d, 0x00, 0x6f, 0x4f, 0xa7, 0x15, 0x6f, 0x00, 0x6c, 0x2f, 0xb3, 0x65, - 0x27, 0x19, 0x49, 0x2f, 0xb7, 0x05, 0x74, 0x00, 0xe9, 0x00, 0x72, 0x40, - 0x0f, 0x75, 0x20, 0x07, 0x6d, 0x65, 0x04, 0xaf, 0xc5, 0x30, 0x6d, 0x6e, - 0x2f, 0xb1, 0x30, 0x65, 0x20, 0xc0, 0x8d, 0xdb, 0x31, 0x17, 0x05, 0xf0, - 0xff, 0x61, 0x80, 0xff, 0x30, 0x91, 0x6e, 0x2f, 0xc3, 0x06, 0xb0, 0x7f, - 0x50, 0x69, 0x21, 0x9b, 0x72, 0x04, 0xef, 0xca, 0x85, 0x51, 0x99, 0x84, - 0x20, 0xe4, 0x53, 0x06, 0x78, 0x15, 0x00, 0x00, 0x24, 0xb1, 0x74, 0x04, - 0xc7, 0x4d, 0xba, 0x6c, 0xad, 0x06, 0x58, 0x15, 0x00, 0x00, 0x6d, 0x42, - 0x2f, 0xa9, 0x52, 0x81, 0x6e, 0x43, 0x85, 0xb3, 0x0d, 0xeb, 0x05, 0xa3, - 0x7f, 0x74, 0xf3, 0x82, 0x7f, 0x30, 0x8f, 0x05, 0x91, 0xff, 0x10, 0x00, - 0xe7, 0xf5, 0x20, 0x00, 0x51, 0x12, 0x28, 0x35, 0x43, 0x28, 0x19, 0x40, - 0x04, 0x35, 0x28, 0x3f, 0x11, 0x3d, 0x04, 0x4f, 0x20, 0x01, 0x20, 0x00, - 0x1c, 0x48, 0x29, 0x55, 0x33, 0x28, 0x2f, 0x3b, 0x28, 0x51, 0x4f, 0x02, - 0x88, 0x1d, 0x67, 0x82, 0x7f, 0xe4, 0x06, 0x38, 0x15, 0x07, 0x15, 0x7f, - 0x10, 0x06, 0xf0, 0x7f, 0x1c, 0x1c, 0xd0, 0x01, 0x06, 0x1d, 0x00, 0x5f, - 0x4f, 0x00, 0x00, 0x1f, 0xa0, 0xe7, 0x5b, 0x0b, 0x0f, 0x59, 0xde, 0x56, - 0x06, 0x9d, 0x2f, 0x4e, 0x44, 0x97, 0x5f, 0xad, 0x6f, 0x61, 0x2a, 0xaf, - 0x3e, 0xad, 0x69, 0x05, 0x4a, 0xa9, 0x00, 0x30, 0x7f, 0x06, 0xf0, 0xff, - 0x06, 0xf1, 0x7f, 0x1a, 0x20, 0x00, 0x48, 0x41, 0x7f, 0x0d, 0x90, 0xff, - 0x81, 0x06, 0xe2, 0xff, 0xdd, 0x00, 0xb2, 0xe4, 0xc0, 0xc4, 0xd6, 0x74, - 0xc7, 0x20, 0x1a, 0x00, 0x71, 0xc8, 0x06, 0x38, 0x1b, 0x0e, 0xf2, 0xff, - 0x1d, 0x27, 0xd5, 0x3d, 0x22, 0x04, 0x41, 0x27, 0xed, 0x2d, 0x00, 0x25, - 0x27, 0xff, 0x4d, 0x8d, 0x28, 0x17, 0x41, 0x04, 0x3a, 0x27, 0xeb, 0x38, - 0x1f, 0x30, 0x00, 0xe8, 0x35, 0xf9, 0x03, 0x1f, 0xdf, 0xb5, 0x7f, 0x06, - 0x38, 0x19, 0x07, 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, 0x1d, 0x1d, 0xd0, - 0x01, 0x00, 0x60, 0x1b, 0x9a, 0x4b, 0x00, 0x00, 0x20, 0xa0, 0x00, 0xb0, - 0x65, 0x86, 0x75, 0xa6, 0x30, 0xa4, 0x30, 0x0a, 0xb0, 0x30, 0xeb, 0x30, - 0x06, 0x3d, 0x35, 0x58, 0x4c, 0xaf, 0x6a, 0xc5, 0x4e, 0xab, 0x3f, 0xb7, - 0x2d, 0x00, 0x57, 0x4f, 0x29, 0x77, 0x2f, 0xa9, 0x5e, 0x27, 0x4f, 0x47, - 0x2d, 0x04, 0xc8, 0x25, 0xf0, 0x7f, 0x05, 0xfe, 0x33, 0x07, 0xf0, 0x7f, - 0x20, 0x0f, 0x00, 0x55, 0x00, 0x79, 0x4c, 0x35, 0x04, 0xff, 0xa9, 0x07, - 0x51, 0x7f, 0x32, 0xff, 0x02, 0xf4, 0x7e, 0x3e, 0x54, 0x14, 0x5c, 0x06, - 0x5b, 0x19, 0xe0, 0x00, 0xc2, 0xa5, 0xc7, 0xe8, 0xc6, 0x74, 0xc7, 0xb0, - 0x1a, 0xc6, 0xbc, 0xc5, 0x06, 0x38, 0x17, 0x0e, 0xf2, 0xff, 0x21, 0x48, - 0x17, 0x4c, 0x0a, 0x04, 0x46, 0x04, 0x37, 0x2f, 0xf5, 0x3d, 0x28, 0x1d, - 0x23, 0xac, 0x28, 0x19, 0x33, 0x28, 0x21, 0x40, 0x05, 0x48, 0x1f, 0x35, - 0x7f, 0xad, 0x7d, 0x0e, 0x3e, 0x54, 0x3e, 0x72, 0x06, 0x58, 0x19, 0x07, - 0xf5, 0x7f, 0x10, 0x05, 0xf0, 0x7f, 0x1e, 0x42, 0x1e, 0xd0, 0x01, 0x22, - 0x1f, 0x48, 0x3e, 0x23, 0x15, 0xa0, 0x01, 0xc1, 0x30, 0xd9, 0x30, 0xc3, - 0x30, 0xc8, 0x06, 0x48, 0x13, 0xb5, 0x78, 0x17, 0x7a, 0x06, 0x67, 0x93, - 0x3f, 0xff, 0x54, 0x2f, 0xaf, 0x62, 0x28, 0x89, 0x68, 0x74, 0x06, 0x40, - 0x7d, 0x0f, 0x30, 0x7f, 0xed, 0x06, 0xc1, 0x7f, 0x7f, 0x89, 0xcf, 0x60, - 0x85, 0x06, 0x72, 0xfb, 0x3f, 0xff, 0xf0, 0xd2, 0xa0, 0xbc, 0xb8, 0x6a, - 0xd2, 0x06, 0x38, 0x11, 0x07, 0xf2, 0xff, 0x65, 0x06, 0x43, 0xff, 0x22, - 0x28, 0x17, 0x31, 0x3f, 0x04, 0x35, 0x27, 0xf5, 0x05, 0x38, 0x05, 0x00, - 0x92, 0x7f, 0x06, 0x18, 0x11, 0x07, 0x55, 0x7f, 0x10, 0x06, 0xf0, 0x7f, - 0x20, 0x1f, 0x1f, 0xd0, 0x01, 0x18, 0x15, 0xd4, 0x40, 0x03, 0x80, 0x4f, - 0xff, 0x1c, 0xa0, 0xf0, 0x53, 0x7e, 0x6e, 0x01, 0x6e, 0x77, 0x06, 0x67, - 0x18, 0x47, 0x9b, 0x61, 0x4a, 0xa1, 0x3f, 0xb1, 0x10, 0x0e, 0xb0, 0x7f, - 0xe1, 0xc0, 0x06, 0x61, 0xff, 0x06, 0xf2, 0xff, 0xc0, 0xd0, 0x74, 0xc7, - 0x44, 0xc6, 0x0a, 0x20, 0x00, 0x31, 0xc1, 0x10, 0x06, 0x53, 0x7f, 0x22, - 0x4f, 0xf7, 0x32, 0x8c, 0x2f, 0xfd, 0x3d, 0x04, 0x4c, 0x03, 0xc7, 0xf5, - 0x01, 0x72, 0x7f, 0x63, 0x70, 0x90, 0x10, 0x16, 0xb5, 0x7f, 0x1b, 0x1b, - 0xd0, 0x01, 0xcd, 0x11, 0x67, 0x56, 0x80, 0x2b, 0x31, 0xa0, 0xde, 0x30, - 0xab, 0x30, 0xaa, 0x30, 0xaa, 0x06, 0x98, 0x17, 0x4d, 0x2a, 0xaf, 0x63, - 0x2a, 0xb3, 0x6f, 0x0e, 0xe0, 0x7f, 0x75, 0x80, 0x10, 0x06, 0x61, 0x7f, - 0xb3, 0x6f, 0xe8, 0x95, 0x79, 0x72, 0x2b, 0x02, 0x52, 0x4c, 0x88, 0x3f, - 0x65, 0x3a, 0x06, 0x2d, 0xb7, 0xc8, 0x07, 0xb9, 0x74, 0xce, 0x24, 0xc6, - 0x07, 0x13, 0x7f, 0x06, 0xf2, 0x7f, 0x06, 0x72, 0xff, 0x56, 0x1c, 0x28, - 0x17, 0x3a, 0x28, 0x1b, 0x3e, 0x06, 0x28, 0x13, 0x52, 0x7f, 0x80, 0xae, - 0x22, 0x7f, 0x25, 0x42, 0x7f, 0x40, 0x06, 0x22, 0x7f, 0x0f, 0x75, 0x7f, - 0x0e, 0x76, 0x7f, 0x21, 0x40, 0x21, 0xd0, 0x01, 0xcc, 0x0f, 0xc8, 0x50, - 0x00, 0x00, 0x01, 0x23, 0xa0, 0xdb, 0x30, 0xf3, 0x30, 0xb3, 0x20, 0x03, - 0xa0, 0x06, 0x7d, 0x31, 0x48, 0x28, 0x11, 0x6e, 0x00, 0x67, 0x00, 0x20, - 0x36, 0x00, 0x4b, 0x60, 0x09, 0x0e, 0x50, 0x7f, 0x6b, 0x06, 0x40, 0xfd, - 0x0f, 0x11, 0x7f, 0x99, 0x10, 0x99, 0x2f, 0x6e, 0x06, 0xb8, 0x17, 0x4d, - 0xd6, 0x69, 0xcf, 0xd6, 0x06, 0x9e, 0x2d, 0x0f, 0x12, 0x7f, 0x13, 0x28, - 0x11, 0x3d, 0x28, 0x19, 0x30, 0x05, 0x33, 0xf9, 0x06, 0x28, 0x1b, 0x52, - 0x7f, 0x06, 0x98, 0x17, 0x0f, 0x75, 0x7f, 0x0e, 0x76, 0x7f, 0x22, 0x22, - 0xd0, 0x01, 0x09, 0xf9, 0x0f, 0x47, 0x51, 0xff, 0xff, 0x01, 0x01, 0xd0, - 0x01, 0x24, 0x02, 0x02, 0xd0, 0x01, 0x03, 0x03, 0xd0, 0x01, 0x04, 0x04, - 0x92, 0xd0, 0x01, 0x05, 0x05, 0xd0, 0x01, 0x06, 0x06, 0xd0, 0x01, 0x07, - 0x49, 0x07, 0xd0, 0x01, 0x08, 0x08, 0xd0, 0x01, 0x09, 0x09, 0xd0, 0x01, - 0x24, 0x0a, 0x0a, 0xd0, 0x01, 0x0b, 0x0b, 0xd0, 0x01, 0x0c, 0x0c, 0x92, - 0xd0, 0x01, 0x0d, 0x0d, 0xd0, 0x01, 0x0e, 0x0e, 0xd0, 0x01, 0x0f, 0x49, - 0x0f, 0xd0, 0x01, 0x10, 0x10, 0xd0, 0x01, 0x11, 0x11, 0xd0, 0x01, 0x24, - 0x12, 0x12, 0xd0, 0x01, 0x13, 0x13, 0xd0, 0x01, 0x14, 0x14, 0x92, 0xd0, - 0x01, 0x15, 0x15, 0xd0, 0x01, 0x16, 0x16, 0xd0, 0x01, 0x17, 0x49, 0x17, - 0xd0, 0x01, 0x18, 0x18, 0xd0, 0x01, 0x19, 0x19, 0xd0, 0x01, 0x24, 0x1a, - 0x1a, 0xd0, 0x01, 0x1c, 0x1c, 0xd0, 0x01, 0x1d, 0x1d, 0x92, 0xd0, 0x01, - 0x1e, 0x1e, 0xd0, 0x01, 0x1f, 0x1f, 0xd0, 0x01, 0x20, 0x60, 0x20, 0xd0, - 0x01, 0x7f, 0xff, 0x00, 0x11, 0x94, 0x10, 0x00, 0x12, 0x01, 0x00, 0x00, - 0x30, 0x01, 0xa0, 0x1f, 0x50, 0x07, 0x00, 0x0c, 0x2d, 0x4e, 0xfd, 0x56, - 0x60, 0x0a, 0x06, 0x40, 0x06, 0x43, 0x00, 0x01, 0x68, 0x00, 0x69, 0x00, - 0x6e, 0x00, 0x61, 0x06, 0xe0, 0x7f, 0x78, 0x65, 0x0e, 0x80, 0xff, 0x06, - 0xb1, 0x7d, 0x07, 0x11, 0xff, 0x06, 0xf2, 0xff, 0x11, 0xc9, 0x6d, 0x60, - 0xad, 0x0f, 0x33, 0x7f, 0x06, 0x73, 0xff, 0x1a, 0x04, 0x38, 0x04, 0x42, - 0x04, 0x04, 0x30, 0x04, 0x39, 0x04, 0x06, 0x72, 0x7f, 0x0b, 0x57, 0xf6, - 0x10, 0x06, 0xb1, 0xff, 0x0e, 0xf2, 0xff, 0x01, 0xf7, 0xfb, 0x78, 0x3f, - 0x22, 0x10, 0x72, 0x68, 0x3f, 0x00, 0x3f, 0xe6, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x34, 0xad, 0x02, - 0x11, 0x53, 0x00, 0x00, 0x30, 0x01, 0x64, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xa8, 0x27, 0xbf, - 0x1a, 0x00, 0x00, 0x00, 0x09, 0x64, 0xe2, 0x30, 0xb9, 0x30, 0xaf, 0x04, - 0x30, 0xef, 0x30, 0x02, 0x5e, 0x06, 0x58, 0x1f, 0x4d, 0x00, 0x04, 0x6f, - 0x00, 0x73, 0x00, 0x63, 0x20, 0x05, 0x77, 0x00, 0x00, 0x20, 0x00, 0x43, - 0x00, 0x69, 0x00, 0x74, 0x00, 0x51, 0x79, 0x06, 0x40, 0x7f, 0x75, 0x20, - 0x7f, 0x28, 0x00, 0x76, 0x20, 0x81, 0x44, 0x6c, 0x20, 0x01, 0x65, 0x00, - 0x29, 0x05, 0xa0, 0xff, 0x6b, 0x00, 0x51, 0x61, 0x60, 0x7f, 0x53, 0x20, - 0xff, 0x61, 0x00, 0x64, 0x21, 0x05, 0xbb, 0x05, 0xb0, 0x7f, 0x63, 0x20, - 0x7f, 0x06, 0x5a, 0x1f, 0x31, 0xf1, 0x75, 0x20, 0xef, 0x30, 0xf3, 0x5a, - 0x20, 0x20, 0xf7, 0x65, 0x22, 0x05, 0x72, 0x13, 0xfa, 0x05, 0x2a, 0xb2, - 0xab, 0x06, 0x83, 0xaf, 0x65, 0xd1, 0x79, 0x06, 0x72, 0xfd, 0x23, 0x87, - 0xba, 0x03, 0xa4, 0xc2, 0x6c, 0xd0, 0x14, 0xbc, 0x06, 0x7b, 0x9d, 0x72, - 0x7f, 0xbb, 0x72, 0xff, 0x73, 0x62, 0x7f, 0x05, 0x52, 0xfd, 0xb3, 0xff, - 0x76, 0x24, 0x09, 0x33, 0x81, 0x70, 0x63, 0x24, 0x03, 0x52, 0x0f, 0x05, - 0x33, 0x83, 0x1c, 0x04, 0x3e, 0x04, 0x00, 0x41, 0x04, 0x3a, 0x04, 0x32, - 0x04, 0x30, 0x04, 0xc0, 0x0e, 0xd4, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x01, - 0x2b, 0x29, 0x06, 0x05, 0x01, 0x02, 0x01, 0x01, 0x2c, 0x2b, 0x1e, 0x2b, - 0x20, 0x06, 0x01, 0x80, 0x58, 0x17, 0x0a, 0x64, 0xa2, 0x30, 0xc7, 0x30, - 0xa3, 0x00, 0x30, 0xb2, 0x30, 0x71, 0x51, 0x8c, 0x54, 0xfd, 0x51, 0x56, - 0x06, 0x1f, 0xbb, 0x41, 0x27, 0x03, 0x79, 0x00, 0x67, 0x27, 0x87, 0xc6, - 0x05, 0xb8, 0x0d, 0x00, 0x10, 0x7f, 0x75, 0x00, 0xe9, 0x28, 0x0b, 0x06, - 0x1f, 0xbb, 0x52, 0xaa, 0x28, 0x81, 0x70, 0x28, 0x93, 0x62, 0x28, 0x8d, - 0x69, 0x28, 0x1f, 0x20, 0xbe, 0xa1, 0x11, 0x6a, 0x05, 0x27, 0xad, 0x90, - 0x7f, 0x50, 0x81, 0x38, 0x21, 0x37, 0x9f, 0x69, 0xab, 0x60, 0x89, 0x69, - 0x21, 0x9b, 0x68, 0x29, 0x25, 0x7a, 0x29, 0xb1, 0x04, 0x38, 0x3b, 0xbb, - 0x50, 0xff, 0xfa, 0xe0, 0x7d, 0x38, 0x1d, 0x70, 0x7d, 0x75, 0x42, 0x1b, - 0x04, 0x78, 0xb7, 0x02, 0x3f, 0x96, 0xea, 0x8f, 0x3c, 0x68, 0x06, 0x72, - 0xfd, 0x00, 0x00, 0x00, 0x44, 0xc5, 0x14, 0xb5, 0x8c, 0xac, 0x7c, 0x00, - 0xc5, 0x20, 0x00, 0xf5, 0xac, 0x54, 0xd6, 0x6d, 0x46, 0xad, 0x06, 0x73, - 0x7f, 0x69, 0x00, 0xeb, 0x06, 0x83, 0x7f, 0x51, 0xe5, 0xe9, 0xec, 0x2c, - 0x1f, 0x32, 0x63, 0x3b, 0x9d, 0x72, 0x00, 0x02, 0x15, 0x04, 0x7b, 0xa5, - 0x20, 0x04, 0x40, 0x35, 0x28, 0x17, 0x3f, 0x04, 0x43, 0x04, 0x31, 0x04, - 0x10, 0x3b, 0x04, 0x38, 0x28, 0x21, 0x30, 0x04, 0x20, 0x00, 0x01, 0x10, - 0x04, 0x34, 0x04, 0x4b, 0x04, 0x33, 0x20, 0x1b, 0x70, 0x4f, 0x04, 0xe8, - 0x2d, 0x07, 0x74, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x02, 0x01, 0x01, 0x3e, - 0x10, 0x3c, 0x35, 0x02, 0x20, 0x06, 0x2c, 0x01, 0x02, 0x02, 0x00, 0x02, - 0x02, 0xb7, 0x1f, 0x80, 0x1c, 0x00, 0x00, 0x41, 0x0b, 0x28, 0x17, 0xeb, - 0x30, 0xbf, 0x30, 0xa4, 0x06, 0x88, 0x17, 0x45, 0x47, 0x2f, 0xaf, 0x72, - 0x00, 0x6e, 0x2f, 0xb5, 0x2d, 0x28, 0x23, 0x75, 0x6c, 0x4f, 0x2d, 0x05, - 0xbb, 0x2f, 0x70, 0x73, 0xef, 0x64, 0x8f, 0xe9, 0xa7, 0xa5, 0x7b, 0x71, - 0x46, 0x93, 0x04, 0xdf, 0xb7, 0x00, 0x38, 0x17, 0x51, 0x05, 0x69, 0x05, - 0xe8, 0x97, 0xf7, 0x99, 0x57, 0x6c, 0x28, 0xa9, 0x27, 0x81, 0x93, 0x6a, - 0x04, 0xc9, 0x17, 0x00, 0x58, 0x17, 0x32, 0x0d, 0x40, 0xe1, 0x04, 0xe1, - 0x07, 0x3f, 0x96, 0x14, 0x5c, 0xf0, 0x6c, 0x80, 0x06, 0x98, 0x17, 0xe0, - 0xac, 0x74, 0xb9, 0x78, 0xb1, 0x4c, 0x07, 0xc5, 0xc0, 0xd0, 0x74, 0xc7, - 0x06, 0x38, 0x1b, 0x91, 0xdf, 0x97, 0x8f, 0xbe, 0x7a, 0xa5, 0x65, 0x2a, - 0xa7, 0x04, 0xff, 0xb1, 0x92, 0xed, 0x05, 0xd8, 0x0f, 0x00, 0xf8, 0x17, - 0x3b, 0x2e, 0x04, 0x42, 0x28, 0x21, 0x39, 0x04, 0xe8, 0x15, 0x07, 0x14, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x03, 0x00, 0x0f, 0x03, 0x3f, 0x3a, 0x36, - 0x03, 0x03, 0x03, 0x10, 0x02, 0x2d, 0x0f, 0x20, 0x05, 0x03, 0xf1, 0x24, - 0x21, 0x08, 0x3d, 0x00, 0x00, 0x0c, 0x88, 0x17, 0x30, 0x57, 0xb9, 0xef, - 0x06, 0x3f, 0x2e, 0x06, 0x48, 0x0b, 0x00, 0x98, 0x17, 0x6b, 0x2c, 0xa9, - 0x38, 0x23, 0x04, 0xf5, 0x0d, 0xdf, 0xaf, 0xba, 0x3d, 0xad, 0x6f, 0x29, - 0x1b, 0x05, 0xf8, 0x13, 0x3f, 0xfe, 0x54, 0x2f, 0xaf, 0x72, 0xbf, 0x2d, - 0x9f, 0x69, 0x29, 0x91, 0x39, 0xa1, 0x30, 0x89, 0x05, 0xb8, 0x17, 0x00, - 0x90, 0x7f, 0x05, 0x58, 0x19, 0x81, 0x58, 0x17, 0xb9, 0x8f, 0x86, 0x75, - 0x3a, 0x53, 0x06, 0x3f, 0x30, 0x87, 0x78, 0x11, 0xc0, 0xc9, 0x29, 0xbc, - 0x06, 0xb3, 0x7f, 0x58, 0x17, 0x52, 0xff, 0x6b, 0x6a, 0x05, 0xa2, 0xff, - 0xd8, 0x17, 0x74, 0xa2, 0x8d, 0xf3, 0x62, 0x8d, 0x04, 0xdb, 0x97, 0xa8, - 0x98, 0x01, 0x41, 0x28, 0x13, 0x38, 0x28, 0x09, 0x20, 0x00, 0x3a, 0x38, - 0x04, 0x40, 0x05, 0x48, 0x13, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0x70, 0x7f, - 0x04, 0x02, 0x02, 0x00, 0x35, 0x4c, 0x4b, 0x04, 0x04, 0x02, 0x03, 0x01, - 0x00, 0x02, 0x04, 0x04, 0x04, 0x04, 0xf0, 0x25, 0x8e, 0x08, 0x3b, 0x00, - 0x00, 0x0d, 0x28, 0x17, 0xe0, 0x30, 0xfc, 0x95, 0x28, 0x1b, 0xde, 0x5d, - 0x06, 0x77, 0x97, 0x6d, 0x2f, 0x9f, 0x72, 0x06, 0x68, 0x15, 0xa8, 0x50, - 0x7f, 0x6f, 0x06, 0xa0, 0x81, 0x4f, 0x4f, 0xa7, 0x61, 0x00, 0x73, 0xff, - 0x2f, 0x95, 0x3f, 0x23, 0x05, 0xf1, 0x0d, 0xb8, 0x97, 0x3f, 0xa5, 0xb8, - 0x11, 0x05, 0x31, 0x99, 0x79, 0x17, 0x70, 0xf3, 0x49, 0x17, 0x78, 0x0f, - 0x05, 0x92, 0x13, 0x3f, 0x96, 0x46, 0x7a, 0x20, 0x14, 0x5c, 0x06, 0x72, - 0xfd, 0x00, 0x00, 0x44, 0xc5, 0x34, 0x01, 0xbb, 0x74, 0xb9, 0x20, 0x00, - 0xfc, 0xc8, 0x06, 0xb2, 0xff, 0xeb, 0x3a, 0x1b, 0x06, 0xd3, 0xff, 0x3b, - 0x95, 0x72, 0x6b, 0x23, 0xe3, 0x05, 0x08, 0x0d, 0xb8, 0x17, 0x18, 0x3c, - 0x04, 0x43, 0x28, 0x07, 0x38, 0x15, 0x30, 0x04, 0x4f, 0x8a, 0x28, 0x15, - 0x3e, 0x04, 0x31, 0x28, 0x2b, 0x30, 0x28, 0x27, 0x42, 0x38, 0x04, 0x4c, - 0x05, 0x08, 0x1b, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x05, 0x03, - 0x04, 0x04, 0x07, 0x07, 0x07, 0x05, 0x05, 0x38, 0x19, 0x05, 0x05, 0x00, - 0x05, 0x05, 0xd0, 0x23, 0xad, 0x5a, 0x00, 0x00, 0x40, 0x0e, 0x28, 0x17, - 0xeb, 0x30, 0xcf, 0x30, 0xf3, 0x30, 0x01, 0xb2, 0x30, 0xea, 0x30, 0xb9, - 0x30, 0xaf, 0x06, 0x08, 0x1f, 0x45, 0x41, 0x2f, 0xa1, 0x6b, 0x00, 0x68, - 0x2f, 0xb1, 0x6e, 0x2f, 0x37, 0xae, 0x3e, 0xa5, 0x27, 0x27, 0x23, 0x6b, - 0x06, 0xa0, 0x7f, 0x05, 0xb0, 0x7d, 0x00, 0x18, 0x17, 0x72, 0x3e, 0x00, - 0x63, 0x05, 0xc0, 0x8d, 0x00, 0x18, 0x17, 0x3d, 0xb9, 0x50, 0x87, 0x91, - 0x93, 0x6f, 0xaa, 0x05, 0xe8, 0x17, 0x72, 0x2e, 0xbf, 0xe1, 0x42, 0x11, - 0x75, 0x04, 0xe1, 0x93, 0x3f, 0x00, 0x96, 0x14, 0x5c, 0x49, 0x6c, 0x3c, - 0x68, 0x14, 0x04, 0x5c, 0xaf, 0x65, 0x4b, 0x51, 0x06, 0x1b, 0x1d, 0x44, - 0xc5, 0x00, 0x74, 0xb9, 0x5c, 0xd5, 0x94, 0xac, 0xa4, 0xc2, 0x3d, 0x6c, - 0xd0, 0x06, 0x38, 0x1d, 0x06, 0x12, 0x71, 0x01, 0x33, 0x7f, 0x05, 0x98, - 0x25, 0x10, 0x28, 0x13, 0x41, 0x45, 0x28, 0x11, 0x3d, 0x04, 0x33, 0x04, - 0x35, 0x28, 0x0f, 0x70, 0x4c, 0x05, 0xe8, 0x21, 0x08, 0x14, 0xff, 0x10, - 0x0d, 0xd0, 0x7f, 0x06, 0x04, 0x05, 0x08, 0x04, 0x08, 0x08, 0x06, 0x06, - 0x05, 0x28, 0x20, 0x06, 0x06, 0x00, 0x06, 0x06, 0xe3, 0x2d, 0xd2, 0x1c, - 0x00, 0x00, 0x41, 0x0f, 0x28, 0x17, 0xb9, 0x30, 0xc8, 0x30, 0xe9, 0x48, - 0x1b, 0xad, 0x06, 0x3d, 0x35, 0x41, 0x4f, 0x29, 0x72, 0x2f, 0x31, 0x78, - 0x1d, 0x27, 0x06, 0xe0, 0x7f, 0xff, 0x05, 0xde, 0x39, 0xf8, 0x17, 0x71, - 0x0d, 0x78, 0x1d, 0x04, 0xff, 0x34, 0x00, 0x78, 0x17, 0xf0, 0x87, 0x04, - 0x71, 0x95, 0xf0, 0x00, 0x58, 0x17, 0x91, 0x05, 0x38, 0x1d, 0x04, 0xbf, - 0xcb, 0x3f, 0x96, 0xaf, 0x65, 0x03, 0x79, 0x72, 0xc9, 0x62, 0x55, 0x7f, - 0x06, 0x32, 0xfd, 0x38, 0x17, 0x00, 0xa4, 0xc2, 0xb8, 0xd2, 0x7c, 0xb7, - 0x5c, 0xd5, 0xf7, 0x06, 0x38, 0x15, 0xb3, 0x7f, 0x05, 0x72, 0x71, 0x00, - 0x90, 0x7f, 0xe3, 0x05, 0xa8, 0x0f, 0x98, 0x17, 0x37, 0xf5, 0x7c, 0x40, - 0x28, 0x19, 0x58, 0x1d, 0x05, 0xd8, 0x15, 0x08, 0x34, 0xff, 0x10, 0x0d, - 0xd0, 0x7f, 0x07, 0x05, 0x01, 0x06, 0x09, 0x09, 0x09, 0x07, 0x07, 0x06, - 0x28, 0x20, 0x00, 0x07, 0x07, 0x07, 0x07, 0xf5, 0x20, 0x2b, 0x22, 0x80, - 0x2b, 0x2d, 0x64, 0xd0, 0x30, 0xb7, 0x30, 0xb3, 0x30, 0x44, 0xeb, 0x28, - 0x1b, 0xb9, 0x30, 0xbf, 0x28, 0x1b, 0x71, 0x51, 0x0a, 0x8c, 0x54, 0xfd, - 0x56, 0x05, 0x9f, 0x30, 0x42, 0x4f, 0x2b, 0x68, 0xaf, 0x2f, 0xb3, 0x6f, - 0x2f, 0xb9, 0x74, 0x2e, 0xb7, 0x3f, 0x39, 0x05, 0x97, 0x9f, 0x30, 0x7f, - 0xab, 0x3f, 0xa1, 0x6b, 0x2f, 0x33, 0x72, 0x2f, 0x37, 0x65, 0x05, 0xee, - 0x30, 0x3f, 0xaf, 0x6f, 0x70, 0x2f, 0x15, 0x38, 0x1d, 0x69, 0x4d, 0x29, - 0x51, 0x11, 0x50, 0x93, 0x05, 0x11, 0x13, 0xda, 0x90, 0x7f, 0x50, 0x81, - 0x63, 0x2e, 0x39, 0x5f, 0xb7, 0x6c, 0x60, 0x8b, 0x61, 0x6f, 0x01, 0x04, - 0xb1, 0x9b, 0x50, 0xff, 0xfa, 0x00, 0x00, 0x7d, 0x71, 0x07, 0xd2, 0x17, - 0x04, 0x18, 0x25, 0x00, 0xf4, 0x5d, 0xc0, 0x4e, 0xd1, 0x79, 0x14, 0x5c, - 0x02, 0x58, 0x62, 0xaf, 0x65, 0x66, 0x57, 0x05, 0xf2, 0xfd, 0x00, 0x00, - 0x00, 0x14, 0xbc, 0xdc, 0xc2, 0xa4, 0xd0, 0x74, 0x00, 0xb9, 0x20, 0x00, - 0xf5, 0xac, 0x54, 0xd6, 0x6d, 0x6e, 0xad, 0x05, 0xfb, 0x99, 0x53, 0x7f, - 0x6a, 0x62, 0xff, 0x05, 0xf3, 0x7d, 0x73, 0xff, 0x71, 0xbe, 0x23, 0x01, - 0xed, 0x43, 0x7f, 0x32, 0x7d, 0x58, 0x1b, 0xd2, 0x15, 0x04, 0x78, 0x21, - 0x20, 0x22, 0x04, 0x35, 0x28, 0x19, 0x3f, 0x04, 0x43, 0x48, 0x05, 0x38, - 0x8a, 0x48, 0x15, 0x20, 0x00, 0x11, 0x28, 0x27, 0x48, 0x28, 0x21, 0x3e, - 0xbe, 0x28, 0x31, 0x42, 0x20, 0x05, 0x38, 0x3b, 0x38, 0x35, 0x0c, 0x54, - 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x08, 0x00, 0x06, 0x07, 0x40, 0x37, 0x37, - 0x08, 0x08, 0x07, 0x00, 0x07, 0x2e, 0x06, 0x08, 0x08, 0x08, 0x08, 0xee, - 0x22, 0x26, 0xcc, 0x2f, 0x98, 0x11, 0x64, 0xd9, 0x28, 0x13, 0xb4, 0x05, - 0x30, 0xed, 0x30, 0xc9, 0x30, 0x06, 0x5d, 0x2f, 0x42, 0x46, 0x81, 0x5b, - 0x67, 0x48, 0x15, 0x6f, 0x2e, 0xad, 0x0d, 0xf0, 0x7f, 0x4f, 0x48, 0x11, - 0x39, 0x1b, 0x76, 0x74, 0x48, 0x13, 0x05, 0xf1, 0x0d, 0x7f, 0xaf, 0x6f, - 0x2f, 0xaf, 0x3f, 0xab, 0x64, 0xed, 0x2f, 0xbb, 0x05, 0xb0, 0x87, 0x70, - 0x7f, 0xf3, 0x2e, 0xa9, 0x98, 0x11, 0xe9, 0x05, 0x82, 0x13, 0x00, 0x2b, - 0x52, 0x14, 0x5c, 0xe5, 0x54, 0x57, 0x7f, 0x20, 0xb7, 0x5f, 0x06, 0x52, - 0xff, 0xa8, 0xbc, 0xe0, 0xac, 0x5c, 0x01, 0xb8, 0xb8, 0xd2, 0x20, 0x00, - 0xfc, 0xc8, 0x0f, 0x33, 0x7f, 0xdd, 0x78, 0x15, 0x32, 0x93, 0xe3, 0x2c, - 0x2b, 0x04, 0x78, 0x0f, 0x7f, 0xff, 0x11, 0x28, 0x17, 0x11, 0x3b, 0x04, - 0x33, 0x48, 0x01, 0x3e, 0x04, 0x34, 0x28, 0x23, 0xaa, 0x38, 0x19, 0x4f, - 0x28, 0x1b, 0x3e, 0x48, 0x29, 0x30, 0x48, 0x13, 0x4c, 0xe0, 0x04, 0x28, - 0x11, 0x0f, 0x54, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x09, 0x07, 0x08, 0x0a, - 0x0a, 0x00, 0x0a, 0x09, 0x09, 0x08, 0x08, 0x05, 0x07, 0x09, 0x00, 0x09, - 0x09, 0x09, 0xfb, 0x23, 0x06, 0x1a, 0x00, 0x00, 0x00, 0x12, 0x64, 0xd6, - 0x30, 0xea, 0x30, 0xe3, 0x02, 0x30, 0xf3, 0x30, 0xb9, 0x30, 0xaf, 0x06, - 0x48, 0x19, 0x42, 0xbf, 0x2f, 0xa5, 0x79, 0x4f, 0x0b, 0x3e, 0x1b, 0x06, - 0x50, 0x7f, 0x3c, 0xa5, 0x06, 0x70, 0x7f, 0xf8, 0x17, 0x7e, 0x72, 0x2d, - 0xbb, 0x05, 0xb1, 0x0d, 0x00, 0x78, 0x17, 0x05, 0x70, 0x87, 0x00, 0x58, - 0x17, 0x05, 0x91, 0x93, 0x03, 0x01, 0x5e, 0x6f, 0x82, 0xaf, 0x65, 0x4b, - 0x51, 0x06, 0x5b, 0x15, 0x00, 0x00, 0x00, 0x0c, 0xbe, 0xb8, 0xb7, 0xa4, - 0xc2, 0x3e, 0x6c, 0xd0, 0x06, 0x98, 0x17, 0x05, 0xf2, 0x71, 0x00, 0xb3, - 0x7f, 0x05, 0xf8, 0x15, 0x38, 0x17, 0x40, 0xb8, 0x28, 0x05, 0x3d, 0x06, - 0x08, 0x0f, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x0a, 0x08, 0x0a, - 0x14, 0x0b, 0x0b, 0x0b, 0x38, 0x1a, 0x06, 0x38, 0x20, 0x0a, 0xdd, 0x02, - 0x25, 0x70, 0x18, 0x00, 0x00, 0x13, 0x48, 0x17, 0xe4, 0x00, 0x30, 0xfc, - 0x30, 0xc8, 0x30, 0x71, 0x51, 0x8c, 0x15, 0x54, 0xfd, 0x56, 0x06, 0x1f, - 0xaf, 0x75, 0x68, 0x19, 0x74, 0x06, 0x45, 0x98, 0x75, 0x42, 0x2f, 0x9b, - 0x30, 0x81, 0x38, 0x1b, 0x74, 0x2f, 0x37, 0x65, 0x05, 0xee, 0x34, 0xb7, - 0x3f, 0xaf, 0x70, 0x21, 0x03, 0x38, 0x1d, 0x69, 0x45, 0x19, 0x51, 0x11, - 0x38, 0x1d, 0xb7, 0x50, 0x8f, 0x6e, 0x05, 0x60, 0x7f, 0x50, 0x81, 0x63, - 0x29, 0xa3, 0x98, 0x1d, 0x71, 0x19, 0x6f, 0x7a, 0x49, 0x3b, 0x04, 0x90, - 0xff, 0xfa, 0xe0, 0x7d, 0x58, 0x1d, 0xb1, 0x97, 0x04, 0x50, 0x7d, 0x81, - 0x38, 0x17, 0xcc, 0x91, 0x9a, 0x4e, 0x79, 0x72, 0x06, 0x52, 0xfd, 0x00, - 0x00, 0x00, 0x80, 0xbd, 0xb4, 0xb7, 0xb8, 0xd2, 0x00, 0x20, 0x00, 0xf5, - 0xac, 0x54, 0xd6, 0x6d, 0xad, 0xa8, 0x06, 0x52, 0xff, 0x65, 0xa2, 0x6f, - 0xeb, 0x06, 0x43, 0xff, 0x69, 0x00, 0xe1, 0xf8, 0x22, 0x79, 0x3b, 0x9f, - 0x78, 0x19, 0xd2, 0x13, 0x04, 0x98, 0x1f, 0x20, 0x04, 0x35, 0x8a, 0x28, - 0x13, 0x3f, 0x04, 0x43, 0x48, 0x0d, 0x38, 0x48, 0x1d, 0x20, 0xab, 0x28, - 0x2d, 0x43, 0x48, 0x2f, 0x42, 0x20, 0x11, 0x4f, 0x04, 0xc8, 0x1b, 0x07, - 0x14, 0xff, 0x80, 0x10, 0x0e, 0xd0, 0x7f, 0x0b, 0x09, 0x09, 0x41, 0x3d, - 0x38, 0x0b, 0x04, 0x0b, 0x09, 0x0a, 0x2f, 0x09, 0x28, 0x20, 0x0b, 0xdb, - 0x00, 0x24, 0x83, 0x4c, 0x00, 0x00, 0x14, 0x64, 0xc1, 0x14, 0x30, 0xa7, - 0x30, 0x30, 0x03, 0xf3, 0x06, 0x68, 0x17, 0x43, 0x00, 0x56, 0x68, 0x2e, - 0xb1, 0x63, 0x20, 0x05, 0x6e, 0x4b, 0x37, 0x05, 0xff, 0xb2, 0x54, 0xb6, - 0x40, 0x7b, 0xe9, 0x2f, 0xad, 0x50, 0x07, 0x6e, 0x05, 0xe8, 0x1b, 0x00, - 0x18, 0x17, 0x54, 0xdf, 0x2f, 0xa3, 0x31, 0x0f, 0x65, 0x29, 0x29, 0x70, - 0x09, 0x50, 0x95, 0x04, 0x38, 0x21, 0x00, 0x58, 0x17, 0x7f, 0x43, 0x41, - 0x93, 0x38, 0x93, 0x04, 0xf1, 0x91, 0x00, 0x98, 0x17, 0x92, 0x19, 0x50, - 0xff, 0x04, 0x58, 0x97, 0x0c, 0x66, 0x8f, 0xe3, 0x81, 0x06, 0x78, 0x13, - 0x3f, 0xff, 0xb4, 0xcc, 0x37, 0xb8, 0xcc, 0x06, 0x98, 0x15, 0x32, 0xff, - 0x73, 0x2a, 0x83, 0x52, 0x6b, 0x30, 0x07, 0xfa, 0x32, 0xff, 0x05, 0xb8, - 0x1b, 0x93, 0xff, 0x53, 0x7b, 0x05, 0xf8, 0x19, 0x27, 0x28, 0x17, 0x47, - 0xb5, 0x28, 0x1b, 0x3d, 0x28, 0x1d, 0x38, 0x13, 0x4f, 0x28, 0x15, 0x40, - 0x00, 0x28, 0x2b, 0xc0, 0x0c, 0x74, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0c, - 0x0a, 0x47, 0x4f, 0x35, 0x3a, 0x00, 0x0c, 0x0c, 0x4c, 0x0f, 0x4f, 0x0a, - 0x0c, 0x0c, 0x00, 0x0c, 0x0c, 0xcd, 0x1e, 0x7c, 0x20, 0x00, 0x00, 0x41, - 0x15, 0x48, 0x17, 0xea, 0x30, 0xe3, 0x30, 0xd3, 0x28, 0x19, 0x02, 0xb9, - 0x30, 0xaf, 0x30, 0xde, 0x5d, 0x06, 0x38, 0x17, 0x6c, 0xab, 0x4b, 0x31, - 0x62, 0x2f, 0xb5, 0x6e, 0x27, 0x15, 0x6b, 0x06, 0x08, 0x17, 0x30, 0x81, - 0xd5, 0x3f, 0x17, 0x06, 0x10, 0x81, 0x4f, 0x4f, 0xa7, 0x61, 0x28, 0x0b, - 0x74, 0xc8, 0x13, 0x75, 0x6c, 0x4d, 0xc1, 0x05, 0x11, 0x11, 0x3f, 0xaf, - 0x67, 0x2f, 0xa9, 0x6f, 0x29, 0x97, 0xa1, 0x3f, 0xa5, 0x64, 0x2f, 0xb5, - 0x20, 0x00, 0x0c, 0x01, 0x05, 0x70, 0x81, 0xba, 0x70, 0x7f, 0xf3, 0x2a, - 0x17, 0xd8, 0x11, 0x3e, 0x2b, 0xe1, 0x05, 0x02, 0x13, 0x66, 0x00, 0x8f, - 0xcc, 0x91, 0xc5, 0x96, 0xbe, 0x5b, 0xaf, 0x18, 0x65, 0x4b, 0x51, 0x05, - 0xf2, 0xfb, 0x3f, 0xff, 0xbc, 0xcc, 0xb4, 0x00, 0xb7, 0x48, 0xbe, 0xa4, - 0xc2, 0x6c, 0xd0, 0x20, 0x1f, 0x00, 0xfc, 0xc8, 0x06, 0x98, 0x17, 0x05, - 0x72, 0x6f, 0x01, 0x53, 0xff, 0x78, 0x1b, 0x32, 0x99, 0x75, 0xe3, 0x22, - 0x9b, 0x04, 0x78, 0x15, 0x58, 0x17, 0x3b, 0x28, 0x0d, 0x31, 0x27, 0xff, - 0xa8, 0xb8, 0x1b, 0x3e, 0x48, 0x13, 0x30, 0x28, 0x2d, 0x42, 0x04, 0x4c, - 0xe0, 0x04, 0x88, 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0d, - 0x0b, 0x46, 0x2d, 0x0c, 0x00, 0x0c, 0x0d, 0x0d, 0x4b, 0x10, 0x4e, 0x0b, - 0x0d, 0x00, 0x0d, 0x0d, 0x0d, 0x3a, 0x27, 0xa9, 0x2b, 0x00, 0x28, 0x00, - 0x16, 0x28, 0x17, 0xe5, 0x28, 0x0d, 0xc1, 0x30, 0xea, 0x01, 0x81, 0xbb, - 0x6c, 0xa1, 0x7b, 0x3a, 0x53, 0x06, 0x3a, 0xaf, 0x5d, 0x75, 0x2f, 0x27, - 0x6f, 0x2f, 0xb1, 0x06, 0x5d, 0x2f, 0x3f, 0x9b, 0x6f, 0x80, 0x83, 0x54, - 0x6b, 0x05, 0xeb, 0xb3, 0x41, 0x2f, 0xab, 0x74, 0x47, 0x95, 0x6f, 0x00, - 0x55, 0x6d, 0x2f, 0xbb, 0x72, 0x2f, 0xad, 0x4b, 0x4d, 0x2f, 0x69, 0x2d, - 0xc9, 0xfe, 0x5f, 0x3b, 0x30, 0x13, 0x78, 0x31, 0x31, 0x2b, 0x3d, 0xdb, - 0x7f, 0x47, 0x03, 0x1d, 0xaf, 0x69, 0xaa, 0x2d, 0x9d, 0x63, 0x48, 0x17, - 0x64, 0x2f, 0xad, 0x72, 0x48, 0x23, 0x20, 0xf5, 0xe0, 0x97, 0x30, 0x11, - 0x78, 0x31, 0x03, 0xd1, 0x29, 0x44, 0x40, 0xe7, 0x74, 0x40, 0x77, 0xbf, - 0x31, 0x07, 0x20, 0x2e, 0x31, 0x31, 0x11, 0x38, 0x27, 0x90, 0x79, 0x78, - 0x2d, 0x04, 0x11, 0xa5, 0x03, 0x5a, 0x69, 0xd1, 0x79, 0x47, 0x59, 0x32, - 0xfd, 0x06, 0x12, 0xfb, 0x80, 0x3f, 0xff, 0x95, 0xcd, 0x58, 0xce, 0x20, - 0x00, 0x90, 0x06, 0xc7, 0x58, 0xce, 0x6c, 0xad, 0x06, 0x52, 0xff, 0x38, - 0x17, 0x6f, 0xff, 0x2f, 0xb3, 0x06, 0x52, 0xff, 0xf1, 0xd5, 0x38, 0x11, - 0x3a, 0x9b, 0xb2, 0x13, 0x04, 0x98, 0x15, 0x38, 0x17, 0x58, 0x43, 0x28, - 0x0b, 0x3e, 0x27, 0xfd, 0x38, 0x13, 0x38, 0x04, 0x39, 0x8a, 0x28, 0x13, - 0x30, 0x04, 0x32, 0x28, 0x0d, 0x3e, 0x28, 0x27, 0x3e, 0x2a, 0x04, 0x3c, - 0x28, 0x2d, 0x4b, 0x40, 0x15, 0x3e, 0x28, 0x33, 0x40, 0xb8, 0x20, 0x2d, - 0x33, 0x03, 0xc8, 0x25, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0e, - 0x0c, 0x48, 0x00, 0x04, 0x02, 0x02, 0x0e, 0x0e, 0x4d, 0x11, 0x51, 0x00, - 0x0c, 0x0e, 0x0e, 0x0e, 0x0e, 0x08, 0x2e, 0x3b, 0x08, 0x7e, 0x00, 0x00, - 0x17, 0x48, 0x17, 0xf4, 0x30, 0xa1, 0x00, 0x30, 0xb7, 0x30, 0x71, 0x51, - 0x8c, 0x54, 0xfd, 0x57, 0x56, 0x06, 0x58, 0x17, 0x76, 0x4f, 0x31, 0x68, - 0x06, 0xc8, 0x17, 0x30, 0x83, 0x3f, 0xab, 0x75, 0x69, 0x2f, 0xad, 0x05, - 0x9e, 0x37, 0x3f, 0xaf, 0x70, 0x29, 0x19, 0x62, 0x4f, 0x1f, 0xdf, 0x3d, - 0x29, 0x98, 0x01, 0x77, 0x41, 0x15, 0x70, 0x93, 0x03, 0x18, 0x03, 0x00, - 0xd0, 0x7f, 0x50, 0x81, 0x77, 0x63, 0x45, 0x9b, 0x38, 0x2d, 0x71, 0x95, - 0x63, 0x2f, 0xcd, 0x04, 0x99, 0x2b, 0x50, 0xff, 0x78, 0xfa, 0xc0, 0x7d, - 0xb8, 0x07, 0x52, 0x19, 0x04, 0x90, 0x81, 0x5a, 0x69, 0xe6, 0x18, 0x74, - 0xc0, 0x4e, 0x06, 0x52, 0xfb, 0x3f, 0xff, 0x94, 0xcd, 0x14, 0x00, 0xbc, - 0xdc, 0xc2, 0x20, 0x00, 0xf5, 0xac, 0x54, 0x3a, 0xd6, 0x6d, 0x06, 0x28, - 0x19, 0x98, 0x17, 0x53, 0x83, 0x6a, 0x2f, 0xb3, 0xeb, 0xbf, 0x06, 0x23, - 0xff, 0xe1, 0x63, 0x7b, 0x58, 0x19, 0x3b, 0x17, 0xd2, 0x15, 0x04, 0x78, - 0x1b, 0x38, 0x17, 0x04, 0x32, 0x04, 0x30, 0x04, 0x48, 0x48, 0x17, 0x30, - 0x04, 0x45, 0x4f, 0x28, 0x17, 0x40, 0x04, 0x35, 0x28, 0x25, 0x3f, 0x28, - 0x31, 0x1e, 0x31, 0x04, 0x3b, 0x28, 0x2b, 0x30, 0x17, 0x0c, 0x74, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x0f, 0x00, 0x0d, 0x49, 0x50, 0x36, 0x3b, 0x0f, - 0x0f, 0x4e, 0x00, 0x12, 0x50, 0x0d, 0x0f, 0x0f, 0x0f, 0x0f, 0xea, 0x00, - 0x27, 0x96, 0x21, 0x00, 0x00, 0x18, 0x64, 0xc0, 0x00, 0x30, 0xb2, 0x30, - 0xb9, 0x30, 0xbf, 0x30, 0xf3, 0xad, 0x06, 0x68, 0x17, 0x44, 0x2f, 0x9f, - 0x67, 0x2f, 0x27, 0x3e, 0x33, 0x61, 0x04, 0x66, 0xfb, 0xbe, 0x01, 0x10, - 0x7f, 0x75, 0x06, 0x80, 0x81, 0x00, 0x18, 0x17, 0x05, 0xd1, 0x11, 0x00, - 0x58, 0x17, 0x3f, 0xa1, 0x6c, 0xe8, 0x05, 0x40, 0x8b, 0x00, 0x98, 0x17, - 0xd1, 0x99, 0xe1, 0x04, 0x69, 0x17, 0xbe, 0x8f, 0x09, 0x04, 0x54, 0xaf, - 0x65, 0x66, 0x57, 0x06, 0x78, 0x19, 0xe4, 0xb2, 0x03, 0x8c, 0xac, 0xa4, - 0xc2, 0xc4, 0xd0, 0x06, 0x78, 0x19, 0x07, 0xd3, 0x7f, 0x68, 0xe3, 0x2f, - 0x37, 0x05, 0xd8, 0x17, 0x20, 0x00, 0x28, 0x03, 0x20, 0x00, 0x14, 0xab, - 0x28, 0x29, 0x33, 0x48, 0x1d, 0x42, 0x28, 0x33, 0x3d, 0x04, 0x88, 0x15, - 0x07, 0x74, 0xff, 0x80, 0x10, 0x0e, 0x90, 0x7f, 0x10, 0x0e, 0x0c, 0x43, - 0x38, 0x3c, 0x10, 0x00, 0x10, 0x0e, 0x13, 0x30, 0x0e, 0x10, 0x10, 0x10, - 0x08, 0x10, 0x8d, 0x1e, 0xc7, 0x28, 0x17, 0x19, 0x64, 0xa4, 0x82, 0x28, - 0x11, 0xb0, 0x30, 0xfc, 0x30, 0xb7, 0x06, 0x68, 0x17, 0x49, 0xee, 0x2f, - 0x07, 0x37, 0x97, 0x3b, 0x2d, 0x65, 0x28, 0x1b, 0x04, 0xbe, 0x9b, 0x00, - 0x90, 0x7f, 0x6f, 0xfd, 0x2f, 0xb1, 0x7f, 0x97, 0x06, 0xf8, 0x17, 0x91, - 0x11, 0x3d, 0x41, 0x51, 0x13, 0x65, 0x04, 0x89, 0x31, 0xa3, 0x00, 0x78, - 0x17, 0x69, 0xe0, 0x89, 0x65, 0x00, 0x7a, 0x04, 0x4f, 0xb5, 0x00, 0x98, - 0x17, 0xc0, 0x92, 0x19, 0x04, 0xb2, 0x17, 0x70, 0x53, 0xe4, 0x53, 0xc0, - 0x4e, 0x80, 0x06, 0x78, 0x15, 0x00, 0x00, 0x78, 0xc7, 0x6c, 0xad, 0xdc, - 0x75, 0xc2, 0x06, 0x78, 0x15, 0x92, 0xff, 0x3b, 0x99, 0x6a, 0x63, 0x81, - 0xeb, 0x06, 0x03, 0xff, 0x7a, 0xfa, 0x63, 0x7d, 0x3a, 0x93, 0x05, 0xb8, - 0x15, 0x00, 0x78, 0x17, 0x18, 0x28, 0x0b, 0x33, 0xab, 0x28, 0x2b, 0x48, - 0x28, 0x35, 0x42, 0x28, 0x2d, 0x4f, 0x04, 0x88, 0x19, 0x07, 0x54, 0xff, - 0x80, 0x10, 0x0e, 0x90, 0x7f, 0x11, 0x10, 0x0f, 0x44, 0x41, 0x3d, 0x11, - 0x00, 0x11, 0x0f, 0x15, 0x31, 0x10, 0x11, 0x11, 0x11, 0x00, 0x11, 0xb2, - 0x1e, 0xde, 0x1f, 0x00, 0x00, 0x1a, 0x8a, 0x28, 0x17, 0xeb, 0x30, 0xaf, - 0x28, 0x17, 0xc4, 0x20, 0x05, 0xde, 0x55, 0x5d, 0x06, 0x34, 0x97, 0x72, - 0x2f, 0x25, 0x75, 0x2f, 0xab, 0x73, 0x2f, 0x2d, 0xeb, 0x06, 0x70, 0x7f, - 0x38, 0x17, 0x06, 0x50, 0x81, 0x4f, 0x4f, 0xa7, 0x61, 0x4f, 0x91, 0x38, - 0x13, 0xd7, 0x05, 0xf1, 0x0d, 0x3f, 0xaf, 0x67, 0x2f, 0xa9, 0x6f, 0x2f, - 0x8f, 0x3f, 0xa5, 0x78, 0x11, 0xdc, 0x05, 0x71, 0x95, 0x70, 0x7f, 0xf3, - 0x2e, 0xab, 0x98, 0x11, 0x05, 0x92, 0x13, 0x0a, 0x4f, 0x00, 0x14, 0x5c, - 0x93, 0x5e, 0x28, 0x83, 0x4b, 0x51, 0x80, 0x06, 0x32, 0xfd, 0x00, 0x00, - 0x74, 0xc7, 0x74, 0xb9, 0xe0, 0x00, 0xcf, 0x20, 0xce, 0x6c, 0xd0, 0x20, - 0x00, 0xfc, 0x7e, 0xc8, 0x06, 0x92, 0xff, 0x3b, 0x93, 0x06, 0x33, 0x81, - 0xd3, 0xff, 0x78, 0x15, 0x32, 0x91, 0xe3, 0xe2, 0x2b, 0xad, 0x04, 0x98, - 0x0f, 0x7f, 0xff, 0x18, 0x04, 0x40, 0x28, 0x0b, 0x43, 0xaa, 0x27, 0xfd, - 0x41, 0x48, 0x13, 0x4f, 0x28, 0x15, 0x3e, 0x48, 0x23, 0x30, 0x8e, 0x28, - 0x2f, 0x42, 0x04, 0x4c, 0x04, 0x88, 0x11, 0x07, 0xb4, 0xff, 0x10, 0x0e, - 0x90, 0x7f, 0x12, 0x00, 0x11, 0x10, 0x0c, 0x0d, 0x0d, 0x12, 0x12, 0x10, - 0x00, 0x16, 0x0e, 0x11, 0x12, 0x12, 0x12, 0x12, 0x2d, 0x02, 0x25, 0x2b, - 0x4a, 0x00, 0x00, 0x1b, 0x28, 0x17, 0xf4, 0x0a, 0x30, 0xa1, 0x30, 0xce, - 0x20, 0x05, 0xa9, 0x06, 0x68, 0x17, 0x76, 0xae, 0x2e, 0xa1, 0x6e, 0x2f, - 0xb1, 0x76, 0x2f, 0xb5, 0x0e, 0x10, 0x7f, 0xf8, 0x17, 0x77, 0xbc, 0x61, - 0x0d, 0x77, 0x05, 0x61, 0x0d, 0x00, 0x78, 0x17, 0x05, 0x71, 0x95, 0x00, - 0x58, 0x17, 0x76, 0x00, 0x40, 0xe1, 0x05, 0x62, 0x13, 0x0a, 0x4f, 0x07, - 0x4e, 0xfa, 0x8b, 0x30, 0x83, 0x6c, 0x06, 0x58, 0x15, 0x38, 0x17, 0x14, - 0xbc, 0x78, 0xb1, 0x3a, 0xf4, 0xbc, 0x06, 0x58, 0x15, 0x07, 0xf3, 0x7f, - 0x06, 0x38, 0x17, 0x32, 0x28, 0x0d, 0x3d, 0x3c, 0x04, 0x3e, 0x20, 0x07, - 0x06, 0x38, 0x19, 0x0e, 0xf4, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x13, 0x12, - 0x00, 0x11, 0x0d, 0x0e, 0x0e, 0x13, 0x13, 0x11, 0x17, 0x00, 0x0d, 0x12, - 0x13, 0x13, 0x13, 0x13, 0x87, 0x28, 0x00, 0x24, 0x1d, 0x00, 0x00, 0x1c, - 0x64, 0xab, 0x30, 0x01, 0xd0, 0x30, 0xeb, 0x30, 0xc0, 0x30, 0xfb, 0x40, - 0x07, 0x40, 0xab, 0x20, 0x0b, 0x71, 0x51, 0x8c, 0x54, 0xfd, 0x56, 0xaa, - 0x05, 0x7f, 0xba, 0x4b, 0x2f, 0x2b, 0x62, 0x2f, 0x2f, 0x72, 0x4e, 0xa9, - 0x6e, 0x0b, 0x00, 0x2d, 0x00, 0x42, 0x2f, 0x3d, 0x6c, 0x2f, 0xc3, 0x30, - 0x13, 0xad, 0x06, 0x10, 0x7f, 0x6f, 0xe0, 0x81, 0x69, 0x2f, 0x4f, 0x04, - 0xff, 0xaf, 0x70, 0x2f, 0x99, 0xb6, 0x38, 0x1d, 0x69, 0x4d, 0x31, 0x01, - 0x30, 0x91, 0x6e, 0x04, 0x20, 0x7f, 0x50, 0x81, 0x63, 0xdd, 0x29, 0xa5, - 0x78, 0x1d, 0x43, 0x00, 0x81, 0x1b, 0x30, 0x25, 0x31, 0x1b, 0x61, 0x03, - 0x60, 0xff, 0x78, 0xfa, 0xe0, 0x7d, 0x38, 0xa1, 0x01, 0x11, 0x99, 0x03, - 0x10, 0x7d, 0x00, 0x00, 0x61, 0x00, 0x53, 0xf4, 0x5d, 0x14, 0x5c, 0xbe, - 0x8f, 0x2d, 0x42, 0x00, 0x30, 0x07, 0x61, 0x53, 0x14, 0x5c, 0x05, 0xd2, - 0xff, 0x74, 0x00, 0xce, 0x14, 0xbc, 0x74, 0xb9, 0x14, 0xb5, 0x78, 0x00, - 0xb1, 0x1c, 0xbc, 0x74, 0xce, 0x74, 0xb9, 0x20, 0x01, 0x00, 0xf5, 0xac, - 0x54, 0xd6, 0x6d, 0xad, 0x06, 0x53, 0x7f, 0x5a, 0xeb, 0x00, 0x02, 0xfd, - 0xeb, 0x04, 0xef, 0xb1, 0x52, 0x63, 0xe1, 0x63, 0xff, 0x61, 0xfd, 0xa2, - 0x61, 0x30, 0x13, 0x32, 0x61, 0x78, 0x2b, 0xd2, 0x25, 0x03, 0x78, 0x31, - 0x1a, 0x28, 0x15, 0x41, 0x31, 0x28, 0x19, 0x40, 0x04, 0x34, 0x04, 0x38, - 0x48, 0x1f, 0x15, 0x2d, 0x00, 0x11, 0x28, 0x29, 0x3b, 0x48, 0x23, 0x40, - 0xa8, 0x2b, 0x11, 0x40, 0x04, 0x35, 0x28, 0x39, 0x3f, 0x04, 0x43, 0x48, - 0x33, 0x70, 0x38, 0x48, 0x43, 0x0c, 0x14, 0xff, 0x10, 0x0d, 0xf0, 0x7f, - 0x14, 0x13, 0x12, 0x45, 0x00, 0x3e, 0x3f, 0x14, 0x14, 0x16, 0x0b, 0x0f, - 0x13, 0x00, 0x14, 0x14, 0x14, 0x14, 0xeb, 0x1e, 0x04, 0x1f, 0x10, 0x00, - 0x00, 0x1d, 0x28, 0x17, 0xea, 0x30, 0xfc, 0x30, 0x01, 0xcb, 0x30, 0xf3, - 0x30, 0xb0, 0x30, 0xe9, 0x20, 0x09, 0x3a, 0xc9, 0x30, 0x05, 0xdd, 0x39, - 0x38, 0x17, 0x37, 0x11, 0x6e, 0x48, 0x15, 0x67, 0xb4, 0x2c, 0x2d, 0x61, - 0x2e, 0xb3, 0x0d, 0x90, 0x7f, 0x4f, 0x48, 0x11, 0x61, 0x00, 0x1d, 0x73, - 0x00, 0x74, 0x68, 0x13, 0x05, 0xd1, 0x0d, 0x7f, 0xaf, 0x6f, 0x2f, 0xaf, - 0xf7, 0x3f, 0xab, 0x58, 0x11, 0x05, 0x91, 0x95, 0x70, 0x7f, 0xf3, 0x2e, - 0xb3, 0xb8, 0x11, 0x00, 0x12, 0x13, 0x80, 0x04, 0x5e, 0xcd, 0xa0, 0x52, - 0xcc, 0x91, 0x81, 0x5b, 0x3c, 0x18, 0x68, 0xd2, 0x52, 0x05, 0xd2, 0xf7, - 0x7f, 0xff, 0x7c, 0xce, 0xac, 0x00, 0xb9, 0xcc, 0xb2, 0xf8, 0xad, 0x7c, - 0xb7, 0xdc, 0x06, 0xb4, 0x20, 0x00, 0xfc, 0xc8, 0x05, 0xff, 0xb2, 0x08, - 0x53, 0x7f, 0x6f, 0xde, 0x88, 0x0d, 0x32, 0x9b, 0xe3, 0x2f, 0x4d, 0x03, - 0x78, 0x07, 0x00, 0x38, 0x17, 0x37, 0xe5, 0x3d, 0xad, 0x48, 0x15, 0x33, - 0x28, 0x1f, 0x30, 0x28, 0x21, 0x98, 0x0d, 0x3e, 0x48, 0x05, 0x47, 0x30, - 0x28, 0x1f, 0x42, 0x04, 0x4c, 0x03, 0x28, 0x07, 0x0f, 0xf4, 0xff, 0x10, - 0x06, 0xf0, 0xff, 0x00, 0x15, 0x14, 0x13, 0x0f, 0x10, 0x0f, 0x15, 0x15, - 0x00, 0x17, 0x18, 0x10, 0x14, 0x15, 0x15, 0x15, 0x15, 0x01, 0xe8, 0x26, - 0x96, 0x0e, 0x00, 0x00, 0x1e, 0x28, 0x17, 0x00, 0xeb, 0x30, 0xe0, 0x30, - 0xa4, 0x30, 0xaf, 0x30, 0xc7, 0x05, 0xdd, 0x27, 0xd8, 0x17, 0x6d, 0x00, - 0x79, 0x2f, 0x9f, 0x06, 0x35, 0x97, 0x70, 0x7f, 0x5e, 0x6f, 0x2f, 0xb3, - 0x6b, 0x4f, 0x8b, 0x05, 0xd6, 0x1d, 0x9f, 0xaf, 0x3f, 0xad, 0x6b, 0x8d, - 0x88, 0x1b, 0x6d, 0x00, 0xfc, 0x2f, 0xbb, 0x50, 0x91, 0x6e, 0x05, 0x40, - 0x7f, 0xf4, 0xdf, 0xb1, 0x38, 0x1d, 0x3d, 0xcb, 0x31, 0x9b, 0x75, 0x2f, - 0xc7, 0x63, 0x00, 0x7f, 0x68, 0x03, 0x6f, 0xa1, 0x00, 0x30, 0xff, 0xbe, - 0x09, 0xd8, 0x1d, 0x30, 0x7d, 0x31, 0x97, 0x04, 0x10, 0x79, 0x80, 0x5f, - 0xff, 0x61, 0x53, 0x14, 0x5c, 0x85, 0x68, 0x4b, 0x60, 0x51, 0x06, 0x52, - 0xfd, 0x38, 0x17, 0xf8, 0xbb, 0x6c, 0xd0, 0x20, 0x01, 0x00, 0xf5, 0xac, - 0x54, 0xd6, 0x6d, 0xad, 0x06, 0x92, 0xff, 0xd8, 0x32, 0xfd, 0x32, 0xff, - 0xeb, 0x05, 0xe9, 0x1c, 0x72, 0x63, 0xfa, 0x00, 0x71, 0xf8, 0x23, 0x81, - 0x32, 0x61, 0x78, 0x11, 0xd2, 0x15, 0x04, 0x78, 0x17, 0x20, 0x04, 0x35, - 0x8a, 0x28, 0x05, 0x3f, 0x04, 0x43, 0x47, 0xff, 0x38, 0x48, 0x0f, 0x20, - 0x8b, 0x68, 0x2d, 0x3c, 0x04, 0x4b, 0x28, 0x1f, 0x38, 0x28, 0x1f, 0x0d, - 0x14, 0xff, 0x80, 0x10, 0x0e, 0x70, 0x7f, 0x16, 0x15, 0x14, 0x46, 0x3f, - 0x40, 0x16, 0x00, 0x16, 0x18, 0x0d, 0x32, 0x15, 0x16, 0x16, 0x16, 0x00, - 0x16, 0xef, 0x20, 0x7a, 0x1f, 0x00, 0x00, 0x1f, 0x86, 0x48, 0x17, 0xfc, - 0x30, 0xac, 0x30, 0x06, 0x5d, 0x2d, 0x7f, 0xaf, 0x75, 0xfa, 0x2f, 0xa9, - 0x04, 0x75, 0xf9, 0x01, 0x3d, 0x2f, 0x38, 0x15, 0x06, 0x50, 0x81, 0x4f, - 0x48, 0x11, 0x61, 0x0e, 0x00, 0x73, 0x00, 0x74, 0x8f, 0xa7, 0x05, 0xb1, - 0x0d, 0x7f, 0xaf, 0x6f, 0xfb, 0x2f, 0xaf, 0x3f, 0xab, 0x58, 0x11, 0x05, - 0x91, 0x95, 0x70, 0x7f, 0xf3, 0x2e, 0xb1, 0xd8, 0x11, 0x81, 0x05, 0x52, - 0x13, 0x61, 0x53, 0x62, 0x53, 0xa0, 0x52, 0x06, 0x72, 0xfd, 0x80, 0x38, - 0x17, 0xe8, 0xb8, 0x00, 0xac, 0x20, 0x00, 0xfc, 0x5f, 0xc8, 0x06, 0xb3, - 0x7f, 0x6f, 0x4f, 0x99, 0x06, 0x33, 0x81, 0xb3, 0xff, 0x78, 0x11, 0x32, - 0x8f, 0x78, 0xe3, 0x2b, 0xa9, 0x04, 0x78, 0x0b, 0xbf, 0xf5, 0x58, 0x01, - 0x43, 0x04, 0x36, 0xd5, 0x28, 0x1d, 0x38, 0x13, 0x4f, 0x28, 0x15, 0x3e, - 0x48, 0x23, 0x30, 0x28, 0x2f, 0x1c, 0x42, 0x04, 0x4c, 0x04, 0xa8, 0x13, - 0x07, 0x94, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x17, 0x16, 0x00, 0x15, 0x10, - 0x11, 0x10, 0x17, 0x17, 0x19, 0x19, 0x00, 0x11, 0x16, 0x17, 0x17, 0x17, - 0x17, 0xca, 0x26, 0x30, 0xcd, 0x19, 0x2b, 0x2d, 0x28, 0x17, 0xe0, 0x30, - 0xc1, 0x30, 0x00, 0xe3, 0x30, 0xc4, 0x30, 0xab, 0x30, 0x30, 0x57, 0x6a, - 0xb9, 0x05, 0xff, 0x2e, 0x4f, 0xaf, 0x6d, 0x4e, 0x8d, 0x61, 0x27, 0x19, - 0x6b, 0xde, 0x06, 0x08, 0x1d, 0x50, 0x7f, 0x74, 0x06, 0x80, 0x81, 0xb7, - 0x97, 0x5f, 0x23, 0x30, 0x8d, 0x73, 0xaa, 0x05, 0x81, 0x11, 0x54, 0x2f, - 0xaf, 0x72, 0x2d, 0x9f, 0x69, 0x28, 0x97, 0x6f, 0xac, 0x40, 0x07, 0x6f, - 0x6f, 0xb1, 0x6c, 0x48, 0xaf, 0x70, 0x93, 0x0d, 0x01, 0xf0, 0x04, 0x51, - 0x9f, 0x00, 0x90, 0x7f, 0x71, 0x0d, 0x04, 0xd2, 0x1b, 0xd8, 0x52, 0xdf, - 0x5b, 0x00, 0xa0, 0x52, 0xb9, 0x8f, 0x86, 0x75, 0x3a, 0x53, 0x80, 0x06, - 0x3d, 0xb0, 0x84, 0xce, 0x28, 0xcc, 0x74, 0xce, 0x20, 0x06, 0x00, 0xc0, - 0xc9, 0x29, 0xbc, 0x06, 0x7e, 0x2f, 0x52, 0x71, 0x6a, 0xeb, 0x06, 0x43, - 0x81, 0x00, 0x13, 0xff, 0x38, 0x1d, 0x74, 0xa2, 0x95, 0xf3, 0x62, 0x95, - 0x04, 0x58, 0x25, 0x8a, 0x38, 0x17, 0x3c, 0x04, 0x47, 0x28, 0x1d, 0x42, - 0x48, 0x19, 0x38, 0x22, 0x04, 0x39, 0x28, 0x19, 0x3a, 0x04, 0x40, 0x28, - 0x2f, 0x39, 0xe0, 0x04, 0xe8, 0x13, 0x07, 0x94, 0xff, 0x10, 0x0e, 0x90, - 0x7f, 0x18, 0x17, 0x16, 0x37, 0x4d, 0x00, 0x4d, 0x18, 0x18, 0x1a, 0x1a, - 0x12, 0x17, 0x18, 0x00, 0x18, 0x18, 0x18, 0xb3, 0x25, 0xd1, 0x70, 0x00, - 0x28, 0x00, 0x21, 0x28, 0x17, 0xe9, 0x48, 0x17, 0xa4, 0x30, 0xfb, 0x80, - 0x28, 0x1f, 0xa7, 0x30, 0xeb, 0x30, 0xb1, 0x30, 0xb9, 0x01, 0x30, 0x71, - 0x51, 0x8c, 0x54, 0xfd, 0x56, 0x05, 0x7f, 0xaf, 0x60, 0x72, 0x2f, 0xb3, - 0x58, 0x19, 0x79, 0x00, 0x2d, 0x00, 0x43, 0xd7, 0x28, 0x23, 0x36, 0xab, - 0x6b, 0x2e, 0xc9, 0x73, 0x2f, 0x47, 0x05, 0x50, 0x7f, 0x78, 0x19, 0x05, - 0xef, 0x00, 0xe9, 0x00, 0x76, 0x2f, 0x3d, 0x2d, 0x27, 0x31, 0xda, 0x38, - 0xad, 0xb0, 0x89, 0x69, 0x2f, 0x5b, 0x04, 0x3f, 0xaf, 0x70, 0x2f, 0x99, - 0x62, 0xbd, 0x2f, 0x9f, 0x69, 0x29, 0x17, 0x5f, 0xab, 0x50, 0x91, 0x78, - 0x1d, 0x69, 0x40, 0x8d, 0xdb, 0x58, 0x2b, 0xf0, 0x8f, 0x6e, 0x03, 0x80, - 0x7f, 0x50, 0x81, 0x63, 0x88, 0x0b, 0x31, 0x95, 0xb3, 0x38, 0x0d, 0x6a, - 0x2f, 0xd1, 0x51, 0x11, 0x0c, 0x01, 0xd1, 0x0d, 0x03, 0x3f, 0xcd, 0xbb, - 0x50, 0xff, 0xfa, 0xc0, 0x7d, 0x98, 0x15, 0x72, 0x19, 0xe1, 0x22, 0x19, - 0x70, 0x85, 0xc0, 0xd2, 0x1f, 0x02, 0xf0, 0x85, 0x61, 0x53, 0xc9, 0x62, - 0x70, 0x60, 0x00, 0x36, 0x80, 0x2b, 0x59, 0x2d, 0x00, 0x07, 0x52, 0x02, - 0x14, 0x5c, 0x4b, 0x51, 0xaf, 0x65, 0x05, 0x92, 0xfd, 0x00, 0x00, 0x00, - 0x74, 0xce, 0x7c, 0xb7, 0x28, 0xcc, 0x08, 0x00, 0xc6, 0xf4, 0xbc, 0xb4, - 0xcc, 0x74, 0xb9, 0x00, 0x10, 0xcf, 0xa4, 0xc2, 0x20, 0x11, 0xc5, 0x20, - 0x00, 0xf5, 0x06, 0xac, 0x54, 0xd6, 0x6d, 0xad, 0x05, 0x93, 0x7f, 0x78, - 0x19, 0x6a, 0xed, 0x62, 0x6b, 0x31, 0xf5, 0xb2, 0xf9, 0xeb, 0x06, 0x83, - 0xff, 0x38, 0x27, 0x72, 0x00, 0x02, 0x25, 0xf0, 0x03, 0x78, 0x25, 0x38, - 0x17, 0x38, 0x03, 0x38, 0x19, 0x35, 0x04, 0x32, 0x04, 0x05, 0x3e, 0x04, - 0x2d, 0x00, 0x27, 0x20, 0x09, 0x40, 0x28, 0x23, 0x62, 0x35, 0x28, 0x29, - 0x38, 0x2b, 0x30, 0x04, 0x4f, 0x28, 0x2b, 0x40, 0x80, 0x40, 0x0f, 0x3f, - 0x04, 0x43, 0x04, 0x31, 0x04, 0x3b, 0xf0, 0x28, 0x3f, 0x30, 0x17, 0x0b, - 0x94, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x19, 0x18, 0x17, 0x47, 0x00, 0x48, - 0x41, 0x19, 0x19, 0x1b, 0x1b, 0x13, 0x18, 0x00, 0x19, 0x19, 0x19, 0x19, - 0x71, 0x1f, 0xe6, 0x1d, 0x10, 0x00, 0x00, 0x22, 0x28, 0x17, 0xec, 0x30, - 0xea, 0x30, 0x7d, 0xa2, 0x05, 0xa8, 0x09, 0x00, 0x38, 0x17, 0x3e, 0x9d, - 0x03, 0x56, 0x67, 0x01, 0xff, 0xec, 0x43, 0x48, 0x97, 0x7e, 0xe9, 0x47, - 0x95, 0x04, 0x17, 0xf5, 0x02, 0x98, 0x17, 0x51, 0x11, 0x03, 0x17, 0xf7, - 0x02, 0x58, 0x17, 0x64, 0xbe, 0x2f, 0xbf, 0x20, 0x61, 0x1b, 0x04, 0xd1, - 0x9b, 0x00, 0x98, 0x17, 0x05, 0x30, 0x7d, 0x38, 0x17, 0x2f, 0x04, 0x7d, - 0x29, 0x52, 0x3f, 0x96, 0x06, 0x72, 0xff, 0x74, 0xce, 0x0f, 0x10, 0xb8, - 0xac, 0xb9, 0x05, 0xb8, 0x09, 0x00, 0x93, 0x7f, 0x04, 0x77, 0xfb, 0x01, - 0x73, 0x7f, 0xea, 0x3a, 0x91, 0x04, 0xb8, 0x03, 0x00, 0x3f, 0xfd, 0x20, - 0x00, 0x27, 0xed, 0x20, 0x68, 0x2d, 0x35, 0xb8, 0x47, 0xff, 0x4f, 0x03, - 0x27, 0xfd, 0x08, 0x94, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x1a, 0x19, 0x0b, - 0x00, 0x48, 0x40, 0x39, 0x1a, 0x1a, 0x1c, 0x0e, 0x33, 0x00, 0x19, 0x1a, - 0x1a, 0x1a, 0x1a, 0xef, 0x2b, 0x6a, 0x00, 0x18, 0x00, 0x00, 0x23, 0x64, - 0xb1, 0x30, 0xe1, 0x00, 0x30, 0xed, 0x30, 0xf4, 0x30, 0xa9, 0x30, 0xde, - 0x62, 0x5d, 0x06, 0x27, 0x96, 0x2f, 0xaf, 0x65, 0x00, 0x6d, 0x4f, 0x95, - 0x6f, 0xd5, 0x4f, 0xa7, 0x0d, 0xf0, 0x7f, 0x4f, 0x4f, 0xa7, 0x61, 0x2f, - 0xff, 0x74, 0x4f, 0xa7, 0xb5, 0x91, 0x0d, 0x77, 0x05, 0x41, 0x0d, 0x3f, - 0xaf, 0x67, 0x2f, 0xfb, 0x6f, 0x28, 0x81, 0xf6, 0x3f, 0xa5, 0x58, 0x11, - 0x05, 0x91, 0x95, 0x70, 0x7f, 0xf3, 0x29, 0x01, 0x78, 0x11, 0x4b, 0xc0, - 0x29, 0xa7, 0x05, 0x72, 0x13, 0x4b, 0x51, 0xa6, 0x9e, 0x57, 0x7f, 0x30, - 0x83, 0x6c, 0x06, 0x52, 0xfd, 0x2f, 0xff, 0xcf, 0x54, 0xba, 0x5c, 0x01, - 0xb8, 0xf4, 0xbc, 0x20, 0x00, 0xfc, 0xc8, 0x0f, 0x33, 0x7f, 0xde, 0x78, - 0x19, 0x32, 0x93, 0xe3, 0x24, 0x13, 0x04, 0xb8, 0x13, 0x45, 0x17, 0x28, - 0x17, 0x3c, 0x83, 0x28, 0x1b, 0x40, 0x04, 0x3e, 0x04, 0x32, 0x28, 0x21, - 0x38, 0x17, 0x54, 0x4f, 0x28, 0x19, 0x3e, 0x48, 0x27, 0x30, 0x28, 0x33, - 0x42, 0x04, 0x70, 0x4c, 0x04, 0xa8, 0x19, 0x0e, 0xf4, 0xff, 0x10, 0x06, - 0xf0, 0xff, 0x1b, 0x1a, 0x18, 0x11, 0x00, 0x12, 0x11, 0x1b, 0x1b, 0x1d, - 0x1c, 0x14, 0x1a, 0x00, 0x1b, 0x1b, 0x1b, 0x1b, 0x5e, 0x27, 0x38, 0x3d, - 0x01, 0x00, 0x00, 0x24, 0x64, 0xcf, 0x30, 0xd0, 0x28, 0x17, 0x00, 0xd5, - 0x30, 0xb9, 0x30, 0xaf, 0x30, 0x30, 0x57, 0x45, 0xb9, 0x06, 0x0f, 0x32, - 0x4b, 0x00, 0x68, 0x2f, 0xb1, 0x62, 0x4f, 0xb5, 0xbe, 0x38, 0x19, 0x73, - 0x2f, 0x33, 0x0d, 0xb0, 0x7f, 0xb7, 0x97, 0x3f, 0xa1, 0xb1, 0x0d, 0x77, - 0xab, 0x05, 0x21, 0x0d, 0x54, 0x49, 0x93, 0x72, 0x2f, 0xab, 0x74, 0x29, - 0x99, 0x30, 0x07, 0xfd, 0x35, 0x9b, 0x58, 0x1d, 0xd0, 0x8d, 0x04, 0x51, - 0x9b, 0x00, 0x70, 0x7f, 0x38, 0xa3, 0x4a, 0x42, 0x19, 0x40, 0xe1, 0x04, - 0xc2, 0x19, 0xc8, 0x54, 0xf4, 0x5d, 0x57, 0x7f, 0x00, 0x2b, 0x59, 0xaf, - 0x65, 0x4b, 0x51, 0xb9, 0x8f, 0x08, 0x86, 0x75, 0x3a, 0x53, 0x05, 0xdf, - 0xb1, 0x58, 0xd5, 0x14, 0x00, 0xbc, 0x6d, 0xb8, 0xa4, 0xc2, 0x6c, 0xd0, - 0x20, 0x07, 0x00, 0xc0, 0xc9, 0x29, 0xbc, 0x06, 0x1f, 0xaf, 0x08, 0x13, - 0x7f, 0x38, 0x1b, 0x5a, 0x74, 0xa2, 0x97, 0xf3, 0x62, 0x97, 0x04, 0x38, - 0x23, 0x25, 0x28, 0x07, 0x31, 0xc5, 0x28, 0x0b, 0x98, 0x17, 0x38, 0x04, - 0x39, 0x28, 0x17, 0x3a, 0x28, 0x29, 0x70, 0x30, 0x20, 0x09, 0x10, 0x04, - 0xf4, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x1c, 0x1b, 0x19, 0x36, 0x00, 0x4f, - 0x4c, 0x1c, 0x1c, 0x0b, 0x1d, 0x4c, 0x1b, 0x00, 0x1c, 0x1c, 0x1c, 0x1c, - 0x7a, 0x22, 0x0c, 0x60, 0xd0, 0x23, 0x15, 0x28, 0x17, 0xab, 0x28, 0x13, - 0x71, 0x51, 0x8c, 0x54, 0x35, 0xfd, 0x56, 0x06, 0x5c, 0xaf, 0x38, 0x17, - 0x6b, 0x4f, 0x31, 0x73, 0x2e, 0xb7, 0x71, 0x61, 0x06, 0xe0, 0x7f, 0x05, - 0xf9, 0x18, 0x3f, 0xaf, 0x70, 0x00, 0x75, 0x29, 0x19, 0x7b, 0x6c, 0x2f, - 0xb5, 0x35, 0x13, 0x58, 0x1b, 0xb0, 0x91, 0x6e, 0x05, 0x40, 0x7f, 0x50, - 0x81, 0x7b, 0x63, 0x29, 0xa5, 0x78, 0x17, 0x05, 0x31, 0x9b, 0x50, 0xff, - 0xfa, 0xe0, 0x7d, 0x78, 0x15, 0xc0, 0x52, 0x17, 0x04, 0xb2, 0x15, 0xc8, - 0x54, 0x61, 0x53, 0xaf, 0x65, 0x80, 0x06, 0x92, 0xff, 0x58, 0xd5, 0x74, - 0xce, 0xa4, 0xc2, 0x20, 0x01, 0x00, 0xf5, 0xac, 0x54, 0xd6, 0x6d, 0xad, - 0x06, 0x13, 0x81, 0xab, 0xf2, 0x6d, 0xeb, 0x06, 0x08, 0x97, 0x61, 0x22, - 0x73, 0xe1, 0x83, 0xfd, 0x38, 0x13, 0x71, 0x72, 0x00, 0x02, 0x13, 0x04, - 0x38, 0x11, 0x5f, 0xff, 0x20, 0x04, 0x35, 0x28, 0x0d, 0x15, 0x3f, 0x04, - 0x43, 0x28, 0x1d, 0x3b, 0x28, 0x13, 0x3a, 0x28, 0x27, 0x6b, 0x20, 0x48, - 0x2d, 0x30, 0x09, 0x41, 0x28, 0x25, 0x4f, 0x04, 0xc8, 0x1b, 0x07, 0xf4, - 0xff, 0x80, 0x10, 0x0d, 0xf0, 0x7f, 0x1d, 0x1c, 0x1a, 0x42, 0x42, 0x3e, - 0x1d, 0x00, 0x1d, 0x0c, 0x0c, 0x3b, 0x1c, 0x1d, 0x1d, 0x1d, 0x00, 0x1d, - 0x32, 0x26, 0x01, 0x41, 0x00, 0x00, 0x26, 0x80, 0x28, 0x17, 0xf3, 0x30, - 0xc6, 0x30, 0xa3, 0x30, 0xfb, 0x20, 0x30, 0xde, 0x20, 0x09, 0xb7, 0x30, - 0xea, 0x81, 0xbb, 0x1a, 0x6c, 0xa1, 0x7b, 0x05, 0x9d, 0x35, 0x5f, 0xaf, - 0x6e, 0x2e, 0xad, 0x79, 0x0d, 0x00, 0x2d, 0x00, 0x4d, 0x40, 0x0b, 0x38, - 0x1f, 0x79, 0x06, 0x20, 0x7f, 0x56, 0x73, 0xc0, 0x81, 0x73, 0x05, 0x4e, - 0x38, 0x41, 0x28, 0x13, 0x3f, 0xa9, 0x6e, 0xbf, 0x2f, 0xad, 0x6d, 0x4f, - 0xbb, 0x37, 0x8f, 0x35, 0x19, 0x30, 0x81, 0x5f, 0x39, 0x30, 0x13, 0xea, - 0x5f, 0xbb, 0x31, 0x27, 0x38, 0x27, 0x20, 0x28, 0x49, 0x6e, 0x2f, 0xd5, - 0x20, 0xd6, 0x81, 0x31, 0x02, 0x78, 0x3d, 0x43, 0x2f, 0xa9, 0x72, 0x28, - 0x0d, 0x30, 0x81, 0x64, 0xff, 0x4e, 0x35, 0x5f, 0xb1, 0xd0, 0x97, 0x5f, - 0xc3, 0x38, 0x2b, 0x90, 0x87, 0x39, 0xc3, 0xb1, 0xb1, 0xad, 0x02, 0x59, - 0xd1, 0x44, 0x41, 0x69, 0x74, 0x6e, 0x19, 0x30, 0x79, 0x61, 0x41, 0x11, - 0x7c, 0xf3, 0xc0, 0x79, 0x78, 0x27, 0x50, 0x77, 0xb2, 0x27, 0x02, 0xff, - 0xdd, 0x49, 0x6c, 0x00, 0x79, 0x72, 0x2d, 0x00, 0xfc, 0x66, 0x7f, 0x89, - 0xe0, 0x32, 0xf9, 0x05, 0x92, 0xf7, 0x7f, 0xff, 0x5c, 0xd5, 0xf0, 0xd2, - 0xcc, 0x20, 0xb9, 0xdc, 0x28, 0x19, 0x90, 0xc7, 0x58, 0xce, 0x6c, 0xde, - 0x06, 0x08, 0x19, 0x92, 0x57, 0x6f, 0xc3, 0x7f, 0x05, 0x78, 0x1f, 0x06, - 0xf3, 0xff, 0x38, 0x01, 0x3d, 0x00, 0x04, 0x42, 0x04, 0x4b, 0x04, 0x2d, - 0x00, 0x1c, 0xd4, 0x40, 0x0b, 0x38, 0x0b, 0x39, 0x28, 0x2b, 0x3a, 0x40, - 0x07, 0x20, 0x00, 0x14, 0x30, 0x04, 0x32, 0x20, 0x1f, 0x3e, 0x20, 0x25, - 0x3e, 0x04, 0x55, 0x3c, 0x20, 0x2b, 0x4b, 0x40, 0x15, 0x3e, 0x28, 0x41, - 0x40, 0x28, 0x4d, 0x70, 0x33, 0x02, 0xe8, 0x35, 0x07, 0xb4, 0xff, 0x10, - 0x0e, 0x30, 0x7f, 0x1e, 0x1d, 0x1b, 0x01, 0x00, 0x01, 0x03, 0x1e, 0x1e, - 0x0d, 0x1e, 0x4d, 0x1d, 0x00, 0x1e, 0x1e, 0x1e, 0x1e, 0x60, 0x2b, 0x11, - 0x31, 0x00, 0x00, 0x00, 0x27, 0x64, 0xad, 0x30, 0xfc, 0x30, 0x03, 0xed, - 0x30, 0xd5, 0x30, 0xde, 0x5d, 0x06, 0x3d, 0x2d, 0x3f, 0xaf, 0x8d, 0x36, - 0x97, 0x6f, 0x00, 0x76, 0x06, 0x50, 0x7e, 0x07, 0x00, 0x7f, 0x4f, 0x4f, - 0xa7, 0xb6, 0x3f, 0x91, 0x74, 0x4f, 0xa1, 0x51, 0x0d, 0x77, 0x05, 0x8e, - 0xba, 0x3f, 0xaf, 0x67, 0xbf, 0x48, 0x0b, 0x6e, 0x4f, 0xa5, 0x57, 0xfd, - 0x05, 0x91, 0x95, 0x70, 0x7f, 0x38, 0x07, 0x78, 0x01, 0x10, 0x4b, 0x00, - 0xed, 0x05, 0x82, 0x13, 0xfa, 0x57, 0x1b, 0x6d, 0x20, 0x2b, 0x59, 0x06, - 0x72, 0xfd, 0x00, 0x00, 0xa4, 0xd0, 0x5c, 0x01, 0xb8, 0x04, 0xd5, 0x20, - 0x00, 0xfc, 0xc8, 0x06, 0x73, 0x7f, 0xc6, 0x05, 0x91, 0x6b, 0x00, 0xd3, - 0xff, 0x20, 0x00, 0x28, 0x4b, 0x0f, 0x32, 0x8d, 0xe3, 0xaa, 0x2b, 0x29, - 0x29, 0x05, 0x4f, 0x39, 0x1a, 0x28, 0x05, 0x40, 0x27, 0xf5, 0x32, 0x88, - 0x48, 0x09, 0x30, 0x04, 0x4f, 0x47, 0xf3, 0x31, 0x04, 0x3b, 0xae, 0x28, - 0x2f, 0x41, 0x28, 0x2f, 0x4c, 0x02, 0xe7, 0xf7, 0x10, 0x00, 0xf4, 0xff, - 0x10, 0x06, 0xf0, 0xff, 0x1f, 0x00, 0x1e, 0x1c, 0x12, 0x13, 0x12, 0x1f, - 0x1f, 0x1e, 0x00, 0x1f, 0x15, 0x1e, 0x1f, 0x1f, 0x1f, 0x1f, 0xab, 0x00, - 0x29, 0x4e, 0x23, 0x00, 0x00, 0x28, 0x64, 0xb3, 0x00, 0x30, 0xdf, 0x30, - 0x71, 0x51, 0x8c, 0x54, 0xfd, 0x7b, 0x56, 0x06, 0x78, 0x17, 0x3f, 0x27, - 0x03, 0x1d, 0xf7, 0x02, 0xf0, 0x7f, 0x73, 0x06, 0x68, 0x97, 0x37, 0x97, - 0x63, 0x70, 0x2f, 0xfd, 0x38, 0x1d, 0x69, 0x00, 0x6b, 0x48, 0x1b, 0x05, - 0xb1, 0x11, 0xde, 0x90, 0x7f, 0x50, 0x81, 0x63, 0x2f, 0xff, 0x98, 0x1d, - 0x05, 0x11, 0x9b, 0x50, 0xff, 0xfa, 0xe1, 0xe0, 0x7d, 0x58, 0x1d, 0x05, - 0x32, 0x19, 0xd1, 0x79, 0x73, 0x7c, 0x06, 0xb2, 0xff, 0x00, 0x54, 0xcf, - 0xf8, 0xbb, 0x20, 0x00, 0xf5, 0xac, 0x0f, 0x54, 0xd6, 0x6d, 0xad, 0x0e, - 0xb3, 0x7f, 0x78, 0x15, 0xd2, 0x0b, 0x05, 0x18, 0x1b, 0x16, 0x20, 0x04, - 0x35, 0x28, 0x11, 0x3f, 0x2f, 0xf9, 0x38, 0x0b, 0x38, 0xa3, 0x48, 0x1b, - 0x20, 0x28, 0x2d, 0x3e, 0x04, 0x3c, 0x28, 0x31, 0x0d, 0x94, 0xff, 0x80, - 0x10, 0x0e, 0x70, 0x7f, 0x20, 0x1f, 0x1d, 0x49, 0x43, 0x42, 0x20, 0x00, - 0x20, 0x21, 0x20, 0x34, 0x1f, 0x20, 0x20, 0x20, 0x00, 0x20, 0xda, 0x2b, - 0x22, 0x24, 0x00, 0x00, 0x29, 0x80, 0x28, 0x17, 0xb9, 0x30, 0xc8, 0x30, - 0xed, 0x30, 0xde, 0x7b, 0x30, 0x06, 0x5d, 0x33, 0x38, 0x17, 0x3f, 0x2b, - 0x3f, 0xb3, 0x6d, 0x2f, 0x37, 0x0d, 0xf0, 0x7f, 0x5e, 0x4f, 0x48, 0x11, - 0x61, 0x41, 0x03, 0x58, 0x13, 0x05, 0xd1, 0x0d, 0x7f, 0xaf, 0x6f, 0xfb, - 0x2f, 0xaf, 0x3f, 0xab, 0x98, 0x11, 0x05, 0x51, 0x95, 0x70, 0x7f, 0xf3, - 0x20, 0x7f, 0xb8, 0x11, 0xa0, 0x92, 0x13, 0xe1, 0x04, 0xe8, 0x17, 0xaf, - 0x65, 0x79, 0x72, 0x57, 0x10, 0x7f, 0x6c, 0x9a, 0x06, 0x52, 0xff, 0x54, - 0xcf, 0xa4, 0xc2, 0x00, 0xb8, 0xd2, 0x5c, 0xb8, 0xc8, 0xb9, 0x20, 0x00, - 0x3b, 0xfc, 0xc8, 0x0f, 0x13, 0x7f, 0x78, 0x1f, 0x32, 0x93, 0xe3, 0x2f, - 0x47, 0x04, 0xf8, 0x19, 0x82, 0x38, 0x01, 0x41, 0x04, 0x42, 0x04, 0x40, - 0x48, 0x09, 0x41, 0xaa, 0x48, 0x17, 0x4f, 0x28, 0x19, 0x3e, 0x48, 0x27, - 0x30, 0x40, 0x1b, 0x4c, 0xe0, 0x04, 0xa8, 0x1f, 0x0e, 0xf4, 0xff, 0x10, - 0x06, 0xf0, 0xff, 0x21, 0x20, 0x1e, 0x13, 0x14, 0x00, 0x13, 0x21, 0x21, - 0x22, 0x21, 0x16, 0x20, 0x21, 0x00, 0x21, 0x21, 0x21, 0x14, 0x29, 0x1b, - 0x1d, 0x00, 0x02, 0x00, 0x2a, 0x64, 0xaf, 0x30, 0xe9, 0x28, 0x19, 0xce, - 0x00, 0x30, 0xc0, 0x30, 0xfc, 0x30, 0xeb, 0x30, 0x30, 0x15, 0x57, 0xb9, - 0x65, 0x05, 0xff, 0xaf, 0x72, 0x47, 0x15, 0x6e, 0x2f, 0xb7, 0x5f, 0x64, - 0x2e, 0xab, 0x72, 0x06, 0x0d, 0x2f, 0x06, 0xd0, 0x7f, 0xb7, 0x97, 0x3f, - 0xa1, 0x05, 0xf1, 0x0d, 0x55, 0x54, 0x2f, 0xaf, 0x72, 0x2d, 0xa9, 0x69, - 0x29, 0x9b, 0x6f, 0x40, 0x07, 0x7c, 0x6f, 0xa8, 0x1d, 0x05, 0x11, 0x9b, - 0x00, 0x70, 0x7f, 0x58, 0x1f, 0x05, 0x12, 0x1b, 0x4b, 0x51, 0x00, 0xc9, - 0x62, 0xaf, 0x65, 0xfa, 0x8b, 0xbe, 0x8f, 0x00, 0x14, 0x5c, 0xb9, 0x8f, - 0x86, 0x75, 0x3a, 0x53, 0x80, 0x05, 0xdf, 0xb5, 0x6c, 0xd0, 0x7c, 0xb7, - 0xa4, 0xc2, 0x78, 0x08, 0xb1, 0xe4, 0xb2, 0x74, 0x28, 0x19, 0xc0, 0xc9, - 0x29, 0x6b, 0xbc, 0x0e, 0xf3, 0x7f, 0x38, 0x19, 0x74, 0xa2, 0x95, 0xf3, - 0x62, 0x95, 0x04, 0x58, 0x21, 0x6a, 0x1a, 0x28, 0x11, 0x37, 0xfd, 0x3d, - 0x28, 0x1f, 0x34, 0x28, 0x13, 0x40, 0x8a, 0x48, 0x1b, 0x38, 0x04, 0x39, - 0x28, 0x1b, 0x3a, 0x40, 0x1b, 0x39, 0xe0, 0x04, 0xa8, 0x15, 0x0f, 0x14, - 0xff, 0x10, 0x06, 0xf0, 0xff, 0x22, 0x21, 0x21, 0x38, 0x50, 0x00, 0x4e, - 0x22, 0x22, 0x23, 0x22, 0x17, 0x21, 0x22, 0x00, 0x22, 0x22, 0x22, 0x06, - 0x20, 0xb5, 0x1b, 0x00, 0x28, 0x00, 0x2b, 0x88, 0x17, 0xe4, 0x28, 0x15, - 0xb9, 0x30, 0xaf, 0xd1, 0x06, 0x08, 0x19, 0xb8, 0x17, 0x79, 0x48, 0x17, - 0x73, 0x00, 0x6b, 0x06, 0x68, 0x97, 0x6f, 0xef, 0x06, 0x20, 0x7f, 0x00, - 0x98, 0x17, 0x6a, 0x05, 0x41, 0x0d, 0x01, 0x78, 0x17, 0x04, 0x70, 0x8d, - 0x01, 0x78, 0x17, 0xc0, 0x04, 0x72, 0x1b, 0x78, 0x17, 0x9a, 0x4e, 0x14, - 0x5c, 0xaf, 0x65, 0x30, 0x4b, 0x51, 0x05, 0xf8, 0x1b, 0x78, 0x17, 0x7c, - 0xc5, 0x74, 0xb9, 0x0f, 0xa4, 0xc2, 0x6c, 0xd0, 0x05, 0xf8, 0x1b, 0x06, - 0x12, 0x71, 0x01, 0x33, 0xff, 0x05, 0x98, 0x1b, 0xb8, 0xb8, 0x17, 0x4f, - 0x06, 0x08, 0x15, 0x07, 0xd4, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x23, 0x22, - 0x22, 0x00, 0x39, 0x51, 0x4f, 0x23, 0x23, 0x24, 0x23, 0x18, 0x00, 0x22, - 0x23, 0x23, 0x23, 0x23, 0xd2, 0x27, 0x0d, 0x08, 0x42, 0x00, 0x00, 0x2c, - 0x28, 0x17, 0xeb, 0x30, 0xac, 0x06, 0x30, 0xf3, 0x30, 0xde, 0x5d, 0x05, - 0xef, 0xa8, 0x8f, 0xaf, 0x75, 0xaa, 0x2f, 0xb1, 0x67, 0x2f, 0xb3, 0x6e, - 0x06, 0x60, 0x7f, 0x6f, 0x06, 0xc0, 0x81, 0x4f, 0x0b, 0x00, 0x62, 0x00, - 0x6c, 0x4f, 0x95, 0x74, 0x4f, 0xa1, 0x05, 0xf1, 0x0d, 0xfb, 0xb8, 0x97, - 0x3f, 0xa3, 0x78, 0x11, 0x05, 0x71, 0x95, 0x79, 0x17, 0xf3, 0x49, 0x17, - 0x78, 0x0f, 0xa0, 0x52, 0x13, 0xe1, 0x05, 0x22, 0x13, 0x93, 0x5e, 0x14, - 0x5c, 0x72, 0x40, 0x5e, 0x06, 0x72, 0xfd, 0x00, 0x00, 0xe0, 0xcf, 0x74, - 0xb9, 0x02, 0x04, 0xac, 0x20, 0x00, 0xfc, 0xc8, 0x06, 0x73, 0x7f, 0x6f, - 0xf5, 0x4f, 0x9b, 0x06, 0x73, 0x81, 0xb3, 0xff, 0x38, 0x0d, 0x72, 0x6b, - 0x27, 0xe3, 0x04, 0x48, 0x05, 0xaa, 0x00, 0x38, 0x17, 0x43, 0x28, 0x19, - 0x33, 0x28, 0x1b, 0x3d, 0x48, 0x13, 0x30, 0x80, 0x28, 0x1d, 0x20, 0x00, - 0x3e, 0x04, 0x31, 0x04, 0x3b, 0x8e, 0x48, 0x2f, 0x42, 0x04, 0x4c, 0x04, - 0xc8, 0x19, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x24, 0x00, 0x23, - 0x1f, 0x14, 0x15, 0x14, 0x24, 0x24, 0x1f, 0x00, 0x24, 0x19, 0x23, 0x24, - 0x24, 0x24, 0x24, 0x71, 0x02, 0x27, 0x78, 0x2e, 0x00, 0x00, 0x2d, 0x48, - 0x17, 0xb9, 0x3f, 0x30, 0xaf, 0x06, 0xe8, 0x17, 0x05, 0xdf, 0xa3, 0x00, - 0x38, 0x17, 0x06, 0x70, 0x81, 0x00, 0x38, 0x17, 0x05, 0xbd, 0xb1, 0xf8, - 0x00, 0xb8, 0x17, 0x05, 0x3e, 0x39, 0x00, 0x98, 0x17, 0x05, 0x5e, 0xb7, - 0x38, 0x17, 0xaf, 0x65, 0x4b, 0x61, 0x51, 0x06, 0x7b, 0x17, 0x38, 0x17, - 0xa4, 0xc2, 0x6c, 0xd0, 0x06, 0x78, 0x19, 0xff, 0x78, 0x17, 0x06, 0x73, - 0x81, 0x93, 0xff, 0x06, 0x38, 0x15, 0x78, 0x17, 0x06, 0x38, 0x11, 0x07, - 0x74, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x00, 0x25, 0x24, 0x20, 0x15, 0x16, - 0x15, 0x25, 0x25, 0x00, 0x20, 0x25, 0x1a, 0x24, 0x25, 0x25, 0x25, 0x25, - 0x00, 0xc6, 0x24, 0xba, 0x19, 0x00, 0x00, 0x2e, 0x64, 0x00, 0xec, 0x30, - 0xcb, 0x30, 0xf3, 0x30, 0xb0, 0x30, 0x05, 0xe9, 0x30, 0xfc, 0x30, 0xc9, - 0x06, 0x28, 0x1d, 0x4c, 0x2e, 0xaf, 0x55, 0x6e, 0x2e, 0xaf, 0x6e, 0x2f, - 0xb1, 0x72, 0x2f, 0xb3, 0x64, 0x06, 0x00, 0x7f, 0x7d, 0xe9, 0x06, 0xc0, - 0x7f, 0xd8, 0x17, 0x06, 0x11, 0x0d, 0x00, 0x58, 0x17, 0x00, 0x11, 0x95, - 0x6f, 0x05, 0xa8, 0x17, 0x80, 0x05, 0x90, 0x7d, 0x00, 0x00, 0x17, 0x52, - 0x81, 0x5b, 0x3c, 0x10, 0x68, 0xd2, 0x52, 0x06, 0x7b, 0x17, 0x08, 0xb8, - 0xcc, 0xb2, 0x03, 0xf8, 0xad, 0x7c, 0xb7, 0xdc, 0xb4, 0x06, 0x58, 0x19, - 0x07, 0x13, 0x7f, 0xf0, 0x73, 0xff, 0x3a, 0x9f, 0x72, 0x6b, 0x05, 0x98, - 0x23, 0x1b, 0x04, 0x35, 0x04, 0x14, 0x3d, 0x04, 0x38, 0x20, 0x03, 0x33, - 0x28, 0x1f, 0x30, 0x04, 0x70, 0x34, 0x05, 0xe8, 0x23, 0x07, 0x91, 0x7f, - 0x10, 0x0e, 0x50, 0x7f, 0x26, 0x25, 0x23, 0x16, 0x00, 0x17, 0x16, 0x26, - 0x26, 0x25, 0x26, 0x1b, 0x25, 0x00, 0x26, 0x26, 0x26, 0x26, 0xa1, 0x2a, - 0x8e, 0x15, 0x00, 0x00, 0x00, 0x2f, 0x64, 0xea, 0x30, 0xda, 0x30, 0x18, - 0xc4, 0x30, 0xaf, 0x06, 0x28, 0x11, 0x78, 0x17, 0x69, 0x00, 0x70, 0xbd, - 0x2e, 0xb3, 0x74, 0x06, 0x6f, 0xb1, 0x06, 0xf0, 0x7f, 0xf8, 0x17, 0x51, - 0x0d, 0x7a, 0x05, 0x8d, 0xbd, 0xda, 0x00, 0x78, 0x17, 0x51, 0x95, 0x63, - 0x05, 0x0f, 0xb3, 0x00, 0x58, 0x17, 0xed, 0x05, 0x82, 0x13, 0x29, 0x01, - 0x52, 0x69, 0x4f, 0x28, 0x83, 0x4b, 0x51, 0x06, 0x78, 0x17, 0x00, 0xac, - 0xb9, 0x98, 0xd3, 0x20, 0xce, 0x6c, 0xd0, 0xf1, 0x06, 0x58, 0x15, 0x07, - 0xf3, 0x7f, 0x05, 0x98, 0x0f, 0x98, 0x17, 0x38, 0x04, 0x3f, 0x28, 0x1b, - 0x70, 0x46, 0x05, 0xc8, 0x0d, 0x0f, 0x94, 0xff, 0x10, 0x06, 0xf0, 0xff, - 0x27, 0x26, 0x24, 0x17, 0x00, 0x18, 0x17, 0x27, 0x27, 0x26, 0x27, 0x1c, - 0x26, 0x00, 0x27, 0x27, 0x27, 0x27, 0x6a, 0x25, 0x28, 0x1c, 0x00, 0x00, - 0x00, 0x30, 0x64, 0xde, 0x30, 0xac, 0x30, 0x15, 0xc0, 0x30, 0xf3, 0x06, - 0x88, 0x17, 0x4d, 0x2f, 0xa3, 0x67, 0x4f, 0xa7, 0x7f, 0x61, 0x2f, 0xb7, - 0x0e, 0x10, 0x7f, 0xd8, 0x17, 0x06, 0x11, 0x0d, 0x00, 0x58, 0x17, 0x05, - 0x91, 0x95, 0x00, 0x38, 0x17, 0xa0, 0x92, 0x13, 0xe1, 0x05, 0x02, 0x13, - 0x6c, 0x9a, 0xa0, 0x52, 0x39, 0x40, 0x4e, 0x06, 0x7b, 0x15, 0x00, 0x00, - 0xc8, 0xb9, 0x00, 0xac, 0x3d, 0xe8, 0xb2, 0x06, 0x78, 0x15, 0x07, 0xb3, - 0x7f, 0x38, 0x07, 0x06, 0x18, 0x17, 0x1c, 0x28, 0x0d, 0x57, 0x33, 0x28, - 0x11, 0x34, 0x28, 0x15, 0x3d, 0x28, 0x0b, 0x05, 0xf8, 0x1d, 0x0e, 0xf4, - 0xff, 0x80, 0x10, 0x06, 0xf0, 0xff, 0x28, 0x27, 0x25, 0x18, 0x19, 0x18, - 0x28, 0x00, 0x28, 0x27, 0x28, 0x1d, 0x27, 0x28, 0x28, 0x28, 0x0a, 0x28, - 0x5b, 0x2a, 0x3c, 0x2f, 0x9e, 0x31, 0x28, 0x17, 0xea, 0x00, 0x30, 0xfb, - 0x30, 0xa8, 0x30, 0xeb, 0x30, 0x71, 0x05, 0x51, 0x8c, 0x54, 0xfd, 0x56, - 0x06, 0x38, 0x17, 0x72, 0x2f, 0xb3, 0x06, 0x79, 0x00, 0x2d, 0x00, 0x45, - 0x2f, 0x39, 0x06, 0x70, 0x7f, 0x73, 0xc5, 0x06, 0x66, 0x18, 0x3f, 0xaf, - 0x70, 0x00, 0x75, 0x48, 0x1d, 0x69, 0x4d, 0x31, 0xbb, 0x71, 0x11, 0x20, - 0x05, 0x41, 0x0f, 0x90, 0x7f, 0x50, 0x81, 0x63, 0x29, 0xa7, 0xb8, 0x1d, - 0xef, 0x31, 0x9b, 0x04, 0xb1, 0x99, 0x50, 0xff, 0xfa, 0xe0, 0x7d, 0x78, - 0x1d, 0x04, 0xf0, 0x7d, 0x38, 0x17, 0x00, 0xcc, 0x91, 0x2d, 0x00, 0xc3, - 0x57, 0x14, 0x5c, 0x80, 0x06, 0x52, 0xff, 0xc8, 0xb9, 0xac, 0xb9, 0x10, - 0xc6, 0x20, 0x01, 0x00, 0xf5, 0xac, 0x54, 0xd6, 0x6d, 0xad, 0x06, 0x5b, - 0x97, 0xf8, 0x05, 0x92, 0x6d, 0x00, 0xf0, 0x7f, 0x78, 0x17, 0xd2, 0x11, - 0x04, 0xb8, 0x1d, 0x20, 0x04, 0x35, 0x8a, 0x28, 0x0d, 0x3f, 0x04, 0x43, - 0x48, 0x07, 0x38, 0x48, 0x17, 0x20, 0xab, 0x48, 0x2d, 0x40, 0x20, 0x0d, - 0x39, 0x28, 0x21, 0x2d, 0x28, 0x1f, 0x0d, 0x14, 0xff, 0x80, 0x10, 0x0e, - 0x70, 0x7f, 0x29, 0x28, 0x26, 0x4a, 0x44, 0x43, 0x29, 0x00, 0x29, 0x28, - 0x29, 0x35, 0x28, 0x29, 0x29, 0x29, 0x00, 0x29, 0x45, 0x28, 0x09, 0x22, - 0x00, 0x00, 0x32, 0x20, 0x64, 0xe2, 0x28, 0x11, 0xc9, 0x30, 0xf4, 0x30, - 0xa3, 0x2a, 0x30, 0xa2, 0x06, 0x48, 0x19, 0x4d, 0x2e, 0xa9, 0x72, 0x2f, - 0xad, 0x6f, 0x2d, 0x00, 0x76, 0x2e, 0xb5, 0x61, 0x06, 0x2d, 0x2f, 0xb0, - 0x7f, 0x65, 0x07, 0x48, 0x17, 0xaf, 0x51, 0x11, 0x77, 0x2f, 0xc5, 0x6e, - 0x40, 0x93, 0x04, 0xbf, 0xb1, 0x00, 0xd8, 0x17, 0x05, 0x11, 0x9b, 0xc0, - 0x00, 0xb8, 0x17, 0x05, 0x32, 0x19, 0xab, 0x83, 0x14, 0x5c, 0x1a, 0x59, - 0x00, 0xe6, 0x74, 0x3e, 0x79, 0x1a, 0x4f, 0x3b, 0x4e, 0x20, 0x49, 0x4e, - 0x05, 0xfb, 0x1d, 0xa8, 0xba, 0x74, 0xb9, 0xc4, 0x1a, 0xb3, 0x14, 0xbc, - 0x06, 0x78, 0x19, 0xd3, 0x7f, 0xeb, 0x06, 0x83, 0x7f, 0xf3, 0xea, 0x63, - 0xff, 0x05, 0xf8, 0x19, 0x00, 0x78, 0x17, 0x3e, 0x28, 0x17, 0x34, 0x20, - 0x05, 0x32, 0xb8, 0x28, 0x2b, 0x4f, 0x04, 0xc8, 0x17, 0x07, 0xb4, 0xff, - 0x10, 0x0e, 0x10, 0x7f, 0x2a, 0x29, 0x27, 0x00, 0x4b, 0x45, 0x44, 0x2a, - 0x2a, 0x2a, 0x2a, 0x36, 0x40, 0x29, 0x30, 0x05, 0x87, 0x26, 0x21, 0x20, - 0x00, 0x00, 0x40, 0x33, 0x28, 0x17, 0xb9, 0x30, 0xaf, 0x30, 0xef, 0x30, - 0x35, 0xde, 0x5d, 0x06, 0x5f, 0x30, 0x38, 0x17, 0x73, 0x2e, 0xa5, 0x6f, - 0x27, 0x07, 0xaa, 0x06, 0xd0, 0x7f, 0x75, 0x4c, 0xad, 0x6f, 0x4f, 0xb9, - 0x61, 0x20, 0x93, 0x74, 0xda, 0x04, 0xcc, 0xa7, 0x7f, 0xff, 0x4f, 0xa0, - 0x6f, 0x58, 0x13, 0x73, 0x28, 0x1d, 0x61, 0xd7, 0x2f, 0xc1, 0x05, 0x98, - 0x97, 0x67, 0x2f, 0xa9, 0x6f, 0x28, 0x83, 0x3f, 0xa5, 0x98, 0x11, 0xee, - 0x31, 0x95, 0x05, 0x19, 0xa7, 0x70, 0x7f, 0xf3, 0x29, 0x03, 0xb8, 0x11, - 0x32, 0x13, 0xfa, 0x81, 0x05, 0x2f, 0xbc, 0xab, 0x83, 0xaf, 0x65, 0xd1, - 0x79, 0x06, 0x72, 0xfd, 0x84, 0x38, 0x17, 0xa4, 0xc2, 0x6c, 0xd0, 0x38, - 0x17, 0xfc, 0xc8, 0xb7, 0x06, 0x93, 0x7f, 0x6b, 0x06, 0x82, 0xff, 0x93, - 0xff, 0x76, 0x2c, 0x21, 0x78, 0x15, 0x32, 0x91, 0x77, 0xe3, 0x2c, 0x31, - 0x05, 0x13, 0x81, 0x38, 0x01, 0x41, 0x28, 0x0d, 0x38, 0x01, 0x30, 0x07, - 0x45, 0x30, 0x28, 0x05, 0x20, 0x00, 0x3e, 0x48, 0x25, 0x30, 0x28, 0x31, - 0x1c, 0x42, 0x04, 0x4c, 0x04, 0xa8, 0x15, 0x07, 0xb4, 0xff, 0x10, 0x0e, - 0x50, 0x7f, 0x2b, 0x2a, 0x00, 0x28, 0x19, 0x1a, 0x19, 0x2b, 0x2b, 0x2b, - 0x2c, 0x20, 0x1f, 0x2a, 0x20, 0x05, 0x2b, 0xa8, 0x27, 0xbf, 0x1a, 0x00, - 0x00, 0x00, 0x34, 0x64, 0xe0, 0x30, 0xeb, 0x30, 0x1a, 0xde, 0x30, 0xf3, - 0x48, 0x1d, 0x06, 0x38, 0x1b, 0x4d, 0x2f, 0x2b, 0x72, 0x2f, 0x00, 0x6d, - 0x2e, 0xa5, 0x6e, 0x47, 0x11, 0x06, 0x3d, 0x2f, 0x06, 0xb0, 0x81, 0xf8, - 0x17, 0xf4, 0x05, 0xf1, 0x0d, 0x00, 0x78, 0x17, 0x05, 0x71, 0x95, 0x00, - 0x58, 0x17, 0xfa, 0x05, 0x82, 0x13, 0x69, 0x64, 0x00, 0x14, 0x5c, 0xfc, - 0x66, 0xaf, 0x65, 0x4b, 0x51, 0x81, 0x06, 0x5b, 0x19, 0x34, 0xbb, 0x74, - 0xb9, 0xcc, 0xb9, 0x38, 0x1b, 0xdc, 0x06, 0x58, 0x19, 0x3f, 0xaf, 0x65, - 0x06, 0xa3, 0x81, 0xf3, 0xff, 0x05, 0xf8, 0x19, 0x1c, 0x04, 0x05, 0x43, - 0x04, 0x40, 0x04, 0x3c, 0x28, 0x0f, 0x3d, 0x06, 0x68, 0x17, 0xc0, 0x06, - 0xf4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x2c, 0x2c, 0x2a, 0x1a, 0x1b, 0x1a, - 0x01, 0x2c, 0x2c, 0x29, 0x2d, 0x20, 0x2c, 0x2c, 0x20, 0x01, 0x00, 0x0a, - 0x31, 0x86, 0x17, 0x00, 0x00, 0x35, 0x64, 0x00, 0xcd, 0x30, 0xcd, 0x30, - 0xc4, 0x30, 0xea, 0x81, 0x02, 0xbb, 0x6c, 0xa1, 0x7b, 0x3a, 0x53, 0x06, - 0x1f, 0xb2, 0x4e, 0xd8, 0x2e, 0xaf, 0x3e, 0xa9, 0x74, 0x2f, 0xb5, 0x06, - 0x3d, 0xb3, 0x4e, 0x00, 0xe9, 0xad, 0x2f, 0x29, 0xe9, 0x40, 0x7f, 0x69, - 0x2f, 0x3b, 0x05, 0xfe, 0x37, 0x41, 0x2d, 0xa7, 0x58, 0x74, 0x4f, 0xad, - 0x6f, 0x29, 0x1d, 0x35, 0xa1, 0x20, 0x00, 0x4b, 0xbd, 0x4d, 0x33, 0x69, - 0x2f, 0xb1, 0x5f, 0x41, 0x30, 0x13, 0x51, 0x27, 0x7a, 0x41, 0x2d, 0xaa, - 0x03, 0xbf, 0xc4, 0x43, 0x2f, 0xab, 0x72, 0x4d, 0xaf, 0x6e, 0x2f, 0xad, - 0x61, 0xde, 0x2d, 0xad, 0x38, 0x23, 0x20, 0xe0, 0x97, 0x3d, 0xc9, 0x58, - 0x31, 0x71, 0xaf, 0x63, 0xad, 0x03, 0x6f, 0xcb, 0x44, 0x40, 0xe7, 0x74, - 0x40, 0x77, 0x31, 0x07, 0x20, 0x2e, 0xab, 0xfb, 0x31, 0x11, 0x38, 0x27, - 0x90, 0x79, 0x38, 0xb1, 0xb2, 0x29, 0x69, 0x2e, 0xd1, 0x03, 0x5f, 0xe1, - 0x03, 0x85, 0x6d, 0x85, 0x6d, 0x28, 0x83, 0x32, 0xff, 0x06, 0x32, 0xfd, - 0x00, 0x00, 0x00, 0x24, 0xb1, 0x24, 0xb1, 0x20, 0xce, 0x00, 0x20, 0x00, - 0x90, 0xc7, 0x58, 0xce, 0x6c, 0xad, 0x8b, 0x06, 0xd3, 0x7f, 0x69, 0x00, - 0xeb, 0x06, 0xe0, 0x7f, 0x61, 0x48, 0x17, 0x3a, 0x9b, 0xc4, 0xb2, 0x13, - 0x04, 0xb8, 0x1b, 0x1d, 0x04, 0x35, 0x28, 0x11, 0x35, 0x04, 0x44, 0x46, - 0x28, 0x13, 0x38, 0x04, 0x39, 0x28, 0x13, 0x30, 0x04, 0x54, 0x32, 0x28, - 0x0d, 0x3e, 0x28, 0x27, 0x3e, 0x28, 0x2f, 0x3d, 0x04, 0x55, 0x4b, 0x40, - 0x15, 0x3e, 0x28, 0x33, 0x40, 0x28, 0x43, 0x33, 0x03, 0xe8, 0x25, 0xc0, - 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x2d, 0x2d, 0x2b, 0x03, 0x03, - 0x04, 0x04, 0x2d, 0x2d, 0x2d, 0x2e, 0x21, 0x20, 0x04, 0x2d, 0x2d, 0x00, - 0x18, 0x30, 0xb9, 0x25, 0x00, 0x00, 0x36, 0x64, 0x00, 0xcb, 0x30, 0xb8, - 0x30, 0xcb, 0x30, 0xfb, 0x30, 0x00, 0xce, 0x30, 0xf4, 0x30, 0xb4, 0x30, - 0xed, 0x30, 0x28, 0xc9, 0x30, 0x05, 0xdd, 0x37, 0x4e, 0x2e, 0xab, 0x7a, - 0x00, 0x68, 0xad, 0x4e, 0xb5, 0x6f, 0x2f, 0xb7, 0x6f, 0x2e, 0xb1, 0x05, - 0xf0, 0x7f, 0x6a, 0x2f, 0x9d, 0x88, 0x56, 0xf3, 0x6f, 0x00, 0x76, 0x05, - 0xe0, 0x87, 0x4f, 0x00, 0x62, 0x3d, 0x00, 0x6c, 0x2f, 0x97, 0x37, 0x1b, - 0x37, 0xfd, 0x38, 0x0d, 0x63, 0x21, 0x0f, 0xbe, 0x90, 0x91, 0x77, 0x04, - 0xc1, 0x19, 0x7f, 0xaf, 0x38, 0x99, 0x3f, 0xab, 0x77, 0xfd, 0x69, 0x17, - 0x00, 0x7e, 0x01, 0x31, 0x15, 0x6a, 0x04, 0xe1, 0x17, 0x70, 0x7f, 0x38, - 0x07, 0xe8, 0x98, 0x01, 0x52, 0x13, 0x71, 0x95, 0xf3, 0x04, 0xa1, 0x95, - 0x0b, 0x4e, 0xfa, 0x00, 0x8b, 0x2b, 0x59, 0xe5, 0x54, 0x57, 0x7f, 0xb7, - 0x60, 0x5f, 0x05, 0xd2, 0xf9, 0x5f, 0xff, 0xc8, 0xb2, 0x1c, 0xc8, 0xe0, - 0x00, 0xac, 0x5c, 0xb8, 0xdc, 0xb4, 0x20, 0x00, 0xfc, 0x7f, 0xc8, 0x06, - 0x3b, 0x97, 0x33, 0x7f, 0x06, 0x93, 0x01, 0x00, 0x33, 0xff, 0x38, 0x1b, - 0x3b, 0x19, 0x32, 0x97, 0x45, 0xe3, 0x05, 0x08, 0x17, 0x38, 0x04, 0x36, - 0x28, 0x1b, 0x33, 0x28, 0x09, 0x44, 0x40, 0x28, 0x0d, 0x34, 0x04, 0x41, - 0x28, 0x21, 0x30, 0x04, 0x45, 0x4f, 0x48, 0x0b, 0x31, 0x04, 0x3b, 0x20, - 0x0b, 0x41, 0x28, 0x27, 0x70, 0x4c, 0x03, 0xe8, 0x0f, 0x07, 0xb4, 0xff, - 0x10, 0x0e, 0xb0, 0x7f, 0x2e, 0x2e, 0x2c, 0x1b, 0x01, 0x1c, 0x1b, 0x2e, - 0x2e, 0x2e, 0x2f, 0x22, 0x20, 0x04, 0x00, 0x2e, 0x2e, 0x0f, 0x28, 0x49, - 0x1f, 0x00, 0x00, 0x3f, 0x37, 0x64, 0x06, 0x78, 0x0f, 0x9f, 0xaf, 0x06, - 0x17, 0x8b, 0x07, 0xb0, 0x7f, 0xf8, 0x17, 0x04, 0xf8, 0x07, 0xfc, 0x01, - 0x78, 0x17, 0x05, 0x79, 0x21, 0x00, 0x58, 0x17, 0x04, 0xb8, 0x09, 0xdf, - 0xff, 0x06, 0xd8, 0x15, 0x00, 0x00, 0x0f, 0x78, 0xb1, 0x0c, 0xbe, 0x06, - 0xd8, 0x17, 0x07, 0xd3, 0x7f, 0x05, 0xb8, 0x13, 0x58, 0x17, 0x1c, 0x3e, - 0x04, 0x32, 0x06, 0x88, 0x15, 0x0f, 0x14, 0xff, 0x10, 0x06, 0xf0, 0xff, - 0x2f, 0x30, 0x00, 0x2d, 0x1c, 0x1d, 0x1c, 0x2f, 0x2f, 0x30, 0x30, 0x00, - 0x23, 0x30, 0x2f, 0x2f, 0x2f, 0x2f, 0xa2, 0x29, 0x04, 0x3e, 0x16, 0x00, - 0x00, 0x38, 0x48, 0x17, 0xa9, 0x30, 0x00, 0xb7, 0x30, 0xd3, 0x30, 0xeb, - 0x30, 0xb9, 0x30, 0x6a, 0xaf, 0x06, 0x08, 0x1d, 0x5f, 0xa3, 0x6f, 0x2f, - 0x2f, 0x69, 0x2f, 0x39, 0x69, 0x8f, 0x2f, 0xa9, 0x73, 0x00, 0x6b, 0x06, - 0x40, 0x7f, 0x06, 0x50, 0x81, 0x00, 0x38, 0x17, 0x05, 0xb1, 0x0d, 0xf0, - 0x00, 0xb8, 0x17, 0x05, 0x31, 0x95, 0x00, 0x58, 0x17, 0x05, 0x92, 0x13, - 0xb0, 0x65, 0x7f, 0x89, 0x02, 0x2f, 0x4f, 0x29, 0x52, 0x9a, 0x4e, 0x06, - 0x78, 0x17, 0xf4, 0x00, 0xbc, 0xdc, 0xc2, 0x44, 0xbe, 0x74, 0xb9, 0xa4, - 0x1f, 0xc2, 0x6c, 0xd0, 0x06, 0x18, 0x1b, 0x07, 0x93, 0x7f, 0xb3, 0xff, - 0x05, 0x98, 0x1d, 0x58, 0x17, 0x57, 0x3e, 0x28, 0x0f, 0x38, 0x28, 0x07, - 0x38, 0x28, 0x1d, 0x05, 0xd8, 0x19, 0x08, 0x51, 0x7f, 0x80, 0x10, 0x0d, - 0x90, 0x7f, 0x30, 0x31, 0x2e, 0x1d, 0x1e, 0x1d, 0x30, 0x00, 0x30, 0x31, - 0x31, 0x24, 0x31, 0x30, 0x30, 0x30, 0x00, 0x30, 0x1f, 0x27, 0xf9, 0x3a, - 0x00, 0x00, 0x39, 0x0d, 0x64, 0xaa, 0x30, 0xe0, 0x06, 0x48, 0x0f, 0x9f, - 0x2f, 0x6d, 0x05, 0xe8, 0x09, 0xfe, 0x07, 0xf0, 0x7f, 0xb8, 0x17, 0x06, - 0x11, 0x0d, 0x00, 0x58, 0x17, 0x05, 0x91, 0x95, 0x00, 0x38, 0x17, 0x05, - 0xb2, 0x13, 0x02, 0x01, 0x91, 0x28, 0x67, 0xaf, 0x65, 0x4b, 0x51, 0x06, - 0x72, 0xff, 0x3c, 0x34, 0xc6, 0x06, 0x58, 0x0f, 0x07, 0xf3, 0x7f, 0x05, - 0x98, 0x09, 0xdf, 0xf9, 0x1e, 0x04, 0x70, 0x3c, 0x05, 0xe8, 0x09, 0x0f, - 0xf4, 0xff, 0x10, 0x06, 0xd0, 0xff, 0x31, 0x32, 0x30, 0x1e, 0x00, 0x1f, - 0x1e, 0x31, 0x31, 0x34, 0x32, 0x25, 0x32, 0x00, 0x31, 0x31, 0x31, 0x31, - 0x19, 0x27, 0x2b, 0x34, 0x10, 0x00, 0x00, 0x3a, 0x28, 0x17, 0xec, 0x30, - 0xf3, 0x30, 0x15, 0xd6, 0x30, 0xeb, 0x06, 0x68, 0x1b, 0x4f, 0x4c, 0x17, - 0x6e, 0x2f, 0xa9, 0x57, 0x75, 0x2f, 0xa9, 0x67, 0x06, 0xa0, 0x7f, 0x6f, - 0x06, 0x40, 0x81, 0xf8, 0x17, 0x05, 0xf1, 0x0d, 0xf5, 0x00, 0x78, 0x17, - 0x05, 0x71, 0x95, 0x00, 0x58, 0x17, 0x3e, 0x2b, 0x6d, 0x82, 0x13, 0x6f, - 0x04, 0xaf, 0xc8, 0x02, 0x65, 0x59, 0x26, 0x4f, 0x21, 0x58, 0x06, 0x7b, - 0x15, 0x00, 0x00, 0x00, 0x24, 0xc6, 0x0c, 0xb8, 0x80, 0xbd, 0x74, 0x78, - 0xb9, 0x06, 0x78, 0x1b, 0x07, 0x53, 0x7f, 0xb1, 0xeb, 0x05, 0xd8, 0x21, - 0x1e, 0x04, 0x40, 0x0a, 0x04, 0x35, 0x04, 0x3d, 0x28, 0x0f, 0x43, 0x20, - 0x09, 0x33, 0xe0, 0x06, 0x08, 0x23, 0x07, 0x94, 0xff, 0x10, 0x0e, 0x50, - 0x7f, 0x32, 0x34, 0x32, 0x1f, 0x21, 0x00, 0x1f, 0x32, 0x32, 0x35, 0x34, - 0x26, 0x34, 0x32, 0x00, 0x32, 0x32, 0x32, 0xd2, 0x24, 0x2e, 0x27, 0x00, - 0x20, 0x00, 0x3b, 0x28, 0x17, 0xea, 0x30, 0xe7, 0x30, 0xfc, 0xee, 0x28, - 0x17, 0x06, 0x5d, 0x31, 0x58, 0x17, 0x6c, 0x06, 0xaf, 0xaf, 0x06, 0xf0, - 0x7f, 0xf8, 0x17, 0x6a, 0xef, 0x2f, 0xbb, 0x05, 0x91, 0x0f, 0x00, 0x98, - 0x17, 0xeb, 0x05, 0x41, 0x95, 0x00, 0x78, 0x17, 0x38, 0xa9, 0x05, 0x32, - 0x15, 0x02, 0x65, 0x59, 0xd6, 0x5e, 0x14, 0x5c, 0x06, 0xb8, 0x17, 0xd4, - 0x7e, 0xb8, 0x06, 0x58, 0x11, 0x9b, 0x97, 0x05, 0xd2, 0x71, 0x00, 0x53, - 0xff, 0x05, 0xd8, 0x0d, 0xd8, 0x17, 0x3b, 0x0e, 0x04, 0x3e, 0x04, 0x32, - 0x06, 0x08, 0x11, 0x0f, 0x74, 0xff, 0x10, 0x06, 0xd0, 0xff, 0x33, 0x00, - 0x33, 0x31, 0x20, 0x20, 0x20, 0x33, 0x33, 0x36, 0x08, 0x33, 0x27, 0x33, - 0x33, 0x20, 0x01, 0xaa, 0x25, 0xa5, 0x00, 0x19, 0x00, 0x00, 0x3c, 0x64, - 0xda, 0x30, 0xf3, 0x35, 0x30, 0xb6, 0x06, 0x68, 0x13, 0x3f, 0xff, 0x50, - 0x4f, 0xad, 0x7a, 0x2f, 0x31, 0xef, 0x0e, 0x50, 0x7f, 0xd8, 0x17, 0x51, - 0x0d, 0x73, 0x05, 0xa1, 0x0d, 0x00, 0x58, 0x17, 0x05, 0x91, 0x95, 0x00, - 0x38, 0x17, 0x84, 0x05, 0xb2, 0x13, 0x54, 0x59, 0x28, 0x84, 0x06, 0x98, - 0x15, 0x00, 0x00, 0x0e, 0x9c, 0xd3, 0x90, 0xc7, 0x06, 0xb8, 0x17, 0x07, - 0x93, 0x7f, 0x06, 0x58, 0x19, 0x1f, 0x03, 0x04, 0x35, 0x04, 0x3d, 0x04, - 0x37, 0x40, 0x05, 0x06, 0x38, 0x19, 0xc0, 0x0e, 0xf4, 0xff, 0x10, 0x06, - 0xf0, 0xff, 0x34, 0x35, 0x36, 0x21, 0x22, 0x21, 0x00, 0x34, 0x34, 0x37, - 0x36, 0x28, 0x35, 0x34, 0x34, 0x00, 0x34, 0x34, 0xd4, 0x25, 0x03, 0x20, - 0x00, 0x00, 0x40, 0x3d, 0x28, 0x17, 0xeb, 0x30, 0xdf, 0x30, 0x30, 0x57, - 0x20, 0xb9, 0x65, 0x06, 0x98, 0x17, 0x72, 0x00, 0x6d, 0x00, 0x27, 0xfd, - 0x06, 0xa8, 0x97, 0x30, 0x7f, 0x06, 0x7e, 0x2f, 0xbf, 0xaf, 0x58, 0x17, - 0x05, 0xd0, 0x8d, 0x54, 0x41, 0x7f, 0xbf, 0x3f, 0x9f, 0x74, 0x2f, 0xa1, - 0x5f, 0xa7, 0xb8, 0x1d, 0x04, 0xf1, 0x9b, 0x00, 0x70, 0x7f, 0x78, 0x1f, - 0x80, 0x04, 0xf1, 0x9b, 0x7c, 0x5f, 0x14, 0x5c, 0xc6, 0x59, 0xb9, 0x04, - 0x8f, 0x86, 0x75, 0x3a, 0x53, 0x06, 0x3f, 0xb3, 0x98, 0xd3, 0x00, 0x84, - 0xb9, 0x20, 0x00, 0xc0, 0xc9, 0x29, 0xbc, 0xeb, 0x0e, 0x52, 0xff, 0x73, - 0xff, 0x38, 0x15, 0x74, 0xa2, 0x8b, 0xf3, 0x62, 0x8b, 0x04, 0xf8, 0x1d, - 0x88, 0x38, 0x17, 0x40, 0x04, 0x3c, 0x48, 0x13, 0x38, 0x04, 0x39, 0xae, - 0x28, 0x13, 0x3a, 0x20, 0x0f, 0x30, 0x20, 0x09, 0x0d, 0xd4, 0xff, 0x10, - 0x0e, 0x70, 0x7f, 0x35, 0x00, 0x36, 0x37, 0x3a, 0x52, 0x50, 0x35, 0x35, - 0x38, 0x00, 0x37, 0x29, 0x36, 0x35, 0x35, 0x35, 0x35, 0x3e, 0x00, 0x29, - 0x0c, 0x28, 0x00, 0x00, 0x3e, 0x64, 0xbf, 0x1d, 0x6c, 0x77, 0x6d, 0x06, - 0x98, 0x15, 0x3f, 0xaf, 0x36, 0x93, 0x6d, 0x46, 0x93, 0x1b, 0x27, 0x00, - 0x79, 0x2f, 0xbd, 0x06, 0x90, 0x7f, 0x69, 0x06, 0x00, 0x7d, 0x00, 0x18, - 0x17, 0xb5, 0x91, 0x0d, 0x6a, 0x05, 0x41, 0x0b, 0x00, 0x97, 0x97, 0x6c, - 0x2f, 0xbf, 0x4c, 0x88, 0x2f, 0x78, 0x61, 0x20, 0x0f, 0x04, 0x3a, 0x3a, - 0x00, 0xd8, 0x17, 0x05, 0x11, 0x9b, 0xe8, 0x6e, 0x77, 0x40, 0x6d, 0x06, - 0x98, 0x15, 0x00, 0x00, 0x04, 0xd5, 0xac, 0xb9, 0x00, 0xa8, 0xba, 0x74, - 0xb9, 0xa4, 0xc2, 0xa4, 0xd0, 0xc7, 0x06, 0x38, 0x1f, 0xb3, 0x7f, 0x73, - 0x00, 0x6b, 0x2f, 0xab, 0x06, 0xd3, 0x7f, 0x05, 0xf8, 0x1f, 0x57, 0x1f, - 0x28, 0x15, 0x38, 0x28, 0x17, 0x3e, 0x28, 0x1d, 0x06, 0x38, 0x1b, 0x07, - 0xb4, 0xff, 0x80, 0x10, 0x0e, 0x30, 0x7f, 0x36, 0x37, 0x38, 0x3b, 0x4b, - 0x51, 0x36, 0x00, 0x36, 0x39, 0x38, 0x2a, 0x37, 0x36, 0x36, 0x36, 0x00, - 0x36, 0xac, 0x1e, 0xcb, 0x5d, 0x00, 0x00, 0x3f, 0x00, 0x64, 0xd7, 0x30, - 0xb9, 0x30, 0xb3, 0x30, 0xd5, 0x38, 0x30, 0xde, 0x20, 0x0d, 0x06, 0x5f, - 0xaf, 0x34, 0x8d, 0x6f, 0x00, 0x76, 0xc5, 0x06, 0x8c, 0xaf, 0x06, 0xd0, - 0x7f, 0x4f, 0x00, 0x62, 0x27, 0x81, 0x61, 0x25, 0x93, 0x6d, 0x74, 0x4f, - 0xa1, 0x51, 0x0d, 0x77, 0x06, 0x48, 0x97, 0x3f, 0xa3, 0x64, 0x2f, 0xb9, - 0xee, 0x90, 0x87, 0x05, 0x11, 0x95, 0x79, 0x17, 0xf3, 0x49, 0x17, 0x78, - 0x0f, 0x05, 0x92, 0x13, 0x6e, 0x01, 0x66, 0xaf, 0x65, 0xd1, 0x79, 0x2b, - 0x59, 0x06, 0x72, 0xff, 0x00, 0x04, 0xd5, 0xa4, 0xc2, 0x54, 0xcf, 0x04, - 0xd5, 0x0d, 0x20, 0x00, 0x80, 0xbd, 0x0e, 0xd3, 0x7f, 0x38, 0x11, 0x72, - 0x6b, 0x25, 0x71, 0xe3, 0x04, 0xa8, 0x09, 0xf8, 0x17, 0x38, 0x0d, 0x3e, - 0x04, 0x32, 0x48, 0x15, 0x10, 0x30, 0x04, 0x4f, 0x28, 0x15, 0x3e, 0x04, - 0x31, 0x04, 0x41, 0x3b, 0x28, 0x17, 0x41, 0x04, 0x42, 0x04, 0x4c, 0x04, - 0xe8, 0x1b, 0xc0, 0x0e, 0xf4, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x37, 0x38, - 0x39, 0x22, 0x23, 0x22, 0x00, 0x37, 0x37, 0x3a, 0x39, 0x2b, 0x38, 0x37, - 0x37, 0x00, 0x37, 0x37, 0x1d, 0x29, 0x25, 0x14, 0x00, 0x00, 0x15, 0x40, - 0x64, 0xed, 0x28, 0x17, 0xc8, 0x06, 0xa8, 0x17, 0x52, 0x2f, 0xa9, 0xff, - 0x37, 0x13, 0x06, 0x78, 0x19, 0x06, 0xf0, 0x7f, 0xd8, 0x17, 0x91, 0x0d, - 0x05, 0x78, 0x19, 0x00, 0x58, 0x17, 0x05, 0x91, 0x95, 0xc0, 0x00, 0x38, - 0x17, 0x05, 0xb2, 0x13, 0x57, 0x7f, 0xaf, 0x65, 0x58, 0x62, 0x81, 0x06, - 0x98, 0x17, 0x5c, 0xb8, 0xa4, 0xc2, 0xa0, 0xd1, 0x38, 0x17, 0x37, 0xfc, - 0xc8, 0x0e, 0xf3, 0x7f, 0x06, 0x38, 0x19, 0x20, 0x28, 0x13, 0x37, 0xff, - 0x06, 0x78, 0x19, 0xc0, 0x0e, 0xf4, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x38, - 0x39, 0x3b, 0x24, 0x25, 0x24, 0x00, 0x38, 0x38, 0x3c, 0x3c, 0x3c, 0x39, - 0x38, 0x38, 0x00, 0x38, 0x38, 0x96, 0x21, 0x3b, 0x1c, 0x00, 0x00, 0x00, - 0x41, 0x64, 0xea, 0x30, 0xe3, 0x30, 0xb6, 0x30, 0x54, 0xf3, 0x06, 0xa8, - 0x17, 0x79, 0x2f, 0x2d, 0x7a, 0x2f, 0x31, 0x6e, 0x00, 0x5b, 0x27, 0x06, - 0x48, 0x97, 0x69, 0x80, 0x7f, 0x07, 0x38, 0x17, 0x6a, 0x48, 0x23, 0x05, - 0x90, 0x8d, 0xfa, 0x00, 0x78, 0x17, 0x30, 0x87, 0x05, 0x31, 0x95, 0x00, - 0x58, 0x17, 0x51, 0x93, 0xe1, 0x05, 0x21, 0x93, 0x81, 0x18, 0x68, 0x5e, - 0x8d, 0x06, 0x7b, 0x13, 0x3f, 0xff, 0xb4, 0xb7, 0x94, 0x7e, 0xc7, 0x06, - 0x78, 0x13, 0x5b, 0x97, 0x91, 0xe9, 0x06, 0x5c, 0x17, 0x93, 0x7f, 0x06, - 0x58, 0x17, 0x4f, 0x2e, 0x04, 0x37, 0x28, 0x0d, 0x3d, 0x06, 0x48, 0x15, - 0x07, 0x34, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x39, 0x00, 0x3a, 0x3a, 0x23, - 0x24, 0x23, 0x39, 0x39, 0x3b, 0x00, 0x3b, 0x3d, 0x3a, 0x39, 0x39, 0x39, - 0x39, 0xd3, 0x40, 0x26, 0x38, 0x17, 0x42, 0x64, 0xb5, 0x30, 0xcf, 0x30, - 0x02, 0x71, 0x51, 0x8c, 0x54, 0xfd, 0x56, 0x06, 0x5d, 0x2f, 0x53, 0x8e, - 0x2f, 0x2b, 0x6b, 0x00, 0x68, 0x2f, 0x31, 0x06, 0xf0, 0x7f, 0x3c, 0xad, - 0x49, 0x8b, 0x40, 0x8d, 0x6f, 0x00, 0x75, 0x2f, 0xbd, 0x69, 0x2f, 0x49, - 0x05, 0x1c, 0xb1, 0xb5, 0x3f, 0xaf, 0x70, 0x20, 0x6f, 0x38, 0x1d, 0x69, - 0x21, 0x09, 0x20, 0x41, 0x11, 0x5b, 0x63, 0x80, 0x91, 0x4a, 0x41, 0x1f, - 0x70, 0x8f, 0x6e, 0x04, 0x0d, 0x43, 0x90, 0x7f, 0xba, 0x50, 0x81, 0x63, - 0x41, 0x09, 0x58, 0x1d, 0x00, 0x10, 0x89, 0x63, 0x21, 0x19, 0x7a, 0xee, - 0x49, 0x49, 0x03, 0x7d, 0xcb, 0x50, 0xff, 0xfa, 0xe0, 0x7d, 0x38, 0xa1, - 0x32, 0x19, 0x6a, 0xdc, 0x28, 0x1b, 0x3e, 0x45, 0x59, 0xa1, 0x05, 0x03, - 0x90, 0x7b, 0x3f, 0xff, 0x28, 0x84, 0x20, 0xc8, 0x54, 0x06, 0xb2, 0xff, - 0xac, 0xc0, 0x58, 0xd5, 0x20, 0x01, 0x00, 0xf5, 0xac, 0x54, 0xd6, 0x6d, - 0xad, 0x06, 0x3f, 0xb0, 0xb6, 0x52, 0x5f, 0x6f, 0x2f, 0xa5, 0x32, 0xf1, - 0xeb, 0x06, 0x0e, 0xb3, 0x33, 0x71, 0x63, 0xf8, 0x21, 0xff, 0x51, 0xd9, - 0x78, 0x19, 0xd2, 0x11, 0x04, 0xb8, 0x1f, 0x20, 0x04, 0x35, 0x8a, 0x28, - 0x11, 0x3f, 0x04, 0x43, 0x48, 0x0b, 0x38, 0x48, 0x1b, 0x20, 0x28, 0x00, - 0x21, 0x28, 0x29, 0x45, 0x40, 0x09, 0x28, 0x00, 0x2f, 0xaf, 0x28, 0x2f, - 0x43, 0x28, 0x21, 0x38, 0x28, 0x41, 0x04, 0x18, 0xa9, 0x07, 0x94, 0xff, - 0x10, 0x0e, 0x50, 0x7f, 0x00, 0x3a, 0x3b, 0x3d, 0x4d, 0x46, 0x46, 0x3a, - 0x3a, 0x00, 0x12, 0x14, 0x37, 0x3b, 0x3a, 0x3a, 0x3a, 0x3a, 0x01, 0x1c, - 0x2c, 0x41, 0x5c, 0x00, 0x00, 0x43, 0x48, 0x17, 0x0f, 0xea, 0x30, 0xf3, - 0x30, 0x06, 0x7d, 0x33, 0x98, 0x17, 0x37, 0x17, 0x06, 0x1f, 0xb3, 0xa8, - 0xf0, 0x7f, 0x65, 0x05, 0xee, 0x3a, 0x4f, 0x48, 0x11, 0x61, 0x00, 0x73, - 0xf7, 0x28, 0x89, 0xb8, 0x13, 0x05, 0x71, 0x0d, 0x7f, 0xaf, 0x6f, 0x40, - 0xfb, 0x00, 0x18, 0x11, 0x04, 0xf1, 0x95, 0xbb, 0x70, 0x7f, 0xf3, 0x4e, - 0x2f, 0xb8, 0x11, 0x32, 0x11, 0xed, 0x05, 0x0e, 0xc5, 0x38, 0x17, 0x30, - 0x97, 0x67, 0x06, 0x72, 0xfd, 0x38, 0x17, 0x60, 0xd5, 0xb0, 0xb9, 0x0f, - 0x20, 0x00, 0xfc, 0xc8, 0x06, 0x9b, 0x97, 0x05, 0xd2, 0x71, 0x00, 0x30, - 0x7f, 0x73, 0xfd, 0xde, 0x98, 0x19, 0x32, 0x93, 0xe3, 0x2b, 0xa1, 0x04, - 0xfb, 0x99, 0x78, 0x01, 0x38, 0x13, 0x3d, 0xd5, 0x28, 0x21, 0x38, 0x17, - 0x4f, 0x28, 0x19, 0x3e, 0x48, 0x27, 0x30, 0x28, 0x33, 0x0c, 0x42, 0x04, - 0x4c, 0x04, 0x0d, 0x94, 0xff, 0x10, 0x0d, 0xf0, 0x7f, 0x3b, 0x3c, 0x00, - 0x3e, 0x25, 0x26, 0x25, 0x3b, 0x3b, 0x3d, 0x3d, 0x00, 0x41, 0x3c, 0x3b, - 0x3b, 0x3b, 0x3b, 0xb6, 0x23, 0x51, 0xb0, 0x27, 0x02, 0x44, 0x28, 0x17, - 0xde, 0x30, 0xe9, 0x06, 0x88, 0x15, 0xaf, 0x5f, 0xaf, 0x6d, 0x2f, 0xb3, - 0x72, 0x06, 0x6b, 0x31, 0x06, 0xf0, 0x7f, 0x00, 0x18, 0x17, 0x05, 0xd1, - 0x0d, 0xf0, 0x00, 0x98, 0x17, 0x05, 0x51, 0x95, 0x00, 0x78, 0x17, 0x05, - 0x72, 0x13, 0x28, 0x84, 0x6c, 0x9a, 0x21, 0xc9, 0x62, 0x06, 0xb8, 0x17, - 0xc8, 0xb9, 0x7c, 0xb7, 0x06, 0xd8, 0x17, 0xeb, 0x07, 0x73, 0x7f, 0x05, - 0xf8, 0x13, 0x78, 0x17, 0x3c, 0x28, 0x1b, 0x40, 0x06, 0x28, 0x13, 0x0f, - 0x34, 0xff, 0x80, 0x10, 0x06, 0xf0, 0xff, 0x3c, 0x3d, 0x3f, 0x26, 0x27, - 0x26, 0x3c, 0x00, 0x3c, 0x3e, 0x3e, 0x3e, 0x3d, 0x3c, 0x3c, 0x3c, 0x00, - 0x3c, 0xda, 0x25, 0xac, 0x23, 0x00, 0x00, 0x45, 0x80, 0x28, 0x17, 0xf3, - 0x30, 0xaf, 0x30, 0xc8, 0x30, 0xda, 0x02, 0x30, 0xc6, 0x30, 0xeb, 0x30, - 0xd6, 0x20, 0x03, 0xaf, 0x11, 0x30, 0x02, 0x5e, 0x05, 0xbf, 0xaf, 0x74, - 0x00, 0x2e, 0x2f, 0x29, 0x54, 0x50, 0x2f, 0xa9, 0x74, 0x2f, 0xad, 0x72, - 0x2f, 0x39, 0x62, 0x00, 0x58, 0x75, 0x2c, 0x33, 0x67, 0x05, 0x8d, 0x2f, - 0x3f, 0x99, 0x74, 0x00, 0x2d, 0xad, 0x20, 0x83, 0xe9, 0xa0, 0x83, 0x6f, - 0x05, 0x40, 0x85, 0x3f, 0x99, 0x6e, 0x2c, 0x31, 0xf5, 0x38, 0x15, 0x06, - 0x31, 0x03, 0x50, 0x7f, 0x31, 0x7f, 0x69, 0x41, 0x81, 0x72, 0x2d, 0xa3, - 0xbc, 0x71, 0x7f, 0x6f, 0x05, 0x6e, 0xaf, 0x50, 0x7f, 0x00, 0x11, 0xff, - 0x05, 0x30, 0x7f, 0x23, 0x57, 0x03, 0x7c, 0x5f, 0x97, 0x5f, 0x21, 0x58, - 0x05, 0xb2, 0xf3, 0xbf, 0xff, 0x00, 0xc1, 0xc0, 0xb8, 0xd2, 0x98, 0xd3, - 0x4c, 0xd1, 0x00, 0x74, 0xb9, 0x80, 0xbd, 0x74, 0xb9, 0x6c, 0xd0, 0xb7, - 0x05, 0xf8, 0x21, 0x53, 0xa2, 0xfd, 0x06, 0x33, 0x81, 0x53, 0x48, 0x01, - 0x06, 0x91, 0xff, 0x38, 0x17, 0x40, 0x3d, 0x28, 0x11, 0x42, 0x04, 0x2d, - 0x00, 0x1f, 0x04, 0x51, 0x35, 0x28, 0x09, 0x35, 0x28, 0x23, 0x31, 0x04, - 0x43, 0x28, 0x29, 0x70, 0x33, 0x04, 0xe8, 0x13, 0x07, 0x54, 0xff, 0x10, - 0x0e, 0xd0, 0x7f, 0x3d, 0x40, 0x3c, 0x53, 0x00, 0x4a, 0x4a, 0x3d, 0x3d, - 0x40, 0x3f, 0x3f, 0x40, 0x00, 0x3d, 0x3d, 0x3d, 0x3d, 0xa1, 0x2a, 0x8e, - 0x15, 0x14, 0x00, 0x00, 0x46, 0x28, 0x17, 0xe9, 0x28, 0x15, 0xd5, 0x30, - 0xea, 0x06, 0x7d, 0x31, 0x3f, 0xaf, 0x3f, 0xab, 0x74, 0x2e, 0xb1, 0x76, - 0x0e, 0x20, 0x7f, 0x4f, 0xad, 0x29, 0x05, 0x6c, 0x2f, 0x9d, 0x73, 0x48, - 0x19, 0xb1, 0x0d, 0x77, 0x05, 0x4e, 0xc2, 0xb7, 0x7f, 0xaf, 0x6f, 0x2f, - 0xaf, 0x3f, 0xab, 0x64, 0x2f, 0xbb, 0xd0, 0x87, 0x04, 0xd1, 0x95, 0xad, - 0x70, 0x7f, 0xf3, 0x48, 0x9d, 0x64, 0x40, 0x83, 0x52, 0x13, 0xe1, 0x05, - 0x42, 0x13, 0x00, 0x28, 0x84, 0xc9, 0x62, 0x58, 0x62, 0x2b, 0x59, 0x80, - 0x06, 0x72, 0xff, 0xac, 0xc0, 0x7c, 0xb7, 0xa0, 0xd1, 0x04, 0x63, 0xd5, - 0x05, 0xf8, 0x0f, 0x08, 0x53, 0x7f, 0x20, 0x00, 0x28, 0x2f, 0x39, 0x52, - 0x91, 0xa8, 0x38, 0x2f, 0x29, 0x05, 0x48, 0x17, 0x40, 0x28, 0x1b, 0x42, - 0x04, 0x3e, 0x08, 0x04, 0x32, 0x04, 0x41, 0x28, 0x21, 0x30, 0x04, 0x4f, - 0x0a, 0x04, 0x20, 0x00, 0x3e, 0x28, 0x1b, 0x3b, 0x28, 0x33, 0x41, 0xb8, - 0x28, 0x31, 0x4c, 0x04, 0xa8, 0x1f, 0x0e, 0xf4, 0xff, 0x10, 0x06, 0xf0, - 0xff, 0x3e, 0x3e, 0x40, 0x00, 0x27, 0x28, 0x27, 0x3e, 0x3e, 0x3f, 0x40, - 0x40, 0x20, 0x3e, 0x3e, 0x20, 0x01, 0xa5, 0x24, 0xb9, 0x20, 0x00, 0x00, - 0x00, 0x47, 0x64, 0x17, 0x53, 0xaa, 0x30, 0xbb, 0x00, 0x30, 0xc1, 0x30, - 0xa2, 0x30, 0x71, 0x51, 0x8c, 0x15, 0x54, 0xfd, 0x56, 0x05, 0xfd, 0x35, - 0x4e, 0x2f, 0x97, 0x72, 0x2f, 0xad, 0x55, 0x68, 0x2f, 0x2f, 0x4f, 0x2f, - 0xa7, 0x73, 0x4f, 0x33, 0x69, 0x2f, 0xc5, 0xd5, 0x05, 0x77, 0x97, 0x30, - 0x73, 0xe9, 0x40, 0x73, 0x65, 0x2d, 0x35, 0x64, 0x2f, 0xa7, 0x55, 0x2d, - 0x60, 0x95, 0x64, 0x2d, 0x45, 0x41, 0x47, 0xb5, 0x6e, 0x4f, 0x4d, 0xb1, - 0x04, 0x77, 0x97, 0x70, 0x2f, 0x9f, 0x38, 0x1d, 0x69, 0x00, 0x6b, 0x2f, - 0xb9, 0xad, 0x70, 0x7b, 0x6f, 0xa1, 0x0d, 0x65, 0x2f, 0xd3, 0xd0, 0x8b, - 0x6e, 0x04, 0x00, 0x7f, 0xb5, 0x50, 0x81, 0x63, 0x2f, 0xbf, 0x57, 0x9f, - 0x6c, 0x28, 0xaf, 0x27, 0x81, 0x93, 0x7d, 0x7a, 0x41, 0x93, 0x38, 0xb9, - 0x3f, 0xd7, 0x3f, 0xd9, 0x3e, 0x65, 0x72, 0x68, 0x51, 0x7d, 0x61, 0x28, - 0xdb, 0x31, 0x3d, 0x91, 0x2d, 0x01, 0x71, 0xbf, 0x50, 0xff, 0xfa, 0x00, - 0x00, 0x7d, 0xfe, 0x52, 0x0d, 0x72, 0x0b, 0x70, 0x91, 0x71, 0x1d, 0x3e, - 0xd7, 0x02, 0x30, 0x6d, 0x00, 0x1f, 0xff, 0x17, 0x00, 0x53, 0x65, 0x59, - 0x5e, 0x58, 0xaf, 0x68, 0x2d, 0x00, 0x00, 0x3f, 0x96, 0x70, 0x51, 0x3e, - 0x79, 0x1a, 0x04, 0x4f, 0x3b, 0x4e, 0x49, 0x4e, 0x05, 0x93, 0x0b, 0x81, - 0xbd, 0x00, 0x24, 0xc6, 0x38, 0xc1, 0xf0, 0xd2, 0x7c, 0xc5, 0x00, 0x20, - 0x00, 0xf5, 0xac, 0x54, 0xd6, 0x6d, 0xad, 0xea, 0x06, 0x13, 0x7f, 0x72, - 0xeb, 0xb3, 0x7f, 0xeb, 0x06, 0x23, 0x7f, 0x61, 0x63, 0x6f, 0xe2, 0xde, - 0x62, 0x41, 0x3a, 0xa5, 0x6f, 0xc1, 0xf3, 0x78, 0x37, 0xd2, 0x31, 0x02, - 0xb8, 0x3d, 0x20, 0x22, 0x04, 0x35, 0x28, 0x0d, 0x3f, 0x04, 0x43, 0x48, - 0x07, 0x38, 0xaa, 0x48, 0x17, 0x20, 0x28, 0x2d, 0x35, 0x28, 0x25, 0x35, - 0x28, 0x31, 0x3d, 0xaa, 0x68, 0x27, 0x1e, 0x28, 0x33, 0x35, 0x28, 0x3d, - 0x38, 0x28, 0x35, 0x2d, 0x2e, 0x00, 0x10, 0x48, 0x33, 0x3d, 0x40, 0x0d, - 0x0a, 0xd4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x3f, 0x00, 0x2f, 0x33, 0x4c, - 0x3b, 0x45, 0x3f, 0x3f, 0x2f, 0x00, 0x35, 0x38, 0x2f, 0x3f, 0x3f, 0x3f, - 0x3f, 0x96, 0x00, 0x1e, 0xc0, 0x1f, 0x00, 0x00, 0x48, 0x64, 0xb9, 0x00, - 0x30, 0xe2, 0x30, 0xec, 0x30, 0xf3, 0x30, 0xb9, 0x11, 0x30, 0xaf, 0x30, - 0x06, 0x3d, 0x33, 0x53, 0x00, 0x6d, 0x2f, 0xa9, 0xaa, 0x36, 0x55, 0x6e, - 0x2f, 0x33, 0x6b, 0x0e, 0x00, 0x7f, 0x4f, 0x48, 0x11, 0x61, 0xbe, 0x29, - 0x11, 0x74, 0x4f, 0xa7, 0x05, 0xf1, 0x0d, 0x7f, 0xaf, 0x37, 0xdd, 0x3f, - 0xab, 0x64, 0xee, 0x2f, 0xbb, 0x05, 0xb0, 0x87, 0x70, 0x7f, 0xf3, 0x29, - 0x7b, 0x78, 0x11, 0x05, 0xb2, 0x13, 0xaf, 0x00, 0x65, 0x69, 0x64, 0xf1, - 0x68, 0xaf, 0x65, 0x4b, 0x40, 0x51, 0x06, 0x32, 0xfd, 0x00, 0x00, 0xa4, - 0xc2, 0xb0, 0xba, 0x00, 0x0c, 0xb8, 0xa4, 0xc2, 0x6c, 0xd0, 0x20, 0x00, - 0x3b, 0xfc, 0xc8, 0x0f, 0x13, 0x7f, 0x77, 0xf9, 0x32, 0x93, 0xe3, 0x2f, - 0x43, 0x02, 0xb7, 0xf3, 0x82, 0x01, 0x3f, 0xe5, 0x21, 0x04, 0x3c, 0x04, - 0x3e, 0x28, 0x11, 0x35, 0xb5, 0x28, 0x01, 0x41, 0x48, 0x15, 0x38, 0x05, - 0x3e, 0x48, 0x25, 0x30, 0x28, 0x31, 0x1c, 0x42, 0x04, 0x4c, 0x02, 0xe7, - 0xf9, 0x10, 0x00, 0xd4, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x40, 0x3f, 0x00, - 0x41, 0x28, 0x29, 0x28, 0x40, 0x40, 0x41, 0x41, 0x00, 0x43, 0x3f, 0x40, - 0x40, 0x40, 0x40, 0xf5, 0x26, 0x04, 0xca, 0x16, 0x00, 0x00, 0x49, 0x28, - 0x17, 0xbf, 0x30, 0x00, 0xf4, 0x30, 0xed, 0x30, 0xdd, 0x30, 0xea, 0x30, - 0x1a, 0x30, 0x57, 0xb9, 0x04, 0x5f, 0x14, 0x00, 0xc8, 0x17, 0x74, 0x2f, - 0x8f, 0x76, 0xb7, 0x2f, 0x9d, 0x6f, 0x2f, 0x37, 0x38, 0x21, 0x27, 0x06, - 0xe0, 0x7f, 0x05, 0xdd, 0xaf, 0xb7, 0x97, 0xd5, 0x3f, 0x8d, 0x31, 0x0d, - 0x77, 0x05, 0xa0, 0x8d, 0x54, 0x2f, 0xff, 0x72, 0x4f, 0xf7, 0x7e, 0x74, - 0x4f, 0x89, 0x3f, 0xff, 0x98, 0x1d, 0x05, 0x11, 0x9b, 0x00, 0x70, 0x7f, - 0x58, 0x1f, 0x74, 0x20, 0x00, 0xe1, 0x04, 0xe1, 0x9b, 0xaf, 0x65, 0x54, - 0x58, 0x2b, 0x00, 0x59, 0x57, 0x7f, 0xe2, 0x6c, 0x14, 0x5c, 0xb9, 0x04, - 0x8f, 0x86, 0x75, 0x3a, 0x53, 0x05, 0xf8, 0x17, 0xc0, 0xd0, 0x00, 0x0c, - 0xbe, 0x5c, 0xb8, 0xf4, 0xd3, 0x20, 0x00, 0x0e, 0xc0, 0xc9, 0x29, 0xbc, - 0x07, 0x13, 0x7f, 0x06, 0xf3, 0xff, 0x38, 0x19, 0x74, 0xb4, 0xa2, 0x95, - 0xf3, 0x62, 0x95, 0x04, 0x58, 0x21, 0x21, 0x27, 0xf9, 0x30, 0x04, 0x15, - 0x32, 0x04, 0x40, 0x28, 0x1d, 0x3f, 0x48, 0x21, 0x4c, 0x48, 0x1f, 0x15, - 0x38, 0x04, 0x39, 0x28, 0x1f, 0x3a, 0x20, 0x17, 0x30, 0x20, 0x09, 0xc0, - 0x0d, 0xb4, 0xff, 0x10, 0x0d, 0xd0, 0x7f, 0x41, 0x41, 0x42, 0x3c, 0x53, - 0x52, 0x84, 0x20, 0x05, 0x42, 0x44, 0x41, 0x41, 0x20, 0x01, 0x09, 0x20, - 0x04, 0xda, 0x1d, 0x00, 0x00, 0x4a, 0x28, 0x17, 0xf4, 0x30, 0x04, 0xa7, - 0x30, 0xeb, 0x30, 0xc9, 0x28, 0x1b, 0xd5, 0x30, 0x0b, 0xb9, 0x30, 0xaf, - 0x30, 0x05, 0xdd, 0x37, 0x53, 0x28, 0x13, 0x36, 0x99, 0x5c, 0x64, 0x2f, - 0xb3, 0x6f, 0x28, 0x1f, 0x05, 0xff, 0xb3, 0x06, 0xf0, 0x7f, 0x4f, 0x00, - 0x55, 0x62, 0x2f, 0x97, 0x61, 0x2f, 0x95, 0x74, 0x4f, 0xa7, 0x77, 0xa1, - 0x0d, 0x7e, 0x77, 0x05, 0x2d, 0xc1, 0xb8, 0x97, 0x3f, 0xab, 0x78, 0x11, - 0x05, 0x71, 0x95, 0x79, 0x17, 0xf3, 0xe0, 0x49, 0x17, 0x78, 0x0f, 0x05, - 0x92, 0x13, 0xaf, 0x65, 0xf4, 0x7e, 0x14, 0x00, 0x5c, 0xb7, 0x5f, 0x1b, - 0x6d, 0x2b, 0x59, 0xaf, 0x18, 0x65, 0x4b, 0x51, 0x05, 0xd2, 0xfd, 0x38, - 0x17, 0xa0, 0xbc, 0x74, 0x00, 0xb9, 0xe4, 0xb4, 0x6d, 0xb8, 0xa4, 0xc2, - 0x6c, 0x07, 0xd0, 0x20, 0x00, 0xfc, 0xc8, 0x05, 0xff, 0xaf, 0x08, 0x13, - 0x7f, 0x38, 0x19, 0x58, 0x72, 0x6b, 0x2f, 0xe3, 0x04, 0x88, 0x11, 0x78, - 0x17, 0x32, 0x04, 0x35, 0xac, 0x28, 0x15, 0x34, 0x28, 0x11, 0x3e, 0x28, - 0x1f, 0x38, 0x13, 0x30, 0x04, 0x45, 0x4f, 0x28, 0x13, 0x3e, 0x04, 0x31, - 0x28, 0x25, 0x30, 0x28, 0x25, 0x70, 0x42, 0x28, 0x2b, 0x10, 0x04, 0x74, - 0xff, 0x10, 0x06, 0xf0, 0xff, 0x42, 0x42, 0x43, 0x29, 0x22, 0x2a, 0x29, - 0x20, 0x05, 0x43, 0x42, 0x42, 0x30, 0x01, 0x6a, 0x00, 0x28, 0x14, 0x2b, - 0x00, 0x00, 0x4b, 0x64, 0xbf, 0x0e, 0x30, 0xf3, 0x30, 0xdc, 0x28, 0x11, - 0x05, 0xf5, 0x0f, 0x9e, 0xaf, 0x61, 0x3e, 0x00, 0x6d, 0x27, 0x1b, 0x38, - 0x13, 0x0e, 0x30, 0x7f, 0xd8, 0x17, 0x91, 0x0d, 0x77, 0xf8, 0x05, 0x6e, - 0xb6, 0x00, 0x58, 0x17, 0x05, 0x91, 0x95, 0x00, 0x38, 0x17, 0x05, 0xb2, - 0x13, 0x66, 0x57, 0xe2, 0x10, 0x6c, 0x2b, 0x59, 0x06, 0x72, 0xfd, 0x00, - 0x00, 0xd0, 0xd0, 0x0f, 0xf4, 0xbc, 0x04, 0xd5, 0x06, 0x18, 0x0f, 0x08, - 0x33, 0x7f, 0x05, 0xb8, 0x0f, 0x7f, 0xff, 0x5e, 0x22, 0x28, 0x05, 0x3c, - 0x28, 0x01, 0x06, 0x38, 0x13, 0x0f, 0x34, 0xff, 0x10, 0x06, 0xf0, 0xff, - 0x43, 0x04, 0x43, 0x44, 0x2a, 0x2b, 0x2a, 0x20, 0x05, 0x44, 0x45, 0x20, - 0x43, 0x43, 0x20, 0x01, 0x7c, 0x25, 0x76, 0x1d, 0x00, 0x20, 0x00, 0x4c, - 0x28, 0x17, 0xbf, 0x30, 0xfc, 0x30, 0xeb, 0x20, 0x30, 0xb9, 0x20, 0x07, - 0xf3, 0x30, 0x71, 0x51, 0x8c, 0x15, 0x54, 0xfd, 0x56, 0x05, 0xf8, 0x17, - 0x74, 0x2f, 0x2f, 0x72, 0x4f, 0x31, 0x78, 0x61, 0x2e, 0xb5, 0x06, 0x18, - 0x97, 0x06, 0xb0, 0x7f, 0x3f, 0xaf, 0x70, 0x00, 0x75, 0xbd, 0x48, 0x1d, - 0x69, 0x4d, 0x2b, 0x05, 0xd1, 0x11, 0x90, 0x7f, 0x50, 0x81, 0x63, 0x29, - 0xa7, 0xb6, 0x5f, 0xb7, 0x6c, 0x05, 0x40, 0x8b, 0x50, 0xff, 0xfa, 0x00, - 0x00, 0x7d, 0x59, 0x23, 0x72, 0xa8, 0x62, 0x1b, 0x69, 0x49, 0x37, 0xe1, - 0x04, 0x22, 0x1d, 0x91, 0x97, 0x7c, 0x06, 0x97, 0xaf, 0x65, 0x66, 0x57, - 0x06, 0x12, 0xf9, 0x5f, 0xff, 0xc0, 0x00, 0xd0, 0xc0, 0xd0, 0x74, 0xb9, - 0x20, 0x00, 0xf5, 0x06, 0xac, 0x54, 0xd6, 0x6d, 0xad, 0x06, 0x5b, 0x97, - 0x71, 0x63, 0x6a, 0xef, 0x2f, 0xb9, 0x06, 0x3c, 0x17, 0x31, 0xe5, 0xe1, - 0x41, 0xe5, 0x32, 0x7b, 0x58, 0x1b, 0xd2, 0x13, 0x88, 0x04, 0x98, 0x21, - 0x20, 0x04, 0x35, 0x28, 0x0f, 0x3f, 0x04, 0x43, 0xaa, 0x48, 0x09, 0x38, - 0x48, 0x19, 0x20, 0x48, 0x2d, 0x42, 0x28, 0x31, 0x40, 0x8f, 0x48, 0x19, - 0x30, 0x04, 0x3d, 0x04, 0x88, 0x1b, 0x0e, 0xf4, 0xff, 0x10, 0x06, 0xf0, - 0xff, 0x28, 0x0f, 0x10, 0x4e, 0x39, 0x47, 0x28, 0x15, 0x45, 0x39, 0x44, - 0x44, 0x80, 0x20, 0x01, 0xab, 0x27, 0xf6, 0x22, 0x00, 0x00, 0x4d, 0x09, - 0x64, 0xc8, 0x30, 0xe0, 0x28, 0x13, 0xaf, 0x30, 0x06, 0x7d, 0x31, 0x56, - 0x54, 0x2f, 0xa9, 0x6d, 0x2f, 0x2d, 0x6b, 0x06, 0x6d, 0xb0, 0x06, 0xf0, - 0x7f, 0x4f, 0xbd, 0x48, 0x11, 0x61, 0x49, 0x15, 0x3f, 0xa7, 0x05, 0xf1, - 0x0d, 0x7f, 0xaf, 0x6f, 0x2f, 0xaf, 0xbb, 0x3f, 0xab, 0x64, 0x2f, 0xbb, - 0x05, 0xb0, 0x87, 0x70, 0x7f, 0xf3, 0x2a, 0x11, 0x98, 0x11, 0x80, 0x05, - 0x92, 0x13, 0x58, 0x62, 0x28, 0x67, 0xaf, 0x65, 0x4b, 0x40, 0x51, 0x06, - 0x72, 0xff, 0xb0, 0xd1, 0xa4, 0xc2, 0x6c, 0xd0, 0x0e, 0x20, 0x00, 0xfc, - 0xc8, 0x0e, 0xf3, 0x7f, 0x78, 0x11, 0x32, 0x8d, 0xe3, 0xe0, 0x2f, 0x3f, - 0x04, 0x98, 0x0b, 0xbf, 0xff, 0x22, 0x04, 0x3e, 0x04, 0x3c, 0xd5, 0x28, - 0x19, 0x38, 0x0f, 0x4f, 0x28, 0x11, 0x3e, 0x48, 0x1f, 0x30, 0x48, 0x0f, - 0x70, 0x4c, 0x04, 0x88, 0x0d, 0x0f, 0x94, 0xff, 0x10, 0x06, 0xf0, 0xff, - 0x45, 0x45, 0x4b, 0x2c, 0x00, 0x2d, 0x2c, 0x45, 0x45, 0x49, 0x47, 0x47, - 0x45, 0x40, 0x45, 0x20, 0x01, 0x2d, 0x28, 0x6b, 0x3c, 0x00, 0x00, 0x41, - 0x4e, 0x28, 0x17, 0xa5, 0x30, 0xfc, 0x30, 0xe9, 0x06, 0xa8, 0x17, 0x7f, - 0x75, 0x47, 0x17, 0x06, 0x68, 0x16, 0x48, 0x97, 0x06, 0xb0, 0x81, 0xf8, - 0x17, 0x05, 0xf1, 0x0d, 0x00, 0x78, 0x17, 0xe1, 0x05, 0x71, 0x95, 0x00, - 0x58, 0x17, 0x05, 0x92, 0x13, 0xfe, 0x56, 0xc9, 0x62, 0x06, 0x7b, 0x13, - 0x86, 0x3f, 0xff, 0x34, 0xd2, 0x7c, 0xb7, 0x06, 0x98, 0x15, 0x5b, 0x97, - 0x65, 0xf5, 0x06, 0xa3, 0x81, 0x73, 0xff, 0x06, 0x58, 0x15, 0x38, 0x17, - 0x43, 0x28, 0x07, 0x4c, 0x06, 0x88, 0x19, 0xc0, 0x07, 0x14, 0xff, 0x10, - 0x0e, 0xd0, 0x7f, 0x46, 0x46, 0x4c, 0x2e, 0x2e, 0x2d, 0x01, 0x46, 0x46, - 0x47, 0x49, 0x48, 0x46, 0x46, 0x20, 0x01, 0x0c, 0x8a, 0x26, 0xbf, 0x1a, - 0x2e, 0xad, 0x28, 0x17, 0xf4, 0x30, 0x14, 0xa7, 0x30, 0xea, 0x06, 0xa8, - 0x17, 0x76, 0x2e, 0xb1, 0x72, 0x00, 0x7b, 0x27, 0x06, 0x8c, 0xaf, 0x50, - 0x7f, 0x06, 0x78, 0x98, 0xf8, 0x17, 0x77, 0x05, 0xe0, 0x8d, 0x00, 0x78, - 0x17, 0xe0, 0x05, 0x71, 0x15, 0x00, 0x58, 0x17, 0x05, 0x91, 0x93, 0x79, - 0x72, 0xf4, 0x7e, 0x14, 0x40, 0x5c, 0x06, 0x98, 0x19, 0xb8, 0xd2, 0xa0, - 0xbc, 0xac, 0xb9, 0xf0, 0x06, 0x98, 0x19, 0x06, 0xf2, 0xff, 0x73, 0xff, - 0x06, 0x98, 0x17, 0x32, 0x04, 0x35, 0x04, 0x70, 0x40, 0x06, 0xa8, 0x17, - 0x07, 0x54, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x47, 0x48, 0x4f, 0x2f, 0x00, - 0x2f, 0x2e, 0x47, 0x47, 0x4f, 0x4b, 0x46, 0x48, 0x00, 0x47, 0x47, 0x47, - 0x47, 0x6e, 0x28, 0x8a, 0x19, 0x00, 0x00, 0x00, 0x50, 0x64, 0xc1, 0x30, - 0xe5, 0x30, 0x15, 0xe1, 0x30, 0xcb, 0x06, 0xa8, 0x17, 0x79, 0x2f, 0xaf, - 0x6d, 0x2e, 0xb5, 0x5d, 0x6e, 0x06, 0x48, 0x1b, 0x54, 0x4f, 0x2b, 0x70, - 0x81, 0x07, 0x18, 0x17, 0x6a, 0x05, 0xe0, 0x8b, 0xf5, 0x00, 0x78, 0x17, - 0x90, 0x87, 0x04, 0xd9, 0xb1, 0x00, 0x58, 0x17, 0x69, 0x42, 0x13, 0xe9, - 0x05, 0x21, 0x91, 0x08, 0xcb, 0x79, 0x0e, 0x66, 0x06, 0x98, 0x15, 0x00, - 0x00, 0x9c, 0x1a, 0xd2, 0x58, 0xba, 0x06, 0x98, 0x15, 0x3f, 0xaf, 0x6a, - 0x2f, 0x9d, 0x65, 0xf0, 0x06, 0x82, 0xff, 0x71, 0xeb, 0x33, 0xff, 0x06, - 0x38, 0x1b, 0x22, 0x04, 0x4e, 0x04, 0x5c, 0x3c, 0x28, 0x19, 0x3d, 0x06, - 0x68, 0x19, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x48, 0x49, 0x00, - 0x4a, 0x2b, 0x2c, 0x2b, 0x48, 0x48, 0x46, 0x46, 0x00, 0x49, 0x49, 0x48, - 0x48, 0x48, 0x48, 0xa3, 0x28, 0x00, 0x99, 0x2e, 0x00, 0x00, 0x51, 0x64, - 0xc8, 0x30, 0x00, 0xa5, 0x30, 0xf4, 0x30, 0xa1, 0x30, 0x71, 0x51, 0x0a, - 0x8c, 0x54, 0xfd, 0x56, 0x06, 0x3f, 0xaf, 0x75, 0x2f, 0xb1, 0x61, 0xf6, - 0x06, 0xac, 0xaf, 0x38, 0x15, 0x06, 0x90, 0x81, 0x3f, 0xaf, 0x70, 0x29, - 0x19, 0x38, 0x1d, 0x69, 0x23, 0x00, 0x6b, 0x4f, 0xab, 0x75, 0x00, 0x77, - 0x05, 0x81, 0x11, 0x90, 0x7f, 0xbd, 0x50, 0x81, 0x63, 0x28, 0xa3, 0x98, - 0x1d, 0x05, 0x11, 0x9b, 0x50, 0xff, 0xfa, 0xe0, 0x7d, 0xd0, 0x58, 0x1d, - 0x32, 0x19, 0xe1, 0x04, 0xef, 0xc8, 0x79, 0x72, 0xe6, 0x74, 0xc0, 0x06, - 0x72, 0xfb, 0x3f, 0xff, 0x2c, 0xd2, 0x14, 0xbc, 0x20, 0x00, 0x02, 0xf5, - 0xac, 0x54, 0xd6, 0x6d, 0xad, 0x06, 0x72, 0xff, 0x65, 0xfa, 0x06, 0xa3, - 0x81, 0x73, 0xff, 0x78, 0x13, 0xd2, 0x0b, 0x05, 0x18, 0x19, 0x20, 0x28, - 0x13, 0x41, 0x0a, 0x04, 0x3f, 0x04, 0x43, 0x48, 0x0b, 0x38, 0x48, 0x1b, - 0x20, 0x8e, 0x28, 0x2d, 0x4b, 0x04, 0x32, 0x28, 0x25, 0x0d, 0x34, 0xff, - 0x10, 0x0e, 0xd0, 0x7f, 0x49, 0x04, 0x47, 0x4d, 0x51, 0x47, 0x48, 0x28, - 0x13, 0x4a, 0x3a, 0x00, 0x47, 0x49, 0x49, 0x49, 0x49, 0xc6, 0x24, 0x2a, - 0x40, 0x43, 0x2e, 0x2d, 0x64, 0xa6, 0x30, 0xc9, 0x30, 0xe0, 0x0a, 0x30, - 0xeb, 0x30, 0xc8, 0x06, 0x68, 0x19, 0x55, 0x2e, 0xa1, 0x6d, 0xb7, 0x2f, - 0xaf, 0x72, 0x2f, 0x2f, 0x06, 0x3d, 0xb5, 0x4f, 0x2f, 0x9f, 0x30, 0x81, - 0x38, 0x1d, 0xbf, 0x30, 0x83, 0x69, 0x2f, 0xab, 0x06, 0xd8, 0x17, 0xb1, - 0x11, 0x30, 0x8d, 0x04, 0xdf, 0x33, 0x00, 0x58, 0x17, 0xf0, 0xb1, 0x95, - 0x06, 0x78, 0x17, 0xd1, 0x07, 0x04, 0x7a, 0x39, 0x4c, 0x4e, 0xb7, 0x5f, - 0x02, 0x46, 0x7a, 0x14, 0x5c, 0x79, 0x72, 0x06, 0x5b, 0x19, 0xb0, 0x00, - 0xc6, 0xdc, 0xb4, 0x34, 0xbb, 0x74, 0xb9, 0xb8, 0x5a, 0xd2, 0x06, 0x58, - 0x1d, 0x4f, 0x2f, 0xa9, 0x52, 0xff, 0x65, 0x62, 0xff, 0xeb, 0xb0, 0x06, - 0x23, 0xff, 0xfa, 0x81, 0xe5, 0x05, 0xf8, 0x1f, 0x23, 0x04, 0x34, 0x04, - 0x46, 0x3c, 0x28, 0x15, 0x40, 0x04, 0x42, 0x28, 0x1f, 0x38, 0x15, 0x4f, - 0xb8, 0x28, 0x17, 0x40, 0x00, 0x28, 0x2d, 0x0c, 0x54, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x4a, 0x4a, 0x34, 0x00, 0x52, 0x49, 0x49, 0x4a, 0x4a, 0x32, - 0x4c, 0x4a, 0x40, 0x4a, 0x30, 0x01, 0x6a, 0x28, 0xd1, 0x25, 0x00, 0x00, - 0x40, 0x53, 0x28, 0x17, 0xea, 0x30, 0xe4, 0x30, 0xce, 0x30, 0x00, 0xd5, - 0x30, 0xb9, 0x30, 0xaf, 0x30, 0xde, 0x5d, 0x82, 0x06, 0x18, 0x17, 0x6c, - 0x00, 0x27, 0x00, 0x79, 0x2f, 0xaf, 0x6e, 0x8f, 0x2f, 0xb9, 0x76, 0x00, - 0x73, 0x2f, 0x33, 0x05, 0xf8, 0x17, 0x3f, 0xa9, 0x06, 0x90, 0x7f, 0xa8, - 0x3f, 0xa7, 0x61, 0x20, 0xf7, 0x74, 0x48, 0x13, 0x6c, 0x00, 0x6a, 0xb5, - 0x61, 0x0b, 0x77, 0x05, 0x41, 0x0b, 0x3f, 0xaf, 0x67, 0x2f, 0xa9, 0x6f, - 0x28, 0x7f, 0xb7, 0x3f, 0xa5, 0x64, 0x2f, 0xb5, 0x50, 0x87, 0x27, 0x80, - 0x89, 0x04, 0xb1, 0x95, 0x70, 0x7f, 0x74, 0xf3, 0x28, 0xff, 0x98, 0x11, - 0x3e, 0x2f, 0xe1, 0x05, 0x42, 0x11, 0x4c, 0x4e, 0x00, 0xcc, 0x91, 0x6c, - 0x62, 0xfa, 0x8b, 0x2b, 0x59, 0x08, 0xaf, 0x65, 0x4b, 0x51, 0x06, 0x12, - 0xff, 0xb8, 0xc6, 0xac, 0x00, 0xb9, 0x7c, 0xc5, 0x89, 0xb1, 0xa4, 0xc2, - 0x6c, 0x05, 0xd0, 0x20, 0x00, 0xfc, 0xc8, 0x06, 0x1b, 0x17, 0x65, 0xa2, - 0x73, 0xfb, 0x06, 0x13, 0x7f, 0x51, 0xeb, 0xb3, 0xfd, 0x78, 0x19, 0x32, - 0x95, 0xe3, 0x2b, 0xaf, 0x04, 0x98, 0x13, 0x88, 0x58, 0x17, 0x3b, 0x04, - 0x4c, 0x28, 0x0b, 0x3d, 0x04, 0x3e, 0x2a, 0x04, 0x32, 0xa8, 0x19, 0x3e, - 0x48, 0x11, 0x30, 0x28, 0x2b, 0x42, 0xe0, 0x20, 0x1f, 0x0c, 0x94, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x4b, 0x4b, 0x35, 0x30, 0x30, 0x01, 0x2f, 0x4b, - 0x4b, 0x33, 0x4d, 0x4b, 0x4b, 0x30, 0x01, 0x00, 0xa0, 0x26, 0x64, 0x22, - 0x00, 0x00, 0x54, 0x64, 0x00, 0xf4, 0x30, 0xe9, 0x30, 0xb8, 0x30, 0xfc, - 0x30, 0x11, 0xdf, 0x30, 0xeb, 0x06, 0x28, 0x15, 0x00, 0x00, 0x56, 0x47, - 0x15, 0xad, 0x36, 0x8d, 0x6d, 0x2f, 0xab, 0x72, 0x0e, 0x00, 0x7f, 0xd8, - 0x17, 0x57, 0x06, 0x01, 0x0d, 0xf4, 0x00, 0x58, 0x17, 0x05, 0x91, 0x95, - 0x00, 0x38, 0x17, 0x72, 0x13, 0xed, 0x05, 0x22, 0x13, 0x17, 0x5f, 0x00, - 0xc9, 0x62, 0xfa, 0x57, 0x73, 0x7c, 0x14, 0x5c, 0x80, 0x06, 0x32, 0xfd, - 0x00, 0x00, 0x14, 0xbe, 0x7c, 0xb7, 0x14, 0x07, 0xb5, 0xf8, 0xbb, 0x74, - 0xb9, 0x06, 0x38, 0x15, 0x08, 0x13, 0x7f, 0x05, 0xd8, 0x15, 0x10, 0x00, - 0x00, 0x12, 0x47, 0xfd, 0x34, 0x04, 0x38, 0x04, 0x5c, 0x3c, 0x20, 0x03, - 0x40, 0x06, 0x08, 0x19, 0x0e, 0xf4, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x4c, - 0x4c, 0x08, 0x50, 0x31, 0x31, 0x30, 0x20, 0x05, 0x4e, 0x07, 0x4c, 0x43, - 0x4c, 0x20, 0x01, 0xed, 0x27, 0xbd, 0x1c, 0x2f, 0xad, 0x28, 0x17, 0x44, - 0xa9, 0x28, 0x11, 0xb4, 0x30, 0xb0, 0x28, 0x1f, 0xfc, 0x30, 0x55, 0xc9, - 0x06, 0x08, 0x1b, 0x56, 0x2f, 0xa5, 0x6c, 0x2e, 0xb1, 0x6f, 0x2e, 0xb5, - 0x7f, 0x72, 0x48, 0x21, 0x0d, 0xd0, 0x7f, 0xf8, 0x17, 0x05, 0xf1, 0x0d, - 0x00, 0x78, 0x17, 0x05, 0x71, 0x95, 0x00, 0x58, 0x17, 0xa0, 0xf2, 0x13, - 0x6f, 0x04, 0x8f, 0xc6, 0x0f, 0x4f, 0x14, 0x5c, 0xa0, 0x04, 0x52, 0x3c, - 0x68, 0xd2, 0x52, 0x06, 0x58, 0x17, 0xfc, 0xbc, 0x00, 0xe0, 0xac, 0xf8, - 0xad, 0x7c, 0xb7, 0xdc, 0xb4, 0xe8, 0x06, 0x58, 0x17, 0x06, 0x12, 0x71, - 0x00, 0xf3, 0xff, 0x6f, 0x05, 0xc8, 0x1b, 0x12, 0x04, 0x3e, 0xaf, 0x28, - 0x19, 0x33, 0x20, 0x05, 0x33, 0x28, 0x15, 0x38, 0x21, 0x05, 0xd8, 0x19, - 0x0e, 0xf4, 0xff, 0x80, 0x10, 0x06, 0xf0, 0xff, 0x4d, 0x4d, 0x51, 0x32, - 0x32, 0x31, 0x4d, 0x02, 0x4d, 0x53, 0x4f, 0x08, 0x4d, 0x4d, 0x20, 0x01, - 0xa1, 0x1a, 0x22, 0xa8, 0x1f, 0x2f, 0xad, 0x48, 0x17, 0xed, 0x28, 0x15, - 0xc0, 0xef, 0x06, 0x08, 0x11, 0xb8, 0x17, 0x38, 0x15, 0x64, 0x2f, 0xb7, - 0x0e, 0x10, 0x7f, 0x00, 0x38, 0x17, 0x05, 0xb1, 0x0d, 0xe8, 0x00, 0xb8, - 0x17, 0x05, 0x31, 0x95, 0x00, 0x58, 0x17, 0xf3, 0x05, 0x82, 0x13, 0x83, - 0x6c, 0x1b, 0x06, 0x6d, 0x3c, 0x68, 0xbe, 0x8f, 0x06, 0x58, 0x15, 0x38, - 0x17, 0x5c, 0x07, 0xb8, 0xf8, 0xad, 0xe4, 0xb2, 0x06, 0x58, 0x15, 0x07, - 0xf3, 0x7f, 0x05, 0xb8, 0x11, 0xdc, 0xb8, 0x17, 0x38, 0x15, 0x3e, 0x06, - 0x08, 0x13, 0x0f, 0x34, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x4e, 0x4e, 0x00, - 0x52, 0x33, 0x33, 0x32, 0x4e, 0x4e, 0x51, 0x50, 0x10, 0x09, 0x4e, 0x4e, - 0x20, 0x01, 0x1c, 0x2a, 0x5f, 0x1c, 0xc5, 0x2c, 0x2d, 0x68, 0x17, 0xcd, - 0x30, 0xb8, 0x06, 0xa8, 0x17, 0x72, 0x6e, 0xad, 0x16, 0x7a, 0x00, 0x68, - 0x06, 0xc0, 0x7f, 0x6a, 0x07, 0x48, 0x17, 0x71, 0x0d, 0x73, 0x39, 0x00, - 0x63, 0x05, 0x21, 0x0f, 0x00, 0x98, 0x17, 0x71, 0x95, 0x7e, 0x01, 0x06, - 0x18, 0x17, 0xe0, 0x32, 0x13, 0x38, 0x29, 0x05, 0x12, 0x13, 0x83, 0x6c, - 0x57, 0x7f, 0x85, 0x14, 0x6d, 0xc0, 0x4e, 0x06, 0x78, 0x17, 0xf4, 0x28, - 0x17, 0x24, 0xb1, 0x3f, 0xdc, 0xc2, 0x06, 0xb8, 0x17, 0x93, 0x7f, 0x06, - 0x13, 0x01, 0xf3, 0xff, 0x05, 0xf8, 0x19, 0x38, 0x17, 0x41, 0x40, 0x28, - 0x1b, 0x3d, 0x04, 0x35, 0x04, 0x36, 0x06, 0x68, 0x17, 0xc0, 0x07, 0x74, - 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x4f, 0x4f, 0x53, 0x34, 0x34, 0x33, 0x01, - 0x4f, 0x4f, 0x52, 0x51, 0x0a, 0x4f, 0x4f, 0x20, 0x01, 0x00, 0xbe, 0x24, - 0xe2, 0x1b, 0x00, 0x00, 0x58, 0x64, 0x14, 0xe4, 0x30, 0xde, 0x28, 0x17, - 0xfb, 0x28, 0x19, 0xcd, 0x30, 0x00, 0xc4, 0x30, 0xea, 0x81, 0xbb, 0x6c, - 0xa1, 0x7b, 0x2a, 0x3a, 0x53, 0x05, 0x9f, 0xb8, 0x59, 0x2f, 0xa5, 0x6d, - 0x2f, 0xa9, 0x6c, 0x0d, 0x00, 0x2d, 0x00, 0x4e, 0x2e, 0xbb, 0x3e, 0xb5, - 0x74, 0x2f, 0x3d, 0xac, 0x05, 0x7f, 0xba, 0x49, 0x80, 0x7f, 0x69, 0x2f, - 0x39, 0x06, 0x1e, 0x33, 0x41, 0x00, 0x6a, 0x75, 0x28, 0x11, 0x3f, 0xad, - 0x6f, 0x21, 0x07, 0x65, 0x2d, 0x2d, 0x20, 0x2e, 0x00, 0x4b, 0x4d, 0x33, - 0x69, 0x28, 0x2b, 0x5f, 0x41, 0x30, 0x13, 0x4a, 0xb5, 0x00, 0x01, 0x27, - 0x7a, 0x41, 0x2d, 0x02, 0xff, 0xcc, 0x43, 0x2f, 0xab, 0x72, 0x28, 0x81, - 0xd7, 0x39, 0x99, 0x3f, 0x9d, 0x72, 0x48, 0x23, 0x20, 0xe0, 0x97, 0x30, - 0x11, 0x90, 0x81, 0x55, 0x6f, 0xa1, 0xab, 0x63, 0x02, 0xef, 0xcf, 0x44, - 0x40, 0xe7, 0x74, 0x40, 0x77, 0xbf, 0x31, 0x07, 0x20, 0x2e, 0xb5, 0x31, - 0x11, 0x38, 0x27, 0x70, 0x79, 0x58, 0x2d, 0x92, 0x29, 0xa0, 0x50, 0x7f, - 0xe9, 0x03, 0x42, 0x2b, 0x9a, 0x4e, 0x6c, 0x9a, 0x14, 0x00, 0x5c, 0x2d, - 0x00, 0x85, 0x6d, 0x85, 0x6d, 0x28, 0x60, 0x83, 0x32, 0xff, 0x05, 0xb2, - 0xfd, 0x00, 0x00, 0x7c, 0xc5, 0xd0, 0x40, 0xb9, 0x38, 0x19, 0x24, 0xb1, - 0x20, 0xce, 0x20, 0x00, 0x03, 0x90, 0xc7, 0x58, 0xce, 0x6c, 0xad, 0x05, - 0xbf, 0xb6, 0x92, 0x57, 0x18, 0x69, 0x00, 0xeb, 0x06, 0x2e, 0xaf, 0x06, - 0xf3, 0xff, 0x2f, 0x04, 0x3c, 0xa3, 0x28, 0x09, 0x3b, 0x28, 0x1d, 0x2d, - 0x00, 0x1d, 0x28, 0x1b, 0x38, 0x1f, 0x44, 0x46, 0x28, 0x1d, 0x38, 0x04, - 0x39, 0x28, 0x1d, 0x30, 0x04, 0x68, 0x32, 0x28, 0x17, 0x38, 0x35, 0x3e, - 0x20, 0x27, 0x3d, 0x04, 0x4b, 0xa0, 0x40, 0x15, 0x3e, 0x28, 0x3d, 0x40, - 0x04, 0x43, 0x04, 0x33, 0xe0, 0x03, 0x28, 0x2f, 0x06, 0xf4, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x50, 0x50, 0x0d, 0x02, 0x04, 0x00, 0x05, 0x50, 0x50, - 0x13, 0x52, 0x52, 0x50, 0x50, 0x8c, 0x30, 0x01, 0x2f, 0x5c, 0x2f, 0x27, - 0x95, 0x28, 0x17, 0xed, 0x30, 0x00, 0xb9, 0x30, 0xe9, 0x30, 0xf4, 0x30, - 0xea, 0x30, 0xea, 0x06, 0x3d, 0x33, 0x38, 0x17, 0x3f, 0xaf, 0x73, 0x4f, - 0x35, 0x76, 0x2f, 0x3b, 0x27, 0xf3, 0x05, 0xcf, 0xb5, 0x38, 0x17, 0xd0, - 0x7f, 0x05, 0xe9, 0xaf, 0x00, 0x62, 0x40, 0xf9, 0x37, 0x1b, 0xde, 0x57, - 0xfd, 0x91, 0x0d, 0x77, 0x05, 0x20, 0x8d, 0x7f, 0xaf, 0x5e, 0x31, 0x3f, - 0xb1, 0x69, 0xfc, 0x00, 0x00, 0x87, 0x04, 0xb1, 0x95, 0x70, 0x7f, 0x38, - 0x07, 0xb8, 0x01, 0x05, 0x71, 0x93, 0xc5, 0x96, 0x00, 0x57, 0x7f, 0xaf, - 0x65, 0xc9, 0x62, 0x2b, 0x59, 0x20, 0x14, 0x5c, 0x06, 0x32, 0xff, 0x7c, - 0xc5, 0x5c, 0xb8, 0xac, 0x00, 0xc2, 0x7c, 0xb7, 0x14, 0xbe, 0x20, 0x00, - 0xfc, 0x71, 0xc8, 0x06, 0x1a, 0x98, 0x00, 0x11, 0xe9, 0x06, 0xf3, 0xff, - 0x20, 0x00, 0x28, 0x4b, 0x17, 0xaa, 0x32, 0x95, 0xe3, 0x2f, 0x4d, 0x29, - 0x04, 0xe8, 0x17, 0x40, 0x28, 0x13, 0x41, 0xd1, 0x28, 0x19, 0x38, 0x03, - 0x41, 0x28, 0x11, 0x30, 0x04, 0x4f, 0x47, 0xfb, 0x57, 0x31, 0x40, 0x13, - 0x41, 0x28, 0x17, 0x4c, 0x03, 0x27, 0xff, 0x08, 0x74, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x00, 0x51, 0x51, 0x0e, 0x0e, 0x0f, 0x34, 0x51, 0x51, 0x04, - 0x14, 0x53, 0x53, 0x51, 0x51, 0x20, 0x01, 0xf8, 0x28, 0x00, 0x56, 0x1c, - 0x00, 0x00, 0x5a, 0x64, 0xe6, 0x30, 0x0e, 0xc0, 0x30, 0xe4, 0x30, 0x3d, - 0x27, 0x06, 0x38, 0x15, 0x3c, 0x2f, 0x65, 0xde, 0x28, 0x0d, 0x3f, 0x1f, - 0x79, 0x06, 0x30, 0x7e, 0xe7, 0x97, 0x5e, 0xab, 0x9f, 0xbd, 0x20, 0x22, - 0x00, 0x6a, 0x2f, 0xcf, 0x69, 0x00, 0x66, 0x04, 0xad, 0xaf, 0xfc, 0xab, - 0x47, 0x8b, 0x73, 0x2f, 0xb3, 0x68, 0x2f, 0x83, 0x73, 0x00, 0x0f, 0xab, - 0x50, 0x13, 0x5e, 0x47, 0x2f, 0x9f, 0x62, 0x2f, 0xdb, 0x3f, 0x21, 0x04, - 0xb8, 0x17, 0xd0, 0x7b, 0x61, 0xaa, 0x2f, 0xbf, 0x45, 0x28, 0xb9, 0x72, - 0x2f, 0xc5, 0x69, 0x20, 0xa1, 0x61, 0xf7, 0x04, 0xe8, 0x17, 0x50, 0xf9, - 0x38, 0x23, 0x70, 0x7d, 0x48, 0x40, 0xf7, 0x36, 0x27, 0x04, 0x10, 0x7b, - 0x84, 0x3f, 0xff, 0xb9, 0x72, 0x2a, 0x59, 0x06, 0x92, 0xfd, 0x00, 0x00, - 0x00, 0x20, 0xc7, 0xdc, 0xd0, 0x78, 0xc7, 0x20, 0x00, 0x0a, 0x90, 0xc7, - 0x58, 0xce, 0x06, 0x58, 0x17, 0x6f, 0x2b, 0x95, 0x64, 0xfe, 0x2f, 0xa1, - 0x00, 0x11, 0xfd, 0x3a, 0x27, 0xba, 0xb7, 0x04, 0xba, 0x97, 0x38, 0x01, - 0x00, 0x31, 0xff, 0x4a, 0xa2, 0x23, 0x91, 0x64, 0x04, 0x82, 0x7d, 0x00, - 0x00, 0x15, 0x28, 0x0d, 0x40, 0x0d, 0x04, 0x35, 0x04, 0x39, 0xa8, 0x13, - 0x38, 0x21, 0x42, 0x28, 0x2d, 0x5e, 0x3d, 0x28, 0x31, 0x3c, 0x20, 0x05, - 0x04, 0xb8, 0x29, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x52, 0x00, - 0x52, 0x2f, 0x05, 0x06, 0x06, 0x52, 0x52, 0x15, 0x08, 0x3a, 0x0b, 0x52, - 0x52, 0x20, 0x01, 0xb0, 0x22, 0x87, 0x00, 0x5e, 0x00, 0x00, 0x5b, 0x64, - 0xb6, 0x30, 0xd0, 0x00, 0x30, 0xa4, 0x30, 0xab, 0x30, 0xea, 0x30, 0xa8, - 0x05, 0x30, 0x30, 0x57, 0xb9, 0x65, 0x05, 0xfd, 0x31, 0x5a, 0x2f, 0xaf, - 0x46, 0x62, 0x2f, 0xb3, 0x79, 0x00, 0x6b, 0x2f, 0xb9, 0x3e, 0x97, 0x79, - 0xd6, 0x2e, 0xc1, 0x05, 0x9f, 0xb4, 0x54, 0x46, 0xf3, 0x6e, 0x2f, 0xaf, - 0x30, 0x85, 0xef, 0xf5, 0x60, 0x85, 0x37, 0x7f, 0x05, 0x61, 0x97, 0xaf, - 0xaf, 0x20, 0xe0, 0x8d, 0x69, 0xa0, 0x8d, 0x57, 0x6e, 0x04, 0x80, 0xff, - 0x65, 0x2f, 0x9b, 0x72, 0x2f, 0xb1, 0x39, 0x0f, 0x30, 0x07, 0xdb, 0x35, - 0x9f, 0x3f, 0xb7, 0x6c, 0x4f, 0xad, 0xf0, 0x93, 0x6a, 0x81, 0x21, 0x03, - 0x58, 0x23, 0xb8, 0x00, 0x90, 0x7f, 0x20, 0x82, 0x1b, 0xb1, 0x07, 0x03, - 0xff, 0xd1, 0x16, 0x59, 0x1d, 0x00, 0x8d, 0xa0, 0x52, 0x14, 0x5c, 0xb9, - 0x8f, 0x86, 0x10, 0x75, 0x3a, 0x53, 0x06, 0x1f, 0xaf, 0x90, 0xc7, 0x14, - 0xbc, 0x00, 0x74, 0xc7, 0x7c, 0xce, 0x20, 0x00, 0xc0, 0xc9, 0x3c, 0x29, - 0xbc, 0x06, 0x1b, 0x99, 0x00, 0x52, 0x71, 0x06, 0xf0, 0x7f, 0x32, 0x5d, - 0x20, 0x00, 0x6a, 0x28, 0x2b, 0xab, 0x92, 0x9d, 0xf3, 0x62, 0x9d, 0x29, - 0x03, 0xcf, 0xbc, 0x17, 0xab, 0x28, 0x0b, 0x31, 0x28, 0x0f, 0x39, 0x48, - 0x15, 0x3b, 0x27, 0xf1, 0x38, 0x1f, 0x47, 0x38, 0x28, 0x27, 0x20, 0x00, - 0x3a, 0x28, 0x31, 0x30, 0x19, 0x0c, 0xb4, 0xff, 0x80, 0x10, 0x0e, 0xf0, - 0x7f, 0x53, 0x53, 0x4e, 0x3d, 0x4e, 0x53, 0x53, 0x08, 0x53, 0x4a, 0x48, - 0x0c, 0x20, 0x05, 0x53, 0x53, 0x03, 0x10, 0x25, 0xb6, 0x50, 0x00, 0x3f, - 0xff, 0x01, 0x2b, 0x29, 0x06, 0x00, 0x05, 0x01, 0x01, 0x01, 0x2c, 0x2b, - 0x1e, 0x2b, 0x80, 0x20, 0x06, 0x01, 0x02, 0x01, 0x01, 0x3e, 0x3c, 0x35, - 0x40, 0x02, 0x20, 0x06, 0x2c, 0x01, 0x02, 0x02, 0x02, 0x02, 0x00, 0x03, - 0x0f, 0x03, 0x3f, 0x3a, 0x36, 0x03, 0x03, 0x08, 0x03, 0x02, 0x2d, 0x0f, - 0x20, 0x05, 0x03, 0x04, 0x02, 0x00, 0x02, 0x35, 0x4c, 0x4b, 0x04, 0x04, - 0x02, 0x03, 0x00, 0x01, 0x02, 0x04, 0x04, 0x04, 0x04, 0x05, 0x03, 0x02, - 0x04, 0x07, 0x07, 0x07, 0x05, 0x05, 0x30, 0x11, 0x05, 0x00, 0x05, 0x05, - 0x05, 0x06, 0x04, 0x05, 0x08, 0x08, 0x08, 0x08, 0x06, 0x06, 0x05, 0x20, - 0x18, 0x06, 0x06, 0x06, 0x00, 0x06, 0x07, 0x05, 0x06, 0x09, 0x09, 0x09, - 0x07, 0x30, 0x07, 0x06, 0x20, 0x18, 0x20, 0x28, 0x07, 0x08, 0x06, 0x07, - 0x00, 0x40, 0x37, 0x37, 0x08, 0x08, 0x07, 0x07, 0x2e, 0x40, 0x06, 0x20, - 0x28, 0x08, 0x09, 0x07, 0x08, 0x0a, 0x0a, 0x01, 0x0a, 0x09, 0x09, 0x08, - 0x08, 0x05, 0x07, 0x20, 0x28, 0x01, 0x09, 0x0a, 0x08, 0x0a, 0x0b, 0x0b, - 0x0b, 0x30, 0x12, 0x40, 0x06, 0x30, 0x18, 0x0a, 0x0b, 0x09, 0x09, 0x41, - 0x3d, 0x01, 0x38, 0x0b, 0x0b, 0x09, 0x0a, 0x2f, 0x09, 0x20, 0x18, 0x00, - 0x0b, 0x0c, 0x0a, 0x47, 0x4f, 0x35, 0x3a, 0x0c, 0x00, 0x0c, 0x4c, 0x0f, - 0x4f, 0x0a, 0x0c, 0x0c, 0x0c, 0x04, 0x0c, 0x0d, 0x0b, 0x46, 0x2d, 0x20, - 0x05, 0x0d, 0x4b, 0x00, 0x10, 0x4e, 0x0b, 0x0d, 0x0d, 0x0d, 0x0d, 0x0e, - 0x20, 0x0c, 0x48, 0x20, 0xa2, 0x0e, 0x0e, 0x4d, 0x11, 0x51, 0x00, 0x0c, - 0x0e, 0x0e, 0x0e, 0x0e, 0x0f, 0x0d, 0x49, 0x00, 0x50, 0x36, 0x3b, 0x0f, - 0x0f, 0x4e, 0x12, 0x50, 0x00, 0x0d, 0x0f, 0x0f, 0x0f, 0x0f, 0x10, 0x0e, - 0x0c, 0x00, 0x43, 0x38, 0x3c, 0x10, 0x10, 0x0e, 0x13, 0x30, 0x00, 0x0e, - 0x10, 0x10, 0x10, 0x10, 0x11, 0x10, 0x0f, 0x00, 0x44, 0x41, 0x3d, 0x11, - 0x11, 0x0f, 0x15, 0x31, 0x00, 0x10, 0x11, 0x11, 0x11, 0x11, 0x12, 0x11, - 0x10, 0x80, 0x20, 0x4d, 0x12, 0x12, 0x10, 0x16, 0x0e, 0x11, 0x12, 0x00, - 0x12, 0x12, 0x12, 0x13, 0x12, 0x11, 0x0d, 0x0e, 0x00, 0x0e, 0x13, 0x13, - 0x11, 0x17, 0x0d, 0x12, 0x13, 0x00, 0x13, 0x13, 0x13, 0x14, 0x13, 0x12, - 0x45, 0x3e, 0x00, 0x3f, 0x14, 0x14, 0x16, 0x0b, 0x0f, 0x13, 0x14, 0x00, - 0x14, 0x14, 0x14, 0x15, 0x14, 0x13, 0x0f, 0x10, 0x00, 0x0f, 0x15, 0x15, - 0x17, 0x18, 0x10, 0x14, 0x15, 0x00, 0x15, 0x15, 0x15, 0x16, 0x15, 0x14, - 0x46, 0x3f, 0x00, 0x40, 0x16, 0x16, 0x18, 0x0d, 0x32, 0x15, 0x16, 0x02, - 0x16, 0x16, 0x16, 0x17, 0x16, 0x15, 0x20, 0x63, 0x17, 0x00, 0x17, 0x19, - 0x19, 0x11, 0x16, 0x17, 0x17, 0x17, 0x00, 0x17, 0x18, 0x17, 0x16, 0x37, - 0x4d, 0x4d, 0x18, 0x00, 0x18, 0x1a, 0x1a, 0x12, 0x17, 0x18, 0x18, 0x18, - 0x00, 0x18, 0x19, 0x18, 0x17, 0x47, 0x48, 0x41, 0x19, 0x00, 0x19, 0x1b, - 0x1b, 0x13, 0x18, 0x19, 0x19, 0x19, 0x00, 0x19, 0x1a, 0x19, 0x0b, 0x48, - 0x40, 0x39, 0x1a, 0x00, 0x1a, 0x1c, 0x0e, 0x33, 0x19, 0x1a, 0x1a, 0x1a, - 0x08, 0x1a, 0x1b, 0x1a, 0x18, 0x20, 0x93, 0x1b, 0x1b, 0x1d, 0x00, 0x1c, - 0x14, 0x1a, 0x1b, 0x1b, 0x1b, 0x1b, 0x1c, 0x00, 0x1b, 0x19, 0x36, 0x4f, - 0x4c, 0x1c, 0x1c, 0x0b, 0x00, 0x1d, 0x4c, 0x1b, 0x1c, 0x1c, 0x1c, 0x1c, - 0x1d, 0x00, 0x1c, 0x1a, 0x42, 0x42, 0x3e, 0x1d, 0x1d, 0x0c, 0x00, 0x0c, - 0x3b, 0x1c, 0x1d, 0x1d, 0x1d, 0x1d, 0x1e, 0x00, 0x1d, 0x1b, 0x01, 0x01, - 0x03, 0x1e, 0x1e, 0x0d, 0x00, 0x1e, 0x4d, 0x1d, 0x1e, 0x1e, 0x1e, 0x1e, - 0x1f, 0x20, 0x1e, 0x1c, 0x20, 0xc3, 0x1f, 0x1f, 0x1e, 0x1f, 0x15, 0x00, - 0x1e, 0x1f, 0x1f, 0x1f, 0x1f, 0x20, 0x1f, 0x1d, 0x00, 0x49, 0x43, 0x42, - 0x20, 0x20, 0x21, 0x20, 0x34, 0x14, 0x1f, 0x20, 0x20, 0x30, 0x07, 0x1e, - 0x20, 0xd3, 0x21, 0x21, 0x02, 0x22, 0x21, 0x16, 0x20, 0x21, 0x21, 0x30, - 0x07, 0x21, 0x00, 0x38, 0x50, 0x4e, 0x22, 0x22, 0x23, 0x22, 0x17, 0x10, - 0x21, 0x22, 0x22, 0x30, 0x07, 0x22, 0x39, 0x51, 0x4f, 0x00, 0x23, 0x23, - 0x24, 0x23, 0x18, 0x22, 0x23, 0x23, 0xa0, 0x30, 0x07, 0x1f, 0x20, 0xf3, - 0x24, 0x24, 0x1f, 0x24, 0x19, 0x00, 0x23, 0x24, 0x24, 0x24, 0x24, 0x25, - 0x24, 0x20, 0x80, 0x20, 0xf3, 0x25, 0x25, 0x20, 0x25, 0x1a, 0x24, 0x25, - 0x02, 0x25, 0x25, 0x25, 0x26, 0x25, 0x23, 0x20, 0xf3, 0x26, 0x00, 0x26, - 0x25, 0x26, 0x1b, 0x25, 0x26, 0x26, 0x26, 0x08, 0x26, 0x27, 0x26, 0x24, - 0x20, 0xf3, 0x27, 0x27, 0x26, 0x00, 0x27, 0x1c, 0x26, 0x27, 0x27, 0x27, - 0x27, 0x28, 0x20, 0x27, 0x25, 0x20, 0xf3, 0x28, 0x28, 0x27, 0x28, 0x1d, - 0x00, 0x27, 0x28, 0x28, 0x28, 0x28, 0x29, 0x28, 0x26, 0x00, 0x4a, 0x44, - 0x43, 0x29, 0x29, 0x28, 0x29, 0x35, 0x00, 0x28, 0x29, 0x29, 0x29, 0x29, - 0x2a, 0x29, 0x27, 0x00, 0x4b, 0x45, 0x44, 0x2a, 0x2a, 0x2a, 0x2a, 0x36, - 0x44, 0x29, 0x30, 0x05, 0x2b, 0x2a, 0x28, 0x21, 0x13, 0x2b, 0x2b, 0x08, - 0x2b, 0x2c, 0x1f, 0x2a, 0x20, 0x05, 0x2b, 0x2c, 0x2c, 0x40, 0x2a, 0x21, - 0x13, 0x2c, 0x2c, 0x29, 0x2d, 0x20, 0x2c, 0x44, 0x2c, 0x20, 0x01, 0x2d, - 0x2d, 0x2b, 0x22, 0x94, 0x2d, 0x2d, 0x19, 0x2d, 0x2e, 0x21, 0x20, 0x04, - 0x20, 0x06, 0x2e, 0x2c, 0x21, 0x23, 0x06, 0x2e, 0x2e, 0x2e, 0x2f, 0x22, - 0x20, 0x04, 0x20, 0x06, 0x30, 0x40, 0x2d, 0x21, 0x23, 0x2f, 0x2f, 0x30, - 0x30, 0x23, 0x30, 0x24, 0x2f, 0x2f, 0x20, 0x07, 0x31, 0x2e, 0x21, 0x23, - 0x30, 0x30, 0x02, 0x31, 0x31, 0x24, 0x31, 0x30, 0x30, 0x20, 0x07, 0x32, - 0x40, 0x30, 0x21, 0x23, 0x31, 0x31, 0x34, 0x32, 0x25, 0x32, 0x00, 0x31, - 0x31, 0x31, 0x31, 0x32, 0x34, 0x32, 0x1f, 0x00, 0x21, 0x1f, 0x32, 0x32, - 0x35, 0x34, 0x26, 0x34, 0x01, 0x32, 0x32, 0x32, 0x32, 0x33, 0x33, 0x31, - 0x21, 0x26, 0x01, 0x33, 0x33, 0x36, 0x33, 0x27, 0x33, 0x33, 0x20, 0x01, - 0x10, 0x34, 0x35, 0x36, 0x21, 0x2b, 0x34, 0x34, 0x37, 0x36, 0x04, 0x28, - 0x35, 0x34, 0x34, 0x34, 0x20, 0x0e, 0x37, 0x3a, 0x00, 0x52, 0x50, 0x35, - 0x35, 0x38, 0x37, 0x29, 0x36, 0x10, 0x35, 0x35, 0x35, 0x20, 0x0e, 0x38, - 0x3b, 0x4b, 0x51, 0x00, 0x36, 0x36, 0x39, 0x38, 0x2a, 0x37, 0x36, 0x36, - 0x50, 0x36, 0x20, 0x0e, 0x39, 0x21, 0x4b, 0x37, 0x37, 0x3a, 0x39, 0x05, - 0x2b, 0x38, 0x37, 0x37, 0x37, 0x20, 0x0e, 0x3b, 0x21, 0x33, 0x00, 0x38, - 0x38, 0x3c, 0x3c, 0x3c, 0x39, 0x38, 0x38, 0x04, 0x38, 0x38, 0x39, 0x3a, - 0x3a, 0x21, 0x5b, 0x39, 0x39, 0x00, 0x3b, 0x3b, 0x3d, 0x3a, 0x39, 0x39, - 0x39, 0x39, 0x00, 0x3a, 0x3b, 0x3d, 0x4d, 0x46, 0x46, 0x3a, 0x3a, 0x00, - 0x12, 0x14, 0x37, 0x3b, 0x3a, 0x3a, 0x3a, 0x3a, 0x18, 0x3b, 0x3c, 0x3e, - 0x21, 0x53, 0x20, 0x1d, 0x3d, 0x41, 0x3c, 0x01, 0x3b, 0x3b, 0x3b, 0x3b, - 0x3c, 0x3d, 0x3f, 0x21, 0x53, 0x02, 0x3c, 0x3c, 0x3e, 0x3e, 0x3e, 0x3d, - 0x20, 0x43, 0x3c, 0x00, 0x3d, 0x40, 0x3c, 0x53, 0x4a, 0x4a, 0x3d, 0x3d, - 0x00, 0x40, 0x3f, 0x3f, 0x40, 0x3d, 0x3d, 0x3d, 0x3d, 0x10, 0x3e, 0x3e, - 0x40, 0x21, 0x63, 0x3e, 0x3e, 0x3f, 0x40, 0x60, 0x40, 0x20, 0x22, 0x20, - 0x07, 0x2f, 0x33, 0x4c, 0x3b, 0x45, 0x00, 0x3f, 0x3f, 0x2f, 0x35, 0x38, - 0x2f, 0x3f, 0x3f, 0x90, 0x20, 0x24, 0x3f, 0x41, 0x21, 0x73, 0x40, 0x40, - 0x41, 0x41, 0x61, 0x43, 0x20, 0x22, 0x30, 0x07, 0x42, 0x3c, 0x53, 0x52, - 0x20, 0x05, 0x08, 0x42, 0x44, 0x41, 0x41, 0x20, 0x01, 0x42, 0x42, 0x43, - 0xc4, 0x21, 0x83, 0x20, 0x05, 0x43, 0x42, 0x42, 0x30, 0x01, 0x43, 0x43, - 0x61, 0x44, 0x21, 0x83, 0x20, 0x05, 0x44, 0x45, 0x43, 0x43, 0x20, 0x01, - 0x88, 0x20, 0x07, 0x4e, 0x39, 0x47, 0x20, 0x0d, 0x45, 0x39, 0x44, 0x40, - 0x44, 0x20, 0x01, 0x45, 0x45, 0x4b, 0x2c, 0x2d, 0x2c, 0x01, 0x45, 0x45, - 0x49, 0x47, 0x47, 0x45, 0x45, 0x20, 0x01, 0x00, 0x46, 0x46, 0x4c, 0x2e, - 0x2e, 0x2d, 0x46, 0x46, 0x04, 0x47, 0x49, 0x48, 0x46, 0x46, 0x20, 0x01, - 0x47, 0x48, 0x00, 0x4f, 0x2f, 0x2f, 0x2e, 0x47, 0x47, 0x4f, 0x4b, 0x00, - 0x46, 0x48, 0x47, 0x47, 0x47, 0x47, 0x48, 0x49, 0x04, 0x4a, 0x2b, 0x2c, - 0x2b, 0x48, 0x20, 0x1c, 0x49, 0x49, 0x00, 0x48, 0x48, 0x48, 0x48, 0x49, - 0x47, 0x4d, 0x51, 0x80, 0x20, 0x14, 0x49, 0x48, 0x4a, 0x3a, 0x47, 0x49, - 0x49, 0x02, 0x49, 0x49, 0x4a, 0x4a, 0x34, 0x52, 0x30, 0x05, 0x32, 0x10, - 0x4c, 0x4a, 0x4a, 0x30, 0x01, 0x4b, 0x4b, 0x35, 0x30, 0x00, 0x30, 0x2f, - 0x4b, 0x4b, 0x33, 0x4d, 0x4b, 0x4b, 0x81, 0x30, 0x01, 0x4c, 0x4c, 0x50, - 0x31, 0x31, 0x30, 0x20, 0x05, 0x08, 0x4e, 0x07, 0x4c, 0x4c, 0x20, 0x01, - 0x4d, 0x4d, 0x51, 0x00, 0x32, 0x32, 0x31, 0x4d, 0x4d, 0x53, 0x4f, 0x08, - 0x20, 0x4d, 0x4d, 0x20, 0x01, 0x4e, 0x4e, 0x52, 0x33, 0x33, 0x00, 0x32, - 0x4e, 0x4e, 0x51, 0x50, 0x09, 0x4e, 0x4e, 0x80, 0x20, 0x01, 0x4f, 0x4f, - 0x53, 0x34, 0x34, 0x33, 0x4f, 0x02, 0x4f, 0x52, 0x51, 0x0a, 0x4f, 0x4f, - 0x20, 0x01, 0x50, 0x00, 0x50, 0x0d, 0x02, 0x04, 0x05, 0x50, 0x50, 0x13, - 0x09, 0x52, 0x52, 0x50, 0x50, 0x20, 0x01, 0x51, 0x51, 0x24, 0x23, 0x00, - 0x34, 0x51, 0x51, 0x14, 0x53, 0x53, 0x51, 0x51, 0xf0, 0x20, 0x01, 0xfd, - 0x4f, 0xf5, 0x47, 0xbf, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x65, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xe1, 0x1f, 0x91, - 0x0e, 0x00, 0x00, 0x00, 0x01, 0x65, 0xbb, 0x30, 0xeb, 0x30, 0xd3, 0x00, - 0x30, 0xa2, 0x30, 0xfb, 0x30, 0xb3, 0x30, 0xbd, 0x04, 0x30, 0xf4, 0x30, - 0xa9, 0x30, 0x05, 0xd8, 0x27, 0x53, 0x00, 0x00, 0x65, 0x00, 0x72, 0x00, - 0x62, 0x00, 0x69, 0x00, 0x11, 0x61, 0x00, 0x20, 0x20, 0x03, 0x6e, 0x00, - 0x64, 0x20, 0x07, 0x05, 0x4b, 0x00, 0x6f, 0x00, 0x73, 0x20, 0x03, 0x76, - 0x20, 0x07, 0xa3, 0x05, 0x70, 0x7f, 0x65, 0x20, 0x7f, 0x65, 0x00, 0x74, - 0x05, 0xc0, 0x7d, 0xd0, 0x7f, 0x5f, 0x6e, 0x21, 0x01, 0x75, 0x05, 0xe1, - 0x01, 0xd1, 0x7f, 0x31, 0x03, 0x05, 0xb0, 0xfd, 0xf1, 0xff, 0x40, 0x79, - 0x06, 0x00, 0x7f, 0x5e, 0x58, 0x14, 0x5c, 0xf4, 0x7e, 0x00, 0x9a, 0x4e, - 0xca, 0x53, 0xd1, 0x79, 0x22, 0x7d, 0x20, 0x83, 0x6c, 0x05, 0xfb, 0x25, - 0x38, 0xc1, 0x74, 0xb9, 0x44, 0x00, 0xbe, 0x44, 0xc5, 0x20, 0x00, 0x54, - 0xcf, 0x8c, 0x1a, 0xc1, 0xf4, 0xbc, 0x05, 0xfb, 0xa5, 0x53, 0x7f, 0x76, - 0x23, 0x7f, 0xeb, 0xec, 0x42, 0xff, 0x32, 0x83, 0x05, 0xd2, 0xff, 0xe9, - 0x60, 0x7f, 0x06, 0x52, 0x7f, 0x21, 0x04, 0x00, 0x35, 0x04, 0x40, 0x04, - 0x31, 0x04, 0x38, 0x04, 0x04, 0x4f, 0x04, 0x20, 0x00, 0x38, 0x20, 0x03, - 0x1a, 0x04, 0x17, 0x3e, 0x04, 0x41, 0x20, 0x03, 0x32, 0x20, 0x07, 0x0d, - 0xb4, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x3c, 0x01, 0x01, 0xd0, 0x01, 0x58, - 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x11, 0x74, 0x49, 0x00, - 0x11, 0x08, 0x00, 0x00, 0x30, 0x01, 0x66, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x3d, 0x22, 0x2d, - 0x0c, 0x00, 0x00, 0x00, 0x02, 0x66, 0xd6, 0x30, 0xe9, 0x30, 0xc6, 0x09, - 0x30, 0xa3, 0x30, 0xb9, 0x20, 0x07, 0xd0, 0x30, 0x06, 0x18, 0x23, 0x00, - 0x42, 0x00, 0x72, 0x00, 0x61, 0x00, 0x74, 0x00, 0x05, 0x69, 0x00, 0x73, - 0x00, 0x6c, 0x20, 0x09, 0x76, 0x20, 0x0d, 0x80, 0x10, 0x15, 0xb0, 0x7f, - 0x03, 0x5e, 0xc9, 0x62, 0xea, 0x8f, 0xaf, 0x01, 0x65, 0xc9, 0x62, 0xd1, - 0x53, 0xde, 0x5d, 0x06, 0x1b, 0x23, 0x00, 0x0c, 0xbe, 0x7c, 0xb7, 0xf0, - 0xd2, 0xac, 0xc2, 0x0c, 0x7c, 0xb7, 0x14, 0xbc, 0x06, 0x3b, 0xa1, 0x0e, - 0xf3, 0x7f, 0x11, 0x04, 0x00, 0x40, 0x04, 0x30, 0x04, 0x42, 0x04, 0x38, - 0x04, 0x15, 0x41, 0x04, 0x3b, 0x20, 0x09, 0x32, 0x20, 0x07, 0x3a, 0x20, - 0x0d, 0x04, 0x39, 0x04, 0x20, 0x00, 0x3a, 0x40, 0x1b, 0x39, 0x04, 0x8a, - 0x10, 0x1c, 0xb4, 0xff, 0x01, 0x02, 0x02, 0x20, 0x01, 0x01, 0x40, 0x06, - 0x01, 0x10, 0x01, 0x01, 0x01, 0x58, 0x17, 0x03, 0x66, 0xd0, 0x30, 0x41, - 0xf3, 0x28, 0x13, 0xab, 0x30, 0xfb, 0x30, 0xd3, 0x28, 0x1b, 0x01, 0xc8, - 0x30, 0xea, 0x30, 0xc4, 0x30, 0xa1, 0x05, 0xa8, 0x1f, 0x50, 0x42, 0x28, - 0x15, 0x6e, 0x28, 0x13, 0x6b, 0x00, 0xe1, 0x00, 0x54, 0x20, 0x28, 0x25, - 0x79, 0x28, 0x1f, 0x74, 0x28, 0x2b, 0x69, 0x00, 0x60, 0x63, 0x05, 0x48, - 0x21, 0x10, 0x0e, 0xf0, 0x7f, 0xed, 0x73, 0xaf, 0x65, 0x61, 0x00, 0x53, - 0x2d, 0x00, 0xd4, 0x6b, 0xaf, 0x65, 0x79, 0x04, 0x72, 0xcc, 0x91, 0xdf, - 0x5b, 0x05, 0xd8, 0x1d, 0x18, 0xbc, 0x00, 0xa4, 0xc2, 0x74, 0xce, 0x44, - 0xbe, 0xa4, 0xc2, 0x03, 0xb8, 0xd2, 0xac, 0xb9, 0x28, 0xcc, 0x06, 0x1b, - 0x97, 0x0e, 0xd3, 0x7f, 0x51, 0x11, 0x28, 0x15, 0x3d, 0x48, 0x0b, 0x3e, - 0x04, 0x31, 0x48, 0x1d, 0x47, 0x42, 0x28, 0x29, 0x38, 0x04, 0x46, 0x05, - 0x68, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x48, 0x0c, 0xc0, 0x28, 0x1c, 0x50, - 0x05, 0x02, 0x02, 0xa6, 0x22, 0x9d, 0x0d, 0x01, 0x00, 0x00, 0x04, 0x66, - 0xb3, 0x30, 0xb7, 0x28, 0x09, 0x60, 0xa7, 0x05, 0xa8, 0x09, 0xdf, 0xff, - 0x4b, 0x00, 0x6f, 0x00, 0x61, 0x50, 0x01, 0x38, 0x05, 0x65, 0x10, 0x16, - 0x40, 0x7f, 0xd1, 0x79, 0x0c, 0x5e, 0x30, 0x56, 0x7b, 0x05, 0xd8, 0x0b, - 0xbf, 0xff, 0x54, 0xcf, 0xdc, 0xc2, 0x6b, 0xb4, 0x06, 0x08, 0x0d, 0x0f, - 0x93, 0x7f, 0x1a, 0x28, 0x0f, 0x48, 0x05, 0xa8, 0x07, 0x10, 0x17, 0xf4, - 0xff, 0x28, 0x03, 0x03, 0x70, 0x01, 0x04, 0x40, 0x0a, 0xa5, 0x22, 0x1d, - 0x00, 0x0f, 0x00, 0x00, 0x05, 0x66, 0x8c, 0x4e, 0xc8, 0x23, 0x30, 0xe9, - 0x06, 0x88, 0x15, 0x00, 0x00, 0x4e, 0x2f, 0x99, 0x3f, 0x9f, 0xc0, 0x05, - 0x3f, 0x9b, 0x10, 0x10, 0x30, 0x7f, 0x3c, 0x5c, 0x79, 0x72, 0xc9, 0x62, - 0x81, 0x06, 0x98, 0x17, 0xc8, 0xb2, 0xb8, 0xd2, 0x7c, 0xb7, 0x10, 0x06, - 0x93, 0x7f, 0x51, 0x1d, 0x28, 0x13, 0x42, 0x48, 0x09, 0x3d, 0x04, 0x41, - 0x06, 0x28, 0x1b, 0x94, 0x10, 0x16, 0xf4, 0xff, 0x04, 0x04, 0x70, 0x01, - 0x05, 0x40, 0x0a, 0x59, 0x22, 0x00, 0xda, 0x0c, 0x00, 0x00, 0x06, 0x66, - 0xd7, 0x30, 0x01, 0xec, 0x30, 0xb7, 0x30, 0xe7, 0x30, 0xd5, 0x06, 0x68, - 0x1b, 0x51, 0x50, 0x28, 0x13, 0x65, 0x2f, 0xb1, 0x6f, 0x00, 0x76, 0x10, - 0x16, 0x40, 0x7f, 0x00, 0x6e, 0x66, 0xf7, 0x96, 0xcd, 0x7e, 0x2b, 0x59, - 0x80, 0x06, 0x78, 0x19, 0x04, 0xd5, 0x08, 0xb8, 0xfc, 0xc1, 0x04, 0x68, - 0xd5, 0x06, 0x7b, 0x99, 0x0e, 0xf3, 0x7f, 0x1f, 0x28, 0x13, 0x35, 0x04, - 0x48, 0x0c, 0x04, 0x3e, 0x04, 0x32, 0x06, 0x48, 0x17, 0x10, 0x16, 0xf4, - 0xff, 0x05, 0x05, 0xa0, 0x70, 0x01, 0x06, 0x40, 0x0a, 0xd2, 0x22, 0x1d, - 0x0f, 0x00, 0x08, 0x00, 0x07, 0x66, 0xc8, 0x28, 0x17, 0xf3, 0x30, 0xc1, - 0x34, 0x30, 0xfc, 0x20, 0x05, 0x06, 0x3f, 0xb2, 0x54, 0x48, 0x17, 0x6e, - 0x00, 0x19, 0x63, 0x00, 0xed, 0x20, 0x05, 0x06, 0x90, 0x7f, 0x0d, 0x01, - 0x10, 0x0e, 0x50, 0x7f, 0x02, 0x79, 0x72, 0x26, 0x4f, 0xa6, 0x94, 0x06, - 0x78, 0x15, 0x00, 0x01, 0x00, 0xb8, 0xd2, 0x0c, 0xb8, 0x5c, 0xce, 0x06, - 0x78, 0x15, 0xb4, 0x07, 0x92, 0xff, 0x63, 0x2f, 0x37, 0x06, 0x33, 0xff, - 0x22, 0x48, 0x17, 0x3d, 0x04, 0x5c, 0x47, 0x28, 0x11, 0x3d, 0x06, 0x28, - 0x19, 0x07, 0x74, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x06, 0x06, 0xa0, 0x70, - 0x01, 0x07, 0x40, 0x0a, 0xc4, 0x22, 0xd6, 0x0c, 0x00, 0x20, 0x00, 0x08, - 0x28, 0x17, 0xeb, 0x30, 0xca, 0x30, 0xd0, 0xc5, 0x06, 0x48, 0x13, 0x78, - 0x17, 0x6e, 0x00, 0x61, 0x2f, 0xad, 0x61, 0x10, 0x16, 0x40, 0x7f, 0x00, - 0x79, 0x72, 0x14, 0x5c, 0xb3, 0x7e, 0xe6, 0x74, 0x80, 0x06, 0x78, 0x19, - 0xb8, 0xd2, 0x74, 0xb9, 0x98, 0xb0, 0x14, 0x6b, 0xbc, 0x10, 0x06, 0x73, - 0x7f, 0x38, 0x17, 0x3d, 0x28, 0x01, 0x32, 0x06, 0x28, 0x13, 0x10, 0x17, - 0x34, 0xff, 0x28, 0x07, 0x07, 0x70, 0x01, 0x08, 0x40, 0x0a, 0x66, 0x22, - 0x7f, 0x83, 0x28, 0x17, 0x09, 0x66, 0xb8, 0x30, 0xea, 0x28, 0x17, 0x06, - 0x9c, 0xaf, 0x07, 0x7d, 0x01, 0x69, 0x00, 0x6c, 0x4c, 0x2b, 0x06, 0x58, - 0x17, 0x10, 0x0e, 0xf0, 0x7f, 0x02, 0xe5, 0x65, 0x29, 0x52, 0xb3, 0x7e, - 0x06, 0x78, 0x15, 0x00, 0x0d, 0x00, 0xc8, 0xc9, 0xac, 0x28, 0x17, 0x0e, - 0x93, 0x7f, 0x5a, 0x23, 0xfb, 0xab, 0x06, 0xb3, 0xff, 0x16, 0x28, 0x0b, - 0x3b, 0x28, 0x0f, 0x3d, 0x06, 0x68, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x28, - 0x08, 0x08, 0x70, 0x01, 0x03, 0x40, 0x0a, 0x00, 0x23, 0x51, 0x45, 0x0d, - 0x00, 0x3f, 0xff, 0x01, 0x02, 0x02, 0x20, 0x01, 0x01, 0x40, 0x06, 0x3c, - 0x01, 0x01, 0x20, 0x07, 0x30, 0x04, 0x20, 0x14, 0x50, 0x05, 0x02, 0x02, - 0x2a, 0x03, 0x03, 0x70, 0x01, 0x04, 0x50, 0x05, 0x04, 0x70, 0x01, 0x05, - 0xaa, 0x50, 0x05, 0x05, 0x70, 0x01, 0x06, 0x50, 0x05, 0x06, 0x70, 0x01, - 0x07, 0xf0, 0x50, 0x05, 0xe8, 0x9f, 0x00, 0x00, 0x97, 0x2f, 0xff, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x67, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xbf, 0x20, 0x50, 0x0a, 0x00, 0x00, 0x00, 0x01, 0x67, 0xb9, 0x30, - 0xed, 0x30, 0xd9, 0x04, 0x30, 0xcb, 0x30, 0xa2, 0x30, 0x06, 0x58, 0x1f, - 0x53, 0x00, 0x00, 0x6c, 0x00, 0x6f, 0x00, 0x76, 0x00, 0x65, 0x00, 0x05, - 0x6e, 0x00, 0x69, 0x00, 0x61, 0x06, 0x80, 0x7f, 0xe9, 0x40, 0x7f, 0x5c, - 0x65, 0x06, 0x60, 0xff, 0x77, 0x60, 0xff, 0x31, 0x05, 0x0d, 0xd1, 0x7f, - 0x45, 0x00, 0x40, 0x73, 0x06, 0xc2, 0x01, 0xaf, 0x65, 0x1b, 0x6d, 0x87, - 0x65, 0x08, 0x3c, 0x5c, 0x9a, 0x4e, 0x06, 0x5b, 0x1f, 0xac, 0xc2, 0x5c, - 0x01, 0xb8, 0xa0, 0xbc, 0xc8, 0xb2, 0x44, 0xc5, 0x07, 0x33, 0x7f, 0x70, - 0xeb, 0x06, 0xa1, 0xff, 0x53, 0x81, 0x05, 0xf4, 0x01, 0x21, 0x04, 0x3b, - 0x04, 0x00, 0x3e, 0x04, 0x32, 0x04, 0x35, 0x04, 0x3d, 0x04, 0x0c, 0x38, - 0x04, 0x4f, 0x04, 0x0e, 0x74, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x01, 0x01, - 0xf0, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x9c, 0x51, 0x00, - 0x11, 0x09, 0x00, 0x00, 0x30, 0x01, 0x68, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x69, 0xed, 0xf2, - 0x13, 0x00, 0x00, 0x00, 0x02, 0x68, 0xcf, 0x30, 0xa6, 0x30, 0xc6, 0x04, - 0x30, 0xf3, 0x30, 0xde, 0x5d, 0x06, 0x58, 0x1f, 0x47, 0x00, 0x00, 0x61, - 0x00, 0x75, 0x00, 0x74, 0x00, 0x65, 0x00, 0x10, 0x6e, 0x00, 0x67, 0x10, - 0x16, 0x20, 0x7f, 0x6a, 0x8c, 0x7b, 0x76, 0x20, 0x01, 0x77, 0x06, 0x9b, - 0x1b, 0x58, 0xd5, 0xb0, 0xc6, 0x61, 0x04, 0xd1, 0x20, 0x00, 0xfc, 0xc8, - 0x10, 0x06, 0x53, 0x7f, 0x13, 0x04, 0x00, 0x30, 0x04, 0x43, 0x04, 0x42, - 0x04, 0x35, 0x04, 0x04, 0x3d, 0x04, 0x33, 0x04, 0xa0, 0x10, 0x1e, 0x04, - 0xff, 0x01, 0x03, 0x00, 0x05, 0x02, 0x04, 0x05, 0x01, 0x01, 0x01, 0x05, - 0x28, 0x02, 0x03, 0x20, 0x05, 0x01, 0x58, 0x17, 0x03, 0x68, 0xa6, 0x02, - 0x30, 0xa7, 0x30, 0xb9, 0x30, 0xbf, 0x28, 0x19, 0xfb, 0x02, 0x30, 0xb1, - 0x30, 0xfc, 0x30, 0xd7, 0x05, 0xe8, 0x21, 0x57, 0xa8, 0x28, 0x11, 0x73, - 0x48, 0x17, 0x72, 0x28, 0x19, 0x20, 0x00, 0x43, 0xb8, 0x28, 0x27, 0x70, - 0x28, 0x25, 0x05, 0x7f, 0xc5, 0x50, 0x6f, 0x2d, 0x00, 0x4f, 0x22, 0x00, - 0x63, 0x20, 0x01, 0x69, 0x00, 0x64, 0x48, 0xa1, 0x74, 0xae, 0x28, 0xad, - 0x6c, 0x05, 0xc0, 0xff, 0x6b, 0x40, 0xf7, 0x06, 0x1f, 0xbb, 0x51, 0x6f, - 0x6f, 0xf6, 0x21, 0x79, 0x00, 0x31, 0x01, 0x05, 0x11, 0x87, 0x31, 0xef, - 0x62, 0x00, 0x80, 0x7f, 0x05, 0x1f, 0xcb, 0x7f, 0x04, 0x89, 0x00, 0x5f, - 0x6e, 0x66, 0x06, 0x98, 0x19, 0xe8, 0xc6, 0x00, 0xa4, 0xc2, 0x34, 0xd1, - 0x00, 0xcf, 0x74, 0xc7, 0x31, 0x04, 0xd5, 0x06, 0x38, 0x1d, 0x73, 0x7f, - 0x2d, 0x00, 0x4b, 0x2b, 0xa1, 0xea, 0x06, 0x12, 0x83, 0xd1, 0xff, 0x06, - 0x13, 0x7f, 0x17, 0x28, 0x17, 0x3f, 0x28, 0x1b, 0x34, 0x82, 0x28, 0x17, - 0x3e, 0x04, 0x2d, 0x00, 0x1a, 0x40, 0x0f, 0x41, 0x20, 0x04, 0x3a, 0x28, - 0x2f, 0x4f, 0x04, 0x20, 0x00, 0x3f, 0x22, 0x04, 0x40, 0x20, 0x17, 0x32, - 0x04, 0x38, 0x28, 0x37, 0x46, 0x98, 0x20, 0x05, 0x4f, 0x04, 0x0b, 0xd4, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x02, 0x09, 0x02, 0x08, 0x09, 0x01, 0x01, - 0x02, 0x20, 0x06, 0x03, 0x09, 0x02, 0x00, 0x02, 0x02, 0x02, 0xe1, 0xe7, - 0x1a, 0x0d, 0x00, 0x0a, 0x00, 0x04, 0x68, 0xce, 0x28, 0x0b, 0xb6, 0x06, - 0x88, 0x15, 0x00, 0x2b, 0x00, 0x4e, 0x26, 0x93, 0x72, 0x2f, 0xaf, 0x68, - 0x06, 0x68, 0x19, 0x78, 0x17, 0x55, 0x64, 0x2f, 0xb5, 0x2d, 0x60, 0x8d, - 0x64, 0x06, 0x00, 0xff, 0x64, 0x07, 0x28, 0x17, 0x55, 0x53, 0x2f, 0xb3, - 0x74, 0x6f, 0xb9, 0x74, 0x29, 0xa5, 0x69, 0x28, 0x2d, 0x76, 0x6e, 0x05, - 0x08, 0x1d, 0x98, 0x17, 0x30, 0x7f, 0x70, 0x00, 0x40, 0x7f, 0x04, 0xc6, - 0x17, 0x53, 0x87, 0x06, 0xd8, 0x17, 0x78, 0xb1, 0x58, 0xb3, 0x06, 0x98, - 0x15, 0x53, 0x7f, 0x52, 0xf3, 0xdc, 0x06, 0x58, 0x19, 0x9a, 0x17, 0x64, - 0x4a, 0x9d, 0x74, 0x0f, 0x05, 0x7c, 0x19, 0x21, 0x04, 0x5e, 0x35, 0x27, - 0xf5, 0x35, 0x47, 0xfd, 0x06, 0x18, 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x03, 0x00, 0x08, 0x01, 0x06, 0x03, 0x03, 0x03, 0x03, 0x05, - 0x10, 0x01, 0x08, 0x08, 0x30, 0x07, 0x90, 0xeb, 0x9e, 0x11, 0x04, 0x00, - 0x00, 0x05, 0x68, 0xa4, 0x28, 0x17, 0xb9, 0x30, 0x5d, 0xbf, 0x06, 0x88, - 0x19, 0x45, 0x2f, 0xaf, 0x06, 0xbb, 0x2f, 0x78, 0x17, 0x4f, 0x47, 0x09, - 0xdf, 0x05, 0xdc, 0xab, 0x3f, 0xff, 0x4f, 0x4d, 0xad, 0x06, 0x78, 0x15, - 0xb8, 0x17, 0xf1, 0x01, 0x05, 0x5c, 0xb3, 0xc8, 0xbe, 0x2f, 0x06, 0x31, - 0x81, 0x1c, 0x4e, 0x06, 0xd8, 0x17, 0x74, 0xc7, 0xa4, 0x17, 0xc2, 0x34, - 0xd1, 0x06, 0x98, 0x19, 0x4f, 0x2f, 0xab, 0x3e, 0xaf, 0x06, 0x58, 0x15, - 0xa2, 0x07, 0x11, 0xff, 0x12, 0x28, 0x0f, 0x41, 0x04, 0x42, 0x28, 0x15, - 0x47, 0xf0, 0x27, 0xfb, 0x06, 0x18, 0x1b, 0x06, 0xf4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x04, 0x01, 0x03, 0x08, 0x00, 0x02, 0x02, 0x04, 0x04, 0x07, - 0x03, 0x01, 0x01, 0x00, 0x04, 0x04, 0x04, 0x04, 0xa0, 0xe8, 0x79, 0x13, - 0x00, 0x00, 0x00, 0x06, 0x68, 0xaf, 0x30, 0xef, 0x30, 0x51, 0xba, 0x28, - 0x1b, 0xeb, 0x28, 0x1f, 0xfb, 0x30, 0xca, 0x28, 0x21, 0xc5, 0x30, 0x0b, - 0x05, 0x98, 0x1b, 0x4b, 0x00, 0x77, 0x2f, 0xb1, 0x5a, 0x2f, 0xad, 0x58, - 0x6c, 0x6f, 0xb1, 0x61, 0x05, 0xc7, 0x99, 0x10, 0x0e, 0xf0, 0x7f, 0x38, - 0x59, 0x56, 0x00, 0x79, 0x81, 0x9c, 0x2d, 0x00, 0xb3, 0x7e, 0x54, 0x10, - 0x58, 0x14, 0x5c, 0x06, 0x18, 0x1f, 0x70, 0xcf, 0x04, 0xc9, 0x03, 0xe8, - 0xb8, 0x98, 0xb0, 0xc8, 0xd0, 0x06, 0x38, 0x15, 0x93, 0x7f, 0x5d, 0x6f, - 0x2f, 0xa1, 0x6c, 0x40, 0x05, 0x05, 0xd3, 0x83, 0x06, 0xf3, 0xff, 0x1a, - 0x27, 0xf1, 0x01, 0x30, 0x04, 0x37, 0x04, 0x43, 0x04, 0x3b, 0x20, 0x03, - 0x15, 0x2d, 0x00, 0x1d, 0x28, 0x15, 0x42, 0x28, 0x19, 0x3b, 0x03, 0xc7, - 0xfd, 0x80, 0x10, 0x18, 0x94, 0xff, 0x05, 0x04, 0x06, 0x03, 0x05, 0x06, - 0x05, 0x00, 0x05, 0x02, 0x06, 0x04, 0x04, 0x05, 0x05, 0x05, 0x00, 0x05, - 0xf4, 0xea, 0x9b, 0x15, 0x00, 0x00, 0x07, 0x08, 0x68, 0xd5, 0x30, 0xea, - 0x48, 0x11, 0xb9, 0x30, 0xc6, 0xb5, 0x28, 0x1d, 0xc8, 0x05, 0xa8, 0x11, - 0x5f, 0xff, 0x46, 0x2f, 0xa7, 0x65, 0x2f, 0xa7, 0x1d, 0x20, 0x00, 0x53, - 0x4f, 0xa9, 0x3b, 0x39, 0x05, 0xbf, 0x38, 0xc9, 0x60, 0x75, 0x16, 0x2d, - 0x00, 0x4c, 0x2f, 0x2d, 0x62, 0x40, 0x8d, 0x06, 0x10, 0xff, 0x69, 0xdf, - 0x4d, 0xb3, 0x3d, 0xaf, 0x74, 0x05, 0xee, 0xb8, 0x71, 0x75, 0x3f, 0xb1, - 0x51, 0x01, 0x3c, 0xb9, 0x6c, 0x6f, 0x05, 0xac, 0xaf, 0x50, 0xf9, 0x64, - 0xa0, 0x81, 0x05, 0xb1, 0x83, 0xea, 0x81, 0x0c, 0x31, 0x75, 0xa6, 0x90, - 0x06, 0x18, 0x0f, 0x8b, 0xaf, 0xd5, 0xac, 0x00, 0xb9, 0xa4, 0xc2, 0x4c, - 0xd1, 0x74, 0xc7, 0xb8, 0x56, 0xd2, 0x06, 0x38, 0x19, 0x56, 0x4f, 0xa5, - 0x6a, 0x06, 0x82, 0x7f, 0x00, 0x11, 0xff, 0x76, 0x82, 0x05, 0xc3, 0x83, - 0x24, 0x04, 0x40, 0x04, 0x38, 0x28, 0x0f, 0x21, 0x8e, 0x28, 0x0d, 0x35, - 0x04, 0x39, 0x28, 0x13, 0x0d, 0xd4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x06, - 0x00, 0x02, 0x04, 0x01, 0x09, 0x04, 0x06, 0x06, 0x08, 0x00, 0x04, 0x09, - 0x02, 0x06, 0x06, 0x06, 0x06, 0x4c, 0x00, 0xeb, 0xa5, 0x12, 0x00, 0x00, - 0x08, 0x68, 0xce, 0xa3, 0x28, 0x15, 0xb9, 0x28, 0x17, 0xa6, 0x30, 0xa7, - 0x28, 0x1b, 0x06, 0x18, 0x17, 0x55, 0x4e, 0x2c, 0xa9, 0x72, 0x2f, 0xa1, - 0x68, 0x28, 0x19, 0x57, 0x2c, 0xb3, 0xd6, 0x37, 0x1f, 0x06, 0x10, 0x7f, - 0x64, 0x2f, 0xa9, 0x4f, 0x2f, 0xb3, 0x06, 0x90, 0x7f, 0x77, 0xd4, 0x06, - 0x20, 0xfb, 0x3f, 0xff, 0x50, 0x48, 0x05, 0x76, 0x29, 0x13, 0x6e, 0x00, - 0x55, 0x63, 0x29, 0x19, 0x61, 0x29, 0xa1, 0x64, 0x4e, 0x3b, 0x20, 0x81, - 0x1b, 0xfe, 0x30, 0x1f, 0x04, 0x71, 0x99, 0x51, 0xff, 0x3e, 0xad, 0x39, - 0x19, 0x05, 0xda, 0x13, 0x3f, 0xff, 0x7f, 0x10, 0x89, 0x17, 0x53, 0x06, - 0x98, 0x15, 0x00, 0x00, 0x78, 0xb1, 0x03, 0xa4, 0xc2, 0xe8, 0xc6, 0xa4, - 0xc2, 0x06, 0x58, 0x15, 0x53, 0x7f, 0xd4, 0x06, 0xb2, 0x81, 0x06, 0xf1, - 0xff, 0x21, 0x28, 0x0d, 0x32, 0x28, 0x11, 0x40, 0x04, 0x41, 0x3e, 0x28, - 0x1d, 0x17, 0x04, 0x30, 0x04, 0x3f, 0x20, 0x03, 0x10, 0x34, 0x04, 0x3d, - 0x20, 0x09, 0x4f, 0x04, 0x20, 0x00, 0x51, 0x3f, 0x40, 0x19, 0x32, 0x28, - 0x3b, 0x3d, 0x04, 0x46, 0x28, 0x41, 0x70, 0x4f, 0x03, 0xe8, 0x37, 0x07, - 0x54, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x07, 0x07, 0x09, 0x07, 0x06, 0x08, - 0x09, 0x07, 0x07, 0x06, 0x20, 0x03, 0x30, 0x01, 0x9e, 0x20, 0xed, 0x3d, - 0x28, 0x17, 0x09, 0x68, 0xe0, 0x30, 0xd7, 0x00, 0x30, 0xde, 0x30, 0xe9, - 0x30, 0xf3, 0x30, 0xac, 0xc5, 0x06, 0x08, 0x13, 0x3f, 0xff, 0x4d, 0x00, - 0x70, 0x27, 0x8f, 0x6d, 0x2f, 0xb3, 0x46, 0x6c, 0x2f, 0xb7, 0x6e, 0x00, - 0x67, 0x2f, 0xbd, 0x10, 0x15, 0xb0, 0x7f, 0x6e, 0x01, 0x66, 0x6c, 0x9a, - 0x70, 0x51, 0xa0, 0x52, 0x06, 0x78, 0x1b, 0x00, 0x4c, 0xc7, 0x78, 0xd4, - 0xd0, 0xb9, 0x91, 0xb7, 0x34, 0x00, 0xac, 0x06, 0x58, 0x17, 0x0e, 0xf3, - 0x7f, 0x1c, 0x28, 0x07, 0x43, 0x04, 0x51, 0x3c, 0x28, 0x0f, 0x3b, 0x28, - 0x13, 0x3d, 0x04, 0x33, 0x28, 0x19, 0x80, 0x10, 0x1d, 0xb4, 0xff, 0x08, - 0x06, 0x08, 0x05, 0x07, 0x08, 0x08, 0x04, 0x08, 0x04, 0x08, 0x06, 0x06, - 0x20, 0x06, 0x08, 0xe5, 0x00, 0xed, 0x08, 0x16, 0x00, 0x00, 0x0a, 0x68, - 0xea, 0xbd, 0x28, 0x11, 0xdd, 0x20, 0x01, 0x06, 0x38, 0x13, 0x45, 0x17, - 0x2e, 0xa9, 0x6d, 0x28, 0x1b, 0x60, 0x6f, 0x40, 0x03, 0x10, 0x16, 0x10, - 0x7f, 0x97, 0x67, 0xe2, 0x6c, 0xe2, 0x40, 0x6c, 0x06, 0x78, 0x15, 0x00, - 0x00, 0xbc, 0xb9, 0xec, 0xd3, 0x31, 0x78, 0xd4, 0x06, 0x58, 0x13, 0x0f, - 0x33, 0x7f, 0x1b, 0x04, 0x38, 0x28, 0x15, 0x18, 0x3f, 0x04, 0x3e, 0x40, - 0x03, 0x10, 0x1e, 0x14, 0xff, 0x09, 0x05, 0x07, 0x00, 0x04, 0x06, 0x07, - 0x09, 0x09, 0x03, 0x07, 0x05, 0x11, 0x05, 0x09, 0x09, 0x20, 0x07, 0xef, - 0xef, 0x14, 0x00, 0x3f, 0xff, 0x00, 0x01, 0x03, 0x05, 0x02, 0x04, 0x05, - 0x01, 0x01, 0x08, 0x01, 0x05, 0x02, 0x03, 0x20, 0x05, 0x01, 0x02, 0x09, - 0x30, 0x02, 0x09, 0x20, 0x05, 0x20, 0x06, 0x03, 0x09, 0x02, 0x02, 0x00, - 0x02, 0x02, 0x03, 0x08, 0x01, 0x06, 0x03, 0x03, 0x02, 0x03, 0x03, 0x05, - 0x01, 0x08, 0x08, 0x30, 0x07, 0x04, 0x00, 0x01, 0x03, 0x08, 0x02, 0x02, - 0x04, 0x04, 0x07, 0x80, 0x20, 0x2d, 0x04, 0x04, 0x04, 0x04, 0x05, 0x04, - 0x06, 0x01, 0x03, 0x05, 0x06, 0x05, 0x05, 0x02, 0x06, 0x20, 0x0b, 0x00, - 0x05, 0x05, 0x05, 0x06, 0x02, 0x04, 0x01, 0x09, 0x40, 0x04, 0x28, 0x8b, - 0x04, 0x09, 0x02, 0x06, 0x06, 0x06, 0x00, 0x06, 0x07, 0x07, 0x09, 0x07, - 0x08, 0x09, 0x07, 0x3e, 0x07, 0x06, 0x20, 0x03, 0x30, 0x01, 0xf8, 0xaf, - 0xf0, 0xa7, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x2c, 0xa3, 0x00, 0x11, 0x13, 0x00, 0x00, 0x30, 0x01, 0x69, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xbd, 0x1c, 0x5e, 0xfd, 0x00, 0x00, 0x00, 0x02, 0x69, 0xde, 0x30, - 0xc9, 0x30, 0xea, 0x24, 0x30, 0xfc, 0x20, 0x05, 0xde, 0x5d, 0x06, 0x38, - 0x21, 0x4d, 0x00, 0x01, 0x61, 0x00, 0x64, 0x00, 0x72, 0x00, 0x69, 0x20, - 0x05, 0x80, 0x10, 0x16, 0x30, 0x7f, 0x6c, 0x9a, 0xb7, 0x5f, 0xcc, 0x91, - 0xea, 0x04, 0x81, 0xbb, 0x6c, 0x3a, 0x53, 0x06, 0x3b, 0x21, 0xc8, 0xb9, - 0x10, 0xdc, 0xb4, 0xac, 0x20, 0x03, 0x20, 0x00, 0xfc, 0xc8, 0x80, 0x10, - 0x06, 0x33, 0x7f, 0x1c, 0x04, 0x30, 0x04, 0x34, 0x04, 0x40, 0x30, 0x04, - 0x38, 0x20, 0x05, 0x10, 0x1e, 0x34, 0xff, 0x01, 0x0e, 0x0e, 0x0f, 0x00, - 0x0e, 0x0f, 0x01, 0x01, 0x0f, 0x0e, 0x0c, 0x0e, 0x08, 0x01, 0x01, 0x01, - 0x01, 0x58, 0x17, 0x03, 0x69, 0xa2, 0x00, 0x30, 0xf3, 0x30, 0xc0, 0x30, - 0xeb, 0x30, 0xb7, 0xa2, 0x28, 0x1b, 0xa2, 0x06, 0x28, 0x1b, 0x41, 0x00, - 0x6e, 0x28, 0x17, 0x61, 0x02, 0x00, 0x6c, 0x00, 0x75, 0x00, 0x73, 0x28, - 0x1d, 0x61, 0xab, 0x06, 0x80, 0x7f, 0x6f, 0x60, 0x81, 0x65, 0x06, 0xc0, - 0xff, 0x65, 0x21, 0x0f, 0x0e, 0x51, 0x7f, 0x04, 0x75, 0x00, 0x63, 0x00, - 0xed, 0x06, 0x01, 0xff, 0x89, 0x5b, 0x00, 0xbe, 0x8f, 0x62, 0x53, 0x7f, - 0x89, 0x9a, 0x4e, 0x80, 0x06, 0x58, 0x1b, 0x48, 0xc5, 0xec, 0xb2, 0xe8, - 0xb8, 0xdc, 0x1a, 0xc2, 0x44, 0xc5, 0x06, 0x58, 0x19, 0xf3, 0x7f, 0xeb, - 0x06, 0xa3, 0xff, 0x7a, 0x88, 0x06, 0x23, 0xff, 0x10, 0x04, 0x3d, 0x28, - 0x17, 0x30, 0x04, 0x3b, 0x0b, 0x04, 0x43, 0x04, 0x41, 0x28, 0x1d, 0x4f, - 0x05, 0xe8, 0x1d, 0x07, 0xb3, 0x7f, 0xa4, 0x10, 0x0e, 0x30, 0x7f, 0x02, - 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x00, 0x02, 0x02, 0x95, - 0x1a, 0xbc, 0xfb, 0x00, 0x00, 0x47, 0x04, 0x28, 0x17, 0xe9, 0x30, 0xb4, - 0x28, 0x1b, 0x06, 0x18, 0x11, 0x78, 0x17, 0x5f, 0x72, 0x2f, 0xb1, 0x67, - 0x27, 0x95, 0x05, 0xd7, 0x0f, 0x08, 0x30, 0x7f, 0x06, 0x18, 0x15, 0xd1, - 0x7f, 0xd0, 0x05, 0xf9, 0x93, 0xb1, 0xff, 0xf3, 0x06, 0x61, 0xff, 0x3f, - 0x96, 0xc9, 0x62, 0x30, 0x21, 0x8d, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x44, - 0xc5, 0x7c, 0xb7, 0x3b, 0xe4, 0xac, 0x06, 0x58, 0x13, 0x07, 0x31, 0x7f, - 0x73, 0xff, 0xe3, 0x2b, 0x97, 0x06, 0x3f, 0xaf, 0x11, 0x10, 0x04, 0x40, - 0x28, 0x15, 0x33, 0x04, 0x3e, 0x28, 0x1f, 0xd2, 0x10, 0x06, 0xf4, 0xff, - 0x10, 0x06, 0x36, 0x7f, 0x03, 0x38, 0x0c, 0x02, 0x03, 0x40, 0x06, 0x03, - 0x00, 0x03, 0x03, 0x03, 0x9e, 0x1d, 0x62, 0xff, 0x00, 0x20, 0x00, 0x05, - 0x28, 0x17, 0xb9, 0x30, 0xc8, 0x30, 0xa5, 0x06, 0x30, 0xfc, 0x30, 0xea, - 0x30, 0x30, 0x0b, 0x05, 0xf8, 0x1f, 0x50, 0xaa, 0x28, 0x17, 0x69, 0x2f, - 0xb3, 0x63, 0x2f, 0xa9, 0x70, 0x4f, 0xb7, 0x69, 0x02, 0x00, 0x74, 0x00, - 0x79, 0x00, 0x20, 0x2f, 0xbf, 0x66, 0xad, 0x20, 0x05, 0x41, 0x2f, 0xc3, - 0x74, 0x2f, 0xc9, 0x30, 0x25, 0x61, 0x2f, 0xcf, 0xde, 0x04, 0x1f, 0xaf, - 0x90, 0x5f, 0x65, 0x04, 0x20, 0x5f, 0x01, 0xd0, 0x7f, 0x06, 0x19, 0x1b, - 0xf1, 0x7f, 0x74, 0xab, 0x29, 0xa1, 0x20, 0x2f, 0xc1, 0x65, 0x2f, 0xc1, - 0x6c, 0x28, 0xa7, 0xd1, 0x81, 0x70, 0x65, 0x04, 0xc1, 0x7f, 0x04, 0x31, - 0xdf, 0x01, 0x18, 0x17, 0xaf, 0x65, 0xfe, 0x56, 0x02, 0x29, 0x52, 0x9a, - 0x4e, 0xaf, 0x65, 0x06, 0x38, 0x1d, 0x44, 0x01, 0xc5, 0xa4, 0xc2, 0x2c, - 0xd2, 0xac, 0xb9, 0x30, 0x07, 0xda, 0x06, 0x38, 0x1d, 0xb3, 0x5f, 0xeb, - 0x06, 0x4c, 0x17, 0x33, 0xdf, 0xfa, 0x06, 0x81, 0xff, 0x10, 0x02, 0x04, - 0x41, 0x04, 0x42, 0x04, 0x43, 0x28, 0x1d, 0x38, 0x38, 0x04, 0x4f, 0x06, - 0x28, 0x19, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x04, 0x12, 0x03, - 0x04, 0x03, 0x13, 0x03, 0x04, 0x04, 0x28, 0x13, 0x12, 0x04, 0x00, 0x04, - 0x04, 0x04, 0xd6, 0x1e, 0xda, 0xfb, 0x00, 0x02, 0x00, 0x06, 0x69, 0xd0, - 0x30, 0xec, 0x28, 0x0f, 0xfc, 0x81, 0x20, 0x05, 0xb9, 0x30, 0xf8, 0x8a, - 0xf6, 0x5c, 0x05, 0xff, 0xb4, 0x5a, 0x42, 0x48, 0x0b, 0x65, 0x2f, 0xb3, - 0x38, 0x1f, 0x63, 0x28, 0x0f, 0x49, 0xad, 0x28, 0x09, 0x6c, 0x2f, 0xc3, - 0x6e, 0x26, 0x9d, 0x05, 0x17, 0xa7, 0xce, 0x46, 0xfd, 0x6e, 0x73, 0x28, - 0x87, 0x50, 0x89, 0xe9, 0x40, 0x89, 0x05, 0x98, 0x21, 0xd0, 0xff, 0x73, - 0xab, 0x29, 0x1f, 0x68, 0x47, 0x8d, 0x49, 0x2f, 0xbf, 0x73, 0x47, 0x9d, - 0x04, 0xdf, 0x47, 0xde, 0xd1, 0x7f, 0x06, 0x1f, 0xb2, 0x49, 0x68, 0x7f, - 0x91, 0x81, 0x52, 0x0b, 0x05, 0x79, 0xa1, 0xf4, 0x01, 0x5d, 0x29, 0x52, - 0x3f, 0x96, 0xcc, 0x91, 0x06, 0x38, 0x13, 0x80, 0x3f, 0xff, 0x1c, 0xbc, - 0x08, 0xb8, 0x44, 0xc5, 0x08, 0x43, 0xb8, 0x38, 0x15, 0x1c, 0xc8, 0xc4, - 0xb3, 0x06, 0xb3, 0x7f, 0x06, 0x3a, 0x97, 0xb8, 0x31, 0xff, 0x68, 0x4b, - 0xf1, 0xd1, 0xff, 0x05, 0x7b, 0xa3, 0x11, 0x04, 0x30, 0x0a, 0x04, 0x3b, - 0x04, 0x35, 0x20, 0x05, 0x40, 0x28, 0x21, 0x3a, 0x82, 0x28, 0x1d, 0x35, - 0x04, 0x20, 0x00, 0x3e, 0x48, 0x2d, 0x40, 0x0e, 0x04, 0x3e, 0x04, 0x32, - 0x20, 0x1f, 0x0c, 0xb4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x05, 0x00, 0x03, - 0x0b, 0x04, 0x03, 0x0d, 0x05, 0x05, 0x04, 0x00, 0x0c, 0x04, 0x03, 0x05, - 0x05, 0x05, 0x05, 0x23, 0x00, 0x1c, 0xe0, 0x01, 0x00, 0x00, 0x07, 0x69, - 0xab, 0x0e, 0x30, 0xca, 0x30, 0xea, 0x28, 0x19, 0x06, 0x38, 0x13, 0x3f, - 0xfc, 0x43, 0xff, 0x48, 0x01, 0x38, 0x15, 0x3b, 0x23, 0x05, 0xd8, 0x13, - 0xd8, 0x17, 0x90, 0x89, 0x3f, 0xb9, 0x05, 0x7e, 0xb9, 0x7e, 0x4b, 0xa0, - 0x75, 0x06, 0x18, 0x15, 0xb1, 0x7f, 0x30, 0xf5, 0x06, 0xb1, 0xff, 0x06, - 0x5e, 0x2f, 0xa0, 0x04, 0x52, 0xa3, 0x90, 0x29, 0x52, 0x06, 0x78, 0x15, - 0x00, 0x00, 0x00, 0x74, 0xce, 0x98, 0xb0, 0xac, 0xb9, 0x44, 0xc5, 0xef, - 0x06, 0x58, 0x15, 0xd1, 0xff, 0x9a, 0x95, 0x45, 0x2f, 0xbd, 0x7b, 0x9b, - 0x04, 0xd8, 0x2d, 0x53, 0xff, 0x57, 0xe1, 0x06, 0x81, 0xff, 0x1a, 0x28, - 0x17, 0x3d, 0x06, 0x88, 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x00, 0x06, 0x05, 0x0c, 0x09, 0x04, 0x04, 0x06, 0x06, 0x08, 0x06, 0x04, - 0x07, 0x05, 0x20, 0x05, 0x06, 0xff, 0x13, 0x04, 0x07, 0xf5, 0x00, 0x00, - 0x08, 0x28, 0x17, 0xf3, 0x30, 0x12, 0xbf, 0x30, 0xd6, 0x48, 0x1b, 0xde, - 0x5d, 0x06, 0x78, 0x17, 0x74, 0xbf, 0x2f, 0xab, 0x62, 0x66, 0x1b, 0x06, - 0xd0, 0x7f, 0x05, 0xf7, 0x1b, 0x58, 0x17, 0xb0, 0x7f, 0x05, 0xdd, 0xb3, - 0xc0, 0x07, 0xf1, 0x7f, 0x05, 0xf1, 0xff, 0x4e, 0x57, 0x54, 0x58, 0x03, - 0x5e, 0x08, 0x29, 0x52, 0x9a, 0x4e, 0x06, 0x58, 0x1b, 0x78, 0xce, 0xc0, - 0x12, 0xd0, 0x0c, 0xbe, 0x58, 0x19, 0xfc, 0xc8, 0x07, 0x13, 0x7f, 0xeb, - 0xb5, 0x06, 0x63, 0xff, 0xe1, 0x06, 0x63, 0xff, 0x58, 0x17, 0x42, 0x28, - 0x1d, 0x31, 0x28, 0x1b, 0x1c, 0x38, 0x04, 0x4f, 0x04, 0xe8, 0x07, 0x0f, - 0xf3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x07, 0x06, 0x00, 0x04, 0x0a, 0x05, - 0x05, 0x07, 0x07, 0x07, 0x05, 0x20, 0x08, 0x06, 0x20, 0x05, 0x07, 0xe8, - 0x1e, 0x4c, 0xfd, 0x10, 0x00, 0x00, 0x09, 0x28, 0x17, 0xb9, 0x30, 0xc6, - 0x30, 0x10, 0xa3, 0x30, 0xfc, 0x28, 0x19, 0xe3, 0x30, 0xfb, 0x30, 0x56, - 0xe9, 0x20, 0x03, 0xde, 0x28, 0x2b, 0xc1, 0x20, 0x0d, 0x05, 0x7e, 0x2f, - 0x73, 0xc1, 0x28, 0x17, 0x3c, 0x9f, 0x65, 0x00, 0x2d, 0x00, 0x4c, 0x2f, - 0xb5, 0x1f, 0x20, 0x00, 0x4d, 0x4f, 0xbb, 0x3f, 0x3d, 0x04, 0xf8, 0x27, - 0xb0, 0x7f, 0x00, 0x50, 0x81, 0xfd, 0x04, 0xdf, 0x45, 0x38, 0x17, 0x70, - 0xff, 0x58, 0x15, 0x05, 0xd1, 0x03, 0x91, 0x7f, 0x67, 0x40, 0x81, 0x70, - 0x61, 0x06, 0x80, 0x7f, 0x31, 0x7f, 0x05, 0xf0, 0x7d, 0x00, 0x00, 0x61, - 0x53, 0x08, 0xaf, 0x65, 0x82, 0x84, 0x38, 0x17, 0x2d, 0x00, 0xc9, 0x04, - 0x62, 0xfc, 0x66, 0x70, 0x60, 0x05, 0xd8, 0x1f, 0x74, 0xce, 0x00, 0xa4, - 0xc2, 0xf0, 0xd2, 0x7c, 0xc5, 0x7c, 0xb7, 0x0d, 0xcc, 0xb9, 0x28, 0xcc, - 0x06, 0x5b, 0x97, 0x92, 0x7f, 0xeb, 0x06, 0x03, 0x81, 0xb4, 0x73, 0xff, - 0x65, 0x06, 0x41, 0xfd, 0x58, 0x17, 0x41, 0x28, 0x17, 0x38, 0x04, 0x44, - 0x3b, 0x48, 0x15, 0x2d, 0x00, 0x1b, 0x28, 0x29, 0x2d, 0x00, 0x5c, 0x1c, - 0x48, 0x2f, 0x47, 0x28, 0x35, 0x0d, 0x94, 0xff, 0x10, 0x0e, 0x30, 0x7f, - 0x08, 0x07, 0x00, 0x06, 0x0b, 0x06, 0x06, 0x08, 0x08, 0x08, 0x06, 0x21, - 0x09, 0x07, 0x20, 0x05, 0x08, 0x57, 0x1c, 0x24, 0x28, 0x17, 0x47, 0x0a, - 0x00, 0x08, 0x17, 0xec, 0x30, 0xaa, 0x28, 0x15, 0x06, 0x54, 0x97, 0x36, - 0x17, 0x15, 0x20, 0x00, 0x79, 0x28, 0x17, 0x4c, 0x2f, 0xb7, 0xf3, 0x05, - 0x4f, 0x39, 0xbf, 0x00, 0x18, 0x17, 0x65, 0x2f, 0xbd, 0x38, 0x9f, 0x05, - 0x50, 0x81, 0x00, 0x58, 0x17, 0x05, 0x70, 0xfd, 0x00, 0x38, 0x17, 0x78, - 0x20, 0x29, 0x9f, 0x05, 0x91, 0x81, 0x06, 0xf1, 0xff, 0xb8, 0x17, 0xb1, - 0x83, 0x02, 0x60, 0x66, 0x05, 0xd8, 0x15, 0x98, 0x17, 0x74, 0xc7, 0x08, - 0xb8, 0x28, 0x6e, 0xc6, 0x07, 0x18, 0x17, 0x31, 0xfd, 0x6e, 0x06, 0x21, - 0xff, 0x58, 0x17, 0x92, 0x7b, 0xe3, 0x31, 0x00, 0x6f, 0x05, 0x4f, 0xb8, - 0xf8, 0x17, 0x20, 0x00, 0x38, 0x20, 0x03, 0x07, 0x1b, 0x04, 0x35, 0x04, - 0x3e, 0x28, 0x17, 0x0d, 0xf4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x00, 0x09, - 0x08, 0x05, 0x0c, 0x07, 0x07, 0x09, 0x09, 0x08, 0x09, 0x07, 0x0a, 0x08, - 0x20, 0x05, 0x09, 0x9c, 0x1d, 0x04, 0xa5, 0xfc, 0x00, 0x00, 0x0b, 0x28, - 0x17, 0xbf, 0x30, 0x5d, 0xeb, 0x28, 0x15, 0xcb, 0x28, 0x15, 0x06, 0x1c, - 0xad, 0x5f, 0xaf, 0x74, 0x2f, 0xb3, 0x5a, 0x6c, 0x24, 0x07, 0x6e, 0x4e, - 0xaf, 0x06, 0x90, 0x7f, 0x67, 0x2f, 0xad, 0x65, 0xfc, 0x05, 0xed, 0xb2, - 0x38, 0x17, 0xb0, 0xff, 0x38, 0x19, 0x06, 0xb0, 0xff, 0x06, 0x91, 0x7f, - 0x75, 0x00, 0x40, 0xf1, 0x06, 0x01, 0xfd, 0x00, 0x00, 0xa0, 0x52, 0xf0, - 0x6c, 0x03, 0x57, 0x7f, 0x3c, 0x5c, 0x9a, 0x4e, 0x05, 0xf8, 0x11, 0x78, - 0x17, 0x03, 0xc8, 0xd0, 0xe8, 0xb8, 0xd0, 0xb0, 0x06, 0x33, 0x7b, 0x00, - 0x33, 0x7f, 0x5a, 0xeb, 0x06, 0xa1, 0xff, 0x6e, 0x05, 0x2f, 0x1f, 0x00, - 0x38, 0x17, 0x42, 0x28, 0x1b, 0x3b, 0xf0, 0x48, 0x07, 0x38, 0x19, 0x0e, - 0x94, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x0a, 0x09, 0x07, 0x0d, 0x00, 0x08, - 0x08, 0x0a, 0x0a, 0x0a, 0x08, 0x0b, 0x09, 0x80, 0x20, 0x05, 0x0a, 0x6d, - 0x1d, 0x8b, 0x01, 0x00, 0x00, 0x00, 0x0c, 0x69, 0xd0, 0x30, 0xec, 0x30, - 0xf3, 0x30, 0x02, 0xb7, 0x30, 0xa2, 0x30, 0xde, 0x5d, 0x06, 0x38, 0x17, - 0x56, 0xde, 0x48, 0x13, 0x3f, 0x27, 0x63, 0x06, 0x28, 0x15, 0xd0, 0x7f, - 0x05, 0xf8, 0x13, 0x07, 0x30, 0xff, 0x43, 0xab, 0x2d, 0x97, 0x6d, 0x45, - 0x93, 0x69, 0x2f, 0xb5, 0xe0, 0x2f, 0xaf, 0xf1, 0x91, 0xf0, 0x04, 0xd8, - 0x2b, 0xd0, 0x7f, 0x3a, 0x23, 0x05, 0xd0, 0x81, 0xf4, 0x5d, 0x26, 0x4f, - 0x20, 0x7f, 0x89, 0x06, 0x78, 0x15, 0x00, 0x00, 0x1c, 0xbc, 0x0c, 0x00, - 0xb8, 0xdc, 0xc2, 0x44, 0xc5, 0x20, 0x00, 0xfc, 0x55, 0xc8, 0x0e, 0x93, - 0x7f, 0xea, 0x06, 0x83, 0xff, 0x12, 0x48, 0x13, 0x35, 0x28, 0x13, 0x70, - 0x41, 0x06, 0x28, 0x15, 0x07, 0xd4, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x0b, - 0x13, 0x13, 0x13, 0x10, 0x0a, 0x0a, 0x0b, 0x20, 0x06, 0x05, 0x13, 0x0b, - 0x0b, 0x00, 0x0b, 0x0b, 0x11, 0x1c, 0xbe, 0xff, 0x00, 0x00, 0x01, 0x0d, - 0x69, 0xa8, 0x30, 0xb9, 0x30, 0xc8, 0x28, 0x1b, 0x00, 0xde, 0x30, 0xc9, - 0x30, 0xa5, 0x30, 0xfc, 0x30, 0x22, 0xe9, 0x30, 0x05, 0xdf, 0xb0, 0x45, - 0x00, 0x78, 0x2f, 0xaf, 0x72, 0xaa, 0x2f, 0xa7, 0x6d, 0x2f, 0xb9, 0x64, - 0x2e, 0x35, 0x72, 0x05, 0xce, 0xb3, 0x45, 0x2f, 0x00, 0x73, 0x40, 0x7f, - 0xe9, 0xa0, 0x7f, 0x05, 0xb8, 0x1f, 0x07, 0x70, 0xff, 0x06, 0x91, 0x7f, - 0x80, 0x06, 0xd1, 0xff, 0xc3, 0x57, 0xaf, 0x65, 0x79, 0x72, 0xf7, 0x01, - 0x96, 0x6c, 0x9a, 0x5c, 0x67, 0xc9, 0x62, 0x06, 0x18, 0x1d, 0x00, 0xd0, - 0xc5, 0xa4, 0xc2, 0xb8, 0xd2, 0x08, 0xb8, 0x03, 0xc8, 0xb9, 0x50, 0xb4, - 0x7c, 0xb7, 0x06, 0x1b, 0x99, 0x0e, 0xf2, 0x7f, 0x45, 0x2d, 0x28, 0x0f, - 0x42, 0x04, 0x40, 0x28, 0x19, 0x3c, 0x28, 0x21, 0x17, 0x34, 0x04, 0x43, - 0x20, 0x0b, 0x30, 0x05, 0xa8, 0x1d, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, - 0x7f, 0x00, 0x0c, 0x0b, 0x09, 0x07, 0x0b, 0x0b, 0x0c, 0x0c, 0x10, 0x0c, - 0x0a, 0x13, 0x30, 0x05, 0x0c, 0xac, 0x1b, 0x7e, 0x00, 0xfb, 0x00, 0x00, - 0x0e, 0x69, 0xac, 0x30, 0xea, 0x8d, 0x28, 0x0d, 0xb7, 0x30, 0xa2, 0x05, - 0xe8, 0x0f, 0x7f, 0xff, 0x47, 0x4f, 0xaf, 0x7e, 0x69, 0x06, 0x6f, 0x2d, - 0xb0, 0x7f, 0x05, 0xb8, 0x0d, 0x00, 0x50, 0xff, 0x3f, 0xa3, 0x06, 0x71, - 0x7f, 0x7a, 0xc0, 0x07, 0x01, 0x7f, 0x06, 0x51, 0xff, 0xa0, 0x52, 0x29, - 0x52, 0x7f, 0x89, 0x30, 0x9a, 0x4e, 0x06, 0x18, 0x11, 0x5f, 0xff, 0x08, - 0xac, 0xac, 0xb9, 0x0d, 0xdc, 0xc2, 0x44, 0xc5, 0x06, 0x53, 0x7d, 0xd3, - 0x7f, 0xeb, 0x06, 0xa3, 0xff, 0x44, 0x7a, 0x06, 0x43, 0xfd, 0x00, 0x00, - 0x13, 0x28, 0x0d, 0x3b, 0x04, 0x47, 0x38, 0x28, 0x1d, 0x38, 0x04, 0x4f, - 0x05, 0xa8, 0x0f, 0x08, 0x14, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x00, 0x0d, - 0x0c, 0x0a, 0x08, 0x0c, 0x0c, 0x0d, 0x0d, 0x10, 0x0d, 0x0b, 0x06, 0x30, - 0x05, 0x0d, 0x7d, 0x1e, 0xed, 0x00, 0xf9, 0x00, 0x00, 0x0f, 0x69, 0xe0, - 0x30, 0xeb, 0x97, 0x48, 0x15, 0xde, 0x5d, 0x06, 0x58, 0x17, 0x4d, 0x4f, - 0xa1, 0x06, 0x78, 0x15, 0xb0, 0x7f, 0xe1, 0x06, 0x58, 0x17, 0x07, 0x90, - 0xff, 0x0e, 0x50, 0x7f, 0x46, 0x7a, 0x14, 0x5c, 0x06, 0xb8, 0x17, 0x10, - 0x34, 0xbb, 0x74, 0x48, 0x17, 0x20, 0x00, 0xfc, 0xc8, 0xa0, 0x0e, 0x53, - 0x7f, 0xfa, 0x06, 0xc3, 0xff, 0x1c, 0x04, 0x43, 0x04, 0x40, 0xe0, 0x06, - 0x88, 0x15, 0x10, 0x07, 0x13, 0xff, 0x0e, 0xf5, 0x7f, 0x0e, 0x10, 0x10, - 0x11, 0x10, 0x00, 0x11, 0x0e, 0x0e, 0x11, 0x10, 0x0e, 0x10, 0x0e, 0x00, - 0x0e, 0x0e, 0x0e, 0x02, 0x1b, 0x34, 0xff, 0x00, 0x00, 0x00, 0x10, 0x69, - 0xca, 0x30, 0xd0, 0x30, 0xfc, 0x2a, 0x30, 0xe9, 0x06, 0x88, 0x17, 0x4e, - 0x2f, 0xaf, 0x76, 0x2f, 0xb3, 0x72, 0xf8, 0x28, 0x1d, 0x06, 0x3f, 0xb1, - 0x07, 0xb0, 0x7f, 0x06, 0x3f, 0xaf, 0x0e, 0xf0, 0x7f, 0xb3, 0x7e, 0xe6, - 0x10, 0x74, 0xc9, 0x62, 0x06, 0x78, 0x15, 0x00, 0x00, 0x98, 0xb0, 0x0c, - 0x14, 0xbc, 0x7c, 0xb7, 0x06, 0x78, 0x15, 0x0f, 0x12, 0x7f, 0x1d, 0x04, - 0x15, 0x30, 0x04, 0x32, 0x20, 0x03, 0x40, 0x28, 0x1d, 0x30, 0x06, 0x28, - 0x19, 0xc0, 0x0f, 0xb4, 0xff, 0x10, 0x06, 0x30, 0xff, 0x0f, 0x11, 0x11, - 0x12, 0x11, 0x12, 0x00, 0x0f, 0x0f, 0x12, 0x11, 0x0f, 0x11, 0x0f, 0x0f, - 0x00, 0x0f, 0x0f, 0x72, 0x1e, 0xd4, 0xfe, 0x00, 0x00, 0x00, 0x11, 0x69, - 0xd0, 0x30, 0xb9, 0x30, 0xaf, 0x30, 0xd1, 0x06, 0x58, 0x13, 0x3f, 0xff, - 0x42, 0x2f, 0x27, 0x73, 0x00, 0x71, 0x2f, 0xb5, 0x01, 0x65, 0x00, 0x20, - 0x00, 0x43, 0x00, 0x6f, 0x2f, 0xbf, 0x15, 0x6e, 0x00, 0x74, 0x2f, 0xc3, - 0x79, 0x05, 0x4f, 0xbf, 0x50, 0x2f, 0xa7, 0x46, 0x79, 0x20, 0x81, 0x20, - 0x00, 0x62, 0xa0, 0x89, 0x05, 0xf0, 0xff, 0x6b, 0x88, 0x29, 0x13, 0x6e, - 0x00, 0x6c, 0x2f, 0xb3, 0x6e, 0x00, 0x64, 0xd6, 0x05, 0xcf, 0xb7, 0x30, - 0xff, 0x65, 0x21, 0x81, 0x69, 0x21, 0x7d, 0x51, 0x8b, 0x63, 0x35, 0x00, - 0x68, 0x2f, 0xbd, 0x05, 0xb0, 0x7f, 0xed, 0x41, 0x7f, 0x56, 0x60, 0x7d, - 0x40, 0x6f, 0x05, 0xcf, 0xb4, 0xf4, 0x5d, 0xaf, 0x65, 0x4b, 0x51, 0x81, - 0x06, 0x98, 0x17, 0x14, 0xbc, 0xa4, 0xc2, 0x6c, 0xd0, 0x06, 0xf3, 0x7f, - 0xf1, 0x06, 0xd2, 0x7f, 0x51, 0xff, 0x72, 0x7d, 0x05, 0xd1, 0xff, 0x21, - 0x04, 0x42, 0x48, 0x11, 0x44, 0x3d, 0x28, 0x1f, 0x20, 0x00, 0x11, 0x28, - 0x25, 0x41, 0x04, 0x1c, 0x3a, 0x04, 0x3e, 0x28, 0x2b, 0x0d, 0x54, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x10, 0x04, 0x00, 0x12, 0x05, 0x12, 0x13, 0x10, - 0x10, 0x05, 0x12, 0x00, 0x12, 0x04, 0x10, 0x10, 0x10, 0x10, 0x78, 0x1e, - 0x40, 0x1a, 0x28, 0x17, 0x12, 0x69, 0xe9, 0x30, 0xfb, 0x30, 0x00, 0xea, - 0x30, 0xaa, 0x30, 0xcf, 0x30, 0xde, 0x5d, 0xa2, 0x06, 0x3d, 0x2f, 0x4c, - 0x2f, 0xaf, 0x20, 0x00, 0x52, 0x26, 0x97, 0x6f, 0x30, 0x00, 0x6a, 0x06, - 0x2f, 0x31, 0x10, 0x0e, 0xf0, 0x7f, 0xc9, 0x62, 0xcc, 0x91, 0x08, 0x65, - 0x59, 0xc8, 0x54, 0x06, 0x78, 0x19, 0x7c, 0xb7, 0xac, 0x06, 0xb9, 0x24, - 0xc6, 0x58, 0xd5, 0x06, 0x7b, 0x99, 0x0e, 0xf3, 0x7f, 0x20, 0x2e, 0x04, - 0x38, 0x28, 0x05, 0x45, 0x28, 0x19, 0x10, 0x06, 0x51, 0x7f, 0x10, 0x06, - 0xf5, 0xff, 0x11, 0x00, 0x0d, 0x0d, 0x0e, 0x0d, 0x0e, 0x11, 0x11, 0x0e, - 0x00, 0x0d, 0x10, 0x0d, 0x11, 0x11, 0x11, 0x11, 0x32, 0x20, 0x1e, 0x42, - 0x28, 0x17, 0x13, 0x69, 0xbb, 0x30, 0xa6, 0x15, 0x30, 0xbf, 0x30, 0x06, - 0x9c, 0xaf, 0x43, 0x2f, 0x9d, 0x75, 0x2b, 0x1f, 0xc2, 0x06, 0x18, 0x11, - 0x10, 0x0f, 0x50, 0x7f, 0x11, 0x4f, 0xbe, 0x8f, 0x06, 0x9f, 0xad, 0x00, - 0x01, 0x00, 0x38, 0xc1, 0xb0, 0xc6, 0xc0, 0xd0, 0x10, 0x06, 0x93, 0x7f, - 0x01, 0x21, 0x04, 0x35, 0x04, 0x43, 0x04, 0x42, 0x06, 0x88, 0x17, 0x80, - 0x10, 0x16, 0xf4, 0xff, 0x12, 0x0a, 0x08, 0x06, 0x09, 0x09, 0x12, 0x00, - 0x12, 0x0b, 0x09, 0x11, 0x0a, 0x12, 0x12, 0x12, 0x00, 0x12, 0x84, 0x19, - 0x39, 0xfc, 0x00, 0x00, 0x14, 0x02, 0x69, 0xe1, 0x30, 0xea, 0x30, 0xe9, - 0x06, 0xa8, 0x17, 0x4d, 0xae, 0x28, 0x17, 0x6c, 0x2f, 0xad, 0x6c, 0x20, - 0x05, 0x06, 0x38, 0x1b, 0x10, 0x0e, 0xf0, 0x7f, 0x85, 0x01, 0x68, 0x29, - 0x52, 0x29, 0x52, 0x9a, 0x4e, 0x06, 0x7f, 0xaf, 0x02, 0x5c, 0xba, 0xac, - 0xb9, 0x7c, 0xc5, 0x10, 0x06, 0x93, 0x7f, 0x1c, 0x88, 0x28, 0x17, 0x3b, - 0x04, 0x38, 0x20, 0x03, 0x4c, 0x04, 0x4f, 0xc0, 0x06, 0x28, 0x1b, 0x10, - 0x16, 0xf4, 0xff, 0x13, 0x0f, 0x0f, 0x10, 0x0f, 0x10, 0x00, 0x13, 0x13, - 0x10, 0x0f, 0x0d, 0x0f, 0x13, 0x13, 0x02, 0x13, 0x13, 0x1a, 0x19, 0xe7, - 0xfd, 0x00, 0x3f, 0xff, 0x01, 0x00, 0x0e, 0x0e, 0x0f, 0x0e, 0x0f, 0x01, - 0x01, 0x0f, 0x00, 0x0e, 0x0c, 0x0e, 0x01, 0x01, 0x01, 0x01, 0x02, 0x90, - 0x30, 0x04, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x48, 0x03, - 0x30, 0x04, 0x02, 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x00, 0x03, 0x04, - 0x12, 0x03, 0x03, 0x13, 0x03, 0x04, 0x40, 0x04, 0x20, 0x0b, 0x12, 0x04, - 0x04, 0x04, 0x04, 0x05, 0x00, 0x03, 0x0b, 0x04, 0x03, 0x0d, 0x05, 0x05, - 0x04, 0x00, 0x0c, 0x04, 0x03, 0x05, 0x05, 0x05, 0x05, 0x06, 0x00, 0x05, - 0x0c, 0x09, 0x04, 0x04, 0x06, 0x06, 0x06, 0x10, 0x04, 0x07, 0x05, 0x20, - 0x05, 0x06, 0x07, 0x06, 0x04, 0x00, 0x0a, 0x05, 0x05, 0x07, 0x07, 0x07, - 0x05, 0x08, 0x40, 0x06, 0x20, 0x05, 0x07, 0x08, 0x07, 0x06, 0x0b, 0x06, - 0x14, 0x06, 0x08, 0x08, 0x28, 0xb5, 0x07, 0x20, 0x05, 0x08, 0x09, 0x00, - 0x08, 0x05, 0x0c, 0x07, 0x07, 0x09, 0x09, 0x09, 0x10, 0x07, 0x0a, 0x08, - 0x20, 0x05, 0x09, 0x0a, 0x09, 0x07, 0x00, 0x0d, 0x08, 0x08, 0x0a, 0x0a, - 0x0a, 0x08, 0x0b, 0x4e, 0x09, 0x20, 0x05, 0x0a, 0x0b, 0x20, 0xbc, 0x20, - 0x05, 0x20, 0x06, 0x05, 0x00, 0x13, 0x0b, 0x0b, 0x0b, 0x0b, 0x0c, 0x0b, - 0x09, 0x42, 0x07, 0x20, 0x05, 0x0c, 0x0c, 0x0a, 0x13, 0x30, 0x05, 0x0c, - 0x08, 0x0d, 0x0c, 0x0a, 0x08, 0x20, 0x05, 0x0d, 0x0d, 0x0b, 0x40, 0x06, - 0x30, 0x05, 0x0d, 0x0e, 0x10, 0x10, 0x11, 0x10, 0x00, 0x11, 0x0e, 0x0e, - 0x11, 0x10, 0x0e, 0x10, 0x0e, 0x40, 0x0e, 0x20, 0xdc, 0x11, 0x11, 0x12, - 0x11, 0x12, 0x0f, 0x01, 0x0f, 0x12, 0x11, 0x0f, 0x11, 0x0f, 0x0f, 0x21, - 0x14, 0x00, 0x04, 0x12, 0x05, 0x12, 0x13, 0x10, 0x10, 0x05, 0x06, 0x12, - 0x12, 0x04, 0x10, 0x10, 0x20, 0x2c, 0x20, 0x32, 0x0d, 0x00, 0x0e, 0x11, - 0x11, 0x0e, 0x0d, 0x10, 0x0d, 0x11, 0x78, 0x11, 0x20, 0x2c, 0xe9, 0x4f, - 0xf1, 0x47, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x11, 0xd4, 0x28, 0x00, - 0x11, 0x04, 0x00, 0x00, 0x30, 0x01, 0x6a, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x49, 0xed, 0x24, - 0x16, 0x00, 0x01, 0x00, 0x02, 0x6a, 0xdb, 0x30, 0xdb, 0x30, 0x06, 0xb8, - 0x19, 0x07, 0x48, 0x00, 0x68, 0x00, 0x6f, 0x20, 0x03, 0x30, 0x05, 0x10, - 0x16, 0x30, 0x7f, 0x02, 0x0d, 0x97, 0x0d, 0x97, 0x3a, 0x53, 0x06, 0x9b, - 0x1b, 0x38, 0x10, 0xd6, 0x38, 0xd6, 0x10, 0x06, 0xb3, 0x7f, 0x25, 0x04, - 0x3e, 0x04, 0x65, 0x45, 0x20, 0x03, 0x10, 0x1e, 0x74, 0xff, 0x01, 0x01, - 0x70, 0x01, 0x03, 0x40, 0x0a, 0x80, 0x58, 0x17, 0x03, 0x6a, 0xeb, 0x30, - 0xdc, 0x30, 0xf3, 0xc1, 0x20, 0x03, 0x06, 0x7f, 0xb5, 0x4c, 0x00, 0x75, - 0x00, 0x62, 0x28, 0x19, 0x60, 0x6d, 0x40, 0x05, 0x10, 0x16, 0x10, 0x7f, - 0x62, 0x53, 0xa6, 0x90, 0x5a, 0x40, 0x53, 0x06, 0x98, 0x19, 0x5c, 0xb8, - 0x24, 0xbc, 0x14, 0xbc, 0xc1, 0x06, 0x9f, 0xb3, 0x0e, 0xf3, 0x7f, 0x1b, - 0x04, 0x43, 0x04, 0x31, 0x28, 0x1b, 0x65, 0x3c, 0x40, 0x05, 0x10, 0x1e, - 0x14, 0xff, 0x02, 0x02, 0x70, 0x01, 0x01, 0x40, 0x0a, 0x11, 0x31, 0xed, - 0xb8, 0x28, 0x17, 0x04, 0x6a, 0xde, 0x28, 0x15, 0x10, 0xb8, 0x30, 0xcb, - 0x06, 0x88, 0x17, 0x4d, 0x00, 0x61, 0x00, 0x05, 0x6e, 0x00, 0x7a, 0x00, - 0x69, 0x20, 0x05, 0x69, 0x10, 0x16, 0x20, 0x7f, 0x02, 0xfc, 0x66, 0x50, - 0x9f, 0x3c, 0x5c, 0x06, 0x98, 0x17, 0xcc, 0x06, 0xb9, 0xc0, 0xc9, 0xc8, - 0xb2, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x1c, 0x00, 0x04, 0x30, 0x04, - 0x3d, 0x04, 0x37, 0x04, 0x38, 0xb2, 0x20, 0x05, 0x38, 0x06, 0x28, 0x17, - 0x10, 0x16, 0xf4, 0xff, 0x03, 0x03, 0x70, 0x01, 0x02, 0x88, 0x40, 0x0a, - 0x2a, 0xed, 0x51, 0x28, 0x17, 0x05, 0x6a, 0xb7, 0x00, 0x30, 0xbb, 0x30, - 0xeb, 0x30, 0xa6, 0x30, 0xa7, 0x88, 0x06, 0x68, 0x1b, 0x53, 0x00, 0x68, - 0x28, 0x13, 0x73, 0x00, 0x65, 0x0e, 0x00, 0x6c, 0x00, 0x77, 0x20, 0x05, - 0x05, 0xf8, 0x1d, 0x10, 0x0e, 0xf0, 0x7f, 0x0c, 0x01, 0x5e, 0x5e, 0x58, - 0x62, 0x53, 0xe6, 0x97, 0x06, 0x78, 0x1b, 0x03, 0xdc, 0xc2, 0x40, 0xc1, - 0xe8, 0xc6, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0x40, 0x28, 0x28, 0x11, - 0x41, 0x04, 0x35, 0x04, 0x3b, 0x04, 0x72, 0x32, 0x20, 0x05, 0x06, 0x18, - 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x04, 0x04, 0xd0, 0x01, 0xba, 0x32, 0xec, - 0x30, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x01, 0x01, 0x70, 0x01, 0x03, 0x9f, - 0x40, 0x0a, 0x02, 0x02, 0x70, 0x01, 0x50, 0x0a, 0xf8, 0x5f, 0xf0, 0x57, - 0x3f, 0xf2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x7c, 0xb3, 0x00, - 0x11, 0x15, 0x00, 0x00, 0x30, 0x01, 0x6b, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x28, 0x2a, 0xda, - 0x0c, 0x00, 0x00, 0x00, 0x02, 0x6b, 0xb9, 0x30, 0xc8, 0x30, 0xc3, 0x00, - 0x30, 0xaf, 0x30, 0xdb, 0x30, 0xeb, 0x30, 0xe0, 0x10, 0x30, 0xde, 0x5d, - 0x05, 0xf8, 0x25, 0x53, 0x00, 0x74, 0x00, 0x01, 0x6f, 0x00, 0x63, 0x00, - 0x6b, 0x00, 0x68, 0x20, 0x07, 0x01, 0x6c, 0x00, 0x6d, 0x00, 0x20, 0x00, - 0x43, 0x20, 0x11, 0x16, 0x75, 0x00, 0x6e, 0x20, 0x19, 0x79, 0x06, 0x20, - 0x7f, 0x06, 0xf0, 0xff, 0x73, 0x8d, 0x21, 0x01, 0x6c, 0x00, 0xe4, 0x20, - 0xff, 0x05, 0xb1, 0x7f, 0x63, 0x61, 0x7d, 0x5d, 0x61, 0x05, 0xea, 0x26, - 0x45, 0x20, 0xef, 0x52, 0x01, 0x51, 0xfd, 0x6f, 0x05, 0xea, 0xa6, 0x00, - 0xaf, 0x65, 0xb7, 0x5f, 0xe5, 0x54, 0x14, 0x5c, 0x08, 0x69, 0x64, 0x01, - 0x77, 0x06, 0x3b, 0x21, 0xa4, 0xc2, 0xa1, 0x00, 0xd1, 0x40, 0xd6, 0x84, - 0xb9, 0x20, 0x00, 0xfc, 0x70, 0xc8, 0x06, 0x3b, 0xa1, 0x06, 0xf2, 0x7f, - 0x06, 0xf1, 0xff, 0x1b, 0x04, 0x35, 0x04, 0x00, 0x3d, 0x04, 0x20, 0x00, - 0x21, 0x04, 0x42, 0x04, 0x04, 0x3e, 0x04, 0x3a, 0x04, 0x33, 0x20, 0x05, - 0x3b, 0x04, 0x0c, 0x4c, 0x04, 0x3c, 0x04, 0x0e, 0x74, 0xff, 0x10, 0x0d, - 0xd0, 0x7f, 0x01, 0x0f, 0x00, 0x0f, 0x0f, 0x0f, 0x04, 0x01, 0x01, 0x0f, - 0x04, 0x02, 0x11, 0x0f, 0x01, 0x01, 0x01, 0x01, 0x58, 0x17, 0x03, 0x83, - 0x28, 0x17, 0xb3, 0x30, 0xfc, 0x30, 0xcd, 0x06, 0x28, 0x11, 0x78, 0x17, - 0x17, 0x6b, 0x00, 0xe5, 0x28, 0x03, 0x65, 0x05, 0xe8, 0x0f, 0x00, 0x10, - 0x7f, 0x07, 0x10, 0xff, 0xd1, 0x05, 0x98, 0x0d, 0xb9, 0x97, 0x63, 0x28, - 0x0b, 0x6e, 0x00, 0x69, 0x06, 0x08, 0x11, 0xc0, 0x98, 0x17, 0x06, 0xb0, - 0x81, 0xaf, 0x65, 0xd1, 0x79, 0x10, 0x80, 0xc3, 0x06, 0x58, 0x13, 0x58, - 0x17, 0x54, 0xcf, 0x24, 0xb1, 0x06, 0x78, 0x15, 0x07, 0x12, 0x7f, 0xb5, - 0x51, 0xff, 0xe2, 0x06, 0x82, 0x81, 0x98, 0x17, 0x3a, 0x28, 0x17, 0x3d, - 0x28, 0x25, 0xc0, 0x0e, 0x74, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x02, 0x0d, - 0x0d, 0x0d, 0x0d, 0x03, 0x00, 0x02, 0x02, 0x0d, 0x03, 0x10, 0x0d, 0x02, - 0x02, 0x00, 0x02, 0x02, 0x89, 0x27, 0x3e, 0x09, 0x00, 0x00, 0x00, 0x04, - 0x6b, 0xf4, 0x30, 0xa7, 0x30, 0xb9, 0x30, 0x01, 0xc8, 0x30, 0xe9, 0x30, - 0xfb, 0x30, 0xa4, 0x20, 0x0b, 0x11, 0xfc, 0x30, 0xbf, 0x20, 0x0b, 0xf3, - 0x30, 0xc9, 0x05, 0x68, 0x29, 0x68, 0x56, 0x2f, 0x19, 0x3e, 0x31, 0x72, - 0x2e, 0xa9, 0x20, 0x00, 0x47, 0x2d, 0x00, 0xf6, 0x2f, 0xbf, 0x61, 0x2f, - 0xb7, 0x36, 0xab, 0x64, 0x05, 0x2b, 0x3b, 0xf8, 0x00, 0xd0, 0x7f, 0x06, - 0xf0, 0xff, 0x05, 0x1d, 0xbb, 0x08, 0xd0, 0xff, 0x05, 0x1f, 0xc1, 0x7f, - 0x89, 0xa6, 0x04, 0x7e, 0x79, 0x72, 0x70, 0x51, 0x06, 0x78, 0x19, 0xa0, - 0xbc, 0x00, 0xa4, 0xc2, 0xb8, 0xd2, 0x7c, 0xb7, 0x08, 0xc6, 0x03, 0xc8, - 0xd0, 0x80, 0xb7, 0xdc, 0xb4, 0x05, 0xf8, 0x21, 0x0e, 0xf2, 0x7f, 0xa0, - 0x78, 0x17, 0x12, 0x28, 0x1f, 0x41, 0x04, 0x42, 0x04, 0x40, 0x00, 0x04, - 0x30, 0x04, 0x2d, 0x00, 0x13, 0x04, 0x51, 0x88, 0x20, 0x0b, 0x30, 0x04, - 0x3b, 0x20, 0x0d, 0x3d, 0x04, 0x34, 0xe2, 0x04, 0xa8, 0x2b, 0x08, 0xd4, - 0xff, 0x10, 0x0d, 0x10, 0x7f, 0x03, 0x15, 0x15, 0x20, 0x01, 0x03, 0xa0, - 0x20, 0x06, 0x07, 0x20, 0x05, 0x03, 0x03, 0x09, 0x29, 0x83, 0x02, 0x08, - 0x00, 0x00, 0x05, 0x6b, 0xa8, 0x28, 0x15, 0xc6, 0x3d, 0x30, 0xeb, 0x48, - 0x13, 0x38, 0x1d, 0x05, 0x98, 0x11, 0x5f, 0xff, 0xd6, 0x48, 0x15, 0x5f, - 0x65, 0x28, 0x17, 0x67, 0x48, 0x13, 0x05, 0x98, 0x11, 0x00, 0xd0, 0x7f, - 0x06, 0xf0, 0xff, 0x05, 0x18, 0x11, 0xc8, 0x08, 0xd0, 0xff, 0x05, 0x7f, - 0xbf, 0x1c, 0x4e, 0x06, 0xd8, 0x17, 0x78, 0xc6, 0xa4, 0x00, 0xc2, 0x4c, - 0xd1, 0x74, 0xb9, 0x08, 0xc6, 0xc0, 0x75, 0xd2, 0x06, 0x38, 0x17, 0x0e, - 0xf2, 0x7f, 0x78, 0x17, 0x2d, 0x48, 0x15, 0x35, 0x28, 0x17, 0x78, 0x33, - 0x48, 0x13, 0x05, 0x18, 0x11, 0x08, 0xd4, 0xff, 0x10, 0x0d, 0x70, 0x7f, - 0x04, 0x0c, 0x0c, 0x00, 0x0c, 0x0c, 0x0e, 0x04, 0x04, 0x0c, 0x0e, 0x15, - 0x00, 0x0c, 0x04, 0x04, 0x04, 0x04, 0x87, 0x29, 0x1e, 0x00, 0x0b, 0x00, - 0x00, 0x06, 0x6b, 0xbb, 0x30, 0xfc, 0x2c, 0x30, 0xc7, 0x28, 0x17, 0xde, - 0x28, 0x11, 0x06, 0x18, 0x15, 0x00, 0x00, 0x57, 0x53, 0x2f, 0xa1, 0x64, - 0x48, 0x17, 0x6d, 0x4f, 0xa3, 0x05, 0xf8, 0x17, 0x00, 0x70, 0x7f, 0xf0, - 0x06, 0xf0, 0xff, 0x05, 0x78, 0x17, 0x08, 0x70, 0xff, 0x05, 0x7f, 0xbd, - 0x57, 0x53, 0xfc, 0x66, 0x80, 0x06, 0x98, 0x15, 0x00, 0x00, 0xe0, 0xc1, - 0x70, 0xb3, 0x74, 0x1d, 0xb9, 0xcc, 0xb9, 0x06, 0x38, 0x13, 0x0f, 0x32, - 0x7f, 0x78, 0x17, 0x21, 0x28, 0x0d, 0x5e, 0x34, 0x48, 0x17, 0x3c, 0x48, - 0x11, 0x05, 0x78, 0x17, 0x08, 0x74, 0xff, 0x10, 0x0d, 0x70, 0x7f, 0x05, - 0x00, 0x0e, 0x0e, 0x0e, 0x0e, 0x0f, 0x05, 0x05, 0x0e, 0x00, 0x0f, 0x0f, - 0x0e, 0x05, 0x05, 0x05, 0x05, 0xc8, 0x00, 0x29, 0x19, 0x0c, 0x00, 0x00, - 0x07, 0x6b, 0xd9, 0xb7, 0x28, 0x13, 0xe0, 0x06, 0x48, 0x11, 0x5f, 0xff, - 0x56, 0x2f, 0x13, 0x38, 0x13, 0x05, 0xfb, 0x27, 0xf8, 0x00, 0x70, 0x7f, - 0x06, 0xf0, 0xff, 0x05, 0x7d, 0xa7, 0x08, 0x70, 0xff, 0x05, 0xff, 0xb5, - 0xe6, 0x97, 0xc6, 0x47, 0x59, 0x06, 0xb8, 0x17, 0xa0, 0xbc, 0x84, 0x06, - 0x88, 0x13, 0x0f, 0x32, 0x7f, 0x78, 0x17, 0x78, 0x12, 0x68, 0x13, 0x05, - 0x78, 0x0f, 0x08, 0x74, 0xff, 0x10, 0x0d, 0xf0, 0x7f, 0x06, 0x11, 0x11, - 0xa8, 0x20, 0x01, 0x06, 0x20, 0x06, 0x03, 0x20, 0x05, 0x06, 0x06, 0x3b, - 0x00, 0x2a, 0x9a, 0x09, 0x00, 0x00, 0x08, 0x6b, 0xa6, 0x0e, 0x30, 0xd7, - 0x30, 0xb5, 0x28, 0x17, 0x06, 0x38, 0x13, 0x3f, 0xff, 0x55, 0x2f, 0x00, - 0x70, 0x20, 0x01, 0x73, 0x2f, 0xab, 0x3f, 0xa9, 0x05, 0xf8, 0x15, 0xf0, - 0x7f, 0xf0, 0x07, 0x10, 0xff, 0x05, 0xb8, 0x13, 0x08, 0x10, 0xff, 0x06, - 0x1f, 0xb5, 0x4c, 0x4e, 0x6e, 0x66, 0x08, 0x28, 0x84, 0xc9, 0x62, 0x06, - 0x78, 0x19, 0xc1, 0xc6, 0xb4, 0x1c, 0xc0, 0x7c, 0xb7, 0x06, 0x78, 0x15, - 0x0f, 0x12, 0x7f, 0x78, 0x17, 0x23, 0x04, 0x5e, 0x3f, 0x20, 0x01, 0x41, - 0x28, 0x15, 0x38, 0x19, 0x0e, 0x74, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x07, - 0x2a, 0x10, 0x10, 0x20, 0x01, 0x07, 0x20, 0x06, 0x12, 0x20, 0x05, 0x07, - 0x00, 0x07, 0x90, 0x2a, 0x8a, 0x0c, 0x00, 0x00, 0x09, 0x00, 0x6b, 0xa4, - 0x30, 0xa7, 0x30, 0xfc, 0x30, 0xd6, 0x02, 0x30, 0xec, 0x30, 0xdc, 0x30, - 0xea, 0x06, 0x28, 0x1d, 0x47, 0xa2, 0x2f, 0xaf, 0x76, 0x2f, 0xad, 0x65, - 0x00, 0x62, 0x2b, 0x27, 0x72, 0x3f, 0x00, 0x67, 0x05, 0xeb, 0x31, 0x00, - 0x10, 0x7f, 0x06, 0xf0, 0xff, 0x05, 0xdd, 0xb1, 0x08, 0x10, 0xff, 0x05, - 0xdf, 0xb9, 0x00, 0x36, 0x80, 0x2b, 0x59, 0xd2, 0x52, 0x21, 0x58, 0x80, - 0x06, 0x78, 0x17, 0x08, 0xc6, 0x14, 0xbe, 0x08, 0xb8, 0xf4, 0x1c, 0xbc, - 0xac, 0xb9, 0x06, 0x58, 0x1b, 0x0e, 0xf2, 0x7f, 0x78, 0x17, 0x15, 0x04, - 0x40, 0x32, 0x28, 0x11, 0x35, 0x04, 0x31, 0x04, 0x3e, 0x04, 0x1c, 0x40, - 0x04, 0x33, 0x05, 0x88, 0x19, 0x08, 0x14, 0xff, 0x10, 0x0d, 0xd0, 0x7f, - 0x08, 0x03, 0x00, 0x03, 0x03, 0x03, 0x05, 0x08, 0x08, 0x03, 0x05, 0x00, - 0x09, 0x03, 0x08, 0x08, 0x08, 0x08, 0x25, 0x2b, 0x40, 0x38, 0x28, 0x17, - 0x0a, 0x6b, 0xd9, 0x30, 0xb9, 0x30, 0x15, 0xc6, 0x30, 0xeb, 0x28, 0x15, - 0xc3, 0x20, 0x07, 0xf3, 0x06, 0x08, 0x19, 0x56, 0x56, 0x2f, 0x1f, 0x73, - 0x2b, 0x1d, 0x65, 0x28, 0x13, 0x38, 0x19, 0x74, 0xbf, 0x40, 0x0b, 0x6e, - 0x05, 0x8b, 0x39, 0x00, 0x70, 0x7f, 0x06, 0xf0, 0xff, 0x05, 0x78, 0x1d, - 0x08, 0x70, 0xff, 0x05, 0x7f, 0xbd, 0x02, 0x7f, 0x89, 0x5a, 0x53, 0xd5, - 0x6e, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0xa0, 0xbc, 0xa4, 0xc2, 0x4c, - 0xd1, 0x74, 0x07, 0xb9, 0xf4, 0xbc, 0x50, 0xd1, 0x06, 0x38, 0x19, 0x0e, - 0xf2, 0x7f, 0x78, 0x17, 0x45, 0x12, 0x28, 0x1f, 0x41, 0x04, 0x42, 0x28, - 0x25, 0x40, 0x48, 0x1b, 0x5c, 0x42, 0x40, 0x0b, 0x3d, 0x05, 0x08, 0x1f, - 0x08, 0x74, 0xff, 0x10, 0x0d, 0x70, 0x7f, 0x09, 0x12, 0x54, 0x12, 0x20, - 0x01, 0x09, 0x20, 0x06, 0x04, 0x20, 0x05, 0x09, 0x09, 0x00, 0x62, 0x2d, - 0x66, 0x0e, 0x00, 0x00, 0x0b, 0x6b, 0x6f, 0xce, 0x06, 0xa8, 0x13, 0x3f, - 0xff, 0x4e, 0x4f, 0xa5, 0x06, 0x58, 0x13, 0x00, 0x70, 0x7f, 0x06, 0xf0, - 0xff, 0xe4, 0x05, 0xbd, 0xb1, 0x08, 0x30, 0xff, 0x05, 0xbf, 0xb9, 0x17, - 0x53, 0x06, 0xd8, 0x17, 0x78, 0xb1, 0xeb, 0x06, 0x98, 0x13, 0x0f, 0x32, - 0x7f, 0x78, 0x17, 0x1d, 0x28, 0x0b, 0x40, 0x05, 0xe8, 0x13, 0x08, 0x74, - 0xff, 0x95, 0x10, 0x0d, 0xb0, 0x7f, 0x0a, 0x0a, 0x20, 0x01, 0x0c, 0x30, - 0x03, 0x0e, 0x40, 0x0a, 0x00, 0xa2, 0x2e, 0xcc, 0x0f, 0x00, 0x00, 0x0c, - 0x6b, 0x05, 0xb4, 0x30, 0xc8, 0x30, 0xe9, 0x28, 0x13, 0xc9, 0x06, 0x48, - 0x15, 0x11, 0x00, 0x00, 0x47, 0x4f, 0xa3, 0x6c, 0x00, 0x61, 0x2f, 0xa3, - 0x5f, 0x64, 0x2f, 0x23, 0x49, 0x2f, 0xbd, 0x70, 0x0d, 0x06, 0x10, 0x7f, - 0x06, 0xf0, 0xff, 0x3d, 0xa5, 0x70, 0x49, 0x05, 0x68, 0x11, 0x08, 0x30, - 0xff, 0x06, 0x1f, 0xb5, 0xe5, 0x54, 0x97, 0x5f, 0x20, 0x70, 0x51, 0x06, - 0x98, 0x17, 0xe0, 0xac, 0xc0, 0xd2, 0x80, 0x1e, 0xb7, 0xdc, 0xb4, 0x06, - 0x78, 0x17, 0x00, 0x12, 0x7f, 0x05, 0x7a, 0x91, 0x07, 0x53, 0x7f, 0x13, - 0x8b, 0x48, 0x07, 0x3b, 0x04, 0x30, 0x28, 0x1d, 0x34, 0x05, 0x48, 0x09, - 0x08, 0xb4, 0xff, 0x80, 0x10, 0x0e, 0x10, 0x7f, 0x0b, 0x04, 0x04, 0x04, - 0x04, 0x06, 0x0b, 0x00, 0x0b, 0x04, 0x06, 0x01, 0x04, 0x0b, 0x0b, 0x0b, - 0x00, 0x0b, 0xfc, 0x28, 0x01, 0x0d, 0x00, 0x00, 0x0d, 0x02, 0x6b, 0xa4, - 0x30, 0xa7, 0x30, 0xe0, 0x06, 0xa8, 0x1b, 0x4a, 0xbf, 0x2f, 0x17, 0x6d, - 0xc8, 0x19, 0x05, 0x9b, 0x2b, 0x00, 0x30, 0x7f, 0x06, 0xf0, 0xff, 0x05, - 0xf5, 0x99, 0x07, 0xf0, 0xff, 0x81, 0x05, 0xff, 0xb7, 0x36, 0x80, 0xc6, - 0x59, 0x79, 0x72, 0x06, 0x98, 0x19, 0x31, 0x18, 0xc6, 0x06, 0xd8, 0x17, - 0x0e, 0xf2, 0x7f, 0x1b, 0x04, 0x35, 0x28, 0x11, 0x07, 0x20, 0x00, 0x15, - 0x04, 0x3c, 0x06, 0x48, 0x1f, 0x07, 0xf4, 0xff, 0x10, 0x0d, 0xf0, 0x7f, - 0x00, 0x0c, 0x06, 0x06, 0x06, 0x06, 0x08, 0x0c, 0x0c, 0x00, 0x06, 0x08, - 0x0a, 0x06, 0x0c, 0x0c, 0x0c, 0x0c, 0x00, 0xeb, 0x2c, 0x6b, 0x0a, 0x00, - 0x00, 0x0e, 0x6b, 0x16, 0xc0, 0x30, 0xfc, 0x28, 0x13, 0xca, 0x06, 0x28, - 0x11, 0x5f, 0xff, 0x44, 0xd7, 0x2f, 0xa9, 0x3f, 0xad, 0x72, 0x2f, 0xaf, - 0x61, 0x06, 0x08, 0x15, 0xf0, 0x7f, 0x06, 0xf0, 0xff, 0xe0, 0x06, 0x1d, - 0xaf, 0x07, 0xd0, 0xff, 0x06, 0x1f, 0xb5, 0xbe, 0x8f, 0xc9, 0x62, 0xb3, - 0x40, 0x7e, 0x06, 0x78, 0x15, 0x00, 0x00, 0xec, 0xb2, 0x7c, 0xb7, 0x0c, - 0x74, 0xb9, 0x98, 0xb0, 0x06, 0x78, 0x17, 0x07, 0x52, 0x7f, 0x65, 0x00, - 0x46, 0x63, 0x44, 0x03, 0x6c, 0x00, 0x69, 0x05, 0xe3, 0x85, 0x78, 0x17, - 0x14, 0xd7, 0x28, 0x11, 0x38, 0x15, 0x40, 0x28, 0x25, 0x30, 0x05, 0xa8, - 0x17, 0x07, 0xd4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x15, 0x0d, 0x02, 0x02, - 0x20, 0x01, 0x0d, 0x20, 0x06, 0x08, 0x20, 0x05, 0x00, 0x0d, 0x0d, 0x1a, - 0x2b, 0x20, 0x0b, 0x00, 0x00, 0x04, 0x0f, 0x6b, 0xd6, 0x30, 0xec, 0x28, - 0x19, 0xad, 0x30, 0x15, 0xf3, 0x30, 0xb2, 0x06, 0x48, 0x1b, 0x42, 0x44, - 0x15, 0x6b, 0x24, 0x0f, 0x1f, 0x6e, 0x00, 0x67, 0x24, 0x1f, 0x05, 0xfb, - 0x2f, 0xf0, 0x7f, 0x07, 0x10, 0xff, 0x05, 0xd8, 0x17, 0xc0, 0x07, 0xf0, - 0xff, 0x05, 0xff, 0xb5, 0x03, 0x5e, 0xb1, 0x83, 0xd1, 0x91, 0x20, 0x84, - 0x53, 0x06, 0x78, 0x19, 0x14, 0xbe, 0x08, 0xb8, 0xb9, 0x1d, 0xd0, 0xd0, - 0xc5, 0x06, 0x78, 0x17, 0x0e, 0xf2, 0x7f, 0x78, 0x17, 0x11, 0x28, 0x15, - 0x05, 0x35, 0x04, 0x3a, 0x04, 0x38, 0x28, 0x25, 0x33, 0x28, 0x2b, 0xc5, - 0x0e, 0x74, 0xff, 0x10, 0x0d, 0xf0, 0x7f, 0x0e, 0x01, 0x01, 0x20, 0x01, - 0x0e, 0x20, 0x06, 0x41, 0x02, 0x20, 0x05, 0x0e, 0x0e, 0xf1, 0x27, 0x15, - 0x28, 0x17, 0x11, 0x10, 0x6b, 0xa8, 0x28, 0x17, 0xd6, 0x30, 0xeb, 0x28, - 0x1b, 0x88, 0x06, 0x38, 0x15, 0x00, 0x00, 0xd6, 0x2f, 0xa9, 0x65, 0x00, - 0x62, 0xbf, 0x2f, 0xaf, 0x6f, 0x06, 0x2b, 0x2d, 0xd0, 0x7f, 0x07, 0x10, - 0xff, 0x05, 0xdd, 0xab, 0x07, 0xf0, 0xff, 0x06, 0x3f, 0xb3, 0x00, 0x84, - 0x53, 0xd2, 0x52, 0x03, 0x5e, 0x81, 0x9c, 0x80, 0x06, 0x78, 0x17, 0x78, - 0xc6, 0x08, 0xb8, 0x0c, 0xbe, 0x5c, 0x71, 0xb8, 0x06, 0x78, 0x17, 0x0e, - 0xf2, 0x7f, 0x78, 0x17, 0x2d, 0x04, 0x40, 0x28, 0x21, 0x5c, 0x31, 0x20, - 0x05, 0x43, 0x05, 0x88, 0x13, 0x07, 0xf4, 0xff, 0x10, 0x0e, 0x30, 0x7f, - 0x0f, 0x0b, 0x00, 0x0b, 0x0b, 0x0b, 0x0d, 0x0f, 0x0f, 0x0b, 0x0d, 0x00, - 0x14, 0x0b, 0x0f, 0x0f, 0x0f, 0x0f, 0x26, 0x2a, 0x00, 0xd3, 0x0a, 0x00, - 0x00, 0x11, 0x6b, 0xd9, 0x30, 0x14, 0xb9, 0x30, 0xc6, 0x28, 0x17, 0xce, - 0x28, 0x1b, 0xe9, 0x30, 0x15, 0xf3, 0x30, 0xc9, 0x05, 0xe8, 0x1f, 0x56, - 0x2f, 0x1d, 0x73, 0x2b, 0x1b, 0x54, 0x65, 0x28, 0x1f, 0x6e, 0x2b, 0x29, - 0x72, 0x28, 0x27, 0x6c, 0x00, 0x5d, 0x61, 0x2f, 0xbd, 0x64, 0x05, 0x4b, - 0x3b, 0x00, 0xb0, 0x7f, 0x06, 0xf0, 0xff, 0x73, 0x05, 0x2d, 0xbd, 0xc0, - 0x08, 0xb0, 0xff, 0x05, 0x3f, 0xc1, 0x7f, 0x89, 0xfa, 0x8b, 0x14, 0x5c, - 0x20, 0x70, 0x51, 0x06, 0x78, 0x17, 0xa0, 0xbc, 0xa4, 0xc2, 0x4c, 0x00, - 0xd1, 0x74, 0xb9, 0x78, 0xb1, 0x7c, 0xb9, 0x80, 0x1d, 0xb7, 0xdc, 0xb4, - 0x05, 0xf8, 0x1f, 0x0e, 0xf2, 0x7f, 0x78, 0x17, 0x12, 0x28, 0x1f, 0x15, - 0x41, 0x04, 0x42, 0x28, 0x25, 0x40, 0x28, 0x27, 0x3e, 0x28, 0x25, 0x05, - 0x40, 0x04, 0x3b, 0x04, 0x30, 0x28, 0x33, 0x34, 0x04, 0xc8, 0x27, 0xc5, - 0x08, 0xb4, 0xff, 0x10, 0x0d, 0x30, 0x7f, 0x10, 0x13, 0x13, 0x20, 0x01, - 0x10, 0x20, 0x06, 0x40, 0x05, 0x20, 0x05, 0x10, 0x10, 0x89, 0x2c, 0xc0, - 0x0c, 0x01, 0x00, 0x00, 0x12, 0x6b, 0xa4, 0x30, 0xa7, 0x28, 0x0d, 0x54, - 0xc1, 0x20, 0x05, 0xd4, 0x28, 0x15, 0xb0, 0x05, 0xe8, 0x15, 0x00, 0x00, - 0x14, 0x4a, 0x00, 0xf6, 0x2f, 0x21, 0x6b, 0x20, 0x05, 0x70, 0x00, 0x5f, - 0x69, 0x2f, 0x2b, 0x67, 0x05, 0xeb, 0x35, 0x00, 0x10, 0x7f, 0x06, 0xf0, - 0xff, 0x05, 0x38, 0x0d, 0x08, 0xb0, 0xff, 0x81, 0x05, 0xdf, 0xb7, 0xf6, - 0x5e, 0xea, 0x96, 0x73, 0x5e, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0x0c, - 0xc6, 0x70, 0xc1, 0x51, 0xd5, 0xe2, 0x05, 0xf8, 0x0d, 0x0f, 0x92, 0x7f, - 0x78, 0x17, 0x19, 0x04, 0x51, 0x28, 0x1f, 0x47, 0x8b, 0x20, 0x05, 0x3f, - 0x04, 0x38, 0x28, 0x29, 0x33, 0x04, 0xc8, 0x0d, 0x08, 0xb4, 0xff, 0x80, - 0x10, 0x0d, 0xd0, 0x7f, 0x11, 0x07, 0x07, 0x07, 0x07, 0x09, 0x11, 0x00, - 0x11, 0x07, 0x09, 0x0b, 0x07, 0x11, 0x11, 0x11, 0x00, 0x11, 0x15, 0x29, - 0x13, 0x0a, 0x00, 0x00, 0x13, 0x00, 0x6b, 0xaf, 0x30, 0xed, 0x30, 0xce, - 0x30, 0xd9, 0x35, 0x30, 0xea, 0x06, 0x08, 0x11, 0x5f, 0xff, 0x4b, 0x2f, - 0xa7, 0x6f, 0x4f, 0xa9, 0x7f, 0x62, 0x4f, 0xb3, 0x05, 0xf8, 0x17, 0x00, - 0x10, 0x7f, 0x06, 0xf0, 0xff, 0x05, 0xd8, 0x17, 0x08, 0x10, 0xff, 0x05, - 0xe2, 0x7f, 0x00, 0x51, 0x81, 0x9c, 0xaa, 0x52, 0x1d, 0x8d, 0xcc, 0x40, - 0x91, 0x06, 0x58, 0x1b, 0x6c, 0xd0, 0x5c, 0xb8, 0x78, 0xb1, 0x0e, 0xa0, - 0xbc, 0xac, 0xb9, 0x06, 0x58, 0x1b, 0x0e, 0xf2, 0x7f, 0x78, 0x17, 0x1a, - 0x08, 0x04, 0x40, 0x04, 0x43, 0x28, 0x21, 0x43, 0x04, 0x31, 0xb8, 0x28, - 0x29, 0x40, 0x05, 0x88, 0x17, 0x08, 0x14, 0xff, 0x10, 0x0d, 0xd0, 0x7f, - 0x12, 0x09, 0x09, 0x00, 0x09, 0x09, 0x0b, 0x12, 0x12, 0x09, 0x0b, 0x0d, - 0x00, 0x09, 0x12, 0x12, 0x12, 0x12, 0x73, 0x28, 0x89, 0x80, 0x28, 0x17, - 0x14, 0x6b, 0xab, 0x30, 0xeb, 0x30, 0xde, 0xea, 0x30, 0x03, 0x06, 0x48, - 0x15, 0x38, 0x17, 0x61, 0x2f, 0x1d, 0x6d, 0x20, 0x05, 0x72, 0xfc, 0x05, - 0xeb, 0x29, 0x00, 0x10, 0x7f, 0x07, 0x10, 0xff, 0x05, 0x9d, 0xa7, 0x08, - 0x30, 0xff, 0x06, 0x3f, 0xb3, 0x61, 0x53, 0x0c, 0x14, 0x5c, 0x6c, 0x9a, - 0x06, 0x58, 0x13, 0x3f, 0xff, 0x7c, 0xce, 0x1c, 0xc8, 0xb9, 0x74, 0x06, - 0x68, 0x13, 0x0f, 0x32, 0x7f, 0x98, 0x17, 0x30, 0x04, 0x05, 0x3b, 0x04, - 0x4c, 0x04, 0x3c, 0x20, 0x07, 0x40, 0x05, 0x68, 0x13, 0xc0, 0x07, 0xf4, - 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x13, 0x08, 0x08, 0x08, 0x08, 0x0a, 0x00, - 0x13, 0x13, 0x08, 0x0a, 0x0c, 0x08, 0x13, 0x13, 0x00, 0x13, 0x13, 0x4b, - 0x28, 0xa3, 0x0b, 0x00, 0x00, 0x01, 0x15, 0x6b, 0xd9, 0x30, 0xb9, 0x30, - 0xc8, 0x28, 0x19, 0x15, 0xf3, 0x30, 0xe9, 0x20, 0x03, 0xc9, 0x06, 0x08, - 0x1f, 0x56, 0x2f, 0x19, 0x6d, 0x73, 0x2b, 0x19, 0x38, 0x19, 0x6e, 0x2f, - 0x27, 0x30, 0x05, 0x64, 0x05, 0xab, 0x33, 0xf8, 0x00, 0x50, 0x7f, 0x06, - 0xf0, 0xff, 0x05, 0x9d, 0xb3, 0x08, 0x50, 0xff, 0x05, 0x9f, 0xb9, 0x7f, - 0x89, 0xfc, 0x10, 0x66, 0x70, 0x51, 0x06, 0x98, 0x17, 0xa0, 0xbc, 0xa4, - 0xc2, 0x00, 0xb8, 0xd2, 0xcc, 0xb9, 0x80, 0xb7, 0xdc, 0xb4, 0xe8, 0x06, - 0x38, 0x1d, 0x0e, 0xf2, 0x7f, 0x78, 0x17, 0x12, 0x28, 0x1f, 0x41, 0x04, - 0x42, 0xb7, 0x48, 0x17, 0x3d, 0x28, 0x21, 0x30, 0x05, 0x34, 0x05, 0x28, - 0x1f, 0x08, 0x54, 0xff, 0x10, 0x0d, 0x90, 0x7f, 0x28, 0x14, 0x14, 0x70, - 0x01, 0x06, 0x40, 0x0a, 0x64, 0x2a, 0xc5, 0x8d, 0x28, 0x17, 0x16, 0x6b, - 0xcf, 0x06, 0x68, 0x0f, 0x7f, 0xff, 0x48, 0x4f, 0xaf, 0xfc, 0x06, 0x18, - 0x0f, 0x00, 0x50, 0x7f, 0x06, 0xf0, 0xff, 0x05, 0x98, 0x0f, 0x08, 0x50, - 0xff, 0x06, 0x1f, 0xb5, 0xc8, 0x54, 0x87, 0x06, 0xb8, 0x15, 0x00, 0x00, - 0x60, 0xd5, 0x06, 0x78, 0x11, 0x0f, 0x52, 0x7f, 0x78, 0x17, 0x5c, 0x25, - 0x28, 0x0f, 0x3b, 0x05, 0xa8, 0x0f, 0x08, 0x54, 0xff, 0x10, 0x0e, 0x10, - 0x7f, 0x15, 0x05, 0x00, 0x05, 0x05, 0x05, 0x07, 0x15, 0x15, 0x05, 0x07, - 0x00, 0x13, 0x05, 0x15, 0x15, 0x15, 0x15, 0x4a, 0x28, 0x20, 0x25, 0x09, - 0x00, 0x3f, 0xff, 0x01, 0x0f, 0x0f, 0x0f, 0x0f, 0x00, 0x04, 0x01, 0x01, - 0x0f, 0x04, 0x11, 0x0f, 0x01, 0x00, 0x01, 0x01, 0x01, 0x02, 0x0d, 0x0d, - 0x0d, 0x0d, 0x00, 0x03, 0x02, 0x02, 0x0d, 0x03, 0x10, 0x0d, 0x02, 0x09, - 0x02, 0x02, 0x02, 0x03, 0x30, 0x3c, 0x15, 0x03, 0x20, 0x06, 0x40, 0x07, - 0x20, 0x05, 0x03, 0x03, 0x04, 0x0c, 0x0c, 0x0c, 0x00, 0x0c, 0x0e, 0x04, - 0x04, 0x0c, 0x0e, 0x15, 0x0c, 0x00, 0x04, 0x04, 0x04, 0x04, 0x05, 0x0e, - 0x0e, 0x0e, 0x00, 0x0e, 0x0f, 0x05, 0x05, 0x0e, 0x0f, 0x0f, 0x0e, 0x8a, - 0x30, 0x72, 0x06, 0x11, 0x11, 0x20, 0x01, 0x06, 0x20, 0x06, 0x03, 0x82, - 0x20, 0x05, 0x06, 0x06, 0x07, 0x10, 0x10, 0x20, 0x01, 0x07, 0xa2, 0x20, - 0x06, 0x12, 0x20, 0x05, 0x07, 0x07, 0x08, 0x30, 0x44, 0x05, 0x00, 0x08, - 0x08, 0x03, 0x05, 0x09, 0x03, 0x08, 0x08, 0x05, 0x08, 0x08, 0x09, 0x12, - 0x12, 0x20, 0x01, 0x09, 0x20, 0x06, 0x42, 0x04, 0x20, 0x05, 0x09, 0x09, - 0x0a, 0x0a, 0x20, 0x01, 0x0c, 0xa8, 0x30, 0x03, 0x0e, 0x40, 0x0a, 0x0b, - 0x30, 0x64, 0x06, 0x0b, 0x0b, 0x00, 0x04, 0x06, 0x01, 0x04, 0x0b, 0x0b, - 0x0b, 0x0b, 0x40, 0x0c, 0x30, 0x54, 0x08, 0x0c, 0x0c, 0x06, 0x08, 0x0a, - 0x71, 0x06, 0x30, 0x8a, 0x40, 0xa4, 0x20, 0xb4, 0x02, 0x02, 0x08, 0x40, - 0xba, 0x4b, 0x0e, 0x30, 0xc4, 0x01, 0x0e, 0x20, 0x06, 0x02, 0x20, 0x05, - 0x20, 0x9a, 0x80, 0x30, 0x34, 0x0d, 0x0f, 0x0f, 0x0b, 0x0d, 0x14, 0x0b, - 0x8a, 0x30, 0xea, 0x10, 0x13, 0x13, 0x20, 0x01, 0x10, 0x20, 0x06, 0x05, - 0x88, 0x20, 0x05, 0x10, 0x10, 0x11, 0x30, 0x94, 0x09, 0x11, 0x11, 0x0d, - 0x07, 0x09, 0x0b, 0x07, 0x30, 0xba, 0x40, 0x84, 0x0b, 0x20, 0x91, 0x28, - 0x0b, 0x0d, 0x40, 0x9a, 0x13, 0x30, 0xa4, 0x0a, 0x13, 0x13, 0x0f, 0x08, - 0x0a, 0x0c, 0x08, 0x30, 0x3a, 0xf9, 0x6f, 0xf1, 0x67, 0x3f, 0xf0, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x44, 0xdc, 0x00, 0x11, 0x1a, 0x00, 0x00, - 0x30, 0x01, 0x6c, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x63, 0x21, 0x46, 0x05, 0x00, 0x00, 0x00, - 0x02, 0x6c, 0xd9, 0x30, 0xeb, 0x30, 0xf3, 0x10, 0x30, 0xde, 0x5d, 0x06, - 0x78, 0x1d, 0x42, 0x00, 0x65, 0x00, 0x1a, 0x72, 0x00, 0x6e, 0x06, 0x88, - 0x9c, 0x70, 0x7f, 0x65, 0x0e, 0xe0, 0xff, 0x61, 0x81, 0x0e, 0x60, 0x7f, - 0x2f, 0x4f, 0x14, 0x5c, 0x3c, 0x5c, 0x06, 0x92, 0xff, 0x00, 0xa0, 0xbc, - 0x78, 0xb9, 0x20, 0x00, 0xfc, 0xc8, 0xc0, 0x0e, 0xf3, 0x7f, 0x06, 0x72, - 0x7f, 0x11, 0x04, 0x35, 0x04, 0x40, 0x04, 0x30, 0x3d, 0x04, 0x0e, 0xf4, - 0xff, 0x10, 0x0e, 0x70, 0xff, 0x01, 0x06, 0x06, 0x06, 0x10, 0x06, 0x05, - 0x01, 0x40, 0x06, 0x01, 0x01, 0x01, 0x01, 0x82, 0x58, 0x17, 0x04, 0x6c, - 0xa2, 0x30, 0xfc, 0x28, 0x19, 0xac, 0x28, 0x30, 0xa6, 0x06, 0x68, 0x1b, - 0x41, 0x26, 0x91, 0x72, 0x00, 0x67, 0xa8, 0x26, 0x97, 0x75, 0x06, 0x4f, - 0xb8, 0x41, 0x40, 0x7d, 0x6f, 0x00, 0x76, 0x3c, 0x00, 0x69, 0x06, 0x48, - 0x1b, 0x07, 0xb0, 0xff, 0x06, 0x38, 0x1b, 0x06, 0xf0, 0x7f, 0x3f, 0x96, - 0x08, 0x14, 0x5c, 0xd8, 0x9a, 0x06, 0x9b, 0x17, 0x44, 0xc5, 0x74, 0x06, - 0xb9, 0x00, 0xac, 0xb0, 0xc6, 0x06, 0x78, 0x1b, 0x07, 0x53, 0x7f, 0xf3, - 0x8a, 0x06, 0x82, 0x7f, 0x10, 0x04, 0x30, 0x28, 0x17, 0x33, 0x20, 0x05, - 0x43, 0xe0, 0x06, 0x48, 0x1b, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, - 0x02, 0x01, 0x03, 0x01, 0x03, 0x20, 0x03, 0x02, 0x30, 0x06, 0x01, 0x02, - 0x02, 0x02, 0x02, 0x11, 0xb3, 0x21, 0xb8, 0x28, 0x17, 0x05, 0x6c, 0xd0, - 0x28, 0x17, 0x40, 0xbc, 0x28, 0x19, 0x1d, 0xff, 0xb7, 0x30, 0xe5, 0x30, - 0x00, 0xbf, 0x30, 0xc3, 0x30, 0xc8, 0x30, 0x96, 0x6e, 0xa8, 0x05, 0x9d, - 0x3f, 0x42, 0x2e, 0xa9, 0x73, 0x2f, 0xb3, 0x6c, 0x00, 0x2d, 0x22, 0x00, - 0x43, 0x27, 0x9b, 0x74, 0x00, 0x79, 0x05, 0xef, 0xaf, 0xe2, 0xab, 0x20, - 0x7b, 0x65, 0x20, 0x7d, 0x56, 0x28, 0x19, 0x6c, 0x40, 0x0b, 0x05, 0xdf, - 0xaf, 0xa3, 0x90, 0xff, 0x53, 0x20, 0xfd, 0x61, 0x00, 0x64, 0x21, 0x03, - 0x05, 0xf0, 0x7f, 0xa8, 0x30, 0xf9, 0x65, 0x2f, 0xb3, 0x20, 0x61, 0x83, - 0x74, 0x00, 0xe0, 0xda, 0x05, 0x6f, 0xbf, 0x31, 0xf3, 0x75, 0x20, 0xf3, - 0x30, 0xf7, 0x20, 0x20, 0xfb, 0x65, 0xe0, 0x20, 0x83, 0xd0, 0x93, 0x04, - 0xdf, 0xc9, 0xf4, 0x5d, 0x5e, 0x58, 0x14, 0x46, 0x5c, 0x06, 0x98, 0x17, - 0x14, 0xbc, 0x24, 0x06, 0x48, 0x0f, 0xb3, 0x7f, 0x7a, 0xf4, 0xe2, 0x7f, - 0x06, 0x12, 0xff, 0x52, 0x7f, 0x06, 0x3a, 0x99, 0x11, 0x28, 0x17, 0x37, - 0x04, 0x07, 0x35, 0x04, 0x3b, 0x04, 0x4c, 0x06, 0x48, 0x17, 0x07, 0x14, - 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x00, 0x03, 0x04, 0x05, 0x05, 0x05, 0x06, - 0x03, 0x03, 0x00, 0x05, 0x04, 0x04, 0x04, 0x03, 0x03, 0x03, 0x03, 0x10, - 0xce, 0x21, 0x65, 0x28, 0x17, 0x06, 0x6c, 0xd5, 0x30, 0x12, 0xea, 0x30, - 0xd6, 0x28, 0x1b, 0xeb, 0x30, 0x06, 0x5d, 0x33, 0x46, 0x8b, 0x2f, 0xaf, - 0x69, 0x00, 0x62, 0x2f, 0xb1, 0x75, 0x4f, 0xb9, 0x0e, 0x30, 0x7f, 0xb4, - 0x35, 0x11, 0x62, 0x06, 0xe0, 0xff, 0x51, 0x7d, 0x6f, 0x0e, 0x00, 0x7f, - 0x17, 0x5f, 0x08, 0xcc, 0x91, 0x21, 0x58, 0x06, 0x98, 0x17, 0x04, 0xd5, - 0xac, 0x00, 0xb9, 0x80, 0xbd, 0x74, 0xb9, 0x20, 0x00, 0xfc, 0xe0, 0x06, - 0x48, 0x1f, 0x07, 0x73, 0x7f, 0x06, 0x72, 0x7f, 0x24, 0x04, 0x40, 0x04, - 0x38, 0x0e, 0x04, 0x31, 0x04, 0x43, 0x20, 0x07, 0x10, 0x06, 0x74, 0xff, - 0x10, 0x06, 0xb0, 0xff, 0x04, 0x2a, 0x07, 0x07, 0x20, 0x01, 0x04, 0x20, - 0x06, 0x15, 0x20, 0x05, 0x04, 0x08, 0x04, 0x48, 0x21, 0x17, 0x28, 0x17, - 0x07, 0x6c, 0xb8, 0x0a, 0x30, 0xe5, 0x30, 0xcd, 0x28, 0x17, 0xf4, 0x06, - 0x68, 0x17, 0x47, 0xad, 0x2f, 0xab, 0x6e, 0x2f, 0xaf, 0x76, 0x06, 0x2c, - 0x2b, 0x90, 0x7f, 0xe8, 0x20, 0x7f, 0x56, 0x65, 0x06, 0xa0, 0x7f, 0x66, - 0x06, 0x8e, 0x32, 0x47, 0x2f, 0xaf, 0x51, 0x7f, 0x72, 0xd0, 0x06, 0x41, - 0x81, 0x70, 0x7f, 0x62, 0x06, 0x60, 0x7f, 0xe5, 0x65, 0x85, 0x51, 0x20, - 0xe6, 0x74, 0x06, 0x98, 0x17, 0x1c, 0xc8, 0x24, 0xb1, 0x14, 0x70, 0xbc, - 0x06, 0x78, 0x15, 0x07, 0x72, 0xff, 0x06, 0x91, 0xff, 0x16, 0x04, 0x35, - 0x04, 0x47, 0x3d, 0x20, 0x03, 0x32, 0x04, 0x30, 0x06, 0x48, 0x17, 0x07, - 0x54, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x15, 0x05, 0x08, 0x08, 0x20, 0x01, - 0x05, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x04, 0x05, 0x05, 0xda, 0x20, 0x63, - 0x2b, 0x1f, 0x08, 0x6c, 0x11, 0xb0, 0x30, 0xe9, 0x28, 0x15, 0xeb, 0x30, - 0xb9, 0x06, 0x88, 0x17, 0x56, 0x6c, 0x28, 0x11, 0x72, 0x2f, 0xad, 0x73, - 0x06, 0x68, 0x17, 0x50, 0x7f, 0x69, 0xdc, 0x06, 0xe0, 0x7f, 0x06, 0xf0, - 0xff, 0x6f, 0x29, 0x9d, 0x06, 0x58, 0x17, 0x06, 0xd1, 0x7f, 0x3c, 0x68, - 0x02, 0xc9, 0x62, 0x81, 0x9c, 0xaf, 0x65, 0x06, 0x88, 0x19, 0xae, 0x03, - 0x7c, 0xb7, 0xe8, 0xb8, 0xa4, 0xc2, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, - 0x10, 0x13, 0x04, 0x3b, 0x28, 0x11, 0x40, 0x04, 0x43, 0x04, 0x70, 0x41, - 0x06, 0x68, 0x17, 0x07, 0x54, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x06, 0x09, - 0x09, 0x09, 0x18, 0x0a, 0x09, 0x06, 0x30, 0x06, 0x20, 0x05, 0x06, 0x06, - 0x72, 0x02, 0x21, 0x73, 0x06, 0x00, 0x00, 0x09, 0x48, 0x17, 0xa6, 0x00, - 0x30, 0xd3, 0x30, 0xe5, 0x30, 0xf3, 0x30, 0xc7, 0xd5, 0x20, 0x03, 0x05, - 0xfd, 0x39, 0x47, 0x4e, 0xa7, 0x75, 0x2e, 0x2f, 0xfc, 0x2f, 0xb7, 0x7e, - 0x64, 0x4f, 0xbd, 0x05, 0xf0, 0x7f, 0x38, 0x13, 0x37, 0x17, 0x06, 0x38, - 0x99, 0x07, 0x50, 0xff, 0x67, 0xda, 0x2f, 0xb5, 0x38, 0x19, 0x69, 0x06, - 0x40, 0xff, 0x71, 0x7f, 0x65, 0x06, 0x2a, 0x1b, 0x3c, 0x01, 0x68, 0xb3, - 0x52, 0xbe, 0x5b, 0x7b, 0x76, 0x06, 0x78, 0x17, 0x00, 0xf8, 0xad, 0x7c, - 0xb7, 0xb0, 0xc6, 0xd8, 0xbd, 0x35, 0x74, 0xb3, 0x06, 0x58, 0x19, 0x0e, - 0xf3, 0x7f, 0x13, 0x28, 0x13, 0x30, 0x28, 0x15, 0x00, 0x31, 0x04, 0x4e, - 0x04, 0x3d, 0x04, 0x34, 0x04, 0x70, 0x35, 0x20, 0x05, 0x0d, 0xf4, 0xff, - 0x10, 0x0e, 0xb0, 0x7f, 0x07, 0x0a, 0x0a, 0x0a, 0x18, 0x0b, 0x0a, 0x07, - 0x30, 0x06, 0x20, 0x05, 0x07, 0x07, 0x52, 0x22, 0x21, 0xc8, 0x28, 0x17, - 0x0a, 0x6c, 0xb8, 0x28, 0x11, 0xe9, 0xdd, 0x06, 0x08, 0x0d, 0x9f, 0xff, - 0x4a, 0x2f, 0x29, 0x38, 0x19, 0x10, 0x06, 0x70, 0x7f, 0x47, 0x2f, 0xa9, - 0xc2, 0x06, 0xb1, 0x81, 0x06, 0xf1, 0xff, 0x5d, 0x6c, 0xc9, 0x62, 0x06, - 0x92, 0xfd, 0x00, 0x06, 0x00, 0x50, 0xc9, 0x7c, 0xb7, 0x06, 0x58, 0x11, - 0x0f, 0x53, 0x7f, 0x2e, 0xf0, 0x48, 0x17, 0x06, 0x91, 0xff, 0x10, 0x06, - 0xf4, 0xff, 0x0e, 0xf6, 0x7f, 0x08, 0x0b, 0x0b, 0x0b, 0x14, 0x09, 0x0b, - 0x08, 0x20, 0x06, 0x1a, 0x20, 0x05, 0x08, 0x08, 0x00, 0xae, 0x21, 0x39, - 0x05, 0x00, 0x00, 0x0b, 0x6c, 0x00, 0xeb, 0x30, 0xc4, 0x30, 0xa7, 0x30, - 0xeb, 0x30, 0x55, 0xf3, 0x06, 0x68, 0x1b, 0x4c, 0x2f, 0x2b, 0x7a, 0x2f, - 0x25, 0x72, 0x05, 0xef, 0x27, 0xae, 0xb0, 0x7f, 0x63, 0x60, 0x7f, 0x65, - 0x0e, 0xe0, 0xff, 0x06, 0x39, 0x9d, 0x06, 0xf0, 0x7f, 0x62, 0x04, 0x53, - 0x5e, 0x58, 0x69, 0x60, 0x06, 0x9b, 0x17, 0xe8, 0xb8, 0x0c, 0xb4, 0xcc, - 0x78, 0xb9, 0x06, 0x98, 0x19, 0x0e, 0xf2, 0x7f, 0x1b, 0x04, 0x05, 0x4e, - 0x04, 0x46, 0x04, 0x35, 0x28, 0x1d, 0x3d, 0x06, 0x48, 0x1d, 0xc5, 0x07, - 0x34, 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x09, 0x0c, 0x0c, 0x20, 0x01, 0x09, - 0x20, 0x06, 0x41, 0x0d, 0x20, 0x05, 0x09, 0x09, 0x75, 0x21, 0xe8, 0x28, - 0x17, 0x00, 0x0c, 0x6c, 0xcc, 0x30, 0xb7, 0x30, 0xe3, 0x30, 0x6c, 0xc6, - 0x28, 0x19, 0x06, 0x5d, 0x35, 0x4e, 0x28, 0x13, 0x37, 0x99, 0x68, 0x00, - 0x15, 0xe2, 0x00, 0x74, 0x28, 0x1f, 0x6c, 0x0e, 0x40, 0x7f, 0x65, 0x29, - 0x15, 0x50, 0x62, 0x4f, 0xb7, 0x67, 0x10, 0x05, 0xe1, 0x7f, 0xb3, 0x7e, - 0x99, 0x6c, 0x08, 0xf0, 0x6c, 0x14, 0x5c, 0x06, 0x78, 0x19, 0xcc, 0xb1, - 0xe4, 0x18, 0xc0, 0x54, 0xd1, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x1d, - 0x04, 0x51, 0x00, 0x04, 0x32, 0x04, 0x48, 0x04, 0x30, 0x04, 0x42, 0x8e, - 0x28, 0x1d, 0x3b, 0x04, 0x4c, 0x05, 0xe8, 0x1d, 0x0f, 0x54, 0xff, 0x10, - 0x06, 0x90, 0xff, 0x0a, 0x2a, 0x0d, 0x0d, 0x20, 0x01, 0x0a, 0x20, 0x06, - 0x0e, 0x20, 0x05, 0x0a, 0x08, 0x0a, 0x63, 0x21, 0xee, 0x2b, 0x1f, 0x0d, - 0x6c, 0xaa, 0x08, 0x30, 0xd7, 0x30, 0xd0, 0x28, 0x15, 0xc7, 0x30, 0xf3, - 0x15, 0x30, 0x96, 0x6e, 0x06, 0x1d, 0x37, 0x4f, 0x27, 0x0f, 0x77, 0x2e, - 0xa9, 0x1e, 0x6c, 0x00, 0x64, 0x47, 0x1d, 0x06, 0xb0, 0x7f, 0x06, 0x3f, - 0xb0, 0x07, 0x30, 0xff, 0x76, 0xa0, 0x61, 0x7f, 0x6f, 0x0e, 0x20, 0xff, - 0x0a, 0x4e, 0xe6, 0x74, 0x14, 0x04, 0x5c, 0x7b, 0x76, 0x4a, 0x53, 0x06, - 0x5b, 0x17, 0x35, 0xc6, 0x0c, 0x1c, 0xbc, 0x74, 0xb3, 0x06, 0x98, 0x17, - 0x0e, 0xf3, 0x7f, 0x1e, 0x04, 0x55, 0x31, 0x28, 0x17, 0x30, 0x48, 0x11, - 0x34, 0x28, 0x19, 0x3d, 0x05, 0xe8, 0x17, 0xc5, 0x07, 0xb4, 0xff, 0x10, - 0x0e, 0x30, 0x7f, 0x0b, 0x0f, 0x0f, 0x20, 0x01, 0x0b, 0x20, 0x06, 0x40, - 0x10, 0x20, 0x05, 0x0b, 0x0b, 0x57, 0x21, 0xdb, 0x05, 0x04, 0x00, 0x00, - 0x0e, 0x6c, 0xb6, 0x28, 0x0f, 0xaf, 0x30, 0x01, 0xc8, 0x30, 0xfb, 0x30, - 0xac, 0x30, 0xec, 0x28, 0x1b, 0xa0, 0x05, 0xfd, 0x37, 0x53, 0x2f, 0xa5, - 0x2e, 0x00, 0x20, 0x00, 0x47, 0xaa, 0x48, 0x1b, 0x6c, 0x06, 0x08, 0x1b, - 0x53, 0x28, 0x93, 0x69, 0x2f, 0xad, 0x74, 0x31, 0x00, 0x2d, 0x80, 0x83, - 0x05, 0xf0, 0x7f, 0x6e, 0x00, 0x6b, 0x2f, 0xab, 0xf8, 0x06, 0x51, 0x03, - 0x50, 0x7f, 0x91, 0x7f, 0x05, 0xf8, 0x1b, 0x06, 0xf0, 0xff, 0x23, 0x57, - 0xa0, 0x18, 0x52, 0xd1, 0x4e, 0x06, 0x58, 0x13, 0x3f, 0xff, 0xa5, 0xc7, - 0x6c, 0x01, 0xd0, 0xb8, 0xd2, 0x08, 0xac, 0x0c, 0xb8, 0x06, 0x58, 0x1b, - 0xd0, 0x07, 0x32, 0x7f, 0x06, 0xb3, 0x7f, 0x21, 0x28, 0x13, 0x3d, 0x04, - 0x3a, 0x04, 0x05, 0x42, 0x04, 0x2d, 0x00, 0x13, 0x48, 0x1f, 0x3b, 0x05, - 0xc8, 0x1d, 0xc0, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x0c, 0x13, - 0x10, 0x10, 0x10, 0x10, 0x00, 0x0c, 0x0c, 0x10, 0x10, 0x11, 0x13, 0x0c, - 0x0c, 0x00, 0x0c, 0x0c, 0xb9, 0x21, 0xaa, 0x06, 0x00, 0x00, 0x00, 0x0f, - 0x6c, 0xb7, 0x30, 0xe3, 0x30, 0xd5, 0x30, 0x06, 0xcf, 0x30, 0xa6, 0x30, - 0xbc, 0x06, 0x28, 0x15, 0x38, 0x17, 0x63, 0x2c, 0x00, 0x68, 0x2f, 0xaf, - 0x66, 0x20, 0x01, 0x30, 0x07, 0x75, 0x00, 0x6d, 0x73, 0x05, 0xe7, 0x17, - 0xb0, 0x7f, 0x6f, 0x60, 0x7f, 0x0d, 0xd0, 0xff, 0x69, 0x61, 0x7f, 0xa0, - 0x31, 0x7b, 0x61, 0x0d, 0xe1, 0xff, 0x99, 0x6c, 0x2b, 0x59, 0x6a, 0x10, - 0x8c, 0xee, 0x68, 0x06, 0x78, 0x19, 0xe4, 0xc0, 0x04, 0xd5, 0x03, 0x58, - 0xd5, 0xb0, 0xc6, 0x20, 0xc8, 0x06, 0x78, 0x17, 0x07, 0xb3, 0x7f, 0xaa, - 0x06, 0x13, 0xff, 0x28, 0x28, 0x17, 0x44, 0x20, 0x01, 0x45, 0x28, 0x1f, - 0x43, 0x38, 0x04, 0x37, 0x05, 0xc8, 0x13, 0x0f, 0x31, 0x7f, 0x10, 0x06, - 0xf0, 0xff, 0x0d, 0x10, 0x11, 0x00, 0x11, 0x11, 0x11, 0x0d, 0x0d, 0x11, - 0x11, 0x18, 0x00, 0x10, 0x0d, 0x0d, 0x0d, 0x0d, 0xeb, 0x21, 0x23, 0xa0, - 0x28, 0x17, 0x10, 0x28, 0x17, 0xe5, 0x30, 0xd3, 0x30, 0xfc, 0x30, 0x30, - 0xc4, 0x06, 0x28, 0x13, 0x98, 0x17, 0x77, 0x00, 0x79, 0x00, 0x6d, 0x7a, - 0x06, 0x4d, 0xb2, 0x90, 0x7f, 0x74, 0x06, 0x40, 0x81, 0x07, 0x10, 0xff, - 0x76, 0x2d, 0xaf, 0x58, 0x74, 0x2f, 0xaf, 0x6f, 0x06, 0xe1, 0x7f, 0x06, - 0x51, 0xff, 0xbd, 0x65, 0xf4, 0x10, 0x7e, 0x28, 0x83, 0x06, 0x78, 0x15, - 0x00, 0x00, 0x88, 0xc2, 0x0e, 0x44, 0xbe, 0x20, 0xce, 0x06, 0x58, 0x13, - 0x07, 0xd3, 0x7f, 0x06, 0x53, 0xff, 0x28, 0x03, 0x04, 0x32, 0x04, 0x38, - 0x04, 0x46, 0x05, 0xc8, 0x0b, 0x0f, 0xb1, 0x7f, 0x80, 0x10, 0x06, 0xf0, - 0xff, 0x0e, 0x11, 0x12, 0x12, 0x13, 0x12, 0x0e, 0x00, 0x0e, 0x12, 0x12, - 0x19, 0x11, 0x0e, 0x0e, 0x0e, 0x08, 0x0e, 0x75, 0x21, 0x20, 0x28, 0x17, - 0x11, 0x6c, 0xbe, 0x80, 0x28, 0x13, 0xed, 0x30, 0xc8, 0x30, 0xa5, 0x30, - 0xeb, 0x2a, 0x30, 0xf3, 0x06, 0x28, 0x1b, 0x53, 0x2f, 0xa3, 0x6c, 0x2f, - 0xa7, 0x74, 0x8d, 0x2f, 0xb5, 0x75, 0x00, 0x72, 0x05, 0xaf, 0x29, 0xb0, - 0x7f, 0x65, 0x40, 0x7b, 0x77, 0x65, 0x06, 0x49, 0x17, 0x07, 0x50, 0xff, - 0x38, 0x19, 0x61, 0x06, 0x80, 0xff, 0x51, 0x7f, 0x06, 0x30, 0x7f, 0x00, - 0x22, 0x7d, 0x1b, 0x6d, 0xfe, 0x56, 0x69, 0x60, 0x80, 0x06, 0x78, 0x19, - 0x78, 0xc8, 0x5c, 0xb8, 0x2c, 0xd2, 0x78, 0x70, 0xb9, 0x06, 0x78, 0x19, - 0x07, 0xb3, 0x7f, 0x06, 0x32, 0x7f, 0x17, 0x04, 0x3e, 0x04, 0x40, 0x3b, - 0x20, 0x03, 0x42, 0x04, 0x43, 0x04, 0x40, 0x04, 0x70, 0x3d, 0x06, 0x08, - 0x1f, 0x07, 0x54, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x0f, 0x12, 0x13, 0x13, - 0x00, 0x12, 0x13, 0x0f, 0x0f, 0x13, 0x13, 0x0c, 0x12, 0x00, 0x0f, 0x0f, - 0x0f, 0x0f, 0x92, 0x21, 0x5c, 0x05, 0x0a, 0x00, 0x00, 0x12, 0x6c, 0x38, - 0x11, 0xfc, 0x28, 0x13, 0xac, 0x22, 0x30, 0xa6, 0x06, 0x28, 0x15, 0x00, - 0x00, 0x54, 0x68, 0x0f, 0x67, 0xb7, 0x26, 0x95, 0x75, 0x06, 0x2f, 0xaf, - 0x90, 0x7f, 0x6f, 0x4f, 0x39, 0x05, 0xf8, 0x1b, 0x07, 0x10, 0xff, 0xe0, - 0xb0, 0xfd, 0x06, 0x18, 0x19, 0x06, 0xf0, 0x7f, 0xfe, 0x56, 0x14, 0x5c, - 0xd8, 0x40, 0x9a, 0x06, 0x78, 0x15, 0x00, 0x00, 0x2c, 0xd2, 0x74, 0xb9, - 0x0d, 0x00, 0xac, 0xb0, 0xc6, 0x06, 0x78, 0x17, 0x07, 0x72, 0x7f, 0xf3, - 0x06, 0x62, 0x7f, 0x47, 0x22, 0x48, 0x0f, 0x33, 0x04, 0x30, 0x28, 0x17, - 0x0e, 0x51, 0x7f, 0x10, 0x0e, 0xd0, 0x7f, 0x01, 0x10, 0x14, 0x15, 0x15, - 0x15, 0x15, 0x10, 0x20, 0x06, 0x00, 0x13, 0x14, 0x10, 0x10, 0x10, 0x10, - 0xd1, 0x21, 0x00, 0x52, 0x06, 0x00, 0x00, 0x13, 0x6c, 0xc6, 0x30, 0x16, - 0xa3, 0x30, 0xc1, 0x28, 0x19, 0xce, 0x06, 0x48, 0x15, 0x38, 0x17, 0x69, - 0x2c, 0x00, 0x63, 0x27, 0x8f, 0x6e, 0x2f, 0xb7, 0x06, 0x55, 0x17, 0x65, - 0x00, 0x7c, 0x73, 0x20, 0x01, 0x30, 0x81, 0x0e, 0x50, 0x7f, 0x07, 0x31, - 0x7f, 0x06, 0x91, 0xff, 0xd0, 0x63, 0x08, 0x51, 0x59, 0xfa, 0x8b, 0x06, - 0x98, 0x17, 0xf0, 0xd2, 0x58, 0x1c, 0xce, 0x78, 0xb1, 0x06, 0x78, 0x15, - 0x07, 0xd3, 0x7f, 0x06, 0x34, 0x01, 0x22, 0x04, 0x11, 0x38, 0x04, 0x47, - 0x20, 0x03, 0x3d, 0x04, 0x3e, 0x06, 0x68, 0x17, 0xc0, 0x06, 0xf4, 0xff, - 0x10, 0x0e, 0xd0, 0x7f, 0x11, 0x15, 0x14, 0x14, 0x14, 0x14, 0x40, 0x11, - 0x20, 0x06, 0x12, 0x15, 0x11, 0x11, 0x11, 0x11, 0x11, 0xd9, 0x20, 0x6a, - 0x28, 0x17, 0x14, 0x6c, 0xa6, 0x28, 0x13, 0x6b, 0xea, 0x06, 0x68, 0x13, - 0x3f, 0xff, 0x55, 0x2f, 0xab, 0x69, 0x06, 0x7d, 0xac, 0x10, 0x0f, 0x20, - 0x7f, 0x08, 0x4c, 0x4e, 0xcc, 0x91, 0x06, 0x98, 0x15, 0x00, 0x00, 0xb0, - 0x18, 0xc6, 0xac, 0xb9, 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x23, 0x04, - 0x40, 0xe2, 0x28, 0x19, 0x10, 0x16, 0x94, 0x7f, 0x06, 0xf6, 0xff, 0x12, - 0x16, 0x16, 0x20, 0x01, 0x12, 0xa0, 0x20, 0x06, 0x14, 0x20, 0x05, 0x12, - 0x12, 0x53, 0x21, 0x24, 0x83, 0x28, 0x17, 0x15, 0x6c, 0xd0, 0x30, 0xec, - 0x28, 0x19, 0x06, 0x9d, 0x2f, 0x05, 0x56, 0x00, 0x61, 0x00, 0x6c, 0x20, - 0x03, 0x69, 0x2f, 0xb5, 0xaa, 0x0e, 0x30, 0x7f, 0x57, 0x40, 0xff, 0x6c, - 0x06, 0xe0, 0xff, 0x6c, 0x4f, 0xb5, 0x65, 0x84, 0x0e, 0x21, 0xff, 0xe6, - 0x74, 0xb1, 0x83, 0x06, 0xb8, 0x17, 0x1c, 0xbc, 0x38, 0x08, 0xb8, 0x06, - 0xb8, 0x17, 0x07, 0x52, 0x7f, 0x06, 0x93, 0xff, 0x12, 0x04, 0x30, 0x0e, - 0x04, 0x3b, 0x04, 0x35, 0x06, 0x88, 0x19, 0x0e, 0xf4, 0xff, 0x10, 0x06, - 0xf0, 0xff, 0x13, 0x00, 0x17, 0x17, 0x18, 0x17, 0x17, 0x13, 0x13, 0x18, - 0x20, 0x17, 0x07, 0x20, 0x05, 0x13, 0x13, 0xe1, 0x20, 0x3b, 0x03, 0x05, - 0x00, 0x00, 0x16, 0x6c, 0xdc, 0x06, 0xc8, 0x15, 0x58, 0x17, 0x1a, 0x75, - 0x00, 0x64, 0x0e, 0x80, 0x7f, 0x38, 0x17, 0x61, 0x20, 0xff, 0x74, 0x90, - 0x10, 0x06, 0x61, 0x7f, 0x83, 0x6c, 0x06, 0xb8, 0x15, 0x00, 0x00, 0xf4, - 0xbc, 0xc7, 0x06, 0xb8, 0x15, 0x0f, 0x13, 0x7f, 0x12, 0x04, 0x3e, 0x06, - 0x88, 0x13, 0x0f, 0x34, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x00, 0x14, 0x18, - 0x18, 0x17, 0x18, 0x18, 0x14, 0x14, 0x10, 0x17, 0x18, 0x08, 0x20, 0x05, - 0x14, 0x14, 0x15, 0x21, 0x45, 0xb6, 0x2b, 0x23, 0x17, 0x6c, 0xc4, 0x28, - 0x17, 0xaf, 0x06, 0xa8, 0x19, 0x51, 0x5a, 0x28, 0x15, 0x67, 0x06, 0xa5, - 0x98, 0x5a, 0x00, 0x6f, 0x06, 0xc0, 0x81, 0xd1, 0x07, 0x10, 0xff, 0x31, - 0x7f, 0x6f, 0x0e, 0x90, 0xff, 0x69, 0x3c, 0x68, 0x06, 0xbb, 0x17, 0x0e, - 0x94, 0xcd, 0x6c, 0xd0, 0x06, 0xb8, 0x19, 0x07, 0x52, 0x7f, 0x06, 0x9c, - 0x97, 0x26, 0x0e, 0x04, 0x43, 0x04, 0x33, 0x06, 0xa8, 0x19, 0x0e, 0xf1, - 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x15, 0x2a, 0x19, 0x19, 0x20, 0x01, 0x15, - 0x20, 0x06, 0x16, 0x20, 0x05, 0x15, 0x00, 0x15, 0x8c, 0x21, 0x0c, 0x06, - 0x00, 0x00, 0x18, 0x08, 0x6c, 0xc1, 0x30, 0xe5, 0x28, 0x19, 0xea, 0x30, - 0xd2, 0xc0, 0x06, 0x68, 0x1b, 0x38, 0x17, 0x72, 0x00, 0x69, 0x00, 0x63, - 0x00, 0x6c, 0x68, 0x06, 0x88, 0x97, 0x06, 0xd0, 0x7f, 0xfc, 0x07, 0x40, - 0xff, 0x06, 0x78, 0x1b, 0x5a, 0x00, 0x40, 0xfa, 0x06, 0xc1, 0xff, 0xcf, - 0x82, 0xce, 0x9e, 0x16, 0x4e, 0x81, 0x06, 0x9b, 0x17, 0xe8, 0xcd, 0xac, - 0xb9, 0x88, 0xd7, 0x06, 0x98, 0x19, 0xa8, 0x07, 0x72, 0x7f, 0x71, 0x2f, - 0x35, 0x65, 0x06, 0x48, 0x17, 0x4e, 0x04, 0x40, 0x0e, 0x04, 0x38, 0x04, - 0x45, 0x06, 0x68, 0x1b, 0x0f, 0x14, 0xff, 0x10, 0x06, 0xd0, 0xff, 0x16, - 0x2a, 0x1a, 0x1a, 0x20, 0x01, 0x16, 0x20, 0x06, 0x17, 0x20, 0x05, 0x16, - 0x08, 0x16, 0xb3, 0x21, 0x12, 0x28, 0x17, 0x19, 0x6c, 0xa2, 0x00, 0x30, - 0xc3, 0x30, 0xda, 0x30, 0xf3, 0x30, 0xc4, 0x00, 0x30, 0xa7, 0x30, 0xeb, - 0x30, 0xfb, 0x30, 0xa2, 0x0a, 0x30, 0xa6, 0x30, 0xb5, 0x28, 0x29, 0xed, - 0x28, 0x2d, 0xc7, 0x91, 0x20, 0x17, 0x96, 0x6e, 0x04, 0xdd, 0x4d, 0x41, - 0x00, 0x70, 0x20, 0x01, 0x05, 0x65, 0x00, 0x6e, 0x00, 0x7a, 0x24, 0x17, - 0x6c, 0x20, 0x01, 0x15, 0x20, 0x00, 0x4f, 0x2f, 0xc1, 0x74, 0x24, 0x25, - 0x72, 0x20, 0x0b, 0x45, 0x52, 0x28, 0x2f, 0x6f, 0x00, 0x64, 0x24, 0x33, - 0x73, 0x05, 0x80, 0x7f, 0x82, 0xb0, 0x73, 0x2d, 0x00, 0x45, 0x00, 0x78, - 0x20, 0x8d, 0xe9, 0xba, 0x48, 0xbd, 0x65, 0x48, 0xc5, 0x03, 0xb0, 0x8b, - 0x00, 0x30, 0xff, 0x41, 0x2f, 0xc3, 0x73, 0xd5, 0x20, 0xef, 0x31, 0x01, - 0x72, 0x80, 0xff, 0x6e, 0x05, 0x61, 0x7f, 0x6f, 0x21, 0x81, 0x6e, 0x45, - 0x21, 0x6d, 0x51, 0x81, 0x6e, 0x04, 0xe8, 0x2f, 0x00, 0x51, 0x7f, 0x31, - 0xf1, 0x61, 0xf7, 0x21, 0xf1, 0x30, 0x89, 0x31, 0x7d, 0x32, 0x0b, 0x69, - 0x28, 0xb9, 0x03, 0xd1, 0x7b, 0x43, 0x17, 0x00, 0x59, 0x3f, 0x96, 0x6d, - 0x5f, 0x56, 0x7b, 0x14, 0x10, 0x5c, 0x4a, 0x53, 0x06, 0x3b, 0x19, 0x44, - 0xc5, 0x9c, 0xd3, 0x00, 0xbc, 0xcc, 0x44, 0xc5, 0xb0, 0xc6, 0x1c, 0xc1, - 0x0e, 0x5c, 0xb8, 0x74, 0xb3, 0x05, 0xf8, 0x21, 0x08, 0x12, 0x7f, 0x05, - 0xd1, 0xff, 0x10, 0x20, 0x04, 0x3f, 0x20, 0x01, 0x35, 0x04, 0x3d, 0x04, - 0x46, 0xa2, 0x20, 0x05, 0x3b, 0x20, 0x01, 0x4c, 0x04, 0x2d, 0x20, 0x15, - 0x43, 0x28, 0x04, 0x41, 0x20, 0x01, 0x35, 0x28, 0x33, 0x40, 0x04, 0x3e, - 0x38, 0x04, 0x34, 0x40, 0x21, 0x0d, 0x74, 0xff, 0x10, 0x0d, 0xb0, 0x7f, - 0x17, 0x03, 0x01, 0x00, 0x02, 0x01, 0x01, 0x17, 0x17, 0x02, 0x01, 0x02, - 0x00, 0x03, 0x17, 0x17, 0x17, 0x17, 0xb1, 0x21, 0x96, 0xaa, 0x28, 0x17, - 0x1a, 0x00, 0x08, 0x17, 0xa4, 0x28, 0x23, 0xca, 0x06, 0xe8, 0x17, 0x49, - 0xbf, 0x28, 0x25, 0x6e, 0x07, 0x88, 0x17, 0x30, 0x8d, 0x05, 0xd8, 0x17, - 0x90, 0xff, 0x04, 0xf8, 0x15, 0x00, 0x78, 0x17, 0xf2, 0x50, 0xf3, 0x07, - 0x38, 0x17, 0x90, 0x89, 0x04, 0x58, 0x17, 0x85, 0x51, 0x07, 0x38, 0x17, - 0x74, 0x1e, 0xc7, 0x08, 0xb1, 0x06, 0x38, 0x15, 0x08, 0x32, 0x7f, 0x05, - 0xd1, 0xff, 0x00, 0x58, 0x17, 0x18, 0xb8, 0x28, 0x27, 0x3d, 0x05, 0x28, - 0x15, 0x08, 0x54, 0xff, 0x10, 0x0d, 0xb0, 0x7f, 0x18, 0x02, 0x02, 0x02, - 0x03, 0x02, 0x02, 0x18, 0x18, 0x03, 0x20, 0x06, 0x18, 0x02, 0x18, 0x18, - 0x18, 0xa8, 0x21, 0xb2, 0x28, 0x17, 0x1b, 0x28, 0x6c, 0xd0, 0x28, 0x03, - 0xbc, 0x28, 0x11, 0x1d, 0xff, 0xe9, 0xb6, 0x28, 0x1d, 0xc8, 0x05, 0x08, - 0x07, 0xff, 0xf4, 0x42, 0x4e, 0x17, 0x3f, 0xa9, 0x2d, 0x28, 0x00, 0x4c, - 0x2e, 0x23, 0x6e, 0x2f, 0xa7, 0x73, 0x00, 0x63, 0x8d, 0x2f, 0xb1, 0x61, - 0x00, 0x66, 0x2f, 0xa7, 0x05, 0x10, 0x7f, 0xe2, 0x2f, 0xa5, 0x54, 0x65, - 0x27, 0xff, 0x43, 0x2e, 0xa1, 0x6d, 0x2f, 0xbd, 0x61, 0x00, 0x75, 0x67, - 0x48, 0x95, 0x0d, 0x70, 0xff, 0x3f, 0x97, 0x69, 0x41, 0x03, 0x61, 0x2f, - 0xab, 0xb1, 0xd1, 0x05, 0x61, 0x05, 0xe0, 0x7f, 0x91, 0x85, 0x69, 0x00, - 0xf1, 0x05, 0x20, 0x7d, 0x00, 0x00, 0x00, 0xf4, 0x5d, 0x5e, 0x58, 0x14, - 0x5c, 0x08, 0x61, 0x4e, 0x51, 0x67, 0x06, 0x58, 0x17, 0x14, 0xbc, 0x24, - 0x06, 0xc8, 0x80, 0xb7, 0xb8, 0xd2, 0x06, 0x18, 0x11, 0x08, 0x12, 0x7f, - 0x69, 0xad, 0x42, 0x81, 0x28, 0x23, 0xfd, 0x69, 0x4a, 0x17, 0x3f, 0x25, - 0x29, 0x04, 0xe9, 0xaa, 0x06, 0x11, 0x04, 0x30, 0x04, 0x37, 0x48, 0x11, - 0x38, 0x0f, 0x1b, 0xb8, 0x20, 0x0d, 0x3d, 0x28, 0x07, 0x0d, 0xf1, 0x7f, - 0x10, 0x0e, 0x90, 0x7f, 0x19, 0x05, 0x04, 0x00, 0x04, 0x04, 0x04, 0x19, - 0x19, 0x04, 0x05, 0x05, 0x00, 0x05, 0x19, 0x19, 0x19, 0x19, 0xc1, 0x21, - 0x7f, 0x02, 0x05, 0x00, 0x00, 0x1c, 0x6c, 0xcb, 0x28, 0x0b, 0xd0, 0xba, - 0x28, 0x17, 0xc7, 0x28, 0x15, 0x05, 0xf8, 0x13, 0x3f, 0xff, 0x4e, 0x44, - 0x03, 0x77, 0xbd, 0x2e, 0x1d, 0x6c, 0x04, 0xcf, 0x17, 0x01, 0x50, 0x7f, - 0x06, 0x1e, 0x2f, 0x07, 0x50, 0xff, 0x76, 0x61, 0x7f, 0x40, 0x6f, 0x0e, - 0x00, 0xff, 0x0b, 0x4e, 0xe6, 0x74, 0x14, 0x5c, 0x20, 0x7b, 0x76, 0x06, - 0x58, 0x15, 0x00, 0x00, 0xc8, 0xb2, 0xb8, 0x06, 0xd2, 0x1c, 0xbc, 0x74, - 0xb3, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1d, 0x2d, 0x04, 0x38, 0x28, - 0x07, 0x32, 0x28, 0x1d, 0x38, 0x19, 0x34, 0x28, 0x21, 0x71, 0x3d, 0x05, - 0xa8, 0x15, 0x07, 0xf4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x1a, 0x0e, 0x0e, - 0x20, 0x01, 0x50, 0x1a, 0x20, 0x06, 0x0f, 0x20, 0x05, 0x1a, 0x1a, 0x62, - 0x21, 0x60, 0xf0, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x01, 0x06, 0x06, 0x06, - 0x06, 0x20, 0x05, 0x01, 0x40, 0x06, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, - 0x01, 0x03, 0x01, 0x03, 0x03, 0x02, 0x30, 0x06, 0x01, 0x04, 0x02, 0x02, - 0x02, 0x02, 0x03, 0x38, 0x58, 0x06, 0x03, 0x40, 0x03, 0x38, 0x66, 0x03, - 0x03, 0x03, 0x03, 0x04, 0x07, 0x54, 0x07, 0x20, 0x01, 0x04, 0x20, 0x06, - 0x15, 0x20, 0x05, 0x04, 0x04, 0x15, 0x05, 0x08, 0x08, 0x20, 0x01, 0x05, - 0x20, 0x06, 0x0b, 0x20, 0x05, 0x81, 0x20, 0x2a, 0x09, 0x09, 0x09, 0x0a, - 0x09, 0x06, 0x30, 0x06, 0x80, 0x20, 0x05, 0x06, 0x06, 0x07, 0x0a, 0x0a, - 0x0a, 0x0b, 0x30, 0x0a, 0x07, 0x30, 0x06, 0x20, 0x05, 0x07, 0x07, 0x08, - 0x0b, 0x09, 0x0b, 0x0b, 0x09, 0x0b, 0x20, 0x2d, 0x0b, 0x1a, 0x20, 0x05, - 0x05, 0x08, 0x08, 0x09, 0x0c, 0x0c, 0x20, 0x01, 0x09, 0x20, 0x06, 0x65, - 0x0d, 0x20, 0x05, 0x20, 0x3b, 0x0d, 0x0d, 0x20, 0x01, 0x0a, 0x20, 0x06, - 0x65, 0x0e, 0x20, 0x05, 0x20, 0x3b, 0x0f, 0x0f, 0x20, 0x01, 0x0b, 0x20, - 0x06, 0x40, 0x10, 0x20, 0x05, 0x0b, 0x0b, 0x0c, 0x13, 0x10, 0x10, 0x00, - 0x10, 0x10, 0x0c, 0x0c, 0x10, 0x10, 0x11, 0x13, 0x80, 0x30, 0x3a, 0x0d, - 0x10, 0x11, 0x11, 0x11, 0x11, 0x0d, 0x04, 0x0d, 0x11, 0x11, 0x18, 0x10, - 0x30, 0x3a, 0x0e, 0x11, 0x00, 0x12, 0x12, 0x13, 0x12, 0x0e, 0x0e, 0x12, - 0x12, 0x20, 0x19, 0x11, 0x31, 0x02, 0x0f, 0x12, 0x13, 0x13, 0x12, 0x01, - 0x13, 0x0f, 0x0f, 0x13, 0x13, 0x0c, 0x12, 0x30, 0x4a, 0x01, 0x10, 0x14, - 0x15, 0x15, 0x15, 0x15, 0x10, 0x20, 0x06, 0x20, 0x13, 0x14, 0x30, 0x49, - 0x11, 0x15, 0x14, 0x14, 0x14, 0x24, 0x14, 0x11, 0x20, 0x06, 0x12, 0x15, - 0x30, 0x49, 0x12, 0x16, 0x56, 0x16, 0x20, 0x01, 0x12, 0x20, 0x06, 0x14, - 0x20, 0x05, 0x20, 0x4b, 0x17, 0x00, 0x17, 0x18, 0x17, 0x17, 0x13, 0x13, - 0x18, 0x17, 0x40, 0x07, 0x20, 0x05, 0x13, 0x13, 0x14, 0x18, 0x18, 0x17, - 0x01, 0x18, 0x18, 0x14, 0x14, 0x17, 0x18, 0x08, 0x20, 0x05, 0x12, 0x14, - 0x14, 0x15, 0x39, 0x74, 0x19, 0x15, 0x20, 0x06, 0x16, 0x89, 0x20, 0x05, - 0x15, 0x15, 0x16, 0x31, 0x6c, 0x1a, 0x16, 0x20, 0x06, 0x42, 0x17, 0x20, - 0x05, 0x16, 0x16, 0x17, 0x03, 0x21, 0x52, 0x01, 0x00, 0x17, 0x17, 0x02, - 0x01, 0x02, 0x03, 0x17, 0x17, 0xc1, 0x20, 0x4c, 0x21, 0x52, 0x02, 0x02, - 0x18, 0x18, 0x03, 0x20, 0x06, 0x0e, 0x18, 0x18, 0x18, 0x18, 0xf9, 0xbf, - 0xf1, 0xb7, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0xe4, 0x9c, 0x02, 0x11, 0x51, 0x00, 0x00, - 0x30, 0x01, 0x6d, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x64, 0x1c, 0x5c, 0x17, 0x00, 0x00, 0x00, - 0x02, 0x6d, 0xa2, 0x30, 0xf3, 0x30, 0xab, 0x04, 0x30, 0xe9, 0x30, 0x0c, - 0x77, 0x06, 0x58, 0x1f, 0x41, 0x00, 0x01, 0x6e, 0x00, 0x6b, 0x00, 0x61, - 0x00, 0x72, 0x20, 0x03, 0x80, 0x10, 0x16, 0x30, 0x7f, 0x89, 0x5b, 0x61, - 0x53, 0xc9, 0x62, 0x01, 0x80, 0x06, 0x62, 0xfd, 0x00, 0x00, 0x59, 0xc5, - 0x74, 0xce, 0x7c, 0x05, 0xb7, 0x20, 0x00, 0xfc, 0xc8, 0x0e, 0x93, 0x7f, - 0x63, 0x06, 0xa3, 0xff, 0x00, 0x10, 0x04, 0x3d, 0x04, 0x3a, 0x04, 0x30, - 0x04, 0x60, 0x40, 0x20, 0x03, 0x10, 0x1e, 0x34, 0xff, 0x01, 0x07, 0x07, - 0x07, 0x08, 0x32, 0x07, 0x01, 0x30, 0x06, 0x20, 0x05, 0x01, 0x01, 0x58, - 0x17, 0x03, 0x02, 0x6d, 0xa4, 0x30, 0xb9, 0x30, 0xbf, 0x28, 0x1b, 0xd6, - 0x20, 0x30, 0xeb, 0x06, 0x48, 0x1b, 0x30, 0x01, 0x73, 0x00, 0x74, 0x80, - 0x28, 0x17, 0x6e, 0x00, 0x62, 0x00, 0x75, 0x00, 0x6c, 0x95, 0x10, 0x06, - 0x00, 0x7f, 0x49, 0x00, 0x06, 0xd1, 0x7f, 0x45, 0x60, 0x7f, 0x6d, 0x06, - 0x61, 0xff, 0x00, 0x0a, 0x4f, 0xaf, 0x65, 0x66, 0x57, 0x03, 0x5e, 0x20, - 0x14, 0x5c, 0x06, 0x58, 0x1b, 0x74, 0xc7, 0xa4, 0xc2, 0xc4, 0x18, 0xd0, - 0x88, 0xbd, 0x06, 0x78, 0x19, 0xb1, 0xff, 0x6f, 0x00, 0x65, 0xe2, 0x06, - 0x03, 0x81, 0x72, 0x7f, 0x06, 0x71, 0xff, 0x21, 0x04, 0x42, 0x28, 0x15, - 0x3c, 0x03, 0x04, 0x31, 0x04, 0x43, 0x04, 0x3b, 0x06, 0x28, 0x19, 0x10, - 0x06, 0xf4, 0xff, 0x80, 0x0e, 0xf6, 0x7f, 0x02, 0x28, 0x28, 0x28, 0x28, - 0x21, 0x02, 0x80, 0x20, 0x06, 0x3d, 0x28, 0x02, 0x02, 0x02, 0x02, 0x2a, - 0x02, 0x1d, 0x9a, 0x14, 0x00, 0x00, 0x04, 0x28, 0x17, 0xba, 0x35, 0x30, - 0xdf, 0x06, 0x68, 0x13, 0x58, 0x17, 0x7a, 0x26, 0x13, 0x69, 0x2f, 0xaf, - 0xac, 0x10, 0x06, 0x50, 0x7f, 0x53, 0x61, 0x7d, 0x6e, 0x26, 0x13, 0x0e, - 0x31, 0xff, 0x0a, 0x4f, 0x0c, 0x79, 0x51, 0xc6, 0x5b, 0x06, 0x78, 0x15, - 0x38, 0x17, 0x88, 0xc9, 0x0c, 0xf8, 0xbb, 0x74, 0xb9, 0x06, 0x78, 0x17, - 0x0e, 0xf3, 0x7f, 0x18, 0x04, 0x47, 0x37, 0x28, 0x15, 0x38, 0x04, 0x40, - 0x06, 0x28, 0x13, 0x10, 0x07, 0x34, 0xff, 0x0e, 0xf6, 0x7f, 0x01, 0x03, - 0x29, 0x29, 0x29, 0x48, 0x29, 0x03, 0x20, 0x06, 0x40, 0x1e, 0x20, 0x05, - 0x03, 0x03, 0x52, 0x1b, 0x4a, 0x13, 0x05, 0x00, 0x00, 0x05, 0x6d, 0xd6, - 0x28, 0x13, 0xb5, 0x06, 0x88, 0x15, 0x15, 0x00, 0x00, 0x42, 0x2f, 0xa5, - 0x72, 0x2e, 0xb3, 0x61, 0x10, 0x16, 0x60, 0x7f, 0x02, 0x03, 0x5e, 0x14, - 0x5c, 0x28, 0x84, 0x06, 0x78, 0x15, 0x00, 0x01, 0x00, 0x80, 0xbd, 0x74, - 0xb9, 0xac, 0xc0, 0x06, 0x78, 0x15, 0x88, 0x0f, 0x13, 0x7f, 0x11, 0x04, - 0x43, 0x28, 0x13, 0x41, 0x04, 0x30, 0xc5, 0x06, 0x68, 0x17, 0x10, 0x16, - 0xf4, 0xff, 0x04, 0x15, 0x15, 0x20, 0x01, 0x04, 0x40, 0x06, 0x00, 0x04, - 0x04, 0x04, 0x04, 0x93, 0x1c, 0xab, 0x14, 0x00, 0x00, 0x00, 0x06, 0x6d, - 0xa2, 0x30, 0xc0, 0x30, 0x45, 0xca, 0x06, 0xa8, 0x17, 0x41, 0x00, 0x64, - 0x28, 0x13, 0x6e, 0x06, 0x88, 0x17, 0x81, 0x10, 0x0e, 0xf0, 0x7f, 0x3f, - 0x96, 0xbe, 0x8f, 0xb3, 0x7e, 0x06, 0x98, 0x17, 0x03, 0x44, 0xc5, 0xe4, - 0xb2, 0x98, 0xb0, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x16, 0x10, 0x04, - 0x34, 0x28, 0x13, 0x3d, 0x06, 0x88, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x05, - 0x03, 0x01, 0x01, 0x01, 0x02, 0x01, 0x05, 0x20, 0x06, 0x30, 0x05, 0x00, - 0x05, 0x05, 0x4f, 0x1a, 0x1e, 0x19, 0x00, 0x00, 0x00, 0x07, 0x6d, 0xac, - 0x30, 0xb8, 0x30, 0xa2, 0x30, 0x05, 0xf3, 0x30, 0xc6, 0x30, 0xd7, 0x06, - 0x48, 0x1d, 0x47, 0x2f, 0xa9, 0x10, 0x7a, 0x00, 0x69, 0x48, 0x1b, 0x74, - 0x00, 0x65, 0x00, 0x40, 0x70, 0x10, 0x15, 0xe0, 0x7f, 0xa0, 0x52, 0x4e, - 0x6d, 0x89, 0x5b, 0x08, 0xf0, 0x6c, 0x6e, 0x66, 0x06, 0x68, 0x1b, 0xac, - 0xc0, 0xc9, 0x03, 0x48, 0xc5, 0x4c, 0xd1, 0x04, 0xd5, 0x06, 0x58, 0x1b, - 0x0e, 0xf3, 0x7f, 0x44, 0x13, 0x28, 0x15, 0x37, 0x04, 0x38, 0x48, 0x1b, - 0x42, 0x04, 0x18, 0x35, 0x04, 0x3f, 0x05, 0xe8, 0x1f, 0x10, 0x16, 0xf4, - 0xff, 0x06, 0x21, 0x21, 0x08, 0x21, 0x21, 0x22, 0x06, 0x20, 0x06, 0x17, - 0x21, 0x06, 0x00, 0x06, 0x06, 0x06, 0x5b, 0x1a, 0x95, 0x1a, 0x00, 0x00, - 0x00, 0x08, 0x6d, 0xb3, 0x30, 0xcb, 0x30, 0xe4, 0xc5, 0x06, 0x48, 0x11, - 0x5f, 0xff, 0x4b, 0x00, 0x6f, 0x2f, 0xad, 0x79, 0x06, 0x8f, 0xaf, 0x81, - 0x10, 0x0e, 0xf0, 0x7f, 0xd1, 0x79, 0x3c, 0x5c, 0x9a, 0x4e, 0x06, 0x68, - 0x13, 0x81, 0x2f, 0xff, 0x54, 0xcf, 0xc8, 0xb2, 0x44, 0xc5, 0x06, 0x58, - 0x13, 0x88, 0x0f, 0x33, 0x7f, 0x1a, 0x04, 0x3e, 0x28, 0x11, 0x4c, 0x04, - 0x4f, 0xc0, 0x05, 0xe8, 0x0f, 0x10, 0x17, 0x74, 0xff, 0x07, 0x35, 0x35, - 0x35, 0x34, 0x35, 0x50, 0x07, 0x20, 0x06, 0x28, 0x20, 0x05, 0x07, 0x07, - 0xed, 0x1a, 0x00, 0x19, 0x17, 0x00, 0x00, 0x09, 0x6d, 0xa2, 0x30, 0x05, - 0xf3, 0x30, 0xbf, 0x30, 0xea, 0x06, 0x88, 0x1b, 0x41, 0x4f, 0xa7, 0x1b, - 0x61, 0x00, 0x6c, 0x06, 0x68, 0x1b, 0x0f, 0x10, 0x7f, 0x64, 0x41, 0x7d, - 0x3f, 0xb1, 0x81, 0x0e, 0x31, 0xff, 0x89, 0x5b, 0x54, 0x58, 0x29, 0x52, - 0x06, 0x98, 0x19, 0x03, 0x48, 0xc5, 0xc8, 0xd0, 0xac, 0xb9, 0x06, 0x98, - 0x19, 0x0e, 0xf3, 0x7f, 0x41, 0x10, 0x28, 0x15, 0x42, 0x04, 0x30, 0x04, - 0x3b, 0x06, 0x68, 0x1b, 0xc1, 0x10, 0x07, 0x14, 0xff, 0x0e, 0xd6, 0x7f, - 0x08, 0x08, 0x08, 0x08, 0x01, 0x30, 0x04, 0x80, 0x60, 0x03, 0x3d, 0x1a, - 0xd1, 0x15, 0x00, 0x00, 0x0a, 0x08, 0x6d, 0xc7, 0x30, 0xa3, 0x28, 0x13, - 0xeb, 0x30, 0xd0, 0x36, 0x30, 0xaf, 0x20, 0x05, 0x06, 0x18, 0x1b, 0x44, - 0x26, 0x91, 0x3f, 0xad, 0x72, 0x20, 0x00, 0x62, 0x2f, 0xb3, 0x6b, 0x00, - 0x31, 0x01, 0x72, 0x80, 0x10, 0x15, 0xc0, 0x7f, 0xea, 0x8f, 0x9a, 0x4e, - 0xf4, 0x5d, 0x4b, 0x10, 0x51, 0x14, 0x5c, 0x06, 0x58, 0x19, 0x14, 0xb5, - 0x7c, 0xc5, 0x00, 0x74, 0xb9, 0x14, 0xbc, 0xa4, 0xd0, 0x74, 0xb9, 0xc4, - 0x06, 0x38, 0x1b, 0x0e, 0xf3, 0x7f, 0x14, 0x04, 0x38, 0x28, 0x0f, 0x40, - 0x04, 0x46, 0x31, 0x28, 0x1b, 0x3a, 0x04, 0x4b, 0x20, 0x09, 0x10, 0x1d, - 0xd4, 0xff, 0x09, 0x2a, 0x1a, 0x1a, 0x20, 0x01, 0x09, 0x20, 0x06, 0x1b, - 0x20, 0x05, 0x09, 0x00, 0x09, 0x02, 0x1b, 0x98, 0x1c, 0x00, 0x00, 0x0b, - 0x23, 0x6d, 0xe1, 0x28, 0x13, 0xb7, 0x30, 0xf3, 0x06, 0x28, 0x11, 0x5f, - 0xff, 0x15, 0x4d, 0x00, 0x65, 0x28, 0x13, 0x73, 0x2e, 0xaf, 0x6e, 0x10, - 0x16, 0x40, 0x7f, 0x03, 0x85, 0x68, 0x14, 0x5c, 0x9b, 0x8f, 0x06, 0x58, - 0x13, 0x3f, 0xff, 0x03, 0x54, 0xba, 0x74, 0xb9, 0xe0, 0xc2, 0x06, 0x38, - 0x11, 0x0f, 0x53, 0x7f, 0x15, 0x1c, 0x04, 0x35, 0x28, 0x15, 0x41, 0x28, - 0x1d, 0x3d, 0x05, 0xe8, 0x11, 0x80, 0x10, 0x17, 0x54, 0xff, 0x0a, 0x3a, - 0x3a, 0x3a, 0x39, 0x3a, 0x0a, 0xa0, 0x20, 0x06, 0x30, 0x20, 0x05, 0x0a, - 0x0a, 0x2b, 0x1a, 0xa0, 0x00, 0x18, 0x00, 0x00, 0x0c, 0x6d, 0xab, 0x30, - 0xa4, 0x0a, 0x30, 0xbb, 0x30, 0xea, 0x06, 0x88, 0x17, 0x4b, 0x2f, 0xab, - 0x79, 0xd0, 0x28, 0x17, 0x38, 0x1d, 0x69, 0x10, 0x16, 0x20, 0x7f, 0x00, - 0x5f, 0x5e, 0x58, 0x20, 0x29, 0x52, 0x06, 0x98, 0x17, 0x74, 0xce, 0x74, - 0xc7, 0x38, 0x18, 0xc1, 0xac, 0xb9, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, - 0x1a, 0x04, 0x30, 0x36, 0x04, 0x39, 0x28, 0x17, 0x38, 0x1d, 0x38, 0x06, - 0x28, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x0b, 0x02, 0x2f, 0x2f, 0x2f, 0x2e, - 0x2f, 0x0b, 0x20, 0x06, 0x20, 0x80, 0x20, 0x05, 0x0b, 0x0b, 0x8b, 0x1b, - 0x3b, 0x19, 0x00, 0x00, 0x00, 0x0e, 0x6d, 0xb7, 0x30, 0xe3, 0x30, 0xf3, - 0x08, 0x30, 0xeb, 0x30, 0xa6, 0x20, 0x03, 0xd5, 0x30, 0xa1, 0x88, 0x06, - 0x08, 0x1f, 0x5e, 0x01, 0x61, 0x2f, 0xa9, 0x6c, 0x00, 0x31, 0x2c, 0x01, - 0x75, 0x2f, 0xb7, 0x66, 0x28, 0x25, 0x10, 0x15, 0xd0, 0x7f, 0x1a, 0x5c, - 0x00, 0x29, 0x52, 0x4c, 0x4e, 0x14, 0x5c, 0xd5, 0x6c, 0x80, 0x06, 0x58, - 0x1b, 0xe8, 0xc0, 0xac, 0xb9, 0xb0, 0xc6, 0x74, 0x1a, 0xb9, 0x0c, 0xd3, - 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, 0x28, 0x28, 0x17, 0x3d, 0x02, 0x04, - 0x3b, 0x04, 0x4b, 0x04, 0x43, 0x28, 0x19, 0x44, 0xc0, 0x28, 0x25, 0x10, - 0x1d, 0xd4, 0xff, 0x0c, 0x44, 0x44, 0x44, 0x43, 0x44, 0x50, 0x0c, 0x20, - 0x06, 0x48, 0x20, 0x05, 0x0c, 0x0c, 0x6a, 0x1a, 0x00, 0x97, 0x1b, 0x00, - 0x00, 0x0f, 0x6d, 0xde, 0x30, 0x01, 0xe9, 0x30, 0xc6, 0x30, 0xa3, 0x30, - 0xe4, 0x06, 0x08, 0x11, 0xab, 0x5f, 0xff, 0x4d, 0x2f, 0xaf, 0x6c, 0x2f, - 0xb3, 0x74, 0x2f, 0xb5, 0x05, 0xf8, 0x13, 0x80, 0x10, 0x0f, 0x30, 0x7f, - 0x6c, 0x9a, 0xc9, 0x62, 0x82, 0x84, 0x9a, 0x40, 0x4e, 0x06, 0x58, 0x15, - 0x00, 0x00, 0xd0, 0xb9, 0x7c, 0xb7, 0x0d, 0xf0, 0xd2, 0x44, 0xc5, 0x06, - 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x1c, 0x28, 0x17, 0x41, 0x3b, 0x28, 0x1b, - 0x42, 0x04, 0x4c, 0x04, 0x4f, 0x05, 0xe8, 0x13, 0x80, 0x10, 0x17, 0x34, - 0xff, 0x0d, 0x37, 0x37, 0x37, 0x36, 0x37, 0x0d, 0xa0, 0x20, 0x06, 0x2d, - 0x20, 0x05, 0x0d, 0x0d, 0x45, 0x1b, 0x3e, 0x80, 0x28, 0x17, 0x10, 0x6d, - 0xa8, 0x30, 0xeb, 0x30, 0xba, 0xa9, 0x20, 0x03, 0xe0, 0x06, 0x68, 0x17, - 0x45, 0x2f, 0xa5, 0x7a, 0x00, 0x3f, 0xab, 0x10, 0x75, 0x00, 0x6d, 0x10, - 0x16, 0x20, 0x7f, 0xc3, 0x57, 0x14, 0x5c, 0x02, 0x56, 0x79, 0x81, 0x9c, - 0xc6, 0x59, 0x06, 0x58, 0x19, 0xd0, 0x01, 0xc5, 0x74, 0xb9, 0xfc, 0xc8, - 0xf8, 0xb8, 0x06, 0x78, 0x17, 0x80, 0x0e, 0xf3, 0x7f, 0x2d, 0x04, 0x40, - 0x04, 0x37, 0x04, 0x43, 0x8c, 0x20, 0x05, 0x43, 0x04, 0x3c, 0x06, 0x28, - 0x17, 0x10, 0x16, 0xf4, 0xff, 0x0e, 0x1f, 0x54, 0x1f, 0x20, 0x01, 0x0e, - 0x20, 0x06, 0x4f, 0x20, 0x05, 0x0e, 0x0e, 0x00, 0x5f, 0x1c, 0x58, 0x1d, - 0x00, 0x00, 0x11, 0x6d, 0x44, 0xb5, 0x28, 0x11, 0xb9, 0x30, 0xf3, 0x06, - 0x68, 0x15, 0x00, 0x00, 0x45, 0x53, 0x2f, 0xaf, 0x6d, 0x00, 0x73, 0x28, - 0x19, 0x6e, 0x10, 0x16, 0x40, 0x7f, 0x03, 0x28, 0x84, 0xc6, 0x59, 0x7e, - 0x67, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x0c, 0xbc, 0xc0, 0x1c, 0xc2, 0x06, - 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x21, 0x04, 0x56, 0x30, 0x28, 0x0f, 0x41, - 0x28, 0x19, 0x3d, 0x06, 0x28, 0x15, 0x10, 0x17, 0x14, 0xff, 0x0f, 0x02, - 0x43, 0x43, 0x43, 0x42, 0x43, 0x0f, 0x20, 0x06, 0x39, 0x80, 0x20, 0x05, - 0x0f, 0x0f, 0x5c, 0x1d, 0xd6, 0x19, 0x00, 0x0d, 0x00, 0x12, 0x6d, 0xef, - 0x06, 0xa8, 0x13, 0x3f, 0xff, 0x56, 0x28, 0x17, 0xcc, 0x06, 0x58, 0x11, - 0x10, 0x0f, 0x50, 0x7f, 0xe1, 0x51, 0x06, 0x98, 0x13, 0x3f, 0xff, 0x18, - 0xbc, 0xdc, 0x06, 0xb8, 0x15, 0x0f, 0x13, 0x7f, 0x12, 0x28, 0x17, 0x06, - 0x58, 0x11, 0x10, 0x17, 0x54, 0xff, 0x10, 0x4e, 0x54, 0x4e, 0x20, 0x01, - 0x10, 0x20, 0x06, 0x16, 0x20, 0x05, 0x10, 0x10, 0x00, 0x5f, 0x1b, 0xd9, - 0x1e, 0x00, 0x00, 0x13, 0x6d, 0x01, 0xab, 0x30, 0xd5, 0x30, 0xe9, 0x30, - 0xde, 0x28, 0x1d, 0x45, 0xde, 0x20, 0x07, 0xb7, 0x30, 0xe5, 0x05, 0xe8, - 0x25, 0x4b, 0x2f, 0xaf, 0x1e, 0x68, 0x00, 0x72, 0x4f, 0xb5, 0x38, 0x21, - 0x30, 0x05, 0x30, 0x0d, 0x5f, 0x40, 0x01, 0x10, 0x15, 0x50, 0x7f, 0x61, - 0x53, 0x6b, 0x8d, 0xc9, 0x62, 0x00, 0xfc, 0x66, 0x6c, 0x9a, 0xc9, 0x62, - 0xc0, 0x4e, 0x80, 0x06, 0x18, 0x23, 0x74, 0xce, 0x7c, 0xb7, 0xcc, 0xb9, - 0xc8, 0x06, 0xb9, 0x7c, 0xb7, 0x88, 0xc2, 0x06, 0x38, 0x21, 0x0e, 0xf3, - 0x7f, 0x1a, 0x8b, 0x28, 0x17, 0x45, 0x04, 0x40, 0x28, 0x1d, 0x3c, 0x48, - 0x21, 0x30, 0x05, 0xb0, 0x30, 0x0d, 0x48, 0x05, 0x68, 0x2b, 0x10, 0x16, - 0xf4, 0xff, 0x11, 0x2a, 0x2a, 0x2a, 0x14, 0x29, 0x2a, 0x11, 0x20, 0x06, - 0x25, 0x20, 0x05, 0x11, 0x11, 0x00, 0xb9, 0x1a, 0x43, 0x1a, 0x00, 0x00, - 0x14, 0x6d, 0x01, 0xc7, 0x30, 0xcb, 0x30, 0xba, 0x30, 0xea, 0x05, 0xe8, - 0x0d, 0x88, 0x9f, 0xff, 0x44, 0x00, 0x65, 0x2f, 0xaf, 0x69, 0x00, 0x7a, - 0x30, 0x00, 0x6c, 0x20, 0x05, 0x10, 0x16, 0x10, 0x7f, 0xe3, 0x4e, 0x3c, - 0x5c, 0x0c, 0x79, 0x51, 0x29, 0x52, 0x06, 0x18, 0x11, 0x5f, 0xff, 0x70, - 0xb3, 0x03, 0xc8, 0xb2, 0x90, 0xc9, 0xac, 0xb9, 0x06, 0x38, 0x13, 0x0f, - 0x33, 0x7f, 0x10, 0x14, 0x04, 0x35, 0x28, 0x0d, 0x38, 0x04, 0x37, 0x04, - 0x62, 0x3b, 0x20, 0x05, 0x10, 0x1e, 0x14, 0xff, 0x12, 0x19, 0x19, 0x20, - 0x01, 0x12, 0xa0, 0x20, 0x06, 0x1a, 0x20, 0x05, 0x12, 0x12, 0xdb, 0x1a, - 0xae, 0x00, 0x14, 0x00, 0x00, 0x15, 0x6d, 0xd0, 0x30, 0xc8, 0x0a, 0x30, - 0xde, 0x30, 0xf3, 0x06, 0x88, 0x17, 0x42, 0x2f, 0xaf, 0x74, 0xc0, 0x6f, - 0xab, 0x10, 0x16, 0x30, 0x7f, 0xf4, 0x5d, 0x79, 0x72, 0xfc, 0x66, 0xc3, - 0x06, 0x78, 0x15, 0x2b, 0x99, 0xbc, 0xb8, 0xd2, 0xcc, 0x06, 0x88, 0x15, - 0x0f, 0x13, 0x7f, 0x01, 0x11, 0x04, 0x30, 0x04, 0x42, 0x04, 0x3c, 0x20, - 0x05, 0x62, 0x3d, 0x06, 0x28, 0x15, 0x10, 0x17, 0x14, 0xff, 0x13, 0x0e, - 0x0e, 0x20, 0x01, 0x13, 0xa0, 0x20, 0x06, 0x0f, 0x20, 0x05, 0x13, 0x13, - 0xf0, 0x1a, 0x3d, 0x00, 0x1d, 0x00, 0x00, 0x16, 0x6d, 0xa8, 0x30, 0xe9, - 0x0a, 0x30, 0xba, 0x30, 0xfc, 0x06, 0x88, 0x17, 0x45, 0x2f, 0xa7, 0x61, - 0x85, 0x2f, 0xad, 0x31, 0x01, 0x1f, 0x01, 0x10, 0x06, 0x70, 0x7f, 0xe2, - 0x0e, 0xa1, 0x7f, 0x02, 0xc3, 0x57, 0xc9, 0x62, 0xfd, 0x6c, 0x06, 0x98, - 0x17, 0xd8, 0x06, 0xc5, 0x7c, 0xb7, 0xc0, 0xc9, 0x06, 0x98, 0x17, 0x0e, - 0xf3, 0x7f, 0x2d, 0x00, 0x04, 0x3b, 0x04, 0x4f, 0x04, 0x37, 0x04, 0x4b, - 0x38, 0x04, 0x33, 0x06, 0x48, 0x17, 0x10, 0x07, 0x34, 0xff, 0x0e, 0xb6, - 0x7f, 0x14, 0x1d, 0x1d, 0xa8, 0x20, 0x01, 0x14, 0x20, 0x06, 0x4d, 0x20, - 0x05, 0x14, 0x14, 0x82, 0x00, 0x1b, 0xe3, 0x1b, 0x00, 0x00, 0x17, 0x6d, - 0xb5, 0x02, 0x30, 0xab, 0x30, 0xea, 0x30, 0xe4, 0x06, 0x88, 0x17, 0x53, - 0xa3, 0x2f, 0xaf, 0x6b, 0x2f, 0xb3, 0x72, 0x00, 0x79, 0x2f, 0xb9, 0x10, - 0x16, 0x10, 0x7f, 0x00, 0x28, 0x84, 0x61, 0x53, 0xcc, 0x91, 0x9a, 0x4e, - 0x80, 0x06, 0x78, 0x19, 0xac, 0xc0, 0x74, 0xce, 0xac, 0xb9, 0x44, 0x60, - 0xc5, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x30, 0x04, 0x3a, - 0x8c, 0x20, 0x03, 0x40, 0x04, 0x4c, 0x28, 0x1f, 0x10, 0x1e, 0x14, 0xff, - 0x15, 0x42, 0x05, 0x42, 0x42, 0x41, 0x42, 0x15, 0x20, 0x06, 0x38, 0x20, - 0x05, 0x00, 0x15, 0x15, 0x00, 0x1d, 0x9e, 0x15, 0x00, 0x00, 0x00, 0x18, - 0x6d, 0xb3, 0x30, 0xb8, 0x30, 0xe3, 0x30, 0x60, 0xa8, 0x28, 0x1b, 0x06, - 0x58, 0x19, 0x4b, 0x00, 0x6f, 0x00, 0x63, 0xa8, 0x2f, 0xb1, 0x65, 0x2f, - 0xb7, 0x69, 0x10, 0x16, 0x20, 0x7f, 0xd1, 0x79, 0x3e, 0x04, 0x8d, 0xc3, - 0x57, 0x29, 0x52, 0x06, 0x78, 0x17, 0x54, 0xcf, 0x03, 0x90, 0xc7, 0xd8, - 0xc5, 0xac, 0xb9, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x01, 0x1a, 0x04, - 0x3e, 0x04, 0x34, 0x04, 0x36, 0x28, 0x1d, 0x06, 0x4d, 0x04, 0x3b, 0x04, - 0x38, 0x06, 0x08, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x16, 0x02, 0x34, 0x34, - 0x34, 0x33, 0x34, 0x16, 0x20, 0x06, 0x27, 0x82, 0x20, 0x05, 0x16, 0x16, - 0xfd, 0x1c, 0x46, 0x28, 0x17, 0x19, 0x03, 0x6d, 0xb7, 0x30, 0xef, 0x30, - 0xb9, 0x06, 0x68, 0x13, 0x5f, 0xaf, 0x14, 0x69, 0x00, 0x76, 0x2f, 0xb3, - 0x73, 0x10, 0x16, 0x60, 0x7f, 0x21, 0x95, 0x08, 0xe6, 0x74, 0xaf, 0x65, - 0x06, 0x78, 0x15, 0x00, 0x00, 0xdc, 0x07, 0xc2, 0x14, 0xbc, 0xa4, 0xc2, - 0x06, 0x78, 0x15, 0x0f, 0x21, 0xff, 0x28, 0x0b, 0x58, 0x32, 0x28, 0x15, - 0x41, 0x06, 0x08, 0x11, 0x10, 0x17, 0x54, 0xff, 0x17, 0x48, 0x48, 0x0a, - 0x48, 0x47, 0x48, 0x17, 0x20, 0x06, 0x3a, 0x20, 0x05, 0x17, 0x04, 0x17, - 0x44, 0x1c, 0x52, 0x1a, 0x2b, 0x2d, 0x6d, 0xde, 0x0a, 0x30, 0xcb, 0x30, - 0xb5, 0x06, 0xa8, 0x17, 0x4d, 0x2f, 0xab, 0x6e, 0xb0, 0x2f, 0xa9, 0x73, - 0x2f, 0xb3, 0x10, 0x16, 0x30, 0x7f, 0x6c, 0x9a, 0x3c, 0x5c, 0x20, 0x28, - 0x84, 0x06, 0x98, 0x17, 0xc8, 0xb9, 0xc8, 0xb2, 0xac, 0x6a, 0xc0, 0x06, - 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x1c, 0x28, 0x13, 0x3d, 0x28, 0x1b, 0x41, - 0xc0, 0x28, 0x1b, 0x10, 0x1e, 0x34, 0xff, 0x18, 0x38, 0x38, 0x38, 0x37, - 0x38, 0x50, 0x18, 0x20, 0x06, 0x2e, 0x20, 0x05, 0x18, 0x18, 0x75, 0x1b, - 0x00, 0x80, 0x13, 0x00, 0x00, 0x1b, 0x6d, 0xc8, 0x30, 0x01, 0xe9, 0x30, - 0xd6, 0x30, 0xbe, 0x30, 0xf3, 0x06, 0x68, 0x1b, 0x10, 0x54, 0x00, 0x72, - 0x2f, 0xad, 0x62, 0x00, 0x7a, 0x00, 0x6e, 0x6f, 0x28, 0x1f, 0x10, 0x06, - 0x50, 0x7f, 0x65, 0x21, 0x7f, 0x39, 0x99, 0x31, 0x81, 0x64, 0xc0, 0x05, - 0xe9, 0x9f, 0x06, 0xf1, 0xff, 0x79, 0x72, 0xc9, 0x62, 0x03, 0x5e, 0x20, - 0x97, 0x5b, 0x06, 0x78, 0x19, 0xb8, 0xd2, 0x7c, 0xb7, 0x0c, 0x18, 0xbe, - 0x74, 0xc8, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x22, 0x04, 0x40, 0x83, - 0x28, 0x19, 0x31, 0x04, 0x37, 0x04, 0x3e, 0x28, 0x1f, 0x10, 0x0e, 0x54, - 0xff, 0x8a, 0x0e, 0xb6, 0x7f, 0x19, 0x4b, 0x4b, 0x20, 0x01, 0x19, 0x20, - 0x06, 0x40, 0x81, 0x20, 0x05, 0x19, 0x19, 0x27, 0x1d, 0x41, 0x1c, 0x2b, - 0x2d, 0x00, 0x6d, 0xd0, 0x30, 0xeb, 0x30, 0xb1, 0x30, 0xb7, 0xd0, 0x20, - 0x05, 0x06, 0x58, 0x17, 0x42, 0x2f, 0xaf, 0x6c, 0x00, 0x31, 0x01, 0x54, - 0x6b, 0x26, 0x9d, 0x73, 0x2f, 0xb7, 0x72, 0x10, 0x15, 0xe0, 0x7f, 0xf4, - 0x5d, 0x00, 0xd2, 0x52, 0x4b, 0x51, 0xc3, 0x57, 0x7f, 0x89, 0x20, 0x14, - 0x5c, 0x06, 0x38, 0x1b, 0x1c, 0xbc, 0xac, 0xb9, 0x00, 0x06, 0xcf, 0xdc, - 0xc2, 0x74, 0xb9, 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, 0x11, 0x80, 0x28, - 0x15, 0x3b, 0x04, 0x4b, 0x04, 0x3a, 0x04, 0x35, 0x0c, 0x04, 0x41, 0x04, - 0x38, 0x28, 0x25, 0x10, 0x1d, 0xd4, 0xff, 0x1a, 0x0c, 0x54, 0x0c, 0x20, - 0x01, 0x1a, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x1a, 0x1a, 0x00, 0x31, 0x1c, - 0xd3, 0x13, 0x00, 0x00, 0x1d, 0x6d, 0x00, 0xa2, 0x30, 0xc7, 0x30, 0xa3, - 0x30, 0xe4, 0x30, 0x14, 0xde, 0x30, 0xf3, 0x06, 0x48, 0x19, 0x41, 0x2e, - 0xa1, 0x31, 0x01, 0x5c, 0x79, 0x2f, 0xb3, 0x6d, 0x2f, 0xb7, 0x06, 0x1f, - 0xb1, 0x10, 0x0e, 0xf0, 0x7f, 0x3f, 0x96, 0x03, 0xb7, 0x5f, 0x9a, 0x4e, - 0xfc, 0x66, 0x06, 0x38, 0x13, 0x3f, 0xff, 0x01, 0x44, 0xc5, 0x14, 0xb5, - 0x7c, 0xc5, 0xcc, 0x06, 0x68, 0x15, 0x88, 0x0f, 0x13, 0x7f, 0x10, 0x04, - 0x34, 0x28, 0x15, 0x4f, 0x04, 0x3c, 0xb0, 0x28, 0x1f, 0x3d, 0x05, 0xe8, - 0x13, 0x10, 0x17, 0x34, 0xff, 0x1b, 0x02, 0x02, 0x02, 0x18, 0x03, 0x02, - 0x1b, 0x20, 0x06, 0x30, 0x05, 0x1b, 0x1b, 0xda, 0x00, 0x1a, 0x37, 0x1b, - 0x00, 0x00, 0x1e, 0x6d, 0xc6, 0x00, 0x30, 0xad, 0x30, 0xeb, 0x30, 0xc0, - 0x30, 0xfc, 0x8a, 0x06, 0x48, 0x15, 0x00, 0x00, 0x54, 0x2f, 0xa7, 0x6b, - 0x4f, 0xa7, 0x64, 0x90, 0x2f, 0xb9, 0x1f, 0x01, 0x10, 0x15, 0xf0, 0x7f, - 0xf0, 0x6c, 0xfa, 0x57, 0x08, 0x14, 0x5c, 0xbe, 0x8f, 0x06, 0x78, 0x17, - 0x4c, 0xd1, 0xa4, 0x06, 0xd0, 0x74, 0xb9, 0xe4, 0xb2, 0x06, 0x78, 0x17, - 0x0e, 0xf3, 0x7f, 0x22, 0x00, 0x04, 0x35, 0x04, 0x3a, 0x04, 0x38, 0x04, - 0x40, 0x8c, 0x28, 0x1f, 0x30, 0x04, 0x33, 0x06, 0x08, 0x19, 0x10, 0x16, - 0xf4, 0xff, 0x1c, 0x49, 0x54, 0x49, 0x20, 0x01, 0x1c, 0x20, 0x06, 0x3e, - 0x20, 0x05, 0x1c, 0x1c, 0x00, 0x24, 0x1d, 0x91, 0x13, 0x00, 0x00, 0x1f, - 0x6d, 0x41, 0xaf, 0x28, 0x15, 0xc3, 0x30, 0xab, 0x30, 0xec, 0x06, 0x68, - 0x17, 0x54, 0x4b, 0x2f, 0xad, 0x72, 0x2f, 0xb1, 0x6b, 0x28, 0x1d, 0x61, - 0x00, 0x60, 0x6c, 0x28, 0x25, 0x10, 0x15, 0xe0, 0x7f, 0x51, 0xd2, 0x52, - 0x4b, 0x51, 0x08, 0x61, 0x53, 0xb1, 0x83, 0x06, 0x58, 0x19, 0xa4, 0xd0, - 0xac, 0x06, 0xb9, 0x7c, 0xce, 0x08, 0xb8, 0x06, 0x78, 0x17, 0x0e, 0xf3, - 0x7f, 0x1a, 0x2a, 0x04, 0x4b, 0x28, 0x13, 0x4b, 0x28, 0x1b, 0x3a, 0x28, - 0x17, 0x3b, 0xc0, 0x28, 0x25, 0x10, 0x1d, 0xd4, 0xff, 0x1d, 0x31, 0x31, - 0x31, 0x30, 0x31, 0x50, 0x1d, 0x20, 0x06, 0x2b, 0x20, 0x05, 0x1d, 0x1d, - 0x56, 0x1c, 0x00, 0xd2, 0x17, 0x00, 0x00, 0x20, 0x6d, 0xaa, 0x30, 0x01, - 0xb9, 0x30, 0xde, 0x30, 0xcb, 0x30, 0xa8, 0x06, 0x68, 0x17, 0x05, 0x4f, - 0x00, 0x73, 0x00, 0x6d, 0x2f, 0xa9, 0x6e, 0x2f, 0xb3, 0x60, 0x79, 0x06, - 0x08, 0x15, 0x10, 0x0f, 0x10, 0x7f, 0x65, 0x59, 0xaf, 0x65, 0xfc, 0x08, - 0x66, 0x3c, 0x5c, 0xf2, 0x06, 0x68, 0x17, 0x24, 0xc6, 0xa4, 0x01, 0xc2, - 0xc8, 0xb9, 0xc8, 0xb2, 0x08, 0xc6, 0x06, 0x58, 0x19, 0x82, 0x0e, 0xf3, - 0x7f, 0x1e, 0x04, 0x41, 0x04, 0x3c, 0x28, 0x11, 0x3d, 0x30, 0x04, 0x38, - 0x06, 0x08, 0x13, 0x10, 0x17, 0x34, 0xff, 0x1e, 0x40, 0x40, 0x40, 0x14, - 0x3f, 0x40, 0x1e, 0x20, 0x06, 0x36, 0x20, 0x05, 0x1e, 0x1e, 0x00, 0x5e, - 0x1a, 0xc7, 0x19, 0x00, 0x00, 0x21, 0x6d, 0x00, 0xad, 0x30, 0xe5, 0x30, - 0xbf, 0x30, 0xfc, 0x30, 0x41, 0xe4, 0x06, 0x68, 0x17, 0x4b, 0x00, 0xfc, - 0x00, 0x74, 0x2f, 0xa9, 0x50, 0x68, 0x28, 0x15, 0x61, 0x10, 0x16, 0x20, - 0x7f, 0x48, 0x5c, 0x54, 0x58, 0x08, 0x0c, 0x5e, 0x9a, 0x4e, 0x06, 0x58, - 0x15, 0x00, 0x00, 0x34, 0x01, 0xd0, 0xc0, 0xd0, 0x88, 0xd7, 0x44, 0xc5, - 0x06, 0x58, 0x15, 0x82, 0x0f, 0x13, 0x7f, 0x1a, 0x04, 0x4e, 0x04, 0x42, - 0x28, 0x17, 0x45, 0x0c, 0x04, 0x4c, 0x04, 0x4f, 0x06, 0x28, 0x17, 0x10, - 0x16, 0xf4, 0xff, 0x1f, 0x36, 0x05, 0x36, 0x36, 0x35, 0x36, 0x1f, 0x20, - 0x06, 0x2c, 0x20, 0x05, 0x00, 0x1f, 0x1f, 0x07, 0x1c, 0x52, 0x15, 0x00, - 0x00, 0x00, 0x22, 0x6d, 0xc1, 0x30, 0xe7, 0x30, 0xeb, 0x30, 0x40, 0xe0, - 0x06, 0x68, 0x15, 0x00, 0x00, 0xc7, 0x00, 0x6f, 0x00, 0x18, 0x72, 0x00, - 0x75, 0x2f, 0xb3, 0x10, 0x16, 0x50, 0x7f, 0x54, 0x4e, 0x81, 0x10, 0x9c, - 0xc6, 0x59, 0x06, 0x78, 0x15, 0x00, 0x00, 0x08, 0xcd, 0x30, 0xf8, 0xb8, - 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x27, 0x04, 0x3e, 0x04, 0x06, 0x40, - 0x04, 0x43, 0x04, 0x3c, 0x06, 0x28, 0x13, 0x10, 0x17, 0x34, 0xff, 0x20, - 0x2a, 0x18, 0x18, 0x20, 0x01, 0x20, 0x20, 0x06, 0x47, 0x20, 0x05, 0x20, - 0x00, 0x20, 0xd6, 0x1c, 0xdb, 0x18, 0x00, 0x00, 0x23, 0x02, 0x6d, 0xa4, - 0x30, 0xb9, 0x30, 0xd1, 0x28, 0x19, 0xbf, 0x82, 0x06, 0x68, 0x19, 0x49, - 0x00, 0x73, 0x00, 0x70, 0x2f, 0xaf, 0x72, 0xc0, 0x4f, 0xb5, 0x10, 0x16, - 0x10, 0x7f, 0x0a, 0x4f, 0xaf, 0x65, 0x15, 0x5e, 0x08, 0x14, 0x5c, 0x54, - 0x58, 0x06, 0x58, 0x1b, 0x74, 0xc7, 0xa4, 0x01, 0xc2, 0x0c, 0xd3, 0x74, - 0xb9, 0xc0, 0xd0, 0x06, 0x58, 0x1d, 0x80, 0x0e, 0xf3, 0x7f, 0x2b, 0x04, - 0x41, 0x04, 0x3f, 0x04, 0x30, 0xb0, 0x28, 0x1b, 0x42, 0x20, 0x05, 0x10, - 0x1e, 0x14, 0xff, 0x21, 0x27, 0x27, 0x27, 0x10, 0x27, 0x28, 0x21, 0x20, - 0x06, 0x4b, 0x27, 0x21, 0x21, 0x00, 0x21, 0x21, 0xdb, 0x1a, 0xb9, 0x15, - 0x00, 0x00, 0x00, 0x24, 0x6d, 0xa2, 0x30, 0xa4, 0x30, 0xc9, 0x30, 0x10, - 0xa5, 0x30, 0xf3, 0x06, 0x68, 0x17, 0x41, 0x00, 0x79, 0x00, 0x06, 0x64, - 0x00, 0x31, 0x01, 0x6e, 0x06, 0x6f, 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0x7e, - 0x18, 0x82, 0x7b, 0x76, 0x06, 0x58, 0x11, 0x5f, 0xff, 0x44, 0xc5, 0x74, - 0x18, 0xc7, 0x18, 0xb5, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x10, 0x04, - 0x39, 0x03, 0x04, 0x34, 0x04, 0x4b, 0x04, 0x3d, 0x06, 0x28, 0x13, 0x10, - 0x17, 0x34, 0xff, 0x15, 0x22, 0x0b, 0x0b, 0x20, 0x01, 0x22, 0x20, 0x06, - 0x04, 0x20, 0x05, 0x00, 0x22, 0x22, 0xe9, 0x1a, 0xcd, 0x13, 0x00, 0x00, - 0x07, 0x25, 0x6d, 0xcf, 0x30, 0xbf, 0x28, 0x19, 0x06, 0x58, 0x13, 0x3f, - 0xff, 0x68, 0x48, 0x2f, 0xab, 0x3f, 0xa9, 0x79, 0x10, 0x16, 0x60, 0x7f, - 0xc8, 0x54, 0x54, 0x10, 0x58, 0x0a, 0x4f, 0x06, 0x98, 0x19, 0x58, 0xd5, - 0xc0, 0xd0, 0x30, 0x74, 0xc7, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x25, - 0x04, 0x30, 0x04, 0x58, 0x42, 0x20, 0x03, 0x39, 0x06, 0x68, 0x17, 0x10, - 0x16, 0xf4, 0xff, 0x23, 0x25, 0x25, 0x08, 0x25, 0x25, 0x26, 0x23, 0x20, - 0x06, 0x44, 0x25, 0x23, 0x00, 0x23, 0x23, 0x23, 0xbe, 0x19, 0xb4, 0x19, - 0x00, 0x00, 0x00, 0x26, 0x6d, 0xde, 0x30, 0xeb, 0x30, 0xc7, 0x0a, 0x30, - 0xa3, 0x30, 0xf3, 0x06, 0x68, 0x1b, 0x4d, 0x28, 0x17, 0x72, 0x98, 0x2f, - 0xb1, 0x69, 0x00, 0x06, 0x5f, 0xb1, 0x10, 0x0e, 0xf0, 0x7f, 0x6c, 0x9a, - 0x14, 0x10, 0x5c, 0x01, 0x4e, 0x06, 0x98, 0x17, 0xc8, 0xb9, 0x74, 0xb9, - 0x34, 0x18, 0xb5, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x1c, 0x28, 0x17, - 0x40, 0x04, 0x06, 0x34, 0x04, 0x38, 0x04, 0x3d, 0x06, 0x48, 0x19, 0x10, - 0x16, 0xf4, 0xff, 0x24, 0x02, 0x39, 0x39, 0x39, 0x38, 0x39, 0x24, 0x20, - 0x06, 0x2f, 0x80, 0x20, 0x05, 0x24, 0x24, 0x89, 0x1a, 0xf8, 0x1c, 0x00, - 0x00, 0x00, 0x27, 0x6d, 0xa2, 0x30, 0xaf, 0x30, 0xb5, 0x08, 0x30, 0xe9, - 0x30, 0xa4, 0x06, 0x68, 0x17, 0x41, 0x00, 0x6b, 0x38, 0x00, 0x73, 0x48, - 0x1b, 0x06, 0x5f, 0xb3, 0x10, 0x0e, 0xf0, 0x7f, 0x3f, 0x96, 0x4b, 0x04, - 0x51, 0x28, 0x84, 0x56, 0x8d, 0x06, 0x78, 0x19, 0x45, 0xc5, 0x03, 0xac, - 0xc0, 0x7c, 0xb7, 0x74, 0xc7, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x04, - 0x10, 0x04, 0x3a, 0x04, 0x41, 0x48, 0x1b, 0x30, 0x04, 0x60, 0x39, 0x06, - 0x28, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x25, 0x05, 0x05, 0x05, 0x06, 0x30, - 0x05, 0x25, 0x30, 0x06, 0x20, 0x05, 0x25, 0x25, 0x49, 0x1b, 0x04, 0x32, - 0x18, 0x00, 0x00, 0x28, 0x28, 0x17, 0xd5, 0x30, 0x01, 0xa3, 0x30, 0xe8, - 0x30, 0xf3, 0x30, 0xab, 0x28, 0x1d, 0x44, 0xd2, 0x28, 0x23, 0xfc, 0x30, - 0xeb, 0x05, 0xa8, 0x23, 0x41, 0x00, 0x55, 0x66, 0x28, 0x0f, 0x6f, 0x2f, - 0xad, 0x6b, 0x68, 0x1d, 0x68, 0x2f, 0xbb, 0xc0, 0x58, 0x29, 0x10, 0x15, - 0x30, 0x7f, 0x3f, 0x96, 0xf2, 0x83, 0x38, 0x6c, 0x00, 0x61, 0x53, 0xc9, - 0x62, 0x0c, 0x5e, 0x28, 0x84, 0x20, 0x14, 0x5c, 0x05, 0xf8, 0x1f, 0x44, - 0xc5, 0x3c, 0xd5, 0x28, 0x00, 0xc6, 0x74, 0xce, 0x7c, 0xb7, 0x88, 0xd7, - 0xac, 0x18, 0xc0, 0x74, 0xb9, 0x05, 0xf8, 0x1f, 0x0e, 0xf3, 0x7f, 0x10, - 0x04, 0x44, 0x03, 0x04, 0x4c, 0x04, 0x3e, 0x04, 0x3d, 0x28, 0x1f, 0x58, - 0x1d, 0x18, 0x45, 0x04, 0x38, 0x68, 0x29, 0x10, 0x1d, 0x34, 0xff, 0x26, - 0x03, 0x03, 0x0a, 0x03, 0x04, 0x03, 0x26, 0x20, 0x06, 0x0b, 0x20, 0x05, - 0x26, 0x00, 0x26, 0x8f, 0x1b, 0xb7, 0x15, 0x00, 0x00, 0x29, 0x2d, 0x6d, - 0xc8, 0x28, 0x0f, 0xc8, 0x05, 0xa8, 0x07, 0xff, 0xff, 0x54, 0x28, 0x13, - 0xa0, 0x38, 0x11, 0x74, 0x10, 0x16, 0x60, 0x7f, 0x58, 0x62, 0x61, 0x53, - 0x79, 0x60, 0x72, 0x05, 0xf8, 0x0d, 0x9f, 0xff, 0xa0, 0xd1, 0x74, 0xce, - 0xb8, 0x6d, 0xd2, 0x05, 0xf8, 0x0d, 0x0f, 0x93, 0x7f, 0x22, 0x28, 0x13, - 0x38, 0x11, 0x42, 0x05, 0x48, 0x05, 0x8a, 0x10, 0x18, 0x14, 0xff, 0x27, - 0x4a, 0x4a, 0x20, 0x01, 0x27, 0x20, 0x06, 0x3f, 0x80, 0x20, 0x05, 0x27, - 0x27, 0xab, 0x1c, 0xfd, 0x19, 0x00, 0x00, 0x00, 0x2a, 0x6d, 0xa8, 0x30, - 0xc7, 0x30, 0xa3, 0x08, 0x30, 0xeb, 0x30, 0xcd, 0x06, 0x68, 0x1b, 0x45, - 0x00, 0x64, 0xac, 0x2f, 0x9f, 0x72, 0x2f, 0xaf, 0x65, 0x06, 0x48, 0x9a, - 0x10, 0x0e, 0xf0, 0x7f, 0xc3, 0x57, 0x02, 0xea, 0x8f, 0x14, 0x5c, 0x85, - 0x51, 0x06, 0x78, 0x19, 0xd0, 0x01, 0xc5, 0x14, 0xb5, 0x74, 0xb9, 0x24, - 0xb1, 0x06, 0x78, 0x19, 0x80, 0x0e, 0xf3, 0x7f, 0x2d, 0x04, 0x34, 0x04, - 0x38, 0x04, 0x40, 0x0c, 0x04, 0x3d, 0x04, 0x35, 0x06, 0x48, 0x19, 0x10, - 0x16, 0xf4, 0xff, 0x28, 0x1c, 0x54, 0x1c, 0x20, 0x01, 0x28, 0x20, 0x06, - 0x4c, 0x20, 0x05, 0x28, 0x28, 0x00, 0xa1, 0x1d, 0xe4, 0x12, 0x00, 0x00, - 0x2b, 0x6d, 0x01, 0xab, 0x30, 0xe9, 0x30, 0xde, 0x30, 0xf3, 0x06, 0x68, - 0x15, 0x15, 0x00, 0x00, 0x4b, 0x2f, 0xab, 0x72, 0x2f, 0xaf, 0x6d, 0x2f, - 0xb3, 0x40, 0x6e, 0x10, 0x16, 0x20, 0x7f, 0x61, 0x53, 0xc9, 0x62, 0xfc, - 0x66, 0x80, 0x06, 0x78, 0x15, 0x00, 0x00, 0x74, 0xce, 0x7c, 0xb7, 0xcc, - 0x62, 0xb9, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x1a, 0x04, 0x30, 0x28, - 0x15, 0x30, 0x2c, 0x04, 0x3c, 0x20, 0x07, 0x3d, 0x06, 0x28, 0x19, 0x10, - 0x16, 0xf4, 0xff, 0x29, 0x2c, 0x05, 0x2c, 0x2c, 0x2b, 0x2c, 0x29, 0x20, - 0x06, 0x22, 0x20, 0x05, 0x00, 0x29, 0x29, 0x70, 0x1a, 0x9e, 0x17, 0x00, - 0x00, 0x00, 0x2c, 0x6d, 0xaa, 0x30, 0xeb, 0x30, 0xc9, 0x30, 0x51, 0xa5, - 0x06, 0x88, 0x17, 0x4f, 0x2f, 0xab, 0x64, 0x00, 0x75, 0x06, 0x75, 0x96, - 0x81, 0x10, 0x0f, 0x00, 0x7f, 0x65, 0x59, 0x14, 0x5c, 0x5c, 0x67, 0x06, - 0x98, 0x17, 0x03, 0x24, 0xc6, 0x74, 0xb9, 0x50, 0xb4, 0x06, 0x98, 0x17, - 0x0e, 0xf3, 0x7f, 0x46, 0x1e, 0x28, 0x15, 0x34, 0x04, 0x43, 0x06, 0x28, - 0x11, 0x10, 0x17, 0x54, 0xff, 0x2a, 0x02, 0x3f, 0x3f, 0x3f, 0x3e, 0x3f, - 0x2a, 0x20, 0x06, 0x35, 0x80, 0x20, 0x05, 0x2a, 0x2a, 0x24, 0x1d, 0xf0, - 0x1a, 0x00, 0x02, 0x00, 0x2d, 0x6d, 0xb7, 0x30, 0xa4, 0x28, 0x19, 0xc8, - 0x88, 0x06, 0x88, 0x17, 0x53, 0x00, 0x69, 0x20, 0x01, 0x72, 0x00, 0x74, - 0xc0, 0x06, 0x6d, 0xb0, 0x10, 0x0e, 0xf0, 0x7f, 0x21, 0x95, 0x14, 0x5c, - 0x79, 0x72, 0x80, 0x06, 0x98, 0x17, 0xdc, 0xc2, 0x74, 0xc7, 0x74, 0xb9, - 0xb8, 0x64, 0xd2, 0x06, 0x78, 0x19, 0x0f, 0x01, 0xff, 0x04, 0x38, 0x20, - 0x01, 0x40, 0x04, 0x60, 0x42, 0x06, 0x68, 0x19, 0x10, 0x16, 0xf4, 0xff, - 0x2b, 0x45, 0x45, 0x45, 0x44, 0x28, 0x45, 0x2b, 0x20, 0x06, 0x3b, 0x20, - 0x05, 0x2b, 0x2b, 0xf9, 0x00, 0x1a, 0xd4, 0x1d, 0x00, 0x00, 0x2e, 0x6d, - 0xa8, 0x8b, 0x28, 0x15, 0xb8, 0x30, 0xf3, 0x20, 0x03, 0xe3, 0x20, 0x05, - 0x06, 0x18, 0x1d, 0x50, 0x45, 0x2f, 0xaf, 0x7a, 0x28, 0x1b, 0x6e, 0x00, - 0x63, 0x00, 0x60, 0x61, 0x20, 0x05, 0x10, 0x15, 0xf0, 0x7f, 0xc3, 0x57, - 0x14, 0x5c, 0x25, 0x10, 0x6d, 0x79, 0x8a, 0x06, 0x78, 0x19, 0xd0, 0xc5, - 0x74, 0xb9, 0x0d, 0xc4, 0xc9, 0x94, 0xc7, 0x06, 0x78, 0x17, 0x0e, 0xf3, - 0x7f, 0x2d, 0x28, 0x13, 0x40, 0x37, 0x28, 0x1b, 0x3d, 0x04, 0x34, 0x04, - 0x36, 0x04, 0x62, 0x30, 0x20, 0x07, 0x10, 0x1d, 0xd4, 0xff, 0x2c, 0x1e, - 0x1e, 0x20, 0x01, 0x2c, 0xa0, 0x20, 0x06, 0x4e, 0x20, 0x05, 0x2c, 0x2c, - 0x44, 0x1c, 0x16, 0x02, 0x1c, 0x00, 0x00, 0x2f, 0x6d, 0xc1, 0x48, 0x0f, - 0xaf, 0xe8, 0x28, 0x1d, 0x06, 0x18, 0x13, 0x3f, 0xff, 0xc7, 0x48, 0x0d, - 0x6b, 0x00, 0x31, 0x30, 0x01, 0x72, 0x20, 0x03, 0x10, 0x16, 0x10, 0x7f, - 0x0c, 0x66, 0x4b, 0x51, 0x20, 0xd2, 0x52, 0x06, 0x78, 0x15, 0x00, 0x00, - 0x3d, 0xcc, 0xa4, 0x1a, 0xd0, 0xac, 0xb9, 0x06, 0x78, 0x15, 0x0f, 0x13, - 0x7f, 0x27, 0x48, 0x0b, 0x3a, 0x2c, 0x04, 0x4b, 0x28, 0x1f, 0x4b, 0x05, - 0xe8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x2d, 0x17, 0x54, 0x17, 0x20, 0x01, - 0x2d, 0x20, 0x06, 0x46, 0x20, 0x05, 0x2d, 0x2d, 0x00, 0xdf, 0x1c, 0xe7, - 0x17, 0x00, 0x00, 0x30, 0x6d, 0x56, 0xbe, 0x28, 0x15, 0xb0, 0x28, 0x15, - 0xc0, 0x28, 0x1b, 0x06, 0x38, 0x19, 0x5a, 0x20, 0x00, 0x6f, 0x2f, 0xab, - 0x67, 0x00, 0x75, 0x00, 0x6c, 0x28, 0x00, 0x64, 0x2f, 0xb1, 0x6b, 0x10, - 0x15, 0xe0, 0x7f, 0x97, 0x5b, 0xe4, 0x01, 0x53, 0x14, 0x5c, 0xbe, 0x8f, - 0x4b, 0x51, 0x06, 0x58, 0x1b, 0x00, 0x85, 0xc8, 0x74, 0xad, 0xe4, 0xb2, - 0x6c, 0xd0, 0xc4, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x17, 0x04, 0x3e, - 0x28, 0x17, 0x33, 0x04, 0x05, 0x43, 0x04, 0x3b, 0x04, 0x34, 0x28, 0x23, - 0x3a, 0x05, 0xe8, 0x1b, 0x8a, 0x10, 0x16, 0xf4, 0xff, 0x2e, 0x51, 0x51, - 0x20, 0x01, 0x2e, 0x20, 0x06, 0x1d, 0x80, 0x20, 0x05, 0x2e, 0x2e, 0x79, - 0x1d, 0x99, 0x16, 0x00, 0x00, 0x00, 0x31, 0x6d, 0xe8, 0x30, 0xba, 0x30, - 0xac, 0x35, 0x30, 0xc8, 0x06, 0x48, 0x13, 0x3f, 0xff, 0x59, 0x28, 0x17, - 0x7a, 0x28, 0x17, 0x10, 0x61, 0x00, 0x74, 0x10, 0x16, 0x40, 0x7f, 0xa6, - 0x7e, 0x79, 0x51, 0x08, 0xa0, 0x52, 0x79, 0x72, 0x06, 0x58, 0x15, 0x00, - 0x00, 0x94, 0x01, 0xc6, 0x88, 0xc9, 0x00, 0xac, 0xb8, 0xd2, 0x06, 0x78, - 0x17, 0xa8, 0x0e, 0xf3, 0x7f, 0x19, 0x28, 0x17, 0x37, 0x28, 0x17, 0x30, - 0x04, 0x42, 0xc5, 0x05, 0xe8, 0x11, 0x10, 0x17, 0x54, 0xff, 0x2f, 0x50, - 0x50, 0x20, 0x01, 0x2f, 0x20, 0x06, 0x40, 0x1f, 0x20, 0x05, 0x2f, 0x2f, - 0x51, 0x1c, 0xbf, 0x18, 0x00, 0x00, 0x00, 0x32, 0x6d, 0xa6, 0x30, 0xb7, - 0x30, 0x10, 0xe3, 0x30, 0xaf, 0x06, 0x88, 0x17, 0x55, 0x00, 0x5f, 0x01, - 0xc0, 0x06, 0x1f, 0xa5, 0x10, 0x0f, 0x90, 0x7f, 0x4c, 0x4e, 0x28, 0x84, - 0x4b, 0x51, 0x80, 0x06, 0x78, 0x15, 0x00, 0x00, 0xb0, 0xc6, 0xe4, 0xc0, - 0x6c, 0x62, 0xd0, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x23, 0x04, 0x48, - 0x28, 0x13, 0x3a, 0xc5, 0x06, 0x48, 0x13, 0x10, 0x17, 0x34, 0xff, 0x30, - 0x4d, 0x4d, 0x20, 0x01, 0x30, 0x20, 0x06, 0x40, 0x42, 0x20, 0x05, 0x30, - 0x30, 0x82, 0x1b, 0xe8, 0x14, 0x00, 0x00, 0x00, 0x33, 0x6d, 0xa2, 0x30, - 0xfc, 0x30, 0x40, 0xeb, 0x06, 0x88, 0x15, 0x00, 0x00, 0x41, 0x00, 0x1f, - 0x01, 0x08, 0x72, 0x00, 0x31, 0x01, 0x10, 0x16, 0x70, 0x7f, 0x3f, 0x96, - 0xd2, 0x40, 0x52, 0x06, 0x98, 0x15, 0x00, 0x00, 0x44, 0xc5, 0xac, 0xb9, - 0xc0, 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x10, 0x04, 0x33, 0x04, 0x40, - 0x04, 0x60, 0x4b, 0x06, 0x88, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x31, 0x04, - 0x04, 0x04, 0x05, 0x28, 0x04, 0x31, 0x20, 0x06, 0x01, 0x20, 0x05, 0x31, - 0x31, 0x3f, 0x02, 0x1c, 0x9e, 0x1e, 0x00, 0x00, 0x34, 0x28, 0x17, 0xde, - 0x08, 0x30, 0xb7, 0x30, 0xe4, 0x06, 0x88, 0x19, 0x41, 0x00, 0x6d, 0x03, - 0x00, 0x61, 0x00, 0x73, 0x00, 0x79, 0x20, 0x05, 0x10, 0x16, 0x30, 0x7f, - 0x00, 0x3f, 0x96, 0x6c, 0x9a, 0x7f, 0x89, 0x9a, 0x4e, 0x80, 0x06, 0x78, - 0x1b, 0x44, 0xc5, 0xc8, 0xb9, 0xdc, 0xc2, 0x44, 0x60, 0xc5, 0x06, 0x78, - 0x1b, 0x0e, 0xf3, 0x7f, 0x10, 0x04, 0x3c, 0x04, 0x30, 0x03, 0x04, 0x41, - 0x04, 0x4c, 0x04, 0x4f, 0x06, 0x48, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x01, - 0x32, 0x06, 0x06, 0x06, 0x07, 0x06, 0x32, 0x30, 0x06, 0x80, 0x20, 0x05, - 0x32, 0x32, 0xe8, 0x1c, 0x7b, 0x19, 0x00, 0x20, 0x00, 0x35, 0x28, 0x17, - 0xeb, 0x30, 0xc0, 0x30, 0xcf, 0x20, 0x30, 0xf3, 0x06, 0x68, 0x19, 0x41, - 0x00, 0x72, 0x00, 0x64, 0xa8, 0x28, 0x19, 0x68, 0x28, 0x1d, 0x6e, 0x10, - 0x16, 0x20, 0x7f, 0x3f, 0x96, 0x14, 0x04, 0x5c, 0xbe, 0x8f, 0x55, 0x7f, - 0x06, 0x98, 0x17, 0x74, 0xb9, 0x0c, 0xe4, 0xb2, 0x5c, 0xd5, 0x06, 0x98, - 0x17, 0x0e, 0xd3, 0x7f, 0x10, 0x04, 0x15, 0x40, 0x04, 0x34, 0x28, 0x19, - 0x45, 0x28, 0x1d, 0x3d, 0x06, 0x28, 0x19, 0x8a, 0x10, 0x16, 0xf4, 0xff, - 0x33, 0x09, 0x09, 0x20, 0x01, 0x33, 0x40, 0x06, 0x33, 0x00, 0x33, 0x33, - 0x33, 0x3d, 0x1d, 0x5d, 0x1e, 0x00, 0x20, 0x00, 0x36, 0x48, 0x17, 0xc8, - 0x30, 0xa6, 0x30, 0xa3, 0xc1, 0x06, 0x68, 0x19, 0x38, 0x17, 0x74, 0x00, - 0x76, 0x00, 0x69, 0x06, 0x48, 0x15, 0xc2, 0x10, 0x0f, 0x10, 0x7f, 0x38, - 0x17, 0x79, 0x72, 0x29, 0x6e, 0x06, 0xb8, 0x17, 0xb8, 0x1c, 0xd2, 0x48, - 0xbe, 0x06, 0xb8, 0x17, 0x0e, 0xb3, 0x7f, 0x38, 0x17, 0x42, 0x04, 0x18, - 0x32, 0x04, 0x38, 0x06, 0x48, 0x15, 0x10, 0x17, 0x14, 0xff, 0x34, 0x0a, - 0x0a, 0xa0, 0x20, 0x01, 0x34, 0x40, 0x06, 0x34, 0x34, 0x34, 0x34, 0x49, - 0x00, 0x1d, 0xbc, 0x1d, 0x00, 0x00, 0x37, 0x6d, 0xd0, 0xa3, 0x48, 0x17, - 0xa5, 0x06, 0x68, 0x15, 0x00, 0x00, 0x42, 0x2f, 0xab, 0x38, 0x19, 0x30, - 0x31, 0x01, 0x06, 0x58, 0x17, 0x10, 0x0e, 0xf0, 0x7f, 0xf4, 0x5d, 0x14, - 0x5c, 0x20, 0x7e, 0x81, 0x06, 0x78, 0x15, 0x00, 0x00, 0x14, 0xbc, 0x74, - 0x18, 0xb9, 0xf4, 0xd2, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x11, 0x04, - 0x30, 0xb1, 0x48, 0x19, 0x4b, 0x06, 0x68, 0x17, 0x10, 0x16, 0xf4, 0xff, - 0x35, 0x0d, 0x0d, 0x20, 0x01, 0x50, 0x35, 0x20, 0x06, 0x0e, 0x20, 0x05, - 0x35, 0x35, 0x9b, 0x1d, 0x04, 0xfe, 0x16, 0x00, 0x00, 0x38, 0x28, 0x17, - 0xa4, 0x30, 0x60, 0xd6, 0x48, 0x1b, 0x06, 0x98, 0x17, 0x79, 0x00, 0x62, - 0x00, 0x75, 0xc0, 0x4f, 0xb7, 0x10, 0x16, 0x10, 0x7f, 0xf4, 0x5d, 0x0a, - 0x4f, 0x03, 0x5e, 0x0c, 0x14, 0x5c, 0x79, 0x72, 0x06, 0x58, 0x1b, 0x28, - 0x17, 0xc7, 0x80, 0x0e, 0xbd, 0x74, 0xb9, 0xb8, 0x06, 0x68, 0x1b, 0x0e, - 0xf3, 0x7f, 0x38, 0x17, 0x39, 0x0c, 0x04, 0x31, 0x04, 0x43, 0x48, 0x1d, - 0x10, 0x1e, 0x14, 0xff, 0x36, 0x0f, 0x54, 0x0f, 0x20, 0x01, 0x36, 0x20, - 0x06, 0x0c, 0x20, 0x05, 0x36, 0x36, 0x00, 0x9f, 0x1c, 0x99, 0x1c, 0x00, - 0x00, 0x39, 0x6d, 0x01, 0xd3, 0x30, 0xec, 0x30, 0xb8, 0x30, 0xaf, 0x06, - 0x68, 0x15, 0x80, 0x3f, 0xaf, 0x69, 0x00, 0x6c, 0x00, 0x65, 0x00, 0x63, - 0xa0, 0x20, 0x07, 0x6b, 0x10, 0x16, 0x20, 0x7f, 0xd4, 0x6b, 0xb1, 0x83, - 0x09, 0x10, 0x54, 0x4b, 0x51, 0x06, 0x58, 0x15, 0x00, 0x00, 0x4c, 0xbe, - 0x03, 0x08, 0xb8, 0xc0, 0xc9, 0x6c, 0xd0, 0x06, 0x58, 0x15, 0x0f, 0x13, - 0x7f, 0x00, 0x11, 0x04, 0x38, 0x04, 0x3b, 0x04, 0x35, 0x04, 0x16, 0x34, - 0x04, 0x36, 0x20, 0x09, 0x3a, 0x06, 0x08, 0x19, 0x10, 0x16, 0xf4, 0xff, - 0x37, 0x28, 0x10, 0x10, 0x20, 0x01, 0x37, 0x40, 0x06, 0x37, 0x37, 0x37, - 0x00, 0x37, 0x8b, 0x1c, 0x51, 0x15, 0x00, 0x00, 0x3a, 0x80, 0x28, 0x17, - 0xf3, 0x30, 0xae, 0x30, 0xe7, 0x30, 0xeb, 0xc1, 0x06, 0x68, 0x19, 0x38, - 0x17, 0x6e, 0x00, 0x67, 0x00, 0xf6, 0x28, 0x1d, 0x81, 0x10, 0x16, 0x30, - 0x7f, 0xbe, 0x5b, 0x3c, 0x68, 0x14, 0x5c, 0x06, 0x78, 0x15, 0x03, 0x00, - 0x00, 0x59, 0xbe, 0x3c, 0xad, 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x82, - 0x38, 0x17, 0x3d, 0x04, 0x33, 0x04, 0x51, 0x28, 0x1d, 0x4c, 0xc5, 0x06, - 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, 0x38, 0x11, 0x11, 0x20, 0x01, 0x38, - 0x40, 0x06, 0x00, 0x38, 0x38, 0x38, 0x38, 0xa6, 0x1b, 0xcc, 0x1c, 0x10, - 0x00, 0x00, 0x3b, 0x28, 0x17, 0xc8, 0x30, 0xea, 0x30, 0x68, 0xb9, 0x06, - 0x68, 0x15, 0x5f, 0xaf, 0x74, 0x2f, 0xb1, 0x69, 0x00, 0x73, 0x80, 0x10, - 0x16, 0x40, 0x7f, 0xd4, 0x6b, 0x79, 0x72, 0x29, 0x52, 0xaf, 0x40, 0x65, - 0x06, 0x78, 0x19, 0x44, 0xbe, 0xc0, 0xd2, 0xac, 0xb9, 0x3a, 0xa4, 0xc2, - 0x06, 0x78, 0x1b, 0x0e, 0xf3, 0x7f, 0x38, 0x17, 0x42, 0x28, 0x13, 0x38, - 0x31, 0x04, 0x41, 0x06, 0x28, 0x15, 0x10, 0x17, 0x14, 0xff, 0x39, 0x12, - 0x12, 0x20, 0x01, 0x40, 0x39, 0x40, 0x06, 0x39, 0x39, 0x39, 0x39, 0x4e, - 0x1b, 0x00, 0xf3, 0x1d, 0x00, 0x00, 0x3c, 0x6d, 0xdc, 0x30, 0x6a, 0xeb, - 0x06, 0x88, 0x13, 0x5f, 0xaf, 0x6f, 0x2f, 0xa9, 0x75, 0x10, 0x16, 0x80, - 0x7f, 0x5a, 0x18, 0x53, 0x62, 0x53, 0x06, 0x78, 0x13, 0x3f, 0xff, 0xfc, - 0xbc, 0xe8, 0x62, 0xb8, 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x11, 0x04, - 0x3e, 0x28, 0x15, 0x43, 0xc5, 0x06, 0x48, 0x13, 0x10, 0x17, 0x34, 0xff, - 0x3a, 0x13, 0x13, 0x20, 0x01, 0x3a, 0x40, 0x06, 0x00, 0x3a, 0x3a, 0x3a, - 0x3a, 0xf7, 0x1c, 0x78, 0x16, 0x04, 0x00, 0x00, 0x3d, 0x6d, 0xd6, 0x28, - 0x17, 0xc9, 0x30, 0x51, 0xa5, 0x06, 0x88, 0x1d, 0x42, 0x28, 0x13, 0x72, - 0x00, 0x64, 0x40, 0x05, 0x80, 0x10, 0x16, 0x30, 0x7f, 0x03, 0x5e, 0x14, - 0x5c, 0x5c, 0x67, 0x14, 0x40, 0x5c, 0x06, 0x78, 0x1b, 0x80, 0xbd, 0x74, - 0xb9, 0x50, 0xb4, 0x34, 0x74, 0xb9, 0x06, 0x78, 0x1b, 0x0e, 0xf3, 0x7f, - 0x11, 0x28, 0x13, 0x40, 0x04, 0x62, 0x34, 0x40, 0x05, 0x10, 0x1e, 0x34, - 0xff, 0x3b, 0x14, 0x14, 0x20, 0x01, 0x3b, 0x80, 0x40, 0x06, 0x3b, 0x3b, - 0x3b, 0x3b, 0xd2, 0x1a, 0x8a, 0x00, 0x15, 0x00, 0x00, 0x3e, 0x6d, 0xc1, - 0x30, 0xe3, 0x00, 0x30, 0xca, 0x30, 0xc3, 0x30, 0xab, 0x30, 0xec, 0x82, - 0x06, 0x48, 0x19, 0xc7, 0x00, 0x61, 0x00, 0x6e, 0x20, 0x03, 0x6b, 0xa8, - 0x20, 0x01, 0x61, 0x2f, 0xb9, 0x65, 0x10, 0x15, 0xe0, 0x7f, 0x70, 0x60, - 0xb3, 0x04, 0x7e, 0x61, 0x53, 0xb1, 0x83, 0x06, 0x78, 0x17, 0x28, 0xcc, - 0x03, 0x98, 0xb0, 0x7c, 0xce, 0x08, 0xb8, 0x06, 0x78, 0x17, 0x0e, 0xf3, - 0x7f, 0x05, 0x27, 0x04, 0x30, 0x04, 0x3d, 0x20, 0x03, 0x3a, 0x20, 0x01, - 0x06, 0x30, 0x04, 0x3b, 0x04, 0x35, 0x05, 0xe8, 0x1d, 0x10, 0x16, 0xf4, - 0xff, 0x3c, 0x2a, 0x16, 0x16, 0x20, 0x01, 0x3c, 0x20, 0x06, 0x45, 0x20, - 0x05, 0x3c, 0x00, 0x3c, 0x8d, 0x1c, 0xc5, 0x12, 0x00, 0x00, 0x3f, 0x00, - 0x6d, 0xc7, 0x30, 0xe5, 0x30, 0xba, 0x30, 0xb8, 0x20, 0x30, 0xa7, 0x06, - 0x48, 0x15, 0x00, 0x00, 0x44, 0x00, 0xfc, 0x0c, 0x00, 0x7a, 0x00, 0x63, - 0x06, 0x08, 0x0f, 0x10, 0x0f, 0x70, 0x7f, 0xea, 0x8f, 0x08, 0x79, 0x51, - 0x70, 0x67, 0x06, 0x78, 0x15, 0x00, 0x00, 0xa4, 0x06, 0xb4, 0x88, 0xc9, - 0x1c, 0xc8, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x14, 0x00, 0x04, 0x4e, - 0x04, 0x37, 0x04, 0x34, 0x04, 0x36, 0xc5, 0x06, 0x08, 0x11, 0x10, 0x17, - 0x54, 0xff, 0x3d, 0x1b, 0x1b, 0x20, 0x01, 0x3d, 0x20, 0x06, 0x40, 0x1c, - 0x20, 0x05, 0x3d, 0x3d, 0x09, 0x1d, 0x26, 0x16, 0x00, 0x00, 0x00, 0x40, - 0x6d, 0xa8, 0x30, 0xb9, 0x30, 0x11, 0xad, 0x30, 0xb7, 0x28, 0x17, 0xd2, - 0x30, 0xeb, 0x06, 0x28, 0x1b, 0x10, 0x45, 0x00, 0x73, 0x2f, 0xab, 0x69, - 0x00, 0x5f, 0x01, 0x14, 0x65, 0x00, 0x68, 0x20, 0x07, 0x72, 0x10, 0x15, - 0xe0, 0x7f, 0xc3, 0x57, 0x00, 0xaf, 0x65, 0xfa, 0x57, 0x22, 0x8c, 0x0c, - 0x5e, 0x20, 0x14, 0x5c, 0x06, 0x38, 0x1d, 0xd0, 0xc5, 0xa4, 0xc2, 0xa4, - 0x01, 0xd0, 0x70, 0xc1, 0x88, 0xd7, 0x74, 0xb9, 0x06, 0x38, 0x1d, 0x80, - 0x0e, 0xf3, 0x7f, 0x2d, 0x04, 0x41, 0x04, 0x3a, 0x04, 0x38, 0x2b, 0x04, - 0x48, 0x28, 0x17, 0x45, 0x20, 0x07, 0x40, 0x05, 0xe8, 0x1d, 0x10, 0x16, - 0xf4, 0xff, 0x15, 0x3e, 0x20, 0x20, 0x20, 0x01, 0x3e, 0x20, 0x06, 0x50, - 0x20, 0x05, 0x00, 0x3e, 0x3e, 0x49, 0x1c, 0xb4, 0x15, 0x00, 0x00, 0x05, - 0x41, 0x6d, 0xae, 0x30, 0xec, 0x28, 0x19, 0xf3, 0x06, 0x28, 0x11, 0xa8, - 0x5f, 0xff, 0x47, 0x48, 0x0b, 0x65, 0x28, 0x1d, 0x75, 0x00, 0x6e, 0x81, - 0x10, 0x16, 0x20, 0x7f, 0x09, 0x54, 0xf7, 0x96, 0x7e, 0x67, 0x06, 0x38, - 0x11, 0x81, 0x5f, 0xff, 0x30, 0xae, 0x08, 0xb8, 0x1c, 0xc2, 0x06, 0x38, - 0x11, 0xa8, 0x0f, 0x53, 0x7f, 0x13, 0x48, 0x0b, 0x35, 0x28, 0x1d, 0x43, - 0x04, 0x3d, 0xc0, 0x05, 0xe8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x3f, 0x22, - 0x22, 0x22, 0x22, 0x23, 0x40, 0x3f, 0x20, 0x06, 0x18, 0x22, 0x3f, 0x3f, - 0x3f, 0x3f, 0x01, 0x15, 0x1d, 0x51, 0x1b, 0x00, 0x00, 0x42, 0x28, 0x17, - 0x14, 0xe5, 0x30, 0xdf, 0x20, 0x03, 0xb7, 0x20, 0x07, 0xcf, 0x30, 0x10, - 0xfc, 0x30, 0xcd, 0x05, 0xe8, 0x21, 0x47, 0x00, 0xfc, 0x00, 0x41, 0x6d, - 0x20, 0x03, 0x5f, 0x01, 0x68, 0x00, 0x61, 0x28, 0x19, 0x60, 0x65, 0x06, - 0x08, 0x97, 0x10, 0x0e, 0xd0, 0x7f, 0x45, 0x5c, 0x73, 0x7c, 0xc0, 0x04, - 0x4e, 0xc8, 0x54, 0x85, 0x51, 0x06, 0x58, 0x1b, 0xc0, 0xad, 0x03, 0x88, - 0xbb, 0xe4, 0xc0, 0x24, 0xb1, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x04, - 0x13, 0x04, 0x4e, 0x04, 0x3c, 0x20, 0x03, 0x48, 0x04, 0x16, 0x45, 0x04, - 0x30, 0x28, 0x19, 0x35, 0x05, 0xe8, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x40, - 0x02, 0x23, 0x23, 0x23, 0x23, 0x24, 0x40, 0x20, 0x06, 0x19, 0x00, 0x23, - 0x40, 0x40, 0x40, 0x40, 0xc5, 0x1c, 0x13, 0x00, 0x1c, 0x00, 0x00, 0x43, - 0x6d, 0xcf, 0x30, 0xc3, 0x03, 0x30, 0xad, 0x30, 0xe3, 0x30, 0xea, 0x05, - 0xe8, 0x0f, 0x7f, 0xff, 0x55, 0x48, 0x28, 0x0d, 0x6b, 0x20, 0x01, 0x61, - 0x2f, 0xb5, 0x69, 0x0e, 0xa0, 0x7f, 0x60, 0xe2, 0x0e, 0xe0, 0x7f, 0x06, - 0x71, 0xff, 0xc8, 0x54, 0x61, 0x53, 0xcc, 0x60, 0x91, 0x06, 0x58, 0x13, - 0x3f, 0xff, 0x58, 0xd5, 0x74, 0xce, 0xac, 0x6a, 0xb9, 0x06, 0x78, 0x15, - 0x0f, 0x11, 0xff, 0x25, 0x28, 0x0d, 0x3a, 0x20, 0x01, 0x4f, 0x0e, 0x04, - 0x40, 0x04, 0x38, 0x05, 0xe8, 0x13, 0x0f, 0xb4, 0xff, 0x10, 0x06, 0x70, - 0xff, 0x41, 0x02, 0x24, 0x24, 0x24, 0x24, 0x25, 0x41, 0x20, 0x06, 0x43, - 0x00, 0x24, 0x41, 0x41, 0x41, 0x41, 0xb9, 0x1a, 0x19, 0x00, 0x1f, 0x00, - 0x00, 0x44, 0x6d, 0xa6, 0x30, 0xfc, 0x02, 0x30, 0xc9, 0x30, 0xa5, 0x30, - 0xeb, 0x06, 0x68, 0x17, 0x49, 0x00, 0x00, 0x1f, 0x01, 0x64, 0x00, 0x31, - 0x01, 0x72, 0xc0, 0x06, 0x65, 0x98, 0x10, 0x0e, 0xf0, 0x7f, 0x0a, 0x4f, - 0xea, 0x8f, 0x14, 0x5c, 0x83, 0x06, 0x98, 0x17, 0x74, 0xc7, 0x14, 0xb5, - 0x74, 0x06, 0xa8, 0x17, 0x0e, 0xf3, 0x7f, 0x01, 0x2b, 0x04, 0x33, 0x04, - 0x34, 0x04, 0x4b, 0x28, 0x15, 0xc0, 0x10, 0x16, 0x54, 0x7f, 0x06, 0xf6, - 0xff, 0x42, 0x26, 0x26, 0x26, 0x26, 0x27, 0x40, 0x42, 0x20, 0x06, 0x4a, - 0x26, 0x42, 0x42, 0x42, 0x42, 0x10, 0x62, 0x1c, 0x50, 0x28, 0x17, 0x45, - 0x6d, 0xab, 0x30, 0x00, 0xe9, 0x30, 0xd3, 0x30, 0xe5, 0x30, 0xc3, 0x30, - 0x50, 0xaf, 0x06, 0x48, 0x19, 0x4b, 0x4f, 0xa9, 0x61, 0x00, 0x62, 0x00, - 0x60, 0xfc, 0x2f, 0xb7, 0x10, 0x16, 0x10, 0x7f, 0x61, 0x53, 0xc9, 0x62, - 0xd4, 0x10, 0x6b, 0x4b, 0x51, 0x06, 0x78, 0x19, 0x74, 0xce, 0x7c, 0xb7, - 0x0c, 0xd4, 0xbd, 0x6c, 0xd0, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x1a, - 0x04, 0x40, 0x30, 0x28, 0x13, 0x30, 0x04, 0x31, 0x04, 0x4e, 0x04, 0x60, - 0x3a, 0x06, 0x28, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x43, 0x2b, 0x2b, 0x2b, - 0x2a, 0x28, 0x2b, 0x43, 0x20, 0x06, 0x21, 0x20, 0x05, 0x43, 0x43, 0x4c, - 0x02, 0x1d, 0x34, 0x17, 0x00, 0x00, 0x46, 0x28, 0x17, 0xeb, 0x36, 0x30, - 0xb9, 0x06, 0x48, 0x11, 0xb8, 0x17, 0x73, 0x06, 0x7d, 0xae, 0x10, 0x0f, - 0x00, 0x7f, 0x61, 0x06, 0x53, 0x14, 0x5c, 0xaf, 0x65, 0x06, 0x78, 0x15, - 0x38, 0x17, 0x74, 0x1d, 0xb9, 0xa4, 0xc2, 0x06, 0x78, 0x15, 0x0f, 0x13, - 0x7f, 0x58, 0x17, 0x41, 0x06, 0x28, 0x11, 0x80, 0x10, 0x17, 0x54, 0xff, - 0x44, 0x2d, 0x2d, 0x2d, 0x2c, 0x2d, 0x44, 0xa0, 0x20, 0x06, 0x23, 0x20, - 0x05, 0x44, 0x44, 0xe2, 0x1c, 0xa6, 0x08, 0x1e, 0x00, 0x00, 0x47, 0x28, - 0x17, 0xb9, 0x30, 0xbf, 0x0c, 0x30, 0xe2, 0x30, 0xcc, 0x06, 0x68, 0x1b, - 0x3f, 0xaf, 0x73, 0x00, 0x40, 0x74, 0x2f, 0xb5, 0x6d, 0x00, 0x6f, 0x00, - 0x6e, 0x00, 0x40, 0x75, 0x10, 0x15, 0xe0, 0x7f, 0x61, 0x53, 0xaf, 0x65, - 0x54, 0x58, 0x08, 0xab, 0x83, 0xaa, 0x52, 0x06, 0x58, 0x1b, 0x74, 0xce, - 0xa4, 0x01, 0xc2, 0xc0, 0xd0, 0xa8, 0xba, 0x04, 0xb2, 0x06, 0x58, 0x1b, - 0xc4, 0x0e, 0xf3, 0x7f, 0x38, 0x17, 0x41, 0x04, 0x42, 0x28, 0x1d, 0x3c, - 0x04, 0x06, 0x3e, 0x04, 0x3d, 0x04, 0x43, 0x05, 0xe8, 0x21, 0x10, 0x16, - 0xf4, 0xff, 0x45, 0x02, 0x2e, 0x2e, 0x2e, 0x2d, 0x2e, 0x45, 0x20, 0x06, - 0x24, 0x80, 0x20, 0x05, 0x45, 0x45, 0x6b, 0x1d, 0x03, 0x18, 0x00, 0x03, - 0x00, 0x48, 0x6d, 0xad, 0x30, 0xea, 0x28, 0x19, 0x06, 0x58, 0x13, 0x8e, - 0x5f, 0xaf, 0x69, 0x00, 0x6c, 0x20, 0x03, 0x06, 0x7f, 0xb1, 0x10, 0x0e, - 0xf0, 0x7f, 0xfa, 0x06, 0x57, 0x29, 0x52, 0xaf, 0x65, 0x06, 0x58, 0x13, - 0x3f, 0xff, 0xac, 0x06, 0xd0, 0xac, 0xb9, 0xa4, 0xc2, 0x06, 0x58, 0x13, - 0x0f, 0x33, 0x7f, 0x1a, 0x0b, 0x04, 0x38, 0x04, 0x3b, 0x20, 0x03, 0x41, - 0x05, 0xe8, 0x0f, 0x10, 0x17, 0x74, 0xff, 0x01, 0x46, 0x30, 0x30, 0x30, - 0x2f, 0x30, 0x46, 0x20, 0x06, 0x40, 0x26, 0x20, 0x05, 0x46, 0x46, 0x1b, - 0x1a, 0x64, 0x1a, 0x00, 0x00, 0x00, 0x49, 0x6d, 0xaf, 0x30, 0xeb, 0x30, - 0x01, 0xaf, 0x30, 0xe9, 0x30, 0xfc, 0x30, 0xec, 0x28, 0x21, 0x80, 0x06, - 0x18, 0x1f, 0x4b, 0x00, 0x31, 0x01, 0x72, 0x00, 0x6b, 0x83, 0x28, 0x1b, - 0x61, 0x00, 0x72, 0x00, 0x65, 0x48, 0x23, 0x10, 0x15, 0xb0, 0x7f, 0x00, - 0xef, 0x67, 0x4b, 0x51, 0xc9, 0x62, 0xf7, 0x96, 0x20, 0x29, 0x52, 0x06, - 0x58, 0x1b, 0xa4, 0xd0, 0x74, 0xb9, 0x74, 0x01, 0xd0, 0x7c, 0xb7, 0x10, - 0xb8, 0xac, 0xb9, 0x06, 0x38, 0x1d, 0x80, 0x0e, 0xf3, 0x7f, 0x1a, 0x04, - 0x4b, 0x04, 0x40, 0x04, 0x3a, 0xac, 0x28, 0x1b, 0x30, 0x20, 0x07, 0x35, - 0x48, 0x23, 0x10, 0x1d, 0xb4, 0xff, 0x47, 0x32, 0x05, 0x32, 0x32, 0x31, - 0x32, 0x47, 0x20, 0x06, 0x29, 0x20, 0x05, 0x00, 0x47, 0x47, 0xad, 0x1d, - 0x5a, 0x13, 0x00, 0x00, 0x41, 0x4a, 0x48, 0x17, 0xb7, 0x30, 0xa7, 0x30, - 0xd2, 0x28, 0x1f, 0xc1, 0x06, 0x18, 0x15, 0x78, 0x17, 0x5f, 0x01, 0x65, - 0x00, 0x68, 0x2f, 0xb9, 0x40, 0x72, 0x10, 0x16, 0x10, 0x7f, 0x51, 0x14, - 0x5c, 0x22, 0x8c, 0x0c, 0x10, 0x5e, 0x14, 0x5c, 0x06, 0x98, 0x17, 0x70, - 0xc1, 0x88, 0xd7, 0x75, 0x74, 0x06, 0x48, 0x15, 0x0f, 0x13, 0x7f, 0x58, - 0x17, 0x48, 0x28, 0x11, 0x45, 0x28, 0x11, 0x60, 0x40, 0x05, 0xc8, 0x13, - 0x10, 0x17, 0x34, 0xff, 0x48, 0x33, 0x33, 0x33, 0x32, 0x28, 0x33, 0x48, - 0x20, 0x06, 0x2a, 0x20, 0x05, 0x48, 0x48, 0xd7, 0x10, 0x1b, 0x4b, 0x18, - 0x2f, 0xad, 0x6d, 0xe0, 0x30, 0xfc, 0x30, 0x30, 0xe9, 0x06, 0x48, 0x11, - 0x5f, 0xff, 0x4d, 0x00, 0x75, 0x00, 0x30, 0x1f, 0x01, 0x3f, 0xad, 0x10, - 0x16, 0x50, 0x7f, 0x46, 0x7a, 0xc9, 0x62, 0xc3, 0x06, 0x58, 0x11, 0x5f, - 0xff, 0x3c, 0xbb, 0x7c, 0xb7, 0x06, 0x58, 0x11, 0x0f, 0x53, 0x7f, 0x00, - 0x1c, 0x04, 0x43, 0x04, 0x33, 0x04, 0x3b, 0x04, 0x60, 0x30, 0x06, 0x08, - 0x11, 0x10, 0x17, 0x54, 0xff, 0x49, 0x3b, 0x3b, 0x3b, 0x3a, 0x28, 0x3b, - 0x49, 0x20, 0x06, 0x31, 0x20, 0x05, 0x49, 0x49, 0x76, 0x02, 0x1a, 0x2b, - 0x14, 0x00, 0x00, 0x4c, 0x28, 0x17, 0xb7, 0x26, 0x30, 0xe5, 0x06, 0xe8, - 0x17, 0x5f, 0x01, 0x06, 0x95, 0x97, 0x10, 0x0e, 0xf0, 0x7f, 0x46, 0x10, - 0x7a, 0xc0, 0x4e, 0x06, 0xb8, 0x17, 0x34, 0xbb, 0x88, 0xc2, 0xec, 0x06, - 0xf8, 0x17, 0x0e, 0xb3, 0x7f, 0x38, 0x17, 0x48, 0x06, 0x68, 0x13, 0x10, - 0x17, 0x34, 0xff, 0x4a, 0x3c, 0x05, 0x3c, 0x3c, 0x3b, 0x3c, 0x4a, 0x20, - 0x06, 0x32, 0x20, 0x05, 0x02, 0x4a, 0x4a, 0x8e, 0x1b, 0x82, 0x1d, 0x2f, - 0xad, 0x6d, 0x10, 0xcd, 0x30, 0xf4, 0x28, 0x19, 0xa7, 0x30, 0xd2, 0x30, - 0x41, 0xeb, 0x06, 0x48, 0x1d, 0x4e, 0x00, 0x65, 0x00, 0x76, 0x28, 0x19, - 0x01, 0x65, 0x00, 0x68, 0x00, 0x69, 0x00, 0x72, 0x10, 0x16, 0x00, 0x7f, - 0x00, 0x85, 0x51, 0x2b, 0x59, 0x22, 0x8c, 0x0c, 0x5e, 0x20, 0x14, 0x5c, - 0x06, 0x58, 0x1d, 0x24, 0xb1, 0x0c, 0xbe, 0x70, 0x06, 0xc1, 0x88, 0xd7, - 0x74, 0xb9, 0x06, 0x58, 0x1d, 0x0e, 0xf3, 0x7f, 0x1d, 0x08, 0x04, 0x35, - 0x04, 0x32, 0x28, 0x19, 0x35, 0x04, 0x45, 0x0c, 0x04, 0x38, 0x04, 0x40, - 0x06, 0x08, 0x21, 0x10, 0x16, 0xf4, 0xff, 0x4b, 0x3d, 0x05, 0x3d, 0x3d, - 0x3c, 0x3d, 0x4b, 0x20, 0x06, 0x33, 0x20, 0x05, 0x02, 0x4b, 0x4b, 0x77, - 0x1b, 0xaf, 0x18, 0x27, 0x95, 0x6d, 0x06, 0xcb, 0x30, 0xfc, 0x30, 0xc7, - 0x06, 0x48, 0x11, 0x78, 0x17, 0x69, 0x0c, 0x00, 0x1f, 0x01, 0x64, 0x28, - 0x1d, 0x10, 0x16, 0x50, 0x7f, 0x3c, 0x5c, 0x30, 0xe3, 0x4e, 0x06, 0x58, - 0x11, 0x5f, 0xff, 0xc8, 0xb2, 0x70, 0xb3, 0xd1, 0x06, 0x58, 0x11, 0x0f, - 0x53, 0x7f, 0x1d, 0x28, 0x0d, 0x33, 0x04, 0x34, 0x28, 0x1d, 0x80, 0x10, - 0x1e, 0x54, 0xff, 0x4c, 0x3e, 0x3e, 0x3e, 0x3d, 0x3e, 0x4c, 0xa0, 0x20, - 0x06, 0x34, 0x20, 0x05, 0x4c, 0x4c, 0xff, 0x1a, 0xa9, 0x82, 0x28, 0x17, - 0x4f, 0x6d, 0xea, 0x30, 0xbc, 0x06, 0xa8, 0x15, 0x00, 0x2c, 0x00, 0x52, - 0x2f, 0xa5, 0x7a, 0x06, 0x88, 0x15, 0x10, 0x0f, 0x10, 0x7f, 0xcc, 0x91, - 0x21, 0xfd, 0x6c, 0x06, 0xb8, 0x17, 0xac, 0xb9, 0x1c, 0xc8, 0x06, 0xb8, - 0x17, 0xac, 0x0e, 0xf3, 0x7f, 0x20, 0x28, 0x17, 0x37, 0x06, 0x88, 0x15, - 0x10, 0x17, 0x14, 0xff, 0x4d, 0x41, 0x05, 0x41, 0x41, 0x40, 0x41, 0x4d, - 0x20, 0x06, 0x37, 0x20, 0x05, 0x00, 0x4d, 0x4d, 0x2a, 0x1d, 0xcf, 0x1c, - 0x00, 0x00, 0x01, 0x50, 0x6d, 0xb7, 0x30, 0xce, 0x30, 0xd7, 0x06, 0xa8, - 0x19, 0x41, 0x53, 0x2f, 0xaf, 0x6e, 0x00, 0x6f, 0x00, 0x70, 0x10, 0x07, - 0x00, 0x7f, 0xc0, 0x06, 0x5f, 0xb1, 0x06, 0xf1, 0xff, 0x21, 0x95, 0xfa, - 0x8b, 0x6e, 0x66, 0x81, 0x06, 0x98, 0x19, 0xdc, 0xc2, 0x78, 0xb1, 0x04, - 0xd5, 0x06, 0x98, 0x19, 0xa0, 0x0e, 0xf3, 0x7f, 0x21, 0x28, 0x17, 0x3d, - 0x04, 0x3e, 0x04, 0x3f, 0xe0, 0x06, 0x68, 0x19, 0x10, 0x07, 0x94, 0xff, - 0x0e, 0x56, 0xff, 0x4e, 0x46, 0x46, 0x46, 0x45, 0x28, 0x46, 0x4e, 0x20, - 0x06, 0x3c, 0x20, 0x05, 0x4e, 0x4e, 0xe3, 0x02, 0x1d, 0xfe, 0x18, 0x00, - 0x00, 0x51, 0x28, 0x17, 0xe5, 0x02, 0x30, 0xeb, 0x30, 0xca, 0x30, 0xaf, - 0x06, 0x68, 0x1b, 0x5e, 0x08, 0x01, 0x31, 0x01, 0x72, 0x28, 0x19, 0x61, - 0x00, 0x6b, 0xc0, 0x06, 0x4f, 0xb3, 0x10, 0x0e, 0xf0, 0x7f, 0x21, 0x95, - 0x14, 0x5c, 0xb3, 0x7e, 0x20, 0x4b, 0x51, 0x06, 0x78, 0x19, 0xdc, 0xc2, - 0x74, 0xb9, 0x98, 0x1a, 0xb0, 0x6c, 0xd0, 0x06, 0x78, 0x19, 0x0e, 0xf3, - 0x7f, 0x28, 0x28, 0x17, 0x40, 0x8c, 0x28, 0x19, 0x30, 0x04, 0x3a, 0x06, - 0x48, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x4f, 0x47, 0x05, 0x47, 0x47, 0x46, - 0x47, 0x4f, 0x20, 0x06, 0x49, 0x20, 0x05, 0x00, 0x4f, 0x4f, 0xad, 0x1a, - 0x31, 0x1e, 0x00, 0x00, 0x00, 0x52, 0x6d, 0xc8, 0x30, 0xa5, 0x30, 0xf3, - 0x30, 0x04, 0xb8, 0x30, 0xa7, 0x30, 0xea, 0x06, 0x48, 0x19, 0x54, 0x00, - 0x56, 0x75, 0x2f, 0xaf, 0x63, 0x2e, 0xad, 0x6c, 0x2f, 0xb9, 0x10, 0x16, - 0x10, 0x7f, 0x1a, 0x04, 0x90, 0x70, 0x67, 0x29, 0x52, 0x06, 0x78, 0x15, - 0x00, 0x00, 0x03, 0x30, 0xd2, 0x24, 0xc8, 0xac, 0xb9, 0x06, 0x78, 0x15, - 0x0f, 0x13, 0x7f, 0x10, 0x22, 0x04, 0x43, 0x28, 0x15, 0x34, 0x04, 0x36, - 0x04, 0x18, 0x35, 0x04, 0x3b, 0x28, 0x23, 0x10, 0x1d, 0xf4, 0xff, 0x50, - 0x4c, 0x4c, 0xa8, 0x20, 0x01, 0x50, 0x20, 0x06, 0x41, 0x20, 0x05, 0x50, - 0x50, 0xd0, 0x00, 0x1b, 0x1f, 0x1c, 0x00, 0x00, 0x53, 0x6d, 0xe4, 0x0d, - 0x30, 0xed, 0x30, 0xef, 0x06, 0x48, 0x11, 0x5f, 0xff, 0x59, 0x2f, 0xa9, - 0x06, 0x6c, 0x00, 0x6f, 0x00, 0x76, 0x2f, 0xb1, 0x10, 0x16, 0x30, 0x7f, - 0x9a, 0x04, 0x4e, 0x57, 0x7f, 0xd5, 0x6c, 0x06, 0x98, 0x17, 0x84, 0xc5, - 0x0d, 0x5c, 0xb8, 0x14, 0xbc, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x2f, - 0x28, 0x0d, 0x06, 0x3e, 0x04, 0x32, 0x04, 0x30, 0x06, 0x08, 0x11, 0x10, - 0x17, 0x54, 0xff, 0x51, 0x2a, 0x4f, 0x4f, 0x20, 0x01, 0x51, 0x20, 0x06, - 0x51, 0x20, 0x05, 0x51, 0x04, 0x51, 0xe8, 0x1c, 0xcf, 0x14, 0x00, 0x3f, - 0xff, 0x01, 0x07, 0x06, 0x07, 0x07, 0x08, 0x07, 0x01, 0x30, 0x06, 0x20, - 0x05, 0x01, 0x00, 0x01, 0x02, 0x28, 0x28, 0x28, 0x28, 0x21, 0x02, 0x80, - 0x20, 0x06, 0x3d, 0x28, 0x02, 0x02, 0x02, 0x02, 0x03, 0x02, 0x29, 0x29, - 0x29, 0x48, 0x29, 0x03, 0x20, 0x06, 0x1e, 0x82, 0x20, 0x05, 0x03, 0x03, - 0x04, 0x15, 0x15, 0x20, 0x01, 0x04, 0x82, 0x40, 0x06, 0x04, 0x04, 0x04, - 0x04, 0x05, 0x30, 0x33, 0x01, 0x60, 0x05, 0x20, 0x06, 0x30, 0x05, 0x05, - 0x05, 0x06, 0x21, 0x21, 0x08, 0x21, 0x21, 0x22, 0x06, 0x20, 0x06, 0x17, - 0x21, 0x06, 0x00, 0x06, 0x06, 0x06, 0x07, 0x35, 0x35, 0x35, 0x34, 0x2c, - 0x35, 0x07, 0x20, 0x06, 0x28, 0x20, 0x05, 0x20, 0x6b, 0x08, 0x08, 0x31, - 0x08, 0x01, 0x30, 0x04, 0x60, 0x03, 0x09, 0x1a, 0x1a, 0x20, 0x01, 0x50, - 0x09, 0x20, 0x06, 0x1b, 0x20, 0x05, 0x09, 0x09, 0x0a, 0x3a, 0x05, 0x3a, - 0x3a, 0x39, 0x3a, 0x0a, 0x20, 0x06, 0x30, 0x20, 0x05, 0x00, 0x0a, 0x0a, - 0x0b, 0x2f, 0x2f, 0x2f, 0x2e, 0x2f, 0x50, 0x0b, 0x20, 0x06, 0x20, 0x20, - 0x05, 0x0b, 0x0b, 0x0c, 0x44, 0x05, 0x44, 0x44, 0x43, 0x44, 0x0c, 0x20, - 0x06, 0x48, 0x20, 0x05, 0x00, 0x0c, 0x0c, 0x0d, 0x37, 0x37, 0x37, 0x36, - 0x37, 0x50, 0x0d, 0x20, 0x06, 0x2d, 0x20, 0x05, 0x0d, 0x0d, 0x0e, 0x1f, - 0x54, 0x1f, 0x20, 0x01, 0x0e, 0x20, 0x06, 0x4f, 0x20, 0x05, 0x0e, 0x0e, - 0x01, 0x0f, 0x43, 0x43, 0x43, 0x42, 0x43, 0x0f, 0x20, 0x06, 0x41, 0x39, - 0x20, 0x05, 0x0f, 0x0f, 0x10, 0x4e, 0x4e, 0x20, 0x01, 0x50, 0x10, 0x20, - 0x06, 0x16, 0x20, 0x05, 0x10, 0x10, 0x11, 0x2a, 0x05, 0x2a, 0x2a, 0x29, - 0x2a, 0x11, 0x20, 0x06, 0x25, 0x20, 0x05, 0x05, 0x11, 0x11, 0x12, 0x19, - 0x19, 0x20, 0x01, 0x12, 0x20, 0x06, 0x44, 0x1a, 0x20, 0x05, 0x12, 0x12, - 0x13, 0x30, 0x44, 0x0e, 0x13, 0xa0, 0x20, 0x06, 0x0f, 0x20, 0x05, 0x13, - 0x13, 0x14, 0x1d, 0x1d, 0xa8, 0x20, 0x01, 0x14, 0x20, 0x06, 0x4d, 0x20, - 0x05, 0x14, 0x14, 0x15, 0x02, 0x42, 0x42, 0x42, 0x41, 0x42, 0x15, 0x20, - 0x06, 0x38, 0x80, 0x20, 0x05, 0x15, 0x15, 0x16, 0x34, 0x34, 0x34, 0x33, - 0x28, 0x34, 0x16, 0x20, 0x06, 0x27, 0x20, 0x05, 0x16, 0x16, 0x17, 0x02, - 0x48, 0x48, 0x48, 0x47, 0x48, 0x17, 0x20, 0x06, 0x3a, 0x80, 0x20, 0x05, - 0x17, 0x17, 0x18, 0x38, 0x38, 0x38, 0x37, 0x28, 0x38, 0x18, 0x20, 0x06, - 0x2e, 0x20, 0x05, 0x18, 0x18, 0x19, 0x2b, 0x4b, 0x4b, 0x20, 0x01, 0x19, - 0x20, 0x06, 0x40, 0x20, 0x05, 0x20, 0x75, 0x97, 0x30, 0xd4, 0x0c, 0x1a, - 0x20, 0x06, 0x0d, 0x20, 0x05, 0x21, 0x15, 0x31, 0x83, 0x30, 0x02, 0x1b, - 0x20, 0x06, 0x30, 0x05, 0x1b, 0x1b, 0x1c, 0x49, 0x54, 0x49, 0x20, 0x01, - 0x1c, 0x20, 0x06, 0x3e, 0x20, 0x05, 0x1c, 0x1c, 0x01, 0x1d, 0x31, 0x31, - 0x31, 0x30, 0x31, 0x1d, 0x20, 0x06, 0x40, 0x2b, 0x20, 0x05, 0x1d, 0x1d, - 0x1e, 0x40, 0x40, 0x40, 0x14, 0x3f, 0x40, 0x1e, 0x20, 0x06, 0x36, 0x20, - 0x05, 0x1e, 0x1e, 0x01, 0x1f, 0x36, 0x36, 0x36, 0x35, 0x36, 0x1f, 0x20, - 0x06, 0x44, 0x2c, 0x20, 0x05, 0x1f, 0x1f, 0x20, 0x30, 0x74, 0x18, 0x20, - 0xa0, 0x20, 0x06, 0x47, 0x20, 0x05, 0x20, 0x20, 0x21, 0x27, 0x27, 0x09, - 0x27, 0x27, 0x28, 0x21, 0x20, 0x06, 0x4b, 0x27, 0x41, 0xba, 0x94, 0x31, - 0x64, 0x0b, 0x22, 0x20, 0x06, 0x04, 0x20, 0x05, 0x22, 0x22, 0x01, 0x23, - 0x25, 0x25, 0x25, 0x25, 0x26, 0x23, 0x20, 0x06, 0x00, 0x44, 0x25, 0x23, - 0x23, 0x23, 0x23, 0x24, 0x39, 0x05, 0x39, 0x39, 0x38, 0x39, 0x24, 0x20, - 0x06, 0x2f, 0x20, 0x05, 0x13, 0x24, 0x24, 0x25, 0x31, 0xf3, 0x05, 0x25, - 0x30, 0x06, 0x20, 0x05, 0xca, 0x20, 0x2a, 0x32, 0x23, 0x03, 0x26, 0x20, - 0x06, 0x0b, 0x20, 0x05, 0x26, 0x0a, 0x26, 0x27, 0x4a, 0x4a, 0x20, 0x01, - 0x27, 0x20, 0x06, 0x3f, 0xe5, 0x20, 0x05, 0x20, 0x6a, 0x30, 0xb4, 0x1c, - 0x28, 0x20, 0x06, 0x4c, 0x20, 0x05, 0x00, 0x28, 0x28, 0x29, 0x2c, 0x2c, - 0x2c, 0x2b, 0x2c, 0x50, 0x29, 0x20, 0x06, 0x22, 0x20, 0x05, 0x29, 0x29, - 0x2a, 0x3f, 0x05, 0x3f, 0x3f, 0x3e, 0x3f, 0x2a, 0x20, 0x06, 0x35, 0x20, - 0x05, 0x00, 0x2a, 0x2a, 0x2b, 0x45, 0x45, 0x45, 0x44, 0x45, 0x51, 0x2b, - 0x20, 0x06, 0x3b, 0x20, 0x05, 0x2b, 0x2b, 0x2c, 0x30, 0xd4, 0x28, 0x1e, - 0x2c, 0x20, 0x06, 0x4e, 0x20, 0x05, 0x2c, 0x2c, 0x2d, 0x94, 0x31, 0x54, - 0x17, 0x2d, 0x20, 0x06, 0x46, 0x20, 0x05, 0x2d, 0x2d, 0x4a, 0x2e, 0x32, - 0xec, 0x51, 0x2e, 0x20, 0x06, 0x1d, 0x20, 0x05, 0x2e, 0x25, 0x2e, 0x2f, - 0x3b, 0x14, 0x50, 0x2f, 0x20, 0x06, 0x1f, 0x20, 0x05, 0x05, 0x2f, 0x2f, - 0x30, 0x4d, 0x4d, 0x20, 0x01, 0x30, 0x20, 0x06, 0x44, 0x42, 0x20, 0x05, - 0x30, 0x30, 0x31, 0x32, 0xc3, 0x04, 0x31, 0xa2, 0x20, 0x06, 0x01, 0x20, - 0x05, 0x31, 0x31, 0x32, 0x32, 0xb3, 0x06, 0x62, 0x32, 0x30, 0x06, 0x20, - 0x05, 0x32, 0x32, 0x33, 0x32, 0x94, 0x09, 0x41, 0x33, 0x40, 0x06, 0x33, - 0x33, 0x33, 0x33, 0x34, 0x32, 0x94, 0x32, 0x0a, 0x34, 0x40, 0x06, 0x21, - 0xea, 0x34, 0x35, 0x32, 0x74, 0x0d, 0x51, 0x35, 0x20, 0x06, 0x0e, 0x20, - 0x05, 0x35, 0x35, 0x36, 0x32, 0x64, 0x28, 0x0f, 0x36, 0x20, 0x06, 0x0c, - 0x20, 0x05, 0x36, 0x36, 0x37, 0x99, 0x32, 0x64, 0x10, 0x37, 0x40, 0x06, - 0x22, 0xaa, 0x37, 0x38, 0x32, 0x64, 0x32, 0x11, 0x38, 0x40, 0x06, 0x22, - 0x0a, 0x38, 0x39, 0x32, 0x64, 0x12, 0x64, 0x39, 0x40, 0x06, 0x21, 0x5a, - 0x39, 0x3a, 0x32, 0x64, 0x13, 0x3a, 0xc9, 0x40, 0x06, 0x23, 0x0a, 0x3a, - 0x3b, 0x32, 0x64, 0x14, 0x3b, 0x40, 0x06, 0x04, 0x3b, 0x3b, 0x3b, 0x3b, - 0x3c, 0x32, 0x54, 0x16, 0x3c, 0xa2, 0x20, 0x06, 0x45, 0x20, 0x05, 0x3c, - 0x3c, 0x3d, 0x32, 0x14, 0x1b, 0x51, 0x3d, 0x20, 0x06, 0x1c, 0x20, 0x05, - 0x3d, 0x3d, 0x3e, 0x31, 0xd4, 0x28, 0x20, 0x3e, 0x20, 0x06, 0x50, 0x20, - 0x05, 0x3e, 0x3e, 0x3f, 0xa4, 0x41, 0xc4, 0x3f, 0x20, 0x06, 0x18, 0x22, - 0x21, 0x5a, 0x3f, 0x40, 0xa4, 0x41, 0xc4, 0x40, 0x20, 0x06, 0x19, 0x23, - 0x22, 0x2a, 0x40, 0x41, 0xa0, 0x41, 0xc4, 0x41, 0x20, 0x06, 0x43, 0x24, - 0x41, 0x41, 0x41, 0x29, 0x41, 0x42, 0x41, 0xb4, 0x42, 0x20, 0x06, 0x4a, - 0x26, 0x22, 0xda, 0x22, 0x42, 0x43, 0x21, 0x74, 0x2a, 0x2b, 0x43, 0x20, - 0x06, 0x21, 0x88, 0x20, 0x05, 0x43, 0x43, 0x44, 0x21, 0x64, 0x2c, 0x2d, - 0x44, 0xa2, 0x20, 0x06, 0x23, 0x20, 0x05, 0x44, 0x44, 0x45, 0x21, 0x64, - 0x2d, 0x28, 0x2e, 0x45, 0x20, 0x06, 0x24, 0x20, 0x05, 0x45, 0x45, 0x46, - 0x8a, 0x21, 0x54, 0x2f, 0x30, 0x46, 0x20, 0x06, 0x26, 0x20, 0x05, 0x46, - 0x22, 0x46, 0x47, 0x21, 0x44, 0x31, 0x32, 0x47, 0x20, 0x06, 0x29, 0x88, - 0x20, 0x05, 0x47, 0x47, 0x48, 0x21, 0x44, 0x32, 0x33, 0x48, 0xa2, 0x20, - 0x06, 0x2a, 0x20, 0x05, 0x48, 0x48, 0x49, 0x20, 0xd4, 0x3a, 0x28, 0x3b, - 0x49, 0x20, 0x06, 0x31, 0x20, 0x05, 0x49, 0x49, 0x4a, 0x8a, 0x20, 0xd4, - 0x3b, 0x3c, 0x4a, 0x20, 0x06, 0x32, 0x20, 0x05, 0x4a, 0x22, 0x4a, 0x4b, - 0x20, 0xd4, 0x3c, 0x3d, 0x4b, 0x20, 0x06, 0x33, 0x88, 0x20, 0x05, 0x4b, - 0x4b, 0x4c, 0x20, 0xd4, 0x3d, 0x3e, 0x4c, 0xa2, 0x20, 0x06, 0x34, 0x20, - 0x05, 0x4c, 0x4c, 0x4d, 0x20, 0xb4, 0x40, 0x28, 0x41, 0x4d, 0x20, 0x06, - 0x37, 0x20, 0x05, 0x4d, 0x4d, 0x4e, 0x8a, 0x20, 0x74, 0x45, 0x46, 0x4e, - 0x20, 0x06, 0x3c, 0x20, 0x05, 0x4e, 0x22, 0x4e, 0x4f, 0x20, 0x74, 0x46, - 0x47, 0x4f, 0x20, 0x06, 0x49, 0x9c, 0x20, 0x05, 0x4f, 0x4f, 0xfd, 0x2f, - 0xf5, 0x27, 0xbf, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0xac, 0x71, 0x00, 0x11, 0x04, 0x00, 0x00, 0x30, 0x01, 0x6e, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xa0, 0x24, 0xeb, 0xff, 0x00, 0x00, 0x00, 0x02, 0x6e, 0xa4, 0x30, - 0xf3, 0x30, 0xb0, 0x24, 0x30, 0xe9, 0x20, 0x05, 0xc9, 0x30, 0x06, 0x38, - 0x21, 0x45, 0x00, 0x01, 0x6e, 0x00, 0x67, 0x00, 0x6c, 0x00, 0x61, 0x20, - 0x07, 0x51, 0x64, 0x06, 0x28, 0xa2, 0x41, 0x60, 0x7f, 0x65, 0x00, 0x74, - 0x20, 0x03, 0x54, 0x72, 0x20, 0x01, 0x65, 0x0d, 0xc0, 0xff, 0x49, 0x41, - 0x7f, 0x68, 0x00, 0x6e, 0x69, 0x21, 0x83, 0x71, 0x01, 0x61, 0x06, 0x00, - 0x7f, 0x31, 0xff, 0x06, 0x30, 0x7d, 0x00, 0x01, 0x00, 0xf1, 0x82, 0x3c, - 0x68, 0x70, 0x51, 0x06, 0x9b, 0x1b, 0x00, 0x89, 0xc7, 0x00, 0xae, 0x9c, - 0xb7, 0xdc, 0xb4, 0xd8, 0x06, 0x7b, 0x9d, 0x53, 0x7f, 0x65, 0x06, 0x83, - 0x81, 0x06, 0xf1, 0xff, 0x10, 0x04, 0x3d, 0x00, 0x04, 0x33, 0x04, 0x3b, - 0x04, 0x38, 0x04, 0x4f, 0xe0, 0x6d, 0x2a, 0x0d, 0xd4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x01, 0x01, 0x01, 0x01, 0x02, 0x64, 0x03, 0x30, 0x04, 0x30, - 0x09, 0x01, 0x01, 0x58, 0x17, 0x04, 0x6e, 0x01, 0xb9, 0x30, 0xb3, 0x30, - 0xc3, 0x30, 0xc8, 0x06, 0x88, 0x19, 0x06, 0x53, 0x00, 0x63, 0x00, 0x6f, - 0x27, 0x93, 0x06, 0x78, 0x19, 0xc9, 0xbb, 0x40, 0x7f, 0x73, 0x20, 0x01, - 0x05, 0xd8, 0x0f, 0xb0, 0xff, 0x68, 0x41, 0x01, 0x06, 0x51, 0x03, 0xba, - 0x51, 0x7f, 0x7a, 0x28, 0x17, 0x05, 0xd7, 0x8f, 0x9a, 0x17, 0x73, 0x42, - 0x01, 0x63, 0xa0, 0x06, 0x60, 0x81, 0xcf, 0x06, 0xe8, 0x17, 0xa4, 0xc2, - 0x54, 0xcf, 0xc0, 0x7a, 0xd2, 0x06, 0x98, 0x19, 0x92, 0x7f, 0x06, 0x5b, - 0x9b, 0x51, 0xff, 0xf3, 0x06, 0x81, 0xff, 0x28, 0x0a, 0x04, 0x3e, 0x04, - 0x42, 0x28, 0x17, 0x30, 0x28, 0x1f, 0x34, 0xe0, 0x06, 0x28, 0x1d, 0x06, - 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x02, 0x03, 0x02, 0x03, 0x04, 0x20, - 0x01, 0x02, 0x28, 0x1a, 0x04, 0x03, 0x02, 0x02, 0x02, 0x00, 0x02, 0xca, - 0x27, 0xb9, 0xfd, 0x00, 0x00, 0x05, 0x00, 0x6e, 0xa6, 0x30, 0xa7, 0x30, - 0xfc, 0x30, 0xeb, 0x36, 0x30, 0xba, 0x06, 0x28, 0x13, 0x3f, 0xff, 0x57, - 0x2f, 0x29, 0x3f, 0xad, 0x73, 0xaa, 0x06, 0x6d, 0xb2, 0x50, 0x2f, 0xa9, - 0x79, 0x28, 0x17, 0x20, 0x2f, 0xad, 0x65, 0xbf, 0x20, 0x05, 0x47, 0x40, - 0x8f, 0x05, 0x90, 0x91, 0x06, 0xf0, 0xff, 0x05, 0xf0, 0xef, 0x00, 0x50, - 0x7f, 0x06, 0x91, 0xff, 0x02, 0x01, 0x5a, 0x14, 0x5c, 0xeb, 0x58, 0x06, - 0x98, 0x17, 0xe8, 0x06, 0xc6, 0x7c, 0xc7, 0x88, 0xc9, 0x06, 0x98, 0x97, - 0x07, 0x33, 0x7f, 0xed, 0xc4, 0x00, 0x03, 0x7f, 0x05, 0x94, 0x0f, 0x23, - 0x04, 0x4d, 0x28, 0x15, 0x4c, 0x04, 0x71, 0x41, 0x05, 0xe8, 0x0f, 0x07, - 0x74, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x03, 0x04, 0x04, 0x28, 0x16, 0x40, - 0x03, 0x20, 0x06, 0x03, 0x04, 0x03, 0x03, 0x03, 0x03, 0x10, 0x9b, 0x24, - 0xbe, 0x28, 0x17, 0x06, 0x6e, 0x17, 0x53, 0x10, 0xa2, 0x30, 0xa4, 0x28, - 0x17, 0xe9, 0x30, 0xf3, 0x30, 0x55, 0xc9, 0x06, 0x28, 0x1b, 0x4e, 0x2f, - 0xad, 0x72, 0x2f, 0x2d, 0x68, 0x2f, 0xaf, 0x45, 0x72, 0x2f, 0x2d, 0x20, - 0x00, 0x49, 0x20, 0x0f, 0x65, 0x05, 0x8f, 0x3b, 0xe3, 0x30, 0x6d, 0x7f, - 0xa7, 0x38, 0x17, 0x64, 0x00, 0x75, 0x28, 0x23, 0x50, 0x95, 0xdd, 0x05, - 0x3f, 0xb9, 0x70, 0x69, 0x69, 0xa0, 0x87, 0x05, 0xbf, 0xb8, 0xb0, 0xff, - 0x61, 0x69, 0x1d, 0x6c, 0x6c, 0x05, 0xa1, 0x01, 0x00, 0xd0, 0x7f, 0x74, - 0x2a, 0x31, 0x04, 0xdf, 0xcb, 0x17, 0x53, 0x02, 0x31, 0x72, 0x14, 0x5c, - 0x70, 0x51, 0x06, 0x78, 0x19, 0x81, 0x00, 0xbd, 0x44, 0xc5, 0x7c, 0xc7, - 0x9c, 0xb7, 0xdc, 0x77, 0xb4, 0x06, 0x5b, 0x97, 0x33, 0x7f, 0x52, 0xeb, - 0x2d, 0x23, 0x79, 0x33, 0x83, 0x05, 0xde, 0xb9, 0xa0, 0x00, 0x12, 0x7f, - 0x6f, 0x05, 0xa1, 0xfd, 0x00, 0x00, 0x21, 0x04, 0x35, 0x20, 0x04, 0x32, - 0x20, 0x03, 0x40, 0x04, 0x3d, 0x04, 0x30, 0x02, 0x04, 0x4f, 0x04, 0x20, - 0x00, 0x18, 0x20, 0x0b, 0x3b, 0x83, 0x20, 0x0b, 0x3d, 0x04, 0x34, 0x04, - 0x38, 0x20, 0x11, 0x0c, 0xd4, 0xff, 0x86, 0x10, 0x0e, 0xf0, 0x7f, 0x04, - 0x02, 0x03, 0x02, 0x38, 0x1b, 0x20, 0x06, 0x02, 0x81, 0x28, 0x22, 0x04, - 0xd1, 0x26, 0xcd, 0xfb, 0x09, 0x4f, 0xff, 0x16, 0x07, 0x6e, 0xed, 0x48, - 0x13, 0xf3, 0x06, 0x28, 0x15, 0x5f, 0xff, 0x4c, 0xfe, 0x28, 0x1b, 0x38, - 0x03, 0x30, 0x05, 0x06, 0xb0, 0x7f, 0x38, 0x8f, 0x06, 0x3f, 0xb7, 0x07, - 0x90, 0xff, 0x61, 0x8c, 0x0e, 0x41, 0x7f, 0x26, 0x4f, 0x66, 0x05, 0x16, - 0x80, 0x00, 0xaf, 0xff, 0xf0, 0xb7, 0x34, 0x58, 0xb3, 0x06, 0xb0, 0x7f, - 0x73, 0x7f, 0x65, 0x0e, 0x63, 0x7f, 0x1b, 0x04, 0x78, 0x3e, 0x48, 0x05, - 0x30, 0x05, 0x0e, 0xb4, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x02, 0x04, 0x05, - 0x10, 0x04, 0x05, 0x06, 0x28, 0x17, 0x05, 0x06, 0x04, 0x02, 0x00, 0x02, - 0x02, 0x02, 0xa0, 0x24, 0xeb, 0xff, 0x00, 0x00, 0x00, 0x08, 0x6e, 0x57, - 0x53, 0x7f, 0x89, 0xe8, 0x0a, 0x90, 0x30, 0x57, 0xb9, 0x06, 0x65, 0x1d, - 0x53, 0x2f, 0x9d, 0x75, 0x8a, 0x4b, 0x33, 0x20, 0x00, 0x57, 0x47, 0x9b, - 0x74, 0x05, 0xe0, 0x7f, 0x75, 0xba, 0x4d, 0x2f, 0x4f, 0x20, 0x85, 0x06, - 0x10, 0x7d, 0x07, 0x70, 0xff, 0x20, 0x20, 0xff, 0x76, 0xac, 0x06, 0x60, - 0xff, 0x75, 0x2e, 0xb1, 0x6f, 0x61, 0xf9, 0x06, 0x17, 0xa2, 0x7f, 0x89, - 0x00, 0x57, 0x53, 0xf1, 0x82, 0x3c, 0x68, 0x70, 0x51, 0x80, 0x06, 0x5f, - 0xb3, 0xac, 0xc0, 0xb0, 0xc6, 0xa4, 0xc2, 0xe8, 0x98, 0x20, 0x03, 0xb8, - 0xd2, 0x0e, 0x93, 0x7f, 0x06, 0x91, 0xff, 0x2e, 0x04, 0x33, 0x80, 0x28, - 0x19, 0x2d, 0x00, 0x17, 0x04, 0x30, 0x04, 0x3f, 0xa0, 0x20, 0x03, 0x34, - 0x28, 0x25, 0x4b, 0x04, 0x39, 0x04, 0x20, 0x0b, 0x00, 0x40, 0x04, 0x35, - 0x20, 0x1b, 0x38, 0x04, 0xe8, 0x31, 0x07, 0x14, 0xff, 0x80, 0x10, 0x0e, - 0xd0, 0x7f, 0x06, 0x0a, 0x0c, 0x0a, 0x0c, 0x0c, 0x06, 0x80, 0x20, 0x06, - 0x0d, 0x0a, 0x06, 0x06, 0x06, 0x06, 0x96, 0x00, 0x24, 0x2a, 0xfe, 0x00, - 0x00, 0x09, 0x6e, 0xa6, 0x00, 0x30, 0xa7, 0x30, 0xb9, 0x30, 0xc8, 0x30, - 0xfb, 0x00, 0x30, 0xdf, 0x30, 0xc3, 0x30, 0xc9, 0x30, 0xe9, 0x38, 0x30, - 0xf3, 0x20, 0x05, 0x05, 0x98, 0x27, 0x78, 0x0b, 0x20, 0x00, 0x4d, 0x2f, - 0x00, 0x69, 0x2f, 0xb7, 0x6c, 0x2e, 0xb7, 0x3f, 0xbf, 0x05, 0x7f, 0xbb, - 0xf0, 0x75, 0x56, 0x20, 0x4d, 0x3b, 0x20, 0x20, 0x87, 0x27, 0x05, 0x48, - 0x2b, 0x08, 0x10, 0xff, 0x4f, 0x3a, 0x00, 0x63, 0x20, 0x01, 0x31, 0x8b, - 0x3e, 0x43, 0x74, 0x21, 0x8f, 0x6c, 0xe0, 0x21, 0x99, 0x06, 0xd0, 0x7f, - 0x04, 0x9e, 0x4b, 0x7f, 0x89, 0x73, 0x7c, 0xb7, 0x0c, 0x5f, 0x70, 0x51, - 0x79, 0x06, 0x68, 0x17, 0x58, 0x11, 0xf8, 0xbb, 0x03, 0xe4, 0xb4, 0x9c, - 0xb7, 0x88, 0xc9, 0x06, 0x1f, 0xb2, 0x08, 0x52, 0x7f, 0xb4, 0xb2, 0x7d, - 0x69, 0x04, 0xc4, 0x0b, 0x00, 0x18, 0x0f, 0x1c, 0x28, 0x0b, 0x34, 0x04, - 0x5c, 0x3b, 0x28, 0x15, 0x3d, 0x28, 0x25, 0x0c, 0xf4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x07, 0x0c, 0x04, 0x07, 0x0c, 0x06, 0x07, 0x07, 0x20, 0x04, - 0x04, 0x0c, 0x84, 0x20, 0x06, 0x07, 0x52, 0x25, 0xa8, 0x28, 0x17, 0x0a, - 0x6e, 0x03, 0x17, 0x53, 0x7f, 0x89, 0xe8, 0x90, 0x05, 0x98, 0x07, 0xff, - 0xff, 0x58, 0x4e, 0x2f, 0x2f, 0x72, 0x06, 0xaf, 0x2f, 0x50, 0x7f, 0x64, - 0x00, 0x2d, 0xec, 0x05, 0x48, 0x05, 0x08, 0x90, 0xff, 0x38, 0x0f, 0x76, - 0x06, 0x81, 0x7f, 0x06, 0x9e, 0x2f, 0x7f, 0x89, 0x01, 0x17, 0x53, 0xf1, - 0x82, 0x3c, 0x68, 0x70, 0x06, 0x68, 0x17, 0x0e, 0x78, 0xb1, 0xa4, 0xc2, - 0x58, 0x1b, 0x0e, 0xb3, 0x7f, 0x06, 0x91, 0xff, 0x21, 0xa0, 0x27, 0xff, - 0x32, 0x28, 0x03, 0x40, 0x04, 0x3e, 0x04, 0x2d, 0xab, 0x00, 0x28, 0x25, - 0x40, 0x28, 0x1f, 0x33, 0x28, 0x29, 0x3e, 0x28, 0x37, 0x0c, 0x94, 0xff, - 0x80, 0x10, 0x0e, 0x90, 0x7f, 0x08, 0x06, 0x09, 0x07, 0x09, 0x0a, 0x08, - 0x00, 0x08, 0x07, 0x09, 0x09, 0x06, 0x08, 0x08, 0x08, 0x0a, 0x08, 0x05, - 0x26, 0x6a, 0x28, 0x17, 0x0b, 0x28, 0x17, 0x71, 0x5b, 0x67, 0x07, 0x78, - 0x17, 0x45, 0x2f, 0xb5, 0x06, 0x98, 0x17, 0x45, 0x06, 0x08, 0x93, 0x07, - 0xb0, 0xff, 0xe1, 0x31, 0x7d, 0x06, 0x90, 0xff, 0x06, 0x78, 0x15, 0x00, - 0x00, 0x1c, 0x4e, 0x07, 0x18, 0x17, 0x3a, 0x74, 0xc7, 0x07, 0x58, 0x17, - 0x06, 0xb3, 0x7f, 0x07, 0x58, 0x17, 0x12, 0x28, 0x1d, 0x41, 0x2e, 0x04, - 0x42, 0x28, 0x23, 0x47, 0x05, 0x68, 0x19, 0x07, 0x54, 0xff, 0x10, 0x0e, - 0x90, 0x7f, 0x09, 0x05, 0x05, 0x08, 0x06, 0x08, 0x09, 0x48, 0x14, 0x05, - 0x20, 0x06, 0x08, 0x09, 0x17, 0x27, 0xdb, 0x28, 0x17, 0x0c, 0x6e, 0xe8, - 0x00, 0x30, 0xfc, 0x30, 0xaf, 0x30, 0xb7, 0x30, 0xe3, 0x80, 0x20, 0x07, - 0xfb, 0x30, 0xa2, 0x30, 0xf3, 0x30, 0xc9, 0xab, 0x20, 0x07, 0xb6, 0x20, - 0x0b, 0xcf, 0x20, 0x0b, 0xd0, 0x20, 0x1d, 0x04, 0xd8, 0x33, 0x51, 0x59, - 0x4f, 0xaf, 0x6b, 0x2f, 0xa7, 0x68, 0x00, 0x69, 0x46, 0x21, 0x5d, 0x20, - 0x28, 0x1d, 0x6e, 0x4e, 0xc1, 0x3f, 0x45, 0x30, 0x0f, 0x48, 0x2f, 0xc9, - 0x15, 0x6d, 0x00, 0x62, 0x2f, 0xcd, 0x72, 0x05, 0x40, 0x7f, 0x65, 0x2f, - 0xbf, 0xf4, 0x04, 0xd0, 0x75, 0x08, 0xf0, 0xff, 0x05, 0x70, 0xfd, 0x00, - 0x51, 0xff, 0x79, 0x05, 0xa0, 0x7f, 0xa6, 0x7e, 0x00, 0x4b, 0x51, 0xe1, - 0x90, 0x2d, 0x00, 0xa8, 0x4e, 0x20, 0x2f, 0x4f, 0x06, 0x3f, 0xb1, 0x94, - 0xc6, 0x6c, 0xd0, 0x54, 0x01, 0xc1, 0x2d, 0x00, 0xd8, 0xd5, 0x84, 0xbc, - 0x06, 0x3b, 0x99, 0xa0, 0x0e, 0xf2, 0x7f, 0x19, 0x28, 0x0f, 0x40, 0x04, - 0x3a, 0x04, 0x48, 0xa8, 0x27, 0xf9, 0x40, 0x28, 0x05, 0x38, 0x28, 0x09, - 0x25, 0x04, 0x30, 0x0e, 0x04, 0x3c, 0x04, 0x31, 0x48, 0x2d, 0x0e, 0x31, - 0x7f, 0x10, 0x0d, 0xb0, 0x7f, 0x0a, 0x2a, 0x0d, 0x0d, 0x20, 0x01, 0x0a, - 0x20, 0x06, 0x05, 0x20, 0x05, 0x0a, 0x08, 0x0a, 0x41, 0x26, 0xe6, 0x28, - 0x17, 0x0d, 0x6e, 0xa4, 0x88, 0x28, 0x17, 0xb9, 0x30, 0xc8, 0x28, 0x13, - 0xdf, 0x30, 0xc3, 0xbc, 0x28, 0x13, 0xe9, 0x48, 0x19, 0x04, 0xd8, 0x0b, - 0xbf, 0xff, 0x7f, 0x23, 0x20, 0x00, 0x45, 0x4d, 0x28, 0x17, 0x64, 0x00, - 0x6c, 0x68, 0x15, 0x73, 0x05, 0x6f, 0xb9, 0xab, 0xf0, 0x75, 0x20, 0x4c, - 0xbb, 0x20, 0x20, 0x87, 0x27, 0x05, 0x4f, 0x41, 0x08, 0x10, 0xff, 0x55, - 0x4f, 0x2f, 0xbf, 0x69, 0x2f, 0xc1, 0x6e, 0x2f, 0xc1, 0x61, 0x21, 0x8f, - 0x70, 0x69, 0x06, 0xe0, 0x7f, 0x3e, 0x49, 0x04, 0x9f, 0xcb, 0x1c, 0x4e, - 0x73, 0x7c, 0x02, 0xb7, 0x5f, 0x70, 0x51, 0x79, 0x51, 0x06, 0x5f, 0xaf, - 0x74, 0x00, 0xc7, 0xa4, 0xc2, 0xb8, 0xd2, 0xf8, 0xbb, 0xe4, 0x06, 0xb4, - 0x9c, 0xb7, 0x88, 0xc9, 0x06, 0x18, 0x99, 0x08, 0xf2, 0x7f, 0x69, 0xa2, - 0x04, 0xe4, 0x09, 0x12, 0x28, 0x17, 0x41, 0x04, 0x42, 0x28, 0x1d, 0x47, - 0x02, 0x04, 0x3d, 0x04, 0x4b, 0x04, 0x39, 0x28, 0x1b, 0x1c, 0x8b, 0x28, - 0x23, 0x34, 0x04, 0x3b, 0x28, 0x17, 0x3d, 0x20, 0x07, 0x0c, 0xd4, 0xff, - 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x0b, 0x01, 0x06, 0x01, 0x07, 0x08, 0x0b, - 0x00, 0x0b, 0x01, 0x07, 0x02, 0x01, 0x0b, 0x0b, 0x0b, 0x00, 0x0b, 0x6d, - 0x25, 0x31, 0xff, 0x00, 0x00, 0x0e, 0x88, 0x28, 0x17, 0xf3, 0x30, 0xb0, - 0x68, 0x0d, 0x71, 0x67, 0xe8, 0x62, 0x90, 0x05, 0x98, 0x11, 0xf8, 0x17, - 0x6f, 0x00, 0x66, 0x2f, 0xab, 0x45, 0xbe, 0x2f, 0x2b, 0x67, 0x88, 0x1d, - 0x05, 0x38, 0x97, 0x05, 0x17, 0xfb, 0x09, 0x10, 0xff, 0x59, 0x0d, 0x6c, - 0xb6, 0x49, 0x0d, 0x49, 0x41, 0x81, 0x3f, 0xbd, 0x6c, 0x2e, 0x31, 0x3f, - 0xaf, 0x72, 0xff, 0x2e, 0x41, 0x04, 0xd1, 0x7f, 0x3e, 0xa5, 0x59, 0x8f, - 0x50, 0x7d, 0x3a, 0x1d, 0x05, 0x10, 0x7b, 0x58, 0x17, 0x06, 0xf1, 0x82, - 0x3c, 0x68, 0x70, 0x06, 0x68, 0x15, 0x78, 0x17, 0x24, 0x00, 0xc6, 0x0c, - 0xbe, 0x89, 0xc7, 0x00, 0xae, 0x9c, 0x1d, 0xb7, 0xdc, 0xb4, 0x0e, 0x32, - 0x7f, 0x06, 0x91, 0xff, 0x00, 0x38, 0x17, 0x40, 0x28, 0x11, 0x5c, 0x33, - 0x28, 0x1b, 0x3e, 0x28, 0x29, 0x0d, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, - 0x0c, 0x02, 0x01, 0x03, 0x02, 0x01, 0x02, 0x0c, 0x0c, 0x02, 0x20, 0x07, - 0x01, 0x0c, 0x0c, 0x0c, 0x0c, 0x6c, 0x25, 0xec, 0x2f, 0xff, 0x0d, 0x0f, - 0x6e, 0x57, 0x53, 0x06, 0x38, 0x0d, 0x9f, 0xff, 0x53, 0x28, 0x0f, 0x5d, - 0x75, 0x2f, 0x95, 0x68, 0x48, 0x13, 0x5f, 0x3b, 0x05, 0xd0, 0x7f, 0x75, - 0x2f, 0xa5, 0x7a, 0x2d, 0x06, 0x88, 0x1f, 0x07, 0x50, 0xff, 0x39, 0x8f, - 0x06, 0x70, 0xff, 0x75, 0x2e, 0x1f, 0x65, 0xc2, 0x68, 0x1d, 0x06, 0x1f, - 0xb3, 0x1c, 0x4e, 0x57, 0x53, 0x06, 0xb8, 0x19, 0xac, 0x07, 0xc0, 0xb0, - 0xc6, 0xa4, 0xc2, 0x58, 0x1d, 0x0e, 0x93, 0x7f, 0x06, 0x91, 0xff, 0x47, - 0x2e, 0x28, 0x01, 0x3e, 0x04, 0x2d, 0x06, 0x88, 0x1f, 0x07, 0x14, 0xff, - 0x10, 0x0e, 0xd0, 0x7f, 0x01, 0x0d, 0x09, 0x0b, 0x09, 0x0b, 0x0b, 0x0d, - 0x20, 0x06, 0x00, 0x0c, 0x09, 0x0d, 0x0d, 0x0d, 0x0d, 0x27, 0x24, 0x20, - 0xe9, 0xff, 0xff, 0xff, 0x01, 0x03, 0x01, 0x03, 0x03, 0x34, 0x04, 0x01, - 0x20, 0x04, 0x20, 0x09, 0x01, 0x20, 0x07, 0x08, 0x02, 0x20, 0x08, 0x0a, - 0x20, 0x12, 0x08, 0x01, 0x0b, 0x08, 0x03, 0x40, 0x03, 0x20, 0x1a, 0x0b, - 0x0a, 0x0b, 0x02, 0x03, 0x04, 0x80, 0x20, 0x06, 0x0a, 0x0b, 0x04, 0x04, - 0x04, 0x04, 0x05, 0x00, 0x07, 0x04, 0x05, 0x04, 0x05, 0x05, 0x05, 0x05, - 0x14, 0x04, 0x07, 0x07, 0x30, 0x06, 0x02, 0x2f, 0xff, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x6f, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x0a, 0xf5, 0x1c, 0x14, 0x00, 0x00, 0x00, 0x01, 0x6f, 0xb6, 0x30, - 0xf3, 0x30, 0xd3, 0x10, 0x30, 0xa2, 0x30, 0x06, 0x78, 0x1d, 0x5a, 0x00, - 0x61, 0x00, 0x06, 0x6d, 0x00, 0x62, 0x00, 0x69, 0x20, 0x07, 0x06, 0xd0, - 0x7f, 0x65, 0xb0, 0x06, 0x49, 0x20, 0x53, 0x07, 0x80, 0xff, 0x0e, 0x50, - 0x7f, 0x5e, 0x8d, 0xd4, 0x6b, 0x20, 0x9a, 0x4e, 0x06, 0x9b, 0x1b, 0xa0, - 0xc7, 0x44, 0xbe, 0x44, 0x68, 0xc5, 0x06, 0x9b, 0x9b, 0x07, 0x13, 0x7f, - 0xe2, 0x06, 0xc3, 0xff, 0x17, 0x04, 0x30, 0x00, 0x04, 0x3c, 0x04, 0x31, - 0x04, 0x38, 0x04, 0x4f, 0x67, 0x04, 0x10, 0x06, 0x33, 0x7f, 0x10, 0x06, - 0xf0, 0xff, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x80, - 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x70, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x54, 0xf3, 0x14, 0x16, 0x00, 0x00, 0x00, 0x01, 0x70, 0xb8, 0x30, - 0xf3, 0x30, 0xd0, 0x04, 0x30, 0xd6, 0x30, 0xa8, 0x30, 0x06, 0x58, 0x1f, - 0x5a, 0x00, 0x01, 0x69, 0x00, 0x6d, 0x00, 0x62, 0x00, 0x61, 0x20, 0x03, - 0x16, 0x77, 0x00, 0x65, 0x0e, 0x00, 0x7f, 0x53, 0x0e, 0xe0, 0xff, 0xb1, - 0xff, 0x75, 0x80, 0x06, 0x21, 0xff, 0x25, 0x6d, 0xf4, 0x5d, 0x03, 0x5e, - 0xe6, 0x40, 0x97, 0x06, 0x7b, 0x1d, 0xd0, 0xc9, 0x14, 0xbc, 0x0c, 0xbe, - 0x34, 0xe8, 0xc6, 0x06, 0x7b, 0x9d, 0x07, 0xd1, 0xff, 0xe9, 0x06, 0x0c, - 0xa4, 0x17, 0x04, 0x01, 0x38, 0x04, 0x3c, 0x04, 0x31, 0x04, 0x30, 0x20, - 0x03, 0x0c, 0x32, 0x04, 0x35, 0x04, 0x10, 0x05, 0xf4, 0xff, 0x10, 0x06, - 0xf0, 0xff, 0x01, 0x01, 0xf0, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, - 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x71, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xb6, 0x1c, 0x7a, 0x23, 0x00, 0x00, 0x00, - 0x01, 0x71, 0xa2, 0x30, 0xbc, 0x30, 0xeb, 0x00, 0x30, 0xd0, 0x30, 0xa4, - 0x30, 0xb8, 0x30, 0xe3, 0x10, 0x30, 0xf3, 0x30, 0x05, 0xf8, 0x25, 0x41, - 0x00, 0x7a, 0x00, 0x00, 0x65, 0x00, 0x72, 0x00, 0x62, 0x00, 0x61, 0x00, - 0x14, 0x69, 0x00, 0x6a, 0x20, 0x05, 0x6e, 0x06, 0x80, 0x7f, 0xef, 0x00, - 0x45, 0x64, 0x06, 0x00, 0x81, 0x41, 0x00, 0x73, 0xa0, 0xff, 0x64, 0x20, - 0x0d, 0x1b, 0x63, 0x00, 0x68, 0x05, 0xa1, 0x05, 0xd1, 0x7f, 0x67, 0x21, - 0x83, 0x05, 0xf0, 0xff, 0x88, 0xb1, 0xff, 0x79, 0x00, 0xe1, 0x05, 0xe1, - 0xff, 0x3f, 0x96, 0x5e, 0x04, 0x58, 0xdc, 0x62, 0x86, 0x75, 0x06, 0x7b, - 0x1d, 0x44, 0xc5, 0x00, 0x1c, 0xc8, 0x74, 0xb9, 0x14, 0xbc, 0x74, 0xc7, - 0x35, 0x94, 0xc7, 0x06, 0x3b, 0xa1, 0x93, 0x7f, 0x65, 0x42, 0x7f, 0x7a, - 0x05, 0xe3, 0x83, 0x88, 0xf3, 0xff, 0xe3, 0x00, 0x6f, 0x05, 0xcc, 0xa8, - 0x10, 0x04, 0x37, 0x00, 0x04, 0x35, 0x04, 0x40, 0x04, 0x31, 0x04, 0x30, - 0x02, 0x04, 0x39, 0x04, 0x34, 0x04, 0x36, 0x20, 0x07, 0x3d, 0x67, 0x04, - 0x0e, 0x54, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, - 0x17, 0x01, 0x10, 0x27, 0x80, 0x3f, 0xff, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x72, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xdf, 0x0c, 0xa9, - 0xf4, 0x00, 0x00, 0x00, 0x01, 0x72, 0xe2, 0x30, 0xfc, 0x30, 0xea, 0x01, - 0x30, 0xbf, 0x30, 0xcb, 0x30, 0xa2, 0x30, 0x06, 0x38, 0x21, 0x00, 0x4d, - 0x00, 0x61, 0x00, 0x75, 0x00, 0x72, 0x00, 0x15, 0x69, 0x00, 0x74, 0x20, - 0x09, 0x6e, 0x20, 0x07, 0x61, 0x06, 0xe0, 0x7f, 0x56, 0x65, 0x06, 0x40, - 0xff, 0x65, 0xa0, 0x7f, 0x6e, 0x0e, 0xc1, 0x7f, 0x05, 0xd1, 0xff, 0xdb, - 0x00, 0x6b, 0xcc, 0x91, 0x54, 0x58, 0x3c, 0x5c, 0x9a, 0x40, 0x4e, 0x06, - 0x5b, 0x1f, 0xa8, 0xba, 0xac, 0xb9, 0xc0, 0xd0, 0x35, 0xc8, 0xb2, 0x06, - 0x7b, 0x9d, 0x00, 0x13, 0x7f, 0xeb, 0x06, 0x83, 0xff, 0xe2, 0x06, 0x23, - 0xff, 0x00, 0x1c, 0x04, 0x30, 0x04, 0x32, 0x04, 0x40, 0x04, 0x14, 0x38, - 0x04, 0x42, 0x20, 0x09, 0x3d, 0x20, 0x07, 0x4f, 0x04, 0xcf, 0x0e, 0xd4, - 0xff, 0x10, 0x0d, 0xd0, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, - 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x73, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xfe, 0x08, 0x50, 0xfa, 0x00, 0x01, 0x00, - 0x01, 0x73, 0xde, 0x30, 0xea, 0x30, 0x06, 0xb8, 0x19, 0x01, 0x4d, 0x00, - 0x61, 0x00, 0x6c, 0x00, 0x69, 0x10, 0x0e, 0xe0, 0x7f, 0x42, 0xed, 0x06, - 0x8a, 0x9c, 0x6c, 0x9a, 0xcc, 0x91, 0x06, 0xbb, 0x19, 0xd0, 0x10, 0xb9, - 0xac, 0xb9, 0x10, 0x06, 0xb3, 0x7f, 0x1c, 0x04, 0x30, 0x04, 0x0c, 0x3b, - 0x04, 0x38, 0x04, 0x10, 0x16, 0xd4, 0xff, 0x06, 0x96, 0xff, 0x01, 0x01, - 0xf0, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x74, 0x14, 0x20, 0x50, 0x08, 0xe2, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x9d, 0x09, 0x7f, - 0x28, 0x1a, 0x01, 0x00, 0x74, 0xcb, 0x30, 0xb8, 0x30, 0xa7, 0x30, 0xfc, - 0x10, 0x30, 0xeb, 0x30, 0x06, 0x58, 0x1f, 0x4e, 0x00, 0x69, 0x00, 0x06, - 0x67, 0x00, 0x65, 0x00, 0x72, 0x06, 0x68, 0x9e, 0x10, 0x07, 0x10, 0x7f, - 0xed, 0x81, 0x06, 0xc1, 0xff, 0x3c, 0x5c, 0xe5, 0x65, 0x14, 0x5c, 0x06, - 0x9b, 0x1b, 0x03, 0xc8, 0xb2, 0x1c, 0xc8, 0x74, 0xb9, 0x06, 0x9b, 0x9b, - 0x0e, 0xf1, 0xff, 0x00, 0x1d, 0x04, 0x38, 0x04, 0x33, 0x04, 0x35, 0x04, - 0x33, 0x40, 0x04, 0x10, 0x16, 0x74, 0xff, 0x06, 0xd6, 0xff, 0x01, 0x01, - 0xd0, 0x01, 0x58, 0x17, 0xc0, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x75, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x9c, 0x08, 0xb1, 0x0a, 0x00, 0x00, 0x00, - 0x01, 0x75, 0xc1, 0x30, 0xe3, 0x30, 0xc9, 0x40, 0x30, 0x06, 0x98, 0x1b, - 0x43, 0x00, 0x68, 0x00, 0x61, 0x00, 0x44, 0x64, 0x06, 0x88, 0x9c, 0x54, - 0x00, 0x63, 0x06, 0xc0, 0x81, 0x54, 0x00, 0x46, 0x73, 0x06, 0xc0, 0x81, - 0x43, 0x00, 0x69, 0x06, 0xc1, 0x7f, 0x06, 0xf1, 0xff, 0x4d, 0x10, 0x4e, - 0x97, 0x5f, 0x06, 0xbb, 0x19, 0x28, 0xcc, 0xdc, 0xb4, 0xdd, 0x06, 0xbb, - 0x99, 0x32, 0x7f, 0x6a, 0x23, 0x81, 0x06, 0x92, 0x7f, 0x53, 0xff, 0x65, - 0x06, 0x6c, 0x9e, 0x03, 0x27, 0x04, 0x30, 0x04, 0x34, 0x04, 0x0e, 0x94, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x3c, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, - 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x76, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x1d, 0x0b, 0x22, 0x17, 0x00, 0x00, 0x00, - 0x01, 0x76, 0xb9, 0x30, 0xfc, 0x30, 0xc0, 0x10, 0x30, 0xf3, 0x30, 0x06, - 0x78, 0x1d, 0x53, 0x00, 0x75, 0x00, 0x05, 0x64, 0x00, 0x61, 0x00, 0x6e, - 0x06, 0x80, 0x7f, 0x6f, 0x06, 0xc0, 0x81, 0xd0, 0x07, 0x10, 0xff, 0x07, - 0x30, 0x7f, 0xe1, 0x06, 0x81, 0xff, 0xcf, 0x82, 0x39, 0x4e, 0x86, 0x06, - 0xbb, 0x19, 0x18, 0xc2, 0xe8, 0xb2, 0x06, 0xbb, 0x99, 0x32, 0xff, 0x65, - 0xb0, 0x07, 0x02, 0xff, 0xe3, 0x23, 0x85, 0x06, 0x5c, 0x9f, 0x21, 0x04, - 0x43, 0x04, 0x03, 0x34, 0x04, 0x30, 0x04, 0x3d, 0x04, 0x0e, 0xb3, 0x7f, - 0x10, 0x0e, 0x90, 0x7f, 0x3c, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, - 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x77, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xe7, 0x0a, 0xaf, 0x1b, 0x00, 0x00, 0x00, - 0x01, 0x77, 0xa8, 0x30, 0xea, 0x30, 0xc8, 0x90, 0x20, 0x03, 0xa2, 0x30, - 0x06, 0x58, 0x1f, 0x45, 0x00, 0x72, 0x00, 0x11, 0x69, 0x00, 0x74, 0x20, - 0x05, 0x65, 0x00, 0x61, 0x06, 0x28, 0xa2, 0x55, 0xc9, 0x20, 0x7f, 0x79, - 0x20, 0x7f, 0x68, 0x20, 0x87, 0xe9, 0x20, 0x83, 0xc0, 0x0d, 0xf0, 0xff, - 0x0e, 0xf0, 0x7f, 0x84, 0x53, 0xcb, 0x7a, 0x79, 0x72, 0x08, 0xcc, 0x91, - 0x9a, 0x4e, 0x06, 0x5b, 0x1f, 0xd0, 0xc5, 0xac, 0x01, 0xb9, 0xb8, 0xd2, - 0x08, 0xb8, 0x44, 0xc5, 0x0e, 0x53, 0x7f, 0xa0, 0xb3, 0xff, 0x69, 0x06, - 0x24, 0x01, 0x2d, 0x04, 0x40, 0x04, 0x38, 0x21, 0x04, 0x42, 0x20, 0x05, - 0x35, 0x04, 0x4f, 0x04, 0x10, 0x06, 0x13, 0x7f, 0x9e, 0x10, 0x06, 0xf4, - 0xff, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x78, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x3d, 0x08, 0xae, - 0x1e, 0x00, 0x00, 0x00, 0x01, 0x78, 0xb8, 0x30, 0xd6, 0x30, 0xc1, 0x40, - 0x30, 0x06, 0x98, 0x1b, 0x44, 0x00, 0x6a, 0x00, 0x69, 0x00, 0x01, 0x62, - 0x00, 0x6f, 0x00, 0x75, 0x00, 0x74, 0x20, 0x09, 0x83, 0x0e, 0x10, 0x7f, - 0x73, 0x00, 0x63, 0x00, 0x68, 0x41, 0x03, 0x06, 0x31, 0x01, 0x68, 0x47, - 0x06, 0x80, 0x79, 0x5a, 0x98, 0x59, 0x06, 0xe0, 0x7f, 0x09, 0x54, 0x03, - 0x10, 0x5e, 0xd0, 0x63, 0x06, 0x9b, 0x1b, 0xc0, 0xc9, 0x80, 0xbd, 0x20, - 0xf0, 0xd2, 0x10, 0x06, 0x93, 0x7f, 0x14, 0x04, 0x36, 0x04, 0x38, 0x03, - 0x04, 0x31, 0x04, 0x43, 0x04, 0x42, 0x20, 0x07, 0x10, 0x06, 0x34, 0xff, - 0x9e, 0x10, 0x06, 0xd0, 0xff, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, - 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x79, 0x14, 0x20, 0x50, 0x08, 0xe2, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x72, 0x01, 0x3f, - 0x28, 0x11, 0x01, 0x00, 0x79, 0xbd, 0x30, 0xde, 0x30, 0xea, 0x30, 0xa2, - 0x40, 0x30, 0x06, 0x78, 0x1d, 0x53, 0x00, 0x6f, 0x00, 0x6d, 0x00, 0x06, - 0x61, 0x00, 0x6c, 0x00, 0x69, 0x20, 0x05, 0x06, 0xd0, 0x7f, 0x65, 0xc0, - 0x0e, 0xe0, 0xff, 0x0e, 0x30, 0x7f, 0x22, 0x7d, 0x6c, 0x9a, 0xcc, 0x91, - 0x80, 0x06, 0x9b, 0x1b, 0x8c, 0xc1, 0xd0, 0xb9, 0xac, 0xb9, 0x44, 0x54, - 0xc5, 0x07, 0x33, 0x7f, 0xeb, 0x06, 0x83, 0xff, 0xe1, 0x06, 0x83, 0xff, - 0x21, 0x04, 0x00, 0x3e, 0x04, 0x3c, 0x04, 0x30, 0x04, 0x3b, 0x04, 0x33, - 0x38, 0x04, 0x0e, 0xf4, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x01, 0x01, 0xd0, - 0x01, 0x58, 0x17, 0xc0, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x7a, 0x14, 0x20, 0x50, 0x08, 0xe2, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x38, 0x1e, 0x11, - 0x28, 0x1a, 0x01, 0x00, 0x7a, 0xa2, 0x30, 0xf3, 0x30, 0xc9, 0x30, 0xe9, - 0x40, 0x30, 0x06, 0x78, 0x1d, 0x41, 0x00, 0x6e, 0x00, 0x64, 0x00, 0x15, - 0x6f, 0x00, 0x72, 0x20, 0x01, 0x61, 0x06, 0xe0, 0x7f, 0x65, 0x0e, 0xe0, - 0xff, 0x81, 0x0e, 0x30, 0x7f, 0x89, 0x5b, 0x53, 0x90, 0x14, 0x5c, 0x06, - 0x9b, 0x1b, 0x03, 0x48, 0xc5, 0xc4, 0xb3, 0x7c, 0xb7, 0x06, 0x9b, 0x9b, - 0x0e, 0xf2, 0x7f, 0x00, 0x10, 0x04, 0x3d, 0x04, 0x34, 0x04, 0x3e, 0x04, - 0x4c, 0x40, 0x20, 0x01, 0x30, 0x04, 0x10, 0x0e, 0x13, 0xff, 0x0e, 0xf5, - 0x7f, 0x01, 0x01, 0xf0, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, - 0xff, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x7b, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xb1, 0x19, 0x33, 0xfc, 0x00, 0x00, 0x00, - 0x01, 0x7b, 0xb8, 0x30, 0xd6, 0x30, 0xe9, 0x0c, 0x30, 0xeb, 0x30, 0xbf, - 0x20, 0x03, 0x06, 0x38, 0x21, 0x47, 0x00, 0x00, 0x69, 0x00, 0x62, 0x00, - 0x72, 0x00, 0x61, 0x00, 0x15, 0x6c, 0x00, 0x74, 0x20, 0x05, 0x72, 0x10, - 0x06, 0x40, 0x7f, 0x69, 0x41, 0x7d, 0x70, 0x65, 0x21, 0x87, 0x31, 0x89, - 0x0d, 0xb1, 0xff, 0xf4, 0x76, 0x03, 0x5e, 0x08, 0x57, 0x7f, 0x40, 0x96, - 0x06, 0x7b, 0x1d, 0xc0, 0xc9, 0x0c, 0x06, 0xbe, 0x64, 0xb8, 0x30, 0xd1, - 0x06, 0x7b, 0x9d, 0x0e, 0xf3, 0x7f, 0x13, 0x00, 0x04, 0x38, 0x04, 0x31, - 0x04, 0x40, 0x04, 0x30, 0x09, 0x04, 0x3b, 0x04, 0x42, 0x20, 0x05, 0x40, - 0x04, 0x10, 0x0e, 0x34, 0xff, 0x9e, 0x0e, 0x96, 0x7f, 0x01, 0x01, 0xd0, - 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x7c, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x2a, 0x23, 0x30, - 0xfe, 0x00, 0x00, 0x00, 0x01, 0x7c, 0xac, 0x30, 0xfc, 0x30, 0xf3, 0x24, - 0x30, 0xb8, 0x20, 0x05, 0xf6, 0x5c, 0x06, 0x38, 0x21, 0x47, 0x00, 0x00, - 0x75, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6e, 0x00, 0x57, 0x73, 0x20, 0x07, - 0x79, 0x06, 0xa0, 0x7f, 0x65, 0x06, 0x40, 0x81, 0x07, 0x90, 0xff, 0x0e, - 0x50, 0x7f, 0x08, 0x39, 0x68, 0x7f, 0x89, 0x06, 0xbb, 0x19, 0x74, 0xac, - 0xc0, 0x06, 0xc9, 0x20, 0x00, 0x2c, 0xc1, 0x06, 0x7b, 0x9d, 0x0e, 0xf2, - 0x7f, 0x13, 0x00, 0x04, 0x35, 0x04, 0x40, 0x04, 0x3d, 0x04, 0x41, 0x19, - 0x04, 0x38, 0x04, 0x10, 0x06, 0x31, 0x7f, 0x10, 0x06, 0xf4, 0xff, 0x01, - 0x01, 0xd0, 0x01, 0xe0, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x7d, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x84, 0x26, 0xd0, - 0xfc, 0x00, 0x00, 0x00, 0x01, 0x7d, 0xde, 0x30, 0xf3, 0x30, 0xf6, 0x40, - 0x5c, 0x06, 0x98, 0x1b, 0x49, 0x00, 0x73, 0x00, 0x6c, 0x00, 0x01, 0x65, - 0x00, 0x20, 0x00, 0x6f, 0x00, 0x66, 0x20, 0x05, 0x05, 0x4d, 0x00, 0x61, - 0x00, 0x6e, 0x05, 0xa8, 0xaa, 0xce, 0x60, 0x7d, 0x7a, 0x64, 0x40, 0x83, - 0x05, 0xf0, 0x7d, 0x07, 0x10, 0xff, 0x31, 0x7f, 0x6f, 0x21, 0x81, 0x61, - 0xbc, 0x41, 0x03, 0x69, 0x06, 0x01, 0x81, 0x51, 0xff, 0x50, 0x7d, 0x06, - 0x31, 0x81, 0x6c, 0x9a, 0x10, 0x69, 0x60, 0x9b, 0x06, 0xa2, 0xff, 0xe8, - 0xb9, 0x20, 0x00, 0x38, 0x2c, 0xc1, 0x06, 0x9b, 0x9b, 0x06, 0x12, 0xf1, - 0xf3, 0xff, 0x6c, 0x00, 0x68, 0x80, 0x06, 0xa1, 0xff, 0x1c, 0x04, 0x4d, - 0x04, 0x3d, 0x04, 0x20, 0x00, 0x00, 0x28, 0x00, 0x3e, 0x04, 0x41, 0x04, - 0x42, 0x00, 0x04, 0x40, 0x04, 0x3e, 0x04, 0x32, 0x04, 0x29, 0xcf, 0x0d, - 0xc3, 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, - 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x7e, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xfa, 0x22, 0x80, - 0xfe, 0x00, 0x00, 0x00, 0x01, 0x7e, 0xb8, 0x30, 0xe3, 0x30, 0xfc, 0x24, - 0x30, 0xb8, 0x20, 0x03, 0xf6, 0x5c, 0x06, 0x38, 0x21, 0x4a, 0x00, 0x05, - 0x65, 0x00, 0x72, 0x00, 0x73, 0x20, 0x05, 0x79, 0x06, 0x48, 0xa0, 0x84, - 0x10, 0x0e, 0xf0, 0x7f, 0xfd, 0x6c, 0x7f, 0x89, 0x06, 0xcb, 0x19, 0xc8, - 0xc0, 0x06, 0xc9, 0x20, 0x00, 0x2c, 0xc1, 0x06, 0x7b, 0x9d, 0x07, 0x13, - 0x7f, 0xe9, 0x88, 0x43, 0xff, 0x69, 0x00, 0x61, 0x06, 0x5c, 0x97, 0x04, - 0x36, 0x04, 0x00, 0x35, 0x04, 0x40, 0x04, 0x41, 0x04, 0x38, 0x04, 0x9e, - 0x10, 0x1e, 0x34, 0xff, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, - 0x27, 0x3f, 0xff, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x7f, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x16, 0x1f, 0x46, 0x05, 0x00, 0x00, 0x00, - 0x01, 0x7f, 0xe2, 0x30, 0xca, 0x30, 0xb3, 0x40, 0x30, 0x06, 0x98, 0x1b, - 0x4d, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x18, 0x61, 0x00, 0x63, 0x20, 0x07, - 0x10, 0x06, 0xf0, 0x7f, 0x20, 0x00, 0x28, 0x02, 0x00, 0x50, 0x00, 0x72, - 0x00, 0x69, 0x21, 0x91, 0x63, 0xaa, 0x20, 0x05, 0x70, 0x21, 0x97, 0x74, - 0x40, 0x17, 0x64, 0x20, 0x13, 0x29, 0xa0, 0x04, 0x61, 0xff, 0xf3, 0x06, - 0xc1, 0xff, 0x69, 0x64, 0xb3, 0x7e, 0xe5, 0x40, 0x54, 0x06, 0x9b, 0x1b, - 0xa8, 0xba, 0x98, 0xb0, 0x54, 0xcf, 0xc0, 0x0e, 0xb3, 0x7f, 0x06, 0xd1, - 0xff, 0x1c, 0x04, 0x3e, 0x04, 0x3d, 0x04, 0x1c, 0x30, 0x04, 0x3a, 0x20, - 0x07, 0x10, 0x0e, 0xf4, 0xff, 0x0e, 0x36, 0xff, 0x01, 0x01, 0xf0, 0xd0, - 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x88, 0x1d, 0x01, - 0x11, 0x22, 0x00, 0x00, 0x30, 0x01, 0xa9, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x56, 0x14, 0xe5, - 0x36, 0x00, 0x00, 0x00, 0x02, 0xa9, 0xc7, 0x30, 0xea, 0x30, 0xfc, 0x40, - 0x30, 0x06, 0x98, 0x1b, 0x44, 0x00, 0x65, 0x00, 0x6c, 0x00, 0x10, 0x68, - 0x00, 0x69, 0x10, 0x16, 0x60, 0x7f, 0xb7, 0x5f, 0xcc, 0x91, 0x00, 0x2d, - 0x4e, 0x2e, 0x59, 0xf4, 0x76, 0x96, 0x8f, 0x21, 0x3a, 0x53, 0x06, 0x1b, - 0x23, 0x78, 0xb3, 0xac, 0xb9, 0x06, 0xbb, 0x99, 0xe0, 0x07, 0x53, 0x7f, - 0x06, 0x73, 0xfd, 0x2c, 0x97, 0x04, 0x35, 0x04, 0x3b, 0x04, 0x20, 0x38, - 0x04, 0x10, 0x1e, 0x74, 0xff, 0x01, 0x09, 0x09, 0x09, 0x0a, 0x32, 0x09, - 0x01, 0x30, 0x06, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x00, 0xa9, - 0xa2, 0x30, 0xf3, 0x30, 0xc0, 0x30, 0xde, 0x80, 0x20, 0x05, 0xfb, 0x30, - 0xcb, 0x30, 0xb3, 0x30, 0xd0, 0x01, 0x30, 0xeb, 0x30, 0xf8, 0x8a, 0xf6, - 0x5c, 0x05, 0x7f, 0xc5, 0x00, 0x41, 0x00, 0x6e, 0x00, 0x64, 0x00, 0x61, - 0x00, 0x45, 0x6d, 0x20, 0x03, 0x6e, 0x00, 0x20, 0x40, 0x05, 0x64, 0x20, - 0x07, 0x41, 0x4e, 0x28, 0x29, 0x63, 0x00, 0x6f, 0x00, 0x62, 0x20, 0x1b, - 0x46, 0x72, 0x20, 0x17, 0x49, 0x00, 0x73, 0x28, 0x3f, 0x50, 0x1d, 0x73, - 0xaa, 0x03, 0xaf, 0xe2, 0xce, 0x28, 0x95, 0x65, 0x20, 0x5b, 0x20, 0xe0, - 0x89, 0x2d, 0xba, 0x28, 0xaf, 0x74, 0x20, 0x05, 0xd0, 0x87, 0x04, 0xf0, - 0xff, 0x65, 0x41, 0x03, 0x75, 0xbb, 0xa1, 0x03, 0x6b, 0x81, 0x03, 0x30, - 0x1b, 0x05, 0x10, 0x7f, 0x20, 0x40, 0x03, 0xd1, 0x7d, 0x75, 0x65, 0x04, - 0xaf, 0xd2, 0x71, 0xd7, 0xd1, 0x81, 0xe1, 0x42, 0x0b, 0x79, 0x00, 0x02, - 0x07, 0x80, 0x04, 0x1f, 0xdb, 0x89, 0x5b, 0xbe, 0x8f, 0xfc, 0x66, 0x8c, - 0x00, 0x54, 0x3c, 0x5c, 0xd1, 0x79, 0xf4, 0x5d, 0xa4, 0x10, 0x7f, 0x9b, - 0x5c, 0x05, 0xd8, 0x25, 0x48, 0xc5, 0xe4, 0xb2, 0x00, 0xcc, 0xb9, 0x20, - 0x00, 0xc8, 0xb2, 0x54, 0xcf, 0x10, 0x14, 0xbc, 0x74, 0x20, 0x09, 0x1c, - 0xc8, 0xc4, 0xb3, 0xff, 0x05, 0x9f, 0xc3, 0x00, 0x32, 0x7f, 0x52, 0x85, - 0xf2, 0x03, 0x04, 0x32, 0x7d, 0x31, 0xff, 0x3c, 0x15, 0xf1, 0xff, 0x70, - 0xe3, 0x23, 0xf9, 0x00, 0x32, 0x89, 0x04, 0x1f, 0xdb, 0x10, 0x04, 0x3d, - 0x04, 0x04, 0x34, 0x04, 0x30, 0x04, 0x3c, 0x20, 0x03, 0x3d, 0x04, 0x10, - 0x41, 0x04, 0x3a, 0x28, 0x23, 0x35, 0x04, 0x20, 0x00, 0x50, 0x38, 0x20, - 0x03, 0x1d, 0x28, 0x2f, 0x3a, 0x04, 0x3e, 0x04, 0x55, 0x31, 0x20, 0x1f, - 0x40, 0xa0, 0x1b, 0x3e, 0x20, 0x27, 0x42, 0x20, 0x11, 0x1c, 0x3e, 0x04, - 0x32, 0x20, 0x39, 0x0a, 0xd4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x02, 0x01, - 0x04, 0x0e, 0x01, 0x01, 0x0e, 0x02, 0x40, 0x06, 0x02, 0x02, 0x00, 0x02, - 0x02, 0x4b, 0x08, 0xf4, 0x41, 0x00, 0x00, 0x51, 0x04, 0x28, 0x17, 0xfc, - 0x28, 0x19, 0xc9, 0x30, 0xe9, 0x28, 0x17, 0x50, 0xd7, 0x20, 0x05, 0xc7, - 0x20, 0x0f, 0xb7, 0x30, 0xe5, 0x30, 0x2a, 0xde, 0x5d, 0x05, 0xb8, 0x17, - 0x68, 0x27, 0xfb, 0x61, 0x28, 0x15, 0x50, 0xa8, 0x40, 0x07, 0x64, 0x47, - 0xa9, 0x68, 0x10, 0x15, 0x40, 0x7f, 0x89, 0x5b, 0x97, 0x04, 0x5f, 0xc9, - 0x62, 0xa6, 0x90, 0x06, 0x7f, 0xb3, 0x48, 0xc5, 0x00, 0xdc, 0xb4, 0x7c, - 0xb7, 0x04, 0xd5, 0x7c, 0xb7, 0x00, 0x70, 0xb3, 0xdc, 0xc2, 0x20, 0x00, - 0xfc, 0xc8, 0xe8, 0x05, 0xdf, 0xb8, 0x0e, 0xf3, 0x7f, 0x58, 0x17, 0x45, - 0x27, 0xf7, 0x30, 0x04, 0x2d, 0x2b, 0x00, 0x1f, 0x40, 0x07, 0x34, 0x28, - 0x19, 0x48, 0x02, 0xe7, 0xef, 0x10, 0x19, 0x74, 0xff, 0x24, 0x03, 0x02, - 0x28, 0x0e, 0x01, 0x03, 0x40, 0x06, 0x03, 0x03, 0x00, 0x03, 0x03, 0x5b, - 0x0c, 0xcd, 0x37, 0x00, 0x00, 0x41, 0x05, 0x28, 0x17, 0xc3, 0x30, 0xb5, - 0x30, 0xe0, 0x05, 0x88, 0x07, 0xb8, 0x00, 0x1f, 0x2f, 0x73, 0x2f, 0xff, - 0x3f, 0xa5, 0x10, 0x16, 0x50, 0x7f, 0x3f, 0x96, 0x28, 0x10, 0x84, 0xc6, - 0x59, 0x06, 0x98, 0x17, 0x44, 0xc5, 0xbc, 0xc0, 0xd5, 0x06, 0x18, 0x0d, - 0x0f, 0x93, 0x7f, 0x10, 0x2f, 0xfb, 0x41, 0x2f, 0xf5, 0x3c, 0x05, 0x68, - 0x07, 0x92, 0x10, 0x17, 0xf4, 0xff, 0x04, 0x03, 0x28, 0x0e, 0x02, 0x04, - 0x40, 0x06, 0x04, 0x00, 0x04, 0x04, 0x04, 0x91, 0x12, 0x4d, 0x41, 0x00, - 0x00, 0x00, 0x06, 0xa9, 0xc1, 0x30, 0xe3, 0x30, 0xf3, 0x00, 0x30, 0xc7, - 0x30, 0xa3, 0x30, 0xfc, 0x30, 0xac, 0x2a, 0x30, 0xeb, 0x06, 0x08, 0x1f, - 0x43, 0x2f, 0xab, 0x61, 0x4f, 0xb3, 0x2b, 0x2c, 0x01, 0x67, 0x2f, 0xb3, - 0x72, 0x05, 0x6f, 0xa7, 0x00, 0x10, 0x7f, 0x69, 0x00, 0x80, 0x10, 0x0e, - 0x30, 0x7f, 0x0c, 0x66, 0xea, 0x8f, 0xa0, 0x52, 0x14, 0x00, 0x5c, 0x2d, - 0x4e, 0x2e, 0x59, 0xf4, 0x76, 0x96, 0x10, 0x8f, 0x3a, 0x53, 0x05, 0xdf, - 0xaf, 0x2c, 0xcc, 0x14, 0xb5, 0x0d, 0x00, 0xac, 0x74, 0xb9, 0x06, 0x78, - 0x1b, 0x0e, 0xf2, 0xff, 0x27, 0x28, 0x13, 0x01, 0x3d, 0x04, 0x34, 0x04, - 0x38, 0x04, 0x33, 0x28, 0x1d, 0x1c, 0x40, 0x04, 0x45, 0x05, 0xe8, 0x1f, - 0x07, 0x94, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x05, 0x05, 0x12, 0x05, 0x05, - 0x06, 0x30, 0x04, 0x05, 0x20, 0x40, 0x05, 0xdb, 0x00, 0x15, 0x9a, 0x36, - 0x00, 0x00, 0x07, 0xa9, 0xc0, 0x00, 0x30, 0xc9, 0x30, 0xe9, 0x30, 0xca, - 0x53, 0x73, 0x20, 0x30, 0xca, 0x48, 0x17, 0xfb, 0x30, 0xa2, 0x30, 0xd9, - 0x00, 0x30, 0xea, 0x30, 0x23, 0x90, 0xa6, 0x90, 0xf4, 0x06, 0x76, 0x44, - 0x8f, 0x30, 0x57, 0x04, 0xed, 0x2f, 0x2f, 0xab, 0x64, 0x88, 0x28, 0x0d, - 0x61, 0x00, 0x20, 0x68, 0x1f, 0x20, 0x00, 0x4e, 0xc4, 0x2f, 0xbf, 0x58, - 0x23, 0x20, 0x00, 0x48, 0x2f, 0xcb, 0x76, 0x00, 0x18, 0x65, 0x00, 0x6c, - 0x27, 0xb7, 0x04, 0xf0, 0x7f, 0x65, 0x00, 0x74, 0xdd, 0x05, 0xe0, 0x7d, - 0xd0, 0xff, 0x75, 0x07, 0x00, 0xff, 0x05, 0xf0, 0xfd, 0xd1, 0xff, 0x79, - 0x06, 0x20, 0x7f, 0x00, 0xbe, 0x8f, 0xb7, 0x5f, 0xc9, 0x62, 0x8c, 0x54, - 0x20, 0xb3, 0x7e, 0x38, 0x1d, 0xc8, 0x54, 0xf4, 0x7e, 0x29, 0x40, 0x52, - 0x05, 0xb8, 0x23, 0xe4, 0xb2, 0xdc, 0xb4, 0x7c, 0xb7, 0x20, 0x98, 0xb0, - 0x38, 0x1b, 0x58, 0xd5, 0xa8, 0xbc, 0xac, 0x80, 0x28, 0x21, 0xf0, 0xc5, - 0x29, 0xbc, 0xc1, 0xc9, 0x60, 0x6d, 0xd5, 0x05, 0x38, 0x29, 0xd2, 0xff, - 0x6e, 0x06, 0xc2, 0xff, 0x06, 0x32, 0x7f, 0x14, 0x28, 0x17, 0x41, 0x34, - 0x28, 0x0f, 0x30, 0x04, 0x20, 0x00, 0x38, 0x20, 0x03, 0x62, 0x1d, 0x28, - 0x27, 0x58, 0x21, 0x2d, 0x00, 0x25, 0x28, 0x33, 0x32, 0x0e, 0x04, 0x35, - 0x04, 0x3b, 0x28, 0x35, 0x0d, 0x34, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x06, - 0x03, 0x07, 0x07, 0x07, 0x08, 0x07, 0x06, 0x30, 0x06, 0x20, 0x05, 0x00, - 0x06, 0x06, 0x69, 0x0e, 0xec, 0x33, 0x00, 0x00, 0x01, 0x08, 0xa9, 0xb0, - 0x30, 0xb8, 0x30, 0xe3, 0x28, 0x19, 0x02, 0xfc, 0x30, 0xc8, 0x30, 0xde, - 0x5d, 0x06, 0x1c, 0xb1, 0x47, 0xa3, 0x27, 0x0d, 0x6a, 0x4f, 0xa7, 0x01, - 0x01, 0x74, 0x06, 0x2d, 0x30, 0x90, 0x7f, 0x60, 0x61, 0x28, 0x15, 0x10, - 0x0e, 0x10, 0x7f, 0xe4, 0x53, 0x09, 0x54, 0xc9, 0x04, 0x62, 0x79, 0x72, - 0xa6, 0x90, 0x06, 0x3f, 0xad, 0x00, 0x00, 0x00, 0x6c, 0xad, 0x90, 0xc7, - 0x7c, 0xb7, 0xb8, 0xd2, 0x31, 0x20, 0x00, 0x05, 0x38, 0x05, 0x10, 0x00, - 0x12, 0xff, 0x13, 0x04, 0x43, 0x28, 0x17, 0x47, 0x36, 0x48, 0x09, 0x30, - 0x04, 0x42, 0x04, 0x87, 0xff, 0x09, 0x14, 0xff, 0x10, 0x0e, 0x50, 0x7f, - 0x01, 0x07, 0x0b, 0x0b, 0x0b, 0x0c, 0x0b, 0x07, 0x20, 0x06, 0x41, 0x06, - 0x20, 0x05, 0x07, 0x07, 0x84, 0x10, 0xaa, 0x28, 0x17, 0x01, 0x09, 0xa9, - 0xcf, 0x30, 0xea, 0x30, 0xe4, 0x28, 0x15, 0x74, 0xca, 0x28, 0x19, 0x06, - 0x38, 0x17, 0x3f, 0x91, 0x72, 0x2e, 0x29, 0x01, 0x01, 0x78, 0x6e, 0x2f, - 0xb9, 0x06, 0x90, 0x7f, 0x3b, 0xab, 0x10, 0x0e, 0x30, 0x7f, 0xc8, 0x54, - 0xcc, 0x04, 0x91, 0x9a, 0x4e, 0xb3, 0x7e, 0x06, 0x78, 0x17, 0x58, 0xd5, - 0x03, 0xac, 0xb9, 0x44, 0xc5, 0x98, 0xb0, 0x06, 0x78, 0x17, 0x0e, 0xf2, - 0xff, 0x41, 0x25, 0x48, 0x11, 0x4c, 0x04, 0x4f, 0x04, 0x3d, 0x28, 0x1b, - 0xc0, 0x0e, 0x94, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x08, 0x0c, 0x0c, 0x0c, - 0x0d, 0x0c, 0x50, 0x08, 0x20, 0x06, 0x1e, 0x20, 0x05, 0x08, 0x08, 0xda, - 0x15, 0x00, 0x99, 0x36, 0x00, 0x00, 0x0a, 0xa9, 0xd2, 0x30, 0x40, 0xde, - 0x28, 0x15, 0xc1, 0x30, 0xe3, 0x30, 0xeb, 0x30, 0x01, 0xfb, 0x30, 0xd7, - 0x30, 0xe9, 0x30, 0xc7, 0x28, 0x25, 0x10, 0xb7, 0x30, 0xe5, 0x05, 0x68, - 0x25, 0x48, 0x00, 0x69, 0x00, 0x44, 0x6d, 0x2f, 0xaf, 0x63, 0x00, 0x68, - 0x2f, 0xb5, 0x6c, 0x00, 0x10, 0x20, 0x00, 0x50, 0x4f, 0xbb, 0x64, 0x00, - 0x65, 0x00, 0x60, 0x73, 0x20, 0x13, 0x10, 0x14, 0xf0, 0x7f, 0x9c, 0x55, - 0x6c, 0x9a, 0x55, 0x10, 0x50, 0x14, 0x5c, 0x06, 0x78, 0x17, 0x88, 0xd7, - 0xc8, 0xb9, 0x00, 0x30, 0xcc, 0x04, 0xd5, 0x7c, 0xb7, 0x70, 0xb3, 0x30, - 0xdc, 0xc2, 0x06, 0x18, 0x1d, 0x0e, 0xf3, 0x7f, 0x25, 0x04, 0x38, 0x04, - 0x50, 0x3c, 0x28, 0x1b, 0x47, 0x28, 0x1f, 0x3b, 0x04, 0x2d, 0x00, 0x40, - 0x1f, 0x28, 0x25, 0x30, 0x04, 0x34, 0x04, 0x35, 0x04, 0x60, 0x48, 0x05, - 0x48, 0x25, 0x10, 0x16, 0xf4, 0xff, 0x09, 0x0d, 0x0d, 0x0d, 0x0e, 0x28, - 0x0d, 0x09, 0x20, 0x06, 0x1f, 0x20, 0x05, 0x09, 0x09, 0x1d, 0x22, 0x16, - 0xdf, 0x28, 0x17, 0x0c, 0xa9, 0xb1, 0x28, 0x15, 0xe9, 0xed, 0x28, 0x0d, - 0x05, 0x58, 0x05, 0x00, 0x1f, 0xff, 0x4b, 0x27, 0xff, 0x38, 0x07, 0x6c, - 0x06, 0x4f, 0xad, 0x81, 0x10, 0x0f, 0x10, 0x7f, 0x80, 0x55, 0xc9, 0x62, - 0xc9, 0x62, 0x06, 0x78, 0x15, 0x83, 0x2f, 0xff, 0xcf, 0x84, 0xb7, 0x7c, - 0xb7, 0x06, 0x18, 0x0f, 0x0f, 0x73, 0x7f, 0x6c, 0x1a, 0x28, 0x01, 0x38, - 0x09, 0x3b, 0x28, 0x1b, 0x10, 0x1e, 0x34, 0xff, 0x0a, 0x10, 0x04, 0x11, - 0x10, 0x11, 0x11, 0x0a, 0x20, 0x06, 0x0d, 0x10, 0x01, 0x0a, 0x0a, 0x0a, - 0x0a, 0x08, 0x06, 0xb2, 0x28, 0x17, 0x00, 0x0d, 0xa9, 0xe9, 0x30, 0xaf, - 0x30, 0xb7, 0x30, 0x01, 0xe3, 0x30, 0xc9, 0x30, 0xa6, 0x30, 0xa3, 0x28, - 0x23, 0x2b, 0xd7, 0x30, 0x05, 0xdd, 0x37, 0x4c, 0x2f, 0xab, 0x6b, 0x4f, - 0x99, 0x3f, 0xa3, 0x45, 0x77, 0x2f, 0xa5, 0x65, 0x00, 0x70, 0x10, 0x05, - 0xe0, 0x7f, 0x63, 0x2f, 0xad, 0x8c, 0x3f, 0xa1, 0x69, 0x00, 0x76, 0x2f, - 0xa5, 0x0d, 0xd1, 0xff, 0xc9, 0x62, 0x00, 0x4b, 0x51, 0x99, 0x6c, 0xa4, - 0x7f, 0x9b, 0x5c, 0x00, 0x2d, 0x4e, 0x2e, 0x59, 0xf4, 0x76, 0x96, 0x8f, - 0x20, 0x3a, 0x53, 0x05, 0xbf, 0xb1, 0x7d, 0xb7, 0xe4, 0xc0, 0xdc, 0x06, - 0xb4, 0x04, 0xc7, 0x04, 0xd5, 0x06, 0x5b, 0x97, 0x00, 0x11, 0xff, 0x6e, - 0x8d, 0x06, 0x03, 0xff, 0x71, 0x00, 0x75, 0x2f, 0x1d, 0x52, 0x7f, 0x61, - 0x2f, 0x25, 0xa2, 0x05, 0xbc, 0xa1, 0x1b, 0x28, 0x13, 0x3a, 0x04, 0x48, - 0x28, 0x19, 0x34, 0x03, 0x04, 0x32, 0x04, 0x38, 0x04, 0x3f, 0x05, 0xe8, - 0x1d, 0x10, 0x07, 0x34, 0xff, 0x80, 0x0e, 0xb6, 0x7f, 0x0b, 0x11, 0x12, - 0x11, 0x12, 0x12, 0x0b, 0x80, 0x20, 0x06, 0x0e, 0x11, 0x0b, 0x0b, 0x0b, - 0x0b, 0x83, 0x00, 0x07, 0xa3, 0x33, 0x00, 0x00, 0x0e, 0xa9, 0xde, 0x28, - 0x30, 0xcf, 0x28, 0x0d, 0xe9, 0x28, 0x11, 0xb7, 0x30, 0xe5, 0x25, 0x30, - 0xc8, 0x20, 0x09, 0xde, 0x5d, 0x05, 0xbf, 0xb8, 0x4d, 0x2f, 0xab, 0x06, - 0x68, 0x00, 0x01, 0x01, 0x72, 0x20, 0x03, 0x38, 0x1d, 0x74, 0xd8, 0x4f, - 0xbd, 0x05, 0xf0, 0x7f, 0x61, 0x4f, 0xb3, 0x10, 0x0e, 0x30, 0x7f, 0x6c, - 0x9a, 0xc8, 0x00, 0x54, 0xc9, 0x62, 0xbd, 0x65, 0x79, 0x72, 0xc9, 0x10, - 0x62, 0xa6, 0x90, 0x06, 0x1f, 0xb3, 0xc8, 0xb9, 0x58, 0xd5, 0x00, 0x7c, - 0xb7, 0x88, 0xc2, 0xb8, 0xd2, 0x7c, 0xb7, 0x0d, 0x20, 0x00, 0xfc, 0xc8, - 0x05, 0xff, 0xb4, 0x0e, 0xf2, 0xff, 0x1c, 0x28, 0x17, 0x51, 0x45, 0x28, - 0x1b, 0x40, 0x28, 0x1f, 0x48, 0x04, 0x42, 0x40, 0x07, 0xc0, 0x0e, 0x14, - 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x0c, 0x13, 0x14, 0x13, 0x14, 0x14, 0x40, - 0x0c, 0x20, 0x06, 0x11, 0x13, 0x0c, 0x0c, 0x0c, 0x0c, 0x14, 0x7e, 0x0d, - 0xc9, 0x28, 0x17, 0x0f, 0x28, 0x17, 0xcb, 0x30, 0x1a, 0xd7, 0x30, 0xeb, - 0x05, 0xe8, 0x0d, 0xd8, 0x17, 0x6e, 0x2e, 0xa9, 0x70, 0xa0, 0x2c, 0x33, - 0x72, 0x10, 0x16, 0x20, 0x7f, 0xfc, 0x66, 0x3c, 0x5c, 0x6e, 0x18, 0x66, - 0x14, 0x5c, 0x06, 0x38, 0x13, 0x58, 0x17, 0xc8, 0xb2, 0x78, 0x1c, 0xd4, - 0x74, 0xb9, 0x06, 0x38, 0x13, 0x0f, 0x33, 0x7f, 0x38, 0x17, 0x3d, 0x04, - 0x06, 0x38, 0x04, 0x3f, 0x04, 0x43, 0x28, 0x1b, 0x10, 0x1e, 0x14, 0xff, - 0x0d, 0x02, 0x14, 0x15, 0x14, 0x15, 0x15, 0x0d, 0x20, 0x06, 0x10, 0x00, - 0x14, 0x0d, 0x0d, 0x0d, 0x0d, 0xa5, 0x11, 0xcf, 0x00, 0x42, 0x00, 0x00, - 0x10, 0xa9, 0xe1, 0x30, 0xac, 0x08, 0x30, 0xe9, 0x30, 0xe4, 0x06, 0xa8, - 0x17, 0x65, 0x00, 0x67, 0xac, 0x4b, 0x31, 0x6c, 0x2f, 0xb9, 0x79, 0x05, - 0xcf, 0xab, 0xb0, 0x7f, 0x61, 0x00, 0x80, 0x10, 0x0e, 0x50, 0x7f, 0x85, - 0x68, 0xa0, 0x52, 0xc9, 0x62, 0x9a, 0x40, 0x4e, 0x06, 0x78, 0x17, 0x54, - 0xba, 0x08, 0xac, 0x7c, 0xb7, 0x30, 0x7c, 0xc5, 0x06, 0x98, 0x17, 0x0e, - 0xd2, 0xff, 0x1c, 0x04, 0x35, 0x04, 0x15, 0x33, 0x04, 0x45, 0x28, 0x1d, - 0x3b, 0x28, 0x21, 0x4f, 0x06, 0x08, 0x19, 0xc0, 0x07, 0x74, 0xff, 0x10, - 0x0e, 0x70, 0x7f, 0x0e, 0x15, 0x16, 0x15, 0x16, 0x16, 0x40, 0x0e, 0x20, - 0x06, 0x12, 0x15, 0x0e, 0x0e, 0x0e, 0x0e, 0x00, 0x2e, 0x12, 0x56, 0x41, - 0x00, 0x00, 0x11, 0xa9, 0x00, 0xab, 0x30, 0xeb, 0x30, 0xca, 0x30, 0xfc, - 0x30, 0x15, 0xbf, 0x30, 0xab, 0x06, 0x48, 0x1b, 0x4b, 0x2f, 0xaf, 0x72, - 0x2f, 0xb1, 0x16, 0x01, 0x01, 0x74, 0x2f, 0xb9, 0x6b, 0x06, 0x08, 0x17, - 0x70, 0x7f, 0x61, 0x40, 0x00, 0x10, 0x0e, 0x50, 0x7f, 0x61, 0x53, 0xb3, - 0x7e, 0x54, 0x58, 0x20, 0x4b, 0x51, 0x06, 0x78, 0x17, 0x74, 0xce, 0x74, - 0xb9, 0x98, 0x06, 0xb0, 0xc0, 0xd0, 0x74, 0xce, 0x06, 0x58, 0x19, 0x0e, - 0xf2, 0xff, 0x1a, 0x8a, 0x28, 0x11, 0x40, 0x04, 0x3d, 0x28, 0x17, 0x42, - 0x28, 0x1b, 0x3a, 0xe0, 0x28, 0x1f, 0x0e, 0x54, 0xff, 0x10, 0x0e, 0x70, - 0x7f, 0x0f, 0x0f, 0x10, 0x0f, 0x10, 0x28, 0x10, 0x0f, 0x20, 0x06, 0x0c, - 0x20, 0x04, 0x0f, 0x0f, 0x3b, 0x01, 0x09, 0x2b, 0x37, 0x00, 0x00, 0x12, - 0xa9, 0x38, 0x13, 0x41, 0xac, 0x28, 0x17, 0xe9, 0x30, 0xf3, 0x30, 0xc9, - 0x06, 0x28, 0x19, 0x51, 0x4e, 0x2b, 0x29, 0x67, 0x6b, 0x2d, 0x6e, 0x00, - 0x64, 0x06, 0x0d, 0xb4, 0x58, 0x4e, 0x2f, 0xa9, 0x67, 0x6f, 0xad, 0x10, - 0x0e, 0x30, 0x7f, 0xa3, 0x90, 0xa0, 0x20, 0x52, 0x70, 0x06, 0x88, 0x15, - 0x00, 0x00, 0x98, 0xb0, 0x08, 0x06, 0xac, 0x9c, 0xb7, 0xdc, 0xb4, 0x06, - 0x58, 0x15, 0x0f, 0x12, 0xff, 0x1d, 0xa2, 0x28, 0x17, 0x33, 0x28, 0x1b, - 0x3b, 0x04, 0x35, 0x28, 0x1d, 0x34, 0xe0, 0x05, 0xe8, 0x15, 0x07, 0x34, - 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x10, 0x17, 0x18, 0x17, 0x18, 0x20, 0x18, - 0x10, 0x20, 0x06, 0x14, 0x17, 0x10, 0x10, 0x10, 0x00, 0x10, 0x40, 0x12, - 0xed, 0x42, 0x00, 0x00, 0x13, 0x00, 0xa9, 0xaa, 0x30, 0xea, 0x30, 0xc3, - 0x30, 0xb5, 0xd0, 0x06, 0x28, 0x11, 0x5f, 0xff, 0x4f, 0x28, 0x0b, 0x69, - 0x00, 0x73, 0x00, 0x60, 0x68, 0x06, 0x0f, 0xa9, 0x10, 0x0f, 0x50, 0x7f, - 0x65, 0x59, 0xcc, 0x91, 0x28, 0x40, 0x84, 0x06, 0x98, 0x17, 0x24, 0xc6, - 0xac, 0xb9, 0xac, 0xc0, 0xc0, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x1e, - 0x04, 0x40, 0x04, 0x38, 0x04, 0x58, 0x41, 0x20, 0x01, 0x30, 0x06, 0x08, - 0x13, 0x10, 0x17, 0x34, 0xff, 0x11, 0x18, 0x19, 0x08, 0x18, 0x19, 0x19, - 0x11, 0x20, 0x06, 0x15, 0x18, 0x11, 0x00, 0x11, 0x11, 0x11, 0x63, 0x0e, - 0x09, 0x3d, 0x00, 0x00, 0x00, 0x14, 0xa9, 0xdd, 0x30, 0xf3, 0x30, 0xc7, - 0x02, 0x30, 0xa3, 0x30, 0xb7, 0x30, 0xa7, 0x28, 0x21, 0xfc, 0x44, 0x30, - 0x05, 0xff, 0xb0, 0x50, 0x00, 0x75, 0x2f, 0xa5, 0x75, 0x00, 0x45, 0x63, - 0x28, 0x19, 0x65, 0x00, 0x72, 0x20, 0x01, 0x79, 0x05, 0xe0, 0x7f, 0x57, - 0x6f, 0x4f, 0xa7, 0x69, 0x40, 0x81, 0xe9, 0x06, 0x20, 0x7f, 0x07, 0xb0, - 0xff, 0x06, 0x11, 0x81, 0x80, 0x06, 0xf1, 0xff, 0x2c, 0x67, 0x30, 0x57, - 0xbb, 0x6c, 0xcc, 0x00, 0x91, 0x2d, 0x4e, 0x2e, 0x59, 0xf4, 0x76, 0x96, - 0x10, 0x8f, 0x3a, 0x53, 0x05, 0xdf, 0xb5, 0x01, 0xd4, 0x14, 0xb5, 0x0e, - 0x70, 0xc1, 0xac, 0xb9, 0x06, 0x78, 0x97, 0x07, 0x11, 0xff, 0x06, 0xd2, - 0x7f, 0x1f, 0x02, 0x04, 0x3e, 0x04, 0x3d, 0x04, 0x34, 0x28, 0x1b, 0x48, - 0x38, 0x04, 0x35, 0x48, 0x23, 0x0d, 0xf4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, - 0x12, 0x19, 0x1b, 0x00, 0x19, 0x1a, 0x1a, 0x12, 0x12, 0x19, 0x1a, 0x17, - 0x00, 0x19, 0x12, 0x12, 0x12, 0x12, 0x7b, 0x08, 0xc4, 0x02, 0x38, 0x00, - 0x00, 0x15, 0xa9, 0xd1, 0x28, 0x17, 0xb8, 0x21, 0x30, 0xe3, 0x28, 0x11, - 0xd6, 0x30, 0xde, 0x5d, 0x06, 0x34, 0x97, 0x55, 0x75, 0x27, 0x97, 0x6a, - 0x2f, 0xad, 0x62, 0x06, 0x65, 0x17, 0x65, 0x06, 0xe0, 0x7f, 0xd0, 0x06, - 0xf0, 0xff, 0x07, 0x30, 0x7f, 0x79, 0x06, 0x81, 0xff, 0xc1, 0x65, 0x6e, - 0x90, 0x08, 0x6e, 0x66, 0xa6, 0x90, 0x06, 0x77, 0x97, 0x80, 0xd3, 0x90, - 0x01, 0xc7, 0x0c, 0xbe, 0x20, 0x00, 0xfc, 0xc8, 0x06, 0x78, 0x17, 0xb0, - 0x0e, 0xd2, 0x7f, 0x1f, 0x28, 0x0d, 0x38, 0x17, 0x36, 0x04, 0x30, 0x04, - 0x70, 0x31, 0x05, 0xe8, 0x13, 0x0f, 0x93, 0xff, 0x10, 0x06, 0x95, 0x7f, - 0x13, 0x1a, 0x1a, 0x1a, 0x00, 0x1b, 0x1b, 0x13, 0x13, 0x1a, 0x1b, 0x16, - 0x1a, 0x00, 0x13, 0x13, 0x13, 0x13, 0xdb, 0x15, 0x9a, 0x36, 0x06, 0x00, - 0x00, 0x16, 0xa9, 0xe9, 0x28, 0x11, 0x38, 0x17, 0xb9, 0x28, 0x30, 0xbf, - 0x28, 0x1b, 0xf3, 0x06, 0x08, 0x1b, 0x52, 0x00, 0x01, 0x44, 0x01, 0x38, - 0x15, 0x73, 0x00, 0x74, 0x2f, 0xaf, 0x01, 0x01, 0x5b, 0x6e, 0x05, 0xed, - 0x38, 0x52, 0x28, 0x91, 0x90, 0x7f, 0x61, 0x2f, 0x3b, 0x10, 0x06, 0x90, - 0x7f, 0x40, 0xe1, 0x06, 0x01, 0x7d, 0x00, 0x00, 0xc9, 0x62, 0x3e, 0x8d, - 0x08, 0xaf, 0x65, 0x66, 0x57, 0x06, 0x78, 0x19, 0x7c, 0xb7, 0x90, 0x06, - 0xc7, 0xa4, 0xc2, 0xc4, 0xd0, 0x06, 0x78, 0x19, 0x07, 0xb2, 0xff, 0xe3, - 0x2c, 0x00, 0x6f, 0x06, 0x0c, 0x98, 0x20, 0x28, 0x0f, 0x58, 0x15, 0x41, - 0x04, 0x17, 0x42, 0x04, 0x45, 0x28, 0x1d, 0x3d, 0x05, 0xc8, 0x1d, 0x07, - 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x01, 0x14, 0x1b, 0x1c, 0x1b, 0x1c, - 0x1c, 0x14, 0x20, 0x06, 0x00, 0x18, 0x1b, 0x14, 0x14, 0x14, 0x14, 0x24, - 0x13, 0x00, 0xea, 0x35, 0x00, 0x00, 0x17, 0xa9, 0xbf, 0x30, 0x01, 0xdf, - 0x30, 0xeb, 0x30, 0xfb, 0x30, 0xca, 0x28, 0x1f, 0x14, 0xc9, 0x30, 0xa5, - 0x06, 0x08, 0x17, 0x54, 0x2f, 0xa9, 0x6d, 0x00, 0x01, 0x69, 0x00, 0x6c, - 0x00, 0x20, 0x00, 0x4e, 0x2f, 0xb5, 0x60, 0x64, 0x2f, 0x3f, 0x10, 0x15, - 0xb0, 0x7f, 0xf0, 0x6c, 0x73, 0x7c, 0x14, 0x04, 0x5c, 0xb3, 0x7e, 0xb7, - 0x5f, 0x06, 0x58, 0x19, 0xc0, 0xd0, 0x03, 0x00, 0xbc, 0x98, 0xb0, 0x50, - 0xb4, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x40, 0x22, 0x28, 0x17, 0x3c, - 0x04, 0x38, 0x04, 0x3b, 0x04, 0x16, 0x2d, 0x00, 0x1d, 0x48, 0x23, 0x43, - 0x05, 0xc8, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x15, 0x02, 0x1d, 0x1e, 0x1d, - 0x1e, 0x1e, 0x15, 0x20, 0x06, 0x1a, 0x00, 0x1d, 0x15, 0x15, 0x15, 0x15, - 0x4d, 0x09, 0x17, 0x00, 0x39, 0x00, 0x00, 0x18, 0xa9, 0xc8, 0x30, 0xea, - 0x0d, 0x30, 0xd7, 0x30, 0xe9, 0x06, 0x08, 0x0f, 0x98, 0x17, 0x72, 0x28, - 0x15, 0x58, 0x70, 0x28, 0x0d, 0x72, 0x2f, 0xb9, 0x10, 0x16, 0x10, 0x7f, - 0x79, 0x72, 0xcc, 0x04, 0x91, 0x6e, 0x66, 0xc9, 0x62, 0x06, 0x58, 0x15, - 0x00, 0x00, 0x00, 0xb8, 0xd2, 0xac, 0xb9, 0x04, 0xd5, 0x7c, 0xb7, 0xc5, - 0x06, 0x98, 0x17, 0x0e, 0xd3, 0x7f, 0x22, 0x04, 0x40, 0x28, 0x15, 0x3f, - 0x28, 0x0d, 0x60, 0x40, 0x28, 0x21, 0x10, 0x1e, 0x14, 0xff, 0x16, 0x1e, - 0x1f, 0x1e, 0x1f, 0x20, 0x1f, 0x16, 0x20, 0x06, 0x1b, 0x1e, 0x16, 0x16, - 0x16, 0x00, 0x16, 0xf3, 0x10, 0xe8, 0x40, 0x00, 0x00, 0x19, 0x00, 0xa9, - 0x7f, 0x89, 0xd9, 0x30, 0xf3, 0x30, 0xac, 0x20, 0x30, 0xeb, 0x06, 0x68, - 0x19, 0x57, 0x00, 0x65, 0x00, 0x73, 0x28, 0x00, 0x74, 0x2f, 0xad, 0x42, - 0x20, 0x09, 0x6e, 0x00, 0x67, 0xb0, 0x2f, 0xbf, 0x6c, 0x05, 0xaf, 0xb1, - 0xb0, 0x75, 0x65, 0x00, 0x2d, 0x00, 0x16, 0x4f, 0x00, 0x63, 0x20, 0x01, - 0x69, 0x2f, 0xb7, 0x30, 0x8d, 0x74, 0xd5, 0x05, 0x00, 0x8d, 0x70, 0xff, - 0x62, 0xc0, 0x87, 0x6e, 0x06, 0x40, 0xff, 0x61, 0x2f, 0xb3, 0xb0, 0x00, - 0x30, 0xff, 0x65, 0x06, 0xe0, 0x7f, 0x04, 0xbf, 0xc7, 0x7f, 0x89, 0x5f, - 0x5b, 0x20, 0xa0, 0x52, 0x06, 0x98, 0x17, 0x1c, 0xc1, 0xb5, 0xbc, 0xe8, - 0x6f, 0xac, 0x06, 0x78, 0x15, 0x93, 0x7f, 0x2d, 0xe3, 0x09, 0x05, 0x72, - 0x81, 0x00, 0x32, 0x7f, 0x05, 0x93, 0x7d, 0x14, 0x00, 0x00, 0x17, 0x28, - 0x0d, 0x3f, 0x28, 0x11, 0x34, 0x04, 0x40, 0x3d, 0x28, 0x17, 0x4f, 0x04, - 0x20, 0x00, 0x11, 0x04, 0x55, 0x35, 0x20, 0x0b, 0x33, 0x28, 0x25, 0x3b, - 0x28, 0x31, 0x4f, 0x04, 0xe8, 0x2b, 0xc0, 0x06, 0xf4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x17, 0x21, 0x03, 0x21, 0x04, 0x03, 0x40, 0x17, 0x20, 0x06, - 0x0b, 0x21, 0x17, 0x17, 0x17, 0x17, 0x00, 0x0c, 0x10, 0xd7, 0x3e, 0x00, - 0x00, 0x1a, 0xa9, 0x01, 0xb7, 0x30, 0xc3, 0x30, 0xad, 0x30, 0xe0, 0x06, - 0x68, 0x15, 0x14, 0x00, 0x00, 0x53, 0x2f, 0xad, 0x6b, 0x20, 0x01, 0x69, - 0x00, 0x43, 0x6d, 0x10, 0x16, 0x40, 0x7f, 0x21, 0x95, 0xd1, 0x91, 0x06, - 0x78, 0x13, 0x3f, 0xff, 0x0e, 0xdc, 0xc2, 0xb4, 0xd0, 0x06, 0x98, 0x15, - 0x0f, 0x21, 0xff, 0x27, 0xfb, 0x3a, 0x8c, 0x20, 0x01, 0x38, 0x04, 0x3c, - 0x04, 0xe8, 0x01, 0x10, 0x18, 0x54, 0xff, 0x18, 0x1c, 0x04, 0x1d, 0x1c, - 0x1d, 0x1d, 0x18, 0x20, 0x06, 0x19, 0x1c, 0x00, 0x18, 0x18, 0x18, 0x18, - 0x6f, 0x13, 0x04, 0x3f, 0x81, 0x2c, 0xad, 0xa9, 0xdf, 0x30, 0xbe, 0x30, - 0xe9, 0x06, 0xa8, 0x17, 0x41, 0x4d, 0x2f, 0x9b, 0x7a, 0x00, 0x6f, 0x00, - 0x72, 0x2f, 0xb1, 0xc0, 0x06, 0x38, 0x19, 0x10, 0x0e, 0xf0, 0x7f, 0x73, - 0x7c, 0x50, 0x4f, 0xc9, 0x62, 0x20, 0xc6, 0x59, 0x06, 0x78, 0x1b, 0xf8, - 0xbb, 0x70, 0xc8, 0x8c, 0x68, 0xb7, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, - 0x1c, 0x28, 0x17, 0x37, 0x04, 0x3e, 0x0c, 0x04, 0x40, 0x04, 0x30, 0x06, - 0x48, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x19, 0x16, 0x04, 0x17, 0x16, 0x17, - 0x17, 0x19, 0x20, 0x06, 0x13, 0x16, 0x00, 0x19, 0x19, 0x19, 0x19, 0xe0, - 0x10, 0xee, 0x41, 0x00, 0x00, 0x00, 0x1d, 0xa9, 0xc0, 0x30, 0xde, 0x30, - 0x00, 0xf3, 0x30, 0xfb, 0x30, 0xc7, 0x30, 0xa3, 0x30, 0x00, 0xa6, 0x30, - 0xf4, 0x76, 0x44, 0x8f, 0x30, 0x57, 0xa0, 0x05, 0xbf, 0xb8, 0x44, 0x48, - 0x0f, 0x61, 0x00, 0x6e, 0x00, 0x20, 0xaa, 0x40, 0x05, 0x64, 0x20, 0x07, - 0x44, 0x2f, 0xc3, 0x75, 0x06, 0x20, 0x7f, 0x65, 0x37, 0x00, 0x74, 0x05, - 0xe0, 0x7d, 0xd0, 0xff, 0x75, 0x07, 0x00, 0xff, 0x05, 0xf0, 0xfd, 0x71, - 0xff, 0x50, 0xe1, 0x41, 0xff, 0x79, 0x06, 0x20, 0x7f, 0xbe, 0x8f, 0xfc, - 0x66, 0x00, 0x8c, 0x54, 0x2c, 0x7b, 0x4c, 0x4e, 0x2d, 0x4e, 0x00, 0x2e, - 0x59, 0xf4, 0x76, 0x96, 0x8f, 0x3a, 0x53, 0x80, 0x05, 0xbf, 0xbb, 0xe4, - 0xb2, 0xcc, 0xb9, 0x14, 0xb5, 0xb0, 0x00, 0xc6, 0x20, 0x00, 0xf0, 0xc5, - 0x29, 0xbc, 0xc1, 0x1e, 0xc9, 0x60, 0xd5, 0x05, 0xd8, 0x21, 0xd2, 0xff, - 0x33, 0x85, 0x06, 0x32, 0xff, 0xe3, 0xd0, 0x2c, 0x19, 0x06, 0x52, 0x7f, - 0x14, 0x48, 0x0f, 0x30, 0x04, 0x3d, 0x04, 0x15, 0x20, 0x00, 0x38, 0x20, - 0x03, 0x14, 0x28, 0x27, 0x43, 0x05, 0xa8, 0x1f, 0xc0, 0x07, 0xb4, 0xff, - 0x10, 0x0e, 0x30, 0x7f, 0x1a, 0x08, 0x08, 0x08, 0x09, 0x08, 0x60, 0x1a, - 0x30, 0x06, 0x20, 0x05, 0x1a, 0x1a, 0x84, 0x0e, 0xcd, 0x00, 0x33, 0x00, - 0x00, 0x1e, 0xa9, 0xb4, 0x30, 0xa2, 0x1a, 0x30, 0xde, 0x5d, 0x06, 0x5d, - 0x2b, 0x3f, 0xff, 0x47, 0x2f, 0xab, 0x61, 0xc0, 0x06, 0x90, 0x7e, 0x10, - 0x0f, 0x00, 0x7f, 0x9c, 0x67, 0x3f, 0x96, 0xa6, 0x90, 0x81, 0x06, 0x92, - 0xff, 0xe0, 0xac, 0x44, 0xc5, 0x20, 0x00, 0x05, 0xd8, 0x0b, 0x8c, 0x0f, - 0xb3, 0x7f, 0x13, 0x04, 0x3e, 0x28, 0x19, 0x10, 0x1e, 0x94, 0xff, 0x1b, - 0x0a, 0x05, 0x0a, 0x0a, 0x0b, 0x0a, 0x1b, 0x20, 0x06, 0x05, 0x20, 0x05, - 0x00, 0x1b, 0x1b, 0x02, 0x0b, 0x80, 0x34, 0x00, 0x00, 0x00, 0x1f, 0xa9, - 0xd3, 0x30, 0xcf, 0x30, 0xfc, 0x30, 0x50, 0xeb, 0x06, 0x88, 0x1b, 0x42, - 0x2f, 0x9d, 0x68, 0x00, 0x01, 0x01, 0x64, 0x72, 0x06, 0x68, 0x9a, 0x50, - 0x7f, 0x61, 0x00, 0x10, 0x0e, 0x70, 0x7f, 0xd4, 0x6b, 0x08, 0xc8, 0x54, - 0x14, 0x5c, 0x06, 0x98, 0x19, 0x44, 0xbe, 0x58, 0x18, 0xd5, 0x74, 0xb9, - 0x06, 0x98, 0x19, 0x0e, 0xf2, 0xff, 0x11, 0x04, 0x38, 0x2e, 0x04, 0x45, - 0x28, 0x19, 0x40, 0x06, 0x68, 0x1b, 0x07, 0x54, 0xff, 0x10, 0x0e, 0x90, - 0x7f, 0x1c, 0x03, 0x04, 0x04, 0x04, 0x05, 0x04, 0x1c, 0x30, 0x06, 0x20, - 0x05, 0x00, 0x1c, 0x1c, 0x34, 0x12, 0x87, 0x3c, 0x00, 0x00, 0x00, 0x20, - 0xa9, 0xde, 0x30, 0xc7, 0x30, 0xa3, 0x30, 0x01, 0xe4, 0x30, 0xfb, 0x30, - 0xd7, 0x30, 0xe9, 0x20, 0x0b, 0x05, 0xfc, 0x30, 0xb7, 0x30, 0xe5, 0x05, - 0xa8, 0x25, 0x4d, 0x2f, 0xad, 0x51, 0x64, 0x28, 0x19, 0x79, 0x2f, 0xb5, - 0x20, 0x00, 0x50, 0x27, 0x9f, 0x8c, 0x30, 0x0f, 0x65, 0x00, 0x73, 0x28, - 0x2d, 0x10, 0x15, 0x30, 0x7f, 0x2d, 0x4e, 0x20, 0x2e, 0x59, 0x06, 0x98, - 0x15, 0x00, 0x00, 0xc8, 0xb9, 0x14, 0x00, 0xb5, 0x44, 0xc5, 0x04, 0xd5, - 0x7c, 0xb7, 0x70, 0x1a, 0xb3, 0xdc, 0xc2, 0x06, 0x18, 0x1f, 0x0e, 0xf3, - 0x7f, 0x1c, 0x28, 0x13, 0x34, 0x80, 0x28, 0x19, 0x4c, 0x04, 0x4f, 0x04, - 0x2d, 0x00, 0x1f, 0xc6, 0x28, 0x1f, 0x30, 0x0f, 0x35, 0x04, 0x48, 0x05, - 0x68, 0x27, 0x10, 0x16, 0xf4, 0xff, 0x1d, 0x02, 0x12, 0x13, 0x12, 0x13, - 0x13, 0x1d, 0x20, 0x06, 0x0f, 0x00, 0x12, 0x1d, 0x1d, 0x1d, 0x1d, 0x8b, - 0x10, 0x0a, 0x00, 0x37, 0x00, 0x00, 0x21, 0xa9, 0xa6, 0x30, 0xc3, 0x08, - 0x30, 0xbf, 0x30, 0xeb, 0x06, 0x88, 0x17, 0x55, 0x00, 0x74, 0xf0, 0x20, - 0x01, 0x3f, 0xaf, 0x06, 0x38, 0x15, 0x10, 0x0f, 0x10, 0x7f, 0x17, 0x53, - 0xb9, 0x65, 0x81, 0x06, 0xb8, 0x17, 0xb0, 0xc6, 0xc0, 0xd0, 0x74, 0xb9, - 0x06, 0x98, 0x17, 0x8b, 0x0e, 0xf3, 0x7f, 0x23, 0x04, 0x42, 0x20, 0x01, - 0x30, 0x28, 0x0f, 0x06, 0x38, 0x15, 0x80, 0x10, 0x17, 0x14, 0xff, 0x1e, - 0x1f, 0x20, 0x1f, 0x20, 0x20, 0x1e, 0x80, 0x20, 0x06, 0x1c, 0x1f, 0x1e, - 0x1e, 0x1e, 0x1e, 0x17, 0x00, 0x13, 0x8a, 0x39, 0x00, 0x00, 0x22, 0xa9, - 0xc1, 0x22, 0x30, 0xe3, 0x28, 0x19, 0xc6, 0x30, 0xa3, 0x28, 0x11, 0xb9, - 0x3a, 0x30, 0xac, 0x28, 0x21, 0x05, 0x98, 0x13, 0x3f, 0xff, 0x43, 0x2f, - 0xab, 0x68, 0xc1, 0x2f, 0xb3, 0x38, 0x1d, 0x2b, 0x01, 0x73, 0x00, 0x67, - 0x48, 0x23, 0xd8, 0x05, 0x78, 0x15, 0xd0, 0x7f, 0x69, 0x2f, 0xa5, 0x10, - 0x0d, 0xf0, 0x7f, 0xe5, 0x67, 0x82, 0x01, 0x84, 0xaf, 0x65, 0xa0, 0x52, - 0x14, 0x5c, 0x06, 0x58, 0x1d, 0x00, 0x28, 0xcc, 0xf0, 0xd2, 0xa4, 0xc2, - 0x00, 0xac, 0x31, 0x74, 0xb9, 0x06, 0x18, 0x13, 0x0f, 0x32, 0xff, 0x27, - 0x04, 0x45, 0x28, 0x15, 0x82, 0x38, 0x1b, 0x38, 0x04, 0x41, 0x04, 0x33, - 0x48, 0x21, 0x45, 0xe0, 0x05, 0x88, 0x15, 0x07, 0xd4, 0xff, 0x10, 0x0e, - 0x30, 0x7f, 0x1f, 0x06, 0x06, 0x06, 0x07, 0x28, 0x06, 0x1f, 0x20, 0x06, - 0x21, 0x20, 0x05, 0x1f, 0x1f, 0x19, 0x12, 0x0f, 0x0c, 0x3a, 0x2b, 0x2d, - 0xa9, 0xb8, 0x28, 0x17, 0xfc, 0x83, 0x28, 0x0d, 0xab, 0x30, 0xf3, 0x30, - 0xc9, 0x05, 0xe8, 0x13, 0x3f, 0xff, 0x45, 0x4a, 0x48, 0x15, 0x72, 0x00, - 0x6b, 0x48, 0x1d, 0x6e, 0x2f, 0xad, 0x81, 0x10, 0x15, 0xd0, 0x7f, 0x3e, - 0x8d, 0x4e, 0x57, 0xb7, 0x5f, 0x06, 0x58, 0x13, 0x80, 0x3f, 0xff, 0x90, - 0xc7, 0x74, 0xb9, 0x78, 0xce, 0xdc, 0x62, 0xb4, 0x06, 0x58, 0x15, 0x0f, - 0x13, 0x7f, 0x14, 0x04, 0x36, 0x48, 0x0b, 0x3a, 0x8c, 0x48, 0x1f, 0x3d, - 0x04, 0x34, 0x05, 0xa8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x20, 0x0e, 0x04, - 0x0f, 0x0e, 0x0f, 0x0f, 0x20, 0x20, 0x06, 0x0a, 0x0e, 0x00, 0x20, 0x20, - 0x20, 0x20, 0x9c, 0x10, 0xad, 0x3c, 0x00, 0x00, 0x00, 0x24, 0xa9, 0xa6, - 0x30, 0xc3, 0x30, 0x1b, 0xbf, 0x30, 0xe9, 0x28, 0x1b, 0x06, 0x58, 0x19, - 0x55, 0x4f, 0xa9, 0x3f, 0xa3, 0x60, 0x61, 0x06, 0x48, 0x1b, 0x10, 0x0e, - 0xf0, 0x7f, 0x4c, 0x4e, 0x54, 0x58, 0xc9, 0x40, 0x62, 0x06, 0x98, 0x1b, - 0xb0, 0xc6, 0xc0, 0xd0, 0x7c, 0xb7, 0xc6, 0x06, 0x98, 0x19, 0x0e, 0xf3, - 0x7f, 0x23, 0x04, 0x42, 0x20, 0x01, 0x38, 0x19, 0x30, 0xc9, 0x06, 0x48, - 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x21, 0x20, 0x20, 0x01, 0x21, 0x21, 0x20, - 0x06, 0x40, 0x1d, 0x40, 0x07, 0x8e, 0x15, 0x7d, 0x37, 0x00, 0x00, 0x00, - 0x25, 0xa9, 0x5d, 0x30, 0x6e, 0x30, 0xd6, 0x4e, 0x88, 0x06, 0x7d, 0x2d, - 0x00, 0x00, 0x4f, 0x28, 0x17, 0x68, 0x00, 0x65, 0xc5, 0x2f, 0xb1, 0x06, - 0x5d, 0xb1, 0x41, 0x00, 0x75, 0x28, 0x99, 0x72, 0x20, 0x81, 0x8a, 0x06, - 0x5e, 0x31, 0x53, 0x00, 0x6f, 0x2f, 0xa5, 0x73, 0x29, 0x1d, 0x69, 0x22, - 0x00, 0x67, 0x06, 0x20, 0x85, 0x41, 0x00, 0x6c, 0x40, 0xff, 0x6f, 0xb4, - 0x06, 0x6f, 0x30, 0x28, 0x42, 0x01, 0x3a, 0x15, 0x29, 0x06, 0x4f, 0xb2, - 0x76, 0x51, 0x81, 0x06, 0xb2, 0xfd, 0x00, 0x00, 0x30, 0xae, 0xc0, 0xd0, - 0x06, 0xb0, 0x7f, 0x1e, 0x4f, 0x00, 0x76, 0x43, 0x7d, 0x32, 0x7d, 0x06, - 0x53, 0xff, 0x53, 0x7f, 0x61, 0x88, 0x06, 0x64, 0x82, 0x1e, 0x04, 0x41, - 0x48, 0x17, 0x3b, 0x04, 0x4c, 0x8e, 0x28, 0x11, 0x4b, 0x04, 0x35, 0x05, - 0xa8, 0x13, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x22, 0x42, 0x22, - 0xd0, 0x01, 0x56, 0x14, 0xe5, 0x36, 0x00, 0x3f, 0xff, 0x01, 0x00, 0x09, - 0x0a, 0x09, 0x0b, 0x0a, 0x01, 0x01, 0x09, 0x00, 0x09, 0x09, 0x09, 0x01, - 0x01, 0x01, 0x01, 0x02, 0x00, 0x01, 0x0f, 0x01, 0x02, 0x0f, 0x02, 0x02, - 0x01, 0x40, 0x0e, 0x20, 0x0b, 0x02, 0x02, 0x02, 0x03, 0x02, 0x01, 0xb1, - 0x20, 0x03, 0x03, 0x30, 0x06, 0x20, 0x05, 0x03, 0x03, 0x04, 0x20, 0x0c, - 0x18, 0x04, 0x03, 0x04, 0x30, 0x06, 0x20, 0x05, 0x04, 0x04, 0x05, 0x00, - 0x05, 0x06, 0x05, 0x07, 0x06, 0x05, 0x05, 0x05, 0x20, 0x05, 0x21, 0x30, - 0x04, 0x05, 0x06, 0x07, 0x08, 0x07, 0x00, 0x09, 0x08, 0x06, 0x06, 0x07, - 0x07, 0x07, 0x07, 0x20, 0x06, 0x06, 0x20, 0x07, 0x0b, 0x0c, 0x0b, 0x0d, - 0x0c, 0x02, 0x07, 0x07, 0x0b, 0x0b, 0x06, 0x0b, 0x30, 0x13, 0x08, 0x00, - 0x0c, 0x0d, 0x0c, 0x0e, 0x0d, 0x08, 0x08, 0x0c, 0x00, 0x0c, 0x1f, 0x0c, - 0x08, 0x08, 0x08, 0x08, 0x09, 0x00, 0x0d, 0x0e, 0x0d, 0x0f, 0x0e, 0x09, - 0x09, 0x0d, 0x10, 0x0d, 0x20, 0x0d, 0x30, 0x83, 0x0a, 0x10, 0x12, 0x10, - 0x00, 0x12, 0x12, 0x0a, 0x0a, 0x10, 0x11, 0x0d, 0x10, 0x00, 0x0a, 0x0a, - 0x0a, 0x0a, 0x0b, 0x11, 0x13, 0x11, 0x00, 0x13, 0x13, 0x0b, 0x0b, 0x11, - 0x12, 0x0e, 0x11, 0x00, 0x0b, 0x0b, 0x0b, 0x0b, 0x0c, 0x13, 0x15, 0x13, - 0x00, 0x15, 0x15, 0x0c, 0x0c, 0x13, 0x14, 0x11, 0x13, 0x00, 0x0c, 0x0c, - 0x0c, 0x0c, 0x0d, 0x14, 0x16, 0x14, 0x00, 0x16, 0x16, 0x0d, 0x0d, 0x14, - 0x15, 0x10, 0x14, 0x00, 0x0d, 0x0d, 0x0d, 0x0d, 0x0e, 0x15, 0x17, 0x15, - 0x00, 0x17, 0x17, 0x0e, 0x0e, 0x15, 0x16, 0x12, 0x15, 0x00, 0x0e, 0x0e, - 0x0e, 0x0e, 0x0f, 0x0f, 0x11, 0x0f, 0x01, 0x11, 0x11, 0x0f, 0x0f, 0x0f, - 0x10, 0x0c, 0x20, 0x04, 0x80, 0x20, 0x06, 0x17, 0x19, 0x17, 0x19, 0x19, - 0x10, 0x10, 0x00, 0x17, 0x18, 0x14, 0x17, 0x10, 0x10, 0x10, 0x10, 0x00, - 0x11, 0x18, 0x1a, 0x18, 0x1a, 0x1a, 0x11, 0x11, 0x00, 0x18, 0x19, 0x15, - 0x18, 0x11, 0x11, 0x11, 0x11, 0x00, 0x12, 0x1a, 0x1c, 0x19, 0x1b, 0x1b, - 0x12, 0x12, 0x00, 0x1a, 0x1b, 0x18, 0x1a, 0x12, 0x12, 0x12, 0x12, 0x00, - 0x13, 0x1b, 0x1b, 0x1a, 0x1c, 0x1c, 0x13, 0x13, 0x00, 0x1b, 0x1c, 0x17, - 0x1b, 0x13, 0x13, 0x13, 0x13, 0x01, 0x14, 0x1c, 0x1d, 0x1b, 0x1d, 0x1d, - 0x14, 0x20, 0x06, 0x00, 0x19, 0x1c, 0x14, 0x14, 0x14, 0x14, 0x15, 0x1e, - 0x04, 0x1f, 0x1e, 0x1f, 0x1f, 0x15, 0x20, 0x06, 0x1b, 0x1e, 0x00, 0x15, - 0x15, 0x15, 0x15, 0x16, 0x1f, 0x20, 0x1f, 0x10, 0x20, 0x20, 0x16, 0x20, - 0x06, 0x1c, 0x1f, 0x16, 0x16, 0x00, 0x16, 0x16, 0x17, 0x22, 0x04, 0x22, - 0x05, 0x04, 0x00, 0x17, 0x17, 0x22, 0x03, 0x0b, 0x22, 0x17, 0x17, 0x00, - 0x17, 0x17, 0x18, 0x1d, 0x1e, 0x1c, 0x1e, 0x1e, 0x40, 0x18, 0x20, 0x06, - 0x1a, 0x1d, 0x18, 0x18, 0x18, 0x18, 0x08, 0x19, 0x16, 0x18, 0x16, 0x20, - 0x05, 0x19, 0x16, 0x17, 0x00, 0x13, 0x16, 0x19, 0x19, 0x19, 0x19, 0x1a, - 0x08, 0x02, 0x09, 0x08, 0x0a, 0x09, 0x1a, 0x1a, 0x31, 0x1b, 0x1a, 0x00, - 0x1a, 0x1a, 0x1a, 0x1b, 0x0a, 0x0b, 0x0a, 0x0c, 0x00, 0x0b, 0x1b, 0x1b, - 0x0a, 0x0a, 0x05, 0x0a, 0x1b, 0x00, 0x1b, 0x1b, 0x1b, 0x1c, 0x04, 0x05, - 0x04, 0x06, 0x10, 0x05, 0x1c, 0x1c, 0x31, 0x7b, 0x1c, 0x1c, 0x1c, 0x1c, - 0x00, 0x1d, 0x12, 0x14, 0x12, 0x14, 0x14, 0x1d, 0x1d, 0x00, 0x12, 0x13, - 0x0f, 0x12, 0x1d, 0x1d, 0x1d, 0x1d, 0x50, 0x1e, 0x4a, 0x0f, 0x1e, 0x20, - 0x06, 0x1d, 0x20, 0x1e, 0x1e, 0x00, 0x1e, 0x1e, 0x1f, 0x06, 0x07, 0x06, - 0x08, 0x07, 0x00, 0x1f, 0x1f, 0x06, 0x06, 0x22, 0x06, 0x1f, 0x1f, 0x00, - 0x1f, 0x1f, 0x20, 0x0e, 0x10, 0x0e, 0x10, 0x10, 0x00, 0x20, 0x20, 0x0e, - 0x0f, 0x0a, 0x0e, 0x20, 0x20, 0x42, 0x20, 0x2a, 0x3b, 0x22, 0x21, 0x22, - 0x22, 0x2a, 0x41, 0x22, 0x40, 0x1e, 0x3a, 0x46, 0x21, 0x22, 0x19, 0x03, - 0x1d, 0x01, 0x01, 0x01, 0x22, 0x22, 0x19, 0x1a, 0x16, 0x19, 0x32, 0x43, - 0x04, 0xff, 0xff, 0xff, 0xff, 0x07, 0x2f, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0xb8, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x3d, 0x1f, 0xd7, 0x08, 0x00, 0x00, 0x00, - 0x01, 0xb8, 0xb5, 0x30, 0xf3, 0x30, 0xde, 0x04, 0x30, 0xea, 0x30, 0xce, - 0x30, 0x06, 0x58, 0x1f, 0x53, 0x00, 0x01, 0x61, 0x00, 0x6e, 0x00, 0x20, - 0x00, 0x4d, 0x20, 0x07, 0x16, 0x72, 0x00, 0x69, 0x20, 0x0b, 0x6f, 0x06, - 0x00, 0x7f, 0x30, 0x75, 0x74, 0x38, 0x00, 0x2d, 0xa0, 0x83, 0x0d, 0xd0, - 0xff, 0x0e, 0xb0, 0x7f, 0x23, 0x57, 0x6c, 0x04, 0x9a, 0x9b, 0x52, 0xfa, - 0x8b, 0x06, 0x7b, 0x1d, 0xb0, 0xc0, 0x03, 0xc8, 0xb9, 0xac, 0xb9, 0x78, - 0xb1, 0x06, 0x7b, 0x9d, 0x07, 0x13, 0x7f, 0x68, 0xe3, 0x23, 0xf1, 0xb3, - 0xff, 0x68, 0x05, 0xc4, 0x01, 0x21, 0x04, 0x30, 0x02, 0x04, 0x3d, 0x04, - 0x2d, 0x00, 0x1c, 0x20, 0x07, 0x40, 0x26, 0x04, 0x38, 0x20, 0x0b, 0x3e, - 0x04, 0x10, 0x05, 0xb3, 0x7f, 0x10, 0x06, 0xf4, 0xff, 0x01, 0x78, 0x01, - 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0xb9, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xcb, 0x1d, 0xda, 0x08, 0x00, 0x00, 0x00, 0x01, 0xb9, 0xd0, 0x30, - 0xc1, 0x30, 0xab, 0x10, 0x30, 0xf3, 0x30, 0x06, 0x78, 0x1d, 0x56, 0x00, - 0x61, 0x00, 0x04, 0x74, 0x00, 0x69, 0x00, 0x63, 0x20, 0x07, 0x6e, 0x00, - 0x11, 0x20, 0x00, 0x43, 0x20, 0x0b, 0x74, 0x00, 0x79, 0x06, 0x60, 0x7f, - 0xa8, 0x06, 0x90, 0xff, 0x6b, 0x40, 0xff, 0x73, 0x21, 0x0b, 0x61, 0x00, - 0x64, 0xd4, 0x21, 0x11, 0x06, 0x51, 0x7f, 0x6f, 0x21, 0x81, 0x28, 0x61, - 0x83, 0x74, 0x00, 0x40, 0xe0, 0x21, 0x8f, 0x64, 0x00, 0x65, 0x00, 0x6c, - 0x00, 0x60, 0x29, 0x05, 0x80, 0x7f, 0x05, 0xfa, 0xa5, 0xb5, 0x68, 0x82, - 0x84, 0x88, 0x41, 0x51, 0x06, 0xab, 0x17, 0xbc, 0xf0, 0xd2, 0x78, 0xce, - 0x06, 0x9b, 0x9b, 0xea, 0xb3, 0x7f, 0xb2, 0x81, 0x06, 0xb2, 0x7f, 0x63, - 0x24, 0x0f, 0x64, 0x43, 0x07, 0x65, 0xc0, 0x04, 0xa2, 0x79, 0x5d, 0x18, - 0x12, 0x04, 0x30, 0x04, 0x42, 0x04, 0x13, 0x38, 0x04, 0x3a, 0x20, 0x07, - 0x3d, 0x04, 0x0e, 0xf4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x3c, 0x01, 0x01, - 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x11, 0x14, 0x6a, 0x00, 0x11, 0x0c, 0x00, 0x00, 0x30, 0x01, 0x40, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x63, 0x1d, 0x19, 0x0e, 0x00, 0x00, 0x00, 0x02, 0x40, 0xc6, 0x30, - 0xa3, 0x30, 0xe9, 0x04, 0x30, 0xca, 0x30, 0xde, 0x5d, 0x06, 0x58, 0x1f, - 0x54, 0x00, 0x01, 0x69, 0x00, 0x72, 0x00, 0x61, 0x00, 0x6e, 0x20, 0x03, - 0x81, 0x10, 0x16, 0x30, 0x7f, 0x30, 0x57, 0xc9, 0x62, 0xa3, 0x90, 0x06, - 0x72, 0xfd, 0x00, 0x00, 0x00, 0xf0, 0xd2, 0x7c, 0xb7, 0x98, 0xb0, 0x08, - 0x20, 0x00, 0xfc, 0xc8, 0x10, 0x06, 0x53, 0x7f, 0x22, 0x04, 0x38, 0x03, - 0x04, 0x40, 0x04, 0x30, 0x04, 0x3d, 0x20, 0x03, 0x10, 0x1e, 0x34, 0xff, - 0x15, 0x01, 0x0b, 0x0b, 0x20, 0x01, 0x01, 0x20, 0x06, 0x09, 0x20, 0x05, - 0x22, 0x01, 0x01, 0x58, 0x17, 0x03, 0x40, 0xd9, 0x28, 0x15, 0xc8, 0x82, - 0x06, 0x88, 0x15, 0x00, 0x00, 0x42, 0x00, 0x65, 0x48, 0x17, 0x74, 0xa4, - 0x10, 0x16, 0x60, 0x7f, 0xf9, 0x28, 0x17, 0x79, 0x72, 0x06, 0x98, 0x17, - 0xa0, 0xbc, 0x0c, 0x7c, 0xb7, 0xb8, 0xd2, 0x06, 0x98, 0x17, 0x0e, 0xf3, - 0x7f, 0x11, 0x04, 0x5a, 0x35, 0x48, 0x17, 0x42, 0x06, 0x48, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x02, 0x28, 0x0c, 0x03, 0x30, 0x01, 0x02, 0x30, 0x06, - 0x20, 0x05, 0x02, 0x02, 0xf2, 0x1c, 0x40, 0x33, 0x28, 0x17, 0x04, 0x40, - 0xc7, 0x30, 0xa3, 0x30, 0x68, 0xd6, 0x28, 0x1b, 0x06, 0x7d, 0x31, 0x44, - 0x2f, 0xaf, 0x62, 0x00, 0xeb, 0xf0, 0x2f, 0xb3, 0x0e, 0xb0, 0x7f, 0x3f, - 0xb1, 0x10, 0x06, 0x51, 0x7f, 0xea, 0x8f, 0xc3, 0x52, 0x20, 0xc9, 0x62, - 0x06, 0x9b, 0x17, 0x14, 0xb5, 0x0c, 0xbe, 0x7c, 0x60, 0xb7, 0x06, 0x98, - 0x17, 0x0e, 0xf3, 0x7f, 0x14, 0x04, 0x38, 0x04, 0x31, 0xe8, 0x48, 0x19, - 0x10, 0x06, 0xb4, 0xff, 0x10, 0x06, 0x90, 0xff, 0x03, 0x28, 0x0c, 0x05, - 0x02, 0x03, 0xa0, 0x20, 0x06, 0x04, 0x20, 0x05, 0x03, 0x03, 0xa4, 0x1d, - 0x89, 0xaa, 0x28, 0x17, 0x05, 0x28, 0x17, 0xe5, 0x28, 0x15, 0xb9, 0x06, - 0xa8, 0x17, 0x75, 0xa8, 0x2f, 0xaf, 0x72, 0x28, 0x19, 0x73, 0x10, 0x06, - 0xa0, 0x7f, 0x61, 0x00, 0x7a, 0xa0, 0x20, 0x01, 0x6f, 0x0e, 0x21, 0xff, - 0xfd, 0x90, 0xc9, 0x62, 0xaf, 0x40, 0x65, 0x06, 0x98, 0x17, 0x50, 0xb4, - 0xec, 0xb7, 0xa4, 0xc2, 0xc4, 0x06, 0xb8, 0x17, 0x0e, 0xd3, 0x7f, 0x14, - 0x04, 0x43, 0x28, 0x15, 0x40, 0x04, 0x1d, 0x35, 0x04, 0x41, 0x06, 0x48, - 0x19, 0x10, 0x07, 0x54, 0xff, 0x0e, 0x96, 0x7f, 0x04, 0x28, 0x0c, 0x14, - 0x06, 0x03, 0x04, 0x20, 0x06, 0x05, 0x20, 0x05, 0x04, 0x04, 0x00, 0x62, - 0x1d, 0xd5, 0x0d, 0x00, 0x00, 0x06, 0x40, 0x00, 0xa8, 0x30, 0xeb, 0x30, - 0xd0, 0x30, 0xb5, 0x30, 0x45, 0xf3, 0x06, 0x68, 0x19, 0x45, 0x00, 0x6c, - 0x2f, 0xaf, 0x61, 0x28, 0x15, 0x10, 0x61, 0x00, 0x6e, 0x10, 0x16, 0x20, - 0x7f, 0x31, 0x72, 0x14, 0x5c, 0x08, 0xf4, 0x5d, 0x51, 0x68, 0x06, 0x7b, - 0x17, 0xd8, 0xc5, 0x14, 0x18, 0xbc, 0xb0, 0xc0, 0x06, 0x98, 0x17, 0x0e, - 0xf3, 0x7f, 0x2d, 0x04, 0x3b, 0x02, 0x04, 0x4c, 0x04, 0x31, 0x04, 0x30, - 0x28, 0x17, 0x30, 0x34, 0x04, 0x3d, 0x06, 0x08, 0x1b, 0x10, 0x16, 0xf4, - 0xff, 0x05, 0x28, 0x0c, 0x07, 0x04, 0x50, 0x05, 0x20, 0x06, 0x0c, 0x20, - 0x05, 0x05, 0x05, 0x30, 0x1d, 0x00, 0x38, 0x0e, 0x00, 0x00, 0x07, 0x40, - 0xd5, 0x30, 0x30, 0xa3, 0x30, 0x38, 0x1b, 0x06, 0x7d, 0x31, 0x46, 0x00, - 0x69, 0x00, 0x70, 0x65, 0x2f, 0xb1, 0x06, 0x7d, 0xaf, 0x10, 0x0e, 0xf0, - 0x7f, 0x39, 0x8d, 0xcc, 0x91, 0xc0, 0x06, 0x78, 0x13, 0x3f, 0xff, 0x3c, - 0xd5, 0xd0, 0xc5, 0x74, 0xb9, 0xc0, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, - 0x24, 0x04, 0x38, 0x04, 0x35, 0x04, 0x68, 0x40, 0x20, 0x05, 0x10, 0x1e, - 0x54, 0xff, 0x06, 0x28, 0x0c, 0x08, 0x05, 0x06, 0xa0, 0x20, 0x06, 0x0a, - 0x20, 0x05, 0x06, 0x06, 0xf5, 0x1c, 0xea, 0x00, 0x0d, 0x00, 0x00, 0x08, - 0x40, 0xae, 0x30, 0xed, 0x00, 0x30, 0xab, 0x30, 0xb9, 0x30, 0xc8, 0x30, - 0xe9, 0x88, 0x06, 0x48, 0x1b, 0x47, 0x00, 0x6a, 0x28, 0x19, 0x72, 0x00, - 0x6f, 0x23, 0x00, 0x6b, 0x4f, 0xb5, 0x74, 0x00, 0xeb, 0x05, 0xc8, 0x25, - 0x08, 0x10, 0x7f, 0x6a, 0x72, 0x2f, 0xbd, 0x05, 0x9f, 0xb8, 0x41, 0x29, - 0x93, 0x67, 0x61, 0x81, 0x63, 0xa0, 0x80, 0x81, 0x6f, 0x0d, 0x80, 0xff, - 0x09, 0x54, 0xfa, 0x8b, 0x61, 0x04, 0x53, 0xaf, 0x65, 0x79, 0x72, 0x06, - 0x5b, 0x19, 0xc0, 0xc9, 0x00, 0x5c, 0xb8, 0x74, 0xce, 0xa4, 0xc2, 0x30, - 0xd1, 0xd0, 0x06, 0x58, 0x1d, 0x0e, 0xf2, 0xff, 0x13, 0x28, 0x17, 0x40, - 0x04, 0x3e, 0x04, 0x01, 0x3a, 0x04, 0x30, 0x04, 0x41, 0x04, 0x42, 0x28, - 0x21, 0x74, 0x30, 0x05, 0xc8, 0x21, 0x10, 0x00, 0x14, 0xff, 0x10, 0x05, - 0xd0, 0xff, 0x07, 0x28, 0x0c, 0x02, 0x06, 0x50, 0x07, 0x20, 0x06, 0x03, - 0x20, 0x05, 0x07, 0x07, 0x7f, 0x1c, 0x20, 0x53, 0x0e, 0x25, 0x15, 0x40, - 0xb3, 0x30, 0xeb, 0x30, 0x1a, 0xc1, 0x30, 0xe3, 0x06, 0x48, 0x13, 0x3f, - 0xff, 0x4b, 0x28, 0x11, 0x72, 0x3d, 0x00, 0xe7, 0x28, 0x0d, 0x0e, 0xd0, - 0x7f, 0x05, 0xb8, 0x0b, 0xbf, 0xff, 0x43, 0x41, 0x7f, 0x18, 0x69, 0x00, - 0x7a, 0x06, 0x60, 0x81, 0x06, 0xf1, 0xff, 0xd1, 0x79, 0x14, 0x10, 0x5c, - 0xdf, 0x5b, 0x06, 0x72, 0xfd, 0x00, 0x00, 0x54, 0xcf, 0x0d, 0x74, 0xb9, - 0x98, 0xcc, 0x06, 0x38, 0x11, 0x0f, 0x53, 0x7f, 0x1a, 0x28, 0x13, 0x1d, - 0x40, 0x04, 0x47, 0x05, 0xe8, 0x0d, 0x10, 0x00, 0x14, 0xff, 0x10, 0x06, - 0x70, 0xff, 0x08, 0x28, 0x0c, 0x14, 0x04, 0x07, 0x08, 0x20, 0x06, 0x06, - 0x20, 0x05, 0x08, 0x08, 0x10, 0xe2, 0x1c, 0xc8, 0x28, 0x17, 0x0a, 0x40, - 0xaf, 0x30, 0x1a, 0xb1, 0x30, 0xb9, 0x06, 0x88, 0x15, 0x38, 0x17, 0x75, - 0x2f, 0xa9, 0xeb, 0xc0, 0x2f, 0xa9, 0x10, 0x16, 0x50, 0x7f, 0x93, 0x5e, - 0x4b, 0x51, 0xaf, 0x65, 0x81, 0x06, 0x98, 0x17, 0xe0, 0xcf, 0xe4, 0xce, - 0xa4, 0xc2, 0x06, 0xb8, 0x17, 0x80, 0x0e, 0xd3, 0x7f, 0x1a, 0x04, 0x43, - 0x04, 0x3a, 0x04, 0x35, 0x34, 0x04, 0x41, 0x06, 0x88, 0x17, 0x10, 0x16, - 0xd4, 0xff, 0x09, 0x28, 0x0c, 0x09, 0x08, 0x50, 0x09, 0x20, 0x06, 0x07, - 0x20, 0x05, 0x09, 0x09, 0xec, 0x1d, 0x40, 0x87, 0x28, 0x17, 0x0b, 0x40, - 0xec, 0x30, 0xb8, 0x30, 0x45, 0xe3, 0x06, 0xa8, 0x17, 0x4c, 0x00, 0x65, - 0x2e, 0xab, 0x68, 0x06, 0x8f, 0xaf, 0xc1, 0x07, 0x70, 0x7f, 0x06, 0x5f, - 0xad, 0x00, 0x00, 0x41, 0x00, 0x6c, 0x21, 0x81, 0x58, 0x73, 0x29, 0x97, - 0x69, 0x2f, 0xb9, 0x0e, 0x11, 0xff, 0xb1, 0x83, 0xc0, 0x63, 0x4e, 0x06, - 0x9b, 0x15, 0x2b, 0xaf, 0xb8, 0x00, 0xc8, 0x06, 0x98, 0x15, 0x0f, 0x13, - 0x7f, 0x47, 0x1b, 0x28, 0x13, 0x36, 0x04, 0x30, 0x06, 0x68, 0x15, 0x0f, - 0x94, 0xff, 0x10, 0x06, 0x70, 0xff, 0x45, 0x0a, 0x28, 0x0c, 0x01, 0x09, - 0x0a, 0x20, 0x06, 0x08, 0x20, 0x05, 0x00, 0x0a, 0x0a, 0xb6, 0x1d, 0xf9, - 0x0d, 0x00, 0x00, 0x00, 0x0c, 0x40, 0xb7, 0x30, 0xe5, 0x30, 0xb3, 0x30, - 0x15, 0xc9, 0x30, 0xe9, 0x06, 0x68, 0x1b, 0x53, 0x28, 0x13, 0x6b, 0x26, - 0x91, 0x54, 0x64, 0x2f, 0xb3, 0x72, 0x0e, 0xc0, 0x7f, 0x72, 0x06, 0x48, - 0x1b, 0x53, 0x00, 0x56, 0x63, 0x2f, 0xb1, 0x74, 0x28, 0x97, 0x72, 0x28, - 0x19, 0x0e, 0x11, 0xff, 0xaf, 0x04, 0x65, 0x93, 0x5e, 0xf0, 0x53, 0x06, - 0x9b, 0x17, 0x88, 0xc2, 0x03, 0x54, 0xcf, 0x54, 0xb3, 0x74, 0xb9, 0x06, - 0x78, 0x1b, 0x0e, 0xf3, 0x7f, 0x01, 0x28, 0x04, 0x3a, 0x04, 0x3e, 0x04, - 0x34, 0x28, 0x1d, 0x74, 0x40, 0x06, 0x48, 0x1b, 0x0f, 0x94, 0xff, 0x10, - 0x06, 0x50, 0xff, 0x0b, 0x38, 0x0c, 0x0a, 0x0b, 0xa0, 0x20, 0x06, 0x0b, - 0x20, 0x05, 0x0b, 0x0b, 0xeb, 0x1d, 0xe2, 0x83, 0x28, 0x17, 0x0d, 0x40, - 0xf4, 0x30, 0xed, 0x06, 0x88, 0x13, 0x3f, 0xff, 0x5f, 0x56, 0x2e, 0xaf, - 0x6f, 0x28, 0x11, 0x06, 0x7f, 0xaf, 0x07, 0x70, 0x7f, 0x06, 0x38, 0x13, - 0x51, 0x7f, 0x58, 0x61, 0x41, 0x81, 0x6e, 0x06, 0x60, 0x81, 0x06, 0xf1, - 0xff, 0xd1, 0x53, 0x57, 0x10, 0x7f, 0xc9, 0x62, 0x06, 0x98, 0x17, 0x14, - 0xbe, 0x5c, 0xb8, 0x30, 0xec, 0xb7, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, - 0x12, 0x04, 0x3b, 0x04, 0x5c, 0x51, 0x28, 0x13, 0x30, 0x06, 0x48, 0x15, - 0x0f, 0x94, 0xff, 0x10, 0x06, 0x70, 0xff, 0x0c, 0x0c, 0xa3, 0x70, 0x01, - 0x02, 0x40, 0x0a, 0xc7, 0x1c, 0xdb, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x4a, - 0x01, 0x38, 0x34, 0x0b, 0x01, 0x20, 0x06, 0x09, 0x20, 0x05, 0x01, 0x23, - 0x01, 0x02, 0x20, 0x04, 0x03, 0x01, 0x02, 0x30, 0x06, 0x20, 0x05, 0x11, - 0x02, 0x02, 0x03, 0x20, 0x04, 0x05, 0x02, 0x03, 0x20, 0x06, 0x44, 0x04, - 0x20, 0x05, 0x03, 0x03, 0x04, 0x20, 0x04, 0x06, 0x03, 0x51, 0x04, 0x20, - 0x06, 0x05, 0x20, 0x05, 0x04, 0x04, 0x05, 0x20, 0x04, 0x14, 0x07, 0x04, - 0x05, 0x20, 0x06, 0x0c, 0x20, 0x05, 0x05, 0x05, 0x45, 0x06, 0x20, 0x04, - 0x08, 0x05, 0x06, 0x20, 0x06, 0x0a, 0x20, 0x05, 0x11, 0x06, 0x06, 0x07, - 0x20, 0x04, 0x02, 0x06, 0x07, 0x20, 0x06, 0x44, 0x03, 0x20, 0x05, 0x07, - 0x07, 0x08, 0x20, 0x04, 0x04, 0x07, 0x51, 0x08, 0x20, 0x06, 0x06, 0x20, - 0x05, 0x08, 0x08, 0x09, 0x40, 0x03, 0x51, 0x09, 0x20, 0x06, 0x07, 0x20, - 0x05, 0x09, 0x09, 0x0a, 0x20, 0x04, 0x17, 0x01, 0x09, 0x0a, 0x20, 0x06, - 0x08, 0x20, 0x05, 0x38, 0xd5, 0xd8, 0xdf, 0xc0, 0xf0, 0xd7, 0x3f, 0xf2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x74, 0x49, 0x00, - 0x11, 0x08, 0x00, 0x00, 0x30, 0x01, 0x41, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xe7, 0xe7, 0x8c, - 0x6b, 0x00, 0x00, 0x00, 0x02, 0x41, 0xaa, 0x30, 0xfc, 0x30, 0xb9, 0x00, - 0x30, 0xc8, 0x30, 0xe9, 0x30, 0xea, 0x30, 0xa2, 0x00, 0x30, 0x96, 0x99, - 0xfd, 0x90, 0x79, 0x72, 0x25, 0x04, 0x52, 0x30, 0x57, 0xdf, 0x57, 0x05, - 0x58, 0x2f, 0x41, 0x00, 0x00, 0x75, 0x00, 0x73, 0x00, 0x74, 0x00, 0x72, - 0x00, 0x04, 0x61, 0x00, 0x6c, 0x00, 0x69, 0x20, 0x05, 0x6e, 0x00, 0x15, - 0x20, 0x00, 0x43, 0x20, 0x0d, 0x70, 0x20, 0x0d, 0x74, 0x40, 0x15, 0x05, - 0x20, 0x00, 0x54, 0x00, 0x65, 0x20, 0x21, 0x72, 0x40, 0x11, 0x5a, 0x6f, - 0x20, 0x2b, 0x79, 0x03, 0x88, 0xcc, 0xd0, 0x59, 0x69, 0x20, 0x87, 0x65, - 0xa8, 0x20, 0x7f, 0x64, 0x40, 0x05, 0x6c, 0x20, 0x93, 0x20, 0x00, 0x63, - 0xd5, 0xc0, 0x8b, 0x30, 0x1d, 0x61, 0xe0, 0xb3, 0x65, 0x20, 0xb3, 0x6e, - 0x20, 0xa1, 0xaa, 0x03, 0x30, 0xff, 0x73, 0x20, 0x6f, 0x68, 0x20, 0xed, - 0x73, 0x21, 0x05, 0x48, 0xb5, 0x40, 0x69, 0x70, 0x21, 0x1d, 0x31, 0x21, - 0x61, 0x20, 0x95, 0x74, 0x21, 0x29, 0xad, 0xd1, 0x09, 0x69, 0x21, 0x3f, - 0x6d, 0x03, 0x80, 0xff, 0x31, 0x61, 0x6f, 0x60, 0xff, 0x7b, 0x6c, 0x60, - 0xff, 0xd1, 0x8b, 0x31, 0x1d, 0x00, 0x31, 0xb3, 0x61, 0x04, 0x00, 0x7f, - 0x71, 0x7f, 0xc0, 0xf2, 0x0b, 0x03, 0xb0, 0x7d, 0x00, 0x00, 0xb3, 0x6f, - 0x27, 0x59, 0x08, 0x29, 0x52, 0x9a, 0x4e, 0x32, 0xf9, 0xf4, 0x76, 0x96, - 0x10, 0x8f, 0x3a, 0x53, 0x05, 0xdb, 0x27, 0x24, 0xc6, 0xa4, 0xc2, 0x00, - 0xb8, 0xd2, 0x08, 0xb8, 0x7c, 0xc7, 0xac, 0xb9, 0x00, 0x44, 0xc5, 0x90, - 0xce, 0x3c, 0xd5, 0x38, 0xd1, 0x07, 0x4c, 0xd1, 0xac, 0xb9, 0xa0, 0x20, - 0x03, 0x06, 0x33, 0x7f, 0x52, 0x7f, 0xad, 0x32, 0x7b, 0x6f, 0x23, 0x69, - 0x66, 0x23, 0x09, 0x33, 0x9d, 0x65, 0x62, 0x11, 0x07, 0x69, 0x00, 0x6a, - 0x00, 0x6b, 0x00, 0x23, 0x8f, 0x02, 0x92, 0x85, 0xb3, 0xd9, 0x70, 0xf3, - 0xa2, 0x7f, 0x05, 0x11, 0xf9, 0x5d, 0x18, 0x10, 0x04, 0x32, 0x04, 0x00, - 0x41, 0x04, 0x42, 0x04, 0x40, 0x04, 0x30, 0x04, 0x05, 0x3b, 0x04, 0x38, - 0x04, 0x39, 0x20, 0x0d, 0x3a, 0x20, 0x0b, 0x34, 0x4f, 0x04, 0x22, 0xe7, - 0x20, 0x17, 0x3e, 0x40, 0x15, 0x47, 0x04, 0x45, 0x3d, 0x60, 0x13, 0x42, - 0x04, 0x35, 0x20, 0x2b, 0x40, 0x20, 0x29, 0xcc, 0x30, 0x1b, 0x30, 0x07, - 0x4f, 0x04, 0x0a, 0xb4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x01, 0x01, 0x06, - 0x06, 0x01, 0x07, 0x06, 0x01, 0x30, 0x06, 0x20, 0x04, 0x01, 0x00, 0x01, - 0xdd, 0xe6, 0xfc, 0x69, 0x00, 0x00, 0x03, 0x08, 0x41, 0xcb, 0x30, 0xe5, - 0x28, 0x19, 0xb5, 0x30, 0xa6, 0x88, 0x28, 0x1d, 0xa6, 0x30, 0xa7, 0x28, - 0x25, 0xeb, 0x30, 0xba, 0x15, 0x30, 0xde, 0x5d, 0x05, 0x7f, 0xc5, 0x4e, - 0x27, 0xf1, 0x77, 0x28, 0x09, 0x5a, 0x53, 0x27, 0xef, 0x75, 0x28, 0x1f, - 0x34, 0x93, 0x57, 0x67, 0x81, 0x73, 0xd0, 0x05, 0x40, 0x7f, 0x30, 0x77, - 0x76, 0x67, 0x07, 0x65, 0x00, 0x2d, 0x00, 0x75, 0x47, 0x48, 0xa1, 0x50, - 0x7f, 0x38, 0x21, 0x75, 0x40, 0x9d, 0x75, 0x28, 0x2b, 0xd6, 0x04, 0x70, - 0xff, 0x39, 0x19, 0xfc, 0x28, 0x8b, 0x77, 0x05, 0xa0, 0xf7, 0x91, 0x7f, - 0x75, 0xbe, 0x29, 0x69, 0x76, 0x48, 0x0d, 0xf0, 0xf9, 0x38, 0x1b, 0x04, - 0xb0, 0xfb, 0x70, 0x7f, 0x65, 0xf4, 0x21, 0x7f, 0x39, 0x81, 0x51, 0x79, - 0x00, 0x10, 0x7d, 0x72, 0x04, 0xaf, 0xd2, 0xb0, 0x65, 0x00, 0x57, 0x53, - 0x01, 0x5a, 0x14, 0x5c, 0xeb, 0x58, 0xc1, 0x05, 0x92, 0xf3, 0xbf, 0xff, - 0x74, 0xb2, 0xac, 0xc0, 0xb0, 0x28, 0x1b, 0x00, 0xe8, 0xc6, 0x7c, 0xc7, - 0xa4, 0xc2, 0x20, 0x00, 0x2a, 0xfc, 0xc8, 0x05, 0xdf, 0xbf, 0x4e, 0x4a, - 0xd7, 0x75, 0x23, 0x83, 0x2d, 0x2b, 0x00, 0x5a, 0x2b, 0xa3, 0x69, 0x2b, - 0x13, 0x2d, 0x05, 0xa3, 0x81, 0x33, 0x7f, 0xea, 0x00, 0x31, 0xfd, 0x3a, - 0x9d, 0x33, 0x75, 0x6c, 0x04, 0xef, 0xce, 0x1d, 0x27, 0xf9, 0x32, 0x20, - 0x04, 0x4b, 0x28, 0x0f, 0x20, 0x00, 0x2e, 0x04, 0x36, 0xc5, 0x27, 0xff, - 0x50, 0x0b, 0x23, 0x04, 0x4d, 0x28, 0x27, 0x4c, 0x28, 0x33, 0xc0, 0x0c, - 0xf4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x02, 0x02, 0x03, 0x02, 0x03, 0x03, - 0x50, 0x02, 0x20, 0x06, 0x05, 0x20, 0x04, 0x02, 0x02, 0xe7, 0xe7, 0x01, - 0x8c, 0x6b, 0x00, 0x00, 0x04, 0x41, 0xce, 0x28, 0x15, 0x00, 0xb6, 0x30, - 0xf3, 0x30, 0xc6, 0x30, 0xea, 0x30, 0x4f, 0xc8, 0x20, 0x03, 0xfc, 0x30, - 0x05, 0xf4, 0x97, 0x3f, 0xff, 0x38, 0x0f, 0x3f, 0xb7, 0xef, 0x3b, 0x2b, - 0x04, 0x9b, 0x1b, 0x01, 0x1f, 0x2f, 0x69, 0x2f, 0xb7, 0x3f, 0x11, 0x58, - 0x0d, 0x50, 0x9b, 0xdf, 0x04, 0x97, 0x13, 0x59, 0x17, 0xf6, 0x40, 0x63, - 0x3f, 0x77, 0x3d, 0xa9, 0x58, 0x8d, 0x03, 0x9d, 0x8f, 0xfc, 0x02, 0x9f, - 0xaf, 0x3f, 0x9b, 0x05, 0x11, 0x01, 0x01, 0x30, 0x7f, 0x3e, 0xaf, 0x04, - 0x7f, 0xc5, 0x17, 0x53, 0x03, 0xe8, 0x90, 0x30, 0x57, 0x3a, 0x53, 0x06, - 0x38, 0x13, 0x3f, 0xff, 0x00, 0x78, 0xb1, 0x58, 0xb3, 0x4c, 0xd1, 0xac, - 0xb9, 0x7c, 0xa0, 0x20, 0x03, 0x06, 0x18, 0x15, 0x5b, 0x17, 0x52, 0xe5, - 0x3b, 0x19, 0x69, 0x00, 0x17, 0x6a, 0x00, 0x6b, 0x06, 0x82, 0x7f, 0xf3, - 0xa2, 0x7f, 0x3a, 0xa7, 0x05, 0x11, 0xfd, 0x15, 0x00, 0x00, 0x21, 0x2f, - 0xff, 0x32, 0x20, 0x03, 0x40, 0x28, 0x11, 0x44, 0x30, 0x2f, 0xfb, 0x20, - 0x00, 0x42, 0x40, 0x0d, 0x40, 0x04, 0x1b, 0x38, 0x04, 0x42, 0x28, 0x33, - 0x30, 0x07, 0x4f, 0x04, 0xa8, 0x1b, 0x06, 0xf4, 0xff, 0x80, 0x10, 0x0e, - 0xf0, 0x7f, 0x03, 0x03, 0x07, 0x03, 0x06, 0x07, 0x03, 0xa0, 0x20, 0x06, - 0x06, 0x20, 0x04, 0x03, 0x03, 0x29, 0xf7, 0x0b, 0x82, 0x2d, 0x1f, 0x05, - 0x41, 0xaf, 0x30, 0xa3, 0x28, 0x19, 0xf3, 0x09, 0x30, 0xba, 0x30, 0xe9, - 0x28, 0x1d, 0xc9, 0x30, 0x05, 0xfd, 0x35, 0x55, 0x51, 0x4e, 0x2f, 0x65, - 0x28, 0x11, 0x73, 0x2f, 0xb1, 0x61, 0x28, 0x19, 0xc0, 0x04, 0xd7, 0x87, - 0x10, 0x0f, 0xf0, 0x7f, 0x06, 0x66, 0xeb, 0x58, 0x70, 0x51, 0xc0, 0x05, - 0xf2, 0xf5, 0x9f, 0xff, 0x38, 0xd0, 0x90, 0xc9, 0x9c, 0xb7, 0x35, 0xdc, - 0xb4, 0x06, 0x38, 0x13, 0x0f, 0x33, 0x7f, 0x1a, 0x28, 0x15, 0x38, 0x28, - 0x13, 0x11, 0x41, 0x04, 0x3b, 0x28, 0x21, 0x3d, 0x04, 0x34, 0x04, 0xa8, - 0x03, 0x90, 0x10, 0x18, 0x34, 0xff, 0x04, 0x04, 0xd0, 0x01, 0x7b, 0xec, - 0xd1, 0x6c, 0x84, 0x25, 0x15, 0x41, 0x57, 0x53, 0xaa, 0x28, 0x17, 0xb9, - 0x30, 0x45, 0xc8, 0x28, 0x17, 0xea, 0x30, 0xa2, 0x06, 0x08, 0x17, 0x53, - 0x2f, 0xa5, 0x45, 0x75, 0x4b, 0x2f, 0x20, 0x00, 0x41, 0x2f, 0xa5, 0x73, - 0x2f, 0xb7, 0x6c, 0x72, 0x28, 0x1f, 0x3f, 0x3f, 0x61, 0x05, 0x2d, 0xc4, - 0xf0, 0x73, 0x65, 0x00, 0x05, 0x2d, 0x00, 0x4d, 0x00, 0xe9, 0x4f, 0xab, - 0x64, 0x4f, 0x3d, 0x62, 0x6e, 0x40, 0x8d, 0x04, 0x7e, 0xb1, 0x53, 0x00, - 0xfc, 0x2f, 0x9d, 0x61, 0xb7, 0x00, 0x00, 0x85, 0x6e, 0x05, 0x6e, 0xc0, - 0x00, 0x11, 0x73, 0x20, 0x20, 0xff, 0x3f, 0xc3, 0x05, 0x50, 0xff, 0xc0, - 0x01, 0x70, 0x7f, 0x04, 0x7f, 0xcf, 0x57, 0x53, 0xb3, 0x6f, 0x27, 0x59, - 0x08, 0x29, 0x52, 0x9a, 0x4e, 0x06, 0x58, 0x1b, 0xac, 0xc0, 0xb0, 0x08, - 0xc6, 0xa4, 0xc2, 0x24, 0x20, 0x03, 0xb8, 0xd2, 0x08, 0x01, 0xb8, 0x7c, - 0xc7, 0xac, 0xb9, 0x44, 0xc5, 0x05, 0xb8, 0x23, 0x6a, 0x5a, 0x2b, 0x97, - 0x32, 0xe9, 0x2d, 0x00, 0x03, 0x7d, 0xeb, 0x05, 0xe2, 0x7f, 0xe1, 0x88, - 0x06, 0x41, 0xff, 0x2e, 0x04, 0x36, 0x28, 0x15, 0x30, 0x04, 0x4f, 0x08, - 0x04, 0x20, 0x00, 0x10, 0x28, 0x23, 0x41, 0x04, 0x42, 0x2b, 0x04, 0x40, - 0x20, 0x0f, 0x3b, 0x28, 0x2d, 0x4f, 0x05, 0x28, 0x23, 0x06, 0xf4, 0xff, - 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x05, 0x05, 0x01, 0x05, 0x01, 0x01, 0x05, - 0x02, 0x05, 0x08, 0x01, 0x08, 0x05, 0x05, 0x20, 0x01, 0x2c, 0x00, 0xe7, - 0x91, 0x62, 0x00, 0x00, 0x07, 0x41, 0xbf, 0x8d, 0x28, 0x13, 0xde, 0x30, - 0xcb, 0x06, 0x28, 0x11, 0x5f, 0xff, 0x54, 0x2f, 0xa3, 0x1f, 0x73, 0x00, - 0x6d, 0x4f, 0xa9, 0x05, 0x58, 0x09, 0x00, 0xb0, 0x7f, 0x04, 0x77, 0xfd, - 0x01, 0x90, 0x7f, 0xe0, 0x05, 0x78, 0x0f, 0x08, 0x51, 0x7f, 0x06, 0x21, - 0xff, 0x58, 0xaf, 0x65, 0x6c, 0x9a, 0x20, 0x3c, 0x5c, 0x06, 0x78, 0x17, - 0xdc, 0xd0, 0x88, 0xc9, 0x54, 0x07, 0xba, 0x74, 0xc7, 0xc8, 0xb2, 0x05, - 0xd8, 0x0f, 0x00, 0x53, 0x7f, 0x05, 0x58, 0x0b, 0xa8, 0x00, 0x33, 0xff, - 0xe2, 0x06, 0x63, 0xff, 0x22, 0x28, 0x13, 0x41, 0x04, 0x3c, 0xb8, 0x28, - 0x19, 0x3d, 0x05, 0x68, 0x09, 0x0f, 0xe3, 0x7f, 0x10, 0x06, 0xe0, 0xff, - 0x06, 0x06, 0x05, 0x10, 0x06, 0x05, 0x05, 0x20, 0x05, 0x05, 0x07, 0x06, - 0x06, 0x80, 0x20, 0x01, 0x88, 0xe1, 0xbd, 0x68, 0x00, 0x00, 0x08, 0x00, - 0x41, 0xf4, 0x30, 0xa3, 0x30, 0xaf, 0x30, 0xc8, 0x2a, 0x30, 0xea, 0x06, - 0x68, 0x19, 0x56, 0x2f, 0xa3, 0x63, 0x2f, 0xaf, 0x6f, 0xe0, 0x4f, 0xa1, - 0x06, 0x18, 0x17, 0x10, 0x0e, 0xf0, 0x7f, 0xf4, 0x7e, 0x1a, 0x59, 0x29, - 0x40, 0x52, 0x06, 0x78, 0x15, 0x00, 0x00, 0x45, 0xbe, 0xa0, 0xd1, 0x34, - 0xac, 0xb9, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x12, 0x28, 0x0d, 0x3a, - 0x04, 0x06, 0x42, 0x04, 0x3e, 0x04, 0x40, 0x06, 0x48, 0x17, 0x10, 0x16, - 0xf4, 0xff, 0x07, 0x00, 0x07, 0x08, 0x07, 0x08, 0x08, 0x07, 0x07, 0x06, - 0x08, 0x08, 0x02, 0x07, 0x07, 0x20, 0x01, 0x1d, 0xe5, 0x16, 0x00, 0x67, - 0x00, 0x00, 0x09, 0x41, 0x7f, 0x89, 0xaa, 0x0a, 0x30, 0xfc, 0x30, 0xb9, - 0x28, 0x19, 0xe9, 0x06, 0x48, 0x1b, 0x57, 0xa8, 0x2f, 0xa3, 0x73, 0x28, - 0x17, 0x65, 0x28, 0x17, 0x6e, 0x00, 0x20, 0x0a, 0x00, 0x41, 0x00, 0x75, - 0x40, 0x0f, 0x72, 0x2f, 0xc7, 0x6c, 0xc1, 0x05, 0x2e, 0xc1, 0xf0, 0x6f, - 0x65, 0x00, 0x2d, 0x00, 0x4f, 0x28, 0xa9, 0x55, 0x63, 0x2f, 0xbd, 0x64, - 0x4f, 0xbf, 0x74, 0x40, 0x89, 0x65, 0x04, 0xe0, 0xff, 0x5b, 0x61, 0x00, - 0x00, 0x87, 0x6e, 0x05, 0x4f, 0xbb, 0x00, 0x11, 0x6f, 0x20, 0x05, 0xc0, - 0xff, 0x01, 0x70, 0x7f, 0x82, 0x04, 0x7f, 0xcb, 0x7f, 0x89, 0xb3, 0x6f, - 0x27, 0x06, 0xa8, 0x19, 0xe8, 0x02, 0xc6, 0xa4, 0xc2, 0x34, 0xd1, 0x24, - 0x20, 0x05, 0xb8, 0x06, 0xd2, 0x08, 0xb8, 0x7c, 0xc7, 0x05, 0xf8, 0x23, - 0x73, 0x7f, 0x2d, 0xac, 0x00, 0x03, 0x79, 0xeb, 0x05, 0xe2, 0x7f, 0xe1, - 0xc2, 0x7f, 0x05, 0x51, 0xfd, 0x00, 0x00, 0x04, 0x17, 0x04, 0x30, 0x04, - 0x3f, 0x20, 0x03, 0x34, 0x04, 0x40, 0x3d, 0x20, 0x09, 0x4f, 0x04, 0x20, - 0x00, 0x10, 0x04, 0x15, 0x32, 0x04, 0x41, 0x28, 0x29, 0x40, 0x20, 0x19, - 0x3b, 0x05, 0x08, 0x2b, 0xc0, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x08, 0x08, 0x02, 0x08, 0x02, 0x02, 0x84, 0x28, 0x19, 0x02, 0x03, 0x08, - 0x08, 0x20, 0x01, 0x4b, 0xe9, 0x20, 0x64, 0x52, 0x00, 0x3f, 0xff, 0x01, - 0x01, 0x06, 0x01, 0x07, 0x30, 0x06, 0x01, 0x30, 0x06, 0x20, 0x04, 0x01, - 0x01, 0x02, 0x02, 0x05, 0x03, 0x02, 0x03, 0x03, 0x02, 0x20, 0x06, 0x05, - 0x20, 0x04, 0x81, 0x20, 0x0d, 0x03, 0x07, 0x03, 0x06, 0x07, 0x03, 0x20, - 0x06, 0x42, 0x06, 0x20, 0x04, 0x03, 0x03, 0x04, 0x04, 0xd0, 0x01, 0x05, - 0x00, 0x05, 0x01, 0x05, 0x01, 0x01, 0x05, 0x05, 0x08, 0x08, 0x01, 0x08, - 0x05, 0x05, 0x20, 0x01, 0x06, 0x06, 0x05, 0x43, 0x06, 0x40, 0x05, 0x05, - 0x07, 0x06, 0x06, 0x20, 0x01, 0xf8, 0x9f, 0xc0, 0xf0, 0x97, 0x3f, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x9c, 0x51, 0x00, - 0x11, 0x09, 0x00, 0x00, 0x30, 0x01, 0x42, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x47, 0x22, 0xa4, - 0x0b, 0x00, 0x00, 0x00, 0x02, 0x42, 0xa6, 0x30, 0xa3, 0x30, 0xfc, 0x10, - 0x30, 0xf3, 0x30, 0x06, 0x78, 0x1d, 0x56, 0x00, 0x69, 0x00, 0x15, 0x65, - 0x00, 0x6e, 0x20, 0x01, 0x61, 0x06, 0xe0, 0x7f, 0x65, 0x06, 0x49, 0x20, - 0x70, 0x57, 0x60, 0xff, 0x0e, 0xf1, 0x7f, 0x06, 0x51, 0xfd, 0x00, 0x00, - 0xf4, 0x7e, 0x02, 0x5f, 0x4e, 0xb3, 0x7e, 0xde, 0x5d, 0x06, 0x7b, 0x1d, - 0x48, 0x5c, 0xbe, 0x06, 0xdb, 0x97, 0x57, 0x43, 0x7d, 0x06, 0x92, 0x81, - 0x06, 0xf1, 0xff, 0x12, 0x04, 0x03, 0x35, 0x04, 0x3d, 0x04, 0x30, 0x04, - 0x0f, 0x14, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x00, 0x01, 0x08, 0x08, 0x09, - 0x08, 0x08, 0x01, 0x01, 0x12, 0x09, 0x08, 0x02, 0x20, 0x05, 0x01, 0x01, - 0x58, 0x17, 0x03, 0x02, 0x42, 0xd6, 0x30, 0xeb, 0x30, 0xb2, 0x28, 0x17, - 0xe9, 0x90, 0x28, 0x1b, 0xc8, 0x30, 0x06, 0x15, 0x1f, 0x42, 0x00, 0x75, - 0x00, 0x14, 0x72, 0x00, 0x67, 0x48, 0x1b, 0x6c, 0x28, 0x1b, 0x6e, 0x00, - 0x40, 0x64, 0x10, 0x15, 0xc0, 0x7f, 0x03, 0x5e, 0x14, 0x5c, 0x39, 0x68, - 0x20, 0x70, 0x51, 0x06, 0x78, 0x19, 0x80, 0xbd, 0x74, 0xb9, 0x90, 0x00, - 0xac, 0x80, 0xb7, 0xb8, 0xd2, 0x20, 0x00, 0xfc, 0x60, 0xc8, 0x06, 0x1f, - 0xbb, 0x0e, 0xf3, 0x7f, 0x11, 0x04, 0x43, 0x04, 0x40, 0x28, 0x04, 0x33, - 0x48, 0x1d, 0x3b, 0x28, 0x1f, 0x3d, 0x04, 0x34, 0xc0, 0x05, 0xc8, 0x23, - 0x10, 0x16, 0xf4, 0xff, 0x02, 0x01, 0x02, 0x01, 0x03, 0x03, 0x40, 0x02, - 0x20, 0x04, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x11, 0x06, 0x22, 0xbe, - 0x28, 0x17, 0x04, 0x42, 0xb1, 0x28, 0x17, 0x1a, 0xf3, 0x30, 0xc6, 0x28, - 0x19, 0x06, 0x5d, 0x33, 0x43, 0x2e, 0xa7, 0x72, 0x83, 0x2f, 0xb3, 0x6e, - 0x00, 0x74, 0x00, 0x68, 0x2f, 0xbb, 0x05, 0xfe, 0xb5, 0xa3, 0xf0, 0x7f, - 0x65, 0x05, 0xef, 0xb9, 0x4b, 0x00, 0xe4, 0x29, 0x17, 0x30, 0xfd, 0xdc, - 0x06, 0x5d, 0xb3, 0x91, 0x7f, 0x7a, 0x06, 0x21, 0x7d, 0xd1, 0xff, 0x06, - 0x30, 0x7f, 0x4b, 0x51, 0x0c, 0x69, 0x60, 0x7f, 0x98, 0x06, 0x78, 0x15, - 0x2f, 0xff, 0xcf, 0x78, 0x1d, 0xb9, 0x50, 0xd1, 0x06, 0x58, 0x13, 0x52, - 0x7f, 0xd3, 0x7f, 0xeb, 0x06, 0x43, 0xff, 0x51, 0xed, 0x06, 0x81, 0xff, - 0x1a, 0x28, 0x0b, 0x40, 0x04, 0x38, 0x28, 0x15, 0x5c, 0x42, 0x20, 0x05, - 0x4f, 0x05, 0xc8, 0x13, 0x08, 0x34, 0xff, 0x10, 0x0d, 0xf0, 0x7f, 0x03, - 0x02, 0x08, 0x03, 0x02, 0x04, 0x04, 0x28, 0x19, 0x04, 0x05, 0x02, 0x00, - 0x03, 0x03, 0x03, 0x03, 0x26, 0x21, 0x2b, 0x0a, 0x00, 0x00, 0x00, 0x05, - 0x42, 0xcb, 0x30, 0xfc, 0x30, 0x40, 0xc0, 0x20, 0x03, 0xfb, 0x30, 0xa8, - 0x30, 0xb9, 0x30, 0x41, 0xbf, 0x20, 0x0d, 0xe9, 0x30, 0xa4, 0x30, 0xd2, - 0x05, 0x88, 0x25, 0x04, 0x4c, 0x00, 0x6f, 0x00, 0x77, 0x2f, 0xad, 0x72, - 0x00, 0x17, 0x20, 0x00, 0x41, 0x2f, 0xbb, 0x73, 0x28, 0x1f, 0x38, 0x27, - 0x05, 0x78, 0x1f, 0x51, 0x42, 0x2f, 0xa3, 0x73, 0x20, 0x75, 0x65, 0x00, - 0x2d, 0x40, 0x7f, 0xb5, 0x50, 0x7d, 0x63, 0x28, 0xa3, 0x05, 0x58, 0x21, - 0x4e, 0x48, 0x8b, 0x64, 0x41, 0x01, 0x6e, 0xf6, 0x40, 0xfd, 0x31, 0x0b, - 0x72, 0x2f, 0xbf, 0x50, 0x85, 0x05, 0x70, 0xff, 0x61, 0xa0, 0x06, 0xa1, - 0x7f, 0x6a, 0x06, 0x80, 0x7d, 0x00, 0x00, 0x0b, 0x4e, 0x65, 0x04, 0x59, - 0x30, 0x57, 0x29, 0x52, 0x06, 0x78, 0x19, 0xc8, 0xb2, 0x00, 0x54, 0xb3, - 0x78, 0xc6, 0xa4, 0xc2, 0x30, 0xd1, 0x02, 0x7c, 0xb7, 0x74, 0xc7, 0x88, - 0xd7, 0x05, 0xf8, 0x21, 0x4e, 0x8d, 0x82, 0x7d, 0x2d, 0x00, 0x4f, 0x23, - 0x8b, 0x52, 0x81, 0x6e, 0x4b, 0xab, 0x11, 0x6a, 0x00, 0x6b, 0x05, 0x43, - 0x7f, 0x69, 0x00, 0x78, 0x42, 0x7f, 0x55, 0xc1, 0x06, 0x23, 0xff, 0x1d, - 0x28, 0x13, 0x36, 0x28, 0x15, 0x4f, 0x28, 0x13, 0x01, 0x20, 0x00, 0x10, - 0x04, 0x32, 0x04, 0x41, 0x28, 0x21, 0xf0, 0x38, 0x29, 0x05, 0x58, 0x23, - 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x04, 0x03, 0x01, 0x03, 0x40, - 0x02, 0x38, 0x19, 0x02, 0x06, 0x03, 0x04, 0x04, 0x04, 0x00, 0x04, 0x46, - 0x22, 0x1b, 0x0b, 0x00, 0x00, 0x06, 0x28, 0x42, 0xaa, 0x28, 0x17, 0xd0, - 0x06, 0xa8, 0x17, 0x55, 0x00, 0x70, 0xdc, 0x20, 0x01, 0x06, 0x98, 0x17, - 0x48, 0x2f, 0x2f, 0x38, 0x0d, 0x06, 0x78, 0x17, 0x4f, 0x00, 0x63, 0x62, - 0x06, 0x88, 0x13, 0x3f, 0xff, 0x41, 0x00, 0x6c, 0x2f, 0xa9, 0x06, 0x97, - 0x97, 0xa1, 0x06, 0xf0, 0x7f, 0x0a, 0x06, 0xe8, 0x17, 0x24, 0xc6, 0x84, - 0xbc, 0x06, 0xb8, 0x17, 0x78, 0x4f, 0x83, 0x7f, 0x06, 0x58, 0x17, 0x92, - 0x7f, 0x06, 0x38, 0x15, 0x00, 0x00, 0x12, 0x2e, 0x04, 0x35, 0x28, 0x05, - 0x45, 0x06, 0x88, 0x19, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x05, - 0x00, 0x07, 0x04, 0x04, 0x01, 0x01, 0x05, 0x05, 0x04, 0x00, 0x01, 0x03, - 0x07, 0x05, 0x05, 0x05, 0x05, 0x58, 0x00, 0x22, 0x29, 0x0a, 0x00, 0x00, - 0x07, 0x42, 0xb6, 0x02, 0x30, 0xeb, 0x30, 0xc4, 0x30, 0xd6, 0x20, 0x05, - 0xaf, 0xd1, 0x05, 0x88, 0x0b, 0xbf, 0xff, 0x53, 0x2f, 0xaf, 0x6c, 0x00, - 0x7a, 0x27, 0x1d, 0x56, 0x75, 0x2f, 0xa9, 0x67, 0x06, 0xa0, 0x7f, 0x6f, - 0x06, 0x40, 0x81, 0x07, 0x50, 0xff, 0x69, 0xed, 0x2f, 0xa9, 0x71, 0x81, - 0x39, 0x11, 0x73, 0x05, 0x69, 0x15, 0x00, 0x11, 0xff, 0x6f, 0x05, 0xef, - 0xb6, 0x00, 0x28, 0x84, 0x14, 0x5c, 0x28, 0x83, 0x21, 0x58, 0x80, 0x06, - 0x78, 0x17, 0x98, 0xc7, 0x20, 0xce, 0x80, 0xbd, 0x74, 0x1c, 0xb9, 0x6c, - 0xd0, 0x05, 0xf8, 0x11, 0x07, 0xf3, 0x7f, 0x06, 0x51, 0xff, 0x17, 0x04, - 0x00, 0x30, 0x04, 0x3b, 0x04, 0x4c, 0x04, 0x46, 0x04, 0x17, 0x31, 0x04, - 0x43, 0x28, 0x21, 0x33, 0x05, 0x28, 0x0b, 0x08, 0xb1, 0x7f, 0x10, 0x0d, - 0xf0, 0x7f, 0x20, 0x06, 0x04, 0x28, 0x0d, 0x06, 0x06, 0x06, 0x05, 0x06, - 0x20, 0x04, 0x04, 0x20, 0x06, 0x06, 0xfd, 0x21, 0x44, 0x09, 0x00, 0x00, - 0x00, 0x08, 0x42, 0xb7, 0x30, 0xe5, 0x30, 0x00, 0xbf, 0x30, 0xa4, 0x30, - 0xa2, 0x30, 0xfc, 0x30, 0x57, 0xde, 0x06, 0x28, 0x1d, 0x53, 0x2f, 0xab, - 0x79, 0x05, 0xee, 0xa3, 0x00, 0x50, 0x7f, 0x05, 0x77, 0x09, 0xa2, 0x00, - 0x10, 0xff, 0x65, 0x40, 0x7d, 0x72, 0x00, 0x6d, 0x2f, 0xb7, 0x72, 0xd6, - 0x05, 0x2d, 0xa3, 0xf1, 0x7f, 0x69, 0x06, 0xa1, 0x7f, 0x45, 0x4e, 0xa1, - 0x06, 0x90, 0x81, 0xbd, 0x01, 0x65, 0x82, 0x84, 0x29, 0x52, 0x9a, 0x4e, - 0x06, 0x78, 0x17, 0x00, 0x88, 0xc2, 0xc0, 0xd0, 0x74, 0xc7, 0xb4, 0xc5, - 0x38, 0xc8, 0xb9, 0x06, 0x58, 0x1b, 0x51, 0xff, 0xb2, 0x7d, 0x65, 0x00, - 0x6e, 0xa0, 0x06, 0x01, 0xff, 0xed, 0x06, 0x84, 0x01, 0x28, 0x04, 0x42, - 0x04, 0x38, 0x8e, 0x28, 0x0f, 0x38, 0x04, 0x4f, 0x05, 0xe8, 0x11, 0x07, - 0xf4, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x07, 0x82, 0x48, 0x14, 0x07, 0x07, - 0x06, 0x05, 0x09, 0x20, 0x05, 0x07, 0x00, 0x07, 0x78, 0x21, 0xfa, 0x0a, - 0x00, 0x00, 0x09, 0x03, 0x42, 0xc6, 0x30, 0xa3, 0x30, 0xed, 0x28, 0x0f, - 0x06, 0x7d, 0x2f, 0x5f, 0x54, 0x48, 0x15, 0x6f, 0x2f, 0xb3, 0x0e, 0x70, - 0x7f, 0x37, 0x95, 0x07, 0x30, 0x7f, 0x05, 0xff, 0xa9, 0x81, 0x07, 0x50, - 0xff, 0x82, 0x84, 0x57, 0x7f, 0x14, 0x5c, 0x06, 0x78, 0x15, 0x03, 0x00, - 0x00, 0xf0, 0xd2, 0x64, 0xb8, 0x06, 0x18, 0x0d, 0x08, 0x32, 0x7f, 0xa0, - 0x06, 0x59, 0x97, 0x22, 0x48, 0x15, 0x3e, 0x04, 0x3b, 0x04, 0x4c, 0xe4, - 0x06, 0x48, 0x17, 0x0f, 0x14, 0xff, 0x10, 0x06, 0xd0, 0xff, 0x08, 0x06, - 0x38, 0x0d, 0x08, 0x08, 0x80, 0x28, 0x13, 0x06, 0x08, 0x08, 0x08, 0x08, - 0x9c, 0x21, 0x00, 0x18, 0x08, 0x00, 0x00, 0x0a, 0x42, 0xd5, 0x30, 0x15, - 0xa9, 0x30, 0xa2, 0x20, 0x01, 0xfc, 0x28, 0x1b, 0xd9, 0x28, 0x1f, 0x54, - 0xaf, 0x05, 0xe8, 0x21, 0x56, 0x28, 0x13, 0x72, 0x4f, 0x27, 0x6c, 0x00, - 0x58, 0x62, 0x4f, 0x35, 0x67, 0x05, 0xcf, 0xb7, 0x10, 0x0e, 0xf0, 0x7f, - 0x8f, 0x79, 0xc9, 0x01, 0x62, 0x14, 0x5c, 0x1d, 0x8d, 0x3c, 0x68, 0x06, - 0x5b, 0x19, 0x00, 0xec, 0xd3, 0xb4, 0xc5, 0x44, 0xc5, 0x7c, 0xb9, 0x03, - 0xa0, 0xbc, 0x74, 0xb9, 0x6c, 0xd0, 0x06, 0x18, 0x21, 0x0e, 0xf3, 0x7f, - 0x46, 0x24, 0x28, 0x13, 0x40, 0x04, 0x30, 0x28, 0x1b, 0x38, 0x19, 0x31, - 0x2c, 0x04, 0x35, 0x28, 0x25, 0x33, 0x05, 0xa8, 0x21, 0x10, 0x16, 0xf4, - 0xff, 0x09, 0x09, 0x38, 0x09, 0x08, 0x20, 0x03, 0x20, 0x04, 0x40, 0x06, - 0x09, 0xc7, 0x21, 0x24, 0xee, 0x06, 0x00, 0x3f, 0xff, 0x01, 0x08, 0x20, - 0x21, 0x08, 0x01, 0x08, 0x01, 0x09, 0x08, 0x02, 0x20, 0x05, 0x01, 0x01, - 0x02, 0x8c, 0x20, 0x01, 0x03, 0x03, 0x02, 0x20, 0x04, 0x20, 0x0b, 0x02, - 0x02, 0x24, 0x02, 0x03, 0x20, 0x01, 0x04, 0x04, 0x20, 0x11, 0x04, 0x05, - 0x00, 0x02, 0x03, 0x03, 0x03, 0x03, 0x04, 0x03, 0x01, 0xc0, 0x20, 0x1d, - 0x20, 0x11, 0x02, 0x06, 0x03, 0x04, 0x04, 0x04, 0x00, 0x04, 0x05, 0x07, - 0x04, 0x04, 0x01, 0x01, 0x05, 0x00, 0x05, 0x04, 0x01, 0x03, 0x07, 0x05, - 0x05, 0x05, 0x12, 0x05, 0x06, 0x04, 0x30, 0x04, 0x06, 0x06, 0x20, 0x08, - 0x04, 0x99, 0x20, 0x06, 0x06, 0x07, 0x40, 0x0c, 0x28, 0x9c, 0x05, 0x09, - 0x20, 0x05, 0xf0, 0x28, 0xa9, 0xe8, 0xaf, 0xf0, 0xa7, 0x3f, 0xff, 0x00, - 0x11, 0xac, 0x20, 0x00, 0x11, 0x03, 0x00, 0x00, 0x30, 0x01, 0x43, 0x14, - 0x20, 0x50, 0x08, 0xe2, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x27, 0x24, 0x1b, 0x28, 0x1a, 0x02, 0x00, 0x43, 0xd6, 0x30, 0xea, - 0x30, 0xe5, 0x30, 0xc3, 0x00, 0x30, 0xbb, 0x30, 0xeb, 0x30, 0x96, 0x99, - 0xfd, 0x01, 0x90, 0x30, 0x57, 0xdf, 0x57, 0x0f, 0x57, 0x05, 0x98, 0x2b, - 0x01, 0x42, 0x00, 0x72, 0x00, 0x75, 0x00, 0x73, 0x20, 0x01, 0x11, 0x65, - 0x00, 0x6c, 0x20, 0x07, 0x20, 0x00, 0x52, 0x20, 0x09, 0x01, 0x67, 0x00, - 0x69, 0x00, 0x6f, 0x00, 0x6e, 0x05, 0x28, 0xb2, 0x11, 0x52, 0x00, 0xe9, - 0x80, 0x6d, 0x20, 0x00, 0x64, 0x20, 0x85, 0x54, 0x20, 0x60, 0x93, 0x78, - 0x40, 0x91, 0x6c, 0x20, 0x97, 0x73, 0x00, 0x01, 0x2d, 0x00, 0x43, 0x00, - 0x61, 0x00, 0x70, 0x20, 0x95, 0x7d, 0x74, 0x20, 0x07, 0x30, 0x13, 0x03, - 0x90, 0x7f, 0x90, 0xed, 0x50, 0x79, 0xfc, 0x81, 0x0d, 0x15, 0x2d, 0x00, - 0x48, 0x20, 0x75, 0x75, 0x20, 0x77, 0x74, 0x21, 0x21, 0xbd, 0x30, 0x79, - 0x64, 0x20, 0x7f, 0x03, 0xf0, 0xff, 0x91, 0x6d, 0x30, 0xfb, 0x64, 0x21, - 0x79, 0xed, 0x00, 0x31, 0x01, 0x04, 0x91, 0x7f, 0x51, 0xed, 0xf3, 0x00, - 0x01, 0x7f, 0x52, 0x11, 0x61, 0x00, 0x21, 0x7d, 0x80, 0x03, 0xba, 0xc9, - 0x03, 0x5e, 0x81, 0x9c, 0x5e, 0x58, 0x14, 0x42, 0x5c, 0x32, 0xfb, 0x27, - 0x59, 0x3a, 0x53, 0x05, 0xfb, 0x25, 0x0c, 0x00, 0xbe, 0x3c, 0xb9, 0x40, - 0xc1, 0x20, 0x00, 0xc0, 0x1a, 0xc9, 0xed, 0xc5, 0x06, 0x3b, 0xa1, 0x00, - 0x13, 0x7f, 0x48, 0x23, 0x79, 0x6f, 0x35, 0x00, 0x66, 0x23, 0x0b, 0x32, - 0x73, 0x65, 0x43, 0x13, 0x6c, 0x23, 0x8f, 0x15, 0x6a, 0x00, 0x6b, 0x23, - 0x9d, 0x47, 0x23, 0xa7, 0x77, 0x43, 0x13, 0xdd, 0x03, 0x52, 0x89, 0x73, - 0xed, 0xe3, 0x23, 0xef, 0x00, 0x33, 0x7f, 0x31, 0xff, 0x20, 0x23, 0x7f, - 0x40, 0x20, 0x04, 0x62, 0x03, 0x11, 0x04, 0x40, 0x04, 0x4e, 0x04, 0x41, - 0x41, 0x20, 0x01, 0x35, 0x04, 0x3b, 0x04, 0x4c, 0x20, 0x09, 0x00, 0x3a, - 0x04, 0x38, 0x04, 0x39, 0x04, 0x20, 0x00, 0x04, 0x41, 0x04, 0x42, 0x04, - 0x3e, 0x20, 0x13, 0x38, 0x04, 0x05, 0x47, 0x04, 0x3d, 0x04, 0x4b, 0x40, - 0x13, 0x3e, 0x20, 0x1d, 0x03, 0x40, 0x04, 0x43, 0x04, 0x33, 0x04, 0x0b, - 0x74, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x05, 0x01, 0x01, 0x01, 0x02, 0x02, - 0x20, 0x04, 0x01, 0x40, 0x04, 0x20, 0x01, 0x01, 0x58, 0x17, 0x03, 0x43, - 0xd5, 0x30, 0xe9, 0x03, 0x30, 0xf3, 0x30, 0xc7, 0x30, 0xec, 0x20, 0x05, - 0x05, 0xf8, 0x13, 0xab, 0x3f, 0xff, 0x46, 0x45, 0xfb, 0x6e, 0x47, 0x91, - 0x72, 0x04, 0xa6, 0x7f, 0x01, 0x58, 0x17, 0x5e, 0x66, 0x46, 0x89, 0x6d, - 0x80, 0x91, 0x05, 0xf0, 0xff, 0x05, 0x39, 0x09, 0xf1, 0x7f, 0x69, 0xbc, - 0x61, 0x7f, 0x72, 0x05, 0x40, 0xef, 0x01, 0x38, 0x17, 0xb2, 0x13, 0x04, - 0xf2, 0x11, 0x5b, 0x4f, 0x0c, 0x70, 0x51, 0xb7, 0x5f, 0x06, 0x38, 0x11, - 0x68, 0x17, 0xd5, 0x91, 0x05, 0xb7, 0xdc, 0xb4, 0x74, 0xb9, 0x06, 0x78, - 0x19, 0x56, 0x49, 0x7b, 0xbd, 0x93, 0x81, 0x65, 0x05, 0xe2, 0x83, 0x93, - 0xff, 0x32, 0x7f, 0x06, 0x13, 0xff, 0x24, 0x28, 0x0d, 0x11, 0x30, 0x04, - 0x3c, 0x20, 0x03, 0x3d, 0x04, 0x34, 0xa8, 0x15, 0x57, 0x40, 0x28, 0x27, - 0x33, 0x28, 0x21, 0x3e, 0x28, 0x13, 0x0c, 0xb4, 0xff, 0x10, 0x0e, 0xf0, - 0x7f, 0x62, 0x02, 0x38, 0x15, 0x20, 0x04, 0x02, 0x01, 0x03, 0x30, 0x05, - 0x02, 0x83, 0x58, 0x17, 0x04, 0x43, 0xef, 0x30, 0xed, 0x06, 0x68, 0x11, - 0x5f, 0xff, 0x5d, 0x57, 0x4f, 0x7f, 0x6c, 0x4f, 0xaf, 0x36, 0xa1, 0x06, - 0xd8, 0x17, 0x77, 0xa0, 0x8d, 0xff, 0x3f, 0x3f, 0x05, 0xf0, 0xff, 0x05, - 0xf5, 0x95, 0x36, 0x17, 0x06, 0xf1, 0x7f, 0x00, 0x18, 0x17, 0x50, 0x93, - 0x05, 0x52, 0x11, 0x08, 0xe6, 0x74, 0x86, 0x96, 0x06, 0x98, 0x15, 0x00, - 0x00, 0x48, 0x1b, 0xc6, 0x71, 0xb8, 0x06, 0x78, 0x13, 0x00, 0x13, 0x7f, - 0xeb, 0x06, 0x28, 0x97, 0x3f, 0xfd, 0xc5, 0x3a, 0x15, 0x06, 0x33, 0xfd, - 0x00, 0x00, 0x12, 0x28, 0x15, 0x3b, 0x28, 0x1b, 0xf2, 0x37, 0xff, 0x06, - 0x18, 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x03, 0x03, 0x70, - 0x01, 0x02, 0x8d, 0x40, 0x0a, 0xe3, 0x23, 0x75, 0x28, 0x17, 0x00, 0x1f, - 0xff, 0x01, 0x38, 0x3d, 0xbe, 0x20, 0x04, 0x01, 0x40, 0x04, 0x48, 0x4a, - 0xc8, 0x4f, 0xf0, 0x47, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0xac, 0x20, 0x00, - 0x11, 0x03, 0x00, 0x00, 0x30, 0x01, 0x44, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x2f, 0x1f, 0x17, - 0x0d, 0x00, 0x00, 0x00, 0x02, 0x44, 0xdc, 0x30, 0xb9, 0x30, 0xcb, 0x00, - 0x30, 0xa2, 0x30, 0xfb, 0x30, 0xd8, 0x30, 0xeb, 0x00, 0x30, 0xc4, 0x30, - 0xa7, 0x30, 0xb4, 0x30, 0xd3, 0x01, 0x30, 0xca, 0x30, 0x23, 0x90, 0xa6, - 0x90, 0x05, 0x38, 0x31, 0x04, 0x46, 0x00, 0x65, 0x00, 0x64, 0x20, 0x03, - 0x72, 0x00, 0x00, 0x61, 0x00, 0x74, 0x00, 0x69, 0x00, 0x6f, 0x00, 0x15, - 0x6e, 0x00, 0x20, 0x20, 0x05, 0x66, 0x20, 0x05, 0x42, 0x20, 0x0d, 0x55, - 0x73, 0x20, 0x0f, 0x69, 0x20, 0x1b, 0x20, 0x20, 0x1f, 0x6e, 0x20, 0x29, - 0x15, 0x20, 0x00, 0x48, 0x40, 0x2d, 0x7a, 0x20, 0x37, 0x67, 0x20, 0x2d, - 0x5a, 0x76, 0x20, 0x33, 0x6e, 0x20, 0x3b, 0x02, 0x90, 0x7f, 0xe9, 0x20, - 0x7f, 0xe9, 0xe2, 0xe0, 0x7f, 0x30, 0x91, 0xb0, 0x7f, 0x65, 0x00, 0x2d, - 0x80, 0x77, 0xe9, 0xae, 0xa0, 0x77, 0x65, 0x03, 0x20, 0xff, 0xf6, 0x00, - 0x20, 0xff, 0xb0, 0x79, 0x31, 0x0f, 0x75, 0xb6, 0x00, 0x40, 0xfb, 0x77, - 0x02, 0xe0, 0xfb, 0xf1, 0x7f, 0x7a, 0x61, 0x7f, 0x30, 0xfb, 0x64, 0xc6, - 0x21, 0x8b, 0xd1, 0x81, 0x2d, 0x00, 0x45, 0x03, 0xa1, 0x77, 0x00, 0x31, - 0xff, 0x63, 0xbc, 0x21, 0xff, 0xf3, 0x00, 0x41, 0x7f, 0x30, 0x7d, 0x03, - 0xd1, 0xf7, 0x7b, 0x0d, 0xe2, 0x6c, 0x0c, 0xd1, 0x9e, 0x54, 0x80, 0x05, - 0x52, 0xeb, 0x00, 0x3b, 0x81, 0xf4, 0xbc, 0x00, 0xa4, 0xc2, 0xc8, 0xb2, - 0x44, 0xc5, 0xe4, 0xd5, 0x00, 0x74, 0xb9, 0xb4, 0xcc, 0xe0, 0xac, 0x44, - 0xbe, 0x00, 0x98, 0xb0, 0x20, 0x00, 0xf0, 0xc5, 0x29, 0xbc, 0xaa, 0x05, - 0x5b, 0xaf, 0x4d, 0x43, 0x63, 0x6c, 0x23, 0x79, 0x6d, 0x22, 0xe3, 0x4b, - 0xab, 0x23, 0x87, 0x6f, 0x63, 0x89, 0x73, 0x21, 0x8f, 0x68, 0x43, 0x07, - 0xf3, 0xa3, 0xc7, 0x03, 0x12, 0xf5, 0x00, 0x53, 0xff, 0xe7, 0x00, 0xe3, - 0x23, 0xff, 0x33, 0x7d, 0x33, 0xef, 0x60, 0x42, 0x22, 0x0b, 0x04, 0xf1, - 0xfd, 0x00, 0x00, 0x24, 0x04, 0x35, 0x20, 0x04, 0x34, 0x20, 0x03, 0x40, - 0x04, 0x30, 0x04, 0x46, 0x00, 0x04, 0x38, 0x04, 0x4f, 0x04, 0x20, 0x00, - 0x11, 0x02, 0x04, 0x3e, 0x04, 0x41, 0x04, 0x3d, 0x20, 0x0d, 0x38, 0xd5, - 0x20, 0x0d, 0x30, 0x03, 0x13, 0x40, 0x21, 0x46, 0x20, 0x2b, 0x33, 0x20, - 0x1b, 0x43, 0x32, 0x20, 0x27, 0x3d, 0x04, 0x4b, 0x04, 0x0b, 0x54, 0xff, - 0x10, 0x0e, 0xd0, 0x7f, 0x15, 0x01, 0x02, 0x02, 0x20, 0x01, 0x01, 0x20, - 0x06, 0x03, 0x20, 0x05, 0x22, 0x01, 0x01, 0x58, 0x17, 0x03, 0x44, 0xbb, - 0x28, 0x0d, 0xd3, 0x80, 0x28, 0x17, 0xba, 0x4e, 0x71, 0x51, 0x8c, 0x54, - 0xfd, 0x55, 0x56, 0x05, 0xff, 0xbd, 0x52, 0x28, 0x17, 0x70, 0x26, 0xf7, - 0x62, 0x44, 0x9b, 0x57, 0x6b, 0x48, 0x01, 0x53, 0x28, 0x25, 0x70, 0x28, - 0x11, 0x30, 0x0d, 0x05, 0x10, 0x7f, 0x5a, 0xe9, 0xa0, 0x7f, 0x71, 0x27, - 0x81, 0x38, 0x11, 0x73, 0x48, 0xa9, 0x62, 0xef, 0x67, 0x21, 0xf8, 0x23, - 0x03, 0xbf, 0xe1, 0x53, 0x60, 0x69, 0xb5, 0x87, 0xf1, 0x13, 0x05, 0x51, - 0x7f, 0xbe, 0x51, 0x81, 0x63, 0x61, 0x81, 0x50, 0xff, 0x39, 0x8f, 0x04, - 0xd8, 0x21, 0x51, 0xff, 0xfa, 0xc3, 0xe0, 0x7d, 0x05, 0x91, 0xff, 0x5e, - 0x58, 0xcf, 0x65, 0x06, 0x52, 0xf9, 0x5f, 0xff, 0x00, 0xa4, 0xc2, 0x85, - 0xb9, 0xa4, 0xc2, 0x74, 0xce, 0x00, 0x20, 0x00, 0xf5, 0xac, 0x54, 0xd6, - 0x6d, 0xad, 0xf7, 0x05, 0xff, 0xbd, 0x52, 0x7f, 0x3b, 0x5d, 0x00, 0x72, - 0x7f, 0x65, 0x04, 0xc2, 0x81, 0x00, 0x51, 0xff, 0x3b, 0xa7, 0xd0, 0x3b, - 0xf1, 0x05, 0x13, 0xff, 0x20, 0x28, 0x17, 0x41, 0x04, 0x3f, 0x04, 0x05, - 0x43, 0x04, 0x31, 0x04, 0x3b, 0x28, 0x17, 0x3a, 0x28, 0x1f, 0x16, 0x20, - 0x00, 0x21, 0x48, 0x29, 0x31, 0x28, 0x1d, 0x30, 0x0f, 0x4f, 0xe3, 0x03, - 0x48, 0x01, 0x08, 0x74, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x02, 0x03, 0x03, - 0x20, 0x01, 0x28, 0x15, 0x60, 0x03, 0x28, 0x18, 0x28, 0x23, 0xd6, 0x1f, - 0x3a, 0x0c, 0x00, 0x08, 0x00, 0x04, 0x44, 0xd6, 0x28, 0x17, 0xc1, 0x30, - 0xe5, 0x14, 0x30, 0xb3, 0x30, 0x06, 0x5d, 0x31, 0x42, 0x2f, 0xfb, 0x0d, - 0x01, 0x56, 0x6b, 0x4c, 0x27, 0x44, 0x4c, 0xa5, 0x74, 0x2f, 0xbb, 0x36, - 0x9f, 0x74, 0xb5, 0x06, 0x00, 0x7f, 0x28, 0x4f, 0x25, 0xb0, 0x81, 0x29, - 0x05, 0xa0, 0xff, 0x2d, 0xc0, 0xff, 0x6b, 0x6b, 0x05, 0x60, 0xff, 0x91, - 0x73, 0x65, 0x2e, 0x25, 0x74, 0x6d, 0xaf, 0x58, 0x09, 0xde, 0x71, 0x99, - 0x05, 0x50, 0x7f, 0x69, 0x80, 0x7d, 0x59, 0x87, 0x05, 0x30, 0x7d, 0x2b, - 0x19, 0x5e, 0x00, 0x14, 0x5c, 0x47, 0x59, 0xd1, 0x79, 0x79, 0x72, 0x20, - 0x3a, 0x53, 0x06, 0x38, 0x19, 0x0c, 0xbe, 0x74, 0xb9, 0x58, 0x1e, 0xce, - 0x54, 0xcf, 0x06, 0x58, 0x95, 0xb3, 0x7f, 0x06, 0x59, 0x17, 0x06, 0xf1, - 0xff, 0x1e, 0xaa, 0x28, 0x09, 0x40, 0x28, 0x15, 0x33, 0x28, 0x0d, 0x11, - 0x28, 0x0b, 0x47, 0xb8, 0x28, 0x19, 0x3e, 0x04, 0xa8, 0x07, 0x08, 0xb4, - 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x03, 0x01, 0x01, 0xb0, 0x20, 0x01, 0x03, - 0x40, 0x06, 0x38, 0x22, 0xe8, 0x1f, 0x5f, 0x0d, 0xa5, 0x00, 0x3f, 0xff, - 0x01, 0x38, 0x34, 0x02, 0x01, 0x20, 0x06, 0x03, 0x20, 0x05, 0xf0, 0x20, - 0x07, 0xe8, 0x4f, 0xf0, 0x47, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x45, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x79, 0xee, 0x6b, 0x12, 0x00, 0x00, 0x00, 0x01, 0x45, 0xdc, 0x30, - 0xc4, 0x30, 0xef, 0x10, 0x30, 0xca, 0x30, 0x06, 0x78, 0x1d, 0x42, 0x00, - 0x6f, 0x00, 0x00, 0x74, 0x00, 0x73, 0x00, 0x77, 0x00, 0x61, 0x00, 0x68, - 0x6e, 0x20, 0x03, 0x0e, 0x70, 0x7f, 0x75, 0x10, 0x06, 0x60, 0xff, 0x5a, - 0x53, 0x28, 0x04, 0x83, 0xe6, 0x74, 0xb3, 0x7e, 0x06, 0x7b, 0x1d, 0xf4, - 0xbc, 0x03, 0x20, 0xce, 0x40, 0xc6, 0x98, 0xb0, 0x0e, 0xf3, 0x7f, 0x06, - 0x72, 0xff, 0x00, 0x11, 0x04, 0x3e, 0x04, 0x42, 0x04, 0x41, 0x04, 0x07, - 0x32, 0x04, 0x30, 0x04, 0x3d, 0x20, 0x03, 0x10, 0x06, 0x74, 0xff, 0x10, - 0x06, 0x70, 0xff, 0x3c, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, - 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x94, 0xec, 0x00, 0x11, 0x1c, 0x00, 0x00, 0x30, 0x01, 0x46, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x5e, 0x1e, 0x92, 0x10, 0x00, 0x00, 0x00, 0x02, 0x46, 0xbd, 0x30, - 0xd5, 0x30, 0xa3, 0x04, 0x30, 0xa2, 0x30, 0x02, 0x5e, 0x06, 0x58, 0x1f, - 0x53, 0x00, 0x00, 0x6f, 0x00, 0x66, 0x00, 0x69, 0x00, 0x61, 0x00, 0x11, - 0x20, 0x00, 0x43, 0x20, 0x07, 0x74, 0x00, 0x79, 0x06, 0x80, 0x7f, 0x14, - 0x28, 0x00, 0x76, 0x20, 0x89, 0x6c, 0x20, 0x01, 0x65, 0x00, 0x51, 0x29, - 0x06, 0x40, 0x7f, 0x53, 0x20, 0xff, 0x61, 0x00, 0x64, 0x21, 0x05, 0xed, - 0x06, 0x10, 0x7f, 0x06, 0x5a, 0x1f, 0x31, 0xf3, 0x75, 0x20, 0xf1, 0x30, - 0xf5, 0x20, 0x20, 0xf9, 0x68, 0x65, 0x22, 0x07, 0x52, 0x13, 0xed, 0x05, - 0x40, 0x93, 0x22, 0x7d, 0x5e, 0x10, 0x97, 0x9a, 0x4e, 0x06, 0x72, 0xfd, - 0x00, 0x00, 0x8c, 0xc1, 0x0d, 0x3c, 0xd5, 0x44, 0xc5, 0x06, 0x9b, 0x9b, - 0xd2, 0xff, 0x73, 0x62, 0x7f, 0xd7, 0x05, 0x72, 0xfd, 0x33, 0xff, 0xf3, - 0xa3, 0x7f, 0x63, 0x24, 0x09, 0x52, 0x0b, 0x05, 0x73, 0x81, 0x00, 0x21, - 0x04, 0x3e, 0x04, 0x44, 0x04, 0x38, 0x04, 0x30, 0x4f, 0x04, 0x0f, 0x14, - 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x01, 0x14, 0x15, 0x16, 0x00, 0x16, 0x03, - 0x01, 0x01, 0x16, 0x15, 0x17, 0x14, 0x0a, 0x01, 0x01, 0x01, 0x01, 0x58, - 0x17, 0x03, 0x88, 0x17, 0xde, 0x46, 0x5d, 0x07, 0x18, 0x17, 0x50, 0x00, - 0x72, 0x28, 0x25, 0x37, 0x9b, 0x6e, 0xa2, 0x24, 0x21, 0x65, 0x06, 0x28, - 0x17, 0x6f, 0x00, 0x62, 0x28, 0x17, 0x61, 0xea, 0x45, 0x1f, 0x05, 0x58, - 0x19, 0xd8, 0x97, 0x52, 0x28, 0x91, 0x67, 0x29, 0x25, 0x6f, 0xf7, 0x21, - 0x01, 0x05, 0x58, 0x99, 0xb0, 0x71, 0x37, 0x93, 0x64, 0x29, 0xa3, 0x77, - 0x99, 0x05, 0x38, 0x2d, 0xfc, 0xd1, 0xf3, 0x5a, 0x1f, 0x05, 0xb8, 0x1d, - 0x58, 0x17, 0x06, 0x72, 0xfd, 0x78, 0x17, 0x20, 0x00, 0x3b, 0xfc, 0xc8, - 0x07, 0x38, 0x17, 0x06, 0x12, 0xff, 0x73, 0xf3, 0xed, 0x00, 0x21, 0xff, - 0x78, 0x31, 0x80, 0x05, 0x38, 0x17, 0x39, 0x04, 0x41, 0x04, 0x3a, 0x04, - 0x30, 0x80, 0x28, 0x1f, 0x20, 0x00, 0x3e, 0x04, 0x31, 0x04, 0x3b, 0x83, - 0x20, 0x0b, 0x41, 0x04, 0x42, 0x04, 0x4c, 0x04, 0xe8, 0x2f, 0x07, 0xb4, - 0xff, 0x80, 0x10, 0x0e, 0x30, 0x7f, 0x02, 0x15, 0x14, 0x15, 0x10, 0x0f, - 0x02, 0x00, 0x02, 0x15, 0x0e, 0x16, 0x15, 0x02, 0x02, 0x02, 0x40, 0x02, - 0x58, 0x17, 0x04, 0x46, 0xd6, 0x30, 0xe9, 0x30, 0x01, 0xb4, 0x30, 0xa8, - 0x30, 0xd6, 0x30, 0xb0, 0x20, 0x09, 0x55, 0xc8, 0x06, 0x08, 0x1f, 0x42, - 0x47, 0x87, 0x67, 0x2f, 0xb5, 0x65, 0x2f, 0xad, 0x76, 0x67, 0x28, 0x19, - 0x3f, 0x2f, 0x0e, 0x50, 0x7f, 0x77, 0x0e, 0xe0, 0xff, 0x06, 0x31, 0xff, - 0x03, 0x00, 0x5e, 0xc9, 0x62, 0x3c, 0x68, 0x36, 0x80, 0x2b, 0x04, 0x59, - 0x3c, 0x68, 0xd2, 0x52, 0x06, 0x1b, 0x1d, 0x14, 0xbe, 0x00, 0x7c, 0xb7, - 0xe0, 0xac, 0x08, 0xc6, 0x0c, 0xbe, 0x03, 0xf8, 0xad, 0x7c, 0xb7, 0xdc, - 0xb4, 0x05, 0xf8, 0x21, 0x93, 0x7f, 0x54, 0xeb, 0x0e, 0x43, 0x7f, 0x11, - 0x48, 0x01, 0x33, 0x28, 0x1d, 0x35, 0x04, 0x57, 0x32, 0x20, 0x07, 0x40, - 0x28, 0x1b, 0x34, 0x04, 0xe8, 0x0b, 0x10, 0x00, 0x74, 0xff, 0x10, 0x06, - 0x30, 0xff, 0x14, 0x03, 0x01, 0x01, 0x20, 0x01, 0x03, 0x40, 0x06, 0x03, - 0x03, 0x04, 0x03, 0x03, 0xe1, 0x1d, 0x6d, 0x28, 0x17, 0x05, 0x46, 0x01, - 0xd7, 0x30, 0xec, 0x30, 0xd9, 0x30, 0xf3, 0x06, 0x08, 0x0f, 0xad, 0x9e, - 0x2f, 0x6c, 0x48, 0x11, 0x65, 0x2f, 0x21, 0x0e, 0x90, 0x7f, 0x77, 0x0e, - 0xe0, 0xff, 0x81, 0x06, 0x91, 0xff, 0x6e, 0x66, 0x17, 0x52, 0x87, 0x65, - 0x06, 0x72, 0xfd, 0x00, 0x00, 0x00, 0x0c, 0xd5, 0x08, 0xb8, 0xa4, 0xbc, - 0xd8, 0x05, 0xf8, 0x0d, 0x0f, 0x93, 0x7f, 0x1f, 0x28, 0x17, 0x38, 0x11, - 0x35, 0x04, 0x3d, 0xe0, 0x05, 0xa8, 0x0d, 0x0f, 0xf4, 0xff, 0x10, 0x06, - 0x90, 0xff, 0x04, 0x0c, 0x0d, 0x0d, 0x0d, 0x00, 0x0d, 0x04, 0x04, 0x0d, - 0x0c, 0x0f, 0x0c, 0x04, 0x00, 0x04, 0x04, 0x04, 0xe0, 0x1e, 0x82, 0x11, - 0x00, 0x00, 0x00, 0x06, 0x46, 0xd3, 0x30, 0xc7, 0x30, 0xa3, 0x8b, 0x06, - 0xa8, 0x17, 0x56, 0x00, 0x69, 0x2f, 0x9f, 0x69, 0x06, 0x68, 0x15, 0x07, - 0x10, 0x7f, 0x61, 0x57, 0x0e, 0xe0, 0xff, 0x06, 0xf1, 0xff, 0xf4, 0x7e, - 0x01, 0x4e, 0x06, 0x98, 0x15, 0x03, 0x00, 0x00, 0x44, 0xbe, 0x18, 0xb5, - 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x07, 0x12, 0x04, 0x38, 0x04, 0x34, - 0x20, 0x03, 0x06, 0x58, 0x15, 0x0f, 0x14, 0xff, 0x80, 0x10, 0x06, 0xf0, - 0xff, 0x05, 0x1a, 0x1a, 0x1b, 0x1b, 0x1a, 0x05, 0x60, 0x05, 0x20, 0x03, - 0x20, 0x05, 0x05, 0x05, 0x48, 0x1f, 0x44, 0x00, 0x10, 0x00, 0x00, 0x07, - 0x46, 0xd0, 0x30, 0xeb, 0x31, 0x30, 0xca, 0x06, 0x88, 0x15, 0x38, 0x17, - 0x61, 0x00, 0x72, 0x2f, 0xab, 0x58, 0x61, 0x0e, 0x60, 0x7f, 0x57, 0x0e, - 0xe0, 0xff, 0x06, 0xf1, 0xff, 0xe6, 0x74, 0x14, 0x10, 0x5c, 0xb3, 0x7e, - 0x06, 0x98, 0x19, 0x14, 0xbc, 0x74, 0xb9, 0x30, 0x98, 0xb0, 0x06, 0x98, - 0x19, 0x0e, 0xf3, 0x7f, 0x12, 0x04, 0x30, 0x04, 0x5c, 0x40, 0x28, 0x15, - 0x30, 0x06, 0x88, 0x17, 0x10, 0x06, 0xd3, 0xff, 0x0e, 0xf6, 0x7f, 0x06, - 0x18, 0x00, 0x18, 0x19, 0x19, 0x18, 0x06, 0x06, 0x19, 0x18, 0x40, 0x03, - 0x20, 0x05, 0x06, 0x06, 0xb9, 0x1e, 0xd7, 0x13, 0x04, 0x00, 0x00, 0x08, - 0x46, 0xd6, 0x28, 0x17, 0xac, 0x30, 0x45, 0xb9, 0x06, 0x88, 0x19, 0x42, - 0x00, 0x75, 0x28, 0x17, 0x67, 0x28, 0x1d, 0x5c, 0x73, 0x06, 0x60, 0x7f, - 0x6f, 0x06, 0xc0, 0x81, 0x07, 0x10, 0xff, 0x0e, 0xd0, 0x7f, 0x03, 0x5e, - 0x02, 0x14, 0x5c, 0xa0, 0x52, 0xaf, 0x65, 0x06, 0x7b, 0x19, 0x80, 0x01, - 0xbd, 0x74, 0xb9, 0x00, 0xac, 0xa4, 0xc2, 0x06, 0x78, 0x19, 0xa2, 0x32, - 0xff, 0x65, 0x0e, 0xa2, 0xff, 0x11, 0x04, 0x43, 0x28, 0x17, 0x33, 0xb8, - 0x28, 0x1d, 0x41, 0x06, 0x48, 0x19, 0x10, 0x06, 0xf3, 0xff, 0x0e, 0xf5, - 0x7f, 0x07, 0x02, 0x02, 0xa0, 0x20, 0x01, 0x07, 0x40, 0x06, 0x07, 0x07, - 0x07, 0x07, 0x3d, 0x20, 0x1e, 0x86, 0x28, 0x17, 0x09, 0x46, 0xc9, 0x30, - 0xd6, 0x0a, 0x30, 0xea, 0x30, 0xc1, 0x06, 0x88, 0x17, 0x44, 0x27, 0x97, - 0x62, 0x82, 0x2f, 0xb1, 0x69, 0x00, 0x63, 0x00, 0x68, 0x06, 0xc0, 0x7f, - 0x74, 0xdc, 0x06, 0x40, 0x81, 0xb0, 0x7f, 0x73, 0x06, 0x21, 0x03, 0x07, - 0x91, 0x7f, 0x06, 0x51, 0xff, 0x1a, 0x59, 0x02, 0x03, 0x5e, 0xcc, 0x91, - 0x47, 0x59, 0x06, 0x7b, 0x17, 0xc4, 0x01, 0xb3, 0x0c, 0xbe, 0xac, 0xb9, - 0x58, 0xce, 0x06, 0x78, 0x17, 0xb0, 0xd2, 0x7f, 0x6a, 0x06, 0xc3, 0xff, - 0x06, 0x3f, 0xb1, 0x14, 0x04, 0x3e, 0x04, 0x47, 0x31, 0x28, 0x19, 0x38, - 0x04, 0x47, 0x06, 0x48, 0x17, 0x0e, 0xf3, 0x7f, 0x10, 0x06, 0xf0, 0xff, - 0x00, 0x08, 0x03, 0x04, 0x04, 0x03, 0x04, 0x08, 0x08, 0x00, 0x04, 0x03, - 0x08, 0x03, 0x08, 0x08, 0x08, 0x08, 0x11, 0xfc, 0x1e, 0xcb, 0x28, 0x17, - 0x0a, 0x46, 0xac, 0x28, 0x17, 0x16, 0xed, 0x30, 0xdc, 0x06, 0x88, 0x17, - 0x47, 0x2f, 0xa7, 0x38, 0x17, 0x6f, 0x36, 0x00, 0x76, 0x2f, 0xb9, 0x0e, - 0xb0, 0x7f, 0x77, 0x0e, 0xe0, 0xff, 0x06, 0x51, 0xff, 0xa0, 0x01, 0x52, - 0x03, 0x5e, 0x57, 0x7f, 0x83, 0x6c, 0x06, 0x7b, 0x17, 0x00, 0x00, 0xac, - 0x0c, 0xbe, 0x5c, 0xb8, 0xf4, 0xbc, 0xc4, 0x06, 0x78, 0x17, 0x0e, 0xf3, - 0x7f, 0x13, 0x04, 0x30, 0x48, 0x17, 0x3e, 0x04, 0x70, 0x32, 0x28, 0x21, - 0x10, 0x06, 0xb4, 0xff, 0x10, 0x06, 0x50, 0xff, 0x09, 0x04, 0x05, 0x05, - 0x00, 0x04, 0x05, 0x09, 0x09, 0x05, 0x04, 0x07, 0x04, 0x00, 0x09, 0x09, - 0x09, 0x09, 0x80, 0x1e, 0xff, 0x11, 0x00, 0x00, 0x00, 0x0b, 0x46, 0xcf, - 0x30, 0xb9, 0x30, 0x51, 0xb3, 0x06, 0xa8, 0x17, 0x48, 0x28, 0x17, 0x73, - 0x00, 0x6b, 0x06, 0x88, 0x17, 0x6f, 0x4b, 0x2f, 0xa1, 0x06, 0xb0, 0x81, - 0x43, 0xa0, 0x7f, 0x06, 0x38, 0x19, 0x06, 0xf1, 0x7f, 0x06, 0xf1, 0xff, - 0x02, 0xc8, 0x54, 0xaf, 0x65, 0xd1, 0x79, 0x06, 0x98, 0x17, 0x58, 0x07, - 0xd5, 0xa4, 0xc2, 0x54, 0xcf, 0x06, 0x98, 0x17, 0xb2, 0x7f, 0x06, 0x3b, - 0x99, 0xa3, 0x06, 0xf3, 0xff, 0x25, 0x28, 0x17, 0x41, 0x04, 0x3a, 0x06, - 0x88, 0x17, 0x0e, 0xf3, 0x7f, 0x80, 0x10, 0x06, 0xf0, 0xff, 0x0a, 0x05, - 0x07, 0x03, 0x05, 0x06, 0x0a, 0x00, 0x0a, 0x03, 0x05, 0x1a, 0x05, 0x0a, - 0x0a, 0x0a, 0x00, 0x0a, 0xd2, 0x1d, 0x2c, 0x12, 0x00, 0x00, 0x0c, 0x0a, - 0x46, 0xe4, 0x30, 0xf3, 0x28, 0x15, 0xeb, 0x06, 0x88, 0x17, 0x59, 0xa2, - 0x2f, 0xaf, 0x6d, 0x2f, 0xb1, 0x6f, 0x00, 0x6c, 0x0e, 0x40, 0x7f, 0x4a, - 0xc0, 0x0e, 0xe0, 0x7f, 0x06, 0xf1, 0xff, 0x6c, 0x62, 0x5a, 0x53, 0x14, - 0x5c, 0x83, 0x06, 0x7b, 0x15, 0x00, 0x00, 0x8c, 0xc5, 0xfc, 0x06, 0x88, - 0x13, 0x0f, 0x31, 0xff, 0x05, 0x2f, 0x04, 0x3c, 0x04, 0x31, 0x28, 0x15, - 0x3b, 0x06, 0x28, 0x13, 0xc0, 0x0f, 0x34, 0xff, 0x10, 0x06, 0xf0, 0xff, - 0x0b, 0x1c, 0x1c, 0x06, 0x06, 0x1c, 0x04, 0x0b, 0x0b, 0x06, 0x1c, 0x1c, - 0x20, 0x05, 0x0b, 0x0b, 0x11, 0x36, 0x1e, 0xdb, 0x28, 0x17, 0x0d, 0x46, - 0xaf, 0x28, 0x13, 0x05, 0xb8, 0x30, 0xe3, 0x30, 0xea, 0x06, 0x68, 0x19, - 0x4b, 0x2f, 0xad, 0x04, 0x72, 0x00, 0x64, 0x00, 0x7a, 0x4f, 0xb7, 0x6c, - 0x00, 0x58, 0x69, 0x06, 0x60, 0x7f, 0x6a, 0x06, 0x40, 0x7d, 0x90, 0xff, - 0x73, 0x00, 0x63, 0xe0, 0x06, 0x41, 0x01, 0x07, 0x71, 0x7f, 0x06, 0x81, - 0xff, 0x51, 0x14, 0x5c, 0x3e, 0x8d, 0x20, 0x29, 0x52, 0x06, 0x7b, 0x17, - 0xe0, 0xcf, 0x74, 0xb9, 0x98, 0x1e, 0xc7, 0xac, 0xb9, 0x06, 0x78, 0x1b, - 0x93, 0x7f, 0x06, 0x53, 0x01, 0x06, 0xf3, 0xff, 0x1a, 0x00, 0x04, 0x4b, - 0x04, 0x40, 0x04, 0x34, 0x04, 0x36, 0x2e, 0x04, 0x30, 0x28, 0x1b, 0x38, - 0x06, 0x08, 0x1d, 0x0f, 0x03, 0x7f, 0x10, 0x06, 0xe0, 0xff, 0x0c, 0x00, - 0x06, 0x06, 0x07, 0x07, 0x07, 0x0c, 0x0c, 0x07, 0x00, 0x06, 0x09, 0x06, - 0x0c, 0x0c, 0x0c, 0x0c, 0x9c, 0x20, 0x1d, 0x0c, 0x28, 0x17, 0x0e, 0x46, - 0xad, 0x30, 0xe5, 0x00, 0x30, 0xb9, 0x30, 0xc6, 0x30, 0xf3, 0x30, 0xc7, - 0x30, 0x30, 0xa3, 0x28, 0x23, 0x05, 0xfd, 0x39, 0x4b, 0x00, 0x79, 0x00, - 0x41, 0x75, 0x27, 0x15, 0x74, 0x00, 0x65, 0x00, 0x6e, 0x28, 0x1f, 0x6b, - 0x69, 0x05, 0xef, 0xb7, 0x30, 0x7f, 0x6f, 0x06, 0xa0, 0x81, 0x4b, 0x28, - 0x91, 0x06, 0xd0, 0xff, 0xc0, 0x06, 0xf0, 0x7f, 0x06, 0xd1, 0xff, 0x18, - 0x4e, 0xaf, 0x65, 0xd5, 0x6e, 0x08, 0xea, 0x8f, 0x14, 0x5c, 0x06, 0x5b, - 0x17, 0x50, 0xd0, 0xa4, 0x05, 0xc2, 0x50, 0xd1, 0x1c, 0xb5, 0x06, 0x98, - 0x17, 0x6a, 0x2f, 0xab, 0x60, 0x65, 0x06, 0xa2, 0xff, 0x06, 0xd3, 0xff, - 0x1a, 0x04, 0x4e, 0x04, 0x41, 0x02, 0x04, 0x42, 0x04, 0x35, 0x04, 0x3d, - 0x28, 0x1d, 0x38, 0xe0, 0x28, 0x1b, 0x0e, 0x14, 0xff, 0x10, 0x0e, 0xb0, - 0x7f, 0x0d, 0x07, 0x08, 0x08, 0x08, 0x00, 0x08, 0x0d, 0x0d, 0x08, 0x07, - 0x0a, 0x07, 0x0d, 0x00, 0x0d, 0x0d, 0x0d, 0x12, 0x1e, 0x22, 0x10, 0x00, - 0x00, 0x00, 0x0f, 0x46, 0xed, 0x30, 0xd9, 0x30, 0xc1, 0xd7, 0x06, 0x08, - 0x0d, 0x9f, 0xff, 0x4c, 0x27, 0x95, 0x76, 0x28, 0x13, 0x3f, 0x2d, 0x06, - 0xb0, 0x7f, 0x6b, 0x74, 0x06, 0x60, 0x81, 0x30, 0xff, 0x77, 0x40, 0x7f, - 0x73, 0x06, 0x41, 0x03, 0x07, 0x71, 0x7f, 0x81, 0x06, 0x71, 0xff, 0x1b, - 0x6d, 0xf4, 0x7e, 0x47, 0x59, 0x06, 0x92, 0xff, 0x03, 0x5c, 0xb8, 0xa0, - 0xbc, 0x58, 0xce, 0x06, 0x78, 0x15, 0xb2, 0xff, 0x61, 0x73, 0x2a, 0xa1, - 0x0e, 0x21, 0xff, 0x04, 0x3e, 0x04, 0x32, 0x28, 0x15, 0x70, 0x47, 0x05, - 0xe8, 0x0f, 0x0f, 0x73, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x0e, 0x08, 0x09, - 0x09, 0x00, 0x09, 0x09, 0x0e, 0x0e, 0x09, 0x08, 0x0b, 0x08, 0x00, 0x0e, - 0x0e, 0x0e, 0x0e, 0xac, 0x1e, 0x93, 0x11, 0x00, 0x00, 0x00, 0x10, 0x46, - 0xe2, 0x30, 0xf3, 0x30, 0x15, 0xbf, 0x30, 0xca, 0x06, 0x88, 0x19, 0x4d, - 0x2f, 0xad, 0x6e, 0x2f, 0xab, 0x50, 0x61, 0x2f, 0xab, 0x61, 0x10, 0x16, - 0x20, 0x7f, 0x99, 0x84, 0x54, 0x58, 0x20, 0xb3, 0x7e, 0x06, 0x9b, 0x17, - 0xac, 0xba, 0xc0, 0xd0, 0x98, 0x68, 0xb0, 0x06, 0x98, 0x17, 0x0e, 0xf3, - 0x7f, 0x1c, 0x28, 0x17, 0x3d, 0x04, 0x42, 0x2c, 0x04, 0x30, 0x20, 0x05, - 0x30, 0x06, 0x28, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x0f, 0x09, 0x00, 0x0a, - 0x0a, 0x0a, 0x0a, 0x0f, 0x0f, 0x0a, 0x09, 0x00, 0x0c, 0x09, 0x0f, 0x0f, - 0x0f, 0x0f, 0xdf, 0x1e, 0x00, 0x86, 0x10, 0x00, 0x00, 0x11, 0x46, 0xd1, - 0x30, 0x01, 0xb6, 0x30, 0xeb, 0x30, 0xb8, 0x30, 0xaf, 0x06, 0x68, 0x19, - 0x51, 0x50, 0x28, 0x11, 0x7a, 0x28, 0x15, 0x72, 0x00, 0x64, 0x20, 0x07, - 0x05, 0x68, 0x00, 0x69, 0x00, 0x6b, 0x06, 0x80, 0x7f, 0x6a, 0x06, 0x00, - 0x7d, 0xaf, 0x50, 0xff, 0x73, 0x60, 0xff, 0x73, 0x4f, 0xb5, 0x05, 0xd1, - 0x01, 0x07, 0xb1, 0x7f, 0x06, 0x31, 0xff, 0x00, 0x15, 0x5e, 0x4e, 0x62, - 0x14, 0x5c, 0x09, 0x54, 0x20, 0x4b, 0x51, 0x06, 0x5b, 0x19, 0x0c, 0xd3, - 0x90, 0xc7, 0x74, 0x07, 0xb9, 0xc0, 0xc9, 0x6c, 0xd0, 0x06, 0x58, 0x1b, - 0xd3, 0x7f, 0x06, 0x13, 0x01, 0xa8, 0x06, 0xf3, 0xff, 0x1f, 0x28, 0x11, - 0x37, 0x28, 0x15, 0x40, 0x04, 0x34, 0x03, 0x04, 0x36, 0x04, 0x38, 0x04, - 0x3a, 0x05, 0xe8, 0x1b, 0x0e, 0xf3, 0x7f, 0x80, 0x10, 0x06, 0xf0, 0xff, - 0x10, 0x0a, 0x0b, 0x0b, 0x0b, 0x0b, 0x10, 0x00, 0x10, 0x0b, 0x0a, 0x0d, - 0x0a, 0x10, 0x10, 0x10, 0x00, 0x10, 0x00, 0x1e, 0x4e, 0x11, 0x00, 0x00, - 0x12, 0x2d, 0x46, 0xda, 0x28, 0x15, 0xcb, 0x06, 0x88, 0x15, 0x38, 0x17, - 0x65, 0x28, 0x13, 0x60, 0x6e, 0x06, 0x27, 0x91, 0x10, 0x0f, 0x50, 0x7f, - 0x69, 0x4f, 0x14, 0x5c, 0x3c, 0x40, 0x5c, 0x06, 0x78, 0x15, 0x00, 0x00, - 0x98, 0xd3, 0x74, 0xb9, 0x31, 0xc8, 0xb2, 0x06, 0x78, 0x15, 0x0f, 0x13, - 0x7f, 0x1f, 0x04, 0x35, 0x28, 0x13, 0x60, 0x3d, 0x06, 0x28, 0x11, 0x10, - 0x17, 0x54, 0xff, 0x11, 0x0b, 0x0c, 0x0c, 0x0c, 0x00, 0x0c, 0x11, 0x11, - 0x0c, 0x0b, 0x0e, 0x0b, 0x11, 0x00, 0x11, 0x11, 0x11, 0x48, 0x1e, 0x5c, - 0x10, 0x00, 0x00, 0x00, 0x13, 0x46, 0xd7, 0x30, 0xed, 0x30, 0xd6, 0x02, - 0x30, 0xc7, 0x30, 0xa3, 0x30, 0xd5, 0x06, 0x48, 0x1b, 0x50, 0x02, 0x00, - 0x6c, 0x00, 0x6f, 0x00, 0x76, 0x2f, 0xad, 0x69, 0xd6, 0x20, 0x05, 0x0e, - 0x70, 0x7f, 0x77, 0x40, 0xff, 0x77, 0x0e, 0x80, 0xff, 0x06, 0x91, 0xff, - 0x6e, 0x00, 0x66, 0x57, 0x7f, 0x2b, 0x59, 0xea, 0x8f, 0x2b, 0x40, 0x59, - 0x06, 0x5b, 0x19, 0x0c, 0xd5, 0x5c, 0xb8, 0x0c, 0xbe, 0x0c, 0x14, 0xb5, - 0x0c, 0xbe, 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, 0x1f, 0x04, 0x01, 0x3b, - 0x04, 0x3e, 0x04, 0x32, 0x04, 0x34, 0x28, 0x19, 0x70, 0x32, 0x06, 0x28, - 0x19, 0x0f, 0x54, 0xff, 0x10, 0x06, 0x90, 0xff, 0x12, 0x0d, 0x0e, 0x0e, - 0x00, 0x0e, 0x0e, 0x12, 0x12, 0x0e, 0x0d, 0x10, 0x0d, 0x00, 0x12, 0x12, - 0x12, 0x12, 0xf6, 0x1d, 0x9b, 0x11, 0x00, 0x00, 0x00, 0x14, 0x46, 0xe9, - 0x30, 0xba, 0x30, 0x04, 0xb0, 0x30, 0xe9, 0x30, 0xc9, 0x06, 0x48, 0x15, - 0x00, 0x00, 0x01, 0x52, 0x00, 0x61, 0x00, 0x7a, 0x00, 0x67, 0x2f, 0xb3, - 0x6c, 0x61, 0x28, 0x1b, 0x0e, 0x50, 0x7f, 0x73, 0x0e, 0xe0, 0xff, 0x06, - 0xb1, 0xff, 0xc9, 0x62, 0x02, 0x79, 0x51, 0x3c, 0x68, 0xd2, 0x52, 0x06, - 0x58, 0x15, 0x00, 0x00, 0x00, 0x7c, 0xb7, 0x88, 0xc9, 0xf8, 0xad, 0x7c, - 0x18, 0xb7, 0xdc, 0xb4, 0x06, 0x58, 0x17, 0x0e, 0xf3, 0x7f, 0x20, 0x04, - 0x30, 0x02, 0x04, 0x37, 0x04, 0x33, 0x04, 0x40, 0x20, 0x07, 0x34, 0xe0, - 0x06, 0x28, 0x17, 0x0f, 0x34, 0xff, 0x10, 0x06, 0xb0, 0xff, 0x13, 0x0e, - 0x0f, 0x0f, 0x0f, 0x00, 0x10, 0x13, 0x13, 0x0f, 0x0f, 0x11, 0x0e, 0x13, - 0x00, 0x13, 0x13, 0x13, 0xf5, 0x1e, 0xde, 0x12, 0x00, 0x03, 0x00, 0x15, - 0x46, 0xeb, 0x30, 0xbb, 0x06, 0x68, 0x11, 0x78, 0x17, 0x54, 0x75, 0x27, - 0x17, 0x65, 0x06, 0xa0, 0x7f, 0x6f, 0x40, 0x81, 0x73, 0x00, 0x78, 0xe9, - 0x06, 0xa0, 0xff, 0x06, 0x91, 0x01, 0x07, 0x11, 0x7f, 0x06, 0xd1, 0xff, - 0x81, 0x9c, 0x5e, 0x43, 0x58, 0x06, 0xb2, 0xff, 0xe8, 0xb8, 0x38, 0xc1, - 0x06, 0x58, 0x11, 0x92, 0xff, 0x40, 0x65, 0x0e, 0xa2, 0x7f, 0x20, 0x04, - 0x43, 0x04, 0x41, 0x04, 0x70, 0x35, 0x06, 0x28, 0x11, 0x0f, 0x53, 0x7f, - 0x10, 0x06, 0xf0, 0xff, 0x14, 0x0f, 0x10, 0x10, 0x00, 0x11, 0x11, 0x14, - 0x14, 0x10, 0x10, 0x12, 0x0f, 0x01, 0x14, 0x14, 0x14, 0x14, 0x2e, 0x1f, - 0x77, 0x28, 0x17, 0x00, 0x16, 0x46, 0xb7, 0x30, 0xea, 0x30, 0xb9, 0x30, - 0x10, 0xc8, 0x30, 0xe9, 0x06, 0x68, 0x1d, 0x53, 0x00, 0x69, 0x00, 0x46, - 0x6c, 0x20, 0x03, 0x73, 0x00, 0x74, 0x4f, 0xb3, 0x10, 0x15, 0xf0, 0x7f, - 0x21, 0x00, 0x95, 0x29, 0x52, 0xaf, 0x65, 0x79, 0x72, 0xc9, 0x40, 0x62, - 0x06, 0x5b, 0x1d, 0xe4, 0xc2, 0xac, 0xb9, 0xa4, 0xc2, 0x0c, 0xb8, 0xd2, - 0x7c, 0xb7, 0x06, 0x58, 0x1d, 0x0f, 0x01, 0xff, 0x04, 0x38, 0x20, 0x04, - 0x3b, 0x20, 0x03, 0x41, 0x04, 0x42, 0x04, 0x40, 0x30, 0x04, 0x30, 0x06, - 0x08, 0x1f, 0x10, 0x16, 0xf4, 0xff, 0x15, 0x11, 0x11, 0x12, 0x08, 0x13, - 0x13, 0x15, 0x15, 0x20, 0x05, 0x11, 0x15, 0x15, 0x00, 0x15, 0x15, 0x59, - 0x1f, 0x61, 0x13, 0x00, 0x00, 0x11, 0x17, 0x46, 0xb9, 0x28, 0x17, 0xd9, - 0x30, 0xf3, 0x06, 0x68, 0x15, 0xd5, 0x38, 0x17, 0x38, 0x15, 0x76, 0x2f, - 0x2f, 0x6e, 0x0e, 0xa0, 0x7f, 0x77, 0x0e, 0xe0, 0xff, 0x81, 0x06, 0x91, - 0xff, 0xaf, 0x65, 0x29, 0x52, 0x87, 0x65, 0x06, 0x72, 0xfd, 0x16, 0x00, - 0x00, 0xac, 0x38, 0x17, 0xbc, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x21, - 0x83, 0x48, 0x15, 0x32, 0x04, 0x35, 0x04, 0x3d, 0x06, 0x08, 0x13, 0x0f, - 0x94, 0xff, 0x80, 0x10, 0x06, 0x90, 0xff, 0x16, 0x12, 0x12, 0x13, 0x14, - 0x14, 0x16, 0x00, 0x16, 0x13, 0x13, 0x14, 0x12, 0x16, 0x16, 0x16, 0x00, - 0x16, 0x5b, 0x1e, 0xb9, 0x12, 0x00, 0x00, 0x18, 0xa8, 0x28, 0x17, 0xe2, - 0x28, 0x19, 0xe3, 0x06, 0x88, 0x19, 0x53, 0x00, 0x6d, 0x2e, 0x00, 0x6f, - 0x2f, 0xb1, 0x79, 0x2f, 0xab, 0x06, 0x38, 0x19, 0x07, 0x70, 0x7f, 0x6a, - 0xc0, 0x0e, 0xe0, 0x7f, 0x06, 0x71, 0xff, 0xaf, 0x65, 0xab, 0x83, 0x81, - 0x68, 0x81, 0x06, 0x98, 0x17, 0xa4, 0xc2, 0xb0, 0xba, 0xb8, 0xb7, 0x06, - 0xb8, 0x17, 0x82, 0x0e, 0xd1, 0xff, 0x21, 0x04, 0x3c, 0x04, 0x3e, 0x28, - 0x1b, 0x4f, 0xe8, 0x06, 0x88, 0x17, 0x0f, 0x54, 0xff, 0x10, 0x06, 0x70, - 0xff, 0x17, 0x28, 0x10, 0x15, 0x15, 0x17, 0x00, 0x17, 0x14, 0x14, 0x15, - 0x13, 0x17, 0x17, 0x17, 0x00, 0x17, 0x92, 0x1d, 0x90, 0x11, 0x00, 0x00, - 0x19, 0x80, 0x28, 0x17, 0xbf, 0x30, 0xe9, 0x30, 0xfb, 0x30, 0xb6, 0x31, - 0x30, 0xb4, 0x20, 0x07, 0x06, 0x1d, 0x37, 0x53, 0x00, 0x74, 0x28, 0x11, - 0x45, 0x72, 0x28, 0x15, 0x20, 0x00, 0x5a, 0x28, 0x1b, 0x67, 0x28, 0x25, - 0xd8, 0x30, 0x0d, 0x0e, 0x30, 0x7f, 0x53, 0x0e, 0xe0, 0xff, 0x06, 0x31, - 0xff, 0xe7, 0x65, 0x4e, 0x04, 0x62, 0x08, 0x62, 0xc9, 0x62, 0x06, 0x78, - 0x19, 0xa4, 0xc2, 0x00, 0xc0, 0xd0, 0x7c, 0xb7, 0x90, 0xc7, 0xe0, 0xac, - 0x60, 0x7c, 0x06, 0x48, 0x1d, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x42, 0x04, - 0x30, 0x22, 0x04, 0x40, 0x20, 0x03, 0x2d, 0x00, 0x17, 0x20, 0x09, 0x33, - 0xf0, 0x28, 0x25, 0x30, 0x0d, 0x10, 0x06, 0x34, 0xff, 0x10, 0x06, 0x30, - 0xff, 0x18, 0x16, 0x16, 0x17, 0x0c, 0x17, 0x16, 0x18, 0x18, 0x20, 0x03, - 0x20, 0x05, 0x18, 0x18, 0x00, 0x2b, 0x1e, 0x3b, 0x12, 0x00, 0x00, 0x1a, - 0x46, 0x01, 0xb7, 0x30, 0xe5, 0x30, 0xe1, 0x30, 0xf3, 0x06, 0x28, 0x11, - 0x8a, 0x7f, 0xaf, 0x68, 0x00, 0x75, 0x2f, 0xb3, 0x65, 0x06, 0x4f, 0xad, - 0x00, 0x28, 0x00, 0x43, 0x20, 0x7f, 0x6f, 0x06, 0xa0, 0x81, 0x53, 0x00, - 0x63, 0xe1, 0x06, 0xc1, 0x01, 0x06, 0xf1, 0x7f, 0x06, 0xf1, 0xff, 0x12, - 0x82, 0xe8, 0x95, 0x06, 0x78, 0x13, 0x86, 0x3f, 0xff, 0x88, 0xc2, 0x58, - 0xba, 0x06, 0x38, 0x0f, 0x9f, 0xaf, 0x6a, 0xa0, 0x2f, 0xaf, 0x65, 0x0e, - 0x82, 0x7f, 0x28, 0x04, 0x43, 0x04, 0x3c, 0x0e, 0x04, 0x35, 0x04, 0x3d, - 0x05, 0x88, 0x09, 0x0f, 0xd3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x19, 0x00, - 0x10, 0x03, 0x11, 0x12, 0x12, 0x19, 0x19, 0x12, 0x00, 0x11, 0x1b, 0x10, - 0x19, 0x19, 0x19, 0x19, 0xc5, 0x00, 0x1e, 0x25, 0x13, 0x00, 0x00, 0x1b, - 0x46, 0xc8, 0x00, 0x30, 0xa5, 0x30, 0xeb, 0x30, 0xb4, 0x30, 0xd3, 0x56, - 0x30, 0x38, 0x21, 0xc6, 0x06, 0x08, 0x1f, 0x54, 0x4f, 0xad, 0x3f, 0xa5, - 0x76, 0x0b, 0x00, 0x69, 0x00, 0x73, 0x28, 0x25, 0x74, 0x28, 0x23, 0x06, - 0x70, 0x7f, 0xde, 0x37, 0xa3, 0x06, 0x70, 0x7f, 0x77, 0x40, 0xff, 0x05, - 0xf0, 0x81, 0x07, 0xd1, 0x7f, 0x06, 0x11, 0xff, 0x79, 0x00, 0x72, 0x14, - 0x5c, 0x08, 0x62, 0xf4, 0x7e, 0xc0, 0x10, 0x4e, 0x79, 0x72, 0x06, 0x3b, - 0x1b, 0x2c, 0xd2, 0x74, 0xb9, 0x00, 0xe0, 0xac, 0x44, 0xbe, 0x88, 0xc2, - 0x4c, 0xd1, 0xd0, 0x06, 0x38, 0x1f, 0xf3, 0x7f, 0x6a, 0x0d, 0xe1, 0xff, - 0x22, 0x04, 0x4b, 0x04, 0x00, 0x40, 0x04, 0x33, 0x04, 0x3e, 0x04, 0x32, - 0x04, 0x07, 0x38, 0x04, 0x48, 0x04, 0x42, 0x28, 0x23, 0x0e, 0x94, 0xff, - 0x10, 0x0e, 0x10, 0x7f, 0x00, 0x1a, 0x17, 0x17, 0x18, 0x18, 0x17, 0x1a, - 0x1a, 0x10, 0x18, 0x17, 0x19, 0x20, 0x05, 0x1a, 0x1a, 0xc1, 0x1e, 0x00, - 0xe5, 0x12, 0x00, 0x00, 0x1c, 0x46, 0xd9, 0x30, 0x02, 0xea, 0x30, 0xb3, - 0x30, 0xfb, 0x30, 0x58, 0x1f, 0xce, 0x2a, 0x30, 0xdc, 0x05, 0xe8, 0x19, - 0x56, 0x2f, 0xa7, 0x6c, 0x28, 0x11, 0x6b, 0xaa, 0x2f, 0xb5, 0x20, 0x68, - 0x25, 0x6e, 0x48, 0x25, 0x6f, 0x0d, 0x40, 0x7f, 0x57, 0xb2, 0x00, 0x60, - 0xff, 0x77, 0x0d, 0x60, 0xff, 0x06, 0xf1, 0xff, 0x27, 0x59, 0x38, 0x19, - 0xfa, 0x10, 0x8b, 0x83, 0x6c, 0x06, 0x38, 0x15, 0x00, 0x00, 0xa8, 0xbc, - 0x08, 0xac, 0xb9, 0x54, 0xcf, 0x38, 0x1d, 0x78, 0xb1, 0xf4, 0x6a, 0xbc, - 0x06, 0x18, 0x19, 0x0e, 0xf3, 0x7f, 0x12, 0x28, 0x07, 0x3b, 0x28, 0x11, - 0x3a, 0xab, 0x28, 0x19, 0x2d, 0x68, 0x25, 0x3d, 0x48, 0x25, 0x3e, 0x05, - 0x48, 0x1f, 0x0e, 0xf4, 0xff, 0x80, 0x10, 0x06, 0xf0, 0xff, 0x1b, 0x19, - 0x19, 0x1a, 0x1a, 0x19, 0x1b, 0x08, 0x1b, 0x1a, 0x19, 0x04, 0x20, 0x05, - 0x1b, 0x1b, 0xa3, 0x20, 0x1e, 0x3a, 0x28, 0x17, 0x1d, 0x46, 0xd6, 0x30, - 0xe9, 0x0d, 0x30, 0xc4, 0x30, 0xa1, 0x05, 0xe8, 0x0d, 0xb8, 0x17, 0x72, - 0x2f, 0xb1, 0x55, 0x74, 0x2f, 0x29, 0x61, 0x0e, 0x40, 0x7f, 0x57, 0x40, - 0xff, 0x7a, 0x06, 0x60, 0xfd, 0x81, 0x0f, 0x11, 0x7f, 0x17, 0x5f, 0xc9, - 0x62, 0xdf, 0x5b, 0x06, 0x72, 0xfd, 0x00, 0x00, 0x00, 0x0c, 0xbe, 0x7c, - 0xb7, 0x28, 0xcc, 0xd1, 0x06, 0x18, 0x0f, 0x0f, 0x73, 0x7f, 0x12, 0x28, - 0x07, 0x30, 0x04, 0x46, 0x20, 0x03, 0xc1, 0x10, 0x06, 0x54, 0xff, 0x10, - 0x06, 0xf0, 0xff, 0x1c, 0x1b, 0x1b, 0x1c, 0x1c, 0x20, 0x02, 0x10, 0x1c, - 0x1b, 0x06, 0x30, 0x05, 0x1c, 0xb9, 0x1e, 0xbf, 0x40, 0x10, 0x00, 0x3f, - 0xff, 0x01, 0x14, 0x15, 0x16, 0x16, 0x03, 0x00, 0x01, 0x01, 0x16, 0x15, - 0x17, 0x14, 0x01, 0x01, 0x00, 0x01, 0x01, 0x02, 0x15, 0x14, 0x15, 0x10, - 0x0f, 0x00, 0x02, 0x02, 0x15, 0x0e, 0x16, 0x15, 0x02, 0x02, 0x34, 0x02, - 0x02, 0x20, 0x1a, 0x20, 0x16, 0x03, 0x40, 0x06, 0x03, 0x03, 0x00, 0x03, - 0x03, 0x04, 0x0c, 0x0d, 0x0d, 0x0d, 0x0d, 0x00, 0x04, 0x04, 0x0d, 0x0c, - 0x0f, 0x0c, 0x04, 0x04, 0x04, 0x04, 0x04, 0x05, 0x1a, 0x1a, 0x28, 0x7c, - 0x05, 0x05, 0xc0, 0x20, 0x03, 0x20, 0x05, 0x05, 0x05, 0x06, 0x18, 0x18, - 0x19, 0x01, 0x19, 0x18, 0x06, 0x06, 0x19, 0x18, 0x03, 0x20, 0x05, 0x12, - 0x06, 0x06, 0x07, 0x30, 0x44, 0x02, 0x07, 0x40, 0x06, 0x07, 0x00, 0x07, - 0x07, 0x07, 0x08, 0x03, 0x04, 0x04, 0x03, 0x00, 0x04, 0x08, 0x08, 0x04, - 0x03, 0x08, 0x03, 0x08, 0x00, 0x08, 0x08, 0x08, 0x09, 0x04, 0x05, 0x05, - 0x04, 0x00, 0x05, 0x09, 0x09, 0x05, 0x04, 0x07, 0x04, 0x09, 0x00, 0x09, - 0x09, 0x09, 0x0a, 0x05, 0x07, 0x03, 0x05, 0x08, 0x06, 0x0a, 0x0a, 0x03, - 0x20, 0x4e, 0x0a, 0x0a, 0x0a, 0x00, 0x0a, 0x0b, 0x1c, 0x1c, 0x06, 0x06, - 0x1c, 0x0b, 0x20, 0x0b, 0x06, 0x20, 0xca, 0x0b, 0x0b, 0x0b, 0x0b, 0x0c, - 0x80, 0x20, 0x52, 0x07, 0x07, 0x0c, 0x0c, 0x07, 0x06, 0x09, 0x01, 0x06, - 0x0c, 0x0c, 0x0c, 0x0c, 0x0d, 0x07, 0x30, 0x45, 0x02, 0x0d, 0x0d, 0x08, - 0x07, 0x0a, 0x07, 0x30, 0x99, 0x0e, 0x40, 0x08, 0x30, 0x45, 0x0e, 0x0e, - 0x09, 0x08, 0x0b, 0x08, 0x02, 0x0e, 0x0e, 0x0e, 0x0e, 0x0f, 0x09, 0x30, - 0x45, 0x0f, 0x00, 0x0f, 0x0a, 0x09, 0x0c, 0x09, 0x0f, 0x0f, 0x0f, 0x10, - 0x0f, 0x10, 0x0a, 0x30, 0x45, 0x10, 0x10, 0x0b, 0x0a, 0x00, 0x0d, 0x0a, - 0x10, 0x10, 0x10, 0x10, 0x11, 0x0b, 0x80, 0x30, 0x45, 0x11, 0x11, 0x0c, - 0x0b, 0x0e, 0x0b, 0x11, 0x04, 0x11, 0x11, 0x11, 0x12, 0x0d, 0x30, 0x35, - 0x12, 0x12, 0x00, 0x0e, 0x0d, 0x10, 0x0d, 0x12, 0x12, 0x12, 0x12, 0x20, - 0x13, 0x0e, 0x30, 0x34, 0x13, 0x13, 0x0f, 0x0f, 0x11, 0x01, 0x0e, 0x13, - 0x13, 0x13, 0x13, 0x14, 0x0f, 0x20, 0x33, 0x00, 0x11, 0x14, 0x14, 0x10, - 0x10, 0x12, 0x0f, 0x14, 0x08, 0x14, 0x14, 0x14, 0x15, 0x20, 0x32, 0x13, - 0x13, 0x15, 0x40, 0x15, 0x20, 0x05, 0x11, 0x15, 0x15, 0x15, 0x15, 0x16, - 0x84, 0x20, 0x32, 0x14, 0x14, 0x16, 0x16, 0x20, 0x29, 0x12, 0x16, 0x08, - 0x16, 0x16, 0x16, 0x17, 0x20, 0x32, 0x15, 0x15, 0x17, 0x40, 0x17, 0x20, - 0x29, 0x13, 0x17, 0x17, 0x17, 0x17, 0x18, 0x87, 0x20, 0x12, 0x17, 0x16, - 0x18, 0x18, 0x20, 0x03, 0x20, 0x05, 0x21, 0x2c, 0x00, 0x10, 0x03, 0x11, - 0x12, 0x12, 0x19, 0x19, 0x12, 0x06, 0x11, 0x1b, 0x10, 0x19, 0x19, 0x29, - 0xcc, 0x20, 0x22, 0x18, 0x03, 0x17, 0x1a, 0x1a, 0x18, 0x17, 0x19, 0x20, - 0x05, 0x21, 0x5c, 0xe0, 0xe9, 0xdf, 0xf1, 0xd7, 0x3f, 0xe4, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x7c, 0xb3, 0x00, - 0x11, 0x15, 0x00, 0x00, 0x30, 0x01, 0x47, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x94, 0x20, 0x5d, - 0x0b, 0x00, 0x00, 0x00, 0x06, 0x47, 0xb6, 0x30, 0xb0, 0x30, 0xec, 0x00, - 0x30, 0xd6, 0x30, 0xf4, 0x76, 0x44, 0x8f, 0x02, 0x40, 0x5e, 0x06, 0x18, - 0x23, 0x5a, 0x00, 0x61, 0x00, 0x67, 0x00, 0x06, 0x72, 0x00, 0x65, 0x00, - 0x62, 0x06, 0x48, 0xa0, 0xb0, 0x7f, 0x20, 0x00, 0x00, 0x28, 0x00, 0x76, - 0x00, 0x69, 0x00, 0x6c, 0x88, 0x20, 0x01, 0x65, 0x00, 0x29, 0x06, 0x40, - 0x7f, 0x53, 0x00, 0x74, 0xb5, 0x21, 0x11, 0x64, 0x20, 0x05, 0x05, 0xb0, - 0x7f, 0x61, 0x21, 0x7d, 0x72, 0x20, 0xf9, 0x56, 0x61, 0x06, 0x0a, 0x24, - 0x43, 0x21, 0x6f, 0x75, 0x20, 0xef, 0x30, 0xf3, 0x20, 0xb0, 0x20, 0xf7, - 0x65, 0x21, 0x85, 0x05, 0xb2, 0x13, 0x28, 0x84, 0x3c, 0x68, 0x0c, 0xd2, - 0x52, 0x03, 0x5e, 0x06, 0x32, 0xfb, 0x3b, 0x9a, 0x90, 0xc7, 0x03, 0xf8, - 0xad, 0x08, 0xb8, 0x0c, 0xbe, 0x06, 0x7b, 0x9d, 0xf2, 0xff, 0x77, 0x73, - 0x62, 0x7f, 0x05, 0x52, 0xfd, 0x00, 0x13, 0x7f, 0x63, 0x23, 0x7f, 0x52, - 0x0d, 0x05, 0x53, 0x81, 0x00, 0x17, 0x04, 0x30, 0x04, 0x33, 0x04, 0x40, - 0x04, 0x0c, 0x35, 0x04, 0x31, 0x04, 0x06, 0xf4, 0x7f, 0x10, 0x16, 0x30, - 0x7f, 0x01, 0x14, 0x00, 0x15, 0x15, 0x15, 0x01, 0x01, 0x01, 0x15, 0x14, - 0x28, 0x07, 0x14, 0x20, 0x06, 0x01, 0x58, 0x17, 0x07, 0x47, 0xd3, 0x00, - 0x30, 0xa7, 0x30, 0xed, 0x30, 0xf4, 0x30, 0xa1, 0x02, 0x30, 0xeb, 0x30, - 0x1d, 0xff, 0xd3, 0x20, 0x0b, 0xb4, 0x04, 0x30, 0xe9, 0x30, 0xe1, 0x90, - 0x05, 0x7f, 0xc5, 0x42, 0x00, 0x45, 0x6a, 0x28, 0x13, 0x6c, 0x00, 0x6f, - 0x27, 0x91, 0x61, 0x28, 0x1f, 0x6a, 0x2d, 0x20, 0x11, 0x37, 0x99, 0x6f, - 0x28, 0x2d, 0x6f, 0x28, 0x2f, 0x61, 0xa2, 0x27, 0xad, 0x43, 0x20, 0x1d, - 0x75, 0x00, 0x6e, 0x27, 0x31, 0x79, 0xea, 0x06, 0x20, 0x7f, 0x06, 0xf0, - 0xff, 0x04, 0xdf, 0xcf, 0x52, 0x29, 0x91, 0x67, 0x29, 0x0b, 0x6f, 0xd5, - 0x21, 0x5f, 0x37, 0x93, 0x64, 0x29, 0x17, 0x20, 0x00, 0x01, 0x95, 0x20, - 0x60, 0x1b, 0xba, 0x31, 0xa9, 0x6c, 0x41, 0x93, 0x03, 0x71, 0x25, 0x31, - 0xdb, 0x6e, 0x68, 0x17, 0x6f, 0xc0, 0x88, 0x19, 0x05, 0x91, 0x95, 0x2b, - 0x52, 0x1b, 0x6d, 0xe6, 0x74, 0x00, 0x14, 0x5c, 0x2d, 0x00, 0xd4, 0x6b, - 0x1b, 0x6d, 0x02, 0x08, 0x62, 0xc9, 0x62, 0xbf, 0x53, 0x05, 0xbf, 0xc1, - 0xa8, 0x00, 0xbc, 0x5c, 0xb8, 0x14, 0xbc, 0x74, 0xb9, 0x2d, 0x00, 0x00, - 0x4c, 0xbe, 0x5c, 0xb8, 0xe0, 0xac, 0x7c, 0x07, 0xb7, 0x20, 0x00, 0x70, - 0xad, 0x05, 0x9f, 0xc3, 0x09, 0x12, 0xff, 0x58, 0x2d, 0xd0, 0xb2, 0x25, - 0x03, 0xbb, 0xb1, 0x11, 0x28, 0x11, 0x3b, 0x04, 0x3e, 0x04, 0x41, 0x32, - 0x28, 0x1f, 0x40, 0x04, 0x41, 0x04, 0x3a, 0x20, 0x0b, 0x56, 0x2d, 0x20, - 0x15, 0x38, 0x40, 0x15, 0x33, 0x20, 0x19, 0x50, 0x15, 0x30, 0x00, 0x04, - 0x4f, 0x04, 0x20, 0x00, 0x36, 0x04, 0x43, 0x2b, 0x04, 0x3f, 0x28, 0x49, - 0x3d, 0x20, 0x1f, 0x4f, 0x03, 0x48, 0x47, 0x09, 0x14, 0xff, 0xa2, 0x10, - 0x0c, 0xd0, 0x7f, 0x02, 0x28, 0x13, 0x03, 0x02, 0x02, 0x30, 0x06, 0x01, - 0x84, 0x20, 0x06, 0x02, 0xa3, 0x20, 0xf8, 0x28, 0x17, 0x08, 0x47, 0x51, - 0xd6, 0x28, 0x15, 0xc9, 0x28, 0x11, 0xdd, 0x30, 0xb5, 0x28, 0x1d, 0x1a, - 0xa3, 0x30, 0xca, 0x05, 0xa8, 0x13, 0x58, 0x17, 0x72, 0x28, 0x13, 0x64, - 0xad, 0x28, 0x0f, 0x50, 0x28, 0x1b, 0x73, 0x2f, 0xbd, 0x3f, 0xb1, 0x6e, - 0x05, 0x08, 0x0f, 0xff, 0x01, 0x10, 0x7f, 0x06, 0xf0, 0xff, 0x05, 0x5f, - 0xba, 0x00, 0x78, 0x17, 0x51, 0x95, 0x00, 0x18, 0x0f, 0x03, 0xf1, 0x25, - 0x00, 0x78, 0x17, 0x80, 0x05, 0x71, 0x95, 0x03, 0x5e, 0x57, 0x7f, 0xb7, - 0x5f, 0x2d, 0x00, 0x00, 0xe2, 0x6c, 0x28, 0x84, 0xf4, 0x7e, 0xb3, 0x44, - 0x7e, 0x05, 0xd8, 0x15, 0x00, 0x00, 0x0c, 0x28, 0x0d, 0xdc, 0xb4, 0x00, - 0x2d, 0x00, 0xec, 0xd3, 0xac, 0xc0, 0x44, 0xbe, 0x3d, 0x98, 0xb0, 0x05, - 0xd8, 0x15, 0x08, 0xb2, 0xff, 0x04, 0xd8, 0x0f, 0x98, 0x17, 0x40, 0x28, - 0x15, 0x55, 0x34, 0x88, 0x11, 0x1f, 0x28, 0x23, 0x41, 0x28, 0x23, 0x32, - 0x04, 0xc8, 0x0d, 0xe2, 0x09, 0x34, 0xff, 0x10, 0x0d, 0x50, 0x7f, 0x38, - 0x13, 0x04, 0x03, 0x03, 0x38, 0x1a, 0x02, 0x80, 0x20, 0x06, 0x03, 0x1e, - 0x20, 0xcf, 0x0c, 0x00, 0x00, 0x02, 0x09, 0x47, 0xc9, 0x30, 0xa5, 0x30, - 0x38, 0x1b, 0xf4, 0x08, 0x30, 0xcb, 0x30, 0xaf, 0x28, 0x1f, 0xcd, 0x30, - 0xec, 0x2a, 0x30, 0xc8, 0x28, 0x21, 0xa1, 0x05, 0x68, 0x1f, 0x44, 0x2b, - 0x09, 0x62, 0xa2, 0x48, 0x1b, 0x76, 0x2e, 0xb1, 0x69, 0x00, 0x6b, 0x2f, - 0xb1, 0x4e, 0xaf, 0x2f, 0xc1, 0x72, 0x2f, 0xc5, 0x74, 0x4f, 0xc3, 0x04, - 0xdb, 0x2f, 0x01, 0x10, 0x7f, 0x06, 0xf0, 0xff, 0xaa, 0x05, 0xd8, 0x17, - 0x52, 0x2f, 0xfb, 0x67, 0x2c, 0x9d, 0x73, 0x2f, 0xb7, 0x6f, 0xd7, 0x41, - 0x8b, 0x3f, 0xaf, 0x65, 0x4c, 0xad, 0x61, 0x04, 0x29, 0x2f, 0x00, 0x58, - 0x17, 0x05, 0x91, 0x95, 0x20, 0x5c, 0x67, 0x38, 0x19, 0x2b, 0x59, 0xaf, - 0x65, 0x4b, 0x00, 0x51, 0x2d, 0x00, 0x85, 0x51, 0xf7, 0x96, 0x79, 0x12, - 0x72, 0xe6, 0x74, 0x05, 0x98, 0x1d, 0x50, 0xb4, 0x38, 0x19, 0x0c, 0x00, - 0xbe, 0xc8, 0xb2, 0x6c, 0xd0, 0x2d, 0x00, 0x24, 0x01, 0xb1, 0x08, 0xb8, - 0xb8, 0xd2, 0x14, 0xbc, 0x05, 0x98, 0x1d, 0xd5, 0x09, 0x12, 0xff, 0x04, - 0xd8, 0x1f, 0x14, 0x27, 0xf3, 0x31, 0x48, 0x1b, 0x32, 0x47, 0xf7, 0x44, - 0x46, 0x68, 0x1f, 0x1d, 0x04, 0x35, 0x28, 0x31, 0x35, 0x04, 0x7e, 0x42, - 0x28, 0x21, 0x38, 0x11, 0x04, 0x78, 0x25, 0x09, 0x14, 0xff, 0x10, 0x0c, - 0xd0, 0x7f, 0x38, 0x13, 0x11, 0x24, 0x04, 0x04, 0x28, 0x1a, 0x06, 0x03, - 0x20, 0x06, 0x04, 0x52, 0x20, 0x1e, 0xe0, 0x28, 0x17, 0x0a, 0x47, 0xa4, - 0x30, 0xb9, 0xb5, 0x28, 0x07, 0xe9, 0x05, 0x68, 0x05, 0x00, 0x1f, 0xf6, - 0x49, 0x2f, 0xa3, 0x74, 0x2f, 0xb3, 0x6f, 0x69, 0x05, 0x8b, 0x21, 0x00, - 0x70, 0x7f, 0x65, 0x06, 0xe0, 0xff, 0x37, 0x7b, 0x06, 0x11, 0x83, 0xf8, - 0x17, 0xf8, 0xb1, 0x8f, 0x05, 0x3e, 0x35, 0x00, 0x58, 0x17, 0xb2, 0x15, - 0x04, 0xdf, 0xbf, 0x0a, 0x4f, 0xaf, 0x06, 0x65, 0x79, 0x72, 0xc9, 0x62, - 0x05, 0x98, 0x09, 0xdf, 0xff, 0x74, 0x01, 0xc7, 0xa4, 0xc2, 0xb8, 0xd2, - 0x7c, 0xb7, 0x05, 0x98, 0x09, 0xba, 0x00, 0x73, 0x7f, 0xeb, 0x07, 0x23, - 0xff, 0x04, 0xb8, 0x01, 0x00, 0x5f, 0xe7, 0x18, 0x27, 0xf1, 0x42, 0x8e, - 0x28, 0x17, 0x38, 0x04, 0x39, 0x04, 0x87, 0xfb, 0x09, 0x54, 0xff, 0x10, - 0x0e, 0x50, 0x7f, 0x05, 0x89, 0x28, 0x13, 0x0f, 0x05, 0x05, 0x20, 0x06, - 0x0a, 0x04, 0x20, 0x06, 0x00, 0x05, 0x2a, 0x20, 0xe8, 0x09, 0x00, 0x00, - 0x0b, 0x00, 0x47, 0xab, 0x30, 0xeb, 0x30, 0xed, 0x30, 0xf4, 0x0a, 0x30, - 0xa1, 0x30, 0xc4, 0x06, 0x48, 0x1b, 0x4b, 0x4e, 0x8f, 0x6c, 0xbe, 0x4f, - 0xaf, 0x61, 0x2c, 0x17, 0x05, 0xf8, 0x1b, 0xf0, 0x7f, 0x06, 0xf0, 0xff, - 0x06, 0xf8, 0x17, 0x64, 0xb8, 0x2f, 0x9d, 0x20, 0x05, 0xa1, 0x15, 0x00, - 0x58, 0x17, 0x05, 0x91, 0x95, 0x61, 0x53, 0x14, 0x01, 0x5c, 0x1b, 0x6d, - 0xe6, 0x74, 0x28, 0x83, 0x06, 0x58, 0x19, 0x00, 0x74, 0xce, 0x7c, 0xb9, - 0x5c, 0xb8, 0x14, 0xbc, 0x3a, 0x20, 0xce, 0x06, 0x58, 0x19, 0x07, 0xf2, - 0xff, 0x05, 0xf8, 0x1b, 0x1a, 0x2f, 0xf9, 0x40, 0x02, 0x04, 0x3b, 0x04, - 0x3e, 0x04, 0x32, 0x28, 0x13, 0x46, 0xe9, 0x06, 0x08, 0x19, 0x07, 0xf4, - 0xff, 0x10, 0x0d, 0xf0, 0x7f, 0x06, 0x38, 0x0c, 0x06, 0x06, 0x20, 0x06, - 0x40, 0x0b, 0x30, 0x06, 0x06, 0x57, 0x20, 0x0e, 0x0b, 0x00, 0x00, 0x00, - 0x0c, 0x47, 0xb3, 0x30, 0xd7, 0x30, 0xea, 0xa0, 0x28, 0x17, 0xcb, 0x28, - 0x17, 0xa1, 0x30, 0x1d, 0xff, 0xaf, 0x88, 0x20, 0x0d, 0xb8, 0x30, 0xa7, - 0x28, 0x29, 0xc4, 0x30, 0xa3, 0xaa, 0x05, 0x28, 0x29, 0x4b, 0x2e, 0xa9, - 0x70, 0x4f, 0xaf, 0x76, 0x2f, 0x2f, 0x69, 0x8c, 0x2c, 0x2f, 0x61, 0x00, - 0x2d, 0x28, 0x2d, 0x3f, 0xc1, 0x7e, 0x01, 0x5f, 0x65, 0x28, 0x2d, 0x63, - 0x46, 0xa9, 0x04, 0x7b, 0x49, 0x01, 0x50, 0x7f, 0x06, 0xf0, 0xff, 0x06, - 0x18, 0x17, 0xbc, 0x00, 0x11, 0x95, 0x20, 0x67, 0xb1, 0x03, 0xd1, 0x19, - 0x00, 0x78, 0x17, 0x05, 0x71, 0x95, 0xd1, 0x79, 0x00, 0x6e, 0x66, 0xcc, - 0x91, 0x2b, 0x59, 0x3c, 0x5c, 0x20, 0xdf, 0x5b, 0x22, 0x77, 0x51, 0xcc, - 0x91, 0xed, 0x70, 0x08, 0x2b, 0x59, 0x50, 0x9f, 0x05, 0x78, 0x25, 0x54, - 0xcf, 0x04, 0x00, 0xd5, 0xac, 0xb9, 0x0c, 0xbe, 0xc8, 0xb2, 0x28, 0x00, - 0xcc, 0x2d, 0x00, 0x6c, 0xd0, 0xac, 0xb9, 0x1c, 0x0e, 0xc8, 0x0c, 0xbe, - 0x58, 0x05, 0x88, 0x25, 0x09, 0x52, 0xff, 0x04, 0x98, 0x2d, 0x1a, 0xae, - 0x28, 0x11, 0x3f, 0x28, 0x19, 0x38, 0x28, 0x17, 0x38, 0x03, 0x38, 0x19, - 0x3e, 0x31, 0x04, 0x2d, 0x28, 0x2f, 0x30, 0x13, 0x36, 0x04, 0x35, 0x04, - 0xe8, 0x2f, 0xd2, 0x09, 0x54, 0xff, 0x10, 0x0c, 0x90, 0x7f, 0x07, 0x38, - 0x0c, 0x07, 0x07, 0x20, 0x06, 0x0c, 0x84, 0x30, 0x06, 0x07, 0xd1, 0x20, - 0xf5, 0x28, 0x17, 0x0d, 0x47, 0x01, 0xaf, 0x30, 0xe9, 0x30, 0xd4, 0x30, - 0xca, 0x28, 0x11, 0x16, 0xb6, 0x30, 0xb4, 0x28, 0x21, 0xa8, 0x05, 0x28, - 0x0b, 0xdf, 0xaf, 0x72, 0xaa, 0x2f, 0xb1, 0x70, 0x2e, 0xb1, 0x6e, 0x48, - 0x11, 0x5a, 0x2f, 0xbf, 0x67, 0x8f, 0x2f, 0xbd, 0x72, 0x00, 0x6a, 0x4e, - 0xbf, 0x04, 0xfb, 0x3d, 0x00, 0xd0, 0x7f, 0x06, 0xf0, 0xff, 0xfa, 0x05, - 0x1e, 0xc1, 0x00, 0x78, 0x17, 0xb1, 0x95, 0x58, 0x11, 0x3f, 0xc9, 0x6c, - 0x4f, 0xc3, 0x20, 0xe0, 0x03, 0xa1, 0x25, 0x00, 0x78, 0x17, 0x05, 0x71, - 0x95, 0x4b, 0x51, 0xc9, 0x62, 0xae, 0x00, 0x76, 0xb3, 0x7e, 0x2d, 0x00, - 0x4e, 0x62, 0x08, 0x18, 0x62, 0x17, 0x52, 0x05, 0x78, 0x0f, 0x7f, 0xff, - 0x6c, 0xd0, 0x7c, 0x00, 0xb7, 0x3c, 0xd5, 0x98, 0xb0, 0x2d, 0x00, 0x90, - 0x07, 0xc7, 0xe0, 0xac, 0x40, 0xb8, 0x05, 0x78, 0x0f, 0x09, 0x52, 0xff, - 0x04, 0x98, 0x0f, 0xa8, 0x98, 0x17, 0x40, 0x27, 0xf7, 0x3f, 0x28, 0x17, - 0x3d, 0x04, 0x41, 0xab, 0x68, 0x13, 0x17, 0x28, 0x09, 0x33, 0x28, 0x2f, - 0x40, 0x40, 0x11, 0x04, 0x58, 0x0f, 0xd2, 0x09, 0x54, 0xff, 0x10, 0x0d, - 0x10, 0x7f, 0x08, 0x38, 0x0c, 0x08, 0x08, 0x20, 0x06, 0x0d, 0x84, 0x30, - 0x06, 0x08, 0xd4, 0x20, 0x4b, 0x28, 0x17, 0x0e, 0x47, 0x11, 0xea, 0x30, - 0xab, 0x28, 0x13, 0xbb, 0x30, 0xcb, 0x05, 0xe8, 0x0f, 0xaa, 0x7f, 0xf4, - 0x4c, 0x2f, 0xa9, 0x6b, 0x4f, 0xa3, 0x53, 0x2e, 0xb9, 0x6e, 0xff, 0x28, - 0x0d, 0x05, 0x18, 0x0b, 0x00, 0xd0, 0x7f, 0x06, 0xf0, 0xff, 0x05, 0xd6, - 0x97, 0x00, 0x18, 0x17, 0x57, 0xfd, 0x38, 0x0d, 0xf7, 0x71, 0x9b, 0x78, - 0x17, 0x3d, 0xb7, 0x31, 0xa5, 0x67, 0x49, 0xc3, 0x03, 0x5f, 0x4f, 0x00, - 0x58, 0x17, 0x80, 0x05, 0x91, 0x95, 0x29, 0x52, 0x61, 0x53, 0x2d, 0x00, - 0x5e, 0x18, 0x58, 0x3c, 0x5c, 0x05, 0xf8, 0x11, 0x5f, 0xff, 0xac, 0xb9, - 0x74, 0x07, 0xce, 0x2d, 0x00, 0x3c, 0xc1, 0x05, 0xf8, 0x0f, 0x08, 0x92, - 0xff, 0x05, 0x18, 0x0b, 0xa8, 0xbf, 0xe5, 0x1b, 0x2f, 0xf7, 0x46, 0x68, - 0x0f, 0x21, 0x04, 0x35, 0xba, 0x28, 0x1d, 0x4c, 0x05, 0x28, 0x0d, 0x08, - 0xb4, 0xff, 0x10, 0x0d, 0xd0, 0x7f, 0x09, 0x28, 0x13, 0x02, 0x24, 0x09, - 0x09, 0x20, 0x06, 0x0e, 0x08, 0x20, 0x06, 0x09, 0xac, 0x00, 0x1f, 0xee, - 0x0a, 0x00, 0x00, 0x0f, 0x47, 0xe1, 0x00, 0x30, 0xb8, 0x30, 0xe0, 0x30, - 0xea, 0x30, 0xa7, 0xa0, 0x06, 0x68, 0x17, 0x4d, 0x2f, 0x95, 0x11, 0x01, - 0x69, 0x00, 0x6d, 0xfe, 0x2b, 0x15, 0x05, 0x7b, 0x23, 0x00, 0xd0, 0x7f, - 0x06, 0x10, 0xff, 0x3f, 0xa3, 0x06, 0x70, 0x7f, 0x00, 0x58, 0x17, 0x20, - 0xb8, 0x60, 0x97, 0x6a, 0x05, 0x00, 0x99, 0x00, 0x58, 0x17, 0x05, 0x91, - 0x15, 0x85, 0x68, 0x09, 0x04, 0x54, 0x46, 0x7a, 0x17, 0x52, 0x06, 0x58, - 0x15, 0x00, 0x00, 0x00, 0x54, 0xba, 0xc0, 0xc9, 0x34, 0xbb, 0x40, 0xb8, - 0xf4, 0x06, 0x78, 0x17, 0x06, 0xf2, 0x7f, 0x00, 0x12, 0xff, 0x05, 0xd8, - 0x17, 0x1c, 0x28, 0x0b, 0x34, 0x04, 0x57, 0x36, 0x28, 0x1d, 0x3c, 0x28, - 0x03, 0x40, 0x05, 0xc8, 0x13, 0x08, 0x54, 0xff, 0x10, 0x0d, 0xd0, 0x7f, - 0x44, 0x0a, 0x28, 0x13, 0x01, 0x0a, 0x0a, 0x20, 0x06, 0x0f, 0x09, 0x80, - 0x20, 0x06, 0x0a, 0xfc, 0x20, 0xaf, 0x0b, 0x00, 0x00, 0x00, 0x10, 0x47, - 0xaa, 0x30, 0xb7, 0x30, 0xa8, 0x30, 0x00, 0xaf, 0x30, 0x1d, 0xff, 0xd0, - 0x30, 0xe9, 0x30, 0x11, 0xcb, 0x30, 0xe3, 0x05, 0xe8, 0x1f, 0x4f, 0x00, - 0x73, 0x2f, 0xb1, 0xab, 0x38, 0x0f, 0x6b, 0x2f, 0xb3, 0x42, 0x2f, 0xb9, - 0x72, 0x2f, 0xbd, 0x3f, 0xb7, 0xfb, 0x3e, 0xb1, 0x05, 0x1b, 0x39, 0x00, - 0xb0, 0x7f, 0x06, 0xf0, 0xff, 0x06, 0x58, 0x17, 0x69, 0x2f, 0xb5, 0xb1, - 0x95, 0x5e, 0x20, 0xa8, 0x2f, 0x6c, 0x41, 0x95, 0x03, 0xb1, 0x25, 0x00, - 0x58, 0x17, 0x05, 0x91, 0x95, 0x65, 0x00, 0x59, 0x7f, 0x89, 0x36, 0x80, - 0x4b, 0x51, 0x2d, 0x00, 0x00, 0xf4, 0x5d, 0xc9, 0x62, 0x3c, 0x5c, 0x9a, - 0x40, 0x4e, 0x05, 0xd8, 0x21, 0x24, 0xc6, 0xdc, 0xc2, 0x08, 0xc6, 0x00, - 0x6c, 0xd0, 0x2d, 0x00, 0x14, 0xbc, 0x7c, 0xb7, 0x3a, 0xd0, 0xb0, 0x05, - 0xf8, 0x1f, 0x08, 0xb2, 0xff, 0x05, 0x38, 0x21, 0x1e, 0x28, 0x09, 0x38, - 0xa0, 0x28, 0x1b, 0x46, 0x28, 0x0f, 0x3e, 0x04, 0x2d, 0x00, 0x11, 0xae, - 0x28, 0x15, 0x40, 0x48, 0x0d, 0x4c, 0x05, 0x48, 0x23, 0x08, 0xb4, 0xff, - 0x10, 0x0d, 0x30, 0x7f, 0x0b, 0x89, 0x28, 0x13, 0x08, 0x0b, 0x0b, 0x20, - 0x06, 0x10, 0x0a, 0x20, 0x06, 0x00, 0x0b, 0x65, 0x20, 0x48, 0x0d, 0x00, - 0x00, 0x11, 0x00, 0x47, 0xdd, 0x30, 0xb8, 0x30, 0xa7, 0x30, 0xac, 0xa2, - 0x28, 0x17, 0xb9, 0x28, 0x17, 0xf4, 0x30, 0xa9, 0x28, 0x1b, 0xa2, 0xa5, - 0x05, 0xa8, 0x1b, 0x50, 0x2e, 0xa9, 0x7e, 0x01, 0x3e, 0xb3, 0x61, 0x28, - 0x17, 0x57, 0x53, 0x46, 0x79, 0x76, 0x4e, 0xbd, 0x69, 0x05, 0x48, 0x19, - 0x00, 0xb0, 0x7f, 0x05, 0x3f, 0xbb, 0xaf, 0x00, 0x30, 0xff, 0x77, 0x80, - 0x7f, 0x6e, 0x06, 0x68, 0x17, 0xb1, 0x95, 0x00, 0x18, 0x17, 0xf1, 0xa5, - 0xdc, 0x04, 0x18, 0x17, 0xd2, 0x15, 0x45, 0x2a, 0x3b, 0x03, 0x90, 0x71, - 0xdf, 0xff, 0xe2, 0x6c, 0x00, 0xed, 0x70, 0xa0, 0x52, 0x2d, 0x00, 0xaf, - 0x65, 0x08, 0xc9, 0x62, 0x83, 0x6c, 0x06, 0x18, 0x17, 0xec, 0xd3, 0x1c, - 0x00, 0xc8, 0x00, 0xac, 0x2d, 0x00, 0xac, 0xc2, 0x7c, 0x01, 0xb7, 0xf4, - 0xbc, 0xc8, 0xb2, 0x44, 0xc5, 0x05, 0xd8, 0x19, 0xae, 0x00, 0xb3, 0x7f, - 0xeb, 0x05, 0x63, 0xff, 0x7a, 0x4a, 0x9b, 0x00, 0x53, 0xff, 0x04, 0xf8, - 0x19, 0x1f, 0xac, 0x28, 0x0d, 0x36, 0x28, 0x17, 0x36, 0x48, 0x05, 0x38, - 0x19, 0x21, 0x04, 0x57, 0x3b, 0x28, 0x1b, 0x32, 0x28, 0x25, 0x3d, 0x05, - 0x28, 0x19, 0x08, 0xb4, 0xff, 0x10, 0x0d, 0x30, 0x7f, 0x44, 0x0c, 0x28, - 0x13, 0x09, 0x0c, 0x0c, 0x20, 0x06, 0x11, 0x0b, 0x80, 0x20, 0x06, 0x0c, - 0x3d, 0x20, 0x94, 0x0c, 0x00, 0x00, 0x01, 0x12, 0x47, 0xd7, 0x30, 0xea, - 0x30, 0xe2, 0x20, 0x03, 0x40, 0xa7, 0x28, 0x19, 0xb4, 0x30, 0xeb, 0x30, - 0xb9, 0x30, 0x01, 0xad, 0x30, 0xfb, 0x30, 0xb3, 0x30, 0xbf, 0x20, 0x0b, - 0xa2, 0x05, 0x38, 0x1d, 0x50, 0x2f, 0x9f, 0x69, 0x00, 0x6d, 0x2e, 0xaf, - 0x72, 0x8b, 0x4f, 0xb5, 0x2d, 0x00, 0x47, 0x40, 0x0b, 0x73, 0x2f, 0xbf, - 0x3e, 0xb9, 0x5e, 0x4b, 0x2e, 0xc9, 0x74, 0x4f, 0xc5, 0x04, 0x5b, 0x3d, - 0x01, 0x90, 0x7f, 0x06, 0x50, 0xff, 0x6b, 0xd6, 0x04, 0xe0, 0x7f, 0xf8, - 0x17, 0x4c, 0x2f, 0xa7, 0x74, 0x41, 0x8d, 0x3f, 0x9f, 0x65, 0x8d, 0x2f, - 0xcd, 0x2d, 0x00, 0x4d, 0x4f, 0xd3, 0x31, 0x85, 0x6e, 0x04, 0x0f, 0xaf, - 0xc0, 0x00, 0x78, 0x17, 0x05, 0x71, 0x95, 0xe8, 0x6e, 0x77, 0x6d, 0x8c, - 0x54, 0x0c, 0x71, 0x5c, 0x3a, 0x53, 0x05, 0xd8, 0x0f, 0x7f, 0xff, 0x04, - 0xd5, 0x00, 0xac, 0xb9, 0xa8, 0xba, 0x40, 0xb8, 0x2d, 0x00, 0x00, 0xe0, - 0xac, 0x74, 0xb9, 0xa4, 0xc2, 0xa4, 0xd0, 0x03, 0x54, 0xcf, 0xc0, 0xd0, - 0x74, 0xb9, 0x05, 0x78, 0x1d, 0x08, 0xf2, 0xff, 0xc5, 0xb3, 0xff, 0x04, - 0x38, 0x23, 0x1f, 0x04, 0x40, 0x27, 0xe9, 0x3c, 0x28, 0x1d, 0x5f, 0x40, - 0x88, 0x19, 0x13, 0x40, 0x0d, 0x38, 0x03, 0x05, 0x38, 0x17, 0x09, 0x74, - 0xff, 0x10, 0x0c, 0x50, 0x7f, 0x44, 0x0d, 0x28, 0x13, 0x10, 0x0d, 0x0d, - 0x20, 0x06, 0x12, 0x0c, 0x80, 0x20, 0x06, 0x0d, 0x39, 0x20, 0x40, 0x0a, - 0x00, 0x00, 0x01, 0x13, 0x47, 0xb7, 0x30, 0xb5, 0x30, 0xaf, 0x28, 0x13, - 0x40, 0xe2, 0x28, 0x11, 0xe9, 0x30, 0xf4, 0x30, 0xa3, 0x30, 0x6a, 0xca, - 0x05, 0x48, 0x0f, 0x7f, 0xfc, 0x53, 0x2f, 0x97, 0x73, 0x2f, 0xab, 0x6b, - 0xdf, 0x66, 0x7f, 0x7e, 0x19, 0x69, 0x46, 0x83, 0x05, 0x1b, 0x2f, 0x00, - 0xd0, 0x7f, 0x06, 0xf0, 0xff, 0x05, 0x1e, 0xb9, 0xb5, 0xf8, 0x17, 0x64, - 0x49, 0x8d, 0x91, 0x95, 0x20, 0x60, 0x15, 0x65, 0x2f, 0xb1, 0xb8, 0x3f, - 0xb3, 0x20, 0x03, 0xe1, 0x25, 0x00, 0x58, 0x17, 0x05, 0x91, 0x95, 0x21, - 0x95, 0x28, 0x00, 0x84, 0x4b, 0x51, 0x2d, 0x00, 0xab, 0x83, 0xaf, 0x01, - 0x65, 0xc9, 0x62, 0xf4, 0x7e, 0xb3, 0x7e, 0x05, 0xd8, 0x1f, 0x00, 0xdc, - 0xc2, 0xac, 0xc0, 0x6c, 0xd0, 0x2d, 0x00, 0x00, 0xa8, 0xba, 0xac, 0xc2, - 0x7c, 0xb7, 0x44, 0xbe, 0x3e, 0x98, 0xb0, 0x05, 0x78, 0x11, 0x09, 0x32, - 0xff, 0x04, 0x58, 0x0b, 0xc1, 0xff, 0x2f, 0xff, 0x41, 0xa8, 0x28, 0x03, - 0x46, 0x68, 0x13, 0x1c, 0x28, 0x21, 0x41, 0x04, 0x3b, 0xbc, 0x28, 0x15, - 0x32, 0x28, 0x2f, 0x05, 0x18, 0x19, 0x08, 0xd4, 0xff, 0x10, 0x0d, 0x10, - 0x7f, 0x0e, 0x0e, 0x0a, 0x0e, 0x0e, 0x0b, 0x0f, 0x30, 0x05, 0x13, 0x30, - 0x0a, 0x0e, 0x00, 0x54, 0x20, 0xa6, 0x0b, 0x00, 0x00, 0x14, 0x47, 0x01, - 0xb9, 0x30, 0xd7, 0x30, 0xea, 0x30, 0xc8, 0x28, 0x19, 0x00, 0xc0, 0x30, - 0xeb, 0x30, 0xde, 0x30, 0xc1, 0x30, 0x58, 0xa2, 0x05, 0xe8, 0x17, 0x70, - 0x28, 0x09, 0x3e, 0xa3, 0x2d, 0x00, 0x44, 0xab, 0x2f, 0x97, 0x6c, 0x2f, - 0xbb, 0x61, 0x2f, 0xa1, 0x69, 0x05, 0x48, 0x15, 0x00, 0xb0, 0x7f, 0x5f, - 0x65, 0x06, 0xe0, 0xff, 0x65, 0x2f, 0xc1, 0x06, 0x18, 0x17, 0x31, 0x8f, - 0x31, 0x85, 0x51, 0x83, 0x7d, 0x6e, 0x2f, 0xcd, 0xd1, 0x97, 0x03, 0xf9, - 0x2b, 0x00, 0x78, 0x17, 0x00, 0x32, 0x15, 0x63, 0x42, 0x15, 0x80, 0x03, - 0xdf, 0xd5, 0xaf, 0x65, 0x6e, 0x66, 0x29, 0x52, 0x79, 0x00, 0x72, 0x2d, - 0x00, 0xbe, 0x8f, 0x14, 0x5c, 0x6c, 0x04, 0x9a, 0xd0, 0x63, 0x9a, 0x4e, - 0x05, 0xb8, 0x19, 0xa4, 0xc2, 0x00, 0x0c, 0xd5, 0xac, 0xb9, 0xb8, 0xd2, - 0x2d, 0x00, 0x00, 0xec, 0xb2, 0xc8, 0xb9, 0xf0, 0xd2, 0x44, 0xc5, 0xd7, - 0x05, 0xf8, 0x17, 0x00, 0x73, 0x7f, 0xeb, 0x06, 0x83, 0xff, 0xe1, 0x61, - 0xe9, 0x05, 0x18, 0x15, 0x38, 0x17, 0x46, 0x3f, 0x28, 0x05, 0x38, 0x04, - 0x42, 0x48, 0x01, 0x38, 0x19, 0x14, 0x8b, 0x28, 0x25, 0x3b, 0x04, 0x3c, - 0x28, 0x2b, 0x42, 0x05, 0x28, 0x19, 0x08, 0x94, 0xff, 0x81, 0x10, 0x0d, - 0x50, 0x7f, 0x0f, 0x0f, 0x0f, 0x0f, 0x12, 0x10, 0x30, 0x05, 0x42, 0x14, - 0x30, 0x0a, 0x0f, 0xee, 0x1e, 0xaf, 0x28, 0x17, 0x15, 0x00, 0x47, 0xb7, - 0x30, 0xd9, 0x30, 0xcb, 0x30, 0xaf, 0xac, 0x28, 0x17, 0xaf, 0x20, 0x07, - 0xf3, 0x05, 0xc8, 0x13, 0x3f, 0xff, 0x60, 0x01, 0x15, 0x69, 0x00, 0x62, - 0x47, 0x03, 0x69, 0x4f, 0xb3, 0x4b, 0x40, 0x09, 0x7d, 0x6e, 0x05, 0x48, - 0x13, 0x00, 0xb0, 0x7f, 0x06, 0xf0, 0xff, 0x05, 0x7e, 0xb3, 0xf8, 0x17, - 0x64, 0x2f, 0xa9, 0xb5, 0x3f, 0xaf, 0x65, 0x81, 0x95, 0x3d, 0xaf, 0x20, - 0x4f, 0xc5, 0x54, 0x61, 0xa7, 0xe0, 0x03, 0xb8, 0xaf, 0x00, 0x58, 0x17, - 0x05, 0x91, 0x95, 0x0c, 0x5e, 0x1d, 0x8d, 0x3c, 0x11, 0x5c, 0x4b, 0x51, - 0x22, 0x79, 0x51, 0x81, 0x5b, 0x05, 0xb8, 0x11, 0x80, 0x5f, 0xff, 0xdc, - 0xc2, 0xa0, 0xbc, 0xc8, 0xb2, 0x6c, 0x01, 0xd0, 0x2d, 0x00, 0x6c, 0xd0, - 0xcc, 0xb2, 0x05, 0xd8, 0x13, 0xe8, 0x08, 0xb2, 0xff, 0x05, 0x38, 0x13, - 0x3f, 0xf3, 0x28, 0x2f, 0xfd, 0x31, 0x04, 0x35, 0xde, 0x67, 0xff, 0x38, - 0x17, 0x1a, 0x47, 0xf7, 0x04, 0xf8, 0x0f, 0x08, 0xf4, 0xff, 0x10, 0x0d, - 0x70, 0x7f, 0x10, 0x02, 0x0d, 0x0d, 0x0d, 0x0a, 0x0e, 0x10, 0x20, 0x06, - 0x15, 0x00, 0x0d, 0x10, 0x10, 0x10, 0x10, 0x19, 0x1f, 0x4c, 0x80, 0x28, - 0x17, 0x16, 0x47, 0xf4, 0x30, 0xa1, 0x30, 0xe9, 0x00, 0x30, 0xb8, 0x30, - 0xe5, 0x30, 0xc7, 0x30, 0xa3, 0xa9, 0x06, 0x28, 0x17, 0x56, 0x2f, 0xa3, - 0x72, 0x2f, 0xa7, 0x7e, 0x01, 0x36, 0x91, 0xfd, 0x05, 0x98, 0x0f, 0x00, - 0x70, 0x7f, 0x05, 0xf6, 0x17, 0x06, 0xf0, 0x7f, 0x00, 0x58, 0x17, 0x71, - 0x95, 0x73, 0x48, 0x27, 0x78, 0x6e, 0x2f, 0xd3, 0x04, 0x7f, 0x41, 0x00, - 0x58, 0x17, 0x05, 0x91, 0x95, 0xe6, 0x74, 0xc9, 0x06, 0x62, 0xe5, 0x65, - 0x01, 0x4e, 0x06, 0x18, 0x11, 0x5f, 0xff, 0x14, 0x01, 0xbc, 0x7c, 0xb7, - 0xfc, 0xc8, 0x18, 0xb5, 0x06, 0x18, 0x11, 0xea, 0x08, 0x52, 0xff, 0x05, - 0x78, 0x0f, 0x7f, 0xed, 0x12, 0x2f, 0xff, 0x40, 0x27, 0xff, 0x36, 0x3a, - 0x04, 0x34, 0x05, 0xa8, 0x0d, 0x08, 0x94, 0xff, 0x10, 0x0d, 0xf0, 0x7f, - 0x11, 0x28, 0x0c, 0x0c, 0x24, 0x11, 0x11, 0x20, 0x06, 0x03, 0x10, 0x20, - 0x06, 0x11, 0xec, 0x28, 0x20, 0x9d, 0x28, 0x17, 0x17, 0x28, 0x17, 0xa3, - 0x30, 0xed, 0x54, 0x30, 0x30, 0x05, 0xc6, 0x28, 0x17, 0xc4, 0x28, 0x25, - 0x1d, 0xff, 0x1a, 0xdd, 0x30, 0xc9, 0x28, 0x2b, 0x30, 0x19, 0xca, 0x05, - 0x08, 0x27, 0x56, 0xaa, 0x2f, 0xa7, 0x72, 0x2e, 0xad, 0x76, 0x2f, 0xaf, - 0x74, 0x4e, 0x9d, 0x61, 0xad, 0x2f, 0xb5, 0x50, 0x2e, 0xbf, 0x64, 0x48, - 0x2f, 0x30, 0x17, 0x6e, 0x2e, 0x4d, 0xfa, 0x04, 0x7b, 0x3f, 0x01, 0x70, - 0x7f, 0x06, 0xf0, 0xff, 0x05, 0xf8, 0x17, 0x00, 0x11, 0x95, 0x20, 0x68, - 0x37, 0x65, 0x3e, 0x00, 0x6c, 0x20, 0x01, 0x31, 0x91, 0x03, 0x31, 0x25, - 0x00, 0x78, 0x17, 0x05, 0x71, 0x95, 0xf4, 0x00, 0x7e, 0x57, 0x7f, 0xf4, - 0x7e, 0x82, 0x84, 0xdf, 0x00, 0x5b, 0x2d, 0x00, 0xe2, 0x6c, 0xb7, 0x5f, - 0xc9, 0x04, 0x62, 0xf4, 0x7e, 0xb3, 0x7e, 0x05, 0x98, 0x25, 0x44, 0xbe, - 0x00, 0x5c, 0xb8, 0x44, 0xbe, 0xf0, 0xd2, 0x28, 0xcc, 0x00, 0x2d, 0x00, - 0xec, 0xd3, 0xdc, 0xb4, 0x7c, 0xb7, 0x0e, 0x44, 0xbe, 0x98, 0xb0, 0x05, - 0x98, 0x25, 0x09, 0x72, 0xff, 0x04, 0x78, 0x2f, 0x12, 0x82, 0x28, 0x0d, - 0x40, 0x04, 0x3e, 0x04, 0x32, 0x28, 0x15, 0x42, 0xa0, 0x28, 0x19, 0x46, - 0x28, 0x17, 0x3e, 0x04, 0x2d, 0x00, 0x1f, 0xae, 0x20, 0x13, 0x34, 0x48, - 0x31, 0x32, 0x04, 0xc8, 0x2b, 0x09, 0x74, 0xff, 0x10, 0x0c, 0x70, 0x7f, - 0x12, 0x89, 0x28, 0x13, 0x0d, 0x12, 0x12, 0x20, 0x06, 0x04, 0x11, 0x20, - 0x06, 0x00, 0x12, 0x97, 0x20, 0x5c, 0x0c, 0x00, 0x00, 0x18, 0xa2, 0x28, - 0x17, 0xb3, 0x28, 0x15, 0xa1, 0x30, 0xeb, 0x28, 0x0f, 0xb9, 0x00, 0x30, - 0xea, 0x30, 0xa4, 0x30, 0xa7, 0x30, 0xe0, 0xc6, 0x05, 0x08, 0x0d, 0xbf, - 0xaf, 0x75, 0x00, 0x6b, 0x48, 0x17, 0x3f, 0xb7, 0x2d, 0x23, 0x00, 0x53, - 0x2b, 0x25, 0x72, 0x00, 0x6d, 0x2f, 0xbb, 0x04, 0x98, 0x0b, 0xaa, 0x01, - 0x50, 0x7f, 0x65, 0x06, 0x60, 0xff, 0x72, 0x2f, 0xbd, 0x6a, 0x2f, 0xc5, - 0x6d, 0xf7, 0x05, 0x4e, 0xc0, 0x00, 0x78, 0x17, 0xb1, 0x95, 0x00, 0x18, - 0x11, 0x53, 0x49, 0xcd, 0x51, 0xa5, 0x02, 0xdf, 0xcc, 0xc0, 0x00, 0x78, - 0x17, 0x05, 0x71, 0x15, 0x66, 0x6b, 0xd1, 0x79, 0xe6, 0x74, 0x00, 0x14, - 0x5c, 0x2d, 0x00, 0xaf, 0x65, 0xcc, 0x91, 0x0c, 0x36, 0x80, 0xc6, 0x59, - 0x05, 0x98, 0x13, 0x3f, 0xff, 0x80, 0xbd, 0x00, 0x54, 0xcf, 0x14, 0xbc, - 0x74, 0xb9, 0x2d, 0x00, 0x00, 0xdc, 0xc2, 0x74, 0xb9, 0xf8, 0xbb, 0x44, - 0xc5, 0xfa, 0x05, 0x98, 0x13, 0x07, 0x32, 0x7f, 0x00, 0xb2, 0xff, 0x04, - 0x78, 0x0b, 0xd8, 0x17, 0x43, 0x48, 0x09, 0x32, 0xb4, 0x28, 0x01, 0x40, - 0x48, 0x01, 0x38, 0x15, 0x21, 0x28, 0x2b, 0x35, 0x04, 0x74, 0x3c, 0x04, - 0xc8, 0x11, 0x08, 0xf4, 0xff, 0x10, 0x0d, 0x50, 0x7f, 0x13, 0x28, 0x13, - 0x0e, 0x13, 0x48, 0x13, 0x20, 0x06, 0x05, 0x12, 0x20, 0x06, 0x13, 0x3f, - 0x20, 0x00, 0x82, 0x0d, 0x00, 0x00, 0x19, 0x47, 0xb6, 0x30, 0x77, 0xc0, - 0x28, 0x13, 0x05, 0x98, 0x07, 0xff, 0xea, 0x5a, 0x4e, 0x29, 0x56, 0x7d, - 0x05, 0x18, 0x05, 0xff, 0x00, 0xb0, 0x7f, 0x06, 0xf0, 0xff, 0x06, 0x51, - 0x81, 0xf8, 0x17, 0x31, 0x8f, 0x3f, 0x91, 0x3f, 0xa5, 0x04, 0xbe, 0x27, - 0xc0, 0x00, 0xd8, 0x17, 0x05, 0x91, 0x95, 0x4e, 0x62, 0xbe, 0x8f, 0x14, - 0x5c, 0xc0, 0x05, 0xd8, 0x0b, 0xbf, 0xff, 0x90, 0xc7, 0xe4, 0xb2, 0x74, - 0xb9, 0xf5, 0x05, 0xd8, 0x0b, 0x08, 0x52, 0xff, 0x05, 0x38, 0x05, 0x00, - 0x1f, 0xe1, 0x17, 0x2f, 0xfd, 0x34, 0x88, 0x13, 0xe8, 0x04, 0xd8, 0x03, - 0x08, 0xd4, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x14, 0x28, 0x13, 0x14, 0x14, - 0x14, 0xa0, 0x20, 0x06, 0x09, 0x40, 0x07, 0x5e, 0x1f, 0xd4, 0x0a, 0x00, - 0x20, 0x00, 0x1a, 0x28, 0x17, 0xb0, 0x30, 0xec, 0x30, 0xd6, 0xd1, 0x06, - 0x88, 0x19, 0x38, 0x17, 0x67, 0x2f, 0xa9, 0x65, 0x00, 0x62, 0x06, 0x48, - 0x19, 0xef, 0xd0, 0x7f, 0x5c, 0x9f, 0x3f, 0x07, 0x74, 0x47, 0x1b, 0x05, - 0x14, 0x99, 0xb0, 0xff, 0x07, 0x78, 0x17, 0x57, 0x67, 0x2f, 0xbd, 0x62, - 0x41, 0x93, 0x73, 0x2f, 0xbd, 0x06, 0x78, 0x17, 0x05, 0x51, 0x15, 0x00, - 0x28, 0x84, 0x3c, 0x68, 0xd2, 0x52, 0x03, 0x5e, 0x80, 0x06, 0x78, 0x19, - 0x90, 0xc7, 0xf8, 0xad, 0x08, 0xb8, 0x0c, 0x6e, 0xbe, 0x06, 0x78, 0x19, - 0xf2, 0xff, 0x70, 0x2f, 0xb5, 0x3f, 0xbd, 0x3a, 0x15, 0x63, 0xbe, 0x2f, - 0xb9, 0x65, 0x04, 0xe7, 0x9d, 0xb3, 0xff, 0x3a, 0x97, 0x05, 0xf8, 0x1b, - 0x38, 0x17, 0x33, 0x8e, 0x28, 0x15, 0x35, 0x04, 0x31, 0x06, 0x48, 0x19, - 0x07, 0xd4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x15, 0x52, 0x15, 0x28, 0x13, - 0x15, 0x20, 0x05, 0x15, 0x08, 0x20, 0x05, 0x15, 0x04, 0x15, 0x94, 0x20, - 0x5d, 0x0b, 0x00, 0x3f, 0xff, 0x01, 0x14, 0x80, 0x20, 0x24, 0x01, 0x01, - 0x01, 0x15, 0x14, 0x07, 0x14, 0x91, 0x20, 0x06, 0x01, 0x02, 0x20, 0x0b, - 0x03, 0x02, 0x02, 0x30, 0x06, 0x51, 0x01, 0x20, 0x06, 0x02, 0x30, 0x0b, - 0x04, 0x03, 0x03, 0x30, 0x12, 0x51, 0x02, 0x20, 0x06, 0x03, 0x30, 0x0b, - 0x11, 0x04, 0x04, 0x20, 0x12, 0x24, 0x06, 0x03, 0x20, 0x06, 0x04, 0x05, - 0x20, 0x0b, 0x0f, 0x05, 0x49, 0x05, 0x20, 0x06, 0x0a, 0x04, 0x20, 0x06, - 0x05, 0x06, 0x40, 0x04, 0x52, 0x06, 0x20, 0x06, 0x0b, 0x30, 0x06, 0x06, - 0x07, 0x40, 0x04, 0x07, 0xa5, 0x20, 0x06, 0x0c, 0x30, 0x06, 0x07, 0x08, - 0x40, 0x04, 0x08, 0x20, 0x06, 0x48, 0x0d, 0x30, 0x06, 0x08, 0x09, 0x20, - 0x0b, 0x02, 0x09, 0x09, 0x92, 0x20, 0x06, 0x0e, 0x08, 0x20, 0x06, 0x09, - 0x0a, 0x20, 0x0b, 0x01, 0x24, 0x0a, 0x0a, 0x20, 0x06, 0x0f, 0x09, 0x20, - 0x06, 0x0a, 0x0b, 0x89, 0x20, 0x0b, 0x08, 0x0b, 0x0b, 0x20, 0x06, 0x10, - 0x0a, 0x20, 0x06, 0x22, 0x0b, 0x0c, 0x20, 0x0b, 0x09, 0x0c, 0x0c, 0x20, - 0x06, 0x11, 0x48, 0x0b, 0x20, 0x06, 0x0c, 0x0d, 0x20, 0x0b, 0x10, 0x0d, - 0x0d, 0x90, 0x20, 0x06, 0x12, 0x0c, 0x20, 0x06, 0x0d, 0x0e, 0x0e, 0x0e, - 0x14, 0x0e, 0x0b, 0x0f, 0x30, 0x05, 0x13, 0x30, 0x0a, 0x0e, 0x0f, 0x05, - 0x0f, 0x0f, 0x0f, 0x12, 0x10, 0x30, 0x05, 0x14, 0x30, 0x0a, 0x44, 0x0f, - 0x30, 0x2b, 0x0a, 0x0e, 0x10, 0x20, 0x32, 0x15, 0x0d, 0x04, 0x10, 0x10, - 0x10, 0x10, 0x11, 0x20, 0x04, 0x0c, 0x11, 0x49, 0x11, 0x20, 0x06, 0x03, - 0x10, 0x20, 0x06, 0x11, 0x12, 0x20, 0x0b, 0x12, 0x0d, 0x12, 0x12, 0x20, - 0x06, 0x04, 0x11, 0x20, 0x06, 0x12, 0x50, 0x13, 0x20, 0x0b, 0x0e, 0x29, - 0x63, 0x12, 0x12, 0x05, 0x12, 0xb8, 0x29, 0x6a, 0x13, 0xf9, 0x6f, 0xf1, - 0x67, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x48, 0x14, - 0x20, 0x50, 0x08, 0xe1, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x01, 0x19, 0xbb, 0x17, 0x20, 0x05, 0x00, 0x48, 0xad, 0x30, 0xd7, - 0x30, 0xed, 0x30, 0xb9, 0x40, 0x30, 0x06, 0x78, 0x1d, 0x43, 0x00, 0x79, - 0x00, 0x70, 0x00, 0x05, 0x72, 0x00, 0x75, 0x00, 0x73, 0x06, 0x60, 0x7f, - 0x68, 0x60, 0x81, 0x55, 0x65, 0x06, 0x49, 0x20, 0x5a, 0x40, 0xff, 0x65, - 0x21, 0x01, 0x6e, 0x06, 0x61, 0x7f, 0x56, 0x69, 0x41, 0x7f, 0x6f, 0x06, - 0x81, 0xff, 0x68, 0x60, 0x81, 0x06, 0x51, 0x7f, 0x5e, 0x03, 0x58, 0x66, - 0x6d, 0xef, 0x8d, 0xaf, 0x06, 0x51, 0xfc, 0x2b, 0x9b, 0x00, 0xa4, 0xd0, - 0x04, 0xd5, 0x5c, 0xb8, 0xa4, 0xc2, 0xc0, 0x0e, 0xb3, 0x7f, 0x06, 0xb1, - 0xff, 0x1a, 0x04, 0x38, 0x04, 0x3f, 0x04, 0x33, 0x40, 0x04, 0x0e, 0x94, - 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x01, 0x01, 0xe0, 0x01, 0x48, 0x17, 0xc0, - 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x64, 0x7a, 0x00, 0x11, 0x0e, 0x00, 0x00, - 0x30, 0x01, 0x49, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x9b, 0x23, 0x43, 0x0a, 0x00, 0x00, 0x00, - 0x02, 0x49, 0xd7, 0x30, 0xe9, 0x30, 0xcf, 0x40, 0x30, 0x06, 0x98, 0x1b, - 0x50, 0x00, 0x72, 0x00, 0x61, 0x00, 0x06, 0x67, 0x00, 0x75, 0x00, 0x65, - 0x0e, 0xc0, 0x7f, 0x06, 0xf1, 0x7f, 0x61, 0x80, 0x0e, 0x60, 0x7f, 0x03, - 0x5e, 0xc9, 0x62, 0x3c, 0x68, 0x02, 0x40, 0x5e, 0x06, 0x7b, 0x1d, 0x04, - 0xd5, 0x7c, 0xb7, 0x58, 0xd5, 0xe0, 0x06, 0xf3, 0x7f, 0x06, 0x92, 0x81, - 0x06, 0xf2, 0x7f, 0x1f, 0x04, 0x40, 0x04, 0x30, 0x38, 0x04, 0x33, 0x20, - 0x03, 0x10, 0x06, 0xd4, 0xff, 0x10, 0x06, 0x70, 0xff, 0x01, 0x09, 0x05, - 0x00, 0x02, 0x04, 0x01, 0x01, 0x01, 0x09, 0x0b, 0x0a, 0x50, 0x09, 0x20, - 0x06, 0x01, 0x58, 0x17, 0x03, 0x49, 0x2d, 0x4e, 0x00, 0xe8, 0x90, 0xdc, - 0x30, 0xd8, 0x30, 0xdf, 0x30, 0x05, 0xa2, 0x30, 0x30, 0x57, 0xb9, 0x06, - 0x07, 0x9c, 0x43, 0x28, 0x0f, 0x10, 0x6e, 0x00, 0x74, 0x48, 0x1d, 0x6c, - 0x00, 0x20, 0x00, 0x04, 0x42, 0x00, 0x6f, 0x00, 0x68, 0x28, 0x23, 0x6d, - 0x00, 0x55, 0x69, 0x28, 0x2f, 0x6e, 0x20, 0x11, 0x52, 0x28, 0x31, 0x67, - 0x20, 0x0d, 0x75, 0x6f, 0x20, 0x27, 0x04, 0x1f, 0xdb, 0x50, 0x6f, 0xea, - 0x20, 0x6f, 0x65, 0x20, 0x7d, 0x6a, 0x63, 0xc0, 0x8d, 0x05, 0x38, 0xa9, - 0x4d, 0x20, 0xe7, 0x74, 0x20, 0xff, 0x65, 0x8d, 0x20, 0xfd, 0x62, 0x00, - 0xf6, 0x20, 0xfb, 0x30, 0xf9, 0x73, 0x20, 0x89, 0xf7, 0x31, 0x05, 0x04, - 0xf0, 0xfd, 0x50, 0xff, 0x71, 0x6d, 0x20, 0xe1, 0x8d, 0x05, 0x39, 0xa9, - 0x71, 0xdd, 0x5e, 0xf3, 0x41, 0xeb, 0x64, 0x41, 0x85, 0xd2, 0x03, 0xf0, - 0x95, 0x03, 0xdf, 0xdf, 0x2d, 0x01, 0x4e, 0x77, 0x63, 0x4b, 0x51, 0xde, - 0x5d, 0x06, 0x7f, 0xb5, 0x00, 0xa4, 0xc2, 0xb8, 0xd2, 0x74, 0xb9, 0x1c, - 0xc8, 0x00, 0xc4, 0xb3, 0xb4, 0xcc, 0xa4, 0xc2, 0xa4, 0xd0, 0x03, 0x20, - 0x00, 0xc0, 0xc9, 0x29, 0xbc, 0x05, 0x9f, 0xc3, 0x32, 0x7f, 0x47, 0x64, - 0x41, 0x77, 0x6e, 0x00, 0x2d, 0xa3, 0x7d, 0x33, 0x95, 0x05, 0x3f, 0xc9, - 0xa3, 0x33, 0xef, 0xe9, 0x00, 0x62, 0x7f, 0x20, 0x00, 0x28, 0x2c, 0x35, - 0x53, 0xfd, 0x54, 0xe3, 0x24, 0x17, 0x29, 0x04, 0x2f, 0xda, 0x21, 0x28, - 0x17, 0x35, 0x04, 0x14, 0x34, 0x04, 0x3d, 0x20, 0x05, 0x47, 0x20, 0x09, - 0x48, 0x04, 0x00, 0x41, 0x04, 0x3a, 0x04, 0x38, 0x04, 0x39, 0x04, 0x17, - 0x20, 0x00, 0x3a, 0x48, 0x33, 0x39, 0x04, 0xc8, 0x31, 0x06, 0xf4, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x4a, 0x02, 0x38, 0x0c, 0x02, 0x02, 0x28, 0x1b, - 0x0b, 0x30, 0x06, 0x02, 0x84, 0x58, 0x17, 0x04, 0x49, 0x57, 0x53, 0x06, - 0xb8, 0x15, 0x00, 0x00, 0x56, 0x53, 0x28, 0x07, 0x75, 0x28, 0x17, 0x68, - 0x06, 0x28, 0x13, 0x00, 0x18, 0x17, 0x64, 0xad, 0x2b, 0xb7, 0x20, 0x20, - 0x93, 0x75, 0x26, 0xa1, 0x05, 0x70, 0xff, 0xfc, 0x27, 0x0d, 0xd7, 0x06, - 0x38, 0x11, 0x00, 0x38, 0x17, 0x4d, 0x2c, 0xb5, 0x72, 0x46, 0x29, 0x59, - 0x87, 0x05, 0x19, 0x1d, 0xe4, 0x01, 0x38, 0x17, 0x00, 0x30, 0x95, 0x03, - 0x7f, 0xdf, 0x57, 0x53, 0x06, 0xd8, 0x17, 0x74, 0xc7, 0x37, 0x38, 0xd6, - 0x06, 0x58, 0x11, 0x5f, 0xff, 0x5a, 0x2e, 0xa9, 0x38, 0x19, 0x06, 0x38, - 0x13, 0xb8, 0x00, 0x18, 0x17, 0x64, 0x2c, 0x15, 0x53, 0x7f, 0x05, 0x58, - 0x15, 0x00, 0x00, 0x2e, 0x2e, 0x04, 0x36, 0x28, 0x13, 0x3e, 0x06, 0x48, - 0x13, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x03, 0x00, 0x0a, 0x02, - 0x0d, 0x02, 0x03, 0x03, 0x03, 0x0d, 0x10, 0x02, 0x0e, 0x0a, 0x20, 0x06, - 0x03, 0xd3, 0x22, 0x4a, 0x80, 0x28, 0x17, 0x05, 0x49, 0xd7, 0x30, 0xeb, - 0x30, 0xbc, 0x22, 0x30, 0xcb, 0x06, 0x68, 0x15, 0x00, 0x00, 0x50, 0x2f, - 0x97, 0x7a, 0x9b, 0x2f, 0xab, 0x48, 0x01, 0x05, 0x77, 0x09, 0xfe, 0xaf, - 0xe9, 0x8f, 0x8f, 0x7e, 0xaf, 0x5f, 0x50, 0x2f, 0xc3, 0x6c, 0x2f, 0xb3, - 0x05, 0x3d, 0x33, 0xbc, 0x0d, 0x05, 0xd0, 0x79, 0x00, 0x10, 0x7f, 0xb3, - 0x59, 0x19, 0x69, 0x41, 0x01, 0x50, 0xff, 0x48, 0x01, 0x05, 0x70, 0xff, - 0xb8, 0x17, 0x81, 0x05, 0xb1, 0x7f, 0xd4, 0x6b, 0x14, 0x5c, 0xee, 0x68, - 0x06, 0x98, 0x17, 0x0f, 0x0c, 0xd5, 0x20, 0xc8, 0x06, 0x58, 0x11, 0x73, - 0x7f, 0x05, 0xf2, 0x71, 0x00, 0x53, 0xff, 0xe0, 0x3f, 0x19, 0x05, 0x38, - 0x07, 0xff, 0xfb, 0x1f, 0x04, 0x3b, 0x04, 0x4c, 0x2e, 0x04, 0x37, 0x28, - 0x15, 0x3d, 0x06, 0x28, 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x04, 0x00, 0x08, 0x0c, 0x09, 0x0b, 0x0b, 0x04, 0x04, 0x08, 0x00, 0x0a, - 0x09, 0x08, 0x04, 0x04, 0x04, 0x04, 0x5e, 0x00, 0x23, 0x82, 0x09, 0x00, - 0x00, 0x06, 0x49, 0xab, 0x22, 0x30, 0xfc, 0x28, 0x19, 0xb9, 0x30, 0xd0, - 0x20, 0x07, 0xc8, 0xa8, 0x06, 0x28, 0x1d, 0x4b, 0x2e, 0xa7, 0x72, 0x2e, - 0x95, 0x6f, 0x00, 0x76, 0x2f, 0x00, 0x79, 0x2f, 0xb1, 0x56, 0x40, 0x0f, - 0x30, 0x09, 0x05, 0x5f, 0x2f, 0x00, 0x38, 0x17, 0xe2, 0x00, 0x70, 0x93, - 0x05, 0x18, 0x17, 0x71, 0x0d, 0x73, 0x00, 0x62, 0x2f, 0xbf, 0x64, 0xf0, - 0x06, 0x88, 0x17, 0x05, 0x91, 0x01, 0x00, 0x38, 0x17, 0x05, 0xb1, 0x7f, - 0x61, 0x53, 0x57, 0x7f, 0x02, 0xf4, 0x7e, 0xd1, 0x53, 0x29, 0x52, 0x06, - 0x58, 0x1b, 0x74, 0x00, 0xce, 0x7c, 0xb9, 0x5c, 0xb8, 0x44, 0xbe, 0x14, - 0x1e, 0xbc, 0xac, 0xb9, 0x06, 0x38, 0x1f, 0x06, 0x12, 0x71, 0x01, 0x73, - 0xff, 0x05, 0x58, 0x25, 0x1a, 0xa3, 0x27, 0xff, 0x40, 0x28, 0x1b, 0x3e, - 0x04, 0x32, 0x40, 0x09, 0x05, 0xf8, 0x1b, 0xc0, 0x06, 0xf4, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x05, 0x03, 0x09, 0x04, 0x06, 0x05, 0x02, 0x05, 0x05, - 0x02, 0x04, 0x02, 0x03, 0x20, 0x06, 0x05, 0x11, 0xb7, 0x23, 0x27, 0x28, - 0x17, 0x07, 0x49, 0xa6, 0x28, 0x17, 0x10, 0xb9, 0x30, 0xc1, 0x28, 0x1d, - 0xfb, 0x30, 0xca, 0x30, 0x41, 0xc9, 0x20, 0x05, 0xe9, 0x30, 0xd9, 0x30, - 0xe0, 0x05, 0x88, 0x21, 0x45, 0xda, 0x2f, 0x97, 0x74, 0x00, 0xed, 0x2f, - 0xab, 0x6e, 0x47, 0x09, 0x15, 0x20, 0x00, 0x4c, 0x28, 0x29, 0x62, 0x2f, - 0xb7, 0x6d, 0x05, 0x48, 0x1b, 0xbf, 0xf8, 0x17, 0x27, 0x00, 0xc0, 0x91, - 0x04, 0xf8, 0x17, 0x71, 0x0d, 0x05, 0x9e, 0xbd, 0x00, 0x58, 0x17, 0x05, - 0x91, 0x03, 0xc0, 0x00, 0x38, 0x17, 0x05, 0xb1, 0x81, 0xc9, 0x62, 0x1d, - 0x8d, 0xb3, 0x6c, 0x00, 0x54, 0x75, 0x4c, 0x4e, 0xaf, 0x65, 0x63, 0x5b, - 0x80, 0x06, 0x18, 0x1b, 0xb0, 0xc6, 0xa4, 0xc2, 0xf0, 0xd2, 0x98, 0x01, - 0xb0, 0xb8, 0xd2, 0x7c, 0xb7, 0xb0, 0xbc, 0x06, 0x18, 0x19, 0xe8, 0x05, - 0xd2, 0xed, 0x01, 0xf3, 0xff, 0x05, 0x18, 0x1b, 0x23, 0x28, 0x09, 0x42, - 0x04, 0x35, 0x38, 0x04, 0x46, 0x05, 0xe8, 0x0f, 0x07, 0x74, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x06, 0x0c, 0x07, 0x06, 0x0a, 0x0c, 0x0c, 0x06, 0x06, - 0x20, 0x04, 0x20, 0x05, 0x06, 0x00, 0x06, 0x08, 0x24, 0x04, 0x0a, 0x00, - 0x00, 0x08, 0x23, 0x49, 0xea, 0x28, 0x05, 0xec, 0x30, 0xc4, 0x05, 0x88, - 0x07, 0xff, 0xfa, 0x77, 0x4c, 0x2f, 0xab, 0x38, 0x05, 0x3c, 0x1b, 0x63, - 0x05, 0x8b, 0x25, 0x00, 0x98, 0x17, 0x3f, 0x33, 0xfe, 0xd0, 0x93, 0x05, - 0x9f, 0xaf, 0x05, 0xd0, 0x79, 0x00, 0xb8, 0x17, 0x05, 0x91, 0x01, 0x00, - 0x38, 0x17, 0x05, 0xb1, 0x7f, 0x29, 0x01, 0x52, 0x1d, 0x8d, 0xf7, 0x96, - 0x4b, 0x51, 0x06, 0x18, 0x11, 0x80, 0x5f, 0xff, 0xac, 0xb9, 0xa0, 0xbc, - 0x08, 0xb8, 0x20, 0x7d, 0xce, 0x06, 0x18, 0x11, 0x00, 0x33, 0x7f, 0x07, - 0x13, 0xff, 0x05, 0x18, 0x09, 0xdf, 0xff, 0x1b, 0x28, 0x0d, 0x5c, 0x31, - 0x28, 0x17, 0x40, 0x06, 0x68, 0x1b, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, - 0x7f, 0x07, 0x04, 0x00, 0x0a, 0x05, 0x07, 0x06, 0x07, 0x07, 0x03, 0x05, - 0x00, 0x05, 0x04, 0x07, 0x07, 0x07, 0x07, 0x18, 0x24, 0x40, 0xb2, 0x28, - 0x17, 0x09, 0x49, 0xd5, 0x30, 0xe9, 0x30, 0x45, 0xc7, 0x28, 0x17, 0xfb, - 0x30, 0xaf, 0x20, 0x09, 0xed, 0x28, 0x25, 0xba, 0x05, 0xd8, 0x21, 0x48, - 0x2c, 0x11, 0x3f, 0x95, 0x58, 0x15, 0x4b, 0x2c, 0x1f, 0xe1, 0x2f, 0x00, - 0x6c, 0x2f, 0xbd, 0x76, 0x2f, 0xc7, 0x05, 0x3b, 0x2f, 0x00, 0x38, 0x17, - 0x00, 0xb0, 0x93, 0xfc, 0x04, 0xd8, 0x17, 0x05, 0xb0, 0x79, 0x00, 0xb8, - 0x17, 0x05, 0x91, 0x01, 0x00, 0x38, 0x17, 0x05, 0xb1, 0x7f, 0x6b, 0x8d, - 0x00, 0xc9, 0x62, 0xb7, 0x5f, 0x28, 0x83, 0x2d, 0x00, 0x00, 0x4b, 0x51, - 0xc9, 0x62, 0x1b, 0x6d, 0xe6, 0x97, 0x80, 0x05, 0xd8, 0x21, 0x50, 0xd7, - 0x7c, 0xb7, 0x70, 0xb3, 0x20, 0x00, 0xce, 0x6c, 0xd0, 0x84, 0xb7, 0x5c, - 0xb8, 0xa0, 0x7a, 0xbc, 0x05, 0xf8, 0x1f, 0x06, 0x12, 0x71, 0x01, 0xb3, - 0xff, 0x05, 0x18, 0x25, 0x1a, 0x48, 0x01, 0x3b, 0x0a, 0x04, 0x3e, 0x04, - 0x32, 0x28, 0x1d, 0x33, 0x48, 0x0f, 0x34, 0xe0, 0x05, 0xa8, 0x23, 0x06, - 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x08, 0x02, 0x08, 0x03, 0x05, 0x00, - 0x04, 0x08, 0x08, 0x01, 0x03, 0x04, 0x02, 0x08, 0x00, 0x08, 0x08, 0x08, - 0xb3, 0x23, 0x3d, 0x0b, 0x00, 0x00, 0x00, 0x0a, 0x49, 0xd1, 0x30, 0xeb, - 0x30, 0xc9, 0x0b, 0x30, 0xa5, 0x30, 0xd3, 0x28, 0x1b, 0xa7, 0x05, 0xe8, - 0x13, 0x45, 0x17, 0xab, 0x28, 0x15, 0x72, 0x2f, 0xa7, 0x75, 0x2f, 0xa1, - 0x69, 0x2f, 0x9d, 0x3f, 0xaf, 0xff, 0x05, 0xbb, 0x33, 0x00, 0x38, 0x17, - 0x00, 0x10, 0x93, 0x05, 0x5f, 0xaf, 0x05, 0xd0, 0x79, 0x00, 0xb8, 0x17, - 0x05, 0x91, 0x01, 0x00, 0x38, 0x17, 0x80, 0x05, 0xb1, 0x7f, 0x15, 0x5e, - 0x14, 0x5c, 0x5c, 0x67, 0xd4, 0x18, 0x6b, 0xc7, 0x91, 0x05, 0xd8, 0x0f, - 0x7f, 0xff, 0x0c, 0xd3, 0x74, 0x01, 0xb9, 0x50, 0xb4, 0x44, 0xbe, 0xb4, - 0xcc, 0x05, 0xf8, 0x11, 0xf5, 0x00, 0x73, 0x7f, 0x07, 0x13, 0xff, 0x05, - 0x18, 0x0d, 0x9f, 0xff, 0x1f, 0x28, 0x15, 0x40, 0x28, 0x09, 0x1e, 0x43, - 0x04, 0x31, 0x28, 0x07, 0x05, 0x78, 0x0d, 0x07, 0x94, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x09, 0x00, 0x07, 0x0b, 0x08, 0x0a, 0x0a, 0x09, 0x09, 0x07, - 0x00, 0x09, 0x08, 0x07, 0x09, 0x09, 0x09, 0x09, 0x92, 0x20, 0x23, 0x36, - 0x28, 0x17, 0x0b, 0x49, 0xaa, 0x30, 0xed, 0x0e, 0x30, 0xe2, 0x30, 0xa6, - 0x28, 0x15, 0x06, 0x18, 0x13, 0x3f, 0xff, 0x4f, 0xae, 0x4f, 0x89, 0x6d, - 0x2f, 0xaf, 0x75, 0x4f, 0x9d, 0x05, 0xb8, 0x13, 0x00, 0x38, 0x17, 0x27, - 0xd0, 0xe0, 0x91, 0x05, 0xb7, 0x97, 0x20, 0x41, 0x0d, 0x6d, 0x00, 0xfc, - 0x00, 0x1f, 0x74, 0x00, 0x7a, 0x05, 0x6e, 0xb4, 0x00, 0x58, 0x17, 0x05, - 0x91, 0x03, 0x00, 0x38, 0x17, 0x05, 0xb1, 0x81, 0x00, 0x65, 0x59, 0x1b, - 0x6d, 0x46, 0x7a, 0x28, 0x83, 0x80, 0x06, 0x58, 0x15, 0x00, 0x00, 0x2c, - 0xc6, 0x5c, 0xb8, 0xa8, 0x07, 0xba, 0xb0, 0xc6, 0x20, 0xce, 0x06, 0x58, - 0x17, 0x05, 0xd2, 0xed, 0x01, 0x13, 0xff, 0xc0, 0x05, 0xb8, 0x13, 0x3f, - 0xff, 0x1e, 0x04, 0x3b, 0x04, 0x3e, 0x04, 0x5c, 0x3c, 0x20, 0x03, 0x43, - 0x06, 0x28, 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0a, 0x06, - 0x40, 0x06, 0x28, 0x0f, 0x0a, 0x0a, 0x06, 0x08, 0x07, 0x06, 0x00, 0x0a, - 0x0a, 0x0a, 0x0a, 0x43, 0x23, 0x45, 0x0c, 0x80, 0x2c, 0xad, 0x49, 0xe2, - 0x30, 0xe9, 0x30, 0xd3, 0x30, 0x00, 0xa2, 0x30, 0xfb, 0x30, 0xb7, 0x30, - 0xec, 0x30, 0x6a, 0xb8, 0x20, 0x09, 0x05, 0xd8, 0x1f, 0x4d, 0x2f, 0xa9, - 0x72, 0x2f, 0x9f, 0x76, 0xa2, 0x2f, 0xb3, 0x61, 0x2f, 0xb3, 0x2d, 0x00, - 0x53, 0x2f, 0xbd, 0x6c, 0xba, 0x2f, 0xb7, 0x73, 0x60, 0x11, 0x04, 0xdb, - 0x3f, 0xb0, 0x7f, 0x65, 0x80, 0x7d, 0xe9, 0xe0, 0x40, 0x7d, 0x05, 0x3d, - 0x3b, 0xd8, 0x17, 0x4d, 0x00, 0xe4, 0x00, 0x68, 0xaf, 0x2f, 0xa9, 0x69, - 0x20, 0xfd, 0x63, 0x20, 0x09, 0x31, 0x0d, 0x30, 0x07, 0x71, 0x0f, 0x7f, - 0x65, 0x04, 0x0c, 0x41, 0x00, 0x58, 0x17, 0xd1, 0x95, 0x31, 0x93, 0x91, - 0x91, 0x05, 0x18, 0x17, 0x00, 0x10, 0x7d, 0xc0, 0xb2, 0x11, 0x03, 0xdf, - 0xd5, 0x69, 0x64, 0xc9, 0x62, 0xf4, 0x7e, 0x00, 0x9a, 0x4e, 0x2d, 0x00, - 0x7f, 0x89, 0xcc, 0x91, 0x08, 0x7f, 0x89, 0x9a, 0x4e, 0x05, 0xd8, 0x21, - 0xa8, 0xba, 0x7c, 0x00, 0xb7, 0x44, 0xbe, 0x44, 0xc5, 0xe4, 0xc2, 0x08, - 0x06, 0xb8, 0xc0, 0xc9, 0x44, 0xc5, 0x05, 0xf8, 0x1d, 0xb3, 0x7f, 0xeb, - 0xb6, 0xa3, 0x7d, 0x7a, 0x40, 0x0f, 0x05, 0x73, 0xff, 0xe1, 0xe1, 0xeb, - 0x53, 0x7f, 0x61, 0xb1, 0x05, 0x28, 0x27, 0x1c, 0x28, 0x15, 0x38, 0x03, - 0x32, 0x04, 0x41, 0x28, 0x15, 0x51, 0x3e, 0x20, 0x05, 0x38, 0x28, 0x29, - 0x35, 0x04, 0x37, 0x40, 0x0f, 0xe2, 0x05, 0x18, 0x25, 0x07, 0xb4, 0xff, - 0x10, 0x0e, 0x30, 0x7f, 0x0b, 0x05, 0x03, 0x28, 0x12, 0x0b, 0x00, 0x0b, - 0x05, 0x06, 0x06, 0x05, 0x0b, 0x0b, 0x0b, 0x08, 0x0b, 0x6d, 0x23, 0xfb, - 0x28, 0x17, 0x0d, 0x49, 0x57, 0x75, 0x53, 0x78, 0x19, 0x05, 0xd8, 0x0f, - 0x7f, 0xff, 0x53, 0x4f, 0x97, 0x74, 0x27, 0x0d, 0xf5, 0xf6, 0x8d, 0x04, - 0xf8, 0x11, 0x00, 0x38, 0x17, 0x3f, 0x2f, 0x75, 0x2f, 0xb7, 0x53, 0x2f, - 0x27, 0x57, 0x64, 0x05, 0x60, 0xff, 0xfc, 0x2f, 0xa3, 0x6d, 0xe8, 0x0f, - 0x3f, 0xb9, 0x05, 0x5c, 0x39, 0xdd, 0xd9, 0x97, 0x38, 0x99, 0x65, 0x48, - 0x97, 0x38, 0x1f, 0x3c, 0xb3, 0x61, 0x49, 0xa3, 0xf3, 0x05, 0x19, 0x17, - 0x00, 0x98, 0x17, 0x00, 0x50, 0x93, 0x03, 0x7f, 0xdd, 0x57, 0x53, 0x78, - 0x19, 0x05, 0xd8, 0x0f, 0x84, 0x7f, 0xff, 0x74, 0xc7, 0x38, 0xd6, 0x38, - 0x1b, 0x04, 0xd5, 0x08, 0xa4, 0xc2, 0xa4, 0xd0, 0x05, 0xf8, 0x15, 0x00, - 0x00, 0x5a, 0xde, 0x2f, 0xa7, 0x31, 0xed, 0x2d, 0xe8, 0x21, 0x05, 0xdc, - 0x17, 0x78, 0x17, 0x3a, 0x97, 0x6f, 0xa0, 0x63, 0x7f, 0x6c, 0x05, 0x28, - 0x15, 0x00, 0x00, 0x2e, 0x04, 0x36, 0x2f, 0x04, 0x3d, 0x28, 0x1b, 0x3c, - 0xc8, 0x1f, 0x05, 0x18, 0x0f, 0x07, 0x74, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x00, 0x0c, 0x0b, 0x04, 0x0e, 0x03, 0x08, 0x0c, 0x0c, 0x00, 0x0e, 0x07, - 0x0d, 0x0b, 0x0c, 0x0c, 0x0c, 0x0c, 0x00, 0xfc, 0x22, 0xcf, 0x0b, 0x00, - 0x00, 0x0e, 0x49, 0x06, 0xba, 0x30, 0xea, 0x30, 0xf3, 0x06, 0x68, 0x13, - 0x54, 0x97, 0x6c, 0x37, 0x00, 0xed, 0x05, 0x68, 0x03, 0x00, 0x5f, 0xaf, - 0xe9, 0xaf, 0xaf, 0x5e, 0xaf, 0x70, 0x93, 0xee, 0x05, 0x50, 0x7f, 0x9f, - 0xaf, 0x50, 0x79, 0x69, 0x05, 0xe0, 0xff, 0x9c, 0x8b, 0x59, 0x17, 0x69, - 0xe1, 0x05, 0xc1, 0x01, 0x00, 0x38, 0x17, 0x05, 0xb1, 0x7f, 0x79, 0x51, - 0x97, 0x67, 0x06, 0x58, 0x11, 0x87, 0x5f, 0xff, 0x90, 0xc9, 0xb0, 0xb9, - 0x06, 0x18, 0x0d, 0x00, 0x13, 0x7f, 0x06, 0x71, 0x01, 0xe2, 0x93, 0xff, - 0x05, 0x18, 0x03, 0x00, 0x3f, 0xef, 0x17, 0x04, 0x3b, 0x28, 0x05, 0x3d, - 0xe0, 0x05, 0xe8, 0x0d, 0x07, 0x94, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0d, - 0x0e, 0x0d, 0x0c, 0x0e, 0x28, 0x0e, 0x0d, 0x20, 0x04, 0x01, 0x20, 0x05, - 0x0d, 0x0d, 0x00, 0x00, 0x23, 0x8d, 0x0c, 0x00, 0x00, 0x0f, 0x49, 0xf4, - 0x00, 0x30, 0xa3, 0x30, 0xbd, 0x30, 0xc1, 0x30, 0xca, 0x88, 0x06, 0x68, - 0x1b, 0x56, 0x00, 0x79, 0x2f, 0x23, 0x6f, 0x00, 0x0d, 0x7f, 0x01, 0x37, - 0x0f, 0x3e, 0xb1, 0x05, 0xd8, 0x1f, 0xf0, 0x7f, 0x05, 0xfe, 0x33, 0xd8, - 0x17, 0x06, 0x10, 0x8d, 0xf0, 0x00, 0x58, 0x17, 0x05, 0x91, 0x15, 0x00, - 0x38, 0x17, 0x05, 0xb1, 0x93, 0xf4, 0x7e, 0x22, 0x7d, 0x08, 0xfa, 0x57, - 0xb3, 0x7e, 0x06, 0x78, 0x1b, 0x44, 0xbe, 0x8c, 0x07, 0xc1, 0x58, 0xce, - 0x98, 0xb0, 0x06, 0x78, 0x1b, 0x06, 0xf2, 0xff, 0x00, 0x13, 0xff, 0xa0, - 0x05, 0xd8, 0x1f, 0x1a, 0x68, 0x05, 0x20, 0x00, 0x12, 0x04, 0x4b, 0x8b, - 0x28, 0x1d, 0x3e, 0x04, 0x47, 0x48, 0x27, 0x30, 0x05, 0x68, 0x17, 0x07, - 0xf4, 0xff, 0x80, 0x10, 0x0d, 0xf0, 0x7f, 0x0e, 0x0d, 0x0e, 0x0b, 0x0d, - 0x0d, 0x0e, 0xa0, 0x20, 0x04, 0x03, 0x20, 0x05, 0x0e, 0x0e, 0x1f, 0x23, - 0x15, 0x40, 0x0b, 0x00, 0x3f, 0xff, 0x01, 0x09, 0x05, 0x02, 0x04, 0x01, - 0x02, 0x01, 0x01, 0x09, 0x0b, 0x0a, 0x09, 0x20, 0x06, 0x01, 0x54, 0x02, - 0x40, 0x04, 0x02, 0x20, 0x13, 0x0b, 0x30, 0x06, 0x02, 0x03, 0x00, 0x0a, - 0x02, 0x0d, 0x02, 0x03, 0x03, 0x03, 0x0d, 0x10, 0x02, 0x0e, 0x0a, 0x20, - 0x06, 0x03, 0x04, 0x08, 0x0c, 0x00, 0x09, 0x0b, 0x0b, 0x04, 0x04, 0x08, - 0x0a, 0x09, 0x00, 0x08, 0x04, 0x04, 0x04, 0x04, 0x05, 0x03, 0x09, 0x09, - 0x04, 0x06, 0x05, 0x05, 0x20, 0x44, 0x02, 0x03, 0x20, 0x06, 0x00, 0x05, - 0x06, 0x0c, 0x07, 0x0a, 0x0c, 0x0c, 0x06, 0x60, 0x06, 0x20, 0x04, 0x20, - 0x05, 0x06, 0x06, 0x07, 0x04, 0x0a, 0x04, 0x05, 0x07, 0x06, 0x07, 0x07, - 0x20, 0x1c, 0x04, 0x07, 0x00, 0x07, 0x07, 0x07, 0x08, 0x02, 0x08, 0x03, - 0x05, 0x00, 0x04, 0x08, 0x08, 0x01, 0x03, 0x04, 0x02, 0x08, 0x00, 0x08, - 0x08, 0x08, 0x09, 0x07, 0x0b, 0x08, 0x0a, 0x00, 0x0a, 0x09, 0x09, 0x07, - 0x09, 0x08, 0x07, 0x09, 0x0c, 0x09, 0x09, 0x09, 0x0a, 0x20, 0x32, 0x20, - 0x05, 0x0a, 0x06, 0x00, 0x08, 0x07, 0x06, 0x0a, 0x0a, 0x0a, 0x0a, 0x0b, - 0x20, 0x05, 0x03, 0x20, 0x0a, 0x0b, 0x0b, 0x05, 0x06, 0x06, 0x00, 0x05, - 0x0b, 0x0b, 0x0b, 0x0b, 0x0c, 0x0b, 0x04, 0x00, 0x0e, 0x03, 0x08, 0x0c, - 0x0c, 0x0e, 0x07, 0x0d, 0x5c, 0x0b, 0x20, 0x62, 0x0c, 0xf8, 0xff, 0xf0, - 0xf7, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x4c, 0x41, 0x00, - 0x11, 0x07, 0x00, 0x00, 0x30, 0x01, 0x4a, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xc6, 0x27, 0xc2, - 0x08, 0x00, 0x00, 0x00, 0x12, 0x4a, 0xb0, 0x30, 0xea, 0x30, 0xfc, 0x09, - 0x30, 0xf3, 0x30, 0xe9, 0x20, 0x03, 0xc9, 0x30, 0x06, 0x18, 0x23, 0x04, - 0x47, 0x00, 0x72, 0x00, 0x65, 0x20, 0x01, 0x6e, 0x00, 0x15, 0x6c, 0x00, - 0x61, 0x20, 0x05, 0x64, 0x06, 0x20, 0x7f, 0x6f, 0x06, 0xe0, 0x7f, 0x6c, - 0xf6, 0x06, 0x80, 0xfd, 0x00, 0x30, 0xff, 0x69, 0x21, 0x87, 0x0d, 0x90, - 0x7f, 0x3c, 0x68, 0x08, 0x75, 0x96, 0x70, 0x51, 0x06, 0x9b, 0x1b, 0xf8, - 0xad, 0xb0, 0x06, 0xb9, 0x80, 0xb7, 0xdc, 0xb4, 0x06, 0x7b, 0x9d, 0x07, - 0x32, 0xff, 0x6f, 0xa8, 0x23, 0xfd, 0x65, 0x23, 0xff, 0xe2, 0x06, 0x22, - 0x7f, 0x13, 0x04, 0x40, 0x00, 0x04, 0x35, 0x04, 0x3d, 0x04, 0x3b, 0x04, - 0x30, 0x81, 0x20, 0x05, 0x34, 0x04, 0x38, 0x04, 0x4f, 0x04, 0x0d, 0xf4, - 0xff, 0x80, 0x10, 0x0e, 0xb0, 0x7f, 0x01, 0x04, 0x02, 0x02, 0x01, 0x02, - 0x01, 0x40, 0x01, 0x20, 0x05, 0x04, 0x01, 0x01, 0x01, 0x01, 0xa4, 0x12, - 0x2d, 0x39, 0xdb, 0x23, 0x15, 0x4a, 0xc7, 0x28, 0x13, 0xde, 0x80, 0x28, - 0x19, 0xaf, 0x30, 0x96, 0x99, 0xfd, 0x90, 0x30, 0x15, 0x57, 0xdf, 0x57, - 0x05, 0xdf, 0xbf, 0x43, 0x28, 0x0d, 0x70, 0x26, 0x8b, 0x41, 0x74, 0x28, - 0x15, 0x6c, 0x00, 0x20, 0x00, 0x52, 0x28, 0x25, 0x6a, 0x67, 0x26, 0x9b, - 0x34, 0x2b, 0x20, 0x27, 0xb1, 0x66, 0x20, 0x13, 0x44, 0xa2, 0x48, 0x37, - 0x6d, 0x28, 0x37, 0x72, 0x00, 0x6b, 0x03, 0xef, 0xde, 0x48, 0xa2, 0x28, - 0x15, 0x76, 0x28, 0x99, 0x64, 0x00, 0x73, 0x40, 0x83, 0x64, 0xd5, 0x48, - 0xa3, 0x05, 0x9f, 0xc3, 0x48, 0x29, 0x0d, 0x75, 0x21, 0x01, 0x74, 0x80, - 0x7f, 0x7e, 0x74, 0x49, 0x29, 0x71, 0x03, 0x05, 0x10, 0x7f, 0x06, 0xf0, - 0xff, 0x06, 0xd1, 0x7f, 0x32, 0xf5, 0x27, 0x10, 0x59, 0x3a, 0x53, 0x06, - 0x7f, 0xb5, 0x74, 0xb3, 0xc8, 0xb9, 0x00, 0x6c, 0xd0, 0x20, 0x00, 0x18, - 0xc2, 0xc4, 0xb3, 0x00, 0x8c, 0xad, 0x20, 0x00, 0xc0, 0xc9, 0xed, 0xc5, - 0xc1, 0x05, 0xbf, 0xc1, 0x0e, 0xf1, 0xff, 0x21, 0x04, 0x42, 0x04, 0x3e, - 0x28, 0x15, 0x14, 0x38, 0x04, 0x47, 0x28, 0x1d, 0x30, 0x28, 0x15, 0x20, - 0x00, 0x15, 0x3e, 0x04, 0x31, 0x48, 0x27, 0x41, 0x20, 0x1b, 0x4c, 0x04, - 0xe8, 0x25, 0xc0, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x02, 0x01, - 0x03, 0x03, 0x02, 0x03, 0x04, 0x02, 0x02, 0x03, 0x03, 0x04, 0x28, 0x1b, - 0x02, 0x02, 0x00, 0xc6, 0x27, 0xc2, 0x08, 0x00, 0x00, 0x14, 0x4a, 0x01, - 0x2d, 0x4e, 0x2e, 0x59, 0xe6, 0x30, 0xe9, 0x28, 0x1d, 0xff, 0x06, 0x18, - 0x13, 0x58, 0x17, 0x3f, 0xab, 0x37, 0x0b, 0x58, 0x17, 0xd8, 0x03, 0xd8, - 0x27, 0x04, 0x3f, 0xca, 0x56, 0x4a, 0x27, 0x95, 0x74, 0x8f, 0xad, 0x2d, - 0xe0, 0x8f, 0x05, 0x1f, 0xbe, 0x4d, 0xa3, 0x49, 0x13, 0x74, 0x4d, 0x2f, - 0x6a, 0x00, 0xfc, 0xa0, 0x8b, 0x05, 0x5f, 0xb4, 0xaf, 0xd0, 0xff, 0x20, - 0xe1, 0x8f, 0x65, 0x05, 0xe0, 0x7f, 0x3e, 0x2b, 0xf0, 0x83, 0x04, 0xdf, - 0xcb, 0x00, 0x2d, 0x4e, 0xe5, 0x65, 0xb7, 0x5f, 0x70, 0x51, 0x83, 0x06, - 0x78, 0x1b, 0x11, 0xc9, 0x80, 0xbd, 0x20, 0x88, 0x1d, 0x05, 0xf8, 0x15, - 0xad, 0x52, 0x7f, 0x64, 0x6b, 0x0d, 0x2d, 0xe3, 0x0d, 0x05, 0xb2, 0x7f, - 0xe2, 0x06, 0x61, 0xff, 0x11, 0x26, 0x04, 0x35, 0x28, 0x0f, 0x42, 0x04, - 0x40, 0x28, 0x13, 0x6c, 0x3b, 0x28, 0x05, 0x78, 0x1b, 0x2e, 0x28, 0x2f, - 0x38, 0x1b, 0x3d, 0x04, 0x5c, 0x34, 0x28, 0x33, 0x4f, 0x04, 0x88, 0x1d, - 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x03, 0x02, 0x09, 0x05, 0x04, - 0x04, 0x05, 0x28, 0x15, 0x05, 0x06, 0x28, 0x1b, 0x00, 0x03, 0x03, 0x24, - 0x28, 0xaf, 0x06, 0x00, 0x00, 0x08, 0x15, 0x4a, 0x17, 0x53, 0x06, 0xb8, - 0x15, 0x00, 0x00, 0x4e, 0xad, 0x2f, 0xaf, 0x72, 0x2f, 0xa9, 0x68, 0x06, - 0x28, 0x13, 0x00, 0x38, 0x17, 0x64, 0x2f, 0xbd, 0x7d, 0x2d, 0x60, 0x95, - 0x05, 0x37, 0x9b, 0x70, 0x69, 0x06, 0x38, 0x13, 0x00, 0x38, 0x17, 0x53, - 0x2f, 0xbb, 0xfd, 0x58, 0xa7, 0x59, 0xad, 0x5c, 0xb9, 0x04, 0x98, 0x23, - 0x00, 0x38, 0x17, 0x30, 0x83, 0x70, 0x00, 0x40, 0x83, 0x93, 0x04, 0x1f, - 0xd5, 0x17, 0x53, 0x06, 0xd8, 0x17, 0x81, 0xbd, 0x06, 0xd8, 0x17, 0x33, - 0x7f, 0xeb, 0x52, 0xeb, 0x06, 0x38, 0x15, 0x00, 0x58, 0x17, 0x64, 0x2f, - 0x2d, 0x20, 0x84, 0x19, 0x04, 0xda, 0x9b, 0x57, 0x21, 0x28, 0x17, 0x32, - 0x28, 0x1b, 0x40, 0x06, 0x08, 0x11, 0x07, 0x54, 0xff, 0x10, 0x0e, 0xf0, - 0x7f, 0x89, 0x28, 0x0f, 0x05, 0x05, 0x06, 0x28, 0x1a, 0x06, 0x03, 0x28, - 0x20, 0x00, 0x04, 0x04, 0x91, 0x28, 0x0d, 0x07, 0x00, 0x00, 0x06, 0x16, - 0x4a, 0xb7, 0x30, 0xa7, 0x06, 0xc8, 0x17, 0xbb, 0x0f, 0x20, 0x38, 0x00, - 0x5a, 0x2f, 0xad, 0x3f, 0xa7, 0x05, 0x9f, 0x31, 0x5a, 0x00, 0xe9, 0xb6, - 0x8f, 0xa1, 0x65, 0x06, 0x28, 0x17, 0x37, 0x87, 0x65, 0x06, 0x28, 0x0f, - 0x90, 0x7f, 0x6a, 0x3e, 0x00, 0xe6, 0x2f, 0xaf, 0x06, 0x70, 0x81, 0x38, - 0x87, 0xb8, 0x15, 0x05, 0xff, 0xb3, 0x7f, 0x61, 0x89, 0x06, 0x98, 0x13, - 0x3f, 0xff, 0x78, 0xc1, 0x80, 0xb7, 0x06, 0x38, 0x0f, 0xf7, 0x07, 0x72, - 0x7f, 0x33, 0xf1, 0xb8, 0x15, 0x05, 0xfc, 0x9b, 0x17, 0x28, 0x17, 0x05, - 0x98, 0x05, 0x08, 0x14, 0xff, 0x81, 0x10, 0x0e, 0xf0, 0x7f, 0x05, 0x07, - 0x07, 0x06, 0x06, 0x07, 0x28, 0x1a, 0x20, 0x07, 0x02, 0x20, 0x05, 0x05, - 0x05, 0x6b, 0x27, 0x39, 0x42, 0x08, 0x2d, 0x2d, 0x4a, 0x57, 0x53, 0xc7, - 0x28, 0x15, 0xde, 0x0c, 0x30, 0xfc, 0x30, 0xaf, 0x06, 0x48, 0x1b, 0xd8, - 0x17, 0x6f, 0x00, 0x55, 0x66, 0x4e, 0xb3, 0x6f, 0x4f, 0xc5, 0x68, 0x2e, - 0xbb, 0x72, 0x48, 0x2f, 0xd6, 0xdb, 0x49, 0x03, 0xbf, 0xc6, 0x44, 0x4f, - 0xa1, 0x65, 0x8b, 0xa5, 0x78, 0x19, 0x53, 0xd1, 0x2f, 0x47, 0x05, 0x58, - 0x17, 0xfc, 0x2f, 0xa7, 0x64, 0x00, 0xe4, 0xc0, 0x85, 0xbd, 0x05, 0xb8, - 0x17, 0x79, 0x40, 0x7f, 0x3f, 0xaf, 0x06, 0x10, 0x7d, 0x31, 0x7f, 0x69, - 0x2e, 0x9d, 0x55, 0x61, 0x6d, 0x25, 0x63, 0x4e, 0x2f, 0x4d, 0x41, 0xf7, - 0x69, 0x4e, 0x3f, 0xe0, 0x3d, 0x2b, 0x3a, 0x29, 0x04, 0x7f, 0xcb, 0x57, - 0x53, 0x39, 0x4e, 0xa6, 0x40, 0x9e, 0x06, 0x98, 0x19, 0xa8, 0xb0, 0x80, - 0xbd, 0x20, 0x00, 0x02, 0x74, 0xb3, 0xc8, 0xb9, 0x6c, 0xd0, 0x06, 0x38, - 0x1f, 0x5a, 0xde, 0x2f, 0xaf, 0x31, 0x69, 0x2d, 0x6e, 0xad, 0x93, 0x09, - 0x3e, 0xbb, 0x06, 0x51, 0xff, 0x64, 0xd8, 0x2f, 0x43, 0x34, 0x05, 0x75, - 0x04, 0xa1, 0xf7, 0x7f, 0xff, 0x2e, 0x04, 0x36, 0xa3, 0x28, 0x13, 0x30, - 0x28, 0x11, 0x20, 0x00, 0x14, 0x48, 0x1f, 0x05, 0xd8, 0x1d, 0xc0, 0x06, - 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x06, 0x06, 0x01, 0x07, 0x07, 0x01, - 0xb0, 0x28, 0x1a, 0x01, 0x28, 0x1f, 0x20, 0x01, 0x9e, 0x27, 0xc7, 0x06, - 0x00, 0x00, 0x00, 0x18, 0x4a, 0xd5, 0x30, 0xa7, 0x30, 0x42, 0xed, 0x28, - 0x15, 0xf8, 0x8a, 0xf6, 0x5c, 0x06, 0x3d, 0x33, 0x46, 0xa0, 0x47, 0xeb, - 0x6f, 0x2f, 0xab, 0x20, 0x00, 0x49, 0x00, 0x73, 0xaa, 0x8f, 0xbb, 0x73, - 0x05, 0x6f, 0x3b, 0xce, 0x2f, 0xab, 0x65, 0x20, 0x77, 0x20, 0xaa, 0x20, - 0x89, 0xe9, 0x40, 0x89, 0xe9, 0x05, 0xe0, 0xff, 0xe4, 0x28, 0xfb, 0xf6, - 0xed, 0x49, 0x01, 0x06, 0x3e, 0xb3, 0x31, 0x73, 0x6f, 0x41, 0x03, 0x31, - 0x01, 0xe6, 0x29, 0x87, 0x1f, 0x20, 0x00, 0xd8, 0x05, 0xa0, 0x8d, 0x71, - 0xf3, 0x51, 0x81, 0x3a, 0x07, 0x32, 0x0b, 0x80, 0x05, 0x9f, 0xbd, 0xd5, - 0x6c, 0x57, 0x7f, 0xa4, 0x7f, 0x9b, 0xc0, 0x06, 0x42, 0xfb, 0x3f, 0xff, - 0x98, 0xd3, 0x5c, 0xb8, 0x20, 0x00, 0x0f, 0x1c, 0xc8, 0xc4, 0xb3, 0x06, - 0x58, 0x97, 0x33, 0x7f, 0x3b, 0x7d, 0x06, 0x72, 0x81, 0x5d, 0x49, 0x2f, - 0x1d, 0x68, 0x81, 0xff, 0x54, 0x0b, 0x05, 0xb3, 0x81, 0x24, 0x28, 0x13, - 0x11, 0x40, 0x04, 0x35, 0x20, 0x03, 0x41, 0x04, 0x3a, 0x28, 0x13, 0x54, - 0x35, 0x28, 0x1f, 0x3e, 0x20, 0x0b, 0x42, 0x20, 0x15, 0x3e, 0x04, 0x70, - 0x32, 0x28, 0x31, 0x0c, 0xd4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x07, 0x03, - 0x04, 0x01, 0x20, 0x03, 0x04, 0x28, 0x1a, 0x04, 0x05, 0x03, 0x07, 0x07, - 0x02, 0x07, 0x07, 0x18, 0x2c, 0x31, 0xfb, 0x00, 0x3f, 0xff, 0x01, 0x01, - 0x04, 0x02, 0x02, 0x01, 0x02, 0x01, 0x01, 0x20, 0x05, 0x10, 0x04, 0x01, - 0x01, 0x20, 0x07, 0x01, 0x03, 0x03, 0x02, 0x09, 0x03, 0x02, 0x02, 0x03, - 0x20, 0x3f, 0x02, 0x02, 0x20, 0x07, 0x10, 0x02, 0x05, 0x04, 0x20, 0x42, - 0x03, 0x04, 0x05, 0x06, 0xc4, 0x20, 0x13, 0x40, 0x07, 0x05, 0x05, 0x06, - 0x20, 0x12, 0x06, 0x03, 0xd4, 0x20, 0x18, 0x20, 0x1a, 0x07, 0x28, 0x77, - 0x07, 0x20, 0x12, 0x07, 0x02, 0xf8, 0x20, 0x05, 0x20, 0x1a, 0xe8, 0x8f, - 0xf0, 0x87, 0x3f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x4b, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x43, 0x2a, 0x96, - 0x11, 0x00, 0x00, 0x00, 0x01, 0x4b, 0xa8, 0x30, 0xb9, 0x30, 0xc8, 0x04, - 0x30, 0xcb, 0x30, 0xa2, 0x30, 0x06, 0x58, 0x1f, 0x45, 0x00, 0x00, 0x73, - 0x00, 0x74, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x15, 0x69, 0x00, 0x61, 0x06, - 0xe0, 0x7f, 0x65, 0x06, 0x80, 0xff, 0x6c, 0x20, 0xfb, 0x18, 0x6e, 0x00, - 0x64, 0x0e, 0xe1, 0x7f, 0x06, 0x31, 0xff, 0x31, 0x72, 0x99, 0x04, 0x6c, - 0x3c, 0x5c, 0x9a, 0x4e, 0x06, 0x7b, 0x1d, 0xd0, 0xc5, 0x00, 0xa4, 0xc2, - 0xa0, 0xd1, 0xc8, 0xb2, 0x44, 0xc5, 0xd0, 0x06, 0xb3, 0x7f, 0x06, 0xf2, - 0x7f, 0xf3, 0x06, 0x83, 0xff, 0x2d, 0x04, 0x41, 0x04, 0x00, 0x42, 0x04, - 0x3e, 0x04, 0x3d, 0x04, 0x38, 0x04, 0x33, 0x4f, 0x04, 0x10, 0x06, 0x13, - 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0xc0, - 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x54, 0xab, 0x00, 0x11, 0x14, 0x00, 0x00, 0x30, 0x01, 0x4c, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xc9, 0x2a, 0xbb, 0x11, 0x00, 0x00, 0x00, 0x08, 0x4c, 0xa6, 0x30, - 0xfc, 0x30, 0xb7, 0x24, 0x30, 0xde, 0x20, 0x05, 0x0c, 0x77, 0x06, 0x38, - 0x21, 0x55, 0x00, 0x00, 0x75, 0x00, 0x73, 0x00, 0x69, 0x00, 0x6d, 0x00, - 0x44, 0x61, 0x20, 0x01, 0x20, 0x00, 0x2f, 0x20, 0x03, 0x4e, 0x00, 0x11, - 0x79, 0x00, 0x6c, 0x20, 0x0f, 0x6e, 0x00, 0x64, 0x05, 0xe0, 0x7f, 0xc0, - 0x06, 0xf0, 0xff, 0x10, 0x06, 0x10, 0x7f, 0xb0, 0x65, 0x30, 0x57, 0x3a, - 0x53, 0x80, 0x06, 0x9b, 0x1b, 0xb0, 0xc6, 0xdc, 0xc2, 0xc8, 0xb9, 0x20, - 0x18, 0x00, 0xfc, 0xc8, 0x06, 0x5b, 0x9f, 0x0e, 0xf2, 0xff, 0x23, 0x04, - 0x43, 0x00, 0x04, 0x41, 0x04, 0x38, 0x04, 0x3c, 0x04, 0x30, 0xe0, 0x20, - 0x01, 0x0e, 0xf4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x01, 0x13, 0x12, 0x13, - 0x13, 0x02, 0x13, 0x01, 0x01, 0x10, 0x13, 0x0f, 0x20, 0x05, 0x01, 0x40, - 0x01, 0x58, 0x17, 0x09, 0x4c, 0xe9, 0x30, 0xc3, 0x30, 0x0a, 0xd4, 0x30, - 0xde, 0x5d, 0x06, 0x7f, 0xb5, 0x4c, 0x28, 0x0f, 0x70, 0xbd, 0x20, 0x01, - 0x69, 0x68, 0x13, 0x50, 0x0f, 0x05, 0x78, 0x15, 0x70, 0x7f, 0x6f, 0x28, - 0x83, 0x1f, 0x69, 0x00, 0x65, 0x06, 0xa0, 0xff, 0x05, 0x90, 0xf1, 0x00, - 0x51, 0x7f, 0x51, 0x01, 0x06, 0x19, 0x19, 0xd5, 0xb1, 0x7f, 0x3a, 0x17, - 0x66, 0x2a, 0x23, 0x6e, 0x8a, 0x15, 0x65, 0x2a, 0x33, 0x80, 0x04, 0xd9, - 0xad, 0xc9, 0x62, 0x6e, 0x66, 0x70, 0x51, 0x01, 0xc3, 0x06, 0x4b, 0x13, - 0x3f, 0xff, 0x7c, 0xb7, 0x3c, 0xd5, 0x06, 0x98, 0x15, 0x73, 0x7f, 0xd1, - 0x06, 0x72, 0x7d, 0x73, 0xff, 0xf3, 0x06, 0x62, 0x7d, 0x00, 0x00, 0x1b, - 0x28, 0x0f, 0x11, 0x3f, 0x04, 0x3b, 0x28, 0x15, 0x3d, 0x04, 0x34, 0x28, - 0x1f, 0x70, 0x4f, 0x05, 0xe8, 0x1b, 0x07, 0x54, 0xff, 0x10, 0x0e, 0x90, - 0x7f, 0x02, 0x0b, 0x08, 0x05, 0x00, 0x09, 0x08, 0x02, 0x02, 0x07, 0x08, - 0x06, 0x0b, 0x00, 0x02, 0x02, 0x02, 0x02, 0x49, 0x2f, 0x4c, 0x12, 0x00, - 0x00, 0x00, 0x0a, 0x4c, 0x17, 0x53, 0xdd, 0x30, 0x00, 0xd5, 0x30, 0xe4, - 0x30, 0xf3, 0x30, 0xde, 0x30, 0x14, 0xfc, 0x30, 0x0c, 0x06, 0x05, 0x1f, - 0x50, 0x27, 0x93, 0x68, 0x00, 0x57, 0x6a, 0x27, 0x99, 0x69, 0x2f, 0xb7, - 0x2d, 0x80, 0x0f, 0x3b, 0x2d, 0xdb, 0x43, 0x10, 0x6f, 0x00, 0x72, 0x20, - 0x01, 0x61, 0x00, 0xa0, 0x00, 0x51, 0xd6, 0x2f, 0xe1, 0x74, 0x27, 0xc5, - 0x72, 0x00, 0x62, 0x27, 0xd1, 0x55, 0x74, 0x40, 0x0b, 0x6e, 0x02, 0x6f, - 0xeb, 0x4f, 0x40, 0x4b, 0x72, 0x28, 0x19, 0xd7, 0x50, 0x4b, 0x58, 0x1f, - 0x20, 0x2b, 0xa9, 0x75, 0x80, 0x75, 0x04, 0xbb, 0xb5, 0x70, 0x61, 0x77, - 0xf6, 0x03, 0xa0, 0xd3, 0x02, 0xf0, 0xff, 0x3c, 0xb7, 0x53, 0x29, 0x25, - 0x71, 0x59, 0x31, 0x1f, 0x5d, 0x69, 0x49, 0x3b, 0x61, 0x2c, 0xc7, 0x03, - 0xd9, 0x3d, 0xf1, 0x7f, 0x68, 0x88, 0x21, 0xb8, 0x38, 0x15, 0x6c, 0x81, - 0xf9, 0x31, 0xef, 0x04, 0x3f, 0xd5, 0x17, 0x53, 0x5a, 0x04, 0x53, 0xd5, - 0x6e, 0x3a, 0x53, 0x06, 0x7b, 0x17, 0x81, 0xbd, 0x00, 0x24, 0xc6, 0xa4, - 0xc2, 0xb8, 0xd2, 0x5c, 0xb8, 0x00, 0xf4, 0xbc, 0xb8, 0xd2, 0xc8, 0xb2, - 0x44, 0xc5, 0xed, 0x05, 0xd8, 0x25, 0x33, 0x57, 0x52, 0xe3, 0x2d, 0x03, - 0xc3, 0x57, 0x02, 0x33, 0x7f, 0xf3, 0xa2, 0x7f, 0x70, 0x64, 0x2b, 0xab, - 0x04, 0xf1, 0xfb, 0x3f, 0xff, 0x21, 0x04, 0x35, 0x04, 0x54, 0x32, 0x20, - 0x03, 0x40, 0x28, 0x17, 0x30, 0x28, 0x15, 0x20, 0x00, 0x04, 0x1e, 0x04, - 0x41, 0x04, 0x42, 0x20, 0x0f, 0x3e, 0x04, 0x5d, 0x31, 0x20, 0x03, 0x42, - 0x28, 0x2f, 0x04, 0xb8, 0x2d, 0x02, 0x14, 0xff, 0x20, 0x03, 0xc4, 0xff, - 0xc0, 0x06, 0xf5, 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x03, 0x10, 0x0b, 0x09, - 0x0d, 0x0b, 0x00, 0x03, 0x03, 0x09, 0x0b, 0x0c, 0x10, 0x03, 0x03, 0x04, - 0x03, 0x03, 0x3b, 0x2e, 0x1c, 0x28, 0x17, 0x0b, 0x4c, 0x06, 0xab, 0x30, - 0xa4, 0x30, 0xcc, 0x06, 0x48, 0x11, 0x5f, 0xff, 0x4b, 0xdf, 0x2f, 0xaf, - 0x3e, 0x21, 0x75, 0x47, 0x87, 0x3b, 0x31, 0x30, 0x11, 0x58, 0x17, 0x36, - 0x85, 0xf0, 0x04, 0xff, 0x45, 0xb0, 0x7f, 0x06, 0xf0, 0xff, 0x10, 0x06, - 0x30, 0x7f, 0xef, 0x51, 0xaa, 0x52, 0x80, 0x06, 0x98, 0x15, 0x00, 0x00, - 0x74, 0xce, 0x74, 0xc7, 0x04, 0x6a, 0xb2, 0x05, 0xd8, 0x0b, 0x0f, 0xb2, - 0xff, 0x1a, 0x28, 0x0d, 0x39, 0x28, 0x13, 0x43, 0xe0, 0x20, 0x01, 0x0e, - 0xf4, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x04, 0x06, 0x06, 0x02, 0x06, 0x02, - 0x04, 0x04, 0x04, 0x04, 0x06, 0x03, 0x40, 0x06, 0xab, 0x00, 0x2d, 0xb8, - 0x13, 0x00, 0x00, 0x0c, 0x4c, 0x17, 0x00, 0x53, 0xab, 0x30, 0xec, 0x30, - 0xea, 0x30, 0xa2, 0xef, 0x06, 0x68, 0x19, 0xfb, 0x2f, 0x38, 0x27, 0x72, - 0x4b, 0x2f, 0x38, 0x13, 0x00, 0x1a, 0xab, 0x50, 0x1f, 0xd5, 0x3e, 0x49, - 0x03, 0x5f, 0x4f, 0x43, 0x40, 0x6f, 0xe9, 0x2f, 0x07, 0x69, 0x2f, 0xad, - 0xfb, 0x3e, 0xa5, 0x38, 0x9f, 0x7f, 0xc5, 0x05, 0x5d, 0xaf, 0x3d, 0xad, - 0x6b, 0x80, 0xd7, 0x30, 0x87, 0xf7, 0x04, 0xfd, 0xa5, 0xf0, 0xff, 0x50, - 0x77, 0x3f, 0xa5, 0x53, 0x2f, 0xa5, 0x7e, 0x29, 0x3f, 0xc7, 0x7f, 0x69, - 0x2f, 0xc9, 0x59, 0xa1, 0x04, 0x5f, 0xaf, 0x91, 0xcf, 0x7e, 0x27, 0x31, - 0xdb, 0x05, 0x3e, 0x29, 0x80, 0x5f, 0xff, 0x17, 0x53, 0x61, 0x53, 0x2f, - 0x7d, 0x29, 0x10, 0x52, 0x3f, 0x96, 0x06, 0x58, 0x1d, 0x81, 0xbd, 0x74, - 0xce, 0x03, 0x10, 0xb8, 0xac, 0xb9, 0x44, 0xc5, 0x06, 0x58, 0x1b, 0x3f, - 0x91, 0xee, 0x52, 0xeb, 0x73, 0x7b, 0x52, 0x83, 0xeb, 0x05, 0xc2, 0x7f, - 0x53, 0x7f, 0x51, 0xff, 0x6f, 0x80, 0x05, 0xa1, 0xfd, 0x00, 0x00, 0x21, - 0x04, 0x35, 0x04, 0x32, 0xa0, 0x20, 0x03, 0x40, 0x28, 0x1b, 0x30, 0x04, - 0x4f, 0x04, 0x20, 0xa3, 0x48, 0x29, 0x40, 0x20, 0x15, 0x3b, 0x04, 0x38, - 0x20, 0x0f, 0x07, 0xd4, 0xff, 0xf0, 0x5d, 0x35, 0x03, 0xb4, 0xff, 0x06, - 0xf5, 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x05, 0x0f, 0x02, 0x08, 0x00, 0x02, - 0x05, 0x05, 0x05, 0x08, 0x01, 0x0b, 0x0f, 0x80, 0x20, 0x06, 0x05, 0x83, - 0x2c, 0x27, 0x15, 0x00, 0x00, 0x41, 0x0d, 0x28, 0x17, 0xb5, 0x30, 0xf4, - 0x30, 0xa9, 0x06, 0x68, 0x15, 0xaf, 0x00, 0x18, 0x17, 0x53, 0x2f, 0xbf, - 0x76, 0x44, 0x1b, 0xf8, 0x11, 0x70, 0x19, 0x3b, 0x43, 0x6b, 0x78, 0x03, - 0x8f, 0xdb, 0x70, 0x6f, 0x6e, 0x06, 0xe8, 0x17, 0x73, 0x60, 0xf7, 0x05, - 0xff, 0xb4, 0xf0, 0x91, 0x6f, 0x05, 0xf8, 0x11, 0x00, 0x11, 0x7f, 0x06, - 0x58, 0x17, 0x28, 0x84, 0x83, 0x6c, 0xc3, 0x06, 0x58, 0x13, 0x58, 0x17, - 0xac, 0xc0, 0xf4, 0xbc, 0x06, 0x58, 0x13, 0xf8, 0x17, 0xda, 0x73, 0x7b, - 0x06, 0x12, 0x7f, 0xf3, 0xa1, 0xff, 0x06, 0x98, 0x17, 0x3e, 0x28, 0x23, - 0x20, 0xaf, 0x28, 0x29, 0x30, 0x28, 0x29, 0x3e, 0x05, 0x08, 0x11, 0x01, - 0xd4, 0xff, 0x3b, 0xb1, 0x04, 0x34, 0xff, 0xc0, 0x06, 0xf5, 0x7f, 0x10, - 0x06, 0xf0, 0x7f, 0x06, 0x11, 0x10, 0x0a, 0x12, 0x10, 0x00, 0x06, 0x06, - 0x0a, 0x10, 0x0d, 0x11, 0x06, 0x06, 0x00, 0x06, 0x06, 0xb9, 0x2c, 0xae, - 0x13, 0x00, 0x00, 0x14, 0x0e, 0x4c, 0x57, 0x06, 0xe8, 0x17, 0x45, 0x4e, - 0x9b, 0x6c, 0x00, 0x47, 0xe4, 0x00, 0x08, 0x13, 0x53, 0x00, 0xf6, 0x2f, - 0xbd, 0x04, 0xb8, 0x13, 0x00, 0x98, 0x17, 0x76, 0x53, 0x28, 0x1d, 0x05, - 0x38, 0x15, 0x38, 0x97, 0xfc, 0x06, 0xa8, 0x15, 0xb8, 0x17, 0x4d, 0xdd, - 0x2f, 0xb5, 0x38, 0x0d, 0x64, 0x05, 0x68, 0x11, 0x00, 0xd8, 0x17, 0x31, - 0x81, 0x72, 0x05, 0x2f, 0xc0, 0x4b, 0x57, 0x06, 0xe8, 0x17, 0xa8, 0xb0, - 0x06, 0xd8, 0x17, 0x5a, 0x2b, 0x07, 0x31, 0xf3, 0xe8, 0x06, 0x58, 0x15, - 0x00, 0x78, 0x17, 0x33, 0x7f, 0x6c, 0x05, 0x4c, 0xa8, 0x2e, 0x04, 0x36, - 0xf8, 0x06, 0x68, 0x11, 0x01, 0x94, 0xff, 0x04, 0x78, 0x13, 0x07, 0x35, - 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x07, 0x04, 0x11, 0x00, 0x12, 0x11, 0x11, - 0x07, 0x07, 0x14, 0x11, 0x14, 0x00, 0x04, 0x07, 0x07, 0x07, 0x07, 0xdd, - 0x2b, 0x63, 0xa0, 0x28, 0x17, 0x0f, 0x28, 0x17, 0xdd, 0x30, 0xd5, 0x30, - 0xe4, 0x03, 0x30, 0xf3, 0x30, 0xde, 0x30, 0xfc, 0x06, 0x28, 0x1d, 0xb8, - 0x17, 0xae, 0x7b, 0x3b, 0x61, 0x2f, 0xbd, 0x6d, 0x2f, 0xc7, 0x3e, 0x3f, - 0xf8, 0x21, 0xd6, 0xc7, 0x2f, 0x59, 0x3e, 0xd3, 0x72, 0x00, 0x62, 0x2f, - 0xe5, 0x7e, 0xdf, 0x02, 0x9f, 0xd8, 0x5e, 0x4f, 0x40, 0x4f, 0x72, 0x2f, - 0xb5, 0x50, 0x4f, 0x05, 0xf8, 0x1f, 0x58, 0x17, 0xf6, 0xfa, 0x03, 0xe0, - 0xd5, 0x02, 0xd0, 0xff, 0x3f, 0xb7, 0x05, 0x78, 0x25, 0xf1, 0x7f, 0x68, - 0x05, 0xe8, 0x21, 0x57, 0x04, 0x53, 0x5a, 0x53, 0xd5, 0x6e, 0x06, 0xb8, - 0x17, 0x24, 0xc6, 0x00, 0xa4, 0xc2, 0xb8, 0xd2, 0x5c, 0xb8, 0xf4, 0xbc, - 0x03, 0xb8, 0xd2, 0xc8, 0xb2, 0x44, 0xc5, 0x05, 0xd8, 0x23, 0x98, 0x17, - 0xdc, 0x03, 0xf3, 0x59, 0x02, 0x13, 0x7f, 0xf3, 0xa2, 0x7f, 0x05, 0x78, - 0x1f, 0x58, 0x17, 0x30, 0x04, 0x40, 0x4f, 0x28, 0x17, 0x1e, 0x04, 0x41, - 0x04, 0x42, 0x04, 0x55, 0x40, 0x28, 0x25, 0x31, 0x28, 0x29, 0x42, 0x28, - 0x2f, 0x38, 0x20, 0x17, 0xb8, 0x07, 0xb4, 0xff, 0x20, 0x04, 0x04, 0xff, - 0x06, 0xf5, 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x08, 0x03, 0x0c, 0x00, 0x11, - 0x0c, 0x0c, 0x08, 0x08, 0x13, 0x0c, 0x13, 0x00, 0x03, 0x08, 0x08, 0x08, - 0x08, 0xa6, 0x2c, 0x3e, 0x05, 0x10, 0x00, 0x00, 0x10, 0x4c, 0x06, 0xd8, - 0x15, 0x00, 0x00, 0x88, 0x0b, 0xff, 0x05, 0x74, 0xa5, 0x00, 0x58, 0x17, - 0x05, 0x9f, 0xb8, 0x06, 0x55, 0x8d, 0x00, 0xf8, 0x17, 0x06, 0x90, 0x7f, - 0x78, 0x17, 0x05, 0x8f, 0x2f, 0x9f, 0x06, 0xc8, 0x15, 0x00, 0x00, 0x06, - 0xd8, 0x15, 0x07, 0xd2, 0x7f, 0x98, 0x17, 0x05, 0x9f, 0xb1, 0x06, 0x38, - 0x0b, 0xc0, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x09, 0x0e, 0x09, - 0x0b, 0x0a, 0x09, 0x02, 0x09, 0x09, 0x0c, 0x09, 0x07, 0x0e, 0x20, 0x06, - 0x09, 0x00, 0xdd, 0x2c, 0x27, 0x0f, 0x00, 0x00, 0x11, 0x4c, 0x05, 0xd4, - 0x30, 0xeb, 0x30, 0xab, 0x06, 0xc8, 0x17, 0x69, 0x2f, 0xfb, 0x57, 0x6b, - 0x00, 0x0b, 0x23, 0x42, 0x80, 0x17, 0x6c, 0x4b, 0x3f, 0x04, 0x7f, 0xb5, - 0x00, 0x10, 0x7f, 0xc0, 0x06, 0xf0, 0xff, 0x10, 0x05, 0xd0, 0x7f, 0xae, - 0x76, 0x14, 0x5c, 0x61, 0x53, 0x80, 0x06, 0x98, 0x19, 0x3c, 0xd5, 0x74, - 0xb9, 0x78, 0xce, 0xc8, 0x68, 0xb9, 0x05, 0xf8, 0x0f, 0x0f, 0x72, 0xff, - 0x1f, 0x28, 0x07, 0x40, 0x04, 0x3a, 0x2b, 0x04, 0x30, 0x28, 0x11, 0x3c, - 0x20, 0x05, 0x30, 0x05, 0xa8, 0x13, 0x08, 0x54, 0xff, 0x80, 0x10, 0x0d, - 0xd0, 0x7f, 0x0a, 0x0d, 0x0e, 0x0e, 0x0f, 0x0e, 0x0a, 0x00, 0x0a, 0x0e, - 0x0e, 0x08, 0x0d, 0x0a, 0x0a, 0x0a, 0x00, 0x0a, 0xbb, 0x2b, 0xe6, 0x10, - 0x00, 0x00, 0x12, 0x02, 0x4c, 0xb5, 0x30, 0xbf, 0x30, 0xaf, 0x28, 0x17, - 0xbf, 0x8a, 0x06, 0x48, 0x15, 0x00, 0x00, 0x53, 0x2e, 0x9d, 0x74, 0x2e, - 0xa1, 0x6b, 0x3d, 0x00, 0x75, 0x2f, 0xab, 0x30, 0x09, 0x5b, 0x2f, 0xd0, - 0x17, 0x64, 0x04, 0x8e, 0xc3, 0xe0, 0x00, 0x10, 0x7f, 0x06, 0xf0, 0xff, - 0x10, 0x05, 0xd0, 0x7f, 0x28, 0x84, 0x54, 0x58, 0x06, 0x10, 0x66, 0x54, - 0x58, 0x06, 0x78, 0x19, 0xac, 0xc0, 0xc0, 0xd0, 0x0d, 0xe4, 0xcf, 0xc0, - 0xd0, 0x06, 0x78, 0x17, 0x0e, 0xf2, 0xff, 0x21, 0x28, 0x11, 0x47, 0x42, - 0x28, 0x15, 0x3a, 0x04, 0x43, 0x28, 0x19, 0x30, 0x09, 0x0e, 0xf4, 0xff, - 0x80, 0x10, 0x0d, 0xd0, 0x7f, 0x0b, 0x12, 0x0f, 0x0f, 0x10, 0x0f, 0x0b, - 0x00, 0x0b, 0x0f, 0x0f, 0x0a, 0x12, 0x0b, 0x0b, 0x0b, 0x00, 0x0b, 0xb8, - 0x2b, 0x80, 0x0f, 0x00, 0x00, 0x13, 0x00, 0x4c, 0x2d, 0x4e, 0xe8, 0x90, - 0xdd, 0x30, 0xd5, 0x22, 0x30, 0xe4, 0x28, 0x1b, 0xde, 0x30, 0xfc, 0x06, - 0x08, 0x1d, 0x4b, 0x08, 0x00, 0x65, 0x00, 0x73, 0x2f, 0xaf, 0x69, 0x00, - 0x2d, 0x82, 0x2f, 0xbb, 0x6f, 0x00, 0x68, 0x00, 0x6a, 0x00, 0x0b, 0x3b, - 0x4d, 0xaa, 0x20, 0x23, 0x6c, 0x2b, 0x37, 0x65, 0x2f, 0xd9, 0x73, 0x48, - 0x45, 0xa0, 0x35, 0x00, 0xd6, 0x40, 0x09, 0x30, 0x11, 0x62, 0x20, 0x35, - 0x74, 0x40, 0x0b, 0x56, 0x6e, 0x02, 0x2f, 0xeb, 0x4f, 0x40, 0x51, 0x72, - 0x20, 0x79, 0x50, 0x47, 0x6e, 0xae, 0x2f, 0xbf, 0x65, 0x20, 0x8b, 0x43, - 0x40, 0x4f, 0x30, 0x19, 0x3b, 0xb1, 0x65, 0xb1, 0x04, 0x8f, 0xc5, 0x4d, - 0x2f, 0xaf, 0x50, 0xbd, 0x6c, 0x00, 0xf6, 0x03, 0x60, 0xd3, 0xf6, 0x02, - 0xf0, 0xff, 0x3c, 0xb3, 0x05, 0x70, 0xff, 0xf1, 0x7f, 0x68, 0x00, 0x60, - 0x81, 0x04, 0x7f, 0xcf, 0x2d, 0x04, 0x4e, 0x5a, 0x53, 0xd5, 0x6e, 0x06, - 0x78, 0x15, 0x00, 0x00, 0x00, 0x11, 0xc9, 0x59, 0xc5, 0x24, 0xc6, 0xa4, - 0xc2, 0x00, 0xb8, 0xd2, 0x5c, 0xb8, 0xf4, 0xbc, 0xb8, 0xd2, 0x0e, 0xc8, - 0xb2, 0x44, 0xc5, 0x05, 0xb8, 0x23, 0xb2, 0xe7, 0x3e, 0x9b, 0x2d, 0xd8, - 0x03, 0x83, 0x59, 0x02, 0x13, 0x7f, 0xf3, 0x00, 0x82, 0x7f, 0x04, 0x9f, - 0xc3, 0x26, 0x04, 0x35, 0xa2, 0x48, 0x0f, 0x40, 0x28, 0x1f, 0x3b, 0x04, - 0x4c, 0x28, 0x1b, 0x30, 0x00, 0x04, 0x4f, 0x04, 0x20, 0x00, 0x1e, 0x04, - 0x41, 0x8a, 0x40, 0x15, 0x3e, 0x04, 0x31, 0x20, 0x03, 0x42, 0x28, 0x33, - 0x38, 0xdc, 0x20, 0x17, 0x07, 0x74, 0xff, 0x20, 0x03, 0x84, 0xff, 0x06, - 0xf5, 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x0c, 0x08, 0x00, 0x0a, 0x07, 0x0b, - 0x0a, 0x0c, 0x0c, 0x03, 0x0a, 0x00, 0x10, 0x08, 0x0c, 0x0c, 0x0c, 0x0c, - 0x65, 0x2d, 0x04, 0x73, 0x10, 0x00, 0x00, 0x14, 0x28, 0x17, 0x2e, 0x59, - 0x06, 0xb9, 0x30, 0xaa, 0x30, 0xdf, 0x06, 0x08, 0x11, 0x00, 0x18, 0x17, - 0x53, 0xaa, 0x2f, 0xb3, 0x6f, 0x28, 0x11, 0x69, 0x00, 0xa8, 0x0f, 0x46, - 0x28, 0x41, 0x6e, 0xde, 0x28, 0x25, 0x38, 0x3b, 0x64, 0x03, 0x2f, 0xdb, - 0xd0, 0x4f, 0x05, 0xb8, 0x11, 0x00, 0x18, 0x17, 0x66, 0xfc, 0x40, 0xdb, - 0x03, 0xb0, 0xdd, 0x01, 0xf0, 0xff, 0x05, 0xd8, 0x13, 0x01, 0x50, 0x7f, - 0x04, 0xdf, 0xc7, 0x2d, 0x4e, 0x08, 0xac, 0x82, 0x70, 0x51, 0x06, 0x98, - 0x17, 0x00, 0xcf, 0xa4, 0x00, 0xc2, 0xa4, 0xd0, 0x18, 0xc2, 0x24, 0xc6, - 0xf8, 0x7b, 0xbb, 0x05, 0xb8, 0x0f, 0x00, 0x98, 0x17, 0x03, 0xf3, 0x61, - 0x01, 0x53, 0x7f, 0xe2, 0x06, 0x61, 0xff, 0x00, 0x78, 0x17, 0x55, 0x24, - 0x28, 0x07, 0x3d, 0x28, 0x29, 0x4f, 0x28, 0x35, 0x34, 0x04, 0x68, 0x13, - 0xb8, 0x02, 0x14, 0xff, 0x20, 0x04, 0x04, 0xff, 0x06, 0xf5, 0x7f, 0x10, - 0x06, 0xf0, 0x7f, 0x0d, 0x09, 0x04, 0x00, 0x06, 0x03, 0x01, 0x0d, 0x0d, - 0x02, 0x03, 0x11, 0x00, 0x09, 0x0d, 0x0d, 0x0d, 0x0d, 0x42, 0x2c, 0x4e, - 0x00, 0x12, 0x00, 0x00, 0x15, 0x4c, 0xf4, 0x30, 0xa1, 0x00, 0x30, 0xeb, - 0x30, 0xb7, 0x30, 0xca, 0x30, 0xa4, 0x05, 0x30, 0xb9, 0x30, 0x3d, 0x00, - 0x05, 0xf8, 0x23, 0x56, 0x2f, 0xfd, 0xd4, 0x3b, 0x05, 0x37, 0xed, 0x61, - 0x2f, 0xab, 0x73, 0x00, 0x28, 0x1f, 0x45, 0x00, 0x56, 0x67, 0x6f, 0xbd, - 0x6c, 0x2f, 0xcd, 0x67, 0x03, 0xc8, 0x1f, 0xf8, 0x17, 0x20, 0x3f, 0x00, - 0x70, 0x4f, 0x3d, 0x30, 0x05, 0x04, 0xf8, 0x13, 0x01, 0x10, 0xff, 0x06, - 0x58, 0x17, 0x39, 0x9f, 0x45, 0x64, 0x2e, 0x39, 0x4f, 0x00, 0x63, 0x20, - 0x01, 0x69, 0x49, 0x2f, 0xee, 0x3f, 0xb9, 0x04, 0x39, 0x27, 0x00, 0x38, - 0x97, 0x50, 0x61, 0x81, 0x3e, 0x39, 0x04, 0xff, 0xc7, 0x7f, 0x10, 0x89, - 0x57, 0x53, 0x06, 0xb8, 0x19, 0x14, 0xbc, 0x74, 0xb9, 0x00, 0xdc, 0xc2, - 0x98, 0xb0, 0x74, 0xc7, 0xa4, 0xc2, 0xf6, 0x06, 0x38, 0x1d, 0x07, 0x72, - 0x7f, 0xb8, 0x17, 0x31, 0xff, 0xf3, 0x43, 0x87, 0x05, 0x12, 0x01, 0x21, - 0x02, 0x04, 0x3e, 0x04, 0x31, 0x04, 0x41, 0x28, 0x19, 0x32, 0xbf, 0x48, - 0x21, 0x3d, 0x20, 0x0f, 0x05, 0x98, 0x15, 0x02, 0x74, 0xff, 0x03, 0x98, - 0x1f, 0x06, 0xf5, 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x00, 0x0e, 0x14, 0x05, - 0x14, 0x04, 0x02, 0x0e, 0x0e, 0x00, 0x11, 0x04, 0x0e, 0x14, 0x0e, 0x0e, - 0x0e, 0x0e, 0x00, 0xfc, 0x2a, 0xd5, 0x0f, 0x00, 0x00, 0x16, 0x4c, 0x00, - 0x57, 0x53, 0xab, 0x30, 0xec, 0x30, 0xea, 0x30, 0x6a, 0xa2, 0x05, 0xa8, - 0x0b, 0xbf, 0xe6, 0x45, 0x6f, 0x2b, 0xe4, 0x2f, 0xa9, 0x4b, 0xb8, 0x48, - 0x23, 0x6a, 0x4f, 0xa7, 0x3e, 0xb7, 0x3b, 0x33, 0x53, 0x00, 0xf6, 0xdf, - 0x2f, 0xc7, 0x3f, 0xbb, 0xa0, 0x60, 0x1f, 0x3f, 0x59, 0x3f, 0xd1, 0x03, - 0x7d, 0x2f, 0x38, 0x97, 0x6e, 0xe9, 0x48, 0x71, 0x38, 0x15, 0x64, 0x2b, - 0xb3, 0x77, 0x19, 0x05, 0x3f, 0xb0, 0x53, 0x2f, 0x00, 0xfc, 0x2f, 0xa7, - 0x6b, 0x80, 0xd9, 0x30, 0x85, 0x03, 0x70, 0xdb, 0x01, 0x90, 0xff, 0xfb, - 0x50, 0x79, 0x3f, 0xab, 0x3c, 0xa3, 0x35, 0x8f, 0x3f, 0xbb, 0x6f, 0x49, - 0xab, 0x04, 0x18, 0x0b, 0xea, 0xdd, 0x2f, 0xd0, 0x7f, 0x39, 0x9b, 0x6c, - 0x68, 0x9b, 0x72, 0x05, 0x2f, 0xc4, 0x57, 0x00, 0x53, 0x61, 0x53, 0x2f, - 0x7d, 0x29, 0x52, 0x3f, 0x40, 0x96, 0x06, 0x58, 0x19, 0xa8, 0xb0, 0x74, - 0xce, 0x10, 0xb8, 0x0d, 0xac, 0xb9, 0x44, 0xc5, 0x05, 0xd8, 0x0f, 0x7f, - 0xff, 0x5a, 0x2e, 0xa3, 0xee, 0x39, 0xf9, 0x73, 0x7d, 0x52, 0x83, 0xeb, - 0x05, 0xe2, 0x7f, 0x53, 0x7f, 0x51, 0xff, 0x6f, 0xa2, 0x6a, 0x99, 0x6c, - 0x05, 0x4c, 0x9a, 0x2e, 0x04, 0x36, 0x28, 0x0d, 0x30, 0x8a, 0x28, 0x01, - 0x20, 0x00, 0x1a, 0x20, 0x07, 0x40, 0x28, 0x1d, 0x3b, 0xdc, 0x04, 0xc8, - 0x09, 0x02, 0x74, 0xff, 0x20, 0x04, 0x44, 0xff, 0x06, 0xf5, 0x7f, 0x10, - 0x06, 0xf0, 0x7f, 0x0f, 0x02, 0x00, 0x03, 0x10, 0x01, 0x06, 0x0f, 0x0f, - 0x12, 0x02, 0x00, 0x12, 0x02, 0x0f, 0x0f, 0x0f, 0x0f, 0x6c, 0x2b, 0x00, - 0x0a, 0x14, 0x00, 0x00, 0x17, 0x4c, 0xd1, 0x30, 0x00, 0xa4, 0x30, 0xe4, - 0x30, 0xc8, 0x30, 0x3d, 0x00, 0x15, 0xcf, 0x30, 0xe1, 0x06, 0x28, 0x1b, - 0x50, 0x28, 0x11, 0x69, 0x28, 0x0b, 0x45, 0xe4, 0x2e, 0x8f, 0x2d, 0x00, - 0x48, 0x28, 0x1f, 0x6d, 0x4f, 0xb5, 0xd5, 0x3b, 0x27, 0x90, 0x1b, 0x6e, - 0x2f, 0xd3, 0x65, 0x2a, 0xa5, 0x54, 0x2f, 0xd7, 0x5f, 0x76, 0x2f, 0xdb, - 0x73, 0x4b, 0x3b, 0x02, 0xfb, 0x2b, 0x00, 0x90, 0x7f, 0x06, 0xf0, 0xff, - 0x0e, 0x30, 0x7f, 0xb0, 0x51, 0xe3, 0x20, 0xc1, 0xe3, 0x05, 0x1e, 0x2f, - 0x3e, 0x6d, 0x9a, 0x4e, 0x02, 0x79, 0x72, 0x77, 0x6d, 0x85, 0x68, 0x06, - 0x58, 0x17, 0x0c, 0x00, 0xd3, 0x74, 0xc7, 0x8f, 0xc5, 0x58, 0xd5, 0x54, - 0x6a, 0xba, 0x06, 0x58, 0x17, 0x0e, 0xf1, 0xff, 0x1f, 0x28, 0x11, 0x39, - 0x28, 0x15, 0x42, 0x0b, 0x04, 0x2d, 0x00, 0x25, 0x28, 0x1d, 0x3c, 0x28, - 0x17, 0x08, 0x74, 0xff, 0xf0, 0xd3, 0x1b, 0x04, 0xb4, 0xff, 0x06, 0xf5, - 0x7f, 0x10, 0x05, 0x90, 0x7f, 0x10, 0x0c, 0x0d, 0x0d, 0x00, 0x0e, 0x0d, - 0x10, 0x10, 0x0d, 0x0d, 0x09, 0x0c, 0x00, 0x10, 0x10, 0x10, 0x10, 0x5d, - 0x2b, 0x3d, 0x12, 0x00, 0x00, 0x00, 0x18, 0x4c, 0xab, 0x30, 0xf3, 0x30, - 0x6a, 0xbf, 0x06, 0x88, 0x15, 0x5e, 0x2f, 0x6e, 0x2b, 0x33, 0x61, 0x00, - 0x08, 0x15, 0x45, 0x37, 0x00, 0x67, 0x4f, 0x3b, 0x38, 0x01, 0x69, 0x20, - 0x0b, 0x3a, 0xb1, 0x04, 0x18, 0x17, 0xfa, 0x00, 0x30, 0x7f, 0x06, 0xf0, - 0xff, 0x0d, 0xb0, 0x7f, 0xf8, 0x05, 0x3a, 0x0d, 0x72, 0x2e, 0x33, 0x70, - 0xc2, 0x05, 0x28, 0x13, 0x3f, 0xff, 0x4e, 0x57, 0x54, 0x58, 0x06, 0x98, - 0x15, 0x00, 0x06, 0x00, 0x78, 0xce, 0xc0, 0xd0, 0x06, 0x98, 0x15, 0x08, - 0x71, 0xff, 0xf3, 0xa0, 0x21, 0xff, 0x72, 0x05, 0x42, 0x01, 0x1a, 0x04, - 0x30, 0x04, 0x3d, 0xbe, 0x28, 0x15, 0x30, 0x06, 0x68, 0x17, 0x01, 0xb4, - 0xff, 0x04, 0x38, 0x17, 0x08, 0x35, 0x7f, 0x10, 0x05, 0xb0, 0x7f, 0x11, - 0x00, 0x07, 0x07, 0x03, 0x07, 0x12, 0x11, 0x11, 0x05, 0x00, 0x12, 0x04, - 0x07, 0x11, 0x11, 0x11, 0x11, 0x60, 0x00, 0x2b, 0x66, 0x11, 0x00, 0x00, - 0x19, 0x4c, 0x71, 0x00, 0x67, 0xa6, 0x30, 0xfc, 0x30, 0xb7, 0x30, 0xde, - 0xd4, 0x20, 0x05, 0x06, 0x38, 0x17, 0x49, 0x2f, 0xf9, 0xe4, 0x2f, 0xa9, - 0x55, 0x00, 0x56, 0x75, 0x2e, 0x21, 0x69, 0x2f, 0xad, 0x61, 0x46, 0x1d, - 0x3b, 0x2f, 0xd6, 0xa3, 0x4e, 0x33, 0x72, 0x48, 0x11, 0x4e, 0x00, 0x79, - 0x03, 0x6b, 0x21, 0xdf, 0xff, 0xa3, 0xf0, 0x77, 0x64, 0x4e, 0xb3, 0x6c, - 0x00, 0x27, 0x28, 0x97, 0x3e, 0xb1, 0xae, 0x04, 0xff, 0xba, 0x4f, 0x4f, - 0x17, 0x75, 0xc0, 0xfd, 0x05, 0xbe, 0xb7, 0xf1, 0x77, 0x4f, 0xde, 0x45, - 0x8f, 0x59, 0x8f, 0x61, 0x2c, 0x93, 0x04, 0xfe, 0x3b, 0x00, 0xf0, 0x7f, - 0x04, 0xff, 0xc3, 0x1c, 0x04, 0x4e, 0xb0, 0x65, 0x30, 0x57, 0x06, 0x78, - 0x15, 0x00, 0x00, 0x00, 0xd9, 0xb3, 0xb0, 0xc6, 0xdc, 0xc2, 0xc8, 0xb9, - 0xbd, 0x06, 0x78, 0x17, 0x4f, 0x29, 0x83, 0x3f, 0x99, 0xf3, 0x81, 0x06, - 0x72, 0x7f, 0x64, 0x2a, 0x13, 0x1c, 0x20, 0x00, 0x4c, 0x2f, 0x33, 0x3f, - 0x13, 0x05, 0x1b, 0xa3, 0x12, 0x04, 0x11, 0x3e, 0x04, 0x41, 0x28, 0x17, - 0x3e, 0x04, 0x47, 0x28, 0x1f, 0x41, 0x30, 0x28, 0x19, 0x20, 0x00, 0x23, - 0x04, 0x43, 0x20, 0x13, 0x5b, 0x38, 0x28, 0x23, 0x30, 0x28, 0x35, 0x07, - 0x34, 0xff, 0x20, 0x04, 0x84, 0xff, 0x06, 0xf5, 0x7f, 0x80, 0x10, 0x06, - 0xf0, 0x7f, 0x12, 0x05, 0x13, 0x0c, 0x14, 0x14, 0x12, 0x00, 0x12, 0x0b, - 0x14, 0x02, 0x05, 0x12, 0x12, 0x12, 0x04, 0x12, 0xf2, 0x2a, 0x3f, 0x12, - 0x2b, 0x2d, 0x4c, 0xad, 0x00, 0x30, 0xe5, 0x30, 0xe1, 0x30, 0xf3, 0x30, - 0xe9, 0x8b, 0x28, 0x1d, 0xaf, 0x30, 0xbd, 0x06, 0x08, 0x1b, 0x4b, 0x27, - 0xef, 0x3f, 0xa3, 0x47, 0x6e, 0x4f, 0xff, 0x61, 0x00, 0x6b, 0x2e, 0x39, - 0x34, 0x19, 0x3b, 0x31, 0xda, 0x50, 0x1b, 0x50, 0x1d, 0x65, 0x2b, 0x19, - 0x56, 0xa7, 0x6e, 0x03, 0xcf, 0xcf, 0x56, 0x8f, 0x46, 0xfd, 0x6c, 0x00, - 0xe9, 0x4b, 0xa7, 0x78, 0x15, 0x3e, 0xb7, 0x50, 0x99, 0x70, 0x69, 0x06, - 0x40, 0xff, 0x06, 0xf1, 0x7f, 0x0d, 0x90, 0x7f, 0x48, 0x5c, 0x73, 0x7c, - 0x80, 0x06, 0x98, 0x15, 0x00, 0x00, 0x34, 0xd0, 0x58, 0xba, 0x7d, 0x18, - 0xb7, 0x8c, 0xc1, 0x06, 0x78, 0x17, 0x0e, 0xf2, 0x7f, 0x1a, 0x04, 0x4e, - 0xaa, 0x27, 0xff, 0x35, 0x28, 0x13, 0x3b, 0x48, 0x05, 0x3a, 0x28, 0x25, - 0x3e, 0xe0, 0x04, 0xe8, 0x0b, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x13, 0x0a, 0x14, 0x04, 0x08, 0x00, 0x07, 0x13, 0x13, 0x06, 0x07, 0x05, - 0x0a, 0x13, 0x02, 0x13, 0x13, 0x13, 0x48, 0x2b, 0xfd, 0x28, 0x17, 0x1b, - 0x00, 0x4c, 0xa2, 0x30, 0xcf, 0x30, 0xd9, 0x30, 0xca, 0xa4, 0x28, 0x19, - 0xde, 0x28, 0x19, 0xde, 0x5d, 0x05, 0xfd, 0x37, 0x41, 0x00, 0x1d, 0x68, - 0x00, 0x76, 0x4e, 0x9f, 0x3b, 0x0b, 0xbb, 0x2d, 0xc5, 0x04, 0x4b, 0x1f, - 0xef, 0xff, 0xff, 0x05, 0x50, 0x65, 0x08, 0x90, 0x7f, 0x49, 0x49, 0x87, - 0x39, 0x6f, 0x05, 0x71, 0x71, 0x00, 0x10, 0x7f, 0xb0, 0x3d, 0x07, 0x73, - 0x89, 0x95, 0x05, 0xd1, 0x91, 0x65, 0x59, 0x70, 0x51, 0x02, 0x9b, 0x5c, - 0xea, 0x81, 0xbb, 0x6c, 0x06, 0x58, 0x1d, 0x44, 0x01, 0xc5, 0xa0, 0xbc, - 0x9c, 0xb0, 0xc8, 0xb9, 0x06, 0x78, 0x17, 0xb4, 0x07, 0x12, 0x7f, 0x6c, - 0x24, 0x01, 0x06, 0x91, 0xff, 0x10, 0x48, 0x0f, 0x3d, 0x04, 0x44, 0x34, - 0x28, 0x0f, 0x3a, 0x04, 0x38, 0x28, 0x21, 0x20, 0x00, 0x45, 0x3e, 0x28, - 0x1b, 0x42, 0x04, 0x40, 0x28, 0x1f, 0x32, 0x28, 0x2b, 0xc0, 0x0c, 0xd4, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x14, 0x01, 0x01, 0x01, 0x05, 0x03, 0x00, - 0x14, 0x14, 0x01, 0x05, 0x01, 0x01, 0x14, 0x14, 0x02, 0x14, 0x14, 0xbb, - 0x2a, 0x2d, 0x0e, 0x00, 0x3f, 0xff, 0x01, 0x20, 0x13, 0x12, 0x28, 0x36, - 0x01, 0x01, 0x10, 0x13, 0x0f, 0x80, 0x20, 0x05, 0x01, 0x01, 0x02, 0x0b, - 0x08, 0x05, 0x09, 0x00, 0x08, 0x02, 0x02, 0x07, 0x08, 0x06, 0x0b, 0x02, - 0x00, 0x02, 0x02, 0x02, 0x03, 0x10, 0x0b, 0x09, 0x0d, 0x00, 0x0b, 0x03, - 0x03, 0x09, 0x0b, 0x0c, 0x10, 0x03, 0x00, 0x03, 0x03, 0x03, 0x04, 0x06, - 0x06, 0x02, 0x06, 0x02, 0x04, 0x04, 0x04, 0x04, 0x06, 0x03, 0x40, 0x06, - 0x05, 0x00, 0x0f, 0x02, 0x08, 0x02, 0x05, 0x05, 0x05, 0x08, 0x10, 0x01, - 0x0b, 0x0f, 0x20, 0x06, 0x05, 0x06, 0x11, 0x10, 0x00, 0x0a, 0x12, 0x10, - 0x06, 0x06, 0x0a, 0x10, 0x0d, 0x00, 0x11, 0x06, 0x06, 0x06, 0x06, 0x07, - 0x04, 0x11, 0x00, 0x12, 0x11, 0x11, 0x07, 0x07, 0x14, 0x11, 0x14, 0x00, - 0x04, 0x07, 0x07, 0x07, 0x07, 0x08, 0x03, 0x0c, 0x00, 0x11, 0x0c, 0x0c, - 0x08, 0x08, 0x13, 0x0c, 0x13, 0x00, 0x03, 0x08, 0x08, 0x08, 0x08, 0x09, - 0x0e, 0x09, 0x00, 0x0b, 0x0a, 0x09, 0x09, 0x09, 0x0c, 0x09, 0x07, 0x40, - 0x0e, 0x20, 0x06, 0x09, 0x0a, 0x0d, 0x0e, 0x0e, 0x0f, 0x00, 0x0e, 0x0a, - 0x0a, 0x0e, 0x0e, 0x08, 0x0d, 0x0a, 0x00, 0x0a, 0x0a, 0x0a, 0x0b, 0x12, - 0x0f, 0x0f, 0x10, 0x00, 0x0f, 0x0b, 0x0b, 0x0f, 0x0f, 0x0a, 0x12, 0x0b, - 0x00, 0x0b, 0x0b, 0x0b, 0x0c, 0x08, 0x0a, 0x07, 0x0b, 0x00, 0x0a, 0x0c, - 0x0c, 0x03, 0x0a, 0x10, 0x08, 0x0c, 0x04, 0x0c, 0x0c, 0x0c, 0x0d, 0x09, - 0x20, 0x89, 0x01, 0x0d, 0x00, 0x0d, 0x02, 0x03, 0x11, 0x09, 0x0d, 0x0d, - 0x0d, 0x00, 0x0d, 0x0e, 0x14, 0x05, 0x14, 0x04, 0x02, 0x0e, 0x01, 0x0e, - 0x11, 0x04, 0x0e, 0x14, 0x0e, 0x0e, 0x20, 0x4b, 0x80, 0x20, 0xc1, 0x01, - 0x06, 0x0f, 0x0f, 0x12, 0x02, 0x12, 0x14, 0x02, 0x0f, 0x0f, 0x20, 0x4b, - 0x0c, 0x20, 0x23, 0x0d, 0x10, 0x00, 0x10, 0x0d, 0x0d, 0x09, 0x0c, 0x10, - 0x10, 0x10, 0x48, 0x10, 0x20, 0x9a, 0x03, 0x07, 0x20, 0xa1, 0x05, 0x12, - 0x04, 0x00, 0x07, 0x11, 0x11, 0x11, 0x11, 0x12, 0x05, 0x13, 0x00, 0x0c, - 0x14, 0x14, 0x12, 0x12, 0x0b, 0x14, 0x02, 0x06, 0x05, 0x12, 0x12, 0x12, - 0x12, 0xf9, 0x5f, 0xf1, 0x57, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0xe4, 0x00, - 0x11, 0x1a, 0x00, 0x00, 0x30, 0x01, 0x4d, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xbd, 0x22, 0xab, - 0x01, 0x00, 0x00, 0x00, 0x02, 0x4d, 0xa4, 0x30, 0xfc, 0x30, 0xeb, 0x08, - 0x30, 0xfb, 0x30, 0xc9, 0x20, 0x03, 0xd5, 0x30, 0xe9, 0x04, 0x30, 0xf3, - 0x30, 0xb9, 0x30, 0x05, 0xb8, 0x29, 0xce, 0x00, 0x01, 0x6c, 0x00, 0x65, - 0x00, 0x2d, 0x00, 0x64, 0x40, 0x05, 0x00, 0x46, 0x00, 0x72, 0x00, 0x61, - 0x00, 0x6e, 0x00, 0x62, 0x63, 0x20, 0x13, 0x10, 0x0d, 0x50, 0x7f, 0x49, - 0x00, 0x73, 0x22, 0x01, 0x61, 0x2b, 0x00, 0x20, 0x42, 0x01, 0x20, 0xa2, - 0x01, 0x69, 0x22, 0x09, 0x05, 0x1a, 0xb3, 0x00, 0xd5, 0x6c, 0x70, 0x51, - 0x7f, 0x89, 0x9b, 0x5c, 0x08, 0x27, 0x59, 0x3a, 0x53, 0x06, 0x3b, 0x21, - 0x7c, 0xc7, 0xdc, 0x01, 0xb4, 0x04, 0xd5, 0x91, 0xb7, 0xa4, 0xc2, 0x06, - 0x5b, 0x9f, 0x8a, 0x07, 0x11, 0xff, 0x6c, 0x00, 0x68, 0x00, 0x21, 0xff, - 0xe7, 0x05, 0x41, 0xfd, 0x00, 0x00, 0x00, 0x18, 0x04, 0x3b, 0x04, 0x4c, - 0x04, 0x2d, 0x08, 0x00, 0x34, 0x04, 0x35, 0x20, 0x05, 0x24, 0x04, 0x40, - 0x01, 0x04, 0x30, 0x04, 0x3d, 0x04, 0x41, 0x04, 0x10, 0x15, 0x74, 0xff, - 0x80, 0x06, 0xf6, 0xff, 0x01, 0x0c, 0x0e, 0x0d, 0x0e, 0x0e, 0x01, 0x00, - 0x01, 0x0d, 0x0e, 0x07, 0x0c, 0x01, 0x01, 0x01, 0x45, 0x01, 0x58, 0x17, - 0x03, 0x4d, 0xa2, 0x28, 0x15, 0xb6, 0x05, 0xe8, 0x0b, 0xae, 0xbf, 0xff, - 0x41, 0x28, 0x17, 0x73, 0x28, 0x0b, 0x05, 0x98, 0x09, 0x07, 0xd0, 0x7f, - 0x45, 0xb7, 0x60, 0xff, 0x73, 0x27, 0x1f, 0x06, 0xb1, 0x7f, 0x7a, 0x05, - 0x67, 0x87, 0x00, 0x91, 0xff, 0x06, 0x50, 0x7f, 0x00, 0x3f, 0x96, 0x14, - 0x5c, 0x28, 0x84, 0xaf, 0x65, 0x86, 0x06, 0x78, 0x17, 0x4c, 0xc5, 0x90, - 0xc7, 0x06, 0x78, 0x13, 0x72, 0x7f, 0x7a, 0xd5, 0x42, 0x7f, 0x06, 0xb3, - 0xff, 0xe1, 0x06, 0x81, 0xff, 0x2d, 0x48, 0x17, 0x37, 0x28, 0x0d, 0xe0, - 0x05, 0x98, 0x0b, 0x0f, 0xb4, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x02, 0x01, - 0x01, 0x08, 0x01, 0x02, 0x01, 0x02, 0x02, 0x08, 0x01, 0x19, 0x20, 0x05, - 0x02, 0x00, 0x02, 0x8c, 0x22, 0x81, 0x05, 0x00, 0x00, 0x04, 0x80, 0x28, - 0x17, 0xad, 0x30, 0xc6, 0x30, 0xfc, 0x30, 0xcc, 0x82, 0x06, 0x68, 0x19, - 0x41, 0x00, 0x71, 0x00, 0x75, 0x2e, 0x1b, 0x74, 0xba, 0x2f, 0xa7, 0x69, - 0x2f, 0xa9, 0x05, 0xf8, 0x1d, 0x07, 0xb0, 0x7f, 0x6e, 0x2f, 0x23, 0x65, - 0xf0, 0x2f, 0xad, 0x06, 0xb0, 0x7f, 0x05, 0xf8, 0x1b, 0x06, 0xf0, 0x7f, - 0x3f, 0x96, 0xfa, 0x57, 0x20, 0x66, 0x57, 0x06, 0x78, 0x15, 0x00, 0x00, - 0x44, 0xc5, 0xa4, 0x1a, 0xd0, 0x50, 0xd1, 0x06, 0x98, 0x17, 0xf2, 0x7f, - 0xeb, 0x06, 0x83, 0xff, 0xe2, 0x80, 0x06, 0x42, 0x7f, 0x10, 0x04, 0x3a, - 0x04, 0x32, 0x04, 0x38, 0x2b, 0x04, 0x42, 0x28, 0x19, 0x3d, 0x20, 0x07, - 0x4f, 0x05, 0xe8, 0x1d, 0x0f, 0xb4, 0xff, 0x80, 0x10, 0x06, 0x30, 0xff, - 0x03, 0x02, 0x02, 0x01, 0x04, 0x03, 0x03, 0x04, 0x03, 0x01, 0x03, 0x01, - 0x02, 0x20, 0x06, 0x03, 0xe2, 0x00, 0x1f, 0x96, 0xff, 0x00, 0x00, 0x05, - 0x4d, 0xaa, 0x80, 0x28, 0x13, 0xd9, 0x30, 0xeb, 0x30, 0xcb, 0x30, 0xe5, - 0xa8, 0x06, 0x48, 0x19, 0x41, 0x28, 0x15, 0x76, 0x2f, 0xab, 0x72, 0x00, - 0x67, 0xde, 0x06, 0x28, 0x15, 0x0f, 0x30, 0x7f, 0x6c, 0x61, 0x7f, 0x06, - 0x38, 0x15, 0xb1, 0xff, 0x06, 0x50, 0x7f, 0x65, 0x04, 0x59, 0x17, 0x5f, - 0x85, 0x6d, 0x06, 0x98, 0x17, 0x24, 0xc6, 0x03, 0xa0, 0xbc, 0x74, 0xb9, - 0x74, 0xb2, 0x06, 0x98, 0x17, 0x07, 0x33, 0x7f, 0x51, 0xe9, 0x06, 0x82, - 0x7f, 0x1e, 0x28, 0x15, 0x35, 0x04, 0x40, 0x28, 0x13, 0x78, 0x4c, 0x05, - 0xe8, 0x11, 0x10, 0x07, 0x74, 0xff, 0x0e, 0xd6, 0x7f, 0x28, 0x13, 0x02, - 0x03, 0x04, 0x04, 0x04, 0x04, 0x02, 0x04, 0x0f, 0x30, 0x06, 0x04, 0x8d, - 0x00, 0x20, 0x31, 0x02, 0x00, 0x00, 0x06, 0x4d, 0xd0, 0x02, 0x30, 0xb9, - 0x30, 0xfb, 0x30, 0xce, 0x28, 0x19, 0xde, 0x02, 0x30, 0xf3, 0x30, 0xc7, - 0x30, 0xa3, 0x05, 0xe8, 0x1d, 0x4c, 0x08, 0x00, 0x6f, 0x00, 0x77, 0x48, - 0x17, 0x20, 0x00, 0x4e, 0x88, 0x20, 0x0b, 0x72, 0x00, 0x6d, 0x4f, 0x39, - 0x64, 0x00, 0x79, 0xa8, 0x05, 0x4f, 0xb9, 0x42, 0x2f, 0xa7, 0x73, 0x20, - 0x01, 0x65, 0x00, 0x2d, 0xee, 0xe0, 0x7f, 0x3f, 0xbb, 0x0d, 0x90, 0x7f, - 0x61, 0x00, 0x01, 0x7f, 0x05, 0x5f, 0xbb, 0x31, 0x7f, 0x6a, 0xa0, 0x00, - 0x20, 0x7d, 0xed, 0x05, 0x6e, 0x39, 0x0b, 0x4e, 0xfa, 0x8b, 0xfc, 0x10, - 0x66, 0x95, 0x5e, 0x06, 0x78, 0x19, 0x14, 0xbc, 0xa4, 0xc2, 0x00, 0x78, - 0xb1, 0x74, 0xb9, 0xdd, 0xb9, 0x14, 0xb5, 0xad, 0x06, 0x3b, 0x97, 0x4c, - 0x2f, 0xa1, 0x61, 0x2b, 0x93, 0x00, 0x12, 0xfd, 0xeb, 0x05, 0x83, 0x7f, - 0x10, 0x69, 0x00, 0x78, 0x06, 0x82, 0x7f, 0x1d, 0x04, 0x38, 0x04, 0x55, - 0x36, 0x28, 0x15, 0x4f, 0x20, 0x01, 0x20, 0x20, 0x0d, 0x3e, 0x28, 0x23, - 0x15, 0x3c, 0x04, 0x30, 0x28, 0x27, 0x34, 0x20, 0x19, 0x4f, 0x05, 0x08, - 0x2b, 0xc0, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x05, 0x10, 0x04, - 0x03, 0x05, 0x05, 0x02, 0x05, 0x05, 0x0e, 0x05, 0x0d, 0x10, 0x30, 0x07, - 0xf9, 0x00, 0x22, 0xbf, 0xff, 0x00, 0x00, 0x07, 0x4d, 0xd6, 0x80, 0x28, - 0x11, 0xb4, 0x30, 0xfc, 0x30, 0xcb, 0x30, 0xe5, 0xd6, 0x05, 0xe8, 0x11, - 0x77, 0x97, 0x75, 0x4f, 0xab, 0x75, 0x05, 0xa8, 0x0b, 0xd8, 0x17, 0x6f, - 0xbf, 0x60, 0x81, 0x6f, 0x06, 0x4f, 0xb1, 0xd0, 0xff, 0x06, 0x31, 0x7f, - 0x39, 0x8b, 0x70, 0xfd, 0x06, 0x1f, 0xaf, 0xa0, 0x90, 0x7f, 0xf1, 0x06, - 0x2e, 0x2d, 0x00, 0x00, 0xc3, 0x52, 0x6e, 0x10, 0x82, 0x2c, 0x7b, 0x06, - 0x78, 0x15, 0x00, 0x00, 0x80, 0xbd, 0x03, 0x74, 0xb9, 0xe0, 0xac, 0x74, - 0xb2, 0x06, 0x50, 0x7d, 0xd2, 0xff, 0xc4, 0x05, 0xb8, 0x0f, 0x00, 0x12, - 0x7f, 0x6e, 0x00, 0x68, 0x06, 0x22, 0x7f, 0x11, 0x04, 0x5e, 0x43, 0x28, - 0x09, 0x33, 0x20, 0x05, 0x05, 0x78, 0x09, 0x07, 0xf4, 0xff, 0x10, 0x0e, - 0xd0, 0x7f, 0x06, 0x80, 0x28, 0x14, 0x06, 0x06, 0x06, 0x06, 0x03, 0x06, - 0x03, 0x80, 0x40, 0x07, 0xa6, 0x21, 0x95, 0x03, 0x00, 0x00, 0x08, 0xab, - 0x48, 0x17, 0xbf, 0x06, 0xc8, 0x17, 0x72, 0x2f, 0x99, 0x74, 0x20, 0x01, - 0x3f, 0xa5, 0xbf, 0x06, 0x38, 0x17, 0x72, 0x2f, 0xab, 0x30, 0x7d, 0x06, - 0x38, 0x15, 0x07, 0xf0, 0x7f, 0x06, 0x38, 0x17, 0x71, 0x7f, 0x80, 0x06, - 0x58, 0x17, 0x03, 0x5e, 0x17, 0x52, 0x54, 0x58, 0x3c, 0x40, 0x5c, 0x06, - 0x78, 0x19, 0x0c, 0xbe, 0x74, 0xb9, 0xc0, 0xd0, 0xe0, 0x06, 0xb8, 0x17, - 0x07, 0x72, 0xff, 0x06, 0x78, 0x17, 0x40, 0x04, 0x35, 0x04, 0x42, 0x2e, - 0x04, 0x30, 0x28, 0x17, 0x4c, 0x05, 0xe8, 0x13, 0x07, 0x74, 0xff, 0x10, - 0x0e, 0xb0, 0x7f, 0x07, 0x00, 0x04, 0x06, 0x04, 0x07, 0x07, 0x07, 0x07, - 0x04, 0x20, 0x07, 0x02, 0x40, 0x07, 0x36, 0x22, 0xce, 0xfe, 0x00, 0x00, - 0x00, 0x09, 0x4d, 0xb5, 0x30, 0xf3, 0x30, 0xc8, 0xd7, 0x28, 0x1b, 0x06, - 0x7c, 0xaf, 0x43, 0x2f, 0xa1, 0x6e, 0x28, 0x17, 0x37, 0x9d, 0x10, 0x06, - 0xd0, 0x7f, 0x43, 0x6f, 0x0e, 0x40, 0x7f, 0x2d, 0x4e, 0x2e, 0x59, 0x06, - 0x78, 0x13, 0x3f, 0xff, 0x03, 0xc1, 0xc0, 0xb8, 0xd2, 0x74, 0xb9, 0x06, - 0x78, 0x15, 0x0f, 0x12, 0x7f, 0x57, 0x26, 0x28, 0x15, 0x3d, 0x28, 0x17, - 0x40, 0x06, 0x28, 0x13, 0x10, 0x07, 0xd4, 0xff, 0x0e, 0x56, 0x7f, 0x00, - 0x08, 0x06, 0x07, 0x06, 0x08, 0x08, 0x08, 0x08, 0x10, 0x05, 0x08, 0x17, - 0x40, 0x07, 0x10, 0x22, 0x5a, 0x01, 0x01, 0x00, 0x00, 0x0a, 0x4d, 0xb7, - 0x30, 0xe3, 0x28, 0x19, 0x00, 0xd1, 0x30, 0xfc, 0x30, 0xcb, 0x30, 0xe5, - 0x30, 0x15, 0xfb, 0x30, 0xa2, 0x28, 0x23, 0xc7, 0x28, 0x2b, 0xcc, 0x05, - 0x68, 0x29, 0x44, 0x43, 0x4c, 0x25, 0x6d, 0x00, 0x70, 0x8f, 0xb1, 0x2d, - 0x00, 0x5d, 0x41, 0x2f, 0xc3, 0x64, 0x48, 0x2f, 0x05, 0x1f, 0xc1, 0x10, - 0x07, 0xb0, 0x7f, 0xf1, 0x2e, 0xb5, 0x88, 0xb1, 0xfd, 0x61, 0x00, 0x73, - 0x05, 0x0f, 0xc2, 0x99, 0x99, 0xdf, 0x01, 0x69, 0x2d, 0x00, 0x3f, 0x96, - 0x7b, 0x76, 0x06, 0x58, 0x1d, 0x00, 0xf9, 0xc0, 0x0c, 0xd3, 0x74, 0xb2, - 0x44, 0xc5, 0x0d, 0x74, 0xb9, 0x74, 0xb3, 0x06, 0x5b, 0x97, 0x00, 0xf3, - 0x7f, 0x6e, 0x05, 0x83, 0xff, 0x60, 0x6e, 0x44, 0x0b, 0x05, 0xd2, 0x01, - 0x28, 0x04, 0x30, 0x04, 0x3c, 0x20, 0x04, 0x3f, 0x20, 0x05, 0x3d, 0x04, - 0x4c, 0x04, 0x2d, 0x28, 0x00, 0x10, 0x28, 0x21, 0x34, 0x48, 0x2b, 0x3d, - 0x04, 0x4b, 0xe0, 0x05, 0x28, 0x2b, 0x10, 0x0f, 0xb4, 0xff, 0x06, 0x36, - 0xff, 0x09, 0x07, 0x08, 0x07, 0x09, 0x02, 0x09, 0x09, 0x09, 0x06, 0x09, - 0x18, 0x40, 0x07, 0xd1, 0x00, 0x22, 0x1a, 0x03, 0x00, 0x00, 0x0b, 0x4d, - 0xb3, 0x8d, 0x28, 0x07, 0xb7, 0x30, 0xab, 0x05, 0x68, 0x05, 0x00, 0x3f, - 0xaf, 0x6f, 0x2f, 0xab, 0x07, 0x73, 0x00, 0x69, 0x00, 0x63, 0x28, 0x1f, - 0x06, 0x90, 0x7f, 0x06, 0x5f, 0xad, 0x16, 0x00, 0x00, 0x4b, 0x80, 0xff, - 0x6b, 0x06, 0xc0, 0xff, 0x06, 0x91, 0x7f, 0xf3, 0xa8, 0x2e, 0xab, 0x63, - 0x2e, 0xb5, 0x67, 0x06, 0x41, 0xff, 0xd1, 0x79, 0x7f, 0x18, 0x89, 0x09, - 0x56, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x54, 0xcf, 0x74, 0x1e, 0xb9, 0xa4, - 0xc2, 0x06, 0x73, 0x7d, 0x07, 0x71, 0xff, 0x33, 0x7f, 0x06, 0x51, 0xff, - 0x1a, 0x20, 0x04, 0x3e, 0x28, 0x09, 0x41, 0x04, 0x38, 0x04, 0x3a, 0xe0, - 0x28, 0x21, 0x0e, 0x94, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x0a, 0x08, 0x09, - 0x0e, 0x0a, 0x01, 0x0a, 0x0a, 0x0a, 0x07, 0x0a, 0x08, 0x08, 0x30, 0x07, - 0x00, 0xcf, 0x1d, 0x36, 0x06, 0x00, 0x00, 0x0c, 0x4d, 0x04, 0xd5, 0x30, - 0xe9, 0x30, 0xf3, 0x28, 0x19, 0xe5, 0x30, 0x15, 0xfb, 0x30, 0xb3, 0x20, - 0x09, 0xc6, 0x05, 0xe8, 0x21, 0x46, 0x2f, 0x9b, 0xb8, 0x3c, 0x29, 0x63, - 0x2f, 0xb7, 0x3f, 0xab, 0x38, 0x27, 0x6d, 0x00, 0x74, 0x22, 0x00, 0xe9, - 0x10, 0x06, 0x00, 0x7f, 0x61, 0x00, 0x20, 0x49, 0xa5, 0x6e, 0xb5, 0x21, - 0x7d, 0x65, 0x05, 0x89, 0xa3, 0x91, 0xff, 0x6f, 0x80, 0x7f, 0x64, 0x2e, - 0xc1, 0x60, 0x64, 0x2a, 0x2f, 0x05, 0x3f, 0xbd, 0x17, 0x5f, 0x17, 0x67, - 0xc0, 0x04, 0x4e, 0x54, 0x5b, 0xf0, 0x6c, 0x06, 0x58, 0x1b, 0x04, 0xd5, - 0x00, 0x91, 0xb7, 0x88, 0xc2, 0x69, 0xcf, 0x4c, 0xd1, 0xe8, 0x06, 0x5b, - 0x99, 0x07, 0x93, 0x7f, 0x06, 0x51, 0xff, 0x24, 0x28, 0x15, 0x30, 0x04, - 0x3d, 0x08, 0x04, 0x48, 0x04, 0x2d, 0x48, 0x23, 0x3d, 0x04, 0x42, 0x38, - 0x04, 0x35, 0x05, 0xa8, 0x1f, 0x10, 0x07, 0x94, 0xff, 0x0e, 0x56, 0x7f, - 0x0b, 0x09, 0x0a, 0x00, 0x09, 0x0b, 0x0b, 0x0b, 0x0b, 0x09, 0x0b, 0x16, - 0x88, 0x40, 0x07, 0x97, 0x21, 0x47, 0x2b, 0x1d, 0x0d, 0x4d, 0xaa, 0x08, - 0x30, 0xfc, 0x30, 0xc8, 0x28, 0x13, 0xce, 0x30, 0xeb, 0x22, 0x30, 0xde, - 0x28, 0x21, 0xc7, 0x30, 0xa3, 0x05, 0xc8, 0x19, 0x55, 0x28, 0x00, 0x70, - 0x20, 0x01, 0x65, 0x2f, 0xb3, 0x20, 0x00, 0x4e, 0xa2, 0x4f, 0xbb, 0x6d, - 0x48, 0x27, 0x64, 0x00, 0x79, 0x05, 0x4f, 0xc1, 0x48, 0xab, 0x2f, 0xa5, - 0x75, 0x47, 0x09, 0x2d, 0xe0, 0x7f, 0x69, 0x2e, 0xc3, 0x0d, 0x10, 0x7f, - 0x1f, 0x41, 0x00, 0x6c, 0x29, 0x85, 0x38, 0x13, 0xf0, 0xfd, 0x05, 0x5f, - 0xbd, 0x00, 0x70, 0x7f, 0x40, 0xed, 0x05, 0x6e, 0xbd, 0x0a, 0x4e, 0xfa, - 0x8b, 0xfc, 0x66, 0x30, 0x95, 0x5e, 0x06, 0x58, 0x15, 0x26, 0x97, 0xc6, - 0xb8, 0xd2, 0x78, 0x01, 0xb1, 0x74, 0xb9, 0xdd, 0xb9, 0x14, 0xb5, 0x06, - 0x38, 0x19, 0x5b, 0x48, 0x2e, 0xaf, 0x6f, 0x2f, 0xab, 0x00, 0x12, 0xfd, - 0xeb, 0x06, 0xc1, 0xff, 0x05, 0x72, 0x7f, 0x45, 0x12, 0x28, 0x05, 0x40, - 0x04, 0x45, 0x28, 0x19, 0x4f, 0x20, 0x01, 0x11, 0x20, 0x00, 0x1d, 0x28, - 0x1b, 0x40, 0x04, 0x3c, 0x48, 0x2b, 0x1c, 0x34, 0x04, 0x38, 0x20, 0x15, - 0x0c, 0xd4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0c, 0x1a, 0x00, 0x0d, 0x0c, - 0x02, 0x02, 0x0c, 0x0c, 0x0c, 0x02, 0x21, 0x04, 0x1a, 0x20, 0x05, 0x0c, - 0x28, 0x23, 0xc8, 0x2f, 0xff, 0x10, 0x0e, 0x4d, 0xe9, 0x28, 0x0b, 0xb0, - 0x30, 0xc9, 0x30, 0x10, 0xc3, 0x30, 0xaf, 0x28, 0x1d, 0xeb, 0x30, 0xb7, - 0x30, 0x6a, 0xe8, 0x28, 0x1d, 0x05, 0x9d, 0x37, 0x4c, 0x4f, 0xad, 0x67, - 0x27, 0x9b, 0x65, 0xa8, 0x4e, 0x23, 0x63, 0x2f, 0xb3, 0x52, 0x2f, 0xb3, - 0x75, 0x00, 0x73, 0xad, 0x20, 0x01, 0x69, 0x26, 0xb5, 0x6c, 0x4e, 0xc3, - 0x10, 0x04, 0x90, 0x7f, 0x69, 0x61, 0x7f, 0xba, 0x5f, 0xa3, 0x63, 0x2f, - 0xbd, 0x51, 0x81, 0x51, 0x7f, 0x67, 0x28, 0x37, 0x69, 0xed, 0x4f, 0xc5, - 0x04, 0x59, 0x25, 0x00, 0x71, 0xff, 0x73, 0x2e, 0xbd, 0x31, 0xfb, 0xf3, - 0x04, 0xa1, 0xfb, 0x80, 0x3f, 0xff, 0x17, 0x67, 0x3c, 0x68, 0x1a, 0x59, - 0x4b, 0x00, 0x51, 0x2d, 0x00, 0x81, 0x9c, 0x7f, 0x89, 0x38, 0x40, 0x6c, - 0x05, 0xf8, 0x1f, 0x91, 0xb7, 0xf8, 0xad, 0xc4, 0xb3, 0x00, 0x6c, 0xd0, - 0xe8, 0xb8, 0xdc, 0xc2, 0xa9, 0xc6, 0xda, 0x06, 0x18, 0x99, 0x07, 0xf3, - 0x7f, 0x71, 0x44, 0x09, 0xb2, 0x81, 0x6c, 0x2f, 0x49, 0xe3, 0xd5, 0x2f, - 0x45, 0x04, 0x5f, 0xc3, 0x1b, 0x48, 0x01, 0x33, 0x28, 0x1d, 0x34, 0x28, - 0x11, 0x00, 0x3a, 0x04, 0x2d, 0x00, 0x20, 0x04, 0x43, 0x04, 0x41, 0x41, - 0x20, 0x01, 0x38, 0x04, 0x3b, 0x04, 0x4c, 0x28, 0x25, 0x70, 0x3d, 0x04, - 0xc8, 0x19, 0x10, 0x07, 0x14, 0xff, 0x0e, 0xd6, 0x7f, 0x0d, 0x0d, 0x0f, - 0x0f, 0x00, 0x10, 0x0f, 0x0d, 0x0d, 0x10, 0x0f, 0x09, 0x0d, 0x40, 0x0d, - 0x20, 0x01, 0x02, 0x1f, 0xc1, 0x02, 0x00, 0x00, 0x00, 0x0f, 0x4d, 0xea, - 0x30, 0xe0, 0x30, 0xfc, 0x30, 0x6f, 0xb6, 0x05, 0xc8, 0x0b, 0xf6, 0x97, - 0x6d, 0x68, 0x07, 0x36, 0xa1, 0x10, 0x06, 0x70, 0x7f, 0x51, 0x7d, 0xd4, - 0x04, 0x75, 0x7d, 0x00, 0xba, 0x17, 0x65, 0x60, 0x7f, 0xed, 0x06, 0x21, - 0xfd, 0x00, 0x00, 0x03, 0x29, 0x52, 0x46, 0x7a, 0x5e, 0x8d, 0x05, 0xf8, - 0x0d, 0x9f, 0xff, 0x03, 0xac, 0xb9, 0x34, 0xbb, 0xc1, 0xc7, 0x06, 0x53, - 0x7b, 0x07, 0x93, 0x7f, 0xd5, 0x73, 0xfd, 0x06, 0x12, 0x7f, 0x1b, 0x27, - 0xff, 0x3c, 0x28, 0x09, 0x37, 0x28, 0x19, 0xe0, 0x04, 0xd8, 0x01, 0x10, - 0x08, 0xd4, 0xff, 0x0e, 0x76, 0x7f, 0x0e, 0x0e, 0x10, 0x10, 0x0f, 0x00, - 0x10, 0x0e, 0x0e, 0x11, 0x10, 0x0a, 0x0e, 0x0e, 0x88, 0x20, 0x01, 0x97, - 0x20, 0xe4, 0x2f, 0xff, 0x10, 0x4d, 0xed, 0x2c, 0x30, 0xec, 0x28, 0x17, - 0xcc, 0x06, 0x68, 0x15, 0x3f, 0xaf, 0x6f, 0x00, 0x5d, 0x72, 0x20, 0x01, - 0x61, 0x4e, 0xb7, 0x04, 0x5e, 0x93, 0x08, 0xf0, 0x7f, 0x74, 0x2d, 0x11, - 0x5d, 0x72, 0x6f, 0xb7, 0x65, 0x05, 0xe9, 0x1b, 0x51, 0x7f, 0x30, 0x75, - 0x61, 0x06, 0xa1, 0xff, 0x84, 0x06, 0x90, 0x7f, 0x1b, 0x6d, 0x97, 0x67, - 0x06, 0x98, 0x15, 0x00, 0x00, 0x0d, 0x5c, 0xb8, 0x0c, 0xb8, 0x06, 0x98, - 0x15, 0x92, 0x7f, 0x61, 0x06, 0x62, 0x81, 0x80, 0x07, 0x01, 0xff, 0x04, - 0x3e, 0x04, 0x42, 0x04, 0x30, 0x04, 0x45, 0x40, 0x28, 0x1f, 0x3d, 0x04, - 0x33, 0x28, 0x25, 0x4f, 0x05, 0xc8, 0x1d, 0xc0, 0x0f, 0x34, 0xff, 0x10, - 0x06, 0xb0, 0xff, 0x0f, 0x0f, 0x11, 0x11, 0x11, 0x11, 0x01, 0x0f, 0x0f, - 0x12, 0x11, 0x0b, 0x0f, 0x0f, 0x20, 0x01, 0x10, 0xed, 0x22, 0x63, 0x2b, - 0x1d, 0x11, 0x4d, 0xdf, 0x30, 0x01, 0xc7, 0x30, 0xa3, 0x30, 0xfb, 0x30, - 0xd4, 0x28, 0x1f, 0x6a, 0xcd, 0x28, 0x21, 0x05, 0xff, 0xb0, 0x4d, 0x2f, - 0xaf, 0x64, 0x2f, 0xb3, 0x2d, 0x0a, 0x00, 0x50, 0x00, 0x79, 0x28, 0x21, - 0xe9, 0x2f, 0xb3, 0xe9, 0xa2, 0x2e, 0x43, 0x73, 0x10, 0x05, 0x80, 0x7f, - 0x65, 0x00, 0x7a, 0x20, 0x01, 0x6f, 0xba, 0x28, 0x93, 0x69, 0x49, 0xa3, - 0x3d, 0xb5, 0x31, 0x8d, 0x69, 0x68, 0x2f, 0x65, 0xeb, 0x2e, 0x51, 0x04, - 0xd0, 0x7f, 0x31, 0xff, 0x6f, 0x22, 0x05, 0xed, 0x2a, 0x1d, 0x70, 0x79, - 0xa0, 0x5a, 0x25, 0x6f, 0x05, 0x02, 0x07, 0x57, 0x53, 0xe8, 0x90, 0x2d, - 0x00, 0x00, 0xd4, 0x6b, 0x29, 0x52, 0x5b, 0x72, 0xaf, 0x40, 0x65, 0x06, - 0x18, 0x21, 0xf8, 0xbb, 0x14, 0xb5, 0x3c, 0xd5, 0x0b, 0x08, 0xb8, 0x24, - 0xb1, 0x06, 0x5b, 0x99, 0x5a, 0x2f, 0xab, 0x33, 0x81, 0x11, 0x2d, 0x00, - 0x46, 0x4b, 0x9d, 0x6e, 0x00, 0x6b, 0x4a, 0xa3, 0x71, 0x6a, 0x20, 0x07, - 0x73, 0x93, 0x52, 0x05, 0x65, 0x00, 0xeb, 0x04, 0x2e, 0xcf, 0x6b, 0x4d, - 0x23, 0xf1, 0x51, 0xff, 0x20, 0xa2, 0x73, 0xe9, 0x4f, 0x3f, 0x05, 0x3f, - 0xbd, 0x44, 0x2e, 0x28, 0x0b, 0x2d, 0x00, 0x1f, 0x28, 0x15, 0x40, 0x04, - 0x5c, 0x35, 0x28, 0x19, 0x35, 0x28, 0x1f, 0x10, 0x0d, 0xd4, 0xff, 0x0e, - 0xd6, 0x7f, 0x10, 0x12, 0x00, 0x13, 0x13, 0x13, 0x13, 0x10, 0x10, 0x1a, - 0x13, 0x00, 0x1a, 0x12, 0x10, 0x10, 0x10, 0x10, 0x01, 0x1f, 0x01, 0x05, - 0x01, 0x00, 0x00, 0x12, 0x4d, 0xce, 0x28, 0x0b, 0x55, 0xeb, 0x28, 0x17, - 0xd1, 0x28, 0x1b, 0xc9, 0x28, 0x1f, 0xab, 0x28, 0x1f, 0xb5, 0x05, 0xb8, - 0x1d, 0x4e, 0x4f, 0xaf, 0x34, 0x97, 0x50, 0x2f, 0xb3, 0x73, 0x28, 0x1f, - 0x45, 0x64, 0x2f, 0xb5, 0x2d, 0x00, 0x43, 0x2f, 0xc1, 0x6c, 0x4f, 0xc5, - 0xd6, 0x04, 0xd8, 0x21, 0xf0, 0x7f, 0x20, 0x40, 0x7f, 0x20, 0x06, 0x80, - 0x7f, 0x06, 0xf0, 0xff, 0x73, 0xf7, 0x45, 0xa1, 0x39, 0xa9, 0x05, 0x51, - 0x03, 0x51, 0xff, 0x74, 0x41, 0xf3, 0x52, 0x01, 0x50, 0x7f, 0xa0, 0x05, - 0x71, 0x83, 0x17, 0x48, 0x17, 0xa0, 0x52, 0x65, 0x67, 0x77, 0x10, 0x6d, - 0xe1, 0x5c, 0x06, 0x18, 0x17, 0x78, 0xb1, 0x74, 0xb9, 0x00, 0x0c, 0xd3, - 0xdc, 0xb4, 0x7c, 0xce, 0x08, 0xb8, 0xe8, 0x06, 0x3f, 0x30, 0x33, 0x7f, - 0x73, 0x81, 0x4e, 0x2f, 0xb3, 0x75, 0x00, 0x77, 0xbe, 0x27, 0xa1, 0x76, - 0x48, 0x21, 0x05, 0x33, 0x05, 0x91, 0xff, 0x38, 0x17, 0x06, 0x13, 0x81, - 0x1d, 0x35, 0x04, 0x3e, 0x28, 0x11, 0x38, 0x19, 0x30, 0x28, 0x1f, 0x34, - 0x28, 0x1b, 0x17, 0x2d, 0x00, 0x1a, 0x20, 0x0b, 0x3b, 0x28, 0x25, 0x0e, - 0x34, 0xff, 0x10, 0x0d, 0xf0, 0x7f, 0x00, 0x11, 0x13, 0x14, 0x14, 0x14, - 0x14, 0x11, 0x11, 0x00, 0x14, 0x14, 0x0e, 0x13, 0x11, 0x11, 0x11, 0x11, - 0x00, 0x01, 0x24, 0x2d, 0x02, 0x00, 0x00, 0x13, 0x4d, 0x14, 0xda, 0x30, - 0xa4, 0x68, 0x11, 0xe9, 0x28, 0x1d, 0xed, 0x30, 0x76, 0xef, 0x48, 0x27, - 0x05, 0x9d, 0x33, 0x38, 0x0d, 0x79, 0xa7, 0x8f, 0x38, 0x0b, 0x20, 0x3f, - 0x00, 0x4c, 0x2e, 0xbf, 0x5e, 0xaf, 0x10, 0x05, 0x30, 0x7f, 0x3c, 0x9d, - 0x38, 0x07, 0x39, 0x91, 0x57, 0x6c, 0xe1, 0x81, 0x61, 0x05, 0x21, 0xff, - 0xed, 0x2e, 0x1b, 0x3d, 0x21, 0x70, 0x81, 0x80, 0x05, 0x90, 0x7d, 0x00, - 0x00, 0x62, 0x53, 0xe6, 0x74, 0x14, 0x06, 0x5c, 0xb3, 0x6c, 0x30, 0x57, - 0x05, 0xf8, 0x11, 0x5f, 0xff, 0x98, 0x10, 0xd3, 0x74, 0xc7, 0x28, 0x15, - 0xb7, 0xe8, 0xb8, 0x44, 0x17, 0xc5, 0x74, 0xb9, 0x06, 0x18, 0x19, 0x4c, - 0x48, 0x01, 0x3b, 0x8b, 0x38, 0x07, 0xff, 0x78, 0x0f, 0x5b, 0x1b, 0x05, - 0x33, 0x85, 0x71, 0xff, 0x3b, 0x8f, 0x3a, 0x91, 0x05, 0x93, 0xf9, 0x6a, - 0x17, 0xa0, 0x28, 0x09, 0x3c, 0x28, 0x05, 0x38, 0x04, 0x20, 0x00, 0x1b, - 0x23, 0x04, 0x43, 0x28, 0x1d, 0x40, 0x04, 0x4b, 0x05, 0x48, 0x11, 0x10, - 0x07, 0x94, 0xff, 0x80, 0x0e, 0xb6, 0x7f, 0x12, 0x14, 0x15, 0x15, 0x15, - 0x15, 0x12, 0x00, 0x12, 0x0f, 0x15, 0x06, 0x14, 0x12, 0x12, 0x12, 0x00, - 0x12, 0x93, 0x21, 0xe6, 0xfe, 0x00, 0x00, 0x14, 0x08, 0x4d, 0xd4, 0x30, - 0xab, 0x28, 0x07, 0xc7, 0x30, 0xa3, 0xd6, 0x28, 0x0f, 0x06, 0x3c, 0xaf, - 0x50, 0x2f, 0x91, 0x63, 0x2f, 0xa9, 0x3f, 0xb3, 0x79, 0xbe, 0x06, 0xe0, - 0x7f, 0x69, 0x05, 0x84, 0x8d, 0x07, 0xf0, 0x7f, 0x91, 0x01, 0x05, 0x17, - 0x89, 0x00, 0x91, 0xff, 0xed, 0x80, 0x06, 0x00, 0x7d, 0x00, 0x00, 0xae, - 0x76, 0x61, 0x53, 0x2c, 0x10, 0x7b, 0x27, 0x59, 0x06, 0x58, 0x15, 0x00, - 0x00, 0x3c, 0xd5, 0x03, 0x74, 0xce, 0x74, 0xb9, 0x14, 0xb5, 0x06, 0x50, - 0x7d, 0xf2, 0xff, 0x6a, 0xeb, 0x06, 0xe3, 0x7f, 0x06, 0x11, 0xff, 0x1f, - 0x28, 0x11, 0x3a, 0x48, 0x0d, 0x34, 0xb8, 0x28, 0x1b, 0x4f, 0x05, 0xa8, - 0x11, 0x08, 0x14, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x13, 0x15, 0x16, 0x08, - 0x16, 0x16, 0x16, 0x13, 0x20, 0x06, 0x10, 0x15, 0x13, 0x00, 0x13, 0x13, - 0x13, 0x79, 0x23, 0xa1, 0x01, 0x00, 0x00, 0x00, 0x15, 0x4d, 0xdd, 0x30, - 0xef, 0x30, 0xc8, 0x20, 0x30, 0xa5, 0x28, 0x15, 0xfb, 0x30, 0xb7, 0x30, - 0xe3, 0x0e, 0x30, 0xe9, 0x30, 0xf3, 0x20, 0x0f, 0x05, 0xbb, 0x2f, 0x3f, - 0x99, 0x74, 0x80, 0x2f, 0x9f, 0x75, 0x00, 0x2d, 0x00, 0x43, 0x00, 0x68, - 0xd8, 0x48, 0x23, 0x3c, 0xbd, 0x74, 0x4e, 0xc7, 0x10, 0x14, 0xf0, 0x7f, - 0x6e, 0x66, 0xe6, 0x00, 0x74, 0xfe, 0x56, 0x2d, 0x00, 0x0f, 0x59, 0x17, - 0x10, 0x67, 0xb7, 0x5f, 0x06, 0x18, 0x1f, 0x78, 0xd4, 0x44, 0xc5, 0x00, - 0x2c, 0xd2, 0xe4, 0xc0, 0x91, 0xb7, 0xb8, 0xd2, 0xc5, 0x06, 0x5b, 0x97, - 0x0e, 0xd3, 0x7f, 0x1f, 0x04, 0x43, 0x28, 0x15, 0x42, 0x20, 0x05, 0x11, - 0x2d, 0x00, 0x28, 0x48, 0x1f, 0x30, 0x04, 0x3d, 0x20, 0x0f, 0x60, 0x30, - 0x05, 0x68, 0x21, 0x10, 0x16, 0xf4, 0xff, 0x14, 0x16, 0x17, 0x17, 0x17, - 0x20, 0x17, 0x14, 0x20, 0x06, 0x12, 0x16, 0x14, 0x14, 0x14, 0x08, 0x14, - 0x20, 0x21, 0x3d, 0x2f, 0xff, 0x16, 0x4d, 0xd7, 0x02, 0x30, 0xed, 0x30, - 0xf4, 0x30, 0xa1, 0x28, 0x0d, 0xb9, 0x82, 0x28, 0x19, 0xa2, 0x30, 0xeb, - 0x30, 0xd7, 0x28, 0x21, 0xb3, 0xa0, 0x28, 0x27, 0xc8, 0x28, 0x29, 0xc0, - 0x30, 0xb8, 0x30, 0xe5, 0xa8, 0x28, 0x33, 0xeb, 0x04, 0x88, 0x29, 0x50, - 0x2f, 0xa9, 0x6f, 0x00, 0x76, 0xa0, 0x48, 0x09, 0x63, 0x2f, 0xaf, 0x2d, - 0x00, 0x41, 0x00, 0x6c, 0x35, 0x00, 0x70, 0x48, 0x13, 0x38, 0x27, 0xf4, - 0x48, 0x1f, 0x20, 0x2f, 0xcd, 0x55, 0x27, 0x20, 0x19, 0x7a, 0x28, 0x3d, - 0x72, 0x10, 0x04, 0x80, 0x7f, 0x7a, 0x2f, 0xb7, 0xaa, 0x71, 0x7f, 0x69, - 0x49, 0xa5, 0x6f, 0x29, 0x99, 0x74, 0x2f, 0xcd, 0x20, 0xde, 0x41, 0x7b, - 0x51, 0x7d, 0x72, 0x03, 0xcf, 0xd5, 0x00, 0x70, 0x7f, 0x71, 0xff, 0xd0, - 0x81, 0x75, 0xc0, 0x22, 0x1b, 0x03, 0xf8, 0x17, 0x57, 0x7f, 0xfa, 0x65, - 0xaf, 0x65, 0x00, 0x2d, 0x00, 0x3f, 0x96, 0x14, 0x5c, 0x51, 0x53, 0x80, - 0x30, 0x09, 0xdd, 0x84, 0x72, 0x82, 0x77, 0x6d, 0xb8, 0x40, 0x5c, 0x05, - 0x38, 0x25, 0x04, 0xd5, 0x5c, 0xb8, 0x29, 0xbc, 0x00, 0xa4, 0xc2, 0x4c, - 0xc5, 0x04, 0xd5, 0x54, 0xcf, 0x00, 0xb8, 0xd2, 0xe4, 0xb2, 0x50, 0xc9, - 0x74, 0xb9, 0xd5, 0x05, 0xbf, 0xaf, 0x00, 0x73, 0x7f, 0x6e, 0x06, 0x03, - 0x7f, 0xe7, 0x06, 0x21, 0xff, 0x1f, 0x28, 0x09, 0x14, 0x3e, 0x04, 0x32, - 0x48, 0x0d, 0x41, 0x28, 0x1b, 0x10, 0x04, 0x01, 0x3b, 0x04, 0x4c, 0x04, - 0x3f, 0x04, 0x4b, 0x28, 0x27, 0x54, 0x1b, 0x28, 0x31, 0x37, 0x28, 0x37, - 0x40, 0x28, 0x29, 0x4b, 0x04, 0x01, 0x39, 0x04, 0x20, 0x00, 0x11, 0x04, - 0x35, 0x28, 0x39, 0x1c, 0x35, 0x04, 0x33, 0x03, 0x88, 0x35, 0x10, 0x07, - 0xb4, 0xff, 0x0e, 0x36, 0x7f, 0x15, 0x17, 0x04, 0x18, 0x18, 0x18, 0x18, - 0x15, 0x20, 0x06, 0x11, 0x17, 0x00, 0x15, 0x15, 0x15, 0x15, 0xc9, 0x1e, - 0xd2, 0x03, 0x05, 0x00, 0x00, 0x17, 0x4d, 0xed, 0x28, 0x01, 0xcc, 0x88, - 0x11, 0xae, 0x06, 0x1c, 0xb1, 0x52, 0x2f, 0xa1, 0xf4, 0x2f, 0x9d, 0xd8, - 0x11, 0x10, 0x05, 0xb0, 0x7f, 0x6f, 0xad, 0x29, 0x73, 0x61, 0x2f, 0x9f, - 0x6f, 0xa8, 0x13, 0x05, 0xb1, 0xff, 0xf3, 0x00, 0x00, 0x7f, 0x87, 0x05, - 0xb2, 0x01, 0x57, 0x7f, 0xb7, 0x8b, 0x98, 0x13, 0x05, 0x38, 0x09, 0xdf, - 0xff, 0x3a, 0x60, 0xb8, 0x38, 0x11, 0x06, 0x13, 0x77, 0x00, 0xb3, 0x7f, - 0x6e, 0x0d, 0xa1, 0xff, 0x20, 0xbc, 0x28, 0x15, 0x3d, 0x28, 0x15, 0xb8, - 0x11, 0x10, 0x0d, 0xd4, 0xff, 0x0e, 0xd6, 0x7f, 0x16, 0x19, 0x04, 0x1a, - 0x1a, 0x1a, 0x1a, 0x16, 0x20, 0x06, 0x14, 0x19, 0x01, 0x16, 0x16, 0x16, - 0x16, 0x89, 0x20, 0x6f, 0x28, 0x17, 0x15, 0x18, 0x4d, 0xb0, 0x28, 0x11, - 0xc9, 0x28, 0x13, 0xfc, 0x06, 0x48, 0x15, 0x15, 0x00, 0x00, 0x47, 0x2f, - 0x81, 0x61, 0x2f, 0x8d, 0x65, 0x2f, 0xa5, 0x76, 0x6f, 0x2f, 0x8d, 0x3f, - 0xa9, 0x10, 0x06, 0x30, 0x7f, 0x61, 0x2f, 0xa5, 0x31, 0x7d, 0x61, 0xe0, - 0x06, 0x61, 0xff, 0x70, 0x7f, 0x05, 0xd1, 0xfd, 0x00, 0x00, 0xdc, 0x74, - 0xb7, 0x01, 0x5f, 0x57, 0x7f, 0x6e, 0x66, 0x01, 0x77, 0x06, 0x57, 0x9b, - 0x03, 0xfc, 0xac, 0xe4, 0xb4, 0xe8, 0xb8, 0x06, 0x98, 0x19, 0x07, 0xf2, - 0x7f, 0x88, 0x05, 0xf1, 0xff, 0x13, 0x04, 0x32, 0x28, 0x15, 0x34, 0x04, - 0x35, 0xae, 0x28, 0x15, 0x43, 0x28, 0x15, 0x30, 0x05, 0xc8, 0x15, 0x10, - 0x07, 0x94, 0xff, 0x0e, 0x76, 0x7f, 0x17, 0x00, 0x0b, 0x0b, 0x0b, 0x0c, - 0x0c, 0x17, 0x17, 0x0b, 0x00, 0x0c, 0x05, 0x0b, 0x17, 0x17, 0x17, 0x17, - 0x60, 0x00, 0x0b, 0x1d, 0xd4, 0x00, 0x00, 0x19, 0x4d, 0xde, 0x8a, 0x28, - 0x13, 0xc1, 0x30, 0xcb, 0x28, 0x17, 0xaf, 0x06, 0x48, 0x17, 0x4d, 0x8a, - 0x2e, 0xab, 0x72, 0x00, 0x74, 0x2e, 0xa3, 0x6e, 0x2e, 0xa7, 0x71, 0xec, - 0x28, 0x25, 0x05, 0xd8, 0x17, 0x0f, 0xd0, 0x7f, 0x63, 0x06, 0x08, 0x17, - 0x06, 0xf0, 0x7f, 0x6c, 0x9a, 0x02, 0xd0, 0x63, 0x3c, 0x5c, 0x4b, 0x51, - 0x06, 0x78, 0x17, 0xc8, 0x00, 0xb9, 0x74, 0xb9, 0xf0, 0xd2, 0xc8, 0xb2, - 0x6c, 0x68, 0xd0, 0x06, 0x58, 0x97, 0x0e, 0xf2, 0x7f, 0x1c, 0x28, 0x15, - 0x40, 0x04, 0x42, 0x0b, 0x04, 0x38, 0x04, 0x3d, 0x20, 0x03, 0x3a, 0x06, - 0x08, 0x17, 0x10, 0x07, 0xd4, 0xff, 0x80, 0x0e, 0x16, 0x7f, 0x18, 0x11, - 0x12, 0x12, 0x12, 0x12, 0x18, 0x00, 0x18, 0x13, 0x12, 0x0c, 0x11, 0x18, - 0x18, 0x18, 0x08, 0x18, 0x62, 0x0a, 0x92, 0x28, 0x17, 0x1a, 0x4d, 0xd5, - 0x00, 0x30, 0xe9, 0x30, 0xf3, 0x30, 0xb9, 0x30, 0x18, 0x02, 0x98, 0xae, - 0x30, 0xa2, 0x30, 0xca, 0x06, 0x08, 0x1b, 0x46, 0xa0, 0x28, 0x15, 0x65, - 0x28, 0x13, 0x63, 0x00, 0x68, 0x00, 0x20, 0xad, 0x4f, 0xbd, 0x69, 0x2f, - 0xbf, 0x6e, 0x05, 0x8e, 0xb7, 0x3f, 0xaf, 0x79, 0x40, 0x71, 0xe0, 0x05, - 0xfe, 0xa9, 0x90, 0xff, 0x30, 0xef, 0x7a, 0x00, 0xf6, 0x00, 0x73, 0xaf, - 0x29, 0x1d, 0x73, 0x41, 0x09, 0x2d, 0x6f, 0xc7, 0x50, 0x99, 0x04, 0xbf, - 0xc3, 0x90, 0xff, 0x6b, 0x61, 0x21, 0x7f, 0x70, 0x8d, 0x63, 0x2f, 0xb7, - 0x73, 0x05, 0x4f, 0xbb, 0xd0, 0xe7, 0xc0, 0xf0, 0x81, 0x05, 0x18, 0xa5, - 0xd5, 0x6c, 0x5e, 0x5c, 0x2d, 0x57, 0x08, 0x9a, 0x4e, 0xa3, 0x90, 0x06, - 0x58, 0x19, 0x04, 0xd5, 0x91, 0x00, 0xb7, 0xa4, 0xc2, 0x39, 0xb8, 0x20, - 0x00, 0x30, 0x05, 0xae, 0x44, 0xc5, 0x98, 0xb0, 0x06, 0x72, 0x7f, 0x73, - 0x62, 0x73, 0xf1, 0x05, 0x12, 0x71, 0x00, 0x1f, 0x2f, 0x73, 0xf1, 0x06, - 0x11, 0xfd, 0x00, 0x00, 0x24, 0x28, 0x15, 0x40, 0x30, 0x28, 0x13, 0x46, - 0x04, 0x43, 0x04, 0x37, 0x04, 0x40, 0x41, 0x48, 0x19, 0x4f, 0x04, 0x20, - 0x00, 0x13, 0x04, 0x7c, 0x32, 0x28, 0x2b, 0x30, 0x19, 0x04, 0xd8, 0x29, - 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x19, 0x0a, 0x00, 0x0c, 0x0a, - 0x0d, 0x0d, 0x19, 0x19, 0x0a, 0x0d, 0x00, 0x15, 0x0a, 0x19, 0x19, 0x19, - 0x19, 0x82, 0x03, 0x00, 0xca, 0xda, 0x00, 0x00, 0x1b, 0x4d, 0xec, 0x30, - 0x06, 0xe6, 0x30, 0xcb, 0x30, 0xaa, 0x28, 0x1b, 0x06, 0x5d, 0x2f, 0x52, - 0x36, 0x00, 0xe9, 0x2f, 0xa3, 0x3f, 0xab, 0x6f, 0x2f, 0xb1, 0x10, 0x06, - 0x30, 0x7f, 0x69, 0xda, 0xa1, 0x7f, 0x06, 0x19, 0x1b, 0x52, 0x2e, 0x9f, - 0x51, 0xff, 0xf3, 0x06, 0x41, 0xff, 0x59, 0x06, 0x75, 0x3c, 0x5c, 0x6a, - 0x6c, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x08, 0x01, 0xb8, 0x04, 0xc7, 0xc8, - 0xb2, 0x39, 0xc6, 0x06, 0x70, 0x7f, 0xd8, 0x07, 0x13, 0x7f, 0x71, 0xff, - 0xe3, 0x24, 0x01, 0x06, 0x1b, 0x9a, 0x20, 0x04, 0x35, 0x23, 0x04, 0x4e, - 0x28, 0x17, 0x4c, 0x04, 0x3e, 0x28, 0x1d, 0x10, 0x0e, 0x34, 0xff, 0x94, - 0x0e, 0xd6, 0x7f, 0x1a, 0x18, 0x38, 0x0d, 0x1a, 0x20, 0x06, 0x13, 0x18, - 0x00, 0x1a, 0x1a, 0x1a, 0x1a, 0x28, 0xf1, 0x6e, 0x27, 0x40, 0x01, 0x4f, - 0xff, 0x1c, 0x4d, 0xde, 0x30, 0xe8, 0x30, 0x02, 0xc3, 0x30, 0xc8, 0x30, - 0xf6, 0x5c, 0x06, 0x58, 0x1b, 0x4d, 0x8e, 0x4f, 0x19, 0x6f, 0x00, 0x74, - 0x20, 0x01, 0x06, 0x3f, 0xb5, 0x10, 0x0e, 0xf0, 0x7f, 0x6c, 0x04, 0x9a, - 0xa6, 0x7e, 0x79, 0x72, 0x06, 0x98, 0x1b, 0xc8, 0xb9, 0x0f, 0x94, 0xc6, - 0xb8, 0xd2, 0x06, 0x78, 0x99, 0x07, 0x53, 0x7f, 0x3c, 0x17, 0x06, 0x53, - 0xfd, 0x85, 0x25, 0x01, 0x04, 0x30, 0x04, 0x39, 0x28, 0x17, 0x42, 0x20, - 0x01, 0x60, 0x30, 0x06, 0x28, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x1b, 0x12, - 0x13, 0x13, 0x13, 0x00, 0x13, 0x1b, 0x1b, 0x14, 0x12, 0x0c, 0x12, 0x1b, - 0x01, 0x1b, 0x1b, 0x1b, 0xea, 0xf6, 0x29, 0x20, 0xff, 0xff, 0x00, 0x01, - 0x0c, 0x0e, 0x0d, 0x0e, 0x0e, 0x01, 0x01, 0x00, 0x0d, 0x0e, 0x07, 0x0c, - 0x01, 0x01, 0x01, 0x01, 0x08, 0x02, 0x01, 0x01, 0x08, 0x20, 0x05, 0x02, - 0x08, 0x01, 0x40, 0x1a, 0x20, 0x05, 0x02, 0x02, 0x03, 0x02, 0x02, 0x01, - 0x00, 0x04, 0x03, 0x03, 0x03, 0x01, 0x03, 0x01, 0x02, 0xa0, 0x20, 0x06, - 0x03, 0x20, 0x0b, 0x02, 0x03, 0x04, 0x04, 0x04, 0x10, 0x02, 0x04, 0x10, - 0x30, 0x06, 0x04, 0x05, 0x10, 0x04, 0x00, 0x03, 0x05, 0x05, 0x05, 0x05, - 0x0e, 0x05, 0x0e, 0x50, 0x10, 0x30, 0x07, 0x06, 0x30, 0x03, 0x06, 0x06, - 0x06, 0x03, 0x20, 0x06, 0x03, 0x40, 0x07, 0x07, 0x04, 0x06, 0x04, 0x07, - 0x02, 0x07, 0x07, 0x07, 0x04, 0x07, 0x02, 0x40, 0x07, 0x08, 0x00, 0x06, - 0x07, 0x06, 0x08, 0x08, 0x08, 0x08, 0x05, 0x20, 0x08, 0x18, 0x40, 0x07, - 0x09, 0x07, 0x08, 0x07, 0x09, 0x02, 0x09, 0x09, 0x09, 0x06, 0x09, 0x19, - 0x40, 0x07, 0x0a, 0x00, 0x08, 0x09, 0x0e, 0x0a, 0x0a, 0x0a, 0x0a, 0x07, - 0x10, 0x0a, 0x08, 0x08, 0x30, 0x07, 0x0b, 0x09, 0x0a, 0x09, 0x01, 0x0b, - 0x0b, 0x0b, 0x0b, 0x09, 0x0b, 0x17, 0x40, 0x07, 0x00, 0x0c, 0x1b, 0x0d, - 0x0c, 0x02, 0x02, 0x0c, 0x0c, 0x08, 0x0c, 0x02, 0x04, 0x1b, 0x20, 0x05, - 0x0c, 0x0d, 0x0d, 0x00, 0x0f, 0x0f, 0x10, 0x0f, 0x0d, 0x0d, 0x10, 0x0f, - 0x10, 0x09, 0x0d, 0x0d, 0x20, 0x01, 0x0e, 0x0e, 0x10, 0x10, 0x00, 0x0f, - 0x10, 0x0e, 0x0e, 0x11, 0x10, 0x0a, 0x0e, 0x40, 0x0e, 0x20, 0x01, 0x0f, - 0x0f, 0x11, 0x11, 0x11, 0x11, 0x01, 0x0f, 0x0f, 0x12, 0x11, 0x0b, 0x0f, - 0x0f, 0x20, 0x01, 0x00, 0x10, 0x13, 0x14, 0x14, 0x14, 0x14, 0x10, 0x10, - 0x00, 0x1b, 0x14, 0x1b, 0x13, 0x10, 0x10, 0x10, 0x10, 0x00, 0x11, 0x14, - 0x15, 0x15, 0x15, 0x15, 0x11, 0x11, 0x08, 0x15, 0x15, 0x0f, 0x14, 0x30, - 0x29, 0x12, 0x15, 0x16, 0x00, 0x16, 0x16, 0x16, 0x12, 0x12, 0x0f, 0x16, - 0x06, 0x00, 0x15, 0x12, 0x12, 0x12, 0x12, 0x13, 0x16, 0x17, 0x09, 0x17, - 0x17, 0x17, 0x13, 0x20, 0x06, 0x11, 0x16, 0x31, 0x4d, 0x01, 0x14, 0x17, - 0x18, 0x18, 0x18, 0x18, 0x14, 0x20, 0x06, 0x2a, 0x13, 0x17, 0x30, 0x49, - 0x15, 0x49, 0x7f, 0x15, 0x20, 0x06, 0x12, 0x4a, 0x18, 0x30, 0x49, 0x16, - 0x1a, 0x31, 0x69, 0x16, 0x20, 0x06, 0x15, 0x50, 0x1a, 0x30, 0x49, 0x17, - 0x30, 0xb3, 0x0c, 0x17, 0x17, 0x0b, 0x12, 0x0c, 0x05, 0x0b, 0x30, 0x49, - 0x18, 0x11, 0x30, 0x55, 0x18, 0x04, 0x18, 0x13, 0x13, 0x0d, 0x11, 0x30, - 0x49, 0x19, 0x0a, 0x00, 0x0c, 0x0a, 0x0d, 0x0d, 0x19, 0x19, 0x0a, 0x0d, - 0x38, 0x16, 0x0a, 0x49, 0xc9, 0x29, 0xcb, 0x39, 0xc7, 0x19, 0x1a, 0x14, - 0xc0, 0x40, 0x09, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x11, 0xb4, 0x8a, 0x00, - 0x11, 0x10, 0x00, 0x00, 0x30, 0x01, 0x4e, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x59, 0x25, 0x88, - 0x09, 0x00, 0x00, 0x00, 0x02, 0x4e, 0xd9, 0x30, 0xeb, 0x30, 0xea, 0x10, - 0x30, 0xf3, 0x30, 0x06, 0x78, 0x1d, 0x42, 0x00, 0x65, 0x00, 0x01, 0x72, - 0x00, 0x6c, 0x00, 0x69, 0x00, 0x6e, 0x10, 0x07, 0x00, 0x7f, 0x50, 0x6f, - 0x06, 0xa1, 0xff, 0xed, 0x06, 0x61, 0xff, 0xcf, 0x67, 0x97, 0x67, 0x20, - 0x02, 0x5e, 0x06, 0x9b, 0x1b, 0xa0, 0xbc, 0x7c, 0xb9, 0xb0, 0x6d, 0xb9, - 0x06, 0x9b, 0x9b, 0x93, 0x7f, 0x6a, 0x06, 0x43, 0x81, 0x93, 0xff, 0x6d, - 0x06, 0x4c, 0xa0, 0x00, 0x11, 0x04, 0x35, 0x04, 0x40, 0x04, 0x3b, 0x04, - 0x0c, 0x38, 0x04, 0x3d, 0x04, 0x10, 0x0e, 0xf4, 0xff, 0x0e, 0x36, 0xff, - 0x01, 0x03, 0x04, 0x04, 0x03, 0x06, 0x04, 0x01, 0x30, 0x06, 0x03, 0x01, - 0x10, 0x01, 0x01, 0x01, 0x58, 0x17, 0x03, 0x4e, 0xd8, 0x30, 0x12, 0xc3, - 0x30, 0xbb, 0x28, 0x17, 0xde, 0x5d, 0x06, 0x5f, 0xb7, 0x48, 0xae, 0x28, - 0x17, 0x73, 0x20, 0x01, 0x65, 0x06, 0x6f, 0xb6, 0x07, 0x90, 0x7f, 0x06, - 0x59, 0x17, 0x41, 0x88, 0x41, 0x7d, 0x69, 0x00, 0x61, 0x0e, 0x61, 0x7f, - 0xd1, 0x9e, 0xee, 0x60, 0x68, 0x06, 0x72, 0xfb, 0x3f, 0xff, 0xe4, 0xd5, - 0x3c, 0xc1, 0x20, 0x1d, 0x00, 0xfc, 0xc8, 0x06, 0x7f, 0xb5, 0x06, 0xf2, - 0x7f, 0x06, 0xf3, 0xff, 0x13, 0x28, 0x17, 0x5c, 0x41, 0x20, 0x01, 0x35, - 0x06, 0x68, 0x17, 0x0f, 0x94, 0xff, 0x10, 0x06, 0x56, 0x7f, 0x02, 0x07, - 0x04, 0x08, 0x07, 0x02, 0x08, 0x02, 0x30, 0x06, 0x07, 0x02, 0x00, 0x02, - 0x02, 0x02, 0x9b, 0x23, 0xdb, 0x05, 0x00, 0x00, 0x00, 0x04, 0x4e, 0xd0, - 0x30, 0xfc, 0x30, 0xc7, 0x80, 0x28, 0x17, 0xfb, 0x30, 0xd3, 0x30, 0xe5, - 0x30, 0xeb, 0x2a, 0x30, 0xc6, 0x28, 0x23, 0xd9, 0x20, 0x07, 0xaf, 0x05, - 0x68, 0x29, 0x42, 0xa0, 0x26, 0x91, 0x64, 0x47, 0x15, 0x2d, 0x00, 0x57, - 0x00, 0xfc, 0xaa, 0x2f, 0xbb, 0x74, 0x20, 0x01, 0x65, 0x2c, 0x3d, 0x62, - 0x4f, 0xc9, 0x67, 0xdf, 0x05, 0x60, 0x7f, 0x30, 0x7d, 0x75, 0x40, 0x7d, - 0x05, 0x90, 0x7b, 0x07, 0xb0, 0xff, 0x07, 0x50, 0x7f, 0x06, 0x11, 0x81, - 0x00, 0xf4, 0x5d, 0x7b, 0x76, 0x2d, 0x00, 0x26, 0x7b, 0x08, 0x7e, 0x81, - 0x21, 0x58, 0x06, 0x3b, 0x1b, 0x14, 0xbc, 0x74, 0x00, 0xb3, 0xd4, 0xbd, - 0x74, 0xb9, 0x5c, 0xd1, 0xa0, 0x06, 0xbc, 0x74, 0xb9, 0x6c, 0xd0, 0x05, - 0xf8, 0x23, 0x0e, 0xf2, 0x7f, 0x11, 0x08, 0x04, 0x30, 0x04, 0x34, 0x48, - 0x15, 0x2d, 0x00, 0x12, 0x02, 0x04, 0x4e, 0x04, 0x40, 0x04, 0x42, 0x28, - 0x29, 0x3c, 0x23, 0x04, 0x31, 0x28, 0x2f, 0x40, 0x04, 0x33, 0x05, 0x08, - 0x2b, 0x0f, 0xd3, 0xff, 0x80, 0x10, 0x06, 0x10, 0xff, 0x03, 0x01, 0x01, - 0x01, 0x03, 0x01, 0x03, 0xa0, 0x20, 0x06, 0x02, 0x20, 0x05, 0x03, 0x03, - 0xae, 0x22, 0x86, 0x08, 0x06, 0x00, 0x00, 0x05, 0x28, 0x17, 0xa4, 0x30, - 0xa8, 0xb5, 0x28, 0x0f, 0xf3, 0x05, 0x68, 0x07, 0x00, 0x38, 0x17, 0x76, - 0x2e, 0xad, 0x72, 0x06, 0x6e, 0xb3, 0x8e, 0x50, 0x7f, 0x69, 0x00, 0xe8, - 0x28, 0x91, 0x06, 0x3e, 0xb3, 0x39, 0x17, 0x79, 0xfc, 0x49, 0x01, 0x06, - 0x5d, 0xaf, 0x70, 0xff, 0x39, 0x83, 0x06, 0xb1, 0x7f, 0x06, 0x70, 0x7f, - 0xf4, 0x5d, 0x03, 0x10, 0x4f, 0x29, 0x52, 0x9a, 0x4e, 0x06, 0x52, 0xfd, - 0x48, 0x17, 0x06, 0xc7, 0xd0, 0xc5, 0x78, 0xb9, 0x05, 0xf8, 0x0f, 0x9b, - 0x97, 0x65, 0xf4, 0x61, 0xfd, 0x3b, 0x9b, 0x0e, 0x12, 0x7f, 0x38, 0x17, - 0x32, 0x28, 0x1b, 0x40, 0x04, 0x1c, 0x38, 0x04, 0x4f, 0x05, 0x08, 0x05, - 0x08, 0x74, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x04, 0x02, 0x04, 0x03, 0x02, - 0x05, 0x03, 0x04, 0x20, 0x06, 0x01, 0x02, 0x00, 0x04, 0x04, 0x04, 0x04, - 0x3a, 0x22, 0x37, 0x08, 0x01, 0x00, 0x00, 0x06, 0x4e, 0xd6, 0x30, 0xe9, - 0x28, 0x13, 0x55, 0xc7, 0x28, 0x17, 0xd6, 0x28, 0x1d, 0xaf, 0x06, 0x08, - 0x1d, 0x42, 0x46, 0x8f, 0x5c, 0x6e, 0x6f, 0x33, 0x62, 0x4f, 0xb3, 0x05, - 0x3f, 0xa7, 0x00, 0x30, 0x7f, 0x62, 0x00, 0x74, 0x6f, 0x06, 0xc0, 0x7f, - 0x07, 0x10, 0xff, 0x51, 0x7d, 0x6f, 0x0d, 0xa0, 0x7f, 0xc3, 0x52, 0x02, - 0x70, 0x51, 0x7b, 0x76, 0x21, 0x58, 0x06, 0x78, 0x17, 0x0c, 0x00, 0xbe, - 0x80, 0xb7, 0x74, 0xb3, 0x80, 0xbd, 0x74, 0x1a, 0xb9, 0x6c, 0xd0, 0x06, - 0x38, 0x1b, 0x0e, 0xf2, 0x7f, 0x11, 0x28, 0x11, 0x30, 0x02, 0x04, 0x3d, - 0x04, 0x34, 0x04, 0x35, 0x20, 0x05, 0x31, 0x2e, 0x04, 0x43, 0x28, 0x21, - 0x33, 0x05, 0xa8, 0x1f, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x05, - 0x02, 0x04, 0x05, 0x04, 0x07, 0x05, 0x05, 0x30, 0x06, 0x04, 0x80, 0x20, - 0x06, 0x05, 0x41, 0x25, 0x45, 0x09, 0x00, 0x00, 0x41, 0x07, 0x28, 0x17, - 0xec, 0x30, 0xfc, 0x30, 0xe1, 0x28, 0x1b, 0xc6, 0x06, 0x5d, 0x2f, 0x38, - 0x17, 0x65, 0x00, 0x6d, 0x06, 0x6c, 0xad, 0x58, 0x97, 0xea, 0xf8, 0x40, - 0x7f, 0x0e, 0x90, 0xff, 0x31, 0x7f, 0x06, 0x3f, 0xab, 0x07, 0x31, 0xff, - 0x0d, 0x4e, 0x65, 0x06, 0x67, 0x85, 0x68, 0x02, 0x5e, 0x06, 0x61, 0xfe, - 0x28, 0x17, 0x08, 0x1e, 0xb8, 0x58, 0xba, 0x06, 0x38, 0x11, 0x07, 0xd2, - 0x7f, 0x06, 0x73, 0xff, 0x38, 0x17, 0x35, 0x38, 0x04, 0x3c, 0x48, 0x15, - 0x10, 0x06, 0x31, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x06, 0x05, 0x06, 0x0a, - 0x05, 0x08, 0x06, 0x06, 0x30, 0x06, 0x05, 0x20, 0x06, 0x06, 0x00, 0xbc, - 0x25, 0x43, 0x06, 0x00, 0x00, 0x08, 0x4e, 0x41, 0xcf, 0x28, 0x11, 0xd6, - 0x30, 0xeb, 0x30, 0xaf, 0x06, 0x68, 0x17, 0x5b, 0x48, 0x2f, 0xad, 0x6d, - 0x06, 0x2f, 0x27, 0xf0, 0x7f, 0x6f, 0x06, 0x60, 0x81, 0x06, 0xf0, 0xff, - 0x78, 0x41, 0xa1, 0x7d, 0x05, 0xbf, 0xa7, 0x00, 0x51, 0xff, 0x06, 0x10, - 0x81, 0x49, 0x6c, 0x21, 0x40, 0x58, 0x06, 0x98, 0x15, 0x00, 0x00, 0x68, - 0xd5, 0x80, 0xbd, 0x0e, 0x74, 0xb9, 0x6c, 0xd0, 0x06, 0x78, 0x19, 0x07, - 0x73, 0x7f, 0x06, 0x72, 0x81, 0x13, 0x22, 0x04, 0x30, 0x28, 0x15, 0x31, - 0x04, 0x43, 0x28, 0x1f, 0x33, 0xe0, 0x06, 0x28, 0x19, 0x07, 0xd1, 0x7f, - 0x10, 0x0e, 0x10, 0xff, 0x07, 0x06, 0x07, 0x06, 0x01, 0x28, 0x07, 0x07, - 0x30, 0x06, 0x06, 0x20, 0x06, 0x07, 0x14, 0x26, 0x01, 0x1a, 0x07, 0x00, - 0x00, 0x09, 0x4e, 0xe1, 0x28, 0x11, 0x40, 0xec, 0x88, 0x1b, 0xfb, 0x30, - 0xd5, 0x30, 0xa9, 0x30, 0x14, 0xa2, 0x30, 0xdd, 0x28, 0x2d, 0xe1, 0x28, - 0x2d, 0xf3, 0x30, 0x28, 0xde, 0x5d, 0x04, 0xdf, 0xc6, 0x4d, 0x2f, 0xa9, - 0x63, 0x00, 0x6b, 0x31, 0x00, 0x6c, 0x4f, 0x31, 0x78, 0x1f, 0x2d, 0x00, - 0x56, 0x27, 0xa9, 0x15, 0x72, 0x00, 0x70, 0x27, 0xaf, 0x6d, 0x4f, 0xcd, - 0x72, 0x04, 0x6f, 0x4f, 0xc5, 0xb0, 0x7f, 0xb8, 0x1f, 0x2d, 0x00, 0x50, - 0x40, 0x7b, 0xe9, 0x2f, 0xcf, 0x55, 0x61, 0x2f, 0xcb, 0x69, 0x2f, 0xd5, - 0x20, 0x40, 0x09, 0x74, 0x40, 0x13, 0xdf, 0x30, 0x0f, 0x38, 0xcb, 0x65, - 0x0b, 0x40, 0xff, 0x70, 0xfd, 0x78, 0x1f, 0x70, 0xfd, 0x31, 0x77, 0xad, - 0x50, 0xfd, 0x61, 0x20, 0xfd, 0x41, 0x40, 0xfd, 0x31, 0x8b, 0x69, 0x41, - 0x9d, 0xea, 0x02, 0xf0, 0xfb, 0x00, 0x31, 0x7f, 0x00, 0xd0, 0x81, 0x4f, - 0x22, 0x2b, 0x63, 0x21, 0x8b, 0x64, 0xa8, 0x4e, 0xdf, 0x74, 0x2a, 0x53, - 0x6c, 0x02, 0xef, 0xe8, 0x85, 0x68, 0x4b, 0x00, 0x51, 0x26, 0x4f, 0x21, - 0x58, 0x2d, 0x00, 0x4d, 0x01, 0x52, 0xe2, 0x6c, 0xab, 0x83, 0x5e, 0x74, - 0x04, 0xf2, 0xf1, 0x81, 0xdf, 0xff, 0x54, 0xba, 0x74, 0xd0, 0x0c, 0xb8, - 0x58, 0x1b, 0x00, 0xec, 0xd3, 0xb4, 0xc5, 0xec, 0xd3, 0x54, 0xba, 0x3f, - 0x78, 0xb9, 0x05, 0x98, 0x25, 0x00, 0xb3, 0x7f, 0x33, 0x81, 0x73, 0x07, - 0x53, 0x83, 0x04, 0x1f, 0xd5, 0xb0, 0x01, 0x31, 0xff, 0xe2, 0xc1, 0xff, - 0x03, 0xb1, 0xfd, 0x00, 0x00, 0x1c, 0x04, 0x05, 0x35, 0x04, 0x3a, 0x04, - 0x3b, 0x20, 0x05, 0x3d, 0x88, 0x1d, 0x15, 0x2d, 0x00, 0x1f, 0x20, 0x15, - 0x40, 0x20, 0x19, 0x34, 0x20, 0x15, 0x56, 0x4f, 0x20, 0x01, 0x20, 0x20, - 0x11, 0x3e, 0x28, 0x3f, 0x30, 0x15, 0x30, 0xb8, 0x20, 0x29, 0x38, 0x20, - 0x15, 0x0c, 0x14, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x08, 0x09, 0x09, 0x98, - 0x30, 0x02, 0x08, 0x08, 0x20, 0x06, 0x20, 0x05, 0x08, 0x20, 0x26, 0x00, - 0x1e, 0x08, 0x00, 0x00, 0x0a, 0x4e, 0xcb, 0x30, 0x15, 0xfc, 0x30, 0xc0, - 0x20, 0x03, 0xb6, 0x28, 0x1f, 0xbb, 0x05, 0x28, 0x07, 0xa8, 0xff, 0xff, - 0x4c, 0x2f, 0xa9, 0x77, 0x47, 0xf7, 0x20, 0x00, 0x53, 0xa2, 0x2f, 0xbb, - 0x78, 0x2f, 0xb9, 0x6e, 0x00, 0x79, 0x05, 0x8f, 0xb7, 0x42, 0xaf, 0x2f, - 0xaf, 0x73, 0x20, 0x01, 0x65, 0x28, 0x8b, 0x50, 0x7f, 0x03, 0x36, 0xed, - 0x01, 0x9f, 0xf8, 0x6a, 0x4e, 0x48, 0x71, 0x36, 0xe7, 0x72, 0x20, 0x87, - 0x61, 0x29, 0x23, 0x68, 0xff, 0x40, 0x8d, 0x04, 0x59, 0x05, 0x00, 0x90, - 0xff, 0x37, 0xf7, 0x31, 0x7f, 0x31, 0x0b, 0x31, 0x81, 0x38, 0x09, 0xac, - 0x05, 0x71, 0x7f, 0x6a, 0x80, 0x7d, 0x6a, 0x05, 0xc0, 0x7b, 0x3f, 0xff, - 0x0b, 0x4e, 0x03, 0x28, 0x84, 0x4b, 0x51, 0xee, 0x68, 0x05, 0xf2, 0xf7, - 0x7f, 0xff, 0x00, 0xc8, 0xb2, 0x54, 0xb3, 0x91, 0xc7, 0x3c, 0xc1, 0xed, - 0x05, 0x98, 0x09, 0xf2, 0x7f, 0xb2, 0x7d, 0x6b, 0x05, 0xc2, 0x7b, 0x73, - 0x7f, 0x69, 0x23, 0xf5, 0x8a, 0x72, 0x7f, 0x78, 0x00, 0xf3, 0x05, 0xc2, - 0x01, 0x1d, 0x27, 0xe3, 0x36, 0xa3, 0x87, 0xfd, 0x21, 0x27, 0xf5, 0x3a, - 0x04, 0x41, 0x28, 0x03, 0x03, 0xb7, 0xfb, 0xc0, 0x08, 0xb4, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x09, 0x08, 0x02, 0x09, 0x04, 0x02, 0x08, 0x09, 0x09, - 0x09, 0x02, 0x38, 0x1f, 0x09, 0x09, 0x3d, 0x10, 0x25, 0xec, 0x06, 0x35, - 0x15, 0xce, 0x30, 0xeb, 0x30, 0x04, 0xc8, 0x30, 0xe9, 0x30, 0xa4, 0x28, - 0x13, 0xfb, 0x30, 0x04, 0xa6, 0x30, 0xa7, 0x30, 0xb9, 0x20, 0x0f, 0xd5, - 0x30, 0x55, 0xa1, 0x28, 0x2f, 0xec, 0x05, 0x28, 0x27, 0x4e, 0x4f, 0x17, - 0x74, 0x27, 0x0d, 0x16, 0x20, 0x00, 0x52, 0x27, 0x13, 0x69, 0x2f, 0x9b, - 0x37, 0xa3, 0x57, 0xaf, 0x2f, 0xc7, 0x73, 0x2f, 0x9b, 0x70, 0x27, 0x27, - 0x3e, 0x15, 0x04, 0x76, 0xa7, 0x30, 0x73, 0x75, 0xe9, 0x2f, 0xa9, 0x5f, - 0x15, 0x38, 0x1d, 0x64, 0x2f, 0xb3, 0x2d, 0x60, 0x97, 0x75, 0x64, 0x00, - 0x40, 0x89, 0x03, 0xb8, 0x39, 0x70, 0x67, 0x72, 0x28, 0x0f, 0x65, 0x40, - 0xfd, 0xb6, 0x90, 0xfb, 0x66, 0x4f, 0x0f, 0x04, 0xd8, 0x23, 0x52, 0x4f, - 0x79, 0x9f, 0x91, 0x53, 0xb7, 0x2f, 0xbf, 0x74, 0x2f, 0x89, 0x5f, 0x8f, - 0x72, 0x2f, 0xa7, 0x39, 0xa7, 0x50, 0x87, 0xfb, 0x3e, 0x45, 0xb0, 0x99, - 0x03, 0x38, 0x3b, 0xf0, 0x7f, 0x3e, 0x0b, 0x6c, 0x2e, 0x19, 0x72, 0x17, - 0xe0, 0xb2, 0x0b, 0x03, 0x90, 0x75, 0x9f, 0xff, 0x17, 0x53, 0xb1, 0x83, - 0x35, 0x00, 0x83, 0x2d, 0x00, 0x01, 0x5a, 0xaf, 0x65, 0x79, 0x04, 0x72, - 0xd5, 0x6c, 0x26, 0x4f, 0x05, 0xdb, 0x19, 0x78, 0xb1, 0x00, 0x74, 0xb9, - 0xb8, 0xd2, 0x7c, 0xb7, 0x78, 0xc7, 0x00, 0xa0, 0xbc, 0xa4, 0xc2, 0xb8, - 0xd2, 0x14, 0xd3, 0x3a, 0x0c, 0xb8, 0x05, 0xb8, 0x23, 0x33, 0x7f, 0x72, - 0xe9, 0x52, 0x2f, 0x95, 0x6a, 0xbd, 0x2f, 0x9b, 0x6c, 0x43, 0x0d, 0xb2, - 0xfb, 0x04, 0x92, 0x89, 0x52, 0x7f, 0xe2, 0xa1, 0xff, 0x6a, 0x6f, 0xe1, - 0xfd, 0x72, 0x73, 0x65, 0x23, 0x0f, 0xe1, 0x04, 0x04, 0x09, 0x21, 0x0a, - 0x04, 0x35, 0x04, 0x32, 0x20, 0x03, 0x40, 0x28, 0x1b, 0x4b, 0x2a, 0x04, - 0x39, 0x28, 0x1b, 0x20, 0x20, 0x11, 0x39, 0x28, 0x29, 0x2d, 0x20, 0x00, - 0x12, 0x20, 0x1b, 0x41, 0x04, 0x42, 0x04, 0x44, 0xb8, 0x28, 0x2d, 0x3b, - 0x04, 0x68, 0x27, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0a, 0x0a, - 0x0a, 0x14, 0x0a, 0x0b, 0x0b, 0x30, 0x04, 0x0e, 0x30, 0x0a, 0x0a, 0x70, - 0x25, 0x24, 0xd1, 0x2b, 0x0d, 0x0c, 0x4e, 0x58, 0x11, 0xe9, 0x28, 0x15, - 0x63, 0xc8, 0x28, 0x17, 0x38, 0x0f, 0xeb, 0x30, 0xc4, 0x05, 0x08, 0x0d, - 0xd7, 0x97, 0xd7, 0x58, 0x0b, 0x94, 0x8d, 0x50, 0x48, 0x09, 0x61, 0x28, - 0x2d, 0x38, 0x25, 0x30, 0x07, 0xfe, 0x04, 0x9f, 0xc3, 0x00, 0x18, 0x17, - 0x00, 0x10, 0x7d, 0x04, 0xf0, 0xff, 0x58, 0x0f, 0xb0, 0xff, 0x58, 0x11, - 0x7a, 0xef, 0x05, 0x41, 0x7f, 0xb8, 0x17, 0x00, 0x31, 0x7b, 0x6f, 0x06, - 0xc0, 0x7f, 0x36, 0x27, 0x04, 0xbf, 0xc9, 0x38, 0x15, 0x00, 0x70, 0x51, - 0x2d, 0x00, 0x6e, 0x66, 0xd5, 0x6c, 0x09, 0x14, 0x5c, 0x28, 0x83, 0x05, - 0xd8, 0x15, 0x00, 0x00, 0x38, 0x11, 0x27, 0x80, 0xb7, 0x38, 0x0f, 0x20, - 0xce, 0x05, 0xb8, 0x0f, 0x9b, 0x17, 0xf8, 0x0b, 0xbe, 0x53, 0x7d, 0x74, - 0x2b, 0x95, 0x05, 0x53, 0xff, 0xb8, 0x17, 0x06, 0x11, 0xff, 0x78, 0x05, - 0x3b, 0x8a, 0x27, 0xfb, 0x3d, 0x04, 0x34, 0x28, 0x0d, 0x1f, 0x68, 0x07, - 0x4c, 0x39, 0x04, 0x46, 0x04, 0x28, 0x07, 0x08, 0x34, 0xff, 0x10, 0x0e, - 0xb0, 0x7f, 0x0b, 0x0b, 0x38, 0x15, 0x80, 0x70, 0x04, 0x0b, 0x0b, 0x8e, - 0x23, 0xdf, 0x05, 0x00, 0x03, 0x00, 0x0d, 0x4e, 0xb6, 0x30, 0xfc, 0x28, - 0x09, 0x58, 0x17, 0xd7, 0x05, 0xf5, 0x13, 0x3f, 0xff, 0x53, 0x2f, 0xa9, - 0x61, 0x2f, 0x99, 0x7c, 0xa3, 0x06, 0x30, 0x7f, 0x78, 0x72, 0x2f, 0xb1, - 0x04, 0x98, 0x79, 0x09, 0x10, 0xff, 0x0e, 0xb1, 0x7f, 0x28, 0x84, 0x14, - 0x61, 0x5c, 0x06, 0x32, 0xf7, 0x7f, 0xff, 0x90, 0xc7, 0x7c, 0xb9, 0x38, - 0x17, 0xd1, 0x06, 0x38, 0x13, 0x0f, 0x33, 0x7f, 0x21, 0x28, 0x0f, 0x30, - 0x04, 0x40, 0x05, 0x28, 0x01, 0xca, 0x10, 0x00, 0x93, 0xff, 0x10, 0x06, - 0xb0, 0xff, 0x0c, 0x0c, 0x20, 0x01, 0x0e, 0x30, 0x05, 0x0b, 0x8a, 0x40, - 0x0a, 0x02, 0x23, 0xfa, 0x2b, 0x0d, 0x0e, 0x28, 0x17, 0xaf, 0x3a, 0x30, - 0xbb, 0x28, 0x15, 0x06, 0x75, 0x1b, 0x38, 0x17, 0x78, 0x2e, 0x93, 0x6e, - 0x3a, 0x00, 0x79, 0x06, 0xa0, 0x7f, 0x06, 0x78, 0x15, 0x59, 0x17, 0x63, - 0x2c, 0x33, 0x73, 0xde, 0x4f, 0xb7, 0x06, 0x59, 0x97, 0x73, 0x2e, 0x1b, - 0x31, 0x81, 0x3f, 0xb1, 0x06, 0x3a, 0x17, 0x6a, 0xc2, 0x06, 0x80, 0x7d, - 0x38, 0x17, 0x4b, 0x51, 0xee, 0x68, 0x06, 0x98, 0x19, 0x91, 0x1b, 0xc7, - 0x3c, 0xc1, 0x06, 0x78, 0x13, 0x7b, 0x97, 0x6b, 0x06, 0x82, 0x7d, 0x73, - 0xff, 0x60, 0xf3, 0x06, 0x81, 0xff, 0x38, 0x17, 0x3a, 0x04, 0x41, 0x04, - 0x3e, 0x03, 0x04, 0x3d, 0x04, 0x38, 0x04, 0x4f, 0x06, 0x08, 0x1f, 0x07, - 0x54, 0xff, 0x94, 0x10, 0x0e, 0x90, 0x7f, 0x0d, 0x0d, 0x20, 0x01, 0x0c, - 0x80, 0x04, 0x0d, 0x4a, 0x02, 0x24, 0xc4, 0x09, 0x00, 0x00, 0x0f, 0x88, - 0x17, 0xfb, 0x20, 0x30, 0xa2, 0x28, 0x1d, 0xcf, 0x30, 0xeb, 0x30, 0xc8, - 0xc5, 0x05, 0xc8, 0x23, 0xb8, 0x17, 0x2d, 0x00, 0x41, 0x2f, 0x33, 0x68, - 0x2f, 0xc1, 0x1f, 0x6c, 0x00, 0x74, 0x05, 0xe8, 0x17, 0x06, 0x30, 0x7b, - 0x00, 0x18, 0x17, 0x06, 0x11, 0x01, 0xf8, 0x17, 0xf0, 0x05, 0xf1, 0x83, - 0xd8, 0x17, 0x06, 0x12, 0x01, 0x58, 0x17, 0x2d, 0x00, 0x89, 0x5b, 0x0c, - 0xc8, 0x54, 0x79, 0x72, 0x06, 0x1b, 0x1d, 0x38, 0x17, 0x48, 0xc5, 0x0f, - 0x60, 0xd5, 0xb8, 0xd2, 0x06, 0x58, 0x1d, 0xb8, 0x17, 0x06, 0x93, 0x7f, - 0x78, 0x17, 0xc5, 0x06, 0x14, 0x01, 0xf8, 0x17, 0x2d, 0x00, 0x10, 0x28, - 0x21, 0x45, 0x28, 0x2d, 0x07, 0x3b, 0x04, 0x4c, 0x04, 0x42, 0x05, 0x08, - 0x27, 0x07, 0x54, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x28, 0x0e, 0x0e, 0x20, - 0x01, 0x0d, 0x80, 0x04, 0x0e, 0x11, 0x25, 0x00, 0x42, 0x08, 0x00, 0x00, - 0x10, 0x4e, 0xb7, 0x30, 0x00, 0xe5, 0x30, 0xec, 0x30, 0xb9, 0x30, 0xd3, - 0x30, 0x58, 0xd2, 0x28, 0x1b, 0xdb, 0x28, 0x17, 0x30, 0x11, 0xbf, 0x30, - 0xa4, 0xd4, 0x28, 0x2b, 0x05, 0x3d, 0x45, 0x53, 0x4f, 0x2d, 0x6c, 0x2f, - 0xb1, 0x73, 0x00, 0x55, 0x77, 0x2e, 0xb1, 0x67, 0x28, 0x1d, 0x48, 0x2e, - 0xbd, 0x6c, 0x2f, 0x41, 0x58, 0x74, 0x2f, 0xc7, 0x69, 0x04, 0xef, 0x45, - 0x10, 0x0e, 0xf0, 0x7f, 0xf3, 0x77, 0xd2, 0x02, 0x52, 0xcf, 0x82, 0xca, - 0x76, 0x3c, 0x28, 0x1b, 0x77, 0x00, 0x83, 0x14, 0x5c, 0xaf, 0x65, 0xf0, - 0x6c, 0xe0, 0x40, 0x56, 0x05, 0x9b, 0x19, 0x90, 0xc2, 0x08, 0xb8, 0xa4, - 0xc2, 0x00, 0x44, 0xbe, 0x88, 0xd7, 0x40, 0xd6, 0x88, 0xc2, 0x0b, 0xc0, - 0xd0, 0x78, 0xc7, 0x05, 0xd8, 0x1f, 0x53, 0x43, 0x7b, 0x73, 0x7d, 0x68, - 0x6a, 0x28, 0x23, 0x0d, 0xd3, 0x7f, 0x28, 0x27, 0xff, 0x35, 0x04, 0x37, - 0x2b, 0x04, 0x32, 0x28, 0x15, 0x33, 0x28, 0x15, 0x13, 0x28, 0x21, 0x38, - 0x11, 0x46, 0x48, 0x28, 0x13, 0x35, 0x04, 0x39, 0x28, 0x2d, 0x10, 0x1c, - 0xd4, 0xff, 0x0f, 0x50, 0x0f, 0x70, 0x01, 0x10, 0x40, 0x0a, 0xa0, 0x26, - 0x32, 0x07, 0x04, 0x00, 0x00, 0x11, 0x4e, 0xc6, 0x28, 0x17, 0xfc, 0x30, - 0x5a, 0xea, 0x28, 0x05, 0xb2, 0x05, 0x68, 0x09, 0xdf, 0xff, 0x54, 0x2f, - 0xa3, 0x75, 0x2d, 0x00, 0x72, 0x47, 0xff, 0x67, 0x4e, 0xb1, 0x06, 0xb0, - 0x7f, 0x65, 0x06, 0x0d, 0xb0, 0xbe, 0x30, 0xff, 0xfc, 0xa0, 0x7f, 0x04, - 0xd9, 0x05, 0x00, 0x31, 0x7f, 0x06, 0xb1, 0x7d, 0x07, 0x10, 0x7f, 0xfe, - 0x06, 0x56, 0x97, 0x67, 0x39, 0x68, 0x06, 0x12, 0xf7, 0x7f, 0xff, 0x80, - 0x06, 0xd2, 0xc1, 0xb9, 0x90, 0xac, 0x05, 0xd8, 0x0b, 0x08, 0x12, 0x7f, - 0xed, 0x82, 0x06, 0x82, 0x7f, 0x22, 0x04, 0x4e, 0x04, 0x40, 0x28, 0x13, - 0x3d, 0x8e, 0x28, 0x15, 0x38, 0x04, 0x4f, 0x04, 0xe8, 0x05, 0x08, 0xf4, - 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x10, 0x51, 0x10, 0x70, 0x01, 0x0f, 0x40, - 0x0a, 0x3f, 0x24, 0xd6, 0x28, 0x17, 0x80, 0x00, 0x1f, 0xff, 0x01, 0x03, - 0x04, 0x03, 0x06, 0x04, 0x01, 0x80, 0x30, 0x06, 0x03, 0x01, 0x01, 0x01, - 0x01, 0x02, 0x07, 0x04, 0x08, 0x07, 0x02, 0x08, 0x02, 0x30, 0x06, 0x07, - 0x02, 0x12, 0x02, 0x02, 0x02, 0x30, 0x14, 0x03, 0x01, 0x30, 0x1b, 0x02, - 0x80, 0x20, 0x05, 0x03, 0x03, 0x04, 0x02, 0x03, 0x02, 0x05, 0x20, 0x03, - 0x04, 0x20, 0x06, 0x01, 0x02, 0x04, 0x04, 0x04, 0x22, 0x04, 0x05, 0x20, - 0x01, 0x07, 0x05, 0x05, 0x30, 0x06, 0x04, 0x91, 0x20, 0x06, 0x05, 0x06, - 0x20, 0x01, 0x08, 0x06, 0x06, 0x30, 0x06, 0x48, 0x05, 0x20, 0x06, 0x06, - 0x07, 0x20, 0x01, 0x01, 0x07, 0x07, 0xa1, 0x30, 0x06, 0x06, 0x20, 0x06, - 0x07, 0x08, 0x09, 0x09, 0x30, 0x02, 0x38, 0x08, 0x08, 0x20, 0x06, 0x20, - 0x05, 0x20, 0x06, 0x02, 0x09, 0x04, 0x04, 0x02, 0x09, 0x09, 0x09, 0x02, - 0x30, 0x17, 0x09, 0x09, 0x02, 0x0a, 0x0a, 0x0a, 0x0a, 0x0b, 0x0b, 0x30, - 0x04, 0x0e, 0xf0, 0x30, 0x0a, 0x20, 0x0b, 0x30, 0x0d, 0x70, 0x04, 0x0b, - 0x0b, 0x0c, 0x0c, 0xb3, 0x20, 0x01, 0x0e, 0x30, 0x05, 0x50, 0x0a, 0x0d, - 0x0d, 0x20, 0x01, 0x40, 0x05, 0x9f, 0x50, 0x0a, 0x0e, 0x0e, 0x20, 0x01, - 0x40, 0x05, 0x50, 0x0a, 0xf9, 0x1f, 0xf1, 0x17, 0x80, 0x3f, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x3c, 0x72, 0x00, 0x11, 0x0d, 0x00, 0x00, - 0x30, 0x01, 0x4f, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x01, 0x1b, 0xde, 0x10, 0x00, 0x00, 0x00, - 0x02, 0x4f, 0xa2, 0x30, 0xc3, 0x30, 0xc6, 0x04, 0x30, 0xa3, 0x30, 0xab, - 0x30, 0x06, 0x58, 0x1f, 0x41, 0x00, 0x41, 0x74, 0x20, 0x01, 0x69, 0x00, - 0x63, 0x00, 0x61, 0x06, 0xc0, 0x7f, 0x05, 0x71, 0x00, 0x75, 0x00, 0x65, - 0x06, 0xa0, 0xff, 0x6b, 0x06, 0xe0, 0xff, 0xa0, 0x06, 0x71, 0x7f, 0xc1, - 0x06, 0xc1, 0xfd, 0x00, 0x00, 0x3f, 0x96, 0xd0, 0x01, 0x63, 0x61, 0x53, - 0x27, 0x59, 0x3a, 0x53, 0x06, 0x5b, 0x1f, 0x03, 0x44, 0xc5, 0xf0, 0xd2, - 0x74, 0xce, 0x06, 0x9b, 0x9b, 0x06, 0xf2, 0x7f, 0x88, 0x06, 0xf1, 0xff, - 0x10, 0x04, 0x42, 0x20, 0x01, 0x38, 0x04, 0x3a, 0x19, 0x04, 0x30, 0x04, - 0x0e, 0xb4, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x01, 0x01, 0xe0, 0x01, 0x80, - 0x48, 0x17, 0x03, 0x4f, 0x2d, 0x4e, 0x2e, 0x59, 0xae, 0x02, 0x30, 0xea, - 0x30, 0xb7, 0x30, 0xe3, 0x06, 0x48, 0x19, 0x43, 0xa8, 0x27, 0x8d, 0x6e, - 0x28, 0x1b, 0x72, 0x28, 0x17, 0x6c, 0x00, 0x20, 0x2b, 0x00, 0x47, 0x20, - 0x09, 0x65, 0x27, 0xa1, 0x63, 0x05, 0x67, 0xa5, 0x30, 0x6f, 0x5b, 0xe8, - 0x40, 0x6d, 0x2d, 0xe0, 0x8b, 0x05, 0x58, 0x25, 0x4d, 0x29, 0x13, 0x39, - 0x19, 0x55, 0x65, 0x20, 0xfd, 0x67, 0x21, 0x05, 0x69, 0x40, 0xfb, 0x68, - 0x41, 0x15, 0x46, 0x6c, 0x29, 0x2b, 0x6e, 0x00, 0x64, 0x05, 0x00, 0xff, - 0x31, 0x6d, 0x69, 0xb8, 0x29, 0x97, 0x20, 0x06, 0x21, 0x01, 0x00, 0xb0, - 0x7f, 0x05, 0x3f, 0xc9, 0x2d, 0x4e, 0x0c, 0x10, 0x5e, 0x4a, 0x81, 0x06, - 0x98, 0x17, 0x11, 0xc9, 0x80, 0xbd, 0x00, 0x20, 0x00, 0xf8, 0xad, 0xac, - 0xb9, 0xa4, 0xc2, 0xdb, 0x06, 0xf3, 0x7f, 0x33, 0x81, 0x2d, 0x43, 0x81, - 0x32, 0x85, 0x6b, 0x05, 0x42, 0x83, 0x33, 0xef, 0x41, 0xe9, 0x06, 0xa1, - 0xff, 0x26, 0x04, 0x35, 0x04, 0x3d, 0x28, 0x1b, 0x44, 0x40, 0x28, 0x17, - 0x3b, 0x04, 0x4c, 0x20, 0x0b, 0x30, 0x04, 0x04, 0x4f, 0x04, 0x20, 0x00, - 0x13, 0x20, 0x11, 0x35, 0x04, 0x5c, 0x46, 0x28, 0x31, 0x4f, 0x04, 0xc8, - 0x2f, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x02, 0x02, 0x05, 0x06, - 0x05, 0x06, 0x06, 0x02, 0x20, 0x06, 0x0a, 0x20, 0x04, 0x00, 0x02, 0x02, - 0xa8, 0x1b, 0xf3, 0x0f, 0x00, 0x00, 0x40, 0x04, 0x48, 0x17, 0xde, 0x30, - 0xb1, 0x30, 0xc9, 0x30, 0x1b, 0xcb, 0x30, 0xa2, 0x06, 0x28, 0x19, 0xf8, - 0x17, 0x4d, 0x2f, 0x37, 0x38, 0x13, 0x1e, 0x64, 0x00, 0x6f, 0x28, 0x2f, - 0x36, 0xad, 0x04, 0xf7, 0x97, 0x30, 0x6f, 0xe9, 0xb5, 0x40, 0x6f, 0x69, - 0x28, 0xa1, 0x05, 0xf8, 0x1f, 0x5a, 0xc9, 0x17, 0x6d, 0x2f, 0xb5, 0xff, - 0x35, 0x8f, 0x70, 0xfd, 0x39, 0x33, 0x05, 0x30, 0xff, 0xb1, 0x6f, 0x05, - 0xd8, 0x1d, 0x01, 0x10, 0x7f, 0x04, 0xf8, 0x17, 0x03, 0x6c, 0x9a, 0x76, - 0x51, 0x7f, 0x98, 0x06, 0x78, 0x19, 0x58, 0x17, 0x00, 0xc8, 0xb9, 0x00, - 0xcf, 0xc4, 0xb3, 0xc8, 0xb2, 0x35, 0x44, 0xc5, 0x07, 0x18, 0x17, 0xf3, - 0x81, 0xeb, 0x05, 0x62, 0x7f, 0xf3, 0x06, 0x41, 0xff, 0xa8, 0x00, 0x78, - 0x17, 0x1c, 0x28, 0x27, 0x3a, 0x28, 0x33, 0x34, 0x04, 0x3e, 0xf0, 0x28, - 0x37, 0x04, 0x98, 0x1d, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x03, - 0x03, 0x09, 0x0d, 0x14, 0x09, 0x09, 0x03, 0x20, 0x06, 0x0b, 0x20, 0x04, - 0x03, 0x03, 0x00, 0xe2, 0x1c, 0x55, 0x10, 0x00, 0x00, 0x05, 0x4f, 0x07, - 0xaf, 0x30, 0xec, 0x30, 0xbf, 0x06, 0x28, 0x0f, 0x9c, 0xaf, 0x3e, 0xaf, - 0xd7, 0x3f, 0x2f, 0x06, 0x90, 0x7f, 0xe8, 0x06, 0xa0, 0x7f, 0x4b, 0x60, - 0xff, 0x04, 0xf8, 0xff, 0x00, 0xf1, 0x7f, 0x81, 0x0e, 0x70, 0x7f, 0x4b, - 0x51, 0xcc, 0x91, 0x79, 0x72, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0x6c, - 0xd0, 0x08, 0xb8, 0xc0, 0xd0, 0xd7, 0x06, 0x93, 0x7f, 0x0e, 0xf2, 0x7f, - 0x1a, 0x28, 0x11, 0x38, 0x28, 0x17, 0x0e, 0xb4, 0xff, 0x10, 0x0e, 0xb0, - 0x7f, 0x00, 0x04, 0x04, 0x02, 0x04, 0x02, 0x02, 0x04, 0x04, 0x04, 0x06, - 0x02, 0x06, 0x04, 0x04, 0x20, 0x01, 0x20, 0x19, 0x00, 0xdf, 0x11, 0x00, - 0x00, 0x06, 0x4f, 0x71, 0x67, 0x00, 0xde, 0x30, 0xb1, 0x30, 0xc9, 0x30, - 0xcb, 0x30, 0x00, 0xa2, 0x30, 0xfb, 0x30, 0xc8, 0x30, 0xe9, 0x30, 0x6b, - 0xad, 0x20, 0x09, 0x05, 0x9d, 0x39, 0x45, 0x2f, 0xaf, 0x73, 0x2f, 0x9b, - 0x00, 0x3b, 0x29, 0x50, 0x20, 0x2f, 0xcb, 0x6e, 0x2f, 0xc9, 0x20, 0x00, - 0x54, 0x00, 0x75, 0x68, 0x4f, 0xbd, 0x3e, 0xd9, 0x04, 0x3f, 0x2f, 0xe9, - 0x4f, 0xa1, 0x69, 0x2f, 0xb9, 0x5e, 0x65, 0x2d, 0x31, 0x4f, 0x2f, 0xbd, - 0x5f, 0xab, 0x37, 0xaf, 0x3f, 0x31, 0x2d, 0xaa, 0x48, 0xbb, 0x2d, 0x04, - 0x20, 0x87, 0x4f, 0x40, 0xfd, 0x6d, 0x2f, 0xb5, 0x6b, 0xc5, 0xaf, 0xb5, - 0x3f, 0xaf, 0x20, 0x00, 0x75, 0xe0, 0xfd, 0x6b, 0x60, 0x95, 0xd7, 0x04, - 0xff, 0xaf, 0x00, 0x10, 0xff, 0x20, 0x40, 0x03, 0x54, 0x61, 0x83, 0x03, - 0xbc, 0xc5, 0x01, 0x30, 0x7f, 0x10, 0x20, 0x00, 0x79, 0x04, 0x60, 0x7d, - 0x00, 0x00, 0x1c, 0x4e, 0x00, 0x6c, 0x9a, 0x76, 0x51, 0x7f, 0x98, 0x8c, - 0x54, 0x02, 0x72, 0x82, 0xf7, 0x96, 0xaf, 0x65, 0x05, 0xf8, 0x21, 0xd9, - 0x00, 0xb3, 0x80, 0xbd, 0x20, 0x00, 0xc8, 0xb9, 0x00, 0x00, 0xcf, 0xc4, - 0xb3, 0xc8, 0xb2, 0x44, 0xc5, 0xb8, 0x01, 0xd2, 0x7c, 0xb7, 0xa4, 0xd0, - 0x44, 0xc5, 0x05, 0x7b, 0xa9, 0x6b, 0x4f, 0x2e, 0x97, 0x33, 0x7f, 0x2d, - 0x00, 0x0e, 0xa9, 0xeb, 0x41, 0xf5, 0x32, 0x87, 0xf6, 0x93, 0x7d, 0x30, - 0x15, 0x04, 0x33, 0x7f, 0x3f, 0x1f, 0xf3, 0x00, 0xa1, 0xff, 0x72, 0x7d, - 0xe1, 0x82, 0x04, 0x01, 0xff, 0x12, 0x04, 0x3e, 0x04, 0x41, 0x28, 0x17, - 0x3e, 0x00, 0x04, 0x47, 0x04, 0x3d, 0x04, 0x30, 0x04, 0x4f, 0x08, 0x04, - 0x20, 0x00, 0x1c, 0x20, 0x07, 0x3a, 0x04, 0x35, 0x2d, 0x04, 0x34, 0x20, - 0x1b, 0x3d, 0x28, 0x35, 0x30, 0x13, 0x38, 0x20, 0x17, 0x7c, 0x24, 0x28, - 0x43, 0x30, 0x19, 0x30, 0x11, 0x0b, 0x74, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x05, 0x05, 0x00, 0x0b, 0x07, 0x0b, 0x0b, 0x05, 0x05, 0x08, 0x0b, 0x10, - 0x02, 0x05, 0x05, 0x20, 0x01, 0x3e, 0x1d, 0x13, 0x12, 0x00, 0x00, 0x00, - 0x07, 0x4f, 0xa4, 0x30, 0xd4, 0x30, 0x1a, 0xed, 0x30, 0xb9, 0x05, 0xa8, - 0x09, 0xf8, 0x17, 0x70, 0x28, 0x03, 0x72, 0xaf, 0x27, 0x03, 0x73, 0x06, - 0x4f, 0xb1, 0xc9, 0x60, 0x7f, 0x06, 0x7b, 0xaf, 0x06, 0xf0, 0xff, 0x71, - 0x7f, 0x60, 0x6f, 0x06, 0xe1, 0xff, 0x06, 0x70, 0x7f, 0x0a, 0x4f, 0x87, - 0x5e, 0x81, 0x60, 0x9c, 0x06, 0x18, 0x0f, 0x7f, 0xff, 0xd0, 0xc5, 0x3c, - 0xd5, 0xe8, 0x18, 0xb8, 0xa4, 0xc2, 0x0e, 0x73, 0x7f, 0x06, 0xf2, 0x7f, - 0x2d, 0x04, 0x3f, 0xb8, 0x27, 0xf9, 0x40, 0x03, 0x87, 0xe7, 0x0a, 0x73, - 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x06, 0x06, 0x05, 0x80, 0x28, 0x10, 0x06, - 0x06, 0x04, 0x05, 0x0c, 0x06, 0x06, 0x80, 0x20, 0x01, 0x32, 0x1c, 0xd3, - 0x0e, 0x00, 0x00, 0x08, 0x82, 0x28, 0x17, 0xaa, 0x30, 0xcb, 0x30, 0xa2, - 0x06, 0x88, 0x17, 0x49, 0xd6, 0x8e, 0xa7, 0x3f, 0x21, 0x49, 0x2f, 0x3d, - 0x6c, 0x6b, 0x25, 0x05, 0x58, 0x27, 0xce, 0xb6, 0x4f, 0x0f, 0x73, 0x40, - 0x7b, 0x9f, 0xab, 0x6e, 0x40, 0x13, 0x05, 0xb0, 0xff, 0x73, 0xaa, 0x2f, - 0xb5, 0x68, 0x4f, 0x99, 0x49, 0x2f, 0xb7, 0x73, 0x2f, 0xc1, 0x6c, 0xdf, - 0x2f, 0xbf, 0x05, 0x31, 0x7f, 0x73, 0x2f, 0xa9, 0x31, 0x03, 0xb1, 0x01, - 0x05, 0xb1, 0xff, 0x51, 0xf1, 0xac, 0x31, 0x81, 0x4a, 0x6e, 0x33, 0x63, - 0x4d, 0x43, 0x05, 0x5f, 0xb5, 0x31, 0x72, 0x00, 0x65, 0x59, 0x3c, 0x5c, - 0x9a, 0x4e, 0xa4, 0x7f, 0x20, 0x9b, 0x5c, 0x06, 0x38, 0x1b, 0x74, 0xc7, - 0x24, 0xc6, 0xc8, 0x11, 0xb2, 0x44, 0xc5, 0x2e, 0xa5, 0xc8, 0xc4, 0xb3, - 0x06, 0x93, 0x7f, 0xbd, 0x92, 0x7f, 0x45, 0x2f, 0xb5, 0x73, 0x83, 0x3f, - 0xb3, 0x04, 0xf3, 0xff, 0x6c, 0x2f, 0x0b, 0x82, 0x06, 0x91, 0xff, 0x18, - 0x04, 0x3e, 0x04, 0x3d, 0x28, 0x19, 0x47, 0x02, 0x04, 0x35, 0x04, 0x41, - 0x04, 0x3a, 0x28, 0x23, 0x35, 0x0a, 0x04, 0x20, 0x00, 0x3e, 0x20, 0x0b, - 0x42, 0x28, 0x2d, 0x3e, 0x0e, 0x04, 0x32, 0x04, 0x30, 0x04, 0xc8, 0x33, - 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x07, 0x00, 0x07, 0x08, 0x03, - 0x08, 0x08, 0x07, 0x07, 0x05, 0x08, 0x08, 0x05, 0x07, 0x07, 0x20, 0x01, - 0x2c, 0x1c, 0x29, 0x80, 0x28, 0x17, 0x09, 0x4f, 0x17, 0x53, 0xa8, 0x30, - 0xfc, 0x28, 0x30, 0xb2, 0x06, 0x88, 0x17, 0x4e, 0x2e, 0xa9, 0x72, 0x00, - 0x74, 0x8b, 0x27, 0x13, 0x20, 0x00, 0x41, 0x2f, 0xb5, 0x67, 0x2f, 0xb9, - 0x38, 0x23, 0xa8, 0x05, 0x7f, 0xbe, 0xc9, 0x20, 0x71, 0xe9, 0x28, 0x19, - 0x2d, 0x00, 0x53, 0xb5, 0x28, 0x1f, 0x70, 0x20, 0x89, 0x38, 0x17, 0x74, - 0x2f, 0xc1, 0x69, 0x48, 0xb1, 0x6b, 0x61, 0x48, 0x37, 0x04, 0xb0, 0xff, - 0xf6, 0x2f, 0xad, 0x64, 0x29, 0x0d, 0x37, 0x0f, 0xae, 0x58, 0x19, 0xc4, - 0x21, 0x05, 0xe4, 0x48, 0x2b, 0x05, 0x3f, 0xaf, 0x31, 0x71, 0x6f, 0xde, - 0x29, 0x93, 0x30, 0xff, 0x74, 0x06, 0x00, 0xff, 0xd0, 0x7f, 0x00, 0x51, - 0x7f, 0x04, 0xbf, 0xc7, 0x17, 0x01, 0x53, 0x31, 0x72, 0x34, 0x74, 0x77, - 0x6d, 0x06, 0x38, 0x13, 0x80, 0x3f, 0xff, 0x81, 0xbd, 0x80, 0xbd, 0x20, - 0x00, 0xd0, 0x1b, 0xc5, 0x8c, 0xac, 0x06, 0x93, 0x7f, 0x33, 0x81, 0x64, - 0x23, 0x01, 0x52, 0x0b, 0x6c, 0xef, 0x05, 0xc8, 0x23, 0x52, 0x7f, 0x75, - 0x82, 0x7f, 0x05, 0xd1, 0xfd, 0x00, 0x00, 0x55, 0x21, 0x28, 0x0f, 0x32, - 0x28, 0x13, 0x40, 0x28, 0x1d, 0x4b, 0x48, 0x13, 0x17, 0x2d, 0x04, 0x33, - 0x28, 0x23, 0x39, 0x05, 0x68, 0x25, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, - 0x7f, 0x03, 0x08, 0x08, 0x04, 0x06, 0x04, 0x04, 0x28, 0x19, 0x20, 0x03, - 0x80, 0x30, 0x01, 0xce, 0x1b, 0xe1, 0x12, 0x00, 0x00, 0x0a, 0x00, 0x4f, - 0xda, 0x30, 0xed, 0x30, 0xdd, 0x30, 0xcd, 0x0a, 0x30, 0xbd, 0x30, 0xb9, - 0x06, 0x48, 0x1b, 0x50, 0x4f, 0x19, 0x6f, 0xf6, 0x27, 0x91, 0x3f, 0xad, - 0x5f, 0xa7, 0x05, 0xbe, 0xaf, 0x50, 0x28, 0x15, 0xb0, 0x7f, 0xe8, 0xec, - 0x06, 0x00, 0x7f, 0x00, 0x10, 0xff, 0x06, 0xf1, 0x7f, 0x6f, 0x06, 0x81, - 0xff, 0x05, 0xf0, 0x7d, 0x00, 0x00, 0x00, 0x2f, 0x4f, 0x57, 0x7f, 0x54, - 0x59, 0x3c, 0x5c, 0x20, 0x92, 0x64, 0x06, 0x58, 0x19, 0xa0, 0xd3, 0x5c, - 0xb8, 0xf0, 0x01, 0xd3, 0x24, 0xb1, 0x8c, 0xc1, 0xa4, 0xc2, 0x07, 0x73, - 0x7f, 0x6a, 0x6f, 0x05, 0xa2, 0x83, 0x06, 0xf1, 0xff, 0x1f, 0x28, 0x17, - 0x3b, 0x27, 0xf1, 0x3f, 0xae, 0x27, 0xf5, 0x3d, 0x28, 0x1b, 0x35, 0x28, - 0x0f, 0x0d, 0xd4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x09, 0x02, 0x09, 0x0c, - 0x08, 0x0c, 0x0c, 0x09, 0x20, 0x06, 0x07, 0x80, 0x20, 0x04, 0x09, 0x09, - 0xab, 0x1a, 0xe7, 0x0f, 0x00, 0x00, 0x00, 0x0b, 0x4f, 0x57, 0x53, 0xa8, - 0x30, 0xfc, 0x35, 0x30, 0xb2, 0x06, 0x48, 0x13, 0x3f, 0xff, 0x53, 0x2f, - 0x95, 0x75, 0x06, 0xab, 0x2f, 0x51, 0xc9, 0x2f, 0x9b, 0xe9, 0x2f, 0xa5, - 0x2d, 0x00, 0x4d, 0x28, 0x21, 0xb5, 0x3f, 0x25, 0x64, 0x05, 0x6f, 0x29, - 0x70, 0xff, 0xfc, 0x2d, 0xab, 0x6c, 0x2f, 0x9d, 0xae, 0x7d, 0xa3, 0xc4, - 0x2f, 0xc1, 0xe4, 0x2f, 0xad, 0x05, 0x58, 0x1f, 0x9f, 0xaf, 0x4d, 0xf0, - 0x2f, 0xb7, 0x06, 0x10, 0xff, 0x00, 0xd0, 0x7f, 0x05, 0x1f, 0xc1, 0x57, - 0x53, 0x31, 0x72, 0x08, 0x34, 0x74, 0x77, 0x6d, 0x06, 0x58, 0x15, 0x00, - 0x00, 0xa8, 0x00, 0xb0, 0x80, 0xbd, 0x20, 0x00, 0xd0, 0xc5, 0x8c, 0x5a, - 0xac, 0x06, 0x53, 0x81, 0x5a, 0x2f, 0xab, 0x32, 0xf3, 0x2d, 0x6f, 0xb9, - 0xef, 0xd5, 0x2b, 0x97, 0x72, 0x89, 0x45, 0x2f, 0xb5, 0x6c, 0x4e, 0xbd, - 0x64, 0x4f, 0xc7, 0xa2, 0x04, 0x92, 0x7f, 0x75, 0x06, 0x81, 0xff, 0x2e, - 0x04, 0x36, 0x28, 0x0f, 0x4b, 0x82, 0x28, 0x1d, 0x20, 0x00, 0x2d, 0x04, - 0x33, 0x28, 0x25, 0x39, 0x8a, 0x28, 0x19, 0x3a, 0x04, 0x38, 0x40, 0x11, - 0x3e, 0x28, 0x25, 0x42, 0x23, 0x04, 0x40, 0x28, 0x37, 0x32, 0x04, 0x30, - 0x04, 0x48, 0x2f, 0x06, 0xf4, 0xff, 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x0a, - 0x0a, 0x03, 0x09, 0x03, 0x03, 0x0a, 0x02, 0x0a, 0x0d, 0x03, 0x0d, 0x0a, - 0x0a, 0x20, 0x01, 0xe9, 0x00, 0x19, 0x11, 0x14, 0x00, 0x00, 0x0c, 0x4f, - 0xc6, 0x02, 0x30, 0xc3, 0x30, 0xb5, 0x30, 0xea, 0x28, 0x1b, 0xa2, 0xad, - 0x06, 0x48, 0x1b, 0x54, 0x47, 0x0d, 0x73, 0x2f, 0xa5, 0x37, 0x87, 0x79, - 0x06, 0xe0, 0x7f, 0x7d, 0x69, 0x05, 0xcb, 0xab, 0x00, 0x50, 0x7f, 0x05, - 0x99, 0x13, 0x51, 0x7f, 0x71, 0x7d, 0x67, 0x48, 0x9d, 0x7c, 0x61, 0x06, - 0x01, 0xff, 0x3e, 0xa1, 0x51, 0x7b, 0x05, 0xf0, 0x7b, 0x3f, 0xff, 0x72, - 0x82, 0x08, 0x28, 0x84, 0x29, 0x52, 0x06, 0x78, 0x15, 0x00, 0x00, 0x4c, - 0x01, 0xd1, 0xb4, 0xc0, 0xac, 0xb9, 0x44, 0xc5, 0x06, 0x7b, 0x97, 0xa2, - 0xf2, 0xff, 0xeb, 0x06, 0x41, 0xff, 0x73, 0x00, 0xe1, 0x06, 0x62, 0x01, - 0x24, 0xa2, 0x28, 0x11, 0x41, 0x28, 0x09, 0x30, 0x04, 0x3b, 0x28, 0x0b, - 0x4f, 0xe0, 0x04, 0x47, 0xfb, 0x09, 0x94, 0xff, 0x10, 0x0e, 0x10, 0x7f, - 0x0b, 0x0b, 0x0d, 0x0a, 0x0d, 0x00, 0x0d, 0x0b, 0x0b, 0x0a, 0x0d, 0x09, - 0x0b, 0x0b, 0x80, 0x20, 0x01, 0x2f, 0x1c, 0xf1, 0x0f, 0x00, 0x00, 0x0d, - 0x08, 0x4f, 0x7f, 0x89, 0xae, 0x28, 0x15, 0xb7, 0x30, 0xe3, 0xea, 0x06, - 0x48, 0x15, 0x2d, 0xaf, 0x48, 0x15, 0x74, 0x2f, 0x27, 0x47, 0x2f, 0xad, - 0x65, 0xb4, 0x2f, 0xb9, 0x63, 0x05, 0xc7, 0x9b, 0x30, 0x75, 0xe8, 0x40, - 0x73, 0x2d, 0x00, 0x5b, 0x4f, 0x2f, 0xb3, 0x63, 0x4f, 0x31, 0x3d, 0x1d, - 0x74, 0x05, 0x4f, 0x31, 0x70, 0xff, 0x77, 0x67, 0x4f, 0xab, 0x30, 0xfd, - 0x3d, 0xab, 0x6e, 0x8d, 0xa7, 0x05, 0x30, 0xff, 0x31, 0x73, 0xb8, 0x38, - 0x11, 0x20, 0x06, 0x21, 0x01, 0x01, 0x10, 0x7f, 0x04, 0xdf, 0xc5, 0x7f, - 0x89, 0x0c, 0x10, 0x5e, 0x4a, 0x81, 0x06, 0x98, 0x17, 0x1c, 0xc1, 0x80, - 0xbd, 0x00, 0x20, 0x00, 0xf8, 0xad, 0xac, 0xb9, 0xa4, 0xc2, 0xb5, 0x06, - 0xb3, 0x7f, 0x2d, 0x43, 0x7f, 0x3b, 0x17, 0x6b, 0x06, 0x02, 0x7f, 0xe9, - 0xc2, 0x7f, 0x8a, 0x05, 0xb1, 0xfd, 0x00, 0x00, 0x17, 0x28, 0x11, 0x3f, - 0x28, 0x15, 0x34, 0x20, 0x04, 0x3d, 0x28, 0x1b, 0x4f, 0x04, 0x20, 0x00, - 0x13, 0x2e, 0x04, 0x40, 0x28, 0x2b, 0x46, 0x05, 0x68, 0x25, 0x06, 0xf4, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0c, 0x00, 0x0c, 0x07, 0x0b, 0x07, 0x07, - 0x0c, 0x0c, 0x0b, 0x08, 0x07, 0x03, 0x0c, 0x0c, 0x20, 0x01, 0x30, 0x1b, - 0x75, 0xa0, 0x28, 0x17, 0x0e, 0x28, 0x17, 0xde, 0x30, 0xb1, 0x30, 0xc9, - 0x0d, 0x30, 0xcb, 0x30, 0xa2, 0x06, 0x48, 0x19, 0x98, 0x17, 0x4d, 0x2f, - 0xb1, 0x8e, 0x38, 0x13, 0x64, 0x00, 0x6f, 0x2f, 0x33, 0x05, 0x7e, 0xb9, - 0x50, 0x75, 0xe9, 0xbb, 0x40, 0x75, 0x69, 0x2f, 0xab, 0x05, 0xf8, 0x1f, - 0x79, 0x17, 0x6d, 0x2f, 0xb1, 0x35, 0x91, 0xfe, 0x70, 0xfd, 0x38, 0x99, - 0x05, 0x90, 0xff, 0xb1, 0x75, 0x05, 0xd8, 0x1d, 0x01, 0x70, 0x7f, 0x04, - 0x98, 0x17, 0x6c, 0x06, 0x9a, 0x76, 0x51, 0x7f, 0x98, 0x06, 0x78, 0x19, - 0x58, 0x17, 0xc8, 0x00, 0xb9, 0x00, 0xcf, 0xc4, 0xb3, 0xc8, 0xb2, 0x44, - 0x6b, 0xc5, 0x06, 0x98, 0x17, 0xf3, 0x7f, 0xeb, 0x05, 0xe2, 0x7f, 0xf3, - 0xc2, 0x7f, 0x05, 0x7a, 0x1b, 0xa8, 0x00, 0x18, 0x17, 0x1c, 0x28, 0x29, - 0x3a, 0x28, 0x19, 0x34, 0x04, 0x3e, 0xf0, 0x28, 0x2b, 0x04, 0xf8, 0x1d, - 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0d, 0x0d, 0x0a, 0x0c, 0x00, - 0x0a, 0x0a, 0x0d, 0x0d, 0x0c, 0x0a, 0x04, 0x0d, 0x46, 0x0d, 0x20, 0x01, - 0xaa, 0x1c, 0x80, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x01, 0x40, 0x01, 0xd0, - 0x01, 0x02, 0x02, 0x06, 0x05, 0x06, 0x06, 0x50, 0x02, 0x20, 0x06, 0x0a, - 0x20, 0x04, 0x02, 0x02, 0x03, 0x03, 0x05, 0x09, 0x0d, 0x09, 0x09, 0x03, - 0x20, 0x06, 0x0b, 0x20, 0x04, 0x00, 0x03, 0x03, 0x04, 0x04, 0x02, 0x04, - 0x02, 0x02, 0x01, 0x04, 0x04, 0x06, 0x02, 0x06, 0x04, 0x04, 0x20, 0x01, - 0x00, 0x05, 0x05, 0x0b, 0x07, 0x0b, 0x0b, 0x05, 0x05, 0x04, 0x08, 0x0b, - 0x02, 0x05, 0x05, 0x20, 0x01, 0x06, 0x06, 0x40, 0x05, 0x20, 0x08, 0x06, - 0x06, 0x04, 0x05, 0x0c, 0x06, 0x40, 0x06, 0x20, 0x01, 0x07, 0x07, 0x08, - 0x03, 0x08, 0x08, 0x01, 0x07, 0x07, 0x05, 0x08, 0x05, 0x07, 0x07, 0x20, - 0x01, 0x1e, 0x08, 0x08, 0x04, 0x20, 0x38, 0x20, 0x11, 0x20, 0x03, 0x30, - 0x01, 0x09, 0x02, 0x09, 0x0c, 0x08, 0x0c, 0x0c, 0x09, 0x20, 0x06, 0x07, - 0x83, 0x20, 0x04, 0x09, 0x09, 0x0a, 0x0a, 0x03, 0x20, 0x6d, 0x20, 0xb9, - 0x08, 0x03, 0x0d, 0x0a, 0x0a, 0x20, 0x01, 0x0b, 0x0b, 0x0d, 0x80, 0x20, - 0xc5, 0x0b, 0x0b, 0x0a, 0x0d, 0x09, 0x0b, 0x0b, 0xf0, 0x20, 0x01, 0xf8, - 0xef, 0xf0, 0xe7, 0x3f, 0xee, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x54, 0xab, 0x00, 0x11, 0x14, 0x00, 0x00, - 0x30, 0x01, 0x50, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xc5, 0x21, 0x91, 0x0d, 0x00, 0x00, 0x00, - 0x02, 0x50, 0xd6, 0x30, 0xc0, 0x30, 0xda, 0x04, 0x30, 0xb9, 0x30, 0xc8, - 0x30, 0x06, 0x58, 0x1f, 0x42, 0x00, 0x00, 0x75, 0x00, 0x64, 0x00, 0x61, - 0x00, 0x70, 0x00, 0x04, 0x65, 0x00, 0x73, 0x00, 0x74, 0x10, 0x16, 0x00, - 0x7f, 0x03, 0x5e, 0x00, 0xbe, 0x8f, 0x69, 0x4f, 0xaf, 0x65, 0x02, 0x5e, - 0x80, 0x06, 0x5b, 0x1f, 0x80, 0xbd, 0xe4, 0xb2, 0x98, 0xd3, 0xa4, 0x17, - 0xc2, 0xb8, 0xd2, 0x06, 0x73, 0x7f, 0x6f, 0x23, 0x79, 0x06, 0x93, 0x81, - 0xf3, 0xff, 0x40, 0x65, 0x05, 0xec, 0xa6, 0x11, 0x04, 0x43, 0x04, 0x34, - 0x04, 0x00, 0x30, 0x04, 0x3f, 0x04, 0x35, 0x04, 0x48, 0x04, 0x22, 0x42, - 0x04, 0x10, 0x1d, 0xf4, 0xff, 0x01, 0x05, 0x05, 0x20, 0x01, 0x01, 0x24, - 0x01, 0x04, 0x40, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x50, 0x00, 0xd0, - 0x30, 0xfc, 0x30, 0xc1, 0x30, 0xfb, 0x30, 0x00, 0xad, 0x30, 0xb7, 0x30, - 0xe5, 0x30, 0xaf, 0x30, 0x08, 0xf3, 0x30, 0xde, 0x5d, 0x05, 0xd8, 0x17, - 0xe1, 0x00, 0x63, 0x82, 0x28, 0x11, 0x2d, 0x00, 0x4b, 0x00, 0x69, 0x28, - 0x19, 0x6b, 0x83, 0x28, 0x27, 0x6e, 0x00, 0x20, 0x00, 0x43, 0x24, 0xaf, - 0x30, 0x09, 0x1c, 0x74, 0x00, 0x79, 0x06, 0x20, 0x7f, 0x06, 0xf0, 0xff, - 0x10, 0x05, 0x90, 0x7f, 0xf4, 0x5d, 0x00, 0x47, 0x59, 0x2d, 0x00, 0xfa, - 0x57, 0xc0, 0x4e, 0x30, 0x54, 0x5b, 0x05, 0xd2, 0xf9, 0x6f, 0xaf, 0xbc, - 0x58, 0xce, 0xa4, 0x00, 0xd0, 0x88, 0xc2, 0xe4, 0xcf, 0x20, 0x00, 0xfc, - 0x62, 0xc8, 0x06, 0x3b, 0x97, 0x08, 0x32, 0xff, 0x20, 0x00, 0x28, 0x24, - 0x15, 0x6f, 0xd4, 0x24, 0x09, 0x3c, 0x33, 0x64, 0x28, 0xbb, 0x29, 0x04, - 0x88, 0x17, 0x30, 0x04, 0x01, 0x47, 0x04, 0x2d, 0x00, 0x1a, 0x04, 0x38, - 0x28, 0x17, 0x5d, 0x3a, 0x28, 0x25, 0x3d, 0x05, 0xc8, 0x1b, 0x08, 0x54, - 0xff, 0x10, 0x0d, 0x90, 0x7f, 0x02, 0x38, 0x0c, 0x28, 0x01, 0x02, 0x20, - 0x06, 0x02, 0x20, 0x05, 0x02, 0x02, 0x5a, 0x02, 0x21, 0x00, 0x0e, 0x00, - 0x00, 0x04, 0x28, 0x17, 0xe9, 0x0c, 0x30, 0xcb, 0x30, 0xe3, 0x05, 0xe8, - 0x0d, 0xbf, 0xaf, 0x61, 0x00, 0x57, 0x72, 0x2f, 0xaf, 0x6e, 0x27, 0xff, - 0x61, 0x05, 0xa8, 0x0f, 0x00, 0x50, 0x7f, 0x06, 0xf0, 0xff, 0x80, 0x10, - 0x06, 0x10, 0x7f, 0xf4, 0x5d, 0x70, 0x51, 0x3c, 0x5c, 0x9a, 0x40, 0x4e, - 0x06, 0x72, 0xff, 0x84, 0xbc, 0xec, 0xb7, 0x40, 0xb1, 0xf4, 0x06, 0x58, - 0x13, 0x08, 0x12, 0xff, 0x05, 0x98, 0x0f, 0xb8, 0x17, 0x40, 0x28, 0x1b, - 0x3d, 0x04, 0x1d, 0x4c, 0x04, 0x4f, 0x05, 0xc8, 0x11, 0x08, 0x34, 0xff, - 0x10, 0x0e, 0x10, 0x7f, 0x03, 0x38, 0x0c, 0x28, 0x02, 0x03, 0x20, 0x06, - 0x01, 0x20, 0x05, 0x03, 0x03, 0xc3, 0x00, 0x20, 0xf4, 0x0c, 0x00, 0x00, - 0x05, 0x50, 0xd9, 0x08, 0x30, 0xfc, 0x30, 0xb1, 0x20, 0x03, 0xb7, 0x30, - 0xe5, 0x8b, 0x06, 0x48, 0x1b, 0x42, 0x00, 0xe9, 0x2f, 0xa3, 0xe9, 0x2f, - 0xb1, 0x06, 0x18, 0x13, 0xe0, 0xd0, 0x7f, 0x06, 0x79, 0x17, 0x10, 0x06, - 0xd0, 0x7f, 0x1d, 0x8d, 0xef, 0x51, 0xc0, 0x80, 0x06, 0x88, 0x15, 0x00, - 0x00, 0xa0, 0xbc, 0x00, 0xcf, 0xdc, 0x78, 0xc2, 0x06, 0xb8, 0x17, 0x07, - 0x72, 0xff, 0x06, 0x18, 0x13, 0x58, 0x17, 0x35, 0x04, 0x3a, 0xba, 0x20, - 0x03, 0x48, 0x06, 0x28, 0x13, 0x07, 0xd4, 0xff, 0x10, 0x0e, 0x50, 0x7f, - 0x04, 0x38, 0x0c, 0x03, 0x40, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, - 0x30, 0x21, 0x00, 0x01, 0x0f, 0x00, 0x00, 0x06, 0x50, 0xdc, 0x30, 0x40, - 0xeb, 0x28, 0x13, 0xe7, 0x30, 0xc9, 0x30, 0xfb, 0x30, 0x05, 0xa2, 0x30, - 0xd0, 0x30, 0xa6, 0x28, 0x27, 0xa4, 0x20, 0x0b, 0x01, 0xbc, 0x30, 0xf3, - 0x30, 0xd7, 0x30, 0xec, 0x28, 0x35, 0x55, 0xf3, 0x04, 0xc8, 0x2f, 0x42, - 0x2c, 0x1d, 0x72, 0x28, 0x15, 0x6f, 0x2c, 0x21, 0x04, 0x2d, 0x00, 0x41, - 0x00, 0x62, 0x2f, 0xbf, 0xfa, 0x00, 0x40, 0x6a, 0x20, 0x0b, 0x5a, 0x00, - 0x65, 0x00, 0x6d, 0x00, 0x17, 0x70, 0x00, 0x6c, 0x28, 0x39, 0x6e, 0x04, - 0x8b, 0x49, 0x01, 0x70, 0x7f, 0x06, 0xf0, 0xff, 0x80, 0x10, 0x04, 0x70, - 0x7f, 0x05, 0x53, 0x14, 0x5c, 0xcd, 0x7e, 0xb7, 0x00, 0x5f, 0x2d, 0x00, - 0x65, 0x59, 0x05, 0x53, 0x4c, 0x00, 0x4e, 0x0a, 0x4f, 0x2d, 0x00, 0xfe, - 0x66, 0x6e, 0x10, 0x66, 0x26, 0x4f, 0x05, 0x5b, 0x25, 0xf4, 0xbc, 0x74, - 0xb9, 0x00, 0xfc, 0xc1, 0xdc, 0xb4, 0xb4, 0xc5, 0x84, 0xbc, 0x00, 0xb0, - 0xc6, 0x74, 0xc7, 0x2c, 0xc8, 0x0c, 0xd5, 0x38, 0x0c, 0xb8, 0x05, 0x98, - 0x27, 0x09, 0x72, 0xff, 0x04, 0x78, 0x35, 0x11, 0x04, 0x3e, 0x20, 0x04, - 0x40, 0x28, 0x15, 0x3e, 0x04, 0x34, 0x04, 0x2d, 0x00, 0x00, 0x10, 0x04, - 0x31, 0x04, 0x30, 0x04, 0x43, 0x28, 0x04, 0x39, 0x20, 0x0b, 0x17, 0x28, - 0x31, 0x3c, 0x04, 0x3f, 0x2e, 0x04, 0x3b, 0x28, 0x39, 0x3d, 0x04, 0x88, - 0x35, 0x09, 0x74, 0xff, 0x10, 0x0c, 0x70, 0x7f, 0x05, 0x8c, 0x38, 0x0c, - 0x04, 0x05, 0x05, 0x30, 0x07, 0x20, 0x05, 0x05, 0x34, 0x00, 0x22, 0xc8, - 0x0e, 0x00, 0x00, 0x07, 0x50, 0xc1, 0x82, 0x28, 0x13, 0xf3, 0x30, 0xb0, - 0x30, 0xe9, 0x28, 0x0f, 0xc9, 0xd1, 0x04, 0xc8, 0x01, 0x00, 0x5f, 0xff, - 0x43, 0x48, 0x13, 0x6e, 0x00, 0x67, 0x28, 0x1d, 0x7c, 0xe1, 0x2c, 0x29, - 0x05, 0xfb, 0x35, 0xf0, 0x7f, 0x06, 0xf0, 0xff, 0x10, 0x05, 0xf0, 0x7f, - 0x3c, 0x74, 0x03, 0x3c, 0x68, 0xc9, 0x62, 0xb7, 0x5f, 0x06, 0x12, 0xf9, - 0x5f, 0xff, 0x00, 0x0c, 0xcd, 0xf8, 0xad, 0x7c, 0xb7, 0xdc, 0xb4, 0xf4, - 0x05, 0x98, 0x09, 0x08, 0xd2, 0xff, 0x04, 0x77, 0xff, 0x00, 0x7f, 0xff, - 0x27, 0x28, 0x17, 0x3d, 0x04, 0x5e, 0x33, 0x28, 0x1b, 0x30, 0x28, 0x19, - 0x07, 0x11, 0x7f, 0x06, 0xf4, 0xff, 0x10, 0x0d, 0xf0, 0x7f, 0x06, 0x51, - 0x06, 0x70, 0x01, 0x12, 0x40, 0x0a, 0xe4, 0x20, 0x55, 0x28, 0x17, 0x01, - 0x08, 0x50, 0xd5, 0x30, 0xa7, 0x30, 0xa4, 0x20, 0x03, 0x11, 0xfc, 0x30, - 0xeb, 0x06, 0x28, 0x15, 0x00, 0x00, 0x46, 0x2f, 0x95, 0x5e, 0x6a, 0x2f, - 0x91, 0x72, 0x06, 0x08, 0x11, 0xf0, 0x7f, 0x06, 0x56, 0x17, 0x10, 0x06, - 0xf0, 0x7f, 0x39, 0x04, 0x8d, 0x36, 0x80, 0x14, 0x5c, 0x06, 0x78, 0x15, - 0x00, 0x00, 0x03, 0x98, 0xd3, 0x08, 0xc6, 0x74, 0xb9, 0x06, 0x78, 0x15, - 0x07, 0xb2, 0xff, 0xc1, 0x05, 0xf8, 0x11, 0x5f, 0xff, 0x24, 0x04, 0x35, - 0x04, 0x39, 0x20, 0x03, 0x72, 0x40, 0x06, 0x28, 0x13, 0x07, 0xd4, 0xff, - 0x10, 0x0e, 0x50, 0x7f, 0x07, 0x07, 0x70, 0x01, 0x0f, 0x80, 0x40, 0x0a, - 0x90, 0x21, 0x16, 0x0d, 0x00, 0x00, 0x09, 0x20, 0x50, 0xb8, 0x68, 0x13, - 0xfb, 0x30, 0xe2, 0x30, 0xb7, 0x0c, 0x30, 0xe7, 0x30, 0xf3, 0x20, 0x09, - 0x30, 0x07, 0xd7, 0x30, 0x68, 0xed, 0x20, 0x0b, 0x05, 0x1d, 0x45, 0x47, - 0x2b, 0x15, 0x51, 0x01, 0x72, 0x0c, 0x00, 0x2d, 0x00, 0x4d, 0x2f, 0xb7, - 0x5f, 0xbb, 0x2d, 0x00, 0x5f, 0x53, 0x2f, 0xc3, 0x70, 0x2f, 0xc1, 0x3f, - 0xc9, 0x04, 0xdb, 0x41, 0x01, 0x10, 0x7f, 0x06, 0xf0, 0xff, 0x80, 0x10, - 0x04, 0xd0, 0x7f, 0x70, 0x67, 0x14, 0x5c, 0x2d, 0x00, 0xab, 0x00, 0x83, - 0x7e, 0x67, 0x2d, 0x00, 0x96, 0x80, 0x6e, 0x10, 0x66, 0x17, 0x67, 0x05, - 0xdb, 0x1d, 0xc4, 0xc8, 0x74, 0xb9, 0x00, 0xa8, 0xba, 0x00, 0xc2, 0xfc, - 0xc1, 0x04, 0xd5, 0x37, 0x60, 0xb8, 0x06, 0x18, 0x1f, 0x07, 0x32, 0xff, - 0x6f, 0x2f, 0x2b, 0x00, 0xb3, 0xff, 0x04, 0xb8, 0x2f, 0x04, 0x14, 0x04, - 0x4c, 0x04, 0x51, 0x28, 0x15, 0x2d, 0x00, 0x05, 0x1c, 0x04, 0x3e, 0x04, - 0x48, 0x20, 0x03, 0x3d, 0x20, 0x0b, 0x5e, 0x28, 0x20, 0x0b, 0x3f, 0x28, - 0x2b, 0x30, 0x0d, 0x0e, 0xf4, 0xff, 0x10, 0x0c, 0xd0, 0x7f, 0x08, 0x40, - 0x08, 0xd0, 0x01, 0xe7, 0x21, 0x8a, 0x0c, 0x00, 0x00, 0x00, 0x0a, 0x50, - 0xcf, 0x30, 0xa4, 0x30, 0xc9, 0x30, 0x41, 0xa5, 0x28, 0x1b, 0xfb, 0x30, - 0xd2, 0x30, 0xd0, 0x28, 0x21, 0xaa, 0x05, 0xdd, 0x3b, 0x48, 0x2c, 0x1b, - 0x6a, 0x2c, 0x21, 0xfa, 0x28, 0x19, 0x42, 0x0f, 0x00, 0x69, 0x00, 0x68, - 0x2c, 0x2b, 0x05, 0xbb, 0x3b, 0x00, 0x50, 0x7f, 0x06, 0xf0, 0xff, 0x82, - 0x10, 0x05, 0x90, 0x7f, 0x6a, 0x8c, 0x0a, 0x4f, 0x5c, 0x28, 0x13, 0xd4, - 0x06, 0x6b, 0x6a, 0x8c, 0x14, 0x5c, 0x05, 0xd8, 0x13, 0x3f, 0xff, 0xc8, - 0x00, 0xd5, 0x74, 0xc7, 0x50, 0xb4, 0x20, 0x00, 0x44, 0x5e, 0xbe, 0x20, - 0x09, 0xb9, 0x06, 0x18, 0x17, 0x08, 0x52, 0xff, 0x04, 0xd8, 0x0b, 0xbf, - 0xff, 0x25, 0x00, 0x04, 0x30, 0x04, 0x39, 0x04, 0x34, 0x04, 0x43, 0x82, - 0x28, 0x19, 0x11, 0x04, 0x38, 0x04, 0x45, 0x20, 0x0f, 0x40, 0xe5, 0x04, - 0xe8, 0x0b, 0x09, 0x14, 0xff, 0x10, 0x0d, 0x90, 0x7f, 0x09, 0x09, 0x70, - 0x01, 0x10, 0x40, 0x0a, 0x00, 0xcd, 0x21, 0x60, 0x0f, 0x00, 0x00, 0x0b, - 0x50, 0x00, 0xd8, 0x30, 0xf4, 0x30, 0xa7, 0x30, 0xb7, 0x30, 0x62, 0xe5, - 0x05, 0xe8, 0x0f, 0x98, 0x17, 0x65, 0x00, 0x76, 0x20, 0x03, 0x73, 0xf0, - 0x05, 0xa8, 0x0b, 0x00, 0x50, 0x7f, 0x06, 0x30, 0xfd, 0x10, 0x07, 0x10, - 0x7f, 0x6b, 0x8d, 0xf4, 0x7e, 0x30, 0xc0, 0x4e, 0x06, 0x52, 0xfb, 0x3f, - 0xff, 0xe4, 0xd5, 0xa0, 0xbc, 0x3c, 0xdc, 0xc2, 0x06, 0x18, 0x0f, 0x08, - 0x12, 0xff, 0x05, 0x98, 0x0b, 0xd8, 0x17, 0x35, 0x04, 0x5c, 0x32, 0x20, - 0x03, 0x48, 0x05, 0xa8, 0x0b, 0x08, 0x54, 0xff, 0x10, 0x0e, 0x50, 0x7f, - 0x0a, 0x0a, 0xa0, 0x70, 0x01, 0x11, 0x40, 0x0a, 0x0f, 0x22, 0x7e, 0x0e, - 0x00, 0x00, 0x00, 0x0c, 0x50, 0xe4, 0x30, 0xfc, 0x30, 0xb9, 0x00, 0x30, - 0xfb, 0x30, 0xca, 0x30, 0xc1, 0x30, 0xaf, 0x20, 0x30, 0xf3, 0x20, 0x09, - 0xbd, 0x30, 0xeb, 0x30, 0xce, 0xc5, 0x20, 0x0b, 0x05, 0x5d, 0x3b, 0x4a, - 0x00, 0xe1, 0x28, 0x13, 0x7a, 0x2f, 0xad, 0x54, 0x4e, 0x2f, 0xb9, 0x67, - 0x2b, 0x1d, 0x6b, 0x4b, 0x27, 0x2d, 0x00, 0x45, 0x53, 0x20, 0x15, 0x6f, - 0x00, 0x6c, 0x2c, 0x33, 0x6f, 0x20, 0x13, 0xf0, 0x04, 0x7b, 0x41, 0x01, - 0x70, 0x7f, 0x06, 0xf0, 0xff, 0x10, 0x04, 0x70, 0x7f, 0xa0, 0x52, 0x79, - 0x51, 0x00, 0x2d, 0x00, 0xb3, 0x7e, 0x70, 0x67, 0x54, 0x5b, 0x00, 0x2d, - 0x00, 0x22, 0x7d, 0x14, 0x5c, 0xfa, 0x8b, 0x20, 0x4b, 0x51, 0x05, 0x9b, - 0x23, 0x7c, 0xc5, 0xa4, 0xc2, 0x08, 0x00, 0xb1, 0xc0, 0xc9, 0xe4, 0xcf, - 0x94, 0xc1, 0x78, 0x1c, 0xb1, 0x6c, 0xd0, 0x05, 0xf8, 0x21, 0x09, 0x72, - 0xff, 0x04, 0x78, 0x35, 0x2f, 0x04, 0x00, 0x41, 0x04, 0x2d, 0x00, 0x1d, - 0x04, 0x30, 0x04, 0x00, 0x34, 0x04, 0x4c, 0x04, 0x3a, 0x04, 0x43, 0x04, - 0x41, 0x3d, 0x20, 0x0f, 0x21, 0x04, 0x3e, 0x04, 0x3b, 0x20, 0x0f, 0x5c, - 0x3d, 0x20, 0x07, 0x3a, 0x04, 0xc8, 0x31, 0x09, 0x74, 0xff, 0x10, 0x0c, - 0x70, 0x7f, 0x0b, 0x0b, 0xa2, 0x70, 0x01, 0x14, 0x40, 0x0a, 0x8b, 0x21, - 0x5a, 0x28, 0x17, 0x0d, 0x08, 0x50, 0xb3, 0x30, 0xde, 0x28, 0x19, 0xed, - 0x30, 0xe0, 0xab, 0x28, 0x1b, 0xa8, 0x28, 0x21, 0xc6, 0x28, 0x15, 0xb4, - 0x20, 0x0d, 0x05, 0x7d, 0x41, 0x54, 0x4b, 0x2c, 0x21, 0x6d, 0x28, 0x1b, - 0x72, 0x40, 0x07, 0x2d, 0x00, 0x57, 0x45, 0x48, 0x25, 0x74, 0x2f, 0xc5, - 0x72, 0x28, 0x25, 0x30, 0x1b, 0x04, 0xdb, 0x47, 0xe0, 0x01, 0x10, 0x7f, - 0x06, 0xf0, 0xff, 0x10, 0x04, 0xd0, 0x7f, 0xd1, 0x79, 0x6c, 0x9a, 0x57, - 0x00, 0x7f, 0xc6, 0x59, 0x2d, 0x00, 0xc3, 0x57, 0xaf, 0x00, 0x65, 0xf0, - 0x6c, 0x14, 0x5c, 0x08, 0x62, 0xc6, 0x40, 0x59, 0x05, 0x98, 0x17, 0x54, - 0xcf, 0xc8, 0xb9, 0x6c, 0xb8, 0x40, 0xd0, 0x28, 0x1d, 0x4c, 0xd1, 0x74, - 0xb9, 0xf0, 0xac, 0xf5, 0x05, 0xf8, 0x17, 0x09, 0x12, 0xff, 0x04, 0x78, - 0x11, 0x5f, 0xff, 0x1a, 0x28, 0x01, 0x3c, 0x28, 0x15, 0x44, 0x40, 0x40, - 0x07, 0x2d, 0x00, 0x2d, 0x28, 0x27, 0x42, 0x04, 0x5c, 0x35, 0x20, 0x0f, - 0x33, 0x40, 0x19, 0x0f, 0x14, 0xff, 0x10, 0x0c, 0xd0, 0x7f, 0x0c, 0x0c, - 0xa0, 0x70, 0x01, 0x0a, 0x40, 0x0a, 0xd0, 0x21, 0x1c, 0x0d, 0x00, 0x08, - 0x00, 0x0e, 0x50, 0xce, 0x28, 0x15, 0xb0, 0x30, 0xe9, 0xb1, 0x28, 0x1b, - 0xc9, 0x05, 0x88, 0x0b, 0xbf, 0xee, 0x4e, 0x00, 0xf3, 0x2f, 0xa5, 0x5e, - 0x72, 0x2f, 0xb5, 0x64, 0x04, 0xe8, 0x01, 0x01, 0x10, 0x7f, 0x06, 0x10, - 0xfd, 0x10, 0x07, 0x10, 0x7f, 0xfa, 0x01, 0x8b, 0x3c, 0x68, 0xc9, 0x62, - 0xb7, 0x5f, 0x06, 0x32, 0xfb, 0x80, 0x3f, 0xff, 0x78, 0xb1, 0xf8, 0xad, - 0x7c, 0xb7, 0xdc, 0x7a, 0xb4, 0x05, 0xf8, 0x0f, 0x08, 0x32, 0xff, 0x04, - 0xd8, 0x01, 0x00, 0x5f, 0xf5, 0x1d, 0x28, 0x17, 0x33, 0x8e, 0x28, 0x15, - 0x30, 0x04, 0x34, 0x05, 0x08, 0x03, 0x08, 0xf4, 0xff, 0x10, 0x0e, 0x30, - 0x7f, 0x0d, 0x50, 0x0d, 0x70, 0x01, 0x0b, 0x40, 0x0a, 0x35, 0x22, 0x17, - 0x0e, 0x00, 0x00, 0x00, 0x0f, 0x50, 0xda, 0x30, 0xb7, 0x30, 0x1a, 0xe5, - 0x30, 0xc8, 0x06, 0x48, 0x13, 0x3f, 0xfc, 0x50, 0x2f, 0x99, 0x73, 0xf8, - 0x2f, 0x9f, 0x06, 0x38, 0x13, 0xb0, 0x7f, 0x06, 0x56, 0x15, 0x10, 0x07, - 0x10, 0x7f, 0x69, 0x4f, 0xaf, 0x60, 0x65, 0x06, 0x78, 0x13, 0x3f, 0xff, - 0x98, 0xd3, 0x88, 0xc2, 0xb8, 0x78, 0xd2, 0x06, 0x78, 0x15, 0x07, 0x92, - 0xff, 0x06, 0x38, 0x13, 0x3f, 0xff, 0x1f, 0x04, 0x35, 0x0e, 0x04, 0x48, - 0x04, 0x42, 0x06, 0x48, 0x13, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0x70, 0x7f, - 0x0e, 0x50, 0x0e, 0x70, 0x01, 0x0c, 0x40, 0x0a, 0xc5, 0x21, 0x91, 0x0d, - 0x00, 0x00, 0x00, 0x10, 0x50, 0xb7, 0x30, 0xe7, 0x30, 0x15, 0xe2, 0x30, - 0xb8, 0x06, 0x88, 0x17, 0x53, 0x2c, 0x1f, 0x6d, 0x2c, 0x23, 0x7c, 0x67, - 0x2b, 0x21, 0x06, 0x3b, 0x2f, 0xb0, 0x7f, 0x06, 0xf0, 0xff, 0x10, 0x06, - 0x30, 0x7f, 0xcd, 0x7e, 0x08, 0xab, 0x83, 0x09, 0x54, 0x06, 0x98, 0x19, - 0xfc, 0xc1, 0xa8, 0x1c, 0xba, 0xc0, 0xc9, 0x06, 0x98, 0x17, 0x07, 0xb2, - 0xff, 0x06, 0x38, 0x1b, 0x28, 0x04, 0x11, 0x3e, 0x04, 0x3c, 0x20, 0x03, - 0x34, 0x04, 0x4c, 0x06, 0x48, 0x1b, 0xca, 0x07, 0xb4, 0xff, 0x10, 0x0e, - 0x30, 0x7f, 0x0f, 0x0f, 0x70, 0x01, 0x13, 0x40, 0x0a, 0xf6, 0x00, 0x20, - 0xa6, 0x0c, 0x00, 0x00, 0x11, 0x50, 0xb5, 0x00, 0x30, 0xdc, 0x30, 0xeb, - 0x30, 0xc1, 0x30, 0xfb, 0x00, 0x30, 0xb5, 0x30, 0xc8, 0x30, 0xde, 0x30, - 0xfc, 0x80, 0x20, 0x0d, 0xfb, 0x30, 0xd9, 0x30, 0xec, 0x30, 0xb0, 0x8a, - 0x05, 0x48, 0x2b, 0x53, 0x00, 0x7a, 0x2c, 0x1f, 0x62, 0x2c, 0x29, 0x6c, - 0x8a, 0x2c, 0x2f, 0x73, 0x00, 0x2d, 0x60, 0x11, 0x74, 0x28, 0x2d, 0xe1, - 0x2a, 0x00, 0x72, 0x20, 0x0f, 0x42, 0x2f, 0xd1, 0x72, 0x2f, 0xd5, 0x67, - 0xf0, 0x04, 0x4b, 0x53, 0x01, 0xb0, 0x7f, 0x06, 0xf0, 0xff, 0x10, 0x04, - 0x30, 0x7f, 0x22, 0x7d, 0x5a, 0x53, 0x04, 0x14, 0x5c, 0x47, 0x59, 0x2d, - 0x20, 0x09, 0x79, 0x72, 0x00, 0x6c, 0x9a, 0x14, 0x5c, 0x2d, 0x00, 0x1d, - 0x8d, 0x08, 0xc9, 0x62, 0x3c, 0x68, 0x05, 0x5b, 0x29, 0x1c, 0xc1, 0xfc, - 0x00, 0xbc, 0x20, 0xce, 0x1c, 0xc1, 0xb8, 0xd2, 0xc8, 0x00, 0xb9, 0x74, - 0xb9, 0xa0, 0xbc, 0x08, 0xb8, 0xf8, 0x70, 0xad, 0x05, 0xb8, 0x25, 0x09, - 0xb2, 0xff, 0x04, 0x38, 0x37, 0x21, 0x04, 0x30, 0x04, 0x51, 0x31, 0x28, - 0x1b, 0x3b, 0x28, 0x17, 0x47, 0x04, 0x2d, 0x40, 0x0f, 0x44, 0x42, 0x28, - 0x29, 0x30, 0x04, 0x40, 0x20, 0x0d, 0x11, 0x04, 0x47, 0x35, 0x20, 0x07, - 0x35, 0x04, 0x33, 0x04, 0x88, 0x33, 0x09, 0xb4, 0xff, 0x10, 0x0c, 0x30, - 0x7f, 0x28, 0x10, 0x10, 0x70, 0x01, 0x0d, 0x40, 0x0a, 0x1a, 0x22, 0x72, - 0x02, 0x0f, 0x00, 0x00, 0x12, 0x50, 0xc8, 0x28, 0x15, 0xca, 0xd7, 0x05, - 0x48, 0x01, 0x00, 0x5f, 0xff, 0x54, 0x48, 0x11, 0x6e, 0x2c, 0x1f, 0x06, - 0x3b, 0x2d, 0xb0, 0x7f, 0xc0, 0x06, 0xf0, 0xff, 0x10, 0x06, 0x50, 0x7f, - 0x58, 0x62, 0x14, 0x5c, 0x59, 0x74, 0x87, 0x06, 0x92, 0xff, 0xa8, 0xd1, - 0x08, 0xb1, 0x05, 0xb8, 0x07, 0x08, 0x92, 0xff, 0x04, 0x37, 0xf5, 0xdc, - 0x01, 0x2a, 0x17, 0x68, 0x13, 0x3d, 0x28, 0x1f, 0x0e, 0xd4, 0xff, 0x10, - 0x0e, 0x50, 0x7f, 0x11, 0x11, 0xa0, 0x70, 0x01, 0x0e, 0x40, 0x0a, 0xf5, - 0x20, 0x4d, 0x0d, 0x00, 0x00, 0x00, 0x13, 0x50, 0xf4, 0x30, 0xa1, 0x30, - 0xb7, 0x2b, 0x30, 0xe5, 0x06, 0x88, 0x19, 0x56, 0x2f, 0xad, 0x73, 0x06, - 0x68, 0x13, 0x90, 0x7f, 0xc2, 0x06, 0x79, 0x15, 0x10, 0x07, 0x10, 0x7f, - 0x83, 0x6c, 0xc0, 0x4e, 0x06, 0x9b, 0x15, 0x00, 0x07, 0x00, 0x84, 0xbc, - 0xdc, 0xc2, 0x06, 0xb8, 0x17, 0x07, 0x52, 0xff, 0x06, 0x58, 0x13, 0xae, - 0x3f, 0xff, 0x12, 0x28, 0x0f, 0x48, 0x06, 0x48, 0x11, 0x07, 0xb4, 0xff, - 0x10, 0x0e, 0x90, 0x7f, 0x12, 0x50, 0x12, 0x70, 0x01, 0x06, 0x40, 0x0a, - 0x96, 0x21, 0xd2, 0x0b, 0x00, 0x00, 0x00, 0x14, 0x50, 0xd9, 0x30, 0xb9, - 0x30, 0x01, 0xd7, 0x30, 0xec, 0x30, 0xfc, 0x30, 0xe0, 0x06, 0x48, 0x1b, - 0x10, 0x56, 0x00, 0x65, 0x28, 0x17, 0x7a, 0x00, 0x70, 0x00, 0x07, 0x72, - 0x00, 0xe9, 0x00, 0x6d, 0x06, 0x0b, 0x35, 0xf0, 0x7f, 0x06, 0xf0, 0xff, - 0x80, 0x10, 0x05, 0xf0, 0x7f, 0xf4, 0x7e, 0xaf, 0x65, 0x6e, 0x66, 0xf7, - 0x10, 0x96, 0xc6, 0x59, 0x06, 0x5b, 0x19, 0xa0, 0xbc, 0xa4, 0xc2, 0x0e, - 0x04, 0xd5, 0x18, 0xb8, 0x06, 0x78, 0x1b, 0x07, 0xf2, 0xff, 0x05, 0xf8, - 0x21, 0x12, 0x00, 0x04, 0x35, 0x04, 0x41, 0x04, 0x3f, 0x04, 0x40, 0xb9, - 0x20, 0x07, 0x3c, 0x06, 0x28, 0x1f, 0x07, 0xf4, 0xff, 0x10, 0x0d, 0xf0, - 0x7f, 0x13, 0x13, 0x70, 0x01, 0x40, 0x07, 0x40, 0x0a, 0x7e, 0x21, 0xbd, - 0x0c, 0x00, 0x00, 0x06, 0x15, 0x50, 0xb6, 0x30, 0xe9, 0x06, 0x48, 0x0f, - 0x7f, 0xff, 0x5a, 0xbe, 0x2f, 0xaf, 0x6c, 0x2f, 0xb3, 0x06, 0x7b, 0x31, - 0x70, 0x7f, 0x06, 0xf0, 0xff, 0x10, 0x06, 0x70, 0x7f, 0x50, 0x10, 0x4f, - 0x1b, 0x6d, 0x06, 0xb2, 0xff, 0x08, 0xc8, 0xec, 0xb7, 0xf0, 0x06, 0x78, - 0x13, 0x07, 0xb2, 0xff, 0x05, 0xf8, 0x0f, 0x7f, 0xff, 0x17, 0x04, 0x30, - 0x04, 0x72, 0x3b, 0x20, 0x03, 0x0e, 0xf4, 0xff, 0x10, 0x0e, 0x70, 0x7f, - 0x14, 0x14, 0x70, 0x01, 0x09, 0x84, 0x40, 0x0a, 0x4f, 0x21, 0xf9, 0x0b, - 0x00, 0x3f, 0xff, 0x01, 0x05, 0x44, 0x05, 0x20, 0x01, 0x01, 0x01, 0x04, - 0x40, 0x05, 0x01, 0x01, 0x4a, 0x02, 0x30, 0x04, 0x01, 0x02, 0x20, 0x06, - 0x02, 0x20, 0x05, 0x02, 0x25, 0x02, 0x03, 0x30, 0x04, 0x02, 0x03, 0x20, - 0x06, 0x01, 0x20, 0x05, 0x12, 0x03, 0x03, 0x04, 0x30, 0x04, 0x03, 0x04, - 0x40, 0x06, 0x04, 0x0e, 0x04, 0x04, 0x04, 0x05, 0x30, 0x04, 0x30, 0x3c, - 0x50, 0x05, 0x05, 0x29, 0x06, 0x06, 0x70, 0x01, 0x12, 0x40, 0x0a, 0x07, - 0x07, 0x70, 0x01, 0x49, 0x0f, 0x40, 0x0a, 0x08, 0x08, 0xd0, 0x01, 0x09, - 0x09, 0x70, 0x01, 0x4a, 0x10, 0x40, 0x0a, 0x0a, 0x0a, 0x70, 0x01, 0x11, - 0x40, 0x0a, 0x0b, 0x52, 0x0b, 0x70, 0x01, 0x14, 0x40, 0x0a, 0x0c, 0x0c, - 0x70, 0x01, 0x0a, 0x94, 0x40, 0x0a, 0x0d, 0x0d, 0x70, 0x01, 0x0b, 0x40, - 0x0a, 0x0e, 0x0e, 0xa5, 0x70, 0x01, 0x0c, 0x40, 0x0a, 0x0f, 0x0f, 0x70, - 0x01, 0x13, 0x40, 0x0a, 0x29, 0x10, 0x10, 0x70, 0x01, 0x0d, 0x40, 0x0a, - 0x11, 0x11, 0x70, 0x01, 0x4b, 0x0e, 0x40, 0x0a, 0x12, 0x12, 0x70, 0x01, - 0x06, 0x40, 0x0a, 0xf9, 0x5f, 0xc0, 0xf1, 0x57, 0x3f, 0xf0, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x51, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x9b, 0x2d, 0x6f, - 0xf0, 0x00, 0x00, 0x00, 0x01, 0x51, 0xa2, 0x30, 0xa4, 0x30, 0xb9, 0x01, - 0x30, 0xe9, 0x30, 0xf3, 0x30, 0xc9, 0x30, 0x06, 0x38, 0x21, 0x00, 0x49, - 0x00, 0x63, 0x00, 0x65, 0x00, 0x6c, 0x00, 0x05, 0x61, 0x00, 0x6e, 0x00, - 0x64, 0x06, 0x40, 0x7f, 0x73, 0x80, 0x7d, 0x75, 0x65, 0x06, 0xe0, 0x7f, - 0x06, 0x51, 0x7f, 0x90, 0xff, 0x61, 0x06, 0xe1, 0x7f, 0x69, 0x06, 0x20, - 0x81, 0x08, 0xb0, 0x51, 0x9b, 0x5c, 0x06, 0xbb, 0x19, 0x44, 0xc5, 0x74, - 0x01, 0xc7, 0xac, 0xc2, 0x80, 0xb7, 0xdc, 0xb4, 0x06, 0x5b, 0x9f, 0x1a, - 0x49, 0x00, 0x4a, 0x06, 0xc2, 0x81, 0x53, 0x7f, 0xe2, 0x06, 0x81, 0xff, - 0x18, 0x00, 0x04, 0x41, 0x04, 0x3b, 0x04, 0x30, 0x04, 0x3d, 0x01, 0x04, - 0x34, 0x04, 0x38, 0x04, 0x4f, 0x04, 0x0e, 0x14, 0xff, 0x9e, 0x10, 0x0e, - 0xd0, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x44, 0xdc, 0x00, 0x11, 0x1a, 0x00, 0x00, - 0x30, 0x01, 0x52, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xee, 0x25, 0x8d, 0xfb, 0x00, 0x00, 0x00, - 0x02, 0x52, 0xc0, 0x30, 0xd6, 0x30, 0xea, 0x04, 0x30, 0xf3, 0x30, 0xde, - 0x5d, 0x06, 0x58, 0x1f, 0x44, 0x00, 0x00, 0x75, 0x00, 0x62, 0x00, 0x6c, - 0x00, 0x69, 0x00, 0x54, 0x6e, 0x10, 0x07, 0x00, 0x7f, 0x6f, 0x06, 0xa1, - 0xff, 0xed, 0x06, 0x61, 0xff, 0xfd, 0x90, 0x00, 0xcf, 0x67, 0x97, 0x67, - 0x30, 0x57, 0x3a, 0x53, 0x81, 0x06, 0x5b, 0x1f, 0x54, 0xb3, 0x14, 0xbe, - 0xb0, 0xb9, 0x06, 0x9b, 0x9b, 0x80, 0x0e, 0xf3, 0x7f, 0x14, 0x04, 0x43, - 0x04, 0x31, 0x04, 0x3b, 0x06, 0x04, 0x38, 0x04, 0x3d, 0x04, 0x10, 0x0e, - 0xf4, 0xff, 0x0e, 0x36, 0xff, 0x01, 0x00, 0x1a, 0x06, 0x06, 0x06, 0x06, - 0x01, 0x01, 0x06, 0x01, 0x06, 0x03, 0x1a, 0x01, 0x01, 0x01, 0x01, 0x58, - 0x17, 0x00, 0x0a, 0x52, 0xab, 0x30, 0xfc, 0x30, 0xed, 0x30, 0x54, 0xa6, - 0x06, 0x88, 0x17, 0x43, 0x26, 0x8d, 0x75, 0x28, 0x13, 0x74, 0x00, 0x11, - 0x79, 0x00, 0x20, 0x20, 0x0d, 0x61, 0x00, 0x72, 0x28, 0x25, 0x1c, 0x6f, - 0x00, 0x77, 0x05, 0x80, 0x7f, 0x05, 0xf0, 0x71, 0x10, 0x07, 0xd0, 0x7f, - 0x61, 0x53, 0x08, 0x1b, 0x6d, 0xe1, 0x90, 0x06, 0x9f, 0xb3, 0x7c, 0xce, - 0x5c, 0x01, 0xb8, 0xb0, 0xc6, 0x20, 0x00, 0xfc, 0xc8, 0x06, 0x73, 0x7f, - 0x82, 0x07, 0x92, 0xff, 0x20, 0x00, 0x28, 0x00, 0x63, 0x2a, 0x9d, 0x6e, - 0x2a, 0x00, 0x64, 0x24, 0x07, 0x64, 0x2a, 0xa7, 0x29, 0x05, 0x0f, 0xcc, - 0x1a, 0x0b, 0x04, 0x30, 0x04, 0x40, 0x28, 0x17, 0x3e, 0x28, 0x1f, 0x0e, - 0x54, 0xff, 0xa5, 0x10, 0x0e, 0xd0, 0x7f, 0x02, 0x38, 0x0c, 0x01, 0x02, - 0x20, 0x06, 0x05, 0x20, 0x05, 0x04, 0x02, 0x02, 0x91, 0x25, 0x13, 0x28, - 0x17, 0x0b, 0x52, 0x01, 0xad, 0x30, 0xe3, 0x30, 0xd0, 0x30, 0xf3, 0x07, - 0xa8, 0x17, 0x78, 0x76, 0x28, 0x1b, 0x05, 0x9f, 0xbb, 0x06, 0x10, 0x71, - 0x10, 0x07, 0xd0, 0x7f, 0x61, 0x53, 0x87, 0x43, 0x65, 0x06, 0xb8, 0x17, - 0x90, 0xce, 0x88, 0xbc, 0x06, 0x98, 0x15, 0x07, 0xb2, 0xff, 0xd7, 0x06, - 0x38, 0x15, 0x58, 0x17, 0x32, 0x28, 0x1b, 0x3d, 0x06, 0x48, 0x15, 0x07, - 0x34, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x4a, 0x03, 0x38, 0x0c, 0x02, 0x03, - 0x20, 0x06, 0x04, 0x20, 0x05, 0x03, 0x00, 0x03, 0x64, 0x26, 0xc5, 0xfa, - 0x00, 0x00, 0x0c, 0x03, 0x52, 0xaf, 0x30, 0xec, 0x30, 0xa2, 0x06, 0x88, - 0x15, 0x00, 0x1b, 0x2f, 0x5c, 0x6c, 0x4f, 0xbf, 0x65, 0x05, 0xaf, 0xaf, - 0x05, 0xf0, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0x4b, 0x51, 0x08, 0xb1, 0x83, - 0x14, 0x5c, 0x06, 0x98, 0x19, 0x74, 0xd0, 0x08, 0x1c, 0xb8, 0xb4, 0xc5, - 0x06, 0x98, 0x19, 0x07, 0x92, 0xff, 0x06, 0x78, 0x17, 0x3b, 0x04, 0x1d, - 0x4d, 0x04, 0x40, 0x06, 0x68, 0x15, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xd0, - 0x7f, 0x04, 0x38, 0x0c, 0x28, 0x03, 0x04, 0x20, 0x06, 0x09, 0x20, 0x05, - 0x04, 0x04, 0x94, 0x00, 0x25, 0x9e, 0xf9, 0x00, 0x00, 0x0d, 0x52, 0xb3, - 0x0a, 0x30, 0xfc, 0x30, 0xaf, 0x07, 0xa8, 0x17, 0x6f, 0x28, 0x15, 0x6b, - 0xe1, 0x05, 0xeb, 0xaf, 0x05, 0xd0, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0xd1, - 0x79, 0x4b, 0x51, 0x06, 0x98, 0x15, 0x03, 0x00, 0x00, 0x54, 0xcf, 0x6c, - 0xd0, 0x06, 0x98, 0x15, 0x07, 0x92, 0xff, 0xd7, 0x06, 0x58, 0x15, 0x38, - 0x17, 0x3e, 0x28, 0x15, 0x3a, 0x07, 0x88, 0x17, 0x06, 0x34, 0xff, 0x10, - 0x0e, 0xb0, 0x7f, 0x4a, 0x05, 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x0a, - 0x20, 0x05, 0x05, 0x08, 0x05, 0xe7, 0x24, 0xfb, 0x28, 0x17, 0x0e, 0x52, - 0xc9, 0x0b, 0x30, 0xcb, 0x30, 0xb4, 0x28, 0x1b, 0xeb, 0x06, 0x68, 0x1b, - 0xdb, 0x2f, 0x45, 0x44, 0x4c, 0x2f, 0x65, 0x00, 0x67, 0x2f, 0xc3, 0x6c, - 0x05, 0x4f, 0xc1, 0xc0, 0x06, 0x10, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0x1a, - 0x59, 0x85, 0x51, 0xa0, 0x52, 0x20, 0x14, 0x5c, 0x06, 0x78, 0x1b, 0xc4, - 0xb3, 0xc8, 0xb2, 0xe8, 0x74, 0xac, 0x06, 0x98, 0x19, 0x07, 0xd2, 0xff, - 0x06, 0x18, 0x1d, 0x14, 0x28, 0x17, 0x3d, 0x04, 0x17, 0x35, 0x04, 0x33, - 0x28, 0x1f, 0x3b, 0x06, 0x28, 0x1d, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, - 0x7f, 0x4a, 0x06, 0x38, 0x0c, 0x05, 0x06, 0x20, 0x06, 0x02, 0x20, 0x05, - 0x06, 0x00, 0x06, 0xfe, 0x26, 0xaf, 0xfa, 0x00, 0x00, 0x0f, 0x41, 0x52, - 0x58, 0x13, 0xa6, 0x30, 0xa7, 0x30, 0xa4, 0x06, 0x48, 0x19, 0xab, 0xdb, - 0x2f, 0x47, 0x48, 0x0f, 0x77, 0x2c, 0x31, 0x79, 0x05, 0x6f, 0xc1, 0x06, - 0x10, 0x71, 0x81, 0x10, 0x07, 0xd0, 0x7f, 0x08, 0x62, 0x14, 0x5c, 0xe6, - 0x97, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0xe8, 0xac, 0xe8, 0xc6, 0x74, - 0xc7, 0xe2, 0x06, 0x98, 0x17, 0x07, 0xb2, 0xff, 0x06, 0x18, 0x15, 0x00, - 0x00, 0x13, 0x48, 0x0f, 0x43, 0x0e, 0x04, 0x4d, 0x04, 0x39, 0x06, 0x28, - 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x07, 0x14, 0x06, 0x07, - 0x07, 0x50, 0x01, 0x01, 0x40, 0x09, 0xe2, 0x25, 0x00, 0x92, 0xf9, 0x00, - 0x00, 0x10, 0x52, 0xb1, 0x30, 0x75, 0xea, 0x28, 0x19, 0x06, 0x38, 0x11, - 0x00, 0x3b, 0x2f, 0x4b, 0x2f, 0xb9, 0x72, 0x20, 0x01, 0xe1, 0x05, 0x97, - 0xa3, 0x06, 0x10, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0xef, 0x51, 0xcc, 0x91, - 0x06, 0x98, 0x15, 0x8e, 0x2f, 0xff, 0xcf, 0xac, 0xb9, 0x06, 0x98, 0x15, - 0x07, 0xb2, 0xff, 0x06, 0x38, 0x15, 0x00, 0x02, 0x00, 0x1a, 0x04, 0x35, - 0x04, 0x40, 0x20, 0x01, 0x38, 0xe1, 0x06, 0x48, 0x15, 0x07, 0x14, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x08, 0x07, 0x08, 0x08, 0x50, 0x01, 0x44, 0x06, - 0x40, 0x09, 0x2b, 0x25, 0x1b, 0x28, 0x17, 0x11, 0x52, 0x01, 0xad, 0x30, - 0xeb, 0x30, 0xc7, 0x30, 0xa2, 0x06, 0x88, 0x19, 0xb7, 0xf8, 0x17, 0x69, - 0x2f, 0xbd, 0x3c, 0x2d, 0x72, 0x28, 0x21, 0x05, 0x58, 0x17, 0x05, 0xf0, - 0x71, 0x80, 0x10, 0x07, 0xd0, 0x7f, 0xfa, 0x57, 0x14, 0x5c, 0xe3, 0x4e, - 0x14, 0x40, 0x5c, 0x06, 0x78, 0x1b, 0xac, 0xd0, 0x70, 0xb3, 0xb4, 0xc5, - 0xe8, 0x06, 0x98, 0x19, 0x07, 0xd2, 0xff, 0x06, 0x18, 0x1b, 0x1a, 0x28, - 0x11, 0x3b, 0x04, 0x34, 0x38, 0x04, 0x4d, 0x28, 0x1d, 0x0e, 0x34, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x09, 0x08, 0x09, 0x50, 0x09, 0x50, 0x01, 0x07, - 0x40, 0x09, 0xd7, 0x25, 0x43, 0xfb, 0x10, 0x00, 0x00, 0x12, 0x48, 0x17, - 0xb1, 0x30, 0xcb, 0x30, 0x6b, 0xfc, 0x06, 0x68, 0x19, 0x00, 0x38, 0x17, - 0x6b, 0x2f, 0xc3, 0x6e, 0x2c, 0x37, 0x05, 0x3f, 0xc3, 0xe2, 0x06, 0x10, - 0x71, 0x10, 0x07, 0xd0, 0x7f, 0x38, 0x17, 0xaf, 0x80, 0x3c, 0x06, 0xa8, - 0x17, 0x00, 0x1e, 0xcf, 0xc8, 0xb2, 0x06, 0xf8, 0x17, 0x07, 0x92, 0xff, - 0x05, 0xf8, 0x19, 0x58, 0x17, 0x3a, 0x0b, 0x04, 0x35, 0x04, 0x3d, 0x20, - 0x01, 0x38, 0x06, 0x08, 0x1b, 0x06, 0xf4, 0xff, 0x85, 0x10, 0x0e, 0xf0, - 0x7f, 0x0a, 0x09, 0x0a, 0x0a, 0x50, 0x01, 0x08, 0x40, 0x09, 0x00, 0x70, - 0x25, 0xd8, 0xfa, 0x00, 0x00, 0x13, 0x52, 0x46, 0xea, 0x28, 0x11, 0xb7, - 0x30, 0xe5, 0x06, 0x68, 0x15, 0xfb, 0x2f, 0x4c, 0xae, 0x2f, 0xb7, 0x6f, - 0x2f, 0xc1, 0x73, 0x05, 0x8f, 0xb9, 0x06, 0x10, 0x71, 0x10, 0x07, 0xd0, - 0x7f, 0xb1, 0x06, 0x83, 0x0a, 0x4f, 0xc0, 0x4e, 0x06, 0x78, 0x15, 0x28, - 0x17, 0xb9, 0x3d, 0xdc, 0xc2, 0x06, 0x98, 0x15, 0x07, 0xb2, 0xff, 0x05, - 0xf8, 0x11, 0x5f, 0xff, 0x1b, 0x28, 0x17, 0x07, 0x38, 0x04, 0x48, 0x04, - 0x4c, 0x06, 0x08, 0x11, 0x07, 0x54, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0a, - 0x0b, 0x0a, 0x0b, 0x0b, 0x50, 0x01, 0x0c, 0x40, 0x09, 0xb5, 0x28, 0x25, - 0xcf, 0x28, 0x17, 0x14, 0x48, 0x17, 0xc8, 0x30, 0xea, 0x34, 0x30, 0xe0, - 0x06, 0x68, 0x19, 0xf8, 0x17, 0x65, 0x2f, 0xbf, 0x74, 0x00, 0x5c, 0x72, - 0x2f, 0xc5, 0x6d, 0x05, 0x68, 0x17, 0x05, 0xf0, 0x71, 0x10, 0x07, 0xd0, - 0x7f, 0x29, 0x52, 0x02, 0x79, 0x72, 0xcc, 0x91, 0xc6, 0x59, 0x06, 0x78, - 0x19, 0xac, 0x07, 0xb9, 0xb8, 0xd2, 0xbc, 0xb9, 0x06, 0x98, 0x19, 0x07, - 0xd2, 0xff, 0x06, 0x18, 0x1b, 0x8b, 0x38, 0x17, 0x42, 0x04, 0x40, 0x28, - 0x1d, 0x3c, 0x06, 0x48, 0x19, 0x06, 0xf4, 0xff, 0x85, 0x10, 0x0e, 0xf0, - 0x7f, 0x0c, 0x0b, 0x0c, 0x0c, 0x50, 0x01, 0x0e, 0x40, 0x09, 0x15, 0x5c, - 0x26, 0x40, 0x28, 0x17, 0x15, 0x28, 0x17, 0xe0, 0x28, 0x15, 0x1a, 0xc3, - 0x30, 0xaf, 0x07, 0x68, 0x17, 0x38, 0x0f, 0x65, 0x48, 0x17, 0x63, 0x38, - 0x00, 0x6b, 0x05, 0x4f, 0xaf, 0x05, 0xf0, 0x71, 0x10, 0x07, 0xd0, 0x7f, - 0x29, 0x52, 0xd8, 0x04, 0x9e, 0xcc, 0x91, 0x4b, 0x51, 0x06, 0x98, 0x17, - 0x38, 0xba, 0x78, 0xad, 0x06, 0xc8, 0x17, 0x07, 0xd2, 0xff, 0x05, 0xf8, - 0x19, 0x38, 0x17, 0x3c, 0x04, 0x35, 0xb8, 0x48, 0x19, 0x3a, 0x06, 0x28, - 0x19, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0d, 0x0c, 0x0d, 0x60, - 0x0d, 0x60, 0x01, 0x40, 0x09, 0x73, 0x25, 0xdf, 0xf9, 0x00, 0x00, 0x00, - 0x16, 0x52, 0xed, 0x30, 0xf3, 0x30, 0xb0, 0x00, 0x30, 0xd5, 0x30, 0xa9, - 0x30, 0xfc, 0x30, 0xc9, 0xe2, 0x06, 0x28, 0x1b, 0xfb, 0x2f, 0x3c, 0x2b, - 0x67, 0x00, 0x66, 0x2c, 0x33, 0x72, 0xf0, 0x2c, 0x33, 0x05, 0x3f, 0xaf, - 0x05, 0xf0, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0x17, 0x67, 0x8f, 0x79, 0x20, - 0xb7, 0x5f, 0x06, 0x78, 0x15, 0x00, 0x00, 0x71, 0xb8, 0x7c, 0x1c, 0xd3, - 0xdc, 0xb4, 0x06, 0xb8, 0x17, 0x07, 0xd2, 0xff, 0x06, 0x18, 0x17, 0x3e, - 0x04, 0x04, 0x3d, 0x04, 0x33, 0x04, 0x44, 0x20, 0x07, 0x40, 0x04, 0x70, - 0x34, 0x06, 0x08, 0x19, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0e, - 0x0d, 0x0e, 0x0e, 0xa1, 0x50, 0x01, 0x0f, 0x40, 0x09, 0x34, 0x26, 0x75, - 0xfa, 0x25, 0x15, 0x03, 0x52, 0xe9, 0x30, 0xa6, 0x30, 0xb9, 0x06, 0x28, - 0x0f, 0x00, 0x98, 0x17, 0x5c, 0x75, 0x2b, 0x3b, 0x68, 0x05, 0xc7, 0x97, - 0x05, 0xd0, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0xb3, 0x52, 0x20, 0xaf, 0x65, - 0x06, 0x98, 0x15, 0x00, 0x00, 0x7c, 0xb7, 0xb0, 0x1e, 0xc6, 0xa4, 0xc2, - 0x06, 0xd8, 0x17, 0x07, 0x52, 0xff, 0x05, 0xf8, 0x11, 0x78, 0x17, 0x30, - 0x0e, 0x04, 0x43, 0x04, 0x42, 0x06, 0x08, 0x0f, 0x07, 0x74, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x0f, 0x14, 0x0e, 0x0f, 0x0f, 0x50, 0x01, 0x0b, 0x40, - 0x09, 0x68, 0x26, 0x00, 0x73, 0xfb, 0x00, 0x00, 0x18, 0x52, 0xe1, 0x30, - 0x06, 0xa4, 0x30, 0xe8, 0x30, 0xfc, 0x06, 0x88, 0x19, 0xdb, 0x2f, 0x4d, - 0xbc, 0x2c, 0x23, 0x79, 0x2f, 0xc1, 0x05, 0x9f, 0xb6, 0x06, 0x10, 0x71, - 0x10, 0x07, 0xd0, 0x7f, 0x85, 0x68, 0x20, 0x65, 0x59, 0x06, 0xb8, 0x17, - 0x54, 0xba, 0x74, 0xc7, 0x24, 0x70, 0xc6, 0x06, 0x98, 0x17, 0x07, 0x72, - 0xff, 0x06, 0x58, 0x15, 0x00, 0x00, 0x1c, 0x04, 0x07, 0x35, 0x04, 0x39, - 0x04, 0x3e, 0x07, 0x68, 0x17, 0x06, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x0c, 0x10, 0x0f, 0x10, 0x10, 0x60, 0x01, 0x40, 0x09, 0x4d, 0x26, 0x01, - 0x64, 0xf9, 0x00, 0x00, 0x19, 0x52, 0xdf, 0x28, 0x13, 0x6f, 0xb9, 0x06, - 0x88, 0x15, 0x00, 0x18, 0x17, 0x65, 0x2c, 0x2b, 0x05, 0xbf, 0xbd, 0x06, - 0x10, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0x08, 0x73, 0x7c, 0xaf, 0x65, 0x06, - 0xb8, 0x17, 0xf8, 0xbb, 0xa4, 0x70, 0xc2, 0x06, 0x98, 0x15, 0x07, 0xb2, - 0xff, 0x06, 0x58, 0x19, 0x1c, 0x04, 0x38, 0x04, 0x70, 0x42, 0x06, 0x88, - 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x11, 0x10, 0x11, 0x11, - 0xc0, 0x60, 0x01, 0x40, 0x09, 0x27, 0x26, 0x40, 0xfb, 0x00, 0x00, 0x00, - 0x1a, 0x52, 0xe2, 0x30, 0xca, 0x30, 0xcf, 0x30, 0x71, 0xf3, 0x06, 0x88, - 0x19, 0xfb, 0x2f, 0x3c, 0x31, 0x61, 0x00, 0x67, 0x28, 0x19, 0x78, 0x61, - 0x2c, 0x3b, 0x05, 0x3f, 0xaf, 0x05, 0xf0, 0x71, 0x10, 0x07, 0xd0, 0x7f, - 0xab, 0x83, 0xb3, 0x10, 0x7e, 0xa8, 0x4e, 0x06, 0x98, 0x19, 0xa8, 0xba, - 0x08, 0xb1, 0x38, 0x78, 0xd5, 0x06, 0x98, 0x19, 0x07, 0xf2, 0xff, 0x05, - 0xf8, 0x1d, 0x1c, 0x04, 0x3e, 0x02, 0x04, 0x3d, 0x04, 0x30, 0x04, 0x45, - 0x20, 0x03, 0x3d, 0xe1, 0x06, 0x28, 0x1f, 0x06, 0xf4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x12, 0x11, 0x12, 0x12, 0x60, 0x01, 0x88, 0x40, 0x09, 0x93, - 0x26, 0x0c, 0x28, 0x17, 0x1b, 0x52, 0xaa, 0x00, 0x30, 0xd5, 0x30, 0xa1, - 0x30, 0xea, 0x30, 0xfc, 0xc4, 0x06, 0x68, 0x19, 0xdb, 0x2f, 0x4f, 0x00, - 0x66, 0x20, 0x01, 0x61, 0x00, 0x78, 0x6c, 0x2b, 0x3d, 0x05, 0x5f, 0xc0, - 0x06, 0x10, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0x65, 0x59, 0xd5, 0x10, 0x6c, - 0x29, 0x52, 0x06, 0x98, 0x17, 0x24, 0xc6, 0x84, 0xd3, 0x3c, 0xac, 0xb9, - 0x06, 0x98, 0x17, 0x07, 0xb2, 0xff, 0x05, 0xf8, 0x13, 0x3f, 0xff, 0x1e, - 0x04, 0x41, 0x44, 0x20, 0x01, 0x30, 0x04, 0x3b, 0x04, 0x38, 0x06, 0x28, - 0x15, 0xc3, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x13, 0x12, 0x13, - 0x13, 0x60, 0x01, 0x40, 0x09, 0x08, 0xe0, 0x25, 0xab, 0xfa, 0x2b, 0x2d, - 0x52, 0xed, 0x30, 0x01, 0xb9, 0x30, 0xb3, 0x30, 0xe2, 0x30, 0xf3, 0x07, - 0x48, 0x17, 0x57, 0x52, 0x2f, 0xbd, 0x73, 0x4c, 0x2f, 0x6d, 0x20, 0x01, - 0x3f, 0xc9, 0x04, 0xff, 0xc0, 0xc0, 0x06, 0x10, 0x71, 0x10, 0x07, 0xd0, - 0x7f, 0x57, 0x7f, 0xaf, 0x65, 0xb7, 0x5e, 0x20, 0x92, 0x82, 0x06, 0x78, - 0x19, 0x5c, 0xb8, 0xa4, 0xc2, 0x54, 0x1c, 0xcf, 0x3c, 0xba, 0x06, 0x78, - 0x19, 0x08, 0x12, 0xff, 0x05, 0xd8, 0x1d, 0x20, 0x04, 0x05, 0x3e, 0x04, - 0x41, 0x04, 0x3a, 0x20, 0x05, 0x3c, 0x20, 0x01, 0x1c, 0x3e, 0x04, 0x3d, - 0x05, 0xe8, 0x1d, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x14, 0x13, - 0x31, 0x14, 0x14, 0x60, 0x01, 0x40, 0x09, 0x23, 0x26, 0x2f, 0x28, 0x17, - 0x00, 0x1d, 0x52, 0xb9, 0x30, 0xe9, 0x30, 0xa4, 0x30, 0x68, 0xb4, 0x06, - 0x68, 0x15, 0xfb, 0x2f, 0x53, 0x2f, 0xb7, 0x69, 0x00, 0x67, 0xf0, 0x2c, - 0x33, 0x05, 0x7f, 0xbc, 0x06, 0x10, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0xaf, - 0x65, 0xb1, 0x83, 0x20, 0x08, 0x62, 0x06, 0x78, 0x15, 0x00, 0x00, 0xac, - 0xc2, 0x7c, 0x07, 0xb7, 0x74, 0xc7, 0xe0, 0xac, 0x06, 0x78, 0x17, 0x07, - 0x92, 0xff, 0x05, 0xd8, 0x0f, 0x80, 0x7f, 0xff, 0x21, 0x04, 0x3b, 0x04, - 0x30, 0x04, 0x39, 0x38, 0x04, 0x33, 0x28, 0x1f, 0x0e, 0x34, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x15, 0x14, 0x15, 0x60, 0x15, 0x60, 0x01, 0x40, 0x09, - 0x96, 0x26, 0xf8, 0xf9, 0x00, 0x00, 0x00, 0x1e, 0x52, 0xc6, 0x30, 0xa3, - 0x30, 0xda, 0x8d, 0x28, 0x1b, 0xea, 0x30, 0xfc, 0x06, 0x48, 0x1b, 0xdb, - 0x2f, 0x54, 0x28, 0x15, 0x45, 0x70, 0x20, 0x01, 0x65, 0x00, 0x72, 0x2c, - 0x2b, 0x72, 0x2b, 0x43, 0xe0, 0x04, 0xff, 0xbe, 0x06, 0x10, 0x71, 0x10, - 0x07, 0xd0, 0x7f, 0x82, 0x84, 0xc0, 0x73, 0xf7, 0x10, 0x96, 0xcc, 0x91, - 0x06, 0x78, 0x19, 0xf0, 0xd2, 0x7c, 0xd3, 0x0e, 0x08, 0xb8, 0xac, 0xb9, - 0x06, 0x78, 0x17, 0x08, 0x12, 0xff, 0x05, 0xd8, 0x1f, 0x22, 0x08, 0x04, - 0x38, 0x04, 0x3f, 0x20, 0x01, 0x35, 0x04, 0x40, 0x2e, 0x04, 0x4d, 0x20, - 0x03, 0x38, 0x05, 0xe8, 0x1d, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x16, 0x18, 0x15, 0x16, 0x16, 0x60, 0x01, 0x40, 0x09, 0x73, 0x25, 0x6e, - 0x00, 0xfa, 0x00, 0x00, 0x1f, 0x52, 0xa6, 0x30, 0xa9, 0xab, 0x28, 0x11, - 0xbf, 0x28, 0x15, 0xd5, 0x40, 0x09, 0xc9, 0x05, 0xe8, 0x1d, 0xdb, 0x2f, - 0x55, 0x57, 0x2c, 0x29, 0x74, 0x48, 0x15, 0x66, 0x2f, 0xc1, 0x72, 0x2c, - 0x39, 0xe0, 0x04, 0xff, 0xc6, 0x06, 0x10, 0x71, 0x10, 0x07, 0xd0, 0x7f, - 0x83, 0x6c, 0x79, 0x72, 0x8f, 0x10, 0x79, 0xb7, 0x5f, 0x06, 0x78, 0x17, - 0xcc, 0xc6, 0x30, 0xd1, 0x0e, 0x7c, 0xd3, 0xdc, 0xb4, 0x06, 0x78, 0x17, - 0x08, 0x12, 0xff, 0x05, 0xd8, 0x17, 0x23, 0x0a, 0x04, 0x3e, 0x04, 0x42, - 0x48, 0x15, 0x44, 0x20, 0x09, 0x40, 0x38, 0x04, 0x34, 0x06, 0xc8, 0x17, - 0x06, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x17, 0x16, 0x17, 0x51, 0x17, - 0x50, 0x01, 0x18, 0x40, 0x09, 0x09, 0x25, 0x92, 0x28, 0x17, 0x40, 0x20, - 0x28, 0x17, 0xa7, 0x30, 0xb9, 0x30, 0xc8, 0x30, 0x58, 0xdf, 0x28, 0x1d, - 0xb9, 0x05, 0xe8, 0x13, 0x00, 0x38, 0x17, 0x65, 0x00, 0x73, 0xb7, 0x2b, - 0x3b, 0x6d, 0x2f, 0xbf, 0x38, 0x21, 0x68, 0x05, 0x28, 0x17, 0x05, 0xf0, - 0x71, 0x10, 0x07, 0xd0, 0x7f, 0x02, 0x7f, 0x89, 0x73, 0x7c, 0xaf, 0x65, - 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0xe8, 0xc6, 0xa4, 0xc2, 0xb8, 0xd2, - 0xf8, 0x1c, 0xbb, 0xa4, 0xc2, 0x06, 0x58, 0x19, 0x08, 0x12, 0xff, 0x05, - 0xf8, 0x17, 0x4d, 0x04, 0x47, 0x41, 0x28, 0x19, 0x3c, 0x04, 0x38, 0x28, - 0x1f, 0x06, 0x1a, 0x1b, 0x06, 0xf4, 0xff, 0x85, 0x10, 0x0e, 0xf0, 0x7f, - 0x18, 0x17, 0x18, 0x18, 0x50, 0x01, 0x1a, 0x40, 0x09, 0x14, 0x0f, 0x26, - 0xc9, 0x28, 0x17, 0x21, 0x48, 0x17, 0xc3, 0x30, 0x45, 0xaf, 0x28, 0x1b, - 0xd5, 0x30, 0xa9, 0x28, 0x1b, 0xc9, 0x05, 0xe8, 0x1b, 0xb8, 0x00, 0x18, - 0x17, 0x78, 0x05, 0xcf, 0xb9, 0x06, 0x10, 0x71, 0x10, 0x07, 0xd0, 0x7f, - 0xe6, 0x97, 0x4b, 0x01, 0x51, 0xaf, 0x65, 0x8f, 0x79, 0xb7, 0x5f, 0x06, - 0x58, 0x1b, 0x43, 0xe9, 0x28, 0x17, 0x7c, 0xd3, 0xdc, 0xb4, 0x06, 0x58, - 0x15, 0x07, 0xf2, 0xff, 0xd0, 0x05, 0xd8, 0x13, 0x78, 0x17, 0x3a, 0x28, - 0x19, 0x44, 0x04, 0x3e, 0x04, 0x1c, 0x40, 0x04, 0x34, 0x06, 0x08, 0x19, - 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x19, 0x18, 0x30, 0x19, 0x19, - 0x60, 0x01, 0x40, 0x09, 0x37, 0x25, 0x69, 0xfb, 0x15, 0x00, 0x00, 0x22, - 0x28, 0x17, 0xa3, 0x48, 0x17, 0xed, 0x28, 0x13, 0xd1, 0x05, 0xd8, 0x11, - 0x00, 0x5b, 0x2f, 0x69, 0x2c, 0x2b, 0x6b, 0x00, 0x6c, 0x2c, 0x2f, 0x70, - 0x77, 0x05, 0x6f, 0xaf, 0x05, 0xf0, 0x71, 0x10, 0x07, 0xd0, 0x7f, 0x01, - 0x5a, 0x4b, 0x51, 0x30, 0x1b, 0x6d, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x04, - 0xc7, 0x74, 0xd0, 0x3a, 0x5c, 0xb8, 0x06, 0x78, 0x15, 0x07, 0xf2, 0xff, - 0x06, 0x38, 0x17, 0x38, 0x28, 0x17, 0x3b, 0xb8, 0x28, 0x15, 0x43, 0x06, - 0x08, 0x13, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x1a, 0x19, 0x1a, - 0x51, 0x1a, 0x50, 0x01, 0x17, 0x40, 0x09, 0xac, 0x25, 0xb5, 0x28, 0x17, - 0x80, 0x00, 0x25, 0x27, 0x1a, 0x06, 0x06, 0x06, 0x06, 0x01, 0x01, 0x00, - 0x06, 0x06, 0x03, 0x1a, 0x01, 0x01, 0x01, 0x01, 0x4a, 0x02, 0x30, 0x04, - 0x01, 0x02, 0x20, 0x06, 0x05, 0x20, 0x05, 0x02, 0x25, 0x02, 0x03, 0x30, - 0x04, 0x02, 0x03, 0x20, 0x06, 0x04, 0x20, 0x05, 0x12, 0x03, 0x03, 0x04, - 0x30, 0x04, 0x03, 0x04, 0x20, 0x06, 0x09, 0x89, 0x20, 0x05, 0x04, 0x04, - 0x05, 0x30, 0x04, 0x04, 0x05, 0x20, 0x06, 0x44, 0x0a, 0x20, 0x05, 0x05, - 0x05, 0x06, 0x30, 0x04, 0x05, 0x06, 0xa0, 0x20, 0x06, 0x02, 0x20, 0x05, - 0x06, 0x06, 0x07, 0x06, 0x07, 0x50, 0x07, 0x50, 0x01, 0x01, 0x40, 0x09, - 0x08, 0x07, 0x08, 0x08, 0xa1, 0x50, 0x01, 0x06, 0x40, 0x09, 0x09, 0x08, - 0x09, 0x09, 0x50, 0x01, 0x42, 0x07, 0x40, 0x09, 0x0a, 0x09, 0x0a, 0x0a, - 0x50, 0x01, 0x08, 0x85, 0x40, 0x09, 0x0b, 0x0a, 0x0b, 0x0b, 0x50, 0x01, - 0x0c, 0x40, 0x09, 0x0a, 0x0c, 0x0b, 0x0c, 0x0c, 0x50, 0x01, 0x0e, 0x40, - 0x09, 0x0d, 0x18, 0x0c, 0x0d, 0x0d, 0x60, 0x01, 0x40, 0x09, 0x0e, 0x0d, - 0x0e, 0x50, 0x0e, 0x50, 0x01, 0x0f, 0x40, 0x09, 0x0f, 0x0e, 0x0f, 0x0f, - 0xa1, 0x50, 0x01, 0x0b, 0x40, 0x09, 0x10, 0x0f, 0x10, 0x10, 0x60, 0x01, - 0x86, 0x40, 0x09, 0x11, 0x10, 0x11, 0x11, 0x60, 0x01, 0x40, 0x09, 0x12, - 0x18, 0x11, 0x12, 0x12, 0x60, 0x01, 0x40, 0x09, 0x13, 0x12, 0x13, 0x61, - 0x13, 0x60, 0x01, 0x40, 0x09, 0x14, 0x13, 0x14, 0x14, 0x60, 0x01, 0x86, - 0x40, 0x09, 0x15, 0x14, 0x15, 0x15, 0x60, 0x01, 0x40, 0x09, 0x16, 0x18, - 0x15, 0x16, 0x16, 0x60, 0x01, 0x40, 0x09, 0x17, 0x16, 0x17, 0x50, 0x17, - 0x50, 0x01, 0x18, 0x40, 0x09, 0x18, 0x17, 0x18, 0x18, 0xbc, 0x50, 0x01, - 0x1a, 0x40, 0x09, 0xf9, 0xbf, 0xf1, 0xb7, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x54, 0xab, 0x00, 0x11, 0x14, 0x00, 0x00, 0x30, 0x01, 0x53, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xca, 0x1d, 0xe1, 0x08, 0x00, 0x00, 0x00, 0x02, 0x53, 0xe9, 0x30, - 0xc4, 0x30, 0xa3, 0x04, 0x30, 0xaa, 0x30, 0xde, 0x5d, 0x06, 0x58, 0x1f, - 0x4c, 0x00, 0x01, 0x61, 0x00, 0x7a, 0x00, 0x69, 0x00, 0x6f, 0x06, 0x68, - 0x9e, 0xa3, 0x30, 0x7f, 0x74, 0x20, 0x7f, 0x75, 0x00, 0x6d, 0x0e, 0x80, - 0x7f, 0x06, 0xf1, 0x7f, 0x40, 0x63, 0x06, 0xa1, 0xff, 0xc9, 0x62, 0x50, - 0x9f, 0x65, 0x59, 0x08, 0x27, 0x59, 0x3a, 0x53, 0x06, 0x5b, 0x1f, 0x7c, - 0xb7, 0x58, 0x01, 0xce, 0x24, 0xc6, 0x20, 0x00, 0xfc, 0xc8, 0x0e, 0x73, - 0x7f, 0x40, 0xe1, 0x06, 0xc1, 0xff, 0x1b, 0x04, 0x30, 0x04, 0x46, 0x04, - 0x0c, 0x38, 0x04, 0x3e, 0x04, 0x0e, 0x94, 0xff, 0x10, 0x0e, 0xb0, 0x7f, - 0x01, 0x09, 0x41, 0x07, 0x20, 0x01, 0x01, 0x01, 0x08, 0x08, 0x08, 0x20, - 0x05, 0x20, 0x01, 0x01, 0x58, 0x17, 0x03, 0x53, 0xd0, 0x30, 0xc3, 0x02, - 0x30, 0xec, 0x30, 0xfb, 0x30, 0xc0, 0x28, 0x1b, 0xb9, 0x2a, 0x30, 0xbf, - 0x06, 0x08, 0x1f, 0x41, 0x28, 0x11, 0x73, 0x27, 0x99, 0x61, 0x0a, 0x00, - 0x20, 0x00, 0x56, 0x28, 0x23, 0x6c, 0x20, 0x01, 0x65, 0x34, 0x00, 0x79, - 0x05, 0x8f, 0xc4, 0x70, 0x73, 0xe9, 0x20, 0x75, 0x20, 0x00, 0x16, 0x64, - 0x00, 0x27, 0x80, 0x91, 0x65, 0x05, 0xe0, 0xff, 0x31, 0x03, 0x6c, 0xee, - 0x06, 0x0f, 0xbc, 0x91, 0x73, 0xd0, 0xfd, 0x61, 0x06, 0x40, 0x7f, 0x31, - 0x83, 0x05, 0xd0, 0x81, 0xe6, 0x00, 0x74, 0xb1, 0x83, 0x2d, 0x00, 0xbe, - 0x8f, 0x65, 0x04, 0x59, 0xaf, 0x65, 0x54, 0x58, 0x06, 0x18, 0x1f, 0x1c, - 0xbc, 0x00, 0x08, 0xb8, 0xe4, 0xb2, 0x24, 0xc6, 0xa4, 0xc2, 0x38, 0xc0, - 0xd0, 0x06, 0x38, 0x1d, 0x07, 0x51, 0xff, 0x06, 0x71, 0xfd, 0x00, 0x00, - 0x12, 0xa0, 0x28, 0x17, 0x3b, 0x20, 0x01, 0x35, 0x04, 0x2d, 0x00, 0x34, - 0x08, 0x04, 0x19, 0x20, 0x10, 0x28, 0x21, 0x41, 0x04, 0x42, 0xe0, 0x28, - 0x2d, 0x0d, 0x54, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x02, 0x02, 0x13, 0x02, - 0x13, 0x42, 0x13, 0x20, 0x05, 0x13, 0x04, 0x02, 0x02, 0x20, 0x01, 0x85, - 0x00, 0x20, 0x33, 0x05, 0x00, 0x00, 0x04, 0x53, 0xd4, 0x00, 0x30, 0xa8, - 0x30, 0xe2, 0x30, 0xf3, 0x30, 0xc6, 0xd5, 0x06, 0x08, 0x11, 0x5f, 0xff, - 0x50, 0x2f, 0xab, 0x65, 0x27, 0x8f, 0x6d, 0x2e, 0xb1, 0x6f, 0x6e, 0x2f, - 0xb9, 0x06, 0x30, 0x7f, 0xe9, 0x06, 0x80, 0x7d, 0x70, 0xff, 0x07, 0x70, - 0x7f, 0x05, 0x59, 0x0b, 0xa0, 0xf1, 0xff, 0x61, 0x06, 0xa0, 0x7f, 0xae, - 0x76, 0xc3, 0x57, 0x99, 0x18, 0x84, 0x79, 0x72, 0x06, 0x18, 0x11, 0x5f, - 0xff, 0x3c, 0xd5, 0xd0, 0x06, 0xc5, 0xac, 0xba, 0x4c, 0xd1, 0x06, 0x38, - 0x13, 0x73, 0x7f, 0xeb, 0x8a, 0x0e, 0xa2, 0x7f, 0x1f, 0x04, 0x4c, 0x28, - 0x13, 0x3c, 0x28, 0x0d, 0x3d, 0xe0, 0x28, 0x0d, 0x0e, 0x54, 0xff, 0x10, - 0x0e, 0xb0, 0x7f, 0x03, 0x0e, 0x0d, 0x0e, 0x0c, 0x03, 0x0e, 0x03, 0x03, - 0x0d, 0x0d, 0x0d, 0x20, 0x05, 0x20, 0x07, 0x20, 0x20, 0x75, 0x28, 0x17, - 0x05, 0x53, 0xea, 0x30, 0xb0, 0x08, 0x30, 0xea, 0x30, 0xa2, 0x06, 0x68, - 0x15, 0x00, 0x00, 0x4c, 0x83, 0x28, 0x17, 0x67, 0x00, 0x75, 0x00, 0x72, - 0x46, 0x1f, 0x06, 0xd0, 0x7f, 0xd8, 0x06, 0x17, 0x15, 0xf0, 0x7f, 0x6e, - 0x0e, 0xc1, 0x7f, 0x06, 0x31, 0xff, 0x29, 0x52, 0xe4, 0x04, 0x53, 0xcc, - 0x91, 0x9a, 0x4e, 0x06, 0x78, 0x17, 0xac, 0xb9, 0x03, 0x6c, 0xad, 0xac, - 0xb9, 0x44, 0xc5, 0x06, 0x78, 0x17, 0xb3, 0x7f, 0x50, 0xeb, 0x06, 0x83, - 0xff, 0xfa, 0x06, 0x83, 0xff, 0x1b, 0x04, 0x38, 0x04, 0x05, 0x33, 0x04, - 0x43, 0x04, 0x40, 0x20, 0x07, 0x4f, 0x06, 0x28, 0x17, 0xc0, 0x0e, 0xf3, - 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x04, 0x0a, 0x08, 0x0a, 0x08, 0x0b, 0x00, - 0x04, 0x04, 0x09, 0x09, 0x09, 0x0a, 0x04, 0x04, 0x00, 0x04, 0x04, 0x93, - 0x1f, 0x5a, 0x06, 0x00, 0x00, 0x00, 0x06, 0x53, 0xed, 0x30, 0xf3, 0x30, - 0xd0, 0x30, 0x05, 0xeb, 0x30, 0xc7, 0x30, 0xa3, 0x06, 0x48, 0x1d, 0x4c, - 0x2f, 0xa9, 0x15, 0x6d, 0x00, 0x62, 0x2e, 0x33, 0x72, 0x2b, 0x35, 0x79, - 0x06, 0x28, 0x97, 0xef, 0xb0, 0x7f, 0x06, 0x18, 0x1b, 0xd0, 0xff, 0x65, - 0x2f, 0xbd, 0x06, 0xd0, 0xff, 0x05, 0xf9, 0x9b, 0xd1, 0xff, 0x40, 0xed, - 0x06, 0x0a, 0x1b, 0x26, 0x4f, 0xf4, 0x5d, 0x2c, 0x7b, 0x80, 0x06, 0x78, - 0x15, 0x00, 0x00, 0x6c, 0xb8, 0x14, 0xbc, 0x74, 0x1b, 0xb9, 0x14, 0xb5, - 0x06, 0x78, 0x19, 0xf2, 0xff, 0x6a, 0x05, 0xef, 0xb3, 0x06, 0xf2, 0x7f, - 0x00, 0x1b, 0x04, 0x3e, 0x04, 0x3c, 0x04, 0x31, 0x04, 0x5c, 0x30, 0x28, - 0x19, 0x34, 0x06, 0x28, 0x1b, 0x07, 0xd4, 0xff, 0x10, 0x0e, 0x10, 0x7f, - 0x05, 0x0b, 0x00, 0x09, 0x0b, 0x09, 0x0c, 0x05, 0x05, 0x0a, 0x0a, 0x00, - 0x0a, 0x0b, 0x05, 0x05, 0x05, 0x05, 0x55, 0x20, 0x41, 0x88, 0x28, 0x17, - 0x07, 0x53, 0xc8, 0x30, 0xec, 0x28, 0x19, 0x44, 0xc6, 0x28, 0x15, 0xce, - 0x30, 0xfb, 0x28, 0x19, 0xeb, 0x30, 0x62, 0xc8, 0x40, 0x07, 0x38, 0x27, - 0xb8, 0x30, 0xa7, 0x05, 0x08, 0x29, 0x54, 0xd4, 0x2f, 0xa9, 0x3f, 0x27, - 0x74, 0x2f, 0xb7, 0x6e, 0x28, 0x23, 0x2d, 0x00, 0x11, 0x41, 0x00, 0x6c, - 0x20, 0x0d, 0x6f, 0x00, 0x20, 0x20, 0x09, 0xb1, 0x37, 0xa9, 0x67, 0x04, - 0xcf, 0xc7, 0xd0, 0x7f, 0x2d, 0x00, 0x48, 0x2f, 0x35, 0x78, 0x75, 0x20, - 0x8d, 0x30, 0x87, 0x05, 0x10, 0x7d, 0x00, 0x30, 0xff, 0x53, 0x00, 0xfc, - 0xd7, 0x29, 0x21, 0x31, 0x0f, 0x72, 0x29, 0x33, 0x6c, 0x04, 0xef, 0xc3, - 0x07, 0xd1, 0x7f, 0x00, 0x51, 0xff, 0x60, 0x69, 0x2a, 0x3b, 0x04, 0x7f, - 0xcb, 0x79, 0x72, 0x26, 0x4f, 0x82, 0x00, 0x84, 0xfa, 0x8b, 0x2d, 0x00, - 0x0a, 0x4e, 0x3f, 0x04, 0x96, 0xea, 0x8f, 0x70, 0x67, 0x05, 0xd8, 0x23, - 0xb8, 0xd2, 0x00, 0x0c, 0xb8, 0xf0, 0xd2, 0x78, 0xb1, 0x4c, 0xc5, 0x00, - 0xa0, 0xd1, 0x44, 0xc5, 0x14, 0xb5, 0x1c, 0xc8, 0xd5, 0x05, 0xd8, 0x1f, - 0x00, 0x13, 0x7f, 0x5a, 0x2e, 0xbd, 0x69, 0x2b, 0xa3, 0x2d, 0x23, 0x9b, - 0xd4, 0x05, 0x12, 0x83, 0x00, 0xb3, 0xff, 0xc1, 0x05, 0x23, 0xff, 0x22, - 0x28, 0x0f, 0x35, 0x04, 0x14, 0x3d, 0x04, 0x42, 0x28, 0x13, 0x3d, 0x28, - 0x23, 0x2d, 0x00, 0x07, 0x10, 0x04, 0x3b, 0x04, 0x4c, 0x20, 0x0f, 0x50, - 0x0b, 0x38, 0x2b, 0x1c, 0x34, 0x04, 0x36, 0x20, 0x23, 0x0e, 0x93, 0x7f, - 0x10, 0x0c, 0xb0, 0x7f, 0x06, 0x11, 0x00, 0x12, 0x12, 0x11, 0x11, 0x06, - 0x06, 0x11, 0x11, 0x80, 0x30, 0x05, 0x06, 0x06, 0xc2, 0x20, 0xe8, 0x07, - 0x00, 0x03, 0x00, 0x08, 0x53, 0xd9, 0x30, 0xcd, 0x28, 0x09, 0x04, 0xf7, - 0xfd, 0xad, 0x00, 0x9f, 0xff, 0x56, 0x48, 0x15, 0x65, 0x48, 0x09, 0x06, - 0x50, 0x7f, 0xe9, 0x28, 0x95, 0x7b, 0xe9, 0x48, 0x97, 0x05, 0xdd, 0x29, - 0xf0, 0xff, 0x30, 0x7f, 0x6e, 0x0e, 0x61, 0x7f, 0x06, 0x91, 0xff, 0x03, - 0x01, 0x5a, 0x3c, 0x5c, 0x58, 0x62, 0x05, 0xd8, 0x0b, 0xbf, 0xff, 0x03, - 0xa0, 0xbc, 0x24, 0xb1, 0xa0, 0xd1, 0x05, 0xd8, 0x0b, 0x07, 0xd3, 0x7f, - 0xae, 0x06, 0xd3, 0xff, 0x12, 0x48, 0x15, 0x35, 0x48, 0x07, 0x10, 0x06, - 0x31, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x07, 0x2a, 0x14, 0x14, 0x20, 0x01, - 0x07, 0x20, 0x06, 0x05, 0x20, 0x05, 0x07, 0x00, 0x07, 0x4e, 0x20, 0xc5, - 0x08, 0x00, 0x00, 0x09, 0x02, 0x53, 0xd5, 0x30, 0xea, 0x30, 0xa6, 0x20, - 0x03, 0xfb, 0x44, 0x30, 0x38, 0x21, 0xc1, 0x30, 0xa2, 0x20, 0x09, 0xb8, - 0x30, 0x55, 0xe5, 0x20, 0x15, 0xa2, 0x05, 0x48, 0x2d, 0x46, 0x2f, 0xaf, - 0x69, 0x2f, 0xa1, 0x55, 0x6c, 0x2f, 0xaf, 0x20, 0x88, 0x25, 0x7a, 0x2f, - 0xbd, 0x61, 0x2e, 0xb1, 0x55, 0x47, 0x80, 0x1b, 0x61, 0x04, 0xc0, 0x7f, - 0x6f, 0x40, 0x81, 0x2d, 0xe8, 0x25, 0x1e, 0x20, 0x00, 0x6a, 0x60, 0x99, - 0x3f, 0xd1, 0x38, 0xbd, 0x04, 0x70, 0xff, 0x61, 0xa0, 0x60, 0x7f, 0x4a, - 0x61, 0x09, 0x73, 0x00, 0x63, 0x00, 0x68, 0xfd, 0xa1, 0x0f, 0x04, 0x98, - 0x35, 0xb1, 0x7f, 0x30, 0xff, 0x06, 0x51, 0x7f, 0xf0, 0x7f, 0x63, 0x61, - 0xff, 0xc0, 0x71, 0x0f, 0x04, 0x71, 0xfd, 0x00, 0x00, 0x17, 0x5f, 0x59, - 0x75, 0x10, 0x29, 0x52, 0x2d, 0x48, 0x1f, 0xaf, 0x65, 0x31, 0x67, 0x08, - 0x29, 0x52, 0x9a, 0x4e, 0x05, 0xb8, 0x25, 0x04, 0xd5, 0xac, 0x04, 0xb9, - 0xb8, 0xc6, 0xac, 0xb9, 0x38, 0x1f, 0x58, 0xce, 0x00, 0x44, 0xc5, 0x04, - 0xc9, 0xac, 0xb9, 0x44, 0xc5, 0xea, 0x05, 0x98, 0x27, 0x07, 0x91, 0xff, - 0x72, 0x7d, 0xe9, 0x00, 0x21, 0xfd, 0x6e, 0x04, 0x83, 0xff, 0x24, 0x00, - 0x04, 0x40, 0x04, 0x38, 0x04, 0x43, 0x04, 0x3b, 0xaa, 0x20, 0x05, 0x2d, - 0x88, 0x25, 0x46, 0x20, 0x13, 0x4f, 0x20, 0x0f, 0x14, 0x2e, 0x04, 0x36, - 0x60, 0x1b, 0x4f, 0x04, 0x68, 0x35, 0x07, 0x54, 0xff, 0x10, 0x0e, 0x90, - 0x7f, 0x08, 0x00, 0x08, 0x06, 0x06, 0x06, 0x08, 0x08, 0x08, 0x07, 0x20, - 0x07, 0x13, 0x20, 0x05, 0x08, 0x08, 0x74, 0x20, 0xca, 0x00, 0x09, 0x00, - 0x00, 0x0a, 0x53, 0xa8, 0x30, 0xdf, 0x80, 0x48, 0x03, 0xfb, 0x30, 0xed, - 0x30, 0xde, 0x30, 0xfc, 0x0c, 0x30, 0xcb, 0x30, 0xe3, 0x05, 0x48, 0x0f, - 0x7f, 0xff, 0x45, 0x00, 0x62, 0x6d, 0x2f, 0xa9, 0x57, 0xf9, 0x2d, 0x00, - 0x52, 0x2e, 0xb5, 0x6d, 0xb5, 0x28, 0x11, 0x67, 0x04, 0xa4, 0x09, 0xdf, - 0xff, 0xc9, 0x80, 0x7f, 0x65, 0xe0, 0x7f, 0xe8, 0x04, 0x38, 0x05, 0x08, - 0x10, 0xff, 0x08, 0x50, 0x7f, 0xf1, 0x05, 0x61, 0xfd, 0x00, 0x00, 0x7e, - 0x10, 0x82, 0x73, 0x7c, 0x38, 0x0b, 0x2d, 0x00, 0x57, 0x7f, 0x0c, 0x6c, - 0x9a, 0x85, 0x6d, 0x05, 0xb8, 0x13, 0x3f, 0xff, 0xd0, 0xc5, 0x20, 0x00, - 0xbc, 0x38, 0x09, 0x5c, 0xb8, 0xc8, 0xb9, 0xd0, 0x6c, 0xb0, 0x05, 0x98, - 0x0f, 0x07, 0xb2, 0x7f, 0xed, 0x00, 0x03, 0xff, 0x05, 0x73, 0xfd, 0x00, - 0x00, 0x18, 0x2d, 0x04, 0x3c, 0x28, 0x17, 0x57, 0xf9, 0x2d, 0x00, 0x20, - 0x2b, 0x04, 0x3e, 0x20, 0x0f, 0x30, 0x28, 0x1b, 0x4c, 0x04, 0x88, 0x09, - 0x10, 0x01, 0x33, 0xff, 0x80, 0x10, 0x05, 0x90, 0xff, 0x09, 0x07, 0x05, - 0x05, 0x05, 0x07, 0x09, 0x08, 0x09, 0x06, 0x06, 0x14, 0x20, 0x05, 0x09, - 0x09, 0xa5, 0x00, 0x1f, 0x0f, 0x08, 0x00, 0x00, 0x0b, 0x53, 0xc8, 0x03, - 0x30, 0xb9, 0x30, 0xab, 0x30, 0xca, 0x05, 0xc8, 0x0b, 0xbf, 0xfa, 0x75, - 0x54, 0x2f, 0xa9, 0x3f, 0x1d, 0x3c, 0x13, 0x79, 0x06, 0x40, 0x7f, 0x6f, - 0x80, 0x7f, 0xdc, 0x05, 0x58, 0x09, 0x00, 0x30, 0x7f, 0x6b, 0x05, 0xc5, - 0x0b, 0x00, 0x70, 0xff, 0x0e, 0x30, 0x7f, 0x58, 0x62, 0x03, 0xaf, 0x65, - 0x61, 0x53, 0xb3, 0x7e, 0x05, 0xf8, 0x0f, 0x7f, 0xff, 0x01, 0xa0, 0xd1, - 0xa4, 0xc2, 0x74, 0xce, 0x98, 0x06, 0x28, 0x11, 0x8e, 0x07, 0xb2, 0xff, - 0x63, 0x00, 0xe2, 0x2f, 0x27, 0x04, 0x9f, 0x15, 0x00, 0x9f, 0xeb, 0x22, - 0x8b, 0x28, 0x09, 0x41, 0x04, 0x3a, 0x48, 0x0b, 0x30, 0x05, 0x48, 0x09, - 0x07, 0xf4, 0xff, 0x80, 0x10, 0x0e, 0xd0, 0x7f, 0x0a, 0x12, 0x11, 0x11, - 0x10, 0x10, 0x0a, 0x00, 0x0a, 0x10, 0x10, 0x10, 0x12, 0x0a, 0x0a, 0x0a, - 0x08, 0x0a, 0x21, 0x1f, 0x00, 0x28, 0x17, 0x0c, 0x53, 0xa6, 0x00, 0x30, - 0xf3, 0x30, 0xd6, 0x30, 0xea, 0x30, 0xa2, 0xa3, 0x06, 0x68, 0x19, 0x55, - 0x2f, 0xaf, 0x62, 0x00, 0x72, 0x06, 0x44, 0x13, 0x3f, 0xff, 0x77, 0x4f, - 0x80, 0x7f, 0x06, 0x38, 0x15, 0xb0, 0xff, 0x65, 0x2f, 0xa3, 0x0e, 0x11, - 0x7f, 0x71, 0xff, 0x40, 0xed, 0x06, 0x61, 0xff, 0xc1, 0x7f, 0x03, 0x5e, - 0xcc, 0x91, 0x20, 0x9a, 0x4e, 0x06, 0x78, 0x17, 0xc0, 0xc6, 0x0c, 0xbe, - 0xac, 0x1a, 0xb9, 0x44, 0xc5, 0x06, 0x78, 0x17, 0x93, 0x7f, 0xeb, 0x06, - 0x4c, 0x18, 0xda, 0x80, 0x06, 0xe3, 0xff, 0x23, 0x04, 0x3c, 0x04, 0x31, - 0x04, 0x40, 0x0e, 0x04, 0x38, 0x04, 0x4f, 0x06, 0x28, 0x15, 0x07, 0x93, - 0x7f, 0x10, 0x0e, 0x70, 0x7f, 0x0b, 0x00, 0x13, 0x0c, 0x13, 0x12, 0x12, - 0x0b, 0x0b, 0x12, 0x00, 0x12, 0x12, 0x13, 0x0b, 0x0b, 0x0b, 0x0b, 0xa8, - 0x20, 0x1e, 0xce, 0x28, 0x17, 0x0d, 0x53, 0xde, 0x30, 0xeb, 0x35, 0x30, - 0xb1, 0x06, 0x68, 0x13, 0x3f, 0xff, 0x4d, 0x2f, 0xa9, 0x72, 0x2f, 0xaf, - 0x6b, 0x68, 0x06, 0x67, 0x97, 0xb0, 0x7f, 0x73, 0x06, 0x80, 0xff, 0x6b, - 0x06, 0x68, 0x15, 0x07, 0x11, 0x7f, 0x47, 0x4c, 0x2e, 0xa9, 0x73, 0x00, - 0x20, 0x82, 0x07, 0x30, 0x0d, 0x05, 0xbf, 0xb7, 0x02, 0x6c, 0x9a, 0x14, - 0x5c, 0xef, 0x51, 0x06, 0x78, 0x15, 0x00, 0x01, 0x00, 0xc8, 0xb9, 0x74, - 0xb9, 0x00, 0xcf, 0x06, 0x78, 0x15, 0xc4, 0x07, 0xd3, 0x7f, 0x06, 0x3c, - 0x97, 0x1c, 0x04, 0x30, 0x28, 0x15, 0x3a, 0x04, 0x70, 0x35, 0x06, 0x48, - 0x15, 0x0f, 0x11, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x0c, 0x0c, 0x0a, 0x0c, - 0x09, 0x0a, 0x0a, 0x0c, 0x0c, 0x28, 0x13, 0x0c, 0x0c, 0x20, 0x01, 0x00, - 0x04, 0x1f, 0x9b, 0x09, 0x00, 0x00, 0x0e, 0x53, 0x10, 0xa2, 0x30, 0xd6, - 0x28, 0x19, 0xc3, 0x30, 0xc4, 0x30, 0x51, 0xa3, 0x06, 0x48, 0x1d, 0x41, - 0x4f, 0xad, 0x75, 0x00, 0x7a, 0x20, 0x01, 0x7e, 0x6f, 0x06, 0x2f, 0xb1, - 0xb0, 0x7f, 0x06, 0x38, 0x19, 0xd0, 0x7f, 0x06, 0x18, 0x1b, 0x07, 0x91, - 0x7f, 0x6f, 0x80, 0x06, 0x49, 0x97, 0x3f, 0x96, 0x03, 0x5e, 0x81, 0x9c, - 0x50, 0x40, 0x4f, 0x06, 0x78, 0x19, 0x44, 0xc5, 0x0c, 0xbe, 0xe8, 0xb8, - 0x38, 0x08, 0xcd, 0x06, 0x78, 0x19, 0x07, 0x92, 0x7f, 0x06, 0x33, 0xfd, - 0x00, 0x00, 0x10, 0x22, 0x04, 0x31, 0x28, 0x17, 0x43, 0x04, 0x46, 0x20, - 0x01, 0x3e, 0xe2, 0x06, 0x28, 0x1b, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0x30, - 0x7f, 0x0d, 0x01, 0x01, 0x20, 0x01, 0x0d, 0x80, 0x40, 0x06, 0x0d, 0x0d, - 0x0d, 0x0d, 0x1d, 0x1e, 0x85, 0x80, 0x28, 0x17, 0x0f, 0x53, 0xe2, 0x30, - 0xea, 0x30, 0xfc, 0x30, 0x30, 0xbc, 0x06, 0x48, 0x13, 0x5f, 0xaf, 0x6f, - 0x00, 0x6c, 0x00, 0x70, 0x69, 0x2f, 0xab, 0x06, 0x7c, 0xaf, 0x10, 0x0e, - 0xd0, 0x7f, 0xab, 0x83, 0x29, 0x52, 0x20, 0x5e, 0x58, 0x06, 0x78, 0x15, - 0x00, 0x00, 0xb0, 0xba, 0xac, 0x1a, 0xb9, 0x38, 0xc1, 0x06, 0x78, 0x15, - 0x0f, 0x13, 0x7f, 0x1c, 0x28, 0x0d, 0x3b, 0x03, 0x04, 0x38, 0x04, 0x37, - 0x04, 0x35, 0x06, 0x28, 0x15, 0x10, 0x17, 0x14, 0xff, 0x10, 0x0e, 0x0d, - 0x0b, 0x20, 0x01, 0x0e, 0x0e, 0x0c, 0x0c, 0x40, 0x0c, 0x20, 0x05, 0x0e, - 0x0e, 0x8d, 0x1d, 0x6c, 0x0a, 0x80, 0x2b, 0x2d, 0x53, 0xab, 0x30, 0xf3, - 0x30, 0xd1, 0x30, 0x10, 0xcb, 0x30, 0xa2, 0x06, 0x68, 0x19, 0x43, 0x00, - 0x61, 0x00, 0x15, 0x6d, 0x00, 0x70, 0x20, 0x05, 0x6e, 0x28, 0x1d, 0x61, - 0x06, 0xe0, 0x7f, 0xbc, 0x06, 0x18, 0x9b, 0x4b, 0xe0, 0x7f, 0x05, 0xfd, - 0xb1, 0x07, 0xd1, 0x7f, 0x06, 0x11, 0xff, 0x4e, 0x57, 0x02, 0x15, 0x5e, - 0x3c, 0x5c, 0x9a, 0x4e, 0x06, 0x78, 0x19, 0x84, 0x01, 0xce, 0x0c, 0xd3, - 0xc8, 0xb2, 0x44, 0xc5, 0x06, 0x78, 0x19, 0xa8, 0xd3, 0x7f, 0xeb, 0x06, - 0x83, 0xff, 0xe2, 0x06, 0x63, 0xff, 0x1a, 0x04, 0x30, 0x0a, 0x04, 0x3c, - 0x04, 0x3f, 0x20, 0x05, 0x3d, 0x28, 0x1d, 0x4f, 0xe0, 0x06, 0x08, 0x1b, - 0x0e, 0xf3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x0f, 0x06, 0x04, 0x08, 0x04, - 0x00, 0x05, 0x0f, 0x0f, 0x05, 0x05, 0x07, 0x06, 0x0f, 0x02, 0x0f, 0x0f, - 0x0f, 0x0a, 0x1d, 0x22, 0x28, 0x17, 0x11, 0x02, 0x53, 0xd7, 0x30, 0xfc, - 0x30, 0xea, 0x06, 0x88, 0x15, 0x00, 0x2e, 0x00, 0x41, 0x28, 0x13, 0x75, - 0x4f, 0xb1, 0x06, 0x18, 0x13, 0x3f, 0xff, 0x50, 0xab, 0x2f, 0xaf, 0x75, - 0x2f, 0xaf, 0x6c, 0x2f, 0xb5, 0x65, 0x2f, 0xb5, 0x06, 0x90, 0xff, 0xc6, - 0x06, 0x18, 0x13, 0x50, 0xff, 0x75, 0x00, 0x67, 0x06, 0xa1, 0x7f, 0x06, - 0xf1, 0xff, 0x6e, 0x10, 0x66, 0x29, 0x52, 0x06, 0x98, 0x15, 0x00, 0x00, - 0x80, 0xd4, 0x3d, 0xac, 0xb9, 0x06, 0x98, 0x15, 0xb3, 0x7f, 0x06, 0x18, - 0x13, 0x73, 0xff, 0xfa, 0x06, 0xa3, 0xff, 0x47, 0x10, 0x28, 0x13, 0x43, - 0x04, 0x3b, 0x06, 0x48, 0x13, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x00, 0x10, 0x03, 0x0e, 0x03, 0x0d, 0x02, 0x10, 0x10, 0x00, 0x02, 0x02, - 0x02, 0x03, 0x10, 0x10, 0x10, 0x10, 0x00, 0x3d, 0x1d, 0xfd, 0x0b, 0x00, - 0x00, 0x12, 0x53, 0x15, 0xd0, 0x30, 0xb8, 0x28, 0x17, 0xab, 0x28, 0x1d, - 0xbf, 0x06, 0x48, 0x1b, 0x51, 0x42, 0x2f, 0xaf, 0x73, 0x47, 0x97, 0x69, - 0x00, 0x63, 0x2f, 0xbb, 0x6b, 0x74, 0x05, 0xee, 0xb3, 0x00, 0x10, 0x7f, - 0x65, 0x06, 0x80, 0xff, 0x6b, 0x07, 0x40, 0xff, 0x0d, 0xd0, 0x7f, 0x00, - 0xf4, 0x5d, 0x7f, 0x89, 0x29, 0x52, 0x61, 0x53, 0x20, 0x54, 0x58, 0x06, - 0x58, 0x1b, 0x14, 0xbc, 0xe4, 0xc2, 0xac, 0x06, 0xb9, 0x74, 0xce, 0xc0, - 0xd0, 0x06, 0x58, 0x1b, 0x0e, 0xf1, 0xff, 0x11, 0x0d, 0x04, 0x30, 0x04, - 0x37, 0x28, 0x15, 0x38, 0x19, 0x3a, 0x20, 0x0b, 0x70, 0x42, 0x20, 0x0f, - 0x10, 0x05, 0xb3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x11, 0x04, 0x02, 0x04, - 0x00, 0x02, 0x03, 0x11, 0x11, 0x03, 0x03, 0x03, 0x04, 0x01, 0x11, 0x11, - 0x11, 0x11, 0xe5, 0x1c, 0x3a, 0x28, 0x17, 0x01, 0x13, 0x53, 0xab, 0x30, - 0xe9, 0x30, 0xd6, 0x28, 0x19, 0x45, 0xa2, 0x06, 0x48, 0x15, 0x00, 0x00, - 0x43, 0x2e, 0xa7, 0x6c, 0x2e, 0xab, 0x1e, 0x62, 0x00, 0x72, 0x06, 0x4e, - 0xb3, 0xb0, 0x7f, 0x05, 0xd8, 0x11, 0x5f, 0xff, 0x4b, 0x8c, 0xc0, 0xff, - 0x65, 0x00, 0x6e, 0x0e, 0xa1, 0x7f, 0x06, 0x3e, 0x33, 0x61, 0x53, 0x00, - 0xc9, 0x62, 0x03, 0x5e, 0xcc, 0x91, 0x9a, 0x4e, 0x80, 0x06, 0x58, 0x17, - 0x7c, 0xce, 0x7c, 0xb7, 0x0c, 0xbe, 0xac, 0x1a, 0xb9, 0x44, 0xc5, 0x06, - 0x58, 0x17, 0xd3, 0x7f, 0xeb, 0x06, 0x63, 0xff, 0xe1, 0xa8, 0x06, 0x83, - 0xff, 0x1a, 0x28, 0x17, 0x3b, 0x28, 0x1b, 0x31, 0x04, 0x40, 0xb8, 0x28, - 0x1d, 0x4f, 0x05, 0xc8, 0x13, 0x0f, 0x33, 0x7f, 0x10, 0x06, 0xf0, 0xff, - 0x12, 0x05, 0x03, 0x00, 0x07, 0x03, 0x04, 0x12, 0x12, 0x04, 0x04, 0x06, - 0x00, 0x05, 0x12, 0x12, 0x12, 0x12, 0xa9, 0x1b, 0xcc, 0x82, 0x28, 0x17, - 0x14, 0x53, 0xb7, 0x30, 0xc1, 0x06, 0xa8, 0x15, 0x00, 0x37, 0x00, 0x53, - 0x4f, 0xa7, 0x3f, 0xaf, 0x79, 0x06, 0xe0, 0x7f, 0x06, 0x38, 0x15, 0x50, - 0xff, 0x7c, 0x7a, 0x6f, 0xaf, 0x06, 0x18, 0x15, 0xb1, 0x7f, 0x06, 0x39, - 0x95, 0x07, 0x10, 0x7f, 0x7f, 0x89, 0x0c, 0x7f, 0x89, 0xcc, 0x91, 0x06, - 0x58, 0x13, 0x3f, 0xff, 0xdc, 0xc2, 0x3d, 0x60, 0xce, 0x06, 0x98, 0x15, - 0xd1, 0xff, 0x06, 0x18, 0x15, 0x73, 0xff, 0xed, 0x06, 0x82, 0x7f, 0x57, - 0x21, 0x28, 0x0d, 0x46, 0x28, 0x11, 0x3b, 0x06, 0x48, 0x15, 0x07, 0xb4, - 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x00, 0x13, 0x10, 0x10, 0x10, 0x0f, 0x0f, - 0x13, 0x13, 0x00, 0x0f, 0x0f, 0x0f, 0x10, 0x13, 0x13, 0x13, 0x13, 0x00, - 0x1b, 0x1b, 0x7f, 0x09, 0x00, 0x00, 0x15, 0x53, 0x00, 0xb5, 0x30, 0xeb, - 0x30, 0xc7, 0x30, 0xfc, 0x30, 0x14, 0xcb, 0x30, 0xe3, 0x06, 0x48, 0x1b, - 0x53, 0x2f, 0xaf, 0x72, 0x00, 0x5a, 0x64, 0x2f, 0x2b, 0x6e, 0x06, 0x4e, - 0xaf, 0x70, 0x7f, 0x61, 0x2f, 0xad, 0x67, 0xfb, 0x2f, 0xad, 0x05, 0xf8, - 0x1d, 0xd0, 0xff, 0x06, 0x18, 0x19, 0x71, 0x7f, 0x65, 0x40, 0xfd, 0x06, - 0x3c, 0xaf, 0x50, 0x65, 0x60, 0x7f, 0xf1, 0x06, 0x48, 0x97, 0x92, 0x64, - 0x01, 0x4e, 0x80, 0x06, 0x98, 0x15, 0x00, 0x00, 0xac, 0xc0, 0x74, 0xb9, - 0x70, 0x1e, 0xb3, 0xd0, 0xb0, 0x06, 0x98, 0x17, 0xb3, 0x7f, 0x06, 0x18, - 0x19, 0x92, 0x7f, 0x6e, 0x20, 0x00, 0x68, 0x06, 0x2f, 0x2f, 0x21, 0x04, - 0x30, 0x04, 0x40, 0x2e, 0x04, 0x34, 0x28, 0x1d, 0x3d, 0x06, 0x48, 0x19, - 0x07, 0x74, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x14, 0x80, 0x28, 0x10, 0x0e, - 0x06, 0x14, 0x14, 0x0e, 0x0e, 0x0e, 0x00, 0x0f, 0x14, 0x14, 0x14, 0x14, - 0xe3, 0x1b, 0x79, 0x44, 0x06, 0x00, 0x3f, 0xff, 0x01, 0x09, 0x07, 0x20, - 0x01, 0x01, 0x01, 0x10, 0x08, 0x08, 0x08, 0x20, 0x05, 0x01, 0x01, 0x02, - 0x02, 0x08, 0x13, 0x02, 0x13, 0x13, 0x20, 0x05, 0x13, 0x04, 0x02, 0x40, - 0x02, 0x20, 0x01, 0x03, 0x0e, 0x0d, 0x0e, 0x0c, 0x0e, 0x04, 0x03, 0x03, - 0x0d, 0x0d, 0x0d, 0x20, 0x05, 0x03, 0x03, 0x00, 0x04, 0x0a, 0x08, 0x0a, - 0x08, 0x0b, 0x04, 0x04, 0x00, 0x09, 0x09, 0x09, 0x0a, 0x04, 0x04, 0x04, - 0x04, 0x00, 0x05, 0x0b, 0x09, 0x0b, 0x09, 0x0c, 0x05, 0x05, 0x00, 0x0a, - 0x0a, 0x0a, 0x0b, 0x05, 0x05, 0x05, 0x05, 0x00, 0x06, 0x11, 0x12, 0x12, - 0x11, 0x11, 0x06, 0x06, 0x22, 0x11, 0x11, 0x30, 0x05, 0x06, 0x06, 0x07, - 0x30, 0x7c, 0x14, 0x50, 0x07, 0x20, 0x06, 0x05, 0x20, 0x05, 0x07, 0x07, - 0x08, 0x08, 0xc6, 0x20, 0x15, 0x20, 0x6c, 0x07, 0x07, 0x13, 0x20, 0x72, - 0x20, 0x74, 0x07, 0x81, 0x20, 0x35, 0x07, 0x09, 0x09, 0x06, 0x06, 0x14, - 0x20, 0x05, 0xc2, 0x20, 0x54, 0x20, 0x3d, 0x10, 0x10, 0x0a, 0x0a, 0x28, - 0xd6, 0x12, 0x80, 0x20, 0x53, 0x0a, 0x0b, 0x13, 0x0c, 0x13, 0x12, 0x12, - 0x00, 0x0b, 0x0b, 0x12, 0x12, 0x12, 0x13, 0x0b, 0x0b, 0x00, 0x0b, 0x0b, - 0x0c, 0x0c, 0x0a, 0x0c, 0x0a, 0x0a, 0x34, 0x0c, 0x0c, 0x40, 0x0a, 0x20, - 0x01, 0x0d, 0x30, 0xb4, 0x01, 0x0d, 0xc2, 0x40, 0x06, 0x20, 0xa3, 0x0d, - 0x0e, 0x0d, 0x0b, 0x20, 0x01, 0x0e, 0x60, 0x0e, 0x30, 0x1a, 0x20, 0xfb, - 0x0e, 0x0f, 0x06, 0x04, 0x08, 0x0a, 0x04, 0x05, 0x0f, 0x0f, 0x20, 0x64, - 0x06, 0x29, 0x23, 0x0f, 0x00, 0x10, 0x03, 0x0e, 0x03, 0x0d, 0x02, 0x10, - 0x10, 0xc0, 0x30, 0xda, 0x29, 0x3a, 0x10, 0x11, 0x04, 0x02, 0x04, 0x02, - 0x18, 0x03, 0x11, 0x11, 0x30, 0xda, 0x30, 0xb3, 0x12, 0x05, 0x03, 0x00, - 0x07, 0x03, 0x04, 0x12, 0x12, 0x04, 0x04, 0x06, 0x5c, 0x05, 0x20, 0x73, - 0x12, 0xf9, 0x5f, 0xf1, 0x57, 0x3f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x54, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x7f, 0x28, 0x20, - 0x11, 0x00, 0x00, 0x00, 0x01, 0x54, 0xe9, 0x30, 0xc8, 0x30, 0xd3, 0x10, - 0x30, 0xa2, 0x30, 0x06, 0x78, 0x1d, 0x4c, 0x00, 0x61, 0x00, 0x06, 0x74, - 0x00, 0x76, 0x00, 0x69, 0x20, 0x07, 0x06, 0x50, 0x7f, 0x65, 0x82, 0x20, - 0x7f, 0x74, 0x00, 0x6f, 0x00, 0x6e, 0x20, 0x83, 0x65, 0xa3, 0x06, 0x80, - 0x7f, 0x6c, 0x21, 0x07, 0x6e, 0x00, 0x64, 0x06, 0xe0, 0xff, 0x06, 0x11, - 0x83, 0xc0, 0x51, 0x7f, 0x06, 0x70, 0x7d, 0x00, 0x00, 0xc9, 0x62, 0x31, - 0x81, 0x08, 0xf4, 0x7e, 0x9a, 0x4e, 0x06, 0x7b, 0x1d, 0x7c, 0xb7, 0xb8, - 0x07, 0xd2, 0x44, 0xbe, 0x44, 0xc5, 0x06, 0x93, 0x7f, 0x32, 0xff, 0x06, - 0x72, 0x7d, 0xa0, 0x73, 0x7f, 0xf3, 0x06, 0x81, 0xff, 0x1b, 0x04, 0x30, - 0x04, 0x42, 0x01, 0x04, 0x32, 0x04, 0x38, 0x04, 0x4f, 0x04, 0x0e, 0x54, - 0xff, 0x9e, 0x10, 0x0e, 0xd0, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, - 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0xc4, 0x59, 0x00, 0x11, 0x0a, 0x00, 0x00, - 0x30, 0x01, 0x55, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x27, 0xeb, 0x88, 0x13, 0x00, 0x00, 0x00, - 0x02, 0x55, 0xde, 0x30, 0xbb, 0x30, 0xeb, 0x10, 0x30, 0x0c, 0x77, 0x06, - 0x78, 0x1d, 0x4d, 0x00, 0x61, 0x00, 0x01, 0x73, 0x00, 0x65, 0x00, 0x72, - 0x00, 0x75, 0x10, 0x16, 0x40, 0x7f, 0x00, 0x6c, 0x9a, 0x5e, 0x58, 0x62, - 0x53, 0x3a, 0x53, 0x80, 0x06, 0x7b, 0x1d, 0xc8, 0xb9, 0x38, 0xc1, 0xe8, - 0xb8, 0x20, 0x10, 0x00, 0xfc, 0xc8, 0x10, 0x06, 0x53, 0x7f, 0x1c, 0x04, - 0x30, 0x04, 0x00, 0x41, 0x04, 0x35, 0x04, 0x40, 0x04, 0x43, 0x04, 0x8a, - 0x10, 0x1e, 0x34, 0xff, 0x01, 0x05, 0x05, 0x20, 0x01, 0x01, 0x20, 0x06, - 0x04, 0x90, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x55, 0x79, 0x30, - 0x15, 0xec, 0x30, 0xa2, 0x06, 0xa8, 0x17, 0x42, 0x48, 0x13, 0x65, 0x28, - 0x1d, 0x81, 0x10, 0x16, 0x50, 0x7f, 0x2f, 0x4f, 0xcc, 0x91, 0x9a, 0x4e, - 0x06, 0x98, 0x17, 0x03, 0xa0, 0xbc, 0x08, 0xb8, 0x44, 0xc5, 0x06, 0x98, - 0x17, 0x0e, 0xf3, 0x7f, 0x5a, 0x11, 0x48, 0x13, 0x35, 0x28, 0x1d, 0x10, - 0x1e, 0x54, 0xff, 0x02, 0x38, 0x0c, 0x01, 0x40, 0x02, 0x40, 0x06, 0x02, - 0x02, 0x02, 0x02, 0x46, 0xeb, 0x40, 0xba, 0x28, 0x17, 0x04, 0x55, 0xd6, - 0x30, 0xfc, 0x30, 0x0a, 0xbf, 0x30, 0xfb, 0x30, 0x30, 0x07, 0xc6, 0x06, - 0x28, 0x1f, 0x42, 0x8a, 0x2f, 0xa7, 0x74, 0x00, 0x68, 0x2f, 0xb5, 0x2d, - 0x80, 0x0b, 0x65, 0x80, 0x10, 0x15, 0xa0, 0x7f, 0x03, 0x5e, 0x54, 0x58, - 0x03, 0x5e, 0xf0, 0x40, 0x6c, 0x06, 0x78, 0x19, 0x80, 0xbd, 0xc0, 0xd0, - 0x80, 0xbd, 0x30, 0x4c, 0xd1, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x11, - 0x04, 0x43, 0x04, 0x57, 0x42, 0x28, 0x15, 0x2d, 0x60, 0x09, 0x35, 0x05, - 0xe8, 0x1f, 0x10, 0x17, 0x04, 0xff, 0x38, 0x0c, 0x20, 0x02, 0x03, 0x40, - 0x06, 0x03, 0x03, 0x03, 0x03, 0x8b, 0x00, 0xeb, 0x18, 0x14, 0x00, 0x00, - 0x05, 0x55, 0xec, 0x0d, 0x30, 0xea, 0x30, 0xd9, 0x06, 0x28, 0x0f, 0x7f, - 0xff, 0x4c, 0x4f, 0xaf, 0x18, 0x69, 0x00, 0x62, 0x05, 0xc8, 0x0d, 0x10, - 0x0f, 0x90, 0x7f, 0xb1, 0x83, 0xcc, 0x10, 0x91, 0x1d, 0x8d, 0x06, 0x78, - 0x15, 0x00, 0x00, 0x08, 0xb8, 0x0d, 0xac, 0xb9, 0xa0, 0xbc, 0x06, 0x78, - 0x15, 0x0f, 0x13, 0x7f, 0x1b, 0x28, 0x09, 0x06, 0x40, 0x04, 0x38, 0x04, - 0x31, 0x06, 0x08, 0x11, 0x10, 0x17, 0x54, 0xff, 0x04, 0x90, 0x38, 0x0c, - 0x03, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, 0x00, 0x77, 0xeb, 0xf3, - 0x13, 0x00, 0x00, 0x06, 0x55, 0x00, 0xde, 0x30, 0xd5, 0x30, 0xa7, 0x30, - 0xc6, 0x30, 0x15, 0xf3, 0x30, 0xb0, 0x06, 0x48, 0x1d, 0x4d, 0x2f, 0xa9, - 0x66, 0x2f, 0xa1, 0x44, 0x74, 0x2f, 0xa5, 0x6e, 0x00, 0x67, 0x10, 0x16, - 0x00, 0x7f, 0x6c, 0x9a, 0x08, 0x39, 0x8d, 0xd5, 0x6e, 0x06, 0x98, 0x17, - 0xc8, 0xb9, 0x98, 0x18, 0xd3, 0x61, 0xd1, 0x06, 0x98, 0x17, 0x0e, 0xf3, - 0x7f, 0x1c, 0x04, 0x30, 0x28, 0x04, 0x44, 0x28, 0x1b, 0x42, 0x28, 0x1f, - 0x3d, 0x04, 0x33, 0xd2, 0x06, 0x08, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x05, - 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x05, 0x82, 0x20, 0x05, 0x05, 0x05, - 0xcc, 0xea, 0x5e, 0x28, 0x17, 0x07, 0x00, 0x55, 0xe2, 0x30, 0xcf, 0x30, - 0xfc, 0x30, 0xec, 0x22, 0x30, 0xb9, 0x28, 0x1f, 0xfc, 0x30, 0xaf, 0x06, - 0x08, 0x1b, 0x4d, 0x0a, 0x00, 0x6f, 0x00, 0x68, 0x28, 0x1b, 0x6c, 0x2f, - 0xb7, 0x27, 0x02, 0x00, 0x73, 0x00, 0x20, 0x00, 0x48, 0x20, 0x11, 0x65, - 0x20, 0x00, 0x6b, 0x10, 0x15, 0x60, 0x7f, 0xab, 0x83, 0xc8, 0x54, 0xb1, - 0x01, 0x83, 0xaf, 0x65, 0xe1, 0x80, 0x4b, 0x51, 0x06, 0x38, 0x1d, 0x00, - 0xa8, 0xba, 0x60, 0xd5, 0x08, 0xb8, 0xa4, 0xc2, 0x0c, 0xc4, 0xd6, 0x6c, - 0xd0, 0x06, 0x38, 0x1d, 0x0e, 0xf3, 0x7f, 0x1c, 0x04, 0x14, 0x3e, 0x04, - 0x45, 0x28, 0x1b, 0x3b, 0x28, 0x1b, 0x41, 0x04, 0x01, 0x2d, 0x00, 0x25, - 0x04, 0x43, 0x04, 0x3a, 0x05, 0xa8, 0x1d, 0x94, 0x10, 0x16, 0xf4, 0xff, - 0x06, 0x06, 0x70, 0x01, 0x07, 0x40, 0x0a, 0x8f, 0xea, 0x50, 0x88, 0x28, - 0x17, 0x08, 0x28, 0x17, 0xb3, 0x30, 0xc8, 0x30, 0x06, 0xed, 0x30, 0xf3, - 0x30, 0xb0, 0x06, 0x08, 0x13, 0x78, 0x17, 0x6b, 0xae, 0x28, 0x19, 0x6f, - 0x2f, 0xb1, 0x6c, 0x28, 0x23, 0x05, 0xff, 0xb3, 0x10, 0x0e, 0xf0, 0x7f, - 0xab, 0x01, 0x83, 0x0d, 0x97, 0x79, 0x72, 0x86, 0x96, 0x06, 0x38, 0x13, - 0x81, 0x58, 0x17, 0x54, 0xcf, 0xc0, 0xd2, 0x71, 0xb8, 0x06, 0x38, 0x13, - 0xd1, 0x0f, 0x33, 0x7f, 0x38, 0x17, 0x3a, 0x28, 0x19, 0x3e, 0x04, 0x42, - 0x28, 0x1b, 0x06, 0x3e, 0x04, 0x3d, 0x04, 0x33, 0x05, 0xa8, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x07, 0x50, 0x07, 0x70, 0x01, 0x06, 0x40, 0x0a, 0x2d, - 0xeb, 0xab, 0x14, 0x00, 0x00, 0x00, 0x09, 0x55, 0xaf, 0x30, 0xa1, 0x30, - 0x00, 0xaf, 0x30, 0xcf, 0x30, 0xb9, 0x30, 0xcd, 0x30, 0x6b, 0xc3, 0x20, - 0x09, 0x05, 0xf8, 0x1b, 0x51, 0x2f, 0xab, 0x63, 0x4f, 0xb1, 0x5f, 0xad, - 0x60, 0x4e, 0x05, 0xaf, 0xab, 0x10, 0x0f, 0x30, 0x7f, 0xa0, 0x52, 0xe5, - 0x67, 0xaf, 0x04, 0x65, 0x85, 0x51, 0x4b, 0x51, 0x06, 0x58, 0x19, 0x74, - 0xce, 0x03, 0x28, 0xcc, 0xa4, 0xc2, 0x25, 0xb1, 0x06, 0x78, 0x17, 0x0e, - 0xf3, 0x7f, 0x44, 0x26, 0x28, 0x07, 0x30, 0x04, 0x47, 0x20, 0x03, 0x41, - 0x04, 0x06, 0x2d, 0x00, 0x1d, 0x04, 0x35, 0x28, 0x25, 0x10, 0x1d, 0xb4, - 0xff, 0x08, 0x51, 0x08, 0x70, 0x01, 0x09, 0x40, 0x0a, 0x94, 0xea, 0x69, - 0x28, 0x17, 0x40, 0x0a, 0x28, 0x17, 0xc6, 0x30, 0xa3, 0x30, 0xf3, 0x30, - 0x68, 0xb0, 0x06, 0x08, 0x11, 0x78, 0x17, 0x75, 0x2f, 0xa9, 0x68, 0x00, - 0x69, 0xc3, 0x06, 0x0f, 0xa9, 0x10, 0x0f, 0x50, 0x7f, 0xe4, 0x53, 0xf7, - 0x5e, 0x06, 0x58, 0x11, 0x5f, 0xff, 0x0e, 0xe0, 0xcf, 0x05, 0xd3, 0x06, - 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x38, 0x17, 0x43, 0x03, 0x04, 0x42, 0x04, - 0x38, 0x04, 0x3d, 0x28, 0x21, 0x10, 0x1e, 0x14, 0xff, 0x28, 0x09, 0x09, - 0x70, 0x01, 0x0a, 0x40, 0x0a, 0x61, 0xea, 0xb4, 0x00, 0x13, 0x00, 0x00, - 0x0b, 0x55, 0xbf, 0x30, 0xfc, 0x00, 0x30, 0xd0, 0x30, 0xfb, 0x30, 0xc4, - 0x30, 0xa7, 0xaa, 0x20, 0x09, 0xab, 0x06, 0x08, 0x1d, 0x54, 0x4f, 0xab, - 0x62, 0x2f, 0xb5, 0x2d, 0xa8, 0x20, 0x0b, 0x73, 0x4f, 0xad, 0x61, 0x10, - 0x15, 0xb0, 0x7f, 0x58, 0xf4, 0x5d, 0x08, 0xc7, 0x91, 0x61, 0x53, 0x06, - 0x78, 0x1b, 0xc0, 0xd0, 0x14, 0x06, 0xbc, 0xb4, 0xcc, 0x74, 0xce, 0x06, - 0x78, 0x1b, 0x0e, 0xf3, 0x7f, 0x22, 0x0a, 0x04, 0x30, 0x04, 0x31, 0x20, - 0x03, 0x2d, 0x28, 0x21, 0x35, 0x32, 0x04, 0x3a, 0x20, 0x0d, 0x10, 0x1d, - 0xd4, 0xff, 0x0a, 0x0a, 0x70, 0x01, 0x08, 0x84, 0x40, 0x0a, 0x03, 0xeb, - 0x57, 0x14, 0x00, 0x3f, 0xff, 0x01, 0x05, 0x54, 0x05, 0x20, 0x01, 0x01, - 0x20, 0x06, 0x04, 0x20, 0x05, 0x01, 0x01, 0x48, 0x02, 0x30, 0x04, 0x01, - 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x24, 0x02, 0x03, 0x30, 0x04, 0x02, - 0x03, 0x40, 0x06, 0x03, 0x03, 0x12, 0x03, 0x03, 0x04, 0x30, 0x04, 0x03, - 0x04, 0x40, 0x06, 0x04, 0x0b, 0x04, 0x04, 0x04, 0x05, 0x30, 0x04, 0x04, - 0x20, 0x3d, 0x20, 0x09, 0x95, 0x30, 0x4a, 0x06, 0x06, 0x70, 0x01, 0x07, - 0x50, 0x05, 0x07, 0x70, 0x01, 0x97, 0x50, 0x0a, 0x08, 0x08, 0x70, 0x01, - 0x09, 0x50, 0x05, 0xe8, 0xbf, 0xf0, 0xb7, 0x80, 0x3f, 0xff, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x56, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x85, 0x21, 0xc5, 0x06, 0x00, 0x00, 0x00, 0x01, 0x56, 0xea, 0x30, - 0xd2, 0x30, 0xc6, 0x00, 0x30, 0xf3, 0x30, 0xb7, 0x30, 0xe5, 0x30, 0xbf, - 0x30, 0x30, 0xa4, 0x20, 0x09, 0x05, 0xd8, 0x27, 0x4c, 0x00, 0x69, 0x00, - 0x01, 0x65, 0x00, 0x63, 0x00, 0x68, 0x00, 0x74, 0x20, 0x07, 0x16, 0x6e, - 0x00, 0x73, 0x40, 0x07, 0x69, 0x20, 0x09, 0x10, 0x15, 0x50, 0x7f, 0x17, - 0x00, 0x52, 0x2f, 0x65, 0x66, 0x65, 0xeb, 0x58, 0x7b, 0x40, 0x76, 0x06, - 0x5b, 0x1f, 0xac, 0xb9, 0x88, 0xd7, 0x50, 0xd1, 0x03, 0x88, 0xc2, 0xc0, - 0xd0, 0x78, 0xc7, 0x06, 0x3b, 0xa1, 0x0e, 0xf3, 0x7f, 0x00, 0x1b, 0x04, - 0x38, 0x04, 0x45, 0x04, 0x42, 0x04, 0x05, 0x35, 0x04, 0x3d, 0x04, 0x48, - 0x40, 0x07, 0x39, 0x20, 0x09, 0x9e, 0x10, 0x1d, 0x94, 0xff, 0x01, 0x01, - 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0xc4, 0x59, 0x00, 0x11, 0x0a, 0x00, 0x00, - 0x30, 0x01, 0x57, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xe2, 0x26, 0xfa, 0x11, 0x00, 0x00, 0x00, - 0x02, 0x57, 0xf4, 0x30, 0xa3, 0x30, 0xea, 0x00, 0x30, 0xcb, 0x30, 0xe5, - 0x30, 0xb9, 0x30, 0xde, 0x40, 0x5d, 0x06, 0x18, 0x23, 0x56, 0x00, 0x69, - 0x00, 0x6c, 0x00, 0x46, 0x6e, 0x20, 0x05, 0x75, 0x00, 0x73, 0x06, 0x28, - 0xa2, 0x10, 0x06, 0xf0, 0x7f, 0x43, 0x22, 0x00, 0x6f, 0x21, 0xfd, 0x64, - 0x00, 0x61, 0x20, 0x03, 0x6f, 0x2d, 0x00, 0x20, 0x20, 0x09, 0x65, 0x20, - 0x05, 0x72, 0x15, 0x61, 0x05, 0x0a, 0xb4, 0x00, 0xf4, 0x7e, 0x14, 0x5c, - 0xbd, 0x7e, 0xaf, 0x65, 0x20, 0xbf, 0x53, 0x06, 0x5b, 0x1f, 0x4c, 0xbe, - 0x74, 0xb2, 0xa4, 0x07, 0xc2, 0x20, 0x00, 0xfc, 0xc8, 0x06, 0x5b, 0x9f, - 0x07, 0x73, 0x7f, 0x05, 0x11, 0xe9, 0x80, 0x00, 0x5c, 0xff, 0x12, 0x04, - 0x38, 0x04, 0x3b, 0x04, 0x4c, 0x01, 0x04, 0x3d, 0x04, 0x4e, 0x04, 0x41, - 0x04, 0x10, 0x16, 0x14, 0xff, 0x8a, 0x06, 0xf6, 0xff, 0x01, 0x0a, 0x0a, - 0x20, 0x01, 0x01, 0x20, 0x06, 0x02, 0x91, 0x20, 0x05, 0x01, 0x01, 0x58, - 0x17, 0x03, 0x57, 0xa2, 0x28, 0x15, 0x05, 0xfc, 0x30, 0xc8, 0x30, 0xa5, - 0x06, 0x68, 0x17, 0x41, 0x28, 0x15, 0x1e, 0x79, 0x00, 0x74, 0x06, 0x68, - 0x15, 0x10, 0x07, 0x10, 0x7f, 0x00, 0x58, 0x17, 0x05, 0x92, 0x15, 0x3f, - 0x04, 0x96, 0x29, 0x52, 0xfe, 0x56, 0x06, 0xa8, 0x17, 0xc5, 0xac, 0x1a, - 0xb9, 0x2c, 0xd2, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0x10, 0x28, 0x15, - 0x38, 0x0e, 0x04, 0x42, 0x04, 0x43, 0x06, 0x48, 0x15, 0x10, 0x0f, 0x14, - 0xff, 0x06, 0xf6, 0xff, 0x02, 0x90, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, - 0x02, 0x02, 0x02, 0x02, 0x10, 0xac, 0x26, 0x1a, 0x28, 0x17, 0x04, 0x57, - 0xab, 0x30, 0x1a, 0xa6, 0x30, 0xca, 0x06, 0x68, 0x13, 0x3f, 0xff, 0x4b, - 0x2e, 0x29, 0x75, 0xf8, 0x4e, 0x19, 0x06, 0x58, 0x17, 0x10, 0x06, 0xf0, - 0x7f, 0x00, 0x58, 0x17, 0x05, 0x92, 0x15, 0x03, 0x80, 0xb3, 0x40, 0x7e, - 0x06, 0x98, 0x15, 0x00, 0x00, 0x74, 0xce, 0xb0, 0xc6, 0x31, 0x98, 0xb0, - 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x1a, 0x04, 0x30, 0x28, 0x13, 0x7a, - 0x3d, 0x20, 0x05, 0x06, 0x58, 0x17, 0x10, 0x0e, 0xf4, 0xff, 0x06, 0xf6, - 0xff, 0x03, 0x38, 0x0c, 0x02, 0x50, 0x03, 0x20, 0x06, 0x03, 0x20, 0x05, - 0x03, 0x03, 0x08, 0x27, 0x40, 0x02, 0x28, 0x17, 0x05, 0x57, 0xaf, 0x30, - 0xe9, 0x30, 0x05, 0xa4, 0x30, 0xda, 0x30, 0xc0, 0x06, 0x68, 0x19, 0x4b, - 0x2f, 0xaf, 0x00, 0x61, 0x00, 0x69, 0x00, 0x70, 0x00, 0x17, 0x01, 0xf0, - 0x3e, 0x35, 0x10, 0x0d, 0xf0, 0x7f, 0x00, 0x78, 0x17, 0x05, 0x72, 0x15, - 0x4b, 0x51, 0xb1, 0x83, 0x08, 0x69, 0x4f, 0xbe, 0x8f, 0x06, 0x78, 0x19, - 0x74, 0xd0, 0x7c, 0x01, 0xb7, 0x74, 0xc7, 0x98, 0xd3, 0xe4, 0xb2, 0x06, - 0x58, 0x19, 0x88, 0x0e, 0xf3, 0x7f, 0x1a, 0x04, 0x3b, 0x28, 0x19, 0x39, - 0x04, 0x3f, 0x0e, 0x04, 0x35, 0x04, 0x34, 0x28, 0x23, 0x10, 0x15, 0xf4, - 0xff, 0x06, 0xf6, 0xff, 0x04, 0x94, 0x38, 0x0c, 0x03, 0x04, 0x20, 0x06, - 0x04, 0x20, 0x05, 0x04, 0x04, 0x00, 0x9e, 0x27, 0x07, 0x0f, 0x00, 0x00, - 0x06, 0x57, 0x00, 0xde, 0x30, 0xea, 0x30, 0xe4, 0x30, 0xf3, 0x30, 0x15, - 0xdd, 0x30, 0xec, 0x06, 0x48, 0x19, 0x4d, 0x2f, 0xaf, 0x72, 0x28, 0x17, - 0x54, 0x6a, 0x2f, 0xb7, 0x6d, 0x28, 0x1d, 0x6f, 0x28, 0x27, 0x17, 0x01, - 0xe0, 0x10, 0x0d, 0x90, 0x7f, 0x00, 0x58, 0x17, 0x05, 0x92, 0x15, 0x6c, - 0x9a, 0xcc, 0x91, 0x6c, 0x04, 0x62, 0xca, 0x6c, 0x17, 0x52, 0x06, 0x58, - 0x19, 0xc8, 0xb9, 0x00, 0xac, 0xb9, 0x8c, 0xc5, 0xf4, 0xd3, 0x08, 0xb8, - 0xd0, 0x06, 0x58, 0x17, 0x0e, 0xf3, 0x7f, 0x1c, 0x28, 0x15, 0x40, 0x04, - 0x38, 0x04, 0x15, 0x4f, 0x04, 0x3c, 0x28, 0x1b, 0x3e, 0x28, 0x25, 0x35, - 0x05, 0xc8, 0x1b, 0xd2, 0x10, 0x0e, 0xf4, 0xff, 0x06, 0xf6, 0xff, 0x05, - 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x05, 0x80, 0x20, 0x05, 0x05, 0x05, - 0xca, 0x26, 0x9b, 0x10, 0x00, 0x00, 0x00, 0x07, 0x57, 0xd1, 0x30, 0xcd, - 0x30, 0xd9, 0x08, 0x30, 0xb8, 0x30, 0xb9, 0x06, 0x48, 0x15, 0x00, 0x00, - 0x50, 0xa8, 0x2f, 0xad, 0x6e, 0x2e, 0x23, 0x76, 0x2f, 0xaf, 0x7e, 0x01, - 0x79, 0x38, 0x00, 0x73, 0x10, 0x0d, 0xe0, 0x7f, 0x00, 0x58, 0x17, 0x05, - 0x92, 0x15, 0x15, 0x5e, 0x85, 0x01, 0x6d, 0xe6, 0x97, 0xe5, 0x65, 0xaf, - 0x65, 0x06, 0x58, 0x17, 0x00, 0x0c, 0xd3, 0x24, 0xb1, 0xa0, 0xbc, 0xc0, - 0xc9, 0x35, 0xa4, 0xc2, 0x06, 0x58, 0x17, 0x0e, 0xf3, 0x7f, 0x1f, 0x28, - 0x17, 0x3d, 0x28, 0x0b, 0x57, 0x32, 0x28, 0x0f, 0x36, 0x28, 0x1f, 0x41, - 0x05, 0xc8, 0x15, 0x10, 0x0f, 0x14, 0xff, 0x06, 0xf6, 0xff, 0x4a, 0x06, - 0x38, 0x0c, 0x05, 0x06, 0x20, 0x06, 0x06, 0x20, 0x05, 0x06, 0x00, 0x06, - 0xa1, 0x27, 0x54, 0x11, 0x00, 0x00, 0x08, 0x00, 0x57, 0xb7, 0x30, 0xe3, - 0x30, 0xa6, 0x30, 0xec, 0x22, 0x30, 0xa4, 0x06, 0x68, 0x17, 0x60, 0x01, - 0x69, 0x2f, 0xb1, 0x75, 0xdc, 0x2f, 0xa5, 0x30, 0x07, 0x69, 0x10, 0x0e, - 0x00, 0x7f, 0x00, 0x58, 0x17, 0x05, 0x92, 0x15, 0x0c, 0x5e, 0x02, 0x65, - 0x59, 0x29, 0x52, 0x7e, 0x82, 0x06, 0x58, 0x15, 0x00, 0x00, 0x00, 0xe4, - 0xc0, 0xb8, 0xc6, 0xb4, 0xb7, 0x74, 0x60, 0xc7, 0x06, 0x58, 0x15, 0x0f, - 0x13, 0x7f, 0x28, 0x04, 0x4f, 0x04, 0x43, 0x2e, 0x04, 0x3b, 0x20, 0x05, - 0x39, 0x05, 0xe8, 0x11, 0x10, 0x0f, 0x54, 0xff, 0x06, 0xf6, 0xff, 0x07, - 0x94, 0x38, 0x0c, 0x06, 0x07, 0x20, 0x06, 0x0a, 0x20, 0x05, 0x07, 0x07, - 0x00, 0xc6, 0x27, 0x93, 0x10, 0x00, 0x00, 0x09, 0x57, 0x44, 0xbf, 0x28, - 0x15, 0xe9, 0x30, 0xb2, 0x06, 0x68, 0x15, 0x00, 0x00, 0x56, 0x54, 0x48, - 0x15, 0x72, 0x2f, 0xb5, 0x67, 0x2f, 0xb5, 0x06, 0xd0, 0x7f, 0x17, 0x70, - 0x01, 0x10, 0x06, 0x10, 0x7f, 0x00, 0x58, 0x17, 0x05, 0x91, 0x95, 0x76, - 0x96, 0xc9, 0x62, 0x20, 0x3c, 0x68, 0x06, 0x78, 0x15, 0x00, 0x00, 0xc0, - 0xd0, 0xb0, 0x06, 0xc6, 0x7c, 0xb7, 0x8c, 0xac, 0x06, 0x78, 0x17, 0x0e, - 0xf2, 0xff, 0x22, 0x28, 0x04, 0x30, 0x28, 0x17, 0x40, 0x20, 0x05, 0x33, - 0x04, 0x35, 0xe9, 0x06, 0x28, 0x19, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0x30, - 0x7f, 0x08, 0x38, 0x0c, 0x07, 0x08, 0x40, 0x06, 0x00, 0x08, 0x08, 0x08, - 0x08, 0x49, 0x27, 0xd9, 0x0f, 0x00, 0x00, 0x00, 0x0a, 0x57, 0xc6, 0x30, - 0xeb, 0x30, 0x05, 0xb7, 0x30, 0xa7, 0x30, 0xa4, 0x06, 0x68, 0x19, 0x54, - 0x2e, 0x1f, 0x1f, 0x6c, 0x00, 0x61, 0x4f, 0xb5, 0x06, 0x1f, 0xad, 0x10, - 0x07, 0x10, 0x7f, 0x00, 0x78, 0x17, 0x05, 0x72, 0x15, 0x00, 0x79, 0x72, - 0x14, 0x5c, 0x0c, 0x5e, 0x7e, 0x82, 0x81, 0x06, 0x78, 0x19, 0x54, 0xd1, - 0xe4, 0xc0, 0x74, 0xc7, 0x06, 0x78, 0x15, 0xa0, 0x0f, 0x13, 0x7f, 0x22, - 0x28, 0x0d, 0x3b, 0x04, 0x4c, 0x04, 0x48, 0x0e, 0x04, 0x4f, 0x04, 0x39, - 0x06, 0x48, 0x17, 0x10, 0x0e, 0xd4, 0xff, 0x06, 0xf6, 0xff, 0x09, 0x90, - 0x38, 0x0c, 0x08, 0x09, 0x40, 0x06, 0x09, 0x09, 0x09, 0x09, 0x10, 0xcf, - 0x27, 0xd2, 0x28, 0x17, 0x0b, 0x57, 0xa6, 0x30, 0x18, 0xc6, 0x30, 0xca, - 0x06, 0x68, 0x13, 0x3f, 0xff, 0x55, 0x00, 0x74, 0xbc, 0x2e, 0x21, 0x6e, - 0x2f, 0xb5, 0x10, 0x0e, 0x50, 0x7f, 0x00, 0x58, 0x17, 0x05, 0x92, 0x15, - 0x4c, 0x4e, 0x08, 0x30, 0x75, 0xb3, 0x7e, 0x06, 0x78, 0x15, 0x00, 0x00, - 0xb0, 0x06, 0xc6, 0x4c, 0xd1, 0x98, 0xb0, 0x06, 0x98, 0x17, 0x0e, 0xf3, - 0x7f, 0x23, 0x23, 0x04, 0x42, 0x28, 0x19, 0x3d, 0x04, 0x30, 0x06, 0x28, - 0x13, 0x10, 0x0f, 0x34, 0xff, 0xa4, 0x06, 0xf6, 0xff, 0x0a, 0x38, 0x0c, - 0x09, 0x0a, 0x40, 0x06, 0x0a, 0x0a, 0x02, 0x0a, 0x0a, 0x76, 0x27, 0x35, - 0x12, 0x00, 0x3f, 0xff, 0x01, 0x94, 0x30, 0x1c, 0x0a, 0x01, 0x20, 0x06, - 0x02, 0x20, 0x05, 0x01, 0x01, 0x48, 0x02, 0x30, 0x04, 0x01, 0x02, 0x40, - 0x06, 0x02, 0x02, 0x02, 0x25, 0x02, 0x03, 0x30, 0x04, 0x02, 0x03, 0x20, - 0x06, 0x03, 0x20, 0x05, 0x12, 0x03, 0x03, 0x04, 0x30, 0x04, 0x03, 0x04, - 0x20, 0x06, 0x04, 0x89, 0x20, 0x05, 0x04, 0x04, 0x05, 0x30, 0x04, 0x04, - 0x05, 0x20, 0x06, 0x44, 0x05, 0x20, 0x05, 0x05, 0x05, 0x06, 0x30, 0x04, - 0x05, 0x06, 0xa2, 0x20, 0x06, 0x06, 0x20, 0x05, 0x06, 0x06, 0x07, 0x30, - 0x04, 0x06, 0x51, 0x07, 0x20, 0x06, 0x0a, 0x20, 0x05, 0x07, 0x07, 0x08, - 0x30, 0x04, 0x3e, 0x07, 0x08, 0x40, 0x06, 0x48, 0xb9, 0xe8, 0xbf, 0xf0, - 0xb7, 0x3f, 0xff, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x58, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x47, 0x23, 0x5b, 0x04, 0x00, 0x00, 0x00, - 0x01, 0x58, 0xeb, 0x30, 0xaf, 0x30, 0xbb, 0x06, 0x30, 0xf3, 0x30, 0xd6, - 0x30, 0x30, 0x09, 0x06, 0x18, 0x23, 0x4c, 0x00, 0x00, 0x75, 0x00, 0x78, - 0x00, 0x65, 0x00, 0x6d, 0x08, 0x00, 0x62, 0x00, 0x6f, 0x20, 0x0b, 0x72, - 0x00, 0x67, 0xed, 0x0e, 0x80, 0x7f, 0x06, 0x10, 0xfd, 0x51, 0x7f, 0x73, - 0x20, 0x01, 0xb0, 0x81, 0x6f, 0x06, 0xc0, 0xff, 0x80, 0x05, 0xb0, 0x7d, - 0x00, 0x00, 0x62, 0x53, 0xee, 0x68, 0x21, 0x40, 0x58, 0x06, 0x9b, 0x1b, - 0xe9, 0xb8, 0x48, 0xc1, 0x80, 0xbd, 0x0e, 0x74, 0xb9, 0x6c, 0xd0, 0x06, - 0x5b, 0x9f, 0x07, 0x32, 0x7f, 0x06, 0xb1, 0xff, 0x1b, 0x00, 0x04, 0x4e, - 0x04, 0x3a, 0x04, 0x41, 0x04, 0x35, 0x00, 0x04, 0x3c, 0x04, 0x31, 0x04, - 0x43, 0x04, 0x40, 0x39, 0x04, 0x33, 0x25, 0x17, 0x10, 0x06, 0x54, 0xff, - 0x10, 0x06, 0x30, 0xff, 0x01, 0x01, 0xd0, 0x01, 0xe0, 0x58, 0x17, 0x01, - 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x59, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xdd, 0x1d, 0x3d, 0x0f, 0x00, 0x00, 0x00, 0x01, 0x59, 0xde, 0x30, - 0xb1, 0x30, 0xc9, 0x04, 0x30, 0xcb, 0x30, 0xa2, 0x30, 0x06, 0x58, 0x1f, - 0x4d, 0x00, 0x00, 0x61, 0x00, 0x63, 0x00, 0x65, 0x00, 0x64, 0x00, 0x04, - 0x6f, 0x00, 0x6e, 0x00, 0x69, 0x20, 0x0d, 0x20, 0x00, 0x10, 0x28, 0x00, - 0x52, 0x20, 0x11, 0x70, 0x00, 0x75, 0x00, 0x14, 0x62, 0x00, 0x6c, 0x20, - 0x13, 0x63, 0x20, 0x13, 0x6f, 0x00, 0x15, 0x66, 0x00, 0x29, 0x04, 0x80, - 0x7f, 0xe9, 0x40, 0x7f, 0x69, 0x20, 0x81, 0x55, 0x65, 0x60, 0x7f, 0xe9, - 0xa0, 0x7f, 0x71, 0x20, 0x89, 0x65, 0x04, 0x40, 0x7d, 0xad, 0x50, 0xff, - 0x7a, 0xa0, 0xff, 0x65, 0x21, 0x05, 0x00, 0x11, 0x01, 0x6b, 0x04, 0x60, - 0x7d, 0xee, 0x01, 0x11, 0x7f, 0x71, 0x81, 0x31, 0x97, 0x64, 0x21, 0x9f, - 0x03, 0xf1, 0x83, 0x00, 0xb1, 0xff, 0xfa, 0xc0, 0xa0, 0x7d, 0x04, 0x70, - 0xff, 0x6c, 0x9a, 0x76, 0x51, 0x7f, 0x98, 0x80, 0x06, 0x9b, 0x1b, 0xc8, - 0xb9, 0x00, 0xcf, 0xc4, 0xb3, 0xc8, 0x00, 0xb2, 0x44, 0xc5, 0x20, 0x00, - 0xf5, 0xac, 0x54, 0x15, 0xd6, 0x6d, 0xad, 0x06, 0xd3, 0x7f, 0xeb, 0x06, - 0x83, 0xff, 0xf3, 0x06, 0x41, 0xff, 0x00, 0x1c, 0x04, 0x30, 0x04, 0x3a, - 0x04, 0x35, 0x04, 0x00, 0x34, 0x04, 0x3e, 0x04, 0x3d, 0x04, 0x38, 0x04, - 0x28, 0x4f, 0x04, 0x34, 0x7f, 0x20, 0x20, 0x11, 0x41, 0x04, 0x3f, 0x02, - 0x04, 0x43, 0x04, 0x31, 0x04, 0x3b, 0x20, 0x15, 0x3a, 0xf3, 0x20, 0x25, - 0x04, 0x93, 0xff, 0x07, 0x14, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x01, 0x01, - 0xd0, 0x01, 0x58, 0x17, 0xc0, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x5a, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x87, 0x19, 0x52, - 0x0a, 0x00, 0x00, 0x00, 0x01, 0x5a, 0xde, 0x30, 0xeb, 0x30, 0xbf, 0x40, - 0x30, 0x06, 0x98, 0x1b, 0x4d, 0x00, 0x61, 0x00, 0x6c, 0x00, 0x6c, 0x74, - 0x20, 0x05, 0x06, 0xd0, 0x7f, 0x65, 0x0e, 0xe0, 0xff, 0x0e, 0x70, 0x7f, - 0x6c, 0x9a, 0x08, 0x33, 0x80, 0xd6, 0x4e, 0x06, 0x9b, 0x1b, 0xb0, 0xba, - 0xc0, 0x60, 0xd0, 0x06, 0xbb, 0x99, 0x0e, 0xf2, 0x7f, 0x1c, 0x04, 0x30, - 0x04, 0x3b, 0x0e, 0x04, 0x4c, 0x04, 0x42, 0x20, 0x07, 0x10, 0x0e, 0x33, - 0xff, 0x0e, 0xf5, 0x7f, 0x01, 0x78, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, - 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x5b, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x2d, 0x1e, 0xb3, 0x0d, 0x00, 0x00, 0x00, - 0x01, 0x5b, 0xe2, 0x30, 0xf3, 0x30, 0xc6, 0x01, 0x30, 0xcd, 0x30, 0xb0, - 0x30, 0xed, 0x30, 0x06, 0x38, 0x21, 0x00, 0x4d, 0x00, 0x6f, 0x00, 0x6e, - 0x00, 0x74, 0x00, 0x41, 0x65, 0x20, 0x05, 0x65, 0x00, 0x67, 0x00, 0x72, - 0x20, 0x0f, 0xae, 0x06, 0x30, 0x7f, 0xe9, 0x20, 0x85, 0xe9, 0x06, 0xa0, - 0x7f, 0x06, 0xf0, 0xff, 0x0e, 0x70, 0x7f, 0xd1, 0x10, 0x9e, 0x71, 0x5c, - 0x06, 0xbb, 0x19, 0xac, 0xba, 0x4c, 0xd1, 0x03, 0x24, 0xb1, 0xf8, 0xad, - 0x5c, 0xb8, 0x06, 0x5b, 0x9f, 0x0e, 0xf2, 0x7f, 0x00, 0x27, 0x04, 0x35, - 0x04, 0x40, 0x04, 0x3d, 0x04, 0x10, 0x3e, 0x04, 0x33, 0x20, 0x03, 0x40, - 0x04, 0x38, 0x04, 0x33, 0x4f, 0x04, 0x10, 0x0d, 0xb3, 0xff, 0x0e, 0xf5, - 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0xc0, 0x01, 0x10, 0x27, 0x3f, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x5c, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x89, 0xed, 0x28, - 0x17, 0x00, 0x00, 0x00, 0x01, 0x5c, 0xe2, 0x30, 0xb6, 0x30, 0xf3, 0x01, - 0x30, 0xd3, 0x30, 0xfc, 0x30, 0xaf, 0x30, 0x06, 0x38, 0x21, 0x00, 0x4d, - 0x00, 0x6f, 0x00, 0x7a, 0x00, 0x61, 0x00, 0x00, 0x6d, 0x00, 0x62, 0x00, - 0x69, 0x00, 0x71, 0x00, 0x15, 0x75, 0x00, 0x65, 0x0e, 0x00, 0x7f, 0x73, - 0x80, 0xff, 0x6b, 0x06, 0xe1, 0x7f, 0x60, 0x63, 0x21, 0x8d, 0x0d, 0xd1, - 0xff, 0xab, 0x83, 0x51, 0x68, 0xd4, 0x10, 0x6b, 0x4b, 0x51, 0x06, 0x7b, - 0x1d, 0xa8, 0xba, 0xa0, 0xc7, 0x0d, 0x44, 0xbe, 0x6c, 0xd0, 0x06, 0x7b, - 0x9d, 0x07, 0x33, 0x7f, 0xe7, 0x06, 0xa3, 0xff, 0x00, 0x1c, 0x04, 0x3e, - 0x04, 0x37, 0x04, 0x30, 0x04, 0x00, 0x3c, 0x04, 0x31, 0x04, 0x38, 0x04, - 0x3a, 0x04, 0xcf, 0x10, 0x06, 0x34, 0xff, 0x10, 0x06, 0xb0, 0xff, 0x01, - 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x5d, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xf7, 0xef, 0x25, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x5d, 0xca, 0x30, - 0xdf, 0x30, 0xd3, 0x10, 0x30, 0xa2, 0x30, 0x06, 0x78, 0x1d, 0x4e, 0x00, - 0x61, 0x00, 0x05, 0x6d, 0x00, 0x69, 0x00, 0x62, 0x20, 0x03, 0x61, 0x06, - 0xe0, 0x7f, 0x60, 0x65, 0x0e, 0xe0, 0xff, 0x0e, 0x30, 0x7f, 0xb3, 0x7e, - 0x73, 0x7c, 0xd4, 0x10, 0x6b, 0x9a, 0x4e, 0x06, 0x7b, 0x1d, 0x98, 0xb0, - 0xf8, 0xbb, 0x0a, 0x44, 0xbe, 0x44, 0xc5, 0x07, 0x33, 0x7f, 0xeb, 0x06, - 0x83, 0xff, 0xed, 0x80, 0x06, 0x83, 0xff, 0x1d, 0x04, 0x30, 0x04, 0x3c, - 0x04, 0x38, 0x26, 0x04, 0x31, 0x20, 0x03, 0x4f, 0x04, 0x10, 0x0e, 0x13, - 0xff, 0x0e, 0xf5, 0x7f, 0x01, 0x78, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, - 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x14, 0x6a, 0x00, 0x11, 0x0c, 0x00, 0x00, 0x30, 0x01, 0x5e, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x3d, 0x25, 0x79, 0x03, 0x00, 0x00, 0x00, 0x02, 0x5e, 0xce, 0x30, - 0xfc, 0x30, 0xeb, 0x00, 0x30, 0xc8, 0x30, 0xfb, 0x30, 0xdb, 0x30, 0xe9, - 0x24, 0x30, 0xf3, 0x20, 0x09, 0xde, 0x5d, 0x05, 0xb8, 0x29, 0x4e, 0x00, - 0x00, 0x6f, 0x00, 0x72, 0x00, 0x74, 0x00, 0x68, 0x00, 0x14, 0x20, 0x00, - 0x48, 0x20, 0x0b, 0x6c, 0x20, 0x01, 0x61, 0x00, 0x18, 0x6e, 0x00, 0x64, - 0x05, 0x68, 0xae, 0xd0, 0x73, 0x65, 0x00, 0x2d, 0x2a, 0x00, 0x53, 0x20, - 0x05, 0x70, 0x20, 0x91, 0x65, 0x20, 0x85, 0x74, 0xab, 0x20, 0x9b, 0x69, - 0x20, 0xa1, 0x6e, 0x20, 0x93, 0x6c, 0x20, 0x1d, 0x04, 0x70, 0xff, 0x75, - 0x64, 0x20, 0xff, 0x06, 0x10, 0xfb, 0x3a, 0x1a, 0x4f, 0x81, 0x6f, 0x61, - 0x21, 0x81, 0xbe, 0x30, 0xfb, 0x74, 0x05, 0x80, 0xfb, 0x91, 0x7f, 0xd0, - 0x81, 0x00, 0x51, 0x7d, 0x04, 0x5a, 0xbf, 0x17, 0x01, 0x53, 0x77, 0x83, - 0x70, 0x51, 0x01, 0x77, 0x06, 0x7b, 0x1d, 0x00, 0x78, 0xb1, 0x74, 0xb9, - 0xb8, 0xd2, 0x40, 0xd6, 0x00, 0x80, 0xb7, 0xb8, 0xd2, 0x20, 0x00, 0xfc, - 0xc8, 0xee, 0x05, 0xfb, 0xa5, 0x33, 0x7f, 0x52, 0x81, 0x2d, 0x06, 0xa3, - 0x7f, 0xf2, 0x81, 0x05, 0x71, 0xfd, 0x00, 0x02, 0x00, 0x21, 0x04, 0x35, - 0x04, 0x32, 0x20, 0x03, 0x40, 0x00, 0x04, 0x3d, 0x04, 0x30, 0x04, 0x4f, - 0x04, 0x20, 0x02, 0x00, 0x13, 0x04, 0x3e, 0x04, 0x3b, 0x20, 0x01, 0x30, - 0x8e, 0x20, 0x11, 0x34, 0x04, 0x38, 0x20, 0x13, 0x0c, 0xb4, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x01, 0x02, 0x08, 0x08, 0x08, 0x09, 0x08, 0x01, 0x20, - 0x06, 0x07, 0x90, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x5e, 0xc9, - 0x30, 0x5b, 0xec, 0x28, 0x0d, 0xc6, 0x05, 0xe8, 0x0d, 0x9f, 0xff, 0x44, - 0x28, 0x15, 0x57, 0x81, 0x70, 0x68, 0x04, 0x86, 0x7b, 0x10, 0x09, 0x50, - 0x7f, 0x06, 0x31, 0xfd, 0x00, 0x00, 0xb7, 0x5f, 0x08, 0x26, 0x4f, 0x79, - 0x72, 0x06, 0x98, 0x17, 0xdc, 0xb4, 0x0c, 0x1a, 0xb8, 0x30, 0xd1, 0x06, - 0x38, 0x11, 0x0f, 0x51, 0xff, 0x14, 0x28, 0x11, 0x35, 0xb9, 0x28, 0x13, - 0x42, 0x28, 0x1f, 0x10, 0x16, 0xd4, 0xff, 0x06, 0x56, 0xff, 0x02, 0x01, - 0x20, 0x01, 0x28, 0x02, 0x02, 0x20, 0x06, 0x03, 0x40, 0x07, 0xae, 0x25, - 0xa9, 0x88, 0x2b, 0x07, 0x04, 0x5e, 0xd5, 0x28, 0x17, 0xdc, 0x30, 0xe9, - 0xab, 0x28, 0x1b, 0xc8, 0x06, 0x48, 0x1b, 0x46, 0x4f, 0x87, 0x76, 0xae, - 0x35, 0x10, 0x15, 0xd0, 0x7f, 0x00, 0x17, 0x5f, 0xb1, 0x83, 0x8f, 0x79, - 0x70, 0x51, 0x80, 0x06, 0x78, 0x19, 0x0c, 0xd5, 0x08, 0xb8, 0xfc, 0xbc, - 0x80, 0x18, 0xb7, 0xb8, 0xd2, 0x06, 0x58, 0x1b, 0x0e, 0xf3, 0x7f, 0x24, - 0x04, 0x3b, 0x8a, 0x28, 0x17, 0x32, 0x04, 0x3e, 0x20, 0x07, 0x30, 0x28, - 0x1f, 0x34, 0xc9, 0x05, 0xe8, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x03, 0x02, - 0x20, 0x01, 0x03, 0x03, 0x20, 0x06, 0x40, 0x0a, 0x40, 0x07, 0x56, 0x25, - 0xe3, 0x03, 0x00, 0x00, 0x41, 0x05, 0x28, 0x17, 0xea, 0x30, 0xfc, 0x30, - 0xb9, 0x06, 0x88, 0x19, 0x56, 0x46, 0x2f, 0xaf, 0x69, 0x2f, 0xb1, 0x73, - 0x06, 0x88, 0x17, 0x30, 0x7f, 0x73, 0xdc, 0x06, 0x6e, 0xad, 0x07, 0x90, - 0xff, 0x69, 0x29, 0x95, 0x06, 0x90, 0xff, 0x06, 0x90, 0x7f, 0x17, 0x5f, - 0x08, 0xcc, 0x91, 0xaf, 0x65, 0x06, 0x98, 0x17, 0x04, 0xd5, 0xac, 0x1a, - 0xb9, 0xac, 0xc2, 0x06, 0xb8, 0x17, 0x07, 0x13, 0x7f, 0xed, 0x06, 0xa2, - 0x7f, 0x24, 0x02, 0x04, 0x40, 0x04, 0x38, 0x04, 0x41, 0x88, 0x15, 0x38, - 0x39, 0x04, 0x4f, 0x05, 0xc8, 0x19, 0x07, 0x54, 0xff, 0x10, 0x0e, 0x90, - 0x7f, 0x04, 0x03, 0x20, 0x01, 0x28, 0x04, 0x04, 0x20, 0x06, 0x0b, 0x40, - 0x07, 0xd3, 0x25, 0x1d, 0x80, 0x2b, 0x19, 0x06, 0x5e, 0xd8, 0x30, 0xeb, - 0x30, 0xc7, 0xd5, 0x28, 0x13, 0x06, 0x78, 0x17, 0x47, 0x2f, 0xad, 0x6c, - 0x2f, 0xa5, 0x65, 0x28, 0x1f, 0x8b, 0x06, 0x3f, 0xb1, 0x47, 0x00, 0x75, - 0x60, 0x81, 0x72, 0x06, 0x48, 0x1b, 0x07, 0x10, 0xff, 0x62, 0x68, 0x80, - 0xff, 0x06, 0x38, 0x1b, 0x47, 0x00, 0xfc, 0xa1, 0x7f, 0x73, 0x81, 0x06, - 0x0f, 0xb4, 0x77, 0x6d, 0x14, 0x5c, 0xb7, 0x5f, 0x06, 0x98, 0x17, 0x03, - 0xec, 0xd5, 0x70, 0xb3, 0x7c, 0xb9, 0x06, 0x98, 0x17, 0x07, 0xd3, 0x7f, - 0x8a, 0x06, 0x11, 0xff, 0x13, 0x04, 0x35, 0x28, 0x13, 0x34, 0x20, 0x05, - 0x40, 0xe0, 0x88, 0x1b, 0x0d, 0xd4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x05, - 0x04, 0x06, 0x04, 0x05, 0x20, 0x06, 0x05, 0x20, 0x06, 0x01, 0x04, 0x05, - 0x05, 0x05, 0x08, 0x05, 0xf7, 0x24, 0x33, 0x2b, 0x17, 0x07, 0x5e, 0xd5, - 0x02, 0x30, 0xed, 0x30, 0xfc, 0x30, 0xcb, 0x28, 0x19, 0xb2, 0xc5, 0x28, - 0x1d, 0x06, 0x38, 0x17, 0x72, 0x00, 0x6f, 0x2f, 0x27, 0x69, 0x2f, 0x2b, - 0x5f, 0x67, 0x2f, 0xb5, 0x6e, 0x06, 0xc0, 0x7f, 0x38, 0x23, 0x0e, 0xb0, - 0xff, 0x06, 0x38, 0x17, 0x06, 0xd0, 0x7f, 0x00, 0x3c, 0x68, 0x57, 0x7f, - 0x81, 0x5b, 0x39, 0x68, 0x80, 0x06, 0x78, 0x17, 0x50, 0xd7, 0x5c, 0xb8, - 0xdd, 0xb2, 0xb8, 0x6a, 0xc5, 0x06, 0x58, 0x15, 0x0f, 0x12, 0x7f, 0x13, - 0x28, 0x0f, 0x3e, 0x28, 0x0d, 0x38, 0xaf, 0x28, 0x11, 0x33, 0x28, 0x23, - 0x3d, 0x05, 0xc8, 0x15, 0x07, 0xf4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x28, - 0x12, 0xa8, 0x28, 0x16, 0x06, 0x28, 0x19, 0x02, 0x20, 0x05, 0x06, 0x06, - 0xd8, 0x22, 0x25, 0xac, 0x2b, 0x17, 0x08, 0x5e, 0xea, 0x28, 0x11, 0xd3, - 0x02, 0x30, 0xe5, 0x30, 0xeb, 0x30, 0xd5, 0x06, 0x28, 0x15, 0x00, 0x22, - 0x00, 0x4c, 0x2e, 0xa5, 0x6d, 0x00, 0x62, 0x2f, 0xb5, 0x72, 0xdd, 0x28, - 0x17, 0x06, 0x90, 0x7f, 0x6f, 0x06, 0x60, 0x81, 0x07, 0x70, 0xff, 0x51, - 0x7f, 0x6f, 0x0e, 0x00, 0x7f, 0x0c, 0x97, 0x67, 0x21, 0x58, 0x06, 0x78, - 0x13, 0x3f, 0xff, 0xbc, 0xb9, 0x03, 0xd4, 0xbd, 0x74, 0xb9, 0x50, 0xd7, - 0x06, 0x78, 0x17, 0x0e, 0xf2, 0x7f, 0x41, 0x1b, 0x28, 0x11, 0x3c, 0x04, - 0x31, 0x04, 0x43, 0x28, 0x1f, 0xe0, 0x3d, 0x29, 0x0e, 0xd3, 0xff, 0x10, - 0x0e, 0x10, 0xff, 0x07, 0x06, 0x09, 0x06, 0x07, 0x20, 0x09, 0x07, 0x20, - 0x06, 0x05, 0x06, 0x07, 0x07, 0x07, 0x08, 0x07, 0x29, 0x24, 0x09, 0x2b, - 0x19, 0x09, 0x5e, 0xce, 0x20, 0x30, 0xfc, 0x28, 0x13, 0xc8, 0x30, 0xfb, - 0x30, 0xd6, 0x0a, 0x30, 0xe9, 0x30, 0xd0, 0x28, 0x25, 0xc8, 0x05, 0xc8, - 0x1f, 0x4e, 0x80, 0x2f, 0xad, 0x72, 0x00, 0x74, 0x00, 0x68, 0x00, 0x20, - 0x2a, 0x00, 0x42, 0x2f, 0xbb, 0x61, 0x28, 0x23, 0x61, 0x2f, 0xbf, 0x74, - 0xc5, 0x05, 0x6f, 0xb7, 0xd0, 0x73, 0x2d, 0x00, 0x53, 0x2f, 0xb3, 0x70, - 0x20, 0x8f, 0xa8, 0x3f, 0xb9, 0x74, 0x2f, 0xcb, 0x69, 0x4f, 0xcd, 0x61, - 0x00, 0x6c, 0xbb, 0x04, 0xc0, 0xff, 0x64, 0x29, 0x19, 0x06, 0x10, 0xfb, - 0x00, 0x10, 0xff, 0x65, 0x21, 0x85, 0x31, 0x01, 0x58, 0x74, 0x00, 0x41, - 0x01, 0x65, 0x05, 0x80, 0x7f, 0x05, 0x91, 0x81, 0x17, 0x53, 0x03, 0x01, - 0x5e, 0xc9, 0x62, 0xed, 0x73, 0x79, 0x72, 0x06, 0x58, 0x1d, 0x00, 0x78, - 0xb1, 0x74, 0xb9, 0xb8, 0xd2, 0x0c, 0xbe, 0x03, 0x7c, 0xb7, 0x18, 0xbc, - 0xb8, 0xd2, 0x06, 0x18, 0x1d, 0x33, 0x7f, 0xb8, 0x52, 0x81, 0x2d, 0x07, - 0x23, 0x7f, 0x92, 0x7f, 0x05, 0x73, 0x7f, 0x21, 0x04, 0x35, 0x20, 0x04, - 0x32, 0x20, 0x03, 0x40, 0x04, 0x3d, 0x04, 0x4b, 0x02, 0x04, 0x39, 0x04, - 0x20, 0x00, 0x11, 0x28, 0x21, 0x30, 0xae, 0x28, 0x29, 0x30, 0x20, 0x11, - 0x42, 0x05, 0x08, 0x29, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x08, - 0x02, 0x07, 0x01, 0x07, 0x01, 0x01, 0x08, 0x20, 0x06, 0x08, 0x00, 0x07, - 0x08, 0x08, 0x08, 0x08, 0xc2, 0x24, 0xc7, 0x02, 0x03, 0x00, 0x00, 0x0a, - 0x5e, 0xaa, 0x28, 0x17, 0xd9, 0x83, 0x28, 0x19, 0xa2, 0x30, 0xa4, 0x30, - 0xbb, 0x28, 0x21, 0x05, 0xb8, 0x13, 0x8c, 0x3f, 0xff, 0x4f, 0x00, 0x76, - 0x27, 0x89, 0x37, 0x7f, 0x6a, 0x00, 0x58, 0x73, 0x20, 0x01, 0x65, 0x04, - 0x87, 0x81, 0x10, 0x10, 0x50, 0x7f, 0x0a, 0x4e, 0x7e, 0x04, 0x82, 0x5f, - 0x74, 0x14, 0x5c, 0x06, 0x58, 0x15, 0x00, 0x00, 0x00, 0x24, 0xc6, 0x84, - 0xbc, 0x08, 0xb8, 0x74, 0xc7, 0x35, 0x24, 0xc1, 0x06, 0x18, 0x13, 0x0f, - 0x33, 0x7f, 0x1e, 0x68, 0x15, 0x4d, 0x28, 0x13, 0x58, 0x41, 0x28, 0x23, - 0x3b, 0x05, 0x08, 0x09, 0x10, 0x17, 0xd4, 0xff, 0x09, 0x09, 0x0a, 0x0a, - 0x09, 0x0a, 0x0a, 0x09, 0x20, 0x06, 0x06, 0x20, 0x04, 0x09, 0x08, 0x09, - 0x57, 0x25, 0x54, 0x2b, 0x0b, 0x0b, 0x5e, 0xbe, 0x80, 0x28, 0x0f, 0xc8, - 0x30, 0xfb, 0x30, 0xdb, 0x30, 0xe9, 0x35, 0x30, 0xf3, 0x20, 0x09, 0x05, - 0xf8, 0x17, 0x53, 0x2f, 0x8f, 0x75, 0x6b, 0x2f, 0x5b, 0x48, 0x2f, 0x9b, - 0x6c, 0x2f, 0x99, 0x3f, 0xbb, 0x64, 0x05, 0x6f, 0x33, 0xd0, 0x73, 0x45, - 0x65, 0x2d, 0x35, 0x4d, 0x00, 0xe9, 0x4f, 0x25, 0x64, 0x04, 0xef, 0x29, - 0xae, 0x70, 0xff, 0xfc, 0x2d, 0xab, 0x68, 0x06, 0x20, 0xf9, 0x79, 0x97, - 0x71, 0x6f, 0x61, 0xbe, 0x2f, 0xab, 0x4d, 0x69, 0xa3, 0x05, 0x50, 0xfb, - 0x91, 0x7f, 0x00, 0xd0, 0x81, 0x04, 0xbf, 0xc7, 0x57, 0x04, 0x53, 0x77, - 0x83, 0x70, 0x51, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0x90, 0xc7, 0x04, - 0xc7, 0xb8, 0xd2, 0x40, 0xd6, 0x0b, 0x80, 0xb7, 0xb8, 0xd2, 0x06, 0x38, - 0x19, 0x5a, 0x23, 0x7d, 0x32, 0xeb, 0x60, 0x2d, 0x06, 0x43, 0x7d, 0x07, - 0x11, 0xff, 0x2e, 0x04, 0x36, 0x04, 0x3d, 0x00, 0x04, 0x30, 0x04, 0x4f, - 0x04, 0x20, 0x00, 0x13, 0x28, 0x04, 0x3e, 0x28, 0x17, 0x3b, 0x20, 0x0d, - 0x3d, 0x04, 0x34, 0x38, 0x04, 0x38, 0x20, 0x13, 0x0d, 0x14, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x0a, 0x0a, 0x07, 0x00, 0x0a, 0x08, 0x07, 0x0a, 0x0a, - 0x0c, 0x07, 0x0c, 0x20, 0x0a, 0x0a, 0x20, 0x01, 0x09, 0x25, 0x11, 0x03, - 0x00, 0x08, 0x00, 0x0c, 0x5e, 0xe6, 0x28, 0x15, 0xec, 0x30, 0xd2, 0xd5, - 0x06, 0x28, 0x11, 0x5f, 0xff, 0x55, 0x28, 0x13, 0x72, 0x2f, 0xb1, 0x63, - 0x28, 0x19, 0x40, 0x74, 0x10, 0x16, 0x20, 0x7f, 0x4c, 0x4e, 0x97, 0x5f, - 0xd2, 0x52, 0x30, 0x2f, 0x65, 0x06, 0x78, 0x19, 0x38, 0x15, 0x08, 0xb8, - 0x50, 0xd7, 0xc0, 0x06, 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x23, 0x04, 0x42, - 0x04, 0x40, 0x04, 0x19, 0x35, 0x04, 0x45, 0x20, 0x07, 0x10, 0x1e, 0x34, - 0xff, 0x0b, 0x0b, 0x50, 0x01, 0x12, 0x0a, 0x0b, 0x09, 0x50, 0x07, 0x25, - 0xa2, 0x28, 0x17, 0x0d, 0x00, 0x5e, 0xbc, 0x30, 0xfc, 0x30, 0xe9, 0x30, - 0xf3, 0xad, 0x06, 0x88, 0x17, 0x5a, 0x2f, 0xa3, 0x65, 0x06, 0x4f, 0x29, - 0x7d, 0x2f, 0xe9, 0x8f, 0xa7, 0xe8, 0x04, 0xdf, 0x19, 0x08, 0x70, 0xff, - 0x91, 0x7d, 0x61, 0x0e, 0x20, 0x7f, 0xfd, 0x6c, 0x70, 0x60, 0x51, 0x06, - 0x78, 0x13, 0x3f, 0xff, 0x1c, 0xc8, 0x7c, 0xc7, 0x80, 0x6a, 0xb7, 0x06, - 0x78, 0x15, 0x07, 0x72, 0x7f, 0xe2, 0x4f, 0x21, 0x69, 0x06, 0x22, 0x81, - 0x17, 0x80, 0x28, 0x13, 0x3b, 0x04, 0x30, 0x04, 0x3d, 0x04, 0x34, 0x0e, - 0x04, 0x38, 0x04, 0x4f, 0x06, 0x08, 0x1b, 0x07, 0x33, 0xff, 0x10, 0x0e, - 0xb0, 0x7f, 0x0c, 0x44, 0x0c, 0x50, 0x01, 0x0b, 0x0c, 0x04, 0x40, 0x0a, - 0x9f, 0x24, 0x20, 0x91, 0x02, 0x00, 0x3f, 0xff, 0x01, 0x08, 0x08, 0x08, - 0x09, 0x28, 0x08, 0x01, 0x20, 0x06, 0x07, 0x20, 0x05, 0x01, 0x01, 0x02, - 0x95, 0x30, 0x01, 0x02, 0x02, 0x20, 0x06, 0x03, 0x40, 0x07, 0x03, 0x30, - 0x01, 0x2a, 0x03, 0x03, 0x20, 0x06, 0x0a, 0x40, 0x07, 0x04, 0x30, 0x01, - 0x04, 0x50, 0x04, 0x20, 0x06, 0x0b, 0x40, 0x07, 0x05, 0x04, 0x06, 0x04, - 0x10, 0x05, 0x06, 0x05, 0x20, 0x06, 0x01, 0x04, 0x05, 0x05, 0x6a, 0x05, - 0x30, 0x0a, 0x20, 0x0e, 0x06, 0x20, 0x11, 0x02, 0x20, 0x05, 0x06, 0x00, - 0x06, 0x07, 0x06, 0x09, 0x06, 0x07, 0x09, 0x07, 0x80, 0x20, 0x06, 0x05, - 0x06, 0x07, 0x07, 0x07, 0x07, 0x08, 0x16, 0x07, 0x01, 0x07, 0x40, 0x6d, - 0x01, 0x20, 0x70, 0x30, 0x7b, 0x09, 0x05, 0x0a, 0x09, 0x0a, 0x0a, 0x09, - 0x20, 0x06, 0x06, 0x20, 0x04, 0x80, 0x20, 0x0d, 0x0a, 0x07, 0x0a, 0x08, - 0x07, 0x0a, 0x0a, 0x07, 0x0c, 0x07, 0x0c, 0x0a, 0x0a, 0x20, 0x01, 0xf8, - 0xdf, 0xf0, 0xd7, 0x80, 0x3f, 0xf2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0xb4, 0x8a, 0x00, 0x11, 0x10, 0x00, 0x00, 0x30, 0x01, 0x5f, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xc4, 0xe5, 0x46, 0x7c, 0x00, 0x00, 0x00, 0x02, 0x5f, 0xa6, 0x30, - 0xa7, 0x30, 0xea, 0x0c, 0x30, 0xf3, 0x30, 0xc8, 0x20, 0x03, 0x06, 0x38, - 0x21, 0x57, 0x00, 0x10, 0x65, 0x00, 0x6c, 0x20, 0x01, 0x69, 0x00, 0x6e, - 0x00, 0x06, 0x67, 0x00, 0x74, 0x00, 0x6f, 0x20, 0x07, 0x10, 0x0d, 0xb0, - 0x7f, 0x52, 0xa8, 0x21, 0xff, 0x67, 0x21, 0xfd, 0xf3, 0x21, 0xff, 0x20, - 0x00, 0x64, 0xa0, 0x22, 0x0d, 0x20, 0x05, 0xc2, 0x13, 0xe0, 0x60, 0x75, - 0x70, 0x7f, 0x04, 0x98, 0x27, 0x59, 0x3a, 0x53, 0x06, 0x5b, 0x1f, 0xf0, - 0xc6, 0x0c, 0xc1, 0xb9, 0x34, 0xd1, 0x06, 0x9b, 0x9b, 0x0e, 0xf3, 0x7f, - 0x12, 0x04, 0x10, 0x35, 0x04, 0x3b, 0x20, 0x01, 0x38, 0x04, 0x3d, 0x04, - 0x07, 0x33, 0x04, 0x42, 0x04, 0x3e, 0x20, 0x07, 0x10, 0x15, 0xb4, 0xff, - 0x06, 0xf6, 0xff, 0x00, 0x01, 0x0f, 0x0f, 0x0f, 0x0f, 0x0c, 0x01, 0x01, - 0x00, 0x0f, 0x10, 0x02, 0x0f, 0x01, 0x01, 0x01, 0x01, 0x10, 0x9f, 0xe2, - 0x4a, 0x28, 0x17, 0x03, 0x5f, 0xaa, 0x30, 0x05, 0xfc, 0x30, 0xaf, 0x30, - 0xe9, 0x28, 0x19, 0xc9, 0x06, 0x48, 0x17, 0x01, 0x41, 0x00, 0x75, 0x00, - 0x63, 0x00, 0x6b, 0x28, 0x1b, 0x5c, 0x61, 0x28, 0x19, 0x64, 0x10, 0x0e, - 0x00, 0x7f, 0x00, 0x38, 0x17, 0x05, 0xb2, 0x13, 0x65, 0x59, 0x08, 0x4b, - 0x51, 0x70, 0x51, 0x06, 0x98, 0x17, 0x24, 0xc6, 0x74, 0x06, 0xd0, 0x9c, - 0xb7, 0xdc, 0xb4, 0x06, 0x7f, 0xb5, 0x0e, 0xf3, 0x7f, 0x1e, 0x2b, 0x04, - 0x3a, 0x28, 0x17, 0x35, 0x28, 0x15, 0x34, 0x05, 0xc8, 0x0f, 0x10, 0x0f, - 0x74, 0xff, 0xa4, 0x06, 0xf6, 0xff, 0x02, 0x38, 0x0c, 0x0a, 0x02, 0x20, - 0x06, 0x09, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0xc4, 0xe5, 0x46, 0x28, - 0x17, 0x00, 0x04, 0x5f, 0xd9, 0x30, 0xa4, 0x30, 0xfb, 0x30, 0x11, 0xaa, - 0x30, 0xd6, 0x20, 0x05, 0xd7, 0x30, 0xec, 0x28, 0x1f, 0x15, 0xc6, 0x30, - 0xa3, 0x05, 0xa8, 0x21, 0x42, 0x28, 0x0f, 0x79, 0x2e, 0x29, 0x15, 0x6f, - 0x00, 0x66, 0x2e, 0x2f, 0x50, 0x2f, 0xbb, 0x65, 0x2f, 0xb9, 0x63, 0x74, - 0x20, 0x13, 0x10, 0x0d, 0x90, 0x7f, 0x68, 0x00, 0xed, 0x2a, 0x15, 0x78, - 0x15, 0x80, 0x05, 0xd2, 0x03, 0x6e, 0x66, 0x26, 0x4f, 0x82, 0x84, 0x7e, - 0x40, 0x6e, 0x06, 0x78, 0x19, 0xa0, 0xbc, 0x74, 0xc7, 0x24, 0xc6, 0x00, - 0x0c, 0xbe, 0x0c, 0xd5, 0x0c, 0xb8, 0xf0, 0xd2, 0xd0, 0x06, 0x1b, 0x99, - 0x0e, 0xf3, 0x7f, 0x11, 0x28, 0x13, 0x39, 0x04, 0x2d, 0x00, 0x14, 0x3e, - 0x04, 0x44, 0x20, 0x05, 0x1f, 0x68, 0x23, 0x42, 0x04, 0x74, 0x38, 0x05, - 0x68, 0x25, 0x10, 0x0f, 0x34, 0xff, 0x06, 0xb6, 0xff, 0x03, 0x38, 0x0c, - 0x02, 0x03, 0xa0, 0x20, 0x06, 0x01, 0x20, 0x05, 0x03, 0x03, 0x35, 0xe5, - 0x46, 0x02, 0x7d, 0x00, 0x00, 0x05, 0x5f, 0xab, 0x28, 0x09, 0xbf, 0x03, - 0x30, 0xd9, 0x30, 0xea, 0x30, 0xfc, 0x05, 0xa8, 0x0d, 0x9f, 0xff, 0x51, - 0x43, 0x4f, 0xa7, 0x74, 0x2e, 0x35, 0x72, 0x00, 0x62, 0x2f, 0xbb, 0x60, - 0x72, 0x05, 0x88, 0x11, 0x10, 0x0f, 0x50, 0x7f, 0x4e, 0x57, 0x79, 0x72, - 0x2f, 0x10, 0x4f, 0xf7, 0x96, 0x06, 0x78, 0x17, 0x94, 0xce, 0x30, 0xd1, - 0x0d, 0xa0, 0xbc, 0xac, 0xb9, 0x06, 0x3e, 0xab, 0x0f, 0x33, 0x7f, 0x1a, - 0x68, 0x07, 0x07, 0x35, 0x04, 0x40, 0x04, 0x31, 0x40, 0x05, 0x05, 0x78, - 0x11, 0x10, 0x17, 0x54, 0xff, 0x4a, 0x04, 0x38, 0x0c, 0x03, 0x04, 0x20, - 0x06, 0x04, 0x20, 0x05, 0x04, 0x00, 0x04, 0x0c, 0xe1, 0xc4, 0x7a, 0x00, - 0x00, 0x06, 0x0b, 0x5f, 0xc0, 0x30, 0xcb, 0x28, 0x11, 0xc7, 0x28, 0x1d, - 0x06, 0x54, 0x99, 0x46, 0x4f, 0x2f, 0x9b, 0x61, 0x00, 0x67, 0x2f, 0xaf, - 0x10, 0x16, 0x50, 0x7f, 0x65, 0x04, 0x59, 0x54, 0x58, 0x08, 0x62, 0x06, - 0x78, 0x15, 0x00, 0x00, 0x03, 0x24, 0xc6, 0xc0, 0xd0, 0xe0, 0xac, 0x06, - 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x41, 0x1e, 0x28, 0x13, 0x30, 0x04, 0x33, - 0x04, 0x3e, 0x05, 0xc8, 0x0d, 0x80, 0x10, 0x17, 0x94, 0xff, 0x05, 0x0a, - 0x0a, 0x0a, 0x0a, 0x09, 0x05, 0x00, 0x05, 0x0a, 0x0b, 0x0a, 0x0a, 0x05, - 0x05, 0x05, 0x08, 0x05, 0x60, 0xdf, 0x39, 0x2f, 0x98, 0x07, 0x5f, 0xdb, - 0x80, 0x28, 0x15, 0xaf, 0x30, 0xb9, 0x30, 0xd9, 0x30, 0xa4, 0xa2, 0x06, - 0x48, 0x19, 0x48, 0x2f, 0xaf, 0x77, 0x00, 0x6b, 0x2f, 0xaf, 0x27, 0x03, - 0x00, 0x73, 0x00, 0x20, 0x00, 0x42, 0x2f, 0xbf, 0x05, 0xbf, 0xb1, 0xc4, - 0x10, 0x06, 0xf0, 0x7f, 0x31, 0xef, 0x68, 0x00, 0xed, 0x2e, 0xb5, 0x20, - 0x00, 0x58, 0x64, 0x2e, 0xb5, 0x20, 0xa2, 0x11, 0x05, 0x3f, 0xbf, 0x0d, - 0x97, 0x4b, 0x10, 0x51, 0x7e, 0x6e, 0x06, 0x98, 0x17, 0x38, 0xd6, 0x6c, - 0xd0, 0x03, 0xa4, 0xc2, 0xa0, 0xbc, 0x74, 0xc7, 0x06, 0x5b, 0x97, 0x0e, - 0xf3, 0x7f, 0x40, 0x25, 0x28, 0x11, 0x3a, 0x04, 0x41, 0x04, 0x2d, 0x00, - 0x07, 0x11, 0x04, 0x35, 0x04, 0x39, 0x06, 0x08, 0x1d, 0x10, 0x0e, 0xf4, - 0xff, 0x06, 0xf6, 0xff, 0x40, 0x06, 0x38, 0x0c, 0x01, 0x06, 0x06, 0x05, - 0x06, 0x10, 0x00, 0x05, 0x06, 0x06, 0x06, 0x06, 0xea, 0xe3, 0xc9, 0x00, - 0x7d, 0x00, 0x00, 0x08, 0x5f, 0xde, 0x30, 0xca, 0x02, 0x30, 0xef, 0x30, - 0xc4, 0x30, 0xfb, 0x20, 0x05, 0xf3, 0x0a, 0x30, 0xac, 0x30, 0xcc, 0x05, - 0xe8, 0x1f, 0x4d, 0x2f, 0xad, 0x6e, 0xa0, 0x48, 0x1b, 0x61, 0x2f, 0xb9, - 0x75, 0x00, 0x2d, 0x00, 0x57, 0xa2, 0x40, 0x11, 0x67, 0x40, 0x17, 0x75, - 0x00, 0x69, 0x10, 0x14, 0xe0, 0x7f, 0x9b, 0x00, 0x73, 0xb3, 0x7e, 0xe6, - 0x74, 0xfe, 0x56, 0x2d, 0x00, 0x00, 0xfa, 0x65, 0x3c, 0x68, 0xaa, 0x52, - 0x0a, 0x40, 0x4f, 0x05, 0xd8, 0x23, 0xc8, 0xb9, 0x08, 0xb1, 0x40, 0xc6, - 0x00, 0x2c, 0xd2, 0x2d, 0x00, 0x55, 0xc6, 0x70, 0xac, 0x30, 0x04, 0xb2, - 0x05, 0xf8, 0x1f, 0x0e, 0xf3, 0x7f, 0x1c, 0x04, 0x30, 0x04, 0x51, 0x3d, - 0x20, 0x03, 0x32, 0x20, 0x07, 0x42, 0x04, 0x43, 0x28, 0x1f, 0x51, 0x23, - 0x40, 0x11, 0x33, 0x40, 0x17, 0x43, 0x04, 0x38, 0x04, 0xe8, 0x29, 0xa1, - 0x10, 0x16, 0xf4, 0xff, 0x07, 0x38, 0x0c, 0x06, 0x07, 0x07, 0x06, 0x20, - 0x08, 0x00, 0x07, 0x07, 0x07, 0x07, 0x4d, 0xe3, 0xe2, 0x7c, 0x00, 0x00, - 0x00, 0x09, 0x5f, 0xcd, 0x30, 0xeb, 0x30, 0x41, 0xbd, 0x28, 0x11, 0xfb, - 0x30, 0xde, 0x30, 0xfc, 0x20, 0x0b, 0x15, 0xdc, 0x30, 0xed, 0x05, 0xc8, - 0x17, 0x4e, 0x2f, 0xa9, 0x6c, 0x2f, 0xa9, 0x75, 0x6f, 0x28, 0x1d, 0x06, - 0x3d, 0xb1, 0x10, 0x06, 0xf0, 0x7f, 0x52, 0x2e, 0xa9, 0x67, 0x29, 0xfd, - 0x45, 0xf3, 0x2a, 0x1d, 0x20, 0x00, 0x64, 0x2e, 0xb7, 0x20, 0x05, 0xc2, - 0x13, 0x03, 0xb3, 0x7e, 0x14, 0x5c, 0x0a, 0x90, 0x05, 0xb8, 0x09, 0xdf, - 0xff, 0x00, 0x2c, 0xb1, 0xa8, 0xc2, 0x2d, 0x00, 0xd0, 0xb9, 0x08, 0x84, - 0xbc, 0xec, 0xb7, 0x10, 0x06, 0x32, 0xff, 0x1d, 0x04, 0x35, 0x00, 0x04, - 0x3b, 0x04, 0x4c, 0x04, 0x41, 0x04, 0x3e, 0xe5, 0x28, 0x1f, 0x10, 0x0e, - 0x14, 0x7f, 0x0e, 0xf6, 0x7f, 0x08, 0x08, 0x20, 0x01, 0x0b, 0x20, 0x05, - 0x20, 0x09, 0x07, 0x40, 0x0a, 0xa3, 0xe2, 0x32, 0x7b, 0x00, 0x08, 0x00, - 0x0a, 0x5f, 0xce, 0x28, 0x0d, 0xb9, 0x30, 0xe9, 0xb1, 0x28, 0x19, 0xc9, - 0x05, 0xc8, 0x0f, 0x98, 0x17, 0x6f, 0x00, 0x72, 0x2f, 0xa9, 0x68, 0x68, - 0x28, 0x1d, 0x3f, 0xb9, 0x64, 0x10, 0x15, 0xe0, 0x7f, 0x17, 0x53, 0x30, - 0x10, 0x57, 0x27, 0x59, 0x06, 0x98, 0x17, 0x78, 0xb1, 0xa4, 0xc2, 0x0d, - 0x9c, 0xb7, 0xdc, 0xb4, 0x06, 0x78, 0x97, 0x0e, 0xf3, 0x7f, 0x1d, 0x28, - 0x0f, 0x15, 0x40, 0x04, 0x42, 0x28, 0x1b, 0x35, 0x28, 0x17, 0x34, 0x06, - 0x08, 0x19, 0x95, 0x10, 0x16, 0xf4, 0xff, 0x09, 0x09, 0x20, 0x01, 0x08, - 0x20, 0x05, 0x0a, 0x30, 0x04, 0x04, 0x09, 0x09, 0x9a, 0xe6, 0xf5, 0x28, - 0x17, 0x0c, 0x5f, 0x15, 0xb5, 0x30, 0xa6, 0x06, 0xc8, 0x17, 0x53, 0x2f, - 0xa9, 0x75, 0x06, 0xa8, 0x17, 0xa1, 0x10, 0x0e, 0xf0, 0x7f, 0x57, 0x06, - 0xe8, 0x17, 0xac, 0xc0, 0xb0, 0xc6, 0x06, 0xb8, 0x19, 0x83, 0x0e, 0xf3, - 0x7f, 0x21, 0x04, 0x30, 0x04, 0x43, 0x06, 0xa8, 0x17, 0x10, 0x16, 0xf4, - 0xff, 0x00, 0x0a, 0x0b, 0x0b, 0x0b, 0x0b, 0x0d, 0x0a, 0x0a, 0x00, 0x0b, - 0x0c, 0x0b, 0x0b, 0x0a, 0x0a, 0x0a, 0x0a, 0x00, 0xff, 0xde, 0xbb, 0x77, - 0x00, 0x00, 0x0d, 0x5f, 0x46, 0xbf, 0x28, 0x13, 0xca, 0x30, 0xad, 0x06, - 0x48, 0x13, 0x3f, 0xff, 0x54, 0xa0, 0x2f, 0xa5, 0x72, 0x4f, 0xa9, 0x61, - 0x00, 0x6b, 0x00, 0x69, 0x81, 0x10, 0x16, 0x10, 0x7f, 0x58, 0xc9, 0x62, - 0xb3, 0x7e, 0xfa, 0x06, 0x88, 0x1b, 0x00, 0xc0, 0xd0, 0x7c, 0xb7, 0x98, - 0xb0, 0xa4, 0xd0, 0xaa, 0x10, 0x06, 0x73, 0x7f, 0x22, 0x28, 0x17, 0x40, - 0x28, 0x1b, 0x3d, 0x28, 0x1f, 0x3a, 0x30, 0x04, 0x38, 0x06, 0x08, 0x17, - 0x10, 0x16, 0xf4, 0xff, 0x0b, 0x0c, 0x0c, 0x0c, 0x01, 0x0c, 0x0e, 0x0b, - 0x0b, 0x0c, 0x0d, 0x0c, 0x28, 0x19, 0x00, 0x0b, 0x0b, 0x38, 0xe4, 0xc9, - 0x7b, 0x00, 0x00, 0x00, 0x0e, 0x5f, 0xef, 0x30, 0xa4, 0x30, 0xab, 0x30, - 0x55, 0xc8, 0x06, 0x88, 0x17, 0x57, 0x2f, 0xa5, 0x69, 0x28, 0x11, 0x61, - 0x2f, 0xb3, 0x40, 0x6f, 0x10, 0x16, 0x20, 0x7f, 0x00, 0x60, 0x61, 0x53, - 0x58, 0x62, 0x80, 0x06, 0x78, 0x15, 0x00, 0x00, 0x40, 0xc6, 0x74, 0xc7, - 0x74, 0x15, 0xce, 0xa0, 0xd1, 0x10, 0x06, 0x73, 0x7f, 0x23, 0x28, 0x17, - 0x38, 0x28, 0x11, 0x06, 0x30, 0x04, 0x42, 0x04, 0x3e, 0x06, 0x08, 0x15, - 0x10, 0x17, 0x14, 0xff, 0x0c, 0x04, 0x0e, 0x0e, 0x0e, 0x0e, 0x10, 0x28, - 0x1a, 0x0f, 0x0e, 0x40, 0x0e, 0x38, 0x22, 0x23, 0xe5, 0xa2, 0x7c, 0x00, - 0x00, 0x00, 0x0f, 0x5f, 0xae, 0x30, 0xba, 0x30, 0xdc, 0x30, 0x14, 0xfc, - 0x30, 0xf3, 0x06, 0x68, 0x19, 0x47, 0x2f, 0xa3, 0x73, 0x00, 0x54, 0x62, - 0x28, 0x13, 0x72, 0x2f, 0xb3, 0x65, 0x10, 0x16, 0x00, 0x7f, 0x09, 0x54, - 0x02, 0xaf, 0x65, 0x2f, 0x4f, 0x69, 0x60, 0x06, 0x78, 0x19, 0x30, 0x06, - 0xae, 0x88, 0xc9, 0x88, 0xbc, 0x06, 0x7b, 0x95, 0x0f, 0x13, 0x7f, 0x13, - 0x88, 0x28, 0x15, 0x41, 0x04, 0x31, 0x28, 0x13, 0x40, 0x04, 0x3d, 0xc0, - 0x06, 0x28, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x0d, 0x04, 0x04, 0x04, 0x04, - 0x05, 0x00, 0x0d, 0x0d, 0x04, 0x05, 0x03, 0x04, 0x0d, 0x0d, 0x00, 0x0d, - 0x0d, 0x81, 0xe4, 0x97, 0x7e, 0x00, 0x00, 0x00, 0x10, 0x5f, 0xa6, 0x30, - 0xa7, 0x30, 0xb9, 0x30, 0x1d, 0xc8, 0x30, 0xb3, 0x28, 0x1b, 0x30, 0x07, - 0x06, 0x1f, 0xaf, 0x65, 0x28, 0x17, 0x05, 0x74, 0x00, 0x20, 0x00, 0x43, - 0x2f, 0xaf, 0x61, 0x40, 0x0b, 0xeb, 0x10, 0x0d, 0xb0, 0x7f, 0x31, 0xf5, - 0x31, 0xff, 0x61, 0x22, 0x01, 0x4f, 0x62, 0x0b, 0x05, 0xba, 0x1d, 0x0c, - 0x7f, 0x89, 0xb8, 0x5c, 0x06, 0x78, 0x13, 0x3f, 0xff, 0xe8, 0xc6, 0x03, - 0xa4, 0xc2, 0xb8, 0xd2, 0x54, 0xcf, 0x30, 0x05, 0x06, 0x3b, 0x99, 0x88, - 0x0e, 0xf1, 0xff, 0x23, 0x04, 0x4d, 0x28, 0x17, 0x42, 0x04, 0x2d, 0x3c, - 0x00, 0x1a, 0x28, 0x1b, 0x30, 0x09, 0x10, 0x15, 0xd4, 0xff, 0x06, 0xf6, - 0xff, 0x0e, 0x10, 0x00, 0x10, 0x10, 0x10, 0x04, 0x0e, 0x0e, 0x10, 0x04, - 0x00, 0x0f, 0x10, 0x0e, 0x0e, 0x0e, 0x0e, 0xd1, 0xe1, 0x01, 0xc0, 0x79, - 0x00, 0x00, 0x11, 0x5f, 0xde, 0x28, 0x0f, 0x06, 0xeb, 0x30, 0xdc, 0x30, - 0xed, 0x06, 0x08, 0x11, 0x5f, 0xff, 0x4d, 0x88, 0x28, 0x0b, 0x72, 0x00, - 0x6c, 0x6f, 0xb1, 0x6f, 0x00, 0x75, 0x08, 0x00, 0x67, 0x00, 0x68, 0x10, - 0x15, 0xa0, 0x7f, 0x6c, 0x9a, 0x14, 0x04, 0x5c, 0x2f, 0x4f, 0xd2, 0x52, - 0x06, 0x78, 0x1b, 0xd0, 0xb9, 0x0c, 0x84, 0xbc, 0xec, 0xb7, 0x06, 0x78, - 0x95, 0x0f, 0x13, 0x7f, 0x1c, 0x04, 0x01, 0x30, 0x04, 0x3b, 0x04, 0x4c, - 0x04, 0x31, 0x28, 0x15, 0x62, 0x40, 0x28, 0x19, 0x10, 0x1d, 0xf4, 0xff, - 0x0f, 0x07, 0x07, 0x20, 0x01, 0x0f, 0x08, 0x0f, 0x07, 0x08, 0x05, 0x20, - 0x05, 0x0f, 0x0f, 0x7b, 0x00, 0xe2, 0xb4, 0x7b, 0x00, 0x00, 0x12, 0x5f, - 0xbf, 0x02, 0x30, 0xb9, 0x30, 0xde, 0x30, 0xf3, 0x06, 0x68, 0x15, 0x00, - 0x2a, 0x00, 0x54, 0x4f, 0xa3, 0x6d, 0x2f, 0xa9, 0x6e, 0x10, 0x16, 0x50, - 0x7f, 0x58, 0x08, 0xaf, 0x65, 0xfc, 0x66, 0x06, 0x78, 0x15, 0x00, 0x00, - 0xdc, 0x06, 0xd0, 0x88, 0xc9, 0x3c, 0xba, 0x06, 0x98, 0x17, 0x0e, 0xf3, - 0x7f, 0x22, 0x8b, 0x28, 0x17, 0x41, 0x04, 0x3c, 0x28, 0x1d, 0x3d, 0x06, - 0x08, 0x13, 0x10, 0x17, 0x34, 0xff, 0x00, 0x10, 0x0d, 0x0d, 0x0d, 0x0d, - 0x0f, 0x10, 0x10, 0x00, 0x0d, 0x0e, 0x0d, 0x0d, 0x10, 0x10, 0x10, 0x10, - 0x1a, 0x9a, 0xe2, 0x27, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x01, 0x38, 0x34, - 0x0c, 0x00, 0x01, 0x01, 0x0f, 0x10, 0x02, 0x0f, 0x01, 0x01, 0x12, 0x01, - 0x01, 0x02, 0x30, 0x04, 0x0a, 0x02, 0x20, 0x06, 0x09, 0x02, 0x01, 0x02, - 0x02, 0x02, 0x02, 0x03, 0x30, 0x04, 0x02, 0x51, 0x03, 0x20, 0x06, 0x01, - 0x20, 0x05, 0x03, 0x03, 0x04, 0x30, 0x04, 0x28, 0x03, 0x04, 0x20, 0x06, - 0x04, 0x20, 0x05, 0x04, 0x04, 0x05, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x09, - 0x05, 0x05, 0x0a, 0x00, 0x0b, 0x0a, 0x0a, 0x05, 0x05, 0x05, 0x05, 0x06, - 0x80, 0x30, 0x04, 0x01, 0x06, 0x06, 0x05, 0x06, 0x10, 0x05, 0x04, 0x06, - 0x06, 0x06, 0x06, 0x07, 0x30, 0x04, 0x06, 0x07, 0x65, 0x07, 0x30, 0x08, - 0x38, 0xaa, 0x08, 0x08, 0x20, 0x01, 0x0b, 0x20, 0x05, 0x4d, 0x09, 0x50, - 0x0a, 0x09, 0x09, 0x20, 0x01, 0x30, 0x05, 0x0a, 0x50, 0x0a, 0x00, 0x0a, - 0x0b, 0x0b, 0x0b, 0x0b, 0x0d, 0x0a, 0x0a, 0x18, 0x0b, 0x0c, 0x0b, 0x20, - 0x51, 0x30, 0x07, 0x0c, 0x0c, 0x0c, 0x03, 0x0e, 0x0b, 0x0b, 0x0c, 0x0d, - 0x0c, 0x20, 0x11, 0x20, 0x07, 0x04, 0x0e, 0x0e, 0x0e, 0x0e, 0x10, 0x20, - 0x12, 0x0f, 0x0e, 0x50, 0x0e, 0x30, 0x1a, 0x0d, 0x40, 0x84, 0x0d, 0x0d, - 0x04, 0x05, 0x2a, 0x03, 0x04, 0x30, 0xf2, 0x0e, 0x30, 0xec, 0x04, 0x20, - 0x22, 0x04, 0x3c, 0x0f, 0x10, 0x30, 0x2a, 0xf9, 0x1f, 0xf1, 0x17, 0x3f, - 0xff, 0x00, 0x00, 0x00, 0x11, 0x54, 0xab, 0x00, 0x11, 0x14, 0x00, 0x00, - 0x30, 0x01, 0x60, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x9f, 0x2a, 0x9d, 0x07, 0x00, 0x00, 0x00, - 0x07, 0x60, 0xaa, 0x30, 0xb9, 0x30, 0xed, 0x40, 0x30, 0x06, 0x98, 0x1b, - 0x4f, 0x00, 0x73, 0x00, 0x6c, 0x00, 0x40, 0x6f, 0x10, 0x16, 0x80, 0x7f, - 0x65, 0x59, 0xaf, 0x65, 0x46, 0x96, 0x81, 0x06, 0x9b, 0x1b, 0x24, 0xc6, - 0xac, 0xc2, 0x5c, 0xb8, 0x10, 0x06, 0x93, 0x7f, 0x00, 0x1e, 0x04, 0x41, - 0x04, 0x3b, 0x04, 0x3e, 0x04, 0x80, 0x10, 0x1e, 0x74, 0xff, 0x01, 0x0b, - 0x0b, 0x0b, 0x0c, 0x0b, 0x01, 0xa4, 0x20, 0x06, 0x09, 0x20, 0x05, 0x01, - 0x01, 0x58, 0x17, 0x08, 0x60, 0x00, 0xa2, 0x30, 0xfc, 0x30, 0xb1, 0x30, - 0xb7, 0x30, 0x10, 0xe5, 0x30, 0xd5, 0x20, 0x09, 0xb9, 0x30, 0x0c, 0x77, - 0x80, 0x05, 0xdf, 0xbf, 0x41, 0x00, 0x6b, 0x00, 0x65, 0x00, 0x72, 0x8e, - 0x28, 0x1d, 0x68, 0x00, 0x75, 0x28, 0x23, 0x05, 0xff, 0xbd, 0x10, 0x0e, - 0xf0, 0x7f, 0x3f, 0x00, 0x96, 0x4b, 0x51, 0xc0, 0x4e, 0xe1, 0x80, 0xaf, - 0x10, 0x65, 0xe1, 0x90, 0x06, 0x3f, 0xb9, 0x44, 0xc5, 0x00, 0xcf, 0x00, - 0x74, 0xb9, 0xa4, 0xc2, 0xc4, 0xd6, 0xa4, 0xc2, 0x08, 0x20, 0x00, 0xfc, - 0xc8, 0x10, 0x05, 0xf2, 0xff, 0x10, 0x04, 0x3a, 0x08, 0x04, 0x35, 0x04, - 0x40, 0x28, 0x1d, 0x45, 0x04, 0x43, 0xe9, 0x28, 0x23, 0x10, 0x15, 0xf4, - 0x7f, 0x06, 0xf6, 0xff, 0x02, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, 0x0a, - 0x02, 0x02, 0x02, 0x02, 0x58, 0x17, 0x09, 0x28, 0x17, 0xa6, 0x80, 0x28, - 0x0d, 0xc8, 0x30, 0xfb, 0x30, 0xa2, 0x30, 0xb0, 0x0a, 0x30, 0xc7, 0x30, - 0xeb, 0x05, 0xe8, 0x19, 0x41, 0x48, 0x0d, 0x74, 0x23, 0x00, 0x2d, 0x28, - 0x21, 0x67, 0x00, 0x64, 0x48, 0x23, 0x10, 0x15, 0xb0, 0x7f, 0x00, 0x1c, - 0x4e, 0x3f, 0x96, 0x3c, 0x68, 0xb7, 0x5f, 0x20, 0x14, 0x5c, 0x06, 0x58, - 0x17, 0xd0, 0xc5, 0xb0, 0xc6, 0xa4, 0x00, 0xc2, 0xb8, 0xd2, 0x44, 0xc5, - 0xf8, 0xad, 0x70, 0x1a, 0xb3, 0x74, 0xb9, 0x05, 0xf8, 0x1b, 0x0e, 0xf3, - 0x7f, 0x2d, 0x48, 0x0d, 0x42, 0x23, 0x04, 0x2d, 0x28, 0x21, 0x33, 0x04, - 0x34, 0x48, 0x23, 0x10, 0x1d, 0xb4, 0xff, 0x4a, 0x03, 0x38, 0x0c, 0x02, - 0x03, 0x20, 0x06, 0x14, 0x20, 0x05, 0x03, 0x00, 0x03, 0x96, 0x29, 0x3e, - 0x06, 0x00, 0x00, 0x0a, 0x2b, 0x60, 0xd6, 0x28, 0x15, 0xb1, 0x28, 0x0d, - 0xfc, 0x05, 0xe8, 0x0f, 0x7f, 0xff, 0x6c, 0x42, 0x4f, 0xa5, 0x5f, 0xb3, - 0x75, 0x28, 0x17, 0x10, 0x15, 0xf0, 0x7f, 0x03, 0x5e, 0x02, 0xaf, 0x65, - 0x4b, 0x51, 0x15, 0x54, 0x06, 0x58, 0x15, 0x00, 0x00, 0x00, 0x80, 0xbd, - 0xa4, 0xc2, 0x00, 0xcf, 0xe8, 0x6a, 0xb8, 0x05, 0xf8, 0x0f, 0x0f, 0x73, - 0x7f, 0x11, 0x48, 0x17, 0x3a, 0x48, 0x0f, 0x43, 0xd2, 0x28, 0x17, 0x10, - 0x1d, 0xf4, 0xff, 0x04, 0x38, 0x0c, 0x03, 0x04, 0x20, 0x06, 0x02, 0x80, - 0x20, 0x05, 0x04, 0x04, 0x7a, 0x2a, 0x41, 0x07, 0x00, 0x00, 0x00, 0x0b, - 0x60, 0xd5, 0x30, 0xa3, 0x30, 0xf3, 0x28, 0x30, 0xde, 0x28, 0x19, 0xaf, - 0x06, 0x48, 0x19, 0x46, 0x00, 0x69, 0x22, 0x00, 0x6e, 0x20, 0x01, 0x6d, - 0x00, 0x61, 0x2f, 0xa9, 0x6b, 0x81, 0x10, 0x16, 0x00, 0x7f, 0xac, 0x82, - 0x6c, 0x9a, 0x4b, 0x51, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0x40, 0xd5, - 0xc8, 0xb9, 0x74, 0xb9, 0x30, 0x6c, 0xd0, 0x06, 0x78, 0x17, 0x0e, 0xf3, - 0x7f, 0x24, 0x04, 0x38, 0x04, 0x45, 0x3d, 0x20, 0x01, 0x3c, 0x04, 0x30, - 0x28, 0x19, 0x3a, 0x06, 0x08, 0x17, 0xa5, 0x10, 0x16, 0xf4, 0xff, 0x05, - 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x0f, 0x20, 0x05, 0x00, 0x05, 0x05, - 0xd5, 0x31, 0x27, 0x15, 0x00, 0x00, 0x01, 0x0c, 0x60, 0xd8, 0x30, 0xfc, - 0x30, 0xc9, 0x06, 0xa8, 0x17, 0x58, 0x48, 0x2f, 0xa9, 0x64, 0x06, 0x88, - 0x15, 0x10, 0x0f, 0x10, 0x7f, 0x77, 0x6d, 0xb7, 0x43, 0x5f, 0x06, 0xb8, - 0x19, 0xe4, 0xd5, 0xdc, 0xb4, 0x06, 0xb8, 0x19, 0x0e, 0xf3, 0x7f, 0x06, - 0x25, 0x04, 0x35, 0x04, 0x34, 0x06, 0x88, 0x15, 0x10, 0x17, 0x14, 0xff, - 0x06, 0x94, 0x38, 0x0c, 0x05, 0x06, 0x20, 0x06, 0x10, 0x20, 0x05, 0x06, - 0x06, 0x00, 0x3c, 0x2b, 0xdc, 0x07, 0x00, 0x00, 0x0d, 0x60, 0x41, 0xdb, - 0x28, 0x11, 0xc0, 0x30, 0xe9, 0x30, 0xf3, 0x06, 0x48, 0x15, 0xaa, 0x38, - 0x17, 0x6f, 0x2f, 0xa7, 0x64, 0x2f, 0xad, 0x6c, 0x2f, 0xb1, 0x6e, 0xc1, - 0x28, 0x23, 0x10, 0x15, 0xd0, 0x7f, 0x0d, 0x97, 0xbe, 0x8f, 0x70, 0x06, - 0x88, 0x15, 0x00, 0x00, 0x00, 0x38, 0xd6, 0x74, 0xb9, 0xec, 0xb2, 0x31, - 0x80, 0xb7, 0x06, 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x25, 0x04, 0x3e, 0x28, - 0x11, 0x56, 0x34, 0x28, 0x17, 0x3b, 0x28, 0x1b, 0x3d, 0x20, 0x01, 0x10, - 0x1d, 0xd4, 0xff, 0x07, 0x94, 0x38, 0x0c, 0x06, 0x07, 0x20, 0x06, 0x11, - 0x20, 0x05, 0x07, 0x07, 0x00, 0xf1, 0x2a, 0xca, 0x03, 0x00, 0x00, 0x0e, - 0x60, 0x00, 0xe0, 0x30, 0xfc, 0x30, 0xec, 0x30, 0xfb, 0x30, 0x41, 0xaa, - 0x20, 0x03, 0xed, 0x30, 0xe0, 0x30, 0xb9, 0x28, 0x25, 0x62, 0xfc, 0x28, - 0x2b, 0x05, 0x78, 0x25, 0x4d, 0x00, 0xf8, 0x2f, 0xa9, 0x65, 0x2a, 0x00, - 0x20, 0x28, 0x1f, 0x67, 0x20, 0x05, 0x52, 0x28, 0x27, 0x6d, 0x30, 0x00, - 0x73, 0x68, 0x29, 0x10, 0x15, 0x10, 0x7f, 0xd8, 0x9e, 0xd2, 0x52, 0x00, - 0x2d, 0x00, 0x81, 0x9c, 0xc6, 0x59, 0xaf, 0x65, 0x08, 0xbe, 0x8f, 0x14, - 0x5c, 0x05, 0xf8, 0x21, 0xfc, 0xba, 0x08, 0x00, 0xb8, 0x24, 0xc6, 0xf8, - 0xad, 0x6c, 0xb8, 0xa4, 0x18, 0xc2, 0xec, 0xb2, 0x06, 0x18, 0x1d, 0x0e, - 0xf3, 0x7f, 0x1c, 0x04, 0x51, 0x80, 0x28, 0x17, 0x35, 0x04, 0x2d, 0x00, - 0x3e, 0x04, 0x33, 0x80, 0x20, 0x05, 0x20, 0x04, 0x43, 0x04, 0x3c, 0x04, - 0x41, 0xd1, 0x68, 0x29, 0x10, 0x1d, 0x14, 0xff, 0x08, 0x28, 0x0c, 0x08, - 0x07, 0x08, 0x20, 0x06, 0x40, 0x05, 0x20, 0x05, 0x08, 0x08, 0xa0, 0x2c, - 0x25, 0x05, 0x04, 0x00, 0x00, 0x0f, 0x60, 0xcc, 0x48, 0x05, 0xe9, 0x30, - 0x6e, 0xf3, 0x05, 0x88, 0x09, 0xdf, 0xff, 0x4e, 0x6f, 0xaf, 0x06, 0x5f, - 0xad, 0x10, 0x0f, 0x10, 0x7f, 0xfa, 0x06, 0x8b, 0x14, 0x5c, 0x70, 0x51, - 0x05, 0xf8, 0x0d, 0x9f, 0xff, 0x78, 0x06, 0xb1, 0x7c, 0xb9, 0x80, 0xb7, - 0x06, 0x18, 0x0f, 0x0f, 0x73, 0x7f, 0x1d, 0xa3, 0x28, 0x07, 0x40, 0x28, - 0x01, 0x30, 0x04, 0x3d, 0x20, 0x01, 0x10, 0x1e, 0x14, 0xff, 0x04, 0x09, - 0x09, 0x09, 0x09, 0x0a, 0x30, 0x04, 0x09, 0x07, 0x80, 0x40, 0x05, 0xd7, - 0x2f, 0x3e, 0x0a, 0x00, 0x00, 0x10, 0x82, 0x68, 0x17, 0xfb, 0x30, 0xc8, - 0x30, 0xed, 0x28, 0x1b, 0xc7, 0x8c, 0x28, 0x21, 0xfc, 0x30, 0xb0, 0x05, - 0xa8, 0x23, 0x78, 0x17, 0x2d, 0x00, 0x55, 0x54, 0x2f, 0xb7, 0xf8, 0x48, - 0x1b, 0x65, 0x48, 0x25, 0x67, 0x10, 0x15, 0x40, 0x7f, 0x00, 0x17, 0x53, - 0x79, 0x72, 0x26, 0x4f, 0xb7, 0x5f, 0x08, 0xc9, 0x62, 0x3c, 0x68, 0x06, - 0x38, 0x1d, 0x78, 0xb1, 0x74, 0x00, 0xb9, 0xb8, 0xd2, 0xb0, 0xb8, 0x2c, - 0xb1, 0x7c, 0x1c, 0xb7, 0xf8, 0xad, 0x06, 0x18, 0x1f, 0x0e, 0xf3, 0x7f, - 0x58, 0x17, 0x2d, 0x00, 0x51, 0x22, 0x28, 0x1d, 0x51, 0x28, 0x1b, 0x34, - 0x04, 0x35, 0x48, 0x25, 0x60, 0x33, 0x05, 0x68, 0x23, 0x10, 0x16, 0xf4, - 0xff, 0x0a, 0x08, 0x08, 0x08, 0x09, 0x28, 0x08, 0x0a, 0x20, 0x06, 0x06, - 0x20, 0x05, 0x0a, 0x0a, 0x8d, 0x00, 0x2d, 0x55, 0x08, 0x00, 0x00, 0x11, - 0x60, 0xaa, 0x0b, 0x30, 0xc3, 0x30, 0xd7, 0x28, 0x0d, 0xf3, 0x05, 0xa8, - 0x0b, 0xbf, 0xff, 0x1c, 0x4f, 0x00, 0x70, 0x20, 0x01, 0x06, 0x7f, 0xad, - 0x10, 0x0f, 0x10, 0x7f, 0x65, 0x59, 0x0c, 0x6e, 0x66, 0x70, 0x51, 0x06, - 0x38, 0x11, 0x5f, 0xff, 0x24, 0xc6, 0x0c, 0x0c, 0xd5, 0x80, 0xb7, 0x06, - 0x18, 0x0f, 0x0f, 0x73, 0x7f, 0x1e, 0x04, 0x6d, 0x3f, 0x20, 0x01, 0x38, - 0x09, 0x3d, 0x28, 0x15, 0x10, 0x1e, 0x14, 0xff, 0x0b, 0x28, 0x0c, 0x14, - 0x0b, 0x0a, 0x0b, 0x20, 0x06, 0x08, 0x20, 0x05, 0x0b, 0x0b, 0x00, 0x78, - 0x2b, 0x6b, 0x07, 0x00, 0x00, 0x12, 0x60, 0x05, 0xed, 0x30, 0xfc, 0x30, - 0xac, 0x06, 0xa8, 0x17, 0x52, 0x2f, 0xaf, 0x70, 0x67, 0x2f, 0x9d, 0x06, - 0x78, 0x19, 0x10, 0x0e, 0xf0, 0x7f, 0x57, 0x7f, 0xa0, 0x52, 0x86, 0x06, - 0xb8, 0x17, 0x5c, 0xb8, 0x08, 0xac, 0x06, 0xb8, 0x17, 0x0e, 0xf3, 0x7f, - 0x20, 0x0e, 0x04, 0x43, 0x04, 0x33, 0x28, 0x15, 0x06, 0x78, 0x19, 0x10, - 0x16, 0xf4, 0xff, 0x0c, 0x02, 0x0d, 0x0d, 0x0d, 0x0e, 0x0d, 0x0c, 0x20, - 0x06, 0x0a, 0x82, 0x20, 0x05, 0x0c, 0x0c, 0xed, 0x29, 0x11, 0x2b, 0x1d, - 0x13, 0x08, 0x60, 0xbd, 0x30, 0xb0, 0x28, 0x13, 0xfb, 0x30, 0xaa, 0x82, - 0x20, 0x03, 0xd5, 0x30, 0xa3, 0x30, 0xe8, 0x28, 0x27, 0xe9, 0x28, 0x30, - 0xcd, 0x05, 0x88, 0x25, 0x53, 0x48, 0x17, 0x6e, 0x00, 0x20, 0x82, 0x48, - 0x1f, 0x20, 0x00, 0x46, 0x00, 0x6a, 0x28, 0x29, 0x72, 0xd0, 0x2f, 0xbb, - 0x3f, 0xc1, 0x65, 0x10, 0x15, 0x00, 0x7f, 0x7e, 0x67, 0x69, 0x60, 0x00, - 0x2d, 0x00, 0xf2, 0x83, 0x24, 0x5c, 0xc9, 0x62, 0x20, 0xb7, 0x8b, 0x06, - 0x18, 0x1f, 0xa1, 0xc1, 0x78, 0xb1, 0x3c, 0x01, 0xd5, 0x24, 0xc6, 0x7c, - 0xb7, 0x24, 0xb1, 0x06, 0x38, 0x1d, 0x88, 0x0e, 0xf3, 0x7f, 0x21, 0x04, - 0x3e, 0x28, 0x17, 0x3d, 0x04, 0x2d, 0x40, 0x00, 0x30, 0x07, 0x2d, 0x00, - 0x24, 0x04, 0x4c, 0x04, 0x16, 0x4e, 0x04, 0x40, 0x48, 0x25, 0x35, 0x05, - 0x28, 0x25, 0x10, 0x16, 0xf4, 0xff, 0x0d, 0x04, 0x0e, 0x0e, 0x0e, 0x0f, - 0x0e, 0x28, 0x1b, 0x0e, 0x0c, 0x82, 0x20, 0x05, 0x0d, 0x0d, 0x8a, 0x2b, - 0xd4, 0x2b, 0x1b, 0x14, 0x88, 0x28, 0x17, 0xfc, 0x30, 0xeb, 0x28, 0x17, - 0xc8, 0x30, 0xed, 0xae, 0x28, 0x1f, 0xc7, 0x28, 0x13, 0xfc, 0x28, 0x29, - 0x05, 0x78, 0x15, 0x38, 0x17, 0xf8, 0x8a, 0x28, 0x05, 0x2d, 0x00, 0x54, - 0x28, 0x0b, 0xf8, 0x4f, 0xb1, 0x65, 0xa0, 0x4f, 0xbb, 0x67, 0x10, 0x15, - 0x60, 0x7f, 0x57, 0x53, 0x79, 0x72, 0x26, 0x01, 0x4f, 0xb7, 0x5f, 0xc9, - 0x62, 0x3c, 0x68, 0x06, 0x18, 0x15, 0x00, 0x00, 0x00, 0xe0, 0xc1, 0x74, - 0xb9, 0xb8, 0xd2, 0x00, 0xb0, 0xb8, 0x2c, 0xb1, 0x7c, 0xb7, 0xf8, 0xad, - 0xc4, 0x06, 0x18, 0x19, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x51, 0x28, 0x05, - 0x2d, 0x00, 0x55, 0x22, 0x28, 0x0b, 0x51, 0x28, 0x1f, 0x34, 0x28, 0x0d, - 0x3b, 0x28, 0x15, 0x60, 0x33, 0x05, 0x28, 0x13, 0x10, 0x17, 0x34, 0xff, - 0x0e, 0x0f, 0x0f, 0x0f, 0x10, 0x48, 0x0f, 0x28, 0x1b, 0x0f, 0x0b, 0x20, - 0x05, 0x0e, 0x0e, 0x1b, 0x00, 0x2d, 0x64, 0x07, 0x00, 0x00, 0x15, 0x60, - 0xc6, 0x0b, 0x30, 0xec, 0x30, 0xde, 0x28, 0x19, 0xaf, 0x05, 0xa8, 0x0b, - 0xbf, 0xff, 0x44, 0x54, 0x48, 0x07, 0x65, 0x00, 0x6d, 0x2f, 0x9f, 0x72, - 0x00, 0x40, 0x6b, 0x10, 0x16, 0x00, 0x7f, 0xf0, 0x6c, 0xd2, 0x52, 0x6c, - 0x9a, 0x30, 0x4b, 0x51, 0x06, 0x38, 0x13, 0x42, 0xff, 0xd1, 0x08, 0xb8, - 0xc8, 0x06, 0xb9, 0x74, 0xb9, 0x6c, 0xd0, 0x06, 0x18, 0x13, 0x0f, 0x33, - 0x7f, 0x22, 0x88, 0x48, 0x07, 0x35, 0x04, 0x3c, 0x28, 0x0b, 0x40, 0x04, - 0x3a, 0xc5, 0x05, 0x68, 0x0d, 0x10, 0x17, 0x94, 0xff, 0x0f, 0x11, 0x11, - 0x20, 0x01, 0x0f, 0x20, 0x06, 0x40, 0x0d, 0x20, 0x05, 0x0f, 0x0f, 0x1a, - 0x2a, 0xcb, 0x06, 0x00, 0x00, 0x00, 0x16, 0x60, 0xc8, 0x30, 0xed, 0x30, - 0x18, 0xe0, 0x30, 0xb9, 0x06, 0x68, 0x15, 0x38, 0x17, 0x72, 0x00, 0x6f, - 0xb0, 0x28, 0x15, 0x73, 0x06, 0x55, 0x96, 0x10, 0x0f, 0x00, 0x7f, 0x79, - 0x72, 0x57, 0x7f, 0x08, 0xc6, 0x59, 0xaf, 0x65, 0x06, 0x78, 0x17, 0xb8, - 0xd2, 0x6c, 0x1a, 0xb8, 0xa4, 0xc2, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, - 0x22, 0x28, 0x0d, 0x3e, 0xb1, 0x28, 0x15, 0x41, 0x06, 0x08, 0x11, 0x10, - 0x17, 0x54, 0xff, 0x10, 0x12, 0x12, 0x20, 0x01, 0x50, 0x10, 0x20, 0x06, - 0x0e, 0x20, 0x05, 0x10, 0x10, 0x8d, 0x31, 0x00, 0x78, 0x0d, 0x00, 0x00, - 0x17, 0x60, 0xf4, 0x30, 0x40, 0xa7, 0x28, 0x15, 0xc8, 0x30, 0xfb, 0x30, - 0xa2, 0x30, 0x05, 0xb0, 0x30, 0xc7, 0x30, 0xeb, 0x05, 0xe8, 0x21, 0x56, - 0x2f, 0xaf, 0x00, 0x73, 0x00, 0x74, 0x00, 0x2d, 0x00, 0x41, 0x00, 0x16, - 0x67, 0x00, 0x64, 0x2f, 0xbd, 0x72, 0x05, 0xcf, 0xb3, 0x10, 0x0e, 0xf0, - 0x7f, 0x7f, 0x00, 0x89, 0x3f, 0x96, 0x3c, 0x68, 0xb7, 0x5f, 0x14, 0x40, - 0x5c, 0x06, 0x58, 0x19, 0xa0, 0xbc, 0xa4, 0xc2, 0xb8, 0xd2, 0x00, 0x44, - 0xc5, 0xf8, 0xad, 0x70, 0xb3, 0x74, 0xb9, 0xc4, 0x06, 0x18, 0x1f, 0x0e, - 0xf3, 0x7f, 0x12, 0x04, 0x35, 0x28, 0x13, 0x42, 0x04, 0x01, 0x2d, 0x00, - 0x10, 0x04, 0x33, 0x04, 0x34, 0x20, 0x0d, 0x62, 0x40, 0x05, 0xc8, 0x21, - 0x10, 0x16, 0xf4, 0xff, 0x11, 0x13, 0x13, 0x20, 0x01, 0x11, 0xa0, 0x20, - 0x06, 0x03, 0x20, 0x05, 0x11, 0x11, 0x5d, 0x29, 0xb1, 0x08, 0x05, 0x00, - 0x00, 0x18, 0x88, 0x17, 0xd5, 0x30, 0xa9, 0xd6, 0x06, 0x08, 0x13, 0xb8, - 0x17, 0x66, 0x2f, 0xb5, 0x6c, 0x28, 0x17, 0x10, 0x15, 0xf0, 0x7f, 0x7f, - 0x19, 0x89, 0x8f, 0x79, 0x06, 0x78, 0x13, 0x98, 0x17, 0xf4, 0xd3, 0x06, - 0x18, 0x11, 0xc1, 0x0f, 0x53, 0x7f, 0x78, 0x17, 0x44, 0x04, 0x3e, 0x04, - 0x3b, 0x20, 0x01, 0x8a, 0x10, 0x1d, 0xf4, 0xff, 0x12, 0x14, 0x14, 0x20, - 0x01, 0x12, 0x20, 0x06, 0x04, 0x80, 0x20, 0x05, 0x12, 0x12, 0x2a, 0x2a, - 0x69, 0x07, 0x00, 0x08, 0x00, 0x19, 0x60, 0xa8, 0x06, 0xc8, 0x15, 0x00, - 0x00, 0xd8, 0xc9, 0x06, 0xc8, 0x15, 0x10, 0x0f, 0x10, 0x7f, 0x1c, 0x4e, - 0x06, 0xd8, 0x17, 0x78, 0xc6, 0x06, 0xd8, 0x17, 0xb0, 0x0e, 0xf3, 0x7f, - 0x2d, 0x06, 0xc8, 0x15, 0x10, 0x17, 0x14, 0xff, 0x13, 0x0c, 0x0c, 0x0c, - 0x14, 0x0d, 0x0c, 0x13, 0x20, 0x06, 0x13, 0x20, 0x05, 0x13, 0x13, 0x10, - 0x29, 0x2a, 0xe5, 0x28, 0x17, 0x1a, 0x60, 0xb9, 0x30, 0x05, 0xf4, 0x30, - 0xa1, 0x30, 0xfc, 0x28, 0x15, 0xd0, 0x28, 0x19, 0x08, 0xf8, 0x8a, 0xf6, - 0x5c, 0x05, 0xdf, 0xb2, 0x53, 0x00, 0x76, 0x2b, 0x00, 0x61, 0x2f, 0xa9, - 0x62, 0x20, 0x05, 0x72, 0x06, 0x2f, 0xaf, 0x0e, 0xf0, 0x7f, 0x63, 0x49, - 0x2f, 0xad, 0x3f, 0xa9, 0x65, 0x00, 0x20, 0x06, 0x41, 0x8b, 0x06, 0xf1, - 0xff, 0x00, 0xaf, 0x65, 0xe6, 0x74, 0x14, 0x5c, 0xf4, 0x5d, 0x18, 0xa4, - 0x7f, 0x9b, 0x05, 0xe2, 0xf9, 0x5f, 0xff, 0xa4, 0xc2, 0x1c, 0x00, 0xbc, - 0x14, 0xbc, 0x74, 0xb9, 0x20, 0x00, 0x1c, 0x10, 0xc8, 0xc4, 0xb3, 0x06, - 0x1b, 0x97, 0x53, 0x00, 0x70, 0x00, 0x55, 0x69, 0x2f, 0xaf, 0x73, 0x23, - 0x81, 0x65, 0x23, 0x81, 0x67, 0x2f, 0xbf, 0x40, 0x6e, 0x0d, 0xa3, 0xff, - 0x28, 0x04, 0x3f, 0x04, 0x38, 0x04, 0x00, 0x46, 0x04, 0x31, 0x04, 0x35, - 0x04, 0x40, 0x04, 0x5c, 0x33, 0x20, 0x05, 0x3d, 0x05, 0xc8, 0x1d, 0x10, - 0x06, 0xf4, 0xff, 0x0e, 0xf6, 0x7f, 0x14, 0x10, 0x05, 0x10, 0x10, 0x07, - 0x10, 0x14, 0x20, 0x06, 0x12, 0x20, 0x05, 0x02, 0x14, 0x14, 0x9e, 0x37, - 0x0e, 0x0b, 0x00, 0x3f, 0xff, 0x01, 0x02, 0x0b, 0x0b, 0x0b, 0x0c, 0x0b, - 0x01, 0x20, 0x06, 0x09, 0x89, 0x20, 0x05, 0x01, 0x01, 0x02, 0x30, 0x04, - 0x01, 0x02, 0x40, 0x06, 0x04, 0x02, 0x02, 0x02, 0x02, 0x03, 0x30, 0x04, - 0x02, 0x03, 0xa2, 0x20, 0x06, 0x14, 0x20, 0x05, 0x03, 0x03, 0x04, 0x30, - 0x04, 0x03, 0x51, 0x04, 0x20, 0x06, 0x02, 0x20, 0x05, 0x04, 0x04, 0x05, - 0x30, 0x04, 0x28, 0x04, 0x05, 0x20, 0x06, 0x0f, 0x20, 0x05, 0x05, 0x05, - 0x06, 0x94, 0x30, 0x04, 0x05, 0x06, 0x20, 0x06, 0x10, 0x20, 0x05, 0x06, - 0x06, 0x4a, 0x07, 0x30, 0x04, 0x06, 0x07, 0x20, 0x06, 0x11, 0x20, 0x05, - 0x07, 0x2a, 0x07, 0x08, 0x40, 0x03, 0x08, 0x20, 0x06, 0x05, 0x20, 0x05, - 0x08, 0x02, 0x08, 0x09, 0x09, 0x09, 0x09, 0x0a, 0x30, 0x04, 0x09, 0x52, - 0x07, 0x40, 0x05, 0x0a, 0x30, 0x13, 0x08, 0x0a, 0x20, 0x06, 0x06, 0x8a, - 0x20, 0x05, 0x0a, 0x0a, 0x0b, 0x40, 0x03, 0x0b, 0x20, 0x06, 0x08, 0xc1, - 0x20, 0x05, 0x20, 0xab, 0x0d, 0x0d, 0x0d, 0x0e, 0x0d, 0x28, 0xf3, 0x30, - 0x0d, 0x0a, 0x20, 0x05, 0x28, 0xfb, 0x0e, 0x0e, 0x0e, 0x0f, 0x4c, 0x0e, - 0x20, 0x13, 0x0e, 0x0c, 0x20, 0x05, 0x20, 0x1b, 0x0f, 0x0f, 0x13, 0x0f, - 0x10, 0x0f, 0x20, 0x13, 0x0f, 0x0b, 0x20, 0x05, 0x20, 0x1b, 0x2b, 0x11, - 0x11, 0x20, 0x01, 0x0f, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x20, 0x1b, 0x32, - 0x12, 0x12, 0x20, 0x01, 0x21, 0x15, 0x12, 0x0e, 0x20, 0x05, 0x10, 0x25, - 0x10, 0x11, 0x39, 0x34, 0x13, 0x11, 0x20, 0x06, 0x03, 0x20, 0x05, 0x12, - 0x11, 0x11, 0x12, 0x31, 0x2c, 0x14, 0x12, 0x20, 0x06, 0x04, 0x9c, 0x20, - 0x05, 0x12, 0x12, 0xf9, 0x5f, 0xf1, 0x57, 0x3f, 0xf2, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0xb4, 0x8a, 0x00, - 0x11, 0x10, 0x00, 0x00, 0x30, 0x01, 0x61, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x26, 0x25, 0xf0, - 0x0e, 0x00, 0x00, 0x00, 0x02, 0x61, 0xde, 0x30, 0xbe, 0x30, 0xd5, 0x04, - 0x30, 0xb7, 0x30, 0xa7, 0x30, 0x06, 0x58, 0x1f, 0x4d, 0x00, 0x00, 0x61, - 0x00, 0x73, 0x00, 0x6f, 0x00, 0x76, 0x00, 0x6a, 0x69, 0x20, 0x09, 0x06, - 0x50, 0x7f, 0x7a, 0x60, 0x7f, 0x65, 0x06, 0xa0, 0xff, 0x77, 0xb0, 0x40, - 0x7f, 0x6e, 0x0e, 0xc1, 0x7f, 0x06, 0x31, 0xff, 0x6c, 0x9a, 0x50, 0x4f, - 0x02, 0x2b, 0x59, 0x0d, 0x82, 0x01, 0x77, 0x06, 0x5b, 0x1f, 0xc8, 0x01, - 0xb9, 0x70, 0xc8, 0x04, 0xd5, 0x70, 0xc1, 0x06, 0x7b, 0x9d, 0xa8, 0xb2, - 0xff, 0xeb, 0x06, 0x83, 0xff, 0xf3, 0x06, 0x83, 0xff, 0x1c, 0x04, 0x30, - 0x00, 0x04, 0x37, 0x04, 0x3e, 0x04, 0x32, 0x04, 0x35, 0x08, 0x04, 0x46, - 0x04, 0x3a, 0x20, 0x09, 0x35, 0x04, 0x20, 0x30, 0x00, 0x32, 0x40, 0x07, - 0x30, 0x05, 0x34, 0x04, 0x41, 0x04, 0x70, 0x42, 0x40, 0x09, 0x0c, 0x94, - 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x01, 0x08, 0x08, 0x0a, 0x00, 0x07, 0x07, - 0x01, 0x01, 0x08, 0x07, 0x08, 0x08, 0x08, 0x01, 0x01, 0x01, 0x01, 0x58, - 0x17, 0x03, 0x61, 0xc9, 0x00, 0x30, 0xeb, 0x30, 0xcc, 0x30, 0xa3, 0x30, - 0xfb, 0x80, 0x28, 0x1b, 0xed, 0x30, 0xf3, 0x30, 0xb9, 0x30, 0xaf, 0xa0, - 0x05, 0xc8, 0x21, 0x4c, 0x47, 0x13, 0x65, 0x00, 0x72, 0x00, 0x20, 0x2a, - 0x00, 0x53, 0x28, 0x1b, 0x6c, 0x27, 0x9d, 0x73, 0x05, 0xa8, 0x23, 0x42, - 0xab, 0x48, 0x97, 0x73, 0x28, 0x13, 0x2d, 0x60, 0x7f, 0xe9, 0x40, 0x7f, - 0x05, 0x78, 0x23, 0x50, 0x4e, 0x48, 0x8f, 0x64, 0x41, 0x01, 0x73, 0x00, - 0x63, 0x00, 0x77, 0x68, 0x81, 0x01, 0x05, 0x58, 0x25, 0x70, 0xff, 0x61, - 0x41, 0x7f, 0x05, 0xf1, 0x7d, 0x51, 0x7f, 0x60, 0x6a, 0x60, 0x7d, 0x06, - 0x11, 0xfd, 0x00, 0x00, 0x0b, 0x4e, 0x7f, 0x01, 0x89, 0xcc, 0x91, 0x7f, - 0x89, 0x9a, 0x4e, 0x06, 0x58, 0x19, 0x00, 0x58, 0xd5, 0x90, 0xc2, 0x08, - 0xb8, 0xc0, 0xc9, 0x2d, 0xd4, 0xc5, 0x06, 0x5f, 0xb7, 0x4e, 0x82, 0x7d, - 0x72, 0xff, 0x65, 0x2b, 0x27, 0xc7, 0x05, 0x98, 0x23, 0x33, 0x7f, 0x69, - 0x00, 0x78, 0xa2, 0x01, 0x53, 0x7f, 0x05, 0x7c, 0x23, 0x01, 0x1d, 0x04, - 0x38, 0x04, 0x36, 0x04, 0x3d, 0x28, 0x15, 0x57, 0x41, 0x20, 0x09, 0x3b, - 0x28, 0x1d, 0x37, 0x28, 0x09, 0x05, 0x98, 0x1f, 0x06, 0xf4, 0xff, 0x80, - 0x10, 0x0e, 0xf0, 0x7f, 0x02, 0x05, 0x01, 0x0b, 0x01, 0x01, 0x02, 0x00, - 0x02, 0x09, 0x01, 0x0a, 0x05, 0x02, 0x02, 0x02, 0x00, 0x02, 0x59, 0x24, - 0x1c, 0x0c, 0x00, 0x00, 0x04, 0x02, 0x61, 0xaf, 0x30, 0xe4, 0x30, 0xf4, - 0x48, 0x17, 0xdd, 0x00, 0x30, 0xe2, 0x30, 0xfc, 0x30, 0xb8, 0x30, 0xa7, - 0x83, 0x05, 0xc8, 0x17, 0x4b, 0x00, 0x75, 0x00, 0x79, 0x2f, 0xb3, 0x5e, - 0xaf, 0x57, 0x6e, 0x27, 0x9d, 0x50, 0x2f, 0xbd, 0x6d, 0x48, 0x29, 0x30, - 0x0f, 0x50, 0x15, 0x15, 0x20, 0x00, 0x56, 0x2f, 0xd3, 0x69, 0x2f, 0xd5, - 0x6f, 0x47, 0x43, 0x45, 0x73, 0x27, 0x3f, 0x69, 0x00, 0x70, 0x03, 0x2f, - 0xdf, 0x43, 0x20, 0x7f, 0xf7, 0x36, 0x97, 0x3f, 0x2f, 0x38, 0x1b, 0x50, - 0x7d, 0xe9, 0x80, 0x7d, 0x04, 0xf8, 0x1f, 0x30, 0xff, 0xbf, 0x37, 0x17, - 0x77, 0x68, 0x09, 0x70, 0xff, 0x51, 0x01, 0x05, 0x18, 0x19, 0x30, 0xff, - 0x3f, 0xa9, 0xf5, 0x5f, 0xaf, 0x00, 0x31, 0x7d, 0x05, 0x10, 0x7f, 0x91, - 0xff, 0x20, 0x22, 0x0b, 0x20, 0x05, 0xc0, 0x83, 0x00, 0x93, 0x5e, 0x9a, - 0x4e, 0xe6, 0x74, 0xe8, 0x6e, 0x20, 0x77, 0x6d, 0x06, 0x58, 0x17, 0xe0, - 0xcf, 0x7c, 0xc5, 0x44, 0x00, 0xbe, 0x44, 0xc5, 0xec, 0xd3, 0x54, 0xba, - 0x7c, 0x0e, 0xb7, 0xc8, 0xb2, 0x44, 0x05, 0xe8, 0x1f, 0x72, 0x7f, 0x3f, - 0xaf, 0xeb, 0xea, 0xe2, 0x7d, 0x05, 0x3a, 0x99, 0x53, 0x7f, 0xe1, 0x00, - 0x22, 0x7f, 0xe2, 0x05, 0x42, 0x7f, 0x1a, 0x0c, 0x04, 0x43, 0x04, 0x4f, - 0x27, 0xf9, 0x58, 0x0b, 0x2d, 0x00, 0x57, 0x1f, 0x28, 0x11, 0x3c, 0x28, - 0x15, 0x40, 0x05, 0x68, 0x1d, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x00, 0x03, 0x02, 0x03, 0x06, 0x02, 0x02, 0x03, 0x03, 0x10, 0x04, 0x02, - 0x04, 0x20, 0x05, 0x03, 0x03, 0xc5, 0x25, 0x41, 0xd2, 0x28, 0x17, 0x05, - 0x61, 0xa6, 0x30, 0xc3, 0x28, 0x0b, 0xd8, 0x06, 0x5c, 0xab, 0x7b, 0x2f, - 0x64, 0x2c, 0xa1, 0x06, 0x70, 0x81, 0x41, 0x01, 0xf3, 0xa3, 0x30, 0x7f, - 0x01, 0x06, 0xd0, 0xff, 0x73, 0x00, 0x63, 0x28, 0xe9, 0x0e, 0x90, 0xff, - 0x86, 0x06, 0x91, 0xff, 0x57, 0x7f, 0x79, 0x51, 0x06, 0x58, 0x11, 0x5f, - 0xff, 0xb0, 0x1a, 0xc6, 0x58, 0xce, 0x06, 0x93, 0x7d, 0x0f, 0x11, 0xff, - 0x1b, 0x47, 0xed, 0x37, 0x0e, 0x04, 0x38, 0x04, 0x3d, 0x05, 0x68, 0x09, - 0x07, 0xd4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x04, 0x07, 0x04, 0x05, 0x08, - 0x05, 0x04, 0x20, 0x05, 0x20, 0x01, 0x20, 0x06, 0x00, 0x04, 0xd1, 0x24, - 0xd8, 0x0d, 0x00, 0x00, 0x06, 0x00, 0x61, 0xeb, 0x30, 0xd6, 0x30, 0xea, - 0x30, 0xf3, 0xa3, 0x06, 0x88, 0x19, 0x4c, 0x2f, 0xaf, 0x62, 0x00, 0x6c, - 0x2f, 0xfd, 0x05, 0x1f, 0x1b, 0xa0, 0x10, 0x00, 0xf0, 0x7f, 0x6f, 0x0e, - 0x21, 0xff, 0x62, 0x53, 0x03, 0x5e, 0x97, 0x40, 0x67, 0x06, 0x98, 0x19, - 0xe8, 0xb8, 0x14, 0xbe, 0xb0, 0xb9, 0xc0, 0x06, 0xbb, 0x97, 0x0e, 0xd3, - 0x7f, 0x1b, 0x04, 0x4e, 0x04, 0x31, 0x04, 0x70, 0x3b, 0x06, 0xa8, 0x17, - 0x10, 0x07, 0x94, 0xff, 0x0e, 0x36, 0xff, 0x05, 0x06, 0x06, 0x09, 0x06, - 0x06, 0x05, 0x05, 0x05, 0x06, 0x20, 0x08, 0x20, 0x06, 0x05, 0x01, 0x6f, - 0x24, 0x0d, 0x10, 0x00, 0x00, 0x07, 0x48, 0x17, 0x17, 0xb7, 0x30, 0xe5, - 0x06, 0xe8, 0x17, 0x75, 0x2f, 0x31, 0x06, 0x5e, 0x33, 0x07, 0x10, 0x7f, - 0x7c, 0x65, 0x60, 0xff, 0x06, 0x7f, 0xaf, 0x06, 0xf0, 0x7f, 0x71, 0xff, - 0x06, 0x5f, 0xb3, 0x81, 0x9c, 0x02, 0x03, 0x5e, 0xaf, 0x65, 0x61, 0x53, - 0x06, 0x78, 0x19, 0xe8, 0x07, 0xb8, 0x80, 0xbd, 0x6c, 0xc2, 0x06, 0xf8, - 0x17, 0x0e, 0x93, 0x7f, 0x58, 0x17, 0x1c, 0x43, 0x04, 0x48, 0x06, 0x48, - 0x15, 0x0f, 0x34, 0xff, 0x10, 0x06, 0xd0, 0xff, 0x06, 0x07, 0x01, 0x07, - 0x07, 0x04, 0x06, 0x06, 0x06, 0x07, 0x20, 0x08, 0x80, 0x20, 0x06, 0x06, - 0x80, 0x25, 0xd5, 0x0a, 0x00, 0x00, 0x00, 0x08, 0x61, 0xde, 0x30, 0xa6, - 0x30, 0xa9, 0x30, 0x01, 0xdd, 0x30, 0xeb, 0x30, 0xb9, 0x30, 0xab, 0x06, - 0x28, 0x1d, 0xa0, 0x37, 0x17, 0x73, 0x28, 0x15, 0x65, 0x00, 0x72, 0x00, - 0x20, 0x22, 0x00, 0x50, 0x2e, 0xb3, 0x6c, 0x00, 0x61, 0x2f, 0xbb, 0x64, - 0xaa, 0x05, 0x6f, 0xbd, 0x50, 0x27, 0x97, 0x74, 0x2f, 0xad, 0x74, 0x27, - 0x9f, 0x2d, 0x8a, 0x60, 0x7f, 0x6f, 0x00, 0x67, 0x2f, 0xbd, 0x65, 0x05, - 0x4f, 0xbf, 0x4b, 0xaa, 0x2f, 0xab, 0x65, 0x4f, 0xad, 0x70, 0x40, 0xfb, - 0x65, 0x05, 0xef, 0x37, 0x50, 0xba, 0x2f, 0xa9, 0x63, 0x20, 0x01, 0x51, - 0x77, 0x71, 0x81, 0x6f, 0x2f, 0xbd, 0x69, 0xd1, 0x21, 0x87, 0x05, 0x51, - 0x7f, 0x71, 0x2e, 0xb3, 0x65, 0x00, 0xf1, 0x06, 0x40, 0x7f, 0x02, 0x0f, - 0x5c, 0xe2, 0x6c, 0x70, 0x51, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0x8c, - 0xc1, 0xf4, 0xd3, 0x80, 0xb7, 0xdc, 0x7d, 0xb4, 0x06, 0x7b, 0x97, 0x92, - 0x7f, 0x72, 0xfd, 0x05, 0xd2, 0x81, 0x91, 0xff, 0x6e, 0xa2, 0x7f, 0x41, - 0xf3, 0x05, 0x82, 0x7f, 0x1c, 0x04, 0x30, 0x04, 0x3b, 0x28, 0x0f, 0x47, - 0x3f, 0x28, 0x13, 0x3b, 0x04, 0x4c, 0x06, 0x08, 0x1d, 0x06, 0xf4, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x00, 0x07, 0x03, 0x0a, 0x05, 0x09, 0x09, 0x07, - 0x07, 0x08, 0x03, 0x09, 0x09, 0x03, 0x28, 0x22, 0x07, 0x98, 0x23, 0x01, - 0x2e, 0x0e, 0x00, 0x00, 0x09, 0x61, 0xaa, 0x28, 0x13, 0x1b, 0xfc, 0x30, - 0xec, 0x06, 0x28, 0x11, 0x5f, 0xff, 0x4f, 0x87, 0x0f, 0x0e, 0x90, 0x7f, - 0x58, 0x70, 0x2f, 0xb3, 0x6c, 0x05, 0xe8, 0x0f, 0x0f, 0x71, 0x7f, 0x65, - 0x59, 0xe2, 0x10, 0x6c, 0xb1, 0x83, 0x06, 0x98, 0x17, 0x24, 0xc6, 0xf4, - 0xd3, 0x37, 0x08, 0xb8, 0x06, 0x78, 0x95, 0x0f, 0x13, 0x7f, 0x1e, 0x06, - 0x88, 0x11, 0x0f, 0x94, 0xff, 0x10, 0x06, 0xb0, 0xff, 0x00, 0x08, 0x09, - 0x09, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0a, 0x08, 0x0b, 0x09, 0x30, - 0x07, 0x07, 0x24, 0xbe, 0x00, 0x0c, 0x00, 0x00, 0x0a, 0x61, 0xdd, 0x30, - 0xc8, 0x00, 0x30, 0xab, 0x30, 0xeb, 0x30, 0xd1, 0x30, 0xc1, 0x2a, 0x30, - 0xa7, 0x06, 0x28, 0x1d, 0x53, 0x2e, 0x2b, 0x62, 0x2e, 0xb1, 0x61, 0xa3, - 0x2b, 0x2f, 0x70, 0x2e, 0xb1, 0x74, 0x00, 0x68, 0x05, 0x6e, 0xa9, 0x5f, - 0xff, 0x6b, 0x42, 0x2f, 0x25, 0x5b, 0xaf, 0x73, 0x2d, 0x31, 0x43, 0xa0, - 0x87, 0x3b, 0xc7, 0xc5, 0x05, 0x3d, 0xaf, 0xb0, 0x71, 0x6e, 0x00, 0x76, - 0x2f, 0xb9, 0x72, 0x05, 0xac, 0x33, 0x56, 0x50, 0x2c, 0xa7, 0x65, 0xa1, - 0x7f, 0x7a, 0x05, 0xc1, 0x7d, 0x00, 0x11, 0xff, 0x63, 0x80, 0x05, 0xe0, - 0x7f, 0x80, 0x55, 0x14, 0x5c, 0xf4, 0x5d, 0x21, 0x10, 0x96, 0x71, 0x5c, - 0x06, 0x58, 0x1b, 0x74, 0xce, 0x74, 0xb9, 0x03, 0x0c, 0xd3, 0xf0, 0xd2, - 0x44, 0xc5, 0x06, 0x5b, 0x99, 0x53, 0x7f, 0x6a, 0x6b, 0xe2, 0x85, 0x06, - 0x73, 0xff, 0xe1, 0x06, 0x01, 0xff, 0x1f, 0x47, 0xfd, 0x3a, 0x0b, 0x04, - 0x30, 0x04, 0x40, 0x28, 0x21, 0x30, 0x28, 0x05, 0x05, 0xd8, 0x1f, 0xc0, - 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x09, 0x0d, 0x02, 0x04, 0x0d, - 0x0f, 0x00, 0x09, 0x09, 0x0e, 0x0f, 0x0c, 0x0d, 0x09, 0x09, 0x00, 0x09, - 0x09, 0x95, 0x23, 0xa6, 0x0f, 0x00, 0x00, 0x41, 0x0b, 0x28, 0x17, 0xc9, - 0x30, 0xe9, 0x30, 0xb7, 0x06, 0x48, 0x13, 0xb7, 0x56, 0x97, 0x6f, 0x26, - 0xff, 0x37, 0x07, 0x63, 0x05, 0xe8, 0x11, 0x00, 0x50, 0x7f, 0x05, 0xff, - 0x37, 0xec, 0x00, 0x10, 0x7f, 0x05, 0xb5, 0x95, 0x07, 0xb1, 0x7f, 0x71, - 0x2a, 0x21, 0x06, 0x11, 0xff, 0xe2, 0x6c, 0x02, 0xb7, 0x5f, 0xc9, 0x62, - 0xaf, 0x65, 0x06, 0x58, 0x15, 0x00, 0x00, 0x00, 0xec, 0xd3, 0xe4, 0xb4, - 0x7c, 0xb7, 0x70, 0x6b, 0xc1, 0x06, 0x6f, 0xae, 0x00, 0x03, 0x7f, 0xeb, - 0x06, 0x63, 0xff, 0xe1, 0x06, 0x61, 0xff, 0x58, 0x17, 0x1c, 0x3b, 0x04, - 0x4f, 0x05, 0xe8, 0x0f, 0x08, 0x74, 0xff, 0x10, 0x0d, 0xf0, 0x7f, 0x0a, - 0x0a, 0x0a, 0x0b, 0x0d, 0x0a, 0x0a, 0x20, 0x05, 0x0a, 0x40, 0x06, 0x0a, - 0x01, 0xc9, 0x25, 0x77, 0x10, 0x00, 0x00, 0x0c, 0x28, 0x17, 0x05, 0xe2, - 0x30, 0xfc, 0x30, 0xb8, 0x06, 0xc8, 0x17, 0x6d, 0x2f, 0xad, 0x63, 0x72, - 0x4f, 0x21, 0x06, 0x58, 0x17, 0x6d, 0x00, 0xe9, 0x80, 0x7f, 0x06, 0x38, - 0x17, 0x78, 0x6d, 0x61, 0x01, 0x05, 0xd8, 0x11, 0x07, 0xb1, 0x7f, 0x06, - 0x91, 0xff, 0xe8, 0x6e, 0x77, 0x60, 0x6d, 0x06, 0x78, 0x13, 0x58, 0x17, - 0x54, 0xba, 0x7c, 0xb7, 0xc8, 0x1e, 0xb2, 0x44, 0xc5, 0x06, 0xb3, 0x7f, - 0x53, 0x81, 0x05, 0xfa, 0x93, 0xd3, 0xff, 0xe2, 0xd7, 0x06, 0x43, 0xff, - 0x38, 0x17, 0x3c, 0x28, 0x1b, 0x40, 0x06, 0xa8, 0x17, 0x0e, 0xb3, 0x7f, - 0x10, 0x06, 0xf0, 0xff, 0x02, 0x0b, 0x0b, 0x0c, 0x0e, 0x0b, 0x0b, 0x20, - 0x05, 0x0b, 0x80, 0x40, 0x06, 0x0b, 0xa7, 0x26, 0x40, 0x0d, 0x00, 0x00, - 0x01, 0x0d, 0x61, 0xb7, 0x30, 0xe5, 0x30, 0xec, 0x28, 0x17, 0x15, 0xa8, - 0x30, 0xf3, 0x06, 0x48, 0x19, 0x53, 0x2f, 0xa3, 0x6c, 0x2f, 0xa5, 0x6f, - 0x73, 0x06, 0x2e, 0xab, 0x90, 0x7f, 0xe9, 0x40, 0x7f, 0x05, 0xf8, 0x13, - 0x50, 0xff, 0x3f, 0xa7, 0xd8, 0x71, 0x01, 0x06, 0x15, 0x99, 0x53, 0x06, - 0xc1, 0x7d, 0x07, 0x11, 0xff, 0x7f, 0x89, 0xcc, 0x04, 0x91, 0x7f, 0x89, - 0x9a, 0x4e, 0x06, 0x78, 0x1b, 0x90, 0xc2, 0x06, 0x08, 0xb8, 0xc0, 0xc9, - 0xd4, 0x06, 0x68, 0x15, 0x93, 0x7f, 0x7a, 0xb0, 0x2f, 0xab, 0xeb, 0x06, - 0xe3, 0x7f, 0x06, 0x33, 0xff, 0x21, 0x04, 0x38, 0x04, 0x5c, 0x3b, 0x28, - 0x0d, 0x37, 0x06, 0x68, 0x17, 0x07, 0x54, 0xff, 0x10, 0x0e, 0x90, 0x7f, - 0x0c, 0x0c, 0x00, 0x0f, 0x0f, 0x0f, 0x0e, 0x0c, 0x0c, 0x0d, 0x0e, 0x11, - 0x10, 0x0c, 0x0c, 0x20, 0x01, 0xbf, 0x23, 0x85, 0x28, 0x17, 0x41, 0x0e, - 0x28, 0x17, 0xd5, 0x30, 0xa3, 0x30, 0xa7, 0x28, 0x15, 0x45, 0xc6, 0x20, - 0x07, 0xaf, 0x30, 0xb7, 0x20, 0x01, 0xe5, 0x05, 0xa8, 0x21, 0x41, 0x5a, - 0x2d, 0xac, 0x69, 0x00, 0x19, 0x01, 0x74, 0x2f, 0xb7, 0x45, 0x6b, 0x2f, - 0xb5, 0x7a, 0x00, 0x79, 0x28, 0x23, 0x6b, 0x05, 0x8f, 0xb9, 0x54, 0x53, - 0x2f, 0x27, 0x69, 0x2f, 0xa9, 0x74, 0x2f, 0xb1, 0x2d, 0x00, 0x55, 0x43, - 0x2f, 0xb5, 0x6f, 0x2f, 0x35, 0x78, 0x05, 0x8f, 0xb9, 0x48, 0x2f, 0xab, - 0x88, 0x39, 0x19, 0x69, 0x00, 0x67, 0x40, 0xff, 0x65, 0x00, 0x75, 0xea, - 0x25, 0xa3, 0x05, 0xb9, 0x97, 0x3f, 0xa7, 0x74, 0x2f, 0xad, 0x63, 0x40, - 0xfb, 0x63, 0xd8, 0x05, 0xe9, 0x1d, 0x90, 0x7f, 0x20, 0x41, 0x7d, 0x05, - 0xd0, 0xfd, 0x00, 0x00, 0x23, 0x04, 0x57, 0x41, 0x53, 0x57, 0x5b, 0x06, - 0x78, 0x15, 0x00, 0x00, 0x00, 0xdc, 0xc2, 0x44, 0xbe, 0xe5, 0xc5, 0xa0, - 0xd1, 0x00, 0x6c, 0xd0, 0xdc, 0xc2, 0xa4, 0xc2, 0xa4, 0xd0, 0x6a, 0xd0, - 0x05, 0xe8, 0x21, 0x93, 0x7f, 0x79, 0x21, 0x81, 0x4b, 0x63, 0x81, 0x7c, - 0x51, 0x01, 0x0d, 0x71, 0xff, 0x21, 0x27, 0xff, 0x35, 0x04, 0x3d, 0x27, - 0xfd, 0x5e, 0x3e, 0x28, 0x17, 0x48, 0x28, 0x25, 0x05, 0xd8, 0x1f, 0x06, - 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x0d, 0x00, 0x0e, 0x0e, 0x03, 0x0e, - 0x0d, 0x0d, 0x0d, 0x0f, 0x20, 0x0d, 0x0f, 0x30, 0x06, 0x0d, 0x2c, 0x24, - 0xaa, 0x0e, 0x00, 0x00, 0x00, 0x0f, 0x61, 0xf4, 0x30, 0xa1, 0x30, 0x00, - 0xeb, 0x30, 0xdf, 0x30, 0xa2, 0x30, 0xfb, 0x30, 0x05, 0xde, 0x30, 0xb9, - 0x30, 0xfc, 0x20, 0x0d, 0xa3, 0x05, 0xa8, 0x17, 0x45, 0x57, 0x2e, 0xa7, - 0x72, 0x00, 0x6d, 0x4e, 0xaf, 0x6e, 0x27, 0x99, 0x54, 0x4d, 0x2e, 0xb7, - 0x73, 0x27, 0x1b, 0x72, 0x60, 0x11, 0x20, 0x00, 0x55, 0x56, 0x47, 0xa9, - 0x76, 0x28, 0x37, 0x64, 0x4f, 0x55, 0x68, 0x2f, 0xe1, 0x76, 0x70, 0x04, - 0x20, 0x7f, 0x38, 0x17, 0x30, 0x7d, 0x7a, 0x60, 0x7d, 0x05, 0x58, 0x97, - 0x45, 0xab, 0x40, 0xfd, 0x6c, 0x47, 0x9d, 0x64, 0xc0, 0xff, 0x65, 0x28, - 0xad, 0x05, 0x1f, 0xc2, 0x7b, 0x56, 0xa1, 0x7f, 0xf1, 0x7d, 0x05, 0x3f, - 0xbe, 0xb0, 0x7f, 0x20, 0x46, 0x9b, 0x05, 0xd0, 0x83, 0x00, 0xe6, 0x74, - 0x14, 0x5c, 0x73, 0x7c, 0x9a, 0x4e, 0x02, 0x6c, 0x9a, 0x56, 0x79, 0x14, - 0x5c, 0x06, 0x18, 0x1f, 0x14, 0x00, 0xbc, 0x74, 0xb9, 0xf8, 0xbb, 0x44, - 0xc5, 0x20, 0x00, 0x00, 0xc8, 0xb9, 0x18, 0xc2, 0xac, 0xb9, 0x44, 0xea, - 0x05, 0xe8, 0x17, 0x00, 0x32, 0x7f, 0x73, 0x01, 0xeb, 0x05, 0x42, 0x7f, - 0xe1, 0x00, 0x02, 0x7f, 0xfa, 0x80, 0x05, 0xa2, 0x7f, 0x12, 0x04, 0x30, - 0x04, 0x40, 0x04, 0x3c, 0xa2, 0x28, 0x0f, 0x3d, 0x68, 0x11, 0x2d, 0x00, - 0x1c, 0x20, 0x13, 0x37, 0x3c, 0x04, 0x43, 0x20, 0x17, 0x05, 0x18, 0x23, - 0x07, 0x94, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x0e, 0x0f, 0x00, 0x10, 0x01, - 0x10, 0x10, 0x0e, 0x0e, 0x01, 0x10, 0x00, 0x01, 0x0f, 0x0e, 0x0e, 0x0e, - 0x0e, 0x3d, 0x26, 0x51, 0x91, 0x28, 0x17, 0x10, 0x28, 0x17, 0xa3, 0x30, - 0xa7, 0x28, 0x19, 0x11, 0xb3, 0x30, 0xdd, 0x28, 0x1f, 0xb9, 0x30, 0xab, - 0x05, 0xa8, 0x13, 0xaa, 0x3f, 0xff, 0x47, 0x4f, 0x23, 0x61, 0x4f, 0xaf, - 0x72, 0x2e, 0x33, 0x50, 0xfd, 0x2f, 0xaf, 0x77, 0x25, 0x05, 0x70, 0x7f, - 0x57, 0x93, 0x38, 0x17, 0x50, 0x7d, 0x6f, 0x2f, 0xbb, 0x63, 0x6e, 0x05, - 0x6f, 0x37, 0x30, 0xff, 0x6f, 0x00, 0xdf, 0x28, 0xe9, 0x30, 0xf7, 0xef, - 0x05, 0x58, 0x0b, 0x00, 0x70, 0xff, 0x71, 0x7d, 0x6f, 0x2f, 0xc1, 0x05, - 0x78, 0x17, 0x71, 0x7f, 0x06, 0x30, 0x7b, 0x81, 0x3f, 0xff, 0x27, 0x59, - 0xe2, 0x6c, 0x70, 0x51, 0x06, 0x18, 0x0f, 0x80, 0x8f, 0xff, 0xb3, 0xf4, - 0xd3, 0x80, 0xb7, 0xdc, 0xb4, 0xde, 0x06, 0x70, 0x7f, 0x52, 0x7f, 0x6f, - 0x2f, 0xb1, 0x72, 0xfd, 0x05, 0xd2, 0x83, 0x00, 0x32, 0x7f, 0xf3, 0xad, - 0x05, 0xa2, 0x7f, 0x12, 0x27, 0xf5, 0x3b, 0x28, 0x15, 0x38, 0x11, 0x3f, - 0x28, 0x15, 0x1c, 0x3b, 0x04, 0x4c, 0x05, 0x28, 0x0d, 0x07, 0xd4, 0xff, - 0x10, 0x0e, 0xb0, 0x7f, 0x0f, 0x01, 0x00, 0x04, 0x02, 0x03, 0x03, 0x0f, - 0x0f, 0x02, 0x03, 0x00, 0x02, 0x01, 0x0f, 0x0f, 0x0f, 0x0f, 0x41, 0x25, - 0x00, 0x01, 0x0c, 0x00, 0x00, 0x11, 0x61, 0x7f, 0x89, 0x01, 0xdd, 0x30, - 0xe2, 0x30, 0xfc, 0x30, 0xb8, 0x28, 0x1d, 0xbb, 0x06, 0x35, 0x1b, 0x57, - 0x4b, 0x03, 0x58, 0x15, 0x76, 0x1d, 0x6d, 0x48, 0x23, 0x3f, 0x41, 0xd8, - 0x05, 0x1e, 0xb5, 0x50, 0x6f, 0xe9, 0x80, 0x6f, 0x37, 0x1d, 0x6f, 0x00, - 0x63, 0xab, 0x20, 0x01, 0x69, 0x4b, 0x9f, 0x6e, 0x28, 0xb1, 0x61, 0x47, - 0xb1, 0x04, 0xd0, 0xff, 0xb8, 0x38, 0x17, 0x6d, 0x60, 0xf9, 0x05, 0xb8, - 0x1b, 0x00, 0x11, 0x6f, 0x20, 0x00, 0x4f, 0xe0, 0x05, 0xa0, 0xff, 0x01, - 0x70, 0x7f, 0x04, 0x7f, 0xc7, 0x7f, 0x89, 0xe8, 0x6e, 0x77, 0x40, 0x6d, - 0x06, 0x98, 0x17, 0x1c, 0xc1, 0xec, 0xd3, 0x54, 0xba, 0x03, 0x7c, 0xb7, - 0xc8, 0xb2, 0x44, 0xc5, 0x06, 0xb3, 0x7f, 0x5b, 0x13, 0xec, 0x72, 0x81, - 0x05, 0x9a, 0x9f, 0x93, 0xef, 0xe2, 0xc2, 0x7f, 0x05, 0x51, 0xfd, 0x00, - 0x00, 0x15, 0x17, 0x04, 0x30, 0x28, 0x0f, 0x30, 0x27, 0xf7, 0x3d, 0x28, - 0x19, 0x15, 0x2d, 0x00, 0x1f, 0x28, 0x1f, 0x3c, 0x28, 0x23, 0x40, 0x05, - 0x68, 0x1d, 0xc0, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x10, 0x10, - 0x0d, 0x10, 0x0c, 0x0c, 0x04, 0x10, 0x10, 0x10, 0x0c, 0x03, 0x20, 0x04, - 0x10, 0x10, 0x08, 0xfe, 0x25, 0x59, 0x0a, 0x00, 0x3f, 0xff, 0x01, 0x08, - 0x08, 0x00, 0x0a, 0x07, 0x07, 0x01, 0x01, 0x08, 0x07, 0x08, 0x00, 0x08, - 0x01, 0x01, 0x01, 0x01, 0x02, 0x05, 0x01, 0x40, 0x0b, 0x20, 0x05, 0x02, - 0x09, 0x01, 0x0a, 0x05, 0x02, 0x24, 0x02, 0x02, 0x28, 0x56, 0x03, 0x06, - 0x20, 0x05, 0x03, 0x04, 0x60, 0x02, 0x38, 0x67, 0x20, 0x07, 0x04, 0x05, - 0x08, 0x05, 0x04, 0xe0, 0x20, 0x05, 0x20, 0x01, 0x20, 0x06, 0x04, 0x05, - 0x06, 0x06, 0x09, 0x06, 0x06, 0x05, 0x05, 0x05, 0x06, 0x20, 0x08, 0x20, - 0x06, 0x05, 0x00, 0x06, 0x07, 0x07, 0x07, 0x04, 0x06, 0x06, 0x06, 0x60, - 0x07, 0x20, 0x08, 0x20, 0x06, 0x06, 0x07, 0x03, 0x0a, 0x05, 0x00, 0x09, - 0x09, 0x07, 0x07, 0x03, 0x09, 0x09, 0x03, 0x80, 0x20, 0x1a, 0x07, 0x08, - 0x09, 0x09, 0x0c, 0x08, 0x08, 0x88, 0x20, 0x74, 0x08, 0x0b, 0x09, 0x30, - 0x07, 0x09, 0x0d, 0x02, 0x00, 0x04, 0x0d, 0x0f, 0x09, 0x09, 0x0e, 0x0f, - 0x0c, 0x00, 0x0d, 0x09, 0x09, 0x09, 0x09, 0x0a, 0x0a, 0x0b, 0x14, 0x0d, - 0x0a, 0x0a, 0x20, 0x05, 0x0a, 0x40, 0x06, 0x0a, 0x0b, 0x05, 0x0b, 0x0c, - 0x0e, 0x0b, 0x0b, 0x20, 0x05, 0x0b, 0x40, 0x06, 0x10, 0x0b, 0x0c, 0x0c, - 0x28, 0xe5, 0x0e, 0x0c, 0x0c, 0x0d, 0x60, 0x0e, 0x20, 0xde, 0x20, 0x01, - 0x0d, 0x0e, 0x0e, 0x03, 0x0e, 0x02, 0x0d, 0x0d, 0x0d, 0x0f, 0x0d, 0x0f, - 0x30, 0x06, 0x0d, 0x00, 0x0e, 0x0f, 0x10, 0x01, 0x10, 0x10, 0x0e, 0x0e, - 0x00, 0x01, 0x10, 0x01, 0x0f, 0x0e, 0x0e, 0x0e, 0x0e, 0xe0, 0xf9, 0x1f, - 0xf1, 0x17, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x11, 0x54, 0xab, 0x00, - 0x11, 0x14, 0x00, 0x00, 0x30, 0x01, 0x62, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x89, 0x1b, 0x80, - 0xf9, 0x00, 0x00, 0x00, 0x02, 0x62, 0xea, 0x30, 0xb9, 0x30, 0xdc, 0x04, - 0x30, 0xf3, 0x30, 0x0c, 0x77, 0x06, 0x58, 0x1f, 0x4c, 0x00, 0x00, 0x69, - 0x00, 0x73, 0x00, 0x62, 0x00, 0x6f, 0x00, 0x44, 0x6e, 0x07, 0x00, 0x7f, - 0x6e, 0x00, 0x65, 0x06, 0x60, 0xff, 0x73, 0x00, 0x6a, 0x61, 0x06, 0x61, - 0x03, 0xb1, 0x7f, 0x61, 0x06, 0x2a, 0x22, 0x44, 0x41, 0xff, 0x74, 0x28, - 0x00, 0x72, 0x22, 0x07, 0x74, 0x22, 0x05, 0x20, 0x00, 0x64, 0xb0, 0x21, - 0x85, 0x20, 0xa2, 0x17, 0x04, 0xd0, 0x95, 0xcc, 0x91, 0xaf, 0x65, 0x08, - 0x2c, 0x67, 0x3a, 0x53, 0x06, 0x7b, 0x1d, 0xac, 0xb9, 0xa4, 0x00, 0xc2, - 0xf4, 0xbc, 0x44, 0xc5, 0x20, 0x00, 0xfc, 0x70, 0xc8, 0x06, 0x93, 0x7f, - 0x07, 0x32, 0x7f, 0x06, 0x32, 0x7d, 0x00, 0x00, 0x1b, 0x04, 0x10, 0x38, - 0x04, 0x41, 0x20, 0x01, 0x30, 0x04, 0x31, 0x04, 0x0c, 0x3e, 0x04, 0x3d, - 0x04, 0x0e, 0xb4, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x01, 0x0c, 0x54, 0x0c, - 0x20, 0x01, 0x01, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x01, 0x01, 0x80, 0x58, - 0x17, 0x07, 0x62, 0xde, 0x30, 0xc7, 0x30, 0xa3, 0x00, 0x30, 0xe9, 0x30, - 0xea, 0x81, 0xbb, 0x6c, 0xde, 0x5b, 0x5d, 0x06, 0x1f, 0xbb, 0x4d, 0x27, - 0x11, 0x36, 0x09, 0x69, 0x26, 0x19, 0x06, 0x36, 0x97, 0xbb, 0x50, 0x7f, - 0xe8, 0x26, 0x97, 0x06, 0x18, 0x13, 0x07, 0x90, 0xff, 0x65, 0x06, 0x61, - 0x7d, 0x07, 0x11, 0xff, 0x03, 0x6c, 0x9a, 0xb7, 0x5f, 0xc9, 0x62, 0x32, - 0xfd, 0x06, 0x58, 0x1b, 0x00, 0xc8, 0xb9, 0x70, 0xb3, 0x74, 0xc7, 0x7c, - 0xb7, 0xe8, 0x06, 0x78, 0x17, 0x07, 0x72, 0x7f, 0x06, 0x73, 0xff, 0x1c, - 0x28, 0x11, 0x34, 0x04, 0x35, 0x0e, 0x04, 0x39, 0x04, 0x40, 0x28, 0x1b, - 0x10, 0x06, 0x11, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x02, 0x02, 0x0d, 0x0d, - 0x0d, 0x0d, 0x14, 0x02, 0x20, 0x06, 0x0e, 0x00, 0x0d, 0x02, 0x02, 0x02, - 0x02, 0x36, 0x17, 0xfa, 0x00, 0xf3, 0x00, 0x00, 0x08, 0x62, 0xa2, 0x30, - 0xbd, 0x08, 0x30, 0xec, 0x30, 0xb9, 0x06, 0x88, 0x17, 0x41, 0x00, 0x7a, - 0xd1, 0x2f, 0xab, 0x37, 0x95, 0x73, 0x06, 0x4d, 0xb2, 0x41, 0x00, 0xe7, - 0x06, 0xe0, 0x7f, 0xfc, 0x70, 0xff, 0x06, 0x5c, 0x2f, 0x31, 0x7f, 0x51, - 0x81, 0x06, 0x59, 0x19, 0x06, 0xf1, 0xff, 0x9a, 0x4e, 0x08, 0x1f, 0x90, - 0x14, 0x5c, 0x06, 0x98, 0x17, 0x44, 0xc5, 0x8c, 0x07, 0xc1, 0x74, 0xb9, - 0xa4, 0xc2, 0x06, 0x78, 0x17, 0x07, 0x12, 0x7f, 0x06, 0xd3, 0x7f, 0x04, - 0x10, 0x04, 0x37, 0x04, 0x3e, 0x28, 0x13, 0x41, 0x04, 0x11, 0x3a, 0x04, - 0x38, 0x28, 0x1f, 0x20, 0x00, 0x3e, 0x20, 0x0b, 0x47, 0x42, 0x28, 0x25, - 0x3e, 0x04, 0x32, 0x05, 0x28, 0x29, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, - 0x7f, 0x01, 0x03, 0x02, 0x01, 0x02, 0x02, 0x01, 0x03, 0x40, 0x06, 0x00, - 0x03, 0x03, 0x03, 0x03, 0xd6, 0x1a, 0xc0, 0xed, 0x10, 0x00, 0x00, 0x09, - 0x28, 0x17, 0xf4, 0x30, 0xa7, 0x30, 0x02, 0xa4, 0x30, 0xed, 0x30, 0x0c, - 0x77, 0x06, 0x57, 0x97, 0x76, 0xb4, 0x6f, 0x2d, 0x6f, 0x06, 0x68, 0x17, - 0x10, 0x06, 0xd0, 0x7f, 0x44, 0x2e, 0xa9, 0x73, 0x00, 0x51, 0x74, 0x2e, - 0xad, 0x69, 0x20, 0x05, 0x6f, 0x00, 0x20, 0x4e, 0xbd, 0x40, 0x20, 0x05, - 0x82, 0x17, 0x3f, 0x96, 0x01, 0x5a, 0x57, 0x7f, 0xc0, 0x06, 0x58, 0x13, - 0x58, 0x17, 0xa0, 0xbc, 0x74, 0xc7, 0xe8, 0xb8, 0xd1, 0x06, 0x98, 0x17, - 0x0e, 0xd3, 0x7f, 0x10, 0x27, 0xfd, 0x35, 0x04, 0x39, 0x28, 0x19, 0x70, - 0x43, 0x05, 0x08, 0x03, 0x10, 0x10, 0x34, 0xff, 0x06, 0xf6, 0xff, 0x04, - 0x01, 0x02, 0x01, 0x10, 0x01, 0x02, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, - 0x04, 0x00, 0xe6, 0x1c, 0xd9, 0xf9, 0x00, 0x00, 0x0a, 0x62, 0x01, 0xd9, - 0x30, 0xfc, 0x30, 0xb8, 0x30, 0xe3, 0x06, 0x68, 0x15, 0x11, 0x00, 0x00, - 0x42, 0x2f, 0xa9, 0x6a, 0x00, 0x61, 0x06, 0x75, 0x96, 0xe1, 0x10, 0x07, - 0x00, 0x7f, 0x00, 0x78, 0x17, 0x05, 0x72, 0x17, 0x1d, 0x8d, 0xc5, 0x96, - 0x06, 0x98, 0x15, 0x03, 0x00, 0x00, 0xa0, 0xbc, 0x90, 0xc7, 0x06, 0x78, - 0x13, 0x0f, 0x33, 0x7f, 0x47, 0x11, 0x28, 0x15, 0x36, 0x04, 0x30, 0x06, - 0x48, 0x13, 0x10, 0x0f, 0x34, 0xff, 0x06, 0xf6, 0xff, 0x14, 0x05, 0x03, - 0x03, 0x20, 0x01, 0x05, 0x40, 0x06, 0x05, 0x05, 0x00, 0x05, 0x05, 0x08, - 0x1b, 0x69, 0xfa, 0x00, 0x00, 0x01, 0x0b, 0x62, 0xd6, 0x30, 0xe9, 0x30, - 0xac, 0x06, 0x88, 0x15, 0xaf, 0x38, 0x17, 0x72, 0x28, 0x15, 0x67, 0x06, - 0x88, 0x19, 0x10, 0x06, 0xf0, 0x7f, 0x00, 0x98, 0x17, 0x05, 0x52, 0x17, - 0x02, 0x03, 0x5e, 0xc9, 0x62, 0xa0, 0x52, 0x06, 0x98, 0x19, 0x0c, 0x06, - 0xbe, 0x7c, 0xb7, 0x00, 0xac, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0x11, - 0x2e, 0x04, 0x40, 0x28, 0x15, 0x33, 0x06, 0x88, 0x19, 0x10, 0x0e, 0xf4, - 0xff, 0x06, 0xf6, 0xff, 0x06, 0x28, 0x04, 0x04, 0x20, 0x01, 0x06, 0x40, - 0x06, 0x06, 0x06, 0x06, 0x0a, 0x06, 0x8c, 0x1d, 0x03, 0x28, 0x17, 0x0c, - 0x68, 0x17, 0xf3, 0x31, 0x30, 0xb5, 0x06, 0x68, 0x1b, 0x98, 0x17, 0x6e, - 0x00, 0xe7, 0x06, 0x2f, 0xb7, 0xc6, 0x10, 0x06, 0xf0, 0x7f, 0x01, 0x18, - 0x17, 0x6e, 0x00, 0x7a, 0x04, 0xae, 0xcf, 0x38, 0x17, 0x18, 0x18, 0x75, - 0x28, 0x84, 0x06, 0x78, 0x19, 0x38, 0x17, 0x04, 0xac, 0xac, 0x71, 0xc0, - 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x98, 0x17, 0x3d, 0x04, 0x41, 0x06, - 0x28, 0x1d, 0xc5, 0x10, 0x0e, 0xf4, 0xff, 0x06, 0xf6, 0xff, 0x07, 0x05, - 0x05, 0x20, 0x01, 0x07, 0x40, 0x06, 0x00, 0x07, 0x07, 0x07, 0x07, 0xba, - 0x1d, 0x32, 0xfb, 0x00, 0x00, 0x00, 0x0d, 0x62, 0xab, 0x30, 0xb9, 0x30, - 0x02, 0xc6, 0x30, 0xed, 0x30, 0xfb, 0x30, 0x38, 0x21, 0xf3, 0x2c, 0x30, - 0xb3, 0x05, 0xe8, 0x1f, 0x43, 0x2f, 0xad, 0x3e, 0x2f, 0x65, 0x00, 0x63, - 0x6c, 0x4e, 0x2d, 0x5f, 0xbf, 0x6e, 0x00, 0x63, 0x2e, 0x3b, 0x10, 0x0d, - 0x30, 0x7f, 0xc0, 0x00, 0x78, 0x17, 0x05, 0x72, 0x17, 0x03, 0x5e, 0x17, - 0x67, 0x93, 0x5e, 0x20, 0x21, 0x58, 0x06, 0x78, 0x17, 0x74, 0xce, 0xa4, - 0xc2, 0x54, 0x00, 0xd1, 0xe8, 0xb8, 0x0c, 0xbe, 0x91, 0xb7, 0xe0, 0x68, - 0xcf, 0x06, 0x18, 0x1d, 0x0e, 0xf3, 0x7f, 0x1a, 0x28, 0x15, 0x48, 0x04, - 0x42, 0x00, 0x04, 0x35, 0x04, 0x3b, 0x04, 0x43, 0x04, 0x2d, 0x8e, 0x68, - 0x27, 0x3d, 0x04, 0x3a, 0x20, 0x0d, 0x10, 0x15, 0x34, 0xff, 0x06, 0xf6, - 0xff, 0x08, 0x2a, 0x06, 0x06, 0x20, 0x01, 0x08, 0x20, 0x06, 0x0a, 0x20, - 0x05, 0x08, 0x00, 0x08, 0x51, 0x1c, 0xad, 0xfa, 0x00, 0x00, 0x0e, 0x0f, - 0x62, 0xb3, 0x30, 0xa4, 0x28, 0x0d, 0x38, 0x13, 0x05, 0xd8, 0x0f, 0x98, - 0x17, 0x47, 0x6f, 0x2e, 0x31, 0x6d, 0x00, 0x62, 0x4f, 0xb7, 0x10, 0x0e, - 0x10, 0x7f, 0x00, 0x98, 0x17, 0x10, 0x6f, 0x00, 0xed, 0x05, 0x22, 0x17, - 0xd1, 0x79, 0xf1, 0x82, 0x08, 0x03, 0x5e, 0xc9, 0x62, 0x06, 0x78, 0x17, - 0x54, 0xcf, 0x84, 0x06, 0xc7, 0x0c, 0xbe, 0x7c, 0xb7, 0x06, 0x18, 0x11, - 0x0f, 0x53, 0x7f, 0x1a, 0x00, 0x04, 0x3e, 0x04, 0x38, 0x04, 0x3c, 0x04, - 0x31, 0xe2, 0x48, 0x0f, 0x10, 0x16, 0x14, 0xff, 0x06, 0xf6, 0xff, 0x09, - 0x07, 0x07, 0x20, 0x01, 0x09, 0xa0, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x09, - 0x09, 0x98, 0x1c, 0x02, 0x80, 0x28, 0x17, 0x0f, 0x62, 0xa8, 0x30, 0xf4, - 0x30, 0xa9, 0x83, 0x06, 0x88, 0x15, 0x00, 0x00, 0xc9, 0x00, 0x76, 0x2f, - 0xa7, 0x06, 0x58, 0x13, 0xe1, 0x10, 0x07, 0x30, 0x7f, 0x00, 0x78, 0x17, - 0x05, 0x72, 0x17, 0xc3, 0x57, 0x66, 0x6b, 0x06, 0x98, 0x15, 0x03, 0x00, - 0x00, 0xd0, 0xc5, 0xf4, 0xbc, 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x1e, - 0x2d, 0x04, 0x32, 0x28, 0x19, 0x06, 0x58, 0x13, 0x10, 0x0f, 0x34, 0xff, - 0x06, 0xf6, 0xff, 0x0a, 0x2a, 0x08, 0x08, 0x20, 0x01, 0x0a, 0x20, 0x06, - 0x14, 0x20, 0x05, 0x0a, 0x08, 0x0a, 0x6d, 0x1b, 0x61, 0x28, 0x17, 0x10, - 0x62, 0xd5, 0x02, 0x30, 0xa1, 0x30, 0xfc, 0x30, 0xed, 0x06, 0x88, 0x17, - 0x46, 0xbe, 0x2f, 0xa5, 0x72, 0x2f, 0xb3, 0x06, 0x75, 0x97, 0x10, 0x06, - 0xf0, 0x7f, 0x00, 0x78, 0x17, 0x05, 0x72, 0x17, 0xd5, 0x10, 0x6c, 0x81, - 0x9c, 0x06, 0x98, 0x15, 0x00, 0x00, 0x0c, 0xd3, 0x34, 0x5c, 0xb8, 0x06, - 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x24, 0x28, 0x11, 0x40, 0x04, 0x71, 0x43, - 0x06, 0x68, 0x15, 0x10, 0x0f, 0x14, 0xff, 0x06, 0xf6, 0xff, 0x0b, 0x09, - 0x09, 0x20, 0x01, 0x50, 0x0b, 0x20, 0x06, 0x13, 0x20, 0x05, 0x0b, 0x0b, - 0x52, 0x1a, 0x40, 0x5c, 0x28, 0x17, 0x11, 0x62, 0xb0, 0x30, 0xa2, 0x30, - 0x11, 0xeb, 0x30, 0xc0, 0x06, 0x88, 0x17, 0x47, 0x00, 0x75, 0x48, 0x19, - 0x78, 0x64, 0x06, 0x6f, 0xb1, 0x10, 0x06, 0xf0, 0x7f, 0x00, 0x78, 0x17, - 0x05, 0x72, 0x17, 0xdc, 0x74, 0xbe, 0x40, 0x8f, 0x06, 0xb8, 0x17, 0x6c, - 0xad, 0x44, 0xc5, 0x74, 0xb9, 0x36, 0xe4, 0xb2, 0x06, 0x78, 0x1b, 0x0e, - 0xf3, 0x7f, 0x13, 0x28, 0x13, 0x38, 0x19, 0x34, 0xe2, 0x28, 0x1f, 0x10, - 0x16, 0x34, 0xff, 0x06, 0xf6, 0xff, 0x0c, 0x0a, 0x0a, 0x20, 0x01, 0x0c, - 0xa0, 0x20, 0x06, 0x09, 0x20, 0x05, 0x0c, 0x0c, 0xd3, 0x1c, 0xd5, 0x80, - 0x28, 0x17, 0x12, 0x62, 0xec, 0x30, 0xa4, 0x30, 0xea, 0xd7, 0x28, 0x1b, - 0x06, 0x78, 0x17, 0x4c, 0x2e, 0x1d, 0x69, 0x4e, 0x2d, 0x06, 0x58, 0x17, - 0x10, 0x06, 0xf0, 0x7f, 0xc0, 0x00, 0x78, 0x17, 0x05, 0x72, 0x17, 0xb1, - 0x83, 0xcc, 0x91, 0x9a, 0x4e, 0x80, 0x06, 0x98, 0x19, 0x08, 0xb8, 0x74, - 0xc7, 0xac, 0xb9, 0x44, 0x60, 0xc5, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, - 0x1b, 0x04, 0x35, 0x04, 0x39, 0x8e, 0x28, 0x17, 0x38, 0x04, 0x4f, 0x06, - 0x48, 0x17, 0x10, 0x0e, 0xf4, 0xff, 0x06, 0xf6, 0xff, 0x0d, 0x2a, 0x0b, - 0x0b, 0x20, 0x01, 0x0d, 0x20, 0x06, 0x0c, 0x20, 0x05, 0x0d, 0x04, 0x0d, - 0x43, 0x1c, 0xbd, 0xf9, 0x2b, 0x2d, 0x62, 0xdd, 0x00, 0x30, 0xeb, 0x30, - 0xbf, 0x30, 0xec, 0x30, 0xb0, 0xd4, 0x20, 0x03, 0x06, 0x38, 0x1b, 0x50, - 0x2e, 0x23, 0x72, 0x2e, 0x2f, 0x61, 0x00, 0x57, 0x6c, 0x2e, 0x27, 0x67, - 0x2f, 0xb9, 0x65, 0x10, 0x0d, 0xc0, 0x7f, 0x00, 0x78, 0x17, 0x05, 0x72, - 0x17, 0x00, 0xe2, 0x6c, 0x54, 0x58, 0xb1, 0x83, 0x3c, 0x68, 0x20, 0xcc, - 0x91, 0x06, 0x58, 0x1b, 0xec, 0xd3, 0x74, 0xb9, 0xc8, 0x01, 0xd0, 0x08, - 0xb8, 0xf8, 0xad, 0x74, 0xb9, 0x06, 0x38, 0x1b, 0x88, 0x0e, 0xf3, 0x7f, - 0x1f, 0x04, 0x3e, 0x28, 0x15, 0x42, 0x04, 0x30, 0x2b, 0x04, 0x3b, 0x28, - 0x21, 0x33, 0x28, 0x21, 0x35, 0x05, 0xc8, 0x1f, 0x10, 0x0e, 0xf4, 0xff, - 0x94, 0x06, 0xf6, 0xff, 0x0e, 0x0e, 0x70, 0x01, 0x0f, 0x40, 0x0a, 0xf0, - 0x1b, 0x05, 0xb7, 0xfa, 0x00, 0x00, 0x14, 0x48, 0x17, 0xc8, 0x06, 0x48, - 0x11, 0xb1, 0xd8, 0x17, 0x6f, 0x10, 0x0e, 0x60, 0x7f, 0x00, 0x78, 0x17, - 0x4f, 0x00, 0x70, 0x05, 0x42, 0x19, 0x03, 0xe2, 0x6c, 0x14, 0x5c, 0xfe, - 0x56, 0x06, 0x58, 0x13, 0x78, 0x17, 0x3b, 0x2c, 0xd2, 0x06, 0x38, 0x11, - 0x0f, 0x53, 0x7f, 0x78, 0x17, 0x43, 0x05, 0xc8, 0x0d, 0x10, 0x0f, 0x94, - 0xff, 0x95, 0x06, 0xf6, 0xff, 0x0f, 0x0f, 0x20, 0x01, 0x0d, 0x30, 0x05, - 0x10, 0x40, 0x0a, 0x00, 0x43, 0x1d, 0xe1, 0xf9, 0x00, 0x00, 0x15, 0x62, - 0x01, 0xb5, 0x30, 0xf3, 0x30, 0xbf, 0x30, 0xec, 0x20, 0x05, 0xa8, 0x06, - 0x58, 0x1b, 0x53, 0x2f, 0xa9, 0x6e, 0x4f, 0xaf, 0x72, 0x00, 0xe9, 0x38, - 0x00, 0x6d, 0x10, 0x0e, 0x00, 0x7f, 0x00, 0x78, 0x17, 0x05, 0x72, 0x17, - 0x23, 0x57, 0x54, 0x10, 0x58, 0x26, 0x4f, 0x06, 0x98, 0x17, 0xb0, 0xc0, - 0xc0, 0xd0, 0x30, 0x1d, 0xb8, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x21, - 0x04, 0x30, 0x04, 0x57, 0x3d, 0x28, 0x17, 0x30, 0x28, 0x1d, 0x35, 0x20, - 0x09, 0x10, 0x15, 0xf4, 0xff, 0x06, 0xf6, 0xff, 0x2a, 0x10, 0x10, 0x20, - 0x01, 0x0f, 0x30, 0x05, 0x11, 0x40, 0x0a, 0xe6, 0x20, 0x1b, 0xd3, 0x28, - 0x17, 0x16, 0x62, 0xbb, 0x30, 0xc8, 0x00, 0x30, 0xa5, 0x30, 0xfc, 0x30, - 0xd0, 0x30, 0xeb, 0xa0, 0x06, 0x48, 0x19, 0x53, 0x2e, 0x1d, 0x74, 0x00, - 0xfa, 0x00, 0x62, 0xbc, 0x28, 0x1f, 0x6c, 0x06, 0x48, 0x97, 0x10, 0x06, - 0xd0, 0x7f, 0x00, 0x98, 0x17, 0x05, 0x52, 0x17, 0x5e, 0x58, 0x02, 0xfe, - 0x56, 0xf4, 0x5d, 0x14, 0x5c, 0x06, 0x78, 0x19, 0x38, 0x06, 0xc1, 0x2c, - 0xd2, 0x1c, 0xbc, 0x06, 0xb8, 0x17, 0x0e, 0xd3, 0x7f, 0x21, 0x82, 0x28, - 0x0d, 0x42, 0x04, 0x43, 0x04, 0x31, 0x28, 0x1f, 0x3b, 0xe5, 0x06, 0x08, - 0x15, 0x10, 0x0f, 0x14, 0xff, 0x06, 0xf6, 0xff, 0x11, 0x11, 0x20, 0x01, - 0x10, 0x30, 0x05, 0x44, 0x12, 0x40, 0x0a, 0x65, 0x1b, 0xae, 0x28, 0x17, - 0x17, 0x62, 0x00, 0xf4, 0x30, 0xa3, 0x30, 0xa2, 0x30, 0xca, 0x30, 0x10, - 0xfb, 0x30, 0xc9, 0x20, 0x03, 0xab, 0x30, 0xb9, 0x30, 0x16, 0xc6, 0x30, - 0xed, 0x05, 0xa8, 0x21, 0x56, 0x2e, 0x2f, 0x3f, 0xb1, 0x61, 0xda, 0x4e, - 0x29, 0x3e, 0x2f, 0x43, 0x2f, 0xc1, 0x3e, 0x41, 0x65, 0x28, 0x27, 0x6f, - 0xe0, 0x10, 0x0d, 0x00, 0x7f, 0x00, 0x78, 0x17, 0x05, 0x72, 0x17, 0xf4, - 0x7e, 0x9a, 0x4e, 0xb3, 0x10, 0x7e, 0x21, 0x58, 0x06, 0x78, 0x17, 0x44, - 0xbe, 0x44, 0xc5, 0x00, 0x98, 0xb0, 0x50, 0xb4, 0x74, 0xce, 0xa4, 0xc2, - 0x0c, 0x54, 0xd1, 0xe8, 0xb8, 0x05, 0xf8, 0x21, 0x0e, 0xf3, 0x7f, 0x12, - 0x04, 0x51, 0x38, 0x28, 0x11, 0x3d, 0x28, 0x15, 0x2d, 0x00, 0x34, 0x28, - 0x1f, 0x15, 0x2d, 0x00, 0x1a, 0x28, 0x21, 0x48, 0x28, 0x2b, 0x35, 0x28, - 0x27, 0x75, 0x43, 0x05, 0x08, 0x29, 0x10, 0x0e, 0xf4, 0xff, 0x07, 0x02, - 0xff, 0x12, 0x20, 0x01, 0x11, 0x30, 0x05, 0x45, 0x06, 0x40, 0x0a, 0xa6, - 0x1d, 0xb9, 0x28, 0x17, 0x18, 0x48, 0x17, 0x56, 0xe9, 0x28, 0x15, 0xec, - 0x28, 0x1d, 0xeb, 0x05, 0xa8, 0x0f, 0xb8, 0x17, 0x6c, 0xbe, 0x48, 0x15, - 0x52, 0x2f, 0xb9, 0x06, 0x1f, 0xb3, 0x10, 0x06, 0xf0, 0x7f, 0x00, 0xb8, - 0x17, 0x05, 0x32, 0x17, 0xf7, 0x01, 0x96, 0x3f, 0x96, 0x14, 0x5c, 0xce, - 0x57, 0x06, 0x78, 0x17, 0x00, 0x4c, 0xbe, 0x7c, 0xb7, 0xe4, 0xd5, 0x4c, - 0xc5, 0xea, 0x05, 0xf8, 0x0f, 0x0f, 0x73, 0x7f, 0x38, 0x17, 0x3b, 0x48, - 0x15, 0x20, 0x28, 0x09, 0x30, 0xe5, 0x28, 0x0b, 0x10, 0x15, 0xd4, 0xff, - 0x06, 0xf6, 0xff, 0x13, 0x13, 0x20, 0x01, 0x12, 0x30, 0x05, 0x40, 0x08, - 0x40, 0x0a, 0x5d, 0x1d, 0x7e, 0xfa, 0x00, 0x00, 0x46, 0x19, 0x48, 0x17, - 0xbc, 0x30, 0xa6, 0x06, 0x28, 0x11, 0x9f, 0xaf, 0x73, 0xbc, 0x2f, 0x9b, - 0x75, 0x06, 0x5d, 0xae, 0x10, 0x07, 0x00, 0x7f, 0x00, 0xb8, 0x17, 0x05, - 0x32, 0x17, 0xf4, 0x7e, 0x0c, 0x5e, 0x58, 0x4c, 0x4e, 0x06, 0x78, 0x15, - 0x29, 0x17, 0xbe, 0x1c, 0x1d, 0xc8, 0xb0, 0xc6, 0x06, 0x78, 0x15, 0x0f, - 0x13, 0x7f, 0x38, 0x17, 0x37, 0x28, 0x11, 0x72, 0x43, 0x05, 0xe8, 0x0f, - 0x10, 0x0f, 0x74, 0xff, 0x06, 0xf6, 0xff, 0x14, 0x14, 0x20, 0x01, 0x13, - 0xa3, 0x30, 0x05, 0x07, 0x40, 0x0a, 0xe9, 0x1c, 0x60, 0x28, 0x17, 0x00, - 0x1f, 0xff, 0x15, 0x01, 0x0c, 0x0c, 0x20, 0x01, 0x01, 0x20, 0x06, 0x0d, - 0x20, 0x05, 0x00, 0x01, 0x01, 0x02, 0x0d, 0x0d, 0x0d, 0x0d, 0x14, 0x40, - 0x02, 0x20, 0x06, 0x0e, 0x0d, 0x02, 0x02, 0x02, 0x02, 0x01, 0x03, 0x02, - 0x01, 0x02, 0x02, 0x01, 0x03, 0x40, 0x06, 0x01, 0x03, 0x03, 0x03, 0x03, - 0x04, 0x01, 0x02, 0x20, 0x24, 0x41, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, - 0x04, 0x05, 0x30, 0x14, 0x20, 0x03, 0x05, 0x40, 0x06, 0x05, 0x05, 0x05, - 0x05, 0x06, 0x90, 0x30, 0x14, 0x04, 0x06, 0x40, 0x06, 0x06, 0x06, 0x06, - 0x06, 0x48, 0x07, 0x30, 0x14, 0x05, 0x07, 0x40, 0x06, 0x07, 0x07, 0x07, - 0x25, 0x07, 0x08, 0x30, 0x14, 0x06, 0x08, 0x20, 0x06, 0x0a, 0x20, 0x05, - 0x12, 0x08, 0x08, 0x09, 0x30, 0x14, 0x07, 0x09, 0x20, 0x06, 0x0b, 0x89, - 0x20, 0x05, 0x09, 0x09, 0x0a, 0x30, 0x14, 0x08, 0x0a, 0x20, 0x06, 0x44, - 0x14, 0x20, 0x05, 0x0a, 0x0a, 0x0b, 0x30, 0x14, 0x09, 0x0b, 0xa2, 0x20, - 0x06, 0x13, 0x20, 0x05, 0x0b, 0x0b, 0x0c, 0x30, 0x14, 0x0a, 0x5c, 0x0c, - 0x20, 0x06, 0x09, 0x20, 0x05, 0x20, 0xb5, 0x30, 0x14, 0x0b, 0x0d, 0xb5, - 0x20, 0x06, 0x0c, 0x20, 0x05, 0x20, 0xb5, 0x0e, 0x70, 0x01, 0x0f, 0x50, - 0x05, 0x54, 0x0f, 0x20, 0x01, 0x0d, 0x30, 0x05, 0x10, 0x40, 0x0a, 0x10, - 0x10, 0xd3, 0x20, 0x01, 0x40, 0x05, 0x11, 0x40, 0x0a, 0x11, 0x11, 0x20, - 0x01, 0x40, 0x05, 0x4d, 0x12, 0x40, 0x0a, 0x12, 0x12, 0x20, 0x01, 0x40, - 0x05, 0x06, 0x40, 0x0a, 0xe0, 0xf9, 0x5f, 0xf1, 0x57, 0x3f, 0xee, 0x00, - 0x11, 0xc8, 0x5e, 0x01, 0x11, 0x2a, 0x00, 0x00, 0x30, 0x01, 0x63, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x98, 0x1f, 0x8c, 0x12, 0x00, 0x00, 0x00, 0x02, 0x63, 0xd6, 0x30, - 0xab, 0x30, 0xec, 0x01, 0x30, 0xb9, 0x30, 0xc8, 0x30, 0xde, 0x5d, 0x06, - 0x38, 0x21, 0x00, 0x42, 0x00, 0x75, 0x00, 0x63, 0x00, 0x68, 0x00, 0x00, - 0x61, 0x00, 0x72, 0x00, 0x65, 0x00, 0x73, 0x00, 0x77, 0x74, 0x06, 0x40, - 0x7f, 0x06, 0x70, 0x7d, 0x50, 0xff, 0x6b, 0x06, 0xe0, 0x7f, 0x06, 0xf0, - 0xff, 0x06, 0xb1, 0x7f, 0x00, 0x03, 0x5e, 0xa0, 0x52, 0xd2, 0x52, 0xaf, - 0x65, 0x08, 0x79, 0x72, 0x02, 0x5e, 0x06, 0x3b, 0x21, 0x80, 0xbd, 0xe0, - 0x00, 0xcf, 0x08, 0xb8, 0x88, 0xc2, 0xf0, 0xd2, 0x20, 0x17, 0x00, 0xfc, - 0xc8, 0x06, 0x33, 0x7f, 0x6f, 0x23, 0x77, 0x06, 0x92, 0x81, 0xf3, 0x7f, - 0x40, 0x65, 0x05, 0xec, 0xa6, 0x11, 0x04, 0x43, 0x04, 0x45, 0x04, 0x00, - 0x30, 0x04, 0x40, 0x04, 0x35, 0x04, 0x41, 0x04, 0x31, 0x42, 0x04, 0x0e, - 0x54, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x01, 0x0a, 0x0a, 0x20, 0x01, 0x04, - 0x01, 0x01, 0x07, 0x0a, 0x0b, 0x20, 0x05, 0x01, 0x01, 0x80, 0x58, 0x17, - 0x03, 0x63, 0xa2, 0x30, 0xeb, 0x30, 0xd0, 0xc1, 0x06, 0x68, 0x13, 0x3f, - 0xff, 0x41, 0x00, 0x6c, 0x00, 0x62, 0x28, 0x15, 0x80, 0x10, 0x16, 0x70, - 0x7f, 0x3f, 0x96, 0x14, 0x5c, 0xf4, 0x5d, 0xbf, 0x43, 0x53, 0x06, 0x7f, - 0xb5, 0x4c, 0xc5, 0x14, 0xbc, 0x06, 0x58, 0x11, 0x0f, 0x53, 0x7f, 0x06, - 0x10, 0x04, 0x3b, 0x04, 0x31, 0x28, 0x17, 0x10, 0x1e, 0x74, 0xff, 0x02, - 0x90, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x01, - 0xc2, 0x20, 0xc2, 0x10, 0x00, 0x00, 0x04, 0x28, 0x17, 0x15, 0xe9, 0x30, - 0xc9, 0x06, 0xc8, 0x17, 0x72, 0x2f, 0xad, 0x64, 0x06, 0xa8, 0x17, 0x81, - 0x10, 0x0e, 0xd0, 0x7f, 0x3f, 0x96, 0xc9, 0x62, 0xb7, 0x5f, 0x06, 0x98, - 0x17, 0x03, 0x44, 0xc5, 0x7c, 0xb7, 0xdc, 0xb4, 0x06, 0x98, 0x19, 0x0e, - 0xf3, 0x7f, 0x16, 0x10, 0x04, 0x40, 0x28, 0x15, 0x34, 0x06, 0xa8, 0x17, - 0x10, 0x16, 0xd4, 0xff, 0x03, 0x90, 0x38, 0x0c, 0x02, 0x03, 0x40, 0x06, - 0x03, 0x03, 0x03, 0x03, 0x01, 0xd7, 0x20, 0x28, 0x0f, 0x00, 0x00, 0x05, - 0x28, 0x17, 0x00, 0xeb, 0x30, 0xb8, 0x30, 0xa7, 0x30, 0xb7, 0x30, 0x60, - 0xe5, 0x06, 0x48, 0x1d, 0x38, 0x17, 0x67, 0x00, 0x65, 0x00, 0x73, 0xc8, - 0x06, 0xa8, 0x97, 0x30, 0x7f, 0x5f, 0x01, 0x10, 0x0e, 0x50, 0x7f, 0x3f, - 0x96, 0x14, 0x04, 0x5c, 0x70, 0x67, 0xc0, 0x4e, 0x06, 0x78, 0x19, 0x44, - 0xc5, 0x03, 0x74, 0xb9, 0x1c, 0xc8, 0x88, 0xc2, 0x06, 0x78, 0x19, 0x07, - 0x72, 0xff, 0xc0, 0x06, 0x73, 0xff, 0x38, 0x17, 0x34, 0x04, 0x36, 0x04, - 0x35, 0x04, 0x74, 0x48, 0x06, 0x48, 0x1b, 0x07, 0x74, 0xff, 0x10, 0x0e, - 0x70, 0x7f, 0x04, 0x38, 0x0c, 0x03, 0x04, 0x80, 0x40, 0x06, 0x04, 0x04, - 0x04, 0x04, 0xe4, 0x1f, 0xb1, 0x00, 0x11, 0x00, 0x00, 0x06, 0x63, 0xd0, - 0x30, 0xab, 0x35, 0x30, 0xa6, 0x06, 0x48, 0x11, 0x5f, 0xff, 0x42, 0x2f, - 0xad, 0x63, 0x2f, 0xb1, 0x48, 0x75, 0x06, 0xc0, 0x7f, 0x03, 0x01, 0x10, - 0x0e, 0x70, 0x7f, 0xf4, 0x5d, 0x4b, 0x20, 0x51, 0x4c, 0x06, 0x88, 0x15, - 0x00, 0x00, 0x14, 0xbc, 0xe4, 0x18, 0xce, 0xb0, 0xc6, 0x06, 0x78, 0x15, - 0x0f, 0x12, 0xff, 0x11, 0x04, 0x30, 0x03, 0x04, 0x3a, 0x04, 0x4d, 0x04, - 0x43, 0x06, 0x48, 0x15, 0x07, 0x74, 0xff, 0xa4, 0x10, 0x0e, 0x90, 0x7f, - 0x05, 0x38, 0x0c, 0x04, 0x05, 0x40, 0x06, 0x05, 0x05, 0x00, 0x05, 0x05, - 0x1d, 0x21, 0x24, 0x13, 0x00, 0x00, 0x01, 0x07, 0x63, 0xd3, 0x30, 0xdb, - 0x30, 0xeb, 0x06, 0xc8, 0x17, 0x06, 0x69, 0x00, 0x68, 0x00, 0x6f, 0x2f, - 0xb5, 0x10, 0x16, 0x50, 0x7f, 0xd4, 0x04, 0x6b, 0x0d, 0x97, 0x14, 0x5c, - 0x06, 0x98, 0x17, 0x44, 0xbe, 0x0c, 0x38, 0xd6, 0x74, 0xb9, 0x06, 0xb8, - 0x17, 0x0e, 0xd3, 0x7f, 0x11, 0x04, 0x01, 0x38, 0x04, 0x45, 0x04, 0x3e, - 0x04, 0x40, 0x06, 0x88, 0x17, 0xa5, 0x10, 0x16, 0xd4, 0xff, 0x06, 0x38, - 0x0c, 0x05, 0x06, 0x20, 0x06, 0x06, 0x20, 0x05, 0x00, 0x06, 0x06, 0x78, - 0x21, 0x95, 0x0f, 0x00, 0x00, 0x40, 0x08, 0x28, 0x17, 0xb9, 0x30, 0xc8, - 0x30, 0xea, 0x30, 0x00, 0xc4, 0x30, 0xa1, 0x30, 0xfb, 0x30, 0xca, 0x30, - 0x06, 0xb5, 0x30, 0xa6, 0x30, 0xc9, 0x05, 0xa8, 0x27, 0x38, 0x17, 0x73, - 0x28, 0x00, 0x74, 0x28, 0x17, 0x69, 0x20, 0x05, 0x61, 0x00, 0x2d, 0x2a, - 0x00, 0x4e, 0x2f, 0xc1, 0x73, 0x4b, 0x41, 0x64, 0x06, 0x60, 0x7f, 0x03, - 0x30, 0x01, 0x73, 0x4f, 0xc1, 0x10, 0x0d, 0x30, 0x7f, 0xd4, 0x6b, 0xaf, - 0x65, 0x00, 0x79, 0x72, 0xcc, 0x91, 0xdf, 0x5b, 0x2d, 0x00, 0x00, 0xb7, - 0x8b, 0x5f, 0x74, 0x4c, 0x4e, 0xb7, 0x5f, 0x80, 0x05, 0xb8, 0x25, 0x44, - 0xbe, 0xa4, 0xc2, 0xb8, 0xd2, 0xac, 0x00, 0xb9, 0x28, 0xcc, 0x08, 0xb1, - 0x1c, 0xc1, 0xb0, 0x1c, 0xc6, 0xdc, 0xb4, 0x05, 0xd8, 0x23, 0x0e, 0xf2, - 0xff, 0x38, 0x17, 0x41, 0x04, 0x40, 0x42, 0x28, 0x17, 0x38, 0x04, 0x46, - 0x04, 0x30, 0x04, 0x04, 0x2d, 0x00, 0x1d, 0x04, 0x4d, 0x20, 0x11, 0x4d, - 0x04, 0x1d, 0x43, 0x04, 0x34, 0x05, 0x28, 0x2b, 0x08, 0x34, 0xff, 0x10, - 0x0d, 0xb0, 0x7f, 0x07, 0x38, 0x0c, 0x28, 0x06, 0x07, 0x20, 0x06, 0x05, - 0x20, 0x05, 0x07, 0x07, 0x84, 0x00, 0x21, 0x6c, 0x11, 0x00, 0x00, 0x09, - 0x63, 0xdc, 0x83, 0x28, 0x15, 0xb7, 0x30, 0xe3, 0x30, 0xcb, 0x05, 0xa8, - 0x0b, 0xdf, 0xaf, 0x56, 0x6f, 0x28, 0x15, 0x6f, 0x48, 0x09, 0x6e, 0x2f, - 0xbb, 0x06, 0x70, 0x7f, 0x5f, 0x40, 0x01, 0x10, 0x0e, 0x50, 0x7f, 0x5a, - 0x53, 0x58, 0x62, 0x99, 0x6c, 0x30, 0x3c, 0x5c, 0x05, 0xb8, 0x0b, 0xbf, - 0xff, 0xf4, 0xbc, 0xa0, 0xd1, 0x0c, 0xe4, 0xc0, 0xc8, 0xb2, 0x05, 0xd8, - 0x0d, 0x0f, 0x92, 0xff, 0x11, 0x04, 0x45, 0x3e, 0x28, 0x15, 0x3e, 0x04, - 0x48, 0x28, 0x13, 0x3d, 0x28, 0x23, 0xd1, 0x0e, 0x74, 0xff, 0x10, 0x0e, - 0x70, 0x7f, 0x08, 0x38, 0x0c, 0x07, 0x08, 0x08, 0x30, 0x07, 0x80, 0x20, - 0x05, 0x08, 0xf4, 0x21, 0xf6, 0x12, 0x00, 0x00, 0x01, 0x0a, 0x63, 0xd6, - 0x30, 0xe9, 0x30, 0xa4, 0x20, 0x03, 0xd1, 0x06, 0x58, 0x15, 0x3f, 0xaf, - 0x72, 0x2f, 0xa5, 0x69, 0x00, 0x6c, 0x2f, 0xab, 0x90, 0x06, 0x70, 0x7f, - 0x03, 0x01, 0x10, 0x0e, 0x90, 0x7f, 0x03, 0x5e, 0xd2, 0x52, 0x08, 0x0a, - 0x4f, 0xc9, 0x62, 0x06, 0x78, 0x17, 0x0c, 0xbe, 0xec, 0x06, 0xb7, 0x7c, - 0xc7, 0x7c, 0xb7, 0x06, 0x98, 0x17, 0x0e, 0xd2, 0xff, 0x11, 0x0b, 0x04, - 0x40, 0x04, 0x4d, 0x28, 0x0f, 0x3b, 0x28, 0x17, 0x0e, 0x74, 0xff, 0xa0, - 0x10, 0x0e, 0xb0, 0x7f, 0x09, 0x38, 0x0c, 0x08, 0x09, 0x09, 0x09, 0x08, - 0xc0, 0x20, 0x01, 0x20, 0x06, 0x33, 0x20, 0xe3, 0x13, 0x00, 0x00, 0x41, - 0x0b, 0x48, 0x17, 0xb7, 0x30, 0xe7, 0x30, 0xf4, 0x06, 0x68, 0x19, 0xa9, - 0x58, 0x17, 0x73, 0x2f, 0xb5, 0x76, 0x06, 0xa8, 0x97, 0x5f, 0x01, 0x10, - 0x0e, 0x70, 0x7f, 0x00, 0x03, 0x5e, 0xc9, 0x62, 0x22, 0x7d, 0x2b, 0x59, - 0x81, 0x06, 0x98, 0x17, 0x7c, 0xb7, 0xfc, 0xc1, 0x0c, 0xbe, 0x06, 0xb8, - 0x17, 0xc0, 0x0e, 0xb2, 0xff, 0x38, 0x17, 0x30, 0x04, 0x48, 0x04, 0x3e, - 0x04, 0x74, 0x32, 0x06, 0xa8, 0x17, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0x90, - 0x7f, 0x0a, 0x38, 0x0c, 0x09, 0x0a, 0x30, 0x0a, 0x0a, 0x28, 0x18, 0x20, - 0x05, 0x0a, 0x76, 0x20, 0x37, 0x63, 0x12, 0x2c, 0xad, 0x28, 0x17, 0xb6, - 0x30, 0xa6, 0x06, 0x68, 0x13, 0x5f, 0xaf, 0x14, 0x75, 0x00, 0x7a, 0x2f, - 0xab, 0x75, 0x06, 0xc0, 0x7f, 0x03, 0x01, 0x81, 0x10, 0x0e, 0x70, 0x7f, - 0x03, 0x5e, 0xfd, 0x6c, 0x4c, 0x4e, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, - 0x80, 0xbd, 0x00, 0xc8, 0xb0, 0xc6, 0xc0, 0x06, 0x78, 0x15, 0x0f, 0x12, - 0xff, 0x11, 0x04, 0x43, 0x04, 0x37, 0x04, 0x72, 0x4d, 0x20, 0x05, 0x0e, - 0xb4, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x0b, 0x0b, 0x70, 0x01, 0x0a, 0x80, - 0x40, 0x0a, 0x1b, 0x20, 0x11, 0x13, 0x00, 0x00, 0x0d, 0x0a, 0x63, 0xab, - 0x30, 0xe9, 0x20, 0x01, 0xb7, 0x06, 0x88, 0x19, 0x43, 0xb4, 0x2f, 0xad, - 0x6c, 0x2f, 0xb1, 0x5b, 0x35, 0x69, 0x06, 0x20, 0x7f, 0x03, 0x01, 0x70, - 0x6c, 0x28, 0x17, 0x5f, 0xb5, 0x10, 0x0e, 0x10, 0x7f, 0x4b, 0x51, 0xd2, - 0x52, 0x08, 0xc9, 0x62, 0x0c, 0x5e, 0x06, 0x78, 0x19, 0xec, 0xce, 0xec, - 0x06, 0xb7, 0x7c, 0xb7, 0xdc, 0xc2, 0x06, 0x78, 0x19, 0x0e, 0xf2, 0xff, - 0x1a, 0xa0, 0x28, 0x13, 0x3b, 0x28, 0x17, 0x40, 0x04, 0x30, 0x04, 0x48, - 0x39, 0x04, 0x38, 0x06, 0x08, 0x1d, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, - 0x7f, 0x0c, 0x0c, 0x70, 0x01, 0x45, 0x19, 0x40, 0x0a, 0x6e, 0x1f, 0x6f, - 0x28, 0x17, 0x0e, 0x48, 0x17, 0x00, 0xb7, 0x30, 0xe5, 0x30, 0xfb, 0x30, - 0xbb, 0x30, 0x01, 0xf4, 0x30, 0xa7, 0x30, 0xea, 0x30, 0xf3, 0x05, 0xc8, - 0x23, 0xc0, 0x38, 0x17, 0x58, 0x13, 0x2d, 0x00, 0x53, 0x00, 0x65, 0x00, - 0x54, 0x76, 0x20, 0x03, 0x72, 0x28, 0x1f, 0x6e, 0x05, 0xe0, 0x7f, 0x5f, - 0x01, 0x80, 0x10, 0x0e, 0x50, 0x7f, 0x61, 0x53, 0xc9, 0x62, 0xc0, 0x4e, - 0x2d, 0x01, 0x00, 0x5e, 0x58, 0xf4, 0x7e, 0x97, 0x67, 0x06, 0x18, 0x1d, - 0x00, 0x74, 0xce, 0x7c, 0xb7, 0x88, 0xc2, 0x38, 0xc1, 0x0d, 0xa0, 0xbc, - 0xb0, 0xb9, 0x06, 0x38, 0x1b, 0x0e, 0xf2, 0xff, 0x1a, 0x28, 0x0f, 0x80, - 0x58, 0x13, 0x2d, 0x00, 0x21, 0x04, 0x35, 0x04, 0x32, 0xae, 0x20, 0x03, - 0x40, 0x28, 0x1f, 0x3d, 0x05, 0x68, 0x21, 0x07, 0x74, 0xff, 0x10, 0x0e, - 0x70, 0x7f, 0x0d, 0x50, 0x0d, 0x70, 0x01, 0x15, 0x40, 0x0a, 0x36, 0x20, - 0x8f, 0x0f, 0x00, 0x00, 0x00, 0x0f, 0x63, 0xaf, 0x30, 0xeb, 0x30, 0x1c, - 0xfc, 0x30, 0xb8, 0x28, 0x19, 0x05, 0xb8, 0x0d, 0xbf, 0xaf, 0x6c, 0x00, - 0x18, 0x75, 0x00, 0x6a, 0x06, 0x5d, 0xac, 0x10, 0x0f, 0x20, 0x7f, 0x4b, - 0x51, 0x62, 0x18, 0x53, 0xe5, 0x65, 0x06, 0x18, 0x0f, 0x88, 0x17, 0xd0, - 0xe8, 0xb8, 0x30, 0xc0, 0xc9, 0x06, 0x38, 0x11, 0x0f, 0x53, 0x7f, 0x1a, - 0x04, 0x3b, 0x04, 0x19, 0x43, 0x04, 0x36, 0x05, 0x68, 0x05, 0x10, 0x18, - 0x14, 0xff, 0x0e, 0x0e, 0x70, 0x01, 0x40, 0x16, 0x40, 0x0a, 0x44, 0x21, - 0xc5, 0x10, 0x00, 0x00, 0x00, 0x10, 0x63, 0xb3, 0x30, 0xf3, 0x30, 0xb9, - 0x30, 0x44, 0xbf, 0x20, 0x05, 0xc4, 0x30, 0xa1, 0x06, 0x28, 0x1b, 0x43, - 0x00, 0x45, 0x6f, 0x2f, 0x9b, 0x73, 0x00, 0x74, 0x2f, 0xb7, 0x6e, 0x40, - 0x05, 0xdc, 0x10, 0x06, 0x10, 0x7f, 0x71, 0x7d, 0x7a, 0x06, 0x01, 0x7d, - 0xf1, 0xff, 0x06, 0x10, 0x81, 0xb7, 0x5e, 0x02, 0xaf, 0x65, 0x66, 0x57, - 0xdf, 0x5b, 0x06, 0x78, 0x19, 0x58, 0x01, 0xcf, 0xa4, 0xc2, 0xc4, 0xd0, - 0x28, 0xcc, 0x06, 0x78, 0x19, 0x80, 0x0e, 0xf3, 0x7f, 0x1a, 0x04, 0x3e, - 0x04, 0x3d, 0x04, 0x41, 0x0b, 0x04, 0x42, 0x04, 0x30, 0x20, 0x07, 0x46, - 0x20, 0x05, 0x10, 0x0e, 0x14, 0xff, 0x94, 0x0e, 0xb6, 0x7f, 0x0f, 0x0f, - 0x70, 0x01, 0x18, 0x40, 0x0a, 0x6b, 0x1f, 0x05, 0x5c, 0x14, 0x00, 0x00, - 0x11, 0x28, 0x17, 0xf4, 0x28, 0x0f, 0x1a, 0xb9, 0x30, 0xca, 0x06, 0x28, - 0x13, 0x78, 0x17, 0x76, 0x28, 0x13, 0x73, 0xe0, 0x28, 0x1d, 0x06, 0x16, - 0x95, 0x10, 0x0f, 0x10, 0x7f, 0xd1, 0x79, 0xe6, 0x74, 0xaf, 0x10, 0x65, - 0xb3, 0x7e, 0x06, 0x78, 0x17, 0x54, 0xcf, 0x14, 0xbc, 0x0e, 0xa4, 0xc2, - 0x98, 0xb0, 0x06, 0xb8, 0x17, 0x0e, 0xb3, 0x7f, 0x38, 0x17, 0x32, 0xb9, - 0x28, 0x13, 0x41, 0x28, 0x1d, 0x05, 0xf8, 0x13, 0x10, 0x17, 0x34, 0xff, - 0x10, 0x10, 0x70, 0x01, 0x40, 0x17, 0x40, 0x0a, 0x9d, 0x20, 0x58, 0x12, - 0x00, 0x00, 0x00, 0x12, 0x63, 0xc9, 0x30, 0xa5, 0x30, 0xf3, 0x30, 0x06, - 0xdc, 0x30, 0xd3, 0x30, 0xc4, 0x28, 0x1f, 0x06, 0x18, 0x1b, 0x44, 0x02, - 0x00, 0xe2, 0x00, 0x6d, 0x00, 0x62, 0x48, 0x1d, 0x69, 0xc0, 0x06, 0x2f, - 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0x7b, 0x76, 0x5a, 0x53, 0xf4, 0x7e, 0x20, - 0xdf, 0x5b, 0x06, 0x78, 0x17, 0xec, 0xb4, 0xf4, 0xbc, 0x44, 0x18, 0xbe, - 0x28, 0xcc, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x14, 0x04, 0x4b, 0x08, - 0x04, 0x3c, 0x04, 0x31, 0x48, 0x1d, 0x38, 0x04, 0x46, 0xca, 0x06, 0x08, - 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x11, 0x11, 0x70, 0x01, 0x13, 0x40, 0x0a, - 0xf4, 0x28, 0x1f, 0x1a, 0x28, 0x17, 0x13, 0x28, 0x17, 0xeb, 0x30, 0xb8, - 0x30, 0x30, 0xe5, 0x06, 0x28, 0x11, 0x78, 0x17, 0x6f, 0x00, 0x6c, 0x00, - 0x60, 0x6a, 0x06, 0x5d, 0xac, 0x10, 0x0f, 0x20, 0x7f, 0x1a, 0x59, 0x14, - 0x5c, 0xe5, 0x40, 0x65, 0x06, 0x78, 0x15, 0x00, 0x00, 0xcc, 0xb3, 0xc0, - 0xc9, 0xd1, 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x14, 0x28, 0x11, 0x3b, - 0x04, 0x36, 0x05, 0xe8, 0x0d, 0x90, 0x10, 0x17, 0x94, 0xff, 0x12, 0x12, - 0xd0, 0x01, 0x83, 0x1f, 0xef, 0x10, 0x80, 0x2b, 0x2d, 0x63, 0xac, 0x30, - 0xe9, 0x30, 0xc4, 0x30, 0x55, 0xa3, 0x06, 0x88, 0x17, 0x47, 0x2f, 0xa1, - 0x6c, 0x2f, 0xa5, 0x74, 0x2f, 0xad, 0x81, 0x10, 0x16, 0x30, 0x7f, 0xa0, - 0x52, 0xc9, 0x62, 0x28, 0x83, 0x06, 0x98, 0x17, 0x03, 0x08, 0xac, 0x7c, - 0xb7, 0x58, 0xce, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0x11, 0x13, 0x04, - 0x30, 0x28, 0x17, 0x30, 0x04, 0x46, 0x06, 0x68, 0x19, 0x94, 0x10, 0x16, - 0xf4, 0xff, 0x13, 0x13, 0x70, 0x01, 0x0f, 0x40, 0x0a, 0x4e, 0x20, 0x00, - 0xef, 0x13, 0x00, 0x00, 0x15, 0x63, 0xb8, 0x30, 0x0d, 0xe5, 0x30, 0xeb, - 0x30, 0x30, 0x05, 0x06, 0x58, 0x19, 0x47, 0x28, 0x0f, 0x06, 0x75, 0x00, - 0x72, 0x00, 0x67, 0x40, 0x07, 0x10, 0x16, 0x10, 0x7f, 0x45, 0x04, 0x4e, - 0x14, 0x5c, 0x45, 0x4e, 0x06, 0x98, 0x17, 0xc0, 0xc9, 0x0e, 0xb0, 0xc6, - 0x74, 0xb9, 0x30, 0x05, 0x06, 0x58, 0x1b, 0x0e, 0xf3, 0x7f, 0x14, 0x00, - 0x04, 0x36, 0x04, 0x43, 0x04, 0x40, 0x04, 0x34, 0xca, 0x40, 0x07, 0x10, - 0x1e, 0x14, 0xff, 0x14, 0x14, 0x70, 0x01, 0x11, 0x40, 0x0a, 0x37, 0x00, - 0x1f, 0x77, 0x12, 0x00, 0x00, 0x16, 0x63, 0xb4, 0xd6, 0x06, 0xc8, 0x15, - 0x3f, 0xaf, 0x6f, 0x28, 0x15, 0x6a, 0x06, 0x7d, 0xae, 0x10, 0x0f, 0x00, - 0x7f, 0x08, 0x04, 0x62, 0x14, 0x5c, 0xe5, 0x65, 0x06, 0x98, 0x17, 0xe0, - 0xac, 0xe2, 0x38, 0x15, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x13, 0x04, - 0x3e, 0x28, 0x15, 0x36, 0xca, 0x06, 0x28, 0x11, 0x10, 0x17, 0x54, 0xff, - 0x15, 0x15, 0x70, 0x01, 0x10, 0x40, 0x0a, 0x09, 0x00, 0x20, 0x8b, 0x10, - 0x00, 0x00, 0x17, 0x63, 0xcf, 0x88, 0x28, 0x17, 0xae, 0x30, 0xbf, 0x06, - 0x88, 0x17, 0x48, 0x00, 0x61, 0xac, 0x4f, 0xad, 0x68, 0x2f, 0xb7, 0x74, - 0x20, 0x0b, 0x10, 0x15, 0xf0, 0x7f, 0xc8, 0x54, 0x02, 0x14, 0x5c, 0x09, - 0x54, 0x54, 0x58, 0x06, 0x78, 0x19, 0x58, 0x01, 0xd5, 0x74, 0xb9, 0x30, - 0xae, 0xc0, 0xd0, 0x06, 0x78, 0x19, 0x88, 0x0e, 0xf3, 0x7f, 0x25, 0x04, - 0x30, 0x28, 0x17, 0x33, 0x04, 0x38, 0x32, 0x04, 0x42, 0x20, 0x09, 0x10, - 0x1e, 0x14, 0xff, 0x16, 0x16, 0x70, 0x01, 0x27, 0x80, 0x40, 0x0a, 0xf8, - 0x20, 0x58, 0x12, 0x00, 0x00, 0x18, 0x00, 0x63, 0xd5, 0x30, 0xcd, 0x30, - 0xc9, 0x30, 0xa2, 0x20, 0x30, 0xe9, 0x06, 0x68, 0x19, 0x48, 0x00, 0x75, - 0x00, 0x6e, 0x0f, 0x00, 0x65, 0x00, 0x64, 0x2f, 0xb7, 0x38, 0x21, 0x05, - 0xf8, 0x19, 0x10, 0x0e, 0xf0, 0x7f, 0x00, 0xe1, 0x80, 0x85, 0x51, 0x1a, - 0x59, 0x3f, 0x96, 0x20, 0xc9, 0x62, 0x06, 0x58, 0x19, 0xc4, 0xd6, 0x24, - 0xb1, 0xc4, 0x06, 0xb3, 0x44, 0xc5, 0x7c, 0xb7, 0x06, 0x58, 0x19, 0x0e, - 0xf3, 0x7f, 0x25, 0x00, 0x04, 0x43, 0x04, 0x3d, 0x04, 0x35, 0x04, 0x34, - 0x39, 0x04, 0x3e, 0x48, 0x21, 0x05, 0xf8, 0x1b, 0x10, 0x16, 0xf4, 0xff, - 0x17, 0x17, 0x70, 0x01, 0x40, 0x28, 0x40, 0x0a, 0xa0, 0x20, 0x49, 0x10, - 0x00, 0x00, 0x00, 0x19, 0x63, 0xe4, 0x30, 0xed, 0x30, 0xdf, 0x30, 0x15, - 0xc4, 0x30, 0xa1, 0x06, 0x68, 0x17, 0x49, 0x2f, 0xaf, 0x6c, 0x28, 0x13, - 0x60, 0x6d, 0x06, 0x6f, 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0xc5, 0x96, 0x1b, - 0x6d, 0x73, 0x10, 0x7c, 0xdf, 0x5b, 0x06, 0x58, 0x15, 0x00, 0x00, 0x74, - 0xc7, 0x00, 0x4c, 0xc5, 0x5c, 0xb8, 0xf8, 0xbb, 0x28, 0xcc, 0xc4, 0x06, - 0x58, 0x17, 0x0e, 0xf3, 0x7f, 0x2f, 0x04, 0x3b, 0x28, 0x11, 0x3c, 0x04, - 0x19, 0x38, 0x04, 0x46, 0x06, 0x08, 0x13, 0x10, 0x17, 0x34, 0xff, 0x18, - 0x18, 0x70, 0x01, 0x40, 0x29, 0x40, 0x0a, 0xb1, 0x1f, 0x78, 0x13, 0x00, - 0x00, 0x5b, 0x1a, 0x28, 0x17, 0xb7, 0x06, 0x68, 0x11, 0x98, 0x17, 0x73, - 0x28, 0x13, 0x06, 0xb0, 0x7f, 0x21, 0x5f, 0x01, 0x10, 0x0e, 0x90, 0x7f, - 0xc5, 0x96, 0x7f, 0x89, 0x06, 0x78, 0x13, 0x87, 0x58, 0x17, 0x44, 0xc5, - 0xdc, 0xc2, 0x06, 0x58, 0x13, 0x07, 0x72, 0xff, 0x06, 0xb3, 0xff, 0x17, - 0x2f, 0x04, 0x41, 0x20, 0x01, 0x4b, 0x06, 0x28, 0x11, 0x07, 0x94, 0xff, - 0x10, 0x0e, 0xb0, 0x7f, 0x28, 0x19, 0x19, 0x70, 0x01, 0x2a, 0x40, 0x0a, - 0x8a, 0x21, 0x9a, 0x80, 0x28, 0x17, 0x1b, 0x63, 0xa4, 0x30, 0xeb, 0x30, - 0xdb, 0x2a, 0x30, 0xf4, 0x06, 0x88, 0x1b, 0x49, 0x2f, 0xad, 0x66, 0x2f, - 0xaf, 0x76, 0xc0, 0x06, 0x88, 0x97, 0x10, 0x0e, 0xd0, 0x7f, 0x0a, 0x4f, - 0x14, 0x5c, 0x8f, 0x79, 0x20, 0x2b, 0x59, 0x06, 0x78, 0x1b, 0x7c, 0xc7, - 0xec, 0xd3, 0x0c, 0x60, 0xbe, 0x06, 0xb8, 0x17, 0x0e, 0xd3, 0x7f, 0x18, - 0x04, 0x3b, 0x04, 0x44, 0x0c, 0x04, 0x3e, 0x04, 0x32, 0x06, 0x68, 0x19, - 0x10, 0x16, 0xf4, 0xff, 0x1a, 0x1a, 0xa0, 0x70, 0x01, 0x14, 0x40, 0x0a, - 0xb1, 0x1f, 0x74, 0x12, 0x00, 0x00, 0x00, 0x1c, 0x63, 0xde, 0x30, 0xe9, - 0x30, 0xe0, 0x02, 0x30, 0xec, 0x30, 0xb7, 0x30, 0xe5, 0x06, 0x48, 0x1b, - 0x4d, 0xa2, 0x2f, 0xaf, 0x72, 0x2f, 0xb3, 0x6d, 0x00, 0x75, 0x20, 0x07, - 0x65, 0xc8, 0x2c, 0x3b, 0x06, 0xd0, 0x7f, 0x5f, 0x01, 0x10, 0x0d, 0xd0, - 0x7f, 0x6c, 0x9a, 0xc9, 0x01, 0x62, 0x46, 0x7a, 0x17, 0x52, 0xc0, 0x4e, - 0x06, 0x58, 0x19, 0x00, 0xc8, 0xb9, 0x7c, 0xb7, 0x34, 0xbb, 0x08, 0xb8, - 0x38, 0x88, 0xc2, 0x06, 0x58, 0x1b, 0x07, 0xf2, 0xff, 0x05, 0xf3, 0xff, - 0x1c, 0x04, 0x30, 0x22, 0x04, 0x40, 0x20, 0x03, 0x3c, 0x04, 0x43, 0x20, - 0x07, 0x35, 0x39, 0x04, 0x48, 0x05, 0xe8, 0x1f, 0x07, 0xf4, 0xff, 0x10, - 0x0d, 0xf0, 0x7f, 0x1b, 0x1b, 0x70, 0x01, 0x40, 0x1a, 0x40, 0x0a, 0xe2, - 0x21, 0xc5, 0x10, 0x00, 0x00, 0x00, 0x1d, 0x63, 0xe1, 0x30, 0xd8, 0x30, - 0xc7, 0x30, 0x06, 0xa3, 0x30, 0xf3, 0x30, 0xc4, 0x20, 0x05, 0x06, 0x18, - 0x19, 0x4d, 0xa0, 0x28, 0x0b, 0x68, 0x28, 0x0f, 0x64, 0x00, 0x69, 0x00, - 0x6e, 0x30, 0x00, 0x74, 0x20, 0x05, 0x10, 0x15, 0xd0, 0x7f, 0x85, 0x68, - 0x6b, 0x8d, 0x08, 0x01, 0x4e, 0x28, 0x83, 0x06, 0x58, 0x15, 0x00, 0x00, - 0x54, 0x01, 0xba, 0xe4, 0xd5, 0x18, 0xb5, 0x58, 0xce, 0x06, 0x58, 0x15, - 0xa8, 0x0f, 0x13, 0x7f, 0x1c, 0x28, 0x0b, 0x45, 0x28, 0x0f, 0x34, 0x04, - 0x38, 0x0c, 0x04, 0x3d, 0x04, 0x46, 0x20, 0x05, 0x10, 0x1d, 0xd4, 0xff, - 0x1c, 0x1c, 0xa2, 0x70, 0x01, 0x1b, 0x40, 0x0a, 0xbd, 0x1f, 0x1b, 0x28, - 0x17, 0x1e, 0x00, 0x63, 0xe0, 0x30, 0xec, 0x30, 0xb7, 0x30, 0xe5, 0xfc, - 0x06, 0x28, 0x11, 0x7f, 0xaf, 0x06, 0x5c, 0x27, 0xf0, 0x7f, 0x05, 0xff, - 0xa7, 0x10, 0x07, 0x70, 0x7f, 0x46, 0x7a, 0x08, 0x17, 0x52, 0xc0, 0x4e, - 0x06, 0x78, 0x15, 0x00, 0x00, 0x34, 0x07, 0xbb, 0x08, 0xb8, 0x88, 0xc2, - 0x06, 0x78, 0x15, 0x07, 0x92, 0xff, 0x06, 0x73, 0xff, 0x05, 0x1c, 0x04, - 0x43, 0x04, 0x40, 0x28, 0x1b, 0x48, 0x05, 0xe8, 0x0f, 0xca, 0x07, 0xf4, - 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x1d, 0x1d, 0x70, 0x01, 0x1c, 0x40, 0x0a, - 0x18, 0x00, 0x21, 0x75, 0x11, 0x00, 0x00, 0x1f, 0x63, 0xcd, 0x02, 0x30, - 0xa2, 0x30, 0xe0, 0x30, 0xc4, 0x06, 0x88, 0x17, 0x4e, 0x8c, 0x2f, 0xaf, - 0x61, 0x00, 0x6d, 0x2f, 0xa9, 0x10, 0x16, 0x50, 0x7f, 0x3c, 0x5c, 0x02, - 0x9a, 0x4e, 0xc6, 0x59, 0x28, 0x83, 0x06, 0x78, 0x19, 0x24, 0x06, 0xb1, - 0x54, 0xc5, 0x20, 0xce, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x1d, 0x03, - 0x04, 0x4f, 0x04, 0x3c, 0x04, 0x46, 0x06, 0x68, 0x15, 0x10, 0x17, 0x14, - 0xff, 0x28, 0x1e, 0x1e, 0x70, 0x01, 0x1d, 0x40, 0x0a, 0x5f, 0x21, 0xbf, - 0x00, 0x12, 0x00, 0x00, 0x20, 0x63, 0xaa, 0x30, 0xeb, 0x20, 0x30, 0xc8, - 0x06, 0x88, 0x15, 0x00, 0x00, 0x4f, 0x00, 0x6c, 0xc0, 0x06, 0x88, 0x13, - 0x10, 0x0f, 0x30, 0x7f, 0x65, 0x59, 0x14, 0x5c, 0x79, 0x72, 0x81, 0x06, - 0x78, 0x15, 0x00, 0x00, 0x2c, 0xc6, 0xb8, 0xd2, 0x06, 0x98, 0x15, 0x83, - 0x0f, 0x13, 0x7f, 0x1e, 0x04, 0x3b, 0x04, 0x42, 0x06, 0x88, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x28, 0x1f, 0x1f, 0x70, 0x01, 0x1e, 0x40, 0x0a, 0x98, - 0x1f, 0x50, 0x00, 0x11, 0x00, 0x00, 0x21, 0x63, 0xd7, 0x30, 0xe9, 0x02, - 0x30, 0xdb, 0x30, 0xf4, 0x30, 0xa1, 0x06, 0x68, 0x1b, 0x50, 0x20, 0x00, - 0x72, 0x2f, 0xaf, 0x68, 0x00, 0x6f, 0x00, 0x76, 0xc0, 0x2f, 0xb7, 0x10, - 0x16, 0x10, 0x7f, 0x6e, 0x66, 0xc9, 0x62, 0x0d, 0x97, 0x20, 0xe6, 0x74, - 0x06, 0x78, 0x19, 0x04, 0xd5, 0x7c, 0xb7, 0x38, 0x18, 0xd6, 0x14, 0xbc, - 0x06, 0x78, 0x1b, 0x0e, 0xf3, 0x7f, 0x1f, 0x04, 0x40, 0x00, 0x04, 0x30, - 0x04, 0x45, 0x04, 0x3e, 0x04, 0x32, 0xca, 0x20, 0x07, 0x10, 0x1e, 0x14, - 0xff, 0x20, 0x20, 0x70, 0x01, 0x1f, 0x40, 0x0a, 0xf3, 0x00, 0x1f, 0x80, - 0x12, 0x00, 0x00, 0x22, 0x63, 0xb5, 0x82, 0x28, 0x17, 0xfc, 0x30, 0xb8, - 0x30, 0xe5, 0x06, 0x68, 0x17, 0x53, 0xa8, 0x28, 0x15, 0x6c, 0x28, 0x19, - 0x6a, 0x06, 0x6f, 0xb3, 0x53, 0x00, 0x03, 0x40, 0x01, 0x10, 0x0e, 0xb0, - 0x7f, 0x5f, 0x74, 0xc9, 0x62, 0xe5, 0x65, 0x80, 0x06, 0x78, 0x15, 0x00, - 0x00, 0x24, 0xc1, 0x7c, 0xb7, 0xc0, 0x70, 0xc9, 0x06, 0x78, 0x15, 0x07, - 0x32, 0xff, 0x06, 0xd3, 0xff, 0x21, 0x04, 0x4d, 0x04, 0x5c, 0x3b, 0x28, - 0x19, 0x36, 0x06, 0x28, 0x13, 0x07, 0x54, 0xff, 0x10, 0x0e, 0xd0, 0x7f, - 0x21, 0x21, 0xa0, 0x70, 0x01, 0x23, 0x40, 0x0a, 0x8d, 0x21, 0x65, 0x10, - 0x00, 0x20, 0x00, 0x23, 0x28, 0x17, 0xc8, 0x30, 0xa5, 0x30, 0xfb, 0x2c, - 0x30, 0xde, 0x28, 0x1d, 0xec, 0x06, 0x28, 0x1b, 0x38, 0x17, 0x74, 0x00, - 0x04, 0x75, 0x00, 0x20, 0x00, 0x4d, 0x2f, 0xb7, 0x72, 0x00, 0x40, 0x65, - 0x10, 0x15, 0xe0, 0x7f, 0x28, 0x84, 0xfe, 0x56, 0x2d, 0x00, 0x08, 0x6c, - 0x9a, 0xf7, 0x96, 0x06, 0x58, 0x1b, 0xac, 0xc0, 0x2c, 0x06, 0xd2, 0xc8, - 0xb9, 0x08, 0xb8, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x21, 0x80, 0x28, - 0x13, 0x42, 0x04, 0x43, 0x04, 0x2d, 0x00, 0x1c, 0x8c, 0x28, 0x1d, 0x40, - 0x04, 0x35, 0x05, 0xe8, 0x1f, 0x10, 0x16, 0xf4, 0xff, 0x22, 0x22, 0xa2, - 0x70, 0x01, 0x20, 0x40, 0x0a, 0xfb, 0x21, 0x45, 0x28, 0x17, 0x24, 0x03, - 0x63, 0xb7, 0x30, 0xd3, 0x30, 0xa6, 0x06, 0x28, 0x0f, 0x9f, 0xaf, 0x14, - 0x69, 0x00, 0x62, 0x20, 0x03, 0x75, 0x10, 0x16, 0x60, 0x7f, 0x21, 0x95, - 0x0c, 0xd4, 0x6b, 0x4c, 0x4e, 0x06, 0x58, 0x13, 0x3f, 0xff, 0xdc, 0xc2, - 0x0c, 0x44, 0xbe, 0xb0, 0xc6, 0x06, 0x78, 0x15, 0x0f, 0x21, 0xff, 0x04, - 0x38, 0x2c, 0x04, 0x31, 0x20, 0x03, 0x43, 0x05, 0xe8, 0x0f, 0x10, 0x17, - 0x74, 0xff, 0x23, 0x23, 0xa0, 0x70, 0x01, 0x21, 0x40, 0x0a, 0x8e, 0x20, - 0x2c, 0x11, 0x00, 0x00, 0x00, 0x25, 0x63, 0xb9, 0x30, 0xc1, 0x30, 0xe3, - 0x0a, 0x30, 0xf4, 0x30, 0xa1, 0x06, 0x68, 0x1b, 0x53, 0x2f, 0xab, 0x63, - 0x8c, 0x2f, 0xa5, 0x61, 0x00, 0x76, 0x2f, 0xb9, 0x10, 0x16, 0x10, 0x7f, - 0xcf, 0x82, 0x08, 0x70, 0x60, 0xe6, 0x74, 0x06, 0x98, 0x17, 0x18, 0xc2, - 0xb4, 0x06, 0xcc, 0x44, 0xc5, 0x14, 0xbc, 0x06, 0x78, 0x19, 0x0e, 0xf3, - 0x7f, 0x21, 0x83, 0x28, 0x11, 0x47, 0x04, 0x30, 0x04, 0x32, 0x20, 0x03, - 0x10, 0x1e, 0x34, 0xff, 0x28, 0x24, 0x24, 0x70, 0x01, 0x22, 0x40, 0x0a, - 0xe2, 0x21, 0xaa, 0x00, 0x12, 0x00, 0x00, 0x26, 0x63, 0xc6, 0x30, 0xec, - 0x00, 0x30, 0xaa, 0x30, 0xeb, 0x30, 0xde, 0x30, 0xf3, 0xa8, 0x06, 0x48, - 0x19, 0x54, 0x28, 0x13, 0x6c, 0x28, 0x17, 0x6f, 0x00, 0x72, 0x28, 0x00, - 0x6d, 0x28, 0x1d, 0x6e, 0x10, 0x15, 0xe0, 0x7f, 0x79, 0x72, 0x17, 0x01, - 0x52, 0x65, 0x59, 0x14, 0x5c, 0xfc, 0x66, 0x06, 0x58, 0x1b, 0x00, 0x54, - 0xd1, 0x08, 0xb8, 0x24, 0xc6, 0x74, 0xb9, 0x30, 0xcc, 0xb9, 0x06, 0x58, - 0x19, 0x0e, 0xf3, 0x7f, 0x22, 0x04, 0x35, 0x04, 0x41, 0x3b, 0x20, 0x03, - 0x3e, 0x04, 0x40, 0x04, 0x3c, 0x28, 0x1f, 0x65, 0x3d, 0x05, 0xe8, 0x1d, - 0x10, 0x16, 0xf4, 0xff, 0x25, 0x25, 0x70, 0x01, 0x24, 0x40, 0x0a, 0x14, - 0x43, 0x1f, 0x03, 0x28, 0x17, 0x27, 0x28, 0x17, 0xa3, 0x30, 0x06, 0xdf, - 0x30, 0xb7, 0x30, 0xe5, 0x06, 0x48, 0x15, 0x38, 0x17, 0x69, 0x8c, 0x28, - 0x0f, 0x69, 0x00, 0x73, 0x06, 0x6d, 0xb0, 0x70, 0x7f, 0x5f, 0x01, 0x81, - 0x10, 0x0e, 0x50, 0x7f, 0x82, 0x84, 0x73, 0x7c, 0xc0, 0x4e, 0x06, 0x58, - 0x13, 0x81, 0x3f, 0xff, 0xf0, 0xd2, 0xf8, 0xbb, 0x88, 0xc2, 0x06, 0x58, - 0x13, 0xc4, 0x07, 0xb2, 0xff, 0x06, 0x73, 0xff, 0x22, 0x04, 0x38, 0x28, - 0x0f, 0x38, 0x04, 0x72, 0x48, 0x05, 0xe8, 0x0f, 0x07, 0xf4, 0xff, 0x10, - 0x0e, 0x70, 0x7f, 0x26, 0x26, 0x70, 0x01, 0x25, 0x80, 0x40, 0x0a, 0x89, - 0x20, 0x17, 0x0f, 0x00, 0x00, 0x28, 0x00, 0x63, 0xc8, 0x30, 0xa5, 0x30, - 0xeb, 0x30, 0xc1, 0x2a, 0x30, 0xe3, 0x06, 0x88, 0x17, 0x75, 0x2f, 0xaf, - 0x63, 0x2f, 0xb5, 0x61, 0xc0, 0x06, 0x68, 0x17, 0x10, 0x0e, 0xd0, 0x7f, - 0xfe, 0x56, 0x14, 0x5c, 0x70, 0x60, 0x81, 0x06, 0x98, 0x17, 0x34, 0xd2, - 0xb4, 0xcc, 0x44, 0xc5, 0x06, 0xb8, 0x17, 0x80, 0x0e, 0xd3, 0x7f, 0x22, - 0x04, 0x43, 0x04, 0x3b, 0x04, 0x47, 0x32, 0x04, 0x30, 0x06, 0x88, 0x17, - 0x10, 0x16, 0xd4, 0xff, 0x27, 0x27, 0x70, 0x01, 0x26, 0x80, 0x40, 0x0a, - 0x1e, 0x20, 0x7a, 0x14, 0x00, 0x00, 0x29, 0x20, 0x63, 0xf4, 0x06, 0xc8, - 0x15, 0x00, 0x00, 0x56, 0x00, 0xe2, 0xc9, 0x06, 0xc8, 0x17, 0x10, 0x0e, - 0xf0, 0x7f, 0x83, 0x6c, 0x06, 0xd8, 0x17, 0x14, 0xbe, 0x06, 0xd8, 0x17, - 0x8c, 0x0e, 0xf3, 0x7f, 0x12, 0x04, 0x4b, 0x06, 0xc8, 0x17, 0x10, 0x16, - 0xf4, 0xff, 0x28, 0x28, 0xa0, 0x70, 0x01, 0x0e, 0x40, 0x0a, 0x13, 0x20, - 0x55, 0x11, 0x00, 0x22, 0x00, 0x2a, 0x28, 0x17, 0xa1, 0x30, 0xb9, 0x28, - 0x1b, 0xa4, 0xa8, 0x06, 0x68, 0x19, 0x56, 0x2f, 0xa7, 0x73, 0x2f, 0xb1, - 0x75, 0x00, 0x69, 0xc0, 0x06, 0x68, 0x97, 0x10, 0x0e, 0xd0, 0x7f, 0xe6, - 0x74, 0xaf, 0x65, 0x62, 0x53, 0x20, 0x0a, 0x4f, 0x06, 0x78, 0x19, 0x14, - 0xbc, 0xac, 0xc2, 0xe8, 0x1a, 0xb8, 0x74, 0xc7, 0x06, 0x78, 0x19, 0x0e, - 0xf3, 0x7f, 0x12, 0x28, 0x11, 0x41, 0x8c, 0x28, 0x19, 0x43, 0x04, 0x39, - 0x06, 0x48, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x29, 0x29, 0xa0, 0x70, 0x01, - 0x0c, 0x40, 0x0a, 0x2a, 0x21, 0xb6, 0x13, 0x00, 0x00, 0x00, 0x2b, 0x63, - 0xd5, 0x30, 0xe9, 0x30, 0xf3, 0x02, 0x30, 0xc1, 0x30, 0xa7, 0x30, 0xa2, - 0x06, 0x48, 0x19, 0x56, 0x2c, 0x00, 0x72, 0x2f, 0xa9, 0x6e, 0x06, 0x8f, - 0xb1, 0x10, 0x0e, 0xf0, 0x7f, 0x17, 0x5f, 0x08, 0x17, 0x67, 0x70, 0x60, - 0x06, 0x78, 0x15, 0x00, 0x00, 0x0c, 0x01, 0xbe, 0x80, 0xb7, 0xb4, 0xcc, - 0x44, 0xc5, 0x06, 0x98, 0x17, 0x88, 0x0e, 0xd3, 0x7f, 0x12, 0x04, 0x40, - 0x28, 0x19, 0x3d, 0x04, 0x47, 0xe5, 0x28, 0x1f, 0x10, 0x06, 0x31, 0x7f, - 0x10, 0x06, 0xf5, 0xff, 0x2a, 0x2a, 0x70, 0x01, 0x0d, 0x40, 0x0a, 0x18, - 0x7f, 0x20, 0x54, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x01, 0x0a, 0x0a, 0x82, - 0x20, 0x01, 0x01, 0x01, 0x07, 0x0a, 0x0b, 0x20, 0x05, 0x01, 0x24, 0x01, - 0x02, 0x30, 0x04, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x12, 0x02, 0x02, - 0x03, 0x30, 0x04, 0x02, 0x03, 0x40, 0x06, 0x03, 0x09, 0x03, 0x03, 0x03, - 0x04, 0x30, 0x04, 0x03, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, 0x04, - 0x05, 0x30, 0x04, 0x04, 0x05, 0x82, 0x40, 0x06, 0x05, 0x05, 0x05, 0x05, - 0x06, 0x30, 0x04, 0x05, 0x51, 0x06, 0x20, 0x06, 0x06, 0x20, 0x05, 0x06, - 0x06, 0x07, 0x30, 0x04, 0x28, 0x06, 0x07, 0x20, 0x06, 0x05, 0x20, 0x05, - 0x07, 0x07, 0x08, 0x8c, 0x30, 0x04, 0x07, 0x08, 0x08, 0x30, 0x07, 0x20, - 0x05, 0x08, 0x09, 0x86, 0x30, 0x04, 0x08, 0x09, 0x09, 0x09, 0x20, 0x09, - 0x20, 0x05, 0x09, 0x5c, 0x0a, 0x30, 0x04, 0x09, 0x20, 0x94, 0x20, 0x10, - 0x30, 0x9a, 0x0b, 0x0b, 0xca, 0x70, 0x01, 0x50, 0x0a, 0x0c, 0x0c, 0x70, - 0x01, 0x19, 0x40, 0x0a, 0x0d, 0x52, 0x0d, 0x70, 0x01, 0x15, 0x40, 0x0a, - 0x0e, 0x0e, 0x70, 0x01, 0x16, 0x94, 0x40, 0x0a, 0x0f, 0x0f, 0x70, 0x01, - 0x18, 0x40, 0x0a, 0x10, 0x10, 0xa5, 0x70, 0x01, 0x17, 0x40, 0x0a, 0x11, - 0x11, 0x70, 0x01, 0x13, 0x40, 0x0a, 0x25, 0x12, 0x12, 0xd0, 0x01, 0x13, - 0x13, 0x70, 0x01, 0x0f, 0x40, 0x0a, 0x29, 0x14, 0x14, 0x70, 0x01, 0x11, - 0x40, 0x0a, 0x15, 0x15, 0x70, 0x01, 0x4a, 0x10, 0x40, 0x0a, 0x16, 0x16, - 0x70, 0x01, 0x27, 0x40, 0x0a, 0x17, 0x52, 0x17, 0x70, 0x01, 0x28, 0x40, - 0x0a, 0x18, 0x18, 0x70, 0x01, 0x29, 0x94, 0x40, 0x0a, 0x19, 0x19, 0x70, - 0x01, 0x2a, 0x40, 0x0a, 0x1a, 0x1a, 0xa6, 0x70, 0x01, 0x14, 0x40, 0x0a, - 0x1b, 0x1b, 0x70, 0x01, 0x50, 0x0a, 0x1c, 0x66, 0x1c, 0x70, 0x01, 0x50, - 0x0a, 0x1d, 0x1d, 0x70, 0x01, 0x50, 0x0a, 0x1e, 0x66, 0x1e, 0x70, 0x01, - 0x50, 0x0a, 0x1f, 0x1f, 0x70, 0x01, 0x50, 0x0a, 0x20, 0x65, 0x20, 0x70, - 0x01, 0x50, 0x0a, 0x21, 0x21, 0x70, 0x01, 0x23, 0x40, 0x0a, 0x29, 0x22, - 0x22, 0x70, 0x01, 0x20, 0x40, 0x0a, 0x23, 0x23, 0x70, 0x01, 0x4a, 0x21, - 0x40, 0x0a, 0x24, 0x24, 0x70, 0x01, 0x22, 0x40, 0x0a, 0x25, 0x66, 0x25, - 0x70, 0x01, 0x50, 0x0a, 0x26, 0x26, 0x70, 0x01, 0x50, 0x0a, 0x27, 0x65, - 0x27, 0x70, 0x01, 0x50, 0x0a, 0x28, 0x28, 0x70, 0x01, 0x0e, 0x40, 0x0a, - 0xe0, 0x00, 0x0a, 0xbf, 0xe2, 0xb7, 0x7f, 0xff, 0x11, 0x70, 0x3c, 0x02, - 0x12, 0x43, 0x00, 0x00, 0x30, 0x01, 0x40, 0x0c, 0x50, 0x07, 0x00, 0x00, - 0xa2, 0x30, 0xeb, 0x30, 0xd0, 0x30, 0xcb, 0x30, 0x30, 0xa2, 0x30, 0x60, - 0x10, 0x05, 0xe0, 0x06, 0x41, 0x00, 0x6c, 0x00, 0x01, 0x62, 0x00, 0x61, - 0x00, 0x6e, 0x00, 0x69, 0x20, 0x05, 0xac, 0x06, 0xd0, 0x7f, 0x65, 0x07, - 0x00, 0x7f, 0x6e, 0x0e, 0xc1, 0x7f, 0x06, 0x31, 0xff, 0x3f, 0x96, 0x00, - 0x14, 0x5c, 0xf4, 0x5d, 0x3c, 0x5c, 0x9a, 0x4e, 0x80, 0x06, 0x52, 0xff, - 0x4c, 0xc5, 0x14, 0xbc, 0xc8, 0xb2, 0x44, 0x6a, 0xc5, 0x06, 0x53, 0x7d, - 0xd3, 0x7f, 0xeb, 0x06, 0x83, 0xff, 0xe2, 0x06, 0x83, 0xff, 0x10, 0x00, - 0x04, 0x3b, 0x04, 0x31, 0x04, 0x30, 0x04, 0x3d, 0x06, 0x04, 0x38, 0x04, - 0x4f, 0x04, 0x0e, 0xd4, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x00, 0x29, 0x00, - 0x01, 0x60, 0x06, 0x03, 0x01, 0x78, 0x00, 0x42, 0x09, 0x68, 0x3b, 0x00, - 0xaa, 0x30, 0xfc, 0x30, 0xb9, 0x30, 0xc8, 0x30, 0x40, 0xea, 0x06, 0x68, - 0x3d, 0x41, 0x00, 0x75, 0x00, 0x73, 0x00, 0x14, 0x74, 0x00, 0x72, 0x06, - 0x88, 0x3b, 0x75, 0x60, 0x7d, 0x63, 0x00, 0x55, 0x68, 0x06, 0x28, 0x3d, - 0xd6, 0x40, 0xfd, 0x65, 0x20, 0xff, 0x72, 0x28, 0xbb, 0xe0, 0x50, 0x85, - 0x0d, 0xf1, 0x7f, 0x06, 0xb1, 0xff, 0x65, 0x59, 0x30, 0x57, 0x29, 0x40, - 0x52, 0x06, 0x77, 0xb9, 0x00, 0x00, 0x24, 0xc6, 0xa4, 0xc2, 0x08, 0xb8, - 0xd2, 0xac, 0xb9, 0x06, 0x78, 0x3d, 0x4f, 0x00, 0x6f, 0xa2, 0x62, 0x81, - 0x6e, 0x43, 0x83, 0x6a, 0x00, 0x6b, 0x05, 0xcc, 0x44, 0xc1, 0x80, 0x06, - 0xe3, 0xff, 0x10, 0x04, 0x32, 0x04, 0x41, 0x04, 0x42, 0x38, 0x04, 0x40, - 0x06, 0x88, 0x3b, 0x0e, 0xd3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x01, 0x03, - 0x05, 0x00, 0x2a, 0x03, 0x04, 0x01, 0x01, 0x2c, 0x05, 0x01, 0x0d, 0x03, - 0x01, 0x01, 0x01, 0x68, 0x48, 0x00, 0xcf, 0xff, 0x43, 0x78, 0x65, 0x06, - 0xd9, 0x30, 0xeb, 0x30, 0xae, 0x28, 0x3f, 0x06, 0x7c, 0xf7, 0x42, 0x88, - 0x2f, 0xed, 0x6c, 0x00, 0x67, 0x2f, 0xf5, 0x75, 0x00, 0x6d, 0xbe, 0x06, - 0xc0, 0x7f, 0x71, 0x28, 0xc5, 0x06, 0x18, 0x3b, 0x90, 0xff, 0x35, 0xbd, - 0x06, 0xb1, 0x7f, 0x6f, 0xa8, 0x06, 0x61, 0xff, 0xe9, 0x61, 0xff, 0x63, - 0x06, 0x4e, 0x77, 0xd4, 0x6b, 0x29, 0x30, 0x52, 0xf6, 0x06, 0x1a, 0x32, - 0x8f, 0xff, 0xa8, 0xbc, 0x30, 0xae, 0x68, 0xd0, 0x06, 0x68, 0x37, 0xd3, - 0x7f, 0xeb, 0x0e, 0x41, 0xff, 0x11, 0x04, 0x35, 0x03, 0x04, 0x3b, 0x04, - 0x4c, 0x04, 0x33, 0x06, 0x68, 0x3b, 0x07, 0x94, 0xff, 0x80, 0x10, 0x0e, - 0x50, 0x7f, 0x02, 0x05, 0x07, 0x04, 0x05, 0x06, 0x02, 0x00, 0x02, 0x04, - 0x07, 0x05, 0x05, 0x02, 0x02, 0x02, 0x50, 0x02, 0x01, 0x2f, 0xff, 0x44, - 0x78, 0x3b, 0xdc, 0x30, 0xb9, 0x30, 0x01, 0xcb, 0x30, 0xa2, 0x30, 0xfb, - 0x30, 0xd8, 0x28, 0x45, 0x00, 0xc4, 0x30, 0xa7, 0x30, 0xb4, 0x30, 0xd3, - 0x30, 0x55, 0xca, 0x05, 0x88, 0x4b, 0x42, 0x4c, 0xf7, 0x6e, 0x4e, 0xf5, - 0x20, 0x2e, 0xf9, 0x15, 0x6e, 0x00, 0x64, 0x20, 0x07, 0x48, 0x4f, 0x89, - 0x7a, 0x2f, 0x8f, 0x56, 0x67, 0x2d, 0x17, 0x76, 0x2f, 0x8f, 0x6e, 0x04, - 0x6f, 0x15, 0x90, 0x7f, 0x65, 0x2e, 0x00, 0x2d, 0x80, 0x77, 0xe9, 0xa0, - 0x77, 0x04, 0xd8, 0x4f, 0xb0, 0x7f, 0x6e, 0xd8, 0xa0, 0x81, 0x50, 0xf9, - 0x77, 0x04, 0xa0, 0xf9, 0x00, 0x11, 0x7f, 0x2d, 0x00, 0x45, 0xf0, 0x05, - 0x61, 0x75, 0x00, 0x70, 0x7f, 0x05, 0x91, 0xf7, 0x7f, 0xff, 0xe2, 0x6c, - 0xaf, 0x65, 0x00, 0x3c, 0x5c, 0x9a, 0x4e, 0x8c, 0x54, 0xd1, 0x9e, 0x00, - 0x5e, 0x58, 0xe5, 0x54, 0xf4, 0x7e, 0xa3, 0x90, 0x80, 0x05, 0xbf, 0xff, - 0xf4, 0xbc, 0xa4, 0xc2, 0xc8, 0xb2, 0x44, 0x00, 0xc5, 0xe4, 0xd5, 0x74, - 0xb9, 0xb4, 0xcc, 0xe0, 0x06, 0xac, 0x44, 0xbe, 0x98, 0xb0, 0x05, 0xdb, - 0xbb, 0x73, 0x7f, 0xeb, 0xf4, 0x23, 0x7f, 0x3a, 0xbf, 0x05, 0xb3, 0x7d, - 0x3c, 0x3b, 0xf3, 0x06, 0xc1, 0xff, 0x11, 0x04, 0x04, 0x3e, 0x04, 0x41, - 0x04, 0x3d, 0x48, 0x39, 0x20, 0x00, 0x51, 0x38, 0x20, 0x03, 0x13, 0x28, - 0x4d, 0x40, 0x04, 0x46, 0x28, 0x53, 0x51, 0x33, 0x20, 0x1b, 0x32, 0x28, - 0x53, 0x3d, 0x04, 0x30, 0x04, 0x88, 0x55, 0xc0, 0x07, 0x94, 0xff, 0x10, - 0x0e, 0x50, 0x7f, 0x03, 0x06, 0x08, 0x05, 0x06, 0x07, 0x00, 0x03, 0x03, - 0x05, 0x08, 0x07, 0x06, 0x03, 0x03, 0x64, 0x03, 0x78, 0x16, 0x00, 0xbf, - 0xff, 0x45, 0x01, 0x88, 0x3b, 0xc4, 0x30, 0x6b, 0xef, 0x05, 0xa8, 0x2b, - 0x00, 0x38, 0x3b, 0x74, 0x28, 0x3d, 0x77, 0x48, 0x37, 0x06, 0x1e, 0x79, - 0xa0, 0x07, 0x70, 0x7f, 0x75, 0x10, 0x06, 0x60, 0xff, 0x5a, 0x53, 0x28, - 0x83, 0xe6, 0x10, 0x74, 0xb3, 0x7e, 0x06, 0x7f, 0xf9, 0xf4, 0xbc, 0x20, - 0xce, 0x3a, 0x40, 0xc6, 0x05, 0xd8, 0x2f, 0x0f, 0xb2, 0xff, 0x38, 0x3b, - 0x42, 0x28, 0x3d, 0x32, 0xf0, 0x28, 0x1f, 0x04, 0xb8, 0x23, 0x10, 0x00, - 0xf4, 0xff, 0x10, 0x06, 0x70, 0xff, 0x04, 0x07, 0x09, 0x06, 0x00, 0x07, - 0x08, 0x04, 0x04, 0x06, 0x09, 0x08, 0x07, 0x12, 0x04, 0x04, 0x04, 0x01, - 0x3b, 0x23, 0x46, 0x1c, 0x6f, 0xff, 0xd6, 0x00, 0x30, 0xeb, 0x30, 0xac, - 0x30, 0xea, 0x30, 0xa2, 0xab, 0x06, 0x68, 0x3d, 0x42, 0x27, 0x35, 0x6c, - 0x2f, 0xe5, 0x61, 0x2f, 0xef, 0x3e, 0xfb, 0xac, 0x06, 0xd0, 0x7f, 0x65, - 0x07, 0x00, 0x7f, 0x6e, 0x0e, 0xc1, 0x7f, 0x06, 0x1a, 0x3b, 0xdd, 0x4f, - 0x02, 0xa0, 0x52, 0x29, 0x52, 0x9a, 0x4e, 0x06, 0x7b, 0x3b, 0x88, 0x01, - 0xbd, 0x00, 0xac, 0xac, 0xb9, 0x44, 0xc5, 0x06, 0x9b, 0xbb, 0xb6, 0xb3, - 0x7f, 0x6a, 0x06, 0x03, 0x01, 0x73, 0xff, 0xe1, 0x06, 0x63, 0xff, 0x38, - 0x3b, 0x3b, 0x20, 0x04, 0x33, 0x28, 0x39, 0x40, 0x04, 0x38, 0x04, 0x4f, - 0xe0, 0x06, 0x28, 0x3b, 0x0e, 0xd3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x05, - 0x08, 0x0a, 0x07, 0x08, 0x00, 0x09, 0x05, 0x05, 0x07, 0x0a, 0x06, 0x08, - 0x05, 0x12, 0x05, 0x05, 0x05, 0x01, 0x2f, 0xff, 0x47, 0x15, 0x6f, 0xff, - 0xaf, 0x2a, 0x30, 0xed, 0x28, 0x37, 0xc1, 0x06, 0x88, 0x3b, 0x43, 0x28, - 0x33, 0x6f, 0xb8, 0x2f, 0xf3, 0x74, 0x06, 0x48, 0x39, 0xd0, 0x7f, 0x06, - 0x18, 0x39, 0x00, 0x00, 0x4b, 0xea, 0xc0, 0x7f, 0x05, 0xf8, 0x39, 0x91, - 0x7f, 0x7a, 0x06, 0xe1, 0x7f, 0x63, 0x06, 0x61, 0xff, 0x4b, 0x04, 0x51, - 0x57, 0x7f, 0x30, 0x57, 0x06, 0x98, 0x3b, 0x6c, 0xd0, 0x03, 0x5c, 0xb8, - 0x44, 0xc5, 0xf0, 0xd2, 0x06, 0x78, 0x3d, 0xb2, 0x7f, 0x54, 0xeb, 0x06, - 0x83, 0xff, 0xe1, 0x06, 0x81, 0xff, 0x25, 0x28, 0x3b, 0x40, 0x04, 0x5c, - 0x32, 0x28, 0x3b, 0x42, 0x06, 0x48, 0x3b, 0x07, 0xb4, 0xff, 0x10, 0x0e, - 0x30, 0x7f, 0x06, 0x0a, 0x00, 0x0c, 0x18, 0x0b, 0x0c, 0x06, 0x06, 0x19, - 0x0d, 0x02, 0x3a, 0x0a, 0x06, 0x06, 0x06, 0x06, 0x01, 0x2f, 0xff, 0x48, - 0x45, 0x01, 0x6f, 0xff, 0xad, 0x30, 0xd7, 0x28, 0x3d, 0xb9, 0x06, 0x68, - 0x39, 0x88, 0x38, 0x3b, 0x79, 0x00, 0x70, 0x2f, 0xf3, 0x75, 0x00, 0x73, - 0xb1, 0x06, 0x68, 0xbb, 0x68, 0x60, 0x81, 0x06, 0x38, 0x39, 0x00, 0x00, - 0x5a, 0x40, 0xff, 0x75, 0x65, 0x2f, 0xf5, 0x06, 0x18, 0x37, 0x59, 0xbb, - 0x69, 0x41, 0x7f, 0x6f, 0x06, 0x81, 0xff, 0x60, 0x68, 0x60, 0x81, 0x06, - 0x51, 0x7f, 0x5e, 0x58, 0x66, 0x6d, 0xef, 0x30, 0x8d, 0xaf, 0x06, 0x51, - 0xfc, 0x2f, 0xff, 0xa4, 0xd0, 0x04, 0xd5, 0x0d, 0x5c, 0xb8, 0xa4, 0xc2, - 0x0e, 0xb3, 0x7f, 0x06, 0xb1, 0xff, 0x1a, 0x28, 0x31, 0x70, 0x3f, 0x28, - 0x3d, 0x0e, 0x94, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x07, 0x0b, 0x0b, 0x42, - 0x01, 0x0a, 0x0b, 0x07, 0x07, 0x08, 0x0c, 0x1a, 0x20, 0x05, 0x24, 0x07, - 0x07, 0x01, 0x2f, 0xff, 0x49, 0x0e, 0x6f, 0xff, 0xc1, 0x30, 0x1a, 0xa7, - 0x30, 0xb3, 0x06, 0x88, 0x39, 0x3f, 0xf7, 0x7a, 0x2f, 0xef, 0x63, 0x8a, - 0x27, 0xc1, 0x20, 0x00, 0x52, 0x2f, 0xf9, 0x70, 0x28, 0x45, 0x62, 0x28, - 0x00, 0x6c, 0x2f, 0x85, 0x63, 0x05, 0x4f, 0xff, 0x52, 0x00, 0xe9, 0xaa, - 0xa0, 0x73, 0x71, 0x28, 0xc3, 0x65, 0x20, 0x89, 0x74, 0x40, 0x91, 0xe8, - 0xdd, 0x60, 0x0f, 0x04, 0xbf, 0xff, 0x54, 0x29, 0x33, 0x30, 0xfd, 0x51, - 0x03, 0x69, 0x80, 0x0d, 0xba, 0xf1, 0x0d, 0x6b, 0x04, 0x80, 0xff, 0x71, - 0x73, 0x71, 0x75, 0x61, 0x21, 0x89, 0x43, 0xee, 0x41, 0x93, 0x05, 0x3e, - 0x07, 0x51, 0xf3, 0xfa, 0xe0, 0x7d, 0x51, 0x0f, 0x05, 0x3e, 0x87, 0x77, - 0x00, 0x63, 0x4b, 0x51, 0x71, 0x51, 0x8c, 0x54, 0xfd, 0x43, 0x56, 0x06, - 0x5f, 0xf7, 0xb4, 0xcc, 0x54, 0xcf, 0x06, 0x93, 0x7d, 0x52, 0x7f, 0x58, - 0x6a, 0x82, 0x7d, 0xeb, 0x06, 0x0f, 0xf9, 0x06, 0xf1, 0xff, 0x27, 0x04, - 0x35, 0x00, 0x04, 0x48, 0x04, 0x41, 0x04, 0x3a, 0x04, 0x30, 0x02, 0x04, - 0x4f, 0x04, 0x20, 0x00, 0x20, 0x20, 0x0f, 0x41, 0x83, 0x28, 0x4d, 0x43, - 0x04, 0x31, 0x04, 0x3b, 0x28, 0x57, 0x30, 0x17, 0xc0, 0x0c, 0xb4, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x08, 0x0c, 0x31, 0x3d, 0x30, 0x33, 0x00, 0x08, - 0x08, 0x3a, 0x35, 0x3d, 0x0c, 0x08, 0x08, 0x28, 0x08, 0x08, 0x01, 0x2f, - 0xff, 0x4a, 0x78, 0x60, 0xc7, 0x30, 0xf3, 0x02, 0x30, 0xde, 0x30, 0xfc, - 0x30, 0xaf, 0x06, 0x68, 0x3f, 0x44, 0x8a, 0x2f, 0xef, 0x6e, 0x00, 0x6d, - 0x26, 0xb1, 0x72, 0x27, 0x1f, 0x20, 0x08, 0x00, 0x28, 0x00, 0x4b, 0x2f, - 0x09, 0x6e, 0x00, 0x67, 0x28, 0x00, 0x64, 0x2f, 0x0b, 0x6d, 0x28, 0x51, - 0x6f, 0x00, 0x66, 0x2a, 0x00, 0x29, 0x04, 0xa0, 0x7f, 0x61, 0x2f, 0xf1, - 0x65, 0xc0, 0x81, 0x52, 0xab, 0x2f, 0x85, 0x79, 0x27, 0x43, 0x75, 0x20, - 0x97, 0x65, 0x04, 0xa0, 0x7b, 0x50, 0xff, 0x45, 0xe4, 0x00, 0x00, 0x7f, - 0x4b, 0x00, 0xf6, 0x21, 0x13, 0x69, 0x21, 0x03, 0xdb, 0x3f, 0x8d, 0x39, - 0x45, 0x68, 0x04, 0x81, 0x01, 0x50, 0xff, 0x69, 0x61, 0x81, 0x58, 0x39, - 0xaa, 0x31, 0x01, 0x65, 0x21, 0x81, 0x6e, 0x21, 0x81, 0x20, 0x21, 0x87, - 0x69, 0xda, 0x04, 0xc1, 0x7f, 0x31, 0xed, 0x61, 0x00, 0x20, 0x7f, 0x32, - 0x05, 0x6f, 0x04, 0xe1, 0x7d, 0x00, 0x04, 0x00, 0x39, 0x4e, 0xa6, 0x9e, - 0x06, 0xb7, 0xbb, 0x74, 0xb3, 0x0f, 0xc8, 0xb9, 0x6c, 0xd0, 0x06, 0x9b, - 0xbb, 0x53, 0x7f, 0x92, 0xff, 0x33, 0x8d, 0xb5, 0x33, 0x85, 0x6b, 0x23, - 0x7d, 0x32, 0x83, 0x6e, 0x2a, 0xb5, 0x72, 0x2b, 0xc9, 0x75, 0x6a, 0x2a, - 0xbd, 0x04, 0x33, 0x85, 0x06, 0xf1, 0xff, 0x14, 0x28, 0x33, 0x3d, 0x28, - 0x23, 0x80, 0x38, 0x37, 0x28, 0x00, 0x1a, 0x04, 0x3e, 0x04, 0x40, 0xaa, - 0x20, 0x03, 0x3b, 0x28, 0x51, 0x32, 0x28, 0x51, 0x42, 0x20, 0x05, 0x3e, - 0x70, 0x04, 0x04, 0xb4, 0x01, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, - 0x09, 0x0d, 0x0d, 0x08, 0x01, 0x0c, 0x0d, 0x09, 0x09, 0x09, 0x0e, 0x10, - 0x30, 0x05, 0x48, 0x09, 0x01, 0x2f, 0xff, 0x4b, 0x01, 0x6f, 0xff, 0xa8, - 0x30, 0xb9, 0x02, 0x30, 0xc8, 0x30, 0xcb, 0x30, 0xa2, 0x06, 0x68, 0x3b, - 0x45, 0xba, 0x2f, 0x77, 0x74, 0x64, 0xa7, 0x05, 0x3e, 0xe7, 0x00, 0xb0, - 0x7f, 0x65, 0x06, 0x80, 0xff, 0x6c, 0xb0, 0x48, 0xc1, 0x64, 0x0e, 0xe1, - 0x7f, 0x06, 0x31, 0xff, 0x31, 0x72, 0x99, 0x6c, 0x08, 0x3c, 0x5c, 0x9a, - 0x4e, 0x06, 0x7f, 0xfb, 0xd0, 0xc5, 0xa4, 0x01, 0xc2, 0xa0, 0xd1, 0xc8, - 0xb2, 0x44, 0xc5, 0x06, 0xb3, 0x7f, 0xab, 0x06, 0xf2, 0x7f, 0xf3, 0x06, - 0x83, 0xff, 0x2d, 0x48, 0x21, 0x3e, 0x68, 0x3f, 0x10, 0x06, 0x13, 0x7f, - 0x80, 0x10, 0x06, 0xf0, 0xff, 0x0a, 0x10, 0x11, 0x0c, 0x0e, 0x12, 0x0a, - 0x00, 0x0a, 0x0d, 0x14, 0x41, 0x10, 0x0a, 0x0a, 0x0a, 0x48, 0x0a, 0x01, - 0x2f, 0xff, 0x4c, 0x14, 0x6f, 0xff, 0xd5, 0x30, 0xa3, 0x0a, 0x30, 0xf3, - 0x30, 0xe9, 0x20, 0x03, 0xc9, 0x06, 0x48, 0x3d, 0x46, 0xff, 0x4e, 0x77, - 0x06, 0x97, 0x3b, 0xd0, 0x7f, 0x06, 0x18, 0x3d, 0x50, 0xff, 0x06, 0x91, - 0x01, 0xd1, 0x7f, 0x06, 0x19, 0xbf, 0x84, 0x06, 0xf0, 0x7f, 0xac, 0x82, - 0x70, 0x51, 0x06, 0x9f, 0xf5, 0x00, 0x00, 0x03, 0x40, 0xd5, 0x80, 0xb7, - 0xdc, 0xb4, 0x06, 0x90, 0x81, 0x07, 0x73, 0x7f, 0x51, 0xe2, 0x06, 0x62, - 0x7f, 0x24, 0x28, 0x33, 0x3d, 0x04, 0x3b, 0x28, 0x37, 0x1c, 0x3d, 0x04, - 0x34, 0x06, 0x28, 0x3f, 0x07, 0xd4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x0b, - 0x11, 0x00, 0x12, 0x0d, 0x0f, 0x13, 0x0b, 0x0b, 0x0e, 0x15, 0x02, 0x38, - 0x11, 0x0b, 0x0b, 0x0b, 0x0b, 0x01, 0x2f, 0xff, 0x4d, 0x6d, 0x1a, 0x88, - 0x3b, 0x38, 0x37, 0xb9, 0x06, 0x48, 0x37, 0x58, 0x3b, 0x72, 0x4f, 0x73, - 0x6a, 0x63, 0x06, 0x4f, 0xf5, 0x07, 0x90, 0x7f, 0x6b, 0x21, 0x07, 0x65, - 0x2f, 0xfb, 0x63, 0x38, 0x00, 0x68, 0x06, 0x61, 0x7f, 0x06, 0x5f, 0xf7, - 0x06, 0xf0, 0x7f, 0xd5, 0x6c, 0xfd, 0x40, 0x56, 0x06, 0xb8, 0x3b, 0x04, - 0xd5, 0x91, 0xb7, 0xa4, 0xc2, 0xc6, 0x06, 0xb8, 0x3b, 0x92, 0x7f, 0x69, - 0x00, 0x6a, 0x22, 0x87, 0x06, 0x53, 0xff, 0xe7, 0xc5, 0x06, 0x4f, 0x75, - 0x38, 0x3b, 0x40, 0x04, 0x30, 0x28, 0x3d, 0x46, 0x06, 0x28, 0x37, 0xc0, - 0x0f, 0xb4, 0xff, 0x10, 0x06, 0x70, 0xff, 0x0c, 0x12, 0x13, 0x0e, 0x10, - 0x14, 0x00, 0x0c, 0x0c, 0x0f, 0x16, 0x39, 0x12, 0x0c, 0x0c, 0x24, 0x0c, - 0x0c, 0x01, 0x2f, 0xff, 0x4e, 0x10, 0x6f, 0xff, 0xc9, 0x30, 0x11, 0xa4, - 0x30, 0xc4, 0x06, 0x88, 0x39, 0x00, 0x00, 0x47, 0x2f, 0xeb, 0x15, 0x72, - 0x00, 0x6d, 0x4f, 0xf7, 0x79, 0x06, 0x2e, 0x00, 0x41, 0x2f, 0xf1, 0x6d, - 0x6c, 0x28, 0xb7, 0x30, 0x81, 0x67, 0x2f, 0xff, 0x05, 0xf8, 0xc1, 0x44, - 0x29, 0x33, 0x07, 0x75, 0x00, 0x74, 0x00, 0x73, 0x48, 0x35, 0x06, 0x1d, - 0xff, 0xb1, 0x7f, 0xf2, 0x06, 0x38, 0x3d, 0x31, 0x7f, 0x51, 0x7d, 0x06, - 0x50, 0x7f, 0xb7, 0x5f, 0x06, 0xd8, 0x3b, 0xc5, 0x15, 0xb3, 0x7c, 0xc7, - 0x06, 0xb8, 0xbb, 0x44, 0x22, 0x7d, 0x69, 0x42, 0x7f, 0xd1, 0x06, 0x5e, - 0xfb, 0xb1, 0xff, 0x68, 0x06, 0x2a, 0xbd, 0x13, 0x04, 0x35, 0x28, 0x3d, - 0x78, 0x3c, 0x48, 0x3f, 0x06, 0x38, 0x3d, 0x06, 0xf4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x0d, 0x13, 0x02, 0x00, 0x09, 0x11, 0x01, 0x0d, 0x0d, 0x0b, - 0x02, 0x0c, 0x05, 0x13, 0x0d, 0x0d, 0x0d, 0x0d, 0x01, 0x2f, 0xff, 0x4f, - 0x70, 0x24, 0x01, 0xae, 0x30, 0xea, 0x30, 0xb7, 0x30, 0xe3, 0x06, 0x88, - 0x3d, 0x5b, 0x47, 0x4f, 0x6f, 0x65, 0x06, 0x8f, 0xf7, 0x30, 0x7f, 0xe8, - 0x06, 0x8b, 0xf5, 0x50, 0xff, 0x57, 0x69, 0x40, 0xff, 0x68, 0x2c, 0x79, - 0x6e, 0x06, 0x08, 0x3d, 0x51, 0x7f, 0x06, 0x7f, 0xf5, 0x84, 0x07, 0x10, - 0x7f, 0x0c, 0x5e, 0x4a, 0x81, 0x06, 0xb8, 0x3b, 0xf8, 0xad, 0x0d, 0xac, - 0xb9, 0xa4, 0xc2, 0x06, 0xbb, 0xbb, 0x52, 0x7f, 0x6b, 0x06, 0x42, 0x7d, - 0xa8, 0x53, 0xff, 0xe9, 0x06, 0xa2, 0x7f, 0x13, 0x28, 0x39, 0x35, 0x04, - 0x46, 0xe0, 0x06, 0x48, 0x37, 0x07, 0x74, 0xff, 0x10, 0x0e, 0xb0, 0x7f, - 0x0e, 0x15, 0x15, 0x10, 0x14, 0x00, 0x16, 0x0e, 0x0e, 0x11, 0x18, 0x0f, - 0x15, 0x0e, 0x12, 0x0e, 0x0e, 0x0e, 0x01, 0x2f, 0xff, 0x50, 0x14, 0x6f, - 0xff, 0xcf, 0x0a, 0x30, 0xf3, 0x30, 0xac, 0x28, 0x3f, 0xfc, 0x06, 0x68, - 0x3d, 0x48, 0xac, 0x2f, 0x75, 0x6e, 0x2f, 0xf1, 0x61, 0x2e, 0xfd, 0x06, - 0x3b, 0x77, 0x48, 0x00, 0x75, 0x6f, 0x40, 0x7f, 0x57, 0xc1, 0x06, 0x1e, - 0x81, 0x55, 0x80, 0xfd, 0x6e, 0x06, 0x4e, 0xfe, 0xf8, 0x50, 0x7f, 0x38, - 0xb7, 0x38, 0xc3, 0x06, 0x1f, 0xf7, 0x71, 0xff, 0x72, 0x00, 0xed, 0x81, - 0x06, 0x48, 0xbd, 0x08, 0x53, 0x59, 0x72, 0x29, 0x52, 0x06, 0x9f, 0xf9, - 0x03, 0xdd, 0xd5, 0x00, 0xac, 0xac, 0xb9, 0x06, 0x98, 0xbd, 0x72, 0xff, - 0x8e, 0x33, 0x7f, 0x69, 0x00, 0x6a, 0x06, 0x0b, 0xc1, 0x91, 0xff, 0x06, - 0x5a, 0xbd, 0x12, 0x8f, 0x28, 0x39, 0x3d, 0x04, 0x33, 0x28, 0x41, 0x06, - 0x58, 0x3d, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x00, 0x0f, 0x17, - 0x17, 0x3f, 0x3f, 0x18, 0x0f, 0x0f, 0x00, 0x13, 0x1a, 0x0b, 0x17, 0x0f, - 0x0f, 0x0f, 0x0f, 0x90, 0x01, 0x2f, 0xff, 0x51, 0x01, 0x6f, 0xff, 0xa2, - 0x30, 0xa4, 0x30, 0x15, 0xb9, 0x30, 0xe9, 0x28, 0x41, 0xc9, 0x06, 0x48, - 0x3d, 0x49, 0x4f, 0xf3, 0xdf, 0x06, 0x1c, 0xef, 0x90, 0x7f, 0x73, 0x8f, - 0xeb, 0x06, 0x3b, 0xf9, 0xb0, 0x7f, 0x06, 0x51, 0x7f, 0x90, 0xff, 0xe1, - 0x06, 0x3f, 0xf9, 0xb1, 0x7f, 0x06, 0x3e, 0x7b, 0xb0, 0x51, 0x9b, 0x5c, - 0x06, 0x9f, 0xf5, 0x00, 0x00, 0x00, 0x44, 0xc5, 0x74, 0xc7, 0xac, 0xc2, - 0x08, 0x80, 0xb7, 0xdc, 0xb4, 0x06, 0x5b, 0xbb, 0x49, 0x00, 0x4a, 0xd0, - 0x06, 0xc2, 0x81, 0x53, 0x7f, 0xe2, 0x06, 0x81, 0xff, 0x18, 0x04, 0x41, - 0x04, 0x17, 0x3b, 0x04, 0x30, 0x28, 0x3f, 0x34, 0x06, 0x48, 0x3d, 0x07, - 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x00, 0x10, 0x18, 0x1b, 0x14, 0x18, - 0x1c, 0x10, 0x10, 0x00, 0x15, 0x1e, 0x17, 0x18, 0x10, 0x10, 0x10, 0x10, - 0x95, 0x01, 0x2f, 0xff, 0x52, 0x1a, 0xa8, 0x3b, 0xeb, 0x06, 0xc8, 0x3b, - 0x72, 0x06, 0xe8, 0x3b, 0x7c, 0x72, 0x06, 0xe8, 0x3b, 0x90, 0x7f, 0x06, - 0x71, 0x7f, 0x06, 0xd8, 0x3b, 0x06, 0xd0, 0x7f, 0x31, 0x72, 0x08, 0x14, - 0x5c, 0x70, 0x51, 0x06, 0xb8, 0x3b, 0x7c, 0xc7, 0x9c, 0xd8, 0x06, 0x88, - 0x39, 0x3b, 0xbb, 0x65, 0x06, 0xc2, 0x81, 0x06, 0xf2, 0x7f, 0x18, 0x04, - 0x40, 0xe0, 0x06, 0xe8, 0x3b, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xb0, 0x7f, - 0x11, 0x1a, 0x1a, 0x13, 0x17, 0x02, 0x1a, 0x11, 0x11, 0x14, 0x1d, 0x16, - 0x20, 0x05, 0x11, 0x48, 0x11, 0x01, 0x2f, 0xff, 0x53, 0x14, 0x6f, 0xff, - 0xa4, 0x30, 0xbf, 0x0d, 0x30, 0xea, 0x30, 0xa2, 0x06, 0x48, 0x37, 0x5f, - 0xf7, 0x74, 0x2f, 0xf5, 0x16, 0x6c, 0x00, 0x79, 0x06, 0xe0, 0x7f, 0x69, - 0x06, 0x48, 0x39, 0xd0, 0x7f, 0x6e, 0xe0, 0x06, 0xc0, 0xff, 0x06, 0x38, - 0x39, 0x07, 0x10, 0x7f, 0x0f, 0x61, 0x27, 0x59, 0x29, 0x40, 0x52, 0x06, - 0x98, 0x3b, 0x74, 0xc7, 0xc8, 0xd0, 0xac, 0xb9, 0x22, 0x44, 0xc5, 0x06, - 0xf3, 0x7f, 0x69, 0x00, 0xeb, 0x06, 0x83, 0xff, 0xe1, 0x8b, 0x06, 0xa2, - 0x7f, 0x18, 0x04, 0x42, 0x28, 0x39, 0x3b, 0x06, 0x48, 0x37, 0x07, 0xb4, - 0xff, 0x80, 0x10, 0x0e, 0x70, 0x7f, 0x12, 0x1c, 0x1c, 0x16, 0x1a, 0x1d, - 0x12, 0x00, 0x12, 0x17, 0x1f, 0x19, 0x1c, 0x12, 0x12, 0x12, 0x48, 0x12, - 0x01, 0x2f, 0xff, 0x54, 0x01, 0x6f, 0xff, 0xe9, 0x30, 0xc8, 0x28, 0x30, - 0xd3, 0x06, 0xa8, 0x3b, 0x4c, 0x2f, 0xf3, 0x74, 0x00, 0x76, 0xab, 0x06, - 0x86, 0xbb, 0x4c, 0x2d, 0x77, 0x74, 0x28, 0xbf, 0x6f, 0x2f, 0xf9, 0x06, - 0x38, 0x3f, 0xfc, 0x70, 0x7f, 0x06, 0x7d, 0xf9, 0xd0, 0xff, 0x06, 0x1f, - 0xf9, 0x51, 0x7f, 0x06, 0x70, 0x7d, 0x00, 0x00, 0x00, 0xc9, 0x62, 0x31, - 0x81, 0xf4, 0x7e, 0x9a, 0x4e, 0x81, 0x06, 0x7f, 0xf7, 0x7c, 0xb7, 0xb8, - 0xd2, 0x44, 0xbe, 0x06, 0x98, 0x3b, 0xea, 0x52, 0xff, 0x06, 0x9e, 0xf7, - 0x53, 0x7f, 0xf3, 0x06, 0x81, 0xff, 0x1b, 0x28, 0x39, 0x42, 0x38, 0x04, - 0x32, 0x06, 0x88, 0x3b, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x13, - 0x1e, 0x1f, 0x00, 0x1a, 0x1d, 0x20, 0x13, 0x13, 0x1b, 0x22, 0x1b, 0x04, - 0x1e, 0x13, 0x13, 0x13, 0x13, 0x01, 0x2f, 0xff, 0x55, 0x0a, 0x8e, 0x6f, - 0xff, 0xec, 0x30, 0xbd, 0x28, 0x3d, 0x06, 0x9d, 0x77, 0x37, 0xbb, 0x73, - 0x8e, 0x27, 0xb9, 0x74, 0x00, 0x68, 0x27, 0xbf, 0x10, 0x0e, 0xb0, 0x7f, - 0x06, 0x31, 0xfd, 0x00, 0x01, 0x00, 0xb1, 0x83, 0x22, 0x7d, 0x58, 0x62, - 0x06, 0x92, 0xff, 0x03, 0x08, 0xb8, 0x8c, 0xc1, 0xa0, 0xd1, 0x0f, 0x33, - 0x7f, 0x06, 0x51, 0xff, 0x01, 0x1b, 0x04, 0x35, 0x04, 0x41, 0x04, 0x3e, - 0x28, 0x3f, 0x70, 0x3e, 0x06, 0x68, 0x3b, 0x10, 0x0f, 0x74, 0xff, 0x06, - 0x56, 0xff, 0x14, 0x1f, 0x1e, 0x19, 0x02, 0x1c, 0x1f, 0x14, 0x14, 0x1a, - 0x21, 0x30, 0x05, 0x14, 0x48, 0x14, 0x01, 0x2f, 0xff, 0x56, 0x01, 0x6f, - 0xff, 0xea, 0x30, 0xd2, 0x00, 0x30, 0xc6, 0x30, 0xf3, 0x30, 0xb7, 0x30, - 0xe5, 0x0e, 0x30, 0xbf, 0x30, 0xa4, 0x20, 0x09, 0x05, 0xff, 0xf7, 0x3f, - 0xed, 0x63, 0xad, 0x28, 0x39, 0x74, 0x2f, 0xf5, 0x6e, 0x28, 0x47, 0x30, - 0x07, 0x69, 0x2f, 0x83, 0x80, 0x10, 0x15, 0x50, 0x7f, 0x17, 0x52, 0x2f, - 0x65, 0x66, 0x65, 0xeb, 0x10, 0x58, 0x7b, 0x76, 0x06, 0x5f, 0xf9, 0xac, - 0xb9, 0x88, 0xd7, 0x00, 0x50, 0xd1, 0x88, 0xc2, 0xc0, 0xd0, 0x78, 0xc7, - 0xc1, 0x06, 0x5e, 0xf7, 0x0e, 0xd3, 0x7f, 0x1b, 0x04, 0x38, 0x04, 0x45, - 0x28, 0x39, 0x05, 0x35, 0x04, 0x3d, 0x04, 0x48, 0x40, 0x07, 0x39, 0x20, - 0x09, 0x80, 0x10, 0x1d, 0x94, 0xff, 0x15, 0x20, 0x20, 0x1b, 0x1e, 0x21, - 0x15, 0x00, 0x15, 0x1c, 0x23, 0x1e, 0x20, 0x15, 0x15, 0x15, 0x48, 0x15, - 0x01, 0x2f, 0xff, 0x57, 0x0a, 0x88, 0x3b, 0xc8, 0x30, 0xa2, 0x34, 0x30, - 0xcb, 0x20, 0x03, 0x06, 0x7c, 0xf7, 0x69, 0x4f, 0xf3, 0x75, 0x00, 0x5d, - 0x61, 0x28, 0x39, 0x69, 0x20, 0x05, 0x06, 0x30, 0x7f, 0x70, 0x7d, 0x65, - 0x06, 0x60, 0xff, 0x7c, 0x61, 0x20, 0xff, 0x39, 0x39, 0x06, 0x71, 0x7f, - 0x06, 0x71, 0x7d, 0x07, 0x10, 0x7f, 0xcb, 0x7a, 0x08, 0x76, 0x96, 0x9b, - 0x5b, 0x06, 0x9f, 0xf7, 0xac, 0xb9, 0x2c, 0x01, 0xd2, 0x44, 0xc5, 0xc8, - 0xb2, 0x44, 0xc5, 0x06, 0xb3, 0x7f, 0x5b, 0x6f, 0x23, 0x7f, 0x77, 0x06, - 0x42, 0x81, 0x73, 0x7f, 0xe2, 0x06, 0x62, 0x7f, 0x38, 0x3b, 0x07, 0x42, - 0x04, 0x32, 0x04, 0x30, 0x05, 0xa8, 0x2f, 0x08, 0x14, 0xff, 0x10, 0x0e, - 0x90, 0x7f, 0x00, 0x16, 0x21, 0x21, 0x1c, 0x1f, 0x22, 0x16, 0x16, 0x00, - 0x1d, 0x24, 0x1d, 0x21, 0x16, 0x16, 0x16, 0x16, 0x90, 0x01, 0x2f, 0xff, - 0x58, 0x01, 0x6f, 0xff, 0xeb, 0x30, 0xaf, 0x30, 0x03, 0xbb, 0x30, 0xf3, - 0x30, 0xd6, 0x30, 0x30, 0x09, 0x06, 0x3c, 0xf7, 0x11, 0x75, 0x00, 0x78, - 0x2f, 0xf9, 0x6d, 0x00, 0x62, 0x44, 0xc1, 0x1d, 0x72, 0x00, 0x67, 0x0e, - 0x80, 0x7f, 0x06, 0x10, 0xfd, 0x51, 0x7f, 0x73, 0x2f, 0xed, 0xb0, 0xb0, - 0x81, 0x6f, 0x06, 0xc0, 0xff, 0x05, 0xb0, 0x7d, 0x00, 0x00, 0x62, 0x53, - 0x08, 0xee, 0x68, 0x21, 0x58, 0x06, 0x98, 0x3b, 0xe9, 0xb8, 0x48, 0x01, - 0xc1, 0x80, 0xbd, 0x74, 0xb9, 0x6c, 0xd0, 0x06, 0x7b, 0xbb, 0xc0, 0x07, - 0x12, 0x7f, 0x06, 0xb1, 0xff, 0x1b, 0x04, 0x4e, 0x04, 0x3a, 0x04, 0x00, - 0x41, 0x04, 0x35, 0x04, 0x3c, 0x04, 0x31, 0x04, 0x07, 0x43, 0x04, 0x40, - 0x04, 0x33, 0x05, 0xc8, 0x45, 0x0f, 0xb4, 0xff, 0x10, 0x06, 0x30, 0xff, - 0x00, 0x17, 0x22, 0x22, 0x1d, 0x20, 0x23, 0x17, 0x17, 0x00, 0x1e, 0x25, - 0x1f, 0x22, 0x17, 0x17, 0x17, 0x17, 0xa0, 0x01, 0x2f, 0xff, 0x59, 0x78, - 0x3b, 0xde, 0x30, 0xb1, 0x30, 0xc9, 0x0d, 0x30, 0xcb, 0x30, 0xa2, 0x06, - 0x28, 0x37, 0x3f, 0xff, 0x4d, 0x2f, 0xf1, 0x58, 0x63, 0x2f, 0xef, 0x64, - 0x2c, 0xfb, 0x5e, 0xf9, 0x20, 0x00, 0x28, 0x28, 0x00, 0x52, 0x2f, 0x85, - 0x70, 0x2f, 0x8b, 0x62, 0x00, 0x6c, 0xa0, 0x2f, 0x97, 0x63, 0x20, 0x13, - 0x6f, 0x00, 0x66, 0x00, 0x29, 0xaa, 0x04, 0x80, 0x7f, 0xe9, 0x40, 0x7f, - 0x69, 0x2f, 0xf9, 0x65, 0x60, 0x7f, 0xe9, 0xad, 0xa0, 0x7f, 0x71, 0x2f, - 0x97, 0x65, 0x04, 0x40, 0x7d, 0x50, 0xff, 0x7a, 0xa0, 0xff, 0xde, 0x3d, - 0xfb, 0x00, 0x11, 0x01, 0x6b, 0x04, 0x60, 0x7d, 0x01, 0x11, 0x7f, 0x71, - 0x81, 0x31, 0x97, 0x64, 0xec, 0x2e, 0xa3, 0x03, 0xf1, 0x83, 0x00, 0xb1, - 0xff, 0xfa, 0xa0, 0x7d, 0x04, 0x70, 0xff, 0x6c, 0x9a, 0x08, 0x76, 0x51, - 0x7f, 0x98, 0x06, 0x98, 0x3b, 0xc8, 0xb9, 0x00, 0x00, 0xcf, 0xc4, 0xb3, - 0xc8, 0xb2, 0x44, 0xc5, 0x20, 0x01, 0x00, 0xf5, 0xac, 0x54, 0xd6, 0x6d, - 0xad, 0x06, 0xd3, 0x7f, 0x51, 0xeb, 0x06, 0x83, 0xff, 0xf3, 0x06, 0x41, - 0xff, 0x1c, 0x04, 0x30, 0x28, 0x3b, 0x00, 0x35, 0x04, 0x34, 0x04, 0x3e, - 0x04, 0x3d, 0x04, 0x0a, 0x38, 0x04, 0x4f, 0x04, 0x34, 0x7f, 0x20, 0x28, - 0x4b, 0x41, 0x22, 0x04, 0x3f, 0x28, 0x4b, 0x31, 0x04, 0x3b, 0x20, 0x15, - 0x3a, 0xf0, 0x20, 0x25, 0x04, 0x93, 0xff, 0x07, 0x14, 0xff, 0x10, 0x0e, - 0x90, 0x7f, 0x18, 0x23, 0x23, 0x21, 0x00, 0x21, 0x24, 0x18, 0x18, 0x1f, - 0x26, 0x21, 0x23, 0x0a, 0x18, 0x18, 0x18, 0x18, 0x01, 0x2f, 0xff, 0x5a, - 0x98, 0x3b, 0xeb, 0x31, 0x30, 0xbf, 0x06, 0x68, 0x37, 0x78, 0x3b, 0x6c, - 0x00, 0x74, 0x28, 0x41, 0xb0, 0x06, 0xd0, 0x7f, 0x65, 0x0e, 0xe0, 0xff, - 0x0e, 0x70, 0x7f, 0x6c, 0x9a, 0x33, 0x80, 0x21, 0xd6, 0x4e, 0x06, 0x98, - 0x3b, 0xb0, 0xba, 0xc0, 0xd0, 0x06, 0x98, 0xb9, 0xc1, 0x0f, 0x12, 0x7f, - 0x38, 0x3b, 0x3b, 0x04, 0x4c, 0x04, 0x42, 0x28, 0x43, 0xc0, 0x10, 0x0e, - 0x33, 0xff, 0x0e, 0xf5, 0x7f, 0x19, 0x25, 0x25, 0x1f, 0x23, 0x26, 0x00, - 0x19, 0x19, 0x21, 0x28, 0x23, 0x25, 0x19, 0x19, 0x28, 0x19, 0x19, 0x01, - 0x2f, 0xff, 0x5b, 0x78, 0x3b, 0xe2, 0x30, 0xf3, 0x00, 0x30, 0xc6, 0x30, - 0xcd, 0x30, 0xb0, 0x30, 0xed, 0xb8, 0x06, 0x48, 0x41, 0x4d, 0x4f, 0x6f, - 0x37, 0xbb, 0x3f, 0xf3, 0x67, 0x00, 0x72, 0xd7, 0x2f, 0xff, 0x06, 0x30, - 0x7f, 0xe9, 0x2f, 0xf5, 0xe9, 0x06, 0xa0, 0x7f, 0x06, 0xf0, 0xff, 0x0e, - 0x70, 0x7f, 0x08, 0xd1, 0x9e, 0x71, 0x5c, 0x06, 0xb7, 0xbb, 0xac, 0xba, - 0x4c, 0x01, 0xd1, 0x24, 0xb1, 0xf8, 0xad, 0x5c, 0xb8, 0x06, 0x7b, 0xbb, - 0x80, 0x0e, 0xd2, 0x7f, 0x27, 0x04, 0x35, 0x04, 0x40, 0x04, 0x3d, 0x08, - 0x04, 0x3e, 0x04, 0x33, 0x20, 0x03, 0x40, 0x04, 0x38, 0x38, 0x04, 0x4f, - 0x05, 0xc8, 0x43, 0x10, 0x06, 0xf3, 0xff, 0x0e, 0xf5, 0x7f, 0x1a, 0x28, - 0x28, 0x00, 0x23, 0x26, 0x29, 0x1a, 0x1a, 0x25, 0x2c, 0x3c, 0x05, 0x28, - 0x1a, 0x1a, 0x1a, 0x1a, 0x01, 0x2f, 0xff, 0x5c, 0x98, 0x3b, 0x41, 0xb6, - 0x28, 0x3d, 0xd3, 0x30, 0xfc, 0x30, 0xaf, 0x06, 0x88, 0x3b, 0x40, 0x7a, - 0x2f, 0xfb, 0x6d, 0x00, 0x62, 0x00, 0x69, 0x00, 0x1a, 0x71, 0x00, 0x75, - 0x28, 0x45, 0x0d, 0xf0, 0x7f, 0x73, 0x80, 0xff, 0x6b, 0xb0, 0x06, 0xe1, - 0x7f, 0x63, 0x05, 0xe9, 0xb9, 0x07, 0x11, 0xff, 0xab, 0x83, 0x51, 0x68, - 0x08, 0xd4, 0x6b, 0x4b, 0x51, 0x06, 0x7f, 0xfb, 0xa8, 0xba, 0xa0, 0x06, - 0xc7, 0x44, 0xbe, 0x6c, 0xd0, 0x06, 0x78, 0xbf, 0x07, 0x33, 0x7f, 0xe7, - 0xa0, 0x06, 0xa3, 0xff, 0x1c, 0x28, 0x35, 0x37, 0x04, 0x30, 0x04, 0x3c, - 0x2e, 0x04, 0x31, 0x28, 0x37, 0x3a, 0x05, 0xc8, 0x37, 0x0f, 0x74, 0xff, - 0x10, 0x06, 0xb0, 0xff, 0x1b, 0x00, 0x29, 0x29, 0x24, 0x27, 0x2a, 0x1b, - 0x1b, 0x26, 0x01, 0x2a, 0x24, 0x29, 0x1b, 0x1b, 0x1b, 0x1b, 0x01, 0x2f, - 0xff, 0x45, 0x5d, 0x78, 0x3b, 0xca, 0x30, 0xdf, 0x28, 0x39, 0xa2, 0x06, - 0x48, 0x37, 0xab, 0x3f, 0xff, 0x4e, 0x48, 0x37, 0x69, 0x48, 0x39, 0x61, - 0x06, 0xe0, 0x7f, 0x05, 0xd8, 0xb5, 0xc0, 0x08, 0x10, 0xff, 0x0e, 0x30, - 0x7f, 0xb3, 0x7e, 0x73, 0x7c, 0xd4, 0x6b, 0x20, 0x9a, 0x4e, 0x06, 0x78, - 0x3b, 0x98, 0xb0, 0xf8, 0xbb, 0x44, 0x15, 0xbe, 0x44, 0xc5, 0x07, 0x33, - 0x7f, 0xeb, 0x06, 0x83, 0xff, 0xed, 0x06, 0x83, 0xff, 0x57, 0x1d, 0x48, - 0x37, 0x38, 0x48, 0x39, 0x4f, 0x06, 0x08, 0x39, 0x10, 0x07, 0x13, 0xff, - 0x0e, 0xf5, 0x7f, 0x00, 0x1c, 0x2a, 0x2a, 0x25, 0x28, 0x2b, 0x1c, 0x1c, - 0x00, 0x27, 0x2d, 0x27, 0x2a, 0x1c, 0x1c, 0x1c, 0x1c, 0x90, 0x01, 0x2f, - 0xff, 0x5e, 0x0c, 0x6f, 0xff, 0xaa, 0x30, 0xe9, 0x30, 0x10, 0xf3, 0x30, - 0xc0, 0x06, 0xa8, 0x3b, 0x65, 0x00, 0x74, 0x00, 0x44, 0x68, 0x2f, 0xed, - 0x72, 0x00, 0x6c, 0x2f, 0xff, 0x6e, 0x00, 0x6a, 0x64, 0x2f, 0x87, 0x05, - 0x9f, 0xfa, 0x50, 0x2f, 0xf3, 0x79, 0x2f, 0xf9, 0x2d, 0x3d, 0x00, 0x42, - 0x2f, 0xfd, 0x05, 0xb0, 0x79, 0x79, 0x3b, 0x38, 0xb3, 0x64, 0xc0, 0xff, - 0xd1, 0x05, 0xbf, 0x79, 0x30, 0xff, 0x65, 0x21, 0x71, 0x69, 0x00, 0x20, - 0x61, 0x01, 0xdd, 0x30, 0x0b, 0x05, 0xd1, 0x7f, 0xed, 0x21, 0xf1, 0x30, - 0x83, 0x50, 0x81, 0x6a, 0x2f, 0x09, 0x86, 0x05, 0x92, 0x01, 0x77, 0x83, - 0x70, 0x51, 0x06, 0x7f, 0xf3, 0x3f, 0xff, 0x24, 0x01, 0xb1, 0x5c, 0xb3, - 0x80, 0xb7, 0xdc, 0xb4, 0x06, 0xb3, 0x7f, 0xe2, 0xd2, 0x7d, 0x05, 0xdf, - 0x79, 0x00, 0x11, 0xff, 0x69, 0x00, 0x78, 0x05, 0xa2, 0x01, 0x1d, 0x80, - 0x28, 0x37, 0x34, 0x04, 0x35, 0x04, 0x40, 0x04, 0x3b, 0xae, 0x28, 0x45, - 0x3d, 0x20, 0x0b, 0x4b, 0x05, 0xc8, 0x41, 0x06, 0xf4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x1d, 0x00, 0x2b, 0x2e, 0x27, 0x2c, 0x2f, 0x1d, 0x1d, 0x28, - 0x01, 0x31, 0x29, 0x2b, 0x1d, 0x1d, 0x1d, 0x1d, 0x01, 0x2f, 0xff, 0x20, - 0x60, 0x14, 0x6f, 0xff, 0xce, 0x30, 0xeb, 0x30, 0xa6, 0x0a, 0x30, 0xa7, - 0x30, 0xfc, 0x06, 0x68, 0x3d, 0x4e, 0x26, 0x29, 0x72, 0x30, 0x00, 0x77, - 0x47, 0xc1, 0x06, 0x90, 0x7f, 0x76, 0x00, 0xe8, 0x00, 0x6b, 0x67, 0x05, - 0xc7, 0xb3, 0xf0, 0xff, 0x65, 0x40, 0x7f, 0x6e, 0x06, 0x80, 0xff, 0x30, - 0x7f, 0xd8, 0x06, 0x3f, 0xf9, 0x51, 0xff, 0x75, 0x40, 0xff, 0x06, 0x3e, - 0x77, 0x2a, 0x63, 0x01, 0x40, 0x5a, 0x06, 0xb8, 0x3b, 0x78, 0xb1, 0x74, - 0xb9, 0xe8, 0xc6, 0x2c, 0x74, 0xc7, 0x06, 0x9b, 0xbb, 0x6f, 0x06, 0xc2, - 0x81, 0x06, 0xf1, 0xff, 0x1d, 0x04, 0x55, 0x3e, 0x28, 0x37, 0x32, 0x28, - 0x3d, 0x33, 0x28, 0x45, 0x4f, 0x05, 0xc8, 0x37, 0xc0, 0x07, 0x94, 0xff, - 0x10, 0x0e, 0x90, 0x7f, 0x1e, 0x2e, 0x2c, 0x29, 0x2a, 0x2d, 0x00, 0x1e, - 0x1e, 0x2b, 0x2f, 0x2b, 0x2e, 0x1e, 0x1e, 0x25, 0x1e, 0x1e, 0x01, 0x2f, - 0xff, 0x61, 0x10, 0x6f, 0xff, 0xdd, 0x28, 0x35, 0x05, 0xe9, 0x30, 0xf3, - 0x30, 0xc9, 0x06, 0x68, 0x3b, 0x50, 0x2e, 0x65, 0xd7, 0x06, 0x5c, 0xf1, - 0xb0, 0x7f, 0x6f, 0x28, 0x39, 0x6e, 0x06, 0x48, 0x3b, 0x50, 0xff, 0x06, - 0x38, 0x35, 0xb0, 0xd0, 0xff, 0x6e, 0x06, 0x48, 0x39, 0x07, 0x10, 0x7f, - 0xe2, 0x6c, 0x70, 0x51, 0x81, 0x06, 0xb8, 0x3b, 0xf4, 0xd3, 0x80, 0xb7, - 0xdc, 0xb4, 0x06, 0x98, 0xbd, 0xa8, 0x07, 0x52, 0x7f, 0xf3, 0x06, 0x82, - 0x7f, 0x1f, 0x28, 0x3b, 0x3b, 0x04, 0x4c, 0x0e, 0x04, 0x48, 0x04, 0x30, - 0x06, 0x08, 0x37, 0x07, 0x94, 0xff, 0x10, 0x0e, 0x90, 0x7f, 0x1f, 0x00, - 0x2f, 0x2f, 0x2b, 0x2d, 0x30, 0x1f, 0x1f, 0x2d, 0x01, 0x32, 0x2c, 0x2f, - 0x1f, 0x1f, 0x1f, 0x1f, 0x01, 0x2f, 0xff, 0x20, 0x62, 0x14, 0x88, 0x3b, - 0xeb, 0x30, 0xc8, 0x30, 0xac, 0xc6, 0x20, 0x05, 0x06, 0x98, 0x3b, 0x72, - 0x00, 0x74, 0x2e, 0x79, 0x3e, 0x77, 0x6c, 0xf8, 0x10, 0x06, 0x80, 0x7f, - 0x39, 0x3d, 0x31, 0x7f, 0x39, 0x47, 0x0d, 0xb1, 0xff, 0x61, 0x84, 0x04, - 0x10, 0x84, 0x59, 0x72, 0x06, 0x98, 0x3d, 0xec, 0xd3, 0x74, 0xb9, 0x0e, - 0x2c, 0xd2, 0x08, 0xac, 0x06, 0xb8, 0x3b, 0x0e, 0xb3, 0x7f, 0x38, 0x3b, - 0x40, 0x02, 0x04, 0x42, 0x04, 0x43, 0x04, 0x33, 0x28, 0x3d, 0x3b, 0x0e, - 0x04, 0x38, 0x04, 0x4f, 0x05, 0xc8, 0x43, 0x10, 0x07, 0x74, 0xff, 0x0e, - 0x76, 0x7f, 0x20, 0x00, 0x30, 0x30, 0x2c, 0x2e, 0x31, 0x20, 0x20, 0x2e, - 0x01, 0x33, 0x2d, 0x30, 0x20, 0x20, 0x20, 0x20, 0x01, 0x2f, 0xff, 0x20, - 0x63, 0x2a, 0x6f, 0xff, 0xeb, 0x30, 0xfc, 0x30, 0xde, 0x0a, 0x30, 0xcb, - 0x30, 0xa2, 0x06, 0x68, 0x3b, 0x52, 0x2f, 0xf7, 0x6d, 0xeb, 0x4b, 0x77, - 0x06, 0x5e, 0xf7, 0x30, 0x7f, 0x75, 0x80, 0x81, 0x65, 0x06, 0x20, 0xff, - 0x30, 0x7d, 0x7a, 0xe4, 0x60, 0x7d, 0x06, 0x1d, 0xfd, 0x07, 0x11, 0x7f, - 0x71, 0x7d, 0xed, 0x06, 0x4e, 0x77, 0x57, 0x01, 0x7f, 0x6c, 0x9a, 0x3c, - 0x5c, 0x9a, 0x4e, 0x06, 0x7f, 0xf9, 0x00, 0xe8, 0xb8, 0xc8, 0xb9, 0xc8, - 0xb2, 0x44, 0xc5, 0xd8, 0x06, 0x78, 0xbd, 0x33, 0x7f, 0x65, 0x23, 0x81, - 0x32, 0x7b, 0x69, 0x00, 0xeb, 0xa8, 0x06, 0x63, 0xff, 0xe9, 0x06, 0x83, - 0xff, 0x20, 0x28, 0x35, 0x3c, 0x04, 0x4b, 0x38, 0x04, 0x3d, 0x06, 0x08, - 0x35, 0x07, 0x94, 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x21, 0x31, 0x32, 0x00, - 0x2d, 0x31, 0x34, 0x21, 0x21, 0x2f, 0x36, 0x2f, 0x04, 0x31, 0x21, 0x21, - 0x21, 0x21, 0x01, 0x2f, 0xff, 0x64, 0x53, 0x8d, 0x6f, 0xff, 0xed, 0x30, - 0xb7, 0x06, 0x88, 0x37, 0x77, 0x3b, 0x73, 0x20, 0x01, 0xf5, 0x06, 0x58, - 0x39, 0xb0, 0x7f, 0x06, 0x18, 0x37, 0xb0, 0xff, 0x6c, 0x49, 0x3f, 0x64, - 0x0e, 0x61, 0x7f, 0x80, 0x06, 0x71, 0xfd, 0x00, 0x00, 0xc4, 0x4f, 0x57, - 0x7f, 0xaf, 0xc3, 0x06, 0x51, 0xfa, 0x4f, 0xff, 0xec, 0xb7, 0xdc, 0xc2, - 0x06, 0x98, 0x39, 0x73, 0x7f, 0xd0, 0x06, 0x72, 0x7d, 0x3c, 0x3b, 0xfa, - 0x06, 0xc3, 0xff, 0x20, 0x04, 0x3e, 0x04, 0x78, 0x41, 0x20, 0x01, 0x06, - 0x58, 0x39, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x22, 0x32, 0x34, - 0x00, 0x2e, 0x32, 0x35, 0x22, 0x22, 0x30, 0x37, 0x2e, 0x04, 0x32, 0x22, - 0x22, 0x22, 0x22, 0x01, 0x2f, 0xff, 0x65, 0x01, 0x82, 0x6f, 0xff, 0xbb, - 0x30, 0xeb, 0x30, 0xd3, 0x28, 0x3d, 0xfb, 0x00, 0x30, 0xb3, 0x30, 0xbd, - 0x30, 0xf4, 0x30, 0xa9, 0xa2, 0x05, 0xe8, 0x47, 0x53, 0x2f, 0xeb, 0x72, - 0x00, 0x62, 0x4e, 0xf5, 0x20, 0x8a, 0x67, 0x3f, 0x20, 0x00, 0x4b, 0x2f, - 0x0d, 0x73, 0x2f, 0x11, 0x76, 0xd1, 0x2f, 0x15, 0x05, 0x70, 0x7f, 0x65, - 0x20, 0x7f, 0x65, 0x00, 0x74, 0x05, 0xc0, 0x7d, 0xaf, 0xd0, 0x7f, 0x6e, - 0x21, 0x01, 0x75, 0x05, 0xe1, 0x01, 0xd1, 0x7f, 0x31, 0x03, 0x05, 0xb0, - 0xfd, 0xa0, 0xf1, 0xff, 0x79, 0x06, 0x00, 0x7f, 0x5e, 0x58, 0x14, 0x5c, - 0xf4, 0x00, 0x7e, 0x9a, 0x4e, 0xca, 0x53, 0xd1, 0x79, 0x22, 0x10, 0x7d, - 0x83, 0x6c, 0x05, 0xff, 0xff, 0x38, 0xc1, 0x74, 0xb9, 0x00, 0x44, 0xbe, - 0x44, 0xc5, 0x20, 0x00, 0x54, 0xcf, 0x0d, 0x8c, 0xc1, 0xf4, 0xbc, 0x05, - 0xff, 0xf8, 0x53, 0x7f, 0x76, 0x2f, 0xf5, 0x76, 0xeb, 0x42, 0xff, 0x32, - 0x83, 0x05, 0xd2, 0xff, 0xe9, 0x60, 0x7f, 0x06, 0x52, 0x7f, 0x21, 0x02, - 0x04, 0x35, 0x04, 0x40, 0x04, 0x31, 0x48, 0x3b, 0x20, 0x28, 0x00, 0x38, - 0x20, 0x03, 0x1a, 0x48, 0x4d, 0x3e, 0x04, 0x32, 0xe0, 0x28, 0x55, 0x0d, - 0xb4, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x23, 0x34, 0x36, 0x33, 0x34, 0x00, - 0x37, 0x23, 0x23, 0x32, 0x39, 0x32, 0x34, 0x23, 0x12, 0x23, 0x23, 0x23, - 0x01, 0x2f, 0xff, 0x66, 0x08, 0x6f, 0xff, 0xb9, 0x03, 0x30, 0xed, 0x30, - 0xd0, 0x30, 0xad, 0x28, 0x3d, 0x06, 0x5d, 0xf8, 0x63, 0x53, 0x2f, 0x71, - 0x38, 0x23, 0x61, 0x00, 0x6b, 0x06, 0x4e, 0xfb, 0x90, 0x7f, 0x75, 0x71, - 0x2f, 0x81, 0x38, 0x41, 0x06, 0x30, 0xff, 0x77, 0x40, 0xff, 0x65, 0x2f, - 0xfd, 0xab, 0x06, 0x91, 0x7f, 0x63, 0x20, 0x01, 0x68, 0x06, 0x0d, 0xff, - 0x45, 0x4e, 0xf5, 0xb1, 0x81, 0x80, 0x05, 0xde, 0x7f, 0xaf, 0x65, 0x1b, - 0x6d, 0x10, 0x4f, 0x4b, 0x40, 0x51, 0x06, 0x7f, 0xf9, 0xac, 0xc2, 0x5c, - 0xb8, 0x14, 0xbc, 0x0c, 0xa4, 0xd0, 0x44, 0xc5, 0x06, 0xb3, 0x7f, 0x52, - 0x7f, 0x69, 0x00, 0x68, 0x6a, 0x06, 0x02, 0xff, 0x91, 0xff, 0xe1, 0x06, - 0x41, 0xff, 0x21, 0x04, 0x3b, 0x8e, 0x48, 0x27, 0x30, 0x04, 0x3a, 0x48, - 0x3f, 0x0e, 0x94, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x24, 0x00, 0x35, 0x37, - 0x35, 0x35, 0x0f, 0x24, 0x24, 0x34, 0x01, 0x11, 0x33, 0x35, 0x24, 0x24, - 0x24, 0x24, 0x01, 0x2f, 0xff, 0x23, 0x67, 0x01, 0xa8, 0x3b, 0xd9, 0x30, - 0xcb, 0x07, 0x08, 0x3b, 0x3f, 0x75, 0xbf, 0x06, 0xb8, 0x3b, 0xe9, 0x40, - 0x7f, 0x05, 0xf8, 0x39, 0x98, 0x3b, 0x50, 0xff, 0x3d, 0xf7, 0x0d, 0xd1, - 0x7f, 0xe0, 0x98, 0x3b, 0x06, 0x52, 0x01, 0x38, 0x3b, 0x87, 0x65, 0x3c, - 0x5c, 0x9a, 0x43, 0x4e, 0x06, 0x98, 0x3b, 0xa0, 0xbc, 0xc8, 0xb2, 0x06, - 0xd8, 0x3b, 0x73, 0x7f, 0x78, 0xeb, 0x06, 0xa1, 0xff, 0x53, 0x81, 0x05, - 0xfc, 0x3d, 0x78, 0x3b, 0x35, 0x04, 0x3d, 0xe0, 0x06, 0xc8, 0x3b, 0x06, - 0xf4, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x25, 0x36, 0x38, 0x36, 0x36, 0x00, - 0x10, 0x25, 0x25, 0x33, 0x12, 0x34, 0x36, 0x25, 0x12, 0x25, 0x25, 0x25, - 0x01, 0x2f, 0xff, 0x68, 0x09, 0x6f, 0xff, 0x57, 0x00, 0x53, 0xa2, 0x30, - 0xd5, 0x30, 0xea, 0x30, 0xab, 0xa8, 0x06, 0x88, 0x3b, 0x6f, 0x2f, 0xef, - 0x74, 0x2e, 0xf1, 0x20, 0x00, 0x41, 0x0b, 0x00, 0x66, 0x00, 0x72, 0x2f, - 0xfb, 0x63, 0x05, 0xae, 0xfb, 0x70, 0x73, 0xaa, 0x3e, 0xf3, 0x65, 0x20, - 0x83, 0x64, 0x2e, 0xfb, 0x20, 0x2f, 0x8d, 0x75, 0xd5, 0x20, 0x09, 0x05, - 0x5f, 0xf7, 0xfc, 0x20, 0x73, 0x61, 0x60, 0xf9, 0x6b, 0x06, 0x0c, 0x79, - 0xf4, 0x50, 0xe9, 0x70, 0x7f, 0x05, 0xb1, 0x79, 0xb0, 0x7f, 0xe1, 0x06, - 0x80, 0x7f, 0x57, 0x53, 0x30, 0x5e, 0x97, 0x06, 0x5f, 0xf1, 0x5f, 0xff, - 0xa8, 0xb0, 0x44, 0xc5, 0x00, 0x04, 0xd5, 0xac, 0xb9, 0x74, 0xce, 0x20, - 0x00, 0x02, 0xf5, 0xac, 0x54, 0xd6, 0x6d, 0xad, 0x05, 0xdf, 0xf8, 0x5a, - 0x8d, 0x4f, 0xeb, 0x64, 0x00, 0x2d, 0x83, 0x7d, 0x05, 0xd2, 0x83, 0xc1, - 0xa3, 0xf3, 0xa8, 0x33, 0x7d, 0x6f, 0x63, 0x7d, 0x6c, 0x05, 0x6f, 0xff, - 0x2e, 0x04, 0x10, 0x38, 0x04, 0x20, 0x06, 0x08, 0x31, 0x07, 0x94, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x26, 0x38, 0x00, 0x00, 0x39, 0x39, 0x3a, 0x26, - 0x26, 0x40, 0x00, 0x42, 0x04, 0x38, 0x26, 0x26, 0x26, 0x26, 0x01, 0x2f, - 0xff, 0x69, 0x13, 0x80, 0x6f, 0xff, 0xb9, 0x30, 0xda, 0x30, 0xa4, 0x30, - 0xf3, 0xd7, 0x06, 0x68, 0x39, 0x3f, 0xf7, 0x70, 0x2e, 0xed, 0x69, 0x06, - 0x0f, 0x6f, 0xbe, 0xf7, 0x30, 0x81, 0x5f, 0x67, 0x2f, 0xf7, 0x65, 0x06, - 0x80, 0xff, 0x3f, 0xf3, 0x3f, 0xf9, 0x06, 0x71, 0x7f, 0x30, 0xfd, 0xd0, - 0x06, 0x1c, 0xf3, 0xb1, 0x7f, 0xf1, 0x06, 0x60, 0x7f, 0x7f, 0x89, 0xed, - 0x73, 0x20, 0x59, 0x72, 0x06, 0x98, 0x3d, 0xa4, 0xc2, 0x98, 0xd3, 0x78, - 0x6d, 0xc7, 0x06, 0xb6, 0xbb, 0x52, 0x7f, 0x6a, 0x06, 0x42, 0xfd, 0x93, - 0x7f, 0x6e, 0x2c, 0x3d, 0x80, 0x06, 0x32, 0x81, 0x18, 0x04, 0x41, 0x04, - 0x3f, 0x04, 0x30, 0x03, 0x04, 0x3d, 0x04, 0x38, 0x04, 0x4f, 0x06, 0x28, - 0x43, 0x06, 0xf4, 0xff, 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x27, 0x39, 0x10, - 0x38, 0x38, 0x11, 0x27, 0x00, 0x27, 0x37, 0x13, 0x18, 0x39, 0x27, 0x27, - 0x27, 0x50, 0x27, 0x01, 0x2f, 0xff, 0x6a, 0x7b, 0x6a, 0xb9, 0x30, 0xef, - 0x30, 0x14, 0xb8, 0x30, 0xe9, 0x28, 0x3d, 0xc9, 0x06, 0x48, 0x3f, 0x53, - 0x00, 0x57, 0x77, 0x2f, 0x75, 0x7a, 0x2f, 0xf9, 0x6c, 0x47, 0x43, 0x05, - 0x5f, 0xed, 0x07, 0xf0, 0x7f, 0x54, 0x73, 0x0e, 0xa0, 0xff, 0x75, 0xe1, - 0xff, 0x69, 0x05, 0xce, 0xf7, 0xaf, 0x65, 0x02, 0x01, 0x5a, 0xeb, 0x58, - 0x70, 0x51, 0x06, 0x98, 0x3b, 0x40, 0x01, 0xc6, 0xc8, 0xc9, 0x80, 0xb7, - 0xdc, 0xb4, 0x06, 0x7e, 0xf7, 0xa2, 0x07, 0x91, 0xff, 0xe2, 0x06, 0x21, - 0xff, 0x21, 0x04, 0x32, 0x28, 0x39, 0x37, 0x8b, 0x28, 0x39, 0x3b, 0x04, - 0x35, 0x28, 0x41, 0x34, 0x05, 0xe8, 0x3f, 0x0f, 0x54, 0xff, 0x80, 0x10, - 0x06, 0x90, 0xff, 0x28, 0x3b, 0x3d, 0x3b, 0x3d, 0x39, 0x28, 0x00, 0x28, - 0x38, 0x3b, 0x31, 0x3b, 0x28, 0x28, 0x28, 0x48, 0x28, 0x01, 0x2f, 0xff, - 0x6b, 0x15, 0x88, 0x3b, 0xa6, 0x30, 0xa7, 0x0d, 0x30, 0xfc, 0x30, 0xc7, - 0x28, 0x3d, 0x06, 0x78, 0x3b, 0x65, 0x28, 0x31, 0xdb, 0x06, 0x5f, 0x75, - 0x56, 0xbb, 0xe8, 0x40, 0x7f, 0x06, 0x7d, 0xf7, 0x63, 0x2d, 0x71, 0x06, - 0x91, 0x03, 0x1e, 0x53, 0x00, 0x76, 0x2e, 0x71, 0x39, 0xbb, 0x06, 0x5f, - 0xf7, 0x38, 0x3b, 0x65, 0xc6, 0x21, 0x03, 0x06, 0x70, 0x7f, 0x5e, 0x74, - 0x78, 0x06, 0x88, 0x37, 0x58, 0x3b, 0xe8, 0x15, 0xc6, 0x74, 0xb3, 0x06, - 0x90, 0x81, 0x5a, 0x07, 0x23, 0x7f, 0xe9, 0x06, 0xa1, 0xff, 0x45, 0x28, - 0x28, 0x3b, 0x35, 0x04, 0x46, 0x28, 0x3b, 0x4f, 0x05, 0xe8, 0x35, 0xc8, - 0x07, 0x74, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x29, 0x3c, 0x28, 0x34, 0x3c, - 0x29, 0x29, 0x12, 0x41, 0x3d, 0x3f, 0x20, 0x05, 0x29, 0x29, 0x01, 0x2f, - 0xff, 0x6c, 0x46, 0x1a, 0x88, 0x3b, 0xa4, 0x30, 0xb9, 0x06, 0x48, 0x35, - 0x9f, 0xf7, 0x69, 0x23, 0x00, 0x74, 0x2f, 0xf9, 0x65, 0x00, 0x72, 0x06, - 0x2f, 0xfb, 0x3e, 0xf7, 0x5b, 0x69, 0x2f, 0xf7, 0x73, 0x06, 0x68, 0x3d, - 0x98, 0x3b, 0x69, 0x2f, 0xfd, 0x06, 0x3e, 0x77, 0x7b, 0x76, 0x40, 0x79, - 0x51, 0x7f, 0x06, 0x18, 0x3f, 0x51, 0x7f, 0x7a, 0x06, 0x68, 0xb9, 0x38, - 0x3b, 0x21, 0xeb, 0x58, 0x06, 0xd8, 0x3b, 0x04, 0xc7, 0xa4, 0xc2, 0x06, - 0xd8, 0x3b, 0xe3, 0x33, 0x7f, 0x32, 0xff, 0x06, 0x73, 0x7f, 0xed, 0x00, - 0xe7, 0x06, 0x81, 0xff, 0x58, 0x3b, 0x47, 0x39, 0x28, 0x3d, 0x30, 0x04, - 0x40, 0x06, 0x28, 0x41, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x00, - 0x2a, 0x3d, 0x3c, 0x32, 0x3c, 0x3d, 0x2a, 0x2a, 0x12, 0x42, 0x3e, 0x3e, - 0x20, 0x05, 0x2a, 0x2a, 0x01, 0x2f, 0xff, 0x6d, 0x82, 0x7d, 0x6c, 0xc8, - 0x30, 0xeb, 0x30, 0xb3, 0x06, 0xa8, 0x3b, 0x54, 0x8a, 0x2f, 0xf7, 0x72, - 0x00, 0x6b, 0x2f, 0xf7, 0x79, 0x06, 0xa0, 0x7f, 0x71, 0xc5, 0x48, 0x41, - 0x06, 0x38, 0x3d, 0x54, 0x00, 0xfc, 0x60, 0xff, 0x69, 0x06, 0xa1, 0x7f, - 0xe8, 0x38, 0xbf, 0x06, 0x5f, 0xf9, 0x91, 0x7f, 0xed, 0x06, 0x4e, 0x79, - 0x1f, 0x57, 0x33, 0x30, 0x80, 0x76, 0x73, 0x0c, 0x06, 0x2f, 0xfe, 0x30, - 0xd1, 0xa4, 0xd0, 0xc7, 0x06, 0xb8, 0xbb, 0x73, 0x7f, 0x69, 0x00, 0x6a, - 0x06, 0x62, 0xff, 0x93, 0x7f, 0x06, 0x3a, 0x3f, 0x17, 0x22, 0x04, 0x43, - 0x28, 0x33, 0x46, 0x06, 0x28, 0x35, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0x90, - 0x7f, 0x00, 0x2b, 0x3e, 0x3f, 0x3e, 0x3e, 0x3e, 0x2b, 0x2b, 0x12, 0x3b, - 0x3f, 0x37, 0x20, 0x05, 0x2b, 0x2b, 0x01, 0x2f, 0xff, 0x6e, 0x80, 0x7b, - 0x5e, 0xa4, 0x30, 0xae, 0x30, 0xea, 0x30, 0xb9, 0xb4, 0x06, 0x88, 0x3d, - 0x55, 0x2c, 0xe7, 0x3c, 0xf7, 0x65, 0x2c, 0xed, 0x20, 0x00, 0x44, 0x4b, - 0x2f, 0x7d, 0x6e, 0x00, 0x67, 0x2c, 0xf9, 0x6f, 0x00, 0x55, 0x6d, 0x05, - 0x4f, 0xff, 0x52, 0x20, 0x69, 0x79, 0x2f, 0x6f, 0x75, 0x20, 0x6f, 0x1b, - 0x65, 0x00, 0x2d, 0x60, 0x8f, 0x05, 0x9f, 0xff, 0x56, 0x4f, 0xef, 0x38, - 0x39, 0xab, 0x31, 0x07, 0x67, 0x41, 0x09, 0x73, 0x41, 0x09, 0xf6, 0x60, - 0x11, 0x50, 0x1d, 0xd5, 0x37, 0xdd, 0x04, 0x50, 0xff, 0x65, 0x21, 0x6f, - 0x6e, 0x21, 0x6f, 0x20, 0x81, 0x8b, 0x7e, 0x6f, 0x05, 0xaf, 0xff, 0x30, - 0x7f, 0x31, 0xf3, 0x90, 0x7f, 0x31, 0xfb, 0x05, 0x9f, 0xff, 0xf1, 0x10, - 0x82, 0xfd, 0x56, 0x06, 0xb7, 0xbb, 0x01, 0xc6, 0x6d, 0xad, 0xf5, 0x06, - 0xb8, 0x3b, 0x72, 0x7f, 0x52, 0x7d, 0x53, 0x83, 0x6f, 0x43, 0x93, 0x6e, - 0x2b, 0xd1, 0x50, 0x72, 0x48, 0x53, 0x6b, 0x0c, 0xa1, 0xff, 0x12, 0x04, - 0x35, 0x04, 0x41, 0x3b, 0x28, 0x39, 0x3a, 0x04, 0x3e, 0x04, 0x31, 0x28, - 0x45, 0x01, 0x38, 0x04, 0x42, 0x04, 0x30, 0x04, 0x3d, 0x05, 0x88, 0x4b, - 0xc0, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x2c, 0x3f, 0x33, 0x41, - 0x2f, 0x32, 0x00, 0x2c, 0x2c, 0x3d, 0x34, 0x0a, 0x3f, 0x2c, 0x2c, 0x24, - 0x2c, 0x2c, 0x01, 0x2f, 0xff, 0x6f, 0x01, 0x6f, 0xff, 0xb6, 0x30, 0x05, - 0xf3, 0x30, 0xd3, 0x30, 0xa2, 0x06, 0x88, 0x3b, 0x5a, 0x2e, 0xed, 0x1c, - 0x6d, 0x00, 0x62, 0x06, 0x6e, 0xf5, 0xb0, 0x7f, 0x06, 0x3d, 0x75, 0x00, - 0x00, 0x60, 0x53, 0x07, 0x80, 0xff, 0x0e, 0x50, 0x7f, 0x5e, 0x8d, 0xd4, - 0x6b, 0x9a, 0x40, 0x4e, 0x06, 0x9f, 0xf9, 0xa0, 0xc7, 0x44, 0xbe, 0x44, - 0xc5, 0xd5, 0x06, 0x98, 0xbd, 0x07, 0x13, 0x7f, 0xe2, 0x06, 0xc3, 0xff, - 0x17, 0x28, 0x29, 0x3c, 0x28, 0x35, 0xe0, 0x05, 0x78, 0x2b, 0x0f, 0xf3, - 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x2d, 0x41, 0x41, 0x2f, 0x41, 0x02, 0x41, - 0x2d, 0x2d, 0x3e, 0x41, 0x13, 0x20, 0x05, 0x2d, 0x54, 0x2d, 0x01, 0x2f, - 0xff, 0x70, 0x78, 0x3b, 0xb8, 0x28, 0x3b, 0xd0, 0x30, 0x16, 0xd6, 0x30, - 0xa8, 0x06, 0x68, 0x3d, 0x5a, 0x2f, 0xe5, 0x38, 0x3b, 0x61, 0xb6, 0x28, - 0x3f, 0x77, 0x06, 0x27, 0xbf, 0x06, 0xf0, 0x7f, 0x53, 0x0e, 0xe0, 0xff, - 0xb1, 0xff, 0x75, 0x80, 0x06, 0x29, 0xbf, 0x25, 0x6d, 0xf4, 0x5d, 0x03, - 0x5e, 0xe6, 0x40, 0x97, 0x06, 0x7f, 0xfb, 0xd0, 0xc9, 0x14, 0xbc, 0x0c, - 0xbe, 0x35, 0xe8, 0xc6, 0x06, 0x9b, 0xbb, 0x07, 0xb1, 0xff, 0xe9, 0x06, - 0x28, 0x3b, 0x38, 0x48, 0x3b, 0x47, 0x30, 0x28, 0x3f, 0x32, 0x04, 0x35, - 0x06, 0x08, 0x3f, 0x0e, 0xf4, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x00, 0x2e, - 0x42, 0x42, 0x34, 0x42, 0x42, 0x2e, 0x2e, 0x12, 0x3f, 0x42, 0x14, 0x20, - 0x05, 0x2e, 0x2e, 0x01, 0x2f, 0xff, 0x71, 0x82, 0x78, 0x3b, 0xa2, 0x30, - 0xbc, 0x30, 0xeb, 0x28, 0x3d, 0xa4, 0x0c, 0x30, 0xb8, 0x30, 0xe3, 0x28, - 0x47, 0x05, 0xff, 0xfc, 0x41, 0x00, 0x51, 0x7a, 0x2f, 0xf1, 0x72, 0x48, - 0x3d, 0x69, 0x00, 0x6a, 0x2f, 0x85, 0x44, 0x6e, 0x06, 0x80, 0x7f, 0xef, - 0x00, 0x64, 0x06, 0x00, 0x81, 0x41, 0x00, 0x51, 0x73, 0xa0, 0xff, 0x64, - 0x20, 0x0d, 0x63, 0x00, 0x68, 0x05, 0xa1, 0x05, 0xb8, 0xd1, 0x7f, 0x67, - 0x4f, 0xff, 0x05, 0xd0, 0xff, 0xb1, 0xff, 0x79, 0x00, 0xe1, 0x80, 0x05, - 0xe1, 0xff, 0x3f, 0x96, 0x5e, 0x58, 0xdc, 0x62, 0x86, 0x40, 0x75, 0x06, - 0x7f, 0xf9, 0x44, 0xc5, 0x1c, 0xc8, 0x74, 0xb9, 0x03, 0x14, 0xbc, 0x74, - 0xc7, 0x94, 0xc7, 0x06, 0x3f, 0xf8, 0x93, 0x7f, 0x58, 0x65, 0x42, 0x7f, - 0x7a, 0x05, 0xe3, 0x83, 0xf3, 0xff, 0xe3, 0x00, 0x6f, 0x8a, 0x05, 0xcf, - 0xfe, 0x10, 0x04, 0x37, 0x28, 0x31, 0x40, 0x48, 0x3d, 0x39, 0x0b, 0x04, - 0x34, 0x04, 0x36, 0x28, 0x45, 0x3d, 0x05, 0xa8, 0x41, 0x07, 0xb4, 0xff, - 0x80, 0x10, 0x0e, 0x30, 0x7f, 0x2f, 0x04, 0x06, 0x02, 0x04, 0x05, 0x2f, - 0x21, 0x2f, 0x03, 0x20, 0x06, 0x2f, 0x2f, 0x2f, 0x2f, 0x01, 0x2f, 0xff, - 0x40, 0x72, 0x78, 0x3b, 0xe2, 0x30, 0xfc, 0x30, 0xea, 0x30, 0x06, 0xbf, - 0x30, 0xcb, 0x30, 0xa2, 0x06, 0x08, 0x37, 0x3f, 0xff, 0x4d, 0xa3, 0x2f, - 0xf1, 0x75, 0x28, 0x3b, 0x69, 0x00, 0x74, 0x48, 0x37, 0x36, 0xbb, 0xef, - 0x06, 0xd0, 0x7f, 0x05, 0xdf, 0xfb, 0x70, 0xff, 0x65, 0xa0, 0x7f, 0x05, - 0xb9, 0x3d, 0x08, 0x11, 0x7f, 0x05, 0xd1, 0xff, 0x00, 0xdb, 0x6b, 0xcc, - 0x91, 0x54, 0x58, 0x3c, 0x5c, 0x20, 0x9a, 0x4e, 0x06, 0x5f, 0xf9, 0xa8, - 0xba, 0xac, 0xb9, 0xc0, 0x1a, 0xd0, 0xc8, 0xb2, 0x06, 0x78, 0xbb, 0x00, - 0x13, 0x7f, 0xeb, 0x06, 0x83, 0xff, 0xe2, 0xa8, 0x06, 0x23, 0xff, 0x1c, - 0x28, 0x33, 0x32, 0x28, 0x3b, 0x38, 0x04, 0x42, 0x8e, 0x48, 0x35, 0x38, - 0x04, 0x4f, 0x05, 0xa8, 0x39, 0x0f, 0x13, 0x7f, 0x10, 0x06, 0xf0, 0xff, - 0x30, 0x00, 0x26, 0x26, 0x20, 0x24, 0x27, 0x30, 0x30, 0x23, 0x02, 0x29, - 0x20, 0x26, 0x30, 0x30, 0x30, 0x01, 0x38, 0x03, 0x73, 0xbb, 0x78, 0x3b, - 0xde, 0x28, 0x39, 0x06, 0x7d, 0x73, 0x78, 0x3b, 0x6c, 0x2f, 0x71, 0x10, - 0x0e, 0xd0, 0x7f, 0x42, 0xed, 0x06, 0x82, 0x82, 0x6c, 0x9a, 0xcc, 0x91, - 0x06, 0xb2, 0xff, 0xd0, 0x1b, 0xb9, 0xac, 0xb9, 0x10, 0x06, 0xb3, 0x7f, - 0x38, 0x3b, 0x3b, 0x28, 0x39, 0x10, 0x16, 0xd4, 0xff, 0x80, 0x06, 0x96, - 0xff, 0x31, 0x24, 0x24, 0x1e, 0x22, 0x25, 0x31, 0x00, 0x31, 0x20, 0x27, - 0x22, 0x24, 0x31, 0x31, 0x31, 0x50, 0x31, 0x01, 0x2f, 0xff, 0x74, 0x78, - 0x3b, 0xcb, 0x30, 0xb8, 0x30, 0x05, 0xa7, 0x30, 0xfc, 0x30, 0xeb, 0x06, - 0x68, 0x41, 0x4e, 0x2f, 0xf1, 0x5a, 0x67, 0x2f, 0xeb, 0x72, 0x06, 0x6d, - 0x78, 0x10, 0x07, 0x10, 0x7f, 0xed, 0x06, 0xc1, 0xff, 0x3c, 0x04, 0x5c, - 0xe5, 0x65, 0x14, 0x5c, 0x06, 0x9b, 0x3d, 0xc8, 0xb2, 0x1a, 0x1c, 0xc8, - 0x74, 0x06, 0xa8, 0x3d, 0x0e, 0xf1, 0xff, 0x1d, 0x28, 0x37, 0x33, 0x0e, - 0x04, 0x35, 0x04, 0x40, 0x06, 0x68, 0x3d, 0x10, 0x0f, 0x14, 0xff, 0x06, - 0xd6, 0xff, 0x32, 0x00, 0x2d, 0x2b, 0x28, 0x29, 0x2c, 0x32, 0x32, 0x2a, - 0x01, 0x2e, 0x28, 0x2d, 0x32, 0x32, 0x32, 0x32, 0x01, 0x2f, 0xff, 0x41, - 0x75, 0x78, 0x3b, 0xc1, 0x30, 0xe3, 0x30, 0xc9, 0x06, 0x68, 0x37, 0x8a, - 0x3f, 0xff, 0x43, 0x00, 0x68, 0x2f, 0xf9, 0x64, 0x06, 0x8f, 0xf7, 0x54, - 0x22, 0x00, 0x63, 0x06, 0xc0, 0x81, 0x54, 0x00, 0x73, 0x06, 0xc0, 0x81, - 0x43, 0xe1, 0x2e, 0x73, 0x06, 0xb1, 0x7f, 0x06, 0xf1, 0xff, 0x4d, 0x4e, - 0x97, 0x5f, 0x06, 0xbf, 0xf7, 0x0d, 0x28, 0xcc, 0xdc, 0xb4, 0x06, 0xb0, - 0x7f, 0x32, 0x7f, 0x6a, 0x2f, 0xfb, 0xd0, 0x06, 0x92, 0x7f, 0x53, 0xff, - 0x65, 0x06, 0x6f, 0xf8, 0x27, 0x04, 0x30, 0x04, 0x70, 0x34, 0x06, 0x68, - 0x37, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x33, 0x09, 0x3e, 0x3c, - 0x00, 0x09, 0x0a, 0x33, 0x33, 0x39, 0x0b, 0x3b, 0x09, 0x0a, 0x33, 0x33, - 0x33, 0x33, 0x01, 0x2f, 0xff, 0x76, 0x78, 0x3b, 0xb9, 0x02, 0x30, 0xfc, - 0x30, 0xc0, 0x30, 0xf3, 0x06, 0x88, 0x3d, 0x53, 0x22, 0x00, 0x75, 0x28, - 0x39, 0x61, 0x00, 0x6e, 0x06, 0x80, 0x7f, 0x6f, 0xe8, 0x06, 0xc0, 0x81, - 0x07, 0x10, 0xff, 0x07, 0x30, 0x7f, 0xe1, 0x06, 0x81, 0xff, 0xcf, 0x82, - 0x39, 0x43, 0x4e, 0x06, 0xb8, 0x3b, 0x18, 0xc2, 0xe8, 0xb2, 0x06, 0xb8, - 0xbb, 0x32, 0xff, 0x58, 0x65, 0x07, 0x02, 0xff, 0xe3, 0x23, 0x85, 0x06, - 0x5f, 0xf7, 0x21, 0x04, 0x43, 0x8e, 0x28, 0x3b, 0x30, 0x04, 0x3d, 0x06, - 0x68, 0x3f, 0x0f, 0x53, 0xff, 0x10, 0x06, 0x90, 0xff, 0x34, 0x00, 0x3a, - 0x3a, 0x3a, 0x3a, 0x3b, 0x34, 0x34, 0x35, 0x01, 0x3c, 0x36, 0x3a, 0x34, - 0x34, 0x34, 0x34, 0x01, 0x2f, 0xff, 0x41, 0x77, 0x78, 0x3b, 0xa8, 0x30, - 0xea, 0x30, 0xc8, 0x20, 0x03, 0x45, 0xa2, 0x06, 0x68, 0x3d, 0x45, 0x00, - 0x72, 0x2e, 0xf9, 0x74, 0x20, 0x05, 0x6a, 0x65, 0x2f, 0xfd, 0x06, 0x1f, - 0xfc, 0xc9, 0x20, 0x7f, 0x79, 0x20, 0x7f, 0x68, 0xb8, 0x20, 0x87, 0xe9, - 0x06, 0x2c, 0xfd, 0x06, 0xf0, 0xff, 0x0e, 0xf0, 0x7f, 0x84, 0x53, 0xcb, - 0x02, 0x7a, 0x79, 0x72, 0xcc, 0x91, 0x9a, 0x06, 0x68, 0x41, 0xd0, 0x00, - 0xc5, 0xac, 0xb9, 0xb8, 0xd2, 0x08, 0xb8, 0x44, 0x68, 0xc5, 0x0e, 0x53, - 0x7f, 0xb3, 0xff, 0x69, 0x06, 0x24, 0x01, 0x2d, 0x04, 0x40, 0x08, 0x04, - 0x38, 0x04, 0x42, 0x20, 0x05, 0x35, 0x04, 0x4f, 0xe0, 0x06, 0x28, 0x3f, - 0x10, 0x06, 0xf3, 0xff, 0x0e, 0xf5, 0x7f, 0x35, 0x0f, 0x0f, 0x0b, 0x0d, - 0x00, 0x0e, 0x35, 0x35, 0x0c, 0x10, 0x40, 0x0f, 0x35, 0x14, 0x35, 0x35, - 0x35, 0x01, 0x2f, 0xff, 0x78, 0x78, 0x3b, 0xb8, 0x30, 0x18, 0xd6, 0x30, - 0xc1, 0x06, 0x68, 0x37, 0x3f, 0xff, 0x44, 0x00, 0x6a, 0xac, 0x28, 0x3b, - 0x62, 0x4f, 0xfd, 0x74, 0x28, 0x45, 0x0e, 0x10, 0x7f, 0x73, 0x00, 0x76, - 0x63, 0x28, 0xb9, 0x31, 0x03, 0x06, 0x31, 0x01, 0x47, 0x06, 0x80, 0x79, - 0x5f, 0xff, 0x59, 0x81, 0x06, 0xe0, 0x7f, 0x09, 0x54, 0x03, 0x5e, 0xd0, - 0x63, 0x06, 0x9f, 0xf9, 0x02, 0xc0, 0xc9, 0x80, 0xbd, 0xf0, 0xd2, 0x10, - 0x06, 0x93, 0x7f, 0x14, 0x22, 0x04, 0x36, 0x28, 0x3b, 0x31, 0x04, 0x43, - 0x28, 0x3f, 0x38, 0xe0, 0x06, 0x28, 0x3b, 0x0f, 0x14, 0xff, 0x10, 0x06, - 0xd0, 0xff, 0x36, 0x0e, 0x0e, 0x0a, 0x13, 0x00, 0x40, 0x36, 0x36, 0x0a, - 0x0f, 0x12, 0x0e, 0x36, 0x14, 0x36, 0x36, 0x36, 0x01, 0x2f, 0xff, 0x79, - 0x78, 0x3b, 0xbd, 0x30, 0x05, 0xde, 0x30, 0xea, 0x30, 0xa2, 0x06, 0x88, - 0x3d, 0x53, 0x28, 0x35, 0x5b, 0x6d, 0x2f, 0x71, 0x6c, 0x06, 0x4c, 0x75, - 0xd0, 0x7f, 0x65, 0x0e, 0xe0, 0xff, 0x0e, 0x30, 0x7f, 0x02, 0x22, 0x7d, - 0x6c, 0x9a, 0xcc, 0x91, 0x06, 0x9b, 0x3b, 0x8c, 0x01, 0xc1, 0xd0, 0xb9, - 0xac, 0xb9, 0x44, 0xc5, 0x07, 0x33, 0x7f, 0x50, 0xeb, 0x06, 0x83, 0xff, - 0xe1, 0x06, 0x83, 0xff, 0x21, 0x04, 0x3e, 0x04, 0x07, 0x3c, 0x04, 0x30, - 0x04, 0x3b, 0x06, 0x48, 0x39, 0x10, 0x07, 0x13, 0xff, 0x0e, 0xf5, 0x7f, - 0x00, 0x37, 0x37, 0x39, 0x37, 0x37, 0x38, 0x37, 0x37, 0x06, 0x36, 0x3a, - 0x35, 0x37, 0x37, 0x20, 0x01, 0x01, 0x2f, 0xff, 0x7a, 0x80, 0x78, 0x3b, - 0xa2, 0x30, 0xf3, 0x30, 0xc9, 0x30, 0xe9, 0x82, 0x06, 0x88, 0x3b, 0x41, - 0x00, 0x6e, 0x00, 0x64, 0x2f, 0xf5, 0x72, 0xfc, 0x20, 0x01, 0x06, 0x38, - 0x3b, 0xb0, 0x7f, 0x06, 0x38, 0x3b, 0x07, 0xb0, 0xff, 0x0e, 0x30, 0x7f, - 0x89, 0x5b, 0x08, 0x53, 0x90, 0x14, 0x5c, 0x06, 0x9f, 0xf7, 0x48, 0xc5, - 0xc4, 0x18, 0xb3, 0x7c, 0xb7, 0x06, 0x98, 0xbb, 0x0e, 0xf2, 0x7f, 0x10, - 0x04, 0x3d, 0x2b, 0x04, 0x34, 0x28, 0x3f, 0x40, 0x20, 0x01, 0x30, 0x06, - 0x28, 0x3d, 0x10, 0x06, 0xf3, 0xff, 0x80, 0x0e, 0xf5, 0x7f, 0x38, 0x01, - 0x03, 0x01, 0x01, 0x02, 0x38, 0x81, 0x20, 0x06, 0x04, 0x01, 0x38, 0x38, - 0x38, 0x38, 0x01, 0x2f, 0xff, 0x44, 0x7b, 0x78, 0x3b, 0xb8, 0x30, 0xd6, - 0x28, 0x39, 0xeb, 0x30, 0x6a, 0xbf, 0x20, 0x03, 0x06, 0x3d, 0x7d, 0x47, - 0x2f, 0xef, 0x62, 0x48, 0x37, 0x6c, 0x2a, 0x00, 0x74, 0x2f, 0xff, 0x72, - 0x10, 0x06, 0x40, 0x7f, 0x69, 0x41, 0x7d, 0x65, 0xc0, 0x06, 0x29, 0xc1, - 0x06, 0xf1, 0xff, 0xf4, 0x76, 0x03, 0x5e, 0x57, 0x7f, 0x20, 0x40, 0x96, - 0x06, 0x7f, 0xf7, 0xc0, 0xc9, 0x0c, 0xbe, 0x64, 0x18, 0xb8, 0x30, 0xd1, - 0x06, 0x7b, 0xbb, 0x0e, 0xf3, 0x7f, 0x13, 0x04, 0x38, 0x22, 0x04, 0x31, - 0x48, 0x37, 0x3b, 0x04, 0x42, 0x28, 0x3d, 0x40, 0xe0, 0x05, 0xe8, 0x3f, - 0x10, 0x07, 0x54, 0xff, 0x0e, 0x96, 0x7f, 0x39, 0x14, 0x14, 0x0f, 0x12, - 0x00, 0x15, 0x39, 0x39, 0x10, 0x17, 0x0e, 0x14, 0x39, 0x14, 0x39, 0x39, - 0x39, 0x01, 0x2f, 0xff, 0x7c, 0x78, 0x3b, 0xac, 0x30, 0x05, 0xfc, 0x30, - 0xf3, 0x30, 0xb8, 0x20, 0x05, 0xf6, 0x06, 0x4d, 0x7d, 0x11, 0x47, 0x00, - 0x75, 0x46, 0xb3, 0x6e, 0x00, 0x73, 0x2f, 0xf7, 0x5c, 0x79, 0x06, 0xa0, - 0x7f, 0x65, 0x06, 0x40, 0x81, 0x07, 0x90, 0xff, 0x0e, 0x50, 0x7f, 0x39, - 0x68, 0x20, 0x7f, 0x89, 0x06, 0x9f, 0xf5, 0x00, 0x00, 0x74, 0xac, 0xc0, - 0x06, 0xc9, 0x20, 0x00, 0x2c, 0xc1, 0x06, 0x98, 0x3b, 0x0e, 0xd2, 0x7f, - 0x13, 0x23, 0x04, 0x35, 0x28, 0x39, 0x3d, 0x04, 0x41, 0x28, 0x43, 0x10, - 0x06, 0x31, 0x7f, 0x80, 0x10, 0x06, 0xf4, 0xff, 0x3a, 0x16, 0x16, 0x11, - 0x15, 0x17, 0x3a, 0x00, 0x3a, 0x12, 0x19, 0x0d, 0x16, 0x3a, 0x3a, 0x3a, - 0x57, 0x3a, 0x01, 0x2f, 0xff, 0x7d, 0x78, 0x3b, 0xde, 0x28, 0x39, 0x06, - 0x58, 0x35, 0x5f, 0xff, 0x50, 0x49, 0x28, 0x33, 0x6c, 0x2e, 0xf1, 0x20, - 0x00, 0x6f, 0x00, 0x55, 0x66, 0x20, 0x05, 0x4d, 0x2f, 0xfb, 0x6e, 0x05, - 0xaf, 0xfb, 0xce, 0x60, 0x7d, 0x7a, 0x64, 0x40, 0x83, 0x05, 0xf0, 0x7d, - 0x07, 0x10, 0xff, 0x31, 0x7f, 0x6f, 0x2f, 0xf3, 0x61, 0xbc, 0x41, 0x03, - 0x69, 0x06, 0x01, 0x81, 0x51, 0xff, 0x50, 0x7d, 0x06, 0x31, 0x81, 0x6c, - 0x9a, 0x12, 0x69, 0x60, 0x9b, 0x06, 0xa2, 0xff, 0xe8, 0xb9, 0x06, 0xb8, - 0x39, 0x00, 0xc4, 0x06, 0x22, 0xf1, 0xf3, 0xff, 0x6c, 0x00, 0x68, 0x06, - 0xa1, 0xff, 0x1c, 0x04, 0x41, 0x4d, 0x28, 0x39, 0x20, 0x00, 0x28, 0x00, - 0x3e, 0x28, 0x3f, 0x41, 0x42, 0x28, 0x47, 0x3e, 0x04, 0x32, 0x04, 0x29, - 0x0d, 0xc3, 0xff, 0x80, 0x10, 0x0e, 0xb0, 0x7f, 0x3b, 0x1b, 0x18, 0x15, - 0x19, 0x1b, 0x3b, 0x09, 0x3b, 0x22, 0x1b, 0x26, 0x20, 0x05, 0x3b, 0x3b, - 0x01, 0x2f, 0xff, 0x40, 0x7e, 0x78, 0x3b, 0xb8, 0x30, 0xe3, 0x30, 0xfc, - 0x30, 0x6e, 0xb8, 0x20, 0x03, 0x06, 0x58, 0x41, 0x4a, 0x4f, 0xf5, 0x06, - 0x5f, 0x73, 0x10, 0x0f, 0x30, 0x7f, 0xfd, 0x10, 0x6c, 0x7f, 0x89, 0x06, - 0xa7, 0x3a, 0x00, 0x00, 0xc8, 0xc0, 0x6b, 0xc9, 0x06, 0xb8, 0x3d, 0x07, - 0x13, 0x7f, 0xe9, 0x43, 0xff, 0x69, 0x2c, 0x33, 0x06, 0x3f, 0xf7, 0x04, - 0x14, 0x04, 0x36, 0x04, 0x35, 0x28, 0x31, 0x41, 0x04, 0x20, 0x38, 0x04, - 0x10, 0x1e, 0x34, 0xff, 0x3c, 0x1d, 0x1d, 0x17, 0x1b, 0x00, 0x1e, 0x3c, - 0x3c, 0x18, 0x20, 0x11, 0x1d, 0x3c, 0x14, 0x3c, 0x3c, 0x3c, 0x01, 0x2f, - 0xff, 0x7f, 0x78, 0x3b, 0xe2, 0x30, 0x0a, 0xca, 0x30, 0xb3, 0x30, 0x06, - 0xbc, 0xf7, 0x6f, 0x2f, 0xe9, 0x61, 0x3a, 0x00, 0x63, 0x2f, 0x77, 0x10, - 0x06, 0xf0, 0x7f, 0x3d, 0x7d, 0x50, 0x29, 0xc9, 0x69, 0xaa, 0x2f, 0xf9, - 0x63, 0x25, 0xcd, 0x70, 0x2e, 0x93, 0x74, 0x40, 0x17, 0x64, 0xc4, 0x25, - 0xdb, 0x04, 0x5d, 0x8b, 0x4d, 0x00, 0xf3, 0x06, 0xc1, 0xff, 0x69, 0x64, - 0x08, 0xb3, 0x7e, 0xe5, 0x54, 0x06, 0x9f, 0xf7, 0xa8, 0xba, 0x98, 0x18, - 0xb0, 0x54, 0xcf, 0x0e, 0xb3, 0x7f, 0x06, 0xd1, 0xff, 0x1c, 0x04, 0x3e, - 0x03, 0x04, 0x3d, 0x04, 0x30, 0x04, 0x3a, 0x20, 0x07, 0x10, 0x0e, 0xf4, - 0xff, 0x80, 0x0e, 0x36, 0xff, 0x3d, 0x27, 0x27, 0x22, 0x25, 0x28, 0x3d, - 0x00, 0x3d, 0x24, 0x2b, 0x25, 0x27, 0x3d, 0x3d, 0x3d, 0x48, 0x3d, 0x01, - 0x2f, 0xff, 0xa9, 0x22, 0x6f, 0xff, 0xa4, 0x30, 0xf3, 0x2f, 0x30, 0xc9, - 0x06, 0xa8, 0x3b, 0x49, 0x28, 0x39, 0x36, 0x99, 0x06, 0x5c, 0x75, 0x70, - 0x7f, 0x5c, 0x65, 0x07, 0x00, 0xff, 0x65, 0x29, 0x41, 0x0e, 0x91, 0x7f, - 0x06, 0x91, 0xff, 0x70, 0x53, 0x20, 0xa6, 0x5e, 0x06, 0x9b, 0x39, 0x00, - 0x00, 0x78, 0xc7, 0xc4, 0x6a, 0xb3, 0x06, 0xb0, 0x7f, 0x06, 0xf3, 0x7f, - 0xcd, 0x06, 0xe3, 0xff, 0x18, 0x28, 0x39, 0x34, 0x0e, 0x04, 0x38, 0x04, - 0x4f, 0x06, 0x48, 0x39, 0x0f, 0x13, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x3e, - 0x00, 0x19, 0x19, 0x12, 0x16, 0x19, 0x3e, 0x3e, 0x16, 0x24, 0x1c, 0x15, - 0x20, 0x05, 0x3e, 0x3e, 0x01, 0x2f, 0xff, 0xb8, 0x01, 0xa0, 0x6f, 0xff, - 0xb5, 0x28, 0x3b, 0xde, 0x30, 0xea, 0x30, 0xce, 0xab, 0x06, 0x68, 0x3f, - 0x53, 0x2f, 0xf3, 0x6e, 0x2e, 0xf1, 0x4d, 0x2f, 0xfb, 0x5e, 0xf1, 0xe3, - 0x05, 0xdf, 0xff, 0x30, 0x7f, 0x3f, 0x67, 0x74, 0x00, 0x2d, 0xa0, 0x83, - 0x0d, 0xd0, 0xff, 0x80, 0x0e, 0xb0, 0x7f, 0x23, 0x57, 0x6c, 0x9a, 0x9b, - 0x52, 0xfa, 0x40, 0x8b, 0x06, 0x7f, 0xf9, 0xb0, 0xc0, 0xc8, 0xb9, 0xac, - 0xb9, 0x36, 0x78, 0xb1, 0x06, 0x7b, 0xbd, 0x07, 0x13, 0x7f, 0xe3, 0x2f, - 0x79, 0xb3, 0xff, 0x68, 0x88, 0x05, 0xcf, 0x81, 0x21, 0x04, 0x30, 0x28, - 0x3d, 0x2d, 0x00, 0x1c, 0xa3, 0x20, 0x07, 0x40, 0x28, 0x43, 0x3d, 0x04, - 0x3e, 0x05, 0xc8, 0x45, 0x10, 0x06, 0xf3, 0xff, 0x80, 0x0e, 0xf5, 0x7f, - 0x3f, 0x33, 0x35, 0x30, 0x33, 0x36, 0x3f, 0x00, 0x3f, 0x31, 0x38, 0x30, - 0x33, 0x3f, 0x3f, 0x3f, 0x50, 0x3f, 0x01, 0x2f, 0xff, 0xb9, 0x78, 0x3b, - 0xd0, 0x30, 0xc1, 0x30, 0x6a, 0xab, 0x28, 0x3f, 0x06, 0x7f, 0x78, 0x56, - 0x2e, 0xf1, 0x74, 0x2f, 0x77, 0x63, 0xa3, 0x68, 0x43, 0x43, 0x2f, 0x83, - 0x74, 0x00, 0x79, 0x06, 0x60, 0x7f, 0x06, 0x90, 0xff, 0x55, 0x6b, 0x49, - 0x43, 0x73, 0x28, 0xc3, 0x61, 0x2f, 0x87, 0x74, 0x06, 0x61, 0x7f, 0xa2, - 0x35, 0xc5, 0x28, 0x61, 0x83, 0x74, 0x00, 0xe0, 0x29, 0xd3, 0x64, 0x03, - 0x00, 0x65, 0x00, 0x6c, 0x00, 0x29, 0x05, 0x80, 0x7f, 0x05, 0xff, 0xff, - 0x02, 0xb5, 0x68, 0x82, 0x84, 0x88, 0x51, 0x06, 0x9f, 0xf9, 0x14, 0x07, - 0xbc, 0xf0, 0xd2, 0x78, 0xce, 0x06, 0x90, 0x7f, 0xb3, 0x7f, 0xb2, 0x81, - 0xab, 0x06, 0xb2, 0x7f, 0x63, 0x2f, 0x87, 0x64, 0x43, 0x07, 0x65, 0x04, - 0xa2, 0x79, 0x5f, 0xff, 0x57, 0x12, 0x28, 0x3b, 0x42, 0x28, 0x33, 0x3a, - 0x48, 0x43, 0x0e, 0xf4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x20, 0x40, 0x40, - 0x20, 0x01, 0x3f, 0x40, 0x40, 0x3c, 0x40, 0x64, 0x09, 0x40, 0x0a, 0x01, - 0x2f, 0xff, 0x41, 0x08, 0x6f, 0xff, 0xaa, 0x30, 0x00, 0xfc, 0x30, 0xb9, - 0x30, 0xc8, 0x30, 0xe9, 0x30, 0x11, 0xea, 0x30, 0xa2, 0x06, 0x28, 0x41, - 0x41, 0x00, 0x75, 0x47, 0x31, 0x55, 0x72, 0x2f, 0xff, 0x6c, 0x2f, 0xf3, - 0x61, 0x06, 0xe0, 0x7f, 0x65, 0x07, 0x00, 0x7f, 0xe0, 0x05, 0xd8, 0xc1, - 0x07, 0xf1, 0x7f, 0x05, 0xf1, 0xff, 0xb3, 0x6f, 0x27, 0x59, 0x29, 0x10, - 0x52, 0x9a, 0x4e, 0x06, 0x7f, 0xf7, 0x24, 0xc6, 0xa4, 0xc2, 0x00, 0xb8, - 0xd2, 0x08, 0xb8, 0x7c, 0xc7, 0xac, 0xb9, 0x2a, 0x44, 0xc5, 0x07, 0x13, - 0x7f, 0xeb, 0x06, 0x83, 0xff, 0xe1, 0x06, 0x43, 0xff, 0x10, 0x0a, 0x04, - 0x32, 0x04, 0x41, 0x28, 0x3d, 0x40, 0x28, 0x43, 0x3b, 0xb8, 0x28, 0x43, - 0x4f, 0x05, 0xe8, 0x3f, 0x0e, 0xf3, 0x7f, 0x10, 0x07, 0x00, 0xff, 0x02, - 0x04, 0x03, 0x10, 0x02, 0x03, 0x41, 0x20, 0x06, 0x00, 0x02, 0x41, 0x41, - 0x24, 0x41, 0x41, 0x01, 0x2f, 0xff, 0x5f, 0x10, 0x6f, 0xff, 0xcb, 0x30, - 0x50, 0xe5, 0x28, 0x3d, 0xb8, 0x28, 0x41, 0xe9, 0x30, 0xf3, 0x30, 0x55, - 0xc9, 0x06, 0x08, 0x3d, 0x4e, 0x2e, 0xd7, 0x77, 0x2e, 0xed, 0x5a, 0x2e, - 0xdf, 0xf5, 0x38, 0x3d, 0x3f, 0xfd, 0x05, 0x9c, 0xf5, 0x30, 0x7f, 0x6f, - 0x28, 0xbd, 0x76, 0x4f, 0x5d, 0x57, 0x6c, 0x2f, 0x63, 0x2d, 0x20, 0x89, - 0xe9, 0x80, 0x87, 0x05, 0x18, 0x49, 0x30, 0xff, 0xba, 0x39, 0x3d, 0x65, - 0x4f, 0xdf, 0x05, 0xf0, 0xfd, 0x31, 0x7f, 0x75, 0x2f, 0xed, 0x76, 0xfa, - 0x2f, 0xfd, 0x51, 0x83, 0x71, 0x81, 0x05, 0x79, 0xc3, 0x30, 0x7f, 0x65, - 0x06, 0xa0, 0x7f, 0xb0, 0x04, 0x65, 0x7f, 0x89, 0x70, 0x51, 0x06, 0x9f, - 0xf7, 0x74, 0xb2, 0x02, 0xc8, 0xc9, 0x9c, 0xb7, 0xdc, 0xb4, 0x06, 0x78, - 0xbb, 0x4e, 0xbe, 0x4b, 0x2f, 0x75, 0x23, 0x83, 0x32, 0xf9, 0x06, 0x12, - 0x85, 0x33, 0x7f, 0xb2, 0x7d, 0xe2, 0xc5, 0x43, 0xff, 0x05, 0x9c, 0x43, - 0x1d, 0x04, 0x3e, 0x28, 0x3d, 0x30, 0x28, 0x33, 0x04, 0x20, 0x00, 0x17, - 0x04, 0x35, 0x28, 0x3f, 0x30, 0x04, 0x1c, 0x3d, 0x04, 0x34, 0x05, 0x88, - 0x45, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x42, 0x2c, 0x00, 0x2d, - 0x26, 0x2b, 0x2e, 0x42, 0x42, 0x29, 0x30, 0x02, 0x2a, 0x2c, 0x42, 0x42, - 0x42, 0x42, 0x00, 0xff, 0xff, 0x02, 0x95, 0x5f, 0xff, 0x4d, 0x1b, 0x6f, - 0xff, 0xd5, 0x48, 0x37, 0xb9, 0x06, 0x08, 0x37, 0xa3, 0x7f, 0xff, 0x46, - 0x4f, 0xf5, 0x6e, 0x00, 0x63, 0x06, 0x0f, 0xf5, 0x07, 0xd0, 0x7f, 0x51, - 0x6b, 0x2f, 0xfd, 0x65, 0x2f, 0xfb, 0x63, 0x00, 0x68, 0x06, 0x61, 0x7f, - 0xc2, 0x06, 0x1f, 0xf7, 0x07, 0x30, 0x7f, 0xd5, 0x6c, 0xfd, 0x56, 0x06, - 0x98, 0x3d, 0x00, 0x01, 0x00, 0x04, 0xd5, 0x91, 0xb7, 0xa4, 0xc2, 0x06, - 0x98, 0xbf, 0x8d, 0xb2, 0x7f, 0x69, 0x00, 0x6a, 0x22, 0x87, 0x06, 0x53, - 0xff, 0xe7, 0x06, 0x42, 0x7d, 0x05, 0x00, 0x00, 0x24, 0x04, 0x40, 0x48, - 0x31, 0x46, 0x05, 0x88, 0x31, 0xc0, 0x10, 0x00, 0x54, 0xff, 0x10, 0x06, - 0x70, 0xff, 0x0c, 0x12, 0x13, 0x0e, 0x10, 0x14, 0x00, 0x0c, 0x0c, 0x0f, - 0x16, 0x39, 0x12, 0x0c, 0x0c, 0x24, 0x0c, 0x0c, 0x01, 0x2f, 0xff, 0x6e, - 0x0d, 0x6f, 0xff, 0xa4, 0x30, 0x14, 0xae, 0x30, 0xea, 0x06, 0xa8, 0x3b, - 0x55, 0x2f, 0xe3, 0x69, 0x00, 0x54, 0x74, 0x2f, 0xfb, 0x64, 0x2e, 0xfd, - 0x4b, 0x2d, 0x09, 0x6e, 0x00, 0x45, 0x67, 0x2f, 0xf5, 0x6f, 0x00, 0x6d, - 0x05, 0x4f, 0x83, 0x52, 0x2f, 0x79, 0x57, 0x79, 0x2f, 0xf3, 0x75, 0x20, - 0x6f, 0x65, 0x2d, 0x7f, 0x50, 0x8f, 0x05, 0x9f, 0xfe, 0x75, 0x56, 0x2f, - 0xef, 0x58, 0x35, 0x31, 0x07, 0x67, 0x41, 0x09, 0x73, 0x41, 0x09, 0x6a, - 0xf6, 0x60, 0x11, 0x04, 0xd8, 0x53, 0x52, 0x2f, 0xf9, 0x67, 0x2f, 0xed, - 0x6f, 0xdf, 0x2f, 0xfb, 0x71, 0x8b, 0x6f, 0x05, 0xaf, 0x8a, 0x30, 0x7f, - 0x31, 0xf3, 0x90, 0x7f, 0x31, 0xfb, 0x90, 0x05, 0x9f, 0xff, 0xf1, 0x82, - 0x06, 0xd8, 0x3b, 0x01, 0xc6, 0x6d, 0xad, 0xf7, 0x06, 0xb8, 0xbb, 0x72, - 0x7f, 0x52, 0x7d, 0x53, 0x83, 0x6f, 0x43, 0x93, 0x05, 0x58, 0x4f, 0x06, - 0xf1, 0xff, 0x04, 0x12, 0x04, 0x35, 0x04, 0x3b, 0x28, 0x37, 0x3a, 0x04, - 0x11, 0x3e, 0x04, 0x31, 0x28, 0x47, 0x38, 0x04, 0x42, 0x48, 0x4b, 0xe0, - 0x05, 0x78, 0x49, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x2c, 0x3f, - 0x33, 0x41, 0x2f, 0x00, 0x32, 0x2c, 0x2c, 0x3d, 0x34, 0x0a, 0x3f, 0x2c, - 0x1a, 0x2c, 0x2c, 0x2c, 0x01, 0x24, 0xb1, 0x64, 0xb8, 0x03, 0x60, 0x06, - 0x05, 0x00, 0x2a, 0x03, 0x04, 0x01, 0x01, 0x2c, 0x05, 0x01, 0x00, 0x03, - 0x01, 0x01, 0x01, 0x01, 0x02, 0x05, 0x07, 0x00, 0x04, 0x05, 0x06, 0x02, - 0x02, 0x04, 0x07, 0x05, 0x00, 0x05, 0x02, 0x02, 0x02, 0x02, 0x03, 0x06, - 0x08, 0x00, 0x05, 0x06, 0x07, 0x03, 0x03, 0x05, 0x08, 0x07, 0x00, 0x06, - 0x03, 0x03, 0x03, 0x03, 0x04, 0x07, 0x09, 0x00, 0x06, 0x07, 0x08, 0x04, - 0x04, 0x06, 0x09, 0x08, 0x00, 0x07, 0x04, 0x04, 0x04, 0x04, 0x05, 0x08, - 0x0a, 0x01, 0x07, 0x08, 0x09, 0x05, 0x05, 0x07, 0x0a, 0x20, 0x28, 0x00, - 0x05, 0x05, 0x05, 0x06, 0x0a, 0x0c, 0x18, 0x0b, 0x00, 0x0c, 0x06, 0x06, - 0x19, 0x0d, 0x3a, 0x0a, 0x06, 0x00, 0x06, 0x06, 0x06, 0x07, 0x0b, 0x0b, - 0x42, 0x0a, 0x03, 0x0b, 0x07, 0x07, 0x08, 0x0c, 0x1a, 0x20, 0x05, 0x30, - 0x07, 0x00, 0x31, 0x3d, 0x30, 0x33, 0x08, 0x08, 0x3a, 0x35, 0x00, 0x3d, - 0x0c, 0x08, 0x08, 0x08, 0x08, 0x09, 0x0d, 0x00, 0x0d, 0x08, 0x0c, 0x0d, - 0x09, 0x09, 0x09, 0x0e, 0x40, 0x10, 0x30, 0x05, 0x09, 0x0a, 0x10, 0x11, - 0x0c, 0x0e, 0x00, 0x12, 0x0a, 0x0a, 0x0d, 0x14, 0x41, 0x10, 0x0a, 0x00, - 0x0a, 0x0a, 0x0a, 0x0b, 0x11, 0x12, 0x0d, 0x0f, 0x00, 0x13, 0x0b, 0x0b, - 0x0e, 0x15, 0x38, 0x11, 0x0b, 0x10, 0x0b, 0x0b, 0x0b, 0xf9, 0x2b, 0x0d, - 0x13, 0x02, 0x09, 0x00, 0x11, 0x01, 0x0d, 0x0d, 0x0b, 0x02, 0x0c, 0x13, - 0x00, 0x0d, 0x0d, 0x0d, 0x0d, 0x0e, 0x15, 0x15, 0x10, 0x00, 0x14, 0x16, - 0x0e, 0x0e, 0x11, 0x18, 0x0f, 0x15, 0x00, 0x0e, 0x0e, 0x0e, 0x0e, 0x0f, - 0x17, 0x17, 0x3f, 0x00, 0x3f, 0x18, 0x0f, 0x0f, 0x13, 0x1a, 0x0b, 0x17, - 0x00, 0x0f, 0x0f, 0x0f, 0x0f, 0x10, 0x18, 0x1b, 0x14, 0x00, 0x18, 0x1c, - 0x10, 0x10, 0x15, 0x1e, 0x17, 0x18, 0x00, 0x10, 0x10, 0x10, 0x10, 0x11, - 0x1a, 0x1a, 0x13, 0x01, 0x17, 0x1a, 0x11, 0x11, 0x14, 0x1d, 0x16, 0x20, - 0x05, 0x00, 0x11, 0x11, 0x12, 0x1c, 0x1c, 0x16, 0x1a, 0x1d, 0x00, 0x12, - 0x12, 0x17, 0x1f, 0x19, 0x1c, 0x12, 0x12, 0x00, 0x12, 0x12, 0x13, 0x1e, - 0x1f, 0x1a, 0x1d, 0x20, 0x00, 0x13, 0x13, 0x1b, 0x22, 0x1b, 0x1e, 0x13, - 0x13, 0x00, 0x13, 0x13, 0x14, 0x1f, 0x1e, 0x19, 0x1c, 0x1f, 0x08, 0x14, - 0x14, 0x1a, 0x21, 0x30, 0x05, 0x14, 0x14, 0x15, 0x00, 0x20, 0x20, 0x1b, - 0x1e, 0x21, 0x15, 0x15, 0x1c, 0x00, 0x23, 0x1e, 0x20, 0x15, 0x15, 0x15, - 0x15, 0x16, 0x40, 0x21, 0x20, 0x18, 0x22, 0x16, 0x16, 0x1d, 0x24, 0x1d, - 0x00, 0x21, 0x16, 0x16, 0x16, 0x16, 0x17, 0x22, 0x22, 0x00, 0x1d, 0x20, - 0x23, 0x17, 0x17, 0x1e, 0x25, 0x1f, 0x00, 0x22, 0x17, 0x17, 0x17, 0x17, - 0x18, 0x23, 0x23, 0x00, 0x21, 0x21, 0x24, 0x18, 0x18, 0x1f, 0x26, 0x21, - 0x00, 0x23, 0x18, 0x18, 0x18, 0x18, 0x19, 0x25, 0x25, 0x00, 0x1f, 0x23, - 0x26, 0x19, 0x19, 0x21, 0x28, 0x23, 0x00, 0x25, 0x19, 0x19, 0x19, 0x19, - 0x1a, 0x28, 0x28, 0x00, 0x23, 0x26, 0x29, 0x1a, 0x1a, 0x25, 0x2c, 0x3c, - 0x00, 0x28, 0x1a, 0x1a, 0x1a, 0x1a, 0x1b, 0x29, 0x29, 0x00, 0x24, 0x27, - 0x2a, 0x1b, 0x1b, 0x26, 0x2a, 0x24, 0x00, 0x29, 0x1b, 0x1b, 0x1b, 0x1b, - 0x1c, 0x2a, 0x2a, 0x00, 0x25, 0x28, 0x2b, 0x1c, 0x1c, 0x27, 0x2d, 0x27, - 0x00, 0x2a, 0x1c, 0x1c, 0x1c, 0x1c, 0x1d, 0x2b, 0x2e, 0x00, 0x27, 0x2c, - 0x2f, 0x1d, 0x1d, 0x28, 0x31, 0x29, 0x00, 0x2b, 0x1d, 0x1d, 0x1d, 0x1d, - 0x1e, 0x2e, 0x2c, 0x00, 0x29, 0x2a, 0x2d, 0x1e, 0x1e, 0x2b, 0x2f, 0x2b, - 0x00, 0x2e, 0x1e, 0x1e, 0x1e, 0x1e, 0x1f, 0x2f, 0x2f, 0x00, 0x2b, 0x2d, - 0x30, 0x1f, 0x1f, 0x2d, 0x32, 0x2c, 0x00, 0x2f, 0x1f, 0x1f, 0x1f, 0x1f, - 0x20, 0x30, 0x30, 0x00, 0x2c, 0x2e, 0x31, 0x20, 0x20, 0x2e, 0x33, 0x2d, - 0x00, 0x30, 0x20, 0x20, 0x20, 0x20, 0x21, 0x31, 0x32, 0x00, 0x2d, 0x31, - 0x34, 0x21, 0x21, 0x2f, 0x36, 0x2f, 0x00, 0x31, 0x21, 0x21, 0x21, 0x21, - 0x22, 0x32, 0x34, 0x00, 0x2e, 0x32, 0x35, 0x22, 0x22, 0x30, 0x37, 0x2e, - 0x00, 0x32, 0x22, 0x22, 0x22, 0x22, 0x23, 0x34, 0x36, 0x00, 0x33, 0x34, - 0x37, 0x23, 0x23, 0x32, 0x39, 0x32, 0x00, 0x34, 0x23, 0x23, 0x23, 0x23, - 0x24, 0x35, 0x37, 0x00, 0x35, 0x35, 0x0f, 0x24, 0x24, 0x34, 0x11, 0x33, - 0x00, 0x35, 0x24, 0x24, 0x24, 0x24, 0x25, 0x36, 0x38, 0x00, 0x36, 0x36, - 0x10, 0x25, 0x25, 0x33, 0x12, 0x34, 0x00, 0x36, 0x25, 0x25, 0x25, 0x25, - 0x26, 0x38, 0x00, 0x00, 0x39, 0x39, 0x3a, 0x26, 0x26, 0x40, 0x00, 0x42, - 0x00, 0x38, 0x26, 0x26, 0x26, 0x26, 0x27, 0x39, 0x10, 0x00, 0x38, 0x38, - 0x11, 0x27, 0x27, 0x37, 0x13, 0x18, 0x00, 0x39, 0x27, 0x27, 0x27, 0x27, - 0x28, 0x3b, 0x3d, 0x00, 0x3b, 0x3d, 0x39, 0x28, 0x28, 0x38, 0x3b, 0x31, - 0x01, 0x3b, 0x28, 0x28, 0x28, 0x28, 0x29, 0x3c, 0x20, 0x08, 0x02, 0x3c, - 0x29, 0x29, 0x41, 0x3d, 0x3f, 0x20, 0x05, 0x29, 0x00, 0x29, 0x2a, 0x3d, - 0x3c, 0x32, 0x3c, 0x3d, 0x2a, 0x08, 0x2a, 0x42, 0x3e, 0x3e, 0x20, 0x05, - 0x2a, 0x2a, 0x2b, 0x00, 0x3e, 0x3f, 0x3e, 0x3e, 0x3e, 0x2b, 0x2b, 0x3b, - 0x24, 0x3f, 0x37, 0x20, 0x05, 0x2b, 0x2b, 0xf2, 0xef, 0x2d, 0x41, 0x00, - 0x41, 0x2f, 0x41, 0x41, 0x2d, 0x2d, 0x3e, 0x41, 0x40, 0x13, 0x20, 0x05, - 0x2d, 0x2d, 0x2e, 0x42, 0x42, 0x34, 0x01, 0x42, 0x42, 0x2e, 0x2e, 0x3f, - 0x42, 0x14, 0x20, 0x05, 0x00, 0x2e, 0x2e, 0x2f, 0x04, 0x06, 0x02, 0x04, - 0x05, 0x10, 0x2f, 0x2f, 0x03, 0x20, 0x06, 0x2f, 0x2f, 0x2f, 0x2f, 0x00, - 0x30, 0x26, 0x26, 0x20, 0x24, 0x27, 0x30, 0x30, 0x00, 0x23, 0x29, 0x20, - 0x26, 0x30, 0x30, 0x30, 0x30, 0x00, 0x31, 0x24, 0x24, 0x1e, 0x22, 0x25, - 0x31, 0x31, 0x01, 0x20, 0x27, 0x22, 0x24, 0x31, 0x31, 0x31, 0x21, 0x0d, - 0x00, 0x2b, 0x28, 0x29, 0x2c, 0x32, 0x32, 0x2a, 0x2e, 0x00, 0x28, 0x2d, - 0x32, 0x32, 0x32, 0x32, 0x33, 0x09, 0x00, 0x3e, 0x3c, 0x09, 0x0a, 0x33, - 0x33, 0x39, 0x0b, 0x00, 0x3b, 0x09, 0x33, 0x33, 0x33, 0x33, 0x34, 0x3a, - 0x00, 0x3a, 0x3a, 0x3a, 0x3b, 0x34, 0x34, 0x35, 0x3c, 0x08, 0x36, 0x3a, - 0x34, 0x34, 0x20, 0x07, 0x0f, 0x0f, 0x0b, 0x00, 0x0d, 0x0e, 0x35, 0x35, - 0x0c, 0x10, 0x40, 0x0f, 0x00, 0x35, 0x35, 0x35, 0x35, 0x36, 0x0e, 0x0e, - 0x0a, 0x00, 0x13, 0x40, 0x36, 0x36, 0x0a, 0x0f, 0x12, 0x0e, 0x00, 0x36, - 0x36, 0x36, 0x36, 0x37, 0x37, 0x39, 0x37, 0x00, 0x37, 0x38, 0x37, 0x37, - 0x36, 0x3a, 0x35, 0x37, 0x52, 0x37, 0x20, 0x01, 0x38, 0x33, 0x66, 0x02, - 0x38, 0x20, 0x06, 0x04, 0x00, 0x01, 0x38, 0x38, 0x38, 0x38, 0x39, 0x14, - 0x14, 0x00, 0x0f, 0x12, 0x15, 0x39, 0x39, 0x10, 0x17, 0x0e, 0x10, 0x14, - 0x39, 0x39, 0x21, 0x3a, 0x16, 0x16, 0x11, 0x15, 0x01, 0x17, 0x3a, 0x3a, - 0x12, 0x19, 0x0d, 0x16, 0x40, 0x6a, 0x00, 0x1b, 0x18, 0x15, 0x19, 0x1b, - 0x3b, 0x3b, 0x22, 0x20, 0x1b, 0x26, 0x20, 0x05, 0x3b, 0x3b, 0x3c, 0x1d, - 0x1d, 0x00, 0x17, 0x1b, 0x1e, 0x3c, 0x3c, 0x18, 0x20, 0x11, 0x00, 0x1d, - 0x3c, 0x3c, 0x3c, 0x3c, 0x3d, 0x27, 0x27, 0x00, 0x22, 0x25, 0x28, 0x3d, - 0x3d, 0x24, 0x2b, 0x25, 0x00, 0x27, 0x3d, 0x3d, 0x3d, 0x3d, 0x3e, 0x19, - 0x19, 0x00, 0x12, 0x16, 0x19, 0x3e, 0x3e, 0x16, 0x1c, 0x15, 0x80, 0x20, - 0x05, 0x3e, 0x3e, 0x3f, 0x33, 0x35, 0x30, 0x33, 0x00, 0x36, 0x3f, 0x3f, - 0x31, 0x38, 0x30, 0x33, 0x3f, 0x06, 0x3f, 0x3f, 0x3f, 0x40, 0x40, 0x20, - 0x01, 0x20, 0x05, 0x3c, 0x20, 0x40, 0x09, 0x40, 0x0a, 0x41, 0x02, 0x04, - 0x03, 0x02, 0x20, 0x03, 0x41, 0x20, 0x06, 0x00, 0x02, 0x41, 0x41, 0x41, - 0x02, 0x41, 0x42, 0x2c, 0x2d, 0x26, 0x2b, 0x21, 0x44, 0x29, 0x01, 0x30, - 0x2a, 0x2c, 0x42, 0x42, 0x42, 0x42, 0x6f, 0xff, 0x40, 0x40, 0x3f, 0xff, - 0x11, 0x90, 0x87, 0x01, 0x11, 0x2f, 0x00, 0x00, 0x30, 0x01, 0x01, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x60, 0x19, 0x63, 0x63, 0x00, 0x00, 0x00, 0x02, 0x01, 0x71, 0x67, - 0xac, 0x4e, 0xfd, 0x40, 0x90, 0x06, 0x98, 0x1b, 0x54, 0x00, 0x6f, 0x00, - 0x6b, 0x00, 0x69, 0x79, 0x20, 0x05, 0x0e, 0xb0, 0x7f, 0x69, 0x10, 0x06, - 0x80, 0xff, 0x1c, 0x4e, 0x06, 0xd2, 0xff, 0x07, 0xc4, 0xb3, 0xc4, 0xcf, - 0x20, 0x20, 0x05, 0x06, 0xd3, 0x7f, 0x06, 0xb2, 0x7f, 0x04, 0xf3, 0x00, - 0x71, 0x00, 0x75, 0x06, 0x83, 0x01, 0x22, 0x04, 0x07, 0x3e, 0x04, 0x3a, - 0x04, 0x38, 0x20, 0x05, 0x06, 0x5d, 0x1f, 0x10, 0x07, 0x55, 0x7f, 0x98, - 0x0e, 0x96, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x03, 0x01, 0x17, - 0x0a, 0x53, 0x77, 0x6d, 0x53, 0x06, 0xa8, 0x17, 0x48, 0x48, 0x17, 0x6b, - 0x2e, 0x00, 0x61, 0x27, 0x1b, 0x64, 0x06, 0x28, 0x1d, 0x10, 0x07, 0x50, - 0x7f, 0x06, 0x71, 0xfd, 0x00, 0x40, 0x00, 0x06, 0xf2, 0xff, 0x4b, 0xd6, - 0x74, 0xce, 0x74, 0xc7, 0xd0, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x25, - 0x48, 0x17, 0x3a, 0x04, 0x30, 0x04, 0x19, 0x39, 0x04, 0x34, 0x06, 0x28, - 0x1d, 0x10, 0x16, 0xf5, 0x7f, 0x02, 0x02, 0xd0, 0x01, 0x00, 0x9e, 0x1e, - 0x80, 0x64, 0x00, 0x00, 0x04, 0x01, 0x02, 0x52, 0x97, 0xee, 0x68, 0x0c, - 0x77, 0x06, 0x9d, 0x2f, 0x41, 0xae, 0x2f, 0xaf, 0x6d, 0x2f, 0xb3, 0x72, - 0x2f, 0x33, 0x10, 0x16, 0x30, 0x7f, 0x32, 0xff, 0xbf, 0x40, 0x53, 0x06, - 0x9d, 0xaf, 0x44, 0xc5, 0x24, 0xc6, 0xa8, 0xba, 0x02, 0xac, 0xb9, 0x20, - 0x00, 0x04, 0xd6, 0x10, 0x06, 0x33, 0x7f, 0x10, 0xa3, 0x28, 0x17, 0x3c, - 0x28, 0x1b, 0x40, 0x04, 0x38, 0x06, 0x08, 0x13, 0x72, 0x7f, 0x24, 0x23, - 0x7e, 0x10, 0x16, 0x95, 0x7f, 0x03, 0x03, 0xd0, 0x01, 0x06, 0x1d, 0x40, - 0x1a, 0x28, 0x17, 0x05, 0x01, 0xa9, 0x5c, 0x4b, 0x62, 0x88, 0x06, 0xb8, - 0x17, 0x49, 0x00, 0x77, 0x2f, 0xab, 0x74, 0x00, 0x65, 0xe0, 0x10, 0x16, - 0x60, 0x7f, 0x32, 0xff, 0x06, 0xb8, 0x17, 0x74, 0xc7, 0x40, 0xc6, 0x4c, - 0x60, 0xd1, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x18, 0x04, 0x32, 0x04, - 0x30, 0x0f, 0x04, 0x42, 0x04, 0x4d, 0x06, 0x48, 0x15, 0x52, 0x7f, 0x06, - 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x22, 0x04, 0x04, 0xd0, 0x01, 0x3a, - 0x1c, 0x62, 0x28, 0x17, 0x06, 0x05, 0x01, 0xae, 0x5b, 0xce, 0x57, 0x06, - 0xb8, 0x17, 0x4d, 0x2f, 0xa7, 0x5b, 0x79, 0x28, 0x19, 0x67, 0x06, 0x6f, - 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0xab, 0x22, 0xff, 0x06, 0xb8, 0x17, 0x03, - 0xf8, 0xbb, 0x7c, 0xc5, 0x30, 0xae, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, - 0x01, 0x1c, 0x04, 0x38, 0x04, 0x4f, 0x04, 0x33, 0x20, 0x05, 0xf2, 0x06, - 0x5f, 0xb3, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x05, - 0x05, 0xd0, 0x01, 0x34, 0x20, 0x1b, 0x32, 0x28, 0x17, 0x07, 0x01, 0xcb, - 0x79, 0x30, 0x45, 0x75, 0x06, 0xb8, 0x17, 0x41, 0x00, 0x6b, 0x28, 0x19, - 0x74, 0x2f, 0xb3, 0xe0, 0x10, 0x16, 0x50, 0x7f, 0x32, 0xff, 0x06, 0xb8, - 0x17, 0x44, 0xc5, 0xa4, 0xd0, 0xc0, 0x62, 0xd0, 0x06, 0x98, 0x17, 0x0e, - 0xf3, 0x7f, 0x10, 0x04, 0x3a, 0x28, 0x19, 0x42, 0x3c, 0x04, 0x30, 0x06, - 0x68, 0x17, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x06, - 0x06, 0x80, 0xd0, 0x01, 0x3d, 0x1c, 0xa0, 0x63, 0x00, 0x00, 0x08, 0x05, - 0x01, 0x71, 0x5c, 0x62, 0x5f, 0x06, 0xb8, 0x17, 0x59, 0x2f, 0xab, 0x5e, - 0x6d, 0x4f, 0xaf, 0x61, 0x06, 0x48, 0x1d, 0x10, 0x0e, 0xf0, 0x7f, 0x32, - 0xff, 0x06, 0xb8, 0x17, 0x7c, 0x06, 0xc5, 0xc8, 0xb9, 0x00, 0xac, 0x06, - 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0x2f, 0x2f, 0x04, 0x3c, 0x28, 0x13, 0x33, - 0x28, 0x17, 0x06, 0x58, 0x1b, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x91, 0x10, - 0x0e, 0xf5, 0x7f, 0x07, 0x07, 0xd0, 0x01, 0x33, 0x1b, 0xcd, 0x28, 0x17, - 0x02, 0x09, 0x01, 0x8f, 0x79, 0xf6, 0x5c, 0x06, 0xb8, 0x17, 0x46, 0x20, - 0x00, 0x75, 0x2f, 0xb1, 0x75, 0x00, 0x73, 0x00, 0x68, 0xe1, 0x2f, 0xb7, - 0x38, 0x21, 0x10, 0x15, 0xd0, 0x7f, 0x8f, 0x79, 0x9b, 0x5c, 0x06, 0xb8, - 0x17, 0x00, 0xc4, 0xd6, 0xe0, 0xcf, 0xdc, 0xc2, 0xc8, 0xb9, 0xc1, 0x06, - 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x24, 0x04, 0x43, 0x04, 0x3a, 0x20, 0x03, - 0x1f, 0x41, 0x04, 0x38, 0x48, 0x21, 0x05, 0xff, 0xb9, 0x35, 0x7f, 0x06, - 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x22, 0x08, 0x08, 0xd0, 0x01, 0xd9, - 0x1a, 0xe4, 0x28, 0x17, 0x0a, 0x04, 0x01, 0x28, 0x83, 0xce, 0x57, 0x06, - 0xb8, 0x17, 0x49, 0x00, 0x57, 0x62, 0x2f, 0xb1, 0x72, 0x2f, 0xb5, 0x6b, - 0x28, 0x17, 0x10, 0x16, 0x10, 0x7f, 0x32, 0xff, 0x80, 0x06, 0xb8, 0x17, - 0x74, 0xc7, 0x14, 0xbc, 0x7c, 0xb7, 0xa4, 0x62, 0xd0, 0x06, 0x78, 0x17, - 0x0e, 0xf3, 0x7f, 0x18, 0x04, 0x31, 0x28, 0x0d, 0x40, 0xbc, 0x28, 0x11, - 0x3a, 0x28, 0x19, 0x06, 0x52, 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, - 0x7f, 0x09, 0x09, 0x90, 0xd0, 0x01, 0xde, 0x19, 0x38, 0x17, 0x0b, 0x01, - 0x03, 0x68, 0x20, 0x28, 0x67, 0x06, 0xb8, 0x17, 0x54, 0x00, 0x6f, 0x00, - 0x63, 0xb0, 0x4f, 0xab, 0x67, 0x06, 0x48, 0x17, 0x10, 0x0e, 0xf0, 0x7f, - 0xa5, 0x67, 0x28, 0x67, 0x81, 0x06, 0xb8, 0x17, 0xc4, 0xb3, 0x58, 0xce, - 0x30, 0xae, 0x06, 0x78, 0x15, 0x82, 0x0f, 0x13, 0x7f, 0x22, 0x04, 0x3e, - 0x04, 0x42, 0x28, 0x11, 0x33, 0x8e, 0x06, 0x48, 0x15, 0x00, 0x00, 0x8b, - 0x22, 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x0a, 0x44, 0x0a, - 0xd0, 0x01, 0xfd, 0x19, 0x76, 0x28, 0x17, 0x0c, 0x01, 0x08, 0xa4, 0x7f, - 0xac, 0x99, 0x06, 0xb8, 0x17, 0x47, 0x00, 0x75, 0x0c, 0x00, 0x6e, 0x00, - 0x6d, 0x2f, 0xb3, 0x10, 0x16, 0x50, 0x7f, 0xa4, 0x7f, 0x21, 0x6c, 0x9a, - 0x06, 0xb8, 0x17, 0x70, 0xad, 0xc8, 0xb9, 0x06, 0x98, 0x15, 0x82, 0x0f, - 0x13, 0x7f, 0x13, 0x04, 0x43, 0x04, 0x3c, 0x20, 0x01, 0x30, 0xcc, 0x06, - 0x48, 0x15, 0x32, 0x7f, 0xac, 0x99, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, - 0x7f, 0x0b, 0x0b, 0x80, 0xd0, 0x01, 0xe2, 0x19, 0xe4, 0x62, 0x00, 0x00, - 0x0d, 0x05, 0x01, 0xfc, 0x57, 0x89, 0x73, 0x06, 0xb8, 0x17, 0x53, 0x28, - 0x11, 0x1c, 0x69, 0x00, 0x74, 0x28, 0x17, 0x06, 0x58, 0x1b, 0x10, 0x0e, - 0xf0, 0x7f, 0x26, 0x74, 0x20, 0x89, 0x73, 0x06, 0xb8, 0x17, 0xac, 0xc0, - 0x74, 0xc7, 0xc0, 0x68, 0xd0, 0x06, 0x98, 0x1b, 0x0e, 0xf3, 0x7f, 0x21, - 0x28, 0x11, 0x39, 0x04, 0x42, 0xf9, 0x28, 0x17, 0x06, 0x58, 0x1b, 0x35, - 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x0c, 0x0c, 0xd0, 0x01, - 0x00, 0x82, 0x19, 0x43, 0x63, 0x00, 0x00, 0x0e, 0x01, 0x08, 0x43, 0x53, - 0x49, 0x84, 0x06, 0xb8, 0x17, 0x43, 0x00, 0x68, 0xb1, 0x28, 0x17, 0x62, - 0x06, 0x8f, 0xaf, 0x10, 0x0f, 0x00, 0x7f, 0x53, 0xf6, 0x53, 0x06, 0xb8, - 0x17, 0x0c, 0xc0, 0xc9, 0x14, 0xbc, 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, - 0x22, 0x04, 0x19, 0x38, 0x04, 0x31, 0x06, 0x48, 0x11, 0x72, 0x7f, 0x49, - 0x84, 0x06, 0xb8, 0x17, 0x91, 0x10, 0x0e, 0xf5, 0x7f, 0x0d, 0x0d, 0xd0, - 0x01, 0x50, 0x19, 0xa1, 0x28, 0x17, 0x00, 0x0f, 0x01, 0x5e, 0x79, 0x48, - 0x59, 0xdd, 0x5d, 0xaa, 0x06, 0x98, 0x19, 0x4b, 0x2f, 0xaf, 0x6e, 0x2f, - 0xb3, 0x67, 0x2f, 0xb7, 0x77, 0xf0, 0x06, 0x2f, 0xb1, 0x10, 0x0e, 0xf0, - 0x7f, 0x52, 0xff, 0x06, 0xa8, 0x19, 0xac, 0x98, 0xb0, 0x00, 0x1a, 0xac, - 0x40, 0xc6, 0x06, 0x78, 0x1b, 0x0e, 0xf3, 0x7f, 0x1a, 0x28, 0x13, 0x3d, - 0xaf, 0x28, 0x17, 0x33, 0x28, 0x1b, 0x32, 0x06, 0x28, 0x1f, 0x55, 0x7f, - 0x06, 0x98, 0x19, 0x10, 0x0e, 0xf5, 0x7f, 0x22, 0x0e, 0x0e, 0xd0, 0x01, - 0x33, 0x19, 0x4f, 0x28, 0x17, 0x10, 0x04, 0x01, 0xcc, 0x5b, 0x71, 0x5c, - 0x06, 0x98, 0x15, 0x00, 0x00, 0x05, 0x54, 0x00, 0x6f, 0x00, 0x79, 0x2f, - 0xad, 0x6d, 0x06, 0x6f, 0xb1, 0xe0, 0x10, 0x0e, 0xf0, 0x7f, 0x32, 0xff, - 0x06, 0xa8, 0x15, 0x00, 0xc4, 0xb3, 0x7c, 0xc5, 0x30, 0xc8, 0xb9, 0x06, - 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x22, 0x04, 0x3e, 0x04, 0x1e, 0x4f, 0x04, - 0x3c, 0x06, 0x28, 0x11, 0x92, 0x7f, 0x06, 0x98, 0x15, 0x10, 0x0f, 0x15, - 0x7f, 0x0f, 0x44, 0x0f, 0xd0, 0x01, 0x1a, 0x1a, 0x91, 0x2f, 0x9c, 0x11, - 0x01, 0x08, 0xf3, 0x77, 0xdd, 0x5d, 0x06, 0xb8, 0x17, 0x49, 0x00, 0x73, - 0x03, 0x00, 0x68, 0x00, 0x69, 0x00, 0x6b, 0x06, 0x6f, 0xaf, 0x10, 0x0e, - 0xf0, 0x7f, 0xc0, 0x32, 0xff, 0x06, 0xb8, 0x17, 0x74, 0xc7, 0xdc, 0xc2, - 0x74, 0xce, 0x30, 0x40, 0xc6, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x18, - 0x04, 0x41, 0x04, 0x17, 0x38, 0x04, 0x3a, 0x28, 0x17, 0x32, 0x06, 0x48, - 0x1b, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x91, 0x10, 0x0e, 0xf5, 0x7f, 0x10, - 0x10, 0xd0, 0x01, 0x04, 0x1a, 0x2a, 0x2f, 0xa0, 0x02, 0x12, 0x01, 0x8f, - 0x79, 0x95, 0x4e, 0x06, 0xb8, 0x17, 0x46, 0x2f, 0x00, 0x75, 0x28, 0x13, - 0x75, 0x28, 0x19, 0x10, 0x16, 0x50, 0x7f, 0x32, 0xff, 0x06, 0xb8, 0x17, - 0x03, 0xc4, 0xd6, 0xe0, 0xcf, 0x74, 0xc7, 0x06, 0x78, 0x15, 0x0f, 0x13, - 0x7f, 0x17, 0x24, 0x04, 0x43, 0x28, 0x15, 0x43, 0x28, 0x1b, 0x06, 0x92, - 0x7f, 0x06, 0xb8, 0x17, 0x90, 0x10, 0x0e, 0xf5, 0x7f, 0x11, 0x11, 0xd0, - 0x01, 0xa3, 0x19, 0xdf, 0x60, 0x00, 0x00, 0x00, 0x13, 0x01, 0x71, 0x5c, - 0xa8, 0x68, 0xab, 0x06, 0xb8, 0x17, 0x59, 0x2f, 0xa7, 0x6d, 0x2f, 0xab, - 0x6e, 0x2f, 0xaf, 0x5f, 0xb9, 0xe0, 0x10, 0x15, 0xd0, 0x7f, 0x32, 0xff, - 0x06, 0xb8, 0x17, 0x7c, 0xc5, 0xc8, 0xb9, 0x98, 0x18, 0xb0, 0xdc, 0xc2, - 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x2f, 0x04, 0x3c, 0x0b, 0x04, 0x30, - 0x04, 0x3d, 0x20, 0x03, 0x41, 0x06, 0x48, 0x1b, 0x35, 0x7f, 0xc8, 0x06, - 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x12, 0x12, 0xd0, 0x01, 0x5c, 0x19, - 0x87, 0x00, 0x62, 0x00, 0x00, 0x14, 0x01, 0x77, 0x95, 0xce, 0x55, 0x91, - 0x06, 0xb8, 0x17, 0x4e, 0x28, 0x17, 0x67, 0x48, 0x17, 0x6f, 0x10, 0x16, - 0x40, 0x7f, 0x60, 0x7f, 0x22, 0xff, 0x06, 0xb8, 0x17, 0x98, 0xb0, 0x00, - 0xac, 0x78, 0x6a, 0xb1, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x1d, 0x28, - 0x15, 0x33, 0x48, 0x19, 0x3e, 0x9c, 0x06, 0x28, 0x15, 0x00, 0x00, 0x35, - 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x13, 0x13, 0x88, 0xd0, - 0x01, 0x11, 0x1a, 0x45, 0x28, 0x17, 0x15, 0x01, 0xb0, 0x16, 0x65, 0x5f, - 0x6f, 0x06, 0xd8, 0x17, 0x69, 0x2f, 0xa3, 0x38, 0x19, 0x74, 0xc2, 0x2f, - 0xb9, 0x10, 0x16, 0x10, 0x7f, 0xb0, 0x65, 0xfb, 0x6c, 0x06, 0xb8, 0x17, - 0xc8, 0x06, 0xb2, 0x00, 0xac, 0xc0, 0xd0, 0x06, 0xb8, 0x17, 0x0e, 0xd3, - 0x7f, 0x1d, 0x36, 0x04, 0x38, 0x20, 0x01, 0x38, 0x19, 0x42, 0x28, 0x21, - 0x06, 0x32, 0x7f, 0x5f, 0x64, 0x6f, 0x06, 0xd8, 0x17, 0x10, 0x0e, 0xd5, - 0x7f, 0x14, 0x14, 0xd0, 0x01, 0xf5, 0x1a, 0x40, 0xe1, 0x28, 0x17, 0x16, - 0x01, 0x90, 0x5c, 0x1c, 0x96, 0xa2, 0x06, 0xb8, 0x17, 0x47, 0x28, 0x17, - 0x66, 0x00, 0x75, 0x10, 0x16, 0x80, 0x7f, 0x67, 0x10, 0x6b, 0x1c, 0x96, - 0x06, 0xb8, 0x17, 0x30, 0xae, 0xc4, 0xd6, 0xd1, 0x06, 0x98, 0x15, 0x0f, - 0x13, 0x7f, 0x13, 0x28, 0x17, 0x44, 0x04, 0x43, 0x06, 0x28, 0x11, 0xf2, - 0x5f, 0xff, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x15, - 0x15, 0xd0, 0x01, 0x2b, 0x20, 0x19, 0x41, 0x2f, 0x9e, 0x17, 0x01, 0x59, - 0x97, 0xa1, 0x45, 0x5c, 0x06, 0xb8, 0x17, 0x53, 0x00, 0x68, 0x2f, 0xb1, - 0x7a, 0x28, 0x19, 0x18, 0x6f, 0x00, 0x6b, 0x06, 0x2f, 0xb1, 0x10, 0x0e, - 0xf0, 0x7f, 0x59, 0x97, 0x88, 0x40, 0x51, 0x06, 0xb8, 0x17, 0xdc, 0xc2, - 0x88, 0xc9, 0x24, 0xc6, 0x34, 0x74, 0xce, 0x06, 0x78, 0x1b, 0x0e, 0xf3, - 0x7f, 0x21, 0x28, 0x17, 0x34, 0x04, 0x41, 0x37, 0x28, 0x19, 0x3e, 0x04, - 0x3a, 0x04, 0x30, 0x06, 0x08, 0x1f, 0x72, 0x5c, 0x25, 0x7f, 0x06, 0xb8, - 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x16, 0x16, 0xd0, 0x01, 0xde, 0x00, 0x18, - 0x6c, 0x62, 0x00, 0x00, 0x18, 0x01, 0x1b, 0x15, 0x61, 0xe5, 0x77, 0x06, - 0xb8, 0x17, 0x41, 0x2f, 0xaf, 0x63, 0x48, 0x1b, 0x84, 0x10, 0x16, 0x50, - 0x7f, 0x31, 0x72, 0xe5, 0x77, 0x06, 0xb8, 0x17, 0x44, 0xc5, 0x18, 0x74, - 0xc7, 0x58, 0x06, 0x88, 0x15, 0x0f, 0x13, 0x7f, 0x10, 0x04, 0x39, 0x3e, - 0x04, 0x42, 0x28, 0x1b, 0x06, 0x7f, 0xb1, 0x35, 0x7f, 0x06, 0xb8, 0x17, - 0x10, 0x0e, 0xf5, 0x7f, 0x17, 0x44, 0x17, 0xd0, 0x01, 0x01, 0x19, 0x66, - 0x2f, 0x9c, 0x19, 0x01, 0x0a, 0x09, 0x4e, 0xcd, 0x91, 0x06, 0xb8, 0x17, - 0x4d, 0x2f, 0xad, 0x65, 0xf0, 0x06, 0x9d, 0xae, 0x10, 0x0f, 0x00, 0x7f, - 0x32, 0xff, 0x06, 0xb8, 0x17, 0xf8, 0xbb, 0xd0, 0xc5, 0xd7, 0x06, 0x98, - 0x15, 0x0f, 0x13, 0x7f, 0x1c, 0x28, 0x13, 0x4d, 0x06, 0x88, 0x15, 0x52, - 0x7f, 0x06, 0xb8, 0x17, 0x91, 0x10, 0x0e, 0xf5, 0x7f, 0x18, 0x18, 0xd0, - 0x01, 0xb2, 0x18, 0x15, 0x28, 0x17, 0x02, 0x1a, 0x01, 0xcb, 0x6e, 0xc0, - 0x8c, 0x06, 0xb8, 0x17, 0x53, 0x98, 0x4f, 0xab, 0x67, 0x00, 0x28, 0xa4, - 0x10, 0x16, 0x40, 0x7f, 0xcb, 0x6e, 0x3a, 0x43, 0x8d, 0x06, 0xb8, 0x17, - 0xdc, 0xc2, 0x00, 0xac, 0x06, 0xb8, 0x17, 0x0e, 0xf3, 0x7f, 0x47, 0x21, - 0x28, 0x17, 0x33, 0x04, 0x30, 0x06, 0x88, 0x19, 0x35, 0x7f, 0x06, 0xb8, - 0x17, 0x90, 0x10, 0x0e, 0xf5, 0x7f, 0x19, 0x19, 0xd0, 0x01, 0xe1, 0x18, - 0xa6, 0x60, 0x00, 0x00, 0x00, 0x1b, 0x01, 0xac, 0x4e, 0xfd, 0x90, 0x20, - 0x9c, 0x5e, 0x06, 0x9f, 0xb0, 0x4b, 0x00, 0x79, 0x00, 0x6f, 0x36, 0x00, - 0x74, 0x20, 0x03, 0x10, 0x0e, 0x70, 0x7f, 0x69, 0x06, 0xc1, 0xff, 0x06, - 0xf2, 0xff, 0x50, 0x01, 0xad, 0xa0, 0xd1, 0x20, 0x00, 0x80, 0xbd, 0x0e, - 0x73, 0x7f, 0x14, 0x51, 0x00, 0x75, 0x06, 0xc2, 0x01, 0x1a, 0x28, 0x17, - 0x3e, 0x04, 0x72, 0x42, 0x20, 0x03, 0x0e, 0x52, 0x7f, 0x10, 0x0e, 0xf5, - 0x7f, 0x1a, 0x1a, 0xd0, 0x01, 0xe5, 0x20, 0x18, 0x85, 0x28, 0x17, 0x1c, - 0x01, 0x27, 0x59, 0x2a, 0x45, 0x96, 0x06, 0xb8, 0x17, 0x4f, 0x00, 0x73, - 0x2f, 0xab, 0x6b, 0x06, 0x8f, 0xaf, 0xc0, 0x10, 0x0e, 0xf0, 0x7f, 0x06, - 0xf2, 0xff, 0x24, 0xc6, 0xac, 0xc0, 0x74, 0xce, 0xd0, 0x06, 0x98, 0x19, - 0x07, 0x53, 0x7f, 0x63, 0x06, 0x8e, 0xaf, 0x1e, 0x04, 0x41, 0x04, 0x1c, - 0x30, 0x04, 0x3a, 0x20, 0x03, 0x0e, 0x52, 0x7f, 0x10, 0x0e, 0xf5, 0x7f, - 0x1b, 0x1b, 0x88, 0xd0, 0x01, 0xa8, 0x18, 0x5f, 0x28, 0x17, 0x1d, 0x01, - 0x75, 0x05, 0x51, 0xab, 0x5e, 0x0c, 0x77, 0x06, 0x9d, 0x2f, 0x48, 0x4f, - 0xaf, 0x78, 0x67, 0x06, 0x8f, 0xaf, 0x10, 0x07, 0x10, 0x7f, 0x3e, 0x2d, - 0x06, 0x91, 0xff, 0x75, 0x51, 0x93, 0x10, 0x5e, 0xbf, 0x53, 0x06, 0x9d, - 0xaf, 0xa8, 0xd6, 0xe0, 0xac, 0x08, 0x20, 0x00, 0x04, 0xd6, 0x10, 0x06, - 0x73, 0x7f, 0x25, 0x04, 0x51, 0x0c, 0x04, 0x33, 0x04, 0x3e, 0x06, 0x68, - 0x15, 0x32, 0x7f, 0xab, 0x5e, 0x24, 0x23, 0x7e, 0x10, 0x16, 0x95, 0x7f, - 0x1c, 0x1c, 0xd0, 0x01, 0xab, 0x18, 0x40, 0x27, 0x28, 0x17, 0x1e, 0x01, - 0x48, 0x59, 0x6f, 0x82, 0xaf, 0x06, 0xb8, 0x17, 0x4e, 0x2f, 0xad, 0x72, - 0x06, 0x8f, 0xad, 0x10, 0x0f, 0x10, 0x7f, 0x32, 0xff, 0x06, 0xb8, 0x17, - 0x0c, 0x98, 0xb0, 0x7c, 0xb7, 0x06, 0xb8, 0x17, 0x0e, 0xf3, 0x7f, 0x1d, - 0x04, 0x1e, 0x30, 0x04, 0x40, 0x20, 0x03, 0x06, 0xb2, 0x7f, 0x06, 0xb8, - 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x1d, 0x44, 0x1d, 0xd0, 0x01, 0xab, 0x18, - 0x97, 0x28, 0x17, 0x1f, 0x01, 0x02, 0x8c, 0x54, 0x4c, 0x6b, 0x71, 0x5c, - 0x06, 0x98, 0x19, 0x57, 0xab, 0x28, 0x17, 0x6b, 0x28, 0x1b, 0x79, 0x28, - 0x1f, 0x6d, 0x06, 0x28, 0x1f, 0x10, 0x0e, 0xf0, 0x7f, 0xc0, 0x52, 0xff, - 0x06, 0x98, 0x19, 0x40, 0xc6, 0x74, 0xce, 0x7c, 0xc5, 0x35, 0xc8, 0xb9, - 0x06, 0x78, 0x1b, 0x0e, 0xf3, 0x7f, 0x12, 0x28, 0x17, 0x3a, 0x28, 0x1b, - 0x1e, 0x4f, 0x04, 0x3c, 0x06, 0x48, 0x1d, 0x55, 0x7f, 0x06, 0x98, 0x19, - 0x10, 0x0e, 0xf5, 0x7f, 0x1e, 0x44, 0x1e, 0xd0, 0x01, 0x56, 0x18, 0x1e, - 0x28, 0x17, 0x20, 0x01, 0x08, 0xe5, 0x9c, 0xd6, 0x53, 0x06, 0x98, 0x15, - 0x00, 0x00, 0x54, 0x0a, 0x00, 0x6f, 0x00, 0x74, 0x20, 0x01, 0x6f, 0x2f, - 0xb5, 0x69, 0xe2, 0x10, 0x0e, 0x80, 0x7f, 0x06, 0x71, 0xfd, 0x2b, 0x19, - 0x9e, 0xd6, 0x53, 0x06, 0x98, 0x15, 0x00, 0x03, 0x00, 0xd7, 0xb3, 0xa0, - 0xd1, 0xac, 0x06, 0x88, 0x15, 0x0f, 0x13, 0x7f, 0x04, 0x22, 0x04, 0x3e, - 0x04, 0x42, 0x20, 0x01, 0x3e, 0x04, 0x1e, 0x40, 0x04, 0x38, 0x06, 0x28, - 0x17, 0x35, 0x7f, 0x06, 0x98, 0x15, 0x10, 0x0f, 0x15, 0x7f, 0x1f, 0x40, - 0x1f, 0xd0, 0x01, 0x3b, 0x19, 0x75, 0x5f, 0x00, 0x00, 0x02, 0x21, 0x01, - 0xf6, 0x5c, 0x39, 0x68, 0x06, 0xb8, 0x17, 0x53, 0x31, 0x00, 0x68, 0x28, - 0x0f, 0x3f, 0xa9, 0x6e, 0x00, 0x65, 0x10, 0x16, 0x20, 0x7f, 0x60, 0x9b, - 0x22, 0xff, 0x06, 0xb8, 0x17, 0xdc, 0xc2, 0xc8, 0xb9, 0x24, 0x68, 0xb1, - 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x21, 0x28, 0x0d, 0x3c, 0x04, 0x30, - 0x09, 0x04, 0x3d, 0x04, 0x4d, 0x06, 0x28, 0x15, 0x00, 0x00, 0x35, 0x7f, - 0xc8, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x20, 0x20, 0xd0, 0x01, - 0x36, 0x19, 0xa0, 0x41, 0x5e, 0x2b, 0x2d, 0x01, 0xa1, 0x5c, 0x71, 0x5c, - 0x06, 0xb8, 0x17, 0x17, 0x4f, 0x00, 0x6b, 0x28, 0x13, 0x79, 0x28, 0x17, - 0x38, 0x1b, 0x10, 0x16, 0x10, 0x7f, 0x08, 0x88, 0x51, 0x71, 0x5c, 0x06, - 0xb8, 0x17, 0x24, 0xc6, 0x74, 0x06, 0xce, 0x7c, 0xc5, 0xc8, 0xb9, 0x06, - 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x1e, 0x2f, 0x04, 0x3a, 0x28, 0x15, 0x4f, - 0x48, 0x1b, 0x06, 0x3f, 0xb5, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x90, 0x10, - 0x0e, 0xf5, 0x7f, 0x21, 0x21, 0xd0, 0x01, 0xa5, 0x18, 0x3b, 0x5f, 0x01, - 0x00, 0x00, 0x23, 0x01, 0x83, 0x5e, 0xf6, 0x06, 0xc8, 0x17, 0x41, 0x48, - 0x2f, 0xad, 0x72, 0x00, 0x6f, 0x00, 0x73, 0x8f, 0xb7, 0x88, 0x10, 0x15, - 0xd0, 0x7f, 0x7f, 0x5e, 0x9b, 0x06, 0xc8, 0x17, 0x88, 0xd7, 0x5c, 0x18, - 0xb8, 0xdc, 0xc2, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x25, 0x04, 0x38, - 0x03, 0x04, 0x40, 0x04, 0x3e, 0x04, 0x41, 0x20, 0x07, 0x06, 0x38, 0x1b, - 0x72, 0xe3, 0x25, 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x22, - 0x22, 0xd0, 0x01, 0x75, 0x10, 0x18, 0x32, 0x5e, 0x2c, 0xad, 0x01, 0x71, - 0x5c, 0xe3, 0x50, 0x53, 0x06, 0xb8, 0x17, 0x59, 0x6f, 0xa9, 0x67, 0x00, - 0x75, 0x00, 0x78, 0x63, 0x48, 0x1b, 0x10, 0x15, 0xd0, 0x7f, 0x32, 0xff, - 0x06, 0xb8, 0x17, 0x7c, 0xc5, 0xc8, 0x06, 0xb9, 0x6c, 0xad, 0x58, 0xce, - 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x2f, 0x83, 0x48, 0x0d, 0x33, 0x04, - 0x43, 0x04, 0x42, 0x28, 0x21, 0x06, 0x1f, 0xb7, 0xe4, 0x35, 0x7f, 0x06, - 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x23, 0x23, 0xd0, 0x01, 0x4a, 0x18, - 0x20, 0x7b, 0x5d, 0x2b, 0x2d, 0x01, 0xb3, 0x5f, 0xf6, 0x5c, 0xae, 0x06, - 0xb8, 0x17, 0x54, 0x2f, 0xab, 0x6b, 0x28, 0x13, 0x06, 0x7f, 0xaf, 0x10, - 0x0e, 0xf0, 0x7f, 0xb7, 0x10, 0x5f, 0x9b, 0x5c, 0x06, 0xb8, 0x17, 0xc4, - 0xb3, 0xe0, 0xcf, 0x0c, 0xdc, 0xc2, 0xc8, 0xb9, 0x06, 0x78, 0x17, 0x0e, - 0xf3, 0x7f, 0x22, 0x04, 0x17, 0x3e, 0x04, 0x3a, 0x28, 0x15, 0x41, 0x28, - 0x15, 0x38, 0x21, 0x05, 0xff, 0xb9, 0x72, 0xb7, 0x25, 0x7f, 0x06, 0xb8, - 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x24, 0x24, 0xd0, 0x01, 0x39, 0x00, 0x18, - 0xb2, 0x5f, 0x00, 0x00, 0x26, 0x01, 0x99, 0x14, 0x99, 0xdd, 0x5d, 0x06, - 0xb8, 0x17, 0x4b, 0x4f, 0xab, 0x61, 0x00, 0x78, 0x77, 0x06, 0x08, 0x11, - 0x10, 0x0f, 0x50, 0x7f, 0x32, 0xff, 0x06, 0xb8, 0x17, 0x00, 0xac, 0x00, - 0x1a, 0xac, 0x40, 0xc6, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x1a, 0x28, - 0x0b, 0x33, 0xbc, 0x28, 0x0f, 0x32, 0x06, 0x28, 0x13, 0x72, 0x7f, 0x06, - 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x25, 0x25, 0x88, 0xd0, 0x01, 0x66, - 0x18, 0x54, 0x28, 0x17, 0x27, 0x01, 0x1b, 0x15, 0x61, 0x9b, 0x5a, 0x06, - 0xb8, 0x17, 0x45, 0x6f, 0xa7, 0x65, 0x10, 0x16, 0x60, 0x7f, 0x08, 0x31, - 0x72, 0x9b, 0x5a, 0x06, 0xb8, 0x17, 0xd0, 0xc5, 0x88, 0x18, 0xd7, 0x54, - 0xba, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x2d, 0x04, 0x45, 0x02, 0x04, - 0x38, 0x04, 0x3c, 0x04, 0x4d, 0x06, 0x48, 0x15, 0x00, 0x72, 0x00, 0x35, - 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x26, 0x26, 0xd0, 0x01, - 0x10, 0x00, 0x18, 0x6b, 0x5e, 0x00, 0x00, 0x28, 0x01, 0xd8, 0x10, 0x9a, - 0xe5, 0x77, 0x06, 0xb8, 0x17, 0x4b, 0x00, 0x6f, 0x00, 0x78, 0x63, 0x48, - 0x1b, 0x10, 0x16, 0x50, 0x7f, 0x32, 0xff, 0x06, 0xb8, 0x17, 0xe0, 0xac, - 0x58, 0x60, 0xce, 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x1a, 0x04, 0x3e, - 0x04, 0x42, 0xf9, 0x28, 0x19, 0x06, 0x7f, 0xb1, 0x35, 0x7f, 0x06, 0xb8, - 0x17, 0x10, 0x0e, 0xf5, 0x7f, 0x27, 0x27, 0xd0, 0x01, 0x10, 0xde, 0x17, - 0xf8, 0x28, 0x17, 0x29, 0x01, 0x8f, 0x79, 0x20, 0xa1, 0x5c, 0x06, 0xb8, - 0x17, 0x46, 0x00, 0x75, 0x00, 0x6b, 0xa8, 0x20, 0x03, 0x6f, 0x20, 0x05, - 0x61, 0x10, 0x16, 0x20, 0x7f, 0x8f, 0x79, 0x88, 0x40, 0x51, 0x06, 0xb8, - 0x17, 0xc4, 0xd6, 0xe0, 0xcf, 0x24, 0xc6, 0x60, 0x74, 0x06, 0x88, 0x1b, - 0x0e, 0xf3, 0x7f, 0x24, 0x04, 0x43, 0x04, 0x3a, 0xaf, 0x20, 0x03, 0x3e, - 0x20, 0x05, 0x30, 0x06, 0x28, 0x1d, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x10, - 0x0e, 0xf5, 0x7f, 0x20, 0x28, 0x28, 0xd0, 0x01, 0xe1, 0x17, 0xb6, 0x5c, - 0x00, 0x01, 0x00, 0x2a, 0x01, 0x50, 0x4f, 0xc0, 0x8c, 0x06, 0xb8, 0x17, - 0x58, 0x53, 0x28, 0x0d, 0x67, 0x06, 0x48, 0x11, 0x10, 0x0f, 0x50, 0x7f, - 0x50, 0x4f, 0x3a, 0x43, 0x8d, 0x06, 0xb8, 0x17, 0xac, 0xc0, 0x00, 0xac, - 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x59, 0x21, 0x28, 0x0d, 0x33, 0x06, - 0x48, 0x11, 0x72, 0x7f, 0xc0, 0x8c, 0x06, 0xb8, 0x17, 0x91, 0x10, 0x0e, - 0xf5, 0x7f, 0x29, 0x29, 0xd0, 0x01, 0xa3, 0x17, 0xa9, 0x28, 0x17, 0x02, - 0x2b, 0x01, 0x77, 0x95, 0x0e, 0x5d, 0x06, 0xb8, 0x17, 0x4e, 0xa2, 0x68, - 0x17, 0x73, 0x2f, 0xad, 0x6b, 0x00, 0x69, 0x10, 0x16, 0x00, 0x7f, 0x7f, - 0xc0, 0x22, 0xff, 0x06, 0xb8, 0x17, 0x98, 0xb0, 0x00, 0xac, 0xac, 0xc0, - 0x31, 0xa4, 0xd0, 0x06, 0x78, 0x1b, 0x07, 0x93, 0x7f, 0xe1, 0x00, 0x71, - 0x2e, 0xbb, 0xa8, 0x05, 0xf4, 0x01, 0x1d, 0x68, 0x17, 0x41, 0x28, 0x1f, - 0x3a, 0x04, 0x38, 0xf2, 0x06, 0x08, 0x1f, 0x35, 0x7f, 0x06, 0xb8, 0x17, - 0x10, 0x0e, 0xf5, 0x7f, 0x2a, 0x2a, 0xd0, 0x01, 0x46, 0x20, 0x17, 0x5a, - 0x28, 0x17, 0x2c, 0x01, 0x8a, 0x71, 0x2c, 0x54, 0x67, 0x06, 0xb8, 0x17, - 0x4b, 0x24, 0x0b, 0x6d, 0x2f, 0xb3, 0x6d, 0x00, 0x1e, 0x6f, 0x00, 0x74, - 0x20, 0x03, 0x10, 0x15, 0xf0, 0x7f, 0x32, 0xff, 0x06, 0xb8, 0x17, 0x6c, - 0x01, 0xad, 0xc8, 0xb9, 0xa8, 0xba, 0xa0, 0xd1, 0x06, 0x78, 0x17, 0x82, - 0x0e, 0xf3, 0x7f, 0x1a, 0x04, 0x43, 0x04, 0x3c, 0x28, 0x1b, 0x3c, 0x0f, - 0x04, 0x3e, 0x04, 0x42, 0x20, 0x03, 0x06, 0x32, 0x7f, 0x06, 0xb8, 0x17, - 0x10, 0x0e, 0xf5, 0x7f, 0x22, 0x2b, 0x2b, 0xd0, 0x01, 0x54, 0x17, 0xf3, - 0x28, 0x17, 0x2d, 0x05, 0x01, 0x27, 0x59, 0x06, 0x52, 0x06, 0xb8, 0x17, - 0x4f, 0x2f, 0xa3, 0x78, 0x74, 0x2f, 0xb3, 0x10, 0x16, 0x70, 0x7f, 0x32, - 0xff, 0x06, 0xb8, 0x17, 0x24, 0xc6, 0x74, 0x18, 0xc7, 0xc0, 0xd0, 0x06, - 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x1e, 0x04, 0x38, 0xbc, 0x28, 0x0f, 0x30, - 0x06, 0x08, 0x0f, 0xb2, 0x7f, 0x06, 0xb8, 0x17, 0x10, 0x0e, 0xf5, 0x7f, - 0x2c, 0x2c, 0x80, 0xd0, 0x01, 0xa1, 0x17, 0x98, 0x5d, 0x00, 0x00, 0x2e, - 0x05, 0x01, 0xae, 0x5b, 0x0e, 0x5d, 0x06, 0xb8, 0x17, 0x4d, 0x28, 0x17, - 0x56, 0x79, 0x2f, 0xaf, 0x7a, 0x2f, 0xb3, 0x6b, 0x28, 0x23, 0x10, 0x15, - 0xf0, 0x7f, 0xab, 0xc0, 0x22, 0xff, 0x06, 0xb8, 0x17, 0xf8, 0xbb, 0x7c, - 0xc5, 0x90, 0xc7, 0x68, 0xa4, 0x06, 0x88, 0x19, 0x0e, 0xf3, 0x7f, 0x1c, - 0x28, 0x17, 0x4f, 0x04, 0x34, 0x2f, 0x04, 0x37, 0x28, 0x1b, 0x3a, 0x28, - 0x23, 0x05, 0xff, 0xb9, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x91, 0x10, 0x0e, - 0xf5, 0x7f, 0x2d, 0x2d, 0xd0, 0x01, 0xb5, 0x16, 0x73, 0x28, 0x17, 0x00, - 0x2f, 0x01, 0x7f, 0x9e, 0x50, 0x51, 0xf6, 0x5c, 0xa0, 0x06, 0x98, 0x19, - 0x4b, 0x2f, 0xab, 0x67, 0x00, 0x6f, 0x00, 0x73, 0x2c, 0x00, 0x68, 0x2f, - 0xb9, 0x6d, 0x06, 0x0f, 0xb9, 0x10, 0x0e, 0xf0, 0x7f, 0x7f, 0x9e, 0x08, - 0x3f, 0x51, 0x9b, 0x5c, 0x06, 0xa8, 0x19, 0xac, 0xe0, 0xac, 0x0d, 0xdc, - 0xc2, 0xc8, 0xb9, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1a, 0x28, 0x0f, - 0x05, 0x33, 0x04, 0x3e, 0x04, 0x41, 0x28, 0x1f, 0x3c, 0x28, 0x1b, 0x8e, - 0x05, 0xff, 0xb9, 0x7f, 0x9e, 0x52, 0x25, 0x7f, 0x06, 0x98, 0x19, 0x10, - 0x0e, 0xf5, 0x7f, 0x2e, 0x40, 0x2e, 0xd0, 0x01, 0x6f, 0x16, 0xd6, 0x5c, - 0x00, 0x00, 0x02, 0x30, 0x01, 0x96, 0x6c, 0x04, 0x7e, 0x06, 0x98, 0x15, - 0x00, 0x2b, 0x00, 0x4f, 0x4f, 0xa5, 0x6e, 0x2f, 0xb1, 0x77, 0x06, 0x08, - 0x13, 0x10, 0x0f, 0x30, 0x7f, 0x08, 0xb2, 0x51, 0xf3, 0x7e, 0x06, 0xa8, - 0x15, 0x00, 0x24, 0xc6, 0x03, 0xa4, 0xd0, 0x98, 0xb0, 0x40, 0xc6, 0x06, - 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x15, 0x1e, 0x04, 0x3a, 0x28, 0x11, 0x3d, - 0x28, 0x1d, 0x32, 0x06, 0x28, 0x15, 0x03, 0x00, 0x00, 0x96, 0x6c, 0x69, - 0x7e, 0x06, 0x98, 0x15, 0x10, 0x0f, 0x15, 0x7f, 0x21, 0x2f, 0x2f, 0xd0, - 0x01, 0xa2, 0x12, 0xcc, 0x5a, 0x00, 0x3f, 0xff, 0x24, 0x01, 0x01, 0xd0, - 0x01, 0x02, 0x02, 0xd0, 0x01, 0x03, 0x03, 0x92, 0xd0, 0x01, 0x04, 0x04, - 0xd0, 0x01, 0x05, 0x05, 0xd0, 0x01, 0x06, 0x49, 0x06, 0xd0, 0x01, 0x07, - 0x07, 0xd0, 0x01, 0x08, 0x08, 0xd0, 0x01, 0x24, 0x09, 0x09, 0xd0, 0x01, - 0x0a, 0x0a, 0xd0, 0x01, 0x0b, 0x0b, 0x92, 0xd0, 0x01, 0x0c, 0x0c, 0xd0, - 0x01, 0x0d, 0x0d, 0xd0, 0x01, 0x0e, 0x49, 0x0e, 0xd0, 0x01, 0x0f, 0x0f, - 0xd0, 0x01, 0x10, 0x10, 0xd0, 0x01, 0x24, 0x11, 0x11, 0xd0, 0x01, 0x12, - 0x12, 0xd0, 0x01, 0x13, 0x13, 0x92, 0xd0, 0x01, 0x14, 0x14, 0xd0, 0x01, - 0x15, 0x15, 0xd0, 0x01, 0x16, 0x49, 0x16, 0xd0, 0x01, 0x17, 0x17, 0xd0, - 0x01, 0x18, 0x18, 0xd0, 0x01, 0x24, 0x19, 0x19, 0xd0, 0x01, 0x1a, 0x1a, - 0xd0, 0x01, 0x1b, 0x1b, 0x92, 0xd0, 0x01, 0x1c, 0x1c, 0xd0, 0x01, 0x1d, - 0x1d, 0xd0, 0x01, 0x1e, 0x49, 0x1e, 0xd0, 0x01, 0x1f, 0x1f, 0xd0, 0x01, - 0x20, 0x20, 0xd0, 0x01, 0x24, 0x21, 0x21, 0xd0, 0x01, 0x22, 0x22, 0xd0, - 0x01, 0x23, 0x23, 0x92, 0xd0, 0x01, 0x24, 0x24, 0xd0, 0x01, 0x25, 0x25, - 0xd0, 0x01, 0x26, 0x49, 0x26, 0xd0, 0x01, 0x27, 0x27, 0xd0, 0x01, 0x28, - 0x28, 0xd0, 0x01, 0x24, 0x29, 0x29, 0xd0, 0x01, 0x2a, 0x2a, 0xd0, 0x01, - 0x2b, 0x2b, 0x93, 0xd0, 0x01, 0x2c, 0x2c, 0xd0, 0x01, 0x2d, 0x2d, 0xd0, - 0x01, 0xfb, 0x0f, 0xc0, 0xf3, 0x07, 0x7f, 0xff, 0x11, 0x58, 0x08, 0x00, - 0x12, 0x01, 0x00, 0x00, 0x30, 0x01, 0x01, 0x2f, 0x50, 0x07, 0x00, 0x0c, - 0xe5, 0x65, 0x2c, 0x67, 0x60, 0x0a, 0x06, 0x40, 0x06, 0x4a, 0x00, 0x15, - 0x61, 0x00, 0x70, 0x20, 0x03, 0x6e, 0x06, 0xc0, 0x7f, 0x6f, 0x06, 0xe0, - 0x7f, 0x8d, 0x06, 0x90, 0xff, 0x47, 0x00, 0x69, 0x41, 0x81, 0x51, 0x03, - 0x65, 0x06, 0x61, 0xff, 0x61, 0xf3, 0x06, 0x81, 0xff, 0x06, 0xf2, 0xff, - 0x7c, 0xc7, 0xf8, 0xbc, 0x0f, 0x13, 0x7f, 0x60, 0xe3, 0x23, 0x81, 0x06, - 0x54, 0x85, 0x2f, 0x04, 0x3f, 0x04, 0x3e, 0x01, 0x04, 0x3d, 0x04, 0x38, - 0x04, 0x4f, 0x04, 0x0e, 0x32, 0x7f, 0xe0, 0x07, 0x55, 0x7f, 0x10, 0x06, - 0x90, 0x7f, 0x03, 0x77, 0xfb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0xb4, 0x8a, 0x00, 0x11, 0x10, 0x00, 0x00, 0x30, 0x01, 0x88, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xaa, 0x1a, 0x4f, 0x5a, 0x00, 0x00, 0x00, 0x02, 0x88, 0xbd, 0x30, - 0xa6, 0x30, 0xeb, 0x01, 0x30, 0x79, 0x72, 0x25, 0x52, 0x02, 0x5e, 0x06, - 0x38, 0x21, 0x00, 0x53, 0x00, 0x65, 0x00, 0x6f, 0x00, 0x75, 0x00, 0x04, - 0x6c, 0x00, 0x2d, 0x00, 0x74, 0x20, 0x0b, 0x75, 0x00, 0x04, 0x6b, 0x00, - 0x62, 0x00, 0x79, 0x40, 0x15, 0x6c, 0x00, 0x17, 0x73, 0x00, 0x69, 0x05, - 0x00, 0x7f, 0xe9, 0x60, 0x7f, 0x06, 0x59, 0x1f, 0x90, 0xff, 0xa0, 0x0e, - 0x90, 0x7f, 0xfa, 0x06, 0x81, 0x7d, 0x00, 0x00, 0x96, 0x99, 0x14, 0x08, - 0x5c, 0x79, 0x72, 0x2b, 0x06, 0x62, 0xfd, 0x00, 0x00, 0x1c, 0x00, 0xc1, - 0xb8, 0xc6, 0xb9, 0xd2, 0xc4, 0xbc, 0xdc, 0x60, 0xc2, 0x0e, 0x92, 0x7f, - 0x06, 0x93, 0x7d, 0x00, 0x00, 0x21, 0x04, 0x35, 0x04, 0x04, 0x43, 0x04, - 0x3b, 0x04, 0x06, 0x92, 0x7f, 0x3e, 0x72, 0xe6, 0x06, 0x95, 0x7d, 0x07, - 0x35, 0x7f, 0x10, 0x06, 0xd0, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, - 0x03, 0x00, 0x88, 0xd7, 0x30, 0xb5, 0x30, 0xf3, 0x30, 0x83, 0x14, 0x5e, - 0xdf, 0x57, 0x06, 0x58, 0x17, 0x42, 0x28, 0x13, 0x73, 0x00, 0x11, 0x61, - 0x00, 0x6e, 0x28, 0x17, 0x67, 0x00, 0x77, 0x40, 0x09, 0x57, 0x67, 0x68, - 0x17, 0x6b, 0x05, 0x28, 0x17, 0x50, 0x80, 0x7f, 0x06, 0x5f, 0xb7, 0x90, - 0xff, 0xa0, 0x0e, 0xb0, 0x7f, 0xe1, 0x06, 0x81, 0x7f, 0xdc, 0x91, 0x71, - 0x5c, 0x7f, 0x80, 0x06, 0x82, 0xfd, 0x00, 0x00, 0x80, 0xbd, 0xb0, 0xc0, - 0x11, 0x1a, 0xad, 0xed, 0xc5, 0x06, 0x78, 0x17, 0x0e, 0xf2, 0x7f, 0x1f, - 0x28, 0x15, 0x41, 0x0d, 0x04, 0x30, 0x04, 0x3d, 0x06, 0x68, 0x19, 0x32, - 0x7f, 0xe3, 0x06, 0xa2, 0x7f, 0xc8, 0x06, 0xf5, 0x7f, 0x10, 0x06, 0xf0, - 0x7f, 0x02, 0x02, 0xd0, 0x01, 0xf2, 0x18, 0xc1, 0x00, 0x5b, 0x00, 0x00, - 0x04, 0x88, 0xc6, 0x30, 0xb0, 0x8a, 0x06, 0xa8, 0x15, 0x00, 0x00, 0x44, - 0x28, 0x13, 0x65, 0x28, 0x11, 0x75, 0xf0, 0x06, 0x68, 0x17, 0x90, 0x7f, - 0x06, 0xf0, 0xff, 0x10, 0x06, 0x50, 0x7f, 0x27, 0x59, 0xb1, 0x90, 0x86, - 0x06, 0xb8, 0x17, 0x00, 0xb3, 0x6c, 0xad, 0x06, 0xb8, 0x17, 0x0e, 0xf2, - 0xff, 0x22, 0x0f, 0x04, 0x4d, 0x04, 0x33, 0x28, 0x1b, 0x06, 0x6c, 0x16, - 0x42, 0x7f, 0x06, 0xb8, 0x17, 0xc8, 0x07, 0x95, 0x7f, 0x10, 0x06, 0x50, - 0x7f, 0x03, 0x03, 0xd0, 0x01, 0x7e, 0x19, 0x6f, 0x80, 0x28, 0x17, 0x05, - 0x88, 0xa4, 0x30, 0xf3, 0x30, 0xc1, 0x34, 0x30, 0xe7, 0x20, 0x05, 0x06, - 0x58, 0x1d, 0x49, 0x2f, 0xa9, 0x63, 0x00, 0x7c, 0x68, 0x4a, 0x9f, 0x06, - 0x3a, 0xb3, 0xd0, 0x7f, 0x06, 0x1f, 0xb4, 0x10, 0x06, 0xf0, 0x7f, 0xc1, - 0x4e, 0x21, 0xdd, 0x5d, 0x06, 0xb8, 0x17, 0x78, 0xc7, 0x9c, 0xcc, 0x06, - 0xb8, 0x17, 0x80, 0x0e, 0xf2, 0xff, 0x18, 0x04, 0x3d, 0x04, 0x47, 0x04, - 0x45, 0x3f, 0x04, 0x3e, 0x20, 0x07, 0x06, 0x3f, 0xb1, 0x32, 0x7f, 0x06, - 0xb8, 0x17, 0x07, 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, 0x20, 0x04, 0x04, - 0xd0, 0x01, 0xaa, 0x1a, 0x0c, 0x5a, 0x00, 0x02, 0x00, 0x06, 0x88, 0xaf, - 0x30, 0xa1, 0x28, 0x19, 0xb8, 0x2b, 0x30, 0xe5, 0x06, 0x68, 0x17, 0x47, - 0x8a, 0xa3, 0x6a, 0x06, 0x4a, 0xb3, 0xd0, 0x7f, 0xc4, 0x06, 0x1f, 0xb4, - 0x10, 0x06, 0xf0, 0x7f, 0x49, 0x51, 0xde, 0x06, 0xc8, 0x17, 0x11, 0xad, - 0x30, 0xfc, 0xc8, 0x06, 0xb8, 0x17, 0x0e, 0xf2, 0xff, 0x1a, 0x04, 0x32, - 0x04, 0x41, 0x30, 0x28, 0x1b, 0x34, 0x04, 0x36, 0x04, 0x43, 0x06, 0x28, - 0x19, 0xf2, 0x32, 0x7f, 0x06, 0xb8, 0x17, 0x07, 0xd5, 0x7f, 0x10, 0x06, - 0x10, 0x7f, 0x05, 0x05, 0xd0, 0x01, 0xf8, 0x22, 0x18, 0x37, 0x28, 0x17, - 0x07, 0x88, 0xc6, 0x28, 0x13, 0xe7, 0xc5, 0x28, 0x19, 0x06, 0x58, 0x15, - 0x00, 0x00, 0x44, 0x2a, 0x9d, 0x65, 0x28, 0x13, 0xf0, 0x06, 0x7a, 0xaf, - 0xd0, 0x7f, 0x06, 0xf0, 0xff, 0x10, 0x06, 0x10, 0x7f, 0x27, 0x59, 0x30, - 0x75, 0x8c, 0x06, 0xb8, 0x17, 0x00, 0xb3, 0x04, 0x06, 0xc8, 0x17, 0x0e, - 0xf2, 0xff, 0x22, 0x04, 0x5f, 0x4d, 0x48, 0x13, 0x3e, 0x28, 0x1b, 0x06, - 0x3f, 0xb1, 0x32, 0x7f, 0x06, 0xb8, 0x17, 0x07, 0xd5, 0x7f, 0x91, 0x10, - 0x06, 0x10, 0x7f, 0x06, 0x06, 0xd0, 0x01, 0xd9, 0x19, 0x9e, 0x28, 0x17, - 0x01, 0x08, 0x88, 0xa6, 0x30, 0xeb, 0x30, 0xb5, 0x06, 0xa8, 0x17, 0x1f, - 0x55, 0x00, 0x6c, 0x2a, 0x91, 0x3f, 0xb1, 0x06, 0x1a, 0xab, 0xd0, 0x7f, - 0x06, 0x5e, 0x2f, 0x84, 0x10, 0x06, 0xf0, 0x7f, 0x1a, 0x85, 0x71, 0x5c, - 0x06, 0xb8, 0x17, 0xb8, 0xc6, 0x30, 0xb0, 0xc0, 0x06, 0xb8, 0x17, 0x0e, - 0xf2, 0xff, 0x23, 0x04, 0x3b, 0x04, 0x07, 0x4c, 0x04, 0x41, 0x04, 0x30, - 0x06, 0x68, 0x17, 0x32, 0x7f, 0x06, 0xb8, 0x17, 0xc8, 0x07, 0x95, 0x7f, - 0x10, 0x06, 0x50, 0x7f, 0x07, 0x07, 0xd0, 0x01, 0x41, 0x19, 0xfe, 0x00, - 0x5b, 0x00, 0x00, 0x09, 0x88, 0xad, 0x30, 0xe7, 0x85, 0x28, 0x15, 0xae, - 0x30, 0x53, 0x90, 0x06, 0x5d, 0x2f, 0x47, 0x6a, 0x97, 0xa3, 0x3a, 0xa1, - 0x67, 0x2a, 0x99, 0x2d, 0x00, 0x64, 0x2f, 0xb9, 0x06, 0x90, 0x7f, 0xc3, - 0x10, 0x06, 0xf0, 0xff, 0x05, 0xff, 0xb5, 0xac, 0x4e, 0x7f, 0x75, 0x06, - 0x72, 0xfb, 0x3f, 0xff, 0x03, 0xbd, 0xac, 0x30, 0xae, 0xc4, 0xb3, 0x06, - 0x90, 0x7f, 0x0e, 0xf3, 0x7f, 0x10, 0x1a, 0x04, 0x51, 0x28, 0x11, 0x33, - 0x04, 0x38, 0x04, 0x1e, 0x34, 0x04, 0x3e, 0x06, 0x28, 0x19, 0x06, 0xf2, - 0x7f, 0x07, 0xf5, 0x7f, 0x10, 0x05, 0xf0, 0x7f, 0x08, 0x40, 0x08, 0xd0, - 0x01, 0xaa, 0x1a, 0x4f, 0x5a, 0x00, 0x00, 0x11, 0x0a, 0x88, 0xab, 0x28, - 0x15, 0xa6, 0x30, 0xa9, 0x28, 0x1b, 0xaf, 0x06, 0x58, 0x19, 0x47, 0x6a, - 0xa1, 0x77, 0x48, 0x1b, 0x05, 0xf8, 0x15, 0xf0, 0x7f, 0x10, 0x06, 0xf0, - 0xff, 0x84, 0x06, 0x1f, 0xb3, 0x5f, 0x6c, 0x9f, 0x53, 0x06, 0xb8, 0x17, - 0x15, 0xac, 0x31, 0xd0, 0xc6, 0x06, 0xd8, 0x17, 0x0e, 0xd3, 0x7f, 0x1a, - 0x04, 0x30, 0x28, 0x17, 0x5e, 0x32, 0x28, 0x13, 0x3d, 0x06, 0x48, 0x19, - 0x06, 0xf2, 0x7f, 0x07, 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, 0x09, 0x44, - 0x09, 0xd0, 0x01, 0xf9, 0x1a, 0xdb, 0x28, 0x17, 0x0b, 0x88, 0x11, 0xc1, - 0x30, 0xe5, 0x28, 0x19, 0xc1, 0x30, 0xe7, 0x28, 0x1f, 0x10, 0xd6, 0x30, - 0xaf, 0x06, 0x08, 0x1d, 0x43, 0x00, 0x68, 0x00, 0x5a, 0x75, 0x4f, 0xad, - 0x63, 0x20, 0x09, 0x7f, 0xb9, 0x62, 0x20, 0x13, 0x6b, 0xd5, 0x05, 0x4f, - 0x3b, 0x00, 0x50, 0x7f, 0x20, 0x2f, 0xb5, 0x75, 0x20, 0x05, 0x4e, 0x2f, - 0xc9, 0x6a, 0x72, 0x2f, 0xc1, 0x0e, 0x10, 0xff, 0x53, 0x2f, 0xc5, 0x74, - 0x20, 0x01, 0x65, 0xa8, 0x2f, 0xc9, 0x74, 0x21, 0x03, 0x69, 0x4f, 0xd3, - 0x61, 0x00, 0x6c, 0xde, 0x2f, 0xdd, 0x05, 0x51, 0x7f, 0x65, 0x20, 0x6b, - 0x71, 0x81, 0x30, 0x87, 0x04, 0x5f, 0xd3, 0xe0, 0x08, 0x5f, 0x05, 0x6e, - 0x17, 0x06, 0xa8, 0x19, 0xa9, 0xcd, 0xad, 0x1d, 0xcc, 0x81, 0xbd, 0x06, - 0x98, 0x19, 0x32, 0xe1, 0x52, 0xe3, 0x2d, 0x00, 0x63, 0x8b, 0xa0, 0x06, - 0x73, 0x7f, 0x6f, 0x05, 0x21, 0xfd, 0x00, 0x00, 0x27, 0x04, 0x45, 0x2c, - 0x04, 0x43, 0x28, 0x19, 0x47, 0x20, 0x07, 0x38, 0x1b, 0x2d, 0x00, 0x47, - 0x1f, 0x20, 0x0f, 0x3a, 0x04, 0x42, 0x05, 0x68, 0x23, 0x06, 0xf2, 0x7f, - 0x08, 0x55, 0x7f, 0x91, 0x10, 0x05, 0x90, 0x7f, 0x0a, 0x0a, 0xd0, 0x01, - 0x49, 0x1a, 0xf0, 0x28, 0x17, 0x46, 0x0c, 0xc8, 0x17, 0xca, 0x30, 0xe0, - 0x07, 0x68, 0x17, 0x36, 0x81, 0x6d, 0xbb, 0x07, 0x28, 0x17, 0x53, 0x28, - 0xb3, 0x04, 0xb8, 0x15, 0x08, 0x90, 0xff, 0x4d, 0x29, 0xa3, 0x38, 0x0d, - 0x75, 0x64, 0x04, 0x88, 0x11, 0x01, 0x58, 0x17, 0x31, 0x81, 0x72, 0x04, - 0xe5, 0x97, 0x57, 0x06, 0xe8, 0x17, 0x2f, 0xa8, 0xb0, 0x06, 0x98, 0x17, - 0x5a, 0x2b, 0x95, 0x31, 0xe5, 0x06, 0x58, 0x15, 0x00, 0xf8, 0x17, 0xb0, - 0x33, 0x7f, 0x6c, 0x04, 0xcf, 0xc2, 0x00, 0x18, 0x17, 0x1d, 0x04, 0x30, - 0x04, 0x1e, 0x3c, 0x04, 0x34, 0x05, 0xa8, 0x17, 0x06, 0xb2, 0x7f, 0x08, - 0x55, 0x7f, 0x10, 0x05, 0x90, 0x7f, 0x0b, 0x45, 0x0b, 0xd0, 0x01, 0xd9, - 0x19, 0x9e, 0x28, 0x17, 0x0d, 0x28, 0x17, 0x00, 0xe7, 0x30, 0xeb, 0x30, - 0xe9, 0x30, 0xd6, 0x30, 0x6a, 0xaf, 0x06, 0x08, 0x13, 0x3f, 0xff, 0x4a, - 0x4f, 0xa3, 0x6c, 0x2e, 0x87, 0x61, 0xfd, 0x05, 0xaf, 0x25, 0x00, 0x50, - 0x7f, 0x78, 0x0d, 0x5e, 0xa3, 0x04, 0xd8, 0x0f, 0x08, 0x50, 0xff, 0x53, - 0x2f, 0xb1, 0x5f, 0x74, 0x4f, 0x9d, 0x6e, 0x2f, 0xa3, 0x38, 0x17, 0x04, - 0xb8, 0x13, 0x00, 0x31, 0x7f, 0x58, 0x0d, 0xc2, 0x05, 0x1e, 0x27, 0x7f, - 0xff, 0x68, 0x51, 0x57, 0x7f, 0x06, 0xbd, 0xaf, 0x04, 0x07, 0xc8, 0x7c, - 0xb7, 0x81, 0xbd, 0x06, 0x98, 0x17, 0x3f, 0x91, 0x52, 0xed, 0x7c, 0x2d, - 0xc3, 0x8b, 0x06, 0x73, 0x7f, 0x38, 0x0d, 0x05, 0x91, 0xfd, 0x38, 0x17, - 0x3e, 0x04, 0x54, 0x3b, 0x20, 0x01, 0x30, 0x28, 0x11, 0x1f, 0x28, 0x21, - 0x3a, 0x04, 0x6e, 0x42, 0x05, 0x68, 0x11, 0x72, 0x7f, 0x85, 0x06, 0xc2, - 0x7f, 0x07, 0xb5, 0x7f, 0x10, 0x06, 0x30, 0x7f, 0x0c, 0x45, 0x0c, 0xd0, - 0x01, 0x7e, 0x19, 0x5e, 0x28, 0x17, 0x0e, 0x88, 0x17, 0x1f, 0xca, 0x30, - 0xe0, 0x07, 0x08, 0x17, 0x05, 0x9f, 0x25, 0x00, 0xd8, 0x17, 0x3e, 0xa3, - 0x05, 0x58, 0x15, 0xb7, 0x07, 0xf0, 0xff, 0x4d, 0x2f, 0xb1, 0x38, 0x0d, - 0x64, 0x05, 0x28, 0x11, 0x00, 0xb8, 0x17, 0x3e, 0x27, 0x4c, 0x72, 0x05, - 0x65, 0x97, 0x57, 0x7f, 0x06, 0xbd, 0xaf, 0x38, 0x17, 0xa8, 0xb0, 0xbe, - 0x06, 0x98, 0x17, 0x5a, 0x2f, 0xad, 0x31, 0xef, 0x06, 0x58, 0x15, 0x00, - 0x58, 0x17, 0x33, 0x7f, 0x6c, 0xd1, 0x05, 0x6f, 0x40, 0xb8, 0x17, 0x1d, - 0x28, 0x1d, 0x3c, 0x04, 0x34, 0x06, 0x08, 0x17, 0xe4, 0x06, 0xb2, 0x7f, - 0x07, 0xb5, 0x7f, 0x10, 0x06, 0x30, 0x7f, 0x0d, 0x0d, 0xd0, 0x01, 0xf8, - 0x18, 0x44, 0x37, 0x28, 0x17, 0x0f, 0x88, 0xad, 0x28, 0x17, 0xf3, 0x30, - 0x44, 0xb5, 0x20, 0x03, 0xd6, 0x30, 0xaf, 0x06, 0x28, 0x19, 0x47, 0x00, - 0x41, 0x79, 0x4f, 0xb1, 0x6e, 0x00, 0x67, 0x00, 0x73, 0x48, 0x1b, 0x7e, - 0x67, 0x05, 0xcf, 0x37, 0x00, 0x30, 0x7f, 0x78, 0x1f, 0x5e, 0xb5, 0x04, - 0xd8, 0x21, 0x08, 0x50, 0xff, 0x53, 0xaf, 0x2f, 0xc5, 0x74, 0x4f, 0xaf, - 0x6e, 0x2f, 0xb5, 0x38, 0x29, 0x04, 0x78, 0x25, 0x00, 0x71, 0x7f, 0xc2, - 0x58, 0x1f, 0x05, 0x1e, 0x39, 0x86, 0x5e, 0x1a, 0x5c, 0x06, 0xbd, 0xaf, - 0xbd, 0x07, 0xac, 0xc1, 0xc0, 0x81, 0xbd, 0x06, 0x98, 0x17, 0x3f, 0x9b, - 0x52, 0xe5, 0x78, 0x2d, 0x00, 0x43, 0x8b, 0x06, 0x73, 0x7f, 0x38, 0x1f, - 0x05, 0x11, 0xfd, 0x00, 0x00, 0x1a, 0x02, 0x04, 0x51, 0x04, 0x3d, 0x04, - 0x41, 0x28, 0x17, 0x3d, 0x80, 0x28, 0x19, 0x1f, 0x04, 0x43, 0x04, 0x3a, - 0x04, 0x42, 0x9c, 0x05, 0xa8, 0x19, 0x76, 0x61, 0x06, 0xd2, 0x7f, 0x08, - 0x35, 0x7f, 0x10, 0x05, 0xb0, 0x7f, 0x0e, 0x0e, 0x80, 0xd0, 0x01, 0x7e, - 0x19, 0x6f, 0x5b, 0x00, 0x00, 0x10, 0x8f, 0xa8, 0x17, 0xca, 0x30, 0xe0, - 0x07, 0x68, 0x17, 0x05, 0xbf, 0x37, 0x00, 0xb8, 0x17, 0x3e, 0xb5, 0xdb, - 0x04, 0xd8, 0x15, 0x08, 0x70, 0xff, 0x4d, 0x2f, 0xc5, 0x38, 0x0d, 0x64, - 0x04, 0xa8, 0x11, 0x01, 0x38, 0x17, 0xbc, 0x3e, 0x39, 0x72, 0x04, 0xcf, - 0xca, 0x38, 0x17, 0x06, 0xbd, 0xaf, 0x38, 0x17, 0xa8, 0xb0, 0xbe, 0x06, - 0x98, 0x17, 0x5a, 0x2f, 0x9b, 0x31, 0xe7, 0x06, 0x58, 0x15, 0x00, 0xd8, - 0x17, 0x33, 0x7f, 0x6c, 0xd1, 0x04, 0xef, 0xba, 0xd8, 0x17, 0x1d, 0x28, - 0x1f, 0x3c, 0x04, 0x34, 0x05, 0xe8, 0x17, 0xe4, 0x06, 0xb2, 0x7f, 0x08, - 0x35, 0x7f, 0x10, 0x05, 0xb0, 0x7f, 0x0f, 0x0f, 0xd0, 0x01, 0x1a, 0x19, - 0x40, 0x7c, 0x28, 0x17, 0x11, 0x88, 0xc1, 0x30, 0xa7, 0x30, 0x00, 0xb8, - 0x30, 0xe5, 0x30, 0x79, 0x72, 0x25, 0x52, 0x0a, 0xea, 0x81, 0xbb, 0x6c, - 0x05, 0xfd, 0x39, 0x4a, 0x2f, 0xad, 0x6a, 0xb5, 0x2f, 0x9d, 0x2d, 0x4e, - 0x9d, 0x3f, 0x27, 0x62, 0x6f, 0xc1, 0x6c, 0x20, 0x17, 0x07, 0x61, 0x00, - 0x63, 0x00, 0x68, 0x46, 0x9f, 0x04, 0x7f, 0x39, 0x70, 0x7f, 0xf8, 0x06, - 0x7e, 0x2f, 0x90, 0xff, 0x05, 0x3b, 0x9d, 0x08, 0x90, 0xff, 0x06, 0x8f, - 0x2f, 0x6d, 0xde, 0x5d, 0x18, 0x79, 0x72, 0x2b, 0x06, 0x42, 0xfb, 0x3f, - 0xff, 0x1c, 0xc8, 0xfc, 0x00, 0xc8, 0xb9, 0xd2, 0xc4, 0xbc, 0x90, 0xc7, - 0x58, 0x62, 0xce, 0x06, 0x38, 0x1d, 0x0e, 0xf2, 0x7f, 0x27, 0x04, 0x35, - 0x28, 0x07, 0x36, 0x33, 0x04, 0x43, 0x05, 0xc8, 0x0d, 0x9f, 0xff, 0xdf, - 0x6f, 0x32, 0x7f, 0x06, 0x55, 0x7b, 0xc8, 0x07, 0xb5, 0x7f, 0x10, 0x06, - 0x70, 0x7f, 0x10, 0x10, 0xd0, 0x01, 0xd5, 0x17, 0xfa, 0x49, 0x59, 0x00, - 0x3f, 0xff, 0x01, 0x01, 0xd0, 0x01, 0x02, 0x02, 0xd0, 0x01, 0x24, 0x03, - 0x03, 0xd0, 0x01, 0x04, 0x04, 0xd0, 0x01, 0x05, 0x05, 0x92, 0xd0, 0x01, - 0x06, 0x06, 0xd0, 0x01, 0x07, 0x07, 0xd0, 0x01, 0x08, 0x49, 0x08, 0xd0, - 0x01, 0x09, 0x09, 0xd0, 0x01, 0x0a, 0x0a, 0xd0, 0x01, 0x24, 0x0b, 0x0b, - 0xd0, 0x01, 0x0c, 0x0c, 0xd0, 0x01, 0x0d, 0x0d, 0x9e, 0xd0, 0x01, 0x0e, - 0x0e, 0xd0, 0x01, 0xf9, 0x1f, 0xf1, 0x17, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x11, 0x58, 0x08, 0x00, 0x12, 0x01, 0x00, 0x00, 0x30, 0x01, 0x88, 0x10, - 0x50, 0x07, 0x00, 0x0c, 0xd3, 0x97, 0xfd, 0x56, 0x60, 0x0a, 0x06, 0x40, - 0x06, 0x53, 0x00, 0x00, 0x6f, 0x00, 0x75, 0x00, 0x74, 0x00, 0x68, 0x00, - 0x10, 0x20, 0x00, 0x4b, 0x20, 0x0b, 0x72, 0x00, 0x65, 0x00, 0x54, 0x61, - 0x05, 0xa0, 0x90, 0x43, 0x40, 0x73, 0xe9, 0x20, 0x75, 0x20, 0x00, 0x56, - 0x64, 0x20, 0x89, 0x20, 0x20, 0x91, 0x75, 0x20, 0x09, 0x05, 0x90, 0xff, - 0xfc, 0xbc, 0x20, 0x77, 0x6b, 0x06, 0x20, 0xf9, 0xb0, 0xff, 0x31, 0x73, - 0x30, 0xff, 0x65, 0x00, 0x6a, 0x6c, 0x05, 0xe1, 0x01, 0x00, 0x70, 0x7f, - 0x72, 0x05, 0x62, 0x94, 0xe9, 0x06, 0xe2, 0xff, 0x00, 0x01, 0xb3, 0x5c, - 0xd5, 0xfc, 0xbb, 0x6d, 0xad, 0x06, 0x73, 0x83, 0x56, 0x5a, 0x23, 0x7d, - 0x69, 0x22, 0xf9, 0x2d, 0x06, 0x43, 0x7d, 0x92, 0x7f, 0x69, 0xa8, 0x62, - 0x81, 0x6f, 0x63, 0x81, 0x6c, 0x05, 0x64, 0x94, 0x2e, 0x04, 0x36, 0x00, - 0x04, 0x3d, 0x04, 0x30, 0x04, 0x4f, 0x04, 0x20, 0x00, 0x00, 0x1a, 0x04, - 0x3e, 0x04, 0x40, 0x04, 0x35, 0xc3, 0x20, 0x0b, 0x05, 0x95, 0x11, 0xd3, - 0x97, 0x0b, 0x57, 0x0e, 0xb5, 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x80, 0x03, - 0x77, 0xfb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0xec, 0xd3, 0x00, 0x11, 0x16, 0x00, 0x00, 0x30, 0x01, 0x80, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xcd, 0x11, 0x67, 0x56, 0x00, 0x00, 0x00, 0x02, 0x80, 0xf0, 0x53, - 0x17, 0x53, 0x02, 0x40, 0x5e, 0x06, 0x98, 0x1b, 0x54, 0x00, 0x61, 0x00, - 0x69, 0x00, 0x11, 0x70, 0x00, 0x65, 0x20, 0x05, 0x20, 0x00, 0x43, 0x20, - 0x0b, 0x1b, 0x74, 0x00, 0x79, 0x06, 0x60, 0x7f, 0x06, 0xd0, 0xff, 0x68, - 0x07, 0x01, 0x7f, 0x06, 0xb1, 0xff, 0x50, 0xe9, 0x06, 0x61, 0x7f, 0x2d, - 0x06, 0xe3, 0x96, 0xc0, 0xd0, 0x74, 0xc7, 0x0c, 0xa0, 0xbc, 0x74, 0xc7, - 0x07, 0x33, 0x7f, 0x0e, 0x32, 0x7f, 0x22, 0x04, 0x01, 0x30, 0x04, 0x39, - 0x04, 0x31, 0x04, 0x4d, 0x20, 0x05, 0x99, 0x06, 0x3d, 0x21, 0xfa, 0x81, - 0x0f, 0x95, 0x7f, 0x10, 0x06, 0x30, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x81, - 0x58, 0x17, 0x03, 0x80, 0xd8, 0x9a, 0xc4, 0x96, 0x06, 0xb8, 0x17, 0x54, - 0x4b, 0x28, 0x17, 0x6f, 0x27, 0x13, 0x73, 0x28, 0x1d, 0x75, 0x00, 0x1e, - 0x6e, 0x00, 0x67, 0x05, 0xe8, 0x1d, 0x00, 0x10, 0x7f, 0x06, 0xf0, 0xff, - 0x0d, 0xd0, 0x7f, 0x43, 0x8a, 0x21, 0xfd, 0x6e, 0x00, 0x64, 0x2a, 0x1d, - 0x64, 0x22, 0x07, 0x20, 0xb8, 0x20, 0x09, 0x65, 0x2a, 0x1f, 0x05, 0x91, - 0x95, 0x06, 0xf8, 0x17, 0x00, 0xac, 0x24, 0x1a, 0xc6, 0x9d, 0xc2, 0x07, - 0xb3, 0x7f, 0x0d, 0xd1, 0xff, 0x13, 0x28, 0x17, 0x3e, 0x03, 0x04, 0x41, - 0x04, 0x4e, 0x04, 0x3d, 0x06, 0x48, 0x17, 0x10, 0x00, 0x15, 0x7f, 0x90, - 0x10, 0x05, 0xd0, 0x7f, 0x02, 0x02, 0xd0, 0x01, 0x12, 0x10, 0x88, 0x55, - 0x01, 0x00, 0x00, 0x04, 0x80, 0xfa, 0x57, 0x86, 0x06, 0xe8, 0x17, 0x5f, - 0x65, 0x2f, 0xab, 0x6c, 0x06, 0x48, 0x13, 0x00, 0x10, 0x7f, 0x06, 0xf0, - 0xff, 0x10, 0x06, 0x10, 0x7f, 0x06, 0xf8, 0x17, 0x0a, 0xc0, 0xc9, 0xfd, - 0xb8, 0x06, 0xb8, 0x9a, 0x43, 0x2b, 0x93, 0x69, 0x80, 0x0e, 0xa2, 0xff, - 0x1a, 0x04, 0x38, 0x04, 0x3b, 0x04, 0x43, 0xb9, 0x28, 0x15, 0x33, 0x06, - 0x48, 0x17, 0x0f, 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, 0x03, 0x03, 0xd0, - 0x01, 0x00, 0xdd, 0x11, 0x91, 0x56, 0x00, 0x00, 0x05, 0x80, 0x0a, 0xb0, - 0x65, 0xf9, 0x7a, 0x06, 0xba, 0xaf, 0x48, 0x4f, 0xa9, 0x6e, 0x2f, 0x00, - 0x63, 0x2f, 0xb3, 0x75, 0x06, 0x28, 0x17, 0xd0, 0x7f, 0x06, 0xf0, 0xff, - 0x10, 0x06, 0x10, 0x7f, 0x86, 0x06, 0xf8, 0x17, 0xe0, 0xc2, 0xfc, 0xc8, - 0x06, 0xb8, 0x9a, 0x0e, 0xf2, 0xff, 0x21, 0x80, 0x28, 0x17, 0x3d, 0x04, - 0x4c, 0x04, 0x47, 0x04, 0x36, 0xf2, 0x28, 0x1d, 0x06, 0x1f, 0xb7, 0x0f, - 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, 0x04, 0x04, 0xd0, 0x01, 0x95, 0x20, - 0x11, 0x03, 0x28, 0x17, 0x06, 0x80, 0xf0, 0x53, 0x2d, 0x47, 0x4e, 0x06, - 0xba, 0xaf, 0x54, 0x00, 0x61, 0x2c, 0xaf, 0x58, 0x15, 0x06, 0x3a, 0xb1, - 0xf0, 0xf0, 0x7f, 0x06, 0xf0, 0xff, 0x10, 0x05, 0xf0, 0x7f, 0x06, 0xf8, - 0x17, 0xc0, 0xd0, 0x74, 0xc7, 0x30, 0x11, 0xc9, 0x07, 0x93, 0x7f, 0x0d, - 0xf2, 0xff, 0x22, 0x04, 0x30, 0x04, 0x53, 0x39, 0x68, 0x15, 0x3d, 0x06, - 0x28, 0x17, 0xfa, 0x81, 0x0f, 0xd5, 0x7f, 0x10, 0x05, 0xf0, 0x7f, 0x20, - 0x05, 0x05, 0xd0, 0x01, 0x29, 0x11, 0xcb, 0x55, 0x00, 0x01, 0x00, 0x07, - 0x80, 0x09, 0x56, 0xa9, 0x7f, 0x06, 0xba, 0xaf, 0x57, 0x43, 0x2f, 0xa7, - 0x69, 0x28, 0x1b, 0x79, 0x2f, 0xb5, 0x06, 0x1a, 0xad, 0xd0, 0x7f, 0xe1, - 0x06, 0xf0, 0xff, 0x10, 0x06, 0x30, 0x7f, 0x06, 0xf8, 0x17, 0x90, 0xc7, - 0x74, 0xc7, 0x06, 0xb8, 0x9a, 0x80, 0x0e, 0xf2, 0xff, 0x26, 0x04, 0x37, - 0x04, 0x4f, 0x04, 0x38, 0xf2, 0x06, 0x28, 0x11, 0x5f, 0xff, 0x0f, 0xb5, - 0x7f, 0x10, 0x06, 0x30, 0x7f, 0x06, 0x06, 0xd0, 0x01, 0xaf, 0x20, 0x10, - 0xa7, 0x28, 0x17, 0x08, 0x80, 0xf0, 0x53, 0x57, 0x57, 0x53, 0x07, 0x1a, - 0xaf, 0x6e, 0x2f, 0xb5, 0x6e, 0x06, 0x48, 0x17, 0xb0, 0x7f, 0x06, 0xf0, - 0xff, 0xc0, 0x10, 0x06, 0x30, 0x7f, 0x06, 0xf8, 0x17, 0xc0, 0xd0, 0x74, - 0xc7, 0x9c, 0xb0, 0xc0, 0x07, 0x53, 0x7f, 0x0e, 0x32, 0xff, 0x22, 0x04, - 0x30, 0x04, 0x39, 0x04, 0x44, 0x3d, 0x20, 0x05, 0x3d, 0x04, 0x4c, 0x06, - 0x28, 0x1d, 0xfa, 0x81, 0xc8, 0x0f, 0x95, 0x7f, 0x10, 0x06, 0x30, 0x7f, - 0x07, 0x07, 0xd0, 0x01, 0x59, 0x10, 0x78, 0x82, 0x28, 0x17, 0x09, 0x80, - 0xb0, 0x65, 0x17, 0x06, 0xc8, 0x17, 0x4e, 0x0d, 0x00, 0x65, 0x00, 0x77, - 0x2a, 0xa9, 0x58, 0x1f, 0x70, 0x20, 0x0d, 0x80, 0x05, 0xda, 0xb7, 0x4e, - 0x00, 0x6f, 0x00, 0x75, 0x00, 0x76, 0xba, 0x20, 0x85, 0x61, 0x20, 0x07, - 0xd0, 0x87, 0x05, 0x3f, 0xc0, 0x58, 0x49, 0x15, 0x62, 0xeb, 0x05, 0x80, - 0x6f, 0x01, 0x31, 0x7f, 0x05, 0xd1, 0xff, 0x75, 0x22, 0x01, 0x76, 0x21, - 0x85, 0x92, 0x03, 0x60, 0xe9, 0x05, 0xae, 0xbb, 0x06, 0xf8, 0x17, 0xe0, - 0xc2, 0xa0, 0xbc, 0x74, 0x56, 0xc7, 0x06, 0xb3, 0x7f, 0x69, 0x23, 0x81, - 0x75, 0x06, 0x82, 0x03, 0x33, 0x7f, 0x76, 0xc0, 0x2e, 0xaf, 0x06, 0x72, - 0x81, 0x1d, 0x04, 0x3e, 0x04, 0x32, 0x04, 0x51, 0x4b, 0x28, 0x1b, 0x20, - 0x68, 0x23, 0x31, 0x04, 0x4d, 0x28, 0x29, 0xe4, 0x05, 0x7f, 0xc1, 0x0f, - 0x15, 0x7f, 0x10, 0x06, 0xd0, 0x7f, 0x08, 0x08, 0xd0, 0x01, 0xc3, 0x11, - 0x00, 0x5d, 0x56, 0x00, 0x00, 0x0a, 0x80, 0x43, 0x68, 0x2b, 0x12, 0x57, - 0x06, 0xfa, 0xaf, 0x6f, 0x2a, 0xa1, 0x75, 0x06, 0x6a, 0xb1, 0xd0, 0x7f, - 0xe2, 0x06, 0xf0, 0xff, 0x0e, 0x10, 0x7f, 0x3c, 0xa1, 0x75, 0x00, 0x64, - 0x2e, 0xb5, 0x64, 0xbc, 0x2c, 0xaf, 0x64, 0x2a, 0x25, 0x5a, 0x23, 0x05, - 0x71, 0x93, 0x06, 0xf8, 0x17, 0xc0, 0xd0, 0x03, 0x24, 0xc6, 0x04, 0xc7, - 0x48, 0xc5, 0x07, 0x53, 0x7f, 0x06, 0x51, 0xff, 0xf1, 0x51, 0xfd, 0x31, - 0xf9, 0x06, 0x11, 0xff, 0x38, 0x0b, 0x3e, 0x04, 0x4e, 0x28, 0x11, 0x1e, - 0x3d, 0x04, 0x4c, 0x05, 0x88, 0x0d, 0xa2, 0xff, 0x0f, 0xc5, 0x7f, 0x10, - 0x06, 0x10, 0x7f, 0x09, 0x44, 0x09, 0xd0, 0x01, 0xc2, 0x11, 0x40, 0x28, - 0x17, 0x0b, 0x80, 0x02, 0xb0, 0x65, 0xf9, 0x7a, 0x0c, 0x77, 0x06, 0x9d, - 0x34, 0x48, 0x22, 0x00, 0x73, 0x4f, 0x31, 0x43, 0x00, 0x68, 0x4f, 0xaf, - 0x43, 0xb5, 0x4f, 0xbf, 0x6e, 0x05, 0x88, 0x1b, 0x70, 0x7f, 0x63, 0x60, - 0x7f, 0x28, 0x20, 0x09, 0x15, 0x6f, 0x00, 0x6d, 0x2b, 0x2d, 0xe9, 0x66, - 0xa7, 0x29, 0x04, 0xcf, 0xc7, 0x17, 0x4b, 0x00, 0x72, 0x4f, 0xa3, 0x73, - 0x2f, 0xb3, 0xd0, 0x8b, 0x05, 0x77, 0x97, 0x57, 0x6f, 0x41, 0x6d, 0x65, - 0x4d, 0xb3, 0x64, 0x4c, 0x2d, 0xd1, 0x93, 0x05, 0x30, 0x7f, 0xb8, 0x58, - 0x17, 0x6f, 0x88, 0x19, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x17, 0xe0, 0xc2, - 0xfc, 0x07, 0xc8, 0x20, 0x00, 0x04, 0xd6, 0x07, 0x53, 0x7f, 0x06, 0x3a, - 0x17, 0x06, 0xd1, 0xff, 0x10, 0x21, 0x04, 0x38, 0x48, 0x11, 0x47, 0x04, - 0x36, 0x04, 0x20, 0x43, 0x04, 0x33, 0xff, 0x43, 0x04, 0x35, 0x04, 0x37, - 0x1c, 0x04, 0x34, 0x04, 0x04, 0xd3, 0xf7, 0x7f, 0xff, 0x35, 0x7f, 0x23, - 0x7e, 0xc8, 0x0f, 0x15, 0x7f, 0x10, 0x06, 0x70, 0x7f, 0x0a, 0x0a, 0xd0, - 0x01, 0xa8, 0x11, 0x0b, 0x81, 0x28, 0x17, 0x0c, 0x80, 0xd7, 0x82, 0x17, - 0x68, 0x06, 0xb8, 0x17, 0x6f, 0x4d, 0x2e, 0x2f, 0x3f, 0xb1, 0x6c, 0x46, - 0x91, 0x05, 0xf8, 0x15, 0xf0, 0x7f, 0x05, 0xf8, 0x15, 0xfa, 0xd8, 0x17, - 0xb1, 0x0b, 0x05, 0xd5, 0x97, 0xd8, 0x17, 0x05, 0xb0, 0x87, 0x44, 0x49, - 0x13, 0x74, 0xf8, 0x29, 0x1d, 0x3c, 0xa7, 0x98, 0x19, 0x05, 0x71, 0x0b, - 0x06, 0xf8, 0x17, 0x00, 0xba, 0x24, 0x1c, 0xc6, 0xac, 0xb9, 0x06, 0x98, - 0x19, 0x06, 0x32, 0x73, 0x07, 0xb1, 0xff, 0x1c, 0x04, 0x07, 0x4f, 0x04, - 0x3e, 0x04, 0x3b, 0x28, 0x1d, 0x06, 0x18, 0x13, 0x3f, 0xff, 0xf2, 0x35, - 0x7f, 0x06, 0xb8, 0x17, 0x07, 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, 0x0b, - 0x0b, 0xd0, 0x01, 0x72, 0x00, 0x11, 0xe6, 0x55, 0x00, 0x00, 0x0e, 0x80, - 0x70, 0x1a, 0x5f, 0x16, 0x53, 0x06, 0xb8, 0x17, 0x3e, 0x93, 0x61, 0x2f, - 0xaf, 0x67, 0xff, 0x4f, 0xaf, 0x3e, 0xb3, 0x05, 0xda, 0xb1, 0x00, 0x10, - 0x7f, 0x05, 0xd8, 0x1b, 0xb8, 0x17, 0xf1, 0x0b, 0x06, 0x78, 0x17, 0xf0, - 0x05, 0xb0, 0x87, 0x00, 0x5e, 0x2f, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x17, - 0xa5, 0xc7, 0x54, 0xd6, 0xf0, 0x06, 0x98, 0x15, 0x00, 0x13, 0x7f, 0x06, - 0x13, 0xff, 0x06, 0xd1, 0xff, 0x27, 0x04, 0x36, 0x04, 0x01, 0x30, 0x04, - 0x3d, 0x04, 0x45, 0x04, 0x43, 0x20, 0x07, 0xf9, 0x06, 0x18, 0x1b, 0x35, - 0x7f, 0x06, 0xb8, 0x17, 0x08, 0x15, 0x7f, 0x10, 0x05, 0xd0, 0x7f, 0x0c, - 0x0c, 0xd0, 0x01, 0x10, 0x1d, 0x11, 0xb6, 0x28, 0x17, 0x0f, 0x80, 0x57, - 0x53, 0x2d, 0x95, 0x62, 0x06, 0xb8, 0x17, 0x4e, 0x48, 0x15, 0x3e, 0x29, - 0x75, 0x06, 0x4a, 0xaf, 0xff, 0xd0, 0x7f, 0x05, 0xd8, 0x13, 0xf8, 0x17, - 0xb1, 0x0b, 0x05, 0xd5, 0x97, 0xd8, 0x17, 0x05, 0xb0, 0x87, 0x00, 0x58, - 0x17, 0xc0, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x17, 0x9c, 0xb0, 0x30, 0xd1, - 0xb0, 0xc6, 0xe8, 0x06, 0x98, 0x19, 0x06, 0x32, 0x73, 0x07, 0xb1, 0xff, - 0x1d, 0x48, 0x15, 0x4c, 0x04, 0x42, 0x3f, 0x04, 0x3e, 0x28, 0x19, 0x06, - 0x18, 0x17, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x07, 0xd5, 0x7f, 0x10, 0x06, - 0x10, 0x7f, 0x22, 0x0d, 0x0d, 0xd0, 0x01, 0xfe, 0x10, 0xd4, 0x28, 0x17, - 0x10, 0x05, 0x80, 0xf2, 0x96, 0x97, 0x67, 0x06, 0xb8, 0x17, 0x59, 0x4a, - 0x9b, 0x5f, 0x6c, 0x2f, 0x31, 0x6e, 0x06, 0x48, 0x17, 0xd0, 0x7f, 0x06, - 0xd8, 0x17, 0xb1, 0x0b, 0x06, 0xb8, 0x17, 0xf0, 0x05, 0xb0, 0x87, 0x00, - 0x5e, 0x2f, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x17, 0x08, 0xc7, 0xb0, 0xb9, - 0xf4, 0x06, 0x98, 0x15, 0xd3, 0x7f, 0x07, 0x98, 0x17, 0x05, 0x93, 0x09, - 0x2e, 0x48, 0x15, 0x3b, 0x04, 0x7e, 0x38, 0x48, 0x1d, 0x06, 0x18, 0x17, - 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x07, 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, - 0x0e, 0x44, 0x0e, 0xd0, 0x01, 0xd8, 0x10, 0xb5, 0x28, 0x17, 0x11, 0x80, - 0x08, 0x09, 0x56, 0xa9, 0x7f, 0x06, 0xb8, 0x17, 0x43, 0x00, 0x68, 0xbf, - 0x2f, 0x2d, 0x61, 0x2a, 0x9f, 0x3e, 0xa9, 0x06, 0x1a, 0xaf, 0xd0, 0x7f, - 0x06, 0xd8, 0x17, 0xb1, 0x0b, 0xf8, 0x06, 0xb8, 0x17, 0x05, 0xb0, 0x87, - 0x00, 0x5e, 0x2f, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x17, 0x90, 0xc7, 0x74, - 0x75, 0xc7, 0x06, 0xb8, 0x17, 0x06, 0x32, 0x73, 0x07, 0xb1, 0xff, 0x26, - 0x28, 0x03, 0x4f, 0x28, 0x15, 0x7e, 0xa0, 0x06, 0x08, 0x11, 0x5f, 0xff, - 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x07, 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, - 0x0f, 0x44, 0x0f, 0xd0, 0x01, 0xaf, 0x10, 0xa7, 0x28, 0x17, 0x14, 0x80, - 0x0a, 0x4f, 0x5c, 0x71, 0x67, 0x06, 0xb8, 0x17, 0x50, 0x4f, 0xa9, 0x67, - 0xdf, 0x2f, 0xa1, 0x3f, 0xb7, 0x67, 0x06, 0x0a, 0xb3, 0x00, 0x10, 0x7f, - 0x05, 0xd8, 0x1b, 0xb8, 0x17, 0xf1, 0x0b, 0xf8, 0x06, 0x78, 0x17, 0x05, - 0xb0, 0x87, 0x00, 0x5e, 0x2f, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x17, 0x51, - 0xd5, 0x65, 0x75, 0xb4, 0x06, 0xb8, 0x17, 0x06, 0x32, 0x73, 0x07, 0xb1, - 0xff, 0x1f, 0x28, 0x13, 0x3d, 0x28, 0x0b, 0x7f, 0x43, 0x20, 0x05, 0x3c, - 0x17, 0x05, 0xf8, 0x1b, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x08, 0x15, 0x7f, - 0x10, 0x05, 0xd0, 0x7f, 0x22, 0x10, 0x10, 0xd0, 0x01, 0x1e, 0x10, 0xb0, - 0x28, 0x17, 0x15, 0x05, 0x80, 0x9c, 0x5b, 0x2d, 0x86, 0x06, 0xb8, 0x17, - 0x59, 0x2f, 0xad, 0x51, 0x6c, 0x2f, 0xaf, 0x6e, 0x06, 0x4a, 0xad, 0x00, - 0x00, 0x49, 0x80, 0x7d, 0xff, 0x05, 0xd8, 0x0f, 0x00, 0x38, 0x17, 0x91, - 0x0b, 0x05, 0xfd, 0xaf, 0xd8, 0x17, 0x05, 0xb0, 0x87, 0x00, 0x5e, 0x2f, - 0x05, 0x91, 0x09, 0x87, 0x06, 0xf8, 0x17, 0x74, 0xc7, 0x80, 0xb7, 0x06, - 0xb8, 0x17, 0x06, 0x32, 0x73, 0x07, 0xb1, 0xff, 0x05, 0x18, 0x04, 0x3b, - 0x04, 0x30, 0x28, 0x19, 0x4c, 0x06, 0x48, 0x15, 0x3c, 0x00, 0x00, 0x35, - 0x7f, 0x06, 0xb8, 0x17, 0x06, 0xf5, 0x7f, 0x10, 0x06, 0xf0, 0x7f, 0x11, - 0x11, 0x80, 0xd0, 0x01, 0x9c, 0x11, 0x93, 0x56, 0x00, 0x00, 0x16, 0x05, - 0x80, 0xb1, 0x82, 0xee, 0x84, 0x06, 0xb8, 0x17, 0x48, 0x2f, 0xa7, 0x5f, - 0x61, 0x28, 0x19, 0x69, 0x2f, 0x97, 0x06, 0x38, 0x1b, 0xf0, 0x7f, 0x05, - 0xf8, 0x1d, 0xb8, 0x17, 0xfc, 0xd1, 0x0b, 0x06, 0x98, 0x17, 0x05, 0xb0, - 0x87, 0x00, 0x5e, 0x2f, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x17, 0x54, 0xd6, - 0x38, 0x44, 0xb8, 0x06, 0xb8, 0x17, 0x06, 0x32, 0x73, 0x07, 0xb1, 0xff, - 0x25, 0x04, 0x43, 0x8f, 0x28, 0x17, 0x3b, 0x04, 0x4f, 0x06, 0x68, 0x1b, - 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x07, 0xf5, 0x7f, 0x91, 0x10, 0x05, 0xf0, - 0x7f, 0x12, 0x12, 0xd0, 0x01, 0x0e, 0x11, 0x7e, 0x28, 0x17, 0x02, 0x17, - 0x80, 0xf0, 0x53, 0x71, 0x67, 0x06, 0xb8, 0x17, 0x54, 0xb7, 0x2f, 0xad, - 0x69, 0x2f, 0xa3, 0x3a, 0xa7, 0x67, 0x06, 0x2a, 0xb3, 0xf0, 0x7f, 0x06, - 0xb8, 0x17, 0xfc, 0xd1, 0x0b, 0x06, 0x98, 0x17, 0x05, 0xb0, 0x87, 0x00, - 0x5e, 0x2f, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x17, 0xc0, 0xd0, 0x0e, 0x74, - 0xc7, 0x65, 0xb4, 0x06, 0x98, 0x19, 0x06, 0x32, 0x73, 0x07, 0xb1, 0xff, - 0x22, 0xac, 0x28, 0x15, 0x39, 0x28, 0x05, 0x43, 0x28, 0x17, 0x06, 0x18, - 0x15, 0x00, 0x00, 0x0e, 0xfa, 0x81, 0x71, 0x67, 0x06, 0xb8, 0x17, 0x07, - 0xf5, 0x7f, 0x10, 0x05, 0xf0, 0x7f, 0x13, 0x44, 0x13, 0xd0, 0x01, 0x2e, - 0x10, 0x25, 0x28, 0x17, 0x18, 0x80, 0x0a, 0x8e, 0x6f, 0x56, 0x6e, 0x06, - 0xb8, 0x17, 0x50, 0x4f, 0xa7, 0x67, 0x3f, 0x00, 0x68, 0x2f, 0xb7, 0x06, - 0x1a, 0xad, 0xf0, 0x7f, 0x05, 0xf8, 0x15, 0xd8, 0x17, 0xb1, 0x0b, 0xeb, - 0x05, 0xdd, 0xaf, 0xd8, 0x17, 0x05, 0xb0, 0x87, 0x49, 0x29, 0x11, 0x6c, - 0x2e, 0xb1, 0x70, 0xff, 0x76, 0x73, 0x29, 0x97, 0x5e, 0x3b, 0x39, 0x2f, - 0x73, 0x05, 0x0f, 0xcd, 0x06, 0xf8, 0x17, 0x91, 0x1d, 0xd3, 0xc4, 0xd6, - 0x06, 0x98, 0x15, 0xd3, 0x7f, 0x06, 0x3e, 0xb5, 0x49, 0x2e, 0xab, 0x45, - 0x68, 0x06, 0xa1, 0xff, 0x1f, 0x04, 0x4d, 0x28, 0x11, 0x45, 0x28, 0x17, - 0x9e, 0x06, 0x38, 0x15, 0x00, 0x00, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x07, - 0xd5, 0x7f, 0x10, 0x06, 0x10, 0x7f, 0x14, 0x40, 0x14, 0xd0, 0x01, 0xc2, - 0x10, 0x09, 0x55, 0x00, 0x00, 0x02, 0x19, 0x80, 0xd1, 0x91, 0x80, 0x95, - 0x06, 0xb8, 0x17, 0x4b, 0xbf, 0x2f, 0xad, 0x6e, 0x2f, 0x9f, 0x38, 0x1d, - 0x06, 0x38, 0x17, 0xd0, 0x7f, 0x06, 0xd8, 0x17, 0xb1, 0x0b, 0xf8, 0x06, - 0xb8, 0x17, 0x05, 0xb0, 0x87, 0x00, 0x5e, 0x2f, 0x05, 0x91, 0x09, 0x06, - 0xf8, 0x17, 0xc4, 0xc9, 0x3c, 0x75, 0xba, 0x06, 0xb8, 0x17, 0x06, 0x32, - 0x73, 0x07, 0xb1, 0xff, 0x26, 0x28, 0x07, 0x38, 0x28, 0x19, 0x1f, 0x4c, - 0x04, 0x3c, 0x48, 0x21, 0x05, 0xf8, 0x1d, 0x35, 0x7f, 0x06, 0xb8, 0x17, - 0x07, 0xd5, 0x7f, 0x90, 0x10, 0x06, 0x10, 0x7f, 0x15, 0x15, 0xd0, 0x01, - 0x5f, 0x11, 0x25, 0x54, 0x00, 0x00, 0x00, 0x1a, 0x80, 0x23, 0x90, 0x5f, - 0x6c, 0xb5, 0x06, 0xb8, 0x17, 0x4c, 0x2f, 0x2b, 0x3f, 0xb1, 0x63, 0x2f, - 0xb1, 0x69, 0x2e, 0xb3, 0xff, 0x3f, 0xbb, 0x05, 0xba, 0xb7, 0x00, 0x50, - 0x7f, 0x05, 0x98, 0x1f, 0xb8, 0x17, 0x00, 0x31, 0x0b, 0x06, 0x38, 0x17, - 0x05, 0xb0, 0x87, 0xe1, 0x00, 0x58, 0x17, 0x05, 0x91, 0x09, 0x06, 0xf8, - 0x17, 0x44, 0xb8, 0xa5, 0xc7, 0x06, 0xb8, 0x17, 0xc5, 0x06, 0x32, 0x73, - 0x07, 0xb1, 0xff, 0x1b, 0x04, 0x4f, 0x48, 0x15, 0x46, 0x28, 0x1f, 0xfc, - 0x30, 0x09, 0x05, 0xf8, 0x17, 0x35, 0x7f, 0x06, 0xb8, 0x17, 0x08, 0x55, - 0x7f, 0x10, 0x05, 0x90, 0x7f, 0x16, 0x16, 0x82, 0xd0, 0x01, 0x98, 0x12, - 0x48, 0x55, 0x03, 0x4f, 0xff, 0x0d, 0x05, 0x80, 0xf0, 0x53, 0x2d, 0x4e, - 0x06, 0xb8, 0x1b, 0x54, 0x2e, 0xab, 0x7f, 0x69, 0x48, 0x19, 0x3a, 0xab, - 0x05, 0xd8, 0x17, 0x00, 0x50, 0x7f, 0x05, 0x98, 0x17, 0xf8, 0x1b, 0xf1, - 0x0b, 0xfc, 0x05, 0x9d, 0xb3, 0xd8, 0x1b, 0x05, 0xb0, 0x87, 0x00, 0x5e, - 0x33, 0x05, 0x91, 0x09, 0x06, 0xf8, 0x1b, 0xc0, 0xd0, 0x0e, 0x74, 0xc7, - 0x11, 0xc9, 0x06, 0x98, 0x1d, 0x06, 0x32, 0x73, 0x07, 0xb1, 0xff, 0x22, - 0x00, 0x04, 0x30, 0x04, 0x39, 0x04, 0x47, 0x04, 0x36, 0x39, 0x04, 0x43, - 0x06, 0x28, 0x19, 0x08, 0x34, 0xff, 0x10, 0x0d, 0xd0, 0x7f, 0x0c, 0x0c, - 0xd0, 0x01, 0x01, 0x39, 0x11, 0xd5, 0x55, 0x00, 0x00, 0x12, 0x28, 0x17, - 0x2f, 0x57, 0x53, 0x07, 0x18, 0x17, 0x6e, 0x4f, 0xad, 0x05, 0xf8, 0x13, - 0x00, 0x10, 0x7f, 0x05, 0xd8, 0x13, 0xff, 0x00, 0x58, 0x17, 0x51, 0x0b, - 0x05, 0xdd, 0xb3, 0x00, 0x38, 0x17, 0x05, 0x50, 0x87, 0x00, 0xb8, 0x17, - 0x05, 0x31, 0x09, 0x07, 0x38, 0x17, 0x3d, 0x9c, 0xb0, 0x06, 0xf8, 0x17, - 0x05, 0xd2, 0x73, 0x07, 0xb1, 0xff, 0x58, 0x17, 0x3d, 0x28, 0x1d, 0x1c, - 0x3d, 0x04, 0x4c, 0x06, 0x88, 0x17, 0x07, 0x74, 0xff, 0x10, 0x0e, 0x10, - 0x7f, 0x11, 0x11, 0x88, 0xd0, 0x01, 0x64, 0x10, 0x92, 0x28, 0x17, 0x13, - 0x80, 0xd8, 0x15, 0x9a, 0xc4, 0x96, 0x06, 0xb8, 0x17, 0x4b, 0x2f, 0xaf, - 0x6f, 0x2f, 0xad, 0x7f, 0x73, 0x2f, 0xb5, 0x06, 0x3b, 0x31, 0x00, 0x30, - 0x7f, 0x05, 0xb8, 0x1d, 0xb8, 0x17, 0x00, 0x11, 0x0b, 0x06, 0x58, 0x17, - 0xab, 0x05, 0xb0, 0x87, 0x44, 0x49, 0x13, 0x74, 0x29, 0x1d, 0x69, 0x2d, - 0x21, 0x9e, 0x31, 0xc0, 0x05, 0x71, 0x0b, 0x06, 0xf8, 0x17, 0x00, 0xac, - 0x24, 0xc6, 0x9d, 0xc2, 0xe8, 0x06, 0x98, 0x17, 0x06, 0x32, 0x73, 0x07, - 0xb1, 0xff, 0x13, 0x28, 0x17, 0x3e, 0x04, 0x41, 0x3c, 0x04, 0x4e, 0x28, - 0x1b, 0x06, 0x18, 0x15, 0x08, 0x54, 0xff, 0x10, 0x0d, 0xb0, 0x7f, 0x12, - 0x12, 0x8c, 0xd0, 0x01, 0x16, 0x10, 0x95, 0x28, 0x17, 0xdf, 0xff, 0x01, - 0x01, 0x92, 0xd0, 0x01, 0x02, 0x02, 0xd0, 0x01, 0x03, 0x03, 0xd0, 0x01, - 0x04, 0x49, 0x04, 0xd0, 0x01, 0x05, 0x05, 0xd0, 0x01, 0x06, 0x06, 0xd0, - 0x01, 0x24, 0x07, 0x07, 0xd0, 0x01, 0x08, 0x08, 0xd0, 0x01, 0x09, 0x09, - 0x92, 0xd0, 0x01, 0x0a, 0x0a, 0xd0, 0x01, 0x0b, 0x0b, 0xd0, 0x01, 0x0d, - 0x49, 0x0d, 0xd0, 0x01, 0x0e, 0x0e, 0xd0, 0x01, 0x0f, 0x0f, 0xd0, 0x01, - 0x24, 0x10, 0x10, 0xd0, 0x01, 0x13, 0x13, 0xd0, 0x01, 0x14, 0x14, 0x92, - 0xd0, 0x01, 0x15, 0x15, 0xd0, 0x01, 0x16, 0x16, 0xd0, 0x01, 0x17, 0x49, - 0x17, 0xd0, 0x01, 0x18, 0x18, 0xd0, 0x01, 0x19, 0x19, 0xd0, 0x01, 0x80, - 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x90, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xf9, 0x0f, 0x47, - 0x51, 0x00, 0x00, 0x00, 0x01, 0x90, 0xdb, 0x30, 0xf3, 0x30, 0xb3, 0xc0, - 0x20, 0x03, 0x06, 0x78, 0x1d, 0x48, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x06, - 0x67, 0x00, 0x20, 0x00, 0x4b, 0x60, 0x09, 0x0e, 0x50, 0x7f, 0x6b, 0xc0, - 0x06, 0x40, 0xfd, 0x0f, 0x11, 0x7f, 0x2d, 0x4e, 0xfd, 0x56, 0x20, 0x00, - 0x08, 0x99, 0x99, 0x2f, 0x6e, 0x06, 0x5b, 0x1f, 0x4d, 0xd6, 0x69, 0x60, - 0xcf, 0x06, 0xbb, 0x99, 0x0e, 0xf2, 0x7f, 0x13, 0x04, 0x3e, 0x04, 0x3d, - 0x27, 0x04, 0x3a, 0x40, 0x05, 0x33, 0x04, 0x06, 0x1d, 0x23, 0x06, 0x92, - 0x79, 0x0f, 0xd5, 0x7f, 0x9e, 0x0e, 0x76, 0x7f, 0x01, 0x01, 0xd0, 0x01, - 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x4c, 0x10, 0x00, - 0x23, 0x00, 0x00, 0x40, 0x01, 0x91, 0x14, 0x20, 0x60, 0x09, 0x06, 0x60, - 0x06, 0xc1, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xcc, 0x0f, 0xc8, 0x50, - 0x01, 0x48, 0x1c, 0x00, 0x01, 0x91, 0xde, 0x30, 0xab, 0x30, 0xaa, 0x30, - 0x82, 0x06, 0x98, 0x1f, 0x4d, 0x00, 0x61, 0x00, 0x63, 0x20, 0x03, 0x6f, - 0xa0, 0x0e, 0xe0, 0x7f, 0x75, 0x10, 0x06, 0x61, 0x7f, 0x2d, 0x4e, 0xfd, - 0x56, 0x20, 0x04, 0x00, 0xb3, 0x6f, 0xe8, 0x95, 0x06, 0x5b, 0x23, 0xc8, - 0xb9, 0x0e, 0x74, 0xce, 0x24, 0xc6, 0x07, 0x13, 0x7f, 0x06, 0xf2, 0x7f, - 0x06, 0x72, 0xff, 0x1c, 0x09, 0x04, 0x30, 0x04, 0x3a, 0x20, 0x03, 0x3e, - 0x04, 0x06, 0x5d, 0x23, 0x1c, 0xb3, 0x6f, 0x80, 0x06, 0x62, 0x79, 0x0f, - 0xd5, 0x7f, 0x0e, 0x76, 0x7f, 0x01, 0x01, 0xe0, 0xd0, 0x01, 0x38, 0x1b, - 0x00, 0x3f, 0xff, 0x00, 0x11, 0x1c, 0x21, 0x00, 0x12, 0x02, 0x00, 0x00, - 0x30, 0x01, 0x80, 0x16, 0x50, 0x07, 0x00, 0x0c, 0xf0, 0x53, 0x7e, 0x6e, - 0x60, 0x0a, 0x06, 0x40, 0x06, 0x54, 0x00, 0x07, 0x61, 0x00, 0x69, 0x00, - 0x77, 0x20, 0x05, 0x06, 0x50, 0x86, 0x30, 0x7f, 0x74, 0xef, 0x06, 0xe0, - 0x7f, 0x06, 0xf0, 0xff, 0x07, 0x30, 0x7f, 0xe1, 0x06, 0x61, 0xff, 0x2d, - 0x4e, 0x10, 0xfd, 0x56, 0x20, 0x06, 0xa3, 0x05, 0xc0, 0xd0, 0x74, 0xc7, - 0x30, 0x44, 0xc6, 0x0e, 0xd3, 0x7f, 0x06, 0xb3, 0xff, 0x22, 0x04, 0x30, - 0x04, 0x10, 0x39, 0x04, 0x32, 0x20, 0x05, 0x3d, 0x04, 0x4c, 0x04, 0x87, - 0x06, 0x15, 0x09, 0xfa, 0x81, 0x63, 0x70, 0x0e, 0xf5, 0x7f, 0x10, 0x06, - 0xb0, 0x7f, 0x02, 0x27, 0xfb, 0x20, 0x90, 0x01, 0x68, 0x3b, 0xdb, 0x30, - 0xf3, 0x30, 0xb3, 0xc4, 0x20, 0x03, 0x06, 0x78, 0x3f, 0x48, 0x00, 0x6f, - 0x28, 0x35, 0x67, 0x00, 0x1b, 0x20, 0x00, 0x4b, 0x60, 0x09, 0x0e, 0x50, - 0x7f, 0x6b, 0x06, 0x40, 0xfd, 0x0f, 0x11, 0x7f, 0x88, 0x58, 0x3b, 0x99, - 0x99, 0x2f, 0x06, 0x6b, 0x41, 0x4d, 0xd6, 0x69, 0x62, 0xcf, 0x06, 0xbb, - 0xbb, 0x0e, 0xf2, 0x7f, 0x13, 0x04, 0x3e, 0x28, 0x35, 0x3a, 0xbc, 0x40, - 0x05, 0x33, 0x06, 0x28, 0x3b, 0x06, 0x92, 0x79, 0x0f, 0xd5, 0x7f, 0x0e, - 0x76, 0x7f, 0x01, 0x01, 0xd3, 0xd0, 0x01, 0x00, 0xff, 0xff, 0x02, 0x5f, - 0xff, 0x80, 0x19, 0x6f, 0xff, 0x06, 0x9d, 0x75, 0xae, 0x07, 0x9f, 0x7b, - 0xef, 0x10, 0x07, 0x2b, 0x7b, 0xe1, 0x06, 0x6e, 0xfb, 0x58, 0x3f, 0x06, - 0x93, 0x05, 0xc0, 0x04, 0xd0, 0x74, 0xc7, 0x44, 0xc6, 0x10, 0x06, 0x9e, - 0x7b, 0x22, 0x04, 0x04, 0x30, 0x04, 0x39, 0x04, 0x32, 0x20, 0x05, 0x3d, - 0x04, 0x43, 0x4c, 0x06, 0x28, 0x3f, 0xfa, 0x81, 0x63, 0x70, 0x0e, 0xf5, - 0x7f, 0x10, 0x06, 0xb0, 0x7f, 0xa0, 0x02, 0x2f, 0xff, 0x91, 0x78, 0x64, - 0xde, 0x30, 0xab, 0x30, 0xaa, 0x55, 0x30, 0x06, 0x9c, 0xfd, 0x4d, 0x28, - 0x3b, 0x63, 0x28, 0x3f, 0x6f, 0x0e, 0xe0, 0x7f, 0x61, 0x75, 0x10, 0x06, - 0x61, 0x7f, 0x58, 0x3b, 0xb3, 0x6f, 0xe8, 0x95, 0x06, 0x5f, 0xff, 0x07, - 0xc8, 0xb9, 0x74, 0xce, 0x24, 0x06, 0xa8, 0x3b, 0x07, 0x72, 0x7f, 0x06, - 0x72, 0xff, 0x56, 0x1c, 0x28, 0x3b, 0x3a, 0x28, 0x3f, 0x3e, 0x06, 0x28, - 0x37, 0x3f, 0xff, 0xb3, 0x39, 0x6f, 0x80, 0x06, 0x62, 0x79, 0x0f, 0xd5, - 0x7f, 0x0e, 0x76, 0x7f, 0x02, 0x02, 0xd0, 0x01, 0x98, 0x01, 0xff, 0xff, - 0x01, 0x01, 0xd0, 0x01, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0xf4, 0xcb, 0x00, 0x11, 0x18, 0x00, 0x00, 0x30, 0x01, 0x0a, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x68, 0xe7, 0x47, 0xd6, 0x00, 0x00, 0x00, 0x02, 0x0a, 0x79, 0x72, - 0x25, 0x52, 0x3a, 0x40, 0x53, 0x06, 0x98, 0x1b, 0x44, 0x00, 0x69, 0x00, - 0x73, 0x00, 0x10, 0x74, 0x00, 0x72, 0x20, 0x07, 0x74, 0x00, 0x6f, 0x00, - 0x01, 0x20, 0x00, 0x46, 0x00, 0x65, 0x00, 0x64, 0x20, 0x03, 0x05, 0x72, - 0x00, 0x61, 0x00, 0x6c, 0x05, 0xc0, 0x7f, 0x63, 0x20, 0x87, 0xa8, 0x30, - 0x7f, 0xe9, 0x20, 0x7f, 0xe9, 0x05, 0x60, 0x7f, 0x41, 0x00, 0x75, 0xa8, - 0x40, 0xf7, 0x6e, 0x20, 0xfb, 0x6d, 0x20, 0xf9, 0x20, 0x00, 0x53, 0xb5, - 0x21, 0x0d, 0x61, 0x21, 0x01, 0x30, 0x8b, 0x42, 0x20, 0x1d, 0x65, 0x40, - 0x1b, 0x55, 0x73, 0x21, 0x19, 0x41, 0x21, 0x2b, 0x72, 0x21, 0x1d, 0x73, - 0x03, 0xa9, 0xca, 0x5e, 0x43, 0x21, 0x65, 0x70, 0x41, 0x7b, 0x31, 0x6d, - 0x30, 0x7f, 0xd1, 0x7f, 0x65, 0xad, 0x04, 0xea, 0x36, 0x43, 0x21, 0xff, - 0x75, 0x21, 0xef, 0x30, 0xf1, 0x20, 0x41, 0xf7, 0xc0, 0x05, 0x30, 0xf5, - 0x9b, 0x0b, 0x54, 0x80, 0xa6, 0x90, 0x96, 0x99, 0x20, 0xfd, 0x90, 0x06, - 0x73, 0x03, 0x44, 0xc5, 0x74, 0xb9, 0xe8, 0x00, 0xd5, 0xf0, 0xd2, 0x98, - 0xb0, 0x20, 0x00, 0xf0, 0x07, 0xc5, 0x29, 0xbc, 0x6c, 0xad, 0x05, 0xdb, - 0xa7, 0xb3, 0x6d, 0x33, 0x6f, 0x60, 0x20, 0x00, 0x03, 0x11, 0x0c, 0xd3, - 0xff, 0x24, 0x04, 0x35, 0x04, 0x34, 0x80, 0x20, 0x03, 0x40, 0x04, 0x30, - 0x04, 0x3b, 0x04, 0x4c, 0x00, 0x04, 0x3d, 0x04, 0x4b, 0x04, 0x39, 0x04, - 0x20, 0x08, 0x00, 0x3e, 0x04, 0x3a, 0x20, 0x13, 0x43, 0x04, 0x33, 0x60, - 0x04, 0x0d, 0x94, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x01, 0x07, 0x07, 0x01, - 0x02, 0x00, 0x04, 0x01, 0x01, 0x08, 0x07, 0x14, 0x07, 0x01, 0x10, 0x01, - 0x01, 0x01, 0x58, 0x17, 0x03, 0x0a, 0xd6, 0x30, 0x00, 0xa8, 0x30, 0xce, - 0x30, 0xb9, 0x30, 0xa2, 0x30, 0x13, 0xa4, 0x30, 0xec, 0x20, 0x07, 0xde, - 0x5d, 0x05, 0xdf, 0xbf, 0x05, 0xb6, 0x03, 0xa2, 0x10, 0x08, 0x30, 0x7f, - 0x50, 0x2a, 0x11, 0x6f, 0x00, 0x76, 0x2a, 0x1d, 0x6e, 0xb0, 0x29, 0x97, - 0x69, 0x2a, 0x0b, 0x05, 0xd8, 0x1d, 0x03, 0x5e, 0x9c, 0x5b, 0x00, 0xfa, - 0x8b, 0xaf, 0x65, 0x7e, 0x82, 0x29, 0x52, 0x08, 0xaf, 0x65, 0x01, 0x77, - 0x05, 0xff, 0xbd, 0x80, 0xbd, 0xd0, 0x04, 0xc5, 0x78, 0xb1, 0xa4, 0xc2, - 0x28, 0x1f, 0xc7, 0x08, 0x01, 0xb8, 0xa4, 0xc2, 0x20, 0x00, 0xfc, 0xc8, - 0x10, 0x05, 0xb3, 0x7f, 0x50, 0x11, 0x27, 0xfb, 0x4d, 0x28, 0x0d, 0x3e, - 0x04, 0x41, 0x04, 0x15, 0x2d, 0x00, 0x10, 0x28, 0x13, 0x40, 0x28, 0x29, - 0x41, 0x04, 0xe8, 0x0d, 0xc0, 0x10, 0x0f, 0x94, 0xff, 0x06, 0xf6, 0xff, - 0x02, 0x01, 0x01, 0x02, 0x01, 0x0f, 0x60, 0x02, 0x20, 0x06, 0x20, 0x08, - 0x02, 0x02, 0x02, 0x29, 0xe7, 0x40, 0xcb, 0x28, 0x17, 0x04, 0x0a, 0xab, - 0x30, 0xbf, 0x30, 0x07, 0xde, 0x30, 0xeb, 0x30, 0xab, 0x06, 0x08, 0x11, - 0x9e, 0xaf, 0x3f, 0x1f, 0x54, 0x6d, 0x2f, 0x9d, 0x72, 0x2f, 0xb1, 0x61, - 0x10, 0x15, 0xe0, 0x7f, 0x61, 0x53, 0x03, 0x54, 0x58, 0x6c, 0x9a, 0x61, - 0x53, 0x06, 0x18, 0x11, 0x5f, 0xff, 0x00, 0x74, 0xce, 0xc0, 0xd0, 0xc8, - 0xb9, 0x74, 0xb9, 0x30, 0x74, 0xce, 0x05, 0xf8, 0x11, 0x0f, 0x53, 0x7f, - 0x1a, 0x04, 0x30, 0x04, 0x51, 0x42, 0x20, 0x03, 0x3c, 0x20, 0x07, 0x40, - 0x04, 0x3a, 0x20, 0x0d, 0x80, 0x10, 0x1d, 0xd4, 0xff, 0x03, 0x02, 0x02, - 0x03, 0x03, 0x01, 0x03, 0xc0, 0x30, 0x06, 0x20, 0x08, 0x03, 0x03, 0xc2, - 0xeb, 0x39, 0xd1, 0x00, 0x00, 0x00, 0x05, 0x0a, 0xc1, 0x30, 0xe3, 0x30, - 0x6b, 0xb3, 0x06, 0x68, 0x13, 0x58, 0x17, 0x68, 0x2e, 0x23, 0x63, 0x2f, - 0xaf, 0x10, 0x16, 0x50, 0x7f, 0x0c, 0xe5, 0x67, 0xd1, 0x79, 0x06, 0x78, - 0x13, 0x3f, 0xff, 0x28, 0xcc, 0x34, 0x54, 0xcf, 0x06, 0x58, 0x11, 0x0f, - 0x53, 0x7f, 0x27, 0x28, 0x17, 0x3a, 0x04, 0x60, 0x3e, 0x05, 0xe8, 0x0d, - 0x10, 0x17, 0x94, 0xff, 0x04, 0x03, 0x03, 0x04, 0x04, 0x28, 0x02, 0x04, - 0x20, 0x06, 0x16, 0x20, 0x08, 0x04, 0x04, 0x7b, 0x02, 0xec, 0x0f, 0xd6, - 0x00, 0x00, 0x06, 0x28, 0x17, 0xe5, 0x0c, 0x30, 0xd6, 0x30, 0xc8, 0x06, - 0x88, 0x19, 0x38, 0x17, 0x75, 0x00, 0x50, 0x62, 0x20, 0x03, 0x74, 0x10, - 0x16, 0x40, 0x7f, 0x18, 0x4e, 0x03, 0x5e, 0x20, 0x79, 0x72, 0x06, 0x98, - 0x19, 0x94, 0xcd, 0x80, 0xbd, 0xb8, 0x60, 0xd2, 0x06, 0x98, 0x19, 0x0e, - 0xf3, 0x7f, 0x27, 0x04, 0x43, 0x04, 0x31, 0xb0, 0x20, 0x03, 0x42, 0x06, - 0x68, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x05, 0x04, 0x04, 0x05, 0x14, 0x05, - 0x03, 0x05, 0x20, 0x06, 0x17, 0x20, 0x08, 0x05, 0x05, 0x00, 0x36, 0xe1, - 0xb5, 0xd1, 0x00, 0x00, 0x07, 0x0a, 0x01, 0xb3, 0x30, 0xeb, 0x30, 0xc9, - 0x30, 0xd0, 0x06, 0xa8, 0x17, 0x05, 0xf3, 0x00, 0x72, 0x00, 0x64, 0x2f, - 0xaf, 0x62, 0x2f, 0xb7, 0x80, 0x10, 0x16, 0x10, 0x7f, 0xd1, 0x79, 0x14, - 0x5c, 0x1a, 0x59, 0xe6, 0x40, 0x74, 0x06, 0x78, 0x19, 0x54, 0xcf, 0x74, - 0xb9, 0xc4, 0xb3, 0x34, 0x14, 0xbc, 0x06, 0x78, 0x19, 0x07, 0x93, 0x7f, - 0x76, 0x06, 0x43, 0xff, 0x1a, 0x04, 0x04, 0x3e, 0x04, 0x40, 0x04, 0x34, - 0x20, 0x05, 0x32, 0x04, 0x60, 0x30, 0x06, 0x28, 0x1b, 0x10, 0x16, 0xf4, - 0xff, 0x06, 0x05, 0x05, 0x06, 0x06, 0x90, 0x30, 0x02, 0x05, 0x04, 0x20, - 0x08, 0x06, 0x06, 0xac, 0xe9, 0x04, 0x5c, 0xd2, 0x00, 0x00, 0x08, 0x28, - 0x17, 0xea, 0x30, 0x01, 0xa8, 0x30, 0xf3, 0x30, 0xc6, 0x30, 0xb9, 0x06, - 0x48, 0x1b, 0x50, 0x43, 0x28, 0x11, 0x72, 0x28, 0x19, 0x69, 0x00, 0x65, - 0x00, 0x44, 0x6e, 0x2f, 0xb3, 0x65, 0x00, 0x73, 0x10, 0x15, 0xc0, 0x7f, - 0xd1, 0x79, 0x02, 0xde, 0x8f, 0x79, 0x72, 0xaf, 0x65, 0x06, 0x98, 0x17, - 0xac, 0x01, 0xb9, 0xd4, 0xc5, 0x4c, 0xd1, 0xa4, 0xc2, 0x06, 0x58, 0x19, - 0xc0, 0x0e, 0xf3, 0x7f, 0x58, 0x17, 0x40, 0x04, 0x38, 0x04, 0x35, 0x04, - 0x16, 0x3d, 0x04, 0x42, 0x20, 0x05, 0x41, 0x05, 0xc8, 0x1d, 0x10, 0x16, - 0xf4, 0xff, 0x07, 0x0c, 0x06, 0x06, 0x07, 0x07, 0x30, 0x02, 0x28, 0x1c, - 0x07, 0x07, 0x00, 0x07, 0x07, 0x78, 0xec, 0x2a, 0xd6, 0x00, 0x00, 0x20, - 0x09, 0x0a, 0x38, 0x13, 0xc8, 0x30, 0xec, 0x30, 0xfb, 0xaa, 0x28, 0x1f, - 0xaa, 0x06, 0x28, 0x1b, 0x45, 0x48, 0x0d, 0x72, 0x28, 0x15, 0x20, 0x0e, - 0x00, 0x52, 0x00, 0xed, 0x2f, 0xb7, 0x05, 0xd8, 0x17, 0x10, 0x0e, 0xf0, - 0x7f, 0x69, 0x00, 0x60, 0x79, 0x72, 0xf7, 0x96, 0xcc, 0x91, 0x65, 0x40, - 0x59, 0x06, 0x58, 0x1b, 0xd4, 0xc5, 0xb8, 0xd2, 0x08, 0xb8, 0x0d, 0xac, - 0xb9, 0x24, 0xc6, 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, 0x2d, 0x48, 0x0d, - 0x45, 0x40, 0x28, 0x15, 0x2d, 0x00, 0x20, 0x28, 0x1d, 0x3e, 0x05, 0xe8, - 0x17, 0x95, 0x10, 0x16, 0xf4, 0xff, 0x08, 0x08, 0x20, 0x01, 0x07, 0x30, - 0x02, 0x18, 0x40, 0x0a, 0x00, 0x70, 0xe9, 0xf5, 0xd4, 0x00, 0x00, 0x0a, - 0x0a, 0x00, 0xd5, 0x30, 0xa9, 0x30, 0xeb, 0x30, 0xe2, 0x30, 0x6a, 0xb5, - 0x06, 0x08, 0x11, 0x5f, 0xff, 0x46, 0x4f, 0xaf, 0x6d, 0x48, 0x0f, 0x61, - 0x80, 0x10, 0x16, 0x20, 0x7f, 0x8f, 0x79, 0x14, 0x5c, 0x69, 0x64, 0x99, - 0x60, 0x6c, 0x06, 0x38, 0x13, 0x3f, 0xff, 0xec, 0xd3, 0x74, 0xb9, 0xa8, - 0x1a, 0xba, 0xac, 0xc0, 0x06, 0x38, 0x13, 0x0f, 0x33, 0x7f, 0x24, 0x28, - 0x09, 0x40, 0x2c, 0x04, 0x3c, 0x48, 0x0f, 0x30, 0x05, 0xc8, 0x11, 0x10, - 0x17, 0x54, 0xff, 0x09, 0x09, 0x09, 0x09, 0x0a, 0x09, 0x08, 0x20, 0x05, - 0x09, 0x15, 0x30, 0x04, 0x00, 0x09, 0x62, 0xed, 0xa1, 0xd6, 0x00, 0x00, - 0x0b, 0x8c, 0x28, 0x17, 0xd5, 0x30, 0xa4, 0x06, 0x68, 0x13, 0x3f, 0xff, - 0x4a, 0x00, 0x14, 0x75, 0x00, 0x6a, 0x20, 0x03, 0x79, 0x10, 0x16, 0x60, - 0x7f, 0xe1, 0x80, 0x08, 0xe1, 0x80, 0x0a, 0x4f, 0x06, 0x78, 0x15, 0x00, - 0x00, 0xc4, 0x06, 0xd6, 0xc4, 0xd6, 0x74, 0xc7, 0x06, 0x78, 0x15, 0x0f, - 0x13, 0x7f, 0x16, 0x0b, 0x04, 0x43, 0x04, 0x36, 0x20, 0x03, 0x39, 0x06, - 0x28, 0x13, 0x10, 0x17, 0x34, 0xff, 0x02, 0x0a, 0x0a, 0x0a, 0x0b, 0x0a, - 0x09, 0x20, 0x05, 0x0a, 0x40, 0x02, 0x30, 0x04, 0x0a, 0xce, 0xee, 0x91, - 0xd1, 0x00, 0x00, 0x00, 0x0c, 0x0a, 0xe9, 0x30, 0xfb, 0x30, 0xd1, 0x34, - 0x30, 0xf3, 0x20, 0x03, 0x06, 0x58, 0x1b, 0x4c, 0x2f, 0xa5, 0x20, 0x00, - 0x46, 0x50, 0x2f, 0xab, 0x6d, 0x00, 0x70, 0x06, 0x2f, 0xb1, 0x10, 0x0e, - 0xf0, 0x7f, 0xc9, 0x04, 0x62, 0x58, 0x6f, 0x15, 0x5e, 0x06, 0x98, 0x17, - 0x7c, 0xb7, 0x0c, 0x1c, 0xd3, 0x0c, 0xd3, 0x06, 0x98, 0x17, 0x0e, 0xf3, - 0x7f, 0x1b, 0x04, 0x04, 0x30, 0x04, 0x2d, 0x00, 0x1f, 0x20, 0x05, 0x3c, - 0x04, 0x60, 0x3f, 0x20, 0x0b, 0x10, 0x1d, 0xf4, 0xff, 0x0b, 0x0b, 0x0b, - 0x0c, 0x0b, 0x48, 0x0a, 0x20, 0x05, 0x0b, 0x06, 0x30, 0x04, 0x0b, 0xf7, - 0xe5, 0x04, 0x4a, 0xd2, 0x00, 0x00, 0x0d, 0x48, 0x17, 0xea, 0x30, 0x10, - 0xaa, 0x30, 0xcf, 0x06, 0xc8, 0x17, 0x52, 0x00, 0x69, 0x00, 0x70, 0x6f, - 0x2f, 0xb7, 0x06, 0x78, 0x17, 0x10, 0x0e, 0x90, 0x7f, 0xc9, 0x62, 0xcc, - 0x91, 0x08, 0x65, 0x59, 0xc8, 0x54, 0x06, 0x78, 0x19, 0x7c, 0xb7, 0xac, - 0x07, 0xb9, 0x24, 0xc6, 0x58, 0xd5, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, - 0x58, 0x17, 0x01, 0x20, 0x04, 0x38, 0x04, 0x3e, 0x04, 0x45, 0x06, 0x88, - 0x17, 0x81, 0x10, 0x16, 0x94, 0xff, 0x0c, 0x0c, 0x0c, 0x0d, 0x0c, 0x0b, - 0x20, 0x05, 0x20, 0x0c, 0x07, 0x30, 0x04, 0x0c, 0x12, 0xeb, 0x77, 0xd0, - 0x00, 0x00, 0x00, 0x0e, 0x0a, 0xe1, 0x30, 0xf3, 0x30, 0x04, 0xc9, 0x30, - 0xfc, 0x30, 0xb5, 0x06, 0x68, 0x17, 0x4d, 0x00, 0x05, 0x65, 0x00, 0x6e, - 0x00, 0x64, 0x28, 0x15, 0x7a, 0x06, 0x2f, 0xad, 0x81, 0x10, 0x0f, 0x10, - 0x7f, 0xe8, 0x95, 0x1a, 0x59, 0x28, 0x84, 0x06, 0x78, 0x15, 0x00, 0x00, - 0x00, 0x58, 0xba, 0xc4, 0xb3, 0xac, 0xc0, 0xc0, 0x06, 0x78, 0x15, 0x0f, - 0x13, 0x7f, 0x1c, 0x04, 0x35, 0x04, 0x3d, 0x04, 0x58, 0x34, 0x28, 0x15, - 0x41, 0x06, 0x28, 0x15, 0x10, 0x17, 0x14, 0xff, 0x0d, 0x0d, 0x0d, 0x12, - 0x0e, 0x0d, 0x0c, 0x20, 0x05, 0x0d, 0x08, 0x30, 0x04, 0x0d, 0x00, 0x9e, - 0xe8, 0x11, 0xcf, 0x00, 0x00, 0x0f, 0x0a, 0x00, 0xdf, 0x30, 0xb7, 0x30, - 0xaa, 0x30, 0xcd, 0x30, 0x45, 0xb9, 0x06, 0x88, 0x17, 0x69, 0x00, 0x73, - 0x4f, 0xad, 0x6e, 0x28, 0x21, 0x40, 0x73, 0x10, 0x16, 0x00, 0x7f, 0x73, - 0x7c, 0x7f, 0x89, 0x65, 0x59, 0x08, 0x85, 0x51, 0xaf, 0x65, 0x06, 0x58, - 0x1b, 0xf8, 0xbb, 0xdc, 0x01, 0xc2, 0x24, 0xc6, 0x24, 0xb1, 0xa4, 0xc2, - 0x06, 0x58, 0x1b, 0x8a, 0x0e, 0xf3, 0x7f, 0x1c, 0x04, 0x38, 0x28, 0x11, - 0x4c, 0x28, 0x17, 0x3d, 0xb0, 0x28, 0x21, 0x41, 0x06, 0x08, 0x19, 0x10, - 0x16, 0xf4, 0xff, 0x0e, 0x0e, 0x0e, 0x0f, 0x24, 0x0e, 0x0d, 0x20, 0x05, - 0x0e, 0x09, 0x30, 0x04, 0x0e, 0x88, 0x00, 0xec, 0x43, 0xd8, 0x00, 0x00, - 0x10, 0x0a, 0xcd, 0x02, 0x30, 0xa6, 0x30, 0xb1, 0x30, 0xf3, 0x06, 0x68, - 0x15, 0x00, 0x22, 0x00, 0x4e, 0x2f, 0xaf, 0x75, 0x00, 0x71, 0x20, 0x03, - 0xe9, 0xc0, 0x2f, 0xb7, 0x10, 0x16, 0x10, 0x7f, 0x85, 0x51, 0x4c, 0x4e, - 0xaf, 0x80, 0xc0, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x24, 0xb1, 0xb0, 0xc6, - 0x04, 0xcf, 0xd1, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x1d, 0x28, 0x0d, - 0x43, 0x04, 0x3a, 0x28, 0x13, 0x60, 0x3d, 0x06, 0x08, 0x13, 0x10, 0x17, - 0x34, 0xff, 0x0f, 0x0f, 0x0f, 0x10, 0x0f, 0x48, 0x0e, 0x20, 0x05, 0x0f, - 0x0a, 0x30, 0x04, 0x0f, 0x4e, 0xe4, 0x00, 0x99, 0xcf, 0x00, 0x00, 0x11, - 0x0a, 0xea, 0x30, 0x01, 0xaa, 0x30, 0xcd, 0x30, 0xb0, 0x30, 0xed, 0x06, - 0x68, 0x19, 0x14, 0x52, 0x00, 0xed, 0x2f, 0xab, 0x20, 0x48, 0x1f, 0x67, - 0x00, 0x60, 0x72, 0x2f, 0xb7, 0x10, 0x15, 0xd0, 0x7f, 0xcc, 0x91, 0x65, - 0x59, 0x85, 0x04, 0x51, 0x3c, 0x68, 0x57, 0x7f, 0x06, 0x58, 0x1b, 0xac, - 0xb9, 0x00, 0x24, 0xc6, 0x24, 0xb1, 0xf8, 0xad, 0x5c, 0xb8, 0xc0, 0x06, - 0x58, 0x1b, 0x0e, 0xf3, 0x7f, 0x20, 0x04, 0x38, 0x04, 0x3e, 0x04, 0x46, - 0x2d, 0x48, 0x1f, 0x33, 0x04, 0x40, 0x20, 0x0b, 0x10, 0x1d, 0xd4, 0xff, - 0x10, 0x1a, 0x10, 0x10, 0x11, 0x20, 0x03, 0x20, 0x06, 0x0c, 0x40, 0x06, - 0xfd, 0x00, 0xe2, 0x34, 0xd3, 0x00, 0x00, 0x12, 0x0a, 0xb5, 0x0c, 0x30, - 0xeb, 0x30, 0xbf, 0x06, 0x68, 0x13, 0x3f, 0xff, 0x53, 0x00, 0x06, 0x61, - 0x00, 0x6c, 0x00, 0x74, 0x20, 0x05, 0x10, 0x16, 0x50, 0x7f, 0x28, 0x06, - 0x84, 0x14, 0x5c, 0x54, 0x58, 0x06, 0x58, 0x13, 0x3f, 0xff, 0xb4, 0x18, - 0xc0, 0xc0, 0xd0, 0x06, 0x58, 0x11, 0x0f, 0x53, 0x7f, 0x21, 0x04, 0x30, - 0x03, 0x04, 0x3b, 0x04, 0x4c, 0x04, 0x42, 0x20, 0x07, 0x10, 0x1e, 0x34, - 0xff, 0x0d, 0x11, 0x11, 0x11, 0x12, 0x20, 0x03, 0x20, 0x06, 0x0d, 0x40, - 0x06, 0x01, 0x61, 0xee, 0x7c, 0xd1, 0x00, 0x00, 0x13, 0x28, 0x17, 0x01, - 0xf3, 0x30, 0xfb, 0x30, 0xd5, 0x30, 0xa2, 0x20, 0x07, 0xd1, 0x06, 0x38, - 0x1d, 0x38, 0x17, 0x6e, 0x2f, 0xaf, 0x4a, 0x00, 0x75, 0x40, 0x09, 0x81, - 0x10, 0x15, 0xf0, 0x7f, 0x23, 0x57, 0xe1, 0x80, 0x89, 0x5b, 0x06, 0x98, - 0x17, 0x03, 0xb0, 0xc0, 0xc4, 0xd6, 0x48, 0xc5, 0x06, 0x98, 0x19, 0x0e, - 0xf3, 0x7f, 0x80, 0x38, 0x17, 0x3d, 0x04, 0x2d, 0x00, 0x25, 0x04, 0x43, - 0xc3, 0x40, 0x09, 0x10, 0x1d, 0xf4, 0xff, 0x12, 0x12, 0x12, 0x13, 0x20, - 0x03, 0x20, 0x06, 0x40, 0x0f, 0x40, 0x06, 0x93, 0xe9, 0x44, 0xcf, 0x00, - 0x00, 0x41, 0x14, 0x68, 0x17, 0xeb, 0x30, 0xa4, 0x30, 0xb9, 0x06, 0xc8, - 0x17, 0x44, 0x4c, 0x28, 0x17, 0x69, 0x00, 0x73, 0x10, 0x16, 0x00, 0x7f, - 0x23, 0x57, 0x02, 0xef, 0x8d, 0x13, 0x66, 0xaf, 0x65, 0x06, 0x78, 0x19, - 0xb0, 0x01, 0xc0, 0xe8, 0xb8, 0x74, 0xc7, 0xa4, 0xc2, 0x06, 0x78, 0x19, - 0xb4, 0x07, 0xb3, 0x7f, 0xed, 0x06, 0x23, 0xff, 0x78, 0x17, 0x1b, 0x28, - 0x17, 0x38, 0x04, 0x61, 0x41, 0x06, 0x88, 0x17, 0x10, 0x16, 0x74, 0xff, - 0x13, 0x13, 0x13, 0x14, 0x20, 0x03, 0xa0, 0x20, 0x06, 0x0e, 0x40, 0x06, - 0x52, 0xe8, 0xd2, 0xd0, 0x00, 0x2b, 0x00, 0x15, 0x48, 0x17, 0xbf, 0x28, - 0x19, 0xaf, 0x28, 0x1b, 0x06, 0x38, 0x19, 0xa0, 0x5f, 0xaf, 0x74, 0x2f, - 0xb5, 0x20, 0x00, 0x43, 0x00, 0x72, 0xa0, 0x2f, 0xb5, 0x7a, 0x10, 0x15, - 0xc0, 0x7f, 0x23, 0x57, 0x4b, 0x51, 0x81, 0x40, 0x9c, 0x06, 0xb8, 0x17, - 0xc0, 0xd0, 0x6c, 0xd0, 0xe8, 0xb8, 0xe8, 0x06, 0x78, 0x19, 0x0e, 0xf3, - 0x7f, 0x58, 0x17, 0x42, 0x28, 0x1d, 0x2d, 0x00, 0x1a, 0x38, 0x04, 0x40, - 0x28, 0x1d, 0x05, 0xd8, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x14, 0x14, 0x14, - 0x68, 0x15, 0x20, 0x03, 0x20, 0x06, 0x10, 0x40, 0x06, 0x49, 0xdb, 0xc8, - 0x08, 0xce, 0x00, 0x00, 0x16, 0x88, 0x17, 0xd5, 0x30, 0xa7, 0xc4, 0x06, - 0x28, 0x15, 0xd8, 0x17, 0x46, 0x00, 0x65, 0x10, 0x16, 0x00, 0x7f, 0x23, - 0x57, 0x33, 0xf2, 0x83, 0x06, 0x78, 0x13, 0x78, 0x17, 0x98, 0xd3, 0x06, - 0x58, 0x13, 0x08, 0x13, 0x7f, 0x63, 0xe9, 0x06, 0x0f, 0x2f, 0xb8, 0x17, - 0x24, 0x04, 0x35, 0x05, 0xc8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x0d, 0x15, - 0x15, 0x15, 0x16, 0x20, 0x03, 0x20, 0x06, 0x11, 0x40, 0x06, 0x01, 0x82, - 0xe9, 0xd6, 0xd4, 0x00, 0x00, 0x17, 0x48, 0x17, 0x01, 0xc6, 0x30, 0xa3, - 0x30, 0xa2, 0x30, 0xb4, 0x28, 0x1d, 0x11, 0xc7, 0x30, 0xeb, 0x28, 0x23, - 0xa8, 0x30, 0xb9, 0x20, 0x13, 0x68, 0xed, 0x05, 0x48, 0x27, 0x7f, 0xaf, - 0x69, 0x2f, 0xb7, 0x67, 0x00, 0x6f, 0xa8, 0x2f, 0xb5, 0x64, 0x28, 0x1d, - 0x6c, 0x2f, 0xbd, 0x45, 0x00, 0x73, 0xa8, 0x2f, 0xc7, 0x65, 0x2f, 0xc3, - 0x6f, 0x10, 0x14, 0xa0, 0x7f, 0x23, 0x57, 0x30, 0x00, 0x57, 0x9a, 0x4e, - 0xe5, 0x54, 0x2d, 0x00, 0xb7, 0x00, 0x5f, 0x14, 0x5c, 0xc3, 0x57, 0xaf, - 0x65, 0x79, 0x10, 0x72, 0x57, 0x7f, 0x05, 0x98, 0x29, 0xb0, 0xc0, 0xf0, - 0xd2, 0x00, 0x44, 0xc5, 0xe0, 0xac, 0x78, 0xb3, 0xd0, 0xc5, 0x03, 0xa4, - 0xc2, 0x4c, 0xd1, 0x5c, 0xb8, 0x05, 0xd8, 0x23, 0x0e, 0xf3, 0x7f, 0x80, - 0x78, 0x17, 0x4c, 0x04, 0x4f, 0x04, 0x33, 0x04, 0x3e, 0xa8, 0x28, 0x1d, - 0x34, 0x28, 0x1d, 0x3b, 0x20, 0x0f, 0x2d, 0x00, 0x2d, 0x23, 0x04, 0x41, - 0x28, 0x31, 0x35, 0x04, 0x40, 0x20, 0x17, 0x10, 0x1c, 0x74, 0xff, 0x0d, - 0x16, 0x16, 0x16, 0x17, 0x20, 0x03, 0x20, 0x06, 0x12, 0x40, 0x06, 0x00, - 0x3f, 0xec, 0x4d, 0xd2, 0x00, 0x00, 0x18, 0x0a, 0x8a, 0x38, 0x13, 0xa8, - 0x30, 0xe9, 0x88, 0x13, 0xd5, 0x28, 0x15, 0xb4, 0xdb, 0x05, 0x48, 0x11, - 0x5f, 0xff, 0x54, 0x28, 0x11, 0x37, 0xfb, 0x72, 0x4f, 0xb1, 0x78, 0x13, - 0x1a, 0x46, 0x00, 0x75, 0x2f, 0xbb, 0x38, 0x27, 0x2c, 0x2f, 0xc7, 0x41, - 0xb5, 0x4f, 0xd1, 0xe1, 0x28, 0x21, 0x38, 0x3f, 0x64, 0x4f, 0xdb, 0x65, - 0x2f, 0xdf, 0x55, 0x49, 0x28, 0x39, 0x6c, 0x2f, 0xef, 0x73, 0xa8, 0x4d, - 0x41, 0x2f, 0xfb, 0x6a, 0x6c, 0x20, 0x2b, 0x58, 0x6b, 0x63, 0x48, 0x69, - 0x53, 0x20, 0x4d, 0x72, 0xfa, 0x00, 0x80, 0x7f, 0x50, 0x7d, 0x30, 0x4f, - 0x38, 0x91, 0x5f, 0xb5, 0x75, 0xa0, 0x77, 0x61, 0xad, 0x28, 0x99, 0x63, - 0x48, 0xb9, 0x71, 0x40, 0x95, 0x30, 0x7b, 0x74, 0x2f, 0xdd, 0x54, 0xce, - 0x28, 0xbd, 0x65, 0x80, 0x7b, 0x20, 0x28, 0xcb, 0x19, 0x20, 0xf7, 0x50, - 0x7d, 0x78, 0xe9, 0x70, 0x2f, 0x30, 0x7f, 0x64, 0x00, 0x6f, 0xff, 0x50, - 0x6d, 0x38, 0xfd, 0xf7, 0x50, 0x37, 0x00, 0x70, 0x27, 0x04, 0x91, 0x7f, - 0x00, 0x51, 0x7d, 0x6f, 0x41, 0x3b, 0x07, 0x11, 0xff, 0x04, 0xff, 0xc9, - 0x03, 0x6b, 0x70, 0x30, 0x57, 0x9b, 0x5c, 0x05, 0x98, 0x07, 0xff, 0xff, - 0x00, 0xf0, 0xd2, 0xd0, 0xc5, 0x7c, 0xb7, 0x78, 0xb3, 0x1d, 0x78, 0xd4, - 0xd0, 0x28, 0x1d, 0x05, 0xd8, 0x13, 0x3f, 0xff, 0x56, 0x23, 0x69, 0xf6, - 0x33, 0x1d, 0x06, 0x52, 0x7d, 0xf2, 0x7f, 0x3c, 0x17, 0x46, 0x2c, 0x1d, - 0x01, 0x13, 0xf9, 0x6c, 0x3a, 0x00, 0x68, 0x83, 0xf9, 0x3c, 0x4d, 0x53, - 0xf7, 0xe2, 0x00, 0x03, 0xf7, 0x6c, 0xaa, 0x00, 0xef, 0xff, 0x1e, 0x28, - 0x0d, 0x3d, 0x28, 0x09, 0x3d, 0x28, 0x1d, 0x30, 0x8a, 0x28, 0x1b, 0x20, - 0x00, 0x17, 0x28, 0x17, 0x3c, 0x28, 0x19, 0x4f, 0xe1, 0x04, 0x88, 0x0b, - 0x07, 0xd4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x17, 0x17, 0x17, 0x09, 0x20, - 0x03, 0x08, 0x17, 0x18, 0x17, 0x0b, 0x30, 0x06, 0x17, 0x08, 0xd9, 0x00, - 0x6f, 0xcf, 0x00, 0x00, 0x19, 0x0a, 0xc8, 0x30, 0x01, 0xa5, 0x30, 0xaf, - 0x30, 0xde, 0x30, 0xf3, 0x05, 0xa8, 0x0b, 0xa3, 0xd8, 0x17, 0x75, 0x27, - 0xbd, 0x75, 0x00, 0x6d, 0x47, 0xcb, 0x10, 0x16, 0x10, 0x7f, 0x02, 0xfe, - 0x56, 0x93, 0x5e, 0xfc, 0x66, 0x06, 0x98, 0x17, 0x2c, 0x06, 0xd2, 0xe0, - 0xcf, 0xcc, 0xb9, 0x06, 0x18, 0x0f, 0x0f, 0x73, 0x7f, 0x22, 0x0a, 0x04, - 0x43, 0x04, 0x3a, 0x20, 0x03, 0x3c, 0x28, 0x15, 0x3d, 0xc8, 0x05, 0x48, - 0x09, 0x10, 0x17, 0xd4, 0xff, 0x18, 0x18, 0x50, 0x01, 0x17, 0x18, 0x13, - 0x84, 0x40, 0x0a, 0xef, 0xec, 0xa0, 0xd1, 0x00, 0x3f, 0xff, 0x01, 0x07, - 0x00, 0x07, 0x01, 0x02, 0x04, 0x01, 0x01, 0x08, 0x07, 0x01, 0x14, 0x07, - 0x01, 0x01, 0x01, 0x01, 0x02, 0x30, 0x02, 0x30, 0x0f, 0x02, 0x20, 0x06, - 0x20, 0x0b, 0x02, 0x02, 0x02, 0x03, 0x8c, 0x20, 0x02, 0x03, 0x01, 0x03, - 0x30, 0x06, 0x20, 0x08, 0x03, 0x03, 0x45, 0x04, 0x20, 0x02, 0x04, 0x02, - 0x04, 0x20, 0x06, 0x16, 0x20, 0x08, 0x11, 0x04, 0x04, 0x05, 0x20, 0x02, - 0x05, 0x03, 0x05, 0x20, 0x06, 0x45, 0x17, 0x20, 0x08, 0x05, 0x05, 0x06, - 0x20, 0x02, 0x06, 0x30, 0x02, 0x22, 0x05, 0x04, 0x20, 0x08, 0x06, 0x06, - 0x07, 0x20, 0x02, 0x07, 0xc0, 0x30, 0x02, 0x20, 0x14, 0x07, 0x07, 0x07, - 0x07, 0x08, 0x08, 0xc4, 0x20, 0x01, 0x20, 0x05, 0x07, 0x08, 0x18, 0x40, - 0x0a, 0x09, 0x09, 0x12, 0x09, 0x0a, 0x09, 0x30, 0x05, 0x09, 0x15, 0x30, - 0x04, 0x09, 0x04, 0x0a, 0x0a, 0x0a, 0x0b, 0x0a, 0x30, 0x05, 0x0a, 0x02, - 0x81, 0x30, 0x04, 0x0a, 0x0b, 0x0b, 0x0b, 0x0c, 0x0b, 0x30, 0x05, 0x20, - 0x0b, 0x06, 0x30, 0x04, 0x0b, 0x0c, 0x0c, 0x0c, 0x0d, 0x48, 0x0c, 0x30, - 0x05, 0x0c, 0x07, 0x30, 0x04, 0x0c, 0x0d, 0x0d, 0x12, 0x0d, 0x0e, 0x0d, - 0x30, 0x05, 0x0d, 0x08, 0x30, 0x04, 0x0d, 0x04, 0x0e, 0x0e, 0x0e, 0x0f, - 0x0e, 0x30, 0x05, 0x0e, 0x09, 0x81, 0x30, 0x04, 0x0e, 0x0f, 0x0f, 0x0f, - 0x10, 0x0f, 0x30, 0x05, 0x20, 0x0f, 0x0a, 0x30, 0x04, 0x0f, 0x10, 0x10, - 0x10, 0x11, 0xd0, 0x20, 0x03, 0x20, 0x06, 0x0c, 0x40, 0x06, 0x11, 0x11, - 0x11, 0x12, 0xd0, 0x20, 0x03, 0x20, 0x06, 0x0d, 0x40, 0x06, 0x12, 0x12, - 0x12, 0x13, 0xd0, 0x20, 0x03, 0x20, 0x06, 0x0f, 0x40, 0x06, 0x13, 0x13, - 0x13, 0x14, 0xd0, 0x20, 0x03, 0x20, 0x06, 0x0e, 0x40, 0x06, 0x14, 0x14, - 0x14, 0x15, 0xd0, 0x20, 0x03, 0x20, 0x06, 0x10, 0x40, 0x06, 0x15, 0x15, - 0x15, 0x16, 0xd0, 0x20, 0x03, 0x20, 0x06, 0x11, 0x40, 0x06, 0x16, 0x16, - 0x16, 0x17, 0xde, 0x20, 0x03, 0x20, 0x06, 0x12, 0x40, 0x06, 0xf9, 0x9f, - 0xf1, 0x97, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x0b, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xe6, 0x08, 0x33, 0xce, 0x00, 0x00, 0x00, 0x01, 0x0b, 0xa2, 0x30, - 0xeb, 0x30, 0xd0, 0x40, 0x30, 0x06, 0x98, 0x1b, 0x41, 0x00, 0x72, 0x00, - 0x75, 0x00, 0x10, 0x62, 0x00, 0x61, 0x10, 0x16, 0x60, 0x7f, 0x3f, 0x96, - 0x81, 0x9c, 0x20, 0xf4, 0x5d, 0x06, 0x9b, 0x1b, 0x44, 0xc5, 0xe8, 0xb8, - 0x14, 0x40, 0xbc, 0x10, 0x06, 0x93, 0x7f, 0x10, 0x04, 0x40, 0x04, 0x43, - 0x04, 0x09, 0x31, 0x04, 0x30, 0x04, 0x10, 0x1e, 0x54, 0xff, 0x01, 0x01, - 0xd0, 0x01, 0xe0, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x0c, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xd6, 0x11, 0xff, 0xc8, 0x00, 0x00, 0x00, - 0x01, 0x0c, 0xd0, 0x30, 0xcf, 0x30, 0xde, 0x41, 0x30, 0x06, 0x98, 0x1b, - 0x42, 0x00, 0x61, 0x00, 0x68, 0x20, 0x03, 0x50, 0x6d, 0x20, 0x07, 0x73, - 0x10, 0x16, 0x20, 0x7f, 0xf4, 0x5d, 0xc8, 0x54, 0x20, 0x6c, 0x9a, 0x06, - 0xab, 0x17, 0xbc, 0x58, 0xd5, 0xc8, 0xb9, 0xb0, 0x07, 0x53, 0x7f, 0x27, - 0x06, 0x23, 0x81, 0x06, 0xf3, 0xff, 0x11, 0x04, 0x30, 0x04, 0x40, 0x33, - 0x20, 0x03, 0x3c, 0x04, 0x41, 0x04, 0x3a, 0x04, 0x01, 0x38, 0x04, 0x35, - 0x04, 0x20, 0x00, 0x3e, 0x20, 0x0b, 0x01, 0x42, 0x04, 0x40, 0x04, 0x3e, - 0x04, 0x32, 0x20, 0x1d, 0x9e, 0x10, 0x1c, 0xd4, 0xff, 0x01, 0x01, 0xd0, - 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x0d, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x50, 0x09, 0x9c, 0xd5, 0x00, 0x00, 0x00, - 0x01, 0x0d, 0xd0, 0x30, 0xeb, 0x30, 0xd0, 0x04, 0x30, 0xc9, 0x30, 0xb9, - 0x30, 0x06, 0x58, 0x1f, 0x42, 0x00, 0x04, 0x61, 0x00, 0x72, 0x00, 0x62, - 0x20, 0x05, 0x64, 0x00, 0x16, 0x6f, 0x00, 0x73, 0x06, 0xc0, 0x7f, 0x65, - 0x0e, 0xe0, 0xff, 0x0e, 0x30, 0x7f, 0xf4, 0x03, 0x5d, 0xf4, 0x5d, 0x1a, - 0x59, 0xaf, 0x06, 0x31, 0xfa, 0x5b, 0x17, 0x00, 0xbc, 0xa0, 0xbc, 0x74, - 0xc7, 0xc4, 0xb3, 0xa4, 0x60, 0xc2, 0x0f, 0x13, 0x7f, 0x06, 0x33, 0xff, - 0x11, 0x04, 0x30, 0x04, 0x40, 0x20, 0x04, 0x31, 0x20, 0x05, 0x34, 0x04, - 0x3e, 0x04, 0x41, 0x67, 0x04, 0x10, 0x0d, 0xf3, 0xff, 0x0e, 0xf5, 0x7f, - 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x80, 0x3f, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x24, 0x39, 0x00, 0x11, 0x06, 0x00, 0x00, - 0x30, 0x01, 0x0e, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x44, 0x0c, 0xe1, 0xc0, 0x00, 0x00, 0x00, - 0x02, 0x0e, 0xab, 0x30, 0xe8, 0x30, 0xfc, 0x10, 0x30, 0xde, 0x5d, 0x06, - 0x78, 0x1d, 0x43, 0x00, 0x61, 0x00, 0x18, 0x79, 0x00, 0x6f, 0x06, 0x88, - 0x9c, 0x10, 0x0e, 0xf0, 0x7f, 0x61, 0x53, 0xa6, 0x10, 0x7e, 0x3a, 0x53, - 0x06, 0x9b, 0x1b, 0x74, 0xce, 0x94, 0xc6, 0x08, 0x20, 0x00, 0xfc, 0xc8, - 0x10, 0x06, 0x73, 0x7f, 0x1a, 0x04, 0x30, 0x04, 0x04, 0x39, 0x04, 0x3e, - 0x04, 0x10, 0x1e, 0x74, 0xff, 0x01, 0x02, 0x50, 0x02, 0x20, 0x01, 0x01, - 0x40, 0x06, 0x01, 0x01, 0x01, 0x01, 0x82, 0x58, 0x17, 0x03, 0x0e, 0xd9, - 0x30, 0xea, 0x28, 0x17, 0xba, 0x80, 0x06, 0x88, 0x19, 0x42, 0x00, 0x65, - 0x00, 0x6c, 0x00, 0x69, 0x34, 0x00, 0x7a, 0x20, 0x07, 0x10, 0x0e, 0xb0, - 0x7f, 0x63, 0x06, 0x61, 0xff, 0x2f, 0x4f, 0x02, 0x29, 0x52, 0x79, 0x51, - 0xce, 0x57, 0x06, 0x7f, 0xb5, 0xa8, 0x06, 0xbc, 0xac, 0xb9, 0x88, 0xc9, - 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0x11, 0x00, 0x04, 0x35, 0x04, 0x3b, - 0x04, 0x38, 0x04, 0x37, 0xfc, 0x06, 0x68, 0x19, 0x10, 0x0f, 0x74, 0xff, - 0x06, 0x76, 0xff, 0x48, 0x0c, 0x28, 0x1c, 0x50, 0x05, 0x02, 0x02, 0x00, - 0x6e, 0x0c, 0x4b, 0xc1, 0x00, 0x00, 0x04, 0x0e, 0x01, 0xb3, 0x30, 0xed, - 0x30, 0xb5, 0x30, 0xeb, 0x06, 0x88, 0x17, 0x55, 0x43, 0x2f, 0xab, 0x72, - 0x2f, 0xaf, 0x7a, 0x2f, 0xb7, 0x6c, 0x10, 0x16, 0x20, 0x7f, 0x00, 0xd1, - 0x79, 0x57, 0x7f, 0x28, 0x84, 0x14, 0x5c, 0x20, 0x3a, 0x53, 0x06, 0x5f, - 0xb1, 0x54, 0xcf, 0x5c, 0xb8, 0xb4, 0x60, 0xc0, 0x06, 0x98, 0x17, 0x0e, - 0xf3, 0x7f, 0x1a, 0x04, 0x3e, 0x04, 0x40, 0x8c, 0x20, 0x03, 0x37, 0x04, - 0x30, 0x28, 0x1f, 0x10, 0x1e, 0x14, 0xff, 0x03, 0x03, 0x88, 0xd0, 0x01, - 0x12, 0x0d, 0x27, 0x28, 0x17, 0x05, 0x0e, 0xaa, 0x00, 0x30, 0xec, 0x30, - 0xf3, 0x30, 0xb8, 0x30, 0xa6, 0x02, 0x30, 0xa9, 0x30, 0xfc, 0x30, 0xaf, - 0x06, 0x08, 0x1f, 0x4f, 0x82, 0x28, 0x15, 0x61, 0x00, 0x6e, 0x00, 0x67, - 0x2f, 0xb7, 0x20, 0x28, 0x00, 0x57, 0x48, 0x1d, 0x6b, 0x10, 0x15, 0xa0, - 0x7f, 0x58, 0x6a, 0xed, 0x60, 0x56, 0x06, 0x78, 0x13, 0x3f, 0xff, 0x24, - 0xc6, 0x0c, 0xb8, 0xc0, 0x06, 0xc9, 0xcc, 0xc6, 0x6c, 0xd0, 0x06, 0x58, - 0x1b, 0x0e, 0xf3, 0x7f, 0x1e, 0x80, 0x28, 0x15, 0x38, 0x04, 0x3d, 0x04, - 0x34, 0x04, 0x36, 0x08, 0x04, 0x20, 0x00, 0x23, 0x28, 0x25, 0x3b, 0x04, - 0x3a, 0xc8, 0x05, 0xa8, 0x1f, 0x10, 0x16, 0xf4, 0xff, 0x04, 0x04, 0xd0, - 0x01, 0xd8, 0x0c, 0x08, 0x82, 0x28, 0x17, 0x06, 0x0e, 0xb9, 0x30, 0xbf, - 0x28, 0x17, 0xaf, 0x20, 0x30, 0xea, 0x06, 0x48, 0x15, 0x00, 0x00, 0x53, - 0x00, 0x74, 0xab, 0x48, 0x17, 0x6e, 0x28, 0x15, 0x43, 0x2f, 0xb9, 0x65, - 0x28, 0x1f, 0x05, 0xb8, 0x17, 0x81, 0x10, 0x0e, 0xf0, 0x7f, 0xaf, 0x65, - 0x66, 0x57, 0x2f, 0x6e, 0x06, 0x98, 0x19, 0x00, 0xa4, 0xc2, 0xe0, 0xd0, - 0x6c, 0xd0, 0xac, 0xb9, 0xc1, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x21, - 0x04, 0x42, 0x04, 0x4d, 0x28, 0x17, 0x1c, 0x20, 0x00, 0x1a, 0x48, 0x21, - 0x05, 0xb8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x05, 0x05, 0x88, 0xd0, 0x01, - 0x10, 0x0c, 0x45, 0x28, 0x17, 0x07, 0x0e, 0xc8, 0x0c, 0x30, 0xec, 0x30, - 0xc9, 0x06, 0x28, 0x0f, 0x7f, 0xff, 0x54, 0x00, 0x46, 0x6f, 0x2f, 0xa1, - 0x65, 0x00, 0x64, 0x20, 0x07, 0x10, 0x16, 0x30, 0x7f, 0x58, 0x04, 0x62, - 0xb1, 0x83, 0x1a, 0x59, 0x06, 0x98, 0x17, 0xa8, 0xd1, 0x0c, 0x08, 0xb8, - 0xc4, 0xb3, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x22, 0x04, 0x01, 0x3e, - 0x04, 0x3b, 0x04, 0x35, 0x04, 0x34, 0x20, 0x07, 0x90, 0x10, 0x1e, 0x34, - 0xff, 0x06, 0x06, 0xd0, 0x01, 0x72, 0x0b, 0xdb, 0xc0, 0x8a, 0x00, 0x3f, - 0xff, 0x01, 0x02, 0x02, 0x20, 0x01, 0x01, 0x40, 0x06, 0x01, 0x78, 0x01, - 0x20, 0x07, 0x30, 0x04, 0x20, 0x14, 0x50, 0x05, 0x02, 0x02, 0x03, 0x4f, - 0x03, 0xd0, 0x01, 0x04, 0x04, 0xd0, 0x01, 0xf8, 0x7f, 0xf0, 0x77, 0x3f, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x99, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xeb, 0x00, 0xda, 0x49, 0x00, 0x00, 0x00, - 0x01, 0x99, 0xb7, 0x30, 0xf3, 0x30, 0xac, 0x01, 0x30, 0xdd, 0x30, 0xfc, - 0x30, 0xeb, 0x30, 0x06, 0x38, 0x21, 0x00, 0x53, 0x00, 0x69, 0x00, 0x6e, - 0x00, 0x67, 0x00, 0x00, 0x61, 0x00, 0x70, 0x00, 0x6f, 0x00, 0x72, 0x00, - 0x5f, 0x65, 0x06, 0xc0, 0x7f, 0x75, 0x20, 0x81, 0x06, 0x90, 0xff, 0x06, - 0x10, 0x7d, 0x07, 0xd1, 0x7f, 0x06, 0x30, 0xff, 0x02, 0xb0, 0x65, 0xa0, - 0x52, 0x61, 0x57, 0x06, 0x9b, 0x1b, 0xf1, 0x01, 0xc2, 0x00, 0xac, 0xec, - 0xd3, 0x74, 0xb9, 0x06, 0x7b, 0x9d, 0xa0, 0x07, 0xf1, 0xff, 0x61, 0x05, - 0xec, 0xa6, 0x21, 0x04, 0x38, 0x04, 0x3d, 0x00, 0x04, 0x33, 0x04, 0x30, - 0x04, 0x3f, 0x04, 0x43, 0x19, 0x04, 0x40, 0x04, 0x0e, 0xd4, 0xff, 0x10, - 0x0e, 0x10, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0xe0, 0x58, 0x17, 0x01, 0x10, - 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0xb4, 0x8a, 0x00, - 0x11, 0x10, 0x00, 0x00, 0x30, 0x01, 0x9c, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x40, 0x02, 0x51, - 0x48, 0x00, 0x00, 0x00, 0x02, 0x9c, 0xaf, 0x30, 0xa2, 0x30, 0xe9, 0x00, - 0x30, 0xfb, 0x30, 0xeb, 0x30, 0xf3, 0x30, 0xd7, 0x30, 0x30, 0xfc, 0x20, - 0x07, 0x05, 0xd8, 0x27, 0x4b, 0x00, 0x75, 0x00, 0x11, 0x61, 0x00, 0x6c, - 0x20, 0x03, 0x20, 0x00, 0x4c, 0x20, 0x0b, 0x14, 0x6d, 0x00, 0x70, 0x20, - 0x11, 0x72, 0x10, 0x15, 0x80, 0x7f, 0x09, 0x54, 0x00, 0x86, 0x96, 0x61, - 0x57, 0x54, 0x80, 0xa6, 0x90, 0x02, 0xf4, 0x76, 0x96, 0x8f, 0x3a, 0x53, - 0x05, 0xfb, 0x25, 0xe0, 0x00, 0xcf, 0x4c, 0xc5, 0x7c, 0xb7, 0xf8, 0xb8, - 0x78, 0x18, 0xd4, 0x74, 0xb9, 0x06, 0x3b, 0xa1, 0x0e, 0xf3, 0x7f, 0x1a, - 0x04, 0x43, 0x08, 0x04, 0x30, 0x04, 0x3b, 0x20, 0x03, 0x2d, 0x00, 0x1b, - 0x89, 0x20, 0x0b, 0x3c, 0x04, 0x3f, 0x20, 0x11, 0x40, 0x04, 0x10, 0x1d, - 0x74, 0xff, 0x14, 0x01, 0x04, 0x04, 0x20, 0x01, 0x01, 0x40, 0x06, 0x01, - 0x01, 0x20, 0x01, 0x01, 0x58, 0x17, 0x03, 0x9c, 0xb8, 0x30, 0xe7, 0x24, - 0x30, 0xdb, 0x48, 0x0f, 0xde, 0x5d, 0x06, 0x3f, 0xb9, 0x4a, 0x00, 0x1c, - 0x6f, 0x00, 0x68, 0x20, 0x03, 0x05, 0x98, 0x09, 0x10, 0x0f, 0xd0, 0x7f, - 0xd4, 0x67, 0x30, 0x5b, 0x4f, 0x06, 0x52, 0xf9, 0x5f, 0xff, 0x70, 0xc8, - 0x38, 0xd6, 0x02, 0x74, 0xb9, 0x20, 0x00, 0xfc, 0xc8, 0x10, 0x06, 0x52, - 0xff, 0x14, 0x03, 0x04, 0x36, 0x04, 0x3e, 0x04, 0x45, 0x20, 0x03, 0x05, - 0x98, 0x0b, 0xa4, 0x10, 0x17, 0xb4, 0xff, 0x02, 0x38, 0x0c, 0x01, 0x02, - 0x40, 0x06, 0x02, 0x02, 0x00, 0x02, 0x02, 0x0a, 0x01, 0xc7, 0x49, 0x00, - 0x00, 0x06, 0x04, 0x9c, 0xb1, 0x30, 0xc0, 0x06, 0x68, 0x11, 0x7f, 0xaf, - 0x65, 0x28, 0x00, 0x64, 0x2f, 0xb1, 0x68, 0x10, 0x16, 0x60, 0x7f, 0x09, - 0x54, 0x53, 0x43, 0x62, 0x06, 0xb8, 0x17, 0x00, 0xcf, 0xe4, 0xb2, 0x06, - 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x01, 0x1a, 0x04, 0x35, 0x04, 0x34, 0x04, - 0x30, 0x28, 0x19, 0xa4, 0x10, 0x1e, 0x54, 0xff, 0x03, 0x38, 0x0c, 0x02, - 0x03, 0x40, 0x06, 0x03, 0x03, 0x00, 0x03, 0x03, 0x59, 0x04, 0x5f, 0x47, - 0x00, 0x00, 0x41, 0x05, 0x28, 0x17, 0xe9, 0x30, 0xf3, 0x30, 0xbf, 0x20, - 0x03, 0xd1, 0x06, 0x5d, 0x35, 0x38, 0x17, 0x6c, 0x28, 0x17, 0x6e, 0x00, - 0x74, 0x40, 0x05, 0x81, 0x10, 0x15, 0xf0, 0x7f, 0x09, 0x54, 0x70, 0x51, - 0x39, 0x4e, 0x06, 0x9b, 0x19, 0x03, 0x08, 0xcf, 0x80, 0xb7, 0xc4, 0xd0, - 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0xa3, 0x38, 0x17, 0x3b, 0x28, 0x17, - 0x3d, 0x04, 0x42, 0x40, 0x05, 0x10, 0x1d, 0xf4, 0xff, 0x48, 0x04, 0x38, - 0x0c, 0x03, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x00, 0x04, 0x5c, 0x04, - 0xb6, 0x48, 0x00, 0x00, 0x06, 0x22, 0x9c, 0xde, 0x28, 0x17, 0xc3, 0x30, - 0xab, 0x06, 0x68, 0x15, 0x00, 0x2d, 0x00, 0x4d, 0x68, 0x17, 0x6b, 0x2f, - 0xb3, 0x06, 0x50, 0x7f, 0x61, 0x48, 0x97, 0x77, 0x63, 0x20, 0x01, 0x06, - 0x30, 0x81, 0x70, 0x7f, 0x6b, 0x06, 0x61, 0x01, 0x07, 0x10, 0xff, 0x06, - 0xd1, 0xff, 0x02, 0x6c, 0x9a, 0x6d, 0x51, 0x32, 0x75, 0x06, 0x98, 0x17, - 0xc8, 0x06, 0xbb, 0x7c, 0xb7, 0x74, 0xce, 0x06, 0x98, 0x17, 0x0e, 0xf2, - 0x7f, 0x1c, 0xd7, 0x28, 0x13, 0x38, 0x17, 0x3a, 0x20, 0x01, 0x30, 0x06, - 0x08, 0x15, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x14, 0x05, 0x06, - 0x06, 0x20, 0x01, 0x05, 0x40, 0x06, 0x05, 0x05, 0x04, 0x05, 0x05, 0x8f, - 0x01, 0xb5, 0x28, 0x17, 0x07, 0x9c, 0x00, 0xcc, 0x30, 0xb0, 0x30, 0xea, - 0x30, 0xfb, 0x30, 0x05, 0xbb, 0x30, 0xf3, 0x30, 0xd3, 0x28, 0x23, 0xf3, - 0x05, 0xe8, 0x21, 0x50, 0x4e, 0x2f, 0xaf, 0x67, 0x2f, 0xb3, 0x72, 0x00, - 0x69, 0x00, 0x11, 0x20, 0x00, 0x53, 0x2f, 0xbd, 0x6d, 0x00, 0x62, 0x20, - 0x0b, 0xc0, 0x5f, 0xc3, 0x10, 0x15, 0x10, 0x7f, 0xee, 0x68, 0x8e, 0x7f, - 0x70, 0x51, 0x80, 0x06, 0x98, 0x17, 0x90, 0xb2, 0xf8, 0xad, 0xac, 0xb9, - 0xb4, 0x06, 0xc2, 0x4c, 0xbe, 0x80, 0xb7, 0x06, 0x38, 0x1d, 0x0e, 0xf3, - 0x7f, 0x1d, 0x08, 0x04, 0x35, 0x04, 0x33, 0x20, 0x03, 0x40, 0x04, 0x38, - 0x08, 0x04, 0x2d, 0x00, 0x21, 0x20, 0x0d, 0x3c, 0x04, 0x31, 0xd8, 0x20, - 0x13, 0x38, 0x2b, 0x3d, 0x05, 0x28, 0x27, 0x10, 0x16, 0xf4, 0xff, 0x06, - 0x07, 0x07, 0xb1, 0x20, 0x01, 0x06, 0x40, 0x06, 0x38, 0x22, 0xee, 0x01, - 0x7c, 0x28, 0x17, 0x06, 0x08, 0x9c, 0xd1, 0x30, 0xcf, 0x06, 0x08, 0x0b, - 0xbf, 0xff, 0x50, 0xa8, 0x2f, 0xaf, 0x68, 0x48, 0x03, 0x67, 0x10, 0x16, - 0x40, 0x7f, 0x6d, 0x5f, 0xa8, 0x40, 0x4e, 0x06, 0x98, 0x15, 0x00, 0x00, - 0x0c, 0xd3, 0x6d, 0xd5, 0xd5, 0x06, 0x38, 0x0f, 0x0f, 0x73, 0x7f, 0x1f, - 0x27, 0xff, 0x45, 0x48, 0x03, 0x33, 0x05, 0x28, 0x05, 0x8b, 0x10, 0x18, - 0x14, 0xff, 0x07, 0x08, 0x08, 0x20, 0x01, 0x07, 0x40, 0x06, 0x38, 0x22, - 0x00, 0xb3, 0x02, 0x7b, 0x49, 0x00, 0x00, 0x09, 0x9c, 0x1c, 0xda, 0x30, - 0xe9, 0x06, 0xa8, 0x15, 0x38, 0x17, 0x3f, 0xab, 0x61, 0x00, 0x42, 0x6b, - 0x10, 0x16, 0x60, 0x7f, 0x39, 0x97, 0xf3, 0x96, 0x06, 0xb8, 0x17, 0x98, - 0x06, 0xd3, 0x7c, 0xb7, 0x6c, 0xd0, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, - 0x1f, 0x0b, 0x04, 0x35, 0x04, 0x40, 0x28, 0x1b, 0x3a, 0x06, 0x48, 0x15, - 0x10, 0x17, 0x14, 0xff, 0x15, 0x08, 0x0a, 0x0a, 0x20, 0x01, 0x08, 0x20, - 0x06, 0x09, 0x20, 0x05, 0x00, 0x08, 0x08, 0x42, 0x03, 0xe1, 0x47, 0x00, - 0x00, 0x41, 0x0a, 0x28, 0x17, 0xeb, 0x30, 0xea, 0x30, 0xb9, 0x06, 0x88, - 0x1b, 0x82, 0x58, 0x17, 0x6c, 0x00, 0x69, 0x00, 0x73, 0x10, 0x16, 0x40, - 0x7f, 0xbb, 0x06, 0x73, 0x83, 0x74, 0x02, 0x5e, 0x06, 0x9b, 0x19, 0x28, - 0x17, 0xb9, 0x0e, 0xac, 0xb9, 0xa4, 0xc2, 0x06, 0x78, 0x19, 0x0e, 0xf3, - 0x7f, 0x58, 0x17, 0x3b, 0x0c, 0x04, 0x38, 0x04, 0x41, 0x06, 0x48, 0x19, - 0x10, 0x16, 0xf4, 0xff, 0x09, 0x0b, 0x54, 0x0b, 0x20, 0x01, 0x09, 0x20, - 0x06, 0x0a, 0x20, 0x05, 0x09, 0x09, 0x10, 0x93, 0x04, 0x40, 0x28, 0x17, - 0x0b, 0x9c, 0xd4, 0x30, 0x1a, 0xca, 0x30, 0xf3, 0x06, 0x88, 0x15, 0x5f, - 0xaf, 0x6e, 0x2f, 0xaf, 0x6e, 0x20, 0x00, 0x67, 0x10, 0x16, 0x40, 0x7f, - 0xdf, 0x69, 0x94, 0x69, 0x7f, 0x43, 0x5c, 0x06, 0x98, 0x17, 0x3c, 0xd5, - 0xad, 0xb0, 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x15, 0x1f, 0x04, 0x43, - 0x28, 0x15, 0x30, 0x20, 0x05, 0x2d, 0x28, 0x23, 0x11, 0x38, 0x04, 0x3d, - 0x20, 0x0b, 0x3d, 0x04, 0x33, 0x05, 0x88, 0x23, 0xa5, 0x10, 0x16, 0xf4, - 0xff, 0x0a, 0x38, 0x0c, 0x09, 0x0a, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x04, - 0x0a, 0x0a, 0xda, 0x03, 0x59, 0x28, 0x17, 0x0c, 0x9c, 0x01, 0xb5, 0x30, - 0xe9, 0x30, 0xef, 0x30, 0xaf, 0x06, 0x88, 0x19, 0x55, 0x53, 0x28, 0x13, - 0x72, 0x28, 0x17, 0x77, 0x28, 0x1b, 0x6b, 0x10, 0x16, 0x20, 0x7f, 0x02, - 0x99, 0x6c, 0x5e, 0x63, 0x8a, 0x8d, 0x06, 0x9b, 0x17, 0xac, 0x06, 0xc0, - 0x7c, 0xb7, 0x41, 0xc6, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0x21, 0xab, - 0x28, 0x13, 0x40, 0x28, 0x17, 0x32, 0x28, 0x1b, 0x3a, 0x05, 0x88, 0x0d, - 0x10, 0x17, 0x94, 0xff, 0x14, 0x0b, 0x0e, 0x0e, 0x20, 0x01, 0x0b, 0x40, - 0x06, 0x0b, 0x0b, 0x00, 0x0b, 0x0b, 0x1a, 0x01, 0x75, 0x4e, 0x00, 0x00, - 0x10, 0x0d, 0x9c, 0xbb, 0x28, 0x17, 0xf3, 0x30, 0xb4, 0x30, 0x15, 0xfc, - 0x30, 0xeb, 0x06, 0x48, 0x1b, 0x53, 0x2f, 0xaf, 0x6c, 0x6f, 0xaf, 0x60, - 0x6f, 0x28, 0x21, 0x10, 0x15, 0xf0, 0x7f, 0xea, 0x96, 0x70, 0x51, 0xaa, - 0x40, 0x83, 0x06, 0x98, 0x17, 0x40, 0xc1, 0x91, 0xb7, 0xe0, 0xac, 0x30, - 0x74, 0xb9, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x35, 0x04, - 0x41, 0x3b, 0x28, 0x1b, 0x3d, 0x04, 0x33, 0x04, 0x3e, 0x28, 0x21, 0x8a, - 0x10, 0x1d, 0xf4, 0xff, 0x0c, 0x0f, 0x0f, 0x20, 0x01, 0x0c, 0x40, 0x06, - 0x0c, 0x00, 0x0c, 0x0c, 0x0c, 0x31, 0x02, 0x33, 0x48, 0x00, 0x02, 0x00, - 0x0e, 0x9c, 0xc8, 0x30, 0xec, 0x28, 0x17, 0xac, 0x22, 0x30, 0xcc, 0x06, - 0x48, 0x15, 0x00, 0x00, 0x54, 0x28, 0x17, 0x72, 0xd4, 0x28, 0x1b, 0x38, - 0x17, 0x67, 0x48, 0x1f, 0x75, 0x10, 0x15, 0xc0, 0x7f, 0x01, 0x4e, 0x08, - 0xa0, 0x52, 0x74, 0x59, 0x06, 0x98, 0x17, 0xb8, 0xd2, 0x1d, 0x06, 0xb8, - 0x00, 0xac, 0x04, 0xb2, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x22, 0xb6, - 0x28, 0x0b, 0x35, 0x48, 0x15, 0x38, 0x1b, 0x43, 0x06, 0x08, 0x17, 0x10, - 0x16, 0xf4, 0xff, 0x0d, 0x28, 0x10, 0x10, 0x20, 0x01, 0x0d, 0x40, 0x06, - 0x0d, 0x0d, 0x0d, 0x00, 0x0d, 0xca, 0x03, 0x56, 0x49, 0x00, 0x00, 0x0f, - 0x03, 0x9c, 0xe9, 0x30, 0xd6, 0x30, 0xa2, 0x28, 0x19, 0x06, 0x7d, 0x2f, - 0x5c, 0x4c, 0x2f, 0xab, 0x62, 0x28, 0x0b, 0x3f, 0xb1, 0x10, 0x16, 0x30, - 0x7f, 0xb3, 0x7e, 0x00, 0xfd, 0x95, 0x54, 0x80, 0xa6, 0x90, 0xf4, 0x76, - 0x08, 0x96, 0x8f, 0x3a, 0x53, 0x06, 0x1f, 0xb1, 0x7c, 0xb7, 0x80, 0x1a, - 0xbd, 0x48, 0xc5, 0x06, 0x78, 0x95, 0x0f, 0x13, 0x7f, 0x1b, 0x28, 0x0f, - 0x31, 0xe2, 0x28, 0x0f, 0x38, 0x15, 0x10, 0x1e, 0x34, 0xff, 0x0e, 0x05, - 0x05, 0x20, 0x01, 0x0e, 0x80, 0x40, 0x06, 0x0e, 0x0e, 0x0e, 0x0e, 0xc0, - 0x03, 0xf3, 0x00, 0x51, 0x00, 0x00, 0x10, 0x9c, 0xb5, 0x30, 0xd0, 0x44, - 0x30, 0x06, 0x9d, 0x2d, 0x00, 0x00, 0x53, 0x48, 0x17, 0x61, 0x00, 0x42, - 0x68, 0x10, 0x16, 0x60, 0x7f, 0x99, 0x6c, 0xf4, 0x5d, 0x06, 0xb2, 0xff, - 0xac, 0x01, 0xc0, 0x14, 0xbc, 0x20, 0x00, 0xfc, 0xc8, 0x10, 0x06, 0x73, - 0x7f, 0x46, 0x21, 0x48, 0x17, 0x30, 0x04, 0x45, 0x06, 0x48, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x0f, 0x28, 0x0d, 0x0d, 0x20, 0x01, 0x0f, 0x40, 0x06, - 0x0f, 0x0f, 0x0f, 0x00, 0x0f, 0x41, 0x04, 0x89, 0x52, 0x00, 0x00, 0x11, - 0x00, 0x9c, 0xd7, 0x30, 0xc8, 0x30, 0xe9, 0x30, 0xb8, 0x05, 0x30, 0xe3, - 0x30, 0xe4, 0x30, 0x06, 0x3f, 0xb0, 0x50, 0x2f, 0xab, 0x15, 0x74, 0x00, - 0x72, 0x2f, 0xb5, 0x6a, 0x2f, 0xb9, 0x79, 0x2f, 0xbd, 0x80, 0x10, 0x15, - 0xd0, 0x7f, 0x03, 0x5e, 0xce, 0x57, 0x54, 0x80, 0xa6, 0x01, 0x90, 0xf4, - 0x76, 0x96, 0x8f, 0x3a, 0x53, 0x06, 0x1f, 0xb7, 0x00, 0x78, 0xd4, 0xb8, - 0xd2, 0x7c, 0xb7, 0x90, 0xc7, 0x30, 0x7c, 0xc5, 0x06, 0x5b, 0x9b, 0x0e, - 0xf3, 0x7f, 0x1f, 0x04, 0x43, 0x04, 0x11, 0x42, 0x04, 0x40, 0x28, 0x1d, - 0x34, 0x04, 0x36, 0x28, 0x23, 0x62, 0x4f, 0x05, 0xe8, 0x1f, 0x10, 0x16, - 0xf4, 0xff, 0x10, 0x0c, 0x0c, 0x20, 0x01, 0x10, 0x80, 0x40, 0x06, 0x10, - 0x10, 0x10, 0x10, 0x12, 0x02, 0x4b, 0x45, 0x48, 0x00, 0x3f, 0xff, 0x01, - 0x04, 0x04, 0x20, 0x01, 0x01, 0x40, 0x06, 0x04, 0x01, 0x01, 0x01, 0x01, - 0x02, 0x30, 0x04, 0x01, 0x02, 0x82, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, - 0x03, 0x30, 0x04, 0x02, 0x41, 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, - 0x04, 0x30, 0x04, 0x31, 0x03, 0x04, 0x40, 0x06, 0x30, 0x3a, 0x05, 0x06, - 0x06, 0x20, 0x01, 0x49, 0x05, 0x40, 0x06, 0x05, 0x05, 0x20, 0x07, 0x07, - 0x07, 0x20, 0x01, 0x62, 0x06, 0x40, 0x06, 0x30, 0x1a, 0x07, 0x08, 0x08, - 0x20, 0x01, 0x07, 0xc5, 0x40, 0x06, 0x30, 0x1a, 0x08, 0x0a, 0x0a, 0x20, - 0x01, 0x08, 0x20, 0x06, 0x41, 0x09, 0x20, 0x05, 0x08, 0x08, 0x09, 0x0b, - 0x0b, 0x20, 0x01, 0x51, 0x09, 0x20, 0x06, 0x0a, 0x20, 0x05, 0x09, 0x09, - 0x0a, 0x30, 0x04, 0x48, 0x09, 0x20, 0x1d, 0x09, 0x0b, 0x20, 0x05, 0x0a, - 0x0a, 0x0b, 0x2d, 0x0e, 0x0e, 0x20, 0x01, 0x0b, 0x40, 0x06, 0x30, 0x2a, - 0x0c, 0x38, 0xe4, 0x34, 0x0f, 0x0c, 0x40, 0x06, 0x30, 0xe2, 0x0d, 0x30, - 0xdc, 0x10, 0x0d, 0xd3, 0x40, 0x06, 0x39, 0x0a, 0x0e, 0x30, 0x84, 0x05, - 0x0e, 0x40, 0x06, 0x30, 0x3a, 0xe0, 0xf9, 0x1f, 0xf1, 0x17, 0x3f, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x9c, 0x51, 0x00, - 0x11, 0x09, 0x00, 0x00, 0x30, 0x01, 0x0f, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x45, 0xf4, 0x8a, - 0xcf, 0x00, 0x00, 0x00, 0x02, 0x0f, 0xe9, 0x30, 0xd1, 0x30, 0xb9, 0x10, - 0x30, 0x0c, 0x77, 0x06, 0x78, 0x1d, 0x4c, 0x00, 0x61, 0x00, 0x14, 0x20, - 0x00, 0x50, 0x20, 0x05, 0x7a, 0x10, 0x16, 0x40, 0x7f, 0xc9, 0x62, 0x04, - 0xf4, 0x5d, 0xaf, 0x65, 0x01, 0x06, 0x82, 0xff, 0x7c, 0xb7, 0x00, 0x0c, - 0xd3, 0xa4, 0xc2, 0x20, 0x00, 0xfc, 0xc8, 0x80, 0x10, 0x06, 0x53, 0x7f, - 0x1b, 0x04, 0x30, 0x04, 0x2d, 0x00, 0x1f, 0x91, 0x20, 0x05, 0x41, 0x04, - 0x10, 0x1e, 0x34, 0xff, 0x01, 0x04, 0x04, 0x20, 0x01, 0x52, 0x01, 0x20, - 0x06, 0x03, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x00, 0x0f, 0xc1, - 0x30, 0xe5, 0x30, 0xad, 0x30, 0xb5, 0x20, 0x30, 0xab, 0x06, 0x68, 0x1b, - 0x43, 0x00, 0x68, 0x00, 0x75, 0x22, 0x00, 0x71, 0x20, 0x03, 0x69, 0x00, - 0x73, 0x28, 0x23, 0x63, 0xc0, 0x28, 0x27, 0x10, 0x15, 0xb0, 0x7f, 0x18, - 0x4e, 0xfa, 0x57, 0x28, 0x84, 0x20, 0x61, 0x53, 0x06, 0x78, 0x19, 0x94, - 0xcd, 0xa4, 0xd0, 0xac, 0x18, 0xc0, 0x74, 0xce, 0x06, 0x78, 0x19, 0x0e, - 0xf3, 0x7f, 0x27, 0x04, 0x43, 0x0a, 0x04, 0x3a, 0x04, 0x38, 0x28, 0x15, - 0x30, 0x20, 0x07, 0x30, 0xc2, 0x06, 0x08, 0x1b, 0x10, 0x16, 0xf4, 0xff, - 0x02, 0x01, 0x02, 0x02, 0x50, 0x03, 0x09, 0x80, 0x30, 0x09, 0x02, 0x76, - 0xf2, 0x98, 0xd1, 0x00, 0x00, 0x00, 0x04, 0x0f, 0xb3, 0x30, 0xc1, 0x30, - 0xe3, 0x30, 0x18, 0xd0, 0x30, 0xf3, 0x20, 0x03, 0x06, 0x38, 0x19, 0x43, - 0x00, 0x6f, 0xab, 0x28, 0x0b, 0x68, 0x2f, 0xb5, 0x62, 0x2f, 0xb9, 0x6d, - 0x40, 0x05, 0x10, 0x15, 0xb0, 0x7f, 0x00, 0xd1, 0x79, 0x70, 0x60, 0xed, - 0x73, 0xf4, 0x5d, 0x80, 0x06, 0x78, 0x17, 0x54, 0xcf, 0x28, 0xcc, 0x24, - 0xbc, 0x14, 0x60, 0xbc, 0x06, 0x98, 0x17, 0x0e, 0xd3, 0x7f, 0x1a, 0x04, - 0x3e, 0x04, 0x47, 0xac, 0x28, 0x13, 0x31, 0x28, 0x17, 0x3c, 0x40, 0x05, - 0x10, 0x1d, 0xd4, 0xff, 0x03, 0x02, 0x28, 0x03, 0x03, 0x50, 0x03, 0x02, - 0x30, 0x09, 0x03, 0xa4, 0xf3, 0x00, 0xf6, 0xd0, 0x00, 0x00, 0x05, 0x0f, - 0xd9, 0x30, 0x60, 0xcb, 0x06, 0x48, 0x0f, 0x7f, 0xff, 0x45, 0x00, 0x6c, - 0x00, 0x20, 0x03, 0x00, 0x42, 0x00, 0x65, 0x00, 0x6e, 0x2f, 0xb1, 0x06, - 0x1d, 0xb3, 0xe1, 0x06, 0x90, 0x79, 0x0f, 0x50, 0x7f, 0x06, 0xf1, 0xff, - 0x1d, 0x8d, 0x3c, 0x5c, 0x06, 0x78, 0x13, 0x81, 0x3f, 0xff, 0xd8, 0xc5, - 0xa0, 0xbc, 0xc8, 0xb2, 0x06, 0x78, 0x15, 0x80, 0x0f, 0x11, 0xff, 0x11, - 0x04, 0x35, 0x04, 0x3d, 0x04, 0x38, 0xe0, 0x05, 0xe8, 0x0d, 0x07, 0x94, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x04, 0x03, 0x01, 0x01, 0x01, 0x04, 0x03, - 0x04, 0x04, 0x01, 0x03, 0x30, 0x05, 0x04, 0x04, 0x00, 0x74, 0xf5, 0xda, - 0xd1, 0x00, 0x00, 0x06, 0x0f, 0x04, 0xaa, 0x30, 0xeb, 0x30, 0xed, 0x06, - 0xa8, 0x19, 0x4f, 0x00, 0x14, 0x72, 0x00, 0x75, 0x20, 0x03, 0x6f, 0x10, - 0x16, 0x60, 0x7f, 0x65, 0x59, 0x08, 0x81, 0x9c, 0x57, 0x7f, 0x06, 0x98, - 0x19, 0x24, 0xc6, 0xe8, 0x18, 0xb8, 0x5c, 0xb8, 0x06, 0x98, 0x17, 0x0e, - 0xf3, 0x7f, 0x1e, 0x04, 0x40, 0x2c, 0x04, 0x43, 0x20, 0x03, 0x3e, 0x06, - 0x68, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x05, 0x05, 0xa0, 0x70, 0x01, 0x04, - 0x40, 0x0a, 0x37, 0xf3, 0x40, 0xd0, 0x00, 0x00, 0x00, 0x07, 0x0f, 0xd1, - 0x30, 0xf3, 0x30, 0xc9, 0x8b, 0x06, 0xa8, 0x17, 0x50, 0x00, 0x61, 0x2f, - 0xaf, 0x64, 0x06, 0x88, 0x17, 0x10, 0x0e, 0xf0, 0x7f, 0x08, 0x58, 0x6f, - 0x1a, 0x59, 0x06, 0x98, 0x15, 0x00, 0x00, 0x10, 0x18, 0xd3, 0xc4, 0xb3, - 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x1f, 0x04, 0x30, 0x0c, 0x04, 0x3d, - 0x04, 0x34, 0x06, 0x88, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x06, 0x06, 0xa0, - 0x70, 0x01, 0x05, 0x40, 0x0a, 0x28, 0xf8, 0x20, 0xcf, 0x00, 0x00, 0x00, - 0x08, 0x0f, 0xdd, 0x30, 0xc8, 0x30, 0xb7, 0x88, 0x06, 0xc8, 0x17, 0x6f, - 0x00, 0x74, 0x2f, 0xad, 0x73, 0x00, 0xed, 0x81, 0x10, 0x16, 0x40, 0x7f, - 0xe2, 0x6c, 0x58, 0x62, 0x7f, 0x89, 0x06, 0x98, 0x19, 0x03, 0xec, 0xd3, - 0xa0, 0xd1, 0xdc, 0xc2, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, 0x51, 0x1f, - 0x28, 0x11, 0x42, 0x28, 0x15, 0x41, 0x04, 0x38, 0x06, 0x48, 0x19, 0x94, - 0x10, 0x16, 0xf4, 0xff, 0x07, 0x07, 0x70, 0x01, 0x06, 0x40, 0x0a, 0x13, - 0xf2, 0x00, 0x3f, 0xd1, 0x00, 0x00, 0x09, 0x0f, 0xb5, 0x30, 0x00, 0xf3, - 0x30, 0xbf, 0x30, 0xfb, 0x30, 0xaf, 0x30, 0x15, 0xeb, 0x30, 0xb9, 0x06, - 0x28, 0x1f, 0x53, 0x4f, 0xaf, 0x74, 0x2f, 0xb5, 0x00, 0x20, 0x00, 0x43, - 0x00, 0x72, 0x00, 0x75, 0x00, 0x40, 0x7a, 0x10, 0x15, 0xc0, 0x7f, 0x23, - 0x57, 0x4b, 0x51, 0x81, 0x9c, 0x20, 0xaf, 0x65, 0x06, 0x78, 0x19, 0xb0, - 0xc0, 0xc0, 0xd0, 0x6c, 0x0c, 0xd0, 0xe8, 0xb8, 0xa4, 0x06, 0x68, 0x1b, - 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x10, 0x30, 0x04, 0x3d, 0x28, 0x19, 0x30, - 0x04, 0x2d, 0x00, 0x06, 0x1a, 0x04, 0x40, 0x04, 0x43, 0x28, 0x21, 0x10, - 0x1d, 0xb4, 0xff, 0x08, 0x50, 0x08, 0x70, 0x01, 0x07, 0x40, 0x0a, 0x58, - 0xf3, 0x15, 0xd3, 0x00, 0x00, 0x00, 0x0a, 0x0f, 0xbf, 0x30, 0xea, 0x30, - 0x68, 0xcf, 0x06, 0x28, 0x0f, 0x7f, 0xff, 0x54, 0x28, 0x17, 0x72, 0x00, - 0x69, 0x30, 0x00, 0x6a, 0x28, 0x1f, 0x10, 0x16, 0x40, 0x7f, 0x58, 0xcc, - 0x91, 0xc8, 0x40, 0x54, 0x06, 0x78, 0x15, 0x00, 0x00, 0xc0, 0xd0, 0xac, - 0xb9, 0x34, 0x58, 0xd5, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x22, 0x28, - 0x17, 0x40, 0x04, 0x19, 0x38, 0x04, 0x45, 0x28, 0x1f, 0x10, 0x1e, 0x34, - 0xff, 0x09, 0x09, 0x70, 0x01, 0x42, 0x08, 0x40, 0x0a, 0xb4, 0xf0, 0xf5, - 0xd1, 0x00, 0x3f, 0xff, 0x01, 0x2a, 0x04, 0x04, 0x20, 0x01, 0x01, 0x20, - 0x06, 0x03, 0x20, 0x05, 0x01, 0x05, 0x01, 0x02, 0x01, 0x02, 0x02, 0x50, - 0x03, 0x09, 0x30, 0x09, 0x07, 0x02, 0x03, 0x02, 0x03, 0x03, 0x50, 0x03, - 0x20, 0x0b, 0x20, 0x0a, 0x2a, 0x04, 0x03, 0x20, 0x25, 0x03, 0x20, 0x31, - 0x03, 0x30, 0x05, 0x04, 0x19, 0x04, 0x05, 0x05, 0x70, 0x01, 0x50, 0x0a, - 0x06, 0x06, 0x70, 0x01, 0x9f, 0x50, 0x0a, 0x07, 0x07, 0x70, 0x01, 0x50, - 0x0a, 0xf8, 0xaf, 0xf0, 0xa7, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x4c, 0x41, 0x00, 0x11, 0x07, 0x00, 0x00, 0x30, 0x01, 0xa8, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x66, 0x11, 0xa9, 0x26, 0x00, 0x00, 0x00, 0x02, 0xa8, 0xa2, 0x30, - 0xd6, 0x30, 0xc0, 0x10, 0x30, 0xd3, 0x30, 0x06, 0x78, 0x1d, 0x41, 0x00, - 0x62, 0x00, 0x00, 0x75, 0x00, 0x20, 0x00, 0x44, 0x00, 0x68, 0x00, 0x58, - 0x61, 0x20, 0x0b, 0x69, 0x10, 0x0e, 0x80, 0x7f, 0x06, 0x31, 0xfd, 0x00, - 0x00, 0x3f, 0x01, 0x96, 0x03, 0x5e, 0x4e, 0x62, 0xd4, 0x6b, 0x06, 0x7b, - 0x1d, 0x00, 0x44, 0xc5, 0x80, 0xbd, 0xe4, 0xb2, 0x44, 0xbe, 0xc0, 0x0f, - 0x13, 0x7f, 0x06, 0x51, 0xff, 0x10, 0x04, 0x31, 0x04, 0x43, 0x04, 0x04, - 0x2d, 0x00, 0x14, 0x04, 0x30, 0x20, 0x09, 0x38, 0x04, 0xcd, 0x10, 0x16, - 0x94, 0xff, 0x06, 0x56, 0xff, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x03, - 0x28, 0x17, 0x01, 0xb8, 0x30, 0xe5, 0x30, 0xde, 0x30, 0xf3, 0x06, 0x68, - 0x19, 0x05, 0x41, 0x00, 0x6a, 0x00, 0x6d, 0x28, 0x11, 0x6e, 0x06, 0x88, - 0x97, 0x83, 0x06, 0xf0, 0x7f, 0x64, 0x00, 0x73, 0x00, 0x63, 0x29, 0x15, - 0x06, 0x51, 0x05, 0xa0, 0x07, 0x51, 0x7f, 0xe1, 0x06, 0x81, 0xff, 0x3f, - 0x96, 0xbb, 0x6c, 0xfc, 0x40, 0x66, 0x06, 0x9f, 0xb3, 0x44, 0xc5, 0xc0, - 0xc9, 0xcc, 0xb9, 0xc0, 0x06, 0x9f, 0xb3, 0x0e, 0xf3, 0x7f, 0x10, 0x04, - 0x34, 0x04, 0x36, 0x04, 0x5c, 0x3c, 0x28, 0x15, 0x3d, 0x06, 0x08, 0x13, - 0x0f, 0x54, 0xff, 0x10, 0x06, 0xd0, 0xff, 0x02, 0x02, 0x80, 0xd0, 0x01, - 0x11, 0x12, 0x6d, 0x27, 0x00, 0x00, 0x04, 0x02, 0xa8, 0xb7, 0x30, 0xe3, - 0x30, 0xeb, 0x28, 0x1b, 0xe3, 0xa2, 0x06, 0x88, 0x17, 0x73, 0x2f, 0xa9, - 0x20, 0x00, 0x53, 0x4f, 0xaf, 0x72, 0xad, 0x2f, 0xaf, 0x71, 0x2f, 0xb7, - 0x68, 0x05, 0x8f, 0xb5, 0x70, 0x77, 0x6a, 0x05, 0xc0, 0x75, 0xf7, 0xb0, - 0x7f, 0x38, 0x13, 0x30, 0xf9, 0x78, 0x1f, 0x61, 0x05, 0xe0, 0x7f, 0x06, - 0xf0, 0xff, 0x71, 0x7d, 0x84, 0x06, 0x5f, 0xb1, 0x99, 0x6c, 0xe6, 0x8f, - 0x06, 0x98, 0x15, 0x00, 0x00, 0x03, 0xe4, 0xc0, 0x74, 0xb9, 0x90, 0xc7, - 0x06, 0x98, 0x97, 0x0e, 0xf1, 0xff, 0x57, 0x28, 0x28, 0x11, 0x40, 0x48, - 0x1b, 0x30, 0x06, 0x68, 0x17, 0x06, 0xd4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x00, 0x03, 0x04, 0x06, 0x06, 0x06, 0x06, 0x03, 0x03, 0x00, 0x06, 0x06, - 0x07, 0x04, 0x03, 0x03, 0x03, 0x03, 0x10, 0xc7, 0x11, 0xa4, 0x28, 0x17, - 0x05, 0xa8, 0xe9, 0x30, 0x05, 0xa2, 0x30, 0xb9, 0x30, 0xfb, 0x20, 0x05, - 0xeb, 0x20, 0x05, 0x01, 0xab, 0x30, 0xa4, 0x30, 0xde, 0x30, 0xfc, 0x05, - 0xa8, 0x23, 0x50, 0x52, 0x2f, 0xab, 0x73, 0x28, 0x17, 0x61, 0x00, 0x6c, - 0x00, 0x17, 0x2d, 0x00, 0x4b, 0x48, 0x1d, 0x69, 0x4f, 0xc1, 0x05, 0x58, - 0x1b, 0x00, 0x30, 0x7f, 0x5a, 0xef, 0x06, 0x80, 0x7f, 0x43, 0xa0, 0xff, - 0x0d, 0xd1, 0x7f, 0x65, 0x21, 0xff, 0x20, 0x20, 0x00, 0x4a, 0x05, 0xe0, - 0xfd, 0x00, 0x00, 0xc8, 0x54, 0x0a, 0x04, 0x4f, 0x6c, 0x9a, 0xd2, 0x89, - 0x06, 0x7f, 0xb1, 0x7c, 0xb7, 0x00, 0xa4, 0xc2, 0x4c, 0xc5, 0x74, 0xce, - 0x74, 0xc7, 0x34, 0xc8, 0xb9, 0x06, 0x3f, 0xb2, 0x0e, 0xf1, 0xff, 0x20, - 0x28, 0x17, 0x41, 0x04, 0x00, 0x20, 0x00, 0x4d, 0x04, 0x3b, 0x04, 0x4c, - 0x04, 0x11, 0x2d, 0x00, 0x25, 0x28, 0x27, 0x39, 0x04, 0x3c, 0x05, 0x88, - 0x25, 0xc0, 0x08, 0x34, 0xff, 0x10, 0x0d, 0xb0, 0x7f, 0x04, 0x06, 0x05, - 0x05, 0x05, 0x05, 0x20, 0x04, 0x04, 0x20, 0x03, 0x06, 0x04, 0x04, 0x04, - 0x04, 0x10, 0x40, 0x12, 0xd2, 0x28, 0x17, 0x06, 0xa8, 0xc9, 0x30, 0x18, - 0xa5, 0x30, 0xd0, 0x28, 0x0d, 0x06, 0x7d, 0x33, 0x44, 0x00, 0x75, 0x36, - 0x00, 0x62, 0x48, 0x0b, 0x06, 0xd0, 0x7f, 0xef, 0x0e, 0xe0, 0xff, 0x06, - 0xd1, 0x7f, 0xe1, 0x84, 0x06, 0x81, 0xff, 0xea, 0x8f, 0xdc, 0x62, 0x06, - 0x9f, 0xad, 0x00, 0x00, 0x03, 0x50, 0xb4, 0x14, 0xbc, 0x74, 0xc7, 0x06, - 0x90, 0x81, 0x0e, 0xf2, 0x7f, 0x07, 0x14, 0x04, 0x43, 0x04, 0x31, 0x48, - 0x0b, 0x10, 0x06, 0xb3, 0xff, 0x10, 0x06, 0x90, 0xff, 0x03, 0x05, 0x05, - 0x03, 0x03, 0x03, 0x03, 0x40, 0x05, 0x38, 0x20, 0x08, 0x05, 0xf5, 0x11, - 0x4f, 0x28, 0x17, 0x07, 0xa8, 0xd5, 0x08, 0x30, 0xb8, 0x30, 0xe3, 0x28, - 0x17, 0xe9, 0x30, 0xfc, 0xaa, 0x06, 0x48, 0x1b, 0x41, 0x4e, 0x27, 0x46, - 0x28, 0x1d, 0x6a, 0x2f, 0xb9, 0x79, 0x3b, 0x00, 0x72, 0x05, 0x8f, 0xa9, - 0x5f, 0xff, 0x70, 0x79, 0xef, 0x06, 0x00, 0x79, 0x90, 0x7f, 0x5f, 0x64, - 0x2f, 0xb1, 0x63, 0x6f, 0xa9, 0x30, 0xff, 0x05, 0xf0, 0x7f, 0x06, 0x51, - 0x79, 0xd1, 0x7f, 0xc0, 0x06, 0x10, 0xf9, 0x5f, 0xff, 0xcc, 0x5b, 0xe5, - 0x67, 0x0a, 0x4f, 0x40, 0xc9, 0x06, 0x88, 0x1b, 0x4c, 0xc5, 0x78, 0xd4, - 0x90, 0xc7, 0x0e, 0x74, 0xc7, 0x7c, 0xb7, 0x06, 0x5b, 0x99, 0xd1, 0x7f, - 0x0e, 0x11, 0xff, 0x24, 0x82, 0x28, 0x17, 0x34, 0x04, 0x36, 0x04, 0x35, - 0x28, 0x19, 0x40, 0xe0, 0x28, 0x1f, 0x0d, 0xf4, 0xff, 0x10, 0x0e, 0xf0, - 0x7f, 0x06, 0x03, 0x04, 0x04, 0x04, 0x10, 0x04, 0x06, 0x06, 0x20, 0x03, - 0x03, 0x06, 0x06, 0x06, 0x00, 0x06, 0xdd, 0x11, 0x0f, 0x28, 0x00, 0x00, - 0x08, 0x00, 0xa8, 0xa6, 0x30, 0xe0, 0x30, 0xfb, 0x30, 0xa2, 0x2a, 0x30, - 0xeb, 0x20, 0x05, 0xab, 0x28, 0x1f, 0xef, 0x28, 0x23, 0xf3, 0x8b, 0x05, - 0xa8, 0x21, 0x55, 0x00, 0x6d, 0x20, 0x01, 0x20, 0x2f, 0xb1, 0x38, 0x1f, - 0x55, 0x51, 0x48, 0x1b, 0x77, 0x48, 0x21, 0x6e, 0x06, 0x00, 0x7f, 0x2d, - 0x40, 0x7f, 0x51, 0x69, 0x40, 0x7f, 0x69, 0x10, 0x05, 0xa0, 0x7f, 0x20, - 0x00, 0x65, 0x4a, 0x1d, 0x60, 0x4b, 0x06, 0x01, 0x7d, 0x27, 0x97, 0x4e, - 0xc6, 0x59, 0xd6, 0x76, 0x20, 0x07, 0x4e, 0x06, 0x7f, 0xb1, 0xc0, 0xc6, - 0x4c, 0xc5, 0x74, 0x01, 0xce, 0x74, 0xc7, 0x40, 0xc6, 0x78, 0xc7, 0x06, - 0x3f, 0xb2, 0x88, 0x0e, 0xf1, 0xff, 0x23, 0x04, 0x3c, 0x20, 0x01, 0x20, - 0x00, 0x4d, 0x00, 0x04, 0x3b, 0x04, 0x4c, 0x04, 0x2d, 0x00, 0x1a, 0x8b, - 0x28, 0x1b, 0x39, 0x04, 0x32, 0x40, 0x05, 0x3d, 0x05, 0x28, 0x25, 0x07, - 0xb4, 0xff, 0x94, 0x10, 0x0e, 0x30, 0x7f, 0x07, 0x07, 0x70, 0x01, 0x05, - 0x40, 0x0a, 0x22, 0x12, 0x24, 0xa4, 0x27, 0x00, 0x3f, 0xff, 0x01, 0x01, - 0xd0, 0x01, 0x02, 0x02, 0xa2, 0xd0, 0x01, 0x03, 0x28, 0x5b, 0x06, 0x06, - 0x03, 0x28, 0x5b, 0x07, 0x08, 0x04, 0x03, 0x03, 0x03, 0x20, 0x0e, 0x05, - 0x05, 0x05, 0x1f, 0x05, 0x04, 0x04, 0x20, 0x03, 0x28, 0x73, 0x30, 0x07, - 0x30, 0x15, 0x40, 0x05, 0xb8, 0x30, 0x18, 0x05, 0xf8, 0x8f, 0xf0, 0x87, - 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x6c, 0xe4, 0x00, 0x11, 0x1b, 0x00, 0x00, - 0x30, 0x01, 0x10, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xc7, 0xf4, 0xee, 0xdd, 0x00, 0x00, 0x00, - 0x02, 0x10, 0xc7, 0x30, 0xa3, 0x30, 0xb9, 0x08, 0x30, 0xc8, 0x30, 0xea, - 0x20, 0x03, 0xfb, 0x30, 0xd5, 0x00, 0x30, 0xa7, 0x30, 0xc7, 0x30, 0xe9, - 0x30, 0xeb, 0x10, 0x30, 0xde, 0x5d, 0x05, 0x58, 0x2f, 0x44, 0x00, 0x69, - 0x00, 0x04, 0x73, 0x00, 0x74, 0x00, 0x72, 0x20, 0x07, 0x74, 0x00, 0x00, - 0x6f, 0x00, 0x20, 0x00, 0x46, 0x00, 0x65, 0x00, 0x41, 0x64, 0x20, 0x03, - 0x72, 0x00, 0x61, 0x00, 0x6c, 0x05, 0xc0, 0x7f, 0x6b, 0x63, 0x20, 0x87, - 0x30, 0x7f, 0xe9, 0x20, 0x7f, 0xe9, 0x06, 0x20, 0x7f, 0x06, 0xd0, 0xff, - 0x68, 0x65, 0x21, 0x85, 0x00, 0x31, 0x81, 0x65, 0x0c, 0xc1, 0xff, 0x54, - 0x80, 0xa6, 0x10, 0x90, 0x3a, 0x53, 0x06, 0x9b, 0x1b, 0x0c, 0xbe, 0x7c, - 0xb7, 0x00, 0xc8, 0xc9, 0x20, 0x00, 0xf0, 0xc5, 0x29, 0xbc, 0x3b, 0x6c, - 0xad, 0x06, 0x1b, 0xa3, 0xb3, 0x6d, 0x33, 0x6f, 0x20, 0x00, 0x03, 0x11, - 0x0c, 0xd3, 0xff, 0x04, 0x24, 0x04, 0x35, 0x04, 0x34, 0x20, 0x03, 0x40, - 0x04, 0x00, 0x30, 0x04, 0x3b, 0x04, 0x4c, 0x04, 0x3d, 0x04, 0x00, 0x4b, - 0x04, 0x39, 0x04, 0x20, 0x00, 0x3e, 0x04, 0x43, 0x3a, 0x20, 0x13, 0x43, - 0x04, 0x33, 0x04, 0x0d, 0x94, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x10, 0x01, - 0x07, 0x07, 0x20, 0x01, 0x01, 0x01, 0x08, 0x07, 0x48, 0x1a, 0x20, 0x05, - 0x01, 0x01, 0x58, 0x17, 0x03, 0x10, 0xa2, 0x0d, 0x30, 0xaf, 0x30, 0xec, - 0x05, 0x88, 0x05, 0x00, 0x1f, 0xff, 0x41, 0x27, 0x8d, 0xc0, 0x36, 0x93, - 0x10, 0x16, 0x70, 0x7f, 0x3f, 0x96, 0x4b, 0x51, 0xcc, 0x91, 0x80, 0x06, - 0x92, 0xff, 0x44, 0xc5, 0x6c, 0xd0, 0xac, 0xb9, 0x20, 0x15, 0x00, 0xfc, - 0xc8, 0x10, 0x06, 0x53, 0x7f, 0x10, 0x47, 0xff, 0x38, 0x04, 0xe7, 0xfd, - 0xa4, 0x10, 0x18, 0x94, 0xff, 0x02, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, - 0x02, 0x02, 0x00, 0x02, 0x02, 0xea, 0xf8, 0xca, 0xcf, 0x00, 0x00, 0x40, - 0x04, 0x28, 0x17, 0xe9, 0x30, 0xb4, 0x30, 0xa2, 0x30, 0x51, 0xb9, 0x06, - 0x68, 0x1b, 0x41, 0x2f, 0x93, 0x61, 0x00, 0x67, 0x2f, 0x29, 0x60, 0x61, - 0x2f, 0xb7, 0x10, 0x16, 0x10, 0x7f, 0x3f, 0x96, 0xc9, 0x62, 0x08, 0x10, - 0x62, 0xaf, 0x65, 0x06, 0x7b, 0x19, 0x4c, 0xc5, 0x7c, 0xb7, 0x03, 0xe0, - 0xac, 0x44, 0xc5, 0xa4, 0xc2, 0x06, 0x58, 0x1b, 0x0e, 0xf3, 0x7f, 0x00, - 0x10, 0x04, 0x3b, 0x04, 0x30, 0x04, 0x33, 0x04, 0x5a, 0x3e, 0x20, 0x05, - 0x41, 0x06, 0x28, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x03, 0x38, 0x0c, 0x02, - 0x40, 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x21, 0xf9, 0x04, 0x9a, - 0xe6, 0x00, 0x00, 0x05, 0x28, 0x17, 0xde, 0x30, 0x1a, 0xd1, 0x30, 0xfc, - 0x06, 0x68, 0x15, 0x3f, 0xaf, 0x6d, 0x28, 0x17, 0x70, 0x30, 0x00, 0xe1, - 0x06, 0x8f, 0xaf, 0x10, 0x0e, 0xd0, 0x7f, 0x3f, 0x96, 0x6c, 0x9a, 0x20, - 0x15, 0x5e, 0x06, 0x78, 0x15, 0x00, 0x00, 0x44, 0xc5, 0xc8, 0x18, 0xb9, - 0x0c, 0xd3, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x10, 0x04, 0x3c, 0xb4, - 0x28, 0x17, 0x3f, 0x28, 0x1b, 0x10, 0x1e, 0x54, 0xff, 0x04, 0x38, 0x0c, - 0x03, 0x04, 0xa0, 0x20, 0x06, 0x04, 0x20, 0x05, 0x04, 0x04, 0x06, 0x00, - 0xb3, 0x08, 0xdb, 0x00, 0x00, 0x06, 0x48, 0x17, 0xbe, 0x30, 0xca, 0x35, - 0x30, 0xb9, 0x06, 0x68, 0x19, 0x58, 0x17, 0x7a, 0x2f, 0xaf, 0x6e, 0x06, - 0x4f, 0xb1, 0x81, 0x10, 0x0e, 0xf0, 0x7f, 0x9a, 0x4e, 0x6c, 0x9a, 0x59, - 0x5b, 0x06, 0xd8, 0x17, 0x03, 0x70, 0xc8, 0x98, 0xb0, 0xa4, 0xc2, 0x06, - 0x58, 0x1b, 0x0e, 0xf3, 0x7f, 0x82, 0x58, 0x17, 0x37, 0x04, 0x3e, 0x04, - 0x3d, 0x28, 0x1f, 0x41, 0xd2, 0x06, 0x08, 0x1d, 0x10, 0x16, 0xf4, 0xff, - 0x05, 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x03, 0x80, 0x20, 0x05, 0x05, - 0x05, 0xca, 0xfd, 0x51, 0xd5, 0x00, 0x01, 0x00, 0x07, 0x10, 0xd0, 0x30, - 0xa4, 0x30, 0x28, 0x1b, 0xa3, 0x06, 0x8d, 0x2f, 0x42, 0x2f, 0xad, 0x68, - 0x00, 0x69, 0x2f, 0xb3, 0x10, 0x0e, 0xb0, 0x7f, 0x40, 0xed, 0x06, 0x81, - 0xff, 0xf4, 0x5d, 0x0a, 0x4f, 0x9a, 0x4e, 0x81, 0x06, 0x98, 0x17, 0x14, - 0xbc, 0x74, 0xc7, 0x44, 0xc5, 0x06, 0x58, 0x13, 0xa3, 0x0f, 0x33, 0x7f, - 0x11, 0x28, 0x15, 0x38, 0x04, 0x4f, 0x06, 0x08, 0x0f, 0x10, 0x0f, 0xd4, - 0xff, 0xa4, 0x06, 0x96, 0xff, 0x06, 0x38, 0x0c, 0x05, 0x06, 0x40, 0x06, - 0x06, 0x06, 0x00, 0x06, 0x06, 0xc5, 0xf6, 0x9d, 0xe4, 0x00, 0x00, 0x14, - 0x08, 0x10, 0xbb, 0x28, 0x15, 0xe9, 0x06, 0xa8, 0x17, 0x43, 0x00, 0x44, - 0x65, 0x2f, 0xaf, 0x72, 0x00, 0xe1, 0x10, 0x16, 0x60, 0x7f, 0x5e, 0x58, - 0x08, 0x3f, 0x96, 0xc9, 0x62, 0x06, 0x9b, 0x17, 0x38, 0xc1, 0x44, 0x18, - 0xc5, 0x7c, 0xb7, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x35, - 0xb4, 0x28, 0x19, 0x40, 0x28, 0x1d, 0x10, 0x1e, 0x54, 0xff, 0x07, 0x38, - 0x0c, 0x06, 0x07, 0xa0, 0x20, 0x06, 0x17, 0x20, 0x05, 0x07, 0x07, 0x52, - 0xfd, 0x92, 0x80, 0x28, 0x17, 0x09, 0x10, 0xa8, 0x30, 0xb9, 0x30, 0xd4, - 0x00, 0x30, 0xea, 0x30, 0xc8, 0x30, 0xfb, 0x30, 0xb5, 0x30, 0x30, 0xf3, - 0x20, 0x07, 0x05, 0xdd, 0x3b, 0x45, 0x00, 0x73, 0x00, 0x50, 0x70, 0x2e, - 0x2f, 0x72, 0x2f, 0xb3, 0x74, 0x00, 0x6f, 0x00, 0x16, 0x20, 0x00, 0x53, - 0x2f, 0xc1, 0x6e, 0x40, 0x0b, 0x10, 0x15, 0x30, 0x7f, 0x23, 0x00, 0x57, - 0xc3, 0x57, 0xaf, 0x65, 0xae, 0x76, 0xcc, 0x10, 0x91, 0xfe, 0x56, 0x06, - 0x3b, 0x1d, 0x74, 0xc7, 0xa4, 0xc2, 0x00, 0x3c, 0xd5, 0xac, 0xb9, 0x2c, - 0xd2, 0xb0, 0xc0, 0x30, 0x2c, 0xd2, 0x06, 0x18, 0x1f, 0x0e, 0xf3, 0x7f, - 0x2d, 0x04, 0x41, 0x04, 0x10, 0x3f, 0x04, 0x38, 0x28, 0x19, 0x38, 0x04, - 0x42, 0x04, 0x11, 0x43, 0x04, 0x2d, 0x28, 0x29, 0x30, 0x04, 0x3d, 0x40, - 0x0b, 0x91, 0x10, 0x1d, 0x34, 0xff, 0x08, 0x08, 0x50, 0x01, 0x07, 0x08, - 0x1b, 0x40, 0x0a, 0x00, 0x8e, 0xf1, 0x4f, 0xe3, 0x00, 0x00, 0x0a, 0x10, - 0x11, 0xde, 0x30, 0xc3, 0x48, 0x13, 0xb0, 0x30, 0xed, 0x20, 0x09, 0x51, - 0xbd, 0x28, 0x1d, 0xc9, 0x28, 0x21, 0xb9, 0x30, 0xeb, 0x05, 0x68, 0x1f, - 0x6a, 0x4d, 0x2f, 0xad, 0x58, 0x0f, 0x47, 0x2f, 0xb5, 0x6f, 0x28, 0x25, - 0x73, 0xa2, 0x48, 0x1d, 0x64, 0x68, 0x23, 0x75, 0x00, 0x6c, 0x10, 0x14, - 0xc0, 0x7f, 0x57, 0x00, 0x53, 0x6c, 0x9a, 0x58, 0x62, 0x3c, 0x68, 0x57, - 0x14, 0x7f, 0x22, 0x7d, 0x06, 0x38, 0x17, 0xc8, 0x28, 0x11, 0xf8, 0xad, - 0x00, 0x5c, 0xb8, 0x18, 0xc2, 0x50, 0xb4, 0x20, 0xc2, 0xda, 0x06, 0x18, - 0x17, 0x0e, 0xf3, 0x7f, 0x1c, 0x28, 0x05, 0x58, 0x0f, 0x13, 0x28, 0x1b, - 0x3e, 0xd1, 0x28, 0x25, 0x38, 0x1b, 0x34, 0x68, 0x21, 0x43, 0x04, 0x3b, - 0x04, 0xe8, 0x1d, 0x80, 0x10, 0x16, 0xf4, 0xff, 0x09, 0x0c, 0x0e, 0x0c, - 0x0c, 0x0c, 0x09, 0x60, 0x09, 0x20, 0x03, 0x20, 0x05, 0x09, 0x09, 0x76, - 0xf1, 0x2a, 0x08, 0xd9, 0x00, 0x00, 0x0b, 0x28, 0x17, 0xe9, 0x30, 0xcb, - 0x0d, 0x30, 0xe7, 0x30, 0xf3, 0x05, 0x68, 0x07, 0x00, 0x38, 0x17, 0x72, - 0x4f, 0xa1, 0x18, 0x68, 0x00, 0xe3, 0x05, 0x6f, 0xa3, 0x10, 0x0f, 0xb0, - 0x7f, 0x6c, 0x9a, 0xc9, 0x06, 0x62, 0x3c, 0x5c, 0x02, 0x66, 0x06, 0x52, - 0xfd, 0x38, 0x17, 0x7c, 0x1d, 0xb7, 0xe5, 0xb0, 0x06, 0x18, 0x0f, 0x0f, - 0x73, 0x7f, 0x38, 0x17, 0x40, 0x28, 0x1b, 0x06, 0x3d, 0x04, 0x4c, 0x04, - 0x4f, 0x20, 0x05, 0x10, 0x1d, 0xf4, 0xff, 0x0a, 0x0a, 0x0a, 0x0c, 0x0a, - 0x0a, 0x40, 0x01, 0x07, 0x40, 0x07, 0x36, 0x02, 0xfe, 0x86, 0xe0, 0x00, - 0x00, 0x0c, 0x28, 0x17, 0xc3, 0x00, 0x30, 0xc8, 0x30, 0xfb, 0x30, 0xb0, - 0x30, 0xed, 0xb8, 0x20, 0x09, 0xbd, 0x06, 0x08, 0x1d, 0x00, 0x5f, 0xaf, - 0x10, 0x15, 0x90, 0x7f, 0x6c, 0x9a, 0x58, 0x01, 0x62, 0x3c, 0x68, 0x57, - 0x7f, 0x22, 0x7d, 0x06, 0x5b, 0x17, 0x00, 0xc8, 0xb9, 0x2c, 0xd2, 0xf8, - 0xad, 0x5c, 0xb8, 0x38, 0x18, 0xc2, 0x06, 0x58, 0x1b, 0x0e, 0xf3, 0x7f, - 0x38, 0x17, 0x42, 0x04, 0x43, 0x08, 0x04, 0x2d, 0x00, 0x13, 0x28, 0x1f, - 0x3e, 0x04, 0x41, 0xc1, 0x20, 0x0b, 0x10, 0x1d, 0xb4, 0xff, 0x0b, 0x0b, - 0x0d, 0x0b, 0x0b, 0x40, 0x01, 0x40, 0x08, 0x40, 0x07, 0xec, 0xf4, 0x1f, - 0xd8, 0x00, 0x00, 0x01, 0x0d, 0x10, 0xdf, 0x30, 0xca, 0x30, 0xb9, 0x28, - 0x17, 0x01, 0xb8, 0x30, 0xa7, 0x30, 0xe9, 0x30, 0xa4, 0x20, 0x0b, 0x8b, - 0x05, 0xdd, 0x39, 0x4d, 0x00, 0x69, 0x2f, 0xab, 0x61, 0x28, 0x0f, 0x38, - 0x19, 0x58, 0x65, 0x4f, 0xbb, 0x69, 0x28, 0x1d, 0x10, 0x15, 0x70, 0x7f, - 0x73, 0x7c, 0xb3, 0x00, 0x7e, 0xaf, 0x65, 0x09, 0x54, 0xc9, 0x62, 0xaf, - 0x41, 0x65, 0x06, 0x38, 0x19, 0xf8, 0xbb, 0x98, 0xb0, 0xa4, 0x28, 0x13, - 0x03, 0x1c, 0xc8, 0x7c, 0xb7, 0x74, 0xc7, 0x30, 0x09, 0x05, 0xd8, 0x1d, - 0x82, 0x0e, 0xf3, 0x7f, 0x1c, 0x04, 0x38, 0x04, 0x3d, 0x28, 0x1b, 0x41, - 0x88, 0x28, 0x19, 0x16, 0x04, 0x35, 0x28, 0x1b, 0x30, 0x04, 0x39, 0xc0, - 0x28, 0x1d, 0x10, 0x1d, 0x74, 0xff, 0x0c, 0x0d, 0x0f, 0x0d, 0x0d, 0x0d, - 0x04, 0x0c, 0x0c, 0x0d, 0x0d, 0x0a, 0x20, 0x05, 0x0c, 0x0c, 0x00, 0xd7, - 0xf1, 0xc3, 0xe0, 0x00, 0x00, 0x0e, 0x10, 0x5a, 0xd1, 0x28, 0x0d, 0xfc, - 0x05, 0xe8, 0x0b, 0xbf, 0xff, 0x50, 0x2f, 0xaf, 0x72, 0x30, 0x00, 0xe1, - 0x06, 0x70, 0x7e, 0x10, 0x0f, 0x00, 0x7f, 0x15, 0x5e, 0xc9, 0x62, 0xc6, - 0x06, 0x92, 0xfd, 0x23, 0x97, 0xd3, 0x7c, 0xb7, 0x05, 0xf8, 0x0b, 0x0f, - 0xb3, 0x7f, 0x1f, 0xe0, 0x28, 0x13, 0x38, 0x0b, 0x10, 0x1e, 0x74, 0xff, - 0x0d, 0x0e, 0x10, 0x0e, 0x0e, 0x02, 0x0e, 0x0d, 0x0d, 0x0e, 0x0e, 0x0b, - 0x20, 0x05, 0x0d, 0x00, 0x0d, 0xf9, 0xfe, 0x86, 0xdd, 0x00, 0x00, 0x0f, - 0xac, 0x48, 0x17, 0xa4, 0x28, 0x19, 0xd0, 0x06, 0x68, 0x1b, 0x58, 0x17, - 0x61, 0x00, 0x1c, 0xed, 0x00, 0x62, 0x2f, 0xb5, 0x10, 0x16, 0x10, 0x7f, - 0x38, 0x17, 0x0a, 0x4f, 0x30, 0xf4, 0x5d, 0x06, 0x7b, 0x19, 0x38, 0x17, - 0x74, 0xc7, 0x14, 0xbc, 0xe3, 0x06, 0x78, 0x1b, 0x0e, 0xf3, 0x7f, 0x78, - 0x17, 0x38, 0x04, 0x31, 0x06, 0x48, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x00, - 0x0e, 0x0f, 0x11, 0x0f, 0x0f, 0x0f, 0x0e, 0x0e, 0x10, 0x0f, 0x0f, 0x0c, - 0x20, 0x05, 0x0e, 0x0e, 0xf1, 0xfa, 0x05, 0x35, 0xe7, 0x00, 0x00, 0x10, - 0x48, 0x17, 0xca, 0x06, 0x68, 0x13, 0xb0, 0xb8, 0x17, 0x6e, 0x06, 0x6f, - 0xb3, 0x10, 0x0e, 0xf0, 0x7f, 0xf4, 0x5d, 0xc9, 0x62, 0x33, 0xa3, 0x90, - 0x06, 0x92, 0xff, 0x38, 0x17, 0x98, 0xb0, 0x06, 0x78, 0x15, 0x0f, 0x13, - 0x7f, 0xb0, 0x78, 0x17, 0x3d, 0x06, 0x48, 0x15, 0x10, 0x17, 0x14, 0xff, - 0x0f, 0x10, 0x12, 0x10, 0x01, 0x10, 0x10, 0x0f, 0x0f, 0x10, 0x10, 0x0d, - 0x20, 0x05, 0x00, 0x0f, 0x0f, 0xee, 0xed, 0xfb, 0xdc, 0x00, 0x00, 0x00, - 0x11, 0x10, 0xd4, 0x30, 0xa2, 0x30, 0xa6, 0x30, 0x11, 0xa4, 0x30, 0xfc, - 0x06, 0x68, 0x1b, 0x50, 0x00, 0x69, 0x2f, 0xb1, 0x70, 0x75, 0x2f, 0xaf, - 0x06, 0x78, 0x97, 0x10, 0x0e, 0xd0, 0x7f, 0xae, 0x76, 0x65, 0x59, 0x20, - 0x0a, 0x4f, 0x06, 0x9b, 0x17, 0x3c, 0xd5, 0x44, 0xc5, 0xb0, 0x18, 0xc6, - 0x74, 0xc7, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x1f, 0x04, 0x38, 0xb8, - 0x28, 0x19, 0x43, 0x20, 0x05, 0x10, 0x16, 0x54, 0x7f, 0x06, 0xf6, 0xff, - 0x10, 0x12, 0x14, 0x22, 0x12, 0x12, 0x28, 0x1a, 0x12, 0x12, 0x0f, 0x38, - 0x20, 0x10, 0x10, 0x63, 0xfc, 0x8e, 0x2f, 0xa0, 0x12, 0x10, 0xea, 0x30, - 0x04, 0xaa, 0x30, 0xfb, 0x30, 0xc7, 0x20, 0x03, 0xb8, 0x30, 0x15, 0xe3, - 0x30, 0xcd, 0x28, 0x21, 0xed, 0x05, 0xc8, 0x21, 0x52, 0x28, 0x17, 0x01, - 0x6f, 0x00, 0x20, 0x00, 0x64, 0x00, 0x65, 0x20, 0x05, 0x56, 0x4a, 0x4f, - 0xb9, 0x65, 0x28, 0x2b, 0x72, 0x20, 0x15, 0x05, 0x3f, 0xc0, 0xc9, 0x2f, - 0x00, 0x74, 0x2f, 0xb1, 0x74, 0x80, 0x81, 0x05, 0xf0, 0x8f, 0x06, 0xf0, - 0xff, 0x07, 0x10, 0x7f, 0x40, 0xed, 0x06, 0xc1, 0xff, 0xcc, 0x91, 0xa6, - 0x7e, 0xed, 0x70, 0x08, 0x85, 0x51, 0x62, 0x53, 0x06, 0x5b, 0x17, 0xac, - 0xb9, 0xb0, 0x00, 0xc6, 0x70, 0xb3, 0x90, 0xc7, 0x24, 0xb1, 0x74, 0x1a, - 0xc7, 0xe8, 0xb8, 0x06, 0x18, 0x1d, 0x0e, 0xf2, 0x7f, 0x20, 0x28, 0x17, - 0x3e, 0x02, 0x04, 0x2d, 0x00, 0x34, 0x04, 0x35, 0x20, 0x05, 0x16, 0xa3, - 0x28, 0x23, 0x3d, 0x20, 0x09, 0x39, 0x04, 0x40, 0x20, 0x15, 0x10, 0x05, - 0x31, 0x7f, 0x80, 0x10, 0x06, 0xf0, 0xff, 0x11, 0x13, 0x09, 0x13, 0x13, - 0x13, 0x11, 0x08, 0x11, 0x13, 0x13, 0x10, 0x20, 0x05, 0x11, 0x11, 0xb8, - 0x28, 0xef, 0x42, 0x28, 0x17, 0x13, 0x68, 0x17, 0xb0, 0x30, 0xe9, 0x28, - 0x30, 0xf3, 0x48, 0x1d, 0xc9, 0x28, 0x25, 0xce, 0x30, 0xeb, 0x37, 0x30, - 0xc6, 0x05, 0x68, 0x1d, 0x78, 0x17, 0x47, 0x28, 0x09, 0x38, 0x13, 0x58, - 0x1f, 0x55, 0x64, 0x48, 0x2b, 0x4e, 0x28, 0x31, 0x72, 0x27, 0xb7, 0x65, - 0x10, 0x14, 0xa0, 0x7f, 0x00, 0x17, 0x53, 0xcc, 0x91, 0x65, 0x59, 0x3c, - 0x68, 0x08, 0x70, 0x51, 0xb7, 0x5f, 0x06, 0x38, 0x19, 0x88, 0xd7, 0xb0, - 0x00, 0xc6, 0xf8, 0xad, 0x80, 0xb7, 0xc0, 0xc9, 0x50, 0x01, 0xb4, 0x78, - 0xb1, 0x74, 0xb9, 0x58, 0xce, 0x05, 0xd8, 0x1b, 0xd6, 0x0e, 0xf3, 0x7f, - 0x38, 0x17, 0x43, 0x28, 0x17, 0x13, 0x28, 0x09, 0x38, 0x13, 0x34, 0xe8, - 0x28, 0x27, 0x38, 0x25, 0x30, 0x13, 0x1d, 0x28, 0x31, 0x40, 0x04, 0x42, - 0xc0, 0x28, 0x39, 0x10, 0x1c, 0x94, 0xff, 0x12, 0x14, 0x15, 0x14, 0x14, - 0x14, 0x04, 0x12, 0x12, 0x14, 0x14, 0x11, 0x20, 0x05, 0x12, 0x12, 0x01, - 0xe4, 0xfb, 0xf6, 0xe6, 0x00, 0x00, 0x14, 0x00, 0x48, 0x17, 0x70, 0xb9, - 0x28, 0x17, 0x05, 0x7d, 0x3d, 0x00, 0xb8, 0x17, 0x53, 0x00, 0x75, 0x00, - 0x53, 0x6c, 0x10, 0x14, 0xe0, 0x7f, 0x57, 0x07, 0xa8, 0x17, 0x20, 0xc2, - 0x05, 0xd8, 0x13, 0x0f, 0x33, 0x7f, 0xac, 0x00, 0xb8, 0x17, 0x21, 0x28, - 0x31, 0x3b, 0x04, 0xa8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x13, 0x15, 0x00, - 0x16, 0x15, 0x15, 0x15, 0x13, 0x13, 0x15, 0x15, 0x40, 0x12, 0x20, 0x05, - 0x13, 0x13, 0xa5, 0xea, 0x98, 0xdb, 0x04, 0x00, 0x00, 0x15, 0x10, 0xed, - 0x28, 0x0f, 0xc9, 0x30, 0x1a, 0xcb, 0x30, 0xa2, 0x05, 0x88, 0x09, 0xff, - 0xaf, 0x6f, 0x4f, 0xa5, 0xf4, 0xb0, 0x2f, 0xab, 0x69, 0x2f, 0xb1, 0x10, - 0x15, 0xf0, 0x7f, 0x17, 0x67, 0x1a, 0x59, 0x08, 0x3c, 0x5c, 0x9a, 0x4e, - 0x06, 0x52, 0xfd, 0x00, 0x00, 0x3c, 0x01, 0xd6, 0xc4, 0xb3, 0xc8, 0xb2, - 0x44, 0xc5, 0x06, 0x18, 0x11, 0x8c, 0x0f, 0x53, 0x7f, 0x20, 0x04, 0x3e, - 0x48, 0x0d, 0x30, 0x05, 0x38, 0x04, 0x60, 0x4f, 0x04, 0xe8, 0x05, 0x10, - 0x18, 0x14, 0xff, 0x14, 0x16, 0x17, 0x16, 0x16, 0x02, 0x16, 0x14, 0x14, - 0x16, 0x16, 0x13, 0x20, 0x05, 0x14, 0x00, 0x14, 0xc5, 0xf9, 0x90, 0xd2, - 0x00, 0x00, 0x16, 0x83, 0x28, 0x17, 0xe9, 0x30, 0xa4, 0x30, 0xde, 0x06, - 0x68, 0x15, 0x58, 0x17, 0x8c, 0x3f, 0xa9, 0x69, 0x00, 0x6d, 0x06, 0x28, - 0x15, 0x10, 0x0f, 0x10, 0x7f, 0x57, 0x7f, 0x08, 0x56, 0x8d, 0x6c, 0x9a, - 0x06, 0x78, 0x15, 0x00, 0x00, 0x38, 0x01, 0xd6, 0x7c, 0xb7, 0x74, 0xc7, - 0xc8, 0xb9, 0x06, 0xb8, 0x17, 0xc0, 0x0e, 0xb3, 0x7f, 0x38, 0x17, 0x40, - 0x04, 0x30, 0x04, 0x39, 0x04, 0x60, 0x3c, 0x20, 0x05, 0x10, 0x1e, 0x14, - 0xff, 0x15, 0x17, 0x18, 0x17, 0x17, 0x02, 0x17, 0x15, 0x15, 0x17, 0x17, - 0x14, 0x20, 0x05, 0x15, 0x04, 0x15, 0x00, 0x02, 0xdc, 0xd4, 0x2d, 0x2d, - 0x10, 0xb5, 0x00, 0x30, 0xf3, 0x30, 0xbf, 0x30, 0xfb, 0x30, 0xab, 0x82, - 0x20, 0x05, 0xea, 0x30, 0xfc, 0x30, 0xca, 0x05, 0xe8, 0x21, 0x53, 0x88, - 0x2f, 0xa3, 0x6e, 0x00, 0x74, 0x2f, 0xa9, 0x20, 0x00, 0x43, 0xd6, 0x2f, - 0xaf, 0x30, 0x09, 0x72, 0x2f, 0xb9, 0x6e, 0x05, 0x6f, 0xbb, 0x10, 0x0e, - 0xf0, 0x7f, 0x23, 0x00, 0x57, 0x61, 0x53, 0x54, 0x58, 0x33, 0x74, 0x1c, - 0x40, 0x5a, 0x06, 0x5b, 0x19, 0xb0, 0xc0, 0xc0, 0xd0, 0x74, 0xce, 0x03, - 0xc0, 0xd0, 0xac, 0xb9, 0x98, 0xb0, 0x06, 0x38, 0x1b, 0x0e, 0xf3, 0x7f, - 0x44, 0x21, 0x28, 0x13, 0x3d, 0x04, 0x42, 0x28, 0x19, 0x2d, 0x00, 0x63, - 0x1a, 0x28, 0x1f, 0x30, 0x09, 0x40, 0x04, 0x38, 0x20, 0x13, 0x05, 0x58, - 0x25, 0x88, 0x10, 0x16, 0xf4, 0xff, 0x16, 0x18, 0x19, 0x20, 0x01, 0x16, - 0x16, 0x18, 0x20, 0x18, 0x16, 0x20, 0x05, 0x16, 0x16, 0x63, 0xec, 0x77, - 0x08, 0xdd, 0x00, 0x00, 0x18, 0x48, 0x17, 0xfb, 0x30, 0xd1, 0x0d, 0x30, - 0xa6, 0x30, 0xed, 0x05, 0xe8, 0x11, 0x78, 0x17, 0xe3, 0x2f, 0xb1, 0x11, - 0x20, 0x00, 0x50, 0x2f, 0xb3, 0x75, 0x00, 0x6c, 0x2f, 0xbd, 0xa8, 0x05, - 0xdf, 0xb4, 0xc9, 0x48, 0x93, 0x74, 0x28, 0x95, 0x64, 0x00, 0x65, 0xfb, - 0x28, 0x9b, 0x05, 0xf0, 0x8f, 0x06, 0xf0, 0xff, 0x59, 0x97, 0x51, 0x7f, - 0x6f, 0x06, 0x40, 0x7f, 0x06, 0xd1, 0xff, 0x03, 0x23, 0x57, 0xdd, 0x4f, - 0x57, 0x7f, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x00, 0xc1, 0xc0, 0x0c, 0xd3, - 0xb8, 0xc6, 0xe8, 0xb8, 0xf1, 0x06, 0x38, 0x13, 0x07, 0x52, 0x7f, 0x06, - 0xd3, 0xff, 0x58, 0x17, 0x2d, 0x00, 0x1f, 0x28, 0x1f, 0x1c, 0x43, 0x04, - 0x3b, 0x20, 0x03, 0x10, 0x05, 0xd1, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x17, - 0x19, 0x41, 0x0a, 0x28, 0x18, 0x17, 0x17, 0x19, 0x19, 0x15, 0x20, 0x05, - 0x00, 0x17, 0x17, 0x44, 0xef, 0xda, 0xde, 0x00, 0x00, 0x00, 0x19, 0x10, - 0xbb, 0x30, 0xeb, 0x30, 0xb8, 0x30, 0x1a, 0xc3, 0x30, 0xda, 0x06, 0x48, - 0x15, 0x3f, 0xaf, 0x65, 0x2f, 0x9f, 0x67, 0xb0, 0x2f, 0xa1, 0x70, 0x27, - 0x97, 0x10, 0x16, 0x10, 0x7f, 0x5e, 0x58, 0x14, 0x5c, 0x08, 0x0c, 0x5e, - 0xf9, 0x57, 0x06, 0x78, 0x19, 0x38, 0xc1, 0x74, 0x06, 0xb9, 0xc0, 0xc9, - 0x3c, 0xd5, 0x06, 0x98, 0x17, 0x0e, 0xd3, 0x7f, 0x21, 0x00, 0x04, 0x35, - 0x04, 0x40, 0x04, 0x36, 0x04, 0x38, 0x31, 0x04, 0x3f, 0x20, 0x03, 0x10, - 0x1e, 0x14, 0xff, 0x18, 0x1a, 0x1a, 0x20, 0x01, 0x50, 0x18, 0x20, 0x06, - 0x18, 0x20, 0x05, 0x18, 0x18, 0x3d, 0xf8, 0x00, 0xa5, 0xe5, 0x00, 0x00, - 0x1a, 0x10, 0xb4, 0x30, 0x04, 0xa4, 0x30, 0xa2, 0x30, 0xb9, 0x06, 0x68, - 0x15, 0x00, 0x00, 0x41, 0x47, 0x2f, 0x9d, 0x69, 0x00, 0xe1, 0x00, 0x73, - 0x06, 0x6d, 0xb0, 0x81, 0x10, 0x0e, 0xf0, 0x7f, 0x08, 0x62, 0x9a, 0x4e, - 0xaf, 0x65, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0xe0, 0xac, 0x74, 0xc7, - 0x44, 0xc5, 0x30, 0xa4, 0xc2, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x13, - 0x04, 0x3e, 0x04, 0x18, 0x4f, 0x04, 0x41, 0x06, 0x28, 0x11, 0x10, 0x17, - 0x54, 0xff, 0x19, 0x09, 0x0b, 0x00, 0x09, 0x09, 0x09, 0x19, 0x19, 0x09, - 0x09, 0x06, 0x80, 0x20, 0x05, 0x19, 0x19, 0x26, 0xf4, 0xf8, 0xdc, 0x00, - 0x00, 0x00, 0x1b, 0x10, 0xda, 0x30, 0xeb, 0x30, 0xca, 0x02, 0x30, 0xf3, - 0x30, 0xd6, 0x30, 0xb3, 0x06, 0x48, 0x1b, 0x50, 0x80, 0x4f, 0xaf, 0x6e, - 0x00, 0x61, 0x00, 0x6d, 0x00, 0x62, 0x0d, 0x00, 0x75, 0x00, 0x63, 0x28, - 0x27, 0x06, 0x90, 0x7f, 0x6f, 0x40, 0x81, 0xc0, 0x0e, 0x90, 0xff, 0x0e, - 0x10, 0x7f, 0x2f, 0x4f, 0x57, 0x53, 0x03, 0x5e, 0x20, 0xe5, 0x54, 0x06, - 0x7b, 0x17, 0x98, 0xd3, 0x74, 0xb9, 0xa8, 0x06, 0xb0, 0x80, 0xbd, 0xe0, - 0xcf, 0x06, 0x58, 0x19, 0x0e, 0xf2, 0x7f, 0x1f, 0x00, 0x04, 0x35, 0x04, - 0x40, 0x04, 0x3d, 0x04, 0x30, 0x00, 0x04, 0x3c, 0x04, 0x31, 0x04, 0x43, - 0x04, 0x3a, 0xe0, 0x20, 0x03, 0x10, 0x0d, 0xb3, 0xff, 0x0e, 0xf5, 0x7f, - 0x1a, 0x11, 0x13, 0x11, 0x11, 0x02, 0x11, 0x1a, 0x1a, 0x11, 0x11, 0x0e, - 0x20, 0x05, 0x1a, 0x00, 0x1a, 0x47, 0xfa, 0x2f, 0xe7, 0x00, 0x00, 0x1c, - 0x08, 0x10, 0xc8, 0x30, 0xab, 0x28, 0x15, 0xc6, 0x30, 0xa3, 0xaa, 0x28, - 0x1b, 0xb9, 0x06, 0x28, 0x19, 0x54, 0x2f, 0xaf, 0x63, 0x28, 0x15, 0x6e, - 0x2c, 0x00, 0x74, 0x2f, 0xb7, 0x6e, 0x06, 0x0f, 0xb7, 0x10, 0x0e, 0xf0, - 0x7f, 0x58, 0x62, 0x02, 0x4e, 0x57, 0xf7, 0x5e, 0xaf, 0x65, 0x06, 0x78, - 0x17, 0xa0, 0x01, 0xd1, 0x78, 0xce, 0x6d, 0xce, 0xa4, 0xc2, 0x06, 0x58, - 0x15, 0x8a, 0x0f, 0x13, 0x7f, 0x22, 0x04, 0x3e, 0x28, 0x0b, 0x30, 0x28, - 0x19, 0x42, 0x2c, 0x04, 0x38, 0x28, 0x1f, 0x41, 0x05, 0xc8, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x1b, 0x1b, 0xa1, 0x70, 0x01, 0x19, 0x40, 0x0a, 0xbc, - 0xf8, 0xac, 0xdd, 0x00, 0x3f, 0xff, 0x10, 0x01, 0x07, 0x07, 0x20, 0x01, - 0x01, 0x01, 0x08, 0x07, 0x44, 0x1a, 0x20, 0x05, 0x01, 0x01, 0x02, 0x30, - 0x04, 0x01, 0x02, 0x82, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x03, 0x30, - 0x04, 0x02, 0x41, 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x04, 0x30, - 0x04, 0x28, 0x03, 0x04, 0x20, 0x06, 0x04, 0x20, 0x05, 0x04, 0x04, 0x05, - 0x94, 0x30, 0x04, 0x04, 0x05, 0x20, 0x06, 0x03, 0x20, 0x05, 0x05, 0x05, - 0x48, 0x06, 0x30, 0x04, 0x05, 0x06, 0x40, 0x06, 0x06, 0x06, 0x06, 0x25, - 0x06, 0x07, 0x30, 0x04, 0x06, 0x07, 0x20, 0x06, 0x17, 0x20, 0x05, 0x08, - 0x07, 0x07, 0x08, 0x08, 0x50, 0x01, 0x07, 0x08, 0x1b, 0x80, 0x40, 0x0a, - 0x09, 0x0c, 0x0e, 0x0c, 0x0c, 0x0c, 0x09, 0x60, 0x09, 0x20, 0x03, 0x20, - 0x05, 0x09, 0x09, 0x0a, 0x0a, 0x0c, 0x28, 0x0a, 0x0a, 0x40, 0x01, 0x07, - 0x40, 0x07, 0x0b, 0x0b, 0x0d, 0x28, 0x0b, 0x0b, 0x40, 0x01, 0x08, 0x40, - 0x07, 0x0c, 0x0d, 0x0f, 0x00, 0x0d, 0x0d, 0x0d, 0x0c, 0x0c, 0x0d, 0x0d, - 0x0a, 0xc0, 0x20, 0x05, 0x20, 0x07, 0x0e, 0x10, 0x0e, 0x0e, 0x0e, 0x0d, - 0x0c, 0x0d, 0x0e, 0x0e, 0x0b, 0x20, 0x05, 0x20, 0x07, 0x0f, 0x11, 0x00, - 0x0f, 0x0f, 0x0f, 0x0e, 0x0e, 0x0f, 0x0f, 0x0c, 0xc0, 0x20, 0x05, 0x20, - 0x07, 0x10, 0x12, 0x10, 0x10, 0x10, 0x0f, 0x0c, 0x0f, 0x10, 0x10, 0x0d, - 0x20, 0x05, 0x20, 0x07, 0x12, 0x14, 0x22, 0x12, 0x12, 0x20, 0x12, 0x12, - 0x12, 0x0f, 0x30, 0x18, 0x10, 0x04, 0x11, 0x13, 0x09, 0x13, 0x13, 0x29, - 0x42, 0x13, 0x13, 0x40, 0x10, 0x39, 0x48, 0x11, 0x12, 0x14, 0x15, 0x14, - 0x14, 0x88, 0x20, 0x22, 0x14, 0x14, 0x11, 0x30, 0x28, 0x12, 0x13, 0x15, - 0x00, 0x16, 0x15, 0x15, 0x15, 0x13, 0x13, 0x15, 0x15, 0x40, 0x12, 0x20, - 0x05, 0x13, 0x13, 0x14, 0x16, 0x17, 0x16, 0x01, 0x16, 0x16, 0x14, 0x14, - 0x16, 0x16, 0x13, 0x20, 0x05, 0x00, 0x14, 0x14, 0x15, 0x17, 0x18, 0x17, - 0x17, 0x17, 0x04, 0x15, 0x15, 0x17, 0x17, 0x14, 0x20, 0x05, 0x15, 0x15, - 0x10, 0x16, 0x18, 0x19, 0x20, 0x01, 0x16, 0x16, 0x18, 0x18, 0x41, 0x16, - 0x20, 0x05, 0x16, 0x16, 0x17, 0x19, 0x0a, 0x20, 0x10, 0x04, 0x17, 0x17, - 0x19, 0x19, 0x15, 0x20, 0x05, 0x17, 0x17, 0x4a, 0x18, 0x39, 0xa4, 0x1a, - 0x18, 0x20, 0x06, 0x18, 0x20, 0x05, 0x18, 0x08, 0x18, 0x19, 0x09, 0x0b, - 0x20, 0xf6, 0x19, 0x19, 0x09, 0x27, 0x09, 0x06, 0x20, 0x05, 0x19, 0x19, - 0xf9, 0xcf, 0xf1, 0xc7, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x3c, 0x72, 0x00, - 0x11, 0x0d, 0x00, 0x00, 0x30, 0x01, 0xae, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x85, 0x11, 0x42, - 0x21, 0x00, 0x00, 0x00, 0x02, 0xae, 0xea, 0x30, 0xe4, 0x30, 0xc9, 0x10, - 0x30, 0xde, 0x5d, 0x06, 0x78, 0x1d, 0x41, 0x00, 0x72, 0x00, 0x00, 0x20, - 0x00, 0x52, 0x00, 0x69, 0x00, 0x79, 0x00, 0x1f, 0x61, 0x00, 0x64, 0x06, - 0x08, 0xa4, 0x06, 0x90, 0x79, 0x90, 0x7f, 0x06, 0x90, 0x7d, 0x31, 0x7f, - 0x18, 0x6c, 0x00, 0x2d, 0x06, 0xe1, 0x7f, 0x06, 0xb0, 0xff, 0x29, 0x52, - 0xc5, 0x01, 0x96, 0x97, 0x5f, 0x30, 0x57, 0x3a, 0x53, 0x06, 0x5b, 0x1f, - 0x00, 0xac, 0xb9, 0x7c, 0xc5, 0xdc, 0xb4, 0x20, 0x00, 0x30, 0xfc, 0xc8, - 0x0e, 0x93, 0x7f, 0x06, 0xb2, 0xff, 0x2d, 0x04, 0x40, 0x04, 0x00, 0x2d, - 0x00, 0x20, 0x04, 0x38, 0x04, 0x4f, 0x04, 0x30, 0x34, 0x04, 0x0e, 0x14, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x01, 0x07, 0x0c, 0x0c, 0x00, 0x06, 0x0c, - 0x01, 0x01, 0x05, 0x0c, 0x0c, 0x07, 0x08, 0x01, 0x01, 0x01, 0x01, 0x58, - 0x17, 0x03, 0xae, 0xd0, 0x0a, 0x30, 0xfc, 0x30, 0xcf, 0x06, 0xc8, 0x17, - 0x6c, 0x28, 0x17, 0x42, 0xb7, 0x28, 0x13, 0x68, 0x40, 0x03, 0x06, 0x70, - 0x7f, 0xe2, 0x06, 0x60, 0x7f, 0x70, 0xf9, 0x06, 0xd8, 0x17, 0xc2, 0x07, - 0x11, 0x7f, 0x06, 0x71, 0xff, 0xf4, 0x5d, 0xc8, 0x54, 0x06, 0x98, 0x15, - 0x00, 0x01, 0x00, 0x4c, 0xc5, 0x14, 0xbc, 0x58, 0xd5, 0x06, 0xb8, 0x17, - 0xc1, 0x06, 0xd3, 0x7f, 0x06, 0xf2, 0xff, 0x2d, 0x04, 0x3b, 0x04, 0x4c, - 0x28, 0x19, 0x07, 0x11, 0x04, 0x30, 0x04, 0x45, 0x20, 0x03, 0x0e, 0x74, - 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x02, 0x02, 0x02, 0x01, 0x04, 0x02, 0x01, - 0x30, 0x05, 0x07, 0x20, 0x02, 0x02, 0x20, 0x01, 0x3b, 0x0e, 0x7c, 0x1d, - 0x00, 0x00, 0x00, 0x04, 0xae, 0xe1, 0x30, 0xc7, 0x30, 0xa3, 0x34, 0x30, - 0xca, 0x06, 0x88, 0x19, 0x58, 0x17, 0x4d, 0x4f, 0xb1, 0x69, 0x00, 0x45, - 0x6e, 0x06, 0x08, 0x1b, 0x4d, 0x00, 0xe9, 0x60, 0x79, 0x65, 0x06, 0x4f, - 0xb3, 0x70, 0x4d, 0x20, 0x77, 0x70, 0xf9, 0x10, 0x06, 0x30, 0x7f, 0xa6, - 0x9e, 0x30, 0x57, 0x20, 0xa3, 0x90, 0x06, 0x98, 0x19, 0x54, 0xba, 0x14, - 0xb5, 0x98, 0x74, 0xb0, 0x06, 0x98, 0x17, 0x0e, 0xf2, 0x7f, 0x78, 0x17, - 0x1c, 0x28, 0x17, 0x34, 0x04, 0x1c, 0x38, 0x04, 0x3d, 0x05, 0xe8, 0x1b, - 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x03, 0x05, 0x00, 0x09, 0x08, - 0x0b, 0x09, 0x03, 0x03, 0x0a, 0x09, 0x00, 0x0a, 0x05, 0x03, 0x03, 0x03, - 0x03, 0x20, 0x11, 0x00, 0x0e, 0x1b, 0x00, 0x00, 0x05, 0xae, 0x71, 0x67, - 0x34, 0xe8, 0x90, 0x06, 0x78, 0x13, 0x5f, 0xaf, 0x73, 0x2f, 0xa9, 0x20, - 0x00, 0x45, 0x53, 0x4f, 0xaf, 0x72, 0x00, 0x71, 0x28, 0x1d, 0x79, 0x05, - 0xaf, 0xb9, 0x45, 0x50, 0x20, 0x73, 0x6f, 0x00, 0x76, 0x48, 0x93, 0x63, - 0x28, 0x1b, 0x15, 0x20, 0x00, 0x45, 0x20, 0x91, 0x74, 0x05, 0xc0, 0xff, - 0x63, 0x2f, 0xab, 0x7f, 0x2d, 0x21, 0x01, 0x30, 0x07, 0x91, 0x03, 0x31, - 0x05, 0x05, 0x71, 0x7f, 0x30, 0x7d, 0x06, 0x51, 0x7f, 0x54, 0x52, 0x29, - 0x8f, 0x67, 0x2a, 0x11, 0xf3, 0x2a, 0x13, 0x20, 0x00, 0x55, 0x4f, 0x22, - 0x01, 0x69, 0x29, 0xa1, 0x6e, 0x21, 0x81, 0x61, 0x2e, 0xc9, 0x88, 0x05, - 0x1f, 0xc5, 0x1c, 0x4e, 0xe8, 0x06, 0xa8, 0x15, 0x00, 0x00, 0xe4, 0x01, - 0xc0, 0x74, 0xb9, 0xa4, 0xd0, 0x7c, 0xc5, 0x06, 0x78, 0x19, 0xc5, 0x06, - 0xf3, 0x7f, 0x06, 0xf3, 0xff, 0x2d, 0x04, 0x48, 0x28, 0x15, 0x28, 0x28, - 0x15, 0x11, 0x40, 0x04, 0x3a, 0x28, 0x17, 0x39, 0x04, 0x4f, 0x05, 0xe8, - 0x17, 0xc0, 0x0e, 0xd1, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x04, 0x08, 0x0b, - 0x02, 0x07, 0x0b, 0x00, 0x04, 0x04, 0x06, 0x02, 0x0d, 0x08, 0x04, 0x04, - 0x00, 0x04, 0x04, 0xca, 0x12, 0xa3, 0x23, 0x00, 0x00, 0x00, 0x06, 0xae, - 0xab, 0x30, 0xb9, 0x30, 0xa3, 0x30, 0x0d, 0xfc, 0x30, 0xe0, 0x30, 0x06, - 0x58, 0x1d, 0x5b, 0x2f, 0x51, 0x2f, 0x2d, 0x5d, 0x73, 0x2f, 0xb5, 0x6d, - 0x0e, 0x00, 0x7f, 0x06, 0x90, 0xf9, 0x9c, 0xaf, 0x2d, 0x0e, 0xa1, 0x7f, - 0x02, 0x61, 0x53, 0x7f, 0x89, 0xc6, 0x59, 0x06, 0x98, 0x19, 0x74, 0x18, - 0xce, 0xec, 0xc2, 0x06, 0x78, 0x13, 0x0f, 0x32, 0xff, 0x2d, 0x04, 0x3b, - 0x2a, 0x04, 0x4c, 0x28, 0x19, 0x1a, 0x28, 0x19, 0x41, 0x28, 0x17, 0x3c, - 0xe0, 0x05, 0xc8, 0x15, 0x0f, 0x14, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x05, - 0x06, 0x03, 0x0b, 0x05, 0x00, 0x03, 0x05, 0x05, 0x04, 0x0b, 0x09, 0x06, - 0x05, 0x00, 0x05, 0x05, 0x05, 0xb9, 0x12, 0x44, 0x1f, 0x00, 0x02, 0x00, - 0x07, 0xae, 0xa2, 0x30, 0xb7, 0x28, 0x15, 0xeb, 0x8b, 0x06, 0x68, 0x15, - 0x00, 0x00, 0x27, 0x4f, 0x31, 0x69, 0x2f, 0xb5, 0x06, 0x77, 0x17, 0x78, - 0x73, 0x07, 0x00, 0x7f, 0x06, 0x90, 0xfd, 0x07, 0x51, 0x7f, 0x06, 0xb0, - 0xff, 0x3f, 0x96, 0x7f, 0x10, 0x89, 0x14, 0x5c, 0x06, 0x98, 0x17, 0x44, - 0xc5, 0xdc, 0xc2, 0x3a, 0x74, 0xb9, 0x06, 0x98, 0x19, 0x06, 0xf2, 0x7f, - 0x06, 0xf3, 0x7f, 0x10, 0x48, 0x0d, 0x40, 0xe0, 0x05, 0xe8, 0x0d, 0x07, - 0x94, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x06, 0x01, 0x04, 0x03, 0x01, 0x00, - 0x04, 0x06, 0x06, 0x07, 0x03, 0x01, 0x01, 0x06, 0x00, 0x06, 0x06, 0x06, - 0xf4, 0x0c, 0x39, 0x1e, 0x00, 0x0a, 0x00, 0x08, 0xae, 0xcf, 0x28, 0x15, - 0xa4, 0x06, 0xa8, 0x17, 0x48, 0xad, 0x2f, 0xa9, 0x27, 0x2f, 0xa9, 0x6c, - 0x06, 0x6f, 0x2f, 0x30, 0x7f, 0xef, 0x06, 0x80, 0x7d, 0xf0, 0x50, 0xff, - 0x06, 0x90, 0xfd, 0x07, 0x51, 0x7f, 0x06, 0xb0, 0xff, 0xc8, 0x54, 0x0a, - 0x4f, 0x21, 0xd2, 0x52, 0x06, 0x98, 0x17, 0x58, 0xd5, 0x7c, 0xc7, 0x06, - 0x98, 0x15, 0x80, 0x0f, 0x11, 0xff, 0x25, 0x04, 0x30, 0x04, 0x19, 0x20, - 0x38, 0x0e, 0x04, 0x3b, 0x04, 0x4c, 0x06, 0x48, 0x1b, 0x07, 0x34, 0xff, - 0x10, 0x0e, 0xb0, 0x7f, 0x07, 0x02, 0x09, 0x06, 0x07, 0x08, 0x06, 0x07, - 0x20, 0x03, 0x06, 0x00, 0x09, 0x07, 0x07, 0x07, 0x07, 0x6f, 0x13, 0x95, - 0x00, 0x1d, 0x00, 0x00, 0x09, 0xae, 0xe1, 0x30, 0xc3, 0x22, 0x30, 0xab, - 0x06, 0x88, 0x15, 0x00, 0x00, 0x4d, 0x28, 0x17, 0x6b, 0x8a, 0x20, 0x01, - 0x61, 0x00, 0x68, 0x06, 0x4f, 0xb1, 0x4c, 0x28, 0x97, 0x20, 0x80, 0x20, - 0x85, 0x65, 0x00, 0x63, 0x00, 0x71, 0x00, 0x75, 0xdd, 0x20, 0x07, 0x05, - 0xf0, 0xff, 0x65, 0x60, 0xff, 0x06, 0x71, 0x7f, 0x30, 0xf9, 0x63, 0x06, - 0x80, 0x7f, 0xc4, 0xb1, 0x7f, 0x06, 0x31, 0x03, 0xa6, 0x9e, 0xa0, 0x06, - 0xa8, 0x15, 0x00, 0x00, 0x0c, 0x54, 0xba, 0x74, 0xce, 0x06, 0xb8, 0x17, - 0x0e, 0xf2, 0x7f, 0x1c, 0x04, 0x17, 0x35, 0x04, 0x3a, 0x20, 0x01, 0x30, - 0x06, 0x48, 0x15, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x01, 0x08, - 0x0b, 0x08, 0x09, 0x0a, 0x08, 0x08, 0x20, 0x06, 0x20, 0x03, 0x0b, 0x20, - 0x06, 0x08, 0x3c, 0x0f, 0x52, 0x1c, 0x00, 0x00, 0x00, 0x0a, 0xae, 0x17, - 0x53, 0xe8, 0x90, 0x0a, 0xfd, 0x56, 0x83, 0x58, 0x06, 0x78, 0x19, 0x41, - 0x2f, 0xab, 0x20, 0x8a, 0x2f, 0xb5, 0x75, 0x00, 0x64, 0x40, 0x03, 0x20, - 0x2f, 0xbf, 0x73, 0x88, 0x28, 0x23, 0x20, 0x00, 0x53, 0x28, 0x29, 0x61, - 0x00, 0x6d, 0xa8, 0x2f, 0xcf, 0x6c, 0x2f, 0x51, 0x79, 0x04, 0x68, 0x39, - 0x46, 0x00, 0x72, 0x02, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x74, 0x2f, 0xb5, - 0xe8, 0xab, 0x20, 0x0b, 0x65, 0x28, 0x25, 0x4e, 0x20, 0x11, 0x72, 0x20, - 0x8f, 0x05, 0x70, 0xff, 0x57, 0x2d, 0x00, 0x00, 0xff, 0x63, 0x29, 0x25, - 0x2d, 0x60, 0x07, 0xb1, 0x03, 0x31, 0x05, 0xef, 0x05, 0x30, 0x7f, 0x30, - 0x7d, 0x05, 0xf1, 0x7f, 0x65, 0x21, 0x89, 0x39, 0xa3, 0x51, 0x7d, 0x30, - 0x0f, 0xc2, 0x05, 0x3f, 0xc1, 0x32, 0xff, 0xb9, 0x8f, 0x86, 0x75, 0x06, - 0x78, 0x1b, 0x81, 0x00, 0xbd, 0x80, 0xbd, 0x20, 0x00, 0x6d, 0xad, 0xbd, - 0x6c, 0xac, 0x06, 0x58, 0x1d, 0x07, 0x93, 0x7f, 0x65, 0x2f, 0x35, 0x06, - 0x12, 0x01, 0x2d, 0x04, 0x00, 0x3b, 0x04, 0x4c, 0x04, 0x2d, 0x00, 0x25, - 0x04, 0x19, 0x43, 0x04, 0x34, 0x40, 0x03, 0x2c, 0x25, 0x04, 0x48, 0x20, - 0x11, 0x50, 0x28, 0x28, 0x2b, 0x3c, 0x28, 0x2f, 0x3b, 0x04, 0x38, 0x04, - 0x1c, 0x39, 0x04, 0x4f, 0x04, 0x68, 0x37, 0x06, 0xf4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x09, 0x03, 0x00, 0x05, 0x01, 0x03, 0x05, 0x09, 0x09, 0x02, - 0x05, 0x00, 0x0b, 0x03, 0x09, 0x09, 0x09, 0x09, 0x08, 0x16, 0x00, 0x2b, - 0x1d, 0x00, 0x00, 0x0b, 0xae, 0xca, 0x30, 0x00, 0xb8, 0x30, 0xe5, 0x30, - 0xe9, 0x30, 0xfc, 0x30, 0x2a, 0xf3, 0x30, 0x06, 0x38, 0x1b, 0x4e, 0x2f, - 0xaf, 0x6a, 0x46, 0x11, 0x6e, 0xdc, 0x06, 0x4f, 0x31, 0x07, 0x30, 0x7f, - 0x64, 0x68, 0x09, 0x06, 0x31, 0x05, 0x0e, 0xf1, 0x7f, 0xb3, 0x7e, 0x08, - 0x63, 0x5b, 0x70, 0x51, 0x06, 0x78, 0x15, 0x00, 0x00, 0x98, 0x06, 0xb0, - 0xc0, 0xc9, 0x80, 0xb7, 0x06, 0x58, 0x13, 0x0f, 0x33, 0x7f, 0x1d, 0x82, - 0x27, 0xfd, 0x34, 0x04, 0x36, 0x04, 0x40, 0x28, 0x05, 0x3d, 0xe3, 0x04, - 0x67, 0xfb, 0x10, 0x00, 0xf4, 0xff, 0x10, 0x06, 0xb0, 0xff, 0x0a, 0x0c, - 0x0a, 0x30, 0x02, 0x20, 0x06, 0x40, 0x04, 0x30, 0x06, 0x0a, 0x72, 0x0c, - 0x6b, 0x1f, 0x00, 0x0a, 0x00, 0x0c, 0xae, 0xb8, 0x28, 0x11, 0xb6, 0x06, - 0x88, 0x15, 0x00, 0x2d, 0x00, 0x4a, 0x2f, 0xa7, 0x7a, 0x06, 0x88, 0x15, - 0x07, 0x10, 0x7f, 0x44, 0x68, 0x13, 0x61, 0x61, 0x06, 0x61, 0x07, 0x0e, - 0xf1, 0x7f, 0x09, 0x54, 0x5e, 0x8d, 0x06, 0x98, 0x15, 0x03, 0x00, 0x00, - 0xc0, 0xc9, 0x94, 0xc7, 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x47, 0x14, - 0x28, 0x13, 0x38, 0x04, 0x37, 0x06, 0x68, 0x15, 0x0f, 0x14, 0xff, 0x10, - 0x06, 0xf0, 0xff, 0x00, 0x0b, 0x0a, 0x07, 0x05, 0x09, 0x07, 0x0b, 0x0b, - 0x00, 0x09, 0x07, 0x02, 0x0a, 0x0b, 0x0b, 0x0b, 0x0b, 0x00, 0x02, 0x0c, - 0x42, 0x1e, 0x00, 0x00, 0x0d, 0xae, 0x14, 0xbf, 0x30, 0xd6, 0x28, 0x19, - 0xaf, 0x06, 0x68, 0x15, 0x00, 0x00, 0x41, 0x54, 0x2f, 0xaf, 0x62, 0x00, - 0x75, 0x00, 0x6b, 0x06, 0x68, 0x17, 0xb8, 0x50, 0x7f, 0x6f, 0x06, 0x80, - 0x81, 0x07, 0x50, 0xff, 0x0e, 0xa0, 0x7f, 0x58, 0x03, 0x5e, 0x20, 0x4b, - 0x51, 0x06, 0x98, 0x19, 0xc0, 0xd0, 0x80, 0xbd, 0x6c, 0x68, 0xd0, 0x06, - 0x98, 0x19, 0x0e, 0xf2, 0x7f, 0x22, 0x28, 0x11, 0x31, 0x04, 0x43, 0x38, - 0x04, 0x3a, 0x06, 0x48, 0x15, 0x10, 0x07, 0x23, 0xff, 0x0e, 0xe5, 0x7f, - 0x0c, 0x0d, 0x0d, 0xa8, 0x20, 0x01, 0x0c, 0x20, 0x06, 0x05, 0x20, 0x05, - 0x0c, 0x0c, 0x2f, 0x00, 0x14, 0x03, 0x1a, 0x00, 0x00, 0x0e, 0xae, 0xb8, - 0x02, 0x30, 0xe3, 0x30, 0xa6, 0x30, 0xd5, 0x06, 0x88, 0x17, 0x41, 0x08, - 0x00, 0x6c, 0x00, 0x20, 0x2f, 0xb5, 0x61, 0x00, 0x77, 0x20, 0x00, 0x66, - 0x06, 0x80, 0x7f, 0x44, 0x00, 0x6a, 0x00, 0xf4, 0x80, 0x06, 0x40, 0x7f, - 0x44, 0x00, 0x73, 0x00, 0x63, 0x00, 0x68, 0xab, 0x2f, 0xb1, 0x75, 0x06, - 0x80, 0xff, 0x2d, 0x07, 0x01, 0x7f, 0x4a, 0x49, 0x99, 0x06, 0x31, 0xff, - 0x08, 0x31, 0x67, 0x2b, 0x59, 0x06, 0x98, 0x15, 0x00, 0x00, 0x90, 0x07, - 0xc7, 0xb0, 0xc6, 0x04, 0xd5, 0x06, 0x98, 0x17, 0x07, 0x53, 0x7f, 0x06, - 0x91, 0xff, 0x00, 0x2d, 0x04, 0x3b, 0x04, 0x4c, 0x04, 0x2d, 0x00, 0x11, - 0x14, 0x04, 0x36, 0x28, 0x21, 0x43, 0x04, 0x44, 0x05, 0xe8, 0x1f, 0xc0, - 0x07, 0x71, 0x7f, 0x10, 0x0e, 0x70, 0x7f, 0x0d, 0x04, 0x02, 0x06, 0x04, - 0x02, 0x02, 0x0d, 0x0d, 0x03, 0x01, 0x08, 0x04, 0x38, 0x22, 0x32, 0x10, - 0x15, 0x59, 0x1c, 0x00, 0x3f, 0xff, 0x01, 0x07, 0x0c, 0x0c, 0x00, 0x06, - 0x0c, 0x01, 0x01, 0x05, 0x0c, 0x0c, 0x07, 0x00, 0x01, 0x01, 0x01, 0x01, - 0x02, 0x02, 0x01, 0x04, 0x44, 0x02, 0x40, 0x05, 0x07, 0x02, 0x02, 0x20, - 0x01, 0x03, 0x05, 0x00, 0x09, 0x08, 0x0b, 0x09, 0x03, 0x03, 0x0a, 0x09, - 0x00, 0x0a, 0x05, 0x03, 0x03, 0x03, 0x03, 0x04, 0x08, 0x00, 0x0b, 0x02, - 0x07, 0x0b, 0x04, 0x04, 0x06, 0x02, 0x00, 0x0d, 0x08, 0x04, 0x04, 0x04, - 0x04, 0x05, 0x06, 0x00, 0x03, 0x0b, 0x05, 0x03, 0x05, 0x05, 0x04, 0x0b, - 0x00, 0x09, 0x06, 0x05, 0x05, 0x05, 0x05, 0x06, 0x01, 0x00, 0x04, 0x03, - 0x01, 0x04, 0x06, 0x06, 0x07, 0x03, 0x08, 0x01, 0x01, 0x06, 0x06, 0x20, - 0x07, 0x09, 0x06, 0x07, 0x10, 0x08, 0x06, 0x07, 0x20, 0x03, 0x06, 0x09, - 0x07, 0x07, 0x81, 0x20, 0x07, 0x0b, 0x08, 0x09, 0x0a, 0x08, 0x08, 0x20, - 0x06, 0x20, 0x03, 0x0b, 0x20, 0x06, 0x08, 0x09, 0x03, 0x05, 0x01, 0x80, - 0x20, 0x63, 0x09, 0x02, 0x05, 0x0b, 0x03, 0x09, 0x09, 0x06, 0x09, 0x09, - 0x0a, 0x0c, 0x0a, 0x30, 0x02, 0x20, 0x06, 0x04, 0x80, 0x30, 0x06, 0x0a, - 0x0b, 0x0a, 0x07, 0x05, 0x09, 0x07, 0x00, 0x0b, 0x0b, 0x09, 0x07, 0x02, - 0x0a, 0x0b, 0x0b, 0x38, 0x0b, 0x0b, 0xf8, 0xef, 0xf0, 0xe7, 0x3f, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x11, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x18, 0x0d, 0x0d, - 0xd2, 0x00, 0x00, 0x00, 0x01, 0x11, 0xf1, 0x82, 0x18, 0x98, 0xf4, 0x00, - 0x30, 0xa1, 0x30, 0xfc, 0x30, 0xb8, 0x30, 0xf3, 0x04, 0x30, 0xf8, 0x8a, - 0xf6, 0x5c, 0x05, 0xd8, 0x27, 0x42, 0x00, 0x04, 0x72, 0x00, 0x69, 0x00, - 0x74, 0x20, 0x03, 0x73, 0x00, 0x04, 0x68, 0x00, 0x20, 0x00, 0x56, 0x20, - 0x0d, 0x72, 0x00, 0x54, 0x67, 0x20, 0x13, 0x6e, 0x20, 0x0d, 0x49, 0x20, - 0x15, 0x6c, 0x00, 0x5a, 0x61, 0x20, 0x0b, 0x64, 0x20, 0x1f, 0x04, 0x38, - 0xc1, 0xce, 0x20, 0x5f, 0x65, 0xdb, 0x20, 0x7b, 0x50, 0x79, 0x65, 0x40, - 0x7b, 0x50, 0x0f, 0x62, 0x60, 0x99, 0x30, 0x7d, 0x46, 0x6e, 0x20, 0xa3, - 0x71, 0x00, 0x75, 0x40, 0x29, 0x04, 0x90, 0xff, 0x63, 0xaa, 0x21, 0x01, - 0x65, 0x21, 0x03, 0x4a, 0x20, 0x69, 0x6e, 0x21, 0x03, 0x66, 0xd5, 0x40, - 0x8f, 0x30, 0x7b, 0x6e, 0x21, 0x1d, 0x65, 0x21, 0x09, 0x6e, 0x04, 0x09, - 0xc4, 0xbd, 0x31, 0x61, 0x6f, 0x41, 0x03, 0x31, 0x7b, 0x50, 0xff, 0x31, - 0x7b, 0x69, 0x21, 0x8b, 0xfd, 0x71, 0x9b, 0x71, 0x01, 0x50, 0x9f, 0x04, - 0x10, 0x7f, 0x31, 0xe1, 0x51, 0x81, 0xed, 0x61, 0x7f, 0x6e, 0x6e, 0x61, - 0x93, 0x72, 0x1d, 0xe1, 0x60, 0x7f, 0x30, 0x27, 0x03, 0xda, 0xc7, 0xf1, - 0x00, 0x82, 0x5e, 0x5c, 0xf4, 0x7e, 0x14, 0x5c, 0xac, 0x0c, 0x4e, 0xa4, - 0x7f, 0x9b, 0x05, 0xe2, 0xfb, 0x3b, 0x9a, 0x01, 0xc6, 0x00, 0x6d, 0xad, - 0x39, 0xb8, 0x20, 0x00, 0x84, 0xbc, 0x00, 0xc4, 0xc9, 0x44, 0xc5, 0x7c, - 0xc7, 0x9c, 0xb7, 0x31, 0xdc, 0xb4, 0x06, 0x33, 0x7f, 0x32, 0x5f, 0x20, - 0x00, 0x4d, 0x23, 0x6b, 0x57, 0x61, 0x23, 0x7d, 0x64, 0x61, 0x83, 0x69, - 0x83, 0x7d, 0x31, 0x93, 0x04, 0x3c, 0x41, 0x5e, 0x49, 0x23, 0xdf, 0x68, - 0x81, 0xff, 0x53, 0xfb, 0x31, 0xff, 0xb1, 0xfd, 0xe2, 0xc0, 0x04, 0x81, - 0xfd, 0x2d, 0x18, 0x04, 0x40, 0x04, 0x38, 0x04, 0x42, 0x00, 0x04, 0x30, - 0x04, 0x3d, 0x04, 0x41, 0x04, 0x3a, 0x82, 0x20, 0x0b, 0x35, 0x04, 0x20, - 0x00, 0x12, 0x20, 0x13, 0x40, 0x35, 0x04, 0x33, 0x20, 0x19, 0xb0, 0x15, - 0x3e, 0x20, 0x21, 0x42, 0x20, 0x2f, 0x1c, 0x3e, 0x04, 0x32, 0x20, 0x2f, - 0x0b, 0x54, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x01, 0x01, 0xf0, 0xd0, 0x01, - 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0xba, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xfe, 0x16, 0xf5, 0xd1, 0x00, 0x00, 0x00, - 0x01, 0xba, 0xd0, 0x30, 0xfc, 0x30, 0xdf, 0x24, 0x30, 0xe5, 0x20, 0x05, - 0xc0, 0x30, 0x06, 0x38, 0x21, 0x42, 0x00, 0x00, 0x65, 0x00, 0x72, 0x00, - 0x6d, 0x00, 0x75, 0x00, 0x11, 0x64, 0x00, 0x61, 0x06, 0xe0, 0x7f, 0x65, - 0x00, 0x73, 0x0e, 0xe0, 0xff, 0xc0, 0x06, 0xf1, 0xff, 0x06, 0x11, 0x7f, - 0x7e, 0x76, 0x55, 0x61, 0x27, 0x59, 0x81, 0x06, 0x9b, 0x1b, 0x84, 0xbc, - 0xa4, 0xbb, 0xe4, 0xb2, 0x06, 0x9b, 0x9b, 0xc0, 0x07, 0xb3, 0x7f, 0x06, - 0x31, 0xff, 0x11, 0x04, 0x35, 0x04, 0x40, 0x04, 0x00, 0x3c, 0x04, 0x43, - 0x04, 0x34, 0x04, 0x4b, 0x04, 0xcf, 0x0e, 0xf1, 0x7f, 0x10, 0x0e, 0x10, - 0xff, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x3c, 0x72, 0x00, 0x11, 0x0d, 0x00, 0x00, - 0x30, 0x01, 0x12, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x30, 0x20, 0x23, 0xca, 0x00, 0x00, 0x00, - 0x02, 0x12, 0xaa, 0x30, 0xf3, 0x30, 0xbf, 0x01, 0x30, 0xea, 0x30, 0xaa, - 0x30, 0xde, 0x5d, 0x06, 0x38, 0x21, 0x00, 0x4f, 0x00, 0x6e, 0x00, 0x74, - 0x00, 0x61, 0x00, 0x04, 0x72, 0x00, 0x69, 0x00, 0x6f, 0x10, 0x16, 0x20, - 0x7f, 0x89, 0x5b, 0x02, 0x27, 0x59, 0x65, 0x75, 0x01, 0x77, 0x06, 0x7b, - 0x1d, 0x28, 0x00, 0xc6, 0xc0, 0xd0, 0xac, 0xb9, 0x24, 0xc6, 0x20, 0x14, - 0x00, 0xfc, 0xc8, 0x0e, 0x93, 0x7f, 0xe1, 0x06, 0x83, 0xff, 0x1e, 0x04, - 0x00, 0x3d, 0x04, 0x42, 0x04, 0x30, 0x04, 0x40, 0x04, 0x08, 0x38, 0x04, - 0x3e, 0x04, 0x10, 0x1e, 0x14, 0xff, 0x01, 0x09, 0x07, 0x00, 0x09, 0x08, - 0x08, 0x01, 0x01, 0x09, 0x08, 0x09, 0x04, 0x09, 0x01, 0x01, 0x01, 0x01, - 0x58, 0x17, 0x03, 0x12, 0x01, 0xa2, 0x30, 0xeb, 0x30, 0xd0, 0x30, 0xfc, - 0x28, 0x1b, 0x80, 0x06, 0x58, 0x17, 0x41, 0x00, 0x6c, 0x00, 0x62, 0x00, - 0x65, 0xe0, 0x28, 0x17, 0x38, 0x1d, 0x10, 0x16, 0x10, 0x7f, 0x7e, 0x82, - 0x2f, 0x4f, 0x54, 0x40, 0x58, 0x06, 0x98, 0x17, 0x68, 0xc5, 0x84, 0xbc, - 0xc0, 0xd0, 0xc0, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x10, 0x04, 0x3b, - 0x04, 0x4c, 0x04, 0x1d, 0x31, 0x04, 0x35, 0x28, 0x19, 0x38, 0x1f, 0x10, - 0x1d, 0xf4, 0xff, 0x02, 0x38, 0x0c, 0x20, 0x01, 0x02, 0x40, 0x06, 0x02, - 0x02, 0x02, 0x02, 0x14, 0x00, 0x26, 0x50, 0xaf, 0x00, 0x00, 0x04, 0x12, - 0xd6, 0x00, 0x30, 0xea, 0x30, 0xc6, 0x30, 0xa3, 0x30, 0xc3, 0x00, 0x30, - 0xb7, 0x30, 0xe5, 0x30, 0xfb, 0x30, 0xb3, 0x00, 0x30, 0xed, 0x30, 0xf3, - 0x30, 0xd3, 0x30, 0xa2, 0xa8, 0x05, 0x68, 0x27, 0x42, 0x4f, 0xa9, 0x74, - 0x2f, 0xad, 0x73, 0x00, 0x68, 0x08, 0x00, 0x20, 0x00, 0x43, 0x2f, 0xb5, - 0x6c, 0x00, 0x75, 0x2d, 0x00, 0x6d, 0x28, 0x2d, 0x69, 0x05, 0x28, 0x29, - 0x50, 0x6f, 0x6f, 0x60, 0x6f, 0x15, 0x65, 0x00, 0x2d, 0x80, 0x91, 0x61, - 0x2f, 0xc9, 0x6e, 0x2f, 0xc5, 0x54, 0x71, 0x20, 0x8d, 0x65, 0x05, 0x40, - 0xff, 0x63, 0x21, 0x01, 0x2d, 0x00, 0x5d, 0x4b, 0xc1, 0x01, 0x65, 0x2f, - 0xcf, 0x05, 0x10, 0xff, 0x91, 0x6f, 0x20, 0x00, 0x00, 0xff, 0x68, 0x63, - 0x04, 0xc9, 0xaf, 0x00, 0x90, 0x7f, 0xe1, 0x05, 0x20, 0x7d, 0x00, 0x00, - 0x0d, 0x00, 0x4e, 0x17, 0x52, 0xa0, 0x98, 0xe5, 0x54, 0x26, 0x04, 0x4f, - 0xd4, 0x6b, 0x9a, 0x4e, 0x06, 0x18, 0x1f, 0x0c, 0xbe, 0x00, 0xac, 0xb9, - 0xf0, 0xd2, 0xdc, 0xc2, 0xec, 0xce, 0x03, 0xfc, 0xb7, 0x44, 0xbe, 0x44, - 0xc5, 0x05, 0xf8, 0x21, 0x73, 0x7f, 0x75, 0x73, 0x22, 0xf9, 0x05, 0xf3, - 0x7b, 0x93, 0x7f, 0xfa, 0x00, 0x22, 0x7f, 0xe2, 0x05, 0x41, 0xff, 0x50, - 0x11, 0x28, 0x0f, 0x38, 0x48, 0x11, 0x3d, 0x04, 0x41, 0x04, 0x40, 0x3a, - 0x28, 0x19, 0x4f, 0x04, 0x20, 0x00, 0x1a, 0x04, 0x45, 0x3e, 0x28, 0x2f, - 0x43, 0x04, 0x3c, 0x28, 0x31, 0x38, 0x20, 0x11, 0xd2, 0x0c, 0x94, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x03, 0x38, 0x0c, 0x02, 0x03, 0x40, 0x06, 0x03, - 0x00, 0x03, 0x03, 0x03, 0x70, 0x22, 0x46, 0xa8, 0x00, 0x00, 0x00, 0x05, - 0x12, 0xde, 0x30, 0xcb, 0x30, 0xc8, 0x36, 0x30, 0xd0, 0x05, 0x68, 0x05, - 0x00, 0x1f, 0xff, 0x4d, 0x47, 0x7f, 0x38, 0x19, 0x6f, 0xe0, 0x2f, 0xb7, - 0x06, 0x1f, 0xb1, 0x10, 0x0e, 0xf0, 0x7f, 0x6c, 0x9a, 0x3c, 0x5c, 0x58, - 0x18, 0x62, 0xf4, 0x5d, 0x06, 0x18, 0x11, 0x5f, 0xff, 0xe4, 0xb9, 0xc8, - 0x06, 0xb2, 0xa0, 0xd1, 0x14, 0xbc, 0x05, 0xf8, 0x0f, 0x0f, 0x73, 0x7f, - 0x1c, 0xd6, 0x48, 0x11, 0x38, 0x19, 0x3e, 0x28, 0x03, 0x30, 0x04, 0xa8, - 0x01, 0x10, 0x18, 0x54, 0xff, 0x04, 0x4c, 0x03, 0x20, 0x01, 0x04, 0x04, - 0x30, 0x04, 0x40, 0x07, 0x79, 0x23, 0x00, 0xeb, 0xba, 0x00, 0x00, 0x06, - 0x12, 0xcb, 0x30, 0x00, 0xe5, 0x30, 0xfc, 0x30, 0xfb, 0x30, 0xd6, 0x30, - 0x00, 0xe9, 0x30, 0xf3, 0x30, 0xba, 0x30, 0xa6, 0x30, 0x05, 0xa3, 0x30, - 0xc3, 0x30, 0xaf, 0x05, 0x88, 0x27, 0x4e, 0x2f, 0xa3, 0x56, 0x77, 0x6e, - 0xa5, 0x75, 0x2f, 0xa1, 0x73, 0x20, 0x0d, 0x3e, 0xa3, 0x6b, 0xa2, 0x05, - 0x6d, 0xb8, 0x4e, 0x2f, 0x9d, 0x75, 0x00, 0x76, 0x2f, 0x97, 0x61, 0xb5, - 0x2f, 0xa3, 0x2d, 0x06, 0x00, 0x87, 0x30, 0xff, 0x75, 0x2f, 0xab, 0x72, - 0x40, 0x7f, 0xa8, 0x30, 0xff, 0x63, 0x2c, 0x37, 0x77, 0x21, 0x15, 0x69, - 0x00, 0x67, 0xae, 0x05, 0x41, 0x7f, 0x75, 0x2f, 0xb1, 0x76, 0x2f, 0xb5, - 0x06, 0x51, 0x83, 0x30, 0x7f, 0x65, 0x80, 0x06, 0xa0, 0x7f, 0xb0, 0x65, - 0x0d, 0x4e, 0x26, 0x4f, 0x5e, 0x10, 0x74, 0x4b, 0x51, 0x06, 0x58, 0x19, - 0x74, 0xb2, 0x0c, 0xbe, 0x02, 0xf0, 0xb7, 0x88, 0xc9, 0x05, 0xc7, 0x06, - 0x58, 0x19, 0x4e, 0xd6, 0x2f, 0xa5, 0x32, 0x81, 0x77, 0x00, 0x02, 0xfb, - 0x6a, 0x05, 0x61, 0xff, 0x32, 0x7d, 0x61, 0x80, 0x06, 0x84, 0x01, 0x1d, - 0x04, 0x4c, 0x04, 0x4e, 0x04, 0x2d, 0x08, 0x00, 0x11, 0x04, 0x40, 0x48, - 0x21, 0x41, 0x04, 0x43, 0xb8, 0x28, 0x25, 0x3a, 0x05, 0x88, 0x1f, 0x07, - 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x05, 0x04, 0x05, 0x00, 0x04, 0x07, - 0x06, 0x05, 0x05, 0x05, 0x05, 0x07, 0x40, 0x04, 0x30, 0x05, 0xac, 0x20, - 0x98, 0xd0, 0x00, 0x00, 0x45, 0x07, 0x68, 0x17, 0xd5, 0x30, 0xa1, 0x28, - 0x15, 0xc9, 0x48, 0x1b, 0x55, 0xc9, 0x28, 0x25, 0xe9, 0x48, 0x27, 0xc9, - 0x28, 0x31, 0xeb, 0x04, 0xe8, 0x21, 0xa0, 0x58, 0x17, 0x66, 0x47, 0x9d, - 0x6e, 0x00, 0x64, 0x00, 0x6c, 0xb6, 0x4f, 0xbf, 0x64, 0x28, 0x29, 0x70, - 0x07, 0x4c, 0x2f, 0xd1, 0x57, 0x37, 0x64, 0xaa, 0x2f, 0xd3, 0x72, 0x03, - 0xef, 0xd1, 0x54, 0x28, 0x97, 0x72, 0x28, 0x93, 0x65, 0xeb, 0x28, 0x13, - 0x57, 0xa3, 0x38, 0x23, 0x20, 0x28, 0xad, 0x74, 0x05, 0x00, 0x7b, 0x98, - 0x17, 0x7f, 0x66, 0x00, 0x00, 0xfd, 0x51, 0x0d, 0x05, 0x10, 0x81, 0x70, - 0xff, 0x3f, 0xb5, 0x75, 0xa1, 0x30, 0xff, 0xd0, 0x05, 0x10, 0xf9, 0x00, - 0x90, 0x7f, 0x79, 0x05, 0xa0, 0x7f, 0xbd, 0x7e, 0xac, 0x82, 0x00, 0x70, - 0x51, 0x0e, 0x4e, 0xc9, 0x62, 0x03, 0x5e, 0x08, 0xc9, 0x62, 0x1a, 0x59, - 0x05, 0xf8, 0x1d, 0x74, 0xb2, 0x80, 0x00, 0xd3, 0xe4, 0xb4, 0x9c, 0xb7, - 0xdc, 0xb4, 0x98, 0x01, 0xb7, 0x0c, 0xbe, 0x7c, 0xb7, 0xc4, 0xb3, 0x05, - 0xd8, 0x1f, 0xba, 0x00, 0x93, 0x7f, 0x65, 0x2f, 0xc7, 0x0d, 0x12, 0x7f, - 0x58, 0x17, 0x44, 0x28, 0x13, 0x43, 0x82, 0x28, 0x15, 0x34, 0x04, 0x3b, - 0x04, 0x35, 0x40, 0x07, 0x20, 0x2a, 0x00, 0x38, 0x20, 0x03, 0x1b, 0x28, - 0x2b, 0x31, 0x48, 0x31, 0x34, 0x38, 0x04, 0x3e, 0x28, 0x39, 0x0c, 0x14, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x06, 0x05, 0x0a, 0x00, 0x05, 0x0b, 0x0b, - 0x06, 0x06, 0x04, 0x0b, 0x08, 0x00, 0x05, 0x06, 0x06, 0x06, 0x06, 0xd3, - 0x21, 0x81, 0x00, 0xda, 0x00, 0x00, 0x08, 0x12, 0xce, 0x30, 0xd0, 0x80, - 0x28, 0x07, 0xb9, 0x30, 0xb3, 0x30, 0xb7, 0x30, 0xa2, 0xd5, 0x04, 0xe8, - 0x03, 0x00, 0xdc, 0x2f, 0x53, 0x2f, 0x9d, 0x6f, 0x27, 0x8d, 0x69, 0x2f, - 0xb9, 0xda, 0x05, 0xd0, 0x7f, 0x58, 0x0b, 0x6c, 0x28, 0x93, 0x38, 0x1d, - 0xc9, 0x40, 0x87, 0x73, 0xa8, 0x2f, 0xb9, 0x65, 0x05, 0x6c, 0x2f, 0x75, - 0x2f, 0xa1, 0x63, 0x00, 0x68, 0xb5, 0x40, 0xfd, 0x74, 0x89, 0x19, 0x05, - 0x7e, 0x2f, 0x75, 0xe1, 0x81, 0x7a, 0x05, 0xc1, 0x81, 0xab, 0x30, 0x7f, - 0x65, 0x6e, 0x31, 0x45, 0x41, 0x07, 0x6f, 0x2e, 0x2b, 0x05, 0x92, 0x03, - 0x00, 0xb0, 0x65, 0xaf, 0x65, 0xd1, 0x79, 0x0d, 0x82, 0xc0, 0x05, 0xf8, - 0x0f, 0x7f, 0xff, 0x78, 0xb1, 0x14, 0xbc, 0xa4, 0xc2, 0x0e, 0x54, 0xcf, - 0xe4, 0xc0, 0x05, 0xd8, 0x0f, 0x07, 0xb3, 0x7f, 0xb1, 0xfd, 0xf3, 0xc5, - 0x05, 0xc1, 0xfd, 0x38, 0x17, 0x3e, 0x04, 0x32, 0x28, 0x15, 0x4f, 0x28, - 0x09, 0x55, 0x28, 0x27, 0xfb, 0x42, 0x28, 0x19, 0x30, 0x48, 0x21, 0x38, - 0x20, 0x13, 0xc9, 0x0d, 0xb1, 0x7f, 0x10, 0x0e, 0x50, 0x7f, 0x07, 0x07, - 0x28, 0x0d, 0x05, 0x07, 0x20, 0x06, 0x80, 0x30, 0x04, 0x07, 0x07, 0xed, - 0x1f, 0xd9, 0xd2, 0x00, 0x00, 0x00, 0x09, 0x12, 0xd7, 0x30, 0xea, 0x30, - 0xf3, 0x80, 0x28, 0x17, 0xfb, 0x30, 0xa8, 0x30, 0xc9, 0x30, 0xef, 0x28, - 0x30, 0xfc, 0x20, 0x05, 0xfb, 0x28, 0x21, 0xa4, 0x30, 0xe9, 0xaa, 0x20, - 0x17, 0xc9, 0x05, 0x08, 0x29, 0x50, 0x2f, 0xad, 0x69, 0x2f, 0x2b, 0x63, - 0xaa, 0x4f, 0xa5, 0x45, 0x2f, 0x97, 0x77, 0x2f, 0xa3, 0x72, 0x4f, 0x33, - 0x49, 0xd5, 0x27, 0x9d, 0x04, 0xf7, 0x25, 0xce, 0x68, 0x0d, 0x64, 0x2f, - 0xb5, 0x2d, 0xc0, 0x8d, 0xdb, 0x38, 0x21, 0x3f, 0xa3, 0x75, 0x60, 0x8f, - 0x04, 0xd0, 0xff, 0x7a, 0x28, 0x91, 0xb0, 0xfd, 0x56, 0x2d, 0x20, 0xfd, - 0x6e, 0x48, 0x9b, 0x6c, 0x04, 0xce, 0xc0, 0x31, 0x63, 0x6f, 0xb4, 0x4e, - 0x25, 0x20, 0x2f, 0x99, 0x39, 0x1d, 0x20, 0xa1, 0x93, 0x69, 0x00, 0x56, - 0x70, 0x81, 0x97, 0x6f, 0x61, 0x97, 0x6f, 0x04, 0x00, 0x7f, 0x00, 0x10, - 0x7d, 0xed, 0xe0, 0x00, 0x00, 0x7d, 0x71, 0x85, 0x03, 0xd0, 0x7d, 0x00, - 0x00, 0x31, 0x72, 0xb7, 0x00, 0x5f, 0x4e, 0x53, 0x8b, 0x73, 0x50, 0x5b, - 0x9b, 0x40, 0x5c, 0x06, 0x38, 0x1b, 0x04, 0xd5, 0xb0, 0xb9, 0xa4, 0xc2, - 0x00, 0xd0, 0xc5, 0xdc, 0xb4, 0xcc, 0xc6, 0xdc, 0xb4, 0x00, 0x44, 0xc5, - 0x7c, 0xc7, 0x9c, 0xb7, 0xdc, 0xb4, 0xd6, 0x05, 0x98, 0x23, 0x73, 0x7f, - 0x73, 0xe3, 0x7d, 0x65, 0x2b, 0x9f, 0x05, 0x3a, 0xa1, 0x49, 0xa8, 0x2f, - 0x21, 0x68, 0x62, 0x7d, 0x6f, 0x06, 0x01, 0xfd, 0x00, 0x00, 0x1e, 0x28, - 0x04, 0x41, 0x28, 0x0b, 0x40, 0x48, 0x1d, 0x20, 0x00, 0x1f, 0xa8, 0x20, - 0x09, 0x38, 0x28, 0x15, 0x46, 0x28, 0x29, 0x20, 0x00, 0x2d, 0xab, 0x28, - 0x1d, 0x43, 0x28, 0x33, 0x40, 0x28, 0x25, 0x30, 0x04, 0x68, 0x23, 0x06, - 0xf4, 0xff, 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x08, 0x0a, 0x03, 0x0a, 0x03, - 0x03, 0x08, 0x80, 0x30, 0x06, 0x0a, 0x08, 0x08, 0x08, 0x08, 0xe1, 0x20, - 0x00, 0x1b, 0xd3, 0x00, 0x00, 0x0a, 0x12, 0xb1, 0x30, 0x06, 0xd9, 0x30, - 0xc3, 0x30, 0xaf, 0x05, 0x07, 0xff, 0x00, 0x7f, 0xff, 0x51, 0xab, 0x4e, - 0x2f, 0x62, 0x2f, 0xaf, 0x63, 0x06, 0x80, 0x7f, 0xe9, 0x10, 0x06, 0xe0, - 0x7f, 0x06, 0xb1, 0xff, 0x03, 0x41, 0x9b, 0x17, 0x53, 0x4b, 0x51, 0x06, - 0x38, 0x11, 0x5f, 0xff, 0x0d, 0x18, 0xd0, 0xa1, 0xbc, 0x05, 0x98, 0x05, - 0x08, 0xb1, 0xff, 0x71, 0x44, 0x09, 0xa2, 0x05, 0xf9, 0x99, 0x1a, 0x28, - 0x0f, 0x35, 0x04, 0x31, 0x20, 0x03, 0x3a, 0xe0, 0x04, 0x67, 0xf9, 0x09, - 0x14, 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x09, 0x0b, 0x08, 0x0b, 0x09, 0x02, - 0x09, 0x09, 0x09, 0x0b, 0x09, 0x03, 0x40, 0x07, 0x48, 0x00, 0x21, 0x5d, - 0xcd, 0x00, 0x00, 0x0b, 0x12, 0xb5, 0x00, 0x30, 0xb9, 0x30, 0xab, 0x30, - 0xc1, 0x30, 0xe5, 0x0a, 0x30, 0xef, 0x30, 0xf3, 0x06, 0x28, 0x1d, 0x53, - 0x2f, 0x8d, 0x73, 0x2b, 0x00, 0x6b, 0x2f, 0x93, 0x74, 0x2f, 0xa5, 0x68, - 0x2f, 0xbb, 0x3f, 0x31, 0x40, 0x6e, 0x10, 0x15, 0x80, 0x7f, 0x28, 0x84, - 0xaf, 0x65, 0x80, 0x55, 0x08, 0x7b, 0x5f, 0x29, 0x6e, 0x06, 0x58, 0x1b, - 0x1c, 0xc1, 0xa4, 0x01, 0xc2, 0x90, 0xce, 0x98, 0xcc, 0xd0, 0xc6, 0x06, - 0x58, 0x1d, 0x82, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x30, 0x04, 0x41, 0x28, - 0x13, 0x30, 0x2b, 0x04, 0x47, 0x28, 0x1f, 0x32, 0x20, 0x0d, 0x3d, 0x05, - 0xc8, 0x1f, 0x10, 0x16, 0xf4, 0xff, 0x00, 0x0a, 0x0c, 0x09, 0x0c, 0x0a, - 0x0a, 0x0a, 0x0a, 0x10, 0x0c, 0x0a, 0x0b, 0x40, 0x07, 0xe0, 0x23, 0x9b, - 0xb5, 0x00, 0x00, 0x00, 0x0c, 0x12, 0xe6, 0x30, 0xfc, 0x30, 0x4d, 0xb3, - 0x28, 0x11, 0x96, 0x6e, 0x06, 0x18, 0x13, 0x3f, 0xff, 0x59, 0x2f, 0xaf, - 0x1a, 0x6b, 0x00, 0x6f, 0x05, 0xa8, 0x09, 0xdf, 0xff, 0x54, 0x2f, 0xa9, - 0x72, 0xaa, 0x20, 0x01, 0x69, 0x28, 0x97, 0x6f, 0x20, 0x05, 0x72, 0x2f, - 0xb9, 0x20, 0x2e, 0x00, 0x64, 0x2f, 0xc5, 0x20, 0x05, 0x40, 0x9b, 0x06, - 0xf0, 0xff, 0x07, 0x50, 0x7f, 0xf3, 0x80, 0x06, 0x81, 0xff, 0xb2, 0x80, - 0x7a, 0x7a, 0x30, 0x57, 0x3a, 0x40, 0x53, 0x06, 0x7f, 0xaf, 0x20, 0xc7, - 0x58, 0xcf, 0x20, 0x00, 0x35, 0x00, 0xc9, 0x06, 0x38, 0x13, 0x0f, 0x32, - 0x7f, 0x2e, 0x28, 0x13, 0x3e, 0x05, 0xe8, 0x0b, 0xc0, 0x10, 0x00, 0x13, - 0xff, 0x10, 0x06, 0x90, 0xff, 0x0b, 0x0d, 0x0c, 0x0d, 0x0d, 0x0d, 0x30, - 0x0b, 0x0b, 0x20, 0x04, 0x20, 0x05, 0x0b, 0x0b, 0x2d, 0x2b, 0x01, 0xf7, - 0x9f, 0x00, 0x00, 0x0d, 0x12, 0xce, 0x28, 0x17, 0x05, 0xb9, 0x30, 0xa6, - 0x30, 0xa7, 0x20, 0x05, 0xc8, 0x06, 0x28, 0x1d, 0x55, 0x4e, 0x28, 0x13, - 0x72, 0x2f, 0xab, 0x68, 0x2f, 0xa7, 0x65, 0x2f, 0xb9, 0x7d, 0x74, 0x27, - 0x95, 0xd7, 0xab, 0x37, 0xb3, 0x30, 0x19, 0x05, 0x98, 0x17, 0x73, 0x88, - 0x19, 0x83, 0x50, 0x9d, 0x64, 0x00, 0x2d, 0x00, 0x4f, 0x28, 0xbf, 0x50, - 0x9f, 0xaf, 0x04, 0x30, 0xff, 0x64, 0x80, 0xfd, 0x2d, 0x00, 0x40, 0xfd, - 0x04, 0x9f, 0xbf, 0x00, 0x11, 0x6b, 0x39, 0x15, 0x16, 0x65, 0x00, 0x6c, - 0xe0, 0xfd, 0x76, 0x04, 0x40, 0xfd, 0x00, 0x30, 0x7f, 0x6f, 0xd4, 0x61, - 0x7f, 0xb0, 0x83, 0x6f, 0x62, 0x1b, 0x65, 0x04, 0x0f, 0xd2, 0x7f, 0x89, - 0x20, 0x17, 0x53, 0x06, 0xb8, 0x17, 0x78, 0xb1, 0xa4, 0xc2, 0xe8, 0x06, - 0xc6, 0xa4, 0xc2, 0xb8, 0xd2, 0x06, 0x58, 0x1d, 0x07, 0xb3, 0x7f, 0xf3, - 0xa0, 0xc1, 0xff, 0x6f, 0x05, 0x21, 0xfd, 0x00, 0x00, 0x21, 0x04, 0x35, - 0x28, 0x04, 0x32, 0x20, 0x03, 0x40, 0x28, 0x1d, 0x2d, 0x00, 0x17, 0x0a, - 0x04, 0x30, 0x04, 0x3f, 0x20, 0x03, 0x34, 0x28, 0x29, 0x4b, 0x88, 0x20, - 0x19, 0x20, 0x00, 0x42, 0x40, 0x1b, 0x40, 0x04, 0x38, 0x37, 0x04, 0x42, - 0x28, 0x3f, 0x30, 0x07, 0x38, 0x03, 0xc8, 0x43, 0x06, 0xf4, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x00, 0x0c, 0x06, 0x0d, 0x07, 0x0c, 0x0c, 0x0c, 0x0c, - 0x40, 0x06, 0x40, 0x02, 0x0c, 0x0c, 0x69, 0x2c, 0xaf, 0xae, 0x00, 0x00, - 0x00, 0x0e, 0x12, 0xcc, 0x30, 0xca, 0x30, 0x6a, 0xd6, 0x06, 0x48, 0x11, - 0x78, 0x17, 0x75, 0x2f, 0x8f, 0x61, 0x26, 0x77, 0x75, 0xfc, 0x04, 0x26, - 0x75, 0x02, 0x58, 0x17, 0x98, 0x15, 0x05, 0x10, 0x9b, 0x06, 0xf0, 0xff, - 0x0e, 0xf0, 0x7f, 0xaa, 0x52, 0x02, 0xb3, 0x7e, 0xf4, 0x7e, 0x79, 0x72, - 0x06, 0x78, 0x1b, 0x04, 0x06, 0xb2, 0x98, 0xb0, 0x80, 0xbd, 0x06, 0x78, - 0x15, 0x0f, 0x12, 0x7f, 0x1d, 0x2b, 0x04, 0x43, 0x28, 0x03, 0x30, 0x28, - 0x1b, 0x43, 0x27, 0xf9, 0x10, 0x06, 0x13, 0x7f, 0x80, 0x10, 0x06, 0xf4, - 0xff, 0x0d, 0x08, 0x0b, 0x08, 0x05, 0x07, 0x0d, 0x00, 0x0d, 0x08, 0x07, - 0x06, 0x08, 0x0d, 0x0d, 0x0d, 0x04, 0x0d, 0x55, 0x2d, 0x48, 0xcf, 0x00, - 0x3f, 0xff, 0x01, 0x09, 0x00, 0x07, 0x09, 0x08, 0x08, 0x01, 0x01, 0x09, - 0x08, 0x01, 0x09, 0x09, 0x01, 0x01, 0x01, 0x01, 0x02, 0x30, 0x04, 0x20, - 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x03, 0x90, 0x30, 0x04, - 0x02, 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x4d, 0x04, 0x30, 0x01, - 0x04, 0x04, 0x30, 0x04, 0x40, 0x07, 0x05, 0x20, 0x01, 0x00, 0x07, 0x06, - 0x05, 0x05, 0x05, 0x05, 0x07, 0x04, 0x80, 0x30, 0x05, 0x06, 0x05, 0x0a, - 0x05, 0x0b, 0x0b, 0x06, 0x20, 0x06, 0x04, 0x20, 0x7e, 0x06, 0x06, 0x06, - 0x06, 0x07, 0x4c, 0x07, 0x20, 0x05, 0x05, 0x07, 0x20, 0x06, 0x30, 0x04, - 0x07, 0x07, 0x01, 0x08, 0x0a, 0x03, 0x0a, 0x03, 0x03, 0x08, 0x30, 0x06, - 0x00, 0x0a, 0x08, 0x08, 0x08, 0x08, 0x09, 0x0b, 0x08, 0x00, 0x0b, 0x09, - 0x09, 0x09, 0x09, 0x0b, 0x09, 0x03, 0x80, 0x40, 0x07, 0x0a, 0x0c, 0x09, - 0x0c, 0x0a, 0x0a, 0x0a, 0x08, 0x0a, 0x0c, 0x0a, 0x0b, 0x40, 0x07, 0x0b, - 0x0d, 0x0c, 0x90, 0x20, 0xbe, 0x0b, 0x0b, 0x30, 0xc3, 0x0b, 0x0b, 0x0b, - 0x0b, 0xe0, 0xf8, 0xef, 0xf0, 0xe7, 0x3f, 0xde, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x13, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xb9, 0x0d, 0x21, - 0xc6, 0x00, 0x00, 0x00, 0x01, 0x13, 0xb1, 0x30, 0xa4, 0x30, 0xde, 0x01, - 0x30, 0xf3, 0x30, 0xf8, 0x8a, 0xf6, 0x5c, 0x06, 0x38, 0x21, 0x01, 0x43, - 0x00, 0x61, 0x00, 0x79, 0x00, 0x6d, 0x20, 0x05, 0x00, 0x6e, 0x00, 0x20, - 0x00, 0x49, 0x00, 0x73, 0x00, 0x5a, 0x6c, 0x40, 0x0b, 0x64, 0x20, 0x09, - 0x05, 0x38, 0xb1, 0xce, 0x20, 0x6f, 0x65, 0xae, 0x20, 0x75, 0x20, 0x40, - 0x89, 0xef, 0x60, 0x89, 0x05, 0x50, 0x7b, 0x39, 0x9a, 0x4b, 0xaa, 0x20, - 0xff, 0x69, 0x60, 0xff, 0x69, 0x40, 0x79, 0x65, 0x21, 0x01, 0x6e, 0xdf, - 0x05, 0x89, 0xac, 0x31, 0x71, 0x6f, 0x41, 0x03, 0x51, 0x01, 0x71, 0x8b, - 0x05, 0xb0, 0x7f, 0x31, 0xf1, 0xd0, 0x71, 0x81, 0x31, 0x0b, 0xe1, 0x05, - 0xa0, 0xff, 0x00, 0x5f, 0xfc, 0x66, 0x18, 0xa4, 0x7f, 0x9b, 0x06, 0x42, - 0xfb, 0x4b, 0x9a, 0xcf, 0x74, 0xc7, 0x00, 0xe8, 0xb9, 0x20, 0x00, 0x1c, - 0xc8, 0xc4, 0xb3, 0xed, 0x06, 0x3b, 0xa1, 0x32, 0x7f, 0x92, 0x81, 0x65, - 0x22, 0x8b, 0x73, 0x7f, 0x65, 0x05, 0x42, 0x85, 0x56, 0x49, 0x23, 0xef, - 0x68, 0xe1, 0xff, 0xe3, 0x22, 0x91, 0x05, 0x7c, 0xad, 0x1a, 0x02, 0x04, - 0x30, 0x04, 0x39, 0x04, 0x3c, 0x20, 0x05, 0x3d, 0x00, 0x04, 0x3e, 0x04, - 0x32, 0x04, 0x4b, 0x04, 0x20, 0x00, 0x00, 0x3e, 0x04, 0x41, 0x04, 0x42, - 0x04, 0x40, 0x99, 0x40, 0x0f, 0x30, 0x04, 0x0c, 0xd4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0xe0, 0x58, 0x17, 0x01, 0x10, 0x27, - 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x3c, 0x72, 0x00, 0x11, 0x0d, 0x00, 0x00, 0x30, 0x01, 0x14, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x37, 0xe8, 0xc0, 0xcd, 0x00, 0x00, 0x00, 0x02, 0x14, 0xec, 0x30, - 0xb8, 0x30, 0xe7, 0x00, 0x30, 0xf3, 0x30, 0xfb, 0x30, 0xe1, 0x30, 0xc8, - 0x00, 0x30, 0xed, 0x30, 0xdd, 0x30, 0xea, 0x30, 0xbf, 0x04, 0x30, 0xca, - 0x30, 0xde, 0x5d, 0x05, 0x58, 0x2f, 0x52, 0x00, 0x00, 0x65, 0x00, 0x67, - 0x00, 0x69, 0x00, 0xf3, 0x00, 0x04, 0x6e, 0x00, 0x20, 0x00, 0x4d, 0x20, - 0x0d, 0x74, 0x00, 0x05, 0x72, 0x00, 0x6f, 0x00, 0x70, 0x20, 0x03, 0x6c, - 0x20, 0x17, 0x15, 0x74, 0x00, 0x61, 0x20, 0x19, 0x61, 0x04, 0xa0, 0x7f, - 0xe9, 0x40, 0x7f, 0x55, 0x6f, 0x60, 0x7f, 0xe9, 0x00, 0x20, 0x7f, 0x69, - 0x20, 0x9b, 0x65, 0x20, 0x9d, 0x55, 0x64, 0x40, 0x05, 0x53, 0x40, 0x91, - 0x74, 0x20, 0xb3, 0x61, 0x20, 0xb9, 0x7e, 0x6f, 0x0b, 0x00, 0xff, 0x51, - 0x7f, 0x30, 0xff, 0x30, 0xe3, 0x00, 0x91, 0x81, 0x30, 0xff, 0x69, 0x80, - 0x0c, 0x00, 0xff, 0x23, 0x57, 0x30, 0x57, 0x9a, 0x4e, 0xe5, 0x01, 0x54, - 0x96, 0x99, 0xfd, 0x90, 0x3a, 0x53, 0x06, 0x1b, 0x23, 0x00, 0xb0, 0xc0, - 0xf0, 0xd2, 0x44, 0xc5, 0xe0, 0xac, 0x00, 0x20, 0x00, 0x18, 0xc2, 0xc4, - 0xb3, 0xfc, 0xc8, 0xd8, 0x05, 0xfb, 0xa5, 0x07, 0x72, 0x7f, 0xe3, 0x23, - 0xf3, 0x06, 0x33, 0xff, 0x21, 0x04, 0x42, 0x00, 0x04, 0x3e, 0x04, 0x3b, - 0x04, 0x38, 0x04, 0x47, 0x00, 0x04, 0x3d, 0x04, 0x4b, 0x04, 0x39, 0x04, - 0x20, 0x00, 0x00, 0x3e, 0x04, 0x3a, 0x04, 0x40, 0x04, 0x43, 0x18, 0x04, - 0x33, 0x04, 0x0d, 0x91, 0x7f, 0x10, 0x0e, 0x70, 0x7f, 0x01, 0x0b, 0x0b, - 0xa9, 0x20, 0x01, 0x01, 0x20, 0x06, 0x0c, 0x20, 0x05, 0x01, 0x01, 0x58, - 0x17, 0x00, 0x03, 0x14, 0xd0, 0x30, 0xeb, 0x30, 0xd1, 0x30, 0x06, 0xe9, - 0x30, 0xa4, 0x30, 0xbd, 0x05, 0x88, 0x0b, 0xbf, 0xff, 0x56, 0xa8, 0x27, - 0xf7, 0x6c, 0x28, 0x05, 0x61, 0x28, 0x0d, 0x61, 0x00, 0xed, 0x36, 0x00, - 0x73, 0x03, 0x07, 0x69, 0x02, 0xb0, 0x7f, 0x69, 0x06, 0xe0, 0x7f, 0x50, - 0xff, 0x20, 0x2b, 0x00, 0x28, 0xc7, 0xaf, 0x20, 0x21, 0x25, 0x29, 0x0d, - 0x41, 0x7f, 0x06, 0x11, 0xff, 0x00, 0xe6, 0x74, 0x14, 0x5c, 0x15, 0x5e, - 0xb1, 0x83, 0x08, 0x22, 0x7d, 0x27, 0x59, 0x06, 0x38, 0x17, 0x1c, 0xbc, - 0x0c, 0x00, 0xd3, 0x7c, 0xb7, 0x74, 0xc7, 0x8c, 0xc1, 0x20, 0x62, 0x00, - 0x06, 0x18, 0x15, 0x0f, 0x11, 0xff, 0x12, 0x04, 0x30, 0x28, 0x15, 0x4c, - 0x28, 0x04, 0x3f, 0x20, 0x07, 0x40, 0x20, 0x0b, 0x38, 0x04, 0x41, 0xe2, - 0x28, 0x27, 0x10, 0x05, 0x91, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x02, 0x0d, - 0x0d, 0x20, 0x01, 0x02, 0xa0, 0x20, 0x06, 0x06, 0x20, 0x05, 0x02, 0x02, - 0x80, 0xe8, 0x16, 0x88, 0x28, 0x17, 0x04, 0x14, 0xa2, 0x28, 0x11, 0xbb, - 0x30, 0xf3, 0x08, 0x30, 0xfb, 0x30, 0xc7, 0x28, 0x21, 0xfb, 0x30, 0x27, - 0x08, 0xff, 0xfb, 0x30, 0xab, 0x28, 0x2b, 0xed, 0x30, 0xb9, 0x80, 0x20, - 0x13, 0xa4, 0x30, 0xd0, 0x30, 0xcb, 0x30, 0xa7, 0xd5, 0x40, 0x0b, 0x50, - 0x1f, 0xab, 0x20, 0x2b, 0xdd, 0x03, 0xa8, 0x41, 0x41, 0x47, 0x8b, 0x6b, - 0xe9, 0x4f, 0xad, 0x3f, 0x8f, 0x6c, 0x2f, 0xb5, 0x47, 0x2f, 0x9d, 0x3f, - 0xa1, 0xd5, 0x38, 0x29, 0x30, 0x0f, 0x43, 0x48, 0x35, 0x6c, 0x2f, 0xd3, - 0x73, 0x2f, 0xd3, 0x01, 0x49, 0x00, 0x62, 0x00, 0xe1, 0x00, 0xf1, 0x2f, - 0xc1, 0x6e, 0x7a, 0xa0, 0x33, 0x30, 0x23, 0x6d, 0x4f, 0xe5, 0x0a, 0x90, - 0x7f, 0xf8, 0x0d, 0x58, 0xe0, 0x20, 0xeb, 0x04, 0x78, 0x0f, 0x0f, 0x71, - 0x7f, 0x0a, 0x4f, 0xe6, 0x74, 0x85, 0x00, 0x6d, 0xaf, 0x65, 0x06, 0x5c, - 0x9b, 0x51, 0x84, 0x04, 0x76, 0x7e, 0x82, 0xee, 0x68, 0x05, 0xd8, 0x1f, - 0x44, 0xc5, 0x1a, 0x74, 0xc7, 0x3c, 0x06, 0x68, 0x13, 0x53, 0x7f, 0x79, - 0x0e, 0xc3, 0x7f, 0x10, 0x23, 0x04, 0x39, 0x28, 0x09, 0x35, 0x04, 0x3d, - 0x05, 0xa8, 0x0b, 0x10, 0x00, 0x74, 0xff, 0x88, 0x10, 0x06, 0x30, 0xff, - 0x03, 0x01, 0x01, 0x20, 0x01, 0x03, 0x03, 0x04, 0x80, 0x40, 0x05, 0x03, - 0x03, 0x99, 0xdf, 0xc1, 0xcc, 0x00, 0x20, 0x00, 0x05, 0x28, 0x17, 0xf3, - 0x30, 0xc8, 0x30, 0xd5, 0x0b, 0x30, 0xa1, 0x30, 0xac, 0x28, 0x09, 0xbf, - 0x03, 0xa7, 0xf1, 0x01, 0x78, 0x17, 0x15, 0x6e, 0x00, 0x74, 0x2f, 0xa3, - 0x66, 0x2f, 0xb7, 0x67, 0x2f, 0xbb, 0x5b, 0x73, 0x20, 0x0d, 0x61, 0x0f, - 0x00, 0x7f, 0x00, 0x18, 0x23, 0x49, 0x04, 0x68, 0x23, 0x0e, 0xf1, 0x7f, - 0x00, 0x89, 0x5b, 0x58, 0x62, 0xd5, 0x6c, 0xa0, 0x52, 0x0c, 0xaf, 0x65, - 0x54, 0x58, 0x05, 0xd8, 0x11, 0x5f, 0xff, 0x48, 0xc5, 0x00, 0xa0, 0xd1, - 0x0c, 0xd3, 0x00, 0xac, 0xa4, 0xc2, 0x34, 0xc0, 0xd0, 0x06, 0x38, 0x1d, - 0x0e, 0xf3, 0x7f, 0x10, 0x28, 0x11, 0x42, 0x04, 0x01, 0x3e, 0x04, 0x44, - 0x04, 0x30, 0x04, 0x33, 0x20, 0x03, 0x5c, 0x41, 0x20, 0x0d, 0x30, 0x05, - 0xa8, 0x23, 0x10, 0x00, 0x54, 0xff, 0x10, 0x05, 0x96, 0x7f, 0x04, 0x02, - 0x44, 0x02, 0x20, 0x01, 0x04, 0x04, 0x01, 0x40, 0x05, 0x04, 0x04, 0x01, - 0x2f, 0xef, 0xf1, 0xcd, 0x00, 0x00, 0x06, 0x28, 0x17, 0x00, 0xe9, 0x30, - 0xa6, 0x30, 0xab, 0x30, 0xcb, 0x30, 0x71, 0xa2, 0x06, 0x08, 0x13, 0x5f, - 0xaf, 0x3f, 0x95, 0x75, 0x00, 0x63, 0x2f, 0xef, 0x1b, 0x6e, 0x00, 0xed, - 0x05, 0xc8, 0x13, 0x00, 0x10, 0x7f, 0x69, 0x2f, 0xfd, 0x06, 0x50, 0xff, - 0x77, 0x6b, 0x80, 0x7f, 0x3f, 0xb9, 0x00, 0x18, 0x15, 0x58, 0x04, 0x48, - 0x15, 0x07, 0xf1, 0x7f, 0x06, 0x11, 0xff, 0x00, 0x3f, 0x96, 0xb3, 0x52, - 0x61, 0x53, 0x3c, 0x5c, 0x20, 0x9a, 0x4e, 0x06, 0x38, 0x15, 0x00, 0x00, - 0x44, 0xc5, 0x7c, 0x00, 0xb7, 0xb0, 0xc6, 0x74, 0xce, 0xc8, 0xb2, 0x44, - 0x62, 0xc5, 0x06, 0x58, 0x17, 0x0e, 0xd1, 0xff, 0x10, 0x04, 0x40, 0x28, - 0x11, 0x43, 0x20, 0x04, 0x3a, 0x28, 0x17, 0x3d, 0x04, 0x38, 0x04, 0x4f, - 0xe2, 0x05, 0xa8, 0x13, 0x0f, 0x33, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x05, - 0x03, 0x03, 0x20, 0x01, 0x05, 0x20, 0x05, 0x02, 0x40, 0x05, 0x05, 0x05, - 0x75, 0xe4, 0x60, 0x0a, 0xcc, 0x00, 0x00, 0x07, 0x28, 0x17, 0xbf, 0x28, - 0x15, 0xde, 0xf7, 0x06, 0x48, 0x13, 0x5f, 0xaf, 0x3f, 0x9f, 0x38, 0x15, - 0x6d, 0x06, 0x08, 0x13, 0x08, 0x10, 0x7f, 0x00, 0x38, 0x11, 0xe0, 0x30, - 0x01, 0x04, 0x58, 0x13, 0x0f, 0x31, 0x7f, 0x3f, 0x96, 0x54, 0x58, 0x61, - 0x19, 0x53, 0x6c, 0x9a, 0x06, 0x58, 0x15, 0x38, 0x17, 0xc0, 0xd0, 0x28, - 0x15, 0x63, 0xb9, 0x06, 0x38, 0x13, 0x0f, 0x33, 0x7f, 0x10, 0x04, 0x42, - 0x28, 0x17, 0x38, 0x15, 0x71, 0x3c, 0x28, 0x1f, 0x10, 0x06, 0xf4, 0xff, - 0x10, 0x06, 0x16, 0x7f, 0x06, 0x04, 0x04, 0x20, 0x01, 0x10, 0x06, 0x06, - 0x03, 0x40, 0x05, 0x06, 0x06, 0x8b, 0xec, 0x00, 0xfd, 0xcd, 0x00, 0x00, - 0x08, 0x14, 0xd3, 0x30, 0x34, 0xaa, 0x30, 0x30, 0x03, 0x06, 0x78, 0x17, - 0x42, 0x2e, 0xa3, 0x6f, 0x00, 0x77, 0x2d, 0x60, 0x07, 0x06, 0x30, 0x7f, - 0x3f, 0x93, 0x62, 0x06, 0x60, 0x7d, 0xf0, 0xff, 0x00, 0x18, 0x17, 0x70, - 0x56, 0x04, 0xe8, 0x19, 0x07, 0xd0, 0xff, 0x06, 0x1f, 0xaf, 0xd4, 0x6b, - 0x65, 0x59, 0xc7, 0x30, 0x03, 0x06, 0x88, 0x17, 0xbe, 0x24, 0xc6, 0x30, - 0x03, 0x06, 0x78, 0x17, 0x07, 0x53, 0x7f, 0xe0, 0x33, 0xff, 0x3b, 0x09, - 0x06, 0x1c, 0x9b, 0x11, 0x04, 0x38, 0x04, 0x3e, 0x38, 0x04, 0x2d, 0x60, - 0x07, 0x0e, 0x34, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x07, 0x05, 0x05, 0xa0, - 0x20, 0x01, 0x07, 0x40, 0x06, 0x07, 0x07, 0x07, 0x07, 0xcf, 0x00, 0xe5, - 0x0e, 0xcc, 0x00, 0x00, 0x09, 0x14, 0xb3, 0x02, 0x30, 0xad, 0x30, 0xf3, - 0x30, 0xdc, 0x06, 0x88, 0x17, 0x43, 0x8b, 0x2f, 0x17, 0x71, 0x00, 0x75, - 0x2f, 0x1f, 0x6d, 0x27, 0x9d, 0x06, 0x18, 0x19, 0xdc, 0x07, 0xf0, 0x7f, - 0x00, 0x18, 0x19, 0x49, 0x28, 0x1b, 0x04, 0x78, 0x15, 0x0f, 0x11, 0x7f, - 0xd1, 0x79, 0x08, 0xd1, 0x91, 0x5a, 0x53, 0x06, 0x78, 0x15, 0x00, 0x00, - 0x54, 0x06, 0xcf, 0xb4, 0xd0, 0xf4, 0xbc, 0x06, 0x78, 0x15, 0x0f, 0x13, - 0x7f, 0x1a, 0xa3, 0x28, 0x15, 0x3a, 0x28, 0x1b, 0x3c, 0x04, 0x31, 0x06, - 0x48, 0x17, 0x0f, 0xf4, 0xff, 0x8a, 0x10, 0x05, 0xf6, 0x7f, 0x08, 0x06, - 0x06, 0x20, 0x01, 0x08, 0x20, 0x06, 0x07, 0x80, 0x20, 0x05, 0x08, 0x08, - 0xb4, 0xea, 0x45, 0xcd, 0x00, 0x00, 0x00, 0x0a, 0x14, 0x4c, 0x00, 0xfb, - 0x30, 0xd9, 0x08, 0x30, 0xeb, 0x30, 0xca, 0x20, 0x03, 0xc9, 0x30, 0xfb, - 0x02, 0x30, 0xaa, 0x30, 0xd2, 0x30, 0xae, 0x28, 0x29, 0xb9, 0xa8, 0x05, - 0x68, 0x29, 0x4c, 0x2f, 0xaf, 0x62, 0x2f, 0x21, 0x72, 0x00, 0x74, 0x0a, - 0x00, 0x61, 0x00, 0x64, 0x2f, 0xbb, 0x72, 0x2f, 0x35, 0x47, 0xa2, 0x2f, - 0x33, 0x6e, 0x40, 0x15, 0x61, 0x00, 0x6c, 0x2f, 0x45, 0x42, 0xa8, 0x40, - 0x21, 0x6e, 0x20, 0x21, 0x72, 0x40, 0x23, 0x20, 0x00, 0x4f, 0x0a, 0x00, - 0x27, 0x00, 0x48, 0x2f, 0xeb, 0x67, 0x4f, 0x5b, 0x6e, 0x37, 0x00, 0x73, - 0x0f, 0x00, 0x7f, 0x00, 0x18, 0x51, 0x56, 0x28, 0x53, 0x00, 0xf8, 0x51, - 0x0e, 0xf1, 0x7f, 0x00, 0x65, 0x59, 0x0a, 0x4f, 0xd1, 0x91, 0xaf, 0x65, - 0x00, 0x06, 0x5c, 0x9b, 0x51, 0xe3, 0x89, 0x3e, 0x65, 0x20, 0x05, 0x80, - 0x05, 0xd8, 0x23, 0x24, 0xc6, 0x74, 0xc7, 0x34, 0x18, 0xae, 0xa4, 0xc2, - 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x1e, 0x04, 0x19, 0x28, 0x20, 0x25, - 0x28, 0x17, 0x33, 0x20, 0x01, 0x38, 0x04, 0x3d, 0x38, 0x04, 0x41, 0x05, - 0xe8, 0x1b, 0x10, 0x03, 0x94, 0xff, 0x10, 0x02, 0x56, 0x7f, 0x09, 0x07, - 0x07, 0xa8, 0x20, 0x01, 0x09, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x09, 0x09, - 0xb5, 0x22, 0xe7, 0xb1, 0x28, 0x17, 0x0b, 0x14, 0xed, 0x28, 0x01, 0xfb, - 0x0d, 0x30, 0xe9, 0x30, 0xb4, 0x05, 0x88, 0x09, 0xf8, 0x17, 0x6f, 0x46, - 0xd3, 0x5d, 0x4c, 0x28, 0x15, 0x67, 0x40, 0x0b, 0x0e, 0xf0, 0x7f, 0x00, - 0x17, 0xdf, 0x58, 0x01, 0x07, 0xdd, 0x98, 0x10, 0x02, 0x91, 0x7f, 0x56, - 0x6e, 0x05, 0xd8, 0x07, 0xff, 0xff, 0x5c, 0xb8, 0xa4, 0x06, 0xc2, 0x7c, - 0xb7, 0xe0, 0xac, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x1b, 0x2b, 0x04, - 0x3e, 0x28, 0x0b, 0x2d, 0x20, 0x07, 0x30, 0x28, 0x1b, 0x30, 0x0b, 0xc5, - 0x10, 0x06, 0xf4, 0xff, 0x10, 0x05, 0xd6, 0x7f, 0x0a, 0x08, 0x08, 0x20, - 0x01, 0x0a, 0x40, 0x06, 0x00, 0x0a, 0x0a, 0x0a, 0x0a, 0x83, 0xe2, 0x23, - 0xcc, 0x00, 0x00, 0x00, 0x0c, 0x14, 0xde, 0x30, 0xac, 0x30, 0x05, 0xea, - 0x30, 0xe3, 0x30, 0xcd, 0x06, 0x68, 0x17, 0x4d, 0x48, 0x0f, 0xba, 0x3f, - 0x95, 0x6c, 0x2f, 0xaf, 0x3f, 0xa3, 0x3e, 0xf9, 0x79, 0x2f, 0xb3, 0x41, - 0x88, 0x2f, 0xb1, 0x74, 0x00, 0xe1, 0x4f, 0xc9, 0x69, 0x00, 0x63, 0x82, - 0x2f, 0xcd, 0x20, 0x00, 0x43, 0x00, 0x68, 0x2f, 0xdf, 0x6c, 0xaa, 0x4f, - 0xcd, 0x61, 0x03, 0xa0, 0x7f, 0x65, 0x80, 0x7f, 0x20, 0x2f, 0xbb, 0x74, - 0xd1, 0x80, 0x7d, 0x3f, 0x9f, 0x63, 0x40, 0x7f, 0x71, 0x00, 0x75, 0x2f, - 0xd5, 0xbd, 0x90, 0x81, 0x69, 0x4f, 0xd1, 0x3f, 0xd3, 0x04, 0x30, 0xff, - 0x00, 0x18, 0x19, 0x49, 0x4f, 0xfb, 0x5a, 0x20, 0x20, 0x85, 0x6e, 0x2f, - 0xd5, 0xd1, 0x09, 0x69, 0x2f, 0xad, 0x63, 0xef, 0x21, 0x19, 0x30, 0x9f, - 0x90, 0xb7, 0x6b, 0x41, 0x37, 0x00, 0xff, 0xc7, 0xf0, 0xff, 0x30, 0xe3, - 0xdc, 0xd0, 0x47, 0x31, 0x7d, 0x64, 0x60, 0xfb, 0x03, 0xd1, 0x7b, 0x07, - 0x31, 0xff, 0xa6, 0x9e, 0x00, 0xf2, 0x54, 0x26, 0x4f, 0x2d, 0x00, 0x7a, - 0x66, 0x02, 0x29, 0x52, 0x57, 0x53, 0x81, 0x67, 0x05, 0xf8, 0x25, 0xc8, - 0x01, 0xb9, 0x00, 0xac, 0x7c, 0xc5, 0x24, 0xb1, 0x06, 0x78, 0x17, 0xf8, - 0x00, 0x93, 0x7f, 0x51, 0xf3, 0x33, 0x95, 0x04, 0xb3, 0x8b, 0x93, 0xff, - 0x68, 0x00, 0xe3, 0xe2, 0x63, 0xfd, 0x92, 0xc7, 0x04, 0xf3, 0xfd, 0x00, - 0x00, 0x1c, 0x48, 0x0f, 0x30, 0x00, 0x04, 0x3b, 0x04, 0x4c, 0x04, 0x4f, - 0x04, 0x3d, 0x22, 0x04, 0x35, 0x28, 0x25, 0x20, 0x00, 0x38, 0x20, 0x03, - 0x27, 0x22, 0x04, 0x38, 0x20, 0x15, 0x38, 0x04, 0x39, 0x28, 0x37, 0x3a, - 0xaa, 0x28, 0x35, 0x4f, 0x20, 0x17, 0x10, 0x20, 0x21, 0x42, 0x28, 0x41, - 0x40, 0xbc, 0x20, 0x11, 0x42, 0x20, 0x1f, 0x30, 0x17, 0x0b, 0x34, 0xff, - 0x10, 0x0e, 0x90, 0x7f, 0x0b, 0x09, 0x50, 0x09, 0x20, 0x01, 0x0b, 0x40, - 0x06, 0x0b, 0x0b, 0x0b, 0x0b, 0x01, 0x35, 0xda, 0x93, 0xcd, 0x00, 0x00, - 0x0d, 0x28, 0x17, 0x1b, 0xa6, 0x30, 0xec, 0x06, 0x48, 0x11, 0x98, 0x17, - 0x75, 0x47, 0xe9, 0x0e, 0xf0, 0x7f, 0xb0, 0x00, 0x18, 0x0d, 0x56, 0x68, - 0x0d, 0x10, 0x04, 0xb1, 0x7f, 0x6c, 0x9a, 0x4c, 0x4e, 0x30, 0xb1, 0x83, - 0x05, 0xf8, 0x0d, 0xb8, 0x17, 0xb8, 0xc6, 0x08, 0xb8, 0xeb, 0x06, 0x58, - 0x13, 0x0f, 0x33, 0x7f, 0x38, 0x17, 0x43, 0x28, 0x15, 0x35, 0x02, 0xe7, - 0xdf, 0x10, 0x03, 0x14, 0xff, 0x8a, 0x10, 0x06, 0x56, 0x7f, 0x0c, 0x0a, - 0x0a, 0x20, 0x01, 0x0c, 0x40, 0x06, 0x0c, 0x02, 0x0c, 0x0c, 0x0c, 0xce, - 0xe6, 0x0a, 0x28, 0x17, 0x0e, 0x00, 0x14, 0xbf, 0x30, 0xe9, 0x30, 0xd1, - 0x30, 0xab, 0xa2, 0x06, 0x88, 0x19, 0x54, 0x4f, 0x93, 0x61, 0x00, 0x70, - 0x2f, 0xff, 0x63, 0xf8, 0x2e, 0x1d, 0x0e, 0xf0, 0x7f, 0x00, 0x18, 0x1d, - 0x04, 0xd8, 0x19, 0x0f, 0x01, 0x7f, 0x58, 0xc9, 0x62, 0x08, 0x15, 0x5e, - 0x61, 0x53, 0x06, 0x78, 0x19, 0xc0, 0xd0, 0x7c, 0x06, 0xb7, 0x0c, 0xd3, - 0x74, 0xce, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x22, 0x8f, 0x4f, 0xfd, - 0x30, 0x04, 0x3f, 0x2f, 0xf9, 0x03, 0x1f, 0xfd, 0x10, 0x03, 0x14, 0xff, - 0x10, 0x05, 0xf6, 0x7f, 0x4a, 0x0d, 0x38, 0x0c, 0x0c, 0x0d, 0x20, 0x06, - 0x0d, 0x20, 0x05, 0x0d, 0x04, 0x0d, 0xa0, 0xf1, 0x1b, 0xce, 0x00, 0x3f, - 0xff, 0x01, 0x0b, 0x54, 0x0b, 0x20, 0x01, 0x01, 0x20, 0x06, 0x0c, 0x20, - 0x05, 0x01, 0x01, 0x4a, 0x02, 0x30, 0x2c, 0x0d, 0x02, 0x20, 0x06, 0x06, - 0x20, 0x05, 0x02, 0x21, 0x02, 0x03, 0x30, 0x14, 0x01, 0x03, 0x03, 0x04, - 0x40, 0x05, 0xc2, 0x20, 0x07, 0x30, 0x14, 0x02, 0x04, 0x04, 0x01, 0x40, - 0x05, 0x04, 0x21, 0x04, 0x05, 0x30, 0x14, 0x03, 0x05, 0x05, 0x02, 0x40, - 0x05, 0x10, 0x05, 0x05, 0x06, 0x30, 0x14, 0x04, 0x06, 0x06, 0x03, 0x89, - 0x40, 0x05, 0x06, 0x06, 0x07, 0x30, 0x14, 0x05, 0x07, 0x40, 0x06, 0x04, - 0x07, 0x07, 0x07, 0x07, 0x08, 0x30, 0x14, 0x06, 0x08, 0xa2, 0x20, 0x06, - 0x07, 0x20, 0x05, 0x08, 0x08, 0x09, 0x30, 0x14, 0x07, 0x51, 0x09, 0x20, - 0x06, 0x0b, 0x20, 0x05, 0x09, 0x09, 0x0a, 0x30, 0x14, 0x34, 0x08, 0x0a, - 0x40, 0x06, 0x38, 0xda, 0x0b, 0x30, 0x14, 0x09, 0x0b, 0xf8, 0x40, 0x06, - 0x30, 0xaa, 0xf8, 0xef, 0xf0, 0xe7, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x60, 0x15, 0x01, - 0x11, 0x21, 0x00, 0x00, 0x30, 0x01, 0x15, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x05, 0x03, 0x40, - 0xcb, 0x00, 0x00, 0x00, 0x02, 0x15, 0xc7, 0x30, 0xa3, 0x30, 0xb9, 0x08, - 0x30, 0xc8, 0x30, 0xea, 0x20, 0x03, 0xfb, 0x30, 0xad, 0x00, 0x30, 0xe3, - 0x30, 0xd4, 0x30, 0xbf, 0x30, 0xeb, 0x40, 0x30, 0x05, 0x78, 0x2d, 0x44, - 0x00, 0x69, 0x00, 0x73, 0x00, 0x10, 0x74, 0x00, 0x72, 0x20, 0x07, 0x74, - 0x00, 0x6f, 0x00, 0x01, 0x20, 0x00, 0x43, 0x00, 0x61, 0x00, 0x70, 0x40, - 0x0d, 0x16, 0x61, 0x00, 0x6c, 0x05, 0xc0, 0x7f, 0x63, 0x20, 0x87, 0xf0, - 0x7f, 0x20, 0x0a, 0x00, 0x64, 0x00, 0x65, 0x20, 0x95, 0x53, 0x20, 0x95, - 0x6e, 0x8d, 0x40, 0x93, 0x20, 0x00, 0x46, 0x40, 0x11, 0x50, 0x17, 0x42, - 0x20, 0xb3, 0x46, 0x67, 0x20, 0xb7, 0x74, 0x00, 0xe1, 0x02, 0x49, 0x60, - 0xb0, 0x3f, 0x20, 0xad, 0x21, 0x0d, 0x2e, 0x20, 0xff, 0x2e, 0x05, 0xa9, - 0xaa, 0x91, 0x7f, 0x65, 0x21, 0x85, 0xa0, 0x00, 0x31, 0x81, 0x65, 0x0c, - 0xc1, 0xff, 0xe2, 0x6c, 0xe5, 0x54, 0x27, 0x01, 0x59, 0x96, 0x99, 0xfd, - 0x90, 0x3a, 0x53, 0x06, 0x3b, 0x21, 0x00, 0x5c, 0xcf, 0x6c, 0xb8, 0x44, - 0xbe, 0x44, 0xc5, 0x00, 0x20, 0x00, 0x18, 0xc2, 0xc4, 0xb3, 0xfc, 0xc8, - 0xa3, 0x05, 0xfb, 0xa5, 0x48, 0x23, 0x73, 0x6f, 0x00, 0x66, 0x22, 0xe5, - 0x33, 0x85, 0x51, 0x65, 0x42, 0xed, 0x6c, 0x23, 0x93, 0x6a, 0x00, 0x6b, - 0x42, 0x8f, 0xc0, 0xd3, 0x1d, 0x0c, 0x13, 0xff, 0x21, 0x04, 0x42, 0x04, - 0x3e, 0x04, 0x00, 0x3b, 0x04, 0x38, 0x04, 0x47, 0x04, 0x3d, 0x04, 0x00, - 0x4b, 0x04, 0x39, 0x04, 0x20, 0x00, 0x3e, 0x04, 0x00, 0x3a, 0x04, 0x40, - 0x04, 0x43, 0x04, 0x33, 0x04, 0xc0, 0x0d, 0xd4, 0xff, 0x10, 0x0e, 0x30, - 0x7f, 0x01, 0x10, 0x0f, 0x05, 0x0f, 0x10, 0x04, 0x01, 0x01, 0x12, 0x10, - 0x1d, 0x20, 0x05, 0x01, 0x01, 0x81, 0x58, 0x17, 0x03, 0x15, 0xaf, 0x30, - 0xf3, 0x30, 0x38, 0x1b, 0x10, 0xca, 0x30, 0xde, 0x28, 0x0d, 0xab, 0x30, - 0x0c, 0x77, 0x8a, 0x05, 0xdf, 0xbf, 0x43, 0x00, 0x75, 0x27, 0x6f, 0x64, - 0x28, 0x1d, 0x6e, 0xaa, 0x28, 0x0f, 0x6d, 0x28, 0x13, 0x72, 0x27, 0x9f, - 0x61, 0x10, 0x15, 0x80, 0x7f, 0x06, 0x00, 0x66, 0xea, 0x8f, 0xb3, 0x7e, - 0x6c, 0x9a, 0x61, 0x30, 0x53, 0x01, 0x05, 0xe2, 0xf9, 0x5f, 0xff, 0xe4, - 0xcf, 0x14, 0xb5, 0x00, 0x98, 0xb0, 0xc8, 0xb9, 0x74, 0xb9, 0x74, 0xce, - 0x34, 0x20, 0x00, 0x06, 0x18, 0x17, 0x0e, 0xf3, 0x7f, 0x1a, 0x27, 0xff, - 0x3d, 0x04, 0x41, 0x34, 0x28, 0x17, 0x3d, 0x04, 0x30, 0x04, 0x3c, 0x20, - 0x03, 0x58, 0x40, 0x28, 0x15, 0x30, 0x05, 0x28, 0x11, 0x10, 0x17, 0x54, - 0xff, 0x02, 0x0f, 0x0e, 0x82, 0x20, 0x01, 0x02, 0x02, 0x0e, 0x0f, 0x13, - 0x20, 0x05, 0x02, 0x08, 0x02, 0x45, 0x03, 0x52, 0x28, 0x17, 0x04, 0x15, - 0xa2, 0xad, 0x28, 0x0f, 0xbd, 0x28, 0x15, 0xb9, 0x06, 0x08, 0x11, 0x5f, - 0xff, 0x41, 0x48, 0x0b, 0x6f, 0x7a, 0x2f, 0x75, 0x38, 0x17, 0x73, 0x06, - 0xc0, 0x7f, 0x04, 0xdf, 0x19, 0x09, 0x10, 0xff, 0x0e, 0x30, 0x7f, 0x03, - 0x9a, 0x4e, 0x6c, 0x9a, 0x59, 0x5b, 0x06, 0x58, 0x13, 0x4f, 0x2f, 0x00, - 0xc5, 0xc8, 0xb9, 0x8c, 0xc1, 0x98, 0xb0, 0xa4, 0x68, 0xc2, 0x06, 0x38, - 0x15, 0x0f, 0x12, 0x7f, 0x10, 0x48, 0x0b, 0x37, 0x04, 0x3e, 0xb8, 0x48, - 0x17, 0x41, 0x05, 0x88, 0x0f, 0x10, 0x07, 0x73, 0xff, 0x0e, 0xf5, 0x7f, - 0x03, 0x01, 0x01, 0xa4, 0x20, 0x01, 0x03, 0x40, 0x06, 0x03, 0x03, 0x20, - 0x07, 0xfd, 0x44, 0x08, 0xce, 0x00, 0x00, 0x05, 0x28, 0x17, 0xf3, 0x30, - 0xc6, 0x00, 0x30, 0xa3, 0x30, 0xaa, 0x30, 0xad, 0x30, 0xa2, 0xa8, 0x06, - 0x28, 0x1b, 0x41, 0x2f, 0xad, 0x74, 0x2f, 0xad, 0x6f, 0x00, 0x71, 0xb0, - 0x2f, 0xb9, 0x69, 0x05, 0xaf, 0xa9, 0x10, 0x0f, 0x50, 0x7f, 0x89, 0x5b, - 0xd0, 0x63, 0x02, 0x65, 0x59, 0xfa, 0x57, 0x9a, 0x4e, 0x06, 0x58, 0x1b, - 0x48, 0x00, 0xc5, 0xf0, 0xd2, 0x24, 0xc6, 0xa4, 0xd0, 0x44, 0x68, 0xc5, - 0x06, 0x78, 0x17, 0x0e, 0xd3, 0x7f, 0x10, 0x28, 0x0f, 0x42, 0x04, 0x38, - 0xac, 0x28, 0x17, 0x3a, 0x20, 0x05, 0x4f, 0x06, 0x28, 0x17, 0x10, 0x16, - 0xd4, 0xff, 0x04, 0x02, 0x50, 0x02, 0x20, 0x01, 0x04, 0x40, 0x06, 0x04, - 0x04, 0x04, 0x04, 0x01, 0x79, 0x04, 0x4a, 0xca, 0x00, 0x00, 0x06, 0x28, - 0x17, 0x06, 0xe9, 0x30, 0xa6, 0x30, 0xab, 0x06, 0x28, 0x11, 0x7f, 0xaf, - 0x72, 0x8c, 0x2f, 0xaf, 0x75, 0x00, 0x63, 0x06, 0x08, 0x11, 0x10, 0x0f, - 0x50, 0x7f, 0x3f, 0x96, 0x0c, 0xb3, 0x52, 0x61, 0x53, 0x06, 0x58, 0x13, - 0x3f, 0xff, 0x44, 0xc5, 0x03, 0x7c, 0xb7, 0xb0, 0xc6, 0x74, 0xce, 0x06, - 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x01, 0x10, 0x04, 0x40, 0x04, 0x30, 0x04, - 0x43, 0x28, 0x15, 0x62, 0x30, 0x06, 0x08, 0x13, 0x10, 0x17, 0x34, 0xff, - 0x05, 0x03, 0x03, 0x20, 0x01, 0x05, 0x80, 0x40, 0x06, 0x05, 0x05, 0x05, - 0x05, 0x0a, 0x05, 0xaf, 0x0a, 0xcd, 0x00, 0x00, 0x07, 0x28, 0x17, 0xc8, - 0x28, 0x19, 0xf3, 0x02, 0x30, 0xc6, 0x30, 0xa3, 0x30, 0xb3, 0x06, 0x28, - 0x1d, 0x41, 0x8b, 0x2f, 0xad, 0x6c, 0x00, 0xe1, 0x6f, 0xb5, 0x63, 0x2f, - 0xb7, 0x06, 0x30, 0x7f, 0x6c, 0x61, 0x6f, 0xb5, 0x3f, 0xb3, 0x65, 0x0e, - 0x20, 0xff, 0x0e, 0x90, 0x7f, 0x27, 0x59, 0x08, 0x7f, 0x89, 0x0b, 0x6d, - 0x06, 0xb8, 0x17, 0xc0, 0xd2, 0x80, 0x06, 0xb7, 0xf0, 0xd2, 0x54, 0xcf, - 0x06, 0x58, 0x19, 0x0e, 0xf2, 0x7f, 0x10, 0x0a, 0x04, 0x42, 0x04, 0x3b, - 0x28, 0x19, 0x3d, 0x20, 0x07, 0x38, 0xb8, 0x28, 0x1d, 0x3e, 0x05, 0xe8, - 0x1d, 0x10, 0x06, 0xf3, 0xff, 0x0e, 0xf5, 0x7f, 0x06, 0x05, 0x04, 0x01, - 0x04, 0x04, 0x05, 0x06, 0x06, 0x04, 0x05, 0x30, 0x05, 0x00, 0x06, 0x06, - 0xcb, 0x07, 0xd0, 0xca, 0x00, 0x00, 0x00, 0x08, 0x15, 0xdc, 0x30, 0xea, - 0x30, 0xfc, 0x30, 0x1a, 0xd0, 0x30, 0xeb, 0x06, 0x28, 0x13, 0x3f, 0xff, - 0x42, 0x28, 0x09, 0x6c, 0x0a, 0x00, 0xed, 0x00, 0x76, 0x2f, 0xb5, 0x72, - 0x10, 0x16, 0x20, 0x7f, 0xbb, 0x01, 0x73, 0x29, 0x52, 0xe6, 0x74, 0x14, - 0x5c, 0x06, 0x78, 0x19, 0x00, 0xfc, 0xbc, 0xac, 0xb9, 0x14, 0xbc, 0x74, - 0xb9, 0xd5, 0x06, 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x11, 0x28, 0x09, 0x3b, - 0x28, 0x11, 0x32, 0x28, 0x1b, 0x62, 0x40, 0x05, 0xe8, 0x13, 0x10, 0x17, - 0x34, 0xff, 0x07, 0x06, 0x05, 0x20, 0x01, 0x07, 0x41, 0x07, 0x50, 0x05, - 0x07, 0x07, 0x65, 0x07, 0x4e, 0x28, 0x17, 0x46, 0x09, 0x28, 0x17, 0xe4, - 0x30, 0xab, 0x06, 0x68, 0x13, 0x78, 0x17, 0x79, 0xb0, 0x2f, 0xaf, 0x63, - 0x2f, 0x33, 0x10, 0x16, 0x30, 0x7f, 0x5a, 0x53, 0x9a, 0x4e, 0x20, 0x61, - 0x53, 0x06, 0x78, 0x15, 0x00, 0x00, 0xf4, 0xbc, 0x7c, 0x1c, 0xc5, 0x74, - 0xce, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x38, 0x17, 0x4f, 0x04, 0x62, - 0x3a, 0x28, 0x15, 0x10, 0x1e, 0x54, 0xff, 0x08, 0x07, 0x06, 0x20, 0x01, - 0x08, 0x40, 0x08, 0x50, 0x05, 0x08, 0x08, 0xef, 0x03, 0xd4, 0xcb, 0x00, - 0x00, 0x00, 0x0a, 0x15, 0xab, 0x30, 0xeb, 0x30, 0x14, 0xc0, 0x30, 0xb9, - 0x06, 0x88, 0x19, 0x43, 0x2f, 0xa7, 0x6c, 0x00, 0x50, 0x64, 0x2f, 0xad, - 0x73, 0x10, 0x16, 0x40, 0x7f, 0x61, 0x53, 0x14, 0x5c, 0x08, 0xbe, 0x8f, - 0xaf, 0x65, 0x06, 0x78, 0x19, 0x7c, 0xce, 0xe4, 0x1a, 0xb2, 0xa4, 0xc2, - 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x1a, 0x28, 0x11, 0x3b, 0x2c, 0x04, - 0x34, 0x28, 0x17, 0x41, 0x06, 0x48, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x09, - 0x08, 0x41, 0x07, 0x20, 0x01, 0x09, 0x09, 0x07, 0x08, 0x0e, 0x20, 0x05, - 0x00, 0x09, 0x09, 0x9a, 0x03, 0x4c, 0xca, 0x00, 0x00, 0x46, 0x0b, 0x28, - 0x17, 0xb1, 0x30, 0xbf, 0x06, 0x88, 0x15, 0x58, 0x17, 0x71, 0x03, 0x00, - 0x75, 0x00, 0x65, 0x00, 0x74, 0x06, 0x4f, 0xb1, 0x10, 0x0e, 0xf0, 0x7f, - 0x02, 0x61, 0x53, 0x4b, 0x51, 0x54, 0x58, 0x06, 0x78, 0x15, 0x00, 0x01, - 0x00, 0x74, 0xce, 0x00, 0xcf, 0xc0, 0xd0, 0x06, 0xd8, 0x17, 0xc0, 0x0e, - 0xb3, 0x7f, 0x38, 0x17, 0x3a, 0x04, 0x4c, 0x04, 0x35, 0x04, 0x62, 0x42, - 0x28, 0x21, 0x10, 0x1e, 0x14, 0xff, 0x0a, 0x09, 0x08, 0x20, 0x01, 0x0a, - 0x08, 0x0a, 0x08, 0x09, 0x0d, 0x20, 0x05, 0x0a, 0x0a, 0x26, 0x28, 0x01, - 0x3b, 0x28, 0x17, 0x0c, 0x28, 0x17, 0xa6, 0x30, 0xab, 0x8c, 0x06, 0xe8, - 0x17, 0x75, 0x00, 0x63, 0x2f, 0xb5, 0x10, 0x16, 0x50, 0x7f, 0x03, 0x80, - 0x30, 0x61, 0x53, 0x06, 0x98, 0x15, 0x38, 0x17, 0xb0, 0xc6, 0x74, 0xce, - 0xee, 0x06, 0xd8, 0x17, 0x0e, 0xb3, 0x7f, 0x38, 0x17, 0x43, 0x28, 0x19, - 0x06, 0x38, 0x13, 0x10, 0x17, 0x34, 0xff, 0x0b, 0x34, 0x0b, 0x0a, 0x20, - 0x01, 0x30, 0x05, 0x10, 0x20, 0x05, 0x0b, 0x0b, 0x00, 0xc4, 0x01, 0x8b, - 0xc9, 0x00, 0x00, 0x0d, 0x15, 0x04, 0xbb, 0x30, 0xb5, 0x30, 0xeb, 0x06, - 0xc8, 0x17, 0x65, 0x00, 0x50, 0x73, 0x2f, 0xb3, 0x72, 0x10, 0x16, 0x60, - 0x7f, 0x5e, 0x58, 0x28, 0x84, 0x20, 0x14, 0x5c, 0x06, 0x98, 0x19, 0x38, - 0xc1, 0xac, 0xc0, 0x74, 0x60, 0xb9, 0x06, 0xb8, 0x17, 0x0e, 0xd3, 0x7f, - 0x21, 0x04, 0x35, 0x04, 0x41, 0xb1, 0x28, 0x1b, 0x40, 0x06, 0x88, 0x17, - 0x10, 0x16, 0xd4, 0xff, 0x0c, 0x0c, 0x0b, 0x20, 0x01, 0xa0, 0x30, 0x05, - 0x1c, 0x20, 0x05, 0x0c, 0x0c, 0x73, 0x07, 0xea, 0x00, 0xcb, 0x00, 0x00, - 0x0e, 0x15, 0xc1, 0x30, 0xe7, 0x22, 0x30, 0xb3, 0x06, 0xc8, 0x17, 0x68, - 0x00, 0x6f, 0x2f, 0xaf, 0xf3, 0x84, 0x10, 0x16, 0x60, 0x7f, 0x54, 0x4e, - 0xd1, 0x79, 0x06, 0x98, 0x15, 0x00, 0x00, 0x0c, 0x08, 0xcd, 0x54, 0xcf, - 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x27, 0x04, 0x18, 0x3e, 0x04, 0x3a, - 0x20, 0x03, 0x10, 0x1e, 0x74, 0xff, 0x0d, 0x0d, 0x0c, 0xd8, 0x20, 0x01, - 0x30, 0x05, 0x21, 0x20, 0x05, 0x20, 0x0d, 0x04, 0x7d, 0xc9, 0x00, 0x00, - 0x00, 0x0f, 0x15, 0xb3, 0x30, 0xeb, 0x30, 0x14, 0xc9, 0x30, 0xd0, 0x06, - 0x88, 0x19, 0x43, 0x28, 0x11, 0x72, 0x00, 0x58, 0x64, 0x28, 0x1b, 0x62, - 0x2f, 0xb5, 0x10, 0x16, 0x10, 0x7f, 0xd1, 0x79, 0x14, 0x04, 0x5c, 0x1a, - 0x59, 0xe6, 0x74, 0x06, 0x78, 0x1b, 0x54, 0xcf, 0x03, 0x74, 0xb9, 0xc4, - 0xb3, 0x14, 0xbc, 0x06, 0x78, 0x1b, 0x07, 0x13, 0x7f, 0x54, 0x6f, 0x63, - 0xff, 0x76, 0x06, 0x43, 0xff, 0x1a, 0x28, 0x17, 0x40, 0x04, 0x46, 0x34, - 0x28, 0x1d, 0x31, 0x04, 0x30, 0x06, 0x28, 0x1d, 0x10, 0x16, 0xf4, 0xff, - 0x0e, 0x34, 0x0e, 0x0d, 0x20, 0x01, 0x30, 0x05, 0x12, 0x20, 0x05, 0x0e, - 0x0e, 0x00, 0x3a, 0x06, 0x09, 0xca, 0x00, 0x00, 0x10, 0x15, 0x05, 0xb0, - 0x30, 0xa2, 0x30, 0xd3, 0x20, 0x03, 0xec, 0x06, 0x68, 0x19, 0x11, 0x47, - 0x00, 0x75, 0x28, 0x0f, 0x76, 0x00, 0x69, 0x28, 0x15, 0x10, 0x72, 0x00, - 0x65, 0x10, 0x16, 0x00, 0x7f, 0xdc, 0x74, 0xf4, 0x7e, 0x08, 0x9a, 0x4e, - 0xf7, 0x96, 0x06, 0x78, 0x17, 0xfc, 0xac, 0x44, 0x06, 0xbe, 0x44, 0xc5, - 0x08, 0xb8, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x13, 0x22, 0x04, 0x43, - 0x28, 0x0f, 0x32, 0x04, 0x38, 0x28, 0x15, 0x40, 0x30, 0x04, 0x35, 0x06, - 0x08, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x0f, 0x12, 0x11, 0x11, 0x01, 0x11, - 0x12, 0x0f, 0x0f, 0x11, 0x12, 0x0a, 0x20, 0x05, 0x00, 0x0f, 0x0f, 0xd3, - 0x01, 0x58, 0xcc, 0x00, 0x00, 0x46, 0x11, 0x48, 0x17, 0xa4, 0x30, 0xcb, - 0x28, 0x1d, 0x06, 0xb8, 0x17, 0x69, 0x0c, 0x00, 0x6e, 0x00, 0xed, 0x06, - 0x4f, 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0xdc, 0x74, 0x02, 0x0a, 0x4f, 0x3c, - 0x5c, 0x9a, 0x4e, 0x06, 0x98, 0x17, 0x74, 0x07, 0xc7, 0xc8, 0xb2, 0x44, - 0xc5, 0x06, 0xd8, 0x17, 0x0e, 0x93, 0x7f, 0x58, 0x17, 0x01, 0x38, 0x04, - 0x3d, 0x04, 0x4c, 0x04, 0x4f, 0x06, 0x08, 0x15, 0x84, 0x10, 0x17, 0x14, - 0xff, 0x10, 0x11, 0x10, 0x10, 0x30, 0x03, 0x0f, 0x11, 0x40, 0x0b, 0x30, - 0x09, 0x10, 0xbf, 0x02, 0xb3, 0xcf, 0x00, 0x00, 0x00, 0x12, 0x15, 0xa6, - 0x30, 0xa3, 0x30, 0xe9, 0xd1, 0x06, 0x68, 0x13, 0x3f, 0xff, 0x48, 0x2f, - 0xaf, 0x69, 0x00, 0x6c, 0x06, 0x48, 0x13, 0x81, 0x10, 0x0f, 0x30, 0x7f, - 0x4c, 0x4e, 0x0a, 0x4f, 0xc9, 0x62, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, - 0xb0, 0xc6, 0x7c, 0xc7, 0x7c, 0xb7, 0xd6, 0x06, 0x78, 0x15, 0x0f, 0x13, - 0x7f, 0x23, 0x28, 0x13, 0x3b, 0x28, 0x19, 0x10, 0x1e, 0x74, 0xff, 0x11, - 0x00, 0x13, 0x12, 0x12, 0x12, 0x13, 0x11, 0x11, 0x13, 0x20, 0x13, 0x20, - 0x20, 0x05, 0x11, 0x11, 0x15, 0x02, 0x6f, 0x40, 0xca, 0x2b, 0x2d, 0x15, - 0xb0, 0x30, 0xa2, 0x30, 0xd2, 0x2a, 0x30, 0xfc, 0x06, 0x88, 0x1b, 0x4c, - 0x2f, 0xad, 0x20, 0x6f, 0xb5, 0x6a, 0xb0, 0x2f, 0xb7, 0x72, 0x05, 0xef, - 0xb5, 0x10, 0x0e, 0xf0, 0x7f, 0xdc, 0x74, 0x0c, 0x5e, 0x81, 0x06, 0xb8, - 0x17, 0x7c, 0xb7, 0xfc, 0xac, 0x88, 0xd7, 0x06, 0x98, 0x19, 0xc5, 0x06, - 0x93, 0x79, 0x07, 0x53, 0xff, 0x13, 0x04, 0x43, 0x28, 0x15, 0x45, 0x28, - 0x1d, 0x60, 0x40, 0x06, 0x48, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x12, 0x14, - 0x14, 0x13, 0x13, 0x02, 0x14, 0x12, 0x12, 0x10, 0x14, 0x0c, 0x20, 0x05, - 0x12, 0x00, 0x12, 0x35, 0x08, 0x28, 0xcc, 0x00, 0x00, 0x14, 0x00, 0x15, - 0xde, 0x30, 0xb0, 0x30, 0xc0, 0x30, 0xec, 0xa8, 0x28, 0x19, 0xca, 0x06, - 0x48, 0x19, 0x4d, 0x2f, 0xa9, 0x67, 0x00, 0x64, 0x83, 0x2f, 0xaf, 0x6c, - 0x00, 0x65, 0x00, 0x6e, 0x06, 0x0f, 0xb7, 0x10, 0x0e, 0xf0, 0x7f, 0x00, - 0x6c, 0x9a, 0x3c, 0x68, 0xbe, 0x8f, 0xf7, 0x96, 0x20, 0xa3, 0x90, 0x06, - 0x58, 0x1b, 0xc8, 0xb9, 0xf8, 0xad, 0xec, 0x06, 0xb2, 0x08, 0xb8, 0x98, - 0xb0, 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, 0x1c, 0x88, 0x28, 0x15, 0x33, - 0x04, 0x34, 0x28, 0x1b, 0x3b, 0x04, 0x35, 0x30, 0x04, 0x3d, 0x06, 0x08, - 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x13, 0x15, 0x15, 0x14, 0x28, 0x14, 0x15, - 0x28, 0x1a, 0x15, 0x30, 0x05, 0x13, 0x13, 0xff, 0x00, 0x07, 0x3c, 0xcb, - 0x00, 0x00, 0x15, 0x15, 0xe1, 0x31, 0x30, 0xbf, 0x06, 0x48, 0x0f, 0x98, - 0x17, 0x65, 0x00, 0x74, 0x06, 0x4c, 0xa9, 0x86, 0x10, 0x0f, 0x50, 0x7f, - 0x85, 0x68, 0x54, 0x58, 0x06, 0x58, 0x11, 0x5f, 0xff, 0x54, 0x1a, 0xba, - 0xc0, 0xd0, 0x06, 0x58, 0x11, 0x0f, 0x53, 0x7f, 0x1c, 0x28, 0x0d, 0x42, - 0xc0, 0x06, 0x08, 0x0d, 0x10, 0x17, 0x94, 0xff, 0x14, 0x16, 0x16, 0x15, - 0x15, 0x16, 0xa0, 0x28, 0x1a, 0x16, 0x30, 0x05, 0x14, 0x14, 0xf4, 0x02, - 0xa4, 0x80, 0x28, 0x17, 0x16, 0x15, 0xca, 0x30, 0xea, 0x30, 0xfc, 0x0a, - 0x30, 0xcb, 0x30, 0xe7, 0x06, 0x68, 0x1d, 0x4e, 0x2f, 0xaf, 0x72, 0x03, - 0x00, 0x69, 0x00, 0xf1, 0x00, 0x6f, 0x06, 0x48, 0x9c, 0x10, 0x0e, 0xf0, - 0x7f, 0x00, 0xb3, 0x7e, 0xcc, 0x91, 0x3c, 0x5c, 0x65, 0x59, 0x81, 0x06, - 0x78, 0x1b, 0x98, 0xb0, 0xac, 0xb9, 0xe8, 0xb1, 0x06, 0x98, 0x19, 0xa0, - 0x0e, 0xf3, 0x7f, 0x1d, 0x28, 0x13, 0x40, 0x04, 0x38, 0x04, 0x3d, 0x0c, - 0x04, 0x4c, 0x04, 0x3e, 0x06, 0x28, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x15, - 0x17, 0x0a, 0x17, 0x16, 0x16, 0x17, 0x28, 0x1a, 0x17, 0x30, 0x05, 0x15, - 0x00, 0x15, 0xdc, 0x00, 0x0c, 0xc9, 0x00, 0x00, 0x17, 0x00, 0x15, 0xce, - 0x30, 0xeb, 0x30, 0xc6, 0x30, 0xfb, 0x20, 0x30, 0xc7, 0x20, 0x03, 0xb5, - 0x30, 0xf3, 0x30, 0xbf, 0xb5, 0x20, 0x03, 0xc7, 0x20, 0x13, 0x05, 0x78, - 0x25, 0x4e, 0x28, 0x0f, 0x72, 0x2f, 0xb1, 0x05, 0x65, 0x00, 0x20, 0x00, - 0x64, 0x40, 0x05, 0x53, 0x2f, 0xbd, 0x54, 0x6e, 0x4f, 0xc3, 0x6e, 0x40, - 0x11, 0x72, 0x10, 0x14, 0xc0, 0x7f, 0x17, 0x53, 0x02, 0x51, 0x68, 0x66, - 0x57, 0xb7, 0x5f, 0x06, 0x78, 0x17, 0x78, 0x00, 0xb1, 0x74, 0xb9, 0x4c, - 0xd1, 0x70, 0xb3, 0xb0, 0x01, 0xc0, 0xc4, 0xd0, 0x70, 0xb3, 0x74, 0xb9, - 0x05, 0xf8, 0x21, 0xa0, 0x0e, 0xf3, 0x7f, 0x1d, 0x28, 0x0d, 0x40, 0x04, - 0x42, 0x04, 0x35, 0x0a, 0x04, 0x2d, 0x00, 0x34, 0x40, 0x05, 0x21, 0x28, - 0x29, 0x3d, 0xec, 0x20, 0x11, 0x30, 0x05, 0x30, 0x11, 0x40, 0x04, 0xc8, - 0x2d, 0x10, 0x16, 0xf4, 0xff, 0x16, 0x18, 0x0a, 0x18, 0x17, 0x17, 0x18, - 0x28, 0x1a, 0x18, 0x30, 0x05, 0x16, 0x00, 0x16, 0x9b, 0x05, 0x71, 0xcc, - 0x00, 0x00, 0x18, 0x00, 0x15, 0xd7, 0x30, 0xc8, 0x30, 0xa5, 0x30, 0xde, - 0x0c, 0x30, 0xa4, 0x30, 0xaa, 0x05, 0x88, 0x0b, 0xbf, 0xff, 0x50, 0x00, - 0x45, 0x75, 0x28, 0x15, 0x75, 0x00, 0x6d, 0x2f, 0xb7, 0x79, 0x06, 0x2f, - 0xb3, 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x6e, 0x66, 0xfe, 0x56, 0x6c, 0x9a, - 0xa6, 0x40, 0x7e, 0x06, 0x88, 0x17, 0xd4, 0x2c, 0xd2, 0xc8, 0xb9, 0x94, - 0x62, 0xc6, 0x05, 0xf8, 0x0f, 0x0f, 0x73, 0x7f, 0x1f, 0x04, 0x43, 0x28, - 0x15, 0x43, 0x2c, 0x04, 0x3c, 0x28, 0x0d, 0x39, 0x28, 0x23, 0x10, 0x1d, - 0xf4, 0xff, 0x17, 0x19, 0x0a, 0x19, 0x18, 0x18, 0x19, 0x28, 0x1a, 0x19, - 0x30, 0x05, 0x17, 0x00, 0x17, 0xd1, 0x00, 0x7f, 0xc9, 0x00, 0x00, 0x19, - 0x00, 0x15, 0xad, 0x30, 0xf3, 0x30, 0xc7, 0x30, 0xa3, 0x8a, 0x06, 0x68, - 0x15, 0x00, 0x00, 0x51, 0x28, 0x17, 0x69, 0x4f, 0x99, 0xed, 0xc0, 0x06, - 0x28, 0x15, 0x10, 0x0f, 0x10, 0x7f, 0xd1, 0x91, 0xea, 0x8f, 0x65, 0x59, - 0x80, 0x06, 0x78, 0x15, 0x00, 0x00, 0xa8, 0xd0, 0x14, 0xb5, 0x24, 0xc0, - 0x06, 0x88, 0x15, 0x0f, 0x13, 0x7f, 0x1a, 0x04, 0x38, 0x04, 0x3d, 0x04, - 0x70, 0x34, 0x20, 0x05, 0x06, 0x18, 0x13, 0x10, 0x17, 0x34, 0xff, 0x18, - 0x1a, 0x1a, 0x19, 0x24, 0x19, 0x1a, 0x28, 0x1a, 0x1a, 0x11, 0x20, 0x05, - 0x18, 0x18, 0x08, 0x39, 0x03, 0x2f, 0xca, 0x23, 0x15, 0x15, 0xea, 0x30, - 0x01, 0xb5, 0x30, 0xe9, 0x30, 0xeb, 0x30, 0xc0, 0x06, 0x68, 0x17, 0x55, - 0x52, 0x28, 0x15, 0x73, 0x2f, 0xab, 0x72, 0x2f, 0xaf, 0x6c, 0x28, 0x1d, - 0x40, 0x61, 0x10, 0x15, 0xe0, 0x7f, 0x29, 0x52, 0x28, 0x84, 0xc9, 0x62, - 0x08, 0x14, 0x5c, 0xbe, 0x8f, 0x06, 0x58, 0x1b, 0xac, 0xb9, 0xac, 0x06, - 0xc0, 0x84, 0xb7, 0xe4, 0xb2, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x20, - 0x82, 0x28, 0x17, 0x41, 0x04, 0x30, 0x04, 0x40, 0x20, 0x03, 0x3b, 0x2c, - 0x04, 0x4c, 0x28, 0x21, 0x30, 0x05, 0xc8, 0x1f, 0x10, 0x16, 0xf4, 0xff, - 0x19, 0x1b, 0x09, 0x1b, 0x1a, 0x1a, 0x1b, 0x28, 0x1a, 0x1b, 0x19, 0x20, - 0x05, 0x04, 0x19, 0x19, 0x6c, 0x03, 0x2c, 0x28, 0x17, 0x1b, 0x15, 0x01, - 0xb5, 0x30, 0xf3, 0x30, 0xfb, 0x30, 0xa2, 0x20, 0x05, 0x05, 0xc9, 0x30, - 0xec, 0x30, 0xb9, 0x20, 0x0b, 0xa4, 0x20, 0x0f, 0x01, 0xd7, 0x30, 0xed, - 0x30, 0xd3, 0x30, 0xc7, 0x20, 0x1b, 0x68, 0xb7, 0x20, 0x1b, 0x04, 0xb8, - 0x31, 0x41, 0x28, 0x11, 0x63, 0x00, 0x68, 0xa8, 0x2f, 0xb3, 0x70, 0x2f, - 0xb7, 0xe9, 0x28, 0x1b, 0x61, 0x00, 0x67, 0xaa, 0x2f, 0xb9, 0x20, 0x2f, - 0xc1, 0x65, 0x20, 0x05, 0x53, 0x28, 0x33, 0x6e, 0xa8, 0x20, 0x0d, 0x41, - 0x4f, 0xd3, 0x72, 0x20, 0x21, 0x73, 0x00, 0x2c, 0xa3, 0x20, 0x1d, 0x50, - 0x28, 0x49, 0x6f, 0x00, 0x76, 0x2f, 0xeb, 0x30, 0x27, 0x51, 0x6e, 0x20, - 0x43, 0x69, 0x28, 0x5d, 0x20, 0x00, 0x79, 0x80, 0x33, 0x5b, 0x74, 0x40, - 0x0f, 0x43, 0x28, 0x73, 0x30, 0x09, 0x6c, 0x4f, 0x95, 0x00, 0x18, 0x75, - 0x5b, 0xce, 0x28, 0x8d, 0x65, 0x28, 0x99, 0x02, 0x70, 0x6f, 0x65, 0x20, - 0x67, 0x00, 0xb0, 0x71, 0x6f, 0x65, 0x00, 0xef, 0xff, 0x00, 0x30, 0xdf, - 0x20, 0x2f, 0xc3, 0x3f, 0xc1, 0x00, 0x70, 0xe5, 0x03, 0xbf, 0xd6, 0xf0, - 0x00, 0x50, 0x7f, 0x31, 0x79, 0x05, 0x10, 0x7b, 0x07, 0x31, 0xff, 0x23, - 0x57, 0x89, 0x5b, 0x00, 0xb7, 0x5f, 0xc8, 0x70, 0xaf, 0x65, 0x2d, 0x00, - 0x00, 0x6e, 0x66, 0x57, 0x7f, 0xf4, 0x7e, 0x7b, 0x76, 0x08, 0x7f, 0x89, - 0x9a, 0x4e, 0x05, 0x78, 0x25, 0xb0, 0xc0, 0x48, 0x00, 0xc5, 0xdc, 0xb4, - 0x08, 0xb8, 0xa4, 0xc2, 0x20, 0x00, 0x00, 0x74, 0xc7, 0x20, 0x00, 0x04, - 0xd5, 0x5c, 0x00, 0xb8, 0x44, 0xbe, 0x74, 0xb3, 0xdc, 0xc2, 0x44, 0x7d, - 0xc5, 0x05, 0x38, 0x2b, 0x00, 0x71, 0xff, 0x33, 0x73, 0x05, 0x32, 0x01, - 0x33, 0xff, 0x71, 0x4f, 0x33, 0x44, 0x70, 0x06, 0x23, 0xfd, 0x00, 0x00, - 0x21, 0x28, 0x13, 0x3d, 0x04, 0x15, 0x2d, 0x00, 0x10, 0x20, 0x05, 0x34, - 0x28, 0x1d, 0x35, 0x28, 0x25, 0x14, 0x2d, 0x00, 0x38, 0x20, 0x11, 0x1f, - 0x28, 0x2b, 0x3e, 0x04, 0x51, 0x32, 0x28, 0x37, 0x34, 0x20, 0x15, 0x3d, - 0x04, 0x46, 0x28, 0x41, 0x70, 0x4f, 0x04, 0x08, 0x33, 0x06, 0xf4, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x1a, 0x04, 0x13, 0x1b, 0x24, 0x1b, 0x04, 0x28, - 0x1a, 0x04, 0x1a, 0x20, 0x05, 0x1a, 0x1a, 0x01, 0xf2, 0x08, 0xe7, 0xc5, - 0x00, 0x00, 0x1c, 0x48, 0x17, 0x47, 0xbf, 0x28, 0x1b, 0xc7, 0x30, 0xeb, - 0x04, 0xc7, 0xff, 0x00, 0xd7, 0x17, 0x37, 0xc3, 0xb0, 0x37, 0xf7, 0x65, - 0x2f, 0xb7, 0x10, 0x15, 0xd0, 0x7f, 0x51, 0x68, 0x66, 0x57, 0x30, 0xb7, - 0x5f, 0x05, 0x78, 0x05, 0x00, 0x38, 0x17, 0xc4, 0xd0, 0x70, 0xb3, 0x3b, - 0x74, 0xb9, 0x05, 0x38, 0x03, 0x10, 0x00, 0x33, 0x7f, 0x58, 0x17, 0x42, - 0x48, 0x1d, 0x37, 0xff, 0x62, 0x40, 0x04, 0x07, 0xf9, 0x10, 0x18, 0xd4, - 0xff, 0x1b, 0x1c, 0x1c, 0x20, 0x01, 0x1b, 0xa0, 0x20, 0x06, 0x1b, 0x20, - 0x05, 0x1b, 0x1b, 0x11, 0x05, 0x00, 0x00, 0xcc, 0x00, 0x00, 0x1d, 0x15, - 0xb9, 0x30, 0xaf, 0x35, 0x30, 0xec, 0x06, 0x48, 0x11, 0x7f, 0x2f, 0x75, - 0x2f, 0xeb, 0x72, 0x01, 0x0f, 0x57, 0x81, 0x10, 0x14, 0x70, 0x7f, 0xcf, - 0x82, 0x4b, 0x51, 0xf7, 0x96, 0x06, 0x98, 0x17, 0x03, 0x18, 0xc2, 0x6c, - 0xd0, 0x08, 0xb8, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x05, 0x21, 0x04, - 0x43, 0x04, 0x3a, 0x28, 0x0d, 0x35, 0x05, 0xe8, 0x0f, 0x8a, 0x10, 0x17, - 0x74, 0xff, 0x1c, 0x1d, 0x1d, 0x20, 0x01, 0x1c, 0x20, 0x06, 0x1e, 0x80, - 0x20, 0x05, 0x1c, 0x1c, 0x9d, 0x06, 0x63, 0xca, 0x00, 0x00, 0x00, 0x1e, - 0x15, 0xc8, 0x30, 0xea, 0x30, 0xde, 0x80, 0x06, 0xa8, 0x17, 0x54, 0x00, - 0x6f, 0x00, 0x6c, 0x00, 0x69, 0x30, 0x00, 0x6d, 0x2f, 0xb7, 0x10, 0x16, - 0x30, 0x7f, 0x58, 0x62, 0x29, 0x52, 0x20, 0x6c, 0x9a, 0x06, 0x98, 0x17, - 0xa8, 0xd1, 0xac, 0xb9, 0xc8, 0x60, 0xb9, 0x06, 0x98, 0x17, 0x0e, 0xf3, - 0x7f, 0x22, 0x04, 0x3e, 0x04, 0x3b, 0x03, 0x04, 0x38, 0x04, 0x3c, 0x04, - 0x30, 0x06, 0x48, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x19, 0x1d, 0x1e, 0x1e, - 0x20, 0x01, 0x28, 0x15, 0x1e, 0x1f, 0x20, 0x05, 0x04, 0x1d, 0x1d, 0x28, - 0x03, 0x81, 0x28, 0x17, 0x1f, 0x15, 0x00, 0xd0, 0x30, 0xb8, 0x30, 0xa7, - 0x30, 0xfb, 0x30, 0x11, 0xc7, 0x30, 0xeb, 0x20, 0x05, 0xab, 0x30, 0xa6, - 0x20, 0x03, 0xa8, 0x05, 0xb8, 0x25, 0x56, 0x28, 0x0f, 0x6c, 0x28, 0x19, - 0x65, 0x00, 0x20, 0x2b, 0x00, 0x64, 0x2f, 0xb5, 0x6c, 0x20, 0x07, 0x43, - 0x28, 0x23, 0x3f, 0xc5, 0xc0, 0x05, 0x38, 0x29, 0x10, 0x0e, 0xf0, 0x7f, - 0x03, 0x80, 0x61, 0x53, 0x71, 0x5c, 0x20, 0x37, 0x8c, 0x06, 0x78, 0x19, - 0x14, 0xbc, 0x08, 0xc6, 0x78, 0x01, 0xb3, 0x74, 0xce, 0xb0, 0xc6, 0x74, - 0xce, 0x06, 0x38, 0x1d, 0xa0, 0x0e, 0xf3, 0x7f, 0x12, 0x28, 0x0f, 0x3b, - 0x04, 0x4c, 0x04, 0x35, 0x0c, 0x04, 0x2d, 0x00, 0x34, 0x20, 0x05, 0x30, - 0x0b, 0x2d, 0x00, 0x46, 0x1a, 0x28, 0x25, 0x43, 0x04, 0x3a, 0x05, 0x28, - 0x2b, 0x10, 0x16, 0xf4, 0xff, 0x1e, 0x32, 0x1f, 0x1f, 0x20, 0x01, 0x28, - 0x15, 0x1f, 0x07, 0x20, 0x05, 0x1e, 0x00, 0x1e, 0x71, 0x02, 0x96, 0xc9, - 0x00, 0x00, 0x20, 0x83, 0x28, 0x17, 0xa6, 0x30, 0xda, 0x30, 0xb9, 0x05, - 0xc8, 0x0b, 0xf8, 0x17, 0x01, 0x75, 0x00, 0x70, 0x00, 0xe9, 0x00, 0x73, - 0x10, 0x16, 0x40, 0x7f, 0x03, 0x83, 0x6c, 0x69, 0x4f, 0xaf, 0x65, 0x06, - 0x78, 0x15, 0x38, 0x17, 0x03, 0xb0, 0xc6, 0x98, 0xd3, 0xa4, 0xc2, 0x06, - 0x38, 0x13, 0x0f, 0x33, 0x7f, 0x8b, 0x38, 0x17, 0x43, 0x04, 0x3f, 0x28, - 0x17, 0x41, 0x05, 0x08, 0x03, 0x10, 0x18, 0x34, 0xff, 0x15, 0x1f, 0x20, - 0x20, 0x20, 0x01, 0x1f, 0x20, 0x06, 0x08, 0x20, 0x05, 0x00, 0x1f, 0x1f, - 0xda, 0x00, 0x1a, 0xce, 0x00, 0x00, 0x00, 0x21, 0x15, 0xd3, 0x30, 0xc1, - 0x30, 0xe3, 0x30, 0x55, 0xc0, 0x06, 0xa8, 0x17, 0x69, 0x2f, 0x99, 0x68, - 0x2f, 0xb5, 0x64, 0x05, 0x4f, 0x9f, 0x81, 0x10, 0x0f, 0xf0, 0x7f, 0xf4, - 0x7e, 0xe5, 0x67, 0xbe, 0x8f, 0x06, 0x98, 0x17, 0x03, 0x44, 0xbe, 0x28, - 0xcc, 0xe4, 0xb2, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x05, 0x12, 0x04, - 0x38, 0x04, 0x47, 0x28, 0x1b, 0x34, 0x28, 0x1f, 0x8a, 0x10, 0x1e, 0x34, - 0xff, 0x20, 0x21, 0x21, 0x20, 0x01, 0x20, 0x20, 0x06, 0x09, 0x80, 0x20, - 0x05, 0x20, 0x20, 0x66, 0x04, 0x05, 0xd0, 0x00, 0x00, 0x00, 0x22, 0x15, - 0xab, 0x30, 0xb5, 0x30, 0xca, 0x2a, 0x30, 0xec, 0x06, 0x88, 0x17, 0x43, - 0x2f, 0xaf, 0x73, 0x2f, 0xb3, 0x6e, 0x88, 0x2f, 0xb7, 0x72, 0x00, 0x65, - 0x10, 0x16, 0x00, 0x7f, 0x61, 0x53, 0x28, 0x04, 0x84, 0xb3, 0x7e, 0xf7, - 0x96, 0x06, 0x78, 0x19, 0x74, 0xce, 0x03, 0xac, 0xc0, 0x98, 0xb0, 0x08, - 0xb8, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x54, 0x1a, 0x28, 0x13, 0x41, - 0x28, 0x17, 0x3d, 0x28, 0x1b, 0x40, 0x04, 0x63, 0x35, 0x06, 0x08, 0x1b, - 0x10, 0x16, 0xf4, 0xff, 0x21, 0x0a, 0x09, 0x20, 0x01, 0x28, 0x15, 0x20, - 0x0a, 0x0f, 0x20, 0x05, 0x21, 0x21, 0xcc, 0x03, 0x86, 0x40, 0xcc, 0x00, - 0x3f, 0xff, 0x01, 0x10, 0x0f, 0x05, 0x0f, 0x10, 0x04, 0x01, 0x01, 0x12, - 0x10, 0x1d, 0x20, 0x05, 0x01, 0x01, 0x10, 0x02, 0x0f, 0x0e, 0x20, 0x01, - 0x02, 0x02, 0x0e, 0x0f, 0x44, 0x13, 0x20, 0x05, 0x02, 0x02, 0x03, 0x30, - 0x14, 0x01, 0x03, 0x82, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x04, 0x30, - 0x14, 0x02, 0x41, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, 0x05, 0x30, - 0x14, 0x20, 0x03, 0x05, 0x40, 0x06, 0x05, 0x05, 0x05, 0x05, 0x06, 0x42, - 0x05, 0x30, 0x14, 0x06, 0x06, 0x04, 0x05, 0x30, 0x05, 0x06, 0x11, 0x06, - 0x07, 0x06, 0x20, 0x12, 0x06, 0x07, 0x07, 0x50, 0x05, 0x08, 0x07, 0x07, - 0x08, 0x07, 0x20, 0x12, 0x07, 0x08, 0x08, 0x84, 0x50, 0x05, 0x08, 0x08, - 0x09, 0x08, 0x20, 0x12, 0x08, 0x09, 0x0b, 0x09, 0x07, 0x08, 0x0e, 0x20, - 0x05, 0x09, 0x20, 0xb4, 0x20, 0x12, 0x02, 0x09, 0x0a, 0x0a, 0x08, 0x09, - 0x0d, 0x20, 0x05, 0x0a, 0x0d, 0x0a, 0x0b, 0x0b, 0x0a, 0x20, 0x01, 0x30, - 0x05, 0x10, 0x20, 0x05, 0x06, 0x0b, 0x0b, 0x0c, 0x0c, 0x0b, 0x20, 0x01, - 0x30, 0x05, 0x1c, 0x83, 0x20, 0x05, 0x0c, 0x0c, 0x0d, 0x0d, 0x0c, 0x20, - 0x01, 0x30, 0x05, 0x41, 0x21, 0x20, 0x05, 0x0d, 0x0d, 0x0e, 0x0e, 0x0d, - 0x20, 0x01, 0xa0, 0x30, 0x05, 0x12, 0x20, 0x05, 0x0e, 0x0e, 0x0f, 0x12, - 0x11, 0x00, 0x11, 0x11, 0x12, 0x0f, 0x0f, 0x11, 0x12, 0x0a, 0x81, 0x20, - 0x05, 0x0f, 0x0f, 0x10, 0x11, 0x10, 0x10, 0x30, 0x03, 0x10, 0x0f, 0x11, - 0x0b, 0x30, 0x09, 0x10, 0x11, 0x13, 0x12, 0x00, 0x12, 0x12, 0x13, 0x11, - 0x11, 0x13, 0x13, 0x20, 0xc0, 0x20, 0x05, 0x20, 0x2a, 0x14, 0x14, 0x13, - 0x13, 0x14, 0x12, 0x0c, 0x12, 0x10, 0x14, 0x0c, 0x20, 0x05, 0x20, 0x1a, - 0x15, 0x15, 0x16, 0x14, 0x14, 0x15, 0x20, 0x12, 0x15, 0x30, 0x05, 0x20, - 0x1a, 0x16, 0x0b, 0x16, 0x15, 0x15, 0x16, 0x20, 0x12, 0x16, 0x30, 0x05, - 0x20, 0x1a, 0x05, 0x17, 0x17, 0x16, 0x16, 0x17, 0x20, 0x12, 0x17, 0x30, - 0x05, 0x82, 0x20, 0x1a, 0x18, 0x18, 0x17, 0x17, 0x18, 0x20, 0x12, 0x18, - 0xc1, 0x30, 0x05, 0x20, 0x1a, 0x19, 0x19, 0x18, 0x18, 0x19, 0x20, 0x12, - 0x60, 0x19, 0x30, 0x05, 0x20, 0x1a, 0x1a, 0x1a, 0x19, 0x19, 0x1a, 0x98, - 0x20, 0x12, 0x1a, 0x11, 0x20, 0x05, 0x20, 0x1a, 0x1b, 0x1b, 0x1a, 0x26, - 0x1a, 0x1b, 0x20, 0x12, 0x1b, 0x19, 0x20, 0x05, 0x20, 0x1a, 0x04, 0x09, - 0x13, 0x1b, 0x1b, 0x04, 0x20, 0x12, 0x04, 0x1a, 0x20, 0x05, 0x95, 0x20, - 0x1a, 0x1c, 0x1c, 0x20, 0x01, 0x1b, 0x20, 0x06, 0x1b, 0x20, 0x05, 0x95, - 0x20, 0x07, 0x1d, 0x1d, 0x20, 0x01, 0x1c, 0x20, 0x06, 0x1e, 0x20, 0x05, - 0x99, 0x20, 0x07, 0x1e, 0x1e, 0x20, 0x01, 0x20, 0x0d, 0x1e, 0x1f, 0x20, - 0x05, 0x99, 0x20, 0x15, 0x1f, 0x1f, 0x20, 0x01, 0x20, 0x0d, 0x1f, 0x07, - 0x20, 0x05, 0xcb, 0x20, 0x15, 0x3a, 0x14, 0x20, 0x1f, 0x20, 0x06, 0x08, - 0x20, 0x05, 0x20, 0x07, 0xe0, 0xea, 0x2f, 0xf2, 0x27, 0x7f, 0xff, 0x00, - 0x11, 0x4c, 0x41, 0x00, 0x11, 0x07, 0x00, 0x00, 0x30, 0x01, 0x16, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x10, 0x07, 0x36, 0xc4, 0x00, 0x00, 0x00, 0x02, 0x16, 0xb5, 0x30, - 0xf3, 0x30, 0xfb, 0x01, 0x30, 0xdb, 0x30, 0xbb, 0x30, 0xde, 0x5d, 0x06, - 0x38, 0x21, 0x00, 0x53, 0x00, 0x61, 0x00, 0x6e, 0x00, 0x20, 0x00, 0x01, - 0x4a, 0x00, 0x6f, 0x00, 0x73, 0x00, 0xe9, 0x10, 0x16, 0x00, 0x7f, 0x00, - 0x23, 0x57, 0x55, 0x4f, 0x5e, 0x58, 0x01, 0x77, 0x80, 0x06, 0x7b, 0x1d, - 0xb0, 0xc0, 0x38, 0xd6, 0x38, 0xc1, 0x20, 0x18, 0x00, 0xfc, 0xc8, 0x06, - 0x5b, 0x9f, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x30, 0x00, 0x04, 0x3d, 0x04, - 0x2d, 0x00, 0x25, 0x04, 0x3e, 0x04, 0x04, 0x41, 0x04, 0x35, 0x04, 0x10, - 0x1d, 0xf4, 0xff, 0x01, 0x07, 0x54, 0x07, 0x20, 0x01, 0x01, 0x20, 0x06, - 0x06, 0x20, 0x05, 0x01, 0x01, 0x80, 0x58, 0x17, 0x03, 0x16, 0xa2, 0x30, - 0xe9, 0x30, 0xd5, 0x31, 0x30, 0xa8, 0x20, 0x05, 0x06, 0x58, 0x17, 0x41, - 0x00, 0x6c, 0x28, 0x19, 0x06, 0x6a, 0x00, 0x75, 0x00, 0x65, 0x40, 0x09, - 0x10, 0x15, 0xf0, 0x7f, 0x3f, 0x00, 0x96, 0xc9, 0x62, 0xe1, 0x80, 0xc3, - 0x57, 0xc9, 0x40, 0x62, 0x06, 0x58, 0x1b, 0x4c, 0xc5, 0x7c, 0xb7, 0xc4, - 0xd6, 0x71, 0xd8, 0x20, 0x05, 0x06, 0x58, 0x1b, 0x0e, 0xf3, 0x7f, 0x10, - 0x04, 0x3b, 0x28, 0x19, 0x06, 0x45, 0x04, 0x43, 0x04, 0x4d, 0x40, 0x09, - 0x10, 0x1d, 0xf4, 0xff, 0x02, 0x90, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, - 0x02, 0x02, 0x02, 0x02, 0x10, 0x1f, 0x07, 0x1d, 0x28, 0x17, 0x04, 0x16, - 0xab, 0x30, 0x04, 0xeb, 0x30, 0xbf, 0x30, 0xb4, 0x06, 0x68, 0x15, 0x00, - 0x00, 0x45, 0x43, 0x2f, 0xaf, 0x72, 0x00, 0x74, 0x2f, 0xb5, 0x67, 0x2f, - 0xb1, 0x83, 0x10, 0x16, 0x10, 0x7f, 0x61, 0x53, 0x54, 0x58, 0x08, 0x06, - 0x68, 0x13, 0x3f, 0xff, 0x00, 0x74, 0xce, 0x74, 0xb9, 0xc0, 0xd0, 0xe0, - 0xac, 0xd1, 0x06, 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x1a, 0x28, 0x15, 0x40, - 0x04, 0x42, 0x28, 0x1b, 0x1a, 0x33, 0x04, 0x3e, 0x06, 0x08, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x03, 0x38, 0x0c, 0x02, 0x50, 0x03, 0x20, 0x06, 0x03, - 0x20, 0x05, 0x03, 0x03, 0x04, 0x07, 0x40, 0x54, 0x28, 0x17, 0x05, 0x16, - 0xb0, 0x30, 0xa2, 0x30, 0x01, 0xca, 0x30, 0xab, 0x30, 0xb9, 0x30, 0xc6, - 0x06, 0x48, 0x1b, 0x45, 0x47, 0x2f, 0xa9, 0x61, 0x00, 0x6e, 0x2f, 0xb3, - 0x63, 0x2f, 0xb7, 0x50, 0x73, 0x28, 0x21, 0x65, 0x10, 0x15, 0xc0, 0x7f, - 0xdc, 0x74, 0xb3, 0x7e, 0x02, 0x61, 0x53, 0xaf, 0x65, 0x79, 0x72, 0x06, - 0x58, 0x1b, 0xfc, 0x00, 0xac, 0x98, 0xb0, 0x74, 0xce, 0xa4, 0xc2, 0x4c, - 0x62, 0xd1, 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, 0x13, 0x04, 0x43, 0x28, - 0x19, 0x3d, 0xab, 0x28, 0x1d, 0x3a, 0x28, 0x21, 0x41, 0x28, 0x21, 0x35, - 0x05, 0xc8, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x4a, 0x04, 0x38, 0x0c, 0x03, - 0x04, 0x20, 0x06, 0x02, 0x20, 0x05, 0x04, 0x00, 0x04, 0x8f, 0x07, 0x40, - 0xc3, 0x00, 0x00, 0x06, 0x00, 0x16, 0xa8, 0x30, 0xec, 0x30, 0xc7, 0x30, - 0xa3, 0xc5, 0x28, 0x1d, 0x06, 0x38, 0x15, 0x00, 0x00, 0x48, 0x28, 0x07, - 0x72, 0x28, 0x0b, 0x18, 0x64, 0x00, 0x69, 0x2f, 0xb9, 0x10, 0x16, 0x10, - 0x7f, 0xc3, 0x57, 0xf7, 0x04, 0x96, 0xea, 0x8f, 0x9a, 0x4e, 0x06, 0x58, - 0x15, 0x00, 0x00, 0x00, 0xd0, 0xc5, 0x08, 0xb8, 0x14, 0xb5, 0x44, 0xc5, - 0xc4, 0x06, 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x2d, 0x04, 0x40, 0x28, 0x09, - 0x34, 0x04, 0x1a, 0x38, 0x04, 0x4f, 0x05, 0xc8, 0x0f, 0x10, 0x17, 0x74, - 0xff, 0x05, 0x38, 0x0c, 0x04, 0x50, 0x05, 0x20, 0x06, 0x07, 0x20, 0x05, - 0x05, 0x05, 0x1c, 0x07, 0x00, 0x30, 0xc4, 0x00, 0x00, 0x07, 0x16, 0xea, - 0x30, 0x1a, 0xe2, 0x30, 0xf3, 0x06, 0x68, 0x13, 0x3f, 0xff, 0x4c, 0x28, - 0x0f, 0x6d, 0x30, 0x00, 0xf3, 0x2f, 0xb1, 0x10, 0x16, 0x50, 0x7f, 0x29, - 0x52, 0x99, 0x84, 0xc3, 0x06, 0x78, 0x13, 0x3f, 0xff, 0xac, 0xb9, 0xac, - 0xba, 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0x41, 0x1b, 0x28, 0x11, 0x3c, - 0x04, 0x3e, 0x04, 0x3d, 0x06, 0x48, 0x15, 0xa5, 0x10, 0x17, 0x14, 0xff, - 0x06, 0x38, 0x0c, 0x05, 0x06, 0x20, 0x06, 0x04, 0x20, 0x05, 0x04, 0x06, - 0x06, 0x1c, 0x07, 0xf5, 0x28, 0x17, 0x08, 0x16, 0x40, 0xd7, 0x28, 0x15, - 0xbf, 0x30, 0xec, 0x30, 0xca, 0x30, 0x45, 0xb9, 0x06, 0x48, 0x1d, 0x50, - 0x00, 0x75, 0x28, 0x13, 0x74, 0x2f, 0xab, 0xa8, 0x3f, 0xb5, 0x6e, 0x2f, - 0xb3, 0x73, 0x10, 0x15, 0xc0, 0x7f, 0xec, 0x84, 0x54, 0x01, 0x58, 0xf7, - 0x96, 0xb3, 0x7e, 0xaf, 0x65, 0x06, 0x58, 0x1d, 0x00, 0x7c, 0xd4, 0xc0, - 0xd0, 0x08, 0xb8, 0x98, 0xb0, 0x31, 0xa4, 0xc2, 0x06, 0x58, 0x1d, 0x0e, - 0xf3, 0x7f, 0x1f, 0x04, 0x43, 0x28, 0x13, 0x01, 0x42, 0x04, 0x30, 0x04, - 0x40, 0x04, 0x35, 0x28, 0x1d, 0x1a, 0x30, 0x04, 0x41, 0x05, 0xc8, 0x21, - 0x10, 0x16, 0xf4, 0xff, 0x07, 0x38, 0x0c, 0x06, 0x50, 0x07, 0x20, 0x06, - 0x05, 0x20, 0x05, 0x07, 0x07, 0x16, 0x07, 0x29, 0xad, 0xc3, 0x00, 0x3f, - 0xff, 0x01, 0x30, 0x1c, 0x07, 0x01, 0x20, 0x06, 0x44, 0x06, 0x20, 0x05, - 0x01, 0x01, 0x02, 0x30, 0x04, 0x01, 0x02, 0x82, 0x40, 0x06, 0x02, 0x02, - 0x02, 0x02, 0x03, 0x30, 0x04, 0x02, 0x51, 0x03, 0x20, 0x06, 0x03, 0x20, - 0x05, 0x03, 0x03, 0x04, 0x30, 0x04, 0x28, 0x03, 0x04, 0x20, 0x06, 0x02, - 0x20, 0x05, 0x04, 0x04, 0x05, 0xa7, 0x30, 0x04, 0x04, 0x28, 0x7d, 0x04, - 0x07, 0x20, 0x05, 0x28, 0x89, 0xe8, 0x8f, 0xc0, 0xf0, 0x87, 0x3f, 0xff, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x17, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xe1, 0x0a, 0x57, 0xd4, 0x00, 0x00, 0x00, 0x01, 0x17, 0xc9, 0x30, - 0xdf, 0x30, 0xcb, 0x04, 0x30, 0xab, 0x30, 0xfd, 0x56, 0x06, 0x58, 0x1f, - 0x44, 0x00, 0x01, 0x6f, 0x00, 0x6d, 0x00, 0x69, 0x00, 0x6e, 0x20, 0x03, - 0x10, 0x63, 0x00, 0x61, 0x06, 0xc0, 0x7f, 0x71, 0x00, 0x75, 0x00, 0x60, - 0x65, 0x0e, 0xa0, 0xff, 0x0e, 0x30, 0x7f, 0x1a, 0x59, 0x73, 0x7c, 0x3c, - 0x10, 0x5c, 0x4b, 0x51, 0x06, 0x7b, 0x1d, 0xc4, 0xb3, 0xf8, 0xbb, 0x00, - 0xc8, 0xb2, 0x74, 0xce, 0x20, 0x00, 0xf0, 0xc5, 0x30, 0x29, 0xbc, 0x0e, - 0xd3, 0x7f, 0x06, 0x33, 0xff, 0x14, 0x04, 0x3e, 0x04, 0x04, 0x3c, 0x04, - 0x38, 0x04, 0x3d, 0x20, 0x03, 0x3a, 0x04, 0x33, 0x30, 0x04, 0x10, 0x05, - 0xf3, 0x7f, 0x10, 0x06, 0xf4, 0xff, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, - 0xc0, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0xe4, 0xfc, 0x00, 0x11, 0x1e, 0x00, 0x00, - 0x30, 0x01, 0x18, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x21, 0x0d, 0x4c, 0xce, 0x00, 0x00, 0x00, - 0x02, 0x18, 0xc7, 0x30, 0xa3, 0x30, 0xb9, 0x08, 0x30, 0xc8, 0x30, 0xea, - 0x20, 0x03, 0xfb, 0x30, 0xca, 0x08, 0x30, 0xb7, 0x30, 0xe7, 0x20, 0x05, - 0xeb, 0x30, 0x96, 0x04, 0x99, 0xfd, 0x90, 0x0f, 0x57, 0x05, 0x18, 0x33, - 0x44, 0x00, 0x01, 0x69, 0x00, 0x73, 0x00, 0x74, 0x00, 0x72, 0x20, 0x07, - 0x00, 0x74, 0x00, 0x6f, 0x00, 0x20, 0x00, 0x4e, 0x00, 0x11, 0x61, 0x00, - 0x63, 0x20, 0x15, 0x6f, 0x00, 0x6e, 0x20, 0x09, 0x5b, 0x6c, 0x05, 0xa0, - 0x7f, 0x63, 0x20, 0x87, 0x50, 0x7f, 0x74, 0x06, 0x40, 0x7f, 0x06, 0xd0, - 0xff, 0x6a, 0x65, 0x21, 0x85, 0x91, 0x81, 0x7a, 0xa1, 0x81, 0x65, 0x0c, - 0xa1, 0xff, 0xfd, 0x04, 0x56, 0xb6, 0x5b, 0x3a, 0x53, 0x06, 0x9b, 0x1b, - 0xc4, 0xb3, 0x00, 0xf8, 0xbb, 0xc8, 0xb2, 0x74, 0xce, 0x20, 0x00, 0x03, - 0x89, 0xd5, 0x15, 0xc8, 0x6c, 0xad, 0x05, 0xfb, 0xa5, 0x07, 0xb3, 0x7f, - 0x80, 0x06, 0x33, 0xff, 0x1d, 0x04, 0x30, 0x04, 0x46, 0x04, 0x38, 0x08, - 0x04, 0x3e, 0x04, 0x3d, 0x20, 0x09, 0x3b, 0x04, 0x4c, 0x80, 0x20, 0x07, - 0x4b, 0x04, 0x39, 0x04, 0x20, 0x00, 0x3e, 0x00, 0x04, 0x3a, 0x04, 0x40, - 0x04, 0x43, 0x04, 0x33, 0x62, 0x04, 0x10, 0x04, 0xb1, 0x7f, 0x10, 0x06, - 0xf0, 0xff, 0x01, 0x05, 0x05, 0x20, 0x01, 0x01, 0xa4, 0x20, 0x06, 0x0f, - 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x18, 0x4a, 0xa2, 0x28, 0x15, - 0xa2, 0x30, 0x06, 0x9f, 0xb3, 0x41, 0x26, 0x81, 0x75, 0xc0, 0x28, 0x09, - 0x10, 0x16, 0x70, 0x7f, 0x3f, 0x96, 0xcf, 0x82, 0x3f, 0x96, 0x20, 0x01, - 0x77, 0x06, 0x7f, 0xb5, 0x44, 0xc5, 0x18, 0xc2, 0x44, 0x45, 0xc5, 0x10, - 0x06, 0x93, 0x7f, 0x10, 0x04, 0x37, 0x27, 0xfb, 0x30, 0x04, 0xc7, 0xfb, - 0xa4, 0x10, 0x18, 0xb4, 0xff, 0x02, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, - 0x02, 0x02, 0x00, 0x02, 0x02, 0x1e, 0x0d, 0xb4, 0xcd, 0x00, 0x00, 0x00, - 0x04, 0x18, 0xd0, 0x30, 0xaa, 0x30, 0xeb, 0x30, 0x55, 0xb3, 0x06, 0x88, - 0x19, 0x42, 0x2f, 0x9d, 0x6f, 0x2f, 0xad, 0x75, 0x2f, 0xad, 0x40, 0x6f, - 0x10, 0x16, 0x20, 0x7f, 0xf4, 0x5d, 0x65, 0x59, 0x81, 0x9c, 0x20, 0xd1, - 0x79, 0x06, 0x78, 0x19, 0x14, 0xbc, 0x24, 0xc6, 0xe8, 0x14, 0xb8, 0x54, - 0xcf, 0x10, 0x06, 0x73, 0x7f, 0x11, 0x28, 0x13, 0x3e, 0x04, 0x5a, 0x40, - 0x28, 0x1b, 0x3a, 0x20, 0x07, 0x10, 0x1e, 0x14, 0xff, 0x03, 0x38, 0x0c, - 0x02, 0x40, 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x21, 0x0d, 0x55, - 0x37, 0x28, 0x17, 0x05, 0x28, 0x17, 0xe9, 0x28, 0x19, 0xca, 0x06, 0xc8, - 0x17, 0x56, 0x72, 0x2f, 0xaf, 0x68, 0x28, 0x1d, 0x6e, 0x06, 0x2f, 0xb7, - 0x10, 0x0e, 0xf0, 0x7f, 0xf4, 0x01, 0x5d, 0xc9, 0x62, 0x65, 0x59, 0xb3, - 0x7e, 0x06, 0x98, 0x17, 0x03, 0x7c, 0xb7, 0x24, 0xc6, 0x98, 0xb0, 0x10, - 0x06, 0x73, 0x7f, 0x38, 0x17, 0x56, 0x40, 0x28, 0x1b, 0x45, 0x28, 0x1d, - 0x3d, 0x28, 0x23, 0x10, 0x1d, 0xf4, 0xff, 0x04, 0x90, 0x38, 0x0c, 0x03, - 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, 0x10, 0xf1, 0x0c, 0x71, 0x28, - 0x17, 0x06, 0x18, 0xc0, 0x30, 0x05, 0xcf, 0x30, 0xdc, 0x30, 0xf3, 0x06, - 0x88, 0x17, 0x44, 0x2f, 0xaf, 0x46, 0x6a, 0x2f, 0xb3, 0x62, 0x00, 0xf3, - 0x28, 0x17, 0x10, 0x16, 0x10, 0x7f, 0xbe, 0x04, 0x8f, 0xc8, 0x54, 0x0b, - 0x67, 0x06, 0x78, 0x15, 0x00, 0x00, 0x03, 0xe4, 0xb2, 0x58, 0xd5, 0xf8, - 0xbc, 0x06, 0x7b, 0x95, 0x0f, 0x13, 0x7f, 0x45, 0x14, 0x28, 0x17, 0x34, - 0x04, 0x36, 0x28, 0x1d, 0x31, 0x48, 0x19, 0xa5, 0x10, 0x1d, 0xf4, 0xff, - 0x05, 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x05, 0x20, 0x05, 0x04, 0x05, - 0x05, 0xe6, 0x0d, 0x04, 0x28, 0x17, 0x07, 0x18, 0x00, 0xc9, 0x30, 0xa5, - 0x30, 0xa2, 0x30, 0xeb, 0x30, 0x44, 0xc6, 0x06, 0x68, 0x19, 0x44, 0x00, - 0x75, 0x4f, 0xb1, 0x74, 0x00, 0x40, 0x65, 0x10, 0x16, 0x40, 0x7f, 0x5c, - 0x67, 0x4e, 0x53, 0xb7, 0x5f, 0x80, 0x06, 0x98, 0x17, 0x50, 0xb4, 0x44, - 0xc5, 0x74, 0xb9, 0x4c, 0x62, 0xd1, 0x06, 0x9b, 0x97, 0x0e, 0xd3, 0x7f, - 0x14, 0x04, 0x43, 0x28, 0x19, 0x40, 0x0c, 0x04, 0x42, 0x04, 0x35, 0x06, - 0x08, 0x13, 0x10, 0x17, 0x34, 0xff, 0x06, 0x06, 0x80, 0xd0, 0x01, 0xb9, - 0x0d, 0x0c, 0xce, 0x00, 0x00, 0x08, 0x00, 0x18, 0xa8, 0x30, 0xb9, 0x30, - 0xd1, 0x30, 0xa4, 0x02, 0x30, 0xb8, 0x30, 0xe3, 0x30, 0xc8, 0x06, 0x28, - 0x1b, 0x45, 0x08, 0x00, 0x73, 0x00, 0x70, 0x2f, 0xb3, 0x69, 0x00, 0x6c, - 0xb0, 0x20, 0x01, 0x61, 0x28, 0x1f, 0x10, 0x15, 0xd0, 0x7f, 0x7e, 0x82, - 0xaf, 0x65, 0x08, 0x3e, 0x6d, 0x9a, 0x4e, 0x06, 0x78, 0x19, 0xd0, 0xc5, - 0xa4, 0x00, 0xc2, 0x0c, 0xd3, 0x74, 0xc7, 0x7c, 0xc5, 0xb8, 0x60, 0xd2, - 0x06, 0x3b, 0x99, 0x0e, 0xf3, 0x7f, 0x2d, 0x04, 0x41, 0x04, 0x3f, 0x8b, - 0x28, 0x19, 0x38, 0x04, 0x3b, 0x20, 0x01, 0x30, 0x28, 0x1f, 0x10, 0x1d, - 0xd4, 0xff, 0x15, 0x07, 0x09, 0x09, 0x20, 0x01, 0x07, 0x20, 0x06, 0x1e, - 0x20, 0x05, 0x00, 0x07, 0x07, 0xcb, 0x0d, 0xdb, 0xcd, 0x00, 0x00, 0x00, - 0x09, 0x18, 0xa4, 0x30, 0xf3, 0x30, 0xc7, 0x30, 0x41, 0xda, 0x40, 0x05, - 0xf3, 0x30, 0xb7, 0x30, 0xa2, 0x05, 0xe8, 0x1b, 0x05, 0x49, 0x00, 0x6e, - 0x00, 0x64, 0x2f, 0xab, 0x70, 0x2f, 0xaf, 0x8a, 0x50, 0x09, 0x6e, 0x00, - 0x63, 0x28, 0x25, 0x61, 0x10, 0x15, 0x60, 0x7f, 0xec, 0x18, 0x72, 0xcb, - 0x7a, 0x06, 0x78, 0x13, 0x3f, 0xff, 0x78, 0xc7, 0x70, 0x00, 0xb3, 0x9c, - 0xd3, 0x74, 0xb3, 0xdc, 0xc2, 0x44, 0x60, 0xc5, 0x06, 0x3f, 0xb0, 0x0e, - 0xf3, 0x7f, 0x18, 0x04, 0x3d, 0x04, 0x34, 0x2a, 0x04, 0x35, 0x28, 0x1b, - 0x35, 0x60, 0x09, 0x3d, 0x28, 0x29, 0x38, 0x30, 0x04, 0x4f, 0x05, 0x68, - 0x1f, 0x10, 0x16, 0xf4, 0xff, 0x08, 0x0b, 0x0b, 0x0c, 0x14, 0x0b, 0x0b, - 0x08, 0x20, 0x06, 0x07, 0x20, 0x05, 0x08, 0x08, 0x00, 0x26, 0x0d, 0xe8, - 0xcc, 0x00, 0x00, 0x0a, 0x18, 0x10, 0xe9, 0x30, 0xfb, 0x28, 0x0b, 0xeb, - 0x30, 0xbf, 0x30, 0x14, 0xb0, 0x30, 0xe9, 0x06, 0x28, 0x17, 0x4c, 0x2f, - 0xab, 0x20, 0x00, 0x51, 0x41, 0x2f, 0xad, 0x74, 0x2f, 0xb5, 0x67, 0x00, - 0x72, 0x2f, 0xbb, 0xc2, 0x05, 0xb8, 0x17, 0x10, 0x0e, 0xf0, 0x7f, 0x23, - 0x57, 0xcd, 0x6b, 0x06, 0xb8, 0x17, 0x7c, 0x00, 0xb7, 0x4c, 0xc5, 0xc0, - 0xd0, 0xf8, 0xad, 0x7c, 0x60, 0xb7, 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, - 0x1b, 0x04, 0x30, 0x04, 0x2d, 0x00, 0x00, 0x10, 0x04, 0x3b, 0x04, 0x4c, - 0x04, 0x42, 0x8e, 0x20, 0x0b, 0x33, 0x04, 0x40, 0x20, 0x11, 0x05, 0x98, - 0x19, 0x10, 0x16, 0xf4, 0xff, 0x09, 0x02, 0x0c, 0x0c, 0x0d, 0x0c, 0x0c, - 0x09, 0x20, 0x06, 0x08, 0x80, 0x20, 0x05, 0x09, 0x09, 0x4c, 0x0d, 0x2c, - 0xcf, 0x00, 0x02, 0x00, 0x0b, 0x18, 0xa8, 0x30, 0xea, 0x28, 0x17, 0xb9, - 0x80, 0x28, 0x1d, 0xd4, 0x30, 0xfc, 0x30, 0xcb, 0x30, 0xe3, 0xaa, 0x05, - 0xe8, 0x17, 0x45, 0x28, 0x11, 0xed, 0x2f, 0x9d, 0x73, 0x28, 0x1d, 0x50, - 0xb0, 0x2f, 0xa7, 0xf1, 0x05, 0x8f, 0xa9, 0x10, 0x0f, 0x50, 0x7f, 0xc3, - 0x57, 0x29, 0x52, 0x00, 0x9a, 0x4e, 0xaf, 0x65, 0xae, 0x76, 0x9a, 0x4e, - 0x80, 0x06, 0x38, 0x1f, 0xd8, 0xc5, 0xac, 0xb9, 0x44, 0xc5, 0xa4, 0x06, - 0xc2, 0x3c, 0xd5, 0xd0, 0xb0, 0x06, 0x38, 0x9d, 0x0e, 0xf3, 0x7f, 0x2d, - 0xa2, 0x48, 0x11, 0x4f, 0x28, 0x09, 0x2d, 0x00, 0x1f, 0x28, 0x0d, 0x3d, - 0xc5, 0x28, 0x27, 0x10, 0x1d, 0xb4, 0xff, 0x0a, 0x08, 0x08, 0x20, 0x01, - 0x0a, 0x20, 0x06, 0x40, 0x1d, 0x20, 0x05, 0x0a, 0x0a, 0x6c, 0x0d, 0x03, - 0xcd, 0x04, 0x00, 0x00, 0x0c, 0x18, 0xe9, 0x28, 0x11, 0xed, 0x30, 0x58, - 0xde, 0x28, 0x13, 0xca, 0x05, 0xe8, 0x11, 0xbf, 0xaf, 0x52, 0x00, 0x6f, - 0x2c, 0x00, 0x6d, 0x2f, 0xb9, 0x6e, 0x05, 0xe8, 0x15, 0x10, 0x0f, 0x10, - 0x7f, 0x57, 0x7f, 0x0c, 0x6c, 0x9a, 0xb3, 0x7e, 0x06, 0x38, 0x11, 0x5f, - 0xff, 0x7c, 0xb7, 0x06, 0x5c, 0xb8, 0xc8, 0xb9, 0x98, 0x06, 0x48, 0x13, - 0x0f, 0x33, 0x7f, 0x1b, 0x80, 0x28, 0x07, 0x2d, 0x00, 0x20, 0x04, 0x3e, - 0x04, 0x3c, 0xe0, 0x28, 0x11, 0x05, 0xf8, 0x15, 0x10, 0x17, 0x14, 0xff, - 0x0b, 0x0d, 0x0d, 0x0e, 0x0d, 0x28, 0x0d, 0x0b, 0x20, 0x06, 0x0a, 0x20, - 0x05, 0x0b, 0x0b, 0x18, 0x00, 0x0d, 0xf6, 0xce, 0x00, 0x00, 0x0d, 0x18, - 0xde, 0x0a, 0x30, 0xea, 0x30, 0xa2, 0x28, 0x1b, 0xc8, 0x20, 0x07, 0xcb, - 0x20, 0x30, 0xc0, 0x28, 0x1f, 0xfb, 0x30, 0xb5, 0x30, 0xf3, 0x02, 0x30, - 0xc1, 0x30, 0xa7, 0x30, 0xb9, 0x05, 0x28, 0x29, 0x4d, 0xa2, 0x2f, 0xab, - 0x72, 0x4f, 0xb1, 0x20, 0x00, 0x54, 0x20, 0x09, 0x69, 0x8a, 0x28, 0x1b, - 0x69, 0x00, 0x64, 0x2f, 0xc1, 0x64, 0x2f, 0xc1, 0x53, 0x20, 0x00, 0xe1, - 0x28, 0x2b, 0x63, 0x00, 0x68, 0x00, 0x65, 0x20, 0x00, 0x7a, 0x10, 0x14, - 0x40, 0x7f, 0x9b, 0x73, 0x3d, 0x4e, 0x9a, 0x00, 0x4e, 0x2d, 0x00, 0x51, - 0x68, 0x76, 0x51, 0xaf, 0x40, 0x65, 0x06, 0x18, 0x1f, 0xc8, 0xb9, 0xac, - 0xb9, 0x44, 0xc5, 0x00, 0x20, 0x00, 0xb8, 0xd2, 0xac, 0xb9, 0xc8, 0xb2, - 0x00, 0xe4, 0xb2, 0xdc, 0xb4, 0xb0, 0xc0, 0xb4, 0xcc, 0x34, 0xa4, 0xc2, - 0x05, 0x7f, 0xb4, 0x0e, 0xf3, 0x7f, 0x1c, 0x28, 0x17, 0x40, 0x04, 0x15, - 0x38, 0x04, 0x4f, 0x28, 0x1d, 0x22, 0x40, 0x09, 0x3d, 0x20, 0x0d, 0x54, - 0x34, 0x28, 0x2d, 0x34, 0x28, 0x2f, 0x21, 0x48, 0x2b, 0x47, 0x04, 0x18, - 0x35, 0x04, 0x41, 0x04, 0x68, 0x2f, 0x10, 0x16, 0xf4, 0xff, 0x0c, 0x0f, - 0x0f, 0x0a, 0x10, 0x0f, 0x0f, 0x0c, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x0c, - 0x08, 0x0c, 0xc8, 0x0d, 0x58, 0x28, 0x17, 0x0e, 0x18, 0xe2, 0xaa, 0x28, - 0x03, 0xc6, 0x28, 0x17, 0xaf, 0x28, 0x1f, 0xb9, 0x20, 0x09, 0xa3, 0xd4, - 0x05, 0x28, 0x0b, 0xd8, 0x17, 0x6f, 0x2f, 0xa5, 0x74, 0x27, 0xf7, 0x20, - 0x00, 0x54, 0x43, 0x48, 0x17, 0x73, 0x20, 0x0d, 0x69, 0x10, 0x15, 0x80, - 0x7f, 0xfa, 0x57, 0x0c, 0xa6, 0x5e, 0x71, 0x5c, 0x06, 0x18, 0x0f, 0x7f, - 0xff, 0xac, 0xba, 0x00, 0x4c, 0xd1, 0x6c, 0xd0, 0xac, 0xb9, 0xa4, 0xc2, - 0x31, 0xf0, 0xd2, 0x06, 0x30, 0x83, 0x0e, 0xf3, 0x7f, 0x1c, 0x04, 0x3e, - 0x28, 0x09, 0x45, 0x42, 0x27, 0xf9, 0x2d, 0x00, 0x1a, 0x48, 0x21, 0x41, - 0x20, 0x0d, 0x60, 0x38, 0x04, 0x68, 0x05, 0x10, 0x18, 0x14, 0xff, 0x0d, - 0x11, 0x11, 0x12, 0x11, 0x28, 0x11, 0x0d, 0x20, 0x06, 0x0d, 0x20, 0x05, - 0x0d, 0x0d, 0xfc, 0x00, 0x0d, 0x0a, 0xcd, 0x00, 0x00, 0x0f, 0x18, 0xda, - 0x00, 0x30, 0xc7, 0x30, 0xeb, 0x30, 0xca, 0x30, 0xec, 0xd5, 0x28, 0x15, - 0x06, 0x35, 0x1b, 0x50, 0x2f, 0x89, 0x64, 0x2f, 0x8d, 0x72, 0x2f, 0xa7, - 0x14, 0x61, 0x00, 0x6c, 0x2f, 0x97, 0x73, 0x10, 0x15, 0xc0, 0x7f, 0x69, - 0x4f, 0x00, 0xb7, 0x5f, 0xb3, 0x7e, 0xb1, 0x83, 0xaf, 0x65, 0x80, 0x06, - 0x58, 0x1b, 0x98, 0xd3, 0x70, 0xb3, 0x74, 0xb9, 0xa0, 0x05, 0xb0, 0x08, - 0xb8, 0xa4, 0xc2, 0x10, 0x06, 0x33, 0x7f, 0x1f, 0x28, 0x11, 0x51, 0x34, - 0x28, 0x15, 0x40, 0x28, 0x1d, 0x30, 0x04, 0x3b, 0x28, 0x1f, 0x60, 0x41, - 0x05, 0x88, 0x13, 0x10, 0x17, 0x34, 0xff, 0x0e, 0x13, 0x13, 0x14, 0x13, - 0x28, 0x13, 0x0e, 0x20, 0x06, 0x10, 0x20, 0x05, 0x0e, 0x0e, 0xd2, 0x02, - 0x0c, 0xfb, 0xcc, 0x00, 0x00, 0x10, 0x28, 0x17, 0xe9, 0x0d, 0x30, 0xd3, - 0x30, 0xa2, 0x06, 0x48, 0x13, 0x78, 0x17, 0x72, 0x28, 0x11, 0x50, 0x76, - 0x2f, 0xa9, 0x61, 0x10, 0x16, 0x20, 0x7f, 0x69, 0x4f, 0xc9, 0x62, 0x0c, - 0xf4, 0x7e, 0x9a, 0x4e, 0x06, 0x58, 0x15, 0x38, 0x17, 0x7c, 0xb7, 0x0d, - 0x44, 0xbe, 0x44, 0xc5, 0x10, 0x06, 0x73, 0x7f, 0x38, 0x17, 0x40, 0x28, - 0x11, 0x06, 0x32, 0x04, 0x38, 0x04, 0x4f, 0x05, 0xc8, 0x11, 0x10, 0x17, - 0x54, 0xff, 0x0f, 0x02, 0x14, 0x14, 0x15, 0x14, 0x14, 0x0f, 0x20, 0x06, - 0x11, 0x80, 0x20, 0x05, 0x0f, 0x0f, 0x00, 0x0d, 0xfd, 0xcd, 0x00, 0x00, - 0x00, 0x11, 0x18, 0xd7, 0x30, 0xa8, 0x30, 0xeb, 0x02, 0x30, 0xc8, 0x30, - 0xfb, 0x30, 0xd7, 0x28, 0x21, 0xbf, 0x88, 0x06, 0x08, 0x1f, 0x50, 0x00, - 0x75, 0x4f, 0xad, 0x74, 0x00, 0x6f, 0x2b, 0x00, 0x20, 0x2f, 0xbd, 0x6c, - 0x2f, 0xb5, 0x74, 0x05, 0xa8, 0x21, 0x10, 0x0e, 0xf0, 0x7f, 0x0c, 0xf6, - 0x94, 0x2f, 0x6e, 0x06, 0x78, 0x13, 0x3f, 0xff, 0x78, 0xd4, 0x00, 0xd0, - 0xc5, 0x74, 0xb9, 0xa0, 0xd1, 0x20, 0x00, 0x02, 0x0c, 0xd5, 0x7c, 0xb7, - 0xc0, 0xd0, 0x10, 0x05, 0xf3, 0x7f, 0x1f, 0x08, 0x04, 0x43, 0x04, 0x4d, - 0x28, 0x19, 0x42, 0x04, 0x3e, 0x2b, 0x04, 0x2d, 0x28, 0x25, 0x3b, 0x28, - 0x23, 0x42, 0x28, 0x27, 0x10, 0x1d, 0x74, 0xff, 0x01, 0x10, 0x15, 0x15, - 0x16, 0x15, 0x15, 0x10, 0x20, 0x06, 0x41, 0x12, 0x20, 0x05, 0x10, 0x10, - 0x14, 0x0e, 0xbd, 0x28, 0x17, 0x11, 0x12, 0x18, 0xb5, 0x28, 0x15, 0xbb, - 0x30, 0xc9, 0x06, 0x08, 0x0f, 0xa2, 0x7f, 0xff, 0x53, 0x2f, 0xab, 0x6c, - 0x00, 0x63, 0x2f, 0xb5, 0x64, 0xd5, 0x28, 0x19, 0x0e, 0x10, 0x7f, 0x48, - 0x4f, 0xaf, 0x6d, 0x2f, 0xb1, 0x6e, 0x2f, 0xb5, 0x5b, 0x73, 0x29, 0x1b, - 0x4d, 0x2f, 0xb9, 0x3f, 0xc1, 0x62, 0x41, 0x19, 0x10, 0x04, 0xf1, 0x7f, - 0x00, 0x28, 0x84, 0x14, 0x5c, 0x5e, 0x58, 0x1a, 0x59, 0x81, 0x06, 0x78, - 0x1b, 0xb4, 0xc0, 0x38, 0xc1, 0xc4, 0xb3, 0x06, 0x98, 0x97, 0xa0, 0x0e, - 0xf3, 0x7f, 0x21, 0x28, 0x07, 0x3b, 0x04, 0x3a, 0x04, 0x35, 0x38, 0x04, - 0x34, 0x28, 0x19, 0x10, 0x06, 0x14, 0xff, 0x10, 0x06, 0xf0, 0xff, 0x11, - 0x16, 0x16, 0x0a, 0x0b, 0x16, 0x16, 0x11, 0x20, 0x06, 0x13, 0x20, 0x05, - 0x11, 0x08, 0x11, 0xcb, 0x0d, 0xfa, 0x28, 0x17, 0x13, 0x18, 0xbb, 0x0e, - 0x30, 0xde, 0x30, 0xca, 0x06, 0x88, 0x15, 0x58, 0x17, 0x57, 0x15, 0xe1, - 0x81, 0x10, 0x16, 0x40, 0x7f, 0x71, 0x5c, 0x8e, 0x7f, 0xb3, 0x7e, 0x06, - 0x78, 0x15, 0x00, 0x00, 0x00, 0xac, 0xc0, 0xc8, 0xb9, 0x98, 0xb0, 0xd6, - 0x10, 0x06, 0x93, 0x7f, 0x38, 0x17, 0x3c, 0x28, 0x1b, 0x3d, 0x28, 0x1f, - 0x10, 0x1e, 0x34, 0xff, 0x12, 0x2a, 0x17, 0x17, 0x20, 0x01, 0x12, 0x20, - 0x06, 0x14, 0x20, 0x05, 0x12, 0x00, 0x12, 0xaa, 0x0d, 0xb6, 0xce, 0x00, - 0x00, 0x14, 0x00, 0x18, 0xb5, 0x30, 0xf3, 0x30, 0xc1, 0x30, 0xa7, 0x00, - 0x30, 0xb9, 0x30, 0xfb, 0x30, 0xe9, 0x30, 0xdf, 0x34, 0x30, 0xec, 0x20, - 0x09, 0x05, 0xdf, 0xaf, 0xe1, 0x2f, 0x29, 0x63, 0x00, 0x55, 0x68, 0x2f, - 0xb1, 0x7a, 0x2f, 0x2d, 0x52, 0x48, 0x27, 0xed, 0x2f, 0x43, 0xc0, 0x30, - 0x0f, 0x10, 0x15, 0x10, 0x7f, 0x51, 0x68, 0x07, 0x52, 0xaf, 0x65, 0x00, - 0x2d, 0x00, 0xc9, 0x62, 0x73, 0x7c, 0xaf, 0x65, 0x80, 0x06, 0x18, 0x1f, - 0xb0, 0xc0, 0xb4, 0xcc, 0xa4, 0xc2, 0x7c, 0x01, 0xb7, 0xf8, 0xbb, 0x08, - 0xb8, 0xa4, 0xc2, 0x06, 0x3f, 0xaf, 0xc0, 0x0e, 0xd3, 0x7f, 0x38, 0x17, - 0x3d, 0x04, 0x47, 0x04, 0x35, 0x04, 0x04, 0x41, 0x04, 0x2d, 0x00, 0x20, - 0x48, 0x25, 0x38, 0x04, 0x62, 0x40, 0x40, 0x0f, 0x10, 0x1d, 0x34, 0xff, - 0x13, 0x1b, 0x1b, 0x20, 0x01, 0x13, 0x08, 0x13, 0x1b, 0x1a, 0x1a, 0x20, - 0x05, 0x13, 0x13, 0x8b, 0x28, 0x0d, 0x1e, 0x28, 0x17, 0x15, 0x48, 0x17, - 0xfb, 0x30, 0xd5, 0x34, 0x30, 0xa2, 0x28, 0x1f, 0x06, 0x7f, 0xaf, 0x6e, - 0x28, 0x0f, 0x4a, 0x00, 0x60, 0x75, 0x4f, 0xb5, 0x10, 0x15, 0xf0, 0x7f, - 0x23, 0x57, 0xe1, 0x80, 0x89, 0x61, 0x5b, 0x06, 0x18, 0x0f, 0x98, 0x17, - 0xc4, 0xd6, 0x48, 0xc5, 0x06, 0x70, 0x7d, 0xc1, 0x0f, 0x13, 0x7f, 0x58, - 0x17, 0x2d, 0x00, 0x25, 0x04, 0x43, 0x48, 0x21, 0x88, 0x10, 0x1d, 0xf4, - 0xff, 0x14, 0x19, 0x19, 0x20, 0x01, 0x14, 0x14, 0x19, 0x20, 0x18, 0x17, - 0x20, 0x05, 0x14, 0x14, 0x5e, 0x0d, 0x59, 0x08, 0xcd, 0x00, 0x00, 0x16, - 0x68, 0x17, 0xda, 0x30, 0xc9, 0x28, 0x30, 0xed, 0x28, 0x1f, 0xc7, 0x28, - 0x23, 0xde, 0x30, 0xb3, 0x0d, 0x30, 0xea, 0x30, 0xb9, 0x05, 0x68, 0x25, - 0x78, 0x17, 0x50, 0x2f, 0xaf, 0x54, 0x64, 0x2f, 0xa5, 0x6f, 0x2f, 0xb3, - 0x64, 0x2f, 0xbb, 0x20, 0x00, 0x55, 0x4d, 0x2f, 0xb9, 0x63, 0x20, 0x0f, - 0x72, 0x2f, 0xbd, 0x73, 0x10, 0x14, 0x80, 0x7f, 0x02, 0x23, 0x57, 0x7c, - 0x5f, 0xb7, 0x5f, 0x06, 0xb8, 0x17, 0x98, 0x00, 0xd3, 0xdc, 0xb4, 0x5c, - 0xb8, 0x70, 0xb3, 0xc8, 0x01, 0xb9, 0x54, 0xcf, 0xac, 0xb9, 0xa4, 0xc2, - 0x06, 0x5b, 0x97, 0xc0, 0x0e, 0x73, 0x7f, 0x78, 0x17, 0x1f, 0x04, 0x35, - 0x04, 0x34, 0x04, 0x14, 0x40, 0x04, 0x3e, 0x28, 0x23, 0x34, 0x20, 0x0b, - 0x2d, 0x00, 0x44, 0x1c, 0x28, 0x31, 0x40, 0x04, 0x3a, 0x20, 0x11, 0x40, - 0x04, 0x18, 0x38, 0x04, 0x41, 0x04, 0x68, 0x31, 0x10, 0x16, 0xf4, 0xff, - 0x15, 0x1a, 0x1a, 0x82, 0x20, 0x01, 0x15, 0x15, 0x1a, 0x19, 0x16, 0x20, - 0x05, 0x15, 0x00, 0x15, 0x1e, 0x0d, 0xb9, 0xce, 0x00, 0x00, 0x17, 0x80, - 0x48, 0x17, 0xc6, 0x30, 0xa3, 0x30, 0xa2, 0x30, 0xb4, 0xc5, 0x05, 0x68, - 0x09, 0x00, 0x3f, 0xaf, 0x74, 0x00, 0x69, 0x2f, 0xb7, 0x67, 0x28, 0x15, - 0x80, 0x10, 0x15, 0xf0, 0x7f, 0x23, 0x57, 0x30, 0x57, 0x9a, 0x4e, 0xe5, - 0x40, 0x54, 0x06, 0x78, 0x19, 0xb0, 0xc0, 0xf0, 0xd2, 0x44, 0xc5, 0x38, - 0xe0, 0xac, 0x06, 0x78, 0x97, 0x0e, 0xf3, 0x7f, 0x58, 0x17, 0x42, 0x04, - 0x4c, 0x0c, 0x04, 0x4f, 0x04, 0x33, 0x28, 0x15, 0x10, 0x1d, 0xf4, 0xff, - 0x16, 0x1c, 0x41, 0x1c, 0x20, 0x01, 0x16, 0x16, 0x1c, 0x1b, 0x18, 0x20, - 0x05, 0x00, 0x16, 0x16, 0xd4, 0x0d, 0xba, 0xcd, 0x00, 0x00, 0x40, 0x18, - 0xc8, 0x17, 0xfb, 0x30, 0xed, 0x30, 0xc9, 0x30, 0x06, 0xea, 0x30, 0xb2, - 0x30, 0xb9, 0x05, 0x88, 0x23, 0xf8, 0x17, 0x20, 0x35, 0x00, 0x52, 0x2f, - 0xb3, 0x3f, 0xb9, 0xed, 0x28, 0x27, 0x75, 0x2f, 0xc5, 0x60, 0x7a, 0x10, - 0x14, 0xc0, 0x7f, 0x78, 0x17, 0x2d, 0x00, 0x57, 0x7f, 0xcc, 0x06, 0x91, - 0xd6, 0x76, 0x79, 0x51, 0x05, 0xd8, 0x21, 0x78, 0x17, 0x5c, 0x00, 0xb8, - 0xdc, 0xb4, 0xac, 0xb9, 0x8c, 0xac, 0xa4, 0x71, 0xc2, 0x06, 0xdb, 0x97, - 0x0d, 0xf3, 0x7f, 0xf8, 0x17, 0x2d, 0x00, 0x20, 0x28, 0x1d, 0x04, 0x34, - 0x04, 0x40, 0x04, 0x38, 0x28, 0x27, 0x35, 0x04, 0x62, 0x41, 0x04, 0xe8, - 0x29, 0x10, 0x16, 0xf4, 0xff, 0x17, 0x1d, 0x1d, 0x20, 0x01, 0x17, 0x08, - 0x17, 0x1d, 0x1c, 0x19, 0x20, 0x05, 0x17, 0x17, 0xd7, 0x20, 0x0d, 0x47, - 0x28, 0x17, 0x19, 0x18, 0xd0, 0x30, 0xeb, 0x2d, 0x30, 0xd9, 0x20, 0x03, - 0xc7, 0x05, 0x88, 0x09, 0xdf, 0xff, 0x56, 0x2f, 0xaf, 0x15, 0x6c, 0x00, - 0x76, 0x27, 0xff, 0x72, 0x28, 0x0d, 0x65, 0x10, 0x16, 0x00, 0x7f, 0x03, - 0xf4, 0x5d, 0xe6, 0x97, 0xb7, 0x5f, 0x05, 0xd8, 0x0b, 0xbf, 0xff, 0x00, - 0x1c, 0xbc, 0xa0, 0xbc, 0x74, 0xb9, 0x70, 0xb3, 0xd5, 0x06, 0x70, 0x7f, - 0x0e, 0xf3, 0x7f, 0x12, 0x28, 0x17, 0x3b, 0x28, 0x15, 0x32, 0x28, 0x03, - 0x58, 0x40, 0x28, 0x0f, 0x35, 0x04, 0xe8, 0x07, 0x10, 0x17, 0xf4, 0xff, - 0x18, 0x1e, 0x1e, 0xa8, 0x20, 0x01, 0x18, 0x20, 0x06, 0x04, 0x20, 0x05, - 0x18, 0x18, 0xea, 0x22, 0x0d, 0x74, 0x28, 0x17, 0x1a, 0x18, 0xa8, 0x28, - 0x17, 0xfb, 0x02, 0x30, 0xbb, 0x30, 0xa4, 0x30, 0xdc, 0x06, 0x48, 0x19, - 0x45, 0xab, 0x28, 0x15, 0x20, 0x2f, 0xb5, 0x65, 0x2f, 0x9f, 0x62, 0x2f, - 0xaf, 0x06, 0x90, 0x7f, 0x70, 0x69, 0x06, 0xe0, 0x7f, 0x06, 0xf0, 0xff, - 0x0e, 0x50, 0x7f, 0x5b, 0x8d, 0x21, 0x58, 0x80, 0x06, 0x98, 0x15, 0x00, - 0x00, 0xd8, 0xc5, 0x38, 0xc1, 0x74, 0x1a, 0xc7, 0xf4, 0xbc, 0x06, 0x78, - 0x97, 0x0e, 0xf2, 0xff, 0x2d, 0x48, 0x15, 0x2d, 0x20, 0x00, 0x21, 0x28, - 0x17, 0x39, 0x04, 0x31, 0x04, 0x3e, 0xe2, 0x05, 0xe8, 0x17, 0x10, 0x06, - 0xf3, 0xff, 0x0e, 0xf5, 0x7f, 0x19, 0x07, 0x07, 0x20, 0x01, 0x19, 0xa0, - 0x20, 0x06, 0x1c, 0x20, 0x05, 0x19, 0x19, 0x58, 0x0d, 0xe9, 0x00, 0xce, - 0x00, 0x00, 0x1b, 0x18, 0xa2, 0x30, 0xc8, 0x80, 0x28, 0x17, 0xde, 0x30, - 0xb8, 0x30, 0xe7, 0x30, 0xfc, 0xd4, 0x28, 0x23, 0x05, 0xff, 0xb0, 0x48, - 0x2f, 0xaf, 0x74, 0x28, 0x0f, 0x20, 0x00, 0x54, 0x4d, 0x2f, 0xb9, 0x79, - 0x28, 0x19, 0x72, 0x10, 0x15, 0xc0, 0x7f, 0x3f, 0x96, 0x02, 0x58, 0x62, - 0x6c, 0x9a, 0xa6, 0x7e, 0x06, 0x78, 0x1b, 0x44, 0x00, 0xc5, 0xa0, 0xd1, - 0xc8, 0xb9, 0x94, 0xc6, 0x74, 0x60, 0xb9, 0x06, 0x58, 0x9b, 0x0e, 0xf3, - 0x7f, 0x25, 0x04, 0x30, 0x04, 0x42, 0x8a, 0x28, 0x0d, 0x2d, 0x00, 0x1c, - 0x20, 0x09, 0x39, 0x28, 0x17, 0x40, 0xc5, 0x05, 0xc8, 0x19, 0x10, 0x16, - 0xf4, 0xff, 0x1a, 0x0a, 0x0a, 0x20, 0x01, 0x1a, 0x20, 0x06, 0x41, 0x1b, - 0x20, 0x05, 0x1a, 0x1a, 0x58, 0x0d, 0xc2, 0x28, 0x17, 0x11, 0x1c, 0x18, - 0xe9, 0x28, 0x15, 0xd9, 0x30, 0xac, 0x06, 0x08, 0x0f, 0xa2, 0x7f, 0xff, - 0x4c, 0x28, 0x17, 0x20, 0x00, 0x56, 0x2f, 0xaf, 0x67, 0xc0, 0x28, 0x21, - 0x10, 0x16, 0x10, 0x7f, 0xc9, 0x62, 0xf4, 0x7e, 0xa0, 0x52, 0x80, 0x06, - 0x78, 0x15, 0x00, 0x00, 0x7c, 0xb7, 0xa0, 0xbc, 0x00, 0x68, 0xac, 0x06, - 0x73, 0x7d, 0x0f, 0x13, 0x7f, 0x1b, 0x28, 0x17, 0x2d, 0x00, 0x12, 0x0c, - 0x04, 0x35, 0x04, 0x33, 0x28, 0x21, 0x10, 0x1e, 0x14, 0xff, 0x1b, 0x0e, - 0x05, 0x0e, 0x0f, 0x0e, 0x0e, 0x1b, 0x20, 0x06, 0x09, 0x20, 0x05, 0x00, - 0x1b, 0x1b, 0xaa, 0x0d, 0xdb, 0xcd, 0x00, 0x00, 0x00, 0x1d, 0x18, 0xe2, - 0x30, 0xf3, 0x30, 0xbb, 0x30, 0x01, 0xcb, 0x30, 0xe7, 0x30, 0xfc, 0x30, - 0xeb, 0x28, 0x23, 0x06, 0xce, 0x30, 0xa6, 0x30, 0xa8, 0x20, 0x09, 0x05, - 0x7f, 0xb4, 0x4d, 0x8a, 0x2f, 0xab, 0x6e, 0x00, 0x73, 0x28, 0x17, 0xf1, - 0x4f, 0xab, 0x20, 0x2a, 0x00, 0x4e, 0x2f, 0xbd, 0x75, 0x28, 0x27, 0x6c, - 0x10, 0x15, 0x40, 0x7f, 0x3b, 0x00, 0x4e, 0x59, 0x65, 0x2d, 0x00, 0x59, - 0x74, 0xce, 0x40, 0x9e, 0x06, 0x58, 0x1b, 0xac, 0xba, 0x38, 0xc1, 0xe8, - 0xb1, 0x00, 0x74, 0xb9, 0x78, 0xb1, 0xb0, 0xc6, 0xd8, 0xc5, 0xc0, 0x06, - 0x1b, 0x9d, 0x0e, 0xf3, 0x7f, 0x1c, 0x04, 0x3e, 0x04, 0x3d, 0x04, 0x54, - 0x41, 0x28, 0x17, 0x3d, 0x20, 0x09, 0x40, 0x28, 0x23, 0x1d, 0x04, 0x01, - 0x43, 0x04, 0x4d, 0x04, 0x3b, 0x04, 0x4c, 0x05, 0x48, 0x25, 0x80, 0x10, - 0x16, 0xf4, 0xff, 0x1c, 0x10, 0x10, 0x11, 0x10, 0x10, 0x1c, 0xa0, 0x20, - 0x06, 0x0c, 0x20, 0x05, 0x1c, 0x1c, 0x76, 0x0d, 0xee, 0xa8, 0x28, 0x17, - 0x1e, 0x48, 0x17, 0xc6, 0x28, 0x0f, 0xd7, 0x30, 0xe9, 0x34, 0x30, 0xbf, - 0x05, 0x88, 0x0d, 0xf8, 0x17, 0x74, 0x2f, 0xaf, 0x20, 0x00, 0x5c, 0x50, - 0x28, 0x0b, 0x61, 0x20, 0x0b, 0x05, 0xbf, 0xb7, 0x10, 0x0e, 0xf0, 0x7f, - 0xf6, 0x94, 0x30, 0x71, 0x5c, 0x06, 0x58, 0x11, 0x78, 0x17, 0x4c, 0xd1, - 0x0c, 0xd5, 0x0e, 0x7c, 0xb7, 0xc0, 0xd0, 0x06, 0x50, 0x83, 0x0e, 0xf3, - 0x7f, 0x58, 0x17, 0x42, 0x8a, 0x28, 0x17, 0x2d, 0x00, 0x1f, 0x28, 0x0d, - 0x30, 0x20, 0x0b, 0x30, 0xc0, 0x05, 0x48, 0x11, 0x10, 0x17, 0x54, 0xff, - 0x1d, 0x12, 0x12, 0x13, 0x12, 0x12, 0x50, 0x1d, 0x20, 0x06, 0x0e, 0x20, - 0x05, 0x1d, 0x1d, 0x5e, 0x0d, 0x01, 0x61, 0xce, 0x00, 0x00, 0x1f, 0x18, - 0xb5, 0x28, 0x17, 0x00, 0xfb, 0x30, 0xaf, 0x30, 0xea, 0x30, 0xb9, 0x30, - 0x05, 0xc8, 0x30, 0xd0, 0x30, 0xeb, 0x05, 0xe8, 0x1b, 0x53, 0x28, 0x09, - 0x54, 0x6e, 0x2f, 0xa5, 0x43, 0x2f, 0xab, 0x69, 0x2f, 0xb7, 0x74, 0x00, - 0x1c, 0xf3, 0x00, 0x62, 0x28, 0x1d, 0x05, 0x5f, 0xad, 0x10, 0x0f, 0x10, - 0x7f, 0x23, 0x57, 0x00, 0x4b, 0x51, 0xcc, 0x91, 0xaf, 0x65, 0x1a, 0x59, - 0x20, 0x21, 0x58, 0x06, 0x38, 0x1f, 0xb0, 0xc0, 0x6c, 0xd0, 0xac, 0x01, - 0xb9, 0xa4, 0xc2, 0xa0, 0xd1, 0x1c, 0xbc, 0x06, 0x38, 0x9d, 0xb6, 0x07, - 0x13, 0x7f, 0xe3, 0x2f, 0x31, 0xd3, 0xff, 0x76, 0x40, 0x13, 0x05, 0x5c, - 0xa3, 0x21, 0xa0, 0x28, 0x09, 0x3d, 0x28, 0x13, 0x1a, 0x04, 0x40, 0x04, - 0x38, 0x22, 0x04, 0x41, 0x28, 0x21, 0x3e, 0x04, 0x31, 0x28, 0x1d, 0x3b, - 0x31, 0x04, 0x4c, 0x05, 0x48, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x1e, 0x18, - 0x18, 0x20, 0x01, 0x06, 0x1e, 0x1e, 0x18, 0x1d, 0x15, 0x20, 0x05, 0x20, - 0x07, 0x0d, 0x62, 0x27, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x01, 0x05, 0x05, - 0x20, 0x01, 0x01, 0xa2, 0x20, 0x06, 0x0f, 0x20, 0x05, 0x01, 0x01, 0x02, - 0x30, 0x04, 0x01, 0x41, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x03, - 0x30, 0x04, 0x20, 0x02, 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x04, - 0x90, 0x30, 0x04, 0x03, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, 0x4a, - 0x05, 0x30, 0x04, 0x04, 0x05, 0x20, 0x06, 0x05, 0x20, 0x05, 0x05, 0x11, - 0x05, 0x06, 0x06, 0xd0, 0x01, 0x07, 0x09, 0x09, 0x20, 0x01, 0x50, 0x07, - 0x20, 0x06, 0x1e, 0x20, 0x05, 0x07, 0x07, 0x08, 0x0b, 0x05, 0x0b, 0x0c, - 0x0b, 0x0b, 0x08, 0x20, 0x06, 0x07, 0x20, 0x05, 0x00, 0x08, 0x08, 0x09, - 0x0c, 0x0c, 0x0d, 0x0c, 0x0c, 0x51, 0x09, 0x20, 0x06, 0x08, 0x20, 0x05, - 0x09, 0x09, 0x0a, 0x30, 0x14, 0x28, 0x08, 0x0a, 0x20, 0x06, 0x1d, 0x20, - 0x05, 0x0a, 0x0a, 0x0b, 0x02, 0x0d, 0x0d, 0x0e, 0x0d, 0x0d, 0x0b, 0x20, - 0x06, 0x0a, 0xc0, 0x20, 0x05, 0x20, 0x3c, 0x0f, 0x0f, 0x10, 0x0f, 0x0f, - 0x0c, 0xb0, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x20, 0x3c, 0x11, 0x11, 0x12, - 0x11, 0x2c, 0x11, 0x0d, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x20, 0x2c, 0x13, - 0x13, 0x0a, 0x14, 0x13, 0x13, 0x0e, 0x20, 0x06, 0x10, 0x20, 0x05, 0x0e, - 0x00, 0x0e, 0x0f, 0x14, 0x14, 0x15, 0x14, 0x14, 0x0f, 0xb0, 0x20, 0x06, - 0x11, 0x20, 0x05, 0x20, 0x3c, 0x15, 0x15, 0x16, 0x15, 0x28, 0x15, 0x10, - 0x20, 0x06, 0x12, 0x20, 0x05, 0x10, 0x10, 0x11, 0x02, 0x16, 0x16, 0x0b, - 0x16, 0x16, 0x11, 0x20, 0x06, 0x13, 0xca, 0x20, 0x05, 0x20, 0x4c, 0x17, - 0x17, 0x20, 0x01, 0x12, 0x20, 0x06, 0x14, 0xc8, 0x20, 0x05, 0x29, 0x5c, - 0x1b, 0x1b, 0x20, 0x01, 0x13, 0x13, 0x1b, 0x32, 0x1a, 0x1a, 0x20, 0x05, - 0x20, 0x5c, 0x19, 0x19, 0x20, 0x01, 0x14, 0x0c, 0x14, 0x19, 0x18, 0x17, - 0x20, 0x05, 0x20, 0x5c, 0x1a, 0x1a, 0x83, 0x20, 0x01, 0x15, 0x15, 0x1a, - 0x19, 0x16, 0x20, 0x05, 0x20, 0x5c, 0x20, 0x1c, 0x1c, 0x20, 0x01, 0x16, - 0x16, 0x1c, 0x1b, 0x18, 0x88, 0x20, 0x05, 0x16, 0x16, 0x17, 0x39, 0x94, - 0x1d, 0x17, 0x17, 0x13, 0x1d, 0x1c, 0x19, 0x20, 0x05, 0x17, 0x17, 0x41, - 0x8c, 0x21, 0x9c, 0x14, 0x1e, 0x1e, 0x04, 0x41, 0xa2, 0x19, 0x31, 0x14, - 0x07, 0x19, 0xa2, 0x20, 0x06, 0x1c, 0x20, 0x05, 0x19, 0x19, 0x1a, 0x30, - 0xf4, 0x0a, 0x5c, 0x1a, 0x20, 0x06, 0x1b, 0x20, 0x05, 0x20, 0x74, 0x20, - 0xc2, 0x0e, 0x0e, 0x51, 0x1b, 0x20, 0x06, 0x09, 0x20, 0x05, 0x1b, 0x1b, - 0x1c, 0x20, 0xb2, 0x14, 0x10, 0x10, 0x1c, 0x20, 0x06, 0x0c, 0x20, 0x05, - 0x1c, 0x1c, 0xe0, 0xf9, 0xff, 0xf1, 0xf7, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0xf4, 0xcb, 0x00, - 0x11, 0x18, 0x00, 0x00, 0x30, 0x01, 0x19, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xd9, 0xff, 0x2e, - 0xc8, 0x00, 0x00, 0x00, 0x02, 0x19, 0xd4, 0x30, 0xc1, 0x30, 0xf3, 0x90, - 0x20, 0x03, 0xe3, 0x30, 0x06, 0x58, 0x1f, 0x50, 0x00, 0x69, 0x00, 0x15, - 0x63, 0x00, 0x68, 0x20, 0x05, 0x6e, 0x40, 0x07, 0x61, 0x10, 0x15, 0xe0, - 0x7f, 0x00, 0xae, 0x76, 0xa6, 0x94, 0xe5, 0x67, 0x01, 0x77, 0x81, 0x06, - 0x7b, 0x1d, 0x3c, 0xd5, 0x5c, 0xce, 0x28, 0xcc, 0x06, 0x9b, 0x9b, 0x82, - 0x0e, 0xf3, 0x7f, 0x1f, 0x04, 0x38, 0x04, 0x47, 0x20, 0x03, 0x3d, 0x91, - 0x20, 0x05, 0x30, 0x04, 0x10, 0x1e, 0x14, 0xff, 0x01, 0x13, 0x13, 0x20, - 0x01, 0x52, 0x01, 0x20, 0x06, 0x10, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, - 0x03, 0x00, 0x19, 0xac, 0x30, 0xe9, 0x30, 0xd1, 0x30, 0xb4, 0x28, 0x30, - 0xb9, 0x06, 0x68, 0x17, 0x47, 0x28, 0x09, 0x6c, 0x00, 0xe1, 0x20, 0x00, - 0x70, 0x28, 0x11, 0x67, 0x00, 0x6f, 0x00, 0x73, 0xb1, 0x0e, 0x40, 0x7f, - 0x61, 0xa0, 0xff, 0x39, 0x21, 0x73, 0x00, 0x65, 0x21, 0x15, 0x40, 0x6e, - 0x10, 0x05, 0x21, 0x7f, 0xa0, 0x52, 0xc9, 0x62, 0x15, 0x5e, 0x08, 0x08, - 0x62, 0xaf, 0x65, 0x06, 0x58, 0x1b, 0x08, 0xac, 0x7c, 0x01, 0xb7, 0x0c, - 0xd3, 0xe0, 0xac, 0xa4, 0xc2, 0x10, 0x06, 0x53, 0x7f, 0x54, 0x13, 0x28, - 0x0d, 0x3b, 0x28, 0x11, 0x3f, 0x28, 0x15, 0x33, 0x04, 0x1c, 0x3e, 0x04, - 0x41, 0x05, 0xe8, 0x1b, 0x0f, 0x54, 0xff, 0x10, 0x06, 0x90, 0xff, 0x02, - 0x09, 0x54, 0x09, 0x20, 0x01, 0x02, 0x20, 0x06, 0x03, 0x20, 0x05, 0x02, - 0x02, 0x00, 0x5d, 0xff, 0x49, 0xc0, 0x00, 0x00, 0x04, 0x19, 0x44, 0xa2, - 0x28, 0x11, 0xa2, 0x30, 0xa4, 0x06, 0x68, 0x15, 0x00, 0x00, 0x05, 0x41, - 0x00, 0x7a, 0x00, 0x75, 0x2f, 0xa5, 0x79, 0x10, 0x16, 0x60, 0x7f, 0x03, - 0x3f, 0x96, 0xcf, 0x82, 0x7e, 0x82, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x00, - 0x44, 0xc5, 0x18, 0xc2, 0x44, 0xc5, 0x74, 0xc7, 0xab, 0x10, 0x06, 0x73, - 0x7f, 0x10, 0x28, 0x09, 0x43, 0x28, 0x1b, 0x39, 0x05, 0xe8, 0x0f, 0x10, - 0x17, 0x74, 0xff, 0x14, 0x03, 0x01, 0x01, 0x20, 0x01, 0x03, 0x40, 0x06, - 0x03, 0x03, 0x04, 0x03, 0x03, 0xf4, 0xfd, 0xd6, 0x24, 0x8b, 0x05, 0x19, - 0x00, 0xdc, 0x30, 0xea, 0x30, 0xfc, 0x30, 0xd0, 0x30, 0x50, 0xeb, 0x06, - 0x68, 0x19, 0x42, 0x2f, 0xa3, 0x6c, 0x00, 0xed, 0x00, 0x50, 0x76, 0x2f, - 0xb7, 0x72, 0x10, 0x16, 0x20, 0x7f, 0xbb, 0x73, 0x29, 0x52, 0x08, 0xe6, - 0x74, 0x14, 0x5c, 0x06, 0x78, 0x19, 0xfc, 0xbc, 0xac, 0x06, 0xb9, 0x14, - 0xbc, 0x74, 0xb9, 0x06, 0x7b, 0x97, 0x0e, 0xf3, 0x7f, 0x11, 0x00, 0x04, - 0x3e, 0x04, 0x3b, 0x04, 0x38, 0x04, 0x32, 0xb1, 0x28, 0x1b, 0x40, 0x06, - 0x28, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x04, 0x02, 0x02, 0x20, 0x01, 0x40, - 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, 0xdd, 0xfe, 0x40, 0xd3, 0x2c, - 0xa3, 0x06, 0x19, 0xab, 0x30, 0xcb, 0x30, 0x45, 0xe3, 0x06, 0x88, 0x15, - 0x00, 0x00, 0x43, 0x2f, 0xab, 0xf1, 0x06, 0x68, 0x13, 0x81, 0x10, 0x0f, - 0x30, 0x7f, 0x61, 0x53, 0x3c, 0x5c, 0x9a, 0x4e, 0x06, 0x98, 0x17, 0x0d, - 0x74, 0xce, 0xd0, 0xb0, 0x06, 0x98, 0x15, 0x0f, 0x13, 0x7f, 0x1a, 0x28, - 0x0f, 0x06, 0x3d, 0x04, 0x4c, 0x04, 0x4f, 0x06, 0x48, 0x15, 0x10, 0x17, - 0x14, 0xff, 0x05, 0x2a, 0x03, 0x03, 0x20, 0x01, 0x05, 0x20, 0x06, 0x06, - 0x20, 0x05, 0x05, 0x0a, 0x05, 0x0f, 0xfe, 0xf1, 0x28, 0x17, 0x07, 0x28, - 0x17, 0xeb, 0x30, 0x30, 0xc1, 0x06, 0x88, 0x15, 0x58, 0x17, 0x72, 0x00, - 0x63, 0x00, 0x10, 0x68, 0x00, 0x69, 0x10, 0x16, 0x40, 0x7f, 0x61, 0x53, - 0x14, 0x5c, 0x30, 0x47, 0x59, 0x06, 0x78, 0x15, 0x38, 0x17, 0x74, 0xb9, - 0x58, 0xce, 0xc1, 0x10, 0x06, 0x93, 0x7f, 0x38, 0x17, 0x40, 0x04, 0x47, - 0x04, 0x38, 0x06, 0x48, 0x15, 0x8a, 0x10, 0x17, 0x14, 0xff, 0x06, 0x04, - 0x04, 0x20, 0x01, 0x06, 0x20, 0x06, 0x07, 0x80, 0x20, 0x05, 0x06, 0x06, - 0x91, 0x00, 0xba, 0xc8, 0x00, 0x00, 0x00, 0x08, 0x19, 0xc1, 0x30, 0xf3, - 0x30, 0xdc, 0x0a, 0x30, 0xe9, 0x30, 0xbd, 0x06, 0x68, 0x1b, 0x43, 0x48, - 0x11, 0x6d, 0x08, 0x00, 0x62, 0x00, 0x6f, 0x2f, 0xb3, 0x61, 0x00, 0x7a, - 0xc0, 0x20, 0x07, 0x10, 0x15, 0xb0, 0x7f, 0xa6, 0x94, 0x5a, 0x53, 0xc9, - 0x62, 0x20, 0x22, 0x7d, 0x06, 0x78, 0x19, 0x68, 0xce, 0xf4, 0xbc, 0x7c, - 0x1a, 0xb7, 0x8c, 0xc1, 0x06, 0x9b, 0x97, 0x0e, 0xd3, 0x7f, 0x27, 0x28, - 0x11, 0x3c, 0x08, 0x04, 0x31, 0x04, 0x3e, 0x28, 0x1d, 0x30, 0x04, 0x41, - 0xc5, 0x20, 0x07, 0x10, 0x1d, 0xd4, 0xff, 0x07, 0x05, 0x05, 0x20, 0x01, - 0x07, 0x20, 0x06, 0x41, 0x16, 0x20, 0x05, 0x07, 0x07, 0xd1, 0xfe, 0x16, - 0x28, 0x17, 0x00, 0x09, 0x19, 0xb3, 0x30, 0xc8, 0x30, 0xd1, 0x30, 0x11, - 0xaf, 0x30, 0xb7, 0x06, 0x88, 0x17, 0x6f, 0x00, 0x74, 0x28, 0x13, 0x58, - 0x70, 0x2f, 0xb7, 0x78, 0x06, 0x2f, 0xb3, 0x10, 0x0e, 0xf0, 0x7f, 0xd1, - 0x79, 0x58, 0x04, 0x62, 0x15, 0x5e, 0x0c, 0x5e, 0x06, 0x78, 0x17, 0x54, - 0xcf, 0x03, 0xa0, 0xd1, 0x0d, 0xd3, 0xdc, 0xc2, 0x06, 0x98, 0x17, 0x0e, - 0xd3, 0x7f, 0x55, 0x1a, 0x28, 0x11, 0x42, 0x28, 0x15, 0x3f, 0x28, 0x15, - 0x3a, 0x28, 0x17, 0x62, 0x38, 0x06, 0x08, 0x17, 0x10, 0x16, 0xd4, 0xff, - 0x08, 0x06, 0x06, 0x20, 0x01, 0x08, 0xa0, 0x20, 0x06, 0x08, 0x20, 0x05, - 0x08, 0x08, 0x57, 0xff, 0x19, 0x80, 0x28, 0x17, 0x0a, 0x19, 0xa8, 0x30, - 0xeb, 0x30, 0xfb, 0x08, 0x30, 0xaa, 0x30, 0xed, 0x06, 0x68, 0x17, 0x45, - 0x00, 0x6c, 0x0e, 0x00, 0x20, 0x00, 0x4f, 0x2f, 0xab, 0x05, 0xdf, 0xa7, - 0x10, 0x0f, 0x70, 0x7f, 0xc3, 0x01, 0x57, 0x14, 0x5c, 0x65, 0x59, 0x57, - 0x7f, 0x06, 0x78, 0x17, 0x03, 0xd8, 0xc5, 0x24, 0xc6, 0x5c, 0xb8, 0x06, - 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x00, 0x2d, 0x04, 0x3b, 0x04, 0x4c, 0x04, - 0x2d, 0x00, 0x18, 0x1e, 0x04, 0x40, 0x28, 0x21, 0x10, 0x1e, 0x14, 0xff, - 0x09, 0x07, 0x07, 0xa8, 0x20, 0x01, 0x09, 0x20, 0x06, 0x17, 0x20, 0x05, - 0x09, 0x09, 0xae, 0x02, 0xfd, 0x23, 0xc7, 0x00, 0x00, 0x0b, 0x28, 0x17, - 0xb9, 0x0b, 0x30, 0xe1, 0x30, 0xe9, 0x28, 0x1d, 0xc0, 0x20, 0x09, 0x06, - 0x38, 0x17, 0x05, 0x73, 0x00, 0x6d, 0x00, 0x65, 0x28, 0x17, 0x61, 0x28, - 0x21, 0x50, 0x64, 0x2f, 0xb5, 0x73, 0x10, 0x15, 0xc0, 0x7f, 0xc3, 0x57, - 0xaf, 0x65, 0x00, 0x85, 0x68, 0xc9, 0x62, 0x14, 0x5c, 0xbe, 0x8f, 0x20, - 0xaf, 0x65, 0x06, 0x18, 0x1d, 0xd0, 0xc5, 0xa4, 0xc2, 0x54, 0x01, 0xba, - 0x84, 0xb7, 0xe4, 0xb2, 0xa4, 0xc2, 0x06, 0x5b, 0x97, 0x80, 0x0e, 0xd3, - 0x7f, 0x2d, 0x04, 0x41, 0x04, 0x3c, 0x04, 0x35, 0xab, 0x28, 0x15, 0x30, - 0x48, 0x21, 0x34, 0x20, 0x07, 0x41, 0x05, 0xa8, 0x1f, 0x10, 0x16, 0xf4, - 0xff, 0x15, 0x0a, 0x08, 0x08, 0x20, 0x01, 0x0a, 0x20, 0x06, 0x18, 0x20, - 0x05, 0x04, 0x0a, 0x0a, 0xb3, 0x00, 0x54, 0x28, 0x17, 0x0c, 0x19, 0x06, - 0xb0, 0x30, 0xa2, 0x30, 0xe4, 0x06, 0x48, 0x11, 0x5f, 0xff, 0x47, 0x2c, - 0x00, 0x75, 0x28, 0x11, 0x79, 0x06, 0x08, 0x0f, 0x10, 0x0f, 0x70, 0x7f, - 0xdc, 0x74, 0x31, 0x9a, 0x4e, 0x06, 0x38, 0x0f, 0x7f, 0xff, 0xfc, 0xac, - 0x7c, 0x28, 0x19, 0xc5, 0x06, 0x73, 0x7d, 0x0f, 0x13, 0x7f, 0x13, 0x04, - 0x43, 0x28, 0x11, 0x4f, 0x05, 0xc8, 0x0b, 0xa5, 0x10, 0x17, 0xb4, 0xff, - 0x0b, 0x38, 0x0c, 0x0a, 0x0b, 0x20, 0x06, 0x04, 0x20, 0x05, 0x04, 0x0b, - 0x0b, 0x76, 0xfe, 0x2f, 0x28, 0x17, 0x0d, 0x19, 0x00, 0xa4, 0x30, 0xf3, - 0x30, 0xd0, 0x30, 0xd6, 0x30, 0x55, 0xe9, 0x06, 0x68, 0x19, 0x49, 0x2f, - 0xad, 0x62, 0x2f, 0xab, 0x62, 0x28, 0x1f, 0xc0, 0x3f, 0xb3, 0x10, 0x15, - 0xf0, 0x7f, 0xe0, 0x56, 0xf4, 0x5d, 0x03, 0x5e, 0x20, 0xc9, 0x62, 0x06, - 0x78, 0x19, 0x84, 0xc7, 0x14, 0xbc, 0x80, 0x18, 0xbd, 0x7c, 0xb7, 0x06, - 0x7b, 0x97, 0x0e, 0xf3, 0x7f, 0x18, 0x04, 0x3c, 0x2b, 0x04, 0x31, 0x28, - 0x19, 0x31, 0x28, 0x1f, 0x40, 0x28, 0x21, 0x10, 0x1d, 0xf4, 0xff, 0x4a, - 0x0c, 0x38, 0x0c, 0x0b, 0x0c, 0x20, 0x06, 0x05, 0x20, 0x05, 0x0c, 0x00, - 0x0c, 0x3f, 0x00, 0x74, 0xc8, 0x00, 0x00, 0x0e, 0x0c, 0x19, 0xed, 0x30, - 0xcf, 0x06, 0x68, 0x11, 0x5f, 0xff, 0x4c, 0x00, 0x18, 0x6f, 0x00, 0x6a, - 0x06, 0x28, 0x0f, 0x10, 0x0f, 0x70, 0x7f, 0x1b, 0x6d, 0xc8, 0x61, 0x54, - 0x06, 0x78, 0x13, 0x3f, 0xff, 0x5c, 0xb8, 0x58, 0xd5, 0x10, 0x06, 0xb3, - 0x7f, 0x06, 0x1b, 0x04, 0x3e, 0x04, 0x45, 0x06, 0x28, 0x0f, 0x10, 0x17, - 0x74, 0xff, 0x0d, 0x94, 0x38, 0x0c, 0x0c, 0x0d, 0x20, 0x06, 0x0a, 0x20, - 0x05, 0x0d, 0x0d, 0x01, 0x28, 0xfd, 0xac, 0xc7, 0x00, 0x00, 0x0f, 0x28, - 0x17, 0x01, 0xb9, 0x30, 0xfb, 0x30, 0xea, 0x30, 0xaa, 0x20, 0x07, 0x80, - 0x06, 0x78, 0x17, 0x73, 0x00, 0x20, 0x00, 0x52, 0x00, 0xed, 0xc0, 0x40, - 0x09, 0x10, 0x15, 0xf0, 0x7f, 0x1b, 0x6d, 0xaf, 0x65, 0xcc, 0x91, 0x08, - 0x65, 0x59, 0xaf, 0x65, 0x06, 0x58, 0x1d, 0x5c, 0xb8, 0xa4, 0x00, 0xc2, - 0x20, 0x00, 0xac, 0xb9, 0x24, 0xc6, 0xa4, 0x60, 0xc2, 0x10, 0x06, 0x33, - 0x7f, 0x38, 0x17, 0x41, 0x04, 0x2d, 0x00, 0x20, 0x34, 0x04, 0x38, 0x40, - 0x09, 0x10, 0x1d, 0xf4, 0xff, 0x0e, 0x38, 0x0c, 0x0d, 0x0e, 0xa0, 0x20, - 0x06, 0x09, 0x20, 0x05, 0x0e, 0x0e, 0xb6, 0xfe, 0x75, 0x80, 0x28, 0x17, - 0x10, 0x19, 0xde, 0x30, 0xca, 0x30, 0xd3, 0xd5, 0x06, 0x48, 0x11, 0x5f, - 0xff, 0x4d, 0x2f, 0xab, 0x6e, 0x2f, 0xaf, 0x62, 0x28, 0x17, 0x81, 0x10, - 0x16, 0x30, 0x7f, 0x6c, 0x9a, 0xb3, 0x7e, 0xd4, 0x6b, 0x06, 0x58, 0x13, - 0x81, 0x3f, 0xff, 0xc8, 0xb9, 0x98, 0xb0, 0x44, 0xbe, 0x10, 0x06, 0x93, - 0x7f, 0x05, 0x1c, 0x04, 0x30, 0x04, 0x3d, 0x20, 0x03, 0x31, 0x28, 0x17, - 0xa5, 0x10, 0x1e, 0x34, 0xff, 0x0f, 0x38, 0x0c, 0x0e, 0x0f, 0x20, 0x06, - 0x0b, 0x20, 0x05, 0x00, 0x0f, 0x0f, 0x41, 0xff, 0xcb, 0xc6, 0x00, 0x00, - 0x04, 0x11, 0x19, 0xe2, 0x30, 0xed, 0x28, 0x19, 0xfb, 0x30, 0x00, 0xb5, - 0x30, 0xf3, 0x30, 0xc6, 0x30, 0xa3, 0x30, 0x15, 0xa2, 0x30, 0xb4, 0x05, - 0xc8, 0x25, 0x4d, 0x2f, 0xaf, 0x72, 0x2f, 0xb3, 0x88, 0x38, 0x1b, 0x2d, - 0x00, 0x53, 0x48, 0x25, 0x74, 0x00, 0x69, 0xb6, 0x28, 0x2d, 0x67, 0x2f, - 0xc9, 0x0d, 0xd0, 0x7f, 0x20, 0x0e, 0xe0, 0x7f, 0x06, 0x31, 0xff, 0xab, - 0x00, 0x83, 0x57, 0x7f, 0xb3, 0x7e, 0x2d, 0x00, 0x23, 0x01, 0x57, 0x30, - 0x57, 0x9a, 0x4e, 0xe5, 0x54, 0x05, 0xf8, 0x21, 0x00, 0xa8, 0xba, 0x5c, - 0xb8, 0x98, 0xb0, 0x20, 0x00, 0x00, 0xb0, 0xc0, 0xf0, 0xd2, 0x44, 0xc5, - 0xe0, 0xac, 0xc1, 0x06, 0x1b, 0x97, 0x0e, 0xd3, 0x7f, 0x1c, 0x04, 0x3e, - 0x04, 0x40, 0x20, 0x03, 0x88, 0x38, 0x1b, 0x2d, 0x00, 0x21, 0x48, 0x25, - 0x42, 0x04, 0x4c, 0x0e, 0x04, 0x4f, 0x04, 0x33, 0x20, 0x19, 0x10, 0x05, - 0xd4, 0xff, 0x10, 0x06, 0x30, 0xff, 0x10, 0x94, 0x38, 0x0c, 0x0f, 0x10, - 0x20, 0x06, 0x0c, 0x20, 0x05, 0x10, 0x10, 0x00, 0x5b, 0xfe, 0x74, 0xc8, - 0x00, 0x00, 0x12, 0x19, 0x06, 0xd1, 0x30, 0xb9, 0x30, 0xbf, 0x28, 0x15, - 0x06, 0x7d, 0x2f, 0x50, 0xa3, 0x2f, 0xaf, 0x73, 0x28, 0x09, 0x61, 0x00, - 0x7a, 0x2f, 0xb9, 0x10, 0x16, 0x10, 0x7f, 0x00, 0x15, 0x5e, 0xaf, 0x65, - 0x54, 0x58, 0x28, 0x84, 0xc0, 0x05, 0xf8, 0x0f, 0x7f, 0xff, 0x0c, 0xd3, - 0xa4, 0xc2, 0xc0, 0xd0, 0x2b, 0xac, 0xc0, 0x10, 0x06, 0x73, 0x7f, 0x1f, - 0x28, 0x0f, 0x41, 0x28, 0x09, 0x30, 0x05, 0x62, 0x30, 0x05, 0x28, 0x07, - 0x10, 0x17, 0xf4, 0xff, 0x11, 0x12, 0x12, 0x20, 0x01, 0x11, 0xa0, 0x20, - 0x06, 0x0f, 0x20, 0x05, 0x11, 0x11, 0xf6, 0xfe, 0x8c, 0x80, 0x28, 0x17, - 0x13, 0x19, 0xc8, 0x30, 0xa5, 0x30, 0xf3, 0x02, 0x30, 0xb0, 0x30, 0xe9, - 0x30, 0xef, 0x06, 0x48, 0x1b, 0x54, 0x2a, 0x00, 0x75, 0x2f, 0xab, 0x67, - 0x20, 0x05, 0x72, 0x2f, 0xb1, 0x68, 0xe0, 0x20, 0x0d, 0x05, 0xd8, 0x1d, - 0x10, 0x0e, 0xf0, 0x7f, 0x1a, 0x90, 0xe4, 0x53, 0xc9, 0x10, 0x62, 0xe6, - 0x74, 0x06, 0x78, 0x17, 0x41, 0xd2, 0xf8, 0xad, 0x03, 0x7c, 0xb7, 0xb0, - 0xc6, 0x44, 0xc5, 0x06, 0x5b, 0x99, 0x0e, 0xf3, 0x7f, 0x01, 0x22, 0x04, - 0x43, 0x04, 0x3d, 0x04, 0x3a, 0x20, 0x05, 0x5c, 0x40, 0x28, 0x21, 0x33, - 0x20, 0x0d, 0x05, 0xd8, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x12, 0x17, 0x54, - 0x17, 0x20, 0x01, 0x12, 0x20, 0x06, 0x15, 0x20, 0x05, 0x12, 0x12, 0x10, - 0x1d, 0xff, 0x19, 0x28, 0x17, 0x14, 0x19, 0xb5, 0x30, 0x44, 0xe2, 0x28, - 0x13, 0xfb, 0x30, 0xc1, 0x28, 0x1d, 0xc1, 0x30, 0x51, 0xda, 0x06, 0x08, - 0x1b, 0x5a, 0x2f, 0xaf, 0x6d, 0x00, 0x6f, 0x48, 0x15, 0x15, 0x2d, 0x00, - 0x43, 0x28, 0x19, 0x69, 0x28, 0x27, 0x63, 0x40, 0x07, 0x16, 0x70, 0x00, - 0x65, 0x0d, 0xc0, 0x7f, 0x20, 0x0e, 0xe0, 0x7f, 0x06, 0x31, 0xff, 0x28, - 0x00, 0x84, 0xab, 0x83, 0xc9, 0x62, 0x2d, 0x00, 0xa6, 0x04, 0x94, 0x47, - 0x59, 0x69, 0x4f, 0x06, 0x18, 0x1d, 0xac, 0xc0, 0x00, 0xa8, 0xba, 0x7c, - 0xb7, 0x20, 0x00, 0x5c, 0xce, 0x0d, 0x58, 0xce, 0x98, 0xd3, 0x06, 0x1f, - 0xb0, 0x0e, 0xf3, 0x7f, 0x21, 0x28, 0x0d, 0x10, 0x3c, 0x04, 0x3e, 0x48, - 0x15, 0x2d, 0x00, 0x27, 0x04, 0x51, 0x38, 0x28, 0x25, 0x47, 0x20, 0x05, - 0x3f, 0x04, 0x35, 0x05, 0x48, 0x1f, 0xc5, 0x0f, 0xb4, 0xff, 0x10, 0x06, - 0x30, 0xff, 0x13, 0x18, 0x18, 0x20, 0x01, 0x13, 0x20, 0x06, 0x40, 0x11, - 0x20, 0x05, 0x13, 0x13, 0x1c, 0xfd, 0xdb, 0xc7, 0x01, 0x00, 0x00, 0x15, - 0x19, 0xb9, 0x30, 0xaf, 0x28, 0x11, 0x06, 0xd3, 0x30, 0xaa, 0x30, 0xb9, - 0x06, 0x08, 0x13, 0x3f, 0xff, 0x53, 0xa2, 0x2f, 0xaf, 0x63, 0x2f, 0xb3, - 0x6d, 0x00, 0x62, 0x28, 0x11, 0x6f, 0x28, 0x00, 0x73, 0x06, 0xa0, 0x7f, - 0xed, 0x10, 0x0e, 0x20, 0x7f, 0xcf, 0x82, 0x06, 0x01, 0x66, 0xd5, 0x6b, - 0x65, 0x59, 0xaf, 0x65, 0x06, 0x18, 0x13, 0x80, 0x3f, 0xff, 0xa4, 0xc2, - 0xf0, 0xcf, 0x44, 0xbe, 0x24, 0x18, 0xc6, 0xa4, 0xc2, 0x06, 0x33, 0x7d, - 0x0f, 0x12, 0xff, 0x21, 0x04, 0x43, 0x22, 0x04, 0x3a, 0x20, 0x03, 0x3c, - 0x04, 0x31, 0x28, 0x13, 0x3e, 0x38, 0x04, 0x41, 0x05, 0x48, 0x0d, 0x08, - 0x54, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x14, 0x16, 0x16, 0xa8, 0x20, 0x01, - 0x14, 0x20, 0x06, 0x14, 0x20, 0x05, 0x14, 0x14, 0x0f, 0x00, 0x00, 0x54, - 0xc9, 0x00, 0x00, 0x16, 0x19, 0xca, 0x35, 0x30, 0xdd, 0x06, 0x48, 0x0f, - 0x7f, 0xff, 0x4e, 0x2f, 0xaf, 0x70, 0x2f, 0xaf, 0x86, 0x10, 0x16, 0x70, - 0x7f, 0xb3, 0x7e, 0xe2, 0x6c, 0x06, 0x58, 0x11, 0x5f, 0xff, 0x98, 0x10, - 0xb0, 0xec, 0xd3, 0x10, 0x06, 0xb3, 0x7f, 0x1d, 0x04, 0x30, 0x04, 0x62, - 0x3f, 0x28, 0x0f, 0x10, 0x1e, 0x74, 0xff, 0x15, 0x10, 0x10, 0x20, 0x01, - 0x15, 0xa0, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x15, 0x15, 0x4d, 0xff, 0xaa, - 0x00, 0xc8, 0x00, 0x00, 0x17, 0x19, 0xaa, 0x30, 0xec, 0x02, 0x30, 0xea, - 0x30, 0xe3, 0x30, 0xca, 0x06, 0x68, 0x1d, 0x4f, 0x02, 0x00, 0x72, 0x00, - 0x65, 0x00, 0x6c, 0x20, 0x01, 0x61, 0x30, 0x00, 0x6e, 0x28, 0x23, 0x10, - 0x15, 0xf0, 0x7f, 0x65, 0x59, 0xf7, 0x96, 0x02, 0x29, 0x52, 0x9a, 0x4e, - 0xb3, 0x7e, 0x06, 0x58, 0x1d, 0x24, 0x01, 0xc6, 0x10, 0xb8, 0x7c, 0xb7, - 0x98, 0xb0, 0x06, 0x7b, 0x9b, 0x80, 0x0e, 0xf3, 0x7f, 0x1e, 0x04, 0x40, - 0x04, 0x35, 0x04, 0x3b, 0x03, 0x04, 0x4c, 0x04, 0x4f, 0x04, 0x3d, 0x28, - 0x23, 0x10, 0x1d, 0xf4, 0xff, 0x15, 0x16, 0x11, 0x11, 0x20, 0x01, 0x16, - 0x20, 0x06, 0x0e, 0x20, 0x05, 0x00, 0x16, 0x16, 0x6f, 0xff, 0xb2, 0xc9, - 0x00, 0x00, 0x00, 0x18, 0x19, 0xb5, 0x30, 0xf3, 0x30, 0xbf, 0x30, 0x15, - 0xfb, 0x30, 0xa8, 0x28, 0x1f, 0xfc, 0x06, 0x28, 0x1d, 0x53, 0x48, 0x0f, - 0x45, 0x74, 0x2f, 0xb5, 0x20, 0x00, 0x45, 0x28, 0x1f, 0x65, 0x05, 0xe8, - 0x1d, 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x23, 0x57, 0xc3, 0x57, 0x26, 0x4f, - 0x1c, 0x40, 0x5a, 0x06, 0x58, 0x15, 0x00, 0x00, 0xb0, 0xc0, 0xc0, 0xd0, - 0x0d, 0xd8, 0xc5, 0x08, 0xb8, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x21, - 0x28, 0x0b, 0x11, 0x3d, 0x04, 0x42, 0x28, 0x11, 0x20, 0x00, 0x2d, 0x28, - 0x1f, 0x62, 0x35, 0x05, 0xe8, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x17, 0x14, - 0x14, 0x20, 0x01, 0x17, 0xa0, 0x20, 0x06, 0x12, 0x20, 0x05, 0x17, 0x17, - 0x6b, 0xfe, 0x81, 0x0a, 0xc6, 0x00, 0x00, 0x19, 0x48, 0x17, 0xc8, 0x28, - 0x17, 0xc9, 0x2a, 0x30, 0xdf, 0x28, 0x21, 0xb4, 0x28, 0x21, 0xc7, 0x28, - 0x25, 0xed, 0x20, 0x30, 0xb9, 0x28, 0x2b, 0xc4, 0x30, 0xa1, 0x30, 0xc1, - 0x35, 0x30, 0xe9, 0x20, 0x0b, 0x05, 0x18, 0x17, 0x6f, 0x28, 0x17, 0x44, - 0x20, 0x05, 0x15, 0x6d, 0x00, 0x69, 0x2f, 0xb7, 0x67, 0x40, 0x0f, 0x64, - 0x2f, 0xc9, 0x45, 0x20, 0x2f, 0xcb, 0x6f, 0x00, 0x73, 0x28, 0x35, 0x54, - 0x20, 0x05, 0x06, 0xe1, 0x00, 0x63, 0x00, 0x68, 0x20, 0x21, 0x3f, 0xdd, - 0x73, 0x80, 0x10, 0x13, 0x40, 0x7f, 0x23, 0x57, 0x1a, 0x59, 0x0e, 0x66, - 0x04, 0x00, 0x54, 0x2d, 0x00, 0xb7, 0x5f, 0x1b, 0x6d, 0xaf, 0x00, 0x65, - 0xe5, 0x67, 0x47, 0x59, 0xc9, 0x62, 0xaf, 0x40, 0x65, 0x05, 0x78, 0x27, - 0xb0, 0xc0, 0xa0, 0xd1, 0xc4, 0xb3, 0x00, 0x0d, 0xbc, 0xe0, 0xac, 0x78, - 0xb3, 0x5c, 0xb8, 0x00, 0xa4, 0xc2, 0xb8, 0xd2, 0xac, 0xc0, 0x60, 0xce, - 0x0e, 0x7c, 0xb7, 0xa4, 0xc2, 0x05, 0xdb, 0x97, 0x0e, 0x73, 0x7f, 0x78, - 0x17, 0x3e, 0xa2, 0x28, 0x17, 0x14, 0x20, 0x05, 0x3c, 0x04, 0x38, 0x28, - 0x27, 0x33, 0xa2, 0x40, 0x0f, 0x34, 0x28, 0x25, 0x20, 0x00, 0x3b, 0x20, - 0x1b, 0x41, 0xa2, 0x28, 0x35, 0x22, 0x20, 0x05, 0x30, 0x04, 0x47, 0x20, - 0x1f, 0x3b, 0xb1, 0x28, 0x4b, 0x41, 0x03, 0x68, 0x3b, 0x10, 0x16, 0xf4, - 0xff, 0x18, 0x15, 0x15, 0x20, 0x01, 0x50, 0x18, 0x20, 0x06, 0x13, 0x20, - 0x05, 0x18, 0x18, 0xd3, 0xff, 0x22, 0xb8, 0xc7, 0x00, 0x3f, 0xff, 0x01, - 0x13, 0x13, 0x20, 0x01, 0x01, 0xa0, 0x20, 0x06, 0x10, 0x20, 0x05, 0x01, - 0x01, 0x02, 0x09, 0x09, 0xa8, 0x20, 0x01, 0x02, 0x20, 0x06, 0x03, 0x20, - 0x05, 0x02, 0x02, 0x03, 0x90, 0x30, 0x14, 0x01, 0x03, 0x40, 0x06, 0x03, - 0x03, 0x03, 0x03, 0x48, 0x04, 0x30, 0x14, 0x02, 0x04, 0x40, 0x06, 0x04, - 0x04, 0x04, 0x25, 0x04, 0x05, 0x30, 0x14, 0x03, 0x05, 0x20, 0x06, 0x06, - 0x20, 0x05, 0x12, 0x05, 0x05, 0x06, 0x30, 0x14, 0x04, 0x06, 0x20, 0x06, - 0x07, 0x89, 0x20, 0x05, 0x06, 0x06, 0x07, 0x30, 0x14, 0x05, 0x07, 0x20, - 0x06, 0x44, 0x16, 0x20, 0x05, 0x07, 0x07, 0x08, 0x30, 0x14, 0x06, 0x08, - 0xa2, 0x20, 0x06, 0x08, 0x20, 0x05, 0x08, 0x08, 0x09, 0x30, 0x14, 0x07, - 0x51, 0x09, 0x20, 0x06, 0x17, 0x20, 0x05, 0x09, 0x09, 0x0a, 0x30, 0x14, - 0x28, 0x08, 0x0a, 0x20, 0x06, 0x18, 0x20, 0x05, 0x0a, 0x0a, 0x0b, 0x94, - 0x30, 0x04, 0x0a, 0x0b, 0x20, 0x06, 0x04, 0x20, 0x05, 0x0b, 0x0b, 0x4a, - 0x0c, 0x30, 0x04, 0x0b, 0x0c, 0x20, 0x06, 0x05, 0x20, 0x05, 0x0c, 0x25, - 0x0c, 0x0d, 0x30, 0x04, 0x0c, 0x0d, 0x20, 0x06, 0x0a, 0x20, 0x05, 0x12, - 0x0d, 0x0d, 0x0e, 0x30, 0x04, 0x0d, 0x0e, 0x20, 0x06, 0x09, 0x89, 0x20, - 0x05, 0x0e, 0x0e, 0x0f, 0x30, 0x04, 0x0e, 0x0f, 0x20, 0x06, 0x44, 0x0b, - 0x20, 0x05, 0x0f, 0x0f, 0x10, 0x30, 0x04, 0x0f, 0x10, 0xa0, 0x20, 0x06, - 0x0c, 0x20, 0x05, 0x10, 0x10, 0x11, 0x12, 0x12, 0xae, 0x20, 0x01, 0x11, - 0x20, 0x06, 0x0f, 0x20, 0x05, 0x20, 0x07, 0x39, 0x44, 0x17, 0x51, 0x12, - 0x20, 0x06, 0x15, 0x20, 0x05, 0x12, 0x12, 0x13, 0x31, 0x3c, 0x28, 0x18, - 0x13, 0x20, 0x06, 0x11, 0x20, 0x05, 0x13, 0x13, 0x14, 0x2a, 0x16, 0x16, - 0x20, 0x01, 0x14, 0x20, 0x06, 0x14, 0x20, 0x05, 0x14, 0x25, 0x14, 0x15, - 0x30, 0x44, 0x10, 0x15, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x12, 0x15, 0x15, - 0x16, 0x30, 0x44, 0x11, 0x16, 0x20, 0x06, 0x0e, 0x9c, 0x20, 0x05, 0x16, - 0x16, 0xf9, 0x9f, 0xf1, 0x97, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x64, 0x7a, 0x00, 0x11, 0x0e, 0x00, 0x00, - 0x30, 0x01, 0x1a, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xbf, 0x09, 0x92, 0xc0, 0x00, 0x00, 0x00, - 0x02, 0x1a, 0xb5, 0x30, 0xf3, 0x30, 0xfb, 0x00, 0x30, 0xb5, 0x30, 0xeb, - 0x30, 0xd0, 0x30, 0xc9, 0x90, 0x20, 0x05, 0x0c, 0x77, 0x05, 0xd8, 0x27, - 0x53, 0x00, 0x61, 0x00, 0x11, 0x6e, 0x00, 0x20, 0x40, 0x07, 0x6c, 0x00, - 0x76, 0x20, 0x0d, 0x04, 0x64, 0x00, 0x6f, 0x00, 0x72, 0x10, 0x15, 0x80, - 0x7f, 0x23, 0x57, 0x00, 0x28, 0x84, 0x14, 0x5c, 0xe6, 0x74, 0x1a, 0x59, - 0x60, 0x01, 0x05, 0xe2, 0xf9, 0x5b, 0x98, 0xb0, 0xc0, 0xb4, 0xc0, 0x14, - 0x00, 0xbc, 0xc4, 0xb3, 0x74, 0xb9, 0x20, 0x00, 0xfc, 0x60, 0xc8, 0x06, - 0x1b, 0xa3, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x30, 0x04, 0x3d, 0x20, 0x04, - 0x2d, 0x40, 0x07, 0x3b, 0x04, 0x4c, 0x04, 0x32, 0x81, 0x20, 0x0f, 0x34, - 0x04, 0x3e, 0x04, 0x40, 0x04, 0x10, 0x1d, 0x54, 0xff, 0x14, 0x01, 0x0a, - 0x0a, 0x20, 0x01, 0x01, 0x40, 0x06, 0x01, 0x01, 0x20, 0x01, 0x01, 0x58, - 0x17, 0x03, 0x1a, 0xa2, 0x30, 0xef, 0x03, 0x30, 0xc1, 0x30, 0xe3, 0x30, - 0xd1, 0x28, 0x1f, 0x05, 0xf8, 0x13, 0x82, 0x3f, 0xff, 0x41, 0x00, 0x68, - 0x00, 0x75, 0x28, 0x1b, 0x63, 0x83, 0x20, 0x07, 0x61, 0x00, 0x70, 0x00, - 0xe1, 0x28, 0x25, 0x10, 0x15, 0xb0, 0x7f, 0x00, 0x3f, 0x96, 0xe6, 0x74, - 0xe5, 0x67, 0x58, 0x6f, 0x80, 0x06, 0x58, 0x15, 0x00, 0x00, 0x44, 0xc5, - 0xb0, 0xc6, 0x44, 0x06, 0xc5, 0x28, 0xcc, 0x10, 0xd3, 0x06, 0x58, 0x17, - 0x0e, 0xf3, 0x7f, 0x10, 0x2b, 0x04, 0x43, 0x28, 0x19, 0x47, 0x28, 0x1d, - 0x3f, 0x48, 0x21, 0x10, 0x1d, 0xf4, 0xff, 0x48, 0x02, 0x38, 0x0c, 0x01, - 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x08, 0x02, 0xe6, 0x09, 0x1d, 0x28, - 0x17, 0x04, 0x1a, 0xab, 0x0a, 0x30, 0xd0, 0x30, 0xcb, 0x28, 0x17, 0xb9, - 0x06, 0x48, 0x15, 0x00, 0x2a, 0x00, 0x43, 0x2f, 0xaf, 0x62, 0x2f, 0xb3, - 0xf1, 0x2f, 0xb7, 0x73, 0x80, 0x10, 0x16, 0x20, 0x7f, 0x61, 0x53, 0xe6, - 0x74, 0x3c, 0x5c, 0x9a, 0x10, 0x4e, 0xaf, 0x65, 0x06, 0x58, 0x19, 0x74, - 0xce, 0x14, 0xbc, 0x0d, 0xd0, 0xb0, 0xa4, 0xc2, 0x06, 0x58, 0x15, 0x0f, - 0x13, 0x7f, 0x1a, 0x28, 0x15, 0x46, 0x31, 0x48, 0x11, 0x30, 0x04, 0x41, - 0x06, 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, 0x03, 0x90, 0x38, 0x0c, 0x02, - 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x11, 0xdc, 0x09, 0xf9, 0x28, - 0x17, 0x05, 0x1a, 0xc1, 0x28, 0x13, 0x00, 0xe9, 0x30, 0xc6, 0x30, 0xca, - 0x30, 0xf3, 0x30, 0x54, 0xb4, 0x06, 0x28, 0x1b, 0x43, 0x4f, 0xa7, 0x6c, - 0x2f, 0xb1, 0x74, 0x00, 0x51, 0x65, 0x2f, 0xab, 0x61, 0x2f, 0xaf, 0x67, - 0x00, 0x6f, 0x10, 0x15, 0x80, 0x7f, 0x00, 0xe5, 0x67, 0xc9, 0x62, 0x79, - 0x72, 0x57, 0x53, 0x20, 0x08, 0x62, 0x06, 0x58, 0x17, 0x30, 0xcc, 0x7c, - 0xb7, 0x4c, 0x06, 0xd1, 0xad, 0xb0, 0xe0, 0xac, 0x06, 0x58, 0x19, 0x0e, - 0xf3, 0x7f, 0x27, 0xa2, 0x28, 0x17, 0x3b, 0x28, 0x1b, 0x42, 0x04, 0x35, - 0x48, 0x1b, 0x3d, 0x0d, 0x04, 0x33, 0x04, 0x3e, 0x05, 0xa8, 0x1f, 0x10, - 0x16, 0xf4, 0xff, 0x04, 0x38, 0x0c, 0x28, 0x03, 0x04, 0x20, 0x06, 0x0e, - 0x20, 0x05, 0x04, 0x04, 0xfa, 0x20, 0x09, 0xc3, 0x28, 0x17, 0x06, 0x1a, - 0xaf, 0x30, 0xb9, 0x0b, 0x30, 0xab, 0x30, 0xc8, 0x28, 0x1b, 0xf3, 0x06, - 0x28, 0x15, 0x3f, 0xaf, 0x51, 0x75, 0x2f, 0xa7, 0x63, 0x48, 0x17, 0x6c, - 0x00, 0xe1, 0x28, 0x19, 0x80, 0x10, 0x15, 0xd0, 0x7f, 0x93, 0x5e, 0xaf, - 0x65, 0x61, 0x53, 0x79, 0x10, 0x72, 0x70, 0x51, 0x06, 0x58, 0x17, 0xe0, - 0xcf, 0xa4, 0xc2, 0x03, 0x74, 0xce, 0xc0, 0xd2, 0x80, 0xb7, 0x06, 0x78, - 0x17, 0x0e, 0xd3, 0x7f, 0x01, 0x1a, 0x04, 0x43, 0x04, 0x41, 0x04, 0x3a, - 0x48, 0x19, 0xb4, 0x38, 0x1f, 0x3d, 0x05, 0xa8, 0x13, 0x10, 0x17, 0x34, - 0xff, 0x05, 0x38, 0x0c, 0x04, 0x05, 0xa2, 0x20, 0x06, 0x03, 0x20, 0x05, - 0x05, 0x05, 0xc1, 0x48, 0x17, 0x07, 0x00, 0x1a, 0xe9, 0x30, 0xfb, 0x30, - 0xea, 0x30, 0xd9, 0x02, 0x30, 0xeb, 0x30, 0xbf, 0x30, 0xfc, 0x06, 0x28, - 0x19, 0x4c, 0xa2, 0x2f, 0xad, 0x20, 0x20, 0x05, 0x69, 0x00, 0x62, 0x2f, - 0xaf, 0x72, 0x88, 0x2f, 0xb5, 0x61, 0x00, 0x64, 0x10, 0x15, 0xa0, 0x7f, - 0xc9, 0x62, 0x29, 0x01, 0x52, 0x2f, 0x4f, 0x54, 0x58, 0xb7, 0x5f, 0x06, - 0x58, 0x17, 0x00, 0x7c, 0xb7, 0xac, 0xb9, 0xa0, 0xbc, 0x74, 0xb9, 0x0d, - 0xc0, 0xd0, 0xdc, 0xb4, 0x06, 0x38, 0x19, 0x0e, 0xf3, 0x7f, 0x1b, 0x28, - 0x11, 0x40, 0x2d, 0x20, 0x05, 0x38, 0x04, 0x31, 0x04, 0x35, 0x04, 0x46, - 0x40, 0x28, 0x1d, 0x30, 0x04, 0x34, 0x05, 0xa8, 0x1b, 0x10, 0x16, 0xf4, - 0xff, 0x06, 0x94, 0x38, 0x0c, 0x05, 0x06, 0x20, 0x06, 0x04, 0x20, 0x05, - 0x06, 0x06, 0x14, 0xb9, 0x09, 0x84, 0x28, 0x17, 0x08, 0x28, 0x17, 0xd1, - 0x30, 0x6a, 0xb9, 0x06, 0x28, 0x0f, 0xd8, 0x17, 0x50, 0x2f, 0xaf, 0x7a, - 0x10, 0x16, 0x40, 0x7f, 0xc9, 0x06, 0x62, 0xf4, 0x5d, 0xaf, 0x65, 0x06, - 0x58, 0x13, 0x58, 0x17, 0x0c, 0x1d, 0xd3, 0xa4, 0xc2, 0x06, 0x38, 0x11, - 0x0f, 0x53, 0x7f, 0x58, 0x17, 0x1f, 0x28, 0x1d, 0x69, 0x41, 0x05, 0xa8, - 0x0d, 0x10, 0x17, 0x94, 0xff, 0x07, 0x38, 0x0c, 0x06, 0x07, 0x20, 0x06, - 0x41, 0x05, 0x20, 0x05, 0x07, 0x07, 0x99, 0x09, 0xcf, 0x28, 0x17, 0x40, - 0x09, 0x28, 0x17, 0xfb, 0x30, 0xa6, 0x30, 0xcb, 0x30, 0x18, 0xaa, 0x30, - 0xf3, 0x06, 0x48, 0x1d, 0x5f, 0xaf, 0x55, 0x00, 0x6e, 0xb0, 0x2f, 0xb1, - 0xf3, 0x20, 0x05, 0x10, 0x15, 0xf0, 0x7f, 0xc9, 0x62, 0x4c, 0x4e, 0x08, - 0x3c, 0x5c, 0xc1, 0x7f, 0x06, 0x78, 0x19, 0x7c, 0xb7, 0xb0, 0x07, 0xc6, - 0xc8, 0xb2, 0x28, 0xc6, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x58, 0x17, - 0x01, 0x23, 0x04, 0x3d, 0x04, 0x38, 0x04, 0x3e, 0x20, 0x05, 0xa5, 0x10, - 0x1d, 0xf4, 0xff, 0x08, 0x38, 0x0c, 0x07, 0x08, 0x20, 0x06, 0x06, 0x20, - 0x05, 0x00, 0x08, 0x08, 0x7b, 0x09, 0x89, 0xc1, 0x00, 0x00, 0x01, 0x0a, - 0x1a, 0xe2, 0x30, 0xe9, 0x30, 0xb5, 0x06, 0x68, 0x13, 0x82, 0x3f, 0xff, - 0x4d, 0x00, 0x6f, 0x00, 0x72, 0x4f, 0xad, 0xe1, 0xc0, 0x06, 0x28, 0x15, - 0x10, 0x0f, 0x10, 0x7f, 0xab, 0x83, 0xc9, 0x62, 0x51, 0x68, 0x85, 0x06, - 0x78, 0x15, 0x00, 0x00, 0xa8, 0xba, 0x28, 0x19, 0xc0, 0x06, 0x78, 0x15, - 0xab, 0x0f, 0x13, 0x7f, 0x1c, 0x28, 0x0d, 0x40, 0x28, 0x1b, 0x41, 0x28, - 0x1f, 0x06, 0x18, 0x15, 0xa5, 0x10, 0x17, 0x14, 0xff, 0x09, 0x38, 0x0c, - 0x08, 0x09, 0x20, 0x06, 0x07, 0x20, 0x05, 0x04, 0x09, 0x09, 0xbe, 0x09, - 0x5a, 0x28, 0x17, 0x0b, 0x1a, 0x80, 0x38, 0x13, 0xfb, 0x30, 0xdf, 0x30, - 0xb2, 0x30, 0xeb, 0xaa, 0x06, 0x48, 0x1b, 0x53, 0x2f, 0xaf, 0x6e, 0x2f, - 0xb1, 0x4d, 0x2f, 0xaf, 0x67, 0x02, 0x00, 0x75, 0x00, 0x65, 0x00, 0x6c, - 0x10, 0x15, 0xc0, 0x7f, 0x23, 0x01, 0x57, 0x73, 0x7c, 0x3c, 0x68, 0x14, - 0x5c, 0x06, 0x78, 0x19, 0x03, 0xb0, 0xc0, 0xf8, 0xbb, 0x94, 0xac, 0x06, - 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x50, 0x21, 0x48, 0x0f, 0x2d, 0x28, 0x1f, - 0x38, 0x04, 0x33, 0x04, 0x06, 0x35, 0x04, 0x3b, 0x04, 0x4c, 0x05, 0xc8, - 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x0a, 0x90, 0x38, 0x0c, 0x09, 0x0a, 0x40, - 0x06, 0x0a, 0x0a, 0x0a, 0x0a, 0x15, 0x96, 0x09, 0x4b, 0x28, 0x17, 0x0c, - 0x48, 0x17, 0xbf, 0x28, 0x19, 0x14, 0xa2, 0x30, 0xca, 0x06, 0xa8, 0x17, - 0x74, 0x2f, 0xb1, 0x20, 0x00, 0x50, 0x41, 0x2f, 0xb1, 0x61, 0x10, 0x15, - 0xe0, 0x7f, 0x23, 0x57, 0x89, 0x5b, 0x30, 0x1c, 0x5a, 0x06, 0x78, 0x15, - 0x38, 0x17, 0xc0, 0xd0, 0x44, 0xc5, 0x3a, 0x98, 0xb0, 0x06, 0x78, 0x19, - 0x0e, 0xf3, 0x7f, 0x58, 0x17, 0x42, 0x28, 0x1d, 0x2d, 0x2c, 0x00, 0x10, - 0x28, 0x21, 0x30, 0x05, 0xc8, 0x15, 0x10, 0x17, 0x14, 0xff, 0x0b, 0x0c, - 0x54, 0x0c, 0x20, 0x01, 0x0b, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x0b, 0x0b, - 0x01, 0xf3, 0x09, 0x51, 0xc0, 0x00, 0x00, 0x0d, 0x48, 0x17, 0x14, 0xd3, - 0x30, 0xbb, 0x28, 0x1d, 0xc6, 0x06, 0xa8, 0x17, 0x20, 0x00, 0x5a, 0x56, - 0x2f, 0xaf, 0x63, 0x2f, 0xad, 0x38, 0x23, 0x65, 0x10, 0x15, 0xa0, 0x7f, - 0x23, 0x01, 0x57, 0xf4, 0x7e, 0xee, 0x68, 0x79, 0x72, 0x06, 0x78, 0x19, - 0x00, 0xb0, 0xc0, 0x44, 0xbe, 0x3c, 0xc1, 0x4c, 0xd1, 0xe0, 0x06, 0xd8, - 0x17, 0x0e, 0x93, 0x7f, 0x58, 0x17, 0x2d, 0x00, 0x12, 0x04, 0x38, 0x0b, - 0x04, 0x41, 0x04, 0x35, 0x48, 0x23, 0x35, 0x05, 0xa8, 0x1b, 0x10, 0x16, - 0xf4, 0xff, 0xc8, 0x48, 0x0c, 0x38, 0x15, 0x0b, 0x08, 0x48, 0x22, 0xb1, - 0x09, 0xdb, 0x88, 0x28, 0x17, 0x0e, 0x1a, 0xbd, 0x28, 0x17, 0xbd, 0x30, - 0xca, 0xd5, 0x06, 0x68, 0x15, 0x3f, 0xaf, 0x6f, 0x2f, 0xaf, 0x73, 0x40, - 0x05, 0x61, 0x05, 0xe8, 0x13, 0x81, 0x10, 0x0f, 0x30, 0x7f, 0x7e, 0x67, - 0x22, 0x7d, 0xb3, 0x7e, 0x06, 0x98, 0x17, 0x03, 0x90, 0xc1, 0x8c, 0xc1, - 0x98, 0xb0, 0x06, 0xb8, 0x17, 0x0e, 0xd3, 0x7f, 0x15, 0x21, 0x04, 0x3e, - 0x28, 0x17, 0x41, 0x40, 0x05, 0x30, 0x05, 0xe8, 0x13, 0x94, 0x10, 0x17, - 0x34, 0xff, 0x0d, 0x0d, 0x70, 0x01, 0x0c, 0x40, 0x0a, 0xc1, 0x09, 0x40, - 0x33, 0x28, 0x17, 0x0f, 0x1a, 0xa6, 0x30, 0xb9, 0x30, 0x1a, 0xeb, 0x30, - 0xbf, 0x28, 0x1d, 0x06, 0x58, 0x17, 0x55, 0x28, 0x13, 0x75, 0x23, 0x00, - 0x6c, 0x20, 0x03, 0x74, 0x00, 0xe1, 0x2f, 0xb9, 0x10, 0x15, 0xf0, 0x7f, - 0x00, 0x4c, 0x4e, 0xcf, 0x82, 0x62, 0x53, 0x66, 0x57, 0x80, 0x06, 0x78, - 0x17, 0xb0, 0xc6, 0x20, 0xc2, 0xe8, 0xb8, 0xc4, 0x68, 0xd0, 0x06, 0x78, - 0x17, 0x0e, 0xf3, 0x7f, 0x23, 0x28, 0x13, 0x43, 0x04, 0x3b, 0xac, 0x20, - 0x03, 0x42, 0x28, 0x17, 0x3d, 0x05, 0xe8, 0x15, 0x10, 0x17, 0x14, 0xff, - 0x0e, 0x0e, 0xa1, 0x70, 0x01, 0x0d, 0x40, 0x0a, 0x7e, 0x09, 0x1b, 0xc1, - 0x00, 0x3f, 0xff, 0x14, 0x01, 0x0a, 0x0a, 0x20, 0x01, 0x01, 0x40, 0x06, - 0x01, 0x01, 0x12, 0x01, 0x01, 0x02, 0x30, 0x04, 0x01, 0x02, 0x40, 0x06, - 0x02, 0x09, 0x02, 0x02, 0x02, 0x03, 0x30, 0x04, 0x02, 0x03, 0x40, 0x06, - 0x04, 0x03, 0x03, 0x03, 0x03, 0x04, 0x30, 0x04, 0x03, 0x04, 0xa2, 0x20, - 0x06, 0x0e, 0x20, 0x05, 0x04, 0x04, 0x05, 0x30, 0x04, 0x04, 0x51, 0x05, - 0x20, 0x06, 0x03, 0x20, 0x05, 0x05, 0x05, 0x06, 0x30, 0x04, 0x28, 0x05, - 0x06, 0x20, 0x06, 0x04, 0x20, 0x05, 0x06, 0x06, 0x07, 0x94, 0x30, 0x04, - 0x06, 0x07, 0x20, 0x06, 0x05, 0x20, 0x05, 0x07, 0x07, 0x4a, 0x08, 0x30, - 0x04, 0x07, 0x08, 0x20, 0x06, 0x06, 0x20, 0x05, 0x08, 0x25, 0x08, 0x09, - 0x30, 0x04, 0x08, 0x09, 0x20, 0x06, 0x07, 0x20, 0x05, 0x13, 0x09, 0x09, - 0x0a, 0x30, 0x04, 0x09, 0x0a, 0x40, 0x06, 0x30, 0x9a, 0x15, 0x0b, 0x0c, - 0x0c, 0x20, 0x01, 0x0b, 0x20, 0x06, 0x0b, 0x20, 0x05, 0xe7, 0x20, 0x07, - 0x30, 0x04, 0x30, 0x0d, 0x0b, 0x08, 0x40, 0x1a, 0xf8, 0xff, 0xf0, 0xf7, - 0x80, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x1b, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x82, 0x03, 0xca, - 0xda, 0x00, 0x00, 0x00, 0x01, 0x1b, 0xd5, 0x30, 0xe9, 0x30, 0xf3, 0x00, - 0x30, 0xb9, 0x30, 0x18, 0x98, 0xae, 0x30, 0xa2, 0x10, 0x30, 0xca, 0x30, - 0x05, 0xf8, 0x25, 0x46, 0x00, 0x72, 0x00, 0x00, 0x65, 0x00, 0x6e, 0x00, - 0x63, 0x00, 0x68, 0x00, 0x00, 0x20, 0x00, 0x47, 0x00, 0x75, 0x00, 0x69, - 0x00, 0x5a, 0x61, 0x20, 0x0f, 0x61, 0x05, 0x68, 0xae, 0x30, 0x71, 0x79, - 0x40, 0x71, 0x65, 0xe0, 0x06, 0x49, 0x20, 0x30, 0xff, 0x30, 0xef, 0x7a, - 0x00, 0xf6, 0x00, 0x73, 0xae, 0x20, 0xfb, 0x73, 0x41, 0x09, 0x2d, 0xa0, - 0x97, 0x04, 0xd1, 0x09, 0xb0, 0x67, 0x20, 0xad, 0x80, 0x8d, 0x63, 0x21, - 0x93, 0x73, 0x05, 0x41, 0x11, 0x31, 0xf1, 0x61, 0x00, 0x80, 0x81, 0x80, - 0x05, 0x12, 0x05, 0xd5, 0x6c, 0x5e, 0x5c, 0x2d, 0x57, 0x9a, 0x10, 0x4e, - 0xa3, 0x90, 0x06, 0x5b, 0x1f, 0x04, 0xd5, 0x91, 0xb7, 0x00, 0xa4, 0xc2, - 0x39, 0xb8, 0x20, 0x00, 0x30, 0xae, 0x0b, 0x44, 0xc5, 0x98, 0xb0, 0x06, - 0x72, 0x7f, 0x73, 0x05, 0xa2, 0x73, 0xf3, 0x7f, 0xc0, 0x73, 0xf1, 0x06, - 0x11, 0xfd, 0x00, 0x00, 0x24, 0x04, 0x40, 0x04, 0x00, 0x30, 0x04, 0x3d, - 0x04, 0x46, 0x04, 0x43, 0x04, 0x04, 0x37, 0x04, 0x41, 0x04, 0x3a, 0x20, - 0x0d, 0x4f, 0x04, 0x01, 0x20, 0x00, 0x13, 0x04, 0x32, 0x04, 0x38, 0x40, - 0x19, 0x33, 0x30, 0x04, 0x0c, 0xb4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x01, - 0x01, 0xd0, 0x01, 0x58, 0x17, 0xc0, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x1c, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x91, 0x08, 0x17, 0xd4, 0x00, 0x00, 0x00, 0x01, 0x1c, 0xb0, 0x30, - 0xec, 0x30, 0xca, 0x10, 0x30, 0xc0, 0x30, 0x06, 0x78, 0x1d, 0x47, 0x00, - 0x72, 0x00, 0x01, 0x65, 0x00, 0x6e, 0x00, 0x61, 0x00, 0x64, 0x20, 0x03, - 0xb4, 0x06, 0xd0, 0x7f, 0x65, 0x0e, 0xe0, 0xff, 0x06, 0x71, 0x7f, 0x61, - 0x06, 0xa1, 0xff, 0x3c, 0x68, 0x02, 0x97, 0x67, 0xb3, 0x7e, 0xbe, 0x8f, - 0x06, 0x7b, 0x1d, 0xf8, 0x01, 0xad, 0x08, 0xb8, 0x98, 0xb0, 0xe4, 0xb2, - 0x0e, 0xb3, 0x7f, 0x80, 0x06, 0xb1, 0xff, 0x13, 0x04, 0x40, 0x04, 0x35, - 0x04, 0x3d, 0x0e, 0x04, 0x30, 0x04, 0x34, 0x20, 0x03, 0x10, 0x06, 0x53, - 0xff, 0x10, 0x06, 0xb0, 0xff, 0x01, 0x78, 0x01, 0xd0, 0x01, 0x58, 0x17, - 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x1d, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x60, 0x0b, 0x1d, 0xd4, 0x00, 0x00, 0x00, 0x01, 0x1d, 0xb0, 0x30, - 0xa2, 0x30, 0xc9, 0x01, 0x30, 0xeb, 0x30, 0xfc, 0x30, 0xd7, 0x30, 0x06, - 0x38, 0x21, 0x00, 0x47, 0x00, 0x75, 0x00, 0x61, 0x00, 0x64, 0x00, 0x05, - 0x65, 0x00, 0x6c, 0x00, 0x6f, 0x20, 0x0b, 0x70, 0x20, 0x09, 0xb7, 0x10, - 0x06, 0x30, 0x7f, 0x61, 0x21, 0x7f, 0x31, 0x7d, 0x61, 0x06, 0x61, 0xff, - 0x70, 0x7f, 0x05, 0xd1, 0xfd, 0x00, 0x00, 0x00, 0xdc, 0x74, 0xb7, 0x5f, - 0x57, 0x7f, 0x20, 0x6e, 0x66, 0x06, 0x7b, 0x1d, 0xfc, 0xac, 0xe4, 0xb4, - 0xe8, 0x1c, 0xb8, 0x04, 0xd5, 0x06, 0x7b, 0x9d, 0x07, 0xf2, 0x7f, 0x05, - 0xf1, 0xff, 0x13, 0x04, 0x00, 0x32, 0x04, 0x30, 0x04, 0x34, 0x04, 0x35, - 0x04, 0x07, 0x3b, 0x04, 0x43, 0x04, 0x3f, 0x20, 0x0b, 0x10, 0x0e, 0x54, - 0xff, 0x0e, 0x76, 0x7f, 0x3c, 0x01, 0x01, 0xd0, 0x01, 0x58, 0x17, 0x01, - 0x10, 0x27, 0x3f, 0xff, 0x11, 0xa4, 0xbb, 0x00, 0x11, 0x16, 0x00, 0x00, - 0x30, 0x01, 0x1e, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x65, 0x0a, 0xa1, 0xbf, 0x00, 0x00, 0x00, - 0x02, 0x1e, 0xb0, 0x30, 0xa2, 0x30, 0xc6, 0x01, 0x30, 0xde, 0x30, 0xe9, - 0x30, 0x0c, 0x77, 0x06, 0x38, 0x21, 0x00, 0x47, 0x00, 0x75, 0x00, 0x61, - 0x00, 0x74, 0x00, 0x16, 0x65, 0x00, 0x6d, 0x20, 0x07, 0x6c, 0x20, 0x0b, - 0x10, 0x15, 0xd0, 0x7f, 0x71, 0x00, 0x53, 0x30, 0x57, 0x6c, 0x9a, 0xc9, - 0x62, 0x01, 0x80, 0x06, 0x42, 0xfd, 0x00, 0x00, 0xfc, 0xac, 0x4c, 0xd1, - 0xd0, 0x01, 0xb9, 0x7c, 0xb7, 0x20, 0x00, 0xfc, 0xc8, 0x10, 0x06, 0x33, - 0x7f, 0x00, 0x13, 0x04, 0x32, 0x04, 0x30, 0x04, 0x42, 0x04, 0x16, 0x35, - 0x04, 0x3c, 0x20, 0x07, 0x3b, 0x20, 0x0b, 0x10, 0x1d, 0xd4, 0xff, 0x01, - 0x00, 0x07, 0x09, 0x09, 0x07, 0x07, 0x01, 0x01, 0x07, 0x24, 0x07, 0x03, - 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x1e, 0x00, 0xa2, 0x30, 0xeb, - 0x30, 0xbf, 0x30, 0xfb, 0x30, 0x45, 0x79, 0x28, 0x19, 0xd1, 0x30, 0xb9, - 0x06, 0x08, 0x1d, 0x41, 0x28, 0x0b, 0x45, 0x74, 0x28, 0x19, 0x20, 0x00, - 0x56, 0x28, 0x1b, 0x72, 0x28, 0x23, 0x50, 0x70, 0x28, 0x27, 0x7a, 0x10, - 0x15, 0x80, 0x7f, 0x0a, 0x4e, 0xe6, 0x97, 0x02, 0xc9, 0x62, 0x15, 0x5e, - 0xaf, 0x65, 0x06, 0x58, 0x19, 0x4c, 0x00, 0xc5, 0xc0, 0xd0, 0xa0, 0xbc, - 0x7c, 0xb7, 0x0c, 0x1a, 0xd3, 0xa4, 0xc2, 0x06, 0x38, 0x1b, 0x0e, 0xf3, - 0x7f, 0x10, 0x28, 0x0b, 0x4c, 0x82, 0x28, 0x17, 0x30, 0x04, 0x2d, 0x00, - 0x12, 0x28, 0x1d, 0x40, 0xad, 0x28, 0x25, 0x3f, 0x28, 0x29, 0x41, 0x05, - 0x68, 0x1f, 0x10, 0x16, 0xf4, 0xff, 0x02, 0x38, 0x0c, 0x24, 0x01, 0x02, - 0x40, 0x06, 0x02, 0x02, 0x20, 0x01, 0x0b, 0xbe, 0x82, 0x28, 0x17, 0x04, - 0x1e, 0xd0, 0x30, 0xcf, 0x06, 0xa8, 0x15, 0x00, 0x2d, 0x00, 0x42, 0x2f, - 0xad, 0x6a, 0x06, 0xa8, 0x17, 0x10, 0x0e, 0xf0, 0x7f, 0x0b, 0x06, 0xe8, - 0x17, 0x0d, 0x14, 0xbc, 0x58, 0xd5, 0x06, 0xb8, 0x17, 0x0e, 0xf3, 0x7f, - 0x11, 0x28, 0x11, 0x6a, 0x45, 0x06, 0x88, 0x15, 0x10, 0x17, 0x14, 0xff, - 0x03, 0x48, 0x0c, 0x03, 0x40, 0x06, 0x03, 0x02, 0x03, 0x03, 0x03, 0xbc, - 0x0a, 0xd0, 0x28, 0x17, 0x05, 0x00, 0x1e, 0xc1, 0x30, 0xde, 0x30, 0xeb, - 0x30, 0xc6, 0x02, 0x30, 0xca, 0x30, 0xf3, 0x30, 0xb4, 0x06, 0x28, 0x17, - 0x43, 0x03, 0x00, 0x68, 0x00, 0x69, 0x00, 0x6d, 0x2f, 0xb1, 0x3f, 0xb7, - 0x10, 0x65, 0x00, 0x6e, 0x2f, 0xbb, 0x6e, 0x00, 0x67, 0x00, 0x40, 0x6f, - 0x10, 0x15, 0x60, 0x7f, 0x47, 0x59, 0x6c, 0x9a, 0x14, 0x5c, 0x02, 0x79, - 0x72, 0x57, 0x53, 0x08, 0x62, 0x06, 0x38, 0x19, 0x58, 0x00, 0xce, 0xd0, - 0xb9, 0x4c, 0xd1, 0xad, 0xb0, 0xe0, 0x60, 0xac, 0x06, 0x38, 0x15, 0x0f, - 0x13, 0x7f, 0x27, 0x04, 0x38, 0x04, 0x3c, 0x82, 0x28, 0x1b, 0x3b, 0x04, - 0x4c, 0x04, 0x42, 0x28, 0x19, 0x3d, 0x83, 0x28, 0x27, 0x3d, 0x04, 0x33, - 0x04, 0x3e, 0x05, 0x68, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x4a, 0x04, 0x38, - 0x0c, 0x03, 0x04, 0x20, 0x06, 0x14, 0x20, 0x05, 0x04, 0x0a, 0x04, 0x6e, - 0x0a, 0x6c, 0x28, 0x17, 0x06, 0x28, 0x17, 0xad, 0x0c, 0x30, 0xe0, 0x30, - 0xe9, 0x06, 0x28, 0x11, 0xb8, 0x17, 0x71, 0x00, 0x54, 0x75, 0x48, 0x1d, - 0x75, 0x28, 0x1d, 0x61, 0x10, 0x15, 0xc0, 0x7f, 0x47, 0x59, 0x06, 0xfa, - 0x57, 0x46, 0x7a, 0xc9, 0x06, 0x48, 0x13, 0x58, 0x17, 0xa4, 0x07, 0xd0, - 0x3c, 0xbb, 0x7c, 0xb7, 0x06, 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x38, 0x17, - 0x56, 0x3a, 0x48, 0x1b, 0x43, 0x28, 0x1b, 0x30, 0x05, 0x68, 0x0d, 0x10, - 0x17, 0x94, 0xff, 0x05, 0x94, 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x13, - 0x20, 0x05, 0x05, 0x05, 0x00, 0x86, 0x0a, 0x52, 0xc0, 0x00, 0x00, 0x07, - 0x1e, 0x00, 0xa8, 0x30, 0xeb, 0x30, 0xfb, 0x30, 0xd7, 0x30, 0x01, 0xed, - 0x30, 0xb0, 0x30, 0xec, 0x30, 0xbd, 0x06, 0x08, 0x1f, 0x41, 0x45, 0x2f, - 0xa7, 0x20, 0x00, 0x50, 0x00, 0x72, 0x2f, 0xa1, 0x46, 0x67, 0x20, 0x05, - 0x65, 0x00, 0x73, 0x05, 0x8f, 0xab, 0x10, 0x0f, 0x30, 0x7f, 0xc3, 0x00, - 0x57, 0x14, 0x5c, 0x6e, 0x66, 0x57, 0x7f, 0x3c, 0x04, 0x68, 0xf7, 0x96, - 0x22, 0x7d, 0x06, 0x18, 0x1d, 0xd8, 0xc5, 0x00, 0x04, 0xd5, 0x5c, 0xb8, - 0xf8, 0xad, 0x08, 0xb8, 0x34, 0x8c, 0xc1, 0x06, 0x38, 0x1b, 0x0e, 0xf3, - 0x7f, 0x2d, 0x28, 0x0d, 0x4c, 0x04, 0x00, 0x2d, 0x00, 0x1f, 0x04, 0x40, - 0x04, 0x3e, 0x04, 0x46, 0x33, 0x20, 0x05, 0x35, 0x04, 0x41, 0x20, 0x09, - 0x10, 0x1d, 0x74, 0xff, 0x06, 0x0a, 0x05, 0x06, 0x06, 0x05, 0x40, 0x03, - 0x15, 0x20, 0x09, 0x06, 0x00, 0x06, 0x90, 0x0a, 0xf5, 0xbf, 0x00, 0x00, - 0x08, 0x80, 0x28, 0x17, 0xb9, 0x30, 0xaf, 0x30, 0xa3, 0x30, 0xf3, 0x0c, - 0x30, 0xc8, 0x30, 0xe9, 0x06, 0x08, 0x15, 0x38, 0x17, 0x73, 0x00, 0x46, - 0x63, 0x4f, 0xad, 0x6e, 0x00, 0x74, 0x06, 0x0f, 0xad, 0x10, 0x0f, 0x10, - 0x7f, 0xc3, 0x00, 0x57, 0xaf, 0x65, 0x06, 0x66, 0x79, 0x72, 0xc9, 0x60, - 0x62, 0x06, 0x18, 0x13, 0x3f, 0xff, 0xd0, 0xc5, 0xa4, 0xc2, 0xe0, 0x01, - 0xcf, 0x78, 0xc7, 0xc0, 0xd2, 0x7c, 0xb7, 0x06, 0x58, 0x17, 0xa0, 0x0e, - 0xd3, 0x7f, 0x2d, 0x28, 0x05, 0x3a, 0x04, 0x43, 0x04, 0x38, 0x0b, 0x04, - 0x3d, 0x04, 0x42, 0x28, 0x23, 0x30, 0x05, 0x88, 0x11, 0x10, 0x17, 0x54, - 0xff, 0x00, 0x07, 0x06, 0x08, 0x08, 0x06, 0x06, 0x07, 0x07, 0x10, 0x06, - 0x06, 0x16, 0x20, 0x05, 0x07, 0x07, 0x2c, 0x0a, 0x40, 0x72, 0x28, 0x17, - 0x09, 0x1e, 0xa6, 0x30, 0xa7, 0x30, 0x8a, 0x30, 0x03, 0xc6, 0x30, 0xca, - 0x28, 0x1b, 0xb4, 0x06, 0x08, 0x19, 0x48, 0x8a, 0x28, 0x13, 0x65, 0x00, - 0x68, 0x40, 0x05, 0x74, 0x2f, 0xad, 0x6e, 0xb8, 0x28, 0x19, 0x6e, 0x2f, - 0xb9, 0x05, 0x7f, 0xb3, 0x10, 0x0e, 0xf0, 0x7f, 0xe6, 0x97, 0xe6, 0x02, - 0x97, 0x79, 0x72, 0x57, 0x53, 0x08, 0x06, 0x68, 0x17, 0xb0, 0x10, 0xc6, - 0xd0, 0xc5, 0x30, 0x03, 0x4c, 0xd1, 0xad, 0xb0, 0x31, 0xe0, 0xac, 0x06, - 0x18, 0x19, 0x0e, 0xf3, 0x7f, 0x23, 0x04, 0x4d, 0x28, 0x15, 0x54, 0x4d, - 0x28, 0x13, 0x35, 0x28, 0x19, 0x30, 0x28, 0x1d, 0x33, 0x04, 0x60, 0x3e, - 0x05, 0xa8, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x08, 0x08, 0x0a, 0x0a, 0x08, - 0x50, 0x08, 0x30, 0x01, 0x10, 0x40, 0x06, 0xe4, 0x0a, 0xf5, 0xbe, 0x00, - 0x00, 0x00, 0x0a, 0x1e, 0xa4, 0x30, 0xb6, 0x30, 0x18, 0xd0, 0x30, 0xeb, - 0x06, 0x08, 0x0f, 0x7f, 0xff, 0x49, 0x00, 0x7a, 0xa8, 0x2f, 0xa3, 0x62, - 0x2f, 0xa7, 0x6c, 0x10, 0x16, 0x40, 0x7f, 0x0a, 0x4f, 0x28, 0x04, 0x84, - 0xe6, 0x74, 0x14, 0x5c, 0x06, 0x58, 0x15, 0x00, 0x00, 0x03, 0x74, 0xc7, - 0xac, 0xc0, 0x1c, 0xbc, 0x06, 0x18, 0x0f, 0x0f, 0x73, 0x7f, 0x14, 0x18, - 0x04, 0x41, 0x28, 0x0d, 0x31, 0x28, 0x11, 0x3b, 0x04, 0x60, 0x4c, 0x05, - 0xa8, 0x0f, 0x10, 0x17, 0x74, 0xff, 0x09, 0x09, 0x0b, 0x0b, 0x09, 0x50, - 0x09, 0x30, 0x01, 0x04, 0x40, 0x06, 0x2d, 0x0b, 0xff, 0xc0, 0x00, 0x00, - 0x00, 0x0b, 0x1e, 0xcf, 0x30, 0xe9, 0x30, 0x44, 0xd1, 0x06, 0x88, 0x15, - 0x00, 0x00, 0x4a, 0x48, 0x11, 0x61, 0x00, 0x60, 0x70, 0x2f, 0xa7, 0x10, - 0x16, 0x30, 0x7f, 0xc8, 0x54, 0xc9, 0x62, 0x15, 0x40, 0x5e, 0x06, 0x78, - 0x15, 0x00, 0x00, 0x60, 0xd5, 0x7c, 0xb7, 0x34, 0x0c, 0xd3, 0x06, 0x98, - 0x17, 0x0e, 0xf3, 0x7f, 0x25, 0x48, 0x11, 0x30, 0x04, 0x60, 0x3f, 0x28, - 0x1d, 0x10, 0x1e, 0x34, 0xff, 0x0a, 0x0a, 0x0c, 0x0c, 0x0a, 0x51, 0x0a, - 0x30, 0x01, 0x11, 0x40, 0x06, 0x67, 0x0a, 0x04, 0x28, 0x17, 0x00, 0x0c, - 0x1e, 0xd5, 0x30, 0xc6, 0x30, 0xa3, 0x30, 0x40, 0xa2, 0x06, 0x88, 0x1b, - 0x4a, 0x00, 0x75, 0x00, 0x74, 0x00, 0x60, 0x69, 0x06, 0x88, 0x19, 0x10, - 0x0e, 0xf0, 0x7f, 0xe1, 0x80, 0x82, 0x84, 0x9a, 0x40, 0x4e, 0x06, 0x98, - 0x19, 0xc4, 0xd6, 0xf0, 0xd2, 0x44, 0xc5, 0xc0, 0x06, 0x98, 0x19, 0x0e, - 0xf3, 0x7f, 0x25, 0x04, 0x43, 0x04, 0x42, 0x04, 0x18, 0x4c, 0x04, 0x4f, - 0x06, 0x68, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x0b, 0x0b, 0x0d, 0x14, 0x0d, - 0x0b, 0x0b, 0x30, 0x01, 0x12, 0x40, 0x06, 0x28, 0x0a, 0x40, 0x13, 0x28, - 0x17, 0x0d, 0x1e, 0xa8, 0x30, 0xeb, 0x30, 0x14, 0xfb, 0x30, 0xda, 0x28, - 0x1d, 0xf3, 0x06, 0x48, 0x19, 0x50, 0x00, 0x45, 0x65, 0x28, 0x17, 0xe9, - 0x00, 0x6e, 0x06, 0x6d, 0xb0, 0x45, 0x2f, 0xad, 0x78, 0x20, 0x06, 0xa0, - 0x85, 0x06, 0xf0, 0x7f, 0x06, 0xf1, 0x7f, 0x06, 0xf1, 0xff, 0x69, 0x4f, - 0xd5, 0x61, 0x6e, 0x06, 0x78, 0x13, 0x3f, 0xff, 0x98, 0xd3, 0x50, 0xd1, - 0x06, 0x78, 0x13, 0x88, 0x0f, 0x31, 0xff, 0x1f, 0x04, 0x35, 0x28, 0x17, - 0x35, 0x04, 0x3d, 0xe0, 0x06, 0x28, 0x13, 0x0f, 0x33, 0x7f, 0x10, 0x06, - 0xf0, 0xff, 0x0c, 0x0c, 0x05, 0x05, 0x0c, 0x51, 0x0c, 0x30, 0x01, 0x07, - 0x40, 0x06, 0x0a, 0x0c, 0x16, 0x28, 0x17, 0x01, 0x0e, 0x1e, 0xb1, 0x30, - 0xc4, 0x30, 0xa1, 0x28, 0x1b, 0x15, 0xc6, 0x30, 0xca, 0x28, 0x19, 0xb4, - 0x06, 0x08, 0x1b, 0x51, 0x2f, 0xaf, 0xaa, 0x38, 0x19, 0x7a, 0x2f, 0xb1, - 0x6c, 0x2f, 0xb9, 0x65, 0x28, 0x21, 0x61, 0x88, 0x28, 0x25, 0x67, 0x00, - 0x6f, 0x10, 0x15, 0x40, 0x7f, 0x4b, 0x51, 0x28, 0x00, 0x84, 0x14, 0x5c, - 0x79, 0x72, 0x57, 0x53, 0x08, 0x40, 0x62, 0x06, 0x48, 0x1f, 0xcf, 0xb8, - 0xd2, 0xb4, 0xc0, 0x4c, 0x06, 0xd1, 0xad, 0xb0, 0xe0, 0xac, 0x06, 0x38, - 0x1f, 0x0e, 0xf3, 0x7f, 0x1a, 0x80, 0x28, 0x17, 0x46, 0x04, 0x30, 0x04, - 0x3b, 0x04, 0x4c, 0xa3, 0x68, 0x1f, 0x30, 0x28, 0x23, 0x33, 0x04, 0x3e, - 0x05, 0x68, 0x27, 0x10, 0x16, 0xf4, 0xff, 0x02, 0x0d, 0x0d, 0x0e, 0x0e, - 0x0d, 0x0d, 0x30, 0x01, 0x05, 0x80, 0x40, 0x06, 0x8c, 0x0a, 0xec, 0xbe, - 0x00, 0x00, 0x0f, 0x20, 0x1e, 0xa8, 0x28, 0x13, 0xfb, 0x30, 0xad, 0x30, - 0xc1, 0x30, 0x30, 0xa7, 0x06, 0x08, 0x13, 0x78, 0x17, 0x69, 0x00, 0x63, - 0x00, 0x7f, 0x68, 0x2f, 0xad, 0x06, 0x3e, 0xb2, 0x5f, 0xaf, 0x06, 0x90, - 0x85, 0x06, 0xf0, 0x7f, 0x06, 0xf1, 0x7f, 0x06, 0xf1, 0xff, 0x0c, 0xfa, - 0x57, 0x07, 0x52, 0x06, 0x48, 0x0f, 0x6f, 0xff, 0xa4, 0xd0, 0x30, 0xb4, - 0xcc, 0x06, 0x38, 0x0f, 0x0f, 0x71, 0xff, 0x1a, 0x04, 0x38, 0x04, 0x70, - 0x47, 0x28, 0x1b, 0x10, 0x06, 0x71, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x0e, - 0x0e, 0x07, 0x07, 0x28, 0x0e, 0x0e, 0x30, 0x01, 0x06, 0x40, 0x06, 0xb0, - 0x0a, 0x2f, 0x00, 0xbf, 0x00, 0x00, 0x10, 0x1e, 0xec, 0x30, 0xbf, 0x82, - 0x28, 0x19, 0xfc, 0x30, 0xec, 0x30, 0xa6, 0x06, 0x48, 0x17, 0x52, 0xd5, - 0x4f, 0xad, 0x3f, 0xab, 0x68, 0x2f, 0xb9, 0x6c, 0x2f, 0xbb, 0x75, 0x10, - 0x15, 0xc0, 0x7f, 0x00, 0xf7, 0x96, 0x54, 0x58, 0x62, 0x53, 0xb1, 0x83, - 0x20, 0x4c, 0x4e, 0x06, 0x58, 0x1d, 0x08, 0xb8, 0xc8, 0xd0, 0xf0, 0x06, - 0xb8, 0x08, 0xb8, 0xb0, 0xc6, 0x06, 0x58, 0x1d, 0x0e, 0xf3, 0x7f, 0x20, - 0x80, 0x28, 0x13, 0x42, 0x04, 0x30, 0x04, 0x3b, 0x04, 0x43, 0xb2, 0x20, - 0x03, 0x35, 0x20, 0x05, 0x10, 0x1d, 0xd4, 0xff, 0x0f, 0x0f, 0x70, 0x01, - 0x08, 0x80, 0x40, 0x0a, 0x55, 0x0a, 0xce, 0xbe, 0x00, 0x00, 0x11, 0x00, - 0x1e, 0xb5, 0x30, 0xab, 0x30, 0xc6, 0x30, 0xda, 0x0a, 0x30, 0xb1, 0x30, - 0xb9, 0x06, 0x48, 0x17, 0x53, 0x28, 0x13, 0x63, 0xaa, 0x28, 0x17, 0x74, - 0x28, 0x1f, 0x70, 0x2f, 0xad, 0x71, 0x2f, 0xb9, 0x65, 0x20, 0x00, 0x7a, - 0x10, 0x15, 0x80, 0x7f, 0x28, 0x84, 0x61, 0x53, 0x79, 0x01, 0x72, 0x69, - 0x4f, 0x4b, 0x51, 0xaf, 0x65, 0x06, 0x38, 0x19, 0x00, 0xac, 0xc0, 0x74, - 0xce, 0x4c, 0xd1, 0x98, 0xd3, 0x0d, 0x00, 0xcf, 0xa4, 0xc2, 0x06, 0x38, - 0x19, 0x0e, 0xf3, 0x7f, 0x21, 0x28, 0x13, 0x55, 0x3a, 0x28, 0x17, 0x42, - 0x28, 0x1f, 0x3f, 0x28, 0x23, 0x3a, 0x28, 0x27, 0x65, 0x41, 0x05, 0xa8, - 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x10, 0x10, 0x70, 0x01, 0x0a, 0x40, 0x0a, - 0x01, 0x5a, 0x0a, 0x7b, 0xbf, 0x00, 0x00, 0x12, 0x28, 0x17, 0x00, 0xf3, - 0x30, 0xfb, 0x30, 0xde, 0x30, 0xeb, 0x30, 0x60, 0xb3, 0x06, 0x48, 0x19, - 0x38, 0x17, 0x6e, 0x00, 0x20, 0x00, 0x4d, 0xa2, 0x2f, 0xb3, 0x72, 0x28, - 0x21, 0x6f, 0x00, 0x73, 0x10, 0x15, 0xc0, 0x7f, 0x23, 0x06, 0x57, 0x6c, - 0x9a, 0xd1, 0x79, 0x06, 0x58, 0x13, 0x3f, 0xff, 0xb0, 0x03, 0xc0, 0xc8, - 0xb9, 0x74, 0xb9, 0x54, 0x06, 0x68, 0x15, 0x0f, 0x13, 0x7f, 0x82, 0x38, - 0x17, 0x3d, 0x04, 0x2d, 0x00, 0x1c, 0x28, 0x1f, 0x40, 0xb2, 0x28, 0x21, - 0x3e, 0x05, 0xc8, 0x15, 0x10, 0x17, 0x14, 0xff, 0x11, 0x11, 0x70, 0x01, - 0x0b, 0x80, 0x40, 0x0a, 0xa4, 0x0a, 0xb9, 0xbe, 0x00, 0x00, 0x13, 0xa0, - 0x48, 0x17, 0xbf, 0x28, 0x19, 0xed, 0x30, 0xfc, 0x30, 0xb5, 0xa2, 0x06, - 0x88, 0x17, 0x74, 0x2f, 0xb5, 0x20, 0x00, 0x52, 0x48, 0x15, 0x61, 0x81, - 0x10, 0x15, 0xc0, 0x7f, 0x23, 0x57, 0x57, 0x7f, 0x8e, 0x83, 0x06, 0x78, - 0x15, 0x81, 0x38, 0x17, 0xc0, 0xd0, 0x5c, 0xb8, 0xac, 0xc0, 0x06, 0x58, - 0x15, 0xd1, 0x0f, 0x13, 0x7f, 0x58, 0x17, 0x42, 0x28, 0x1d, 0x2d, 0x00, - 0x20, 0x48, 0x15, 0x65, 0x30, 0x06, 0x28, 0x17, 0x10, 0x16, 0x94, 0xff, - 0x12, 0x12, 0x70, 0x01, 0x0c, 0x40, 0x0a, 0x00, 0x26, 0x0a, 0xca, 0xbf, - 0x00, 0x00, 0x14, 0x1e, 0x58, 0xbd, 0x28, 0x11, 0xe9, 0x06, 0x28, 0x0f, - 0x9f, 0xaf, 0x6f, 0x00, 0x6c, 0xa0, 0x40, 0x03, 0xe1, 0x10, 0x16, 0x40, - 0x7f, 0x22, 0x7d, 0x1b, 0x6d, 0xc9, 0x40, 0x62, 0x06, 0x98, 0x17, 0x94, - 0xc1, 0x64, 0xb8, 0x7c, 0xb7, 0xd7, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, - 0x21, 0x28, 0x0b, 0x3b, 0x40, 0x03, 0x05, 0xd8, 0x0f, 0x10, 0x17, 0x74, - 0xff, 0x28, 0x13, 0x13, 0x70, 0x01, 0x0d, 0x40, 0x0a, 0x80, 0x0a, 0x29, - 0x80, 0x28, 0x17, 0x15, 0x1e, 0xb9, 0x30, 0xc1, 0x30, 0xc6, 0x02, 0x30, - 0xda, 0x30, 0xb1, 0x30, 0xb9, 0x06, 0x48, 0x1d, 0x53, 0x00, 0x00, 0x75, - 0x00, 0x63, 0x00, 0x68, 0x00, 0x69, 0x80, 0x2f, 0xb3, 0x65, 0x00, 0x70, - 0x00, 0xe9, 0x00, 0x71, 0x88, 0x20, 0x11, 0x65, 0x00, 0x7a, 0x10, 0x15, - 0x60, 0x7f, 0xcf, 0x82, 0x47, 0x00, 0x59, 0x79, 0x72, 0x69, 0x4f, 0x4b, - 0x51, 0xaf, 0x40, 0x65, 0x06, 0x38, 0x1d, 0x18, 0xc2, 0x58, 0xce, 0x4c, - 0xd1, 0x03, 0x98, 0xd3, 0x00, 0xcf, 0xa4, 0xc2, 0x06, 0x38, 0x1d, 0x0e, - 0xf3, 0x7f, 0x00, 0x21, 0x04, 0x43, 0x04, 0x47, 0x04, 0x38, 0x04, 0x05, - 0x42, 0x04, 0x35, 0x04, 0x3f, 0x20, 0x03, 0x3a, 0x20, 0x07, 0x65, 0x41, - 0x05, 0xa8, 0x21, 0x10, 0x16, 0xf4, 0xff, 0x14, 0x14, 0x70, 0x01, 0x0e, - 0x40, 0x0a, 0x00, 0x55, 0x0a, 0xef, 0xbe, 0x00, 0x00, 0x16, 0x1e, 0x00, - 0xc8, 0x30, 0xc8, 0x30, 0xcb, 0x30, 0xab, 0x30, 0x15, 0xd1, 0x30, 0xf3, - 0x06, 0x48, 0x17, 0x54, 0x2f, 0xaf, 0x74, 0x2f, 0xb3, 0x45, 0x6e, 0x28, - 0x19, 0x63, 0x00, 0x61, 0x28, 0x19, 0xe1, 0x20, 0x0b, 0x80, 0x10, 0x15, - 0x90, 0x7f, 0x58, 0x62, 0x58, 0x62, 0x3c, 0x5c, 0x61, 0x10, 0x53, 0x58, - 0x6f, 0x06, 0x38, 0x15, 0x00, 0x00, 0xa0, 0xd1, 0x00, 0xa0, 0xd1, 0xc8, - 0xb2, 0x74, 0xce, 0x10, 0xd3, 0xc4, 0x06, 0x38, 0x15, 0x0f, 0x13, 0x7f, - 0x22, 0x04, 0x3e, 0x28, 0x13, 0x3e, 0x04, 0x45, 0x3d, 0x28, 0x1b, 0x3a, - 0x04, 0x30, 0x28, 0x1b, 0x30, 0x20, 0x0b, 0x94, 0x10, 0x1d, 0x94, 0xff, - 0x15, 0x15, 0x70, 0x01, 0x0f, 0x40, 0x0a, 0x9b, 0x0a, 0x01, 0x08, 0xbf, - 0x00, 0x00, 0x17, 0x1e, 0xb5, 0x48, 0x13, 0xda, 0x06, 0x38, 0x11, 0x5f, - 0xff, 0x5a, 0x28, 0x0b, 0x58, 0x0f, 0x61, 0x10, 0x16, 0x40, 0x7f, 0x28, - 0x06, 0x84, 0x61, 0x53, 0x15, 0x5e, 0x06, 0x58, 0x13, 0x3f, 0xff, 0xac, - 0x0d, 0xc0, 0x74, 0xce, 0x0c, 0x06, 0x68, 0x13, 0x0f, 0x33, 0x7f, 0x21, - 0x28, 0x0b, 0xca, 0x78, 0x0f, 0x10, 0x1e, 0x34, 0xff, 0x16, 0x16, 0x70, - 0x01, 0x09, 0x40, 0x0a, 0xa4, 0x10, 0x0a, 0x55, 0xc0, 0x00, 0x3f, 0xff, - 0x01, 0x07, 0x09, 0x09, 0x01, 0x07, 0x07, 0x01, 0x01, 0x07, 0x07, 0x03, - 0x20, 0x05, 0x12, 0x01, 0x01, 0x02, 0x30, 0x04, 0x01, 0x02, 0x40, 0x06, - 0x02, 0x09, 0x02, 0x02, 0x02, 0x03, 0x30, 0x04, 0x02, 0x03, 0x40, 0x06, - 0x04, 0x03, 0x03, 0x03, 0x03, 0x04, 0x30, 0x04, 0x03, 0x04, 0xa2, 0x20, - 0x06, 0x14, 0x20, 0x05, 0x04, 0x04, 0x05, 0x30, 0x04, 0x04, 0x50, 0x05, - 0x20, 0x06, 0x13, 0x20, 0x05, 0x05, 0x05, 0x06, 0x05, 0x34, 0x06, 0x06, - 0x20, 0x05, 0x20, 0x03, 0x15, 0x20, 0x09, 0x06, 0x06, 0x08, 0x07, 0x06, - 0x08, 0x08, 0x20, 0x05, 0x07, 0x06, 0x06, 0x40, 0x16, 0x20, 0x05, 0x07, - 0x07, 0x08, 0x08, 0x0a, 0x0a, 0x28, 0x08, 0x08, 0x30, 0x01, 0x10, 0x40, - 0x06, 0x09, 0x09, 0x0b, 0x14, 0x0b, 0x09, 0x09, 0x30, 0x01, 0x04, 0x40, - 0x06, 0x0a, 0x0a, 0x0a, 0x0c, 0x0c, 0x0a, 0x0a, 0x30, 0x01, 0x11, 0x40, - 0x06, 0x0b, 0x05, 0x0b, 0x0d, 0x0d, 0x0b, 0x0b, 0x30, 0x01, 0x12, 0x40, - 0x06, 0x02, 0x0c, 0x0c, 0x05, 0x05, 0x0c, 0x0c, 0x30, 0x01, 0x07, 0x81, - 0x40, 0x06, 0x0d, 0x0d, 0x0e, 0x0e, 0x0d, 0x0d, 0x30, 0x01, 0x40, 0x05, - 0x40, 0x06, 0x0e, 0x0e, 0x07, 0x07, 0x0e, 0x0e, 0xa5, 0x30, 0x01, 0x06, - 0x40, 0x06, 0x0f, 0x0f, 0x70, 0x01, 0x08, 0x40, 0x0a, 0x29, 0x10, 0x10, - 0x70, 0x01, 0x0a, 0x40, 0x0a, 0x11, 0x11, 0x70, 0x01, 0x4a, 0x0b, 0x40, - 0x0a, 0x12, 0x12, 0x70, 0x01, 0x0c, 0x40, 0x0a, 0x13, 0x52, 0x13, 0x70, - 0x01, 0x0d, 0x40, 0x0a, 0x14, 0x14, 0x70, 0x01, 0x0e, 0xf0, 0x40, 0x0a, - 0xf9, 0x7f, 0xf1, 0x77, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0xc4, 0x59, 0x00, - 0x11, 0x0a, 0x00, 0x00, 0x30, 0x01, 0x1f, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xd5, 0x04, 0xa4, - 0xd6, 0x00, 0x00, 0x00, 0x02, 0x1f, 0xc7, 0x30, 0xe1, 0x30, 0xe9, 0x80, - 0x20, 0x01, 0xfb, 0x30, 0xde, 0x30, 0xcf, 0x30, 0xa4, 0x04, 0x30, 0xab, - 0x30, 0xde, 0x5d, 0x05, 0xb8, 0x29, 0x44, 0x00, 0x11, 0x65, 0x00, 0x6d, - 0x20, 0x03, 0x72, 0x00, 0x61, 0x40, 0x03, 0x14, 0x2d, 0x00, 0x4d, 0x20, - 0x09, 0x68, 0x20, 0x0d, 0x69, 0x00, 0x60, 0x63, 0x20, 0x13, 0x10, 0x14, - 0xf0, 0x7f, 0xb7, 0x5f, 0x85, 0x68, 0xc9, 0x00, 0x62, 0xc9, 0x62, 0x2d, - 0x00, 0x6c, 0x9a, 0x77, 0x04, 0x6d, 0x61, 0x53, 0x3a, 0x53, 0x05, 0xdb, - 0x27, 0x70, 0xb3, 0x00, 0x54, 0xba, 0x7c, 0xb7, 0x7c, 0xb7, 0x2d, 0x00, - 0x00, 0xc8, 0xb9, 0x58, 0xd5, 0x74, 0xc7, 0x74, 0xce, 0x08, 0x20, 0x00, - 0xfc, 0xc8, 0x10, 0x05, 0x93, 0x7f, 0x14, 0x04, 0x35, 0x22, 0x04, 0x3c, - 0x20, 0x03, 0x40, 0x04, 0x30, 0x40, 0x03, 0x2d, 0x28, 0x00, 0x1c, 0x20, - 0x09, 0x45, 0x20, 0x0d, 0x38, 0x04, 0x41, 0xc0, 0x20, 0x13, 0x10, 0x1c, - 0xf4, 0xff, 0x01, 0x03, 0x04, 0x03, 0x06, 0x06, 0x00, 0x01, 0x01, 0x03, - 0x06, 0x05, 0x03, 0x01, 0x01, 0x20, 0x01, 0x01, 0x58, 0x17, 0x03, 0x1f, - 0xd0, 0x30, 0xea, 0x8b, 0x28, 0x11, 0xfb, 0x30, 0xef, 0x28, 0x13, 0xcb, - 0x05, 0xe8, 0x13, 0x3f, 0xff, 0x5a, 0x42, 0x48, 0x0f, 0x69, 0x28, 0x1b, - 0x38, 0x13, 0x57, 0x48, 0x0f, 0x6e, 0xc0, 0x28, 0x13, 0x10, 0x15, 0x70, - 0x7f, 0xf4, 0x5d, 0xcc, 0x91, 0x6c, 0x9a, 0x00, 0x2d, 0x00, 0xe6, 0x74, - 0x0a, 0x4f, 0x3c, 0x5c, 0xc0, 0x05, 0xf8, 0x15, 0x2f, 0xaf, 0xbc, 0xac, - 0xb9, 0xc8, 0xb9, 0x2d, 0x01, 0x00, 0x40, 0xc6, 0x74, 0xc7, 0xc8, 0xb2, - 0x05, 0xd8, 0x13, 0xad, 0x0f, 0x33, 0x7f, 0x11, 0x48, 0x0f, 0x38, 0x28, - 0x1b, 0x38, 0x13, 0x12, 0x48, 0x0f, 0x68, 0x3d, 0x28, 0x13, 0x10, 0x1d, - 0x74, 0xff, 0x02, 0x28, 0x0c, 0x03, 0x03, 0x02, 0x20, 0x02, 0x01, 0x28, - 0x15, 0x02, 0x02, 0x02, 0x02, 0xd4, 0x00, 0x05, 0x7d, 0xd5, 0x00, 0x00, - 0x04, 0x1f, 0xaf, 0x28, 0x30, 0xe6, 0x28, 0x0f, 0xfb, 0x28, 0x1b, 0xb6, - 0x30, 0xeb, 0x83, 0x06, 0x28, 0x19, 0x43, 0x00, 0x75, 0x00, 0x79, 0x20, - 0x03, 0x38, 0x0b, 0xb8, 0x5f, 0xab, 0x7a, 0x4f, 0xb9, 0x50, 0x11, 0x10, - 0x15, 0x10, 0x7f, 0x93, 0x5e, 0x24, 0x00, 0x5c, 0x3c, 0x5c, 0x2d, 0x00, - 0x6c, 0x9a, 0x4e, 0x11, 0x62, 0x81, 0x9c, 0x06, 0x18, 0x19, 0xe0, 0xcf, - 0x20, 0x28, 0x0f, 0x00, 0x2d, 0x00, 0xc8, 0xb9, 0x90, 0xc7, 0xe8, 0xb8, - 0xd1, 0x06, 0x18, 0x19, 0x0e, 0xf3, 0x7f, 0x1a, 0x28, 0x17, 0x39, 0x04, - 0x43, 0x48, 0x0b, 0x17, 0x2d, 0x00, 0x1c, 0x28, 0x25, 0x37, 0x48, 0x29, - 0x50, 0x11, 0x10, 0x1d, 0x14, 0xff, 0x02, 0x03, 0x02, 0x03, 0x02, 0x05, - 0x05, 0x28, 0x19, 0x05, 0x00, 0x06, 0x02, 0x03, 0x03, 0x03, 0x03, 0x8d, - 0x04, 0x00, 0x52, 0xd6, 0x00, 0x00, 0x05, 0x1f, 0x71, 0x67, 0x44, 0xd9, - 0x28, 0x0f, 0xd3, 0x30, 0xbb, 0x28, 0x1b, 0xb3, 0x30, 0x00, 0xec, 0x30, - 0xf3, 0x30, 0xc6, 0x30, 0xa3, 0x30, 0x50, 0xcd, 0x05, 0x88, 0x1f, 0x45, - 0x2f, 0xaf, 0x73, 0x00, 0x74, 0x00, 0x55, 0x20, 0x2f, 0xb9, 0x65, 0x2f, - 0xb9, 0x62, 0x2f, 0xbb, 0x63, 0x20, 0x09, 0x55, 0x2d, 0x28, 0x31, 0x6f, - 0x2f, 0xc9, 0x65, 0x2f, 0xbd, 0x74, 0x28, 0x39, 0x71, 0x6e, 0x20, 0x1d, - 0x04, 0x5f, 0xaf, 0xb0, 0x75, 0x20, 0x00, 0x4f, 0x4f, 0xbd, 0x8a, 0x50, - 0x75, 0x61, 0x00, 0x6c, 0x60, 0x87, 0x75, 0x2f, 0xd3, 0x61, 0xf8, 0x04, - 0x40, 0x89, 0x08, 0xf0, 0xff, 0x04, 0xf1, 0x89, 0x01, 0x51, 0x7f, 0x04, - 0x92, 0x07, 0x1c, 0x4e, 0x2f, 0x00, 0x4f, 0xd4, 0x6b, 0xaf, 0x65, 0x2d, - 0x00, 0xd1, 0x01, 0x79, 0x70, 0x51, 0x2a, 0x59, 0xe0, 0x56, 0x05, 0xd8, - 0x19, 0x00, 0xd9, 0xb3, 0x80, 0xbd, 0x20, 0x00, 0x84, 0xbc, 0x00, 0x44, - 0xbe, 0xa4, 0xc2, 0x2d, 0x00, 0x54, 0xcf, 0x03, 0xf0, 0xb7, 0xc0, 0xd0, - 0x78, 0xc7, 0x05, 0x98, 0x1d, 0x09, 0x53, 0x7f, 0x80, 0x04, 0x94, 0x07, - 0x12, 0x04, 0x3e, 0x04, 0x41, 0x04, 0x42, 0xa8, 0x20, 0x05, 0x47, 0x28, - 0x1b, 0x4b, 0x28, 0x23, 0x20, 0x00, 0x11, 0x2a, 0x04, 0x35, 0x28, 0x19, - 0x31, 0x48, 0x31, 0x41, 0x28, 0x2d, 0x1a, 0xab, 0x20, 0x23, 0x40, 0x20, - 0x13, 0x3d, 0x20, 0x27, 0x38, 0x28, 0x41, 0x0b, 0xb4, 0xff, 0x82, 0x10, - 0x0e, 0xf0, 0x7f, 0x04, 0x04, 0x02, 0x04, 0x04, 0xa0, 0x01, 0x71, 0x00, - 0x04, 0x1a, 0xd7, 0x00, 0x00, 0x06, 0x1f, 0xa8, 0x80, 0x28, 0x11, 0xad, - 0x30, 0xdc, 0x30, 0xf8, 0x8a, 0xf6, 0x00, 0x5c, 0xfb, 0x30, 0x7f, 0x89, - 0xc7, 0x30, 0xe1, 0x34, 0x30, 0xe9, 0x20, 0x01, 0x05, 0x98, 0x17, 0x73, - 0x28, 0x17, 0x65, 0x00, 0x55, 0x71, 0x2f, 0xb7, 0x69, 0x28, 0x15, 0x6f, - 0x28, 0x21, 0x49, 0x28, 0x29, 0x51, 0x6c, 0x47, 0x87, 0x64, 0x28, 0x33, - 0x2d, 0x00, 0x57, 0x28, 0x31, 0xad, 0x58, 0x3b, 0x44, 0x28, 0x3b, 0x6d, - 0x48, 0x3f, 0x3f, 0xd3, 0x61, 0x03, 0x2f, 0xcf, 0x5b, 0xce, 0x46, 0xfb, - 0x73, 0x28, 0x97, 0x00, 0x10, 0x89, 0x2d, 0x00, 0x00, 0x6f, 0x38, 0x37, - 0x5e, 0x63, 0x28, 0xb7, 0x69, 0x20, 0x99, 0x98, 0x3b, 0x0a, 0xb0, 0xff, - 0x31, 0x6b, 0x6f, 0xf8, 0x47, 0xff, 0x02, 0xb1, 0x01, 0x02, 0x99, 0xb3, - 0x71, 0xeb, 0x06, 0x71, 0x81, 0xc3, 0x57, 0x5e, 0x00, 0x58, 0x4e, 0x59, - 0x5a, 0x53, 0xa4, 0x7f, 0x9b, 0x00, 0x5c, 0x2d, 0x00, 0x7f, 0x89, 0xb7, - 0x5f, 0x85, 0x04, 0x68, 0xc9, 0x62, 0xc9, 0x62, 0x05, 0x78, 0x1d, 0xd0, - 0xc5, 0x00, 0x38, 0xc1, 0x34, 0xd0, 0xf4, 0xbc, 0x20, 0x00, 0x28, 0x2c, - 0xc1, 0x2e, 0xaf, 0xc1, 0x38, 0x25, 0x70, 0xb3, 0x54, 0x06, 0xba, 0x7c, - 0xb7, 0x7c, 0xb7, 0x05, 0x38, 0x1d, 0x07, 0x12, 0x7f, 0x6c, 0x35, 0x00, - 0x68, 0x02, 0x01, 0xff, 0x03, 0x93, 0x7f, 0x2d, 0x28, 0x15, 0x41, 0x28, - 0x07, 0x14, 0x3a, 0x04, 0x43, 0x27, 0xf3, 0x31, 0x28, 0x25, 0x2d, 0x00, - 0x55, 0x10, 0x28, 0x1d, 0x3b, 0x48, 0x07, 0x34, 0x48, 0x17, 0x17, 0x28, - 0x21, 0x55, 0x3f, 0x28, 0x25, 0x34, 0x88, 0x39, 0x14, 0x28, 0x39, 0x3c, - 0x48, 0x3d, 0x70, 0x30, 0x40, 0x03, 0x0a, 0x94, 0xff, 0x10, 0x0e, 0xf0, - 0x7f, 0x05, 0x05, 0x07, 0x05, 0x14, 0x07, 0x07, 0x05, 0x20, 0x06, 0x0a, - 0x20, 0x04, 0x05, 0x05, 0x00, 0xe2, 0x04, 0x76, 0xd6, 0x00, 0x00, 0x07, - 0x1f, 0x00, 0xde, 0x30, 0xcf, 0x30, 0xa4, 0x30, 0xab, 0x30, 0x01, 0xfb, - 0x30, 0xd9, 0x30, 0xeb, 0x30, 0xd3, 0x28, 0x25, 0xdd, 0x05, 0x78, 0x11, - 0x5f, 0xfe, 0x4d, 0x2f, 0x95, 0x34, 0x17, 0x3f, 0xaf, 0x61, 0x2f, 0x9d, - 0xc0, 0xdf, 0xbf, 0x10, 0x15, 0x10, 0x7f, 0x6c, 0x9a, 0x77, 0x6d, 0x61, - 0x53, 0x00, 0x2d, 0x00, 0x2f, 0x4f, 0xd4, 0x6b, 0xaf, 0x65, 0xc0, 0x05, - 0x78, 0x0d, 0x9f, 0xff, 0xc8, 0xb9, 0x58, 0xd5, 0x74, 0xc7, 0x00, 0x74, - 0xce, 0x2d, 0x00, 0x84, 0xbc, 0x44, 0xbe, 0x35, 0xa4, 0xc2, 0x05, 0x38, - 0x0b, 0x0f, 0xb3, 0x7f, 0x1c, 0x27, 0xf3, 0x45, 0x27, 0xf7, 0x55, 0x38, - 0x28, 0x1f, 0x30, 0x28, 0x13, 0x11, 0x47, 0xed, 0x31, 0x28, 0x09, 0x60, - 0x39, 0x28, 0x31, 0x10, 0x1d, 0x14, 0xff, 0x06, 0x06, 0x08, 0x06, 0x08, - 0x28, 0x08, 0x06, 0x20, 0x06, 0x07, 0x20, 0x04, 0x06, 0x06, 0x8d, 0x00, - 0x04, 0x0b, 0xd7, 0x00, 0x00, 0x08, 0x1f, 0xdd, 0x00, 0x30, 0xe1, 0x30, - 0xed, 0x30, 0xfc, 0x30, 0xf3, 0x82, 0x28, 0x19, 0xb9, 0x30, 0xda, 0x30, - 0xca, 0x20, 0x0b, 0xe0, 0xb5, 0x05, 0xa8, 0x1b, 0x50, 0x2f, 0x97, 0x5f, - 0x91, 0x6f, 0x2f, 0xa1, 0x6e, 0x2f, 0xa3, 0x55, 0x53, 0x2f, 0xaf, 0x70, - 0x4f, 0x8d, 0x61, 0x2f, 0xa5, 0x6d, 0x10, 0x14, 0xe0, 0x7f, 0x00, 0xe2, - 0x6c, 0xd8, 0x9e, 0x26, 0x4f, 0x2d, 0x00, 0x00, 0xcf, 0x82, 0x69, 0x4f, - 0xb3, 0x7e, 0xc6, 0x59, 0x80, 0x05, 0xf8, 0x19, 0xec, 0xd3, 0x54, 0xba, - 0xec, 0xb8, 0x2d, 0x01, 0x00, 0x18, 0xc2, 0x98, 0xd3, 0xa8, 0xb0, 0x05, - 0xf8, 0x15, 0x88, 0x0f, 0x13, 0x7f, 0x1f, 0x04, 0x3e, 0x6f, 0xf9, 0x43, - 0x04, 0x3d, 0xaa, 0x28, 0x17, 0x21, 0x20, 0x07, 0x3f, 0x28, 0x1b, 0x3d, - 0x28, 0x2f, 0x30, 0xc0, 0x20, 0x19, 0x10, 0x1c, 0xf4, 0xff, 0x07, 0x07, - 0x09, 0x07, 0x09, 0x09, 0x50, 0x07, 0x20, 0x06, 0x08, 0x20, 0x04, 0x07, - 0x07, 0x2a, 0x05, 0x05, 0x67, 0xd6, 0x00, 0x00, 0x09, 0x28, 0x17, 0xbf, - 0x28, 0x17, 0x00, 0xfb, 0x30, 0xb7, 0x30, 0xd1, 0x30, 0xeb, 0x30, 0x6e, - 0xcb, 0x05, 0xa8, 0x11, 0x98, 0x17, 0x74, 0x2f, 0xb3, 0x38, 0x17, 0x38, - 0x13, 0x69, 0xd4, 0x28, 0x13, 0x30, 0x0d, 0x75, 0x28, 0x23, 0x69, 0x10, - 0x15, 0x20, 0x7f, 0xe2, 0x6c, 0x08, 0x54, 0x58, 0x57, 0x7f, 0x26, 0x0f, - 0x95, 0x15, 0x5e, 0x08, 0x81, 0x9c, 0x3c, 0x5c, 0x06, 0x18, 0x17, 0xc0, - 0xd0, 0x5c, 0x80, 0x28, 0x17, 0xdc, 0xc2, 0x0c, 0xd3, 0xe8, 0xb8, 0xc8, - 0x75, 0xb2, 0x05, 0xf8, 0x19, 0x0e, 0xf3, 0x7f, 0x38, 0x17, 0x42, 0x28, - 0x03, 0x40, 0x28, 0x1f, 0xbb, 0x38, 0x15, 0x38, 0x28, 0x15, 0x30, 0x0d, - 0x38, 0x25, 0x38, 0x05, 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, 0x01, 0x08, - 0x08, 0x0a, 0x08, 0x0a, 0x0a, 0x08, 0x20, 0x06, 0x40, 0x09, 0x20, 0x04, - 0x08, 0x08, 0xbe, 0x03, 0xf1, 0xd5, 0x01, 0x00, 0x00, 0x0a, 0x1f, 0xa2, - 0x30, 0xc3, 0x28, 0x11, 0x41, 0xfc, 0x28, 0x19, 0xc7, 0x30, 0xe1, 0x30, - 0xe9, 0x20, 0x01, 0x11, 0xfb, 0x30, 0xd9, 0x28, 0x21, 0xd3, 0x30, 0xbb, - 0x05, 0x48, 0x23, 0x60, 0x55, 0x2f, 0x9b, 0x3f, 0x9d, 0x72, 0x00, 0x20, - 0x00, 0x44, 0xea, 0x2f, 0xb7, 0x5f, 0xbb, 0x38, 0x27, 0x61, 0x2f, 0xbb, - 0x42, 0x4f, 0xc9, 0x62, 0xb5, 0x28, 0x2d, 0x63, 0x2f, 0xd3, 0x04, 0x3f, - 0xba, 0x48, 0x2f, 0x95, 0x75, 0x28, 0x99, 0x57, 0x2d, 0x00, 0x00, 0x7d, - 0x20, 0x2f, 0xc5, 0x74, 0x20, 0x95, 0x04, 0xd0, 0x83, 0x06, 0xf0, 0xff, - 0x16, 0x41, 0x00, 0x6c, 0x29, 0x97, 0x6f, 0x06, 0x61, 0x7d, 0x07, 0x10, - 0x7f, 0x0a, 0x00, 0x4e, 0xb7, 0x5f, 0x85, 0x68, 0xc9, 0x62, 0xc9, 0x00, - 0x62, 0x2d, 0x00, 0x2f, 0x4f, 0xd4, 0x6b, 0xaf, 0x40, 0x65, 0x05, 0xd8, - 0x19, 0x81, 0xbd, 0x80, 0xbd, 0x20, 0x00, 0x00, 0x70, 0xb3, 0x54, 0xba, - 0x7c, 0xb7, 0x7c, 0xb7, 0x00, 0x2d, 0x00, 0x84, 0xbc, 0x44, 0xbe, 0xa4, - 0xc2, 0xc5, 0x05, 0x98, 0x1d, 0x0e, 0xf2, 0x7f, 0x12, 0x04, 0x35, 0x28, - 0x13, 0x45, 0x48, 0x05, 0x05, 0x39, 0x04, 0x20, 0x00, 0x14, 0x20, 0x0f, - 0x3c, 0x40, 0x13, 0xaa, 0x38, 0x2b, 0x30, 0x28, 0x2b, 0x11, 0x40, 0x21, - 0x31, 0x28, 0x3b, 0x39, 0x38, 0x04, 0x41, 0x04, 0x08, 0x29, 0x06, 0xf4, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x09, 0x09, 0x05, 0x00, 0x09, 0x01, 0x01, - 0x09, 0x09, 0x09, 0x01, 0x02, 0x80, 0x20, 0x04, 0x09, 0x09, 0x44, 0x04, - 0x8b, 0xd6, 0x00, 0x20, 0x00, 0x0b, 0xa8, 0x17, 0xbf, 0x30, 0xaf, 0x30, - 0xc8, 0x34, 0x30, 0xa5, 0x28, 0x21, 0x98, 0x2b, 0xa8, 0x28, 0x1d, 0xad, - 0x30, 0x6a, 0xdc, 0x04, 0xa8, 0x21, 0xb8, 0x17, 0x54, 0x2f, 0xb7, 0x6b, - 0x47, 0xa5, 0x75, 0xc4, 0x2f, 0xbb, 0xb8, 0x31, 0x45, 0x00, 0x73, 0x20, - 0x01, 0x65, 0x00, 0x57, 0x71, 0x2f, 0xc7, 0x69, 0x28, 0x27, 0x6f, 0x04, - 0x28, 0x17, 0xb0, 0x7d, 0x78, 0x13, 0xff, 0x98, 0x35, 0x04, 0x70, 0x81, - 0x06, 0xf0, 0xff, 0x98, 0x17, 0xd1, 0x7d, 0x98, 0x2f, 0x04, 0x91, 0x7b, - 0x07, 0x30, 0x7f, 0x00, 0x0a, 0x4e, 0x54, 0x58, 0x93, 0x5e, 0xfe, 0x56, - 0x40, 0x2d, 0x28, 0x21, 0xc3, 0x57, 0x5e, 0x58, 0x4e, 0x59, 0x30, 0x5a, - 0x53, 0x05, 0xb8, 0x19, 0x58, 0x17, 0xc0, 0xd0, 0xe0, 0xcf, 0x10, 0x2c, - 0xd2, 0x2d, 0x68, 0x25, 0xd0, 0xc5, 0x38, 0xc1, 0x0e, 0x34, 0xd0, 0xf4, - 0xbc, 0x05, 0x38, 0x1d, 0x0e, 0xf2, 0x7f, 0xf8, 0x17, 0x22, 0x82, 0x28, - 0x0f, 0x3a, 0x04, 0x43, 0x04, 0x42, 0x20, 0x03, 0x2d, 0xad, 0x00, 0x08, - 0x35, 0x2d, 0x28, 0x19, 0x41, 0x28, 0x49, 0x30, 0x21, 0x38, 0x28, 0x2b, - 0x70, 0x3e, 0x03, 0x08, 0x27, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, - 0x0a, 0x0a, 0x06, 0x0a, 0x01, 0x02, 0x02, 0x0a, 0x0a, 0x0a, 0x02, 0x03, - 0x20, 0x04, 0x02, 0x0a, 0x0a, 0x67, 0x02, 0x7a, 0xd5, 0x00, 0x3f, 0xff, - 0x01, 0x00, 0x03, 0x04, 0x03, 0x06, 0x06, 0x01, 0x01, 0x03, 0x00, 0x06, - 0x05, 0x03, 0x01, 0x01, 0x01, 0x01, 0x02, 0x82, 0x20, 0x04, 0x03, 0x03, - 0x02, 0x02, 0x01, 0x20, 0x0d, 0x02, 0x09, 0x02, 0x02, 0x02, 0x03, 0x20, - 0x01, 0x05, 0x05, 0x20, 0x11, 0x00, 0x05, 0x06, 0x02, 0x03, 0x03, 0x03, - 0x03, 0x04, 0x08, 0x04, 0x02, 0x04, 0x04, 0xa0, 0x01, 0x05, 0x05, 0x07, - 0x0a, 0x05, 0x07, 0x07, 0x05, 0x20, 0x06, 0x0a, 0x20, 0x04, 0x05, 0x00, - 0x05, 0x06, 0x06, 0x08, 0x06, 0x08, 0x08, 0x06, 0xa0, 0x20, 0x06, 0x07, - 0x20, 0x04, 0x06, 0x06, 0x07, 0x07, 0x09, 0x0a, 0x07, 0x09, 0x09, 0x07, - 0x20, 0x06, 0x08, 0x20, 0x04, 0x07, 0x00, 0x07, 0x08, 0x08, 0x0a, 0x08, - 0x0a, 0x0a, 0x08, 0xa7, 0x20, 0x06, 0x09, 0x20, 0x04, 0x08, 0x08, 0xf8, - 0xbf, 0xf0, 0xb7, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0xc4, 0x59, 0x00, - 0x11, 0x0a, 0x00, 0x00, 0x30, 0x01, 0x20, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x2e, 0x0d, 0x90, - 0xcc, 0x00, 0x01, 0x00, 0x02, 0x20, 0x7f, 0x89, 0x0c, 0x77, 0x06, 0xb8, - 0x19, 0x00, 0x4f, 0x00, 0x75, 0x00, 0x65, 0x00, 0x73, 0x00, 0x5a, 0x74, - 0x10, 0x06, 0x80, 0x7f, 0x76, 0x06, 0xe1, 0x7f, 0x51, 0xfd, 0x65, 0x06, - 0x6a, 0x9e, 0x7f, 0x08, 0x89, 0xe8, 0x90, 0x01, 0x06, 0xa3, 0x01, 0x1c, - 0xc1, 0x80, 0x60, 0xbd, 0x0e, 0xd3, 0x7f, 0x06, 0xd1, 0xff, 0x17, 0x04, - 0x30, 0x04, 0x3f, 0x80, 0x20, 0x03, 0x34, 0x04, 0x3d, 0x04, 0x4b, 0x04, - 0x39, 0x02, 0x04, 0x20, 0x00, 0x34, 0x04, 0x35, 0x40, 0x11, 0x40, 0x2b, - 0x04, 0x42, 0x20, 0x1b, 0x3c, 0x20, 0x0d, 0x3d, 0x20, 0x09, 0x10, 0x0c, - 0x94, 0xff, 0x8a, 0x0e, 0xd6, 0x7f, 0x01, 0x08, 0x08, 0x20, 0x01, 0x01, - 0x20, 0x06, 0x03, 0x90, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x20, - 0x17, 0x53, 0x80, 0x06, 0xd8, 0x19, 0x4e, 0x00, 0x6f, 0x00, 0x72, 0x00, - 0x64, 0x3d, 0x00, 0x2d, 0x06, 0x68, 0x21, 0x0f, 0xb0, 0x7f, 0x06, 0x38, - 0x21, 0x51, 0xff, 0x6f, 0x06, 0x88, 0x1d, 0x09, 0x7f, 0x89, 0x17, 0x53, - 0x06, 0xb8, 0x17, 0x81, 0xbd, 0x06, 0xd8, 0x19, 0xd4, 0x07, 0x53, 0x7f, - 0x06, 0x91, 0xff, 0x21, 0x28, 0x05, 0x32, 0x28, 0x09, 0x40, 0x04, 0x1c, - 0x3e, 0x04, 0x2d, 0x06, 0x28, 0x25, 0x10, 0x07, 0xb4, 0xff, 0x0e, 0x36, - 0x7f, 0x02, 0x07, 0x00, 0x07, 0x07, 0x07, 0x06, 0x02, 0x02, 0x07, 0x06, - 0x00, 0x07, 0x07, 0x02, 0x02, 0x02, 0x02, 0x2f, 0x0e, 0x40, 0x36, 0x28, - 0x17, 0x04, 0x20, 0xa2, 0x30, 0xeb, 0x30, 0x00, 0xc6, 0x30, 0xa3, 0x30, - 0xdc, 0x30, 0xcb, 0x30, 0x0a, 0xc3, 0x30, 0xc8, 0x30, 0x05, 0xf8, 0x23, - 0x41, 0x28, 0x15, 0x74, 0x0b, 0x00, 0x69, 0x00, 0x62, 0x28, 0x1f, 0x6e, - 0x20, 0x07, 0x05, 0xfe, 0x39, 0xa0, 0x10, 0x08, 0x10, 0x7f, 0x6f, 0x05, - 0xcf, 0xbc, 0x3f, 0x96, 0x82, 0x84, 0x5a, 0x04, 0x53, 0x3c, 0x5c, 0x79, - 0x72, 0x06, 0x58, 0x1d, 0x44, 0xc5, 0x00, 0x74, 0xb9, 0xf0, 0xd2, 0xf4, - 0xbc, 0xc8, 0xb2, 0x34, 0xb8, 0xd2, 0x06, 0x3f, 0xb2, 0x0e, 0xf3, 0x7f, - 0x10, 0x47, 0xf1, 0x38, 0x04, 0x5e, 0x31, 0x28, 0x17, 0x3d, 0x20, 0x07, - 0x03, 0xb7, 0xf3, 0x10, 0x12, 0x54, 0xff, 0x05, 0xdd, 0x1b, 0x03, 0x28, - 0x01, 0x01, 0x20, 0x01, 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x08, 0x03, - 0xd4, 0x0d, 0x51, 0x28, 0x17, 0x05, 0x20, 0x2d, 0x1a, 0x4e, 0x2e, 0x59, - 0x05, 0xf8, 0x0b, 0xbf, 0xff, 0x43, 0x2f, 0xa3, 0x6e, 0xbc, 0x2f, 0xa3, - 0x72, 0x06, 0x2e, 0x2b, 0x0f, 0xd0, 0x7f, 0x05, 0xd7, 0x8f, 0x07, 0x70, - 0x7f, 0x2d, 0x4e, 0x30, 0xe8, 0x90, 0x06, 0x58, 0x11, 0x5f, 0xff, 0x11, - 0xc9, 0x59, 0xc5, 0x31, 0x80, 0xbd, 0x0f, 0x33, 0x7f, 0x06, 0x52, 0x7f, - 0x26, 0x04, 0x35, 0x28, 0x0f, 0x41, 0x42, 0x28, 0x1d, 0x30, 0x04, 0x3b, - 0x04, 0x4c, 0x28, 0x1b, 0x01, 0x4b, 0x04, 0x39, 0x04, 0x20, 0x00, 0x34, - 0x20, 0x17, 0x63, 0x3f, 0x20, 0x13, 0x38, 0x35, 0x30, 0x04, 0x3c, 0x60, - 0x25, 0x10, 0x0c, 0xb4, 0xff, 0x8a, 0x0e, 0x56, 0x7f, 0x04, 0x02, 0x02, - 0x20, 0x01, 0x04, 0x20, 0x06, 0x08, 0x82, 0x20, 0x05, 0x04, 0x04, 0x9e, - 0x0d, 0xca, 0x28, 0x17, 0x06, 0x05, 0x20, 0x7e, 0x6e, 0xb8, 0x5c, 0x06, - 0xb8, 0x17, 0x47, 0x2f, 0xaf, 0x44, 0x61, 0x2f, 0xa9, 0x64, 0x00, 0x27, - 0x2f, 0xbb, 0x6e, 0x00, 0x63, 0x73, 0x05, 0xef, 0xaf, 0x90, 0x7f, 0x65, - 0x00, 0x2d, 0x06, 0x20, 0x81, 0x07, 0xb0, 0xff, 0x42, 0x20, 0x0e, 0x20, - 0xff, 0x27, 0x59, 0x7e, 0x6e, 0x06, 0xb8, 0x17, 0xf8, 0x01, 0xad, 0x91, - 0xb7, 0xf9, 0xb2, 0xa4, 0xc2, 0x0f, 0x13, 0x7f, 0xa0, 0x06, 0x53, 0xff, - 0x13, 0x48, 0x11, 0x3d, 0x04, 0x34, 0x04, 0x2d, 0x2e, 0x00, 0x10, 0x28, - 0x21, 0x41, 0x04, 0x27, 0xfb, 0x10, 0x00, 0xb1, 0x7f, 0x10, 0x06, 0xf0, - 0xff, 0x05, 0x2a, 0x03, 0x03, 0x20, 0x01, 0x05, 0x20, 0x06, 0x02, 0x20, - 0x05, 0x05, 0x00, 0x05, 0x43, 0x0d, 0x4c, 0xcb, 0x00, 0x00, 0x07, 0x11, - 0x20, 0x17, 0x53, 0x06, 0xb8, 0x15, 0x00, 0x00, 0x4e, 0x2e, 0xa7, 0x68, - 0x72, 0x28, 0x15, 0x10, 0x0e, 0xd0, 0x7f, 0x74, 0x06, 0x6e, 0xad, 0x00, - 0x00, 0x17, 0x10, 0x53, 0xe8, 0x90, 0x06, 0xb8, 0x17, 0x81, 0xbd, 0x80, - 0xbd, 0xc1, 0x0f, 0x13, 0x7f, 0x06, 0x91, 0xff, 0x21, 0x04, 0x35, 0x04, - 0x32, 0x20, 0x03, 0x40, 0x40, 0x28, 0x1b, 0x4b, 0x04, 0x39, 0x04, 0x20, - 0x00, 0x51, 0x34, 0x20, 0x11, 0x3f, 0x28, 0x2b, 0x40, 0x04, 0x42, 0x28, - 0x31, 0x5d, 0x3c, 0x20, 0x1f, 0x3d, 0x20, 0x09, 0x10, 0x14, 0xd4, 0xff, - 0x06, 0x96, 0xff, 0x06, 0x38, 0x0c, 0x00, 0x07, 0x06, 0x06, 0x05, 0x07, - 0x05, 0x05, 0x06, 0x00, 0x06, 0x06, 0x06, 0x0c, 0x0e, 0xa8, 0xcc, 0x00, - 0x26, 0x00, 0x08, 0x28, 0x17, 0x71, 0x67, 0x06, 0xb8, 0x19, 0x78, 0x17, - 0x2d, 0x2b, 0x00, 0x45, 0x2f, 0xa9, 0x74, 0x10, 0x0e, 0x60, 0x7f, 0x65, - 0x41, 0xfb, 0x06, 0x38, 0x1b, 0x09, 0x1c, 0x4e, 0x17, 0x53, 0x06, 0xd8, - 0x17, 0xd9, 0xb3, 0x06, 0xb8, 0x19, 0xe0, 0x07, 0x73, 0x7f, 0x06, 0x72, - 0x01, 0x98, 0x17, 0x3e, 0x04, 0x2d, 0x00, 0x12, 0xa3, 0x20, 0x05, 0x41, - 0x28, 0x0f, 0x3e, 0x04, 0x47, 0x05, 0x68, 0x27, 0x10, 0x0f, 0x54, 0xff, - 0xe4, 0x06, 0x96, 0xff, 0x28, 0x12, 0x38, 0x14, 0x07, 0x06, 0x28, 0x15, - 0x07, 0x07, 0x04, 0x07, 0x07, 0xfc, 0x0d, 0xea, 0x28, 0x17, 0x09, 0x20, - 0x20, 0x57, 0x53, 0x06, 0xb8, 0x15, 0x00, 0x00, 0x53, 0x00, 0x75, 0xd0, - 0x06, 0xaf, 0xad, 0x10, 0x07, 0x50, 0x7f, 0x72, 0x06, 0xaf, 0x30, 0x57, - 0x53, 0xe8, 0x90, 0x9a, 0x06, 0xb8, 0x17, 0xa8, 0xb0, 0x06, 0xb8, 0x15, - 0x07, 0x53, 0x7f, 0x6c, 0x06, 0xa4, 0x80, 0x2e, 0x38, 0x04, 0x36, 0x05, - 0x68, 0x01, 0x10, 0x10, 0x94, 0xff, 0x06, 0xb6, 0xff, 0x08, 0x09, 0x09, - 0x82, 0x20, 0x01, 0x08, 0x08, 0x09, 0x0a, 0x0a, 0x20, 0x05, 0x08, 0x00, - 0x08, 0xf1, 0x0c, 0x8f, 0xcb, 0x00, 0x00, 0x0a, 0x9e, 0x28, 0x17, 0x71, - 0x67, 0x06, 0xb8, 0x19, 0x58, 0x17, 0x06, 0x7f, 0xad, 0x10, 0x07, 0x50, - 0x7f, 0x72, 0x81, 0x06, 0x8e, 0x2d, 0x00, 0x00, 0x1c, 0x4e, 0x57, 0x53, - 0x06, 0xd8, 0x17, 0x38, 0xd9, 0xb3, 0x06, 0xb8, 0x19, 0x07, 0x53, 0x7f, - 0x06, 0x91, 0xff, 0x2e, 0x04, 0x33, 0x02, 0x04, 0x3e, 0x04, 0x2d, 0x00, - 0x12, 0x20, 0x05, 0x41, 0x8f, 0x28, 0x0f, 0x3e, 0x04, 0x47, 0x05, 0xc8, - 0x27, 0x10, 0x0f, 0x34, 0xff, 0x06, 0xb6, 0xff, 0x28, 0x0f, 0x90, 0x20, - 0x01, 0x09, 0x09, 0x50, 0x02, 0x09, 0x09, 0xf7, 0x0c, 0x00, 0x6c, 0xcc, - 0x00, 0x00, 0x0b, 0x20, 0xcb, 0x30, 0x08, 0xc3, 0x30, 0xd7, 0x30, 0x06, - 0x98, 0x19, 0x4e, 0x00, 0x69, 0x38, 0x00, 0x70, 0x20, 0x01, 0x36, 0x19, - 0x10, 0x16, 0x30, 0x7f, 0x3c, 0x5c, 0x6e, 0x10, 0x66, 0xaf, 0x65, 0x06, - 0x98, 0x19, 0xc8, 0xb2, 0x04, 0xd5, 0xc7, 0x06, 0xaf, 0xae, 0x0f, 0x03, - 0x7f, 0x1d, 0x04, 0x38, 0x27, 0xfb, 0x10, 0x06, 0x91, 0x7f, 0x10, 0x06, - 0xf5, 0xff, 0x16, 0x0a, 0x04, 0x04, 0x20, 0x01, 0x0a, 0x40, 0x06, 0x38, - 0x22, 0x1d, 0x31, 0x0d, 0x07, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x01, 0x08, - 0x08, 0x20, 0x01, 0x50, 0x01, 0x20, 0x06, 0x03, 0x20, 0x05, 0x01, 0x01, - 0x02, 0x07, 0x00, 0x07, 0x07, 0x07, 0x06, 0x02, 0x02, 0x07, 0x06, 0x01, - 0x07, 0x07, 0x02, 0x02, 0x02, 0x02, 0x03, 0x30, 0x14, 0x20, 0x01, 0x03, - 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x04, 0x94, 0x30, 0x14, 0x02, 0x04, - 0x20, 0x06, 0x08, 0x20, 0x05, 0x04, 0x04, 0x4a, 0x05, 0x30, 0x14, 0x03, - 0x05, 0x20, 0x06, 0x02, 0x20, 0x05, 0x05, 0x20, 0x05, 0x06, 0x30, 0x04, - 0x07, 0x06, 0x06, 0x05, 0x07, 0x8c, 0x20, 0x0b, 0x06, 0x06, 0x06, 0x20, - 0x0a, 0x30, 0x0c, 0x07, 0x06, 0xd1, 0x20, 0x0d, 0x30, 0x5a, 0x08, 0x38, - 0xa4, 0x09, 0x08, 0x08, 0x28, 0xb7, 0xf8, 0x20, 0x05, 0x40, 0x07, 0xc8, - 0xbf, 0xf0, 0xb7, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x04, 0x9b, 0x00, 0x11, 0x12, 0x00, 0x00, - 0x30, 0x01, 0x21, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x06, 0x0a, 0xfb, 0xc1, 0x00, 0x00, 0x00, - 0x02, 0x21, 0xd5, 0x30, 0xe9, 0x30, 0xf3, 0x00, 0x30, 0xb7, 0x30, 0xb9, - 0x30, 0xb3, 0x30, 0xfb, 0x2c, 0x30, 0xe2, 0x20, 0x0d, 0xb5, 0x20, 0x0f, - 0x05, 0x98, 0x2b, 0x46, 0x00, 0x00, 0x72, 0x00, 0x61, 0x00, 0x6e, 0x00, - 0x63, 0x00, 0x10, 0x69, 0x00, 0x73, 0x20, 0x05, 0x6f, 0x00, 0x20, 0x00, - 0x63, 0x4d, 0x20, 0x05, 0x30, 0x15, 0x7a, 0x00, 0xe1, 0x20, 0x19, 0x10, - 0x14, 0xd0, 0x7f, 0x00, 0x17, 0x5f, 0x17, 0x67, 0x7f, 0x89, 0xaf, 0x65, - 0x00, 0xd1, 0x79, 0x2d, 0x00, 0xab, 0x83, 0xc9, 0x62, 0x08, 0x51, 0x68, - 0x01, 0x77, 0x05, 0xbb, 0x29, 0x04, 0xd5, 0x80, 0x00, 0xb7, 0xdc, 0xc2, - 0xa4, 0xc2, 0x54, 0xcf, 0xa8, 0x06, 0xba, 0x7c, 0xb7, 0xb0, 0xc0, 0x05, - 0xfb, 0xa5, 0x0e, 0xf3, 0x7f, 0x24, 0x00, 0x04, 0x40, 0x04, 0x30, 0x04, - 0x3d, 0x04, 0x41, 0x20, 0x04, 0x38, 0x20, 0x03, 0x3a, 0x04, 0x3e, 0x04, - 0x20, 0x36, 0x00, 0x1c, 0x20, 0x05, 0x30, 0x15, 0x41, 0x40, 0x19, 0x10, - 0x1c, 0xd4, 0xff, 0x01, 0x20, 0x08, 0x08, 0x20, 0x01, 0x01, 0x01, 0x09, - 0x08, 0x10, 0x90, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x21, 0xa2, - 0x30, 0x41, 0xc8, 0x48, 0x19, 0xc6, 0x30, 0xa3, 0x30, 0xc0, 0x05, 0xa8, - 0x0f, 0x82, 0x7f, 0xff, 0x41, 0x00, 0x74, 0x00, 0x6c, 0x47, 0xff, 0x74, - 0xb0, 0x28, 0x19, 0x64, 0x28, 0x23, 0x10, 0x15, 0xd0, 0x7f, 0x3f, 0x96, - 0x79, 0x72, 0x03, 0x70, 0x51, 0x82, 0x84, 0xbe, 0x8f, 0x05, 0xd8, 0x0f, - 0x7f, 0xff, 0x00, 0x44, 0xc5, 0xc0, 0xd2, 0x80, 0xb7, 0xf0, 0xd2, 0x30, - 0xe4, 0xb2, 0x06, 0x5f, 0xb7, 0x0e, 0xf3, 0x7f, 0x10, 0x04, 0x42, 0x04, - 0x56, 0x3b, 0x48, 0x19, 0x42, 0x28, 0x19, 0x34, 0x28, 0x23, 0x10, 0x1d, - 0xd4, 0xff, 0x02, 0x90, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, - 0x02, 0x02, 0x08, 0x39, 0x0b, 0x47, 0xc2, 0x2c, 0xad, 0x21, 0xc1, 0x30, - 0x16, 0xe7, 0x30, 0xeb, 0x28, 0x15, 0xab, 0x06, 0x28, 0x13, 0x3f, 0xff, - 0x43, 0x22, 0x00, 0x68, 0x2f, 0xa3, 0x6c, 0x00, 0x75, 0x28, 0x1f, 0x65, - 0xe0, 0x2f, 0xb5, 0x05, 0xf8, 0x17, 0x10, 0x0e, 0xf0, 0x7f, 0x54, 0x4e, - 0x62, 0x53, 0x79, 0x18, 0x72, 0x61, 0x53, 0x06, 0x58, 0x15, 0x26, 0x97, - 0xcd, 0xe8, 0xb8, 0x0c, 0x4c, 0xd1, 0x74, 0xce, 0x06, 0x58, 0x15, 0x0f, - 0x13, 0x7f, 0x27, 0x04, 0x51, 0x3e, 0x28, 0x17, 0x43, 0x28, 0x1d, 0x35, - 0x04, 0x3a, 0x06, 0x08, 0x15, 0xa0, 0x10, 0x17, 0x14, 0xff, 0x03, 0x38, - 0x0c, 0x02, 0x03, 0x03, 0x03, 0x02, 0x40, 0x11, 0x30, 0x05, 0x03, 0x78, - 0x09, 0xfb, 0xc1, 0x00, 0x00, 0x00, 0x05, 0x21, 0xb3, 0x30, 0xed, 0x30, - 0xf3, 0xec, 0x06, 0x68, 0x13, 0x58, 0x17, 0x38, 0x15, 0xf3, 0x2f, 0xaf, - 0x10, 0x16, 0x50, 0x7f, 0xd1, 0x79, 0x30, 0x86, 0x96, 0x06, 0x78, 0x13, - 0x3f, 0xff, 0x5c, 0xcf, 0x60, 0xb8, 0xd1, 0x06, 0x93, 0x7d, 0x0f, 0x13, - 0x7f, 0x1a, 0x48, 0x17, 0x3e, 0x04, 0x3d, 0x06, 0x08, 0x11, 0xa0, 0x10, - 0x17, 0x54, 0xff, 0x04, 0x38, 0x0c, 0x03, 0x04, 0x04, 0x04, 0x03, 0x40, - 0x08, 0x30, 0x05, 0x04, 0x51, 0x0b, 0xd9, 0xc2, 0x00, 0x20, 0x00, 0x06, - 0x28, 0x17, 0xde, 0x30, 0xe4, 0x30, 0xb0, 0x35, 0x30, 0xa2, 0x06, 0x68, - 0x1b, 0x38, 0x17, 0x6d, 0x2f, 0xa5, 0x79, 0x2f, 0xa9, 0x70, 0x67, 0x2f, - 0xb5, 0x06, 0x1f, 0xaf, 0x10, 0x0e, 0xd0, 0x7f, 0xd1, 0x79, 0x6c, 0x9a, - 0x08, 0x9a, 0x4e, 0xdc, 0x74, 0x06, 0x78, 0x1b, 0x54, 0xcf, 0xc8, 0x06, - 0xb9, 0x7c, 0xc5, 0xfc, 0xac, 0x06, 0xbb, 0x97, 0x0e, 0xb3, 0x7f, 0x1a, - 0x08, 0x04, 0x30, 0x04, 0x3c, 0x20, 0x03, 0x4f, 0x04, 0x33, 0x34, 0x04, - 0x43, 0x20, 0x0b, 0x10, 0x1d, 0xf4, 0xff, 0x05, 0x38, 0x0c, 0x04, 0x05, - 0x08, 0x05, 0x05, 0x04, 0x07, 0x30, 0x05, 0x05, 0x46, 0x0a, 0x04, 0xaf, - 0xc1, 0x00, 0x00, 0x07, 0x28, 0x17, 0xd1, 0x30, 0x63, 0xf3, 0x06, 0x68, - 0x13, 0x7f, 0xaf, 0x70, 0x00, 0xe1, 0x06, 0xcf, 0xaf, 0x10, 0x0e, 0xb0, - 0x7f, 0x0c, 0xd1, 0x79, 0x58, 0x6f, 0x06, 0x78, 0x13, 0x58, 0x17, 0x10, - 0xd3, 0xc1, 0x06, 0x93, 0x7d, 0x0f, 0x13, 0x7f, 0x1a, 0x04, 0x3e, 0x04, - 0x3f, 0x28, 0x1b, 0x68, 0x3d, 0x06, 0x08, 0x11, 0x10, 0x17, 0x54, 0xff, - 0x06, 0x38, 0x0c, 0x05, 0x06, 0x06, 0x10, 0x06, 0x05, 0x09, 0x30, 0x05, - 0x06, 0x80, 0x0a, 0xde, 0x08, 0xc0, 0x00, 0x00, 0x08, 0x28, 0x17, 0xeb, - 0x30, 0xc6, 0x30, 0x30, 0xb9, 0x06, 0x88, 0x19, 0x3f, 0xaf, 0x72, 0x00, - 0x74, 0x00, 0x10, 0xe9, 0x00, 0x73, 0x10, 0x16, 0x40, 0x7f, 0xd1, 0x79, - 0x14, 0x5c, 0x08, 0x79, 0x72, 0xaf, 0x65, 0x06, 0x78, 0x1b, 0x54, 0xcf, - 0x74, 0x05, 0xb9, 0x4c, 0xd1, 0xa4, 0xc2, 0x0e, 0xf3, 0x7f, 0xea, 0x06, - 0x63, 0xff, 0x80, 0x38, 0x17, 0x40, 0x04, 0x42, 0x04, 0x35, 0x04, 0x41, - 0xd0, 0x06, 0x48, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x07, 0x38, 0x0c, 0x06, - 0x07, 0x07, 0x07, 0x20, 0x06, 0x0a, 0x30, 0x05, 0x07, 0x05, 0x0b, 0x67, - 0xc1, 0x04, 0x00, 0x00, 0x09, 0x21, 0xa8, 0x28, 0x17, 0xfb, 0x30, 0x01, - 0xd1, 0x30, 0xe9, 0x30, 0xa4, 0x30, 0xbd, 0x06, 0x28, 0x1d, 0x00, 0x45, - 0x00, 0x6c, 0x00, 0x20, 0x00, 0x50, 0x00, 0x45, 0x61, 0x28, 0x1d, 0x61, - 0x00, 0xed, 0x28, 0x1d, 0x6f, 0x10, 0x15, 0xc0, 0x7f, 0x00, 0xc3, 0x57, - 0x14, 0x5c, 0x15, 0x5e, 0xc9, 0x62, 0x08, 0x0a, 0x4f, 0x22, 0x7d, 0x06, - 0x38, 0x1b, 0xd8, 0xc5, 0x0c, 0x03, 0xd3, 0x7c, 0xb7, 0x74, 0xc7, 0x8c, - 0x23, 0x8d, 0x06, 0x3f, 0xb2, 0x80, 0x0e, 0xf3, 0x7f, 0x2d, 0x04, 0x3b, - 0x04, 0x4c, 0x04, 0x2d, 0x08, 0x00, 0x1f, 0x04, 0x30, 0x28, 0x1f, 0x30, - 0x04, 0x38, 0xb4, 0x28, 0x1f, 0x3e, 0x05, 0xa8, 0x21, 0x10, 0x16, 0xf4, - 0xff, 0x08, 0x38, 0x0c, 0x07, 0x08, 0x08, 0x08, 0x08, 0x07, 0x12, 0x30, - 0x05, 0x08, 0xe8, 0x09, 0x44, 0x3e, 0x2c, 0xa3, 0x0a, 0x21, 0xb0, 0x28, - 0x11, 0xb7, 0x30, 0x14, 0xa2, 0x30, 0xb9, 0x28, 0x1d, 0xa2, 0x28, 0x21, - 0xc7, 0x30, 0x1a, 0xa3, 0x30, 0xaa, 0x20, 0x0d, 0x05, 0x7f, 0xbc, 0x47, - 0x48, 0x0f, 0x63, 0x2a, 0x00, 0x69, 0x28, 0x19, 0x73, 0x28, 0x21, 0x61, - 0x28, 0x25, 0x44, 0xb0, 0x20, 0x0d, 0x6f, 0x05, 0x6f, 0xbf, 0x10, 0x0e, - 0xf0, 0x7f, 0x3c, 0x68, 0xc9, 0x62, 0x00, 0x7f, 0x89, 0x9a, 0x4e, 0xaf, - 0x65, 0x2d, 0x00, 0x00, 0x3f, 0x96, 0xea, 0x8f, 0x65, 0x59, 0xaf, 0x65, - 0x80, 0x05, 0xb8, 0x1f, 0xf8, 0xad, 0x7c, 0xb7, 0xdc, 0xc2, 0x44, 0x20, - 0xc5, 0xa4, 0x20, 0x03, 0x14, 0xb5, 0x24, 0xc6, 0xa4, 0xea, 0x23, 0x95, - 0x05, 0xbf, 0xb8, 0x0e, 0xf3, 0x7f, 0x13, 0x48, 0x0d, 0x41, 0x28, 0x1b, - 0x4f, 0x8a, 0x28, 0x11, 0x2d, 0x00, 0x30, 0x28, 0x23, 0x14, 0x28, 0x29, - 0x3e, 0xc8, 0x28, 0x1f, 0x10, 0x1d, 0x34, 0xff, 0x09, 0x09, 0x50, 0x01, - 0x0a, 0x09, 0x03, 0x80, 0x40, 0x0a, 0xdb, 0x0a, 0x6f, 0xc4, 0x00, 0x00, - 0x0b, 0x02, 0x21, 0xa4, 0x30, 0xf3, 0x30, 0xc6, 0x28, 0x0b, 0xd6, 0x30, - 0x30, 0xab, 0x05, 0x88, 0x0b, 0xbf, 0xff, 0x49, 0x00, 0x6e, 0x00, 0x45, - 0x74, 0x28, 0x15, 0x62, 0x00, 0x75, 0x28, 0x1d, 0xe1, 0x10, 0x16, 0x00, - 0x7f, 0x00, 0xe0, 0x56, 0x82, 0x84, 0x03, 0x5e, 0x61, 0x53, 0xc0, 0x05, - 0xb8, 0x0b, 0xbf, 0xff, 0x78, 0xc7, 0xf0, 0xd2, 0x80, 0xbd, 0x30, 0x74, - 0xce, 0x06, 0x50, 0x7d, 0x0f, 0x13, 0x7f, 0x18, 0x04, 0x3d, 0x04, 0x00, - 0x42, 0x04, 0x38, 0x04, 0x31, 0x04, 0x43, 0x04, 0x64, 0x3a, 0x28, 0x21, - 0x10, 0x1d, 0xf4, 0xff, 0x0a, 0x0a, 0x50, 0x01, 0x0b, 0x0a, 0x40, 0x04, - 0x40, 0x0a, 0x2b, 0x0a, 0x4b, 0xc1, 0x00, 0x00, 0x44, 0x0c, 0x28, 0x17, - 0xb9, 0x30, 0xe9, 0x20, 0x03, 0xfb, 0x30, 0x50, 0xc7, 0x20, 0x03, 0xe9, - 0x20, 0x07, 0xd0, 0x30, 0xa4, 0x30, 0x54, 0xa2, 0x05, 0x88, 0x23, 0x49, - 0x2f, 0xa5, 0x6c, 0x6f, 0xab, 0x64, 0x00, 0x62, 0x65, 0x2f, 0xb1, 0x30, - 0x0d, 0x20, 0x00, 0x42, 0x2f, 0xc5, 0x68, 0x30, 0x00, 0xed, 0x2f, 0xcb, - 0x10, 0x14, 0xd0, 0x7f, 0x77, 0x6d, 0x7e, 0x6e, 0x08, 0xa4, 0x7f, 0x9b, - 0x5c, 0x06, 0x78, 0x17, 0x74, 0xc7, 0xac, 0x00, 0xc2, 0x7c, 0xb7, 0xa4, - 0xc2, 0x70, 0xb3, 0x7c, 0x01, 0xb7, 0x14, 0xbc, 0x74, 0xc7, 0x44, 0xc5, - 0x05, 0xdb, 0x9d, 0xa3, 0x33, 0x67, 0x61, 0x2f, 0xad, 0x20, 0x00, 0x45, - 0x2f, 0xb3, 0x33, 0x89, 0x50, 0x6e, 0x43, 0x87, 0x6e, 0x0d, 0x63, 0xff, - 0x18, 0x04, 0x41, 0x04, 0x40, 0x3b, 0x28, 0x0f, 0x41, 0x04, 0x2d, 0x00, - 0x34, 0x04, 0x62, 0x35, 0x20, 0x05, 0x30, 0x0d, 0x2d, 0x00, 0x11, 0x28, - 0x23, 0x38, 0x32, 0x04, 0x4f, 0x05, 0x08, 0x27, 0x10, 0x16, 0xf4, 0xff, - 0x0b, 0x0b, 0x50, 0x01, 0x02, 0x20, 0x0b, 0x06, 0x40, 0x0a, 0x97, 0x0b, - 0x75, 0xc2, 0x00, 0x16, 0x00, 0x0d, 0x21, 0x38, 0x09, 0xd1, 0x28, 0x1b, - 0x06, 0x7c, 0xaf, 0x4c, 0xa8, 0x48, 0x05, 0x50, 0x28, 0x19, 0x7a, 0x10, - 0x16, 0x40, 0x7f, 0xc9, 0x62, 0xf4, 0x10, 0x5d, 0xaf, 0x65, 0x06, 0x78, - 0x15, 0x00, 0x00, 0x7c, 0xb7, 0x1a, 0x0c, 0xd3, 0xa4, 0x23, 0x89, 0x10, - 0x06, 0x73, 0x7f, 0x1b, 0x48, 0x05, 0x1f, 0xca, 0x48, 0x19, 0x10, 0x1e, - 0x34, 0xff, 0x0c, 0x0c, 0x70, 0x01, 0x0b, 0x40, 0x0a, 0x2e, 0x00, 0x0a, - 0xa6, 0xc1, 0x00, 0x00, 0x0e, 0x21, 0xec, 0x02, 0x30, 0xf3, 0x30, 0xd4, - 0x30, 0xe9, 0x06, 0xa8, 0x17, 0x65, 0x0b, 0x00, 0x6d, 0x00, 0x70, 0x2c, - 0xb1, 0x72, 0x05, 0x0f, 0x9b, 0x10, 0x10, 0x30, 0x7f, 0x02, 0x26, 0x4f, - 0xae, 0x76, 0xc9, 0x62, 0x06, 0x98, 0x17, 0x18, 0x06, 0xb8, 0x3c, 0xd5, - 0x7c, 0xb7, 0x06, 0xb8, 0x17, 0x0e, 0xd3, 0x7f, 0x1b, 0x00, 0x04, 0x35, - 0x04, 0x3c, 0x04, 0x3f, 0x04, 0x38, 0x32, 0x04, 0x40, 0x28, 0x21, 0x10, - 0x1e, 0x14, 0xff, 0x0d, 0x0d, 0x70, 0x01, 0x0c, 0x88, 0x40, 0x0a, 0x5e, - 0x0a, 0x02, 0x28, 0x17, 0x0f, 0x21, 0xaa, 0x00, 0x30, 0xb3, 0x30, 0xc6, - 0x30, 0xda, 0x30, 0xb1, 0x80, 0x06, 0x68, 0x19, 0x4f, 0x00, 0x63, 0x00, - 0x6f, 0x00, 0x74, 0xa3, 0x28, 0x1d, 0x70, 0x28, 0x21, 0x71, 0x00, 0x75, - 0x28, 0x27, 0x10, 0x15, 0xb0, 0x7f, 0x00, 0x65, 0x59, 0xd1, 0x79, 0x79, - 0x72, 0x69, 0x4f, 0x20, 0x4b, 0x51, 0x06, 0x58, 0x1b, 0x24, 0xc6, 0x54, - 0xcf, 0x4c, 0x04, 0xd1, 0x98, 0xd3, 0x00, 0xcf, 0x10, 0x06, 0x53, 0x7f, - 0x1e, 0x04, 0x55, 0x3a, 0x28, 0x0f, 0x42, 0x28, 0x1d, 0x3f, 0x28, 0x21, - 0x3a, 0x28, 0x25, 0x94, 0x10, 0x1d, 0xd4, 0xff, 0x0e, 0x0e, 0x70, 0x01, - 0x0d, 0x40, 0x0a, 0x43, 0x0a, 0x04, 0x95, 0xc0, 0x00, 0x00, 0x10, 0x28, - 0x17, 0xe9, 0x30, 0x05, 0xf3, 0x30, 0xc1, 0x30, 0xe7, 0x06, 0x88, 0x17, - 0x6c, 0x2f, 0xa7, 0x58, 0x6e, 0x28, 0x1d, 0x68, 0x28, 0x1f, 0x10, 0x16, - 0x10, 0x7f, 0x65, 0x59, 0x70, 0x18, 0x51, 0x54, 0x4e, 0x06, 0x58, 0x13, - 0x3f, 0xff, 0x2c, 0xc6, 0x80, 0x18, 0xb7, 0x08, 0xcd, 0x06, 0x70, 0x7d, - 0x0f, 0x13, 0x7f, 0x1e, 0x04, 0x3b, 0x83, 0x28, 0x17, 0x3d, 0x04, 0x45, - 0x04, 0x3e, 0x05, 0xe8, 0x11, 0x10, 0x17, 0x54, 0xff, 0x28, 0x0f, 0x0f, - 0x70, 0x01, 0x0e, 0x40, 0x0a, 0x6a, 0x0a, 0xb4, 0x02, 0xc2, 0x00, 0x00, - 0x11, 0x21, 0xb5, 0x28, 0x15, 0xbf, 0x02, 0x30, 0xfb, 0x30, 0xd0, 0x30, - 0xeb, 0x20, 0x03, 0xe9, 0xa8, 0x06, 0x08, 0x1d, 0x53, 0x48, 0x15, 0x74, - 0x28, 0x1b, 0x20, 0x00, 0x42, 0x02, 0x00, 0xe1, 0x00, 0x72, 0x00, 0x62, - 0x28, 0x27, 0x72, 0xc0, 0x28, 0x2b, 0x10, 0x15, 0x50, 0x7f, 0x23, 0x57, - 0xf4, 0x5d, 0xf4, 0x5d, 0x20, 0xc9, 0x62, 0x06, 0x78, 0x19, 0xb0, 0xc0, - 0xc0, 0xd0, 0x14, 0x01, 0xbc, 0x74, 0xb9, 0x14, 0xbc, 0x7c, 0xb7, 0x06, - 0x3b, 0x99, 0xa8, 0x0e, 0xf3, 0x7f, 0x21, 0x48, 0x15, 0x42, 0x28, 0x1b, - 0x2d, 0x00, 0x11, 0x8b, 0x28, 0x21, 0x40, 0x04, 0x31, 0x40, 0x05, 0x30, - 0x05, 0x68, 0x25, 0x10, 0x16, 0xf4, 0xff, 0x28, 0x10, 0x10, 0x70, 0x01, - 0x0f, 0x40, 0x0a, 0x9b, 0x0a, 0x42, 0x00, 0xc1, 0x00, 0x00, 0x12, 0x21, - 0xd0, 0x30, 0xb8, 0x35, 0x30, 0xa7, 0x06, 0x08, 0x0d, 0x9f, 0xff, 0x56, - 0x2f, 0xad, 0x6c, 0x2f, 0xb3, 0x43, 0x65, 0x10, 0x16, 0x60, 0x7f, 0x71, - 0x5c, 0x37, 0x8c, 0x06, 0x78, 0x13, 0x3f, 0xff, 0x0d, 0x14, 0xbc, 0x08, - 0xc6, 0x06, 0x93, 0x7d, 0x0f, 0x13, 0x7f, 0x12, 0x28, 0x17, 0x59, 0x3b, - 0x20, 0x01, 0x35, 0x05, 0x68, 0x07, 0x10, 0x17, 0xf4, 0xff, 0x11, 0x11, - 0x70, 0x01, 0x44, 0x02, 0x40, 0x0a, 0xa0, 0x09, 0xca, 0x28, 0x17, 0x13, - 0x21, 0x10, 0xe8, 0x30, 0xed, 0x06, 0xa8, 0x15, 0x00, 0x00, 0x59, 0x00, - 0x50, 0x6f, 0x2f, 0xa3, 0x6f, 0x10, 0x16, 0x80, 0x7f, 0xa6, 0x7e, 0x57, - 0x7f, 0x84, 0x06, 0xb8, 0x17, 0x94, 0xc6, 0x5c, 0xb8, 0x10, 0x06, 0xb3, - 0x7f, 0x19, 0x04, 0x19, 0x3e, 0x04, 0x40, 0x20, 0x03, 0x10, 0x1e, 0x74, - 0xff, 0x12, 0x12, 0x70, 0x01, 0x42, 0x05, 0x40, 0x0a, 0xc2, 0x0a, 0x0a, - 0xc2, 0x00, 0x3f, 0xff, 0x01, 0x20, 0x08, 0x08, 0x20, 0x01, 0x01, 0x01, - 0x09, 0x08, 0x10, 0x89, 0x20, 0x05, 0x01, 0x01, 0x02, 0x30, 0x04, 0x01, - 0x02, 0x40, 0x06, 0x04, 0x02, 0x02, 0x02, 0x02, 0x03, 0x30, 0x04, 0x02, - 0x03, 0x09, 0x03, 0x03, 0x02, 0x11, 0x30, 0x05, 0x03, 0x04, 0x30, 0x04, - 0x02, 0x03, 0x04, 0x04, 0x04, 0x03, 0x08, 0x30, 0x05, 0x04, 0x40, 0x05, - 0x30, 0x04, 0x04, 0x05, 0x05, 0x05, 0x04, 0x07, 0x90, 0x30, 0x05, 0x05, - 0x06, 0x30, 0x04, 0x05, 0x06, 0x06, 0x06, 0x24, 0x05, 0x09, 0x30, 0x05, - 0x06, 0x07, 0x30, 0x04, 0x06, 0x07, 0x09, 0x07, 0x07, 0x06, 0x0a, 0x30, - 0x05, 0x07, 0x08, 0x30, 0x04, 0x48, 0x07, 0x20, 0x74, 0x07, 0x12, 0x30, - 0x05, 0x08, 0x09, 0x09, 0x8a, 0x50, 0x01, 0x0a, 0x09, 0x03, 0x50, 0x07, - 0x0a, 0x50, 0x01, 0x0b, 0x28, 0x0a, 0x04, 0x50, 0x07, 0x0b, 0x50, 0x01, - 0x02, 0x0b, 0x06, 0x99, 0x40, 0x0a, 0x0c, 0x0c, 0x70, 0x01, 0x50, 0x0a, - 0x0d, 0x0d, 0x70, 0x01, 0x99, 0x50, 0x0a, 0x0e, 0x0e, 0x70, 0x01, 0x50, - 0x0a, 0x0f, 0x0f, 0x70, 0x01, 0x9f, 0x50, 0x0a, 0x10, 0x10, 0x70, 0x01, - 0x50, 0x0a, 0xf9, 0x3f, 0xf1, 0x37, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x64, 0x7a, 0x00, - 0x11, 0x0e, 0x00, 0x00, 0x30, 0x01, 0x22, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xcc, 0x0c, 0x63, - 0xc9, 0x00, 0x00, 0x00, 0x02, 0x22, 0xbb, 0x30, 0xf3, 0x30, 0xc8, 0x20, - 0x30, 0xfb, 0x20, 0x03, 0xfc, 0x30, 0xde, 0x30, 0xb9, 0x40, 0x30, 0x05, - 0xf8, 0x25, 0x53, 0x00, 0x61, 0x00, 0x69, 0x00, 0x00, 0x6e, 0x00, 0x74, - 0x00, 0x20, 0x00, 0x54, 0x00, 0x05, 0x68, 0x00, 0x6f, 0x00, 0x6d, 0x20, - 0x11, 0x73, 0x06, 0x20, 0x7f, 0x70, 0x2d, 0x06, 0xe0, 0x7f, 0x06, 0xf0, - 0xff, 0x0e, 0x50, 0x7f, 0x23, 0x57, 0x58, 0x62, 0x02, 0x6c, 0x9a, 0xaf, - 0x65, 0x3a, 0x53, 0x06, 0x5b, 0x1f, 0x38, 0x00, 0xc1, 0x78, 0xc7, 0xb8, - 0xd2, 0xa0, 0xd1, 0x38, 0x18, 0xba, 0xa4, 0xc2, 0x06, 0x3b, 0xa1, 0x0e, - 0xf2, 0x7f, 0x21, 0x04, 0x35, 0x00, 0x04, 0x3d, 0x04, 0x42, 0x04, 0x2d, - 0x00, 0x22, 0x00, 0x04, 0x3e, 0x04, 0x3c, 0x04, 0x30, 0x04, 0x41, 0x60, - 0x04, 0x10, 0x05, 0xb1, 0x7f, 0x10, 0x06, 0xf4, 0xff, 0x01, 0x0c, 0x06, - 0x0c, 0x0c, 0x02, 0x0c, 0x01, 0x01, 0x0c, 0x0c, 0x08, 0x20, 0x05, 0x01, - 0x40, 0x01, 0x58, 0x17, 0x03, 0x22, 0xaf, 0x30, 0xe9, 0x30, 0x58, 0xec, - 0x28, 0x1b, 0xc9, 0x28, 0x1f, 0x06, 0x3f, 0xb9, 0x43, 0x00, 0x6c, 0x8a, - 0x28, 0x19, 0x72, 0x00, 0x65, 0x28, 0x1b, 0x64, 0x28, 0x15, 0x6e, 0x80, - 0x10, 0x15, 0xe0, 0x7f, 0x4b, 0x51, 0xc9, 0x62, 0x26, 0x4f, 0x7b, 0x40, - 0x76, 0x06, 0x78, 0x17, 0x74, 0xd0, 0x98, 0xb7, 0xf0, 0xb7, 0x30, 0x58, - 0xb3, 0x06, 0x7f, 0xb5, 0x0e, 0xf3, 0x7f, 0x1a, 0x04, 0x3b, 0x04, 0x15, - 0x4d, 0x04, 0x40, 0x48, 0x1d, 0x34, 0x28, 0x19, 0x3d, 0x05, 0xc8, 0x15, - 0xa5, 0x10, 0x17, 0x14, 0xff, 0x02, 0x38, 0x0c, 0x01, 0x02, 0x20, 0x06, - 0x02, 0x20, 0x05, 0x04, 0x02, 0x02, 0xc6, 0x0c, 0x15, 0x28, 0x17, 0x04, - 0x22, 0x01, 0xcf, 0x30, 0xce, 0x30, 0xfc, 0x30, 0xd0, 0x20, 0x03, 0xaa, - 0x06, 0x5d, 0x2f, 0x48, 0x2f, 0xaf, 0x6e, 0x2f, 0xa5, 0x76, 0x28, 0x19, - 0x72, 0x81, 0x10, 0x16, 0x20, 0x7f, 0x49, 0x6c, 0xfa, 0x8b, 0x01, 0x5a, - 0x06, 0x78, 0x15, 0x83, 0x28, 0x17, 0xd5, 0x78, 0xb1, 0x84, 0xbc, 0x06, - 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x11, 0x25, 0x04, 0x30, 0x28, 0x11, 0x3e, - 0x04, 0x32, 0x28, 0x19, 0x69, 0x40, 0x05, 0xe8, 0x13, 0x10, 0x17, 0x34, - 0xff, 0x03, 0x38, 0x0c, 0x02, 0x03, 0x20, 0x06, 0x40, 0x0e, 0x20, 0x05, - 0x03, 0x03, 0x1e, 0x0d, 0x6b, 0xc8, 0x00, 0x00, 0x00, 0x05, 0x22, 0xde, - 0x30, 0xf3, 0x30, 0x01, 0xc1, 0x30, 0xa7, 0x30, 0xb9, 0x30, 0xbf, 0x06, - 0x48, 0x1b, 0x44, 0x4d, 0x48, 0x17, 0x63, 0x00, 0x68, 0x2f, 0xb1, 0x73, - 0x00, 0x60, 0x74, 0x06, 0x08, 0x1d, 0x10, 0x0e, 0xf0, 0x7f, 0xfc, 0x66, - 0x7b, 0x5f, 0xaf, 0x10, 0x65, 0x79, 0x72, 0x06, 0x78, 0x19, 0xe8, 0xb9, - 0xb4, 0xcc, 0x0d, 0xa4, 0xc2, 0x30, 0xd1, 0x06, 0x78, 0x97, 0x0e, 0xf3, - 0x7f, 0x1c, 0x48, 0x17, 0x46, 0x47, 0x28, 0x15, 0x41, 0x04, 0x42, 0x06, - 0x28, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x04, 0x51, 0x04, 0x70, 0x01, 0x03, - 0x40, 0x0a, 0xd2, 0x0c, 0xe4, 0x28, 0x17, 0x11, 0x06, 0x22, 0xdd, 0x28, - 0x0d, 0xc8, 0x30, 0xe9, 0x28, 0x1d, 0x45, 0xc9, 0x06, 0x28, 0x15, 0x00, - 0x00, 0x50, 0x2f, 0xab, 0x72, 0x28, 0x0f, 0x50, 0x6c, 0x4f, 0xb7, 0x64, - 0x10, 0x16, 0x00, 0x7f, 0xe2, 0x6c, 0x79, 0x72, 0x20, 0x70, 0x51, 0x06, - 0x78, 0x15, 0x00, 0x00, 0xec, 0xd3, 0xc0, 0x06, 0xd2, 0x9c, 0xb7, 0xdc, - 0xb4, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1f, 0x20, 0x04, 0x3e, 0x28, - 0x0b, 0x42, 0x04, 0x3b, 0x04, 0x4d, 0xb2, 0x28, 0x1f, 0x34, 0x05, 0xe8, - 0x15, 0x10, 0x17, 0x14, 0xff, 0x05, 0x05, 0x70, 0x01, 0x04, 0x80, 0x40, - 0x0a, 0xee, 0x0c, 0xa0, 0xc9, 0x00, 0x00, 0x07, 0x20, 0x22, 0xbb, 0x28, - 0x11, 0xc8, 0x30, 0xfb, 0x30, 0xa2, 0x8d, 0x48, 0x19, 0xea, 0x30, 0xe5, - 0x28, 0x27, 0x05, 0xbf, 0xb0, 0x53, 0x2f, 0xaf, 0x41, 0x69, 0x2f, 0xb1, - 0x74, 0x00, 0x20, 0x00, 0x41, 0x48, 0x19, 0x50, 0x72, 0x2f, 0xb9, 0x77, - 0x10, 0x15, 0x80, 0x7f, 0x23, 0x57, 0x89, 0x5b, 0x08, 0xb7, 0x5f, 0x81, - 0x9c, 0x06, 0x78, 0x19, 0x38, 0xc1, 0x78, 0x00, 0xc7, 0xb8, 0xd2, 0x64, - 0xc5, 0xdc, 0xb4, 0xe8, 0x62, 0xb8, 0x06, 0x3b, 0x97, 0x0e, 0xf3, 0x7f, - 0x21, 0x04, 0x35, 0x28, 0x0f, 0x42, 0x08, 0x04, 0x2d, 0x00, 0x2d, 0x48, - 0x17, 0x40, 0x04, 0x4e, 0xc1, 0x05, 0xc8, 0x1b, 0x10, 0x16, 0xf4, 0xff, - 0x06, 0x06, 0x07, 0x06, 0x06, 0x40, 0x01, 0x45, 0x0a, 0x40, 0x07, 0xcc, - 0x0c, 0x63, 0x28, 0x17, 0x08, 0xc8, 0x17, 0xb3, 0x07, 0x34, 0x97, 0x6e, - 0x10, 0x15, 0xe0, 0x7f, 0x38, 0x17, 0x1c, 0x5a, 0x06, 0x78, 0x15, 0x98, - 0x17, 0xec, 0x06, 0x70, 0x7f, 0x0e, 0xf3, 0x7f, 0xd8, 0x17, 0x3d, 0x05, - 0xc8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x07, 0x07, 0x14, 0x08, 0x07, 0x07, - 0x40, 0x01, 0x0b, 0x40, 0x07, 0x1b, 0x0d, 0x50, 0x1b, 0x28, 0x17, 0x09, - 0x88, 0x17, 0xad, 0x30, 0xe3, 0x30, 0x1a, 0xb5, 0x30, 0xea, 0x06, 0x08, - 0x1d, 0xbf, 0xaf, 0x43, 0x2f, 0xbb, 0x74, 0x2a, 0x00, 0x68, 0x2f, 0xaf, - 0x72, 0x4f, 0xc3, 0x65, 0x10, 0x15, 0x20, 0x7f, 0x23, 0x01, 0x57, 0xef, - 0x51, 0x5f, 0x74, 0x33, 0x74, 0x06, 0x78, 0x19, 0x81, 0x58, 0x17, 0x90, - 0xce, 0x1c, 0xc1, 0xb0, 0xb9, 0x06, 0xfb, 0x97, 0xc4, 0x0e, 0x33, 0x7f, - 0x98, 0x17, 0x1a, 0x04, 0x4d, 0x28, 0x1f, 0x40, 0x04, 0x60, 0x38, 0x05, - 0xc8, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x08, 0x08, 0x09, 0x08, 0x08, 0xa2, - 0x40, 0x01, 0x06, 0x40, 0x07, 0xc9, 0x0c, 0x48, 0x28, 0x17, 0x0a, 0xa0, - 0x88, 0x17, 0xa8, 0x28, 0x13, 0xb6, 0x30, 0xd9, 0x30, 0xb9, 0x8a, 0x06, - 0xa8, 0x17, 0x45, 0x00, 0x6c, 0x2f, 0xbb, 0x7a, 0x2f, 0xc1, 0x62, 0xe0, - 0x28, 0x1b, 0x38, 0x21, 0x10, 0x15, 0x10, 0x7f, 0x23, 0x57, 0x0a, 0x4f, - 0x3d, 0x06, 0x4e, 0x8e, 0x83, 0x7d, 0x76, 0x06, 0x58, 0x19, 0x58, 0x17, - 0xd8, 0x00, 0xc5, 0xac, 0xb9, 0x90, 0xc7, 0xa0, 0xbc, 0xa4, 0x71, 0xc2, - 0x06, 0xbe, 0xaf, 0x0e, 0x33, 0x7f, 0x98, 0x17, 0x2d, 0x04, 0x3b, 0x28, - 0x13, 0x05, 0x37, 0x04, 0x30, 0x04, 0x31, 0x28, 0x2b, 0x42, 0x05, 0x68, - 0x1b, 0x82, 0x10, 0x16, 0xf4, 0xff, 0x09, 0x09, 0x0a, 0x09, 0x09, 0xa0, - 0x01, 0xcf, 0x02, 0x0c, 0xa4, 0xc8, 0x00, 0x00, 0x0b, 0x88, 0x17, 0xb8, - 0x00, 0x30, 0xa7, 0x30, 0xfc, 0x30, 0xe0, 0x30, 0xba, 0xaa, 0x06, 0xa8, - 0x17, 0x4a, 0x2f, 0xbb, 0x6d, 0x2f, 0xad, 0x73, 0x10, 0x15, 0xa0, 0x7f, - 0x23, 0x01, 0x57, 0x79, 0x8a, 0xc6, 0x59, 0xaf, 0x65, 0x06, 0x58, 0x15, - 0x87, 0x78, 0x17, 0x1c, 0xc8, 0x84, 0xc7, 0x06, 0x18, 0x13, 0x0f, 0x33, - 0x7f, 0x98, 0x17, 0x00, 0x14, 0x04, 0x36, 0x04, 0x4d, 0x04, 0x39, 0x04, - 0x18, 0x3c, 0x04, 0x41, 0x05, 0x68, 0x13, 0x10, 0x17, 0x34, 0xff, 0x0a, - 0x0a, 0x0b, 0x28, 0x0a, 0x0a, 0x40, 0x01, 0x05, 0x40, 0x07, 0x21, 0x0d, - 0x98, 0xa0, 0x28, 0x17, 0x0c, 0x88, 0x17, 0xe1, 0x30, 0xa2, 0x30, 0xea, - 0xd1, 0x28, 0x19, 0x06, 0xbc, 0xaf, 0x4d, 0x2f, 0xbb, 0x72, 0x00, 0x79, - 0x10, 0x15, 0xc0, 0x7f, 0x03, 0x23, 0x57, 0x9b, 0x73, 0x3d, 0x4e, 0x06, - 0x78, 0x15, 0x78, 0x17, 0x0e, 0x54, 0xba, 0xac, 0xb9, 0x06, 0x58, 0x97, - 0x0e, 0xf3, 0x7f, 0x98, 0x17, 0x1c, 0x8c, 0x28, 0x15, 0x40, 0x04, 0x38, - 0x05, 0xa8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x0b, 0x0b, 0x14, 0x0c, 0x0b, - 0x0b, 0x40, 0x01, 0x07, 0x40, 0x07, 0x0f, 0x0d, 0x00, 0x51, 0xc9, 0x00, - 0x00, 0x0d, 0x22, 0xc8, 0x30, 0x16, 0xec, 0x30, 0xed, 0x28, 0x0f, 0xcb, - 0x06, 0x28, 0x13, 0x3f, 0xff, 0x54, 0x8b, 0x28, 0x09, 0x65, 0x00, 0x6c, - 0x2f, 0xb5, 0x77, 0x2f, 0xb5, 0x05, 0xd8, 0x13, 0x80, 0x10, 0x0f, 0x30, - 0x7f, 0x79, 0x72, 0xcc, 0x91, 0x1b, 0x6d, 0x3c, 0x40, 0x5c, 0x06, 0x78, - 0x19, 0xb8, 0xd2, 0x10, 0xb8, 0x5c, 0xb8, 0x34, 0xc8, 0xb2, 0x06, 0x78, - 0x97, 0x0e, 0xf3, 0x7f, 0x22, 0x48, 0x0b, 0x3b, 0x04, 0x71, 0x3e, 0x28, - 0x1d, 0x05, 0xf8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x0c, 0x0d, 0x0d, 0x20, - 0x01, 0x50, 0x0c, 0x20, 0x06, 0x0c, 0x20, 0x05, 0x0c, 0x0c, 0x27, 0x0d, - 0x00, 0xc9, 0xc8, 0x00, 0x00, 0x0e, 0x22, 0xa6, 0x30, 0x00, 0xa7, 0x30, - 0xb9, 0x30, 0xc8, 0x30, 0xe2, 0x30, 0x01, 0xa2, 0x30, 0xe9, 0x30, 0xf3, - 0x30, 0xc9, 0x05, 0xe8, 0x1d, 0x51, 0x57, 0x28, 0x15, 0x73, 0x2f, 0xad, - 0x6d, 0x00, 0x6f, 0x88, 0x21, 0x10, 0x6e, 0x00, 0x64, 0x10, 0x15, 0x80, - 0x7f, 0x7f, 0x89, 0x69, 0x64, 0x20, 0x70, 0x51, 0x06, 0x78, 0x15, 0x00, - 0x00, 0xe8, 0xc6, 0xa4, 0x00, 0xc2, 0xb8, 0xd2, 0xa8, 0xba, 0xbc, 0xc5, - 0x9c, 0x18, 0xb7, 0xdc, 0xb4, 0x06, 0x1b, 0x99, 0x0e, 0xf3, 0x7f, 0x23, - 0x04, 0x4d, 0x02, 0x04, 0x41, 0x04, 0x42, 0x04, 0x3c, 0x28, 0x19, 0x40, - 0xac, 0x28, 0x1f, 0x4d, 0x28, 0x1f, 0x34, 0x05, 0xa8, 0x1f, 0x10, 0x16, - 0xf4, 0xff, 0x0d, 0x0e, 0x54, 0x0e, 0x20, 0x01, 0x0d, 0x20, 0x06, 0x0d, - 0x20, 0x05, 0x0d, 0x0d, 0x11, 0xf4, 0x0c, 0x71, 0x28, 0x17, 0x0f, 0x22, - 0xad, 0x28, 0x0b, 0x58, 0xb0, 0x48, 0x19, 0xf3, 0x05, 0xe8, 0x11, 0x5f, - 0xff, 0x4b, 0x00, 0x69, 0xac, 0x2f, 0xa7, 0x67, 0x48, 0x1b, 0x6f, 0x2f, - 0xb1, 0x10, 0x15, 0xf0, 0x7f, 0xd1, 0x91, 0x08, 0xaf, 0x65, 0x66, 0x65, - 0x06, 0x98, 0x17, 0xb9, 0xd0, 0xa4, 0x18, 0xc2, 0x34, 0xd1, 0x06, 0x78, - 0x95, 0x0f, 0x13, 0x7f, 0x1a, 0x04, 0x38, 0xac, 0x28, 0x09, 0x33, 0x48, - 0x1b, 0x3e, 0x28, 0x13, 0x10, 0x1d, 0xf4, 0xff, 0x0e, 0x03, 0x54, 0x03, - 0x20, 0x01, 0x0e, 0x20, 0x06, 0x01, 0x20, 0x05, 0x0e, 0x0e, 0x08, 0xc3, - 0x0c, 0x67, 0xc9, 0x00, 0x3f, 0xff, 0x01, 0x0c, 0x06, 0x00, 0x0c, 0x0c, - 0x0c, 0x01, 0x01, 0x0c, 0x0c, 0x08, 0x89, 0x20, 0x05, 0x01, 0x01, 0x02, - 0x30, 0x04, 0x01, 0x02, 0x20, 0x06, 0x44, 0x02, 0x20, 0x05, 0x02, 0x02, - 0x03, 0x30, 0x04, 0x02, 0x03, 0xa1, 0x20, 0x06, 0x0e, 0x20, 0x05, 0x03, - 0x03, 0x04, 0x04, 0x70, 0x01, 0x98, 0x50, 0x0a, 0x05, 0x05, 0x70, 0x01, - 0x50, 0x0a, 0x06, 0x06, 0x07, 0x28, 0x06, 0x06, 0x40, 0x01, 0x0a, 0x40, - 0x07, 0x07, 0x07, 0x08, 0x28, 0x07, 0x07, 0x40, 0x01, 0x0b, 0x40, 0x07, - 0x08, 0x08, 0x09, 0x28, 0x08, 0x08, 0x40, 0x01, 0x06, 0x40, 0x07, 0x09, - 0x09, 0x0a, 0x20, 0x09, 0x09, 0xa0, 0x01, 0x0a, 0x0a, 0x0b, 0x0a, 0x0a, - 0xa0, 0x40, 0x01, 0x05, 0x40, 0x07, 0x0b, 0x0b, 0x0c, 0x0b, 0x0b, 0xa9, - 0x40, 0x01, 0x07, 0x40, 0x07, 0x0c, 0x38, 0xe4, 0x0d, 0x0c, 0x20, 0x06, - 0x7c, 0x0c, 0x20, 0x05, 0x20, 0x07, 0xe8, 0xff, 0xf0, 0xf7, 0x3f, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x23, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x61, 0x0a, 0x91, 0xd4, 0x00, 0x00, 0x00, - 0x01, 0x23, 0xde, 0x30, 0xeb, 0x30, 0xc6, 0x00, 0x30, 0xa3, 0x30, 0xcb, - 0x30, 0xfc, 0x30, 0xaf, 0x40, 0x30, 0x06, 0x18, 0x23, 0x4d, 0x00, 0x61, - 0x00, 0x72, 0x00, 0x04, 0x74, 0x00, 0x69, 0x00, 0x6e, 0x20, 0x03, 0x71, - 0x00, 0x17, 0x75, 0x00, 0x65, 0x10, 0x06, 0xa0, 0x7f, 0x63, 0x21, 0x8d, - 0x06, 0xb1, 0xff, 0x06, 0x10, 0x7f, 0x00, 0x6c, 0x9a, 0xd0, 0x63, 0x3c, - 0x5c, 0x4b, 0x51, 0x80, 0x06, 0x7b, 0x1d, 0xc8, 0xb9, 0x74, 0xb9, 0xf0, - 0xd2, 0xc8, 0x18, 0xb2, 0x6c, 0xd0, 0x06, 0x5b, 0x9f, 0x0e, 0xf2, 0x7f, - 0x1c, 0x04, 0x30, 0x00, 0x04, 0x40, 0x04, 0x42, 0x04, 0x38, 0x04, 0x3d, - 0xb9, 0x20, 0x03, 0x3a, 0x20, 0x0d, 0x10, 0x0e, 0xb4, 0xff, 0x0e, 0x16, - 0x7f, 0x01, 0x01, 0xd0, 0x01, 0xe0, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, - 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x38, 0x0d, 0x01, - 0x13, 0x20, 0x00, 0x00, 0x30, 0x01, 0x24, 0x14, 0x60, 0x08, 0x06, 0x70, - 0x05, 0xc0, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xd1, 0x0d, 0x81, 0xb9, - 0x00, 0x00, 0x00, 0x02, 0x24, 0xc7, 0x30, 0xa3, 0x30, 0xb9, 0x30, 0x10, - 0xc8, 0x30, 0xea, 0x20, 0x03, 0xfb, 0x30, 0xd5, 0x30, 0x00, 0xa7, 0x30, - 0xc7, 0x30, 0xe9, 0x30, 0xeb, 0x30, 0x02, 0x23, 0x90, 0xa6, 0x90, 0x3a, - 0x53, 0x05, 0x18, 0x33, 0x44, 0x00, 0x00, 0x69, 0x00, 0x73, 0x00, 0x74, - 0x00, 0x72, 0x80, 0x20, 0x07, 0x74, 0x00, 0x6f, 0x00, 0x20, 0x00, 0x46, - 0x08, 0x00, 0x65, 0x00, 0x64, 0x20, 0x03, 0x72, 0x00, 0x61, 0x2d, 0x00, - 0x6c, 0x05, 0xc0, 0x7f, 0x63, 0x20, 0x87, 0x30, 0x7f, 0xe9, 0x20, 0x7f, - 0x56, 0xe9, 0x05, 0x60, 0x7f, 0x4d, 0x20, 0x6d, 0x78, 0x40, 0x7b, 0x30, - 0xfb, 0x44, 0x2d, 0x00, 0x2e, 0x20, 0xff, 0x2e, 0x05, 0xa9, 0xaa, 0x91, - 0x7f, 0x65, 0x21, 0x85, 0xa6, 0x00, 0x31, 0x81, 0x65, 0x0c, 0xc1, 0xff, - 0x54, 0x80, 0x05, 0x52, 0xe7, 0x00, 0x7b, 0x7d, 0x55, 0x00, 0xba, 0xdc, - 0xc2, 0x54, 0xcf, 0x20, 0x00, 0xf0, 0x07, 0xc5, 0x29, 0xbc, 0x6c, 0xad, - 0x06, 0x1b, 0xa3, 0xb3, 0x6d, 0x33, 0x6f, 0xe0, 0x32, 0x83, 0xd3, 0x11, - 0x0c, 0xd3, 0xff, 0x24, 0x04, 0x35, 0x04, 0x34, 0x80, 0x20, 0x03, 0x40, - 0x04, 0x30, 0x04, 0x3b, 0x04, 0x4c, 0x00, 0x04, 0x3d, 0x04, 0x4b, 0x04, - 0x39, 0x04, 0x20, 0x08, 0x00, 0x3e, 0x04, 0x3a, 0x20, 0x13, 0x43, 0x04, - 0x33, 0x60, 0x04, 0x0d, 0x94, 0xff, 0x10, 0x0e, 0x30, 0x7f, 0x01, 0x09, - 0x09, 0x0d, 0x09, 0x02, 0x09, 0x01, 0x01, 0x08, 0x09, 0x1b, 0x20, 0x05, - 0x01, 0x40, 0x01, 0x58, 0x17, 0x03, 0x24, 0xa2, 0x30, 0xb0, 0x30, 0x50, - 0xa2, 0x28, 0x19, 0xab, 0x28, 0x19, 0xa8, 0x30, 0xf3, 0x30, 0x48, 0xc6, - 0x28, 0x25, 0xde, 0x5d, 0x05, 0x9f, 0xc3, 0x41, 0x00, 0x67, 0x2d, 0x00, - 0x75, 0x28, 0x01, 0x73, 0x27, 0x95, 0x38, 0x07, 0x69, 0x28, 0x15, 0x58, - 0x6e, 0x28, 0x27, 0x65, 0x28, 0x2d, 0x10, 0x15, 0x30, 0x7f, 0x3f, 0x96, - 0xdc, 0x00, 0x74, 0xaf, 0x65, 0x61, 0x53, 0xde, 0x8f, 0x79, 0x18, 0x72, - 0xaf, 0x65, 0x05, 0xb2, 0xf9, 0x6b, 0x17, 0xc5, 0xfc, 0xac, 0x00, 0xa4, - 0xc2, 0x7c, 0xce, 0xac, 0xb9, 0xd4, 0xc5, 0x00, 0x4c, 0xd1, 0xa4, 0xc2, - 0x20, 0x00, 0xfc, 0xc8, 0xd5, 0x05, 0xbf, 0xc1, 0x0e, 0xf3, 0x7f, 0x10, - 0x27, 0xf9, 0x43, 0x28, 0x13, 0x41, 0x28, 0x07, 0xab, 0x58, 0x19, 0x35, - 0x28, 0x1b, 0x42, 0x28, 0x2d, 0x41, 0x04, 0xe8, 0x11, 0x10, 0x17, 0x54, - 0xff, 0x48, 0x02, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, - 0x00, 0x02, 0x8f, 0x0f, 0x41, 0xb7, 0x00, 0x00, 0x04, 0x02, 0x24, 0xd0, - 0x30, 0xcf, 0x30, 0xfb, 0x48, 0x15, 0xd5, 0x03, 0x30, 0xa9, 0x30, 0xeb, - 0x30, 0xcb, 0x28, 0x25, 0x05, 0xb8, 0x17, 0x51, 0x42, 0x2f, 0x95, 0x6a, - 0x2f, 0x99, 0x20, 0x00, 0x43, 0x68, 0x17, 0x56, 0x66, 0x2f, 0x39, 0x72, - 0x28, 0x1b, 0x69, 0x2f, 0xaf, 0x05, 0x50, 0x7f, 0x73, 0x8e, 0x2f, 0x31, - 0x65, 0x00, 0x2d, 0x00, 0x20, 0x81, 0x04, 0xdf, 0x2b, 0x3f, 0xff, 0x4e, - 0xd7, 0x49, 0x09, 0x5f, 0x9d, 0x6b, 0x00, 0x20, 0x7f, 0x6e, 0x05, 0x60, - 0xff, 0x06, 0x71, 0x81, 0x06, 0xf1, 0xff, 0x00, 0x0b, 0x4e, 0xa0, 0x52, - 0xcc, 0x91, 0x8f, 0x79, 0x08, 0x3c, 0x5c, 0x9a, 0x4e, 0x06, 0x18, 0x15, - 0x00, 0x00, 0x14, 0x10, 0xbc, 0x58, 0xd5, 0x38, 0x15, 0xec, 0xd3, 0x74, - 0xb9, 0x0b, 0xc8, 0xb2, 0x44, 0xc5, 0x05, 0xf8, 0x17, 0x4e, 0x8f, 0x9d, - 0x00, 0x32, 0xff, 0x45, 0xeb, 0x05, 0x43, 0xff, 0x69, 0x00, 0x78, 0xe4, - 0x01, 0xf3, 0x05, 0x84, 0x01, 0x05, 0x1d, 0x04, 0x38, 0x04, 0x36, 0x28, - 0x09, 0x4f, 0x20, 0x01, 0x10, 0x20, 0x00, 0x1a, 0x48, 0x1b, 0x38, 0x04, - 0x44, 0x04, 0x17, 0x3e, 0x04, 0x40, 0x28, 0x1f, 0x38, 0x20, 0x17, 0x0d, - 0x14, 0xff, 0x10, 0x0e, 0xb0, 0x7f, 0x00, 0x03, 0x02, 0x02, 0x11, 0x02, - 0x02, 0x03, 0x03, 0x10, 0x11, 0x02, 0x10, 0x20, 0x05, 0x03, 0x03, 0x38, - 0x17, 0x04, 0xe4, 0xad, 0x00, 0x00, 0x05, 0x00, 0x48, 0x17, 0xfb, 0x30, - 0x71, 0xb9, 0x28, 0x21, 0x05, 0x5d, 0x3b, 0x00, 0xd8, 0x17, 0x20, 0x00, - 0x53, 0x2f, 0xcd, 0x55, 0x72, 0x06, 0xa8, 0x17, 0x20, 0x27, 0xb3, 0x75, - 0x60, 0x87, 0x64, 0x04, 0x2f, 0xc1, 0x17, 0x53, 0x00, 0xfc, 0x28, 0x15, - 0x2d, 0x06, 0x88, 0x1f, 0x00, 0xf8, 0x17, 0x30, 0xff, 0x73, 0x65, 0x2f, - 0xc7, 0x04, 0x71, 0x01, 0x06, 0xf1, 0xff, 0x57, 0x53, 0x06, 0xd8, 0x19, - 0xf8, 0x17, 0x0a, 0x18, 0xc2, 0x74, 0xb9, 0x05, 0xb8, 0x1b, 0x5a, 0x2f, - 0xad, 0x69, 0xf5, 0x62, 0x81, 0x06, 0x38, 0x21, 0x00, 0xf8, 0x17, 0x33, - 0x7f, 0x6f, 0x64, 0x07, 0x6c, 0x04, 0x2f, 0xc0, 0x5e, 0x2e, 0x48, 0x15, - 0x30, 0x48, 0x15, 0x06, 0x38, 0x23, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xb0, - 0x7f, 0x04, 0x00, 0x03, 0x03, 0x1a, 0x03, 0x03, 0x04, 0x04, 0x20, 0x20, - 0x03, 0x1f, 0x20, 0x05, 0x04, 0x04, 0x2f, 0x11, 0x91, 0x00, 0xb1, 0x00, - 0x00, 0x06, 0x24, 0xab, 0x30, 0xf3, 0x03, 0x30, 0xda, 0x30, 0xc1, 0x30, - 0xa7, 0x05, 0x68, 0x07, 0xff, 0xff, 0x88, 0x3f, 0xa3, 0x6d, 0x00, 0x70, - 0x2f, 0xaf, 0x63, 0x00, 0x68, 0xc0, 0x05, 0x2f, 0x9f, 0x10, 0x0f, 0xf0, - 0x7f, 0x4e, 0x57, 0x69, 0x4f, 0x07, 0x52, 0xc0, 0x06, 0x52, 0xfb, 0x3f, - 0xff, 0x84, 0xce, 0x98, 0xd3, 0xb4, 0xcc, 0xe0, 0x05, 0xb8, 0x09, 0x0f, - 0xd3, 0x7f, 0x37, 0xfd, 0x3c, 0x04, 0x3f, 0x04, 0x35, 0x30, 0x04, 0x47, - 0x20, 0x03, 0x10, 0x1e, 0x14, 0xff, 0x05, 0x04, 0x04, 0x02, 0x01, 0x04, - 0x04, 0x05, 0x05, 0x02, 0x04, 0x07, 0x20, 0x05, 0x00, 0x05, 0x05, 0x1d, - 0x0e, 0x9f, 0xbf, 0x00, 0x00, 0x00, 0x07, 0x24, 0xc1, 0x30, 0xa2, 0x30, - 0xd1, 0x30, 0x6b, 0xb9, 0x06, 0x68, 0x15, 0x38, 0x17, 0x68, 0x4e, 0x97, - 0x70, 0x4f, 0xb7, 0x10, 0x16, 0x10, 0x7f, 0x02, 0x70, 0x60, 0x15, 0x5e, - 0xaf, 0x65, 0x06, 0x98, 0x17, 0x58, 0x01, 0xce, 0x44, 0xc5, 0x0c, 0xd3, - 0xa4, 0xc2, 0x06, 0x78, 0x19, 0x82, 0x0e, 0xf3, 0x7f, 0x27, 0x04, 0x4c, - 0x04, 0x4f, 0x28, 0x17, 0x30, 0x30, 0x04, 0x41, 0x06, 0x28, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x06, 0x05, 0x05, 0x03, 0x01, 0x05, 0x05, 0x06, 0x06, - 0x03, 0x05, 0x1e, 0x20, 0x05, 0x00, 0x06, 0x06, 0xe9, 0x0b, 0xc9, 0xbd, - 0x00, 0x00, 0x5c, 0x08, 0x28, 0x17, 0xef, 0x20, 0x01, 0x06, 0x9d, 0x2f, - 0x58, 0x17, 0x68, 0x00, 0x70, 0x75, 0x2f, 0xb7, 0x50, 0x05, 0x10, 0x15, - 0xd0, 0x7f, 0x47, 0x59, 0xe6, 0x74, 0x21, 0xe6, 0x74, 0x06, 0xb8, 0x17, - 0x40, 0xc6, 0x40, 0xc6, 0x06, 0x78, 0x15, 0x83, 0x0f, 0x13, 0x7f, 0x27, - 0x04, 0x38, 0x04, 0x43, 0x28, 0x15, 0x30, 0x03, 0x80, 0x10, 0x1e, 0x34, - 0xff, 0x07, 0x06, 0x06, 0x04, 0x06, 0x06, 0x07, 0x08, 0x07, 0x04, 0x06, - 0x1d, 0x20, 0x05, 0x07, 0x07, 0x5c, 0x00, 0x14, 0x91, 0xb4, 0x00, 0x00, - 0x09, 0x24, 0xb3, 0x00, 0x30, 0xa2, 0x30, 0xa6, 0x30, 0xa4, 0x30, 0xe9, - 0x88, 0x06, 0x68, 0x1b, 0x43, 0x00, 0x6f, 0x68, 0x11, 0x69, 0x00, 0x6c, - 0x82, 0x2f, 0xb7, 0x20, 0x00, 0x64, 0x00, 0x65, 0x20, 0x05, 0x5a, 0xab, - 0x2f, 0xc3, 0x72, 0x2f, 0xc7, 0x67, 0x20, 0x1f, 0x7a, 0x04, 0xa8, 0x2d, - 0xf0, 0x7f, 0xc0, 0x10, 0x06, 0xf0, 0xff, 0x05, 0xff, 0xb7, 0xd1, 0x79, - 0x3f, 0x96, 0xe6, 0x97, 0x20, 0xc9, 0x62, 0x06, 0x7b, 0x19, 0x54, 0xcf, - 0x44, 0xc5, 0xb0, 0x07, 0xc6, 0x7c, 0xc7, 0x7c, 0xb7, 0x06, 0x58, 0x1b, - 0x07, 0xf3, 0x7f, 0x05, 0xf3, 0xff, 0x11, 0x1a, 0x04, 0x3e, 0x48, 0x15, - 0x38, 0x04, 0x3b, 0x06, 0x48, 0x19, 0xc0, 0x0e, 0xf1, 0x7f, 0x10, 0x06, - 0xf0, 0xff, 0x08, 0x07, 0x07, 0x05, 0x07, 0x07, 0x04, 0x08, 0x08, 0x05, - 0x07, 0x0a, 0x20, 0x05, 0x08, 0x08, 0x01, 0x12, 0x12, 0x2e, 0xb8, 0x00, - 0x00, 0x0a, 0x28, 0x17, 0x1a, 0xea, 0x30, 0xde, 0x06, 0x68, 0x13, 0x78, - 0x17, 0x6c, 0x2f, 0xb1, 0x6d, 0xc0, 0x06, 0x27, 0x93, 0x10, 0x0f, 0x30, - 0x7f, 0xd1, 0x79, 0x29, 0x52, 0x6c, 0x9a, 0x81, 0x06, 0x92, 0xff, 0x5c, - 0xcf, 0xac, 0xb9, 0xc8, 0xb9, 0x06, 0x58, 0x13, 0xd6, 0x0f, 0x33, 0x7f, - 0x38, 0x17, 0x3b, 0x28, 0x15, 0x3c, 0x06, 0x48, 0x15, 0x10, 0x17, 0x14, - 0xff, 0x09, 0x00, 0x08, 0x08, 0x06, 0x08, 0x08, 0x09, 0x09, 0x06, 0x20, - 0x08, 0x0b, 0x20, 0x05, 0x09, 0x09, 0xad, 0x0d, 0x3f, 0x00, 0xb6, 0x00, - 0x00, 0x0b, 0x24, 0xc9, 0x30, 0xa5, 0x02, 0x30, 0xe9, 0x30, 0xf3, 0x30, - 0xb4, 0x06, 0x68, 0x1b, 0x44, 0xd8, 0x2f, 0xa9, 0x3f, 0x17, 0x6e, 0x4f, - 0x19, 0x10, 0x16, 0x10, 0x7f, 0x5c, 0x67, 0x70, 0x10, 0x51, 0x08, 0x62, - 0x06, 0x9b, 0x17, 0x50, 0xb4, 0x91, 0xb7, 0x30, 0xe0, 0xac, 0x06, 0x98, - 0x17, 0x0e, 0xf3, 0x7f, 0x14, 0x04, 0x43, 0x04, 0x46, 0x40, 0x28, 0x13, - 0x3d, 0x04, 0x33, 0x28, 0x21, 0x10, 0x1e, 0x14, 0xff, 0x0a, 0x1a, 0x0a, - 0x0a, 0x07, 0x20, 0x03, 0x20, 0x04, 0x05, 0x30, 0x06, 0x0a, 0x00, 0x17, - 0x11, 0x93, 0xb5, 0x00, 0x00, 0x0c, 0x24, 0x01, 0xb0, 0x30, 0xa2, 0x30, - 0xca, 0x30, 0xd5, 0x20, 0x05, 0x58, 0xc8, 0x06, 0x48, 0x19, 0x47, 0x28, - 0x17, 0x38, 0x15, 0x61, 0x00, 0x6a, 0xb0, 0x40, 0x09, 0x74, 0x05, 0xe8, - 0x1d, 0x10, 0x0e, 0xf0, 0x7f, 0xdc, 0x74, 0xb3, 0x7e, 0x10, 0x4e, 0x53, - 0x58, 0x06, 0x88, 0x19, 0xfc, 0xac, 0x98, 0xb0, 0x03, 0xc4, 0xd6, 0x44, - 0xc5, 0xa0, 0xd1, 0x06, 0x58, 0x1b, 0x0e, 0xf3, 0x7f, 0x62, 0x13, 0x28, - 0x17, 0x38, 0x15, 0x30, 0x04, 0x45, 0x40, 0x09, 0x42, 0xc2, 0x05, 0xe8, - 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x0b, 0x0b, 0x0b, 0x08, 0x20, 0x03, 0x0b, - 0x10, 0x09, 0x0b, 0x04, 0x30, 0x06, 0x0b, 0xf1, 0x0e, 0x00, 0x00, 0xb8, - 0x00, 0x00, 0x0d, 0x24, 0xb2, 0x30, 0xec, 0x35, 0x30, 0xed, 0x06, 0x48, - 0x11, 0x98, 0x17, 0x65, 0x2f, 0xb1, 0x72, 0x40, 0x05, 0xc0, 0x06, 0x1f, - 0xb1, 0x10, 0x0e, 0xf0, 0x7f, 0x3c, 0x68, 0xf7, 0x96, 0x57, 0x7f, 0x81, - 0x06, 0x92, 0xff, 0x8c, 0xac, 0x08, 0xb8, 0x5c, 0xb8, 0x06, 0x58, 0x13, - 0x83, 0x0f, 0x33, 0x7f, 0x13, 0x04, 0x35, 0x04, 0x40, 0x20, 0x01, 0x30, - 0x05, 0xc2, 0x05, 0xd8, 0x11, 0x10, 0x17, 0x54, 0xff, 0x0c, 0x0c, 0x0c, - 0x09, 0x20, 0x03, 0x0c, 0x10, 0x0a, 0x0c, 0x03, 0x30, 0x06, 0x0c, 0x7a, - 0x0c, 0x3f, 0x00, 0xb9, 0x00, 0x00, 0x0e, 0x24, 0xa4, 0x30, 0xc0, 0x08, - 0x30, 0xeb, 0x30, 0xb4, 0x06, 0x88, 0x19, 0x48, 0x00, 0x69, 0x23, 0x00, - 0x64, 0x2f, 0xb1, 0x6c, 0x00, 0x67, 0x06, 0x28, 0x15, 0x10, 0x0f, 0x10, - 0x7f, 0x00, 0x0a, 0x4f, 0xbe, 0x8f, 0x14, 0x5c, 0x08, 0x62, 0x81, 0x06, - 0x7b, 0x19, 0x74, 0xc7, 0xec, 0xb2, 0xe0, 0xac, 0x06, 0x98, 0x17, 0x80, - 0x0e, 0xf3, 0x7f, 0x18, 0x04, 0x34, 0x04, 0x30, 0x04, 0x3b, 0x0c, 0x04, - 0x4c, 0x04, 0x33, 0x06, 0x48, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x0d, 0x0d, - 0x21, 0x0d, 0x0a, 0x20, 0x03, 0x0d, 0x0b, 0x0d, 0x06, 0x30, 0x06, 0x08, - 0x0d, 0x4e, 0x0e, 0xcb, 0x28, 0x17, 0x0f, 0x24, 0xcf, 0x02, 0x30, 0xea, - 0x30, 0xb9, 0x30, 0xb3, 0x06, 0x88, 0x17, 0x4a, 0x83, 0x48, 0x13, 0x69, - 0x00, 0x73, 0x00, 0x63, 0x06, 0x48, 0x17, 0x10, 0x0e, 0xf0, 0x7f, 0x00, - 0xc8, 0x54, 0x29, 0x52, 0xaf, 0x65, 0xd1, 0x79, 0x80, 0x06, 0x7b, 0x17, - 0x60, 0xd5, 0xac, 0xb9, 0xa4, 0xc2, 0x54, 0x68, 0xcf, 0x06, 0x78, 0x19, - 0x0e, 0xf3, 0x7f, 0x25, 0x48, 0x15, 0x38, 0x04, 0x41, 0x30, 0x04, 0x3a, - 0x06, 0x48, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x0e, 0x0e, 0x0e, 0x0b, 0x84, - 0x20, 0x03, 0x0e, 0x0c, 0x0e, 0x1c, 0x30, 0x06, 0x0e, 0xb2, 0x00, 0x0e, - 0x85, 0xb6, 0x00, 0x00, 0x10, 0x24, 0xe1, 0x20, 0x30, 0xd2, 0x06, 0xa8, - 0x15, 0x00, 0x00, 0x4d, 0x00, 0xe9, 0x3b, 0x00, 0x78, 0x2f, 0xb3, 0x06, - 0x58, 0x15, 0x30, 0x7f, 0x65, 0x06, 0xe0, 0x7f, 0x07, 0x10, 0xff, 0x70, - 0x73, 0x29, 0x95, 0x06, 0x71, 0x81, 0x06, 0xf1, 0xff, 0xa8, 0x58, 0x7f, - 0x89, 0x21, 0xe5, 0x54, 0x06, 0x92, 0xff, 0x54, 0xba, 0x88, 0xd7, 0x06, - 0x98, 0x15, 0x83, 0x0f, 0x12, 0xff, 0x1c, 0x04, 0x35, 0x04, 0x45, 0x28, - 0x17, 0x06, 0x58, 0x15, 0xc2, 0x07, 0x34, 0xff, 0x10, 0x0e, 0xd0, 0x7f, - 0x0f, 0x0f, 0x0f, 0x0c, 0x20, 0x03, 0x0f, 0x40, 0x0d, 0x50, 0x06, 0x0f, - 0xb7, 0x0d, 0x21, 0xb9, 0x00, 0x00, 0x00, 0x11, 0x24, 0xdf, 0x30, 0xc1, - 0x30, 0xe7, 0x02, 0x30, 0xa2, 0x30, 0xab, 0x30, 0xf3, 0x06, 0x48, 0x1d, - 0x4d, 0xa8, 0x48, 0x13, 0x68, 0x2f, 0xab, 0x61, 0x2f, 0xb1, 0xe1, 0x00, - 0x6e, 0x08, 0x00, 0x20, 0x00, 0x64, 0x27, 0xab, 0x20, 0x00, 0x4f, 0x83, - 0x2f, 0xc1, 0x61, 0x00, 0x6d, 0x00, 0x70, 0x04, 0xcf, 0xc7, 0x00, 0x10, - 0x7f, 0xc0, 0x06, 0xf0, 0xff, 0x10, 0x05, 0xd1, 0x7f, 0x73, 0x7c, 0x74, - 0x53, 0xaf, 0x80, 0x80, 0x06, 0x9b, 0x17, 0xf8, 0xbb, 0x08, 0xcd, 0x44, - 0xc5, 0x78, 0x75, 0xce, 0x06, 0x78, 0x19, 0x08, 0x13, 0x7f, 0x05, 0xd3, - 0xff, 0x1c, 0x28, 0x13, 0x47, 0x28, 0x13, 0x47, 0x30, 0x28, 0x19, 0x30, - 0x04, 0x3d, 0x06, 0x08, 0x1b, 0x0e, 0xf1, 0x7f, 0x10, 0x06, 0xf0, 0xff, - 0x0d, 0x10, 0x10, 0x10, 0x0e, 0x20, 0x03, 0x20, 0x04, 0x0d, 0x30, 0x06, - 0x00, 0x10, 0x02, 0x0e, 0x19, 0xb8, 0x00, 0x00, 0x12, 0x00, 0x24, 0xe2, - 0x30, 0xec, 0x30, 0xed, 0x30, 0xb9, 0xc5, 0x06, 0x48, 0x13, 0x5f, 0xaf, - 0x6f, 0x00, 0x72, 0x2f, 0xb3, 0x6c, 0x2f, 0xaf, 0x40, 0x73, 0x10, 0x16, - 0x20, 0x7f, 0xab, 0x83, 0xf7, 0x96, 0x1b, 0x6d, 0x20, 0xaf, 0x65, 0x06, - 0x78, 0x19, 0xa8, 0xba, 0x10, 0xb8, 0x5c, 0x1a, 0xb8, 0xa4, 0xc2, 0x06, - 0x98, 0x17, 0x0e, 0xd3, 0x7f, 0x1c, 0x28, 0x13, 0x40, 0x0b, 0x04, 0x35, - 0x04, 0x3b, 0x28, 0x1b, 0x41, 0x06, 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, - 0x0d, 0x11, 0x11, 0x11, 0x0f, 0x20, 0x03, 0x20, 0x04, 0x0e, 0x30, 0x06, - 0x00, 0x11, 0x73, 0x0d, 0x6d, 0xb9, 0x00, 0x00, 0x13, 0x00, 0x24, 0xca, - 0x30, 0xe4, 0x30, 0xea, 0x30, 0xc3, 0x2a, 0x30, 0xc8, 0x06, 0x68, 0x19, - 0x4e, 0x2f, 0xa7, 0x79, 0x2f, 0xab, 0x72, 0xa0, 0x2f, 0xb7, 0x74, 0x10, - 0x16, 0x20, 0x7f, 0xb3, 0x7e, 0x9a, 0x4e, 0xcc, 0x10, 0x91, 0x79, 0x72, - 0x06, 0x7b, 0x17, 0x98, 0xb0, 0x7c, 0xc5, 0x0c, 0xac, 0xb9, 0xb8, 0xd2, - 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1d, 0x04, 0x11, 0x30, 0x04, 0x4f, - 0x28, 0x19, 0x38, 0x04, 0x42, 0x06, 0x28, 0x15, 0x86, 0x10, 0x17, 0x14, - 0xff, 0x12, 0x12, 0x12, 0x10, 0x20, 0x03, 0x20, 0x04, 0x0f, 0x80, 0x30, - 0x06, 0x12, 0x49, 0x0f, 0x68, 0xb5, 0x00, 0x00, 0x00, 0x14, 0x24, 0xcc, - 0x30, 0xa8, 0x30, 0xdc, 0x30, 0x01, 0xfb, 0x30, 0xec, 0x30, 0xaa, 0x30, - 0xf3, 0x06, 0x28, 0x1b, 0x14, 0x4e, 0x00, 0x75, 0x2f, 0xad, 0x76, 0x2f, - 0xb5, 0x20, 0x00, 0x44, 0x4c, 0x2f, 0xb7, 0xf3, 0x00, 0x6e, 0x10, 0x15, - 0xc0, 0x7f, 0xb0, 0x65, 0x08, 0xb1, 0x83, 0x02, 0x66, 0x06, 0x78, 0x15, - 0x00, 0x00, 0x04, 0x00, 0xb2, 0xd0, 0xc5, 0xf4, 0xbc, 0x08, 0xb8, 0x28, - 0x54, 0xc6, 0x06, 0x58, 0x19, 0x4e, 0x2b, 0x8f, 0x65, 0x23, 0x83, 0x77, - 0x00, 0x40, 0x2d, 0x0e, 0x43, 0x7f, 0x1d, 0x04, 0x43, 0x04, 0x4d, 0x04, - 0x00, 0x32, 0x04, 0x3e, 0x04, 0x2d, 0x00, 0x1b, 0x04, 0x58, 0x35, 0x20, - 0x07, 0x3d, 0x05, 0xc8, 0x1f, 0x10, 0x16, 0xf4, 0xff, 0x13, 0x13, 0x13, - 0x68, 0x12, 0x20, 0x03, 0x20, 0x04, 0x11, 0x30, 0x06, 0x13, 0x40, 0x12, - 0x00, 0xaa, 0xb8, 0x00, 0x00, 0x15, 0x24, 0xaa, 0x30, 0x06, 0xa2, 0x30, - 0xcf, 0x30, 0xab, 0x06, 0x28, 0x11, 0x5f, 0xff, 0x4f, 0xac, 0x2f, 0xaf, - 0x78, 0x2f, 0xb3, 0x63, 0x2f, 0xb7, 0x10, 0x16, 0x30, 0x7f, 0xe6, 0x74, - 0x08, 0xc8, 0x54, 0x61, 0x53, 0x06, 0x98, 0x17, 0x24, 0xc6, 0x45, 0x06, - 0xc5, 0xac, 0xc0, 0x74, 0xce, 0x06, 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x1e, - 0x0b, 0x04, 0x30, 0x04, 0x45, 0x20, 0x03, 0x3a, 0x20, 0x07, 0x10, 0x1e, - 0x34, 0xff, 0x0d, 0x14, 0x14, 0x14, 0x13, 0x20, 0x03, 0x20, 0x04, 0x12, - 0x30, 0x06, 0x00, 0x14, 0x1f, 0x0c, 0x3a, 0xbb, 0x00, 0x00, 0x16, 0x00, - 0x24, 0xd7, 0x30, 0xa8, 0x30, 0xd6, 0x30, 0xe9, 0xa3, 0x06, 0x88, 0x17, - 0x50, 0x4f, 0xaf, 0x62, 0x00, 0x6c, 0x06, 0x68, 0x17, 0x10, 0x0e, 0xf0, - 0x7f, 0x00, 0x6e, 0x66, 0xc3, 0x57, 0x03, 0x5e, 0xc9, 0x62, 0x80, 0x06, - 0x7b, 0x17, 0x78, 0xd4, 0xd0, 0xc5, 0x14, 0xbe, 0x7c, 0x60, 0xb7, 0x06, - 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1f, 0x04, 0x43, 0x04, 0x4d, 0x0c, 0x04, - 0x31, 0x04, 0x3b, 0x06, 0x68, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x15, 0x15, - 0x34, 0x15, 0x14, 0x20, 0x03, 0x20, 0x04, 0x13, 0x30, 0x06, 0x15, 0x8b, - 0x00, 0x0d, 0x2c, 0xba, 0x00, 0x00, 0x17, 0x24, 0xb1, 0x02, 0x30, 0xec, - 0x30, 0xbf, 0x30, 0xed, 0x06, 0x88, 0x17, 0x51, 0x82, 0x48, 0x17, 0x72, - 0x00, 0xe9, 0x00, 0x74, 0x2f, 0xb9, 0x72, 0x02, 0x00, 0x6f, 0x00, 0x20, - 0x00, 0x64, 0x28, 0x29, 0x20, 0x28, 0x00, 0x41, 0x20, 0x15, 0x74, 0x28, - 0x33, 0x61, 0x00, 0x67, 0xf0, 0x04, 0xaf, 0xcb, 0x00, 0x10, 0x7f, 0x06, - 0xf0, 0xff, 0x10, 0x05, 0xd1, 0x7f, 0x4b, 0x51, 0xf7, 0x96, 0x08, 0x54, - 0x58, 0x57, 0x7f, 0x06, 0x7b, 0x17, 0x00, 0xcf, 0x08, 0x07, 0xb8, 0xc0, - 0xd0, 0x5c, 0xb8, 0x06, 0x78, 0x17, 0x08, 0x13, 0x7f, 0x05, 0xd3, 0xff, - 0x05, 0x1a, 0x04, 0x35, 0x04, 0x40, 0x20, 0x03, 0x42, 0x28, 0x17, 0x1c, - 0x40, 0x04, 0x3e, 0x06, 0x08, 0x1b, 0x0e, 0xf1, 0x7f, 0x10, 0x06, 0xf0, - 0xff, 0x16, 0x16, 0x34, 0x16, 0x15, 0x20, 0x03, 0x20, 0x04, 0x08, 0x30, - 0x06, 0x16, 0xa6, 0x00, 0x0e, 0x9e, 0xb8, 0x00, 0x00, 0x18, 0x24, 0xad, - 0x22, 0x30, 0xf3, 0x28, 0x17, 0xca, 0x30, 0xfb, 0x28, 0x1b, 0xfc, 0xc5, - 0x06, 0x28, 0x1d, 0x38, 0x17, 0x69, 0x00, 0x6e, 0x48, 0x15, 0x6e, 0x2f, - 0xb3, 0x1c, 0x20, 0x00, 0x52, 0x28, 0x1b, 0x05, 0x97, 0x9d, 0x10, 0x0e, - 0xf0, 0x7f, 0xd1, 0x91, 0x00, 0x54, 0x58, 0xb3, 0x7e, 0x57, 0x7f, 0x65, - 0x59, 0x80, 0x06, 0x5b, 0x19, 0xa8, 0xd0, 0xc0, 0xd0, 0x98, 0xb0, 0x5c, - 0x18, 0xb8, 0x24, 0xc6, 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, 0x1a, 0x04, - 0x38, 0x28, 0x04, 0x3d, 0x48, 0x15, 0x3d, 0x28, 0x19, 0x2d, 0x00, 0x20, - 0xe1, 0x28, 0x1b, 0x05, 0xb8, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x17, 0x17, - 0x17, 0x16, 0x20, 0x03, 0xa0, 0x20, 0x04, 0x09, 0x30, 0x06, 0x17, 0x27, - 0x0d, 0x36, 0xc1, 0x04, 0x00, 0x00, 0x19, 0x24, 0xb5, 0x28, 0x17, 0xfb, - 0x30, 0x04, 0xeb, 0x30, 0xa4, 0x30, 0xb9, 0x28, 0x1b, 0xdd, 0x30, 0x14, - 0xc8, 0x30, 0xb7, 0x05, 0xc8, 0x1d, 0x53, 0x48, 0x0f, 0x20, 0x00, 0x55, - 0x4c, 0x48, 0x1f, 0x73, 0x2e, 0xad, 0x50, 0x2f, 0xb3, 0x74, 0x2f, 0xb7, - 0x10, 0x73, 0x00, 0xed, 0x10, 0x15, 0x20, 0x7f, 0x23, 0x57, 0xef, 0x8d, - 0x00, 0x13, 0x66, 0xaf, 0x65, 0xe2, 0x6c, 0x58, 0x62, 0x20, 0x7f, 0x89, - 0x06, 0x1b, 0x17, 0xb0, 0xc0, 0xe8, 0xb8, 0x74, 0x00, 0xc7, 0xa4, 0xc2, - 0xec, 0xd3, 0xa0, 0xd1, 0xdc, 0x68, 0xc2, 0x06, 0x18, 0x1b, 0x0e, 0xf3, - 0x7f, 0x21, 0x48, 0x11, 0x2d, 0x00, 0x1b, 0x2a, 0x04, 0x43, 0x28, 0x21, - 0x41, 0x28, 0x19, 0x1f, 0x28, 0x19, 0x42, 0xb0, 0x28, 0x1d, 0x41, 0x28, - 0x31, 0x10, 0x1d, 0x14, 0xff, 0x18, 0x18, 0x18, 0x17, 0xd0, 0x20, 0x03, - 0x20, 0x04, 0x15, 0x30, 0x06, 0x18, 0xc0, 0x0f, 0x31, 0x40, 0xb8, 0x2b, - 0x2d, 0x24, 0xb7, 0x30, 0xca, 0x30, 0xed, 0x38, 0x30, 0xa2, 0x05, 0xc8, - 0x0b, 0xd8, 0x17, 0x3f, 0xad, 0x61, 0x00, 0x6c, 0xa0, 0x2f, 0xa5, 0x61, - 0x10, 0x16, 0x20, 0x7f, 0x21, 0x95, 0xa3, 0x90, 0x57, 0x10, 0x7f, 0x9a, - 0x4e, 0x06, 0x72, 0xff, 0xdc, 0xc2, 0xa0, 0xb0, 0x0e, 0x5c, 0xb8, 0x44, - 0xc5, 0x06, 0x18, 0x11, 0x0f, 0x61, 0xff, 0x28, 0x0d, 0x3d, 0xac, 0x28, - 0x1b, 0x3b, 0x28, 0x0d, 0x30, 0x05, 0x28, 0x07, 0x10, 0x17, 0xf4, 0xff, - 0x19, 0x19, 0x34, 0x19, 0x18, 0x20, 0x03, 0x20, 0x04, 0x16, 0x30, 0x06, - 0x19, 0xa2, 0x00, 0x11, 0xa3, 0xb3, 0x00, 0x00, 0x1b, 0x24, 0xbd, 0x0d, - 0x30, 0xce, 0x30, 0xe9, 0x06, 0x88, 0x15, 0x3f, 0xaf, 0x6f, 0x2f, 0xaf, - 0x18, 0x6f, 0x00, 0x72, 0x06, 0x48, 0x15, 0x10, 0x0f, 0x10, 0x7f, 0x22, - 0x7d, 0xfa, 0x10, 0x8b, 0xc9, 0x62, 0x06, 0x92, 0xff, 0x8c, 0xc1, 0x78, - 0xb1, 0x35, 0x7c, 0xb7, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x21, 0x28, - 0x0f, 0x3d, 0x28, 0x13, 0x61, 0x40, 0x06, 0x48, 0x15, 0x10, 0x17, 0x14, - 0xff, 0x1a, 0x1a, 0x1a, 0x19, 0x20, 0x03, 0xa0, 0x20, 0x04, 0x17, 0x30, - 0x06, 0x1a, 0xab, 0x14, 0x18, 0xb1, 0x00, 0x00, 0x00, 0x1c, 0x24, 0xbf, - 0x30, 0xd0, 0x30, 0x15, 0xb9, 0x30, 0xb3, 0x06, 0x88, 0x19, 0x54, 0x2f, - 0xab, 0x62, 0x2f, 0xaf, 0x18, 0x73, 0x00, 0x63, 0x2f, 0xb1, 0x10, 0x16, - 0x20, 0x7f, 0x58, 0xf4, 0x5d, 0x08, 0xaf, 0x65, 0xd1, 0x79, 0x06, 0x7b, - 0x19, 0xc0, 0xd0, 0x14, 0x06, 0xbc, 0xa4, 0xc2, 0x54, 0xcf, 0x06, 0x78, - 0x19, 0x0e, 0xf3, 0x7f, 0x22, 0xa3, 0x28, 0x0f, 0x31, 0x28, 0x13, 0x41, - 0x04, 0x3a, 0x28, 0x21, 0x10, 0x1e, 0x14, 0xff, 0x22, 0x1b, 0x1b, 0x50, - 0x01, 0x1a, 0x1b, 0x18, 0x40, 0x0a, 0xc9, 0x02, 0x0c, 0xee, 0xbd, 0x00, - 0x00, 0x1d, 0x28, 0x17, 0xde, 0x03, 0x30, 0xa6, 0x30, 0xea, 0x30, 0xd1, - 0x28, 0x1d, 0x06, 0x3d, 0x35, 0xa0, 0x38, 0x17, 0x6d, 0x2f, 0xab, 0x75, - 0x00, 0x6c, 0x00, 0x69, 0x30, 0x00, 0x70, 0x48, 0x21, 0x10, 0x15, 0xc0, - 0x7f, 0x58, 0xdb, 0x6b, 0x29, 0x04, 0x52, 0x15, 0x5e, 0xaf, 0x65, 0x06, - 0x5b, 0x19, 0xc0, 0xd0, 0x00, 0xc8, 0xb9, 0xb8, 0xc6, 0xac, 0xb9, 0x0c, - 0xd3, 0x3a, 0xa4, 0xc2, 0x06, 0x38, 0x1b, 0x0e, 0xf3, 0x7f, 0x38, 0x17, - 0x3c, 0x28, 0x1b, 0x43, 0x03, 0x04, 0x3b, 0x04, 0x38, 0x04, 0x3f, 0x48, - 0x21, 0x10, 0x1d, 0xb4, 0xff, 0x22, 0x1c, 0x1c, 0x50, 0x01, 0x1b, 0x1c, - 0x19, 0x40, 0x0a, 0xe0, 0x00, 0x10, 0x82, 0xb9, 0x00, 0x00, 0x1e, 0x24, - 0xc8, 0x2d, 0x30, 0xe9, 0x28, 0x11, 0xab, 0x20, 0x05, 0x06, 0x5d, 0x31, - 0x54, 0x28, 0x0f, 0x16, 0x61, 0x00, 0x78, 0x2f, 0xad, 0x61, 0x40, 0x09, - 0x10, 0x15, 0xf0, 0x7f, 0x79, 0x00, 0x72, 0xc9, 0x62, 0xaf, 0x65, 0x61, - 0x53, 0xc9, 0x40, 0x62, 0x06, 0x68, 0x17, 0xd2, 0x7d, 0xb7, 0xa4, 0xc2, - 0x7c, 0x1b, 0xce, 0x7c, 0xb7, 0x06, 0x38, 0x15, 0x0f, 0x13, 0x7f, 0x22, - 0x28, 0x0f, 0x38, 0x0b, 0x72, 0x3a, 0x28, 0x1f, 0x30, 0x09, 0x10, 0x1d, - 0xf4, 0xff, 0x1d, 0x1d, 0x50, 0x01, 0x1c, 0x20, 0x1d, 0x1a, 0x40, 0x0a, - 0xbb, 0x0d, 0x24, 0xba, 0x00, 0x08, 0x00, 0x1f, 0x24, 0xd9, 0x28, 0x17, - 0xaf, 0x30, 0xeb, 0xc1, 0x28, 0x1b, 0x06, 0x5d, 0x2f, 0x56, 0x00, 0x65, - 0x00, 0x72, 0x2f, 0xb3, 0x40, 0x63, 0x20, 0x05, 0x75, 0x00, 0x7a, 0x00, - 0x2d, 0x00, 0x5e, 0x4c, 0x48, 0x29, 0x76, 0x20, 0x17, 0x06, 0x30, 0x7f, - 0x06, 0xf0, 0xff, 0x10, 0x05, 0xf0, 0x7f, 0xe6, 0x00, 0x97, 0xc9, 0x62, - 0x4b, 0x51, 0x81, 0x9c, 0xaf, 0x40, 0x65, 0x06, 0x5b, 0x17, 0xa0, 0xbc, - 0x7c, 0xb7, 0x6c, 0xd0, 0x0e, 0xe8, 0xb8, 0xa4, 0xc2, 0x06, 0x58, 0x17, - 0x07, 0xf2, 0xff, 0x05, 0xf3, 0xff, 0x12, 0x0a, 0x04, 0x35, 0x04, 0x40, - 0x28, 0x19, 0x3a, 0x20, 0x05, 0x43, 0xe4, 0x28, 0x1f, 0x0e, 0xf4, 0xff, - 0x10, 0x0d, 0xf0, 0x7f, 0x1e, 0x1e, 0x50, 0x01, 0x1d, 0x1e, 0x40, 0x02, - 0x40, 0x0a, 0xe3, 0x0d, 0x15, 0xbb, 0x00, 0x00, 0x00, 0x20, 0x24, 0xe6, - 0x30, 0xab, 0x30, 0xbf, 0x30, 0x46, 0xf3, 0x06, 0x68, 0x15, 0x00, 0x00, - 0x59, 0x28, 0x0d, 0x3f, 0xab, 0x74, 0x0a, 0x00, 0xe1, 0x00, 0x6e, 0x0e, - 0x60, 0x7f, 0x6b, 0x40, 0xff, 0x61, 0xc0, 0x0e, 0x80, 0xff, 0x06, 0xb1, - 0xff, 0x24, 0x5c, 0x61, 0x53, 0x66, 0x57, 0xc1, 0x06, 0x72, 0xfd, 0x23, - 0x81, 0xc7, 0x74, 0xce, 0xc4, 0xd0, 0x06, 0x58, 0x13, 0xa2, 0x0f, 0x33, - 0x7f, 0x2e, 0x28, 0x11, 0x30, 0x04, 0x42, 0x28, 0x19, 0x3d, 0xe4, 0x06, - 0x08, 0x13, 0x0f, 0x74, 0xff, 0x10, 0x06, 0xb0, 0xff, 0x1f, 0x1f, 0x50, - 0x01, 0x1e, 0x1f, 0x40, 0x20, 0x40, 0x0a, 0xe8, 0x0e, 0x46, 0xc0, 0x00, - 0x00, 0x15, 0x21, 0x24, 0xb5, 0x28, 0x17, 0xc6, 0x28, 0x1b, 0xb9, 0x06, - 0x68, 0x19, 0x6a, 0x5a, 0x4f, 0xab, 0x38, 0x17, 0x65, 0x48, 0x1f, 0x73, - 0x10, 0x15, 0xe0, 0x7f, 0x28, 0x00, 0x84, 0x61, 0x53, 0x79, 0x72, 0x61, - 0x53, 0xaf, 0x40, 0x65, 0x06, 0x5b, 0x19, 0xac, 0xc0, 0x74, 0xce, 0x4c, - 0xd1, 0x0d, 0x74, 0xce, 0xa4, 0xc2, 0x06, 0x58, 0x1b, 0x0e, 0xf3, 0x7f, - 0x21, 0x28, 0x15, 0xac, 0x58, 0x19, 0x35, 0x48, 0x21, 0x41, 0x05, 0xe8, - 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x20, 0x20, 0x88, 0x50, 0x01, 0x1f, 0x20, - 0x14, 0x40, 0x0a, 0x33, 0x10, 0x0e, 0x40, 0xb7, 0x00, 0x3f, 0xff, 0x01, - 0x09, 0x09, 0x0d, 0x09, 0x09, 0x04, 0x01, 0x01, 0x08, 0x09, 0x1b, 0x20, - 0x05, 0x01, 0x01, 0x48, 0x02, 0x30, 0x04, 0x01, 0x02, 0x40, 0x06, 0x02, - 0x02, 0x02, 0x04, 0x02, 0x03, 0x02, 0x02, 0x11, 0x20, 0x05, 0x03, 0x11, - 0x20, 0x02, 0x10, 0x20, 0x05, 0x03, 0x03, 0x04, 0x03, 0x03, 0x42, 0x1a, - 0x20, 0x05, 0x04, 0x20, 0x03, 0x1f, 0x20, 0x05, 0x04, 0x04, 0x04, 0x05, - 0x04, 0x04, 0x02, 0x20, 0x05, 0x05, 0x02, 0x20, 0x04, 0x07, 0x20, 0x05, - 0x05, 0x05, 0x06, 0x05, 0x05, 0x42, 0x03, 0x20, 0x05, 0x06, 0x03, 0x05, - 0x1e, 0x20, 0x05, 0x06, 0x04, 0x06, 0x07, 0x06, 0x06, 0x04, 0x20, 0x05, - 0x07, 0x04, 0x20, 0x06, 0x1d, 0x20, 0x05, 0x07, 0x07, 0x08, 0x07, 0x07, - 0x42, 0x05, 0x20, 0x05, 0x08, 0x05, 0x07, 0x0a, 0x20, 0x05, 0x08, 0x04, - 0x08, 0x09, 0x08, 0x08, 0x06, 0x20, 0x05, 0x09, 0x06, 0x20, 0x08, 0x0b, - 0x20, 0x05, 0x09, 0x09, 0x0a, 0x0a, 0x0a, 0x68, 0x07, 0x20, 0x03, 0x20, - 0x04, 0x05, 0x30, 0x06, 0x0a, 0x0b, 0x0b, 0x21, 0x0b, 0x08, 0x20, 0x03, - 0x0b, 0x09, 0x0b, 0x04, 0x30, 0x06, 0x04, 0x0b, 0x0c, 0x0c, 0x0c, 0x09, - 0x20, 0x03, 0x0c, 0x0a, 0x20, 0x0c, 0x03, 0x30, 0x06, 0x0c, 0x0d, 0x0d, - 0x0d, 0x0a, 0x84, 0x20, 0x03, 0x0d, 0x0b, 0x0d, 0x06, 0x30, 0x06, 0x0d, - 0x0e, 0x10, 0x0e, 0x0e, 0x0b, 0x20, 0x03, 0x0e, 0x0c, 0x0e, 0x1c, 0x82, - 0x30, 0x06, 0x0e, 0x0f, 0x0f, 0x0f, 0x0c, 0x20, 0x03, 0x0f, 0x41, 0x0d, - 0x50, 0x06, 0x0f, 0x10, 0x10, 0x10, 0x0e, 0x20, 0x03, 0xa0, 0x20, 0x04, - 0x0d, 0x30, 0x06, 0x10, 0x11, 0x11, 0x11, 0x0f, 0xd0, 0x20, 0x03, 0x20, - 0x04, 0x0e, 0x30, 0x06, 0x11, 0x12, 0x12, 0x12, 0x68, 0x10, 0x20, 0x03, - 0x20, 0x04, 0x0f, 0x30, 0x06, 0x12, 0x13, 0x13, 0x68, 0x13, 0x30, 0x03, - 0x20, 0x04, 0x11, 0x30, 0x06, 0x13, 0x14, 0x14, 0x68, 0x14, 0x30, 0x03, - 0x20, 0x04, 0x12, 0x30, 0x06, 0x14, 0x15, 0x15, 0x68, 0x15, 0x30, 0x03, - 0x20, 0x04, 0x13, 0x30, 0x06, 0x15, 0x16, 0x16, 0x68, 0x16, 0x30, 0x03, - 0x20, 0x04, 0x08, 0x30, 0x06, 0x16, 0x17, 0x17, 0x68, 0x17, 0x30, 0x03, - 0x20, 0x04, 0x09, 0x30, 0x06, 0x17, 0x18, 0x18, 0x68, 0x18, 0x30, 0x03, - 0x20, 0x04, 0x15, 0x30, 0x06, 0x18, 0x19, 0x19, 0x68, 0x19, 0x30, 0x03, - 0x20, 0x04, 0x16, 0x30, 0x06, 0x19, 0x1a, 0x1a, 0x68, 0x1a, 0x30, 0x03, - 0x20, 0x04, 0x17, 0x30, 0x06, 0x1a, 0x1b, 0x1b, 0x89, 0x50, 0x01, 0x1a, - 0x1b, 0x18, 0x40, 0x0a, 0x1c, 0x1c, 0x50, 0x01, 0x12, 0x1b, 0x1c, 0x19, - 0x40, 0x0a, 0x1d, 0x1d, 0x50, 0x01, 0x1c, 0x24, 0x1d, 0x1a, 0x40, 0x0a, - 0x1e, 0x1e, 0x50, 0x01, 0x1d, 0x1e, 0x78, 0x02, 0x40, 0x0a, 0xfa, 0x1f, - 0xf2, 0x17, 0x7f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x25, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xe0, 0x0b, 0xc2, 0xd3, 0x00, 0x00, 0x00, - 0x01, 0x25, 0xe2, 0x30, 0xf3, 0x30, 0xc8, 0x0c, 0x30, 0xbb, 0x30, 0xe9, - 0x20, 0x05, 0x06, 0x38, 0x21, 0x4d, 0x00, 0x00, 0x6f, 0x00, 0x6e, 0x00, - 0x74, 0x00, 0x73, 0x00, 0x16, 0x65, 0x00, 0x72, 0x20, 0x01, 0x61, 0x20, - 0x0b, 0x10, 0x15, 0xb0, 0x7f, 0x99, 0x00, 0x84, 0x79, 0x72, 0x5e, 0x58, - 0xc9, 0x62, 0x79, 0x40, 0x72, 0x06, 0x5b, 0x1f, 0xac, 0xba, 0xb8, 0xd2, - 0x38, 0xc1, 0x30, 0xab, 0xb7, 0x06, 0x7b, 0x9d, 0x0e, 0xf3, 0x7f, 0x1c, - 0x04, 0x3e, 0x04, 0x00, 0x3d, 0x04, 0x42, 0x04, 0x41, 0x04, 0x35, 0x04, - 0x59, 0x40, 0x20, 0x01, 0x30, 0x20, 0x0b, 0x10, 0x1d, 0xb4, 0xff, 0x01, - 0x01, 0xd0, 0x01, 0xe0, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x26, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x9a, 0x08, 0xff, 0xce, 0x00, 0x00, 0x00, - 0x01, 0x26, 0xaa, 0x30, 0xe9, 0x30, 0xf3, 0x02, 0x30, 0xc0, 0x30, 0x18, - 0x98, 0xa2, 0x20, 0x07, 0xc6, 0x04, 0x30, 0xa3, 0x30, 0xeb, 0x30, 0x05, - 0xb8, 0x29, 0x4e, 0x00, 0x04, 0x65, 0x00, 0x74, 0x00, 0x68, 0x20, 0x05, - 0x72, 0x00, 0x00, 0x6c, 0x00, 0x61, 0x00, 0x6e, 0x00, 0x64, 0x00, 0x04, - 0x73, 0x00, 0x20, 0x00, 0x41, 0x20, 0x09, 0x74, 0x00, 0x56, 0x69, 0x20, - 0x13, 0x6c, 0x20, 0x21, 0x73, 0x04, 0x88, 0xbc, 0xf0, 0x67, 0x20, 0xaa, - 0x20, 0x81, 0xe9, 0xc0, 0x8d, 0x61, 0x20, 0x85, 0x73, 0x04, 0x80, 0x83, - 0x4e, 0xb6, 0x20, 0xe3, 0x65, 0x20, 0xf3, 0x50, 0xff, 0xe4, 0x40, 0xff, - 0x30, 0x6f, 0x63, 0xd1, 0x41, 0x13, 0xf1, 0x07, 0x6e, 0x04, 0xe0, 0xff, - 0x20, 0x00, 0x4f, 0x81, 0x85, 0xb7, 0x31, 0x75, 0x69, 0x05, 0x0a, 0x34, - 0xb1, 0xe7, 0x61, 0x41, 0xf9, 0x32, 0x11, 0xb2, 0x0d, 0xe0, 0x31, 0xfd, - 0x30, 0x19, 0x04, 0x5a, 0xbf, 0x77, 0x83, 0x5e, 0x5c, 0x89, 0x01, 0x5b, - 0x84, 0x76, 0x17, 0x52, 0xaf, 0x65, 0x06, 0x3b, 0x21, 0x00, 0x24, 0xb1, - 0x5c, 0xb3, 0x80, 0xb7, 0xdc, 0xb4, 0x00, 0x39, 0xb8, 0x20, 0x00, 0x64, - 0xc5, 0xf8, 0xd2, 0x0f, 0xac, 0xb9, 0xa4, 0xc2, 0x05, 0xf3, 0x7f, 0x72, - 0x7d, 0x73, 0x7d, 0x05, 0x32, 0x77, 0xa3, 0x00, 0x13, 0x7f, 0x68, 0x61, - 0xff, 0x48, 0x00, 0x6f, 0x05, 0x61, 0xfb, 0x3d, 0x1a, 0x00, 0x1d, 0x04, - 0x38, 0x04, 0x34, 0x04, 0x35, 0x04, 0x01, 0x40, 0x04, 0x3b, 0x04, 0x30, - 0x04, 0x3d, 0x20, 0x0b, 0x10, 0x41, 0x04, 0x3a, 0x20, 0x13, 0x35, 0x04, - 0x20, 0x00, 0x51, 0x10, 0x20, 0x0f, 0x42, 0x20, 0x1f, 0x3b, 0x04, 0x4c, - 0xa0, 0x15, 0x51, 0x3e, 0x20, 0x21, 0x42, 0x20, 0x2f, 0x3e, 0x04, 0x32, - 0x20, 0x31, 0xcf, 0x0a, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x01, 0x01, - 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0xdc, 0x92, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30, 0x01, 0x27, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0xa3, 0x08, 0xa8, 0xc2, 0x00, 0x00, 0x00, 0x02, 0x27, 0xde, 0x30, - 0xca, 0x30, 0xb0, 0x10, 0x30, 0xa2, 0x30, 0x06, 0x78, 0x1d, 0x4d, 0x00, - 0x61, 0x00, 0x46, 0x6e, 0x20, 0x03, 0x67, 0x00, 0x75, 0x20, 0x09, 0x10, - 0x16, 0x10, 0x7f, 0x6c, 0x01, 0x9a, 0xa3, 0x90, 0xdc, 0x74, 0x01, 0x77, - 0x06, 0x7b, 0x1d, 0x03, 0xc8, 0xb9, 0x98, 0xb0, 0xfc, 0xac, 0x06, 0x9b, - 0x9b, 0x0e, 0xf3, 0x7f, 0x04, 0x1c, 0x04, 0x30, 0x04, 0x3d, 0x20, 0x03, - 0x33, 0x04, 0x60, 0x43, 0x20, 0x09, 0x10, 0x1e, 0x14, 0xff, 0x01, 0x0c, - 0x0a, 0x0a, 0x0c, 0x02, 0x0c, 0x01, 0x01, 0x0c, 0x0c, 0x08, 0x20, 0x05, - 0x01, 0x45, 0x01, 0x58, 0x17, 0x03, 0x27, 0xdc, 0x28, 0x13, 0xb3, 0x06, - 0x88, 0x15, 0x05, 0x00, 0x00, 0x42, 0x00, 0x6f, 0x28, 0x19, 0x63, 0x20, - 0x05, 0x81, 0x10, 0x16, 0x50, 0x7f, 0x5a, 0x53, 0x3f, 0x96, 0xd1, 0x79, - 0x06, 0x98, 0x17, 0x02, 0xf4, 0xbc, 0x44, 0xc5, 0x54, 0xcf, 0x10, 0x06, - 0x93, 0x7f, 0x11, 0x2c, 0x04, 0x3e, 0x28, 0x19, 0x3a, 0x20, 0x05, 0x10, - 0x1e, 0x54, 0xff, 0x02, 0x03, 0x00, 0x01, 0x01, 0x03, 0x03, 0x02, 0x02, - 0x03, 0x03, 0x80, 0x30, 0x05, 0x02, 0x02, 0xdd, 0x08, 0x15, 0xc3, 0x00, - 0x00, 0x00, 0x04, 0x27, 0xab, 0x30, 0xe9, 0x30, 0xbd, 0xab, 0x06, 0xa8, - 0x17, 0x43, 0x2f, 0xaf, 0x72, 0x2f, 0xb3, 0x7a, 0x06, 0x68, 0x19, 0x10, - 0x0e, 0xf0, 0x7f, 0x02, 0x61, 0x53, 0xc9, 0x62, 0x22, 0x7d, 0x06, 0x98, - 0x17, 0x74, 0x05, 0xce, 0x7c, 0xb7, 0x8c, 0xc1, 0x10, 0x06, 0x93, 0x7f, - 0x1a, 0x28, 0x15, 0x58, 0x40, 0x28, 0x19, 0x41, 0x06, 0x68, 0x19, 0x10, - 0x16, 0xf4, 0xff, 0x03, 0x04, 0x02, 0x00, 0x02, 0x04, 0x04, 0x03, 0x03, - 0x04, 0x04, 0x05, 0x80, 0x20, 0x05, 0x03, 0x03, 0x6d, 0x08, 0xb4, 0xc2, - 0x00, 0x00, 0x00, 0x05, 0x27, 0xc1, 0x30, 0xca, 0x30, 0xf3, 0x08, 0x30, - 0xc7, 0x30, 0xac, 0x06, 0x68, 0x1b, 0x43, 0x00, 0x68, 0x08, 0x00, 0x69, - 0x00, 0x6e, 0x2f, 0xb3, 0x6e, 0x00, 0x64, 0x0c, 0x00, 0x65, 0x00, 0x67, - 0x2f, 0xbd, 0x10, 0x15, 0xb0, 0x7f, 0x47, 0x59, 0x02, 0x57, 0x53, 0xb7, - 0x5f, 0xa0, 0x52, 0x06, 0x78, 0x19, 0x58, 0x01, 0xce, 0x9c, 0xb0, 0x70, - 0xb3, 0x00, 0xac, 0x06, 0x9b, 0x97, 0x82, 0x0e, 0xd3, 0x7f, 0x27, 0x04, - 0x38, 0x04, 0x3d, 0x28, 0x1b, 0x3d, 0x03, 0x04, 0x34, 0x04, 0x35, 0x04, - 0x33, 0x28, 0x25, 0x10, 0x1d, 0xd4, 0xff, 0x02, 0x04, 0x05, 0x03, 0x03, - 0x05, 0x05, 0x28, 0x15, 0x05, 0x41, 0x0f, 0x20, 0x05, 0x04, 0x04, 0xf8, - 0x08, 0x07, 0x28, 0x17, 0x50, 0x06, 0x28, 0x17, 0xe7, 0x28, 0x17, 0xbf, - 0x30, 0xec, 0x30, 0x6a, 0xb9, 0x06, 0x48, 0x19, 0x38, 0x17, 0x6f, 0x28, - 0x17, 0x74, 0x2f, 0xb7, 0x6c, 0xa0, 0x28, 0x17, 0x73, 0x10, 0x15, 0xe0, - 0x7f, 0x3c, 0x74, 0x54, 0x58, 0xb1, 0x10, 0x83, 0xaf, 0x65, 0x06, 0x78, - 0x17, 0x0c, 0xcd, 0xc8, 0xd0, 0x1c, 0x08, 0xb8, 0xa4, 0x2b, 0xa3, 0x06, - 0x9b, 0x97, 0x0e, 0xb3, 0x7f, 0x27, 0x04, 0x55, 0x3e, 0x28, 0x17, 0x42, - 0x28, 0x19, 0x3b, 0x28, 0x17, 0x41, 0x05, 0xe8, 0x15, 0x80, 0x10, 0x17, - 0x14, 0xff, 0x05, 0x06, 0x04, 0x04, 0x06, 0x06, 0x05, 0x08, 0x05, 0x06, - 0x06, 0x10, 0x20, 0x05, 0x05, 0x05, 0x97, 0x00, 0x08, 0x46, 0xc3, 0x00, - 0x00, 0x07, 0x27, 0xa8, 0x8d, 0x28, 0x0f, 0xc6, 0x30, 0xea, 0x06, 0x48, - 0x13, 0x3f, 0xff, 0x45, 0x28, 0x09, 0x44, 0x74, 0x2f, 0xa7, 0x6c, 0x00, - 0xed, 0x10, 0x16, 0x40, 0x7f, 0xc3, 0x57, 0x02, 0xaf, 0x65, 0x79, 0x72, - 0x29, 0x52, 0x06, 0x78, 0x17, 0xd0, 0x01, 0xc5, 0xa4, 0xc2, 0x54, 0xd1, - 0xac, 0xb9, 0x10, 0x06, 0x73, 0x7f, 0x51, 0x2d, 0x28, 0x0b, 0x42, 0x28, - 0x11, 0x3b, 0x04, 0x38, 0x06, 0x08, 0x13, 0x80, 0x10, 0x17, 0x34, 0xff, - 0x06, 0x07, 0x05, 0x05, 0x07, 0x07, 0x06, 0x08, 0x06, 0x07, 0x07, 0x11, - 0x20, 0x05, 0x06, 0x06, 0x4d, 0x20, 0x09, 0x99, 0x2c, 0xa3, 0x08, 0x27, - 0xb0, 0x30, 0xe9, 0x08, 0x30, 0xca, 0x30, 0xc0, 0x06, 0x88, 0x17, 0x47, - 0x00, 0x72, 0xac, 0x2f, 0xa9, 0x6e, 0x2f, 0xad, 0x64, 0x2f, 0xb1, 0x10, - 0x16, 0x10, 0x7f, 0x3c, 0x68, 0x02, 0xc9, 0x62, 0xb3, 0x7e, 0xbe, 0x8f, - 0x06, 0x78, 0x17, 0xf8, 0x01, 0xad, 0x7c, 0xb7, 0x98, 0xb0, 0xe4, 0xb2, - 0x10, 0x06, 0x73, 0x7f, 0x01, 0x13, 0x04, 0x40, 0x04, 0x30, 0x04, 0x3d, - 0x20, 0x03, 0x60, 0x34, 0x20, 0x07, 0x10, 0x1e, 0x14, 0xff, 0x07, 0x08, - 0x06, 0x06, 0x08, 0x02, 0x08, 0x07, 0x07, 0x08, 0x08, 0x04, 0x20, 0x05, - 0x07, 0x08, 0x07, 0x7c, 0x08, 0xe2, 0x28, 0x17, 0x09, 0x27, 0xd2, 0x02, - 0x30, 0xce, 0x30, 0xc6, 0x30, 0xac, 0x06, 0x88, 0x17, 0x4a, 0x2b, 0x00, - 0x69, 0x28, 0x15, 0x6f, 0x4f, 0xb3, 0x67, 0x06, 0x28, 0x19, 0x10, 0x0e, - 0xf0, 0x7f, 0x00, 0x0c, 0x5e, 0xfa, 0x8b, 0x79, 0x72, 0xa0, 0x52, 0x80, - 0x06, 0x78, 0x17, 0x88, 0xd7, 0x78, 0xb1, 0x4c, 0xd1, 0x00, 0x44, 0xac, - 0x10, 0x06, 0x73, 0x7f, 0x25, 0x04, 0x38, 0x28, 0x15, 0x3e, 0x04, 0x06, - 0x42, 0x04, 0x35, 0x04, 0x33, 0x06, 0x28, 0x19, 0x10, 0x16, 0xf4, 0xff, - 0x08, 0x00, 0x09, 0x07, 0x07, 0x09, 0x09, 0x08, 0x08, 0x09, 0x20, 0x09, - 0x0e, 0x20, 0x05, 0x08, 0x08, 0x50, 0x09, 0xd9, 0x80, 0x28, 0x17, 0x0a, - 0x27, 0xec, 0x30, 0xaa, 0x30, 0xf3, 0x8b, 0x06, 0x88, 0x15, 0x00, 0x00, - 0x4c, 0x28, 0x0f, 0xf3, 0x2f, 0xaf, 0x10, 0x16, 0x70, 0x7f, 0x0c, 0xb1, - 0x83, 0x02, 0x66, 0x06, 0x78, 0x13, 0x43, 0x97, 0xb8, 0x28, 0x6b, 0xc6, - 0x06, 0x93, 0x7d, 0x0f, 0x13, 0x7f, 0x1b, 0x28, 0x0f, 0x3e, 0x28, 0x19, - 0x10, 0x1e, 0x74, 0xff, 0x00, 0x09, 0x0a, 0x08, 0x08, 0x0a, 0x0a, 0x09, - 0x09, 0x10, 0x0a, 0x0a, 0x06, 0x20, 0x05, 0x09, 0x09, 0xd7, 0x08, 0x40, - 0x39, 0x28, 0x17, 0x0b, 0x27, 0xde, 0x30, 0xc9, 0x30, 0x14, 0xea, 0x30, - 0xb9, 0x06, 0x88, 0x19, 0x4d, 0x2f, 0xa3, 0x64, 0x00, 0x50, 0x72, 0x2f, - 0xb5, 0x7a, 0x10, 0x16, 0x40, 0x7f, 0x6c, 0x9a, 0xb7, 0x5f, 0x08, 0xcc, - 0x91, 0xaf, 0x65, 0x06, 0x78, 0x1b, 0xc8, 0xb9, 0xdc, 0x0c, 0xb4, 0xac, - 0xb9, 0xa4, 0x2b, 0xa3, 0x10, 0x06, 0x53, 0x7f, 0x1c, 0x04, 0x00, 0x30, - 0x04, 0x34, 0x04, 0x40, 0x04, 0x38, 0x04, 0x60, 0x41, 0x06, 0x48, 0x1b, - 0x10, 0x16, 0xf4, 0xff, 0x0a, 0x0b, 0x09, 0x09, 0x0b, 0x02, 0x0b, 0x0a, - 0x0a, 0x0b, 0x0b, 0x07, 0x20, 0x05, 0x0a, 0x0a, 0x0a, 0x96, 0x09, 0x6e, - 0x28, 0x17, 0x0c, 0x28, 0x17, 0xb5, 0x35, 0x30, 0xe4, 0x06, 0x88, 0x15, - 0x58, 0x17, 0x73, 0x28, 0x1b, 0x79, 0x28, 0x1f, 0x81, 0x10, 0x16, 0x30, - 0x7f, 0x6c, 0x9a, 0x28, 0x84, 0x9a, 0x4e, 0x06, 0x78, 0x15, 0x86, 0x38, - 0x17, 0xac, 0xc0, 0x7c, 0xc5, 0x10, 0x06, 0x93, 0x7f, 0x38, 0x17, 0x41, - 0xb0, 0x28, 0x1b, 0x4f, 0x06, 0x48, 0x15, 0x10, 0x17, 0x14, 0xff, 0x0b, - 0x0d, 0x0b, 0x0b, 0x50, 0x0d, 0x40, 0x03, 0x09, 0x20, 0x09, 0x0b, 0x0b, - 0x82, 0x08, 0x50, 0xc6, 0x2c, 0xa3, 0x0d, 0x28, 0x17, 0xbf, 0x30, 0xac, - 0x30, 0x1a, 0xeb, 0x30, 0xd1, 0x06, 0x68, 0x1b, 0x3f, 0xaf, 0x74, 0x2f, - 0xb3, 0x67, 0x8c, 0x2f, 0xb7, 0x6c, 0x00, 0x70, 0x06, 0x08, 0x1d, 0x10, - 0x0e, 0xf0, 0x7f, 0x6c, 0x9a, 0x00, 0x54, 0x58, 0xa0, 0x52, 0x14, 0x5c, - 0x15, 0x5e, 0x80, 0x06, 0x58, 0x1b, 0xc8, 0xb9, 0xc0, 0xd0, 0x08, 0xac, - 0x0c, 0x75, 0xd3, 0x06, 0xbb, 0x97, 0x0e, 0xb3, 0x7f, 0x38, 0x17, 0x42, - 0x28, 0x1b, 0x33, 0x28, 0x1f, 0x06, 0x3b, 0x04, 0x4c, 0x04, 0x3f, 0x28, - 0x27, 0x10, 0x1d, 0xb4, 0xff, 0x0c, 0x0a, 0x0e, 0x0c, 0x0c, 0x0e, 0x40, - 0x03, 0x0a, 0x20, 0x09, 0x0c, 0x08, 0x0c, 0x2f, 0x09, 0xe8, 0x28, 0x17, - 0x0e, 0x27, 0xcc, 0x00, 0x30, 0xa8, 0x30, 0xd0, 0x30, 0xfb, 0x30, 0xbb, - 0x02, 0x30, 0xb4, 0x30, 0xd3, 0x30, 0xa2, 0x06, 0x08, 0x1d, 0x4e, 0x02, - 0x00, 0x75, 0x00, 0x65, 0x00, 0x76, 0x2f, 0xb5, 0x20, 0x22, 0x00, 0x53, - 0x20, 0x09, 0x67, 0x00, 0x6f, 0x20, 0x0d, 0x69, 0xc0, 0x05, 0x8f, 0xbd, - 0x10, 0x0e, 0xf0, 0x7f, 0xb0, 0x65, 0x5e, 0x58, 0xe5, 0x54, 0x08, 0xf4, - 0x7e, 0x9a, 0x4e, 0x06, 0x58, 0x17, 0x04, 0xb2, 0xd0, 0x00, 0xc5, 0x14, - 0xbc, 0x38, 0xc1, 0xe0, 0xac, 0x44, 0x18, 0xbe, 0x44, 0xc5, 0x06, 0x1f, - 0xb2, 0x0e, 0xf3, 0x7f, 0x1d, 0x04, 0x43, 0x08, 0x04, 0x4d, 0x04, 0x32, - 0x28, 0x1d, 0x2d, 0x00, 0x21, 0x28, 0x04, 0x35, 0x28, 0x1f, 0x3e, 0x20, - 0x0d, 0x38, 0x04, 0x4f, 0xc1, 0x05, 0x68, 0x1d, 0x10, 0x16, 0xf4, 0xff, - 0x0d, 0x0f, 0x0d, 0x0d, 0x0f, 0x40, 0x03, 0x41, 0x0b, 0x20, 0x09, 0x0d, - 0x0d, 0xb1, 0x09, 0x81, 0x28, 0x17, 0x04, 0x0f, 0x27, 0xea, 0x30, 0xaa, - 0x28, 0x15, 0xb5, 0x30, 0x54, 0xf3, 0x28, 0x1b, 0xd5, 0x28, 0x17, 0xf3, - 0x05, 0xe8, 0x19, 0x52, 0x00, 0x62, 0xed, 0x28, 0x09, 0x38, 0x13, 0x61, - 0x00, 0x6e, 0x28, 0x1b, 0x4a, 0xe0, 0x28, 0x27, 0x30, 0x09, 0x10, 0x15, - 0x70, 0x7f, 0x23, 0x57, 0xe1, 0x80, 0x89, 0x10, 0x5b, 0xb3, 0x6c, 0x06, - 0x58, 0x15, 0x00, 0x00, 0xac, 0xb9, 0x01, 0x24, 0xc6, 0xb0, 0xc0, 0xc4, - 0xd6, 0x48, 0x06, 0x28, 0x13, 0xab, 0x0f, 0x33, 0x7f, 0x21, 0x28, 0x11, - 0x3d, 0x28, 0x13, 0x25, 0x28, 0x1f, 0x30, 0x09, 0xc5, 0x10, 0x05, 0xf1, - 0x7f, 0x10, 0x06, 0xf5, 0xff, 0x0e, 0x10, 0x10, 0x20, 0x01, 0x0e, 0x20, - 0x06, 0x40, 0x0d, 0x20, 0x05, 0x0e, 0x0e, 0xe7, 0x07, 0xb6, 0xc3, 0x11, - 0x00, 0x00, 0x10, 0x28, 0x17, 0xd0, 0x30, 0xb9, 0x05, 0xe8, 0x0b, 0xa8, - 0xd8, 0x17, 0x69, 0x4f, 0xad, 0x73, 0x10, 0x16, 0x60, 0x7f, 0xcc, 0x91, - 0xe6, 0x18, 0x74, 0xaf, 0x65, 0x06, 0x78, 0x15, 0x38, 0x17, 0x14, 0xbc, - 0xa4, 0xc1, 0x2b, 0xa1, 0x10, 0x06, 0x73, 0x7f, 0x20, 0x04, 0x38, 0x04, - 0x32, 0x28, 0x1b, 0x62, 0x41, 0x06, 0x08, 0x11, 0x10, 0x17, 0x54, 0xff, - 0x0f, 0x11, 0x11, 0x20, 0x01, 0x0f, 0xa0, 0x20, 0x06, 0x0c, 0x20, 0x05, - 0x0f, 0x0f, 0x21, 0x08, 0xf7, 0x80, 0x24, 0x8d, 0x11, 0x27, 0x17, 0x53, - 0xa2, 0x30, 0xc8, 0x00, 0x30, 0xe9, 0x30, 0xf3, 0x30, 0xc6, 0x30, 0xa3, - 0x00, 0x30, 0xb3, 0x30, 0xea, 0x81, 0xbb, 0x6c, 0x30, 0x10, 0x57, 0xdf, - 0x57, 0x05, 0x7f, 0xb0, 0x41, 0x00, 0x74, 0x00, 0x15, 0x6c, 0x00, 0xe1, - 0x2f, 0xab, 0x74, 0x28, 0x21, 0x63, 0x4f, 0xbb, 0x54, 0x4e, 0x2f, 0xc1, - 0x72, 0x20, 0x17, 0x65, 0x05, 0x4f, 0xaf, 0x65, 0x00, 0x55, 0x67, 0x28, - 0x9b, 0xf3, 0x4f, 0xad, 0x41, 0x2f, 0xad, 0x74, 0x40, 0x0b, 0x11, 0x6f, - 0x00, 0x6d, 0x2f, 0xc1, 0x20, 0x00, 0x64, 0x20, 0x85, 0x7e, 0x6c, 0x40, - 0x19, 0x04, 0x50, 0xa7, 0x06, 0xf0, 0x7f, 0x51, 0x7f, 0x3f, 0xab, 0x91, - 0x7f, 0x53, 0xb5, 0x21, 0x79, 0x74, 0x41, 0x7f, 0x31, 0x95, 0x72, 0x29, - 0xb9, 0x6f, 0x2f, 0xcb, 0x70, 0x61, 0x21, 0xa7, 0x04, 0x11, 0x91, 0x06, - 0xf1, 0xff, 0x17, 0x53, 0x27, 0x59, 0x09, 0x7f, 0x89, 0x0b, 0x6d, 0x32, - 0xf7, 0x3a, 0x53, 0x06, 0x1f, 0xb3, 0x00, 0x81, 0xbd, 0x44, 0xc5, 0xc0, - 0xd2, 0x80, 0xb7, 0x00, 0xf0, 0xd2, 0x54, 0xcf, 0x20, 0x00, 0x90, 0xc7, - 0x0e, 0x58, 0xce, 0x6c, 0xad, 0x05, 0xbe, 0xb3, 0x06, 0xf3, 0x7f, 0x53, - 0xff, 0xe2, 0x82, 0x06, 0x83, 0xff, 0x10, 0x04, 0x42, 0x04, 0x3b, 0x28, - 0x17, 0x3d, 0x82, 0x20, 0x07, 0x38, 0x04, 0x47, 0x04, 0x35, 0x28, 0x21, - 0x3a, 0x82, 0x28, 0x2b, 0x39, 0x04, 0x20, 0x00, 0x21, 0x20, 0x0d, 0x32, - 0xaa, 0x20, 0x11, 0x40, 0x20, 0x1d, 0x4b, 0x40, 0x11, 0x30, 0x28, 0x43, - 0x42, 0x22, 0x04, 0x3e, 0x20, 0x2d, 0x3e, 0x04, 0x3c, 0x80, 0x15, 0x40, - 0xbc, 0x20, 0x35, 0x33, 0x28, 0x5f, 0x30, 0x17, 0x0a, 0x51, 0x7f, 0x10, - 0x0e, 0x90, 0x7f, 0x10, 0x01, 0x00, 0x0e, 0x0e, 0x02, 0x01, 0x10, 0x10, - 0x01, 0x01, 0x40, 0x01, 0x20, 0x05, 0x10, 0x10, 0xfa, 0x09, 0xb5, 0xc4, - 0x05, 0x00, 0x00, 0x12, 0x27, 0x57, 0x08, 0x28, 0x17, 0x53, 0x27, 0x9d, - 0x7d, 0x72, 0x05, 0x8f, 0xaf, 0x02, 0x98, 0x17, 0x03, 0x30, 0xa7, 0x06, - 0xf0, 0x7f, 0x00, 0x38, 0x17, 0x4d, 0x29, 0x91, 0xb4, 0x38, 0x0d, 0x64, - 0x04, 0xc8, 0x11, 0x07, 0x51, 0xff, 0x57, 0x06, 0xe8, 0x17, 0xa8, 0xb0, - 0xf6, 0x08, 0x18, 0x17, 0x05, 0xb3, 0x7f, 0x00, 0x38, 0x17, 0x33, 0xff, - 0x6c, 0x05, 0x6f, 0xbe, 0x00, 0xb8, 0x17, 0x2e, 0x38, 0x04, 0x36, 0x04, - 0xa8, 0x11, 0x07, 0xb1, 0x7f, 0x10, 0x0e, 0x90, 0x7f, 0x11, 0x02, 0x0f, - 0x00, 0x0f, 0x01, 0x02, 0x11, 0x11, 0x02, 0x02, 0x02, 0x83, 0x20, 0x05, - 0x11, 0x11, 0x88, 0x08, 0x72, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x00, 0x01, - 0x0c, 0x0a, 0x0a, 0x0c, 0x0c, 0x01, 0x01, 0x10, 0x0c, 0x0c, 0x08, 0x20, - 0x05, 0x01, 0x01, 0x02, 0x03, 0x00, 0x01, 0x01, 0x03, 0x03, 0x02, 0x02, - 0x03, 0x03, 0xc0, 0x30, 0x05, 0x20, 0x07, 0x04, 0x02, 0x02, 0x04, 0x04, - 0x03, 0x0c, 0x03, 0x04, 0x04, 0x05, 0x20, 0x05, 0x20, 0x07, 0x05, 0x03, - 0x13, 0x03, 0x05, 0x05, 0x20, 0x0d, 0x05, 0x0f, 0x20, 0x05, 0x20, 0x15, - 0x00, 0x06, 0x04, 0x04, 0x06, 0x06, 0x05, 0x05, 0x06, 0x30, 0x06, 0x10, - 0x20, 0x05, 0x20, 0x07, 0x07, 0x05, 0x05, 0x07, 0x03, 0x07, 0x06, 0x06, - 0x07, 0x07, 0x11, 0x20, 0x05, 0x20, 0x07, 0x00, 0x08, 0x06, 0x06, 0x08, - 0x08, 0x07, 0x07, 0x08, 0x30, 0x08, 0x04, 0x20, 0x05, 0x20, 0x07, 0x09, - 0x07, 0x07, 0x09, 0x03, 0x09, 0x08, 0x08, 0x09, 0x09, 0x0e, 0x20, 0x05, - 0x20, 0x07, 0x00, 0x0a, 0x08, 0x08, 0x0a, 0x0a, 0x09, 0x09, 0x0a, 0x30, - 0x0a, 0x06, 0x20, 0x05, 0x20, 0x07, 0x0b, 0x09, 0x09, 0x0b, 0x03, 0x0b, - 0x0a, 0x0a, 0x0b, 0x0b, 0x07, 0x20, 0x05, 0x20, 0x07, 0x0a, 0x0d, 0x0b, - 0x0b, 0x0d, 0x40, 0x03, 0x09, 0x20, 0x09, 0x0b, 0x02, 0x0b, 0x0c, 0x0e, - 0x0c, 0x0c, 0x0e, 0x40, 0x03, 0x0a, 0x80, 0x20, 0x09, 0x0c, 0x0c, 0x0d, - 0x0f, 0x0d, 0x0d, 0x0f, 0xa2, 0x40, 0x03, 0x0b, 0x20, 0x09, 0x0d, 0x0d, - 0x0e, 0x39, 0x04, 0x10, 0x51, 0x0e, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x0e, - 0x0e, 0x0f, 0x30, 0xfc, 0x29, 0x11, 0x0f, 0x20, 0x06, 0x0c, 0x20, 0x05, - 0x0f, 0x0f, 0xf9, 0x2f, 0xc0, 0xf1, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0xc4, 0x59, 0x00, 0x11, 0x0a, 0x00, 0x00, - 0x30, 0x01, 0x28, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x60, 0x06, 0x72, 0xc7, 0x00, 0x00, 0x00, - 0x02, 0x28, 0xd1, 0x30, 0xca, 0x30, 0xde, 0x41, 0x30, 0x06, 0x98, 0x1b, - 0x50, 0x00, 0x61, 0x00, 0x6e, 0x20, 0x03, 0x17, 0x6d, 0x00, 0xe1, 0x06, - 0xe0, 0x7f, 0x61, 0x0e, 0xe0, 0x7f, 0x06, 0xf1, 0x7f, 0x06, 0x51, 0xff, - 0x00, 0xf4, 0x5d, 0xff, 0x62, 0x6c, 0x9a, 0x01, 0x77, 0x81, 0x06, 0x7b, - 0x1d, 0x0c, 0xd3, 0x98, 0xb0, 0xc8, 0xb9, 0x07, 0x33, 0x7f, 0x82, 0x0e, - 0x52, 0x7f, 0x1f, 0x04, 0x30, 0x04, 0x3d, 0x20, 0x03, 0x3c, 0xe2, 0x20, - 0x07, 0x10, 0x06, 0x33, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x01, 0x09, 0x09, - 0x20, 0x01, 0x01, 0x09, 0x01, 0x08, 0x09, 0x08, 0x20, 0x05, 0x01, 0x01, - 0x58, 0x17, 0x00, 0x03, 0x28, 0xdc, 0x30, 0xab, 0x30, 0xba, 0x30, 0x04, - 0xfb, 0x30, 0xc7, 0x30, 0xeb, 0x20, 0x05, 0xc8, 0x30, 0x10, 0xfc, 0x30, - 0xed, 0x05, 0xc8, 0x25, 0x42, 0x00, 0x6f, 0x00, 0x40, 0x63, 0x28, 0x1b, - 0x73, 0x00, 0x20, 0x00, 0x64, 0x00, 0x15, 0x65, 0x00, 0x6c, 0x20, 0x07, - 0x54, 0x20, 0x13, 0x72, 0x20, 0x17, 0x80, 0x10, 0x15, 0x30, 0x7f, 0x5a, - 0x53, 0x61, 0x53, 0xaf, 0x65, 0x2d, 0x00, 0x00, 0xb7, 0x5f, 0x14, 0x5c, - 0x58, 0x62, 0x57, 0x40, 0x7f, 0x05, 0xf8, 0x21, 0xf4, 0xbc, 0x74, 0xce, - 0xa4, 0xc2, 0x03, 0x78, 0xb3, 0xa0, 0xd1, 0x5c, 0xb8, 0x06, 0x3f, 0xb9, - 0x0e, 0xf3, 0x7f, 0x04, 0x11, 0x04, 0x3e, 0x04, 0x3a, 0x28, 0x1b, 0x41, - 0x04, 0x00, 0x2d, 0x00, 0x34, 0x04, 0x35, 0x04, 0x3b, 0x04, 0x56, 0x4c, - 0x20, 0x09, 0x22, 0x20, 0x15, 0x40, 0x20, 0x19, 0x10, 0x1d, 0x14, 0xff, - 0x02, 0x90, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, - 0x00, 0xa3, 0x06, 0x83, 0xc5, 0x00, 0x00, 0x04, 0x28, 0x06, 0xc1, 0x30, - 0xea, 0x30, 0xad, 0x05, 0xc8, 0x09, 0xdf, 0xff, 0x43, 0x08, 0x00, 0x68, - 0x00, 0x69, 0x28, 0x05, 0x69, 0x00, 0x71, 0x08, 0x00, 0x75, 0x00, 0xed, - 0x10, 0x16, 0x00, 0x7f, 0x47, 0x59, 0xcc, 0x18, 0x91, 0xfa, 0x57, 0x05, - 0xf8, 0x0d, 0x9f, 0xff, 0x58, 0xce, 0xac, 0x11, 0xb9, 0xa4, 0xd0, 0x10, - 0x06, 0x93, 0x7f, 0x27, 0x04, 0x38, 0x28, 0x01, 0x5a, 0x38, 0x28, 0x1b, - 0x38, 0x05, 0x28, 0x05, 0x10, 0x18, 0x14, 0xff, 0x03, 0x38, 0x0c, 0x02, - 0x50, 0x03, 0x20, 0x06, 0x09, 0x20, 0x05, 0x03, 0x03, 0xff, 0x05, 0x40, - 0x62, 0x28, 0x17, 0x05, 0x28, 0xb3, 0x30, 0xaf, 0x30, 0x62, 0xec, 0x06, - 0xc8, 0x17, 0x3f, 0xaf, 0x6c, 0x00, 0xe9, 0x10, 0x16, 0x60, 0x7f, 0xd1, - 0x04, 0x79, 0x4b, 0x51, 0xb1, 0x83, 0x06, 0x98, 0x17, 0x54, 0xcf, 0x08, - 0x74, 0xd0, 0x08, 0xb8, 0x10, 0x06, 0x93, 0x7f, 0x1a, 0x04, 0x3e, 0x8d, - 0x28, 0x13, 0x3b, 0x04, 0x35, 0x06, 0x48, 0x15, 0x10, 0x17, 0x14, 0xff, - 0x04, 0x38, 0x0c, 0x28, 0x03, 0x04, 0x20, 0x06, 0x04, 0x20, 0x05, 0x04, - 0x04, 0x0e, 0x02, 0x06, 0xda, 0xc6, 0x00, 0x00, 0x06, 0x28, 0x17, 0xed, - 0x20, 0x30, 0xf3, 0x06, 0xe8, 0x17, 0x6c, 0x00, 0xf3, 0x00, 0x6e, 0x84, - 0x10, 0x16, 0x60, 0x7f, 0xd1, 0x79, 0x86, 0x96, 0x06, 0x98, 0x15, 0x00, - 0x00, 0x1d, 0x5c, 0xcf, 0x60, 0x06, 0xa8, 0x15, 0x0f, 0x13, 0x7f, 0x38, - 0x17, 0x3b, 0x28, 0x1b, 0x69, 0x3d, 0x06, 0xa8, 0x17, 0x10, 0x16, 0xb4, - 0xff, 0x05, 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x40, 0x05, 0x20, 0x05, - 0x05, 0x05, 0xa7, 0x06, 0x2f, 0xc7, 0x00, 0x00, 0x00, 0x07, 0x28, 0xc0, - 0x30, 0xea, 0x30, 0x40, 0xa8, 0x06, 0xa8, 0x19, 0x44, 0x00, 0x61, 0x00, - 0x72, 0x00, 0x70, 0x69, 0x2f, 0xaf, 0x06, 0x58, 0x19, 0x10, 0x0e, 0xf0, - 0x7f, 0xbe, 0x8f, 0xde, 0x8f, 0x81, 0x06, 0xb8, 0x17, 0xe4, 0xb2, 0xac, - 0xb9, 0xd4, 0xc5, 0x06, 0x9b, 0x97, 0x80, 0x0e, 0xf3, 0x7f, 0x14, 0x04, - 0x30, 0x04, 0x40, 0x04, 0x4c, 0x34, 0x04, 0x35, 0x06, 0x68, 0x19, 0x10, - 0x16, 0xf4, 0xff, 0x06, 0x38, 0x0c, 0x05, 0x06, 0xa0, 0x20, 0x06, 0x03, - 0x20, 0x05, 0x06, 0x06, 0xf9, 0x05, 0x6f, 0x00, 0xc8, 0x00, 0x00, 0x08, - 0x28, 0xa8, 0x30, 0xec, 0x08, 0x30, 0xfc, 0x30, 0xe9, 0x06, 0x88, 0x17, - 0x48, 0x00, 0x65, 0xa8, 0x28, 0x17, 0x72, 0x40, 0x05, 0x61, 0x10, 0x16, - 0x20, 0x7f, 0xc3, 0x57, 0xf7, 0x10, 0x96, 0xc9, 0x62, 0x06, 0x98, 0x19, - 0xd0, 0xc5, 0x08, 0xb8, 0x35, 0x7c, 0xb7, 0x06, 0x98, 0x97, 0x0e, 0xf3, - 0x7f, 0x2d, 0x28, 0x15, 0x40, 0x28, 0x15, 0x69, 0x40, 0x28, 0x1f, 0x10, - 0x1e, 0x34, 0xff, 0x07, 0x38, 0x0c, 0x06, 0x07, 0x20, 0x06, 0x40, 0x0a, - 0x20, 0x05, 0x07, 0x07, 0xaa, 0x05, 0xce, 0xc6, 0x00, 0x00, 0x00, 0x09, - 0x28, 0xed, 0x30, 0xb9, 0x30, 0x01, 0xfb, 0x30, 0xb5, 0x30, 0xf3, 0x30, - 0xc8, 0x20, 0x09, 0x80, 0x06, 0x1f, 0xb2, 0x4c, 0x00, 0x6f, 0x00, 0x73, - 0x00, 0x20, 0x23, 0x00, 0x53, 0x2f, 0xb7, 0x6e, 0x00, 0x74, 0x40, 0x0d, - 0x10, 0x15, 0xb0, 0x7f, 0x00, 0x1b, 0x6d, 0xaf, 0x65, 0x51, 0x68, 0x58, - 0x62, 0x20, 0xaf, 0x65, 0x06, 0x58, 0x1b, 0x5c, 0xb8, 0xa4, 0xc2, 0x20, - 0x01, 0x00, 0xb0, 0xc0, 0xa0, 0xd1, 0xa4, 0xc2, 0x06, 0x3f, 0xb0, 0x80, - 0x0f, 0x01, 0xff, 0x04, 0x3e, 0x04, 0x41, 0x04, 0x2d, 0x00, 0x46, 0x21, - 0x28, 0x17, 0x3d, 0x04, 0x42, 0x40, 0x0d, 0x10, 0x1d, 0xb4, 0xff, 0x08, - 0x58, 0x08, 0x50, 0x01, 0x07, 0x20, 0x01, 0x30, 0x0b, 0x85, 0x05, 0xe9, - 0x91, 0x28, 0x17, 0x0a, 0x28, 0x38, 0x11, 0xd6, 0x30, 0xe9, 0x28, 0x1d, - 0x08, 0xf8, 0x8a, 0xf6, 0x5c, 0x06, 0x1f, 0xb0, 0x4b, 0x00, 0x75, 0xab, - 0x28, 0x0f, 0x61, 0x28, 0x19, 0x59, 0x2f, 0xaf, 0x6c, 0x06, 0x0f, 0xb3, - 0x10, 0x0e, 0xf0, 0x7f, 0x04, 0x23, 0x57, 0x03, 0x5e, 0xc9, 0x28, 0x15, - 0x79, 0x72, 0x20, 0x3a, 0x53, 0x06, 0x3f, 0xb5, 0xb0, 0xc0, 0x14, 0xbe, - 0x7c, 0x43, 0xb7, 0x38, 0x1b, 0x1c, 0xc8, 0xc4, 0xb3, 0x06, 0x1f, 0xb0, - 0x5b, 0x8f, 0x11, 0x20, 0x00, 0x42, 0x43, 0x7b, 0x73, 0x00, 0x2d, 0x2f, - 0xbf, 0x45, 0x69, 0x43, 0x87, 0x6e, 0x00, 0x64, 0x2f, 0xcb, 0x6e, 0x0c, - 0xe3, 0xff, 0x14, 0x1a, 0x04, 0x43, 0x28, 0x0f, 0x30, 0x28, 0x19, 0x2f, - 0x04, 0x62, 0x3b, 0x28, 0x1b, 0x10, 0x1d, 0xf4, 0xff, 0x09, 0x07, 0x07, - 0x20, 0x01, 0x09, 0x08, 0x09, 0x09, 0x07, 0x06, 0x30, 0x05, 0x09, 0xcd, - 0x06, 0x01, 0xdb, 0xc7, 0x00, 0x00, 0x0b, 0x28, 0xd9, 0x28, 0x13, 0x18, - 0xb0, 0x30, 0xa2, 0x28, 0x17, 0x06, 0x3d, 0x2d, 0x00, 0x00, 0x56, 0xae, - 0x24, 0x87, 0x72, 0x2f, 0xab, 0x67, 0x28, 0x1f, 0x34, 0x97, 0x10, 0x15, - 0xf0, 0x7f, 0x1d, 0x00, 0x8d, 0xc9, 0x62, 0xdc, 0x74, 0xaf, 0x65, 0x01, - 0x40, 0x77, 0x06, 0x52, 0xff, 0xa0, 0xbc, 0x7c, 0xb7, 0xfc, 0xac, 0x30, - 0xa4, 0xc2, 0x06, 0x53, 0x7d, 0x0f, 0x13, 0x7f, 0x12, 0x04, 0x35, 0x04, - 0x51, 0x40, 0x28, 0x17, 0x33, 0x28, 0x1f, 0x30, 0x04, 0x41, 0x06, 0x08, - 0x17, 0x94, 0x10, 0x16, 0xf4, 0xff, 0x0a, 0x0a, 0x70, 0x01, 0x02, 0x40, - 0x0a, 0xc2, 0x05, 0x28, 0x6a, 0xc6, 0x00, 0x3f, 0xff, 0x01, 0x38, 0x34, - 0x09, 0x01, 0x01, 0x11, 0x08, 0x09, 0x08, 0x20, 0x05, 0x01, 0x01, 0x02, - 0x30, 0x04, 0x20, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x03, - 0x94, 0x30, 0x04, 0x02, 0x03, 0x20, 0x06, 0x09, 0x20, 0x05, 0x03, 0x03, - 0x4a, 0x04, 0x30, 0x04, 0x03, 0x04, 0x20, 0x06, 0x04, 0x20, 0x05, 0x04, - 0x25, 0x04, 0x05, 0x30, 0x04, 0x04, 0x05, 0x20, 0x06, 0x05, 0x20, 0x05, - 0x12, 0x05, 0x05, 0x06, 0x30, 0x04, 0x05, 0x06, 0x20, 0x06, 0x03, 0x89, - 0x20, 0x05, 0x06, 0x06, 0x07, 0x30, 0x04, 0x06, 0x07, 0x20, 0x06, 0x42, - 0x0a, 0x20, 0x05, 0x07, 0x07, 0x08, 0x08, 0x50, 0x01, 0x07, 0xf8, 0x20, - 0x01, 0x30, 0x0b, 0xf8, 0xbf, 0xf0, 0xb7, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x04, 0x9b, 0x00, 0x11, 0x12, 0x00, 0x00, - 0x30, 0x01, 0x29, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x09, 0xee, 0xff, 0xd6, 0x00, 0x00, 0x00, - 0x02, 0x29, 0xbb, 0x30, 0xf3, 0x30, 0xc8, 0x01, 0x30, 0xe9, 0x30, 0xeb, - 0x30, 0x0c, 0x77, 0x06, 0x38, 0x21, 0x00, 0x43, 0x00, 0x65, 0x00, 0x6e, - 0x00, 0x74, 0x00, 0x04, 0x72, 0x00, 0x61, 0x00, 0x6c, 0x10, 0x16, 0x20, - 0x7f, 0x2d, 0x4e, 0x18, 0x2e, 0x59, 0x01, 0x06, 0x42, 0xf9, 0x5b, 0x98, - 0x3c, 0xc1, 0xb8, 0x01, 0xd2, 0x84, 0xb7, 0x20, 0x00, 0xfc, 0xc8, 0x06, - 0x5b, 0x9f, 0x80, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x35, 0x04, 0x3d, 0x04, - 0x42, 0x00, 0x04, 0x40, 0x04, 0x30, 0x04, 0x3b, 0x04, 0x4c, 0x45, 0x04, - 0x10, 0x1d, 0xf4, 0xff, 0x01, 0x09, 0x09, 0x20, 0x01, 0x01, 0x20, 0x06, - 0x71, 0x12, 0x20, 0x05, 0x20, 0x07, 0x48, 0x17, 0x03, 0x29, 0xa2, 0x28, - 0x11, 0x05, 0xc8, 0x30, 0xfb, 0x30, 0xd1, 0x28, 0x1b, 0xca, 0x06, 0x28, - 0x1b, 0x40, 0x41, 0x28, 0x0d, 0x74, 0x00, 0x6f, 0x00, 0x20, 0x00, 0x62, - 0x50, 0x28, 0x19, 0x38, 0x1d, 0x6e, 0x00, 0xe1, 0x10, 0x15, 0xa0, 0x7f, - 0x0a, 0x01, 0x4e, 0xf4, 0x5d, 0xc9, 0x62, 0xa3, 0x90, 0x06, 0x78, 0x1b, - 0x00, 0x4c, 0xc5, 0xa0, 0xd1, 0x0c, 0xd3, 0x7c, 0xb7, 0x34, 0x98, 0xb0, - 0x06, 0x58, 0x1b, 0x0e, 0xf3, 0x7f, 0x10, 0x48, 0x0d, 0x42, 0x04, 0x06, - 0x3e, 0x04, 0x2d, 0x00, 0x1f, 0x28, 0x1b, 0x38, 0x1f, 0x3d, 0xc8, 0x28, - 0x23, 0x10, 0x1d, 0x74, 0xff, 0x02, 0x02, 0xd0, 0x01, 0xde, 0xed, 0x02, - 0x08, 0xd9, 0x00, 0x00, 0x04, 0x28, 0x17, 0xde, 0x30, 0xf3, 0x0d, 0x30, - 0xd0, 0x30, 0xa4, 0x06, 0x28, 0x13, 0x58, 0x17, 0x6d, 0x2f, 0xa9, 0x14, - 0x6d, 0x00, 0x62, 0x2f, 0xaf, 0x79, 0x10, 0x16, 0x20, 0x7f, 0x3f, 0x96, - 0x08, 0xfc, 0x66, 0xdc, 0x62, 0x06, 0x78, 0x15, 0x00, 0x00, 0x44, 0x01, - 0xc5, 0xd8, 0xb9, 0x14, 0xbc, 0x74, 0xc7, 0x06, 0x58, 0x15, 0x88, 0x0f, - 0x13, 0x7f, 0x10, 0x04, 0x3c, 0x28, 0x0d, 0x3c, 0x04, 0x31, 0xb2, 0x28, - 0x13, 0x39, 0x05, 0x88, 0x0d, 0x10, 0x17, 0x94, 0xff, 0x03, 0x03, 0xd0, - 0x01, 0xa5, 0x00, 0xef, 0x2e, 0xd8, 0x00, 0x00, 0x05, 0x29, 0xab, 0x08, - 0x30, 0xa2, 0x30, 0xb0, 0x20, 0x03, 0xb9, 0x30, 0xfc, 0xa0, 0x06, 0x48, - 0x19, 0x43, 0x2f, 0xa5, 0x61, 0x00, 0x67, 0x00, 0x75, 0x88, 0x2f, 0xad, - 0x7a, 0x00, 0xfa, 0x10, 0x16, 0x00, 0x7f, 0x61, 0x53, 0xdc, 0x10, 0x74, - 0xcf, 0x82, 0x06, 0x98, 0x17, 0x74, 0xce, 0x44, 0xc5, 0x0d, 0xfc, 0xac, - 0x18, 0xc2, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1a, 0x28, 0x15, 0x05, - 0x30, 0x04, 0x33, 0x04, 0x43, 0x28, 0x1d, 0x41, 0x20, 0x05, 0x8a, 0x10, - 0x1d, 0xf4, 0xff, 0x04, 0x06, 0x06, 0x20, 0x01, 0x04, 0x20, 0x06, 0x08, - 0x80, 0x20, 0x05, 0x04, 0x04, 0xee, 0xed, 0xdc, 0xd7, 0x00, 0x23, 0x00, - 0x06, 0x48, 0x17, 0xb5, 0x30, 0xd1, 0x06, 0x48, 0x13, 0x98, 0x17, 0x44, - 0x7a, 0x2f, 0xb3, 0x70, 0x00, 0xe1, 0x10, 0x16, 0x20, 0x7f, 0x61, 0x53, - 0x08, 0x28, 0x84, 0x15, 0x5e, 0x06, 0xd8, 0x17, 0xac, 0xc0, 0x0c, 0x75, - 0xd3, 0x06, 0xd8, 0x17, 0x0e, 0x93, 0x7f, 0x58, 0x17, 0x41, 0x28, 0x1d, - 0x3f, 0x28, 0x21, 0x8a, 0x10, 0x1e, 0x14, 0xff, 0x05, 0x07, 0x07, 0x20, - 0x01, 0x05, 0x20, 0x06, 0x09, 0x80, 0x20, 0x05, 0x05, 0x05, 0x65, 0xed, - 0x2e, 0xd8, 0x00, 0x00, 0x00, 0x07, 0x29, 0xb3, 0x30, 0xf3, 0x30, 0xbb, - 0x03, 0x30, 0xd7, 0x30, 0xb7, 0x30, 0xaa, 0x20, 0x09, 0x06, 0x18, 0x1d, - 0x00, 0x43, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x63, 0x00, 0x41, 0x65, 0x28, - 0x17, 0x63, 0x00, 0x69, 0x00, 0xf3, 0x20, 0x0d, 0x80, 0x10, 0x15, 0xb0, - 0x7f, 0xb7, 0x5e, 0x5e, 0x58, 0x6e, 0x66, 0x7f, 0x10, 0x89, 0xc1, 0x7f, - 0x06, 0x58, 0x1b, 0x58, 0xcf, 0x49, 0xc1, 0x0c, 0xdc, 0xc2, 0x28, 0xc6, - 0x06, 0x98, 0x17, 0x07, 0x93, 0x7f, 0xe7, 0x00, 0x62, 0xe3, 0x24, 0x0d, - 0x05, 0xf8, 0x17, 0x3e, 0x04, 0x3d, 0x28, 0x17, 0x35, 0x8c, 0x28, 0x17, - 0x41, 0x04, 0x4c, 0x40, 0x0d, 0x10, 0x1d, 0xb4, 0xff, 0x06, 0x0a, 0x54, - 0x0a, 0x20, 0x01, 0x06, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x06, 0x06, 0x01, - 0x5b, 0xef, 0x29, 0xd7, 0x00, 0x00, 0x08, 0x28, 0x17, 0x00, 0xeb, 0x30, - 0xc7, 0x30, 0xa3, 0x30, 0xea, 0x30, 0x11, 0xa7, 0x30, 0xe9, 0x06, 0x68, - 0x17, 0x72, 0x00, 0x64, 0x28, 0x11, 0x54, 0x6c, 0x20, 0x01, 0x65, 0x20, - 0x0b, 0x61, 0x10, 0x15, 0xc0, 0x7f, 0xd1, 0x79, 0x02, 0xea, 0x8f, 0xd2, - 0x52, 0xc9, 0x62, 0x06, 0x58, 0x15, 0x00, 0x00, 0x00, 0x54, 0xcf, 0x74, - 0xb9, 0x14, 0xb5, 0x08, 0x1c, 0xc6, 0x7c, 0xb7, 0x06, 0x58, 0x19, 0x0e, - 0xf3, 0x7f, 0x38, 0x17, 0x40, 0x04, 0x05, 0x34, 0x04, 0x38, 0x04, 0x3b, - 0x28, 0x15, 0x35, 0x20, 0x0b, 0x62, 0x30, 0x06, 0x08, 0x17, 0x10, 0x16, - 0xb4, 0xff, 0x07, 0x0b, 0x0b, 0x20, 0x01, 0x07, 0xa0, 0x20, 0x06, 0x0c, - 0x20, 0x05, 0x07, 0x07, 0xf4, 0xed, 0x5d, 0x80, 0x28, 0x17, 0x09, 0x29, - 0xb0, 0x30, 0xa2, 0x30, 0xa4, 0xb1, 0x28, 0x11, 0xfc, 0x06, 0x28, 0x13, - 0x3f, 0xff, 0x47, 0x00, 0x75, 0x28, 0x09, 0x58, 0x69, 0x28, 0x1b, 0xe1, - 0x06, 0x45, 0x98, 0x10, 0x0e, 0xf0, 0x7f, 0xdc, 0x74, 0x0a, 0x40, 0x4f, - 0x06, 0x98, 0x15, 0x00, 0x00, 0xfc, 0xac, 0x74, 0xc7, 0xc5, 0x06, 0x78, - 0x13, 0x0f, 0x33, 0x7f, 0x13, 0x04, 0x43, 0x28, 0x09, 0x39, 0x06, 0x08, - 0x0f, 0x8a, 0x10, 0x17, 0x74, 0xff, 0x08, 0x0c, 0x0c, 0x20, 0x01, 0x08, - 0x20, 0x06, 0x06, 0x82, 0x20, 0x05, 0x08, 0x08, 0xb1, 0xed, 0xdf, 0x28, - 0x17, 0x0a, 0x03, 0x29, 0xa4, 0x30, 0xbf, 0x30, 0xd7, 0x28, 0x1b, 0x06, - 0x58, 0x15, 0x04, 0x00, 0x00, 0x49, 0x00, 0x74, 0x2f, 0xa1, 0x70, 0x00, - 0x60, 0xfa, 0x05, 0xef, 0xa7, 0x10, 0x0f, 0x70, 0x7f, 0x0a, 0x4f, 0x54, - 0x58, 0x6e, 0x10, 0x66, 0x3f, 0x96, 0x06, 0x78, 0x19, 0x74, 0xc7, 0xc0, - 0xd0, 0x0c, 0x78, 0xd4, 0x44, 0xc5, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, - 0x18, 0x04, 0x58, 0x42, 0x28, 0x17, 0x3f, 0x48, 0x1d, 0x10, 0x1e, 0x34, - 0xff, 0x09, 0x0d, 0x0d, 0xa8, 0x20, 0x01, 0x09, 0x20, 0x06, 0x07, 0x20, - 0x05, 0x09, 0x09, 0x91, 0x00, 0xec, 0x40, 0xd8, 0x00, 0x00, 0x0b, 0x29, - 0xdf, 0x00, 0x30, 0xb7, 0x30, 0xaa, 0x30, 0xcd, 0x30, 0xb9, 0xa8, 0x06, - 0x68, 0x19, 0x4d, 0x2f, 0xab, 0x73, 0x2f, 0xaf, 0x6f, 0x00, 0x6e, 0x30, - 0x00, 0x65, 0x20, 0x09, 0x10, 0x15, 0xf0, 0x7f, 0x73, 0x7c, 0x7f, 0x89, - 0x02, 0x65, 0x59, 0x85, 0x51, 0xaf, 0x65, 0x06, 0x58, 0x19, 0xf8, 0x00, - 0xbb, 0xdc, 0xc2, 0x24, 0xc6, 0x24, 0xb1, 0xa4, 0x60, 0xc2, 0x06, 0x58, - 0x19, 0x0e, 0xf3, 0x7f, 0x1c, 0x04, 0x38, 0x04, 0x41, 0x00, 0x04, 0x4c, - 0x04, 0x3e, 0x04, 0x3d, 0x04, 0x35, 0xc5, 0x20, 0x09, 0x10, 0x1d, 0xf4, - 0xff, 0x0a, 0x0e, 0x0e, 0x20, 0x01, 0x0a, 0x20, 0x06, 0x40, 0x0d, 0x20, - 0x05, 0x0a, 0x0a, 0xcd, 0xec, 0x78, 0xd7, 0x00, 0x00, 0x00, 0x0c, 0x29, - 0xcb, 0x30, 0xa7, 0x30, 0x01, 0xa8, 0x30, 0xf3, 0x30, 0xd6, 0x30, 0xaf, - 0x06, 0x48, 0x19, 0x40, 0xd1, 0x28, 0x0d, 0x65, 0x00, 0x6d, 0x00, 0x62, - 0x00, 0x18, 0x75, 0x00, 0x63, 0x2f, 0xb5, 0x10, 0x15, 0xf0, 0x7f, 0x85, - 0x6d, 0x69, 0x04, 0x60, 0x03, 0x5e, 0x93, 0x5e, 0x06, 0x58, 0x15, 0x00, - 0x00, 0x00, 0x24, 0xb1, 0xe0, 0xc5, 0x80, 0xbd, 0xe0, 0xcf, 0xd0, 0x06, - 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x1d, 0x28, 0x13, 0x35, 0x04, 0x4d, 0x04, - 0x01, 0x3c, 0x04, 0x31, 0x04, 0x43, 0x04, 0x3a, 0x20, 0x03, 0x8a, 0x10, - 0x1d, 0xd4, 0xff, 0x0b, 0x0f, 0x0f, 0x20, 0x01, 0x0b, 0x20, 0x06, 0x0e, - 0x80, 0x20, 0x05, 0x0b, 0x0b, 0xcd, 0xec, 0xc2, 0xd6, 0x00, 0x00, 0x00, - 0x0d, 0x29, 0xd1, 0x30, 0xe9, 0x30, 0xb0, 0x08, 0x30, 0xa2, 0x30, 0xea, - 0x06, 0x48, 0x15, 0x00, 0x00, 0x50, 0x0b, 0x00, 0x61, 0x00, 0x72, 0x20, - 0x03, 0x67, 0x28, 0x17, 0x30, 0x09, 0x40, 0xed, 0x10, 0x15, 0xe0, 0x7f, - 0xf4, 0x5d, 0xc9, 0x62, 0xdc, 0x74, 0x20, 0xcc, 0x91, 0x06, 0x78, 0x17, - 0x0c, 0xd3, 0x7c, 0xb7, 0xfc, 0x18, 0xac, 0xac, 0xb9, 0x06, 0x78, 0x17, - 0x0e, 0xf3, 0x7f, 0x1f, 0x04, 0x30, 0x2d, 0x04, 0x40, 0x20, 0x03, 0x33, - 0x28, 0x15, 0x30, 0x09, 0x38, 0x05, 0xe8, 0x17, 0x8a, 0x10, 0x16, 0xf4, - 0xff, 0x0c, 0x10, 0x10, 0x20, 0x01, 0x0c, 0x20, 0x06, 0x0f, 0x80, 0x20, - 0x05, 0x0c, 0x0c, 0xc6, 0xed, 0x5d, 0xd7, 0x00, 0x00, 0x00, 0x0e, 0x29, - 0xd7, 0x30, 0xec, 0x30, 0xb8, 0x00, 0x30, 0xc7, 0x30, 0xf3, 0x30, 0xc6, - 0x30, 0xfb, 0x8a, 0x28, 0x1f, 0xa8, 0x30, 0xb9, 0x05, 0xc8, 0x21, 0x50, - 0x28, 0x15, 0x65, 0x02, 0x00, 0x73, 0x00, 0x69, 0x00, 0x64, 0x2f, 0xb9, - 0x6e, 0x22, 0x00, 0x74, 0x2f, 0xbf, 0x20, 0x00, 0x48, 0x28, 0x2d, 0x79, - 0xc0, 0x40, 0x17, 0x10, 0x14, 0xf0, 0x7f, 0x3f, 0x96, 0x36, 0x80, 0xaf, - 0x65, 0x08, 0x3b, 0x60, 0xdf, 0x7e, 0x06, 0x58, 0x19, 0x04, 0xd5, 0x08, - 0x00, 0xb8, 0xdc, 0xc2, 0x74, 0xb3, 0x4c, 0xd1, 0x44, 0x06, 0xc5, 0x08, - 0xc6, 0xa4, 0xc2, 0x05, 0xf8, 0x1f, 0x0e, 0xf3, 0x7f, 0x1f, 0x8a, 0x28, - 0x15, 0x35, 0x04, 0x41, 0x28, 0x0f, 0x34, 0x20, 0x07, 0x3d, 0x23, 0x04, - 0x42, 0x20, 0x0d, 0x2d, 0x00, 0x10, 0x40, 0x13, 0x10, 0x1d, 0x34, 0xff, - 0x15, 0x0d, 0x11, 0x11, 0x20, 0x01, 0x0d, 0x20, 0x06, 0x10, 0x20, 0x05, - 0x00, 0x0d, 0x0d, 0x4a, 0xef, 0x2a, 0xd6, 0x00, 0x00, 0x10, 0x0f, 0x29, - 0xb5, 0x28, 0x11, 0xfb, 0x30, 0xda, 0x30, 0x1a, 0xc9, 0x30, 0xed, 0x05, - 0xc8, 0x0f, 0x7f, 0xff, 0x53, 0x2f, 0xaf, 0x6e, 0xaa, 0x28, 0x09, 0x50, - 0x28, 0x1d, 0x64, 0x2f, 0xb9, 0x6f, 0x10, 0x15, 0xe0, 0x7f, 0x23, 0x01, - 0x57, 0x69, 0x4f, 0xb7, 0x5f, 0x57, 0x7f, 0x06, 0x58, 0x15, 0x00, 0x00, - 0x00, 0xb0, 0xc0, 0x98, 0xd3, 0xdc, 0xb4, 0x31, 0x5c, 0xb8, 0x05, 0xf8, - 0x0f, 0x0f, 0x73, 0x7f, 0x21, 0x04, 0x30, 0x28, 0x0d, 0x51, 0x2d, 0x28, - 0x1f, 0x35, 0x28, 0x19, 0x40, 0x04, 0x3e, 0x05, 0x48, 0x0d, 0x8a, 0x10, - 0x17, 0x94, 0xff, 0x0e, 0x12, 0x12, 0x20, 0x01, 0x0e, 0x20, 0x06, 0x11, - 0x80, 0x20, 0x05, 0x0e, 0x0e, 0xdd, 0xee, 0x69, 0xd7, 0x00, 0x02, 0x00, - 0x10, 0x29, 0xab, 0x30, 0xcb, 0x28, 0x19, 0xc7, 0x0a, 0x30, 0xb8, 0x30, - 0xe5, 0x06, 0x48, 0x17, 0x43, 0x48, 0x17, 0x69, 0xc4, 0x2f, 0xa9, 0x3f, - 0xaf, 0x79, 0x00, 0xfa, 0x10, 0x15, 0xe0, 0x7f, 0x61, 0x53, 0x02, 0x81, - 0x5b, 0xea, 0x8f, 0x24, 0x5c, 0x06, 0x78, 0x17, 0x74, 0x01, 0xce, 0x28, - 0xb1, 0x14, 0xb5, 0x20, 0xc7, 0x06, 0x78, 0x17, 0xa8, 0x0e, 0xf3, 0x7f, - 0x1a, 0x48, 0x17, 0x35, 0x28, 0x1b, 0x34, 0x04, 0x38, 0x31, 0x04, 0x4e, - 0x05, 0xe8, 0x15, 0x10, 0x17, 0x14, 0xff, 0x0f, 0x08, 0x08, 0x20, 0x01, - 0x50, 0x0f, 0x20, 0x06, 0x0a, 0x20, 0x05, 0x0f, 0x0f, 0xe6, 0xee, 0x00, - 0x5a, 0xd9, 0x00, 0x00, 0x11, 0x29, 0xa2, 0x30, 0x44, 0xb9, 0x28, 0x17, - 0xb7, 0x30, 0xaa, 0x28, 0x1d, 0x02, 0x5e, 0x82, 0x06, 0x1d, 0x33, 0x41, - 0x00, 0x73, 0x00, 0x75, 0x2f, 0xb1, 0x63, 0xb0, 0x28, 0x1b, 0xf3, 0x2f, - 0xb9, 0x0e, 0xf0, 0x7f, 0x20, 0x00, 0x44, 0x00, 0x50, 0x2e, 0x29, 0x2d, - 0x2e, 0x10, 0x05, 0x61, 0x7f, 0x9a, 0x4e, 0x7e, 0x67, 0x00, 0xee, 0x68, - 0x96, 0x99, 0xfd, 0x90, 0x79, 0x72, 0x08, 0x2b, 0x52, 0x3a, 0x53, 0x05, - 0xff, 0xb3, 0x44, 0xc5, 0x1c, 0x07, 0xc2, 0xdc, 0xc2, 0x28, 0xc6, 0x06, - 0x58, 0x95, 0x07, 0x53, 0x7f, 0x54, 0x01, 0x18, 0xe7, 0x00, 0xe3, 0x06, - 0x0f, 0x2d, 0x2d, 0x19, 0x04, 0x41, 0x04, 0x41, 0x43, 0x28, 0x19, 0x41, - 0x04, 0x4c, 0x04, 0x3e, 0x28, 0x21, 0xc5, 0x10, 0x06, 0xf4, 0xff, 0x10, - 0x05, 0xf6, 0x7f, 0x10, 0x04, 0x04, 0x20, 0x01, 0x10, 0x40, 0x06, 0x00, - 0x10, 0x10, 0x10, 0x10, 0x09, 0xee, 0xff, 0xd6, 0x10, 0x00, 0x00, 0x12, - 0x28, 0x17, 0xeb, 0x30, 0xc8, 0x30, 0x00, 0xfb, 0x30, 0xd1, 0x30, 0xe9, - 0x30, 0xb0, 0x30, 0x04, 0xa2, 0x30, 0xa4, 0x30, 0x0c, 0x05, 0xcd, 0x39, - 0x41, 0x00, 0x11, 0x6c, 0x00, 0x74, 0x24, 0x0f, 0x20, 0x00, 0x50, 0x2f, - 0xb9, 0x56, 0x72, 0x2f, 0xbd, 0x67, 0x28, 0x27, 0x61, 0x2f, 0xb9, 0x10, - 0x15, 0x50, 0x7f, 0x0a, 0x00, 0x4e, 0xf4, 0x5d, 0xc9, 0x62, 0x2d, 0x57, - 0x01, 0xc0, 0x05, 0xc2, 0xf5, 0x9f, 0xff, 0x4c, 0xc5, 0xa0, 0xd1, 0x0c, - 0xd3, 0x00, 0x7c, 0xb7, 0xfc, 0xac, 0x74, 0xc7, 0x20, 0x00, 0x35, 0xfc, - 0xc8, 0x06, 0x1b, 0x97, 0x08, 0x53, 0x7f, 0x69, 0x05, 0x88, 0x17, 0x3b, - 0x28, 0x11, 0x40, 0x42, 0x28, 0x13, 0x2d, 0x00, 0x1f, 0x04, 0x30, 0x04, - 0x45, 0x40, 0x20, 0x03, 0x33, 0x04, 0x32, 0x20, 0x09, 0x39, 0x05, 0x48, - 0x23, 0x8a, 0x10, 0x16, 0xf4, 0xff, 0x11, 0x01, 0x01, 0x20, 0x01, 0x11, - 0x40, 0x06, 0x11, 0x02, 0x11, 0x11, 0x11, 0x0b, 0xf1, 0xd4, 0x28, 0x17, - 0x13, 0x00, 0x29, 0xdc, 0x30, 0xb1, 0x30, 0xed, 0x30, 0xf3, 0xd5, 0x05, - 0xe8, 0x0d, 0x9f, 0xff, 0x42, 0x2c, 0x23, 0x71, 0x2f, 0xb1, 0x65, 0x28, - 0x13, 0xc0, 0x06, 0x3f, 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0x5a, 0x53, 0x4b, - 0x51, 0x99, 0x9f, 0x80, 0x06, 0x78, 0x15, 0x00, 0x00, 0xf4, 0xbc, 0x00, - 0xcf, 0x60, 0x68, 0xb8, 0x06, 0x38, 0x11, 0x0f, 0x53, 0x7f, 0x11, 0x28, - 0x11, 0x3a, 0x04, 0x35, 0x8c, 0x28, 0x0f, 0x3e, 0x04, 0x3d, 0x05, 0x48, - 0x09, 0x10, 0x17, 0xd4, 0xff, 0x12, 0x05, 0x50, 0x05, 0x20, 0x01, 0x12, - 0x40, 0x06, 0x12, 0x12, 0x12, 0x12, 0x08, 0x1c, 0xf0, 0x50, 0xd5, 0x00, - 0x3f, 0xff, 0x01, 0x09, 0x09, 0xa8, 0x20, 0x01, 0x01, 0x20, 0x06, 0x12, - 0x20, 0x05, 0x01, 0x01, 0x02, 0x48, 0x02, 0xd0, 0x01, 0x03, 0x03, 0xd0, - 0x01, 0x04, 0x06, 0x06, 0xa8, 0x20, 0x01, 0x04, 0x20, 0x06, 0x08, 0x20, - 0x05, 0x04, 0x04, 0x05, 0x2a, 0x07, 0x07, 0x20, 0x01, 0x05, 0x20, 0x06, - 0x09, 0x20, 0x05, 0x05, 0x0a, 0x05, 0x06, 0x0a, 0x0a, 0x20, 0x01, 0x06, - 0x20, 0x06, 0x0b, 0x82, 0x20, 0x05, 0x06, 0x06, 0x07, 0x0b, 0x0b, 0x20, - 0x01, 0x07, 0xa0, 0x20, 0x06, 0x0c, 0x20, 0x05, 0x07, 0x07, 0x08, 0x0c, - 0x0c, 0xa8, 0x20, 0x01, 0x08, 0x20, 0x06, 0x06, 0x20, 0x05, 0x08, 0x08, - 0x09, 0x2a, 0x0d, 0x0d, 0x20, 0x01, 0x09, 0x20, 0x06, 0x07, 0x20, 0x05, - 0x09, 0x0a, 0x09, 0x0a, 0x0e, 0x0e, 0x20, 0x01, 0x0a, 0x20, 0x06, 0x0d, - 0xca, 0x20, 0x05, 0x20, 0x45, 0x0f, 0x0f, 0x20, 0x01, 0x0b, 0x20, 0x06, - 0x0e, 0xca, 0x20, 0x05, 0x20, 0x45, 0x10, 0x10, 0x20, 0x01, 0x0c, 0x20, - 0x06, 0x0f, 0x89, 0x20, 0x05, 0x0c, 0x0c, 0x0d, 0x38, 0xf4, 0x11, 0x0d, - 0x20, 0x06, 0x44, 0x10, 0x20, 0x05, 0x0d, 0x0d, 0x0e, 0x30, 0xec, 0x12, - 0x0e, 0xa2, 0x20, 0x06, 0x11, 0x20, 0x05, 0x0e, 0x0e, 0x0f, 0x30, 0x64, - 0x08, 0x51, 0x0f, 0x20, 0x06, 0x0a, 0x20, 0x05, 0x0f, 0x0f, 0x10, 0x30, - 0xb4, 0x3e, 0x04, 0x10, 0x40, 0x06, 0x30, 0x4a, 0xf9, 0x3f, 0xf1, 0x37, - 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x1c, 0xd4, 0x00, 0x11, 0x19, 0x00, 0x00, 0x30, 0x01, 0x2a, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x6f, 0xf7, 0x36, 0xc9, 0x00, 0x01, 0x00, 0x02, 0x2a, 0xea, 0x30, - 0xde, 0x30, 0x06, 0xb8, 0x19, 0x01, 0x4c, 0x00, 0x69, 0x00, 0x6d, 0x00, - 0x61, 0x06, 0x88, 0x9c, 0x01, 0x50, 0x00, 0x72, 0x00, 0x6f, 0x00, 0x76, - 0x20, 0x85, 0x00, 0x6e, 0x00, 0x63, 0x00, 0x65, 0x00, 0x20, 0x00, 0x71, - 0x64, 0x40, 0x05, 0x05, 0x70, 0x97, 0x70, 0xff, 0x20, 0x00, 0x4d, 0x20, - 0x7d, 0x55, 0x74, 0x40, 0x8d, 0x70, 0x20, 0x91, 0x6c, 0x21, 0x17, 0x74, - 0x21, 0x17, 0x70, 0x6e, 0x04, 0xe1, 0x1b, 0x06, 0xf1, 0x7f, 0x06, 0xf1, - 0xff, 0x29, 0x52, 0x6c, 0x9a, 0x21, 0x01, 0x77, 0x06, 0x9b, 0x1b, 0xac, - 0xb9, 0xc8, 0xb9, 0x0e, 0xb3, 0x7f, 0x80, 0x06, 0xf3, 0xff, 0x1b, 0x04, - 0x38, 0x04, 0x3c, 0x04, 0x30, 0x60, 0x04, 0x10, 0x06, 0x71, 0x7f, 0x10, - 0x06, 0xf0, 0xff, 0x01, 0x0f, 0x14, 0x0f, 0x0f, 0x02, 0x0f, 0x01, 0x01, - 0x0f, 0x0f, 0x0c, 0x20, 0x05, 0x01, 0x44, 0x01, 0x58, 0x17, 0x03, 0x2a, - 0xa2, 0x28, 0x17, 0xbd, 0x30, 0x15, 0xca, 0x30, 0xb9, 0x06, 0x68, 0x1d, - 0x41, 0x48, 0x15, 0x7a, 0x27, 0x9b, 0xac, 0x37, 0x01, 0x73, 0x06, 0xc0, - 0x7f, 0x65, 0x0e, 0xe0, 0xff, 0x0e, 0x30, 0x7f, 0x9a, 0x4e, 0x08, 0x6c, - 0x9a, 0x59, 0x5b, 0x06, 0x98, 0x19, 0x44, 0xc5, 0xc8, 0x01, 0xb9, 0x8c, - 0xc1, 0x98, 0xb0, 0xa4, 0xc2, 0x0f, 0x13, 0x7f, 0xa0, 0x06, 0x33, 0xff, - 0x10, 0x48, 0x15, 0x41, 0x04, 0x3e, 0x04, 0x3d, 0xe9, 0x40, 0x07, 0x10, - 0x0d, 0xf3, 0xff, 0x0e, 0xf5, 0x7f, 0x02, 0x38, 0x0c, 0x01, 0x02, 0x40, - 0x06, 0x00, 0x02, 0x02, 0x02, 0x02, 0x95, 0xfb, 0xa4, 0xc8, 0x10, 0x00, - 0x00, 0x04, 0x28, 0x17, 0xf3, 0x30, 0xab, 0x30, 0x05, 0xc3, 0x30, 0xb7, - 0x30, 0xe5, 0x06, 0x48, 0x19, 0x41, 0x4f, 0xa7, 0xb0, 0x38, 0x11, 0x68, - 0x06, 0x68, 0x97, 0x10, 0x0e, 0xd0, 0x7f, 0x89, 0x5b, 0x61, 0x53, 0x20, - 0xc0, 0x4e, 0x06, 0x98, 0x17, 0x59, 0xc5, 0x74, 0xce, 0xdc, 0xd5, 0x06, - 0x68, 0x13, 0x0f, 0x33, 0x7f, 0x10, 0x28, 0x0f, 0x3a, 0x28, 0x19, 0x48, - 0x06, 0x08, 0x11, 0xa4, 0x10, 0x17, 0x54, 0xff, 0x03, 0x38, 0x0c, 0x02, - 0x03, 0x40, 0x06, 0x03, 0x03, 0x05, 0x03, 0x03, 0x39, 0xf9, 0xde, 0x28, - 0x17, 0x05, 0x28, 0x17, 0x05, 0xd7, 0x30, 0xea, 0x30, 0xde, 0x28, 0x19, - 0xaf, 0x06, 0x68, 0x17, 0x01, 0x70, 0x00, 0x75, 0x00, 0x72, 0x00, 0xed, - 0x4f, 0xb7, 0x40, 0x63, 0x10, 0x16, 0x00, 0x7f, 0x3f, 0x96, 0x6e, 0x66, - 0xcc, 0x91, 0x08, 0x6c, 0x9a, 0x4b, 0x51, 0x06, 0x58, 0x1b, 0x44, 0xc5, - 0x78, 0x06, 0xd4, 0xac, 0xb9, 0xc9, 0xb9, 0x06, 0x98, 0x17, 0x0e, 0xd3, - 0x7f, 0x10, 0x00, 0x04, 0x3f, 0x04, 0x43, 0x04, 0x40, 0x04, 0x38, 0x2d, - 0x04, 0x3c, 0x28, 0x1d, 0x3a, 0x06, 0x08, 0x1d, 0x10, 0x16, 0xf4, 0xff, - 0x04, 0x38, 0x0c, 0x20, 0x03, 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, - 0x4f, 0x02, 0xf6, 0x2d, 0xcc, 0x00, 0x00, 0x06, 0x28, 0x17, 0xec, 0x0c, - 0x30, 0xad, 0x30, 0xd1, 0x06, 0x48, 0x13, 0x5f, 0xaf, 0x72, 0x00, 0x15, - 0x65, 0x00, 0x71, 0x28, 0x1b, 0x69, 0x28, 0x21, 0x61, 0x10, 0x16, 0x00, - 0x7f, 0x00, 0x3f, 0x96, 0xf7, 0x96, 0xfa, 0x57, 0x15, 0x5e, 0xc0, 0x06, - 0x58, 0x15, 0x38, 0x17, 0x08, 0xb8, 0xa4, 0xd0, 0x0c, 0xd3, 0xaa, 0x10, - 0x06, 0x73, 0x7f, 0x10, 0x28, 0x13, 0x35, 0x28, 0x0f, 0x38, 0x28, 0x1f, - 0x30, 0xd2, 0x06, 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, 0x05, 0x38, 0x0c, - 0x04, 0x05, 0x40, 0x06, 0x05, 0x00, 0x05, 0x05, 0x05, 0x57, 0xf4, 0x22, - 0xcd, 0x00, 0x20, 0x00, 0x07, 0x28, 0x17, 0xe4, 0x30, 0xaf, 0x30, 0xfc, - 0x08, 0x30, 0xc1, 0x30, 0xe7, 0x06, 0x48, 0x1b, 0x41, 0x00, 0x79, 0xa2, - 0x4f, 0xa7, 0x75, 0x2f, 0xab, 0x68, 0x00, 0x6f, 0x10, 0x16, 0x00, 0x7f, - 0x3f, 0x01, 0x96, 0x9a, 0x4e, 0x93, 0x5e, 0x54, 0x4e, 0x06, 0x98, 0x17, - 0x07, 0x7c, 0xc5, 0xe0, 0xcf, 0x08, 0x23, 0x8b, 0x06, 0x7b, 0x97, 0x0e, - 0xd3, 0x7f, 0x10, 0x10, 0x04, 0x4f, 0x28, 0x15, 0x43, 0x04, 0x47, 0x04, - 0x69, 0x3e, 0x06, 0x28, 0x15, 0x10, 0x17, 0x14, 0xff, 0x06, 0x38, 0x0c, - 0x05, 0x06, 0x40, 0x06, 0x00, 0x06, 0x06, 0x06, 0x06, 0xa5, 0xf6, 0x38, - 0xcb, 0x00, 0x00, 0x00, 0x08, 0x2a, 0xab, 0x30, 0xcf, 0x30, 0x04, 0xde, - 0x30, 0xeb, 0x30, 0xab, 0x06, 0x48, 0x15, 0x00, 0x00, 0x55, 0x43, 0x2f, - 0xa3, 0x6a, 0x2f, 0xa7, 0x6d, 0x2f, 0xab, 0x72, 0x28, 0x1f, 0xc0, 0x05, - 0xff, 0xb1, 0x10, 0x0e, 0xf0, 0x7f, 0x61, 0x53, 0xc8, 0x54, 0x6c, 0x9a, - 0x20, 0x61, 0x53, 0x06, 0x78, 0x17, 0x74, 0xce, 0x58, 0xd5, 0xc8, 0x04, - 0xb9, 0x74, 0xb9, 0x74, 0xce, 0x10, 0x06, 0x53, 0x7f, 0x1a, 0x04, 0x15, - 0x30, 0x04, 0x45, 0x20, 0x03, 0x3c, 0x20, 0x07, 0x40, 0x28, 0x21, 0x69, - 0x30, 0x05, 0xe8, 0x1d, 0x10, 0x16, 0xf4, 0xff, 0x07, 0x38, 0x0c, 0x06, - 0x07, 0x20, 0x06, 0x40, 0x08, 0x20, 0x05, 0x07, 0x07, 0xe8, 0xfa, 0x2b, - 0xc8, 0x11, 0x00, 0x00, 0x09, 0x28, 0x17, 0xe4, 0x30, 0xaa, 0x06, 0x68, - 0x13, 0xac, 0x78, 0x17, 0x6c, 0x20, 0x01, 0x61, 0x06, 0x2f, 0xab, 0x10, - 0x0f, 0x30, 0x7f, 0x61, 0x53, 0x02, 0x9a, 0x4e, 0xc4, 0x4f, 0x3a, 0x53, - 0x06, 0x7f, 0xaf, 0x74, 0x06, 0xce, 0x7c, 0xc5, 0x24, 0xc6, 0x10, 0x06, - 0x93, 0x7f, 0x38, 0x17, 0x3b, 0x03, 0x04, 0x4c, 0x04, 0x4f, 0x04, 0x3e, - 0x05, 0xe8, 0x11, 0x10, 0x17, 0x54, 0xff, 0x48, 0x08, 0x38, 0x0c, 0x07, - 0x08, 0x40, 0x06, 0x08, 0x08, 0x08, 0x00, 0x08, 0x6c, 0xf7, 0x24, 0xc9, - 0x00, 0x00, 0x0a, 0x02, 0x2a, 0xaf, 0x30, 0xb9, 0x30, 0xb3, 0x06, 0xc8, - 0x17, 0x75, 0x3b, 0x00, 0x7a, 0x2f, 0xa7, 0x06, 0x58, 0x15, 0x07, 0x50, - 0x7f, 0x73, 0x0e, 0xe0, 0x7f, 0x06, 0xb1, 0xff, 0x00, 0x93, 0x5e, 0xaf, - 0x65, 0xd1, 0x79, 0x01, 0x77, 0x81, 0x06, 0x7b, 0x19, 0xe0, 0xcf, 0xa4, - 0xc2, 0x54, 0xcf, 0x10, 0x06, 0x93, 0x7f, 0x01, 0x1a, 0x04, 0x43, 0x04, - 0x41, 0x04, 0x3a, 0x06, 0x68, 0x15, 0xd2, 0x0f, 0x54, 0xff, 0x10, 0x06, - 0xb0, 0xff, 0x09, 0x38, 0x0c, 0x08, 0x09, 0x20, 0x06, 0x09, 0x80, 0x20, - 0x05, 0x09, 0x09, 0x64, 0xf6, 0xd1, 0xcc, 0x00, 0x00, 0x00, 0x0b, 0x2a, - 0xef, 0x30, 0xf3, 0x30, 0xab, 0x0d, 0x30, 0xd9, 0x30, 0xea, 0x20, 0x05, - 0x06, 0x3f, 0xb0, 0x48, 0x28, 0x17, 0x10, 0x61, 0x00, 0x6e, 0x28, 0x19, - 0x61, 0x00, 0x76, 0x00, 0x58, 0x65, 0x2f, 0xbb, 0x69, 0x40, 0x0b, 0x10, - 0x15, 0x70, 0x7f, 0x07, 0x4e, 0x61, 0x01, 0x53, 0xe6, 0x97, 0x29, 0x52, - 0x61, 0x53, 0x06, 0x58, 0x1b, 0x00, 0xb0, 0xc6, 0x59, 0xc5, 0x74, 0xce, - 0xa8, 0xbc, 0x08, 0xac, 0xb9, 0x74, 0xce, 0x10, 0x06, 0x33, 0x7f, 0x23, - 0x04, 0x30, 0x20, 0x04, 0x3d, 0x28, 0x17, 0x30, 0x04, 0x32, 0x04, 0x35, - 0x0d, 0x04, 0x3b, 0x04, 0x38, 0x40, 0x0b, 0x10, 0x1d, 0x94, 0xff, 0x0a, - 0x38, 0x0c, 0x28, 0x09, 0x0a, 0x20, 0x06, 0x16, 0x20, 0x05, 0x0a, 0x0a, - 0xec, 0x02, 0xf6, 0xae, 0xca, 0x00, 0x00, 0x0c, 0x28, 0x17, 0xcc, 0x35, - 0x30, 0xb3, 0x06, 0x48, 0x11, 0x98, 0x17, 0xe1, 0x28, 0x17, 0x75, 0x06, - 0x6f, 0xb3, 0x81, 0x10, 0x0e, 0xf0, 0x7f, 0xe6, 0x74, 0xaa, 0x52, 0xd1, - 0x79, 0x06, 0x58, 0x13, 0x81, 0x58, 0x17, 0x44, 0xc5, 0x04, 0xb2, 0x54, - 0xcf, 0x10, 0x06, 0x73, 0x7f, 0xad, 0x58, 0x17, 0x43, 0x28, 0x19, 0x3e, - 0x05, 0xa8, 0x0d, 0x10, 0x17, 0x94, 0xff, 0x0b, 0x38, 0x0c, 0x28, 0x0a, - 0x0b, 0x20, 0x06, 0x17, 0x20, 0x05, 0x0b, 0x0b, 0xf3, 0x00, 0xf8, 0xcb, - 0xc9, 0x00, 0x00, 0x0d, 0x2a, 0xa4, 0x23, 0x30, 0xab, 0x06, 0xa8, 0x15, - 0x00, 0x00, 0x49, 0x05, 0xcf, 0x9d, 0x10, 0x10, 0x10, 0x7f, 0x08, 0x0a, - 0x4f, 0x61, 0x53, 0x06, 0x98, 0x15, 0x00, 0x00, 0x74, 0x15, 0xc7, 0x74, - 0xce, 0x10, 0x06, 0xb3, 0x7f, 0x18, 0x28, 0x11, 0x30, 0x06, 0x48, 0x11, - 0xa5, 0x10, 0x17, 0x54, 0xff, 0x0c, 0x38, 0x0c, 0x0b, 0x0c, 0x20, 0x06, - 0x06, 0x20, 0x05, 0x00, 0x0c, 0x0c, 0xff, 0xf5, 0x27, 0xca, 0x00, 0x00, - 0x01, 0x0e, 0x2a, 0xd5, 0x30, 0xcb, 0x30, 0xf3, 0x06, 0xa8, 0x19, 0x46, - 0x4a, 0x2f, 0xaf, 0x6e, 0x00, 0xed, 0x2f, 0xb1, 0x10, 0x16, 0x50, 0x7f, - 0xe1, 0x10, 0x80, 0x81, 0x5b, 0x06, 0xb8, 0x17, 0xc4, 0xd6, 0xcc, 0xb2, - 0xc0, 0x06, 0xbb, 0x97, 0x0e, 0xf3, 0x7f, 0x25, 0x04, 0x43, 0x04, 0x3d, - 0x04, 0x69, 0x38, 0x20, 0x03, 0x10, 0x1e, 0x54, 0xff, 0x0d, 0x38, 0x0c, - 0x0c, 0x0d, 0x20, 0x06, 0x41, 0x19, 0x20, 0x05, 0x0d, 0x0d, 0x6c, 0xf7, - 0x81, 0x28, 0x17, 0x00, 0x0f, 0x2a, 0xe9, 0x30, 0xfb, 0x30, 0xea, 0x30, - 0x01, 0xd9, 0x30, 0xeb, 0x30, 0xbf, 0x30, 0xfc, 0x06, 0x28, 0x1f, 0x50, - 0x4c, 0x2f, 0xad, 0x20, 0x20, 0x05, 0x69, 0x00, 0x62, 0x00, 0x05, 0x65, - 0x00, 0x72, 0x00, 0x74, 0x2f, 0xbd, 0x64, 0x10, 0x15, 0xa0, 0x7f, 0x00, - 0xc9, 0x62, 0x29, 0x52, 0x2f, 0x4f, 0x54, 0x58, 0x20, 0xb7, 0x5f, 0x06, - 0x58, 0x1d, 0x7c, 0xb7, 0xac, 0xb9, 0xa0, 0x01, 0xbc, 0x74, 0xb9, 0xc0, - 0xd0, 0xdc, 0xb4, 0x06, 0x3f, 0xb6, 0x82, 0x0e, 0xf3, 0x7f, 0x1b, 0x04, - 0x30, 0x04, 0x2d, 0x20, 0x05, 0x38, 0x00, 0x04, 0x31, 0x04, 0x35, 0x04, - 0x40, 0x04, 0x42, 0xb4, 0x20, 0x0f, 0x34, 0x05, 0xa8, 0x23, 0x10, 0x16, - 0xf4, 0xff, 0x0e, 0x38, 0x0c, 0x0d, 0x0e, 0xa0, 0x20, 0x06, 0x0a, 0x20, - 0x05, 0x0e, 0x0e, 0x3c, 0xfa, 0xce, 0x08, 0xc7, 0x00, 0x00, 0x10, 0x28, - 0x17, 0xf3, 0x30, 0xd0, 0x03, 0x30, 0xa4, 0x30, 0xa7, 0x30, 0xb1, 0x06, - 0x28, 0x15, 0x58, 0x17, 0x45, 0x6d, 0x28, 0x13, 0x61, 0x00, 0x79, 0x28, - 0x17, 0x71, 0x2f, 0xbd, 0x40, 0x65, 0x10, 0x15, 0xc0, 0x7f, 0x70, 0x51, - 0xf4, 0x5d, 0x36, 0x80, 0x20, 0x4b, 0x51, 0x06, 0x58, 0x15, 0x00, 0x00, - 0x8c, 0xb7, 0x14, 0x07, 0xbc, 0x08, 0xc6, 0x00, 0xcf, 0x06, 0x6f, 0xae, - 0x0f, 0x03, 0x7f, 0x38, 0x17, 0x45, 0x3c, 0x28, 0x13, 0x30, 0x04, 0x39, - 0x28, 0x17, 0x3a, 0x28, 0x1b, 0xa5, 0x10, 0x1d, 0xd4, 0xff, 0x0f, 0x38, - 0x0c, 0x0e, 0x0f, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x04, 0x0f, 0x0f, 0x2f, - 0xfb, 0x3a, 0x28, 0x17, 0x11, 0x2a, 0x06, 0xed, 0x30, 0xec, 0x30, 0xc8, - 0x06, 0x48, 0x11, 0x7f, 0xaf, 0x6f, 0xa8, 0x2f, 0xa5, 0x65, 0x2f, 0xa7, - 0x6f, 0x10, 0x16, 0x40, 0x7f, 0x1b, 0x6d, 0xf7, 0x10, 0x96, 0x58, 0x62, - 0x06, 0x78, 0x15, 0x00, 0x00, 0x5c, 0xb8, 0x08, 0x08, 0xb8, 0xa0, 0xd1, - 0x10, 0x06, 0x93, 0x7f, 0x1b, 0x04, 0x3e, 0x2c, 0x04, 0x40, 0x28, 0x11, - 0x42, 0x20, 0x07, 0x10, 0x1e, 0x34, 0xff, 0x10, 0x10, 0x14, 0x0f, 0x10, - 0x10, 0x40, 0x01, 0x0d, 0x40, 0x07, 0x56, 0xfd, 0x00, 0xea, 0xcb, 0x00, - 0x00, 0x12, 0x2a, 0xde, 0x30, 0x44, 0xc9, 0x28, 0x19, 0xfb, 0x30, 0xc7, - 0x40, 0x03, 0xa3, 0x30, 0x15, 0xaa, 0x30, 0xb9, 0x05, 0xc8, 0x25, 0x4d, - 0x2f, 0xaf, 0x64, 0x48, 0x19, 0x62, 0x20, 0x20, 0x07, 0x30, 0x05, 0x44, - 0x00, 0x69, 0x28, 0x2b, 0x73, 0x80, 0x10, 0x15, 0x60, 0x7f, 0x6c, 0x9a, - 0xb7, 0x5f, 0xf7, 0x96, 0xb7, 0x01, 0x5f, 0xea, 0x8f, 0x65, 0x59, 0xaf, - 0x65, 0x06, 0x18, 0x1f, 0x00, 0xc8, 0xb9, 0xdc, 0xb4, 0x08, 0xb8, 0x70, - 0xb3, 0x03, 0x14, 0xb5, 0x24, 0xc6, 0xa4, 0xc2, 0x06, 0x1b, 0x9f, 0x0e, - 0xf3, 0x7f, 0x04, 0x1c, 0x04, 0x30, 0x04, 0x34, 0x48, 0x19, 0x2d, 0x00, - 0x45, 0x34, 0x40, 0x05, 0x14, 0x04, 0x38, 0x28, 0x2b, 0x41, 0x05, 0x68, - 0x25, 0x82, 0x10, 0x16, 0xf4, 0xff, 0x11, 0x11, 0x10, 0x11, 0x11, 0x40, - 0x01, 0x0e, 0x80, 0x40, 0x07, 0x0b, 0xf7, 0xce, 0xce, 0x00, 0x00, 0x13, - 0x00, 0x2a, 0xe2, 0x30, 0xb1, 0x30, 0xb0, 0x30, 0xa2, 0xc1, 0x05, 0xc8, - 0x0b, 0xd8, 0x17, 0x6f, 0x00, 0x71, 0x00, 0x75, 0x2f, 0xb1, 0x50, 0x67, - 0x20, 0x05, 0x61, 0x10, 0x16, 0x00, 0x7f, 0xab, 0x83, 0x4b, 0x51, 0x30, - 0xdc, 0x74, 0x06, 0x18, 0x0f, 0x7f, 0xff, 0xa8, 0xba, 0x00, 0xcf, 0x35, - 0xfc, 0xac, 0x06, 0x73, 0x7d, 0x0f, 0x13, 0x7f, 0x1c, 0x28, 0x03, 0x3a, - 0x28, 0x15, 0x18, 0x33, 0x04, 0x43, 0x28, 0x21, 0x10, 0x1e, 0x14, 0xff, - 0x12, 0x12, 0x11, 0x28, 0x12, 0x12, 0x40, 0x01, 0x0f, 0x40, 0x07, 0xc6, - 0xf3, 0x8f, 0x00, 0xcd, 0x00, 0x00, 0x14, 0x2a, 0xd1, 0x30, 0xb9, 0x22, - 0x30, 0xb3, 0x06, 0x88, 0x15, 0x00, 0x00, 0x50, 0x2f, 0xaf, 0x73, 0x30, - 0x00, 0x63, 0x2f, 0xa1, 0x10, 0x16, 0x50, 0x7f, 0x15, 0x5e, 0xaf, 0x65, - 0x20, 0xd1, 0x79, 0x06, 0x98, 0x17, 0x0c, 0xd3, 0xa4, 0xc2, 0x54, 0x55, - 0xcf, 0x10, 0x06, 0x93, 0x7f, 0x1f, 0x28, 0x0d, 0x41, 0x28, 0x19, 0x3e, - 0x06, 0x28, 0x13, 0x82, 0x10, 0x17, 0x34, 0xff, 0x13, 0x13, 0x12, 0x13, - 0x13, 0x40, 0x01, 0x10, 0x84, 0x40, 0x07, 0x68, 0xf8, 0xc5, 0xc9, 0x25, - 0x15, 0x2a, 0xd4, 0x0a, 0x30, 0xa6, 0x30, 0xe9, 0x06, 0xc8, 0x17, 0x69, - 0x2f, 0xad, 0x72, 0xc0, 0x06, 0x2f, 0xa9, 0x10, 0x0f, 0x50, 0x7f, 0xae, - 0x76, 0x4c, 0x4e, 0xc9, 0x62, 0x81, 0x06, 0x98, 0x17, 0x3c, 0xd5, 0xb0, - 0xc6, 0x7c, 0xb7, 0x10, 0x06, 0x93, 0x7f, 0x01, 0x1f, 0x04, 0x38, 0x04, - 0x43, 0x04, 0x40, 0x28, 0x1d, 0x82, 0x10, 0x1e, 0x54, 0xff, 0x14, 0x14, - 0x13, 0x14, 0x14, 0x40, 0x01, 0x11, 0x80, 0x40, 0x07, 0x4e, 0xfc, 0xaa, - 0xc6, 0x00, 0x00, 0x16, 0x02, 0x2a, 0xd7, 0x30, 0xfc, 0x30, 0xce, 0x06, - 0xc8, 0x17, 0x75, 0x30, 0x00, 0x6e, 0x06, 0x8f, 0xad, 0x10, 0x0f, 0x10, - 0x7f, 0x6e, 0x66, 0xfa, 0x8b, 0x81, 0x06, 0x98, 0x15, 0x00, 0x00, 0x78, - 0xd4, 0x78, 0xb1, 0x06, 0x9b, 0x95, 0xa3, 0x0f, 0x13, 0x7f, 0x1f, 0x28, - 0x15, 0x3d, 0x04, 0x3e, 0x06, 0x68, 0x15, 0x10, 0x17, 0x14, 0xff, 0x28, - 0x15, 0x15, 0x70, 0x01, 0x12, 0x40, 0x0a, 0xbe, 0xf4, 0x33, 0x00, 0xce, - 0x00, 0x00, 0x17, 0x2a, 0xb5, 0x30, 0xf3, 0x00, 0x30, 0xfb, 0x30, 0xde, - 0x30, 0xeb, 0x30, 0xc6, 0x34, 0x30, 0xa3, 0x20, 0x0b, 0x05, 0xff, 0xb6, - 0x53, 0x2f, 0xa9, 0x6e, 0x00, 0x10, 0x20, 0x00, 0x4d, 0x2f, 0xb1, 0x72, - 0x00, 0x74, 0x00, 0x60, 0xed, 0x28, 0x25, 0x10, 0x15, 0xb0, 0x7f, 0x23, - 0x57, 0x6c, 0x9a, 0x01, 0x40, 0x4e, 0x06, 0x98, 0x19, 0xb0, 0xc0, 0xc8, - 0xb9, 0x74, 0xb9, 0x31, 0xf4, 0xd2, 0x06, 0x7b, 0x99, 0x0e, 0xf3, 0x7f, - 0x21, 0x04, 0x30, 0x28, 0x17, 0x10, 0x2d, 0x00, 0x1c, 0x20, 0x07, 0x40, - 0x04, 0x42, 0x04, 0x65, 0x38, 0x28, 0x25, 0x10, 0x1d, 0xb4, 0xff, 0x16, - 0x16, 0x70, 0x01, 0x13, 0x40, 0x0a, 0x00, 0xb3, 0xfb, 0x45, 0xc9, 0x00, - 0x00, 0x18, 0x2a, 0x06, 0xbf, 0x30, 0xaf, 0x30, 0xca, 0x06, 0x08, 0x0d, - 0x9f, 0xff, 0x54, 0xa8, 0x28, 0x17, 0x63, 0x2f, 0xb1, 0x61, 0x10, 0x16, - 0x70, 0x7f, 0x58, 0x4b, 0x51, 0x20, 0xb3, 0x7e, 0x06, 0x98, 0x17, 0xc0, - 0xd0, 0x6c, 0xd0, 0x98, 0x55, 0xb0, 0x10, 0x06, 0x93, 0x7f, 0x22, 0x28, - 0x17, 0x3a, 0x28, 0x19, 0x30, 0x05, 0xc8, 0x0d, 0x94, 0x10, 0x17, 0x94, - 0xff, 0x17, 0x17, 0x70, 0x01, 0x14, 0x40, 0x0a, 0x33, 0xf3, 0x00, 0x0c, - 0xce, 0x00, 0x00, 0x19, 0x2a, 0xc8, 0x30, 0x01, 0xa5, 0x30, 0xf3, 0x30, - 0xd9, 0x30, 0xb9, 0x06, 0x68, 0x1b, 0x00, 0x54, 0x00, 0x75, 0x00, 0x6d, - 0x00, 0x62, 0x00, 0x10, 0x65, 0x00, 0x73, 0x10, 0x16, 0x40, 0x7f, 0x1a, - 0x90, 0x1d, 0x8d, 0x20, 0xaf, 0x65, 0x06, 0x98, 0x17, 0x3c, 0xd2, 0xa0, - 0xbc, 0xa4, 0x60, 0xc2, 0x06, 0xbb, 0x97, 0x0e, 0xd3, 0x7f, 0x22, 0x04, - 0x43, 0x04, 0x3c, 0x03, 0x04, 0x31, 0x04, 0x35, 0x04, 0x41, 0x06, 0x48, - 0x19, 0x10, 0x16, 0xf4, 0xff, 0x28, 0x18, 0x18, 0x70, 0x01, 0x15, 0x40, - 0x0a, 0x77, 0xfd, 0xcd, 0x40, 0xc6, 0x25, 0x15, 0x2a, 0xa6, 0x30, 0xab, - 0x30, 0xe4, 0x22, 0x30, 0xea, 0x06, 0x68, 0x15, 0x00, 0x00, 0x55, 0x2f, - 0xad, 0x61, 0x22, 0x00, 0x79, 0x2f, 0xb5, 0x6c, 0x00, 0x69, 0x10, 0x16, - 0x20, 0x7f, 0x4c, 0x01, 0x4e, 0x61, 0x53, 0x9a, 0x4e, 0x29, 0x52, 0x06, - 0x78, 0x19, 0x00, 0xb0, 0xc6, 0x74, 0xce, 0x84, 0xc5, 0xac, 0xb9, 0x80, - 0x10, 0x06, 0x73, 0x7f, 0x23, 0x04, 0x3a, 0x04, 0x30, 0x04, 0x4f, 0x0c, - 0x04, 0x3b, 0x04, 0x38, 0x06, 0x48, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x19, - 0x19, 0xa1, 0x70, 0x01, 0x18, 0x40, 0x0a, 0x0b, 0xfa, 0xff, 0xca, 0x00, - 0x3f, 0xff, 0x00, 0x01, 0x0f, 0x14, 0x0f, 0x0f, 0x0f, 0x01, 0x01, 0x11, - 0x0f, 0x0f, 0x0c, 0x20, 0x05, 0x01, 0x01, 0x02, 0x30, 0x04, 0x20, 0x01, - 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x03, 0x90, 0x30, 0x04, 0x02, - 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x48, 0x04, 0x30, 0x04, 0x03, - 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x24, 0x04, 0x05, 0x30, 0x04, 0x04, - 0x05, 0x40, 0x06, 0x05, 0x05, 0x12, 0x05, 0x05, 0x06, 0x30, 0x04, 0x05, - 0x06, 0x40, 0x06, 0x06, 0x09, 0x06, 0x06, 0x06, 0x07, 0x30, 0x04, 0x06, - 0x07, 0x20, 0x06, 0x44, 0x08, 0x20, 0x05, 0x07, 0x07, 0x08, 0x30, 0x04, - 0x07, 0x08, 0x82, 0x40, 0x06, 0x08, 0x08, 0x08, 0x08, 0x09, 0x30, 0x04, - 0x08, 0x51, 0x09, 0x20, 0x06, 0x09, 0x20, 0x05, 0x09, 0x09, 0x0a, 0x30, - 0x04, 0x28, 0x09, 0x0a, 0x20, 0x06, 0x16, 0x20, 0x05, 0x0a, 0x0a, 0x0b, - 0x94, 0x30, 0x04, 0x0a, 0x0b, 0x20, 0x06, 0x17, 0x20, 0x05, 0x0b, 0x0b, - 0x4a, 0x0c, 0x30, 0x04, 0x0b, 0x0c, 0x20, 0x06, 0x06, 0x20, 0x05, 0x0c, - 0x25, 0x0c, 0x0d, 0x30, 0x04, 0x0c, 0x0d, 0x20, 0x06, 0x19, 0x20, 0x05, - 0x12, 0x0d, 0x0d, 0x0e, 0x30, 0x04, 0x0d, 0x0e, 0x20, 0x06, 0x0a, 0x89, - 0x20, 0x05, 0x0e, 0x0e, 0x0f, 0x30, 0x04, 0x0e, 0x0f, 0x20, 0x06, 0x43, - 0x0b, 0x20, 0x05, 0x0f, 0x0f, 0x10, 0x10, 0x20, 0x02, 0x40, 0x01, 0x4d, - 0x0d, 0x40, 0x07, 0x11, 0x11, 0x20, 0x02, 0x40, 0x01, 0x0e, 0x40, 0x07, - 0x34, 0x12, 0x12, 0x20, 0x02, 0x40, 0x01, 0x0f, 0x40, 0x07, 0x13, 0x13, - 0xd3, 0x20, 0x02, 0x40, 0x01, 0x10, 0x40, 0x07, 0x14, 0x14, 0x20, 0x02, - 0x40, 0x01, 0x4a, 0x11, 0x40, 0x07, 0x15, 0x15, 0x70, 0x01, 0x12, 0x40, - 0x0a, 0x16, 0x52, 0x16, 0x70, 0x01, 0x13, 0x40, 0x0a, 0x17, 0x17, 0x70, - 0x01, 0x14, 0xf0, 0x40, 0x0a, 0xf9, 0xaf, 0xf1, 0xa7, 0x3f, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x64, 0x7a, 0x00, 0x11, 0x0e, 0x00, 0x00, - 0x30, 0x01, 0x2b, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x4d, 0x0c, 0x67, 0xd3, 0x00, 0x00, 0x00, - 0x02, 0x2b, 0xbb, 0x30, 0xf3, 0x30, 0xc8, 0x00, 0x30, 0xfb, 0x30, 0xb8, - 0x30, 0xe7, 0x30, 0xfc, 0x80, 0x20, 0x05, 0xfb, 0x30, 0xd0, 0x30, 0xbb, - 0x30, 0xc6, 0x90, 0x20, 0x0b, 0xeb, 0x30, 0x05, 0x38, 0x31, 0x53, 0x00, - 0x61, 0x00, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x20, 0x00, 0x00, - 0x47, 0x00, 0x65, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x45, 0x67, 0x20, 0x07, - 0x20, 0x00, 0x42, 0x20, 0x19, 0x73, 0x20, 0x01, 0x56, 0x65, 0x20, 0x1b, - 0x65, 0x20, 0x15, 0x72, 0x20, 0x1d, 0x10, 0x14, 0x10, 0x7f, 0x23, 0x00, - 0x57, 0x54, 0x4e, 0xbb, 0x6c, 0xf4, 0x5d, 0xaf, 0x01, 0x65, 0x79, 0x72, - 0x14, 0x5c, 0x3a, 0x53, 0x05, 0xfb, 0x25, 0x00, 0x38, 0xc1, 0x78, 0xc7, - 0xb8, 0xd2, 0x70, 0xc8, 0x00, 0xc0, 0xc9, 0x14, 0xbc, 0xa4, 0xc2, 0x4c, - 0xd1, 0x30, 0x74, 0xb9, 0x05, 0xdb, 0xa7, 0x0e, 0xf3, 0x7f, 0x21, 0x04, - 0x35, 0x04, 0x00, 0x3d, 0x04, 0x42, 0x04, 0x2d, 0x00, 0x14, 0x04, 0x01, - 0x36, 0x04, 0x3e, 0x04, 0x40, 0x04, 0x34, 0x20, 0x07, 0x01, 0x2d, 0x00, - 0x11, 0x04, 0x30, 0x04, 0x41, 0x20, 0x17, 0x62, 0x35, 0x20, 0x11, 0x10, - 0x1c, 0xb4, 0xff, 0x01, 0x03, 0x03, 0x20, 0x01, 0x01, 0xa4, 0x20, 0x06, - 0x05, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x2b, 0x01, 0xaf, 0x30, - 0xe9, 0x30, 0xa4, 0x30, 0xb9, 0x48, 0x1b, 0x14, 0xc1, 0x30, 0xe3, 0x28, - 0x1b, 0xc1, 0x28, 0x25, 0xcb, 0x30, 0x46, 0xb3, 0x20, 0x17, 0xbf, 0x30, - 0xa6, 0x28, 0x35, 0x04, 0xdf, 0xcf, 0x43, 0x2e, 0x00, 0x68, 0x28, 0x09, - 0x69, 0x28, 0x01, 0x38, 0x19, 0x30, 0x0d, 0x75, 0xa3, 0x28, 0x19, 0x63, - 0x20, 0x15, 0x20, 0x00, 0x4e, 0x28, 0x31, 0x30, 0x09, 0x11, 0x6f, 0x00, - 0x6c, 0x28, 0x3d, 0x20, 0x00, 0x54, 0x28, 0x35, 0x61, 0x77, 0x28, 0x43, - 0x10, 0x13, 0xb0, 0x7f, 0x4b, 0x51, 0x56, 0x8d, 0x38, 0x13, 0x00, 0x7b, - 0x5f, 0x47, 0x59, 0x3c, 0x5c, 0xe4, 0x53, 0x08, 0xc9, 0x62, 0x47, 0x95, - 0x05, 0xb8, 0x1d, 0x6c, 0xd0, 0x7c, 0x00, 0xb7, 0x74, 0xc7, 0xa4, 0xc2, - 0xb8, 0xd2, 0x98, 0x00, 0xcc, 0x58, 0xce, 0xc8, 0xb2, 0x5c, 0xcf, 0x7c, - 0x06, 0xb7, 0xc0, 0xd0, 0xb4, 0xc6, 0x05, 0x7f, 0xc5, 0x0e, 0xf3, 0x7f, - 0x1a, 0x88, 0x28, 0x09, 0x30, 0x04, 0x39, 0x48, 0x03, 0x2d, 0x00, 0x27, - 0x28, 0x04, 0x51, 0x28, 0x19, 0x47, 0x28, 0x25, 0x1d, 0x04, 0x38, 0x28, - 0x04, 0x3a, 0x28, 0x27, 0x3b, 0x28, 0x1f, 0x2d, 0x00, 0x22, 0xb4, 0x28, - 0x25, 0x43, 0x28, 0x3f, 0x10, 0x1c, 0x14, 0xff, 0x02, 0x38, 0x0c, 0x01, - 0x02, 0x80, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x59, 0x0c, 0x61, 0x8d, - 0x28, 0x17, 0x04, 0x2b, 0xbb, 0x27, 0xf9, 0x38, 0x13, 0xa2, 0x28, 0x01, - 0x11, 0xfb, 0x30, 0xb5, 0x28, 0x07, 0xc7, 0x30, 0xa3, 0x28, 0x23, 0x75, - 0xdd, 0x28, 0x2d, 0x30, 0x19, 0x05, 0xbc, 0xaf, 0x41, 0x2f, 0xb7, 0x6e, - 0x4f, 0xab, 0x82, 0x3f, 0xc5, 0x6e, 0x00, 0x64, 0x00, 0x79, 0x2f, 0xc5, - 0x50, 0xe0, 0x2f, 0xc3, 0x5f, 0xd1, 0x10, 0x14, 0x30, 0x7f, 0x23, 0x57, - 0x89, 0x5b, 0xae, 0x00, 0x59, 0x51, 0x68, 0xea, 0x8f, 0xe2, 0x6c, 0xe0, - 0x18, 0x56, 0x79, 0x72, 0x05, 0xb8, 0x13, 0x3f, 0xff, 0x38, 0xc1, 0x78, - 0x00, 0xc7, 0xb8, 0xd2, 0x64, 0xc5, 0xcc, 0xc0, 0x14, 0x1c, 0xb5, 0xec, - 0xd3, 0x30, 0x0b, 0x05, 0xd0, 0x7f, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x6a, - 0x35, 0x27, 0xef, 0x38, 0x13, 0x2d, 0x27, 0xf7, 0x3d, 0x28, 0x1b, 0x21, - 0x28, 0x04, 0x4d, 0x28, 0x01, 0x34, 0x28, 0x17, 0x2d, 0x00, 0x1f, 0xb4, - 0x28, 0x19, 0x39, 0x40, 0x1f, 0x10, 0x1c, 0x74, 0xff, 0x03, 0x38, 0x0c, - 0x02, 0x03, 0xa0, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x03, 0x03, 0x56, 0x0c, - 0x52, 0xa0, 0x28, 0x17, 0x05, 0x88, 0x17, 0xb8, 0x30, 0xe7, 0x30, 0xfc, - 0xd5, 0x20, 0x05, 0x30, 0x09, 0xf3, 0x20, 0x0d, 0xe3, 0x20, 0x0d, 0xe9, - 0x28, 0x33, 0x6a, 0xc9, 0x04, 0xe8, 0x19, 0xb8, 0x17, 0x47, 0x28, 0x13, - 0x6f, 0x2f, 0xbd, 0x67, 0xb7, 0x48, 0x1b, 0x47, 0x48, 0x2f, 0x30, 0x0b, - 0x72, 0x4f, 0xaf, 0x38, 0x27, 0x10, 0x14, 0x10, 0x7f, 0x00, 0x23, 0x57, - 0x54, 0x4e, 0xbb, 0x6c, 0xd1, 0x91, 0x0c, 0x70, 0x67, 0x70, 0x51, 0x05, - 0xf8, 0x13, 0x98, 0x17, 0x70, 0xc8, 0x00, 0xc0, 0xc9, 0xc4, 0xc9, 0x00, - 0xc8, 0x9c, 0xb7, 0x38, 0xdc, 0xb4, 0x06, 0x98, 0x17, 0x0e, 0x33, 0x7f, - 0x98, 0x17, 0x14, 0x04, 0x36, 0xaa, 0x28, 0x05, 0x40, 0x28, 0x11, 0x36, - 0x60, 0x0d, 0x38, 0x48, 0x1f, 0x36, 0x83, 0x28, 0x39, 0x40, 0x04, 0x3b, - 0x04, 0x30, 0x48, 0x2d, 0x10, 0x1b, 0xf4, 0xff, 0x28, 0x04, 0x04, 0x70, - 0x01, 0x06, 0x40, 0x0a, 0x2f, 0x0c, 0x86, 0xa8, 0x28, 0x17, 0x06, 0xa8, - 0x17, 0xa7, 0x28, 0x17, 0xe0, 0x30, 0xba, 0x8b, 0x28, 0x23, 0xa6, 0x30, - 0xa3, 0x48, 0x11, 0xef, 0x28, 0x29, 0x05, 0xb8, 0x17, 0x55, 0x4a, 0x2f, - 0xbb, 0x6d, 0x2f, 0xaf, 0x73, 0x2f, 0xbb, 0x57, 0x4f, 0xc5, 0x16, 0x64, - 0x00, 0x77, 0x2f, 0xcf, 0x72, 0x04, 0x48, 0x11, 0x10, 0x0f, 0x50, 0x7f, - 0x23, 0x00, 0x57, 0x79, 0x8a, 0xc6, 0x59, 0xaf, 0x65, 0x29, 0x01, 0x6e, - 0xb7, 0x5f, 0x83, 0x6c, 0xb7, 0x5f, 0x05, 0xf8, 0x1b, 0x80, 0x58, 0x17, - 0x1c, 0xc8, 0x84, 0xc7, 0xa4, 0xc2, 0x08, 0x07, 0xc7, 0xdc, 0xb4, 0xcc, - 0xc6, 0x05, 0xd8, 0x19, 0x0e, 0xf3, 0x7f, 0xd8, 0x17, 0x01, 0x35, 0x04, - 0x39, 0x04, 0x3c, 0x04, 0x41, 0x28, 0x25, 0x59, 0x23, 0x68, 0x15, 0x43, - 0x68, 0x2b, 0x10, 0x1c, 0x74, 0xff, 0x05, 0x05, 0x70, 0x01, 0x45, 0x02, - 0x40, 0x0a, 0x3b, 0x0c, 0x80, 0x28, 0x17, 0x07, 0xa8, 0x17, 0x40, 0xe7, - 0x28, 0x21, 0xfb, 0x30, 0xab, 0x30, 0xd4, 0x30, 0x16, 0xb9, 0x30, 0xc6, - 0x28, 0x23, 0xeb, 0x04, 0xe8, 0x11, 0x00, 0x38, 0x17, 0x6f, 0x22, 0x00, - 0x68, 0x2f, 0xbb, 0x20, 0x00, 0x43, 0x2f, 0xc5, 0x70, 0xad, 0x48, 0x21, - 0x74, 0x4f, 0xaf, 0x72, 0x2f, 0xc9, 0x0e, 0x10, 0x7f, 0x69, 0x0e, 0xe0, - 0x7f, 0x80, 0x05, 0x31, 0xff, 0x23, 0x57, 0xa6, 0x7e, 0xf0, 0x7f, 0x61, - 0x00, 0x53, 0xae, 0x76, 0xaf, 0x65, 0x79, 0x72, 0x14, 0x40, 0x5c, 0x06, - 0x58, 0x17, 0x74, 0xc8, 0x74, 0xce, 0x98, 0xd3, 0x03, 0xa4, 0xc2, 0x4c, - 0xd1, 0x74, 0xb9, 0x05, 0xd8, 0x97, 0x0e, 0xf3, 0x7f, 0xa0, 0xd8, 0x17, - 0x3e, 0x28, 0x23, 0x2d, 0x00, 0x1a, 0x04, 0x30, 0x2b, 0x04, 0x3f, 0x28, - 0x17, 0x41, 0x28, 0x2f, 0x35, 0x28, 0x15, 0x10, 0x06, 0x74, 0xff, 0x94, - 0x10, 0x05, 0x30, 0xff, 0x06, 0x06, 0x70, 0x01, 0x03, 0x40, 0x0a, 0x5f, - 0x0c, 0x50, 0x5b, 0x28, 0x17, 0x08, 0x00, 0x08, 0x17, 0xd5, 0x30, 0xa3, - 0x30, 0x16, 0xc3, 0x30, 0xb0, 0x28, 0x2b, 0xea, 0x28, 0x1b, 0x06, 0x78, - 0x17, 0x46, 0xbe, 0x2f, 0xc3, 0x67, 0x2f, 0xc3, 0x38, 0x0f, 0x04, 0x78, - 0x11, 0x10, 0x0f, 0x50, 0x7f, 0x58, 0x17, 0xf2, 0x01, 0x83, 0x3c, 0x68, - 0x79, 0x72, 0xcc, 0x91, 0x05, 0xf8, 0x15, 0x80, 0x98, 0x17, 0x3c, 0xd5, - 0xf8, 0xad, 0xb8, 0xd2, 0xac, 0xea, 0x05, 0xe8, 0x15, 0x0f, 0x13, 0x7f, - 0x00, 0x38, 0x17, 0x24, 0x28, 0x13, 0x33, 0x28, 0x2b, 0x40, 0xca, 0x28, - 0x1b, 0x10, 0x1c, 0xf4, 0xff, 0x07, 0x07, 0x70, 0x01, 0x04, 0x40, 0x0a, - 0x2b, 0x2a, 0x0c, 0x7d, 0x28, 0x17, 0x09, 0x88, 0x17, 0xe1, 0x48, 0x07, - 0xfb, 0x2d, 0x30, 0xb1, 0x28, 0x0d, 0xe8, 0x28, 0x2b, 0x06, 0x3c, 0xaf, - 0x4d, 0x2f, 0xbb, 0x15, 0x72, 0x00, 0x79, 0x6f, 0xaf, 0x79, 0x2f, 0xbd, - 0x6e, 0x10, 0x15, 0x00, 0x7f, 0x00, 0x23, 0x57, 0x9b, 0x73, 0x3d, 0x4e, - 0x61, 0x53, 0x32, 0x38, 0x6c, 0x06, 0x18, 0x13, 0x98, 0x17, 0x54, 0xba, - 0x28, 0x11, 0xcf, 0x0e, 0x74, 0xc7, 0xb8, 0xc5, 0x06, 0xb8, 0x17, 0x0e, - 0x33, 0x7f, 0x98, 0x17, 0x1c, 0xc0, 0x28, 0x21, 0x38, 0x09, 0x2d, 0x00, - 0x1a, 0x04, 0x30, 0x04, 0x65, 0x39, 0x48, 0x23, 0x10, 0x1d, 0x14, 0xff, - 0x08, 0x08, 0x70, 0x01, 0x07, 0x40, 0x0a, 0x15, 0x56, 0x0c, 0x64, 0x28, - 0x17, 0x0a, 0x88, 0x17, 0xdd, 0x28, 0x15, 0x40, 0xeb, 0x28, 0x1f, 0xab, - 0x30, 0xd4, 0x30, 0xb9, 0x30, 0x68, 0xc6, 0x40, 0x0d, 0x05, 0xfc, 0xaf, - 0x50, 0x2f, 0xbb, 0x75, 0x00, 0x6c, 0xab, 0x68, 0x17, 0x70, 0x2f, 0xab, - 0x73, 0x2f, 0xc7, 0x65, 0x2f, 0xb5, 0x3f, 0xb7, 0xb0, 0x0e, 0x10, 0x7f, - 0x69, 0x0e, 0xe0, 0x7f, 0x05, 0x31, 0xff, 0x23, 0x57, 0xdd, 0x4f, 0x00, - 0x57, 0x7f, 0x61, 0x53, 0xae, 0x76, 0xaf, 0x65, 0x0c, 0x79, 0x72, 0x14, - 0x5c, 0x05, 0xf8, 0x1d, 0x58, 0x17, 0xf4, 0xd3, 0x00, 0x74, 0xce, 0x98, - 0xd3, 0xa4, 0xc2, 0x4c, 0xd1, 0x3a, 0x74, 0xb9, 0x06, 0x98, 0x17, 0x0e, - 0x33, 0x7f, 0x98, 0x17, 0x1f, 0x28, 0x09, 0x3b, 0xaf, 0x68, 0x15, 0x3f, - 0x28, 0x1f, 0x41, 0x28, 0x2d, 0x38, 0x29, 0x10, 0x06, 0x94, 0xff, 0x10, - 0x05, 0x30, 0xff, 0x22, 0x09, 0x09, 0xd0, 0x01, 0x5f, 0x0c, 0x55, 0x28, - 0x17, 0x0b, 0x88, 0x00, 0x08, 0x17, 0xc1, 0x30, 0xe3, 0x48, 0x21, 0xba, - 0x30, 0xbf, 0x35, 0x30, 0xa6, 0x28, 0x33, 0x06, 0x78, 0x17, 0x68, 0x4f, - 0xbb, 0x6c, 0x68, 0x1b, 0x1c, 0x6f, 0x00, 0x77, 0x04, 0x6f, 0xbb, 0x10, - 0x0e, 0xf0, 0x7f, 0x58, 0x17, 0xe5, 0x67, 0x03, 0x14, 0x5c, 0xaf, 0x65, - 0x66, 0x65, 0x05, 0xf8, 0x15, 0x98, 0x17, 0x00, 0x30, 0xcc, 0xa4, 0xc2, - 0xc0, 0xd0, 0xb4, 0xc6, 0xeb, 0x05, 0xf0, 0x7f, 0x0e, 0xf3, 0x7f, 0x00, - 0x18, 0x17, 0x27, 0x28, 0x17, 0x40, 0x28, 0x21, 0x38, 0x17, 0x19, 0x30, - 0x04, 0x43, 0x28, 0x35, 0x10, 0x1c, 0xb4, 0xff, 0x0a, 0x0a, 0xd0, 0x01, - 0x15, 0x2f, 0x0c, 0x79, 0x28, 0x17, 0x0c, 0x88, 0x17, 0xd4, 0x28, 0x17, - 0x40, 0xbf, 0x28, 0x1b, 0xfb, 0x30, 0xd0, 0x30, 0xbb, 0x30, 0x68, 0xc6, - 0x48, 0x25, 0x06, 0x1c, 0xaf, 0x65, 0x6f, 0x9f, 0x20, 0x00, 0x42, 0xbc, - 0x2f, 0xc7, 0x73, 0x2f, 0xaf, 0x70, 0x11, 0x04, 0x7f, 0xb1, 0x10, 0x0e, - 0xf0, 0x7f, 0x23, 0x57, 0x00, 0x7c, 0x5f, 0x97, 0x5f, 0xf4, 0x5d, 0xaf, - 0x65, 0x08, 0x79, 0x72, 0x14, 0x5c, 0x06, 0x78, 0x17, 0x3c, 0xd5, 0x30, - 0x00, 0xd1, 0x14, 0xbc, 0xa4, 0xc2, 0x4c, 0xd1, 0x74, 0x75, 0xb9, 0x06, - 0xb8, 0x17, 0x0e, 0x13, 0x7f, 0xb8, 0x17, 0x38, 0x28, 0x1f, 0x35, 0x28, - 0x13, 0x1e, 0x2d, 0x00, 0x11, 0x28, 0x1b, 0x38, 0x17, 0x30, 0x0d, 0x10, - 0x1c, 0xd4, 0xff, 0x0b, 0x51, 0x0b, 0x70, 0x01, 0x08, 0x40, 0x0a, 0x50, - 0x0c, 0x67, 0x28, 0x17, 0x51, 0x0d, 0x88, 0x17, 0xc8, 0x28, 0x17, 0xde, - 0x30, 0xb9, 0x28, 0x21, 0x05, 0xed, 0x30, 0xa6, 0x30, 0xe9, 0x28, 0x2d, - 0xc9, 0x06, 0x08, 0x17, 0x44, 0x54, 0x2f, 0xa5, 0x6f, 0x00, 0x6d, 0x48, - 0x11, 0x20, 0x00, 0x51, 0x4c, 0x4f, 0xa5, 0x6c, 0x2f, 0xcf, 0x6e, 0x00, - 0x64, 0x10, 0x14, 0x80, 0x7f, 0x00, 0x23, 0x57, 0x58, 0x62, 0x6c, 0x9a, - 0xaf, 0x65, 0x0c, 0x1b, 0x6d, 0x70, 0x51, 0x06, 0x18, 0x15, 0x78, 0x17, - 0xa0, 0xd1, 0x00, 0x38, 0xba, 0xa4, 0xc2, 0x64, 0xb8, 0x9c, 0xb7, 0x38, - 0xdc, 0xb4, 0x06, 0x98, 0x17, 0x0e, 0x33, 0x7f, 0x98, 0x17, 0x22, 0x04, - 0x3e, 0x22, 0x04, 0x3c, 0x48, 0x0f, 0x2d, 0x00, 0x1b, 0x20, 0x0b, 0x43, - 0x2c, 0x04, 0x3b, 0x48, 0x33, 0x34, 0x04, 0xc8, 0x19, 0x10, 0x16, 0xf4, - 0xff, 0x0c, 0x0c, 0xa2, 0x70, 0x01, 0x0b, 0x40, 0x0a, 0x35, 0x0c, 0x79, - 0x28, 0x17, 0x0e, 0xa0, 0x00, 0x28, 0x17, 0xdf, 0x28, 0x11, 0xeb, 0x30, - 0xa2, 0x30, 0xa4, 0xd5, 0x05, 0x48, 0x1d, 0x00, 0x98, 0x17, 0x4d, 0x2f, - 0xc7, 0x64, 0x28, 0x11, 0x6c, 0x2f, 0xc5, 0x1e, 0x20, 0x00, 0x49, 0x2f, - 0xbd, 0x04, 0x38, 0x23, 0x10, 0x0e, 0xf0, 0x7f, 0x78, 0x17, 0x73, 0x01, - 0x7c, 0xb7, 0x5f, 0x14, 0x5c, 0x7e, 0x82, 0x05, 0xf8, 0x1d, 0x80, 0xb8, - 0x17, 0xf8, 0xbb, 0xe4, 0xb4, 0x44, 0xc5, 0x7c, 0x71, 0xc7, 0x05, 0xb8, - 0x1d, 0x0e, 0xf3, 0x7f, 0x00, 0x58, 0x17, 0x1c, 0x04, 0x38, 0x28, 0x0f, - 0x46, 0x3b, 0x28, 0x2d, 0x10, 0x04, 0x39, 0x04, 0xc8, 0x1f, 0x10, 0x16, - 0xf4, 0xff, 0x0d, 0x51, 0x0d, 0x70, 0x01, 0x0c, 0x40, 0x0a, 0x50, 0x0c, - 0x55, 0x28, 0x17, 0x00, 0x0f, 0x2b, 0xc8, 0x30, 0xea, 0x30, 0xcb, 0x30, - 0x14, 0xc6, 0x30, 0xa3, 0x28, 0x1b, 0xd1, 0x28, 0x0f, 0xe1, 0x30, 0x5c, - 0xc3, 0x48, 0x27, 0xdd, 0x28, 0x17, 0x38, 0x31, 0x04, 0xfd, 0x41, 0x54, - 0x00, 0x55, 0x72, 0x4f, 0xaf, 0x69, 0x2f, 0xb1, 0x79, 0x2f, 0xb3, 0x50, - 0x2f, 0xbf, 0x56, 0x6c, 0x2f, 0xb3, 0x65, 0x2f, 0xc1, 0x74, 0x2f, 0xbd, - 0x30, 0x11, 0x6f, 0xc0, 0x6f, 0xd1, 0x10, 0x14, 0x30, 0x7f, 0x79, 0x72, - 0xcc, 0x91, 0x3c, 0x5c, 0x00, 0x82, 0x84, 0x15, 0x5e, 0x14, 0x5c, 0x85, - 0x68, 0x00, 0x58, 0x62, 0xe2, 0x6c, 0xe0, 0x56, 0x79, 0x72, 0x80, 0x05, - 0x98, 0x1b, 0xb8, 0xd2, 0xac, 0xb9, 0xc8, 0xb2, 0xf0, 0x00, 0xd2, 0x30, - 0xd3, 0x38, 0xba, 0xa0, 0xd1, 0xec, 0x71, 0xd3, 0x38, 0x25, 0x05, 0xb8, - 0x97, 0x0e, 0xf3, 0x7f, 0x22, 0x04, 0x40, 0x28, 0x03, 0x51, 0x3d, 0x28, - 0x07, 0x42, 0x28, 0x0b, 0x2d, 0x00, 0x1f, 0x28, 0x19, 0x56, 0x3b, 0x28, - 0x1f, 0x35, 0x28, 0x2b, 0x42, 0x28, 0x29, 0x30, 0x11, 0x3e, 0xe4, 0x28, - 0x1b, 0x38, 0x3b, 0x10, 0x1c, 0x34, 0xff, 0x0e, 0x0e, 0xd0, 0x01, 0x4a, - 0x0c, 0x62, 0x5e, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x01, 0x03, 0x03, 0x20, - 0x01, 0x01, 0xa2, 0x20, 0x06, 0x05, 0x20, 0x05, 0x01, 0x01, 0x02, 0x30, - 0x04, 0x01, 0x41, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x03, 0x30, - 0x04, 0x28, 0x02, 0x03, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x03, 0x03, 0x04, - 0x52, 0x04, 0x70, 0x01, 0x06, 0x40, 0x0a, 0x05, 0x05, 0x70, 0x01, 0x02, - 0x94, 0x40, 0x0a, 0x06, 0x06, 0x70, 0x01, 0x03, 0x40, 0x0a, 0x07, 0x07, - 0xa6, 0x70, 0x01, 0x04, 0x40, 0x0a, 0x08, 0x08, 0x70, 0x01, 0x50, 0x0a, - 0x09, 0x49, 0x09, 0xd0, 0x01, 0x0a, 0x0a, 0xd0, 0x01, 0x0b, 0x0b, 0x70, - 0x01, 0x4f, 0x08, 0x40, 0x0a, 0x0c, 0x0c, 0x70, 0x01, 0x50, 0x0a, 0xf8, - 0xff, 0xf0, 0xf7, 0x80, 0x3f, 0xec, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x2c, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xf4, 0x09, 0xa0, 0xd4, 0x00, 0x00, 0x00, - 0x01, 0x2c, 0xbb, 0x30, 0xf3, 0x30, 0xc8, 0x01, 0x30, 0xeb, 0x30, 0xb7, - 0x30, 0xa2, 0x30, 0x06, 0x38, 0x21, 0x00, 0x53, 0x00, 0x74, 0x00, 0x2e, - 0x00, 0x20, 0x00, 0x00, 0x4c, 0x00, 0x75, 0x00, 0x63, 0x00, 0x69, 0x00, - 0x54, 0x61, 0x06, 0x00, 0x7f, 0x61, 0x20, 0x75, 0x6e, 0x20, 0x85, 0x65, - 0x00, 0x5b, 0x2d, 0x80, 0x85, 0x65, 0x0d, 0xc0, 0xff, 0x30, 0xfd, 0x61, - 0x06, 0x61, 0x83, 0x00, 0x10, 0x7f, 0x40, 0xed, 0x05, 0xc2, 0x03, 0x23, - 0x57, 0x62, 0x53, 0x7f, 0x89, 0x20, 0x9a, 0x4e, 0x06, 0x7b, 0x1d, 0x38, - 0xc1, 0x78, 0xc7, 0xb8, 0x01, 0xd2, 0xe8, 0xb8, 0xdc, 0xc2, 0x44, 0xc5, - 0x06, 0x53, 0x7f, 0xd0, 0x72, 0xff, 0x07, 0x31, 0xff, 0xfa, 0x06, 0x04, - 0x03, 0x21, 0x04, 0x35, 0x04, 0x00, 0x3d, 0x04, 0x42, 0x04, 0x2d, 0x00, - 0x1b, 0x04, 0x00, 0x4e, 0x04, 0x41, 0x04, 0x38, 0x04, 0x4f, 0x04, 0xcf, - 0x0d, 0xd4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x01, 0x01, 0xd0, 0x01, 0x58, - 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x2d, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x56, 0x09, 0x78, 0xd4, 0x00, 0x00, 0x00, - 0x01, 0x2d, 0xbb, 0x30, 0xf3, 0x30, 0xc8, 0x30, 0x30, 0xd3, 0x20, 0x05, - 0x50, 0x09, 0xfb, 0x30, 0xb0, 0x30, 0x00, 0xec, 0x30, 0xca, 0x30, 0xc7, - 0x30, 0xa3, 0x30, 0x60, 0xfc, 0x20, 0x1b, 0x04, 0xf8, 0x35, 0x53, 0x00, - 0x74, 0x00, 0x2e, 0x00, 0x00, 0x20, 0x00, 0x56, 0x00, 0x69, 0x00, 0x6e, - 0x0a, 0x00, 0x63, 0x00, 0x65, 0x20, 0x05, 0x74, 0x20, 0x0f, 0x61, 0xa2, - 0x20, 0x0d, 0x64, 0x20, 0x17, 0x74, 0x00, 0x68, 0x20, 0x13, 0x20, 0x0b, - 0x00, 0x47, 0x00, 0x72, 0x40, 0x1b, 0x61, 0x20, 0x15, 0x30, 0x29, 0x14, - 0x65, 0x00, 0x73, 0x03, 0x60, 0x7f, 0x61, 0x40, 0x79, 0x74, 0x00, 0x5a, - 0x2d, 0xe0, 0x83, 0x2d, 0x20, 0x8b, 0x30, 0x15, 0x6c, 0x40, 0x6b, 0x2d, - 0xdd, 0x04, 0x60, 0x81, 0x00, 0x70, 0xff, 0x75, 0x60, 0xff, 0x30, 0xed, - 0x00, 0x50, 0xff, 0x6e, 0x03, 0xe0, 0xff, 0xfe, 0x00, 0x11, 0x83, 0x00, - 0x51, 0x77, 0x03, 0xf1, 0xff, 0x31, 0xe9, 0x51, 0xff, 0x71, 0xfd, 0x31, - 0xef, 0x79, 0xaf, 0x22, 0x13, 0x6c, 0x22, 0x05, 0x73, 0x61, 0xfb, 0x32, - 0x0f, 0x71, 0xfb, 0x30, 0x15, 0x80, 0x03, 0x7a, 0xcd, 0x23, 0x57, 0x87, - 0x65, 0xee, 0x68, 0x79, 0x00, 0x72, 0x8c, 0x54, 0x3c, 0x68, 0x97, 0x67, - 0xb3, 0x0c, 0x7e, 0x01, 0x4e, 0xaf, 0x03, 0xf0, 0xe2, 0x00, 0xcb, 0x78, - 0x38, 0xc1, 0x00, 0x78, 0xc7, 0xb8, 0xd2, 0x48, 0xbe, 0x3c, 0xc1, 0x00, - 0xb8, 0xd2, 0x20, 0x00, 0xf8, 0xad, 0x08, 0xb8, 0x0e, 0x98, 0xb0, 0x18, - 0xb5, 0x05, 0x9b, 0xab, 0x00, 0xd1, 0xff, 0x31, 0x99, 0x64, 0xfc, 0x04, - 0xe3, 0x7f, 0x73, 0xfd, 0xb1, 0xfd, 0x33, 0xf1, 0x05, 0x11, 0xfb, 0x3d, - 0x1a, 0x21, 0x04, 0x00, 0x35, 0x04, 0x3d, 0x04, 0x42, 0x04, 0x2d, 0x00, - 0x14, 0x12, 0x04, 0x38, 0x20, 0x09, 0x41, 0x60, 0x0f, 0x20, 0x00, 0x44, - 0x38, 0x20, 0x03, 0x13, 0x04, 0x40, 0x40, 0x1f, 0x30, 0x04, 0x4c, 0x34, - 0x40, 0x1d, 0x4b, 0x04, 0x0c, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x01, - 0x01, 0xf0, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0xc4, 0x59, 0x00, 0x11, 0x0a, 0x00, 0x00, - 0x30, 0x01, 0x2e, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x25, 0x04, 0xc6, 0xd8, 0x00, 0x00, 0x00, - 0x02, 0x2e, 0xd1, 0x30, 0xe9, 0x30, 0xde, 0x04, 0x30, 0xea, 0x30, 0xdc, - 0x30, 0x06, 0x58, 0x1f, 0x50, 0x00, 0x14, 0x61, 0x00, 0x72, 0x20, 0x03, - 0x6d, 0x40, 0x07, 0x69, 0x00, 0x10, 0x62, 0x00, 0x6f, 0x10, 0x15, 0xc0, - 0x7f, 0x15, 0x5e, 0xc9, 0x62, 0x00, 0x6c, 0x9a, 0xcc, 0x91, 0x5a, 0x53, - 0x02, 0x5e, 0x80, 0x06, 0x3b, 0x21, 0x0c, 0xd3, 0x7c, 0xb7, 0xc8, 0xb9, - 0xac, 0x10, 0xb9, 0xf4, 0xbc, 0x10, 0x06, 0x53, 0x7f, 0x1f, 0x04, 0x30, - 0x04, 0x50, 0x40, 0x20, 0x03, 0x3c, 0x40, 0x07, 0x38, 0x04, 0x31, 0x04, - 0x22, 0x3e, 0x04, 0x10, 0x1d, 0xb4, 0xff, 0x01, 0x07, 0x07, 0x20, 0x01, - 0x01, 0xa4, 0x20, 0x06, 0x08, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, - 0x2e, 0x00, 0xd6, 0x30, 0xed, 0x30, 0xb3, 0x30, 0xdd, 0x30, 0x14, 0xf3, - 0x30, 0xc9, 0x06, 0x48, 0x19, 0x42, 0x28, 0x15, 0x6f, 0x00, 0x51, 0x6b, - 0x28, 0x0d, 0x70, 0x28, 0x11, 0x6e, 0x00, 0x64, 0x05, 0xe8, 0x17, 0x80, - 0x10, 0x0e, 0xf0, 0x7f, 0x03, 0x5e, 0x57, 0x7f, 0xd1, 0x79, 0xec, 0x04, - 0x84, 0x1a, 0x59, 0x3a, 0x53, 0x06, 0x48, 0x17, 0xbe, 0x5c, 0x01, 0xb8, - 0x54, 0xcf, 0xf0, 0xd3, 0xc4, 0xb3, 0x06, 0x5f, 0xb7, 0xa2, 0x0e, 0xf3, - 0x7f, 0x11, 0x28, 0x15, 0x3e, 0x04, 0x3a, 0x28, 0x0d, 0x3f, 0x8d, 0x28, - 0x11, 0x3d, 0x04, 0x34, 0x05, 0xe8, 0x17, 0x10, 0x16, 0xf4, 0xff, 0x02, - 0x38, 0x0c, 0x20, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x9a, - 0x20, 0x03, 0xea, 0x28, 0x17, 0x04, 0x2e, 0xb3, 0x30, 0xe1, 0x02, 0x30, - 0xa6, 0x30, 0xa3, 0x30, 0xcd, 0x06, 0x48, 0x15, 0x00, 0x28, 0x00, 0x43, - 0x2f, 0x9f, 0x6d, 0x2f, 0xad, 0x65, 0x00, 0x77, 0xa8, 0x2f, 0xad, 0x6a, - 0x28, 0x19, 0x65, 0x10, 0x15, 0xc0, 0x7f, 0xd1, 0x79, 0xd8, 0x04, 0x9e, - 0xe6, 0x97, 0xb7, 0x8b, 0x06, 0x58, 0x15, 0x00, 0x00, 0x00, 0x54, 0xcf, - 0x54, 0xba, 0xa0, 0xbc, 0x74, 0xc7, 0x2a, 0x08, 0xb1, 0x10, 0x06, 0x53, - 0x7f, 0x1a, 0x28, 0x15, 0x3c, 0x20, 0x01, 0x35, 0x03, 0x04, 0x32, 0x04, - 0x38, 0x04, 0x39, 0x28, 0x19, 0x10, 0x1d, 0xd4, 0xff, 0x4a, 0x03, 0x38, - 0x0c, 0x02, 0x03, 0x20, 0x06, 0x03, 0x20, 0x05, 0x03, 0x0a, 0x03, 0x2f, - 0x04, 0xd5, 0x28, 0x17, 0x05, 0x28, 0x17, 0xed, 0x0e, 0x30, 0xcb, 0x30, - 0xfc, 0x06, 0x68, 0x15, 0x58, 0x17, 0x3f, 0xb1, 0x6e, 0xe0, 0x28, 0x15, - 0x05, 0xd8, 0x11, 0x10, 0x0f, 0x50, 0x7f, 0xd1, 0x79, 0x57, 0x7f, 0x3c, - 0x61, 0x5c, 0x06, 0x78, 0x15, 0x38, 0x17, 0x5c, 0xb8, 0xc8, 0xb2, 0x06, - 0x73, 0x7d, 0xd6, 0x0f, 0x13, 0x7f, 0x38, 0x17, 0x40, 0x28, 0x1b, 0x3d, - 0x28, 0x15, 0x10, 0x1e, 0x34, 0xff, 0x04, 0x94, 0x38, 0x0c, 0x03, 0x04, - 0x20, 0x06, 0x04, 0x20, 0x05, 0x04, 0x04, 0x00, 0x2f, 0x04, 0xf4, 0xd7, - 0x00, 0x00, 0x06, 0x2e, 0x41, 0xde, 0x28, 0x17, 0xa6, 0x30, 0xa3, 0x30, - 0xcd, 0x06, 0x68, 0x19, 0x1c, 0x4d, 0x00, 0x61, 0x48, 0x17, 0x06, 0x5f, - 0xad, 0x10, 0x0f, 0x10, 0x7f, 0x6c, 0x9a, 0x02, 0x57, 0x7f, 0xe6, 0x97, - 0xb7, 0x8b, 0x06, 0x78, 0x19, 0xc8, 0x00, 0xb9, 0x5c, 0xb8, 0xa0, 0xbc, - 0x74, 0xc7, 0x08, 0x45, 0xb1, 0x10, 0x06, 0x53, 0x7f, 0x1c, 0x04, 0x30, - 0x48, 0x17, 0x32, 0x28, 0x17, 0x69, 0x39, 0x28, 0x1d, 0x10, 0x1d, 0xf4, - 0xff, 0x05, 0x38, 0x0c, 0x04, 0x05, 0x20, 0x06, 0x40, 0x05, 0x20, 0x05, - 0x05, 0x05, 0xe9, 0x03, 0x91, 0xd9, 0x00, 0x00, 0x00, 0x07, 0x2e, 0xcb, - 0x30, 0xc3, 0x30, 0x05, 0xb1, 0x30, 0xea, 0x30, 0xfc, 0x06, 0x68, 0x17, - 0x4e, 0x2f, 0xa7, 0x16, 0x63, 0x00, 0x6b, 0x2f, 0xab, 0x72, 0x06, 0x4f, - 0xb1, 0x10, 0x0e, 0xf0, 0x7f, 0x3c, 0x06, 0x5c, 0x4b, 0x51, 0xcc, 0x91, - 0x06, 0x78, 0x15, 0x28, 0x17, 0xb2, 0x0d, 0x00, 0xcf, 0xac, 0xb9, 0x06, - 0x70, 0x7d, 0x0f, 0x13, 0x7f, 0x1d, 0x28, 0x0f, 0x56, 0x3a, 0x20, 0x01, - 0x35, 0x28, 0x1d, 0x38, 0x06, 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, 0x06, - 0x94, 0x38, 0x0c, 0x05, 0x06, 0x20, 0x06, 0x06, 0x20, 0x05, 0x06, 0x06, - 0x00, 0x3b, 0x04, 0x7b, 0xd7, 0x00, 0x00, 0x08, 0x2e, 0x1a, 0xd1, 0x30, - 0xe9, 0x06, 0x68, 0x11, 0x5f, 0xff, 0x50, 0x4f, 0xaf, 0x61, 0x84, 0x10, - 0x16, 0x80, 0x7f, 0x15, 0x5e, 0xc9, 0x62, 0x06, 0x98, 0x15, 0x00, 0x00, - 0x08, 0x0c, 0xd3, 0x7c, 0xb7, 0x10, 0x06, 0xb3, 0x7f, 0x1f, 0x04, 0x30, - 0xb4, 0x28, 0x11, 0x30, 0x06, 0x28, 0x11, 0x10, 0x17, 0x54, 0xff, 0x07, - 0x38, 0x0c, 0x06, 0x07, 0xa0, 0x20, 0x06, 0x07, 0x20, 0x05, 0x07, 0x07, - 0xf8, 0x03, 0xc3, 0x02, 0xd8, 0x00, 0x00, 0x09, 0x2e, 0xb5, 0x28, 0x17, - 0xde, 0x0a, 0x30, 0xc3, 0x30, 0xab, 0x06, 0x68, 0x1d, 0x53, 0x68, 0x17, - 0x6d, 0xb8, 0x28, 0x1f, 0x63, 0x2f, 0xb9, 0x05, 0xf8, 0x21, 0x10, 0x0e, - 0xf0, 0x7f, 0x28, 0x84, 0xc9, 0x04, 0x62, 0x6c, 0x9a, 0x61, 0x53, 0x06, - 0x78, 0x1b, 0xac, 0xc0, 0x03, 0x7c, 0xb7, 0xc8, 0xb9, 0x74, 0xce, 0x06, - 0x7b, 0x9b, 0x0e, 0xf3, 0x7f, 0x57, 0x21, 0x68, 0x17, 0x3c, 0x28, 0x1f, - 0x3a, 0x20, 0x01, 0x05, 0xf8, 0x21, 0x10, 0x16, 0xf4, 0xff, 0x28, 0x08, - 0x08, 0x70, 0x01, 0x09, 0x40, 0x0a, 0x1f, 0x04, 0x8f, 0x80, 0x28, 0x17, - 0x0a, 0x2e, 0xb7, 0x30, 0xd1, 0x30, 0xea, 0x02, 0x30, 0xa6, 0x30, 0xa3, - 0x30, 0xcb, 0x06, 0x48, 0x19, 0x53, 0x0a, 0x00, 0x69, 0x00, 0x70, 0x2f, - 0xb3, 0x6c, 0x20, 0x07, 0x77, 0xb0, 0x20, 0x0b, 0x6e, 0x20, 0x0f, 0x10, - 0x15, 0xb0, 0x7f, 0x7f, 0x89, 0x15, 0x5e, 0x02, 0xcc, 0x91, 0xf4, 0x7e, - 0x3c, 0x5c, 0x06, 0x58, 0x19, 0xdc, 0x00, 0xc2, 0x14, 0xd3, 0xac, 0xb9, - 0x44, 0xbe, 0xc8, 0x60, 0xb2, 0x06, 0x7b, 0x97, 0x0e, 0xd3, 0x7f, 0x21, - 0x04, 0x38, 0x04, 0x3f, 0x8b, 0x28, 0x1b, 0x3b, 0x04, 0x43, 0x20, 0x09, - 0x3d, 0x20, 0x0d, 0x10, 0x1d, 0xd4, 0xff, 0x28, 0x09, 0x09, 0x70, 0x01, - 0x0a, 0x40, 0x0a, 0xb2, 0x03, 0x5a, 0x02, 0xd7, 0x00, 0x00, 0x0b, 0x2e, - 0xef, 0x28, 0x0f, 0xab, 0xde, 0x06, 0x48, 0x11, 0x5f, 0xff, 0x57, 0x2f, - 0xaf, 0x38, 0x0b, 0x06, 0x1f, 0xa9, 0x10, 0x0f, 0x50, 0x7f, 0xe6, 0x06, - 0x74, 0x3c, 0x5c, 0x61, 0x53, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x14, 0x05, - 0xbc, 0xc8, 0xb2, 0x74, 0xce, 0x10, 0x06, 0x93, 0x7f, 0x12, 0x28, 0x13, - 0xb2, 0x38, 0x0d, 0x3a, 0x28, 0x1b, 0x10, 0x1e, 0x34, 0xff, 0x0a, 0x0a, - 0x70, 0x01, 0x02, 0x84, 0x40, 0x0a, 0x0d, 0x04, 0xba, 0xd8, 0x00, 0x3f, - 0xff, 0x01, 0x07, 0x54, 0x07, 0x20, 0x01, 0x01, 0x20, 0x06, 0x08, 0x20, - 0x05, 0x01, 0x01, 0x48, 0x02, 0x30, 0x04, 0x01, 0x02, 0x40, 0x06, 0x02, - 0x02, 0x02, 0x25, 0x02, 0x03, 0x30, 0x04, 0x02, 0x03, 0x20, 0x06, 0x03, - 0x20, 0x05, 0x12, 0x03, 0x03, 0x04, 0x30, 0x04, 0x03, 0x04, 0x20, 0x06, - 0x04, 0x89, 0x20, 0x05, 0x04, 0x04, 0x05, 0x30, 0x04, 0x04, 0x05, 0x20, - 0x06, 0x44, 0x05, 0x20, 0x05, 0x05, 0x05, 0x06, 0x30, 0x04, 0x05, 0x06, - 0xa2, 0x20, 0x06, 0x06, 0x20, 0x05, 0x06, 0x06, 0x07, 0x30, 0x04, 0x06, - 0x5a, 0x07, 0x20, 0x06, 0x07, 0x20, 0x05, 0x20, 0x65, 0x08, 0x70, 0x01, - 0x09, 0xf0, 0x50, 0x05, 0xe8, 0xbf, 0xf0, 0xb7, 0x3f, 0xff, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0x3c, 0x72, 0x00, 0x11, 0x0d, 0x00, 0x00, 0x30, 0x01, 0x2f, 0x14, - 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, - 0xfd, 0x92, 0x07, 0x42, 0xd4, 0x00, 0x00, 0x00, 0x02, 0x2f, 0xdd, 0x30, - 0xfc, 0x30, 0xc8, 0x02, 0x30, 0xfb, 0x30, 0xaa, 0x30, 0xd6, 0x20, 0x05, - 0xb9, 0x01, 0x30, 0xda, 0x30, 0xa4, 0x30, 0xf3, 0x30, 0x05, 0x98, 0x2b, - 0x00, 0x50, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x74, 0x00, 0x50, 0x2d, 0x20, - 0x07, 0x66, 0x20, 0x05, 0x53, 0x00, 0x70, 0x00, 0x04, 0x61, 0x00, 0x69, - 0x00, 0x6e, 0x05, 0xe0, 0x7f, 0x20, 0x00, 0x01, 0x64, 0x00, 0x27, 0x00, - 0x45, 0x00, 0x73, 0x40, 0x7f, 0x5a, 0x67, 0x20, 0x7f, 0x65, 0x0d, 0xe0, - 0xff, 0x31, 0x7f, 0x20, 0x06, 0x21, 0x7f, 0x75, 0xdb, 0x21, 0x69, 0x32, - 0x01, 0x6f, 0x21, 0x83, 0x71, 0x7f, 0xf1, 0x22, 0x03, 0x05, 0x5a, 0xaf, - 0x00, 0x7f, 0x89, 0xed, 0x73, 0x59, 0x72, 0x2f, 0x6e, 0x20, 0x02, 0x5e, - 0x06, 0x5b, 0x1f, 0xec, 0xd3, 0xb8, 0xd2, 0x24, 0x00, 0xc6, 0x0c, 0xbe, - 0xa4, 0xc2, 0x98, 0xd3, 0x78, 0x7b, 0xc7, 0x06, 0x1b, 0xa3, 0x07, 0x11, - 0xff, 0x53, 0xff, 0x31, 0xfd, 0x64, 0x23, 0x73, 0x92, 0x03, 0x10, 0x6e, - 0x00, 0x68, 0x05, 0x22, 0x05, 0x1f, 0x04, 0x3e, 0x04, 0x00, 0x40, 0x04, - 0x42, 0x04, 0x2d, 0x00, 0x3e, 0x04, 0x40, 0x44, 0x20, 0x05, 0x21, 0x04, - 0x3f, 0x04, 0x35, 0x04, 0x0c, 0x39, 0x04, 0x3d, 0x04, 0x0d, 0xd4, 0xff, - 0x10, 0x0e, 0x70, 0x7f, 0x01, 0x06, 0x54, 0x06, 0x20, 0x01, 0x01, 0x20, - 0x06, 0x07, 0x20, 0x05, 0x01, 0x01, 0x80, 0x58, 0x17, 0x03, 0x2f, 0xa2, - 0x30, 0xea, 0x30, 0xde, 0xd1, 0x05, 0xa8, 0x07, 0xff, 0xff, 0x41, 0x28, - 0x15, 0x69, 0x00, 0x6d, 0x05, 0x86, 0x07, 0x81, 0x10, 0x0f, 0xf0, 0x7f, - 0x3f, 0x96, 0xcc, 0x91, 0x6c, 0x9a, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, - 0x44, 0xc5, 0xac, 0xb9, 0xc8, 0xb9, 0xa0, 0x10, 0x06, 0x93, 0x7f, 0x10, - 0x28, 0x15, 0x38, 0x04, 0x3c, 0x04, 0x30, 0xd2, 0x05, 0x68, 0x07, 0x10, - 0x17, 0xf4, 0xff, 0x02, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, - 0x02, 0x02, 0x02, 0x8f, 0x07, 0x6c, 0x28, 0x17, 0x04, 0x00, 0x2f, 0xab, - 0x30, 0xed, 0x30, 0xcb, 0x30, 0xde, 0x55, 0x5d, 0x06, 0x78, 0x19, 0x43, - 0x2f, 0x9d, 0x72, 0x2f, 0xb3, 0x6e, 0x2f, 0x23, 0x80, 0x10, 0x16, 0x30, - 0x7f, 0x61, 0x53, 0x57, 0x7f, 0x3c, 0x5c, 0xe1, 0x40, 0x90, 0x06, 0x7b, - 0x19, 0x74, 0xce, 0x5c, 0xb8, 0xc8, 0xb2, 0x0a, 0x20, 0x00, 0xfc, 0xc8, - 0x10, 0x06, 0x53, 0x7f, 0x1a, 0x28, 0x11, 0x40, 0x0d, 0x04, 0x3e, 0x04, - 0x3d, 0x28, 0x1d, 0x10, 0x1e, 0x34, 0xff, 0x03, 0x38, 0x0c, 0x28, 0x02, - 0x03, 0x20, 0x06, 0x03, 0x20, 0x05, 0x03, 0x03, 0x7a, 0x20, 0x07, 0x54, - 0x28, 0x17, 0x05, 0x2f, 0xde, 0x30, 0xb8, 0x35, 0x30, 0xe3, 0x28, 0x1b, - 0x06, 0x78, 0x19, 0x4d, 0x2f, 0xa9, 0x79, 0x68, 0x1b, 0x81, 0x10, 0x16, - 0x30, 0x7f, 0x6c, 0x9a, 0x9a, 0x4e, 0x57, 0x7f, 0x06, 0x98, 0x17, 0x03, - 0xc8, 0xb9, 0x7c, 0xc5, 0x5c, 0xb8, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, - 0x46, 0x1c, 0x28, 0x17, 0x39, 0x04, 0x4f, 0x48, 0x1b, 0x10, 0x1e, 0x34, - 0xff, 0x04, 0x94, 0x38, 0x0c, 0x03, 0x04, 0x20, 0x06, 0x04, 0x20, 0x05, - 0x04, 0x04, 0x10, 0x43, 0x07, 0xa0, 0x28, 0x17, 0x06, 0x2f, 0xca, 0x30, - 0x11, 0xea, 0x30, 0xd0, 0x06, 0x88, 0x15, 0x00, 0x00, 0x4e, 0x4f, 0xaf, - 0x18, 0x69, 0x00, 0x76, 0x2f, 0xb7, 0x10, 0x16, 0x30, 0x7f, 0xb3, 0x7e, - 0xcc, 0x10, 0x91, 0xe6, 0x74, 0x06, 0x98, 0x17, 0x98, 0xb0, 0xac, 0xb9, - 0x34, 0x14, 0xbc, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x1d, 0x28, 0x17, - 0x40, 0x04, 0x1a, 0x38, 0x04, 0x32, 0x28, 0x1f, 0x10, 0x1e, 0x34, 0xff, - 0x05, 0x38, 0x0c, 0x04, 0x50, 0x05, 0x20, 0x06, 0x05, 0x20, 0x05, 0x05, - 0x05, 0x53, 0x07, 0x40, 0x7e, 0x28, 0x17, 0x07, 0x2f, 0xbb, 0x30, 0xf3, - 0x30, 0x05, 0xc8, 0x30, 0xfb, 0x30, 0xa2, 0x20, 0x07, 0xc9, 0x28, 0x23, - 0x14, 0xe5, 0x30, 0xfc, 0x05, 0xc8, 0x25, 0x53, 0x2f, 0xaf, 0x69, 0x00, - 0x01, 0x6e, 0x00, 0x74, 0x00, 0x20, 0x00, 0x41, 0x20, 0x07, 0x44, 0x64, - 0x2f, 0xb9, 0x65, 0x00, 0x77, 0x10, 0x15, 0x80, 0x7f, 0x23, 0x57, 0x02, - 0x89, 0x5b, 0xb7, 0x5f, 0x81, 0x9c, 0x06, 0x78, 0x19, 0x38, 0x00, 0xc1, - 0x78, 0xc7, 0xb8, 0xd2, 0x64, 0xc5, 0xdc, 0x18, 0xb4, 0xe8, 0xb8, 0x06, - 0x38, 0x1d, 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x35, 0x00, 0x04, 0x39, 0x04, - 0x3d, 0x04, 0x42, 0x04, 0x20, 0x2b, 0x00, 0x2d, 0x20, 0x07, 0x34, 0x28, - 0x25, 0x4e, 0x05, 0xa8, 0x21, 0x10, 0x16, 0xf4, 0xff, 0x15, 0x06, 0x07, - 0x07, 0x20, 0x01, 0x06, 0x20, 0x06, 0x0c, 0x20, 0x05, 0x05, 0x06, 0x06, - 0x86, 0x07, 0x8b, 0x28, 0x17, 0x08, 0x88, 0x17, 0x07, 0xc7, 0x30, 0xd3, - 0x30, 0xc3, 0x28, 0x19, 0x05, 0xb8, 0x13, 0xf8, 0x17, 0x54, 0x44, 0x2f, - 0xbb, 0x76, 0x2f, 0xbb, 0x64, 0x10, 0x15, 0xa0, 0x7f, 0x23, 0x57, 0x0c, - 0x34, 0x62, 0xf4, 0x7e, 0x06, 0x78, 0x15, 0x78, 0x17, 0x70, 0xb3, 0x03, - 0x74, 0xc7, 0x44, 0xbe, 0xdc, 0xb4, 0x06, 0x18, 0x19, 0x0e, 0xf3, 0x7f, - 0x80, 0xb8, 0x17, 0x14, 0x04, 0x4d, 0x04, 0x32, 0x04, 0x38, 0xc5, 0x28, - 0x1b, 0x10, 0x1d, 0x94, 0xff, 0x07, 0x08, 0x08, 0x20, 0x01, 0x07, 0x20, - 0x06, 0x41, 0x0a, 0x20, 0x05, 0x07, 0x07, 0xae, 0x07, 0x9d, 0x28, 0x17, - 0x41, 0x09, 0x88, 0x17, 0xb8, 0x30, 0xe7, 0x30, 0xfc, 0x20, 0x05, 0xab, - 0x06, 0xb8, 0x17, 0x47, 0x2f, 0xa9, 0x6f, 0x2f, 0xaf, 0x67, 0x2f, 0xb1, - 0x10, 0x15, 0x70, 0x7f, 0x02, 0x23, 0x57, 0x54, 0x4e, 0xbb, 0x6c, 0x07, - 0x08, 0x17, 0xc8, 0x38, 0xc0, 0xc9, 0x06, 0x18, 0x13, 0x0f, 0x33, 0x7f, - 0xd8, 0x17, 0x36, 0x04, 0x3e, 0x2c, 0x04, 0x40, 0x28, 0x17, 0x36, 0x05, - 0x88, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x08, 0x09, 0x58, 0x09, 0x20, 0x01, - 0x08, 0x40, 0x06, 0x38, 0x22, 0x8f, 0x07, 0x5a, 0xa8, 0x28, 0x17, 0x0a, - 0x88, 0x17, 0xd1, 0x28, 0x1d, 0xea, 0x30, 0xc3, 0x35, 0x30, 0xaf, 0x05, - 0xe8, 0x19, 0xbf, 0xaf, 0x50, 0x2f, 0xbb, 0x74, 0x28, 0x17, 0x04, 0x69, - 0x00, 0x63, 0x00, 0x6b, 0x10, 0x15, 0x60, 0x7f, 0x23, 0x57, 0x00, 0x15, - 0x5e, 0x79, 0x72, 0xcc, 0x91, 0x4b, 0x51, 0xc0, 0x06, 0x58, 0x1b, 0x58, - 0x17, 0x28, 0xd3, 0xb8, 0xd2, 0xad, 0xb9, 0xe2, 0x06, 0x38, 0x19, 0x0e, - 0xf3, 0x7f, 0xb8, 0x17, 0x1f, 0x04, 0x30, 0x28, 0x1f, 0x40, 0x0c, 0x04, - 0x38, 0x04, 0x3a, 0x06, 0x48, 0x17, 0x10, 0x16, 0x34, 0xff, 0x09, 0x0a, - 0x54, 0x0a, 0x20, 0x01, 0x09, 0x20, 0x06, 0x0b, 0x20, 0x05, 0x09, 0x09, - 0x11, 0x3d, 0x07, 0x23, 0x28, 0x17, 0x0b, 0x2f, 0xb5, 0x28, 0x17, 0x00, - 0xfb, 0x30, 0xd5, 0x30, 0xa7, 0x30, 0xeb, 0x30, 0x4a, 0xca, 0x28, 0x23, - 0xc9, 0x30, 0x06, 0x1c, 0xaf, 0x6e, 0x2f, 0xab, 0x46, 0xb6, 0x2f, 0xab, - 0x72, 0x2f, 0xb7, 0x30, 0x0d, 0x64, 0x2f, 0xb5, 0x10, 0x15, 0x70, 0x7f, - 0x23, 0x00, 0x57, 0x39, 0x8d, 0x14, 0x5c, 0x57, 0x53, 0x1a, 0x10, 0x59, - 0x02, 0x5e, 0x06, 0x38, 0x17, 0xb0, 0xc0, 0x98, 0xd3, 0x03, 0x74, 0xb9, - 0x9c, 0xb0, 0xc4, 0xb3, 0x06, 0x38, 0x95, 0x0f, 0x13, 0x7f, 0x41, 0x21, - 0x28, 0x0b, 0x3d, 0x04, 0x2d, 0x00, 0x24, 0x28, 0x1f, 0x63, 0x40, 0x28, - 0x1f, 0x30, 0x0d, 0x34, 0x04, 0x3e, 0x05, 0xc8, 0x17, 0x10, 0x16, 0xb4, - 0xff, 0x19, 0x0a, 0x0b, 0x0b, 0x20, 0x01, 0x28, 0x15, 0x0b, 0x08, 0x20, - 0x05, 0x04, 0x0a, 0x0a, 0x50, 0x07, 0x4b, 0x28, 0x17, 0x0c, 0x2f, 0x00, - 0xc8, 0x30, 0xd0, 0x30, 0xb4, 0x30, 0xf6, 0x5c, 0x8a, 0x06, 0x54, 0x95, - 0x00, 0x00, 0x54, 0x28, 0x03, 0x62, 0x2f, 0xb3, 0x67, 0xc0, 0x05, 0xa8, - 0x0b, 0x10, 0x0f, 0xb0, 0x7f, 0x1a, 0x59, 0xf4, 0x5d, 0xe5, 0x54, 0x40, - 0x9b, 0x06, 0x82, 0xff, 0xa0, 0xd1, 0x14, 0xbc, 0xe0, 0xac, 0x0a, 0x20, - 0x00, 0x2c, 0xc1, 0x10, 0x06, 0x53, 0x7f, 0x22, 0x28, 0x03, 0x31, 0xb1, - 0x28, 0x1b, 0x33, 0x05, 0xa8, 0x0b, 0x10, 0x17, 0xb4, 0xff, 0x0b, 0x0c, - 0x0c, 0x20, 0x01, 0x50, 0x0b, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x0b, 0x0b, - 0xf3, 0x07, 0x40, 0xd0, 0x28, 0x17, 0x0d, 0x2f, 0xd3, 0x30, 0xaf, 0x30, - 0x00, 0xc8, 0x30, 0xea, 0x30, 0xa2, 0x30, 0xde, 0x5d, 0x80, 0x06, 0x3d, - 0x2f, 0x56, 0x00, 0x69, 0x00, 0x63, 0x00, 0x74, 0xa8, 0x2f, 0xa1, 0x72, - 0x20, 0x09, 0x61, 0x10, 0x16, 0x00, 0x7f, 0xf4, 0x7e, 0x1a, 0x01, 0x59, - 0x29, 0x52, 0x9a, 0x4e, 0xe1, 0x90, 0x06, 0x5f, 0xaf, 0x00, 0x45, 0xbe, - 0xa0, 0xd1, 0xac, 0xb9, 0x44, 0xc5, 0x08, 0x20, 0x00, 0xfc, 0xc8, 0x0e, - 0x73, 0x7f, 0x74, 0x00, 0xf3, 0x80, 0x06, 0x63, 0xfd, 0x00, 0x00, 0x12, - 0x04, 0x38, 0x04, 0x3a, 0x2b, 0x04, 0x42, 0x28, 0x1d, 0x40, 0x20, 0x09, - 0x4f, 0x06, 0x08, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x19, 0x0c, 0x0d, 0x0d, - 0x20, 0x01, 0x28, 0x15, 0x0d, 0x02, 0x20, 0x05, 0x04, 0x0c, 0x0c, 0x4c, - 0x07, 0x5a, 0x28, 0x17, 0x0e, 0x2f, 0x04, 0xdd, 0x30, 0xa4, 0x30, 0xf3, - 0x28, 0x19, 0xd5, 0x30, 0x01, 0xa9, 0x30, 0xfc, 0x30, 0xc6, 0x30, 0xa3, - 0x20, 0x0d, 0xa2, 0x05, 0xbf, 0xb8, 0x50, 0x2f, 0xaf, 0x69, 0x00, 0x6e, - 0x28, 0x19, 0x20, 0x2c, 0x00, 0x46, 0x48, 0x1d, 0x74, 0x40, 0x0f, 0x10, - 0x15, 0x70, 0x7f, 0x8f, 0x79, 0x02, 0xf7, 0x5e, 0xac, 0x5c, 0x02, 0x5e, - 0x06, 0x5f, 0xad, 0x00, 0x00, 0x00, 0xec, 0xd3, 0x78, 0xc7, 0xb8, 0xd2, - 0xec, 0x07, 0xd3, 0x74, 0xb9, 0xf4, 0xd2, 0x06, 0x3f, 0xb0, 0x07, 0x33, - 0x7f, 0x33, 0xfd, 0x51, 0x6f, 0x06, 0x63, 0xff, 0x1f, 0x28, 0x11, 0x39, - 0x04, 0x3d, 0x28, 0x19, 0x15, 0x20, 0x00, 0x24, 0x48, 0x1d, 0x42, 0x28, - 0x29, 0x3d, 0x05, 0x88, 0x1f, 0x8a, 0x10, 0x16, 0xf4, 0xff, 0x0d, 0x05, - 0x05, 0x20, 0x01, 0x0d, 0x20, 0x06, 0x06, 0x83, 0x20, 0x05, 0x0d, 0x0d, - 0x3b, 0x07, 0x24, 0x28, 0x17, 0x00, 0x1f, 0xff, 0x15, 0x01, 0x06, 0x06, - 0x20, 0x01, 0x01, 0x20, 0x06, 0x07, 0x20, 0x05, 0x12, 0x01, 0x01, 0x02, - 0x30, 0x04, 0x01, 0x02, 0x40, 0x06, 0x02, 0x09, 0x02, 0x02, 0x02, 0x03, - 0x30, 0x04, 0x02, 0x03, 0x20, 0x06, 0x44, 0x03, 0x20, 0x05, 0x03, 0x03, - 0x04, 0x30, 0x04, 0x03, 0x04, 0xa2, 0x20, 0x06, 0x04, 0x20, 0x05, 0x04, - 0x04, 0x05, 0x30, 0x04, 0x04, 0x59, 0x05, 0x20, 0x06, 0x05, 0x20, 0x05, - 0x20, 0x6d, 0x07, 0x07, 0x20, 0x01, 0x99, 0x20, 0x4d, 0x07, 0x0c, 0x20, - 0x05, 0x20, 0x55, 0x08, 0x08, 0x20, 0x01, 0x59, 0x07, 0x20, 0x06, 0x0a, - 0x20, 0x05, 0x20, 0x07, 0x09, 0x09, 0x20, 0x01, 0x62, 0x08, 0x40, 0x06, - 0x30, 0x1a, 0x09, 0x0a, 0x0a, 0x20, 0x01, 0x09, 0xb3, 0x20, 0x06, 0x0b, - 0x20, 0x05, 0x20, 0x07, 0x0b, 0x0b, 0x20, 0x01, 0x20, 0x0d, 0x39, 0x0b, - 0x08, 0x20, 0x05, 0x20, 0x15, 0x38, 0xd4, 0x0c, 0x0b, 0x20, 0x06, 0x7c, - 0x0d, 0x20, 0x05, 0x20, 0x07, 0xe8, 0xef, 0xf0, 0xe7, 0x3f, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00, - 0x30, 0x01, 0x30, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x43, 0x0f, 0x6b, 0xcd, 0x00, 0x00, 0x00, - 0x01, 0x30, 0xbf, 0x30, 0xfc, 0x30, 0xaf, 0x00, 0x30, 0xb9, 0x30, 0xfb, - 0x30, 0xab, 0x30, 0xa4, 0x21, 0x30, 0xb3, 0x20, 0x09, 0xf8, 0x8a, 0xf6, - 0x5c, 0x05, 0x98, 0x2b, 0x00, 0x54, 0x00, 0x75, 0x00, 0x72, 0x00, 0x6b, - 0x00, 0x00, 0x73, 0x00, 0x20, 0x00, 0x61, 0x00, 0x6e, 0x00, 0x50, 0x64, - 0x20, 0x07, 0x43, 0x20, 0x09, 0x69, 0x00, 0x63, 0x00, 0x55, 0x6f, 0x40, - 0x15, 0x49, 0x20, 0x1b, 0x6c, 0x60, 0x1b, 0x73, 0x04, 0x08, 0xc4, 0x5b, - 0xce, 0x20, 0x5b, 0x65, 0x40, 0x7d, 0x50, 0x89, 0x71, 0x20, 0x8f, 0x30, - 0x0f, 0x5b, 0x2d, 0x20, 0x15, 0x74, 0x20, 0x05, 0x30, 0x8b, 0xef, 0x80, - 0x15, 0x04, 0xb0, 0xff, 0x55, 0x2d, 0x21, 0x01, 0x75, 0x00, 0x21, 0x01, - 0x69, 0x21, 0x15, 0x73, 0x20, 0xa3, 0x77, 0x6c, 0x21, 0x1d, 0x04, 0x19, - 0xc3, 0x31, 0x5d, 0x6f, 0x41, 0x03, 0x71, 0x01, 0x51, 0x8b, 0xfa, 0x30, - 0x0f, 0xb1, 0x87, 0x04, 0x7a, 0x3d, 0x71, 0xdd, 0x91, 0x81, 0x63, 0x60, - 0x0d, 0x79, 0x80, 0x05, 0x40, 0x81, 0x79, 0x72, 0x4b, 0x51, 0xaf, 0x65, - 0x8c, 0x00, 0x54, 0xef, 0x51, 0xd1, 0x79, 0xaf, 0x65, 0xa4, 0x30, 0x7f, - 0x9b, 0x05, 0xa2, 0xfb, 0x4b, 0x98, 0xd1, 0x6c, 0xd0, 0xa4, 0x41, 0xc2, - 0x2b, 0x9c, 0xcf, 0x74, 0xc7, 0xe4, 0xce, 0x30, 0x09, 0x0d, 0x1c, 0xc8, - 0xc4, 0xb3, 0x06, 0x33, 0x7f, 0x32, 0x7f, 0x65, 0x23, 0x81, 0xbc, 0xd3, - 0x7f, 0x65, 0x23, 0x89, 0x73, 0x7d, 0x30, 0x1d, 0x04, 0x12, 0x7f, 0x6c, - 0x00, 0x60, 0x68, 0x00, 0x41, 0xff, 0x05, 0x52, 0x81, 0x22, 0x04, 0x51, - 0x04, 0x40, 0x00, 0x04, 0x3a, 0x04, 0x41, 0x04, 0x20, 0x00, 0x38, 0x82, - 0x20, 0x03, 0x1a, 0x04, 0x30, 0x04, 0x39, 0x20, 0x0f, 0x3e, 0xe7, 0x20, - 0x11, 0x0d, 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x01, 0x01, 0xd0, 0x01, - 0x58, 0x17, 0x01, 0x10, 0x27, 0x80, 0x3f, 0xff, 0x11, 0x58, 0xb0, 0x01, - 0x11, 0x34, 0x00, 0x00, 0x30, 0x01, 0x31, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xa8, 0x1b, 0x38, - 0xc9, 0x00, 0x00, 0x00, 0x02, 0x31, 0xb3, 0x30, 0xed, 0x30, 0xf3, 0x00, - 0x30, 0xd3, 0x30, 0xa2, 0x30, 0x79, 0x72, 0x25, 0x10, 0x52, 0x3a, 0x53, - 0x05, 0xf8, 0x25, 0x44, 0x00, 0x69, 0x00, 0x05, 0x73, 0x00, 0x74, 0x00, - 0x72, 0x20, 0x07, 0x63, 0x20, 0x07, 0x05, 0x20, 0x00, 0x6f, 0x00, 0x66, - 0x20, 0x05, 0x43, 0x20, 0x07, 0x01, 0x6c, 0x00, 0x75, 0x00, 0x6d, 0x00, - 0x62, 0x20, 0x21, 0x51, 0x61, 0x04, 0x88, 0xbc, 0x57, 0x20, 0x5b, 0x73, - 0x00, 0x68, 0x20, 0x85, 0x14, 0x6e, 0x00, 0x67, 0x20, 0x87, 0x6f, 0x20, - 0x07, 0x20, 0x00, 0x45, 0x28, 0x00, 0x20, 0x97, 0x64, 0x00, 0x65, 0x00, - 0x20, 0x97, 0x29, 0x0a, 0xe0, 0xff, 0xbb, 0x91, 0x7f, 0x65, 0x21, 0x85, - 0x30, 0xff, 0x30, 0xe9, 0x69, 0x05, 0x81, 0x81, 0xb1, 0xff, 0xe0, 0x70, - 0x7d, 0x00, 0x31, 0x67, 0x04, 0x7a, 0xbd, 0xe5, 0x54, 0x26, 0x4f, 0xd4, - 0x06, 0x6b, 0x9a, 0x4e, 0x79, 0x72, 0x06, 0x12, 0xfb, 0x3b, 0x9a, 0xec, - 0x00, 0xce, 0xfc, 0xb7, 0x44, 0xbe, 0x44, 0xc5, 0x20, 0x01, 0x00, 0xb9, - 0xd2, 0xc4, 0xbc, 0x6c, 0xad, 0x0d, 0xf3, 0x7f, 0xa0, 0x00, 0xd1, 0xff, - 0xfa, 0x05, 0x03, 0xff, 0x1e, 0x04, 0x3a, 0x04, 0x40, 0x00, 0x04, 0x43, - 0x04, 0x33, 0x04, 0x20, 0x00, 0x1a, 0x08, 0x04, 0x3e, 0x04, 0x3b, 0x20, - 0x0b, 0x3c, 0x04, 0x31, 0x06, 0x04, 0x38, 0x04, 0x4f, 0x04, 0x0d, 0xf1, - 0x7f, 0x10, 0x0e, 0x30, 0x7f, 0x01, 0x00, 0x09, 0x32, 0x08, 0x0d, 0x0d, - 0x01, 0x01, 0x09, 0x01, 0x0d, 0x28, 0x09, 0x01, 0x01, 0x01, 0x01, 0x58, - 0x17, 0x00, 0x03, 0x31, 0xa2, 0x30, 0xe9, 0x30, 0xb9, 0x30, 0x0b, 0xab, - 0x30, 0xde, 0x5d, 0x06, 0x5f, 0xb7, 0x41, 0x27, 0xfd, 0x37, 0x99, 0x60, - 0x6b, 0x04, 0xa7, 0xfb, 0x10, 0x10, 0xb0, 0x7f, 0x3f, 0x96, 0xc9, 0x62, - 0xaf, 0x10, 0x65, 0xa0, 0x52, 0x06, 0x72, 0xff, 0x4c, 0xc5, 0x98, 0xb7, - 0x00, 0xa4, 0xc2, 0x74, 0xce, 0x20, 0x00, 0xfc, 0xc8, 0xa8, 0x0e, 0xb3, - 0x7f, 0x63, 0x06, 0x63, 0xff, 0x10, 0x28, 0x09, 0x4f, 0x04, 0x41, 0xb2, - 0x28, 0x1d, 0x30, 0x05, 0x48, 0x07, 0x10, 0x17, 0xf4, 0xff, 0x02, 0x02, - 0x70, 0x01, 0x04, 0x80, 0x40, 0x0a, 0x75, 0x29, 0x6a, 0xa0, 0x00, 0x00, - 0x04, 0x8a, 0x48, 0x17, 0xd0, 0x30, 0xde, 0x06, 0xe8, 0x17, 0x62, 0x2f, - 0xb5, 0x6d, 0xc0, 0x06, 0x48, 0x19, 0x10, 0x0e, 0xf0, 0x7f, 0x9a, 0x4e, - 0xc9, 0x62, 0xf4, 0x5d, 0x20, 0x6c, 0x9a, 0x06, 0x7b, 0x17, 0x68, 0xc5, - 0x7c, 0xb7, 0x30, 0x1c, 0xbc, 0xc8, 0xb9, 0x06, 0xd8, 0x17, 0x0e, 0x93, - 0x7f, 0x38, 0x17, 0x30, 0x04, 0x58, 0x31, 0x28, 0x15, 0x3c, 0x06, 0x48, - 0x19, 0x10, 0x16, 0xf4, 0xff, 0x03, 0x01, 0x01, 0xa8, 0x20, 0x01, 0x03, - 0x20, 0x06, 0x03, 0x20, 0x05, 0x03, 0x03, 0x04, 0x02, 0x17, 0xa2, 0xc2, - 0x00, 0x00, 0x05, 0x28, 0x17, 0xfc, 0x03, 0x30, 0xab, 0x30, 0xf3, 0x30, - 0xbd, 0x20, 0x07, 0x06, 0x3d, 0x33, 0x17, 0x41, 0x00, 0x72, 0x4f, 0xab, - 0x6e, 0x2f, 0xb3, 0x3f, 0xb7, 0x10, 0x15, 0xf0, 0x7f, 0x02, 0x3f, 0x96, - 0xaf, 0x80, 0x72, 0x82, 0x06, 0x7b, 0x15, 0x00, 0x01, 0x00, 0x44, 0xc5, - 0x78, 0xce, 0x8c, 0xc1, 0x06, 0x78, 0x15, 0x82, 0x0f, 0x13, 0x7f, 0x10, - 0x04, 0x40, 0x04, 0x3a, 0x28, 0x19, 0x3d, 0x2c, 0x04, 0x37, 0x28, 0x1f, - 0x41, 0x06, 0x08, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x04, 0x04, 0xa0, 0x70, - 0x01, 0x06, 0x40, 0x0a, 0xb5, 0x18, 0x60, 0xbe, 0x00, 0x20, 0x00, 0x06, - 0x28, 0x17, 0xea, 0x30, 0xbe, 0x30, 0xca, 0xc1, 0x06, 0x48, 0x13, 0x78, - 0x17, 0x69, 0x00, 0x7a, 0x00, 0x6f, 0x28, 0x19, 0xc0, 0x06, 0x5f, 0xaf, - 0x10, 0x0e, 0xd0, 0x7f, 0x9a, 0x4e, 0x29, 0x52, 0x51, 0x68, 0x20, 0xa3, - 0x90, 0x06, 0x78, 0x19, 0x60, 0xc5, 0xac, 0xb9, 0x70, 0x1d, 0xc8, 0x98, - 0xb0, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x38, 0x17, 0x38, 0x28, 0x13, - 0x58, 0x3e, 0x28, 0x19, 0x30, 0x06, 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, - 0x05, 0x03, 0x03, 0xa8, 0x20, 0x01, 0x05, 0x20, 0x06, 0x05, 0x20, 0x05, - 0x05, 0x05, 0xc9, 0x00, 0x17, 0x4e, 0xb0, 0x00, 0x00, 0x07, 0x31, 0xab, - 0x80, 0x28, 0x17, 0xd5, 0x30, 0xa9, 0x30, 0xeb, 0x30, 0xcb, 0x2a, 0x30, - 0xa2, 0x06, 0x28, 0x1d, 0x43, 0x2f, 0xab, 0x6c, 0x28, 0x19, 0x66, 0xad, - 0x28, 0x19, 0x72, 0x2f, 0xb5, 0x69, 0x05, 0xe8, 0x1d, 0x00, 0x10, 0x7f, - 0x65, 0x05, 0xcf, 0xb3, 0x58, 0x4b, 0x00, 0x20, 0x7f, 0x6e, 0x0e, 0xc1, - 0x7f, 0x05, 0xda, 0x1d, 0xa0, 0x52, 0x29, 0x01, 0x52, 0x8f, 0x79, 0x3c, - 0x5c, 0x9a, 0x4e, 0x06, 0x5b, 0x19, 0x00, 0x98, 0xce, 0xac, 0xb9, 0xec, - 0xd3, 0xc8, 0xb2, 0x35, 0x44, 0xc5, 0x06, 0x58, 0x19, 0x00, 0x13, 0x7f, - 0xeb, 0x06, 0x63, 0xff, 0xf3, 0x06, 0x43, 0xff, 0x55, 0x1a, 0x28, 0x0d, - 0x3b, 0x28, 0x19, 0x44, 0x28, 0x19, 0x40, 0x28, 0x1b, 0x1c, 0x38, 0x04, - 0x4f, 0x05, 0xc8, 0x1d, 0x0e, 0xf3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x06, - 0x05, 0x05, 0x05, 0x10, 0x05, 0x05, 0x06, 0x20, 0x06, 0x12, 0x20, 0x05, - 0x00, 0x06, 0x06, 0x6f, 0x1b, 0x9b, 0xa9, 0x00, 0x00, 0x00, 0x08, 0x31, - 0xb3, 0x30, 0xed, 0x30, 0xe9, 0x30, 0x6c, 0xc9, 0x06, 0x28, 0x11, 0x78, - 0x17, 0x6f, 0x28, 0x17, 0x38, 0x13, 0x61, 0x00, 0x60, 0x64, 0x2f, 0xb5, - 0x10, 0x15, 0xf0, 0x7f, 0xd1, 0x79, 0x57, 0x7f, 0xc9, 0x10, 0x62, 0x1a, - 0x59, 0x06, 0x72, 0xff, 0x5c, 0xcf, 0x5c, 0xb8, 0x0d, 0x7c, 0xb7, 0xc4, - 0xb3, 0x06, 0x58, 0x15, 0x0f, 0x13, 0x7f, 0x1a, 0x28, 0x0f, 0x46, 0x3b, - 0x48, 0x13, 0x30, 0x04, 0x34, 0x28, 0x1b, 0x10, 0x1d, 0xf4, 0xff, 0x07, - 0x02, 0x06, 0x08, 0x05, 0x08, 0x08, 0x07, 0x20, 0x06, 0x15, 0x00, 0x06, - 0x07, 0x07, 0x07, 0x07, 0x42, 0x1c, 0x59, 0x08, 0xb5, 0x00, 0x00, 0x09, - 0x28, 0x17, 0xcd, 0x30, 0xc6, 0x00, 0x30, 0xa3, 0x30, 0xab, 0x30, 0xc3, - 0x30, 0xc8, 0xd0, 0x06, 0x28, 0x1d, 0x38, 0x17, 0x6e, 0x2f, 0xa7, 0x65, - 0x00, 0x63, 0x00, 0x46, 0x74, 0x2f, 0xb7, 0x63, 0x00, 0x75, 0x20, 0x07, - 0x10, 0x15, 0x90, 0x7f, 0xb7, 0x01, 0x5e, 0x85, 0x6d, 0xc4, 0x72, 0x3c, - 0x68, 0x06, 0x7b, 0x17, 0x00, 0x54, 0xcf, 0x24, 0xb1, 0xf0, 0xd2, 0xf7, - 0xce, 0xe8, 0x06, 0xb8, 0x17, 0x0e, 0xb3, 0x7f, 0x38, 0x17, 0x3d, 0x20, - 0x01, 0x35, 0x04, 0x3a, 0x0b, 0x04, 0x42, 0x04, 0x38, 0x20, 0x05, 0x43, - 0x20, 0x07, 0x10, 0x1d, 0x94, 0xff, 0x02, 0x08, 0x07, 0x09, 0x06, 0x09, - 0x09, 0x28, 0x19, 0x09, 0x00, 0x16, 0x07, 0x08, 0x08, 0x08, 0x08, 0xb2, - 0x1d, 0x00, 0x50, 0xcc, 0x00, 0x00, 0x0a, 0x31, 0xc7, 0x30, 0x01, 0xe9, - 0x30, 0xa6, 0x30, 0xa7, 0x30, 0xa2, 0x06, 0x28, 0x13, 0xaa, 0x3f, 0xff, - 0x44, 0x28, 0x11, 0x6c, 0x2f, 0xab, 0x77, 0x2f, 0xaf, 0x72, 0xc0, 0x28, - 0x1d, 0x10, 0x15, 0xf0, 0x7f, 0x79, 0x72, 0xc9, 0x62, 0x4e, 0x53, 0x80, - 0x06, 0x78, 0x15, 0x00, 0x00, 0x78, 0xb3, 0x7c, 0xb7, 0xe8, 0x1a, 0xc6, - 0xb4, 0xc5, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x14, 0x28, 0x11, 0x3b, - 0x00, 0x04, 0x30, 0x04, 0x32, 0x04, 0x4d, 0x04, 0x40, 0xc0, 0x05, 0xa8, - 0x0f, 0x10, 0x17, 0x74, 0xff, 0x09, 0x08, 0x0c, 0x07, 0x0c, 0x0c, 0x80, - 0x28, 0x19, 0x0c, 0x0d, 0x08, 0x09, 0x09, 0x09, 0x09, 0x00, 0xd8, 0x1b, - 0x4c, 0xca, 0x00, 0x00, 0x0b, 0x31, 0x01, 0xd5, 0x30, 0xed, 0x30, 0xea, - 0x30, 0xc0, 0x06, 0x68, 0x15, 0x14, 0x00, 0x00, 0x46, 0x28, 0x15, 0x6f, - 0x28, 0x11, 0x69, 0x00, 0x7c, 0x64, 0x28, 0x1d, 0x06, 0xd0, 0x7f, 0x06, - 0x18, 0x95, 0x07, 0xd0, 0xff, 0x0e, 0x30, 0x7f, 0x5b, 0x4f, 0x02, 0x57, - 0x7f, 0xcc, 0x91, 0xbe, 0x8f, 0x06, 0x78, 0x19, 0x0c, 0x01, 0xd5, 0x5c, - 0xb8, 0xac, 0xb9, 0xe4, 0xb2, 0x06, 0x78, 0x17, 0xaa, 0x07, 0x33, 0x7f, - 0xf3, 0x06, 0xa3, 0xff, 0x24, 0x28, 0x15, 0x3e, 0x28, 0x11, 0x38, 0x38, - 0x04, 0x34, 0x28, 0x1d, 0x10, 0x0e, 0x13, 0xff, 0x0e, 0xf5, 0x7f, 0x0a, - 0x0a, 0x0d, 0x00, 0x09, 0x0e, 0x0e, 0x0a, 0x0a, 0x0a, 0x0e, 0x31, 0x81, - 0x20, 0x04, 0x0a, 0x0a, 0xa5, 0x15, 0x12, 0xc4, 0x24, 0x95, 0x00, 0x31, - 0xb8, 0x30, 0xe7, 0x30, 0xfc, 0x30, 0xb8, 0x2d, 0x30, 0xa2, 0x06, 0x68, - 0x19, 0x47, 0x2f, 0xaf, 0x38, 0x17, 0x67, 0x28, 0x19, 0x8f, 0x06, 0x38, - 0x17, 0x47, 0x00, 0xe9, 0x80, 0x7f, 0x06, 0x38, 0x17, 0x07, 0x10, 0xff, - 0x0e, 0xd0, 0x7f, 0x02, 0x50, 0x4f, 0xbb, 0x6c, 0x9a, 0x4e, 0x06, 0x7b, - 0x15, 0x00, 0x01, 0x00, 0x70, 0xc8, 0xc0, 0xc9, 0x44, 0xc5, 0x06, 0x78, - 0x15, 0xe2, 0x07, 0x52, 0x7f, 0x38, 0x17, 0x06, 0x73, 0xff, 0x14, 0x04, - 0x36, 0x48, 0x17, 0x34, 0x8e, 0x20, 0x07, 0x38, 0x04, 0x4f, 0x06, 0x08, - 0x19, 0x10, 0x06, 0xf3, 0xff, 0x0e, 0xf5, 0x7f, 0x0b, 0x00, 0x0b, 0x0e, - 0x0a, 0x0f, 0x0f, 0x0b, 0x0b, 0x0b, 0x20, 0x0f, 0x0e, 0x20, 0x04, 0x0b, - 0x0b, 0xff, 0x17, 0xfe, 0x00, 0xc3, 0x00, 0x00, 0x0d, 0x31, 0xcf, 0x30, - 0xef, 0x35, 0x30, 0xa4, 0x06, 0x68, 0x13, 0x3f, 0xff, 0x48, 0x2f, 0x25, - 0x77, 0x2f, 0x29, 0x6d, 0x69, 0x2f, 0xb1, 0x06, 0xb0, 0x7f, 0xef, 0x0e, - 0xe0, 0xff, 0x06, 0xd1, 0x7f, 0xe1, 0x06, 0x61, 0xfd, 0x00, 0x00, 0x00, - 0x0f, 0x59, 0x01, 0x5a, 0x37, 0x59, 0x81, 0x06, 0x98, 0x17, 0x58, 0xd5, - 0x40, 0xc6, 0x74, 0xc7, 0x06, 0x98, 0x17, 0xa8, 0x07, 0x32, 0xff, 0x76, - 0x2f, 0x29, 0xed, 0x06, 0x69, 0x98, 0x13, 0x04, 0x30, 0x2e, 0x04, 0x32, - 0x20, 0x03, 0x39, 0x28, 0x15, 0x10, 0x06, 0x93, 0xff, 0x10, 0x06, 0x90, - 0xff, 0x0c, 0x00, 0x0c, 0x0f, 0x0b, 0x10, 0x10, 0x0c, 0x0c, 0x0c, 0xc0, - 0x30, 0x03, 0x20, 0x06, 0x26, 0x0f, 0xbf, 0x8f, 0x00, 0x00, 0x16, 0x0e, - 0x31, 0xa2, 0x28, 0x15, 0xaa, 0x28, 0x1b, 0x06, 0x7d, 0x31, 0x49, 0xf0, - 0x2f, 0xad, 0x38, 0x17, 0x06, 0x7d, 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0x7e, - 0x82, 0x65, 0x59, 0x20, 0xe6, 0x74, 0x06, 0x9b, 0x17, 0x44, 0xc5, 0x74, - 0xc7, 0x24, 0x1a, 0xc6, 0x40, 0xc6, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, - 0x10, 0x28, 0x11, 0x3e, 0xc0, 0x48, 0x19, 0x10, 0x1e, 0x54, 0xff, 0x0d, - 0x10, 0x13, 0x0f, 0x14, 0x14, 0x00, 0x0d, 0x0d, 0x10, 0x14, 0x02, 0x10, - 0x0d, 0x0d, 0x03, 0x0d, 0x0d, 0x95, 0x1d, 0x70, 0xbd, 0x2d, 0x2d, 0x48, - 0x17, 0x15, 0xc0, 0x30, 0xdb, 0x06, 0xa8, 0x17, 0x64, 0x2f, 0xb1, 0x68, - 0x28, 0x1d, 0x81, 0x10, 0x16, 0x50, 0x7f, 0x31, 0x72, 0xbe, 0x8f, 0x77, - 0x83, 0x06, 0xd8, 0x17, 0x0e, 0xe4, 0xb2, 0x38, 0xd6, 0x06, 0x98, 0x17, - 0x0e, 0xd3, 0x7f, 0x38, 0x17, 0x34, 0xb0, 0x28, 0x15, 0x45, 0x28, 0x1d, - 0x10, 0x1e, 0x34, 0xff, 0x0e, 0x0d, 0x10, 0x0c, 0x00, 0x11, 0x11, 0x0e, - 0x0e, 0x0d, 0x11, 0x01, 0x0d, 0x00, 0x0e, 0x0e, 0x0e, 0x0e, 0x03, 0x1f, - 0x5e, 0xad, 0x81, 0x2b, 0x2d, 0x31, 0xa4, 0x30, 0xea, 0x30, 0xce, 0x28, - 0x1b, 0xa2, 0x06, 0x98, 0x17, 0x6c, 0x20, 0x01, 0x69, 0x00, 0x6e, 0x2f, - 0xb7, 0x69, 0x20, 0x00, 0x73, 0x10, 0x16, 0x00, 0x7f, 0x0a, 0x4f, 0x29, - 0x52, 0xfa, 0x10, 0x8b, 0x0a, 0x4f, 0x06, 0x7b, 0x17, 0x7c, 0xc7, 0xac, - 0xb9, 0x0c, 0x78, 0xb1, 0x74, 0xc7, 0x06, 0x98, 0x17, 0x0e, 0xd3, 0x7f, - 0x18, 0x04, 0x44, 0x3b, 0x20, 0x01, 0x38, 0x04, 0x3d, 0x28, 0x17, 0x39, - 0x04, 0x60, 0x41, 0x06, 0x08, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x0f, 0x0e, - 0x11, 0x0d, 0x12, 0x00, 0x12, 0x0f, 0x0f, 0x0e, 0x12, 0x10, 0x0e, 0x0f, - 0x00, 0x0f, 0x0f, 0x0f, 0x4d, 0x1c, 0x41, 0xc0, 0x00, 0x20, 0x00, 0x11, - 0x28, 0x17, 0xf3, 0x30, 0xc7, 0x30, 0xa3, 0x0a, 0x30, 0xa2, 0x30, 0xca, - 0x06, 0x48, 0x1b, 0x49, 0x28, 0x11, 0x64, 0xac, 0x28, 0x17, 0x61, 0x28, - 0x19, 0x61, 0x06, 0x4f, 0xaf, 0x10, 0x0e, 0xd0, 0x7f, 0x70, 0x53, 0x02, - 0x2c, 0x7b, 0x89, 0x5b, 0xb3, 0x7e, 0x06, 0x7b, 0x17, 0x78, 0x01, 0xc7, - 0x14, 0xb5, 0x60, 0xc5, 0x98, 0xb0, 0x06, 0x98, 0x17, 0xaa, 0x0e, 0xd3, - 0x7f, 0x18, 0x28, 0x11, 0x34, 0x28, 0x17, 0x30, 0x28, 0x19, 0x30, 0xc0, - 0x06, 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, 0x10, 0x0f, 0x12, 0x0e, 0x13, - 0x13, 0x00, 0x10, 0x10, 0x0f, 0x13, 0x11, 0x0f, 0x10, 0x10, 0x00, 0x10, - 0x10, 0x47, 0x1c, 0xbc, 0xc2, 0x00, 0x00, 0x11, 0x12, 0x31, 0xab, 0x28, - 0x17, 0xb6, 0x30, 0xb9, 0x06, 0x48, 0x13, 0xae, 0x3f, 0xff, 0x4b, 0x48, - 0x11, 0x73, 0x28, 0x17, 0x06, 0x1f, 0xab, 0x10, 0x0f, 0x30, 0x7f, 0x2a, - 0x04, 0x58, 0x28, 0x84, 0xaf, 0x65, 0x06, 0x78, 0x15, 0x00, 0x00, 0x03, - 0x94, 0xce, 0x90, 0xc7, 0xa4, 0xc2, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, - 0x56, 0x1a, 0x48, 0x11, 0x37, 0x28, 0x17, 0x41, 0x06, 0x28, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x11, 0x00, 0x11, 0x14, 0x11, 0x15, 0x15, 0x11, 0x11, - 0x11, 0x20, 0x15, 0x13, 0x20, 0x04, 0x11, 0x11, 0xc4, 0x1b, 0xf7, 0x02, - 0xbb, 0x00, 0x00, 0x13, 0x31, 0xb1, 0x28, 0x17, 0xbf, 0x02, 0x30, 0xc3, - 0x30, 0xad, 0x30, 0xfc, 0x06, 0x48, 0x1b, 0x4b, 0x20, 0x00, 0x65, 0x2f, - 0xb1, 0x74, 0x00, 0x75, 0x00, 0x63, 0x08, 0x00, 0x6b, 0x00, 0x79, 0x10, - 0x16, 0x00, 0x7f, 0xaf, 0x80, 0x54, 0x10, 0x58, 0xfa, 0x57, 0x06, 0x98, - 0x17, 0x04, 0xcf, 0x30, 0xd1, 0x31, 0xa4, 0xd0, 0x06, 0xb8, 0x17, 0x0e, - 0xd3, 0x7f, 0x1a, 0x04, 0x35, 0x28, 0x17, 0x05, 0x42, 0x04, 0x43, 0x04, - 0x3a, 0x20, 0x01, 0x38, 0x06, 0x08, 0x1b, 0x80, 0x10, 0x16, 0xf4, 0xff, - 0x12, 0x12, 0x15, 0x12, 0x16, 0x16, 0x12, 0x08, 0x12, 0x12, 0x16, 0x14, - 0x20, 0x04, 0x12, 0x12, 0x2a, 0x00, 0x1b, 0xa6, 0xc3, 0x00, 0x00, 0x14, - 0x31, 0xeb, 0x00, 0x30, 0xa4, 0x30, 0xb8, 0x30, 0xa2, 0x30, 0xca, 0x82, - 0x06, 0x48, 0x15, 0x00, 0x00, 0x4c, 0x00, 0x6f, 0x28, 0x13, 0x69, 0xab, - 0x2f, 0xb1, 0x69, 0x4f, 0xb9, 0x61, 0x06, 0xe0, 0x7f, 0x65, 0x0e, 0x00, - 0xff, 0x06, 0xb1, 0x7d, 0x80, 0x07, 0x10, 0x7f, 0xef, 0x8d, 0x13, 0x66, - 0xaf, 0x65, 0x89, 0x10, 0x5b, 0xa3, 0x90, 0x06, 0x58, 0x1b, 0xe8, 0xb8, - 0x74, 0xc7, 0x03, 0xc0, 0xc9, 0x60, 0xc5, 0x98, 0xb0, 0x06, 0x58, 0x1b, - 0x0e, 0xf2, 0x7f, 0x45, 0x1b, 0x28, 0x11, 0x38, 0x04, 0x37, 0x28, 0x11, - 0x30, 0x28, 0x1f, 0x70, 0x30, 0x06, 0x08, 0x17, 0x07, 0xf4, 0xff, 0x10, - 0x0d, 0xf0, 0x7f, 0x13, 0x13, 0x16, 0x13, 0x08, 0x17, 0x17, 0x13, 0x13, - 0x50, 0x04, 0x13, 0x13, 0xa7, 0x00, 0x15, 0x2e, 0xbf, 0x00, 0x00, 0x15, - 0x31, 0xde, 0x00, 0x30, 0xb5, 0x30, 0xc1, 0x30, 0xe5, 0x30, 0xfc, 0x02, - 0x30, 0xbb, 0x30, 0xc3, 0x30, 0xc4, 0x06, 0x08, 0x1d, 0x4d, 0xaa, 0x28, - 0x0d, 0x73, 0x28, 0x15, 0x61, 0x2f, 0xaf, 0x68, 0x2f, 0xb5, 0x73, 0xa8, - 0x2f, 0xbf, 0x74, 0x2f, 0xbf, 0x73, 0x10, 0x15, 0x60, 0x7f, 0x6c, 0x9a, - 0x28, 0x04, 0x84, 0xf8, 0x8b, 0x5e, 0x58, 0x06, 0x5b, 0x15, 0x00, 0x00, - 0x00, 0xe4, 0xb9, 0xac, 0xc0, 0x94, 0xcd, 0x38, 0xc1, 0x35, 0x20, 0xce, - 0x06, 0x58, 0x17, 0x0e, 0xf3, 0x7f, 0x1c, 0x28, 0x0f, 0x41, 0x20, 0x01, - 0x10, 0x30, 0x04, 0x47, 0x28, 0x21, 0x41, 0x04, 0x35, 0x04, 0x60, 0x42, - 0x20, 0x0f, 0x10, 0x1d, 0x94, 0xff, 0x14, 0x16, 0x19, 0x16, 0x1a, 0x00, - 0x1a, 0x14, 0x14, 0x16, 0x1a, 0x18, 0x16, 0x14, 0x00, 0x14, 0x14, 0x14, - 0x1f, 0x1e, 0x78, 0xcd, 0x00, 0x02, 0x00, 0x16, 0x31, 0xe1, 0x30, 0xea, - 0x28, 0x13, 0xe9, 0x0c, 0x30, 0xf3, 0x30, 0xc9, 0x06, 0x08, 0x13, 0x78, - 0x17, 0x72, 0x00, 0x14, 0x79, 0x00, 0x6c, 0x4f, 0xad, 0x64, 0x10, 0x16, - 0x00, 0x7f, 0x6c, 0x9a, 0x08, 0xcc, 0x91, 0x70, 0x51, 0x06, 0x78, 0x15, - 0x00, 0x00, 0x54, 0x01, 0xba, 0xb4, 0xb9, 0x9c, 0xb7, 0xdc, 0xb4, 0x06, - 0x58, 0x15, 0x80, 0x0f, 0x13, 0x7f, 0x1c, 0x04, 0x4d, 0x04, 0x40, 0x04, - 0x38, 0x23, 0x04, 0x3b, 0x28, 0x11, 0x3d, 0x04, 0x34, 0x05, 0xa8, 0x11, - 0x10, 0x17, 0x54, 0xff, 0x00, 0x15, 0x15, 0x18, 0x15, 0x19, 0x19, 0x15, - 0x15, 0x10, 0x15, 0x19, 0x1f, 0x20, 0x04, 0x15, 0x15, 0xb7, 0x1b, 0x05, - 0x9b, 0xc9, 0x00, 0x00, 0x17, 0x28, 0x17, 0xfc, 0x28, 0x13, 0xd4, 0x06, - 0x95, 0x17, 0x3f, 0xaf, 0x69, 0x28, 0x11, 0x65, 0x10, 0x16, 0x60, 0x7f, - 0x05, 0x7f, 0x33, 0xe0, 0x56, 0x06, 0x98, 0x15, 0x38, 0x17, 0x78, 0xc7, - 0x06, 0x78, 0x13, 0x0f, 0x33, 0x7f, 0xb0, 0x38, 0x17, 0x3d, 0x06, 0x08, - 0x0d, 0x10, 0x17, 0x94, 0xff, 0x16, 0x14, 0x17, 0x14, 0x00, 0x18, 0x18, - 0x16, 0x16, 0x14, 0x18, 0x1e, 0x14, 0x00, 0x16, 0x16, 0x16, 0x16, 0x82, - 0x1f, 0x61, 0xce, 0x00, 0x00, 0x00, 0x18, 0x31, 0xdf, 0x30, 0xb7, 0x30, - 0x51, 0xac, 0x06, 0xa8, 0x19, 0x4d, 0x28, 0x15, 0x63, 0x00, 0x68, 0x28, - 0x1b, 0x68, 0x67, 0x4f, 0xb1, 0x10, 0x0e, 0x10, 0x7f, 0xed, 0x06, 0xc1, - 0xff, 0xc6, 0x5b, 0x47, 0x10, 0x6b, 0x39, 0x68, 0x06, 0x9b, 0x17, 0xf8, - 0xbb, 0xdc, 0xc2, 0x30, 0x04, 0xac, 0x06, 0x98, 0x19, 0x0e, 0xf3, 0x7f, - 0x1c, 0x04, 0x38, 0x04, 0x47, 0x47, 0x20, 0x03, 0x33, 0x04, 0x30, 0x06, - 0x48, 0x1f, 0x10, 0x0f, 0x14, 0xff, 0x06, 0xd6, 0xff, 0x00, 0x17, 0x17, - 0x1a, 0x17, 0x1b, 0x1b, 0x17, 0x17, 0x10, 0x17, 0x1b, 0x1c, 0x20, 0x04, - 0x17, 0x17, 0x63, 0x1e, 0x04, 0xe0, 0xc3, 0x00, 0x00, 0x19, 0x28, 0x17, - 0xcd, 0x30, 0x14, 0xbd, 0x30, 0xbf, 0x06, 0xc8, 0x17, 0x6e, 0x4f, 0xaf, - 0x73, 0x00, 0x18, 0x6f, 0x00, 0x74, 0x2f, 0xbd, 0x10, 0x15, 0xd0, 0x7f, - 0x0e, 0x66, 0x3c, 0x04, 0x5c, 0xcf, 0x82, 0xbe, 0x8f, 0x06, 0x7b, 0x17, - 0xf8, 0xbb, 0x03, 0x24, 0xb1, 0x8c, 0xc1, 0xc0, 0xd0, 0x06, 0x78, 0x19, - 0x0e, 0xf3, 0x7f, 0xa0, 0x38, 0x17, 0x3d, 0x28, 0x11, 0x35, 0x04, 0x41, - 0x04, 0x3e, 0x30, 0x04, 0x42, 0x28, 0x1d, 0x10, 0x1d, 0xd4, 0xff, 0x18, - 0x18, 0x1b, 0x18, 0x01, 0x1c, 0x1c, 0x18, 0x18, 0x18, 0x1c, 0x19, 0x20, - 0x04, 0x00, 0x18, 0x18, 0xf5, 0x1f, 0xcd, 0xbd, 0x00, 0x00, 0x41, 0x1a, - 0x28, 0x17, 0xba, 0x30, 0xfc, 0x30, 0xea, 0x06, 0xc8, 0x17, 0x47, 0x73, - 0x48, 0x13, 0x75, 0x00, 0x72, 0x2f, 0xbb, 0x10, 0x0e, 0x50, 0x7f, 0x06, - 0x51, 0xfb, 0x81, 0x3f, 0xff, 0xc6, 0x5b, 0xcf, 0x82, 0xcc, 0x91, 0x06, - 0x7b, 0x15, 0x87, 0x38, 0x17, 0xfc, 0xc8, 0xac, 0xb9, 0x06, 0x78, 0x15, - 0x0f, 0x13, 0x7f, 0x38, 0x17, 0x47, 0x41, 0x28, 0x13, 0x43, 0x04, 0x40, - 0x28, 0x21, 0x10, 0x16, 0x74, 0xff, 0x06, 0x96, 0xff, 0x00, 0x19, 0x1a, - 0x1d, 0x1a, 0x1e, 0x1e, 0x19, 0x19, 0x00, 0x1a, 0x1e, 0x1b, 0x1a, 0x19, - 0x19, 0x19, 0x19, 0x01, 0x6e, 0x1b, 0x75, 0xbe, 0x00, 0x00, 0x1b, 0x28, - 0x17, 0x47, 0xb7, 0x20, 0x01, 0xc3, 0x30, 0xd4, 0x06, 0x68, 0x19, 0x78, - 0x17, 0x70, 0x05, 0x7e, 0x70, 0x20, 0x01, 0x05, 0xb8, 0x1d, 0x10, 0x07, - 0x50, 0x7f, 0x50, 0x03, 0x05, 0xd1, 0xf9, 0x78, 0x17, 0x7f, 0x04, 0x89, - 0x7f, 0x89, 0xd4, 0x6b, 0x06, 0x7b, 0x17, 0xf8, 0xbb, 0x03, 0xdc, 0xc2, - 0xdc, 0xc2, 0x3c, 0xd5, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0xc7, 0x78, - 0x17, 0x38, 0x1d, 0x38, 0x04, 0x3f, 0x06, 0x08, 0x1b, 0x10, 0x0f, 0x54, - 0xff, 0x06, 0x96, 0xff, 0x00, 0x1a, 0x19, 0x1c, 0x19, 0x1d, 0x1d, 0x1a, - 0x1a, 0x00, 0x19, 0x1d, 0x1a, 0x19, 0x1a, 0x1a, 0x1a, 0x1a, 0x08, 0xf7, - 0x16, 0xdf, 0xbf, 0x2b, 0x2d, 0x31, 0xe2, 0x30, 0x06, 0xf3, 0x30, 0xbf, - 0x30, 0xca, 0x06, 0x68, 0x15, 0x3f, 0xaf, 0x6f, 0x02, 0x00, 0x6e, 0x00, - 0x74, 0x00, 0x61, 0x20, 0x05, 0x61, 0x81, 0x10, 0x16, 0x20, 0x7f, 0x99, - 0x84, 0x27, 0x59, 0xff, 0x62, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0xac, - 0xba, 0xdc, 0xd0, 0x98, 0xb0, 0xc0, 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, - 0x1c, 0x04, 0x3e, 0x04, 0x3d, 0x04, 0x16, 0x42, 0x04, 0x30, 0x20, 0x05, - 0x30, 0x05, 0xe8, 0x13, 0x10, 0x17, 0x34, 0xff, 0x1b, 0x00, 0x1b, 0x1e, - 0x1b, 0x1f, 0x1f, 0x1b, 0x1b, 0x1b, 0x20, 0x1f, 0x1d, 0x20, 0x04, 0x1b, - 0x1b, 0x21, 0x21, 0x55, 0x00, 0xb0, 0x00, 0x00, 0x1d, 0x31, 0xce, 0x30, - 0xfc, 0x00, 0x30, 0xb9, 0x30, 0xab, 0x30, 0xed, 0x30, 0xe9, 0x2a, 0x30, - 0xa4, 0x06, 0x28, 0x1f, 0x4e, 0x28, 0x17, 0x72, 0x28, 0x17, 0x68, 0x0a, - 0x00, 0x20, 0x00, 0x43, 0x28, 0x1d, 0x72, 0x28, 0x27, 0x6c, 0xe8, 0x2f, - 0xc3, 0x05, 0x78, 0x25, 0xd0, 0x73, 0x65, 0x20, 0x85, 0x64, 0x00, 0x75, - 0xd5, 0x20, 0x8b, 0x50, 0x97, 0x64, 0x0d, 0xe0, 0xff, 0x61, 0x40, 0xff, - 0x65, 0x21, 0x81, 0xd8, 0x05, 0x71, 0x01, 0x00, 0xf0, 0x7f, 0x74, 0x21, - 0x93, 0x04, 0xbf, 0xc9, 0x17, 0x53, 0x61, 0x01, 0x53, 0x57, 0x7f, 0x65, - 0x67, 0xb3, 0x7e, 0x06, 0x5b, 0x19, 0x00, 0x78, 0xb1, 0xa4, 0xc2, 0x90, - 0xce, 0x64, 0xb8, 0x0d, 0x7c, 0xb7, 0x74, 0xc7, 0x06, 0x38, 0x1f, 0x08, - 0x32, 0x7f, 0x6f, 0x05, 0x81, 0xfd, 0x01, 0x00, 0x00, 0x21, 0x04, 0x35, - 0x04, 0x32, 0x20, 0x03, 0x41, 0x40, 0x48, 0x17, 0x4f, 0x04, 0x20, 0x00, - 0x1a, 0x28, 0x23, 0x47, 0x40, 0x28, 0x2d, 0x3b, 0x04, 0x38, 0x05, 0x28, - 0x2b, 0x06, 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x01, 0x1c, 0x22, 0x06, - 0x22, 0x06, 0x06, 0x1c, 0x20, 0x06, 0x00, 0x2e, 0x22, 0x1c, 0x1c, 0x1c, - 0x1c, 0x70, 0x19, 0x50, 0x15, 0x2c, 0xa1, 0x1e, 0x68, 0x17, 0xc0, 0x30, - 0xb3, 0x30, 0x6b, 0xbf, 0x06, 0x08, 0x13, 0xf8, 0x17, 0x44, 0x2f, 0xb5, - 0x6b, 0x2f, 0xbf, 0x3f, 0xbd, 0xff, 0x05, 0x7f, 0xba, 0xb0, 0x73, 0x05, - 0xf8, 0x13, 0x08, 0x30, 0xff, 0x05, 0xb8, 0x13, 0x00, 0xf0, 0x7f, 0x05, - 0x16, 0x15, 0x38, 0x17, 0x03, 0xbe, 0x8f, 0xd1, 0x79, 0xd6, 0x4e, 0x06, - 0x58, 0x15, 0x58, 0x17, 0x03, 0xe4, 0xb2, 0x54, 0xcf, 0xc0, 0xd0, 0x06, - 0x18, 0x13, 0x08, 0x33, 0x7f, 0xd5, 0x05, 0xb8, 0x13, 0x00, 0x58, 0x17, - 0x14, 0x28, 0x1f, 0x3a, 0x28, 0x17, 0x42, 0x05, 0x08, 0x13, 0xc0, 0x07, - 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x1d, 0x23, 0x0a, 0x23, 0x0a, 0x0a, - 0x40, 0x1d, 0x20, 0x06, 0x2d, 0x23, 0x1d, 0x1d, 0x1d, 0x1d, 0x00, 0x49, - 0x21, 0x55, 0xb8, 0x00, 0x00, 0x1f, 0x31, 0x05, 0xcd, 0x30, 0xd6, 0x30, - 0xe9, 0x28, 0x19, 0xab, 0x06, 0x48, 0x15, 0x88, 0x3f, 0x2f, 0x65, 0x00, - 0x62, 0x2f, 0xb1, 0x61, 0x00, 0x73, 0xe0, 0x28, 0x13, 0x05, 0x98, 0x0f, - 0x10, 0x0f, 0x70, 0x7f, 0x85, 0x51, 0x03, 0x5e, 0xc9, 0x04, 0x62, 0xaf, - 0x65, 0xa0, 0x52, 0x06, 0x58, 0x19, 0x24, 0xb1, 0x00, 0x0c, 0xbe, 0x98, - 0xb7, 0xa4, 0xc2, 0x74, 0xce, 0xd5, 0x06, 0x78, 0x17, 0x07, 0x93, 0x7f, - 0x63, 0x06, 0x23, 0xff, 0x1d, 0x28, 0x17, 0x31, 0x28, 0x15, 0x1c, 0x30, - 0x04, 0x41, 0x28, 0x0d, 0x05, 0x38, 0x09, 0x10, 0x17, 0xd4, 0xff, 0x1e, - 0x1c, 0x02, 0x1f, 0x1c, 0x20, 0x20, 0x1e, 0x1e, 0x20, 0x04, 0x1c, 0x00, - 0x1e, 0x1e, 0x1e, 0x1e, 0x03, 0x1d, 0x43, 0xbb, 0x00, 0x00, 0x00, 0x20, - 0x31, 0xcb, 0x30, 0xe5, 0x30, 0x00, 0xfc, 0x30, 0xcf, 0x30, 0xf3, 0x30, - 0xd7, 0x30, 0x1d, 0xb7, 0x30, 0xe3, 0x20, 0x0b, 0x05, 0xdd, 0x39, 0x38, - 0x17, 0x77, 0x2f, 0xa9, 0x44, 0x48, 0x2f, 0xb7, 0x6d, 0x00, 0x70, 0x28, - 0x1d, 0x68, 0x00, 0x75, 0x69, 0x2f, 0xad, 0x05, 0x3c, 0x2b, 0x10, 0x07, - 0x50, 0x7f, 0x75, 0x2e, 0x17, 0x76, 0x4e, 0x27, 0x80, 0x06, 0x32, 0x03, - 0xb0, 0x65, 0x55, 0x7f, 0x03, 0x5e, 0xc0, 0x10, 0x4e, 0x14, 0x5c, 0x06, - 0x5b, 0x17, 0x74, 0xb2, 0x84, 0xd5, 0x0d, 0x04, 0xd5, 0x54, 0xc1, 0x06, - 0x58, 0x15, 0x07, 0x33, 0x7f, 0x6f, 0x21, 0xfd, 0x40, 0x61, 0x06, 0x84, - 0x01, 0x1d, 0x04, 0x4c, 0x04, 0x4e, 0x04, 0x00, 0x2d, 0x00, 0x13, 0x04, - 0x4d, 0x04, 0x3c, 0x04, 0x07, 0x3f, 0x04, 0x48, 0x04, 0x38, 0x28, 0x25, - 0x10, 0x15, 0xb4, 0xff, 0x06, 0xd6, 0xff, 0x00, 0x1f, 0x1e, 0x21, 0x1e, - 0x22, 0x24, 0x1f, 0x1f, 0x00, 0x1e, 0x22, 0x22, 0x1e, 0x1f, 0x1f, 0x1f, - 0x1f, 0x01, 0xb9, 0x1e, 0x21, 0xcd, 0x00, 0x00, 0x21, 0x68, 0x17, 0x5a, - 0xb8, 0x48, 0x11, 0xb8, 0x06, 0x08, 0x15, 0x98, 0x17, 0x4a, 0x2f, 0xb7, - 0x72, 0x8f, 0x2f, 0xb3, 0x65, 0x00, 0x79, 0x10, 0x0d, 0xe0, 0x7f, 0x58, - 0x17, 0x36, 0x19, 0x06, 0x32, 0x03, 0x03, 0xb0, 0x65, 0xfd, 0x6c, 0x7f, - 0x89, 0x06, 0x58, 0x13, 0x58, 0x17, 0x0e, 0x00, 0xc8, 0xc0, 0xc9, 0x06, - 0x78, 0x15, 0x07, 0x33, 0x7f, 0x78, 0x17, 0x4a, 0x2c, 0x00, 0xe9, 0x64, - 0x01, 0x69, 0x05, 0xaf, 0xb4, 0x78, 0x17, 0x14, 0x04, 0x17, 0x36, 0x04, - 0x35, 0x28, 0x11, 0x41, 0x28, 0x17, 0x10, 0x15, 0xd4, 0xff, 0x06, 0xd6, - 0xff, 0x00, 0x20, 0x1f, 0x22, 0x1f, 0x23, 0x22, 0x20, 0x20, 0x00, 0x1f, - 0x24, 0x23, 0x1f, 0x20, 0x20, 0x20, 0x20, 0x01, 0x99, 0x1c, 0xda, 0xca, - 0x00, 0x00, 0x22, 0x68, 0x17, 0x01, 0xe1, 0x30, 0xad, 0x30, 0xb7, 0x30, - 0xb3, 0x06, 0x08, 0x15, 0xab, 0x9f, 0xaf, 0x4d, 0x2f, 0xb7, 0x78, 0x2f, - 0xa9, 0x63, 0x2e, 0x39, 0x05, 0xf4, 0x97, 0x51, 0x75, 0x2e, 0xaf, 0x65, - 0x2f, 0xaf, 0x75, 0x00, 0x2d, 0x80, 0x87, 0x6e, 0x71, 0x4e, 0xc7, 0x0d, - 0x30, 0xff, 0x75, 0x4d, 0xb1, 0x3f, 0xaf, 0x31, 0x83, 0x73, 0xf4, 0x2f, - 0xad, 0x05, 0xb1, 0x85, 0x78, 0x17, 0x50, 0x7f, 0xe9, 0x06, 0x02, 0x03, - 0xb0, 0x65, 0x02, 0xa8, 0x58, 0x7f, 0x89, 0xe5, 0x54, 0x06, 0x78, 0x19, - 0x74, 0x01, 0xb2, 0x55, 0xba, 0xdc, 0xc2, 0x54, 0xcf, 0x06, 0x78, 0x19, - 0xea, 0x07, 0x33, 0x7f, 0x06, 0x91, 0xfd, 0x98, 0x17, 0x1c, 0x28, 0x15, - 0x3a, 0x48, 0x15, 0x3a, 0x38, 0x04, 0x3e, 0x05, 0xa8, 0x19, 0x07, 0x14, - 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x21, 0x20, 0x24, 0x04, 0x20, 0x25, 0x25, - 0x21, 0x21, 0x20, 0x04, 0x20, 0x21, 0x00, 0x21, 0x21, 0x21, 0x60, 0x19, - 0xab, 0xb4, 0x00, 0x00, 0x00, 0x23, 0x31, 0xcd, 0x30, 0xd0, 0x30, 0xc0, - 0xec, 0x06, 0x28, 0x0f, 0xbf, 0xaf, 0x3e, 0x2d, 0x64, 0x2e, 0x31, 0x10, - 0x16, 0x30, 0x7f, 0x85, 0x51, 0x08, 0x4e, 0x53, 0xbe, 0x8f, 0x06, 0x92, - 0xff, 0x24, 0xb1, 0x14, 0x1a, 0xbc, 0xe4, 0xb2, 0x06, 0x78, 0x15, 0x0f, - 0x13, 0x7f, 0x1d, 0x28, 0x0f, 0x32, 0x0c, 0x04, 0x30, 0x04, 0x34, 0x20, - 0x03, 0x10, 0x1e, 0x34, 0xff, 0x22, 0x1d, 0x02, 0x20, 0x1d, 0x21, 0x21, - 0x22, 0x22, 0x20, 0x04, 0x1d, 0x00, 0x22, 0x22, 0x22, 0x22, 0xd9, 0x1b, - 0xd6, 0xaa, 0x80, 0x24, 0x95, 0x31, 0xcb, 0x30, 0xe5, 0x30, 0xfc, 0x30, - 0x5a, 0xe8, 0x20, 0x03, 0xaf, 0x06, 0x48, 0x1d, 0x7f, 0x2f, 0x59, 0x2f, - 0xb7, 0x72, 0x2c, 0x00, 0x6b, 0x10, 0x0e, 0x20, 0x7f, 0x75, 0x6a, 0x19, - 0x06, 0x52, 0x03, 0xbd, 0x7e, 0x20, 0xa6, 0x7e, 0x06, 0x9b, 0x15, 0x00, - 0x00, 0x74, 0xb2, 0x95, 0x6a, 0xc6, 0x06, 0x98, 0x15, 0x07, 0x33, 0x7f, - 0x6f, 0x61, 0xfd, 0x49, 0x44, 0x01, 0x71, 0xc0, 0x42, 0x0f, 0x05, 0xb8, - 0x17, 0x4c, 0x04, 0x4e, 0x04, 0x2d, 0x00, 0x01, 0x19, 0x04, 0x3e, 0x04, - 0x40, 0x04, 0x3a, 0x06, 0x08, 0x1b, 0xc0, 0x10, 0x0f, 0x14, 0xff, 0x06, - 0xd6, 0xff, 0x23, 0x21, 0x23, 0x21, 0x24, 0x23, 0x48, 0x23, 0x20, 0x06, - 0x24, 0x21, 0x20, 0x06, 0x23, 0x54, 0x1e, 0x00, 0x8e, 0xcb, 0x00, 0x00, - 0x25, 0x31, 0xaa, 0x30, 0x06, 0xcf, 0x30, 0xa4, 0x30, 0xaa, 0x06, 0x48, - 0x13, 0x3f, 0xff, 0x4f, 0x0e, 0x00, 0x68, 0x00, 0x69, 0x28, 0x13, 0x06, - 0x7d, 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0xc4, 0x04, 0x4f, 0xa5, 0x4e, 0xc4, - 0x4f, 0x06, 0x98, 0x19, 0x24, 0xc6, 0x06, 0x58, 0xd5, 0x74, 0xc7, 0x24, - 0x06, 0x88, 0x1b, 0x0e, 0xf3, 0x7f, 0x1e, 0x03, 0x04, 0x33, 0x04, 0x30, - 0x04, 0x39, 0x28, 0x15, 0x10, 0x1e, 0x54, 0xff, 0x00, 0x24, 0x24, 0x25, - 0x24, 0x26, 0x26, 0x24, 0x24, 0x80, 0x50, 0x04, 0x24, 0x24, 0x6a, 0x1c, - 0xfb, 0xc4, 0x00, 0x20, 0x00, 0x26, 0x28, 0x17, 0xaf, 0x30, 0xe9, 0x30, - 0xdb, 0x2a, 0x30, 0xde, 0x06, 0x68, 0x19, 0x4f, 0x2f, 0xa3, 0x6c, 0x2e, - 0x2d, 0x68, 0xb0, 0x2f, 0xaf, 0x6d, 0x2e, 0x35, 0x10, 0x15, 0xf0, 0x7f, - 0xc4, 0x4f, 0x4b, 0x51, 0x02, 0xc9, 0x62, 0x55, 0x4f, 0x6c, 0x9a, 0x06, - 0x5b, 0x19, 0x24, 0x00, 0xc6, 0x74, 0xd0, 0x7c, 0xb7, 0x38, 0xd6, 0xc8, - 0x60, 0xb9, 0x06, 0x58, 0x19, 0x0e, 0xf3, 0x7f, 0x1e, 0x04, 0x3a, 0x04, - 0x3b, 0xac, 0x28, 0x19, 0x45, 0x28, 0x19, 0x3c, 0x28, 0x21, 0x10, 0x1d, - 0xf4, 0xff, 0x25, 0x25, 0x02, 0x26, 0x25, 0x27, 0x27, 0x25, 0x25, 0x50, - 0x04, 0x25, 0x00, 0x25, 0x38, 0x19, 0xa8, 0xba, 0x00, 0x00, 0x27, 0x83, - 0x28, 0x17, 0xec, 0x30, 0xb4, 0x30, 0xf3, 0x06, 0x68, 0x15, 0x3f, 0xaf, - 0x05, 0x72, 0x00, 0x65, 0x00, 0x67, 0x2f, 0xb1, 0x6e, 0x10, 0x0e, 0xc0, - 0x7f, 0x40, 0xf3, 0x06, 0x61, 0xff, 0xc4, 0x4f, 0xd2, 0x52, 0x88, 0x51, - 0xc3, 0x06, 0x72, 0xfd, 0x38, 0x17, 0xac, 0xb9, 0x74, 0xac, 0x06, 0x58, - 0x13, 0x0f, 0x33, 0x7f, 0x01, 0x1e, 0x04, 0x40, 0x04, 0x35, 0x04, 0x33, - 0x28, 0x15, 0x70, 0x3d, 0x06, 0x08, 0x13, 0x10, 0x0f, 0xb4, 0xff, 0x06, - 0x76, 0xff, 0x26, 0x26, 0x27, 0x26, 0x01, 0x28, 0x28, 0x26, 0x26, 0x26, - 0x28, 0x29, 0x20, 0x04, 0x00, 0x26, 0x26, 0xf5, 0x1f, 0x83, 0xa8, 0x00, - 0x00, 0x10, 0x28, 0x31, 0xda, 0x28, 0x13, 0xb7, 0x30, 0xeb, 0x30, 0x05, - 0xd9, 0x30, 0xcb, 0x30, 0xa2, 0x06, 0x28, 0x1d, 0x50, 0x28, 0x15, 0x45, - 0x6e, 0x28, 0x13, 0x73, 0x00, 0x79, 0x2f, 0xb7, 0x76, 0x2f, 0xb9, 0x1b, - 0x6e, 0x00, 0x69, 0x05, 0xaf, 0xb7, 0x00, 0x50, 0x7f, 0x65, 0x0e, 0xe0, - 0xff, 0x05, 0xf1, 0x7f, 0x60, 0x73, 0x21, 0xf3, 0x06, 0x31, 0xfd, 0x00, - 0x00, 0xbe, 0x5b, 0x15, 0x01, 0x59, 0xd5, 0x6c, 0x3c, 0x5c, 0x9a, 0x4e, - 0x06, 0x5b, 0x19, 0x00, 0x9c, 0xd3, 0xe4, 0xc2, 0xa0, 0xbc, 0x74, 0xc7, - 0x0d, 0xc8, 0xb2, 0x44, 0xc5, 0x06, 0x38, 0x1d, 0x07, 0xd1, 0xff, 0xe2, - 0x06, 0x01, 0xff, 0x40, 0x1f, 0x28, 0x15, 0x3d, 0x04, 0x41, 0x04, 0x38, - 0x04, 0x01, 0x3b, 0x04, 0x4c, 0x04, 0x32, 0x04, 0x30, 0x28, 0x1f, 0x1c, - 0x38, 0x04, 0x4f, 0x05, 0x88, 0x23, 0x0f, 0x53, 0xff, 0x10, 0x06, 0x90, - 0xff, 0x27, 0x27, 0x00, 0x28, 0x27, 0x29, 0x29, 0x27, 0x27, 0x27, 0x29, - 0x40, 0x2a, 0x20, 0x04, 0x27, 0x27, 0xa3, 0x1c, 0x54, 0xc9, 0x00, 0x00, - 0x00, 0x29, 0x31, 0xed, 0x30, 0xfc, 0x30, 0x45, 0xc9, 0x28, 0x11, 0xa4, - 0x30, 0xe9, 0x28, 0x21, 0xc9, 0x06, 0x08, 0x19, 0x14, 0x52, 0x00, 0x68, - 0x2f, 0xab, 0x64, 0x2f, 0xb3, 0x20, 0x00, 0x54, 0x49, 0x28, 0x1d, 0x6c, - 0x48, 0x19, 0x64, 0x10, 0x15, 0x80, 0x7f, 0x57, 0x7f, 0x0c, 0x97, 0x5f, - 0x9b, 0x5c, 0x06, 0x58, 0x13, 0x3f, 0xff, 0x5c, 0xb8, 0x00, 0xdc, 0xb4, - 0x44, 0xc5, 0x7c, 0xc7, 0x9c, 0xb7, 0x30, 0xdc, 0xb4, 0x06, 0x38, 0x17, - 0x0e, 0xf3, 0x7f, 0x20, 0x04, 0x3e, 0x04, 0x01, 0x34, 0x04, 0x2d, 0x00, - 0x10, 0x04, 0x39, 0x28, 0x19, 0xb0, 0x38, 0x23, 0x34, 0x05, 0x88, 0x13, - 0x10, 0x17, 0x34, 0xff, 0x28, 0x29, 0x2a, 0x29, 0x00, 0x2b, 0x2b, 0x28, - 0x28, 0x29, 0x2b, 0x2c, 0x29, 0x00, 0x28, 0x28, 0x28, 0x28, 0xbd, 0x1d, - 0x38, 0xcd, 0x00, 0x00, 0x00, 0x2a, 0x31, 0xb5, 0x30, 0xa6, 0x30, 0x04, - 0xb9, 0x30, 0xab, 0x30, 0xed, 0x28, 0x17, 0xa4, 0x30, 0x51, 0xca, 0x06, - 0x08, 0x17, 0x53, 0x28, 0x15, 0x75, 0x00, 0x74, 0x28, 0x1d, 0x15, 0x20, - 0x00, 0x43, 0x2f, 0xad, 0x72, 0x28, 0x25, 0x6c, 0x2f, 0xb1, 0x75, 0x6e, - 0x05, 0x6f, 0x33, 0xd0, 0x73, 0x38, 0x9d, 0x64, 0x20, 0x8f, 0x20, 0x20, - 0x97, 0x6b, 0x75, 0x05, 0x48, 0x9d, 0x07, 0xd0, 0xff, 0x61, 0x40, 0xff, - 0x65, 0x2f, 0xbb, 0x05, 0x71, 0x01, 0xa0, 0x00, 0xd0, 0x7f, 0x72, 0x05, - 0x18, 0x17, 0x53, 0x61, 0x53, 0x57, 0x7f, 0x08, 0x65, 0x67, 0xb3, 0x7e, - 0x06, 0x58, 0x1b, 0xac, 0xc0, 0xb0, 0x00, 0xc6, 0xa4, 0xc2, 0x90, 0xce, - 0x64, 0xb8, 0x7c, 0x06, 0xb7, 0x74, 0xc7, 0x98, 0xb0, 0x05, 0xf8, 0x1b, - 0x08, 0x32, 0x7f, 0x6f, 0xa2, 0x63, 0x7f, 0x6c, 0x05, 0x2f, 0xb4, 0x2e, - 0x04, 0x36, 0x28, 0x0b, 0x30, 0x02, 0x04, 0x4f, 0x04, 0x20, 0x00, 0x1a, - 0x20, 0x07, 0x40, 0x8e, 0x28, 0x27, 0x3b, 0x04, 0x38, 0x40, 0x13, 0x0d, - 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x29, 0x02, 0x2a, 0x07, 0x2a, 0x07, - 0x07, 0x29, 0x20, 0x06, 0x33, 0x00, 0x2a, 0x29, 0x29, 0x29, 0x29, 0x2d, - 0x18, 0x61, 0x08, 0xc6, 0x00, 0x00, 0x2b, 0x68, 0x17, 0xc0, 0x30, 0xb3, - 0x35, 0x30, 0xbf, 0x06, 0x08, 0x13, 0xf8, 0x17, 0x44, 0x2f, 0xab, 0x6b, - 0x2f, 0xbd, 0x7f, 0x74, 0x05, 0x68, 0x13, 0x3f, 0xff, 0xb0, 0x73, 0x05, - 0xf8, 0x13, 0x08, 0x30, 0xff, 0x05, 0xb8, 0x13, 0x00, 0xd0, 0x7f, 0xc0, - 0x05, 0x18, 0x13, 0x58, 0x17, 0xbe, 0x8f, 0xd1, 0x79, 0xd6, 0x4e, 0xc0, - 0x06, 0x58, 0x15, 0x78, 0x17, 0xe4, 0xb2, 0x54, 0xcf, 0xc0, 0xd0, 0xf5, - 0x05, 0xf8, 0x13, 0x08, 0x33, 0x7f, 0x05, 0xb8, 0x13, 0xf8, 0x17, 0x14, - 0x28, 0x1f, 0x3a, 0x28, 0x17, 0x70, 0x42, 0x05, 0x68, 0x13, 0x07, 0x34, - 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x2a, 0x2b, 0x0b, 0x2b, 0x10, 0x0b, 0x0b, - 0x2a, 0x20, 0x06, 0x32, 0x2b, 0x2a, 0x2a, 0x00, 0x2a, 0x2a, 0x8d, 0x1f, - 0xa4, 0xb8, 0x00, 0x00, 0x00, 0x2c, 0x31, 0xc6, 0x30, 0xcd, 0x30, 0xb7, - 0x30, 0x6a, 0xfc, 0x06, 0x48, 0x13, 0x3f, 0xff, 0x54, 0x2f, 0xa3, 0x6e, - 0x4f, 0xa9, 0x73, 0xb0, 0x20, 0x01, 0x65, 0x2f, 0xb1, 0x10, 0x15, 0xd0, - 0x7f, 0x30, 0x75, 0xb3, 0x7e, 0x20, 0x7f, 0x89, 0x06, 0x78, 0x15, 0x00, - 0x00, 0x4c, 0xd1, 0x24, 0x18, 0xb1, 0xdc, 0xc2, 0x06, 0x38, 0x11, 0x0f, - 0x53, 0x7f, 0x22, 0x04, 0x35, 0xab, 0x28, 0x17, 0x3d, 0x20, 0x05, 0x41, - 0x20, 0x01, 0x38, 0x05, 0x88, 0x0f, 0x10, 0x17, 0x74, 0xff, 0x00, 0x2b, - 0x2c, 0x2b, 0x2c, 0x2d, 0x2c, 0x2b, 0x2b, 0x10, 0x2c, 0x2c, 0x2f, 0x20, - 0x05, 0x2b, 0x2b, 0xb7, 0x19, 0x04, 0x4a, 0xc2, 0x00, 0x00, 0x2d, 0x28, - 0x17, 0xad, 0x30, 0x15, 0xb5, 0x30, 0xb9, 0x06, 0xc8, 0x17, 0x78, 0x2f, - 0xb3, 0x73, 0x06, 0x65, 0x98, 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x97, 0x5f, - 0x4b, 0x51, 0x28, 0x84, 0xaf, 0x41, 0x65, 0x06, 0x7b, 0x17, 0x4d, 0xd1, - 0xac, 0xc0, 0xa4, 0x06, 0xe8, 0x17, 0xc7, 0x0e, 0xb3, 0x7f, 0x38, 0x17, - 0x45, 0x04, 0x30, 0x28, 0x15, 0x10, 0x1e, 0x54, 0xff, 0x28, 0x14, 0x00, - 0x2d, 0x2e, 0x2d, 0x2c, 0x2c, 0x2d, 0x2d, 0x30, 0x80, 0x20, 0x05, 0x2c, - 0x2c, 0x85, 0x15, 0x7f, 0xba, 0x00, 0x03, 0x00, 0x2e, 0x31, 0xe6, 0x30, - 0xbf, 0x06, 0x88, 0x13, 0x3f, 0xff, 0x14, 0x55, 0x00, 0x74, 0x28, 0x15, - 0x68, 0x10, 0x16, 0x80, 0x7f, 0xb9, 0x72, 0x21, 0xd6, 0x4e, 0x06, 0xb2, - 0xff, 0x20, 0xc7, 0xc0, 0xd0, 0x06, 0x98, 0x15, 0x8e, 0x0f, 0x13, 0x7f, - 0x2e, 0x04, 0x42, 0x28, 0x15, 0x10, 0x1e, 0x94, 0xff, 0x28, 0x14, 0x2e, - 0x01, 0x2f, 0x2e, 0x2d, 0x2d, 0x2e, 0x2e, 0x34, 0x20, 0x05, 0x00, 0x2d, - 0x2d, 0xfc, 0x1c, 0x6f, 0xb0, 0x00, 0x00, 0x00, 0x2f, 0x31, 0xd0, 0x30, - 0xfc, 0x30, 0xb8, 0x30, 0x10, 0xcb, 0x30, 0xa2, 0x06, 0x68, 0x1d, 0x56, - 0x00, 0x69, 0x00, 0x15, 0x72, 0x00, 0x67, 0x20, 0x05, 0x6e, 0x20, 0x09, - 0x61, 0x06, 0xe0, 0x7f, 0x60, 0x65, 0x0e, 0xe0, 0xff, 0x0e, 0x10, 0x7f, - 0x17, 0x5f, 0x09, 0x54, 0x3c, 0x20, 0x5c, 0x9a, 0x06, 0x88, 0x1b, 0x84, - 0xbc, 0xc0, 0xc9, 0xc8, 0x1a, 0xb2, 0x44, 0xc5, 0x06, 0x78, 0x1b, 0x07, - 0x73, 0x7f, 0xed, 0x06, 0x63, 0xff, 0x12, 0x02, 0x04, 0x38, 0x04, 0x40, - 0x04, 0x33, 0x20, 0x05, 0x3d, 0xb8, 0x20, 0x09, 0x4f, 0x06, 0x08, 0x21, - 0x10, 0x06, 0xf3, 0xff, 0x0e, 0xf5, 0x7f, 0x2e, 0x30, 0x2f, 0x00, 0x30, - 0x31, 0x30, 0x2e, 0x2e, 0x30, 0x30, 0x0a, 0x82, 0x20, 0x05, 0x2e, 0x2e, - 0xb4, 0x1a, 0xeb, 0x2c, 0xa3, 0x30, 0x82, 0x48, 0x17, 0xe2, 0x30, 0xf3, - 0x30, 0xc8, 0x06, 0x88, 0x17, 0x65, 0x8a, 0x28, 0x17, 0x6d, 0x00, 0x6f, - 0x28, 0x17, 0x74, 0x10, 0x16, 0x20, 0x7f, 0x5b, 0x06, 0x4f, 0x99, 0x84, - 0x79, 0x72, 0x06, 0x78, 0x15, 0x38, 0x17, 0xac, 0x18, 0xba, 0xb8, 0xd2, - 0x06, 0x78, 0x15, 0x0f, 0x13, 0x7f, 0x12, 0x04, 0x35, 0x8b, 0x28, 0x17, - 0x3c, 0x04, 0x3e, 0x28, 0x17, 0x42, 0x06, 0x08, 0x15, 0x10, 0x17, 0x14, - 0xff, 0x01, 0x2f, 0x2f, 0x2e, 0x2f, 0x30, 0x2f, 0x2f, 0x20, 0x01, 0x40, - 0x09, 0x40, 0x05, 0x79, 0x1f, 0x64, 0xcc, 0x00, 0x00, 0x05, 0x31, 0x31, - 0xef, 0x30, 0xb7, 0x48, 0x15, 0xf3, 0x06, 0x68, 0x17, 0x45, 0x57, 0x2f, - 0x23, 0x73, 0x00, 0x68, 0x4f, 0xaf, 0x67, 0x28, 0x19, 0xd4, 0x38, 0x1f, - 0x10, 0x05, 0xb0, 0x7f, 0x53, 0x29, 0x8d, 0x61, 0x41, 0x77, 0x20, 0x00, - 0x58, 0x64, 0x2f, 0xbb, 0x20, 0x05, 0xe1, 0x91, 0x06, 0xf1, 0xff, 0x4e, - 0x53, 0xdb, 0x10, 0x76, 0x7f, 0x98, 0x06, 0x98, 0x17, 0xcc, 0xc6, 0xf1, - 0xc2, 0x30, 0x34, 0xd1, 0x06, 0x98, 0x17, 0x0e, 0xf3, 0x7f, 0x12, 0x04, - 0x30, 0x04, 0x16, 0x48, 0x04, 0x38, 0x28, 0x15, 0x33, 0x28, 0x17, 0x38, - 0x1d, 0x20, 0x0a, 0x00, 0x28, 0x00, 0x48, 0x28, 0x23, 0x30, 0x28, 0x27, - 0x29, 0xc0, 0x10, 0x0d, 0x04, 0xff, 0x0e, 0xf6, 0x7f, 0x30, 0x31, 0x31, - 0x31, 0x2c, 0x32, 0x00, 0x30, 0x30, 0x31, 0x32, 0x08, 0x31, 0x30, 0x30, - 0x00, 0x30, 0x30, 0x73, 0x21, 0x9b, 0xa8, 0x00, 0x00, 0x00, 0x32, 0x31, - 0xa6, 0x30, 0xa3, 0x30, 0xb9, 0x30, 0x74, 0xb3, 0x28, 0x1b, 0x38, 0x1f, - 0x06, 0x1d, 0x37, 0x57, 0x28, 0x11, 0x73, 0x00, 0x58, 0x63, 0x4f, 0xaf, - 0x73, 0x48, 0x1d, 0x10, 0x15, 0xd0, 0x7f, 0x01, 0x5a, 0xaf, 0x04, 0x65, - 0xb7, 0x5e, 0x1f, 0x66, 0x06, 0x78, 0x19, 0x04, 0xc7, 0x03, 0xa4, 0xc2, - 0x58, 0xcf, 0xe0, 0xc2, 0x06, 0x78, 0x19, 0x0e, 0xf3, 0x7f, 0x45, 0x12, - 0x28, 0x13, 0x41, 0x04, 0x3a, 0x48, 0x11, 0x41, 0x48, 0x1f, 0x8a, 0x10, - 0x1d, 0xd4, 0xff, 0x31, 0x33, 0x33, 0x20, 0x01, 0x31, 0x20, 0x06, 0x0b, - 0x80, 0x20, 0x05, 0x31, 0x31, 0xa1, 0x1e, 0x6e, 0xc0, 0x00, 0x28, 0x00, - 0x33, 0x28, 0x17, 0xa7, 0x28, 0x17, 0xc8, 0x30, 0xd0, 0x00, 0x30, 0xfc, - 0x30, 0xb8, 0x30, 0xcb, 0x30, 0xa2, 0x8a, 0x05, 0xe8, 0x1b, 0x57, 0x00, - 0x65, 0x2f, 0xaf, 0x74, 0x2e, 0xad, 0x56, 0xb7, 0x2f, 0xb3, 0x72, 0x2f, - 0xb3, 0x3f, 0xb9, 0x69, 0x2f, 0xc5, 0x05, 0x5f, 0xb6, 0xd0, 0x75, 0x55, - 0x65, 0x2f, 0x35, 0x4f, 0x28, 0xa5, 0x63, 0x2f, 0xbf, 0x64, 0x20, 0x99, - 0x5b, 0x6e, 0x4f, 0x4d, 0x6c, 0x20, 0xa3, 0x0d, 0x50, 0xff, 0x61, 0x06, - 0x00, 0xff, 0x01, 0x50, 0x7f, 0x80, 0x04, 0x9f, 0xcd, 0x7f, 0x89, 0x17, - 0x5f, 0x09, 0x54, 0x3c, 0x10, 0x5c, 0x9a, 0x4e, 0x06, 0x58, 0x19, 0xe8, - 0xc6, 0xa4, 0xc2, 0x00, 0xb8, 0xd2, 0x84, 0xbc, 0xc0, 0xc9, 0xc8, 0xb2, - 0x36, 0x44, 0xc5, 0x06, 0x18, 0x1d, 0x07, 0x73, 0x7f, 0xed, 0xc2, 0x7f, - 0x05, 0x71, 0xfd, 0x00, 0x02, 0x00, 0x17, 0x04, 0x30, 0x04, 0x3f, 0x20, - 0x03, 0x34, 0x82, 0x28, 0x17, 0x30, 0x04, 0x4f, 0x04, 0x20, 0x48, 0x29, - 0x40, 0x2e, 0x04, 0x33, 0x48, 0x23, 0x38, 0x20, 0x11, 0x0c, 0xd4, 0xff, - 0x10, 0x0e, 0xf0, 0x7f, 0x32, 0x02, 0x32, 0x30, 0x32, 0x32, 0x31, 0x32, - 0x20, 0x03, 0x0f, 0x80, 0x20, 0x04, 0x32, 0x32, 0x45, 0x1b, 0xf4, 0xc5, - 0x00, 0x00, 0x00, 0x34, 0x31, 0xef, 0x30, 0xa4, 0x30, 0xaa, 0x03, 0x30, - 0xdf, 0x30, 0xf3, 0x30, 0xb0, 0x05, 0xe8, 0x11, 0x7f, 0xaf, 0x56, 0x79, - 0x2f, 0xab, 0x6d, 0x4f, 0xa9, 0x67, 0x06, 0x4d, 0x2f, 0x10, 0x0e, 0xd0, - 0x7f, 0x00, 0x06, 0x60, 0xc4, 0x4f, 0x0e, 0x66, 0x06, 0x58, 0x13, 0x3f, - 0xff, 0x40, 0x01, 0xc6, 0x74, 0xc7, 0x24, 0xc6, 0x0d, 0xbc, 0x06, 0x18, - 0x11, 0xa0, 0x0f, 0x53, 0x7f, 0x12, 0x28, 0x17, 0x39, 0x04, 0x3e, 0x04, - 0x3c, 0xb1, 0x48, 0x07, 0x33, 0x04, 0xe8, 0x05, 0x10, 0x18, 0x14, 0xff, - 0x33, 0x34, 0x34, 0x20, 0x01, 0x50, 0x33, 0x20, 0x06, 0x07, 0x20, 0x05, - 0x33, 0x33, 0x41, 0x1d, 0x00, 0x77, 0xb5, 0x00, 0x00, 0x35, 0x31, 0xd7, - 0x30, 0x00, 0xa8, 0x30, 0xeb, 0x30, 0xc8, 0x30, 0xea, 0x30, 0x22, 0xb3, - 0x30, 0x06, 0x3d, 0x2f, 0x50, 0x00, 0x75, 0x2f, 0xa5, 0x72, 0xab, 0x2f, - 0x97, 0x6f, 0x2f, 0xab, 0x52, 0x2f, 0xbd, 0x63, 0x28, 0x27, 0x05, 0xb0, - 0x7f, 0x60, 0x6f, 0x06, 0xa0, 0x7d, 0x10, 0x07, 0x10, 0xff, 0xe2, 0x6c, - 0x1a, 0x59, 0xce, 0x10, 0x9e, 0x04, 0x54, 0x06, 0x78, 0x17, 0x78, 0xd4, - 0xd0, 0xc5, 0x00, 0x74, 0xb9, 0xa0, 0xd1, 0xac, 0xb9, 0x54, 0xcf, 0x80, - 0x10, 0x06, 0x33, 0x7f, 0x1f, 0x04, 0x43, 0x04, 0x4d, 0x04, 0x40, 0x22, - 0x04, 0x42, 0x28, 0x1b, 0x2d, 0x00, 0x20, 0x28, 0x1d, 0x3a, 0xe0, 0x28, - 0x25, 0x0d, 0xb4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x34, 0x28, 0x29, 0x28, - 0x2a, 0x01, 0x2a, 0x34, 0x34, 0x28, 0x2a, 0x2b, 0x28, 0x38, 0x22, 0x08, - 0x22, 0x0d, 0xfe, 0xd0, 0x00, 0x3f, 0xff, 0x01, 0x09, 0x32, 0x00, 0x08, - 0x0d, 0x0d, 0x01, 0x01, 0x09, 0x0d, 0x28, 0x01, 0x09, 0x01, 0x01, 0x01, - 0x01, 0x02, 0x02, 0x70, 0x01, 0x52, 0x04, 0x40, 0x0a, 0x03, 0x30, 0x14, - 0x01, 0x03, 0x20, 0x06, 0x03, 0x85, 0x20, 0x05, 0x03, 0x03, 0x04, 0x04, - 0x70, 0x01, 0x06, 0x40, 0x0a, 0x4a, 0x05, 0x30, 0x14, 0x03, 0x05, 0x20, - 0x06, 0x05, 0x20, 0x05, 0x05, 0x06, 0x05, 0x06, 0x05, 0x05, 0x10, 0x20, - 0x05, 0x20, 0x06, 0x12, 0x80, 0x20, 0x05, 0x06, 0x06, 0x07, 0x06, 0x08, - 0x05, 0x08, 0x20, 0x08, 0x07, 0x20, 0x06, 0x15, 0x06, 0x07, 0x07, 0x07, - 0x01, 0x07, 0x08, 0x07, 0x09, 0x06, 0x09, 0x09, 0x20, 0x11, 0x00, 0x09, - 0x16, 0x07, 0x08, 0x08, 0x08, 0x08, 0x09, 0x04, 0x08, 0x0c, 0x07, 0x0c, - 0x0c, 0x20, 0x11, 0x0c, 0x0d, 0x00, 0x08, 0x09, 0x09, 0x09, 0x09, 0x0a, - 0x0a, 0x0d, 0x00, 0x09, 0x0e, 0x0e, 0x0a, 0x0a, 0x0a, 0x0e, 0x31, 0x80, - 0x20, 0x04, 0x0a, 0x0a, 0x0b, 0x0b, 0x0e, 0x0a, 0x0f, 0x02, 0x0f, 0x0b, - 0x0b, 0x0b, 0x0f, 0x0e, 0x20, 0x04, 0x0b, 0x00, 0x0b, 0x0c, 0x0c, 0x0f, - 0x0b, 0x10, 0x10, 0x0c, 0x30, 0x0c, 0x0c, 0x30, 0x03, 0x20, 0x06, 0x0d, - 0x10, 0x13, 0x0f, 0x00, 0x14, 0x14, 0x0d, 0x0d, 0x10, 0x14, 0x02, 0x10, - 0x00, 0x0d, 0x0d, 0x0d, 0x0d, 0x0e, 0x0d, 0x10, 0x0c, 0x00, 0x11, 0x11, - 0x0e, 0x0e, 0x0d, 0x11, 0x01, 0x0d, 0x00, 0x0e, 0x0e, 0x0e, 0x0e, 0x0f, - 0x0e, 0x11, 0x0d, 0x00, 0x12, 0x12, 0x0f, 0x0f, 0x0e, 0x12, 0x10, 0x0e, - 0x00, 0x0f, 0x0f, 0x0f, 0x0f, 0x10, 0x0f, 0x12, 0x0e, 0x00, 0x13, 0x13, - 0x10, 0x10, 0x0f, 0x13, 0x11, 0x0f, 0x00, 0x10, 0x10, 0x10, 0x10, 0x11, - 0x11, 0x14, 0x11, 0x01, 0x15, 0x15, 0x11, 0x11, 0x11, 0x15, 0x13, 0x20, - 0x04, 0x00, 0x11, 0x11, 0x12, 0x12, 0x15, 0x12, 0x16, 0x16, 0x04, 0x12, - 0x12, 0x12, 0x16, 0x14, 0x20, 0x04, 0x12, 0x12, 0x00, 0x13, 0x13, 0x16, - 0x13, 0x17, 0x17, 0x13, 0x13, 0x80, 0x50, 0x04, 0x13, 0x13, 0x14, 0x16, - 0x19, 0x16, 0x1a, 0x00, 0x1a, 0x14, 0x14, 0x16, 0x1a, 0x18, 0x16, 0x14, - 0x00, 0x14, 0x14, 0x14, 0x15, 0x15, 0x18, 0x15, 0x19, 0x02, 0x19, 0x15, - 0x15, 0x15, 0x19, 0x1f, 0x20, 0x04, 0x15, 0x00, 0x15, 0x16, 0x14, 0x17, - 0x14, 0x18, 0x18, 0x16, 0x00, 0x16, 0x14, 0x18, 0x1e, 0x14, 0x16, 0x16, - 0x16, 0x00, 0x16, 0x17, 0x17, 0x1a, 0x17, 0x1b, 0x1b, 0x17, 0x08, 0x17, - 0x17, 0x1b, 0x1c, 0x20, 0x04, 0x17, 0x17, 0x18, 0x00, 0x18, 0x1b, 0x18, - 0x1c, 0x1c, 0x18, 0x18, 0x18, 0x20, 0x1c, 0x19, 0x20, 0x04, 0x18, 0x18, - 0x19, 0x1a, 0x1d, 0x00, 0x1a, 0x1e, 0x1e, 0x19, 0x19, 0x1a, 0x1e, 0x1b, - 0x10, 0x1a, 0x19, 0x19, 0x20, 0x07, 0x19, 0x1c, 0x19, 0x1d, 0x00, 0x1d, - 0x1a, 0x1a, 0x19, 0x1d, 0x1a, 0x19, 0x1a, 0x00, 0x1a, 0x1a, 0x1a, 0x1b, - 0x1b, 0x1e, 0x1b, 0x1f, 0x02, 0x1f, 0x1b, 0x1b, 0x1b, 0x1f, 0x1d, 0x20, - 0x04, 0x1b, 0x00, 0x1b, 0x1c, 0x22, 0x06, 0x22, 0x06, 0x06, 0x1c, 0x80, - 0x20, 0x06, 0x2e, 0x22, 0x1c, 0x1c, 0x1c, 0x1c, 0x1d, 0x02, 0x23, 0x0a, - 0x23, 0x0a, 0x0a, 0x1d, 0x20, 0x06, 0x2d, 0x00, 0x23, 0x1d, 0x1d, 0x1d, - 0x1d, 0x1e, 0x1c, 0x1f, 0x04, 0x1c, 0x20, 0x20, 0x1e, 0x1e, 0x20, 0x04, - 0x1c, 0x1e, 0x00, 0x1e, 0x1e, 0x1e, 0x1f, 0x1e, 0x21, 0x1e, 0x22, 0x00, - 0x24, 0x1f, 0x1f, 0x1e, 0x22, 0x22, 0x1e, 0x1f, 0x00, 0x1f, 0x1f, 0x1f, - 0x20, 0x1f, 0x22, 0x1f, 0x23, 0x00, 0x22, 0x20, 0x20, 0x1f, 0x24, 0x23, - 0x1f, 0x20, 0x00, 0x20, 0x20, 0x20, 0x21, 0x20, 0x24, 0x20, 0x25, 0x10, - 0x25, 0x21, 0x21, 0x20, 0x04, 0x20, 0x21, 0x21, 0x21, 0x05, 0x21, 0x22, - 0x1d, 0x20, 0x1d, 0x20, 0x05, 0x22, 0x20, 0x04, 0x00, 0x1d, 0x22, 0x22, - 0x22, 0x22, 0x23, 0x21, 0x23, 0x09, 0x21, 0x24, 0x23, 0x23, 0x20, 0x06, - 0x24, 0x21, 0x20, 0x06, 0x00, 0x23, 0x24, 0x24, 0x25, 0x24, 0x26, 0x26, - 0x24, 0x60, 0x24, 0x50, 0x04, 0x20, 0x0d, 0x25, 0x26, 0x25, 0x27, 0x27, - 0x30, 0x25, 0x25, 0x50, 0x04, 0x20, 0x0d, 0x26, 0x27, 0x26, 0x28, 0x03, - 0x28, 0x26, 0x26, 0x26, 0x28, 0x29, 0x20, 0x04, 0x20, 0x0d, 0x00, 0x27, - 0x28, 0x27, 0x29, 0x29, 0x27, 0x27, 0x27, 0x30, 0x29, 0x2a, 0x20, 0x04, - 0x20, 0x0d, 0x29, 0x2a, 0x29, 0x2b, 0x00, 0x2b, 0x28, 0x28, 0x29, 0x2b, - 0x2c, 0x29, 0x28, 0x40, 0x28, 0x20, 0x07, 0x2a, 0x07, 0x2a, 0x07, 0x07, - 0x29, 0x84, 0x20, 0x06, 0x33, 0x2a, 0x29, 0x29, 0x20, 0x07, 0x2b, 0x0b, - 0x08, 0x2b, 0x0b, 0x0b, 0x2a, 0x20, 0x06, 0x32, 0x2b, 0x2a, 0x40, 0x2a, - 0x20, 0x07, 0x2c, 0x2b, 0x2c, 0x2d, 0x2c, 0x2b, 0x0c, 0x2b, 0x2c, 0x2c, - 0x2f, 0x20, 0x05, 0x20, 0x07, 0x2d, 0x2c, 0x00, 0x2d, 0x2e, 0x2d, 0x2c, - 0x2c, 0x2d, 0x2d, 0x30, 0xc0, 0x20, 0x05, 0x20, 0x07, 0x2e, 0x2d, 0x2e, - 0x2f, 0x2e, 0x2d, 0x0c, 0x2d, 0x2e, 0x2e, 0x34, 0x20, 0x05, 0x20, 0x07, - 0x30, 0x2f, 0x00, 0x30, 0x31, 0x30, 0x2e, 0x2e, 0x30, 0x30, 0x0a, 0x80, - 0x20, 0x05, 0x2e, 0x2e, 0x2f, 0x2f, 0x2e, 0x2f, 0x30, 0x28, 0x2f, 0x2f, - 0x20, 0x01, 0x09, 0x40, 0x05, 0x30, 0x31, 0x31, 0x00, 0x31, 0x2c, 0x32, - 0x30, 0x30, 0x31, 0x32, 0x08, 0x19, 0x31, 0x30, 0x30, 0x20, 0x07, 0x3b, - 0x34, 0x33, 0x31, 0x20, 0x06, 0x40, 0x0b, 0x20, 0x05, 0x31, 0x31, 0x32, - 0x32, 0x30, 0x32, 0x44, 0x32, 0x20, 0x05, 0x32, 0x31, 0x0f, 0x20, 0x04, - 0x32, 0x32, 0xe0, 0xfb, 0x5f, 0xf3, 0x57, 0x7f, 0xf3, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x2c, 0xa3, 0x00, - 0x11, 0x13, 0x00, 0x00, 0x30, 0x01, 0x32, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x37, 0xe7, 0x0f, - 0xd8, 0x00, 0x00, 0x00, 0x02, 0x32, 0xe2, 0x30, 0xf3, 0x30, 0xc6, 0x01, - 0x30, 0xd3, 0x30, 0xc7, 0x30, 0xaa, 0x30, 0x06, 0x38, 0x21, 0x00, 0x4d, - 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x74, 0x00, 0x01, 0x65, 0x00, 0x76, 0x00, - 0x69, 0x00, 0x64, 0x20, 0x07, 0x40, 0x6f, 0x10, 0x15, 0xc0, 0x7f, 0x99, - 0x84, 0x97, 0x5f, 0xf4, 0x7e, 0x02, 0x84, 0x76, 0x9a, 0x4e, 0x01, 0x77, - 0x06, 0x3b, 0x21, 0xac, 0x00, 0xba, 0x4c, 0xd1, 0x44, 0xbe, 0x70, 0xb3, - 0x24, 0x68, 0xc6, 0x06, 0x5b, 0x9f, 0x08, 0x13, 0x7f, 0x75, 0x05, 0xcc, - 0xa8, 0x1c, 0x04, 0x3e, 0x00, 0x04, 0x3d, 0x04, 0x42, 0x04, 0x35, 0x04, - 0x32, 0x09, 0x04, 0x38, 0x04, 0x34, 0x20, 0x07, 0x3e, 0x04, 0x10, 0x1d, - 0xb4, 0xff, 0x15, 0x01, 0x0a, 0x0a, 0x20, 0x01, 0x01, 0x20, 0x06, 0x07, - 0x20, 0x05, 0x20, 0x01, 0x01, 0x58, 0x17, 0x03, 0x32, 0xa2, 0x30, 0xeb, - 0x82, 0x28, 0x17, 0xa3, 0x30, 0xac, 0x30, 0xb9, 0x06, 0x48, 0x17, 0x41, - 0x20, 0x00, 0x72, 0x28, 0x15, 0x69, 0x00, 0x67, 0x00, 0x61, 0x20, 0x00, - 0x73, 0x10, 0x16, 0x20, 0x7f, 0x3f, 0x96, 0x82, 0x84, 0xa0, 0x10, 0x52, - 0xaf, 0x65, 0x06, 0x58, 0x15, 0x00, 0x00, 0x44, 0xc5, 0x00, 0x74, 0xb9, - 0xf0, 0xd2, 0x00, 0xac, 0xa4, 0xc2, 0xc4, 0x06, 0x5f, 0xb7, 0x0e, 0xf3, - 0x7f, 0x10, 0x04, 0x40, 0x28, 0x15, 0x38, 0x04, 0x06, 0x33, 0x04, 0x30, - 0x04, 0x41, 0x05, 0xc8, 0x11, 0x10, 0x17, 0x54, 0xff, 0x02, 0x90, 0x38, - 0x0c, 0x01, 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x00, 0x62, 0xea, - 0xd9, 0xd7, 0x00, 0x00, 0x04, 0x32, 0x06, 0xab, 0x30, 0xcd, 0x30, 0xed, - 0x20, 0x03, 0x06, 0x58, 0x15, 0x00, 0x2a, 0x00, 0x43, 0x28, 0x0f, 0x6e, - 0x2f, 0xad, 0x6c, 0x4f, 0xb7, 0x65, 0xc0, 0x06, 0x08, 0x1b, 0x10, 0x0e, - 0xf0, 0x7f, 0x61, 0x53, 0x85, 0x51, 0x1b, 0x6d, 0x20, 0x85, 0x51, 0x06, - 0x78, 0x19, 0x74, 0xce, 0x2c, 0xb1, 0x5c, 0x1a, 0xb8, 0x24, 0xb1, 0x06, - 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1a, 0x28, 0x0f, 0x3d, 0x03, 0x04, 0x35, - 0x04, 0x3b, 0x04, 0x3e, 0x40, 0x07, 0x05, 0xf8, 0x1b, 0xa5, 0x10, 0x16, - 0xf4, 0xff, 0x03, 0x38, 0x0c, 0x02, 0x03, 0x20, 0x06, 0x03, 0x20, 0x05, - 0x04, 0x03, 0x03, 0x74, 0xe7, 0xfb, 0x28, 0x17, 0x05, 0x32, 0x40, 0xbb, - 0x28, 0x15, 0xfb, 0x30, 0xe9, 0x30, 0xeb, 0x30, 0x54, 0xb4, 0x06, 0x48, - 0x19, 0x43, 0x28, 0x13, 0x72, 0x2f, 0xb3, 0x6f, 0x00, 0x15, 0x20, 0x00, - 0x4c, 0x2f, 0xb3, 0x72, 0x2f, 0xb9, 0x6f, 0x10, 0x15, 0xa0, 0x7f, 0x00, - 0x5e, 0x58, 0x57, 0x7f, 0xc9, 0x62, 0x14, 0x5c, 0x20, 0x08, 0x62, 0x06, - 0x58, 0x17, 0x38, 0xc1, 0x5c, 0xb8, 0x7c, 0x06, 0xb7, 0x74, 0xb9, 0xe0, - 0xac, 0x06, 0x7b, 0x97, 0x0e, 0xd3, 0x7f, 0x21, 0xa0, 0x28, 0x13, 0x40, - 0x20, 0x01, 0x3e, 0x04, 0x2d, 0x00, 0x1b, 0x8d, 0x28, 0x23, 0x40, 0x04, - 0x33, 0x28, 0x21, 0x10, 0x1d, 0x94, 0xff, 0x04, 0x38, 0x0c, 0x28, 0x03, - 0x04, 0x20, 0x06, 0x0e, 0x20, 0x05, 0x04, 0x04, 0xfc, 0x00, 0xe8, 0x79, - 0xd9, 0x00, 0x00, 0x06, 0x32, 0xb3, 0x8d, 0x28, 0x17, 0xcb, 0x30, 0xa2, - 0x06, 0x48, 0x13, 0x5f, 0xaf, 0x6f, 0x6f, 0xab, 0x60, 0x69, 0x2f, 0xb9, - 0x10, 0x16, 0x10, 0x7f, 0xd1, 0x79, 0x1b, 0x6d, 0x3c, 0x10, 0x5c, 0x9a, - 0x4e, 0x06, 0x58, 0x15, 0x00, 0x00, 0x5c, 0xcf, 0x02, 0x5c, 0xb8, 0xc8, - 0xb2, 0x44, 0xc5, 0x0e, 0xd3, 0x7f, 0xf4, 0xa8, 0x06, 0x83, 0xff, 0x1a, - 0x28, 0x11, 0x3b, 0x28, 0x15, 0x3d, 0x04, 0x38, 0x34, 0x04, 0x4f, 0x05, - 0xa8, 0x0f, 0x10, 0x17, 0x74, 0xff, 0x05, 0x38, 0x0c, 0x04, 0x05, 0x80, - 0x40, 0x06, 0x05, 0x05, 0x05, 0x05, 0x7e, 0xe7, 0xdd, 0x00, 0xd6, 0x00, - 0x00, 0x07, 0x32, 0xc9, 0x30, 0xa5, 0x02, 0x30, 0xe9, 0x30, 0xb9, 0x30, - 0xce, 0x06, 0x68, 0x19, 0x44, 0x23, 0x00, 0x75, 0x2f, 0xaf, 0x61, 0x00, - 0x7a, 0x28, 0x19, 0x05, 0xbf, 0xa7, 0x80, 0x10, 0x0f, 0x70, 0x7f, 0x5c, - 0x67, 0xc9, 0x62, 0xaf, 0x65, 0xfa, 0x40, 0x8b, 0x06, 0x78, 0x17, 0x50, - 0xb4, 0x7c, 0xb7, 0xa4, 0xc2, 0x30, 0x78, 0xb1, 0x06, 0x7b, 0x97, 0x0e, - 0xf3, 0x7f, 0x14, 0x04, 0x43, 0x04, 0x05, 0x40, 0x04, 0x30, 0x04, 0x41, - 0x28, 0x19, 0x3e, 0x06, 0x28, 0x17, 0xa5, 0x10, 0x16, 0xf4, 0xff, 0x06, - 0x38, 0x0c, 0x05, 0x06, 0x20, 0x06, 0x02, 0x20, 0x05, 0x00, 0x06, 0x06, - 0x3e, 0xe8, 0xd3, 0xd7, 0x00, 0x00, 0x01, 0x08, 0x32, 0xd5, 0x30, 0xed, - 0x30, 0xec, 0x28, 0x17, 0xa0, 0x06, 0x7c, 0xaf, 0x46, 0x4f, 0xad, 0x72, - 0x00, 0x65, 0x00, 0x73, 0x80, 0x10, 0x16, 0x40, 0x7f, 0x17, 0x5f, 0x1b, - 0x6d, 0xf7, 0x96, 0xaf, 0x40, 0x65, 0x06, 0x78, 0x17, 0x0c, 0xd5, 0x5c, - 0xb8, 0x08, 0xb8, 0x22, 0xa4, 0xc2, 0x10, 0x06, 0x73, 0x7f, 0x24, 0x04, - 0x3b, 0x28, 0x0f, 0x40, 0x34, 0x04, 0x35, 0x28, 0x19, 0x10, 0x1e, 0x34, - 0xff, 0x07, 0x38, 0x0c, 0x06, 0x07, 0xa0, 0x20, 0x06, 0x12, 0x20, 0x05, - 0x07, 0x07, 0x27, 0xe8, 0x8c, 0xa2, 0x28, 0x17, 0x09, 0x48, 0x17, 0xea, - 0x30, 0xc0, 0x07, 0x08, 0x17, 0x69, 0x30, 0x00, 0x64, 0x2f, 0xb5, 0x10, - 0x16, 0x10, 0x7f, 0x5b, 0x4f, 0x57, 0x7f, 0x08, 0xcc, 0x91, 0xbe, 0x8f, - 0x06, 0xb8, 0x17, 0xac, 0xb9, 0xe4, 0x60, 0xb2, 0x10, 0x06, 0x73, 0x7f, - 0x78, 0x17, 0x38, 0x04, 0x34, 0x04, 0x30, 0xd2, 0x06, 0x28, 0x19, 0x10, - 0x16, 0xf4, 0xff, 0x08, 0x38, 0x0c, 0x07, 0x08, 0x20, 0x06, 0x13, 0x80, - 0x20, 0x05, 0x08, 0x08, 0xc2, 0xe7, 0x07, 0xd8, 0x00, 0x00, 0x00, 0x0a, - 0x32, 0xe9, 0x30, 0xd0, 0x30, 0xb8, 0x0a, 0x30, 0xa7, 0x30, 0xcf, 0x06, - 0x68, 0x19, 0x4c, 0x28, 0x0d, 0x76, 0xa3, 0x28, 0x11, 0x6c, 0x2f, 0xb7, - 0x65, 0x00, 0x6a, 0x06, 0x08, 0x1b, 0x10, 0x0e, 0xf0, 0x7f, 0x00, 0xc9, - 0x62, 0xe6, 0x74, 0x36, 0x80, 0xc8, 0x54, 0x80, 0x06, 0x78, 0x17, 0x7c, - 0xb7, 0x14, 0xbc, 0x08, 0xc6, 0x58, 0x6a, 0xd5, 0x06, 0x7b, 0x97, 0x0e, - 0xf3, 0x7f, 0x1b, 0x28, 0x0d, 0x32, 0x28, 0x11, 0x3b, 0x03, 0x04, 0x4c, - 0x04, 0x35, 0x04, 0x45, 0x06, 0x08, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x4a, - 0x09, 0x38, 0x0c, 0x08, 0x09, 0x20, 0x06, 0x05, 0x20, 0x05, 0x09, 0x08, - 0x09, 0x90, 0xe7, 0xbb, 0x28, 0x17, 0x0b, 0x32, 0xde, 0x03, 0x30, 0xeb, - 0x30, 0xc9, 0x30, 0xca, 0x20, 0x03, 0x06, 0x5d, 0x2f, 0x57, 0x4d, 0x48, - 0x13, 0x64, 0x2f, 0xb3, 0x6e, 0x2f, 0xaf, 0x30, 0x07, 0x10, 0x15, 0xd0, - 0x7f, 0x00, 0x6c, 0x9a, 0x14, 0x5c, 0x1a, 0x59, 0xb3, 0x7e, 0x20, 0x1a, - 0x59, 0x06, 0x58, 0x19, 0xd0, 0xb9, 0xc4, 0xb3, 0x98, 0x1a, 0xb0, 0xc4, - 0xb3, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1c, 0x68, 0x13, 0x34, 0x0e, - 0x04, 0x3e, 0x04, 0x3d, 0x28, 0x23, 0x30, 0x07, 0x10, 0x1d, 0xb4, 0xff, - 0x0a, 0x94, 0x38, 0x0c, 0x09, 0x0a, 0x20, 0x06, 0x06, 0x20, 0x05, 0x0a, - 0x0a, 0x10, 0x2f, 0xe7, 0xed, 0x28, 0x17, 0x0c, 0x32, 0xd1, 0x30, 0x05, - 0xa4, 0x30, 0xb5, 0x30, 0xf3, 0x28, 0x1b, 0xa5, 0x06, 0x48, 0x19, 0x45, - 0x50, 0x2f, 0xaf, 0x79, 0x00, 0x73, 0x2f, 0xb5, 0x6e, 0x28, 0x1d, 0x40, - 0xfa, 0x10, 0x16, 0x00, 0x7f, 0x3e, 0x6d, 0x51, 0x68, 0x5c, 0x67, 0xc0, - 0x06, 0x58, 0x13, 0x3f, 0xff, 0x0c, 0xd3, 0x74, 0xc7, 0xb0, 0xc0, 0x34, - 0x50, 0xb4, 0x06, 0x78, 0x17, 0x0e, 0xf3, 0x7f, 0x1f, 0x28, 0x17, 0x39, - 0x04, 0x56, 0x41, 0x28, 0x1d, 0x3d, 0x28, 0x1b, 0x43, 0x05, 0xc8, 0x13, - 0x10, 0x17, 0x34, 0xff, 0x0b, 0x50, 0x0b, 0x70, 0x01, 0x08, 0x40, 0x0a, - 0x05, 0xe9, 0xb4, 0xd6, 0x00, 0x00, 0x00, 0x0d, 0x32, 0xea, 0x30, 0xaa, - 0x30, 0x01, 0xfb, 0x30, 0xcd, 0x30, 0xb0, 0x30, 0xed, 0x06, 0x48, 0x17, - 0x10, 0x52, 0x00, 0xed, 0x2f, 0xab, 0x20, 0x00, 0x4e, 0x00, 0x06, 0x65, - 0x00, 0x67, 0x00, 0x72, 0x06, 0x0f, 0xaf, 0x10, 0x0e, 0xf0, 0x7f, 0x85, - 0x01, 0x51, 0x3c, 0x68, 0x57, 0x7f, 0xb3, 0x6c, 0x06, 0x78, 0x19, 0x00, - 0xac, 0xb9, 0x24, 0xc6, 0x24, 0xb1, 0xf8, 0xad, 0x30, 0x5c, 0xb8, 0x06, - 0x58, 0x99, 0x0e, 0xf3, 0x7f, 0x20, 0x04, 0x38, 0x04, 0x00, 0x3e, 0x04, - 0x2d, 0x00, 0x1d, 0x04, 0x35, 0x04, 0x19, 0x33, 0x04, 0x40, 0x20, 0x0b, - 0x10, 0x1d, 0xd4, 0xff, 0x0c, 0x0c, 0x70, 0x01, 0x45, 0x0a, 0x40, 0x0a, - 0x71, 0xe8, 0x8c, 0x28, 0x17, 0x0e, 0x28, 0x17, 0x18, 0xd9, 0x30, 0xe9, - 0x06, 0x48, 0x11, 0x78, 0x17, 0x69, 0x00, 0x76, 0xb0, 0x28, 0x13, 0x72, - 0x2f, 0xb7, 0x10, 0x16, 0x30, 0x7f, 0xcc, 0x91, 0xe6, 0x97, 0x30, 0xc9, - 0x62, 0x06, 0x78, 0x15, 0x38, 0x17, 0xa0, 0xbc, 0x7c, 0xb7, 0xd1, 0x10, - 0x06, 0x93, 0x7f, 0x38, 0x17, 0x32, 0x28, 0x13, 0x40, 0x04, 0x30, 0x05, - 0xe8, 0x11, 0x94, 0x10, 0x17, 0x54, 0xff, 0x0d, 0x0d, 0x70, 0x01, 0x09, - 0x40, 0x0a, 0x07, 0xea, 0x00, 0x86, 0xd8, 0x00, 0x00, 0x0f, 0x32, 0xed, - 0x30, 0x10, 0xc1, 0x30, 0xe3, 0x06, 0xc8, 0x17, 0x6f, 0x00, 0x63, 0x00, - 0x61, 0x68, 0x06, 0x68, 0x15, 0x10, 0x0f, 0x10, 0x7f, 0x57, 0x7f, 0x70, - 0x60, 0x06, 0x98, 0x15, 0x03, 0x00, 0x00, 0x5c, 0xb8, 0x28, 0xcc, 0x06, - 0x9b, 0x95, 0x0f, 0x13, 0x7f, 0x06, 0x20, 0x04, 0x3e, 0x04, 0x47, 0x06, - 0x68, 0x13, 0x10, 0x17, 0x34, 0xff, 0x0e, 0x50, 0x0e, 0x70, 0x01, 0x0b, - 0x40, 0x0a, 0x7b, 0xe7, 0x5d, 0xd9, 0x00, 0x00, 0x00, 0x10, 0x32, 0xb5, - 0x30, 0xeb, 0x30, 0x51, 0xc8, 0x06, 0xa8, 0x17, 0x53, 0x2f, 0xa7, 0x6c, - 0x00, 0x74, 0x28, 0x1d, 0x81, 0x10, 0x16, 0x50, 0x7f, 0x28, 0x84, 0x14, - 0x5c, 0x58, 0x62, 0x06, 0x98, 0x19, 0x0d, 0xb4, 0xc0, 0xa0, 0xd1, 0x06, - 0xb8, 0x17, 0x0e, 0xf3, 0x7f, 0x21, 0x28, 0x13, 0x06, 0x3b, 0x04, 0x4c, - 0x04, 0x42, 0x28, 0x1f, 0x10, 0x1e, 0x34, 0xff, 0x0f, 0x50, 0x0f, 0x70, - 0x01, 0x0c, 0x40, 0x0a, 0xaf, 0xe9, 0xc8, 0xd6, 0x10, 0x00, 0x00, 0x11, - 0x28, 0x17, 0xf3, 0x30, 0xfb, 0x30, 0x18, 0xdb, 0x30, 0xbb, 0x06, 0x68, - 0x1b, 0x38, 0x17, 0x6e, 0x00, 0x20, 0x22, 0x00, 0x4a, 0x2f, 0xb7, 0x73, - 0x00, 0xe9, 0x10, 0x16, 0x00, 0x7f, 0x23, 0x04, 0x57, 0x55, 0x4f, 0x5e, - 0x58, 0x06, 0x98, 0x17, 0xb0, 0xc0, 0x0e, 0x38, 0xd6, 0x38, 0xc1, 0x06, - 0xdb, 0x97, 0x0e, 0xb3, 0x7f, 0x38, 0x17, 0x3d, 0x08, 0x04, 0x2d, 0x00, - 0x25, 0x28, 0x17, 0x41, 0x04, 0x35, 0xca, 0x06, 0x08, 0x1b, 0x10, 0x16, - 0xf4, 0xff, 0x10, 0x10, 0x70, 0x01, 0x0d, 0x40, 0x0a, 0x96, 0x00, 0xe7, - 0xac, 0xd7, 0x00, 0x00, 0x12, 0x32, 0xbd, 0x03, 0x30, 0xea, 0x30, 0xa2, - 0x30, 0xce, 0x06, 0x68, 0x15, 0x3f, 0xaf, 0x07, 0x6f, 0x00, 0x72, 0x00, - 0x69, 0x48, 0x1d, 0x06, 0x3f, 0xb3, 0x10, 0x0e, 0xf0, 0x7f, 0x00, 0x22, - 0x7d, 0xcc, 0x91, 0x9a, 0x4e, 0xfa, 0x8b, 0x80, 0x06, 0x78, 0x19, 0x8c, - 0xc1, 0xac, 0xb9, 0x44, 0xc5, 0x78, 0x50, 0xb1, 0x10, 0x06, 0x73, 0x7f, - 0x21, 0x28, 0x0f, 0x40, 0x04, 0x4c, 0x04, 0x59, 0x4f, 0x28, 0x1d, 0x3e, - 0x06, 0x08, 0x15, 0x10, 0x17, 0x14, 0xff, 0x11, 0x11, 0x70, 0x01, 0x40, - 0x0f, 0x40, 0x0a, 0x5a, 0xe8, 0xbe, 0xd6, 0x00, 0x00, 0x04, 0x13, 0x32, - 0xbf, 0x30, 0xaf, 0x28, 0x17, 0xec, 0x30, 0x14, 0xf3, 0x30, 0xdc, 0x06, - 0x48, 0x1b, 0x54, 0x2f, 0xaf, 0x63, 0x00, 0x40, 0x75, 0x2f, 0xb5, 0x72, - 0x00, 0x65, 0x00, 0x6d, 0x00, 0x10, 0x62, 0x00, 0xf3, 0x10, 0x15, 0xd0, - 0x7f, 0x58, 0x38, 0x59, 0x26, 0x10, 0x4f, 0x5a, 0x53, 0x06, 0x78, 0x17, - 0xc0, 0xd0, 0xe0, 0xcf, 0x03, 0x44, 0xc5, 0x18, 0xb8, 0xf4, 0xbc, 0x06, - 0x5b, 0x99, 0x0e, 0xf3, 0x7f, 0x01, 0x22, 0x04, 0x30, 0x04, 0x3a, 0x04, - 0x43, 0x20, 0x05, 0x01, 0x40, 0x04, 0x35, 0x04, 0x3c, 0x04, 0x31, 0x05, - 0xe8, 0x1d, 0x94, 0x10, 0x16, 0xf4, 0xff, 0x12, 0x12, 0x70, 0x01, 0x10, - 0x40, 0x0a, 0x70, 0xe9, 0x01, 0x31, 0xd8, 0x00, 0x00, 0x14, 0x32, 0xc8, - 0x28, 0x13, 0x44, 0xa4, 0x28, 0x15, 0xbf, 0x30, 0xfb, 0x20, 0x07, 0xfb, - 0x30, 0xaa, 0x30, 0x0f, 0xb9, 0x05, 0xa8, 0x21, 0x54, 0x48, 0x0f, 0x69, - 0x2f, 0xad, 0x74, 0x8d, 0x2f, 0xb3, 0x20, 0x00, 0x79, 0x20, 0x03, 0x50, - 0x13, 0x73, 0x10, 0x15, 0x40, 0x7f, 0x00, 0x09, 0x4e, 0x41, 0x53, 0x09, - 0x4e, 0xba, 0x4e, 0x80, 0x06, 0x78, 0x17, 0xb8, 0xd2, 0x08, 0xb8, 0x78, - 0xc7, 0xc0, 0x13, 0xd0, 0x74, 0xc7, 0x30, 0x09, 0xa4, 0xc2, 0x06, 0x1b, - 0x97, 0x0e, 0xd3, 0x7f, 0x41, 0x22, 0x48, 0x0f, 0x39, 0x04, 0x3d, 0x04, - 0x42, 0x28, 0x21, 0x1b, 0x2d, 0x00, 0x38, 0x20, 0x03, 0x50, 0x13, 0x41, - 0x05, 0x48, 0x1f, 0x10, 0x16, 0xf4, 0xff, 0x28, 0x13, 0x13, 0x70, 0x01, - 0x11, 0x40, 0x0a, 0x5f, 0xe8, 0x54, 0x45, 0xd9, 0x00, 0x3f, 0xff, 0x01, - 0x0a, 0x0a, 0x20, 0x01, 0x01, 0x20, 0x06, 0x44, 0x07, 0x20, 0x05, 0x01, - 0x01, 0x02, 0x30, 0x04, 0x01, 0x02, 0x82, 0x40, 0x06, 0x02, 0x02, 0x02, - 0x02, 0x03, 0x30, 0x04, 0x02, 0x51, 0x03, 0x20, 0x06, 0x03, 0x20, 0x05, - 0x03, 0x03, 0x04, 0x30, 0x04, 0x28, 0x03, 0x04, 0x20, 0x06, 0x0e, 0x20, - 0x05, 0x04, 0x04, 0x05, 0x90, 0x30, 0x04, 0x04, 0x05, 0x40, 0x06, 0x05, - 0x05, 0x05, 0x05, 0x4a, 0x06, 0x30, 0x04, 0x05, 0x06, 0x20, 0x06, 0x02, - 0x20, 0x05, 0x06, 0x25, 0x06, 0x07, 0x30, 0x04, 0x06, 0x07, 0x20, 0x06, - 0x12, 0x20, 0x05, 0x12, 0x07, 0x07, 0x08, 0x30, 0x04, 0x07, 0x08, 0x20, - 0x06, 0x13, 0x89, 0x20, 0x05, 0x08, 0x08, 0x09, 0x30, 0x04, 0x08, 0x09, - 0x20, 0x06, 0x44, 0x05, 0x20, 0x05, 0x09, 0x09, 0x0a, 0x30, 0x04, 0x09, - 0x0a, 0xa1, 0x20, 0x06, 0x06, 0x20, 0x05, 0x0a, 0x0a, 0x0b, 0x0b, 0x70, - 0x01, 0x4a, 0x08, 0x40, 0x0a, 0x0c, 0x0c, 0x70, 0x01, 0x0a, 0x40, 0x0a, - 0x0d, 0x52, 0x0d, 0x70, 0x01, 0x09, 0x40, 0x0a, 0x0e, 0x0e, 0x70, 0x01, - 0x0b, 0x94, 0x40, 0x0a, 0x0f, 0x0f, 0x70, 0x01, 0x0c, 0x40, 0x0a, 0x10, - 0x10, 0xa5, 0x70, 0x01, 0x0d, 0x40, 0x0a, 0x11, 0x11, 0x70, 0x01, 0x0f, - 0x40, 0x0a, 0xe0, 0xf9, 0x4f, 0xf1, 0x47, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x33, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x0b, 0x0d, 0xd4, - 0xd1, 0x00, 0x00, 0x00, 0x01, 0x33, 0x73, 0x7c, 0x18, 0x98, 0xd0, 0x00, - 0x30, 0xfc, 0x30, 0xb8, 0x30, 0xf3, 0x30, 0xf8, 0x10, 0x8a, 0xf6, 0x5c, - 0x05, 0xf8, 0x25, 0x55, 0x00, 0x53, 0x00, 0x00, 0x20, 0x00, 0x56, 0x00, - 0x69, 0x00, 0x72, 0x00, 0x50, 0x67, 0x20, 0x05, 0x6e, 0x20, 0x0d, 0x49, - 0x00, 0x73, 0x00, 0x16, 0x6c, 0x00, 0x61, 0x20, 0x0b, 0x64, 0x20, 0x09, - 0x04, 0xd8, 0xb7, 0xce, 0xb6, 0x20, 0x69, 0x65, 0x20, 0x6f, 0x50, 0x83, - 0x65, 0x40, 0x85, 0x50, 0x0f, 0x61, 0x08, 0x00, 0x6d, 0x00, 0xe9, 0x20, - 0x95, 0x69, 0x00, 0x63, 0xf6, 0x20, 0x8b, 0x30, 0x99, 0x30, 0x27, 0x03, - 0xf9, 0x45, 0x41, 0x20, 0x65, 0x30, 0x75, 0x69, 0x28, 0x00, 0x6b, 0x40, - 0xf1, 0x69, 0x20, 0xfb, 0x63, 0x00, 0x68, 0x82, 0x20, 0x93, 0x20, 0x00, - 0x4a, 0x00, 0x75, 0x21, 0x0f, 0x67, 0x35, 0x00, 0x66, 0x40, 0x97, 0x30, - 0x1b, 0x6e, 0x21, 0x19, 0x65, 0x21, 0x1b, 0x6f, 0x6e, 0x03, 0x89, 0xcc, - 0x31, 0x6b, 0x6f, 0x41, 0x03, 0x31, 0x85, 0x50, 0xff, 0x31, 0x85, 0x45, - 0x69, 0x21, 0x95, 0x53, 0x00, 0x74, 0x21, 0x85, 0x74, 0x40, 0x85, 0x57, - 0x69, 0x20, 0x0b, 0x65, 0x40, 0x7f, 0x69, 0x03, 0xca, 0x48, 0x71, 0xeb, - 0x51, 0x81, 0x6d, 0xed, 0x61, 0x7f, 0x51, 0x6b, 0x20, 0x21, 0xff, 0x31, - 0x07, 0x6c, 0x20, 0xa1, 0xaa, 0x31, 0xa1, 0x45, 0x20, 0x01, 0x2e, 0x22, - 0x2d, 0x55, 0x22, 0x35, 0x2e, 0x80, 0x03, 0x6a, 0xce, 0x8e, 0x7f, 0x5e, - 0x5c, 0xf4, 0x7e, 0x14, 0x02, 0x5c, 0xac, 0x4e, 0xa4, 0x7f, 0x9b, 0x06, - 0x02, 0xfd, 0x00, 0x00, 0x00, 0xf8, 0xbb, 0x6d, 0xad, 0x39, 0xb8, 0x20, - 0x00, 0x00, 0x84, 0xbc, 0xc4, 0xc9, 0x44, 0xc5, 0x7c, 0x07, 0xc7, 0x9c, - 0xb7, 0xdc, 0xb4, 0x05, 0xbb, 0xa9, 0xd2, 0x7f, 0x33, 0x73, 0x8b, 0x32, - 0x61, 0x20, 0x00, 0x4d, 0x40, 0x0d, 0x67, 0x41, 0x81, 0x32, 0xf9, 0x77, - 0x69, 0x83, 0x91, 0x32, 0x05, 0x03, 0xb1, 0xff, 0x6c, 0x22, 0xed, 0x71, - 0xff, 0x54, 0x05, 0xb6, 0x52, 0x67, 0x20, 0xa3, 0x1b, 0x33, 0x81, 0x6e, - 0x42, 0x25, 0x03, 0xfc, 0xc5, 0x10, 0x00, 0x04, 0x3c, 0x04, 0x35, 0x04, - 0x40, 0x04, 0x38, 0x00, 0x04, 0x3a, 0x04, 0x30, 0x04, 0x3d, 0x04, 0x41, - 0xa2, 0x20, 0x07, 0x38, 0x20, 0x11, 0x20, 0x00, 0x12, 0x20, 0x13, 0x40, - 0x35, 0x04, 0x33, 0x20, 0x19, 0xb0, 0x15, 0x3e, 0x20, 0x21, 0x42, 0x20, - 0x2f, 0x1c, 0x3e, 0x04, 0x32, 0x20, 0x2f, 0x0b, 0x14, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x01, 0x01, 0xf0, 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, - 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x11, 0x1c, 0xd4, 0x00, 0x11, 0x19, 0x00, 0x00, - 0x30, 0x01, 0x34, 0x14, 0x20, 0x50, 0x08, 0xe0, 0x06, 0x70, 0x05, 0x10, - 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x77, 0x07, 0x6b, 0xd0, 0x00, 0x00, 0x00, - 0x02, 0x34, 0xc7, 0x30, 0xa3, 0x30, 0xb9, 0x08, 0x30, 0xc8, 0x30, 0xea, - 0x20, 0x03, 0x96, 0x99, 0xfd, 0x04, 0x90, 0x30, 0x57, 0x3a, 0x53, 0x05, - 0xb8, 0x29, 0x44, 0x00, 0x01, 0x69, 0x00, 0x73, 0x00, 0x74, 0x00, 0x72, - 0x20, 0x07, 0x00, 0x74, 0x00, 0x6f, 0x00, 0x20, 0x00, 0x46, 0x00, 0x10, - 0x65, 0x00, 0x64, 0x20, 0x03, 0x72, 0x00, 0x61, 0x00, 0x5a, 0x6c, 0x05, - 0xc0, 0x7f, 0x63, 0x20, 0x87, 0x30, 0x7f, 0xe9, 0x20, 0x7f, 0xe9, 0xb5, - 0x05, 0x60, 0x7f, 0x43, 0x20, 0xe5, 0x30, 0xe9, 0x63, 0x20, 0xed, 0x73, - 0x20, 0xfd, 0x15, 0x44, 0x00, 0x2e, 0x21, 0x01, 0x2e, 0x06, 0x21, 0x7f, - 0x65, 0x21, 0x85, 0xdb, 0x51, 0x81, 0x30, 0x93, 0x70, 0x41, 0x8f, 0x31, - 0x81, 0x65, 0x05, 0xe1, 0xff, 0xd0, 0x7d, 0xf0, 0x04, 0xfa, 0xb5, 0x32, - 0xf3, 0x05, 0xd2, 0xf1, 0xdb, 0x87, 0xa0, 0xbc, 0x24, 0xb1, 0x00, 0x18, - 0xc2, 0xd8, 0xc5, 0x7c, 0xb7, 0x20, 0x00, 0x02, 0xf0, 0xc5, 0x29, 0xbc, - 0x6c, 0xad, 0x05, 0xdb, 0xa7, 0x48, 0x8e, 0x23, 0x73, 0x6f, 0x00, 0x66, - 0x23, 0x71, 0x33, 0x85, 0x53, 0x79, 0x6c, 0x8e, 0x23, 0x93, 0x6a, 0x00, - 0x6b, 0x42, 0x8d, 0xd3, 0x1d, 0x0c, 0x13, 0xff, 0x24, 0x08, 0x04, 0x35, - 0x04, 0x34, 0x20, 0x03, 0x40, 0x04, 0x30, 0x00, 0x04, 0x3b, 0x04, 0x4c, - 0x04, 0x3d, 0x04, 0x4b, 0x00, 0x04, 0x39, 0x04, 0x20, 0x00, 0x3e, 0x04, - 0x3a, 0x86, 0x20, 0x13, 0x43, 0x04, 0x33, 0x04, 0x0d, 0x94, 0xff, 0x10, - 0x0e, 0x30, 0x7f, 0x01, 0x00, 0x0b, 0x0b, 0x08, 0x0b, 0x0b, 0x01, 0x01, - 0x0d, 0x24, 0x0b, 0x18, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x34, - 0x01, 0xa2, 0x30, 0xde, 0x30, 0xbd, 0x30, 0xca, 0x28, 0x1b, 0x8a, 0x06, - 0x5f, 0xb7, 0x41, 0x00, 0x6d, 0x27, 0xff, 0x7a, 0x28, 0x11, 0x6e, 0xf8, - 0x47, 0x19, 0x06, 0xb0, 0x7f, 0x04, 0xd7, 0x01, 0x09, 0x10, 0xff, 0x0e, - 0x30, 0x7f, 0x9a, 0x4e, 0x6c, 0x01, 0x9a, 0x59, 0x5b, 0xb9, 0x8f, 0x86, - 0x75, 0x06, 0x58, 0x1d, 0x00, 0x44, 0xc5, 0xc8, 0xb9, 0x8c, 0xc1, 0x98, - 0xb0, 0x31, 0xa4, 0xc2, 0x0f, 0x13, 0x7f, 0x06, 0x33, 0xff, 0x10, 0x04, - 0x3c, 0x28, 0x11, 0x1e, 0x41, 0x04, 0x3e, 0x28, 0x11, 0x30, 0x07, 0x10, - 0x0d, 0xf3, 0xff, 0x0e, 0xf5, 0x7f, 0x02, 0x90, 0x38, 0x0c, 0x01, 0x02, - 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x01, 0x07, 0x04, 0xea, 0xcf, 0x00, - 0x00, 0x04, 0x28, 0x17, 0x41, 0xf3, 0x28, 0x17, 0xa2, 0x30, 0xc6, 0x30, - 0xae, 0x06, 0x48, 0x19, 0x68, 0x41, 0x28, 0x0f, 0x38, 0x15, 0xe1, 0x4c, - 0xad, 0x67, 0x00, 0x75, 0xc0, 0x2f, 0xbf, 0x10, 0x15, 0xb0, 0x7f, 0x89, - 0x5b, 0x22, 0x7d, 0x3f, 0x96, 0x02, 0x79, 0x72, 0x09, 0x54, 0xde, 0x5d, - 0x06, 0x3b, 0x19, 0x48, 0x00, 0xc5, 0x8c, 0xc1, 0x44, 0xc5, 0x4c, 0xd1, - 0x30, 0x6c, 0xae, 0x06, 0x7b, 0x97, 0x0e, 0xd3, 0x7f, 0x10, 0x28, 0x0f, - 0x38, 0x15, 0x30, 0x04, 0x01, 0x42, 0x04, 0x35, 0x04, 0x33, 0x04, 0x38, - 0x05, 0xe8, 0x19, 0xa4, 0x10, 0x16, 0xf4, 0xff, 0x03, 0x38, 0x0c, 0x02, - 0x03, 0x40, 0x06, 0x03, 0x03, 0x00, 0x03, 0x03, 0x34, 0x07, 0xfe, 0xd1, - 0x00, 0x00, 0x46, 0x05, 0x28, 0x17, 0xd7, 0x30, 0xec, 0x06, 0x48, 0x11, - 0x7f, 0xaf, 0x70, 0xb0, 0x28, 0x0b, 0x72, 0x06, 0x4f, 0xab, 0x10, 0x0f, - 0x30, 0x7f, 0x3f, 0x96, 0x6e, 0x66, 0x30, 0xf7, 0x96, 0x06, 0x58, 0x13, - 0x3f, 0xff, 0x44, 0xc5, 0x78, 0xd4, 0x20, 0x08, 0xb8, 0x10, 0x06, 0x93, - 0x7f, 0x10, 0x04, 0x3f, 0x04, 0x43, 0x34, 0x04, 0x40, 0x28, 0x13, 0x10, - 0x1e, 0x54, 0xff, 0x04, 0x38, 0x0c, 0x03, 0x04, 0x80, 0x40, 0x06, 0x04, - 0x04, 0x04, 0x04, 0x9d, 0x05, 0x06, 0x08, 0xd0, 0x00, 0x00, 0x06, 0x28, - 0x17, 0xe9, 0x30, 0xb0, 0x2a, 0x30, 0xa2, 0x06, 0x88, 0x19, 0x41, 0x28, - 0x13, 0x61, 0x4f, 0xa7, 0x61, 0x81, 0x10, 0x16, 0x40, 0x7f, 0x3f, 0x96, - 0xc9, 0x62, 0xdc, 0x74, 0x06, 0xb8, 0x17, 0x0d, 0x7c, 0xb7, 0xfc, 0xac, - 0x06, 0xbb, 0x97, 0x0e, 0xd3, 0x7f, 0x10, 0x28, 0x13, 0x16, 0x30, 0x04, - 0x33, 0x28, 0x1b, 0x30, 0x06, 0x48, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x05, - 0x90, 0x38, 0x0c, 0x04, 0x05, 0x40, 0x06, 0x05, 0x05, 0x05, 0x05, 0x00, - 0x49, 0x07, 0xef, 0xcf, 0x00, 0x00, 0x07, 0x34, 0x01, 0xd0, 0x30, 0xea, - 0x30, 0xca, 0x30, 0xb9, 0x06, 0x88, 0x17, 0x41, 0x42, 0x28, 0x15, 0x72, - 0x00, 0x69, 0x00, 0x6e, 0x28, 0x1d, 0x40, 0x73, 0x10, 0x16, 0x20, 0x7f, - 0xf4, 0x5d, 0xcc, 0x91, 0xb3, 0x7e, 0x20, 0xaf, 0x65, 0x06, 0x78, 0x19, - 0x14, 0xbc, 0xac, 0xb9, 0x98, 0x14, 0xb0, 0xa4, 0xc2, 0x10, 0x06, 0x73, - 0x7f, 0x11, 0x28, 0x15, 0x40, 0x04, 0x16, 0x38, 0x04, 0x3d, 0x28, 0x1d, - 0x41, 0x06, 0x28, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x06, 0x90, 0x38, 0x0c, - 0x05, 0x06, 0x40, 0x06, 0x06, 0x06, 0x06, 0x06, 0x00, 0x22, 0x06, 0x14, - 0xce, 0x00, 0x00, 0x08, 0x34, 0x41, 0xdc, 0x28, 0x17, 0xfc, 0x30, 0xd0, - 0x30, 0xeb, 0x06, 0x68, 0x19, 0x00, 0x42, 0x00, 0x6f, 0x00, 0x6c, 0x00, - 0xed, 0x00, 0x60, 0x76, 0x48, 0x1f, 0x10, 0x16, 0x10, 0x7f, 0xbb, 0x73, - 0x29, 0x52, 0xe6, 0x14, 0x74, 0x14, 0x5c, 0x06, 0x78, 0x17, 0xfc, 0x28, - 0x17, 0x14, 0xbc, 0x30, 0x74, 0xb9, 0x06, 0x9b, 0x97, 0x0e, 0xd3, 0x7f, - 0x11, 0x04, 0x3e, 0x04, 0x5a, 0x3b, 0x28, 0x17, 0x32, 0x48, 0x1f, 0x10, - 0x1e, 0x14, 0xff, 0x07, 0x38, 0x0c, 0x06, 0x40, 0x07, 0x40, 0x06, 0x07, - 0x07, 0x07, 0x07, 0xc6, 0x05, 0x00, 0xd0, 0xd2, 0x00, 0x00, 0x09, 0x34, - 0xab, 0x30, 0x1a, 0xe9, 0x30, 0xdc, 0x20, 0x01, 0x06, 0x7c, 0xaf, 0x43, - 0x4f, 0xaf, 0x61, 0x38, 0x00, 0x62, 0x28, 0x1f, 0x30, 0x03, 0x10, 0x15, - 0xf0, 0x7f, 0x61, 0x53, 0xc9, 0x04, 0x62, 0x83, 0x6c, 0x83, 0x6c, 0x06, - 0x78, 0x17, 0x74, 0xce, 0x02, 0x7c, 0xb7, 0xf4, 0xbc, 0xf4, 0xbc, 0x10, - 0x06, 0x73, 0x7f, 0x1a, 0x8e, 0x48, 0x0f, 0x30, 0x04, 0x31, 0x28, 0x1f, - 0x30, 0x03, 0x10, 0x1d, 0xf4, 0xff, 0x08, 0x94, 0x38, 0x0c, 0x07, 0x08, - 0x20, 0x06, 0x0a, 0x20, 0x05, 0x08, 0x08, 0x00, 0x3d, 0x07, 0xa5, 0xcf, - 0x00, 0x00, 0x0a, 0x34, 0x01, 0xb3, 0x30, 0xd8, 0x30, 0xc7, 0x30, 0xb9, - 0x06, 0xa8, 0x17, 0x01, 0x6f, 0x00, 0x6a, 0x00, 0x65, 0x00, 0x64, 0x20, - 0x03, 0x40, 0x73, 0x10, 0x16, 0x20, 0x7f, 0xd1, 0x79, 0x6b, 0x8d, 0xb7, - 0x5f, 0x20, 0xaf, 0x65, 0x06, 0x78, 0x17, 0x54, 0xcf, 0xe4, 0xd5, 0x70, - 0x14, 0xb3, 0xa4, 0xc2, 0x10, 0x06, 0x73, 0x7f, 0x1a, 0x28, 0x0f, 0x45, - 0x04, 0x16, 0x35, 0x04, 0x34, 0x20, 0x03, 0x41, 0x06, 0x08, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x09, 0x34, 0x08, 0x08, 0x30, 0x02, 0x20, 0x06, 0x0b, - 0x20, 0x05, 0x09, 0x09, 0x10, 0xdf, 0x06, 0x38, 0x28, 0x17, 0x0b, 0x34, - 0xc7, 0x30, 0x00, 0xeb, 0x30, 0xbf, 0x30, 0xfb, 0x30, 0xa2, 0x30, 0x05, - 0xde, 0x30, 0xaf, 0x30, 0xed, 0x06, 0x08, 0x1f, 0x44, 0x28, 0x13, 0x10, - 0x6c, 0x00, 0x74, 0x2f, 0xb5, 0x20, 0x00, 0x41, 0x00, 0x47, 0x6d, 0x2f, - 0xbd, 0x63, 0x00, 0x75, 0x2f, 0xc1, 0x05, 0x7f, 0xb9, 0x10, 0x0e, 0xf0, - 0x7f, 0x00, 0x3f, 0x96, 0x6c, 0x9a, 0x93, 0x5e, 0x57, 0x7f, 0x00, 0x09, - 0x4e, 0xd2, 0x89, 0x32, 0x6d, 0xb9, 0x8f, 0x08, 0x86, 0x75, 0x3a, 0x53, - 0x05, 0xbf, 0xbb, 0x78, 0xb3, 0xc0, 0x00, 0xd0, 0x44, 0xc5, 0xc8, 0xb9, - 0xe0, 0xcf, 0x5c, 0x68, 0xb8, 0x06, 0x3b, 0x9b, 0x0e, 0xf3, 0x7f, 0x14, - 0x28, 0x13, 0x3b, 0x04, 0x4c, 0x00, 0x04, 0x42, 0x04, 0x30, 0x04, 0x2d, - 0x00, 0x10, 0x20, 0x04, 0x3c, 0x20, 0x07, 0x3a, 0x04, 0x43, 0x04, 0x40, - 0xc7, 0x28, 0x2f, 0x10, 0x1d, 0x34, 0xff, 0x0a, 0x09, 0x09, 0x30, 0x02, - 0x20, 0x06, 0x30, 0x05, 0x00, 0x0a, 0x0a, 0x72, 0x06, 0xe1, 0xd3, 0x00, - 0x00, 0x04, 0x0c, 0x34, 0xd5, 0x30, 0xa1, 0x28, 0x19, 0xb3, 0x30, 0x6a, - 0xf3, 0x06, 0x08, 0x11, 0x5f, 0xff, 0x46, 0x28, 0x11, 0x6c, 0x28, 0x0b, - 0xf3, 0x20, 0x00, 0x6e, 0x10, 0x16, 0x40, 0x7f, 0xd5, 0x6c, 0x14, 0x5c, - 0x54, 0x11, 0x5b, 0xde, 0x5d, 0x06, 0x7f, 0xaf, 0x14, 0xd3, 0x58, 0x2b, - 0x9f, 0xda, 0x06, 0x90, 0x01, 0x0e, 0xf3, 0x7f, 0x24, 0x28, 0x0f, 0x38, - 0x17, 0x3a, 0x28, 0x07, 0x3d, 0xc4, 0x05, 0x48, 0x09, 0x10, 0x17, 0xd4, - 0xff, 0x0b, 0x0c, 0x0c, 0x20, 0x01, 0x0b, 0x0b, 0x10, 0x0a, 0x0c, 0x16, - 0x20, 0x05, 0x0b, 0x0b, 0x1c, 0x08, 0x00, 0x76, 0xce, 0x00, 0x00, 0x0d, - 0x34, 0xb0, 0x30, 0x1a, 0xa2, 0x30, 0xea, 0x28, 0x17, 0x06, 0x75, 0x17, - 0x47, 0x2f, 0x9d, 0xe1, 0xb8, 0x2f, 0x9f, 0x69, 0x2f, 0xa7, 0x05, 0x7f, - 0xa3, 0x10, 0x0f, 0xb0, 0x7f, 0xdc, 0x74, 0xcc, 0x10, 0x91, 0xd1, 0x79, - 0x06, 0x98, 0x17, 0xfc, 0xac, 0xac, 0xb9, 0x62, 0x54, 0x06, 0xa8, 0x19, - 0x0e, 0xf3, 0x7f, 0x13, 0x04, 0x43, 0x28, 0x19, 0x40, 0x31, 0x04, 0x38, - 0x48, 0x19, 0x10, 0x1e, 0x14, 0xff, 0x0c, 0x0d, 0x0d, 0x20, 0x01, 0x90, - 0x28, 0x1c, 0x0d, 0x08, 0x30, 0x05, 0x0c, 0x0c, 0x07, 0x1a, 0x00, 0xd0, - 0x00, 0x00, 0x0e, 0x34, 0xe9, 0x30, 0xe9, 0xd6, 0x06, 0x88, 0x13, 0x3f, - 0xff, 0x4c, 0x2f, 0xaf, 0x72, 0x2f, 0xb3, 0x10, 0x16, 0x70, 0x7f, 0xc9, - 0x10, 0x62, 0x4a, 0x81, 0x06, 0x98, 0x15, 0x00, 0x00, 0x7c, 0xb7, 0x2b, - 0x7c, 0xb7, 0x10, 0x06, 0xb3, 0x7f, 0x1b, 0x48, 0x15, 0x30, 0x06, 0x28, - 0x11, 0x10, 0x17, 0x54, 0xff, 0x15, 0x0d, 0x0e, 0x0e, 0x20, 0x01, 0x0d, - 0x20, 0x06, 0x0c, 0x20, 0x05, 0x00, 0x0d, 0x0d, 0x29, 0x07, 0xb5, 0xce, - 0x00, 0x00, 0x01, 0x0f, 0x34, 0xe1, 0x30, 0xea, 0x30, 0xc0, 0x06, 0xa8, - 0x19, 0x16, 0x4d, 0x00, 0xe9, 0x4f, 0xad, 0x64, 0x06, 0x68, 0x1b, 0x10, - 0x0e, 0xf0, 0x7f, 0x85, 0x04, 0x68, 0xcc, 0x91, 0xbe, 0x8f, 0x06, 0x98, - 0x19, 0x54, 0xba, 0x08, 0xac, 0xb9, 0xe4, 0xb2, 0x10, 0x06, 0x93, 0x7f, - 0x1c, 0x04, 0x35, 0x8c, 0x28, 0x17, 0x38, 0x04, 0x34, 0x06, 0x68, 0x1b, - 0x10, 0x16, 0xf4, 0xff, 0x0e, 0x0f, 0x54, 0x0f, 0x20, 0x01, 0x0e, 0x20, - 0x06, 0x0d, 0x20, 0x05, 0x0e, 0x0e, 0x00, 0x1d, 0x06, 0x69, 0xcd, 0x00, - 0x00, 0x10, 0x34, 0x05, 0xdf, 0x30, 0xe9, 0x30, 0xf3, 0x06, 0xa8, 0x19, - 0x4d, 0x28, 0x13, 0xb0, 0x3f, 0xaf, 0x6e, 0x06, 0x68, 0x19, 0x10, 0x0e, - 0xf0, 0x7f, 0x73, 0x7c, 0x70, 0x51, 0x86, 0x06, 0xb8, 0x17, 0xf8, 0xbb, - 0x80, 0xb7, 0x06, 0xd8, 0x17, 0x0e, 0xd3, 0x7f, 0x1c, 0xac, 0x28, 0x13, - 0x40, 0x28, 0x13, 0x3d, 0x06, 0x68, 0x19, 0x10, 0x16, 0xf4, 0xff, 0x0f, - 0x10, 0x54, 0x10, 0x20, 0x01, 0x0f, 0x20, 0x06, 0x0e, 0x20, 0x05, 0x0f, - 0x0f, 0x00, 0x5a, 0x07, 0x54, 0xd0, 0x00, 0x00, 0x11, 0x34, 0x01, 0xe2, - 0x30, 0xca, 0x30, 0xac, 0x30, 0xb9, 0x06, 0xa8, 0x17, 0x45, 0x6f, 0x28, - 0x13, 0x61, 0x00, 0x67, 0x2f, 0xaf, 0x73, 0x10, 0x16, 0x20, 0x7f, 0x00, - 0xab, 0x83, 0xb3, 0x7e, 0xa0, 0x52, 0xaf, 0x65, 0x80, 0x06, 0x78, 0x19, - 0xa8, 0xba, 0x98, 0xb0, 0x00, 0xac, 0xa4, 0x44, 0xc2, 0x10, 0x06, 0x73, - 0x7f, 0x1c, 0x04, 0x3e, 0x28, 0x13, 0x30, 0x04, 0x58, 0x33, 0x28, 0x1b, - 0x41, 0x06, 0x48, 0x17, 0x10, 0x16, 0xd4, 0xff, 0x10, 0x11, 0x11, 0xa8, - 0x20, 0x01, 0x10, 0x20, 0x06, 0x0f, 0x20, 0x05, 0x10, 0x10, 0xee, 0x00, - 0x06, 0x14, 0xd3, 0x00, 0x00, 0x12, 0x34, 0xcc, 0x08, 0x30, 0xa8, 0x30, - 0xd0, 0x20, 0x03, 0xb9, 0x30, 0xd1, 0x08, 0x30, 0xeb, 0x30, 0xbf, 0x06, - 0x08, 0x1f, 0x4e, 0x00, 0x75, 0x08, 0x00, 0x65, 0x00, 0x76, 0x2f, 0xb1, - 0x20, 0x00, 0x45, 0xa3, 0x28, 0x19, 0x70, 0x2f, 0xbb, 0x72, 0x00, 0x74, - 0x05, 0x8f, 0xbb, 0x10, 0x0e, 0xf0, 0x7f, 0x00, 0xb0, 0x65, 0xc3, 0x57, - 0xaf, 0x65, 0x15, 0x5e, 0x20, 0x54, 0x58, 0x06, 0x58, 0x19, 0x04, 0xb2, - 0xd0, 0xc5, 0x14, 0x00, 0xbc, 0xd0, 0xc5, 0xa4, 0xc2, 0x0c, 0xd3, 0x74, - 0x34, 0xb9, 0xc0, 0x2b, 0xab, 0x0d, 0xf3, 0x7f, 0x6f, 0x06, 0xa3, 0xfd, - 0x00, 0x00, 0x01, 0x1d, 0x04, 0x43, 0x04, 0x4d, 0x04, 0x32, 0x28, 0x19, - 0x14, 0x2d, 0x00, 0x2d, 0x28, 0x19, 0x3f, 0x28, 0x23, 0x40, 0x04, 0x62, - 0x42, 0x28, 0x29, 0x10, 0x1d, 0x54, 0xff, 0x11, 0x12, 0x12, 0x20, 0x01, - 0x11, 0xa0, 0x20, 0x06, 0x10, 0x20, 0x05, 0x11, 0x11, 0xd8, 0x07, 0x97, - 0x02, 0xd2, 0x00, 0x00, 0x13, 0x34, 0xdd, 0x28, 0x0d, 0xc8, 0x03, 0x30, - 0xa5, 0x30, 0xb2, 0x30, 0xb5, 0x06, 0x08, 0x13, 0x3f, 0xff, 0x6d, 0x50, - 0x2f, 0xaf, 0x38, 0x07, 0x75, 0x2f, 0xb1, 0x38, 0x21, 0x73, 0x05, 0xa4, - 0x13, 0x80, 0x10, 0x0f, 0x30, 0x7f, 0xe2, 0x6c, 0xfe, 0x56, 0x3c, 0x68, - 0x28, 0x44, 0x84, 0x06, 0x58, 0x15, 0x00, 0x00, 0xec, 0x28, 0x0d, 0x2c, - 0xd2, 0x0c, 0x8c, 0xac, 0xac, 0xc0, 0x06, 0x50, 0x7f, 0x0e, 0xf3, 0x7f, - 0x1f, 0x04, 0x41, 0x3e, 0x48, 0x07, 0x43, 0x04, 0x33, 0x04, 0x35, 0x28, - 0x17, 0xc5, 0x05, 0x78, 0x0f, 0x10, 0x17, 0x74, 0xff, 0x12, 0x13, 0x13, - 0x20, 0x01, 0x12, 0x20, 0x06, 0x40, 0x11, 0x20, 0x05, 0x12, 0x12, 0x6f, - 0x06, 0x67, 0xce, 0x00, 0x00, 0x00, 0x14, 0x34, 0xb9, 0x30, 0xaf, 0x30, - 0x6a, 0xec, 0x06, 0x48, 0x11, 0x5f, 0xff, 0x53, 0x2f, 0xaf, 0x63, 0x2f, - 0xa1, 0x65, 0x81, 0x10, 0x16, 0x60, 0x7f, 0xcf, 0x82, 0x4b, 0x51, 0xf7, - 0x96, 0x06, 0x78, 0x15, 0x00, 0x00, 0x00, 0x18, 0xc2, 0x6c, 0xd0, 0x08, - 0xb8, 0xab, 0x10, 0x06, 0x93, 0x7f, 0x21, 0x28, 0x11, 0x3a, 0x28, 0x19, - 0x35, 0x05, 0xe8, 0x0f, 0x10, 0x17, 0x74, 0xff, 0x15, 0x13, 0x14, 0x14, - 0x20, 0x01, 0x13, 0x20, 0x06, 0x12, 0x20, 0x05, 0x00, 0x13, 0x13, 0x71, - 0x07, 0x5f, 0xd2, 0x00, 0x00, 0x01, 0x15, 0x34, 0xbf, 0x30, 0xc1, 0x30, - 0xe9, 0x06, 0xa8, 0x17, 0x11, 0x54, 0x00, 0xe1, 0x28, 0x17, 0x68, 0x00, - 0x69, 0x2f, 0xb5, 0xc1, 0x05, 0xdf, 0xa9, 0x10, 0x0f, 0x60, 0x7f, 0x58, - 0x47, 0x59, 0xc9, 0x62, 0x06, 0x98, 0x17, 0x02, 0xc0, 0xd0, 0x58, 0xce, - 0x7c, 0xb7, 0x10, 0x06, 0x93, 0x7f, 0x22, 0x02, 0x04, 0x30, 0x04, 0x47, - 0x04, 0x38, 0x28, 0x19, 0x30, 0xc5, 0x06, 0x48, 0x19, 0x10, 0x16, 0xf4, - 0xff, 0x14, 0x15, 0x15, 0x20, 0x01, 0x14, 0x20, 0x06, 0x40, 0x14, 0x20, - 0x05, 0x14, 0x14, 0x85, 0x05, 0xa4, 0xcc, 0x00, 0x00, 0x00, 0x16, 0x34, - 0xc8, 0x30, 0xeb, 0x30, 0x05, 0xd2, 0x30, 0xfc, 0x30, 0xe8, 0x06, 0x68, - 0x1b, 0x54, 0x2f, 0xab, 0x15, 0x75, 0x00, 0x6a, 0x28, 0x17, 0x6c, 0x20, - 0x01, 0x6f, 0x10, 0x16, 0x00, 0x7f, 0x00, 0x79, 0x72, 0x81, 0x9c, 0x0c, - 0x5e, 0x65, 0x75, 0x80, 0x06, 0x78, 0x19, 0xb8, 0xd2, 0xe8, 0xb8, 0x88, - 0xd7, 0x94, 0x68, 0xc6, 0x06, 0x9b, 0x97, 0x0e, 0xd3, 0x7f, 0x22, 0x28, - 0x11, 0x43, 0x04, 0x45, 0x83, 0x28, 0x19, 0x3b, 0x04, 0x4c, 0x04, 0x3e, - 0x06, 0x08, 0x1b, 0x10, 0x16, 0xf4, 0xff, 0x15, 0x15, 0x16, 0x16, 0x20, - 0x01, 0x15, 0x20, 0x06, 0x15, 0x20, 0x05, 0x00, 0x15, 0x15, 0xa9, 0x06, - 0xeb, 0xcd, 0x00, 0x00, 0x00, 0x17, 0x34, 0xe4, 0x30, 0xe9, 0x30, 0xaf, - 0x30, 0x46, 0xa4, 0x06, 0x68, 0x15, 0x00, 0x00, 0x59, 0x2f, 0xa5, 0x3f, - 0xa9, 0x63, 0xa0, 0x28, 0x1d, 0x79, 0x10, 0x16, 0x20, 0x7f, 0x9a, 0x4e, - 0xc9, 0x62, 0x4e, 0x40, 0x59, 0x06, 0x78, 0x15, 0x00, 0x00, 0x7c, 0xc5, - 0x7c, 0xb7, 0x0a, 0xe0, 0xcf, 0x74, 0xc7, 0x10, 0x06, 0x73, 0x7f, 0x2f, - 0x28, 0x17, 0x30, 0x2c, 0x04, 0x3a, 0x28, 0x1b, 0x39, 0x06, 0x08, 0x13, - 0x10, 0x17, 0x34, 0xff, 0x16, 0x18, 0x54, 0x18, 0x20, 0x01, 0x16, 0x20, - 0x06, 0x19, 0x20, 0x05, 0x16, 0x16, 0x00, 0x5a, 0x07, 0x1f, 0xcf, 0x00, - 0x00, 0x18, 0x34, 0x04, 0xb9, 0x30, 0xea, 0x30, 0xa2, 0x06, 0x88, 0x15, - 0x00, 0x00, 0x54, 0x5a, 0x2f, 0xad, 0x6c, 0x2f, 0xad, 0x61, 0x10, 0x16, - 0x60, 0x7f, 0xcf, 0x82, 0x08, 0x29, 0x52, 0x9a, 0x4e, 0x06, 0x98, 0x17, - 0x20, 0xc2, 0xac, 0x14, 0xb9, 0x44, 0xc5, 0x10, 0x06, 0x93, 0x7f, 0x21, - 0x28, 0x11, 0x3b, 0x04, 0x18, 0x38, 0x04, 0x4f, 0x06, 0x48, 0x15, 0x10, - 0x17, 0x14, 0xff, 0x17, 0x19, 0x19, 0xa8, 0x20, 0x01, 0x17, 0x20, 0x06, - 0x13, 0x20, 0x05, 0x17, 0x17, 0x8f, 0x00, 0x07, 0x0f, 0xcd, 0x00, 0x00, - 0x19, 0x34, 0x23, 0x00, 0x90, 0xa6, 0x90, 0xdd, 0x4f, 0x77, 0x8b, 0x18, - 0x41, 0x98, 0x06, 0x5d, 0x31, 0x44, 0x00, 0x65, 0x00, 0x70, 0x20, 0x03, - 0x14, 0x6e, 0x00, 0x64, 0x40, 0x05, 0x63, 0x48, 0x23, 0x73, 0x00, 0x1d, - 0x20, 0x00, 0x46, 0x20, 0x19, 0x30, 0x13, 0x3f, 0xcd, 0x6c, 0x20, 0x25, - 0x57, 0x73, 0x04, 0x60, 0x7f, 0xe9, 0x80, 0x7f, 0x61, 0x40, 0x7f, 0x30, - 0x69, 0x30, 0x7d, 0x5a, 0xe9, 0x20, 0x91, 0xe9, 0x04, 0xe0, 0x7d, 0x07, - 0x30, 0xff, 0x69, 0xc1, 0x7f, 0x7a, 0xd0, 0x21, 0x8f, 0xf1, 0x7b, 0x69, - 0x0c, 0xa1, 0xff, 0x54, 0x80, 0xa6, 0x90, 0x08, 0x5e, 0x5c, 0x30, 0x57, - 0x06, 0x7f, 0xaf, 0xa0, 0xbc, 0x24, 0x00, 0xb1, 0x18, 0xc2, 0xd8, 0xc5, - 0x7c, 0xb7, 0x20, 0x00, 0x00, 0xf0, 0xc5, 0x29, 0xbc, 0x90, 0xc7, 0x58, - 0x18, 0xce, 0x39, 0xb8, 0x05, 0x9f, 0xb8, 0xf3, 0x65, 0x20, 0x00, 0x67, - 0xb5, 0x23, 0x91, 0x62, 0x2b, 0xa9, 0x53, 0x7d, 0x6e, 0x05, 0xa3, 0xff, - 0xea, 0x00, 0x83, 0xff, 0x41, 0x69, 0x04, 0x83, 0x7f, 0x24, 0x04, 0x35, - 0x04, 0x34, 0x20, 0x03, 0x10, 0x40, 0x04, 0x30, 0x28, 0x1f, 0x4c, 0x04, - 0x3d, 0x04, 0x45, 0x3e, 0x20, 0x11, 0x20, 0x00, 0x32, 0x28, 0x2d, 0x30, - 0x40, 0x19, 0x5c, 0x3d, 0x28, 0x35, 0x35, 0x04, 0x88, 0x35, 0x07, 0x14, - 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x18, 0x0a, 0x00, 0x0a, 0x0b, 0x0a, 0x0a, - 0x18, 0x18, 0x0b, 0x0a, 0x40, 0x17, 0x20, 0x05, 0x18, 0x18, 0x88, 0x08, - 0x12, 0xd1, 0x00, 0x00, 0x00, 0x1a, 0x34, 0xd0, 0x30, 0xeb, 0x30, 0x0a, - 0xac, 0x30, 0xb9, 0x30, 0x06, 0x7d, 0x2f, 0x56, 0x2f, 0xa9, 0x72, 0xe0, - 0x24, 0x8b, 0x38, 0x0b, 0x10, 0x16, 0x30, 0x7f, 0xf4, 0x5d, 0x14, 0x5c, - 0xa0, 0x04, 0x52, 0xaf, 0x65, 0xde, 0x5d, 0x06, 0x5f, 0xb3, 0x14, 0xbc, - 0x02, 0x74, 0xb9, 0x00, 0xac, 0xa4, 0xc2, 0x10, 0x06, 0x73, 0x7f, 0x12, - 0x8b, 0x28, 0x0f, 0x40, 0x04, 0x33, 0x28, 0x15, 0x41, 0x04, 0x87, 0xfb, - 0x10, 0x18, 0xb4, 0xff, 0x15, 0x19, 0x17, 0x17, 0x20, 0x01, 0x19, 0x20, - 0x06, 0x07, 0x20, 0x05, 0x02, 0x19, 0x19, 0x89, 0x07, 0x68, 0xd0, 0x00, - 0x3f, 0xff, 0x01, 0x00, 0x0b, 0x0b, 0x08, 0x0b, 0x0b, 0x01, 0x01, 0x0d, - 0x22, 0x0b, 0x18, 0x20, 0x05, 0x01, 0x01, 0x02, 0x30, 0x04, 0x01, 0x41, - 0x02, 0x40, 0x06, 0x02, 0x02, 0x02, 0x02, 0x03, 0x30, 0x04, 0x20, 0x02, - 0x03, 0x40, 0x06, 0x03, 0x03, 0x03, 0x03, 0x04, 0x90, 0x30, 0x04, 0x03, - 0x04, 0x40, 0x06, 0x04, 0x04, 0x04, 0x04, 0x48, 0x05, 0x30, 0x04, 0x04, - 0x05, 0x40, 0x06, 0x05, 0x05, 0x05, 0x24, 0x05, 0x06, 0x30, 0x04, 0x05, - 0x06, 0x40, 0x06, 0x06, 0x06, 0x12, 0x06, 0x06, 0x07, 0x30, 0x04, 0x06, - 0x07, 0x40, 0x06, 0x07, 0x09, 0x07, 0x07, 0x07, 0x08, 0x30, 0x04, 0x07, - 0x08, 0x20, 0x06, 0x46, 0x0a, 0x20, 0x05, 0x08, 0x08, 0x09, 0x50, 0x02, - 0x20, 0x06, 0x0b, 0x8f, 0x20, 0x05, 0x09, 0x09, 0x0a, 0x50, 0x02, 0x20, - 0x06, 0x30, 0x05, 0x28, 0xdc, 0x20, 0x0c, 0x0c, 0x20, 0x01, 0x0b, 0x0b, - 0x0a, 0x0c, 0x16, 0x83, 0x20, 0x05, 0x0b, 0x0b, 0x0c, 0x0d, 0x0d, 0x20, - 0x01, 0x20, 0x14, 0x21, 0x0d, 0x08, 0x30, 0x05, 0x0c, 0x0d, 0x0e, 0x0e, - 0x20, 0x01, 0x59, 0x0d, 0x20, 0x06, 0x0c, 0x20, 0x05, 0x20, 0x07, 0x0f, - 0x0f, 0x20, 0x01, 0x59, 0x0e, 0x20, 0x06, 0x0d, 0x20, 0x05, 0x20, 0x07, - 0x10, 0x10, 0x20, 0x01, 0x59, 0x0f, 0x20, 0x06, 0x0e, 0x20, 0x05, 0x20, - 0x07, 0x11, 0x11, 0x20, 0x01, 0x59, 0x10, 0x20, 0x06, 0x0f, 0x20, 0x05, - 0x20, 0x07, 0x12, 0x12, 0x20, 0x01, 0x59, 0x11, 0x20, 0x06, 0x10, 0x20, - 0x05, 0x20, 0x07, 0x13, 0x13, 0x20, 0x01, 0x59, 0x12, 0x20, 0x06, 0x11, - 0x20, 0x05, 0x20, 0x07, 0x14, 0x14, 0x20, 0x01, 0x59, 0x13, 0x20, 0x06, - 0x12, 0x20, 0x05, 0x20, 0x07, 0x15, 0x15, 0x20, 0x01, 0x59, 0x14, 0x20, - 0x06, 0x14, 0x20, 0x05, 0x20, 0x07, 0x16, 0x16, 0x20, 0x01, 0x5c, 0x15, - 0x20, 0x06, 0x15, 0x20, 0x05, 0x20, 0x07, 0x39, 0x84, 0x18, 0x16, 0xa6, - 0x20, 0x06, 0x19, 0x20, 0x05, 0x16, 0x16, 0x41, 0x7c, 0x21, 0x8c, 0x19, - 0x3c, 0x19, 0x13, 0x41, 0x92, 0xf9, 0xaf, 0xf1, 0xa7, 0x3f, 0xff, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x5c, 0x10, 0x00, - 0x11, 0x01, 0x00, 0x00, 0x30, 0x01, 0x08, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0xf4, 0x0c, 0x2b, - 0xd3, 0x00, 0x00, 0x00, 0x01, 0x08, 0xa2, 0x30, 0xf3, 0x30, 0xae, 0x10, - 0x30, 0xe9, 0x30, 0x06, 0x78, 0x1d, 0x41, 0x00, 0x6e, 0x00, 0x01, 0x67, - 0x00, 0x75, 0x00, 0x69, 0x00, 0x6c, 0x20, 0x01, 0x60, 0x61, 0x10, 0x0e, - 0xc0, 0x7f, 0x06, 0x11, 0xfd, 0x00, 0x00, 0x89, 0x5b, 0x2d, 0x10, 0x57, - 0xc9, 0x62, 0x06, 0x9b, 0x1b, 0x75, 0xc5, 0xc8, 0xad, 0x34, 0x7c, 0xb7, - 0x06, 0x9b, 0x9b, 0x07, 0xb3, 0x7f, 0x68, 0x06, 0x23, 0xff, 0x10, 0x04, - 0x00, 0x3d, 0x04, 0x33, 0x04, 0x38, 0x04, 0x3b, 0x04, 0x0c, 0x4c, 0x04, - 0x4f, 0x04, 0x10, 0x16, 0xd4, 0xff, 0x06, 0x36, 0xff, 0x01, 0x01, 0xf0, - 0xd0, 0x01, 0x58, 0x17, 0x01, 0x10, 0x27, 0x3f, 0xff, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x4c, 0x41, 0x00, - 0x11, 0x07, 0x00, 0x00, 0x30, 0x01, 0x09, 0x14, 0x20, 0x50, 0x08, 0xe0, - 0x06, 0x70, 0x05, 0x10, 0x66, 0xf0, 0x7f, 0xf7, 0xfd, 0x2b, 0x0c, 0x05, - 0xd4, 0x00, 0x00, 0x00, 0x02, 0x09, 0xbb, 0x30, 0xf3, 0x30, 0xc8, 0x03, - 0x30, 0xfb, 0x30, 0xb8, 0x30, 0xe7, 0x20, 0x09, 0x06, 0x18, 0x23, 0x00, - 0x53, 0x00, 0x61, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x74, 0x00, 0x20, - 0x00, 0x4a, 0x00, 0x6f, 0x00, 0x6b, 0x68, 0x20, 0x0b, 0x06, 0x50, 0x7f, - 0x2d, 0x20, 0x7f, 0x65, 0x20, 0x8d, 0x06, 0x70, 0x7f, 0x8c, 0x90, 0xff, - 0x27, 0x00, 0x73, 0x0e, 0x21, 0x7f, 0x06, 0x51, 0xff, 0x23, 0x57, 0x02, - 0xa6, 0x7e, 0xf0, 0x7f, 0x3a, 0x53, 0x06, 0x7b, 0x1d, 0x38, 0x01, 0xc1, - 0x78, 0xc7, 0xb8, 0xd2, 0x74, 0xc8, 0x06, 0x7b, 0x9d, 0x80, 0x0e, 0xf1, - 0xff, 0x21, 0x04, 0x35, 0x04, 0x3d, 0x04, 0x42, 0x00, 0x04, 0x2d, 0x00, - 0x14, 0x04, 0x36, 0x04, 0x3e, 0xe2, 0x20, 0x0b, 0x10, 0x05, 0xd1, 0x7f, - 0x10, 0x06, 0xf0, 0xff, 0x01, 0x03, 0x03, 0x20, 0x01, 0x01, 0xa4, 0x20, - 0x06, 0x02, 0x20, 0x05, 0x01, 0x01, 0x58, 0x17, 0x03, 0x09, 0x04, 0xd0, - 0x30, 0xfc, 0x30, 0xd6, 0x20, 0x03, 0xc0, 0x30, 0x28, 0xf6, 0x5c, 0x06, - 0x3f, 0xb9, 0x42, 0x28, 0x17, 0x72, 0x00, 0x62, 0x0c, 0x00, 0x75, 0x00, - 0x64, 0x28, 0x21, 0x10, 0x16, 0x10, 0x7f, 0xf4, 0x5d, 0x06, 0x03, 0x5e, - 0xbe, 0x8f, 0x9b, 0x06, 0x42, 0xfb, 0x4f, 0xaf, 0xbc, 0x0c, 0x80, 0xbd, - 0xe4, 0xb2, 0x06, 0x9f, 0xb3, 0x0e, 0xf3, 0x7f, 0x11, 0x04, 0x00, 0x30, - 0x04, 0x40, 0x04, 0x31, 0x04, 0x43, 0x04, 0x69, 0x34, 0x20, 0x09, 0x10, - 0x1e, 0x14, 0xff, 0x02, 0x38, 0x0c, 0x01, 0x02, 0x40, 0x06, 0x01, 0x02, - 0x02, 0x02, 0x02, 0x8a, 0x0c, 0x08, 0x28, 0x17, 0x00, 0x04, 0x09, 0xbb, - 0x30, 0xf3, 0x30, 0xc8, 0x30, 0x04, 0xfb, 0x30, 0xb8, 0x30, 0xe7, 0x28, - 0x21, 0xb8, 0x30, 0xab, 0x06, 0xbc, 0xaf, 0x47, 0x2f, 0xaf, 0x6f, 0x28, - 0x25, 0x67, 0x2f, 0xb7, 0x06, 0x1f, 0xaf, 0x78, 0x2d, 0xc0, 0x7f, 0x05, - 0x7f, 0xb1, 0x07, 0x90, 0xff, 0x0e, 0x50, 0x7f, 0x23, 0x57, 0x54, 0x04, - 0x4e, 0xbb, 0x6c, 0x3a, 0x53, 0x06, 0x7f, 0xaf, 0x38, 0xc1, 0x00, 0x78, - 0xc7, 0xb8, 0xd2, 0x70, 0xc8, 0xc0, 0xc9, 0xc0, 0x06, 0x58, 0x99, 0x0e, - 0xf2, 0x7f, 0x21, 0x04, 0x35, 0x04, 0x3d, 0x04, 0x00, 0x42, 0x04, 0x2d, - 0x00, 0x14, 0x04, 0x36, 0x04, 0x5d, 0x3e, 0x28, 0x23, 0x34, 0x20, 0x07, - 0x10, 0x05, 0x91, 0x7f, 0x10, 0x06, 0xf4, 0xff, 0x03, 0x38, 0x0c, 0x28, - 0x02, 0x03, 0x20, 0x06, 0x03, 0x20, 0x05, 0x03, 0x03, 0x2f, 0x28, 0x0c, - 0x0e, 0x28, 0x17, 0x05, 0x88, 0x17, 0xe1, 0x30, 0xa2, 0x35, 0x30, 0xea, - 0x28, 0x19, 0x06, 0xb8, 0x17, 0x4d, 0x4f, 0xbb, 0x79, 0x06, 0x68, 0x97, - 0x6e, 0x65, 0x28, 0x19, 0x50, 0x81, 0x69, 0x06, 0x67, 0x97, 0x06, 0xd0, - 0xff, 0x0e, 0x50, 0x7f, 0x23, 0x04, 0x57, 0x9b, 0x73, 0x3d, 0x4e, 0x06, - 0xf8, 0x17, 0x54, 0xba, 0x38, 0xac, 0xb9, 0x07, 0x18, 0x17, 0x0e, 0x32, - 0x7f, 0x98, 0x17, 0x1c, 0x04, 0x4d, 0xb8, 0x28, 0x15, 0x38, 0x05, 0xa8, - 0x13, 0x10, 0x07, 0x33, 0xff, 0x0e, 0xf5, 0x7f, 0x04, 0x04, 0x07, 0x20, - 0x04, 0x04, 0xa0, 0x01, 0x1c, 0x0c, 0xff, 0xd3, 0x00, 0x2b, 0x00, 0x06, - 0x88, 0x17, 0xdd, 0x28, 0x13, 0xeb, 0x06, 0x08, 0x15, 0xdf, 0x2f, 0x45, - 0x50, 0x2f, 0xbb, 0x75, 0x00, 0x6c, 0x06, 0x6d, 0x2f, 0x2d, 0x06, 0xe0, - 0x7f, 0xc0, 0x06, 0xf0, 0xff, 0x0e, 0x50, 0x7f, 0x23, 0x57, 0xdd, 0x4f, - 0x57, 0x7f, 0xbc, 0x06, 0xf8, 0x17, 0xf4, 0x23, 0x8b, 0x07, 0x18, 0x17, - 0x0e, 0x32, 0xff, 0x98, 0x17, 0x1f, 0x04, 0x1c, 0x3e, 0x04, 0x3b, 0x05, - 0xe8, 0x15, 0x10, 0x07, 0x13, 0xff, 0x0e, 0xf5, 0x7f, 0x05, 0x05, 0x14, - 0x04, 0x05, 0x05, 0x40, 0x01, 0x06, 0x40, 0x07, 0x1c, 0x0c, 0x05, 0x11, - 0xd4, 0x00, 0x00, 0x07, 0x88, 0x17, 0xd4, 0x28, 0x17, 0x6a, 0xbf, 0x28, - 0x1b, 0x06, 0xd8, 0x17, 0x65, 0x4f, 0xb7, 0x72, 0x06, 0x88, 0x17, 0x69, - 0xb8, 0x40, 0x7d, 0x72, 0x20, 0x87, 0x0e, 0x10, 0xff, 0x0e, 0x50, 0x7f, - 0x23, 0x57, 0x7c, 0x10, 0x5f, 0x97, 0x5f, 0x06, 0xf8, 0x17, 0x3c, 0xd5, - 0x30, 0xd1, 0xe8, 0x07, 0x38, 0x17, 0x0e, 0x12, 0x7f, 0xb8, 0x17, 0x35, - 0x28, 0x1f, 0x35, 0x04, 0x40, 0xe5, 0x05, 0xc8, 0x1b, 0x10, 0x06, 0xf3, - 0xff, 0x0e, 0xf5, 0x7f, 0x06, 0x06, 0x70, 0x01, 0x05, 0x40, 0x0a, 0x14, - 0x25, 0x0c, 0x14, 0x28, 0x17, 0x08, 0x88, 0x17, 0xd5, 0x30, 0x01, 0xa3, - 0x30, 0xea, 0x30, 0xc3, 0x30, 0xd7, 0x05, 0xe8, 0x19, 0xab, 0xdf, 0x2f, - 0x68, 0x2f, 0xbb, 0x6c, 0x2f, 0xbf, 0x70, 0x06, 0x68, 0x17, 0x90, 0x7f, - 0x70, 0x70, 0x05, 0x68, 0x1b, 0x07, 0x90, 0xff, 0x0e, 0x50, 0x7f, 0x23, - 0x57, 0xf2, 0x83, 0x0c, 0x29, 0x52, 0x6e, 0x66, 0x06, 0x78, 0x19, 0x58, - 0x17, 0x44, 0xd5, 0x38, 0xbd, 0xb9, 0x07, 0x38, 0x17, 0x0e, 0x12, 0x7f, - 0x98, 0x17, 0x24, 0x04, 0x38, 0x2e, 0x04, 0x3b, 0x20, 0x03, 0x3f, 0x06, - 0xa8, 0x17, 0x10, 0x06, 0x13, 0xff, 0x0e, 0xf5, 0x7f, 0x07, 0x08, 0x07, - 0x05, 0x07, 0x07, 0xa0, 0x01, 0x1f, 0x0c, 0x20, 0xc5, 0x28, 0x17, 0x00, - 0x1f, 0xff, 0x01, 0x03, 0x03, 0x20, 0x01, 0x01, 0x20, 0x06, 0x44, 0x02, - 0x20, 0x05, 0x01, 0x01, 0x02, 0x30, 0x04, 0x01, 0x02, 0x82, 0x40, 0x06, - 0x02, 0x02, 0x02, 0x02, 0x03, 0x30, 0x04, 0x02, 0xe0, 0x20, 0x1d, 0x20, - 0x09, 0x30, 0x2a, 0x04, 0x04, 0x07, 0x04, 0x04, 0x9b, 0xa0, 0x01, 0x05, - 0x05, 0x20, 0x02, 0x40, 0x01, 0x06, 0x50, 0x05, 0xe8, 0x8f, 0xc0, 0xf0, - 0x87, 0x3f, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x11, 0xe8, 0x9e, 0x01, 0x12, 0x32, 0x00, 0x00, 0x30, 0x01, 0x08, 0x01, - 0x50, 0x07, 0x00, 0x00, 0xa2, 0x30, 0xf3, 0x30, 0xae, 0x30, 0xe9, 0x30, - 0xc0, 0x60, 0x0e, 0x06, 0x00, 0x06, 0x41, 0x00, 0x6e, 0x00, 0x67, 0x00, - 0x05, 0x75, 0x00, 0x69, 0x00, 0x6c, 0x20, 0x01, 0x61, 0x10, 0x0e, 0xc0, - 0x7f, 0x80, 0x06, 0x11, 0xfd, 0x00, 0x00, 0x89, 0x5b, 0x2d, 0x57, 0xc9, - 0x40, 0x62, 0x06, 0x72, 0xfd, 0x00, 0x00, 0x75, 0xc5, 0xc8, 0xad, 0x34, - 0x7c, 0xb7, 0x06, 0x90, 0x7f, 0x07, 0xb3, 0x7f, 0x68, 0x06, 0x23, 0xff, - 0x10, 0x04, 0x00, 0x3d, 0x04, 0x33, 0x04, 0x38, 0x04, 0x3b, 0x04, 0x0d, - 0x4c, 0x04, 0x4f, 0x04, 0x10, 0x16, 0xd4, 0xff, 0x06, 0x55, 0x01, 0x00, - 0x48, 0x0a, 0x64, 0x01, 0x50, 0x06, 0x01, 0x38, 0x06, 0x09, 0x07, 0xa8, - 0x3b, 0xc6, 0x30, 0x00, 0xa3, 0x30, 0xb0, 0x30, 0xa2, 0x30, 0xfb, 0x30, - 0x05, 0xd0, 0x30, 0xfc, 0x30, 0xd6, 0x20, 0x03, 0xc0, 0x05, 0x88, 0x4b, - 0xb1, 0x38, 0x3b, 0x74, 0x28, 0x39, 0x38, 0x3f, 0x61, 0x00, 0x20, 0x28, - 0x3d, 0x14, 0x6e, 0x00, 0x64, 0x20, 0x07, 0x42, 0x28, 0x47, 0x72, 0x00, - 0x58, 0x62, 0x28, 0x55, 0x64, 0x04, 0xc8, 0x51, 0xd0, 0x7f, 0x2d, 0x00, - 0x65, 0xb5, 0x20, 0x8d, 0x2d, 0x05, 0x80, 0x7d, 0x00, 0x10, 0xff, 0x75, - 0x06, 0xc0, 0xff, 0x20, 0x20, 0xff, 0xd0, 0x05, 0x91, 0x7b, 0x00, 0x31, - 0xff, 0x79, 0x05, 0xe0, 0x7f, 0x89, 0x5b, 0xd0, 0x63, 0x00, 0xdc, 0x74, - 0x8c, 0x54, 0xf4, 0x5d, 0x03, 0x5e, 0x20, 0xbe, 0x8f, 0x06, 0x1b, 0x41, - 0x64, 0xc5, 0xf0, 0xd2, 0x00, 0x00, 0xac, 0x20, 0x00, 0x14, 0xbc, 0x80, - 0xbd, 0xe4, 0x6d, 0xb2, 0x06, 0x5b, 0xbb, 0xd1, 0xff, 0x6e, 0x05, 0xc2, - 0x01, 0x53, 0xff, 0xed, 0x06, 0x82, 0x7f, 0xa0, 0x38, 0x3b, 0x42, 0x28, - 0x3b, 0x33, 0x04, 0x43, 0x04, 0x30, 0x0a, 0x04, 0x20, 0x00, 0x38, 0x20, - 0x03, 0x11, 0x20, 0x09, 0x40, 0x2e, 0x04, 0x31, 0x20, 0x11, 0x34, 0x20, - 0x13, 0x0d, 0xb4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x01, 0x1e, 0x01, 0x01, - 0x02, 0x20, 0x03, 0x20, 0x04, 0x40, 0x06, 0x01, 0x38, 0x40, 0x0a, 0x45, - 0x18, 0x88, 0x3b, 0xeb, 0x30, 0xbc, 0x28, 0x3f, 0xc1, 0x28, 0x43, 0xbb, - 0x06, 0x5c, 0xf7, 0x72, 0x2f, 0xf7, 0x34, 0xb1, 0x38, 0x41, 0x6e, 0x06, - 0x0f, 0xf9, 0xf0, 0x7f, 0x5c, 0x65, 0x06, 0xe0, 0xff, 0x69, 0x45, 0xbd, - 0x0e, 0x91, 0x7f, 0x05, 0xfe, 0xf9, 0x3f, 0x96, 0x08, 0x39, 0x68, 0xf7, - 0x5e, 0x06, 0x9f, 0xf7, 0x44, 0xc5, 0x74, 0x01, 0xb9, 0xe8, 0xd5, 0xf0, - 0xd2, 0x98, 0xb0, 0x06, 0x50, 0x83, 0xa8, 0x00, 0x12, 0x7f, 0xeb, 0x0d, - 0xc3, 0xff, 0x10, 0x28, 0x25, 0x33, 0x04, 0x35, 0xb8, 0x68, 0x41, 0x3d, - 0x05, 0x08, 0x2b, 0x0f, 0xf3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x02, 0x02, - 0x04, 0x00, 0x03, 0x04, 0x04, 0x02, 0x02, 0x03, 0x04, 0x03, 0x36, 0x02, - 0x02, 0x20, 0x01, 0x01, 0x2f, 0xff, 0x0b, 0x78, 0x60, 0x38, 0x3b, 0xd0, - 0xdc, 0x06, 0x48, 0x35, 0x98, 0x3b, 0x75, 0x2f, 0xe1, 0x05, 0xf8, 0x33, - 0x10, 0x0f, 0x70, 0x7f, 0x3f, 0x96, 0x08, 0x81, 0x9c, 0xf4, 0x5d, 0x06, - 0xb8, 0x3b, 0xe8, 0xb8, 0x14, 0x63, 0xbc, 0x10, 0x06, 0x93, 0x7f, 0x38, - 0x3b, 0x43, 0x04, 0x31, 0x06, 0x08, 0x33, 0x10, 0x17, 0x74, 0xff, 0x00, - 0x03, 0x03, 0x05, 0x04, 0x05, 0x05, 0x03, 0x03, 0x06, 0x04, 0x05, 0x04, - 0x03, 0x03, 0x20, 0x01, 0x01, 0x2f, 0xff, 0x0c, 0x82, 0x78, 0x3b, 0xd0, - 0x30, 0xcf, 0x30, 0xde, 0x06, 0xa8, 0x3b, 0x42, 0xaa, 0x2e, 0xe9, 0x68, - 0x2e, 0xed, 0x6d, 0x2e, 0xf1, 0x73, 0x10, 0x16, 0x20, 0x7f, 0xf4, 0x04, - 0x5d, 0xc8, 0x54, 0x6c, 0x9a, 0x06, 0x9b, 0x3b, 0x14, 0xbc, 0x0b, 0x58, - 0xd5, 0xc8, 0xb9, 0x07, 0x53, 0x7f, 0x27, 0x06, 0x23, 0x81, 0x06, 0xf3, - 0xff, 0x50, 0x11, 0x28, 0x35, 0x33, 0x28, 0x39, 0x3c, 0x04, 0x41, 0x04, - 0x00, 0x3a, 0x04, 0x38, 0x04, 0x35, 0x04, 0x20, 0x00, 0x51, 0x3e, 0x20, - 0x0b, 0x42, 0x28, 0x53, 0x3e, 0x04, 0x32, 0x05, 0x08, 0x53, 0x80, 0x10, - 0x16, 0xf4, 0xff, 0x04, 0x04, 0x06, 0x05, 0x06, 0x06, 0x04, 0x03, 0x04, - 0x05, 0x06, 0x05, 0x04, 0x04, 0x20, 0x01, 0x01, 0x2f, 0xff, 0x40, 0x0d, - 0x98, 0x3b, 0xeb, 0x30, 0xd0, 0x30, 0xc9, 0x30, 0x68, 0xb9, 0x06, 0x68, - 0x3f, 0x38, 0x3b, 0x72, 0x4f, 0xf7, 0x64, 0x00, 0x6f, 0xd8, 0x06, 0x64, - 0xbb, 0x70, 0x7f, 0x65, 0x0e, 0xe0, 0xff, 0x0e, 0x30, 0x7f, 0xf4, 0x5d, - 0xf4, 0x0c, 0x5d, 0x1a, 0x59, 0xaf, 0x06, 0x31, 0xfa, 0x68, 0x3b, 0xa0, - 0xbc, 0x03, 0x74, 0xc7, 0xc4, 0xb3, 0xa4, 0xc2, 0x0f, 0x13, 0x7f, 0x06, - 0x33, 0xff, 0x8a, 0x38, 0x3b, 0x40, 0x04, 0x31, 0x28, 0x41, 0x34, 0x28, - 0x2b, 0x41, 0xe0, 0x04, 0xe8, 0x29, 0x10, 0x08, 0x13, 0xff, 0x0e, 0xf5, - 0x7f, 0x05, 0x05, 0x07, 0x06, 0x07, 0x00, 0x07, 0x05, 0x05, 0x06, 0x07, - 0x06, 0x05, 0x05, 0xc8, 0x20, 0x01, 0x01, 0x2f, 0xff, 0x0e, 0x06, 0x6f, - 0xff, 0xd9, 0x30, 0xea, 0x0c, 0x30, 0xfc, 0x30, 0xba, 0x06, 0x68, 0x39, - 0x3f, 0xf7, 0x65, 0x00, 0x06, 0x6c, 0x00, 0x69, 0x00, 0x7a, 0x06, 0x47, - 0xb9, 0x10, 0x07, 0x90, 0x7f, 0x63, 0x81, 0x06, 0x61, 0xff, 0x2f, 0x4f, - 0x29, 0x52, 0x79, 0x51, 0x06, 0x9f, 0xf7, 0x03, 0xa8, 0xbc, 0xac, 0xb9, - 0x88, 0xc9, 0x06, 0x90, 0x7f, 0x0e, 0xf3, 0x7f, 0x00, 0x11, 0x04, 0x35, - 0x04, 0x3b, 0x04, 0x38, 0x04, 0x70, 0x37, 0x06, 0x08, 0x35, 0x10, 0x0f, - 0xd4, 0xff, 0x06, 0x76, 0xff, 0x06, 0x06, 0x08, 0x07, 0x00, 0x08, 0x08, - 0x06, 0x06, 0x07, 0x08, 0x07, 0x06, 0x65, 0x06, 0x20, 0x01, 0x01, 0x2f, - 0xff, 0x0f, 0x09, 0x6f, 0xff, 0xdc, 0x28, 0x3b, 0x15, 0xd3, 0x30, 0xa2, - 0x06, 0xa8, 0x3b, 0x6f, 0x48, 0x3b, 0x76, 0x28, 0x3f, 0x76, 0x61, 0x06, - 0xe0, 0x7f, 0x06, 0x3e, 0x7c, 0xd0, 0x7f, 0x6e, 0x0e, 0xc1, 0x7f, 0x06, - 0x31, 0xff, 0xbb, 0x01, 0x73, 0x29, 0x52, 0xf4, 0x7e, 0x9a, 0x4e, 0x06, - 0x7b, 0x3b, 0x42, 0xfc, 0x28, 0x3b, 0x44, 0xbe, 0x44, 0xc5, 0x0e, 0xd3, - 0x7f, 0xed, 0x8a, 0x06, 0x83, 0xff, 0x11, 0x04, 0x3e, 0x48, 0x3b, 0x32, - 0x28, 0x3f, 0x4f, 0xe0, 0x06, 0x28, 0x3f, 0x0e, 0xf3, 0x7f, 0x10, 0x06, - 0xf0, 0xff, 0x07, 0x08, 0x0a, 0x09, 0x0a, 0x00, 0x0a, 0x07, 0x07, 0x09, - 0x0a, 0x09, 0x08, 0x07, 0x12, 0x07, 0x07, 0x07, 0x01, 0x2f, 0xff, 0x10, - 0x1b, 0x6f, 0xff, 0xd6, 0x02, 0x30, 0xe9, 0x30, 0xb8, 0x30, 0xeb, 0x06, - 0xa8, 0x3b, 0x72, 0xa8, 0x28, 0x33, 0x7a, 0x2f, 0xf9, 0x6c, 0x06, 0x80, - 0x7f, 0xe9, 0x00, 0x73, 0xbf, 0x06, 0xc0, 0x7f, 0x61, 0x60, 0x7f, 0x06, - 0x38, 0x3d, 0xb0, 0x7f, 0x06, 0x59, 0x3b, 0x90, 0xff, 0x06, 0x3f, 0xfd, - 0x08, 0xf4, 0x5d, 0x7f, 0x89, 0x06, 0x9f, 0xf5, 0x00, 0x00, 0x0c, 0x06, - 0xbe, 0x7c, 0xb7, 0xc8, 0xc9, 0x06, 0x90, 0x81, 0xb3, 0x7f, 0x69, 0x20, - 0x00, 0xeb, 0x0e, 0x01, 0xff, 0x11, 0x04, 0x40, 0x04, 0x30, 0x3e, 0x04, - 0x37, 0x28, 0x3d, 0x38, 0x41, 0x06, 0x18, 0x3d, 0x07, 0x34, 0xff, 0x10, - 0x0e, 0xb0, 0x7f, 0x08, 0x00, 0x09, 0x0b, 0x0a, 0x0b, 0x0b, 0x08, 0x08, - 0x0a, 0x45, 0x0b, 0x28, 0x3c, 0x08, 0x08, 0x08, 0x01, 0x3b, 0x6e, 0x01, - 0x6f, 0xff, 0x00, 0xf1, 0x82, 0x18, 0x98, 0xf4, 0x30, 0xa1, 0x30, 0x40, - 0xfc, 0x28, 0x41, 0xf3, 0x30, 0xf8, 0x8a, 0xf6, 0x5c, 0x88, 0x06, 0x18, - 0x3b, 0x69, 0x00, 0x74, 0x2f, 0xf9, 0x73, 0x00, 0x68, 0x08, 0x00, 0x20, - 0x00, 0x56, 0x2f, 0xff, 0x72, 0x00, 0x67, 0xaa, 0x2f, 0x89, 0x6e, 0x20, - 0x0d, 0x49, 0x27, 0xd5, 0x6c, 0x2f, 0x0f, 0x6e, 0x35, 0x00, 0x64, 0x27, - 0xdf, 0x04, 0x3f, 0xff, 0xce, 0x47, 0x33, 0x73, 0x60, 0x79, 0x6d, 0x65, - 0x40, 0x7b, 0x50, 0x0f, 0x62, 0x60, 0x99, 0x30, 0x7d, 0x6e, 0x2f, 0x99, - 0x1a, 0x71, 0x00, 0x75, 0x40, 0x29, 0x04, 0x90, 0xff, 0x63, 0x21, 0x01, - 0x65, 0xab, 0x21, 0x03, 0x4a, 0x20, 0x69, 0x6e, 0x21, 0x03, 0x66, 0x40, - 0x8f, 0x30, 0x7b, 0x5f, 0x6e, 0x28, 0xdd, 0x65, 0x2f, 0x9f, 0x04, 0x18, - 0x59, 0x31, 0x61, 0x3f, 0xf9, 0x30, 0x77, 0x6f, 0x56, 0x60, 0xff, 0x31, - 0x7b, 0x69, 0x21, 0x8b, 0x71, 0x9b, 0x71, 0x01, 0x50, 0x9f, 0xeb, 0x04, - 0x10, 0x7f, 0x31, 0xe1, 0x51, 0x81, 0xed, 0x61, 0x7f, 0x6e, 0x61, 0x93, - 0x72, 0x1d, 0x70, 0xe1, 0x60, 0x7f, 0x39, 0x65, 0x03, 0xdf, 0xff, 0xf1, - 0x82, 0x5e, 0x5c, 0x00, 0xf4, 0x7e, 0x14, 0x5c, 0xac, 0x4e, 0xa4, 0x7f, - 0x60, 0x9b, 0x05, 0xe2, 0xfb, 0x3f, 0xff, 0x01, 0xc6, 0x6d, 0xad, 0x39, - 0x00, 0xb8, 0x20, 0x00, 0x84, 0xbc, 0xc4, 0xc9, 0x44, 0x01, 0xc5, 0x7c, - 0xc7, 0x9c, 0xb7, 0xdc, 0xb4, 0x06, 0x33, 0x7f, 0x8a, 0x32, 0x5f, 0x20, - 0x00, 0x4d, 0x2f, 0xfb, 0x61, 0x23, 0x7d, 0x64, 0xf5, 0x61, 0x83, 0x3b, - 0xd1, 0x53, 0x7d, 0x04, 0x7a, 0xd5, 0x49, 0x2f, 0x75, 0x68, 0x81, 0xff, - 0xec, 0x53, 0xfb, 0x3b, 0x41, 0xb1, 0xfd, 0xe2, 0x04, 0x81, 0xfd, 0x58, - 0x3b, 0x38, 0x04, 0x41, 0x42, 0x28, 0x3f, 0x3d, 0x04, 0x41, 0x04, 0x3a, - 0x28, 0x43, 0x04, 0x35, 0x04, 0x20, 0x00, 0x12, 0x28, 0x4b, 0x40, 0x04, - 0x6a, 0x33, 0x28, 0x51, 0xb0, 0x15, 0x3e, 0x20, 0x21, 0x42, 0x28, 0x6b, - 0x3e, 0x38, 0x04, 0x32, 0x28, 0x6f, 0x0b, 0x54, 0xff, 0x10, 0x0e, 0xf0, - 0x7f, 0x09, 0x0a, 0x1d, 0x01, 0x0b, 0x1e, 0x1e, 0x09, 0x09, 0x0b, 0x1f, - 0x28, 0x3c, 0x12, 0x09, 0x09, 0x09, 0x01, 0x2f, 0xff, 0x12, 0x0d, 0x6f, - 0xff, 0xab, 0x05, 0x30, 0xca, 0x30, 0xc0, 0x30, 0x06, 0x9d, 0x79, 0x43, - 0x48, 0x19, 0x56, 0x61, 0x28, 0x1b, 0x61, 0x0e, 0x40, 0x7f, 0x4b, 0x0e, - 0xe0, 0xff, 0x91, 0xff, 0xe1, 0x81, 0x06, 0x4f, 0xfe, 0xa0, 0x52, 0xff, - 0x62, 0x27, 0x59, 0x06, 0x9f, 0xf7, 0x03, 0x90, 0xce, 0x98, 0xb0, 0xe4, - 0xb2, 0x0f, 0x33, 0x7f, 0x06, 0x51, 0xff, 0x47, 0x1a, 0x48, 0x35, 0x30, - 0x04, 0x34, 0x03, 0x88, 0x0d, 0x10, 0x01, 0xd4, 0xff, 0x10, 0x06, 0xf0, - 0xff, 0x00, 0x0a, 0x0b, 0x0c, 0x1b, 0x0c, 0x0c, 0x0a, 0x0a, 0x00, 0x0c, - 0x0c, 0x16, 0x0b, 0x0a, 0x0a, 0x0a, 0x0a, 0x90, 0x01, 0x2f, 0xff, 0x13, - 0x01, 0x6f, 0xff, 0xb1, 0x30, 0xa4, 0x30, 0x01, 0xde, 0x30, 0xf3, 0x30, - 0xf8, 0x8a, 0xf6, 0x06, 0x2d, 0x75, 0x8e, 0x58, 0x3b, 0x79, 0x00, 0x6d, - 0x4f, 0xdd, 0x05, 0x3b, 0x67, 0xff, 0xff, 0xce, 0xee, 0x4f, 0x73, 0x3e, - 0xf5, 0x38, 0xc5, 0xef, 0x60, 0x89, 0x05, 0x50, 0x7b, 0x78, 0x3b, 0x69, - 0xed, 0x60, 0xff, 0x3f, 0xef, 0x3d, 0xff, 0x6c, 0x04, 0x6d, 0xe3, 0x00, - 0x7f, 0xf7, 0x6f, 0x41, 0x03, 0xfd, 0x51, 0x01, 0x71, 0x8b, 0x05, 0xb0, - 0x7f, 0x3e, 0xdb, 0x71, 0x81, 0x31, 0x0b, 0xe1, 0x05, 0xa0, 0xff, 0x01, - 0x00, 0x5f, 0xfc, 0x66, 0xa4, 0x7f, 0x9b, 0x06, 0x42, 0xfb, 0x80, 0x4f, - 0xff, 0xcf, 0x74, 0xc7, 0xe8, 0xb9, 0x20, 0x00, 0x0d, 0x1c, 0xc8, 0xc4, - 0xb3, 0x06, 0x7a, 0xbb, 0x92, 0x81, 0x65, 0x2f, 0xf9, 0xed, 0x7e, 0xe7, - 0x3f, 0xfd, 0x05, 0x32, 0x7f, 0x6c, 0x2f, 0x6f, 0xd1, 0xff, 0xe3, 0x22, - 0x91, 0x88, 0x05, 0xb8, 0x3b, 0x39, 0x04, 0x3c, 0x48, 0x41, 0x3e, 0x04, - 0x32, 0x00, 0x04, 0x4b, 0x04, 0x20, 0x00, 0x3e, 0x04, 0x41, 0x0f, 0x04, - 0x42, 0x04, 0x40, 0x40, 0x0f, 0x04, 0xf8, 0x51, 0x06, 0xf4, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x00, 0x0b, 0x0c, 0x1a, 0x1a, 0x1c, 0x1c, 0x0b, 0x0b, - 0x00, 0x1c, 0x1c, 0x15, 0x0c, 0x0b, 0x0b, 0x0b, 0x0b, 0x90, 0x01, 0x2f, - 0xff, 0x14, 0x0d, 0x6f, 0xff, 0xc1, 0x30, 0xea, 0x30, 0xd5, 0x06, 0x9d, - 0x75, 0x3f, 0xf7, 0x68, 0x44, 0xaf, 0x65, 0x06, 0xe0, 0x7f, 0x69, 0x0e, - 0x80, 0xff, 0xc2, 0x06, 0xb1, 0x7d, 0x07, 0x11, 0xff, 0x7a, 0x66, 0x29, - 0x52, 0x06, 0xb2, 0xff, 0x60, 0x18, 0xce, 0x08, 0xb8, 0x07, 0x33, 0x7f, - 0x0e, 0x72, 0xff, 0x27, 0x04, 0x38, 0x38, 0x04, 0x3b, 0x20, 0x03, 0x0e, - 0xf4, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x0c, 0x0d, 0x0d, 0xd2, 0x30, 0x02, - 0x20, 0x06, 0x2f, 0x20, 0x05, 0x0c, 0x0c, 0x01, 0x2f, 0xff, 0x15, 0x40, - 0x21, 0x6f, 0xff, 0xb3, 0x30, 0xed, 0x30, 0xf3, 0x30, 0x15, 0xd3, 0x30, - 0xa2, 0x06, 0x68, 0x41, 0x43, 0x4e, 0xf5, 0x6f, 0x2f, 0xef, 0x5a, 0x62, - 0x2f, 0x7f, 0x61, 0x06, 0xe0, 0x7f, 0x06, 0x18, 0xc1, 0x4b, 0x4f, 0xf5, - 0x75, 0xf0, 0x80, 0x7f, 0x05, 0xaf, 0x71, 0x08, 0x21, 0x7f, 0x06, 0x11, - 0xff, 0xe5, 0x54, 0x26, 0x4f, 0x08, 0xd4, 0x6b, 0x9a, 0x4e, 0x06, 0x7b, - 0x3f, 0x5c, 0xcf, 0x6c, 0x06, 0xb8, 0x44, 0xbe, 0x44, 0xc5, 0x06, 0x9b, - 0xbb, 0x07, 0x33, 0x7f, 0xf4, 0x88, 0x06, 0x83, 0xff, 0x1a, 0x04, 0x3e, - 0x28, 0x3b, 0x43, 0x04, 0x3c, 0x2e, 0x04, 0x31, 0x28, 0x45, 0x4f, 0x06, - 0x08, 0x43, 0x0e, 0xf3, 0x7f, 0x10, 0x06, 0xf0, 0xff, 0x0d, 0x02, 0x0e, - 0x0e, 0x1c, 0x0e, 0x0e, 0x0d, 0x20, 0x06, 0x17, 0x92, 0x20, 0x05, 0x0d, - 0x0d, 0x01, 0x2f, 0xff, 0x16, 0x07, 0x88, 0x3b, 0xb9, 0x02, 0x30, 0xbf, - 0x30, 0xea, 0x30, 0xab, 0x06, 0xa8, 0x3b, 0x73, 0x22, 0x00, 0x74, 0x28, - 0x35, 0x20, 0x00, 0x52, 0x2f, 0xfd, 0x63, 0xc0, 0x05, 0xe8, 0x3f, 0x10, - 0x0e, 0xf0, 0x7f, 0xe5, 0x54, 0xaf, 0x65, 0xbe, 0x8f, 0x08, 0xce, 0x9e, - 0xa0, 0x52, 0x06, 0x5f, 0xfd, 0x54, 0xcf, 0xa4, 0x01, 0xc2, 0xc0, 0xd0, - 0xac, 0xb9, 0x74, 0xce, 0x10, 0x06, 0x53, 0x7f, 0x80, 0x38, 0x3b, 0x41, - 0x04, 0x42, 0x04, 0x30, 0x04, 0x2d, 0x2c, 0x00, 0x20, 0x28, 0x3d, 0x3a, - 0x20, 0x09, 0x10, 0x1d, 0xb4, 0xff, 0x0e, 0x0f, 0x05, 0x0f, 0x0d, 0x0f, - 0x0f, 0x0e, 0x20, 0x06, 0x18, 0x20, 0x05, 0x24, 0x0e, 0x0e, 0x01, 0x2f, - 0xff, 0x17, 0x01, 0x6f, 0xff, 0xc9, 0x30, 0x12, 0xdf, 0x30, 0xcb, 0x28, - 0x39, 0xfd, 0x56, 0x06, 0x5d, 0x79, 0x44, 0xba, 0x4f, 0xf3, 0x69, 0x2f, - 0x6f, 0x06, 0x18, 0x37, 0xf0, 0x7f, 0x71, 0x2f, 0xff, 0x65, 0xc0, 0x0e, - 0xa0, 0xff, 0x0e, 0x30, 0x7f, 0x1a, 0x59, 0x73, 0x7c, 0x3c, 0x5c, 0x20, - 0x4b, 0x51, 0x06, 0x7f, 0xf7, 0xc4, 0xb3, 0xf8, 0xbb, 0xc8, 0x00, 0xb2, - 0x74, 0xce, 0x20, 0x00, 0xf0, 0xc5, 0x29, 0x6a, 0xbc, 0x0e, 0xd3, 0x7f, - 0x06, 0x33, 0xff, 0x14, 0x28, 0x3b, 0x3c, 0x28, 0x33, 0x3d, 0xe0, 0x06, - 0x28, 0x37, 0x10, 0x07, 0x33, 0xff, 0x0e, 0xf5, 0x7f, 0x0f, 0x10, 0x10, - 0x0e, 0x10, 0x29, 0x10, 0x0f, 0x20, 0x06, 0x13, 0x20, 0x05, 0x0f, 0x0f, - 0x01, 0x2f, 0xff, 0x21, 0x18, 0x1e, 0xe8, 0x3b, 0x71, 0x51, 0x8c, 0x54, - 0x06, 0x38, 0x3f, 0xa2, 0xf8, 0x3b, 0x6e, 0x4f, 0xff, 0x65, 0x00, 0x70, - 0x27, 0xc7, 0x62, 0x31, 0x00, 0x6c, 0x4f, 0x89, 0x04, 0xbf, 0xff, 0x52, - 0x00, 0xe9, 0xa0, 0x6b, 0x8f, 0x58, 0x3d, 0x20, 0x00, 0x64, 0xe8, 0xd1, - 0x38, 0xdb, 0x04, 0x58, 0x55, 0xb9, 0x3b, 0x51, 0x6b, 0x40, 0xff, 0x69, - 0x2f, 0x87, 0x63, 0x00, 0x68, 0x40, 0x87, 0xbf, 0xd1, 0x09, 0x6b, 0x04, - 0x40, 0xff, 0x71, 0x6b, 0x71, 0x6d, 0x3e, 0x81, 0x00, 0x11, 0x95, 0x04, - 0x7e, 0x8d, 0xb3, 0x51, 0xeb, 0xfa, 0x06, 0x60, 0x7d, 0x78, 0x3b, 0xa0, - 0x52, 0x06, 0x72, 0xff, 0x98, 0x3b, 0x03, 0xf5, 0xac, 0x54, 0xd6, 0x6d, - 0xad, 0x06, 0xfb, 0xbb, 0x33, 0x81, 0x5c, 0x73, 0x00, 0x22, 0x7b, 0x65, - 0x04, 0x42, 0x7d, 0x07, 0x11, 0xff, 0xf8, 0x3b, 0x3d, 0x04, 0x40, 0x41, - 0x48, 0x43, 0x4f, 0x04, 0x20, 0x00, 0x20, 0x04, 0x40, 0x35, 0x20, 0x0d, - 0x3f, 0x04, 0x43, 0x04, 0x31, 0x04, 0x70, 0x3b, 0x04, 0x68, 0x5b, 0x06, - 0xf4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x10, 0x11, 0x28, 0x0f, 0x00, 0x28, - 0x29, 0x10, 0x10, 0x11, 0x29, 0x14, 0x11, 0x09, 0x10, 0x10, 0x10, 0x10, - 0x01, 0x2f, 0xff, 0x19, 0x18, 0x6f, 0xff, 0x00, 0xa8, 0x30, 0xaf, 0x30, - 0xa2, 0x30, 0xc9, 0x30, 0x2b, 0xeb, 0x30, 0x06, 0x5d, 0x79, 0x45, 0x2f, - 0x6d, 0x75, 0x2f, 0x6f, 0x37, 0xad, 0x51, 0x72, 0x06, 0x2d, 0xfc, 0xc9, - 0x48, 0x2f, 0x61, 0x00, 0x74, 0x28, 0xaf, 0x70, 0x75, 0x06, 0x20, 0x81, - 0x06, 0xf0, 0xff, 0x0e, 0xf0, 0x7f, 0x84, 0x53, 0xdc, 0x74, 0x08, 0x1a, - 0x59, 0x14, 0x5c, 0x06, 0x52, 0xfd, 0x00, 0x00, 0xd0, 0x01, 0xc5, 0x70, - 0xcf, 0xc4, 0xb3, 0x74, 0xb9, 0x06, 0x70, 0x7f, 0xea, 0x07, 0x12, 0x7f, - 0x53, 0x7f, 0x06, 0x73, 0xff, 0x2d, 0x28, 0x31, 0x32, 0x28, 0x33, 0x34, - 0xb8, 0x28, 0x43, 0x40, 0x04, 0x08, 0x19, 0x10, 0x09, 0x13, 0xff, 0x0e, - 0xf5, 0x7f, 0x11, 0x12, 0x12, 0x00, 0x10, 0x11, 0x11, 0x11, 0x11, 0x12, - 0x13, 0x30, 0x68, 0x12, 0x30, 0x07, 0x01, 0x3d, 0x6e, 0x0e, 0x88, 0x3b, - 0xeb, 0x30, 0xb5, 0xa8, 0x28, 0x39, 0xd0, 0x06, 0x68, 0x3f, 0x45, 0x2f, - 0xef, 0x20, 0x00, 0x53, 0x8f, 0x2f, 0xdb, 0x6c, 0x00, 0x76, 0x06, 0x28, - 0x43, 0x06, 0x90, 0x79, 0x07, 0x50, 0xff, 0x0e, 0xf0, 0x7f, 0x06, 0x28, - 0x84, 0x14, 0x5c, 0xe6, 0x28, 0x3d, 0x06, 0x78, 0x3b, 0xd8, 0x06, 0xc5, - 0xb4, 0xc0, 0x14, 0xbc, 0x06, 0x98, 0x3d, 0x0e, 0xf2, 0x7f, 0x21, 0x8e, - 0x28, 0x37, 0x3b, 0x04, 0x4c, 0x06, 0x88, 0x3f, 0x10, 0x06, 0xf3, 0xff, - 0x0e, 0xf5, 0x7f, 0x12, 0x20, 0x13, 0x2c, 0x28, 0x3e, 0x12, 0x12, 0x13, - 0x11, 0x23, 0x64, 0x13, 0x30, 0x07, 0x01, 0x2f, 0xff, 0x1b, 0x01, 0x6f, - 0xff, 0xd5, 0x30, 0x00, 0xe9, 0x30, 0xf3, 0x30, 0xb9, 0x30, 0x18, 0x98, - 0x05, 0xae, 0x30, 0xa2, 0x30, 0xca, 0x06, 0x08, 0x3d, 0x46, 0x2f, 0xeb, - 0x15, 0x65, 0x00, 0x6e, 0x2f, 0x7d, 0x68, 0x28, 0x43, 0x47, 0x2f, 0xfb, - 0x5d, 0x69, 0x2f, 0x85, 0x6e, 0x2f, 0x89, 0x05, 0x5f, 0xff, 0x30, 0x71, - 0x79, 0x40, 0x71, 0x70, 0x65, 0x06, 0x4e, 0x7a, 0x30, 0xff, 0x30, 0xef, - 0x7a, 0x00, 0xf6, 0x00, 0x57, 0x73, 0x20, 0xfb, 0x73, 0x41, 0x09, 0x2d, - 0xa0, 0x97, 0x04, 0xd1, 0x09, 0xb0, 0x67, 0x56, 0x20, 0x80, 0x8d, 0x63, - 0x21, 0x93, 0x73, 0x05, 0x41, 0x11, 0x31, 0xf1, 0x61, 0xc0, 0x00, 0x80, - 0x81, 0x05, 0x12, 0x05, 0xd5, 0x6c, 0x5e, 0x5c, 0x2d, 0x57, 0x08, 0x9a, - 0x4e, 0xa3, 0x90, 0x06, 0x5f, 0xf9, 0x04, 0xd5, 0x91, 0x00, 0xb7, 0xa4, - 0xc2, 0x39, 0xb8, 0x20, 0x00, 0x30, 0x05, 0xae, 0x44, 0xc5, 0x98, 0xb0, - 0x06, 0x72, 0x7f, 0x73, 0x05, 0xa2, 0x73, 0xe2, 0xf3, 0x7f, 0x73, 0xf1, - 0x06, 0x11, 0xfd, 0x00, 0x00, 0x24, 0x28, 0x2d, 0x30, 0x00, 0x04, 0x3d, - 0x04, 0x46, 0x04, 0x43, 0x04, 0x37, 0x08, 0x04, 0x41, 0x04, 0x3a, 0x28, - 0x4b, 0x4f, 0x04, 0x20, 0x2b, 0x00, 0x13, 0x28, 0x4d, 0x38, 0x40, 0x19, - 0x30, 0x04, 0xc8, 0x4d, 0x06, 0xf4, 0xff, 0x80, 0x10, 0x0e, 0xf0, 0x7f, - 0x13, 0x14, 0x17, 0x12, 0x19, 0x18, 0x13, 0x00, 0x13, 0x14, 0x19, 0x2e, - 0x14, 0x13, 0x13, 0x13, 0x51, 0x13, 0x01, 0x2f, 0xff, 0x1c, 0x78, 0x3b, - 0xb0, 0x30, 0xec, 0x28, 0x31, 0x7f, 0xc0, 0x06, 0x08, 0x33, 0x97, 0xbb, - 0x58, 0x3b, 0x3f, 0xf7, 0x05, 0x94, 0xb1, 0x00, 0x50, 0x7f, 0x06, 0x38, - 0x3d, 0xf0, 0x07, 0xb0, 0xff, 0x06, 0x71, 0x7f, 0x5a, 0x2b, 0x06, 0x51, - 0xff, 0x3c, 0x68, 0x97, 0x67, 0x08, 0xb3, 0x7e, 0xbe, 0x8f, 0x06, 0x72, - 0xff, 0xf8, 0xad, 0x08, 0x06, 0xb8, 0x98, 0xb0, 0xe4, 0xb2, 0x0e, 0xb3, - 0x7f, 0x06, 0xb1, 0xff, 0x13, 0xae, 0x28, 0x3b, 0x35, 0x48, 0x21, 0x34, - 0x04, 0xe8, 0x25, 0x10, 0x00, 0x93, 0xff, 0x10, 0x06, 0xb0, 0xff, 0x14, - 0x00, 0x15, 0x14, 0x13, 0x15, 0x15, 0x14, 0x14, 0x15, 0x25, 0x15, 0x12, - 0x20, 0x05, 0x14, 0x14, 0x01, 0x2f, 0xff, 0x1d, 0x98, 0x3b, 0x00, 0xa2, - 0x30, 0xc9, 0x30, 0xeb, 0x30, 0xfc, 0x30, 0x71, 0xd7, 0x06, 0x48, 0x3f, - 0x5e, 0x77, 0x37, 0xb7, 0x6c, 0x00, 0x6f, 0x2f, 0x6b, 0x6f, 0x70, 0x05, - 0xef, 0xff, 0x0f, 0x70, 0x7f, 0x61, 0x21, 0x7f, 0x31, 0x7d, 0x05, 0xf9, - 0xbf, 0xf0, 0x7f, 0x80, 0x05, 0xf9, 0xbf, 0xdc, 0x74, 0xb7, 0x5f, 0x57, - 0x7f, 0x6e, 0x40, 0x66, 0x06, 0x7b, 0x3b, 0xfc, 0xac, 0xe4, 0xb4, 0xe8, - 0xb8, 0x38, 0x04, 0xd5, 0x06, 0x9b, 0xbb, 0x07, 0xd2, 0x7f, 0x05, 0xfb, - 0xbf, 0x13, 0x04, 0x32, 0x80, 0x48, 0x37, 0x35, 0x04, 0x3b, 0x04, 0x43, - 0x04, 0x3f, 0xe0, 0x06, 0x08, 0x3f, 0x10, 0x07, 0x74, 0xff, 0x0e, 0x76, - 0x7f, 0x15, 0x16, 0x15, 0x14, 0x16, 0x02, 0x16, 0x15, 0x15, 0x16, 0x16, - 0x0f, 0x20, 0x05, 0x15, 0x48, 0x15, 0x01, 0x2f, 0xff, 0x1e, 0x16, 0xa8, - 0x3b, 0xc6, 0x30, 0xde, 0x35, 0x30, 0xe9, 0x06, 0x48, 0x39, 0x78, 0x3b, - 0x74, 0x2f, 0xfb, 0x6d, 0x46, 0xbf, 0xc0, 0x06, 0x56, 0xbb, 0x10, 0x0e, - 0x90, 0x7f, 0x71, 0x53, 0x30, 0x57, 0x6c, 0x9a, 0x20, 0xc9, 0x62, 0x06, - 0x98, 0x3b, 0x4c, 0xd1, 0xd0, 0xb9, 0x7c, 0x75, 0xb7, 0x06, 0xd8, 0x3b, - 0x0e, 0x93, 0x7f, 0x58, 0x3b, 0x42, 0x28, 0x3b, 0x3c, 0x28, 0x43, 0x60, - 0x3b, 0x06, 0x68, 0x3b, 0x10, 0x16, 0x94, 0xff, 0x16, 0x17, 0x16, 0x15, - 0x17, 0x02, 0x17, 0x16, 0x16, 0x17, 0x17, 0x10, 0x20, 0x05, 0x16, 0xc8, - 0x78, 0x16, 0x00, 0xbf, 0xff, 0x1f, 0x0a, 0x6f, 0xff, 0xac, 0x30, 0xa4, - 0xb5, 0x28, 0x3d, 0xca, 0x06, 0x68, 0x39, 0x5f, 0xf7, 0x79, 0x2f, 0xf9, - 0x6e, 0x06, 0x0e, 0xf1, 0x88, 0x5f, 0xff, 0x52, 0x00, 0xe9, 0x2f, 0xeb, - 0x75, 0x00, 0x62, 0x88, 0x2f, 0xf7, 0x69, 0x00, 0x71, 0x2f, 0xf9, 0x65, - 0x00, 0x20, 0x28, 0x00, 0x63, 0x2d, 0x83, 0x6f, 0x2f, 0x85, 0xe9, 0x00, - 0x72, 0x8d, 0x48, 0xd9, 0x69, 0x00, 0x76, 0x40, 0x17, 0x3d, 0x9f, 0x20, - 0x03, 0xc0, 0xb3, 0xc0, 0x06, 0xf0, 0xff, 0x0e, 0xf0, 0x7f, 0x2d, 0x57, - 0x9a, 0x4e, 0xa3, 0x90, 0xc0, 0x06, 0x7f, 0xf5, 0x33, 0x80, 0x74, 0xc7, - 0x44, 0xc5, 0x98, 0xb0, 0xd5, 0x0e, 0x73, 0x7f, 0x3f, 0x77, 0x69, 0x06, - 0xa3, 0xff, 0x13, 0x28, 0x39, 0x39, 0x28, 0x3d, 0x70, 0x3d, 0x06, 0x08, - 0x35, 0x10, 0x07, 0x53, 0xff, 0x0e, 0xf5, 0x7f, 0x17, 0x18, 0x27, 0x16, - 0x00, 0x18, 0x19, 0x17, 0x17, 0x18, 0x18, 0x0d, 0x18, 0x0a, 0x17, 0x17, - 0x17, 0x17, 0x01, 0x2f, 0xff, 0x20, 0x78, 0x3b, 0xcf, 0xa2, 0x28, 0x3b, - 0xc1, 0x06, 0x88, 0x39, 0x00, 0x00, 0x48, 0x2f, 0xf5, 0x69, 0xdd, 0x47, - 0x9d, 0x06, 0x90, 0x7f, 0xef, 0x06, 0xe0, 0x7f, 0x06, 0xf0, 0xff, 0x07, - 0x30, 0x7f, 0xed, 0x06, 0x6f, 0xf8, 0x08, 0x77, 0x6d, 0x30, 0x57, 0x06, - 0xa8, 0x39, 0x00, 0x44, 0xc5, 0x0e, 0x74, 0xc7, 0xf0, 0xd2, 0x06, 0xd3, - 0x7f, 0x0e, 0xb2, 0xff, 0x38, 0x3b, 0x38, 0x38, 0x04, 0x42, 0x20, 0x03, - 0x10, 0x06, 0xd3, 0xff, 0x10, 0x06, 0x75, 0x7f, 0x18, 0x19, 0x18, 0x00, - 0x17, 0x1a, 0x1a, 0x18, 0x18, 0x19, 0x1a, 0x0e, 0x04, 0x19, 0x18, 0x18, - 0x18, 0x18, 0x01, 0x2f, 0xff, 0x21, 0x12, 0x80, 0x6f, 0xff, 0xdb, 0x30, - 0xf3, 0x30, 0xb8, 0x30, 0xe5, 0x0a, 0x30, 0xe9, 0x30, 0xb9, 0x06, 0x48, - 0x41, 0x48, 0x2f, 0xe1, 0x6e, 0xa8, 0x2f, 0xcf, 0x75, 0x4f, 0xe1, 0x73, - 0x10, 0x16, 0x00, 0x7f, 0x2a, 0x6d, 0xfd, 0x04, 0x90, 0xc9, 0x62, 0xaf, - 0x65, 0x06, 0x7f, 0xf7, 0x28, 0xc6, 0x03, 0x50, 0xb4, 0x7c, 0xb7, 0xa4, - 0xc2, 0x06, 0x9b, 0xbb, 0x0e, 0xd3, 0x7f, 0x00, 0x13, 0x04, 0x3e, 0x04, - 0x3d, 0x04, 0x34, 0x04, 0x16, 0x43, 0x04, 0x40, 0x28, 0x45, 0x41, 0x06, - 0x08, 0x41, 0x10, 0x16, 0xf4, 0xff, 0x19, 0x00, 0x1a, 0x19, 0x18, 0x1b, - 0x1b, 0x19, 0x19, 0x1a, 0x01, 0x1b, 0x11, 0x1a, 0x19, 0x19, 0x19, 0x19, - 0x01, 0x2f, 0xff, 0x20, 0x22, 0x0e, 0x6f, 0xff, 0xb8, 0x30, 0xe3, 0x30, - 0xde, 0x08, 0x30, 0xa4, 0x30, 0xab, 0x06, 0x48, 0x39, 0x00, 0x00, 0x4a, - 0xac, 0x2f, 0xf7, 0x6d, 0x4f, 0x7b, 0x63, 0x2f, 0x81, 0x06, 0x90, 0x7f, - 0xef, 0x00, 0x75, 0x71, 0x28, 0xbf, 0x06, 0x16, 0x42, 0x90, 0xff, 0x6b, - 0x06, 0x40, 0xff, 0x47, 0x2f, 0xf5, 0xc0, 0x06, 0xb1, 0x81, 0x06, 0xf1, - 0xff, 0x59, 0x72, 0x70, 0x4e, 0xa0, 0x52, 0x80, 0x06, 0x9f, 0xf7, 0x90, - 0xc7, 0x54, 0xba, 0x74, 0xc7, 0x74, 0x71, 0xce, 0x06, 0x78, 0xbb, 0x07, - 0x73, 0x7f, 0x06, 0x73, 0xff, 0x2f, 0x04, 0x3c, 0x28, 0x33, 0x1c, 0x39, - 0x04, 0x3a, 0x28, 0x39, 0x10, 0x06, 0x31, 0x7f, 0x10, 0x06, 0xf0, 0xff, - 0x1a, 0x1b, 0x00, 0x1e, 0x19, 0x14, 0x20, 0x1a, 0x1a, 0x1b, 0x20, 0x02, - 0x31, 0x1b, 0x1a, 0x1a, 0x1a, 0x1a, 0x01, 0x2f, 0xff, 0x23, 0x40, 0x01, - 0x6f, 0xff, 0xde, 0x30, 0xeb, 0x30, 0xc6, 0x30, 0x01, 0xa3, 0x30, 0xcb, - 0x30, 0xfc, 0x30, 0xaf, 0x06, 0x28, 0x3f, 0x45, 0x4d, 0x2f, 0xed, 0x72, - 0x00, 0x74, 0x28, 0x3b, 0x6e, 0x28, 0x3f, 0xf0, 0x06, 0x17, 0xbf, 0x0f, - 0xd0, 0x7f, 0x06, 0x19, 0xbf, 0x06, 0xf0, 0x7f, 0x6c, 0x9a, 0xd0, 0x63, - 0x08, 0x3c, 0x5c, 0x4b, 0x51, 0x06, 0x7f, 0xf7, 0xc8, 0xb9, 0x74, 0x01, - 0xb9, 0xf0, 0xd2, 0xc8, 0xb2, 0x6c, 0xd0, 0x06, 0x5b, 0xbb, 0xa0, 0x0e, - 0xf2, 0x7f, 0x1c, 0x28, 0x39, 0x40, 0x04, 0x42, 0x04, 0x38, 0x3c, 0x04, - 0x3d, 0x20, 0x03, 0x06, 0x18, 0x41, 0x10, 0x07, 0xd4, 0xff, 0x0e, 0x16, - 0x7f, 0x1b, 0x1d, 0x00, 0x20, 0x1e, 0x21, 0x22, 0x1b, 0x1b, 0x1e, 0x22, - 0x02, 0x1a, 0x1d, 0x1b, 0x1b, 0x1b, 0x1b, 0x01, 0x2f, 0xff, 0x24, 0x40, - 0x20, 0x6f, 0xff, 0xe1, 0x30, 0xad, 0x30, 0xb7, 0x30, 0x62, 0xb3, 0x06, - 0x28, 0x35, 0x78, 0x3b, 0x65, 0x00, 0x78, 0x4e, 0xf3, 0x6f, 0xeb, 0x06, - 0xc0, 0x7f, 0x06, 0x18, 0xb5, 0xd0, 0xff, 0x6b, 0x06, 0xa0, 0xff, 0x73, - 0x20, 0x01, 0x06, 0x71, 0x81, 0x10, 0x4d, 0x00, 0xe9, 0x06, 0xc1, 0xff, - 0xa8, 0x58, 0x7f, 0x89, 0x20, 0xe5, 0x54, 0x06, 0x7f, 0xf5, 0x00, 0x00, - 0x55, 0xba, 0xdc, 0x1c, 0xc2, 0x54, 0xcf, 0x06, 0x90, 0x7f, 0x07, 0x13, - 0x7f, 0x06, 0xd1, 0xff, 0x1c, 0x04, 0x5c, 0x35, 0x28, 0x31, 0x41, 0x06, - 0x48, 0x37, 0x07, 0xb4, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x1c, 0x1e, 0x00, - 0x21, 0x1f, 0x22, 0x23, 0x1c, 0x1c, 0x1f, 0x23, 0x02, 0x1b, 0x1e, 0x1c, - 0x1c, 0x1c, 0x1c, 0x01, 0x2f, 0xff, 0x25, 0x40, 0x01, 0x6f, 0xff, 0xe2, - 0x30, 0xf3, 0x30, 0xc8, 0x30, 0x1a, 0xbb, 0x30, 0xe9, 0x20, 0x05, 0x06, - 0x5c, 0xf7, 0x6f, 0x2f, 0xf1, 0x74, 0xaa, 0x26, 0xbf, 0x65, 0x2f, 0xff, - 0x72, 0x2f, 0x85, 0x74, 0x10, 0x15, 0xc0, 0x7f, 0x99, 0x00, 0x84, 0x79, - 0x72, 0x5e, 0x58, 0xc9, 0x62, 0x79, 0x40, 0x72, 0x06, 0x5f, 0xf7, 0xac, - 0xba, 0xb8, 0xd2, 0x38, 0xc1, 0x30, 0xab, 0xb7, 0x06, 0x9b, 0xbb, 0x0e, - 0xd3, 0x7f, 0x1c, 0x04, 0x3e, 0x04, 0x11, 0x3d, 0x04, 0x42, 0x28, 0x3d, - 0x35, 0x04, 0x40, 0x20, 0x01, 0x60, 0x30, 0x20, 0x0b, 0x10, 0x1d, 0xb4, - 0xff, 0x1d, 0x1f, 0x22, 0x20, 0x23, 0x00, 0x24, 0x1d, 0x1d, 0x20, 0x24, - 0x1c, 0x1f, 0x1d, 0x15, 0x1d, 0x1d, 0x1d, 0x01, 0x2f, 0xff, 0x26, 0x78, - 0x3b, 0xaa, 0x28, 0x35, 0x01, 0xf3, 0x30, 0xc0, 0x30, 0x18, 0x98, 0xa2, - 0x28, 0x45, 0x05, 0xc6, 0x30, 0xa3, 0x30, 0xeb, 0x05, 0xc8, 0x43, 0x4e, - 0x2f, 0xf7, 0x14, 0x74, 0x00, 0x68, 0x48, 0x39, 0x6c, 0x28, 0x39, 0x6e, - 0x00, 0x45, 0x64, 0x2f, 0x07, 0x20, 0x00, 0x41, 0x48, 0x51, 0x69, 0x20, - 0x13, 0x75, 0x6c, 0x4f, 0x19, 0x04, 0x7f, 0xff, 0xf0, 0x67, 0x20, 0x28, - 0xc9, 0xe9, 0xc0, 0x8d, 0x75, 0x61, 0x2f, 0x93, 0x38, 0xd9, 0x04, 0x50, - 0x83, 0x4e, 0x2f, 0xf1, 0x65, 0x20, 0xf3, 0xb6, 0x50, 0xff, 0xe4, 0x40, - 0xff, 0x30, 0x6f, 0x63, 0x41, 0x13, 0xf1, 0x07, 0x6e, 0x8d, 0x04, 0xe0, - 0xff, 0x20, 0x00, 0x4f, 0x81, 0x85, 0x31, 0x75, 0x69, 0x05, 0x0f, 0xff, - 0xbf, 0xb1, 0xe7, 0x61, 0x41, 0xf9, 0x32, 0x11, 0xb2, 0x0d, 0x31, 0xfd, - 0x30, 0x19, 0x04, 0x5f, 0xff, 0x00, 0x77, 0x83, 0x5e, 0x5c, 0x89, 0x5b, - 0x84, 0x76, 0x08, 0x17, 0x52, 0xaf, 0x65, 0x06, 0x3f, 0xfd, 0x24, 0xb1, - 0x5c, 0x00, 0xb3, 0x80, 0xb7, 0xdc, 0xb4, 0x39, 0xb8, 0x20, 0x00, 0x00, - 0x64, 0xc5, 0xf8, 0xd2, 0xac, 0xb9, 0xa4, 0x7d, 0xc2, 0x05, 0xf3, 0x7f, - 0x72, 0x7d, 0x73, 0x7d, 0x05, 0x32, 0x77, 0x00, 0x13, 0x7f, 0x68, 0x61, - 0xff, 0x70, 0x48, 0x2f, 0x81, 0x05, 0x51, 0xfb, 0x45, 0x3b, 0x04, 0x38, - 0x04, 0x34, 0xa8, 0x48, 0x37, 0x3b, 0x28, 0x37, 0x3d, 0x20, 0x0b, 0x41, - 0x04, 0x3a, 0x82, 0x20, 0x13, 0x35, 0x04, 0x20, 0x00, 0x10, 0x48, 0x55, - 0x38, 0xaa, 0x20, 0x19, 0x4c, 0xa0, 0x15, 0x3e, 0x28, 0x67, 0x42, 0x28, - 0x67, 0x3e, 0x38, 0x04, 0x32, 0x28, 0x69, 0x0a, 0xf4, 0xff, 0x10, 0x0e, - 0xf0, 0x7f, 0x1e, 0x20, 0x02, 0x00, 0x22, 0x02, 0x02, 0x1e, 0x1e, 0x21, - 0x02, 0x1d, 0x04, 0x20, 0x1e, 0x1e, 0x1e, 0x1e, 0x01, 0x2f, 0xff, 0x27, - 0x11, 0x88, 0x6f, 0xff, 0xcb, 0x30, 0xab, 0x28, 0x3d, 0xb0, 0x30, 0xa2, - 0xd8, 0x05, 0xc8, 0x31, 0xd7, 0x3b, 0x63, 0x2f, 0xed, 0x3f, 0xf1, 0x67, - 0x00, 0x75, 0xc0, 0x2f, 0xf7, 0x10, 0x15, 0xd0, 0x7f, 0x3c, 0x5c, 0xa0, - 0x52, 0xc9, 0x62, 0x60, 0xdc, 0x05, 0xdf, 0x6c, 0xaf, 0xff, 0xc8, 0xb2, - 0x74, 0xce, 0x7c, 0x1b, 0xb7, 0xfc, 0xac, 0x06, 0x70, 0x7f, 0x07, 0x93, - 0x7f, 0xe1, 0x06, 0x43, 0xff, 0x38, 0x3b, 0x51, 0x3a, 0x28, 0x35, 0x40, - 0x28, 0x39, 0x33, 0x04, 0x43, 0x03, 0x28, 0x0d, 0x80, 0x10, 0x19, 0xd4, - 0xff, 0x1f, 0x21, 0x23, 0x21, 0x24, 0x25, 0x1f, 0x00, 0x1f, 0x22, 0x25, - 0x1e, 0x21, 0x1f, 0x1f, 0x1f, 0x48, 0x1f, 0x01, 0x2f, 0xff, 0x28, 0x0a, - 0x6f, 0xff, 0xd1, 0x30, 0xca, 0x34, 0x30, 0xde, 0x06, 0x68, 0x37, 0x3f, - 0xff, 0x50, 0x4f, 0xdd, 0x61, 0x00, 0x68, 0x6d, 0x06, 0x08, 0x35, 0x0f, - 0xf0, 0x7f, 0xe1, 0x0e, 0x40, 0x7f, 0xf4, 0x5d, 0xff, 0x10, 0x62, 0x6c, - 0x9a, 0x06, 0x92, 0xff, 0x0c, 0xd3, 0x98, 0xb0, 0x35, 0xc8, 0xb9, 0x0f, - 0x33, 0x7f, 0x06, 0x52, 0x7f, 0x1f, 0x28, 0x37, 0x3d, 0x28, 0x3b, 0x70, - 0x3c, 0x06, 0x08, 0x35, 0x10, 0x07, 0xf4, 0xff, 0x0e, 0x56, 0x7f, 0x20, - 0x22, 0x24, 0x23, 0x00, 0x25, 0x26, 0x20, 0x20, 0x23, 0x26, 0x20, 0x22, - 0x09, 0x20, 0x20, 0x20, 0x20, 0x01, 0x2f, 0xff, 0x29, 0x12, 0x88, 0x3b, - 0x01, 0xe9, 0x30, 0xb0, 0x30, 0xa2, 0x30, 0xa4, 0x06, 0x68, 0x3f, 0xd0, - 0x38, 0x3b, 0x9f, 0xf3, 0x79, 0x10, 0x16, 0x00, 0x7f, 0xf4, 0x5d, 0xc9, - 0x62, 0x20, 0x2d, 0x57, 0x06, 0xb8, 0x3b, 0x7c, 0xb7, 0xfc, 0xac, 0x74, - 0x6a, 0xc7, 0x06, 0xbb, 0xbb, 0x07, 0x93, 0x7f, 0x69, 0x06, 0x48, 0x3b, - 0x40, 0x28, 0x3f, 0x33, 0x2c, 0x04, 0x32, 0x28, 0x45, 0x39, 0x06, 0x08, - 0x3f, 0x10, 0x16, 0xf4, 0xff, 0x21, 0x23, 0x00, 0x25, 0x24, 0x26, 0x27, - 0x21, 0x21, 0x24, 0x27, 0x02, 0x21, 0x23, 0x21, 0x21, 0x21, 0x21, 0x01, - 0x2f, 0xff, 0x2a, 0x41, 0x19, 0x6f, 0xff, 0xda, 0x30, 0xeb, 0x30, 0xfc, - 0x06, 0x68, 0x37, 0xaa, 0x5f, 0xf7, 0x65, 0x28, 0x3b, 0x75, 0x06, 0xad, - 0x77, 0xe9, 0x28, 0xbb, 0x6f, 0xea, 0x06, 0x80, 0x81, 0x07, 0x10, 0xff, - 0x31, 0x7f, 0xf9, 0x06, 0xe1, 0xff, 0xfa, 0x06, 0x8f, 0xf8, 0xd8, 0x10, - 0x79, 0x81, 0x9c, 0x06, 0x9f, 0xf5, 0x00, 0x00, 0x98, 0xd3, 0x38, 0xe8, - 0xb8, 0x06, 0xb0, 0x7f, 0x07, 0x52, 0x7f, 0x06, 0x93, 0xff, 0x1f, 0x04, - 0x35, 0xb8, 0x28, 0x3b, 0x43, 0x06, 0x08, 0x33, 0x0f, 0x71, 0x7f, 0x10, - 0x06, 0xf0, 0xff, 0x22, 0x24, 0x26, 0x00, 0x25, 0x27, 0x28, 0x22, 0x22, - 0x25, 0x28, 0x22, 0x04, 0x24, 0x22, 0x22, 0x22, 0x22, 0x01, 0x2f, 0xff, - 0x2b, 0x0e, 0x80, 0x6f, 0xff, 0xbb, 0x30, 0xf3, 0x30, 0xc8, 0x30, 0xad, - 0x00, 0x30, 0xc3, 0x30, 0xc4, 0x30, 0xfb, 0x30, 0xcd, 0x02, 0x30, 0xa4, - 0x30, 0xd3, 0x30, 0xb9, 0x05, 0xa8, 0x4b, 0x53, 0x00, 0x00, 0x74, 0x00, - 0x2e, 0x00, 0x20, 0x00, 0x4b, 0xa8, 0x2c, 0x73, 0x74, 0x20, 0x0b, 0x73, - 0x20, 0x0b, 0x61, 0x00, 0x6e, 0x2a, 0x00, 0x64, 0x20, 0x13, 0x4e, 0x28, - 0x57, 0x76, 0x2c, 0x8b, 0x73, 0xd0, 0x04, 0xc0, 0x7f, 0x3c, 0xed, 0x6e, - 0x20, 0x85, 0x2d, 0x00, 0x43, 0x00, 0x6a, 0x68, 0x2f, 0x83, 0x30, 0x6f, - 0x74, 0x28, 0x4d, 0x70, 0x20, 0x0d, 0x65, 0xaa, 0x20, 0x15, 0x65, 0x40, - 0x1b, 0x4e, 0x2d, 0x13, 0xe9, 0x20, 0x8d, 0xe8, 0xda, 0x03, 0xe0, 0x8d, - 0x00, 0x30, 0xff, 0x75, 0x06, 0x40, 0xff, 0xd1, 0x83, 0x65, 0x05, 0xa1, - 0x7f, 0x6e, 0xa2, 0x21, 0xff, 0x43, 0x81, 0x79, 0xf3, 0x00, 0x62, 0x2f, - 0x0b, 0x6c, 0xaa, 0x22, 0x13, 0x79, 0x42, 0x03, 0x69, 0x42, 0x05, 0x65, - 0x04, 0x62, 0x05, 0x23, 0x00, 0x57, 0xfa, 0x57, 0x28, 0x83, 0x8c, 0x54, - 0x3c, 0x04, 0x5c, 0xf4, 0x7e, 0xaf, 0x65, 0x06, 0x1f, 0xfd, 0x38, 0xc1, - 0x00, 0x78, 0xc7, 0xb8, 0xd2, 0xa4, 0xd0, 0x20, 0xce, 0x03, 0x24, 0xb1, - 0x44, 0xbe, 0xa4, 0xc2, 0x05, 0xff, 0xf8, 0x00, 0x91, 0xff, 0xc6, 0x31, - 0x95, 0x05, 0x13, 0x81, 0x53, 0x00, 0xe3, 0x2b, 0xb9, 0xd1, 0xff, 0x76, - 0xd0, 0x60, 0x13, 0x05, 0x32, 0x83, 0x21, 0x28, 0x3b, 0x3d, 0x04, 0x42, - 0x04, 0x04, 0x2d, 0x00, 0x1a, 0x04, 0x38, 0x20, 0x07, 0x41, 0x04, 0x15, - 0x20, 0x00, 0x38, 0x20, 0x03, 0x1d, 0x28, 0x53, 0x32, 0x20, 0x11, 0x70, - 0x41, 0x04, 0xe8, 0x55, 0x07, 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x23, - 0x27, 0x29, 0x28, 0x00, 0x29, 0x2a, 0x23, 0x23, 0x26, 0x2c, 0x26, 0x27, - 0x09, 0x23, 0x23, 0x23, 0x23, 0x01, 0x2f, 0xff, 0x2c, 0x01, 0xc8, 0x3b, - 0x06, 0xeb, 0x30, 0xb7, 0x30, 0xa2, 0x05, 0xa8, 0x31, 0x00, 0x18, 0x3b, - 0x4c, 0xaf, 0x2f, 0xf9, 0x63, 0x28, 0x3f, 0x61, 0x06, 0x85, 0x3b, 0x38, - 0x27, 0x70, 0x85, 0x05, 0x96, 0x44, 0xda, 0x07, 0x30, 0xff, 0x39, 0x39, - 0x61, 0x06, 0x61, 0x83, 0x00, 0x10, 0x7f, 0xed, 0x05, 0xc2, 0x03, 0x23, - 0x01, 0x57, 0x62, 0x53, 0x7f, 0x89, 0x9a, 0x4e, 0x06, 0x7f, 0xfb, 0x81, - 0x58, 0x3b, 0xe8, 0xb8, 0xdc, 0xc2, 0x44, 0xc5, 0x06, 0x53, 0x7f, 0xd8, - 0x9a, 0x3b, 0x07, 0x11, 0xff, 0xfa, 0x06, 0x04, 0x03, 0x98, 0x3b, 0x1b, - 0x04, 0x4e, 0x8e, 0x28, 0x39, 0x38, 0x04, 0x4f, 0x04, 0xe8, 0x2d, 0x07, - 0xf4, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x24, 0x00, 0x28, 0x2b, 0x29, 0x2b, - 0x2c, 0x24, 0x24, 0x27, 0x01, 0x2b, 0x27, 0x28, 0x24, 0x24, 0x24, 0x24, - 0x01, 0x2f, 0xff, 0x58, 0x2d, 0xd8, 0x3b, 0xd3, 0x28, 0x41, 0x58, 0x45, - 0xfb, 0x30, 0xb0, 0x00, 0x30, 0xec, 0x30, 0xca, 0x30, 0xc7, 0x30, 0xa3, - 0x35, 0x30, 0xfc, 0x28, 0x57, 0x05, 0x78, 0x3b, 0x56, 0x4f, 0xfd, 0x63, - 0x4c, 0xef, 0xd1, 0x3f, 0x03, 0x7b, 0x7b, 0x74, 0x4f, 0xfd, 0x20, 0x00, - 0x47, 0x2e, 0x97, 0xbd, 0x3d, 0x0b, 0x61, 0x2f, 0x91, 0x3f, 0x27, 0x03, - 0x7e, 0x87, 0x9f, 0x77, 0x2d, 0xe0, 0x83, 0x6b, 0x2d, 0x2f, 0xf5, 0x30, - 0x15, 0x6c, 0x4e, 0xf3, 0x2d, 0x04, 0x60, 0x81, 0x00, 0x70, 0xff, 0x77, - 0x75, 0x6c, 0x7b, 0x30, 0xed, 0x00, 0x50, 0xff, 0x6e, 0x04, 0x0e, 0x77, - 0xf1, 0x83, 0x00, 0x51, 0x77, 0xf5, 0x04, 0x38, 0xbb, 0x51, 0xff, 0x71, - 0xfd, 0x3e, 0x6f, 0x79, 0x2f, 0x07, 0x6c, 0x2f, 0x13, 0xfc, 0x3f, 0x03, - 0x31, 0xfb, 0x3d, 0x8b, 0x71, 0xfb, 0x30, 0x15, 0x03, 0x98, 0x3b, 0x87, - 0x65, 0x00, 0xee, 0x68, 0x79, 0x72, 0x8c, 0x54, 0x3c, 0x68, 0x01, 0x97, - 0x67, 0xb3, 0x7e, 0x01, 0x4e, 0xaf, 0x05, 0x9a, 0x38, 0x80, 0x88, 0x3b, - 0x48, 0xbe, 0x3c, 0xc1, 0xb8, 0xd2, 0x20, 0x00, 0x00, 0xf8, 0xad, 0x08, - 0xb8, 0x98, 0xb0, 0x18, 0x77, 0xb5, 0x06, 0x58, 0x3b, 0x00, 0x11, 0xff, - 0x31, 0x99, 0x64, 0x04, 0xe3, 0x7f, 0x73, 0xfd, 0xb1, 0xfd, 0xeb, 0x33, - 0xf1, 0x05, 0x11, 0xfb, 0xd8, 0x3b, 0x12, 0x28, 0x37, 0x3d, 0x28, 0x3d, - 0x58, 0x4b, 0x11, 0x20, 0x00, 0x38, 0x20, 0x03, 0x13, 0x04, 0x40, 0x48, - 0x5b, 0x17, 0x30, 0x04, 0x34, 0x40, 0x1d, 0x4b, 0x04, 0x08, 0x57, 0x07, - 0x14, 0xff, 0x10, 0x0e, 0xd0, 0x7f, 0x00, 0x25, 0x29, 0x2a, 0x2a, 0x2a, - 0x2b, 0x25, 0x25, 0x00, 0x28, 0x2a, 0x25, 0x29, 0x25, 0x25, 0x25, 0x25, - 0x91, 0x01, 0x2f, 0xff, 0x2e, 0x0a, 0x6f, 0xff, 0xb9, 0x30, 0xea, 0x28, - 0x29, 0x6d, 0xe0, 0x05, 0x08, 0x23, 0x00, 0x9f, 0xf7, 0x75, 0x28, 0x15, - 0x56, 0x11, 0x6d, 0x05, 0xaf, 0xef, 0xc0, 0x10, 0x08, 0x50, 0x7f, 0x06, - 0x1f, 0xfd, 0xcf, 0x82, 0xcc, 0x91, 0x57, 0x53, 0x80, 0x06, 0x72, 0xfd, - 0x00, 0x00, 0x18, 0xc2, 0xac, 0xb9, 0xa8, 0x63, 0xb0, 0x06, 0x90, 0x7f, - 0x0e, 0xf3, 0x7f, 0x21, 0x04, 0x43, 0x28, 0x1f, 0x38, 0x35, 0x1c, 0x30, - 0x04, 0x3c, 0x04, 0x08, 0x19, 0x10, 0x11, 0xf4, 0xff, 0x06, 0x16, 0xff, - 0x26, 0x2a, 0x00, 0x2e, 0x2b, 0x2e, 0x2e, 0x26, 0x26, 0x2b, 0x2e, 0x02, - 0x2a, 0x2a, 0x26, 0x26, 0x26, 0x26, 0x01, 0x2f, 0xff, 0x2f, 0x50, 0x0d, - 0x6f, 0xff, 0xc8, 0x28, 0x3b, 0xcb, 0x30, 0xc0, 0x30, 0x00, 0xfc, 0x30, - 0xc9, 0x30, 0xfb, 0x30, 0xc8, 0x30, 0x15, 0xd0, 0x30, 0xb4, 0x05, 0xc8, - 0x47, 0x54, 0x68, 0x39, 0x69, 0x2f, 0xcd, 0xc1, 0x3f, 0xd1, 0x9b, 0x71, - 0x54, 0x00, 0x6f, 0x00, 0x62, 0x2f, 0xe5, 0x60, 0x67, 0x20, 0x07, 0x05, - 0x30, 0x7f, 0x74, 0x00, 0xe9, 0x00, 0x2d, 0xbb, 0x2f, 0xf7, 0x74, 0x20, - 0x05, 0x05, 0x50, 0x7b, 0x00, 0x50, 0xff, 0x75, 0x06, 0x60, 0xff, 0x71, - 0x7f, 0xd0, 0x3f, 0xf5, 0x06, 0xb0, 0xff, 0x79, 0x05, 0xc0, 0x7f, 0x79, - 0x72, 0xcb, 0x7a, 0x00, 0x3c, 0x5c, 0xbe, 0x8f, 0x8c, 0x54, 0x1a, 0x59, - 0x08, 0xf4, 0x5d, 0xe5, 0x54, 0x05, 0xfb, 0x43, 0xb8, 0xd2, 0xac, 0x00, - 0xb9, 0xc8, 0xb2, 0xe4, 0xb2, 0xdc, 0xb4, 0xa0, 0x06, 0xd1, 0x14, 0xbc, - 0xe0, 0xac, 0x05, 0xfb, 0xc3, 0x00, 0x31, 0xff, 0x6e, 0xf4, 0x05, 0xa2, - 0x01, 0xf3, 0xff, 0x3f, 0x63, 0x05, 0xb2, 0x81, 0x22, 0x68, 0x39, 0x38, - 0x04, 0x41, 0x34, 0x28, 0x3d, 0x34, 0x04, 0x20, 0x00, 0x38, 0x20, 0x03, - 0x05, 0x22, 0x04, 0x3e, 0x04, 0x31, 0x28, 0x4d, 0x33, 0x20, 0x07, 0xc0, - 0x0d, 0x74, 0xff, 0x10, 0x0e, 0x50, 0x7f, 0x27, 0x2b, 0x2f, 0x2c, 0x2f, - 0x2f, 0x00, 0x27, 0x27, 0x2c, 0x2f, 0x2c, 0x2b, 0x27, 0x27, 0x25, 0x27, - 0x27, 0x01, 0x2f, 0xff, 0x30, 0x01, 0x6f, 0xff, 0xbf, 0x28, 0x35, 0x10, - 0xaf, 0x30, 0xb9, 0x28, 0x37, 0xab, 0x30, 0xa4, 0x30, 0x43, 0xb3, 0x20, - 0x09, 0xf8, 0x8a, 0xf6, 0x5c, 0x05, 0xb8, 0x3b, 0x3f, 0xf7, 0x14, 0x6b, - 0x00, 0x73, 0xa8, 0x35, 0x43, 0x2f, 0x83, 0x69, 0x00, 0x6a, 0x63, 0x28, - 0x3b, 0x30, 0x15, 0x49, 0x20, 0x1b, 0x6c, 0x68, 0x51, 0x73, 0xad, 0x04, - 0x0f, 0xff, 0xce, 0x20, 0x5b, 0x65, 0x40, 0x7d, 0x50, 0x89, 0x71, 0x2f, - 0x87, 0xed, 0x30, 0x0f, 0x78, 0x45, 0x30, 0x8b, 0xef, 0x80, 0x15, 0x04, - 0xb0, 0xff, 0x2d, 0xa8, 0x37, 0xd7, 0xb1, 0x01, 0x3f, 0x93, 0x73, 0x2e, - 0x11, 0x6c, 0x2f, 0x9b, 0x04, 0x1f, 0xff, 0x31, 0x5d, 0x7f, 0x6f, 0x41, - 0x03, 0x71, 0x01, 0x51, 0x8b, 0x38, 0x41, 0xb1, 0x87, 0x04, 0x7f, 0xff, - 0x71, 0xdd, 0xb8, 0x91, 0x81, 0x63, 0x60, 0x0d, 0x38, 0x43, 0x05, 0x10, - 0x81, 0x79, 0x72, 0x4b, 0x00, 0x51, 0xaf, 0x65, 0x8c, 0x54, 0xef, 0x51, - 0xd1, 0x03, 0x79, 0xaf, 0x65, 0xa4, 0x7f, 0x9b, 0x05, 0xa2, 0xfb, 0x43, - 0x88, 0x00, 0xd1, 0x6c, 0xd0, 0xa4, 0xc2, 0x20, 0x00, 0x00, 0x04, 0xcf, - 0x74, 0xc7, 0xe4, 0xce, 0x30, 0x09, 0x1c, 0xc8, 0x3d, 0xc4, 0xb3, 0x06, - 0x33, 0x7f, 0x32, 0x7f, 0x58, 0x37, 0xb3, 0x7f, 0x65, 0x2f, 0x13, 0xe3, - 0x73, 0x7d, 0x38, 0x55, 0x04, 0x12, 0x7f, 0x6c, 0x00, 0x68, 0x00, 0x41, - 0xff, 0x05, 0x52, 0x81, 0x11, 0x22, 0x04, 0x51, 0x28, 0x3d, 0x3a, 0x04, - 0x41, 0x68, 0x35, 0x57, 0x1a, 0x28, 0x41, 0x39, 0x20, 0x0f, 0x3e, 0x20, - 0x11, 0x0d, 0x34, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x00, 0x28, 0x2c, 0x1b, - 0x2d, 0x1d, 0x1d, 0x28, 0x28, 0x00, 0x2d, 0x1d, 0x2b, 0x2c, 0x28, 0x28, - 0x28, 0x28, 0x90, 0x01, 0x2f, 0xff, 0x31, 0x34, 0x6f, 0xff, 0xa2, 0x30, - 0xe1, 0x30, 0x75, 0xea, 0x28, 0x37, 0x05, 0xfd, 0x6f, 0x7f, 0xff, 0x55, - 0x6f, 0xf3, 0x65, 0x4f, 0x73, 0x5d, 0x53, 0x2f, 0xfd, 0x61, 0x40, 0x0d, - 0x04, 0x96, 0xad, 0xdf, 0xff, 0xc9, 0x60, 0x71, 0xe0, 0x38, 0x2d, 0x50, - 0x8b, 0x38, 0xc5, 0x64, 0x00, 0x19, 0x20, 0x41, 0x0e, 0x00, 0x6d, 0x00, - 0xe9, 0x4f, 0x95, 0x58, 0x4f, 0x04, 0x5f, 0xfc, 0x56, 0xb7, 0x2f, 0xe7, - 0x72, 0x45, 0xa1, 0x3f, 0xfb, 0x67, 0x41, 0x09, 0x71, 0x07, 0x51, 0x09, - 0xee, 0x04, 0x38, 0x31, 0x9f, 0xff, 0x71, 0x71, 0x69, 0x2f, 0xf1, 0x71, - 0x8b, 0x30, 0x0b, 0x64, 0x1d, 0x00, 0x27, 0x00, 0x31, 0x01, 0x30, 0x9d, - 0x39, 0xc7, 0x61, 0x04, 0x6f, 0xff, 0x6f, 0x45, 0x2a, 0x35, 0x31, 0xf3, - 0x64, 0x6a, 0x29, 0x52, 0x0f, 0x70, 0x0d, 0x5e, 0x87, 0xc3, 0x91, 0x89, - 0x04, 0x10, 0x87, 0x8e, 0x7f, 0xfd, 0x56, 0x06, 0x72, 0xfb, 0x3f, 0xff, - 0x0f, 0xf8, 0xbb, 0x6d, 0xad, 0x06, 0xb0, 0x7f, 0x72, 0x7f, 0x52, 0x7d, - 0x5f, 0xf7, 0xf4, 0x93, 0x85, 0x04, 0xd2, 0x7b, 0x00, 0xf1, 0xff, 0x05, - 0x3c, 0xc1, 0x21, 0x28, 0x25, 0x35, 0x04, 0x05, 0x34, 0x04, 0x38, 0x04, - 0x3d, 0x28, 0x45, 0x3d, 0x20, 0x05, 0x41, 0x4b, 0x20, 0x0f, 0x20, 0x00, - 0x28, 0x04, 0x42, 0x28, 0x45, 0x41, 0x42, 0x20, 0x0d, 0x20, 0x00, 0x10, - 0x04, 0x3c, 0x20, 0x23, 0x5c, 0x40, 0x20, 0x23, 0x3a, 0x20, 0x27, 0x0b, - 0xd4, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x29, 0x2e, 0x00, 0x13, 0x31, 0x2d, - 0x14, 0x29, 0x29, 0x31, 0x14, 0x02, 0x29, 0x2e, 0x29, 0x29, 0x29, 0x29, - 0x01, 0x2f, 0xff, 0x32, 0x40, 0x13, 0x6f, 0xff, 0xa6, 0x30, 0xeb, 0x30, - 0xb0, 0x30, 0x15, 0xa2, 0x30, 0xa4, 0x06, 0x68, 0x3d, 0x55, 0x2f, 0xeb, - 0x75, 0x27, 0x33, 0x50, 0x75, 0x2f, 0xdf, 0x79, 0x10, 0x16, 0x20, 0x7f, - 0x4c, 0x4e, 0xc9, 0x62, 0x20, 0x2d, 0x57, 0x06, 0x98, 0x3d, 0xb0, 0xc6, - 0xe8, 0xb8, 0xfc, 0x1a, 0xac, 0x74, 0xc7, 0x06, 0x9b, 0xbb, 0x07, 0x93, - 0x7f, 0x69, 0x06, 0x2c, 0xc0, 0x23, 0x82, 0x28, 0x13, 0x43, 0x04, 0x33, - 0x04, 0x32, 0x28, 0x29, 0x39, 0xc0, 0x03, 0xe8, 0x17, 0x10, 0x19, 0x34, - 0xff, 0x2a, 0x2f, 0x30, 0x2e, 0x30, 0x30, 0x00, 0x2a, 0x2a, 0x2e, 0x30, - 0x2d, 0x2f, 0x2a, 0x2a, 0x24, 0x2a, 0x2a, 0x01, 0x2f, 0xff, 0x33, 0x01, - 0x6f, 0xff, 0x73, 0x7c, 0x00, 0x18, 0x98, 0xd0, 0x30, 0xfc, 0x30, 0xb8, - 0x30, 0x02, 0xf3, 0x30, 0xf8, 0x8a, 0xf6, 0x5c, 0x06, 0x18, 0x3b, 0x53, - 0xac, 0x2f, 0xe7, 0x56, 0x2f, 0xef, 0x72, 0x2f, 0x75, 0x3f, 0x7d, 0x20, - 0x00, 0x56, 0x49, 0x2f, 0xfb, 0x6c, 0x2f, 0x77, 0x6e, 0x2f, 0xff, 0x04, - 0xfc, 0x7d, 0xce, 0xf5, 0x20, 0x69, 0x3b, 0xe5, 0x50, 0x83, 0x3f, 0x65, - 0x67, 0x60, 0x0f, 0x61, 0xce, 0xed, 0xea, 0x30, 0x99, 0x04, 0x3c, 0x0d, - 0x9f, 0xdb, 0x6b, 0x40, 0xf1, 0x69, 0x2f, 0x87, 0x63, 0x2a, 0x00, 0x68, - 0x4f, 0x6f, 0x4a, 0x29, 0x55, 0x6e, 0x2e, 0x0d, 0x66, 0xd7, 0x4f, 0xfd, - 0x3f, 0x8f, 0x6e, 0x2f, 0xa5, 0x65, 0x21, 0x1b, 0x03, 0x9e, 0x0f, 0x31, - 0x6b, 0x7b, 0x6f, 0x41, 0x03, 0x31, 0x85, 0x50, 0xff, 0x31, 0x85, 0x69, - 0xae, 0x7f, 0x30, 0x85, 0xfb, 0x5d, 0x1b, 0x30, 0x7f, 0x03, 0xd5, 0xe1, - 0x71, 0xeb, 0x51, 0x81, 0xed, 0x61, 0x7f, 0x51, 0x6b, 0x55, 0x20, 0x6f, - 0x07, 0x6c, 0x6e, 0x93, 0x45, 0x2e, 0xa5, 0x2e, 0x4e, 0x9b, 0x60, 0x55, - 0x20, 0x07, 0x03, 0x5f, 0xff, 0x8e, 0x7f, 0x5e, 0x5c, 0xf4, 0x00, 0x7e, - 0x14, 0x5c, 0xac, 0x4e, 0xa4, 0x7f, 0x9b, 0x80, 0x06, 0x02, 0xfd, 0x00, - 0x00, 0xf8, 0xbb, 0x6d, 0xad, 0x39, 0x00, 0xb8, 0x20, 0x00, 0x84, 0xbc, - 0xc4, 0xc9, 0x44, 0x01, 0xc5, 0x7c, 0xc7, 0x9c, 0xb7, 0xdc, 0xb4, 0x05, - 0xbb, 0xc5, 0xe2, 0xd2, 0x7f, 0x33, 0x73, 0x32, 0x61, 0x20, 0x00, 0x4d, - 0x40, 0x0d, 0x67, 0xdd, 0x41, 0x81, 0x32, 0xf9, 0x69, 0x83, 0x91, 0x32, - 0x05, 0x03, 0xb1, 0xff, 0x6c, 0x22, 0xed, 0xed, 0x71, 0xff, 0x54, 0x05, - 0x52, 0x67, 0x20, 0xa3, 0x1b, 0x33, 0x81, 0x6e, 0x42, 0x25, 0x82, 0x03, - 0xff, 0x8e, 0x10, 0x04, 0x3c, 0x04, 0x35, 0x28, 0x3f, 0x38, 0x22, 0x04, - 0x3a, 0x28, 0x3d, 0x3d, 0x04, 0x41, 0x20, 0x07, 0x38, 0x8a, 0x20, 0x11, - 0x20, 0x00, 0x12, 0x20, 0x13, 0x40, 0x28, 0x55, 0x38, 0xab, 0xc0, 0x15, - 0x3e, 0x20, 0x21, 0x42, 0x28, 0x6f, 0x3e, 0x48, 0x6d, 0x0b, 0x14, 0xff, - 0x80, 0x10, 0x0e, 0xf0, 0x7f, 0x2b, 0x30, 0x1c, 0x00, 0x1f, 0x1f, 0x2b, - 0x01, 0x2b, 0x00, 0x1e, 0x00, 0x30, 0x2b, 0x2b, 0x20, 0x07, 0x90, 0x01, - 0x1f, 0xff, 0x34, 0x19, 0x6f, 0xff, 0xd9, 0x30, 0xcd, 0x30, 0x03, 0xba, - 0x30, 0xa8, 0x30, 0xe9, 0x30, 0x06, 0x5d, 0x7b, 0x36, 0xaf, 0xb4, 0x37, - 0x95, 0x7a, 0x2f, 0xfd, 0x37, 0x15, 0x61, 0x10, 0x15, 0xe0, 0x7f, 0xd4, - 0x59, 0x02, 0x85, 0x51, 0x5e, 0x74, 0xc9, 0x62, 0x06, 0x7f, 0xf7, 0xa0, - 0x00, 0xbc, 0x24, 0xb1, 0x18, 0xc2, 0xd8, 0xc5, 0x7c, 0x54, 0xb7, 0x10, - 0x06, 0x53, 0x7f, 0x12, 0x28, 0x39, 0x3d, 0x28, 0x3d, 0x41, 0x04, 0x06, - 0x43, 0x04, 0x4d, 0x04, 0x3b, 0x03, 0x48, 0x0f, 0x10, 0x19, 0xb4, 0xff, - 0x2c, 0x00, 0x31, 0x31, 0x2f, 0x31, 0x31, 0x2c, 0x2c, 0x2f, 0x24, 0x31, - 0x0c, 0x20, 0x05, 0x2c, 0x2c, 0x01, 0x2f, 0xff, 0x99, 0x01, 0x80, 0x6f, - 0xff, 0xb7, 0x30, 0xf3, 0x30, 0xac, 0x30, 0xdd, 0x0a, 0x30, 0xfc, 0x30, - 0xeb, 0x06, 0x48, 0x3d, 0x53, 0x4f, 0xd1, 0x67, 0xad, 0x2f, 0xe5, 0x70, - 0x2e, 0xff, 0x72, 0x2f, 0xf9, 0x06, 0xb0, 0x7f, 0x75, 0x2f, 0xdf, 0xf0, - 0x06, 0x90, 0xff, 0x06, 0x10, 0x7d, 0x07, 0xd1, 0x7f, 0x06, 0x30, 0xff, - 0xb0, 0x65, 0xa0, 0x52, 0x20, 0x61, 0x57, 0x06, 0x78, 0x39, 0x00, 0x00, - 0xf1, 0xc2, 0x00, 0x07, 0xac, 0xec, 0xd3, 0x74, 0xb9, 0x06, 0x78, 0xbb, - 0x07, 0xf1, 0xff, 0x05, 0xfc, 0x3b, 0x15, 0x21, 0x04, 0x38, 0x28, 0x3b, - 0x33, 0x28, 0x33, 0x3f, 0x28, 0x3d, 0x70, 0x40, 0x05, 0xe8, 0x39, 0x07, - 0xf4, 0xff, 0x10, 0x0e, 0x10, 0x7f, 0x2d, 0x26, 0x2d, 0x27, 0x00, 0x2c, - 0x2d, 0x2d, 0x2d, 0x2a, 0x2d, 0x28, 0x26, 0xa4, 0x20, 0x06, 0x2d, 0x01, - 0x2f, 0xff, 0x9c, 0x10, 0x6f, 0xff, 0xde, 0x30, 0x44, 0xec, 0x28, 0x37, - 0xb7, 0x30, 0xa2, 0x06, 0x48, 0x39, 0x00, 0x00, 0x63, 0x4d, 0x2f, 0xe9, - 0x3f, 0xed, 0x79, 0x00, 0x73, 0x28, 0x45, 0x05, 0xff, 0xf5, 0xbb, 0x90, - 0x7f, 0x69, 0x40, 0x7f, 0x05, 0xf8, 0xb9, 0x07, 0x70, 0xff, 0x65, 0x06, - 0x61, 0x7d, 0x91, 0xff, 0x80, 0x06, 0x70, 0x7f, 0x6c, 0x9a, 0x65, 0x67, - 0x7f, 0x89, 0x9a, 0x40, 0x4e, 0x06, 0x78, 0x3d, 0xd0, 0xb9, 0x08, 0xb8, - 0x74, 0xc7, 0x0a, 0xdc, 0xc2, 0x44, 0xc5, 0x06, 0xb3, 0x7f, 0x65, 0x62, - 0xff, 0xeb, 0xaa, 0x06, 0x63, 0xff, 0xe1, 0x06, 0x82, 0x7f, 0x1c, 0x28, - 0x35, 0x3b, 0x28, 0x39, 0x39, 0x2e, 0x04, 0x37, 0x28, 0x45, 0x4f, 0x06, - 0x08, 0x3b, 0x07, 0x74, 0xff, 0x10, 0x0e, 0x70, 0x7f, 0x2e, 0x00, 0x1c, - 0x1f, 0x1d, 0x20, 0x21, 0x2e, 0x2e, 0x1d, 0x01, 0x21, 0x19, 0x1c, 0x2e, - 0x2e, 0x2e, 0x2e, 0x01, 0x2f, 0xff, 0x20, 0xa8, 0x07, 0x6f, 0xff, 0xa2, - 0x30, 0xe9, 0x30, 0xd6, 0x00, 0x30, 0x96, 0x99, 0x77, 0x95, 0xfd, 0x56, - 0x23, 0x10, 0x90, 0xa6, 0x90, 0x05, 0xfe, 0xf8, 0x55, 0x00, 0x2e, 0x00, - 0x58, 0x41, 0x20, 0x03, 0x45, 0x20, 0x07, 0x06, 0x3d, 0xfd, 0xc9, 0x00, - 0x6d, 0xd6, 0x2f, 0xf9, 0x3c, 0xef, 0x74, 0x28, 0xbd, 0x20, 0x2f, 0xff, - 0x3c, 0xfb, 0x62, 0xad, 0x47, 0x4d, 0x20, 0x2f, 0x09, 0x6e, 0x48, 0x55, - 0x04, 0x9f, 0xff, 0x56, 0x2f, 0xe9, 0xd5, 0x3f, 0xed, 0x3f, 0xfd, 0x69, - 0x2f, 0xff, 0x74, 0x2f, 0xf9, 0x20, 0x21, 0x11, 0xc5, 0x50, 0x85, 0x38, - 0xd1, 0x63, 0x00, 0x68, 0x40, 0x13, 0x45, 0xa0, 0xa9, 0xd7, 0x03, 0x9e, - 0x1d, 0xb0, 0x55, 0x69, 0xc0, 0x79, 0x20, 0x21, 0x9b, 0x30, 0xfd, 0x30, - 0x17, 0xd6, 0x04, 0x9f, 0xff, 0xb0, 0xd5, 0x6f, 0x41, 0x81, 0xc1, 0xc1, - 0x81, 0x50, 0x83, 0x64, 0xc0, 0x40, 0x1b, 0x04, 0x3f, 0xff, 0x3f, 0x96, - 0xc9, 0x62, 0x2f, 0x4f, 0x01, 0x54, 0x80, 0x08, 0x54, 0x4b, 0x91, 0x7f, - 0x23, 0x03, 0x80, 0x05, 0xff, 0xff, 0x44, 0xc5, 0x8d, 0xb7, 0xd0, 0xc5, - 0xf8, 0x07, 0xbb, 0xac, 0xb9, 0xb8, 0xd2, 0x06, 0x3b, 0xbd, 0x72, 0x7f, - 0x52, 0x7d, 0x5c, 0x64, 0x01, 0x62, 0x7d, 0x6e, 0x04, 0x22, 0x7f, 0x51, - 0xe3, 0x05, 0xf1, 0xff, 0x1e, 0x04, 0x01, 0x31, 0x04, 0x4a, 0x04, 0x35, - 0x04, 0x34, 0x28, 0x39, 0x11, 0x3d, 0x04, 0x51, 0x20, 0x03, 0x3d, 0x04, - 0x4b, 0x20, 0x0f, 0x04, 0x20, 0x00, 0x10, 0x04, 0x40, 0x28, 0x57, 0x31, - 0x04, 0x18, 0x41, 0x04, 0x3a, 0x28, 0x55, 0x30, 0x11, 0x2d, 0x04, 0x3c, - 0xdc, 0x28, 0x5f, 0x30, 0x15, 0x42, 0x20, 0x23, 0x0b, 0x54, 0xff, 0x10, - 0x0e, 0xf0, 0x7f, 0x2f, 0x2d, 0x00, 0x11, 0x30, 0x13, 0x13, 0x2f, 0x2f, - 0x30, 0x12, 0x02, 0x1f, 0x2d, 0x2f, 0x2f, 0x2f, 0x2f, 0x01, 0x2f, 0xff, - 0xae, 0x40, 0x0d, 0x6f, 0xff, 0xb5, 0x30, 0xa6, 0x30, 0xb8, 0x30, 0xb5, - 0x38, 0x41, 0xd3, 0x20, 0x05, 0x06, 0x1e, 0x78, 0x53, 0x2f, 0xf7, 0x75, - 0x26, 0x1b, 0xf5, 0xd6, 0xb7, 0x05, 0x9f, 0x7f, 0x97, 0xa5, 0x37, 0xb3, - 0x73, 0x2f, 0xf9, 0x6f, 0x60, 0x8f, 0xdd, 0x03, 0xb7, 0xa1, 0x01, 0x30, - 0xff, 0x2d, 0xc0, 0x8b, 0x03, 0x95, 0x9d, 0x01, 0x70, 0xff, 0x61, 0x29, - 0x39, 0xb4, 0x91, 0x8d, 0x74, 0x05, 0x6e, 0x05, 0x00, 0x50, 0x7f, 0xed, - 0x05, 0x8f, 0xff, 0x99, 0x6c, 0x30, 0x79, 0x72, 0x58, 0x3f, 0x06, 0x5f, - 0xf7, 0xac, 0xc0, 0xb0, 0xc6, 0x00, 0x14, 0xb5, 0x44, 0xc5, 0x7c, 0xb7, - 0x44, 0xbe, 0x2d, 0x44, 0xc5, 0x06, 0x53, 0x7f, 0x6f, 0x2b, 0x29, 0xf2, - 0x81, 0xeb, 0x05, 0xa3, 0x7f, 0x54, 0xe1, 0x06, 0xa2, 0x7f, 0x21, 0x28, - 0x1f, 0x43, 0x28, 0x39, 0x3e, 0x04, 0x45, 0x32, 0x48, 0x25, 0x30, 0x04, - 0x4f, 0x88, 0x37, 0x32, 0x28, 0x4f, 0x70, 0x4f, 0x03, 0x68, 0x23, 0x08, - 0x74, 0xff, 0x10, 0x0e, 0xf0, 0x7f, 0x30, 0x25, 0x03, 0x26, 0x00, 0x03, - 0x03, 0x30, 0x30, 0x29, 0x03, 0x24, 0x25, 0x12, 0x30, 0x30, 0x30, 0x01, - 0x38, 0x01, 0xba, 0x01, 0x6f, 0xff, 0xd0, 0x02, 0x30, 0xfc, 0x30, 0xdf, - 0x30, 0xe5, 0x20, 0x05, 0xc0, 0x8b, 0x06, 0x28, 0x39, 0x00, 0x00, 0x42, - 0x4f, 0x77, 0x6d, 0x48, 0x3f, 0x05, 0x98, 0x31, 0xf8, 0x00, 0x50, 0x7f, - 0x3e, 0xe9, 0x0e, 0xd0, 0xff, 0x06, 0xf1, 0xff, 0x06, 0x11, 0x7f, 0x7e, - 0x76, 0x55, 0x18, 0x61, 0x27, 0x59, 0x06, 0x58, 0x37, 0x3f, 0xff, 0x84, - 0xbc, 0xa4, 0x1c, 0xbb, 0xe4, 0xb2, 0x06, 0x90, 0x7f, 0x07, 0xb3, 0x7f, - 0x06, 0x31, 0xff, 0x11, 0x04, 0x57, 0x35, 0x28, 0x27, 0x3c, 0x48, 0x3f, - 0x4b, 0x04, 0xe8, 0x27, 0x09, 0x11, 0x7f, 0x10, 0x0e, 0x10, 0xff, 0x00, - 0x31, 0x07, 0x09, 0x08, 0x09, 0x09, 0x31, 0x31, 0x00, 0x08, 0x09, 0x08, - 0x07, 0x31, 0x31, 0x31, 0x31, 0xd0, 0x01, 0x6f, 0xff, 0x48, 0x3e, 0x01, - 0x50, 0x06, 0x00, 0x01, 0x01, 0x01, 0x70, 0x02, 0x20, 0x03, 0x20, 0x04, - 0x40, 0x06, 0x01, 0x02, 0x02, 0x04, 0x00, 0x03, 0x04, 0x04, 0x02, 0x02, - 0x03, 0x04, 0x03, 0x20, 0x02, 0x02, 0x20, 0x01, 0x03, 0x03, 0x05, 0x04, - 0x05, 0x00, 0x05, 0x03, 0x03, 0x04, 0x05, 0x04, 0x03, 0x03, 0x80, 0x20, - 0x01, 0x04, 0x04, 0x06, 0x05, 0x06, 0x06, 0x04, 0x02, 0x04, 0x05, 0x06, - 0x05, 0x04, 0x04, 0x20, 0x01, 0x05, 0x00, 0x05, 0x07, 0x06, 0x07, 0x07, - 0x05, 0x05, 0x06, 0x08, 0x07, 0x06, 0x05, 0x05, 0x20, 0x01, 0x06, 0x06, - 0x08, 0x00, 0x07, 0x08, 0x08, 0x06, 0x06, 0x07, 0x08, 0x07, 0x20, 0x06, - 0x06, 0x20, 0x01, 0x07, 0x08, 0x0a, 0x09, 0x0a, 0x04, 0x0a, 0x07, 0x07, - 0x09, 0x0a, 0x20, 0xa4, 0x07, 0x07, 0x00, 0x07, 0x08, 0x09, 0x0b, 0x0a, - 0x0b, 0x0b, 0x08, 0x10, 0x08, 0x0a, 0x0b, 0x20, 0x10, 0x08, 0x08, 0x08, - 0x09, 0x00, 0x0a, 0x1d, 0x0b, 0x1e, 0x1e, 0x09, 0x09, 0x0b, 0x40, 0x1f, - 0x20, 0x10, 0x09, 0x09, 0x09, 0x0a, 0x0b, 0x0c, 0x00, 0x1b, 0x0c, 0x0c, - 0x0a, 0x0a, 0x0c, 0x0c, 0x16, 0x08, 0x0b, 0x0a, 0x0a, 0x0a, 0x20, 0x0e, - 0x1a, 0x1a, 0x1c, 0x00, 0x1c, 0x0b, 0x0b, 0x1c, 0x1c, 0x15, 0x0c, 0x0b, - 0x03, 0x0b, 0x0b, 0x0b, 0x0c, 0x0d, 0x0d, 0x30, 0x02, 0x20, 0x06, 0x60, - 0x2f, 0x20, 0x05, 0x20, 0x07, 0x0e, 0x0e, 0x1c, 0x0e, 0x0e, 0x58, 0x0d, - 0x20, 0x06, 0x17, 0x20, 0x05, 0x20, 0x07, 0x0f, 0x0f, 0x0d, 0x16, 0x0f, - 0x0f, 0x0e, 0x20, 0x06, 0x18, 0x20, 0x05, 0x20, 0x07, 0x10, 0x05, 0x10, - 0x0e, 0x10, 0x10, 0x0f, 0x20, 0x06, 0x13, 0x20, 0x05, 0x80, 0x20, 0x07, - 0x11, 0x28, 0x0f, 0x28, 0x29, 0x10, 0x10, 0x02, 0x11, 0x29, 0x14, 0x11, - 0x10, 0x10, 0x20, 0x07, 0x12, 0x00, 0x12, 0x10, 0x11, 0x11, 0x11, 0x11, - 0x12, 0x13, 0x28, 0x30, 0x12, 0x50, 0x07, 0x2c, 0x20, 0x12, 0x12, 0x12, - 0x13, 0x10, 0x11, 0x23, 0x13, 0x40, 0x07, 0x14, 0x17, 0x12, 0x19, 0x00, - 0x18, 0x13, 0x13, 0x14, 0x19, 0x2e, 0x14, 0x13, 0x40, 0x13, 0x20, 0x07, - 0x15, 0x14, 0x13, 0x15, 0x15, 0x14, 0x0c, 0x14, 0x15, 0x15, 0x12, 0x20, - 0x05, 0x20, 0x07, 0x16, 0x15, 0x00, 0x14, 0x16, 0x16, 0x15, 0x15, 0x16, - 0x16, 0x0f, 0xc0, 0x20, 0x05, 0x20, 0x07, 0x17, 0x16, 0x15, 0x17, 0x17, - 0x16, 0x0c, 0x16, 0x17, 0x17, 0x10, 0x20, 0x05, 0x20, 0x07, 0x18, 0x27, - 0x00, 0x16, 0x18, 0x19, 0x17, 0x17, 0x18, 0x18, 0x0d, 0x10, 0x18, 0x17, - 0x17, 0x20, 0x07, 0x19, 0x18, 0x17, 0x1a, 0x00, 0x1a, 0x18, 0x18, 0x19, - 0x1a, 0x0e, 0x19, 0x18, 0x40, 0x18, 0x30, 0x07, 0x19, 0x18, 0x1b, 0x1b, - 0x19, 0x19, 0x02, 0x1a, 0x1b, 0x11, 0x1a, 0x19, 0x19, 0x30, 0x07, 0x1e, - 0x00, 0x19, 0x14, 0x20, 0x1a, 0x1a, 0x1b, 0x20, 0x31, 0x10, 0x1b, 0x1a, - 0x1a, 0x20, 0x07, 0x1d, 0x20, 0x1e, 0x21, 0x00, 0x22, 0x1b, 0x1b, 0x1e, - 0x22, 0x1a, 0x1d, 0x1b, 0x00, 0x1b, 0x1b, 0x1b, 0x1c, 0x1e, 0x21, 0x1f, - 0x22, 0x00, 0x23, 0x1c, 0x1c, 0x1f, 0x23, 0x1b, 0x1e, 0x1c, 0x00, 0x1c, - 0x1c, 0x1c, 0x1d, 0x1f, 0x22, 0x20, 0x23, 0x00, 0x24, 0x1d, 0x1d, 0x20, - 0x24, 0x1c, 0x1f, 0x1d, 0x00, 0x1d, 0x1d, 0x1d, 0x1e, 0x20, 0x02, 0x22, - 0x02, 0x04, 0x02, 0x1e, 0x1e, 0x21, 0x02, 0x20, 0x38, 0x1e, 0x1e, 0x00, - 0x1e, 0x1f, 0x21, 0x23, 0x21, 0x24, 0x25, 0x1f, 0x10, 0x1f, 0x22, 0x25, - 0x20, 0x38, 0x1f, 0x1f, 0x1f, 0x20, 0x00, 0x22, 0x24, 0x23, 0x25, 0x26, - 0x20, 0x20, 0x23, 0x00, 0x26, 0x20, 0x22, 0x20, 0x20, 0x20, 0x20, 0x21, - 0x00, 0x23, 0x25, 0x24, 0x26, 0x27, 0x21, 0x21, 0x24, 0x40, 0x27, 0x20, - 0x28, 0x21, 0x21, 0x21, 0x22, 0x24, 0x26, 0x00, 0x25, 0x27, 0x28, 0x22, - 0x22, 0x25, 0x28, 0x22, 0x00, 0x24, 0x22, 0x22, 0x22, 0x22, 0x23, 0x27, - 0x29, 0x00, 0x28, 0x29, 0x2a, 0x23, 0x23, 0x26, 0x2c, 0x26, 0x00, 0x27, - 0x23, 0x23, 0x23, 0x23, 0x24, 0x28, 0x2b, 0x00, 0x29, 0x2b, 0x2c, 0x24, - 0x24, 0x27, 0x2b, 0x27, 0x00, 0x28, 0x24, 0x24, 0x24, 0x24, 0x25, 0x29, - 0x2a, 0x00, 0x2a, 0x2a, 0x2b, 0x25, 0x25, 0x28, 0x2a, 0x25, 0x00, 0x29, - 0x25, 0x25, 0x25, 0x25, 0x26, 0x2a, 0x2e, 0x00, 0x2b, 0x2e, 0x2e, 0x26, - 0x26, 0x2b, 0x2e, 0x2a, 0x00, 0x2a, 0x26, 0x26, 0x26, 0x26, 0x27, 0x2b, - 0x2f, 0x00, 0x2c, 0x2f, 0x2f, 0x27, 0x27, 0x2c, 0x2f, 0x2c, 0x00, 0x2b, - 0x27, 0x27, 0x27, 0x27, 0x28, 0x2c, 0x1b, 0x00, 0x2d, 0x1d, 0x1d, 0x28, - 0x28, 0x2d, 0x1d, 0x2b, 0x00, 0x2c, 0x28, 0x28, 0x28, 0x28, 0x29, 0x2e, - 0x13, 0x00, 0x31, 0x2d, 0x14, 0x29, 0x29, 0x31, 0x14, 0x29, 0x00, 0x2e, - 0x29, 0x29, 0x29, 0x29, 0x2a, 0x2f, 0x30, 0x00, 0x2e, 0x30, 0x30, 0x2a, - 0x2a, 0x2e, 0x30, 0x2d, 0x40, 0x2f, 0x20, 0x59, 0x2a, 0x2b, 0x30, 0x1c, - 0x00, 0x1f, 0x00, 0x1f, 0x2b, 0x2b, 0x00, 0x1e, 0x00, 0x30, 0x2b, 0x00, - 0x2b, 0x2b, 0x2b, 0x2c, 0x31, 0x31, 0x2f, 0x31, 0x02, 0x31, 0x2c, 0x2c, - 0x2f, 0x31, 0x0c, 0x20, 0x05, 0x2c, 0x00, 0x2c, 0x2d, 0x26, 0x2d, 0x27, - 0x2c, 0x2d, 0x2d, 0x04, 0x2d, 0x2a, 0x2d, 0x28, 0x26, 0x20, 0x06, 0x2d, - 0x2e, 0x80, 0x21, 0x06, 0x20, 0x21, 0x2e, 0x2e, 0x1d, 0x21, 0x19, 0x00, - 0x1c, 0x2e, 0x2e, 0x2e, 0x2e, 0x2f, 0x2d, 0x11, 0x00, 0x30, 0x13, 0x13, - 0x2f, 0x2f, 0x30, 0x12, 0x1f, 0x1c, 0x2d, 0x2f, 0x2f, 0x20, 0x07, 0xeb, - 0x6f, 0x00, 0x73, 0x43 -}; -unsigned int COUNTRY_LIST_DATA_len = 219040; diff --git a/include/fs/ivfc.hpp b/include/fs/ivfc.hpp deleted file mode 100644 index bb5724be..00000000 --- a/include/fs/ivfc.hpp +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -#include - -#include "helpers.hpp" - -namespace IVFC { - struct IVFCLevel { - u64 logicalOffset; - u64 size; - u64 blockSize; - }; - - struct IVFC { - u64 masterHashSize; - std::vector levels; - }; - - size_t parseIVFC(uintptr_t ivfcStart, IVFC& ivfc); -} // namespace IVFC \ No newline at end of file diff --git a/include/fs/mii_data.hpp b/include/fs/mii_data.hpp deleted file mode 100644 index e21cbb5c..00000000 --- a/include/fs/mii_data.hpp +++ /dev/null @@ -1,6143 +0,0 @@ -#pragma once - -// Generated with https://github.com/B3n30/citra_system_archives/tree/master/mii -// Origin: https://www.flaticon.com/free-icon/red-panda_8686325?term=red+panda&page=1&position=2&origin=tag&related_id=8686325 -// Git Hash: f470e0c9d341db73b8a24880295d2eab4cd81660 - -const unsigned char MII_DATA[] = { - 0x28, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, - 0x34, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, - 0x0c, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, - 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0x1e, 0x01, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x16, 0x00, 0x00, 0x00, - 0x43, 0x00, 0x46, 0x00, 0x4c, 0x00, 0x5f, 0x00, 0x52, 0x00, 0x65, 0x00, - 0x73, 0x00, 0x2e, 0x00, 0x64, 0x00, 0x61, 0x00, 0x74, 0x00, 0x00, 0x00, - 0x14, 0x00, 0x09, 0x05, 0x54, 0x00, 0x00, 0x00, 0x6c, 0x00, 0x00, 0x00, - 0x94, 0x04, 0x00, 0x00, 0x6c, 0x0a, 0x00, 0x00, 0x94, 0x0e, 0x00, 0x00, - 0xd4, 0x0e, 0x00, 0x00, 0x7c, 0x65, 0x00, 0x00, 0xd4, 0x69, 0x00, 0x00, - 0xa4, 0x6e, 0x00, 0x00, 0xf4, 0x6e, 0x00, 0x00, 0x0c, 0x71, 0x00, 0x00, - 0xbc, 0x7b, 0x00, 0x00, 0xe4, 0x7f, 0x00, 0x00, 0x70, 0x80, 0x00, 0x00, - 0x88, 0x82, 0x00, 0x00, 0xa0, 0x84, 0x00, 0x00, 0x34, 0x86, 0x00, 0x00, - 0x94, 0x86, 0x00, 0x00, 0xf8, 0x8c, 0x00, 0x00, 0x08, 0x8e, 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, - 0x08, 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, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x78, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, - 0x68, 0x01, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00, 0x58, 0x02, 0x00, 0x00, - 0xd0, 0x02, 0x00, 0x00, 0x48, 0x03, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, - 0x38, 0x04, 0x00, 0x00, 0xb0, 0x04, 0x00, 0x00, 0x28, 0x05, 0x00, 0x00, - 0xa0, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 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, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x19, 0x00, 0x32, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 0x02, 0x00, 0x00, 0x08, 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, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 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, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, - 0x03, 0x00, 0x01, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x03, 0x00, - 0x00, 0x01, 0x02, 0x00, 0x08, 0x01, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x50, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, - 0x40, 0x01, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00, - 0x30, 0x02, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0xd0, 0x02, 0x00, 0x00, - 0x20, 0x03, 0x00, 0x00, 0x70, 0x03, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, - 0x10, 0x04, 0x00, 0x00, 0x60, 0x04, 0x00, 0x00, 0xb0, 0x04, 0x00, 0x00, - 0x00, 0x05, 0x00, 0x00, 0x50, 0x05, 0x00, 0x00, 0xa0, 0x05, 0x00, 0x00, - 0xf0, 0x05, 0x00, 0x00, 0x40, 0x06, 0x00, 0x00, 0x90, 0x06, 0x00, 0x00, - 0xe0, 0x06, 0x00, 0x00, 0x30, 0x07, 0x00, 0x00, 0x80, 0x07, 0x00, 0x00, - 0xd0, 0x07, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x70, 0x08, 0x00, 0x00, - 0xc0, 0x08, 0x00, 0x00, 0x10, 0x09, 0x00, 0x00, 0x60, 0x09, 0x00, 0x00, - 0xb0, 0x09, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x50, 0x0a, 0x00, 0x00, - 0xa0, 0x0a, 0x00, 0x00, 0xf0, 0x0a, 0x00, 0x00, 0x40, 0x0b, 0x00, 0x00, - 0x90, 0x0b, 0x00, 0x00, 0xe0, 0x0b, 0x00, 0x00, 0x30, 0x0c, 0x00, 0x00, - 0x80, 0x0c, 0x00, 0x00, 0xd0, 0x0c, 0x00, 0x00, 0x20, 0x0d, 0x00, 0x00, - 0x70, 0x0d, 0x00, 0x00, 0xc0, 0x0d, 0x00, 0x00, 0x10, 0x0e, 0x00, 0x00, - 0x60, 0x0e, 0x00, 0x00, 0xb0, 0x0e, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, - 0x50, 0x0f, 0x00, 0x00, 0xa0, 0x0f, 0x00, 0x00, 0xf0, 0x0f, 0x00, 0x00, - 0x40, 0x10, 0x00, 0x00, 0x90, 0x10, 0x00, 0x00, 0xe0, 0x10, 0x00, 0x00, - 0x30, 0x11, 0x00, 0x00, 0x80, 0x11, 0x00, 0x00, 0xd0, 0x11, 0x00, 0x00, - 0x20, 0x12, 0x00, 0x00, 0x70, 0x12, 0x00, 0x00, 0xc0, 0x12, 0x00, 0x00, - 0x10, 0x13, 0x00, 0x00, 0x60, 0x13, 0x00, 0x00, 0xb0, 0x13, 0x00, 0x00, - 0x00, 0x14, 0x00, 0x00, 0x50, 0x14, 0x00, 0x00, 0xa0, 0x14, 0x00, 0x00, - 0xf0, 0x14, 0x00, 0x00, 0x40, 0x15, 0x00, 0x00, 0x90, 0x15, 0x00, 0x00, - 0xe0, 0x15, 0x00, 0x00, 0x30, 0x16, 0x00, 0x00, 0x80, 0x16, 0x00, 0x00, - 0xd0, 0x16, 0x00, 0x00, 0x20, 0x17, 0x00, 0x00, 0x70, 0x17, 0x00, 0x00, - 0xc0, 0x17, 0x00, 0x00, 0x10, 0x18, 0x00, 0x00, 0x60, 0x18, 0x00, 0x00, - 0xb0, 0x18, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x50, 0x19, 0x00, 0x00, - 0xa0, 0x19, 0x00, 0x00, 0xf0, 0x19, 0x00, 0x00, 0x40, 0x1a, 0x00, 0x00, - 0x90, 0x1a, 0x00, 0x00, 0xe0, 0x1a, 0x00, 0x00, 0x30, 0x1b, 0x00, 0x00, - 0x80, 0x1b, 0x00, 0x00, 0xd0, 0x1b, 0x00, 0x00, 0x20, 0x1c, 0x00, 0x00, - 0x70, 0x1c, 0x00, 0x00, 0xc0, 0x1c, 0x00, 0x00, 0x10, 0x1d, 0x00, 0x00, - 0x60, 0x1d, 0x00, 0x00, 0xb0, 0x1d, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, - 0x50, 0x1e, 0x00, 0x00, 0xa0, 0x1e, 0x00, 0x00, 0xf0, 0x1e, 0x00, 0x00, - 0x40, 0x1f, 0x00, 0x00, 0x90, 0x1f, 0x00, 0x00, 0xe0, 0x1f, 0x00, 0x00, - 0x30, 0x20, 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0xd0, 0x20, 0x00, 0x00, - 0x20, 0x21, 0x00, 0x00, 0x70, 0x21, 0x00, 0x00, 0xc0, 0x21, 0x00, 0x00, - 0x10, 0x22, 0x00, 0x00, 0x60, 0x22, 0x00, 0x00, 0xb0, 0x22, 0x00, 0x00, - 0x00, 0x23, 0x00, 0x00, 0x50, 0x23, 0x00, 0x00, 0xa0, 0x23, 0x00, 0x00, - 0xf0, 0x23, 0x00, 0x00, 0x40, 0x24, 0x00, 0x00, 0x90, 0x24, 0x00, 0x00, - 0xe0, 0x24, 0x00, 0x00, 0x30, 0x25, 0x00, 0x00, 0x80, 0x25, 0x00, 0x00, - 0xd0, 0x25, 0x00, 0x00, 0x20, 0x26, 0x00, 0x00, 0x70, 0x26, 0x00, 0x00, - 0xc0, 0x26, 0x00, 0x00, 0x10, 0x27, 0x00, 0x00, 0x60, 0x27, 0x00, 0x00, - 0xb0, 0x27, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x50, 0x28, 0x00, 0x00, - 0xa0, 0x28, 0x00, 0x00, 0xf0, 0x28, 0x00, 0x00, 0x40, 0x29, 0x00, 0x00, - 0x90, 0x29, 0x00, 0x00, 0xe0, 0x29, 0x00, 0x00, 0x30, 0x2a, 0x00, 0x00, - 0x80, 0x2a, 0x00, 0x00, 0xd0, 0x2a, 0x00, 0x00, 0x20, 0x2b, 0x00, 0x00, - 0x70, 0x2b, 0x00, 0x00, 0xc0, 0x2b, 0x00, 0x00, 0x10, 0x2c, 0x00, 0x00, - 0x60, 0x2c, 0x00, 0x00, 0xb0, 0x2c, 0x00, 0x00, 0x00, 0x2d, 0x00, 0x00, - 0x50, 0x2d, 0x00, 0x00, 0xa0, 0x2d, 0x00, 0x00, 0xf0, 0x2d, 0x00, 0x00, - 0x40, 0x2e, 0x00, 0x00, 0x90, 0x2e, 0x00, 0x00, 0xe0, 0x2e, 0x00, 0x00, - 0x30, 0x2f, 0x00, 0x00, 0x80, 0x2f, 0x00, 0x00, 0xd0, 0x2f, 0x00, 0x00, - 0x20, 0x30, 0x00, 0x00, 0x70, 0x30, 0x00, 0x00, 0xc0, 0x30, 0x00, 0x00, - 0x10, 0x31, 0x00, 0x00, 0x60, 0x31, 0x00, 0x00, 0xb0, 0x31, 0x00, 0x00, - 0x00, 0x32, 0x00, 0x00, 0x50, 0x32, 0x00, 0x00, 0xa0, 0x32, 0x00, 0x00, - 0xf0, 0x32, 0x00, 0x00, 0x40, 0x33, 0x00, 0x00, 0x90, 0x33, 0x00, 0x00, - 0xe0, 0x33, 0x00, 0x00, 0x30, 0x34, 0x00, 0x00, 0x80, 0x34, 0x00, 0x00, - 0xd0, 0x34, 0x00, 0x00, 0x20, 0x35, 0x00, 0x00, 0x70, 0x35, 0x00, 0x00, - 0xc0, 0x35, 0x00, 0x00, 0x10, 0x36, 0x00, 0x00, 0x60, 0x36, 0x00, 0x00, - 0xb0, 0x36, 0x00, 0x00, 0x00, 0x37, 0x00, 0x00, 0x50, 0x37, 0x00, 0x00, - 0xa0, 0x37, 0x00, 0x00, 0xf0, 0x37, 0x00, 0x00, 0x40, 0x38, 0x00, 0x00, - 0x90, 0x38, 0x00, 0x00, 0xe0, 0x38, 0x00, 0x00, 0x30, 0x39, 0x00, 0x00, - 0x80, 0x39, 0x00, 0x00, 0xd0, 0x39, 0x00, 0x00, 0x20, 0x3a, 0x00, 0x00, - 0x70, 0x3a, 0x00, 0x00, 0xc0, 0x3a, 0x00, 0x00, 0x10, 0x3b, 0x00, 0x00, - 0x60, 0x3b, 0x00, 0x00, 0xb0, 0x3b, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, - 0x50, 0x3c, 0x00, 0x00, 0xa0, 0x3c, 0x00, 0x00, 0xf0, 0x3c, 0x00, 0x00, - 0x40, 0x3d, 0x00, 0x00, 0x90, 0x3d, 0x00, 0x00, 0xe0, 0x3d, 0x00, 0x00, - 0x30, 0x3e, 0x00, 0x00, 0x80, 0x3e, 0x00, 0x00, 0xd0, 0x3e, 0x00, 0x00, - 0x20, 0x3f, 0x00, 0x00, 0x70, 0x3f, 0x00, 0x00, 0xc0, 0x3f, 0x00, 0x00, - 0x10, 0x40, 0x00, 0x00, 0x60, 0x40, 0x00, 0x00, 0xb0, 0x40, 0x00, 0x00, - 0x00, 0x41, 0x00, 0x00, 0x50, 0x41, 0x00, 0x00, 0xa0, 0x41, 0x00, 0x00, - 0xf0, 0x41, 0x00, 0x00, 0x40, 0x42, 0x00, 0x00, 0x90, 0x42, 0x00, 0x00, - 0xe0, 0x42, 0x00, 0x00, 0x30, 0x43, 0x00, 0x00, 0x80, 0x43, 0x00, 0x00, - 0xd0, 0x43, 0x00, 0x00, 0x20, 0x44, 0x00, 0x00, 0x70, 0x44, 0x00, 0x00, - 0xc0, 0x44, 0x00, 0x00, 0x10, 0x45, 0x00, 0x00, 0x60, 0x45, 0x00, 0x00, - 0xb0, 0x45, 0x00, 0x00, 0x00, 0x46, 0x00, 0x00, 0x50, 0x46, 0x00, 0x00, - 0xa0, 0x46, 0x00, 0x00, 0xf0, 0x46, 0x00, 0x00, 0x40, 0x47, 0x00, 0x00, - 0x90, 0x47, 0x00, 0x00, 0xe0, 0x47, 0x00, 0x00, 0x30, 0x48, 0x00, 0x00, - 0x80, 0x48, 0x00, 0x00, 0xd0, 0x48, 0x00, 0x00, 0x20, 0x49, 0x00, 0x00, - 0x70, 0x49, 0x00, 0x00, 0xc0, 0x49, 0x00, 0x00, 0x10, 0x4a, 0x00, 0x00, - 0x60, 0x4a, 0x00, 0x00, 0xb0, 0x4a, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, - 0x50, 0x4b, 0x00, 0x00, 0xa0, 0x4b, 0x00, 0x00, 0xf0, 0x4b, 0x00, 0x00, - 0x40, 0x4c, 0x00, 0x00, 0x90, 0x4c, 0x00, 0x00, 0xe0, 0x4c, 0x00, 0x00, - 0x30, 0x4d, 0x00, 0x00, 0x80, 0x4d, 0x00, 0x00, 0xd0, 0x4d, 0x00, 0x00, - 0x20, 0x4e, 0x00, 0x00, 0x70, 0x4e, 0x00, 0x00, 0xc0, 0x4e, 0x00, 0x00, - 0x10, 0x4f, 0x00, 0x00, 0x60, 0x4f, 0x00, 0x00, 0xb0, 0x4f, 0x00, 0x00, - 0x00, 0x50, 0x00, 0x00, 0x50, 0x50, 0x00, 0x00, 0xa0, 0x50, 0x00, 0x00, - 0xf0, 0x50, 0x00, 0x00, 0x40, 0x51, 0x00, 0x00, 0x90, 0x51, 0x00, 0x00, - 0xe0, 0x51, 0x00, 0x00, 0x30, 0x52, 0x00, 0x00, 0x80, 0x52, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x0c, 0x00, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x00, - 0xb0, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x60, 0x01, 0x00, 0x00, - 0xb8, 0x01, 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x68, 0x02, 0x00, 0x00, - 0xc0, 0x02, 0x00, 0x00, 0x18, 0x03, 0x00, 0x00, 0x70, 0x03, 0x00, 0x00, - 0xc8, 0x03, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe2, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0xe2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe2, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, - 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe2, 0x00, 0xe2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x1e, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe2, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x00, 0x1e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x20, - 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe2, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe2, 0x00, 0x1e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe2, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0xe2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe2, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, - 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe2, 0x00, 0xe2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x1e, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe2, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x00, 0x1e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x20, - 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe2, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe2, 0x00, 0x1e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe2, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0xe2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe2, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, - 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe2, 0x00, 0xe2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x1e, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe2, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x00, 0x1e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x20, - 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe2, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe2, 0x00, 0x1e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe2, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0xe2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe2, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, - 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe2, 0x00, 0xe2, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x1e, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe2, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, 0x00, 0x1e, 0x00, 0x1e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x20, - 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe2, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0xe2, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe2, 0x00, 0x1e, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x20, - 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x20, 0x00, 0x20, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, - 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x40, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, - 0xc0, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, - 0x80, 0x01, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, - 0x40, 0x02, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0xc0, 0x02, 0x00, 0x00, - 0x00, 0x03, 0x00, 0x00, 0x40, 0x03, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, - 0xc0, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x40, 0x04, 0x00, 0x00, - 0x80, 0x04, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, - 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, - 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, - 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, - 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, - 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, - 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, - 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, - 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, - 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, - 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, - 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, - 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, - 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, - 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, - 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, - 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, - 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, - 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, - 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, - 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, - 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, - 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, - 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, - 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, - 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, - 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, - 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, - 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, 0x04, 0x00, 0x01, 0x00, - 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, 0x00, 0x20, 0x00, 0x00, - 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, 0x00, 0x20, 0x00, 0x19, - 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, 0x02, 0x01, 0x03, 0x02, - 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0xe7, 0x00, 0x00, - 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x15, - 0x00, 0x20, 0x00, 0x00, 0x00, 0xe7, 0x00, 0x32, 0x00, 0x15, 0x00, 0x00, - 0x00, 0x20, 0x00, 0x19, 0x00, 0x32, 0x00, 0x15, 0x00, 0x20, 0x00, 0x20, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x06, 0x00, 0x00, 0x01, - 0x02, 0x01, 0x03, 0x02, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x28, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, - 0x78, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, - 0xf0, 0x00, 0x00, 0x00, 0x18, 0x01, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, - 0x68, 0x01, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00, 0xb8, 0x01, 0x00, 0x00, - 0xe0, 0x01, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x30, 0x02, 0x00, 0x00, - 0x58, 0x02, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0xa8, 0x02, 0x00, 0x00, - 0xd0, 0x02, 0x00, 0x00, 0xf8, 0x02, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, - 0x48, 0x03, 0x00, 0x00, 0x70, 0x03, 0x00, 0x00, 0x98, 0x03, 0x00, 0x00, - 0xc0, 0x03, 0x00, 0x00, 0xe8, 0x03, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, - 0x38, 0x04, 0x00, 0x00, 0x60, 0x04, 0x00, 0x00, 0x88, 0x04, 0x00, 0x00, - 0xb0, 0x04, 0x00, 0x00, 0xd8, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, - 0x28, 0x05, 0x00, 0x00, 0x50, 0x05, 0x00, 0x00, 0x78, 0x05, 0x00, 0x00, - 0xa0, 0x05, 0x00, 0x00, 0xc8, 0x05, 0x00, 0x00, 0xf0, 0x05, 0x00, 0x00, - 0x18, 0x06, 0x00, 0x00, 0x40, 0x06, 0x00, 0x00, 0x68, 0x06, 0x00, 0x00, - 0x90, 0x06, 0x00, 0x00, 0xb8, 0x06, 0x00, 0x00, 0xe0, 0x06, 0x00, 0x00, - 0x08, 0x07, 0x00, 0x00, 0x30, 0x07, 0x00, 0x00, 0x58, 0x07, 0x00, 0x00, - 0x80, 0x07, 0x00, 0x00, 0xa8, 0x07, 0x00, 0x00, 0xd0, 0x07, 0x00, 0x00, - 0xf8, 0x07, 0x00, 0x00, 0x20, 0x08, 0x00, 0x00, 0x48, 0x08, 0x00, 0x00, - 0x70, 0x08, 0x00, 0x00, 0x98, 0x08, 0x00, 0x00, 0xc0, 0x08, 0x00, 0x00, - 0xe8, 0x08, 0x00, 0x00, 0x10, 0x09, 0x00, 0x00, 0x38, 0x09, 0x00, 0x00, - 0x60, 0x09, 0x00, 0x00, 0x88, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x18, 0x00, 0x28, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, - 0x78, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, - 0xf0, 0x00, 0x00, 0x00, 0x18, 0x01, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, - 0x68, 0x01, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00, 0xb8, 0x01, 0x00, 0x00, - 0xe0, 0x01, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, 0x30, 0x02, 0x00, 0x00, - 0x58, 0x02, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, 0xa8, 0x02, 0x00, 0x00, - 0xd0, 0x02, 0x00, 0x00, 0xf8, 0x02, 0x00, 0x00, 0x20, 0x03, 0x00, 0x00, - 0x48, 0x03, 0x00, 0x00, 0x70, 0x03, 0x00, 0x00, 0x98, 0x03, 0x00, 0x00, - 0xc0, 0x03, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x03, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x28, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x0c, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, - 0x50, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, - 0xc8, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x18, 0x01, 0x00, 0x00, - 0x40, 0x01, 0x00, 0x00, 0x68, 0x01, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00, - 0xb8, 0x01, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x0c, 0x00, 0x28, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, - 0x78, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, - 0xf0, 0x00, 0x00, 0x00, 0x18, 0x01, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, - 0x68, 0x01, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00, 0xb8, 0x01, 0x00, 0x00, - 0xe0, 0x01, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x09, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x28, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, - 0xa0, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, - 0x18, 0x01, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x68, 0x01, 0x00, 0x00, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x02, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, - 0x50, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x25, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, - 0x50, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x00, 0x00, - 0xc8, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x18, 0x01, 0x00, 0x00, - 0x40, 0x01, 0x00, 0x00, 0x68, 0x01, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00, - 0xb8, 0x01, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00, 0x08, 0x02, 0x00, 0x00, - 0x30, 0x02, 0x00, 0x00, 0x58, 0x02, 0x00, 0x00, 0x80, 0x02, 0x00, 0x00, - 0xa8, 0x02, 0x00, 0x00, 0xd0, 0x02, 0x00, 0x00, 0xf8, 0x02, 0x00, 0x00, - 0x20, 0x03, 0x00, 0x00, 0x48, 0x03, 0x00, 0x00, 0x70, 0x03, 0x00, 0x00, - 0x98, 0x03, 0x00, 0x00, 0xc0, 0x03, 0x00, 0x00, 0xe8, 0x03, 0x00, 0x00, - 0x10, 0x04, 0x00, 0x00, 0x38, 0x04, 0x00, 0x00, 0x60, 0x04, 0x00, 0x00, - 0x88, 0x04, 0x00, 0x00, 0xb0, 0x04, 0x00, 0x00, 0xd8, 0x04, 0x00, 0x00, - 0x00, 0x05, 0x00, 0x00, 0x28, 0x05, 0x00, 0x00, 0x50, 0x05, 0x00, 0x00, - 0x78, 0x05, 0x00, 0x00, 0xa0, 0x05, 0x00, 0x00, 0xc8, 0x05, 0x00, 0x00, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x06, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x28, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, - 0xa0, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, 0x01, 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, 0x08, 0x00, 0x08, 0x00, - 0x01, 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, - 0x12, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x00, 0x00, - 0x10, 0x10, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, - 0x28, 0x28, 0x00, 0x00, 0x30, 0x30, 0x00, 0x00, 0x38, 0x38, 0x00, 0x00, - 0x40, 0x40, 0x00, 0x00, 0x48, 0x48, 0x00, 0x00, 0x50, 0x50, 0x00, 0x00, - 0x58, 0x58, 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, 0x68, 0x68, 0x00, 0x00, - 0x70, 0x70, 0x00, 0x00, 0x78, 0x78, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, - 0x88, 0x88, 0x00, 0x00, 0x90, 0x90, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, - 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, - 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, - 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, - 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, - 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, - 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, - 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, - 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, - 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, - 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, - 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, - 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, - 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, - 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, - 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, - 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, - 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, - 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, - 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, - 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, - 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, - 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, - 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, - 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, - 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, - 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, - 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, - 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, - 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, - 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, - 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, - 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, - 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, - 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, - 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, - 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, - 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, - 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, - 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, - 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, - 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, - 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, - 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, - 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, - 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, - 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, - 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, - 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, - 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, - 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, - 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, - 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, - 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, - 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, - 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, - 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, - 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, - 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, - 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, - 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, - 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, - 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, - 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, - 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, - 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, - 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, - 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, - 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, - 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, - 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, - 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, - 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, - 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, - 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, - 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, - 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, - 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, - 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, - 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, - 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, - 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, - 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, - 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, - 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, - 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, - 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, - 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, - 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, - 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, - 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, - 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, - 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, - 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, - 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, - 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, - 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, - 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, - 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, - 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, - 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, - 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, - 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, - 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, - 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, - 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, - 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, - 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, - 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, - 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, - 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, - 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, - 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, - 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, - 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, - 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, - 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, - 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, - 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, - 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, - 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, - 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, - 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, - 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, - 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, - 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, - 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, - 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, - 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, - 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, - 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, - 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, - 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, - 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, - 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, - 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, - 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, - 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, - 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, - 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, - 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, - 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, - 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, - 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, - 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, - 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, - 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, - 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, - 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, - 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, - 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, - 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, - 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, - 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, - 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, - 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, - 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, - 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, - 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, - 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, - 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, - 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, - 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, - 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, - 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, - 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, - 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, - 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, - 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, - 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, - 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, - 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, - 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, - 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, - 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, - 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, - 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, - 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, - 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, - 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, - 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, - 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, - 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, - 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, - 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, - 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, - 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, - 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, - 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, - 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, - 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, - 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, - 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, - 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, - 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, - 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, - 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, - 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, - 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, - 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, - 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, - 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, - 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, - 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, - 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, - 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, - 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, - 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, - 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, - 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, - 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, - 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, - 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, - 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, - 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, - 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, - 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, - 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, - 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, - 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, - 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, - 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, - 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, - 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, - 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, - 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, - 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, - 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, - 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, - 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, - 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, - 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, - 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, - 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, - 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, - 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, - 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, - 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, - 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, - 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, - 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, - 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, - 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, - 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, - 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, - 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, - 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, - 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, - 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, - 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, - 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, - 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, - 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, - 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, - 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, - 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, - 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, - 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, - 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, - 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, - 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, - 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, - 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, - 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, - 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, - 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, - 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, - 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, - 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, - 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, - 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, - 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, - 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, - 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, - 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, - 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, - 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, - 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, - 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, - 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, - 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, - 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, - 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, - 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, - 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, - 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, - 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, - 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, - 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, - 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, - 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, - 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, - 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, - 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, - 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, - 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, - 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, - 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, - 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, - 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, - 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, - 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, - 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, - 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, - 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, - 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, - 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, - 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, - 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, - 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, - 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, - 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, - 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, - 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, - 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, - 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, - 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, - 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, - 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, - 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, - 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, - 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, - 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, - 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, - 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, - 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, - 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, - 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, - 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, - 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, - 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, - 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, - 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, - 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, - 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, - 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, - 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, - 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, - 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, - 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, - 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, - 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, - 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, - 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, - 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, - 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, - 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, - 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, - 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, - 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, - 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, - 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, - 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, - 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, - 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, - 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, - 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, - 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, - 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, - 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, - 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, - 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, - 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, - 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, - 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, - 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, - 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, - 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, - 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, - 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, - 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, - 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, - 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, - 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, - 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, - 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, - 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, - 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, - 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, - 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, - 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, - 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, - 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, - 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, - 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, - 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, - 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, - 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, - 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, - 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, - 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, - 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, - 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, - 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, - 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, - 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, - 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, - 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, - 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, - 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, - 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, - 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, - 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, - 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, - 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, - 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, - 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, - 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, - 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, - 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, - 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, - 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, - 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, - 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, - 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, - 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, - 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, - 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, - 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, - 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, - 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, - 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, - 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, - 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, - 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, - 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, - 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, - 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, - 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, - 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, - 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, - 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, - 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, - 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, - 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, - 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, - 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, - 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, - 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, - 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, - 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, - 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, - 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, - 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, - 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, - 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, - 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, - 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, - 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, - 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, - 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, - 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, - 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, - 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, - 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, - 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, - 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, - 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, - 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, - 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, - 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, - 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, - 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, - 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, - 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, - 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, - 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, - 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, - 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, - 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, - 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, - 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, - 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, - 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, - 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, - 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, - 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, - 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, - 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, - 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, - 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, - 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, - 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, - 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, - 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, - 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, - 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, - 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, - 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, - 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, - 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, - 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, - 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, - 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, - 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, - 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, - 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, - 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, - 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, - 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, - 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, - 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, - 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, - 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, - 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, - 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, - 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, - 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, - 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, - 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, - 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, - 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, - 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, - 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, - 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, - 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, - 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, - 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, - 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, - 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, - 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, - 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, - 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, - 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, - 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, - 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, - 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, - 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, - 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, - 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, - 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, - 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, - 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, - 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, - 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, - 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, - 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, - 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, - 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, - 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, - 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, - 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, - 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, - 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, - 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, - 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, - 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, - 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, - 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, - 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, - 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, - 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, - 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, - 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, - 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, - 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, - 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, - 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, - 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, - 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, - 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, - 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, - 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, - 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, - 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, - 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, - 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, - 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, - 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, - 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, - 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, - 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, - 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, - 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, - 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, - 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, - 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, - 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, - 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, - 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, - 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, - 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, - 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, - 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, - 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, - 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, - 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, - 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, - 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, - 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, - 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, - 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, - 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, - 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, - 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, - 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, - 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, - 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, - 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, - 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, - 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, - 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, - 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, - 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, - 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, - 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, - 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, - 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, - 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, - 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, - 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, - 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, - 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, - 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, - 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, - 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, - 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, - 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, - 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, - 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, - 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, - 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, - 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, - 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, - 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, - 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, - 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, - 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, - 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, - 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, - 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, - 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, - 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, - 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, - 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, - 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, - 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, - 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, - 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, - 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, - 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, - 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, - 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, - 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, - 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, - 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, - 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, - 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, - 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, - 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, - 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, - 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, - 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, - 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, - 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, - 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, - 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, - 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, - 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, - 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, - 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, - 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, - 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, - 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, - 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, - 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, - 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, - 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, - 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, - 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, - 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, - 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, - 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, - 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, - 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, - 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, - 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, - 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, - 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, - 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, - 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, - 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, - 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, - 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, - 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, - 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, - 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, - 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, - 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, - 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, - 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, - 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, - 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, - 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, - 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, - 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, - 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, - 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, - 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, - 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, - 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, - 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, - 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, - 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, - 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, - 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, - 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, - 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, - 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, - 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, - 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, - 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, - 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, - 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, - 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, - 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, - 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, - 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, - 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, - 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, - 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, - 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, - 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, - 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, - 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, - 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, - 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, - 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, - 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, - 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, - 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, - 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, - 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, - 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, - 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, - 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, - 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, - 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, - 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, - 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, - 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, - 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, - 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, - 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, - 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, - 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, - 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, - 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, - 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, - 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, - 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, - 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, - 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, - 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, - 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, - 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, - 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, - 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, - 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, - 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, - 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, - 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, - 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, - 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, - 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, - 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, - 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, - 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, - 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, - 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, - 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, - 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, - 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, - 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, - 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, - 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, - 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, - 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, - 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, - 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, - 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, - 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, - 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, - 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, - 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, - 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, - 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, - 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, - 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, - 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, - 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, - 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, - 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, - 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, - 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, - 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, - 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, - 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, - 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, - 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, - 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, - 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, - 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, - 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, - 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, - 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, - 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, - 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, - 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, - 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, - 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, - 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, - 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, - 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, - 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, - 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, - 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, - 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, - 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, - 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, - 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, - 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, - 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, - 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, - 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, - 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, - 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, - 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, - 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, - 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, - 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, - 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, - 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, - 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, - 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, - 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, - 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, - 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, - 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, - 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, - 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, - 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, - 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, - 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, - 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, - 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, - 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, - 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, - 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, - 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, - 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, - 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, - 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, - 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, - 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, - 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, - 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, - 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, - 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, - 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, - 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, - 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, - 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, - 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, - 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, - 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, - 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, - 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, - 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, - 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, - 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, - 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, - 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, - 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, - 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, - 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, - 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, - 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, - 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, - 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, - 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, - 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, - 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, - 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, - 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, - 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, - 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, - 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, - 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, - 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, - 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, - 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, - 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, - 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, - 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, - 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, - 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, - 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, - 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, - 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, - 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, - 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, - 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, - 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, - 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, - 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, - 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, - 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, - 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, - 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, - 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, - 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, - 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, - 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, - 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, - 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, - 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, - 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, - 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, - 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, - 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, - 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, - 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, - 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, - 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, - 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, - 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, - 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, - 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, - 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, - 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, - 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, - 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, - 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, - 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, - 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, - 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, - 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, - 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, - 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, - 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, - 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, - 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, - 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, - 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, - 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, - 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, - 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, - 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, - 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, - 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, - 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, - 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, - 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, - 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, - 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, - 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, - 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, - 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, - 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, - 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, - 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, - 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, - 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, - 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, - 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, - 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, - 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, - 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, - 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, - 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, - 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, - 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, - 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, - 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, - 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, - 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, - 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, - 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, - 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, - 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, - 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, - 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, - 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, - 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, - 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, - 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, - 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, - 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, - 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, - 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, - 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, - 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, - 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, - 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, - 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, - 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, - 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, - 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, - 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, - 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, - 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, - 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, - 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, - 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, - 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, - 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, - 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, - 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, - 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, - 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, - 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, - 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, - 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, - 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, - 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, - 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, - 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, - 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, - 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, - 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, - 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, - 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, - 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, - 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, - 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, - 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, - 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, - 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, - 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, - 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, - 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, - 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, - 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, - 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, - 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, - 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, - 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, - 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, - 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, - 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, - 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, - 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, - 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, - 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, - 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, - 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, 0xaf, 0xaa, 0xbf, 0xbb, - 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0xdf, 0xdd, 0xff, 0xff, - 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xef, 0xee, - 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x5f, 0x76, - 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, 0x8f, 0x88, 0x4f, 0x65, - 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, 0x5f, 0xa8, 0x5f, 0xe9, - 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, 0x4f, 0x86, 0x4f, 0xc8, - 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, 0x5f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, 0x8f, 0x88, 0x4f, 0x86, - 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, 0x5f, 0xf9, 0x5f, 0xe9, - 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, 0x4f, 0xf9, 0x4f, 0xf8, - 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0x7f, 0x77, - 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, 0x5f, 0xe9, 0x5f, 0xe9, - 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, 0x4f, 0xb7, 0x7f, 0x87, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0x85, - 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, 0xcf, 0xcc, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, 0x3f, 0xc6, 0x4f, 0xf8, - 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, 0x1f, 0x42, 0x2f, 0x53, - 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, 0x4f, 0xf8, 0x3f, 0xa6, - 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, 0xbf, 0xbb, 0xff, 0xff, - 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, 0xcf, 0xcc, 0xff, 0xff, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0xf8, 0x4f, 0xe7, - 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, 0x1f, 0x52, 0x2f, 0x63, - 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, 0x3f, 0xa6, 0x3f, 0x86, - 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, 0x1f, 0x42, 0x3f, 0xa6, - 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xe8, - 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, 0x3f, 0x95, 0x1f, 0x42, - 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, 0x3f, 0xb6, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x9f, 0xfc, - 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0xfa, 0x4f, 0xf9, - 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xbf, 0xfc, - 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, 0x4f, 0xf8, 0x3f, 0xa5, - 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, 0x4f, 0xd7, 0x2f, 0x64, - 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, 0x3f, 0x85, 0xaf, 0xaa, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, 0x4f, 0xf8, 0x3f, 0xd7, - 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, 0x4f, 0x55, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x86, 0xef, 0xee, - 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, 0x3f, 0x64, 0x3f, 0xb6, - 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xdf, 0xdd, - 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, 0xff, 0xff, 0xaf, 0xaa, - 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, 0x8f, 0xea, 0xff, 0xff, - 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, 0x8f, 0xfb, 0x9f, 0xfb, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, 0x6f, 0xf9, 0x6f, 0xfa, - 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, 0x3f, 0x74, 0x3f, 0xc7, - 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, 0x3f, 0xa6, 0x0f, 0x11, - 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, 0x1f, 0x11, 0xaf, 0xaa, - 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, 0x7f, 0x77, 0xff, 0xff, - 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xbf, 0xfc, - 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, 0x9f, 0xfc, 0x7f, 0xfa, - 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, 0xaf, 0xfc, 0x5f, 0x97, - 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, 0xcf, 0xfd, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xaf, 0xaa, - 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, 0x2f, 0x22, 0x2f, 0x32, - 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, 0x9f, 0x99, 0xdf, 0xdd, - 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, 0x1f, 0x21, 0x7f, 0x77, - 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, 0xff, 0xff, 0x5f, 0x69, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, 0x2f, 0x43, 0xdf, 0xfe, - 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xc6, 0x8f, 0x88, - 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, - 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, 0x4f, 0x75, 0x9f, 0x99, - 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, 0x1f, 0x52, 0x4f, 0x85, - 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0x2f, 0x54, 0x1f, 0x44, - 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, 0x3f, 0x59, 0x8f, 0x8a, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, - 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, 0x7f, 0x77, 0x9f, 0xba, - 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, 0x8f, 0x88, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, 0x4f, 0x65, 0xdf, 0xdd, - 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, 0xff, 0xff, 0xaf, 0xcb, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, 0xff, 0xff, 0x7f, 0xa8, - 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, 0xff, 0xff, 0x7f, 0xa8, - 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0xcf, 0xdc, 0x2f, 0x74, - 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, 0x1f, 0x63, 0x8f, 0xa8, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x74, 0x1f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xb9, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x11, 0x0f, 0x00, - 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, 0x6f, 0x66, 0xff, 0xff, - 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, 0x7f, 0x8b, 0x5f, 0x8c, - 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, 0x4f, 0x69, 0x6f, 0xae, - 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, 0x5f, 0x8c, 0x3f, 0x5a, - 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, 0xaf, 0xac, 0x5f, 0x8c, - 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, 0x3f, 0x6b, 0x3f, 0x5b, - 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, 0x0f, 0x18, 0x3f, 0x6b, - 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, 0x1f, 0x17, 0x3f, 0x5a, - 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, 0x6f, 0x7a, 0xaf, 0xaa, - 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, 0x4f, 0x58, 0x5f, 0x55, - 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, 0x0f, 0x18, 0x3f, 0x5a, - 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, 0x1f, 0x28, 0x2f, 0x38, - 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, 0x8f, 0x9b, 0xff, 0xff, - 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xff, 0xff, 0x20, 0x00, 0x20, 0x00, 0x01, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xbf, 0xbb, 0x4f, 0x65, 0x4f, 0x86, - 0xaf, 0xaa, 0xbf, 0xbb, 0x4f, 0x96, 0x3f, 0x85, 0x5f, 0xe9, 0x5f, 0xf9, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0x65, 0x6f, 0x76, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xef, 0xee, 0x4f, 0xf8, 0x3f, 0xc7, 0x4f, 0xf8, 0x4f, 0xf8, - 0x3f, 0x95, 0x5f, 0x76, 0x4f, 0xf8, 0x2f, 0x84, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xef, 0xdd, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0xdf, 0xdd, - 0x8f, 0x88, 0x4f, 0x65, 0x9f, 0x99, 0x5f, 0x66, 0x3f, 0x65, 0x6f, 0xea, - 0x5f, 0xa8, 0x5f, 0xe9, 0x6f, 0xfa, 0x4f, 0xf9, 0x9f, 0x99, 0x6f, 0x77, - 0x4f, 0x86, 0x4f, 0xc8, 0x5f, 0x66, 0x4f, 0x65, 0x5f, 0xe9, 0x5f, 0xe9, - 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xdd, 0xef, 0xdd, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xaf, 0xaa, 0xff, 0xff, 0xef, 0xee, 0xff, 0xee, 0x7f, 0x87, - 0x8f, 0x88, 0x4f, 0x86, 0x4f, 0xa6, 0x4f, 0xf8, 0x4f, 0x65, 0x4f, 0x65, - 0x5f, 0xf9, 0x5f, 0xe9, 0x5f, 0x66, 0x7f, 0x77, 0x4f, 0xe8, 0x4f, 0xc7, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x6f, 0x66, 0x4f, 0x96, 0x3f, 0x85, 0x2f, 0x64, - 0x4f, 0xf9, 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x4f, 0xf9, 0x4f, 0xd8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x85, 0x2f, 0x53, 0x4f, 0xf8, 0x3f, 0xa6, - 0xdf, 0xdd, 0x7f, 0x77, 0x4f, 0x65, 0x5f, 0xa8, 0x4f, 0x54, 0x3f, 0x54, - 0x5f, 0xe9, 0x5f, 0xe9, 0x4f, 0xe8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0x65, 0xdf, 0xdd, - 0x4f, 0xb7, 0x7f, 0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0x85, 0x4f, 0xf8, 0x3f, 0xa6, 0xdf, 0xdd, 0xff, 0xff, - 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0xc7, 0x3f, 0x95, 0x1f, 0x42, - 0x3f, 0xc6, 0x4f, 0xf8, 0x1f, 0x42, 0x3f, 0xc7, 0x1f, 0x42, 0x2f, 0x63, - 0x1f, 0x42, 0x2f, 0x53, 0x1f, 0x52, 0x3f, 0x95, 0x1f, 0x52, 0x2f, 0x84, - 0x4f, 0xf8, 0x3f, 0xa6, 0x4f, 0xf8, 0x3f, 0xa6, 0xbf, 0xbb, 0xff, 0xff, - 0xbf, 0xbb, 0xff, 0xff, 0x4f, 0xf8, 0x3f, 0x96, 0x4f, 0xf8, 0x4f, 0x96, - 0xcf, 0xcc, 0xff, 0xff, 0xdf, 0xdd, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xe8, 0x3f, 0xc7, 0x2f, 0x74, 0x1f, 0x32, - 0x4f, 0xf8, 0x4f, 0xe7, 0x4f, 0xf8, 0x4f, 0xd7, 0x1f, 0x52, 0x2f, 0x63, - 0x1f, 0x52, 0x2f, 0x63, 0x4f, 0xe8, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x85, - 0x3f, 0xa6, 0x3f, 0x86, 0x3f, 0x85, 0x5f, 0xe9, 0x1f, 0x52, 0x2f, 0x43, - 0x1f, 0x42, 0x3f, 0xa6, 0x4f, 0xd8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe7, 0x4f, 0xe8, 0x3f, 0x95, 0x4f, 0xf8, 0x2f, 0x53, 0x2f, 0x52, - 0x2f, 0x74, 0x1f, 0x32, 0x4f, 0x65, 0x4f, 0xe8, 0x9f, 0x99, 0x3f, 0x96, - 0x3f, 0x95, 0x1f, 0x42, 0x4f, 0x95, 0x2f, 0x85, 0x2f, 0x63, 0x4f, 0xf8, - 0x3f, 0xb6, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xe8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x5f, 0xf9, 0x9f, 0xfc, 0x5f, 0xf9, 0x4f, 0xf8, 0xdf, 0xfe, 0xaf, 0xfc, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x6f, 0xfa, 0x4f, 0xf9, 0xbf, 0xfc, 0xff, 0xff, 0x9f, 0xfc, 0xff, 0xff, - 0xff, 0xff, 0xbf, 0xfc, 0xff, 0xff, 0xef, 0xff, 0x3f, 0xb6, 0x1f, 0x42, - 0x4f, 0xf8, 0x3f, 0xa5, 0x1f, 0x52, 0x2f, 0x74, 0x1f, 0x32, 0x2f, 0x84, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x2f, 0x64, 0x3f, 0x74, - 0x4f, 0xd7, 0x2f, 0x64, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xe8, 0x6f, 0x87, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x4f, 0xc7, 0x8f, 0x98, - 0x3f, 0x85, 0xaf, 0xaa, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x95, - 0x4f, 0xf8, 0x3f, 0xd7, 0x5f, 0xf9, 0x4f, 0xf8, 0x6f, 0xf9, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x3f, 0x43, 0xdf, 0xdd, - 0x4f, 0x55, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x86, 0xef, 0xee, 0x3f, 0x96, 0xcf, 0xcc, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xdd, 0x5f, 0x65, 0xff, 0xff, 0x9f, 0x99, - 0x3f, 0x64, 0x3f, 0xb6, 0x2f, 0x42, 0x4f, 0xd7, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xef, 0xee, 0x4f, 0x65, 0x4f, 0xe8, 0x5f, 0x86, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xdf, 0xdd, 0x4f, 0x86, 0x4f, 0xf8, 0x4f, 0x86, 0x4f, 0xf8, - 0xff, 0xff, 0xaf, 0xaa, 0xdf, 0xdd, 0x4f, 0x75, 0x3f, 0xa6, 0x8f, 0xfb, - 0x8f, 0xea, 0xff, 0xff, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0xdf, 0xfe, - 0x8f, 0xfb, 0x9f, 0xfb, 0xff, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x5f, 0xf9, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0xaf, 0xfc, 0xff, 0xff, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xcf, 0xfd, 0xcf, 0xfd, 0x6f, 0xfa, - 0x6f, 0xf9, 0x6f, 0xfa, 0x4f, 0xf8, 0x3f, 0xa5, 0x5f, 0xf9, 0x4f, 0xf8, - 0x3f, 0x74, 0x3f, 0xc7, 0x8f, 0xfb, 0x6f, 0xf9, 0xff, 0xff, 0xef, 0xff, - 0x4f, 0xf8, 0x4f, 0xf8, 0xbf, 0xfd, 0x7f, 0xfa, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x9f, 0xca, 0xbf, 0xcb, 0x3f, 0x74, - 0x3f, 0xa6, 0x0f, 0x11, 0x2f, 0x53, 0x1f, 0x11, 0x6f, 0x66, 0x5f, 0x86, - 0x1f, 0x11, 0xaf, 0xaa, 0x1f, 0x42, 0x2f, 0x22, 0x1f, 0x63, 0x2f, 0x63, - 0x7f, 0x77, 0xff, 0xff, 0xcf, 0xdc, 0xff, 0xff, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0xaf, 0xfc, 0xbf, 0xfc, 0x4f, 0xf9, 0x7f, 0xfa, 0x4f, 0xf8, 0x4f, 0xf8, - 0x9f, 0xfc, 0x7f, 0xfa, 0x3f, 0xd7, 0x4f, 0xe8, 0x4f, 0xf8, 0x3f, 0xb6, - 0xaf, 0xfc, 0x5f, 0x97, 0x4f, 0x55, 0x2f, 0x43, 0x5f, 0x55, 0x1f, 0x11, - 0xcf, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xdf, 0xcd, 0xaf, 0xaa, 0xff, 0xff, 0x7f, 0x77, 0xef, 0xee, 0x2f, 0x22, - 0x2f, 0x22, 0x2f, 0x32, 0x0f, 0x11, 0x1f, 0x21, 0xff, 0xff, 0xef, 0xee, - 0x9f, 0x99, 0xdf, 0xdd, 0x3f, 0x33, 0x2f, 0x22, 0xef, 0xee, 0x6f, 0x76, - 0x1f, 0x21, 0x7f, 0x77, 0x0f, 0x10, 0x9f, 0x99, 0xff, 0xff, 0xbf, 0xcc, - 0xff, 0xff, 0x5f, 0x69, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, 0x4f, 0xf8, - 0x4f, 0xf8, 0x4f, 0xf8, 0x5f, 0xf9, 0x5f, 0xf9, 0x3f, 0xc6, 0x7f, 0xfa, - 0x2f, 0x43, 0xdf, 0xfe, 0xcf, 0xfe, 0xdf, 0xfe, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0xc6, 0x8f, 0x88, 0x4f, 0xf8, 0x3f, 0x85, 0xff, 0xff, 0xff, 0xff, - 0xaf, 0xaa, 0xff, 0xff, 0xbf, 0xfd, 0x7f, 0xea, 0xff, 0xff, 0xff, 0xff, - 0x4f, 0x75, 0x9f, 0x99, 0xcf, 0xed, 0x6f, 0x66, 0x2f, 0x32, 0xcf, 0xdc, - 0x1f, 0x52, 0x4f, 0x85, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, - 0x2f, 0x54, 0x1f, 0x44, 0x4f, 0x6b, 0x4f, 0x7b, 0x7f, 0x88, 0xff, 0xff, - 0x3f, 0x59, 0x8f, 0x8a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x7f, 0x77, 0xbf, 0xbb, 0x8f, 0x88, 0xff, 0xff, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x7f, 0x77, 0xdf, 0xdd, 0x8f, 0x88, 0xef, 0xee, - 0x7f, 0x77, 0x9f, 0xba, 0x6f, 0x66, 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0x8f, 0x88, 0xef, 0xee, 0x8f, 0x88, - 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xee, 0xff, 0xff, 0xef, 0xee, - 0x8f, 0x88, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xaf, 0x9a, 0xef, 0xee, - 0x4f, 0x65, 0xdf, 0xdd, 0x7f, 0x77, 0x7f, 0x77, 0xaf, 0xaa, 0x7f, 0x77, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xdf, 0xee, - 0xff, 0xff, 0xaf, 0xcb, 0xcf, 0xcc, 0xff, 0xff, 0x4f, 0x44, 0xaf, 0x99, - 0xff, 0xff, 0x7f, 0xa8, 0xff, 0xee, 0x5f, 0x86, 0xff, 0xff, 0xdf, 0xed, - 0xff, 0xff, 0x7f, 0xa8, 0x4f, 0x75, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0xcf, 0xdc, 0x2f, 0x74, 0x7f, 0xa8, 0x1f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x4f, 0x75, 0x1f, 0x63, 0x5f, 0x86, - 0xef, 0xee, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x63, 0x6f, 0x97, - 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x3f, 0x74, 0x1f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x2f, 0x63, - 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x2f, 0x63, 0x1f, 0x63, 0x8f, 0xa9, - 0x1f, 0x63, 0x8f, 0xb9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x63, 0x8f, 0xa9, 0x1f, 0x63, 0x8f, 0xa8, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xff, 0xff, 0xff, - 0x1f, 0x11, 0x0f, 0x00, 0xdf, 0xdd, 0x4f, 0x44, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xcf, 0xcc, 0x7f, 0x77, 0x9f, 0x99, 0xdf, 0xdd, - 0x6f, 0x66, 0xff, 0xff, 0x8f, 0x88, 0xff, 0xef, 0xbf, 0xbc, 0x3f, 0x59, - 0x7f, 0x8b, 0x5f, 0x8c, 0x8f, 0x88, 0x6f, 0x67, 0xff, 0xff, 0xaf, 0xac, - 0x4f, 0x69, 0x6f, 0xae, 0x4f, 0x6a, 0x5f, 0x9d, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x8f, 0x9b, 0xff, 0xff, 0x6f, 0x7a, - 0x5f, 0x8c, 0x3f, 0x5a, 0x6f, 0xae, 0x3f, 0x6b, 0xdf, 0xdd, 0x5f, 0x7b, - 0xaf, 0xac, 0x5f, 0x8c, 0x6f, 0xae, 0x4f, 0x8d, 0x5f, 0xae, 0x4f, 0x7c, - 0x3f, 0x6b, 0x3f, 0x5b, 0x2f, 0x38, 0x0f, 0x17, 0x4f, 0x7c, 0x4f, 0x6b, - 0x0f, 0x18, 0x3f, 0x6b, 0x4f, 0x7c, 0x2f, 0x38, 0x4f, 0x8d, 0x2f, 0x4a, - 0x1f, 0x17, 0x3f, 0x5a, 0x0f, 0x18, 0x3f, 0x6b, 0xaf, 0xac, 0xff, 0xff, - 0x6f, 0x7a, 0xaf, 0xaa, 0x9f, 0x99, 0xdf, 0xcd, 0x6f, 0x66, 0xcf, 0xcc, - 0x4f, 0x58, 0x5f, 0x55, 0x3f, 0x36, 0xaf, 0xaa, 0x9f, 0x88, 0xef, 0xee, - 0xff, 0xff, 0xff, 0xff, 0x3f, 0x7c, 0x1f, 0x28, 0x1f, 0x38, 0x0f, 0x18, - 0x0f, 0x18, 0x3f, 0x5a, 0x1f, 0x29, 0x3f, 0x49, 0x1f, 0x38, 0x0f, 0x16, - 0x1f, 0x28, 0x2f, 0x38, 0x2f, 0x49, 0x3f, 0x59, 0x5f, 0x8c, 0x5f, 0x9d, - 0x8f, 0x9b, 0xff, 0xff, 0xcf, 0xcd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0x5f, 0x69, 0xcf, 0xcd, 0x5f, 0x8c, 0x4f, 0x59, - 0xff, 0xff, 0xff, 0xff, 0xdf, 0xcd, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00 -}; -unsigned int MII_DATA_len = 73600; diff --git a/include/fs/romfs.hpp b/include/fs/romfs.hpp deleted file mode 100644 index 114b1c1e..00000000 --- a/include/fs/romfs.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include -#include -#include - -#include "helpers.hpp" - -namespace RomFS { - struct RomFSNode { - std::u16string name; - // The file/directory offset relative to the start of the RomFS - u64 metadataOffset = 0; - u64 dataOffset = 0; - u64 dataSize = 0; - bool isDirectory = false; - - std::vector> directories; - std::vector> files; - }; - - // Result codes when dumping RomFS. These are used by the frontend to print appropriate error messages if RomFS dumping fails - enum class DumpingResult { - Success = 0, - InvalidFormat = 1, // ROM is a format that doesn't support RomFS, such as ELF - NoRomFS = 2 - }; - - std::unique_ptr parseRomFSTree(uintptr_t romFS, u64 romFSSize); -} // namespace RomFS \ No newline at end of file diff --git a/include/helpers.hpp b/include/helpers.hpp deleted file mode 100644 index 037c8976..00000000 --- a/include/helpers.hpp +++ /dev/null @@ -1,183 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "termcolor.hpp" - -// We have to detect and special-case AppleClang at the moment since its C++20 support is finicky and doesn't quite support std::bit_cast -#if defined(__clang__) && defined(__apple_build_version__) -#define HELPERS_APPLE_CLANG -#else -#include -#endif - -using u8 = std::uint8_t; -using u16 = std::uint16_t; -using u32 = std::uint32_t; -using u64 = std::uint64_t; -using usize = std::size_t; -using uint = unsigned int; - -using s8 = std::int8_t; -using s16 = std::int16_t; -using s32 = std::int32_t; -using s64 = std::int64_t; - -namespace Helpers { - template - std::string format(const std::string& fmt, Args&&... args) { - const int size = std::snprintf(nullptr, 0, fmt.c_str(), args...) + 1; - if (size <= 0) { - return {}; - } - const auto buf = std::make_unique(size); - std::snprintf(buf.get(), size, fmt.c_str(), args ...); - return std::string(buf.get(), buf.get() + size - 1); - } - - // Unconditional panic, unlike panicDev which does not panic on user builds - template - [[noreturn]] static void panic(const char* fmt, Args&&... args) { - std::cout << termcolor::on_red << "[FATAL] "; - std::printf(fmt, args...); - std::cout << termcolor::reset << "\n"; - - exit(1); - } - -#ifdef PANDA3DS_LIMITED_PANICS - template - static void panicDev(const char* fmt, Args&&... args) {} -#else - template - [[noreturn]] static void panicDev(const char* fmt, Args&&... args) { - panic(fmt, args...); - } -#endif - - template - static void warn(const char* fmt, Args&&... args) { - std::cout << termcolor::on_red << "[Warning] "; - std::printf(fmt, args...); - std::cout << termcolor::reset << "\n"; - } - - static constexpr bool buildingInDebugMode() { -#ifdef NDEBUG - return false; -#endif - return true; - } - - static constexpr bool isUserBuild() { -#ifdef PANDA3DS_USER_BUILD - return true; -#endif - return false; - } - - static constexpr bool isHydraCore() { -#ifdef PANDA3DS_HYDRA_CORE - return true; -#endif - return false; - } - - static constexpr bool isAndroid() { -#ifdef __ANDROID__ - return true; -#endif - return false; - } - - static void debug_printf(const char* fmt, ...) { - if constexpr (buildingInDebugMode()) { - std::va_list args; - va_start(args, fmt); - std::vprintf(fmt, args); - va_end(args); - } - } - - /// Sign extend an arbitrary-size value to 32 bits - static constexpr u32 inline signExtend32(u32 value, u32 startingSize) { - auto temp = (s32)value; - auto bitsToShift = 32 - startingSize; - return (u32)(temp << bitsToShift >> bitsToShift); - } - - /// Sign extend an arbitrary-size value to 16 bits - static constexpr u16 signExtend16(u16 value, u32 startingSize) { - auto temp = (s16)value; - auto bitsToShift = 16 - startingSize; - return (u16)(temp << bitsToShift >> bitsToShift); - } - - /// Create a mask with `count` number of one bits. - template - static constexpr T ones() { - constexpr usize bitsize = CHAR_BIT * sizeof(T); - static_assert(count <= bitsize, "count larger than bitsize of T"); - - if (count == T(0)) { - return T(0); - } - return static_cast(~static_cast(0)) >> (bitsize - count); - } - - /// Extract bits from an integer-type - template - static constexpr T getBit(T value) { - return (value >> offset) & T(1); - } - - /// Extract bits from an integer-type - template - static constexpr ReturnT getBits(ValueT value) { - static_assert((offset + bits) <= (CHAR_BIT * sizeof(ValueT)), "Invalid bit range"); - static_assert(bits > 0, "Invalid bit size"); - return ReturnT(ValueT(value >> offset) & ones()); - } - - template - static constexpr ValueT getBits(ValueT value) { - return getBits(value); - } - -#if defined(HELPERS_APPLE_CLANG) || defined(__ANDROID__) || !defined(__cpp_lib_bit_cast) - template - constexpr To bit_cast(const From& from) noexcept { - return *reinterpret_cast(&from); - } -#else - template - constexpr To bit_cast(const From& from) noexcept { - return std::bit_cast(from); - } -#endif - - static std::vector split(const std::string& s, const char c) { - std::istringstream tmp(s); - std::vector result(1); - - while (std::getline(tmp, *result.rbegin(), c)) { - result.emplace_back(); - } - - // Remove temporary slot - result.pop_back(); - return result; - } -}; // namespace Helpers - -// UDLs for memory size values -constexpr size_t operator""_KB(unsigned long long int x) { return 1024ULL * x; } -constexpr size_t operator""_MB(unsigned long long int x) { return 1024_KB * x; } -constexpr size_t operator""_GB(unsigned long long int x) { return 1024_MB * x; } diff --git a/include/http_server.hpp b/include/http_server.hpp deleted file mode 100644 index 628ad057..00000000 --- a/include/http_server.hpp +++ /dev/null @@ -1,81 +0,0 @@ -#ifdef PANDA3DS_ENABLE_HTTP_SERVER -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "helpers.hpp" - -enum class HttpActionType { None, Screenshot, Key, TogglePause, Reset, LoadRom, Step }; - -class Emulator; -namespace httplib { - class Server; - struct Response; -} - -// Wrapper for httplib::Response that allows the HTTP server to wait for the response to be ready -struct DeferredResponseWrapper { - DeferredResponseWrapper(httplib::Response& response) : inner_response(response) {} - - httplib::Response& inner_response; - std::mutex mutex; - std::condition_variable cv; - bool ready = false; -}; - -// Actions derive from this class and are used to communicate with the HTTP server -class HttpAction { - HttpActionType type; - - public: - HttpAction(HttpActionType type) : type(type) {} - virtual ~HttpAction() = default; - - HttpActionType getType() const { return type; } - - static std::unique_ptr createScreenshotAction(DeferredResponseWrapper& response); - static std::unique_ptr createKeyAction(u32 key, bool state); - static std::unique_ptr createLoadRomAction(DeferredResponseWrapper& response, const std::filesystem::path& path, bool paused); - static std::unique_ptr createTogglePauseAction(); - static std::unique_ptr createResetAction(); - static std::unique_ptr createStepAction(DeferredResponseWrapper& response, int frames); -}; - -struct HttpServer { - HttpServer(Emulator* emulator); - ~HttpServer(); - void processActions(); - - private: - static constexpr const char* httpServerScreenshotPath = "screenshot.png"; - - Emulator* emulator; - std::unique_ptr server; - - std::thread httpServerThread; - std::queue> actionQueue; - std::mutex actionQueueMutex; - std::unique_ptr currentStepAction {}; - - std::map keyMap; - bool paused = false; - int framesToRun = 0; - - void startHttpServer(); - void pushAction(std::unique_ptr action); - std::string status(); - u32 stringToKey(const std::string& key_name); - - HttpServer(const HttpServer&) = delete; - HttpServer& operator=(const HttpServer&) = delete; -}; - -#endif // PANDA3DS_ENABLE_HTTP_SERVER \ No newline at end of file diff --git a/include/hydra_icon.hpp b/include/hydra_icon.hpp deleted file mode 100644 index 3ae337c9..00000000 --- a/include/hydra_icon.hpp +++ /dev/null @@ -1,1075 +0,0 @@ -/* -This file was autogenerated by the following Python script and post-processed via clang-format - -from PIL import Image -img = Image.open("her.png") -px = img.load() - -width = img.size[0] -height = img.size[1] - -print("#include \n") -print("constexpr const char* HYDRA_ICON_WIDTH = \"", width, "\";", sep= "") -print("constexpr const char* HYDRA_ICON_HEIGHT = \"", height, "\";", sep = "") - -print("") -print("static constexpr std::uint8_t HYDRA_ICON_DATA[] = {") - -for y in range(0, height): - for x in range(0, width): - pixel = px[x, y] - print(pixel[3], pixel[2], pixel[1], pixel[0], sep = ", ") - print(", ", end = "") - -print("};") -*/ - -#include - -constexpr const char* HYDRA_ICON_WIDTH = "61"; -constexpr const char* HYDRA_ICON_HEIGHT = "64"; - -static constexpr std::uint8_t HYDRA_ICON_DATA[] = { - 255, 8, 4, 2, 255, 8, 4, 2, 255, 8, 4, 2, 255, 8, 4, - 2, 255, 8, 4, 2, 255, 8, 4, 2, 255, 8, 4, 2, 255, 8, - 4, 2, 255, 9, 5, 3, 255, 9, 5, 3, 255, 8, 4, 2, 255, - 7, 3, 2, 255, 8, 4, 2, 255, 6, 2, 2, 255, 7, 3, 3, - 255, 7, 3, 2, 255, 7, 3, 3, 255, 7, 3, 3, 255, 8, 3, - 3, 255, 8, 3, 3, 255, 10, 2, 3, 255, 10, 2, 3, 255, 10, - 2, 3, 255, 10, 2, 3, 255, 10, 4, 8, 255, 13, 7, 10, 255, - 12, 6, 11, 255, 12, 5, 13, 255, 16, 7, 12, 255, 13, 5, 10, - 255, 11, 3, 7, 255, 13, 5, 9, 255, 12, 4, 7, 255, 9, 1, - 5, 255, 11, 3, 6, 255, 10, 2, 5, 255, 12, 3, 4, 255, 10, - 2, 3, 255, 11, 3, 4, 255, 9, 4, 3, 255, 9, 4, 4, 255, - 9, 4, 4, 255, 9, 4, 4, 255, 9, 4, 4, 255, 11, 4, 3, - 255, 11, 4, 3, 255, 13, 4, 3, 255, 14, 4, 4, 255, 15, 5, - 7, 255, 14, 4, 6, 255, 14, 4, 6, 255, 15, 5, 7, 255, 18, - 7, 9, 255, 18, 10, 11, 255, 16, 8, 9, 255, 12, 7, 8, 255, - 14, 5, 9, 255, 12, 4, 7, 255, 13, 5, 9, 255, 10, 5, 6, - 255, 10, 5, 6, 255, 8, 4, 2, 255, 8, 4, 2, 255, 8, 4, - 2, 255, 8, 4, 2, 255, 8, 4, 2, 255, 8, 4, 2, 255, 8, - 4, 2, 255, 8, 4, 2, 255, 6, 2, 1, 255, 6, 2, 1, 255, - 8, 4, 2, 255, 8, 4, 2, 255, 7, 3, 3, 255, 9, 3, 6, - 255, 8, 2, 5, 255, 8, 3, 3, 255, 8, 3, 3, 255, 8, 3, - 3, 255, 9, 4, 4, 255, 9, 4, 4, 255, 10, 4, 7, 255, 10, - 4, 7, 255, 10, 4, 7, 255, 10, 4, 7, 255, 11, 5, 9, 255, - 14, 8, 14, 255, 15, 8, 14, 255, 17, 10, 18, 255, 17, 10, 18, - 255, 15, 7, 15, 255, 15, 7, 15, 255, 17, 9, 17, 255, 16, 10, - 17, 255, 14, 7, 14, 255, 12, 5, 11, 255, 14, 7, 13, 255, 11, - 5, 10, 255, 9, 3, 7, 255, 9, 3, 6, 255, 9, 3, 5, 255, - 7, 4, 4, 255, 7, 4, 4, 255, 7, 4, 4, 255, 8, 4, 4, - 255, 10, 3, 4, 255, 11, 4, 5, 255, 9, 3, 4, 255, 12, 6, - 7, 255, 15, 9, 12, 255, 23, 18, 21, 255, 28, 22, 25, 255, 29, - 24, 27, 255, 37, 30, 34, 255, 33, 27, 30, 255, 28, 22, 25, 255, - 28, 22, 25, 255, 23, 17, 22, 255, 17, 11, 15, 255, 12, 7, 10, - 255, 12, 7, 10, 255, 14, 7, 8, 255, 7, 3, 2, 255, 8, 4, - 2, 255, 10, 6, 4, 255, 9, 5, 3, 255, 10, 6, 4, 255, 10, - 6, 4, 255, 10, 6, 4, 255, 10, 6, 4, 255, 9, 5, 3, 255, - 9, 5, 3, 255, 8, 4, 2, 255, 7, 3, 2, 255, 10, 5, 7, - 255, 11, 5, 9, 255, 12, 7, 10, 255, 11, 6, 8, 255, 11, 8, - 11, 255, 10, 7, 10, 255, 10, 7, 10, 255, 11, 8, 11, 255, 11, - 8, 11, 255, 10, 7, 10, 255, 9, 6, 9, 255, 13, 9, 13, 255, - 11, 7, 12, 255, 9, 4, 12, 255, 15, 9, 18, 255, 19, 13, 23, - 255, 14, 9, 18, 255, 15, 10, 19, 255, 13, 8, 16, 255, 17, 12, - 20, 255, 18, 12, 22, 255, 17, 11, 21, 255, 12, 6, 16, 255, 15, - 9, 19, 255, 13, 8, 16, 255, 12, 8, 14, 255, 10, 6, 12, 255, - 11, 7, 12, 255, 13, 8, 12, 255, 12, 6, 11, 255, 10, 4, 8, - 255, 9, 2, 6, 255, 10, 5, 8, 255, 8, 5, 8, 255, 15, 14, - 16, 255, 35, 34, 37, 255, 43, 43, 46, 255, 46, 47, 49, 255, 45, - 45, 48, 255, 45, 45, 48, 255, 46, 45, 50, 255, 39, 37, 42, 255, - 39, 36, 41, 255, 38, 34, 39, 255, 30, 25, 33, 255, 25, 21, 26, - 255, 17, 13, 19, 255, 13, 9, 12, 255, 14, 7, 8, 255, 13, 9, - 7, 255, 22, 18, 16, 255, 16, 12, 10, 255, 13, 9, 7, 255, 10, - 6, 4, 255, 10, 6, 4, 255, 10, 6, 4, 255, 10, 6, 4, 255, - 10, 6, 4, 255, 10, 5, 4, 255, 9, 4, 3, 255, 9, 5, 4, - 255, 11, 6, 9, 255, 14, 8, 13, 255, 16, 9, 15, 255, 14, 9, - 13, 255, 13, 9, 12, 255, 14, 11, 14, 255, 13, 9, 13, 255, 15, - 12, 16, 255, 12, 10, 15, 255, 9, 8, 12, 255, 9, 8, 13, 255, - 15, 14, 18, 255, 14, 10, 17, 255, 11, 6, 14, 255, 14, 9, 18, - 255, 16, 11, 21, 255, 13, 10, 21, 255, 18, 14, 26, 255, 10, 6, - 18, 255, 17, 13, 25, 255, 17, 12, 25, 255, 19, 14, 28, 255, 15, - 11, 24, 255, 19, 15, 28, 255, 15, 13, 23, 255, 17, 14, 24, 255, - 16, 13, 22, 255, 17, 12, 21, 255, 16, 11, 20, 255, 18, 13, 22, - 255, 16, 11, 20, 255, 16, 12, 19, 255, 22, 20, 25, 255, 38, 38, - 42, 255, 52, 55, 59, 255, 60, 64, 68, 255, 61, 65, 69, 255, 65, - 69, 73, 255, 63, 68, 72, 255, 59, 63, 67, 255, 53, 57, 63, 255, - 51, 52, 59, 255, 45, 45, 52, 255, 38, 36, 43, 255, 33, 31, 38, - 255, 29, 26, 34, 255, 26, 22, 27, 255, 18, 14, 18, 255, 16, 7, - 9, 255, 11, 4, 3, 255, 13, 5, 4, 255, 11, 4, 3, 255, 9, - 5, 4, 255, 11, 3, 5, 255, 11, 3, 5, 255, 12, 5, 6, 255, - 11, 3, 5, 255, 13, 3, 6, 255, 13, 5, 8, 255, 13, 7, 12, - 255, 11, 7, 12, 255, 12, 8, 15, 255, 14, 10, 17, 255, 15, 11, - 18, 255, 14, 11, 18, 255, 12, 10, 15, 255, 14, 12, 17, 255, 15, - 14, 21, 255, 17, 16, 24, 255, 10, 10, 18, 255, 12, 12, 20, 255, - 8, 7, 15, 255, 12, 11, 18, 255, 12, 10, 17, 255, 9, 7, 15, - 255, 13, 12, 20, 255, 16, 16, 26, 255, 17, 16, 30, 255, 19, 17, - 32, 255, 19, 18, 33, 255, 24, 22, 37, 255, 25, 23, 38, 255, 23, - 21, 37, 255, 29, 27, 43, 255, 25, 23, 39, 255, 23, 21, 36, 255, - 22, 18, 34, 255, 21, 18, 32, 255, 23, 20, 33, 255, 23, 19, 32, - 255, 22, 19, 32, 255, 28, 25, 38, 255, 33, 31, 43, 255, 57, 57, - 65, 255, 67, 68, 75, 255, 77, 80, 84, 255, 73, 79, 82, 255, 80, - 86, 89, 255, 80, 85, 89, 255, 74, 82, 85, 255, 65, 73, 77, 255, - 61, 66, 72, 255, 54, 58, 64, 255, 44, 48, 55, 255, 41, 44, 51, - 255, 34, 34, 41, 255, 29, 28, 35, 255, 26, 25, 30, 255, 24, 22, - 25, 255, 17, 10, 14, 255, 10, 2, 4, 255, 13, 3, 4, 255, 10, - 2, 3, 255, 8, 3, 3, 255, 11, 3, 6, 255, 11, 3, 6, 255, - 10, 2, 5, 255, 11, 3, 6, 255, 13, 5, 11, 255, 13, 6, 13, - 255, 13, 8, 16, 255, 11, 8, 17, 255, 13, 12, 21, 255, 13, 12, - 21, 255, 15, 14, 24, 255, 20, 19, 28, 255, 16, 16, 24, 255, 20, - 19, 29, 255, 15, 16, 27, 255, 15, 16, 27, 255, 20, 21, 32, 255, - 17, 18, 29, 255, 14, 15, 26, 255, 12, 12, 23, 255, 14, 12, 23, - 255, 15, 13, 24, 255, 15, 15, 27, 255, 21, 23, 36, 255, 24, 24, - 42, 255, 28, 28, 46, 255, 26, 27, 45, 255, 31, 32, 50, 255, 34, - 37, 52, 255, 32, 35, 50, 255, 33, 36, 52, 255, 30, 32, 48, 255, - 31, 31, 50, 255, 30, 29, 47, 255, 28, 27, 45, 255, 26, 26, 42, - 255, 26, 26, 42, 255, 31, 30, 46, 255, 31, 30, 46, 255, 52, 53, - 68, 255, 71, 74, 83, 255, 79, 82, 90, 255, 86, 91, 97, 255, 85, - 90, 96, 255, 85, 90, 94, 255, 78, 83, 87, 255, 67, 74, 78, 255, - 67, 73, 77, 255, 63, 67, 75, 255, 53, 56, 65, 255, 49, 53, 62, - 255, 46, 48, 57, 255, 39, 39, 46, 255, 31, 31, 38, 255, 30, 29, - 33, 255, 24, 22, 25, 255, 17, 10, 14, 255, 13, 7, 8, 255, 11, - 3, 4, 255, 11, 4, 5, 255, 8, 4, 5, 255, 12, 6, 9, 255, - 11, 5, 9, 255, 12, 6, 9, 255, 10, 5, 9, 255, 10, 6, 13, - 255, 12, 9, 19, 255, 12, 10, 21, 255, 13, 13, 24, 255, 16, 17, - 28, 255, 19, 19, 31, 255, 21, 22, 33, 255, 27, 27, 39, 255, 26, - 26, 38, 255, 20, 21, 34, 255, 28, 29, 43, 255, 19, 21, 36, 255, - 29, 31, 45, 255, 27, 29, 43, 255, 30, 31, 46, 255, 23, 24, 38, - 255, 27, 27, 40, 255, 26, 27, 41, 255, 35, 37, 52, 255, 34, 38, - 54, 255, 33, 38, 55, 255, 33, 37, 55, 255, 32, 37, 54, 255, 31, - 37, 54, 255, 36, 42, 60, 255, 40, 47, 64, 255, 36, 43, 60, 255, - 36, 43, 60, 255, 36, 41, 59, 255, 35, 39, 57, 255, 33, 37, 55, - 255, 30, 34, 52, 255, 31, 34, 52, 255, 35, 37, 55, 255, 36, 38, - 55, 255, 49, 52, 69, 255, 66, 74, 80, 255, 83, 90, 96, 255, 82, - 87, 93, 255, 77, 81, 85, 255, 69, 70, 76, 255, 51, 51, 58, 255, - 52, 55, 61, 255, 58, 61, 67, 255, 64, 66, 72, 255, 63, 66, 72, - 255, 57, 60, 66, 255, 48, 50, 56, 255, 45, 45, 52, 255, 36, 36, - 43, 255, 30, 29, 34, 255, 21, 18, 21, 255, 14, 7, 10, 255, 28, - 23, 26, 255, 22, 13, 17, 255, 14, 8, 12, 255, 11, 7, 12, 255, - 13, 9, 15, 255, 14, 10, 15, 255, 13, 9, 15, 255, 14, 10, 17, - 255, 10, 8, 19, 255, 10, 10, 23, 255, 14, 16, 29, 255, 18, 20, - 35, 255, 23, 26, 40, 255, 20, 23, 37, 255, 21, 24, 39, 255, 31, - 35, 49, 255, 28, 31, 47, 255, 27, 30, 46, 255, 23, 27, 44, 255, - 24, 29, 46, 255, 29, 34, 51, 255, 32, 36, 54, 255, 34, 38, 56, - 255, 31, 35, 52, 255, 39, 43, 58, 255, 35, 38, 55, 255, 40, 45, - 63, 255, 36, 43, 62, 255, 35, 44, 62, 255, 28, 36, 55, 255, 29, - 38, 57, 255, 33, 42, 60, 255, 41, 50, 69, 255, 43, 52, 71, 255, - 37, 47, 66, 255, 44, 53, 72, 255, 41, 49, 69, 255, 41, 48, 68, - 255, 40, 47, 66, 255, 31, 39, 58, 255, 37, 44, 63, 255, 31, 38, - 57, 255, 36, 42, 61, 255, 41, 48, 65, 255, 51, 61, 68, 255, 67, - 76, 82, 255, 63, 69, 74, 255, 58, 61, 65, 255, 53, 54, 58, 255, - 45, 46, 51, 255, 57, 57, 62, 255, 61, 65, 69, 255, 67, 69, 76, - 255, 66, 68, 74, 255, 60, 62, 69, 255, 57, 59, 65, 255, 54, 54, - 60, 255, 37, 37, 44, 255, 29, 27, 32, 255, 19, 17, 20, 255, 11, - 4, 7, 255, 40, 34, 39, 255, 34, 27, 33, 255, 29, 24, 31, 255, - 19, 14, 22, 255, 18, 13, 21, 255, 20, 16, 24, 255, 16, 13, 22, - 255, 18, 15, 26, 255, 15, 13, 26, 255, 15, 15, 28, 255, 23, 25, - 38, 255, 25, 30, 44, 255, 29, 32, 50, 255, 28, 30, 50, 255, 23, - 28, 47, 255, 30, 36, 54, 255, 34, 41, 59, 255, 39, 45, 64, 255, - 25, 32, 51, 255, 28, 37, 56, 255, 25, 33, 53, 255, 38, 47, 66, - 255, 37, 46, 65, 255, 36, 45, 62, 255, 37, 45, 63, 255, 37, 45, - 64, 255, 39, 48, 68, 255, 37, 49, 70, 255, 30, 41, 62, 255, 28, - 39, 60, 255, 29, 41, 62, 255, 38, 50, 71, 255, 39, 51, 72, 255, - 41, 53, 74, 255, 40, 51, 71, 255, 41, 53, 72, 255, 44, 55, 77, - 255, 44, 54, 76, 255, 45, 55, 76, 255, 42, 52, 73, 255, 40, 49, - 70, 255, 40, 49, 70, 255, 34, 43, 64, 255, 39, 48, 67, 255, 43, - 55, 65, 255, 53, 63, 72, 255, 59, 65, 74, 255, 46, 49, 57, 255, - 42, 42, 49, 255, 46, 46, 52, 255, 49, 53, 57, 255, 56, 59, 63, - 255, 67, 66, 73, 255, 69, 72, 78, 255, 67, 69, 76, 255, 59, 61, - 68, 255, 47, 50, 54, 255, 39, 39, 44, 255, 35, 32, 37, 255, 23, - 19, 22, 255, 16, 9, 13, 255, 36, 32, 37, 255, 38, 34, 39, 255, - 34, 31, 39, 255, 27, 23, 33, 255, 19, 16, 25, 255, 20, 17, 29, - 255, 19, 17, 30, 255, 22, 21, 35, 255, 23, 22, 38, 255, 21, 21, - 37, 255, 24, 28, 43, 255, 30, 35, 51, 255, 28, 33, 52, 255, 31, - 36, 56, 255, 43, 50, 69, 255, 37, 45, 64, 255, 36, 47, 66, 255, - 40, 51, 69, 255, 32, 45, 64, 255, 35, 48, 66, 255, 32, 45, 63, - 255, 40, 53, 71, 255, 37, 50, 68, 255, 42, 55, 73, 255, 47, 60, - 79, 255, 41, 54, 74, 255, 40, 54, 76, 255, 36, 52, 75, 255, 37, - 51, 74, 255, 33, 47, 71, 255, 39, 52, 76, 255, 45, 60, 83, 255, - 48, 64, 86, 255, 42, 57, 79, 255, 47, 60, 81, 255, 43, 57, 78, - 255, 48, 58, 82, 255, 47, 58, 81, 255, 55, 66, 88, 255, 54, 65, - 86, 255, 48, 59, 80, 255, 51, 62, 83, 255, 42, 53, 74, 255, 49, - 61, 81, 255, 46, 56, 73, 255, 45, 54, 68, 255, 50, 56, 70, 255, - 50, 52, 64, 255, 51, 52, 60, 255, 45, 48, 54, 255, 45, 48, 53, - 255, 51, 54, 58, 255, 59, 62, 68, 255, 67, 70, 76, 255, 68, 70, - 77, 255, 58, 62, 68, 255, 50, 54, 58, 255, 39, 42, 46, 255, 37, - 35, 40, 255, 31, 27, 30, 255, 17, 10, 14, 255, 38, 37, 39, 255, - 34, 32, 37, 255, 31, 30, 38, 255, 27, 26, 36, 255, 20, 18, 29, - 255, 21, 19, 31, 255, 25, 23, 36, 255, 26, 24, 39, 255, 28, 29, - 45, 255, 30, 33, 48, 255, 26, 32, 47, 255, 28, 36, 52, 255, 33, - 40, 59, 255, 27, 34, 53, 255, 34, 44, 63, 255, 36, 46, 65, 255, - 47, 59, 78, 255, 42, 54, 72, 255, 45, 59, 77, 255, 45, 59, 77, - 255, 50, 62, 80, 255, 45, 57, 75, 255, 42, 54, 72, 255, 43, 55, - 74, 255, 51, 64, 85, 255, 47, 60, 83, 255, 44, 59, 82, 255, 46, - 62, 87, 255, 41, 57, 84, 255, 39, 55, 82, 255, 46, 62, 89, 255, - 44, 60, 87, 255, 55, 72, 97, 255, 40, 57, 82, 255, 58, 73, 96, - 255, 62, 77, 100, 255, 55, 67, 93, 255, 49, 61, 87, 255, 59, 72, - 95, 255, 56, 69, 91, 255, 60, 71, 91, 255, 54, 66, 84, 255, 50, - 62, 81, 255, 51, 63, 82, 255, 51, 62, 81, 255, 46, 56, 73, 255, - 44, 52, 67, 255, 50, 55, 67, 255, 57, 60, 69, 255, 51, 53, 62, - 255, 51, 53, 60, 255, 52, 54, 61, 255, 55, 58, 62, 255, 64, 67, - 71, 255, 65, 71, 74, 255, 57, 63, 66, 255, 52, 56, 60, 255, 45, - 47, 52, 255, 41, 39, 44, 255, 33, 31, 34, 255, 16, 9, 13, 255, - 36, 38, 39, 255, 37, 38, 43, 255, 33, 33, 41, 255, 26, 26, 38, - 255, 25, 25, 38, 255, 25, 25, 39, 255, 25, 26, 41, 255, 23, 24, - 41, 255, 27, 29, 47, 255, 31, 36, 53, 255, 29, 36, 54, 255, 32, - 40, 57, 255, 32, 41, 60, 255, 33, 43, 62, 255, 43, 52, 71, 255, - 40, 52, 70, 255, 43, 57, 75, 255, 38, 52, 71, 255, 45, 60, 78, - 255, 44, 59, 77, 255, 45, 60, 77, 255, 42, 57, 75, 255, 45, 60, - 78, 255, 43, 57, 78, 255, 42, 57, 80, 255, 55, 69, 94, 255, 51, - 67, 92, 255, 42, 59, 86, 255, 48, 66, 93, 255, 46, 65, 91, 255, - 48, 67, 93, 255, 47, 65, 92, 255, 56, 74, 101, 255, 60, 78, 105, - 255, 53, 70, 95, 255, 63, 78, 103, 255, 61, 73, 98, 255, 60, 72, - 97, 255, 59, 71, 96, 255, 59, 72, 95, 255, 61, 76, 94, 255, 55, - 70, 88, 255, 52, 66, 84, 255, 50, 64, 82, 255, 55, 68, 89, 255, - 55, 66, 85, 255, 48, 57, 73, 255, 45, 52, 64, 255, 53, 57, 67, - 255, 49, 53, 61, 255, 47, 48, 57, 255, 50, 53, 59, 255, 56, 59, - 63, 255, 64, 70, 74, 255, 67, 73, 76, 255, 64, 70, 74, 255, 55, - 61, 64, 255, 44, 48, 52, 255, 41, 41, 46, 255, 29, 27, 30, 255, - 13, 6, 10, 255, 38, 42, 43, 255, 38, 40, 45, 255, 29, 32, 41, - 255, 26, 30, 41, 255, 29, 30, 45, 255, 32, 34, 49, 255, 34, 32, - 51, 255, 30, 29, 47, 255, 26, 28, 48, 255, 31, 35, 55, 255, 38, - 45, 64, 255, 39, 46, 65, 255, 30, 40, 59, 255, 40, 52, 71, 255, - 47, 59, 77, 255, 44, 56, 75, 255, 44, 58, 78, 255, 41, 56, 77, - 255, 46, 58, 79, 255, 50, 61, 82, 255, 49, 61, 80, 255, 43, 55, - 73, 255, 41, 56, 74, 255, 52, 66, 85, 255, 46, 62, 86, 255, 51, - 68, 93, 255, 53, 71, 96, 255, 43, 62, 90, 255, 53, 73, 102, 255, - 50, 70, 99, 255, 49, 69, 98, 255, 53, 73, 102, 255, 61, 81, 109, - 255, 62, 81, 110, 255, 54, 73, 99, 255, 65, 82, 109, 255, 60, 73, - 101, 255, 72, 86, 113, 255, 61, 75, 100, 255, 52, 68, 89, 255, 55, - 68, 87, 255, 62, 76, 94, 255, 68, 82, 100, 255, 60, 75, 91, 255, - 66, 80, 100, 255, 61, 73, 91, 255, 52, 61, 78, 255, 55, 64, 78, - 255, 50, 57, 68, 255, 43, 48, 56, 255, 48, 50, 57, 255, 51, 54, - 59, 255, 56, 59, 63, 255, 64, 67, 71, 255, 65, 71, 74, 255, 60, - 66, 70, 255, 56, 59, 63, 255, 52, 55, 59, 255, 39, 40, 44, 255, - 23, 21, 23, 255, 15, 6, 10, 255, 39, 42, 45, 255, 40, 43, 48, - 255, 34, 38, 47, 255, 29, 31, 44, 255, 30, 32, 48, 255, 33, 35, - 50, 255, 41, 42, 60, 255, 37, 40, 58, 255, 30, 34, 54, 255, 28, - 33, 52, 255, 36, 43, 62, 255, 42, 52, 71, 255, 39, 50, 69, 255, - 42, 54, 73, 255, 48, 60, 79, 255, 54, 68, 87, 255, 42, 58, 76, - 255, 53, 70, 89, 255, 49, 64, 83, 255, 46, 61, 80, 255, 54, 67, - 88, 255, 34, 48, 68, 255, 42, 57, 77, 255, 56, 72, 93, 255, 52, - 70, 95, 255, 52, 70, 98, 255, 57, 76, 105, 255, 40, 61, 90, 255, - 59, 79, 108, 255, 52, 72, 101, 255, 61, 81, 109, 255, 59, 79, 107, - 255, 64, 84, 112, 255, 55, 75, 104, 255, 63, 81, 108, 255, 73, 91, - 118, 255, 64, 78, 106, 255, 66, 80, 107, 255, 67, 82, 107, 255, 64, - 79, 102, 255, 63, 79, 100, 255, 60, 76, 95, 255, 68, 85, 103, 255, - 69, 86, 103, 255, 72, 86, 106, 255, 68, 80, 99, 255, 62, 73, 89, - 255, 60, 68, 83, 255, 50, 58, 69, 255, 46, 51, 60, 255, 42, 45, - 52, 255, 47, 52, 56, 255, 58, 62, 66, 255, 63, 66, 70, 255, 64, - 70, 73, 255, 62, 68, 71, 255, 57, 63, 66, 255, 48, 51, 55, 255, - 33, 33, 37, 255, 16, 14, 17, 255, 12, 6, 9, 255, 29, 32, 36, - 255, 31, 33, 40, 255, 32, 36, 46, 255, 34, 36, 50, 255, 34, 36, - 51, 255, 35, 39, 55, 255, 33, 38, 56, 255, 31, 39, 56, 255, 36, - 43, 62, 255, 33, 40, 60, 255, 39, 48, 67, 255, 46, 58, 77, 255, - 42, 54, 72, 255, 50, 62, 80, 255, 57, 72, 90, 255, 64, 78, 97, - 255, 62, 77, 99, 255, 53, 70, 92, 255, 53, 67, 90, 255, 51, 64, - 86, 255, 56, 69, 90, 255, 59, 73, 93, 255, 47, 63, 83, 255, 53, - 68, 89, 255, 55, 72, 97, 255, 56, 71, 101, 255, 72, 90, 119, 255, - 57, 77, 105, 255, 54, 77, 103, 255, 58, 81, 107, 255, 69, 92, 118, - 255, 70, 93, 119, 255, 60, 82, 110, 255, 70, 92, 120, 255, 67, 88, - 114, 255, 73, 92, 118, 255, 71, 87, 114, 255, 68, 85, 110, 255, 70, - 87, 111, 255, 68, 84, 109, 255, 64, 78, 101, 255, 64, 78, 98, 255, - 65, 78, 99, 255, 71, 86, 104, 255, 75, 88, 109, 255, 81, 93, 112, - 255, 77, 87, 104, 255, 75, 84, 99, 255, 61, 70, 83, 255, 43, 50, - 60, 255, 32, 37, 45, 255, 42, 47, 53, 255, 55, 59, 63, 255, 65, - 68, 72, 255, 68, 74, 77, 255, 68, 74, 77, 255, 58, 65, 69, 255, - 49, 53, 57, 255, 34, 33, 38, 255, 20, 17, 20, 255, 11, 5, 6, - 255, 26, 29, 34, 255, 30, 32, 39, 255, 35, 38, 49, 255, 31, 34, - 47, 255, 30, 34, 49, 255, 42, 48, 63, 255, 34, 41, 58, 255, 36, - 45, 62, 255, 43, 50, 70, 255, 36, 45, 64, 255, 43, 55, 73, 255, - 50, 64, 83, 255, 56, 68, 86, 255, 53, 67, 85, 255, 62, 77, 95, - 255, 70, 87, 106, 255, 60, 77, 99, 255, 58, 76, 98, 255, 58, 74, - 96, 255, 40, 56, 78, 255, 52, 67, 89, 255, 56, 71, 94, 255, 56, - 73, 96, 255, 50, 67, 91, 255, 64, 81, 107, 255, 53, 70, 103, 255, - 70, 88, 120, 255, 65, 85, 114, 255, 64, 86, 113, 255, 67, 90, 117, - 255, 75, 98, 125, 255, 65, 88, 115, 255, 73, 95, 123, 255, 68, 90, - 118, 255, 60, 81, 108, 255, 76, 96, 123, 255, 72, 88, 115, 255, 62, - 79, 103, 255, 74, 91, 115, 255, 72, 89, 114, 255, 80, 95, 118, 255, - 61, 76, 99, 255, 78, 94, 114, 255, 71, 86, 106, 255, 75, 88, 109, - 255, 83, 95, 114, 255, 81, 91, 108, 255, 77, 85, 100, 255, 57, 68, - 80, 255, 42, 50, 60, 255, 30, 36, 44, 255, 39, 45, 52, 255, 51, - 55, 59, 255, 58, 61, 65, 255, 60, 66, 69, 255, 63, 69, 73, 255, - 60, 68, 71, 255, 57, 62, 66, 255, 46, 46, 51, 255, 28, 25, 28, - 255, 13, 8, 9, 255, 36, 37, 47, 255, 32, 36, 46, 255, 31, 35, - 48, 255, 39, 46, 58, 255, 57, 63, 78, 255, 50, 56, 71, 255, 48, - 53, 71, 255, 40, 48, 65, 255, 47, 54, 73, 255, 56, 65, 84, 255, - 51, 63, 82, 255, 54, 68, 86, 255, 62, 74, 93, 255, 60, 74, 94, - 255, 61, 75, 95, 255, 56, 72, 94, 255, 62, 77, 101, 255, 58, 75, - 100, 255, 56, 73, 97, 255, 48, 66, 90, 255, 48, 66, 91, 255, 54, - 70, 96, 255, 54, 68, 94, 255, 56, 69, 96, 255, 54, 67, 95, 255, - 64, 80, 109, 255, 69, 88, 118, 255, 79, 97, 128, 255, 68, 86, 118, - 255, 69, 90, 121, 255, 74, 96, 127, 255, 76, 98, 129, 255, 79, 101, - 132, 255, 73, 94, 125, 255, 63, 85, 115, 255, 76, 96, 125, 255, 70, - 90, 117, 255, 72, 90, 116, 255, 73, 91, 118, 255, 90, 106, 131, 255, - 84, 100, 122, 255, 83, 97, 118, 255, 83, 96, 116, 255, 85, 98, 115, - 255, 78, 90, 108, 255, 84, 96, 113, 255, 83, 94, 110, 255, 84, 92, - 107, 255, 69, 79, 91, 255, 53, 60, 72, 255, 41, 47, 57, 255, 36, - 40, 48, 255, 39, 41, 49, 255, 31, 33, 40, 255, 38, 40, 46, 255, - 49, 53, 58, 255, 52, 59, 61, 255, 52, 57, 58, 255, 48, 49, 51, - 255, 31, 28, 29, 255, 16, 10, 11, 255, 29, 30, 41, 255, 32, 36, - 46, 255, 25, 29, 42, 255, 49, 56, 69, 255, 41, 47, 62, 255, 43, - 51, 66, 255, 45, 53, 70, 255, 52, 60, 77, 255, 51, 60, 79, 255, - 54, 66, 84, 255, 59, 71, 89, 255, 62, 76, 94, 255, 71, 82, 101, - 255, 71, 85, 105, 255, 65, 78, 99, 255, 53, 68, 91, 255, 59, 73, - 100, 255, 61, 77, 104, 255, 59, 75, 102, 255, 52, 71, 97, 255, 53, - 69, 98, 255, 56, 71, 101, 255, 60, 74, 103, 255, 67, 80, 107, 255, - 73, 85, 110, 255, 75, 91, 115, 255, 77, 92, 119, 255, 81, 96, 128, - 255, 75, 92, 124, 255, 70, 92, 122, 255, 72, 91, 124, 255, 78, 97, - 131, 255, 72, 93, 125, 255, 76, 98, 128, 255, 63, 84, 115, 255, 81, - 103, 134, 255, 72, 95, 123, 255, 67, 87, 114, 255, 75, 93, 119, 255, - 96, 112, 133, 255, 113, 125, 144, 255, 102, 114, 130, 255, 108, 119, 132, - 255, 93, 102, 116, 255, 84, 95, 115, 255, 91, 103, 122, 255, 96, 109, - 125, 255, 103, 114, 128, 255, 84, 93, 107, 255, 67, 75, 87, 255, 53, - 58, 70, 255, 42, 45, 56, 255, 31, 33, 42, 255, 25, 27, 36, 255, - 27, 30, 36, 255, 35, 38, 42, 255, 40, 45, 49, 255, 45, 48, 52, - 255, 36, 35, 40, 255, 20, 17, 20, 255, 13, 8, 8, 255, 27, 27, - 39, 255, 39, 43, 53, 255, 73, 77, 90, 255, 48, 55, 67, 255, 55, - 62, 77, 255, 53, 62, 76, 255, 41, 49, 66, 255, 43, 53, 70, 255, - 61, 71, 90, 255, 53, 65, 83, 255, 53, 65, 83, 255, 62, 74, 93, - 255, 72, 84, 102, 255, 65, 79, 99, 255, 66, 80, 100, 255, 63, 78, - 101, 255, 56, 69, 96, 255, 66, 82, 109, 255, 69, 85, 112, 255, 68, - 87, 113, 255, 70, 88, 116, 255, 66, 85, 111, 255, 75, 92, 117, 255, - 80, 97, 119, 255, 97, 113, 133, 255, 100, 113, 130, 255, 99, 112, 131, - 255, 97, 112, 136, 255, 88, 103, 133, 255, 81, 101, 132, 255, 67, 88, - 121, 255, 81, 102, 135, 255, 75, 97, 130, 255, 75, 98, 131, 255, 78, - 98, 131, 255, 76, 97, 130, 255, 77, 99, 129, 255, 80, 100, 130, 255, - 74, 91, 119, 255, 114, 125, 144, 255, 138, 144, 159, 255, 146, 152, 161, - 255, 121, 125, 133, 255, 106, 112, 121, 255, 106, 114, 132, 255, 109, 118, - 136, 255, 102, 113, 129, 255, 104, 115, 130, 255, 105, 115, 127, 255, 91, - 99, 111, 255, 79, 85, 98, 255, 49, 52, 66, 255, 30, 30, 42, 255, - 29, 30, 39, 255, 28, 30, 37, 255, 34, 36, 43, 255, 36, 42, 46, - 255, 35, 38, 42, 255, 24, 23, 28, 255, 17, 14, 17, 255, 23, 17, - 18, 255, 46, 46, 58, 255, 69, 72, 84, 255, 45, 50, 63, 255, 50, - 58, 70, 255, 47, 56, 71, 255, 50, 58, 73, 255, 53, 64, 80, 255, - 40, 50, 67, 255, 58, 70, 89, 255, 68, 80, 99, 255, 68, 79, 98, - 255, 66, 78, 97, 255, 69, 81, 100, 255, 79, 93, 113, 255, 76, 89, - 110, 255, 75, 90, 112, 255, 71, 86, 110, 255, 73, 89, 112, 255, 70, - 86, 110, 255, 80, 98, 122, 255, 77, 94, 117, 255, 84, 101, 122, 255, - 98, 114, 134, 255, 102, 117, 134, 255, 116, 127, 142, 255, 131, 141, 153, - 255, 131, 141, 152, 255, 118, 129, 142, 255, 120, 135, 156, 255, 99, 117, - 145, 255, 79, 100, 133, 255, 87, 110, 145, 255, 86, 113, 144, 255, 89, - 114, 147, 255, 88, 109, 144, 255, 88, 107, 142, 255, 78, 97, 129, 255, - 79, 98, 131, 255, 78, 95, 127, 255, 117, 128, 149, 255, 152, 156, 168, - 255, 164, 163, 168, 255, 156, 154, 156, 255, 140, 143, 147, 255, 141, 148, - 157, 255, 145, 153, 164, 255, 123, 132, 143, 255, 118, 129, 141, 255, 114, - 127, 137, 255, 100, 112, 121, 255, 96, 104, 114, 255, 55, 62, 72, 255, - 30, 32, 41, 255, 30, 31, 40, 255, 30, 32, 40, 255, 33, 35, 44, - 255, 30, 35, 42, 255, 29, 32, 38, 255, 28, 27, 34, 255, 24, 20, - 25, 255, 18, 13, 15, 255, 72, 73, 84, 255, 33, 35, 48, 255, 46, - 50, 65, 255, 45, 52, 65, 255, 60, 69, 84, 255, 71, 79, 94, 255, - 68, 78, 94, 255, 55, 65, 82, 255, 53, 64, 85, 255, 71, 82, 103, - 255, 85, 96, 117, 255, 90, 101, 122, 255, 93, 104, 125, 255, 77, 90, - 111, 255, 88, 99, 118, 255, 92, 106, 125, 255, 99, 111, 131, 255, 93, - 107, 126, 255, 92, 106, 127, 255, 84, 99, 122, 255, 98, 114, 134, 255, - 107, 122, 140, 255, 130, 144, 160, 255, 135, 148, 162, 255, 138, 147, 159, - 255, 153, 160, 168, 255, 182, 187, 194, 255, 172, 179, 187, 255, 167, 176, - 188, 255, 151, 164, 182, 255, 126, 145, 171, 255, 112, 136, 169, 255, 90, - 120, 155, 255, 91, 123, 157, 255, 105, 129, 164, 255, 83, 106, 141, 255, - 92, 115, 150, 255, 78, 100, 135, 255, 81, 99, 133, 255, 130, 140, 160, - 255, 171, 172, 180, 255, 195, 190, 189, 255, 167, 162, 159, 255, 173, 174, - 172, 255, 172, 175, 179, 255, 155, 160, 167, 255, 140, 148, 156, 255, 133, - 143, 153, 255, 116, 126, 136, 255, 115, 127, 136, 255, 99, 108, 118, 255, - 72, 79, 87, 255, 51, 54, 65, 255, 43, 46, 57, 255, 32, 32, 44, - 255, 28, 32, 42, 255, 27, 33, 41, 255, 27, 30, 38, 255, 21, 19, - 26, 255, 12, 8, 13, 255, 13, 6, 10, 255, 41, 42, 51, 255, 47, - 50, 62, 255, 77, 82, 95, 255, 65, 72, 83, 255, 52, 61, 75, 255, - 55, 64, 78, 255, 60, 71, 87, 255, 78, 88, 105, 255, 80, 91, 112, - 255, 77, 88, 109, 255, 90, 101, 122, 255, 86, 97, 118, 255, 90, 101, - 122, 255, 79, 93, 113, 255, 93, 105, 123, 255, 93, 107, 125, 255, 102, - 116, 135, 255, 105, 119, 137, 255, 102, 116, 135, 255, 109, 123, 143, 255, - 111, 125, 143, 255, 132, 144, 160, 255, 140, 152, 166, 255, 158, 170, 182, - 255, 158, 168, 176, 255, 178, 184, 187, 255, 182, 189, 189, 255, 190, 198, - 200, 255, 193, 201, 206, 255, 183, 192, 203, 255, 157, 171, 191, 255, 114, - 137, 167, 255, 94, 127, 165, 255, 95, 128, 166, 255, 102, 127, 164, 255, - 90, 115, 151, 255, 100, 122, 159, 255, 83, 106, 143, 255, 96, 116, 149, - 255, 137, 149, 166, 255, 184, 183, 189, 255, 189, 182, 178, 255, 180, 171, - 166, 255, 193, 188, 185, 255, 179, 179, 182, 255, 167, 170, 175, 255, 151, - 157, 164, 255, 135, 144, 151, 255, 122, 131, 138, 255, 117, 128, 136, 255, - 111, 120, 130, 255, 88, 94, 104, 255, 55, 58, 69, 255, 44, 48, 59, - 255, 40, 41, 52, 255, 28, 31, 42, 255, 21, 27, 35, 255, 23, 25, - 34, 255, 23, 22, 28, 255, 19, 15, 20, 255, 17, 10, 14, 255, 72, - 75, 82, 255, 84, 87, 96, 255, 50, 56, 66, 255, 53, 61, 70, 255, - 53, 63, 75, 255, 70, 79, 92, 255, 68, 79, 93, 255, 77, 87, 103, - 255, 70, 81, 101, 255, 74, 85, 106, 255, 80, 91, 112, 255, 82, 93, - 114, 255, 86, 97, 116, 255, 94, 109, 127, 255, 84, 96, 115, 255, 94, - 110, 125, 255, 119, 132, 148, 255, 127, 140, 156, 255, 127, 140, 156, 255, - 129, 142, 157, 255, 134, 145, 160, 255, 138, 148, 161, 255, 145, 155, 165, - 255, 164, 173, 181, 255, 172, 179, 186, 255, 174, 179, 182, 255, 178, 183, - 183, 255, 182, 188, 190, 255, 194, 200, 202, 255, 195, 201, 206, 255, 181, - 193, 205, 255, 131, 153, 177, 255, 83, 114, 151, 255, 85, 116, 159, 255, - 100, 124, 164, 255, 94, 120, 156, 255, 104, 125, 165, 255, 95, 119, 158, - 255, 95, 118, 151, 255, 128, 144, 163, 255, 179, 183, 188, 255, 180, 175, - 173, 255, 194, 185, 181, 255, 193, 187, 186, 255, 180, 177, 179, 255, 163, - 162, 166, 255, 154, 157, 163, 255, 139, 144, 150, 255, 140, 146, 154, 255, - 129, 137, 145, 255, 122, 130, 140, 255, 100, 104, 117, 255, 71, 74, 85, - 255, 51, 55, 66, 255, 39, 39, 51, 255, 28, 31, 42, 255, 21, 27, - 35, 255, 21, 24, 32, 255, 23, 22, 29, 255, 17, 13, 18, 255, 13, - 8, 11, 255, 76, 79, 84, 255, 72, 77, 84, 255, 73, 80, 88, 255, - 66, 75, 82, 255, 51, 61, 71, 255, 54, 64, 74, 255, 63, 74, 86, - 255, 66, 78, 91, 255, 75, 86, 106, 255, 81, 92, 113, 255, 78, 89, - 110, 255, 87, 99, 120, 255, 93, 105, 124, 255, 101, 116, 134, 255, 114, - 127, 143, 255, 108, 123, 139, 255, 109, 123, 139, 255, 130, 142, 158, 255, - 139, 150, 165, 255, 138, 148, 162, 255, 137, 146, 158, 255, 154, 161, 172, - 255, 161, 169, 178, 255, 164, 171, 179, 255, 182, 188, 195, 255, 191, 194, - 198, 255, 200, 202, 204, 255, 194, 199, 201, 255, 190, 194, 196, 255, 198, - 206, 206, 255, 188, 201, 208, 255, 138, 161, 178, 255, 87, 115, 147, 255, - 94, 123, 163, 255, 102, 126, 166, 255, 112, 137, 176, 255, 113, 137, 173, - 255, 107, 133, 168, 255, 100, 125, 160, 255, 113, 133, 155, 255, 157, 165, - 176, 255, 187, 186, 188, 255, 204, 198, 197, 255, 202, 196, 198, 255, 182, - 177, 179, 255, 170, 167, 170, 255, 156, 157, 161, 255, 150, 152, 159, 255, - 144, 149, 155, 255, 145, 151, 158, 255, 128, 135, 144, 255, 107, 112, 124, - 255, 91, 94, 105, 255, 59, 63, 74, 255, 47, 47, 59, 255, 35, 38, - 49, 255, 22, 28, 37, 255, 20, 23, 31, 255, 23, 22, 28, 255, 17, - 13, 18, 255, 12, 7, 10, 255, 82, 87, 93, 255, 69, 75, 84, 255, - 53, 61, 71, 255, 51, 58, 66, 255, 63, 71, 81, 255, 77, 84, 97, - 255, 79, 89, 101, 255, 89, 98, 113, 255, 84, 94, 113, 255, 84, 93, - 112, 255, 84, 94, 113, 255, 81, 91, 110, 255, 92, 104, 123, 255, 96, - 111, 127, 255, 110, 125, 139, 255, 119, 133, 145, 255, 111, 121, 135, 255, - 130, 141, 154, 255, 144, 153, 164, 255, 157, 165, 175, 255, 155, 164, 172, - 255, 148, 154, 162, 255, 159, 166, 172, 255, 169, 176, 181, 255, 182, 187, - 193, 255, 189, 193, 197, 255, 207, 209, 212, 255, 211, 213, 214, 255, 203, - 203, 204, 255, 203, 206, 209, 255, 194, 206, 214, 255, 142, 163, 181, 255, - 101, 127, 158, 255, 99, 127, 164, 255, 102, 126, 163, 255, 126, 147, 182, - 255, 131, 153, 185, 255, 125, 151, 182, 255, 96, 123, 154, 255, 95, 116, - 145, 255, 137, 148, 165, 255, 171, 171, 177, 255, 190, 185, 186, 255, 179, - 173, 175, 255, 162, 157, 162, 255, 169, 167, 172, 255, 172, 170, 175, 255, - 168, 169, 173, 255, 162, 165, 169, 255, 140, 145, 149, 255, 122, 127, 132, - 255, 126, 131, 136, 255, 111, 113, 122, 255, 81, 80, 92, 255, 49, 49, - 62, 255, 30, 32, 47, 255, 24, 27, 39, 255, 23, 25, 32, 255, 20, - 21, 24, 255, 17, 15, 18, 255, 17, 10, 12, 255, 57, 62, 68, 255, - 58, 64, 72, 255, 61, 69, 79, 255, 68, 74, 82, 255, 63, 71, 81, - 255, 69, 77, 89, 255, 71, 80, 92, 255, 75, 84, 98, 255, 90, 100, - 116, 255, 95, 105, 122, 255, 106, 117, 133, 255, 109, 119, 136, 255, 98, - 109, 125, 255, 99, 111, 125, 255, 122, 134, 148, 255, 137, 149, 161, 255, - 143, 152, 165, 255, 138, 147, 159, 255, 162, 169, 179, 255, 163, 171, 178, - 255, 165, 173, 181, 255, 169, 176, 181, 255, 168, 175, 181, 255, 162, 171, - 177, 255, 169, 180, 185, 255, 169, 176, 182, 255, 182, 187, 192, 255, 189, - 192, 197, 255, 204, 204, 208, 255, 202, 205, 208, 255, 197, 208, 218, 255, - 144, 161, 184, 255, 85, 110, 142, 255, 98, 126, 161, 255, 122, 146, 178, - 255, 146, 165, 195, 255, 153, 172, 197, 255, 137, 160, 186, 255, 110, 133, - 162, 255, 93, 114, 144, 255, 111, 123, 145, 255, 163, 166, 179, 255, 169, - 166, 172, 255, 156, 154, 157, 255, 164, 162, 166, 255, 166, 164, 169, 255, - 179, 178, 183, 255, 170, 168, 173, 255, 163, 165, 169, 255, 140, 145, 149, - 255, 134, 140, 143, 255, 132, 135, 140, 255, 118, 120, 128, 255, 93, 92, - 103, 255, 48, 47, 61, 255, 30, 31, 46, 255, 22, 24, 36, 255, 17, - 18, 26, 255, 18, 18, 23, 255, 17, 15, 18, 255, 17, 11, 12, 255, - 52, 57, 63, 255, 50, 57, 65, 255, 42, 50, 60, 255, 50, 56, 64, - 255, 58, 66, 77, 255, 65, 73, 85, 255, 76, 85, 98, 255, 80, 88, - 103, 255, 82, 91, 104, 255, 85, 94, 107, 255, 85, 94, 107, 255, 84, - 94, 107, 255, 110, 121, 133, 255, 109, 119, 131, 255, 95, 105, 117, 255, - 122, 133, 145, 255, 132, 142, 152, 255, 142, 151, 161, 255, 147, 153, 162, - 255, 165, 169, 176, 255, 179, 183, 188, 255, 188, 192, 198, 255, 180, 184, - 190, 255, 172, 181, 187, 255, 167, 177, 185, 255, 156, 167, 175, 255, 163, - 171, 180, 255, 169, 174, 184, 255, 166, 168, 177, 255, 178, 182, 189, 255, - 181, 192, 205, 255, 125, 142, 167, 255, 88, 112, 142, 255, 102, 127, 159, - 255, 141, 161, 188, 255, 178, 193, 215, 255, 176, 192, 209, 255, 166, 184, - 203, 255, 139, 158, 180, 255, 109, 126, 151, 255, 94, 104, 127, 255, 130, - 135, 152, 255, 127, 127, 139, 255, 148, 148, 153, 255, 134, 132, 137, 255, - 154, 152, 157, 255, 169, 168, 172, 255, 173, 172, 177, 255, 157, 156, 161, - 255, 140, 143, 147, 255, 138, 141, 145, 255, 143, 146, 150, 255, 129, 129, - 136, 255, 104, 101, 111, 255, 55, 53, 65, 255, 32, 32, 45, 255, 21, - 22, 31, 255, 12, 11, 20, 255, 14, 12, 18, 255, 13, 9, 13, 255, - 15, 10, 10, 255, 66, 70, 76, 255, 60, 66, 74, 255, 62, 70, 80, - 255, 62, 69, 77, 255, 60, 68, 78, 255, 70, 77, 90, 255, 78, 87, - 100, 255, 94, 103, 117, 255, 101, 111, 121, 255, 98, 109, 118, 255, 99, - 109, 119, 255, 100, 111, 120, 255, 103, 113, 123, 255, 120, 128, 138, 255, - 130, 138, 148, 255, 122, 131, 142, 255, 135, 145, 155, 255, 149, 159, 166, - 255, 170, 176, 182, 255, 179, 182, 186, 255, 186, 186, 190, 255, 186, 186, - 191, 255, 188, 191, 196, 255, 175, 182, 187, 255, 153, 160, 167, 255, 133, - 141, 152, 255, 145, 153, 165, 255, 154, 163, 176, 255, 135, 142, 155, 255, - 138, 145, 158, 255, 158, 171, 188, 255, 109, 128, 150, 255, 101, 124, 150, - 255, 128, 151, 178, 255, 158, 178, 198, 255, 193, 209, 221, 255, 193, 207, - 218, 255, 190, 202, 215, 255, 168, 179, 192, 255, 138, 149, 165, 255, 97, - 107, 124, 255, 99, 106, 122, 255, 112, 115, 127, 255, 105, 106, 114, 255, - 75, 76, 80, 255, 79, 77, 82, 255, 129, 127, 132, 255, 166, 161, 167, - 255, 162, 160, 165, 255, 137, 138, 142, 255, 144, 146, 150, 255, 142, 143, - 148, 255, 138, 138, 141, 255, 110, 108, 113, 255, 66, 65, 72, 255, 35, - 36, 45, 255, 21, 23, 30, 255, 19, 17, 27, 255, 13, 10, 18, 255, - 13, 9, 13, 255, 12, 7, 8, 255, 101, 102, 111, 255, 84, 89, 98, - 255, 77, 85, 93, 255, 81, 85, 94, 255, 86, 91, 102, 255, 86, 94, - 106, 255, 82, 89, 101, 255, 90, 99, 110, 255, 104, 112, 121, 255, 112, - 121, 129, 255, 113, 122, 130, 255, 116, 124, 132, 255, 115, 122, 130, 255, - 121, 127, 135, 255, 132, 137, 146, 255, 128, 136, 144, 255, 137, 145, 153, - 255, 148, 158, 164, 255, 167, 172, 175, 255, 184, 184, 187, 255, 183, 182, - 185, 255, 185, 181, 187, 255, 170, 169, 172, 255, 144, 146, 147, 255, 112, - 114, 120, 255, 89, 93, 101, 255, 91, 96, 108, 255, 124, 130, 144, 255, - 124, 132, 148, 255, 115, 126, 143, 255, 111, 124, 143, 255, 91, 106, 129, - 255, 116, 134, 159, 255, 156, 176, 197, 255, 183, 202, 214, 255, 203, 216, - 223, 255, 211, 219, 226, 255, 212, 217, 224, 255, 197, 203, 210, 255, 176, - 178, 187, 255, 111, 115, 125, 255, 60, 65, 75, 255, 85, 89, 97, 255, - 54, 54, 61, 255, 24, 22, 29, 255, 29, 26, 34, 255, 61, 58, 66, - 255, 123, 121, 128, 255, 130, 129, 133, 255, 124, 125, 129, 255, 135, 135, - 140, 255, 152, 151, 153, 255, 154, 153, 155, 255, 129, 125, 127, 255, 86, - 82, 87, 255, 36, 36, 45, 255, 32, 30, 38, 255, 22, 19, 30, 255, - 17, 12, 22, 255, 18, 11, 18, 255, 17, 9, 11, 255, 98, 98, 107, - 255, 72, 75, 84, 255, 77, 84, 92, 255, 86, 90, 99, 255, 78, 83, - 94, 255, 83, 89, 99, 255, 105, 111, 121, 255, 117, 122, 131, 255, 122, - 127, 134, 255, 120, 126, 131, 255, 127, 134, 139, 255, 143, 147, 152, 255, - 144, 148, 152, 255, 143, 145, 149, 255, 144, 145, 150, 255, 150, 151, 156, - 255, 143, 147, 155, 255, 152, 158, 165, 255, 159, 164, 167, 255, 172, 174, - 176, 255, 179, 179, 182, 255, 165, 161, 166, 255, 100, 95, 99, 255, 58, - 55, 56, 255, 42, 39, 42, 255, 36, 34, 39, 255, 32, 31, 40, 255, - 62, 61, 73, 255, 91, 97, 110, 255, 88, 97, 111, 255, 65, 78, 91, - 255, 106, 121, 136, 255, 164, 179, 194, 255, 192, 205, 218, 255, 210, 223, - 228, 255, 216, 226, 229, 255, 226, 230, 232, 255, 228, 230, 233, 255, 219, - 220, 223, 255, 196, 196, 199, 255, 157, 157, 161, 255, 69, 70, 75, 255, - 57, 57, 61, 255, 48, 47, 50, 255, 74, 69, 74, 255, 31, 26, 32, - 255, 41, 37, 42, 255, 87, 85, 91, 255, 131, 128, 136, 255, 126, 126, - 133, 255, 139, 139, 145, 255, 174, 173, 176, 255, 175, 172, 173, 255, 153, - 146, 146, 255, 102, 95, 96, 255, 65, 61, 66, 255, 35, 32, 41, 255, - 18, 16, 27, 255, 17, 11, 21, 255, 19, 12, 19, 255, 15, 7, 11, - 255, 83, 84, 92, 255, 76, 78, 89, 255, 87, 92, 102, 255, 98, 105, - 112, 255, 95, 99, 107, 255, 95, 99, 107, 255, 96, 100, 107, 255, 105, - 109, 114, 255, 114, 118, 121, 255, 136, 139, 141, 255, 150, 151, 151, 255, - 156, 156, 154, 255, 168, 168, 166, 255, 178, 177, 176, 255, 181, 180, 179, - 255, 178, 176, 175, 255, 166, 168, 173, 255, 150, 154, 162, 255, 152, 159, - 164, 255, 144, 152, 156, 255, 132, 133, 137, 255, 93, 88, 96, 255, 50, - 43, 49, 255, 52, 45, 49, 255, 112, 105, 106, 255, 66, 59, 63, 255, - 42, 36, 43, 255, 34, 31, 37, 255, 61, 63, 71, 255, 70, 74, 81, - 255, 93, 100, 106, 255, 184, 193, 198, 255, 214, 222, 225, 255, 226, 232, - 235, 255, 226, 232, 230, 255, 233, 237, 236, 255, 242, 243, 242, 255, 239, - 239, 238, 255, 237, 234, 233, 255, 216, 214, 213, 255, 187, 184, 185, 255, - 165, 160, 161, 255, 91, 86, 85, 255, 44, 38, 38, 255, 61, 52, 57, - 255, 52, 43, 51, 255, 35, 29, 39, 255, 67, 63, 73, 255, 115, 114, - 124, 255, 120, 121, 130, 255, 129, 130, 139, 255, 161, 160, 166, 255, 177, - 173, 175, 255, 154, 147, 145, 255, 145, 137, 135, 255, 93, 86, 89, 255, - 50, 46, 53, 255, 25, 22, 34, 255, 19, 13, 24, 255, 19, 12, 20, - 255, 18, 9, 15, 255, 81, 83, 91, 255, 70, 71, 82, 255, 62, 66, - 76, 255, 64, 70, 77, 255, 88, 92, 100, 255, 100, 102, 109, 255, 109, - 112, 116, 255, 119, 120, 122, 255, 133, 133, 132, 255, 138, 136, 133, 255, - 151, 148, 143, 255, 167, 164, 156, 255, 166, 162, 155, 255, 176, 172, 167, - 255, 186, 183, 178, 255, 197, 196, 190, 255, 176, 180, 179, 255, 147, 153, - 160, 255, 136, 146, 155, 255, 139, 149, 157, 255, 130, 135, 140, 255, 79, - 78, 85, 255, 59, 54, 61, 255, 51, 43, 48, 255, 68, 61, 64, 255, - 50, 45, 48, 255, 50, 46, 49, 255, 27, 24, 29, 255, 51, 49, 54, - 255, 87, 87, 90, 255, 191, 192, 193, 255, 220, 223, 221, 255, 229, 232, - 228, 255, 237, 236, 234, 255, 241, 241, 238, 255, 243, 243, 241, 255, 250, - 249, 247, 255, 247, 247, 244, 255, 248, 244, 242, 255, 232, 229, 227, 255, - 207, 201, 199, 255, 199, 190, 189, 255, 183, 173, 173, 255, 84, 74, 74, - 255, 57, 47, 51, 255, 54, 48, 54, 255, 26, 23, 30, 255, 67, 65, - 75, 255, 101, 100, 112, 255, 106, 107, 118, 255, 90, 91, 102, 255, 144, - 143, 150, 255, 179, 174, 177, 255, 169, 161, 159, 255, 160, 152, 150, 255, - 121, 114, 116, 255, 71, 67, 74, 255, 27, 24, 35, 255, 18, 12, 22, - 255, 20, 13, 20, 255, 17, 8, 13, 255, 63, 62, 71, 255, 65, 66, - 77, 255, 66, 70, 79, 255, 70, 75, 80, 255, 74, 77, 83, 255, 86, - 88, 93, 255, 102, 105, 108, 255, 116, 116, 116, 255, 139, 133, 130, 255, - 151, 144, 139, 255, 152, 144, 137, 255, 167, 160, 151, 255, 182, 171, 163, - 255, 187, 178, 171, 255, 193, 188, 180, 255, 198, 195, 188, 255, 177, 179, - 180, 255, 132, 138, 147, 255, 106, 115, 130, 255, 103, 111, 125, 255, 112, - 116, 128, 255, 67, 66, 78, 255, 64, 60, 70, 255, 47, 42, 48, 255, - 63, 57, 63, 255, 72, 66, 69, 255, 44, 39, 40, 255, 30, 24, 28, - 255, 72, 66, 68, 255, 135, 131, 132, 255, 218, 213, 212, 255, 234, 229, - 226, 255, 239, 238, 231, 255, 243, 241, 235, 255, 249, 246, 242, 255, 252, - 248, 244, 255, 251, 248, 243, 255, 252, 253, 248, 255, 250, 249, 245, 255, - 241, 237, 233, 255, 224, 217, 214, 255, 206, 196, 193, 255, 206, 194, 191, - 255, 150, 140, 138, 255, 52, 45, 46, 255, 33, 30, 32, 255, 39, 38, - 45, 255, 58, 59, 68, 255, 91, 93, 104, 255, 74, 78, 91, 255, 71, - 73, 86, 255, 112, 111, 120, 255, 162, 159, 163, 255, 170, 163, 164, 255, - 165, 156, 155, 255, 147, 138, 138, 255, 121, 113, 119, 255, 44, 37, 47, - 255, 20, 12, 22, 255, 18, 10, 15, 255, 13, 8, 11, 255, 53, 56, - 65, 255, 58, 61, 74, 255, 75, 78, 88, 255, 82, 85, 90, 255, 84, - 87, 91, 255, 87, 88, 91, 255, 102, 104, 104, 255, 109, 107, 106, 255, - 127, 120, 119, 255, 136, 130, 127, 255, 158, 151, 146, 255, 163, 156, 149, - 255, 179, 169, 162, 255, 186, 173, 169, 255, 201, 190, 184, 255, 189, 182, - 178, 255, 169, 170, 174, 255, 116, 121, 135, 255, 81, 90, 111, 255, 81, - 92, 110, 255, 99, 105, 122, 255, 84, 82, 98, 255, 61, 59, 71, 255, - 64, 62, 69, 255, 65, 59, 66, 255, 45, 39, 43, 255, 47, 40, 42, - 255, 62, 53, 55, 255, 81, 74, 75, 255, 187, 183, 182, 255, 227, 221, - 219, 255, 240, 234, 231, 255, 247, 242, 236, 255, 253, 248, 242, 255, 254, - 249, 243, 255, 252, 247, 241, 255, 244, 242, 235, 255, 247, 247, 240, 255, - 248, 248, 241, 255, 247, 244, 237, 255, 236, 230, 224, 255, 213, 205, 200, - 255, 203, 194, 188, 255, 203, 195, 189, 255, 134, 129, 125, 255, 60, 57, - 56, 255, 49, 48, 53, 255, 59, 62, 71, 255, 69, 72, 85, 255, 61, - 66, 79, 255, 57, 60, 73, 255, 89, 89, 99, 255, 145, 144, 147, 255, - 165, 160, 160, 255, 174, 166, 164, 255, 177, 166, 167, 255, 120, 112, 116, - 255, 43, 36, 44, 255, 24, 17, 24, 255, 17, 9, 14, 255, 15, 10, - 10, 255, 57, 62, 73, 255, 54, 59, 72, 255, 61, 66, 76, 255, 70, - 74, 81, 255, 89, 91, 95, 255, 108, 107, 110, 255, 123, 120, 121, 255, - 134, 130, 128, 255, 135, 128, 129, 255, 142, 135, 134, 255, 166, 158, 154, - 255, 174, 167, 161, 255, 184, 174, 167, 255, 200, 186, 182, 255, 199, 186, - 182, 255, 197, 189, 188, 255, 164, 166, 175, 255, 92, 99, 117, 255, 53, - 66, 87, 255, 58, 70, 93, 255, 76, 85, 104, 255, 89, 92, 110, 255, - 72, 73, 89, 255, 55, 56, 67, 255, 56, 54, 63, 255, 46, 42, 49, - 255, 45, 38, 44, 255, 50, 44, 45, 255, 141, 136, 135, 255, 216, 210, - 208, 255, 232, 228, 226, 255, 249, 243, 240, 255, 247, 242, 239, 255, 249, - 243, 239, 255, 245, 240, 235, 255, 245, 240, 234, 255, 239, 237, 230, 255, - 243, 243, 237, 255, 242, 242, 235, 255, 243, 240, 234, 255, 243, 237, 231, - 255, 229, 221, 215, 255, 213, 204, 198, 255, 204, 196, 190, 255, 193, 187, - 183, 255, 128, 123, 123, 255, 78, 76, 82, 255, 67, 68, 78, 255, 56, - 60, 74, 255, 53, 56, 71, 255, 51, 52, 67, 255, 74, 75, 86, 255, - 110, 109, 115, 255, 148, 143, 146, 255, 176, 167, 169, 255, 155, 146, 148, - 255, 100, 92, 96, 255, 54, 48, 52, 255, 23, 17, 21, 255, 19, 11, - 14, 255, 18, 10, 11, 255, 56, 59, 72, 255, 53, 57, 72, 255, 56, - 63, 75, 255, 66, 74, 81, 255, 78, 82, 85, 255, 96, 94, 95, 255, - 112, 105, 105, 255, 127, 121, 119, 255, 146, 137, 135, 255, 149, 141, 138, - 255, 159, 150, 145, 255, 175, 165, 160, 255, 188, 176, 169, 255, 191, 180, - 175, 255, 187, 179, 175, 255, 174, 171, 171, 255, 142, 148, 157, 255, 88, - 96, 116, 255, 44, 57, 79, 255, 39, 52, 75, 255, 50, 63, 80, 255, - 67, 75, 92, 255, 72, 77, 95, 255, 71, 73, 90, 255, 56, 59, 72, - 255, 62, 64, 75, 255, 63, 62, 70, 255, 102, 100, 102, 255, 206, 202, - 200, 255, 224, 216, 215, 255, 236, 231, 229, 255, 245, 240, 238, 255, 246, - 242, 241, 255, 244, 240, 238, 255, 240, 237, 233, 255, 234, 231, 227, 255, - 234, 231, 227, 255, 233, 229, 225, 255, 232, 229, 225, 255, 230, 228, 224, - 255, 227, 220, 217, 255, 228, 218, 215, 255, 226, 214, 211, 255, 214, 204, - 201, 255, 202, 193, 190, 255, 190, 182, 181, 255, 117, 113, 116, 255, 70, - 70, 77, 255, 61, 62, 77, 255, 48, 48, 66, 255, 39, 38, 54, 255, - 45, 45, 57, 255, 86, 83, 93, 255, 131, 126, 132, 255, 149, 142, 146, - 255, 143, 135, 139, 255, 116, 109, 111, 255, 77, 73, 73, 255, 40, 35, - 36, 255, 24, 16, 19, 255, 17, 9, 13, 255, 45, 47, 63, 255, 46, - 51, 64, 255, 57, 62, 74, 255, 85, 90, 100, 255, 104, 106, 111, 255, - 119, 116, 119, 255, 126, 119, 118, 255, 141, 133, 130, 255, 155, 148, 143, - 255, 169, 159, 154, 255, 169, 159, 154, 255, 183, 174, 168, 255, 189, 180, - 175, 255, 189, 181, 178, 255, 179, 174, 174, 255, 156, 155, 160, 255, 110, - 112, 125, 255, 68, 75, 96, 255, 46, 52, 76, 255, 37, 47, 69, 255, - 44, 51, 73, 255, 44, 53, 72, 255, 71, 77, 97, 255, 68, 73, 93, - 255, 74, 80, 97, 255, 74, 77, 91, 255, 98, 96, 104, 255, 200, 192, - 195, 255, 226, 218, 214, 255, 234, 225, 221, 255, 242, 234, 230, 255, 249, - 242, 238, 255, 248, 244, 242, 255, 240, 236, 235, 255, 236, 233, 229, 255, - 228, 225, 221, 255, 228, 222, 218, 255, 226, 221, 217, 255, 223, 217, 214, - 255, 212, 205, 202, 255, 190, 182, 179, 255, 181, 173, 169, 255, 190, 182, - 179, 255, 201, 192, 189, 255, 210, 199, 199, 255, 206, 197, 196, 255, 177, - 172, 173, 255, 71, 70, 76, 255, 46, 43, 58, 255, 43, 41, 57, 255, - 37, 36, 51, 255, 41, 37, 49, 255, 61, 57, 68, 255, 86, 85, 92, - 255, 110, 107, 112, 255, 128, 123, 127, 255, 130, 125, 126, 255, 78, 73, - 74, 255, 33, 28, 31, 255, 21, 13, 16, 255, 14, 6, 10, 255, 40, - 42, 56, 255, 56, 61, 74, 255, 75, 80, 91, 255, 79, 84, 92, 255, - 85, 86, 92, 255, 114, 111, 113, 255, 136, 129, 129, 255, 156, 148, 145, - 255, 168, 161, 155, 255, 173, 165, 160, 255, 171, 163, 160, 255, 169, 161, - 159, 255, 180, 172, 171, 255, 173, 168, 168, 255, 155, 152, 158, 255, 118, - 116, 128, 255, 74, 76, 94, 255, 46, 50, 72, 255, 30, 34, 56, 255, - 33, 39, 60, 255, 34, 39, 59, 255, 34, 43, 61, 255, 49, 56, 74, - 255, 56, 62, 81, 255, 66, 69, 85, 255, 85, 85, 96, 255, 191, 185, - 190, 255, 228, 217, 217, 255, 230, 220, 215, 255, 234, 225, 219, 255, 240, - 233, 227, 255, 247, 240, 235, 255, 245, 240, 238, 255, 235, 232, 228, 255, - 230, 227, 223, 255, 227, 222, 218, 255, 221, 214, 210, 255, 221, 216, 212, - 255, 200, 194, 190, 255, 150, 142, 139, 255, 115, 107, 104, 255, 105, 97, - 93, 255, 103, 95, 91, 255, 108, 100, 97, 255, 156, 144, 146, 255, 211, - 203, 202, 255, 201, 196, 196, 255, 129, 128, 131, 255, 87, 83, 94, 255, - 58, 54, 68, 255, 46, 43, 57, 255, 43, 39, 51, 255, 45, 43, 55, - 255, 62, 61, 70, 255, 94, 93, 100, 255, 117, 116, 118, 255, 105, 103, - 103, 255, 83, 81, 81, 255, 65, 59, 62, 255, 22, 14, 18, 255, 13, - 5, 9, 255, 46, 49, 60, 255, 53, 59, 69, 255, 63, 69, 78, 255, - 84, 90, 96, 255, 106, 108, 112, 255, 122, 119, 122, 255, 137, 130, 130, - 255, 142, 134, 131, 255, 150, 143, 137, 255, 167, 161, 157, 255, 177, 171, - 169, 255, 175, 170, 169, 255, 165, 159, 163, 255, 143, 142, 147, 255, 108, - 109, 120, 255, 75, 76, 94, 255, 48, 49, 71, 255, 32, 32, 55, 255, - 22, 27, 47, 255, 27, 31, 50, 255, 33, 39, 55, 255, 35, 40, 57, - 255, 47, 51, 67, 255, 54, 55, 68, 255, 88, 84, 92, 255, 188, 181, - 184, 255, 225, 215, 213, 255, 236, 223, 218, 255, 238, 227, 219, 255, 238, - 227, 219, 255, 234, 226, 218, 255, 243, 235, 227, 255, 240, 235, 230, 255, - 232, 227, 223, 255, 222, 216, 213, 255, 227, 222, 218, 255, 213, 208, 204, - 255, 190, 184, 180, 255, 129, 121, 118, 255, 91, 80, 77, 255, 95, 85, - 82, 255, 92, 84, 80, 255, 70, 62, 59, 255, 61, 54, 52, 255, 52, - 42, 44, 255, 97, 90, 89, 255, 207, 201, 201, 255, 191, 187, 189, 255, - 141, 135, 141, 255, 105, 99, 109, 255, 60, 54, 66, 255, 41, 38, 50, - 255, 44, 44, 55, 255, 72, 74, 85, 255, 118, 120, 128, 255, 139, 142, - 145, 255, 145, 145, 145, 255, 129, 126, 127, 255, 83, 78, 81, 255, 50, - 42, 46, 255, 38, 33, 36, 255, 43, 47, 58, 255, 69, 75, 84, 255, - 91, 98, 105, 255, 105, 111, 116, 255, 120, 122, 126, 255, 136, 134, 135, - 255, 151, 145, 144, 255, 164, 157, 153, 255, 163, 155, 151, 255, 159, 153, - 150, 255, 162, 158, 157, 255, 164, 162, 163, 255, 150, 147, 154, 255, 118, - 118, 129, 255, 82, 84, 100, 255, 48, 51, 73, 255, 36, 39, 62, 255, - 37, 34, 57, 255, 35, 42, 59, 255, 41, 49, 65, 255, 43, 50, 66, - 255, 51, 53, 69, 255, 106, 105, 117, 255, 160, 154, 159, 255, 211, 201, - 198, 255, 225, 215, 209, 255, 231, 220, 213, 255, 236, 223, 215, 255, 237, - 226, 217, 255, 235, 225, 215, 255, 238, 228, 218, 255, 233, 224, 215, 255, - 232, 225, 219, 255, 230, 224, 218, 255, 219, 213, 208, 255, 212, 207, 203, - 255, 196, 190, 187, 255, 143, 137, 134, 255, 102, 94, 91, 255, 98, 86, - 83, 255, 86, 74, 72, 255, 76, 67, 64, 255, 71, 63, 60, 255, 66, - 60, 57, 255, 54, 47, 48, 255, 43, 37, 36, 255, 140, 134, 132, 255, - 212, 207, 206, 255, 153, 147, 148, 255, 123, 116, 122, 255, 100, 94, 104, - 255, 82, 79, 90, 255, 66, 66, 78, 255, 82, 83, 97, 255, 110, 115, - 124, 255, 130, 137, 139, 255, 136, 138, 137, 255, 114, 113, 113, 255, 62, - 56, 59, 255, 28, 20, 24, 255, 14, 8, 11, 255, 45, 52, 64, 255, - 68, 76, 86, 255, 82, 87, 95, 255, 87, 89, 94, 255, 108, 110, 113, - 255, 127, 127, 126, 255, 138, 137, 133, 255, 147, 143, 140, 255, 153, 146, - 147, 255, 159, 153, 156, 255, 158, 155, 157, 255, 147, 146, 153, 255, 131, - 133, 147, 255, 100, 106, 124, 255, 64, 66, 88, 255, 39, 42, 62, 255, - 28, 29, 49, 255, 23, 23, 42, 255, 27, 27, 45, 255, 34, 38, 53, - 255, 61, 70, 78, 255, 109, 113, 118, 255, 169, 165, 167, 255, 198, 188, - 186, 255, 220, 207, 201, 255, 228, 215, 208, 255, 231, 218, 211, 255, 235, - 222, 215, 255, 237, 224, 214, 255, 241, 228, 219, 255, 235, 222, 212, 255, - 229, 217, 208, 255, 227, 216, 207, 255, 234, 225, 216, 255, 229, 220, 214, - 255, 217, 209, 206, 255, 184, 176, 173, 255, 113, 106, 105, 255, 85, 76, - 76, 255, 116, 104, 105, 255, 101, 86, 87, 255, 88, 75, 75, 255, 67, - 57, 56, 255, 68, 59, 58, 255, 59, 49, 51, 255, 56, 46, 48, 255, - 72, 62, 62, 255, 221, 211, 211, 255, 199, 187, 187, 255, 161, 152, 154, - 255, 120, 114, 120, 255, 94, 89, 98, 255, 81, 79, 90, 255, 91, 91, - 104, 255, 118, 119, 128, 255, 138, 140, 143, 255, 142, 139, 142, 255, 116, - 113, 116, 255, 78, 72, 76, 255, 48, 43, 46, 255, 28, 20, 24, 255, - 62, 66, 79, 255, 53, 59, 70, 255, 76, 81, 90, 255, 107, 108, 115, - 255, 118, 119, 123, 255, 128, 128, 127, 255, 135, 135, 130, 255, 136, 132, - 129, 255, 138, 133, 134, 255, 136, 132, 135, 255, 133, 132, 133, 255, 132, - 132, 139, 255, 115, 118, 133, 255, 82, 90, 108, 255, 52, 57, 78, 255, - 36, 39, 57, 255, 33, 34, 50, 255, 32, 33, 51, 255, 39, 37, 52, - 255, 68, 70, 83, 255, 111, 117, 123, 255, 153, 154, 157, 255, 197, 191, - 191, 255, 211, 200, 197, 255, 216, 202, 196, 255, 215, 201, 194, 255, 218, - 204, 198, 255, 228, 215, 208, 255, 240, 227, 218, 255, 242, 229, 220, 255, - 231, 219, 209, 255, 229, 216, 207, 255, 231, 219, 209, 255, 228, 218, 208, - 255, 219, 210, 204, 255, 208, 200, 196, 255, 146, 138, 135, 255, 70, 64, - 62, 255, 87, 78, 77, 255, 100, 88, 90, 255, 90, 77, 77, 255, 80, - 68, 67, 255, 64, 55, 54, 255, 62, 55, 54, 255, 60, 52, 54, 255, - 53, 45, 47, 255, 74, 65, 64, 255, 208, 199, 198, 255, 205, 194, 192, - 255, 172, 163, 163, 255, 143, 133, 136, 255, 117, 111, 115, 255, 104, 100, - 110, 255, 102, 101, 111, 255, 117, 117, 125, 255, 140, 139, 141, 255, 150, - 146, 149, 255, 138, 135, 138, 255, 109, 103, 106, 255, 83, 77, 80, 255, - 62, 54, 57, 255, 41, 41, 54, 255, 56, 61, 72, 255, 78, 82, 91, - 255, 100, 103, 109, 255, 125, 126, 130, 255, 139, 139, 138, 255, 149, 148, - 144, 255, 163, 159, 156, 255, 168, 165, 166, 255, 163, 161, 164, 255, 149, - 150, 151, 255, 133, 136, 142, 255, 105, 109, 122, 255, 74, 82, 99, 255, - 49, 56, 75, 255, 35, 39, 56, 255, 33, 35, 50, 255, 48, 47, 63, - 255, 71, 68, 82, 255, 95, 94, 104, 255, 132, 133, 137, 255, 172, 170, - 170, 255, 201, 193, 190, 255, 214, 203, 198, 255, 223, 210, 202, 255, 232, - 219, 210, 255, 233, 221, 211, 255, 232, 219, 210, 255, 234, 221, 212, 255, - 231, 218, 208, 255, 222, 209, 200, 255, 224, 211, 202, 255, 226, 213, 203, - 255, 219, 209, 199, 255, 218, 209, 202, 255, 193, 185, 181, 255, 95, 87, - 83, 255, 56, 50, 49, 255, 58, 49, 48, 255, 55, 43, 45, 255, 46, - 34, 36, 255, 74, 63, 65, 255, 64, 56, 57, 255, 62, 56, 57, 255, - 65, 60, 61, 255, 60, 54, 55, 255, 73, 66, 65, 255, 211, 204, 203, - 255, 206, 197, 194, 255, 179, 171, 168, 255, 162, 152, 151, 255, 139, 134, - 134, 255, 121, 119, 124, 255, 127, 126, 133, 255, 144, 143, 149, 255, 154, - 153, 154, 255, 145, 142, 145, 255, 124, 120, 123, 255, 89, 83, 86, 255, - 79, 73, 76, 255, 78, 70, 74, 255, 43, 43, 57, 255, 51, 54, 65, - 255, 77, 81, 90, 255, 101, 103, 110, 255, 125, 126, 130, 255, 134, 134, - 133, 255, 146, 145, 141, 255, 155, 151, 148, 255, 156, 153, 154, 255, 163, - 162, 165, 255, 151, 154, 155, 255, 131, 135, 141, 255, 102, 108, 121, 255, - 76, 84, 101, 255, 55, 63, 81, 255, 48, 53, 68, 255, 50, 52, 66, - 255, 66, 65, 78, 255, 97, 93, 103, 255, 132, 129, 134, 255, 169, 167, - 167, 255, 190, 184, 180, 255, 204, 196, 189, 255, 222, 212, 203, 255, 233, - 220, 211, 255, 234, 221, 212, 255, 242, 230, 220, 255, 241, 228, 219, 255, - 233, 220, 211, 255, 226, 213, 204, 255, 229, 216, 206, 255, 222, 209, 200, - 255, 222, 209, 199, 255, 212, 202, 192, 255, 210, 201, 194, 255, 200, 192, - 188, 255, 140, 132, 129, 255, 75, 69, 68, 255, 65, 57, 56, 255, 51, - 39, 41, 255, 44, 34, 35, 255, 69, 62, 63, 255, 68, 63, 64, 255, - 61, 56, 57, 255, 65, 62, 63, 255, 63, 60, 61, 255, 79, 75, 73, - 255, 215, 208, 207, 255, 211, 205, 201, 255, 193, 186, 185, 255, 176, 168, - 167, 255, 132, 127, 127, 255, 97, 94, 98, 255, 105, 104, 109, 255, 131, - 130, 135, 255, 133, 132, 133, 255, 129, 126, 129, 255, 117, 113, 116, 255, - 80, 74, 77, 255, 59, 54, 57, 255, 47, 39, 42, 255, 45, 45, 59, - 255, 71, 74, 85, 255, 87, 89, 98, 255, 108, 110, 117, 255, 126, 127, - 130, 255, 142, 142, 142, 255, 151, 152, 148, 255, 152, 151, 148, 255, 157, - 155, 156, 255, 157, 158, 158, 255, 160, 164, 163, 255, 146, 151, 155, 255, - 128, 135, 146, 255, 108, 117, 132, 255, 86, 95, 108, 255, 77, 82, 95, - 255, 50, 52, 65, 255, 48, 48, 59, 255, 86, 83, 90, 255, 124, 120, - 123, 255, 166, 157, 155, 255, 193, 184, 179, 255, 217, 207, 200, 255, 227, - 216, 206, 255, 232, 220, 208, 255, 235, 223, 211, 255, 240, 228, 216, 255, - 239, 227, 215, 255, 236, 224, 212, 255, 224, 212, 201, 255, 222, 210, 198, - 255, 217, 205, 193, 255, 215, 202, 193, 255, 217, 205, 198, 255, 220, 208, - 203, 255, 218, 208, 203, 255, 206, 197, 194, 255, 135, 127, 126, 255, 92, - 83, 84, 255, 77, 67, 69, 255, 74, 66, 69, 255, 71, 63, 67, 255, - 78, 72, 75, 255, 63, 57, 60, 255, 74, 71, 72, 255, 70, 68, 68, - 255, 168, 164, 162, 255, 211, 207, 205, 255, 209, 203, 200, 255, 196, 189, - 188, 255, 160, 153, 156, 255, 133, 128, 133, 255, 125, 123, 130, 255, 126, - 129, 137, 255, 131, 133, 141, 255, 160, 160, 162, 255, 146, 143, 146, 255, - 116, 113, 115, 255, 76, 71, 72, 255, 70, 65, 66, 255, 76, 68, 72, - 255, 46, 46, 60, 255, 52, 56, 67, 255, 77, 79, 88, 255, 104, 107, - 114, 255, 124, 125, 130, 255, 142, 141, 143, 255, 152, 153, 151, 255, 169, - 168, 166, 255, 172, 173, 174, 255, 165, 167, 167, 255, 160, 162, 162, 255, - 146, 148, 151, 255, 133, 135, 141, 255, 109, 116, 126, 255, 89, 96, 108, - 255, 83, 85, 100, 255, 77, 77, 90, 255, 90, 88, 98, 255, 122, 118, - 124, 255, 164, 158, 160, 255, 185, 175, 173, 255, 197, 188, 182, 255, 217, - 205, 198, 255, 221, 208, 199, 255, 228, 215, 205, 255, 236, 224, 214, 255, - 240, 227, 218, 255, 239, 226, 217, 255, 233, 223, 213, 255, 230, 219, 210, - 255, 221, 211, 201, 255, 213, 202, 193, 255, 210, 197, 187, 255, 207, 196, - 189, 255, 218, 207, 200, 255, 217, 208, 201, 255, 218, 207, 202, 255, 199, - 189, 184, 255, 163, 153, 150, 255, 121, 110, 110, 255, 92, 84, 87, 255, - 65, 57, 60, 255, 69, 63, 66, 255, 67, 62, 65, 255, 75, 72, 73, - 255, 120, 118, 118, 255, 199, 195, 193, 255, 212, 208, 206, 255, 216, 210, - 207, 255, 199, 192, 192, 255, 146, 140, 143, 255, 94, 89, 95, 255, 83, - 81, 90, 255, 108, 108, 120, 255, 134, 135, 145, 255, 144, 144, 150, 255, - 141, 140, 143, 255, 114, 113, 115, 255, 83, 81, 81, 255, 57, 54, 54, - 255, 40, 33, 37, 255, 37, 40, 51, 255, 67, 71, 82, 255, 76, 79, - 90, 255, 102, 104, 113, 255, 120, 121, 130, 255, 143, 143, 148, 255, 152, - 152, 153, 255, 146, 146, 146, 255, 152, 154, 154, 255, 161, 164, 163, 255, - 164, 166, 166, 255, 163, 165, 165, 255, 156, 157, 158, 255, 125, 129, 137, - 255, 92, 97, 108, 255, 69, 69, 85, 255, 71, 72, 84, 255, 90, 89, - 98, 255, 131, 127, 133, 255, 154, 149, 150, 255, 178, 170, 168, 255, 193, - 184, 179, 255, 206, 195, 189, 255, 220, 207, 198, 255, 225, 215, 205, 255, - 230, 219, 209, 255, 234, 224, 214, 255, 236, 226, 216, 255, 235, 225, 215, - 255, 235, 225, 215, 255, 232, 222, 212, 255, 225, 214, 204, 255, 221, 207, - 200, 255, 225, 215, 205, 255, 224, 214, 204, 255, 223, 215, 205, 255, 208, - 197, 191, 255, 200, 188, 183, 255, 184, 171, 169, 255, 155, 144, 143, 255, - 128, 120, 122, 255, 112, 103, 109, 255, 69, 62, 67, 255, 97, 91, 94, - 255, 114, 112, 112, 255, 152, 150, 150, 255, 206, 202, 201, 255, 213, 209, - 208, 255, 207, 201, 197, 255, 183, 176, 176, 255, 136, 130, 134, 255, 118, - 114, 120, 255, 126, 125, 134, 255, 140, 141, 152, 255, 148, 149, 159, 255, - 140, 139, 145, 255, 115, 114, 116, 255, 67, 66, 69, 255, 32, 29, 30, - 255, 35, 33, 33, 255, 48, 43, 44, 255, 40, 43, 54, 255, 37, 42, - 51, 255, 56, 59, 70, 255, 80, 83, 94, 255, 101, 103, 112, 255, 123, - 123, 129, 255, 140, 142, 143, 255, 162, 162, 162, 255, 163, 166, 164, 255, - 166, 169, 169, 255, 164, 167, 166, 255, 158, 161, 159, 255, 150, 151, 152, - 255, 143, 146, 153, 255, 143, 147, 158, 255, 133, 135, 150, 255, 114, 116, - 129, 255, 99, 101, 110, 255, 88, 86, 92, 255, 106, 103, 106, 255, 139, - 135, 134, 255, 181, 175, 172, 255, 204, 195, 190, 255, 209, 199, 192, 255, - 215, 203, 196, 255, 221, 209, 202, 255, 226, 214, 207, 255, 226, 215, 208, - 255, 234, 225, 217, 255, 229, 221, 213, 255, 228, 219, 211, 255, 223, 213, - 206, 255, 221, 208, 201, 255, 223, 212, 203, 255, 216, 206, 196, 255, 211, - 203, 192, 255, 207, 198, 193, 255, 198, 185, 183, 255, 181, 168, 167, 255, - 157, 147, 147, 255, 137, 129, 132, 255, 103, 93, 100, 255, 65, 58, 65, - 255, 133, 128, 131, 255, 153, 151, 152, 255, 174, 172, 173, 255, 200, 196, - 195, 255, 203, 199, 198, 255, 200, 194, 191, 255, 142, 136, 136, 255, 80, - 75, 78, 255, 115, 112, 117, 255, 138, 139, 145, 255, 147, 147, 155, 255, - 135, 134, 142, 255, 119, 120, 124, 255, 88, 85, 88, 255, 53, 49, 52, - 255, 22, 17, 18, 255, 14, 10, 10, 255, 11, 7, 7, 255, 16, 15, - 27, 255, 22, 24, 35, 255, 49, 53, 66, 255, 92, 96, 108, 255, 119, - 121, 131, 255, 125, 127, 133, 255, 134, 135, 138, 255, 153, 155, 157, 255, - 159, 161, 161, 255, 154, 156, 156, 255, 163, 166, 165, 255, 177, 180, 178, - 255, 178, 178, 179, 255, 162, 163, 168, 255, 134, 136, 145, 255, 101, 103, - 117, 255, 76, 78, 92, 255, 49, 54, 65, 255, 44, 46, 53, 255, 85, - 86, 90, 255, 133, 132, 134, 255, 136, 133, 132, 255, 177, 170, 169, 255, - 194, 186, 181, 255, 202, 191, 185, 255, 216, 204, 198, 255, 219, 207, 201, - 255, 222, 210, 204, 255, 226, 214, 209, 255, 224, 213, 206, 255, 232, 221, - 213, 255, 223, 212, 204, 255, 224, 213, 205, 255, 215, 206, 198, 255, 211, - 203, 196, 255, 207, 201, 195, 255, 199, 187, 187, 255, 181, 169, 172, 255, - 140, 126, 133, 255, 109, 95, 104, 255, 91, 75, 89, 255, 59, 44, 60, - 255, 48, 35, 52, 255, 82, 72, 87, 255, 138, 132, 138, 255, 168, 162, - 167, 255, 190, 184, 187, 255, 186, 181, 183, 255, 174, 166, 167, 255, 139, - 135, 137, 255, 119, 117, 120, 255, 128, 127, 131, 255, 156, 155, 156, 255, - 145, 144, 147, 255, 128, 125, 130, 255, 81, 77, 83, 255, 58, 50, 54, - 255, 62, 54, 58, 255, 43, 35, 37, 255, 19, 12, 13, 255, 11, 6, - 7, 255, 23, 22, 35, 255, 32, 34, 46, 255, 73, 77, 91, 255, 95, - 99, 113, 255, 98, 101, 112, 255, 113, 117, 124, 255, 135, 138, 143, 255, - 146, 150, 151, 255, 156, 157, 159, 255, 172, 174, 174, 255, 164, 166, 166, - 255, 159, 161, 161, 255, 155, 157, 159, 255, 155, 157, 160, 255, 147, 149, - 155, 255, 138, 138, 152, 255, 110, 112, 127, 255, 93, 98, 112, 255, 70, - 73, 83, 255, 92, 95, 103, 255, 91, 90, 97, 255, 105, 102, 105, 255, - 117, 111, 113, 255, 156, 147, 147, 255, 167, 159, 156, 255, 187, 178, 175, - 255, 206, 197, 194, 255, 219, 210, 206, 255, 224, 212, 207, 255, 225, 213, - 208, 255, 223, 211, 206, 255, 216, 204, 199, 255, 220, 208, 203, 255, 207, - 198, 193, 255, 193, 185, 182, 255, 181, 174, 174, 255, 150, 136, 144, 255, - 100, 84, 97, 255, 75, 59, 75, 255, 69, 52, 72, 255, 60, 42, 67, - 255, 54, 38, 64, 255, 50, 36, 62, 255, 84, 72, 93, 255, 167, 159, - 170, 255, 144, 137, 144, 255, 150, 144, 149, 255, 150, 144, 147, 255, 138, - 131, 132, 255, 129, 125, 128, 255, 117, 116, 119, 255, 139, 137, 142, 255, - 144, 144, 146, 255, 132, 131, 133, 255, 105, 101, 104, 255, 71, 66, 69, - 255, 63, 55, 59, 255, 31, 23, 27, 255, 35, 28, 29, 255, 36, 29, - 30, 255, 13, 8, 9, 255, 30, 29, 45, 255, 44, 43, 59, 255, 58, - 59, 77, 255, 66, 69, 87, 255, 90, 94, 109, 255, 108, 113, 125, 255, - 128, 132, 140, 255, 146, 150, 156, 255, 143, 147, 151, 255, 139, 143, 145, - 255, 148, 152, 154, 255, 156, 161, 160, 255, 148, 149, 151, 255, 146, 148, - 148, 255, 149, 152, 156, 255, 164, 165, 174, 255, 154, 157, 168, 255, 133, - 137, 146, 255, 109, 115, 123, 255, 70, 73, 80, 255, 55, 54, 62, 255, - 77, 75, 80, 255, 91, 88, 91, 255, 89, 82, 83, 255, 88, 80, 76, - 255, 131, 123, 120, 255, 183, 175, 172, 255, 198, 190, 187, 255, 204, 196, - 191, 255, 199, 191, 185, 255, 181, 173, 167, 255, 194, 186, 181, 255, 194, - 185, 182, 255, 171, 164, 162, 255, 141, 135, 139, 255, 147, 141, 147, 255, - 140, 128, 144, 255, 69, 54, 74, 255, 75, 59, 83, 255, 80, 63, 92, - 255, 79, 62, 92, 255, 88, 73, 103, 255, 80, 66, 95, 255, 136, 124, - 148, 255, 192, 181, 199, 255, 138, 130, 142, 255, 153, 147, 152, 255, 153, - 148, 148, 255, 129, 125, 125, 255, 101, 98, 101, 255, 101, 101, 103, 255, - 103, 99, 105, 255, 121, 117, 122, 255, 115, 111, 116, 255, 91, 85, 90, - 255, 70, 64, 67, 255, 30, 22, 24, 255, 41, 34, 35, 255, 38, 31, - 32, 255, 23, 16, 15, 255, 31, 26, 27, 255, 30, 29, 45, 255, 40, - 39, 55, 255, 35, 36, 54, 255, 44, 48, 65, 255, 74, 80, 94, 255, - 92, 98, 109, 255, 91, 97, 106, 255, 100, 105, 111, 255, 122, 125, 130, - 255, 136, 139, 143, 255, 143, 147, 149, 255, 145, 149, 150, 255, 142, 146, - 147, 255, 141, 145, 146, 255, 156, 158, 161, 255, 169, 170, 175, 255, 169, - 169, 177, 255, 154, 156, 165, 255, 121, 126, 135, 255, 86, 90, 96, 255, - 72, 73, 79, 255, 55, 55, 58, 255, 53, 49, 52, 255, 52, 47, 47, - 255, 91, 86, 83, 255, 110, 104, 101, 255, 134, 129, 125, 255, 154, 148, - 145, 255, 156, 150, 145, 255, 122, 116, 113, 255, 108, 102, 99, 255, 151, - 145, 143, 255, 128, 121, 121, 255, 126, 119, 123, 255, 103, 97, 105, 255, - 135, 128, 141, 255, 205, 194, 213, 255, 117, 104, 129, 255, 92, 77, 108, - 255, 98, 82, 116, 255, 100, 85, 118, 255, 95, 80, 112, 255, 123, 109, - 138, 255, 171, 158, 182, 255, 153, 142, 161, 255, 127, 118, 132, 255, 172, - 166, 171, 255, 159, 154, 155, 255, 121, 117, 117, 255, 101, 98, 101, 255, - 68, 66, 68, 255, 74, 70, 75, 255, 55, 50, 56, 255, 56, 51, 54, - 255, 68, 63, 65, 255, 38, 31, 32, 255, 40, 33, 34, 255, 32, 24, - 25, 255, 25, 19, 18, 255, 45, 38, 37, 255, 19, 15, 15, 255, 27, - 24, 39, 255, 27, 26, 40, 255, 42, 41, 56, 255, 46, 47, 61, 255, - 54, 56, 67, 255, 48, 49, 61, 255, 50, 52, 64, 255, 76, 78, 89, - 255, 84, 86, 95, 255, 107, 108, 116, 255, 126, 129, 134, 255, 127, 131, - 134, 255, 137, 138, 142, 255, 146, 146, 152, 255, 142, 142, 147, 255, 139, - 139, 144, 255, 147, 145, 152, 255, 138, 138, 147, 255, 113, 116, 122, 255, - 81, 84, 92, 255, 48, 48, 53, 255, 25, 23, 25, 255, 29, 24, 27, - 255, 34, 27, 28, 255, 48, 41, 40, 255, 63, 59, 57, 255, 94, 92, - 90, 255, 126, 124, 122, 255, 110, 107, 105, 255, 136, 130, 131, 255, 147, - 138, 141, 255, 149, 138, 141, 255, 102, 93, 97, 255, 95, 86, 92, 255, - 94, 85, 98, 255, 106, 95, 112, 255, 156, 142, 163, 255, 175, 159, 185, - 255, 115, 98, 129, 255, 139, 122, 157, 255, 144, 125, 160, 255, 147, 130, - 161, 255, 147, 130, 158, 255, 125, 110, 133, 255, 94, 83, 101, 255, 122, - 114, 125, 255, 185, 179, 184, 255, 176, 172, 172, 255, 141, 135, 139, 255, - 92, 87, 90, 255, 59, 54, 57, 255, 46, 40, 44, 255, 44, 36, 42, - 255, 27, 19, 22, 255, 32, 24, 28, 255, 53, 45, 49, 255, 22, 14, - 16, 255, 21, 13, 15, 255, 23, 18, 19, 255, 23, 18, 19, 255, 40, - 33, 34, 255, 28, 24, 35, 255, 46, 44, 55, 255, 32, 31, 42, 255, - 18, 18, 28, 255, 26, 26, 35, 255, 22, 22, 31, 255, 27, 25, 37, - 255, 33, 32, 44, 255, 33, 33, 46, 255, 73, 74, 85, 255, 86, 88, - 97, 255, 92, 94, 102, 255, 115, 117, 125, 255, 105, 107, 116, 255, 77, - 79, 88, 255, 74, 75, 82, 255, 79, 78, 88, 255, 80, 82, 88, 255, - 53, 55, 64, 255, 54, 57, 63, 255, 24, 23, 27, 255, 24, 21, 24, - 255, 26, 20, 23, 255, 33, 25, 27, 255, 47, 40, 41, 255, 78, 74, - 75, 255, 83, 83, 83, 255, 93, 93, 93, 255, 121, 120, 120, 255, 151, - 147, 148, 255, 175, 166, 168, 255, 171, 161, 162, 255, 124, 115, 115, 255, - 76, 68, 70, 255, 64, 53, 64, 255, 94, 85, 98, 255, 100, 87, 107, - 255, 112, 98, 123, 255, 114, 99, 129, 255, 119, 105, 136, 255, 112, 98, - 126, 255, 96, 84, 108, 255, 92, 80, 102, 255, 90, 79, 97, 255, 90, - 81, 94, 255, 147, 139, 147, 255, 198, 192, 196, 255, 184, 179, 180, 255, - 138, 133, 136, 255, 99, 93, 96, 255, 51, 46, 49, 255, 41, 35, 38, - 255, 30, 21, 25, 255, 25, 17, 21, 255, 15, 7, 11, 255, 21, 13, - 14, 255, 38, 30, 32, 255, 23, 16, 17, 255, 16, 11, 12, 255, 16, - 11, 11, 255, 13, 8, 9, 255, 41, 36, 43, 255, 21, 18, 24, 255, - 24, 22, 28, 255, 24, 22, 28, 255, 25, 22, 30, 255, 23, 19, 27, - 255, 25, 21, 31, 255, 27, 23, 35, 255, 28, 28, 41, 255, 42, 42, - 55, 255, 47, 48, 59, 255, 54, 55, 67, 255, 46, 45, 55, 255, 42, - 40, 52, 255, 48, 47, 58, 255, 44, 43, 52, 255, 35, 34, 41, 255, - 19, 18, 24, 255, 55, 54, 60, 255, 32, 30, 38, 255, 25, 22, 27, - 255, 30, 25, 28, 255, 31, 23, 27, 255, 30, 20, 21, 255, 72, 65, - 66, 255, 69, 64, 65, 255, 88, 88, 88, 255, 75, 78, 78, 255, 130, - 131, 133, 255, 168, 166, 166, 255, 191, 185, 183, 255, 193, 184, 180, 255, - 179, 171, 167, 255, 119, 113, 110, 255, 85, 76, 82, 255, 82, 73, 81, - 255, 86, 72, 86, 255, 81, 67, 87, 255, 86, 71, 94, 255, 84, 72, - 94, 255, 93, 83, 102, 255, 93, 83, 99, 255, 85, 76, 89, 255, 111, - 103, 113, 255, 138, 131, 139, 255, 196, 190, 194, 255, 204, 199, 200, 255, - 186, 181, 181, 255, 138, 130, 131, 255, 87, 79, 81, 255, 61, 53, 55, - 255, 41, 34, 35, 255, 34, 26, 30, 255, 30, 22, 25, 255, 28, 21, - 22, 255, 18, 11, 12, 255, 12, 5, 6, 255, 17, 9, 11, 255, 14, - 9, 10, 255, 14, 9, 10, 255, 11, 3, 5, 255, 24, 18, 23, 255, - 24, 18, 24, 255, 24, 19, 24, 255, 22, 19, 24, 255, 25, 18, 24, - 255, 25, 17, 25, 255, 20, 12, 21, 255, 23, 16, 27, 255, 25, 24, - 33, 255, 38, 38, 47, 255, 37, 38, 46, 255, 20, 20, 28, 255, 24, - 21, 29, 255, 33, 29, 38, 255, 33, 29, 38, 255, 26, 22, 29, 255, - 20, 16, 22, 255, 28, 22, 29, 255, 34, 29, 35, 255, 16, 10, 17, - 255, 17, 12, 17, 255, 19, 14, 17, 255, 22, 14, 18, 255, 57, 48, - 50, 255, 64, 56, 60, 255, 81, 75, 78, 255, 74, 73, 76, 255, 86, - 90, 92, 255, 149, 151, 153, 255, 176, 175, 175, 255, 198, 192, 190, 255, - 206, 197, 192, 255, 206, 197, 189, 255, 185, 176, 170, 255, 163, 153, 155, - 255, 142, 131, 136, 255, 140, 128, 135, 255, 133, 123, 132, 255, 111, 101, - 111, 255, 96, 88, 98, 255, 110, 105, 115, 255, 95, 89, 98, 255, 105, - 100, 108, 255, 145, 141, 146, 255, 182, 176, 180, 255, 212, 207, 208, 255, - 202, 197, 198, 255, 170, 163, 167, 255, 99, 92, 93, 255, 45, 38, 39, - 255, 24, 16, 17, 255, 35, 27, 29, 255, 32, 25, 27, 255, 22, 15, - 16, 255, 16, 8, 9, 255, 12, 6, 4, 255, 11, 3, 5, 255, 12, - 4, 5, 255, 13, 8, 8, 255, 13, 9, 9, 255, 14, 9, 9, 255, - 24, 16, 19, 255, 22, 14, 18, 255, 24, 17, 20, 255, 22, 14, 18, - 255, 25, 15, 19, 255, 22, 13, 17, 255, 24, 16, 21, 255, 26, 18, - 23, 255, 32, 28, 32, 255, 31, 27, 31, 255, 18, 13, 18, 255, 22, - 18, 22, 255, 27, 20, 24, 255, 27, 20, 24, 255, 31, 23, 28, 255, - 25, 18, 22, 255, 18, 10, 15, 255, 45, 36, 41, 255, 22, 14, 18, - 255, 17, 9, 12, 255, 19, 13, 14, 255, 16, 10, 11, 255, 27, 22, - 23, 255, 54, 49, 50, 255, 61, 56, 57, 255, 62, 56, 57, 255, 46, - 43, 46, 255, 64, 69, 70, 255, 132, 133, 137, 255, 169, 168, 169, 255, - 202, 197, 196, 255, 211, 205, 201, 255, 214, 206, 199, 255, 212, 203, 197, - 255, 206, 194, 195, 255, 196, 185, 186, 255, 195, 183, 186, 255, 187, 177, - 179, 255, 172, 162, 165, 255, 162, 158, 160, 255, 140, 135, 142, 255, 105, - 100, 109, 255, 144, 139, 146, 255, 189, 186, 188, 255, 205, 201, 201, 255, - 207, 202, 203, 255, 193, 185, 187, 255, 142, 134, 136, 255, 85, 75, 76, - 255, 52, 42, 44, 255, 29, 20, 19, 255, 18, 12, 11, 255, 16, 12, - 10, 255, 27, 23, 22, 255, 18, 13, 14, 255, 9, 4, 4, 255, 12, - 4, 6, 255, 11, 3, 5, 255, 9, 4, 5, 255, 11, 6, 7, 255, - 11, 7, 7, 255, 23, 13, 15, 255, 24, 14, 16, 255, 27, 17, 19, - 255, 25, 15, 16, 255, 23, 13, 15, 255, 23, 14, 15, 255, 24, 16, - 17, 255, 26, 18, 19, 255, 26, 18, 20, 255, 22, 14, 15, 255, 22, - 14, 15, 255, 23, 15, 16, 255, 25, 16, 17, 255, 30, 22, 23, 255, - 24, 15, 16, 255, 23, 15, 16, 255, 22, 13, 15, 255, 52, 43, 45, - 255, 19, 11, 12, 255, 19, 10, 12, 255, 21, 11, 13, 255, 20, 10, - 12, 255, 30, 23, 24, 255, 56, 49, 50, 255, 40, 34, 35, 255, 36, - 28, 29, 255, 40, 37, 40, 255, 65, 69, 70, 255, 113, 114, 118, 255, - 148, 146, 149, 255, 191, 187, 188, 255, 204, 198, 197, 255, 211, 204, 199, - 255, 207, 197, 194, 255, 214, 202, 203, 255, 222, 209, 209, 255, 217, 201, - 204, 255, 208, 194, 196, 255, 199, 188, 190, 255, 189, 182, 184, 255, 160, - 155, 162, 255, 110, 105, 115, 255, 147, 143, 149, 255, 187, 184, 185, 255, - 203, 198, 199, 255, 197, 192, 193, 255, 147, 140, 141, 255, 79, 70, 72, - 255, 38, 26, 28, 255, 25, 15, 16, 255, 26, 17, 16, 255, 19, 12, - 11, 255, 12, 8, 6, 255, 10, 6, 4, 255, 18, 14, 14, 255, 20, - 15, 16, 255, 10, 3, 4, 255, 11, 4, 5, 255, 9, 4, 5, 255, - 9, 4, 5, 255, 11, 6, 7, 255, 20, 10, 12, 255, 23, 14, 15, - 255, 25, 15, 17, 255, 22, 12, 14, 255, 25, 13, 15, 255, 26, 14, - 15, 255, 26, 16, 17, 255, 29, 19, 21, 255, 26, 15, 17, 255, 26, - 14, 16, 255, 24, 12, 14, 255, 23, 11, 13, 255, 25, 13, 15, 255, - 27, 15, 17, 255, 28, 16, 18, 255, 27, 15, 16, 255, 28, 16, 18, - 255, 57, 45, 47, 255, 25, 13, 14, 255, 28, 16, 18, 255, 24, 14, - 16, 255, 24, 14, 16, 255, 29, 20, 21, 255, 41, 33, 34, 255, 31, - 22, 23, 255, 35, 25, 27, 255, 48, 43, 47, 255, 62, 63, 66, 255, - 91, 92, 99, 255, 132, 131, 137, 255, 165, 161, 165, 255, 174, 168, 169, - 255, 199, 192, 191, 255, 205, 196, 196, 255, 209, 199, 198, 255, 210, 200, - 199, 255, 221, 208, 210, 255, 212, 201, 202, 255, 199, 189, 190, 255, 173, - 167, 169, 255, 130, 125, 132, 255, 100, 94, 104, 255, 116, 112, 118, 255, - 171, 169, 170, 255, 188, 183, 184, 255, 171, 167, 167, 255, 102, 94, 96, - 255, 49, 41, 42, 255, 50, 38, 40, 255, 16, 6, 8, 255, 13, 5, - 4, 255, 15, 9, 7, 255, 17, 13, 12, 255, 14, 10, 8, 255, 9, - 4, 5, 255, 15, 10, 10, 255, 16, 11, 11, 255, 9, 4, 5, 255, - 11, 3, 5, 255, 11, 3, 4, 255, 12, 4, 6, 255, 21, 10, 9, - 255, 24, 13, 13, 255, 26, 15, 14, 255, 23, 12, 11, 255, 23, 12, - 12, 255, 26, 15, 14, 255, 26, 15, 15, 255, 28, 19, 18, 255, 25, - 12, 12, 255, 26, 12, 12, 255, 25, 11, 11, 255, 25, 11, 11, 255, - 23, 12, 12, 255, 27, 16, 16, 255, 26, 15, 15, 255, 23, 11, 11, - 255, 26, 15, 14, 255, 55, 44, 43, 255, 21, 10, 9, 255, 29, 17, - 19, 255, 28, 14, 17, 255, 28, 16, 18, 255, 35, 23, 25, 255, 28, - 19, 20, 255, 28, 18, 20, 255, 34, 24, 26, 255, 37, 31, 34, 255, - 55, 55, 58, 255, 64, 65, 73, 255, 76, 75, 82, 255, 113, 110, 114, - 255, 137, 132, 135, 255, 172, 166, 166, 255, 181, 174, 175, 255, 188, 182, - 181, 255, 198, 193, 192, 255, 194, 190, 191, 255, 179, 173, 174, 255, 172, - 166, 167, 255, 149, 146, 147, 255, 91, 87, 93, 255, 75, 70, 79, 255, - 82, 77, 84, 255, 114, 112, 113, 255, 131, 126, 127, 255, 96, 91, 92, - 255, 45, 38, 39, 255, 25, 18, 19, 255, 27, 15, 17, 255, 40, 31, - 32, 255, 20, 11, 11, 255, 10, 3, 2, 255, 10, 6, 4, 255, 15, - 11, 9, 255, 15, 10, 11, 255, 9, 4, 5, 255, 13, 8, 9, 255, - 11, 6, 7, 255, 13, 5, 7, 255, 12, 5, 6, 255, 11, 3, 4, - 255, 19, 8, 8, 255, 23, 12, 11, 255, 24, 13, 12, 255, 22, 10, - 10, 255, 24, 10, 10, 255, 25, 12, 12, 255, 26, 13, 13, 255, 27, - 13, 13, 255, 26, 12, 12, 255, 24, 10, 10, 255, 24, 10, 10, 255, - 26, 12, 12, 255, 22, 11, 10, 255, 24, 13, 13, 255, 24, 13, 13, - 255, 23, 12, 11, 255, 26, 13, 13, 255, 55, 43, 43, 255, 22, 11, - 11, 255, 20, 11, 10, 255, 21, 9, 11, 255, 26, 14, 16, 255, 29, - 17, 18, 255, 26, 14, 16, 255, 28, 15, 19, 255, 25, 15, 19, 255, - 36, 28, 32, 255, 35, 32, 35, 255, 32, 28, 36, 255, 48, 44, 52, - 255, 52, 50, 57, 255, 74, 70, 77, 255, 95, 90, 92, 255, 132, 127, - 128, 255, 140, 135, 136, 255, 157, 154, 154, 255, 129, 126, 127, 255, 109, - 106, 107, 255, 118, 116, 116, 255, 86, 83, 85, 255, 64, 60, 65, 255, - 68, 63, 70, 255, 57, 52, 59, 255, 60, 56, 61, 255, 61, 56, 59, - 255, 35, 30, 31, 255, 20, 15, 16, 255, 11, 5, 6, 255, 19, 10, - 9, 255, 14, 5, 4, 255, 22, 13, 13, 255, 10, 3, 2, 255, 9, - 5, 3, 255, 9, 5, 3, 255, 13, 9, 8, 255, 11, 7, 5, 255, - 10, 5, 6, 255, 10, 5, 6, 255, 9, 4, 5, 255, 9, 4, 5, - 255, 11, 3, 5, 255, 22, 11, 10, 255, 25, 14, 14, 255, 24, 13, - 12, 255, 22, 11, 10, 255, 20, 9, 9, 255, 22, 10, 10, 255, 21, - 10, 9, 255, 22, 11, 10, 255, 21, 10, 9, 255, 23, 12, 11, 255, - 24, 13, 12, 255, 23, 12, 11, 255, 22, 11, 10, 255, 22, 11, 10, - 255, 22, 11, 11, 255, 22, 11, 10, 255, 21, 7, 7, 255, 46, 35, - 34, 255, 23, 12, 11, 255, 16, 7, 6, 255, 22, 11, 10, 255, 24, - 12, 12, 255, 24, 13, 13, 255, 24, 13, 13, 255, 22, 11, 11, 255, - 22, 10, 11, 255, 27, 17, 17, 255, 23, 13, 13, 255, 20, 12, 15, - 255, 18, 10, 15, 255, 26, 20, 24, 255, 42, 38, 41, 255, 53, 45, - 49, 255, 58, 52, 55, 255, 83, 77, 80, 255, 91, 85, 88, 255, 81, - 76, 79, 255, 60, 55, 58, 255, 64, 58, 61, 255, 51, 45, 48, 255, - 48, 42, 47, 255, 38, 32, 36, 255, 27, 21, 25, 255, 24, 17, 23, - 255, 22, 17, 19, 255, 18, 13, 14, 255, 20, 15, 16, 255, 10, 6, - 4, 255, 9, 4, 2, 255, 14, 9, 8, 255, 10, 5, 4, 255, 10, - 5, 4, 255, 9, 5, 3, 255, 9, 5, 3, 255, 8, 4, 2, 255, - 9, 5, 3, 255, 9, 4, 5, 255, 9, 4, 5, 255, 10, 5, 6, - 255, 10, 5, 6, 255, 11, 3, 5, 255, 23, 12, 11, 255, 25, 14, - 13, 255, 22, 10, 10, 255, 21, 10, 9, 255, 19, 8, 7, 255, 21, - 10, 10, 255, 22, 11, 11, 255, 26, 14, 14, 255, 20, 9, 8, 255, - 23, 12, 11, 255, 23, 11, 11, 255, 17, 6, 5, 255, 19, 8, 7, - 255, 18, 7, 6, 255, 17, 6, 6, 255, 16, 5, 4, 255, 18, 4, - 4, 255, 27, 16, 15, 255, 25, 14, 13, 255, 11, 3, 2, 255, 13, - 4, 3, 255, 14, 5, 5, 255, 15, 7, 6, 255, 15, 6, 5, 255, - 16, 5, 4, 255, 18, 7, 7, 255, 18, 7, 6, 255, 17, 5, 5, - 255, 12, 2, 3, 255, 8, 1, 2, 255, 13, 8, 9, 255, 29, 24, - 25, 255, 24, 15, 19, 255, 25, 17, 21, 255, 42, 34, 38, 255, 31, - 26, 29, 255, 37, 31, 34, 255, 26, 21, 24, 255, 29, 24, 27, 255, - 23, 18, 21, 255, 20, 14, 18, 255, 13, 7, 10, 255, 8, 2, 5, - 255, 10, 4, 8, 255, 11, 6, 8, 255, 10, 5, 6, 255, 13, 9, - 7, 255, 15, 11, 9, 255, 9, 5, 3, 255, 8, 4, 3, 255, 15, - 11, 9, 255, 10, 6, 5, 255, 9, 5, 3, 255, 9, 5, 3, 255, - 9, 5, 3, 255, 9, 5, 3, 255, 9, 5, 3, 255, 9, 5, 3, - 255, 11, 7, 5, 255, 11, 7, 5, 255, 11, 3, 5, 255, 23, 12, - 11, 255, 23, 12, 11, 255, 20, 9, 8, 255, 19, 7, 7, 255, 16, - 7, 6, 255, 16, 7, 6, 255, 20, 11, 10, 255, 21, 12, 11, 255, - 16, 7, 7, 255, 18, 9, 8, 255, 17, 8, 8, 255, 14, 5, 4, - 255, 17, 6, 5, 255, 16, 5, 4, 255, 17, 6, 5, 255, 16, 5, - 4, 255, 18, 4, 4, 255, 16, 5, 4, 255, 15, 4, 4, 255, 12, - 3, 2, 255, 11, 3, 0, 255, 13, 5, 1, 255, 13, 5, 1, 255, - 14, 6, 3, 255, 15, 4, 3, 255, 15, 4, 3, 255, 15, 4, 3, - 255, 15, 4, 3, 255, 12, 3, 4, 255, 10, 2, 3, 255, 12, 4, - 6, 255, 27, 20, 21, 255, 13, 3, 5, 255, 20, 10, 12, 255, 25, - 18, 19, 255, 13, 6, 7, 255, 16, 9, 10, 255, 14, 6, 7, 255, - 15, 7, 8, 255, 18, 10, 12, 255, 14, 7, 9, 255, 12, 4, 7, - 255, 10, 1, 5, 255, 11, 3, 4, 255, 10, 5, 6, 255, 9, 5, - 3, 255, 11, 7, 5, 255, 8, 5, 1, 255, 11, 7, 6, 255, 8, - 4, 2, 255, 8, 4, 2, 255, 13, 9, 8, 255, 10, 6, 4, 255, - 9, 5, 3, 255, 9, 5, 3, 255, 9, 5, 3, 255, 9, 5, 3, - 255, 9, 5, 3, 255, 10, 6, 4, 255, 10, 6, 4, 255, 11, 3, - 5, -}; diff --git a/include/io_file.hpp b/include/io_file.hpp deleted file mode 100644 index 17e6d843..00000000 --- a/include/io_file.hpp +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once -#include -#include -#include - -class IOFile { - FILE* handle = nullptr; - static inline std::filesystem::path appData = ""; // Directory for holding app data. AppData on Windows - - public: - IOFile() : handle(nullptr) {} - IOFile(FILE* handle) : handle(handle) {} - IOFile(const std::filesystem::path& path, const char* permissions = "rb"); - - bool isOpen() { return handle != nullptr; } - bool open(const std::filesystem::path& path, const char* permissions = "rb"); - bool open(const char* filename, const char* permissions = "rb"); - void close(); - - std::pair read(void* data, std::size_t length, std::size_t dataSize); - std::pair readBytes(void* data, std::size_t count); - - std::pair write(const void* data, std::size_t length, std::size_t dataSize); - std::pair writeBytes(const void* data, std::size_t count); - - std::optional size(); - - bool seek(std::int64_t offset, int origin = SEEK_SET); - bool rewind(); - bool flush(); - FILE* getHandle(); - static void setAppDataDir(const std::filesystem::path& dir); - static std::filesystem::path getAppData() { return appData; } - - // Sets the size of the file to "size" and returns whether it succeeded or not - bool setSize(std::uint64_t size); -}; \ No newline at end of file diff --git a/include/ipc.hpp b/include/ipc.hpp deleted file mode 100644 index 67a8897e..00000000 --- a/include/ipc.hpp +++ /dev/null @@ -1,9 +0,0 @@ -#pragma once -#include - -namespace IPC { - constexpr std::uint32_t responseHeader(std::uint32_t commandID, std::uint32_t normalResponses, std::uint32_t translateResponses) { - // TODO: Maybe validate the response count stuff fits in 6 bits - return (commandID << 16) | (normalResponses << 6) | translateResponses; - } -} \ No newline at end of file diff --git a/include/kernel/config_mem.hpp b/include/kernel/config_mem.hpp deleted file mode 100644 index 81f0fef1..00000000 --- a/include/kernel/config_mem.hpp +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once -#include "helpers.hpp" - -// Configuration memory addresses -namespace ConfigMem { - enum : u32 { - KernelVersionMinor = 0x1FF80002, - KernelVersionMajor = 0x1FF80003, - SyscoreVer = 0x1FF80010, - EnvInfo = 0x1FF80014, - AppMemAlloc = 0x1FF80040, - FirmUnknown = 0x1FF80060, - FirmRevision = 0x1FF80061, - FirmVersionMinor = 0x1FF80062, - FirmVersionMajor = 0x1FF80063, - FirmSyscoreVer = 0x1FF80064, - FirmSdkVer = 0x1FF80068, - - HardwareType = 0x1FF81004, - Datetime0 = 0x1FF81020, - WifiMac = 0x1FF81060, - WifiLevel = 0x1FF81066, - NetworkState = 0x1FF81067, - SliderState3D = 0x1FF81080, - LedState3D = 0x1FF81084, - BatteryState = 0x1FF81085, - Unknown1086 = 0x1FF81086, - HeadphonesConnectedMaybe = 0x1FF810C0 // TODO: What is actually stored here? - }; - - // Shows what type of hardware we're running on - namespace HardwareCodes { - enum : u8 { Product = 1, Devboard = 2, Debugger = 3, Capture = 4 }; - } -} // namespace ConfigMem diff --git a/include/kernel/handles.hpp b/include/kernel/handles.hpp deleted file mode 100644 index fe746b65..00000000 --- a/include/kernel/handles.hpp +++ /dev/null @@ -1,113 +0,0 @@ -#pragma once -#include "helpers.hpp" - -using Handle = u32; - -namespace KernelHandles { - enum : u32 { - Max = 0xFFFF7FFF, // Max handle the kernel can automagically allocate - - // Hardcoded handles - CurrentThread = 0xFFFF8000, // Used by the original kernel - CurrentProcess = 0xFFFF8001, // Used by the original kernel - AC, // Something network related - ACT, // Handles NNID accounts - AM, // Application manager - APT, // App Title something service? - BOSS, // Streetpass stuff? - CAM, // Camera service - CECD, // More Streetpass stuff? - CFG_U, // CFG service (Console & region info) - CFG_I, - CFG_S, // Used by most system apps in lieu of cfg:u - CSND, // Plays audio directly from PCM samples - DLP_SRVR, // Download Play: Server. Used for network play. - DSP, // DSP service (Used for audio decoding and output) - HID, // HID service (Handles input-related things including gyro. Does NOT handle New3DS controls or CirclePadPro) - HTTP, // HTTP service (Handles HTTP requests) - IR_USER, // One of 3 infrared communication services - FRD_A, // Friend service (Miiverse friend service) - FRD_U, - FS, // Filesystem service - GPU, // GPU service - LCD, // LCD service (Used for configuring the displays) - LDR_RO, // Loader service. Used for loading CROs. - MCU_HWC, // Used for various MCU hardware-related things like battery control - MIC, // MIC service (Controls the microphone) - NFC, // NFC (Duh), used for Amiibo - NIM, // Updates, DLC, etc - NDM, // ????? - NS_S, // Nintendo Shell service - NWM_UDS, // Local multiplayer - NEWS_U, // This service literally has 1 command (AddNotification) and I don't even understand what it does - PTM_U, // PTM service (Used for accessing various console info, such as battery, shell and pedometer state) - PTM_SYSM, // PTM system service - PTM_PLAY, // PTM Play service, used for retrieving play history - SOC, // Socket service - SSL, // SSL service (Totally didn't expect that) - Y2R, // Also does camera stuff - - MinServiceHandle = AC, - MaxServiceHandle = Y2R, - - GSPSharedMemHandle = MaxServiceHandle + 1, // Handle for the GSP shared memory - FontSharedMemHandle, - CSNDSharedMemHandle, - APTCaptureSharedMemHandle, // Shared memory for display capture info, - HIDSharedMemHandle, - - MinSharedMemHandle = GSPSharedMemHandle, - MaxSharedMemHandle = HIDSharedMemHandle, - }; - - // Returns whether "handle" belongs to one of the OS services - static constexpr bool isServiceHandle(Handle handle) { - return handle >= MinServiceHandle && handle <= MaxServiceHandle; - } - - // Returns whether "handle" belongs to one of the OS services' shared memory areas - static constexpr bool isSharedMemHandle(Handle handle) { - return handle >= MinSharedMemHandle && handle <= MaxSharedMemHandle; - } - - // Returns the name of a handle as a string based on the given handle - static const char* getServiceName(Handle handle) { - switch (handle) { - case AC: return "AC"; - case ACT: return "ACT"; - case AM: return "AM"; - case APT: return "APT"; - case BOSS: return "BOSS"; - case CAM: return "CAM"; - case CECD: return "CECD"; - case CFG_U: return "CFG:U"; - case CFG_I: return "CFG:I"; - case CSND: return "CSND"; - case DSP: return "DSP"; - case DLP_SRVR: return "DLP::SRVR"; - case HID: return "HID"; - case HTTP: return "HTTP"; - case IR_USER: return "IR:USER"; - case FRD_A: return "FRD:A"; - case FRD_U: return "FRD:U"; - case FS: return "FS"; - case GPU: return "GSP::GPU"; - case LCD: return "GSP::LCD"; - case LDR_RO: return "LDR:RO"; - case MCU_HWC: return "MCU::HWC"; - case MIC: return "MIC"; - case NDM: return "NDM"; - case NEWS_U: return "NEWS_U"; - case NWM_UDS: return "nwm::UDS"; - case NFC: return "NFC"; - case NIM: return "NIM"; - case PTM_U: return "PTM:U"; - case PTM_SYSM: return "PTM:SYSM"; - case PTM_PLAY: return "PTM:PLAY"; - case SOC: return "SOC"; - case SSL: return "SSL"; - case Y2R: return "Y2R"; - default: return "Unknown"; - } - } -} diff --git a/include/kernel/kernel.hpp b/include/kernel/kernel.hpp deleted file mode 100644 index fc7fe3f3..00000000 --- a/include/kernel/kernel.hpp +++ /dev/null @@ -1,249 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include - -#include "config.hpp" -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "resource_limits.hpp" -#include "services/service_manager.hpp" - -class CPU; - -class Kernel { - std::span regs; - CPU& cpu; - Memory& mem; - - // The handle number for the next kernel object to be created - u32 handleCounter; - // A list of our OS threads, the max number of which depends on the resource limit (hardcoded 32 per process on retail it seems). - // We have an extra thread for when no thread is capable of running. This thread is called the "idle thread" in our code - // This thread is set up in setupIdleThread and just yields in a loop to see if any other thread has woken up - std::array threads; - static constexpr int idleThreadIndex = appResourceLimits.maxThreads; - // Our waitlist system uses a bitfield of 64 bits to show which threads are waiting on an object. - // That means we can have a maximum of 63 threads + 1 idle thread. This assert should never trigger because the max thread # is 32 - // But we have it here for safety purposes - static_assert(appResourceLimits.maxThreads <= 63, "The waitlist system is built on the premise that <= 63 threads max can be active"); - - std::vector objects; - std::vector portHandles; - std::vector mutexHandles; - std::vector timerHandles; - - // Thread indices, sorted by priority - std::vector threadIndices; - - Handle currentProcess; - Handle mainThread; - int currentThreadIndex; - Handle srvHandle; // Handle for the special service manager port "srv:" - Handle errorPortHandle; // Handle for the err:f port used for displaying errors - - u32 arbiterCount; - u32 threadCount; // How many threads in our thread pool have been used as of now (Up to 32) - u32 aliveThreadCount; // How many of these threads are actually alive? - ServiceManager serviceManager; - - // Top 8 bits are the major version, bottom 8 are the minor version - u16 kernelVersion = 0; - - // Shows whether a reschedule will be need - bool needReschedule = false; - - Handle makeArbiter(); - Handle makeProcess(u32 id); - Handle makePort(const char* name); - Handle makeSession(Handle port); - Handle makeThread(u32 entrypoint, u32 initialSP, u32 priority, ProcessorID id, u32 arg,ThreadStatus status = ThreadStatus::Dormant); - Handle makeMemoryBlock(u32 addr, u32 size, u32 myPermission, u32 otherPermission); - -public: - // Needs to be public to be accessible to the APT/HID services - Handle makeEvent(ResetType resetType, Event::CallbackType callback = Event::CallbackType::None); - // Needs to be public to be accessible to the APT/DSP services - Handle makeMutex(bool locked = false); - // Needs to be public to be accessible to the service manager port - Handle makeSemaphore(u32 initialCount, u32 maximumCount); - Handle makeTimer(ResetType resetType); - void pollTimers(); - - // Signals an event, returns true on success or false if the event does not exist - bool signalEvent(Handle e); - // Run the callback for "special" events that have callbacks - void runEventCallback(Event::CallbackType callback); - - void clearEvent(Handle e) { - KernelObject* object = getObject(e, KernelObjectType::Event); - if (object != nullptr) { - object->getData()->fired = false; - } - } - - private: - void signalArbiter(u32 waitingAddress, s32 threadCount); - void sleepThread(s64 ns); - void sleepThreadOnArbiter(u32 waitingAddress); - void switchThread(int newThreadIndex); - void sortThreads(); - std::optional getNextThread(); - void rescheduleThreads(); - bool canThreadRun(const Thread& t); - bool shouldWaitOnObject(KernelObject* object); - void releaseMutex(Mutex* moo); - void cancelTimer(Timer* timer); - void signalTimer(Handle timerHandle, Timer* timer); - u64 getWakeupTick(s64 ns); - - // Wake up the thread with the highest priority out of all threads in the waitlist - // Returns the index of the woken up thread - // Do not call this function with an empty waitlist!!! - int wakeupOneThread(u64 waitlist, Handle handle); - void wakeupAllThreads(u64 waitlist, Handle handle); - - std::optional getPortHandle(const char* name); - void deleteObjectData(KernelObject& object); - - KernelObject* getProcessFromPID(Handle handle); - s32 getCurrentResourceValue(const KernelObject* limit, u32 resourceName); - u32 getMaxForResource(const KernelObject* limit, u32 resourceName); - u32 getTLSPointer(); - void setupIdleThread(); - - void acquireSyncObject(KernelObject* object, const Thread& thread); - bool isWaitable(const KernelObject* object); - - // Functions for the err:f port - void handleErrorSyncRequest(u32 messagePointer); - void throwError(u32 messagePointer); - - std::string getProcessName(u32 pid); - const char* resetTypeToString(u32 type); - - MAKE_LOG_FUNCTION(log, kernelLogger) - MAKE_LOG_FUNCTION(logSVC, svcLogger) - MAKE_LOG_FUNCTION(logThread, threadLogger) - MAKE_LOG_FUNCTION(logError, errorLogger) - MAKE_LOG_FUNCTION(logFileIO, fileIOLogger) - MAKE_LOG_FUNCTION_USER(logDebugString, debugStringLogger) - - // SVC implementations - void arbitrateAddress(); - void createAddressArbiter(); - void createMemoryBlock(); - void createThread(); - void controlMemory(); - void duplicateHandle(); - void exitThread(); - void mapMemoryBlock(); - void unmapMemoryBlock(); - void queryMemory(); - void getCurrentProcessorNumber(); - void getProcessID(); - void getProcessInfo(); - void getResourceLimit(); - void getResourceLimitLimitValues(); - void getResourceLimitCurrentValues(); - void getSystemInfo(); - void getSystemTick(); - void getThreadContext(); - void getThreadID(); - void getThreadIdealProcessor(); - void getThreadPriority(); - void sendSyncRequest(); - void setThreadPriority(); - void svcCancelTimer(); - void svcClearEvent(); - void svcClearTimer(); - void svcCloseHandle(); - void svcCreateEvent(); - void svcCreateMutex(); - void svcCreateSemaphore(); - void svcCreateTimer(); - void svcReleaseMutex(); - void svcReleaseSemaphore(); - void svcSignalEvent(); - void svcSetTimer(); - void svcSleepThread(); - void connectToPort(); - void outputDebugString(); - void waitSynchronization1(); - void waitSynchronizationN(); - - // File operations - void handleFileOperation(u32 messagePointer, Handle file); - void closeFile(u32 messagePointer, Handle file); - void flushFile(u32 messagePointer, Handle file); - void readFile(u32 messagePointer, Handle file); - void writeFile(u32 messagePointer, Handle file); - void getFileSize(u32 messagePointer, Handle file); - void openLinkFile(u32 messagePointer, Handle file); - void setFileSize(u32 messagePointer, Handle file); - void setFilePriority(u32 messagePointer, Handle file); - - // Directory operations - void handleDirectoryOperation(u32 messagePointer, Handle directory); - void closeDirectory(u32 messagePointer, Handle directory); - void readDirectory(u32 messagePointer, Handle directory); - -public: - Kernel(CPU& cpu, Memory& mem, GPU& gpu, const EmulatorConfig& config); - void initializeFS() { return serviceManager.initializeFS(); } - void setVersion(u8 major, u8 minor); - void serviceSVC(u32 svc); - void reset(); - - void requireReschedule() { needReschedule = true; } - - void evalReschedule() { - if (needReschedule) { - needReschedule = false; - rescheduleThreads(); - } - } - - Handle makeObject(KernelObjectType type) { - if (handleCounter > KernelHandles::Max) [[unlikely]] { - Helpers::panic("Hlep we somehow created enough kernel objects to overflow this thing"); - } - - objects.push_back(KernelObject(handleCounter, type)); - log("Created %s object with handle %d\n", kernelObjectTypeToString(type), handleCounter); - return handleCounter++; - } - - std::vector& getObjects() { - return objects; - } - - // Get pointer to the object with the specified handle - KernelObject* getObject(Handle handle) { - // Accessing an object that has not been created - if (handle >= objects.size()) [[unlikely]] { - return nullptr; - } - - return &objects[handle]; - } - - // Get pointer to the object with the specified handle and type - KernelObject* getObject(Handle handle, KernelObjectType type) { - if (handle >= objects.size() || objects[handle].type != type) [[unlikely]] { - return nullptr; - } - - return &objects[handle]; - } - - ServiceManager& getServiceManager() { return serviceManager; } - - void sendGPUInterrupt(GPUInterrupt type) { serviceManager.sendGPUInterrupt(type); } - void clearInstructionCache(); -}; \ No newline at end of file diff --git a/include/kernel/kernel_types.hpp b/include/kernel/kernel_types.hpp deleted file mode 100644 index a68ef8d5..00000000 --- a/include/kernel/kernel_types.hpp +++ /dev/null @@ -1,245 +0,0 @@ -#pragma once -#include -#include -#include "fs/archive_base.hpp" -#include "handles.hpp" -#include "helpers.hpp" -#include "result/result.hpp" - -enum class KernelObjectType : u8 { - AddressArbiter, Archive, Directory, File, MemoryBlock, Process, ResourceLimit, Session, Dummy, - // Bundle waitable objects together in the enum to let the compiler optimize certain checks better - Event, Mutex, Port, Semaphore, Timer, Thread -}; - -enum class ResourceLimitCategory : int { - Application = 0, - SystemApplet = 1, - LibraryApplet = 2, - Misc = 3 -}; - -// Reset types (for use with events and timers) -enum class ResetType { - OneShot = 0, // When the primitive is signaled, it will wake up exactly one thread and will clear itself automatically. - Sticky = 1, // When the primitive is signaled, it will wake up all threads and it won't clear itself automatically. - Pulse = 2, // Only meaningful for timers: same as ONESHOT but it will periodically signal the timer instead of just once. -}; - -enum class ArbitrationType { - Signal = 0, - WaitIfLess = 1, - DecrementAndWaitIfLess = 2, - WaitIfLessTimeout = 3, - DecrementAndWaitIfLessTimeout = 4 -}; - -enum class ProcessorID : s32 { - AllCPUs = -1, - Default = -2, - - AppCore = 0, - Syscore = 1, - New3DSExtra1 = 2, - New3DSExtra2 = 3 -}; - -struct AddressArbiter {}; - -struct ResourceLimits { - Handle handle; - - s32 currentCommit = 0; -}; - -struct Process { - // Resource limits for this process - ResourceLimits limits; - // Process ID - u32 id; - - Process(u32 id) : id(id) {} -}; - -struct Event { - // Some events (for now, only the DSP semaphore events) need to execute a callback when signalled - // This enum stores what kind of callback they should execute - enum class CallbackType : u32 { - None, DSPSemaphore, - }; - - u64 waitlist; // A bitfield where each bit symbolizes if the thread with thread with the corresponding index is waiting on the event - ResetType resetType = ResetType::OneShot; - CallbackType callback = CallbackType::None; - bool fired = false; - - Event(ResetType resetType) : resetType(resetType), waitlist(0) {} - Event(ResetType resetType, CallbackType cb) : resetType(resetType), waitlist(0), callback(cb) {} -}; - -struct Port { - static constexpr u32 maxNameLen = 11; - - char name[maxNameLen + 1] = {}; - bool isPublic = false; // Setting name=NULL creates a private port not accessible from svcConnectToPort. - - Port(const char* name) { - // If the name is empty (ie the first char is the null terminator) then the port is private - isPublic = name[0] != '\0'; - std::strncpy(this->name, name, maxNameLen); - } -}; - -struct Session { - Handle portHandle; // The port this session is subscribed to - Session(Handle portHandle) : portHandle(portHandle) {} -}; - -enum class ThreadStatus { - Running, // Currently running - Ready, // Ready to run - WaitArbiter, // Waiting on an address arbiter - WaitSleep, // Waiting due to a SleepThread SVC - WaitSync1, // Waiting for the single object in the wait list to be ready - WaitSyncAny, // Wait for one object of the many that might be in the wait list to be ready - WaitSyncAll, // Waiting for ALL sync objects in its wait list to be ready - WaitIPC, // Waiting for the reply from an IPC request - Dormant, // Created but not yet made ready - Dead // Run to completion, or forcefully terminated -}; - -struct Thread { - u32 initialSP; // Initial r13 value - u32 entrypoint; // Initial r15 value - u32 priority; - u32 arg; - ProcessorID processorID; - ThreadStatus status; - Handle handle; // OS handle for this thread - int index; // Index of the thread. 0 for the first thread, 1 for the second, and so on - - // The waiting address for threads that are waiting on an AddressArbiter - u32 waitingAddress; - - // For WaitSynchronization(N): A vector of objects this thread is waiting for - std::vector waitList; - // For WaitSynchronizationN: Shows whether the object should wait for all objects in the wait list or just one - bool waitAll; - // For WaitSynchronizationN: The "out" pointer - u32 outPointer; - u64 wakeupTick; - - // Thread context used for switching between threads - std::array gprs; - std::array fprs; // Stored as u32 because dynarmic does it - u32 cpsr; - u32 fpscr; - u32 tlsBase; // Base pointer for thread-local storage - - // A list of threads waiting for this thread to terminate. Yes, threads are sync objects too. - u64 threadsWaitingForTermination; -}; - -static const char* kernelObjectTypeToString(KernelObjectType t) { - switch (t) { - case KernelObjectType::AddressArbiter: return "address arbiter"; - case KernelObjectType::Archive: return "archive"; - case KernelObjectType::Directory: return "directory"; - case KernelObjectType::Event: return "event"; - case KernelObjectType::File: return "file"; - case KernelObjectType::MemoryBlock: return "memory block"; - case KernelObjectType::Port: return "port"; - case KernelObjectType::Process: return "process"; - case KernelObjectType::ResourceLimit: return "resource limit"; - case KernelObjectType::Session: return "session"; - case KernelObjectType::Mutex: return "mutex"; - case KernelObjectType::Semaphore: return "semaphore"; - case KernelObjectType::Thread: return "thread"; - case KernelObjectType::Dummy: return "dummy"; - default: return "unknown"; - } -} - -struct Mutex { - u64 waitlist; // Refer to the getWaitlist function below for documentation - Handle ownerThread = 0; // Index of the thread that holds the mutex if it's locked - Handle handle; // Handle of the mutex itself - u32 lockCount; // Number of times this mutex has been locked by its daddy. 0 = not locked - bool locked; - - Mutex(bool lock, Handle handle) : locked(lock), waitlist(0), lockCount(lock ? 1 : 0), handle(handle) {} -}; - -struct Semaphore { - u64 waitlist; // Refer to the getWaitlist function below for documentation - s32 availableCount; - s32 maximumCount; - - Semaphore(s32 initialCount, s32 maximumCount) : availableCount(initialCount), maximumCount(maximumCount), waitlist(0) {} -}; - -struct Timer { - u64 waitlist; // Refer to the getWaitlist function below for documentation - ResetType resetType = ResetType::OneShot; - - u64 fireTick; // CPU tick the timer will be fired - u64 interval; // Number of ns until the timer fires for the second and future times - bool fired; // Has this timer been signalled? - bool running; // Is this timer running or stopped? - - Timer(ResetType type) : resetType(type), fireTick(0), interval(0), waitlist(0), fired(false), running(false) {} -}; - -struct MemoryBlock { - u32 addr = 0; - u32 size = 0; - u32 myPermission = 0; - u32 otherPermission = 0; - bool mapped = false; - - MemoryBlock(u32 addr, u32 size, u32 myPerm, u32 otherPerm) : addr(addr), size(size), myPermission(myPerm), otherPermission(otherPerm), - mapped(false) {} -}; - -// Generic kernel object class -struct KernelObject { - Handle handle = 0; // A u32 the OS will use to identify objects - void* data = nullptr; - KernelObjectType type; - - KernelObject(Handle handle, KernelObjectType type) : handle(handle), type(type) {} - - // Our destructor does not free the data in order to avoid it being freed when our std::vector is expanded - // Thus, the kernel needs to delete it when appropriate - ~KernelObject() {} - - template - T* getData() { - return static_cast(data); - } - - const char* getTypeName() const { - return kernelObjectTypeToString(type); - } - - // Retrieves a reference to the waitlist for a specified object - // We return a reference because this function is only called in the kernel threading internals - // We want the kernel to be able to easily manage waitlists, by reading/parsing them or setting/clearing bits. - // As we mention in the definition of the "Event" struct, the format for wailists is very simple and made to be efficient. - // Each bit corresponds to a thread index and denotes whether the corresponding thread is waiting on this object - // For example if bit 0 of the wait list is set, then the thread with index 0 is waiting on our object - u64& getWaitlist() { - // This code is actually kinda trash but eh good enough - switch (type) { - case KernelObjectType::Event: return getData()->waitlist; - case KernelObjectType::Mutex: return getData()->waitlist; - case KernelObjectType::Semaphore: return getData()->waitlist; - case KernelObjectType::Thread: return getData()->threadsWaitingForTermination; - case KernelObjectType::Timer: return getData()->waitlist; - - // This should be unreachable once we fully implement sync objects - default: [[unlikely]] - Helpers::panic("Called GetWaitList on kernel object without a waitlist (Type: %s)", getTypeName()); - } - } -}; \ No newline at end of file diff --git a/include/kernel/resource_limits.hpp b/include/kernel/resource_limits.hpp deleted file mode 100644 index 85f1a59b..00000000 --- a/include/kernel/resource_limits.hpp +++ /dev/null @@ -1,88 +0,0 @@ -#pragma once -#include "helpers.hpp" - -// Values and resource limit structure taken from Citra - -struct ResourceLimitValues { - u32 maxPriority; - u32 maxCommit; - u32 maxThreads; - u32 maxEvents; - u32 maxMutexes; - u32 maxSemaphores; - u32 maxTimers; - u32 maxSharedMem; - u32 maxAddressArbiters; - u32 maxCPUTime; -}; - -// APPLICATION resource limit -static constexpr ResourceLimitValues appResourceLimits = { - .maxPriority = 0x18, - .maxCommit = 0x4000000, - .maxThreads = 0x20, - .maxEvents = 0x20, - .maxMutexes = 0x20, - .maxSemaphores = 0x8, - .maxTimers = 0x8, - .maxSharedMem = 0x20, - .maxAddressArbiters = 0x2, - .maxCPUTime = 0x1E -}; - -// SYS_APPLET resource limit -static constexpr ResourceLimitValues sysAppletResourceLimits = { - .maxPriority = 0x4, - .maxCommit = 0x5E00000, - .maxThreads = 0x1D, - .maxEvents = 0xB, - .maxMutexes = 0x8, - .maxSemaphores = 0x4, - .maxTimers = 0x4, - .maxSharedMem = 0x8, - .maxAddressArbiters = 0x3, - .maxCPUTime = 0x2710 -}; - -// LIB_APPLET resource limit -static constexpr ResourceLimitValues libAppletResourceLimits = { - .maxPriority = 0x4, - .maxCommit = 0x600000, - .maxThreads = 0xE, - .maxEvents = 0x8, - .maxMutexes = 0x8, - .maxSemaphores = 0x4, - .maxTimers = 0x4, - .maxSharedMem = 0x8, - .maxAddressArbiters = 0x1, - .maxCPUTime = 0x2710 -}; - -// OTHER resource limit -static constexpr ResourceLimitValues otherResourceLimits = { - .maxPriority = 0x4, - .maxCommit = 0x2180000, - .maxThreads = 0xE1, - .maxEvents = 0x108, - .maxMutexes = 0x25, - .maxSemaphores = 0x43, - .maxTimers = 0x2C, - .maxSharedMem = 0x1F, - .maxAddressArbiters = 0x2D, - .maxCPUTime = 0x3E8 -}; - -namespace ResourceType { - enum : u32 { - Priority = 0, - Commit = 1, - Thread = 2, - Events = 3, - Mutex = 4, - Semaphore = 5, - Timer = 6, - SharedMem = 7, - AddressArbiter = 8, - CPUTime = 9 - }; -} \ No newline at end of file diff --git a/include/loader/3dsx.hpp b/include/loader/3dsx.hpp deleted file mode 100644 index 9d351832..00000000 --- a/include/loader/3dsx.hpp +++ /dev/null @@ -1,80 +0,0 @@ -#pragma once -#include -#include "helpers.hpp" -#include "io_file.hpp" -#include "loader/ncch.hpp" - -struct HB3DSX { - // File layout: - // - File header - // - Code, rodata and data relocation table headers - // - Code segment - // - Rodata segment - // - Loadable (non-BSS) part of the data segment - // - Code relocation table - // - Rodata relocation table - // - Data relocation table - - // Memory layout before relocations are applied: - // [0..codeSegSize) -> code segment - // [codeSegSize..rodataSegSize) -> rodata segment - // [rodataSegSize..dataSegSize) -> data segment - - // Memory layout after relocations are applied: well, however the loader sets it up :) - // The entrypoint is always the start of the code segment. - // The BSS section must be cleared manually by the application. - - // File header - struct Header { - // minus char magic[4] - u16 headerSize; - u16 relocHeaderSize; - u32 formatVer; - u32 flags; - - // Sizes of the code, rodata and data segments + - // size of the BSS section (uninitialized latter half of the data segment) - u32 codeSegSize, rodataSegSize, dataSegSize, bssSize; - }; - - // Relocation header: all fields (even extra unknown fields) are guaranteed to be relocation counts. - struct RelocHeader { - u32 absoluteCount; // # of absolute relocations (that is, fix address to post-relocation memory layout) - u32 relativeCount; // # of cross-segment relative relocations (that is, 32bit signed offsets that need to be patched) - // more? - - // Relocations are written in this order: - // - Absolute relocs - // - Relative relocs - }; - - enum class RelocType { - Absolute, - Relative, - }; - - // Relocation entry: from the current pointer, skip X words and patch Y words - struct Reloc { - u16 skip, patch; - }; - - // _prm structure - static constexpr std::array PRM_MAGIC = {'_', 'P', 'R', 'M'}; - struct PrmStruct { - char magic[4]; - u32 pSrvOverride; - u32 aptAppId; - u32 heapSize, linearHeapSize; - u32 pArgList; - u32 runFlags; - }; - - IOFile file; - - static constexpr u32 entrypoint = 0x00100000; // Initial ARM11 PC - u32 romFSSize = 0; - u32 romFSOffset = 0; - - bool hasRomFs() const; - std::pair readRomFSBytes(void *dst, std::size_t offset, std::size_t size); -}; diff --git a/include/loader/lz77.hpp b/include/loader/lz77.hpp deleted file mode 100644 index 8adbe22d..00000000 --- a/include/loader/lz77.hpp +++ /dev/null @@ -1,17 +0,0 @@ -#pragma once -#include -#include "helpers.hpp" - -// For parsing the LZ77 format used for compressing the .code file in the ExeFS -namespace CartLZ77 { - // Retrieves the uncompressed size of the compressed LZ77 data stored in buffer with a specific compressed size - u32 decompressedSize(const u8* buffer, u32 compressedSize); - - template - static u32 decompressedSize(const std::vector& buffer) { - return decompressedSize((u8*)buffer.data(), u32(buffer.size() * sizeof(T))); - } - - // Decompresses an LZ77-compressed buffer stored in input to output - bool decompress(std::vector& output, const std::vector& input); -} // End namespace CartLZ77 diff --git a/include/loader/ncch.hpp b/include/loader/ncch.hpp deleted file mode 100644 index 42ce1590..00000000 --- a/include/loader/ncch.hpp +++ /dev/null @@ -1,88 +0,0 @@ -#pragma once -#include -#include -#include - -#include "crypto/aes_engine.hpp" -#include "helpers.hpp" -#include "io_file.hpp" -#include "services/region_codes.hpp" - -struct NCCH { - struct EncryptionInfo { - Crypto::AESKey normalKey; - Crypto::AESKey initialCounter; - }; - - struct FSInfo { // Info on the ExeFS/RomFS - u64 offset = 0; - u64 size = 0; - u64 hashRegionSize = 0; - std::optional encryptionInfo; - }; - - // Descriptions for .text, .data and .rodata sections - struct CodeSetInfo { - u32 address = 0; - u32 pageCount = 0; - u32 size = 0; - - // Extract the code set info from the relevant header data - void extract(const u8 *headerEntry) { - address = *(u32 *)&headerEntry[0]; - pageCount = *(u32 *)&headerEntry[4]; - size = *(u32 *)&headerEntry[8]; - } - }; - - u64 partitionIndex = 0; - u64 programID = 0; - u64 fileOffset = 0; - - bool isNew3DS = false; - bool initialized = false; - bool compressCode = false; // Shows whether the .code file in the ExeFS is compressed - bool mountRomFS = false; - bool encrypted = false; - bool fixedCryptoKey = false; - bool seedCrypto = false; - u8 secondaryKeySlot = 0; - - static constexpr u64 mediaUnit = 0x200; - u64 size = 0; // Size of NCCH converted to bytes - u32 stackSize = 0; - u32 bssSize = 0; - u32 exheaderSize = 0; - - FSInfo exheaderInfo; - FSInfo exeFS; - FSInfo romFS; - CodeSetInfo text, data, rodata; - FSInfo partitionInfo; - - // Contents of the .code file in the ExeFS - std::vector codeFile; - // Contains of the cart's save data - std::vector saveData; - // The cart region. Only the CXI's region matters to us. Necessary to get past region locking - std::optional region = std::nullopt; - std::vector smdh; - - // Returns true on success, false on failure - // Partition index/offset/size must have been set before this - bool loadFromHeader(Crypto::AESEngine &aesEngine, IOFile &file, const FSInfo &info); - - bool hasExtendedHeader() { return exheaderSize != 0; } - bool hasExeFS() { return exeFS.size != 0; } - bool hasRomFS() { return romFS.size != 0; } - bool hasCode() { return codeFile.size() != 0; } - bool hasSaveData() { return saveData.size() != 0; } - - // Parse SMDH for region info and such. Returns false on failure, true on success - bool parseSMDH(const std::vector &smdh); - - std::pair getPrimaryKey(Crypto::AESEngine &aesEngine, const Crypto::AESKey &keyY); - std::pair getSecondaryKey(Crypto::AESEngine &aesEngine, const Crypto::AESKey &keyY); - - std::pair readFromFile(IOFile &file, const FSInfo &info, u8 *dst, std::size_t offset, std::size_t size); -}; \ No newline at end of file diff --git a/include/loader/ncsd.hpp b/include/loader/ncsd.hpp deleted file mode 100644 index a134ef23..00000000 --- a/include/loader/ncsd.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#include -#include "helpers.hpp" -#include "io_file.hpp" -#include "loader/ncch.hpp" - -struct NCSD { - static constexpr u64 mediaUnit = 0x200; - - struct Partition { - u64 offset = 0; // Offset of partition converted to bytes - u64 length = 0; // Length of partition converted to bytes - NCCH ncch; - }; - - IOFile file; - u64 size = 0; // Image size according to the header converted to bytes - std::array partitions; // NCCH partitions - - u32 entrypoint; // Initial ARM11 PC -}; diff --git a/include/logger.hpp b/include/logger.hpp deleted file mode 100644 index 4fc521b6..00000000 --- a/include/logger.hpp +++ /dev/null @@ -1,93 +0,0 @@ -#pragma once -#include -#include - -#ifdef __ANDROID__ -#include -#endif - -namespace Log { - // Our logger class - template - class Logger { - public: - void log(const char* fmt, ...) { - if constexpr (!enabled) return; - - std::va_list args; - va_start(args, fmt); -#ifdef __ANDROID__ - __android_log_vprint(ANDROID_LOG_DEFAULT, "Panda3DS", fmt, args); -#else - std::vprintf(fmt, args); -#endif - va_end(args); - } - }; - - // Our loggers here. Enable/disable by toggling the template param - static Logger kernelLogger; - // Enables output for the outputDebugString SVC - static Logger debugStringLogger; - static Logger errorLogger; - static Logger fileIOLogger; - static Logger svcLogger; - static Logger threadLogger; - static Logger gpuLogger; - static Logger rendererLogger; - static Logger shaderJITLogger; - static Logger dspLogger; - - // Service loggers - static Logger acLogger; - static Logger actLogger; - static Logger amLogger; - static Logger aptLogger; - static Logger bossLogger; - static Logger camLogger; - static Logger cecdLogger; - static Logger cfgLogger; - static Logger csndLogger; - static Logger dspServiceLogger; - static Logger dlpSrvrLogger; - static Logger frdLogger; - static Logger fsLogger; - static Logger hidLogger; - static Logger httpLogger; - static Logger irUserLogger; - static Logger gspGPULogger; - static Logger gspLCDLogger; - static Logger ldrLogger; - static Logger mcuLogger; - static Logger micLogger; - static Logger newsLogger; - static Logger nfcLogger; - static Logger nwmUdsLogger; - static Logger nimLogger; - static Logger ndmLogger; - static Logger ptmLogger; - static Logger socLogger; - static Logger sslLogger; - static Logger y2rLogger; - static Logger srvLogger; - - // We have 2 ways to create a log function - // MAKE_LOG_FUNCTION: Creates a log function which is toggleable but always killed for user-facing builds - // MAKE_LOG_FUNCTION_USER: Creates a log function which is toggleable, may be on for user builds as well - // We need this because sadly due to the loggers taking variadic arguments, compilers will not properly - // Kill them fully even when they're disabled. The only way they will is if the function with varargs is totally empty - -#define MAKE_LOG_FUNCTION_USER(functionName, logger) \ - template \ - void functionName(const char* fmt, Args&&... args) { \ - Log::logger.log(fmt, args...); \ - } - -#ifdef PANDA3DS_USER_BUILD -#define MAKE_LOG_FUNCTION(functionName, logger) \ - template \ - void functionName(const char* fmt, Args&&... args) {} -#else -#define MAKE_LOG_FUNCTION(functionName, logger) MAKE_LOG_FUNCTION_USER(functionName, logger) -#endif -} \ No newline at end of file diff --git a/include/lua_manager.hpp b/include/lua_manager.hpp deleted file mode 100644 index 46fd553a..00000000 --- a/include/lua_manager.hpp +++ /dev/null @@ -1,64 +0,0 @@ -#pragma once -#include - -#include "helpers.hpp" - -// The kinds of events that can cause a Lua call. -// Frame: Call program on frame end -// TODO: Add more -enum class LuaEvent { - Frame, -}; - -class Emulator; - -#ifdef PANDA3DS_ENABLE_LUA -extern "C" { -#include -#include -#include - -#include "luajit.h" -} - -class LuaManager { - lua_State* L = nullptr; - bool initialized = false; - bool haveScript = false; - - void signalEventInternal(LuaEvent e); - - public: - // For Lua we must have some global pointers to our emulator objects to use them in script code via thunks. See the thunks in lua.cpp as an - // example - static Emulator* g_emulator; - - LuaManager(Emulator& emulator) { g_emulator = &emulator; } - - void close(); - void initialize(); - void initializeThunks(); - void loadFile(const char* path); - void loadString(const std::string& code); - - void reset(); - void signalEvent(LuaEvent e) { - if (haveScript) [[unlikely]] { - signalEventInternal(e); - } - } -}; - -#else // Lua not enabled, Lua manager does nothing -class LuaManager { - public: - LuaManager(Emulator& emulator) {} - - void close() {} - void initialize() {} - void loadFile(const char* path) {} - void loadString(const std::string& code) {} - void reset() {} - void signalEvent(LuaEvent e) {} -}; -#endif diff --git a/include/math_util.hpp b/include/math_util.hpp deleted file mode 100644 index fe895643..00000000 --- a/include/math_util.hpp +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project / 2023 Panda3DS Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include -#include - -namespace Math { - -template -struct Rectangle { - T left{}; - T top{}; - T right{}; - T bottom{}; - - constexpr Rectangle() = default; - - constexpr Rectangle(T left, T top, T right, T bottom) - : left(left), top(top), right(right), bottom(bottom) {} - - [[nodiscard]] constexpr bool operator==(const Rectangle& rhs) const { - return (left == rhs.left) && (top == rhs.top) && (right == rhs.right) && - (bottom == rhs.bottom); - } - - [[nodiscard]] constexpr bool operator!=(const Rectangle& rhs) const { - return !operator==(rhs); - } - - [[nodiscard]] constexpr Rectangle operator*(const T value) const { - return Rectangle{left * value, top * value, right * value, bottom * value}; - } - - [[nodiscard]] constexpr Rectangle operator/(const T value) const { - return Rectangle{left / value, top / value, right / value, bottom / value}; - } - - [[nodiscard]] T getWidth() const { - return std::abs(static_cast>(right - left)); - } - - [[nodiscard]] T getHeight() const { - return std::abs(static_cast>(bottom - top)); - } - - [[nodiscard]] T getArea() const { - return getWidth() * getHeight(); - } - - [[nodiscard]] Rectangle translateX(const T x) const { - return Rectangle{left + x, top, right + x, bottom}; - } - - [[nodiscard]] Rectangle translateY(const T y) const { - return Rectangle{left, top + y, right, bottom + y}; - } - - [[nodiscard]] Rectangle scale(const float s) const { - return Rectangle{left, top, static_cast(left + getWidth() * s), - static_cast(top + getHeight() * s)}; - } -}; - -template -Rectangle(T, T, T, T) -> Rectangle; - -template -using Rect = Rectangle; - -} // end namespace Math \ No newline at end of file diff --git a/include/memory.hpp b/include/memory.hpp deleted file mode 100644 index 1b6e622c..00000000 --- a/include/memory.hpp +++ /dev/null @@ -1,291 +0,0 @@ -#pragma once -#include -#include -#include -#include -#include -#include - -#include "config.hpp" -#include "crypto/aes_engine.hpp" -#include "handles.hpp" -#include "helpers.hpp" -#include "loader/ncsd.hpp" -#include "loader/3dsx.hpp" -#include "services/region_codes.hpp" - -namespace PhysicalAddrs { - enum : u32 { - VRAM = 0x18000000, - VRAMEnd = VRAM + 0x005FFFFF, - FCRAM = 0x20000000, - FCRAMEnd = FCRAM + 0x07FFFFFF - }; -} - -namespace VirtualAddrs { - enum : u32 { - ExecutableStart = 0x00100000, - MaxExeSize = 0x03F00000, - ExecutableEnd = 0x00100000 + 0x03F00000, - - // Stack for main ARM11 thread. - // Typically 0x4000 bytes, determined by exheader - StackTop = 0x10000000, - DefaultStackSize = 0x4000, - - NormalHeapStart = 0x08000000, - LinearHeapStartOld = 0x14000000, // If kernel version < 0x22C - LinearHeapEndOld = 0x1C000000, - - LinearHeapStartNew = 0x30000000, - LinearHeapEndNew = 0x40000000, - - // Start of TLS for first thread. Next thread's storage will be at TLSBase + 0x1000, and so on - TLSBase = 0xFF400000, - TLSSize = 0x1000, - - VramStart = 0x1F000000, - VramSize = 0x00600000, - FcramTotalSize = 128_MB, - DSPMemStart = 0x1FF00000 - }; -} - -// Types for svcQueryMemory -namespace KernelMemoryTypes { - // This makes no sense - enum MemoryState : u32 { - Free = 0, - Reserved = 1, - IO = 2, - Static = 3, - Code = 4, - Private = 5, - Shared = 6, - Continuous = 7, - Aliased = 8, - Alias = 9, - AliasCode = 10, - Locked = 11, - - PERMISSION_R = 1 << 0, - PERMISSION_W = 1 << 1, - PERMISSION_X = 1 << 2 - }; - - // I assume this is referring to a single piece of allocated memory? If it's for pages, it makes no sense. - // If it's for multiple allocations, it also makes no sense - struct MemoryInfo { - u32 baseAddr; // Base process virtual address. Used as a paddr in lockedMemoryInfo instead - u32 size; // Of what? - u32 perms; // Is this referring to a single page or? - u32 state; - - u32 end() { return baseAddr + size; } - MemoryInfo(u32 baseAddr, u32 size, u32 perms, u32 state) : baseAddr(baseAddr), size(size) - , perms(perms), state(state) {} - }; - - // Shared memory block for HID, GSP:GPU etc - struct SharedMemoryBlock { - u32 paddr; // Physical address of this block's memory - u32 size; // Size of block - u32 handle; // The handle of the shared memory block - bool mapped; // Has this block been mapped at least once? - - SharedMemoryBlock(u32 paddr, u32 size, u32 handle) : paddr(paddr), size(size), handle(handle), mapped(false) {} - }; -} - -class Memory { - u8* fcram; - u8* dspRam; // Provided to us by Audio - u8* vram; // Provided to the memory class by the GPU class - - u64& cpuTicks; // Reference to the CPU tick counter - using SharedMemoryBlock = KernelMemoryTypes::SharedMemoryBlock; - - // Our dynarmic core uses page tables for reads and writes with 4096 byte pages - std::vector readTable, writeTable; - - // This tracks our OS' memory allocations - std::vector memoryInfo; - - std::array sharedMemBlocks = { - SharedMemoryBlock(0, 0, KernelHandles::FontSharedMemHandle), // Shared memory for the system font (size is 0 because we read the size from the cmrc filesystem - SharedMemoryBlock(0, 0x1000, KernelHandles::GSPSharedMemHandle), // GSP shared memory - SharedMemoryBlock(0, 0x1000, KernelHandles::HIDSharedMemHandle), // HID shared memory - SharedMemoryBlock(0, 0x3000, KernelHandles::CSNDSharedMemHandle), // CSND shared memory - SharedMemoryBlock(0, 0xE7000, KernelHandles::APTCaptureSharedMemHandle), // APT Capture Buffer memory - }; - -public: - static constexpr u32 pageShift = 12; - static constexpr u32 pageSize = 1 << pageShift; - static constexpr u32 pageMask = pageSize - 1; - static constexpr u32 totalPageCount = 1 << (32 - pageShift); - - static constexpr u32 FCRAM_SIZE = u32(128_MB); - static constexpr u32 FCRAM_APPLICATION_SIZE = u32(64_MB); - static constexpr u32 FCRAM_PAGE_COUNT = FCRAM_SIZE / pageSize; - static constexpr u32 FCRAM_APPLICATION_PAGE_COUNT = FCRAM_APPLICATION_SIZE / pageSize; - - static constexpr u32 DSP_RAM_SIZE = u32(512_KB); - static constexpr u32 DSP_CODE_MEMORY_OFFSET = u32(0_KB); - static constexpr u32 DSP_DATA_MEMORY_OFFSET = u32(256_KB); - -private: - std::bitset usedFCRAMPages; - std::optional findPaddr(u32 size); - u64 timeSince3DSEpoch(); - - // https://www.3dbrew.org/wiki/Configuration_Memory#ENVINFO - // Report a retail unit without JTAG - static constexpr u32 envInfo = 1; - - // Stored in Configuration Memory starting @ 0x1FF80060 - struct FirmwareInfo { - u8 unk; // Usually 0 according to 3DBrew - u8 revision; - u8 minor; - u8 major; - u32 syscoreVer; - u32 sdkVer; - }; - - // Values taken from 3DBrew and Citra - static constexpr FirmwareInfo firm{.unk = 0, .revision = 0, .minor = 0x34, .major = 2, .syscoreVer = 2, .sdkVer = 0x0000F297}; - // Adjusted upon loading a ROM based on the ROM header. Used by CFG::SecureInfoGetArea to get past region locks - Regions region = Regions::USA; - const EmulatorConfig& config; - - static constexpr std::array MACAddress = {0x40, 0xF4, 0x07, 0xFF, 0xFF, 0xEE}; - - public: - u16 kernelVersion = 0; - u32 usedUserMemory = u32(0_MB); // How much of the APPLICATION FCRAM range is used (allocated to the appcore) - u32 usedSystemMemory = u32(0_MB); // Similar for the SYSTEM range (reserved for the syscore) - - Memory(u64& cpuTicks, const EmulatorConfig& config); - void reset(); - void* getReadPointer(u32 address); - void* getWritePointer(u32 address); - std::optional loadELF(std::ifstream& file); - std::optional load3DSX(const std::filesystem::path& path); - std::optional loadNCSD(Crypto::AESEngine& aesEngine, const std::filesystem::path& path); - std::optional loadCXI(Crypto::AESEngine& aesEngine, const std::filesystem::path& path); - - bool mapCXI(NCSD& ncsd, NCCH& cxi); - bool map3DSX(HB3DSX& hb3dsx, const HB3DSX::Header& header); - - u8 read8(u32 vaddr); - u16 read16(u32 vaddr); - u32 read32(u32 vaddr); - u64 read64(u32 vaddr); - std::string readString(u32 vaddr, u32 maxCharacters); - - void write8(u32 vaddr, u8 value); - void write16(u32 vaddr, u16 value); - void write32(u32 vaddr, u32 value); - void write64(u32 vaddr, u64 value); - - u32 getLinearHeapVaddr(); - u8* getFCRAM() { return fcram; } - - // Total amount of OS-only FCRAM available (Can vary depending on how much FCRAM the app requests via the cart exheader) - u32 totalSysFCRAM() { - return FCRAM_SIZE - FCRAM_APPLICATION_SIZE; - } - - // Amount of OS-only FCRAM currently available - u32 remainingSysFCRAM() { - return totalSysFCRAM() - usedSystemMemory; - } - - // Physical FCRAM index to the start of OS FCRAM - // We allocate the first part of physical FCRAM for the application, and the rest to the OS. So the index for the OS = application ram size - u32 sysFCRAMIndex() { - return FCRAM_APPLICATION_SIZE; - } - - enum class BatteryLevel { - Empty = 0, AlmostEmpty, OneBar, TwoBars, ThreeBars, FourBars - }; - u8 getBatteryState(bool adapterConnected, bool charging, BatteryLevel batteryLevel) { - u8 value = static_cast(batteryLevel) << 2; // Bits 2:4 are the battery level from 0 to 5 - if (adapterConnected) value |= 1 << 0; // Bit 0 shows if the charger is connected - if (charging) value |= 1 << 1; // Bit 1 shows if we're charging - - return value; - } - - NCCH* getCXI() { - if (loadedCXI.has_value()) { - return &loadedCXI.value(); - } else { - return nullptr; - } - } - - HB3DSX* get3DSX() { - if (loaded3DSX.has_value()) { - return &loaded3DSX.value(); - } else { - return nullptr; - } - } - - // Returns whether "addr" is aligned to a page (4096 byte) boundary - static constexpr bool isAligned(u32 addr) { - return (addr & pageMask) == 0; - } - - // Allocate "size" bytes of RAM starting from FCRAM index "paddr" (We pick it ourself if paddr == 0) - // And map them to virtual address "vaddr" (We also pick it ourself if vaddr == 0). - // If the "linear" flag is on, the paddr pages must be adjacent in FCRAM - // This function is for interacting with the *user* portion of FCRAM mainly. For OS RAM, we use other internal functions below - // r, w, x: Permissions for the allocated memory - // adjustAddrs: If it's true paddr == 0 or vaddr == 0 tell the allocator to pick its own addresses. Used for eg svc ControlMemory - // isMap: Shows whether this is a reserve operation, that allocates memory and maps it to the addr space, or if it's a map operation, - // which just maps memory from paddr to vaddr without hassle. The latter is useful for shared memory mapping, the "map" ControlMemory, op, etc - // Returns the vaddr the FCRAM was mapped to or nullopt if allocation failed - std::optional allocateMemory(u32 vaddr, u32 paddr, u32 size, bool linear, bool r = true, bool w = true, bool x = true, - bool adjustsAddrs = false, bool isMap = false); - KernelMemoryTypes::MemoryInfo queryMemory(u32 vaddr); - - // For internal use - // Allocates a "size"-sized chunk of system FCRAM and returns the index of physical FCRAM used for the allocation - // Used for allocating things like shared memory and the like - u32 allocateSysMemory(u32 size); - - // Map a shared memory block to virtual address vaddr with permissions "myPerms" - // The kernel has a second permission parameter in MapMemoryBlock but not sure what's used for - // TODO: Find out - // Returns a pointer to the FCRAM block used for the memory if allocation succeeded - u8* mapSharedMemory(Handle handle, u32 vaddr, u32 myPerms, u32 otherPerms); - - // Mirrors the page mapping for "size" bytes starting from sourceAddress, to "size" bytes in destAddress - // All of the above must be page-aligned. - void mirrorMapping(u32 destAddress, u32 sourceAddress, u32 size); - - // Backup of the game's CXI partition info, if any - std::optional loadedCXI = std::nullopt; - std::optional loaded3DSX = std::nullopt; - // File handle for reading the loaded ncch - IOFile CXIFile; - - std::optional getProgramID(); - - u8* getDSPMem() { return dspRam; } - u8* getDSPDataMem() { return &dspRam[DSP_DATA_MEMORY_OFFSET]; } - u8* getDSPCodeMem() { return &dspRam[DSP_CODE_MEMORY_OFFSET]; } - u32 getUsedUserMem() { return usedUserMemory; } - - void setVRAM(u8* pointer) { vram = pointer; } - void setDSPMem(u8* pointer) { dspRam = pointer; } - - bool allocateMainThreadStack(u32 size); - Regions getConsoleRegion(); - void copySharedFont(u8* ptr); -}; diff --git a/include/memory_mapped_file.hpp b/include/memory_mapped_file.hpp deleted file mode 100644 index e8314155..00000000 --- a/include/memory_mapped_file.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -#include -#include - -#include "helpers.hpp" -#include "mio/mio.hpp" - -// Minimal RAII wrapper over memory mapped files - -class MemoryMappedFile { - std::filesystem::path filePath = ""; // path of our file - mio::mmap_sink map; // mmap sink for our file - - u8* pointer = nullptr; // Pointer to the contents of the memory mapped file - bool opened = false; - - public: - bool exists() const { return opened; } - u8* data() const { return pointer; } - - std::error_code flush(); - MemoryMappedFile(); - MemoryMappedFile(const std::filesystem::path& path); - - ~MemoryMappedFile(); - // Returns true on success - bool open(const std::filesystem::path& path); - void close(); - - // TODO: For memory-mapped output files we'll need some more stuff such as a constructor that takes path/size/shouldCreate as parameters - - u8& operator[](size_t index) { return pointer[index]; } - const u8& operator[](size_t index) const { return pointer[index]; } - - auto begin() { return map.begin(); } - auto end() { return map.end(); } - auto cbegin() { return map.cbegin(); } - auto cend() { return map.cend(); } - - mio::mmap_sink& getSink() { return map; } -}; \ No newline at end of file diff --git a/include/metaprogramming.hpp b/include/metaprogramming.hpp deleted file mode 100644 index e43decef..00000000 --- a/include/metaprogramming.hpp +++ /dev/null @@ -1,16 +0,0 @@ -#pragma once -#include -#include - -namespace Helpers { - /// Used to make the compiler evaluate beeg loops at compile time for things like generating compile-time tables - template - static constexpr void static_for_impl(Func&& f, std::integer_sequence) { - (f(std::integral_constant{}), ...); - } - - template - static constexpr void static_for(Func&& f) { - static_for_impl(std::forward(f), std::make_integer_sequence{}); - } -} \ No newline at end of file diff --git a/include/panda_qt/about_window.hpp b/include/panda_qt/about_window.hpp deleted file mode 100644 index 78812d14..00000000 --- a/include/panda_qt/about_window.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#include -#include -#include - -class AboutWindow : public QDialog { - Q_OBJECT - - public: - AboutWindow(QWidget* parent = nullptr); -}; \ No newline at end of file diff --git a/include/panda_qt/cheats_window.hpp b/include/panda_qt/cheats_window.hpp deleted file mode 100644 index c82b2bd8..00000000 --- a/include/panda_qt/cheats_window.hpp +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include "emulator.hpp" - -class QListWidget; - -class CheatsWindow final : public QWidget { - Q_OBJECT - - public: - CheatsWindow(Emulator* emu, const std::filesystem::path& path, QWidget* parent = nullptr); - ~CheatsWindow() = default; - - private: - void addEntry(); - void removeClicked(); - - QListWidget* cheatList; - std::filesystem::path cheatPath; - Emulator* emu; -}; diff --git a/include/panda_qt/config_window.hpp b/include/panda_qt/config_window.hpp deleted file mode 100644 index e91936c4..00000000 --- a/include/panda_qt/config_window.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include - -class ConfigWindow : public QDialog { - Q_OBJECT - - private: - enum class Theme : int { - System = 0, - Light = 1, - Dark = 2, - GreetingsCat = 3, - }; - - Theme currentTheme; - QComboBox* themeSelect = nullptr; - - void setTheme(Theme theme); - - public: - ConfigWindow(QWidget* parent = nullptr); - ~ConfigWindow(); -}; \ No newline at end of file diff --git a/include/panda_qt/main_window.hpp b/include/panda_qt/main_window.hpp deleted file mode 100644 index c2db9ac1..00000000 --- a/include/panda_qt/main_window.hpp +++ /dev/null @@ -1,123 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "emulator.hpp" -#include "panda_qt/about_window.hpp" -#include "panda_qt/config_window.hpp" -#include "panda_qt/cheats_window.hpp" -#include "panda_qt/screen.hpp" -#include "panda_qt/text_editor.hpp" -#include "services/hid.hpp" - -struct CheatMessage { - u32 handle; - std::vector cheat; - std::function callback; -}; - -class MainWindow : public QMainWindow { - Q_OBJECT - - private: - // Types of messages we might send from the GUI thread to the emulator thread - enum class MessageType { - LoadROM, - Reset, - Pause, - Resume, - TogglePause, - DumpRomFS, - PressKey, - ReleaseKey, - SetCirclePadX, - SetCirclePadY, - LoadLuaScript, - EditCheat, - PressTouchscreen, - ReleaseTouchscreen, - }; - - // Tagged union representing our message queue messages - struct EmulatorMessage { - MessageType type; - - union { - struct { - std::filesystem::path* p; - } path; - - struct { - u32 key; - } key; - - struct { - s16 value; - } circlepad; - - struct { - std::string* str; - } string; - - struct { - CheatMessage* c; - } cheat; - - struct { - u16 x; - u16 y; - } touchscreen; - }; - }; - - // This would normally be an std::unique_ptr but it's shared between threads so definitely not - Emulator* emu = nullptr; - std::thread emuThread; - - std::atomic appRunning = true; // Is the application itself running? - // Used for synchronizing messages between the emulator and UI - std::mutex messageQueueMutex; - std::vector messageQueue; - - ScreenWidget screen; - AboutWindow* aboutWindow; - ConfigWindow* configWindow; - CheatsWindow* cheatsEditor; - TextEditorWindow* luaEditor; - QMenuBar* menuBar = nullptr; - - void swapEmuBuffer(); - void emuThreadMainLoop(); - void selectLuaFile(); - void selectROM(); - void dumpRomFS(); - void openLuaEditor(); - void openCheatsEditor(); - void showAboutMenu(); - void sendMessage(const EmulatorMessage& message); - void dispatchMessage(const EmulatorMessage& message); - - // Tracks whether we are using an OpenGL-backed renderer or a Vulkan-backed renderer - bool usingGL = false; - bool usingVk = false; - - public: - MainWindow(QApplication* app, QWidget* parent = nullptr); - ~MainWindow(); - - void keyPressEvent(QKeyEvent* event) override; - void keyReleaseEvent(QKeyEvent* event) override; - void mousePressEvent(QMouseEvent* event) override; - void mouseReleaseEvent(QMouseEvent* event) override; - - void loadLuaScript(const std::string& code); - void editCheat(u32 handle, const std::vector& cheat, const std::function& callback); -}; \ No newline at end of file diff --git a/include/panda_qt/screen.hpp b/include/panda_qt/screen.hpp deleted file mode 100644 index dcff3e90..00000000 --- a/include/panda_qt/screen.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include -#include - -#include "gl/context.h" -#include "window_info.h" - -// OpenGL widget for drawing the 3DS screen -class ScreenWidget : public QWidget { - Q_OBJECT - - public: - ScreenWidget(QWidget* parent = nullptr); - GL::Context* getGLContext() { return glContext.get(); } - - // Dimensions of our output surface - u32 surfaceWidth = 0; - u32 surfaceHeight = 0; - - private: - std::unique_ptr glContext = nullptr; - bool createGLContext(); - - qreal devicePixelRatioFromScreen() const; - int scaledWindowWidth() const; - int scaledWindowHeight() const; - std::optional getWindowInfo(); -}; diff --git a/include/panda_qt/text_editor.hpp b/include/panda_qt/text_editor.hpp deleted file mode 100644 index 0da98294..00000000 --- a/include/panda_qt/text_editor.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include "zep.h" -#include "zep/mode_repl.h" -#include "zep/regress.h" - -class TextEditorWindow : public QDialog { - Q_OBJECT - - private: - Zep::ZepWidget_Qt zepWidget; - Zep::IZepReplProvider replProvider; - static constexpr float fontSize = 14.0f; - - public: - TextEditorWindow(QWidget* parent, const std::string& filename, const std::string& initialText); - void setText(const std::string& text) { zepWidget.GetEditor().GetMRUBuffer()->SetText(text); } -}; \ No newline at end of file diff --git a/include/panda_sdl/frontend_sdl.hpp b/include/panda_sdl/frontend_sdl.hpp deleted file mode 100644 index 8e58c768..00000000 --- a/include/panda_sdl/frontend_sdl.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#include - -#include - -#include "emulator.hpp" - -class FrontendSDL { - Emulator emu; -#ifdef PANDA3DS_ENABLE_OPENGL - SDL_GLContext glContext; -#endif - - public: - FrontendSDL(); - bool loadROM(const std::filesystem::path& path); - void run(); - - SDL_Window* window = nullptr; - SDL_GameController* gameController = nullptr; - int gameControllerID; -}; \ No newline at end of file diff --git a/include/renderer.hpp b/include/renderer.hpp deleted file mode 100644 index 8888b41e..00000000 --- a/include/renderer.hpp +++ /dev/null @@ -1,94 +0,0 @@ -#pragma once -#include -#include -#include - -#include "PICA/pica_vertex.hpp" -#include "PICA/regs.hpp" -#include "helpers.hpp" - -#ifdef PANDA3DS_FRONTEND_QT -#include "gl/context.h" -#endif - -enum class RendererType : s8 { - // Todo: Auto = -1, - Null = 0, - OpenGL = 1, - Vulkan = 2, - Software = 3, -}; - -class GPU; -struct SDL_Window; - -class Renderer { - protected: - GPU& gpu; - static constexpr u32 regNum = 0x300; // Number of internal PICA registers - static constexpr u32 extRegNum = 0x1000; // Number of external PICA registers - - const std::array& regs; - const std::array& externalRegs; - - std::array fbSize; // The size of the framebuffer (ie both the colour and depth buffer)' - - u32 colourBufferLoc; // Location in 3DS VRAM for the colour buffer - PICA::ColorFmt colourBufferFormat; // Format of the colours stored in the colour buffer - - // Same for the depth/stencil buffer - u32 depthBufferLoc; - PICA::DepthFmt depthBufferFormat; - - // Width and height of the window we're outputting to, needed for properly scaling the final image - // We initialize it to the 3DS resolution by default and the frontend can notify us if it changes via the setOutputSize function - u32 outputWindowWidth = 400; - u32 outputWindowHeight = 240 * 2; - - public: - Renderer(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs); - virtual ~Renderer(); - - static constexpr u32 vertexBufferSize = 0x10000; - static std::optional typeFromString(std::string inString); - static const char* typeToString(RendererType rendererType); - - virtual void reset() = 0; - virtual void display() = 0; // Display the 3DS screen contents to the window - virtual void initGraphicsContext(SDL_Window* window) = 0; // Initialize graphics context - virtual void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) = 0; // Clear a GPU buffer in VRAM - virtual void displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) = 0; // Perform display transfer - virtual void textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) = 0; - virtual void drawVertices(PICA::PrimType primType, std::span vertices) = 0; // Draw the given vertices - - virtual void screenshot(const std::string& name) = 0; - // Some frontends and platforms may require that we delete our GL or misc context and obtain a new one for things like exclusive fullscreen - // This function does things like write back or cache necessary state before we delete our context - virtual void deinitGraphicsContext() = 0; - - // Functions for initializing the graphics context for the Qt frontend, where we don't have the convenience of SDL_Window -#ifdef PANDA3DS_FRONTEND_QT - virtual void initGraphicsContext(GL::Context* context) { Helpers::panic("Tried to initialize incompatible renderer with GL context"); } -#endif - - void setFBSize(u32 width, u32 height) { - fbSize[0] = width; - fbSize[1] = height; - } - - void setColourFormat(PICA::ColorFmt format) { colourBufferFormat = format; } - void setDepthFormat(PICA::DepthFmt format) { - if (format == PICA::DepthFmt::Unknown1) { - Helpers::panic("[PICA] Undocumented depth-stencil mode!"); - } - depthBufferFormat = format; - } - - void setColourBufferLoc(u32 loc) { colourBufferLoc = loc; } - void setDepthBufferLoc(u32 loc) { depthBufferLoc = loc; } - - void setOutputSize(u32 width, u32 height) { - outputWindowWidth = width; - outputWindowHeight = height; - } -}; diff --git a/include/renderer_gl/gl_state.hpp b/include/renderer_gl/gl_state.hpp deleted file mode 100644 index 69960f1e..00000000 --- a/include/renderer_gl/gl_state.hpp +++ /dev/null @@ -1,230 +0,0 @@ -#pragma once -#include - -#include "helpers.hpp" -#include "opengl.hpp" - -// GL state manager object for use in the OpenGL GPU renderer and potentially other things in the future (such as a potential ImGui GUI) -// This object is meant to help us avoid duplicate OpenGL calls (such as binding the same program twice, enabling/disabling a setting twice, etc) -// by checking if we actually *need* a state change. This is meant to avoid expensive driver calls and minimize unneeded state changes -// A lot of code is in the header file instead of the relevant source file to make sure stuff gets inlined even without LTO, and -// because this header should ideally not be getting included in too many places -// Code that does not need inlining however, like the reset() function should be in gl_state.cpp -// This state manager may not handle every aspect of OpenGL, in which case anything not handled here should just be manipulated with raw -// OpenGL/opengl.hpp calls However, anything that can be handled through the state manager should, or at least there should be an attempt to keep it -// consistent with the current GL state to avoid bugs/suboptimal code. - -// The state manager must *also* be a trivially constructible/destructible type, to ensure that no OpenGL functions get called sneakily without us -// knowing. This is important for when we want to eg add a Vulkan or misc backend. Would definitely not want to refactor all this. So we try to be as -// backend-agnostic as possible - -struct GLStateManager { - // We only support 6 clipping planes in our state manager because that's the minimum for GL_MAX_CLIP_PLANES - // And nobody needs more than 6 clip planes anyways - static constexpr GLint clipPlaneCount = 6; - - bool blendEnabled; - bool logicOpEnabled; - bool depthEnabled; - bool scissorEnabled; - bool stencilEnabled; - u32 enabledClipPlanes; // Bitfield of enabled clip planes - - // Colour/depth masks - bool redMask, greenMask, blueMask, alphaMask; - bool depthMask; - - float clearRed, clearBlue, clearGreen, clearAlpha; - - GLuint stencilMask; - GLuint boundVAO; - GLuint boundVBO; - GLuint currentProgram; - - GLenum depthFunc; - GLenum logicOp; - - void reset(); - void resetBlend(); - void resetClearing(); - void resetClipping(); - void resetColourMask(); - void resetDepth(); - void resetVAO(); - void resetVBO(); - void resetProgram(); - void resetScissor(); - void resetStencil(); - - void enableDepth() { - if (!depthEnabled) { - depthEnabled = true; - OpenGL::enableDepth(); - } - } - - void disableDepth() { - if (depthEnabled) { - depthEnabled = false; - OpenGL::disableDepth(); - } - } - - void enableBlend() { - if (!blendEnabled) { - blendEnabled = true; - OpenGL::enableBlend(); - } - } - - void disableBlend() { - if (blendEnabled) { - blendEnabled = false; - OpenGL::disableBlend(); - } - } - - void enableScissor() { - if (!scissorEnabled) { - scissorEnabled = true; - OpenGL::enableScissor(); - } - } - - void disableScissor() { - if (scissorEnabled) { - scissorEnabled = false; - OpenGL::disableScissor(); - } - } - - void enableStencil() { - if (!stencilEnabled) { - stencilEnabled = true; - OpenGL::enableStencil(); - } - } - - void disableStencil() { - if (stencilEnabled) { - stencilEnabled = false; - OpenGL::disableStencil(); - } - } - - void enableLogicOp() { - if (!logicOpEnabled) { - logicOpEnabled = true; - OpenGL::enableLogicOp(); - } - } - - void disableLogicOp() { - if (logicOpEnabled) { - logicOpEnabled = false; - OpenGL::disableLogicOp(); - } - } - - void setLogicOp(GLenum op) { - if (logicOp != op) { - logicOp = op; - OpenGL::setLogicOp(op); - } - } - - void enableClipPlane(GLuint index) { - if (index >= clipPlaneCount) [[unlikely]] { - Helpers::panic("Enabled invalid clipping plane %d\n", index); - } - - if ((enabledClipPlanes & (1 << index)) == 0) { - enabledClipPlanes |= 1 << index; // Enable relevant bit in clipping plane bitfield - OpenGL::enableClipPlane(index); // Enable plane - } - } - - void disableClipPlane(GLuint index) { - if (index >= clipPlaneCount) [[unlikely]] { - Helpers::panic("Disabled invalid clipping plane %d\n", index); - } - - if ((enabledClipPlanes & (1 << index)) != 0) { - enabledClipPlanes ^= 1 << index; // Disable relevant bit in bitfield by flipping it - OpenGL::disableClipPlane(index); // Disable plane - } - } - - void setStencilMask(GLuint mask) { - if (stencilMask != mask) { - stencilMask = mask; - OpenGL::setStencilMask(mask); - } - } - - void bindVAO(GLuint handle) { - if (boundVAO != handle) { - boundVAO = handle; - glBindVertexArray(handle); - } - } - - void bindVBO(GLuint handle) { - if (boundVBO != handle) { - boundVBO = handle; - glBindBuffer(GL_ARRAY_BUFFER, handle); - } - } - - void useProgram(GLuint handle) { - if (currentProgram != handle) { - currentProgram = handle; - glUseProgram(handle); - } - } - - void bindVAO(const OpenGL::VertexArray& vao) { bindVAO(vao.handle()); } - void bindVBO(const OpenGL::VertexBuffer& vbo) { bindVBO(vbo.handle()); } - void useProgram(const OpenGL::Program& program) { useProgram(program.handle()); } - - void setColourMask(bool r, bool g, bool b, bool a) { - if (r != redMask || g != greenMask || b != blueMask || a != alphaMask) { - r = redMask; - g = greenMask; - b = blueMask; - a = alphaMask; - - OpenGL::setColourMask(r, g, b, a); - } - } - - void setDepthMask(bool mask) { - if (depthMask != mask) { - depthMask = mask; - OpenGL::setDepthMask(mask); - } - } - - void setDepthFunc(GLenum func) { - if (depthFunc != func) { - depthFunc = func; - glDepthFunc(func); - } - } - - void setClearColour(float r, float g, float b, float a) { - if (clearRed != r || clearGreen != g || clearBlue != b || clearAlpha != a) { - clearRed = r; - clearGreen = g; - clearBlue = b; - clearAlpha = a; - - OpenGL::setClearColor(r, g, b, a); - } - } - - void setDepthFunc(OpenGL::DepthFunc func) { setDepthFunc(static_cast(func)); } -}; - -static_assert(std::is_trivially_constructible(), "OpenGL State Manager class is not trivially constructible!"); -static_assert(std::is_trivially_destructible(), "OpenGL State Manager class is not trivially destructible!"); \ No newline at end of file diff --git a/include/renderer_gl/renderer_gl.hpp b/include/renderer_gl/renderer_gl.hpp deleted file mode 100644 index 92f02662..00000000 --- a/include/renderer_gl/renderer_gl.hpp +++ /dev/null @@ -1,98 +0,0 @@ -#pragma once - -#include -#include - -#include "PICA/float_types.hpp" -#include "PICA/pica_vertex.hpp" -#include "PICA/regs.hpp" -#include "gl_state.hpp" -#include "helpers.hpp" -#include "logger.hpp" -#include "renderer.hpp" -#include "surface_cache.hpp" -#include "textures.hpp" - -// More circular dependencies! -class GPU; - -class RendererGL final : public Renderer { - GLStateManager gl = {}; - - OpenGL::Program triangleProgram; - OpenGL::Program displayProgram; - - OpenGL::VertexArray vao; - OpenGL::VertexBuffer vbo; - - // TEV configuration uniform locations - GLint textureEnvSourceLoc = -1; - GLint textureEnvOperandLoc = -1; - GLint textureEnvCombinerLoc = -1; - GLint textureEnvColorLoc = -1; - GLint textureEnvScaleLoc = -1; - - // Uniform of PICA registers - GLint picaRegLoc = -1; - - // Depth configuration uniform locations - GLint depthOffsetLoc = -1; - GLint depthScaleLoc = -1; - GLint depthmapEnableLoc = -1; - - float oldDepthScale = -1.0; - float oldDepthOffset = 0.0; - bool oldDepthmapEnable = false; - - SurfaceCache depthBufferCache; - SurfaceCache colourBufferCache; - SurfaceCache textureCache; - - // Dummy VAO/VBO for blitting the final output - OpenGL::VertexArray dummyVAO; - OpenGL::VertexBuffer dummyVBO; - - OpenGL::Texture screenTexture; - GLuint lightLUTTextureArray; - OpenGL::Framebuffer screenFramebuffer; - OpenGL::Texture blankTexture; - - OpenGL::Framebuffer getColourFBO(); - OpenGL::Texture getTexture(Texture& tex); - - MAKE_LOG_FUNCTION(log, rendererLogger) - void setupBlending(); - void setupStencilTest(bool stencilEnable); - void bindDepthBuffer(); - void setupTextureEnvState(); - void bindTexturesToSlots(); - void updateLightingLUT(); - void initGraphicsContextInternal(); - - public: - RendererGL(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs) - : Renderer(gpu, internalRegs, externalRegs) {} - ~RendererGL() override; - - void reset() override; - void display() override; // Display the 3DS screen contents to the window - void initGraphicsContext(SDL_Window* window) override; // Initialize graphics context - void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) override; // Clear a GPU buffer in VRAM - void displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) override; // Perform display transfer - void textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) override; - void drawVertices(PICA::PrimType primType, std::span vertices) override; // Draw the given vertices - void deinitGraphicsContext() override; - - std::optional getColourBuffer(u32 addr, PICA::ColorFmt format, u32 width, u32 height, bool createIfnotFound = true); - - // Note: The caller is responsible for deleting the currently bound FBO before calling this - void setFBO(uint handle) { screenFramebuffer.m_handle = handle; } - void resetStateManager() { gl.reset(); } - -#ifdef PANDA3DS_FRONTEND_QT - virtual void initGraphicsContext([[maybe_unused]] GL::Context* context) override { initGraphicsContextInternal(); } -#endif - - // Take a screenshot of the screen and store it in a file - void screenshot(const std::string& name) override; -}; diff --git a/include/renderer_gl/surface_cache.hpp b/include/renderer_gl/surface_cache.hpp deleted file mode 100644 index 5323741f..00000000 --- a/include/renderer_gl/surface_cache.hpp +++ /dev/null @@ -1,109 +0,0 @@ -#pragma once -#include -#include -#include "surfaces.hpp" -#include "textures.hpp" - -// Surface cache class that can fit "capacity" instances of the "SurfaceType" class of surfaces -// SurfaceType *must* have all of the following. -// - An "allocate" function that allocates GL resources for the surfaces. On overflow it will panic -// if evictOnOverflow is false, or kick out the oldest item if it is true (like a ring buffer) -// - A "free" function that frees up all resources the surface is taking up -// - A "matches" function that, when provided with a SurfaceType object reference -// Will tell us if the 2 surfaces match (Only as far as location in VRAM, format, dimensions, etc) -// Are concerned. We could overload the == operator, but that implies full equality -// Including equality of the allocated OpenGL resources, which we don't want -// - A "valid" member that tells us whether the function is still valid or not -// - A "location" member which tells us which location in 3DS memory this surface occupies -template -class SurfaceCache { - // Vanilla std::optional can't hold actual references - using OptionalRef = std::optional>; - static_assert(std::is_same() || std::is_same() || - std::is_same(), "Invalid surface type"); - - size_t size; - size_t evictionIndex; - std::array buffer; - -public: - void reset() { - size = 0; - evictionIndex = 0; - for (auto& e : buffer) { // Free the VRAM of all surfaces - e.free(); - } - } - - OptionalRef find(SurfaceType& other) { - for (auto& e : buffer) { - if (e.matches(other) && e.valid) - return e; - } - - return std::nullopt; - } - - OptionalRef findFromAddress(u32 address) { - for (auto& e : buffer) { - if (e.location <= address && e.location + e.sizeInBytes() > address && e.valid) - return e; - } - - return std::nullopt; - } - - // Adds a surface object to the cache and returns it - SurfaceType& add(const SurfaceType& surface) { - if (size >= capacity) { - if constexpr (evictOnOverflow) { // Do a ring buffer if evictOnOverflow is true - if constexpr (std::is_same() || std::is_same()) { - Helpers::panicDev("Colour/Depth buffer cache overflowed, currently stubbed to do a ring-buffer. This might snap in half"); - } - - auto& e = buffer[evictionIndex]; - evictionIndex = (evictionIndex + 1) % capacity; - - e.valid = false; - e.free(); - e = surface; - e.allocate(); - return e; - } else { - Helpers::panic("Surface cache full! Add emptying!"); - } - } - - size++; - - // Find an existing surface we completely invalidate and overwrite it with the new surface - for (auto& e : buffer) { - if (e.valid && e.range.lower() >= surface.range.lower() && e.range.upper() <= surface.range.upper()) { - e.free(); - e = surface; - e.allocate(); - return e; - } - } - - // Find an invalid entry in the cache and overwrite it with the new surface - for (auto& e : buffer) { - if (!e.valid) { - e = surface; - e.allocate(); - return e; - } - } - - // This should be unreachable but helps to panic anyways - Helpers::panic("Couldn't add surface to cache\n"); - } - - SurfaceType& operator[](size_t i) { - return buffer[i]; - } - - const SurfaceType& operator[](size_t i) const { - return buffer[i]; - } -}; diff --git a/include/renderer_gl/surfaces.hpp b/include/renderer_gl/surfaces.hpp deleted file mode 100644 index 15304a7a..00000000 --- a/include/renderer_gl/surfaces.hpp +++ /dev/null @@ -1,175 +0,0 @@ -#pragma once -#include "PICA/regs.hpp" -#include "boost/icl/interval.hpp" -#include "helpers.hpp" -#include "math_util.hpp" -#include "opengl.hpp" - -template -using Interval = boost::icl::right_open_interval; - -struct ColourBuffer { - u32 location; - PICA::ColorFmt format; - OpenGL::uvec2 size; - bool valid; - - // Range of VRAM taken up by buffer - Interval range; - // OpenGL resources allocated to buffer - OpenGL::Texture texture; - OpenGL::Framebuffer fbo; - - ColourBuffer() : valid(false) {} - - ColourBuffer(u32 loc, PICA::ColorFmt format, u32 x, u32 y, bool valid = true) : location(loc), format(format), size({x, y}), valid(valid) { - u64 endLoc = (u64)loc + sizeInBytes(); - // Check if start and end are valid here - range = Interval(loc, (u32)endLoc); - } - - void allocate() { - // Create texture for the FBO, setting up filters and the like - // Reading back the current texture is slow, but allocate calls should be few and far between. - // If this becomes a bottleneck, we can fix it semi-easily - auto prevTexture = OpenGL::getTex2D(); - texture.create(size.x(), size.y(), GL_RGBA8); - texture.bind(); - texture.setMinFilter(OpenGL::Linear); - texture.setMagFilter(OpenGL::Linear); - glBindTexture(GL_TEXTURE_2D, prevTexture); - -#ifdef GPU_DEBUG_INFO - const auto name = Helpers::format("Surface %dx%d %s from 0x%08X", size.x(), size.y(), PICA::textureFormatToString(format), location); - OpenGL::setObjectLabel(GL_TEXTURE, texture.handle(), name.c_str()); -#endif - - fbo.createWithDrawTexture(texture); - fbo.bind(OpenGL::DrawAndReadFramebuffer); - - if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) { - Helpers::warn("ColourBuffer: Incomplete framebuffer"); - } - - // TODO: This should not clear the framebuffer contents. It should load them from VRAM. - GLint oldViewport[4]; - GLfloat oldClearColour[4]; - - glGetIntegerv(GL_VIEWPORT, oldViewport); - glGetFloatv(GL_COLOR_CLEAR_VALUE, oldClearColour); - - OpenGL::setViewport(size.x(), size.y()); - OpenGL::setClearColor(0.0, 0.0, 0.0, 1.0); - OpenGL::clearColor(); - OpenGL::setViewport(oldViewport[0], oldViewport[1], oldViewport[2], oldViewport[3]); - OpenGL::setClearColor(oldClearColour[0], oldClearColour[1], oldClearColour[2], oldClearColour[3]); - } - - void free() { - valid = false; - - if (texture.exists() || fbo.exists()) { - texture.free(); - fbo.free(); - } - } - - Math::Rect getSubRect(u32 inputAddress, u32 width, u32 height) { - // PICA textures have top-left origin while OpenGL has bottom-left origin. - // Flip the rectangle on the x axis to account for this. - const u32 startOffset = (inputAddress - location) / sizePerPixel(format); - const u32 x0 = (startOffset % (size.x() * 8)) / 8; - const u32 y0 = (startOffset / (size.x() * 8)) * 8; - return Math::Rect{x0, size.y() - y0, x0 + width, size.y() - height - y0}; - } - - bool matches(ColourBuffer& other) { - return location == other.location && format == other.format && size.x() == other.size.x() && size.y() == other.size.y(); - } - - size_t sizeInBytes() { - return (size_t)size.x() * (size_t)size.y() * PICA::sizePerPixel(format); - } -}; - -struct DepthBuffer { - u32 location; - PICA::DepthFmt format; - OpenGL::uvec2 size; // Implicitly set to the size of the framebuffer - bool valid; - - // Range of VRAM taken up by buffer - Interval range; - // OpenGL texture used for storing depth/stencil - OpenGL::Texture texture; - OpenGL::Framebuffer fbo; - - DepthBuffer() : valid(false) {} - - DepthBuffer(u32 loc, PICA::DepthFmt format, u32 x, u32 y, bool valid = true) : location(loc), format(format), size({x, y}), valid(valid) { - u64 endLoc = (u64)loc + sizeInBytes(); - // Check if start and end are valid here - range = Interval(loc, (u32)endLoc); - } - - void allocate() { - // Create texture for the FBO, setting up filters and the like - // Reading back the current texture is slow, but allocate calls should be few and far between. - // If this becomes a bottleneck, we can fix it semi-easily - auto prevTexture = OpenGL::getTex2D(); - - // Internal formats for the texture based on format - static constexpr std::array internalFormats = { - GL_DEPTH_COMPONENT16, - GL_DEPTH_COMPONENT24, - GL_DEPTH_COMPONENT24, - GL_DEPTH24_STENCIL8, - }; - - // Format of the texture - static constexpr std::array formats = { - GL_DEPTH_COMPONENT, - GL_DEPTH_COMPONENT, - GL_DEPTH_COMPONENT, - GL_DEPTH_STENCIL, - }; - - static constexpr std::array types = { - GL_UNSIGNED_SHORT, - GL_UNSIGNED_INT, - GL_UNSIGNED_INT, - GL_UNSIGNED_INT_24_8, - }; - - auto internalFormat = internalFormats[(int)format]; - auto fmt = formats[(int)format]; - auto type = types[(int)format]; - - texture.createDSTexture(size.x(), size.y(), internalFormat, fmt, nullptr, type, GL_TEXTURE_2D); - texture.bind(); - texture.setMinFilter(OpenGL::Nearest); - texture.setMagFilter(OpenGL::Nearest); - - glBindTexture(GL_TEXTURE_2D, prevTexture); - fbo.createWithDrawTexture(texture, fmt == GL_DEPTH_STENCIL ? GL_DEPTH_STENCIL_ATTACHMENT : GL_DEPTH_ATTACHMENT); - - if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) { - Helpers::panic("Incomplete framebuffer"); - } - } - - void free() { - valid = false; - if (texture.exists()) { - texture.free(); - } - } - - bool matches(DepthBuffer& other) { - return location == other.location && format == other.format && size.x() == other.size.x() && size.y() == other.size.y(); - } - - size_t sizeInBytes() { - return (size_t)size.x() * (size_t)size.y() * PICA::sizePerPixel(format); - } -}; diff --git a/include/renderer_gl/textures.hpp b/include/renderer_gl/textures.hpp deleted file mode 100644 index 4c6ca2dd..00000000 --- a/include/renderer_gl/textures.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#pragma once -#include -#include -#include "PICA/regs.hpp" -#include "boost/icl/interval.hpp" -#include "helpers.hpp" -#include "math_util.hpp" -#include "opengl.hpp" - -template -using Interval = boost::icl::right_open_interval; - -struct Texture { - u32 location; - u32 config; // Magnification/minification filter, wrapping configs, etc - PICA::TextureFmt format; - OpenGL::uvec2 size; - bool valid; - - // Range of VRAM taken up by buffer - Interval range; - // OpenGL resources allocated to buffer - OpenGL::Texture texture; - - Texture() : valid(false) {} - - Texture(u32 loc, PICA::TextureFmt format, u32 x, u32 y, u32 config, bool valid = true) - : location(loc), format(format), size({x, y}), config(config), valid(valid) { - - u64 endLoc = (u64)loc + sizeInBytes(); - // Check if start and end are valid here - range = Interval(loc, (u32)endLoc); - } - - // For 2 textures to "match" we only care about their locations, formats, and dimensions to match - // For other things, such as filtering mode, etc, we can just switch the attributes of the cached texture - bool matches(Texture& other) { - return location == other.location && format == other.format && - size.x() == other.size.x() && size.y() == other.size.y(); - } - - void allocate(); - void setNewConfig(u32 newConfig); - void decodeTexture(std::span data); - void free(); - u64 sizeInBytes(); - - u32 decodeTexel(u32 u, u32 v, PICA::TextureFmt fmt, std::span data); - - // Get the morton interleave offset of a texel based on its U and V values - static u32 mortonInterleave(u32 u, u32 v); - // Get the byte offset of texel (u, v) in the texture - static u32 getSwizzledOffset(u32 u, u32 v, u32 width, u32 bytesPerPixel); - static u32 getSwizzledOffset_4bpp(u32 u, u32 v, u32 width); - - // Returns the format of this texture as a string - std::string_view formatToString() { - return PICA::textureFormatToString(format); - } - - // Returns the texel at coordinates (u, v) of an ETC1(A4) texture - // TODO: Make hasAlpha a template parameter - u32 getTexelETC(bool hasAlpha, u32 u, u32 v, u32 width, std::span data); - u32 decodeETC(u32 alpha, u32 u, u32 v, u64 colourData); -}; diff --git a/include/renderer_null/renderer_null.hpp b/include/renderer_null/renderer_null.hpp deleted file mode 100644 index bd8f17df..00000000 --- a/include/renderer_null/renderer_null.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "renderer.hpp" - -class GPU; - -class RendererNull final : public Renderer { - public: - RendererNull(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs); - ~RendererNull() override; - - void reset() override; - void display() override; - void initGraphicsContext(SDL_Window* window) override; - void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) override; - void displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) override; - void textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) override; - void drawVertices(PICA::PrimType primType, std::span vertices) override; - void screenshot(const std::string& name) override; - void deinitGraphicsContext() override; - -#ifdef PANDA3DS_FRONTEND_QT - virtual void initGraphicsContext([[maybe_unused]] GL::Context* context) override {} -#endif -}; diff --git a/include/renderer_sw/renderer_sw.hpp b/include/renderer_sw/renderer_sw.hpp deleted file mode 100644 index dd12bf0a..00000000 --- a/include/renderer_sw/renderer_sw.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "renderer.hpp" - -class GPU; - -class RendererSw final : public Renderer { - public: - RendererSw(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs); - ~RendererSw() override; - - void reset() override; - void display() override; - void initGraphicsContext(SDL_Window* window) override; - void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) override; - void displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) override; - void textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) override; - void drawVertices(PICA::PrimType primType, std::span vertices) override; - void screenshot(const std::string& name) override; - void deinitGraphicsContext() override; - -#ifdef PANDA3DS_FRONTEND_QT - virtual void initGraphicsContext([[maybe_unused]] GL::Context* context) override {} -#endif -}; diff --git a/include/renderer_vk/renderer_vk.hpp b/include/renderer_vk/renderer_vk.hpp deleted file mode 100644 index 25cc26f8..00000000 --- a/include/renderer_vk/renderer_vk.hpp +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include - -#include "math_util.hpp" -#include "renderer.hpp" -#include "vk_api.hpp" -#include "vk_descriptor_heap.hpp" -#include "vk_descriptor_update_batch.hpp" -#include "vk_sampler_cache.hpp" - -class GPU; - -class RendererVK final : public Renderer { - SDL_Window* targetWindow; - - // The order of these `Unique*` members is important, they will be destroyed in RAII order - vk::UniqueInstance instance = {}; - vk::UniqueDebugUtilsMessengerEXT debugMessenger = {}; - - vk::SurfaceKHR swapchainSurface = {}; - - vk::PhysicalDevice physicalDevice = {}; - - vk::UniqueDevice device = {}; - - vk::Queue presentQueue = {}; - u32 presentQueueFamily = ~0u; - vk::Queue graphicsQueue = {}; - u32 graphicsQueueFamily = ~0u; - vk::Queue computeQueue = {}; - u32 computeQueueFamily = ~0u; - vk::Queue transferQueue = {}; - u32 transferQueueFamily = ~0u; - - vk::UniqueCommandPool commandPool = {}; - - vk::UniqueSwapchainKHR swapchain = {}; - u32 swapchainImageCount = ~0u; - std::vector swapchainImages = {}; - std::vector swapchainImageViews = {}; - - // This value is the degree of parallelism to allow multiple frames to be in-flight - // aka: "double-buffer"/"triple-buffering" - // Todo: make this a configuration option - static constexpr usize frameBufferingCount = 3; - - // Frame-buffering data - // Each vector is `frameBufferingCount` in size - std::vector swapImageFreeSemaphore = {}; - std::vector renderFinishedSemaphore = {}; - std::vector frameFinishedFences = {}; - std::vector> frameFramebuffers = {}; - std::vector frameCommandBuffers = {}; - - const vk::CommandBuffer& getCurrentCommandBuffer() const { return frameCommandBuffers[frameBufferingIndex].get(); } - - // Todo: - // Use `{colourBuffer,depthBuffer}Loc` to maintain an std::map-cache of framebuffers - struct Texture { - u32 loc = 0; - u32 sizePerPixel = 0; - std::array size = {}; - - vk::Format format; - vk::UniqueImage image; - vk::UniqueDeviceMemory imageMemory; - vk::UniqueImageView imageView; - - Math::Rect getSubRect(u32 inputAddress, u32 width, u32 height) { - // PICA textures have top-left origin, same as Vulkan - const u32 startOffset = (inputAddress - loc) / sizePerPixel; - const u32 x0 = (startOffset % (size[0] * 8)) / 8; - const u32 y0 = (startOffset / (size[0] * 8)) * 8; - return Math::Rect{x0, y0, x0 + width, y0 + height}; - } - }; - // Hash(loc, size, format) -> Texture - std::map textureCache; - - Texture* findRenderTexture(u32 addr); - Texture& getColorRenderTexture(u32 addr, PICA::ColorFmt format, u32 width, u32 height); - Texture& getDepthRenderTexture(u32 addr, PICA::DepthFmt format, u32 width, u32 height); - - // Framebuffer for the top/bottom image - std::vector screenTexture = {}; - std::vector screenTextureViews = {}; - std::vector screenTextureFramebuffers = {}; - vk::UniqueDeviceMemory framebufferMemory = {}; - - std::map renderPassCache; - - vk::RenderPass getRenderPass(vk::Format colorFormat, std::optional depthFormat); - vk::RenderPass getRenderPass(PICA::ColorFmt colorFormat, std::optional depthFormat); - - std::unique_ptr descriptorUpdateBatch; - std::unique_ptr samplerCache; - - // Display pipeline data - std::unique_ptr displayDescriptorHeap; - vk::UniquePipeline displayPipeline; - vk::UniquePipelineLayout displayPipelineLayout; - std::vector topDisplayPipelineDescriptorSet; - std::vector bottomDisplayPipelineDescriptorSet; - - // Recreate the swapchain, possibly re-using the old one in the case of a resize - vk::Result recreateSwapchain(vk::SurfaceKHR surface, vk::Extent2D swapchainExtent); - - u64 frameBufferingIndex = 0; - - public: - RendererVK(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs); - ~RendererVK() override; - - void reset() override; - void display() override; - void initGraphicsContext(SDL_Window* window) override; - void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) override; - void displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) override; - void textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) override; - void drawVertices(PICA::PrimType primType, std::span vertices) override; - void screenshot(const std::string& name) override; - void deinitGraphicsContext() override; -}; diff --git a/include/renderer_vk/vk_api.hpp b/include/renderer_vk/vk_api.hpp deleted file mode 100644 index e411220c..00000000 --- a/include/renderer_vk/vk_api.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#define VK_NO_PROTOTYPES -#include - -#define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC 1 -#define VULKAN_HPP_NO_EXCEPTIONS -// Disable asserts on result-codes -#define VULKAN_HPP_ASSERT_ON_RESULT -#include -#include -#include \ No newline at end of file diff --git a/include/renderer_vk/vk_debug.hpp b/include/renderer_vk/vk_debug.hpp deleted file mode 100644 index ed712269..00000000 --- a/include/renderer_vk/vk_debug.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#pragma once - -#include -#include -#include - -#include "vk_api.hpp" - -namespace Vulkan { - - VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageCallback( - VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageType, - const VkDebugUtilsMessengerCallbackDataEXT* callbackData, void* userData - ); - - void setObjectName(vk::Device device, vk::ObjectType objectType, const void* objectHandle, const char* format, ...); - - template ::value == true>, typename... ArgsT> - inline void setObjectName(vk::Device device, const T objectHandle, const char* format, ArgsT&&... args) { - setObjectName(device, T::objectType, objectHandle, format, std::forward(args)...); - } - - void beginDebugLabel(vk::CommandBuffer commandBuffer, std::span color, const char* format, ...); - - void insertDebugLabel(vk::CommandBuffer commandBuffer, std::span color, const char* format, ...); - - void endDebugLabel(vk::CommandBuffer commandBuffer); - - class DebugLabelScope { - private: - const vk::CommandBuffer commandBuffer; - - public: - template - DebugLabelScope(vk::CommandBuffer targetCommandBuffer, std::span color, const char* format, ArgsT&&... args) - : commandBuffer(targetCommandBuffer) { - beginDebugLabel(commandBuffer, color, format, std::forward(args)...); - } - - template - void operator()(std::span color, const char* format, ArgsT&&... args) const { - insertDebugLabel(commandBuffer, color, format, std::forward(args)...); - } - - ~DebugLabelScope() { endDebugLabel(commandBuffer); } - }; - -} // namespace Vulkan \ No newline at end of file diff --git a/include/renderer_vk/vk_descriptor_heap.hpp b/include/renderer_vk/vk_descriptor_heap.hpp deleted file mode 100644 index 8a9630e3..00000000 --- a/include/renderer_vk/vk_descriptor_heap.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once - -#include -#include - -#include "helpers.hpp" -#include "vk_api.hpp" - -namespace Vulkan { - // Implements a basic heap of descriptor sets given a layout of particular - // bindings. Create a descriptor set by providing a list of bindings and it will - // automatically create both the pool, layout, and maintail a heap of descriptor - // sets. Descriptor sets will be reused and recycled. Assume that newly - // allocated descriptor sets are in an undefined state. - class DescriptorHeap { - private: - const vk::Device device; - - vk::UniqueDescriptorPool descriptorPool; - vk::UniqueDescriptorSetLayout descriptorSetLayout; - std::vector descriptorSets; - - std::vector bindings; - - std::vector allocationMap; - - explicit DescriptorHeap(vk::Device device); - - public: - ~DescriptorHeap() = default; - - DescriptorHeap(DescriptorHeap&&) = default; - - const vk::DescriptorPool& getDescriptorPool() const { return descriptorPool.get(); }; - - const vk::DescriptorSetLayout& getDescriptorSetLayout() const { return descriptorSetLayout.get(); }; - - const std::span getDescriptorSets() const { return descriptorSets; }; - - std::span getBindings() const { return bindings; }; - - std::optional allocateDescriptorSet(); - bool freeDescriptorSet(vk::DescriptorSet set); - - static std::optional create( - vk::Device device, std::span bindings, u16 descriptorHeapCount = 1024 - ); - }; -} // namespace Vulkan \ No newline at end of file diff --git a/include/renderer_vk/vk_descriptor_update_batch.hpp b/include/renderer_vk/vk_descriptor_update_batch.hpp deleted file mode 100644 index 1a10214d..00000000 --- a/include/renderer_vk/vk_descriptor_update_batch.hpp +++ /dev/null @@ -1,62 +0,0 @@ -#pragma once - -#include -#include -#include - -#include "helpers.hpp" -#include "vk_api.hpp" - -namespace Vulkan { - // Implements a re-usable structure for batching up descriptor writes with a - // finite amount of space for both convenience and to reduce the overall amount - // of API calls to `vkUpdateDescriptorSets` - class DescriptorUpdateBatch { - private: - const vk::Device device; - - const usize descriptorWriteMax; - const usize descriptorCopyMax; - - using DescriptorInfoUnion = std::variant; - - // Todo: Maybe some kind of hash so that these structures can be re-used - // among descriptor writes. - std::unique_ptr descriptorInfos; - std::unique_ptr descriptorWrites; - std::unique_ptr descriptorCopies; - - usize descriptorWriteEnd = 0; - usize descriptorCopyEnd = 0; - - DescriptorUpdateBatch(vk::Device device, usize descriptorWriteMax, usize descriptorCopyMax) - : device(device), descriptorWriteMax(descriptorWriteMax), descriptorCopyMax(descriptorCopyMax) {} - - public: - ~DescriptorUpdateBatch() = default; - - DescriptorUpdateBatch(DescriptorUpdateBatch&&) = default; - - void flush(); - - void addImage( - vk::DescriptorSet targetDescriptor, u8 targetBinding, vk::ImageView imageView, vk::ImageLayout imageLayout = vk::ImageLayout::eGeneral - ); - void addSampler(vk::DescriptorSet targetDescriptor, u8 targetBinding, vk::Sampler sampler); - - void addImageSampler( - vk::DescriptorSet targetDescriptor, u8 targetBinding, vk::ImageView imageView, vk::Sampler sampler, - vk::ImageLayout imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal - ); - void addBuffer( - vk::DescriptorSet targetDescriptor, u8 targetBinding, vk::Buffer buffer, vk::DeviceSize offset, vk::DeviceSize size = VK_WHOLE_SIZE - ); - - void copyBinding( - vk::DescriptorSet sourceDescriptor, vk::DescriptorSet targetDescriptor, u8 sourceBinding, u8 targetBinding, u8 sourceArrayElement = 0, - u8 targetArrayElement = 0, u8 descriptorCount = 1 - ); - - static std::optional create(vk::Device device, usize descriptorWriteMax = 256, usize descriptorCopyMax = 256); - }; -} // namespace Vulkan \ No newline at end of file diff --git a/include/renderer_vk/vk_memory.hpp b/include/renderer_vk/vk_memory.hpp deleted file mode 100644 index a84a5720..00000000 --- a/include/renderer_vk/vk_memory.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include -#include -#include - -#include "helpers.hpp" -#include "vk_api.hpp" - -namespace Vulkan { - - // Will try to find a memory type that is suitable for the given requirements. - // Returns -1 if no suitable memory type was found. - s32 findMemoryTypeIndex( - vk::PhysicalDevice physicalDevice, u32 memoryTypeMask, vk::MemoryPropertyFlags memoryProperties, - vk::MemoryPropertyFlags memoryExcludeProperties = vk::MemoryPropertyFlagBits::eProtected - ); - - // Given an array of valid Vulkan image-handles or buffer-handles, these - // functions will allocate a single block of device-memory for all of them - // and bind them consecutively. - // There may be a case that all the buffers or images cannot be allocated - // to the same device memory due to their required memory-type. - std::tuple commitImageHeap( - vk::Device device, vk::PhysicalDevice physicalDevice, const std::span images, - vk::MemoryPropertyFlags memoryProperties = vk::MemoryPropertyFlagBits::eDeviceLocal, - vk::MemoryPropertyFlags memoryExcludeProperties = vk::MemoryPropertyFlagBits::eProtected - ); - - std::tuple commitBufferHeap( - vk::Device device, vk::PhysicalDevice physicalDevice, const std::span buffers, - vk::MemoryPropertyFlags memoryProperties = vk::MemoryPropertyFlagBits::eDeviceLocal, - vk::MemoryPropertyFlags memoryExcludeProperties = vk::MemoryPropertyFlagBits::eProtected - ); - -} // namespace Vulkan \ No newline at end of file diff --git a/include/renderer_vk/vk_pica.hpp b/include/renderer_vk/vk_pica.hpp deleted file mode 100644 index affd3aa8..00000000 --- a/include/renderer_vk/vk_pica.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#include "PICA/gpu.hpp" -#include "helpers.hpp" -#include "vk_api.hpp" - -namespace Vulkan { - - vk::Format colorFormatToVulkan(PICA::ColorFmt colorFormat); - vk::Format depthFormatToVulkan(PICA::DepthFmt depthFormat); - -} // namespace Vulkan \ No newline at end of file diff --git a/include/renderer_vk/vk_sampler_cache.hpp b/include/renderer_vk/vk_sampler_cache.hpp deleted file mode 100644 index 8cb27689..00000000 --- a/include/renderer_vk/vk_sampler_cache.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once - -#include -#include - -#include "helpers.hpp" -#include "vk_api.hpp" - -namespace Vulkan { - // Implements a simple pool of reusable sampler objects - class SamplerCache { - private: - const vk::Device device; - - std::unordered_map samplerMap; - - explicit SamplerCache(vk::Device device); - - public: - ~SamplerCache() = default; - - SamplerCache(SamplerCache&&) = default; - - const vk::Sampler& getSampler(const vk::SamplerCreateInfo& samplerInfo); - - static std::optional create(vk::Device device); - }; -} // namespace Vulkan \ No newline at end of file diff --git a/include/result/result.hpp b/include/result/result.hpp deleted file mode 100644 index 53bb725d..00000000 --- a/include/result/result.hpp +++ /dev/null @@ -1,9 +0,0 @@ -#pragma once - -#include "result_cfg.hpp" -#include "result_common.hpp" -#include "result_kernel.hpp" -#include "result_os.hpp" -#include "result_fnd.hpp" -#include "result_fs.hpp" -#include "result_gsp.hpp" \ No newline at end of file diff --git a/include/result/result_cfg.hpp b/include/result/result_cfg.hpp deleted file mode 100644 index 19b200cb..00000000 --- a/include/result/result_cfg.hpp +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once -#include "result_common.hpp" - -DEFINE_HORIZON_RESULT_MODULE(Result::CFG, Config); - -namespace Result::CFG { - DEFINE_HORIZON_RESULT(NotFound, 1018, WrongArgument, Permanent); -}; diff --git a/include/result/result_common.hpp b/include/result/result_common.hpp deleted file mode 100644 index ffa5e2bf..00000000 --- a/include/result/result_common.hpp +++ /dev/null @@ -1,206 +0,0 @@ -#pragma once - -#include -#include -#include - -namespace Result { - enum class HorizonResultLevel : uint32_t { - Success = 0, - Info = 1, - Status = 25, - Temporary = 26, - Permanent = 27, - Usage = 28, - Reinitialize = 29, - Reset = 30, - Fatal = 31, - }; - - enum class HorizonResultSummary : uint32_t { - Success = 0, - NothingHappened = 1, - WouldBlock = 2, - OutOfResource = 3, - NotFound = 4, - InvalidState = 5, - NotSupported = 6, - InvalidArgument = 7, - WrongArgument = 8, - Canceled = 9, - StatusChanged = 10, - Internal = 11, - }; - - enum class HorizonResultModule : uint32_t { - Common = 0, - Kernel = 1, - Util = 2, - FileServer = 3, - LoaderServer = 4, - TCB = 5, - OS = 6, - DBG = 7, - DMNT = 8, - PDN = 9 , - GSP = 10, - I2C = 11, - GPIO = 12, - DD = 13, - CODEC = 14, - SPI = 15, - PXI = 16, - FS = 17, - DI = 18, - HID = 19, - CAM = 20, - PI = 21, - PM = 22, - PM_LOW = 23, - FSI = 24, - SRV = 25, - NDM = 26, - NWM = 27, - SOC = 28, - LDR = 29, - ACC = 30, - RomFS = 31, - AM = 32, - HIO = 33, - Updater = 34, - MIC = 35, - FND = 36, - MP = 37, - MPWL = 38, - AC = 39, - HTTP = 40, - DSP = 41, - SND = 42, - DLP = 43, - HIO_LOW = 44, - CSND = 45, - SSL = 46, - AM_LOW = 47, - NEX = 48, - Friends = 49, - RDT = 50, - Applet = 51, - NIM = 52, - PTM = 53, - MIDI = 54, - MC = 55, - SWC = 56, - FatFS = 57, - NGC = 58, - CARD = 59, - CARDNOR = 60, - SDMC = 61, - BOSS = 62, - DBM = 63, - Config = 64, - PS = 65, - CEC = 66, - IR = 67, - UDS = 68, - PL = 69, - CUP = 70, - Gyroscope = 71, - MCU = 72, - NS = 73, - News = 74, - RO = 75, - GD = 76, - CardSPI = 77, - EC = 78, - WebBrowser = 79, - Test = 80, - ENC = 81, - PIA = 82, - ACT = 83, - VCTL = 84, - OLV = 85, - NEIA = 86, - NPNS = 87, - AVD = 90, - L2B = 91, - MVD = 92, - NFC = 93, - UART = 94, - SPM = 95, - QTM = 96, - NFP = 97, - }; - - class HorizonResult { - private: - static const uint32_t DescriptionBits = 10; - static const uint32_t ModuleBits = 8; - static const uint32_t ReservedBits = 3; - static const uint32_t SummaryBits = 6; - static const uint32_t LevelBits = 5; - - static const uint32_t DescriptionOffset = 0; - static const uint32_t ModuleOffset = DescriptionOffset + DescriptionBits; - static const uint32_t SummaryOffset = ModuleOffset + ModuleBits + ReservedBits; - static const uint32_t LevelOffset = SummaryOffset + SummaryBits; - - static_assert(DescriptionBits + ModuleBits + SummaryBits + LevelBits + ReservedBits == sizeof(uint32_t) * CHAR_BIT, "Invalid Result size"); - - uint32_t m_value; - - constexpr inline uint32_t getBitsValue(int offset, int amount) { - return (m_value >> offset) & ~(~0 << amount); - } - - static constexpr inline uint32_t makeValue(uint32_t description, uint32_t module, uint32_t summary, uint32_t level) { - return (description << DescriptionOffset) | (module << ModuleOffset) | (summary << SummaryOffset) | (level << LevelOffset); - } - - public: - constexpr HorizonResult() : m_value(0) {} - constexpr HorizonResult(uint32_t value) : m_value(value) {} - constexpr HorizonResult(uint32_t description, HorizonResultModule module, HorizonResultSummary summary, HorizonResultLevel level) : m_value(makeValue(description, static_cast(module), static_cast(summary), static_cast(level))) {} - constexpr operator uint32_t() const { return m_value; } - - constexpr inline uint32_t getDescription() { - return getBitsValue(DescriptionOffset, DescriptionBits); - } - - constexpr inline HorizonResultModule getModule() { - return static_cast(getBitsValue(ModuleOffset, ModuleBits)); - } - - constexpr inline HorizonResultSummary getSummary() { - return static_cast(getBitsValue(SummaryOffset, SummaryBits)); - } - - constexpr inline HorizonResultLevel getLevel() { - return static_cast(getBitsValue(LevelOffset, LevelBits)); - } - - constexpr inline uint32_t getRawValue() { - return m_value; - } - - constexpr inline bool isSuccess() { - return m_value == 0; - } - - constexpr inline bool isFailure() { - return m_value != 0; - } - }; - - static_assert(std::is_trivially_destructible::value, "std::is_trivially_destructible::value"); - - #define DEFINE_HORIZON_RESULT_MODULE(ns, value) \ - namespace ns::Detail {\ - static constexpr HorizonResultModule ModuleId = HorizonResultModule::value; \ - } - - #define DEFINE_HORIZON_RESULT(name, description, summary, level) \ - static constexpr HorizonResult name(description, Detail::ModuleId, HorizonResultSummary::summary, HorizonResultLevel::level); - - static constexpr HorizonResult Success(0); - static constexpr HorizonResult FailurePlaceholder(UINT32_MAX); -}; diff --git a/include/result/result_fnd.hpp b/include/result/result_fnd.hpp deleted file mode 100644 index 9618be1c..00000000 --- a/include/result/result_fnd.hpp +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once -#include "result_common.hpp" - -DEFINE_HORIZON_RESULT_MODULE(Result::FND, FND); - -namespace Result::FND { - DEFINE_HORIZON_RESULT(InvalidEnumValue, 1005, InvalidArgument, Permanent); -}; diff --git a/include/result/result_fs.hpp b/include/result/result_fs.hpp deleted file mode 100644 index b7e798f9..00000000 --- a/include/result/result_fs.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once -#include "result_common.hpp" - -DEFINE_HORIZON_RESULT_MODULE(Result::FS, FS); - -namespace Result::FS { - // TODO: Verify this - DEFINE_HORIZON_RESULT(FileNotFound, 100, NotFound, Status); - // TODO: Verify this - DEFINE_HORIZON_RESULT(FileNotFoundAlt, 112, NotFound, Status); - // Also a not found error code used here and there in the FS module. - DEFINE_HORIZON_RESULT(NotFoundInvalid, 120, InvalidState, Status); - DEFINE_HORIZON_RESULT(AlreadyExists, 190, NothingHappened, Info); - DEFINE_HORIZON_RESULT(FileTooLarge, 210, OutOfResource, Info); - // Trying to access an archive that needs formatting and has not been formatted - DEFINE_HORIZON_RESULT(NotFormatted, 340, InvalidState, Status); - DEFINE_HORIZON_RESULT(UnexpectedFileOrDir, 770, NotSupported, Usage); - - // Trying to rename a file that doesn't exist or is a directory - DEFINE_HORIZON_RESULT(RenameNonexistentFileOrDir, 120, NotFound, Status); - - // Trying to rename a file but the destination already exists - DEFINE_HORIZON_RESULT(RenameFileDestExists, 190, NothingHappened, Status); -}; // namespace Result::FS diff --git a/include/result/result_gsp.hpp b/include/result/result_gsp.hpp deleted file mode 100644 index 00af9c37..00000000 --- a/include/result/result_gsp.hpp +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once -#include "result_common.hpp" - -DEFINE_HORIZON_RESULT_MODULE(Result::GSP, GSP); - -namespace Result::GSP { - DEFINE_HORIZON_RESULT(SuccessRegisterIRQ, 519, Success, Success); -}; diff --git a/include/result/result_kernel.hpp b/include/result/result_kernel.hpp deleted file mode 100644 index f788d5f7..00000000 --- a/include/result/result_kernel.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once -#include "result_common.hpp" - -DEFINE_HORIZON_RESULT_MODULE(Result::Kernel, Kernel); - -namespace Result::Kernel { - // Returned when a thread releases a mutex it does not own - DEFINE_HORIZON_RESULT(InvalidMutexRelease, 31, InvalidArgument, Permanent); - DEFINE_HORIZON_RESULT(NotFound, 1018, NotFound, Permanent); - DEFINE_HORIZON_RESULT(InvalidEnumValue, 1005, InvalidArgument, Permanent); - DEFINE_HORIZON_RESULT(InvalidHandle, 1015, InvalidArgument, Permanent); - - static_assert(InvalidHandle == 0xD8E007F7, "conversion broken"); -}; // namespace Result::Kernel diff --git a/include/result/result_os.hpp b/include/result/result_os.hpp deleted file mode 100644 index 92025366..00000000 --- a/include/result/result_os.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once -#include "result_common.hpp" - -DEFINE_HORIZON_RESULT_MODULE(Result::OS, OS); - -namespace Result::OS { - DEFINE_HORIZON_RESULT(PortNameTooLong, 30, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(InvalidCombination, 1006, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(MisalignedAddress, 1009, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(MisalignedSize, 1010, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(NotImplemented, 1012, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(InvalidHandle, 1015, WrongArgument, Permanent); - DEFINE_HORIZON_RESULT(OutOfRange, 1021, InvalidArgument, Usage); - DEFINE_HORIZON_RESULT(Timeout, 1022, StatusChanged, Info); -}; // namespace Result::OS diff --git a/include/ring_buffer.hpp b/include/ring_buffer.hpp deleted file mode 100644 index 35d7d935..00000000 --- a/include/ring_buffer.hpp +++ /dev/null @@ -1,111 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project -// SPDX-License-Identifier: GPL-2.0-or-later - -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace Common { - /// SPSC ring buffer - /// @tparam T Element type - /// @tparam capacity Number of slots in ring buffer - template - class RingBuffer { - /// A "slot" is made of a single `T`. - static constexpr std::size_t slot_size = sizeof(T); - // T must be safely memcpy-able and have a trivial default constructor. - static_assert(std::is_trivial_v); - // Ensure capacity is sensible. - static_assert(capacity < std::numeric_limits::max() / 2); - static_assert((capacity & (capacity - 1)) == 0, "capacity must be a power of two"); - // Ensure lock-free. - static_assert(std::atomic_size_t::is_always_lock_free); - - public: - /// Pushes slots into the ring buffer - /// @param new_slots Pointer to the slots to push - /// @param slot_count Number of slots to push - /// @returns The number of slots actually pushed - std::size_t push(const void* new_slots, std::size_t slot_count) { - const std::size_t write_index = m_write_index.load(); - const std::size_t slots_free = capacity + m_read_index.load() - write_index; - const std::size_t push_count = std::min(slot_count, slots_free); - - const std::size_t pos = write_index % capacity; - const std::size_t first_copy = std::min(capacity - pos, push_count); - const std::size_t second_copy = push_count - first_copy; - - const char* in = static_cast(new_slots); - std::memcpy(m_data.data() + pos, in, first_copy * slot_size); - in += first_copy * slot_size; - std::memcpy(m_data.data(), in, second_copy * slot_size); - - m_write_index.store(write_index + push_count); - - return push_count; - } - - std::size_t push(std::span input) { return push(input.data(), input.size()); } - - /// Pops slots from the ring buffer - /// @param output Where to store the popped slots - /// @param max_slots Maximum number of slots to pop - /// @returns The number of slots actually popped - std::size_t pop(void* output, std::size_t max_slots = ~std::size_t(0)) { - const std::size_t read_index = m_read_index.load(); - const std::size_t slots_filled = m_write_index.load() - read_index; - const std::size_t pop_count = std::min(slots_filled, max_slots); - - const std::size_t pos = read_index % capacity; - const std::size_t first_copy = std::min(capacity - pos, pop_count); - const std::size_t second_copy = pop_count - first_copy; - - char* out = static_cast(output); - std::memcpy(out, m_data.data() + pos, first_copy * slot_size); - out += first_copy * slot_size; - std::memcpy(out, m_data.data(), second_copy * slot_size); - - m_read_index.store(read_index + pop_count); - - return pop_count; - } - - std::vector pop(std::size_t max_slots = ~std::size_t(0)) { - std::vector out(std::min(max_slots, capacity)); - const std::size_t count = Pop(out.data(), out.size()); - out.resize(count); - return out; - } - - /// @returns Number of slots used - [[nodiscard]] std::size_t size() const { return m_write_index.load() - m_read_index.load(); } - - /// @returns Maximum size of ring buffer - [[nodiscard]] constexpr std::size_t Capacity() const { return capacity; } - - private: - // It is important to align the below variables for performance reasons: - // Having them on the same cache-line would result in false-sharing between them. - // TODO: Remove this ifdef whenever clang and GCC support - // std::hardware_destructive_interference_size. -#if defined(__cpp_lib_hardware_interference_size) && !defined(__ANDROID__) - alignas(std::hardware_destructive_interference_size) std::atomic_size_t m_read_index{0}; - alignas(std::hardware_destructive_interference_size) std::atomic_size_t m_write_index{0}; -#else - alignas(128) std::atomic_size_t m_read_index{0}; - alignas(128) std::atomic_size_t m_write_index{0}; -#endif - - std::array m_data; - }; - -} // namespace Common diff --git a/include/scheduler.hpp b/include/scheduler.hpp deleted file mode 100644 index 97c50afc..00000000 --- a/include/scheduler.hpp +++ /dev/null @@ -1,90 +0,0 @@ -#pragma once -#include -#include -#include - -#include "helpers.hpp" -#include "logger.hpp" - -struct Scheduler { - enum class EventType { - VBlank = 0, // End of frame event - UpdateTimers = 1, // Update kernel timer objects - RunDSP = 2, // Make the emulated DSP run for one audio frame - Panic = 3, // Dummy event that is always pending and should never be triggered (Timestamp = UINT64_MAX) - TotalNumberOfEvents // How many event types do we have in total? - }; - static constexpr usize totalNumberOfEvents = static_cast(EventType::TotalNumberOfEvents); - static constexpr u64 arm11Clock = 268111856; - - template - using EventMap = boost::container::flat_multimap, boost::container::static_vector, size>>; - - EventMap events; - u64 currentTimestamp = 0; - u64 nextTimestamp = 0; - - // Set nextTimestamp to the timestamp of the next event - void updateNextTimestamp() { nextTimestamp = events.cbegin()->first; } - - void addEvent(EventType type, u64 timestamp) { - events.emplace(timestamp, type); - updateNextTimestamp(); - } - - void removeEvent(EventType type) { - for (auto it = events.begin(); it != events.end(); it++) { - // Find first event of type "type" and remove it. - // Our scheduler shouldn't have duplicate events, so it's safe to exit when an event is found - if (it->second == type) { - events.erase(it); - updateNextTimestamp(); - break; - } - } - }; - - void reset() { - currentTimestamp = 0; - - // Clear any pending events - events.clear(); - addEvent(Scheduler::EventType::VBlank, arm11Clock / 60); - - // Add a dummy event to always keep the scheduler non-empty - addEvent(EventType::Panic, std::numeric_limits::max()); - } - - private: - static constexpr u64 MAX_VALUE_TO_MULTIPLY = std::numeric_limits::max() / arm11Clock; - - public: - // Function for converting time units to cycles for various kernel functions - // Thank you Citra - static constexpr s64 nsToCycles(float ns) { return s64(arm11Clock * (0.000000001f) * ns); } - static constexpr s64 nsToCycles(int ns) { return arm11Clock * s64(ns) / 1000000000; } - - static constexpr s64 nsToCycles(s64 ns) { - if (ns / 1000000000 > static_cast(MAX_VALUE_TO_MULTIPLY)) { - return std::numeric_limits::max(); - } - - if (ns > static_cast(MAX_VALUE_TO_MULTIPLY)) { - return arm11Clock * (ns / 1000000000); - } - - return (arm11Clock * ns) / 1000000000; - } - - static constexpr s64 nsToCycles(u64 ns) { - if (ns / 1000000000 > MAX_VALUE_TO_MULTIPLY) { - return std::numeric_limits::max(); - } - - if (ns > MAX_VALUE_TO_MULTIPLY) { - return arm11Clock * (s64(ns) / 1000000000); - } - - return (arm11Clock * s64(ns)) / 1000000000; - } -}; \ No newline at end of file diff --git a/include/services/ac.hpp b/include/services/ac.hpp deleted file mode 100644 index 4ba53033..00000000 --- a/include/services/ac.hpp +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once -#include - -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class ACService { - Handle handle = KernelHandles::AC; - Memory& mem; - MAKE_LOG_FUNCTION(log, acLogger) - - // Service commands - void cancelConnectAsync(u32 messagePointer); - void closeAsync(u32 messagePointer); - void createDefaultConfig(u32 messagePointer); - void getConnectingInfraPriority(u32 messagePointer); - void getStatus(u32 messagePointer); - void getLastErrorCode(u32 messagePointer); - void getWifiStatus(u32 messagePointer); - void isConnected(u32 messagePointer); - void registerDisconnectEvent(u32 messagePointer); - void setClientVersion(u32 messagePointer); - - bool connected = false; - std::optional disconnectEvent = std::nullopt; - - public: - ACService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/act.hpp b/include/services/act.hpp deleted file mode 100644 index 92c69c60..00000000 --- a/include/services/act.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class ACTService { - Handle handle = KernelHandles::ACT; - Memory& mem; - MAKE_LOG_FUNCTION(log, actLogger) - - // Service commands - void initialize(u32 messagePointer); - void generateUUID(u32 messagePointer); - void getAccountDataBlock(u32 messagePointer); - -public: - ACTService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/am.hpp b/include/services/am.hpp deleted file mode 100644 index 672909ff..00000000 --- a/include/services/am.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class AMService { - Handle handle = KernelHandles::AM; - Memory& mem; - MAKE_LOG_FUNCTION(log, amLogger) - - // Service commands - void getDLCTitleInfo(u32 messagePointer); - void getPatchTitleInfo(u32 messagePointer); - void listTitleInfo(u32 messagePointer); - -public: - AMService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/amiibo_device.hpp b/include/services/amiibo_device.hpp deleted file mode 100644 index a07d8ac1..00000000 --- a/include/services/amiibo_device.hpp +++ /dev/null @@ -1,17 +0,0 @@ -#pragma once -#include -#include "helpers.hpp" -#include "io_file.hpp" -#include "nfc_types.hpp" - -class AmiiboDevice { - bool loaded = false; - bool encrypted = false; - - public: - static constexpr size_t tagSize = 0x21C; - std::array raw; - - void loadFromRaw(); - void reset(); -}; \ No newline at end of file diff --git a/include/services/apt.hpp b/include/services/apt.hpp deleted file mode 100644 index 48a59c2d..00000000 --- a/include/services/apt.hpp +++ /dev/null @@ -1,106 +0,0 @@ -#pragma once -#include -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -#include "applets/applet_manager.hpp" - -// Yay, more circular dependencies -class Kernel; - -enum class ConsoleModel : u32 { - Old3DS, New3DS -}; - -// https://www.3dbrew.org/wiki/NS_and_APT_Services#Command -namespace APT::Transitions { - enum : u32 { - None = 0, - Wakeup = 1, - Request = 2, - Response = 3, - Exit = 4, - Message = 5, - HomeButtonSingle = 6, - HomeButtonDouble = 7, - DSPSleep = 8, - DSPWakeup = 9, - WakeupByExit = 10, - WakuepByPause = 11, - WakeupByCancel = 12, - WakeupByCancelAll = 13, - WakeupByPowerButton = 14, - WakeupToJumpHome = 15, - RequestForApplet = 16, - WakeupToLaunchApp = 17, - ProcessDed = 0x41 - }; -} - -class APTService { - Handle handle = KernelHandles::APT; - Memory& mem; - Kernel& kernel; - - std::optional lockHandle = std::nullopt; - std::optional notificationEvent = std::nullopt; - std::optional resumeEvent = std::nullopt; - - ConsoleModel model = ConsoleModel::Old3DS; - Applets::AppletManager appletManager; - - MAKE_LOG_FUNCTION(log, aptLogger) - - // Service commands - void appletUtility(u32 messagePointer); - void getApplicationCpuTimeLimit(u32 messagePointer); - void getLockHandle(u32 messagePointer); - void checkNew3DS(u32 messagePointer); - void checkNew3DSApp(u32 messagePointer); - void enable(u32 messagePointer); - void getAppletInfo(u32 messagePointer); - void getSharedFont(u32 messagePointer); - void getWirelessRebootInfo(u32 messagePointer); - void glanceParameter(u32 messagePointer); - void initialize(u32 messagePointer); - void inquireNotification(u32 messagePointer); - void isRegistered(u32 messagePointer); - void notifyToWait(u32 messagePointer); - void preloadLibraryApplet(u32 messagePointer); - void prepareToStartLibraryApplet(u32 messagePointer); - void receiveParameter(u32 messagePointer); - void replySleepQuery(u32 messagePointer); - void setApplicationCpuTimeLimit(u32 messagePointer); - void setScreencapPostPermission(u32 messagePointer); - void sendParameter(u32 messagePointer); - void startLibraryApplet(u32 messagePointer); - void theSmashBrosFunction(u32 messagePointer); - - // Percentage of the syscore available to the application, between 5% and 89% - u32 cpuTimeLimit; - - enum class NotificationType : u32 { - None = 0, - HomeButton1 = 1, - HomeButton2 = 2, - SleepQuery = 3, - SleepCanceledByOpen = 4, - SleepAccepted = 5, - SleepAwake = 6, - Shutdown = 7, - PowerButtonClick = 8, - PowerButtonClear = 9, - TrySleep = 10, - OrderToClose = 11 - }; - - u32 screencapPostPermission; - -public: - APTService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel), appletManager(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/boss.hpp b/include/services/boss.hpp deleted file mode 100644 index 769184e5..00000000 --- a/include/services/boss.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class BOSSService { - Handle handle = KernelHandles::BOSS; - Memory& mem; - MAKE_LOG_FUNCTION(log, bossLogger) - - // Service commands - void cancelTask(u32 messagePointer); - void initializeSession(u32 messagePointer); - void getErrorCode(u32 messagePointer); - void getNewArrivalFlag(u32 messagePointer); - void getNsDataIdList(u32 messagePointer, u32 commandWord); - void getOptoutFlag(u32 messagePointer); - void getStorageEntryInfo(u32 messagePointer); // Unknown what this is, name taken from Citra - void getTaskIdList(u32 messagePointer); - void getTaskInfo(u32 messagePointer); - void getTaskServiceStatus(u32 messagePointer); - void getTaskState(u32 messagePointer); - void getTaskStatus(u32 messagePointer); - void getTaskStorageInfo(u32 messagePointer); - void receiveProperty(u32 messagePointer); - void registerNewArrivalEvent(u32 messagePointer); - void registerStorageEntry(u32 messagePointer); - void registerTask(u32 messagePointer); - void sendProperty(u32 messagePointer); - void setOptoutFlag(u32 messagePointer); - void startTask(u32 messagePointer); - void unregisterStorage(u32 messagePointer); - void unregisterTask(u32 messagePointer); - - s8 optoutFlag; -public: - BOSSService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/cam.hpp b/include/services/cam.hpp deleted file mode 100644 index 60ede3b9..00000000 --- a/include/services/cam.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#pragma once -#include -#include - -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -// Yay, circular dependencies! -class Kernel; - -class CAMService { - using Event = std::optional; - - struct Port { - Event bufferErrorInterruptEvent = std::nullopt; - Event receiveEvent = std::nullopt; - u16 transferBytes; - - void reset() { - bufferErrorInterruptEvent = std::nullopt; - receiveEvent = std::nullopt; - transferBytes = 256; - } - }; - - Handle handle = KernelHandles::CAM; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, camLogger) - - static constexpr size_t portCount = 2; - std::array ports; - - // Service commands - void driverInitialize(u32 messagePointer); - void driverFinalize(u32 messagePointer); - void getMaxBytes(u32 messagePointer); - void getMaxLines(u32 messagePointer); - void getBufferErrorInterruptEvent(u32 messagePointer); - void getSuitableY2RCoefficients(u32 messagePointer); - void getTransferBytes(u32 messagePointer); - void setContrast(u32 messagePointer); - void setFrameRate(u32 messagePointer); - void setReceiving(u32 messagePointer); - void setSize(u32 messagePointer); - void setTransferBytes(u32 messagePointer); - void setTransferLines(u32 messagePointer); - void setTrimming(u32 messagePointer); - void setTrimmingParamsCenter(u32 messagePointer); - void startCapture(u32 messagePointer); - - public: - CAMService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/cecd.hpp b/include/services/cecd.hpp deleted file mode 100644 index 656e38ad..00000000 --- a/include/services/cecd.hpp +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once -#include -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class Kernel; - -class CECDService { - Handle handle = KernelHandles::CECD; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, cecdLogger) - - std::optional infoEvent; - - // Service commands - void getInfoEventHandle(u32 messagePointer); - void openAndRead(u32 messagePointer); - -public: - CECDService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/cfg.hpp b/include/services/cfg.hpp deleted file mode 100644 index 7241a409..00000000 --- a/include/services/cfg.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once -#include -#include "helpers.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "region_codes.hpp" -#include "result/result.hpp" - -class CFGService { - Memory& mem; - CountryCodes country = CountryCodes::US; // Default to USA - MAKE_LOG_FUNCTION(log, cfgLogger) - - void writeStringU16(u32 pointer, const std::u16string& string); - - // Service functions - void getConfigInfoBlk2(u32 messagePointer); - void getConfigInfoBlk8(u32 messagePointer); - void getCountryCodeID(u32 messagePointer); - void getLocalFriendCodeSeed(u32 messagePointer); - void getRegionCanadaUSA(u32 messagePointer); - void getSystemModel(u32 messagePointer); - void genUniqueConsoleHash(u32 messagePointer); - void secureInfoGetByte101(u32 messagePointer); - void secureInfoGetRegion(u32 messagePointer); - void translateCountryInfo(u32 messagePointer); - - void getConfigInfo(u32 output, u32 blockID, u32 size, u32 permissionMask); - -public: - enum class Type { - U, // cfg:u - I, // cfg:i - S, // cfg:s - NOR, // cfg:nor - }; - - CFGService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer, Type type); -}; \ No newline at end of file diff --git a/include/services/csnd.hpp b/include/services/csnd.hpp deleted file mode 100644 index 8f6d60f8..00000000 --- a/include/services/csnd.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once -#include - -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -// Circular dependencies ^-^ -class Kernel; - -class CSNDService { - Handle handle = KernelHandles::CSND; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, csndLogger) - - u8* sharedMemory = nullptr; - std::optional csndMutex = std::nullopt; - size_t sharedMemSize = 0; - bool initialized = false; - - // Service functions - void acquireSoundChannels(u32 messagePointer); - void executeCommands(u32 messagePointer); - void initialize(u32 messagePointer); - - public: - CSNDService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); - - void setSharedMemory(u8* ptr) { - sharedMemory = ptr; - } -}; \ No newline at end of file diff --git a/include/services/dlp_srvr.hpp b/include/services/dlp_srvr.hpp deleted file mode 100644 index 1e714283..00000000 --- a/include/services/dlp_srvr.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -// Please forgive me for how everything in this file is named -// "dlp:SRVR" is not a nice name to work with -class DlpSrvrService { - Handle handle = KernelHandles::DLP_SRVR; - Memory& mem; - MAKE_LOG_FUNCTION(log, dlpSrvrLogger) - - // Service commands - void isChild(u32 messagePointer); - -public: - DlpSrvrService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/dsp.hpp b/include/services/dsp.hpp deleted file mode 100644 index bc27377d..00000000 --- a/include/services/dsp.hpp +++ /dev/null @@ -1,73 +0,0 @@ -#pragma once -#include -#include -#include "audio/dsp_core.hpp" -#include "helpers.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -// Circular dependencies! -class Kernel; - -class DSPService { - Handle handle = KernelHandles::DSP; - Memory& mem; - Kernel& kernel; - Audio::DSPCore* dsp = nullptr; - MAKE_LOG_FUNCTION(log, dspServiceLogger) - - // Number of DSP pipes - static constexpr size_t pipeCount = 8; - - // DSP service event handles - using DSPEvent = std::optional; - - DSPEvent semaphoreEvent; - DSPEvent interrupt0; - DSPEvent interrupt1; - std::array pipeEvents; - u16 semaphoreMask = 0; - - DSPEvent& getEventRef(u32 type, u32 pipe); - static constexpr size_t maxEventCount = 6; - - // Total number of DSP service events registered with registerInterruptEvents - size_t totalEventCount; - - // Service functions - void convertProcessAddressFromDspDram(u32 messagePointer); // Nice function name - void flushDataCache(u32 messagePointer); - void getHeadphoneStatus(u32 messagePointer); - void getSemaphoreEventHandle(u32 messagePointer); - void invalidateDCache(u32 messagePointer); - void loadComponent(u32 messagePointer); - void readPipeIfPossible(u32 messagePointer); - void recvData(u32 messagePointer); - void recvDataIsReady(u32 messagePointer); - void registerInterruptEvents(u32 messagePointer); - void setSemaphore(u32 messagePointer); - void setSemaphoreMask(u32 messagePointer); - void unloadComponent(u32 messagePointer); - void writeProcessPipe(u32 messagePointer); - -public: - DSPService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); - void setDSPCore(Audio::DSPCore* pointer) { dsp = pointer; } - - // Special callback that's ran when the semaphore event is signalled - void onSemaphoreEventSignal() { dsp->setSemaphore(semaphoreMask); } - - enum class SoundOutputMode : u8 { - Mono = 0, - Stereo = 1, - Surround = 2 - }; - - void triggerPipeEvent(int index); - void triggerSemaphoreEvent(); - void triggerInterrupt0(); - void triggerInterrupt1(); -}; \ No newline at end of file diff --git a/include/services/frd.hpp b/include/services/frd.hpp deleted file mode 100644 index b9b3b0fe..00000000 --- a/include/services/frd.hpp +++ /dev/null @@ -1,64 +0,0 @@ -#pragma once -#include -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -// It's important to keep this struct to 16 bytes as we use its sizeof in the service functions in frd.cpp -struct FriendKey { - u32 friendID; - u32 dummy; - u64 friendCode; -}; -static_assert(sizeof(FriendKey) == 16); - -class FRDService { - Memory& mem; - MAKE_LOG_FUNCTION(log, frdLogger) - - bool loggedIn = false; - - // Service commands - void attachToEventNotification(u32 messagePointer); - void getFriendAttributeFlags(u32 messagePointer); - void getFriendKeyList(u32 messagePointer); - void getFriendPresence(u32 messagePointer); - void getFriendProfile(u32 messagePointer); - void getFriendRelationship(u32 messagePointer); - void getMyComment(u32 messagePointer); - void getMyFavoriteGame(u32 messagePointer); - void getMyFriendKey(u32 messagePointer); - void getMyMii(u32 messagePointer); - void getMyPresence(u32 messagePointer); - void getMyProfile(u32 messagePointer); - void getMyScreenName(u32 messsagePointer); - void hasLoggedIn(u32 messagePointer); - void isOnline(u32 messagePointer); - void logout(u32 messagePointer); - void setClientSDKVersion(u32 messagePointer); - void setNotificationMask(u32 messagePointer); - void updateGameModeDescription(u32 messagePointer); - void updateMii(u32 messagePointer); - - struct Profile { - u8 region; - u8 country; - u8 area; - u8 language; - u32 unknown; - }; - static_assert(sizeof(Profile) == 8); - -public: - enum class Type { - A, // frd:a - N, // frd:n - U, // frd:u - }; - - FRDService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer, Type type); -}; \ No newline at end of file diff --git a/include/services/fs.hpp b/include/services/fs.hpp deleted file mode 100644 index 4a613121..00000000 --- a/include/services/fs.hpp +++ /dev/null @@ -1,94 +0,0 @@ -#pragma once -#include "config.hpp" -#include "fs/archive_ext_save_data.hpp" -#include "fs/archive_ncch.hpp" -#include "fs/archive_save_data.hpp" -#include "fs/archive_sdmc.hpp" -#include "fs/archive_self_ncch.hpp" -#include "fs/archive_system_save_data.hpp" -#include "fs/archive_user_save_data.hpp" -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -// Yay, more circular dependencies -class Kernel; - -class FSService { - Handle handle = KernelHandles::FS; - Memory& mem; - Kernel& kernel; - - MAKE_LOG_FUNCTION(log, fsLogger) - - // The different filesystem archives (Save data, SelfNCCH, SDMC, NCCH, ExtData, etc) - SelfNCCHArchive selfNcch; - SaveDataArchive saveData; - SDMCArchive sdmc; - SDMCArchive sdmcWriteOnly; - NCCHArchive ncch; - - // UserSaveData archives - UserSaveDataArchive userSaveData1; - UserSaveDataArchive userSaveData2; - - ExtSaveDataArchive extSaveData_sdmc; - ExtSaveDataArchive sharedExtSaveData_nand; - SystemSaveDataArchive systemSaveData; - - ArchiveBase* getArchiveFromID(u32 id, const FSPath& archivePath); - Rust::Result openArchiveHandle(u32 archiveID, const FSPath& path); - Rust::Result openDirectoryHandle(ArchiveBase* archive, const FSPath& path); - std::optional openFileHandle(ArchiveBase* archive, const FSPath& path, const FSPath& archivePath, const FilePerms& perms); - FSPath readPath(u32 type, u32 pointer, u32 size); - - const EmulatorConfig& config; - - // Service commands - void abnegateAccessRight(u32 messagePointer); - void cardSlotIsInserted(u32 messagePointer); - void createDirectory(u32 messagePointer); - void createExtSaveData(u32 messagePointer); - void createFile(u32 messagePointer); - void closeArchive(u32 messagePointer); - void controlArchive(u32 messagePointer); - void deleteDirectory(u32 messagePointer); - void deleteExtSaveData(u32 messagePointer); - void deleteFile(u32 messagePointer); - void formatSaveData(u32 messagePointer); - void formatThisUserSaveData(u32 messagePointer); - void getArchiveResource(u32 messagePointer); - void getFreeBytes(u32 messagePointer); - void getFormatInfo(u32 messagePointer); - void getPriority(u32 messagePointer); - void getSdmcArchiveResource(u32 messagePointer); - void getThisSaveDataSecureValue(u32 messagePointer); - void theGameboyVCFunction(u32 messagePointer); - void initialize(u32 messagePointer); - void initializeWithSdkVersion(u32 messagePointer); - void isSdmcDetected(u32 messagePointer); - void isSdmcWritable(u32 messagePOinter); - void openArchive(u32 messagePointer); - void openDirectory(u32 messagePointer); - void openFile(u32 messagePointer); - void openFileDirectly(u32 messagePointer); - void renameFile(u32 messagePointer); - void setArchivePriority(u32 messagePointer); - void setPriority(u32 messagePointer); - void setThisSaveDataSecureValue(u32 messagePointer); - - // Used for set/get priority: Not sure what sort of priority this is referring to - u32 priority; - -public: - FSService(Memory& mem, Kernel& kernel, const EmulatorConfig& config) - : mem(mem), saveData(mem), sharedExtSaveData_nand(mem, "../SharedFiles/NAND", true), extSaveData_sdmc(mem, "SDMC"), sdmc(mem), - sdmcWriteOnly(mem, true), selfNcch(mem), ncch(mem), userSaveData1(mem, ArchiveID::UserSaveData1), - userSaveData2(mem, ArchiveID::UserSaveData2), kernel(kernel), config(config), systemSaveData(mem) {} - - void reset(); - void handleSyncRequest(u32 messagePointer); - // Creates directories for NAND, ExtSaveData, etc if they don't already exist. Should be executed after loading a new ROM. - void initializeFilesystem(); -}; \ No newline at end of file diff --git a/include/services/gsp_gpu.hpp b/include/services/gsp_gpu.hpp deleted file mode 100644 index 0da4fcd0..00000000 --- a/include/services/gsp_gpu.hpp +++ /dev/null @@ -1,121 +0,0 @@ -#pragma once -#include -#include -#include "PICA/gpu.hpp" -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -enum class GPUInterrupt : u8 { - PSC0 = 0, // Memory fill completed - PSC1 = 1, // ? - VBlank0 = 2, // ? - VBlank1 = 3, // ? - PPF = 4, // Display transfer finished - P3D = 5, // Command list processing finished - DMA = 6 -}; - -// More circular dependencies -class Kernel; - -class GPUService { - Handle handle = KernelHandles::GPU; - Memory& mem; - GPU& gpu; - Kernel& kernel; - u32& currentPID; // Process ID of the current process - u8* sharedMem; // Pointer to GSP shared memory - - // At any point in time only 1 process has privileges to use rendering functions - // This is the PID of that process - u32 privilegedProcess; - std::optional interruptEvent; - - // Number of threads registered via RegisterInterruptRelayQueue - u32 gspThreadCount = 0; - - MAKE_LOG_FUNCTION(log, gspGPULogger) - void processCommandBuffer(); - - struct FramebufferInfo { - u32 activeFb; - u32 leftFramebufferVaddr; - u32 rightFramebufferVaddr; - u32 stride; - u32 format; - u32 displayFb; - u32 attribute; - }; - static_assert(sizeof(FramebufferInfo) == 28, "GSP::GPU::FramebufferInfo has the wrong size"); - - struct FramebufferUpdate { - u8 index; - u8 dirtyFlag; - u16 pad0; - std::array framebufferInfo; - u32 pad1; - }; - static_assert(sizeof(FramebufferUpdate) == 64, "GSP::GPU::FramebufferUpdate has the wrong size"); - - // Used for saving and restoring GPU state via ImportDisplayCaptureInfo - struct CaptureInfo { - u32 leftFramebuffer; // Left framebuffer VA - u32 rightFramebuffer; // Right framebuffer VA (Top screen only) - u32 format; - u32 stride; - }; - static_assert(sizeof(CaptureInfo) == 16, "GSP::GPU::CaptureInfo has the wrong size"); - - // Service commands - void acquireRight(u32 messagePointer); - void flushDataCache(u32 messagePointer); - void importDisplayCaptureInfo(u32 messagePointer); - void readHwRegs(u32 messagePointer); - void registerInterruptRelayQueue(u32 messagePointer); - void releaseRight(u32 messagePointer); - void restoreVramSysArea(u32 messagePointer); - void saveVramSysArea(u32 messagePointer); - void setAxiConfigQoSMode(u32 messagePointer); - void setBufferSwap(u32 messagePointer); - void setInternalPriorities(u32 messagePointer); - void setLCDForceBlack(u32 messagePointer); - void storeDataCache(u32 messagePointer); - void triggerCmdReqQueue(u32 messagePointer); - void writeHwRegs(u32 messagePointer); - void writeHwRegsWithMask(u32 messagePointer); - - // GSP commands processed via TriggerCmdReqQueue - void processCommandList(u32* cmd); - void memoryFill(u32* cmd); - void triggerDisplayTransfer(u32* cmd); - void triggerDMARequest(u32* cmd); - void triggerTextureCopy(u32* cmd); - void flushCacheRegions(u32* cmd); - - void setBufferSwapImpl(u32 screen_id, const FramebufferInfo& info); - - // Get the framebuffer info in shared memory for a given screen - FramebufferUpdate* getFramebufferInfo(int screen) { - // TODO: Offset depends on GSP thread being triggered - return reinterpret_cast(&sharedMem[0x200 + screen * sizeof(FramebufferUpdate)]); - } - - FramebufferUpdate* getTopFramebufferInfo() { return getFramebufferInfo(0); } - FramebufferUpdate* getBottomFramebufferInfo() { return getFramebufferInfo(1); } - -public: - GPUService(Memory& mem, GPU& gpu, Kernel& kernel, u32& currentPID) : mem(mem), gpu(gpu), - kernel(kernel), currentPID(currentPID) {} - void reset(); - void handleSyncRequest(u32 messagePointer); - void requestInterrupt(GPUInterrupt type); - void setSharedMem(u8* ptr) { - sharedMem = ptr; - if (ptr != nullptr) { // Zero-fill shared memory in case the process tries to read stale service data or vice versa - std::memset(ptr, 0, 0x1000); - } - } -}; diff --git a/include/services/gsp_lcd.hpp b/include/services/gsp_lcd.hpp deleted file mode 100644 index e7672d4f..00000000 --- a/include/services/gsp_lcd.hpp +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class LCDService { - Handle handle = KernelHandles::LCD; - Memory& mem; - MAKE_LOG_FUNCTION(log, gspLCDLogger) - - // Service commands - -public: - LCDService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/hid.hpp b/include/services/hid.hpp deleted file mode 100644 index febd7bd6..00000000 --- a/include/services/hid.hpp +++ /dev/null @@ -1,148 +0,0 @@ -#pragma once -#include -#include - -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -namespace HID::Keys { - enum : u32 { - A = 1 << 0, - B = 1 << 1, - Select = 1 << 2, - Start = 1 << 3, - Right = 1 << 4, - Left = 1 << 5, - Up = 1 << 6, - Down = 1 << 7, - R = 1 << 8, - L = 1 << 9, - X = 1 << 10, - Y = 1 << 11, - - GPIO0Inv = 1 << 12, // Inverted value of GPIO bit 0 - GPIO14Inv = 1 << 13, // Inverted value of GPIO bit 14 - - CirclePadRight = 1 << 28, // X >= 41 - CirclePadLeft = 1 << 29, // X <= -41 - CirclePadUp = 1 << 30, // Y >= 41 - CirclePadDown = 1u << 31 // Y <= -41 - }; -} - -// Circular dependency because we need HID to spawn events -class Kernel; - -class HIDService { - Handle handle = KernelHandles::HID; - Memory& mem; - Kernel& kernel; - u8* sharedMem = nullptr; // Pointer to HID shared memory - - uint nextPadIndex; - uint nextTouchscreenIndex; - uint nextAccelerometerIndex; - uint nextGyroIndex; - - u32 newButtons; // The button state currently being edited - u32 oldButtons; // The previous pad state - - s16 circlePadX, circlePadY; // Circlepad state - s16 touchScreenX, touchScreenY; // Touchscreen state - s16 roll, pitch, yaw; // Gyroscope state - - bool accelerometerEnabled; - bool eventsInitialized; - bool gyroEnabled; - bool touchScreenPressed; - - std::array, 5> events; - - MAKE_LOG_FUNCTION(log, hidLogger) - - // Service commands - void disableAccelerometer(u32 messagePointer); - void disableGyroscopeLow(u32 messagePointer); - void enableAccelerometer(u32 messagePointer); - void enableGyroscopeLow(u32 messagePointer); - void getGyroscopeLowCalibrateParam(u32 messagePointer); - void getGyroscopeCoefficient(u32 messagePointer); - void getIPCHandles(u32 messagePointer); - void getSoundVolume(u32 messagePointer); - - // Don't call these prior to initializing shared mem pls - template - T readSharedMem(size_t offset) { - return *(T*)&sharedMem[offset]; - } - - template - void writeSharedMem(size_t offset, T value) { - *(T*)&sharedMem[offset] = value; - } - - public: - HIDService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); - - void pressKey(u32 mask) { newButtons |= mask; } - void releaseKey(u32 mask) { newButtons &= ~mask; } - void setKey(u32 mask, bool pressed) { pressed ? pressKey(mask) : releaseKey(mask); } - - u32 getOldButtons() const { return oldButtons; } - s16 getCirclepadX() const { return circlePadX; } - s16 getCirclepadY() const { return circlePadY; } - - void setCirclepadX(s16 x) { - circlePadX = x; - - // Turn bits 28 and 29 off in the new button state, which indicate whether the circlepad is steering left or right - // Then, set them according to the new value of x - newButtons &= ~0x3000'0000; - if (x >= 41) // Pressing right - newButtons |= 1 << 28; - else if (x <= -41) // Pressing left - newButtons |= 1 << 29; - } - - void setCirclepadY(s16 y) { - circlePadY = y; - - // Turn bits 30 and 31 off in the new button state, which indicate whether the circlepad is steering up or down - // Then, set them according to the new value of y - newButtons &= ~0xC000'0000; - if (y >= 41) // Pressing up - newButtons |= 1 << 30; - else if (y <= -41) // Pressing down - newButtons |= 1 << 31; - } - - void setRoll(s16 value) { roll = value; } - void setPitch(s16 value) { pitch = value; } - void setYaw(s16 value) { yaw = value; } - - void updateInputs(u64 currentTimestamp); - - void setSharedMem(u8* ptr) { - sharedMem = ptr; - if (ptr != nullptr) { // Zero-fill shared memory in case the process tries to read stale service data or vice versa - std::memset(ptr, 0, 0x2b0); - } - } - - void setTouchScreenPress(u16 x, u16 y) { - touchScreenX = x; - touchScreenY = y; - touchScreenPressed = true; - } - - void releaseTouchScreen() { - touchScreenPressed = false; - } - - bool isTouchScreenPressed() { return touchScreenPressed; } -}; diff --git a/include/services/http.hpp b/include/services/http.hpp deleted file mode 100644 index 1e7f30c3..00000000 --- a/include/services/http.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -class HTTPService { - Handle handle = KernelHandles::HTTP; - Memory& mem; - MAKE_LOG_FUNCTION(log, httpLogger) - - bool initialized = false; - - // Service commands - void createRootCertChain(u32 messagePointer); - void initialize(u32 messagePointer); - void rootCertChainAddDefaultCert(u32 messagePointer); - - public: - HTTPService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/ir_user.hpp b/include/services/ir_user.hpp deleted file mode 100644 index 186d9717..00000000 --- a/include/services/ir_user.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#pragma once -#include - -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -// Circular dependencies in this project? Never -class Kernel; - -class IRUserService { - enum class DeviceID : u8 { - CirclePadPro = 1, - }; - - Handle handle = KernelHandles::IR_USER; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, irUserLogger) - - // Service commands - void disconnect(u32 messagePointer); - void finalizeIrnop(u32 messagePointer); - void getConnectionStatusEvent(u32 messagePointer); - void getReceiveEvent(u32 messagePointer); - void initializeIrnopShared(u32 messagePointer); - void requireConnection(u32 messagePointer); - void sendIrnop(u32 messagePointer); - - using IREvent = std::optional; - - IREvent connectionStatusEvent = std::nullopt; - IREvent receiveEvent = std::nullopt; - - std::optional sharedMemory = std::nullopt; - bool connectedDevice = false; - - // Header of the IR shared memory containing various bits of info - // https://www.3dbrew.org/wiki/IRUSER_Shared_Memory - struct SharedMemoryStatus { - u32 latestReceiveError; - u32 latestSharedError; - - u8 connectionStatus; - u8 connectionAttemptStatus; - u8 connectionRole; - u8 machineID; - u8 isConnected; - u8 networkID; - u8 isInitialized; // https://github.com/citra-emu/citra/blob/c10ffda91feb3476a861c47fb38641c1007b9d33/src/core/hle/service/ir/ir_user.cpp#L41 - u8 unk1; - }; - static_assert(sizeof(SharedMemoryStatus) == 16); - - public: - IRUserService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/ldr_ro.hpp b/include/services/ldr_ro.hpp deleted file mode 100644 index 71516547..00000000 --- a/include/services/ldr_ro.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class Kernel; - -class LDRService { - Handle handle = KernelHandles::LDR_RO; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, ldrLogger) - - u32 loadedCRS; - - // Service commands - void initialize(u32 messagePointer); - void linkCRO(u32 messagePointer); - void loadCRO(u32 messagePointer, bool isNew); - void loadCRR(u32 messagePointer); - void unloadCRO(u32 messagePointer); - -public: - LDRService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/mcu/mcu_hwc.hpp b/include/services/mcu/mcu_hwc.hpp deleted file mode 100644 index 354a0c20..00000000 --- a/include/services/mcu/mcu_hwc.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once -#include "config.hpp" -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -namespace MCU { - class HWCService { - Handle handle = KernelHandles::MCU_HWC; - Memory& mem; - MAKE_LOG_FUNCTION(log, mcuLogger) - - const EmulatorConfig& config; - - // Service commands - void getBatteryLevel(u32 messagePointer); - - public: - HWCService(Memory& mem, const EmulatorConfig& config) : mem(mem), config(config) {} - void reset(); - void handleSyncRequest(u32 messagePointer); - }; -} // namespace MCU \ No newline at end of file diff --git a/include/services/mic.hpp b/include/services/mic.hpp deleted file mode 100644 index f709c27f..00000000 --- a/include/services/mic.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -// Circular dependencies, yay -class Kernel; - -class MICService { - Handle handle = KernelHandles::MIC; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, micLogger) - - // Service commands - void getEventHandle(u32 messagePointer); - void getGain(u32 messagePointer); - void getPower(u32 messagePointer); - void isSampling(u32 messagePointer); - void mapSharedMem(u32 messagePointer); - void setClamp(u32 messagePointer); - void setGain(u32 messagePointer); - void setIirFilter(u32 messagePointer); - void setPower(u32 messagePointer); - void startSampling(u32 messagePointer); - void stopSampling(u32 messagePointer); - void unmapSharedMem(u32 messagePointer); - void theCaptainToadFunction(u32 messagePointer); - - u8 gain = 0; // How loud our microphone input signal is - bool micEnabled = false; - bool shouldClamp = false; - bool currentlySampling = false; - - std::optional eventHandle; - -public: - MICService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/ndm.hpp b/include/services/ndm.hpp deleted file mode 100644 index 6d4e5ad8..00000000 --- a/include/services/ndm.hpp +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class NDMService { - enum class ExclusiveState : u32 { None = 0, Infrastructure = 1, LocalComms = 2, StreetPass = 3, StreetPassData = 4 }; - - Handle handle = KernelHandles::NDM; - Memory& mem; - MAKE_LOG_FUNCTION(log, ndmLogger) - - // Service commands - void clearHalfAwakeMacFilter(u32 messagePointer); - void enterExclusiveState(u32 messagePointer); - void exitExclusiveState(u32 messagePointer); - void overrideDefaultDaemons(u32 messagePointer); - void queryExclusiveState(u32 messagePointer); - void resumeDaemons(u32 messagePointer); - void resumeScheduler(u32 messagePointer); - void suspendDaemons(u32 messagePointer); - void suspendScheduler(u32 messagePointer); - - ExclusiveState exclusiveState = ExclusiveState::None; - -public: - NDMService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/news_u.hpp b/include/services/news_u.hpp deleted file mode 100644 index 61266e9a..00000000 --- a/include/services/news_u.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -class NewsUService { - Handle handle = KernelHandles::NEWS_U; - Memory& mem; - MAKE_LOG_FUNCTION(log, newsLogger) - - // Service commands - - public: - NewsUService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/nfc.hpp b/include/services/nfc.hpp deleted file mode 100644 index 8eea8a41..00000000 --- a/include/services/nfc.hpp +++ /dev/null @@ -1,66 +0,0 @@ -#pragma once -#include - -#include "amiibo_device.hpp" -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -// You know the drill -class Kernel; - -class NFCService { - Handle handle = KernelHandles::NFC; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, nfcLogger) - - enum class Old3DSAdapterStatus : u32 { - Idle = 0, - AttemptingToInitialize = 1, - InitializationComplete = 2, - Active = 3, - }; - - enum class TagStatus : u8 { - NotInitialized = 0, - Initialized = 1, - Scanning = 2, - InRange = 3, - OutOfRange = 4, - Loaded = 5, - }; - - // Kernel events signaled when an NFC tag goes in and out of range respectively - std::optional tagInRangeEvent, tagOutOfRangeEvent; - - AmiiboDevice device; - Old3DSAdapterStatus adapterStatus; - TagStatus tagStatus; - bool initialized = false; - - // Service commands - void communicationGetResult(u32 messagePointer); - void communicationGetStatus(u32 messagePointer); - void initialize(u32 messagePointer); - void getModelInfo(u32 messagePointer); - void getTagInfo(u32 messagePointer); - void getTagInRangeEvent(u32 messagePointer); - void getTagOutOfRangeEvent(u32 messagePointer); - void getTagState(u32 messagePointer); - void loadAmiiboPartially(u32 messagePointer); - void shutdown(u32 messagePointer); - void startCommunication(u32 messagePointer); - void startTagScanning(u32 messagePointer); - void stopCommunication(u32 messagePointer); - void stopTagScanning(u32 messagePointer); - - public: - NFCService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); - - bool loadAmiibo(const std::filesystem::path& path); -}; \ No newline at end of file diff --git a/include/services/nfc_types.hpp b/include/services/nfc_types.hpp deleted file mode 100644 index d3bcf09a..00000000 --- a/include/services/nfc_types.hpp +++ /dev/null @@ -1,412 +0,0 @@ -// Copyright 2022 yuzu Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include -#include - -#include "helpers.hpp" -#include "swap.hpp" - -namespace Service::NFC { - static constexpr std::size_t amiiboNameLength = 0xA; - static constexpr std::size_t applicationIDVersionOffset = 0x1c; - static constexpr std::size_t counterLimit = 0xffff; - - enum class ServiceType : u32 { - User, - Debug, - System, - }; - - enum class CommunicationState : u8 { - Idle = 0, - SearchingForAdapter = 1, - Initialized = 2, - Active = 3, - }; - - enum class ConnectionState : u8 { - Success = 0, - NoAdapter = 1, - Lost = 2, - }; - - enum class DeviceState : u32 { - NotInitialized = 0, - Initialized = 1, - SearchingForTag = 2, - TagFound = 3, - TagRemoved = 4, - TagMounted = 5, - TagPartiallyMounted = 6, // Validate this one seems to have other name - }; - - enum class ModelType : u32 { - Amiibo, - }; - - enum class MountTarget : u32 { - None, - Rom, - Ram, - All, - }; - - enum class AmiiboType : u8 { - Figure, - Card, - Yarn, - }; - - enum class AmiiboSeries : u8 { - SuperSmashBros, - SuperMario, - ChibiRobo, - YoshiWoollyWorld, - Splatoon, - AnimalCrossing, - EightBitMario, - Skylanders, - Unknown8, - TheLegendOfZelda, - ShovelKnight, - Unknown11, - Kiby, - Pokemon, - MarioSportsSuperstars, - MonsterHunter, - BoxBoy, - Pikmin, - FireEmblem, - Metroid, - Others, - MegaMan, - Diablo, - }; - - struct ChecksummedMiiData { - u8 raw[0x60]; - }; - static_assert(sizeof(ChecksummedMiiData) == 0x60); - - enum class TagType : u32 { - None, - Type1, // ISO14443A RW 96-2k bytes 106kbit/s - Type2, // ISO14443A RW/RO 540 bytes 106kbit/s - Type3, // Sony Felica RW/RO 2k bytes 212kbit/s - Type4, // ISO14443A RW/RO 4k-32k bytes 424kbit/s - Type5, // ISO15693 RW/RO 540 bytes 106kbit/s - }; - - enum class PackedTagType : u8 { - None, - Type1, // ISO14443A RW 96-2k bytes 106kbit/s - Type2, // ISO14443A RW/RO 540 bytes 106kbit/s - Type3, // Sony Felica RW/RO 2k bytes 212kbit/s - Type4, // ISO14443A RW/RO 4k-32k bytes 424kbit/s - Type5, // ISO15693 RW/RO 540 bytes 106kbit/s - }; - - // Verify this enum. It might be completely wrong default protocol is 0x0 - enum class TagProtocol : u32 { - None, - TypeA = 1U << 0, // ISO14443A - TypeB = 1U << 1, // ISO14443B - TypeF = 1U << 2, // Sony Felica - Unknown1 = 1U << 3, - Unknown2 = 1U << 5, - All = 0xFFFFFFFFU, - }; - - // Verify this enum. It might be completely wrong default protocol is 0x0 - enum class PackedTagProtocol : u8 { - None, - TypeA = 1U << 0, // ISO14443A - TypeB = 1U << 1, // ISO14443B - TypeF = 1U << 2, // Sony Felica - Unknown1 = 1U << 3, - Unknown2 = 1U << 5, - All = 0xFF, - }; - - enum class AppAreaVersion : u8 { - Nintendo3DS = 0, - NintendoWiiU = 1, - Nintendo3DSv2 = 2, - NintendoSwitch = 3, - NotSet = 0xFF, - }; - - using UniqueSerialNumber = std::array; - using LockBytes = std::array; - using HashData = std::array; - using ApplicationArea = std::array; - using AmiiboName = std::array; - using DataBlock = std::array; - using KeyData = std::array; - - struct TagUuid { - UniqueSerialNumber uid; - u8 nintendo_id; - LockBytes lock_bytes; - }; - static_assert(sizeof(TagUuid) == 10, "TagUuid is an invalid size"); - - struct WriteDate { - u16 year; - u8 month; - u8 day; - }; - static_assert(sizeof(WriteDate) == 0x4, "WriteDate is an invalid size"); - - struct AmiiboDate { - u16 raw_date{}; - - u16 GetValue() const { return Common::swap16(raw_date); } - - u16 GetYear() const { return static_cast(((GetValue() & 0xFE00) >> 9) + 2000); } - u8 GetMonth() const { return static_cast((GetValue() & 0x01E0) >> 5); } - u8 GetDay() const { return static_cast(GetValue() & 0x001F); } - - WriteDate GetWriteDate() const { - if (!IsValidDate()) { - return { - .year = 2000, - .month = 1, - .day = 1, - }; - } - return { - .year = GetYear(), - .month = GetMonth(), - .day = GetDay(), - }; - } - - void SetYear(u16 year) { - const u16 year_converted = static_cast((year - 2000) << 9); - raw_date = Common::swap16((GetValue() & ~0xFE00) | year_converted); - } - void SetMonth(u8 month) { - const u16 month_converted = static_cast(month << 5); - raw_date = Common::swap16((GetValue() & ~0x01E0) | month_converted); - } - void SetDay(u8 day) { - const u16 day_converted = static_cast(day); - raw_date = Common::swap16((GetValue() & ~0x001F) | day_converted); - } - - bool IsValidDate() const { - const bool is_day_valid = GetDay() > 0 && GetDay() < 32; - const bool is_month_valid = GetMonth() > 0 && GetMonth() < 13; - const bool is_year_valid = GetYear() >= 2000; - return is_year_valid && is_month_valid && is_day_valid; - } - }; - static_assert(sizeof(AmiiboDate) == 2, "AmiiboDate is an invalid size"); - - struct Settings { - u8 raw{}; - }; - static_assert(sizeof(Settings) == 1, "AmiiboDate is an invalid size"); - - struct AmiiboSettings { - Settings settings; - u8 country_code_id; - u16_be crc_counter; // Incremented each time crc is changed - AmiiboDate init_date; - AmiiboDate write_date; - u32_be crc; - AmiiboName amiibo_name; // UTF-16 text - }; - static_assert(sizeof(AmiiboSettings) == 0x20, "AmiiboSettings is an invalid size"); - - struct AmiiboModelInfo { - u16 character_id; - u8 character_variant; - AmiiboType amiibo_type; - u16_be model_number; - AmiiboSeries series; - PackedTagType tag_type; - u32 pad; // Unknown - }; - static_assert(sizeof(AmiiboModelInfo) == 0xC, "AmiiboModelInfo is an invalid size"); - - struct NTAG215Password { - u32 PWD; // Password to allow write access - u16 PACK; // Password acknowledge reply - u16 RFUI; // Reserved for future use - }; - static_assert(sizeof(NTAG215Password) == 0x8, "NTAG215Password is an invalid size"); - -#pragma pack(1) - struct EncryptedAmiiboFile { - u8 constant_value; // Must be A5 - u16_be write_counter; // Number of times the amiibo has been written? - u8 amiibo_version; // Amiibo file version - AmiiboSettings settings; // Encrypted amiibo settings - HashData hmac_tag; // Hash - AmiiboModelInfo model_info; // Encrypted amiibo model info - HashData keygen_salt; // Salt - HashData hmac_data; // Hash - ChecksummedMiiData owner_mii; // Encrypted Mii data - u64_be application_id; // Encrypted Game id - u16_be application_write_counter; // Encrypted Counter - u32_be application_area_id; // Encrypted Game id - u8 application_id_byte; - u8 unknown; - u64 mii_extension; - std::array unknown2; - u32_be register_info_crc; - ApplicationArea application_area; // Encrypted Game data - }; - static_assert(sizeof(EncryptedAmiiboFile) == 0x1F8, "AmiiboFile is an invalid size"); - - struct NTAG215File { - LockBytes lock_bytes; // Tag UUID - u16 static_lock; // Set defined pages as read only - u32 compability_container; // Defines available memory - HashData hmac_data; // Hash - u8 constant_value; // Must be A5 - u16_be write_counter; // Number of times the amiibo has been written? - u8 amiibo_version; // Amiibo file version - AmiiboSettings settings; - ChecksummedMiiData owner_mii; // Mii data - u64_be application_id; // Game id - u16_be application_write_counter; // Counter - u32_be application_area_id; - u8 application_id_byte; - u8 unknown; - u64 mii_extension; - std::array unknown2; - u32_be register_info_crc; - ApplicationArea application_area; // Game data - HashData hmac_tag; // Hash - UniqueSerialNumber uid; // Unique serial number - u8 nintendo_id; // Tag UUID - AmiiboModelInfo model_info; - HashData keygen_salt; // Salt - u32 dynamic_lock; // Dynamic lock - u32 CFG0; // Defines memory protected by password - u32 CFG1; // Defines number of verification attempts - NTAG215Password password; // Password data - }; - static_assert(sizeof(NTAG215File) == 0x21C, "NTAG215File is an invalid size"); - static_assert(std::is_trivially_copyable_v, "NTAG215File must be trivially copyable."); -#pragma pack() - - struct EncryptedNTAG215File { - TagUuid uuid; // Unique serial number - u16 static_lock; // Set defined pages as read only - u32 compability_container; // Defines available memory - EncryptedAmiiboFile user_memory; // Writable data - u32 dynamic_lock; // Dynamic lock - u32 CFG0; // Defines memory protected by password - u32 CFG1; // Defines number of verification attempts - NTAG215Password password; // Password data - }; - static_assert(sizeof(EncryptedNTAG215File) == 0x21C, "EncryptedNTAG215File is an invalid size"); - static_assert(std::is_trivially_copyable_v, "EncryptedNTAG215File must be trivially copyable."); - - struct SerializableAmiiboFile { - union { - std::array raw; - NTAG215File file; - }; - }; - static_assert(sizeof(SerializableAmiiboFile) == 0x21C, "SerializableAmiiboFile is an invalid size"); - static_assert(std::is_trivially_copyable_v, "SerializableAmiiboFile must be trivially copyable."); - - struct SerializableEncryptedAmiiboFile { - union { - std::array raw; - EncryptedNTAG215File file; - }; - }; - static_assert(sizeof(SerializableEncryptedAmiiboFile) == 0x21C, "SerializableEncryptedAmiiboFile is an invalid size"); - static_assert(std::is_trivially_copyable_v, "SerializableEncryptedAmiiboFile must be trivially copyable."); - - struct TagInfo { - u16 uuid_length; - PackedTagProtocol protocol; - PackedTagType tag_type; - UniqueSerialNumber uuid; - std::array extra_data; - }; - static_assert(sizeof(TagInfo) == 0x2C, "TagInfo is an invalid size"); - - struct TagInfo2 { - u16 uuid_length; - u8 pad; - PackedTagType tag_type; - UniqueSerialNumber uuid; - std::array extra_data; - TagProtocol protocol; - std::array extra_data2; - }; - static_assert(sizeof(TagInfo2) == 0x60, "TagInfo2 is an invalid size"); - - struct CommonInfo { - WriteDate last_write_date; - u16 application_write_counter; - u16 character_id; - u8 character_variant; - AmiiboSeries series; - u16 model_number; - AmiiboType amiibo_type; - u8 version; - u16 application_area_size; - u8 pad[0x30]; - }; - static_assert(sizeof(CommonInfo) == 0x40, "CommonInfo is an invalid size"); - - struct ModelInfo { - u16 character_id; - u8 character_variant; - AmiiboSeries series; - u16 model_number; - AmiiboType amiibo_type; - u8 pad[0x2F]; - }; - static_assert(sizeof(ModelInfo) == 0x36, "ModelInfo is an invalid size"); - - struct RegisterInfo { - ChecksummedMiiData mii_data; - AmiiboName amiibo_name; - u16 pad; // Zero string terminator - u8 flags; - u8 font_region; - WriteDate creation_date; - u8 pad2[0x2C]; - }; - static_assert(sizeof(RegisterInfo) == 0xA8, "RegisterInfo is an invalid size"); - - struct RegisterInfoPrivate { - ChecksummedMiiData mii_data; - AmiiboName amiibo_name; - u16 pad; // Zero string terminator - u8 flags; - u8 font_region; - WriteDate creation_date; - u8 pad2[0x28]; - }; - static_assert(sizeof(RegisterInfoPrivate) == 0xA4, "RegisterInfoPrivate is an invalid size"); - static_assert(std::is_trivial_v, "RegisterInfoPrivate must be trivial."); - static_assert(std::is_trivially_copyable_v, "RegisterInfoPrivate must be trivially copyable."); - - struct AdminInfo { - u64_be application_id; - u32_be application_area_id; - u16 crc_counter; - u8 flags; - PackedTagType tag_type; - AppAreaVersion app_area_version; - u8 pad[0x7]; - u8 pad2[0x28]; - }; - static_assert(sizeof(AdminInfo) == 0x40, "AdminInfo is an invalid size"); - -} // namespace Service::NFC diff --git a/include/services/nim.hpp b/include/services/nim.hpp deleted file mode 100644 index dfe13694..00000000 --- a/include/services/nim.hpp +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class NIMService { - Handle handle = KernelHandles::NIM; - Memory& mem; - MAKE_LOG_FUNCTION(log, nimLogger) - - // Service commands - void initialize(u32 messagePointer); - -public: - NIMService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/nwm_uds.hpp b/include/services/nwm_uds.hpp deleted file mode 100644 index bf116bcf..00000000 --- a/include/services/nwm_uds.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include - -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -// More circular dependencies -class Kernel; - -class NwmUdsService { - Handle handle = KernelHandles::NWM_UDS; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, nwmUdsLogger) - - bool initialized = false; - std::optional eventHandle = std::nullopt; - - // Service commands - void initializeWithVersion(u32 messagePointer); - - public: - NwmUdsService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/ptm.hpp b/include/services/ptm.hpp deleted file mode 100644 index f752839b..00000000 --- a/include/services/ptm.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#pragma once -#include "config.hpp" -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "result/result.hpp" - -class PTMService { - Memory& mem; - MAKE_LOG_FUNCTION(log, ptmLogger) - - const EmulatorConfig& config; - - // Service commands - void configureNew3DSCPU(u32 messagePointer); - void getAdapterState(u32 messagePointer); - void getBatteryChargeState(u32 messagePointer); - void getBatteryLevel(u32 messagePointer); - void getPedometerState(u32 messagePointer); - void getStepHistory(u32 messagePointer); - void getStepHistoryAll(u32 messagePointer); - void getTotalStepCount(u32 messagePointer); - -public: - enum class Type { - U, // ptm:u - SYSM, // ptm:sysm - PLAY, // ptm:play - }; - - PTMService(Memory& mem, const EmulatorConfig& config) : mem(mem), config(config) {} - void reset(); - void handleSyncRequest(u32 messagePointer, Type type); - - // 0% -> 0 (shutting down) - // 1-5% -> 1 - // 6-10% -> 2 - // 11-30% -> 3 - // 31-60% -> 4 - // 61-100% -> 5 - static constexpr u8 batteryPercentToLevel(u8 percent) { - if (percent == 0) { - return 0; - } else if (percent >= 1 && percent <= 5) { - return 1; - } else if (percent >= 6 && percent <= 10) { - return 2; - } else if (percent >= 11 && percent <= 30) { - return 3; - } else if (percent >= 31 && percent <= 60) { - return 4; - } else { - return 5; - } - } -}; \ No newline at end of file diff --git a/include/services/region_codes.hpp b/include/services/region_codes.hpp deleted file mode 100644 index e06894cd..00000000 --- a/include/services/region_codes.hpp +++ /dev/null @@ -1,178 +0,0 @@ -#pragma once -#include "helpers.hpp" - -// Used for CFG::SecureInfoGetRegion -enum class Regions : u32 { - Japan = 0, - USA = 1, - Europe = 2, - Australia = 3, - China = 4, - Korea = 5, - Taiwan = 6 -}; - -// Used for the language field in the NAND user data -enum class LanguageCodes : u32 { - JP = 0, - EN = 1, - FR = 2, - DE = 3, - IT = 4, - ES = 5, - ZH = 6, - KO = 7, - NL = 8, - PT = 9, - RU = 10, - TW = 11, - - Japanese = JP, - English = EN, - French = FR, - German = DE, - Italian = IT, - Spanish = ES, - Chinese = ZH, - Korean = KO, - Dutch = NL, - Portuguese = PT, - Russian = RU, - Taiwanese = TW -}; - -enum class CountryCodes : u32 { - JP = 1, - AI = 8, - AG = 9, - AR = 10, - AW = 11, - BS = 12, - BB = 13, - BZ = 14, - BO = 15, - BR = 16, - VG = 17, - CA = 18, - KY = 19, - CL = 20, - CO = 21, - CR = 22, - DM = 23, - DO = 24, - EC = 25, - SV = 26, - GF = 27, - GD = 28, - GP = 29, - GT = 30, - GY = 31, - HT = 32, - HN = 33, - JM = 34, - MQ = 35, - MX = 36, - MS = 37, - AN = 38, - NI = 39, - PA = 40, - PY = 41, - PE = 42, - KN = 43, - LC = 44, - VC = 45, - SR = 46, - TT = 47, - TC = 48, - US = 49, - UY = 50, - VI = 51, - VE = 52, - AL = 64, - AU = 65, - AT = 66, - BE = 67, - BA = 68, - BW = 69, - BG = 70, - HR = 71, - CY = 72, - CZ = 73, - DK = 74, - EE = 75, - FI = 76, - FR = 77, - DE = 78, - GR = 79, - HU = 80, - IS = 81, - IE = 82, - IT = 83, - LV = 84, - LS = 85, - LI = 86, - LT = 87, - LU = 88, - MK = 89, - MT = 90, - ME = 91, - MZ = 92, - NA = 93, - NL = 94, - NZ = 95, - NO = 96, - PL = 97, - PT = 98, - RO = 99, - RU = 100, - RS = 101, - SK = 102, - SI = 103, - ZA = 104, - ES = 105, - SZ = 106, - SE = 107, - CH = 108, - TR = 109, - GB = 110, - ZM = 111, - ZW = 112, - AZ = 113, - MR = 114, - ML = 115, - NE = 116, - TD = 117, - SD = 118, - ER = 119, - DJ = 120, - SO = 121, - AD = 122, - GI = 123, - GG = 124, - IM = 125, - JE = 126, - MC = 127, - TW = 128, - KR = 136, - HK = 144, - MO = 145, - ID = 152, - SG = 153, - TH = 154, - PH = 155, - MY = 156, - CN = 160, - AE = 168, - IND = 169, // We can't use the 2-letter country code for India because the Windows SDK does #define IN... - EG = 170, - OM = 171, - QA = 172, - KW = 173, - SA = 174, - SY = 175, - BH = 176, - JO = 177, - SM = 184, - VA = 185, - BM = 186, -}; \ No newline at end of file diff --git a/include/services/service_manager.hpp b/include/services/service_manager.hpp deleted file mode 100644 index 8d1cf381..00000000 --- a/include/services/service_manager.hpp +++ /dev/null @@ -1,112 +0,0 @@ -#pragma once -#include -#include -#include - -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" -#include "services/ac.hpp" -#include "services/act.hpp" -#include "services/am.hpp" -#include "services/apt.hpp" -#include "services/boss.hpp" -#include "services/cam.hpp" -#include "services/cecd.hpp" -#include "services/cfg.hpp" -#include "services/csnd.hpp" -#include "services/dlp_srvr.hpp" -#include "services/dsp.hpp" -#include "services/frd.hpp" -#include "services/fs.hpp" -#include "services/gsp_gpu.hpp" -#include "services/gsp_lcd.hpp" -#include "services/hid.hpp" -#include "services/http.hpp" -#include "services/ir_user.hpp" -#include "services/ldr_ro.hpp" -#include "services/mcu/mcu_hwc.hpp" -#include "services/mic.hpp" -#include "services/ndm.hpp" -#include "services/nwm_uds.hpp" -#include "services/news_u.hpp" -#include "services/nfc.hpp" -#include "services/nim.hpp" -#include "services/ptm.hpp" -#include "services/soc.hpp" -#include "services/ssl.hpp" -#include "services/y2r.hpp" - -struct EmulatorConfig; -// More circular dependencies!! -class Kernel; - -class ServiceManager { - std::span regs; - Memory& mem; - Kernel& kernel; - - std::optional notificationSemaphore; - - MAKE_LOG_FUNCTION(log, srvLogger) - - ACService ac; - ACTService act; - AMService am; - APTService apt; - BOSSService boss; - CAMService cam; - CECDService cecd; - CFGService cfg; - CSNDService csnd; - DlpSrvrService dlp_srvr; - DSPService dsp; - HIDService hid; - HTTPService http; - IRUserService ir_user; - FRDService frd; - FSService fs; - GPUService gsp_gpu; - LCDService gsp_lcd; - LDRService ldr; - MICService mic; - NDMService ndm; - NewsUService news_u; - NFCService nfc; - NwmUdsService nwm_uds; - NIMService nim; - PTMService ptm; - SOCService soc; - SSLService ssl; - Y2RService y2r; - - MCU::HWCService mcu_hwc; - - // "srv:" commands - void enableNotification(u32 messagePointer); - void getServiceHandle(u32 messagePointer); - void receiveNotification(u32 messagePointer); - void registerClient(u32 messagePointer); - void subscribe(u32 messagePointer); - void unsubscribe(u32 messagePointer); - - public: - ServiceManager(std::span regs, Memory& mem, GPU& gpu, u32& currentPID, Kernel& kernel, const EmulatorConfig& config); - void reset(); - void initializeFS() { fs.initializeFilesystem(); } - void handleSyncRequest(u32 messagePointer); - - // Forward a SendSyncRequest IPC message to the service with the respective handle - void sendCommandToService(u32 messagePointer, Handle handle); - - // Wrappers for communicating with certain services - void sendGPUInterrupt(GPUInterrupt type) { gsp_gpu.requestInterrupt(type); } - void setGSPSharedMem(u8* ptr) { gsp_gpu.setSharedMem(ptr); } - void setHIDSharedMem(u8* ptr) { hid.setSharedMem(ptr); } - void setCSNDSharedMem(u8* ptr) { csnd.setSharedMemory(ptr); } - - // Input function wrappers - HIDService& getHID() { return hid; } - NFCService& getNFC() { return nfc; } - DSPService& getDSP() { return dsp; } -}; diff --git a/include/services/soc.hpp b/include/services/soc.hpp deleted file mode 100644 index 88f0b456..00000000 --- a/include/services/soc.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -class SOCService { - Handle handle = KernelHandles::SOC; - Memory& mem; - MAKE_LOG_FUNCTION(log, socLogger) - - bool initialized = false; - - // Service commands - void initializeSockets(u32 messagePointer); - -public: - SOCService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/ssl.hpp b/include/services/ssl.hpp deleted file mode 100644 index 0282049a..00000000 --- a/include/services/ssl.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -#include - -class SSLService { - Handle handle = KernelHandles::SSL; - Memory& mem; - MAKE_LOG_FUNCTION(log, sslLogger) - - std::mt19937 rng; // Use a Mersenne Twister for RNG since this service is supposed to have better rng than just rand() - bool initialized; - - // Service commands - void initialize(u32 messagePointer); - void generateRandomData(u32 messagePointer); - - public: - SSLService(Memory& mem) : mem(mem) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/services/y2r.hpp b/include/services/y2r.hpp deleted file mode 100644 index 0cc1d587..00000000 --- a/include/services/y2r.hpp +++ /dev/null @@ -1,120 +0,0 @@ -#pragma once -#include -#include -#include "helpers.hpp" -#include "kernel_types.hpp" -#include "logger.hpp" -#include "memory.hpp" - -// Circular dependencies go br -class Kernel; - -class Y2RService { - Handle handle = KernelHandles::Y2R; - Memory& mem; - Kernel& kernel; - MAKE_LOG_FUNCTION(log, y2rLogger) - - std::optional transferEndEvent; - bool transferEndInterruptEnabled; - - enum class BusyStatus : u32 { - NotBusy = 0, - Busy = 1 - }; - - enum class InputFormat : u32 { - YUV422_Individual8 = 0, - YUV420_Individual8 = 1, - YUV422_Individual16 = 2, - YUV420_Individual16 = 3, - YUV422_Batch = 4, - }; - - enum class OutputFormat : u32 { - RGB32 = 0, - RGB24 = 1, - RGB15 = 2, - RGB565 = 3 - }; - - // Clockwise rotation - enum class Rotation : u32 { - None = 0, - Rotate90 = 1, - Rotate180 = 2, - Rotate270 = 3 - }; - - enum class BlockAlignment : u32 { - Line = 0, // Output buffer's pixels are arranged linearly. Used when outputting to the framebuffer. - Block8x8 = 1, // Output buffer's pixels are morton swizzled. Used when outputting to a GPU texture. - }; - - // https://github.com/citra-emu/citra/blob/ac9d72a95ca9a60de8d39484a14aecf489d6d016/src/core/hle/service/cam/y2r_u.cpp#L33 - using CoefficientSet = std::array; - static constexpr std::array standardCoefficients{{ - {{0x100, 0x166, 0xB6, 0x58, 0x1C5, -0x166F, 0x10EE, -0x1C5B}}, // ITU_Rec601 - {{0x100, 0x193, 0x77, 0x2F, 0x1DB, -0x1933, 0xA7C, -0x1D51}}, // ITU_Rec709 - {{0x12A, 0x198, 0xD0, 0x64, 0x204, -0x1BDE, 0x10F2, -0x229B}}, // ITU_Rec601_Scaling - {{0x12A, 0x1CA, 0x88, 0x36, 0x21C, -0x1F04, 0x99C, -0x2421}}, // ITU_Rec709_Scaling - }}; - - CoefficientSet conversionCoefficients; // Current conversion coefficients - - InputFormat inputFmt; - OutputFormat outputFmt; - Rotation rotation; - BlockAlignment alignment; - - bool spacialDithering; - bool temporalDithering; - u16 alpha; - u16 inputLineWidth; - u16 inputLines; - - // Service commands - void driverInitialize(u32 messagePointer); - void driverFinalize(u32 messagePointer); - void getTransferEndEvent(u32 messagePointer); - void getBlockAlignment(u32 messagePointer); - void getInputLines(u32 messagePointer); - void getInputLineWidth(u32 messagePointer); - void getOutputFormat(u32 messagePointer); - void isBusyConversion(u32 messagePointer); - void isFinishedReceiving(u32 messagePointer); - void isFinishedSendingY(u32 messagePointer); - void isFinishedSendingU(u32 messagePointer); - void isFinishedSendingV(u32 messagePointer); - void isFinishedSendingYUV(u32 messagePointer); - void pingProcess(u32 messagePointer); - void setTransferEndInterrupt(u32 messagePointer); - - void setAlpha(u32 messagePointer); - void setBlockAlignment(u32 messagePointer); - void setCoefficientParams(u32 messagePointer); - void setInputFormat(u32 messagePointer); - void setInputLineWidth(u32 messagePointer); - void setInputLines(u32 messagePointer); - void setOutputFormat(u32 messagePointer); - void setPackageParameter(u32 messagePointer); - void setReceiving(u32 messagePointer); - void setRotation(u32 messagePointer); - void setSendingY(u32 messagePointer); - void setSendingU(u32 messagePointer); - void setSendingV(u32 messagePointer); - void setSendingYUV(u32 messagePointer); - void setSpacialDithering(u32 messagePointer); - void setStandardCoeff(u32 messagePointer); - void setTemporalDithering(u32 messagePointer); - void getCoefficientParams(u32 messagePointer); - void getStandardCoefficientParams(u32 messagePointer); - - void startConversion(u32 messagePointer); - void stopConversion(u32 messagePointer); - -public: - Y2RService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {} - void reset(); - void handleSyncRequest(u32 messagePointer); -}; \ No newline at end of file diff --git a/include/swap.hpp b/include/swap.hpp deleted file mode 100644 index b7db9226..00000000 --- a/include/swap.hpp +++ /dev/null @@ -1,718 +0,0 @@ -// Copyright (c) 2012- PPSSPP Project / Dolphin Project. - -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 2.0 or later versions. - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License 2.0 for more details. - -// A copy of the GPL 2.0 should have been included with the program. -// If not, see http://www.gnu.org/licenses/ - -// Official git repository and contact information can be found at -// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. - -#pragma once - -#include - -#if defined(_MSC_VER) -#include -#endif -#include -#include "helpers.hpp" - -// GCC -#ifdef __GNUC__ - -#if __BYTE_ORDER__ && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) && !defined(COMMON_LITTLE_ENDIAN) -#define COMMON_LITTLE_ENDIAN 1 -#elif __BYTE_ORDER__ && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) && !defined(COMMON_BIG_ENDIAN) -#define COMMON_BIG_ENDIAN 1 -#endif - -// LLVM/clang -#elif defined(__clang__) - -#if __LITTLE_ENDIAN__ && !defined(COMMON_LITTLE_ENDIAN) -#define COMMON_LITTLE_ENDIAN 1 -#elif __BIG_ENDIAN__ && !defined(COMMON_BIG_ENDIAN) -#define COMMON_BIG_ENDIAN 1 -#endif - -// MSVC -#elif defined(_MSC_VER) && !defined(COMMON_BIG_ENDIAN) && !defined(COMMON_LITTLE_ENDIAN) - -#define COMMON_LITTLE_ENDIAN 1 -#endif - -// Worst case, default to little endian. -#if !COMMON_BIG_ENDIAN && !COMMON_LITTLE_ENDIAN -#define COMMON_LITTLE_ENDIAN 1 -#endif - -namespace Common { - -#ifdef _MSC_VER -[[nodiscard]] inline u16 swap16(u16 data) noexcept { - return _byteswap_ushort(data); -} -[[nodiscard]] inline u32 swap32(u32 data) noexcept { - return _byteswap_ulong(data); -} -[[nodiscard]] inline u64 swap64(u64 data) noexcept { - return _byteswap_uint64(data); -} -#elif defined(__clang__) || defined(__GNUC__) -#if defined(__Bitrig__) || defined(__OpenBSD__) -// redefine swap16, swap32, swap64 as inline functions -#undef swap16 -#undef swap32 -#undef swap64 -#endif -[[nodiscard]] inline u16 swap16(u16 data) noexcept { - return __builtin_bswap16(data); -} -[[nodiscard]] inline u32 swap32(u32 data) noexcept { - return __builtin_bswap32(data); -} -[[nodiscard]] inline u64 swap64(u64 data) noexcept { - return __builtin_bswap64(data); -} -#else -// Generic implementation. -[[nodiscard]] inline u16 swap16(u16 data) noexcept { - return (data >> 8) | (data << 8); -} -[[nodiscard]] inline u32 swap32(u32 data) noexcept { - return ((data & 0xFF000000U) >> 24) | ((data & 0x00FF0000U) >> 8) | - ((data & 0x0000FF00U) << 8) | ((data & 0x000000FFU) << 24); -} -[[nodiscard]] inline u64 swap64(u64 data) noexcept { - return ((data & 0xFF00000000000000ULL) >> 56) | ((data & 0x00FF000000000000ULL) >> 40) | - ((data & 0x0000FF0000000000ULL) >> 24) | ((data & 0x000000FF00000000ULL) >> 8) | - ((data & 0x00000000FF000000ULL) << 8) | ((data & 0x0000000000FF0000ULL) << 24) | - ((data & 0x000000000000FF00ULL) << 40) | ((data & 0x00000000000000FFULL) << 56); -} -#endif - -[[nodiscard]] inline float swapf(float f) noexcept { - static_assert(sizeof(u32) == sizeof(float), "float must be the same size as uint32_t."); - - u32 value; - std::memcpy(&value, &f, sizeof(u32)); - - value = swap32(value); - std::memcpy(&f, &value, sizeof(u32)); - - return f; -} - -[[nodiscard]] inline double swapd(double f) noexcept { - static_assert(sizeof(u64) == sizeof(double), "double must be the same size as uint64_t."); - - u64 value; - std::memcpy(&value, &f, sizeof(u64)); - - value = swap64(value); - std::memcpy(&f, &value, sizeof(u64)); - - return f; -} - -} // Namespace Common - -template -struct swap_struct_t { - using swapped_t = swap_struct_t; - -protected: - T value; - - static T swap(T v) { - return F::swap(v); - } - -public: - T swap() const { - return swap(value); - } - swap_struct_t() = default; - swap_struct_t(const T& v) : value(swap(v)) {} - - template - swapped_t& operator=(const S& source) { - value = swap(static_cast(source)); - return *this; - } - - operator s8() const { - return static_cast(swap()); - } - operator u8() const { - return static_cast(swap()); - } - operator s16() const { - return static_cast(swap()); - } - operator u16() const { - return static_cast(swap()); - } - operator s32() const { - return static_cast(swap()); - } - operator u32() const { - return static_cast(swap()); - } - operator s64() const { - return static_cast(swap()); - } - operator u64() const { - return static_cast(swap()); - } - operator float() const { - return static_cast(swap()); - } - operator double() const { - return static_cast(swap()); - } - - // +v - swapped_t operator+() const { - return +swap(); - } - // -v - swapped_t operator-() const { - return -swap(); - } - - // v / 5 - swapped_t operator/(const swapped_t& i) const { - return swap() / i.swap(); - } - template - swapped_t operator/(const S& i) const { - return swap() / i; - } - - // v * 5 - swapped_t operator*(const swapped_t& i) const { - return swap() * i.swap(); - } - template - swapped_t operator*(const S& i) const { - return swap() * i; - } - - // v + 5 - swapped_t operator+(const swapped_t& i) const { - return swap() + i.swap(); - } - template - swapped_t operator+(const S& i) const { - return swap() + static_cast(i); - } - // v - 5 - swapped_t operator-(const swapped_t& i) const { - return swap() - i.swap(); - } - template - swapped_t operator-(const S& i) const { - return swap() - static_cast(i); - } - - // v += 5 - swapped_t& operator+=(const swapped_t& i) { - value = swap(swap() + i.swap()); - return *this; - } - template - swapped_t& operator+=(const S& i) { - value = swap(swap() + static_cast(i)); - return *this; - } - // v -= 5 - swapped_t& operator-=(const swapped_t& i) { - value = swap(swap() - i.swap()); - return *this; - } - template - swapped_t& operator-=(const S& i) { - value = swap(swap() - static_cast(i)); - return *this; - } - - // ++v - swapped_t& operator++() { - value = swap(swap() + 1); - return *this; - } - // --v - swapped_t& operator--() { - value = swap(swap() - 1); - return *this; - } - - // v++ - swapped_t operator++(int) { - swapped_t old = *this; - value = swap(swap() + 1); - return old; - } - // v-- - swapped_t operator--(int) { - swapped_t old = *this; - value = swap(swap() - 1); - return old; - } - // Comparaison - // v == i - bool operator==(const swapped_t& i) const { - return swap() == i.swap(); - } - template - bool operator==(const S& i) const { - return swap() == i; - } - - // v != i - bool operator!=(const swapped_t& i) const { - return swap() != i.swap(); - } - template - bool operator!=(const S& i) const { - return swap() != i; - } - - // v > i - bool operator>(const swapped_t& i) const { - return swap() > i.swap(); - } - template - bool operator>(const S& i) const { - return swap() > i; - } - - // v < i - bool operator<(const swapped_t& i) const { - return swap() < i.swap(); - } - template - bool operator<(const S& i) const { - return swap() < i; - } - - // v >= i - bool operator>=(const swapped_t& i) const { - return swap() >= i.swap(); - } - template - bool operator>=(const S& i) const { - return swap() >= i; - } - - // v <= i - bool operator<=(const swapped_t& i) const { - return swap() <= i.swap(); - } - template - bool operator<=(const S& i) const { - return swap() <= i; - } - - // logical - swapped_t operator!() const { - return !swap(); - } - - // bitmath - swapped_t operator~() const { - return ~swap(); - } - - swapped_t operator&(const swapped_t& b) const { - return swap() & b.swap(); - } - template - swapped_t operator&(const S& b) const { - return swap() & b; - } - swapped_t& operator&=(const swapped_t& b) { - value = swap(swap() & b.swap()); - return *this; - } - template - swapped_t& operator&=(const S b) { - value = swap(swap() & b); - return *this; - } - - swapped_t operator|(const swapped_t& b) const { - return swap() | b.swap(); - } - template - swapped_t operator|(const S& b) const { - return swap() | b; - } - swapped_t& operator|=(const swapped_t& b) { - value = swap(swap() | b.swap()); - return *this; - } - template - swapped_t& operator|=(const S& b) { - value = swap(swap() | b); - return *this; - } - - swapped_t operator^(const swapped_t& b) const { - return swap() ^ b.swap(); - } - template - swapped_t operator^(const S& b) const { - return swap() ^ b; - } - swapped_t& operator^=(const swapped_t& b) { - value = swap(swap() ^ b.swap()); - return *this; - } - template - swapped_t& operator^=(const S& b) { - value = swap(swap() ^ b); - return *this; - } - - template - swapped_t operator<<(const S& b) const { - return swap() << b; - } - template - swapped_t& operator<<=(const S& b) const { - value = swap(swap() << b); - return *this; - } - - template - swapped_t operator>>(const S& b) const { - return swap() >> b; - } - template - swapped_t& operator>>=(const S& b) const { - value = swap(swap() >> b); - return *this; - } - - // Member - /** todo **/ - - // Arithmetics - template - friend S operator+(const S& p, const swapped_t v); - - template - friend S operator-(const S& p, const swapped_t v); - - template - friend S operator/(const S& p, const swapped_t v); - - template - friend S operator*(const S& p, const swapped_t v); - - template - friend S operator%(const S& p, const swapped_t v); - - // Arithmetics + assignments - template - friend S operator+=(const S& p, const swapped_t v); - - template - friend S operator-=(const S& p, const swapped_t v); - - // Bitmath - template - friend S operator&(const S& p, const swapped_t v); - - // Comparison - template - friend bool operator<(const S& p, const swapped_t v); - - template - friend bool operator>(const S& p, const swapped_t v); - - template - friend bool operator<=(const S& p, const swapped_t v); - - template - friend bool operator>=(const S& p, const swapped_t v); - - template - friend bool operator!=(const S& p, const swapped_t v); - - template - friend bool operator==(const S& p, const swapped_t v); -}; - -// Arithmetics -template -S operator+(const S& i, const swap_struct_t v) { - return i + v.swap(); -} - -template -S operator-(const S& i, const swap_struct_t v) { - return i - v.swap(); -} - -template -S operator/(const S& i, const swap_struct_t v) { - return i / v.swap(); -} - -template -S operator*(const S& i, const swap_struct_t v) { - return i * v.swap(); -} - -template -S operator%(const S& i, const swap_struct_t v) { - return i % v.swap(); -} - -// Arithmetics + assignments -template -S& operator+=(S& i, const swap_struct_t v) { - i += v.swap(); - return i; -} - -template -S& operator-=(S& i, const swap_struct_t v) { - i -= v.swap(); - return i; -} - -// Logical -template -S operator&(const S& i, const swap_struct_t v) { - return i & v.swap(); -} - -template -S operator&(const swap_struct_t v, const S& i) { - return static_cast(v.swap() & i); -} - -// Comparaison -template -bool operator<(const S& p, const swap_struct_t v) { - return p < v.swap(); -} -template -bool operator>(const S& p, const swap_struct_t v) { - return p > v.swap(); -} -template -bool operator<=(const S& p, const swap_struct_t v) { - return p <= v.swap(); -} -template -bool operator>=(const S& p, const swap_struct_t v) { - return p >= v.swap(); -} -template -bool operator!=(const S& p, const swap_struct_t v) { - return p != v.swap(); -} -template -bool operator==(const S& p, const swap_struct_t v) { - return p == v.swap(); -} - -template -struct swap_64_t { - static T swap(T x) { - return static_cast(Common::swap64(x)); - } -}; - -template -struct swap_32_t { - static T swap(T x) { - return static_cast(Common::swap32(x)); - } -}; - -template -struct swap_16_t { - static T swap(T x) { - return static_cast(Common::swap16(x)); - } -}; - -template -struct swap_float_t { - static T swap(T x) { - return static_cast(Common::swapf(x)); - } -}; - -template -struct swap_double_t { - static T swap(T x) { - return static_cast(Common::swapd(x)); - } -}; - -template -struct swap_enum_t { - static_assert(std::is_enum_v); - using base = std::underlying_type_t; - -public: - swap_enum_t() = default; - swap_enum_t(const T& v) : value(swap(v)) {} - - swap_enum_t& operator=(const T& v) { - value = swap(v); - return *this; - } - - operator T() const { - return swap(value); - } - - explicit operator base() const { - return static_cast(swap(value)); - } - -protected: - T value{}; - // clang-format off - using swap_t = std::conditional_t< - std::is_same_v, swap_16_t, std::conditional_t< - std::is_same_v, swap_16_t, std::conditional_t< - std::is_same_v, swap_32_t, std::conditional_t< - std::is_same_v, swap_32_t, std::conditional_t< - std::is_same_v, swap_64_t, std::conditional_t< - std::is_same_v, swap_64_t, void>>>>>>; - // clang-format on - static T swap(T x) { - return static_cast(swap_t::swap(static_cast(x))); - } -}; - -struct SwapTag {}; // Use the different endianness from the system -struct KeepTag {}; // Use the same endianness as the system - -template -struct AddEndian; - -// KeepTag specializations - -template -struct AddEndian { - using type = T; -}; - -// SwapTag specializations - -template <> -struct AddEndian { - using type = u8; -}; - -template <> -struct AddEndian { - using type = swap_struct_t>; -}; - -template <> -struct AddEndian { - using type = swap_struct_t>; -}; - -template <> -struct AddEndian { - using type = swap_struct_t>; -}; - -template <> -struct AddEndian { - using type = s8; -}; - -template <> -struct AddEndian { - using type = swap_struct_t>; -}; - -template <> -struct AddEndian { - using type = swap_struct_t>; -}; - -template <> -struct AddEndian { - using type = swap_struct_t>; -}; - -template <> -struct AddEndian { - using type = swap_struct_t>; -}; - -template <> -struct AddEndian { - using type = swap_struct_t>; -}; - -template -struct AddEndian { - static_assert(std::is_enum_v); - using type = swap_enum_t; -}; - -// Alias LETag/BETag as KeepTag/SwapTag depending on the system -#if COMMON_LITTLE_ENDIAN - -using LETag = KeepTag; -using BETag = SwapTag; - -#else - -using BETag = KeepTag; -using LETag = SwapTag; - -#endif - -// Aliases for LE types -using u16_le = AddEndian::type; -using u32_le = AddEndian::type; -using u64_le = AddEndian::type; - -using s16_le = AddEndian::type; -using s32_le = AddEndian::type; -using s64_le = AddEndian::type; - -template -using enum_le = std::enable_if_t, typename AddEndian::type>; - -using float_le = AddEndian::type; -using double_le = AddEndian::type; - -// Aliases for BE types -using u16_be = AddEndian::type; -using u32_be = AddEndian::type; -using u64_be = AddEndian::type; - -using s16_be = AddEndian::type; -using s32_be = AddEndian::type; -using s64_be = AddEndian::type; - -template -using enum_be = std::enable_if_t, typename AddEndian::type>; - -using float_be = AddEndian::type; -using double_be = AddEndian::type; \ No newline at end of file diff --git a/include/system_models.hpp b/include/system_models.hpp deleted file mode 100644 index b24bfdcd..00000000 --- a/include/system_models.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once -#include - -// Codes for every 3DS system model -// The 3-letter codes are codenames used by the ACT service, and can also be found on the hardware itself -// This info can be retrieved in a variety of ways, usually through CFG::GetSystemModel -namespace SystemModel { - enum : std::uint32_t { - Nintendo3DS = 0, - Nintendo3DS_XL = 1, - NewNintendo3DS = 2, - Nintendo2DS = 3, - NewNintendo3DS_XL = 4, - NewNintendo2DS_XL = 5, - - CTR = Nintendo3DS, - SPR = Nintendo3DS_XL, - KTR = NewNintendo3DS, - FTR = Nintendo2DS, - RED = NewNintendo3DS_XL, - JAN = NewNintendo2DS_XL - }; -} \ No newline at end of file diff --git a/include/termcolor.hpp b/include/termcolor.hpp deleted file mode 100644 index 8664eaf3..00000000 --- a/include/termcolor.hpp +++ /dev/null @@ -1,636 +0,0 @@ -//! -//! termcolor -//! ~~~~~~~~~ -//! -//! termcolor is a header-only c++ library for printing colored messages -//! to the terminal. Written just for fun with a help of the Force. -//! -//! :copyright: (c) 2013 by Ihor Kalnytskyi -//! :license: BSD, see LICENSE for details -//! - -#ifndef TERMCOLOR_HPP_ -#define TERMCOLOR_HPP_ - -// the following snippet of code detects the current OS and -// defines the appropriate macro that is used to wrap some -// platform specific things -#if defined(_WIN32) || defined(_WIN64) -# define TERMCOLOR_OS_WINDOWS -#elif defined(__APPLE__) -# define TERMCOLOR_OS_MACOS -#elif defined(__unix__) || defined(__unix) -# define TERMCOLOR_OS_LINUX -#else -# error unsupported platform -#endif - - -// This headers provides the `isatty()`/`fileno()` functions, -// which are used for testing whether a standart stream refers -// to the terminal. As for Windows, we also need WinApi funcs -// for changing colors attributes of the terminal. -#if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) -# include -#elif defined(TERMCOLOR_OS_WINDOWS) -# include -# include -#endif - - -#include -#include - - -namespace termcolor -{ - // Forward declaration of the `_internal` namespace. - // All comments are below. - namespace _internal - { - // An index to be used to access a private storage of I/O streams. See - // colorize / nocolorize I/O manipulators for details. - static int colorize_index = std::ios_base::xalloc(); - - inline FILE* get_standard_stream(const std::ostream& stream); - inline bool is_colorized(std::ostream& stream); - inline bool is_atty(const std::ostream& stream); - - #if defined(TERMCOLOR_OS_WINDOWS) - inline void win_change_attributes(std::ostream& stream, int foreground, int background=-1); - #endif - } - - inline - std::ostream& colorize(std::ostream& stream) - { - stream.iword(_internal::colorize_index) = 1L; - return stream; - } - - inline - std::ostream& nocolorize(std::ostream& stream) - { - stream.iword(_internal::colorize_index) = 0L; - return stream; - } - - inline - std::ostream& reset(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[00m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, -1); - #endif - } - return stream; - } - - inline - std::ostream& bold(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[1m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - inline - std::ostream& dark(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[2m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - inline - std::ostream& italic(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[3m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - inline - std::ostream& underline(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[4m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, COMMON_LVB_UNDERSCORE); - #endif - } - return stream; - } - - inline - std::ostream& blink(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[5m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - inline - std::ostream& reverse(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[7m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - inline - std::ostream& concealed(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[8m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - inline - std::ostream& crossed(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[9m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - template inline - std::ostream& color(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - char command[12]; - std::snprintf(command, sizeof(command), "\033[38;5;%dm", code); - stream << command; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - template inline - std::ostream& on_color(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - char command[12]; - std::snprintf(command, sizeof(command), "\033[48;5;%dm", code); - stream << command; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - template inline - std::ostream& color(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - char command[20]; - std::snprintf(command, sizeof(command), "\033[38;2;%d;%d;%dm", r, g, b); - stream << command; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - template inline - std::ostream& on_color(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - char command[20]; - std::snprintf(command, sizeof(command), "\033[48;2;%d;%d;%dm", r, g, b); - stream << command; - #elif defined(TERMCOLOR_OS_WINDOWS) - #endif - } - return stream; - } - - inline - std::ostream& grey(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[30m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, - 0 // grey (black) - ); - #endif - } - return stream; - } - - inline - std::ostream& red(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[31m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, - FOREGROUND_RED - ); - #endif - } - return stream; - } - - inline - std::ostream& green(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[32m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, - FOREGROUND_GREEN - ); - #endif - } - return stream; - } - - inline - std::ostream& yellow(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[33m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, - FOREGROUND_GREEN | FOREGROUND_RED - ); - #endif - } - return stream; - } - - inline - std::ostream& blue(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[34m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, - FOREGROUND_BLUE - ); - #endif - } - return stream; - } - - inline - std::ostream& magenta(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[35m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, - FOREGROUND_BLUE | FOREGROUND_RED - ); - #endif - } - return stream; - } - - inline - std::ostream& cyan(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[36m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, - FOREGROUND_BLUE | FOREGROUND_GREEN - ); - #endif - } - return stream; - } - - inline - std::ostream& white(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[37m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, - FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED - ); - #endif - } - return stream; - } - - - - inline - std::ostream& on_grey(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[40m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, - 0 // grey (black) - ); - #endif - } - return stream; - } - - inline - std::ostream& on_red(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[41m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, - BACKGROUND_RED - ); - #endif - } - return stream; - } - - inline - std::ostream& on_green(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[42m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, - BACKGROUND_GREEN - ); - #endif - } - return stream; - } - - inline - std::ostream& on_yellow(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[43m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, - BACKGROUND_GREEN | BACKGROUND_RED - ); - #endif - } - return stream; - } - - inline - std::ostream& on_blue(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[44m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, - BACKGROUND_BLUE - ); - #endif - } - return stream; - } - - inline - std::ostream& on_magenta(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[45m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, - BACKGROUND_BLUE | BACKGROUND_RED - ); - #endif - } - return stream; - } - - inline - std::ostream& on_cyan(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[46m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, - BACKGROUND_GREEN | BACKGROUND_BLUE - ); - #endif - } - return stream; - } - - inline - std::ostream& on_white(std::ostream& stream) - { - if (_internal::is_colorized(stream)) - { - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - stream << "\033[47m"; - #elif defined(TERMCOLOR_OS_WINDOWS) - _internal::win_change_attributes(stream, -1, - BACKGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_RED - ); - #endif - } - - return stream; - } - - - - //! Since C++ hasn't a way to hide something in the header from - //! the outer access, I have to introduce this namespace which - //! is used for internal purpose and should't be access from - //! the user code. - namespace _internal - { - //! Since C++ hasn't a true way to extract stream handler - //! from the a given `std::ostream` object, I have to write - //! this kind of hack. - inline - FILE* get_standard_stream(const std::ostream& stream) - { - if (&stream == &std::cout) - return stdout; - else if ((&stream == &std::cerr) || (&stream == &std::clog)) - return stderr; - - return nullptr; - } - - // Say whether a given stream should be colorized or not. It's always - // true for ATTY streams and may be true for streams marked with - // colorize flag. - inline - bool is_colorized(std::ostream& stream) - { - return is_atty(stream) || static_cast(stream.iword(colorize_index)); - } - - //! Test whether a given `std::ostream` object refers to - //! a terminal. - inline - bool is_atty(const std::ostream& stream) - { - FILE* std_stream = get_standard_stream(stream); - - // Unfortunately, fileno() ends with segmentation fault - // if invalid file descriptor is passed. So we need to - // handle this case gracefully and assume it's not a tty - // if standard stream is not detected, and 0 is returned. - if (!std_stream) - return false; - - #if defined(TERMCOLOR_OS_MACOS) || defined(TERMCOLOR_OS_LINUX) - return ::isatty(fileno(std_stream)); - #elif defined(TERMCOLOR_OS_WINDOWS) - return ::_isatty(_fileno(std_stream)); - #endif - } - - #if defined(TERMCOLOR_OS_WINDOWS) - //! Change Windows Terminal colors attribute. If some - //! parameter is `-1` then attribute won't changed. - inline void win_change_attributes(std::ostream& stream, int foreground, int background) - { - // yeah, i know.. it's ugly, it's windows. - static WORD defaultAttributes = 0; - - // Windows doesn't have ANSI escape sequences and so we use special - // API to change Terminal output color. That means we can't - // manipulate colors by means of "std::stringstream" and hence - // should do nothing in this case. - if (!_internal::is_atty(stream)) - return; - - // get terminal handle - HANDLE hTerminal = INVALID_HANDLE_VALUE; - if (&stream == &std::cout) - hTerminal = GetStdHandle(STD_OUTPUT_HANDLE); - else if (&stream == &std::cerr) - hTerminal = GetStdHandle(STD_ERROR_HANDLE); - - // save default terminal attributes if it unsaved - if (!defaultAttributes) - { - CONSOLE_SCREEN_BUFFER_INFO info; - if (!GetConsoleScreenBufferInfo(hTerminal, &info)) - return; - defaultAttributes = info.wAttributes; - } - - // restore all default settings - if (foreground == -1 && background == -1) - { - SetConsoleTextAttribute(hTerminal, defaultAttributes); - return; - } - - // get current settings - CONSOLE_SCREEN_BUFFER_INFO info; - if (!GetConsoleScreenBufferInfo(hTerminal, &info)) - return; - - if (foreground != -1) - { - info.wAttributes &= ~(info.wAttributes & 0x0F); - info.wAttributes |= static_cast(foreground); - } - - if (background != -1) - { - info.wAttributes &= ~(info.wAttributes & 0xF0); - info.wAttributes |= static_cast(background); - } - - SetConsoleTextAttribute(hTerminal, info.wAttributes); - } - #endif // TERMCOLOR_OS_WINDOWS - - } // namespace _internal - -} // namespace termcolor - - -#undef TERMCOLOR_OS_WINDOWS -#undef TERMCOLOR_OS_MACOS -#undef TERMCOLOR_OS_LINUX - -#endif // TERMCOLOR_HPP_ diff --git a/readme.md b/readme.md index 5f803bde..4b9941ab 100644 --- a/readme.md +++ b/readme.md @@ -1,130 +1 @@ -# Panda3DS -[![Windows Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Windows_Build.yml/badge.svg?branch=master)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Windows_Build.yml) [![MacOS Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/MacOS_Build.yml/badge.svg?branch=master)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/MacOS_Build.yml) [![Linux Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Linux_Build.yml/badge.svg?branch=master)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Linux_Build.yml) [![AUR Package](https://img.shields.io/aur/version/panda3ds-git)](https://aur.archlinux.org/packages/panda3ds-git) - -Panda3DS is an HLE, red-panda-themed Nintendo 3DS emulator written in C++ which started out as a fun project out of curiosity, but evolved into something that can sort of play games! - -Experimenting with new methods in emulation and unique features such as Lua scripting, we're here to make a difference! - -# Discussion -Join our Discord server by pressing on the banner below, or find us on other platforms via [our website](https://panda3ds.com/)! - -[![Discord Banner 2](https://discord.com/api/guilds/1118695732958994532/widget.png?style=banner2)](https://discord.gg/ZYbugsEmsw) - -![screenshot1](docs/img/KirbyRobobot.png) ![screenshot2](docs/img/OoT_Title.png) ![screenshot3](docs/img/pokegang.png) - -# Download -You can download stable builds from the Releases tab, or you can download the latest build from the tables below. Additionally, Panda3DS comes in 2 flavours on PC: A minimal SDL frontend, which does not have a GUI, and an experimental Qt 6 frontend with a proper user interface. - -SDL builds (No GUI): -|Platform|Status|Download| -|--------|------------|--------| -|Windows build|[![Windows Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Windows_Build.yml/badge.svg?branch=master)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Windows_Build.yml)|[Windows Executable](https://nightly.link/wheremyfoodat/Panda3DS/workflows/Windows_Build/master/Windows%20executable.zip)| -|MacOS build|[![MacOS Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/MacOS_Build.yml/badge.svg?branch=master)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/MacOS_Build.yml)|[MacOS App Bundle](https://nightly.link/wheremyfoodat/Panda3DS/workflows/MacOS_Build/master/MacOS%20Alber%20App%20Bundle.zip)| -|Linux build|[![Linux Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Linux_Build.yml/badge.svg?branch=master)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Linux_Build.yml)|[Linux AppImage](https://nightly.link/wheremyfoodat/Panda3DS/workflows/Linux_AppImage_Build/master/Linux%20executable.zip)| - -Qt builds: -|Platform|Status|Download| -|--------|------------|--------| -|Windows build|[![Qt Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Qt_Build.yml/badge.svg)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Qt_Build.yml)|[Windows Executable](https://nightly.link/wheremyfoodat/Panda3DS/workflows/Qt_Build/master/Windows%20executable.zip)| -|MacOS build|[![Qt Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Qt_Build.yml/badge.svg)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Qt_Build.yml)|[MacOS App Bundle](https://nightly.link/wheremyfoodat/Panda3DS/workflows/Qt_Build/master/MacOS%20Alber%20App%20Bundle.zip)| -|Linux build|[![Qt Build](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Qt_Build.yml/badge.svg)](https://github.com/wheremyfoodat/Panda3DS/actions/workflows/Qt_Build.yml)|[Linux AppImage](https://nightly.link/wheremyfoodat/Panda3DS/workflows/Qt_Build/master/Linux%20executable.zip)| - - -# Compatibility -Panda3DS is still in the early stages of development. Many games boot, many don't. Lots of games have at least some hilariously broken graphics, audio is not supported, and some QoL features (including a GUI) are missing. However, even more things are implemented, such as most of the 3DS core required to play games, and various neat features, such as Lua scripting, discord bot support, support for some system apps, cheats, controller support, WIP amiibo support and many more! The emulator is constantly evolving, so make sure to take a peek every now and then! - -For documenting game compatibility, make sure to visit the [games list repository](https://github.com/Panda3DS-emu/Panda3DS-Games-List). For miscellaneous issues or more technical issues, feel free to use this repo's issues tab. -# Why? -The 3DS emulation scene is already pretty mature, with offerings such as [Citra](https://github.com/citra-emu/citra) which can offer a great playing experience for most games in the library, [Corgi3DS](https://github.com/PSI-Rockin/Corgi3DS), an innovative LLE emulator, or [Mikage](https://mikage.app/). However, there's always room for more emulators! While Panda3DS was initially a mere curiosity, there's many different concepts I would like to explore with it in the future, such as: - -- Virtualization. What motivated the creation of this emulator was actually a discussion on whether it is possible to get fast 3DS emulation on low-end hardware such as the Raspberry Pi 4, using the KVM API. At the moment, Panda3DS is powered by Dynarmic rather than using virtualization, but this is definitely a concept I want to explore in the future. - -- Debugging, reverse engineering and modding tools. While contributing to [PCSX-Redux](https://github.com/grumpycoders/pcsx-redux) and collaborating with the other developers, I had the chance to find out how useful tools like these can be. They can serve as indispensable tools for the homebrew devs, modders, reverse engineers, as well as emulator developers themselves. Some tools can even become fun toys the casual user can mess around with. As such, I think they can really improve the experience in a project like this. Of course, I'd like to thank @nicolasnoble and the entire Redux team for helping me learn the value of these tools, as well as making me improve as a programmer. - -- Trying out various other unique features, such as different graphics or audio enhancements, or supporting other niche things such as amiibo. - -- Fun. Writing code is fun and I strongly encourage anyone to do it. - -Keep in mind, these are all long-term plans. Until then, the main focus is just improving compatibility - -# How to build -Panda3DS compiles on Windows, Linux and MacOS, with only 1 (optional) system dependency, the Vulkan SDK. If you don't want to install the Vulkan SDK you can always build the emulator with only OpenGL support, by adding `-DENABLE_VULKAN=OFF` to the `cmake` command - -All you need is CMake and a generator of your choice (Make, Visual Studio, Ninja, etc). Simply clone the repo recursively and build it like your average CMake project. - -```sh -git clone https://github.com/wheremyfoodat/Panda3DS --recursive - -cd Panda3DS && mkdir build && cd build -cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_USER_BUILD=ON # Set up compilers etc here if you'd like - - -``` - -\*If you want to contribute to the project, you may not want to enable the ENABLE_USER_BUILD option and instead familiarize yourself with the various CMake options provided in the root CMakeLists.txt - -# How to use -Simply drag and drop a ROM to the executable if supported, or invoke the executable from the command line with the path to the ROM as the first argument like: `Alber.exe MyGame.3ds` -
-Panda3DS can load ROMs in the following formats: -- .3ds/.cci -- .cxi/.app -- .elf/.axf -- .3dsx - -Both decrypted and encrypted dumps are supported. However for encrypted dumps you must provide your AES keys file by adding a `sysdata` folder to the emulator's app data directory with a file called `aes_keys.txt` including your keys. Currently .cia files are not supported yet (support is planned for the future), however if you want you can usually use Citra to extract the .app/.cxi file out of your .cia and run that. - -## Controls -Keyboard & Mouse -- Up analog W -- Down analog S -- Left analog A -- Right analog D -- D-pad Arrows -- A button L -- B button K -- X button O -- Y button I -- L button Q -- R button P -- Start button Enter -- Select button Backspace -- Touch Screen Left click -- Gyroscope Hold right click and swipe your mouse left and right (support is kind of shaky atm, but games that require gyro here and there like Kirby should work) -- Pause/Resume F4 -- Reload F5 - - -Panda3DS also supports controller input using the SDL2 GameController API. - -# Acknowledgements -- [3DBrew](https://www.3dbrew.org/wiki/Main_Page), a wiki full of 3DS information and the main source of documentation used. -- [GBATek](https://www.problemkaputt.de/gbatek.htm#3dsreference), a GBA, DS and 3DS reference which provided insights on some pieces of hardware as well as neatly documenting things like certain file formats used in games. -- [Libctru](https://github.com/devkitPro/libctru), the most well-known 3DS homebrew SDK. Used for developing test ROMs, as well as a source of documentation thanks to its doxygen wiki. -- [ctru-rs](https://github.com/rust3ds/ctru-rs), a wrapper around libctru for writing 3DS homebrew in Rust. - -- [Citra](https://github.com/citra-emu/citra), an HLE 3DS emulator. Very useful as a reference, with some code snippets inspired or adapted from it. -- [3dmoo](https://github.com/plutooo/3dmoo), an HLE 3DS emulator which helped similarly to Citra -- [Corgi3DS](https://github.com/PSI-Rockin/Corgi3DS), an LLE 3DS emulator which both served as an inspiration, as well as a nice source of documentation for some PICA200-related things - -# Sister Projects -- [Dynarmic](https://github.com/merryhime/dynarmic): An arm32/arm64 to x86-64/ARMv8 recompiler -- [PCSX-Redux](https://github.com/grumpycoders/pcsx-redux): A PlayStation 1 emulator targetting developers, reverse engineers and regular PS1 fans alike -- [SkyEmu](https://github.com/skylersaleh/SkyEmu): A seagull-themed low-level GameBoy, GameBoy Color, GameBoy Advance and Nintendo DS emulator that is designed to be easy to use, cross platform and accurate. -- [NanoBoyAdvance](https://github.com/nba-emu/NanoBoyAdvance): A Game Boy Advance emulator focusing on hardware research and cycle-accurate emulation -- [Dust](https://github.com/kelpsyberry/dust): Nintendo DS emulator for desktop devices and the web -- [MelonDS](https://github.com/melonDS-emu/melonDS): "DS emulator, sorta" - Arisotura -- [Kaizen](https://github.com/SimoneN64/Kaizen): Experimental work-in-progress low-level N64 emulator -- [ChonkyStation](https://github.com/liuk7071/ChonkyStation): Work-in-progress PlayStation emulator -- [shadPS4](https://github.com/georgemoralis/shadPS4): Work-in-progress PS4 emulator by the founder of PCSX, PCSX2 and more -- [Hydra](https://github.com/hydra-emu/hydra): Cross-platform GameBoy, NES, N64 and Chip-8 emulator - -# Support -If you find this project exciting and want to support the founder, check out [his Patreon](https://www.patreon.com/wheremyfoodat) or [Ko-fi](https://ko-fi.com/wheremyfoodat) -
-Keep in mind that funding is only aimed to cover various life costs and support development. Panda3DS is a free product and on no occasion will official builds ever be made private or limited to sponsors! Any donation is much appreciated! - -Nintendo 3DS is a registered trademark of Nintendo Co., Ltd. - -![panda](docs/img/panda.jpg) -Here's a panda it go blep +# ***SPEEB*** \ No newline at end of file diff --git a/src/config.cpp b/src/config.cpp deleted file mode 100644 index f19ff06d..00000000 --- a/src/config.cpp +++ /dev/null @@ -1,137 +0,0 @@ -#include "config.hpp" - -#include -#include -#include - -#include "helpers.hpp" -#include "toml.hpp" - -// Largely based on https://github.com/nba-emu/NanoBoyAdvance/blob/master/src/platform/core/src/config.cpp -// We are legally allowed, as per the author's wish, to use the above code without any licensing restrictions -// However we still want to follow the license as closely as possible and offer the proper attributions. - -EmulatorConfig::EmulatorConfig(const std::filesystem::path& path) : filePath(path) { load(); } - -void EmulatorConfig::load() { - const std::filesystem::path& path = filePath; - - // If the configuration file does not exist, create it and return - std::error_code error; - if (!std::filesystem::exists(path, error)) { - save(); - return; - } - - toml::value data; - - try { - data = toml::parse(path); - } catch (std::exception& ex) { - Helpers::warn("Got exception trying to load config file. Exception: %s\n", ex.what()); - return; - } - - if (data.contains("General")) { - auto generalResult = toml::expect(data.at("General")); - if (generalResult.is_ok()) { - auto general = generalResult.unwrap(); - - discordRpcEnabled = toml::find_or(general, "EnableDiscordRPC", false); - usePortableBuild = toml::find_or(general, "UsePortableBuild", false); - } - } - - if (data.contains("GPU")) { - auto gpuResult = toml::expect(data.at("GPU")); - if (gpuResult.is_ok()) { - auto gpu = gpuResult.unwrap(); - - // Get renderer - auto rendererName = toml::find_or(gpu, "Renderer", "OpenGL"); - auto configRendererType = Renderer::typeFromString(rendererName); - - if (configRendererType.has_value()) { - rendererType = configRendererType.value(); - } else { - Helpers::warn("Invalid renderer specified: %s\n", rendererName.c_str()); - rendererType = RendererType::OpenGL; - } - - shaderJitEnabled = toml::find_or(gpu, "EnableShaderJIT", shaderJitDefault); - vsyncEnabled = toml::find_or(gpu, "EnableVSync", true); - } - } - - if (data.contains("Audio")) { - auto audioResult = toml::expect(data.at("Audio")); - if (audioResult.is_ok()) { - auto audio = audioResult.unwrap(); - - auto dspCoreName = toml::find_or(audio, "DSPEmulation", "Null"); - dspType = Audio::DSPCore::typeFromString(dspCoreName); - audioEnabled = toml::find_or(audio, "EnableAudio", false); - } - } - - if (data.contains("Battery")) { - auto batteryResult = toml::expect(data.at("Battery")); - if (batteryResult.is_ok()) { - auto battery = batteryResult.unwrap(); - - chargerPlugged = toml::find_or(battery, "ChargerPlugged", true); - batteryPercentage = toml::find_or(battery, "BatteryPercentage", 3); - - // Clamp battery % to [0, 100] to make sure it's a valid value - batteryPercentage = std::clamp(batteryPercentage, 0, 100); - } - } - - if (data.contains("SD")) { - auto sdResult = toml::expect(data.at("SD")); - if (sdResult.is_ok()) { - auto sd = sdResult.unwrap(); - - sdCardInserted = toml::find_or(sd, "UseVirtualSD", true); - sdWriteProtected = toml::find_or(sd, "WriteProtectVirtualSD", false); - } - } -} - -void EmulatorConfig::save() { - toml::basic_value data; - const std::filesystem::path& path = filePath; - - std::error_code error; - if (std::filesystem::exists(path, error)) { - try { - data = toml::parse(path); - } catch (const std::exception& ex) { - Helpers::warn("Exception trying to parse config file. Exception: %s\n", ex.what()); - return; - } - } else { - if (error) { - Helpers::warn("Filesystem error accessing %s (error: %s)\n", path.string().c_str(), error.message().c_str()); - } - printf("Saving new configuration file %s\n", path.string().c_str()); - } - - data["General"]["EnableDiscordRPC"] = discordRpcEnabled; - data["General"]["UsePortableBuild"] = usePortableBuild; - data["GPU"]["EnableShaderJIT"] = shaderJitEnabled; - data["GPU"]["Renderer"] = std::string(Renderer::typeToString(rendererType)); - data["GPU"]["EnableVSync"] = vsyncEnabled; - data["Audio"]["DSPEmulation"] = std::string(Audio::DSPCore::typeToString(dspType)); - data["Audio"]["EnableAudio"] = audioEnabled; - - data["Battery"]["ChargerPlugged"] = chargerPlugged; - data["Battery"]["BatteryPercentage"] = batteryPercentage; - - data["SD"]["UseVirtualSD"] = sdCardInserted; - data["SD"]["WriteProtectVirtualSD"] = sdWriteProtected; - - std::ofstream file(path, std::ios::out); - file << data; - file.close(); -} diff --git a/src/core/CPU/cpu_dynarmic.cpp b/src/core/CPU/cpu_dynarmic.cpp deleted file mode 100644 index 85dc70d9..00000000 --- a/src/core/CPU/cpu_dynarmic.cpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifdef CPU_DYNARMIC -#include "cpu_dynarmic.hpp" - -#include "arm_defs.hpp" -#include "emulator.hpp" - -CPU::CPU(Memory& mem, Kernel& kernel, Emulator& emu) : mem(mem), emu(emu), scheduler(emu.getScheduler()), env(mem, kernel, emu.getScheduler()) { - cp15 = std::make_shared(); - - Dynarmic::A32::UserConfig config; - config.arch_version = Dynarmic::A32::ArchVersion::v6K; - config.callbacks = &env; - config.coprocessors[15] = cp15; - config.define_unpredictable_behaviour = true; - config.global_monitor = &exclusiveMonitor; - config.processor_id = 0; - - jit = std::make_unique(config); -} - -void CPU::reset() { - setCPSR(CPSR::UserMode); - setFPSCR(FPSCR::MainThreadDefault); - - cp15->reset(); - cp15->setTLSBase(VirtualAddrs::TLSBase); // Set cp15 TLS pointer to the main thread's thread-local storage - jit->Reset(); - jit->ClearCache(); - jit->Regs().fill(0); - jit->ExtRegs().fill(0); -} - -void CPU::runFrame() { - emu.frameDone = false; - - while (!emu.frameDone) { - // Run CPU until the next scheduler event - env.ticksLeft = scheduler.nextTimestamp - scheduler.currentTimestamp; - - execute: - const auto exitReason = jit->Run(); - - // Handle any scheduler events that need handling. - emu.pollScheduler(); - - if (static_cast(exitReason) != 0) [[unlikely]] { - // Cache invalidation needs to exit the JIT so it returns a CacheInvalidation HaltReason. In our case, we just go back to executing - // The goto might be terrible but it does guarantee that this does not recursively call run and crash, instead getting optimized to a jump - if (Dynarmic::Has(exitReason, Dynarmic::HaltReason::CacheInvalidation)) { - goto execute; - } else { - Helpers::panic("Exit reason: %d\nPC: %08X", static_cast(exitReason), getReg(15)); - } - } - } -} - -#endif // CPU_DYNARMIC \ No newline at end of file diff --git a/src/core/CPU/dynarmic_cycles.cpp b/src/core/CPU/dynarmic_cycles.cpp deleted file mode 100644 index e85abc71..00000000 --- a/src/core/CPU/dynarmic_cycles.cpp +++ /dev/null @@ -1,509 +0,0 @@ -// Copyright 2022 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -// This file is slightly adjusted to my liking from the original - -#include -#include -#include "cpu_dynarmic.hpp" -#include "helpers.hpp" - -namespace { - template - struct StringLiteral { - constexpr StringLiteral(const char(&str)[N]) { - std::copy_n(str, N, value); - } - - static constexpr std::size_t strlen = N - 1; - static constexpr std::size_t size = N; - - char value[N]; - }; - - template - constexpr u32 GetMatchingBitsFromStringLiteral() { - u32 result = 0; - for (size_t i = 0; i < haystack.strlen; i++) { - for (size_t a = 0; a < needle.strlen; a++) { - if (haystack.value[i] == needle.value[a]) { - result |= 1 << (haystack.strlen - 1 - i); - } - } - } - return result; - } - - template - constexpr u32 DepositBits(u32 val) { - u32 mask = mask_; - u32 res = 0; - for (u32 bb = 1; mask; bb += bb) { - u32 neg_mask = 0 - mask; - if (val & bb) - res |= mask & neg_mask; - mask &= mask - 1; - } - return res; - } - - template - struct MatcherArg { - template - u32 Get() { - return DepositBits()>(instruction); - } - - u32 instruction; - }; - - struct Matcher { - u32 mask; - u32 expect; - std::function fn; - }; - - u64 DataProcessing_imm(auto i) { - if (i.template Get<"d">() == 15) { - return 7; - } - return 1; - } - u64 DataProcessing_reg(auto i) { - if (i.template Get<"d">() == 15) { - return 7; - } - return 1; - } - u64 DataProcessing_rsr(auto i) { - if (i.template Get<"d">() == 15) { - return 8; - } - return 2; - } - u64 LoadStoreSingle_imm(auto) { - return 2; - } - u64 LoadStoreSingle_reg(auto i) { - // TODO: Load PC - if (i.template Get<"u">() == 1 && i.template Get<"r">() == 0 && - (i.template Get<"v">() == 0 || i.template Get<"v">() == 2)) { - return 2; - } - return 4; - } - u64 LoadStoreMultiple(auto i) { - // TODO: Load PC - return 1 + std::popcount(i.template Get<"x">()) / 2; - } - - u64 SupervisorCall(auto i) { - // Consume extra cycles for the GetSystemTick SVC since some games wait with it in a loop rather than - // Properly sleeping until a VBlank interrupt - if (i.template Get<"v">() == 0x28) { - return 152; - } - - return 8; - } - -#define INST(NAME, BS, CYCLES) \ - Matcher{GetMatchingBitsFromStringLiteral(), \ - GetMatchingBitsFromStringLiteral(), \ - std::function{[](u32 instruction) -> u64 { \ - [[maybe_unused]] MatcherArg i{instruction}; \ - return (CYCLES); \ - }}}, - - const std::array arm_matchers{ - // clang-format off - - // Branch instructions - INST("BLX (imm)", "1111101hvvvvvvvvvvvvvvvvvvvvvvvv", 5) // v5 - INST("BLX (reg)", "cccc000100101111111111110011mmmm", 6) // v5 - INST("B", "cccc1010vvvvvvvvvvvvvvvvvvvvvvvv", 4) // v1 - INST("BL", "cccc1011vvvvvvvvvvvvvvvvvvvvvvvv", 4) // v1 - INST("BX", "cccc000100101111111111110001mmmm", 5) // v4T - INST("BXJ", "cccc000100101111111111110010mmmm", 1) // v5J - - // Coprocessor instructions - INST("CDP", "cccc1110ooooNNNNDDDDppppooo0MMMM", 1) // v2 (CDP2: v5) - INST("LDC", "cccc110pudw1nnnnDDDDppppvvvvvvvv", 1) // v2 (LDC2: v5) - INST("MCR", "cccc1110ooo0NNNNttttppppooo1MMMM", 2) // v2 (MCR2: v5) - INST("MCRR", "cccc11000100uuuuttttppppooooMMMM", 2) // v5E (MCRR2: v6) - INST("MRC", "cccc1110ooo1NNNNttttppppooo1MMMM", 2) // v2 (MRC2: v5) - INST("MRRC", "cccc11000101uuuuttttppppooooMMMM", 2) // v5E (MRRC2: v6) - INST("STC", "cccc110pudw0nnnnDDDDppppvvvvvvvv", 1) // v2 (STC2: v5) - - // Data Processing instructions - INST("ADC (imm)", "cccc0010101Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("ADC (reg)", "cccc0000101Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("ADC (rsr)", "cccc0000101Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("ADD (imm)", "cccc0010100Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("ADD (reg)", "cccc0000100Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("ADD (rsr)", "cccc0000100Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("AND (imm)", "cccc0010000Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("AND (reg)", "cccc0000000Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("AND (rsr)", "cccc0000000Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("BIC (imm)", "cccc0011110Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("BIC (reg)", "cccc0001110Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("BIC (rsr)", "cccc0001110Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("CMN (imm)", "cccc00110111nnnn0000rrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("CMN (reg)", "cccc00010111nnnn0000vvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("CMN (rsr)", "cccc00010111nnnn0000ssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("CMP (imm)", "cccc00110101nnnn0000rrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("CMP (reg)", "cccc00010101nnnn0000vvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("CMP (rsr)", "cccc00010101nnnn0000ssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("EOR (imm)", "cccc0010001Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("EOR (reg)", "cccc0000001Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("EOR (rsr)", "cccc0000001Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("MOV (imm)", "cccc0011101S0000ddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("MOV (reg)", "cccc0001101S0000ddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("MOV (rsr)", "cccc0001101S0000ddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("MVN (imm)", "cccc0011111S0000ddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("MVN (reg)", "cccc0001111S0000ddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("MVN (rsr)", "cccc0001111S0000ddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("ORR (imm)", "cccc0011100Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("ORR (reg)", "cccc0001100Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("ORR (rsr)", "cccc0001100Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("RSB (imm)", "cccc0010011Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("RSB (reg)", "cccc0000011Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("RSB (rsr)", "cccc0000011Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("RSC (imm)", "cccc0010111Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("RSC (reg)", "cccc0000111Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("RSC (rsr)", "cccc0000111Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("SBC (imm)", "cccc0010110Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("SBC (reg)", "cccc0000110Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("SBC (rsr)", "cccc0000110Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("SUB (imm)", "cccc0010010Snnnnddddrrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("SUB (reg)", "cccc0000010Snnnnddddvvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("SUB (rsr)", "cccc0000010Snnnnddddssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("TEQ (imm)", "cccc00110011nnnn0000rrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("TEQ (reg)", "cccc00010011nnnn0000vvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("TEQ (rsr)", "cccc00010011nnnn0000ssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - INST("TST (imm)", "cccc00110001nnnn0000rrrrvvvvvvvv", DataProcessing_imm(i)) // v1 - INST("TST (reg)", "cccc00010001nnnn0000vvvvvrr0mmmm", DataProcessing_reg(i)) // v1 - INST("TST (rsr)", "cccc00010001nnnn0000ssss0rr1mmmm", DataProcessing_rsr(i)) // v1 - - // Exception Generating instructions - INST("BKPT", "cccc00010010vvvvvvvvvvvv0111vvvv", 8) // v5 - INST("SVC", "cccc1111vvvvvvvvvvvvvvvvvvvvvvvv", SupervisorCall(i)) // v1 - INST("UDF", "111001111111------------1111----", 8) - - // Extension instructions - INST("SXTB", "cccc011010101111ddddrr000111mmmm", 1) // v6 - INST("SXTB16", "cccc011010001111ddddrr000111mmmm", 1) // v6 - INST("SXTH", "cccc011010111111ddddrr000111mmmm", 1) // v6 - INST("SXTAB", "cccc01101010nnnnddddrr000111mmmm", 1) // v6 - INST("SXTAB16", "cccc01101000nnnnddddrr000111mmmm", 1) // v6 - INST("SXTAH", "cccc01101011nnnnddddrr000111mmmm", 1) // v6 - INST("UXTB", "cccc011011101111ddddrr000111mmmm", 1) // v6 - INST("UXTB16", "cccc011011001111ddddrr000111mmmm", 1) // v6 - INST("UXTH", "cccc011011111111ddddrr000111mmmm", 1) // v6 - INST("UXTAB", "cccc01101110nnnnddddrr000111mmmm", 1) // v6 - INST("UXTAB16", "cccc01101100nnnnddddrr000111mmmm", 1) // v6 - INST("UXTAH", "cccc01101111nnnnddddrr000111mmmm", 1) // v6 - - // Hint instructions - INST("PLD (imm)", "11110101uz01nnnn1111iiiiiiiiiiii", 1) // v5E for PLD; v7 for PLDW - INST("PLD (reg)", "11110111uz01nnnn1111iiiiitt0mmmm", 1) // v5E for PLD; v7 for PLDW - INST("SEV", "----0011001000001111000000000100", 1) // v6K - INST("WFE", "----0011001000001111000000000010", 1) // v6K - INST("WFI", "----0011001000001111000000000011", 1) // v6K - INST("YIELD", "----0011001000001111000000000001", 1) // v6K - - // Synchronization Primitive instructions - INST("CLREX", "11110101011111111111000000011111", 1) // v6K - INST("SWP", "cccc00010000nnnntttt00001001uuuu", 4) // v2S (v6: Deprecated) - INST("SWPB", "cccc00010100nnnntttt00001001uuuu", 4) // v2S (v6: Deprecated) - INST("STREX", "cccc00011000nnnndddd11111001mmmm", 2) // v6 - INST("LDREX", "cccc00011001nnnndddd111110011111", 2) // v6 - INST("STREXD", "cccc00011010nnnndddd11111001mmmm", 2) // v6K - INST("LDREXD", "cccc00011011nnnndddd111110011111", 2) // v6K - INST("STREXB", "cccc00011100nnnndddd11111001mmmm", 2) // v6K - INST("LDREXB", "cccc00011101nnnndddd111110011111", 2) // v6K - INST("STREXH", "cccc00011110nnnndddd11111001mmmm", 2) // v6K - INST("LDREXH", "cccc00011111nnnndddd111110011111", 2) // v6K - - // Load/Store instructions - INST("LDRBT (A1)", "----0100-111--------------------", 1) // v1 - INST("LDRBT (A2)", "----0110-111---------------0----", 1) // v1 - INST("LDRT (A1)", "----0100-011--------------------", 1) // v1 - INST("LDRT (A2)", "----0110-011---------------0----", 1) // v1 - INST("STRBT (A1)", "----0100-110--------------------", 1) // v1 - INST("STRBT (A2)", "----0110-110---------------0----", 1) // v1 - INST("STRT (A1)", "----0100-010--------------------", 1) // v1 - INST("STRT (A2)", "----0110-010---------------0----", 1) // v1 - INST("LDR (lit)", "cccc0101u0011111ttttvvvvvvvvvvvv", LoadStoreSingle_imm(i)) // v1 - INST("LDR (imm)", "cccc010pu0w1nnnnttttvvvvvvvvvvvv", LoadStoreSingle_imm(i)) // v1 - INST("LDR (reg)", "cccc011pu0w1nnnnttttvvvvvrr0mmmm", LoadStoreSingle_reg(i)) // v1 - INST("LDRB (lit)", "cccc0101u1011111ttttvvvvvvvvvvvv", LoadStoreSingle_imm(i)) // v1 - INST("LDRB (imm)", "cccc010pu1w1nnnnttttvvvvvvvvvvvv", LoadStoreSingle_imm(i)) // v1 - INST("LDRB (reg)", "cccc011pu1w1nnnnttttvvvvvrr0mmmm", LoadStoreSingle_reg(i)) // v1 - INST("LDRD (lit)", "cccc0001u1001111ttttvvvv1101vvvv", LoadStoreSingle_imm(i)) // v5E - INST("LDRD (imm)", "cccc000pu1w0nnnnttttvvvv1101vvvv", LoadStoreSingle_imm(i)) // v5E - INST("LDRD (reg)", "cccc000pu0w0nnnntttt00001101mmmm", LoadStoreSingle_reg(i)) // v5E - INST("LDRH (lit)", "cccc000pu1w11111ttttvvvv1011vvvv", LoadStoreSingle_imm(i)) // v4 - INST("LDRH (imm)", "cccc000pu1w1nnnnttttvvvv1011vvvv", LoadStoreSingle_imm(i)) // v4 - INST("LDRH (reg)", "cccc000pu0w1nnnntttt00001011mmmm", LoadStoreSingle_reg(i)) // v4 - INST("LDRSB (lit)", "cccc0001u1011111ttttvvvv1101vvvv", LoadStoreSingle_imm(i)) // v4 - INST("LDRSB (imm)", "cccc000pu1w1nnnnttttvvvv1101vvvv", LoadStoreSingle_imm(i)) // v4 - INST("LDRSB (reg)", "cccc000pu0w1nnnntttt00001101mmmm", LoadStoreSingle_reg(i)) // v4 - INST("LDRSH (lit)", "cccc0001u1011111ttttvvvv1111vvvv", LoadStoreSingle_imm(i)) // v4 - INST("LDRSH (imm)", "cccc000pu1w1nnnnttttvvvv1111vvvv", LoadStoreSingle_imm(i)) // v4 - INST("LDRSH (reg)", "cccc000pu0w1nnnntttt00001111mmmm", LoadStoreSingle_reg(i)) // v4 - INST("STR (imm)", "cccc010pu0w0nnnnttttvvvvvvvvvvvv", LoadStoreSingle_imm(i)) // v1 - INST("STR (reg)", "cccc011pu0w0nnnnttttvvvvvrr0mmmm", LoadStoreSingle_reg(i)) // v1 - INST("STRB (imm)", "cccc010pu1w0nnnnttttvvvvvvvvvvvv", LoadStoreSingle_imm(i)) // v1 - INST("STRB (reg)", "cccc011pu1w0nnnnttttvvvvvrr0mmmm", LoadStoreSingle_reg(i)) // v1 - INST("STRD (imm)", "cccc000pu1w0nnnnttttvvvv1111vvvv", LoadStoreSingle_imm(i)) // v5E - INST("STRD (reg)", "cccc000pu0w0nnnntttt00001111mmmm", LoadStoreSingle_reg(i)) // v5E - INST("STRH (imm)", "cccc000pu1w0nnnnttttvvvv1011vvvv", LoadStoreSingle_imm(i)) // v4 - INST("STRH (reg)", "cccc000pu0w0nnnntttt00001011mmmm", LoadStoreSingle_reg(i)) // v4 - - // Load/Store Multiple instructions - INST("LDM", "cccc100010w1nnnnxxxxxxxxxxxxxxxx", LoadStoreMultiple(i)) // v1 - INST("LDMDA", "cccc100000w1nnnnxxxxxxxxxxxxxxxx", LoadStoreMultiple(i)) // v1 - INST("LDMDB", "cccc100100w1nnnnxxxxxxxxxxxxxxxx", LoadStoreMultiple(i)) // v1 - INST("LDMIB", "cccc100110w1nnnnxxxxxxxxxxxxxxxx", LoadStoreMultiple(i)) // v1 - INST("LDM (usr reg)", "----100--101--------------------", 1) // v1 - INST("LDM (exce ret)", "----100--1-1----1---------------", 1) // v1 - INST("STM", "cccc100010w0nnnnxxxxxxxxxxxxxxxx", LoadStoreMultiple(i)) // v1 - INST("STMDA", "cccc100000w0nnnnxxxxxxxxxxxxxxxx", LoadStoreMultiple(i)) // v1 - INST("STMDB", "cccc100100w0nnnnxxxxxxxxxxxxxxxx", LoadStoreMultiple(i)) // v1 - INST("STMIB", "cccc100110w0nnnnxxxxxxxxxxxxxxxx", LoadStoreMultiple(i)) // v1 - INST("STM (usr reg)", "----100--100--------------------", 1) // v1 - - // Miscellaneous instructions - INST("CLZ", "cccc000101101111dddd11110001mmmm", 1) // v5 - INST("NOP", "----0011001000001111000000000000", 1) // v6K - INST("SEL", "cccc01101000nnnndddd11111011mmmm", 1) // v6 - - // Unsigned Sum of Absolute Differences instructions - INST("USAD8", "cccc01111000dddd1111mmmm0001nnnn", 1) // v6 - INST("USADA8", "cccc01111000ddddaaaammmm0001nnnn", 1) // v6 - - // Packing instructions - INST("PKHBT", "cccc01101000nnnnddddvvvvv001mmmm", 1) // v6K - INST("PKHTB", "cccc01101000nnnnddddvvvvv101mmmm", 1) // v6K - - // Reversal instructions - INST("REV", "cccc011010111111dddd11110011mmmm", 1) // v6 - INST("REV16", "cccc011010111111dddd11111011mmmm", 1) // v6 - INST("REVSH", "cccc011011111111dddd11111011mmmm", 1) // v6 - - // Saturation instructions - INST("SSAT", "cccc0110101vvvvvddddvvvvvr01nnnn", 1) // v6 - INST("SSAT16", "cccc01101010vvvvdddd11110011nnnn", 1) // v6 - INST("USAT", "cccc0110111vvvvvddddvvvvvr01nnnn", 1) // v6 - INST("USAT16", "cccc01101110vvvvdddd11110011nnnn", 1) // v6 - - // Multiply (Normal) instructions - INST("MLA", "cccc0000001Sddddaaaammmm1001nnnn", (i.template Get<"S">() ? 5 : 2)) // v2 - INST("MUL", "cccc0000000Sdddd0000mmmm1001nnnn", (i.template Get<"S">() ? 5 : 2)) // v2 - - // Multiply (Long) instructions - INST("SMLAL", "cccc0000111Sddddaaaammmm1001nnnn", (i.template Get<"S">() ? 6 : 3)) // v3M - INST("SMULL", "cccc0000110Sddddaaaammmm1001nnnn", (i.template Get<"S">() ? 6 : 3)) // v3M - INST("UMAAL", "cccc00000100ddddaaaammmm1001nnnn", 3) // v6 - INST("UMLAL", "cccc0000101Sddddaaaammmm1001nnnn", (i.template Get<"S">() ? 6 : 3)) // v3M - INST("UMULL", "cccc0000100Sddddaaaammmm1001nnnn", (i.template Get<"S">() ? 6 : 3)) // v3M - - // Multiply (Halfword) instructions - INST("SMLALXY", "cccc00010100ddddaaaammmm1xy0nnnn", 2) // v5xP - INST("SMLAXY", "cccc00010000ddddaaaammmm1xy0nnnn", 1) // v5xP - INST("SMULXY", "cccc00010110dddd0000mmmm1xy0nnnn", 1) // v5xP - - // Multiply (Word by Halfword) instructions - INST("SMLAWY", "cccc00010010ddddaaaammmm1y00nnnn", 1) // v5xP - INST("SMULWY", "cccc00010010dddd0000mmmm1y10nnnn", 1) // v5xP - - // Multiply (Most Significant Word) instructions - INST("SMMUL", "cccc01110101dddd1111mmmm00R1nnnn", 2) // v6 - INST("SMMLA", "cccc01110101ddddaaaammmm00R1nnnn", 2) // v6 - INST("SMMLS", "cccc01110101ddddaaaammmm11R1nnnn", 2) // v6 - - // Multiply (Dual) instructions - INST("SMLAD", "cccc01110000ddddaaaammmm00M1nnnn", 2) // v6 - INST("SMLALD", "cccc01110100ddddaaaammmm00M1nnnn", 2) // v6 - INST("SMLSD", "cccc01110000ddddaaaammmm01M1nnnn", 2) // v6 - INST("SMLSLD", "cccc01110100ddddaaaammmm01M1nnnn", 2) // v6 - INST("SMUAD", "cccc01110000dddd1111mmmm00M1nnnn", 2) // v6 - INST("SMUSD", "cccc01110000dddd1111mmmm01M1nnnn", 2) // v6 - - // Parallel Add/Subtract (Modulo) instructions - INST("SADD8", "cccc01100001nnnndddd11111001mmmm", 1) // v6 - INST("SADD16", "cccc01100001nnnndddd11110001mmmm", 1) // v6 - INST("SASX", "cccc01100001nnnndddd11110011mmmm", 1) // v6 - INST("SSAX", "cccc01100001nnnndddd11110101mmmm", 1) // v6 - INST("SSUB8", "cccc01100001nnnndddd11111111mmmm", 1) // v6 - INST("SSUB16", "cccc01100001nnnndddd11110111mmmm", 1) // v6 - INST("UADD8", "cccc01100101nnnndddd11111001mmmm", 1) // v6 - INST("UADD16", "cccc01100101nnnndddd11110001mmmm", 1) // v6 - INST("UASX", "cccc01100101nnnndddd11110011mmmm", 1) // v6 - INST("USAX", "cccc01100101nnnndddd11110101mmmm", 1) // v6 - INST("USUB8", "cccc01100101nnnndddd11111111mmmm", 1) // v6 - INST("USUB16", "cccc01100101nnnndddd11110111mmmm", 1) // v6 - - // Parallel Add/Subtract (Saturating) instructions - INST("QADD8", "cccc01100010nnnndddd11111001mmmm", 1) // v6 - INST("QADD16", "cccc01100010nnnndddd11110001mmmm", 1) // v6 - INST("QASX", "cccc01100010nnnndddd11110011mmmm", 1) // v6 - INST("QSAX", "cccc01100010nnnndddd11110101mmmm", 1) // v6 - INST("QSUB8", "cccc01100010nnnndddd11111111mmmm", 1) // v6 - INST("QSUB16", "cccc01100010nnnndddd11110111mmmm", 1) // v6 - INST("UQADD8", "cccc01100110nnnndddd11111001mmmm", 1) // v6 - INST("UQADD16", "cccc01100110nnnndddd11110001mmmm", 1) // v6 - INST("UQASX", "cccc01100110nnnndddd11110011mmmm", 1) // v6 - INST("UQSAX", "cccc01100110nnnndddd11110101mmmm", 1) // v6 - INST("UQSUB8", "cccc01100110nnnndddd11111111mmmm", 1) // v6 - INST("UQSUB16", "cccc01100110nnnndddd11110111mmmm", 1) // v6 - - // Parallel Add/Subtract (Halving) instructions - INST("SHADD8", "cccc01100011nnnndddd11111001mmmm", 1) // v6 - INST("SHADD16", "cccc01100011nnnndddd11110001mmmm", 1) // v6 - INST("SHASX", "cccc01100011nnnndddd11110011mmmm", 1) // v6 - INST("SHSAX", "cccc01100011nnnndddd11110101mmmm", 1) // v6 - INST("SHSUB8", "cccc01100011nnnndddd11111111mmmm", 1) // v6 - INST("SHSUB16", "cccc01100011nnnndddd11110111mmmm", 1) // v6 - INST("UHADD8", "cccc01100111nnnndddd11111001mmmm", 1) // v6 - INST("UHADD16", "cccc01100111nnnndddd11110001mmmm", 1) // v6 - INST("UHASX", "cccc01100111nnnndddd11110011mmmm", 1) // v6 - INST("UHSAX", "cccc01100111nnnndddd11110101mmmm", 1) // v6 - INST("UHSUB8", "cccc01100111nnnndddd11111111mmmm", 1) // v6 - INST("UHSUB16", "cccc01100111nnnndddd11110111mmmm", 1) // v6 - - // Saturated Add/Subtract instructions - INST("QADD", "cccc00010000nnnndddd00000101mmmm", 1) // v5xP - INST("QSUB", "cccc00010010nnnndddd00000101mmmm", 1) // v5xP - INST("QDADD", "cccc00010100nnnndddd00000101mmmm", 1) // v5xP - INST("QDSUB", "cccc00010110nnnndddd00000101mmmm", 1) // v5xP - - // Status Register Access instructions - INST("CPS", "111100010000---00000000---0-----", 1) // v6 - INST("SETEND", "1111000100000001000000e000000000", 1) // v6 - INST("MRS", "cccc000100001111dddd000000000000", 1) // v3 - INST("MSR (imm)", "cccc00110010mmmm1111rrrrvvvvvvvv", (i.template Get<"m">() == 0b1000 ? 1 : 4)) // v3 - INST("MSR (reg)", "cccc00010010mmmm111100000000nnnn", (i.template Get<"m">() == 0b1000 ? 1 : 4)) // v3 - INST("RFE", "1111100--0-1----0000101000000000", 9) // v6 - INST("SRS", "1111100--1-0110100000101000-----", 1) // v6 - - // clang-format on - }; - - const std::array thumb_matchers{ - // clang-format off - - // Shift (immediate) add, subtract, move and compare instructions - INST("LSL (imm)", "00000vvvvvmmmddd", 1) - INST("LSR (imm)", "00001vvvvvmmmddd", 1) - INST("ASR (imm)", "00010vvvvvmmmddd", 1) - INST("ADD (reg, T1)", "0001100mmmnnnddd", 1) - INST("SUB (reg)", "0001101mmmnnnddd", 1) - INST("ADD (imm, T1)", "0001110vvvnnnddd", 1) - INST("SUB (imm, T1)", "0001111vvvnnnddd", 1) - INST("MOV (imm)", "00100dddvvvvvvvv", 1) - INST("CMP (imm)", "00101nnnvvvvvvvv", 1) - INST("ADD (imm, T2)", "00110dddvvvvvvvv", 1) - INST("SUB (imm, T2)", "00111dddvvvvvvvv", 1) - - // Data-processing instructions - INST("AND (reg)", "0100000000mmmddd", 1) - INST("EOR (reg)", "0100000001mmmddd", 1) - INST("LSL (reg)", "0100000010mmmddd", 1) - INST("LSR (reg)", "0100000011mmmddd", 1) - INST("ASR (reg)", "0100000100mmmddd", 1) - INST("ADC (reg)", "0100000101mmmddd", 1) - INST("SBC (reg)", "0100000110mmmddd", 1) - INST("ROR (reg)", "0100000111sssddd", 1) - INST("TST (reg)", "0100001000mmmnnn", 1) - INST("RSB (imm)", "0100001001nnnddd", 1) - INST("CMP (reg, T1)", "0100001010mmmnnn", 1) - INST("CMN (reg)", "0100001011mmmnnn", 1) - INST("ORR (reg)", "0100001100mmmddd", 1) - INST("MUL (reg)", "0100001101nnnddd", 1) - INST("BIC (reg)", "0100001110mmmddd", 1) - INST("MVN (reg)", "0100001111mmmddd", 1) - - // Special data instructions - INST("ADD (reg, T2)", "01000100Dmmmmddd", 1) // v4T, Low regs: v6T2 - INST("CMP (reg, T2)", "01000101Nmmmmnnn", 1) // v4T - INST("MOV (reg)", "01000110Dmmmmddd", 1) // v4T, Low regs: v6 - - // Store/Load single data item instructions - INST("LDR (literal)", "01001tttvvvvvvvv", 2) - INST("STR (reg)", "0101000mmmnnnttt", 2) - INST("STRH (reg)", "0101001mmmnnnttt", 2) - INST("STRB (reg)", "0101010mmmnnnttt", 2) - INST("LDRSB (reg)", "0101011mmmnnnttt", 2) - INST("LDR (reg)", "0101100mmmnnnttt", 2) - INST("LDRH (reg)", "0101101mmmnnnttt", 2) - INST("LDRB (reg)", "0101110mmmnnnttt", 2) - INST("LDRSH (reg)", "0101111mmmnnnttt", 2) - INST("STR (imm, T1)", "01100vvvvvnnnttt", 2) - INST("LDR (imm, T1)", "01101vvvvvnnnttt", 2) - INST("STRB (imm)", "01110vvvvvnnnttt", 2) - INST("LDRB (imm)", "01111vvvvvnnnttt", 2) - INST("STRH (imm)", "10000vvvvvnnnttt", 2) - INST("LDRH (imm)", "10001vvvvvnnnttt", 2) - INST("STR (imm, T2)", "10010tttvvvvvvvv", 2) - INST("LDR (imm, T2)", "10011tttvvvvvvvv", 2) - - // Generate relative address instructions - INST("ADR", "10100dddvvvvvvvv", 1) - INST("ADD (SP plus imm, T1)", "10101dddvvvvvvvv", 1) - INST("ADD (SP plus imm, T2)", "101100000vvvvvvv", 1) // v4T - INST("SUB (SP minus imm)", "101100001vvvvvvv", 1) // v4T - - // Hint instructions - INST("NOP", "10111111--------", (1)) // IT on v7 - - // Miscellaneous 16-bit instructions - INST("SXTH", "1011001000mmmddd", 1) // v6 - INST("SXTB", "1011001001mmmddd", 1) // v6 - INST("UXTH", "1011001010mmmddd", 1) // v6 - INST("UXTB", "1011001011mmmddd", 1) // v6 - INST("PUSH", "1011010xxxxxxxxx", LoadStoreMultiple(i)) // v4T - INST("POP", "1011110xxxxxxxxx", LoadStoreMultiple(i)) // v4T - INST("SETEND", "101101100101x000", 1) // v6 - INST("CPS", "10110110011m0aif", 1) // v6 - INST("REV", "1011101000mmmddd", 1) // v6 - INST("REV16", "1011101001mmmddd", 1) // v6 - INST("REVSH", "1011101011mmmddd", 1) // v6 - INST("BKPT", "10111110xxxxxxxx", 8) // v5 - - // Store/Load multiple registers - INST("STMIA", "11000nnnxxxxxxxx", LoadStoreMultiple(i)) - INST("LDMIA", "11001nnnxxxxxxxx", LoadStoreMultiple(i)) - - // Branch instructions - INST("BX", "010001110mmmm000", 5) // v4T - INST("BLX (reg)", "010001111mmmm000", 6) // v5T - INST("UDF", "11011110--------", 8) - INST("SVC", "11011111vvvvvvvv", SupervisorCall(i)) - INST("B (T1)", "1101ccccvvvvvvvv", 4) - INST("B (T2)", "11100vvvvvvvvvvv", 4) - INST("BL (imm)", "11110Svvvvvvvvvv11j1jvvvvvvvvvvv", 4) // v4T - INST("BLX (imm)", "11110Svvvvvvvvvv11j0jvvvvvvvvvvv", 5) // v5T - - // clang-format on - }; - -} // namespace - -u64 MyEnvironment::getCyclesForInstruction(bool is_thumb, u32 instruction) { - if (is_thumb) { - return 1; - } - - const auto matches_instruction = [instruction](const auto& matcher) { - return (instruction & matcher.mask) == matcher.expect; - }; - - auto iter = std::find_if(arm_matchers.begin(), arm_matchers.end(), matches_instruction); - if (iter != arm_matchers.end()) { - return iter->fn(instruction); - } - return 1; -} diff --git a/src/core/PICA/dynapica/shader_rec.cpp b/src/core/PICA/dynapica/shader_rec.cpp deleted file mode 100644 index 20e171d7..00000000 --- a/src/core/PICA/dynapica/shader_rec.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "PICA/dynapica/shader_rec.hpp" -#include - -#ifdef PANDA3DS_SHADER_JIT_SUPPORTED -void ShaderJIT::reset() { - cache.clear(); -} - -void ShaderJIT::prepare(PICAShader& shaderUnit) { - shaderUnit.pc = shaderUnit.entrypoint; - // We combine the code and operand descriptor hashes into a single hash - // This is so that if only one of them changes, we still properly recompile the shader - // The combine does rotl(x, 1) ^ y for the merging instead of x ^ y because xor is commutative, hence creating possible collisions - // re: https://github.com/wheremyfoodat/Panda3DS/pull/15#discussion_r1229925372 - Hash hash = std::rotl(shaderUnit.getCodeHash(), 1) ^ shaderUnit.getOpdescHash(); - auto it = cache.find(hash); - - if (it == cache.end()) { // Block has not been compiled yet - auto emitter = std::make_unique(); - emitter->compile(shaderUnit); - // Get pointer to callbacks - entrypointCallback = emitter->getInstructionCallback(shaderUnit.entrypoint); - prologueCallback = emitter->getPrologueCallback(); - - cache.emplace_hint(it, hash, std::move(emitter)); - } else { // Block has been compiled and found, use it - auto emitter = it->second.get(); - entrypointCallback = emitter->getInstructionCallback(shaderUnit.entrypoint); - prologueCallback = emitter->getPrologueCallback(); - } -} -#endif // PANDA3DS_SHADER_JIT_SUPPORTED \ No newline at end of file diff --git a/src/core/PICA/dynapica/shader_rec_emitter_arm64.cpp b/src/core/PICA/dynapica/shader_rec_emitter_arm64.cpp deleted file mode 100644 index 6a3fbfee..00000000 --- a/src/core/PICA/dynapica/shader_rec_emitter_arm64.cpp +++ /dev/null @@ -1,948 +0,0 @@ -#if defined(PANDA3DS_DYNAPICA_SUPPORTED) && defined(PANDA3DS_ARM64_HOST) -#include "PICA/dynapica/shader_rec_emitter_arm64.hpp" - -#include - -using namespace Helpers; -using namespace oaknut; -using namespace oaknut::util; - -// Similar to the x64 recompiler, we use an odd internal ABI, which abuses the fact that we'll very rarely be calling C++ functions -// So to avoid pushing and popping, we'll be making use of volatile registers as much as possible -static constexpr QReg scratch1 = Q0; -static constexpr QReg scratch2 = Q1; -static constexpr QReg src1_vec = Q2; -static constexpr QReg src2_vec = Q3; -static constexpr QReg src3_vec = Q4; -static constexpr QReg onesVector = Q5; - -static constexpr XReg arg1 = X0; -static constexpr XReg arg2 = X1; -static constexpr XReg statePointer = X9; - -void ShaderEmitter::compile(const PICAShader& shaderUnit) { - oaknut::CodeBlock::unprotect(); // Unprotect the memory before writing to it - - // Constants - align(16); - // Generate blending masks for doing masked writes to registers - l(blendMasks); - for (int i = 0; i < 16; i++) { - dw((i & 0x8) ? 0xFFFFFFFF : 0); // Mask for x component - dw((i & 0x4) ? 0xFFFFFFFF : 0); // Mask for y component - dw((i & 0x2) ? 0xFFFFFFFF : 0); // Mask for z component - dw((i & 0x1) ? 0xFFFFFFFF : 0); // Mask for w component - } - - // Emit prologue first - oaknut::Label prologueLabel; - align(16); - - l(prologueLabel); - prologueCb = getLabelPointer(prologueLabel); - - // Set state pointer to the proper pointer - // state pointer is volatile, no need to preserve it - MOV(statePointer, arg1); - // Generate a vector of all 1.0s for SLT/SGE/RCP/RSQ - FMOV(onesVector.S4(), FImm8(0x70)); - - // Push a return guard on the stack. This happens due to the way we handle the PICA callstack, by pushing the return PC to stack - // By pushing -1, we make it impossible for a return check to erroneously pass - MOV(arg1, 0xffffffffffffffffll); - // Backup link register (X30) and push return guard - STP(arg1, X30, SP, PRE_INDEXED, -16); - - // Jump to code with a tail call - BR(arg2); - - // Scan the code for call, exp2, log2, etc instructions which need some special care - // After that, emit exp2 and log2 functions if the corresponding instructions are present - scanCode(shaderUnit); - if (codeHasExp2) Helpers::panic("arm64 shader JIT: Code has exp2"); - if (codeHasLog2) Helpers::panic("arm64 shader JIT: Code has log2"); - - align(16); - // Compile every instruction in the shader - // This sounds horrible but the PICA instruction memory is tiny, and most of the time it's padded wtih nops that compile to nothing - recompilerPC = 0; - loopLevel = 0; - compileUntil(shaderUnit, PICAShader::maxInstructionCount); - - // Protect the memory and invalidate icache before executing the code - oaknut::CodeBlock::protect(); - oaknut::CodeBlock::invalidate_all(); -} - -void ShaderEmitter::scanCode(const PICAShader& shaderUnit) { - returnPCs.clear(); - - for (u32 i = 0; i < PICAShader::maxInstructionCount; i++) { - const u32 instruction = shaderUnit.loadedShader[i]; - const u32 opcode = instruction >> 26; - - if (isCall(instruction)) { - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - const u32 returnPC = num + dest; // Add them to get the return PC - - returnPCs.push_back(returnPC); - } else if (opcode == ShaderOpcodes::EX2) { - codeHasExp2 = true; - } else if (opcode == ShaderOpcodes::LG2) { - codeHasLog2 = true; - } - } - - // Sort return PCs so they can be binary searched - std::sort(returnPCs.begin(), returnPCs.end()); -} - -void ShaderEmitter::compileUntil(const PICAShader& shaderUnit, u32 end) { - while (recompilerPC < end) { - compileInstruction(shaderUnit); - } -} - -void ShaderEmitter::compileInstruction(const PICAShader& shaderUnit) { - // Write current location to label for this instruction - l(instructionLabels[recompilerPC]); - - // See if PC is a possible return PC and emit the proper code if so - if (std::binary_search(returnPCs.begin(), returnPCs.end(), recompilerPC)) { - Label skipReturn; - - LDP(X0, XZR, SP); // W0 = Next return address - MOV(W1, recompilerPC); // W1 = Current PC - CMP(W0, W1); // If they're equal, execute a RET, otherwise skip it - B(NE, skipReturn); - RET(); - - l(skipReturn); - } - - // Fetch instruction and inc PC - const u32 instruction = shaderUnit.loadedShader[recompilerPC++]; - const u32 opcode = instruction >> 26; - - switch (opcode) { - case ShaderOpcodes::ADD: recADD(shaderUnit, instruction); break; - case ShaderOpcodes::CALL: recCALL(shaderUnit, instruction); break; - case ShaderOpcodes::CALLC: recCALLC(shaderUnit, instruction); break; - case ShaderOpcodes::CALLU: recCALLU(shaderUnit, instruction); break; - case ShaderOpcodes::CMP1: - case ShaderOpcodes::CMP2: recCMP(shaderUnit, instruction); break; - case ShaderOpcodes::DP3: recDP3(shaderUnit, instruction); break; - case ShaderOpcodes::DP4: recDP4(shaderUnit, instruction); break; - // case ShaderOpcodes::DPH: - // case ShaderOpcodes::DPHI: recDPH(shaderUnit, instruction); break; - case ShaderOpcodes::END: recEND(shaderUnit, instruction); break; - // case ShaderOpcodes::EX2: recEX2(shaderUnit, instruction); break; - case ShaderOpcodes::FLR: recFLR(shaderUnit, instruction); break; - case ShaderOpcodes::IFC: recIFC(shaderUnit, instruction); break; - case ShaderOpcodes::IFU: recIFU(shaderUnit, instruction); break; - case ShaderOpcodes::JMPC: recJMPC(shaderUnit, instruction); break; - case ShaderOpcodes::JMPU: recJMPU(shaderUnit, instruction); break; - // case ShaderOpcodes::LG2: recLG2(shaderUnit, instruction); break; - case ShaderOpcodes::LOOP: recLOOP(shaderUnit, instruction); break; - case ShaderOpcodes::MOV: recMOV(shaderUnit, instruction); break; - case ShaderOpcodes::MOVA: recMOVA(shaderUnit, instruction); break; - case ShaderOpcodes::MAX: recMAX(shaderUnit, instruction); break; - case ShaderOpcodes::MIN: recMIN(shaderUnit, instruction); break; - case ShaderOpcodes::MUL: recMUL(shaderUnit, instruction); break; - case ShaderOpcodes::NOP: break; - case ShaderOpcodes::RCP: recRCP(shaderUnit, instruction); break; - case ShaderOpcodes::RSQ: recRSQ(shaderUnit, instruction); break; - - // Unimplemented opcodes that don't seem to actually be used but exist in the binary - // EMIT/SETEMIT are used in geometry shaders, however are sometimes found in vertex shaders? - case ShaderOpcodes::EMIT: - case ShaderOpcodes::SETEMIT: log("[ShaderJIT] Unimplemented PICA opcode: %02X\n", opcode); break; - - case ShaderOpcodes::BREAK: - case ShaderOpcodes::BREAKC: Helpers::warn("[Shader JIT] Unimplemented BREAK(C) instruction!"); break; - - // We consider both MAD and MADI to be the same instruction and decode which one we actually have in recMAD - case 0x30: - case 0x31: - case 0x32: - case 0x33: - case 0x34: - case 0x35: - case 0x36: - case 0x37: - case 0x38: - case 0x39: - case 0x3A: - case 0x3B: - case 0x3C: - case 0x3D: - case 0x3E: - case 0x3F: recMAD(shaderUnit, instruction); break; - - case ShaderOpcodes::SLT: - case ShaderOpcodes::SLTI: recSLT(shaderUnit, instruction); break; - - case ShaderOpcodes::SGE: - case ShaderOpcodes::SGEI: recSGE(shaderUnit, instruction); break; - - default: Helpers::panic("Shader JIT: Unimplemented PICA opcode %X", opcode); - } -} - -const ShaderEmitter::vec4f& ShaderEmitter::getSourceRef(const PICAShader& shader, u32 src) { - if (src < 0x10) - return shader.inputs[src]; - else if (src < 0x20) - return shader.tempRegisters[src - 0x10]; - else if (src <= 0x7f) - return shader.floatUniforms[src - 0x20]; - else { - Helpers::warn("[Shader JIT] Unimplemented source value: %X\n", src); - return shader.dummy; - } -} - -const ShaderEmitter::vec4f& ShaderEmitter::getDestRef(const PICAShader& shader, u32 dest) { - if (dest < 0x10) { - return shader.outputs[dest]; - } else if (dest < 0x20) { - return shader.tempRegisters[dest - 0x10]; - } - Helpers::panic("[Shader JIT] Unimplemented dest: %X", dest); -} - -// See shader.hpp header for docs on how the swizzle and negate works -template -void ShaderEmitter::loadRegister(QReg dest, const PICAShader& shader, u32 src, u32 index, u32 operandDescriptor) { - u32 compSwizzle; // Component swizzle pattern for the register - bool negate; // If true, negate all lanes of the register - - if constexpr (sourceIndex == 1) { // SRC1 - negate = (getBit<4>(operandDescriptor)) != 0; - compSwizzle = getBits<5, 8>(operandDescriptor); - } else if constexpr (sourceIndex == 2) { // SRC2 - negate = (getBit<13>(operandDescriptor)) != 0; - compSwizzle = getBits<14, 8>(operandDescriptor); - } else if constexpr (sourceIndex == 3) { // SRC3 - negate = (getBit<22>(operandDescriptor)) != 0; - compSwizzle = getBits<23, 8>(operandDescriptor); - } - - // TODO: Do indexes get applied if src < 0x20? - - switch (index) { - case 0: - [[likely]] { // Keep src as is, no need to offset it - const vec4f& srcRef = getSourceRef(shader, src); - const uintptr_t offset = uintptr_t(&srcRef) - uintptr_t(&shader); // Calculate offset of register from start of the state struct - - LDR(dest, statePointer, offset); - switch (compSwizzle) { - case noSwizzle: break; // .xyzw - case 0x0: DUP(dest.S4(), dest.Selem()[0]); break; // .xxxx - case 0x55: DUP(dest.S4(), dest.Selem()[1]); break; // .yyyy - case 0xAA: DUP(dest.S4(), dest.Selem()[2]); break; // .zzzz - case 0xFF: - DUP(dest.S4(), dest.Selem()[3]); - break; // .wwww - - // Some of these cases may still be optimizable - default: { - MOV(scratch1.B16(), dest.B16()); // Make a copy of the register - - const auto newX = getBits<6, 2>(compSwizzle); - const auto newY = getBits<4, 2>(compSwizzle); - const auto newZ = getBits<2, 2>(compSwizzle); - const auto newW = getBits<0, 2>(compSwizzle); - - // If the lane swizzled into the new x component is NOT the current x component, swizzle the correct lane with a mov - // Repeat for each component of the vector - if (newX != 0) { - MOV(dest.Selem()[0], scratch1.Selem()[newX]); - } - - if (newY != 1) { - MOV(dest.Selem()[1], scratch1.Selem()[newY]); - } - - if (newZ != 2) { - MOV(dest.Selem()[2], scratch1.Selem()[newZ]); - } - - if (newW != 3) { - MOV(dest.Selem()[3], scratch1.Selem()[newW]); - } - - break; - } - } - - // Negate the register if necessary - if (negate) { - FNEG(dest.S4(), dest.S4()); - } - return; // Return. Rest of the function handles indexing which is not used if index == 0 - } - - case 1: { - const uintptr_t addrXOffset = uintptr_t(&shader.addrRegister[0]) - uintptr_t(&shader); - LDRSW(X0, statePointer, addrXOffset); // X0 = address register X - break; - } - - case 2: { - const uintptr_t addrYOffset = uintptr_t(&shader.addrRegister[1]) - uintptr_t(&shader); - LDRSW(X0, statePointer, addrYOffset); // X0 = address register Y - break; - } - - case 3: { - const uintptr_t loopCounterOffset = uintptr_t(&shader.loopCounter) - uintptr_t(&shader); - LDR(W0, statePointer, loopCounterOffset); // X0 = loop counter - break; - } - - default: Helpers::panic("[ShaderJIT]: Unimplemented source index type %d", index); - } - - // Swizzle and load register into dest, from [state pointer + X1 + offset] and apply the relevant swizzle. Thrashes X2 - auto swizzleAndLoadReg = [this, &dest, &compSwizzle](size_t offset) { - MOV(X2, offset); - ADD(X1, X1, X2); - LDR(dest, statePointer, X1); - - switch (compSwizzle) { - case noSwizzle: break; // .xyzw - case 0x0: DUP(dest.S4(), dest.Selem()[0]); break; // .xxxx - case 0x55: DUP(dest.S4(), dest.Selem()[1]); break; // .yyyy - case 0xAA: DUP(dest.S4(), dest.Selem()[2]); break; // .zzzz - case 0xFF: - DUP(dest.S4(), dest.Selem()[3]); - break; // .wwww - - // Some of these cases may still be optimizable - default: { - MOV(scratch1.B16(), dest.B16()); // Make a copy of the register - - const auto newX = getBits<6, 2>(compSwizzle); - const auto newY = getBits<4, 2>(compSwizzle); - const auto newZ = getBits<2, 2>(compSwizzle); - const auto newW = getBits<0, 2>(compSwizzle); - - // If the lane swizzled into the new x component is NOT the current x component, swizzle the correct lane with a mov - // Repeat for each component of the vector - if (newX != 0) { - MOV(dest.Selem()[0], scratch1.Selem()[newX]); - } - - if (newY != 1) { - MOV(dest.Selem()[1], scratch1.Selem()[newY]); - } - - if (newZ != 2) { - MOV(dest.Selem()[2], scratch1.Selem()[newZ]); - } - - if (newW != 3) { - MOV(dest.Selem()[3], scratch1.Selem()[newW]); - } - - break; - } - } - }; - - // Here we handle what happens when using indexed addressing & we can't predict what register will be read at compile time - // The index of the access is assumed to be in X0 - // Add source register (src) and index (X0) to form the final register - ADD(X0, X0, src); - - Label maybeTemp, maybeUniform, unknownReg, end; - const uintptr_t inputOffset = uintptr_t(&shader.inputs[0]) - uintptr_t(&shader); - const uintptr_t tempOffset = uintptr_t(&shader.tempRegisters[0]) - uintptr_t(&shader); - const uintptr_t uniformOffset = uintptr_t(&shader.floatUniforms[0]) - uintptr_t(&shader); - - // If reg < 0x10, return inputRegisters[reg] - CMP(X0, 0x10); - B(HS, maybeTemp); - LSL(X1, X0, 4); - swizzleAndLoadReg(inputOffset); - B(end); - - // If (reg < 0x1F) return tempRegisters[reg - 0x10] - l(maybeTemp); - CMP(X0, 0x20); - B(HS, maybeUniform); - SUB(X1, X0, 0x10); - LSL(X1, X1, 4); - swizzleAndLoadReg(tempOffset); - B(end); - - // If (reg < 0x80) return floatUniforms[reg - 0x20] - l(maybeUniform); - CMP(X0, 0x80); - B(HS, unknownReg); - SUB(X1, X0, 0x20); - LSL(X1, X1, 4); - swizzleAndLoadReg(uniformOffset); - B(end); - - l(unknownReg); - MOVI(dest.S4(), 0); // Set dest to 0 if we're reading from a garbage register - - l(end); - // Negate the register if necessary - if (negate) { - FNEG(dest.S4(), dest.S4()); - } -} - -void ShaderEmitter::storeRegister(QReg source, const PICAShader& shader, u32 dest, u32 operandDescriptor) { - const vec4f& destRef = getDestRef(shader, dest); - const uintptr_t offset = uintptr_t(&destRef) - uintptr_t(&shader); // Calculate offset of register from start of the state struct - - // Mask of which lanes to write - u32 writeMask = operandDescriptor & 0xf; - if (writeMask == 0xf) { // No lanes are masked, just use STR - STR(source, statePointer, offset); - } else { - u8* blendMaskPointer = getLabelPointer(blendMasks); - LDR(scratch1, statePointer, offset); // Load current value - LDR(scratch2, blendMaskPointer + writeMask * 16); // Load write mask for blending - - BSL(scratch2.B16(), source.B16(), scratch1.B16()); // Scratch2 = (Source & mask) | (original & ~mask) - STR(scratch2, statePointer, offset); // Write it back - } -} - -void ShaderEmitter::recMOV(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_vec, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recFLR(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_vec, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - FRINTM(src1_vec.S4(), src1_vec.S4()); // Floor it and store into dest - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMOVA(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - - const bool writeX = getBit<3>(operandDescriptor); // Should we write the x component of the address register? - const bool writeY = getBit<2>(operandDescriptor); - - static_assert(sizeof(shader.addrRegister) == 2 * sizeof(s32)); // Assert that the address register is 2 s32s - const uintptr_t addrRegisterOffset = uintptr_t(&shader.addrRegister[0]) - uintptr_t(&shader); - const uintptr_t addrRegisterYOffset = addrRegisterOffset + sizeof(shader.addrRegister[0]); - - // If no register is being written to then it is a nop. Probably not common but whatever - if (!writeX && !writeY) return; - - loadRegister<1>(src1_vec, shader, src, idx, operandDescriptor); - FCVTZS(src1_vec.S4(), src1_vec.S4()); // Convert src1 from floats to s32s with truncation - - // Write both together - if (writeX && writeY) { - STR(src1_vec.toD(), statePointer, addrRegisterOffset); - } else if (writeX) { - STR(src1_vec.toS(), statePointer, addrRegisterOffset); - } else if (writeY) { - MOV(W0, src1_vec.Selem()[1]); // W0 = Y component - STR(W0, statePointer, addrRegisterYOffset); - } -} - -void ShaderEmitter::recDP3(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - const u32 writeMask = getBits<0, 4>(operandDescriptor); - - // TODO: Safe multiplication equivalent (Multiplication is not IEEE compliant on the PICA) - loadRegister<1>(src1_vec, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, 0, operandDescriptor); - // Set W component of src1 to 0.0, so that the w factor of the following dp4 will become 0, making it equivalent to a dp3 - INS(src1_vec.Selem()[3], WZR); - - // Now do a full DP4 - FMUL(src1_vec.S4(), src1_vec.S4(), src2_vec.S4()); // Do a piecewise multiplication of the vectors first - FADDP(src1_vec.S4(), src1_vec.S4(), src1_vec.S4()); // Now add the adjacent components together - FADDP(src1_vec.toS(), src1_vec.toD().S2()); // Again for the bottom 2 lanes. Now the bottom lane contains the dot product - - if (writeMask != 0x8) { // Copy bottom lane to all lanes if we're not simply writing back x - DUP(src1_vec.S4(), src1_vec.Selem()[0]); // src1_vec = src1_vec.xxxx - } - - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recDP4(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - const u32 writeMask = getBits<0, 4>(operandDescriptor); - - // TODO: Safe multiplication equivalent (Multiplication is not IEEE compliant on the PICA) - loadRegister<1>(src1_vec, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, 0, operandDescriptor); - - FMUL(src1_vec.S4(), src1_vec.S4(), src2_vec.S4()); // Do a piecewise multiplication of the vectors first - FADDP(src1_vec.S4(), src1_vec.S4(), src1_vec.S4()); // Now add the adjacent components together - FADDP(src1_vec.toS(), src1_vec.toD().S2()); // Again for the bottom 2 lanes. Now the bottom lane contains the dot product - - if (writeMask != 0x8) { // Copy bottom lane to all lanes if we're not simply writing back x - DUP(src1_vec.S4(), src1_vec.Selem()[0]); // src1_vec = src1_vec.xxxx - } - - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recADD(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_vec, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, 0, operandDescriptor); - FADD(src1_vec.S4(), src1_vec.S4(), src2_vec.S4()); - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMAX(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_vec, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, 0, operandDescriptor); - FMAX(src1_vec.S4(), src1_vec.S4(), src2_vec.S4()); - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMIN(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_vec, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, 0, operandDescriptor); - FMIN(src1_vec.S4(), src1_vec.S4(), src2_vec.S4()); - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMUL(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - // TODO: Safe multiplication equivalent (Multiplication is not IEEE compliant on the PICA) - loadRegister<1>(src1_vec, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, 0, operandDescriptor); - FMUL(src1_vec.S4(), src1_vec.S4(), src2_vec.S4()); - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recRCP(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - const u32 writeMask = operandDescriptor & 0xf; - - loadRegister<1>(src1_vec, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - FDIV(src1_vec.toS(), onesVector.toS(), src1_vec.toS()); // src1 = 1.0 / src1 - - // If we only write back the x component to the result, we needn't perform a shuffle to do res = res.xxxx - // Otherwise we do - if (writeMask != 0x8) { // Copy bottom lane to all lanes if we're not simply writing back x - DUP(src1_vec.S4(), src1_vec.Selem()[0]); // src1_vec = src1_vec.xxxx - } - - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recRSQ(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - const u32 writeMask = operandDescriptor & 0xf; - constexpr bool useAccurateRSQ = true; - - loadRegister<1>(src1_vec, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - - // Compute reciprocal square root approximation - // TODO: Should this use frsqte or fsqrt+div? The former is faster but less accurate - // PICA RSQ uses f24 precision though, so it'll be inherently innacurate, and it's likely using an inaccurate approximation too, seeing as - // It doesn't have regular sqrt/div instructions. - // For now, we default to accurate inverse square root - if constexpr (useAccurateRSQ) { - FSQRT(src1_vec.toS(), src1_vec.toS()); // src1 = sqrt(src1), scalar - FDIV(src1_vec.toS(), onesVector.toS(), src1_vec.toS()); // Now invert src1 - } else { - FRSQRTE(src1_vec.toS(), src1_vec.toS()); // Much nicer - } - - // If we only write back the x component to the result, we needn't perform a shuffle to do res = res.xxxx - // Otherwise we do - if (writeMask != 0x8) { // Copy bottom lane to all lanes if we're not simply writing back x - DUP(src1_vec.S4(), src1_vec.Selem()[0]); // src1_vec = src1_vec.xxxx - } - - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMAD(const PICAShader& shader, u32 instruction) { - const bool isMADI = getBit<29>(instruction) == 0; - - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x1f]; - const u32 src1 = getBits<17, 5>(instruction); - const u32 src2 = isMADI ? getBits<12, 5>(instruction) : getBits<10, 7>(instruction); - const u32 src3 = isMADI ? getBits<5, 7>(instruction) : getBits<5, 5>(instruction); - const u32 idx = getBits<22, 2>(instruction); - const u32 dest = getBits<24, 5>(instruction); - - loadRegister<1>(src1_vec, shader, src1, 0, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, isMADI ? 0 : idx, operandDescriptor); - loadRegister<3>(src3_vec, shader, src3, isMADI ? idx : 0, operandDescriptor); - - // TODO: Safe PICA multiplication - FMLA(src3_vec.S4(), src1_vec.S4(), src2_vec.S4()); - storeRegister(src3_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recSLT(const PICAShader& shader, u32 instruction) { - const bool isSLTI = (instruction >> 26) == ShaderOpcodes::SLTI; - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - - const u32 src1 = isSLTI ? getBits<14, 5>(instruction) : getBits<12, 7>(instruction); - const u32 src2 = isSLTI ? getBits<7, 7>(instruction) : getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_vec, shader, src1, isSLTI ? 0 : idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, isSLTI ? idx : 0, operandDescriptor); - // Set each lane of SRC1 to FFFFFFFF if src2 > src1, else to 0. NEON does not have FCMLT so we use FCMGT with inverted operands - // This is more or less a direct port of the relevant x64 JIT code - FCMGT(src1_vec.S4(), src2_vec.S4(), src1_vec.S4()); - AND(src1_vec.B16(), src1_vec.B16(), onesVector.B16()); // AND with vec4(1.0) to convert the FFFFFFFF lanes into 1.0 - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recSGE(const PICAShader& shader, u32 instruction) { - const bool isSGEI = (instruction >> 26) == ShaderOpcodes::SGEI; - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - - const u32 src1 = isSGEI ? getBits<14, 5>(instruction) : getBits<12, 7>(instruction); - const u32 src2 = isSGEI ? getBits<7, 7>(instruction) : getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_vec, shader, src1, isSGEI ? 0 : idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, isSGEI ? idx : 0, operandDescriptor); - // Set each lane of SRC1 to FFFFFFFF if src1 >= src2, else to 0. - // This is more or less a direct port of the relevant x64 JIT code - FCMGE(src1_vec.S4(), src1_vec.S4(), src2_vec.S4()); - AND(src1_vec.B16(), src1_vec.B16(), onesVector.B16()); // AND with vec4(1.0) to convert the FFFFFFFF lanes into 1.0 - storeRegister(src1_vec, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recCMP(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 cmpY = getBits<21, 3>(instruction); - const u32 cmpX = getBits<24, 3>(instruction); - - loadRegister<1>(src1_vec, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_vec, shader, src2, 0, operandDescriptor); - - // Map from PICA condition codes (used as index) to x86 condition codes - // We treat invalid condition codes as "always" as suggested by 3DBrew - static constexpr std::array conditionCodes = { - oaknut::util::EQ, oaknut::util::NE, oaknut::util::LT, oaknut::util::LE, - oaknut::util::GT, oaknut::util::GE, oaknut::util::AL, oaknut::util::AL, - }; - - static_assert(sizeof(shader.cmpRegister[0]) == 1 && sizeof(shader.cmpRegister) == 2); // The code below relies on bool being 1 byte exactly - const size_t cmpRegXOffset = uintptr_t(&shader.cmpRegister[0]) - uintptr_t(&shader); - - // NEON doesn't have SIMD comparisons to do fun stuff with like on x64 - FCMP(src1_vec.toS(), src2_vec.toS()); - CSET(W0, conditionCodes[cmpX]); - - // Compare Y components, which annoyingly enough can't be done without moving - MOV(scratch1.toS(), src1_vec.Selem()[1]); - MOV(scratch2.toS(), src2_vec.Selem()[1]); - FCMP(scratch1.toS(), scratch2.toS()); - CSET(W1, conditionCodes[cmpY]); - - // Merge the booleans and write them back in one STRh - ORR(W0, W0, W1, LogShift::LSL, 8); - STRH(W0, statePointer, cmpRegXOffset); -} - -void ShaderEmitter::checkBoolUniform(const PICAShader& shader, u32 instruction) { - const u32 bit = getBits<22, 4>(instruction); // Bit of the bool uniform to check - const uintptr_t boolUniformOffset = uintptr_t(&shader.boolUniform) - uintptr_t(&shader); - - LDRH(W0, statePointer, boolUniformOffset); // Load bool uniform into w0 - TST(W0, 1 << bit); // Check if bit is set -} - -void ShaderEmitter::checkCmpRegister(const PICAShader& shader, u32 instruction) { - static_assert(sizeof(bool) == 1 && sizeof(shader.cmpRegister) == 2); // The code below relies on bool being 1 byte exactly - const size_t cmpRegXOffset = uintptr_t(&shader.cmpRegister[0]) - uintptr_t(&shader); - const size_t cmpRegYOffset = cmpRegXOffset + sizeof(bool); - - const u32 condition = getBits<22, 2>(instruction); - const uint refY = getBit<24>(instruction); - const uint refX = getBit<25>(instruction); - - // refX in the bottom byte, refY in the top byte. This is done for condition codes 0 and 1 which check both x and y, so we can emit a single - // instruction that checks both - const u16 refX_refY_merged = refX | (refY << 8); - - switch (condition) { - case 0: // Either cmp register matches - LDRB(W0, statePointer, cmpRegXOffset); - LDRB(W1, statePointer, cmpRegYOffset); - - // Check if x matches refX - CMP(W0, refX); - CSET(W0, EQ); - - // Check if y matches refY - CMP(W1, refY); - CSET(W1, EQ); - - // Set Z to 1 if at least one of them matches - ORR(W0, W0, W1); - CMP(W0, 1); - break; - case 1: // Both cmp registers match - LDRH(W0, statePointer, cmpRegXOffset); - - // If ref fits in 8 bits, use a single CMP, otherwise move into register and then CMP - if (refX_refY_merged <= 0xff) { - CMP(W0, refX_refY_merged); - } else { - MOV(W1, refX_refY_merged); - CMP(W0, W1); - } - break; - case 2: // At least cmp.x matches - LDRB(W0, statePointer, cmpRegXOffset); - CMP(W0, refX); - break; - default: // At least cmp.y matches - LDRB(W0, statePointer, cmpRegYOffset); - CMP(W0, refY); - break; - } -} - -void ShaderEmitter::recCALL(const PICAShader& shader, u32 instruction) { - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - - // Push return PC as stack parameter. This is a decently fast solution and Citra does the same but we should probably switch to a proper PICA-like - // Callstack, because it's not great to have an infinitely expanding call stack - MOV(X0, dest + num); - // Push return PC + current link register so that we'll be able to return later - STP(X0, X30, SP, PRE_INDEXED, -16); - // Call subroutine, Oaknut will update the label if it hasn't been initialized yet - BL(instructionLabels[dest]); - - // Fetch original LR and return. This also restores SP to its original value, discarding the return guard into XZR - LDP(XZR, X30, SP, POST_INDEXED, 16); -} - -void ShaderEmitter::recCALLC(const PICAShader& shader, u32 instruction) { - Label skipCall; - - // z is 1 if the call should be taken, 0 otherwise - checkCmpRegister(shader, instruction); - B(NE, skipCall); - recCALL(shader, instruction); - - l(skipCall); -} - -void ShaderEmitter::recCALLU(const PICAShader& shader, u32 instruction) { - Label skipCall; - - // z is 0 if the call should be taken, 1 otherwise - checkBoolUniform(shader, instruction); - B(EQ, skipCall); - recCALL(shader, instruction); - - l(skipCall); -} - -void ShaderEmitter::recIFC(const PICAShader& shader, u32 instruction) { - // z is 1 if true, else 0 - checkCmpRegister(shader, instruction); - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - - if (dest < recompilerPC) { - Helpers::warn("Shader JIT: IFC instruction with dest < current PC\n"); - } - Label elseBlock, endIf; - - // Jump to else block if z is 0 - B(NE, elseBlock); - compileUntil(shader, dest); - - if (num == 0) { // Else block is empty, - l(elseBlock); - } else { // Else block is NOT empty - B(endIf); // Skip executing the else branch if the if branch was ran - l(elseBlock); - compileUntil(shader, dest + num); - l(endIf); - } -} - -void ShaderEmitter::recIFU(const PICAShader& shader, u32 instruction) { - // z is 0 if true, else 1 - checkBoolUniform(shader, instruction); - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - - if (dest < recompilerPC) { - Helpers::warn("Shader JIT: IFC instruction with dest < current PC\n"); - } - Label elseBlock, endIf; - - // Jump to else block if z is 1 - B(EQ, elseBlock); - compileUntil(shader, dest); - - if (num == 0) { // Else block is empty, - l(elseBlock); - } else { // Else block is NOT empty - B(endIf); // Skip executing the else branch if the if branch was ran - l(elseBlock); - compileUntil(shader, dest + num); - l(endIf); - } -} - -void ShaderEmitter::recJMPC(const PICAShader& shader, u32 instruction) { - const u32 dest = getBits<10, 12>(instruction); - - Label& l = instructionLabels[dest]; - // Z is 1 if the comparison is true - checkCmpRegister(shader, instruction); - B(EQ, l); -} - -void ShaderEmitter::recJMPU(const PICAShader& shader, u32 instruction) { - bool jumpIfFalse = instruction & 1; // If the LSB is 0 we want to compare to true, otherwise compare to false - const u32 dest = getBits<10, 12>(instruction); - - Label& l = instructionLabels[dest]; - // Z is 0 if the uniform is true - checkBoolUniform(shader, instruction); - - if (jumpIfFalse) { - B(EQ, l); - } else { - B(NE, l); - } -} - -void ShaderEmitter::recLOOP(const PICAShader& shader, u32 instruction) { - const u32 dest = getBits<10, 12>(instruction); - const u32 uniformIndex = getBits<22, 2>(instruction); - - if (loopLevel > 0) { - log("[Shader JIT] Detected nested loop. Might be broken?\n"); - } - - if (dest < recompilerPC) { - Helpers::panic("[Shader JIT] Detected backwards loop\n"); - } - - loopLevel++; - - // Offset of the uniform - const auto& uniform = shader.intUniforms[uniformIndex]; - const uintptr_t uniformOffset = uintptr_t(&uniform[0]) - uintptr_t(&shader); - // Offset of the loop register - const uintptr_t loopRegOffset = uintptr_t(&shader.loopCounter) - uintptr_t(&shader); - - LDRB(W0, statePointer, uniformOffset); // W0 = loop iteration count - LDRB(W1, statePointer, uniformOffset + sizeof(u8)); // W1 = initial loop counter value - LDRB(W2, statePointer, uniformOffset + 2 * sizeof(u8)); // W2 = Loop increment - - ADD(W0, W0, 1); // The iteration count is actually uniform.x + 1 - STR(W1, statePointer, loopRegOffset); // Set loop counter - - // Push loop iteration counter & loop increment - // TODO: This might break if an instruction in a loop decides to yield... - STP(X0, X2, SP, PRE_INDEXED, -16); - - Label loopStart, loopEnd; - l(loopStart); - compileUntil(shader, dest + 1); - - const size_t stackOffsetOfLoopIncrement = 0; - const size_t stackOffsetOfIterationCounter = stackOffsetOfLoopIncrement + 8; - - LDP(X0, X2, SP); // W0 = loop iteration, W2 = loop increment - LDR(W1, statePointer, loopRegOffset); // W1 = loop register - - // Increment loop counter - ADD(W1, W1, W2); - STR(W1, statePointer, loopRegOffset); - // Subtract 1 from loop iteration counter, - SUBS(W0, W0, 1); - B(EQ, loopEnd); - - // Loop hasn't ended: Write back new iteration counter and go back to the start - STR(X0, SP); - B(loopStart); - - l(loopEnd); - // Remove the stuff we pushed on the stack earlier - ADD(SP, SP, 16); - loopLevel--; -} - -void ShaderEmitter::recEND(const PICAShader& shader, u32 instruction) { - // Fetch original LR and return. This also restores SP to its original value, discarding the return guard into XZR - LDP(XZR, X30, SP, POST_INDEXED, 16); - RET(); -} - -#endif diff --git a/src/core/PICA/dynapica/shader_rec_emitter_x64.cpp b/src/core/PICA/dynapica/shader_rec_emitter_x64.cpp deleted file mode 100644 index c134b72f..00000000 --- a/src/core/PICA/dynapica/shader_rec_emitter_x64.cpp +++ /dev/null @@ -1,1280 +0,0 @@ -#if defined(PANDA3DS_DYNAPICA_SUPPORTED) && defined(PANDA3DS_X64_HOST) -#include "PICA/dynapica/shader_rec_emitter_x64.hpp" - -#include -#include -#include -#include -#include -#include - -using namespace Xbyak; -using namespace Xbyak::util; -using namespace Helpers; - -// The shader recompiler uses quite an odd internal ABI -// We make use of the fact that in regular conditions, we should pretty much never be calling C++ code from recompiled shader code -// This allows us to establish an ABI that's optimized for this sort of workflow, statically allocating volatile host registers -// To avoid pushing/popping registers, not properly maintaining stack alignment, etc -// This generates faster recompiled code at the cost of being actively hostile against C++ interop -// To do C++ interop, we're going to have our callCppFunc function call the C++ function, and take extreme measures to ensure we don't violate -// The host ABI, such as pushing/popping our temporary registers (derp), force aligning the stack and setting up an entire stack frame, etc -// This is slow, but we do not care as we should never be calling C++ code in normal, non-debugging conditions -// The only code that might be called are helpers that are also written in assembly, for things like log2 - -static constexpr Xmm scratch1 = xmm0; -static constexpr Xmm scratch2 = xmm1; -static constexpr Xmm src1_xmm = xmm2; -static constexpr Xmm src2_xmm = xmm3; -static constexpr Xmm src3_xmm = xmm4; - -#if defined(PANDA3DS_MS_ABI) -// Register that points to PICA state. Must be volatile for the aforementioned reasons -static constexpr Reg64 statePointer = r8; -#elif defined(PANDA3DS_SYSV_ABI) -static constexpr Reg64 statePointer = rdi; -#else -#error Unknown ABI for x86-64 shader JIT -#endif - -void ShaderEmitter::compile(const PICAShader& shaderUnit) { - // Constants - align(16); - L(negateVector); - dd(0x80000000); dd(0x80000000); dd(0x80000000); dd(0x80000000); // -0.0 4 times - L(onesVector); - dd(0x3f800000); dd(0x3f800000); dd(0x3f800000); dd(0x3f800000); // 1.0 4 times - - // Emit prologue first - align(16); - prologueCb = getCurr(); - - // Set state pointer to the proper pointer - // state pointer is volatile, no need to preserve it - mov(statePointer, arg1.cvt64()); - - // Push a return guard on the stack. This happens due to the way we handle the PICA callstack, by pushing the return PC to stack - // By pushing ffff'ffff, we make it impossible for a return check to erroneously pass - push(qword, 0xffffffff); - // Lower rsp by 8 for the PICA return stack to be consistent - sub(rsp, 8); - - // Tail call to shader code entrypoint - jmp(arg2); - - // Scan the code for call, exp2, log2, etc instructions which need some special care - // After that, emit exp2 and log2 functions if the corresponding instructions are present - scanCode(shaderUnit); - if (codeHasExp2) exp2Func = emitExp2Func(); - if (codeHasLog2) log2Func = emitLog2Func(); - - align(16); - // Compile every instruction in the shader - // This sounds horrible but the PICA instruction memory is tiny, and most of the time it's padded wtih nops that compile to nothing - recompilerPC = 0; - loopLevel = 0; - compileUntil(shaderUnit, PICAShader::maxInstructionCount); -} - -void ShaderEmitter::scanCode(const PICAShader& shaderUnit) { - returnPCs.clear(); - - for (u32 i = 0; i < PICAShader::maxInstructionCount; i++) { - const u32 instruction = shaderUnit.loadedShader[i]; - const u32 opcode = instruction >> 26; - - if (isCall(instruction)) { - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - const u32 returnPC = num + dest; // Add them to get the return PC - - returnPCs.push_back(returnPC); - } else if (opcode == ShaderOpcodes::EX2) { - codeHasExp2 = true; - } else if (opcode == ShaderOpcodes::LG2) { - codeHasLog2 = true; - } - } - - // Sort return PCs so they can be binary searched - std::sort(returnPCs.begin(), returnPCs.end()); -} - -void ShaderEmitter::compileUntil(const PICAShader& shaderUnit, u32 end) { - while (recompilerPC < end) { - compileInstruction(shaderUnit); - } -} - -void ShaderEmitter::compileInstruction(const PICAShader& shaderUnit) { - // Write current location to label for this instruction - L(instructionLabels[recompilerPC]); - - // See if PC is a possible return PC and emit the proper code if so - if (std::binary_search(returnPCs.begin(), returnPCs.end(), recompilerPC)) { - constexpr uintptr_t stackOffsetForPC = 8; - - Label end; - // Check if return address == recompilerPC, ie if we should return - cmp(dword[rsp + stackOffsetForPC], recompilerPC); - jne(end); // If not, continue with our lives - ret(); // If yes, return - - L(end); - } - - // Fetch instruction and inc PC - const u32 instruction = shaderUnit.loadedShader[recompilerPC++]; - const u32 opcode = instruction >> 26; - - switch (opcode) { - case ShaderOpcodes::ADD: recADD(shaderUnit, instruction); break; - case ShaderOpcodes::CALL: - recCALL(shaderUnit, instruction); - break; - case ShaderOpcodes::CALLC: - recCALLC(shaderUnit, instruction); - break; - case ShaderOpcodes::CALLU: - recCALLU(shaderUnit, instruction); - break; - case ShaderOpcodes::CMP1: case ShaderOpcodes::CMP2: - recCMP(shaderUnit, instruction); - break; - case ShaderOpcodes::DP3: recDP3(shaderUnit, instruction); break; - case ShaderOpcodes::DP4: recDP4(shaderUnit, instruction); break; - case ShaderOpcodes::DPH: - case ShaderOpcodes::DPHI: - recDPH(shaderUnit, instruction); break; - case ShaderOpcodes::END: recEND(shaderUnit, instruction); break; - case ShaderOpcodes::EX2: recEX2(shaderUnit, instruction); break; - case ShaderOpcodes::FLR: recFLR(shaderUnit, instruction); break; - case ShaderOpcodes::IFC: recIFC(shaderUnit, instruction); break; - case ShaderOpcodes::IFU: recIFU(shaderUnit, instruction); break; - case ShaderOpcodes::JMPC: recJMPC(shaderUnit, instruction); break; - case ShaderOpcodes::JMPU: recJMPU(shaderUnit, instruction); break; - case ShaderOpcodes::LG2: recLG2(shaderUnit, instruction); break; - case ShaderOpcodes::LOOP: recLOOP(shaderUnit, instruction); break; - case ShaderOpcodes::MOV: recMOV(shaderUnit, instruction); break; - case ShaderOpcodes::MOVA: recMOVA(shaderUnit, instruction); break; - case ShaderOpcodes::MAX: recMAX(shaderUnit, instruction); break; - case ShaderOpcodes::MIN: recMIN(shaderUnit, instruction); break; - case ShaderOpcodes::MUL: recMUL(shaderUnit, instruction); break; - case ShaderOpcodes::NOP: break; - case ShaderOpcodes::RCP: recRCP(shaderUnit, instruction); break; - case ShaderOpcodes::RSQ: recRSQ(shaderUnit, instruction); break; - - // Unimplemented opcodes that don't seem to actually be used but exist in the binary - // EMIT/SETEMIT are used in geometry shaders, however are sometimes found in vertex shaders? - case ShaderOpcodes::EMIT: - case ShaderOpcodes::SETEMIT: - log("[ShaderJIT] Unknown PICA opcode: %02X\n", opcode); - emitPrintLog(shaderUnit); - break; - - case ShaderOpcodes::BREAK: - case ShaderOpcodes::BREAKC: Helpers::warn("[Shader JIT] Unimplemented BREAK(C) instruction!"); break; - - // We consider both MAD and MADI to be the same instruction and decode which one we actually have in recMAD - case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: case 0x35: case 0x36: case 0x37: - case 0x38: case 0x39: case 0x3A: case 0x3B: case 0x3C: case 0x3D: case 0x3E: case 0x3F: - recMAD(shaderUnit, instruction); - break; - - case ShaderOpcodes::SLT: - case ShaderOpcodes::SLTI: - recSLT(shaderUnit, instruction); break; - - case ShaderOpcodes::SGE: - case ShaderOpcodes::SGEI: - recSGE(shaderUnit, instruction); break; - - default: - Helpers::panic("Shader JIT: Unimplemented PICA opcode %X", opcode); - } -} - -const ShaderEmitter::vec4f& ShaderEmitter::getSourceRef(const PICAShader& shader, u32 src) { - if (src < 0x10) - return shader.inputs[src]; - else if (src < 0x20) - return shader.tempRegisters[src - 0x10]; - else if (src <= 0x7f) - return shader.floatUniforms[src - 0x20]; - else { - Helpers::warn("[Shader JIT] Unimplemented source value: %X\n", src); - return shader.dummy; - } -} - -const ShaderEmitter::vec4f& ShaderEmitter::getDestRef(const PICAShader& shader, u32 dest) { - if (dest < 0x10) { - return shader.outputs[dest]; - } else if (dest < 0x20) { - return shader.tempRegisters[dest - 0x10]; - } - Helpers::panic("[Shader JIT] Unimplemented dest: %X", dest); -} - -// See shader.hpp header for docs on how the swizzle and negate works -template -void ShaderEmitter::loadRegister(Xmm dest, const PICAShader& shader, u32 src, u32 index, u32 operandDescriptor) { - u32 compSwizzle; // Component swizzle pattern for the register - bool negate; // If true, negate all lanes of the register - - if constexpr (sourceIndex == 1) { // SRC1 - negate = (getBit<4>(operandDescriptor)) != 0; - compSwizzle = getBits<5, 8>(operandDescriptor); - } - else if constexpr (sourceIndex == 2) { // SRC2 - negate = (getBit<13>(operandDescriptor)) != 0; - compSwizzle = getBits<14, 8>(operandDescriptor); - } - else if constexpr (sourceIndex == 3) { // SRC3 - negate = (getBit<22>(operandDescriptor)) != 0; - compSwizzle = getBits<23, 8>(operandDescriptor); - } - - // TODO: Do indexes get applied if src < 0x20? - - // PICA has the swizzle descriptor inverted in comparison to x86. For the PICA, the descriptor is (lowest to highest bits) wzyx while it's xyzw for x86 - u32 convertedSwizzle = ((compSwizzle >> 6) & 0b11) | (((compSwizzle >> 4) & 0b11) << 2) | (((compSwizzle >> 2) & 0b11) << 4) | ((compSwizzle & 0b11) << 6); - - switch (index) { - case 0: [[likely]] { // Keep src as is, no need to offset it - const vec4f& srcRef = getSourceRef(shader, src); - const uintptr_t offset = uintptr_t(&srcRef) - uintptr_t(&shader); // Calculate offset of register from start of the state struct - - if (compSwizzle == noSwizzle) // Avoid emitting swizzle if not necessary - movaps(dest, xword[statePointer + offset]); - else // Swizzle is not trivial so we need to emit a shuffle instruction - pshufd(dest, xword[statePointer + offset], convertedSwizzle); - - // Negate the register if necessary - if (negate) { - pxor(dest, xword[rip + negateVector]); - } - return; // Return. Rest of the function handles indexing which is not used if index == 0 - } - - case 1: { - const uintptr_t addrXOffset = uintptr_t(&shader.addrRegister[0]) - uintptr_t(&shader); - movsxd(rax, dword[statePointer + addrXOffset]); // rax = address register x - break; - } - - case 2: { - const uintptr_t addrYOffset = uintptr_t(&shader.addrRegister[1]) - uintptr_t(&shader); - movsxd(rax, dword[statePointer + addrYOffset]); // rax = address register y - break; - } - - case 3: { - const uintptr_t loopCounterOffset = uintptr_t(&shader.loopCounter) - uintptr_t(&shader); - mov(eax, dword[statePointer + loopCounterOffset]); // rax = loop counter - break; - } - - default: - Helpers::panic("[ShaderJIT]: Unimplemented source index type %d", index); - } - - // Swizzle and load register into dest, from [state pointer + rcx + offset] and apply the relevant swizzle - auto swizzleAndLoadReg = [this, &dest, &compSwizzle, &convertedSwizzle](size_t offset) { - if (compSwizzle == noSwizzle) // Avoid emitting swizzle if not necessary - movaps(dest, xword[statePointer + rcx + offset]); - else // Swizzle is not trivial so we need to emit a shuffle instruction - pshufd(dest, xword[statePointer + rcx + offset], convertedSwizzle); - }; - - // Here we handle what happens when using indexed addressing & we can't predict what register will be read at compile time - // The index of the access is assumed to be in rax - // Add source register (src) and index (rax) to form the final register - add(rax, src); - - Label maybeTemp, maybeUniform, unknownReg, end; - const uintptr_t inputOffset = uintptr_t(&shader.inputs[0]) - uintptr_t(&shader); - const uintptr_t tempOffset = uintptr_t(&shader.tempRegisters[0]) - uintptr_t(&shader); - const uintptr_t uniformOffset = uintptr_t(&shader.floatUniforms[0]) - uintptr_t(&shader); - - // If reg < 0x10, return inputRegisters[reg] - cmp(rax, 0x10); - jae(maybeTemp); - mov(rcx, rax); - shl(rcx, 4); // rcx = rax * sizeof(vec4 of floats) = rax * 16 - swizzleAndLoadReg(inputOffset); - jmp(end); - - // If (reg < 0x1F) return tempRegisters[reg - 0x10] - L(maybeTemp); - cmp(rax, 0x20); - jae(maybeUniform); - lea(rcx, qword[rax - 0x10]); - shl(rcx, 4); - swizzleAndLoadReg(tempOffset); - jmp(end); - - // If (reg < 0x80) return floatUniforms[reg - 0x20] - L(maybeUniform); - cmp(rax, 0x80); - jae(unknownReg); - lea(rcx, qword[rax - 0x20]); - shl(rcx, 4); - swizzleAndLoadReg(uniformOffset); - jmp(end); - - L(unknownReg); - pxor(dest, dest); // Set dest to 0 if we're reading from a garbage register - - L(end); - // Negate the register if necessary - if (negate) { - pxor(dest, xword[rip + negateVector]); - } -} - -void ShaderEmitter::storeRegister(Xmm source, const PICAShader& shader, u32 dest, u32 operandDescriptor) { - const vec4f& destRef = getDestRef(shader, dest); - const uintptr_t offset = uintptr_t(&destRef) - uintptr_t(&shader); // Calculate offset of register from start of the state struct - - // Mask of which lanes to write - u32 writeMask = operandDescriptor & 0xf; - if (writeMask == 0xf) { // No lanes are masked, just movaps - movaps(xword[statePointer + offset], source); - } else if (std::popcount(writeMask) == 1) { // Only 1 register needs to be written back. This can be done with a simple shift right + movss - int bit = std::countr_zero(writeMask); // Get which PICA register needs to be written to (0 = w, 1 = z, etc) - size_t index = 3 - bit; - const uintptr_t laneOffset = offset + index * sizeof(float); - - if (index == 0) { // Bottom lane, no need to shift - movss(dword[statePointer + laneOffset], source); - } else { // Shift right by 32 * index, then write bottom lane - if (haveAVX) { - vpsrldq(scratch1, source, index * sizeof(float)); - } else { - movaps(scratch1, source); - psrldq(scratch1, index * sizeof(float)); - } - movss(dword[statePointer + laneOffset], scratch1); - } - } else if (haveSSE4_1) { - // Bit reverse the write mask because that is what blendps expects - u32 adjustedMask = ((writeMask >> 3) & 0b1) | ((writeMask >> 1) & 0b10) | ((writeMask << 1) & 0b100) | ((writeMask << 3) & 0b1000); - // Don't accidentally overwrite scratch1 if that is what we're writing derp - Xmm temp = (source == scratch1) ? scratch2 : scratch1; - - movaps(temp, xword[statePointer + offset]); // Read current value of dest - blendps(temp, source, adjustedMask); // Blend with source - movaps(xword[statePointer + offset], temp); // Write back - } else { - // Blend algo referenced from Citra - const u8 selector = (((writeMask & 0b1000) ? 1 : 0) << 0) | - (((writeMask & 0b0100) ? 3 : 2) << 2) | - (((writeMask & 0b0010) ? 0 : 1) << 4) | - (((writeMask & 0b0001) ? 2 : 3) << 6); - - // Reorder instructions based on whether the source == scratch1. This is to avoid overwriting scratch1 if it's the source, - // While also having the memory load come first to mitigate execution hazards and give the load more time to complete before reading if possible - if (source != scratch1) { - movaps(scratch1, xword[statePointer + offset]); - movaps(scratch2, source); - } else { - movaps(scratch2, source); - movaps(scratch1, xword[statePointer + offset]); - } - - unpckhps(scratch2, scratch1); // Unpack X/Y components of source and destination - unpcklps(scratch1, source); // Unpack Z/W components of source and destination - shufps(scratch1, scratch2, selector); // "merge-shuffle" dest and source using selecto - movaps(xword[statePointer + offset], scratch1); // Write back - } -} - -void ShaderEmitter::checkCmpRegister(const PICAShader& shader, u32 instruction) { - static_assert(sizeof(bool) == 1 && sizeof(shader.cmpRegister) == 2); // The code below relies on bool being 1 byte exactly - const size_t cmpRegXOffset = uintptr_t(&shader.cmpRegister[0]) - uintptr_t(&shader); - const size_t cmpRegYOffset = cmpRegXOffset + sizeof(bool); - - const u32 condition = getBits<22, 2>(instruction); - const uint refY = getBit<24>(instruction); - const uint refX = getBit<25>(instruction); - - // refX in the bottom byte, refY in the top byte. This is done for condition codes 0 and 1 which check both x and y, so we can emit a single instruction that checks both - const u16 refX_refY_merged = refX | (refY << 8); - - switch (condition) { - case 0: // Either cmp register matches - // Z flag is 0 if at least 1 of them is set - - // Check if X matches - cmp(byte[statePointer + cmpRegXOffset], refX); - sete(al); - - // Or if Y matches - cmp(byte[statePointer + cmpRegYOffset], refY); - sete(cl); - or_(al, cl); - - // If either of them matches, set Z to 1, else set it to 0 - xor_(al, 1); - break; - case 1: // Both cmp registers match - cmp(word[statePointer + cmpRegXOffset], refX_refY_merged); - break; - case 2: // At least cmp.x matches - cmp(byte[statePointer + cmpRegXOffset], refX); - break; - default: // At least cmp.y matches - cmp(byte[statePointer + cmpRegYOffset], refY); - break; - } -} - -void ShaderEmitter::checkBoolUniform(const PICAShader& shader, u32 instruction) { - const u32 bit = getBits<22, 4>(instruction); // Bit of the bool uniform to check - const uintptr_t boolUniformOffset = uintptr_t(&shader.boolUniform) - uintptr_t(&shader); - - test(word[statePointer + boolUniformOffset], 1 << bit); -} - -void ShaderEmitter::recEND(const PICAShader& shader, u32 instruction) { - // Undo anything the prologue did and return - // Deallocate the 8 bytes taken up for the return guard + the 8 bytes of rsp padding we inserted in the prologue - add(rsp, 16); - ret(); -} - -void ShaderEmitter::recMOV(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_xmm, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recFLR(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_xmm, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - if (haveSSE4_1) { - roundps(src1_xmm, src1_xmm, _MM_FROUND_FLOOR); - } else { - cvttps2dq(src1_xmm, src1_xmm); // Truncate and convert to integer - cvtdq2ps(src1_xmm, src1_xmm); // Convert from integer back to float - } - - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMOVA(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - - const bool writeX = getBit<3>(operandDescriptor); // Should we write the x component of the address register? - const bool writeY = getBit<2>(operandDescriptor); - - static_assert(sizeof(shader.addrRegister) == 2 * sizeof(s32)); // Assert that the address register is 2 s32s - const uintptr_t addrRegisterOffset = uintptr_t(&shader.addrRegister[0]) - uintptr_t(&shader); - const uintptr_t addrRegisterYOffset = addrRegisterOffset + sizeof(shader.addrRegister[0]); - - // If no register is being written to then it is a nop. Probably not common but whatever - if (!writeX && !writeY) return; - loadRegister<1>(src1_xmm, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - - // Write both - if (writeX && writeY) { - cvttps2dq(scratch1, src1_xmm); // Convert all lanes of src1 with truncation - movsd(qword[statePointer + addrRegisterOffset], scratch1); // Write back bottom 2 to addr register x and ys - } - else if (writeX) { - cvttss2si(eax, src1_xmm); // Convert bottom lane - mov(dword[statePointer + addrRegisterOffset], eax); // Write it back - } - else if (writeY) { - psrldq(src1_xmm, sizeof(float)); // Shift y component to bottom lane - cvttss2si(eax, src1_xmm); // Convert bottom lane - mov(dword[statePointer + addrRegisterYOffset], eax); // Write it back to y component - } -} - -void ShaderEmitter::recADD(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_xmm, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, 0, operandDescriptor); - addps(src1_xmm, src2_xmm); // Dot product between the 2 register - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recDP3(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - // TODO: Safe multiplication equivalent (Multiplication is not IEEE compliant on the PICA) - loadRegister<1>(src1_xmm, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, 0, operandDescriptor); - dpps(src1_xmm, src2_xmm, 0b01111111); // 3-lane dot product between the 2 registers, store the result in all lanes of scratch1 similarly to PICA - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recDP4(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - // TODO: Safe multiplication equivalent (Multiplication is not IEEE compliant on the PICA) - loadRegister<1>(src1_xmm, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, 0, operandDescriptor); - dpps(src1_xmm, src2_xmm, 0b11111111); // 4-lane dot product between the 2 registers, store the result in all lanes of scratch1 similarly to PICA - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recDPH(const PICAShader& shader, u32 instruction) { - const bool isDPHI = (instruction >> 26) == ShaderOpcodes::DPHI; - - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = isDPHI ? getBits<14, 5>(instruction) : getBits<12, 7>(instruction); - const u32 src2 = isDPHI ? getBits<7, 7>(instruction) : getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - // TODO: Safe multiplication equivalent (Multiplication is not IEEE compliant on the PICA) - loadRegister<1>(src1_xmm, shader, src1, isDPHI ? 0 : idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, isDPHI ? idx : 0, operandDescriptor); - - // Attach 1.0 to the w component of src1 - if (haveSSE4_1) { - blendps(src1_xmm, xword[rip + onesVector], 0b1000); - } else { - movaps(scratch1, src1_xmm); - unpckhps(scratch1, xword[rip + onesVector]); - unpcklpd(src1_xmm, scratch1); - } - - dpps(src1_xmm, src2_xmm, 0b11111111); // 4-lane dot product between the 2 registers, store the result in all lanes of scratch1 similarly to PICA - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMAX(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_xmm, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, 0, operandDescriptor); - maxps(src1_xmm, src2_xmm); - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMIN(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_xmm, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, 0, operandDescriptor); - minps(src1_xmm, src2_xmm); - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMUL(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - // TODO: Safe multiplication equivalent (Multiplication is not IEEE compliant on the PICA) - loadRegister<1>(src1_xmm, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, 0, operandDescriptor); - mulps(src1_xmm, src2_xmm); - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recRCP(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - const u32 writeMask = operandDescriptor & 0xf; - - loadRegister<1>(src1_xmm, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - rcpss(src1_xmm, src1_xmm); // Compute rcp approximation - - // If we only write back the x component to the result, we needn't perform a shuffle to do res = res.xxxx - // Otherwise we do - if (writeMask != 0x8) {// Copy bottom lane to all lanes if we're not simply writing back x - shufps(src1_xmm, src1_xmm, 0); // src1_xmm = src1_xmm.xxxx - } - - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recRSQ(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - const u32 writeMask = operandDescriptor & 0xf; - - loadRegister<1>(src1_xmm, shader, src, idx, operandDescriptor); // Load source 1 into scratch1 - rsqrtss(src1_xmm, src1_xmm); // Compute rsqrt approximation - - // If we only write back the x component to the result, we needn't perform a shuffle to do res = res.xxxx - // Otherwise we do - if (writeMask != 0x8) {// Copy bottom lane to all lanes if we're not simply writing back x - shufps(src1_xmm, src1_xmm, 0); // src1_xmm = src1_xmm.xxxx - } - - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recMAD(const PICAShader& shader, u32 instruction) { - const bool isMADI = getBit<29>(instruction) == 0; - - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x1f]; - const u32 src1 = getBits<17, 5>(instruction); - const u32 src2 = isMADI ? getBits<12, 5>(instruction) : getBits<10, 7>(instruction); - const u32 src3 = isMADI ? getBits<5, 7>(instruction) : getBits<5, 5>(instruction); - const u32 idx = getBits<22, 2>(instruction); - const u32 dest = getBits<24, 5>(instruction); - - loadRegister<1>(src1_xmm, shader, src1, 0, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, isMADI ? 0 : idx, operandDescriptor); - loadRegister<3>(src3_xmm, shader, src3, isMADI ? idx : 0, operandDescriptor); - - // TODO: Implement safe PICA mul - // If we have FMA3, optimize MAD to use FMA - if (haveFMA3) { - vfmadd213ps(src1_xmm, src2_xmm, src3_xmm); - storeRegister(src1_xmm, shader, dest, operandDescriptor); - } - - // If we don't have FMA3, do a multiplication and addition - else { - // Multiply src1 * src2 - if (haveAVX) { - vmulps(scratch1, src1_xmm, src2_xmm); - } else { - movaps(scratch1, src1_xmm); - mulps(scratch1, src2_xmm); - } - - // Add src3 - addps(scratch1, src3_xmm); - storeRegister(scratch1, shader, dest, operandDescriptor); - } -} - -void ShaderEmitter::recSLT(const PICAShader& shader, u32 instruction) { - const bool isSLTI = (instruction >> 26) == ShaderOpcodes::SLTI; - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - - const u32 src1 = isSLTI ? getBits<14, 5>(instruction) : getBits<12, 7>(instruction); - const u32 src2 = isSLTI ? getBits<7, 7>(instruction) : getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_xmm, shader, src1, isSLTI ? 0 : idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, isSLTI ? idx : 0, operandDescriptor); - cmpltps(src1_xmm, src2_xmm); - andps(src1_xmm, xword[rip + onesVector]); - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recSGE(const PICAShader& shader, u32 instruction) { - const bool isSGEI = (instruction >> 26) == ShaderOpcodes::SGEI; - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - - const u32 src1 = isSGEI ? getBits<14, 5>(instruction) : getBits<12, 7>(instruction); - const u32 src2 = isSGEI ? getBits<7, 7>(instruction) : getBits<7, 5>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - loadRegister<1>(src1_xmm, shader, src1, isSGEI ? 0 : idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, isSGEI ? idx : 0, operandDescriptor); - - // SSE does not have a cmpgeps instruction so we turn src1 >= src2 to src2 <= src1, result in src2 - cmpleps(src2_xmm, src1_xmm); - andps(src2_xmm, xword[rip + onesVector]); - storeRegister(src2_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recCMP(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 cmpY = getBits<21, 3>(instruction); - const u32 cmpX = getBits<24, 3>(instruction); - - loadRegister<1>(src1_xmm, shader, src1, idx, operandDescriptor); - loadRegister<2>(src2_xmm, shader, src2, 0, operandDescriptor); - - // Condition codes for cmpps - enum : u8 { - CMP_EQ = 0, - CMP_LT = 1, - CMP_LE = 2, - CMP_UNORD = 3, - CMP_NEQ = 4, - CMP_NLT = 5, - CMP_NLE = 6, - CMP_ORD = 7, - CMP_TRUE = 15 - }; - - // Map from PICA condition codes (used as index) to x86 condition codes - static constexpr std::array conditionCodes = { CMP_EQ, CMP_NEQ, CMP_LT, CMP_LE, CMP_LT, CMP_LE, CMP_TRUE, CMP_TRUE }; - - // SSE does not offer GT or GE comparisons in the cmpps instruction, so we need to flip the left and right operands in that case and use LT/LE - const bool invertX = (cmpX == 4 || cmpX == 5); - const bool invertY = (cmpY == 4 || cmpY == 5); - Xmm lhs_x = invertX ? src2_xmm : src1_xmm; - Xmm rhs_x = invertX ? src1_xmm : src2_xmm; - Xmm lhs_y = invertY ? src2_xmm : src1_xmm; - Xmm rhs_y = invertY ? src1_xmm : src2_xmm; - - const u8 compareFuncX = conditionCodes[cmpX]; - const u8 compareFuncY = conditionCodes[cmpY]; - - static_assert(sizeof(shader.cmpRegister[0]) == 1 && sizeof(shader.cmpRegister) == 2); // The code below relies on bool being 1 byte exactly - const size_t cmpRegXOffset = uintptr_t(&shader.cmpRegister[0]) - uintptr_t(&shader); - const size_t cmpRegYOffset = cmpRegXOffset + sizeof(bool); - - // Cmp x and y are the same compare function, we can use a single cmp instruction - if (cmpX == cmpY) { - cmpps(lhs_x, rhs_x, compareFuncX); - movq(rax, lhs_x); // Move both comparison results to rax - test(eax, eax); // Check bottom 32 bits first - setne(byte[statePointer + cmpRegXOffset]); // set cmp.x - - shr(rax, 32); // Check top 32 bits (shr will set the zero flag properly) - setne(byte[statePointer + cmpRegYOffset]); // set cmp.y - } else { - if (haveAVX) { - vcmpps(scratch1, lhs_x, rhs_x, compareFuncX); // Perform comparison for X component and store result in scratch1 - vcmpps(scratch2, lhs_y, rhs_y, compareFuncY); // Perform comparison for Y component and store result in scratch2 - } else { - movaps(scratch1, lhs_x); // Copy the left hand operands to temp registers - movaps(scratch2, lhs_y); - - cmpps(scratch1, rhs_x, compareFuncX); // Perform the compares - cmpps(scratch2, rhs_y, compareFuncY); - } - - movd(eax, scratch1); // Move results to eax for X and edx for Y - movq(rdx, scratch2); - - test(eax, eax); // Write back results with setne - setne(byte[statePointer + cmpRegXOffset]); - shr(rdx, 32); // We want the y component for the second comparison. This shift will set zero flag to 0 if the comparison is true - setne(byte[statePointer + cmpRegYOffset]); - } -} - -void ShaderEmitter::recIFC(const PICAShader& shader, u32 instruction) { - // z is 1 if true, else 0 - checkCmpRegister(shader, instruction); - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - - if (dest < recompilerPC) { - Helpers::warn("Shader JIT: IFC instruction with dest < current PC\n"); - } - Label elseBlock, endIf; - - // Jump to else block if z is 0 - jnz(elseBlock, T_NEAR); - compileUntil(shader, dest); - - if (num == 0) { // Else block is empty, - L(elseBlock); - } else { // Else block is NOT empty - jmp(endIf, T_NEAR); // Skip executing the else branch if the if branch was ran - L(elseBlock); - compileUntil(shader, dest + num); - L(endIf); - } -} - -void ShaderEmitter::recIFU(const PICAShader& shader, u32 instruction) { - // z is 0 if true, else 1 - checkBoolUniform(shader, instruction); - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - - if (dest < recompilerPC) { - Helpers::warn("Shader JIT: IFC instruction with dest < current PC\n"); - } - Label elseBlock, endIf; - - // Jump to else block if z is 1 - jz(elseBlock, T_NEAR); - compileUntil(shader, dest); - - if (num == 0) { // Else block is empty, - L(elseBlock); - } else { // Else block is NOT empty - jmp(endIf, T_NEAR); // Skip executing the else branch if the if branch was ran - L(elseBlock); - compileUntil(shader, dest + num); - L(endIf); - } -} - -void ShaderEmitter::recCALL(const PICAShader& shader, u32 instruction) { - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - - // Push return PC as stack parameter. This is a decently fast solution and Citra does the same but we should probably switch to a proper PICA-like - // Callstack, because it's not great to have an infinitely expanding call stack where popping from empty stack is undefined - push(qword, dest + num); - // Call subroutine, Xbyak will update the label if it hasn't been initialized yet - call(instructionLabels[dest]); - - // Fix up stack after returning by adding 8 to rsp and "popping" the return PC - add(rsp, 8); -} - -void ShaderEmitter::recCALLC(const PICAShader& shader, u32 instruction) { - Label skipCall; - - // z is 1 if the call should be taken, 0 otherwise - checkCmpRegister(shader, instruction); - jnz(skipCall); - recCALL(shader, instruction); - - L(skipCall); -} - -void ShaderEmitter::recCALLU(const PICAShader& shader, u32 instruction) { - Label skipCall; - - // z is 0 if the call should be taken, 1 otherwise - checkBoolUniform(shader, instruction); - jz(skipCall); - recCALL(shader, instruction); - - L(skipCall); -} - -void ShaderEmitter::recJMPC(const PICAShader& shader, u32 instruction) { - const u32 dest = getBits<10, 12>(instruction); - - Label& l = instructionLabels[dest]; - // Z is 1 if the comparison is true - checkCmpRegister(shader, instruction); - jz(l, T_NEAR); -} - -void ShaderEmitter::recJMPU(const PICAShader& shader, u32 instruction) { - bool jumpIfFalse = instruction & 1; // If the LSB is 0 we want to compare to true, otherwise compare to false - const u32 dest = getBits<10, 12>(instruction); - - Label& l = instructionLabels[dest]; - // Z is 0 if the uniform is true - checkBoolUniform(shader, instruction); - - if (jumpIfFalse) { - jz(l, T_NEAR); - } else { - jnz(l, T_NEAR); - } -} - -void ShaderEmitter::recLOOP(const PICAShader& shader, u32 instruction) { - const u32 dest = getBits<10, 12>(instruction); - const u32 uniformIndex = getBits<22, 2>(instruction); - - if (loopLevel > 0) { - log("[Shader JIT] Detected nested loop. Might be broken?\n"); - } - - if (dest < recompilerPC) { - Helpers::panic("[Shader JIT] Detected backwards loop\n"); - } - - loopLevel++; - - // Offset of the uniform - const auto& uniform = shader.intUniforms[uniformIndex]; - const uintptr_t uniformOffset = uintptr_t(&uniform[0]) - uintptr_t(&shader); - // Offset of the loop register - const uintptr_t loopRegOffset = uintptr_t(&shader.loopCounter) - uintptr_t(&shader); - - movzx(eax, byte[statePointer + uniformOffset]); // eax = loop iteration count - movzx(ecx, byte[statePointer + uniformOffset + sizeof(u8)]); // ecx = initial loop counter value - movzx(edx, byte[statePointer + uniformOffset + 2 * sizeof(u8)]); // edx = loop increment - - add(eax, 1); // The iteration count is actually uniform.x + 1 - mov(dword[statePointer + loopRegOffset], ecx); // Set loop counter - - // TODO: This might break if an instruction in a loop decides to yield... - push(rax); // Push loop iteration counter - push(rdx); // Push loop increment - - Label loopStart; - L(loopStart); - compileUntil(shader, dest + 1); - - const size_t stackOffsetOfLoopIncrement = 0; - const size_t stackOffsetOfIterationCounter = stackOffsetOfLoopIncrement + 8; - - mov(ecx, dword[rsp + stackOffsetOfLoopIncrement]); // ecx = Loop increment - add(dword[statePointer + loopRegOffset], ecx); // Increment loop counter - sub(dword[rsp + stackOffsetOfIterationCounter], 1); // Subtract 1 from loop iteration counter - - jnz(loopStart); // Back to loop start if not over - add(rsp, 16); - loopLevel--; -} - -void ShaderEmitter::recLG2(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - const u32 writeMask = getBits<0, 4>(operandDescriptor); - - loadRegister<1>(src1_xmm, shader, src, idx, operandDescriptor); - call(log2Func); // Result is output in src1_xmm - - if (writeMask != 0x8) { // Copy bottom lane to all lanes if we're not simply writing back x - shufps(src1_xmm, src1_xmm, 0); // src1_xmm = src1_xmm.xxxx - } - - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::recEX2(const PICAShader& shader, u32 instruction) { - const u32 operandDescriptor = shader.operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - const u32 writeMask = getBits<0, 4>(operandDescriptor); - - loadRegister<1>(src1_xmm, shader, src, idx, operandDescriptor); - call(exp2Func); // Result is output in src1_xmm - - if (writeMask != 0x8) { // Copy bottom lane to all lanes if we're not simply writing back x - shufps(src1_xmm, src1_xmm, 0); // src1_xmm = src1_xmm.xxxx - } - - storeRegister(src1_xmm, shader, dest, operandDescriptor); -} - -void ShaderEmitter::printLog(const PICAShader& shaderUnit) { - printf("PC: %04X\n", shaderUnit.pc); - - for (int i = 0; i < shaderUnit.tempRegisters.size(); i++) { - const auto& r = shaderUnit.tempRegisters[i]; - printf("t%d: (%.2f, %.2f, %.2f, %.2f)\n", i, r[0].toFloat64(), r[1].toFloat64(), r[2].toFloat64(), r[3].toFloat64()); - } - - for (int i = 0; i < shaderUnit.outputs.size(); i++) { - const auto& r = shaderUnit.outputs[i]; - printf("o%d: (%.2f, %.2f, %.2f, %.2f)\n", i, r[0].toFloat64(), r[1].toFloat64(), r[2].toFloat64(), r[3].toFloat64()); - } - - printf("addr: (%d, %d)\n", shaderUnit.addrRegister[0], shaderUnit.addrRegister[1]); - printf("cmp: (%d, %d)\n", shaderUnit.cmpRegister[0], shaderUnit.cmpRegister[1]); -} - -// For EXP2/LOG2, we have permission to adjust and relicense the SSE implementation from Citra for this project from the original authors -// So we do it since EXP2/LOG2 are pretty terrible to implement. -// ABI: Input is in the bottom bits of src1_xmm, same for output. If the result needs swizzling, the caller must handle it -// Assume src1, src2, scratch1, scratch2, eax, edx all thrashed - -Xbyak::Label ShaderEmitter::emitLog2Func() { - Xbyak::Label subroutine; - - // This code uses the fact that log2(float) = log2(2^exponent * mantissa) - // = log2(2^exponent) + log2(mantissa) = exponent + log2(mantissa) where mantissa has a limited range of values - // https://stackoverflow.com/a/45787548 - - // SSE does not have a log instruction, thus we must approximate. - // We perform this approximation first performing a range reduction into the range [1.0, 2.0). - // A minimax polynomial which was fit for the function log2(x) / (x - 1) is then evaluated. - // We multiply the result by (x - 1) then restore the result into the appropriate range. - - // Coefficients for the minimax polynomial. - // f(x) computes approximately log2(x) / (x - 1). - // f(x) = c4 + x * (c3 + x * (c2 + x * (c1 + x * c0)). - // We align the table of coefficients to 64 bytes, so that the whole thing will fit in 1 cache line - align(64); - const void* c0 = getCurr(); - dd(0x3d74552f); - const void* c1 = getCurr(); - dd(0xbeee7397); - const void* c2 = getCurr(); - dd(0x3fbd96dd); - const void* c3 = getCurr(); - dd(0xc02153f6); - const void* c4 = getCurr(); - dd(0x4038d96c); - - align(16); - const void* negative_infinity_vector = getCurr(); - dd(0xff800000); - dd(0xff800000); - dd(0xff800000); - dd(0xff800000); - const void* default_qnan_vector = getCurr(); - dd(0x7fc00000); - dd(0x7fc00000); - dd(0x7fc00000); - dd(0x7fc00000); - - Xbyak::Label inputIsNan, inputIsZero, inputOutOfRange; - - align(16); - L(inputOutOfRange); - je(inputIsZero); - movaps(src1_xmm, xword[rip + default_qnan_vector]); - ret(); - L(inputIsZero); - movaps(src1_xmm, xword[rip + negative_infinity_vector]); - ret(); - - align(16); - L(subroutine); - - // Here we handle edge cases: input in {NaN, 0, -Inf, Negative}. - xorps(scratch1, scratch1); - ucomiss(scratch1, src1_xmm); - jp(inputIsNan); - jae(inputOutOfRange); - - // Split input: SRC1=MANT[1,2) SCRATCH2=Exponent - if (cpuCaps.has(Cpu::tAVX512F | Cpu::tAVX512VL)) { - vgetexpss(scratch2, src1_xmm, src1_xmm); - vgetmantss(src1_xmm, src1_xmm, src1_xmm, 0); - } else { - movd(eax, src1_xmm); - mov(edx, eax); - and_(eax, 0x7f800000); - and_(edx, 0x007fffff); - or_(edx, 0x3f800000); - movd(src1_xmm, edx); - // SRC1 now contains the mantissa of the input. - shr(eax, 23); - sub(eax, 0x7f); - cvtsi2ss(scratch2, eax); - // scratch2 now contains the exponent of the input. - } - - movss(scratch1, xword[rip + c0]); - - // Complete computation of polynomial - if (haveFMA3) { - vfmadd213ss(scratch1, src1_xmm, xword[rip + c1]); - vfmadd213ss(scratch1, src1_xmm, xword[rip + c2]); - vfmadd213ss(scratch1, src1_xmm, xword[rip + c3]); - vfmadd213ss(scratch1, src1_xmm, xword[rip + c4]); - subss(src1_xmm, dword[rip + onesVector]); - vfmadd231ss(scratch2, scratch1, src1_xmm); - } else { - mulss(scratch1, src1_xmm); - addss(scratch1, xword[rip + c1]); - mulss(scratch1, src1_xmm); - addss(scratch1, xword[rip + c2]); - mulss(scratch1, src1_xmm); - addss(scratch1, xword[rip + c3]); - mulss(scratch1, src1_xmm); - subss(src1_xmm, dword[rip + onesVector]); - addss(scratch1, xword[rip + c4]); - mulss(scratch1, src1_xmm); - addss(scratch2, scratch1); - } - - xorps(src1_xmm, src1_xmm); // break dependency chain - movss(src1_xmm, scratch2); - L(inputIsNan); - - ret(); - return subroutine; -} - -Xbyak::Label ShaderEmitter::emitExp2Func() { - Xbyak::Label subroutine; - - // SSE does not have a exp instruction, thus we must approximate. - // We perform this approximation first performaing a range reduction into the range [-0.5, 0.5). - // A minimax polynomial which was fit for the function exp2(x) is then evaluated. - // We then restore the result into the appropriate range. - - // Similarly to log2, we align our literal pool to 64 bytes to make sure the whole thing fits in 1 cache line - align(64); - const void* input_max = getCurr(); - dd(0x43010000); - const void* input_min = getCurr(); - dd(0xc2fdffff); - const void* c0 = getCurr(); - dd(0x3c5dbe69); - const void* half = getCurr(); - dd(0x3f000000); - const void* c1 = getCurr(); - dd(0x3d5509f9); - const void* c2 = getCurr(); - dd(0x3e773cc5); - const void* c3 = getCurr(); - dd(0x3f3168b3); - const void* c4 = getCurr(); - dd(0x3f800016); - - Xbyak::Label retLabel; - - align(16); - L(subroutine); - - // Handle edge cases - ucomiss(src1_xmm, src1_xmm); - jp(retLabel); - - // Decompose input: - // SCRATCH=2^round(input) - // SRC1=input-round(input) [-0.5, 0.5) - if (cpuCaps.has(Cpu::tAVX512F | Cpu::tAVX512VL)) { - // Cheat a bit and store ones in src2 since the register is unused - vmovaps(src2_xmm, xword[rip + onesVector]); - // input - 0.5 - vsubss(scratch1, src1_xmm, xword[rip + half]); - - // trunc(input - 0.5) - vrndscaless(scratch2, scratch1, scratch1, _MM_FROUND_TRUNC); - - // SCRATCH = 1 * 2^(trunc(input - 0.5)) - vscalefss(scratch1, src2_xmm, scratch2); - - // SRC1 = input-trunc(input - 0.5) - vsubss(src1_xmm, src1_xmm, scratch2); - } else { - // Clamp to maximum range since we shift the value directly into the exponent. - minss(src1_xmm, xword[rip + input_max]); - maxss(src1_xmm, xword[rip + input_min]); - - if (cpuCaps.has(Cpu::tAVX)) { - vsubss(scratch1, src1_xmm, xword[rip + half]); - } else { - movss(scratch1, src1_xmm); - subss(scratch1, xword[rip + half]); - } - - if (cpuCaps.has(Cpu::tSSE41)) { - roundss(scratch1, scratch1, _MM_FROUND_TRUNC); - cvtss2si(eax, scratch1); - } else { - cvtss2si(eax, scratch1); - cvtsi2ss(scratch1, eax); - } - // SCRATCH now contains input rounded to the nearest integer. - add(eax, 0x7f); - subss(src1_xmm, scratch1); - // SRC1 contains input - round(input), which is in [-0.5, 0.5). - shl(eax, 23); - movd(scratch1, eax); - // SCRATCH contains 2^(round(input)). - } - - // Complete computation of polynomial. - movss(scratch2, xword[rip + c0]); - - if (haveFMA3) { - vfmadd213ss(scratch2, src1_xmm, xword[rip + c1]); - vfmadd213ss(scratch2, src1_xmm, xword[rip + c2]); - vfmadd213ss(scratch2, src1_xmm, xword[rip + c3]); - vfmadd213ss(src1_xmm, scratch2, xword[rip + c4]); - } else { - mulss(scratch2, src1_xmm); - addss(scratch2, xword[rip + c1]); - mulss(scratch2, src1_xmm); - addss(scratch2, xword[rip + c2]); - mulss(scratch2, src1_xmm); - addss(scratch2, xword[rip + c3]); - mulss(src1_xmm, scratch2); - addss(src1_xmm, xword[rip + c4]); - } - - mulss(src1_xmm, scratch1); - L(retLabel); - - ret(); - return subroutine; -} - -// As we mentioned above, this function is uber slow because we don't expect the shader JIT to call HLL functions in real scenarios -// Aside from debugging code. So we don't care for this function to be performant or anything of the like. It is quick and dirty -// And mostly meant to be used for generating logs to diff the JIT and interpreter -// We also don't support stack arguments atm unless it becomes actually necessary -void ShaderEmitter::emitPrintLog(const PICAShader& shaderUnit) { - const uintptr_t pcOffset = uintptr_t(&shaderUnit.pc) - uintptr_t(&shaderUnit); - // Write back PC to print it - mov(dword[statePointer + pcOffset], recompilerPC); - - // Push all registers because our JIT assumes everything is non volatile - push(rbp); - push(rax); - push(rbx); - push(rcx); - push(rdx); - push(rsi); - push(rdi); - push(r8); - push(r9); - push(r10); - push(r11); - push(r12); - push(r13); - push(r14); - push(r15); - - mov(rbp, rsp); - // Reserve a bunch of stack space for Windows shadow stack et al, then force align rsp to 16 bytes to respect the ABI - sub(rsp, 64); - and_(rsp, ~0xF); - - // Call function - mov(arg1, statePointer); - mov(rax, uintptr_t(printLog)); - call(rax); - - // Undo anything we did - mov(rsp, rbp); - pop(r15); - pop(r14); - pop(r13); - pop(r12); - pop(r11); - pop(r10); - pop(r9); - pop(r8); - pop(rdi); - pop(rsi); - pop(rdx); - pop(rcx); - pop(rbx); - pop(rax); - pop(rbp); -} - -#endif \ No newline at end of file diff --git a/src/core/PICA/gpu.cpp b/src/core/PICA/gpu.cpp deleted file mode 100644 index c0499382..00000000 --- a/src/core/PICA/gpu.cpp +++ /dev/null @@ -1,398 +0,0 @@ -#include "PICA/gpu.hpp" - -#include -#include -#include -#include - -#include "PICA/float_types.hpp" -#include "PICA/regs.hpp" -#include "renderer_null/renderer_null.hpp" -#include "renderer_sw/renderer_sw.hpp" -#ifdef PANDA3DS_ENABLE_OPENGL -#include "renderer_gl/renderer_gl.hpp" -#endif -#ifdef PANDA3DS_ENABLE_VULKAN -#include "renderer_vk/renderer_vk.hpp" -#endif - -constexpr u32 topScreenWidth = 240; -constexpr u32 topScreenHeight = 400; - -constexpr u32 bottomScreenWidth = 240; -constexpr u32 bottomScreenHeight = 300; - -using namespace Floats; - -// Note: For when we have multiple backends, the GL state manager can stay here and have the constructor for the Vulkan-or-whatever renderer ignore it -// Thus, our GLStateManager being here does not negatively impact renderer-agnosticness -GPU::GPU(Memory& mem, EmulatorConfig& config) : mem(mem), config(config) { - vram = new u8[vramSize]; - mem.setVRAM(vram); // Give the bus a pointer to our VRAM - - switch (config.rendererType) { - case RendererType::Null: { - renderer.reset(new RendererNull(*this, regs, externalRegs)); - break; - } - - case RendererType::Software: { - renderer.reset(new RendererSw(*this, regs, externalRegs)); - break; - } - -#ifdef PANDA3DS_ENABLE_OPENGL - case RendererType::OpenGL: { - renderer.reset(new RendererGL(*this, regs, externalRegs)); - break; - } -#endif -#ifdef PANDA3DS_ENABLE_VULKAN - case RendererType::Vulkan: { - renderer.reset(new RendererVK(*this, regs, externalRegs)); - break; - } -#endif - default: { - Helpers::panic("Rendering backend not supported: %s", Renderer::typeToString(config.rendererType)); - break; - } - } -} - -void GPU::reset() { - regs.fill(0); - shaderUnit.reset(); - shaderJIT.reset(); - std::memset(vram, 0, vramSize); - lightingLUT.fill(0); - lightingLUTDirty = true; - - totalAttribCount = 0; - fixedAttribMask = 0; - fixedAttribIndex = 0; - fixedAttribCount = 0; - immediateModeAttrIndex = 0; - immediateModeVertIndex = 0; - - fixedAttrBuff.fill(0); - - for (auto& e : attributeInfo) { - e.offset = 0; - e.size = 0; - e.config1 = 0; - e.config2 = 0; - } - - // Initialize the framebuffer registers. Values taken from Citra. - - using namespace PICA::ExternalRegs; - // Top screen addresses and dimentions. - externalRegs[Framebuffer0AFirstAddr] = 0x181E6000; - externalRegs[Framebuffer0ASecondAddr] = 0x1822C800; - externalRegs[Framebuffer0BFirstAddr] = 0x18273000; - externalRegs[Framebuffer0BSecondAddr] = 0x182B9800; - externalRegs[Framebuffer0Size] = (topScreenHeight << 16) | topScreenWidth; - externalRegs[Framebuffer0Stride] = 720; - externalRegs[Framebuffer0Config] = static_cast(PICA::ColorFmt::RGB8); - externalRegs[Framebuffer0Select] = 0; - - // Bottom screen addresses and dimentions. - externalRegs[Framebuffer1AFirstAddr] = 0x1848F000; - externalRegs[Framebuffer1ASecondAddr] = 0x184C7800; - externalRegs[Framebuffer1Size] = (bottomScreenHeight << 16) | bottomScreenWidth; - externalRegs[Framebuffer1Stride] = 720; - externalRegs[Framebuffer1Config] = static_cast(PICA::ColorFmt::RGB8); - externalRegs[Framebuffer1Select] = 0; - - renderer->reset(); -} - -// Call the correct version of drawArrays based on whether this is an indexed draw (first template parameter) -// And whether we are going to use the shader JIT (second template parameter) -void GPU::drawArrays(bool indexed) { - const bool shaderJITEnabled = ShaderJIT::isAvailable() && config.shaderJitEnabled; - - if (indexed) { - if (shaderJITEnabled) - drawArrays(); - else - drawArrays(); - } else { - if (shaderJITEnabled) - drawArrays(); - else - drawArrays(); - } -} - -static std::array vertices; - -template -void GPU::drawArrays() { - if constexpr (useShaderJIT) { - shaderJIT.prepare(shaderUnit.vs); - } - - // Base address for vertex attributes - // The vertex base is always on a quadword boundary because the PICA does weird alignment shit any time possible - const u32 vertexBase = ((regs[PICA::InternalRegs::VertexAttribLoc] >> 1) & 0xfffffff) * 16; - const u32 vertexCount = regs[PICA::InternalRegs::VertexCountReg]; // Total # of vertices to transfer - - // Configures the type of primitive and the number of vertex shader outputs - const u32 primConfig = regs[PICA::InternalRegs::PrimitiveConfig]; - const PICA::PrimType primType = static_cast(Helpers::getBits<8, 2>(primConfig)); - if (vertexCount > Renderer::vertexBufferSize) Helpers::panic("[PICA] vertexCount > vertexBufferSize"); - - if ((primType == PICA::PrimType::TriangleList && vertexCount % 3) || (primType == PICA::PrimType::TriangleStrip && vertexCount < 3) || - (primType == PICA::PrimType::TriangleFan && vertexCount < 3)) { - Helpers::panic("Invalid vertex count for primitive. Type: %d, vert count: %d\n", primType, vertexCount); - } - - // Get the configuration for the index buffer, used only for indexed drawing - u32 indexBufferConfig = regs[PICA::InternalRegs::IndexBufferConfig]; - u32 indexBufferPointer = vertexBase + (indexBufferConfig & 0xfffffff); - bool shortIndex = Helpers::getBit<31>(indexBufferConfig); // Indicates whether vert indices are 16-bit or 8-bit - - // Stuff the global attribute config registers in one u64 to make attr parsing easier - // TODO: Cache this when the vertex attribute format registers are written to - u64 vertexCfg = u64(regs[PICA::InternalRegs::AttribFormatLow]) | (u64(regs[PICA::InternalRegs::AttribFormatHigh]) << 32); - - if constexpr (!indexed) { - u32 offset = regs[PICA::InternalRegs::VertexOffsetReg]; - log("PICA::DrawArrays(vertex count = %d, vertexOffset = %d)\n", vertexCount, offset); - } else { - log("PICA::DrawElements(vertex count = %d, index buffer config = %08X)\n", vertexCount, indexBufferConfig); - } - - // Total number of input attributes to shader. Differs between GS and VS. Currently stubbed to the VS one, as we don't have geometry shaders. - const u32 inputAttrCount = (regs[PICA::InternalRegs::VertexShaderInputBufferCfg] & 0xf) + 1; - const u64 inputAttrCfg = getVertexShaderInputConfig(); - - // When doing indexed rendering, we have a cache of vertices to avoid processing attributes and shaders for a single vertex many times - constexpr bool vertexCacheEnabled = true; - constexpr size_t vertexCacheSize = 64; - - struct { - std::bitset validBits{0}; // Shows which tags are valid. If the corresponding bit is 1, then there's an entry - std::array ids; // IDs (ie indices of the cached vertices in the 3DS vertex buffer) - std::array bufferPositions; // Positions of the cached vertices in our own vertex buffer - } vertexCache; - - for (u32 i = 0; i < vertexCount; i++) { - u32 vertexIndex; // Index of the vertex in the VBO for indexed rendering - - if constexpr (!indexed) { - vertexIndex = i + regs[PICA::InternalRegs::VertexOffsetReg]; - } else { - if (shortIndex) { - auto ptr = getPointerPhys(indexBufferPointer); - vertexIndex = *ptr; // TODO: This is very unsafe - indexBufferPointer += 2; - } else { - auto ptr = getPointerPhys(indexBufferPointer); - vertexIndex = *ptr; // TODO: This is also very unsafe - indexBufferPointer += 1; - } - } - - // Check if the vertex corresponding to the index is in cache - if constexpr (indexed && vertexCacheEnabled) { - auto& cache = vertexCache; - size_t tag = vertexIndex % vertexCacheSize; - // Cache hit - if (cache.validBits[tag] && cache.ids[tag] == vertexIndex) { - vertices[i] = vertices[cache.bufferPositions[tag]]; - continue; - } - - // Cache miss. Set cache entry, fetch attributes and run shaders as normal - else { - cache.validBits[tag] = true; - cache.ids[tag] = vertexIndex; - cache.bufferPositions[tag] = i; - } - } - - int attrCount = 0; - int buffer = 0; // Vertex buffer index for non-fixed attributes - - while (attrCount < totalAttribCount) { - // Check if attribute is fixed or not - if (fixedAttribMask & (1 << attrCount)) { // Fixed attribute - vec4f& fixedAttr = shaderUnit.vs.fixedAttributes[attrCount]; // TODO: Is this how it works? - vec4f& inputAttr = currentAttributes[attrCount]; - std::memcpy(&inputAttr, &fixedAttr, sizeof(vec4f)); // Copy fixed attr to input attr - attrCount++; - } else { // Non-fixed attribute - auto& attr = attributeInfo[buffer]; // Get information for this attribute - u64 attrCfg = attr.getConfigFull(); // Get config1 | (config2 << 32) - u32 attrAddress = vertexBase + attr.offset + (vertexIndex * attr.size); - - for (int j = 0; j < attr.componentCount; j++) { - uint index = (attrCfg >> (j * 4)) & 0xf; // Get index of attribute in vertexCfg - - // Vertex attributes used as padding - // 12, 13, 14 and 15 are equivalent to 4, 8, 12 and 16 bytes of padding respectively - if (index >= 12) [[unlikely]] { - // Align attribute address up to a 4 byte boundary - attrAddress = (attrAddress + 3) & -4; - attrAddress += (index - 11) << 2; - continue; - } - - u32 attribInfo = (vertexCfg >> (index * 4)) & 0xf; - u32 attribType = attribInfo & 0x3; // Type of attribute(sbyte/ubyte/short/float) - u32 size = (attribInfo >> 2) + 1; // Total number of components - - // printf("vertex_attribute_strides[%d] = %d\n", attrCount, attr.size); - vec4f& attribute = currentAttributes[attrCount]; - uint component; // Current component - - switch (attribType) { - case 0: { // Signed byte - s8* ptr = getPointerPhys(attrAddress); - for (component = 0; component < size; component++) { - float val = static_cast(*ptr++); - attribute[component] = f24::fromFloat32(val); - } - attrAddress += size * sizeof(s8); - break; - } - - case 1: { // Unsigned byte - u8* ptr = getPointerPhys(attrAddress); - for (component = 0; component < size; component++) { - float val = static_cast(*ptr++); - attribute[component] = f24::fromFloat32(val); - } - attrAddress += size * sizeof(u8); - break; - } - - case 2: { // Short - s16* ptr = getPointerPhys(attrAddress); - for (component = 0; component < size; component++) { - float val = static_cast(*ptr++); - attribute[component] = f24::fromFloat32(val); - } - attrAddress += size * sizeof(s16); - break; - } - - case 3: { // Float - float* ptr = getPointerPhys(attrAddress); - for (component = 0; component < size; component++) { - float val = *ptr++; - attribute[component] = f24::fromFloat32(val); - } - attrAddress += size * sizeof(float); - break; - } - - default: Helpers::panic("[PICA] Unimplemented attribute type %d", attribType); - } - - // Fill the remaining attribute lanes with default parameters (1.0 for alpha/w, 0.0) for everything else - // Corgi does this although I'm not sure if it's actually needed for anything. - // TODO: Find out - while (component < 4) { - attribute[component] = (component == 3) ? f24::fromFloat32(1.0) : f24::fromFloat32(0.0); - component++; - } - - attrCount++; - } - buffer++; - } - } - - // Before running the shader, the PICA maps the fetched attributes from the attribute registers to the shader input registers - // Based on the SH_ATTRIBUTES_PERMUTATION registers. - // Ie it might attribute #0 to v2, #1 to v7, etc - for (int j = 0; j < totalAttribCount; j++) { - const u32 mapping = (inputAttrCfg >> (j * 4)) & 0xf; - std::memcpy(&shaderUnit.vs.inputs[mapping], ¤tAttributes[j], sizeof(vec4f)); - } - - if constexpr (useShaderJIT) { - shaderJIT.run(shaderUnit.vs); - } else { - shaderUnit.vs.run(); - } - - PICA::Vertex& out = vertices[i]; - // Map shader outputs to fixed function properties - const u32 totalShaderOutputs = regs[PICA::InternalRegs::ShaderOutputCount] & 7; - for (int i = 0; i < totalShaderOutputs; i++) { - const u32 config = regs[PICA::InternalRegs::ShaderOutmap0 + i]; - - for (int j = 0; j < 4; j++) { // pls unroll - const u32 mapping = (config >> (j * 8)) & 0x1F; - out.raw[mapping] = shaderUnit.vs.outputs[i][j]; - } - } - } - - renderer->drawVertices(primType, std::span(vertices).first(vertexCount)); -} - -PICA::Vertex GPU::getImmediateModeVertex() { - PICA::Vertex v; - const int totalAttrCount = (regs[PICA::InternalRegs::VertexShaderAttrNum] & 0xf) + 1; - - // Copy immediate mode attributes to vertex shader unit - for (int i = 0; i < totalAttrCount; i++) { - shaderUnit.vs.inputs[i] = immediateModeAttributes[i]; - } - - // Run VS and return vertex data. TODO: Don't hardcode offsets for each attribute - shaderUnit.vs.run(); - - // Map shader outputs to fixed function properties - const u32 totalShaderOutputs = regs[PICA::InternalRegs::ShaderOutputCount] & 7; - for (int i = 0; i < totalShaderOutputs; i++) { - const u32 config = regs[PICA::InternalRegs::ShaderOutmap0 + i]; - - for (int j = 0; j < 4; j++) { // pls unroll - const u32 mapping = (config >> (j * 8)) & 0x1F; - v.raw[mapping] = shaderUnit.vs.outputs[i][j]; - } - } - - return v; -} - -void GPU::fireDMA(u32 dest, u32 source, u32 size) { - log("[GPU] DMA of %08X bytes from %08X to %08X\n", size, source, dest); - constexpr u32 vramStart = VirtualAddrs::VramStart; - constexpr u32 vramSize = VirtualAddrs::VramSize; - - const u32 fcramStart = mem.getLinearHeapVaddr(); - constexpr u32 fcramSize = VirtualAddrs::FcramTotalSize; - - // Shows whether this transfer is an FCRAM->VRAM transfer that's trivially optimizable - bool cpuToVRAM = true; - - if (dest - vramStart >= vramSize || size > (vramSize - (dest - vramStart))) [[unlikely]] { - cpuToVRAM = false; - Helpers::panic("GPU DMA does not target VRAM"); - } - - if (source - fcramStart >= fcramSize || size > (fcramSize - (dest - fcramStart))) [[unlikely]] { - cpuToVRAM = false; - // Helpers::panic("GPU DMA does not have FCRAM as its source"); - } - - if (cpuToVRAM) [[likely]] { - // Valid, optimized FCRAM->VRAM DMA. TODO: Is VRAM->VRAM DMA allowed? - u8* fcram = mem.getFCRAM(); - std::memcpy(&vram[dest - vramStart], &fcram[source - fcramStart], size); - } else { - printf("Non-trivially optimizable GPU DMA. Falling back to byte-by-byte transfer\n"); - - for (u32 i = 0; i < size; i++) { - mem.write8(dest + i, mem.read8(source + i)); - } - } -} diff --git a/src/core/PICA/pica_hash.cpp b/src/core/PICA/pica_hash.cpp deleted file mode 100644 index 97e04ef3..00000000 --- a/src/core/PICA/pica_hash.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "PICA/pica_hash.hpp" -#include "PICA/shader.hpp" - -#ifdef PANDA3DS_PICA_CITYHASH -#include "cityhash.hpp" -#elif defined(PANDA3DS_PICA_XXHASH3) -#include "xxhash/xxhash.h" -#else -#error No hashing algorithm defined for the PICA (See pica_hash.hpp for details) -#endif - -PICAHash::HashType PICAHash::computeHash(const char* buf, std::size_t len) { -#ifdef PANDA3DS_PICA_CITYHASH - return CityHash::CityHash64(buf, len); -#elif defined(PANDA3DS_PICA_XXHASH3) - return XXH3_64bits(buf, len); -#else -#error No hashing algorithm defined for PICAHash::computeHash -#endif -} - -PICAShader::Hash PICAShader::getCodeHash() { - // Hash the code again if the code changed - if (codeHashDirty) { - codeHashDirty = false; - lastCodeHash = PICAHash::computeHash((const char*)&loadedShader[0], loadedShader.size() * sizeof(loadedShader[0])); - } - - // Return the code hash - return lastCodeHash; -} - -PICAShader::Hash PICAShader::getOpdescHash() { - // Hash the code again if the operand descriptors changed - if (opdescHashDirty) { - opdescHashDirty = false; - lastOpdescHash = PICAHash::computeHash((const char*)&operandDescriptors[0], operandDescriptors.size() * sizeof(operandDescriptors[0])); - } - - // Return the code hash - return lastOpdescHash; -} \ No newline at end of file diff --git a/src/core/PICA/regs.cpp b/src/core/PICA/regs.cpp deleted file mode 100644 index baaa2256..00000000 --- a/src/core/PICA/regs.cpp +++ /dev/null @@ -1,412 +0,0 @@ -#include "PICA/regs.hpp" - -#include "PICA/gpu.hpp" - -using namespace Floats; -using namespace Helpers; - -u32 GPU::readReg(u32 address) { - if (address >= 0x1EF01000 && address < 0x1EF01C00) { // Internal registers - const u32 index = (address - 0x1EF01000) / sizeof(u32); - return readInternalReg(index); - } else { - log("Ignoring read to external GPU register %08X.\n", address); - return 0; - } -} - -void GPU::writeReg(u32 address, u32 value) { - if (address >= 0x1EF01000 && address < 0x1EF01C00) { // Internal registers - const u32 index = (address - 0x1EF01000) / sizeof(u32); - writeInternalReg(index, value, 0xffffffff); - } else if (address >= 0x1EF00004 && address < 0x1EF01000) { - const u32 index = (address - 0x1EF00004) / sizeof(u32); - writeExternalReg(index, value); - } else { - log("Ignoring write to unknown GPU register %08X. Value: %08X\n", address, value); - } -} - -u32 GPU::readExternalReg(u32 index) { - using namespace PICA::ExternalRegs; - - if (index > 0x1000) [[unlikely]] { - Helpers::panic("Tried to read invalid external GPU register. Index: %X\n", index); - return -1; - } - - return externalRegs[index]; -} - -void GPU::writeExternalReg(u32 index, u32 value) { - using namespace PICA::ExternalRegs; - - if (index > 0x1000) [[unlikely]] { - Helpers::panic("Tried to write to invalid external GPU register. Index: %X, value: %08X\n", index, value); - return; - } - - externalRegs[index] = value; -} - -u32 GPU::readInternalReg(u32 index) { - using namespace PICA::InternalRegs; - - if (index > regNum) [[unlikely]] { - Helpers::panic("Tried to read invalid GPU register. Index: %X\n", index); - return 0; - } - - else if (index >= LightingLUTData0 && index <= LightingLUTData7) [[unlikely]] { - const uint32_t index = regs[LightingLUTIndex]; // Get full LUT index register - const uint32_t lutID = getBits<8, 5>(index); // Get which LUT we're actually writing to - uint32_t lutIndex = getBits<0, 8>(index); // And get the index inside the LUT we're writing to - uint32_t value = 0xffffffff; // Return value - - if (lutID < PICA::Lights::LUT_Count) { - value = lightingLUT[lutID * 256 + lutIndex]; - } - - // Increment the bottom 8 bits of the lighting LUT index register - lutIndex += 1; - regs[LightingLUTIndex] = (index & ~0xff) | (lutIndex & 0xff); - return value; - } - - return regs[index]; -} - -void GPU::writeInternalReg(u32 index, u32 value, u32 mask) { - using namespace PICA::InternalRegs; - - if (index > regNum) [[unlikely]] { - Helpers::panic("Tried to write to invalid GPU register. Index: %X, value: %08X\n", index, value); - return; - } - - u32 currentValue = regs[index]; - u32 newValue = (currentValue & ~mask) | (value & mask); // Only overwrite the bits specified by "mask" - regs[index] = newValue; - - // TODO: Figure out if things like the shader index use the unmasked value or the masked one - // We currently use the unmasked value like Citra does - switch (index) { - case SignalDrawArrays: - if (value != 0) drawArrays(false); - break; - - case SignalDrawElements: - if (value != 0) drawArrays(true); - break; - - case AttribFormatHigh: - totalAttribCount = (value >> 28) + 1; // Total number of vertex attributes - fixedAttribMask = getBits<16, 12>(value); // Determines which vertex attributes are fixed for all vertices - break; - - case ColourBufferLoc: { - u32 loc = (value & 0x0fffffff) << 3; - renderer->setColourBufferLoc(loc); - break; - }; - - case ColourBufferFormat: { - u32 format = getBits<16, 3>(value); - renderer->setColourFormat(static_cast(format)); - break; - } - - case DepthBufferLoc: { - u32 loc = (value & 0x0fffffff) << 3; - renderer->setDepthBufferLoc(loc); - break; - } - - case DepthBufferFormat: { - u32 format = value & 0x3; - renderer->setDepthFormat(static_cast(format)); - break; - } - - case FramebufferSize: { - const u32 width = value & 0x7ff; - const u32 height = getBits<12, 10>(value) + 1; - renderer->setFBSize(width, height); - break; - } - - case LightingLUTData0: - case LightingLUTData1: - case LightingLUTData2: - case LightingLUTData3: - case LightingLUTData4: - case LightingLUTData5: - case LightingLUTData6: - case LightingLUTData7: { - const uint32_t index = regs[LightingLUTIndex]; // Get full LUT index register - const uint32_t lutID = getBits<8, 5>(index); // Get which LUT we're actually writing to - uint32_t lutIndex = getBits<0, 8>(index); // And get the index inside the LUT we're writing to - - if (lutID < PICA::Lights::LUT_Count) { - lightingLUT[lutID * 256 + lutIndex] = newValue; - lightingLUTDirty = true; - } - - // Increment the bottom 8 bits of the lighting LUT index register - lutIndex += 1; - regs[LightingLUTIndex] = (index & ~0xff) | (lutIndex & 0xff); - - break; - } - - case VertexFloatUniformIndex: { - shaderUnit.vs.setFloatUniformIndex(value); - break; - } - - case VertexFloatUniformData0: - case VertexFloatUniformData1: - case VertexFloatUniformData2: - case VertexFloatUniformData3: - case VertexFloatUniformData4: - case VertexFloatUniformData5: - case VertexFloatUniformData6: - case VertexFloatUniformData7: { - shaderUnit.vs.uploadFloatUniform(value); - break; - } - - case FixedAttribIndex: - fixedAttribCount = 0; - fixedAttribIndex = value & 0xf; - - if (fixedAttribIndex == 0xf) { - log("[PICA] Immediate mode vertex submission enabled"); - immediateModeAttrIndex = 0; - immediateModeVertIndex = 0; - } - break; - - // Restart immediate mode primitive drawing - case PrimitiveRestart: - if (value & 1) { - immediateModeAttrIndex = 0; - immediateModeVertIndex = 0; - } - break; - - case FixedAttribData0: - case FixedAttribData1: - case FixedAttribData2: - fixedAttrBuff[fixedAttribCount++] = value; - - if (fixedAttribCount == 3) { - fixedAttribCount = 0; - - vec4f attr; - // These are stored in the reverse order anyone would expect them to be in - attr[0] = f24::fromRaw(fixedAttrBuff[2] & 0xffffff); - attr[1] = f24::fromRaw(((fixedAttrBuff[1] & 0xffff) << 8) | (fixedAttrBuff[2] >> 24)); - attr[2] = f24::fromRaw(((fixedAttrBuff[0] & 0xff) << 16) | (fixedAttrBuff[1] >> 16)); - attr[3] = f24::fromRaw(fixedAttrBuff[0] >> 8); - - // If the fixed attribute index is < 12, we're just writing to one of the fixed attributes - if (fixedAttribIndex < 12) [[likely]] { - shaderUnit.vs.fixedAttributes[fixedAttribIndex++] = attr; - } else if (fixedAttribIndex == 15) { // Otherwise if it's 15, we're submitting an immediate mode vertex - const uint totalAttrCount = (regs[PICA::InternalRegs::VertexShaderAttrNum] & 0xf) + 1; - if (totalAttrCount <= immediateModeAttrIndex) { - printf("Broken state in the immediate mode vertex submission pipeline. Failing silently\n"); - immediateModeAttrIndex = 0; - immediateModeVertIndex = 0; - } - - immediateModeAttributes[immediateModeAttrIndex++] = attr; - if (immediateModeAttrIndex == totalAttrCount) { - PICA::Vertex v = getImmediateModeVertex(); - immediateModeAttrIndex = 0; - immediateModeVertices[immediateModeVertIndex++] = v; - - // Get primitive type - const u32 primConfig = regs[PICA::InternalRegs::PrimitiveConfig]; - const u32 primType = getBits<8, 2>(primConfig); - - // If we've reached 3 verts, issue a draw call - // Handle rendering depending on the primitive type - if (immediateModeVertIndex == 3) { - renderer->drawVertices(PICA::PrimType::TriangleList, immediateModeVertices); - - switch (primType) { - // Triangle or geometry primitive. Draw a triangle and discard all vertices - case 0: - case 3: { - immediateModeVertIndex = 0; - break; - } - - // Triangle strip. Draw triangle, discard first vertex and keep the last 2 - case 1: - immediateModeVertIndex = 2; - - immediateModeVertices[0] = immediateModeVertices[1]; - immediateModeVertices[1] = immediateModeVertices[2]; - break; - - // Triangle fan. Draw triangle, keep first vertex and last vertex, discard second vertex - case 2: - immediateModeVertIndex = 2; - immediateModeVertices[1] = immediateModeVertices[2]; - break; - } - } - } - } else { // Writing to fixed attributes 13 and 14 probably does nothing, but we'll see - log("Wrote to invalid fixed vertex attribute %d\n", fixedAttribIndex); - } - } - - break; - - case VertexShaderOpDescriptorIndex: { - shaderUnit.vs.setOpDescriptorIndex(value); - break; - } - - case VertexShaderOpDescriptorData0: - case VertexShaderOpDescriptorData1: - case VertexShaderOpDescriptorData2: - case VertexShaderOpDescriptorData3: - case VertexShaderOpDescriptorData4: - case VertexShaderOpDescriptorData5: - case VertexShaderOpDescriptorData6: - case VertexShaderOpDescriptorData7: { - shaderUnit.vs.uploadDescriptor(value); - break; - } - - case VertexBoolUniform: { - shaderUnit.vs.boolUniform = value & 0xffff; - break; - } - - case VertexIntUniform0: - case VertexIntUniform1: - case VertexIntUniform2: - case VertexIntUniform3: { - shaderUnit.vs.uploadIntUniform(index - VertexIntUniform0, value); - break; - } - - case VertexShaderData0: - case VertexShaderData1: - case VertexShaderData2: - case VertexShaderData3: - case VertexShaderData4: - case VertexShaderData5: - case VertexShaderData6: - case VertexShaderData7: { - shaderUnit.vs.uploadWord(value); - break; - } - - case VertexShaderEntrypoint: { - shaderUnit.vs.entrypoint = value & 0xffff; - break; - } - - case VertexShaderTransferEnd: - if (value != 0) shaderUnit.vs.finalize(); - break; - - case VertexShaderTransferIndex: shaderUnit.vs.setBufferIndex(value); break; - - // Command lists can write to the command processor registers and change the command list stream - // Several games are known to do this, including New Super Mario Bros 2 and Super Mario 3D Land - case CmdBufTrigger0: - case CmdBufTrigger1: { - if (value != 0) { // A non-zero value triggers command list processing - int bufferIndex = index - CmdBufTrigger0; // Index of the command buffer to execute (0 or 1) - u32 addr = (regs[CmdBufAddr0 + bufferIndex] & 0xfffffff) << 3; - u32 size = (regs[CmdBufSize0 + bufferIndex] & 0xfffff) << 3; - - // Set command buffer state to execute the new buffer - cmdBuffStart = getPointerPhys(addr); - cmdBuffCurr = cmdBuffStart; - cmdBuffEnd = cmdBuffStart + (size / sizeof(u32)); - } - break; - } - - default: - // Vertex attribute registers - if (index >= AttribInfoStart && index <= AttribInfoEnd) { - uint attributeIndex = (index - AttribInfoStart) / 3; // Which attribute are we writing to - uint reg = (index - AttribInfoStart) % 3; // Which of this attribute's registers are we writing to? - auto& attr = attributeInfo[attributeIndex]; - - switch (reg) { - case 0: attr.offset = value & 0xfffffff; break; // Attribute offset - case 1: attr.config1 = value; break; - case 2: - attr.config2 = value; - attr.size = getBits<16, 8>(value); - attr.componentCount = value >> 28; - break; - } - } else { - log("GPU: Wrote to unimplemented internal reg: %X, value: %08X\n", index, newValue); - } - break; - } -} - -void GPU::startCommandList(u32 addr, u32 size) { - cmdBuffStart = static_cast(mem.getReadPointer(addr)); - if (!cmdBuffStart) Helpers::panic("Couldn't get buffer for command list"); - // TODO: This is very memory unsafe. We get a pointer to FCRAM and just keep writing without checking if we're gonna go OoB - - cmdBuffCurr = cmdBuffStart; - cmdBuffEnd = cmdBuffStart + (size / sizeof(u32)); - - // LUT for converting the parameter mask to an actual 32-bit mask - // The parameter mask is 4 bits long, each bit corresponding to one byte of the mask - // If the bit is 0 then the corresponding mask byte is 0, otherwise the mask byte is 0xff - // So for example if the parameter mask is 0b1001, the full mask is 0xff'00'00'ff - static constexpr std::array maskLUT = { - 0x00000000, 0x000000ff, 0x0000ff00, 0x0000ffff, 0x00ff0000, 0x00ff00ff, 0x00ffff00, 0x00ffffff, - 0xff000000, 0xff0000ff, 0xff00ff00, 0xff00ffff, 0xffff0000, 0xffff00ff, 0xffffff00, 0xffffffff, - }; - - while (cmdBuffCurr < cmdBuffEnd) { - // If the buffer is not aligned to an 8 byte boundary, force align it by moving the pointer up a word - // The curr pointer starts out doubleword-aligned and is increased by 4 bytes each time - // So to check if it is aligned, we get the number of words it's been incremented by - // If that number is an odd value then the buffer is not aligned, otherwise it is - if ((cmdBuffCurr - cmdBuffStart) % 2 != 0) { - cmdBuffCurr++; - } - - // The first word of a command is the command parameter and the second one is the header - u32 param1 = *cmdBuffCurr++; - u32 header = *cmdBuffCurr++; - - u32 id = header & 0xffff; - u32 paramMaskIndex = getBits<16, 4>(header); - u32 paramCount = getBits<20, 8>(header); // Number of additional parameters - // Bit 31 tells us whether this command is going to write to multiple sequential registers (if the bit is 1) - // Or if all written values will go to the same register (If the bit is 0). It's essentially the value that - // gets added to the "id" field after each register write - bool consecutiveWritingMode = (header >> 31) != 0; - - u32 mask = maskLUT[paramMaskIndex]; // Actual parameter mask - // Increment the ID by 1 after each write if we're in consecutive mode, or 0 otherwise - u32 idIncrement = (consecutiveWritingMode) ? 1 : 0; - - writeInternalReg(id, param1, mask); - for (u32 i = 0; i < paramCount; i++) { - id += idIncrement; - u32 param = *cmdBuffCurr++; - writeInternalReg(id, param, mask); - } - } -} diff --git a/src/core/PICA/shader_interpreter.cpp b/src/core/PICA/shader_interpreter.cpp deleted file mode 100644 index 85ca3c6e..00000000 --- a/src/core/PICA/shader_interpreter.cpp +++ /dev/null @@ -1,731 +0,0 @@ -#include - -#include "PICA/shader.hpp" - -using namespace Helpers; - -void PICAShader::run() { - pc = entrypoint; - loopIndex = 0; - ifIndex = 0; - callIndex = 0; - - while (true) { - const u32 instruction = loadedShader[pc++]; - const u32 opcode = instruction >> 26; // Top 6 bits are the opcode - - switch (opcode) { - case ShaderOpcodes::ADD: add(instruction); break; - case ShaderOpcodes::CALL: call(instruction); break; - case ShaderOpcodes::CALLC: callc(instruction); break; - case ShaderOpcodes::CALLU: callu(instruction); break; - case ShaderOpcodes::CMP1: - case ShaderOpcodes::CMP2: { - cmp(instruction); - break; - } - - case ShaderOpcodes::DP3: dp3(instruction); break; - case ShaderOpcodes::DP4: dp4(instruction); break; - case ShaderOpcodes::DPHI: dphi(instruction); break; - case ShaderOpcodes::END: return; // Stop running shader - case ShaderOpcodes::EX2: ex2(instruction); break; - case ShaderOpcodes::FLR: flr(instruction); break; - case ShaderOpcodes::IFC: ifc(instruction); break; - case ShaderOpcodes::IFU: ifu(instruction); break; - case ShaderOpcodes::JMPC: jmpc(instruction); break; - case ShaderOpcodes::JMPU: jmpu(instruction); break; - case ShaderOpcodes::LG2: lg2(instruction); break; - case ShaderOpcodes::LOOP: loop(instruction); break; - case ShaderOpcodes::MAX: max(instruction); break; - case ShaderOpcodes::MIN: min(instruction); break; - case ShaderOpcodes::MOV: mov(instruction); break; - case ShaderOpcodes::MOVA: mova(instruction); break; - case ShaderOpcodes::MUL: mul(instruction); break; - case ShaderOpcodes::NOP: break; // Do nothing - case ShaderOpcodes::RCP: rcp(instruction); break; - case ShaderOpcodes::RSQ: rsq(instruction); break; - case ShaderOpcodes::SGE: sge(instruction); break; - case ShaderOpcodes::SGEI: sgei(instruction); break; - case ShaderOpcodes::SLT: slt(instruction); break; - case ShaderOpcodes::SLTI: slti(instruction); break; - - case 0x30: - case 0x31: - case 0x32: - case 0x33: - case 0x34: - case 0x35: - case 0x36: - case 0x37: { - madi(instruction); - break; - } - - case 0x38: - case 0x39: - case 0x3A: - case 0x3B: - case 0x3C: - case 0x3D: - case 0x3E: - case 0x3F: { - mad(instruction); - break; - } - - default: Helpers::panic("Unimplemented PICA instruction %08X (Opcode = %02X)", instruction, opcode); - } - - // Handle control flow statements. The ordering is important as the priority goes: LOOP > IF > CALL - // Handle loop - if (loopIndex != 0) { - auto& loop = loopInfo[loopIndex - 1]; - if (pc == loop.endingPC) { // Check if the loop needs to start over - loop.iterations -= 1; - if (loop.iterations == 0) // If the loop ended, go one level down on the loop stack - loopIndex -= 1; - - loopCounter += loop.increment; - pc = loop.startingPC; - } - } - - // Handle ifs - if (ifIndex != 0) { - auto& info = conditionalInfo[ifIndex - 1]; - if (pc == info.endingPC) { // Check if the IF block ended - pc = info.newPC; - ifIndex -= 1; - } - } - - // Handle calls - if (callIndex != 0) { - auto& info = callInfo[callIndex - 1]; - if (pc == info.endingPC) { // Check if the CALL block ended - pc = info.returnPC; - callIndex -= 1; - } - } - } -} - -// Calculate the actual source value using an instruction's source field and it's respective index value -// The index value is used to apply relative addressing when index != 0 by adding one of the 3 addr registers to the -// source field, but only with the original source field is pointing at a vector uniform register -u8 PICAShader::getIndexedSource(u32 source, u32 index) { - if (source < 0x20) // No offset is applied if the source isn't pointing to a vector uniform reg - return source; - - switch (index) { - case 0: [[likely]] return u8(source); // No offset applied - case 1: return u8(source + addrRegister[0]); - case 2: return u8(source + addrRegister[1]); - case 3: return u8(source + loopCounter); - } - - Helpers::panic("Reached unreachable path in PICAShader::getIndexedSource"); - return 0; -} - -PICAShader::vec4f PICAShader::getSource(u32 source) { - if (source < 0x10) - return inputs[source]; - else if (source < 0x20) - return tempRegisters[source - 0x10]; - else if (source <= 0x7f) - return floatUniforms[source - 0x20]; - else { - Helpers::warn("[PICA] Unimplemented source value: %X\n", source); - return vec4f({f24::zero(), f24::zero(), f24::zero(), f24::zero()}); - } -} - -PICAShader::vec4f& PICAShader::getDest(u32 dest) { - if (dest < 0x10) { - return outputs[dest]; - } else if (dest < 0x20) { - return tempRegisters[dest - 0x10]; - } - Helpers::panic("[PICA] Unimplemented dest: %X", dest); -} - -bool PICAShader::isCondTrue(u32 instruction) { - u32 condition = getBits<22, 2>(instruction); - bool refY = (getBit<24>(instruction)) != 0; - bool refX = (getBit<25>(instruction)) != 0; - - switch (condition) { - case 0: // Either cmp register matches - return cmpRegister[0] == refX || cmpRegister[1] == refY; - case 1: // Both cmp registers match - return cmpRegister[0] == refX && cmpRegister[1] == refY; - case 2: // At least cmp.x matches - return cmpRegister[0] == refX; - default: // At least cmp.y matches - return cmpRegister[1] == refY; - } -} - -void PICAShader::add(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src1 = getIndexedSource(src1, idx); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - - vec4f& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVec1[3 - i] + srcVec2[3 - i]; - } - } -} - -void PICAShader::mul(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src1 = getIndexedSource(src1, idx); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - - vec4f& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVec1[3 - i] * srcVec2[3 - i]; - } - } -} - -void PICAShader::flr(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src = getIndexedSource(src, idx); - vec4f srcVector = getSourceSwizzled<1>(src, operandDescriptor); - vec4f& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = f24::fromFloat32(std::floor(srcVector[3 - 1].toFloat32())); - } - } -} - -void PICAShader::max(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - if (idx) Helpers::panic("[PICA] MAX: idx != 0"); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - - vec4f& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - const auto maximum = srcVec1[3 - i] > srcVec2[3 - i] ? srcVec1[3 - i] : srcVec2[3 - i]; - destVector[3 - i] = maximum; - } - } -} - -void PICAShader::min(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - if (idx) Helpers::panic("[PICA] MIN: idx != 0"); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - - vec4f& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - const auto mininum = srcVec1[3 - i] < srcVec2[3 - i] ? srcVec1[3 - i] : srcVec2[3 - i]; - destVector[3 - i] = mininum; - } - } -} - -void PICAShader::mov(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src = getIndexedSource(src, idx); - vec4f srcVector = getSourceSwizzled<1>(src, operandDescriptor); - vec4f& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVector[3 - i]; - } - } -} - -void PICAShader::mova(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - - if (idx) Helpers::panic("[PICA] MOVA: idx != 0"); - vec4f srcVector = getSourceSwizzled<1>(src, operandDescriptor); - - u32 componentMask = operandDescriptor & 0xf; - if (componentMask & 0b1000) // x component - addrRegister[0] = static_cast(srcVector[0].toFloat32()); - if (componentMask & 0b0100) // y component - addrRegister[1] = static_cast(srcVector[1].toFloat32()); -} - -void PICAShader::dp3(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src1 = getIndexedSource(src1, idx); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - - vec4f& destVector = getDest(dest); - f24 dot = srcVec1[0] * srcVec2[0] + srcVec1[1] * srcVec2[1] + srcVec1[2] * srcVec2[2]; - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = dot; - } - } -} - -void PICAShader::dp4(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src1 = getIndexedSource(src1, idx); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - - vec4f& destVector = getDest(dest); - f24 dot = srcVec1[0] * srcVec2[0] + srcVec1[1] * srcVec2[1] + srcVec1[2] * srcVec2[2] + srcVec1[3] * srcVec2[3]; - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = dot; - } - } -} - -void PICAShader::dphi(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<14, 5>(instruction); - u32 src2 = getBits<7, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src2 = getIndexedSource(src2, idx); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - - vec4f& destVector = getDest(dest); - // srcVec1[3] is supposed to be replaced with 1.0 in the dot product, so we just add srcVec2[3] without multiplying it with anything - f24 dot = srcVec1[0] * srcVec2[0] + srcVec1[1] * srcVec2[1] + srcVec1[2] * srcVec2[2] + srcVec2[3]; - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = dot; - } - } -} - -void PICAShader::rcp(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - if (idx) Helpers::panic("[PICA] RCP: idx != 0"); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - - vec4f& destVector = getDest(dest); - f24 res = f24::fromFloat32(1.0f) / srcVec1[0]; - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = res; - } - } -} - -void PICAShader::rsq(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - if (idx) Helpers::panic("[PICA] RSQ: idx != 0"); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - - vec4f& destVector = getDest(dest); - f24 res = f24::fromFloat32(1.0f / std::sqrt(srcVec1[0].toFloat32())); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = res; - } - } -} - -void PICAShader::ex2(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src = getIndexedSource(src, idx); - vec4f srcVec = getSourceSwizzled<1>(src, operandDescriptor); - - vec4f& destVector = getDest(dest); - f24 res = f24::fromFloat32(std::exp2(srcVec[0].toFloat32())); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = res; - } - } -} - -void PICAShader::lg2(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src = getBits<12, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src = getIndexedSource(src, idx); - vec4f srcVec = getSourceSwizzled<1>(src, operandDescriptor); - - vec4f& destVector = getDest(dest); - f24 res = f24::fromFloat32(std::log2(srcVec[0].toFloat32())); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = res; - } - } -} - -void PICAShader::mad(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x1f]; - const u32 src1 = getBits<17, 5>(instruction); - u32 src2 = getBits<10, 7>(instruction); - const u32 src3 = getBits<5, 5>(instruction); - const u32 idx = getBits<22, 2>(instruction); - const u32 dest = getBits<24, 5>(instruction); - - src2 = getIndexedSource(src2, idx); - - auto srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - auto srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - auto srcVec3 = getSourceSwizzled<3>(src3, operandDescriptor); - auto& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVec1[3 - i] * srcVec2[3 - i] + srcVec3[3 - i]; - } - } -} - -void PICAShader::madi(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x1f]; - const u32 src1 = getBits<17, 5>(instruction); - const u32 src2 = getBits<12, 5>(instruction); - u32 src3 = getBits<5, 7>(instruction); - const u32 idx = getBits<22, 2>(instruction); - const u32 dest = getBits<24, 5>(instruction); - - src3 = getIndexedSource(src3, idx); - - auto srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - auto srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - auto srcVec3 = getSourceSwizzled<3>(src3, operandDescriptor); - auto& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVec1[3 - i] * srcVec2[3 - i] + srcVec3[3 - i]; - } - } -} - -void PICAShader::slt(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src1 = getIndexedSource(src1, idx); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - auto& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVec1[3 - i] < srcVec2[3 - i] ? f24::fromFloat32(1.0) : f24::zero(); - } - } -} - -void PICAShader::sge(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src1 = getIndexedSource(src1, idx); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - auto& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVec1[3 - i] >= srcVec2[3 - i] ? f24::fromFloat32(1.0) : f24::zero(); - } - } -} - -void PICAShader::sgei(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<14, 5>(instruction); - u32 src2 = getBits<7, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src2 = getIndexedSource(src2, idx); - - auto srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - auto srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - auto& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVec1[3 - i] >= srcVec2[3 - i] ? f24::fromFloat32(1.0) : f24::zero(); - } - } -} - -void PICAShader::slti(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<14, 5>(instruction); - u32 src2 = getBits<7, 7>(instruction); - const u32 idx = getBits<19, 2>(instruction); - const u32 dest = getBits<21, 5>(instruction); - - src2 = getIndexedSource(src2, idx); - - auto srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - auto srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - auto& destVector = getDest(dest); - - u32 componentMask = operandDescriptor & 0xf; - for (int i = 0; i < 4; i++) { - if (componentMask & (1 << i)) { - destVector[3 - i] = srcVec1[3 - i] < srcVec2[3 - i] ? f24::fromFloat32(1.0) : f24::zero(); - } - } -} - -void PICAShader::cmp(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; - const u32 src1 = getBits<12, 7>(instruction); - const u32 src2 = getBits<7, 5>(instruction); // src2 coming first because PICA moment - const u32 idx = getBits<19, 2>(instruction); - const u32 cmpY = getBits<21, 3>(instruction); - const u32 cmpX = getBits<24, 3>(instruction); - const u32 cmpOperations[2] = {cmpX, cmpY}; - - if (idx) Helpers::panic("[PICA] CMP: idx != 0"); - vec4f srcVec1 = getSourceSwizzled<1>(src1, operandDescriptor); - vec4f srcVec2 = getSourceSwizzled<2>(src2, operandDescriptor); - - for (int i = 0; i < 2; i++) { - switch (cmpOperations[i]) { - case 0: // Equal - cmpRegister[i] = srcVec1[i] == srcVec2[i]; - break; - - case 1: // Not equal - cmpRegister[i] = srcVec1[i] != srcVec2[i]; - break; - - case 2: // Less than - cmpRegister[i] = srcVec1[i] < srcVec2[i]; - break; - - case 3: // Less than or equal - cmpRegister[i] = srcVec1[i] <= srcVec2[i]; - break; - - case 4: // Greater than - cmpRegister[i] = srcVec1[i] > srcVec2[i]; - break; - - case 5: // Greater than or equal - cmpRegister[i] = srcVec1[i] >= srcVec2[i]; - break; - - default: { - cmpRegister[i] = true; - break; - } - } - } -} - -void PICAShader::ifc(u32 instruction) { - const u32 dest = getBits<10, 12>(instruction); - - if (isCondTrue(instruction)) { - if (ifIndex >= 8) [[unlikely]] - Helpers::panic("[PICA] Overflowed IF stack"); - - const u32 num = instruction & 0xff; - - auto& block = conditionalInfo[ifIndex++]; - block.endingPC = dest; - block.newPC = dest + num; - } else { - pc = dest; - } -} - -void PICAShader::ifu(u32 instruction) { - const u32 dest = getBits<10, 12>(instruction); - const u32 bit = getBits<22, 4>(instruction); // Bit of the bool uniform to check - - if (boolUniform & (1 << bit)) { - if (ifIndex >= 8) [[unlikely]] - Helpers::panic("[PICA] Overflowed IF stack"); - - const u32 num = instruction & 0xff; - - auto& block = conditionalInfo[ifIndex++]; - block.endingPC = dest; - block.newPC = dest + num; - } else { - pc = dest; - } -} - -void PICAShader::call(u32 instruction) { - if (callIndex >= 4) [[unlikely]] - Helpers::panic("[PICA] Overflowed CALL stack"); - - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - - auto& block = callInfo[callIndex++]; - block.endingPC = dest + num; - block.returnPC = pc; - - pc = dest; -} - -void PICAShader::callc(u32 instruction) { - if (isCondTrue(instruction)) { - call(instruction); // Pls inline - } -} - -void PICAShader::callu(u32 instruction) { - const u32 bit = getBits<22, 4>(instruction); // Bit of the bool uniform to check - - if (boolUniform & (1 << bit)) { - if (callIndex >= 4) [[unlikely]] - Helpers::panic("[PICA] Overflowed CALL stack"); - - const u32 num = instruction & 0xff; - const u32 dest = getBits<10, 12>(instruction); - - auto& block = callInfo[callIndex++]; - block.endingPC = dest + num; - block.returnPC = pc; - - pc = dest; - } -} - -void PICAShader::loop(u32 instruction) { - if (loopIndex >= 4) [[unlikely]] - Helpers::panic("[PICA] Overflowed loop stack"); - - u32 dest = getBits<10, 12>(instruction); - auto& uniform = intUniforms[getBits<22, 2>(instruction)]; // The uniform we'll get loop info from - loopCounter = uniform[1]; - auto& loop = loopInfo[loopIndex++]; - - loop.startingPC = pc; - loop.endingPC = dest + 1; // Loop is inclusive so we need + 1 here - loop.iterations = uniform[0] + 1; - loop.increment = uniform[2]; -} - -void PICAShader::jmpc(u32 instruction) { - if (isCondTrue(instruction)) { - pc = getBits<10, 12>(instruction); - } -} - -void PICAShader::jmpu(u32 instruction) { - const u32 test = (instruction & 1) ^ 1; // If the LSB is 0 we want to compare to true, otherwise compare to false - const u32 dest = getBits<10, 12>(instruction); - const u32 bit = getBits<22, 4>(instruction); // Bit of the bool uniform to check - - if (((boolUniform >> bit) & 1) == test) // Jump if the bool uniform is the value we want - pc = dest; -} \ No newline at end of file diff --git a/src/core/PICA/shader_unit.cpp b/src/core/PICA/shader_unit.cpp deleted file mode 100644 index aa7b4c12..00000000 --- a/src/core/PICA/shader_unit.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include "PICA/shader_unit.hpp" - -#include "cityhash.hpp" - -void ShaderUnit::reset() { - vs.reset(); - gs.reset(); -} - -void PICAShader::reset() { - loadedShader.fill(0); - bufferedShader.fill(0); - operandDescriptors.fill(0); - - boolUniform = 0; - bufferIndex = 0; - floatUniformIndex = 0; - floatUniformWordCount = 0; - opDescriptorIndex = 0; - f32UniformTransfer = false; - - const vec4f zero = vec4f({f24::zero(), f24::zero(), f24::zero(), f24::zero()}); - inputs.fill(zero); - floatUniforms.fill(zero); - outputs.fill(zero); - tempRegisters.fill(zero); - - for (auto& e : intUniforms) { - e[0] = e[1] = e[2] = e[3] = 0; - } - - addrRegister[0] = 0; - addrRegister[1] = 0; - loopCounter = 0; - - codeHashDirty = true; - opdescHashDirty = true; -} \ No newline at end of file diff --git a/src/core/action_replay.cpp b/src/core/action_replay.cpp deleted file mode 100644 index 1ef494a2..00000000 --- a/src/core/action_replay.cpp +++ /dev/null @@ -1,294 +0,0 @@ -#include "action_replay.hpp" - -ActionReplay::ActionReplay(Memory& mem, HIDService& hid) : mem(mem), hid(hid) { reset(); } - -void ActionReplay::reset() { - // Default value of storage regs is 0 - storage1 = 0; - storage2 = 0; - - // TODO: Is the active storage persistent or not? - activeStorage = &storage1; -} - -void ActionReplay::runCheat(const Cheat& cheat) { - // Set offset and data registers to 0 at the start of a cheat - data1 = data2 = offset1 = offset2 = 0; - pc = 0; - ifStackIndex = 0; - loopStackIndex = 0; - running = true; - - activeOffset = &offset1; - activeData = &data1; - - while (running) { - // See if we can fetch 1 64-bit opcode, otherwise we're out of bounds. Cheats seem to end when going out of bounds? - if (pc + 1 >= cheat.size()) { - return; - } - // Fetch instruction - const u32 instruction = cheat[pc++]; - - // Instructions D0000000 00000000 and D2000000 00000000 are unconditional - bool isUnconditional = cheat[pc] == 0 && (instruction == 0xD0000000 || instruction == 0xD2000000); - if (ifStackIndex > 0 && !isUnconditional && !ifStack[ifStackIndex - 1]) { - pc++; // Eat up dummy word - continue; // Skip conditional instructions where the condition is false - } - - runInstruction(cheat, instruction); - } -} - -u8 ActionReplay::read8(u32 addr) { return mem.read8(addr); } -u16 ActionReplay::read16(u32 addr) { return mem.read16(addr); } -u32 ActionReplay::read32(u32 addr) { return mem.read32(addr); } - -// Some AR cheats seem to want to write to unmapped memory or memory that straight up does not exist - -#define MAKE_WRITE_HANDLER(size) \ - void ActionReplay::write##size(u32 addr, u##size value) { \ - auto pointerWrite = mem.getWritePointer(addr); \ - if (pointerWrite) { \ - *(u##size*)pointerWrite = value; \ - } else { \ - auto pointerRead = mem.getReadPointer(addr); \ - if (pointerRead) { \ - *(u##size*)pointerRead = value; \ - } else { \ - Helpers::warn("AR code tried to write to invalid address: %08X\n", addr); \ - } \ - } \ - } - -MAKE_WRITE_HANDLER(8) -MAKE_WRITE_HANDLER(16) -MAKE_WRITE_HANDLER(32) -#undef MAKE_WRITE_HANDLER - -void ActionReplay::runInstruction(const Cheat& cheat, u32 instruction) { - // Top nibble determines the instruction type - const u32 type = instruction >> 28; - - switch (type) { - // 32-bit write to [XXXXXXX + offset] - case 0x0: { - const u32 baseAddr = Helpers::getBits<0, 28>(instruction); - const u32 value = cheat[pc++]; - write32(baseAddr + *activeOffset, value); - break; - } - - // 16-bit write to [XXXXXXX + offset] - case 0x1: { - const u32 baseAddr = Helpers::getBits<0, 28>(instruction); - const u16 value = u16(cheat[pc++]); - write16(baseAddr + *activeOffset, value); - break; - } - - // 8-bit write to [XXXXXXX + offset] - case 0x2: { - const u32 baseAddr = Helpers::getBits<0, 28>(instruction); - const u8 value = u8(cheat[pc++]); - write8(baseAddr + *activeOffset, value); - break; - } - -// clang-format off - #define MAKE_IF_INSTRUCTION(opcode, comparator) \ - case opcode: { \ - const u32 baseAddr = Helpers::getBits<0, 28>(instruction); \ - const u32 imm = cheat[pc++]; \ - const u32 value = read32(baseAddr + *activeOffset); \ - \ - pushConditionBlock(imm comparator value); \ - break; \ - } - - // Greater Than (YYYYYYYY > [XXXXXXX + offset]) (Unsigned) - MAKE_IF_INSTRUCTION(3, >) - - // Less Than (YYYYYYYY < [XXXXXXX + offset]) (Unsigned) - MAKE_IF_INSTRUCTION(4, <) - - // Equal to (YYYYYYYY == [XXXXXXX + offset]) - MAKE_IF_INSTRUCTION(5, ==) - - // Not Equal (YYYYYYYY != [XXXXXXX + offset]) - MAKE_IF_INSTRUCTION(6, !=) - #undef MAKE_IF_INSTRUCTION -// clang-format on - - // BXXXXXXX 00000000 - offset = *(XXXXXXX + offset) - case 0xB: { - const u32 baseAddr = Helpers::getBits<0, 28>(instruction); - *activeOffset = read32(baseAddr + *activeOffset); - - pc++; // Eat up dummy word - break; - } - - case 0xD: executeDType(cheat, instruction); break; - default: Helpers::panic("Unimplemented ActionReplay instruction type %X", type); break; - } -} - -void ActionReplay::executeDType(const Cheat& cheat, u32 instruction) { - switch (instruction) { - case 0xD3000000: offset1 = cheat[pc++]; break; - case 0xD3000001: offset2 = cheat[pc++]; break; - - case 0xD6000000: - write32(*activeOffset + cheat[pc++], u32(*activeData)); - *activeOffset += 4; - break; - - case 0xD6000001: - write32(*activeOffset + cheat[pc++], u32(data1)); - *activeOffset += 4; - break; - - case 0xD6000002: - write32(*activeOffset + cheat[pc++], u32(data2)); - *activeOffset += 4; - break; - - case 0xD7000000: - write16(*activeOffset + cheat[pc++], u16(*activeData)); - *activeOffset += 2; - break; - - case 0xD7000001: - write16(*activeOffset + cheat[pc++], u16(data1)); - *activeOffset += 2; - break; - - case 0xD7000002: - write16(*activeOffset + cheat[pc++], u16(data2)); - *activeOffset += 2; - break; - - case 0xD8000000: - write8(*activeOffset + cheat[pc++], u8(*activeData)); - *activeOffset += 1; - break; - - case 0xD8000001: - write8(*activeOffset + cheat[pc++], u8(data1)); - *activeOffset += 1; - break; - - case 0xD8000002: - write8(*activeOffset + cheat[pc++], u8(data2)); - *activeOffset += 1; - break; - - - case 0xD9000000: *activeData = read32(cheat[pc++] + *activeOffset); break; - case 0xD9000001: data1 = read32(cheat[pc++] + *activeOffset); break; - case 0xD9000002: data2 = read32(cheat[pc++] + *activeOffset); break; - - case 0xDA000000: *activeData = read16(cheat[pc++] + *activeOffset); break; - case 0xDA000001: data1 = read16(cheat[pc++] + *activeOffset); break; - case 0xDA000002: data2 = read16(cheat[pc++] + *activeOffset); break; - - case 0xDB000000: *activeData = read8(cheat[pc++] + *activeOffset); break; - case 0xDB000001: data1 = read8(cheat[pc++] + *activeOffset); break; - case 0xDB000002: data2 = read8(cheat[pc++] + *activeOffset); break; - - case 0xDC000000: *activeOffset += cheat[pc++]; break; - - // DD000000 XXXXXXXX - if KEYPAD has value XXXXXXXX execute next block - case 0xDD000000: { - const u32 mask = cheat[pc++]; - const u32 buttons = hid.getOldButtons(); - - pushConditionBlock((buttons & mask) == mask); - break; - } - - // Offset register ops - case 0xDF000000: { - const u32 subopcode = cheat[pc++]; - switch (subopcode) { - case 0x00000000: activeOffset = &offset1; break; - case 0x00000001: activeOffset = &offset2; break; - case 0x00010000: offset2 = offset1; break; - case 0x00010001: offset1 = offset2; break; - case 0x00020000: data1 = offset1; break; - case 0x00020001: data2 = offset2; break; - default: - Helpers::warn("Unknown ActionReplay offset operation"); - running = false; - break; - } - break; - } - - // Data register operations - case 0xDF000001: { - const u32 subopcode = cheat[pc++]; - switch (subopcode) { - case 0x00000000: activeData = &data1; break; - case 0x00000001: activeData = &data2; break; - - case 0x00010000: data2 = data1; break; - case 0x00010001: data1 = data2; break; - case 0x00020000: offset1 = data1; break; - case 0x00020001: offset2 = data2; break; - default: - Helpers::warn("Unknown ActionReplay data operation"); - running = false; - break; - } - break; - } - - // Storage register operations - case 0xDF000002: { - const u32 subopcode = cheat[pc++]; - switch (subopcode) { - case 0x00000000: activeStorage = &storage1; break; - case 0x00000001: activeStorage = &storage2; break; - - case 0x00010000: data1 = storage1; break; - case 0x00010001: data2 = storage2; break; - case 0x00020000: storage1 = data1; break; - case 0x00020001: storage2 = data2; break; - default: - Helpers::warn("Unknown ActionReplay data operation: %08X", subopcode); - running = false; - break; - } - break; - } - - // Control flow block operations - case 0xD2000000: { - const u32 subopcode = cheat[pc++]; - switch (subopcode) { - // Ends all loop/execute blocks - case 0: - loopStackIndex = 0; - ifStackIndex = 0; - break; - default: Helpers::panic("Unknown ActionReplay control flow operation: %08X", subopcode); break; - } - break; - } - - default: Helpers::panic("ActionReplay: Unimplemented d-type opcode: %08X", instruction); break; - } -} - -void ActionReplay::pushConditionBlock(bool condition) { - if (ifStackIndex >= 32) { - Helpers::warn("ActionReplay if stack overflowed"); - running = false; - return; - } - - ifStack[ifStackIndex++] = condition; -} \ No newline at end of file diff --git a/src/core/applets/applet.cpp b/src/core/applets/applet.cpp deleted file mode 100644 index e69de29b..00000000 diff --git a/src/core/applets/applet_manager.cpp b/src/core/applets/applet_manager.cpp deleted file mode 100644 index cdb19319..00000000 --- a/src/core/applets/applet_manager.cpp +++ /dev/null @@ -1,61 +0,0 @@ -#include "applets/applet_manager.hpp" - -#include "services/apt.hpp" - -using namespace Applets; - -AppletManager::AppletManager(Memory& mem) : miiSelector(mem, nextParameter), swkbd(mem, nextParameter), error(mem, nextParameter) {} - -void AppletManager::reset() { - nextParameter = std::nullopt; - - miiSelector.reset(); - swkbd.reset(); - error.reset(); -} - -AppletBase* AppletManager::getApplet(u32 id) { - switch (id) { - case AppletIDs::MiiSelector: - case AppletIDs::MiiSelector2: return &miiSelector; - - case AppletIDs::SoftwareKeyboard: - case AppletIDs::SoftwareKeyboard2: return &swkbd; - - case AppletIDs::ErrDisp: - case AppletIDs::ErrDisp2: return &error; - - default: return nullptr; - } -} - -Applets::Parameter AppletManager::glanceParameter() { - if (nextParameter) { - // Copy parameter - Applets::Parameter param = nextParameter.value(); - // APT module clears next parameter even for GlanceParameter for these 2 signals - if (param.signal == static_cast(APTSignal::DspWakeup) || param.signal == static_cast(APTSignal::DspSleep)) { - nextParameter = std::nullopt; - } - - return param; - } - - // Default return value. This is legacy code from before applets were implemented. TODO: Update it - else { - return Applets::Parameter{ - .senderID = 0, - .destID = Applets::AppletIDs::Application, - .signal = static_cast(APTSignal::Wakeup), - .data = {}, - }; - } -} - -Applets::Parameter AppletManager::receiveParameter() { - Applets::Parameter param = glanceParameter(); - // ReceiveParameter always clears nextParameter whereas glanceParameter does not - nextParameter = std::nullopt; - - return param; -} \ No newline at end of file diff --git a/src/core/applets/error_applet.cpp b/src/core/applets/error_applet.cpp deleted file mode 100644 index 5acbcbba..00000000 --- a/src/core/applets/error_applet.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "applets/error_applet.hpp" -#include "kernel/handles.hpp" - -using namespace Applets; - -void ErrorApplet::reset() {} - -Result::HorizonResult ErrorApplet::start(const MemoryBlock* sharedMem, const std::vector& parameters, u32 appID) { - Applets::Parameter param = Applets::Parameter{ - .senderID = appID, - .destID = AppletIDs::Application, - .signal = static_cast(APTSignal::WakeupByExit), - .object = 0, - .data = parameters, // TODO: Figure out how the data format for this applet - }; - - nextParameter = param; - return Result::Success; -} - -Result::HorizonResult ErrorApplet::receiveParameter(const Applets::Parameter& parameter) { - Applets::Parameter param = Applets::Parameter{ - .senderID = parameter.destID, - .destID = AppletIDs::Application, - .signal = static_cast(APTSignal::Response), - .object = KernelHandles::APTCaptureSharedMemHandle, - .data = {}, - }; - - nextParameter = param; - return Result::Success; -} \ No newline at end of file diff --git a/src/core/applets/mii_selector.cpp b/src/core/applets/mii_selector.cpp deleted file mode 100644 index ab6455fc..00000000 --- a/src/core/applets/mii_selector.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include "applets/mii_selector.hpp" - -#include -#include - -#include "kernel/handles.hpp" - -using namespace Applets; - -void MiiSelectorApplet::reset() {} -Result::HorizonResult MiiSelectorApplet::start(const MemoryBlock* sharedMem, const std::vector& parameters, u32 appID) { - // Get mii configuration from the application - std::memcpy(&config, ¶meters[0], sizeof(config)); - - Applets::Parameter param = Applets::Parameter{ - .senderID = appID, - .destID = AppletIDs::Application, - .signal = static_cast(APTSignal::WakeupByExit), - .object = 0, - }; - - // Thanks to Citra devs as always for the default mii data and other applet help - output = getDefaultMii(); - output.returnCode = 0; // Success - output.selectedGuestMiiIndex = std::numeric_limits::max(); - output.miiChecksum = boost::crc<16, 0x1021, 0, 0, false, false>(&output.selectedMiiData, sizeof(MiiData) + sizeof(output.unknown1)); - - // Copy output into the response parameter - param.data.resize(sizeof(output)); - std::memcpy(¶m.data[0], &output, sizeof(output)); - - nextParameter = param; - return Result::Success; -} - -Result::HorizonResult MiiSelectorApplet::receiveParameter(const Applets::Parameter& parameter) { - Applets::Parameter param = Applets::Parameter{ - .senderID = parameter.destID, - .destID = AppletIDs::Application, - .signal = static_cast(APTSignal::Response), - .object = KernelHandles::APTCaptureSharedMemHandle, - .data = {}, - }; - - nextParameter = param; - return Result::Success; -} - -MiiResult MiiSelectorApplet::getDefaultMii() { - // This data was obtained from Citra - MiiData miiData; - miiData.version = 0x03; - miiData.miiOptions = 0x00; - miiData.miiPos = 0x10; - miiData.consoleID = 0x30; - miiData.systemID = 0xD285B6B300C8850A; - miiData.miiID = 0x98391EE4; - miiData.creatorMAC = {0x40, 0xF4, 0x07, 0xB7, 0x37, 0x10}; - miiData.padding = 0x0000; - miiData.miiDetails = 0xA600; - miiData.miiName = {'P', 'a', 'n', 'd', 'a', '3', 'D', 'S', 0x0, 0x0}; - miiData.height = 0x40; - miiData.width = 0x40; - miiData.faceStyle = 0x00; - miiData.faceDetails = 0x00; - miiData.hairStyle = 0x21; - miiData.hairDetails = 0x01; - miiData.eyeDetails = 0x02684418; - miiData.eyebrowDetails = 0x26344614; - miiData.noseDetails = 0x8112; - miiData.mouthDetails = 0x1768; - miiData.moustacheDetails = 0x0D00; - miiData.beardDetails = 0x0029; - miiData.glassesDetails = 0x0052; - miiData.moleDetails = 0x4850; - miiData.authorName = {u'B', u'O', u'N', u'K', u'E', u'R'}; - - MiiResult result; - result.returnCode = 0x0; - result.isGuestMiiSelected = 0x0; - result.selectedGuestMiiIndex = std::numeric_limits::max(); - result.selectedMiiData = miiData; - result.guestMiiName.fill(0x0); - - return result; -} diff --git a/src/core/applets/software_keyboard.cpp b/src/core/applets/software_keyboard.cpp deleted file mode 100644 index 4a91b790..00000000 --- a/src/core/applets/software_keyboard.cpp +++ /dev/null @@ -1,93 +0,0 @@ -#include "applets/software_keyboard.hpp" - -#include -#include - -#include "kernel/handles.hpp" - -using namespace Applets; - -void SoftwareKeyboardApplet::reset() {} - -Result::HorizonResult SoftwareKeyboardApplet::receiveParameter(const Applets::Parameter& parameter) { - switch (parameter.signal) { - // Signal == request -> Applet is asking swkbd for a shared memory handle for backing up the framebuffer before opening the applet - case u32(APTSignal::Request): { - Applets::Parameter param = Applets::Parameter{ - .senderID = parameter.destID, - .destID = AppletIDs::Application, - .signal = static_cast(APTSignal::Response), - .object = KernelHandles::APTCaptureSharedMemHandle, - .data = {}, - }; - - nextParameter = param; - break; - } - - default: Helpers::panic("Unimplemented swkbd signal %d\n", parameter.signal); - } - - return Result::Success; -} - -Result::HorizonResult SoftwareKeyboardApplet::start(const MemoryBlock* sharedMem, const std::vector& parameters, u32 appID) { - if (parameters.size() < sizeof(SoftwareKeyboardConfig)) { - Helpers::warn("SoftwareKeyboard::Start: Invalid size for keyboard configuration"); - return Result::Success; - } - - if (sharedMem == nullptr) { - Helpers::warn("SoftwareKeyboard: Missing shared memory"); - return Result::Success; - } - - // Get keyboard configuration from the application - std::memcpy(&config, ¶meters[0], sizeof(config)); - - const std::u16string text = u"Pand"; - u32 textAddress = sharedMem->addr; - - // Copy text to shared memory the app gave us - for (u32 i = 0; i < text.size(); i++) { - mem.write16(textAddress, u16(text[i])); - textAddress += sizeof(u16); - } - mem.write16(textAddress, 0); // Write UTF-16 null terminator - - // Temporarily hardcode the pressed button to be the firs tone - switch (config.numButtonsM1) { - case SoftwareKeyboardButtonConfig::SingleButton: config.returnCode = SoftwareKeyboardResult::D0Click; break; - case SoftwareKeyboardButtonConfig::DualButton: config.returnCode = SoftwareKeyboardResult::D1Click1; break; - case SoftwareKeyboardButtonConfig::TripleButton: config.returnCode = SoftwareKeyboardResult::D2Click2; break; - case SoftwareKeyboardButtonConfig::NoButton: config.returnCode = SoftwareKeyboardResult::None; break; - default: Helpers::warn("Software keyboard: Invalid button mode specification"); break; - } - - config.textOffset = 0; - config.textLength = static_cast(text.size()); - static_assert(offsetof(SoftwareKeyboardConfig, textOffset) == 324); - static_assert(offsetof(SoftwareKeyboardConfig, textLength) == 328); - - if (config.filterFlags & SoftwareKeyboardFilter::Callback) { - Helpers::warn("Unimplemented software keyboard profanity callback"); - } - - closeKeyboard(appID); - return Result::Success; -} - -void SoftwareKeyboardApplet::closeKeyboard(u32 appID) { - Applets::Parameter param = Applets::Parameter{ - .senderID = appID, - .destID = AppletIDs::Application, - .signal = static_cast(APTSignal::WakeupByExit), - .object = 0, - }; - - // Copy software keyboard configuration into the response parameter - param.data.resize(sizeof(config)); - std::memcpy(¶m.data[0], &config, sizeof(config)); - - nextParameter = param; -} \ No newline at end of file diff --git a/src/core/audio/dsp_core.cpp b/src/core/audio/dsp_core.cpp deleted file mode 100644 index e4162e93..00000000 --- a/src/core/audio/dsp_core.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include "audio/dsp_core.hpp" - -#include "audio/null_core.hpp" -#include "audio/teakra_core.hpp" - -#include -#include -#include - -std::unique_ptr Audio::makeDSPCore(DSPCore::Type type, Memory& mem, Scheduler& scheduler, DSPService& dspService) { - std::unique_ptr core; - - switch (type) { - case DSPCore::Type::Null: core = std::make_unique(mem, scheduler, dspService); break; - case DSPCore::Type::Teakra: core = std::make_unique(mem, scheduler, dspService); break; - - default: - Helpers::warn("Invalid DSP core selected!"); - core = std::make_unique(mem, scheduler, dspService); - break; - } - - mem.setDSPMem(core->getDspMemory()); - return core; -} - -Audio::DSPCore::Type Audio::DSPCore::typeFromString(std::string inString) { - // Transform to lower-case to make the setting case-insensitive - std::transform(inString.begin(), inString.end(), inString.begin(), [](unsigned char c) { return std::tolower(c); }); - - static const std::unordered_map map = { - {"null", Audio::DSPCore::Type::Null}, - {"none", Audio::DSPCore::Type::Null}, - {"lle", Audio::DSPCore::Type::Teakra}, - {"teakra", Audio::DSPCore::Type::Teakra}, - }; - - if (auto search = map.find(inString); search != map.end()) { - return search->second; - } - - printf("Invalid DSP type. Defaulting to null\n"); - return Audio::DSPCore::Type::Null; -} - -const char* Audio::DSPCore::typeToString(Audio::DSPCore::Type type) { - switch (type) { - case Audio::DSPCore::Type::Null: return "null"; - case Audio::DSPCore::Type::Teakra: return "teakra"; - default: return "invalid"; - } -} diff --git a/src/core/audio/miniaudio_device.cpp b/src/core/audio/miniaudio_device.cpp deleted file mode 100644 index fa36cb84..00000000 --- a/src/core/audio/miniaudio_device.cpp +++ /dev/null @@ -1,143 +0,0 @@ -#include "audio/miniaudio_device.hpp" - -#include "helpers.hpp" - -MiniAudioDevice::MiniAudioDevice() : initialized(false), running(false), samples(nullptr) {} - -void MiniAudioDevice::init(Samples& samples, bool safe) { - this->samples = &samples; - running = false; - - // Probe for device and available backends and initialize audio - ma_backend backends[ma_backend_null + 1]; - uint count = 0; - - if (safe) { - backends[0] = ma_backend_null; - count = 1; - } else { - bool found = false; - for (uint i = 0; i <= ma_backend_null; i++) { - ma_backend backend = ma_backend(i); - if (!ma_is_backend_enabled(backend)) { - continue; - } - - backends[count++] = backend; - - // TODO: Make backend selectable here - found = true; - //count = 1; - //backends[0] = backend; - } - - if (!found) { - initialized = false; - - Helpers::warn("No valid audio backend found\n"); - return; - } - } - - if (ma_context_init(backends, count, nullptr, &context) != MA_SUCCESS) { - initialized = false; - - Helpers::warn("Unable to initialize audio context"); - return; - } - audioDevices.clear(); - - struct UserContext { - MiniAudioDevice* miniAudio; - ma_device_config& config; - bool found = false; - }; - UserContext userContext = {.miniAudio = this, .config = deviceConfig}; - - ma_context_enumerate_devices( - &context, - [](ma_context* pContext, ma_device_type deviceType, const ma_device_info* pInfo, void* pUserData) -> ma_bool32 { - if (deviceType != ma_device_type_playback) { - return true; - } - - UserContext* userContext = reinterpret_cast(pUserData); - userContext->miniAudio->audioDevices.push_back(pInfo->name); - - // TODO: Check if this is the device we want here - userContext->config.playback.pDeviceID = &pInfo->id; - userContext->found = true; - return true; - }, - &userContext - ); - - if (!userContext.found) { - Helpers::warn("MiniAudio: Device not found"); - } - - deviceConfig = ma_device_config_init(ma_device_type_playback); - // The 3DS outputs s16 stereo audio @ 32768 Hz - deviceConfig.playback.format = ma_format_s16; - deviceConfig.playback.channels = channelCount; - deviceConfig.sampleRate = sampleRate; - //deviceConfig.periodSizeInFrames = 64; - //deviceConfig.periods = 16; - deviceConfig.pUserData = this; - deviceConfig.aaudio.usage = ma_aaudio_usage_game; - deviceConfig.wasapi.noAutoConvertSRC = true; - - deviceConfig.dataCallback = [](ma_device* device, void* out, const void* input, ma_uint32 frameCount) { - auto self = reinterpret_cast(device->pUserData); - s16* output = reinterpret_cast(out); - - // Wait until there's enough samples to pop - while (self->samples->size() < frameCount * channelCount) { - // If audio output is disabled from the emulator thread, make sure that this callback will return and not hang - if (!self->running) { - return; - } - } - - self->samples->pop(output, frameCount * channelCount); - }; - - if (ma_device_init(&context, &deviceConfig, &device) != MA_SUCCESS) { - Helpers::warn("Unable to initialize audio device"); - initialized = false; - return; - } - - initialized = true; -} - -void MiniAudioDevice::start() { - if (!initialized) { - Helpers::warn("MiniAudio device not initialized, won't start"); - return; - } - - // Ignore the call to start if the device is already running - if (!running) { - if (ma_device_start(&device) == MA_SUCCESS) { - running = true; - } else { - Helpers::warn("Failed to start audio device"); - } - } -} - -void MiniAudioDevice::stop() { - if (!initialized) { - Helpers::warn("MiniAudio device not initialized, can't start"); - return; - } - - if (running) { - running = false; - - if (ma_device_stop(&device) != MA_SUCCESS) { - Helpers::warn("Failed to stop audio device"); - } - } -} diff --git a/src/core/audio/null_core.cpp b/src/core/audio/null_core.cpp deleted file mode 100644 index ec073ae7..00000000 --- a/src/core/audio/null_core.cpp +++ /dev/null @@ -1,166 +0,0 @@ -#include "audio/null_core.hpp" - -#include "services/dsp.hpp" - -namespace Audio { - namespace DSPPipeType { - enum : u32 { - Debug = 0, - DMA = 1, - Audio = 2, - Binary = 3, - }; - } - - void NullDSP::resetAudioPipe() { - // Hardcoded responses for now - // These are DSP DRAM offsets for various variables - // https://www.3dbrew.org/wiki/DSP_Memory_Region - static constexpr std::array responses = { - 0x000F, // Number of responses - 0xBFFF, // Frame counter - 0x9E92, // Source configs - 0x8680, // Source statuses - 0xA792, // ADPCM coefficients - 0x9430, // DSP configs - 0x8400, // DSP status - 0x8540, // Final samples - 0x9492, // Intermediate mix samples - 0x8710, // Compressor - 0x8410, // Debug - 0xA912, // ?? - 0xAA12, // ?? - 0xAAD2, // ?? - 0xAC52, // Surround sound biquad filter 1 - 0xAC5C // Surround sound biquad filter 2 - }; - - std::vector& audioPipe = pipeData[DSPPipeType::Audio]; - audioPipe.resize(responses.size() * sizeof(u16)); - - // Push back every response to the audio pipe - size_t index = 0; - for (auto e : responses) { - audioPipe[index++] = e & 0xff; - audioPipe[index++] = e >> 8; - } - } - - void NullDSP::reset() { - loaded = false; - for (auto& e : pipeData) { - e.clear(); - } - - // Note: Reset audio pipe AFTER resetting all pipes, otherwise the new data will be yeeted - resetAudioPipe(); - } - - void NullDSP::loadComponent(std::vector& data, u32 programMask, u32 dataMask) { - if (loaded) { - Helpers::warn("Loading DSP component when already loaded"); - } - - loaded = true; - scheduler.addEvent(Scheduler::EventType::RunDSP, scheduler.currentTimestamp + Audio::cyclesPerFrame); - } - - void NullDSP::unloadComponent() { - if (!loaded) { - Helpers::warn("Audio: unloadComponent called without a running program"); - } - - loaded = false; - scheduler.removeEvent(Scheduler::EventType::RunDSP); - } - - void NullDSP::runAudioFrame() { - // Signal audio pipe when an audio frame is done - if (dspState == DSPState::On) [[likely]] { - dspService.triggerPipeEvent(DSPPipeType::Audio); - } - - scheduler.addEvent(Scheduler::EventType::RunDSP, scheduler.currentTimestamp + Audio::cyclesPerFrame); - } - - u16 NullDSP::recvData(u32 regId) { - if (regId != 0) { - Helpers::panic("Audio: invalid register in null frontend"); - } - - return dspState == DSPState::On; - } - - void NullDSP::writeProcessPipe(u32 channel, u32 size, u32 buffer) { - enum class StateChange : u8 { - Initialize = 0, - Shutdown = 1, - Wakeup = 2, - Sleep = 3, - }; - - switch (channel) { - case DSPPipeType::Audio: { - if (size != 4) { - printf("Invalid size written to DSP Audio Pipe\n"); - break; - } - - // Get new state - const u8 state = mem.read8(buffer); - if (state > 3) { - log("WriteProcessPipe::Audio: Unknown state change type"); - } else { - switch (static_cast(state)) { - case StateChange::Initialize: - // TODO: Other initialization stuff here - dspState = DSPState::On; - resetAudioPipe(); - - dspService.triggerPipeEvent(DSPPipeType::Audio); - break; - - case StateChange::Shutdown: - dspState = DSPState::Off; - break; - - default: Helpers::panic("Unimplemented DSP audio pipe state change %d", state); - } - } - break; - } - - case DSPPipeType::Binary: - Helpers::warn("Unimplemented write to binary pipe! Size: %d\n", size); - - // This pipe and interrupt are normally used for requests like AAC decode - dspService.triggerPipeEvent(DSPPipeType::Binary); - break; - - default: log("Audio::NullDSP: Wrote to unimplemented pipe %d\n", channel); break; - } - } - - std::vector NullDSP::readPipe(u32 pipe, u32 peer, u32 size, u32 buffer) { - if (size & 1) Helpers::panic("Tried to read odd amount of bytes from DSP pipe"); - if (pipe >= pipeCount || size > 0xffff) { - return {}; - } - - if (pipe != DSPPipeType::Audio) { - log("Reading from non-audio pipe! This might be broken, might need to check what pipe is being read from and implement writing to it\n"); - } - - std::vector& data = pipeData[pipe]; - size = std::min(size, data.size()); // Clamp size to the maximum available data size - - if (size == 0) { - return {}; - } - - // Return "size" bytes from the audio pipe and erase them - std::vector out(data.begin(), data.begin() + size); - data.erase(data.begin(), data.begin() + size); - return out; - } -} // namespace Audio diff --git a/src/core/audio/teakra_core.cpp b/src/core/audio/teakra_core.cpp deleted file mode 100644 index da2e5a5a..00000000 --- a/src/core/audio/teakra_core.cpp +++ /dev/null @@ -1,345 +0,0 @@ -#include "audio/teakra_core.hpp" - -#include -#include -#include -#include - -#include "services/dsp.hpp" - -using namespace Audio; - -struct Dsp1 { - // All sizes are in bytes unless otherwise specified - u8 signature[0x100]; - u8 magic[4]; - u32 size; - u8 codeMemLayout; - u8 dataMemLayout; - u8 pad[3]; - u8 specialType; - u8 segmentCount; - u8 flags; - u32 specialStart; - u32 specialSize; - u64 zeroBits; - - struct Segment { - u32 offs; // Offset of the segment data - u32 dspAddr; // Start of the segment in 16-bit units - u32 size; - u8 pad[3]; - u8 type; - u8 hash[0x20]; - }; - - Segment segments[10]; -}; - -TeakraDSP::TeakraDSP(Memory& mem, Scheduler& scheduler, DSPService& dspService) - : DSPCore(mem, scheduler, dspService), pipeBaseAddr(0), running(false) { - // Set up callbacks for Teakra - Teakra::AHBMCallback ahbm; - - // The AHBM read handlers read from paddrs rather than vaddrs which mem.read8 and the like use - // TODO: When we implement more efficient paddr accesses with a page table or similar, these handlers - // Should be made to properly use it, since this method is hacky and will segfault if given an invalid addr - ahbm.read8 = [&](u32 addr) -> u8 { return mem.getFCRAM()[addr - PhysicalAddrs::FCRAM]; }; - ahbm.read16 = [&](u32 addr) -> u16 { return *(u16*)&mem.getFCRAM()[addr - PhysicalAddrs::FCRAM]; }; - ahbm.read32 = [&](u32 addr) -> u32 { return *(u32*)&mem.getFCRAM()[addr - PhysicalAddrs::FCRAM]; }; - - ahbm.write8 = [&](u32 addr, u8 value) { mem.getFCRAM()[addr - PhysicalAddrs::FCRAM] = value; }; - ahbm.write16 = [&](u32 addr, u16 value) { *(u16*)&mem.getFCRAM()[addr - PhysicalAddrs::FCRAM] = value; }; - ahbm.write32 = [&](u32 addr, u32 value) { *(u32*)&mem.getFCRAM()[addr - PhysicalAddrs::FCRAM] = value; }; - - teakra.SetAHBMCallback(ahbm); - teakra.SetAudioCallback([](std::array sample) { /* Do nothing */ }); - - // Set up event handlers. These handlers forward a hardware interrupt to the DSP service, which is responsible - // For triggering the appropriate DSP kernel events - // Note: It's important not to fire any events if "loaded" is false, ie if we haven't fully loaded a DSP component yet - teakra.SetRecvDataHandler(0, [&]() { - if (loaded) { - dspService.triggerInterrupt0(); - } - }); - - teakra.SetRecvDataHandler(1, [&]() { - if (loaded) { - dspService.triggerInterrupt1(); - } - }); - - auto processPipeEvent = [&](bool dataEvent) { - if (!loaded) { - return; - } - - if (dataEvent) { - signalledData = true; - } else { - if ((teakra.GetSemaphore() & 0x8000) == 0) { - return; - } - - signalledSemaphore = true; - } - - if (signalledSemaphore && signalledData) { - signalledSemaphore = signalledData = false; - - u16 slot = teakra.RecvData(2); - u16 side = slot & 1; - u16 pipe = slot / 2; - - if (side != static_cast(PipeDirection::DSPtoCPU)) { - return; - } - - if (pipe == 0) { - Helpers::warn("Pipe event for debug pipe: Should be ignored and the data should be flushed"); - } else { - dspService.triggerPipeEvent(pipe); - } - } - }; - - teakra.SetRecvDataHandler(2, [processPipeEvent]() { processPipeEvent(true); }); - teakra.SetSemaphoreHandler([processPipeEvent]() { processPipeEvent(false); }); -} - -void TeakraDSP::reset() { - teakra.Reset(); - running = false; - loaded = false; - signalledData = signalledSemaphore = false; - - audioFrameIndex = 0; -} - -void TeakraDSP::setAudioEnabled(bool enable) { - if (audioEnabled != enable) { - audioEnabled = enable; - - // Set the appropriate audio callback for Teakra - if (audioEnabled) { - teakra.SetAudioCallback([this](std::array sample) { - audioFrame[audioFrameIndex++] = sample[0]; - audioFrame[audioFrameIndex++] = sample[1]; - - // Push our samples at the end of an audio frame - if (audioFrameIndex >= audioFrame.size()) { - audioFrameIndex -= audioFrame.size(); - - // Wait until we've actually got room to do so - while (sampleBuffer.size() + 2 > sampleBuffer.Capacity()) { - std::this_thread::sleep_for(std::chrono::milliseconds{1}); - } - - sampleBuffer.push(audioFrame.data(), audioFrame.size()); - } - }); - } else { - teakra.SetAudioCallback([](std::array sample) { /* Do nothing */ }); - } - } -} - -// https://github.com/citra-emu/citra/blob/master/src/audio_core/lle/lle.cpp -void TeakraDSP::writeProcessPipe(u32 channel, u32 size, u32 buffer) { - size &= 0xffff; - - PipeStatus status = getPipeStatus(channel, PipeDirection::CPUtoDSP); - bool needUpdate = false; // Do we need to update the pipe status and catch up Teakra? - - std::vector data; - data.reserve(size); - - // Read data to write - for (int i = 0; i < size; i++) { - const u8 byte = mem.read8(buffer + i); - data.push_back(byte); - } - u8* dataPointer = data.data(); - - while (size != 0) { - if (status.isFull()) { - Helpers::warn("Teakra: Writing to full pipe"); - } - - // Calculate begin/end/size for write - const u16 writeEnd = status.isWrapped() ? (status.readPointer & PipeStatus::pointerMask) : status.byteSize; - const u16 writeBegin = status.writePointer & PipeStatus::pointerMask; - const u16 writeSize = std::min(u16(size), writeEnd - writeBegin); - - if (writeEnd <= writeBegin) [[unlikely]] { - Helpers::warn("Teakra: Writing to pipe but end <= start"); - } - - // Write data to pipe, increment write and buffer pointers, decrement size - std::memcpy(getDataPointer(status.address * 2 + writeBegin), dataPointer, writeSize); - dataPointer += writeSize; - status.writePointer += writeSize; - size -= writeSize; - - if ((status.writePointer & PipeStatus::pointerMask) > status.byteSize) [[unlikely]] { - Helpers::warn("Teakra: Writing to pipe but write > size"); - } - - if ((status.writePointer & PipeStatus::pointerMask) == status.byteSize) { - status.writePointer &= PipeStatus::wrapBit; - status.writePointer ^= PipeStatus::wrapBit; - } - needUpdate = true; - } - - if (needUpdate) { - updatePipeStatus(status); - while (!teakra.SendDataIsEmpty(2)) { - runSlice(); - } - - teakra.SendData(2, status.slot); - } -} - -std::vector TeakraDSP::readPipe(u32 channel, u32 peer, u32 size, u32 buffer) { - size &= 0xffff; - - PipeStatus status = getPipeStatus(channel, PipeDirection::DSPtoCPU); - - std::vector pipeData(size); - u8* dataPointer = pipeData.data(); - bool needUpdate = false; // Do we need to update the pipe status and catch up Teakra? - - while (size != 0) { - if (status.isEmpty()) [[unlikely]] { - Helpers::warn("Teakra: Reading from empty pipe"); - return pipeData; - } - - // Read as many bytes as possible - const u16 readEnd = status.isWrapped() ? status.byteSize : (status.writePointer & PipeStatus::pointerMask); - const u16 readBegin = status.readPointer & PipeStatus::pointerMask; - const u16 readSize = std::min(u16(size), readEnd - readBegin); - - // Copy bytes to the output vector, increment the read and vector pointers and decrement the size appropriately - std::memcpy(dataPointer, getDataPointer(status.address * 2 + readBegin), readSize); - dataPointer += readSize; - status.readPointer += readSize; - size -= readSize; - - if ((status.readPointer & PipeStatus::pointerMask) > status.byteSize) [[unlikely]] { - Helpers::warn("Teakra: Reading from pipe but read > size"); - } - - if ((status.readPointer & PipeStatus::pointerMask) == status.byteSize) { - status.readPointer &= PipeStatus::wrapBit; - status.readPointer ^= PipeStatus::wrapBit; - } - - needUpdate = true; - } - - if (needUpdate) { - updatePipeStatus(status); - while (!teakra.SendDataIsEmpty(2)) { - runSlice(); - } - - teakra.SendData(2, status.slot); - } - - return pipeData; -} - -void TeakraDSP::loadComponent(std::vector& data, u32 programMask, u32 dataMask) { - // TODO: maybe move this to the DSP service - if (loaded) { - Helpers::warn("Loading DSP component when already loaded"); - return; - } - - teakra.Reset(); - running = true; - - u8* dspCode = teakra.GetDspMemory().data(); - u8* dspData = dspCode + 0x40000; - - Dsp1 dsp1; - std::memcpy(&dsp1, data.data(), sizeof(dsp1)); - - // TODO: verify DSP1 signature - - // Load DSP segments to DSP RAM - // TODO: verify hashes - for (uint i = 0; i < dsp1.segmentCount; i++) { - auto& segment = dsp1.segments[i]; - u32 addr = segment.dspAddr << 1; - u8* src = data.data() + segment.offs; - u8* dst = nullptr; - - switch (segment.type) { - case 0: - case 1: dst = dspCode + addr; break; - default: dst = dspData + addr; break; - } - - std::memcpy(dst, src, segment.size); - } - - bool syncWithDsp = dsp1.flags & 0x1; - bool loadSpecialSegment = (dsp1.flags >> 1) & 0x1; - - // TODO: how does the special segment work? - if (loadSpecialSegment) { - log("LoadComponent: special segment not supported"); - } - - if (syncWithDsp) { - // Wait for the DSP to reply with 1s in all RECV registers - for (int i = 0; i < 3; i++) { - do { - while (!teakra.RecvDataIsReady(i)) { - runSlice(); - } - } while (teakra.RecvData(i) != 1); - } - } - - // Retrieve the pipe base address - while (!teakra.RecvDataIsReady(2)) { - runSlice(); - } - pipeBaseAddr = teakra.RecvData(2); - - // Schedule next DSP event - scheduler.addEvent(Scheduler::EventType::RunDSP, scheduler.currentTimestamp + Audio::lleSlice * 2); - loaded = true; -} - -void TeakraDSP::unloadComponent() { - if (!loaded) { - Helpers::warn("Audio: unloadComponent called without a running program"); - return; - } - loaded = false; - // Stop scheduling DSP events - scheduler.removeEvent(Scheduler::EventType::RunDSP); - - // Wait for SEND2 to be ready, then send the shutdown command to the DSP - while (!teakra.SendDataIsEmpty(2)) { - runSlice(); - } - - teakra.SendData(2, 0x8000); - - // Wait for shutdown to be acknowledged - while (!teakra.RecvDataIsReady(2)) { - runSlice(); - } - - // Read the value and discard it, completing shutdown - teakra.RecvData(2); - running = false; -} diff --git a/src/core/cheats.cpp b/src/core/cheats.cpp deleted file mode 100644 index 7b8b71c2..00000000 --- a/src/core/cheats.cpp +++ /dev/null @@ -1,96 +0,0 @@ -#include "cheats.hpp" -#include "swap.hpp" - -Cheats::Cheats(Memory& mem, HIDService& hid) : ar(mem, hid) { reset(); } - -void Cheats::reset() { - clear(); // Clear loaded cheats - ar.reset(); // Reset ActionReplay -} - -u32 Cheats::addCheat(const Cheat& cheat) { - cheatsLoaded = true; - - // Find an empty slot if a cheat was previously removed - for (size_t i = 0; i < cheats.size(); i++) { - if (cheats[i].type == CheatType::None) { - cheats[i] = cheat; - return i; - } - } - - // Otherwise, just add a new slot - cheats.push_back(cheat); - return cheats.size() - 1; -} - -u32 Cheats::addCheat(const u8* data, size_t size) { - if ((size % 8) != 0) { - return badCheatHandle; - } - - Cheats::Cheat cheat; - cheat.enabled = true; - cheat.type = Cheats::CheatType::ActionReplay; - - for (size_t i = 0; i < size; i += 8) { - auto read32 = [](const u8* ptr) { return (u32(ptr[3]) << 24) | (u32(ptr[2]) << 16) | (u32(ptr[1]) << 8) | u32(ptr[0]); }; - - // Data is passed to us in big endian so we bswap - u32 firstWord = Common::swap32(read32(data + i)); - u32 secondWord = Common::swap32(read32(data + i + 4)); - cheat.instructions.insert(cheat.instructions.end(), {firstWord, secondWord}); - } - - return addCheat(cheat); -} - -void Cheats::removeCheat(u32 id) { - if (id >= cheats.size()) { - return; - } - - // Not using std::erase because we don't want to invalidate cheat IDs - cheats[id].type = CheatType::None; - cheats[id].instructions.clear(); - - // Check if no cheats are loaded - for (const auto& cheat : cheats) { - if (cheat.type != CheatType::None) return; - } - - cheatsLoaded = false; -} - -void Cheats::enableCheat(u32 id) { - if (id < cheats.size()) { - cheats[id].enabled = true; - } -} - -void Cheats::disableCheat(u32 id) { - if (id < cheats.size()) { - cheats[id].enabled = false; - } -} - -void Cheats::clear() { - cheats.clear(); - cheatsLoaded = false; -} - -void Cheats::run() { - for (const Cheat& cheat : cheats) { - if (!cheat.enabled) continue; - - switch (cheat.type) { - case CheatType::ActionReplay: { - ar.runCheat(cheat.instructions); - break; - } - - case CheatType::None: break; - default: Helpers::panic("Unknown cheat device!"); - } - } -} \ No newline at end of file diff --git a/src/core/crypto/aes_engine.cpp b/src/core/crypto/aes_engine.cpp deleted file mode 100644 index f4bf3494..00000000 --- a/src/core/crypto/aes_engine.cpp +++ /dev/null @@ -1,83 +0,0 @@ -#include -#include - -#include "crypto/aes_engine.hpp" -#include "helpers.hpp" - -namespace Crypto { - void AESEngine::loadKeys(const std::filesystem::path& path) { - std::ifstream file(path, std::ios::in); - - if (file.fail()) { - Helpers::warn("Keys: Couldn't read key file: %s", path.c_str()); - return; - } - - while (!file.eof()) { - std::string line; - std::getline(file, line); - - // Skip obvious invalid lines - if (line.empty() || line.starts_with("#")) { - continue; - } - - const auto parts = Helpers::split(line, '='); - if (parts.size() != 2) { - Helpers::warn("Keys: Failed to parse %s", line.c_str()); - continue; - } - - const std::string& name = parts[0]; - const std::string& rawKeyHex = parts[1]; - - std::size_t slotId; - char keyType; - - bool is_generator = name == "generator"; - if (!is_generator && std::sscanf(name.c_str(), "slot0x%zXKey%c", &slotId, &keyType) != 2) { - Helpers::warn("Keys: Ignoring unknown key %s", name.c_str()); - continue; - } - - auto key = createKeyFromHex(rawKeyHex); - - if (!key.has_value()) { - Helpers::warn("Keys: Failed to parse raw key %s", rawKeyHex.c_str()); - continue; - } - - if (is_generator) { - m_generator = key; - continue; - } - - if (slotId >= AesKeySlotCount) { - Helpers::warn("Keys: Invalid key slot id %u", slotId); - continue; - } - - switch (keyType) { - case 'X': - setKeyX(slotId, key.value()); - break; - case 'Y': - setKeyY(slotId, key.value()); - break; - case 'N': - setNormalKey(slotId, key.value()); - break; - default: - Helpers::warn("Keys: Invalid key type %c", keyType); - break; - } - } - - // As the generator key can be set at any time, force update all normal keys. - for (std::size_t i = 0; i < AesKeySlotCount; i++) { - updateNormalKey(i); - } - - keysLoaded = true; - } -}; \ No newline at end of file diff --git a/src/core/fs/archive_ext_save_data.cpp b/src/core/fs/archive_ext_save_data.cpp deleted file mode 100644 index 4b57f245..00000000 --- a/src/core/fs/archive_ext_save_data.cpp +++ /dev/null @@ -1,201 +0,0 @@ -#include "fs/archive_ext_save_data.hpp" -#include - -namespace fs = std::filesystem; - -HorizonResult ExtSaveDataArchive::createFile(const FSPath& path, u64 size) { - if (size == 0) - Helpers::panic("ExtSaveData file does not support size == 0"); - - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) - Helpers::panic("Unsafe path in ExtSaveData::CreateFile"); - - fs::path p = IOFile::getAppData() / backingFolder; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::exists(p)) - return Result::FS::AlreadyExists; - - // Create a file of size "size" by creating an empty one, seeking to size - 1 and just writing a 0 there - IOFile file(p.string().c_str(), "wb"); - if (file.seek(size - 1, SEEK_SET) && file.writeBytes("", 1).second == 1) { - file.close(); - return Result::Success; - } - - file.close(); - return Result::FS::FileTooLarge; - } - - Helpers::panic("ExtSaveDataArchive::OpenFile: Failed"); - return Result::Success; -} - -HorizonResult ExtSaveDataArchive::deleteFile(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) - Helpers::panic("Unsafe path in ExtSaveData::DeleteFile"); - - fs::path p = IOFile::getAppData() / backingFolder; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_directory(p)) { - Helpers::panic("ExtSaveData::DeleteFile: Tried to delete directory"); - } - - if (!fs::is_regular_file(p)) { - return Result::FS::FileNotFoundAlt; - } - - std::error_code ec; - bool success = fs::remove(p, ec); - - // It might still be possible for fs::remove to fail, if there's eg an open handle to a file being deleted - // In this case, print a warning, but still return success for now - if (!success) { - Helpers::warn("ExtSaveData::DeleteFile: fs::remove failed\n"); - } - - return Result::Success; - } - - Helpers::panic("ExtSaveDataArchive::DeleteFile: Unknown path type"); - return Result::Success; -} - -FileDescriptor ExtSaveDataArchive::openFile(const FSPath& path, const FilePerms& perms) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) - Helpers::panic("Unsafe path in ExtSaveData::OpenFile"); - - if (perms.create()) - Helpers::panic("[ExtSaveData] Can't open file with create flag"); - - fs::path p = IOFile::getAppData() / backingFolder; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::exists(p)) { // Return file descriptor if the file exists - IOFile file(p.string().c_str(), "r+b"); // According to Citra, this ignores the OpenFlags field and always opens as r+b? TODO: Check - return file.isOpen() ? file.getHandle() : FileError; - } else { - return FileError; - } - } - - Helpers::panic("ExtSaveDataArchive::OpenFile: Failed"); - return FileError; -} - -HorizonResult ExtSaveDataArchive::renameFile(const FSPath& oldPath, const FSPath& newPath) { - if (oldPath.type != PathType::UTF16 || newPath.type != PathType::UTF16) { - Helpers::panic("Invalid path type for ExtSaveData::RenameFile"); - } - - if (!isPathSafe(oldPath) || !isPathSafe(newPath)) { - Helpers::panic("Unsafe path in ExtSaveData::RenameFile"); - } - - // Construct host filesystem paths - fs::path sourcePath = IOFile::getAppData() / backingFolder; - fs::path destPath = sourcePath; - - sourcePath += fs::path(oldPath.utf16_string).make_preferred(); - destPath += fs::path(newPath.utf16_string).make_preferred(); - - if (!fs::is_regular_file(sourcePath) || fs::is_directory(sourcePath)) { - Helpers::warn("ExtSaveData::RenameFile: Source path is not a file or is directory"); - return Result::FS::RenameNonexistentFileOrDir; - } - - if (fs::is_regular_file(destPath) || fs::is_directory(destPath)) { - Helpers::warn("ExtSaveData::RenameFile: Dest path already exists"); - return Result::FS::RenameFileDestExists; - } - - std::error_code ec; - fs::rename(sourcePath, destPath, ec); - - if (ec) { - Helpers::warn("Error in ExtSaveData::RenameFile"); - return Result::FS::RenameNonexistentFileOrDir; - } - - return Result::Success; -} - -HorizonResult ExtSaveDataArchive::createDirectory(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in ExtSaveData::OpenFile"); - } - - fs::path p = IOFile::getAppData() / backingFolder; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_directory(p)) return Result::FS::AlreadyExists; - if (fs::is_regular_file(p)) { - Helpers::panic("File path passed to ExtSaveData::CreateDirectory"); - } - - bool success = fs::create_directory(p); - return success ? Result::Success : Result::FS::UnexpectedFileOrDir; - } else { - Helpers::panic("Unimplemented ExtSaveData::CreateDirectory"); - } -} - -std::string ExtSaveDataArchive::getExtSaveDataPathFromBinary(const FSPath& path) { - // TODO: Remove punning here - const u32 mediaType = *(u32*)&path.binary[0]; - const u32 saveLow = *(u32*)&path.binary[4]; - const u32 saveHigh = *(u32*)&path.binary[8]; - - // TODO: Should the media type be used here - return backingFolder + std::to_string(saveLow) + std::to_string(saveHigh); -} - -Rust::Result ExtSaveDataArchive::openArchive(const FSPath& path) { - if (path.type != PathType::Binary || path.binary.size() != 12) { - Helpers::panic("ExtSaveData accessed with an invalid path in OpenArchive"); - } - - // TODO: Readd the format check. I didn't manage to fix it sadly - // Create a format info path in the style of AppData/FormatInfo/Cartridge10390390194.format - // fs::path formatInfopath = IOFile::getAppData() / "FormatInfo" / (getExtSaveDataPathFromBinary(path) + ".format"); - // Format info not found so the archive is not formatted - // if (!fs::is_regular_file(formatInfopath)) { - // return isShared ? Err(Result::FS::NotFormatted) : Err(Result::FS::NotFoundInvalid); - //} - - return Ok((ArchiveBase*)this); -} - -Rust::Result ExtSaveDataArchive::openDirectory(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) - Helpers::panic("Unsafe path in ExtSaveData::OpenDirectory"); - - fs::path p = IOFile::getAppData() / backingFolder; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_regular_file(p)) { - printf("ExtSaveData: OpenArchive used with a file path"); - return Err(Result::FS::UnexpectedFileOrDir); - } - - if (fs::is_directory(p)) { - return Ok(DirectorySession(this, p)); - } else { - return Err(Result::FS::FileNotFoundAlt); - } - } - - Helpers::panic("ExtSaveDataArchive::OpenDirectory: Unimplemented path type"); - return Err(Result::Success); -} - -std::optional ExtSaveDataArchive::readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) { - Helpers::panic("ExtSaveDataArchive::ReadFile: Failed"); - return std::nullopt; -} \ No newline at end of file diff --git a/src/core/fs/archive_ncch.cpp b/src/core/fs/archive_ncch.cpp deleted file mode 100644 index d5a4bab5..00000000 --- a/src/core/fs/archive_ncch.cpp +++ /dev/null @@ -1,169 +0,0 @@ -#include "fs/archive_ncch.hpp" -#include "fs/bad_word_list.hpp" -#include "fs/country_list.hpp" -#include "fs/mii_data.hpp" -#include -#include - -namespace PathType { - enum : u32 { - RomFS = 0, - Code = 1, - ExeFS = 2, - }; -}; - -namespace MediaType { - enum : u8 { - NAND = 0, - SD = 1, - Gamecard = 2 - }; -}; - -HorizonResult NCCHArchive::createFile(const FSPath& path, u64 size) { - Helpers::panic("[NCCH] CreateFile not yet supported"); - return Result::Success; -} - -HorizonResult NCCHArchive::deleteFile(const FSPath& path) { - Helpers::panic("[NCCH] Unimplemented DeleteFile"); - return Result::Success; -} - -FileDescriptor NCCHArchive::openFile(const FSPath& path, const FilePerms& perms) { - if (path.type != PathType::Binary || path.binary.size() != 20) { - Helpers::panic("NCCHArchive::OpenFile: Invalid path"); - } - - const u32 media = *(u32*)&path.binary[0]; // 0 for NCCH, 1 for SaveData - if (media != 0) - Helpers::panic("NCCHArchive::OpenFile: Tried to read non-NCCH file"); - - // Third word of the binary path indicates what we're reading from. - const u32 type = *(u32*)&path.binary[8]; - if (media == 0 && type > 2) - Helpers::panic("NCCHArchive::OpenFile: Invalid file path type"); - - return NoFile; -} - -Rust::Result NCCHArchive::openArchive(const FSPath& path) { - if (path.type != PathType::Binary || path.binary.size() != 16) { - Helpers::panic("NCCHArchive::OpenArchive: Invalid path"); - } - - const u32 mediaType = path.binary[8]; - if (mediaType != 0) - Helpers::panic("NCCH archive. Tried to access a mediatype other than the NAND. Type: %d", mediaType); - - return Ok((ArchiveBase*)this); -} - -std::optional NCCHArchive::readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) { - const auto& path = file->path.binary; // Path of the file - const auto& archivePath = file->archivePath.binary; // Path of the archive - - const auto mediaType = archivePath[8]; - - const auto media = *(u32*)&path[0]; // 0 for NCCH, 1 for savedata - const auto partition = *(u32*)&path[4]; - const auto type = *(u32*)&path[8]; // Type of the path - - if (mediaType == MediaType::NAND) { - const u32 lowProgramID = *(u32*)&archivePath[0]; - const u32 highProgramID = *(u32*)&archivePath[4]; - - // High Title ID of the archive: https://3dbrew.org/wiki/Title_list. - constexpr u32 sharedDataArchive = 0x0004009B; - constexpr u32 systemDataArchive = 0x000400DB; - - // Low IDs - constexpr u32 miiData = 0x00010202; - constexpr u32 tlsRootCertificates = 0x00010602; - constexpr u32 regionManifest = 0x00010402; - constexpr u32 badWordList = 0x00010302; - constexpr u32 sharedFont = 0x00014002; - std::vector fileData; - - if (highProgramID == sharedDataArchive) { - if (lowProgramID == miiData) fileData = std::vector(std::begin(MII_DATA), std::end(MII_DATA)); - else if (lowProgramID == regionManifest) fileData = std::vector(std::begin(COUNTRY_LIST_DATA), std::end(COUNTRY_LIST_DATA)); - else if (lowProgramID == tlsRootCertificates) { - Helpers::warn("Read from Shared Data archive 00010602"); - return 0; - } - else Helpers::panic("[NCCH archive] Read unimplemented NAND file. ID: %08X", lowProgramID); - } else if (highProgramID == systemDataArchive && lowProgramID == badWordList) { - fileData = std::vector(std::begin(BAD_WORD_LIST_DATA), std::end(BAD_WORD_LIST_DATA)); - } else { - Helpers::panic("[NCCH archive] Read from unimplemented NCCH archive file. High program ID: %08X, low ID: %08X", - highProgramID, lowProgramID); - } - - if (offset >= fileData.size()) { - Helpers::panic("[NCCH archive] Out of bounds read from NAND file"); - } - - u32 availableBytes = u32(fileData.size() - offset); // How many bytes we can read from the file - u32 bytesRead = std::min(size, availableBytes); // Cap the amount of bytes to read if we're going to go out of bounds - for (u32 i = 0; i < bytesRead; i++) { - mem.write8(dataPointer + i, fileData[offset + i]); - } - - return bytesRead; - } else { - Helpers::panic("NCCH archive tried to read non-NAND file"); - } - - // Code below is for mediaType == 2 (gamecard). Currently unused - if (partition != 0) - Helpers::panic("[NCCH] Tried to read from non-zero partition"); - - if (type == PathType::RomFS && !hasRomFS()) { - Helpers::panic("Tried to read file from non-existent RomFS"); - return std::nullopt; - } - - if (type == PathType::ExeFS && !hasExeFS()) { - Helpers::panic("Tried to read file from non-existent RomFS"); - return std::nullopt; - } - - if (!file->isOpen) { - printf("Tried to read from closed NCCH file session"); - return std::nullopt; - } - - auto cxi = mem.getCXI(); - - // Seek to file offset depending on if we're reading from RomFS, ExeFS, etc - switch (type) { - case PathType::RomFS: { - const u64 romFSSize = cxi->romFS.size; - const u64 romFSOffset = cxi->romFS.offset; - if ((offset >> 32) || (offset >= romFSSize) || (offset + size > romFSSize)) { - Helpers::panic("Tried to read from NCCH with too big of an offset"); - } - - offset += 0x1000; - break; - } - - default: - Helpers::panic("Unimplemented file path type for NCCH archive"); - } - - std::unique_ptr data(new u8[size]); - auto [success, bytesRead] = cxi->readFromFile(mem.CXIFile, cxi->romFS, &data[0], offset, size); - - if (!success) { - Helpers::panic("Failed to read from NCCH archive"); - } - - for (u64 i = 0; i < bytesRead; i++) { - mem.write8(u32(dataPointer + i), data[i]); - } - - return u32(bytesRead); -} diff --git a/src/core/fs/archive_save_data.cpp b/src/core/fs/archive_save_data.cpp deleted file mode 100644 index 0bdb9e01..00000000 --- a/src/core/fs/archive_save_data.cpp +++ /dev/null @@ -1,213 +0,0 @@ -#include "fs/archive_save_data.hpp" -#include -#include - -namespace fs = std::filesystem; - -HorizonResult SaveDataArchive::createFile(const FSPath& path, u64 size) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) - Helpers::panic("Unsafe path in SaveData::CreateFile"); - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::exists(p)) { - return Result::FS::AlreadyExists; - } - - IOFile file(p.string().c_str(), "wb"); - - // If the size is 0, leave the file empty and return success - if (size == 0) { - file.close(); - return Result::Success; - } - - // If it is not empty, seek to size - 1 and write a 0 to create a file of size "size" - else if (file.seek(size - 1, SEEK_SET) && file.writeBytes("", 1).second == 1) { - file.close(); - return Result::Success; - } - - file.close(); - return Result::FS::FileTooLarge; - } - - Helpers::panic("SaveDataArchive::CreateFile: Failed"); - return Result::Success; -} - -HorizonResult SaveDataArchive::createDirectory(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SaveData::OpenFile"); - } - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_directory(p)) { - return Result::FS::AlreadyExists; - } - - if (fs::is_regular_file(p)) { - Helpers::panic("File path passed to SaveData::CreateDirectory"); - } - - bool success = fs::create_directory(p); - return success ? Result::Success : Result::FS::UnexpectedFileOrDir; - } else { - Helpers::panic("Unimplemented SaveData::CreateDirectory"); - } -} - -HorizonResult SaveDataArchive::deleteFile(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SaveData::DeleteFile"); - } - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_directory(p)) { - Helpers::panic("SaveData::DeleteFile: Tried to delete directory"); - } - - if (!fs::is_regular_file(p)) { - return Result::FS::FileNotFoundAlt; - } - - std::error_code ec; - bool success = fs::remove(p, ec); - - // It might still be possible for fs::remove to fail, if there's eg an open handle to a file being deleted - // In this case, print a warning, but still return success for now - if (!success) { - Helpers::warn("SaveData::DeleteFile: fs::remove failed\n"); - } - - return Result::Success; - } - - Helpers::panic("SaveDataArchive::DeleteFile: Unknown path type"); - return Result::Success; -} - -FileDescriptor SaveDataArchive::openFile(const FSPath& path, const FilePerms& perms) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SaveData::OpenFile"); - } - - if (perms.raw == 0 || (perms.create() && !perms.write())) { - Helpers::panic("[SaveData] Unsupported flags for OpenFile"); - } - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - const char* permString = perms.write() ? "r+b" : "rb"; - - if (fs::exists(p)) { // Return file descriptor if the file exists - IOFile file(p.string().c_str(), permString); - return file.isOpen() ? file.getHandle() : FileError; - } else { - // If the file is not found, create it if the create flag is on - if (perms.create()) { - IOFile file(p.string().c_str(), "wb"); // Create file - file.close(); // Close it - - file.open(p.string().c_str(), permString); // Reopen with proper perms - return file.isOpen() ? file.getHandle() : FileError; - } else { - return FileError; - } - } - } - - Helpers::panic("SaveDataArchive::OpenFile: Failed"); - return FileError; -} - -Rust::Result SaveDataArchive::openDirectory(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SaveData::OpenDirectory"); - } - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_regular_file(p)) { - printf("SaveData: OpenDirectory used with a file path"); - return Err(Result::FS::UnexpectedFileOrDir); - } - - if (fs::is_directory(p)) { - return Ok(DirectorySession(this, p)); - } else { - return Err(Result::FS::FileNotFoundAlt); - } - } - - Helpers::panic("SaveDataArchive::OpenDirectory: Unimplemented path type"); - return Err(Result::Success); -} - -Rust::Result SaveDataArchive::getFormatInfo(const FSPath& path) { - const fs::path formatInfoPath = getFormatInfoPath(); - IOFile file(formatInfoPath, "rb"); - - // If the file failed to open somehow, we return that the archive is not formatted - if (!file.isOpen()) { - return Err(Result::FS::NotFormatted); - } - - FormatInfo ret; - auto [success, bytesRead] = file.readBytes(&ret, sizeof(FormatInfo)); - file.close(); - - if (!success || bytesRead != sizeof(FormatInfo)) { - Helpers::warn("SaveData::GetFormatInfo: Format file exists but was not properly read into the FormatInfo struct"); - return Err(Result::FS::NotFormatted); - } - - return Ok(ret); -} - -void SaveDataArchive::format(const FSPath& path, const ArchiveBase::FormatInfo& info) { - const fs::path saveDataPath = IOFile::getAppData() / "SaveData"; - const fs::path formatInfoPath = getFormatInfoPath(); - - // Delete all contents by deleting the directory then recreating it - fs::remove_all(saveDataPath); - fs::create_directories(saveDataPath); - - // Write format info on disk - IOFile file(formatInfoPath, "wb"); - file.writeBytes(&info, sizeof(info)); - file.flush(); - file.close(); -} - -Rust::Result SaveDataArchive::openArchive(const FSPath& path) { - if (path.type != PathType::Empty) { - Helpers::panic("Unimplemented path type for SaveData archive: %d\n", path.type); - return Err(Result::FS::NotFoundInvalid); - } - - const fs::path formatInfoPath = getFormatInfoPath(); - // Format info not found so the archive is not formatted - if (!fs::is_regular_file(formatInfoPath)) { - return Err(Result::FS::NotFormatted); - } - - return Ok((ArchiveBase*)this); -} - -std::optional SaveDataArchive::readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) { - Helpers::panic("Unimplemented SaveData::ReadFile"); - return 0; -} diff --git a/src/core/fs/archive_sdmc.cpp b/src/core/fs/archive_sdmc.cpp deleted file mode 100644 index 6c34de7a..00000000 --- a/src/core/fs/archive_sdmc.cpp +++ /dev/null @@ -1,182 +0,0 @@ -#include "fs/archive_sdmc.hpp" -#include - -namespace fs = std::filesystem; - -HorizonResult SDMCArchive::createFile(const FSPath& path, u64 size) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SDMC::CreateFile"); - } - - fs::path p = IOFile::getAppData() / "SDMC"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::exists(p)) { - return Result::FS::AlreadyExists; - } - - IOFile file(p.string().c_str(), "wb"); - - // If the size is 0, leave the file empty and return success - if (size == 0) { - file.close(); - return Result::Success; - } - - // If it is not empty, seek to size - 1 and write a 0 to create a file of size "size" - else if (file.seek(size - 1, SEEK_SET) && file.writeBytes("", 1).second == 1) { - file.close(); - return Result::Success; - } - - file.close(); - return Result::FS::FileTooLarge; - } - - Helpers::panic("SDMC::CreateFile: Failed"); - return Result::Success; -} - -HorizonResult SDMCArchive::deleteFile(const FSPath& path) { - Helpers::panic("[SDMC] Unimplemented DeleteFile"); - return Result::Success; -} - -FileDescriptor SDMCArchive::openFile(const FSPath& path, const FilePerms& perms) { - FilePerms realPerms = perms; - - if (isWriteOnly) { - if (perms.read()) { - Helpers::warn("SDMC: Read flag is not allowed in SDMC Write-Only archive"); - return FileError; - } - } else { - // Regular SDMC archive always has read permission - realPerms.raw |= (1 << 0); - } - - if ((realPerms.create() && !realPerms.write())) { - Helpers::panic("[SDMC] Unsupported flags for OpenFile"); - } - - std::filesystem::path p = IOFile::getAppData() / "SDMC"; - - switch (path.type) { - case PathType::ASCII: - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SDMCArchive::OpenFile"); - } - - p += fs::path(path.string).make_preferred(); - break; - - case PathType::UTF16: - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SDMCArchive::OpenFile"); - } - - p += fs::path(path.utf16_string).make_preferred(); - break; - - default: Helpers::panic("SDMCArchive::OpenFile: Failed. Path type: %d", path.type); return FileError; - } - - const char* permString = perms.write() ? "r+b" : "rb"; - - if (fs::exists(p)) { // Return file descriptor if the file exists - IOFile file(p.string().c_str(), permString); - return file.isOpen() ? file.getHandle() : FileError; - } else { - // If the file is not found, create it if the create flag is on - if (realPerms.create()) { - IOFile file(p.string().c_str(), "wb"); // Create file - file.close(); // Close it - - file.open(p.string().c_str(), permString); // Reopen with proper perms - return file.isOpen() ? file.getHandle() : FileError; - } else { - return FileError; - } - } -} - -HorizonResult SDMCArchive::createDirectory(const FSPath& path) { - std::filesystem::path p = IOFile::getAppData() / "SDMC"; - - switch (path.type) { - case PathType::ASCII: - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SDMCArchive::OpenFile"); - } - - p += fs::path(path.string).make_preferred(); - break; - - case PathType::UTF16: - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SDMCArchive::OpenFile"); - } - - p += fs::path(path.utf16_string).make_preferred(); - break; - - default: Helpers::panic("SDMCArchive::CreateDirectory: Failed. Path type: %d", path.type); return Result::FailurePlaceholder; - } - - if (fs::is_directory(p)) { - return Result::FS::AlreadyExists; - } - - if (fs::is_regular_file(p)) { - Helpers::panic("File path passed to SDMCArchive::CreateDirectory"); - } - - std::error_code ec; - bool success = fs::create_directory(p, ec); - return success ? Result::Success : Result::FS::UnexpectedFileOrDir; -} - -Rust::Result SDMCArchive::openDirectory(const FSPath& path) { - if (isWriteOnly) { - Helpers::warn("SDMC: OpenDirectory is not allowed in SDMC Write-Only archive"); - return Err(Result::FS::UnexpectedFileOrDir); - } - - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SaveData::OpenDirectory"); - } - - fs::path p = IOFile::getAppData() / "SDMC"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_regular_file(p)) { - printf("SDMC: OpenDirectory used with a file path"); - return Err(Result::FS::UnexpectedFileOrDir); - } - - if (fs::is_directory(p)) { - return Ok(DirectorySession(this, p)); - } else { - return Err(Result::FS::FileNotFoundAlt); - } - } - - Helpers::panic("SDMCArchive::OpenDirectory: Unimplemented path type"); - return Err(Result::Success); -} - -Rust::Result SDMCArchive::openArchive(const FSPath& path) { - // TODO: Fail here if the SD is disabled in the connfig. - if (path.type != PathType::Empty) { - Helpers::panic("Unimplemented path type for SDMC::OpenArchive"); - } - - return Ok((ArchiveBase*)this); -} - -std::optional SDMCArchive::readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) { - printf("SDMCArchive::ReadFile: Failed\n"); - return std::nullopt; -} \ No newline at end of file diff --git a/src/core/fs/archive_self_ncch.cpp b/src/core/fs/archive_self_ncch.cpp deleted file mode 100644 index 9369152d..00000000 --- a/src/core/fs/archive_self_ncch.cpp +++ /dev/null @@ -1,153 +0,0 @@ -#include "fs/archive_self_ncch.hpp" -#include - -// The part of the NCCH archive we're trying to access. Depends on the first 4 bytes of the binary file path -namespace PathType { - enum : u32 { - RomFS = 0, - ExeFS = 2, - UpdateRomFS = 5, - }; -}; - -HorizonResult SelfNCCHArchive::createFile(const FSPath& path, u64 size) { - Helpers::panic("[SelfNCCH] CreateFile not yet supported"); - return Result::Success; -} - -HorizonResult SelfNCCHArchive::deleteFile(const FSPath& path) { - Helpers::panic("[SelfNCCH] Unimplemented DeleteFile"); - return Result::Success; -} - -FileDescriptor SelfNCCHArchive::openFile(const FSPath& path, const FilePerms& perms) { - if (!hasRomFS()) { - printf("Tried to open a SelfNCCH file without a RomFS\n"); - return FileError; - } - - if (path.type != PathType::Binary || path.binary.size() != 12) { - printf("Invalid SelfNCCH path type\n"); - return FileError; - } - - // Where to read the file from. (https://www.3dbrew.org/wiki/Filesystem_services#SelfNCCH_File_Path_Data_Format) - // We currently only know how to read from an NCCH's RomFS, ie type = 0 - const u32 type = *(u32*)&path.binary[0]; // TODO: Get rid of UB here - if (type != PathType::RomFS && type != PathType::ExeFS && type != PathType::UpdateRomFS) { - Helpers::panic("Read from NCCH's non-RomFS & non-exeFS section! Path type: %d", type); - } - - return NoFile; // No file descriptor needed for RomFS -} - -Rust::Result SelfNCCHArchive::openArchive(const FSPath& path) { - if (path.type != PathType::Empty) { - Helpers::panic("Invalid path type for SelfNCCH archive: %d\n", path.type); - return Err(Result::FS::NotFoundInvalid); - } - - return Ok((ArchiveBase*)this); -} - -std::optional SelfNCCHArchive::readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) { - const FSPath& path = file->path; // Path of the file - const u32 type = *(u32*)&path.binary[0]; // Type of the path - - if (type == PathType::RomFS && !hasRomFS()) { - Helpers::panic("Tried to read file from non-existent RomFS"); - return std::nullopt; - } - - if (type == PathType::ExeFS && !hasExeFS()) { - Helpers::panic("Tried to read file from non-existent RomFS"); - return std::nullopt; - } - - if (!file->isOpen) { - printf("Tried to read from closed SelfNCCH file session"); - return std::nullopt; - } - - bool success = false; - std::size_t bytesRead = 0; - std::unique_ptr data(new u8[size]); - - if (auto cxi = mem.getCXI(); cxi != nullptr) { - IOFile& ioFile = mem.CXIFile; - - NCCH::FSInfo fsInfo; - - // Seek to file offset depending on if we're reading from RomFS, ExeFS, etc - switch (type) { - case PathType::RomFS: { - const u64 romFSSize = cxi->romFS.size; - const u64 romFSOffset = cxi->romFS.offset; - if ((offset >> 32) || (offset >= romFSSize) || (offset + size > romFSSize)) { - Helpers::panic("Tried to read from SelfNCCH with too big of an offset"); - } - - fsInfo = cxi->romFS; - offset += 0x1000; - break; - } - - case PathType::ExeFS: { - const u64 exeFSSize = cxi->exeFS.size; - const u64 exeFSOffset = cxi->exeFS.offset; - if ((offset >> 32) || (offset >= exeFSSize) || (offset + size > exeFSSize)) { - Helpers::panic("Tried to read from SelfNCCH with too big of an offset"); - } - - fsInfo = cxi->exeFS; - break; - } - - // Normally, the update RomFS should overlay the cartridge RomFS when reading from this and an update is installed. - // So to support updates, we need to perform this overlaying. For now, read from the cartridge RomFS. - case PathType::UpdateRomFS: { - Helpers::warn("Reading from update RomFS but updates are currently not supported! Reading from regular RomFS instead\n"); - - const u64 romFSSize = cxi->romFS.size; - const u64 romFSOffset = cxi->romFS.offset; - if ((offset >> 32) || (offset >= romFSSize) || (offset + size > romFSSize)) { - Helpers::panic("Tried to read from SelfNCCH with too big of an offset"); - } - - fsInfo = cxi->romFS; - offset += 0x1000; - break; - } - - default: Helpers::panic("Unimplemented file path type for SelfNCCH archive"); - } - - std::tie(success, bytesRead) = cxi->readFromFile(ioFile, fsInfo, &data[0], offset, size); - } - - else if (auto hb3dsx = mem.get3DSX(); hb3dsx != nullptr) { - switch (type) { - case PathType::RomFS: { - const u64 romFSSize = hb3dsx->romFSSize; - if ((offset >> 32) || (offset >= romFSSize) || (offset + size > romFSSize)) { - Helpers::panic("Tried to read from SelfNCCH with too big of an offset"); - } - break; - } - - default: Helpers::panic("Unimplemented file path type for 3DSX SelfNCCH archive"); - } - - std::tie(success, bytesRead) = hb3dsx->readRomFSBytes(&data[0], offset, size); - } - - if (!success) { - Helpers::panic("Failed to read from SelfNCCH archive"); - } - - for (u64 i = 0; i < bytesRead; i++) { - mem.write8(u32(dataPointer + i), data[i]); - } - - return u32(bytesRead); -} diff --git a/src/core/fs/archive_system_save_data.cpp b/src/core/fs/archive_system_save_data.cpp deleted file mode 100644 index 37afb431..00000000 --- a/src/core/fs/archive_system_save_data.cpp +++ /dev/null @@ -1,169 +0,0 @@ -#include -#include "fs/archive_system_save_data.hpp" - -namespace fs = std::filesystem; - -Rust::Result SystemSaveDataArchive::openArchive(const FSPath& path) { - if (path.type != PathType::Binary) { - Helpers::panic("Unimplemented path type for SystemSaveData::OpenArchive"); - } - - return Ok((ArchiveBase*)this); -} - -FileDescriptor SystemSaveDataArchive::openFile(const FSPath& path, const FilePerms& perms) { - // TODO: Validate this. Temporarily copied from SaveData archive - - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SystemSaveData::OpenFile"); - } - - if (perms.raw == 0 || (perms.create() && !perms.write())) { - Helpers::panic("[SystemSaveData] Unsupported flags for OpenFile"); - } - - fs::path p = IOFile::getAppData() / ".." / "SharedFiles" / "SystemSaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - const char* permString = perms.write() ? "r+b" : "rb"; - - if (fs::exists(p)) { // Return file descriptor if the file exists - IOFile file(p.string().c_str(), permString); - return file.isOpen() ? file.getHandle() : FileError; - } else { - // If the file is not found, create it if the create flag is on - if (perms.create()) { - IOFile file(p.string().c_str(), "wb"); // Create file - file.close(); // Close it - - file.open(p.string().c_str(), permString); // Reopen with proper perms - return file.isOpen() ? file.getHandle() : FileError; - } else { - return FileError; - } - } - } - - Helpers::panic("SystemSaveData::OpenFile: Failed"); - return FileError; -} - -HorizonResult SystemSaveDataArchive::createFile(const FSPath& path, u64 size) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SystemSaveData::CreateFile"); - } - - fs::path p = IOFile::getAppData() / ".." / "SharedFiles" / "SystemSaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::exists(p)) { - return Result::FS::AlreadyExists; - } - - IOFile file(p.string().c_str(), "wb"); - - // If the size is 0, leave the file empty and return success - if (size == 0) { - file.close(); - return Result::Success; - } - - // If it is not empty, seek to size - 1 and write a 0 to create a file of size "size" - else if (file.seek(size - 1, SEEK_SET) && file.writeBytes("", 1).second == 1) { - file.close(); - return Result::Success; - } - - file.close(); - return Result::FS::FileTooLarge; - } - - Helpers::panic("SystemSaveData::CreateFile: Failed"); - return Result::Success; -} - -HorizonResult SystemSaveDataArchive::createDirectory(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SystemSaveData::OpenFile"); - } - - fs::path p = IOFile::getAppData() / ".." / "SharedFiles" / "SystemSaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_directory(p)) { - return Result::FS::AlreadyExists; - } - - if (fs::is_regular_file(p)) { - Helpers::panic("File path passed to SystemSaveData::CreateDirectory"); - } - - bool success = fs::create_directory(p); - return success ? Result::Success : Result::FS::UnexpectedFileOrDir; - } else { - Helpers::panic("Unimplemented SystemSaveData::CreateDirectory"); - } -} - - -HorizonResult SystemSaveDataArchive::deleteFile(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::panic("Unsafe path in SystemSaveData::DeleteFile"); - } - - fs::path p = IOFile::getAppData() / ".." / "SharedFiles" / "SystemSaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_directory(p)) { - Helpers::panic("SystemSaveData::DeleteFile: Tried to delete directory"); - } - - if (!fs::is_regular_file(p)) { - return Result::FS::FileNotFoundAlt; - } - - std::error_code ec; - bool success = fs::remove(p, ec); - - // It might still be possible for fs::remove to fail, if there's eg an open handle to a file being deleted - // In this case, print a warning, but still return success for now - if (!success) { - Helpers::warn("SystemSaveData::DeleteFile: fs::remove failed\n"); - } - - return Result::Success; - } - - Helpers::panic("SystemSaveData::DeleteFile: Unknown path type"); - return Result::Success; -} - -Rust::Result SystemSaveDataArchive::openDirectory(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) { - Helpers::warn("Unsafe path in SystemSaveData::OpenDirectory"); - return Err(Result::FS::FileNotFoundAlt); - } - - fs::path p = IOFile::getAppData() / ".." / "SharedFiles" / "SystemSaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_regular_file(p)) { - printf("SystemSaveData: OpenDirectory used with a file path"); - return Err(Result::FS::UnexpectedFileOrDir); - } - - if (fs::is_directory(p)) { - return Ok(DirectorySession(this, p)); - } else { - return Err(Result::FS::FileNotFoundAlt); - } - } - - Helpers::panic("SystemSaveData::OpenDirectory: Unimplemented path type"); - return Err(Result::Success); -} \ No newline at end of file diff --git a/src/core/fs/archive_user_save_data.cpp b/src/core/fs/archive_user_save_data.cpp deleted file mode 100644 index cba9bff8..00000000 --- a/src/core/fs/archive_user_save_data.cpp +++ /dev/null @@ -1,198 +0,0 @@ -#include -#include - -#include "fs/archive_user_save_data.hpp" - -namespace fs = std::filesystem; - -HorizonResult UserSaveDataArchive::createFile(const FSPath& path, u64 size) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) Helpers::panic("Unsafe path in UserSaveData::CreateFile"); - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::exists(p)) return Result::FS::AlreadyExists; - - IOFile file(p.string().c_str(), "wb"); - - // If the size is 0, leave the file empty and return success - if (size == 0) { - file.close(); - return Result::Success; - } - - // If it is not empty, seek to size - 1 and write a 0 to create a file of size "size" - else if (file.seek(size - 1, SEEK_SET) && file.writeBytes("", 1).second == 1) { - file.close(); - return Result::Success; - } - - file.close(); - return Result::FS::FileTooLarge; - } - - Helpers::panic("UserSaveDataArchive::OpenFile: Failed"); - return Result::Success; -} - -HorizonResult UserSaveDataArchive::createDirectory(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) Helpers::panic("Unsafe path in UserSaveData::OpenFile"); - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_directory(p)) return Result::FS::AlreadyExists; - if (fs::is_regular_file(p)) { - Helpers::panic("File path passed to UserSaveData::CreateDirectory"); - } - - bool success = fs::create_directory(p); - return success ? Result::Success : Result::FS::UnexpectedFileOrDir; - } else { - Helpers::panic("Unimplemented UserSaveData::CreateDirectory"); - } -} - -HorizonResult UserSaveDataArchive::deleteFile(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) Helpers::panic("Unsafe path in UserSaveData::DeleteFile"); - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_directory(p)) { - Helpers::panic("UserSaveData::DeleteFile: Tried to delete directory"); - } - - if (!fs::is_regular_file(p)) { - return Result::FS::FileNotFoundAlt; - } - - std::error_code ec; - bool success = fs::remove(p, ec); - - // It might still be possible for fs::remove to fail, if there's eg an open handle to a file being deleted - // In this case, print a warning, but still return success for now - if (!success) { - Helpers::warn("UserSaveData::DeleteFile: fs::remove failed\n"); - } - - return Result::Success; - } - - Helpers::panic("UserSaveDataArchive::DeleteFile: Unknown path type"); - return Result::Success; -} - -FileDescriptor UserSaveDataArchive::openFile(const FSPath& path, const FilePerms& perms) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) Helpers::panic("Unsafe path in UserSaveData::OpenFile"); - - if (perms.raw == 0 || (perms.create() && !perms.write())) Helpers::panic("[UserSaveData] Unsupported flags for OpenFile"); - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - const char* permString = perms.write() ? "r+b" : "rb"; - - if (fs::exists(p)) { // Return file descriptor if the file exists - IOFile file(p.string().c_str(), permString); - return file.isOpen() ? file.getHandle() : FileError; - } else { - // If the file is not found, create it if the create flag is on - if (perms.create()) { - IOFile file(p.string().c_str(), "wb"); // Create file - file.close(); // Close it - - file.open(p.string().c_str(), permString); // Reopen with proper perms - return file.isOpen() ? file.getHandle() : FileError; - } else { - return FileError; - } - } - } - - Helpers::panic("UserSaveDataArchive::OpenFile: Failed"); - return FileError; -} - -Rust::Result UserSaveDataArchive::openDirectory(const FSPath& path) { - if (path.type == PathType::UTF16) { - if (!isPathSafe(path)) Helpers::panic("Unsafe path in UserSaveData::OpenDirectory"); - - fs::path p = IOFile::getAppData() / "SaveData"; - p += fs::path(path.utf16_string).make_preferred(); - - if (fs::is_regular_file(p)) { - printf("SaveData: OpenDirectory used with a file path"); - return Err(Result::FS::UnexpectedFileOrDir); - } - - if (fs::is_directory(p)) { - return Ok(DirectorySession(this, p)); - } else { - return Err(Result::FS::FileNotFoundAlt); - } - } - - Helpers::panic("UserSaveDataArchive::OpenDirectory: Unimplemented path type"); - return Err(Result::Success); -} - -Rust::Result UserSaveDataArchive::getFormatInfo(const FSPath& path) { - const fs::path formatInfoPath = getFormatInfoPath(); - IOFile file(formatInfoPath, "rb"); - - // If the file failed to open somehow, we return that the archive is not formatted - if (!file.isOpen()) { - return Err(Result::FS::NotFormatted); - } - - FormatInfo ret; - auto [success, bytesRead] = file.readBytes(&ret, sizeof(FormatInfo)); - file.close(); - - if (!success || bytesRead != sizeof(FormatInfo)) { - Helpers::warn("UserSaveData::GetFormatInfo: Format file exists but was not properly read into the FormatInfo struct"); - return Err(Result::FS::NotFormatted); - } - - return Ok(ret); -} - -void UserSaveDataArchive::format(const FSPath& path, const ArchiveBase::FormatInfo& info) { - const fs::path saveDataPath = IOFile::getAppData() / "SaveData"; - const fs::path formatInfoPath = getFormatInfoPath(); - - // Delete all contents by deleting the directory then recreating it - fs::remove_all(saveDataPath); - fs::create_directories(saveDataPath); - - // Write format info on disk - IOFile file(formatInfoPath, "wb"); - file.writeBytes(&info, sizeof(info)); - file.flush(); - file.close(); -} - -Rust::Result UserSaveDataArchive::openArchive(const FSPath& path) { - if (path.type != PathType::Binary) { - Helpers::panic("Unimplemented path type for UserSaveData archive: %d\n", path.type); - return Err(Result::FS::NotFoundInvalid); - } - - const fs::path formatInfoPath = getFormatInfoPath(); - // Format info not found so the archive is not formatted - if (!fs::is_regular_file(formatInfoPath)) { - return Err(Result::FS::NotFormatted); - } - - return Ok((ArchiveBase*)this); -} - -std::optional UserSaveDataArchive::readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) { - Helpers::panic("Unimplemented UserSaveData::ReadFile"); - return 0; -} diff --git a/src/core/fs/ivfc.cpp b/src/core/fs/ivfc.cpp deleted file mode 100644 index ca8c5e26..00000000 --- a/src/core/fs/ivfc.cpp +++ /dev/null @@ -1,76 +0,0 @@ -#include "fs/ivfc.hpp" - -namespace IVFC { - size_t parseIVFC(uintptr_t ivfcStart, IVFC& ivfc) { - uintptr_t ivfcPointer = ivfcStart; - - char* ivfcCharPtr = (char*)ivfcPointer; - if (ivfcCharPtr[0] != 'I' || ivfcCharPtr[1] != 'V' || ivfcCharPtr[2] != 'F' || ivfcCharPtr[3] != 'C') { - printf("Invalid header on IVFC\n"); - return 0; - } - ivfcPointer += 4; - - u32 magicIdentifier = *(u32*)ivfcPointer; - ivfcPointer += 4; - - // RomFS IVFC uses 0x10000, DISA/DIFF IVFC uses 0x20000 here - if (magicIdentifier != 0x10000 && magicIdentifier != 0x20000) { - printf("Invalid IVFC magic identifier: %08X\n", magicIdentifier); - return 0; - } - - if (magicIdentifier == 0x10000) { - ivfc.masterHashSize = *(u32*)ivfcPointer; - ivfcPointer += 4; - // RomFS IVFC uses 3 levels - ivfc.levels.resize(3); - } else { - ivfc.masterHashSize = *(u64*)ivfcPointer; - ivfcPointer += 8; - // DISA/DIFF IVFC uses 4 levels - ivfc.levels.resize(4); - } - - for (size_t i = 0; i < ivfc.levels.size(); i++) { - IVFCLevel level; - - level.logicalOffset = *(u64*)ivfcPointer; - ivfcPointer += 8; - - level.size = *(u64*)ivfcPointer; - ivfcPointer += 8; - - // This field is in log2 - level.blockSize = 1 << *(u32*)ivfcPointer; - ivfcPointer += 4; - - // Skip 4 reserved bytes - ivfcPointer += 4; - - ivfc.levels[i] = level; - } - - u64 ivfcDescriptorSize = *(u64*)ivfcPointer; - ivfcPointer += 8; - - uintptr_t ivfcActualSize = ivfcPointer - ivfcStart; - - // According to 3DBrew, this is usually the case but not guaranteed - if (ivfcActualSize != ivfcDescriptorSize) { - printf("IVFC descriptor size mismatch: %llx != %llx\n", ivfcActualSize, ivfcDescriptorSize); - } - - if (magicIdentifier == 0x10000 && ivfcActualSize != 0x5C) { - // This is always 0x5C bytes long - printf("Invalid IVFC size: %08x\n", (u32)ivfcActualSize); - return 0; - } else if (magicIdentifier == 0x20000 && ivfcActualSize != 0x78) { - // This is always 0x78 bytes long - printf("Invalid IVFC size: %08x\n", (u32)ivfcActualSize); - return 0; - } - - return ivfcActualSize; - } -} // namespace IVFC diff --git a/src/core/fs/romfs.cpp b/src/core/fs/romfs.cpp deleted file mode 100644 index 1c826b19..00000000 --- a/src/core/fs/romfs.cpp +++ /dev/null @@ -1,194 +0,0 @@ -#include "fs/romfs.hpp" - -#include -#include -#include - -#include "fs/ivfc.hpp" -#include "helpers.hpp" - -namespace RomFS { - constexpr u32 metadataInvalidEntry = 0xFFFFFFFF; - - struct Level3Header { - u32 headerSize; - u32 directoryHashTableOffset; - u32 directoryHashTableSize; - u32 directoryMetadataOffset; - u32 directoryMetadataSize; - u32 fileHashTableOffset; - u32 fileHashTableSize; - u32 fileMetadataOffset; - u32 fileMetadataSize; - u32 fileDataOffset; - }; - - inline constexpr uintptr_t alignUp(uintptr_t value, uintptr_t alignment) { - if (value % alignment == 0) return value; - - return value + (alignment - (value % alignment)); - } - - void printNode(const RomFSNode& node, int indentation) { - for (int i = 0; i < indentation; i++) { - printf(" "); - } - printf("%s/\n", std::string(node.name.begin(), node.name.end()).c_str()); - - for (auto& file : node.files) { - for (int i = 0; i <= indentation; i++) { - printf(" "); - } - printf("%s\n", std::string(file->name.begin(), file->name.end()).c_str()); - } - - indentation++; - for (auto& directory : node.directories) { - printNode(*directory, indentation); - } - indentation--; - } - - std::vector> getFiles(uintptr_t fileMetadataBase, u32 currentFileOffset) { - std::vector> files; - - while (currentFileOffset != metadataInvalidEntry) { - u32* metadataPtr = (u32*)(fileMetadataBase + currentFileOffset); - metadataPtr++; // Skip the containing directory - u32 nextFileOffset = *metadataPtr++; - u64 fileDataOffset = *(u64*)metadataPtr; - metadataPtr += 2; - u64 fileSize = *(u64*)metadataPtr; - metadataPtr += 2; - metadataPtr++; // Skip the offset of the next file in the same hash table bucket - u32 nameLength = *metadataPtr++ / 2; - - // Arbitrary limit - if (nameLength > 128) { - printf("Invalid file name length: %08X\n", nameLength); - return {}; - } - - char16_t* namePtr = (char16_t*)metadataPtr; - std::u16string name(namePtr, nameLength); - - std::unique_ptr file = std::make_unique(); - file->isDirectory = false; - file->name = name; - file->metadataOffset = currentFileOffset; - file->dataOffset = fileDataOffset; - file->dataSize = fileSize; - - files.push_back(std::move(file)); - - currentFileOffset = nextFileOffset; - } - - return files; - } - - std::unique_ptr parseRootDirectory(uintptr_t directoryMetadataBase, uintptr_t fileMetadataBase) { - std::unique_ptr rootDirectory = std::make_unique(); - rootDirectory->isDirectory = true; - rootDirectory->name = u"romfs:"; - rootDirectory->metadataOffset = 0; - - u32 rootFilesOffset = *((u32*)(directoryMetadataBase) + 3); - if (rootFilesOffset != metadataInvalidEntry) { - rootDirectory->files = getFiles(fileMetadataBase, rootFilesOffset); - } - - std::queue directoryOffsets; - directoryOffsets.push(rootDirectory.get()); - - while (!directoryOffsets.empty()) { - RomFSNode* currentNode = directoryOffsets.front(); - directoryOffsets.pop(); - - u32* metadataPtr = (u32*)(directoryMetadataBase + currentNode->metadataOffset); - metadataPtr += 2; - - // Offset of first child directory - u32 currentDirectoryOffset = *metadataPtr; - - // Loop over all the sibling directories of the first child to get all the children directories - // of the current directory - while (currentDirectoryOffset != metadataInvalidEntry) { - metadataPtr = (u32*)(directoryMetadataBase + currentDirectoryOffset); - metadataPtr++; // Skip the parent offset - u32 siblingDirectoryOffset = *metadataPtr++; - metadataPtr++; // Skip offset of first child directory - u32 currentFileOffset = *metadataPtr++; - metadataPtr++; // Skip offset of next directory in the same hash table bucket - u32 nameLength = *metadataPtr++ / 2; - - // Arbitrary limit - if (nameLength > 128) { - printf("Invalid directory name length: %08X\n", nameLength); - return {}; - } - - char16_t* namePtr = (char16_t*)metadataPtr; - std::u16string name(namePtr, nameLength); - - std::unique_ptr directory = std::make_unique(); - directory->isDirectory = true; - directory->name = name; - directory->metadataOffset = currentDirectoryOffset; - directory->files = getFiles(fileMetadataBase, currentFileOffset); - - currentNode->directories.push_back(std::move(directory)); - currentDirectoryOffset = siblingDirectoryOffset; - } - - for (auto& directory : currentNode->directories) { - directoryOffsets.push(directory.get()); - } - } - - return rootDirectory; - } - - std::unique_ptr parseRomFSTree(uintptr_t romFS, u64 romFSSize) { - IVFC::IVFC ivfc; - size_t ivfcSize = IVFC::parseIVFC((uintptr_t)romFS, ivfc); - - if (ivfcSize == 0) { - printf("Failed to parse IVFC\n"); - return {}; - } - - uintptr_t masterHashOffset = RomFS::alignUp(ivfcSize, 0x10); - // From GBATEK: - // The "Logical Offsets" are completely unrelated to the physical offsets in the RomFS partition. - // Instead, the "Logical Offsets" might be something about where to map the Level 1-3 sections in - // virtual memory (with the physical Level 3,1,2 ordering being re-ordered to Level 1,2,3)? - uintptr_t level3Offset = RomFS::alignUp(masterHashOffset + ivfc.masterHashSize, ivfc.levels[2].blockSize); - uintptr_t level3Base = (uintptr_t)romFS + level3Offset; - u32* level3Ptr = (u32*)level3Base; - - Level3Header header; - header.headerSize = *level3Ptr++; - header.directoryHashTableOffset = *level3Ptr++; - header.directoryHashTableSize = *level3Ptr++; - header.directoryMetadataOffset = *level3Ptr++; - header.directoryMetadataSize = *level3Ptr++; - header.fileHashTableOffset = *level3Ptr++; - header.fileHashTableSize = *level3Ptr++; - header.fileMetadataOffset = *level3Ptr++; - header.fileMetadataSize = *level3Ptr++; - header.fileDataOffset = *level3Ptr; - - if (header.headerSize != 0x28) { - printf("Invalid level 3 header size: %08X\n", header.headerSize); - return {}; - } - - std::unique_ptr root = parseRootDirectory(level3Base + header.directoryMetadataOffset, level3Base + header.fileMetadataOffset); - - // If you want to print the tree, uncomment this - // printNode(*root, 0); - - return root; - } -} // namespace RomFS \ No newline at end of file diff --git a/src/core/kernel/address_arbiter.cpp b/src/core/kernel/address_arbiter.cpp deleted file mode 100644 index 8c07b423..00000000 --- a/src/core/kernel/address_arbiter.cpp +++ /dev/null @@ -1,109 +0,0 @@ -#include "kernel.hpp" -#include "resource_limits.hpp" - -static const char* arbitrationTypeToString(u32 type) { - switch (type) { - case 0: return "Signal"; - case 1: return "Wait if less"; - case 2: return "Decrement and wait if less"; - case 3: return "Wait if less with timeout"; - case 4: return "Decrement and wait if less with timeout"; - default: return "Unknown arbitration type"; - } -} - -Handle Kernel::makeArbiter() { - if (arbiterCount >= appResourceLimits.maxAddressArbiters) { - Helpers::panic("Overflowed the number of address arbiters"); - } - arbiterCount++; - - Handle ret = makeObject(KernelObjectType::AddressArbiter); - objects[ret].data = new AddressArbiter(); - return ret; -} - -// Result CreateAddressArbiter(Handle* arbiter) -void Kernel::createAddressArbiter() { - logSVC("CreateAddressArbiter\n"); - regs[0] = Result::Success; - regs[1] = makeArbiter(); -} - -// Result ArbitrateAddress(Handle arbiter, u32 addr, ArbitrationType type, s32 value, s64 nanoseconds) -void Kernel::arbitrateAddress() { - const Handle handle = regs[0]; - const u32 address = regs[1]; - const u32 type = regs[2]; - const s32 value = s32(regs[3]); - const s64 ns = s64(u64(regs[4]) | (u64(regs[5]) << 32)); - - logSVC("ArbitrateAddress(Handle = %X, address = %08X, type = %s, value = %d, ns = %lld)\n", handle, address, - arbitrationTypeToString(type), value, ns); - - const auto arbiter = getObject(handle, KernelObjectType::AddressArbiter); - if (arbiter == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - if (address & 3) [[unlikely]] { - Helpers::panic("ArbitrateAddress: Unaligned address"); - } - - if (type > 4) [[unlikely]] { - regs[0] = Result::FND::InvalidEnumValue; - return; - } - // This needs to put the error code in r0 before we change threads - regs[0] = Result::Success; - - switch (static_cast(type)) { - // Puts this thread to sleep if word < value until another thread arbitrates the address using SIGNAL - case ArbitrationType::WaitIfLess: { - s32 word = static_cast(mem.read32(address)); // Yes this is meant to be signed - if (word < value) { - sleepThreadOnArbiter(address); - } - break; - } - - // Puts this thread to sleep if word < value until another thread arbitrates the address using SIGNAL - // If the thread is put to sleep, the arbiter address is decremented - case ArbitrationType::DecrementAndWaitIfLess: { - s32 word = static_cast(mem.read32(address)); // Yes this is meant to be signed - if (word < value) { - mem.write32(address, word - 1); - sleepThreadOnArbiter(address); - } - break; - } - - case ArbitrationType::Signal: - signalArbiter(address, value); - break; - - default: - Helpers::panic("ArbitrateAddress: Unimplemented type %s", arbitrationTypeToString(type)); - } - - requireReschedule(); -} - -// Signal up to "threadCount" threads waiting on the arbiter indicated by "waitingAddress" -void Kernel::signalArbiter(u32 waitingAddress, s32 threadCount) { - if (threadCount == 0) [[unlikely]] return; - s32 count = 0; // Number of threads we've woken up - - // Wake threads with the highest priority threads being woken up first - for (auto index : threadIndices) { - Thread& t = threads[index]; - if (t.status == ThreadStatus::WaitArbiter && t.waitingAddress == waitingAddress) { - t.status = ThreadStatus::Ready; - count += 1; - - // Check if we've reached the max number of. If count < 0 then all threads are released. - if (count == threadCount && threadCount > 0) break; - } - } -} \ No newline at end of file diff --git a/src/core/kernel/directory_operations.cpp b/src/core/kernel/directory_operations.cpp deleted file mode 100644 index d4cac064..00000000 --- a/src/core/kernel/directory_operations.cpp +++ /dev/null @@ -1,181 +0,0 @@ -#include -#include -#include -#include -#include - -#include "ipc.hpp" -#include "kernel.hpp" - -namespace DirectoryOps { - enum : u32 { - Read = 0x08010042, - Close = 0x08020000 - }; -} - -// Helper to convert std::string to an 8.3 filename to mimic how Directory::Read works -using ShortFilename = std::array; -using ShortExtension = std::array; -using Filename83 = std::pair; - -// The input string should be the stem and extension together, not separately -// Eg something like "boop.png", "panda.txt", etc -Filename83 convertTo83(const std::string& path) { - ShortFilename filename; - ShortExtension extension; - - // Convert a character to add it to the 8.3 name - // "Characters such as + are changed to the underscore _, and letters are put in uppercase" - // For now we put letters in uppercase until we find out what is supposed to be converted to _ and so on - auto convertCharacter = [](char c) { return (char) std::toupper(c); }; - - // List of forbidden character for 8.3 filenames, from Citra - // TODO: Use constexpr when C++20 support is solid - const std::string forbiddenChars = ".\"/\\[]:;=, "; - - // By default space-initialize the whole name, append null terminator in the end for both the filename and extension - filename.fill(' '); - extension.fill(' '); - filename[filename.size() - 1] = '\0'; - extension[extension.size() - 1] = '\0'; - - // Find the position of the dot in the string - auto dotPos = path.rfind('.'); - // Wikipedia: If a file name has no extension, a trailing . has no effect - // Thus check if the last character is a dot and ignore it, prefering the previous dot if it exists - if (dotPos == path.size() - 1) { - dotPos = path.rfind('.', dotPos); // Get previous dot - } - - // If pointPos is not npos we have a valid dot character, and as such an extension - bool haveExtension = dotPos != std::string::npos; - int validCharacterCount = 0; - bool filenameTooBig = false; - - // Parse characters until we're done OR until we reach 9 characters, in which case according to Wikipedia we must truncate to 6 letters - // And append ~1 in the end - for (auto c : path.substr(0, dotPos)) { - // Character is forbidden, we must ignore it - if (forbiddenChars.find(c) != std::string::npos) { - continue; - } - - // We already have capped the amount of characters, thus our filename is too big - if (validCharacterCount == 8) { - filenameTooBig = true; - break; - } - filename[validCharacterCount++] = convertCharacter(c); // Append character to filename - } - - // Truncate name to 6 characters and denote that it is too big - // TODO: Wikipedia says we should also do this if the filename contains an invalid character, including spaces. Must test - if (filenameTooBig) { - filename[6] = '~'; - filename[7] = '1'; - } - - if (haveExtension) { - int extensionLen = 0; - // Copy up to 3 characters from the dot onwards to the extension - for (auto c : path.substr(dotPos + 1, 3)) { - extension[extensionLen++] = convertCharacter(c); - } - } - - return {filename, extension}; -} - -void Kernel::handleDirectoryOperation(u32 messagePointer, Handle directory) { - const u32 cmd = mem.read32(messagePointer); - switch (cmd) { - case DirectoryOps::Close: closeDirectory(messagePointer, directory); break; - case DirectoryOps::Read: readDirectory(messagePointer, directory); break; - default: Helpers::panic("Unknown directory operation: %08X", cmd); - } -} - -void Kernel::closeDirectory(u32 messagePointer, Handle directory) { - logFileIO("Closed directory %X\n", directory); - - const auto p = getObject(directory, KernelObjectType::Directory); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called CloseDirectory on non-existent directory"); - } - - p->getData()->isOpen = false; - mem.write32(messagePointer, IPC::responseHeader(0x802, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Kernel::readDirectory(u32 messagePointer, Handle directory) { - const u32 entryCount = mem.read32(messagePointer + 4); - const u32 outPointer = mem.read32(messagePointer + 12); - logFileIO("Directory::Read (handle = %X, entry count = %d, out pointer = %08X)\n", directory, entryCount, outPointer); - - const auto p = getObject(directory, KernelObjectType::Directory); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called ReadDirectory on non-existent directory"); - } - - DirectorySession* session = p->getData(); - if (!session->pathOnDisk.has_value()) [[unlikely]] { - Helpers::panic("Called ReadDirectory on directory that doesn't have a path on disk"); - } - - std::filesystem::path dirPath = session->pathOnDisk.value(); - - int count = 0; - while (count < entryCount && session->currentEntry < session->entries.size()) { - const auto& entry = session->entries[session->currentEntry]; - std::filesystem::path path = entry.path; - std::filesystem::path filename = path.filename(); - - std::filesystem::path relative = path.lexically_relative(dirPath); - bool isDirectory = std::filesystem::is_directory(relative); - - std::u16string nameU16 = relative.u16string(); - bool isHidden = nameU16[0] == u'.'; // If the first character is a dot then this is a hidden file/folder - - const u32 entryPointer = outPointer + (count * 0x228); // 0x228 is the size of a single entry - u32 utfPointer = entryPointer; - u32 namePointer = entryPointer + 0x20C; - u32 extensionPointer = entryPointer + 0x216; - u32 attributePointer = entryPointer + 0x21C; - u32 sizePointer = entryPointer + 0x220; - - std::string filenameString = filename.string(); - auto [shortFilename, shortExtension] = convertTo83(filenameString); - - for (auto c : nameU16) { - mem.write16(utfPointer, u16(c)); - utfPointer += sizeof(u16); - } - mem.write16(utfPointer, 0); // Null terminate the UTF16 name - - // Write 8.3 filename-extension - for (auto c : shortFilename) { - mem.write8(namePointer, u8(c)); - namePointer += sizeof(u8); - } - - for (auto c : shortExtension) { - mem.write8(extensionPointer, u8(c)); - extensionPointer += sizeof(u8); - } - - mem.write8(outPointer + 0x21A, 1); // Always 1 according to 3DBrew - mem.write8(attributePointer, entry.isDirectory ? 1 : 0); // "Is directory" attribute - mem.write8(attributePointer + 1, isHidden ? 1 : 0); // "Is hidden" attribute - mem.write8(attributePointer + 2, entry.isDirectory ? 0 : 1); // "Is archive" attribute - mem.write8(attributePointer + 3, 0); // "Is read-only" attribute - - count++; // Increment number of read directories - session->currentEntry++; // Increment index of the entry currently being read - } - - mem.write32(messagePointer, IPC::responseHeader(0x801, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, count); -} diff --git a/src/core/kernel/error.cpp b/src/core/kernel/error.cpp deleted file mode 100644 index 669ebc49..00000000 --- a/src/core/kernel/error.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include "kernel.hpp" - -namespace Commands { - enum : u32 { - Throw = 0x00010800 - }; -} - -namespace FatalErrorType { - enum : u32 { - Generic = 0, - Corrupted = 1, - CardRemoved = 2, - Exception = 3, - ResultFailure = 4, - Logged = 5 - }; -} - -// Handle SendSyncRequest targetting the err:f port -void Kernel::handleErrorSyncRequest(u32 messagePointer) { - u32 cmd = mem.read32(messagePointer); - switch (cmd) { - case Commands::Throw: - throwError(messagePointer); - break; - - default: - Helpers::panic("Unimplemented err:f command %08X\n", cmd); - break; - } -} - -void Kernel::throwError(u32 messagePointer) { - const auto type = mem.read8(messagePointer + 4); // Fatal error type - const u32 pc = mem.read32(messagePointer + 12); - const u32 pid = mem.read32(messagePointer + 16); - logError("Thrown fatal error @ %08X (pid = %X, type = %d)\n", pc, pid, type); - - // Read the error message if type == 4 - if (type == FatalErrorType::ResultFailure) { - const auto error = mem.readString(messagePointer + 0x24, 0x60); - logError("ERROR: %s\n", error.c_str()); - } - - Helpers::panic("Thrown fatal error"); -} \ No newline at end of file diff --git a/src/core/kernel/events.cpp b/src/core/kernel/events.cpp deleted file mode 100644 index 7c0d3047..00000000 --- a/src/core/kernel/events.cpp +++ /dev/null @@ -1,246 +0,0 @@ -#include "kernel.hpp" -#include "cpu.hpp" -#include -#include - -const char* Kernel::resetTypeToString(u32 type) { - switch (type) { - case 0: return "One shot"; - case 1: return "Sticky"; - case 2: return "Pulse"; - default: return "Invalid"; - } -} - -Handle Kernel::makeEvent(ResetType resetType, Event::CallbackType callback) { - Handle ret = makeObject(KernelObjectType::Event); - objects[ret].data = new Event(resetType, callback); - return ret; -} - -bool Kernel::signalEvent(Handle handle) { - KernelObject* object = getObject(handle, KernelObjectType::Event); - if (object == nullptr) [[unlikely]] { - Helpers::panic("Tried to signal non-existent event"); - return false; - } - - Event* event = object->getData(); - event->fired = true; - - // One shot events go back to being not fired once they are signaled - if (event->resetType == ResetType::Pulse) { - event->fired = false; - } - - // Check if there's any thread waiting on this event - if (event->waitlist != 0) { - wakeupAllThreads(event->waitlist, handle); - event->waitlist = 0; // No threads waiting; - - if (event->resetType == ResetType::OneShot) { - event->fired = false; - } - } - - rescheduleThreads(); - // Run the callback for events that require a special callback - if (event->callback != Event::CallbackType::None) [[unlikely]] { - runEventCallback(event->callback); - } - - return true; -} - -// Result CreateEvent(Handle* event, ResetType resetType) -void Kernel::svcCreateEvent() { - const u32 outPointer = regs[0]; - const u32 resetType = regs[1]; - - if (resetType > 2) - Helpers::panic("Invalid reset type for event %d", resetType); - - logSVC("CreateEvent(handle pointer = %08X, resetType = %s)\n", outPointer, resetTypeToString(resetType)); - - regs[0] = Result::Success; - regs[1] = makeEvent(static_cast(resetType)); -} - -// Result ClearEvent(Handle event) -void Kernel::svcClearEvent() { - const Handle handle = regs[0]; - const auto event = getObject(handle, KernelObjectType::Event); - logSVC("ClearEvent(event handle = %X)\n", handle); - - if (event == nullptr) [[unlikely]] { - Helpers::panic("Tried to clear non-existent event (handle = %X)", handle); - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - event->getData()->fired = false; - regs[0] = Result::Success; -} - -// Result SignalEvent(Handle event) -void Kernel::svcSignalEvent() { - const Handle handle = regs[0]; - logSVC("SignalEvent(event handle = %X)\n", handle); - KernelObject* object = getObject(handle, KernelObjectType::Event); - - if (object == nullptr) { - Helpers::panic("Signalled non-existent event: %X\n", handle); - regs[0] = Result::Kernel::InvalidHandle; - } else { - // We must signalEvent after setting r0, otherwise the r0 of the new thread will ne corrupted - regs[0] = Result::Success; - signalEvent(handle); - } -} - -// Result WaitSynchronization1(Handle handle, s64 timeout_nanoseconds) -void Kernel::waitSynchronization1() { - const Handle handle = regs[0]; - const s64 ns = s64(u64(regs[2]) | (u64(regs[3]) << 32)); - logSVC("WaitSynchronization1(handle = %X, ns = %lld)\n", handle, ns); - - const auto object = getObject(handle); - - if (object == nullptr) [[unlikely]] { - Helpers::panic("WaitSynchronization1: Bad event handle %X\n", handle); - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - if (!isWaitable(object)) [[unlikely]] { - Helpers::panic("Tried to wait on a non waitable object. Type: %s, handle: %X\n", object->getTypeName(), handle); - } - - if (!shouldWaitOnObject(object)) { - acquireSyncObject(object, threads[currentThreadIndex]); // Acquire the object since it's ready - regs[0] = Result::Success; - } else { - // Timeout is 0, don't bother waiting, instantly timeout - if (ns == 0) { - regs[0] = Result::OS::Timeout; - return; - } - - regs[0] = Result::OS::Timeout; // This will be overwritten with success if we don't timeout - - auto& t = threads[currentThreadIndex]; - t.waitList.resize(1); - t.status = ThreadStatus::WaitSync1; - t.wakeupTick = getWakeupTick(ns); - t.waitList[0] = handle; - - // Add the current thread to the object's wait list - object->getWaitlist() |= (1ull << currentThreadIndex); - - requireReschedule(); - } -} - -// Result WaitSynchronizationN(s32* out, Handle* handles, s32 handlecount, bool waitAll, s64 timeout_nanoseconds) -void Kernel::waitSynchronizationN() { - // TODO: Are these arguments even correct? - s32 ns1 = regs[0]; - u32 handles = regs[1]; - s32 handleCount = regs[2]; - bool waitAll = regs[3] != 0; - u32 ns2 = regs[4]; - s32 outPointer = regs[5]; // "out" pointer - shows which object got bonked if we're waiting on multiple objects - s64 ns = s64(ns1) | (s64(ns2) << 32); - - logSVC("WaitSynchronizationN (handle pointer: %08X, count: %d, timeout = %lld)\n", handles, handleCount, ns); - - if (handleCount <= 0) - Helpers::panic("WaitSyncN: Invalid handle count"); - - // Temporary hack: Until we implement service sessions properly, don't bother sleeping when WaitSyncN targets a service handle - // This is necessary because a lot of games use WaitSyncN with eg the CECD service - if (handleCount == 1 && KernelHandles::isServiceHandle(mem.read32(handles))) { - regs[0] = Result::Success; - regs[1] = 0; - return; - } - - using WaitObject = std::pair; - std::vector waitObjects(handleCount); - - // We don't actually need to wait if waitAll == true unless one of the objects is not ready - bool allReady = true; // Default initialize to true, set to fault if one of the objects is not ready - - // Tracks whether at least one object is ready, + the index of the first ready object - // This is used when waitAll == false, because if one object is already available then we can skip the sleeping - bool oneObjectReady = false; - s32 firstReadyObjectIndex = 0; - - for (s32 i = 0; i < handleCount; i++) { - Handle handle = mem.read32(handles); - handles += sizeof(Handle); - - auto object = getObject(handle); - // Panic if one of the objects is not even an object - if (object == nullptr) [[unlikely]] { - Helpers::panic("WaitSynchronizationN: Bad object handle %X\n", handle); - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - // Panic if one of the objects is not a valid sync object - if (!isWaitable(object)) [[unlikely]] { - Helpers::panic("Tried to wait on a non waitable object in WaitSyncN. Type: %s, handle: %X\n", - object->getTypeName(), handle); - } - - if (shouldWaitOnObject(object)) { - allReady = false; // Derp, not all objects are ready :( - } else { /// At least one object is ready to be acquired ahead of time. If it's the first one, write it down - if (!oneObjectReady) { - oneObjectReady = true; - firstReadyObjectIndex = i; - } - } - - waitObjects[i] = {handle, object}; - } - - auto& t = threads[currentThreadIndex]; - - // We only need to wait on one object. Easy. - if (!waitAll) { - // If there's ready objects, acquire the first one and return - if (oneObjectReady) { - regs[0] = Result::Success; - regs[1] = firstReadyObjectIndex; // Return index of the acquired object - acquireSyncObject(waitObjects[firstReadyObjectIndex].second, t); // Acquire object - return; - } - - regs[0] = Result::OS::Timeout; // This will be overwritten with success if we don't timeout - // If the thread wakes up without timeout, this will be adjusted to the index of the handle that woke us up - regs[1] = 0xFFFFFFFF; - t.waitList.resize(handleCount); - t.status = ThreadStatus::WaitSyncAny; - t.outPointer = outPointer; - t.wakeupTick = getWakeupTick(ns); - - for (s32 i = 0; i < handleCount; i++) { - t.waitList[i] = waitObjects[i].first; // Add object to this thread's waitlist - waitObjects[i].second->getWaitlist() |= (1ull << currentThreadIndex); // And add the thread to the object's waitlist - } - - requireReschedule(); - } else { - Helpers::panic("WaitSynchronizationN with waitAll"); - } -} - -void Kernel::runEventCallback(Event::CallbackType callback) { - switch (callback) { - case Event::CallbackType::None: break; - case Event::CallbackType::DSPSemaphore: serviceManager.getDSP().onSemaphoreEventSignal(); break; - default: Helpers::panic("Unimplemented special callback for kernel event!"); break; - } -} \ No newline at end of file diff --git a/src/core/kernel/file_operations.cpp b/src/core/kernel/file_operations.cpp deleted file mode 100644 index 972190fa..00000000 --- a/src/core/kernel/file_operations.cpp +++ /dev/null @@ -1,267 +0,0 @@ -#include "ipc.hpp" -#include "kernel.hpp" - -namespace FileOps { - enum : u32 { - Read = 0x080200C2, - Write = 0x08030102, - GetSize = 0x08040000, - SetSize = 0x08050080, - Close = 0x08080000, - Flush = 0x08090000, - SetPriority = 0x080A0040, - OpenLinkFile = 0x080C0000 - }; -} - - -void Kernel::handleFileOperation(u32 messagePointer, Handle file) { - const u32 cmd = mem.read32(messagePointer); - switch (cmd) { - case FileOps::Close: closeFile(messagePointer, file); break; - case FileOps::Flush: flushFile(messagePointer, file); break; - case FileOps::GetSize: getFileSize(messagePointer, file); break; - case FileOps::OpenLinkFile: openLinkFile(messagePointer, file); break; - case FileOps::Read: readFile(messagePointer, file); break; - case FileOps::SetSize: setFileSize(messagePointer, file); break; - case FileOps::SetPriority: setFilePriority(messagePointer, file); break; - case FileOps::Write: writeFile(messagePointer, file); break; - default: Helpers::panic("Unknown file operation: %08X", cmd); - } -} - -void Kernel::closeFile(u32 messagePointer, Handle fileHandle) { - logFileIO("Closed file %X\n", fileHandle); - - const auto p = getObject(fileHandle, KernelObjectType::File); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called CloseFile on non-existent file"); - } - - FileSession* session = p->getData(); - session->isOpen = false; - if (session->fd != nullptr) { - fclose(session->fd); - } - - mem.write32(messagePointer, IPC::responseHeader(0x0808, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Kernel::flushFile(u32 messagePointer, Handle fileHandle) { - logFileIO("Flushed file %X\n", fileHandle); - - const auto p = getObject(fileHandle, KernelObjectType::File); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called FlushFile on non-existent file"); - } - - FileSession* session = p->getData(); - if (session->fd != nullptr) { - fflush(session->fd); - } - - mem.write32(messagePointer, IPC::responseHeader(0x0809, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Kernel::readFile(u32 messagePointer, Handle fileHandle) { - u64 offset = mem.read64(messagePointer + 4); - u32 size = mem.read32(messagePointer + 12); - u32 dataPointer = mem.read32(messagePointer + 20); - - logFileIO("Trying to read %X bytes from file %X, starting from offset %llX into memory address %08X\n", - size, fileHandle, offset, dataPointer); - - const auto p = getObject(fileHandle, KernelObjectType::File); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called ReadFile on non-existent file"); - } - - mem.write32(messagePointer, IPC::responseHeader(0x0802, 2, 2)); - - FileSession* file = p->getData(); - if (!file->isOpen) { - Helpers::panic("Tried to read closed file"); - } - - // Handle files with their own file descriptors by just fread'ing the data - if (file->fd) { - std::unique_ptr data(new u8[size]); - IOFile f(file->fd); - - auto [success, bytesRead] = f.readBytes(data.get(), size); - - if (!success) { - Helpers::panic("Kernel::ReadFile with file descriptor failed"); - } - else { - for (size_t i = 0; i < bytesRead; i++) { - mem.write8(u32(dataPointer + i), data[i]); - } - - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, u32(bytesRead)); - } - - return; - } - - // Handle files without their own FD, such as SelfNCCH files - auto archive = file->archive; - std::optional bytesRead = archive->readFile(file, offset, size, dataPointer); - if (!bytesRead.has_value()) { - Helpers::panic("Kernel::ReadFile failed"); - } else { - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, bytesRead.value()); - } -} - -void Kernel::writeFile(u32 messagePointer, Handle fileHandle) { - u64 offset = mem.read64(messagePointer + 4); - u32 size = mem.read32(messagePointer + 12); - u32 writeOption = mem.read32(messagePointer + 16); - u32 dataPointer = mem.read32(messagePointer + 24); - - logFileIO("Trying to write %X bytes to file %X, starting from file offset %llX and memory address %08X\n", - size, fileHandle, offset, dataPointer); - - const auto p = getObject(fileHandle, KernelObjectType::File); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called ReadFile on non-existent file"); - } - - FileSession* file = p->getData(); - if (!file->isOpen) { - Helpers::panic("Tried to write closed file"); - } - - if (!file->fd) - Helpers::panic("[Kernel::File::WriteFile] Tried to write to file without a valid file descriptor"); - - std::unique_ptr data(new u8[size]); - for (size_t i = 0; i < size; i++) { - data[i] = mem.read8(u32(dataPointer + i)); - } - - IOFile f(file->fd); - auto [success, bytesWritten] = f.writeBytes(data.get(), size); - - // TODO: Should this check only the byte? - if (writeOption) { - f.flush(); - } - - mem.write32(messagePointer, IPC::responseHeader(0x0803, 2, 2)); - if (!success) { - Helpers::panic("Kernel::WriteFile failed"); - } else { - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, u32(bytesWritten)); - } -} - -void Kernel::setFileSize(u32 messagePointer, Handle fileHandle) { - logFileIO("Setting size of file %X\n", fileHandle); - - const auto p = getObject(fileHandle, KernelObjectType::File); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called SetFileSize on non-existent file"); - } - - FileSession* file = p->getData(); - if (!file->isOpen) { - Helpers::panic("Tried to get size of closed file"); - } - mem.write32(messagePointer, IPC::responseHeader(0x0805, 1, 0)); - - if (file->fd) { - const u64 newSize = mem.read64(messagePointer + 4); - IOFile f(file->fd); - bool success = f.setSize(newSize); - - if (success) { - mem.write32(messagePointer + 4, Result::Success); - } else { - Helpers::panic("FileOp::SetFileSize failed"); - } - } else { - Helpers::panic("Tried to set file size of file without file descriptor"); - } -} - -void Kernel::getFileSize(u32 messagePointer, Handle fileHandle) { - logFileIO("Getting size of file %X\n", fileHandle); - - const auto p = getObject(fileHandle, KernelObjectType::File); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called GetFileSize on non-existent file"); - } - - FileSession* file = p->getData(); - if (!file->isOpen) { - Helpers::panic("Tried to get size of closed file"); - } - mem.write32(messagePointer, IPC::responseHeader(0x0804, 3, 0)); - - if (file->fd) { - IOFile f(file->fd); - std::optional size = f.size(); - - if (size.has_value()) { - mem.write32(messagePointer + 4, Result::Success); - mem.write64(messagePointer + 8, size.value()); - } else { - Helpers::panic("FileOp::GetFileSize failed"); - } - } else { - Helpers::panic("Tried to get file size of file without file descriptor"); - } -} - -void Kernel::openLinkFile(u32 messagePointer, Handle fileHandle) { - logFileIO("Open link file (clone) of file %X\n", fileHandle); - - const auto p = getObject(fileHandle, KernelObjectType::File); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called GetFileSize on non-existent file"); - } - - FileSession* file = p->getData(); - if (!file->isOpen) { - Helpers::panic("Tried to clone closed file"); - } - - // Make clone object - auto handle = makeObject(KernelObjectType::File); - auto& cloneFile = getObjects()[handle]; - - // Make a clone of the file by copying the archive/archive path/file path/file descriptor/etc of the original file - // TODO: Maybe we should duplicate the file handle instead of copying. This way their offsets will be separate - // However we do seek properly on every file access so this shouldn't matter - cloneFile.data = new FileSession(*file); - - mem.write32(messagePointer, IPC::responseHeader(0x080C, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 12, handle); -} - -void Kernel::setFilePriority(u32 messagePointer, Handle fileHandle) { - const u32 priority = mem.read32(messagePointer + 4); - logFileIO("Setting priority of file %X to %d\n", fileHandle, priority); - - const auto p = getObject(fileHandle, KernelObjectType::File); - if (p == nullptr) [[unlikely]] { - Helpers::panic("Called GetFileSize on non-existent file"); - } - - FileSession* file = p->getData(); - if (!file->isOpen) { - Helpers::panic("Tried to clone closed file"); - } - file->priority = priority; - - mem.write32(messagePointer, IPC::responseHeader(0x080A, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} diff --git a/src/core/kernel/idle_thread.cpp b/src/core/kernel/idle_thread.cpp deleted file mode 100644 index d666968b..00000000 --- a/src/core/kernel/idle_thread.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include -#include "arm_defs.hpp" -#include "kernel.hpp" - -/* - This file sets up an idle thread that's meant to run when no other OS thread can run. - It simply idles and constantly yields to check if there's any other thread that can run - The code for our idle thread looks like this - -idle_thread_main: - // Sleep for 0 seconds with the SleepThread SVC, which just yields execution - mov r0, #0 - mov r1, #0 - svc SleepThread - - b idle_thread_main -*/ - -static constexpr u8 idleThreadCode[] = { - 0x00, 0x00, 0xA0, 0xE3, // mov r0, #0 - 0x00, 0x10, 0xA0, 0xE3, // mov r1, #0 - 0x0A, 0x00, 0x00, 0xEF, // svc SleepThread - 0xFB, 0xFF, 0xFF, 0xEA // b idle_thread_main -}; - -// Set up an idle thread to run when no thread is able to run -void Kernel::setupIdleThread() { - Thread& t = threads[idleThreadIndex]; - constexpr u32 codeAddress = 0xBFC00000; - - // Reserve some memory for the idle thread's code. We map this memory to vaddr BFC00000 which is not userland-accessible - // We only allocate 4KB (1 page) because our idle code is pretty small - const u32 fcramIndex = mem.allocateSysMemory(Memory::pageSize); - auto vaddr = mem.allocateMemory(codeAddress, fcramIndex, Memory::pageSize, true, true, false, true, false, true); - if (!vaddr.has_value() || vaddr.value() != codeAddress) { - Helpers::panic("Failed to setup idle thread"); - } - - // Copy idle thread code to the allocated FCRAM - std::memcpy(&mem.getFCRAM()[fcramIndex], idleThreadCode, sizeof(idleThreadCode)); - - t.entrypoint = codeAddress; - t.tlsBase = 0; - t.gprs[13] = 0; // Set SP & LR to 0 just in case. The idle thread should never access memory, but let's be safe - t.gprs[14] = 0; - t.gprs[15] = codeAddress; - t.cpsr = CPSR::UserMode; - t.fpscr = FPSCR::ThreadDefault; - - // Our idle thread should have as low of a priority as possible, because, well, it's an idle thread. - // We handle this by giving it a priority of 0x40, which is lower than is actually allowed for user threads - // (High priority value = low priority). This is the same priority used in the retail kernel. - t.priority = 0x40; - t.status = ThreadStatus::Ready; - - // Add idle thread to the list of thread indices - threadIndices.push_back(idleThreadIndex); - sortThreads(); -} diff --git a/src/core/kernel/kernel.cpp b/src/core/kernel/kernel.cpp deleted file mode 100644 index 392b87fd..00000000 --- a/src/core/kernel/kernel.cpp +++ /dev/null @@ -1,401 +0,0 @@ -#include -#include "kernel.hpp" -#include "kernel_types.hpp" -#include "cpu.hpp" - -Kernel::Kernel(CPU& cpu, Memory& mem, GPU& gpu, const EmulatorConfig& config) - : cpu(cpu), regs(cpu.regs()), mem(mem), handleCounter(0), serviceManager(regs, mem, gpu, currentProcess, *this, config) { - objects.reserve(512); // Make room for a few objects to avoid further memory allocs later - mutexHandles.reserve(8); - portHandles.reserve(32); - threadIndices.reserve(appResourceLimits.maxThreads); - - for (int i = 0; i < threads.size(); i++) { - Thread& t = threads[i]; - - t.index = i; - t.tlsBase = VirtualAddrs::TLSBase + i * VirtualAddrs::TLSSize; - t.status = ThreadStatus::Dead; - t.waitList.clear(); - t.waitList.reserve(10); // Reserve some space for the wait list to avoid further memory allocs later - // The state below isn't necessary to initialize but we do it anyways out of caution - t.outPointer = 0; - t.waitAll = false; - } - - setVersion(1, 69); -} - -void Kernel::serviceSVC(u32 svc) { - switch (svc) { - case 0x01: controlMemory(); break; - case 0x02: queryMemory(); break; - case 0x08: createThread(); break; - case 0x09: exitThread(); break; - case 0x0A: svcSleepThread(); break; - case 0x0B: getThreadPriority(); break; - case 0x0C: setThreadPriority(); break; - case 0x0F: getThreadIdealProcessor(); break; - case 0x11: getCurrentProcessorNumber(); break; - case 0x13: svcCreateMutex(); break; - case 0x14: svcReleaseMutex(); break; - case 0x15: svcCreateSemaphore(); break; - case 0x16: svcReleaseSemaphore(); break; - case 0x17: svcCreateEvent(); break; - case 0x18: svcSignalEvent(); break; - case 0x19: svcClearEvent(); break; - case 0x1A: svcCreateTimer(); break; - case 0x1B: svcSetTimer(); break; - case 0x1C: svcCancelTimer(); break; - case 0x1D: svcClearTimer(); break; - case 0x1E: createMemoryBlock(); break; - case 0x1F: mapMemoryBlock(); break; - case 0x20: unmapMemoryBlock(); break; - case 0x21: createAddressArbiter(); break; - case 0x22: arbitrateAddress(); break; - case 0x23: svcCloseHandle(); break; - case 0x24: waitSynchronization1(); break; - case 0x25: waitSynchronizationN(); break; - case 0x27: duplicateHandle(); break; - case 0x28: getSystemTick(); break; - case 0x2A: getSystemInfo(); break; - case 0x2B: getProcessInfo(); break; - case 0x2D: connectToPort(); break; - case 0x32: sendSyncRequest(); break; - case 0x35: getProcessID(); break; - case 0x37: getThreadID(); break; - case 0x38: getResourceLimit(); break; - case 0x39: getResourceLimitLimitValues(); break; - case 0x3A: getResourceLimitCurrentValues(); break; - case 0x3B: getThreadContext(); break; - case 0x3D: outputDebugString(); break; - default: Helpers::panic("Unimplemented svc: %X @ %08X", svc, regs[15]); break; - } - - evalReschedule(); -} - -void Kernel::setVersion(u8 major, u8 minor) { - u16 descriptor = (u16(major) << 8) | u16(minor); - - kernelVersion = descriptor; - mem.kernelVersion = descriptor; // The memory objects needs a copy because you can read the kernel ver from config mem -} - -Handle Kernel::makeProcess(u32 id) { - const Handle processHandle = makeObject(KernelObjectType::Process); - const Handle resourceLimitHandle = makeObject(KernelObjectType::ResourceLimit); - - // Allocate data - objects[processHandle].data = new Process(id); - const auto processData = objects[processHandle].getData(); - - // Link resource limit object with its parent process - objects[resourceLimitHandle].data = &processData->limits; - processData->limits.handle = resourceLimitHandle; - return processHandle; -} - -// Get a pointer to the process indicated by handle, taking into account that 0xFFFF8001 always refers to the current process -// Returns nullptr if the handle does not correspond to a process -KernelObject* Kernel::getProcessFromPID(Handle handle) { - if (handle == KernelHandles::CurrentProcess) [[likely]] { - return getObject(currentProcess, KernelObjectType::Process); - } else { - return getObject(handle, KernelObjectType::Process); - } -} - -void Kernel::deleteObjectData(KernelObject& object) { - if (object.data == nullptr) { - return; - } - - // Resource limit and thread objects do not allocate heap data, so we don't delete anything - - switch (object.type) { - case KernelObjectType::AddressArbiter: delete object.getData(); return; - case KernelObjectType::Archive: delete object.getData(); return; - case KernelObjectType::Directory: delete object.getData(); return; - case KernelObjectType::Event: delete object.getData(); return; - case KernelObjectType::File: delete object.getData(); return; - case KernelObjectType::MemoryBlock: delete object.getData(); return; - case KernelObjectType::Port: delete object.getData(); return; - case KernelObjectType::Process: delete object.getData(); return; - case KernelObjectType::ResourceLimit: return; - case KernelObjectType::Session: delete object.getData(); return; - case KernelObjectType::Mutex: delete object.getData(); return; - case KernelObjectType::Semaphore: delete object.getData(); return; - case KernelObjectType::Timer: delete object.getData(); return; - case KernelObjectType::Thread: return; - case KernelObjectType::Dummy: return; - default: [[unlikely]] Helpers::warn("unknown object type"); return; - } -} - -void Kernel::reset() { - handleCounter = 0; - arbiterCount = 0; - threadCount = 0; - aliveThreadCount = 0; - - for (auto& t : threads) { - t.status = ThreadStatus::Dead; - t.waitList.clear(); - t.threadsWaitingForTermination = 0; // No threads are waiting for this thread to terminate cause it's dead - } - - for (auto& object : objects) { - deleteObjectData(object); - } - objects.clear(); - mutexHandles.clear(); - timerHandles.clear(); - portHandles.clear(); - threadIndices.clear(); - serviceManager.reset(); - - needReschedule = false; - - // Allocate handle #0 to a dummy object and make a main process object - makeObject(KernelObjectType::Dummy); - currentProcess = makeProcess(1); // Use ID = 1 for main process - - // Make main thread object. We do not have to set the entrypoint and SP for it as the ROM loader does. - // Main thread seems to have a priority of 0x30. TODO: This creates a dummy context for thread 0, - // which is thankfully not used. Maybe we should prevent this - mainThread = makeThread(0, VirtualAddrs::StackTop, 0x30, ProcessorID::Default, 0, ThreadStatus::Running); - currentThreadIndex = 0; - setupIdleThread(); - - // Create some of the OS ports - srvHandle = makePort("srv:"); // Service manager port - errorPortHandle = makePort("err:f"); // Error display port -} - -// Get pointer to thread-local storage -u32 Kernel::getTLSPointer() { - return VirtualAddrs::TLSBase + currentThreadIndex * VirtualAddrs::TLSSize; -} - -// Result CloseHandle(Handle handle) -void Kernel::svcCloseHandle() { - logSVC("CloseHandle(handle = %d) (Unimplemented)\n", regs[0]); - const Handle handle = regs[0]; - - KernelObject* object = getObject(handle); - if (object != nullptr) { - switch (object->type) { - // Close file descriptor when closing a file to prevent leaks and properly flush file contents - case KernelObjectType::File: { - FileSession* file = object->getData(); - if (file->isOpen) { - file->isOpen = false; - - if (file->fd != nullptr) { - fclose(file->fd); - file->fd = nullptr; - } - } - break; - } - - default: break; - } - } - - // Stub to always succeed for now - regs[0] = Result::Success; -} - -// u64 GetSystemTick() -void Kernel::getSystemTick() { - logSVC("GetSystemTick()\n"); - - u64 ticks = cpu.getTicks(); - regs[0] = u32(ticks); - regs[1] = u32(ticks >> 32); -} - -// Result OutputDebugString(const char* str, s32 size) -// TODO: Does this actually write an error code in r0 and is the above signature correct? -void Kernel::outputDebugString() { - const u32 pointer = regs[0]; - const u32 size = regs[1]; - - std::string message = mem.readString(pointer, size); - logDebugString("[OutputDebugString] %s\n", message.c_str()); - regs[0] = Result::Success; -} - -void Kernel::getProcessID() { - const auto pid = regs[1]; - const auto process = getProcessFromPID(pid); - logSVC("GetProcessID(process: %s)\n", getProcessName(pid).c_str()); - - if (process == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - regs[0] = Result::Success; - regs[1] = process->getData()->id; -} - -// Result GetProcessInfo(s64* out, Handle process, ProcessInfoType type) -void Kernel::getProcessInfo() { - const auto pid = regs[1]; - const auto type = regs[2]; - const auto process = getProcessFromPID(pid); - logSVC("GetProcessInfo(process: %s, type = %d)\n", getProcessName(pid).c_str(), type); - - if (process == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - switch (type) { - // Returns the amount of + total supervisor-mode stack size + page-rounded size of the external handle table - case 1: - Helpers::warn("GetProcessInfo: Unimplemented type 1"); - regs[1] = 0; - regs[2] = 0; - break; - - // According to 3DBrew: Amount of private (code, data, heap) memory used by the process + total supervisor-mode - // stack size + page-rounded size of the external handle table - case 2: - regs[1] = mem.getUsedUserMem(); - regs[2] = 0; - break; - - case 20: // Returns 0x20000000 - - regs[1] = PhysicalAddrs::FCRAM - mem.getLinearHeapVaddr(); - regs[2] = 0; - break; - - default: - Helpers::panic("GetProcessInfo: unimplemented type %d", type); - } - - regs[0] = Result::Success; -} - -// Result DuplicateHandle(Handle* out, Handle original) -void Kernel::duplicateHandle() { - Handle original = regs[1]; - logSVC("DuplicateHandle(handle = %X)\n", original); - - if (original == KernelHandles::CurrentThread) { - regs[0] = Result::Success; - Handle ret = makeObject(KernelObjectType::Thread); - objects[ret].data = &threads[currentThreadIndex]; - - regs[1] = ret; - } else { - Helpers::panic("DuplicateHandle: unimplemented handle type"); - } -} - -void Kernel::clearInstructionCache() { cpu.clearCache(); } - -namespace SystemInfoType { - enum : u32 { - MemoryInformation = 0, - // Gets information related to Citra (We don't implement this, we just report this emulator is not Citra) - CitraInformation = 0x20000, - // Gets information related to this emulator - PandaInformation = 0x20001, - }; -}; - -namespace CitraInfoType { - enum : u32 { - IsCitra = 0, - BuildName = 10, // (ie: Nightly, Canary). - BuildVersion = 11, // Build version. - BuildDate1 = 20, // Build date first 7 characters. - BuildDate2 = 21, // Build date next 7 characters. - BuildDate3 = 22, // Build date next 7 characters. - BuildDate4 = 23, // Build date last 7 characters. - BuildBranch1 = 30, // Git branch first 7 characters. - BuildBranch2 = 31, // Git branch last 7 characters. - BuildDesc1 = 40, // Git description (commit) first 7 characters. - BuildDesc2 = 41, // Git description (commit) last 7 characters. - }; -} - -namespace PandaInfoType { - enum : u32 { - IsPanda = 0, - }; -} - -void Kernel::getSystemInfo() { - const u32 infoType = regs[1]; - const u32 subtype = regs[2]; - log("GetSystemInfo (type = %X, subtype = %X)\n", infoType, subtype); - - regs[0] = Result::Success; - switch (infoType) { - case SystemInfoType::MemoryInformation: { - switch (subtype) { - // Total used memory size in the APPLICATION memory region - case 1: - regs[1] = mem.getUsedUserMem(); - regs[2] = 0; - break; - - default: - Helpers::panic("GetSystemInfo: Unknown MemoryInformation subtype %x\n", subtype); - regs[0] = Result::FailurePlaceholder; - break; - } - break; - } - - case SystemInfoType::CitraInformation: { - switch (subtype) { - case CitraInfoType::IsCitra: - // Report that we're not Citra - regs[1] = 0; - regs[2] = 0; - break; - - default: - Helpers::warn("GetSystemInfo: Unknown CitraInformation subtype %x\n", subtype); - regs[0] = Result::FailurePlaceholder; - break; - } - - break; - } - - case SystemInfoType::PandaInformation: { - switch (subtype) { - case PandaInfoType::IsPanda: - // This is indeed us, set output to 1 - regs[1] = 1; - regs[2] = 0; - break; - - default: - Helpers::warn("GetSystemInfo: Unknown PandaInformation subtype %x\n", subtype); - regs[0] = Result::FailurePlaceholder; - break; - } - - break; - } - - default: Helpers::panic("GetSystemInfo: Unknown system info type: %x (subtype: %x)\n", infoType, subtype); break; - } -} - -std::string Kernel::getProcessName(u32 pid) { - if (pid == KernelHandles::CurrentProcess) { - return "current"; - } else { - Helpers::panic("Attempted to name non-current process"); - } -} diff --git a/src/core/kernel/memory_management.cpp b/src/core/kernel/memory_management.cpp deleted file mode 100644 index 0d234be5..00000000 --- a/src/core/kernel/memory_management.cpp +++ /dev/null @@ -1,218 +0,0 @@ -#include "kernel.hpp" - -namespace Operation { - enum : u32 { - Free = 1, - Reserve = 2, - Commit = 3, - Map = 4, - Unmap = 5, - Protect = 6, - AppRegion = 0x100, - SysRegion = 0x200, - BaseRegion = 0x300, - Linear = 0x10000 - }; -} - -namespace MemoryPermissions { - enum : u32 { - None = 0, // --- - Read = 1, // R-- - Write = 2, // -W- - ReadWrite = 3, // RW- - Execute = 4, // --X - ReadExecute = 5, // R-X - WriteExecute = 6, // -WX - ReadWriteExecute = 7, // RWX - - DontCare = 0x10000000 - }; -} - -// Returns whether "value" is aligned to a page boundary (Ie a boundary of 4096 bytes) -static constexpr bool isAligned(u32 value) { - return (value & 0xFFF) == 0; -} - -// Result ControlMemory(u32* outaddr, u32 addr0, u32 addr1, u32 size, -// MemoryOperation operation, MemoryPermission permissions) -// This has a weird ABI documented here https://www.3dbrew.org/wiki/Kernel_ABI -// TODO: Does this need to write to outaddr? -void Kernel::controlMemory() { - u32 operation = regs[0]; // The base address is written here - u32 addr0 = regs[1]; - u32 addr1 = regs[2]; - u32 size = regs[3]; - u32 perms = regs[4]; - - if (perms == MemoryPermissions::DontCare) { - perms = MemoryPermissions::ReadWrite; // We make "don't care" equivalent to read-write - Helpers::panic("Unimplemented allocation permission: DONTCARE"); - } - - // Naturally the bits are in reverse order - bool r = perms & 0b001; - bool w = perms & 0b010; - bool x = perms & 0b100; - bool linear = operation & Operation::Linear; - - if (x) - Helpers::panic("ControlMemory: attempted to allocate executable memory"); - - if (!isAligned(addr0) || !isAligned(addr1) || !isAligned(size)) { - Helpers::panic("ControlMemory: Unaligned parameters\nAddr0: %08X\nAddr1: %08X\nSize: %08X", addr0, addr1, size); - } - - logSVC("ControlMemory(addr0 = %08X, addr1 = %08X, size = %08X, operation = %X (%c%c%c)%s\n", - addr0, addr1, size, operation, r ? 'r' : '-', w ? 'w' : '-', x ? 'x' : '-', linear ? ", linear" : "" - ); - - switch (operation & 0xFF) { - case Operation::Commit: { - std::optional address = mem.allocateMemory(addr0, 0, size, linear, r, w, x, true); - if (!address.has_value()) - Helpers::panic("ControlMemory: Failed to allocate memory"); - - regs[1] = address.value(); - break; - } - - case Operation::Map: - mem.mirrorMapping(addr0, addr1, size); - break; - - case Operation::Protect: - Helpers::warn("Ignoring mprotect! Hope nothing goes wrong but if the game accesses invalid memory or crashes then we prolly need to implement this\n"); - break; - - default: Helpers::warn("ControlMemory: unknown operation %X\n", operation); break; - } - - regs[0] = Result::Success; -} - -// Result QueryMemory(MemoryInfo* memInfo, PageInfo* pageInfo, u32 addr) -void Kernel::queryMemory() { - const u32 memInfo = regs[0]; - const u32 pageInfo = regs[1]; - const u32 addr = regs[2]; - - logSVC("QueryMemory(mem info pointer = %08X, page info pointer = %08X, addr = %08X)\n", memInfo, pageInfo, addr); - - const auto info = mem.queryMemory(addr); - regs[0] = Result::Success; - regs[1] = info.baseAddr; - regs[2] = info.size; - regs[3] = info.perms; - regs[4] = info.state; - regs[5] = 0; // page flags -} - -// Result MapMemoryBlock(Handle memblock, u32 addr, MemoryPermission myPermissions, MemoryPermission otherPermission) -void Kernel::mapMemoryBlock() { - const Handle block = regs[0]; - u32 addr = regs[1]; - const u32 myPerms = regs[2]; - const u32 otherPerms = regs[3]; - logSVC("MapMemoryBlock(block = %X, addr = %08X, myPerms = %X, otherPerms = %X\n", block, addr, myPerms, otherPerms); - - if (!isAligned(addr)) [[unlikely]] { - Helpers::panic("MapMemoryBlock: Unaligned address"); - } - - if (KernelHandles::isSharedMemHandle(block)) { - if (block == KernelHandles::FontSharedMemHandle && addr == 0) addr = 0x18000000; - u8* ptr = mem.mapSharedMemory(block, addr, myPerms, otherPerms); // Map shared memory block - - // Pass pointer to shared memory to the appropriate service - switch (block) { - case KernelHandles::HIDSharedMemHandle: - serviceManager.setHIDSharedMem(ptr); - break; - - case KernelHandles::GSPSharedMemHandle: - serviceManager.setGSPSharedMem(ptr); - break; - - case KernelHandles::FontSharedMemHandle: - mem.copySharedFont(ptr); - break; - - case KernelHandles::CSNDSharedMemHandle: - serviceManager.setCSNDSharedMem(ptr); - printf("Mapping CSND memory block\n"); - break; - - case KernelHandles::APTCaptureSharedMemHandle: break; - default: Helpers::panic("Mapping unknown shared memory block: %X", block); - } - } else { - Helpers::panic("MapMemoryBlock where the handle does not refer to a known piece of kernel shared mem"); - } - - regs[0] = Result::Success; -} - -Handle Kernel::makeMemoryBlock(u32 addr, u32 size, u32 myPermission, u32 otherPermission) { - Handle ret = makeObject(KernelObjectType::MemoryBlock); - objects[ret].data = new MemoryBlock(addr, size, myPermission, otherPermission); - - return ret; -} - -void Kernel::createMemoryBlock() { - const u32 addr = regs[1]; - const u32 size = regs[2]; - u32 myPermission = regs[3]; - u32 otherPermission = mem.read32(regs[13] + 4); // This is placed on the stack rather than r4 - logSVC("CreateMemoryBlock (addr = %08X, size = %08X, myPermission = %d, otherPermission = %d)\n", addr, size, myPermission, otherPermission); - - // Returns whether a permission is valid - auto isPermValid = [](u32 permission) { - switch (permission) { - case MemoryPermissions::None: - case MemoryPermissions::Read: - case MemoryPermissions::Write: - case MemoryPermissions::ReadWrite: - case MemoryPermissions::DontCare: - return true; - - default: // Permissions with the executable flag enabled or invalid permissions are not allowed - return false; - } - }; - - // Throw error if the size of the shared memory block is not aligned to page boundary - if (!isAligned(size)) { - regs[0] = Result::OS::MisalignedSize; - return; - } - - // Throw error if one of the permissions is not valid - if (!isPermValid(myPermission) || !isPermValid(otherPermission)) { - regs[0] = Result::OS::InvalidCombination; - return; - } - - // TODO: The address needs to be in a specific range otherwise it throws an invalid address error - - if (addr == 0) - Helpers::panic("CreateMemoryBlock: Tried to use addr = 0"); - - // Implement "Don't care" permission as RW - if (myPermission == MemoryPermissions::DontCare) myPermission = MemoryPermissions::ReadWrite; - if (otherPermission == MemoryPermissions::DontCare) otherPermission = MemoryPermissions::ReadWrite; - - regs[0] = Result::Success; - regs[1] = makeMemoryBlock(addr, size, myPermission, otherPermission); -} - -void Kernel::unmapMemoryBlock() { - Handle block = regs[0]; - u32 addr = regs[1]; - logSVC("Unmap memory block (block handle = %X, addr = %08X)\n", block, addr); - - Helpers::warn("Stubbed svcUnmapMemoryBlock!"); - regs[0] = Result::Success; -} diff --git a/src/core/kernel/ports.cpp b/src/core/kernel/ports.cpp deleted file mode 100644 index 6038de44..00000000 --- a/src/core/kernel/ports.cpp +++ /dev/null @@ -1,130 +0,0 @@ -#include "kernel.hpp" -#include - -Handle Kernel::makePort(const char* name) { - Handle ret = makeObject(KernelObjectType::Port); - portHandles.push_back(ret); // Push the port handle to our cache of port handles - objects[ret].data = new Port(name); - - return ret; -} - -Handle Kernel::makeSession(Handle portHandle) { - const auto port = getObject(portHandle, KernelObjectType::Port); - if (port == nullptr) [[unlikely]] { - Helpers::panic("Trying to make session for non-existent port"); - } - - // Allocate data for session - const Handle ret = makeObject(KernelObjectType::Session); - objects[ret].data = new Session(portHandle); - return ret; -} - -// Get the handle of a port based on its name -// If there's no such port, return nullopt -std::optional Kernel::getPortHandle(const char* name) { - for (auto handle : portHandles) { - const auto data = objects[handle].getData(); - if (std::strncmp(name, data->name, Port::maxNameLen) == 0) { - return handle; - } - } - - return std::nullopt; -} - -// Result ConnectToPort(Handle* out, const char* portName) -void Kernel::connectToPort() { - const u32 handlePointer = regs[0]; - // Read up to max + 1 characters to see if the name is too long - std::string port = mem.readString(regs[1], Port::maxNameLen + 1); - logSVC("ConnectToPort(handle pointer = %X, port = \"%s\")\n", handlePointer, port.c_str()); - - if (port.size() > Port::maxNameLen) { - Helpers::panic("ConnectToPort: Port name too long\n"); - regs[0] = Result::OS::PortNameTooLong; - return; - } - - // Try getting a handle to the port - std::optional optionalHandle = getPortHandle(port.c_str()); - if (!optionalHandle.has_value()) [[unlikely]] { - Helpers::panic("ConnectToPort: Port doesn't exist\n"); - regs[0] = Result::Kernel::NotFound; - return; - } - - Handle portHandle = optionalHandle.value(); - - const auto portData = objects[portHandle].getData(); - if (!portData->isPublic) { - Helpers::panic("ConnectToPort: Attempted to connect to private port"); - } - - // TODO: Actually create session - Handle sessionHandle = makeSession(portHandle); - - regs[0] = Result::Success; - regs[1] = sessionHandle; -} - -// Result SendSyncRequest(Handle session) -// Send an IPC message to a port (typically "srv:") or a service -void Kernel::sendSyncRequest() { - const auto handle = regs[0]; - u32 messagePointer = getTLSPointer() + 0x80; // The message is stored starting at TLS+0x80 - logSVC("SendSyncRequest(session handle = %X)\n", handle); - - // Service calls via SendSyncRequest and file access needs to put the caller to sleep for a given amount of time - // To make sure that the other threads don't get starved. Various games rely on this (including Sonic Boom: Shattering Crystal it seems) - constexpr u64 syncRequestDelayNs = 39000; - sleepThread(syncRequestDelayNs); - - // The sync request is being sent at a service rather than whatever port, so have the service manager intercept it - if (KernelHandles::isServiceHandle(handle)) { - // The service call might cause a reschedule and change threads. Hence, set r0 before executing the service call - // Because if the service call goes first, we might corrupt the new thread's r0!! - regs[0] = Result::Success; - serviceManager.sendCommandToService(messagePointer, handle); - return; - } - - // Check if our sync request is targetting a file instead of a service - bool isFileOperation = getObject(handle, KernelObjectType::File) != nullptr; - if (isFileOperation) { - regs[0] = Result::Success; // r0 goes first here too - handleFileOperation(messagePointer, handle); - return; - } - - // Check if our sync request is targetting a directory instead of a service - bool isDirectoryOperation = getObject(handle, KernelObjectType::Directory) != nullptr; - if (isDirectoryOperation) { - regs[0] = Result::Success; // r0 goes first here too - handleDirectoryOperation(messagePointer, handle); - return; - } - - // If we're actually communicating with a port - const auto session = getObject(handle, KernelObjectType::Session); - if (session == nullptr) [[unlikely]] { - Helpers::warn("SendSyncRequest: Invalid handle"); - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - const auto sessionData = static_cast(session->data); - const Handle portHandle = sessionData->portHandle; - - if (portHandle == srvHandle) { // Special-case SendSyncRequest targetting the "srv: port" - regs[0] = Result::Success; - serviceManager.handleSyncRequest(messagePointer); - } else if (portHandle == errorPortHandle) { // Special-case "err:f" for juicy logs too - regs[0] = Result::Success; - handleErrorSyncRequest(messagePointer); - } else { - const auto portData = objects[portHandle].getData(); - Helpers::panic("SendSyncRequest targetting port %s\n", portData->name); - } -} diff --git a/src/core/kernel/resource_limits.cpp b/src/core/kernel/resource_limits.cpp deleted file mode 100644 index 5c155171..00000000 --- a/src/core/kernel/resource_limits.cpp +++ /dev/null @@ -1,96 +0,0 @@ -#include "resource_limits.hpp" -#include "kernel.hpp" - -// Result GetResourceLimit(Handle* resourceLimit, Handle process) -// out: r0 -> result, r1 -> handle -void Kernel::getResourceLimit() { - const auto handlePointer = regs[0]; - const auto pid = regs[1]; - const auto process = getProcessFromPID(pid); - logSVC("GetResourceLimit (handle pointer = %08X, process: %s)\n", handlePointer, getProcessName(pid).c_str()); - - if (process == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - const auto processData = static_cast(process->data); - - regs[0] = Result::Success; - regs[1] = processData->limits.handle; -} - -// Result GetResourceLimitLimitValues(s64* values, Handle resourceLimit, LimitableResource* names, s32 nameCount) -void Kernel::getResourceLimitLimitValues() { - u32 values = regs[0]; // Pointer to values (The resource limits get output here) - const Handle resourceLimit = regs[1]; - u32 names = regs[2]; // Pointer to resources that we should return - u32 count = regs[3]; // Number of resources - - const KernelObject* limit = getObject(resourceLimit, KernelObjectType::ResourceLimit); - if (limit == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - logSVC("GetResourceLimitLimitValues(values = %08X, handle = %X, names = %08X, count = %d)\n", values, resourceLimit, names, count); - // printf("[Warning] We do not currently support any resource maximum aside from the application ones"); - while (count != 0) { - const u32 name = mem.read32(names); - u32 max = getMaxForResource(limit, name); - mem.write64(values, u64(max)); - - // Increment pointers and decrement count - values += sizeof(u64); - names += sizeof(u32); - count--; - } - - regs[0] = Result::Success; -} - -// Result GetResourceLimitCurrentValues(s64* values, Handle resourceLimit, LimitableResource* names, s32 nameCount) -void Kernel::getResourceLimitCurrentValues() { - u32 values = regs[0]; // Pointer to values (The resource limits get output here) - const Handle resourceLimit = regs[1]; - u32 names = regs[2]; // Pointer to resources that we should return - u32 count = regs[3]; // Number of resources - logSVC("GetResourceLimitCurrentValues(values = %08X, handle = %X, names = %08X, count = %d)\n", values, resourceLimit, names, count); - - const KernelObject* limit = getObject(resourceLimit, KernelObjectType::ResourceLimit); - if (limit == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - while (count != 0) { - const u32 name = mem.read32(names); - // TODO: Unsure if this is supposed to be s32 or u32. Shouldn't matter as the kernel can't create so many resources - s32 value = getCurrentResourceValue(limit, name); - mem.write64(values, u64(value)); - - // Increment pointers and decrement count - values += sizeof(u64); - names += sizeof(u32); - count--; - } - - regs[0] = Result::Success; -} - -s32 Kernel::getCurrentResourceValue(const KernelObject* limit, u32 resourceName) { - const auto data = static_cast(limit->data); - switch (resourceName) { - case ResourceType::Commit: return mem.usedUserMemory; - case ResourceType::Thread: return threadIndices.size(); - default: Helpers::panic("Attempted to get current value of unknown kernel resource: %d\n", resourceName); - } -} - -u32 Kernel::getMaxForResource(const KernelObject* limit, u32 resourceName) { - switch (resourceName) { - case ResourceType::Commit: return appResourceLimits.maxCommit; - case ResourceType::Thread: return appResourceLimits.maxThreads; - default: Helpers::panic("Attempted to get the max of unknown kernel resource: %d\n", resourceName); - } -} diff --git a/src/core/kernel/threads.cpp b/src/core/kernel/threads.cpp deleted file mode 100644 index 3a6201c1..00000000 --- a/src/core/kernel/threads.cpp +++ /dev/null @@ -1,699 +0,0 @@ -#include -#include -#include - -#include "arm_defs.hpp" -#include "kernel.hpp" -// This header needs to be included because I did stupid forward decl hack so the kernel and CPU can both access each -// other -#include "cpu.hpp" -#include "resource_limits.hpp" - -// Switch to another thread -// newThread: Index of the newThread in the thread array (NOT a handle). -void Kernel::switchThread(int newThreadIndex) { - auto& oldThread = threads[currentThreadIndex]; - auto& newThread = threads[newThreadIndex]; - newThread.status = ThreadStatus::Running; - logThread("Switching from thread %d to %d\n", currentThreadIndex, newThreadIndex); - - // Bail early if the new thread is actually the old thread - if (currentThreadIndex == newThreadIndex) [[unlikely]] { - return; - } - - // Backup context - std::memcpy(oldThread.gprs.data(), cpu.regs().data(), cpu.regs().size_bytes()); // Backup the 16 GPRs - std::memcpy(oldThread.fprs.data(), cpu.fprs().data(), cpu.fprs().size_bytes()); // Backup the 32 FPRs - oldThread.cpsr = cpu.getCPSR(); // Backup CPSR - oldThread.fpscr = cpu.getFPSCR(); // Backup FPSCR - - // Load new context - std::memcpy(cpu.regs().data(), newThread.gprs.data(), cpu.regs().size_bytes()); // Load 16 GPRs - std::memcpy(cpu.fprs().data(), newThread.fprs.data(), cpu.fprs().size_bytes()); // Load 32 FPRs - cpu.setCPSR(newThread.cpsr); // Load CPSR - cpu.setFPSCR(newThread.fpscr); // Load FPSCR - cpu.setTLSBase(newThread.tlsBase); // Load CP15 thread-local-storage pointer register - - currentThreadIndex = newThreadIndex; -} - -// Sort the threadIndices vector based on the priority of each thread -// The threads with higher priority (aka the ones with a lower priority value) should come first in the vector -void Kernel::sortThreads() { - std::vector& v = threadIndices; - std::sort(v.begin(), v.end(), [&](int a, int b) { - return threads[a].priority < threads[b].priority; - }); -} - -bool Kernel::canThreadRun(const Thread& t) { - if (t.status == ThreadStatus::Ready) { - return true; - } else if (t.status == ThreadStatus::WaitSleep || t.status == ThreadStatus::WaitSync1 - || t.status == ThreadStatus::WaitSyncAny || t.status == ThreadStatus::WaitSyncAll) { - // TODO: Set r0 to the correct error code on timeout for WaitSync{1/Any/All} - return cpu.getTicks() >= t.wakeupTick; - } - - // Handle timeouts and stuff here - return false; -} - -// Get the index of the next thread to run by iterating through the thread list and finding the free thread with the highest priority -// Returns the thread index if a thread is found, or nullopt otherwise -std::optional Kernel::getNextThread() { - for (auto index : threadIndices) { - const Thread& t = threads[index]; - - // Thread is ready, return it - if (canThreadRun(t)) { - return index; - } - } - - // No thread was found - return std::nullopt; -} - -u64 Kernel::getWakeupTick(s64 ns) { - // Timeout == -1 means that the thread doesn't plan on waking up automatically - if (ns == -1) { - return std::numeric_limits::max(); - } - - return cpu.getTicks() + Scheduler::nsToCycles(ns); -} - -// See if there is a higher priority, ready thread and switch to that -void Kernel::rescheduleThreads() { - Thread& current = threads[currentThreadIndex]; // Current running thread - - // If the current thread is running and hasn't gone to sleep or whatever, set it to Ready instead of Running - // So that getNextThread will evaluate it properly - if (current.status == ThreadStatus::Running) { - current.status = ThreadStatus::Ready; - } - ThreadStatus currentStatus = current.status; - std::optional newThreadIndex = getNextThread(); - - // Case 1: A thread can run - if (newThreadIndex.has_value()) { - switchThread(newThreadIndex.value()); - } - - // Case 2: No other thread can run, straight to the idle thread - else { - switchThread(idleThreadIndex); - } -} - -// Internal OS function to spawn a thread -Handle Kernel::makeThread(u32 entrypoint, u32 initialSP, u32 priority, ProcessorID id, u32 arg, ThreadStatus status) { - int index; // Index of the created thread in the threads array - - if (threadCount < appResourceLimits.maxThreads) [[likely]] { // If we have not yet created over too many threads - index = threadCount++; - } else if (aliveThreadCount < appResourceLimits.maxThreads) { // If we have created many threads but at least one is dead & reusable - for (int i = 0; i < threads.size(); i++) { - if (threads[i].status == ThreadStatus::Dead) { - index = i; - break; - } - } - } else { // There is no thread we can use, we're screwed - Helpers::panic("Overflowed thread count!!"); - } - - aliveThreadCount++; - - threadIndices.push_back(index); - Thread& t = threads[index]; // Reference to thread data - Handle ret = makeObject(KernelObjectType::Thread); - objects[ret].data = &t; - - const bool isThumb = (entrypoint & 1) != 0; // Whether the thread starts in thumb mode or not - - // Set up initial thread context - t.gprs.fill(0); - t.fprs.fill(0); - - t.arg = arg; - t.initialSP = initialSP; - t.entrypoint = entrypoint; - - t.gprs[0] = arg; - t.gprs[13] = initialSP; - t.gprs[15] = entrypoint; - t.priority = priority; - t.processorID = id; - t.status = status; - t.handle = ret; - t.waitingAddress = 0; - t.threadsWaitingForTermination = 0; // Thread just spawned, no other threads waiting for it to terminate - - t.cpsr = CPSR::UserMode | (isThumb ? CPSR::Thumb : 0); - t.fpscr = FPSCR::ThreadDefault; - // Initial TLS base has already been set in Kernel::Kernel() - // TODO: Does svcCreateThread zero-set the TLS of the new thread? - - sortThreads(); - return ret; -} - -Handle Kernel::makeMutex(bool locked) { - Handle ret = makeObject(KernelObjectType::Mutex); - objects[ret].data = new Mutex(locked, ret); - - // If the mutex is initially locked, store the index of the thread that owns it and set lock count to 1 - if (locked) { - Mutex* moo = objects[ret].getData(); - moo->ownerThread = currentThreadIndex; - } - - // Push the new mutex to our list of mutex handles - // We need a list of mutex handles so that when a thread is killed, we can look which mutexes from this list the thread owns and free them - // Alternatively this could be a per-thread list, but I don't want to push_back and remove on every mutex lock and release - // Since some mutexes like the APT service mutex are locked and unlocked constantly, while ExitThread is a relatively "rare" SVC - mutexHandles.push_back(ret); - return ret; -} - -void Kernel::releaseMutex(Mutex* moo) { - // TODO: Assert lockCount > 0 before release, maybe. The SVC should be safe at least. - moo->lockCount--; // Decrement lock count - - // If the lock count reached 0 then the thread no longer owns the mootex and it can be given to a new one - if (moo->lockCount == 0) { - moo->locked = false; - - if (moo->waitlist != 0) { - int index = wakeupOneThread(moo->waitlist, moo->handle); // Wake up one thread and get its index - moo->waitlist ^= (1ull << index); // Remove thread from waitlist - - // Have new thread acquire mutex - moo->locked = true; - moo->lockCount = 1; - moo->ownerThread = index; - } - - requireReschedule(); - } -} - -Handle Kernel::makeSemaphore(u32 initialCount, u32 maximumCount) { - Handle ret = makeObject(KernelObjectType::Semaphore); - objects[ret].data = new Semaphore(initialCount, maximumCount); - - return ret; -} - -void Kernel::sleepThreadOnArbiter(u32 waitingAddress) { - Thread& t = threads[currentThreadIndex]; - t.status = ThreadStatus::WaitArbiter; - t.waitingAddress = waitingAddress; - - requireReschedule(); -} - -// Acquires an object that is **ready to be acquired** without waiting on it -void Kernel::acquireSyncObject(KernelObject* object, const Thread& thread) { - switch (object->type) { - case KernelObjectType::Event: { - Event* e = object->getData(); - if (e->resetType == ResetType::OneShot) { // One-shot events automatically get cleared after waking up a thread - e->fired = false; - } - break; - } - - case KernelObjectType::Mutex: { - Mutex* moo = object->getData(); - - // Only reschedule if we're acquiring the mutex for the first time - if (!moo->locked) { - moo->locked = true; - requireReschedule(); - } - - // Increment lock count by 1. If a thread acquires a mootex multiple times, it needs to release it until count == 0 - // For the mootex to be free. - moo->lockCount++; - moo->ownerThread = thread.index; - break; - } - - case KernelObjectType::Semaphore: { - Semaphore* s = object->getData(); - if (s->availableCount <= 0) [[unlikely]] // This should be unreachable but let's check anyways - Helpers::panic("Tried to acquire unacquirable semaphore"); - - s->availableCount -= 1; - break; - } - - case KernelObjectType::Thread: - break; - - case KernelObjectType::Timer: { - Timer* timer = object->getData(); - if (timer->resetType == ResetType::OneShot) { // One-shot timers automatically get cleared after waking up a thread - timer->fired = false; - } - break; - } - - default: Helpers::panic("Acquiring unimplemented sync object %s", object->getTypeName()); - } -} - -// Wake up one of the threads in the waitlist (the one with highest prio) and return its index -// Must not be called with an empty waitlist -int Kernel::wakeupOneThread(u64 waitlist, Handle handle) { - if (waitlist == 0) [[unlikely]] - Helpers::panic("[Internal error] It shouldn't be possible to call wakeupOneThread when there's 0 threads waiting!"); - - // Find the waiting thread with the highest priority. - // We do this by first picking the first thread in the waitlist, then checking each other thread and comparing priority - int threadIndex = std::countr_zero(waitlist); // Index of first thread - int maxPriority = threads[threadIndex].priority; // Set initial max prio to the prio of the first thread - waitlist ^= (1ull << threadIndex); // Remove thread from the waitlist - - while (waitlist != 0) { - int newThread = std::countr_zero(waitlist); // Get new thread and evaluate whether it has a higher priority - if (threads[newThread].priority < maxPriority) { // Low priority value means high priority - threadIndex = newThread; - maxPriority = threads[newThread].priority; - } - - waitlist ^= (1ull << threadIndex); // Remove thread from waitlist - } - - Thread& t = threads[threadIndex]; - switch (t.status) { - case ThreadStatus::WaitSync1: - t.status = ThreadStatus::Ready; - t.gprs[0] = Result::Success; // The thread did not timeout, so write success to r0 - break; - - case ThreadStatus::WaitSyncAny: - t.status = ThreadStatus::Ready; - t.gprs[0] = Result::Success; // The thread did not timeout, so write success to r0 - - // Get the index of the event in the object's waitlist, write it to r1 - for (size_t i = 0; i < t.waitList.size(); i++) { - if (t.waitList[i] == handle) { - t.gprs[1] = u32(i); - break; - } - } - break; - - case ThreadStatus::WaitSyncAll: - Helpers::panic("WakeupOneThread: Thread on WaitSyncAll"); - break; - } - - return threadIndex; -} - -// Wake up every single thread in the waitlist using a bit scanning algorithm -void Kernel::wakeupAllThreads(u64 waitlist, Handle handle) { - while (waitlist != 0) { - const uint index = std::countr_zero(waitlist); // Get one of the set bits to see which thread is waiting - waitlist ^= (1ull << index); // Remove thread from waitlist by toggling its bit - - // Get the thread we'll be signalling - Thread& t = threads[index]; - switch (t.status) { - case ThreadStatus::WaitSync1: - t.status = ThreadStatus::Ready; - t.gprs[0] = Result::Success; // The thread did not timeout, so write success to r0 - break; - - case ThreadStatus::WaitSyncAny: - t.status = ThreadStatus::Ready; - t.gprs[0] = Result::Success; // The thread did not timeout, so write success to r0 - - // Get the index of the event in the object's waitlist, write it to r1 - for (size_t i = 0; i < t.waitList.size(); i++) { - if (t.waitList[i] == handle) { - t.gprs[1] = u32(i); - break; - } - } - break; - - case ThreadStatus::WaitSyncAll: - Helpers::panic("WakeupAllThreads: Thread on WaitSyncAll"); - break; - } - } -} - -// Make a thread sleep for a certain amount of nanoseconds at minimum -void Kernel::sleepThread(s64 ns) { - if (ns < 0) { - Helpers::panic("Sleeping a thread for a negative amount of ns"); - } else if (ns == 0) { - // TODO: This is garbage, but it works so eh we can keep it for now - Thread& t = threads[currentThreadIndex]; - - // See if a thread other than this and the idle thread is waiting to run by temp marking the current function as dead and searching - // If there is another thread to run, then run it. Otherwise, go back to this thread, not to the idle thread - t.status = ThreadStatus::Dead; - auto nextThreadIndex = getNextThread(); - t.status = ThreadStatus::Ready; - - if (nextThreadIndex.has_value()) { - const auto index = nextThreadIndex.value(); - - if (index != idleThreadIndex) { - switchThread(index); - } - } else { - if (currentThreadIndex == idleThreadIndex) { - const Scheduler& scheduler = cpu.getScheduler(); - u64 timestamp = scheduler.nextTimestamp; - - for (auto i : threadIndices) { - const Thread& t = threads[i]; - if (t.status == ThreadStatus::WaitSleep || t.status == ThreadStatus::WaitSync1 || t.status == ThreadStatus::WaitSyncAny || - t.status == ThreadStatus::WaitSyncAll) { - timestamp = std::min(timestamp, t.wakeupTick); - } - } - - if (timestamp > scheduler.currentTimestamp) { - u64 idleCycles = timestamp - scheduler.currentTimestamp; - cpu.addTicks(idleCycles); - } - } - } - } else { // If we're sleeping for >= 0 ns - Thread& t = threads[currentThreadIndex]; - - t.status = ThreadStatus::WaitSleep; - t.wakeupTick = getWakeupTick(ns); - - requireReschedule(); - } -} - -// Result CreateThread(s32 priority, ThreadFunc entrypoint, u32 arg, u32 stacktop, s32 threadPriority, s32 processorID) -void Kernel::createThread() { - u32 priority = regs[0]; - u32 entrypoint = regs[1]; - u32 arg = regs[2]; // An argument value stored in r0 of the new thread - u32 initialSP = regs[3] & ~7; // SP is force-aligned to 8 bytes - s32 id = static_cast(regs[4]); - - logSVC("CreateThread(entry = %08X, stacktop = %08X, arg = %X, priority = %X, processor ID = %d)\n", entrypoint, - initialSP, arg, priority, id); - - if (priority > 0x3F) [[unlikely]] { - Helpers::panic("Created thread with bad priority value %X", priority); - regs[0] = Result::OS::OutOfRange; - return; - } - - if (id < -2 || id > 3) { - Helpers::panic("Invalid processor ID in CreateThread"); - } - - regs[0] = Result::Success; - regs[1] = makeThread(entrypoint, initialSP, priority, static_cast(id), arg, ThreadStatus::Ready); - requireReschedule(); -} - -// void SleepThread(s64 nanoseconds) -void Kernel::svcSleepThread() { - const s64 ns = s64(u64(regs[0]) | (u64(regs[1]) << 32)); - //logSVC("SleepThread(ns = %lld)\n", ns); - - regs[0] = Result::Success; - sleepThread(ns); -} - -void Kernel::getThreadID() { - Handle handle = regs[1]; - logSVC("GetThreadID(handle = %X)\n", handle); - - if (handle == KernelHandles::CurrentThread) { - regs[0] = Result::Success; - regs[1] = currentThreadIndex; - return; - } - - const auto thread = getObject(handle, KernelObjectType::Thread); - if (thread == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - regs[0] = Result::Success; - regs[1] = thread->getData()->index; -} - -void Kernel::getThreadPriority() { - const Handle handle = regs[1]; - logSVC("GetThreadPriority (handle = %X)\n", handle); - - if (handle == KernelHandles::CurrentThread) { - regs[0] = Result::Success; - regs[1] = threads[currentThreadIndex].priority; - } else { - auto object = getObject(handle, KernelObjectType::Thread); - if (object == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - } else { - regs[0] = Result::Success; - regs[1] = object->getData()->priority; - } - } -} - -void Kernel::getThreadIdealProcessor() { - const Handle handle = regs[1]; // Thread handle - logSVC("GetThreadIdealProcessor (handle = %X)\n", handle); - - // TODO: Not documented what this is or what it does. Citra doesn't implement it at all. Return AppCore as the ideal processor for now - regs[0] = Result::Success; - regs[1] = static_cast(ProcessorID::AppCore); -} - -void Kernel::getThreadContext() { - Helpers::warn("Stubbed Kernel::GetThreadContext"); - - // TODO: Decompile this from Kernel11. 3DBrew says function is stubbed. - regs[0] = Result::Success; -} - -void Kernel::setThreadPriority() { - const Handle handle = regs[0]; - const u32 priority = regs[1]; - logSVC("SetThreadPriority (handle = %X, priority = %X)\n", handle, priority); - - if (priority > 0x3F) { - regs[0] = Result::OS::OutOfRange; - return; - } - - if (handle == KernelHandles::CurrentThread) { - regs[0] = Result::Success; - threads[currentThreadIndex].priority = priority; - } else { - auto object = getObject(handle, KernelObjectType::Thread); - if (object == nullptr) [[unlikely]] { - regs[0] = Result::Kernel::InvalidHandle; - return; - } else { - regs[0] = Result::Success; - object->getData()->priority = priority; - } - } - sortThreads(); - requireReschedule(); -} - -void Kernel::getCurrentProcessorNumber() { - logSVC("GetCurrentProcessorNumber()\n"); - const ProcessorID id = threads[currentThreadIndex].processorID; - s32 ret; - - // Until we properly implement per-core schedulers, return whatever processor ID passed to svcCreateThread - switch (id) { - // TODO: This is picked from exheader - case ProcessorID::Default: - ret = static_cast(ProcessorID::AppCore); - break; - - case ProcessorID::AllCPUs: - ret = static_cast(ProcessorID::AppCore); - Helpers::warn("GetCurrentProcessorNumber on thread created to run on all CPUs...?\n"); - break; - - default: ret = static_cast(id); break; - } - - if (ret != static_cast(ProcessorID::AppCore)) { - Helpers::warn("GetCurrentProcessorNumber: Thread not running on appcore\n"); - } - - regs[0] = static_cast(ret); -} - -void Kernel::exitThread() { - logSVC("ExitThread\n"); - - // Find which mutexes this thread owns, release them - for (auto handle : mutexHandles) { - KernelObject* object = getObject(handle, KernelObjectType::Mutex); - - // Make sure that the handle actually matches to a mutex, and if our exiting thread owns the mutex, release it - if (object != nullptr) { - Mutex* moo = object->getData(); - - if (moo->locked && moo->ownerThread == currentThreadIndex) { - // Release the mutex by setting lock count to 1 and releasing it once. We set lock count to 1 since it's a recursive mutex - // Therefore if its lock count was > 1, simply calling releaseMutex would not fully release it - moo->lockCount = 1; - releaseMutex(moo); - } - } - } - - // Remove the index of this thread from the thread indices vector - for (int i = 0; i < threadIndices.size(); i++) { - if (threadIndices[i] == currentThreadIndex) - threadIndices.erase(threadIndices.begin() + i); - } - - Thread& t = threads[currentThreadIndex]; - t.status = ThreadStatus::Dead; - aliveThreadCount--; - - // Check if any threads are sleeping, waiting for this thread to terminate, and wake them up - // This is how thread joining is implemented in the kernel - you wait on a thread, like any other wait object. - if (t.threadsWaitingForTermination != 0) { - // TODO: Handle cloned handles? Not sure how those interact with wait object signalling - wakeupAllThreads(t.threadsWaitingForTermination, t.handle); - t.threadsWaitingForTermination = 0; // No other threads waiting - } - - requireReschedule(); -} - -void Kernel::svcCreateMutex() { - bool locked = regs[1] != 0; - logSVC("CreateMutex (locked = %s)\n", locked ? "yes" : "no"); - - regs[0] = Result::Success; - regs[1] = makeMutex(locked); -} - -void Kernel::svcReleaseMutex() { - const Handle handle = regs[0]; - logSVC("ReleaseMutex (handle = %x)\n", handle); - - const auto object = getObject(handle, KernelObjectType::Mutex); - if (object == nullptr) [[unlikely]] { - Helpers::panic("Tried to release non-existent mutex"); - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - Mutex* moo = object->getData(); - // A thread can't release a mutex it does not own - if (!moo->locked || moo->ownerThread != currentThreadIndex) { - regs[0] = Result::Kernel::InvalidMutexRelease; - return; - } - - regs[0] = Result::Success; - releaseMutex(moo); -} - -void Kernel::svcCreateSemaphore() { - s32 initialCount = static_cast(regs[1]); - s32 maxCount = static_cast(regs[2]); - logSVC("CreateSemaphore (initial count = %d, max count = %d)\n", initialCount, maxCount); - - if (initialCount > maxCount) - Helpers::panic("CreateSemaphore: Initial count higher than max count"); - - if (initialCount < 0 || maxCount < 0) - Helpers::panic("CreateSemaphore: Negative count value"); - - regs[0] = Result::Success; - regs[1] = makeSemaphore(initialCount, maxCount); -} - -void Kernel::svcReleaseSemaphore() { - const Handle handle = regs[1]; - const s32 releaseCount = static_cast(regs[2]); - logSVC("ReleaseSemaphore (handle = %X, release count = %d)\n", handle, releaseCount); - - const auto object = getObject(handle, KernelObjectType::Semaphore); - if (object == nullptr) [[unlikely]] { - Helpers::panic("Tried to release non-existent semaphore"); - regs[0] = Result::Kernel::InvalidHandle; - return; - } - - if (releaseCount < 0) - Helpers::panic("ReleaseSemaphore: Negative count"); - - Semaphore* s = object->getData(); - if (s->maximumCount - s->availableCount < releaseCount) - Helpers::panic("ReleaseSemaphore: Release count too high"); - - // Write success and old available count to r0 and r1 respectively - regs[0] = Result::Success; - regs[1] = s->availableCount; - // Bump available count - s->availableCount += releaseCount; - - // Wake up threads one by one until the available count hits 0 or we run out of threads to wake up - while (s->availableCount > 0 && s->waitlist != 0) { - int index = wakeupOneThread(s->waitlist, handle); // Wake up highest priority thread - s->waitlist ^= (1ull << index); // Remove thread from waitlist - - s->availableCount--; // Decrement available count - } -} - -// Returns whether an object is waitable or not -// The KernelObject type enum is arranged in a specific order in kernel_types.hpp so this -// can simply compile to a fast sub+cmp+set despite looking slow -bool Kernel::isWaitable(const KernelObject* object) { - auto type = object->type; - return type == KernelObjectType::Event || type == KernelObjectType::Mutex || type == KernelObjectType::Port || - type == KernelObjectType::Semaphore || type == KernelObjectType::Timer || type == KernelObjectType::Thread; -} - -// Returns whether we should wait on a sync object or not -bool Kernel::shouldWaitOnObject(KernelObject* object) { - switch (object->type) { - case KernelObjectType::Event: // We should wait on an event only if it has not been signalled - return !object->getData()->fired; - - case KernelObjectType::Mutex: { - Mutex* moo = object->getData(); // mooooooooooo - return moo->locked && moo->ownerThread != currentThreadIndex; // If the current thread owns the moo then no reason to wait - } - - case KernelObjectType::Thread: // Waiting on a thread waits until it's dead. If it's dead then no need to wait - return object->getData()->status != ThreadStatus::Dead; - - case KernelObjectType::Timer: // We should wait on a timer only if it has not been signalled - return !object->getData()->fired; - - case KernelObjectType::Semaphore: // Wait if the semaphore count <= 0 - return object->getData()->availableCount <= 0; - - default: - Helpers::panic("Not sure whether to wait on object (type: %s)", object->getTypeName()); - return true; - } -} diff --git a/src/core/kernel/timers.cpp b/src/core/kernel/timers.cpp deleted file mode 100644 index 35fc57a4..00000000 --- a/src/core/kernel/timers.cpp +++ /dev/null @@ -1,155 +0,0 @@ -#include - -#include "cpu.hpp" -#include "kernel.hpp" -#include "scheduler.hpp" - -Handle Kernel::makeTimer(ResetType type) { - Handle ret = makeObject(KernelObjectType::Timer); - objects[ret].data = new Timer(type); - - if (type == ResetType::Pulse) { - Helpers::panic("Created pulse timer"); - } - - timerHandles.push_back(ret); - return ret; -} - -void Kernel::pollTimers() { - u64 currentTick = cpu.getTicks(); - - // Find the next timestamp we'll poll KTimers on. To do this, we find the minimum tick one of our timers will fire - u64 nextTimestamp = std::numeric_limits::max(); - // Do we have any active timers anymore? If not, then we won't need to schedule a new timer poll event - bool haveActiveTimers = false; - - for (auto handle : timerHandles) { - KernelObject* object = getObject(handle, KernelObjectType::Timer); - if (object != nullptr) { - Timer* timer = object->getData(); - - if (timer->running) { - // If timer has fired, signal it and set the tick it will next time - if (currentTick >= timer->fireTick) { - signalTimer(handle, timer); - } - - // Update our next timer fire timestamp and mark that we should schedule a new event to poll timers - // We recheck timer->running because signalling a timer stops it if interval == 0 - if (timer->running) { - nextTimestamp = std::min(nextTimestamp, timer->fireTick); - haveActiveTimers = true; - } - } - } - } - - // If we still have active timers, schedule next poll event - if (haveActiveTimers) { - Scheduler& scheduler = cpu.getScheduler(); - scheduler.addEvent(Scheduler::EventType::UpdateTimers, nextTimestamp); - } -} - -void Kernel::cancelTimer(Timer* timer) { - timer->running = false; -} - -void Kernel::signalTimer(Handle timerHandle, Timer* timer) { - timer->fired = true; - requireReschedule(); - - // Check if there's any thread waiting on this event - if (timer->waitlist != 0) { - wakeupAllThreads(timer->waitlist, timerHandle); - timer->waitlist = 0; // No threads waiting; - - switch (timer->resetType) { - case ResetType::OneShot: timer->fired = false; break; - case ResetType::Sticky: break; - case ResetType::Pulse: Helpers::panic("Signalled pulsing timer"); break; - } - } - - if (timer->interval == 0) { - cancelTimer(timer); - } else { - timer->fireTick = cpu.getTicks() + Scheduler::nsToCycles(timer->interval); - } -} - -void Kernel::svcCreateTimer() { - const u32 resetType = regs[1]; - if (resetType > 2) { - Helpers::panic("Invalid reset type for event %d", resetType); - } - - // Have a warning here until our timers don't suck - Helpers::warn("Called Kernel::CreateTimer. Timers are currently not updated nor triggered properly!"); - - logSVC("CreateTimer (resetType = %s)\n", resetTypeToString(resetType)); - regs[0] = Result::Success; - regs[1] = makeTimer(static_cast(resetType)); -} - -void Kernel::svcSetTimer() { - Handle handle = regs[0]; - // TODO: Is this actually s64 or u64? 3DBrew says s64, but u64 makes more sense - const s64 initial = s64(u64(regs[2]) | (u64(regs[3]) << 32)); - const s64 interval = s64(u64(regs[1]) | (u64(regs[4]) << 32)); - logSVC("SetTimer (handle = %X, initial delay = %llX, interval delay = %llX)\n", handle, initial, interval); - - KernelObject* object = getObject(handle, KernelObjectType::Timer); - - if (object == nullptr) { - Helpers::panic("Tried to set non-existent timer %X\n", handle); - regs[0] = Result::Kernel::InvalidHandle; - } - - Timer* timer = object->getData(); - cancelTimer(timer); - timer->interval = interval; - timer->running = true; - timer->fireTick = cpu.getTicks() + Scheduler::nsToCycles(initial); - - Scheduler& scheduler = cpu.getScheduler(); - // Signal an event to poll timers as soon as possible - scheduler.removeEvent(Scheduler::EventType::UpdateTimers); - scheduler.addEvent(Scheduler::EventType::UpdateTimers, cpu.getTicks() + 1); - - // If the initial delay is 0 then instantly signal the timer - if (initial == 0) { - signalTimer(handle, timer); - } - - regs[0] = Result::Success; -} - -void Kernel::svcClearTimer() { - Handle handle = regs[0]; - logSVC("ClearTimer (handle = %X)\n", handle); - KernelObject* object = getObject(handle, KernelObjectType::Timer); - - if (object == nullptr) { - Helpers::panic("Tried to clear non-existent timer %X\n", handle); - regs[0] = Result::Kernel::InvalidHandle; - } else { - object->getData()->fired = false; - regs[0] = Result::Success; - } -} - -void Kernel::svcCancelTimer() { - Handle handle = regs[0]; - logSVC("CancelTimer (handle = %X)\n", handle); - KernelObject* object = getObject(handle, KernelObjectType::Timer); - - if (object == nullptr) { - Helpers::panic("Tried to cancel non-existent timer %X\n", handle); - regs[0] = Result::Kernel::InvalidHandle; - } else { - cancelTimer(object->getData()); - regs[0] = Result::Success; - } -} \ No newline at end of file diff --git a/src/core/loader/3dsx.cpp b/src/core/loader/3dsx.cpp deleted file mode 100644 index ca6bdd19..00000000 --- a/src/core/loader/3dsx.cpp +++ /dev/null @@ -1,302 +0,0 @@ -#include "loader/3dsx.hpp" - -#include -#include -#include - -#include "memory.hpp" - -namespace { - struct LoadInfo { - u32 codeSegSizeAligned; - u32 rodataSegSizeAligned; - u32 dataSegSizeAligned; - }; - - static inline u32 translateAddr(const u32 off, const u32* addrs, const u32* offsets) { - if (off < offsets[1]) { - return addrs[0] + off; - } - - if (off < offsets[2]) { - return addrs[1] + off - offsets[1]; - } - return addrs[2] + off - offsets[2]; - } -} // namespace - -bool Memory::map3DSX(HB3DSX& hb3dsx, const HB3DSX::Header& header) { - const LoadInfo hbInfo = { - .codeSegSizeAligned = (header.codeSegSize + 0xFFF) & ~0xFFF, - .rodataSegSizeAligned = (header.rodataSegSize + 0xFFF) & ~0xFFF, - .dataSegSizeAligned = (header.dataSegSize + 0xFFF) & ~0xFFF, - }; - - const u32 textSegAddr = HB3DSX::entrypoint; - const u32 rodataSegAddr = textSegAddr + hbInfo.codeSegSizeAligned; - const u32 dataSegAddr = rodataSegAddr + hbInfo.rodataSegSizeAligned; - const u32 extraPageAddr = dataSegAddr + hbInfo.dataSegSizeAligned; - - printf("Text address = %08X, size = %08X\n", textSegAddr, hbInfo.codeSegSizeAligned); - printf("Rodata address = %08X, size = %08X\n", rodataSegAddr, hbInfo.rodataSegSizeAligned); - printf("Data address = %08X, size = %08X\n", dataSegAddr, hbInfo.dataSegSizeAligned); - - // Allocate stack, 3dsx/libctru don't require anymore than this - if (!allocateMainThreadStack(4_KB)) { - // Should be unreachable - printf("Failed to allocate stack for 3DSX.\n"); - return false; - } - - // Map code file to memory - // Total memory to allocate for loading - // suum of aligned values is always aligned, have an extra RW page for libctru - const u32 totalSize = hbInfo.codeSegSizeAligned + hbInfo.rodataSegSizeAligned + hbInfo.dataSegSizeAligned + 4_KB; - - const auto opt = findPaddr(totalSize); - if (!opt.has_value()) { - Helpers::panic("Failed to find paddr to map 3DSX file's code to"); - return false; - } - - // Map the ROM on the kernel side - const u32 textOffset = 0; - const u32 rodataOffset = textOffset + hbInfo.codeSegSizeAligned; - const u32 dataOffset = rodataOffset + hbInfo.rodataSegSizeAligned; - const u32 extraPageOffset = dataOffset + hbInfo.dataSegSizeAligned; - - std::array relocHeaders; - auto [success, count] = hb3dsx.file.read(&relocHeaders[0], relocHeaders.size(), sizeof(HB3DSX::RelocHeader)); - if (!success || count != relocHeaders.size()) { - Helpers::panic("Failed to read 3DSX relocation headers"); - return false; - } - - const u32 dataLoadsize = header.dataSegSize - header.bssSize; // 3DSX data size in header includes bss - std::vector code(totalSize, 0); - - std::tie(success, count) = hb3dsx.file.readBytes(&code[textOffset], header.codeSegSize); - if (!success || count != header.codeSegSize) { - Helpers::panic("Failed to read 3DSX text segment"); - return false; - } - - std::tie(success, count) = hb3dsx.file.readBytes(&code[rodataOffset], header.rodataSegSize); - if (!success || count != header.rodataSegSize) { - Helpers::panic("Failed to read 3DSX rodata segment"); - return false; - } - - std::tie(success, count) = hb3dsx.file.readBytes(&code[dataOffset], dataLoadsize); - if (!success || count != dataLoadsize) { - Helpers::panic("Failed to read 3DSX data segment"); - return false; - } - - std::vector currentRelocs; - - const u32 segAddrs[] = { - textSegAddr, - rodataSegAddr, - dataSegAddr, - extraPageAddr, - }; - - const u32 segOffs[] = { - textOffset, - rodataOffset, - dataOffset, - extraPageOffset, - }; - - const u32 segSizes[] = { - header.codeSegSize, - header.rodataSegSize, - dataLoadsize, - 0x1000, - }; - - for (const auto& relocHeader : relocHeaders) { - currentRelocs.resize(relocHeader.absoluteCount + relocHeader.relativeCount); - std::tie(success, count) = hb3dsx.file.read(¤tRelocs[0], currentRelocs.size(), sizeof(HB3DSX::Reloc)); - if (!success || count != currentRelocs.size()) { - Helpers::panic("Failed to read 3DSX relocations"); - return false; - } - - const auto allRelocs = std::span(currentRelocs); - const auto absoluteRelocs = allRelocs.subspan(0, relocHeader.absoluteCount); - const auto relativeRelocs = allRelocs.subspan(relocHeader.absoluteCount, relocHeader.relativeCount); - - const auto currentSeg = &relocHeader - &relocHeaders[0]; - const auto sectionDataStartAs = std::span(code).subspan(segOffs[currentSeg], segSizes[currentSeg]); - auto sectionData = sectionDataStartAs; - - const auto RelocationAction = [&](const HB3DSX::Reloc& reloc, const HB3DSX::RelocType relocType) -> bool { - if (reloc.skip) { - sectionData = sectionData.subspan(reloc.skip * sizeof(u32)); // advance by `skip` words (32-bit values) - } - - for (u32 m = 0; m < reloc.patch && !sectionData.empty(); ++m) { - const u32 inAddr = textSegAddr + (sectionData.data() - code.data()); // byte offset -> word count - u32 origData = 0; - std::memcpy(&origData, §ionData[0], sizeof(u32)); - const u32 subType = origData >> (32 - 4); - const u32 addr = translateAddr(origData & ~0xF0000000, segAddrs, segOffs); - - switch (relocType) { - case HB3DSX::RelocType::Absolute: { - if (subType != 0) { - Helpers::panic("Unsupported absolute reloc subtype"); - return false; - } - std::memcpy(§ionData[0], &addr, sizeof(u32)); - break; - } - - case HB3DSX::RelocType::Relative: { - u32 data = addr - inAddr; - switch (subType) { - case 1: // 31-bit signed offset - data &= ~(1u << 31); - case 0: // 32-bit signed offset - std::memcpy(§ionData[0], &data, sizeof(u32)); - break; - default: Helpers::panic("Unsupported relative reloc subtype"); return false; - } - break; - } - } - - sectionData = sectionData.subspan(sizeof(u32)); - } - - return true; - }; - - for (const auto& reloc : absoluteRelocs) { - if (!RelocationAction(reloc, HB3DSX::RelocType::Absolute)) { - return false; - } - } - - sectionData = sectionDataStartAs; // restart from the beginning for the next part - for (const auto& reloc : relativeRelocs) { - if (!RelocationAction(reloc, HB3DSX::RelocType::Relative)) { - return false; - } - } - } - - // Detect and fill _prm structure - HB3DSX::PrmStruct pst; - std::memcpy(&pst, &code[4], sizeof(pst)); - if (pst.magic[0] == '_' && pst.magic[1] == 'p' && pst.magic[2] == 'r' && pst.magic[3] == 'm') { - // if there was any argv to put, it would go there - // first u32: argc - // remaining: continuous argv string (NUL-char separated, ofc) - // std::memcpy(&code[extraPageOffset], argvBuffer, ...); - - // setting to NULL (default) = run from system. load romfs from process. - // non-NULL = homebrew launcher. load romfs from 3dsx @ argv[0] - // pst.pSrvOverride = extraPageAddr + 0xFFC; - - pst.pArgList = extraPageAddr; - - // RUNFLAG_APTREINIT: Reinitialize APT. - // From libctru. Because there's no previously running software here - pst.runFlags |= 1 << 1; - - /* s64 dummy; - bool isN3DS = svcGetSystemInfo(&dummy, 0x10001, 0) == 0; - if (isN3DS) - { - pst->heapSize = u32(48_MB); - pst->linearHeapSize = u32(64_MB); - } else */ { - pst.heapSize = u32(24_MB); - pst.linearHeapSize = u32(32_MB); - } - - std::memcpy(&code[4], &pst, sizeof(pst)); - } - - const auto paddr = opt.value(); - std::memcpy(&fcram[paddr], &code[0], totalSize); // Copy the 3 segments + BSS to FCRAM - - allocateMemory(textSegAddr, paddr + textOffset, hbInfo.codeSegSizeAligned, true, true, false, true); // Text is R-X - allocateMemory(rodataSegAddr, paddr + rodataOffset, hbInfo.rodataSegSizeAligned, true, true, false, false); // Rodata is R-- - allocateMemory(dataSegAddr, paddr + dataOffset, hbInfo.dataSegSizeAligned + 0x1000, true, true, true, false); // Data+BSS+Extra is RW- - - return true; -} - -std::optional Memory::load3DSX(const std::filesystem::path& path) { - HB3DSX hb3dsx; - if (!hb3dsx.file.open(path, "rb")) { - return std::nullopt; - } - - u8 magic[4]; // Must be "3DSX" - auto [success, bytes] = hb3dsx.file.readBytes(magic, 4); - - if (!success || bytes != 4) { - printf("Failed to read 3DSX magic\n"); - return std::nullopt; - } - - if (magic[0] != '3' || magic[1] != 'D' || magic[2] != 'S' || magic[3] != 'X') { - printf("3DSX with wrong magic value\n"); - return std::nullopt; - } - - HB3DSX::Header hbHeader; - std::tie(success, bytes) = hb3dsx.file.readBytes(&hbHeader, sizeof(hbHeader)); - if (!success || bytes != sizeof(hbHeader)) { - printf("Failed to read 3DSX header\n"); - return std::nullopt; - } - - if (hbHeader.headerSize == 0x20 || hbHeader.headerSize == 0x2C) { - if (hbHeader.headerSize == 0x2C) { - hb3dsx.file.seek(8, SEEK_CUR); // skip SMDH info - std::tie(success, bytes) = hb3dsx.file.readBytes(&hb3dsx.romFSOffset, 4); - if (!success || bytes != 4) { - printf("Failed to read 3DSX romFS offset\n"); - return std::nullopt; - } - - const auto fileSize = hb3dsx.file.size(); - if (!fileSize) { - printf("Failed to get 3DSX size\n"); - return std::nullopt; - } - hb3dsx.romFSSize = *fileSize - hb3dsx.romFSOffset; - } - } else { - printf("Invalid 3DSX header size\n"); - return std::nullopt; - } - - if (!map3DSX(hb3dsx, hbHeader)) { - printf("Failed to map 3DSX\n"); - return std::nullopt; - } - - loaded3DSX = std::move(hb3dsx); - return HB3DSX::entrypoint; -} - -bool HB3DSX::hasRomFs() const { return romFSSize != 0 && romFSOffset != 0; } - -std::pair HB3DSX::readRomFSBytes(void* dst, std::size_t offset, std::size_t size) { - if (!hasRomFs()) { - return {false, 0}; - } - - if (!file.seek(romFSOffset + offset)) { - return {false, 0}; - } - - return file.readBytes(dst, size); -} diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp deleted file mode 100644 index cb854e07..00000000 --- a/src/core/loader/elf.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include "memory.hpp" - -#include -#include "elfio/elfio.hpp" - -using namespace ELFIO; - -std::optional Memory::loadELF(std::ifstream& file) { - loadedCXI = std::nullopt; // ELF files don't have a CXI, so set this to null - - elfio reader; - if (!file.good() || !reader.load(file)) { - printf("Woops failed to load ELF\n"); - return std::nullopt; - } - - // Allocate stack space. For ELFs we use the default stack size, which is 16KB - if (!allocateMainThreadStack(VirtualAddrs::DefaultStackSize)) { - // Should be unreachable - printf("Failed to allocate stack space for ELF file\n"); - return std::nullopt; - } - - auto segNum = reader.segments.size(); - printf("Number of segments: %d\n", segNum); - printf(" # Perms Vaddr File Size Mem Size\n"); - for (int i = 0; i < segNum; ++i) { - const auto seg = reader.segments[i]; - const auto flags = seg->get_flags(); - const u32 vaddr = static_cast(seg->get_virtual_address()); // Vaddr the segment is loaded in - u32 fileSize = static_cast(seg->get_file_size()); // Size of segment in file - u32 memorySize = static_cast(seg->get_memory_size()); // Size of segment in memory - u8* data = (u8*)seg->get_data(); - - // Get read/write/execute permissions for segment - const bool r = (flags & 0b100) != 0; - const bool w = (flags & 0b010) != 0; - const bool x = (flags & 0b001) != 0; - - printf("[%d] (%c%c%c)\t%08X\t%08X\t%08X\n", i, r ? 'r' : '-', w ? 'w' : '-', x ? 'x' : '-', vaddr, fileSize, memorySize); - - // Assert that the segment will be loaded in the executable region. If it isn't then panic. - // The executable region starts at 0x00100000 and has a maximum size of 0x03F00000 - u64 endAddress = (u64)vaddr + (u64)fileSize; - const bool isGood = vaddr >= VirtualAddrs::ExecutableStart && endAddress < VirtualAddrs::ExecutableEnd; - if (!isGood) { - // We're ignoring this for now because some ELFs define a segment at the vaddr for IPC buffer mapping - // Helpers::panic("ELF is loaded at invalid place"); - // return std::nullopt; - } - - if (memorySize & pageMask) { - // Round up the size of the ELF segment to a page (4KB) boundary, as the OS can only alloc this way - memorySize = (memorySize + pageSize - 1) & -pageSize; - Helpers::warn("Rounding ELF segment size to %08X\n", memorySize); - } - - // This should also assert that findPaddr doesn't fail - u32 fcramAddr = findPaddr(memorySize).value(); - std::memcpy(&fcram[fcramAddr], data, fileSize); - - // Allocate the segment on the OS side - allocateMemory(vaddr, fcramAddr, memorySize, true, r, w, x); - } - - // ELF can't specify a region, make it default to USA - region = Regions::USA; - return static_cast(reader.get_entry()); -} \ No newline at end of file diff --git a/src/core/loader/lz77.cpp b/src/core/loader/lz77.cpp deleted file mode 100644 index 60021b13..00000000 --- a/src/core/loader/lz77.cpp +++ /dev/null @@ -1,79 +0,0 @@ -#include -#include -#include "loader/lz77.hpp" - -// The difference in size between the compressed and decompressed file is stored -// As a footer in the compressed file. To get the decompressed size, we extract the diff -// And add it to the compressed size -u32 CartLZ77::decompressedSize(const u8* buffer, u32 compressedSize) { - u32 sizeDiff; - std::memcpy(&sizeDiff, buffer + compressedSize - 4, sizeof(u32)); - return sizeDiff + compressedSize; -} - -bool CartLZ77::decompress(std::vector& output, const std::vector& input) { - u32 sizeCompressed = u32(input.size() * sizeof(u8)); - u32 sizeDecompressed = decompressedSize(input); - output.resize(sizeDecompressed); - - const u8* compressed = (u8*)input.data(); - const u8* footer = compressed + sizeCompressed - 8; - - u32 bufferTopAndBottom; - std::memcpy(&bufferTopAndBottom, footer, sizeof(u32)); - - u32 out = sizeDecompressed; // TODO: Is this meant to be u32 or s32? - u32 index = sizeCompressed - (Helpers::getBits<24, 8>(bufferTopAndBottom)); - u32 stopIndex = sizeCompressed - (bufferTopAndBottom & 0xffffff); - - // Set all of the decompressed buffer to 0 and copy the compressed buffer to the start of it - std::fill(output.begin(), output.end(), 0); - std::copy(input.begin(), input.end(), output.begin()); - - while (index > stopIndex) { - u8 control = compressed[--index]; - - for (uint i = 0; i < 8; i++) { - if (index <= stopIndex) - break; - if (index <= 0) - break; - if (out <= 0) - break; - - if (control & 0x80) { - // Check if compression is out of bounds - if (index < 2) - return false; - index -= 2; - - u32 segmentOffset = compressed[index] | (compressed[index + 1] << 8); - u32 segment_size = (Helpers::getBits<12, 4>(segmentOffset)) + 3; - segmentOffset &= 0x0FFF; - segmentOffset += 2; - - // Check if compression is out of bounds - if (out < segment_size) - return false; - - for (uint j = 0; j < segment_size; j++) { - // Check if compression is out of bounds - if (out + segmentOffset >= sizeDecompressed) - return false; - - u8 data = output[out + segmentOffset]; - output[--out] = data; - } - } - else { - // Check if compression is out of bounds - if (out < 1) - return false; - output[--out] = compressed[--index]; - } - control <<= 1; - } - } - - return true; -} \ No newline at end of file diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp deleted file mode 100644 index 3bf73e5d..00000000 --- a/src/core/loader/ncch.cpp +++ /dev/null @@ -1,385 +0,0 @@ -#include -#include -#include -#include -#include "loader/lz77.hpp" -#include "loader/ncch.hpp" -#include "memory.hpp" - -#include - -bool NCCH::loadFromHeader(Crypto::AESEngine &aesEngine, IOFile& file, const FSInfo &info) { - // 0x200 bytes for the NCCH header - constexpr u64 headerSize = 0x200; - u8 header[headerSize]; - - auto [success, bytes] = readFromFile(file, info, header, 0, headerSize); - if (!success || bytes != headerSize) { - printf("Failed to read NCCH header\n"); - return false; - } - - if (header[0x100] != 'N' || header[0x101] != 'C' || header[0x102] != 'C' || header[0x103] != 'H') { - printf("Invalid header on NCCH\n"); - return false; - } - - codeFile.clear(); - saveData.clear(); - smdh.clear(); - partitionInfo = info; - - size = u64(*(u32*)&header[0x104]) * mediaUnit; // TODO: Maybe don't type pun because big endian will break - exheaderSize = *(u32*)&header[0x180]; - - programID = *(u64*)&header[0x118]; - - // Read NCCH flags - secondaryKeySlot = header[0x188 + 3]; - isNew3DS = header[0x188 + 4] == 2; - fixedCryptoKey = (header[0x188 + 7] & 0x1) == 0x1; - mountRomFS = (header[0x188 + 7] & 0x2) != 0x2; - encrypted = (header[0x188 + 7] & 0x4) != 0x4; - seedCrypto = (header[0x188 + 7] & 0x20) == 0x20; - - // Read exheader, ExeFS and RomFS info - exheaderInfo.offset = info.offset + 0x200; - exheaderInfo.size = exheaderSize; - exheaderInfo.hashRegionSize = 0; - exheaderInfo.encryptionInfo = std::nullopt; - - exeFS.offset = info.offset + u64(*(u32*)&header[0x1A0]) * mediaUnit; - exeFS.size = u64(*(u32*)&header[0x1A4]) * mediaUnit; - exeFS.hashRegionSize = u64(*(u32*)&header[0x1A8]) * mediaUnit; - exeFS.encryptionInfo = std::nullopt; - - romFS.offset = info.offset + u64(*(u32*)&header[0x1B0]) * mediaUnit; - romFS.size = u64(*(u32*)&header[0x1B4]) * mediaUnit; - romFS.hashRegionSize = u64(*(u32*)&header[0x1B8]) * mediaUnit; - romFS.encryptionInfo = std::nullopt; - - // Shows whether we got the primary and secondary keys correctly - bool gotCryptoKeys = true; - if (encrypted) { - Crypto::AESKey primaryKeyY; - Crypto::AESKey secondaryKeyY; - std::memcpy(primaryKeyY.data(), header, primaryKeyY.size()); - - if (!seedCrypto) { - secondaryKeyY = primaryKeyY; - } else { - Helpers::warn("Seed crypto is not supported"); - gotCryptoKeys = false; - } - - auto primaryResult = getPrimaryKey(aesEngine, primaryKeyY); - auto secondaryResult = getSecondaryKey(aesEngine, secondaryKeyY); - - if (!primaryResult.first || !secondaryResult.first) { - gotCryptoKeys = false; - } else { - Crypto::AESKey primaryKey = primaryResult.second; - Crypto::AESKey secondaryKey = secondaryResult.second; - - EncryptionInfo encryptionInfoTmp; - encryptionInfoTmp.normalKey = primaryKey; - encryptionInfoTmp.initialCounter.fill(0); - - for (std::size_t i = 1; i <= sizeof(std::uint64_t) - 1; i++) { - encryptionInfoTmp.initialCounter[i] = header[0x108 + sizeof(std::uint64_t) - 1 - i]; - } - encryptionInfoTmp.initialCounter[8] = 1; - exheaderInfo.encryptionInfo = encryptionInfoTmp; - - encryptionInfoTmp.initialCounter[8] = 2; - exeFS.encryptionInfo = encryptionInfoTmp; - - encryptionInfoTmp.normalKey = secondaryKey; - encryptionInfoTmp.initialCounter[8] = 3; - romFS.encryptionInfo = encryptionInfoTmp; - } - } - - if (exheaderSize != 0) { - std::unique_ptr exheader(new u8[exheaderSize]); - - auto [success, bytes] = readFromFile(file, info, &exheader[0], 0x200, exheaderSize); - if (!success || bytes != exheaderSize) { - printf("Failed to read Extended NCCH header\n"); - return false; - } - - const u64 jumpID = *(u64*)&exheader[0x1C0 + 0x8]; - - // It seems like some decryption tools will decrypt the file, without actually setting the NoCrypto flag in the NCCH header - // This is a nice and easy hack to see if a file is pretending to be encrypted, taken from 3DMoo and Citra - if (u32(programID) == u32(jumpID) && encrypted) { - printf("NCSD is supposedly encrypted but not actually encrypted\n"); - encrypted = false; - - // Cartridge is not actually encrypted, set all of our encryption info structures to nullopt - exheaderInfo.encryptionInfo = std::nullopt; - romFS.encryptionInfo = std::nullopt; - exeFS.encryptionInfo = std::nullopt; - } - - // If it's truly encrypted, we need to read section again. - if (encrypted) { - if (!aesEngine.haveKeys()) { - Helpers::panic( - "Loaded an encrypted ROM but AES keys don't seem to have been provided correctly! Navigate to the emulator's\n" - "app data folder and make sure you have a sysdata directory with a file called aes_keys.txt which contains your keys!" - ); - return false; - } - - if (!aesEngine.haveGenerator()) { - Helpers::panic( - "Loading an encrypted ROM but your AES keys don't seem to provide the \"generator\" constant which Panda3DS requires for decryption\n" - "Please add it to your aes_keys.txt in a line like \"generator=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\" where the Xs are replaced with the actual generator constant value" - ); - } - - if (!gotCryptoKeys) { - Helpers::panic("ROM is encrypted but it seems we couldn't get either the primary or the secondary key"); - return false; - } - - auto [success, bytes] = readFromFile(file, exheaderInfo, &exheader[0], 0, exheaderSize); - if (!success || bytes != exheaderSize) { - printf("Failed to read Extended NCCH header\n"); - return false; - } - } - - const u64 saveDataSize = *(u64*)&exheader[0x1C0 + 0x0]; // Size of save data in bytes - saveData.resize(saveDataSize, 0xff); - - compressCode = (exheader[0xD] & 1) != 0; - stackSize = *(u32*)&exheader[0x1C]; - bssSize = *(u32*)&exheader[0x3C]; - - text.extract(&exheader[0x10]); - rodata.extract(&exheader[0x20]); - data.extract(&exheader[0x30]); - } - - printf("Stack size: %08X\nBSS size: %08X\n", stackSize, bssSize); - - // Read ExeFS - if (hasExeFS()) { - // Offset of ExeFS in the file = exeFS offset + NCCH offset - // exeFS.offset has already been offset by the NCCH offset - printf("ExeFS offset: %08llX, size: %08llX (Offset in file = %08llX)\n", exeFS.offset - info.offset, exeFS.size, exeFS.offset); - constexpr size_t exeFSHeaderSize = 0x200; - - u8 exeFSHeader[exeFSHeaderSize]; - - auto [success, bytes] = readFromFile(file, exeFS, exeFSHeader, 0, exeFSHeaderSize); - if (!success || bytes != exeFSHeaderSize) { - printf("Failed to parse ExeFS header\n"); - return false; - } - - // ExeFS format allows up to 10 files - for (int i = 0; i < 10; i++) { - u8* fileInfo = &exeFSHeader[i * 16]; - - char name[9]; - std::memcpy(name, fileInfo, 8); // Get file name as a string - name[8] = '\0'; // Add null terminator to it just in case there's none - - u32 fileOffset = *(u32*)&fileInfo[0x8]; - u32 fileSize = *(u32*)&fileInfo[0xC]; - - if (fileSize != 0) { - printf("File %d. Name: %s, Size: %08X, Offset: %08X\n", i, name, fileSize, fileOffset); - } - - if (std::strcmp(name, ".code") == 0) { - if (hasCode()) { - Helpers::panic("Second code file in a single NCCH partition. What should this do?\n"); - } - - if (compressCode) { - std::vector tmp; - tmp.resize(fileSize); - - // A file offset of 0 means our file is located right after the ExeFS header - // So in the ROM, files are located at (file offset + exeFS offset + exeFS header size) - readFromFile(file, exeFS, tmp.data(), fileOffset + exeFSHeaderSize, fileSize); - - // Decompress .code file from the tmp vector to the "code" vector - if (!CartLZ77::decompress(codeFile, tmp)) { - printf("Failed to decompress .code file\n"); - return false; - } - } else { - codeFile.resize(fileSize); - readFromFile(file, exeFS, codeFile.data(), fileOffset + exeFSHeaderSize, fileSize); - } - } else if (std::strcmp(name, "icon") == 0) { - // Parse icon file to extract region info and more in the future (logo, etc) - smdh.resize(fileSize); - readFromFile(file, exeFS, smdh.data(), fileOffset + exeFSHeaderSize, fileSize); - - if (!parseSMDH(smdh)) { - printf("Failed to parse SMDH!\n"); - } - } - } - } - - // If no region has been detected for CXI, set the region to USA by default - if (!region.has_value() && partitionIndex == 0) { - printf("No region detected for CXI, defaulting to USA\n"); - region = Regions::USA; - } - - if (hasRomFS()) { - printf("RomFS offset: %08llX, size: %08llX\n", romFS.offset, romFS.size); - } - - initialized = true; - return true; -} - -bool NCCH::parseSMDH(const std::vector& smdh) { - if (smdh.size() < 0x36C0) { - printf("The cartridge .icon file is too small, considered invalid. Must be 0x36C0 bytes minimum\n"); - return false; - } - - if (char(smdh[0]) != 'S' || char(smdh[1]) != 'M' || char(smdh[2]) != 'D' || char(smdh[3]) != 'H') { - printf("Invalid SMDH magic!\n"); - return false; - } - - // Bitmask showing which regions are allowed. - // https://www.3dbrew.org/wiki/SMDH#Region_Lockout - const u32 regionMasks = *(u32*)&smdh[0x2018]; - // Detect when games are region free (ie all regions are allowed) for future use - [[maybe_unused]] const bool isRegionFree = (regionMasks & 0x7f) == 0x7f; - - // See which countries are allowed - const bool japan = (regionMasks & 0x1) != 0; - const bool northAmerica = (regionMasks & 0x2) != 0; - const bool europe = (regionMasks & 0x4) != 0; - const bool australia = (regionMasks & 0x8) != 0; - const bool china = (regionMasks & 0x10) != 0; - const bool korea = (regionMasks & 0x20) != 0; - const bool taiwan = (regionMasks & 0x40) != 0; - - // Based on the allowed regions, set the autodetected 3DS region. We currently prefer English-speaking regions for practical purposes. - // But this should be configurable later. - if (northAmerica) { - region = Regions::USA; - } else if (europe) { - region = Regions::Europe; - } else if (australia) { - region = Regions::Australia; - } else if (japan) { - region = Regions::Japan; - } else if (korea) { - region = Regions::Korea; - } else if (china) { - region = Regions::China; - } else if (taiwan) { - region = Regions::Taiwan; - } - return true; -} - -std::pair NCCH::getPrimaryKey(Crypto::AESEngine &aesEngine, const Crypto::AESKey &keyY) { - Crypto::AESKey result; - - if (encrypted) { - if (fixedCryptoKey) { - return {true, result}; - } - - aesEngine.setKeyY(Crypto::KeySlotId::NCCHKey0, keyY); - - if (!aesEngine.hasNormalKey(Crypto::KeySlotId::NCCHKey0)) { - return {false, result}; - } - - result = aesEngine.getNormalKey(Crypto::KeySlotId::NCCHKey0); - } - - return {true, result}; -} - -std::pair NCCH::getSecondaryKey(Crypto::AESEngine &aesEngine, const Crypto::AESKey &keyY) { - Crypto::AESKey result; - - if (encrypted) { - - if (fixedCryptoKey) { - return {true, result}; - } - - Crypto::KeySlotId keySlotId; - - switch (secondaryKeySlot) { - case 0: - keySlotId = Crypto::KeySlotId::NCCHKey0; - break; - case 1: - keySlotId = Crypto::KeySlotId::NCCHKey1; - break; - case 10: - keySlotId = Crypto::KeySlotId::NCCHKey2; - break; - case 11: - keySlotId = Crypto::KeySlotId::NCCHKey3; - break; - default: - return {false, result}; - } - - if (!aesEngine.hasKeyX(keySlotId)) { - return {false, result}; - } - - aesEngine.setKeyY(keySlotId, keyY); - - if (!aesEngine.hasNormalKey(keySlotId)) { - return {false, result}; - } - - result = aesEngine.getNormalKey(keySlotId); - } - - return {true, result}; -} - -std::pair NCCH::readFromFile(IOFile& file, const FSInfo &info, u8 *dst, std::size_t offset, std::size_t size) { - if (size == 0) { - return { true, 0 }; - } - - std::size_t readMaxSize = std::min(size, static_cast(info.size) - offset); - - file.seek(info.offset + offset); - auto [success, bytes] = file.readBytes(dst, readMaxSize); - - if (!success) { - return { success, bytes}; - } - - if (success && info.encryptionInfo.has_value()) { - auto& encryptionInfo = info.encryptionInfo.value(); - - CryptoPP::CTR_Mode::Decryption d(encryptionInfo.normalKey.data(), encryptionInfo.normalKey.size(), encryptionInfo.initialCounter.data()); - - if (offset > 0) { - d.Seek(offset); - } - - CryptoPP::byte* data = reinterpret_cast(dst); - d.ProcessData(data, data, bytes); - } - - return { success, bytes}; -} diff --git a/src/core/loader/ncsd.cpp b/src/core/loader/ncsd.cpp deleted file mode 100644 index 8e8a5839..00000000 --- a/src/core/loader/ncsd.cpp +++ /dev/null @@ -1,207 +0,0 @@ -#include "loader/ncsd.hpp" - -#include -#include - -#include "memory.hpp" - -bool Memory::mapCXI(NCSD& ncsd, NCCH& cxi) { - printf("Text address = %08X, size = %08X\n", cxi.text.address, cxi.text.size); - printf("Rodata address = %08X, size = %08X\n", cxi.rodata.address, cxi.rodata.size); - printf("Data address = %08X, size = %08X\n", cxi.data.address, cxi.data.size); - printf("Stack size: %08X\n", cxi.stackSize); - - static constexpr std::array regionNames = {"Japan", "North America", "Europe", "Australia", "China", "Korea", "Taiwan" }; - - // Set autodetected 3DS region to one of the values allowed by the CXI's SMDH - region = cxi.region.value(); - printf("Console region autodetected to: %s\n", regionNames[static_cast(region)]); - - if (!isAligned(cxi.stackSize)) { - Helpers::warn("CXI has a suspicious stack size of %08X which is not a multiple of 4KB", cxi.stackSize); - } - - // Round up the size of the CXI stack size to a page (4KB) boundary, as the OS can only allocate memory this way - u32 stackSize = (cxi.stackSize + pageSize - 1) & -pageSize; - - if (stackSize > 512_KB) { - // TODO: Figure out the actual max stack size - Helpers::warn("CXI stack size is %08X which seems way too big. Clamping to 512KB", stackSize); - stackSize = 512_KB; - } - - // Allocate stack - if (!allocateMainThreadStack(stackSize)) { - // Should be unreachable - printf("Failed to allocate stack for CXI partition. Requested stack size: %08X\n", stackSize); - return false; - } - - // Map code file to memory - auto& code = cxi.codeFile; - u32 bssSize = (cxi.bssSize + 0xfff) & ~0xfff; // Round BSS size up to a page boundary - // Total memory to allocate for loading - u32 totalSize = (cxi.text.pageCount + cxi.rodata.pageCount + cxi.data.pageCount) * pageSize + bssSize; - code.resize(code.size() + bssSize, 0); // Pad the .code file with zeroes for the BSS segment - - if (code.size() < totalSize) { - Helpers::panic("Total code size as reported by the exheader is larger than the .code file"); - return false; - } - - const auto opt = findPaddr(totalSize); - if (!opt.has_value()) { - Helpers::panic("Failed to find paddr to map CXI file's code to"); - return false; - } - - const auto paddr = opt.value(); - std::memcpy(&fcram[paddr], &code[0], totalSize); // Copy the 3 segments + BSS to FCRAM - - // Map the ROM on the kernel side - u32 textOffset = 0; - u32 textAddr = cxi.text.address; - u32 textSize = cxi.text.pageCount * pageSize; - - u32 rodataOffset = textOffset + textSize; - u32 rodataAddr = cxi.rodata.address; - u32 rodataSize = cxi.rodata.pageCount * pageSize; - - u32 dataOffset = rodataOffset + rodataSize; - u32 dataAddr = cxi.data.address; - u32 dataSize = cxi.data.pageCount * pageSize + bssSize; // We're merging the data and BSS segments, as BSS is just pre-initted .data - - allocateMemory(textAddr, paddr + textOffset, textSize, true, true, false, true); // Text is R-X - allocateMemory(rodataAddr, paddr + rodataOffset, rodataSize, true, true, false, false); // Rodata is R-- - allocateMemory(dataAddr, paddr + dataOffset, dataSize, true, true, true, false); // Data+BSS is RW- - - ncsd.entrypoint = textAddr; - - // Back the IOFile for accessing the ROM, as well as the ROM's CXI partition, in the memory class. - CXIFile = ncsd.file; - loadedCXI = cxi; - return true; -} - -std::optional Memory::loadNCSD(Crypto::AESEngine& aesEngine, const std::filesystem::path& path) { - NCSD ncsd; - if (!ncsd.file.open(path, "rb")) return std::nullopt; - - u8 magic[4]; // Must be "NCSD" - ncsd.file.seek(0x100); - auto [success, bytes] = ncsd.file.readBytes(magic, 4); - - if (!success || bytes != 4) { - printf("Failed to read NCSD magic\n"); - return std::nullopt; - } - - if (magic[0] != 'N' || magic[1] != 'C' || magic[2] != 'S' || magic[3] != 'D') { - printf("NCSD with wrong magic value\n"); - return std::nullopt; - } - - std::tie(success, bytes) = ncsd.file.readBytes(&ncsd.size, 4); - if (!success || bytes != 4) { - printf("Failed to read NCSD size\n"); - return std::nullopt; - } - - ncsd.size *= NCSD::mediaUnit; // Convert size to bytes - - // Read partition data - ncsd.file.seek(0x120); - // 2 u32s per partition (offset and length), 8 partitions total - constexpr size_t partitionDataSize = 8 * 2; // Size of partition in u32s - u32 partitionData[8 * 2]; - std::tie(success, bytes) = ncsd.file.read(partitionData, partitionDataSize, sizeof(u32)); - if (!success || bytes != partitionDataSize) { - printf("Failed to read NCSD partition data\n"); - return std::nullopt; - } - - for (int i = 0; i < 8; i++) { - auto& partition = ncsd.partitions[i]; - NCCH& ncch = partition.ncch; - partition.offset = u64(partitionData[i * 2]) * NCSD::mediaUnit; - partition.length = u64(partitionData[i * 2 + 1]) * NCSD::mediaUnit; - - ncch.partitionIndex = i; - ncch.fileOffset = partition.offset; - - if (partition.length != 0) { // Initialize the NCCH of each partition - NCCH::FSInfo ncchFsInfo; - - ncchFsInfo.offset = partition.offset; - ncchFsInfo.size = partition.length; - - if (!ncch.loadFromHeader(aesEngine, ncsd.file, ncchFsInfo)) { - printf("Invalid NCCH partition\n"); - return std::nullopt; - } - } - } - - auto& cxi = ncsd.partitions[0].ncch; - if (!cxi.hasExtendedHeader() || !cxi.hasCode()) { - printf("NCSD with an invalid CXI in partition 0?\n"); - return std::nullopt; - } - - if (!mapCXI(ncsd, cxi)) { - printf("Failed to map CXI\n"); - return std::nullopt; - } - - return ncsd; -} - -// We are lazy so we take CXI files, easily "convert" them to NCSD internally, then use our existing NCSD infrastructure -// This is easy because NCSD is just CXI + some more NCCH partitions, which we can make empty when converting to NCSD -std::optional Memory::loadCXI(Crypto::AESEngine& aesEngine, const std::filesystem::path& path) { - NCSD ncsd; - if (!ncsd.file.open(path, "rb")) { - return std::nullopt; - } - - // Make partitions 1 through 8 of the converted NCSD empty - // Partition 0 (CXI partition of an NCSD) is the only one we care about - for (int i = 1; i < 8; i++) { - auto& partition = ncsd.partitions[i]; - NCCH& ncch = partition.ncch; - partition.offset = 0ull; - partition.length = 0ull; - - ncch.partitionIndex = i; - ncch.fileOffset = partition.offset; - } - - auto& cxiPartition = ncsd.partitions[0]; - auto& cxi = cxiPartition.ncch; - - std::optional size = ncsd.file.size(); - if (!size.has_value()) { - return std::nullopt; - } - - cxiPartition.offset = 0ull; - cxiPartition.length = size.value(); - NCCH::FSInfo cxiInfo{.offset = cxiPartition.offset, .size = cxiPartition.length, .hashRegionSize = 0, .encryptionInfo = std::nullopt}; - - if (!cxi.loadFromHeader(aesEngine, ncsd.file, cxiInfo)) { - printf("Invalid CXI partition\n"); - return std::nullopt; - } - - if (!cxi.hasExtendedHeader() || !cxi.hasCode()) { - printf("CXI does not have exheader or code file?\n"); - return std::nullopt; - } - - if (!mapCXI(ncsd, cxi)) { - printf("Failed to map CXI\n"); - return std::nullopt; - } - - return ncsd; -} diff --git a/src/core/memory.cpp b/src/core/memory.cpp deleted file mode 100644 index 09b49eee..00000000 --- a/src/core/memory.cpp +++ /dev/null @@ -1,537 +0,0 @@ -#include "memory.hpp" - -#include -#include // For time since epoch -#include -#include - -#include "config_mem.hpp" -#include "resource_limits.hpp" -#include "services/ptm.hpp" - -CMRC_DECLARE(ConsoleFonts); - -using namespace KernelMemoryTypes; - -Memory::Memory(u64& cpuTicks, const EmulatorConfig& config) : cpuTicks(cpuTicks), config(config) { - fcram = new uint8_t[FCRAM_SIZE](); - - readTable.resize(totalPageCount, 0); - writeTable.resize(totalPageCount, 0); - memoryInfo.reserve(32); // Pre-allocate some room for memory allocation info to avoid dynamic allocs -} - -void Memory::reset() { - // Unallocate all memory - memoryInfo.clear(); - usedFCRAMPages.reset(); - usedUserMemory = u32(0_MB); - usedSystemMemory = u32(0_MB); - - for (u32 i = 0; i < totalPageCount; i++) { - readTable[i] = 0; - writeTable[i] = 0; - } - - // Map (32 * 4) KB of FCRAM before the stack for the TLS of each thread - std::optional tlsBaseOpt = findPaddr(32 * 4_KB); - if (!tlsBaseOpt.has_value()) { // Should be unreachable but still good to have - Helpers::panic("Failed to allocate memory for thread-local storage"); - } - - u32 basePaddrForTLS = tlsBaseOpt.value(); - for (u32 i = 0; i < appResourceLimits.maxThreads; i++) { - u32 vaddr = VirtualAddrs::TLSBase + i * VirtualAddrs::TLSSize; - allocateMemory(vaddr, basePaddrForTLS, VirtualAddrs::TLSSize, true); - basePaddrForTLS += VirtualAddrs::TLSSize; - } - - // Initialize shared memory blocks and reserve memory for them - for (auto& e : sharedMemBlocks) { - if (e.handle == KernelHandles::FontSharedMemHandle) { - // Read font size from the cmrc filesystem the font is stored in - auto fonts = cmrc::ConsoleFonts::get_filesystem(); - e.size = fonts.open("CitraSharedFontUSRelocated.bin").size(); - } - - e.mapped = false; - e.paddr = allocateSysMemory(e.size); - } - - // Map DSP RAM as R/W at [0x1FF00000, 0x1FF7FFFF] - constexpr u32 dspRamPages = DSP_RAM_SIZE / pageSize; // Number of DSP RAM pages - constexpr u32 initialPage = VirtualAddrs::DSPMemStart / pageSize; // First page of DSP RAM in the virtual address space - - for (u32 i = 0; i < dspRamPages; i++) { - auto pointer = uintptr_t(&dspRam[i * pageSize]); - - readTable[i + initialPage] = pointer; - writeTable[i + initialPage] = pointer; - } - - // Later adjusted based on ROM header when possible - region = Regions::USA; -} - -bool Memory::allocateMainThreadStack(u32 size) { - // Map stack pages as R/W - std::optional basePaddr = findPaddr(size); - if (!basePaddr.has_value()) { // Should also be unreachable but still good to have - return false; - } - - const u32 stackBottom = VirtualAddrs::StackTop - size; - std::optional result = allocateMemory(stackBottom, basePaddr.value(), size, true); // Should never be nullopt - return result.has_value(); -} - -u8 Memory::read8(u32 vaddr) { - const u32 page = vaddr >> pageShift; - const u32 offset = vaddr & pageMask; - - uintptr_t pointer = readTable[page]; - if (pointer != 0) [[likely]] { - return *(u8*)(pointer + offset); - } else { - switch (vaddr) { - case ConfigMem::BatteryState: { - // Set by the PTM module - // Charger plugged: Shows whether the charger is plugged - // Charging: Shows whether the charger is plugged and the console is actually charging, ie the battery is not full - // BatteryLevel: A battery level calculated via PTM::GetBatteryLevel - // These are all assembled into a bitfield and returned via config memory - const bool chargerPlugged = config.chargerPlugged; - const bool charging = config.chargerPlugged && (config.batteryPercentage < 100); - const auto batteryLevel = static_cast(PTMService::batteryPercentToLevel(config.batteryPercentage)); - - return getBatteryState(chargerPlugged, charging, batteryLevel); - } - case ConfigMem::EnvInfo: return envInfo; - case ConfigMem::HardwareType: return ConfigMem::HardwareCodes::Product; - case ConfigMem::KernelVersionMinor: return u8(kernelVersion & 0xff); - case ConfigMem::KernelVersionMajor: return u8(kernelVersion >> 8); - case ConfigMem::LedState3D: return 1; // Report the 3D LED as always off (non-zero) for now - case ConfigMem::NetworkState: return 2; // Report that we've got an internet connection - case ConfigMem::HeadphonesConnectedMaybe: return 0; - case ConfigMem::Unknown1086: return 1; // It's unknown what this is but some games want it to be 1 - - case ConfigMem::FirmUnknown: return firm.unk; - case ConfigMem::FirmRevision: return firm.revision; - case ConfigMem::FirmVersionMinor: return firm.minor; - case ConfigMem::FirmVersionMajor: return firm.major; - case ConfigMem::WifiLevel: return 0; // No wifi :( - - case ConfigMem::WifiMac: - case ConfigMem::WifiMac + 1: - case ConfigMem::WifiMac + 2: - case ConfigMem::WifiMac + 3: - case ConfigMem::WifiMac + 4: - case ConfigMem::WifiMac + 5: return MACAddress[vaddr - ConfigMem::WifiMac]; - - default: Helpers::panic("Unimplemented 8-bit read, addr: %08X", vaddr); - } - } -} - -u16 Memory::read16(u32 vaddr) { - const u32 page = vaddr >> pageShift; - const u32 offset = vaddr & pageMask; - - uintptr_t pointer = readTable[page]; - if (pointer != 0) [[likely]] { - return *(u16*)(pointer + offset); - } else { - switch (vaddr) { - case ConfigMem::WifiMac + 4: return (MACAddress[5] << 8) | MACAddress[4]; // Wifi MAC: Last 2 bytes of MAC Address - default: Helpers::panic("Unimplemented 16-bit read, addr: %08X", vaddr); - } - } -} - -u32 Memory::read32(u32 vaddr) { - const u32 page = vaddr >> pageShift; - const u32 offset = vaddr & pageMask; - - uintptr_t pointer = readTable[page]; - if (pointer != 0) [[likely]] { - return *(u32*)(pointer + offset); - } else { - switch (vaddr) { - case 0x1FF80000: return u32(kernelVersion) << 16; - case ConfigMem::Datetime0: return u32(timeSince3DSEpoch()); // ms elapsed since Jan 1 1900, bottom 32 bits - case ConfigMem::Datetime0 + 4: - return u32(timeSince3DSEpoch() >> 32); // top 32 bits - // Ticks since time was last updated. For now we return the current tick count - case ConfigMem::Datetime0 + 8: return u32(cpuTicks); - case ConfigMem::Datetime0 + 12: return u32(cpuTicks >> 32); - case ConfigMem::Datetime0 + 16: return 0xFFB0FF0; // Unknown, set by PTM - case ConfigMem::Datetime0 + 20: - case ConfigMem::Datetime0 + 24: - case ConfigMem::Datetime0 + 28: return 0; // Set to 0 by PTM - - case ConfigMem::AppMemAlloc: return appResourceLimits.maxCommit; - case ConfigMem::SyscoreVer: return 2; - case 0x1FF81000: return 0; // TODO: Figure out what this config mem address does - // Wifi MAC: First 4 bytes of MAC Address - case ConfigMem::WifiMac: - return (u32(MACAddress[3]) << 24) | (u32(MACAddress[2]) << 16) | (u32(MACAddress[1]) << 8) | - MACAddress[0]; - - // 3D slider. Float in range 0.0 = off, 1.0 = max. - case ConfigMem::SliderState3D: return Helpers::bit_cast(0.0f); - case ConfigMem::FirmUnknown: - return u32(read8(vaddr)) | (u32(read8(vaddr + 1)) << 8) | (u32(read8(vaddr + 2)) << 16) | (u32(read8(vaddr + 3)) << 24); - - default: - if (vaddr >= VirtualAddrs::VramStart && vaddr < VirtualAddrs::VramStart + VirtualAddrs::VramSize) { - static int shutUpCounter = 0; - if (shutUpCounter < 5) { // Stop spamming about VRAM reads after the first 5 - shutUpCounter++; - Helpers::warn("VRAM read!\n"); - } - - // TODO: Properly handle framebuffer readbacks and the like - return *(u32*)&vram[vaddr - VirtualAddrs::VramStart]; - } - - Helpers::panic("Unimplemented 32-bit read, addr: %08X", vaddr); - break; - } - } -} - -u64 Memory::read64(u32 vaddr) { - u64 bottom = u64(read32(vaddr)); - u64 top = u64(read32(vaddr + 4)); - return (top << 32) | bottom; -} - -void Memory::write8(u32 vaddr, u8 value) { - const u32 page = vaddr >> pageShift; - const u32 offset = vaddr & pageMask; - - uintptr_t pointer = writeTable[page]; - if (pointer != 0) [[likely]] { - *(u8*)(pointer + offset) = value; - } else { - // VRAM write - if (vaddr >= VirtualAddrs::VramStart && vaddr < VirtualAddrs::VramStart + VirtualAddrs::VramSize) { - // TODO: Invalidate renderer caches here - vram[vaddr - VirtualAddrs::VramStart] = value; - } - - else { - Helpers::panic("Unimplemented 8-bit write, addr: %08X, val: %02X", vaddr, value); - } - } -} - -void Memory::write16(u32 vaddr, u16 value) { - const u32 page = vaddr >> pageShift; - const u32 offset = vaddr & pageMask; - - uintptr_t pointer = writeTable[page]; - if (pointer != 0) [[likely]] { - *(u16*)(pointer + offset) = value; - } else { - Helpers::panic("Unimplemented 16-bit write, addr: %08X, val: %08X", vaddr, value); - } -} - -void Memory::write32(u32 vaddr, u32 value) { - const u32 page = vaddr >> pageShift; - const u32 offset = vaddr & pageMask; - - uintptr_t pointer = writeTable[page]; - if (pointer != 0) [[likely]] { - *(u32*)(pointer + offset) = value; - } else { - Helpers::panic("Unimplemented 32-bit write, addr: %08X, val: %08X", vaddr, value); - } -} - -void Memory::write64(u32 vaddr, u64 value) { - write32(vaddr, u32(value)); - write32(vaddr + 4, u32(value >> 32)); -} - -void* Memory::getReadPointer(u32 address) { - const u32 page = address >> pageShift; - const u32 offset = address & pageMask; - - uintptr_t pointer = readTable[page]; - if (pointer == 0) return nullptr; - return (void*)(pointer + offset); -} - -void* Memory::getWritePointer(u32 address) { - const u32 page = address >> pageShift; - const u32 offset = address & pageMask; - - uintptr_t pointer = writeTable[page]; - if (pointer == 0) return nullptr; - return (void*)(pointer + offset); -} - -// Thank you Citra devs -std::string Memory::readString(u32 address, u32 maxSize) { - std::string string; - string.reserve(maxSize); - - for (std::size_t i = 0; i < maxSize; ++i) { - char c = read8(address++); - if (c == '\0') { - break; - } - - string.push_back(c); - } - string.shrink_to_fit(); - - return string; -} - -// Return a pointer to the linear heap vaddr based on the kernel ver, because it needed to be moved -// thanks to the New 3DS having more FCRAM -u32 Memory::getLinearHeapVaddr() { return (kernelVersion < 0x22C) ? VirtualAddrs::LinearHeapStartOld : VirtualAddrs::LinearHeapStartNew; } - -std::optional Memory::allocateMemory(u32 vaddr, u32 paddr, u32 size, bool linear, bool r, bool w, bool x, bool adjustAddrs, bool isMap) { - // Kernel-allocated memory & size must always be aligned to a page boundary - // Additionally assert we don't OoM and that we don't try to allocate physical FCRAM past what's available to userland - // If we're mapping there's no fear of OoM, because we're not really allocating memory, just binding vaddrs to specific paddrs - assert(isAligned(vaddr) && isAligned(paddr) && isAligned(size)); - assert(size <= FCRAM_APPLICATION_SIZE || isMap); - assert(usedUserMemory + size <= FCRAM_APPLICATION_SIZE || isMap); - assert(paddr + size <= FCRAM_APPLICATION_SIZE || isMap); - - // Amount of available user FCRAM pages and FCRAM pages to allocate respectively - const u32 availablePageCount = (FCRAM_APPLICATION_SIZE - usedUserMemory) / pageSize; - const u32 neededPageCount = size / pageSize; - - assert(availablePageCount >= neededPageCount || isMap); - - // If the paddr is 0, that means we need to select our own - // TODO: Fix. This method always tries to allocate blocks linearly. - // However, if the allocation is non-linear, the panic will trigger when it shouldn't. - // Non-linear allocation needs special handling - if (paddr == 0 && adjustAddrs) { - std::optional newPaddr = findPaddr(size); - if (!newPaddr.has_value()) { - Helpers::panic("Failed to find paddr"); - } - - paddr = newPaddr.value(); - assert(paddr + size <= FCRAM_APPLICATION_SIZE || isMap); - } - - // If the vaddr is 0 that means we need to select our own - // Depending on whether our mapping should be linear or not we allocate from one of the 2 typical heap spaces - // We don't plan on implementing freeing any time soon, so we can pick added userUserMemory to the vaddr base to - // Get the full vaddr. - // TODO: Fix this - if (vaddr == 0 && adjustAddrs) { - // Linear memory needs to be allocated in a way where you can easily get the paddr by subtracting the linear heap base - // In order to be able to easily send data to hardware like the GPU - if (linear) { - vaddr = getLinearHeapVaddr() + paddr; - } else { - vaddr = usedUserMemory + VirtualAddrs::NormalHeapStart; - } - } - - if (!isMap) { - usedUserMemory += size; - } - - // Do linear mapping - u32 virtualPage = vaddr >> pageShift; - u32 physPage = paddr >> pageShift; // TODO: Special handle when non-linear mapping is necessary - for (u32 i = 0; i < neededPageCount; i++) { - if (r) { - readTable[virtualPage] = uintptr_t(&fcram[physPage * pageSize]); - } - if (w) { - writeTable[virtualPage] = uintptr_t(&fcram[physPage * pageSize]); - } - - // Mark FCRAM page as allocated and go on - usedFCRAMPages[physPage] = true; - virtualPage++; - physPage++; - } - - // Back up the info for this allocation in our memoryInfo vector - u32 perms = (r ? PERMISSION_R : 0) | (w ? PERMISSION_W : 0) | (x ? PERMISSION_X : 0); - memoryInfo.push_back(std::move(MemoryInfo(vaddr, size, perms, KernelMemoryTypes::Reserved))); - - return vaddr; -} - -// Find a paddr which we can use for allocating "size" bytes -std::optional Memory::findPaddr(u32 size) { - assert(isAligned(size)); - const u32 neededPages = size / pageSize; - - // The FCRAM page we're testing to see if it's appropriate to use - u32 candidatePage = 0; - // The number of linear available pages we could find starting from this candidate page. - // If this ends up >= than neededPages then the paddr is good (ie we can use the candidate page as a base address) - u32 counter = 0; - - for (u32 i = 0; i < FCRAM_APPLICATION_PAGE_COUNT; i++) { - if (usedFCRAMPages[i]) { // Page is occupied already, go to new candidate - candidatePage = i + 1; - counter = 0; - } else { // The paddr we're testing has 1 more free page - counter++; - // Check if there's enough free memory to use this page - // We use == instead of >= because some software does 0-byte allocations - if (counter >= neededPages) { - return candidatePage * pageSize; - } - } - } - - // Couldn't find any page :( - return std::nullopt; -} - -u32 Memory::allocateSysMemory(u32 size) { - // Should never be triggered, only here as a sanity check - if (!isAligned(size)) { - Helpers::panic("Memory::allocateSysMemory: Size is not page aligned (val = %08X)", size); - } - - // We use a pretty dumb allocator for OS memory since this is not really accessible to the app and is only used internally - // It works by just allocating memory linearly, starting from index 0 of OS memory and going up - // This should also be unreachable in practice and exists as a sanity check - if (size > remainingSysFCRAM()) { - Helpers::panic("Memory::allocateSysMemory: Overflowed OS FCRAM"); - } - - const u32 pageCount = size / pageSize; // Number of pages that will be used up - const u32 startIndex = sysFCRAMIndex() + usedSystemMemory; // Starting FCRAM index - const u32 startingPage = startIndex / pageSize; - - for (u32 i = 0; i < pageCount; i++) { - if (usedFCRAMPages[startingPage + i]) // Also a theoretically unreachable panic for safety - Helpers::panic("Memory::reserveMemory: Trying to reserve already reserved memory"); - usedFCRAMPages[startingPage + i] = true; - } - - usedSystemMemory += size; - return startIndex; -} - -// The way I understand how the kernel's QueryMemory is supposed to work is that you give it a vaddr -// And the kernel looks up the memory allocations it's performed, finds which one it belongs in and returns its info? -// TODO: Verify this -MemoryInfo Memory::queryMemory(u32 vaddr) { - // Check each allocation - for (auto& alloc : memoryInfo) { - // Check if the memory address belongs in this allocation and return the info if so - if (vaddr >= alloc.baseAddr && vaddr < alloc.end()) { - return alloc; - } - } - - // Otherwise, if this vaddr was never allocated - // TODO: I think this is meant to return how much memory starting here is free as the size? - return MemoryInfo(vaddr, pageSize, 0, KernelMemoryTypes::Free); -} - -u8* Memory::mapSharedMemory(Handle handle, u32 vaddr, u32 myPerms, u32 otherPerms) { - for (auto& e : sharedMemBlocks) { - if (e.handle == handle) { - // Virtual Console titles trigger this. TODO: Investigate how it should work - if (e.mapped) Helpers::warn("Allocated shared memory block twice. Is this allowed?"); - - const u32 paddr = e.paddr; - const u32 size = e.size; - - if (myPerms == 0x10000000) { - myPerms = 3; - Helpers::panic("Memory::mapSharedMemory with DONTCARE perms"); - } - - bool r = myPerms & 0b001; - bool w = myPerms & 0b010; - bool x = myPerms & 0b100; - - const auto result = allocateMemory(vaddr, paddr, size, true, r, w, x, false, true); - e.mapped = true; - if (!result.has_value()) { - Helpers::panic("Memory::mapSharedMemory: Failed to map shared memory block"); - return nullptr; - } - - return &fcram[paddr]; - } - } - - // This should be unreachable but better safe than sorry - Helpers::panic("Memory::mapSharedMemory: Unknown shared memory handle %08X", handle); - return nullptr; -} - -void Memory::mirrorMapping(u32 destAddress, u32 sourceAddress, u32 size) { - // Should theoretically be unreachable, only here for safety purposes - assert(isAligned(destAddress) && isAligned(sourceAddress) && isAligned(size)); - - const u32 pageCount = size / pageSize; // How many pages we need to mirror - for (u32 i = 0; i < pageCount; i++) { - // Redo the shift here to "properly" handle wrapping around the address space instead of reading OoB - const u32 sourcePage = sourceAddress / pageSize; - const u32 destPage = destAddress / pageSize; - - readTable[destPage] = readTable[sourcePage]; - writeTable[destPage] = writeTable[sourcePage]; - - sourceAddress += pageSize; - destAddress += pageSize; - } -} - -// Get the number of ms since Jan 1 1900 -u64 Memory::timeSince3DSEpoch() { - using namespace std::chrono; - - std::time_t rawTime = std::time(nullptr); // Get current UTC time - auto localTime = std::localtime(&rawTime); // Convert to local time - - bool daylightSavings = localTime->tm_isdst > 0; // Get if time includes DST - localTime = std::gmtime(&rawTime); - - // Use gmtime + mktime to calculate difference between local time and UTC - auto timezoneDifference = rawTime - std::mktime(localTime); - if (daylightSavings) { - timezoneDifference += 60ull * 60ull; // Add 1 hour (60 seconds * 60 minutes) - } - - // seconds between Jan 1 1900 and Jan 1 1970 - constexpr u64 offset = 2208988800ull; - milliseconds ms = duration_cast(seconds(rawTime + timezoneDifference + offset)); - return ms.count(); -} - -Regions Memory::getConsoleRegion() { - // TODO: Let the user force the console region as they want - // For now we pick one based on the ROM header - return region; -} - -void Memory::copySharedFont(u8* pointer) { - auto fonts = cmrc::ConsoleFonts::get_filesystem(); - auto font = fonts.open("CitraSharedFontUSRelocated.bin"); - std::memcpy(pointer, font.begin(), font.size()); -} - -std::optional Memory::getProgramID() { - auto cxi = getCXI(); - - if (cxi) { - return cxi->programID; - } - - return std::nullopt; -} \ No newline at end of file diff --git a/src/core/renderer_gl/etc1.cpp b/src/core/renderer_gl/etc1.cpp deleted file mode 100644 index 8aefd622..00000000 --- a/src/core/renderer_gl/etc1.cpp +++ /dev/null @@ -1,120 +0,0 @@ -#include -#include "colour.hpp" -#include "renderer_gl/renderer_gl.hpp" -#include "renderer_gl/textures.hpp" - -using namespace Helpers; - -static constexpr u32 signExtend3To32(u32 val) { - return (u32)(s32(val) << 29 >> 29); -} - -u32 Texture::getTexelETC(bool hasAlpha, u32 u, u32 v, u32 width, std::span data) { - // Pixel offset of the 8x8 tile based on u, v and the width of the texture - u32 offs = ((u & ~7) * 8) + ((v & ~7) * width); - if (!hasAlpha) - offs >>= 1; - - // In-tile offsets for u/v - u &= 7; - v &= 7; - - // ETC1(A4) also subdivide the 8x8 tile to 4 4x4 tiles - // Each tile is 8 bytes for ETC1, but since ETC1A4 has 4 alpha bits per pixel, that becomes 16 bytes - const u32 subTileSize = hasAlpha ? 16 : 8; - const u32 subTileIndex = (u / 4) + 2 * (v / 4); // Which of the 4 subtiles is this texel in? - - // In-subtile offsets for u/v - u &= 3; - v &= 3; - offs += subTileSize * subTileIndex; - - u32 alpha; - const u64* ptr = reinterpret_cast(data.data() + offs); // Cast to u64* - - if (hasAlpha) { - // First 64 bits of the 4x4 subtile are alpha data - const u64 alphaData = *ptr++; - alpha = Colour::convert4To8Bit((alphaData >> (4 * (u * 4 + v))) & 0xf); - } - else { - alpha = 0xff; // ETC1 without alpha uses ff for every pixel - } - - // Next 64 bits of the subtile are colour data - u64 colourData = *ptr; - return decodeETC(alpha, u, v, colourData); -} - -u32 Texture::decodeETC(u32 alpha, u32 u, u32 v, u64 colourData) { - static constexpr u32 modifiers[8][2] = { - { 2, 8 }, - { 5, 17 }, - { 9, 29 }, - { 13, 42 }, - { 18, 60 }, - { 24, 80 }, - { 33, 106 }, - { 47, 183 }, - }; - - // Parse colour data for 4x4 block - const u32 subindices = getBits<0, 16, u32>(colourData); - const u32 negationFlags = getBits<16, 16, u32>(colourData); - const bool flip = getBit<32>(colourData); - const bool diffMode = getBit<33>(colourData); - - // Note: index1 is indeed stored on the higher bits, with index2 in the lower bits - const u32 tableIndex1 = getBits<37, 3, u32>(colourData); - const u32 tableIndex2 = getBits<34, 3, u32>(colourData); - const u32 texelIndex = u * 4 + v; // Index of the texel in the block - - if (flip) - std::swap(u, v); - - s32 r, g, b; - if (diffMode) { - r = getBits<59, 5, s32>(colourData); - g = getBits<51, 5, s32>(colourData); - b = getBits<43, 5, s32>(colourData); - - if (u >= 2) { - r += signExtend3To32(getBits<56, 3, u32>(colourData)); - g += signExtend3To32(getBits<48, 3, u32>(colourData)); - b += signExtend3To32(getBits<40, 3, u32>(colourData)); - } - - // Expand from 5 to 8 bits per channel - r = Colour::convert5To8Bit(r); - g = Colour::convert5To8Bit(g); - b = Colour::convert5To8Bit(b); - } else { - if (u < 2) { - r = getBits<60, 4, s32>(colourData); - g = getBits<52, 4, s32>(colourData); - b = getBits<44, 4, s32>(colourData); - } else { - r = getBits<56, 4, s32>(colourData); - g = getBits<48, 4, s32>(colourData); - b = getBits<40, 4, s32>(colourData); - } - - // Expand from 4 to 8 bits per channel - r = Colour::convert4To8Bit(r); - g = Colour::convert4To8Bit(g); - b = Colour::convert4To8Bit(b); - } - - const u32 index = (u < 2) ? tableIndex1 : tableIndex2; - s32 modifier = modifiers[index][(subindices >> texelIndex) & 1]; - - if (((negationFlags >> texelIndex) & 1) != 0) { - modifier = -modifier; - } - - r = std::clamp(r + modifier, 0, 255); - g = std::clamp(g + modifier, 0, 255); - b = std::clamp(b + modifier, 0, 255); - - return (alpha << 24) | (u32(b) << 16) | (u32(g) << 8) | u32(r); -} diff --git a/src/core/renderer_gl/gl_state.cpp b/src/core/renderer_gl/gl_state.cpp deleted file mode 100644 index d2eec0d5..00000000 --- a/src/core/renderer_gl/gl_state.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include "renderer_gl/gl_state.hpp" - -void GLStateManager::resetBlend() { - blendEnabled = false; - logicOpEnabled = false; - logicOp = GL_COPY; - - OpenGL::disableBlend(); - OpenGL::disableLogicOp(); - OpenGL::setLogicOp(GL_COPY); -} - -void GLStateManager::resetClearing() { - clearRed = 0.f; - clearBlue = 0.f; - clearGreen = 0.f; - clearAlpha = 1.f; - - OpenGL::setClearColor(clearRed, clearBlue, clearGreen, clearAlpha); -} - -void GLStateManager::resetClipping() { - // Disable all (supported) clip planes - enabledClipPlanes = 0; - for (int i = 0; i < clipPlaneCount; i++) { - OpenGL::disableClipPlane(i); - } -} - -void GLStateManager::resetColourMask() { - redMask = greenMask = blueMask = alphaMask = true; - OpenGL::setColourMask(redMask, greenMask, blueMask, alphaMask); -} - -void GLStateManager::resetDepth() { - depthEnabled = false; - depthMask = true; - depthFunc = GL_LESS; - - OpenGL::disableDepth(); - OpenGL::setDepthMask(true); - OpenGL::setDepthFunc(OpenGL::DepthFunc::Less); -} - -void GLStateManager::resetScissor() { - scissorEnabled = false; - OpenGL::disableScissor(); - OpenGL::setScissor(0, 0, 0, 0); -} - -void GLStateManager::resetStencil() { - stencilEnabled = false; - stencilMask = 0xff; - - OpenGL::disableStencil(); - OpenGL::setStencilMask(0xff); -} - -void GLStateManager::resetVAO() { - boundVAO = 0; - glBindVertexArray(0); -} - -void GLStateManager::resetVBO() { - boundVBO = 0; - glBindBuffer(GL_ARRAY_BUFFER, 0); -} - -void GLStateManager::resetProgram() { - currentProgram = 0; - glUseProgram(0); -} - -void GLStateManager::reset() { - resetBlend(); - resetClearing(); - resetClipping(); - resetColourMask(); - resetDepth(); - - resetVAO(); - resetVBO(); - resetProgram(); - resetScissor(); - resetStencil(); -} \ No newline at end of file diff --git a/src/core/renderer_gl/renderer_gl.cpp b/src/core/renderer_gl/renderer_gl.cpp deleted file mode 100644 index a11a6ffa..00000000 --- a/src/core/renderer_gl/renderer_gl.cpp +++ /dev/null @@ -1,815 +0,0 @@ -#include "renderer_gl/renderer_gl.hpp" - -#include - -#include - -#include "PICA/float_types.hpp" -#include "PICA/gpu.hpp" -#include "PICA/regs.hpp" -#include "math_util.hpp" - -CMRC_DECLARE(RendererGL); - -using namespace Floats; -using namespace Helpers; -using namespace PICA; - -RendererGL::~RendererGL() {} - -void RendererGL::reset() { - depthBufferCache.reset(); - colourBufferCache.reset(); - textureCache.reset(); - - // Init the colour/depth buffer settings to some random defaults on reset - colourBufferLoc = 0; - colourBufferFormat = PICA::ColorFmt::RGBA8; - - depthBufferLoc = 0; - depthBufferFormat = PICA::DepthFmt::Depth16; - - if (triangleProgram.exists()) { - const auto oldProgram = OpenGL::getProgram(); - - gl.useProgram(triangleProgram); - - oldDepthScale = -1.0; // Default depth scale to -1.0, which is what games typically use - oldDepthOffset = 0.0; // Default depth offset to 0 - oldDepthmapEnable = false; // Enable w buffering - - glUniform1f(depthScaleLoc, oldDepthScale); - glUniform1f(depthOffsetLoc, oldDepthOffset); - glUniform1i(depthmapEnableLoc, oldDepthmapEnable); - - gl.useProgram(oldProgram); // Switch to old GL program - } -} - -void RendererGL::initGraphicsContextInternal() { - gl.reset(); - - auto gl_resources = cmrc::RendererGL::get_filesystem(); - - auto vertexShaderSource = gl_resources.open("opengl_vertex_shader.vert"); - auto fragmentShaderSource = gl_resources.open("opengl_fragment_shader.frag"); - - OpenGL::Shader vert({vertexShaderSource.begin(), vertexShaderSource.size()}, OpenGL::Vertex); - OpenGL::Shader frag({fragmentShaderSource.begin(), fragmentShaderSource.size()}, OpenGL::Fragment); - triangleProgram.create({vert, frag}); - gl.useProgram(triangleProgram); - - textureEnvSourceLoc = OpenGL::uniformLocation(triangleProgram, "u_textureEnvSource"); - textureEnvOperandLoc = OpenGL::uniformLocation(triangleProgram, "u_textureEnvOperand"); - textureEnvCombinerLoc = OpenGL::uniformLocation(triangleProgram, "u_textureEnvCombiner"); - textureEnvColorLoc = OpenGL::uniformLocation(triangleProgram, "u_textureEnvColor"); - textureEnvScaleLoc = OpenGL::uniformLocation(triangleProgram, "u_textureEnvScale"); - - depthScaleLoc = OpenGL::uniformLocation(triangleProgram, "u_depthScale"); - depthOffsetLoc = OpenGL::uniformLocation(triangleProgram, "u_depthOffset"); - depthmapEnableLoc = OpenGL::uniformLocation(triangleProgram, "u_depthmapEnable"); - picaRegLoc = OpenGL::uniformLocation(triangleProgram, "u_picaRegs"); - - // Init sampler objects. Texture 0 goes in texture unit 0, texture 1 in TU 1, texture 2 in TU 2, and the light maps go in TU 3 - glUniform1i(OpenGL::uniformLocation(triangleProgram, "u_tex0"), 0); - glUniform1i(OpenGL::uniformLocation(triangleProgram, "u_tex1"), 1); - glUniform1i(OpenGL::uniformLocation(triangleProgram, "u_tex2"), 2); - glUniform1i(OpenGL::uniformLocation(triangleProgram, "u_tex_lighting_lut"), 3); - - auto displayVertexShaderSource = gl_resources.open("opengl_display.vert"); - auto displayFragmentShaderSource = gl_resources.open("opengl_display.frag"); - - OpenGL::Shader vertDisplay({displayVertexShaderSource.begin(), displayVertexShaderSource.size()}, OpenGL::Vertex); - OpenGL::Shader fragDisplay({displayFragmentShaderSource.begin(), displayFragmentShaderSource.size()}, OpenGL::Fragment); - displayProgram.create({vertDisplay, fragDisplay}); - - gl.useProgram(displayProgram); - glUniform1i(OpenGL::uniformLocation(displayProgram, "u_texture"), 0); // Init sampler object - - vbo.createFixedSize(sizeof(Vertex) * vertexBufferSize, GL_STREAM_DRAW); - gl.bindVBO(vbo); - vao.create(); - gl.bindVAO(vao); - - // Position (x, y, z, w) attributes - vao.setAttributeFloat(0, 4, sizeof(Vertex), offsetof(Vertex, s.positions)); - vao.enableAttribute(0); - // Quaternion attribute - vao.setAttributeFloat(1, 4, sizeof(Vertex), offsetof(Vertex, s.quaternion)); - vao.enableAttribute(1); - // Colour attribute - vao.setAttributeFloat(2, 4, sizeof(Vertex), offsetof(Vertex, s.colour)); - vao.enableAttribute(2); - // UV 0 attribute - vao.setAttributeFloat(3, 2, sizeof(Vertex), offsetof(Vertex, s.texcoord0)); - vao.enableAttribute(3); - // UV 1 attribute - vao.setAttributeFloat(4, 2, sizeof(Vertex), offsetof(Vertex, s.texcoord1)); - vao.enableAttribute(4); - // UV 0 W-component attribute - vao.setAttributeFloat(5, 1, sizeof(Vertex), offsetof(Vertex, s.texcoord0_w)); - vao.enableAttribute(5); - // View - vao.setAttributeFloat(6, 3, sizeof(Vertex), offsetof(Vertex, s.view)); - vao.enableAttribute(6); - // UV 2 attribute - vao.setAttributeFloat(7, 2, sizeof(Vertex), offsetof(Vertex, s.texcoord2)); - vao.enableAttribute(7); - - dummyVBO.create(); - dummyVAO.create(); - gl.disableScissor(); - - // Create texture and framebuffer for the 3DS screen - const u32 screenTextureWidth = 400; // Top screen is 400 pixels wide, bottom is 320 - const u32 screenTextureHeight = 2 * 240; // Both screens are 240 pixels tall - - glGenTextures(1, &lightLUTTextureArray); - - auto prevTexture = OpenGL::getTex2D(); - - // Create a plain black texture for when a game reads an invalid texture. It is common for games to configure the PICA to read texture info from NULL. - // Some games that do this are Pokemon X, Cars 2, Tomodachi Life, and more. We bind the texture to an FBO, clear it, and free the FBO - blankTexture.create(8, 8, GL_RGBA8); - blankTexture.bind(); - blankTexture.setMinFilter(OpenGL::Linear); - blankTexture.setMagFilter(OpenGL::Linear); - - OpenGL::Framebuffer dummyFBO; - dummyFBO.createWithDrawTexture(blankTexture); // Create FBO and bind our texture to it - dummyFBO.bind(OpenGL::DrawFramebuffer); - - // Clear the texture and then delete FBO - OpenGL::setViewport(8, 8); - gl.setClearColour(0.0, 0.0, 0.0, 0.0); - OpenGL::clearColor(); - dummyFBO.free(); - - screenTexture.create(screenTextureWidth, screenTextureHeight, GL_RGBA8); - screenTexture.bind(); - screenTexture.setMinFilter(OpenGL::Linear); - screenTexture.setMagFilter(OpenGL::Linear); - glBindTexture(GL_TEXTURE_2D, prevTexture); - - screenFramebuffer.createWithDrawTexture(screenTexture); - screenFramebuffer.bind(OpenGL::DrawAndReadFramebuffer); - - if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) { - Helpers::panic("Incomplete framebuffer"); - } - - // TODO: This should not clear the framebuffer contents. It should load them from VRAM. - GLint oldViewport[4]; - glGetIntegerv(GL_VIEWPORT, oldViewport); - OpenGL::setViewport(screenTextureWidth, screenTextureHeight); - OpenGL::clearColor(); - OpenGL::setViewport(oldViewport[0], oldViewport[1], oldViewport[2], oldViewport[3]); - - reset(); -} - -// The OpenGL renderer doesn't need to do anything with the GL context (For Qt frontend) or the SDL window (For SDL frontend) -// So we just call initGraphicsContextInternal for both -void RendererGL::initGraphicsContext([[maybe_unused]] SDL_Window* window) { initGraphicsContextInternal(); } - -// Set up the OpenGL blending context to match the emulated PICA -void RendererGL::setupBlending() { - // Map of PICA blending equations to OpenGL blending equations. The unused blending equations are equivalent to equation 0 (add) - static constexpr std::array blendingEquations = { - GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX, GL_FUNC_ADD, GL_FUNC_ADD, GL_FUNC_ADD, - }; - - // Map of PICA blending funcs to OpenGL blending funcs. Func = 15 is undocumented and stubbed to GL_ONE for now - static constexpr std::array blendingFuncs = { - GL_ZERO, - GL_ONE, - GL_SRC_COLOR, - GL_ONE_MINUS_SRC_COLOR, - GL_DST_COLOR, - GL_ONE_MINUS_DST_COLOR, - GL_SRC_ALPHA, - GL_ONE_MINUS_SRC_ALPHA, - GL_DST_ALPHA, - GL_ONE_MINUS_DST_ALPHA, - GL_CONSTANT_COLOR, - GL_ONE_MINUS_CONSTANT_COLOR, - GL_CONSTANT_ALPHA, - GL_ONE_MINUS_CONSTANT_ALPHA, - GL_SRC_ALPHA_SATURATE, - GL_ONE, - }; - - static constexpr std::array logicOps = { - GL_CLEAR, GL_AND, GL_AND_REVERSE, GL_COPY, GL_SET, GL_COPY_INVERTED, GL_NOOP, GL_INVERT, - GL_NAND, GL_OR, GL_NOR, GL_XOR, GL_EQUIV, GL_AND_INVERTED, GL_OR_REVERSE, GL_OR_INVERTED, - }; - - // Shows if blending is enabled. If it is not enabled, then logic ops are enabled instead - const bool blendingEnabled = (regs[PICA::InternalRegs::ColourOperation] & (1 << 8)) != 0; - - if (!blendingEnabled) { // Logic ops are enabled - const u32 logicOp = getBits<0, 4>(regs[PICA::InternalRegs::LogicOp]); - gl.setLogicOp(logicOps[logicOp]); - - // If logic ops are enabled we don't need to disable blending because they override it - gl.enableLogicOp(); - } else { - gl.enableBlend(); - gl.disableLogicOp(); - - // Get blending equations - const u32 blendControl = regs[PICA::InternalRegs::BlendFunc]; - const u32 rgbEquation = blendControl & 0x7; - const u32 alphaEquation = getBits<8, 3>(blendControl); - - // Get blending functions - const u32 rgbSourceFunc = getBits<16, 4>(blendControl); - const u32 rgbDestFunc = getBits<20, 4>(blendControl); - const u32 alphaSourceFunc = getBits<24, 4>(blendControl); - const u32 alphaDestFunc = getBits<28, 4>(blendControl); - - const u32 constantColor = regs[PICA::InternalRegs::BlendColour]; - const u32 r = constantColor & 0xff; - const u32 g = getBits<8, 8>(constantColor); - const u32 b = getBits<16, 8>(constantColor); - const u32 a = getBits<24, 8>(constantColor); - OpenGL::setBlendColor(float(r) / 255.f, float(g) / 255.f, float(b) / 255.f, float(a) / 255.f); - - // Translate equations and funcs to their GL equivalents and set them - glBlendEquationSeparate(blendingEquations[rgbEquation], blendingEquations[alphaEquation]); - glBlendFuncSeparate(blendingFuncs[rgbSourceFunc], blendingFuncs[rgbDestFunc], blendingFuncs[alphaSourceFunc], blendingFuncs[alphaDestFunc]); - } -} - -void RendererGL::setupStencilTest(bool stencilEnable) { - if (!stencilEnable) { - gl.disableStencil(); - return; - } - - static constexpr std::array stencilFuncs = { - GL_NEVER, - GL_ALWAYS, - GL_EQUAL, - GL_NOTEQUAL, - GL_LESS, - GL_LEQUAL, - GL_GREATER, - GL_GEQUAL - }; - gl.enableStencil(); - - const u32 stencilConfig = regs[PICA::InternalRegs::StencilTest]; - const u32 stencilFunc = getBits<4, 3>(stencilConfig); - const s32 reference = s8(getBits<16, 8>(stencilConfig)); // Signed reference value - const u32 stencilRefMask = getBits<24, 8>(stencilConfig); - - const bool stencilWrite = regs[PICA::InternalRegs::DepthBufferWrite]; - const u32 stencilBufferMask = stencilWrite ? getBits<8, 8>(stencilConfig) : 0; - - // TODO: Throw stencilFunc/stencilOp to the GL state manager - glStencilFunc(stencilFuncs[stencilFunc], reference, stencilRefMask); - gl.setStencilMask(stencilBufferMask); - - static constexpr std::array stencilOps = { - GL_KEEP, - GL_ZERO, - GL_REPLACE, - GL_INCR, - GL_DECR, - GL_INVERT, - GL_INCR_WRAP, - GL_DECR_WRAP - }; - const u32 stencilOpConfig = regs[PICA::InternalRegs::StencilOp]; - const u32 stencilFailOp = getBits<0, 3>(stencilOpConfig); - const u32 depthFailOp = getBits<4, 3>(stencilOpConfig); - const u32 passOp = getBits<8, 3>(stencilOpConfig); - - glStencilOp(stencilOps[stencilFailOp], stencilOps[depthFailOp], stencilOps[passOp]); -} - - -void RendererGL::setupTextureEnvState() { - // TODO: Only update uniforms when the TEV config changed. Use an UBO potentially. - - static constexpr std::array ioBases = { - PICA::InternalRegs::TexEnv0Source, PICA::InternalRegs::TexEnv1Source, PICA::InternalRegs::TexEnv2Source, - PICA::InternalRegs::TexEnv3Source, PICA::InternalRegs::TexEnv4Source, PICA::InternalRegs::TexEnv5Source, - }; - - u32 textureEnvSourceRegs[6]; - u32 textureEnvOperandRegs[6]; - u32 textureEnvCombinerRegs[6]; - u32 textureEnvColourRegs[6]; - u32 textureEnvScaleRegs[6]; - - for (int i = 0; i < 6; i++) { - const u32 ioBase = ioBases[i]; - - textureEnvSourceRegs[i] = regs[ioBase]; - textureEnvOperandRegs[i] = regs[ioBase + 1]; - textureEnvCombinerRegs[i] = regs[ioBase + 2]; - textureEnvColourRegs[i] = regs[ioBase + 3]; - textureEnvScaleRegs[i] = regs[ioBase + 4]; - } - - glUniform1uiv(textureEnvSourceLoc, 6, textureEnvSourceRegs); - glUniform1uiv(textureEnvOperandLoc, 6, textureEnvOperandRegs); - glUniform1uiv(textureEnvCombinerLoc, 6, textureEnvCombinerRegs); - glUniform1uiv(textureEnvColorLoc, 6, textureEnvColourRegs); - glUniform1uiv(textureEnvScaleLoc, 6, textureEnvScaleRegs); -} - -void RendererGL::bindTexturesToSlots() { - static constexpr std::array ioBases = { - PICA::InternalRegs::Tex0BorderColor, - PICA::InternalRegs::Tex1BorderColor, - PICA::InternalRegs::Tex2BorderColor, - }; - - for (int i = 0; i < 3; i++) { - if ((regs[PICA::InternalRegs::TexUnitCfg] & (1 << i)) == 0) { - continue; - } - - const size_t ioBase = ioBases[i]; - - const u32 dim = regs[ioBase + 1]; - const u32 config = regs[ioBase + 2]; - const u32 height = dim & 0x7ff; - const u32 width = getBits<16, 11>(dim); - const u32 addr = (regs[ioBase + 4] & 0x0FFFFFFF) << 3; - u32 format = regs[ioBase + (i == 0 ? 13 : 5)] & 0xF; - - glActiveTexture(GL_TEXTURE0 + i); - - if (addr != 0) [[likely]] { - Texture targetTex(addr, static_cast(format), width, height, config); - OpenGL::Texture tex = getTexture(targetTex); - tex.bind(); - } else { - // Mapping a texture from NULL. PICA seems to read the last sampled colour, but for now we will display a black texture instead since it is far easier. - // Games that do this don't really care what it does, they just expect the PICA to not crash, since it doesn't have a PU/MMU and can do all sorts of - // Weird invalid memory accesses without crashing - blankTexture.bind(); - } - } - - glActiveTexture(GL_TEXTURE0 + 3); - glBindTexture(GL_TEXTURE_1D_ARRAY, lightLUTTextureArray); - glActiveTexture(GL_TEXTURE0); -} - -void RendererGL::updateLightingLUT() { - gpu.lightingLUTDirty = false; - std::array u16_lightinglut; - - for (int i = 0; i < gpu.lightingLUT.size(); i++) { - uint64_t value = gpu.lightingLUT[i] & ((1 << 12) - 1); - u16_lightinglut[i] = value * 65535 / 4095; - } - - glActiveTexture(GL_TEXTURE0 + 3); - glBindTexture(GL_TEXTURE_1D_ARRAY, lightLUTTextureArray); - glTexImage2D(GL_TEXTURE_1D_ARRAY, 0, GL_R16, 256, Lights::LUT_Count, 0, GL_RED, GL_UNSIGNED_SHORT, u16_lightinglut.data()); - glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); - glTexParameteri(GL_TEXTURE_1D_ARRAY, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); - glActiveTexture(GL_TEXTURE0); -} - -void RendererGL::drawVertices(PICA::PrimType primType, std::span vertices) { - // The fourth type is meant to be "Geometry primitive". TODO: Find out what that is - static constexpr std::array primTypes = { - OpenGL::Triangle, - OpenGL::TriangleStrip, - OpenGL::TriangleFan, - OpenGL::Triangle, - }; - - const auto primitiveTopology = primTypes[static_cast(primType)]; - gl.disableScissor(); - gl.bindVBO(vbo); - gl.bindVAO(vao); - gl.useProgram(triangleProgram); - - gl.enableClipPlane(0); // Clipping plane 0 is always enabled - if (regs[PICA::InternalRegs::ClipEnable] & 1) { - gl.enableClipPlane(1); - } - - setupBlending(); - auto poop = getColourBuffer(colourBufferLoc, colourBufferFormat, fbSize[0], fbSize[1]); - poop->fbo.bind(OpenGL::DrawAndReadFramebuffer); - - const u32 depthControl = regs[PICA::InternalRegs::DepthAndColorMask]; - const bool depthWrite = regs[PICA::InternalRegs::DepthBufferWrite]; - const bool depthEnable = depthControl & 1; - const bool depthWriteEnable = getBit<12>(depthControl); - const int depthFunc = getBits<4, 3>(depthControl); - const int colourMask = getBits<8, 4>(depthControl); - gl.setColourMask(colourMask & 1, colourMask & 2, colourMask & 4, colourMask & 8); - - static constexpr std::array depthModes = {GL_NEVER, GL_ALWAYS, GL_EQUAL, GL_NOTEQUAL, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL}; - - const float depthScale = f24::fromRaw(regs[PICA::InternalRegs::DepthScale] & 0xffffff).toFloat32(); - const float depthOffset = f24::fromRaw(regs[PICA::InternalRegs::DepthOffset] & 0xffffff).toFloat32(); - const bool depthMapEnable = regs[PICA::InternalRegs::DepthmapEnable] & 1; - - // Update depth uniforms - if (oldDepthScale != depthScale) { - oldDepthScale = depthScale; - glUniform1f(depthScaleLoc, depthScale); - } - - if (oldDepthOffset != depthOffset) { - oldDepthOffset = depthOffset; - glUniform1f(depthOffsetLoc, depthOffset); - } - - if (oldDepthmapEnable != depthMapEnable) { - oldDepthmapEnable = depthMapEnable; - glUniform1i(depthmapEnableLoc, depthMapEnable); - } - - setupTextureEnvState(); - bindTexturesToSlots(); - - // Upload PICA Registers as a single uniform. The shader needs access to the rasterizer registers (for depth, starting from index 0x48) - // The texturing and the fragment lighting registers. Therefore we upload them all in one go to avoid multiple slow uniform updates - glUniform1uiv(picaRegLoc, 0x200 - 0x48, ®s[0x48]); - - if (gpu.lightingLUTDirty) { - updateLightingLUT(); - } - - const GLsizei viewportX = regs[PICA::InternalRegs::ViewportXY] & 0x3ff; - const GLsizei viewportY = (regs[PICA::InternalRegs::ViewportXY] >> 16) & 0x3ff; - const GLsizei viewportWidth = GLsizei(f24::fromRaw(regs[PICA::InternalRegs::ViewportWidth] & 0xffffff).toFloat32() * 2.0f); - const GLsizei viewportHeight = GLsizei(f24::fromRaw(regs[PICA::InternalRegs::ViewportHeight] & 0xffffff).toFloat32() * 2.0f); - const auto rect = poop->getSubRect(colourBufferLoc, fbSize[0], fbSize[1]); - OpenGL::setViewport(rect.left + viewportX, rect.bottom + viewportY, viewportWidth, viewportHeight); - - const u32 stencilConfig = regs[PICA::InternalRegs::StencilTest]; - const bool stencilEnable = getBit<0>(stencilConfig); - - // Note: The code below must execute after we've bound the colour buffer & its framebuffer - // Because it attaches a depth texture to the aforementioned colour buffer - if (depthEnable) { - gl.enableDepth(); - gl.setDepthMask(depthWriteEnable && depthWrite ? GL_TRUE : GL_FALSE); - gl.setDepthFunc(depthModes[depthFunc]); - bindDepthBuffer(); - } else { - if (depthWriteEnable) { - gl.enableDepth(); - gl.setDepthMask(GL_TRUE); - gl.setDepthFunc(GL_ALWAYS); - bindDepthBuffer(); - } else { - gl.disableDepth(); - - if (stencilEnable) { - bindDepthBuffer(); - } - } - } - - setupStencilTest(stencilEnable); - - vbo.bufferVertsSub(vertices); - OpenGL::draw(primitiveTopology, GLsizei(vertices.size())); -} - -void RendererGL::display() { - gl.disableScissor(); - gl.disableBlend(); - gl.disableDepth(); - gl.disableScissor(); - // This will work fine whether or not logic ops are enabled. We set logic op to copy instead of disabling to avoid state changes - gl.setLogicOp(GL_COPY); - gl.setColourMask(true, true, true, true); - gl.useProgram(displayProgram); - gl.bindVAO(dummyVAO); - - gl.disableClipPlane(0); - gl.disableClipPlane(1); - - screenFramebuffer.bind(OpenGL::DrawFramebuffer); - gl.setClearColour(0.f, 0.f, 0.f, 1.f); - OpenGL::clearColor(); - - using namespace PICA::ExternalRegs; - const u32 topActiveFb = externalRegs[Framebuffer0Select] & 1; - const u32 topScreenAddr = externalRegs[topActiveFb == 0 ? Framebuffer0AFirstAddr : Framebuffer0ASecondAddr]; - auto topScreen = colourBufferCache.findFromAddress(topScreenAddr); - - if (topScreen) { - topScreen->get().texture.bind(); - OpenGL::setViewport(0, 240, 400, 240); // Top screen viewport - OpenGL::draw(OpenGL::TriangleStrip, 4); // Actually draw our 3DS screen - } - - const u32 bottomActiveFb = externalRegs[Framebuffer1Select] & 1; - const u32 bottomScreenAddr = externalRegs[bottomActiveFb == 0 ? Framebuffer1AFirstAddr : Framebuffer1ASecondAddr]; - auto bottomScreen = colourBufferCache.findFromAddress(bottomScreenAddr); - - if (bottomScreen) { - bottomScreen->get().texture.bind(); - OpenGL::setViewport(40, 0, 320, 240); - OpenGL::draw(OpenGL::TriangleStrip, 4); - } - - if constexpr (!Helpers::isHydraCore()) { - glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); - screenFramebuffer.bind(OpenGL::ReadFramebuffer); - glBlitFramebuffer(0, 0, 400, 480, 0, 0, outputWindowWidth, outputWindowHeight, GL_COLOR_BUFFER_BIT, GL_LINEAR); - } -} - -void RendererGL::clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) { - log("GPU: Clear buffer\nStart: %08X End: %08X\nValue: %08X Control: %08X\n", startAddress, endAddress, value, control); - gl.disableScissor(); - - const auto color = colourBufferCache.findFromAddress(startAddress); - if (color) { - const float r = getBits<24, 8>(value) / 255.0f; - const float g = getBits<16, 8>(value) / 255.0f; - const float b = getBits<8, 8>(value) / 255.0f; - const float a = (value & 0xff) / 255.0f; - color->get().fbo.bind(OpenGL::DrawFramebuffer); - - gl.setColourMask(true, true, true, true); - gl.setClearColour(r, g, b, a); - OpenGL::clearColor(); - return; - } - - const auto depth = depthBufferCache.findFromAddress(startAddress); - if (depth) { - depth->get().fbo.bind(OpenGL::DrawFramebuffer); - - float depthVal; - const auto format = depth->get().format; - if (format == DepthFmt::Depth16) { - depthVal = (value & 0xffff) / 65535.0f; - } else { - depthVal = (value & 0xffffff) / 16777215.0f; - } - - gl.setDepthMask(true); - OpenGL::setClearDepth(depthVal); - - if (format == DepthFmt::Depth24Stencil8) { - const u8 stencil = (value >> 24); - gl.setStencilMask(0xff); - OpenGL::setClearStencil(stencil); - OpenGL::clearDepthAndStencil(); - } else { - OpenGL::clearDepth(); - } - - return; - } - - log("[RendererGL::ClearBuffer] No buffer found!\n"); -} - -OpenGL::Framebuffer RendererGL::getColourFBO() { - // We construct a colour buffer object and see if our cache has any matching colour buffers in it - // If not, we allocate a texture & FBO for our framebuffer and store it in the cache - ColourBuffer sampleBuffer(colourBufferLoc, colourBufferFormat, fbSize[0], fbSize[1]); - auto buffer = colourBufferCache.find(sampleBuffer); - - if (buffer.has_value()) { - return buffer.value().get().fbo; - } else { - return colourBufferCache.add(sampleBuffer).fbo; - } -} - -void RendererGL::bindDepthBuffer() { - // Similar logic as the getColourFBO function - DepthBuffer sampleBuffer(depthBufferLoc, depthBufferFormat, fbSize[0], fbSize[1]); - auto buffer = depthBufferCache.find(sampleBuffer); - GLuint tex; - - if (buffer.has_value()) { - tex = buffer.value().get().texture.m_handle; - } else { - tex = depthBufferCache.add(sampleBuffer).texture.m_handle; - } - - if (PICA::DepthFmt::Depth24Stencil8 != depthBufferFormat) { - Helpers::panicDev("TODO: Should we remove stencil attachment?"); - } - auto attachment = depthBufferFormat == PICA::DepthFmt::Depth24Stencil8 ? GL_DEPTH_STENCIL_ATTACHMENT : GL_DEPTH_ATTACHMENT; - glFramebufferTexture2D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_2D, tex, 0); -} - -OpenGL::Texture RendererGL::getTexture(Texture& tex) { - // Similar logic as the getColourFBO/bindDepthBuffer functions - auto buffer = textureCache.find(tex); - - if (buffer.has_value()) { - return buffer.value().get().texture; - } else { - const auto textureData = std::span{gpu.getPointerPhys(tex.location), tex.sizeInBytes()}; // Get pointer to the texture data in 3DS memory - Texture& newTex = textureCache.add(tex); - newTex.decodeTexture(textureData); - - return newTex.texture; - } -} - -// NOTE: The GPU format has RGB5551 and RGB655 swapped compared to internal regs format -PICA::ColorFmt ToColorFmt(u32 format) { - switch (format) { - case 2: return PICA::ColorFmt::RGB565; - case 3: return PICA::ColorFmt::RGBA5551; - default: return static_cast(format); - } -} - -void RendererGL::displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) { - const u32 inputWidth = inputSize & 0xffff; - const u32 inputHeight = inputSize >> 16; - const auto inputFormat = ToColorFmt(Helpers::getBits<8, 3>(flags)); - const auto outputFormat = ToColorFmt(Helpers::getBits<12, 3>(flags)); - const bool verticalFlip = flags & 1; - const PICA::Scaling scaling = static_cast(Helpers::getBits<24, 2>(flags)); - - u32 outputWidth = outputSize & 0xffff; - u32 outputHeight = outputSize >> 16; - - OpenGL::DebugScope scope("DisplayTransfer inputAddr 0x%08X outputAddr 0x%08X inputWidth %d outputWidth %d inputHeight %d outputHeight %d", - inputAddr, outputAddr, inputWidth, outputWidth, inputHeight, outputHeight); - - auto srcFramebuffer = getColourBuffer(inputAddr, inputFormat, inputWidth, outputHeight); - Math::Rect srcRect = srcFramebuffer->getSubRect(inputAddr, outputWidth, outputHeight); - - if (verticalFlip) { - std::swap(srcRect.bottom, srcRect.top); - } - - // Apply scaling for the destination rectangle. - if (scaling == PICA::Scaling::X || scaling == PICA::Scaling::XY) { - outputWidth >>= 1; - } - - if (scaling == PICA::Scaling::XY) { - outputHeight >>= 1; - } - - auto destFramebuffer = getColourBuffer(outputAddr, outputFormat, outputWidth, outputHeight); - Math::Rect destRect = destFramebuffer->getSubRect(outputAddr, outputWidth, outputHeight); - - if (inputWidth != outputWidth) { - // Helpers::warn("Strided display transfer is not handled correctly!\n"); - } - - // Blit the framebuffers - srcFramebuffer->fbo.bind(OpenGL::ReadFramebuffer); - destFramebuffer->fbo.bind(OpenGL::DrawFramebuffer); - gl.disableScissor(); - - glBlitFramebuffer( - srcRect.left, srcRect.bottom, srcRect.right, srcRect.top, destRect.left, destRect.bottom, destRect.right, destRect.top, GL_COLOR_BUFFER_BIT, - GL_LINEAR - ); -} - -void RendererGL::textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) { - // Texture copy size is aligned to 16 byte units - const u32 copySize = totalBytes & ~0xf; - if (copySize == 0) { - printf("TextureCopy total bytes less than 16!\n"); - return; - } - - // The width and gap are provided in 16-byte units. - const u32 inputWidth = (inputSize & 0xffff) << 4; - const u32 inputGap = (inputSize >> 16) << 4; - const u32 outputWidth = (outputSize & 0xffff) << 4; - const u32 outputGap = (outputSize >> 16) << 4; - - OpenGL::DebugScope scope("TextureCopy inputAddr 0x%08X outputAddr 0x%08X totalBytes %d inputWidth %d inputGap %d outputWidth %d outputGap %d", - inputAddr, outputAddr, totalBytes, inputWidth, inputGap, outputWidth, outputGap); - - if (inputGap != 0 || outputGap != 0) { - // Helpers::warn("Strided texture copy\n"); - } - - if (inputWidth != outputWidth) { - Helpers::warn("Input width does not match output width, cannot accelerate texture copy!"); - return; - } - - // Texture copy is a raw data copy in PICA, which means no format or tiling information is provided to the engine. - // Depending if the target surface is linear or tiled, games set inputWidth to either the width of the texture or - // the width multiplied by eight (because tiles are stored linearly in memory). - // To properly accelerate this we must examine each surface individually. For now we assume the most common case - // of tiled surface with RGBA8 format. If our assumption does not hold true, we abort the texture copy as inserting - // that surface is not correct. - - // We assume the source surface is tiled and RGBA8. inputWidth is in bytes so divide it - // by eight * sizePerPixel(RGBA8) to convert it to a useable width. - const u32 bpp = sizePerPixel(PICA::ColorFmt::RGBA8); - const u32 copyStride = (inputWidth + inputGap) / (8 * bpp); - const u32 copyWidth = inputWidth / (8 * bpp); - - // inputHeight/outputHeight are typically set to zero so they cannot be used to get the height of the copy region - // in contrast to display transfer. Compute height manually by dividing the copy size with the copy width. The result - // is the number of vertical tiles so multiply that by eight to get the actual copy height. - u32 copyHeight; - if (inputWidth != 0) [[likely]] { - copyHeight = (copySize / inputWidth) * 8; - } else { - copyHeight = 0; - } - - // Find the source surface. - auto srcFramebuffer = getColourBuffer(inputAddr, PICA::ColorFmt::RGBA8, copyStride, copyHeight, false); - if (!srcFramebuffer) { - static int shutUpCounter = 0; // Don't want to spam the console too much, so shut up after 5 times - - if (shutUpCounter < 5) { - shutUpCounter++; - printf("RendererGL::TextureCopy failed to locate src framebuffer!\n"); - } - return; - } - - Math::Rect srcRect = srcFramebuffer->getSubRect(inputAddr, copyWidth, copyHeight); - - // Assume the destination surface has the same format. Unless the surfaces have the same block width, - // texture copy does not make sense. - auto destFramebuffer = getColourBuffer(outputAddr, srcFramebuffer->format, copyWidth, copyHeight); - Math::Rect destRect = destFramebuffer->getSubRect(outputAddr, copyWidth, copyHeight); - - // Blit the framebuffers - srcFramebuffer->fbo.bind(OpenGL::ReadFramebuffer); - destFramebuffer->fbo.bind(OpenGL::DrawFramebuffer); - gl.disableScissor(); - - glBlitFramebuffer( - srcRect.left, srcRect.bottom, srcRect.right, srcRect.top, destRect.left, destRect.bottom, destRect.right, destRect.top, GL_COLOR_BUFFER_BIT, - GL_LINEAR - ); -} - -std::optional RendererGL::getColourBuffer(u32 addr, PICA::ColorFmt format, u32 width, u32 height, bool createIfnotFound) { - // Try to find an already existing buffer that contains the provided address - // This is a more relaxed check compared to getColourFBO as display transfer/texcopy may refer to - // subrect of a surface and in case of texcopy we don't know the format of the surface. - auto buffer = colourBufferCache.findFromAddress(addr); - if (buffer.has_value()) { - return buffer.value().get(); - } - - if (!createIfnotFound) { - return std::nullopt; - } - - // Otherwise create and cache a new buffer. - ColourBuffer sampleBuffer(addr, format, width, height); - return colourBufferCache.add(sampleBuffer); -} - -void RendererGL::screenshot(const std::string& name) { - constexpr uint width = 400; - constexpr uint height = 2 * 240; - - std::vector pixels, flippedPixels; - pixels.resize(width * height * 4); - flippedPixels.resize(pixels.size()); - - OpenGL::bindScreenFramebuffer(); - glReadPixels(0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, pixels.data()); - - // Flip the image vertically - for (int y = 0; y < height; y++) { - memcpy(&flippedPixels[y * width * 4], &pixels[(height - y - 1) * width * 4], width * 4); - // Swap R and B channels - for (int x = 0; x < width; x++) { - std::swap(flippedPixels[y * width * 4 + x * 4 + 0], flippedPixels[y * width * 4 + x * 4 + 2]); - // Set alpha to 0xFF - flippedPixels[y * width * 4 + x * 4 + 3] = 0xFF; - } - } - - stbi_write_png(name.c_str(), width, height, 4, flippedPixels.data(), 0); -} - -void RendererGL::deinitGraphicsContext() { - // Invalidate all surface caches since they'll no longer be valid - textureCache.reset(); - depthBufferCache.reset(); - colourBufferCache.reset(); - - // All other GL objects should be invalidated automatically and be recreated by the next call to initGraphicsContext - // TODO: Make it so that depth and colour buffers get written back to 3DS memory - printf("RendererGL::DeinitGraphicsContext called\n"); -} \ No newline at end of file diff --git a/src/core/renderer_gl/textures.cpp b/src/core/renderer_gl/textures.cpp deleted file mode 100644 index 7f4c31bf..00000000 --- a/src/core/renderer_gl/textures.cpp +++ /dev/null @@ -1,264 +0,0 @@ -#include "renderer_gl/textures.hpp" -#include "colour.hpp" -#include - -using namespace Helpers; - -void Texture::allocate() { - glGenTextures(1, &texture.m_handle); - texture.create(size.u(), size.v(), GL_RGBA8); - texture.bind(); - -#ifdef GPU_DEBUG_INFO - const auto name = Helpers::format("Surface %dx%d %s from 0x%08X", size.x(), size.y(), PICA::textureFormatToString(format), location); - OpenGL::setObjectLabel(GL_TEXTURE, texture.handle(), name.c_str()); -#endif - - setNewConfig(config); -} - -// Set the texture's configuration, which includes min/mag filters, wrapping S/T modes, and so on -void Texture::setNewConfig(u32 cfg) { - config = cfg; - // The wrapping mode field is 3 bits instead of 2 bits. The bottom 4 undocumented wrapping modes are taken from Citra. - static constexpr std::array wrappingModes = { - OpenGL::ClampToEdge, OpenGL::ClampToBorder, OpenGL::Repeat, OpenGL::RepeatMirrored, - OpenGL::ClampToEdge, OpenGL::ClampToBorder, OpenGL::Repeat, OpenGL::Repeat - }; - - const auto magFilter = (cfg & 0x2) != 0 ? OpenGL::Linear : OpenGL::Nearest; - const auto minFilter = (cfg & 0x4) != 0 ? OpenGL::Linear : OpenGL::Nearest; - const auto wrapT = wrappingModes[getBits<8, 3>(cfg)]; - const auto wrapS = wrappingModes[getBits<12, 3>(cfg)]; - - texture.setMinFilter(minFilter); - texture.setMagFilter(magFilter); - texture.setWrapS(wrapS); - texture.setWrapT(wrapT); -} - -void Texture::free() { - valid = false; - - if (texture.exists()) { - texture.free(); - } -} - -u64 Texture::sizeInBytes() { - u64 pixelCount = u64(size.x()) * u64(size.y()); - - switch (format) { - case PICA::TextureFmt::RGBA8: // 4 bytes per pixel - return pixelCount * 4; - - case PICA::TextureFmt::RGB8: // 3 bytes per pixel - return pixelCount * 3; - - case PICA::TextureFmt::RGBA5551: // 2 bytes per pixel - case PICA::TextureFmt::RGB565: - case PICA::TextureFmt::RGBA4: - case PICA::TextureFmt::RG8: - case PICA::TextureFmt::IA8: - return pixelCount * 2; - - case PICA::TextureFmt::A8: // 1 byte per pixel - case PICA::TextureFmt::I8: - case PICA::TextureFmt::IA4: - return pixelCount; - - case PICA::TextureFmt::I4: // 4 bits per pixel - case PICA::TextureFmt::A4: - return pixelCount / 2; - - case PICA::TextureFmt::ETC1: // Compressed formats - case PICA::TextureFmt::ETC1A4: { - // Number of 4x4 tiles - const u64 tileCount = pixelCount / 16; - // Tiles are 8 bytes each on ETC1 and 16 bytes each on ETC1A4 - const u64 tileSize = format == PICA::TextureFmt::ETC1 ? 8 : 16; - return tileCount * tileSize; - } - - default: - Helpers::panic("[PICA] Attempted to get size of invalid texture type"); - } -} - -// u and v are the UVs of the relevant texel -// Texture data is stored interleaved in Morton order, ie in a Z - order curve as shown here -// https://en.wikipedia.org/wiki/Z-order_curve -// Textures are split into 8x8 tiles.This function returns the in - tile offset depending on the u & v of the texel -// The in - tile offset is the sum of 2 offsets, one depending on the value of u % 8 and the other on the value of y % 8 -// As documented in this picture https ://en.wikipedia.org/wiki/File:Moser%E2%80%93de_Bruijn_addition.svg -u32 Texture::mortonInterleave(u32 u, u32 v) { - static constexpr u32 xOffsets[] = { 0, 1, 4, 5, 16, 17, 20, 21 }; - static constexpr u32 yOffsets[] = { 0, 2, 8, 10, 32, 34, 40, 42 }; - - return xOffsets[u & 7] + yOffsets[v & 7]; -} - -// Get the byte offset of texel (u, v) in the texture -u32 Texture::getSwizzledOffset(u32 u, u32 v, u32 width, u32 bytesPerPixel) { - u32 offset = ((u & ~7) * 8) + ((v & ~7) * width); // Offset of the 8x8 tile the texel belongs to - offset += mortonInterleave(u, v); // Add the in-tile offset of the texel - - return offset * bytesPerPixel; -} - -// Same as the above code except we need to divide by 2 because 4 bits is smaller than a byte -u32 Texture::getSwizzledOffset_4bpp(u32 u, u32 v, u32 width) { - u32 offset = ((u & ~7) * 8) + ((v & ~7) * width); // Offset of the 8x8 tile the texel belongs to - offset += mortonInterleave(u, v); // Add the in-tile offset of the texel - - return offset / 2; -} - -// Get the texel at position (u, v) -// fmt: format of the texture -// data: texture data of the texture -u32 Texture::decodeTexel(u32 u, u32 v, PICA::TextureFmt fmt, std::span data) { - switch (fmt) { - case PICA::TextureFmt::RGBA4: { - u32 offset = getSwizzledOffset(u, v, size.u(), 2); - u16 texel = u16(data[offset]) | (u16(data[offset + 1]) << 8); - - u8 alpha = Colour::convert4To8Bit(getBits<0, 4, u8>(texel)); - u8 b = Colour::convert4To8Bit(getBits<4, 4, u8>(texel)); - u8 g = Colour::convert4To8Bit(getBits<8, 4, u8>(texel)); - u8 r = Colour::convert4To8Bit(getBits<12, 4, u8>(texel)); - - return (alpha << 24) | (b << 16) | (g << 8) | r; - } - - case PICA::TextureFmt::RGBA5551: { - const u32 offset = getSwizzledOffset(u, v, size.u(), 2); - const u16 texel = u16(data[offset]) | (u16(data[offset + 1]) << 8); - - u8 alpha = getBit<0>(texel) ? 0xff : 0; - u8 b = Colour::convert5To8Bit(getBits<1, 5, u8>(texel)); - u8 g = Colour::convert5To8Bit(getBits<6, 5, u8>(texel)); - u8 r = Colour::convert5To8Bit(getBits<11, 5, u8>(texel)); - - return (alpha << 24) | (b << 16) | (g << 8) | r; - } - - case PICA::TextureFmt::RGB565: { - const u32 offset = getSwizzledOffset(u, v, size.u(), 2); - const u16 texel = u16(data[offset]) | (u16(data[offset + 1]) << 8); - - const u8 b = Colour::convert5To8Bit(getBits<0, 5, u8>(texel)); - const u8 g = Colour::convert6To8Bit(getBits<5, 6, u8>(texel)); - const u8 r = Colour::convert5To8Bit(getBits<11, 5, u8>(texel)); - - return (0xff << 24) | (b << 16) | (g << 8) | r; - } - - case PICA::TextureFmt::RG8: { - u32 offset = getSwizzledOffset(u, v, size.u(), 2); - constexpr u8 b = 0; - const u8 g = data[offset]; - const u8 r = data[offset + 1]; - - return (0xff << 24) | (b << 16) | (g << 8) | r; - } - - case PICA::TextureFmt::RGB8: { - const u32 offset = getSwizzledOffset(u, v, size.u(), 3); - const u8 b = data[offset]; - const u8 g = data[offset + 1]; - const u8 r = data[offset + 2]; - - return (0xff << 24) | (b << 16) | (g << 8) | r; - } - - case PICA::TextureFmt::RGBA8: { - const u32 offset = getSwizzledOffset(u, v, size.u(), 4); - const u8 alpha = data[offset]; - const u8 b = data[offset + 1]; - const u8 g = data[offset + 2]; - const u8 r = data[offset + 3]; - - return (alpha << 24) | (b << 16) | (g << 8) | r; - } - - case PICA::TextureFmt::IA4: { - const u32 offset = getSwizzledOffset(u, v, size.u(), 1); - const u8 texel = data[offset]; - const u8 alpha = Colour::convert4To8Bit(texel & 0xf); - const u8 intensity = Colour::convert4To8Bit(texel >> 4); - - // Intensity formats just copy the intensity value to every colour channel - return (alpha << 24) | (intensity << 16) | (intensity << 8) | intensity; - } - - case PICA::TextureFmt::A4: { - const u32 offset = getSwizzledOffset_4bpp(u, v, size.u()); - - // For odd U coordinates, grab the top 4 bits, and the low 4 bits for even coordinates - u8 alpha = data[offset] >> ((u % 2) ? 4 : 0); - alpha = Colour::convert4To8Bit(getBits<0, 4>(alpha)); - - // A8 sets RGB to 0 - return (alpha << 24) | (0 << 16) | (0 << 8) | 0; - } - - case PICA::TextureFmt::A8: { - u32 offset = getSwizzledOffset(u, v, size.u(), 1); - const u8 alpha = data[offset]; - - // A8 sets RGB to 0 - return (alpha << 24) | (0 << 16) | (0 << 8) | 0; - } - - case PICA::TextureFmt::I4: { - u32 offset = getSwizzledOffset_4bpp(u, v, size.u()); - - // For odd U coordinates, grab the top 4 bits, and the low 4 bits for even coordinates - u8 intensity = data[offset] >> ((u % 2) ? 4 : 0); - intensity = Colour::convert4To8Bit(getBits<0, 4>(intensity)); - - // Intensity formats just copy the intensity value to every colour channel - return (0xff << 24) | (intensity << 16) | (intensity << 8) | intensity; - } - - case PICA::TextureFmt::I8: { - u32 offset = getSwizzledOffset(u, v, size.u(), 1); - const u8 intensity = data[offset]; - - // Intensity formats just copy the intensity value to every colour channel - return (0xff << 24) | (intensity << 16) | (intensity << 8) | intensity; - } - - case PICA::TextureFmt::IA8: { - u32 offset = getSwizzledOffset(u, v, size.u(), 2); - - // Same as I8 except each pixel gets its own alpha value too - const u8 alpha = data[offset]; - const u8 intensity = data[offset + 1]; - return (alpha << 24) | (intensity << 16) | (intensity << 8) | intensity; - } - - case PICA::TextureFmt::ETC1: return getTexelETC(false, u, v, size.u(), data); - case PICA::TextureFmt::ETC1A4: return getTexelETC(true, u, v, size.u(), data); - - default: - Helpers::panic("[Texture::DecodeTexel] Unimplemented format = %d", static_cast(fmt)); - } -} - -void Texture::decodeTexture(std::span data) { - std::vector decoded; - decoded.reserve(u64(size.u()) * u64(size.v())); - - // Decode texels line by line - for (u32 v = 0; v < size.v(); v++) { - for (u32 u = 0; u < size.u(); u++) { - u32 colour = decodeTexel(u, v, format, data); - decoded.push_back(colour); - } - } - - texture.bind(); - glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, size.u(), size.v(), GL_RGBA, GL_UNSIGNED_BYTE, decoded.data()); -} diff --git a/src/core/renderer_null/renderer_null.cpp b/src/core/renderer_null/renderer_null.cpp deleted file mode 100644 index 4be9d089..00000000 --- a/src/core/renderer_null/renderer_null.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "renderer_null/renderer_null.hpp" - -RendererNull::RendererNull(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs) - : Renderer(gpu, internalRegs, externalRegs) {} -RendererNull::~RendererNull() {} - -void RendererNull::reset() {} -void RendererNull::display() {} -void RendererNull::initGraphicsContext(SDL_Window* window) {} -void RendererNull::clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) {} -void RendererNull::displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) {} -void RendererNull::textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) {} -void RendererNull::drawVertices(PICA::PrimType primType, std::span vertices) {} -void RendererNull::screenshot(const std::string& name) {} -void RendererNull::deinitGraphicsContext() {} \ No newline at end of file diff --git a/src/core/renderer_sw/renderer_sw.cpp b/src/core/renderer_sw/renderer_sw.cpp deleted file mode 100644 index 86b6032f..00000000 --- a/src/core/renderer_sw/renderer_sw.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "renderer_sw/renderer_sw.hpp" - -RendererSw::RendererSw(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs) - : Renderer(gpu, internalRegs, externalRegs) {} -RendererSw::~RendererSw() {} - -void RendererSw::reset() { printf("RendererSW: Unimplemented reset call\n"); } -void RendererSw::display() { printf("RendererSW: Unimplemented display call\n"); } - -void RendererSw::initGraphicsContext(SDL_Window* window) { printf("RendererSW: Unimplemented initGraphicsContext call\n"); } -void RendererSw::clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) { printf("RendererSW: Unimplemented clearBuffer call\n"); } - -void RendererSw::displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) { - printf("RendererSW: Unimplemented displayTransfer call\n"); -} - -void RendererSw::textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) { - printf("RendererSW: Unimplemented textureCopy call\n"); -} - -void RendererSw::drawVertices(PICA::PrimType primType, std::span vertices) { - printf("RendererSW: Unimplemented drawVertices call\n"); -} - -void RendererSw::screenshot(const std::string& name) { printf("RendererSW: Unimplemented screenshot call\n"); } -void RendererSw::deinitGraphicsContext() { printf("RendererSW: Unimplemented DeinitGraphicsContext call\n"); } \ No newline at end of file diff --git a/src/core/renderer_vk/renderer_vk.cpp b/src/core/renderer_vk/renderer_vk.cpp deleted file mode 100644 index d05a070f..00000000 --- a/src/core/renderer_vk/renderer_vk.cpp +++ /dev/null @@ -1,1591 +0,0 @@ -#include "renderer_vk/renderer_vk.hpp" - -#include -#include -#include -#include - -#include "SDL_vulkan.h" -#include "helpers.hpp" -#include "renderer_vk/vk_debug.hpp" -#include "renderer_vk/vk_memory.hpp" -#include "renderer_vk/vk_pica.hpp" - -CMRC_DECLARE(RendererVK); - -static vk::SamplerCreateInfo sampler2D(bool filtered = true, bool clamp = false) { - vk::SamplerCreateInfo samplerInfo = {}; - samplerInfo.magFilter = filtered ? vk::Filter::eLinear : vk::Filter::eNearest; - samplerInfo.minFilter = filtered ? vk::Filter::eLinear : vk::Filter::eNearest; - - samplerInfo.mipmapMode = vk::SamplerMipmapMode::eLinear; - - samplerInfo.addressModeU = clamp ? vk::SamplerAddressMode::eClampToEdge : vk::SamplerAddressMode::eRepeat; - samplerInfo.addressModeV = clamp ? vk::SamplerAddressMode::eClampToEdge : vk::SamplerAddressMode::eRepeat; - samplerInfo.addressModeW = clamp ? vk::SamplerAddressMode::eClampToEdge : vk::SamplerAddressMode::eRepeat; - - samplerInfo.mipLodBias = 0.0f; - samplerInfo.anisotropyEnable = VK_FALSE; - samplerInfo.maxAnisotropy = 16.0f; - - samplerInfo.compareEnable = VK_FALSE; - samplerInfo.compareOp = vk::CompareOp::eAlways; - - samplerInfo.minLod = 0.0f; - samplerInfo.maxLod = VK_LOD_CLAMP_NONE; - samplerInfo.borderColor = vk::BorderColor::eFloatTransparentBlack; - samplerInfo.unnormalizedCoordinates = VK_FALSE; - return samplerInfo; -} - -static vk::UniqueShaderModule createShaderModule(vk::Device device, std::span shaderCode) { - vk::ShaderModuleCreateInfo shaderModuleInfo = {}; - shaderModuleInfo.pCode = reinterpret_cast(shaderCode.data()); - shaderModuleInfo.codeSize = shaderCode.size(); - - vk::UniqueShaderModule shaderModule = {}; - if (auto createResult = device.createShaderModuleUnique(shaderModuleInfo); createResult.result == vk::Result::eSuccess) { - shaderModule = std::move(createResult.value); - } else { - Helpers::panic("Error creating shader module: %s\n", vk::to_string(createResult.result).c_str()); - } - return shaderModule; -} - -static inline vk::UniqueShaderModule createShaderModule(vk::Device device, cmrc::file shaderFile) { - return createShaderModule(device, std::span(reinterpret_cast(shaderFile.begin()), shaderFile.size())); -} - -std::tuple createGraphicsPipeline( - vk::Device device, std::span pushConstants, std::span setLayouts, - vk::ShaderModule vertModule, vk::ShaderModule fragModule, std::span vertexBindingDescriptions, - std::span vertexAttributeDescriptions, vk::RenderPass renderPass -) { - // Create Pipeline Layout - vk::PipelineLayoutCreateInfo graphicsPipelineLayoutInfo = {}; - - graphicsPipelineLayoutInfo.pSetLayouts = setLayouts.data(); - graphicsPipelineLayoutInfo.setLayoutCount = setLayouts.size(); - graphicsPipelineLayoutInfo.pPushConstantRanges = pushConstants.data(); - graphicsPipelineLayoutInfo.pushConstantRangeCount = pushConstants.size(); - - vk::UniquePipelineLayout graphicsPipelineLayout = {}; - if (auto createResult = device.createPipelineLayoutUnique(graphicsPipelineLayoutInfo); createResult.result == vk::Result::eSuccess) { - graphicsPipelineLayout = std::move(createResult.value); - } else { - Helpers::panic("Error creating pipeline layout: %s\n", vk::to_string(createResult.result).c_str()); - return {}; - } - - // Describe the stage and entry point of each shader - const vk::PipelineShaderStageCreateInfo ShaderStagesInfo[2] = { - vk::PipelineShaderStageCreateInfo( - {}, // Flags - vk::ShaderStageFlagBits::eVertex, // Shader Stage - vertModule, // Shader Module - "main", // Shader entry point function name - {} // Shader specialization info - ), - vk::PipelineShaderStageCreateInfo( - {}, // Flags - vk::ShaderStageFlagBits::eFragment, // Shader Stage - fragModule, // Shader Module - "main", // Shader entry point function name - {} // Shader specialization info - ), - }; - - vk::PipelineVertexInputStateCreateInfo vertexInputState = {}; - - vertexInputState.vertexBindingDescriptionCount = vertexBindingDescriptions.size(); - vertexInputState.pVertexBindingDescriptions = vertexBindingDescriptions.data(); - - vertexInputState.vertexAttributeDescriptionCount = vertexAttributeDescriptions.size(); - vertexInputState.pVertexAttributeDescriptions = vertexAttributeDescriptions.data(); - - vk::PipelineInputAssemblyStateCreateInfo inputAssemblyState = {}; - inputAssemblyState.topology = vk::PrimitiveTopology::eTriangleList; - inputAssemblyState.primitiveRestartEnable = false; - - vk::PipelineViewportStateCreateInfo viewportState = {}; - - static const vk::Viewport defaultViewport = {0, 0, 16, 16, 0.0f, 1.0f}; - static const vk::Rect2D defaultScissor = {{0, 0}, {16, 16}}; - viewportState.viewportCount = 1; - viewportState.pViewports = &defaultViewport; - viewportState.scissorCount = 1; - viewportState.pScissors = &defaultScissor; - - vk::PipelineRasterizationStateCreateInfo rasterizationState = {}; - - rasterizationState.depthClampEnable = false; - rasterizationState.rasterizerDiscardEnable = false; - rasterizationState.polygonMode = vk::PolygonMode::eFill; - rasterizationState.cullMode = vk::CullModeFlagBits::eBack; - rasterizationState.frontFace = vk::FrontFace::eClockwise; - rasterizationState.depthBiasEnable = false; - rasterizationState.depthBiasConstantFactor = 0.0f; - rasterizationState.depthBiasClamp = 0.0f; - rasterizationState.depthBiasSlopeFactor = 0.0; - rasterizationState.lineWidth = 1.0f; - - vk::PipelineMultisampleStateCreateInfo multisampleState = {}; - - multisampleState.rasterizationSamples = vk::SampleCountFlagBits::e1; - multisampleState.sampleShadingEnable = false; - multisampleState.minSampleShading = 1.0f; - multisampleState.pSampleMask = nullptr; - multisampleState.alphaToCoverageEnable = true; - multisampleState.alphaToOneEnable = false; - - vk::PipelineDepthStencilStateCreateInfo depthStencilState = {}; - - depthStencilState.depthTestEnable = false; - depthStencilState.depthWriteEnable = false; - depthStencilState.depthCompareOp = vk::CompareOp::eLessOrEqual; - depthStencilState.depthBoundsTestEnable = false; - depthStencilState.stencilTestEnable = false; - depthStencilState.front = vk::StencilOp::eKeep; - depthStencilState.back = vk::StencilOp::eKeep; - depthStencilState.minDepthBounds = 0.0f; - depthStencilState.maxDepthBounds = 1.0f; - - vk::PipelineColorBlendStateCreateInfo colorBlendState = {}; - - colorBlendState.logicOpEnable = false; - colorBlendState.logicOp = vk::LogicOp::eClear; - colorBlendState.attachmentCount = 1; - - vk::PipelineColorBlendAttachmentState blendAttachmentState = {}; - - blendAttachmentState.blendEnable = false; - blendAttachmentState.srcColorBlendFactor = vk::BlendFactor::eZero; - blendAttachmentState.dstColorBlendFactor = vk::BlendFactor::eZero; - blendAttachmentState.colorBlendOp = vk::BlendOp::eAdd; - blendAttachmentState.srcAlphaBlendFactor = vk::BlendFactor::eZero; - blendAttachmentState.dstAlphaBlendFactor = vk::BlendFactor::eZero; - blendAttachmentState.alphaBlendOp = vk::BlendOp::eAdd; - blendAttachmentState.colorWriteMask = - vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA; - - colorBlendState.pAttachments = &blendAttachmentState; - - vk::PipelineDynamicStateCreateInfo dynamicState = {}; - static vk::DynamicState dynamicStates[] = {// The viewport and scissor of the framebuffer will be dynamic at - // run-time - vk::DynamicState::eViewport, vk::DynamicState::eScissor}; - dynamicState.dynamicStateCount = std::size(dynamicStates); - dynamicState.pDynamicStates = dynamicStates; - - vk::GraphicsPipelineCreateInfo renderPipelineInfo = {}; - - renderPipelineInfo.stageCount = 2; // Vert + Frag stages - renderPipelineInfo.pStages = ShaderStagesInfo; - renderPipelineInfo.pVertexInputState = &vertexInputState; - renderPipelineInfo.pInputAssemblyState = &inputAssemblyState; - renderPipelineInfo.pViewportState = &viewportState; - renderPipelineInfo.pRasterizationState = &rasterizationState; - renderPipelineInfo.pMultisampleState = &multisampleState; - renderPipelineInfo.pDepthStencilState = &depthStencilState; - renderPipelineInfo.pColorBlendState = &colorBlendState; - renderPipelineInfo.pDynamicState = &dynamicState; - renderPipelineInfo.subpass = 0; - renderPipelineInfo.renderPass = renderPass; - renderPipelineInfo.layout = graphicsPipelineLayout.get(); - - // Create Pipeline - vk::UniquePipeline pipeline = {}; - - if (auto createResult = device.createGraphicsPipelineUnique({}, renderPipelineInfo); createResult.result == vk::Result::eSuccess) { - pipeline = std::move(createResult.value); - } else { - Helpers::panic("Error creating graphics pipeline: %s\n", vk::to_string(createResult.result).c_str()); - return {}; - } - - return std::make_tuple(std::move(pipeline), std::move(graphicsPipelineLayout)); -} - -// Finds the first queue family that satisfies `queueMask` and excludes `queueExcludeMask` bits -// Returns -1 if not found -// Todo: Smarter selection for present/graphics/compute/transfer -static s32 findQueueFamily( - std::span queueFamilies, vk::QueueFlags queueMask, - vk::QueueFlags queueExcludeMask = vk::QueueFlagBits::eProtected -) { - for (usize i = 0; i < queueFamilies.size(); ++i) { - if (((queueFamilies[i].queueFlags & queueMask) == queueMask) && !(queueFamilies[i].queueFlags & queueExcludeMask)) { - return i; - } - } - return -1; -} - -static u32 rotl32(u32 x, u32 n) { return (x << n) | (x >> (32 - n)); } -static u32 ror32(u32 x, u32 n) { return (x >> n) | (x << (32 - n)); } - -// Lower 32 bits is the format + size, upper 32-bits is the address -static u64 colorBufferHash(u32 loc, u32 size, PICA::ColorFmt format) { - return (static_cast(loc) << 32) | (ror32(size, 23) ^ static_cast(format)); -} -static u64 depthBufferHash(u32 loc, u32 size, PICA::DepthFmt format) { - return (static_cast(loc) << 32) | (ror32(size, 29) ^ static_cast(format)); -} - -RendererVK::Texture* RendererVK::findRenderTexture(u32 addr) { - // Find first render-texture hash that is >= to addr - auto match = textureCache.lower_bound(static_cast(addr) << 32); - - if (match == textureCache.end()) { - // Not found - return nullptr; - } - - Texture* texture = &match->second; - - const usize sizeInBytes = texture->size[0] * texture->size[1] * texture->sizePerPixel; - - // Ensure this address is within the span of the texture - if ((addr - match->second.loc) <= sizeInBytes) { - return texture; - } - - return nullptr; -} - -RendererVK::Texture& RendererVK::getColorRenderTexture(u32 addr, PICA::ColorFmt format, u32 width, u32 height) { - const u64 renderTextureHash = colorBufferHash(addr, width * height * PICA::sizePerPixel(format), format); - - // Cache hit - if (textureCache.contains(renderTextureHash)) { - return textureCache.at(renderTextureHash); - } - - // Cache miss - Texture& newTexture = textureCache[renderTextureHash]; - newTexture.loc = addr; - newTexture.sizePerPixel = PICA::sizePerPixel(format); - newTexture.size = {width, height}; - - newTexture.format = Vulkan::colorFormatToVulkan(format); - - vk::ImageCreateInfo textureInfo = {}; - textureInfo.setImageType(vk::ImageType::e2D); - textureInfo.setFormat(newTexture.format); - textureInfo.setExtent(vk::Extent3D(width, height, 1)); - textureInfo.setMipLevels(1); - textureInfo.setArrayLayers(1); - textureInfo.setSamples(vk::SampleCountFlagBits::e1); - textureInfo.setTiling(vk::ImageTiling::eOptimal); - textureInfo.setUsage( - vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eInputAttachment | vk::ImageUsageFlagBits::eTransferSrc | - vk::ImageUsageFlagBits::eTransferDst | vk::ImageUsageFlagBits::eSampled - ); - textureInfo.setSharingMode(vk::SharingMode::eExclusive); - textureInfo.setInitialLayout(vk::ImageLayout::eUndefined); - - if (auto createResult = device->createImageUnique(textureInfo); createResult.result == vk::Result::eSuccess) { - newTexture.image = std::move(createResult.value); - } else { - Helpers::panic("Error creating color render-texture image: %s\n", vk::to_string(createResult.result).c_str()); - } - - Vulkan::setObjectName( - device.get(), newTexture.image.get(), "TextureCache:%08x %ux%u %s", addr, width, height, vk::to_string(textureInfo.format).c_str() - ); - - vk::ImageViewCreateInfo viewInfo = {}; - viewInfo.image = newTexture.image.get(); - viewInfo.viewType = vk::ImageViewType::e2D; - viewInfo.format = newTexture.format; - viewInfo.components = vk::ComponentMapping(); - viewInfo.subresourceRange = vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1); - - if (auto [result, imageMemory] = Vulkan::commitImageHeap(device.get(), physicalDevice, {&newTexture.image.get(), 1}); - result == vk::Result::eSuccess) { - newTexture.imageMemory = std::move(imageMemory); - } else { - Helpers::panic("Error allocating color render-texture memory: %s\n", vk::to_string(result).c_str()); - } - - if (auto createResult = device->createImageViewUnique(viewInfo); createResult.result == vk::Result::eSuccess) { - newTexture.imageView = std::move(createResult.value); - } else { - Helpers::panic("Error creating color render-texture: %s\n", vk::to_string(createResult.result).c_str()); - } - - // Initial layout transition - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eAllCommands, vk::DependencyFlags{}, {}, {}, - {vk::ImageMemoryBarrier( - vk::AccessFlagBits::eMemoryWrite, vk::AccessFlagBits::eShaderRead, vk::ImageLayout::eUndefined, vk::ImageLayout::eShaderReadOnlyOptimal, - VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, newTexture.image.get(), viewInfo.subresourceRange - )} - ); - - return newTexture; -} - -RendererVK::Texture& RendererVK::getDepthRenderTexture(u32 addr, PICA::DepthFmt format, u32 width, u32 height) { - const u64 renderTextureHash = depthBufferHash(addr, width * height * PICA::sizePerPixel(format), format); - - // Cache hit - if (textureCache.contains(renderTextureHash)) { - return textureCache.at(renderTextureHash); - } - - // Cache miss - Texture& newTexture = textureCache[renderTextureHash]; - newTexture.loc = addr; - newTexture.sizePerPixel = PICA::sizePerPixel(format); - newTexture.size = {width, height}; - - newTexture.format = Vulkan::depthFormatToVulkan(format); - - vk::ImageCreateInfo textureInfo = {}; - textureInfo.setImageType(vk::ImageType::e2D); - textureInfo.setFormat(newTexture.format); - textureInfo.setExtent(vk::Extent3D(width, height, 1)); - textureInfo.setMipLevels(1); - textureInfo.setArrayLayers(1); - textureInfo.setSamples(vk::SampleCountFlagBits::e1); - textureInfo.setTiling(vk::ImageTiling::eOptimal); - textureInfo.setUsage( - vk::ImageUsageFlagBits::eDepthStencilAttachment | vk::ImageUsageFlagBits::eInputAttachment | vk::ImageUsageFlagBits::eTransferSrc | - vk::ImageUsageFlagBits::eTransferDst | vk::ImageUsageFlagBits::eSampled - ); - textureInfo.setSharingMode(vk::SharingMode::eExclusive); - textureInfo.setInitialLayout(vk::ImageLayout::eUndefined); - - if (auto createResult = device->createImageUnique(textureInfo); createResult.result == vk::Result::eSuccess) { - newTexture.image = std::move(createResult.value); - } else { - Helpers::panic("Error creating depth render-texture image: %s\n", vk::to_string(createResult.result).c_str()); - } - - Vulkan::setObjectName( - device.get(), newTexture.image.get(), "TextureCache:%08x %ux%u %s", addr, width, height, vk::to_string(textureInfo.format).c_str() - ); - - vk::ImageViewCreateInfo viewInfo = {}; - viewInfo.image = newTexture.image.get(); - viewInfo.viewType = vk::ImageViewType::e2D; - viewInfo.format = newTexture.format; - viewInfo.components = vk::ComponentMapping(); - // viewInfo.subresourceRange = vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eDepth | vk::ImageAspectFlagBits::eStencil, 0, 1, 0, 1); - viewInfo.subresourceRange = vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eDepth, 0, 1, 0, 1); - - if (auto [result, imageMemory] = Vulkan::commitImageHeap(device.get(), physicalDevice, {&newTexture.image.get(), 1}); - result == vk::Result::eSuccess) { - newTexture.imageMemory = std::move(imageMemory); - } else { - Helpers::panic("Error allocating depth render-texture memory: %s\n", vk::to_string(result).c_str()); - } - - if (auto createResult = device->createImageViewUnique(viewInfo); createResult.result == vk::Result::eSuccess) { - newTexture.imageView = std::move(createResult.value); - } else { - Helpers::panic("Error creating depth render-texture: %s\n", vk::to_string(createResult.result).c_str()); - } - - // Initial layout transition (depth and/or stencil) - if (vk::componentCount(newTexture.format) == 2) { - viewInfo.subresourceRange.aspectMask |= vk::ImageAspectFlagBits::eStencil; - } - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eAllCommands, vk::DependencyFlags{}, {}, {}, - {vk::ImageMemoryBarrier( - vk::AccessFlagBits::eMemoryWrite, vk::AccessFlagBits::eShaderRead, vk::ImageLayout::eUndefined, vk::ImageLayout::eShaderReadOnlyOptimal, - VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, newTexture.image.get(), viewInfo.subresourceRange - )} - ); - - return newTexture; -} - -vk::RenderPass RendererVK::getRenderPass(vk::Format colorFormat, std::optional depthFormat) { - u64 renderPassHash = static_cast(colorFormat); - - if (depthFormat.has_value()) { - renderPassHash |= (static_cast(depthFormat.value()) << 32); - } - - // Cache hit - if (renderPassCache.contains(renderPassHash)) { - return renderPassCache.at(renderPassHash).get(); - } - - // Cache miss - vk::RenderPassCreateInfo renderPassInfo = {}; - vk::SubpassDescription subPass = {}; - - std::vector renderPassAttachments = {}; - - vk::AttachmentDescription colorAttachment = {}; - colorAttachment.format = colorFormat; - colorAttachment.samples = vk::SampleCountFlagBits::e1; - colorAttachment.loadOp = vk::AttachmentLoadOp::eLoad; - colorAttachment.storeOp = vk::AttachmentStoreOp::eStore; - colorAttachment.stencilLoadOp = vk::AttachmentLoadOp::eLoad; - colorAttachment.stencilStoreOp = vk::AttachmentStoreOp::eStore; - colorAttachment.initialLayout = vk::ImageLayout::eShaderReadOnlyOptimal; - colorAttachment.finalLayout = vk::ImageLayout::eShaderReadOnlyOptimal; - renderPassAttachments.emplace_back(colorAttachment); - - if (depthFormat.has_value()) { - vk::AttachmentDescription depthAttachment = {}; - depthAttachment.format = depthFormat.value(); - depthAttachment.samples = vk::SampleCountFlagBits::e1; - depthAttachment.loadOp = vk::AttachmentLoadOp::eLoad; - depthAttachment.storeOp = vk::AttachmentStoreOp::eStore; - depthAttachment.stencilLoadOp = vk::AttachmentLoadOp::eLoad; - depthAttachment.stencilStoreOp = vk::AttachmentStoreOp::eStore; - depthAttachment.initialLayout = vk::ImageLayout::eShaderReadOnlyOptimal; - depthAttachment.finalLayout = vk::ImageLayout::eShaderReadOnlyOptimal; - renderPassAttachments.emplace_back(depthAttachment); - } - - renderPassInfo.setAttachments(renderPassAttachments); - - static const vk::AttachmentReference colorAttachmentReference = {0, vk::ImageLayout::eColorAttachmentOptimal}; - static const vk::AttachmentReference depthAttachmentReference = {1, vk::ImageLayout::eDepthStencilReadOnlyOptimal}; - - subPass.setColorAttachments(colorAttachmentReference); - if (depthFormat.has_value()) { - subPass.setPDepthStencilAttachment(&depthAttachmentReference); - } - - subPass.pipelineBindPoint = vk::PipelineBindPoint::eGraphics; - - renderPassInfo.setSubpasses(subPass); - - // We only have one sub-pass and we want all render-passes to be sequential, - // so input/output depends on VK_SUBPASS_EXTERNAL - static const vk::SubpassDependency subpassDependencies[2] = { - vk::SubpassDependency( - VK_SUBPASS_EXTERNAL, 0, vk::PipelineStageFlagBits::eAllGraphics, vk::PipelineStageFlagBits::eAllGraphics, - vk::AccessFlagBits::eColorAttachmentWrite, vk::AccessFlagBits::eColorAttachmentWrite, vk::DependencyFlagBits::eByRegion - ), - vk::SubpassDependency( - 0, VK_SUBPASS_EXTERNAL, vk::PipelineStageFlagBits::eAllGraphics, vk::PipelineStageFlagBits::eAllGraphics, - vk::AccessFlagBits::eColorAttachmentWrite, vk::AccessFlagBits::eColorAttachmentWrite, vk::DependencyFlagBits::eByRegion - )}; - - renderPassInfo.setDependencies(subpassDependencies); - - if (auto createResult = device->createRenderPassUnique(renderPassInfo); createResult.result == vk::Result::eSuccess) { - return (renderPassCache[renderPassHash] = std::move(createResult.value)).get(); - } else { - Helpers::panic("Error creating render pass: %s\n", vk::to_string(createResult.result).c_str()); - } - return {}; -} - -vk::RenderPass RendererVK::getRenderPass(PICA::ColorFmt colorFormat, std::optional depthFormat) { - if (depthFormat.has_value()) { - return getRenderPass(Vulkan::colorFormatToVulkan(colorFormat), Vulkan::depthFormatToVulkan(depthFormat.value())); - } else { - return getRenderPass(Vulkan::colorFormatToVulkan(colorFormat), {}); - } -} - -vk::Result RendererVK::recreateSwapchain(vk::SurfaceKHR surface, vk::Extent2D swapchainExtent) { - static constexpr u32 screenTextureWidth = 400; // Top screen is 400 pixels wide, bottom is 320 - static constexpr u32 screenTextureHeight = 2 * 240; // Both screens are 240 pixels tall - static constexpr vk::ImageUsageFlags swapchainUsageFlagsRequired = - (vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eTransferSrc | vk::ImageUsageFlagBits::eTransferDst); - - // Extent + Image count + Usage + Surface Transform - vk::ImageUsageFlags swapchainImageUsage; - vk::SurfaceTransformFlagBitsKHR swapchainSurfaceTransform; - if (const auto getResult = physicalDevice.getSurfaceCapabilitiesKHR(surface); getResult.result == vk::Result::eSuccess) { - const vk::SurfaceCapabilitiesKHR& surfaceCapabilities = getResult.value; - - // In the case if width == height == -1, we define the extent ourselves but must fit within the limits - if (surfaceCapabilities.currentExtent.width == -1 || surfaceCapabilities.currentExtent.height == -1) { - swapchainExtent.width = std::max(swapchainExtent.width, surfaceCapabilities.minImageExtent.width); - swapchainExtent.height = std::max(swapchainExtent.height, surfaceCapabilities.minImageExtent.height); - swapchainExtent.width = std::min(swapchainExtent.width, surfaceCapabilities.maxImageExtent.width); - swapchainExtent.height = std::min(swapchainExtent.height, surfaceCapabilities.maxImageExtent.height); - } - - swapchainImageCount = surfaceCapabilities.minImageCount + 1; - if ((surfaceCapabilities.maxImageCount > 0) && (swapchainImageCount > surfaceCapabilities.maxImageCount)) { - swapchainImageCount = surfaceCapabilities.maxImageCount; - } - - swapchainImageUsage = surfaceCapabilities.supportedUsageFlags & swapchainUsageFlagsRequired; - - if ((swapchainImageUsage & swapchainUsageFlagsRequired) != swapchainUsageFlagsRequired) { - Helpers::panic( - "Unsupported swapchain image usage. Could not acquire %s\n", vk::to_string(swapchainImageUsage ^ swapchainUsageFlagsRequired).c_str() - ); - } - - if (surfaceCapabilities.supportedTransforms & vk::SurfaceTransformFlagBitsKHR::eIdentity) { - swapchainSurfaceTransform = vk::SurfaceTransformFlagBitsKHR::eIdentity; - } else { - swapchainSurfaceTransform = surfaceCapabilities.currentTransform; - } - } else { - Helpers::panic("Error getting surface capabilities: %s\n", vk::to_string(getResult.result).c_str()); - } - - // Preset Mode - // Fifo support is required by all vulkan implementations, waits for vsync - vk::PresentModeKHR swapchainPresentMode = vk::PresentModeKHR::eFifo; - if (auto getResult = physicalDevice.getSurfacePresentModesKHR(surface); getResult.result == vk::Result::eSuccess) { - const std::vector& presentModes = getResult.value; - - // Use mailbox if available, lowest-latency vsync-enabled mode - if (std::find(presentModes.begin(), presentModes.end(), vk::PresentModeKHR::eMailbox) != presentModes.end()) { - swapchainPresentMode = vk::PresentModeKHR::eMailbox; - } - } else { - Helpers::panic("Error enumerating surface present modes: %s\n", vk::to_string(getResult.result).c_str()); - } - - // Surface format - vk::SurfaceFormatKHR swapchainSurfaceFormat; - if (auto getResult = physicalDevice.getSurfaceFormatsKHR(surface); getResult.result == vk::Result::eSuccess) { - std::vector& surfaceFormats = getResult.value; - - // A singular undefined surface format means we can use any format we want - if ((surfaceFormats.size() == 1) && surfaceFormats[0].format == vk::Format::eUndefined) { - // Assume R8G8B8A8-SRGB by default - swapchainSurfaceFormat = {vk::Format::eR8G8B8A8Unorm, vk::ColorSpaceKHR::eSrgbNonlinear}; - } else { - // Find the next-best R8G8B8A8-SRGB format - std::vector::iterator partitionEnd = surfaceFormats.end(); - - const auto preferR8G8B8A8 = [](const vk::SurfaceFormatKHR& surfaceFormat) -> bool { - return surfaceFormat.format == vk::Format::eR8G8B8A8Snorm; - }; - partitionEnd = std::stable_partition(surfaceFormats.begin(), partitionEnd, preferR8G8B8A8); - - const auto preferSrgbNonLinear = [](const vk::SurfaceFormatKHR& surfaceFormat) -> bool { - return surfaceFormat.colorSpace == vk::ColorSpaceKHR::eSrgbNonlinear; - }; - partitionEnd = std::stable_partition(surfaceFormats.begin(), partitionEnd, preferSrgbNonLinear); - - swapchainSurfaceFormat = surfaceFormats.front(); - } - - } else { - Helpers::panic("Error enumerating surface formats: %s\n", vk::to_string(getResult.result).c_str()); - } - - vk::SwapchainCreateInfoKHR swapchainInfo = {}; - - swapchainInfo.surface = surface; - swapchainInfo.minImageCount = swapchainImageCount; - swapchainInfo.imageFormat = swapchainSurfaceFormat.format; - swapchainInfo.imageColorSpace = swapchainSurfaceFormat.colorSpace; - swapchainInfo.imageExtent = swapchainExtent; - swapchainInfo.imageArrayLayers = 1; - swapchainInfo.imageUsage = swapchainImageUsage; - swapchainInfo.imageSharingMode = vk::SharingMode::eExclusive; - swapchainInfo.preTransform = swapchainSurfaceTransform; - swapchainInfo.compositeAlpha = vk::CompositeAlphaFlagBitsKHR::eOpaque; - swapchainInfo.presentMode = swapchainPresentMode; - swapchainInfo.clipped = true; - swapchainInfo.oldSwapchain = swapchain.get(); - - if (auto createResult = device->createSwapchainKHRUnique(swapchainInfo); createResult.result == vk::Result::eSuccess) { - swapchain = std::move(createResult.value); - } else { - Helpers::panic("Error creating swapchain: %s\n", vk::to_string(createResult.result).c_str()); - } - - // Get swapchain images - if (auto getResult = device->getSwapchainImagesKHR(swapchain.get()); getResult.result == vk::Result::eSuccess) { - swapchainImages = getResult.value; - swapchainImageViews.resize(swapchainImages.size()); - - // Create image-views - for (usize i = 0; i < swapchainImages.size(); i++) { - vk::ImageViewCreateInfo viewInfo = {}; - viewInfo.image = swapchainImages[i]; - viewInfo.viewType = vk::ImageViewType::e2D; - viewInfo.format = swapchainSurfaceFormat.format; - viewInfo.components = vk::ComponentMapping(); - viewInfo.subresourceRange = vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1); - - if (auto createResult = device->createImageViewUnique(viewInfo); createResult.result == vk::Result::eSuccess) { - swapchainImageViews[i] = std::move(createResult.value); - } else { - Helpers::panic("Error creating swapchain image-view: #%zu %s\n", i, vk::to_string(getResult.result).c_str()); - } - } - } else { - Helpers::panic("Error creating acquiring swapchain images: %s\n", vk::to_string(getResult.result).c_str()); - } - - return vk::Result::eSuccess; -} - -RendererVK::RendererVK(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs) - : Renderer(gpu, internalRegs, externalRegs) {} - -RendererVK::~RendererVK() {} - -void RendererVK::reset() { renderPassCache.clear(); } - -void RendererVK::display() { - // Get the next available swapchain image, and signal the semaphore when it's ready - static constexpr u32 swapchainImageInvalid = std::numeric_limits::max(); - u32 swapchainImageIndex = swapchainImageInvalid; - if (swapchain) { - if (const auto acquireResult = - device->acquireNextImageKHR(swapchain.get(), std::numeric_limits::max(), swapImageFreeSemaphore[frameBufferingIndex].get(), {}); - acquireResult.result == vk::Result::eSuccess) { - swapchainImageIndex = acquireResult.value; - } else { - switch (acquireResult.result) { - case vk::Result::eSuboptimalKHR: - case vk::Result::eErrorOutOfDateKHR: { - // Surface resized - vk::Extent2D swapchainExtent; - { - int windowWidth, windowHeight; - // Block until we have a valid surface-area to present to - // Usually this is because the window has been minimized - // Todo: We should still be rendering even without a valid swapchain - do { - SDL_Vulkan_GetDrawableSize(targetWindow, &windowWidth, &windowHeight); - } while (!windowWidth || !windowHeight); - swapchainExtent.width = windowWidth; - swapchainExtent.height = windowHeight; - } - recreateSwapchain(swapchainSurface, swapchainExtent); - break; - } - default: { - Helpers::panic("Error acquiring next swapchain image: %s\n", vk::to_string(acquireResult.result).c_str()); - } - } - } - } - - const bool topActiveFb = externalRegs[PICA::ExternalRegs::Framebuffer0Select] & 1; - const u32 topScreenAddr = externalRegs[topActiveFb ? PICA::ExternalRegs::Framebuffer0AFirstAddr : PICA::ExternalRegs::Framebuffer0ASecondAddr]; - - const bool bottomActiveFb = externalRegs[PICA::ExternalRegs::Framebuffer1Select] & 1; - const u32 bottomScreenAddr = - externalRegs[bottomActiveFb ? PICA::ExternalRegs::Framebuffer1AFirstAddr : PICA::ExternalRegs::Framebuffer1ASecondAddr]; - - //// Render Display - { - static const std::array renderScreenScopeColor = {{1.0f, 0.0f, 1.0f, 1.0f}}; - - Vulkan::DebugLabelScope debugScope(getCurrentCommandBuffer(), renderScreenScopeColor, "Render Screen"); - - vk::RenderPassBeginInfo renderPassBeginInfo = {}; - renderPassBeginInfo.renderPass = getRenderPass(vk::Format::eR8G8B8A8Unorm, {}); - - renderPassBeginInfo.framebuffer = screenTextureFramebuffers[frameBufferingIndex].get(); - renderPassBeginInfo.renderArea.offset = vk::Offset2D(); - renderPassBeginInfo.renderArea.extent = vk::Extent2D(400, 240 * 2); - - getCurrentCommandBuffer().beginRenderPass(renderPassBeginInfo, vk::SubpassContents::eInline); - - const Texture* topScreen = findRenderTexture(topScreenAddr); - const Texture* bottomScreen = findRenderTexture(bottomScreenAddr); - - if (topScreen || bottomScreen) { - getCurrentCommandBuffer().bindPipeline(vk::PipelineBindPoint::eGraphics, displayPipeline.get()); - - // Update descriptors before binding to the command buffer - if (topScreen) { - descriptorUpdateBatch->addImageSampler( - topDisplayPipelineDescriptorSet[frameBufferingIndex], 0, topScreen->imageView.get(), samplerCache->getSampler(sampler2D()) - ); - } - - if (bottomScreen) { - descriptorUpdateBatch->addImageSampler( - bottomDisplayPipelineDescriptorSet[frameBufferingIndex], 0, bottomScreen->imageView.get(), samplerCache->getSampler(sampler2D()) - ); - } - descriptorUpdateBatch->flush(); - - // Render top screen - if (topScreen) { - static const std::array scopeColor = {{1.0f, 0.0f, 0.0f, 1.0f}}; - Vulkan::DebugLabelScope debugScope(getCurrentCommandBuffer(), scopeColor, "Top Screen: %08x", topScreenAddr); - - getCurrentCommandBuffer().bindDescriptorSets( - vk::PipelineBindPoint::eGraphics, displayPipelineLayout.get(), 0, {topDisplayPipelineDescriptorSet[frameBufferingIndex]}, {} - ); - getCurrentCommandBuffer().setViewport(0, vk::Viewport(0, 0, 400, 240)); - getCurrentCommandBuffer().setScissor(0, vk::Rect2D({0, 0}, {400, 240})); - getCurrentCommandBuffer().draw(3, 1, 0, 0); - } - - // Render bottom screen - if (bottomScreen) { - static const std::array scopeColor = {{0.0f, 1.0f, 0.0f, 1.0f}}; - Vulkan::DebugLabelScope debugScope(getCurrentCommandBuffer(), scopeColor, "Bottom Screen: %08x", bottomScreenAddr); - getCurrentCommandBuffer().bindDescriptorSets( - vk::PipelineBindPoint::eGraphics, displayPipelineLayout.get(), 0, {bottomDisplayPipelineDescriptorSet[frameBufferingIndex]}, {} - ); - getCurrentCommandBuffer().bindPipeline(vk::PipelineBindPoint::eGraphics, displayPipeline.get()); - getCurrentCommandBuffer().setViewport(0, vk::Viewport(40, 240, 320, 240)); - getCurrentCommandBuffer().setScissor(0, vk::Rect2D({40, 240}, {320, 240})); - getCurrentCommandBuffer().draw(3, 1, 0, 0); - } - } - - getCurrentCommandBuffer().endRenderPass(); - } - - //// Present - if (swapchainImageIndex != swapchainImageInvalid) { - static const std::array presentScopeColor = {{1.0f, 1.0f, 1.0f, 1.0f}}; - Vulkan::DebugLabelScope debugScope(getCurrentCommandBuffer(), presentScopeColor, "Present"); - - // Prepare swapchain image for color-clear/blit-dst, prepare top/bottom screen for blit-src - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eTransfer, vk::DependencyFlags(), {}, {}, - { - // swapchainImage: Undefined -> TransferDst - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eMemoryRead, vk::AccessFlagBits::eTransferWrite, vk::ImageLayout::eUndefined, - vk::ImageLayout::eTransferDstOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, swapchainImages[swapchainImageIndex], - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - // screenTexture: ShaderReadOnlyOptimal -> TransferSrc - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eColorAttachmentWrite, vk::AccessFlagBits::eTransferRead, vk::ImageLayout::eShaderReadOnlyOptimal, - vk::ImageLayout::eTransferSrcOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, screenTexture[frameBufferingIndex].get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - } - ); - - // Clear swapchain image with black - static const std::array clearColor = {{0.0f, 0.0f, 0.0f, 1.0f}}; - getCurrentCommandBuffer().clearColorImage( - swapchainImages[swapchainImageIndex], vk::ImageLayout::eTransferDstOptimal, clearColor, - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ); - - // Blit screentexture into swapchain image - static const vk::ImageBlit screenBlit( - vk::ImageSubresourceLayers(vk::ImageAspectFlagBits::eColor, 0, 0, 1), {vk::Offset3D{}, vk::Offset3D{400, 240 * 2, 1}}, - vk::ImageSubresourceLayers(vk::ImageAspectFlagBits::eColor, 0, 0, 1), {vk::Offset3D{}, vk::Offset3D{400, 240 * 2, 1}} - ); - getCurrentCommandBuffer().blitImage( - screenTexture[frameBufferingIndex].get(), vk::ImageLayout::eTransferSrcOptimal, swapchainImages[swapchainImageIndex], - vk::ImageLayout::eTransferDstOptimal, {screenBlit}, vk::Filter::eNearest - ); - - // Prepare swapchain image for present - // Transfer screenTexture back into ColorAttachmentOptimal - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eAllGraphics, vk::DependencyFlags(), {}, {}, - { - // swapchainImage: TransferDst -> Preset (wait for all writes) - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eTransferWrite, vk::AccessFlagBits::eColorAttachmentWrite, vk::ImageLayout::eTransferDstOptimal, - vk::ImageLayout::ePresentSrcKHR, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, swapchainImages[swapchainImageIndex], - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - // screenTexture: TransferSrc -> eShaderReadOnlyOptimal (wait for all reads) - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eTransferRead, vk::AccessFlagBits::eShaderRead, vk::ImageLayout::eTransferSrcOptimal, - vk::ImageLayout::eShaderReadOnlyOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, - screenTexture[frameBufferingIndex].get(), vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - } - ); - } - - if (const vk::Result endResult = getCurrentCommandBuffer().end(); endResult != vk::Result::eSuccess) { - Helpers::panic("Error ending command buffer recording: %s\n", vk::to_string(endResult).c_str()); - } - - vk::SubmitInfo submitInfo = {}; - // Wait for any previous uses of the image image to finish presenting - std::vector waitSemaphores; - std::vector waitSemaphoreStages; - { - if (swapchainImageIndex != swapchainImageInvalid) { - waitSemaphores.emplace_back(swapImageFreeSemaphore[frameBufferingIndex].get()); - static const vk::PipelineStageFlags waitStageMask = vk::PipelineStageFlagBits::eColorAttachmentOutput; - waitSemaphoreStages.emplace_back(waitStageMask); - } - - submitInfo.setWaitSemaphores(waitSemaphores); - submitInfo.setWaitDstStageMask(waitSemaphoreStages); - } - // Signal when finished - submitInfo.setSignalSemaphores(renderFinishedSemaphore[frameBufferingIndex].get()); - - submitInfo.setCommandBuffers(getCurrentCommandBuffer()); - - device->resetFences({frameFinishedFences[frameBufferingIndex].get()}); - - if (const vk::Result submitResult = graphicsQueue.submit({submitInfo}, frameFinishedFences[frameBufferingIndex].get()); - submitResult != vk::Result::eSuccess) { - Helpers::panic("Error submitting to graphics queue: %s\n", vk::to_string(submitResult).c_str()); - } - - if (swapchainImageIndex != swapchainImageInvalid) { - vk::PresentInfoKHR presentInfo = {}; - presentInfo.setWaitSemaphores(renderFinishedSemaphore[frameBufferingIndex].get()); - presentInfo.setSwapchains(swapchain.get()); - presentInfo.setImageIndices(swapchainImageIndex); - - if (const auto presentResult = presentQueue.presentKHR(presentInfo); presentResult == vk::Result::eSuccess) { - } else { - switch (presentResult) { - case vk::Result::eSuboptimalKHR: - case vk::Result::eErrorOutOfDateKHR: { - // Surface resized - vk::Extent2D swapchainExtent; - { - int windowWidth, windowHeight; - SDL_Vulkan_GetDrawableSize(targetWindow, &windowWidth, &windowHeight); - swapchainExtent.width = windowWidth; - swapchainExtent.height = windowHeight; - } - recreateSwapchain(swapchainSurface, swapchainExtent); - break; - } - default: { - Helpers::panic("Error presenting swapchain image: %s\n", vk::to_string(presentResult).c_str()); - } - } - } - } - - // We are now working on the next frame - frameBufferingIndex = ((frameBufferingIndex + 1) % frameBufferingCount); - - // Wait for next frame to be ready - - // Block, on the CPU, to ensure that this buffered-frame is ready for more work - if (auto waitResult = device->waitForFences({frameFinishedFences[frameBufferingIndex].get()}, true, std::numeric_limits::max()); - waitResult != vk::Result::eSuccess) { - Helpers::panic("Error waiting on swapchain fence: %s\n", vk::to_string(waitResult).c_str()); - } - - { - frameFramebuffers[frameBufferingIndex].clear(); - - getCurrentCommandBuffer().reset(); - - vk::CommandBufferBeginInfo beginInfo = {}; - beginInfo.flags = vk::CommandBufferUsageFlagBits::eSimultaneousUse; - - if (const vk::Result beginResult = getCurrentCommandBuffer().begin(beginInfo); beginResult != vk::Result::eSuccess) { - Helpers::panic("Error beginning command buffer recording: %s\n", vk::to_string(beginResult).c_str()); - } - } -} - -void RendererVK::initGraphicsContext(SDL_Window* window) { - targetWindow = window; - // Resolve all instance function pointers - static vk::DynamicLoader dl; - VULKAN_HPP_DEFAULT_DISPATCHER.init(dl.getProcAddress("vkGetInstanceProcAddr")); - - // Create Instance - vk::ApplicationInfo applicationInfo = {}; - applicationInfo.apiVersion = VK_API_VERSION_1_1; - - applicationInfo.pEngineName = "Alber"; - applicationInfo.engineVersion = VK_MAKE_VERSION(1, 0, 0); - - applicationInfo.pApplicationName = "Alber"; - applicationInfo.applicationVersion = VK_MAKE_VERSION(1, 0, 0); - - vk::InstanceCreateInfo instanceInfo = {}; - - instanceInfo.pApplicationInfo = &applicationInfo; - - std::unordered_set instanceExtensionsAvailable = {}; - if (const auto enumerateResult = vk::enumerateInstanceExtensionProperties(); enumerateResult.result == vk::Result::eSuccess) { - for (const auto& curExtension : enumerateResult.value) { - instanceExtensionsAvailable.emplace(curExtension.extensionName.data()); - } - } - - std::vector instanceExtensions = {}; - - if (instanceExtensionsAvailable.contains(VK_KHR_SURFACE_EXTENSION_NAME)) { - instanceExtensions.emplace_back(VK_KHR_SURFACE_EXTENSION_NAME); - } - - bool debugUtils = false; - if (instanceExtensionsAvailable.contains(VK_EXT_DEBUG_UTILS_EXTENSION_NAME)) { - instanceExtensions.emplace_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME); - debugUtils = true; - } - -#if defined(__APPLE__) - if (instanceExtensionsAvailable.contains(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME)) { - instanceExtensions.emplace_back(VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME); - } -#endif - - // Get any additional extensions that SDL wants as well - if (targetWindow) { - unsigned int extensionCount = 0; - SDL_Vulkan_GetInstanceExtensions(targetWindow, &extensionCount, nullptr); - std::vector sdlInstanceExtensions(extensionCount); - SDL_Vulkan_GetInstanceExtensions(targetWindow, &extensionCount, sdlInstanceExtensions.data()); - - instanceExtensions.insert(instanceExtensions.end(), sdlInstanceExtensions.begin(), sdlInstanceExtensions.end()); - } - -#if defined(__APPLE__) - instanceInfo.flags |= vk::InstanceCreateFlagBits::eEnumeratePortabilityKHR; -#endif - - instanceInfo.ppEnabledExtensionNames = instanceExtensions.data(); - instanceInfo.enabledExtensionCount = instanceExtensions.size(); - - if (auto createResult = vk::createInstanceUnique(instanceInfo); createResult.result == vk::Result::eSuccess) { - instance = std::move(createResult.value); - } else { - Helpers::panic("Error creating Vulkan instance: %s\n", vk::to_string(createResult.result).c_str()); - } - // Initialize instance-specific function pointers - VULKAN_HPP_DEFAULT_DISPATCHER.init(instance.get()); - - // Enable debug messenger if the instance was able to be created with debug_utils - if (debugUtils) { - vk::DebugUtilsMessengerCreateInfoEXT debugCreateInfo{}; - debugCreateInfo.messageSeverity = vk::DebugUtilsMessageSeverityFlagBitsEXT::eVerbose | vk::DebugUtilsMessageSeverityFlagBitsEXT::eInfo | - vk::DebugUtilsMessageSeverityFlagBitsEXT::eError | vk::DebugUtilsMessageSeverityFlagBitsEXT::eWarning; - debugCreateInfo.messageType = vk::DebugUtilsMessageTypeFlagBitsEXT::ePerformance | vk::DebugUtilsMessageTypeFlagBitsEXT::eValidation | - vk::DebugUtilsMessageTypeFlagBitsEXT::eGeneral; - debugCreateInfo.pfnUserCallback = &Vulkan::debugMessageCallback; - if (auto createResult = instance->createDebugUtilsMessengerEXTUnique(debugCreateInfo); createResult.result == vk::Result::eSuccess) { - debugMessenger = std::move(createResult.value); - } else { - Helpers::warn("Error registering debug messenger: %s", vk::to_string(createResult.result).c_str()); - } - } - - // Create surface - if (window) { - if (VkSurfaceKHR newSurface; SDL_Vulkan_CreateSurface(window, instance.get(), &newSurface)) { - swapchainSurface = newSurface; - } else { - Helpers::warn("Error creating Vulkan surface"); - } - } - - // Pick physical device - if (auto enumerateResult = instance->enumeratePhysicalDevices(); enumerateResult.result == vk::Result::eSuccess) { - std::vector physicalDevices = std::move(enumerateResult.value); - std::vector::iterator partitionEnd = physicalDevices.end(); - - // Prefer GPUs that can access the surface - if (swapchainSurface) { - const auto surfaceSupport = [this](const vk::PhysicalDevice& physicalDevice) -> bool { - const usize queueCount = physicalDevice.getQueueFamilyProperties().size(); - for (usize queueIndex = 0; queueIndex < queueCount; ++queueIndex) { - if (auto supportResult = physicalDevice.getSurfaceSupportKHR(queueIndex, swapchainSurface); - supportResult.result == vk::Result::eSuccess) { - return supportResult.value; - } - } - return false; - }; - - partitionEnd = std::stable_partition(physicalDevices.begin(), partitionEnd, surfaceSupport); - } - - // Prefer Discrete GPUs - const auto isDiscrete = [](const vk::PhysicalDevice& physicalDevice) -> bool { - return physicalDevice.getProperties().deviceType == vk::PhysicalDeviceType::eDiscreteGpu; - }; - partitionEnd = std::stable_partition(physicalDevices.begin(), partitionEnd, isDiscrete); - - // Pick the "best" out of all of the previous criteria, preserving the order that the - // driver gave us the devices in(ex: optimus configuration) - physicalDevice = physicalDevices.front(); - } else { - Helpers::panic("Error enumerating physical devices: %s\n", vk::to_string(enumerateResult.result).c_str()); - } - - // Get device queues - - std::vector deviceQueueInfos; - { - const std::vector queueFamilyProperties = physicalDevice.getQueueFamilyProperties(); - std::unordered_set queueFamilyRequests; - // Get present queue family - if (swapchainSurface) { - for (usize queueFamilyIndex = 0; queueFamilyIndex < queueFamilyProperties.size(); ++queueFamilyIndex) { - if (auto supportResult = physicalDevice.getSurfaceSupportKHR(queueFamilyIndex, swapchainSurface); - supportResult.result == vk::Result::eSuccess) { - if (supportResult.value) { - presentQueueFamily = queueFamilyIndex; - break; - } - } - } - queueFamilyRequests.emplace(presentQueueFamily); - } - - static const float queuePriority = 1.0f; - - graphicsQueueFamily = findQueueFamily(queueFamilyProperties, vk::QueueFlagBits::eGraphics); - queueFamilyRequests.emplace(graphicsQueueFamily); - computeQueueFamily = findQueueFamily(queueFamilyProperties, vk::QueueFlagBits::eCompute); - queueFamilyRequests.emplace(computeQueueFamily); - transferQueueFamily = findQueueFamily(queueFamilyProperties, vk::QueueFlagBits::eTransfer); - queueFamilyRequests.emplace(transferQueueFamily); - - // Requests a singular queue for each unique queue-family - - for (const u32 queueFamilyIndex : queueFamilyRequests) { - deviceQueueInfos.emplace_back(vk::DeviceQueueCreateInfo({}, queueFamilyIndex, 1, &queuePriority)); - } - } - - // Create Device - vk::DeviceCreateInfo deviceInfo = {}; - - // Device extensions - std::vector deviceExtensions = { -#if defined(__APPLE__) - "VK_KHR_portability_subset", -#endif - // VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME - }; - - std::unordered_set physicalDeviceExtensions; - if (const auto enumerateResult = physicalDevice.enumerateDeviceExtensionProperties(); enumerateResult.result == vk::Result::eSuccess) { - for (const auto& extension : enumerateResult.value) { - physicalDeviceExtensions.insert(extension.extensionName); - } - } else { - Helpers::panic("Error enumerating physical devices extensions: %s\n", vk::to_string(enumerateResult.result).c_str()); - } - - // Opertional extensions - - // Optionally enable the swapchain, to support "headless" rendering - if (physicalDeviceExtensions.contains(VK_KHR_SWAPCHAIN_EXTENSION_NAME)) { - deviceExtensions.emplace_back(VK_KHR_SWAPCHAIN_EXTENSION_NAME); - } - - deviceInfo.setPEnabledExtensionNames(deviceExtensions); - - vk::StructureChain deviceFeatureChain = {}; - - auto& deviceFeatures = deviceFeatureChain.get().features; - - auto& deviceTimelineFeatures = deviceFeatureChain.get(); - // deviceTimelineFeatures.timelineSemaphore = true; - - deviceInfo.pNext = &deviceFeatureChain.get(); - - deviceInfo.setQueueCreateInfos(deviceQueueInfos); - - if (auto createResult = physicalDevice.createDeviceUnique(deviceInfo); createResult.result == vk::Result::eSuccess) { - device = std::move(createResult.value); - } else { - Helpers::panic("Error creating logical device: %s\n", vk::to_string(createResult.result).c_str()); - } - - // Initialize device-specific function pointers - VULKAN_HPP_DEFAULT_DISPATCHER.init(device.get()); - - if (presentQueueFamily != VK_QUEUE_FAMILY_IGNORED) { - presentQueue = device->getQueue(presentQueueFamily, 0); - } - graphicsQueue = device->getQueue(graphicsQueueFamily, 0); - computeQueue = device->getQueue(computeQueueFamily, 0); - transferQueue = device->getQueue(transferQueueFamily, 0); - - // Command pool - vk::CommandPoolCreateInfo commandPoolInfo = {}; - commandPoolInfo.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer; - - if (auto createResult = device->createCommandPoolUnique(commandPoolInfo); createResult.result == vk::Result::eSuccess) { - commandPool = std::move(createResult.value); - } else { - Helpers::panic("Error creating command pool: %s\n", vk::to_string(createResult.result).c_str()); - } - - // Create swapchain - if (targetWindow && swapchainSurface) { - vk::Extent2D swapchainExtent; - { - int windowWidth, windowHeight; - SDL_Vulkan_GetDrawableSize(window, &windowWidth, &windowHeight); - swapchainExtent.width = windowWidth; - swapchainExtent.height = windowHeight; - } - recreateSwapchain(swapchainSurface, swapchainExtent); - } - - // Create frame-buffering data - // Frame-buffering Command buffer(s) - vk::CommandBufferAllocateInfo commandBuffersInfo = {}; - commandBuffersInfo.commandPool = commandPool.get(); - commandBuffersInfo.level = vk::CommandBufferLevel::ePrimary; - commandBuffersInfo.commandBufferCount = frameBufferingCount; - - if (auto allocateResult = device->allocateCommandBuffersUnique(commandBuffersInfo); allocateResult.result == vk::Result::eSuccess) { - frameCommandBuffers = std::move(allocateResult.value); - } else { - Helpers::panic("Error allocating command buffer: %s\n", vk::to_string(allocateResult.result).c_str()); - } - - // Initialize the first command buffer to be in the RECORDING state - vk::CommandBufferBeginInfo beginInfo = {}; - beginInfo.flags = vk::CommandBufferUsageFlagBits::eSimultaneousUse; - - if (const vk::Result beginResult = frameCommandBuffers[frameBufferingIndex]->begin(beginInfo); beginResult != vk::Result::eSuccess) { - Helpers::panic("Error beginning command buffer recording: %s\n", vk::to_string(beginResult).c_str()); - } - - // Frame-buffering synchronization primitives - vk::FenceCreateInfo fenceInfo = {}; - fenceInfo.flags = vk::FenceCreateFlagBits::eSignaled; - - vk::SemaphoreCreateInfo semaphoreInfo = {}; - - swapImageFreeSemaphore.resize(frameBufferingCount); - renderFinishedSemaphore.resize(frameBufferingCount); - frameFinishedFences.resize(frameBufferingCount); - frameFramebuffers.resize(frameBufferingCount); - frameCommandBuffers.resize(frameBufferingCount); - - vk::ImageCreateInfo screenTextureInfo = {}; - screenTextureInfo.setImageType(vk::ImageType::e2D); - screenTextureInfo.setFormat(vk::Format::eR8G8B8A8Unorm); - screenTextureInfo.setExtent(vk::Extent3D(400, 240 * 2, 1)); - screenTextureInfo.setMipLevels(1); - screenTextureInfo.setArrayLayers(1); - screenTextureInfo.setSamples(vk::SampleCountFlagBits::e1); - screenTextureInfo.setTiling(vk::ImageTiling::eOptimal); - screenTextureInfo.setUsage( - vk::ImageUsageFlagBits::eColorAttachment | vk::ImageUsageFlagBits::eInputAttachment | vk::ImageUsageFlagBits::eTransferSrc | - vk::ImageUsageFlagBits::eTransferDst - ); - screenTextureInfo.setSharingMode(vk::SharingMode::eExclusive); - screenTextureInfo.setInitialLayout(vk::ImageLayout::eUndefined); - - screenTexture.resize(frameBufferingCount); - screenTextureViews.resize(frameBufferingCount); - screenTextureFramebuffers.resize(frameBufferingCount); - - for (usize i = 0; i < frameBufferingCount; ++i) { - if (auto createResult = device->createSemaphoreUnique(semaphoreInfo); createResult.result == vk::Result::eSuccess) { - swapImageFreeSemaphore[i] = std::move(createResult.value); - - Vulkan::setObjectName(device.get(), swapImageFreeSemaphore[i].get(), "swapImageFreeSemaphore#%zu", i); - } else { - Helpers::panic("Error creating 'present-ready' semaphore: %s\n", vk::to_string(createResult.result).c_str()); - } - - if (auto createResult = device->createSemaphoreUnique(semaphoreInfo); createResult.result == vk::Result::eSuccess) { - renderFinishedSemaphore[i] = std::move(createResult.value); - - Vulkan::setObjectName(device.get(), renderFinishedSemaphore[i].get(), "renderFinishedSemaphore#%zu", i); - } else { - Helpers::panic("Error creating 'post-render' semaphore: %s\n", vk::to_string(createResult.result).c_str()); - } - - if (auto createResult = device->createFenceUnique(fenceInfo); createResult.result == vk::Result::eSuccess) { - frameFinishedFences[i] = std::move(createResult.value); - } else { - Helpers::panic("Error creating 'frame-finished' fence: %s\n", vk::to_string(createResult.result).c_str()); - } - - if (auto createResult = device->createImageUnique(screenTextureInfo); createResult.result == vk::Result::eSuccess) { - screenTexture[i] = std::move(createResult.value); - - Vulkan::setObjectName(device.get(), screenTexture[i].get(), "screenTexture#%zu", i); - } else { - Helpers::panic("Error creating top-screen image: %s\n", vk::to_string(createResult.result).c_str()); - } - } - - // Commit memory to all of our images - { - const auto getImage = [](const vk::UniqueImage& image) -> vk::Image { return image.get(); }; - std::vector images; - std::transform(screenTexture.begin(), screenTexture.end(), std::back_inserter(images), getImage); - - if (auto [result, imageMemory] = Vulkan::commitImageHeap(device.get(), physicalDevice, images); result == vk::Result::eSuccess) { - framebufferMemory = std::move(imageMemory); - } else { - Helpers::panic("Error allocating framebuffer memory: %s\n", vk::to_string(result).c_str()); - } - } - - // Memory is bounded, create views, framebuffer, and layout transitions for screentexture - vk::ImageViewCreateInfo screenTextureViewCreateInfo = {}; - screenTextureViewCreateInfo.viewType = vk::ImageViewType::e2D; - screenTextureViewCreateInfo.format = vk::Format::eR8G8B8A8Unorm; - screenTextureViewCreateInfo.components.r = vk::ComponentSwizzle::eR; - screenTextureViewCreateInfo.components.g = vk::ComponentSwizzle::eG; - screenTextureViewCreateInfo.components.b = vk::ComponentSwizzle::eB; - screenTextureViewCreateInfo.components.a = vk::ComponentSwizzle::eA; - screenTextureViewCreateInfo.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}; - - for (usize i = 0; i < frameBufferingCount; ++i) { - screenTextureViewCreateInfo.image = screenTexture[i].get(); - - if (auto createResult = device->createImageViewUnique(screenTextureViewCreateInfo); createResult.result == vk::Result::eSuccess) { - screenTextureViews[i] = std::move(createResult.value); - } else { - Helpers::panic("Error creating screen texture view: %s\n", vk::to_string(createResult.result).c_str()); - } - - // Initial layout transition - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eAllCommands, vk::DependencyFlags{}, {}, {}, - {vk::ImageMemoryBarrier( - vk::AccessFlagBits::eMemoryWrite, vk::AccessFlagBits::eShaderRead, vk::ImageLayout::eUndefined, - vk::ImageLayout::eShaderReadOnlyOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, screenTexture[i].get(), - screenTextureViewCreateInfo.subresourceRange - )} - ); - - vk::FramebufferCreateInfo framebufferInfo = {}; - framebufferInfo.setRenderPass(getRenderPass(vk::Format::eR8G8B8A8Unorm, {})); - framebufferInfo.setAttachments(screenTextureViews[i].get()); - framebufferInfo.setWidth(400); - framebufferInfo.setHeight(240 * 2); - framebufferInfo.setLayers(1); - if (auto createResult = device->createFramebufferUnique(framebufferInfo); createResult.result == vk::Result::eSuccess) { - screenTextureFramebuffers[i] = std::move(createResult.value); - } else { - Helpers::panic("Error creating screen-texture framebuffer: %s\n", vk::to_string(createResult.result).c_str()); - } - } - - static vk::DescriptorSetLayoutBinding displayShaderLayout[] = { - {// Just a singular texture slot - 0, vk::DescriptorType::eCombinedImageSampler, 1, vk::ShaderStageFlagBits::eFragment}, - }; - - if (auto createResult = Vulkan::DescriptorUpdateBatch::create(device.get()); createResult.has_value()) { - descriptorUpdateBatch = std::make_unique(std::move(createResult.value())); - } else { - Helpers::panic("Error creating descriptor update batch\n"); - } - - if (auto createResult = Vulkan::SamplerCache::create(device.get()); createResult.has_value()) { - samplerCache = std::make_unique(std::move(createResult.value())); - } else { - Helpers::panic("Error creating sampler cache\n"); - } - - if (auto createResult = Vulkan::DescriptorHeap::create(device.get(), displayShaderLayout); createResult.has_value()) { - displayDescriptorHeap = std::make_unique(std::move(createResult.value())); - } else { - Helpers::panic("Error creating descriptor heap\n"); - } - - for (usize i = 0; i < frameBufferingCount; ++i) { - if (auto allocateResult = displayDescriptorHeap->allocateDescriptorSet(); allocateResult.has_value()) { - topDisplayPipelineDescriptorSet.emplace_back(allocateResult.value()); - } else { - Helpers::panic("Error creating descriptor set\n"); - } - if (auto allocateResult = displayDescriptorHeap->allocateDescriptorSet(); allocateResult.has_value()) { - bottomDisplayPipelineDescriptorSet.emplace_back(allocateResult.value()); - } else { - Helpers::panic("Error creating descriptor set\n"); - } - } - - auto vk_resources = cmrc::RendererVK::get_filesystem(); - auto displayVertexShader = vk_resources.open("vulkan_display.vert.spv"); - auto displayFragmentShader = vk_resources.open("vulkan_display.frag.spv"); - - vk::UniqueShaderModule displayVertexShaderModule = createShaderModule(device.get(), displayVertexShader); - vk::UniqueShaderModule displayFragmentShaderModule = createShaderModule(device.get(), displayFragmentShader); - - vk::RenderPass screenTextureRenderPass = getRenderPass(screenTextureInfo.format, {}); - - std::tie(displayPipeline, displayPipelineLayout) = createGraphicsPipeline( - device.get(), {}, {{displayDescriptorHeap.get()->getDescriptorSetLayout()}}, displayVertexShaderModule.get(), - displayFragmentShaderModule.get(), {}, {}, screenTextureRenderPass - ); -} - -void RendererVK::clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) { - const Texture* renderTexture = findRenderTexture(startAddress); - - if (!renderTexture) { - // not found - return; - } - - if (*vk::componentName(renderTexture->format, 0) != 'D') { - // Color-Clear - vk::ClearColorValue clearColor = {}; - - clearColor.float32[0] = Helpers::getBits<24, 8>(value) / 255.0f; // r - clearColor.float32[1] = Helpers::getBits<16, 8>(value) / 255.0f; // g - clearColor.float32[2] = Helpers::getBits<8, 8>(value) / 255.0f; // b - clearColor.float32[3] = Helpers::getBits<0, 8>(value) / 255.0f; // a - - Vulkan::DebugLabelScope scope( - getCurrentCommandBuffer(), clearColor.float32, "ClearBuffer start:%08X end:%08X value:%08X control:%08X\n", startAddress, endAddress, - value, control - ); - - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eTransfer, vk::DependencyFlags(), {}, {}, - { - // renderTexture: ShaderReadOnlyOptimal -> TransferDst - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eShaderRead, vk::AccessFlagBits::eTransferWrite, vk::ImageLayout::eShaderReadOnlyOptimal, - vk::ImageLayout::eTransferDstOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, renderTexture->image.get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - } - ); - - // Clear RenderTarget - getCurrentCommandBuffer().clearColorImage( - renderTexture->image.get(), vk::ImageLayout::eTransferDstOptimal, clearColor, - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ); - - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eAllGraphics, vk::DependencyFlags(), {}, {}, - { - // renderTexture: TransferDst -> eShaderReadOnlyOptimal - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eTransferWrite, vk::AccessFlagBits::eShaderRead, vk::ImageLayout::eTransferDstOptimal, - vk::ImageLayout::eShaderReadOnlyOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, renderTexture->image.get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - } - ); - } else { - // Depth-Clear - vk::ClearDepthStencilValue clearDepthStencil = {}; - - if (vk::componentBits(renderTexture->format, 0) == 16) { - clearDepthStencil.depth = (value & 0xffff) / 65535.0f; - } else { - clearDepthStencil.depth = (value & 0xffffff) / 16777215.0f; - } - - clearDepthStencil.stencil = (value >> 24); // Stencil - - const std::array scopeColor = {{clearDepthStencil.depth, clearDepthStencil.depth, clearDepthStencil.depth, 1.0f}}; - Vulkan::DebugLabelScope scope( - getCurrentCommandBuffer(), scopeColor, "ClearBuffer start:%08X end:%08X value:%08X control:%08X\n", startAddress, endAddress, value, - control - ); - - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eTransfer, vk::DependencyFlags(), {}, {}, - { - // renderTexture: ShaderReadOnlyOptimal -> TransferDst - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eShaderRead, vk::AccessFlagBits::eTransferWrite, vk::ImageLayout::eShaderReadOnlyOptimal, - vk::ImageLayout::eTransferDstOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, renderTexture->image.get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eDepth | vk::ImageAspectFlagBits::eStencil, 0, 1, 0, 1) - ), - } - ); - - static vk::ImageSubresourceRange depthStencilRanges[2] = { - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eDepth, 0, 1, 0, 1), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eStencil, 0, 1, 0, 1)}; - - // Clear RenderTarget - getCurrentCommandBuffer().clearDepthStencilImage( - renderTexture->image.get(), vk::ImageLayout::eTransferDstOptimal, &clearDepthStencil, vk::componentCount(renderTexture->format), - depthStencilRanges - ); - - getCurrentCommandBuffer().pipelineBarrier( - vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eAllGraphics, vk::DependencyFlags(), {}, {}, - { - // renderTexture: TransferDst -> eShaderReadOnlyOptimal - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eTransferWrite, vk::AccessFlagBits::eShaderRead, vk::ImageLayout::eTransferDstOptimal, - vk::ImageLayout::eShaderReadOnlyOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, renderTexture->image.get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eDepth | vk::ImageAspectFlagBits::eStencil, 0, 1, 0, 1) - ), - } - ); - } -} - -// NOTE: The GPU format has RGB5551 and RGB655 swapped compared to internal regs format -static PICA::ColorFmt ToColorFmt(u32 format) { - switch (format) { - case 2: return PICA::ColorFmt::RGB565; - case 3: return PICA::ColorFmt::RGBA5551; - default: return static_cast(format); - } -} - -void RendererVK::displayTransfer(u32 inputAddr, u32 outputAddr, u32 inputSize, u32 outputSize, u32 flags) { - const u32 inputWidth = inputSize & 0xffff; - const u32 inputHeight = inputSize >> 16; - const PICA::ColorFmt inputFormat = ToColorFmt(Helpers::getBits<8, 3>(flags)); - const PICA::ColorFmt outputFormat = ToColorFmt(Helpers::getBits<12, 3>(flags)); - const bool verticalFlip = flags & 1; - const PICA::Scaling scaling = static_cast(Helpers::getBits<24, 2>(flags)); - - u32 outputWidth = outputSize & 0xffff; - u32 outputHeight = outputSize >> 16; - - Texture& srcFramebuffer = getColorRenderTexture(inputAddr, inputFormat, inputWidth, inputHeight); - Math::Rect srcRect = srcFramebuffer.getSubRect(inputAddr, outputWidth, outputHeight); - - if (verticalFlip) { - std::swap(srcRect.bottom, srcRect.top); - } - - // Apply scaling for the destination rectangle. - if (scaling == PICA::Scaling::X || scaling == PICA::Scaling::XY) { - outputWidth >>= 1; - } - - if (scaling == PICA::Scaling::XY) { - outputHeight >>= 1; - } - - Texture& destFramebuffer = getColorRenderTexture(outputAddr, outputFormat, outputWidth, outputHeight); - Math::Rect destRect = destFramebuffer.getSubRect(outputAddr, outputWidth, outputHeight); - - if (inputWidth != outputWidth) { - // Helpers::warn("Strided display transfer is not handled correctly!\n"); - } - - const vk::ImageBlit blitRegion( - vk::ImageSubresourceLayers(vk::ImageAspectFlagBits::eColor, 0, 0, 1), - {vk::Offset3D{(int)srcRect.left, (int)srcRect.top, 0}, vk::Offset3D{(int)srcRect.right, (int)srcRect.bottom, 1}}, - vk::ImageSubresourceLayers(vk::ImageAspectFlagBits::eColor, 0, 0, 1), - {vk::Offset3D{(int)destRect.left, (int)destRect.top, 0}, vk::Offset3D{(int)destRect.right, (int)destRect.bottom, 1}} - ); - - const vk::CommandBuffer& blitCommandBuffer = getCurrentCommandBuffer(); - - static const std::array displayTransferColor = {{1.0f, 1.0f, 0.0f, 1.0f}}; - Vulkan::DebugLabelScope scope( - blitCommandBuffer, displayTransferColor, - "DisplayTransfer inputAddr 0x%08X outputAddr 0x%08X inputWidth %d outputWidth %d inputHeight %d outputHeight %d", inputAddr, outputAddr, - inputWidth, outputWidth, inputHeight, outputHeight - ); - - blitCommandBuffer.pipelineBarrier( - vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eTransfer, vk::DependencyFlags(), {}, {}, - { - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eColorAttachmentWrite, vk::AccessFlagBits::eTransferRead, vk::ImageLayout::eShaderReadOnlyOptimal, - vk::ImageLayout::eTransferSrcOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, srcFramebuffer.image.get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eColorAttachmentWrite, vk::AccessFlagBits::eTransferWrite, vk::ImageLayout::eShaderReadOnlyOptimal, - vk::ImageLayout::eTransferDstOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, destFramebuffer.image.get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - } - ); - - blitCommandBuffer.blitImage( - srcFramebuffer.image.get(), vk::ImageLayout::eTransferSrcOptimal, destFramebuffer.image.get(), vk::ImageLayout::eTransferDstOptimal, - {blitRegion}, vk::Filter::eLinear - ); - - blitCommandBuffer.pipelineBarrier( - vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eAllGraphics, vk::DependencyFlags(), {}, {}, - { - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eTransferRead, vk::AccessFlagBits::eColorAttachmentWrite, vk::ImageLayout::eTransferSrcOptimal, - vk::ImageLayout::eShaderReadOnlyOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, srcFramebuffer.image.get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - vk::ImageMemoryBarrier( - vk::AccessFlagBits::eTransferWrite, vk::AccessFlagBits::eColorAttachmentWrite, vk::ImageLayout::eTransferDstOptimal, - vk::ImageLayout::eShaderReadOnlyOptimal, VK_QUEUE_FAMILY_IGNORED, VK_QUEUE_FAMILY_IGNORED, destFramebuffer.image.get(), - vk::ImageSubresourceRange(vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1) - ), - } - ); -} - -void RendererVK::textureCopy(u32 inputAddr, u32 outputAddr, u32 totalBytes, u32 inputSize, u32 outputSize, u32 flags) {} - -void RendererVK::drawVertices(PICA::PrimType primType, std::span vertices) { - using namespace Helpers; - - const u32 depthControl = regs[PICA::InternalRegs::DepthAndColorMask]; - const bool depthTestEnable = depthControl & 1; - const bool depthWriteEnable = getBit<12>(depthControl); - const int depthFunc = getBits<4, 3>(depthControl); - const vk::ColorComponentFlags colorMask = vk::ColorComponentFlags(getBits<8, 4>(depthControl)); - - const vk::RenderPass curRenderPass = getRenderPass(colourBufferFormat, depthTestEnable ? std::make_optional(depthBufferFormat) : std::nullopt); - - // Create framebuffer, find a way to cache this! - vk::Framebuffer curFramebuffer = {}; - { - std::vector renderTargets; - - const auto& colorTexture = getColorRenderTexture(colourBufferLoc, colourBufferFormat, fbSize[0], fbSize[1]); - renderTargets.emplace_back(colorTexture.imageView.get()); - - if (depthTestEnable) { - const auto& depthTexture = getDepthRenderTexture(depthBufferLoc, depthBufferFormat, fbSize[0], fbSize[1]); - renderTargets.emplace_back(depthTexture.imageView.get()); - } - - vk::FramebufferCreateInfo framebufferInfo = {}; - framebufferInfo.setRenderPass(curRenderPass); - framebufferInfo.setAttachments(renderTargets); - framebufferInfo.setWidth(fbSize[0]); - framebufferInfo.setHeight(fbSize[1]); - framebufferInfo.setLayers(1); - if (auto createResult = device->createFramebufferUnique(framebufferInfo); createResult.result == vk::Result::eSuccess) { - curFramebuffer = (frameFramebuffers[frameBufferingIndex].emplace_back(std::move(createResult.value))).get(); - } else { - Helpers::panic("Error creating render-texture framebuffer: %s\n", vk::to_string(createResult.result).c_str()); - } - } - - vk::RenderPassBeginInfo renderBeginInfo = {}; - renderBeginInfo.renderPass = curRenderPass; - static const vk::ClearValue ClearColors[] = { - vk::ClearColorValue(std::array{0.0f, 0.0f, 0.0f, 0.0f}), - vk::ClearDepthStencilValue(1.0f, 0), - vk::ClearColorValue(std::array{0.0f, 0.0f, 0.0f, 0.0f}), - }; - renderBeginInfo.pClearValues = ClearColors; - renderBeginInfo.clearValueCount = std::size(ClearColors); - renderBeginInfo.renderArea.extent.width = fbSize[0]; - renderBeginInfo.renderArea.extent.height = fbSize[1]; - renderBeginInfo.framebuffer = curFramebuffer; - - const vk::CommandBuffer& commandBuffer = getCurrentCommandBuffer(); - - // Todo: Rather than starting a new renderpass for each draw, do some state-tracking to re-use render-passes - commandBuffer.beginRenderPass(renderBeginInfo, vk::SubpassContents::eInline); - static const std::array labelColor = {{1.0f, 0.0f, 0.0f, 1.0f}}; - Vulkan::insertDebugLabel(commandBuffer, labelColor, "DrawVertices: %u vertices", vertices.size()); - commandBuffer.endRenderPass(); -} - -void RendererVK::screenshot(const std::string& name) {} - -void RendererVK::deinitGraphicsContext() { - // Invalidate the entire texture cache since they'll no longer be valid - textureCache.clear(); - - // TODO: Make it so that depth and colour buffers get written back to 3DS memory - printf("RendererVK::DeinitGraphicsContext called\n"); -} \ No newline at end of file diff --git a/src/core/renderer_vk/vk_api.cpp b/src/core/renderer_vk/vk_api.cpp deleted file mode 100644 index 4f879dc2..00000000 --- a/src/core/renderer_vk/vk_api.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#include "renderer_vk/vk_api.hpp" - -VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE; \ No newline at end of file diff --git a/src/core/renderer_vk/vk_debug.cpp b/src/core/renderer_vk/vk_debug.cpp deleted file mode 100644 index f3f099c8..00000000 --- a/src/core/renderer_vk/vk_debug.cpp +++ /dev/null @@ -1,163 +0,0 @@ -#include "renderer_vk/vk_debug.hpp" - -#include -#include -#include -#include -#include - -#include "helpers.hpp" - -static std::uint8_t severityColor(vk::DebugUtilsMessageSeverityFlagBitsEXT Severity) { - switch (Severity) { - case vk::DebugUtilsMessageSeverityFlagBitsEXT::eVerbose: { - // Dark Gray - return 90u; - } - case vk::DebugUtilsMessageSeverityFlagBitsEXT::eInfo: { - // Light Gray - return 90u; - } - case vk::DebugUtilsMessageSeverityFlagBitsEXT::eWarning: { - // Light Magenta - return 95u; - } - case vk::DebugUtilsMessageSeverityFlagBitsEXT::eError: { - // Light red - return 91u; - } - } - // Default Foreground Color - return 39u; -} - -static std::uint8_t messageTypeColor(vk::DebugUtilsMessageTypeFlagsEXT MessageType) { - if (MessageType & vk::DebugUtilsMessageTypeFlagBitsEXT::eGeneral) { - // Dim - return 2u; - } - if (MessageType & vk::DebugUtilsMessageTypeFlagBitsEXT::ePerformance) { - // Bold/Bright - return 1u; - } - if (MessageType & vk::DebugUtilsMessageTypeFlagBitsEXT::eValidation) { - // Light Gray - return 90u; - } - // Default Foreground Color - return 39u; -} - -namespace Vulkan { - - static void debugMessageCallback( - vk::DebugUtilsMessageSeverityFlagBitsEXT MessageSeverity, vk::DebugUtilsMessageTypeFlagsEXT MessageType, - const vk::DebugUtilsMessengerCallbackDataEXT& CallbackData - ) { - Helpers::debug_printf( - "\033[%um[vk][%s]: \033[%um%s\033[0m\n", severityColor(MessageSeverity), CallbackData.pMessageIdName, messageTypeColor(MessageType), - CallbackData.pMessage - ); - } - - VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageCallback( - VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageType, - const VkDebugUtilsMessengerCallbackDataEXT* callbackData, void* userData - ) { - debugMessageCallback( - vk::DebugUtilsMessageSeverityFlagBitsEXT(messageSeverity), vk::DebugUtilsMessageTypeFlagsEXT(messageType), *callbackData - ); - return VK_FALSE; - } - - #ifdef GPU_DEBUG_INFO - void setObjectName(vk::Device device, vk::ObjectType objectType, const void* objectHandle, const char* format, ...) { - va_list args; - va_start(args, format); - const auto nameLength = std::vsnprintf(nullptr, 0, format, args); - va_end(args); - if (nameLength < 0) { - // Invalid vsnprintf - return; - } - - std::unique_ptr objectName = std::make_unique(std::size_t(nameLength) + 1u); - - // Write formatted object name - va_start(args, format); - std::vsnprintf(objectName.get(), std::size_t(nameLength) + 1u, format, args); - va_end(args); - - vk::DebugUtilsObjectNameInfoEXT nameInfo = {}; - nameInfo.objectType = objectType; - nameInfo.objectHandle = reinterpret_cast(objectHandle); - nameInfo.pObjectName = objectName.get(); - - if (device.setDebugUtilsObjectNameEXT(nameInfo) != vk::Result::eSuccess) { - // Failed to set object name - } - } - - void beginDebugLabel(vk::CommandBuffer commandBuffer, std::span color, const char* format, ...) { - va_list args; - va_start(args, format); - const auto nameLength = std::vsnprintf(nullptr, 0, format, args); - va_end(args); - if (nameLength < 0) { - // Invalid vsnprintf - return; - } - - std::unique_ptr objectName = std::make_unique(std::size_t(nameLength) + 1u); - - // Write formatted object name - va_start(args, format); - std::vsnprintf(objectName.get(), std::size_t(nameLength) + 1u, format, args); - va_end(args); - - vk::DebugUtilsLabelEXT labelInfo = {}; - labelInfo.pLabelName = objectName.get(); - labelInfo.color[0] = color[0]; - labelInfo.color[1] = color[1]; - labelInfo.color[2] = color[2]; - labelInfo.color[3] = color[3]; - - commandBuffer.beginDebugUtilsLabelEXT(labelInfo); - } - - void insertDebugLabel(vk::CommandBuffer commandBuffer, std::span color, const char* format, ...) { - va_list args; - va_start(args, format); - const auto nameLength = std::vsnprintf(nullptr, 0, format, args); - va_end(args); - if (nameLength < 0) { - // Invalid vsnprintf - return; - } - - std::unique_ptr objectName = std::make_unique(std::size_t(nameLength) + 1u); - - // Write formatted object name - va_start(args, format); - std::vsnprintf(objectName.get(), std::size_t(nameLength) + 1u, format, args); - va_end(args); - - vk::DebugUtilsLabelEXT labelInfo = {}; - labelInfo.pLabelName = objectName.get(); - labelInfo.color[0] = color[0]; - labelInfo.color[1] = color[1]; - labelInfo.color[2] = color[2]; - labelInfo.color[3] = color[3]; - - commandBuffer.insertDebugUtilsLabelEXT(labelInfo); - } - - void endDebugLabel(vk::CommandBuffer commandBuffer) { commandBuffer.endDebugUtilsLabelEXT(); } - #else - void setObjectName(vk::Device device, vk::ObjectType objectType, const void* objectHandle, const char* format, ...) {} - void beginDebugLabel(vk::CommandBuffer commandBuffer, std::span color, const char* format, ...) {} - void insertDebugLabel(vk::CommandBuffer commandBuffer, std::span color, const char* format, ...) {} - void endDebugLabel(vk::CommandBuffer commandBuffer) {} - #endif // GPU_DEBUG_INFO - -} // namespace Vulkan \ No newline at end of file diff --git a/src/core/renderer_vk/vk_descriptor_heap.cpp b/src/core/renderer_vk/vk_descriptor_heap.cpp deleted file mode 100644 index ecf71d92..00000000 --- a/src/core/renderer_vk/vk_descriptor_heap.cpp +++ /dev/null @@ -1,119 +0,0 @@ -#include "renderer_vk/vk_descriptor_heap.hpp" - -#include -#include -#include - -namespace Vulkan { - - DescriptorHeap::DescriptorHeap(vk::Device device) : device(device) {} - - std::optional DescriptorHeap::allocateDescriptorSet() { - // Find a free slot - const auto freeSlot = std::find(allocationMap.begin(), allocationMap.end(), false); - - // If there is no free slot, return - if (freeSlot == allocationMap.end()) { - return std::nullopt; - } - - // Mark the slot as allocated - *freeSlot = true; - - const u16 index = static_cast(std::distance(allocationMap.begin(), freeSlot)); - - vk::UniqueDescriptorSet& newDescriptorSet = descriptorSets[index]; - - if (!newDescriptorSet) { - // Descriptor set doesn't exist yet. Allocate a new one - vk::DescriptorSetAllocateInfo allocateInfo = {}; - - allocateInfo.descriptorPool = descriptorPool.get(); - allocateInfo.pSetLayouts = &descriptorSetLayout.get(); - allocateInfo.descriptorSetCount = 1; - - if (auto AllocateResult = device.allocateDescriptorSetsUnique(allocateInfo); AllocateResult.result == vk::Result::eSuccess) { - newDescriptorSet = std::move(AllocateResult.value[0]); - } else { - // Error allocating descriptor set - return std::nullopt; - } - } - - return newDescriptorSet.get(); - } - - bool DescriptorHeap::freeDescriptorSet(vk::DescriptorSet Set) { - // Find the descriptor set - const auto found = - std::find_if(descriptorSets.begin(), descriptorSets.end(), [&Set](const auto& CurSet) -> bool { return CurSet.get() == Set; }); - - // If the descriptor set is not found, return - if (found == descriptorSets.end()) { - return false; - } - - // Mark the slot as free - const u16 index = static_cast(std::distance(descriptorSets.begin(), found)); - - allocationMap[index] = false; - - return true; - } - - std::optional DescriptorHeap::create( - vk::Device device, std::span bindings, u16 descriptorHeapCount - ) { - DescriptorHeap newDescriptorHeap(device); - - // Create a histogram of each of the descriptor types and how many of each - // the pool should have - // Todo: maybe keep this around as a hash table to do more dynamic - // allocations of descriptor sets rather than allocating them all up-front - std::vector poolSizes; - { - std::unordered_map descriptorTypeCounts; - - for (const auto& binding : bindings) { - descriptorTypeCounts[binding.descriptorType] += binding.descriptorCount; - } - for (const auto& descriptorTypeCount : descriptorTypeCounts) { - poolSizes.push_back(vk::DescriptorPoolSize(descriptorTypeCount.first, descriptorTypeCount.second * descriptorHeapCount)); - } - } - - // Create descriptor pool - { - vk::DescriptorPoolCreateInfo poolInfo; - poolInfo.flags = vk::DescriptorPoolCreateFlagBits::eFreeDescriptorSet; - poolInfo.maxSets = descriptorHeapCount; - poolInfo.pPoolSizes = poolSizes.data(); - poolInfo.poolSizeCount = poolSizes.size(); - if (auto createResult = device.createDescriptorPoolUnique(poolInfo); createResult.result == vk::Result::eSuccess) { - newDescriptorHeap.descriptorPool = std::move(createResult.value); - } else { - return std::nullopt; - } - } - - // Create descriptor set layout - { - vk::DescriptorSetLayoutCreateInfo layoutInfo; - layoutInfo.pBindings = bindings.data(); - layoutInfo.bindingCount = bindings.size(); - - if (auto createResult = device.createDescriptorSetLayoutUnique(layoutInfo); createResult.result == vk::Result::eSuccess) { - newDescriptorHeap.descriptorSetLayout = std::move(createResult.value); - } else { - return std::nullopt; - } - } - - newDescriptorHeap.descriptorSets.resize(descriptorHeapCount); - newDescriptorHeap.allocationMap.resize(descriptorHeapCount); - - newDescriptorHeap.bindings.assign(bindings.begin(), bindings.end()); - - return {std::move(newDescriptorHeap)}; - } -} // namespace Vulkan \ No newline at end of file diff --git a/src/core/renderer_vk/vk_descriptor_update_batch.cpp b/src/core/renderer_vk/vk_descriptor_update_batch.cpp deleted file mode 100644 index a414ca2d..00000000 --- a/src/core/renderer_vk/vk_descriptor_update_batch.cpp +++ /dev/null @@ -1,98 +0,0 @@ -#include "renderer_vk/vk_descriptor_update_batch.hpp" - -#include -#include - -namespace Vulkan { - - void DescriptorUpdateBatch::flush() { - device.updateDescriptorSets({std::span(descriptorWrites.get(), descriptorWriteEnd)}, {std::span(descriptorCopies.get(), descriptorCopyEnd)}); - - descriptorWriteEnd = 0; - descriptorCopyEnd = 0; - } - - void DescriptorUpdateBatch::addImage(vk::DescriptorSet targetDescriptor, u8 targetBinding, vk::ImageView imageView, vk::ImageLayout imageLayout) { - if (descriptorWriteEnd >= descriptorWriteMax) { - flush(); - } - - const auto& imageInfo = descriptorInfos[descriptorWriteEnd].emplace(vk::Sampler(), imageView, imageLayout); - - descriptorWrites[descriptorWriteEnd] = - vk::WriteDescriptorSet(targetDescriptor, targetBinding, 0, 1, vk::DescriptorType::eSampledImage, &imageInfo, nullptr, nullptr); - - ++descriptorWriteEnd; - } - - void DescriptorUpdateBatch::addSampler(vk::DescriptorSet targetDescriptor, u8 targetBinding, vk::Sampler sampler) { - if (descriptorWriteEnd >= descriptorWriteMax) { - flush(); - } - - const auto& imageInfo = descriptorInfos[descriptorWriteEnd].emplace(sampler, vk::ImageView(), vk::ImageLayout()); - - descriptorWrites[descriptorWriteEnd] = - vk::WriteDescriptorSet(targetDescriptor, targetBinding, 0, 1, vk::DescriptorType::eSampler, &imageInfo, nullptr, nullptr); - - ++descriptorWriteEnd; - } - - void DescriptorUpdateBatch::addImageSampler( - vk::DescriptorSet targetDescriptor, u8 targetBinding, vk::ImageView imageView, vk::Sampler sampler, vk::ImageLayout imageLayout - ) { - if (descriptorWriteEnd >= descriptorWriteMax) { - flush(); - } - - const auto& imageInfo = descriptorInfos[descriptorWriteEnd].emplace(sampler, imageView, imageLayout); - - descriptorWrites[descriptorWriteEnd] = - vk::WriteDescriptorSet(targetDescriptor, targetBinding, 0, 1, vk::DescriptorType::eCombinedImageSampler, &imageInfo, nullptr, nullptr); - - ++descriptorWriteEnd; - } - - void DescriptorUpdateBatch::addBuffer( - vk::DescriptorSet targetDescriptor, u8 targetBinding, vk::Buffer buffer, vk::DeviceSize offset, vk::DeviceSize size - ) { - if (descriptorWriteEnd >= descriptorWriteMax) { - flush(); - } - - const auto& bufferInfo = descriptorInfos[descriptorWriteEnd].emplace(buffer, offset, size); - - descriptorWrites[descriptorWriteEnd] = - vk::WriteDescriptorSet(targetDescriptor, targetBinding, 0, 1, vk::DescriptorType::eStorageImage, nullptr, &bufferInfo, nullptr); - - ++descriptorWriteEnd; - } - - void DescriptorUpdateBatch::copyBinding( - vk::DescriptorSet sourceDescriptor, vk::DescriptorSet targetDescriptor, u8 sourceBinding, u8 targetBinding, u8 sourceArrayElement, - u8 targetArrayElement, u8 descriptorCount - ) { - if (descriptorCopyEnd >= descriptorCopyMax) { - flush(); - } - - descriptorCopies[descriptorCopyEnd] = vk::CopyDescriptorSet( - sourceDescriptor, sourceBinding, sourceArrayElement, targetDescriptor, targetBinding, targetArrayElement, descriptorCount - ); - - ++descriptorCopyEnd; - } - - std::optional DescriptorUpdateBatch::create(vk::Device device, usize descriptorWriteMax, usize descriptorCopyMax) - - { - DescriptorUpdateBatch newDescriptorUpdateBatch(device, descriptorWriteMax, descriptorCopyMax); - - newDescriptorUpdateBatch.descriptorInfos = std::make_unique(descriptorWriteMax); - newDescriptorUpdateBatch.descriptorWrites = std::make_unique(descriptorWriteMax); - newDescriptorUpdateBatch.descriptorCopies = std::make_unique(descriptorCopyMax); - - return {std::move(newDescriptorUpdateBatch)}; - } - -} // namespace Vulkan \ No newline at end of file diff --git a/src/core/renderer_vk/vk_memory.cpp b/src/core/renderer_vk/vk_memory.cpp deleted file mode 100644 index c9087719..00000000 --- a/src/core/renderer_vk/vk_memory.cpp +++ /dev/null @@ -1,174 +0,0 @@ -#include "renderer_vk/vk_memory.hpp" - -namespace Vulkan { - - static constexpr vk::DeviceSize alignUp(vk::DeviceSize value, std::size_t size) { - const vk::DeviceSize mod = static_cast(value % size); - value -= mod; - return static_cast(mod == vk::DeviceSize{0} ? value : value + size); - } - - // Given a speculative heap-allocation, defined by its current size and - // memory-type bits, appends a memory requirements structure to it, updating - // both the size and the required memory-type-bits. Returns the offset within - // the heap for the current MemoryRequirements Todo: Sun Apr 23 13:28:25 PDT - // 2023 Rather than using a running-size of the heap, look at all of the memory - // requests and optimally create a packing for all of the offset and alignment - // requirements. Such as by satisfying all of the largest alignments first, and - // then the smallest, to reduce padding - static vk::DeviceSize commitMemoryRequestToHeap( - const vk::MemoryRequirements& curMemoryRequirements, vk::DeviceSize& curHeapEnd, u32& curMemoryTypeBits, vk::DeviceSize sizeAlignment - ) { - // Accumulate a mask of all the memory types that satisfies each of the - // handles - curMemoryTypeBits &= curMemoryRequirements.memoryTypeBits; - - // Pad up the memory sizes so they are not considered aliasing - const vk::DeviceSize curMemoryOffset = alignUp(curHeapEnd, curMemoryRequirements.alignment); - // Pad the size by the required size-alignment. - // Intended for BufferImageGranularity - const vk::DeviceSize curMemorySize = alignUp(curMemoryRequirements.size, sizeAlignment); - - curHeapEnd = (curMemoryOffset + curMemorySize); - return curMemoryOffset; - } - - s32 findMemoryTypeIndex( - vk::PhysicalDevice physicalDevice, u32 memoryTypeMask, vk::MemoryPropertyFlags memoryProperties, - vk::MemoryPropertyFlags memoryExcludeProperties - ) { - const vk::PhysicalDeviceMemoryProperties deviceMemoryProperties = physicalDevice.getMemoryProperties(); - // Iterate the physical device's memory types until we find a match - for (std::size_t i = 0; i < deviceMemoryProperties.memoryTypeCount; i++) { - if( - // Is within memory type mask - (((memoryTypeMask >> i) & 0b1) == 0b1) && - // Has property flags - (deviceMemoryProperties.memoryTypes[i].propertyFlags - & memoryProperties) - == memoryProperties - && - // None of the excluded properties are enabled - !(deviceMemoryProperties.memoryTypes[i].propertyFlags - & memoryExcludeProperties) ) - { - return static_cast(i); - } - } - - return -1; - } - - std::tuple commitImageHeap( - vk::Device device, vk::PhysicalDevice physicalDevice, const std::span images, vk::MemoryPropertyFlags memoryProperties, - vk::MemoryPropertyFlags memoryExcludeProperties - ) { - vk::MemoryAllocateInfo imageHeapAllocInfo = {}; - u32 imageHeapMemoryTypeBits = 0xFFFFFFFF; - std::vector imageHeapBinds; - - const vk::DeviceSize bufferImageGranularity = physicalDevice.getProperties().limits.bufferImageGranularity; - - for (const vk::Image& curImage : images) { - const vk::DeviceSize curBindOffset = commitMemoryRequestToHeap( - device.getImageMemoryRequirements(curImage), imageHeapAllocInfo.allocationSize, imageHeapMemoryTypeBits, bufferImageGranularity - ); - - if (imageHeapMemoryTypeBits == 0) { - // No possible memory heap for all of the images to share - return std::make_tuple(vk::Result::eErrorOutOfDeviceMemory, vk::UniqueDeviceMemory()); - } - - // Put nullptr for the device memory for now - imageHeapBinds.emplace_back(vk::BindImageMemoryInfo{curImage, nullptr, curBindOffset}); - } - - const s32 memoryTypeIndex = findMemoryTypeIndex(physicalDevice, imageHeapMemoryTypeBits, memoryProperties, memoryExcludeProperties); - - if (memoryTypeIndex < 0) { - // Unable to find a memory heap that satisfies all the images - return std::make_tuple(vk::Result::eErrorOutOfDeviceMemory, vk::UniqueDeviceMemory()); - } - - imageHeapAllocInfo.memoryTypeIndex = memoryTypeIndex; - - vk::UniqueDeviceMemory imageHeapMemory = {}; - - if (auto allocResult = device.allocateMemoryUnique(imageHeapAllocInfo); allocResult.result == vk::Result::eSuccess) { - imageHeapMemory = std::move(allocResult.value); - } else { - return std::make_tuple(allocResult.result, vk::UniqueDeviceMemory()); - } - - // Assign the device memory to the bindings - for (vk::BindImageMemoryInfo& curBind : imageHeapBinds) { - curBind.memory = imageHeapMemory.get(); - } - - // Now bind them all in one call - if (const vk::Result bindResult = device.bindImageMemory2(imageHeapBinds); bindResult == vk::Result::eSuccess) { - // Binding memory succeeded - } else { - return std::make_tuple(bindResult, vk::UniqueDeviceMemory()); - } - - return std::make_tuple(vk::Result::eSuccess, std::move(imageHeapMemory)); - } - - std::tuple commitBufferHeap( - vk::Device device, vk::PhysicalDevice physicalDevice, const std::span buffers, vk::MemoryPropertyFlags memoryProperties, - vk::MemoryPropertyFlags memoryExcludeProperties - ) { - vk::MemoryAllocateInfo bufferHeapAllocInfo = {}; - u32 bufferHeapMemoryTypeBits = 0xFFFFFFFF; - std::vector bufferHeapBinds; - - const vk::DeviceSize bufferImageGranularity = physicalDevice.getProperties().limits.bufferImageGranularity; - - for (const vk::Buffer& curBuffer : buffers) { - const vk::DeviceSize curBindOffset = commitMemoryRequestToHeap( - device.getBufferMemoryRequirements(curBuffer), bufferHeapAllocInfo.allocationSize, bufferHeapMemoryTypeBits, bufferImageGranularity - ); - - if (bufferHeapMemoryTypeBits == 0) { - // No possible memory heap for all of the buffers to share - return std::make_tuple(vk::Result::eErrorOutOfDeviceMemory, vk::UniqueDeviceMemory()); - } - - // Put nullptr for the device memory for now - bufferHeapBinds.emplace_back(vk::BindBufferMemoryInfo{curBuffer, nullptr, curBindOffset}); - } - - const s32 memoryTypeIndex = findMemoryTypeIndex(physicalDevice, bufferHeapMemoryTypeBits, memoryProperties, memoryExcludeProperties); - - if (memoryTypeIndex < 0) { - // Unable to find a memory heap that satisfies all the buffers - return std::make_tuple(vk::Result::eErrorOutOfDeviceMemory, vk::UniqueDeviceMemory()); - } - - bufferHeapAllocInfo.memoryTypeIndex = memoryTypeIndex; - - vk::UniqueDeviceMemory bufferHeapMemory = {}; - - if (auto allocResult = device.allocateMemoryUnique(bufferHeapAllocInfo); allocResult.result == vk::Result::eSuccess) { - bufferHeapMemory = std::move(allocResult.value); - } else { - return std::make_tuple(allocResult.result, vk::UniqueDeviceMemory()); - } - - // Assign the device memory to the bindings - for (vk::BindBufferMemoryInfo& curBind : bufferHeapBinds) { - curBind.memory = bufferHeapMemory.get(); - } - - // Now bind them all in one call - if (const vk::Result bindResult = device.bindBufferMemory2(bufferHeapBinds); bindResult == vk::Result::eSuccess) { - // Binding memory succeeded - } else { - return std::make_tuple(bindResult, vk::UniqueDeviceMemory()); - } - - return std::make_tuple(vk::Result::eSuccess, std::move(bufferHeapMemory)); - } - -} // namespace Vulkan \ No newline at end of file diff --git a/src/core/renderer_vk/vk_pica.cpp b/src/core/renderer_vk/vk_pica.cpp deleted file mode 100644 index e7fc9033..00000000 --- a/src/core/renderer_vk/vk_pica.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include "renderer_vk/vk_pica.hpp" - -namespace Vulkan { - - vk::Format colorFormatToVulkan(PICA::ColorFmt colorFormat) { - switch (colorFormat) { - case PICA::ColorFmt::RGBA8: return vk::Format::eR8G8B8A8Unorm; - // VK_FORMAT_R8G8B8A8_UNORM is mandated by the vulkan specification - // VK_FORMAT_R8G8B8_UNORM may not be supported - // TODO: Detect this! - // case PICA::ColorFmt::RGB8: return vk::Format::eR8G8B8Unorm; - case PICA::ColorFmt::RGB8: return vk::Format::eR8G8B8A8Unorm; - case PICA::ColorFmt::RGBA5551: return vk::Format::eR5G5B5A1UnormPack16; - case PICA::ColorFmt::RGB565: return vk::Format::eR5G6B5UnormPack16; - case PICA::ColorFmt::RGBA4: return vk::Format::eR4G4B4A4UnormPack16; - } - return vk::Format::eUndefined; - } - vk::Format depthFormatToVulkan(PICA::DepthFmt depthFormat) { - switch (depthFormat) { - // VK_FORMAT_D16_UNORM is mandated by the vulkan specification - case PICA::DepthFmt::Depth16: return vk::Format::eD16Unorm; - case PICA::DepthFmt::Unknown1: return vk::Format::eUndefined; - // The GPU may _not_ support these formats natively - // Only one of: - // VK_FORMAT_X8_D24_UNORM_PACK32 and VK_FORMAT_D32_SFLOAT - // and one of: - // VK_FORMAT_D24_UNORM_S8_UINT and VK_FORMAT_D32_SFLOAT_S8_UINT - // will be supported - // TODO: Detect this! - // case PICA::DepthFmt::Depth24: return vk::Format::eX8D24UnormPack32; - // case PICA::DepthFmt::Depth24Stencil8: return vk::Format::eD24UnormS8Uint; - case PICA::DepthFmt::Depth24: return vk::Format::eD32Sfloat; - case PICA::DepthFmt::Depth24Stencil8: return vk::Format::eD32SfloatS8Uint; - } - return vk::Format::eUndefined; - } - -} // namespace Vulkan \ No newline at end of file diff --git a/src/core/renderer_vk/vk_sampler_cache.cpp b/src/core/renderer_vk/vk_sampler_cache.cpp deleted file mode 100644 index 884264b1..00000000 --- a/src/core/renderer_vk/vk_sampler_cache.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "renderer_vk/vk_sampler_cache.hpp" - -#include - -#include "helpers.hpp" - -namespace Vulkan { - - SamplerCache::SamplerCache(vk::Device device) : device(device) {} - - const vk::Sampler& SamplerCache::getSampler(const vk::SamplerCreateInfo& samplerInfo) { - const std::size_t samplerHash = std::hash()(samplerInfo); - - // Cache hit - if (samplerMap.contains(samplerHash)) { - return samplerMap.at(samplerHash).get(); - } - - if (auto createResult = device.createSamplerUnique(samplerInfo); createResult.result == vk::Result::eSuccess) { - return (samplerMap[samplerHash] = std::move(createResult.value)).get(); - } else { - Helpers::panic("Error creating sampler: %s\n", vk::to_string(createResult.result).c_str()); - } - } - - std::optional SamplerCache::create(vk::Device device) { - SamplerCache newSamplerCache(device); - - return {std::move(newSamplerCache)}; - } -} // namespace Vulkan \ No newline at end of file diff --git a/src/core/services/ac.cpp b/src/core/services/ac.cpp deleted file mode 100644 index 8f5545fe..00000000 --- a/src/core/services/ac.cpp +++ /dev/null @@ -1,139 +0,0 @@ -#include "services/ac.hpp" -#include "ipc.hpp" - -namespace ACCommands { - enum : u32 { - CreateDefaultConfig = 0x00010000, - CancelConnectAsync = 0x00070002, - CloseAsync = 0x00080004, - GetLastErrorCode = 0x000A0000, - GetStatus = 0x000C0000, - GetWifiStatus = 0x000D0000, - GetConnectingInfraPriority = 0x000F0000, - RegisterDisconnectEvent = 0x00300004, - IsConnected = 0x003E0042, - SetClientVersion = 0x00400042, - }; -} - -void ACService::reset() { - connected = false; - disconnectEvent = std::nullopt; -} - -void ACService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case ACCommands::CancelConnectAsync: cancelConnectAsync(messagePointer); break; - case ACCommands::CloseAsync: closeAsync(messagePointer); break; - case ACCommands::CreateDefaultConfig: createDefaultConfig(messagePointer); break; - case ACCommands::GetConnectingInfraPriority: getConnectingInfraPriority(messagePointer); break; - case ACCommands::GetLastErrorCode: getLastErrorCode(messagePointer); break; - case ACCommands::GetStatus: getStatus(messagePointer); break; - case ACCommands::GetWifiStatus: getWifiStatus(messagePointer); break; - case ACCommands::IsConnected: isConnected(messagePointer); break; - case ACCommands::RegisterDisconnectEvent: registerDisconnectEvent(messagePointer); break; - case ACCommands::SetClientVersion: setClientVersion(messagePointer); break; - default: Helpers::panic("AC service requested. Command: %08X\n", command); - } -} - -void ACService::cancelConnectAsync(u32 messagePointer) { - log("AC::CancelCommandAsync (stubbed)\n"); - - // TODO: Verify if this response header is correct on hardware - mem.write32(messagePointer, IPC::responseHeader(0x7, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void ACService::closeAsync(u32 messagePointer) { - log("AC::CloseAsync (stubbed)\n"); - connected = false; - - if (disconnectEvent.has_value()) { - Helpers::warn("AC::DisconnectEvent should be signalled but isn't implemented yet"); - } - - // TODO: Verify if this response header is correct on hardware - mem.write32(messagePointer, IPC::responseHeader(0x8, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void ACService::createDefaultConfig(u32 messagePointer) { - log("AC::CreateDefaultConfig (stubbed)\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - // TODO: Verify response buffer on hardware -} - -void ACService::getLastErrorCode(u32 messagePointer) { - log("AC::GetLastErrorCode (stubbed)\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x0A, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); // Hopefully this means no error? -} - -void ACService::getConnectingInfraPriority(u32 messagePointer) { - log("AC::GetConnectingInfraPriority (stubbed)\n"); - - // TODO: Find out what this is - mem.write32(messagePointer, IPC::responseHeader(0x0F, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); -} - -void ACService::getStatus(u32 messagePointer) { - log("AC::GetStatus (stubbed)\n"); - - // TODO: Find out what this is - mem.write32(messagePointer, IPC::responseHeader(0x0C, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); -} - -void ACService::getWifiStatus(u32 messagePointer) { - log("AC::GetWifiStatus (stubbed)\n"); - - enum class WifiStatus : u32 { - None = 0, - Slot1 = 1, - Slot2 = 2, - Slot3 = 4, - }; - - mem.write32(messagePointer, IPC::responseHeader(0x0D, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, static_cast(WifiStatus::None)); -} - -void ACService::isConnected(u32 messagePointer) { - log("AC::IsConnected\n"); - // This has parameters according to the command word but it's unknown what they are - - mem.write32(messagePointer, IPC::responseHeader(0x3E, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, connected ? 1 : 0); -} - -void ACService::setClientVersion(u32 messagePointer) { - u32 version = mem.read32(messagePointer + 4); - log("AC::SetClientVersion (version = %d)\n", version); - - mem.write32(messagePointer, IPC::responseHeader(0x40, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void ACService::registerDisconnectEvent(u32 messagePointer) { - log("AC::RegisterDisconnectEvent (stubbed)\n"); - const u32 pidHeader = mem.read32(messagePointer + 4); - const u32 copyHandleHeader = mem.read32(messagePointer + 12); - // Event signaled when disconnecting from AC. TODO: Properly implement it. - const Handle eventHandle = mem.read32(messagePointer + 16); - - disconnectEvent = eventHandle; - - mem.write32(messagePointer, IPC::responseHeader(0x30, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/act.cpp b/src/core/services/act.cpp deleted file mode 100644 index 1434b59b..00000000 --- a/src/core/services/act.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include "services/act.hpp" -#include "ipc.hpp" - -namespace ACTCommands { - enum : u32 { - Initialize = 0x00010084, - GetAccountDataBlock = 0x000600C2, - GenerateUUID = 0x000D0040, - }; -} - -void ACTService::reset() {} - -void ACTService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case ACTCommands::GenerateUUID: generateUUID(messagePointer); break; - case ACTCommands::GetAccountDataBlock: getAccountDataBlock(messagePointer); break; - case ACTCommands::Initialize: initialize(messagePointer); break; - default: - Helpers::warn("Undocumented ACT service requested. Command: %08X", command); - mem.write32(messagePointer + 4, Result::Success); - break; - } -} - -void ACTService::initialize(u32 messagePointer) { - log("ACT::Initialize"); - - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void ACTService::generateUUID(u32 messagePointer) { - log("ACT::GenerateUUID (stubbed)\n"); - - // TODO: The header is probably wrong - mem.write32(messagePointer, IPC::responseHeader(0xD, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void ACTService::getAccountDataBlock(u32 messagePointer) { - log("ACT::GetAccountDataBlock (stubbed)\n"); - - const u32 size = mem.read32(messagePointer + 8); - const u32 blkID = mem.read32(messagePointer + 12); - const u32 outputPointer = mem.read32(messagePointer + 20); - - // TODO: This header is probably also wrong - // Also we need to populate the data block here. Half of it is undocumented though >_< - mem.write32(messagePointer, IPC::responseHeader(0x6, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/am.cpp b/src/core/services/am.cpp deleted file mode 100644 index 32e6a0b3..00000000 --- a/src/core/services/am.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include "services/am.hpp" -#include "ipc.hpp" - -namespace AMCommands { - enum : u32 { - GetDLCTitleInfo = 0x10050084, - ListTitleInfo = 0x10070102, - GetPatchTitleInfo = 0x100D0084, - }; -} - -void AMService::reset() {} - -void AMService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case AMCommands::GetPatchTitleInfo: getPatchTitleInfo(messagePointer); break; - case AMCommands::GetDLCTitleInfo: getDLCTitleInfo(messagePointer); break; - case AMCommands::ListTitleInfo: listTitleInfo(messagePointer); break; - default: Helpers::panic("AM service requested. Command: %08X\n", command); - } -} - -void AMService::listTitleInfo(u32 messagePointer) { - log("AM::ListDLCOrLicenseTicketInfos\n"); // Yes this is the actual name - u32 ticketCount = mem.read32(messagePointer + 4); - u64 titleID = mem.read64(messagePointer + 8); - u32 pointer = mem.read32(messagePointer + 24); - - for (u32 i = 0; i < ticketCount; i++) { - mem.write64(pointer, titleID); // Title ID - mem.write64(pointer + 8, 0); // Ticket ID - mem.write16(pointer + 16, 0); // Version - mem.write16(pointer + 18, 0); // Padding - mem.write32(pointer + 20, 0); // Size - - pointer += 24; // = sizeof(TicketInfo) - } - - mem.write32(messagePointer, IPC::responseHeader(0x1007, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, ticketCount); -} - -void AMService::getDLCTitleInfo(u32 messagePointer) { - log("AM::GetDLCTitleInfo (stubbed to fail)\n"); - Helpers::warn("Unimplemented AM::GetDLCTitleInfo. Will need to be implemented to support DLC\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x1005, 1, 4)); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); -} - -void AMService::getPatchTitleInfo(u32 messagePointer) { - log("AM::GetPatchTitleInfo (stubbed to fail)\n"); - Helpers::warn("Unimplemented AM::GetDLCTitleInfo. Will need to be implemented to support updates\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x100D, 1, 4)); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); -} \ No newline at end of file diff --git a/src/core/services/amiibo_device.cpp b/src/core/services/amiibo_device.cpp deleted file mode 100644 index 71cabf0e..00000000 --- a/src/core/services/amiibo_device.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "services/amiibo_device.hpp" - -void AmiiboDevice::reset() { - encrypted = false; - loaded = false; -} - -// Load amiibo information from our raw 540 byte array -void AmiiboDevice::loadFromRaw() { - -} \ No newline at end of file diff --git a/src/core/services/apt.cpp b/src/core/services/apt.cpp deleted file mode 100644 index ddeb18de..00000000 --- a/src/core/services/apt.cpp +++ /dev/null @@ -1,423 +0,0 @@ -#include "services/apt.hpp" -#include "ipc.hpp" -#include "kernel.hpp" - -#include -#include - -namespace APTCommands { - enum : u32 { - GetLockHandle = 0x00010040, - Initialize = 0x00020080, - Enable = 0x00030040, - GetAppletInfo = 0x00060040, - IsRegistered = 0x00090040, - InquireNotification = 0x000B0040, - SendParameter = 0x000C0104, - ReceiveParameter = 0x000D0080, - GlanceParameter = 0x000E0080, - PreloadLibraryApplet = 0x00160040, - PrepareToStartLibraryApplet = 0x00180040, - StartLibraryApplet = 0x001E0084, - ReplySleepQuery = 0x003E0080, - NotifyToWait = 0x00430040, - GetSharedFont = 0x00440000, - GetWirelessRebootInfo = 0x00450040, - AppletUtility = 0x004B00C2, - SetApplicationCpuTimeLimit = 0x004F0080, - GetApplicationCpuTimeLimit = 0x00500040, - SetScreencapPostPermission = 0x00550040, - CheckNew3DSApp = 0x01010000, - CheckNew3DS = 0x01020000, - TheSmashBrosFunction = 0x01030000 - }; -} - -void APTService::reset() { - // Set the default CPU time limit to 0%. Appears to be the default value on hardware - cpuTimeLimit = 0; - - // Reset the handles for the various service objects - lockHandle = std::nullopt; - notificationEvent = std::nullopt; - resumeEvent = std::nullopt; - - appletManager.reset(); -} - -void APTService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case APTCommands::AppletUtility: appletUtility(messagePointer); break; - case APTCommands::CheckNew3DS: checkNew3DS(messagePointer); break; - case APTCommands::CheckNew3DSApp: checkNew3DSApp(messagePointer); break; - case APTCommands::Enable: enable(messagePointer); break; - case APTCommands::GetAppletInfo: getAppletInfo(messagePointer); break; - case APTCommands::GetSharedFont: getSharedFont(messagePointer); break; - case APTCommands::Initialize: initialize(messagePointer); break; - case APTCommands::InquireNotification: [[likely]] inquireNotification(messagePointer); break; - case APTCommands::IsRegistered: isRegistered(messagePointer); break; - case APTCommands::GetApplicationCpuTimeLimit: getApplicationCpuTimeLimit(messagePointer); break; - case APTCommands::GetLockHandle: getLockHandle(messagePointer); break; - case APTCommands::GetWirelessRebootInfo: getWirelessRebootInfo(messagePointer); break; - case APTCommands::GlanceParameter: glanceParameter(messagePointer); break; - case APTCommands::NotifyToWait: notifyToWait(messagePointer); break; - case APTCommands::PreloadLibraryApplet: preloadLibraryApplet(messagePointer); break; - case APTCommands::PrepareToStartLibraryApplet: prepareToStartLibraryApplet(messagePointer); break; - case APTCommands::StartLibraryApplet: startLibraryApplet(messagePointer); break; - case APTCommands::ReceiveParameter: [[likely]] receiveParameter(messagePointer); break; - case APTCommands::ReplySleepQuery: replySleepQuery(messagePointer); break; - case APTCommands::SetApplicationCpuTimeLimit: setApplicationCpuTimeLimit(messagePointer); break; - case APTCommands::SendParameter: sendParameter(messagePointer); break; - case APTCommands::SetScreencapPostPermission: setScreencapPostPermission(messagePointer); break; - case APTCommands::TheSmashBrosFunction: theSmashBrosFunction(messagePointer); break; - default: - Helpers::panicDev("APT service requested. Command: %08X\n", command); - mem.write32(messagePointer + 4, Result::Success); - break; - } -} - -void APTService::appletUtility(u32 messagePointer) { - u32 utility = mem.read32(messagePointer + 4); - u32 inputSize = mem.read32(messagePointer + 8); - u32 outputSize = mem.read32(messagePointer + 12); - u32 inputPointer = mem.read32(messagePointer + 20); - - log("APT::AppletUtility(utility = %d, input size = %x, output size = %x, inputPointer = %08X)\n", utility, inputSize, outputSize, - inputPointer); - - std::vector out(outputSize); - const u32 outputBuffer = mem.read32(messagePointer + 0x104); - - if (outputSize >= 1 && utility == 6) { - // TryLockTransition expects a bool indicating success in the output buffer. Set it to true to avoid games panicking (Thanks to Citra) - out[0] = true; - } - - mem.write32(messagePointer, IPC::responseHeader(0x4B, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, Result::Success); - - for (u32 i = 0; i < outputSize; i++) { - mem.write8(outputBuffer + i, out[i]); - } -} - -void APTService::getAppletInfo(u32 messagePointer) { - const u32 appID = mem.read32(messagePointer + 4); - Helpers::warn("APT::GetAppletInfo (appID = %X)\n", appID); - - mem.write32(messagePointer, IPC::responseHeader(0x06, 7, 0)); - mem.write32(messagePointer + 4, Result::Success); - - mem.write8(messagePointer + 20, 1); // 1 = registered - mem.write8(messagePointer + 24, 1); // 1 = loaded - // TODO: The rest of this -} - -void APTService::isRegistered(u32 messagePointer) { - const u32 appID = mem.read32(messagePointer + 4); - Helpers::warn("APT::IsRegistered (appID = %X)", appID); - - mem.write32(messagePointer, IPC::responseHeader(0x09, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, 1); // Return that the app is always registered. This might break with home menu? -} - -void APTService::preloadLibraryApplet(u32 messagePointer) { - const u32 appID = mem.read32(messagePointer + 4); - log("APT::PreloadLibraryApplet (app ID = %X) (stubbed)\n", appID); - - mem.write32(messagePointer, IPC::responseHeader(0x16, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void APTService::prepareToStartLibraryApplet(u32 messagePointer) { - const u32 appID = mem.read32(messagePointer + 4); - log("APT::PrepareToStartLibraryApplet (app ID = %X) (stubbed)\n", appID); - - mem.write32(messagePointer, IPC::responseHeader(0x16, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void APTService::startLibraryApplet(u32 messagePointer) { - const u32 appID = mem.read32(messagePointer + 4); - const u32 bufferSize = mem.read32(messagePointer + 8); - const Handle parameters = mem.read32(messagePointer + 16); - const u32 buffer = mem.read32(messagePointer + 24); - log("APT::StartLibraryApplet (app ID = %X)\n", appID); - - Applets::AppletBase* destApplet = appletManager.getApplet(appID); - if (destApplet == nullptr) { - Helpers::warn("APT::StartLibraryApplet: Unimplemented dest applet ID"); - mem.write32(messagePointer, IPC::responseHeader(0x1E, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - } else { - KernelObject* sharedMemObject = kernel.getObject(parameters); - - const MemoryBlock* sharedMem = sharedMemObject ? sharedMemObject->getData() : nullptr; - std::vector data; - data.reserve(bufferSize); - - for (u32 i = 0; i < bufferSize; i++) { - data.push_back(mem.read8(buffer + i)); - } - - Result::HorizonResult result = destApplet->start(sharedMem, data, appID); - if (resumeEvent.has_value()) { - kernel.signalEvent(resumeEvent.value()); - } - - mem.write32(messagePointer, IPC::responseHeader(0x1E, 1, 0)); - mem.write32(messagePointer + 4, result); - } -} - -void APTService::checkNew3DS(u32 messagePointer) { - log("APT::CheckNew3DS\n"); - mem.write32(messagePointer, IPC::responseHeader(0x102, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, (model == ConsoleModel::New3DS) ? 1 : 0); // u8, Status (0 = Old 3DS, 1 = New 3DS) -} - -// TODO: Figure out the slight way this differs from APT::CheckNew3DS -void APTService::checkNew3DSApp(u32 messagePointer) { - log("APT::CheckNew3DSApp\n"); - mem.write32(messagePointer, IPC::responseHeader(0x101, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, (model == ConsoleModel::New3DS) ? 1 : 0); // u8, Status (0 = Old 3DS, 1 = New 3DS) -} - -void APTService::enable(u32 messagePointer) { - log("APT::Enable\n"); - mem.write32(messagePointer, IPC::responseHeader(0x3, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - - // Some apps like Home Menu and Game Notes seem to rely on resume event being triggered here. Doesn't seem to break anything, so - if (resumeEvent.has_value()) { - kernel.signalEvent(resumeEvent.value()); - } -} - -void APTService::initialize(u32 messagePointer) { - log("APT::Initialize\n"); - - if (!notificationEvent.has_value() || !resumeEvent.has_value()) { - notificationEvent = kernel.makeEvent(ResetType::OneShot); - resumeEvent = kernel.makeEvent(ResetType::OneShot); - - kernel.signalEvent(resumeEvent.value()); // Seems to be signalled on startup - } - - mem.write32(messagePointer, IPC::responseHeader(0x2, 1, 3)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0x04000000); // Translation descriptor - mem.write32(messagePointer + 12, notificationEvent.value()); // Notification Event Handle - mem.write32(messagePointer + 16, resumeEvent.value()); // Resume Event Handle -} - -void APTService::inquireNotification(u32 messagePointer) { - log("APT::InquireNotification\n"); - - mem.write32(messagePointer, IPC::responseHeader(0xB, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, static_cast(NotificationType::None)); -} - -void APTService::getLockHandle(u32 messagePointer) { - log("APT::GetLockHandle\n"); - - // Create a lock handle if none exists - if (!lockHandle.has_value() || kernel.getObject(lockHandle.value(), KernelObjectType::Mutex) == nullptr) { - lockHandle = kernel.makeMutex(); - } - - mem.write32(messagePointer, IPC::responseHeader(0x1, 3, 2)); - mem.write32(messagePointer + 4, Result::Success); // Result code - mem.write32(messagePointer + 8, 0); // AppletAttr - mem.write32(messagePointer + 12, 0); // APT State (bit0 = Power Button State, bit1 = Order To Close State) - mem.write32(messagePointer + 16, 0); // Translation descriptor - mem.write32(messagePointer + 20, lockHandle.value()); // Lock handle -} - -// This apparently does nothing on the original kernel either? -void APTService::notifyToWait(u32 messagePointer) { - log("APT::NotifyToWait\n"); - mem.write32(messagePointer, IPC::responseHeader(0x43, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void APTService::sendParameter(u32 messagePointer) { - const u32 sourceAppID = mem.read32(messagePointer + 4); - const u32 destAppID = mem.read32(messagePointer + 8); - const u32 cmd = mem.read32(messagePointer + 12); - const u32 paramSize = mem.read32(messagePointer + 16); - - const u32 parameterHandle = mem.read32(messagePointer + 24); // What dis? - const u32 parameterPointer = mem.read32(messagePointer + 32); - log("APT::SendParameter (source app = %X, dest app = %X, cmd = %X, size = %X)", sourceAppID, destAppID, cmd, paramSize); - - mem.write32(messagePointer, IPC::responseHeader(0x0C, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - - if (sourceAppID != Applets::AppletIDs::Application) { - Helpers::warn("APT::SendParameter: Unimplemented source applet ID"); - } - - Applets::AppletBase* destApplet = appletManager.getApplet(destAppID); - if (destApplet == nullptr) { - Helpers::warn("APT::SendParameter: Unimplemented dest applet ID"); - } else { - // Construct parameter, send it to applet - Applets::Parameter param; - param.senderID = sourceAppID; - param.destID = destAppID; - param.signal = cmd; - - // Fetch parameter data buffer - param.data.reserve(paramSize); - u32 pointer = parameterPointer; - - for (u32 i = 0; i < paramSize; i++) { - param.data.push_back(mem.read8(pointer++)); - } - - auto result = destApplet->receiveParameter(param); - } - - if (resumeEvent.has_value()) { - kernel.signalEvent(resumeEvent.value()); - } -} - -void APTService::receiveParameter(u32 messagePointer) { - const u32 app = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - // Parameter data pointer is in the thread static buffer, which starts 0x100 bytes after the command buffer - const u32 buffer = mem.read32(messagePointer + 0x100 + 4); - log("APT::ReceiveParameter(app ID = %X, size = %04X)\n", app, size); - - if (size > 0x1000) Helpers::panic("APT::ReceiveParameter with size > 0x1000"); - auto parameter = appletManager.receiveParameter(); - - mem.write32(messagePointer, IPC::responseHeader(0xD, 4, 4)); - mem.write32(messagePointer + 4, Result::Success); - // Sender App ID - mem.write32(messagePointer + 8, parameter.senderID); - // Command - mem.write32(messagePointer + 12, parameter.signal); - // Size of parameter data - mem.write32(messagePointer + 16, parameter.data.size()); - mem.write32(messagePointer + 20, 0x10); - mem.write32(messagePointer + 24, parameter.object); - mem.write32(messagePointer + 28, 0); - - const u32 transferSize = std::min(size, parameter.data.size()); - for (u32 i = 0; i < transferSize; i++) { - mem.write8(buffer + i, parameter.data[i]); - } -} - -void APTService::glanceParameter(u32 messagePointer) { - const u32 app = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - // Parameter data pointer is in the thread static buffer, which starts 0x100 bytes after the command buffer - const u32 buffer = mem.read32(messagePointer + 0x100 + 4); - log("APT::GlanceParameter(app ID = %X, size = %04X)\n", app, size); - - if (size > 0x1000) Helpers::panic("APT::GlanceParameter with size > 0x1000"); - auto parameter = appletManager.glanceParameter(); - - // TODO: Properly implement this. We currently stub it similar - mem.write32(messagePointer, IPC::responseHeader(0xE, 4, 4)); - mem.write32(messagePointer + 4, Result::Success); - // Sender App ID - mem.write32(messagePointer + 8, parameter.senderID); - // Command - mem.write32(messagePointer + 12, parameter.signal); - // Size of parameter data - mem.write32(messagePointer + 16, parameter.data.size()); - mem.write32(messagePointer + 20, 0); - mem.write32(messagePointer + 24, parameter.object); - mem.write32(messagePointer + 28, 0); - - const u32 transferSize = std::min(size, parameter.data.size()); - for (u32 i = 0; i < transferSize; i++) { - mem.write8(buffer + i, parameter.data[i]); - } -} - -void APTService::replySleepQuery(u32 messagePointer) { - log("APT::ReplySleepQuery (Stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x3E, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void APTService::setApplicationCpuTimeLimit(u32 messagePointer) { - u32 fixed = mem.read32(messagePointer + 4); // MUST be 1. - u32 percentage = mem.read32(messagePointer + 8); // CPU time percentage between 5% and 89% - log("APT::SetApplicationCpuTimeLimit (percentage = %d%%)\n", percentage); - - mem.write32(messagePointer, IPC::responseHeader(0x4F, 1, 0)); - - // If called with invalid parameters, the current time limit is left unchanged, and OS::NotImplemented is returned - if (percentage < 5 || percentage > 89 || fixed != 1) { - Helpers::warn("Invalid parameter passed to APT::SetApplicationCpuTimeLimit: (percentage, fixed) = (%d, %d)\n", percentage, fixed); - mem.write32(messagePointer + 4, Result::OS::NotImplemented); - } else { - mem.write32(messagePointer + 4, Result::Success); - cpuTimeLimit = percentage; - } -} - -void APTService::getApplicationCpuTimeLimit(u32 messagePointer) { - log("APT::GetApplicationCpuTimeLimit\n"); - mem.write32(messagePointer, IPC::responseHeader(0x50, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, cpuTimeLimit); -} - -void APTService::setScreencapPostPermission(u32 messagePointer) { - u32 perm = mem.read32(messagePointer + 4); - log("APT::SetScreencapPostPermission (perm = %d)\n", perm); - - mem.write32(messagePointer, IPC::responseHeader(0x55, 1, 0)); - // Apparently only 1-3 are valid values, but I see 0 used in some games like Pokemon Rumble - mem.write32(messagePointer + 4, Result::Success); - screencapPostPermission = perm; -} - -void APTService::getSharedFont(u32 messagePointer) { - log("APT::GetSharedFont\n"); - - constexpr u32 fontVaddr = 0x18000000; - mem.write32(messagePointer, IPC::responseHeader(0x44, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, fontVaddr); - mem.write32(messagePointer + 16, KernelHandles::FontSharedMemHandle); -} - -// This function is entirely undocumented. We know Smash Bros uses it and that it normally writes 2 to cmdreply[2] on New 3DS -// And that writing 1 stops it from accessing the ir:USER service for New 3DS HID use -void APTService::theSmashBrosFunction(u32 messagePointer) { - log("APT: Called the elusive Smash Bros function\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x103, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, (model == ConsoleModel::New3DS) ? 2 : 1); -} - -void APTService::getWirelessRebootInfo(u32 messagePointer) { - const u32 size = mem.read32(messagePointer + 4); // Size of data to read - log("APT::GetWirelessRebootInfo (size = %X)\n", size); - - if (size > 0x10) - Helpers::panic("APT::GetWirelessInfo with size > 0x10 bytes"); - - mem.write32(messagePointer, IPC::responseHeader(0x45, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - for (u32 i = 0; i < size; i++) { - mem.write8(messagePointer + 0x104 + i, 0); // Temporarily stub this until we add SetWirelessRebootInfo - } -} diff --git a/src/core/services/boss.cpp b/src/core/services/boss.cpp deleted file mode 100644 index a8f7194b..00000000 --- a/src/core/services/boss.cpp +++ /dev/null @@ -1,252 +0,0 @@ -#include "services/boss.hpp" -#include "ipc.hpp" - -namespace BOSSCommands { - enum : u32 { - InitializeSession = 0x00010082, - UnregisterStorage = 0x00030000, - GetTaskStorageInfo = 0x00040000, - GetNewArrivalFlag = 0x00070000, - RegisterNewArrivalEvent = 0x00080002, - SetOptoutFlag = 0x00090040, - GetOptoutFlag = 0x000A0000, - RegisterTask = 0x000B00C2, - UnregisterTask = 0x000C0082, - GetTaskIdList = 0x000E0000, - GetNsDataIdList = 0x00100102, - GetNsDataIdList1 = 0x00110102, - SendProperty = 0x00140082, - ReceiveProperty = 0x00160082, - GetTaskServiceStatus = 0x001B0042, - StartTask = 0x001C0042, - CancelTask = 0x001E0042, - GetTaskState = 0x00200082, - GetTaskStatus = 0x002300C2, - GetTaskInfo = 0x00250082, - GetErrorCode = 0x002E0040, - RegisterStorageEntry = 0x002F0140, - GetStorageEntryInfo = 0x00300000, - }; -} - -void BOSSService::reset() { - optoutFlag = 0; -} - -void BOSSService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case BOSSCommands::CancelTask: cancelTask(messagePointer); break; - case BOSSCommands::GetErrorCode: getErrorCode(messagePointer); break; - case BOSSCommands::GetNewArrivalFlag: getNewArrivalFlag(messagePointer); break; - case BOSSCommands::GetNsDataIdList: - case BOSSCommands::GetNsDataIdList1: - getNsDataIdList(messagePointer, command); break; - case BOSSCommands::GetOptoutFlag: getOptoutFlag(messagePointer); break; - case BOSSCommands::GetStorageEntryInfo: getStorageEntryInfo(messagePointer); break; - case BOSSCommands::GetTaskIdList: getTaskIdList(messagePointer); break; - case BOSSCommands::GetTaskInfo: getTaskInfo(messagePointer); break; - case BOSSCommands::GetTaskServiceStatus: getTaskServiceStatus(messagePointer); break; - case BOSSCommands::GetTaskState: getTaskState(messagePointer); break; - case BOSSCommands::GetTaskStatus: getTaskStatus(messagePointer); break; - case BOSSCommands::GetTaskStorageInfo: getTaskStorageInfo(messagePointer); break; - case BOSSCommands::InitializeSession: initializeSession(messagePointer); break; - case BOSSCommands::ReceiveProperty: receiveProperty(messagePointer); break; - case BOSSCommands::RegisterNewArrivalEvent: registerNewArrivalEvent(messagePointer); break; - case BOSSCommands::RegisterStorageEntry: registerStorageEntry(messagePointer); break; - case BOSSCommands::RegisterTask: registerTask(messagePointer); break; - case BOSSCommands::SendProperty: sendProperty(messagePointer); break; - case BOSSCommands::SetOptoutFlag: setOptoutFlag(messagePointer); break; - case BOSSCommands::StartTask: startTask(messagePointer); break; - case BOSSCommands::UnregisterStorage: unregisterStorage(messagePointer); break; - case BOSSCommands::UnregisterTask: unregisterTask(messagePointer); break; - default: Helpers::panic("BOSS service requested. Command: %08X\n", command); - } -} - -void BOSSService::initializeSession(u32 messagePointer) { - log("BOSS::InitializeSession (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::setOptoutFlag(u32 messagePointer) { - const s8 flag = static_cast(mem.read8(messagePointer + 4)); - log("BOSS::SetOptoutFlag (flag = %d)\n", flag); - optoutFlag = flag; - - mem.write32(messagePointer, IPC::responseHeader(0x9, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::getOptoutFlag(u32 messagePointer) { - log("BOSS::GetOptoutFlag\n"); - mem.write32(messagePointer, IPC::responseHeader(0xA, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, optoutFlag); -} - -void BOSSService::getTaskState(u32 messagePointer) { - const u32 taskIDBufferSize = mem.read32(messagePointer + 4); - const u32 taskIDDataPointer = mem.read32(messagePointer + 16); - log("BOSS::GetTaskStatus (task buffer size: %08X, task data pointer: %08X) (stubbed)\n", taskIDBufferSize, taskIDDataPointer); - - mem.write32(messagePointer, IPC::responseHeader(0x20, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, 0); // TaskStatus: Report the task finished successfully - mem.write32(messagePointer + 12, 0); // Current state value for task PropertyID 0x4 - mem.write8(messagePointer + 16, 0); // TODO: Figure out what this should be -} - -void BOSSService::getTaskStatus(u32 messagePointer) { - // TODO: 3DBrew does not mention what the parameters are, or what the return values are. - log("BOSS::GetTaskStatus (Stubbed)\n"); - - // Response values stubbed based on Citra - mem.write32(messagePointer, IPC::responseHeader(0x23, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, 0); - // TODO: Citra pushes a buffer here? -} - -void BOSSService::getTaskServiceStatus(u32 messagePointer) { - // TODO: 3DBrew does not mention what the parameters are, or what the return values are... again - log("BOSS::GetTaskServiceStatus (Stubbed)\n"); - - // Response values stubbed based on Citra - mem.write32(messagePointer, IPC::responseHeader(0x1B, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, 0); - // TODO: Citra pushes a buffer here too? -} - -void BOSSService::getTaskStorageInfo(u32 messagePointer) { - log("BOSS::GetTaskStorageInfo (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x4, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); -} - -void BOSSService::getTaskIdList(u32 messagePointer) { - log("BOSS::GetTaskIdList (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0xE, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// This function is completely undocumented, including on 3DBrew -// The name GetTaskInfo is taken from Citra source and nobody seems to know what exactly it does -// Kid Icarus: Uprising uses it on startup -void BOSSService::getTaskInfo(u32 messagePointer) { - log("BOSS::GetTaskInfo (stubbed and undocumented)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x25, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::getErrorCode(u32 messagePointer) { - log("BOSS::GetErrorCode (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x2E, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, Result::Success); // No error code -} - -void BOSSService::getStorageEntryInfo(u32 messagePointer) { - log("BOSS::GetStorageEntryInfo (undocumented)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x30, 3, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); // u32, unknown meaning - mem.write16(messagePointer + 12, 0); // s16, unknown meaning -} - -void BOSSService::sendProperty(u32 messagePointer) { - const u32 id = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - const u32 ptr = mem.read32(messagePointer + 16); - - log("BOSS::SendProperty (id = %d, size = %08X, ptr = %08X) (stubbed)\n", id, size, ptr); - mem.write32(messagePointer, IPC::responseHeader(0x14, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); // Read size - // TODO: Should this do anything else? -} - - -void BOSSService::receiveProperty(u32 messagePointer) { - const u32 id = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - const u32 ptr = mem.read32(messagePointer + 16); - - log("BOSS::ReceiveProperty (id = %d, size = %08X, ptr = %08X) (stubbed)\n", id, size, ptr); - mem.write32(messagePointer, IPC::responseHeader(0x16, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); // Read size -} - -// This seems to accept a KEvent as a parameter and register it for something Spotpass related -// I need to update the 3DBrew page when it's known what it does properly -void BOSSService::registerNewArrivalEvent(u32 messagePointer) { - const Handle eventHandle = mem.read32(messagePointer + 4); // Kernel event handle to register - log("BOSS::RegisterNewArrivalEvent (handle = %X)\n", eventHandle); - - mem.write32(messagePointer, IPC::responseHeader(0x8, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::startTask(u32 messagePointer) { - log("BOSS::StartTask (stubbed)\n"); - const u32 bufferSize = mem.read32(messagePointer + 4); - const u32 descriptor = mem.read32(messagePointer + 8); - const u32 bufferData = mem.read32(messagePointer + 12); - - mem.write32(messagePointer, IPC::responseHeader(0x1C, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::cancelTask(u32 messagePointer) { - log("BOSS::CancelTask (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x1E, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::registerTask(u32 messagePointer) { - log("BOSS::RegisterTask (stubbed)\n"); - const u32 bufferSize = mem.read32(messagePointer + 4); - const u32 dataPointr = mem.read32(messagePointer + 20); - - mem.write32(messagePointer, IPC::responseHeader(0x0B, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::unregisterTask(u32 messagePointer) { - log("BOSS::UnregisterTask (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x0C, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -// There's multiple aliases for this command. commandWord is the first word in the IPC buffer with the command word, needed for the response header -void BOSSService::getNsDataIdList(u32 messagePointer, u32 commandWord) { - log("BOSS::GetNsDataIdList (stubbed)\n"); - - mem.write32(messagePointer, IPC::responseHeader(commandWord >> 16, 3, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write16(messagePointer + 8, 0); // u16: Actual number of output entries. - mem.write16(messagePointer + 12, 0); // u16: Last word-index copied to output in the internal NsDataId list. -} - -void BOSSService::registerStorageEntry(u32 messagePointer) { - log("BOSS::RegisterStorageEntry (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x2F, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::unregisterStorage(u32 messagePointer) { - log("BOSS::UnregisterStorage (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x3, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void BOSSService::getNewArrivalFlag(u32 messagePointer) { - log("BOSS::GetNewArrivalFlag (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x7, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, 0); // Flag -} \ No newline at end of file diff --git a/src/core/services/cam.cpp b/src/core/services/cam.cpp deleted file mode 100644 index b3dfd1dc..00000000 --- a/src/core/services/cam.cpp +++ /dev/null @@ -1,356 +0,0 @@ -#include "services/cam.hpp" - -#include - -#include "ipc.hpp" -#include "kernel.hpp" - -namespace CAMCommands { - enum : u32 { - StartCapture = 0x00010040, - GetBufferErrorInterruptEvent = 0x00060040, - SetReceiving = 0x00070102, - DriverInitialize = 0x00390000, - DriverFinalize = 0x003A0000, - SetTransferLines = 0x00090100, - GetMaxLines = 0x000A0080, - SetTransferBytes = 0x000B0100, - GetTransferBytes = 0x000C0040, - GetMaxBytes = 0x000D0080, - SetTrimming = 0x000E0080, - SetTrimmingParamsCenter = 0x00120140, - SetSize = 0x001F00C0, // Set size has different headers between cam:u and New3DS QTM module - SetFrameRate = 0x00200080, - SetContrast = 0x00230080, - GetSuitableY2rStandardCoefficient = 0x00360000, - }; -} - -// Helper struct for working with camera ports -class PortSelect { - u32 value; - - public: - PortSelect(u32 val) : value(val) {} - bool isValid() const { return value < 4; } - - bool isSinglePort() const { - // 1 corresponds to the first camera port and 2 corresponds to the second port - return value == 1 || value == 2; - } - - bool isBothPorts() const { - // 3 corresponds to both ports - return value == 3; - } - - // Returns the index of the camera port, assuming that it's only a single port - int getSingleIndex() const { - if (!isSinglePort()) [[unlikely]] { - Helpers::panic("Camera: getSingleIndex called for port with invalid value"); - } - - return value - 1; - } - - std::vector getPortIndices() const { - switch (value) { - case 1: return {0}; // Only port 1 - case 2: return {1}; // Only port 2 - case 3: return {0, 1}; // Both port 1 and port 2 - default: return {}; // No ports or invalid ports - } - } -}; - -void CAMService::reset() { - for (auto& port : ports) { - port.reset(); - } -} - -void CAMService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case CAMCommands::DriverInitialize: driverInitialize(messagePointer); break; - case CAMCommands::DriverFinalize: driverFinalize(messagePointer); break; - case CAMCommands::GetBufferErrorInterruptEvent: getBufferErrorInterruptEvent(messagePointer); break; - case CAMCommands::GetMaxBytes: getMaxBytes(messagePointer); break; - case CAMCommands::GetMaxLines: getMaxLines(messagePointer); break; - case CAMCommands::GetSuitableY2rStandardCoefficient: getSuitableY2RCoefficients(messagePointer); break; - case CAMCommands::GetTransferBytes: getTransferBytes(messagePointer); break; - case CAMCommands::SetContrast: setContrast(messagePointer); break; - case CAMCommands::SetFrameRate: setFrameRate(messagePointer); break; - case CAMCommands::SetReceiving: setReceiving(messagePointer); break; - case CAMCommands::SetSize: setSize(messagePointer); break; - case CAMCommands::SetTransferLines: setTransferLines(messagePointer); break; - case CAMCommands::SetTrimming: setTrimming(messagePointer); break; - case CAMCommands::SetTrimmingParamsCenter: setTrimmingParamsCenter(messagePointer); break; - case CAMCommands::StartCapture: startCapture(messagePointer); break; - - default: - Helpers::warn("Unimplemented CAM service requested. Command: %08X\n", command); - mem.write32(messagePointer + 4, Result::Success); - break; - } -} - -void CAMService::driverInitialize(u32 messagePointer) { - log("CAM::DriverInitialize\n"); - mem.write32(messagePointer, IPC::responseHeader(0x39, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CAMService::driverFinalize(u32 messagePointer) { - log("CAM::DriverFinalize\n"); - mem.write32(messagePointer, IPC::responseHeader(0x3A, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CAMService::setContrast(u32 messagePointer) { - const u32 cameraSelect = mem.read32(messagePointer + 4); - const u32 contrast = mem.read32(messagePointer + 8); - - log("CAM::SetPhotoMode (camera select = %d, contrast = %d)\n", cameraSelect, contrast); - - mem.write32(messagePointer, IPC::responseHeader(0x23, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CAMService::setTransferBytes(u32 messagePointer) { - const u32 portIndex = mem.read8(messagePointer + 4); - const u32 bytes = mem.read16(messagePointer + 8); - // ...why do these parameters even exist? - const u16 width = mem.read16(messagePointer + 12); - const u16 height = mem.read16(messagePointer + 16); - const PortSelect port(portIndex); - - if (port.isValid()) { - for (int i : port.getPortIndices()) { - ports[i].transferBytes = bytes; - } - } else { - Helpers::warn("CAM::SetTransferBytes: Invalid port\n"); - } - - log("CAM::SetTransferBytes (port = %d, bytes = %d, width = %d, height = %d)\n", portIndex, bytes, width, height); - - mem.write32(messagePointer, IPC::responseHeader(0x9, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CAMService::setTransferLines(u32 messagePointer) { - const u32 portIndex = mem.read8(messagePointer + 4); - const u16 lines = mem.read16(messagePointer + 8); - const u16 width = mem.read16(messagePointer + 12); - const u16 height = mem.read16(messagePointer + 16); - const PortSelect port(portIndex); - - if (port.isValid()) { - const u32 transferBytes = lines * width * 2; - - for (int i : port.getPortIndices()) { - ports[i].transferBytes = transferBytes; - } - } else { - Helpers::warn("CAM::SetTransferLines: Invalid port\n"); - } - - log("CAM::SetTransferLines (port = %d, lines = %d, width = %d, height = %d)\n", portIndex, lines, width, height); - - mem.write32(messagePointer, IPC::responseHeader(0x9, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CAMService::setFrameRate(u32 messagePointer) { - const u32 cameraSelect = mem.read32(messagePointer + 4); - const u32 framerate = mem.read32(messagePointer + 8); - - log("CAM::SetPhotoMode (camera select = %d, framerate = %d)\n", cameraSelect, framerate); - - mem.write32(messagePointer, IPC::responseHeader(0x20, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CAMService::setSize(u32 messagePointer) { - const u32 cameraSelect = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - const u32 context = mem.read32(messagePointer + 12); - - log("CAM::SetSize (camera select = %d, size = %d, context = %d)\n", cameraSelect, size, context); - - mem.write32(messagePointer, IPC::responseHeader(0x1F, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CAMService::setTrimming(u32 messagePointer) { - const u32 port = mem.read8(messagePointer + 4); - const bool trim = mem.read8(messagePointer + 8) != 0; - - log("CAM::SetTrimming (port = %d, trimming = %s)\n", port, trim ? "enabled" : "disabled"); - - mem.write32(messagePointer, IPC::responseHeader(0x0E, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CAMService::setTrimmingParamsCenter(u32 messagePointer) { - const u32 port = mem.read8(messagePointer + 4); - const s16 trimWidth = s16(mem.read16(messagePointer + 8)); - const s16 trimHeight = s16(mem.read16(messagePointer + 12)); - const s16 cameraWidth = s16(mem.read16(messagePointer + 16)); - const s16 cameraHeight = s16(mem.read16(messagePointer + 20)); - - log("CAM::SetTrimmingParamsCenter (port = %d), trim size = (%d, %d), camera size = (%d, %d)\n", port, trimWidth, trimHeight, cameraWidth, - cameraHeight); - - mem.write32(messagePointer, IPC::responseHeader(0x12, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// Algorithm taken from Citra -// https://github.com/citra-emu/citra/blob/master/src/core/hle/service/cam/cam.cpp#L465 -void CAMService::getMaxLines(u32 messagePointer) { - const u16 width = mem.read16(messagePointer + 4); - const u16 height = mem.read16(messagePointer + 8); - log("CAM::GetMaxLines (width = %d, height = %d)\n", width, height); - - constexpr u32 MIN_TRANSFER_UNIT = 256; - constexpr u32 MAX_BUFFER_SIZE = 2560; - if (width * height * 2 % MIN_TRANSFER_UNIT != 0) { - Helpers::panic("CAM::GetMaxLines out of range"); - } else { - u32 lines = MAX_BUFFER_SIZE / width; - if (lines > height) { - lines = height; - } - - u32 result = Result::Success; - while (height % lines != 0 || (lines * width * 2 % MIN_TRANSFER_UNIT != 0)) { - --lines; - if (lines == 0) { - Helpers::panic("CAM::GetMaxLines out of range"); - break; - } - } - - mem.write32(messagePointer, IPC::responseHeader(0xA, 2, 0)); - mem.write32(messagePointer + 4, result); - mem.write16(messagePointer + 8, lines); - } -} - -void CAMService::getMaxBytes(u32 messagePointer) { - const u16 width = mem.read16(messagePointer + 4); - const u16 height = mem.read16(messagePointer + 8); - log("CAM::GetMaxBytes (width = %d, height = %d)\n", width, height); - - constexpr u32 MIN_TRANSFER_UNIT = 256; - constexpr u32 MAX_BUFFER_SIZE = 2560; - if (width * height * 2 % MIN_TRANSFER_UNIT != 0) { - Helpers::panic("CAM::GetMaxLines out of range"); - } else { - u32 bytes = MAX_BUFFER_SIZE; - - while (width * height * 2 % bytes != 0) { - bytes -= MIN_TRANSFER_UNIT; - } - - mem.write32(messagePointer, IPC::responseHeader(0xA, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, bytes); - } -} - -void CAMService::getSuitableY2RCoefficients(u32 messagePointer) { - log("CAM::GetSuitableY2RCoefficients\n"); - mem.write32(messagePointer, IPC::responseHeader(0x36, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - // Y2R standard coefficient value - mem.write32(messagePointer + 8, 0); -} - -void CAMService::getTransferBytes(u32 messagePointer) { - const u32 portIndex = mem.read8(messagePointer + 4); - const PortSelect port(portIndex); - log("CAM::GetTransferBytes (port = %d)\n", portIndex); - - mem.write32(messagePointer, IPC::responseHeader(0x0C, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - - if (port.isSinglePort()) { - mem.write32(messagePointer + 8, ports[port.getSingleIndex()].transferBytes); - } else { - // TODO: This should return the proper error code - Helpers::warn("CAM::GetTransferBytes: Invalid port index"); - mem.write32(messagePointer + 8, 0); - } -} - -void CAMService::getBufferErrorInterruptEvent(u32 messagePointer) { - const u32 portIndex = mem.read8(messagePointer + 4); - const PortSelect port(portIndex); - log("CAM::GetBufferErrorInterruptEvent (port = %d)\n", portIndex); - - mem.write32(messagePointer, IPC::responseHeader(0x6, 1, 2)); - - if (port.isSinglePort()) { - auto& event = ports[port.getSingleIndex()].bufferErrorInterruptEvent; - if (!event.has_value()) { - event = kernel.makeEvent(ResetType::OneShot); - } - - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); - mem.write32(messagePointer + 12, event.value()); - } else { - Helpers::panic("CAM::GetBufferErrorInterruptEvent: Invalid port"); - } -} - -void CAMService::setReceiving(u32 messagePointer) { - const u32 destination = mem.read32(messagePointer + 4); - const u32 portIndex = mem.read8(messagePointer + 8); - const u32 size = mem.read32(messagePointer + 12); - const u16 transferUnit = mem.read16(messagePointer + 16); - const Handle process = mem.read32(messagePointer + 24); - - const PortSelect port(portIndex); - log("CAM::SetReceiving (port = %d)\n", portIndex); - - mem.write32(messagePointer, IPC::responseHeader(0x7, 1, 2)); - - if (port.isSinglePort()) { - auto& event = ports[port.getSingleIndex()].receiveEvent; - if (!event.has_value()) { - event = kernel.makeEvent(ResetType::OneShot); - } - - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); - mem.write32(messagePointer + 12, event.value()); - } else { - Helpers::panic("CAM::SetReceiving: Invalid port"); - } -} - -void CAMService::startCapture(u32 messagePointer) { - const u32 portIndex = mem.read8(messagePointer + 4); - const PortSelect port(portIndex); - log("CAM::StartCapture (port = %d)\n", portIndex); - - mem.write32(messagePointer, IPC::responseHeader(0x01, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - - if (port.isValid()) { - for (int i : port.getPortIndices()) { - auto& event = ports[port.getSingleIndex()].receiveEvent; - - // Until we properly implement cameras, immediately signal the receive event - if (event.has_value()) { - kernel.signalEvent(event.value()); - } - } - } else { - Helpers::warn("CAM::StartCapture: Invalid port index"); - } -} diff --git a/src/core/services/cecd.cpp b/src/core/services/cecd.cpp deleted file mode 100644 index 6607884f..00000000 --- a/src/core/services/cecd.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include "services/cecd.hpp" - -#include "ipc.hpp" -#include "kernel.hpp" - -namespace CECDCommands { - enum : u32 { - GetInfoEventHandle = 0x000F0000, - OpenAndRead = 0x00120104, - }; -} - -void CECDService::reset() { infoEvent = std::nullopt; } - -void CECDService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case CECDCommands::GetInfoEventHandle: getInfoEventHandle(messagePointer); break; - case CECDCommands::OpenAndRead: openAndRead(messagePointer); break; - default: - Helpers::panicDev("CECD service requested. Command: %08X\n", command); - mem.write32(messagePointer + 4, Result::Success); - break; - } -} - -void CECDService::getInfoEventHandle(u32 messagePointer) { - log("CECD::GetInfoEventHandle (stubbed)\n"); - - if (!infoEvent.has_value()) { - infoEvent = kernel.makeEvent(ResetType::OneShot); - } - - mem.write32(messagePointer, IPC::responseHeader(0xF, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - // TODO: Translation descriptor here? - mem.write32(messagePointer + 12, infoEvent.value()); -} - -void CECDService::openAndRead(u32 messagePointer) { - const u32 bufferSize = mem.read32(messagePointer + 4); - const u32 programID = mem.read32(messagePointer + 8); - const u32 pathType = mem.read32(messagePointer + 12); - const u32 bufferAddress = mem.read32(messagePointer + 32); - log("CECD::OpenAndRead (size = %08X, address = %08X, path type = %d)\n", bufferSize, bufferAddress, pathType); - - // TODO: We should implement this properly the time comes - mem.write32(messagePointer, IPC::responseHeader(0x12, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); // Bytes read -} \ No newline at end of file diff --git a/src/core/services/cfg.cpp b/src/core/services/cfg.cpp deleted file mode 100644 index 0b5f6437..00000000 --- a/src/core/services/cfg.cpp +++ /dev/null @@ -1,295 +0,0 @@ -#include "services/cfg.hpp" -#include "services/dsp.hpp" -#include "system_models.hpp" -#include "ipc.hpp" - -#include -#include -#include -#include - -namespace CFGCommands { - enum : u32 { - GetConfigInfoBlk2 = 0x00010082, - GetConfigInfoBlk8 = 0x04010082, - SecureInfoGetRegion = 0x00020000, - GenHashConsoleUnique = 0x00030040, - GetRegionCanadaUSA = 0x00040000, - GetSystemModel = 0x00050000, - TranslateCountryInfo = 0x00080080, - GetCountryCodeID = 0x000A0040, - - GetLocalFriendCodeSeed = 0x04050000, - SecureInfoGetByte101 = 0x04070000, - }; -} - -void CFGService::reset() {} - -void CFGService::handleSyncRequest(u32 messagePointer, CFGService::Type type) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case CFGCommands::GetConfigInfoBlk2: [[likely]] getConfigInfoBlk2(messagePointer); break; - case CFGCommands::GetCountryCodeID: getCountryCodeID(messagePointer); break; - case CFGCommands::GetRegionCanadaUSA: getRegionCanadaUSA(messagePointer); break; - case CFGCommands::GetSystemModel: getSystemModel(messagePointer); break; - case CFGCommands::GenHashConsoleUnique: genUniqueConsoleHash(messagePointer); break; - case CFGCommands::SecureInfoGetRegion: secureInfoGetRegion(messagePointer); break; - case CFGCommands::TranslateCountryInfo: translateCountryInfo(messagePointer); break; - - default: - if (type == Type::S) { - // cfg:s-only functions - switch (command) { - case CFGCommands::GetConfigInfoBlk8: getConfigInfoBlk8(messagePointer); break; - case CFGCommands::GetLocalFriendCodeSeed: getLocalFriendCodeSeed(messagePointer); break; - case CFGCommands::SecureInfoGetByte101: secureInfoGetByte101(messagePointer); break; - default: Helpers::panic("CFG:S service requested. Command: %08X\n", command); - } - } else { - Helpers::panic("CFG service requested. Command: %08X\n", command); - } - - break; - } -} - -void CFGService::getSystemModel(u32 messagePointer) { - log("CFG::GetSystemModel\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x05, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, SystemModel::Nintendo3DS); // TODO: Make this adjustable via GUI -} - -// Write a UTF16 string to 3DS memory starting at "pointer". Appends a null terminator. -void CFGService::writeStringU16(u32 pointer, const std::u16string& string) { - for (auto c : string) { - mem.write16(pointer, static_cast(c)); - pointer += 2; - } - - mem.write16(pointer, static_cast(u'\0')); // Null terminator -} - -void CFGService::getConfigInfoBlk2(u32 messagePointer) { - u32 size = mem.read32(messagePointer + 4); - u32 blockID = mem.read32(messagePointer + 8); - u32 output = mem.read32(messagePointer + 16); // Pointer to write the output data to - log("CFG::GetConfigInfoBlk2 (size = %X, block ID = %X, output pointer = %08X\n", size, blockID, output); - - - getConfigInfo(output, blockID, size, 0x2); - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CFGService::getConfigInfoBlk8(u32 messagePointer) { - u32 size = mem.read32(messagePointer + 4); - u32 blockID = mem.read32(messagePointer + 8); - u32 output = mem.read32(messagePointer + 16); // Pointer to write the output data to - log("CFG::GetConfigInfoBlk8 (size = %X, block ID = %X, output pointer = %08X\n", size, blockID, output); - - getConfigInfo(output, blockID, size, 0x8); - mem.write32(messagePointer, IPC::responseHeader(0x401, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void CFGService::getConfigInfo(u32 output, u32 blockID, u32 size, u32 permissionMask) { - // TODO: Make this not bad - if (size == 1 && blockID == 0x70001) { // Sound output mode - mem.write8(output, static_cast(DSPService::SoundOutputMode::Stereo)); - } else if (size == 1 && blockID == 0xA0002) { // System language - mem.write8(output, static_cast(LanguageCodes::English)); - } else if (size == 4 && blockID == 0xB0000) { // Country info - mem.write8(output, 0); // Unknown - mem.write8(output + 1, 0); // Unknown - mem.write8(output + 2, 2); // Province (Temporarily stubbed to Washington DC like Citra) - mem.write8(output + 3, static_cast(country)); // Country code - } else if (size == 0x20 && blockID == 0x50005) { - // "Stereo Camera settings" - // Implementing this properly fixes NaN uniforms in some games. Values taken from 3dmoo & Citra - static constexpr std::array STEREO_CAMERA_SETTINGS = { - 62.0f, 289.0f, 76.80000305175781f, 46.08000183105469f, 10.0f, 5.0f, 55.58000183105469f, 21.56999969482422f, - }; - - for (int i = 0; i < 8; i++) { - mem.write32(output + i * 4, Helpers::bit_cast(STEREO_CAMERA_SETTINGS[i])); - } - } else if (size == 0x1C && blockID == 0xA0000) { // Username - writeStringU16(output, u"Pander"); - } else if (size == 0xC0 && blockID == 0xC0000) { // Parental restrictions info - for (int i = 0; i < 0xC0; i++) mem.write8(output + i, 0); - } else if (size == 4 && blockID == 0xD0000) { // Agreed EULA version (first 2 bytes) and latest EULA version (next 2 bytes) - log("Read EULA info\n"); - mem.write16(output, 0x0202); // Agreed EULA version = 2.2 (Random number. TODO: Check) - mem.write16(output + 2, 0x0202); // Latest EULA version = 2.2 - } else if (size == 0x800 && blockID == 0xB0001) { // UTF-16 name for our country in every language at 0x80 byte intervals - constexpr size_t languageCount = 16; - constexpr size_t nameSize = 0x80; // Max size of each name in bytes - std::u16string name = u"PandaLand (Home of PandaSemi LLC) (aka Pandistan)"; // Note: This + the null terminator needs to fit in 0x80 bytes - - for (int i = 0; i < languageCount; i++) { - u32 pointer = output + i * nameSize; - writeStringU16(pointer, name); - } - } else if (size == 0x800 && blockID == 0xB0002) { // UTF-16 name for our state in every language at 0x80 byte intervals - constexpr size_t languageCount = 16; - constexpr size_t nameSize = 0x80; // Max size of each name in bytes - std::u16string name = u"Pandington"; // Note: This + the null terminator needs to fit in 0x80 bytes - - for (int i = 0; i < languageCount; i++) { - u32 pointer = output + i * nameSize; - writeStringU16(pointer, name); - } - } else if (size == 4 && blockID == 0xB0003) { // Coordinates (latidude and longtitude) as s16 - mem.write16(output, 0); // Latitude - mem.write16(output + 2, 0); // Longtitude - } else if (size == 2 && blockID == 0xA0001) { // Birthday - mem.write8(output, 5); // Month (May) - mem.write8(output + 1, 5); // Day (Fifth) - } else if (size == 8 && blockID == 0x30001) { // User time offset - printf("Read from user time offset field in NAND. TODO: What is this\n"); - mem.write64(output, 0); - } else if (size == 20 && blockID == 0xC0001) { // COPPACS restriction data, used by games when they detect a USA/Canada region for market - // restriction stuff - for (u32 i = 0; i < size; i += 4) { - mem.write32(output + i, 0); - } - } else if (size == 4 && blockID == 0x170000) { // Miiverse access key - mem.write32(output, 0); - } else if (size == 8 && blockID == 0x00090000) { - mem.write64(output, 0); // Some sort of key used with nwm::UDS::InitializeWithVersion - } else { - Helpers::panic("Unhandled GetConfigInfoBlk2 configuration. Size = %d, block = %X", size, blockID); - } -} - -void CFGService::secureInfoGetRegion(u32 messagePointer) { - log("CFG::SecureInfoGetRegion\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x2, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, static_cast(mem.getConsoleRegion())); -} - -void CFGService::genUniqueConsoleHash(u32 messagePointer) { - log("CFG::GenUniqueConsoleHash (semi-stubbed)\n"); - const u32 salt = mem.read32(messagePointer + 4) & 0x000FFFFF; - - mem.write32(messagePointer, IPC::responseHeader(0x3, 3, 0)); - mem.write32(messagePointer + 4, Result::Success); - // We need to implement hash generation & the SHA-256 digest properly later on. We have cryptopp so the hashing isn't too hard to do - // Let's stub it for now - mem.write32(messagePointer + 8, 0x33646D6F ^ salt); // Lower word of hash - mem.write32(messagePointer + 12, 0xA3534841 ^ salt); // Upper word of hash -} - -// Returns 1 if the console region is either Canada or USA, otherwise returns 0 -// Used for market restriction-related stuff -void CFGService::getRegionCanadaUSA(u32 messagePointer) { - log("CFG::GetRegionCanadaUSA\n"); - bool regionUSA = mem.getConsoleRegion() == Regions::USA; - u8 ret; - - // First, this function checks that the console region is 1 (USA). If not then it instantly returns 0 - // Then it checks whether the country is US or Canda. If yes it returns 1, else it returns 0. - if (!regionUSA) { - ret = 0; - } else { - ret = (country == CountryCodes::US || country == CountryCodes::CA) ? 1 : 0; - } - - mem.write32(messagePointer, IPC::responseHeader(0x4, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, ret); -} - -constexpr u16 C(const char name[3]) { return name[0] | (name[1] << 8); } -static std::unordered_map countryCodeToTableIDMap = { - {C("JP"), 1}, {C("AI"), 8}, {C("AG"), 9}, {C("AR"), 10}, {C("AW"), 11}, {C("BS"), 12}, {C("BB"), 13}, {C("BZ"), 14}, {C("BO"), 15}, - {C("BR"), 16}, {C("VG"), 17}, {C("CA"), 18}, {C("KY"), 19}, {C("CL"), 20}, {C("CO"), 21}, {C("CR"), 22}, {C("DM"), 23}, {C("DO"), 24}, - {C("EC"), 25}, {C("SV"), 26}, {C("GF"), 27}, {C("GD"), 28}, {C("GP"), 29}, {C("GT"), 30}, {C("GY"), 31}, {C("HT"), 32}, {C("HN"), 33}, - {C("JM"), 34}, {C("MQ"), 35}, {C("MX"), 36}, {C("MS"), 37}, {C("AN"), 38}, {C("NI"), 39}, {C("PA"), 40}, {C("PY"), 41}, {C("PE"), 42}, - {C("KN"), 43}, {C("LC"), 44}, {C("VC"), 45}, {C("SR"), 46}, {C("TT"), 47}, {C("TC"), 48}, {C("US"), 49}, {C("UY"), 50}, {C("VI"), 51}, - {C("VE"), 52}, {C("AL"), 64}, {C("AU"), 65}, {C("AT"), 66}, {C("BE"), 67}, {C("BA"), 68}, {C("BW"), 69}, {C("BG"), 70}, {C("HR"), 71}, - {C("CY"), 72}, {C("CZ"), 73}, {C("DK"), 74}, {C("EE"), 75}, {C("FI"), 76}, {C("FR"), 77}, {C("DE"), 78}, {C("GR"), 79}, {C("HU"), 80}, - {C("IS"), 81}, {C("IE"), 82}, {C("IT"), 83}, {C("LV"), 84}, {C("LS"), 85}, {C("LI"), 86}, {C("LT"), 87}, {C("LU"), 88}, {C("MK"), 89}, - {C("MT"), 90}, {C("ME"), 91}, {C("MZ"), 92}, {C("NA"), 93}, {C("NL"), 94}, {C("NZ"), 95}, {C("NO"), 96}, {C("PL"), 97}, {C("PT"), 98}, - {C("RO"), 99}, {C("RU"), 100}, {C("RS"), 101}, {C("SK"), 102}, {C("SI"), 103}, {C("ZA"), 104}, {C("ES"), 105}, {C("SZ"), 106}, {C("SE"), 107}, - {C("CH"), 108}, {C("TR"), 109}, {C("GB"), 110}, {C("ZM"), 111}, {C("ZW"), 112}, {C("AZ"), 113}, {C("MR"), 114}, {C("ML"), 115}, {C("NE"), 116}, - {C("TD"), 117}, {C("SD"), 118}, {C("ER"), 119}, {C("DJ"), 120}, {C("SO"), 121}, {C("AD"), 122}, {C("GI"), 123}, {C("GG"), 124}, {C("IM"), 125}, - {C("JE"), 126}, {C("MC"), 127}, {C("TW"), 128}, {C("KR"), 136}, {C("HK"), 144}, {C("MO"), 145}, {C("ID"), 152}, {C("SG"), 153}, {C("TH"), 154}, - {C("PH"), 155}, {C("MY"), 156}, {C("CN"), 160}, {C("AE"), 168}, {C("IN"), 169}, {C("EG"), 170}, {C("OM"), 171}, {C("QA"), 172}, {C("KW"), 173}, - {C("SA"), 174}, {C("SY"), 175}, {C("BH"), 176}, {C("JO"), 177}, {C("SM"), 184}, {C("VA"), 185}, {C("BM"), 186}, -}; - -void CFGService::getCountryCodeID(u32 messagePointer) { - // Read the character code as a u16 instead of as ASCII, and use it to index the unordered_map above and get the result - const u16 characterCode = mem.read16(messagePointer + 4); - log("CFG::GetCountryCodeID (code = %04X)\n", characterCode); - - mem.write32(messagePointer, IPC::responseHeader(0x0A, 2, 0)); - - // If the character code is valid, return its table ID and a success code - if (auto search = countryCodeToTableIDMap.find(characterCode); search != countryCodeToTableIDMap.end()) { - mem.write32(messagePointer + 4, Result::Success); - mem.write16(messagePointer + 8, search->second); - } - - else { - Helpers::warn("CFG::GetCountryCodeID: Invalid country code %X", characterCode); - mem.write32(messagePointer + 4, Result::CFG::NotFound); - mem.write16(messagePointer + 8, 0xFF); - } -} - -void CFGService::secureInfoGetByte101(u32 messagePointer) { - log("CFG::SecureInfoGetByte101\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x407, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, 0); // Secure info byte 0x101 is usually 0 according to 3DBrew -} - -void CFGService::getLocalFriendCodeSeed(u32 messagePointer) { - log("CFG::GetLocalFriendCodeSeed\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x405, 3, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write64(messagePointer + 8, 0); -} - -// https://www.3dbrew.org/wiki/Cfg:TranslateCountryInfo -void CFGService::translateCountryInfo(u32 messagePointer) { - const u32 country = mem.read32(messagePointer + 4); - const u8 direction = mem.read8(messagePointer + 8); - log("CFG::TranslateCountryInfo (country = %d, direction = %d)\n", country, direction); - - // By default the translated code is the input - u32 result = country; - - if (direction == 0) { // Translate from version B to version A - switch (country) { - case 0x6E040000: result = 0x6E030000; break; - case 0x6E050000: result = 0x6E040000; break; - case 0x6E060000: result = 0x6E050000; break; - case 0x6E070000: result = 0x6E060000; break; - case 0x6E030000: result = 0x6E070000; break; - default: break; - } - } else if (direction == 1) { // Translate from version A to version B - switch (country) { - case 0x6E030000: result = 0x6E040000; break; - case 0x6E040000: result = 0x6E050000; break; - case 0x6E050000: result = 0x6E060000; break; - case 0x6E060000: result = 0x6E070000; break; - case 0x6E070000: result = 0x6E030000; break; - default: break; - } - } - - mem.write32(messagePointer, IPC::responseHeader(0x8, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, result); -} \ No newline at end of file diff --git a/src/core/services/csnd.cpp b/src/core/services/csnd.cpp deleted file mode 100644 index 4c86c471..00000000 --- a/src/core/services/csnd.cpp +++ /dev/null @@ -1,104 +0,0 @@ -#include "services/csnd.hpp" - -#include "ipc.hpp" -#include "kernel.hpp" -#include "result/result.hpp" - -namespace CSNDCommands { - enum : u32 { - Initialize = 0x00010140, - ExecuteCommands = 0x00030040, - AcquireSoundChannels = 0x00050000, - }; -} - -void CSNDService::reset() { - csndMutex = std::nullopt; - initialized = false; - sharedMemory = nullptr; - sharedMemSize = 0; -} - -void CSNDService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - - switch (command) { - case CSNDCommands::AcquireSoundChannels: acquireSoundChannels(messagePointer); break; - case CSNDCommands::ExecuteCommands: executeCommands(messagePointer); break; - case CSNDCommands::Initialize: initialize(messagePointer); break; - - default: - Helpers::warn("Unimplemented CSND service requested. Command: %08X\n", command); - mem.write32(messagePointer + 4, Result::Success); - break; - } -} - -void CSNDService::acquireSoundChannels(u32 messagePointer) { - log("CSND::AcquireSoundChannels\n"); - // The CSND service talks to the DSP using the DSP FIFO to negotiate what CSND channels are allocated to the DSP, and this seems to be channels 0-7 (usually). The rest are dedicated to CSND services. - // https://www.3dbrew.org/wiki/CSND_Services - constexpr u32 csndChannelMask = 0xFFFFFF00; - - mem.write32(messagePointer, IPC::responseHeader(0x5, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, csndChannelMask); -} - -void CSNDService::initialize(u32 messagePointer) { - u32 blockSize = mem.read32(messagePointer + 4); - const u32 offset0 = mem.read32(messagePointer + 8); - const u32 offset1 = mem.read32(messagePointer + 12); - const u32 offset2 = mem.read32(messagePointer + 16); - const u32 offset3 = mem.read32(messagePointer + 20); - - log("CSND::Initialize (Block size = %08X, offset0 = %X, offset1 = %X, offset2 = %X, offset3 = %X)\n", blockSize, offset0, offset1, offset2, offset3); - - // Align block size to 4KB. CSND shared memory block is currently stubbed to be 0x3000 == 12KB, so panic if this is more than requested - blockSize = (blockSize + 0xFFF) & ~0xFFF; - if (blockSize != 12_KB) { - Helpers::panic("Unhandled size for CSND shared memory block"); - } - - if (initialized) { - printf("CSND initialized twice\n"); - } - - if (!csndMutex.has_value()) { - csndMutex = kernel.makeMutex(false); - } - - initialized = true; - sharedMemSize = blockSize; - - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 3)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0x4000000); - mem.write32(messagePointer + 12, csndMutex.value()); - mem.write32(messagePointer + 16, KernelHandles::CSNDSharedMemHandle); -} - -void CSNDService::executeCommands(u32 messagePointer) { - const u32 offset = mem.read32(messagePointer + 4); - log("CSND::ExecuteCommands (command offset = %X)\n", offset); - - mem.write32(messagePointer, IPC::responseHeader(0x5, 2, 0)); - - if (!sharedMemory) { - Helpers::warn("CSND::Execute commands without shared memory"); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - return; - } - - mem.write32(messagePointer + 4, Result::Success); - - // This is initially zero when this command data is written by the user process, once the CSND module finishes processing the command this is set - // to 0x1. This flag is only set to value 1 for the first command(once processing for the entire command chain is finished) at the offset - // specified in the service command, not all type0 commands in the chain. - constexpr u32 commandListDoneOffset = 0x4; - - // Make sure to not access OoB of the shared memory block when marking command list processing as finished - if (offset + commandListDoneOffset < sharedMemSize) { - sharedMemory[offset + commandListDoneOffset] = 1; - } -} \ No newline at end of file diff --git a/src/core/services/dlp_srvr.cpp b/src/core/services/dlp_srvr.cpp deleted file mode 100644 index e3ef25e9..00000000 --- a/src/core/services/dlp_srvr.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "services/dlp_srvr.hpp" -#include "ipc.hpp" - -namespace DlpSrvrCommands { - enum : u32 { - IsChild = 0x000E0040 - }; -} - -void DlpSrvrService::reset() {} - -void DlpSrvrService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case DlpSrvrCommands::IsChild: isChild(messagePointer); break; - default: Helpers::panic("DLP::SRVR service requested. Command: %08X\n", command); - } -} - -void DlpSrvrService::isChild(u32 messagePointer) { - log("DLP::SRVR: IsChild\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x0E, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); // We are responsible adults -} \ No newline at end of file diff --git a/src/core/services/dsp.cpp b/src/core/services/dsp.cpp deleted file mode 100644 index 33c1703d..00000000 --- a/src/core/services/dsp.cpp +++ /dev/null @@ -1,287 +0,0 @@ -#include "services/dsp.hpp" -#include "ipc.hpp" -#include "kernel.hpp" - -#include - -namespace DSPCommands { - enum : u32 { - RecvData = 0x00010040, - RecvDataIsReady = 0x00020040, - SetSemaphore = 0x00070040, - ConvertProcessAddressFromDspDram = 0x000C0040, - WriteProcessPipe = 0x000D0082, - ReadPipeIfPossible = 0x001000C0, - LoadComponent = 0x001100C2, - UnloadComponent = 0x00120000, - FlushDataCache = 0x00130082, - InvalidateDataCache = 0x00140082, - RegisterInterruptEvents = 0x00150082, - GetSemaphoreEventHandle = 0x00160000, - SetSemaphoreMask = 0x00170040, - GetHeadphoneStatus = 0x001F0000 - }; -} - -namespace Result { - enum : u32 { - HeadphonesNotInserted = 0, - HeadphonesInserted = 1 - }; -} - -void DSPService::reset() { - totalEventCount = 0; - semaphoreMask = 0; - - semaphoreEvent = std::nullopt; - interrupt0 = std::nullopt; - interrupt1 = std::nullopt; - - for (DSPEvent& e : pipeEvents) { - e = std::nullopt; - } -} - -void DSPService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case DSPCommands::ConvertProcessAddressFromDspDram: convertProcessAddressFromDspDram(messagePointer); break; - case DSPCommands::FlushDataCache: flushDataCache(messagePointer); break; - case DSPCommands::InvalidateDataCache: invalidateDCache(messagePointer); break; - case DSPCommands::GetHeadphoneStatus: getHeadphoneStatus(messagePointer); break; - case DSPCommands::GetSemaphoreEventHandle: getSemaphoreEventHandle(messagePointer); break; - case DSPCommands::LoadComponent: loadComponent(messagePointer); break; - case DSPCommands::ReadPipeIfPossible: readPipeIfPossible(messagePointer); break; - case DSPCommands::RecvData: [[likely]] recvData(messagePointer); break; - case DSPCommands::RecvDataIsReady: [[likely]] recvDataIsReady(messagePointer); break; - case DSPCommands::RegisterInterruptEvents: registerInterruptEvents(messagePointer); break; - case DSPCommands::SetSemaphore: setSemaphore(messagePointer); break; - case DSPCommands::SetSemaphoreMask: setSemaphoreMask(messagePointer); break; - case DSPCommands::UnloadComponent: unloadComponent(messagePointer); break; - case DSPCommands::WriteProcessPipe: [[likely]] writeProcessPipe(messagePointer); break; - default: Helpers::panic("DSP service requested. Command: %08X\n", command); - } -} - -void DSPService::convertProcessAddressFromDspDram(u32 messagePointer) { - const u32 address = mem.read32(messagePointer + 4); - log("DSP::ConvertProcessAddressFromDspDram (address = %08X)\n", address); - const u32 converted = (address << 1) + 0x1FF40000; - - mem.write32(messagePointer, IPC::responseHeader(0xC, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, converted); // Converted address -} - -void DSPService::loadComponent(u32 messagePointer) { - u32 size = mem.read32(messagePointer + 4); - u32 programMask = mem.read32(messagePointer + 8); - u32 dataMask = mem.read32(messagePointer + 12); - u32 buffer = mem.read32(messagePointer + 20); - - std::vector data(size); - for (u32 i = 0; i < size; i++) { - data[i] = mem.read8(buffer + i); - } - - log("DSP::LoadComponent (size = %08X, program mask = %X, data mask = %X\n", size, programMask, dataMask); - dsp->loadComponent(data, programMask, dataMask); - - mem.write32(messagePointer, IPC::responseHeader(0x11, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 1); // Component loaded - mem.write32(messagePointer + 12, (size << 4) | 0xA); - mem.write32(messagePointer + 16, mem.read32(messagePointer + 20)); // Component buffer -} - -void DSPService::unloadComponent(u32 messagePointer) { - log("DSP::UnloadComponent\n"); - dsp->unloadComponent(); - - mem.write32(messagePointer, IPC::responseHeader(0x12, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void DSPService::readPipeIfPossible(u32 messagePointer) { - u32 channel = mem.read32(messagePointer + 4); - u32 peer = mem.read32(messagePointer + 8); - u16 size = mem.read16(messagePointer + 12); - u32 buffer = mem.read32(messagePointer + 0x100 + 4); - log("DSP::ReadPipeIfPossible (channel = %d, peer = %d, size = %04X, buffer = %08X)\n", channel, peer, size, buffer); - mem.write32(messagePointer, IPC::responseHeader(0x10, 2, 2)); - - std::vector data = dsp->readPipe(channel, peer, size, buffer); - for (uint i = 0; i < data.size(); i++) { - mem.write8(buffer + i, data[i]); - } - - mem.write32(messagePointer + 4, Result::Success); - mem.write16(messagePointer + 8, u16(data.size())); // Number of bytes read -} - -void DSPService::recvData(u32 messagePointer) { - const u32 registerIndex = mem.read32(messagePointer + 4); - log("DSP::RecvData (register = %d)\n", registerIndex); - if (registerIndex != 0) Helpers::panic("Unknown register in DSP::RecvData"); - - const u16 data = dsp->recvData(registerIndex); - - mem.write32(messagePointer, IPC::responseHeader(0x01, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write16(messagePointer + 8, data); -} - -void DSPService::recvDataIsReady(u32 messagePointer) { - const u32 registerIndex = mem.read32(messagePointer + 4); - log("DSP::RecvDataIsReady (register = %d)\n", registerIndex); - - bool isReady = dsp->recvDataIsReady(registerIndex); - - mem.write32(messagePointer, IPC::responseHeader(0x02, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, isReady ? 1 : 0); -} - -DSPService::DSPEvent& DSPService::getEventRef(u32 type, u32 pipe) { - switch (type) { - case 0: return interrupt0; - case 1: return interrupt1; - - case 2: - if (pipe >= pipeCount) - Helpers::panic("Tried to access the event of an invalid pipe"); - return pipeEvents[pipe]; - - default: - Helpers::panic("Unknown type for DSP::getEventRef"); - } -} - -void DSPService::registerInterruptEvents(u32 messagePointer) { - const u32 interrupt = mem.read32(messagePointer + 4); - const u32 channel = mem.read32(messagePointer + 8); - const u32 eventHandle = mem.read32(messagePointer + 16); - log("DSP::RegisterInterruptEvents (interrupt = %d, channel = %d, event = %d)\n", interrupt, channel, eventHandle); - - // The event handle being 0 means we're removing an event - if (eventHandle == 0) { - DSPEvent& e = getEventRef(interrupt, channel); // Get event - if (e.has_value()) { // Remove if it exists - totalEventCount--; - e = std::nullopt; - } - } else { - const KernelObject* object = kernel.getObject(eventHandle, KernelObjectType::Event); - if (!object) { - Helpers::panic("DSP::DSP::RegisterInterruptEvents with invalid event handle"); - } - - if (totalEventCount >= maxEventCount) - Helpers::panic("DSP::RegisterInterruptEvents overflowed total number of allowed events"); - else { - getEventRef(interrupt, channel) = eventHandle; - mem.write32(messagePointer, IPC::responseHeader(0x15, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - - totalEventCount++; - } - } -} - -void DSPService::getHeadphoneStatus(u32 messagePointer) { - log("DSP::GetHeadphoneStatus\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x1F, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, Result::HeadphonesInserted); // This should be toggleable for shits and giggles -} - -void DSPService::getSemaphoreEventHandle(u32 messagePointer) { - log("DSP::GetSemaphoreEventHandle\n"); - - if (!semaphoreEvent.has_value()) { - semaphoreEvent = kernel.makeEvent(ResetType::OneShot, Event::CallbackType::DSPSemaphore); - } - - mem.write32(messagePointer, IPC::responseHeader(0x16, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - // TODO: Translation descriptor here? - mem.write32(messagePointer + 12, semaphoreEvent.value()); // Semaphore event handle - kernel.signalEvent(semaphoreEvent.value()); -} - -void DSPService::setSemaphore(u32 messagePointer) { - const u16 value = mem.read16(messagePointer + 4); - log("DSP::SetSemaphore(value = %04X)\n", value); - - dsp->setSemaphore(value); - mem.write32(messagePointer, IPC::responseHeader(0x7, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void DSPService::setSemaphoreMask(u32 messagePointer) { - const u16 mask = mem.read16(messagePointer + 4); - log("DSP::SetSemaphoreMask(mask = %04X)\n", mask); - - dsp->setSemaphoreMask(mask); - semaphoreMask = mask; - - mem.write32(messagePointer, IPC::responseHeader(0x17, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void DSPService::writeProcessPipe(u32 messagePointer) { - const u32 channel = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - const u32 buffer = mem.read32(messagePointer + 16); - log("DSP::writeProcessPipe (channel = %d, size = %X, buffer = %08X)\n", channel, size, buffer); - - dsp->writeProcessPipe(channel, size, buffer); - mem.write32(messagePointer, IPC::responseHeader(0xD, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void DSPService::flushDataCache(u32 messagePointer) { - const u32 address = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - const Handle process = mem.read32(messagePointer + 16); - - log("DSP::FlushDataCache (addr = %08X, size = %08X, process = %X)\n", address, size, process); - mem.write32(messagePointer, IPC::responseHeader(0x13, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void DSPService::invalidateDCache(u32 messagePointer) { - const u32 address = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - const Handle process = mem.read32(messagePointer + 16); - - log("DSP::InvalidateDataCache (addr = %08X, size = %08X, process = %X)\n", address, size, process); - mem.write32(messagePointer, IPC::responseHeader(0x14, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void DSPService::triggerPipeEvent(int index) { - if (index < pipeCount && pipeEvents[index].has_value()) { - kernel.signalEvent(*pipeEvents[index]); - } -} - -void DSPService::triggerSemaphoreEvent() { - if (semaphoreEvent.has_value()) { - kernel.signalEvent(*semaphoreEvent); - } -} - -void DSPService::triggerInterrupt0() { - if (interrupt0.has_value()) { - kernel.signalEvent(*interrupt0); - } -} - -void DSPService::triggerInterrupt1() { - if (interrupt1.has_value()) { - kernel.signalEvent(*interrupt1); - } -} \ No newline at end of file diff --git a/src/core/services/fonts/CitraSharedFontUSRelocated.bin b/src/core/services/fonts/CitraSharedFontUSRelocated.bin deleted file mode 100644 index c544d677..00000000 Binary files a/src/core/services/fonts/CitraSharedFontUSRelocated.bin and /dev/null differ diff --git a/src/core/services/frd.cpp b/src/core/services/frd.cpp deleted file mode 100644 index fed5224a..00000000 --- a/src/core/services/frd.cpp +++ /dev/null @@ -1,281 +0,0 @@ -#include "services/frd.hpp" - -#include - -#include "ipc.hpp" -#include "services/region_codes.hpp" - -namespace FRDCommands { - enum : u32 { - HasLoggedIn = 0x00010000, - IsOnline = 0x00020000, - AttachToEventNotification = 0x00200002, - SetNotificationMask = 0x00210040, - SetClientSdkVersion = 0x00320042, - Logout = 0x00040000, - GetMyFriendKey = 0x00050000, - GetMyProfile = 0x00070000, - GetMyPresence = 0x00080000, - GetMyScreenName = 0x00090000, - GetMyMii = 0x000A0000, - GetMyFavoriteGame = 0x000D0000, - GetMyComment = 0x000F0000, - GetFriendKeyList = 0x00110080, - GetFriendPresence = 0x00120042, - GetFriendProfile = 0x00150042, - GetFriendRelationship = 0x00160042, - GetFriendAttributeFlags = 0x00170042, - UpdateGameModeDescription = 0x001D0002, - - UpdateMii = 0x040C0800, - }; -} - -void FRDService::reset() { loggedIn = false; } - -void FRDService::handleSyncRequest(u32 messagePointer, FRDService::Type type) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case FRDCommands::AttachToEventNotification: attachToEventNotification(messagePointer); break; - case FRDCommands::GetFriendAttributeFlags: getFriendAttributeFlags(messagePointer); break; - case FRDCommands::GetFriendKeyList: getFriendKeyList(messagePointer); break; - case FRDCommands::GetFriendPresence: getFriendPresence(messagePointer); break; - case FRDCommands::GetFriendProfile: getFriendProfile(messagePointer); break; - case FRDCommands::GetFriendRelationship: getFriendRelationship(messagePointer); break; - case FRDCommands::GetMyComment: getMyComment(messagePointer); break; - case FRDCommands::GetMyFriendKey: getMyFriendKey(messagePointer); break; - case FRDCommands::GetMyMii: getMyMii(messagePointer); break; - case FRDCommands::GetMyFavoriteGame: getMyFavoriteGame(messagePointer); break; - case FRDCommands::GetMyPresence: getMyPresence(messagePointer); break; - case FRDCommands::GetMyProfile: getMyProfile(messagePointer); break; - case FRDCommands::GetMyScreenName: getMyScreenName(messagePointer); break; - case FRDCommands::HasLoggedIn: hasLoggedIn(messagePointer); break; - case FRDCommands::IsOnline: isOnline(messagePointer); break; - case FRDCommands::Logout: logout(messagePointer); break; - case FRDCommands::SetClientSdkVersion: setClientSDKVersion(messagePointer); break; - case FRDCommands::SetNotificationMask: setNotificationMask(messagePointer); break; - case FRDCommands::UpdateGameModeDescription: updateGameModeDescription(messagePointer); break; - - default: - // FRD:A functions - if (type == Type::A) { - switch (command) { - case FRDCommands::UpdateMii: updateMii(messagePointer); break; - default: Helpers::panic("FRD:A service requested. Command: %08X\n", command); break; - } - } else { - Helpers::panic("FRD service requested. Command: %08X\n", command); - } - - break; - } -} - -void FRDService::attachToEventNotification(u32 messagePointer) { - log("FRD::AttachToEventNotification (Undocumented)\n"); - mem.write32(messagePointer + 4, Result::Success); -} - -// This is supposed to post stuff on your user profile so uhh can't really emulate it -void FRDService::updateGameModeDescription(u32 messagePointer) { - log("FRD::UpdateGameModeDescription\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x1D, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FRDService::getMyFriendKey(u32 messagePointer) { - log("FRD::GetMyFriendKey\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x5, 5, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); // Principal ID - mem.write32(messagePointer + 12, 0); // Padding (?) - mem.write32(messagePointer + 16, 0); // Local friend code - mem.write32(messagePointer + 20, 0); -} - -void FRDService::getFriendKeyList(u32 messagePointer) { - log("FRD::GetFriendKeyList\n"); - - const u32 count = mem.read32(messagePointer + 8); // From what I understand this is a cap on the number of keys to receive? - constexpr u32 friendCount = 0; // And this should be the number of friends whose keys were actually received? - - mem.write32(messagePointer, IPC::responseHeader(0x11, 2, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, friendCount); - - // Zero out friend keys - for (u32 i = 0; i < count * sizeof(FriendKey); i += 4) { - mem.write32(messagePointer + 12 + i, 0); - } -} - -void FRDService::getFriendProfile(u32 messagePointer) { - log("FRD::GetFriendProfile\n"); - - const u32 count = mem.read32(messagePointer + 4); - const u32 friendKeyList = mem.read32(messagePointer + 12); // Pointer to list of friend keys - const u32 profile = mem.read32(messagePointer + 0x104); // Pointer to friend profile where we'll write info to - - mem.write32(messagePointer, IPC::responseHeader(0x15, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - - // Clear all profiles - for (u32 i = 0; i < count; i++) { - const u32 pointer = profile + (i * sizeof(Profile)); - for (u32 j = 0; j < sizeof(Profile); j++) { - mem.write8(pointer + j, 0); - } - } -} - -void FRDService::getFriendAttributeFlags(u32 messagePointer) { - log("FRD::GetFriendAttributeFlags\n"); - - const u32 count = mem.read32(messagePointer + 4); - const u32 friendKeyList = mem.read32(messagePointer + 12); // Pointer to list of friend keys - const u32 profile = mem.read32(messagePointer + 0x104); // Pointer to friend profile where we'll write info to - - mem.write32(messagePointer, IPC::responseHeader(0x17, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - - // Clear flags - for (u32 i = 0; i < count; i++) { - mem.write8(profile + i, 0); - } -} - -void FRDService::getMyPresence(u32 messagePointer) { - static constexpr u32 presenceSize = 0x12C; // A presence seems to be 12C bytes of data, not sure what it contains - log("FRD::GetMyPresence\n"); - u32 buffer = mem.read32(messagePointer + 0x104); // Buffer to write presence info to. - - for (u32 i = 0; i < presenceSize; i += 4) { // Clear presence info with 0s for now - mem.write32(buffer + i, 0); - } - - mem.write32(messagePointer, IPC::responseHeader(0x8, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FRDService::getFriendPresence(u32 messagePointer) { - Helpers::warn("FRD::GetFriendPresence (stubbed)"); - - // TODO: Implement and document this, - mem.write32(messagePointer, IPC::responseHeader(0x12, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FRDService::getMyProfile(u32 messagePointer) { - mem.write32(messagePointer, IPC::responseHeader(0x7, 3, 0)); // Not sure if the header here has the correct # of responses? - mem.write32(messagePointer + 4, Result::Success); - - // TODO: Should maybe make these user-configurable. Not super important though - mem.write8(messagePointer + 8, static_cast(Regions::USA)); // Region - mem.write8(messagePointer + 9, static_cast(CountryCodes::US)); // Country - mem.write8(messagePointer + 10, 2); // Area (this should be Washington) - mem.write8(messagePointer + 11, static_cast(LanguageCodes::English)); // Language - mem.write8(messagePointer + 12, 2); // Platform (always 2 for CTR) - - // Padding - mem.write8(messagePointer + 13, 0); - mem.write8(messagePointer + 14, 0); - mem.write8(messagePointer + 15, 0); -} - -void FRDService::getMyScreenName(u32 messagePointer) { - log("FRD::GetMyScreenName\n"); - static const std::u16string name = u"Pander"; - mem.write32(messagePointer + 4, Result::Success); - - // TODO: Assert the name fits in the response buffer - u32 pointer = messagePointer + 8; - for (auto c : name) { - mem.write16(pointer, static_cast(c)); - pointer += sizeof(u16); - } - - // Add null terminator - mem.write16(pointer, static_cast(u'\0')); -} - -void FRDService::setClientSDKVersion(u32 messagePointer) { - u32 version = mem.read32(messagePointer + 4); - log("FRD::SetClientSdkVersion (version = %d)\n", version); - - mem.write32(messagePointer, IPC::responseHeader(0x32, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FRDService::setNotificationMask(u32 messagePointer) { - log("FRD::SetNotificationMask (Not documented)\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x21, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FRDService::getMyMii(u32 messagePointer) { - log("FRD::GetMyMii (stubbed)\n"); - - // TODO: How is the mii data even returned? - mem.write32(messagePointer, IPC::responseHeader(0xA, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FRDService::getMyFavoriteGame(u32 messagePointer) { - log("FRD::GetMyFavoriteGame (stubbed)\n"); - constexpr u64 titleID = 0; - - mem.write32(messagePointer, IPC::responseHeader(0xD, 3, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write64(messagePointer + 8, titleID); -} - -void FRDService::getMyComment(u32 messagePointer) { - log("FRD::GetMyComment"); - - mem.write32(messagePointer, IPC::responseHeader(0xF, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); -} - -void FRDService::hasLoggedIn(u32 messagePointer) { - log("FRD::HasLoggedIn\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x1, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, loggedIn ? 1 : 0); -} - -void FRDService::isOnline(u32 messagePointer) { - log("FRD::IsOnline\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x2, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - // TODO: When is this 0? - mem.write8(messagePointer + 8, 1); -} - -void FRDService::logout(u32 messagePointer) { - log("FRD::Logout\n"); - loggedIn = false; - - mem.write32(messagePointer, IPC::responseHeader(0x4, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FRDService::updateMii(u32 messagePointer) { - log("FRD::UpdateMii (stubbed)\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x40C, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FRDService::getFriendRelationship(u32 messagePointer) { - log("FRD::GetFriendRelationship (stubbed)\n"); - - // TODO: What does this return? - mem.write32(messagePointer, IPC::responseHeader(0x16, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/fs.cpp b/src/core/services/fs.cpp deleted file mode 100644 index 2e102958..00000000 --- a/src/core/services/fs.cpp +++ /dev/null @@ -1,788 +0,0 @@ -#include "services/fs.hpp" -#include "kernel/kernel.hpp" -#include "io_file.hpp" -#include "ipc.hpp" -#include "result/result.hpp" - -#ifdef CreateFile // windows.h defines CreateFile & DeleteFile because of course it does. -#undef CreateDirectory -#undef CreateFile -#undef DeleteFile -#endif - -namespace FSCommands { - enum : u32 { - Initialize = 0x08010002, - OpenFile = 0x080201C2, - OpenFileDirectly = 0x08030204, - DeleteFile = 0x08040142, - RenameFile = 0x08050244, - DeleteDirectory = 0x08060142, - DeleteDirectoryRecursively = 0x08070142, - CreateFile = 0x08080202, - CreateDirectory = 0x08090182, - OpenDirectory = 0x080B0102, - OpenArchive = 0x080C00C2, - ControlArchive = 0x080D0144, - CloseArchive = 0x080E0080, - FormatThisUserSaveData = 0x080F0180, - GetFreeBytes = 0x08120080, - GetSdmcArchiveResource = 0x08140000, - IsSdmcDetected = 0x08170000, - IsSdmcWritable = 0x08180000, - CardSlotIsInserted = 0x08210000, - AbnegateAccessRight = 0x08400040, - GetFormatInfo = 0x084500C2, - GetArchiveResource = 0x08490040, - FormatSaveData = 0x084C0242, - CreateExtSaveData = 0x08510242, - DeleteExtSaveData = 0x08520100, - SetArchivePriority = 0x085A00C0, - InitializeWithSdkVersion = 0x08610042, - SetPriority = 0x08620040, - GetPriority = 0x08630000, - SetThisSaveDataSecureValue = 0x086E00C0, - GetThisSaveDataSecureValue = 0x086F0040, - TheGameboyVCFunction = 0x08750180, - }; -} - -void FSService::reset() { - priority = 0; -} - -// Creates directories for NAND, ExtSaveData, etc if they don't already exist. Should be executed after loading a new ROM. -void FSService::initializeFilesystem() { - const auto sdmcPath = IOFile::getAppData() / "SDMC"; // Create SDMC directory - const auto nandSharedpath = IOFile::getAppData() / ".." / "SharedFiles" / "NAND"; - - const auto savePath = IOFile::getAppData() / "SaveData"; // Create SaveData - const auto formatPath = IOFile::getAppData() / "FormatInfo"; // Create folder for storing archive formatting info - const auto systemSaveDataPath = IOFile::getAppData() / ".." / "SharedFiles" / "SystemSaveData"; - namespace fs = std::filesystem; - - - if (!fs::is_directory(nandSharedpath)) { - fs::create_directories(nandSharedpath); - } - - if (!fs::is_directory(sdmcPath)) { - fs::create_directories(sdmcPath); - } - - if (!fs::is_directory(savePath)) { - fs::create_directories(savePath); - } - - if (!fs::is_directory(formatPath)) { - fs::create_directories(formatPath); - } - - if (!fs::is_directory(systemSaveDataPath)) { - fs::create_directories(systemSaveDataPath); - } -} - -ArchiveBase* FSService::getArchiveFromID(u32 id, const FSPath& archivePath) { - switch (id) { - case ArchiveID::SelfNCCH: return &selfNcch; - case ArchiveID::SaveData: return &saveData; - case ArchiveID::UserSaveData2: return &userSaveData2; - - case ArchiveID::ExtSaveData: - return &extSaveData_sdmc; - - case ArchiveID::SharedExtSaveData: - return &sharedExtSaveData_nand; - - case ArchiveID::SystemSaveData: return &systemSaveData; - case ArchiveID::SDMC: return &sdmc; - case ArchiveID::SDMCWriteOnly: return &sdmcWriteOnly; - case ArchiveID::SavedataAndNcch: return &ncch; // This can only access NCCH outside of FSPXI - default: - Helpers::panic("Unknown archive. ID: %d\n", id); - return nullptr; - } -} - -std::optional FSService::openFileHandle(ArchiveBase* archive, const FSPath& path, const FSPath& archivePath, const FilePerms& perms) { - FileDescriptor opened = archive->openFile(path, perms); - if (opened.has_value()) { // If opened doesn't have a value, we failed to open the file - auto handle = kernel.makeObject(KernelObjectType::File); - - auto& file = kernel.getObjects()[handle]; - file.data = new FileSession(archive, path, archivePath, opened.value()); - - return handle; - } else { - return std::nullopt; - } -} - -Rust::Result FSService::openDirectoryHandle(ArchiveBase* archive, const FSPath& path) { - Rust::Result opened = archive->openDirectory(path); - if (opened.isOk()) { // If opened doesn't have a value, we failed to open the directory - auto handle = kernel.makeObject(KernelObjectType::Directory); - auto& object = kernel.getObjects()[handle]; - object.data = new DirectorySession(opened.unwrap()); - - return Ok(handle); - } else { - return Err(opened.unwrapErr()); - } -} - -Rust::Result FSService::openArchiveHandle(u32 archiveID, const FSPath& path) { - ArchiveBase* archive = getArchiveFromID(archiveID, path); - - if (archive == nullptr) [[unlikely]] { - Helpers::panic("OpenArchive: Tried to open unknown archive %d.", archiveID); - return Err(Result::FS::NotFormatted); - } - - Rust::Result res = archive->openArchive(path); - if (res.isOk()) { - auto handle = kernel.makeObject(KernelObjectType::Archive); - auto& archiveObject = kernel.getObjects()[handle]; - archiveObject.data = new ArchiveSession(res.unwrap(), path); - - return Ok(handle); - } - else { - return Err(res.unwrapErr()); - } -} - -FSPath FSService::readPath(u32 type, u32 pointer, u32 size) { - std::vector data; - data.resize(size); - - for (u32 i = 0; i < size; i++) - data[i] = mem.read8(pointer + i); - - return FSPath(type, data); -} - -void FSService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case FSCommands::CardSlotIsInserted: cardSlotIsInserted(messagePointer); break; - case FSCommands::CreateDirectory: createDirectory(messagePointer); break; - case FSCommands::CreateExtSaveData: createExtSaveData(messagePointer); break; - case FSCommands::CreateFile: createFile(messagePointer); break; - case FSCommands::ControlArchive: controlArchive(messagePointer); break; - case FSCommands::CloseArchive: closeArchive(messagePointer); break; - case FSCommands::DeleteDirectory: deleteDirectory(messagePointer); break; - case FSCommands::DeleteExtSaveData: deleteExtSaveData(messagePointer); break; - case FSCommands::DeleteFile: deleteFile(messagePointer); break; - case FSCommands::FormatSaveData: formatSaveData(messagePointer); break; - case FSCommands::FormatThisUserSaveData: formatThisUserSaveData(messagePointer); break; - case FSCommands::GetArchiveResource: getArchiveResource(messagePointer); break; - case FSCommands::GetFreeBytes: getFreeBytes(messagePointer); break; - case FSCommands::GetFormatInfo: getFormatInfo(messagePointer); break; - case FSCommands::GetPriority: getPriority(messagePointer); break; - case FSCommands::GetSdmcArchiveResource: getSdmcArchiveResource(messagePointer); break; - case FSCommands::GetThisSaveDataSecureValue: getThisSaveDataSecureValue(messagePointer); break; - case FSCommands::Initialize: initialize(messagePointer); break; - case FSCommands::InitializeWithSdkVersion: initializeWithSdkVersion(messagePointer); break; - case FSCommands::IsSdmcDetected: isSdmcDetected(messagePointer); break; - case FSCommands::IsSdmcWritable: isSdmcWritable(messagePointer); break; - case FSCommands::OpenArchive: openArchive(messagePointer); break; - case FSCommands::OpenDirectory: openDirectory(messagePointer); break; - case FSCommands::OpenFile: [[likely]] openFile(messagePointer); break; - case FSCommands::OpenFileDirectly: [[likely]] openFileDirectly(messagePointer); break; - case FSCommands::RenameFile: renameFile(messagePointer); break; - case FSCommands::SetArchivePriority: setArchivePriority(messagePointer); break; - case FSCommands::SetPriority: setPriority(messagePointer); break; - case FSCommands::SetThisSaveDataSecureValue: setThisSaveDataSecureValue(messagePointer); break; - case FSCommands::AbnegateAccessRight: abnegateAccessRight(messagePointer); break; - case FSCommands::TheGameboyVCFunction: theGameboyVCFunction(messagePointer); break; - default: Helpers::panic("FS service requested. Command: %08X\n", command); - } -} - -void FSService::initialize(u32 messagePointer) { - log("FS::Initialize\n"); - mem.write32(messagePointer, IPC::responseHeader(0x801, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// TODO: Figure out how this is different from Initialize -void FSService::initializeWithSdkVersion(u32 messagePointer) { - const auto version = mem.read32(messagePointer + 4); - log("FS::InitializeWithSDKVersion(version = %d)\n", version); - - mem.write32(messagePointer, IPC::responseHeader(0x861, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::closeArchive(u32 messagePointer) { - const Handle handle = static_cast(mem.read64(messagePointer + 4)); // TODO: archive handles should be 64-bit - const auto object = kernel.getObject(handle, KernelObjectType::Archive); - log("FSService::CloseArchive(handle = %X)\n", handle); - - mem.write32(messagePointer, IPC::responseHeader(0x80E, 1, 0)); - - if (object == nullptr) { - log("FSService::CloseArchive: Tried to close invalid archive %X\n", handle); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - } else { - object->getData()->isOpen = false; - mem.write32(messagePointer + 4, Result::Success); - } -} - -void FSService::openArchive(u32 messagePointer) { - const u32 archiveID = mem.read32(messagePointer + 4); - const u32 archivePathType = mem.read32(messagePointer + 8); - const u32 archivePathSize = mem.read32(messagePointer + 12); - const u32 archivePathPointer = mem.read32(messagePointer + 20); - - auto archivePath = readPath(archivePathType, archivePathPointer, archivePathSize); - log("FS::OpenArchive(archive ID = %d, archive path type = %d)\n", archiveID, archivePathType); - - Rust::Result res = openArchiveHandle(archiveID, archivePath); - mem.write32(messagePointer, IPC::responseHeader(0x80C, 3, 0)); - if (res.isOk()) { - mem.write32(messagePointer + 4, Result::Success); - mem.write64(messagePointer + 8, res.unwrap()); - } else { - log("FS::OpenArchive: Failed to open archive with id = %d. Error %08X\n", archiveID, (u32)res.unwrapErr()); - mem.write32(messagePointer + 4, res.unwrapErr()); - mem.write64(messagePointer + 8, 0); - } -} - -void FSService::openFile(u32 messagePointer) { - const Handle archiveHandle = Handle(mem.read64(messagePointer + 8)); - const u32 filePathType = mem.read32(messagePointer + 16); - const u32 filePathSize = mem.read32(messagePointer + 20); - const u32 openFlags = mem.read32(messagePointer + 24); - const u32 attributes = mem.read32(messagePointer + 28); - const u32 filePathPointer = mem.read32(messagePointer + 36); - - log("FS::OpenFile\n"); - - auto archiveObject = kernel.getObject(archiveHandle, KernelObjectType::Archive); - if (archiveObject == nullptr) [[unlikely]] { - log("FS::OpenFile: Invalid archive handle %d\n", archiveHandle); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - return; - } - - ArchiveBase* archive = archiveObject->getData()->archive; - const FSPath& archivePath = archiveObject->getData()->path; - - auto filePath = readPath(filePathType, filePathPointer, filePathSize); - const FilePerms perms(openFlags); - - std::optional handle = openFileHandle(archive, filePath, archivePath, perms); - mem.write32(messagePointer, IPC::responseHeader(0x802, 1, 2)); - if (!handle.has_value()) { - printf("OpenFile failed\n"); - mem.write32(messagePointer + 4, Result::FS::FileNotFound); - } else { - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0x10); // "Move handle descriptor" - mem.write32(messagePointer + 12, handle.value()); - } -} - -void FSService::createDirectory(u32 messagePointer) { - log("FS::CreateDirectory\n"); - - const Handle archiveHandle = (Handle)mem.read64(messagePointer + 8); - const u32 pathType = mem.read32(messagePointer + 16); - const u32 pathSize = mem.read32(messagePointer + 20); - const u32 pathPointer = mem.read32(messagePointer + 32); - - KernelObject* archiveObject = kernel.getObject(archiveHandle, KernelObjectType::Archive); - if (archiveObject == nullptr) [[unlikely]] { - log("FS::CreateDirectory: Invalid archive handle %d\n", archiveHandle); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - return; - } - - ArchiveBase* archive = archiveObject->getData()->archive; - const auto dirPath = readPath(pathType, pathPointer, pathSize); - const Result::HorizonResult res = archive->createDirectory(dirPath); - - mem.write32(messagePointer, IPC::responseHeader(0x809, 1, 0)); - mem.write32(messagePointer + 4, static_cast(res)); -} - -void FSService::openDirectory(u32 messagePointer) { - log("FS::OpenDirectory\n"); - const Handle archiveHandle = (Handle)mem.read64(messagePointer + 4); - const u32 pathType = mem.read32(messagePointer + 12); - const u32 pathSize = mem.read32(messagePointer + 16); - const u32 pathPointer = mem.read32(messagePointer + 24); - - KernelObject* archiveObject = kernel.getObject(archiveHandle, KernelObjectType::Archive); - if (archiveObject == nullptr) [[unlikely]] { - log("FS::OpenDirectory: Invalid archive handle %d\n", archiveHandle); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - return; - } - - ArchiveBase* archive = archiveObject->getData()->archive; - const auto dirPath = readPath(pathType, pathPointer, pathSize); - auto dir = openDirectoryHandle(archive, dirPath); - - mem.write32(messagePointer, IPC::responseHeader(0x80B, 1, 2)); - if (dir.isOk()) { - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 12, dir.unwrap()); - } else { - printf("FS::OpenDirectory failed\n"); - mem.write32(messagePointer + 4, static_cast(dir.unwrapErr())); - } -} - -void FSService::openFileDirectly(u32 messagePointer) { - const u32 archiveID = mem.read32(messagePointer + 8); - const u32 archivePathType = mem.read32(messagePointer + 12); - const u32 archivePathSize = mem.read32(messagePointer + 16); - const u32 filePathType = mem.read32(messagePointer + 20); - const u32 filePathSize = mem.read32(messagePointer + 24); - const u32 openFlags = mem.read32(messagePointer + 28); - const u32 attributes = mem.read32(messagePointer + 32); - const u32 archivePathPointer = mem.read32(messagePointer + 40); - const u32 filePathPointer = mem.read32(messagePointer + 48); - log("FS::OpenFileDirectly\n"); - - auto archivePath = readPath(archivePathType, archivePathPointer, archivePathSize); - ArchiveBase* archive = getArchiveFromID(archiveID, archivePath); - - if (archive == nullptr) [[unlikely]] { - Helpers::panic("OpenFileDirectly: Tried to open unknown archive %d.", archiveID); - } - auto filePath = readPath(filePathType, filePathPointer, filePathSize); - const FilePerms perms(openFlags); - - Rust::Result res = archive->openArchive(archivePath); - if (res.isErr()) [[unlikely]] { - Helpers::panic("OpenFileDirectly: Failed to open archive with given path"); - } - archive = res.unwrap(); - - std::optional handle = openFileHandle(archive, filePath, archivePath, perms); - mem.write32(messagePointer, IPC::responseHeader(0x803, 1, 2)); - if (!handle.has_value()) { - printf("OpenFileDirectly failed\n"); - mem.write32(messagePointer + 4, Result::FS::FileNotFound); - } else { - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 12, handle.value()); - } -} - -void FSService::createFile(u32 messagePointer) { - const Handle archiveHandle = Handle(mem.read64(messagePointer + 8)); - const u32 filePathType = mem.read32(messagePointer + 16); - const u32 filePathSize = mem.read32(messagePointer + 20); - const u32 attributes = mem.read32(messagePointer + 24); - const u64 size = mem.read64(messagePointer + 28); - const u32 filePathPointer = mem.read32(messagePointer + 40); - - log("FS::CreateFile\n"); - - auto archiveObject = kernel.getObject(archiveHandle, KernelObjectType::Archive); - if (archiveObject == nullptr) [[unlikely]] { - log("FS::OpenFile: Invalid archive handle %d\n", archiveHandle); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - return; - } - - ArchiveBase* archive = archiveObject->getData()->archive; - auto filePath = readPath(filePathType, filePathPointer, filePathSize); - - Result::HorizonResult res = archive->createFile(filePath, size); - mem.write32(messagePointer, IPC::responseHeader(0x808, 1, 0)); - mem.write32(messagePointer + 4, res); -} - -void FSService::deleteFile(u32 messagePointer) { - const Handle archiveHandle = Handle(mem.read64(messagePointer + 8)); - const u32 filePathType = mem.read32(messagePointer + 16); - const u32 filePathSize = mem.read32(messagePointer + 20); - const u32 filePathPointer = mem.read32(messagePointer + 28); - - log("FS::DeleteFile\n"); - auto archiveObject = kernel.getObject(archiveHandle, KernelObjectType::Archive); - if (archiveObject == nullptr) [[unlikely]] { - log("FS::DeleteFile: Invalid archive handle %d\n", archiveHandle); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - return; - } - - ArchiveBase* archive = archiveObject->getData()->archive; - auto filePath = readPath(filePathType, filePathPointer, filePathSize); - - Result::HorizonResult res = archive->deleteFile(filePath); - mem.write32(messagePointer, IPC::responseHeader(0x804, 1, 0)); - mem.write32(messagePointer + 4, static_cast(res)); -} - -void FSService::deleteDirectory(u32 messagePointer) { - const Handle archiveHandle = Handle(mem.read64(messagePointer + 8)); - const u32 filePathType = mem.read32(messagePointer + 16); - const u32 filePathSize = mem.read32(messagePointer + 20); - const u32 filePathPointer = mem.read32(messagePointer + 28); - log("FS::DeleteDirectory\n"); - - Helpers::warn("Stubbed FS::DeleteDirectory call!"); - mem.write32(messagePointer, IPC::responseHeader(0x806, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::getFormatInfo(u32 messagePointer) { - const u32 archiveID = mem.read32(messagePointer + 4); - const u32 pathType = mem.read32(messagePointer + 8); - const u32 pathSize = mem.read32(messagePointer + 12); - const u32 pathPointer = mem.read32(messagePointer + 20); - - const auto path = readPath(pathType, pathPointer, pathSize); - log("FS::GetFormatInfo(archive ID = %d, archive path type = %d)\n", archiveID, pathType); - - ArchiveBase* archive = getArchiveFromID(archiveID, path); - if (archive == nullptr) [[unlikely]] { - Helpers::panic("OpenArchive: Tried to open unknown archive %d.", archiveID); - } - - mem.write32(messagePointer, IPC::responseHeader(0x845, 5, 0)); - Rust::Result res = archive->getFormatInfo(path); - - // If the FormatInfo was returned, write them to the output buffer. Otherwise, write an error code. - if (res.isOk()) { - ArchiveBase::FormatInfo info = res.unwrap(); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, info.size); - mem.write32(messagePointer + 12, info.numOfDirectories); - mem.write32(messagePointer + 16, info.numOfFiles); - mem.write8(messagePointer + 20, info.duplicateData ? 1 : 0); - } else { - mem.write32(messagePointer + 4, static_cast(res.unwrapErr())); - } -} - -void FSService::formatSaveData(u32 messagePointer) { - log("FS::FormatSaveData\n"); - - const u32 archiveID = mem.read32(messagePointer + 4); - if (archiveID != ArchiveID::SaveData) - Helpers::panic("FS::FormatSaveData: Archive is not SaveData"); - - // Read path and path info - const u32 pathType = mem.read32(messagePointer + 8); - const u32 pathSize = mem.read32(messagePointer + 12); - const u32 pathPointer = mem.read32(messagePointer + 44); - auto path = readPath(pathType, pathPointer, pathSize); - // Size of a block. Seems to always be 0x200 - const u32 blockSize = mem.read32(messagePointer + 16); - - if (blockSize != 0x200 && blockSize != 0x1000) - Helpers::panic("FS::FormatSaveData: Invalid SaveData block size"); - - const u32 directoryNum = mem.read32(messagePointer + 20); // Max number of directories - const u32 fileNum = mem.read32(messagePointer + 24); // Max number of files - const u32 directoryBucketNum = mem.read32(messagePointer + 28); // Not sure what a directory bucket is...? - const u32 fileBucketNum = mem.read32(messagePointer + 32); // Same here - const bool duplicateData = mem.read8(messagePointer + 36) != 0; - - ArchiveBase::FormatInfo info { - .size = blockSize * 0x200, - .numOfDirectories = directoryNum, - .numOfFiles = fileNum, - .duplicateData = duplicateData - }; - - saveData.format(path, info); - - mem.write32(messagePointer, IPC::responseHeader(0x84C, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::deleteExtSaveData(u32 messagePointer) { - Helpers::warn("Stubbed call to FS::DeleteExtSaveData!"); - // First 4 words of parameters are the ExtSaveData info - // https://www.3dbrew.org/wiki/Filesystem_services#ExtSaveDataInfo - const u8 mediaType = mem.read8(messagePointer + 4); - const u64 saveID = mem.read64(messagePointer + 8); - log("FS::DeleteExtSaveData (media type = %d, saveID = %llx) (stubbed)\n", mediaType, saveID); - - mem.write32(messagePointer, IPC::responseHeader(0x0852, 1, 0)); - // TODO: We can't properly implement this yet until we properly support title/save IDs. We will stub this and insert a warning for now. Required for Planet Robobot - // When we properly implement it, it will just be a recursive directory deletion - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::createExtSaveData(u32 messagePointer) { - Helpers::warn("Stubbed call to FS::CreateExtSaveData!"); - // First 4 words of parameters are the ExtSaveData info - // https://www.3dbrew.org/wiki/Filesystem_services#ExtSaveDataInfo - // This creates the ExtSaveData with the specified saveid in the specified media type. It stores the SMDH as "icon" in the root of the created directory. - const u8 mediaType = mem.read8(messagePointer + 4); - const u64 saveID = mem.read64(messagePointer + 8); - const u32 numOfDirectories = mem.read32(messagePointer + 20); - const u32 numOfFiles = mem.read32(messagePointer + 24); - const u64 sizeLimit = mem.read64(messagePointer + 28); - const u32 smdhSize = mem.read32(messagePointer + 36); - const u32 smdhPointer = mem.read32(messagePointer + 44); - - log("FS::CreateExtSaveData (stubbed)\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x0851, 1, 0)); - // TODO: Similar to DeleteExtSaveData, we need to refactor how our ExtSaveData stuff works before properly implementing this - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::formatThisUserSaveData(u32 messagePointer) { - log("FS::FormatThisUserSaveData\n"); - - const u32 blockSize = mem.read32(messagePointer + 4); - const u32 directoryNum = mem.read32(messagePointer + 8); // Max number of directories - const u32 fileNum = mem.read32(messagePointer + 12); // Max number of files - const u32 directoryBucketNum = mem.read32(messagePointer + 16); // Not sure what a directory bucket is...? - const u32 fileBucketNum = mem.read32(messagePointer + 20); // Same here - const bool duplicateData = mem.read8(messagePointer + 24) != 0; - - ArchiveBase::FormatInfo info { - .size = blockSize * 0x200, - .numOfDirectories = directoryNum, - .numOfFiles = fileNum, - .duplicateData = duplicateData - }; - FSPath emptyPath; - - mem.write32(messagePointer, IPC::responseHeader(0x080F, 1, 0)); - saveData.format(emptyPath, info); -} - -void FSService::controlArchive(u32 messagePointer) { - const Handle archiveHandle = Handle(mem.read64(messagePointer + 4)); - const u32 action = mem.read32(messagePointer + 12); - const u32 inputSize = mem.read32(messagePointer + 16); - const u32 outputSize = mem.read32(messagePointer + 20); - const u32 input = mem.read32(messagePointer + 28); - const u32 output = mem.read32(messagePointer + 36); - - log("FS::ControlArchive (action = %X, handle = %X)\n", action, archiveHandle); - - auto archiveObject = kernel.getObject(archiveHandle, KernelObjectType::Archive); - mem.write32(messagePointer, IPC::responseHeader(0x80D, 1, 0)); - if (archiveObject == nullptr) [[unlikely]] { - log("FS::ControlArchive: Invalid archive handle %d\n", archiveHandle); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - return; - } - - switch (action) { - case 0: // Commit save data changes. Shouldn't need us to do anything - mem.write32(messagePointer + 4, Result::Success); - break; - - case 1: // Retrieves a file's last-modified timestamp. Seen in DDLC, stubbed for the moment - Helpers::warn("FS::ControlArchive: Tried to retrieve a file's last-modified timestamp"); - mem.write32(messagePointer + 4, Result::Success); - break; - - default: - Helpers::panic("Unimplemented action for ControlArchive (action = %X)\n", action); - break; - } -} - -void FSService::getFreeBytes(u32 messagePointer) { - log("FS::GetFreeBytes\n"); - const Handle archiveHandle = (Handle)mem.read64(messagePointer + 4); - auto session = kernel.getObject(archiveHandle, KernelObjectType::Archive); - - mem.write32(messagePointer, IPC::responseHeader(0x812, 3, 0)); - if (session == nullptr) [[unlikely]] { - log("FS::GetFreeBytes: Invalid archive handle %d\n", archiveHandle); - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - return; - } - - const u64 bytes = session->getData()->archive->getFreeBytes(); - mem.write64(messagePointer + 8, bytes); -} - -void FSService::getPriority(u32 messagePointer) { - log("FS::GetPriority\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x863, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, priority); -} - -void FSService::getArchiveResource(u32 messagePointer) { - const u32 mediaType = mem.read32(messagePointer + 4); - log("FS::GetArchiveResource (media type = %d) (stubbed)\n"); - - // For the time being, return the same stubbed archive resource for every media type - static constexpr ArchiveResource resource = { - .sectorSize = 512, - .clusterSize = 16_KB, - .partitionCapacityInClusters = 0x80000, // 0x80000 * 16 KB = 8GB - .freeSpaceInClusters = 0x80000, // Same here - }; - - mem.write32(messagePointer, IPC::responseHeader(0x849, 5, 0)); - mem.write32(messagePointer + 4, Result::Success); - - mem.write32(messagePointer + 8, resource.sectorSize); - mem.write32(messagePointer + 12, resource.clusterSize); - mem.write32(messagePointer + 16, resource.partitionCapacityInClusters); - mem.write32(messagePointer + 20, resource.freeSpaceInClusters); -} - -void FSService::setArchivePriority(u32 messagePointer) { - Handle archive = mem.read64(messagePointer + 4); - const u32 value = mem.read32(messagePointer + 12); - log("FS::SetArchivePriority (priority = %d, archive handle = %X)\n", value, handle); - - mem.write32(messagePointer, IPC::responseHeader(0x85A, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::setPriority(u32 messagePointer) { - const u32 value = mem.read32(messagePointer + 4); - log("FS::SetPriority (priority = %d)\n", value); - - mem.write32(messagePointer, IPC::responseHeader(0x862, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - priority = value; -} - -void FSService::abnegateAccessRight(u32 messagePointer) { - const u32 right = mem.read32(messagePointer + 4); - log("FS::AbnegateAccessRight (right = %d)\n", right); - - if (right >= 0x38) { - Helpers::warn("FS::AbnegateAccessRight: Invalid access right"); - } - - mem.write32(messagePointer, IPC::responseHeader(0x840, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::getThisSaveDataSecureValue(u32 messagePointer) { - Helpers::warn("Unimplemented FS::GetThisSaveDataSecureValue"); - - mem.write32(messagePointer, IPC::responseHeader(0x86F, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, 0); // Secure value does not exist - mem.write8(messagePointer + 12, 1); // TODO: What is this? - mem.write64(messagePointer + 16, 0); // Secure value -} - -void FSService::setThisSaveDataSecureValue(u32 messagePointer) { - const u64 value = mem.read32(messagePointer + 4); - const u32 slot = mem.read32(messagePointer + 12); - const u32 id = mem.read32(messagePointer + 16); - const u8 variation = mem.read8(messagePointer + 20); - - // TODO: Actually do something with this. - Helpers::warn("Unimplemented FS::SetThisSaveDataSecureValue"); - - mem.write32(messagePointer, IPC::responseHeader(0x86E, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::theGameboyVCFunction(u32 messagePointer) { - Helpers::warn("Unimplemented FS: function: 0x08750180"); - - mem.write32(messagePointer, IPC::responseHeader(0x875, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void FSService::isSdmcDetected(u32 messagePointer) { - log("FS::IsSdmcDetected\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x817, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, config.sdCardInserted ? 1 : 0); -} - -// We consider our SD card to always be writable if one is inserted for now -// However we do make sure to respect the configs and properly return the correct value here -void FSService::isSdmcWritable(u32 messagePointer) { - log("FS::isSdmcWritable\n"); - const bool writeProtected = (!config.sdCardInserted) || (config.sdCardInserted && config.sdWriteProtected); - - mem.write32(messagePointer, IPC::responseHeader(0x818, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, writeProtected ? 0 : 1); -} - -void FSService::cardSlotIsInserted(u32 messagePointer) { - log("FS::CardSlotIsInserted\n"); - constexpr bool cardInserted = false; - - mem.write32(messagePointer, IPC::responseHeader(0x821, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, cardInserted ? 1 : 0); -} - -void FSService::renameFile(u32 messagePointer) { - log("FS::RenameFile\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x805, 1, 0)); - - const Handle sourceArchiveHandle = mem.read64(messagePointer + 8); - const Handle destArchiveHandle = mem.read64(messagePointer + 24); - - // Read path info - const u32 sourcePathType = mem.read32(messagePointer + 16); - const u32 sourcePathSize = mem.read32(messagePointer + 20); - const u32 sourcePathPointer = mem.read32(messagePointer + 44); - const FSPath sourcePath = readPath(sourcePathType, sourcePathPointer, sourcePathSize); - - const u32 destPathType = mem.read32(messagePointer + 32); - const u32 destPathSize = mem.read32(messagePointer + 36); - const u32 destPathPointer = mem.read32(messagePointer + 52); - const FSPath destPath = readPath(destPathType, destPathPointer, destPathSize); - - const auto sourceArchiveObject = kernel.getObject(sourceArchiveHandle, KernelObjectType::Archive); - const auto destArchiveObject = kernel.getObject(destArchiveHandle, KernelObjectType::Archive); - - if (sourceArchiveObject == nullptr || destArchiveObject == nullptr) { - Helpers::panic("FS::RenameFile: One of the archive handles is invalid"); - } - - const auto sourceArchive = sourceArchiveObject->getData(); - const auto destArchive = destArchiveObject->getData(); - if (!sourceArchive->isOpen || !destArchive->isOpen) { - Helpers::warn("FS::RenameFile: Not both archive sessions are open"); - } - - // This returns error 0xE0C046F8 according to 3DBrew - if (sourceArchive->archive->name() != destArchive->archive->name()) { - Helpers::panic("FS::RenameFile: Both archive handles should belong to the same archive"); - } - - // Everything is OK, let's do the rename. Both archives should match so we don't need the dest anymore - const HorizonResult res = sourceArchive->archive->renameFile(sourcePath, destPath); - mem.write32(messagePointer + 4, static_cast(res)); -} - -void FSService::getSdmcArchiveResource(u32 messagePointer) { - log("FS::GetSdmcArchiveResource"); // For the time being, return the same stubbed archive resource for every media type - - static constexpr ArchiveResource resource = { - .sectorSize = 512, - .clusterSize = 16_KB, - .partitionCapacityInClusters = 0x80000, // 0x80000 * 16 KB = 8GB - .freeSpaceInClusters = 0x80000, // Same here - }; - - mem.write32(messagePointer, IPC::responseHeader(0x814, 5, 0)); - mem.write32(messagePointer + 4, Result::Success); - - mem.write32(messagePointer + 8, resource.sectorSize); - mem.write32(messagePointer + 12, resource.clusterSize); - mem.write32(messagePointer + 16, resource.partitionCapacityInClusters); - mem.write32(messagePointer + 20, resource.freeSpaceInClusters); -} \ No newline at end of file diff --git a/src/core/services/gsp_gpu.cpp b/src/core/services/gsp_gpu.cpp deleted file mode 100644 index 8cf77a7e..00000000 --- a/src/core/services/gsp_gpu.cpp +++ /dev/null @@ -1,567 +0,0 @@ -#include "services/gsp_gpu.hpp" -#include "PICA/regs.hpp" -#include "ipc.hpp" -#include "kernel.hpp" - -// Commands used with SendSyncRequest targetted to the GSP::GPU service -namespace ServiceCommands { - enum : u32 { - SetAxiConfigQoSMode = 0x00100040, - ReadHwRegs = 0x00040080, - AcquireRight = 0x00160042, - RegisterInterruptRelayQueue = 0x00130042, - WriteHwRegs = 0x00010082, - WriteHwRegsWithMask = 0x00020084, - SetBufferSwap = 0x00050200, - FlushDataCache = 0x00080082, - SetLCDForceBlack = 0x000B0040, - TriggerCmdReqQueue = 0x000C0000, - ReleaseRight = 0x00170000, - ImportDisplayCaptureInfo = 0x00180000, - SaveVramSysArea = 0x00190000, - RestoreVramSysArea = 0x001A0000, - SetInternalPriorities = 0x001E0080, - StoreDataCache = 0x001F0082 - }; -} - -// Commands written to shared memory and processed by TriggerCmdReqQueue -namespace GXCommands { - enum : u32 { - TriggerDMARequest = 0, - ProcessCommandList = 1, - MemoryFill = 2, - TriggerDisplayTransfer = 3, - TriggerTextureCopy = 4, - FlushCacheRegions = 5 - }; -} - -void GPUService::reset() { - privilegedProcess = 0xFFFFFFFF; // Set the privileged process to an invalid handle - interruptEvent = std::nullopt; - gspThreadCount = 0; - sharedMem = nullptr; -} - -void GPUService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case ServiceCommands::TriggerCmdReqQueue: [[likely]] triggerCmdReqQueue(messagePointer); break; - case ServiceCommands::AcquireRight: acquireRight(messagePointer); break; - case ServiceCommands::FlushDataCache: flushDataCache(messagePointer); break; - case ServiceCommands::ImportDisplayCaptureInfo: importDisplayCaptureInfo(messagePointer); break; - case ServiceCommands::RegisterInterruptRelayQueue: registerInterruptRelayQueue(messagePointer); break; - case ServiceCommands::ReleaseRight: releaseRight(messagePointer); break; - case ServiceCommands::RestoreVramSysArea: restoreVramSysArea(messagePointer); break; - case ServiceCommands::SaveVramSysArea: saveVramSysArea(messagePointer); break; - case ServiceCommands::SetAxiConfigQoSMode: setAxiConfigQoSMode(messagePointer); break; - case ServiceCommands::SetBufferSwap: setBufferSwap(messagePointer); break; - case ServiceCommands::SetInternalPriorities: setInternalPriorities(messagePointer); break; - case ServiceCommands::SetLCDForceBlack: setLCDForceBlack(messagePointer); break; - case ServiceCommands::StoreDataCache: storeDataCache(messagePointer); break; - case ServiceCommands::ReadHwRegs: readHwRegs(messagePointer); break; - case ServiceCommands::WriteHwRegs: writeHwRegs(messagePointer); break; - case ServiceCommands::WriteHwRegsWithMask: writeHwRegsWithMask(messagePointer); break; - default: Helpers::panic("GPU service requested. Command: %08X\n", command); - } -} - -void GPUService::acquireRight(u32 messagePointer) { - const u32 flag = mem.read32(messagePointer + 4); - const u32 pid = mem.read32(messagePointer + 12); - log("GSP::GPU::AcquireRight (flag = %X, pid = %X)\n", flag, pid); - - if (flag != 0) { - Helpers::panic("GSP::GPU::acquireRight with flag != 0 needs to perform additional initialization"); - } - - if (pid == KernelHandles::CurrentProcess) { - privilegedProcess = currentPID; - } else { - privilegedProcess = pid; - } - - mem.write32(messagePointer, IPC::responseHeader(0x16, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void GPUService::releaseRight(u32 messagePointer) { - log("GSP::GPU::ReleaseRight\n"); - if (privilegedProcess == currentPID) { - privilegedProcess = 0xFFFFFFFF; - } - - mem.write32(messagePointer, IPC::responseHeader(0x17, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// TODO: What is the flags field meant to be? -// What is the "GSP module thread index" meant to be? -// How does the shared memory handle thing work? -void GPUService::registerInterruptRelayQueue(u32 messagePointer) { - // Detect if this function is called a 2nd time because we'll likely need to impl threads properly for the GSP - if (gspThreadCount >= 1) { - Helpers::panic("RegisterInterruptRelayQueue called a second time. Need to implement GSP threads properly"); - } - gspThreadCount += 1; - - const u32 flags = mem.read32(messagePointer + 4); - const u32 eventHandle = mem.read32(messagePointer + 12); - log("GSP::GPU::RegisterInterruptRelayQueue (flags = %X, event handle = %X)\n", flags, eventHandle); - - const auto event = kernel.getObject(eventHandle, KernelObjectType::Event); - if (event == nullptr) { // Check if interrupt event is invalid - Helpers::panic("Invalid event passed to GSP::GPU::RegisterInterruptRelayQueue"); - } else { - interruptEvent = eventHandle; - } - - mem.write32(messagePointer, IPC::responseHeader(0x13, 2, 2)); - mem.write32(messagePointer + 4, Result::GSP::SuccessRegisterIRQ); // First init returns a unique result - mem.write32(messagePointer + 8, 0); // TODO: GSP module thread index - mem.write32(messagePointer + 12, 0); // Translation descriptor - mem.write32(messagePointer + 16, KernelHandles::GSPSharedMemHandle); -} - -void GPUService::requestInterrupt(GPUInterrupt type) { - if (sharedMem == nullptr) [[unlikely]] { // Shared memory hasn't been set up yet - return; - } - - // TODO: Add support for multiple GSP threads - u8 index = sharedMem[0]; // The interrupt block is normally located at sharedMem + processGSPIndex*0x40 - u8& interruptCount = sharedMem[1]; - u8 flagIndex = (index + interruptCount) % 0x34; - interruptCount++; - - sharedMem[2] = 0; // Set error code to 0 - sharedMem[0xC + flagIndex] = static_cast(type); // Write interrupt type to queue - - // Update framebuffer info in shared memory - // Most new games check to make sure that the "flag" byte of the framebuffer info header is set to 0 - // Not emulating this causes Yoshi's Wooly World, Captain Toad, Metroid 2 et al to hang - if (type == GPUInterrupt::VBlank0 || type == GPUInterrupt::VBlank1) { - int screen = static_cast(type) - static_cast(GPUInterrupt::VBlank0); // 0 for top screen, 1 for bottom - FramebufferUpdate* update = getFramebufferInfo(screen); - - if (update->dirtyFlag & 1) { - setBufferSwapImpl(screen, update->framebufferInfo[update->index]); - update->dirtyFlag &= ~1; - } - } - - // Signal interrupt event - if (interruptEvent.has_value()) { - kernel.signalEvent(interruptEvent.value()); - } -} - -void GPUService::readHwRegs(u32 messagePointer) { - u32 ioAddr = mem.read32(messagePointer + 4); // GPU address based at 0x1EB00000, word aligned - const u32 size = mem.read32(messagePointer + 8); // Size in bytes - const u32 initialDataPointer = mem.read32(messagePointer + 0x104); - u32 dataPointer = initialDataPointer; - log("GSP::GPU::ReadHwRegs (GPU address = %08X, size = %X, data address = %08X)\n", ioAddr, size, dataPointer); - - - // Check for alignment - if ((size & 3) || (ioAddr & 3) || (dataPointer & 3)) { - Helpers::panic("GSP::GPU::ReadHwRegs misalignment"); - } - - if (size > 0x80) { - Helpers::panic("GSP::GPU::ReadHwRegs size too big"); - } - - if (ioAddr >= 0x420000) { - Helpers::panic("GSP::GPU::ReadHwRegs offset too big"); - } - - ioAddr += 0x1EB00000; - // Read the PICA registers and write them to the output buffer - for (u32 i = 0; i < size; i += 4) { - const u32 value = gpu.readReg(ioAddr); - mem.write32(dataPointer, value); - dataPointer += 4; - ioAddr += 4; - } - - mem.write32(messagePointer, IPC::responseHeader(0x4, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - // Translation descriptor. TODO: Make a more generic interface for this - mem.write32(messagePointer + 8, u32(size << 14) | 2); - mem.write32(messagePointer + 12, initialDataPointer); -} - -void GPUService::writeHwRegs(u32 messagePointer) { - u32 ioAddr = mem.read32(messagePointer + 4); // GPU address based at 0x1EB00000, word aligned - const u32 size = mem.read32(messagePointer + 8); // Size in bytes - u32 dataPointer = mem.read32(messagePointer + 16); - log("GSP::GPU::writeHwRegs (GPU address = %08X, size = %X, data address = %08X)\n", ioAddr, size, dataPointer); - - // Check for alignment - if ((size & 3) || (ioAddr & 3) || (dataPointer & 3)) { - Helpers::panic("GSP::GPU::writeHwRegs misalignment"); - } - - if (size > 0x80) { - Helpers::panic("GSP::GPU::writeHwRegs size too big"); - } - - if (ioAddr >= 0x420000) { - Helpers::panic("GSP::GPU::writeHwRegs offset too big"); - } - - ioAddr += 0x1EB00000; - for (u32 i = 0; i < size; i += 4) { - const u32 value = mem.read32(dataPointer); - gpu.writeReg(ioAddr, value); - dataPointer += 4; - ioAddr += 4; - } - - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// Update sequential GPU registers using an array of data and mask values using this formula -// GPU register = (register & ~mask) | (data & mask). -void GPUService::writeHwRegsWithMask(u32 messagePointer) { - u32 ioAddr = mem.read32(messagePointer + 4); // GPU address based at 0x1EB00000, word aligned - const u32 size = mem.read32(messagePointer + 8); // Size in bytes - - u32 dataPointer = mem.read32(messagePointer + 16); // Data pointer - u32 maskPointer = mem.read32(messagePointer + 24); // Mask pointer - - log("GSP::GPU::writeHwRegsWithMask (GPU address = %08X, size = %X, data address = %08X, mask address = %08X)\n", - ioAddr, size, dataPointer, maskPointer); - - // Check for alignment - if ((size & 3) || (ioAddr & 3) || (dataPointer & 3) || (maskPointer & 3)) { - Helpers::panic("GSP::GPU::writeHwRegs misalignment"); - } - - if (size > 0x80) { - Helpers::panic("GSP::GPU::writeHwRegs size too big"); - } - - if (ioAddr >= 0x420000) { - Helpers::panic("GSP::GPU::writeHwRegs offset too big"); - } - - ioAddr += 0x1EB00000; - for (u32 i = 0; i < size; i += 4) { - const u32 current = gpu.readReg(ioAddr); - const u32 data = mem.read32(dataPointer); - const u32 mask = mem.read32(maskPointer); - - u32 newValue = (current & ~mask) | (data & mask); - - gpu.writeReg(ioAddr, newValue); - maskPointer += 4; - dataPointer += 4; - ioAddr += 4; - } - - mem.write32(messagePointer, IPC::responseHeader(0x2, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void GPUService::flushDataCache(u32 messagePointer) { - u32 address = mem.read32(messagePointer + 4); - u32 size = mem.read32(messagePointer + 8); - u32 processHandle = handle = mem.read32(messagePointer + 16); - log("GSP::GPU::FlushDataCache(address = %08X, size = %X, process = %X)\n", address, size, processHandle); - - mem.write32(messagePointer, IPC::responseHeader(0x8, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void GPUService::storeDataCache(u32 messagePointer) { - u32 address = mem.read32(messagePointer + 4); - u32 size = mem.read32(messagePointer + 8); - u32 processHandle = handle = mem.read32(messagePointer + 16); - log("GSP::GPU::StoreDataCache(address = %08X, size = %X, process = %X)\n", address, size, processHandle); - - mem.write32(messagePointer, IPC::responseHeader(0x1F, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void GPUService::setLCDForceBlack(u32 messagePointer) { - u32 flag = mem.read32(messagePointer + 4); - log("GSP::GPU::SetLCDForceBlank(flag = %d)\n", flag); - - if (flag != 0) { - printf("Filled both LCDs with black\n"); - } - - mem.write32(messagePointer, IPC::responseHeader(0xB, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void GPUService::triggerCmdReqQueue(u32 messagePointer) { - processCommandBuffer(); - mem.write32(messagePointer, IPC::responseHeader(0xC, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// Seems to be completely undocumented, probably not very important or useful -void GPUService::setAxiConfigQoSMode(u32 messagePointer) { - log("GSP::GPU::SetAxiConfigQoSMode\n"); - mem.write32(messagePointer, IPC::responseHeader(0x10, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void GPUService::setBufferSwap(u32 messagePointer) { - FramebufferInfo info{}; - const u32 screenId = mem.read32(messagePointer + 4); // Selects either PDC0 or PDC1 - info.activeFb = mem.read32(messagePointer + 8); - info.leftFramebufferVaddr = mem.read32(messagePointer + 12); - info.rightFramebufferVaddr = mem.read32(messagePointer + 16); - info.stride = mem.read32(messagePointer + 20); - info.format = mem.read32(messagePointer + 24); - info.displayFb = mem.read32(messagePointer + 28); // Selects either framebuffer A or B - - log("GSP::GPU::SetBufferSwap\n"); - Helpers::warn("Untested GSP::GPU::SetBufferSwap call"); - - setBufferSwapImpl(screenId, info); - mem.write32(messagePointer, IPC::responseHeader(0x05, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// Seems to also be completely undocumented -void GPUService::setInternalPriorities(u32 messagePointer) { - log("GSP::GPU::SetInternalPriorities\n"); - mem.write32(messagePointer, IPC::responseHeader(0x1E, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void GPUService::processCommandBuffer() { - if (sharedMem == nullptr) [[unlikely]] { // Shared memory hasn't been set up yet - return; - } - - constexpr int threadCount = 1; // TODO: More than 1 thread can have GSP commands at a time - for (int t = 0; t < threadCount; t++) { - u8* cmdBuffer = &sharedMem[0x800 + t * 0x200]; - u8& commandsLeft = cmdBuffer[1]; - // Commands start at byte 0x20 of the command buffer, each being 0x20 bytes long - u32* cmd = reinterpret_cast(&cmdBuffer[0x20]); - - log("Processing %d GPU commands\n", commandsLeft); - - while (commandsLeft != 0) { - const u32 cmdID = cmd[0] & 0xff; - switch (cmdID) { - case GXCommands::ProcessCommandList: processCommandList(cmd); break; - case GXCommands::MemoryFill: memoryFill(cmd); break; - case GXCommands::TriggerDisplayTransfer: triggerDisplayTransfer(cmd); break; - case GXCommands::TriggerDMARequest: triggerDMARequest(cmd); break; - case GXCommands::TriggerTextureCopy: triggerTextureCopy(cmd); break; - case GXCommands::FlushCacheRegions: flushCacheRegions(cmd); break; - default: Helpers::panic("GSP::GPU::ProcessCommands: Unknown cmd ID %d", cmdID); - } - - commandsLeft--; - } - } -} - -static u32 VaddrToPaddr(u32 addr) { - if (addr >= VirtualAddrs::VramStart && addr < (VirtualAddrs::VramStart + VirtualAddrs::VramSize)) [[likely]] { - return addr - VirtualAddrs::VramStart + PhysicalAddrs::VRAM; - } - - else if (addr >= VirtualAddrs::LinearHeapStartOld && addr < VirtualAddrs::LinearHeapEndOld) { - return addr - VirtualAddrs::LinearHeapStartOld + PhysicalAddrs::FCRAM; - } - - else if (addr >= VirtualAddrs::LinearHeapStartNew && addr < VirtualAddrs::LinearHeapEndNew) { - return addr - VirtualAddrs::LinearHeapStartNew + PhysicalAddrs::FCRAM; - } - - else if (addr == 0) { - return 0; - } - - Helpers::warn("[GSP::GPU VaddrToPaddr] Unknown virtual address %08X", addr); - // Obviously garbage address - return 0xF3310932; -} - -// Fill 2 GPU framebuffers, buf0 and buf1, using a specific word value -void GPUService::memoryFill(u32* cmd) { - u32 control = cmd[7]; - - // buf0 parameters - u32 start0 = cmd[1]; // Start address for the fill. If 0, don't fill anything - u32 value0 = cmd[2]; // Value to fill the framebuffer with - u32 end0 = cmd[3]; // End address for the fill - u32 control0 = control & 0xffff; - - // buf1 parameters - u32 start1 = cmd[4]; - u32 value1 = cmd[5]; - u32 end1 = cmd[6]; - u32 control1 = control >> 16; - - if (start0 != 0) { - gpu.clearBuffer(VaddrToPaddr(start0), VaddrToPaddr(end0), value0, control0); - requestInterrupt(GPUInterrupt::PSC0); - } - - if (start1 != 0) { - gpu.clearBuffer(VaddrToPaddr(start1), VaddrToPaddr(end1), value1, control1); - requestInterrupt(GPUInterrupt::PSC1); - } -} - -void GPUService::triggerDisplayTransfer(u32* cmd) { - const u32 inputAddr = VaddrToPaddr(cmd[1]); - const u32 outputAddr = VaddrToPaddr(cmd[2]); - const u32 inputSize = cmd[3]; - const u32 outputSize = cmd[4]; - const u32 flags = cmd[5]; - - log("GSP::GPU::TriggerDisplayTransfer (Stubbed)\n"); - gpu.displayTransfer(inputAddr, outputAddr, inputSize, outputSize, flags); - requestInterrupt(GPUInterrupt::PPF); // Send "Display transfer finished" interrupt -} - -void GPUService::triggerDMARequest(u32* cmd) { - const u32 source = cmd[1]; - const u32 dest = cmd[2]; - const u32 size = cmd[3]; - const bool flush = cmd[7] == 1; - - log("GSP::GPU::TriggerDMARequest (source = %08X, dest = %08X, size = %08X)\n", source, dest, size); - gpu.fireDMA(dest, source, size); - requestInterrupt(GPUInterrupt::DMA); -} - -void GPUService::flushCacheRegions(u32* cmd) { - log("GSP::GPU::FlushCacheRegions (Stubbed)\n"); -} - -void GPUService::setBufferSwapImpl(u32 screenId, const FramebufferInfo& info) { - using namespace PICA::ExternalRegs; - - static constexpr std::array fbAddresses = { - Framebuffer0AFirstAddr, - Framebuffer0BFirstAddr, - Framebuffer1AFirstAddr, - Framebuffer1BFirstAddr, - Framebuffer0ASecondAddr, - Framebuffer0BSecondAddr, - Framebuffer1ASecondAddr, - Framebuffer1BSecondAddr, - }; - - auto& regs = gpu.getExtRegisters(); - - const u32 fbIndex = info.activeFb * 4 + screenId * 2; - regs[fbAddresses[fbIndex]] = VaddrToPaddr(info.leftFramebufferVaddr); - regs[fbAddresses[fbIndex + 1]] = VaddrToPaddr(info.rightFramebufferVaddr); - - static constexpr std::array configAddresses = { - Framebuffer0Config, - Framebuffer0Select, - Framebuffer0Stride, - Framebuffer1Config, - Framebuffer1Select, - Framebuffer1Stride, - }; - - const u32 configIndex = screenId * 3; - regs[configAddresses[configIndex]] = info.format; - regs[configAddresses[configIndex + 1]] = info.displayFb; - regs[configAddresses[configIndex + 2]] = info.stride; -} - -// Actually send command list (aka display list) to GPU -void GPUService::processCommandList(u32* cmd) { - const u32 address = cmd[1] & ~7; // Buffer address - const u32 size = cmd[2] & ~3; // Buffer size in bytes - [[maybe_unused]] const bool updateGas = cmd[3] == 1; // Update gas additive blend results (0 = don't update, 1 = update) - [[maybe_unused]] const bool flushBuffer = cmd[7] == 1; // Flush buffer (0 = don't flush, 1 = flush) - - log("GPU::GSP::processCommandList. Address: %08X, size in bytes: %08X\n", address, size); - gpu.startCommandList(address, size); - requestInterrupt(GPUInterrupt::P3D); // Send an IRQ when command list processing is over -} - -// TODO: Emulate the transfer engine & its registers -// Then this can be emulated by just writing the appropriate values there -void GPUService::triggerTextureCopy(u32* cmd) { - const u32 inputAddr = VaddrToPaddr(cmd[1]); - const u32 outputAddr = VaddrToPaddr(cmd[2]); - const u32 totalBytes = cmd[3]; - const u32 inputSize = cmd[4]; - const u32 outputSize = cmd[5]; - const u32 flags = cmd[6]; - - log("GSP::GPU::TriggerTextureCopy (Stubbed)\n"); - gpu.textureCopy(inputAddr, outputAddr, totalBytes, inputSize, outputSize, flags); - // This uses the transfer engine and thus needs to fire a PPF interrupt. - // NSMB2 relies on this - requestInterrupt(GPUInterrupt::PPF); -} - -// Used when transitioning from the app to an OS applet, such as software keyboard, mii maker, mii selector, etc -// Stubbed until we decide to support LLE applets -void GPUService::saveVramSysArea(u32 messagePointer) { - Helpers::warn("GSP::GPU::SaveVramSysArea (stubbed)"); - - mem.write32(messagePointer, IPC::responseHeader(0x19, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void GPUService::restoreVramSysArea(u32 messagePointer) { - Helpers::warn("GSP::GPU::RestoreVramSysArea (stubbed)"); - - mem.write32(messagePointer, IPC::responseHeader(0x1A, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// Used in similar fashion to the SaveVramSysArea function -void GPUService::importDisplayCaptureInfo(u32 messagePointer) { - Helpers::warn("GSP::GPU::ImportDisplayCaptureInfo (stubbed)"); - - mem.write32(messagePointer, IPC::responseHeader(0x18, 9, 0)); - mem.write32(messagePointer + 4, Result::Success); - - if (sharedMem == nullptr) { - Helpers::warn("GSP::GPU::ImportDisplayCaptureInfo called without GSP module being properly initialized!"); - return; - } - - FramebufferUpdate* topScreen = getTopFramebufferInfo(); - FramebufferUpdate* bottomScreen = getBottomFramebufferInfo(); - - // Capture the relevant data for both screens and return them to the caller - CaptureInfo topScreenCapture = { - .leftFramebuffer = topScreen->framebufferInfo[topScreen->index].leftFramebufferVaddr, - .rightFramebuffer = topScreen->framebufferInfo[topScreen->index].rightFramebufferVaddr, - .format = topScreen->framebufferInfo[topScreen->index].format, - .stride = topScreen->framebufferInfo[topScreen->index].stride, - }; - - CaptureInfo bottomScreenCapture = { - .leftFramebuffer = bottomScreen->framebufferInfo[bottomScreen->index].leftFramebufferVaddr, - .rightFramebuffer = bottomScreen->framebufferInfo[bottomScreen->index].rightFramebufferVaddr, - .format = bottomScreen->framebufferInfo[bottomScreen->index].format, - .stride = bottomScreen->framebufferInfo[bottomScreen->index].stride, - }; - - mem.write32(messagePointer + 8, topScreenCapture.leftFramebuffer); - mem.write32(messagePointer + 12, topScreenCapture.rightFramebuffer); - mem.write32(messagePointer + 16, topScreenCapture.format); - mem.write32(messagePointer + 20, topScreenCapture.stride); - - mem.write32(messagePointer + 24, bottomScreenCapture.leftFramebuffer); - mem.write32(messagePointer + 28, bottomScreenCapture.rightFramebuffer); - mem.write32(messagePointer + 32, bottomScreenCapture.format); - mem.write32(messagePointer + 36, bottomScreenCapture.stride); -} diff --git a/src/core/services/gsp_lcd.cpp b/src/core/services/gsp_lcd.cpp deleted file mode 100644 index d018166b..00000000 --- a/src/core/services/gsp_lcd.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "services/gsp_lcd.hpp" -#include "ipc.hpp" - -namespace LCDCommands { - enum : u32 { - }; -} - -void LCDService::reset() {} - -void LCDService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - default: Helpers::panic("LCD service requested. Command: %08X\n", command); - } -} \ No newline at end of file diff --git a/src/core/services/hid.cpp b/src/core/services/hid.cpp deleted file mode 100644 index ef6cbb41..00000000 --- a/src/core/services/hid.cpp +++ /dev/null @@ -1,221 +0,0 @@ -#include "services/hid.hpp" -#include "ipc.hpp" -#include "kernel.hpp" -#include - -namespace HIDCommands { - enum : u32 { - GetIPCHandles = 0x000A0000, - EnableAccelerometer = 0x00110000, - DisableAccelerometer = 0x00120000, - EnableGyroscopeLow = 0x00130000, - DisableGyroscopeLow = 0x00140000, - GetGyroscopeLowRawToDpsCoefficient = 0x00150000, - GetGyroscopeLowCalibrateParam = 0x00160000, - GetSoundVolume = 0x00170000, - }; -} - -void HIDService::reset() { - sharedMem = nullptr; - accelerometerEnabled = false; - eventsInitialized = false; - gyroEnabled = false; - touchScreenPressed = false; - - // Deinitialize HID events - for (auto& e : events) { - e = std::nullopt; - } - - // Reset indices for the various HID shared memory entries - nextPadIndex = nextTouchscreenIndex = nextAccelerometerIndex = nextGyroIndex = 0; - // Reset button states - newButtons = oldButtons = 0; - circlePadX = circlePadY = 0; - touchScreenX = touchScreenY = 0; - roll = pitch = yaw = 0; -} - -void HIDService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case HIDCommands::DisableAccelerometer: disableAccelerometer(messagePointer); break; - case HIDCommands::DisableGyroscopeLow: disableGyroscopeLow(messagePointer); break; - case HIDCommands::EnableAccelerometer: enableAccelerometer(messagePointer); break; - case HIDCommands::EnableGyroscopeLow: enableGyroscopeLow(messagePointer); break; - case HIDCommands::GetGyroscopeLowCalibrateParam: getGyroscopeLowCalibrateParam(messagePointer); break; - case HIDCommands::GetGyroscopeLowRawToDpsCoefficient: getGyroscopeCoefficient(messagePointer); break; - case HIDCommands::GetIPCHandles: getIPCHandles(messagePointer); break; - case HIDCommands::GetSoundVolume: getSoundVolume(messagePointer); break; - default: Helpers::panic("HID service requested. Command: %08X\n", command); - } -} - -void HIDService::enableAccelerometer(u32 messagePointer) { - log("HID::EnableAccelerometer\n"); - accelerometerEnabled = true; - - mem.write32(messagePointer, IPC::responseHeader(0x11, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void HIDService::disableAccelerometer(u32 messagePointer) { - log("HID::DisableAccelerometer\n"); - accelerometerEnabled = false; - - mem.write32(messagePointer, IPC::responseHeader(0x12, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void HIDService::enableGyroscopeLow(u32 messagePointer) { - log("HID::EnableGyroscopeLow\n"); - gyroEnabled = true; - - mem.write32(messagePointer, IPC::responseHeader(0x13, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void HIDService::disableGyroscopeLow(u32 messagePointer) { - log("HID::DisableGyroscopeLow\n"); - gyroEnabled = false; - - mem.write32(messagePointer, IPC::responseHeader(0x14, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void HIDService::getGyroscopeLowCalibrateParam(u32 messagePointer) { - log("HID::GetGyroscopeLowCalibrateParam\n"); - constexpr s16 unit = 6700; // Approximately from Citra which took it from hardware - - mem.write32(messagePointer, IPC::responseHeader(0x16, 6, 0)); - mem.write32(messagePointer + 4, Result::Success); - // Fill calibration data (for x/y/z depending on i) - for (int i = 0; i < 3; i++) { - const u32 pointer = messagePointer + 8 + i * 3 * sizeof(u16); // Pointer to write the calibration info for the current coordinate - - mem.write16(pointer, 0); // Zero point - mem.write16(pointer + 1 * sizeof(u16), unit); // Positive unit point - mem.write16(pointer + 2 * sizeof(u16), -unit); // Negative unit point - } -} - -void HIDService::getGyroscopeCoefficient(u32 messagePointer) { - log("HID::GetGyroscopeLowRawToDpsCoefficient\n"); - - constexpr float gyroscopeCoeff = 14.375f; // Same as retail 3DS - mem.write32(messagePointer, IPC::responseHeader(0x15, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, Helpers::bit_cast(gyroscopeCoeff)); -} - -// The volume here is in the range [0, 0x3F] -// It is read directly from I2C Device 3 register 0x09 -// Since we currently do not have audio, set the volume a bit below max (0x30) -void HIDService::getSoundVolume(u32 messagePointer) { - log("HID::GetSoundVolume\n"); - constexpr u8 volume = 0x30; - - mem.write32(messagePointer, IPC::responseHeader(0x17, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, volume); -} - -void HIDService::getIPCHandles(u32 messagePointer) { - log("HID::GetIPCHandles\n"); - - // Initialize HID events - if (!eventsInitialized) { - eventsInitialized = true; - - for (auto& e : events) { - e = kernel.makeEvent(ResetType::OneShot); - } - } - - mem.write32(messagePointer, IPC::responseHeader(0xA, 1, 7)); - mem.write32(messagePointer + 4, Result::Success); // Result code - mem.write32(messagePointer + 8, 0x14000000); // Translation descriptor - mem.write32(messagePointer + 12, KernelHandles::HIDSharedMemHandle); // Shared memory handle - - // Write HID event handles - for (int i = 0; i < events.size(); i++) { - mem.write32(messagePointer + 16 + sizeof(Handle) * i, events[i].value()); - } -} - -void HIDService::updateInputs(u64 currentTick) { - // Update shared memory if it has been initialized - if (sharedMem) { - // First, update the pad state - if (nextPadIndex == 0) { - writeSharedMem(0x8, readSharedMem(0x0)); // Copy previous tick count - writeSharedMem(0x0, currentTick); // Write new tick count - } - - writeSharedMem(0x10, nextPadIndex); // Index last updated by the HID module - writeSharedMem(0x1C, newButtons); // Current PAD state - writeSharedMem(0x20, circlePadX); // Current circle pad state - writeSharedMem(0x22, circlePadY); - - const size_t padEntryOffset = 0x28 + (nextPadIndex * 0x10); // Offset in the array of 8 pad entries - nextPadIndex = (nextPadIndex + 1) % 8; // Move to next entry - - const u32 pressed = (newButtons ^ oldButtons) & newButtons; // Pressed buttons - const u32 released = (newButtons ^ oldButtons) & oldButtons; // Released buttons - oldButtons = newButtons; - - writeSharedMem(padEntryOffset, newButtons); - writeSharedMem(padEntryOffset + 4, pressed); - writeSharedMem(padEntryOffset + 8, released); - writeSharedMem(padEntryOffset + 12, circlePadX); - writeSharedMem(padEntryOffset + 14, circlePadY); - - // Next, update touchscreen state - if (nextTouchscreenIndex == 0) { - writeSharedMem(0xB0, readSharedMem(0xA8)); // Copy previous tick count - writeSharedMem(0xA8, currentTick); // Write new tick count - } - writeSharedMem(0xB8, nextTouchscreenIndex); // Index last updated by the HID module - const size_t touchEntryOffset = 0xC8 + (nextTouchscreenIndex * 8); // Offset in the array of 8 touchscreen entries - nextTouchscreenIndex = (nextTouchscreenIndex + 1) % 8; // Move to next entry - - writeSharedMem(touchEntryOffset, touchScreenX); - writeSharedMem(touchEntryOffset + 2, touchScreenY); - writeSharedMem(touchEntryOffset + 4, touchScreenPressed ? 1 : 0); - - // Next, update accelerometer state - if (nextAccelerometerIndex == 0) { - writeSharedMem(0x110, readSharedMem(0x108)); // Copy previous tick count - writeSharedMem(0x108, currentTick); // Write new tick count - } - writeSharedMem(0x118, nextAccelerometerIndex); // Index last updated by the HID module - nextAccelerometerIndex = (nextAccelerometerIndex + 1) % 8; // Move to next entry - - // Next, update gyro state - if (nextGyroIndex == 0) { - writeSharedMem(0x160, readSharedMem(0x158)); // Copy previous tick count - writeSharedMem(0x158, currentTick); // Write new tick count - } - const size_t gyroEntryOffset = 0x178 + (nextGyroIndex * 6); // Offset in the array of 8 touchscreen entries - writeSharedMem(gyroEntryOffset, pitch); - writeSharedMem(gyroEntryOffset + 2, yaw); - writeSharedMem(gyroEntryOffset + 4, roll); - - // Since gyroscope euler angles are relative, we zero them out here and the frontend will update them again when we receive a new rotation - roll = pitch = yaw = 0; - - writeSharedMem(0x168, nextGyroIndex); // Index last updated by the HID module - nextGyroIndex = (nextGyroIndex + 1) % 32; // Move to next entry - } - - // For some reason, the original developers decided to signal the HID events each time the OS rescanned inputs - // Rather than once every time the state of a key, or the accelerometer state, etc is updated - // This means that the OS will signal the events even if literally nothing happened - // Some games such as Majora's Mask rely on this behaviour. - if (eventsInitialized) { - for (auto& e : events) { - kernel.signalEvent(e.value()); - } - } -} \ No newline at end of file diff --git a/src/core/services/http.cpp b/src/core/services/http.cpp deleted file mode 100644 index 076afa06..00000000 --- a/src/core/services/http.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "services/http.hpp" - -#include "ipc.hpp" -#include "result/result.hpp" - -namespace HTTPCommands { - enum : u32 { - Initialize = 0x00010044, - CreateRootCertChain = 0x002D0000, - RootCertChainAddDefaultCert = 0x00300080, - }; -} - -void HTTPService::reset() { initialized = false; } - -void HTTPService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case HTTPCommands::CreateRootCertChain: createRootCertChain(messagePointer); break; - case HTTPCommands::Initialize: initialize(messagePointer); break; - case HTTPCommands::RootCertChainAddDefaultCert: rootCertChainAddDefaultCert(messagePointer); break; - default: Helpers::panic("HTTP service requested. Command: %08X\n", command); - } -} - -void HTTPService::initialize(u32 messagePointer) { - const u32 postBufferSize = mem.read32(messagePointer + 4); - const u32 postMemoryBlockHandle = mem.read32(messagePointer + 20); - log("HTTP::Initialize (POST buffer size = %X, POST buffer memory block handle = %X)\n", postBufferSize, postMemoryBlockHandle); - - mem.write32(messagePointer, IPC::responseHeader(0x01, 1, 0)); - - if (initialized) { - Helpers::warn("HTTP: Tried to initialize service while already initialized"); - // TODO: Error code here - } - - // 3DBrew: The provided POST buffer must be page-aligned (0x1000). - if (postBufferSize & 0xfff) { - Helpers::warn("HTTP: POST buffer size is not page-aligned"); - } - - initialized = true; - // We currently don't emulate HTTP properly. TODO: Prepare POST buffer here - mem.write32(messagePointer + 4, Result::Success); -} - -void HTTPService::createRootCertChain(u32 messagePointer) { - log("HTTP::CreateRootCertChain (Unimplemented)\n"); - - // TODO: Verify response header - mem.write32(messagePointer, IPC::responseHeader(0x2D, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - - // RootCertChain context handle. No need to emulate this yet - mem.write32(messagePointer + 8, 0x66666666); -} - -void HTTPService::rootCertChainAddDefaultCert(u32 messagePointer) { - log("HTTP::RootCertChainAddDefaultCert (Unimplemented)\n"); - const u32 contextHandle = mem.read32(messagePointer + 4); - const u32 certID = mem.read32(messagePointer + 8); - - // TODO: Verify response header - mem.write32(messagePointer, IPC::responseHeader(0x30, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - - // Cert context handle. No need to emulate this yet - mem.write32(messagePointer + 8, 0x66666666); -} \ No newline at end of file diff --git a/src/core/services/ir_user.cpp b/src/core/services/ir_user.cpp deleted file mode 100644 index ce4f94c4..00000000 --- a/src/core/services/ir_user.cpp +++ /dev/null @@ -1,173 +0,0 @@ -#include "services/ir_user.hpp" - -#include - -#include "ipc.hpp" -#include "kernel.hpp" - -namespace IRUserCommands { - enum : u32 { - FinalizeIrnop = 0x00020000, - RequireConnection = 0x00060040, - Disconnect = 0x00090000, - GetReceiveEvent = 0x000A0000, - GetConnectionStatusEvent = 0x000C0000, - SendIrnop = 0x000D0042, - InitializeIrnopShared = 0x00180182 - }; -} - -void IRUserService::reset() { - connectionStatusEvent = std::nullopt; - receiveEvent = std::nullopt; - sharedMemory = std::nullopt; - connectedDevice = false; -} - -void IRUserService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case IRUserCommands::Disconnect: disconnect(messagePointer); break; - case IRUserCommands::FinalizeIrnop: finalizeIrnop(messagePointer); break; - case IRUserCommands::GetReceiveEvent: getReceiveEvent(messagePointer); break; - case IRUserCommands::GetConnectionStatusEvent: getConnectionStatusEvent(messagePointer); break; - case IRUserCommands::InitializeIrnopShared: initializeIrnopShared(messagePointer); break; - case IRUserCommands::RequireConnection: requireConnection(messagePointer); break; - case IRUserCommands::SendIrnop: sendIrnop(messagePointer); break; - default: Helpers::panic("ir:USER service requested. Command: %08X\n", command); - } -} - -void IRUserService::initializeIrnopShared(u32 messagePointer) { - const u32 sharedMemSize = mem.read32(messagePointer + 4); - const u32 receiveBufferSize = mem.read32(messagePointer + 8); - const u32 receiveBufferPackageCount = mem.read32(messagePointer + 12); - const u32 sendBufferSize = mem.read32(messagePointer + 16); - const u32 sendBufferPackageCount = mem.read32(messagePointer + 20); - const u32 bitrate = mem.read32(messagePointer + 24); - const u32 descriptor = mem.read32(messagePointer + 28); - const u32 sharedMemHandle = mem.read32(messagePointer + 32); - - log("IR:USER: InitializeIrnopShared (shared mem size = %08X, sharedMemHandle = %X) (stubbed)\n", sharedMemSize, sharedMemHandle); - Helpers::warn("Game is initializing IR:USER. If it explodes, this is probably why"); - - KernelObject* object = kernel.getObject(sharedMemHandle, KernelObjectType::MemoryBlock); - if (object == nullptr) { - Helpers::panic("IR::InitializeIrnopShared: Shared memory object does not exist"); - } - - MemoryBlock* memoryBlock = object->getData(); - sharedMemory = *memoryBlock; - - // Set the initialized byte in shared mem to 1 - mem.write8(memoryBlock->addr + offsetof(SharedMemoryStatus, isInitialized), 1); - mem.write64(memoryBlock->addr + 0x10, 0); // Initialize the receive buffer info to all 0s - mem.write64(memoryBlock->addr + 0x18, 0); - - mem.write32(messagePointer, IPC::responseHeader(0x18, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void IRUserService::finalizeIrnop(u32 messagePointer) { - log("IR:USER: FinalizeIrnop\n"); - - if (connectedDevice) { - connectedDevice = false; - // This should also disconnect CirclePad Pro? - } - - sharedMemory = std::nullopt; - - // This should disconnect any connected device de-initialize the shared memory - mem.write32(messagePointer, IPC::responseHeader(0x2, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void IRUserService::getConnectionStatusEvent(u32 messagePointer) { - log("IR:USER: GetConnectionStatusEvent\n"); - - if (!connectionStatusEvent.has_value()) { - connectionStatusEvent = kernel.makeEvent(ResetType::OneShot); - } - //kernel.signalEvent(connectionStatusEvent.value()); // ?????????????? - - mem.write32(messagePointer, IPC::responseHeader(0xC, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - // TOOD: Descriptor here - mem.write32(messagePointer + 12, connectionStatusEvent.value()); -} - -void IRUserService::getReceiveEvent(u32 messagePointer) { - log("IR:USER: GetReceiveEvent\n"); - - if (!receiveEvent.has_value()) { - receiveEvent = kernel.makeEvent(ResetType::OneShot); - } - - mem.write32(messagePointer, IPC::responseHeader(0xA, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0x40000000); - // TOOD: Descriptor here - mem.write32(messagePointer + 12, receiveEvent.value()); -} - -void IRUserService::requireConnection(u32 messagePointer) { - const u8 deviceID = mem.read8(messagePointer + 4); - log("IR:USER: RequireConnection (device: %d)\n", deviceID); - - // Reference: https://github.com/citra-emu/citra/blob/c10ffda91feb3476a861c47fb38641c1007b9d33/src/core/hle/service/ir/ir_user.cpp#L306 - if (sharedMemory.has_value()) { - u32 sharedMemAddress = sharedMemory.value().addr; - - if (deviceID == u8(DeviceID::CirclePadPro)) { - // Note: We temporarily pretend we don't have a CirclePad Pro. This code must change when we emulate it or N3DS C-stick - constexpr u8 status = 1; // Not connected. Any value other than 2 is considered not connected. - constexpr u8 role = 0; - constexpr u8 connected = 0; - - mem.write8(sharedMemAddress + offsetof(SharedMemoryStatus, connectionStatus), status); - mem.write8(sharedMemAddress + offsetof(SharedMemoryStatus, connectionRole), role); - mem.write8(sharedMemAddress + offsetof(SharedMemoryStatus, isConnected), connected); - - connectedDevice = true; - if (connectionStatusEvent.has_value()) { - kernel.signalEvent(connectionStatusEvent.value()); - } - } else { - log("IR:USER: Unknown device %d\n", deviceID); - mem.write8(sharedMemAddress + offsetof(SharedMemoryStatus, connectionStatus), 1); - mem.write8(sharedMemAddress + offsetof(SharedMemoryStatus, connectionAttemptStatus), 2); - } - } - - mem.write32(messagePointer, IPC::responseHeader(0x6, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void IRUserService::sendIrnop(u32 messagePointer) { - Helpers::panic("IR:USER: SendIrnop\n"); - - mem.write32(messagePointer + 4, Result::Success); -} - -void IRUserService::disconnect(u32 messagePointer) { - log("IR:USER: Disconnect\n"); - - if (sharedMemory.has_value()) { - u32 sharedMemAddress = sharedMemory.value().addr; - - mem.write8(sharedMemAddress + offsetof(SharedMemoryStatus, connectionStatus), 0); - mem.write8(sharedMemAddress + offsetof(SharedMemoryStatus, isConnected), 0); - } - - // If there's a connected device, disconnect it and trigger the status event - if (connectedDevice) { - connectedDevice = false; - if (connectionStatusEvent.has_value()) { - kernel.signalEvent(connectionStatusEvent.value()); - } - } - - mem.write32(messagePointer, IPC::responseHeader(0x9, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/ldr_ro.cpp b/src/core/services/ldr_ro.cpp deleted file mode 100644 index 2ad62d99..00000000 --- a/src/core/services/ldr_ro.cpp +++ /dev/null @@ -1,1395 +0,0 @@ -#include "services/ldr_ro.hpp" -#include "ipc.hpp" -#include "kernel.hpp" - -#include -#include - -namespace LDRCommands { - enum : u32 { - Initialize = 0x000100C2, - LoadCRR = 0x00020082, - LoadCRO = 0x000402C2, - UnloadCRO = 0x000500C2, - LinkCRO = 0x00060042, - LoadCRONew = 0x000902C2, - }; -} - -namespace CROHeader { - enum : u32 { - ID = 0x080, - NameOffset = 0x084, - NextCRO = 0x088, - PrevCRO = 0x08C, - OnUnresolved = 0x0AC, - CodeOffset = 0x0B0, - DataOffset = 0x0B8, - ModuleNameOffset = 0x0C0, - SegmentTableOffset = 0x0C8, - SegmentTableSize = 0x0CC, - NamedExportTableOffset = 0x0D0, - NamedExportTableSize = 0x0D4, - IndexedExportTableOffset = 0x0D8, - IndexedExportTableSize = 0x0DC, - ExportStringTableOffset = 0x0E0, - ExportStringSize = 0x0E4, - ExportTreeOffset = 0x0E8, - ImportModuleTableOffset = 0x0F0, - ImportModuleTableSize = 0x0F4, - ImportPatchTableOffset = 0x0F8, - ImportPatchTableSize = 0x0FC, - NamedImportTableOffset = 0x100, - NamedImportTableSize = 0x104, - IndexedImportTableOffset = 0x108, - IndexedImportTableSize = 0x10C, - AnonymousImportTableOffset = 0x110, - AnonymousImportTableSize = 0x114, - ImportStringTableOffset = 0x118, - ImportStringSize = 0x11C, - StaticAnonymousSymbolTableOffset = 0x120, - StaticAnonymousSymbolTableSize = 0x124, - RelocationPatchTableOffset = 0x128, - RelocationPatchTableSize = 0x12C, - StaticAnonymousPatchTableOffset = 0x130, - StaticAnonymousPatchTableSize = 0x134, - }; -} - -namespace SegmentTable { - enum : u32 { - Offset = 0, - Size = 4, - ID = 8, - }; - - namespace SegmentID { - enum : u32 { - TEXT, RODATA, DATA, BSS, - }; - } -} - -namespace NamedExportTable { - enum : u32 { - NameOffset = 0, - SegmentOffset = 4, - }; -}; - -namespace IndexedExportTable { - enum : u32 { - SegmentOffset = 0, - }; -}; - -namespace NamedImportTable { - enum : u32 { - NameOffset = 0, - RelocationOffset = 4, - }; -}; - -namespace IndexedImportTable { - enum : u32 { - Index = 0, - RelocationOffset = 4, - }; -}; - -namespace AnonymousImportTable { - enum : u32 { - SegmentOffset = 0, - RelocationOffset = 4, - }; -}; - -namespace ImportModuleTable { - enum : u32 { - NameOffset = 0, - IndexedOffset = 4, - IndexedNum = 8, - AnonymousOffset = 12, - AnonymousNum = 16, - }; -}; - -namespace RelocationPatch { - enum : u32 { - SegmentOffset = 0, - PatchType = 4, - IsLastEntry = 5, // For import patches - SegmentIndex = 5, // For relocation patches - IsResolved = 6, - Addend = 8, - }; - - namespace RelocationPatchType { - enum : u32 { - AbsoluteAddress = 2, - }; - }; -}; - -struct CROHeaderEntry { - u32 offset, size; -}; - -static constexpr u32 CRO_HEADER_SIZE = 0x138; - -static const std::string CRO_MAGIC("CRO0"); -static const std::string CRO_MAGIC_FIXED("FIXD"); -static const std::string CRR_MAGIC("CRR0"); - -class CRO { - Memory &mem; - - u32 croPointer; // Origin address of CRO in RAM - u32 oldDataSegmentOffset; - - bool isCRO; // False if CRS - -public: - CRO(Memory &mem, u32 croPointer, bool isCRO) : mem(mem), croPointer(croPointer), oldDataSegmentOffset(0), isCRO(isCRO) {} - ~CRO() = default; - - std::string getModuleName() { - const CROHeaderEntry moduleName = getHeaderEntry(CROHeader::ModuleNameOffset); - - return mem.readString(moduleName.offset, moduleName.size); - } - - u32 getNextCRO() { - return mem.read32(croPointer + CROHeader::NextCRO); - } - - u32 getPrevCRO() { - return mem.read32(croPointer + CROHeader::PrevCRO); - } - - void setNextCRO(u32 nextCRO) { - mem.write32(croPointer + CROHeader::NextCRO, nextCRO); - } - - void setPrevCRO(u32 prevCRO) { - mem.write32(croPointer + CROHeader::PrevCRO, prevCRO); - } - - void write32(u32 addr, u32 value) { - // Note: some games export symbols to the static module, which doesn't contain any segments. - // Instead, its segments point to ROM segments. We need this special write handler for writes to .text, which - // can't be accessed via mem.write32() - auto writePointer = mem.getWritePointer(addr); - if (writePointer) { - *(u32*)writePointer = value; - } else { - auto readPointer = mem.getReadPointer(addr); - if (readPointer) { - *(u32*)readPointer = value; - } else { - Helpers::panic("LDR_RO write to invalid address = %X\n", addr); - } - } - } - - // Returns CRO header offset-size pair - CROHeaderEntry getHeaderEntry(u32 entry) { - return CROHeaderEntry{.offset = mem.read32(croPointer + entry), .size = mem.read32(croPointer + entry + 4)}; - } - - u32 getSegmentAddr(u32 segmentOffset) { - // "Decoded" segment tag - const u32 segmentIndex = segmentOffset & 0xF; - const u32 offset = segmentOffset >> 4; - - const CROHeaderEntry segmentTable = getHeaderEntry(CROHeader::SegmentTableOffset); - - if (segmentIndex >= segmentTable.size) { - return 0; - } - - // Get segment table entry - const u32 entryOffset = mem.read32(segmentTable.offset + 12 * segmentIndex + SegmentTable::Offset); - const u32 entrySize = mem.read32(segmentTable.offset + 12 * segmentIndex + SegmentTable::Size); - - if (offset >= entrySize) { - return 0; - } - - return entryOffset + offset; - } - - u32 getOnUnresolvedAddr() { - return getSegmentAddr(mem.read32(croPointer + CROHeader::OnUnresolved)); - } - - u32 getNamedExportSymbolAddr(const std::string& symbolName) { - // Note: The CRO contains a trie for fast symbol lookup. For simplicity, - // we won't use it and instead look up the symbol in the named export symbol table - - const u32 exportStringSize = mem.read32(croPointer + CROHeader::ExportStringSize); - - const CROHeaderEntry namedExportTable = getHeaderEntry(CROHeader::NamedExportTableOffset); - - for (u32 namedExport = 0; namedExport < namedExportTable.size; namedExport++) { - const u32 nameOffset = mem.read32(namedExportTable.offset + 8 * namedExport + NamedExportTable::NameOffset); - - const std::string exportSymbolName = mem.readString(nameOffset, exportStringSize); - - if (symbolName.compare(exportSymbolName) == 0) { - return getSegmentAddr(mem.read32(namedExportTable.offset + 8 * namedExport + NamedExportTable::SegmentOffset)); - } - } - - return 0; - } - - // Patches one symbol - bool patchSymbol(u32 relocationTarget, u8 patchType, u32 addend, u32 symbolOffset) { - switch (patchType) { - case RelocationPatch::RelocationPatchType::AbsoluteAddress: write32(relocationTarget, symbolOffset + addend); break; - default: Helpers::panic("Unhandled relocation type = %X\n", patchType); - } - - return true; - } - - // Patches symbol batches - bool patchBatch(u32 batchAddr, u32 symbolAddr, bool makeUnresolved = false) { - u32 relocationPatch = batchAddr; - - while (true) { - const u32 segmentOffset = mem.read32(relocationPatch + RelocationPatch::SegmentOffset); - const u8 patchType = mem.read8(relocationPatch + RelocationPatch::PatchType); - const u8 isLastBatch = mem.read8(relocationPatch + RelocationPatch::IsLastEntry); - const u32 addend = mem.read32(relocationPatch + RelocationPatch::Addend); - - const u32 relocationTarget = getSegmentAddr(segmentOffset); - - if (relocationTarget == 0) { - Helpers::panic("Relocation target is NULL"); - } - - if (makeUnresolved) { - write32(relocationTarget, symbolAddr); - } else { - patchSymbol(relocationTarget, patchType, addend, symbolAddr); - } - - if (isLastBatch != 0) { - break; - } - - relocationPatch += 12; - } - - if (makeUnresolved) { - mem.write8(relocationPatch + RelocationPatch::IsResolved, 0); - } else { - mem.write8(relocationPatch + RelocationPatch::IsResolved, 1); - } - - return true; - } - - bool load() { - // TODO: verify SHA hashes? - - // Verify CRO magic - const std::string magic = mem.readString(croPointer + CROHeader::ID, 4); - if (magic.compare(CRO_MAGIC) != 0) { - return false; - } - - // These fields are initially 0, the RO service sets them on load. If non-0, - // this CRO has already been loaded - if ((getNextCRO() != 0) || (getPrevCRO() != 0)) { - return false; - } - - return true; - } - - bool fix(u32 fixLevel) { - if (fixLevel != 0) { - mem.write8(croPointer + CROHeader::ID + 0, 'F'); - mem.write8(croPointer + CROHeader::ID + 1, 'I'); - mem.write8(croPointer + CROHeader::ID + 2, 'X'); - mem.write8(croPointer + CROHeader::ID + 3, 'D'); - } - - return true; - } - - // Modifies CRO offsets to point at virtual addresses - bool rebase(u32 loadedCRS, u32 dataVaddr, u32 bssVaddr) { - rebaseHeader(); - - u32 oldDataVaddr = 0; - - // Note: Citra rebases the segment table only if the file is not a CRS. - // Presumably because CRS files don't contain segments? - if (isCRO) { - rebaseSegmentTable(dataVaddr, bssVaddr, &oldDataVaddr); - } - - rebaseNamedExportTable(); - rebaseImportModuleTable(); - rebaseNamedImportTable(); - rebaseIndexedImportTable(); - rebaseAnonymousImportTable(); - - // Note: Citra relocates static anonymous symbols and exit symbols only if the file is not a CRS - if (isCRO) { - relocateStaticAnonymousSymbols(); - relocateInternalSymbols(oldDataVaddr); - relocateExitSymbols(loadedCRS); - } - - return true; - } - - bool unrebase() { - unrebaseAnonymousImportTable(); - unrebaseIndexedImportTable(); - unrebaseNamedImportTable(); - unrebaseImportModuleTable(); - unrebaseNamedExportTable(); - - // Note: Citra unrebases the segment table only if the file is not a CRS. - // Presumably because CRS files don't contain segments? - if (isCRO) { - unrebaseSegmentTable(); - } - - unrebaseHeader(); - - setNextCRO(0); - setPrevCRO(0); - - return true; - } - - bool rebaseHeader() { - constexpr u32 headerOffsets[] = { - CROHeader::NameOffset, - CROHeader::CodeOffset, - CROHeader::DataOffset, - CROHeader::ModuleNameOffset, - CROHeader::SegmentTableOffset, - CROHeader::NamedExportTableOffset, - CROHeader::IndexedExportTableOffset, - CROHeader::ExportStringTableOffset, - CROHeader::ExportTreeOffset, - CROHeader::ImportModuleTableOffset, - CROHeader::ImportPatchTableOffset, - CROHeader::NamedImportTableOffset, - CROHeader::IndexedImportTableOffset, - CROHeader::AnonymousImportTableOffset, - CROHeader::ImportStringTableOffset, - CROHeader::StaticAnonymousSymbolTableOffset, - CROHeader::RelocationPatchTableOffset, - CROHeader::StaticAnonymousPatchTableOffset, - }; - - for (u32 offset : headerOffsets) { - mem.write32(croPointer + offset, mem.read32(croPointer + offset) + croPointer); - } - - return true; - } - - bool unrebaseHeader() { - constexpr u32 headerOffsets[] = { - CROHeader::NameOffset, - CROHeader::CodeOffset, - CROHeader::DataOffset, - CROHeader::ModuleNameOffset, - CROHeader::SegmentTableOffset, - CROHeader::NamedExportTableOffset, - CROHeader::IndexedExportTableOffset, - CROHeader::ExportStringTableOffset, - CROHeader::ExportTreeOffset, - CROHeader::ImportModuleTableOffset, - CROHeader::ImportPatchTableOffset, - CROHeader::NamedImportTableOffset, - CROHeader::IndexedImportTableOffset, - CROHeader::AnonymousImportTableOffset, - CROHeader::ImportStringTableOffset, - CROHeader::StaticAnonymousSymbolTableOffset, - CROHeader::RelocationPatchTableOffset, - CROHeader::StaticAnonymousPatchTableOffset, - }; - - for (u32 offset : headerOffsets) { - mem.write32(croPointer + offset, mem.read32(croPointer + offset) - croPointer); - } - - return true; - } - - bool rebaseSegmentTable(u32 dataVaddr, u32 bssVaddr, u32 *oldDataVaddr) { - const CROHeaderEntry segmentTable = getHeaderEntry(CROHeader::SegmentTableOffset); - - for (u32 segment = 0; segment < segmentTable.size; segment++) { - u32 segmentOffset = mem.read32(segmentTable.offset + 12 * segment + SegmentTable::Offset); - - const u32 segmentID = mem.read32(segmentTable.offset + 12 * segment + SegmentTable::ID); - switch (segmentID) { - case SegmentTable::SegmentID::DATA: - *oldDataVaddr = segmentOffset + dataVaddr; oldDataSegmentOffset = segmentOffset; segmentOffset = dataVaddr; break; - case SegmentTable::SegmentID::BSS: segmentOffset = bssVaddr; break; - case SegmentTable::SegmentID::TEXT: - case SegmentTable::SegmentID::RODATA: - if (segmentOffset != 0) segmentOffset += croPointer; break; - default: - Helpers::panic("Unknown segment ID = %u", segmentID); - } - - mem.write32(segmentTable.offset + 12 * segment + SegmentTable::Offset, segmentOffset); - } - - return true; - } - - bool unrebaseSegmentTable() { - const CROHeaderEntry segmentTable = getHeaderEntry(CROHeader::SegmentTableOffset); - - for (u32 segment = 0; segment < segmentTable.size; segment++) { - u32 segmentOffset = mem.read32(segmentTable.offset + 12 * segment + SegmentTable::Offset); - - const u32 segmentID = mem.read32(segmentTable.offset + 12 * segment + SegmentTable::ID); - switch (segmentID) { - case SegmentTable::SegmentID::DATA: segmentOffset = oldDataSegmentOffset; break; - case SegmentTable::SegmentID::BSS: segmentOffset = 0; break; - case SegmentTable::SegmentID::TEXT: - case SegmentTable::SegmentID::RODATA: - if (segmentOffset != 0) segmentOffset -= croPointer; break; - default: - Helpers::panic("Unknown segment ID = %u", segmentID); - } - - mem.write32(segmentTable.offset + 12 * segment + SegmentTable::Offset, segmentOffset); - } - - return true; - } - - bool rebaseNamedExportTable() { - const CROHeaderEntry namedExportTable = getHeaderEntry(CROHeader::NamedExportTableOffset); - - for (u32 namedExport = 0; namedExport < namedExportTable.size; namedExport++) { - u32 nameOffset = mem.read32(namedExportTable.offset + 8 * namedExport); - - if (nameOffset != 0) { - mem.write32(namedExportTable.offset + 8 * namedExport, nameOffset + croPointer); - } - } - - return true; - } - - bool unrebaseNamedExportTable() { - const CROHeaderEntry namedExportTable = getHeaderEntry(CROHeader::NamedExportTableOffset); - - for (u32 namedExport = 0; namedExport < namedExportTable.size; namedExport++) { - u32 nameOffset = mem.read32(namedExportTable.offset + 8 * namedExport); - - if (nameOffset != 0) { - mem.write32(namedExportTable.offset + 8 * namedExport, nameOffset - croPointer); - } - } - - return true; - } - - bool rebaseImportModuleTable() { - const CROHeaderEntry importModuleTable = getHeaderEntry(CROHeader::ImportModuleTableOffset); - - for (u32 importModule = 0; importModule < importModuleTable.size; importModule++) { - u32 nameOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::NameOffset); - - if (nameOffset != 0) { - mem.write32(importModuleTable.offset + 20 * importModule + ImportModuleTable::NameOffset, nameOffset + croPointer); - } - - u32 indexedOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedOffset); - - if (indexedOffset != 0) { - mem.write32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedOffset, indexedOffset + croPointer); - } - - u32 anonymousOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousOffset); - - if (anonymousOffset != 0) { - mem.write32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousOffset, anonymousOffset + croPointer); - } - } - - return true; - } - - bool unrebaseImportModuleTable() { - const CROHeaderEntry importModuleTable = getHeaderEntry(CROHeader::ImportModuleTableOffset); - - for (u32 importModule = 0; importModule < importModuleTable.size; importModule++) { - u32 nameOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::NameOffset); - - if (nameOffset != 0) { - mem.write32(importModuleTable.offset + 20 * importModule + ImportModuleTable::NameOffset, nameOffset - croPointer); - } - - u32 indexedOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedOffset); - - if (indexedOffset != 0) { - mem.write32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedOffset, indexedOffset - croPointer); - } - - u32 anonymousOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousOffset); - - if (anonymousOffset != 0) { - mem.write32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousOffset, anonymousOffset - croPointer); - } - } - - return true; - } - - bool rebaseNamedImportTable() { - const CROHeaderEntry namedImportTable = getHeaderEntry(CROHeader::NamedImportTableOffset); - - for (u32 namedImport = 0; namedImport < namedImportTable.size; namedImport++) { - u32 nameOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::NameOffset); - - if (nameOffset != 0) { - mem.write32(namedImportTable.offset + 8 * namedImport + NamedImportTable::NameOffset, nameOffset + croPointer); - } - - u32 relocationOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset); - - if (relocationOffset != 0) { - mem.write32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset, relocationOffset + croPointer); - } - } - - return true; - } - - bool unrebaseNamedImportTable() { - const CROHeaderEntry namedImportTable = getHeaderEntry(CROHeader::NamedImportTableOffset); - - for (u32 namedImport = 0; namedImport < namedImportTable.size; namedImport++) { - u32 nameOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::NameOffset); - - if (nameOffset != 0) { - mem.write32(namedImportTable.offset + 8 * namedImport + NamedImportTable::NameOffset, nameOffset - croPointer); - } - - u32 relocationOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset); - - if (relocationOffset != 0) { - mem.write32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset, relocationOffset - croPointer); - } - } - - return true; - } - - bool rebaseIndexedImportTable() { - const CROHeaderEntry indexedImportTable = getHeaderEntry(CROHeader::IndexedImportTableOffset); - - for (u32 indexedImport = 0; indexedImport < indexedImportTable.size; indexedImport++) { - u32 relocationOffset = mem.read32(indexedImportTable.offset + 8 * indexedImport + IndexedImportTable::RelocationOffset); - - if (relocationOffset != 0) { - mem.write32(indexedImportTable.offset + 8 * indexedImport + IndexedImportTable::RelocationOffset, relocationOffset + croPointer); - } - } - - return true; - } - - bool unrebaseIndexedImportTable() { - const CROHeaderEntry indexedImportTable = getHeaderEntry(CROHeader::IndexedImportTableOffset); - - for (u32 indexedImport = 0; indexedImport < indexedImportTable.size; indexedImport++) { - u32 relocationOffset = mem.read32(indexedImportTable.offset + 8 * indexedImport + IndexedImportTable::RelocationOffset); - - if (relocationOffset != 0) { - mem.write32(indexedImportTable.offset + 8 * indexedImport + IndexedImportTable::RelocationOffset, relocationOffset - croPointer); - } - } - - return true; - } - - bool rebaseAnonymousImportTable() { - const CROHeaderEntry anonymousImportTable = getHeaderEntry(CROHeader::AnonymousImportTableOffset); - - for (u32 anonymousImport = 0; anonymousImport < anonymousImportTable.size; anonymousImport++) { - u32 relocationOffset = mem.read32(anonymousImportTable.offset + 8 * anonymousImport + AnonymousImportTable::RelocationOffset); - - if (relocationOffset != 0) { - mem.write32(anonymousImportTable.offset + 8 * anonymousImport + AnonymousImportTable::RelocationOffset, relocationOffset + croPointer); - } - } - - return true; - } - - bool unrebaseAnonymousImportTable() { - const CROHeaderEntry anonymousImportTable = getHeaderEntry(CROHeader::AnonymousImportTableOffset); - - for (u32 anonymousImport = 0; anonymousImport < anonymousImportTable.size; anonymousImport++) { - u32 relocationOffset = mem.read32(anonymousImportTable.offset + 8 * anonymousImport + AnonymousImportTable::RelocationOffset); - - if (relocationOffset != 0) { - mem.write32(anonymousImportTable.offset + 8 * anonymousImport + AnonymousImportTable::RelocationOffset, relocationOffset - croPointer); - } - } - - return true; - } - - bool relocateInternalSymbols(u32 oldDataVaddr) { - const u8* header = (u8*)mem.getReadPointer(croPointer); - - const CROHeaderEntry relocationPatchTable = getHeaderEntry(CROHeader::RelocationPatchTableOffset); - const CROHeaderEntry segmentTable = getHeaderEntry(CROHeader::SegmentTableOffset); - - for (u32 relocationPatch = 0; relocationPatch < relocationPatchTable.size; relocationPatch++) { - const u32 segmentOffset = mem.read32(relocationPatchTable.offset + 12 * relocationPatch + RelocationPatch::SegmentOffset); - const u8 patchType = mem.read8(relocationPatchTable.offset + 12 * relocationPatch + RelocationPatch::PatchType); - const u8 segmentIndex = mem.read8(relocationPatchTable.offset + 12 * relocationPatch + RelocationPatch::SegmentIndex); - const u32 addend = mem.read32(relocationPatchTable.offset + 12 * relocationPatch + RelocationPatch::Addend); - - const u32 segmentAddr = getSegmentAddr(segmentOffset); - - const u32 entryID = mem.read32(segmentTable.offset + 12 * (segmentOffset & 0xF) + SegmentTable::ID); - - u32 relocationTarget = segmentAddr; - if (entryID == SegmentTable::SegmentID::DATA) { - // Recompute relocation target for .data - relocationTarget = oldDataVaddr + (segmentOffset >> 4); - } - - if (relocationTarget == 0) { - Helpers::panic("Relocation target is NULL"); - } - - const u32 symbolOffset = mem.read32(segmentTable.offset + 12 * segmentIndex + SegmentTable::Offset); - - patchSymbol(relocationTarget, patchType, addend, symbolOffset); - } - - return true; - } - - bool relocateStaticAnonymousSymbols() { - const CROHeaderEntry staticAnonymousSymbolTable = getHeaderEntry(CROHeader::StaticAnonymousSymbolTableOffset); - - for (u32 symbol = 0; symbol < staticAnonymousSymbolTable.size; symbol++) { - Helpers::panic("TODO: relocate static anonymous symbols"); - } - - return true; - } - - // Patches "__aeabi_atexit" symbol to "nnroAeabiAtexit_" - bool relocateExitSymbols(u32 loadedCRS) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - const u32 importStringSize = mem.read32(croPointer + CROHeader::ImportStringSize); - - const CROHeaderEntry namedImportTable = getHeaderEntry(CROHeader::NamedImportTableOffset); - - for (u32 namedImport = 0; namedImport < namedImportTable.size; namedImport++) { - const u32 nameOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::NameOffset); - const u32 relocationOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset); - - const std::string symbolName = mem.readString(nameOffset, importStringSize); - - if (symbolName.compare(std::string("__aeabi_atexit")) == 0) { - // Find exit symbol in other CROs - u32 currentCROPointer = loadedCRS; - while (currentCROPointer != 0) { - CRO cro(mem, currentCROPointer, true); - - const u32 exportSymbolAddr = cro.getNamedExportSymbolAddr(std::string("nnroAeabiAtexit_")); - if (exportSymbolAddr != 0) { - patchBatch(relocationOffset, exportSymbolAddr); - - return true; - } - - currentCROPointer = cro.getNextCRO(); - } - } - } - - Helpers::warn("Failed to relocate exit symbols"); - - return false; - } - - bool importNamedSymbols(u32 loadedCRS) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - const u32 importStringSize = mem.read32(croPointer + CROHeader::ImportStringSize); - - const CROHeaderEntry namedImportTable = getHeaderEntry(CROHeader::NamedImportTableOffset); - - for (u32 namedImport = 0; namedImport < namedImportTable.size; namedImport++) { - const u32 relocationOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset); - - u8 isResolved = mem.read8(relocationOffset + RelocationPatch::IsResolved); - - if (isResolved == 0) { - const u32 nameOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::NameOffset); - - const std::string symbolName = mem.readString(nameOffset, importStringSize); - - // Check every loaded CRO for the symbol (the pain) - u32 currentCROPointer = loadedCRS; - while (currentCROPointer != 0) { - CRO cro(mem, currentCROPointer, true); - - const u32 exportSymbolAddr = cro.getNamedExportSymbolAddr(symbolName); - if (exportSymbolAddr != 0) { - patchBatch(relocationOffset, exportSymbolAddr); - - isResolved = 1; - break; - } - - currentCROPointer = cro.getNextCRO(); - } - - if (isResolved == 0) { - Helpers::panic("Failed to resolve symbol %s", symbolName.c_str()); - } - } - } - - return true; - } - - bool clearNamedSymbols() { - const u32 onUnresolvedAddr = getOnUnresolvedAddr(); - - const CROHeaderEntry namedImportTable = getHeaderEntry(CROHeader::NamedImportTableOffset); - - for (u32 namedImport = 0; namedImport < namedImportTable.size; namedImport++) { - const u32 relocationOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset); - - patchBatch(relocationOffset, onUnresolvedAddr, true); - } - - return true; - } - - bool importModules(u32 loadedCRS) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - const u32 importStringSize = mem.read32(croPointer + CROHeader::ImportStringSize); - - const CROHeaderEntry importModuleTable = getHeaderEntry(CROHeader::ImportModuleTableOffset); - - for (u32 importModule = 0; importModule < importModuleTable.size; importModule++) { - const u32 nameOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::NameOffset); - - const std::string importModuleName = mem.readString(nameOffset, importStringSize); - - // Find import module - u32 currentCROPointer = loadedCRS; - while (currentCROPointer != 0) { - CRO cro(mem, currentCROPointer, true); - - if (importModuleName.compare(cro.getModuleName()) == 0) { - // Import indexed symbols - const CROHeaderEntry indexedExportTable = cro.getHeaderEntry(CROHeader::IndexedExportTableOffset); - - const u32 indexedOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedOffset); - const u32 indexedNum = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedNum); - - for (u32 indexedImport = 0; indexedImport < indexedNum; indexedImport++) { - if (indexedOffset == 0) { - Helpers::panic("Indexed symbol offset is NULL"); - } - - const u32 importIndex = mem.read32(indexedOffset + 8 * indexedImport + IndexedImportTable::Index); - - const u32 segmentOffset = mem.read32(indexedExportTable.offset + 4 * importIndex + IndexedExportTable::SegmentOffset); - const u32 relocationOffset = mem.read32(indexedOffset + 8 * indexedImport + IndexedImportTable::RelocationOffset); - - patchBatch(relocationOffset, cro.getSegmentAddr(segmentOffset)); - } - - // Import anonymous symbols - const u32 anonymousOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousOffset); - const u32 anonymousNum = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousNum); - - for (u32 anonymousImport = 0; anonymousImport < anonymousNum; anonymousImport++) { - if (anonymousOffset == 0) { - Helpers::panic("Anonymous symbol offset is NULL"); - } - - const u32 segmentOffset = mem.read32(anonymousOffset + 8 * anonymousImport + AnonymousImportTable::SegmentOffset); - const u32 relocationOffset = mem.read32(anonymousOffset + 8 * anonymousImport + AnonymousImportTable::RelocationOffset); - - patchBatch(relocationOffset, cro.getSegmentAddr(segmentOffset)); - } - - break; - } - - currentCROPointer = cro.getNextCRO(); - } - - if (currentCROPointer == 0) { - Helpers::warn("Unable to find import module \"%s\"", importModuleName.c_str()); - } - } - - return true; - } - - bool clearModules() { - const u32 onUnresolvedAddr = getOnUnresolvedAddr(); - - const CROHeaderEntry importModuleTable = getHeaderEntry(CROHeader::ImportModuleTableOffset); - - for (u32 importModule = 0; importModule < importModuleTable.size; importModule++) { - // Clear indexed symbol imports - const u32 indexedOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedOffset); - const u32 indexedNum = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedNum); - - for (u32 indexedImport = 0; indexedImport < indexedNum; indexedImport++) { - if (indexedOffset == 0) { - Helpers::panic("Indexed symbol offset is NULL"); - } - - const u32 relocationOffset = mem.read32(indexedOffset + 8 * indexedImport + IndexedImportTable::RelocationOffset); - - patchBatch(relocationOffset, onUnresolvedAddr, true); - } - - // Clear anonymous import symbols - const u32 anonymousOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousOffset); - const u32 anonymousNum = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousNum); - - for (u32 anonymousImport = 0; anonymousImport < anonymousNum; anonymousImport++) { - if (anonymousOffset == 0) { - Helpers::panic("Anonymous symbol offset is NULL"); - } - - const u32 relocationOffset = mem.read32(anonymousOffset + 8 * anonymousImport + AnonymousImportTable::RelocationOffset); - - patchBatch(relocationOffset, onUnresolvedAddr, true); - } - } - - return true; - } - - bool exportSymbols(u32 loadedCRS) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - u32 currentCROPointer = loadedCRS; - while (currentCROPointer != 0) { - CRO cro(mem, currentCROPointer, true); - - // Export named symbols - const u32 importStringSize = mem.read32(currentCROPointer + CROHeader::ImportStringSize); - - const CROHeaderEntry namedImportTable = cro.getHeaderEntry(CROHeader::NamedImportTableOffset); - - for (u32 namedImport = 0; namedImport < namedImportTable.size; namedImport++) { - const u32 relocationOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset); - - u8 isResolved = mem.read8(relocationOffset + RelocationPatch::IsResolved); - - if (isResolved == 0) { - const u32 nameOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::NameOffset); - - const std::string symbolName = mem.readString(nameOffset, importStringSize); - - // Check our current CRO for the symbol - const u32 exportSymbolAddr = getNamedExportSymbolAddr(symbolName); - if (exportSymbolAddr == 0) { - continue; - } - - cro.patchBatch(relocationOffset, exportSymbolAddr); - } - } - - // Export indexed and anonymous symbols - const CROHeaderEntry importModuleTable = cro.getHeaderEntry(CROHeader::ImportModuleTableOffset); - - for (u32 importModule = 0; importModule < importModuleTable.size; importModule++) { - // Check if other CROs request module imports from this CRO - const u32 nameOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::NameOffset); - - const std::string moduleName = mem.readString(nameOffset, importStringSize); - - if (moduleName.compare(getModuleName()) != 0) { - continue; - } - - // Export indexed symbols - const u32 indexedOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedOffset); - const u32 indexedNum = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedNum); - - for (u32 indexedImport = 0; indexedImport < indexedNum; indexedImport++) { - Helpers::panic("TODO: indexed exports"); - } - - // Export anonymous symbols - const u32 anonymousOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousOffset); - const u32 anonymousNum = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousNum); - - for (u32 anonymousImport = 0; anonymousImport < anonymousNum; anonymousImport++) { - if (anonymousOffset == 0) { - Helpers::panic("Anonymous symbol offset is NULL"); - } - - const u32 segmentOffset = mem.read32(anonymousOffset + 8 * anonymousImport + AnonymousImportTable::SegmentOffset); - const u32 relocationOffset = mem.read32(anonymousOffset + 8 * anonymousImport + AnonymousImportTable::RelocationOffset); - - cro.patchBatch(relocationOffset, getSegmentAddr(segmentOffset)); - } - } - - currentCROPointer = cro.getNextCRO(); - } - - return true; - } - - bool clearSymbolExports(u32 loadedCRS) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - u32 currentCROPointer = loadedCRS; - while (currentCROPointer != 0) { - CRO cro(mem, currentCROPointer, true); - - const u32 onUnresolvedAddr = cro.getOnUnresolvedAddr(); - - const u32 importStringSize = mem.read32(currentCROPointer + CROHeader::ImportStringSize); - - // Clear named symbol exports - const CROHeaderEntry namedImportTable = cro.getHeaderEntry(CROHeader::NamedImportTableOffset); - - for (u32 namedImport = 0; namedImport < namedImportTable.size; namedImport++) { - const u32 relocationOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::RelocationOffset); - - u8 isResolved = mem.read8(relocationOffset + RelocationPatch::IsResolved); - - if (isResolved != 0) { - const u32 nameOffset = mem.read32(namedImportTable.offset + 8 * namedImport + NamedImportTable::NameOffset); - - const std::string symbolName = mem.readString(nameOffset, importStringSize); - - // Check our current CRO for the symbol - const u32 exportSymbolAddr = getNamedExportSymbolAddr(symbolName); - if (exportSymbolAddr == 0) { - continue; - } - - cro.patchBatch(relocationOffset, onUnresolvedAddr, true); - } - } - - // Clear indexed and anonymous symbol exports - const CROHeaderEntry importModuleTable = cro.getHeaderEntry(CROHeader::ImportModuleTableOffset); - - for (u32 importModule = 0; importModule < importModuleTable.size; importModule++) { - // Check if other CROs request module imports from this CRO - const u32 nameOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::NameOffset); - - const std::string moduleName = mem.readString(nameOffset, importStringSize); - - if (moduleName.compare(getModuleName()) != 0) { - continue; - } - - // Export indexed symbols - const u32 indexedOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedOffset); - const u32 indexedNum = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::IndexedNum); - - for (u32 indexedImport = 0; indexedImport < indexedNum; indexedImport++) { - Helpers::panic("TODO: clear indexed exports"); - } - - // Export anonymous symbols - const u32 anonymousOffset = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousOffset); - const u32 anonymousNum = mem.read32(importModuleTable.offset + 20 * importModule + ImportModuleTable::AnonymousNum); - - for (u32 anonymousImport = 0; anonymousImport < anonymousNum; anonymousImport++) { - if (anonymousOffset == 0) { - Helpers::panic("Anonymous symbol offset is NULL"); - } - - const u32 relocationOffset = mem.read32(anonymousOffset + 8 * anonymousImport + AnonymousImportTable::RelocationOffset); - - cro.patchBatch(relocationOffset, onUnresolvedAddr, true); - } - } - - currentCROPointer = cro.getNextCRO(); - } - - return true; - } - - // Links CROs. Heavily based on Citra's CRO linker - bool link(u32 loadedCRS, bool isNew) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - const CROHeaderEntry segmentTable = getHeaderEntry(CROHeader::SegmentTableOffset); - - // Fix data segment offset (LoadCRO_New) - // Note: the old LoadCRO does *not* fix .data - u32 dataVaddr; - if (isNew) { - if (segmentTable.size > 1) { - // Note: ldr:ro assumes that segment index 2 is .data - dataVaddr = mem.read32(segmentTable.offset + 24 + SegmentTable::Offset); - - mem.write32(segmentTable.offset + 24 + SegmentTable::Offset, mem.read32(croPointer + CROHeader::DataOffset)); - } - } - - importNamedSymbols(loadedCRS); - importModules(loadedCRS); - exportSymbols(loadedCRS); - - // Restore .data segment offset (LoadCRO_New) - if (isNew) { - if (segmentTable.size > 1) { - mem.write32(segmentTable.offset + 24 + SegmentTable::Offset, dataVaddr); - } - } - - return true; - } - - bool unlink(u32 loadedCRS) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - clearNamedSymbols(); - clearModules(); - clearSymbolExports(loadedCRS); - - return true; - } - - // Adds CRO to the linked list of loaded CROs - void registerCRO(u32 loadedCRS, bool autoLink) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - CRO crs(mem, loadedCRS, false); - - u32 headAddr = crs.getPrevCRO(); - if (autoLink) { - headAddr = crs.getNextCRO(); - } - - if (headAddr == 0) { - // Register first CRO - setPrevCRO(croPointer); - - if (autoLink) { - crs.setNextCRO(croPointer); - } else { - crs.setPrevCRO(croPointer); - } - } else { - // Register new CRO - CRO head(mem, headAddr, true); - CRO tail(mem, head.getPrevCRO(), true); - - if (tail.getNextCRO() != 0) { - Helpers::panic("Invalid CRO tail"); - } - - setPrevCRO(tail.croPointer); - - tail.setNextCRO(croPointer); - head.setPrevCRO(croPointer); - } - } - - // Thanks, Citra - void unregisterCRO(u32 loadedCRS) { - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - CRO crs(mem, loadedCRS, false); - - CRO next(mem, getNextCRO(), true); - CRO prev(mem, getPrevCRO(), true); - - CRO nextHead(mem, crs.getNextCRO(), true); - CRO prevHead(mem, crs.getPrevCRO(), true); - - if ((croPointer == nextHead.croPointer) || (croPointer == prevHead.croPointer)) { - // Our current CRO is the head, remove it - const u32 nextPointer = next.croPointer; - - if (nextPointer != 0) { - next.setPrevCRO(prev.croPointer); - } - - if (croPointer == prevHead.croPointer) { - crs.setPrevCRO(nextPointer); - } else { - crs.setNextCRO(nextPointer); - } - } else if (next.croPointer != 0) { - // Our current CRO is neither the head nor the tail, - // link the next and previous CRO with each other - prev.setNextCRO(next.croPointer); - next.setPrevCRO(prev.croPointer); - } else { - // Our current CRO is the tail, remove it - prev.setNextCRO(0); - - const u32 prevPointer = prev.croPointer; - - if ((nextHead.croPointer != 0) && (nextHead.getPrevCRO() == croPointer)) { - nextHead.setPrevCRO(prevPointer); - } else if ((prevHead.croPointer != 0) && (prevHead.getPrevCRO() == croPointer)) { - prevHead.setPrevCRO(prevPointer); - } else { - Helpers::panic("bwaaa"); - } - } - - setNextCRO(0); - setPrevCRO(0); - } -}; - -void LDRService::reset() { - loadedCRS = 0; -} - -void LDRService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case LDRCommands::Initialize: initialize(messagePointer); break; - case LDRCommands::LoadCRR: loadCRR(messagePointer); break; - case LDRCommands::LoadCRO: loadCRO(messagePointer, false); break; - case LDRCommands::UnloadCRO: unloadCRO(messagePointer); break; - case LDRCommands::LinkCRO: linkCRO(messagePointer); break; - case LDRCommands::LoadCRONew: loadCRO(messagePointer, true); break; - default: Helpers::panic("LDR::RO service requested. Command: %08X\n", command); - } -} - -void LDRService::initialize(u32 messagePointer) { - const u32 crsPointer = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - const u32 mapVaddr = mem.read32(messagePointer + 12); - const Handle process = mem.read32(messagePointer + 20); - - log("LDR_RO::Initialize (buffer = %08X, size = %08X, vaddr = %08X, process = %X)\n", crsPointer, size, mapVaddr, process); - - // Sanity checks - if (loadedCRS != 0) { - Helpers::panic("CRS already loaded\n"); - } - - if (size < CRO_HEADER_SIZE) { - Helpers::panic("CRS too small\n"); - } - - if (!mem.isAligned(size)) { - Helpers::panic("Unaligned CRS size\n"); - } - - if (!mem.isAligned(crsPointer)) { - Helpers::panic("Unaligned CRS pointer\n"); - } - - if (!mem.isAligned(mapVaddr)) { - Helpers::panic("Unaligned CRS output vaddr\n"); - } - - // Map CRO to output address - mem.mirrorMapping(mapVaddr, crsPointer, size); - - CRO crs(mem, mapVaddr, false); - - if (!crs.load()) { - Helpers::panic("Failed to load CRS"); - } - - if (!crs.rebase(0, 0, 0)) { - Helpers::panic("Failed to rebase CRS"); - } - - kernel.clearInstructionCache(); - - loadedCRS = mapVaddr; - - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void LDRService::linkCRO(u32 messagePointer) { - const u32 mapVaddr = mem.read32(messagePointer + 4); - const Handle process = mem.read32(messagePointer + 12); - - log("LDR_RO::LinkCRO (vaddr = %X, process = %X)\n", mapVaddr, process); - - if (loadedCRS == 0) { - Helpers::panic("CRS not loaded"); - } - - if (!mem.isAligned(mapVaddr)) { - Helpers::panic("Unaligned CRO vaddr\n"); - } - - CRO cro(mem, mapVaddr, true); - - // TODO: check if CRO has been loaded prior to calling this - - if (!cro.link(loadedCRS, false)) { - Helpers::panic("Failed to link CRO"); - } - - kernel.clearInstructionCache(); - - mem.write32(messagePointer, IPC::responseHeader(0x6, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void LDRService::loadCRR(u32 messagePointer) { - const u32 crrPointer = mem.read32(messagePointer + 4); - const u32 size = mem.read32(messagePointer + 8); - const Handle process = mem.read32(messagePointer + 20); - - log("LDR_RO::LoadCRR (buffer = %08X, size = %08X, process = %X)\n", crrPointer, size, process); - mem.write32(messagePointer, IPC::responseHeader(0x2, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void LDRService::loadCRO(u32 messagePointer, bool isNew) { - const u32 croPointer = mem.read32(messagePointer + 4); - const u32 mapVaddr = mem.read32(messagePointer + 8); - const u32 size = mem.read32(messagePointer + 12); - const u32 dataVaddr = mem.read32(messagePointer + 16); - const u32 dataSize = mem.read32(messagePointer + 24); - const u32 bssVaddr = mem.read32(messagePointer + 28); - const u32 bssSize = mem.read32(messagePointer + 32); - const bool autoLink = mem.read32(messagePointer + 36) != 0; - const u32 fixLevel = mem.read32(messagePointer + 40); - const Handle process = mem.read32(messagePointer + 52); - - log("LDR_RO::LoadCRO (isNew = %d, buffer = %08X, vaddr = %08X, size = %08X, .data vaddr = %08X, .data size = %08X, .bss vaddr = %08X, .bss size = %08X, auto link = %d, fix level = %X, process = %X)\n", isNew, croPointer, mapVaddr, size, dataVaddr, dataSize, bssVaddr, bssSize, autoLink, fixLevel, process); - - // Sanity checks - if (size < CRO_HEADER_SIZE) { - Helpers::panic("CRO too small\n"); - } - - if (!mem.isAligned(size)) { - Helpers::panic("Unaligned CRO size\n"); - } - - if (!mem.isAligned(croPointer)) { - Helpers::panic("Unaligned CRO pointer\n"); - } - - if (!mem.isAligned(mapVaddr)) { - Helpers::panic("Unaligned CRO output vaddr\n"); - } - - // Map CRO to output address - mem.mirrorMapping(mapVaddr, croPointer, size); - - CRO cro(mem, mapVaddr, true); - - if (!cro.load()) { - Helpers::panic("Failed to load CRO"); - } - - if (!cro.rebase(loadedCRS, dataVaddr, bssVaddr)) { - Helpers::panic("Failed to rebase CRO"); - } - - if (!cro.link(loadedCRS, isNew)) { - Helpers::panic("Failed to link CRO"); - } - - cro.registerCRO(loadedCRS, autoLink); - - // TODO: add fixing - cro.fix(fixLevel); - - kernel.clearInstructionCache(); - - if (isNew) { - mem.write32(messagePointer, IPC::responseHeader(0x9, 2, 0)); - } else { - mem.write32(messagePointer, IPC::responseHeader(0x4, 2, 0)); - } - - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, size); -} - -void LDRService::unloadCRO(u32 messagePointer) { - const u32 mapVaddr = mem.read32(messagePointer + 4); - const u32 croPointer = mem.read32(messagePointer + 12); - const Handle process = mem.read32(messagePointer + 20); - - log("LDR_RO::UnloadCRO (vaddr = %08X, buffer = %08X, process = %X)\n", mapVaddr, croPointer, process); - - // TODO: is CRO loaded? - - if (!mem.isAligned(croPointer)) { - Helpers::panic("Unaligned CRO pointer\n"); - } - - if (!mem.isAligned(mapVaddr)) { - Helpers::panic("Unaligned CRO output vaddr\n"); - } - - CRO cro(mem, mapVaddr, true); - - cro.unregisterCRO(loadedCRS); - - if (!cro.unlink(loadedCRS)) { - Helpers::panic("Failed to unlink CRO"); - } - - if (!cro.unrebase()) { - Helpers::panic("Failed to unrebase CRO"); - } - - kernel.clearInstructionCache(); - - mem.write32(messagePointer, IPC::responseHeader(0x5, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/mcu/mcu_hwc.cpp b/src/core/services/mcu/mcu_hwc.cpp deleted file mode 100644 index 2873adf5..00000000 --- a/src/core/services/mcu/mcu_hwc.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "ipc.hpp" -#include "result/result.hpp" -#include "services/mcu/mcu_hwc.hpp" - -namespace MCU::HWCCommands { - enum : u32 { - GetBatteryLevel = 0x00050000, - }; -} - -void MCU::HWCService::reset() {} - -void MCU::HWCService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case HWCCommands::GetBatteryLevel: getBatteryLevel(messagePointer); break; - default: Helpers::panic("MCU::HWC service requested. Command: %08X\n", command); - } -} - -void MCU::HWCService::getBatteryLevel(u32 messagePointer) { - log("MCU::HWC::GetBatteryLevel\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x5, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, config.batteryPercentage); -} \ No newline at end of file diff --git a/src/core/services/mic.cpp b/src/core/services/mic.cpp deleted file mode 100644 index c20159f1..00000000 --- a/src/core/services/mic.cpp +++ /dev/null @@ -1,174 +0,0 @@ -#include "services/mic.hpp" -#include "ipc.hpp" -#include "kernel/kernel.hpp" - -namespace MICCommands { - enum : u32 { - MapSharedMem = 0x00010042, - UnmapSharedMem = 0x00020000, - StartSampling = 0x00030140, - StopSampling = 0x00050000, - IsSampling = 0x00060000, - GetEventHandle = 0x00070000, - SetGain = 0x00080040, - GetGain = 0x00090000, - SetPower = 0x000A0040, - GetPower = 0x000B0000, - SetIirFilter = 0x000C0042, - SetClamp = 0x000D0040, - CaptainToadFunction = 0x00100040, - }; -} - -void MICService::reset() { - micEnabled = false; - shouldClamp = false; - currentlySampling = false; - gain = 0; - - eventHandle = std::nullopt; -} - -void MICService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case MICCommands::GetEventHandle: getEventHandle(messagePointer); break; - case MICCommands::GetGain: getGain(messagePointer); break; - case MICCommands::GetPower: getPower(messagePointer); break; - case MICCommands::IsSampling: isSampling(messagePointer); break; - case MICCommands::MapSharedMem: mapSharedMem(messagePointer); break; - case MICCommands::SetClamp: setClamp(messagePointer); break; - case MICCommands::SetGain: setGain(messagePointer); break; - case MICCommands::SetIirFilter: setIirFilter(messagePointer); break; - case MICCommands::SetPower: setPower(messagePointer); break; - case MICCommands::StartSampling: startSampling(messagePointer); break; - case MICCommands::StopSampling: stopSampling(messagePointer); break; - case MICCommands::UnmapSharedMem: unmapSharedMem(messagePointer); break; - case MICCommands::CaptainToadFunction: theCaptainToadFunction(messagePointer); break; - default: Helpers::panic("MIC service requested. Command: %08X\n", command); - } -} - -void MICService::mapSharedMem(u32 messagePointer) { - u32 size = mem.read32(messagePointer + 4); - u32 handle = mem.read32(messagePointer + 12); - - log("MIC::MapSharedMem (size = %08X, handle = %X) (stubbed)\n", size, handle); - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void MICService::unmapSharedMem(u32 messagePointer) { - log("MIC::UnmapSharedMem (stubbed)\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x2, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void MICService::getEventHandle(u32 messagePointer) { - log("MIC::GetEventHandle\n"); - Helpers::warn("Acquire MIC event handle"); - - if (!eventHandle.has_value()) { - eventHandle = kernel.makeEvent(ResetType::OneShot); - } - - mem.write32(messagePointer, IPC::responseHeader(0x7, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - // TODO: Translation descriptor - mem.write32(messagePointer + 12, eventHandle.value()); -} - -void MICService::getGain(u32 messagePointer) { - log("MIC::GetGain\n"); - mem.write32(messagePointer, IPC::responseHeader(0x9, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, gain); -} - -void MICService::setGain(u32 messagePointer) { - gain = mem.read8(messagePointer + 4); - log("MIC::SetGain (value = %d)\n", gain); - - mem.write32(messagePointer, IPC::responseHeader(0x8, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void MICService::setPower(u32 messagePointer) { - u8 val = mem.read8(messagePointer + 4); - log("MIC::SetPower (value = %d)\n", val); - - micEnabled = val != 0; - mem.write32(messagePointer, IPC::responseHeader(0xA, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void MICService::getPower(u32 messagePointer) { - log("MIC::GetPower\n"); - - mem.write32(messagePointer, IPC::responseHeader(0xB, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, micEnabled ? 1 : 0); -} - -void MICService::setClamp(u32 messagePointer) { - u8 val = mem.read8(messagePointer + 4); - log("MIC::SetClamp (value = %d)\n", val); - - shouldClamp = val != 0; - mem.write32(messagePointer, IPC::responseHeader(0xD, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void MICService::startSampling(u32 messagePointer) { - u8 encoding = mem.read8(messagePointer + 4); - u8 sampleRate = mem.read8(messagePointer + 8); - u32 offset = mem.read32(messagePointer + 12); - u32 dataSize = mem.read32(messagePointer + 16); - bool loop = mem.read8(messagePointer + 20); - - log("MIC::StartSampling (encoding = %d, sample rate = %d, offset = %08X, size = %08X, loop: %s) (stubbed)\n", - encoding, sampleRate, offset, dataSize, loop ? "yes" : "no" - ); - - currentlySampling = true; - mem.write32(messagePointer, IPC::responseHeader(0x3, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void MICService::stopSampling(u32 messagePointer) { - log("MIC::StopSampling\n"); - currentlySampling = false; - - mem.write32(messagePointer, IPC::responseHeader(0x5, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void MICService::isSampling(u32 messagePointer) { - log("MIC::IsSampling"); - - mem.write32(messagePointer, IPC::responseHeader(0x6, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, currentlySampling ? 1 : 0); -} - -void MICService::setIirFilter(u32 messagePointer) { - const u32 size = mem.read32(messagePointer + 4); - const u32 pointer = mem.read32(messagePointer + 12); - log("MIC::SetIirFilter (size = %X, pointer = %08X) (Stubbed)\n", size, pointer); - - mem.write32(messagePointer, IPC::responseHeader(0x0C, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -// Found in Captain Toad: Treasure Tracker -// This is what 3DBrew says: -// When the input value is 0, value 1 is written to an u8 MIC module state field. -// Otherwise, value 0 is written there.Normally the input value is non - zero. -// Citra calls it setClientVersion but no idea how they got that -void MICService::theCaptainToadFunction(u32 messagePointer) { - log("MIC: Unknown function 0x00100040\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x10, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/ndm.cpp b/src/core/services/ndm.cpp deleted file mode 100644 index 65de1399..00000000 --- a/src/core/services/ndm.cpp +++ /dev/null @@ -1,101 +0,0 @@ -#include "services/ndm.hpp" -#include "ipc.hpp" - -namespace NDMCommands { - enum : u32 { - EnterExclusiveState = 0x00010042, - ExitExclusiveState = 0x00020002, - QueryExclusiveMode = 0x00030000, - OverrideDefaultDaemons = 0x00140040, - SuspendDaemons = 0x00060040, - ResumeDaemons = 0x00070040, - SuspendScheduler = 0x00080040, - ResumeScheduler = 0x00090000, - ClearHalfAwakeMacFilter = 0x00170000, - }; -} - -void NDMService::reset() { exclusiveState = ExclusiveState::None; } - -void NDMService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case NDMCommands::EnterExclusiveState: enterExclusiveState(messagePointer); break; - case NDMCommands::ExitExclusiveState: exitExclusiveState(messagePointer); break; - case NDMCommands::ClearHalfAwakeMacFilter: clearHalfAwakeMacFilter(messagePointer); break; - case NDMCommands::OverrideDefaultDaemons: overrideDefaultDaemons(messagePointer); break; - case NDMCommands::QueryExclusiveMode: queryExclusiveState(messagePointer); break; - case NDMCommands::ResumeDaemons: resumeDaemons(messagePointer); break; - case NDMCommands::ResumeScheduler: resumeScheduler(messagePointer); break; - case NDMCommands::SuspendDaemons: suspendDaemons(messagePointer); break; - case NDMCommands::SuspendScheduler: suspendScheduler(messagePointer); break; - default: Helpers::panic("NDM service requested. Command: %08X\n", command); - } -} - -void NDMService::enterExclusiveState(u32 messagePointer) { - log("NDM::EnterExclusiveState (stubbed)\n"); - const u32 state = mem.read32(messagePointer + 4); - - // Check that the exclusive state config is valid - if (state > 4) { - Helpers::warn("NDM::EnterExclusiveState: Invalid state %d", state); - } else { - exclusiveState = static_cast(state); - } - - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NDMService::exitExclusiveState(u32 messagePointer) { - log("NDM::ExitExclusiveState (stubbed)\n"); - exclusiveState = ExclusiveState::None; - - mem.write32(messagePointer, IPC::responseHeader(0x2, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NDMService::queryExclusiveState(u32 messagePointer) { - log("NDM::QueryExclusiveState\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x3, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, static_cast(exclusiveState)); -} - -void NDMService::overrideDefaultDaemons(u32 messagePointer) { - log("NDM::OverrideDefaultDaemons (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x14, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NDMService::resumeDaemons(u32 messagePointer) { - log("NDM::resumeDaemons (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x7, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NDMService::suspendDaemons(u32 messagePointer) { - log("NDM::SuspendDaemons (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x6, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NDMService::resumeScheduler(u32 messagePointer) { - log("NDM::ResumeScheduler (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x9, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NDMService::suspendScheduler(u32 messagePointer) { - log("NDM::SuspendScheduler (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x8, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NDMService::clearHalfAwakeMacFilter(u32 messagePointer) { - log("NDM::ClearHalfAwakeMacFilter (stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x17, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/news_u.cpp b/src/core/services/news_u.cpp deleted file mode 100644 index ad5df595..00000000 --- a/src/core/services/news_u.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "ipc.hpp" -#include "services/news_u.hpp" - -namespace NewsCommands { - enum : u32 {}; -} - -void NewsUService::reset() {} - -void NewsUService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - default: Helpers::panic("news:u service requested. Command: %08X\n", command); - } -} \ No newline at end of file diff --git a/src/core/services/nfc.cpp b/src/core/services/nfc.cpp deleted file mode 100644 index e9a61ef9..00000000 --- a/src/core/services/nfc.cpp +++ /dev/null @@ -1,248 +0,0 @@ -#include "services/nfc.hpp" -#include "io_file.hpp" -#include "ipc.hpp" -#include "kernel.hpp" - -namespace NFCCommands { - enum : u32 { - Initialize = 0x00010040, - Shutdown = 0x00020040, - StartCommunication = 0x00030000, - StopCommunication = 0x00040000, - StartTagScanning = 0x00050040, - StopTagScanning = 0x00060000, - GetTagInRangeEvent = 0x000B0000, - GetTagOutOfRangeEvent = 0x000C0000, - GetTagState = 0x000D0000, - CommunicationGetStatus = 0x000F0000, - GetTagInfo = 0x00110000, - CommunicationGetResult = 0x00120000, - LoadAmiiboPartially = 0x001A0000, - GetModelInfo = 0x001B0000, - }; -} - -void NFCService::reset() { - device.reset(); - tagInRangeEvent = std::nullopt; - tagOutOfRangeEvent = std::nullopt; - - adapterStatus = Old3DSAdapterStatus::Idle; - tagStatus = TagStatus::NotInitialized; - initialized = false; -} - -void NFCService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case NFCCommands::CommunicationGetResult: communicationGetResult(messagePointer); break; - case NFCCommands::CommunicationGetStatus: communicationGetStatus(messagePointer); break; - case NFCCommands::Initialize: initialize(messagePointer); break; - case NFCCommands::GetModelInfo: getModelInfo(messagePointer); break; - case NFCCommands::GetTagInfo: getTagInfo(messagePointer); break; - case NFCCommands::GetTagInRangeEvent: getTagInRangeEvent(messagePointer); break; - case NFCCommands::GetTagOutOfRangeEvent: getTagOutOfRangeEvent(messagePointer); break; - case NFCCommands::GetTagState: getTagState(messagePointer); break; - case NFCCommands::LoadAmiiboPartially: loadAmiiboPartially(messagePointer); break; - case NFCCommands::Shutdown: shutdown(messagePointer); break; - case NFCCommands::StartCommunication: startCommunication(messagePointer); break; - case NFCCommands::StartTagScanning: startTagScanning(messagePointer); break; - case NFCCommands::StopCommunication: stopCommunication(messagePointer); break; - case NFCCommands::StopTagScanning: stopTagScanning(messagePointer); break; - default: Helpers::panic("NFC service requested. Command: %08X\n", command); - } -} - -bool NFCService::loadAmiibo(const std::filesystem::path& path) { - if (!initialized || tagStatus != TagStatus::Scanning) { - Helpers::warn("It's not the correct time to load an amiibo! Make sure to load amiibi when the game is searching for one!"); - return false; - } - - IOFile file(path, "rb"); - if (!file.isOpen()) { - printf("Failed to open Amiibo file"); - file.close(); - - return false; - } - - auto [success, bytesRead] = file.readBytes(&device.raw, AmiiboDevice::tagSize); - if (!success || bytesRead != AmiiboDevice::tagSize) { - printf("Failed to read entire tag from Amiibo file: File might not be a proper amiibo file\n"); - file.close(); - - return false; - } - - device.loadFromRaw(); - - if (tagOutOfRangeEvent.has_value()) { - kernel.clearEvent(tagOutOfRangeEvent.value()); - } - - if (tagInRangeEvent.has_value()) { - kernel.signalEvent(tagInRangeEvent.value()); - } - - file.close(); - return true; -} - -void NFCService::initialize(u32 messagePointer) { - const u8 type = mem.read8(messagePointer + 4); - log("NFC::Initialize (type = %d)\n", type); - - adapterStatus = Old3DSAdapterStatus::InitializationComplete; - tagStatus = TagStatus::Initialized; - initialized = true; - // TODO: This should error if already initialized. Also sanitize type. - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NFCService::shutdown(u32 messagePointer) { - log("MFC::Shutdown"); - const u8 mode = mem.read8(messagePointer + 4); - - Helpers::warn("NFC::Shutdown: Unimplemented mode: %d", mode); - - mem.write32(messagePointer, IPC::responseHeader(0x2, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -/* - The NFC service provides userland with 2 events. One that is signaled when an NFC tag gets in range, - And one that is signaled when it gets out of range. Userland can have a thread sleep on this so it will be alerted - Whenever an Amiibo or misc NFC tag is presented or removed. - These events are retrieved via the GetTagInRangeEvent and GetTagOutOfRangeEvent function respectively -*/ - -void NFCService::getTagInRangeEvent(u32 messagePointer) { - log("NFC::GetTagInRangeEvent\n"); - - // Create event if it doesn't exist - if (!tagInRangeEvent.has_value()) { - tagInRangeEvent = kernel.makeEvent(ResetType::OneShot); - } - - mem.write32(messagePointer, IPC::responseHeader(0x0B, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - // TODO: Translation descriptor here - mem.write32(messagePointer + 12, tagInRangeEvent.value()); -} - -void NFCService::getTagOutOfRangeEvent(u32 messagePointer) { - log("NFC::GetTagOutOfRangeEvent\n"); - - // Create event if it doesn't exist - if (!tagOutOfRangeEvent.has_value()) { - tagOutOfRangeEvent = kernel.makeEvent(ResetType::OneShot); - } - - mem.write32(messagePointer, IPC::responseHeader(0x0C, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - // TODO: Translation descriptor here - mem.write32(messagePointer + 12, tagOutOfRangeEvent.value()); -} - -void NFCService::getTagState(u32 messagePointer) { - log("NFC::GetTagState\n"); - - mem.write32(messagePointer, IPC::responseHeader(0xD, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, static_cast(tagStatus)); -} - -void NFCService::communicationGetStatus(u32 messagePointer) { - log("NFC::CommunicationGetStatus\n"); - - if (!initialized) { - Helpers::warn("NFC::CommunicationGetStatus: Old 3DS NFC Adapter not initialized\n"); - } - - mem.write32(messagePointer, IPC::responseHeader(0xF, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, static_cast(adapterStatus)); -} - - -void NFCService::communicationGetResult(u32 messagePointer) { - log("NFC::CommunicationGetResult\n"); - - if (!initialized) { - Helpers::warn("NFC::CommunicationGetResult: Old 3DS NFC Adapter not initialized\n"); - } - - mem.write32(messagePointer, IPC::responseHeader(0x12, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - // On N3DS: This always writes 0 here - // On O3DS with the NFC adapter: Returns a result code for NFC communication - mem.write32(messagePointer + 8, 0); -} - -void NFCService::startCommunication(u32 messagePointer) { - log("NFC::StartCommunication\n"); - // adapterStatus = Old3DSAdapterStatus::Active; - // TODO: Actually start communication when we emulate amiibo - - mem.write32(messagePointer, IPC::responseHeader(0x3, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NFCService::startTagScanning(u32 messagePointer) { - log("NFC::StartTagScanning\n"); - if (!initialized) { - Helpers::warn("Scanning for NFC tags before NFC service is initialized"); - } - - tagStatus = TagStatus::Scanning; - - mem.write32(messagePointer, IPC::responseHeader(0x5, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NFCService::stopTagScanning(u32 messagePointer) { - log("NFC::StopTagScanning\n"); - if (!initialized) { - Helpers::warn("Stopping scanning for NFC tags before NFC service is initialized"); - } - - tagStatus = TagStatus::Initialized; - - mem.write32(messagePointer, IPC::responseHeader(0x6, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NFCService::stopCommunication(u32 messagePointer) { - log("NFC::StopCommunication\n"); - adapterStatus = Old3DSAdapterStatus::InitializationComplete; - // TODO: Actually stop communication when we emulate amiibo - - mem.write32(messagePointer, IPC::responseHeader(0x4, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NFCService::getTagInfo(u32 messagePointer) { - log("NFC::GetTagInfo\n"); - Helpers::warn("Unimplemented NFC::GetTagInfo"); - - mem.write32(messagePointer, IPC::responseHeader(0x11, 12, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NFCService::loadAmiiboPartially(u32 messagePointer) { - log("NFC::LoadAmiiboPartially\n"); - Helpers::warn("Unimplemented NFC::LoadAmiiboPartially"); - - mem.write32(messagePointer, IPC::responseHeader(0x1A, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void NFCService::getModelInfo(u32 messagePointer) { - log("NFC::GetModelInfo\n"); - Helpers::warn("Unimplemented NFC::GetModelInfo"); - - mem.write32(messagePointer, IPC::responseHeader(0x1B, 14, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/nim.cpp b/src/core/services/nim.cpp deleted file mode 100644 index e4e14c1c..00000000 --- a/src/core/services/nim.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "services/nim.hpp" -#include "ipc.hpp" - -namespace NIMCommands { - enum : u32 { - Initialize = 0x00210000 - }; -} - -void NIMService::reset() {} - -void NIMService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case NIMCommands::Initialize: initialize(messagePointer); break; - default: Helpers::panic("NIM service requested. Command: %08X\n", command); - } -} - -void NIMService::initialize(u32 messagePointer) { - log("NIM::Initialize\n"); - mem.write32(messagePointer, IPC::responseHeader(0x21, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/nwm_uds.cpp b/src/core/services/nwm_uds.cpp deleted file mode 100644 index 7752e503..00000000 --- a/src/core/services/nwm_uds.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "ipc.hpp" -#include "kernel.hpp" -#include "result/result.hpp" -#include "services/nwm_uds.hpp" - -namespace NWMCommands { - enum : u32 { - InitializeWithVersion = 0x001B0302, - }; -} - -void NwmUdsService::reset() { - eventHandle = std::nullopt; - initialized = false; -} - -void NwmUdsService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - - switch (command) { - case NWMCommands::InitializeWithVersion: initializeWithVersion(messagePointer); break; - default: Helpers::panic("NWM::UDS service requested. Command: %08X\n", command); - } -} - -void NwmUdsService::initializeWithVersion(u32 messagePointer) { - Helpers::warn("Initializing NWM::UDS (Local multiplayer, unimplemented)\n"); - log("NWM::UDS::InitializeWithVersion\n"); - - if (!eventHandle.has_value()) { - eventHandle = kernel.makeEvent(ResetType::OneShot); - } - - if (initialized) { - printf("NWM::UDS initialized twice\n"); - } - - initialized = true; - - // Stubbed to fail temporarily, since some games will break trying to establish networks otherwise - mem.write32(messagePointer + 4, Result::FailurePlaceholder); - mem.write32(messagePointer + 8, 0); - mem.write32(messagePointer + 12, eventHandle.value()); -} diff --git a/src/core/services/ptm.cpp b/src/core/services/ptm.cpp deleted file mode 100644 index 67451cc2..00000000 --- a/src/core/services/ptm.cpp +++ /dev/null @@ -1,117 +0,0 @@ -#include "services/ptm.hpp" -#include "ipc.hpp" - -namespace PTMCommands { - enum : u32 { - GetAdapterState = 0x00050000, - GetBatteryLevel = 0x00070000, - GetBatteryChargeState = 0x00080000, - GetPedometerState = 0x00090000, - GetStepHistory = 0x000B00C2, - GetTotalStepCount = 0x000C0000, - GetStepHistoryAll = 0x000F0084, - ConfigureNew3DSCPU = 0x08180040, - - // ptm:play functions - GetPlayHistory = 0x08070082, - GetPlayHistoryStart = 0x08080000, - GetPlayHistoryLength = 0x08090000, - CalcPlayHistoryStart = 0x080B0080, - }; -} - -void PTMService::reset() {} - -void PTMService::handleSyncRequest(u32 messagePointer, PTMService::Type type) { - const u32 command = mem.read32(messagePointer); - - // ptm:play functions - switch (command) { - case PTMCommands::ConfigureNew3DSCPU: configureNew3DSCPU(messagePointer); break; - case PTMCommands::GetAdapterState: getAdapterState(messagePointer); break; - case PTMCommands::GetBatteryChargeState: getBatteryChargeState(messagePointer); break; - case PTMCommands::GetBatteryLevel: getBatteryLevel(messagePointer); break; - case PTMCommands::GetPedometerState: getPedometerState(messagePointer); break; - case PTMCommands::GetStepHistory: getStepHistory(messagePointer); break; - case PTMCommands::GetStepHistoryAll: getStepHistoryAll(messagePointer); break; - case PTMCommands::GetTotalStepCount: getTotalStepCount(messagePointer); break; - - default: - // ptm:play-only functions - if (type == Type::PLAY) { - switch (command) { - case PTMCommands::GetPlayHistory: - case PTMCommands::GetPlayHistoryStart: - case PTMCommands::GetPlayHistoryLength: - mem.write32(messagePointer + 4, Result::Success); - mem.write64(messagePointer + 8, 0); - Helpers::warn("Stubbed PTM:PLAY service requested. Command: %08X\n", command); - break; - - default: Helpers::panic("PTM PLAY service requested. Command: %08X\n", command); break; - } - } else { - Helpers::panic("PTM service requested. Command: %08X\n", command); - } - } -} - -void PTMService::getAdapterState(u32 messagePointer) { - log("PTM::GetAdapterState\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x5, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, config.chargerPlugged ? 1 : 0); -} - -void PTMService::getBatteryChargeState(u32 messagePointer) { - log("PTM::GetBatteryChargeState"); - // We're only charging if the battery is not already full - const bool charging = config.chargerPlugged && (config.batteryPercentage < 100); - - mem.write32(messagePointer, IPC::responseHeader(0x8, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, charging ? 1 : 0); -} - -void PTMService::getPedometerState(u32 messagePointer) { - log("PTM::GetPedometerState"); - constexpr bool countingSteps = true; - - mem.write32(messagePointer, IPC::responseHeader(0x9, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, countingSteps ? 1 : 0); -} - -void PTMService::getBatteryLevel(u32 messagePointer) { - log("PTM::GetBatteryLevel"); - - mem.write32(messagePointer, IPC::responseHeader(0x7, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write8(messagePointer + 8, batteryPercentToLevel(config.batteryPercentage)); -} - -void PTMService::getStepHistory(u32 messagePointer) { - log("PTM::GetStepHistory [stubbed]\n"); - mem.write32(messagePointer, IPC::responseHeader(0xB, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void PTMService::getStepHistoryAll(u32 messagePointer) { - log("PTM::GetStepHistoryAll [stubbed]\n"); - mem.write32(messagePointer, IPC::responseHeader(0xF, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} - -void PTMService::getTotalStepCount(u32 messagePointer) { - log("PTM::GetTotalStepCount\n"); - mem.write32(messagePointer, IPC::responseHeader(0xC, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 3); // We walk a lot -} - -void PTMService::configureNew3DSCPU(u32 messagePointer) { - log("PTM::ConfigureNew3DSCPU [stubbed]\n"); - mem.write32(messagePointer, IPC::responseHeader(0x818, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/service_manager.cpp b/src/core/services/service_manager.cpp deleted file mode 100644 index 2a95b5c9..00000000 --- a/src/core/services/service_manager.cpp +++ /dev/null @@ -1,240 +0,0 @@ -#include "services/service_manager.hpp" - -#include - -#include "ipc.hpp" -#include "kernel.hpp" - -ServiceManager::ServiceManager(std::span regs, Memory& mem, GPU& gpu, u32& currentPID, Kernel& kernel, const EmulatorConfig& config) - : regs(regs), mem(mem), kernel(kernel), ac(mem), am(mem), boss(mem), act(mem), apt(mem, kernel), cam(mem, kernel), cecd(mem, kernel), cfg(mem), - csnd(mem, kernel), dlp_srvr(mem), dsp(mem, kernel), hid(mem, kernel), http(mem), ir_user(mem, kernel), frd(mem), fs(mem, kernel, config), - gsp_gpu(mem, gpu, kernel, currentPID), gsp_lcd(mem), ldr(mem, kernel), mcu_hwc(mem, config), mic(mem, kernel), nfc(mem, kernel), nim(mem), ndm(mem), - news_u(mem), nwm_uds(mem, kernel), ptm(mem, config), soc(mem), ssl(mem), y2r(mem, kernel) {} - -static constexpr int MAX_NOTIFICATION_COUNT = 16; - -// Reset every single service -void ServiceManager::reset() { - ac.reset(); - act.reset(); - am.reset(); - apt.reset(); - boss.reset(); - cam.reset(); - cecd.reset(); - cfg.reset(); - csnd.reset(); - dlp_srvr.reset(); - dsp.reset(); - hid.reset(); - http.reset(); - ir_user.reset(); - frd.reset(); - fs.reset(); - gsp_gpu.reset(); - gsp_lcd.reset(); - ldr.reset(); - mcu_hwc.reset(); - mic.reset(); - ndm.reset(); - news_u.reset(); - nfc.reset(); - nim.reset(); - ptm.reset(); - soc.reset(); - ssl.reset(); - y2r.reset(); - - notificationSemaphore = std::nullopt; -} - -// Match IPC messages to a "srv:" command based on their header -namespace Commands { - enum : u32 { - RegisterClient = 0x00010002, - EnableNotification = 0x00020000, - RegisterService = 0x00030100, - UnregisterService = 0x000400C0, - GetServiceHandle = 0x00050100, - RegisterPort = 0x000600C2, - UnregisterPort = 0x000700C0, - GetPort = 0x00080100, - Subscribe = 0x00090040, - Unsubscribe = 0x000A0040, - ReceiveNotification = 0x000B0000, - PublishToSubscriber = 0x000C0080, - PublishAndGetSubscriber = 0x000D0040, - IsServiceRegistered = 0x000E00C0 - }; -} - -// Handle an IPC message issued using the SendSyncRequest SVC -// The parameters are stored in thread-local storage in this format: https://www.3dbrew.org/wiki/IPC#Message_Structure -// messagePointer: The base pointer for the IPC message -void ServiceManager::handleSyncRequest(u32 messagePointer) { - const u32 header = mem.read32(messagePointer); - - switch (header) { - case Commands::EnableNotification: enableNotification(messagePointer); break; - case Commands::ReceiveNotification: receiveNotification(messagePointer); break; - case Commands::RegisterClient: registerClient(messagePointer); break; - case Commands::GetServiceHandle: getServiceHandle(messagePointer); break; - case Commands::Subscribe: subscribe(messagePointer); break; - case Commands::Unsubscribe: unsubscribe(messagePointer); break; - default: Helpers::panic("Unknown \"srv:\" command: %08X", header); - } -} - -// https://www.3dbrew.org/wiki/SRV:RegisterClient -void ServiceManager::registerClient(u32 messagePointer) { - log("srv::registerClient (Stubbed)\n"); - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// clang-format off -static std::map serviceMap = { - { "ac:u", KernelHandles::AC }, - { "act:a", KernelHandles::ACT }, - { "act:u", KernelHandles::ACT }, - { "am:app", KernelHandles::AM }, - { "APT:S", KernelHandles::APT }, // TODO: APT:A, APT:S and APT:U are slightly different - { "APT:A", KernelHandles::APT }, - { "APT:U", KernelHandles::APT }, - { "boss:U", KernelHandles::BOSS }, - { "cam:u", KernelHandles::CAM }, - { "cecd:u", KernelHandles::CECD }, - { "cfg:u", KernelHandles::CFG_U }, - { "cfg:i", KernelHandles::CFG_I }, - { "cfg:s", KernelHandles::CFG_S }, - { "csnd:SND", KernelHandles::CSND }, - { "dlp:SRVR", KernelHandles::DLP_SRVR }, - { "dsp::DSP", KernelHandles::DSP }, - { "hid:USER", KernelHandles::HID }, - { "http:C", KernelHandles::HTTP }, - { "ir:USER", KernelHandles::IR_USER }, - { "frd:a", KernelHandles::FRD_A }, - { "frd:u", KernelHandles::FRD_U }, - { "fs:USER", KernelHandles::FS }, - { "gsp::Gpu", KernelHandles::GPU }, - { "gsp::Lcd", KernelHandles::LCD }, - { "ldr:ro", KernelHandles::LDR_RO }, - { "mcu::HWC", KernelHandles::MCU_HWC }, - { "mic:u", KernelHandles::MIC }, - { "ndm:u", KernelHandles::NDM }, - { "news:u", KernelHandles::NEWS_U }, - { "nfc:u", KernelHandles::NFC }, - { "ns:s", KernelHandles::NS_S }, - { "nwm::UDS", KernelHandles::NWM_UDS }, - { "nim:aoc", KernelHandles::NIM }, - { "ptm:u", KernelHandles::PTM_U }, // TODO: ptm:u and ptm:sysm have very different command sets - { "ptm:sysm", KernelHandles::PTM_SYSM }, - { "ptm:play", KernelHandles::PTM_PLAY }, - { "soc:U", KernelHandles::SOC }, - { "ssl:C", KernelHandles::SSL }, - { "y2r:u", KernelHandles::Y2R }, -}; -// clang-format on - -// https://www.3dbrew.org/wiki/SRV:GetServiceHandle -void ServiceManager::getServiceHandle(u32 messagePointer) { - u32 nameLength = mem.read32(messagePointer + 12); - u32 flags = mem.read32(messagePointer + 16); - u32 handle = 0; - - std::string service = mem.readString(messagePointer + 4, 8); - log("srv::getServiceHandle (Service: %s, nameLength: %d, flags: %d)\n", service.c_str(), nameLength, flags); - - // Look up service handle in map, panic if it does not exist - if (auto search = serviceMap.find(service); search != serviceMap.end()) - handle = search->second; - else - Helpers::panic("srv: GetServiceHandle with unknown service %s", service.c_str()); - - mem.write32(messagePointer, IPC::responseHeader(0x5, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 12, handle); -} - -void ServiceManager::enableNotification(u32 messagePointer) { - log("srv::EnableNotification()\n"); - - // Make a semaphore for notifications if none exists currently - if (!notificationSemaphore.has_value() || kernel.getObject(notificationSemaphore.value(), KernelObjectType::Semaphore) == nullptr) { - notificationSemaphore = kernel.makeSemaphore(0, MAX_NOTIFICATION_COUNT); - } - - mem.write32(messagePointer, IPC::responseHeader(0x2, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); // Result code - mem.write32(messagePointer + 8, 0); // Translation descriptor - // Handle to semaphore signaled on process notification - mem.write32(messagePointer + 12, notificationSemaphore.value()); -} - -void ServiceManager::receiveNotification(u32 messagePointer) { - log("srv::ReceiveNotification() (STUBBED)\n"); - - mem.write32(messagePointer, IPC::responseHeader(0xB, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); // Result code - mem.write32(messagePointer + 8, 0); // Notification ID -} - -void ServiceManager::subscribe(u32 messagePointer) { - u32 id = mem.read32(messagePointer + 4); - log("srv::Subscribe (id = %d) (stubbed)\n", id); - - mem.write32(messagePointer, IPC::responseHeader(0x9, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void ServiceManager::unsubscribe(u32 messagePointer) { - u32 id = mem.read32(messagePointer + 4); - log("srv::Unsubscribe (id = %d) (stubbed)\n", id); - - mem.write32(messagePointer, IPC::responseHeader(0xA, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void ServiceManager::sendCommandToService(u32 messagePointer, Handle handle) { - switch (handle) { - // Breaking alphabetical order a bit to place the ones I think are most common at the top - case KernelHandles::GPU: [[likely]] gsp_gpu.handleSyncRequest(messagePointer); break; - case KernelHandles::FS: [[likely]] fs.handleSyncRequest(messagePointer); break; - case KernelHandles::APT: [[likely]] apt.handleSyncRequest(messagePointer); break; - case KernelHandles::DSP: [[likely]] dsp.handleSyncRequest(messagePointer); break; - - case KernelHandles::AC: ac.handleSyncRequest(messagePointer); break; - case KernelHandles::ACT: act.handleSyncRequest(messagePointer); break; - case KernelHandles::AM: am.handleSyncRequest(messagePointer); break; - case KernelHandles::BOSS: boss.handleSyncRequest(messagePointer); break; - case KernelHandles::CAM: cam.handleSyncRequest(messagePointer); break; - case KernelHandles::CECD: cecd.handleSyncRequest(messagePointer); break; - case KernelHandles::CFG_U: cfg.handleSyncRequest(messagePointer, CFGService::Type::U); break; - case KernelHandles::CFG_I: cfg.handleSyncRequest(messagePointer, CFGService::Type::I); break; - case KernelHandles::CFG_S: cfg.handleSyncRequest(messagePointer, CFGService::Type::S); break; - case KernelHandles::CSND: csnd.handleSyncRequest(messagePointer); break; - case KernelHandles::DLP_SRVR: dlp_srvr.handleSyncRequest(messagePointer); break; - case KernelHandles::HID: hid.handleSyncRequest(messagePointer); break; - case KernelHandles::HTTP: http.handleSyncRequest(messagePointer); break; - case KernelHandles::IR_USER: ir_user.handleSyncRequest(messagePointer); break; - case KernelHandles::FRD_A: frd.handleSyncRequest(messagePointer, FRDService::Type::A); break; - case KernelHandles::FRD_U: frd.handleSyncRequest(messagePointer, FRDService::Type::U); break; - case KernelHandles::LCD: gsp_lcd.handleSyncRequest(messagePointer); break; - case KernelHandles::LDR_RO: ldr.handleSyncRequest(messagePointer); break; - case KernelHandles::MCU_HWC: mcu_hwc.handleSyncRequest(messagePointer); break; - case KernelHandles::MIC: mic.handleSyncRequest(messagePointer); break; - case KernelHandles::NFC: nfc.handleSyncRequest(messagePointer); break; - case KernelHandles::NIM: nim.handleSyncRequest(messagePointer); break; - case KernelHandles::NDM: ndm.handleSyncRequest(messagePointer); break; - case KernelHandles::NEWS_U: news_u.handleSyncRequest(messagePointer); break; - case KernelHandles::NS_S: Helpers::panic("Unimplemented SendSyncRequest to ns:s"); break; - case KernelHandles::NWM_UDS: nwm_uds.handleSyncRequest(messagePointer); break; - case KernelHandles::PTM_PLAY: ptm.handleSyncRequest(messagePointer, PTMService::Type::PLAY); break; - case KernelHandles::PTM_SYSM: ptm.handleSyncRequest(messagePointer, PTMService::Type::SYSM); break; - case KernelHandles::PTM_U: ptm.handleSyncRequest(messagePointer, PTMService::Type::U); break; - case KernelHandles::SOC: soc.handleSyncRequest(messagePointer); break; - case KernelHandles::SSL: ssl.handleSyncRequest(messagePointer); break; - case KernelHandles::Y2R: y2r.handleSyncRequest(messagePointer); break; - default: Helpers::panic("Sent IPC message to unknown service %08X\n Command: %08X", handle, mem.read32(messagePointer)); - } -} \ No newline at end of file diff --git a/src/core/services/soc.cpp b/src/core/services/soc.cpp deleted file mode 100644 index 4ad546b0..00000000 --- a/src/core/services/soc.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "services/soc.hpp" - -#include "ipc.hpp" -#include "result/result.hpp" - -namespace SOCCommands { - enum : u32 { - InitializeSockets = 0x00010044, - }; -} - -void SOCService::reset() { initialized = false; } - -void SOCService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case SOCCommands::InitializeSockets: initializeSockets(messagePointer); break; - default: Helpers::panic("SOC service requested. Command: %08X\n", command); - } -} - -void SOCService::initializeSockets(u32 messagePointer) { - const u32 memoryBlockSize = mem.read32(messagePointer + 4); - const Handle sharedMemHandle = mem.read32(messagePointer + 20); - log("SOC::InitializeSockets (memory block size = %08X, shared mem handle = %08X)\n", memoryBlockSize, sharedMemHandle); - - // TODO: Does double initialization return an error code? - // TODO: Implement the rest of this stuff when it's time to do online. Also implement error checking for the size, shared mem handle, and so on - initialized = true; - - mem.write32(messagePointer, IPC::responseHeader(0x01, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/ssl.cpp b/src/core/services/ssl.cpp deleted file mode 100644 index 47815188..00000000 --- a/src/core/services/ssl.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "ipc.hpp" -#include "result/result.hpp" -#include "services/ssl.hpp" - -namespace SSLCommands { - enum : u32 { - Initialize = 0x00010002, - GenerateRandomData = 0x00110042, - }; -} - -void SSLService::reset() { - initialized = false; - - // Use the default seed on reset to avoid funny bugs - rng.seed(); -} - -void SSLService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case SSLCommands::Initialize: initialize(messagePointer); break; - case SSLCommands::GenerateRandomData: generateRandomData(messagePointer); break; - default: Helpers::panic("SSL service requested. Command: %08X\n", command); - } -} - -void SSLService::initialize(u32 messagePointer) { - log("SSL::Initialize\n"); - mem.write32(messagePointer, IPC::responseHeader(0x01, 1, 0)); - - if (initialized) { - Helpers::warn("SSL service initialized twice"); - } - - initialized = true; - rng.seed(std::random_device()()); // Seed rng via std::random_device - - mem.write32(messagePointer + 4, Result::Success); -} - -void SSLService::generateRandomData(u32 messagePointer) { - const u32 size = mem.read32(messagePointer + 4); - const u32 output = mem.read32(messagePointer + 12); - log("SSL::GenerateRandomData (out = %08X, size = %08X)\n", output, size); - - // TODO: This might be a biiit slow, might want to make it write in word quantities - u32 data; - - for (u32 i = 0; i < size; i++) { - // We don't have an available random value since we're on a multiple of 4 bytes and our Twister is 32-bit, generate a new one from the Mersenne Twister - if ((i & 3) == 0) { - data = rng(); - } - - mem.write8(output + i, u8(data)); - // Shift data by 8 to get the next byte - data >>= 8; - } - - mem.write32(messagePointer, IPC::responseHeader(0x11, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); -} \ No newline at end of file diff --git a/src/core/services/y2r.cpp b/src/core/services/y2r.cpp deleted file mode 100644 index a796631c..00000000 --- a/src/core/services/y2r.cpp +++ /dev/null @@ -1,487 +0,0 @@ -#include "services/y2r.hpp" - -#include "ipc.hpp" -#include "kernel.hpp" - -namespace Y2RCommands { - enum : u32 { - SetInputFormat = 0x00010040, - SetOutputFormat = 0x00030040, - GetOutputFormat = 0x00040000, - SetRotation = 0x00050040, - SetBlockAlignment = 0x00070040, - GetBlockAlignment = 0x00080000, - SetSpacialDithering = 0x00090040, - SetTemporalDithering = 0x000B0040, - SetTransferEndInterrupt = 0x000D0040, - GetTransferEndEvent = 0x000F0000, - SetSendingY = 0x00100102, - SetSendingU = 0x00110102, - SetSendingV = 0x00120102, - SetSendingYUV = 0x00130102, - IsFinishedSendingYUV = 0x00140000, - IsFinishedSendingY = 0x00150000, - IsFinishedSendingU = 0x00160000, - IsFinishedSendingV = 0x00170000, - SetReceiving = 0x00180102, - IsFinishedReceiving = 0x00190000, - SetInputLineWidth = 0x001A0040, - GetInputLineWidth = 0x001B0000, - SetInputLines = 0x001C0040, - GetInputLines = 0x001D0000, - SetCoefficientParams = 0x001E0100, - GetCoefficientParams = 0x001F0000, - SetStandardCoeff = 0x00200040, - GetStandardCoefficientParams = 0x00210040, - SetAlpha = 0x00220040, - StartConversion = 0x00260000, - StopConversion = 0x00270000, - IsBusyConversion = 0x00280000, - SetPackageParameter = 0x002901C0, - PingProcess = 0x002A0000, - DriverInitialize = 0x002B0000, - DriverFinalize = 0x002C0000, - }; -} - -void Y2RService::reset() { - transferEndInterruptEnabled = false; - transferEndEvent = std::nullopt; - - alignment = BlockAlignment::Line; - inputFmt = InputFormat::YUV422_Individual8; - outputFmt = OutputFormat::RGB32; - rotation = Rotation::None; - - spacialDithering = false; - temporalDithering = false; - - alpha = 0xFFFF; - inputLines = 69; - inputLineWidth = 420; - - conversionCoefficients.fill(0); -} - -void Y2RService::handleSyncRequest(u32 messagePointer) { - const u32 command = mem.read32(messagePointer); - switch (command) { - case Y2RCommands::DriverInitialize: driverInitialize(messagePointer); break; - case Y2RCommands::DriverFinalize: driverFinalize(messagePointer); break; - case Y2RCommands::GetBlockAlignment: getBlockAlignment(messagePointer); break; - case Y2RCommands::GetInputLines: getInputLines(messagePointer); break; - case Y2RCommands::GetInputLineWidth: getInputLineWidth(messagePointer); break; - case Y2RCommands::GetOutputFormat: getOutputFormat(messagePointer); break; - case Y2RCommands::GetTransferEndEvent: getTransferEndEvent(messagePointer); break; - case Y2RCommands::GetStandardCoefficientParams: getStandardCoefficientParams(messagePointer); break; - case Y2RCommands::IsBusyConversion: isBusyConversion(messagePointer); break; - case Y2RCommands::IsFinishedReceiving: isFinishedReceiving(messagePointer); break; - case Y2RCommands::IsFinishedSendingY: isFinishedSendingY(messagePointer); break; - case Y2RCommands::IsFinishedSendingU: isFinishedSendingU(messagePointer); break; - case Y2RCommands::IsFinishedSendingV: isFinishedSendingV(messagePointer); break; - case Y2RCommands::IsFinishedSendingYUV: isFinishedSendingYUV(messagePointer); break; - case Y2RCommands::PingProcess: pingProcess(messagePointer); break; - case Y2RCommands::SetAlpha: setAlpha(messagePointer); break; - case Y2RCommands::SetBlockAlignment: setBlockAlignment(messagePointer); break; - case Y2RCommands::SetInputFormat: setInputFormat(messagePointer); break; - case Y2RCommands::SetInputLineWidth: setInputLineWidth(messagePointer); break; - case Y2RCommands::SetInputLines: setInputLines(messagePointer); break; - case Y2RCommands::SetOutputFormat: setOutputFormat(messagePointer); break; - case Y2RCommands::SetPackageParameter: setPackageParameter(messagePointer); break; - case Y2RCommands::SetReceiving: setReceiving(messagePointer); break; - case Y2RCommands::SetRotation: setRotation(messagePointer); break; - case Y2RCommands::SetSendingY: setSendingY(messagePointer); break; - case Y2RCommands::SetSendingU: setSendingU(messagePointer); break; - case Y2RCommands::SetSendingV: setSendingV(messagePointer); break; - case Y2RCommands::SetSendingYUV: setSendingYUV(messagePointer); break; - case Y2RCommands::SetSpacialDithering: setSpacialDithering(messagePointer); break; - case Y2RCommands::SetStandardCoeff: setStandardCoeff(messagePointer); break; - case Y2RCommands::SetTemporalDithering: setTemporalDithering(messagePointer); break; - case Y2RCommands::SetTransferEndInterrupt: setTransferEndInterrupt(messagePointer); break; - case Y2RCommands::StartConversion: [[likely]] startConversion(messagePointer); break; - case Y2RCommands::StopConversion: stopConversion(messagePointer); break; - - // Intentionally break ordering a bit for less-used Y2R functions - case Y2RCommands::SetCoefficientParams: setCoefficientParams(messagePointer); break; - case Y2RCommands::GetCoefficientParams: getCoefficientParams(messagePointer); break; - default: Helpers::panic("Y2R service requested. Command: %08X\n", command); - } -} - -void Y2RService::pingProcess(u32 messagePointer) { - log("Y2R::PingProcess\n"); - mem.write32(messagePointer, IPC::responseHeader(0x2A, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, 0); // Connected number -} - -void Y2RService::driverInitialize(u32 messagePointer) { - log("Y2R::DriverInitialize\n"); - mem.write32(messagePointer, IPC::responseHeader(0x2B, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - - conversionCoefficients.fill(0); -} - -void Y2RService::driverFinalize(u32 messagePointer) { - log("Y2R::DriverInitialize\n"); - mem.write32(messagePointer, IPC::responseHeader(0x2C, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::getTransferEndEvent(u32 messagePointer) { - log("Y2R::GetTransferEndEvent\n"); - if (!transferEndEvent.has_value()) { - transferEndEvent = kernel.makeEvent(ResetType::OneShot); - } - - mem.write32(messagePointer, IPC::responseHeader(0xF, 1, 2)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 12, transferEndEvent.value()); -} - -void Y2RService::setTransferEndInterrupt(u32 messagePointer) { - const bool enable = mem.read32(messagePointer + 4) != 0; - log("Y2R::SetTransferEndInterrupt (enabled: %s)\n", enable ? "yes" : "no"); - - mem.write32(messagePointer, IPC::responseHeader(0xD, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - transferEndInterruptEnabled = enable; -} - -// We don't need to actually do anything for this. -// Cause it assumes that -// a) Y2R conversion works -// b) It isn't instant -void Y2RService::stopConversion(u32 messagePointer) { - log("Y2R::StopConversion\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x27, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -// See above. Our Y2R conversion (when implemented) will be instant because there's really no point trying to delay it -// This is a modern enough console for us to screw timings -void Y2RService::isBusyConversion(u32 messagePointer) { - log("Y2R::IsBusyConversion\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x28, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, static_cast(BusyStatus::NotBusy)); -} - -void Y2RService::setBlockAlignment(u32 messagePointer) { - const u32 newAlignment = mem.read32(messagePointer + 4); - log("Y2R::SetBlockAlignment (format = %d)\n", newAlignment); - - if (newAlignment > 1) { - Helpers::warn("Warning: Invalid block alignment for Y2R conversion\n"); - } else { - alignment = static_cast(newAlignment); - } - - mem.write32(messagePointer, IPC::responseHeader(0x7, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::getBlockAlignment(u32 messagePointer) { - log("Y2R::GetBlockAlignment\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x8, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, static_cast(alignment)); -} - -void Y2RService::setInputFormat(u32 messagePointer) { - const u32 format = mem.read32(messagePointer + 4); - log("Y2R::SetInputFormat (format = %d)\n", format); - - if (format > 4) { - Helpers::warn("Warning: Invalid input format for Y2R conversion\n"); - } else { - inputFmt = static_cast(format); - } - - mem.write32(messagePointer, IPC::responseHeader(0x1, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setOutputFormat(u32 messagePointer) { - const u32 format = mem.read32(messagePointer + 4); - log("Y2R::SetOutputFormat (format = %d)\n", format); - - if (format > 3) { - Helpers::warn("Warning: Invalid output format for Y2R conversion\n"); - } else { - outputFmt = static_cast(format); - } - - mem.write32(messagePointer, IPC::responseHeader(0x3, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::getOutputFormat(u32 messagePointer) { - log("Y2R::GetOutputFormat\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x4, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, static_cast(outputFmt)); -} - -void Y2RService::setPackageParameter(u32 messagePointer) { - // Package parameter is 3 words - const u32 word1 = mem.read32(messagePointer + 4); - const u32 word2 = mem.read32(messagePointer + 8); - const u32 word3 = mem.read32(messagePointer + 12); - Helpers::warn("Y2R::SetPackageParameter\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x29, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setRotation(u32 messagePointer) { - const u32 rot = mem.read32(messagePointer + 4); - log("Y2R::SetRotation (format = %d)\n", rot); - - if (rot > 3) { - Helpers::warn("Warning: Invalid rotation for Y2R conversion\n"); - } else { - rotation = static_cast(rot); - } - - mem.write32(messagePointer, IPC::responseHeader(0x5, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setAlpha(u32 messagePointer) { - alpha = mem.read16(messagePointer + 4); - log("Y2R::SetAlpha (value = %04X)\n", alpha); - - mem.write32(messagePointer, IPC::responseHeader(0x22, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setSpacialDithering(u32 messagePointer) { - const bool enable = mem.read32(messagePointer + 4) != 0; - log("Y2R::SetSpacialDithering (enable = %d)\n", enable); - - spacialDithering = enable; - mem.write32(messagePointer, IPC::responseHeader(0x9, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setTemporalDithering(u32 messagePointer) { - const bool enable = mem.read32(messagePointer + 4) != 0; - log("Y2R::SetTemporalDithering (enable = %d)\n", enable); - - temporalDithering = enable; - mem.write32(messagePointer, IPC::responseHeader(0xB, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setInputLineWidth(u32 messagePointer) { - const u16 width = mem.read16(messagePointer + 4); - log("Y2R::SetInputLineWidth (width = %d)\n", width); - - mem.write32(messagePointer, IPC::responseHeader(0x1A, 1, 0)); - // Width must be > 0, <= 1024 and must be aligned to 8 pixels - if (width == 0 || width > 1024 || (width & 7) != 0) { - Helpers::panic("Y2R: Invalid input line width"); - } else { - inputLineWidth = width; - mem.write32(messagePointer + 4, Result::Success); - } -} - -void Y2RService::getInputLineWidth(u32 messagePointer) { - log("Y2R::GetInputLineWidth\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x1B, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, inputLineWidth); -} - -void Y2RService::setInputLines(u32 messagePointer) { - const u16 lines = mem.read16(messagePointer + 4); - log("Y2R::SetInputLines (lines = %d)\n", lines); - mem.write32(messagePointer, IPC::responseHeader(0x1C, 1, 0)); - - // Width must be > 0, <= 1024 and must be aligned to 8 pixels - if (lines == 0 || lines > 1024) { - Helpers::panic("Y2R: Invalid input line count"); - } else { - // According to Citra, the Y2R module seems to accidentally skip setting the line # if it's 1024 - if (lines != 1024) { - inputLines = lines; - } - mem.write32(messagePointer + 4, Result::Success); - } -} - -void Y2RService::getInputLines(u32 messagePointer) { - log("Y2R::GetInputLines\n"); - - mem.write32(messagePointer, IPC::responseHeader(0x1D, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, inputLines); -} - -void Y2RService::setStandardCoeff(u32 messagePointer) { - const u32 coeff = mem.read32(messagePointer + 4); - log("Y2R::SetStandardCoeff (coefficient = %d)\n", coeff); - mem.write32(messagePointer, IPC::responseHeader(0x20, 1, 0)); - - if (coeff > 3) { // Invalid coefficient, should have an error code - Helpers::panic("Y2R: Invalid standard coefficient (coefficient = %d)\n", coeff); - } - - else { - Helpers::warn("Unimplemented: Y2R standard coefficient"); - mem.write32(messagePointer + 4, Result::Success); - } -} - -void Y2RService::getStandardCoefficientParams(u32 messagePointer) { - const u32 coefficientIndex = mem.read32(messagePointer + 4); - log("Y2R::GetStandardCoefficientParams (coefficient = %d)\n", coefficientIndex); - - if (coefficientIndex > 3) { // Invalid coefficient, should have an error code - Helpers::panic("Y2R: Invalid standard coefficient (coefficient = %d)\n", coefficientIndex); - } else { - mem.write32(messagePointer, IPC::responseHeader(0x21, 5, 0)); - mem.write32(messagePointer + 4, Result::Success); - const auto& coeff = standardCoefficients[coefficientIndex]; - - // Write standard coefficient parameters to output buffer - for (int i = 0; i < 8; i++) { - const u32 pointer = messagePointer + 8 + i * sizeof(u16); // Pointer to write parameter to - mem.write16(pointer, coeff[i]); - } - } -} - -void Y2RService::setCoefficientParams(u32 messagePointer) { - log("Y2R::SetCoefficientParams\n"); - auto& coeff = conversionCoefficients; - - // Write coefficient parameters to output buffer - for (int i = 0; i < 8; i++) { - const u32 pointer = messagePointer + 4 + i * sizeof(u16); // Pointer to write parameter to - coeff[i] = mem.read16(pointer); - } - - mem.write32(messagePointer, IPC::responseHeader(0x1E, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::getCoefficientParams(u32 messagePointer) { - log("Y2R::GetCoefficientParams\n"); - mem.write32(messagePointer, IPC::responseHeader(0x1F, 5, 0)); - mem.write32(messagePointer + 4, Result::Success); - const auto& coeff = conversionCoefficients; - - // Write coefficient parameters to output buffer - for (int i = 0; i < 8; i++) { - const u32 pointer = messagePointer + 8 + i * sizeof(u16); // Pointer to write parameter to - mem.write16(pointer, coeff[i]); - } -} - -void Y2RService::setSendingY(u32 messagePointer) { - log("Y2R::SetSendingY\n"); - Helpers::warn("Unimplemented Y2R::SetSendingY"); - - mem.write32(messagePointer, IPC::responseHeader(0x10, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setSendingU(u32 messagePointer) { - log("Y2R::SetSendingU\n"); - Helpers::warn("Unimplemented Y2R::SetSendingU"); - - mem.write32(messagePointer, IPC::responseHeader(0x11, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setSendingV(u32 messagePointer) { - log("Y2R::SetSendingV\n"); - Helpers::warn("Unimplemented Y2R::SetSendingV"); - - mem.write32(messagePointer, IPC::responseHeader(0x12, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setSendingYUV(u32 messagePointer) { - log("Y2R::SetSendingYUV\n"); - Helpers::warn("Unimplemented Y2R::SetSendingYUV"); - - mem.write32(messagePointer, IPC::responseHeader(0x13, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::setReceiving(u32 messagePointer) { - log("Y2R::SetReceiving\n"); - Helpers::warn("Unimplemented Y2R::setReceiving"); - - mem.write32(messagePointer, IPC::responseHeader(0x18, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); -} - -void Y2RService::startConversion(u32 messagePointer) { - log("Y2R::StartConversion\n"); - - // TODO: Actually launch conversion here - mem.write32(messagePointer, IPC::responseHeader(0x26, 1, 0)); - mem.write32(messagePointer + 4, Result::Success); - - // Make Y2R conversion end instantly. - // Signal the transfer end event if it's been created. TODO: Is this affected by SetTransferEndInterrupt? - if (transferEndEvent.has_value()) { - kernel.signalEvent(transferEndEvent.value()); - } -} - -void Y2RService::isFinishedSendingYUV(u32 messagePointer) { - log("Y2R::IsFinishedSendingYUV"); - constexpr bool finished = true; // For now, Y2R transfers are instant - - mem.write32(messagePointer, IPC::responseHeader(0x14, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, finished ? 1 : 0); -} - -void Y2RService::isFinishedSendingY(u32 messagePointer) { - log("Y2R::IsFinishedSendingY"); - constexpr bool finished = true; - - mem.write32(messagePointer, IPC::responseHeader(0x15, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, finished ? 1 : 0); -} - -void Y2RService::isFinishedSendingU(u32 messagePointer) { - log("Y2R::IsFinishedSendingU"); - constexpr bool finished = true; - - mem.write32(messagePointer, IPC::responseHeader(0x16, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, finished ? 1 : 0); -} - -void Y2RService::isFinishedSendingV(u32 messagePointer) { - log("Y2R::IsFinishedSendingV"); - constexpr bool finished = true; - - mem.write32(messagePointer, IPC::responseHeader(0x17, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, finished ? 1 : 0); -} - -void Y2RService::isFinishedReceiving(u32 messagePointer) { - log("Y2R::IsFinishedSendingReceiving"); - constexpr bool finished = true; // For now, receiving components is also instant - - mem.write32(messagePointer, IPC::responseHeader(0x17, 2, 0)); - mem.write32(messagePointer + 4, Result::Success); - mem.write32(messagePointer + 8, finished ? 1 : 0); -} \ No newline at end of file diff --git a/src/discord_rpc.cpp b/src/discord_rpc.cpp deleted file mode 100644 index 018b1dcf..00000000 --- a/src/discord_rpc.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifdef PANDA3DS_ENABLE_DISCORD_RPC - -#include "discord_rpc.hpp" - -#include -#include - -void Discord::RPC::init() { - DiscordEventHandlers handlers{}; - Discord_Initialize("1138176975865909360", &handlers, 1, nullptr); - - startTimestamp = time(nullptr); - enabled = true; -} - -void Discord::RPC::update(Discord::RPCStatus status, const std::string& game) { - DiscordRichPresence rpc{}; - - if (status == Discord::RPCStatus::Playing) { - rpc.details = "Playing a game"; - rpc.state = game.c_str(); - } else { - rpc.details = "Idle"; - } - - rpc.largeImageKey = "pand"; - rpc.largeImageText = "Panda3DS is a 3DS emulator for Windows, MacOS and Linux"; - rpc.startTimestamp = startTimestamp; - - Discord_UpdatePresence(&rpc); -} - -void Discord::RPC::stop() { - if (enabled) { - enabled = false; - Discord_ClearPresence(); - Discord_Shutdown(); - } -} - -#endif \ No newline at end of file diff --git a/src/emulator.cpp b/src/emulator.cpp deleted file mode 100644 index a02ead48..00000000 --- a/src/emulator.cpp +++ /dev/null @@ -1,416 +0,0 @@ -#include "emulator.hpp" - -#ifndef __ANDROID__ -#include -#endif - -#include - -#ifdef _WIN32 -#include - -// Gently ask to use the discrete Nvidia/AMD GPU if possible instead of integrated graphics -extern "C" { -__declspec(dllexport) DWORD NvOptimusEnablement = 1; -__declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 1; -} -#endif - -Emulator::Emulator() - : config(getConfigPath()), kernel(cpu, memory, gpu, config), cpu(memory, kernel, *this), gpu(memory, config), memory(cpu.getTicksRef(), config), - cheats(memory, kernel.getServiceManager().getHID()), lua(*this), running(false), programRunning(false) -#ifdef PANDA3DS_ENABLE_HTTP_SERVER - , - httpServer(this) -#endif -{ - DSPService& dspService = kernel.getServiceManager().getDSP(); - - dsp = Audio::makeDSPCore(config.dspType, memory, scheduler, dspService); - dspService.setDSPCore(dsp.get()); - - audioDevice.init(dsp->getSamples()); - setAudioEnabled(config.audioEnabled); - -#ifdef PANDA3DS_ENABLE_DISCORD_RPC - if (config.discordRpcEnabled) { - discordRpc.init(); - updateDiscord(); - } -#endif - reset(ReloadOption::NoReload); -} - -Emulator::~Emulator() { - config.save(); - lua.close(); - -#ifdef PANDA3DS_ENABLE_DISCORD_RPC - discordRpc.stop(); -#endif -} - -void Emulator::reset(ReloadOption reload) { - cpu.reset(); - gpu.reset(); - memory.reset(); - dsp->reset(); - - // Reset scheduler and add a VBlank event - scheduler.reset(); - - // Kernel must be reset last because it depends on CPU/Memory state - kernel.reset(); - - // Reloading r13 and r15 needs to happen after everything has been reset - // Otherwise resetting the kernel or cpu might nuke them - cpu.setReg(13, VirtualAddrs::StackTop); // Set initial SP - - // We're resetting without reloading the ROM, so yeet cheats - if (reload == ReloadOption::NoReload) { - cheats.reset(); - } - - // If a ROM is active and we reset, with the reload option enabled then reload it. - // This is necessary to set up stack, executable memory, .data/.rodata/.bss all over again - if (reload == ReloadOption::Reload && romType != ROMType::None && romPath.has_value()) { - bool success = loadROM(romPath.value()); - if (!success) { - romType = ROMType::None; - romPath = std::nullopt; - - Helpers::panic("Failed to reload ROM. This should pause the emulator in the future GUI"); - } - } -} - -std::filesystem::path Emulator::getAndroidAppPath() { - // SDL_GetPrefPath fails to get the path due to no JNI environment - std::ifstream cmdline("/proc/self/cmdline"); - std::string applicationName; - std::getline(cmdline, applicationName, '\0'); - - return std::filesystem::path("/data") / "data" / applicationName / "files"; -} - -std::filesystem::path Emulator::getConfigPath() { - if constexpr (Helpers::isAndroid()) { - return getAndroidAppPath() / "config.toml"; - } else { - return std::filesystem::current_path() / "config.toml"; - } -} - -void Emulator::step() {} -void Emulator::render() {} - -// Only resume if a ROM is properly loaded -void Emulator::resume() { - running = (romType != ROMType::None); - - if (running && config.audioEnabled) { - audioDevice.start(); - } -} - -void Emulator::pause() { - running = false; - audioDevice.stop(); -} - -void Emulator::togglePause() { running ? pause() : resume(); } - -void Emulator::runFrame() { - if (running) { - cpu.runFrame(); // Run 1 frame of instructions - gpu.display(); // Display graphics - - // Run cheats if any are loaded - if (cheats.haveCheats()) [[unlikely]] { - cheats.run(); - } - } else if (romType != ROMType::None) { - // If the emulator is not running and a game is loaded, we still want to display the framebuffer otherwise we will get weird - // double-buffering issues - gpu.display(); - } -} - -void Emulator::pollScheduler() { - auto& events = scheduler.events; - - // Pop events until there's none pending anymore - while (scheduler.currentTimestamp >= scheduler.nextTimestamp) { - // Read event timestamp and type, pop it from the scheduler and handle it - auto [time, eventType] = std::move(*events.begin()); - events.erase(events.begin()); - - scheduler.updateNextTimestamp(); - - switch (eventType) { - case Scheduler::EventType::VBlank: [[likely]] { - // Signal that we've reached the end of a frame - frameDone = true; - lua.signalEvent(LuaEvent::Frame); - - // Send VBlank interrupts - ServiceManager& srv = kernel.getServiceManager(); - srv.sendGPUInterrupt(GPUInterrupt::VBlank0); - srv.sendGPUInterrupt(GPUInterrupt::VBlank1); - - // Queue next VBlank event - scheduler.addEvent(Scheduler::EventType::VBlank, time + CPU::ticksPerSec / 60); - break; - } - - case Scheduler::EventType::UpdateTimers: kernel.pollTimers(); break; - case Scheduler::EventType::RunDSP: { - dsp->runAudioFrame(); - break; - } - - default: { - Helpers::panic("Scheduler: Unimplemented event type received: %d\n", static_cast(eventType)); - break; - } - } - } -} - -// Get path for saving files (AppData on Windows, /home/user/.local/share/ApplicationName on Linux, etc) -// Inside that path, we be use a game-specific folder as well. Eg if we were loading a ROM called PenguinDemo.3ds, the savedata would be in -// %APPDATA%/Alber/PenguinDemo/SaveData on Windows, and so on. We do this because games save data in their own filesystem on the cart. -// If the portable build setting is enabled, then those saves go in the executable directory instead -std::filesystem::path Emulator::getAppDataRoot() { - std::filesystem::path appDataPath; - -#ifdef __ANDROID__ - appDataPath = getAndroidAppPath(); -#else - char* appData; - if (!config.usePortableBuild) { - appData = SDL_GetPrefPath(nullptr, "Alber"); - appDataPath = std::filesystem::path(appData); - } else { - appData = SDL_GetBasePath(); - appDataPath = std::filesystem::path(appData) / "Emulator Files"; - } - SDL_free(appData); -#endif - - return appDataPath; -} - -bool Emulator::loadROM(const std::filesystem::path& path) { - // Reset the emulator if we've already loaded a ROM - if (romType != ROMType::None) { - reset(ReloadOption::NoReload); - } - - // Reset whatever state needs to be reset before loading a new ROM - memory.loadedCXI = std::nullopt; - memory.loaded3DSX = std::nullopt; - - const std::filesystem::path appDataPath = getAppDataRoot(); - const std::filesystem::path dataPath = appDataPath / path.filename().stem(); - const std::filesystem::path aesKeysPath = appDataPath / "sysdata" / "aes_keys.txt"; - IOFile::setAppDataDir(dataPath); - - // Open the text file containing our AES keys if it exists. We use the std::filesystem::exists overload that takes an error code param to - // avoid the call throwing exceptions - std::error_code ec; - if (std::filesystem::exists(aesKeysPath, ec) && !ec) { - aesEngine.loadKeys(aesKeysPath); - } - - kernel.initializeFS(); - auto extension = path.extension(); - bool success; // Tracks if we loaded the ROM successfully - - if (extension == ".elf" || extension == ".axf") - success = loadELF(path); - else if (extension == ".3ds" || extension == ".cci") - success = loadNCSD(path, ROMType::NCSD); - else if (extension == ".cxi" || extension == ".app") - success = loadNCSD(path, ROMType::CXI); - else if (extension == ".3dsx") - success = load3DSX(path); - else { - printf("Unknown file type\n"); - success = false; - } - - if (success) { - romPath = path; -#ifdef PANDA3DS_ENABLE_DISCORD_RPC - updateDiscord(); -#endif - } else { - romPath = std::nullopt; - romType = ROMType::None; - } - - resume(); // Start the emulator - return success; -} - -bool Emulator::loadAmiibo(const std::filesystem::path& path) { - NFCService& nfc = kernel.getServiceManager().getNFC(); - return nfc.loadAmiibo(path); -} - -// Used for loading both CXI and NCSD files since they are both so similar and use the same interface -// (We promote CXI files to NCSD internally for ease) -bool Emulator::loadNCSD(const std::filesystem::path& path, ROMType type) { - romType = type; - std::optional opt = (type == ROMType::NCSD) ? memory.loadNCSD(aesEngine, path) : memory.loadCXI(aesEngine, path); - - if (!opt.has_value()) { - return false; - } - - loadedNCSD = opt.value(); - cpu.setReg(15, loadedNCSD.entrypoint); - - if (loadedNCSD.entrypoint & 1) { - Helpers::panic("Misaligned NCSD entrypoint; should this start the CPU in Thumb mode?"); - } - - return true; -} - -bool Emulator::load3DSX(const std::filesystem::path& path) { - std::optional entrypoint = memory.load3DSX(path); - romType = ROMType::HB_3DSX; - - if (!entrypoint.has_value()) { - return false; - } - - cpu.setReg(15, entrypoint.value()); // Set initial PC - - return true; -} - -bool Emulator::loadELF(const std::filesystem::path& path) { - loadedELF.open(path, std::ios_base::binary); // Open ROM in binary mode - romType = ROMType::ELF; - - return loadELF(loadedELF); -} - -bool Emulator::loadELF(std::ifstream& file) { - // Rewind ifstream - loadedELF.clear(); - loadedELF.seekg(0); - - std::optional entrypoint = memory.loadELF(loadedELF); - if (!entrypoint.has_value()) { - return false; - } - - cpu.setReg(15, entrypoint.value()); // Set initial PC - if (entrypoint.value() & 1) { - Helpers::panic("Misaligned ELF entrypoint. TODO: Check if ELFs can boot in thumb mode"); - } - - return true; -} - -std::span Emulator::getSMDH() { - switch (romType) { - case ROMType::NCSD: - case ROMType::CXI: - return memory.getCXI()->smdh; - default: { - return std::span(); - } - } -} - -#ifdef PANDA3DS_ENABLE_DISCORD_RPC -void Emulator::updateDiscord() { - if (config.discordRpcEnabled) { - if (romType != ROMType::None) { - const auto name = romPath.value().stem(); - discordRpc.update(Discord::RPCStatus::Playing, name.string()); - } else { - discordRpc.update(Discord::RPCStatus::Idling, ""); - } - } -} -#else -void Emulator::updateDiscord() {} -#endif - -static void dumpRomFSNode(const RomFS::RomFSNode& node, const char* romFSBase, const std::filesystem::path& path) { - for (auto& file : node.files) { - const auto p = path / file->name; - std::ofstream outFile(p); - - outFile.write(romFSBase + file->dataOffset, file->dataSize); - } - - for (auto& directory : node.directories) { - const auto newPath = path / directory->name; - - // Create the directory for the new folder - std::error_code ec; - std::filesystem::create_directories(newPath, ec); - - if (!ec) { - dumpRomFSNode(*directory, romFSBase, newPath); - } - } -} - -RomFS::DumpingResult Emulator::dumpRomFS(const std::filesystem::path& path) { - using namespace RomFS; - - if (romType != ROMType::NCSD && romType != ROMType::CXI && romType != ROMType::HB_3DSX) { - return DumpingResult::InvalidFormat; - } - - // Contents of RomFS as raw bytes - std::vector romFS; - u64 size; - - if (romType == ROMType::HB_3DSX) { - auto hb3dsx = memory.get3DSX(); - if (!hb3dsx->hasRomFs()) { - return DumpingResult::NoRomFS; - } - size = hb3dsx->romFSSize; - - romFS.resize(size); - hb3dsx->readRomFSBytes(&romFS[0], 0, size); - } else { - auto cxi = memory.getCXI(); - if (!cxi->hasRomFS()) { - return DumpingResult::NoRomFS; - } - - const u64 offset = cxi->romFS.offset; - size = cxi->romFS.size; - - romFS.resize(size); - cxi->readFromFile(memory.CXIFile, cxi->partitionInfo, &romFS[0], offset - cxi->fileOffset, size); - } - - std::unique_ptr node = parseRomFSTree((uintptr_t)&romFS[0], size); - dumpRomFSNode(*node, (const char*)&romFS[0], path); - - return DumpingResult::Success; -} - -void Emulator::setAudioEnabled(bool enable) { - if (!enable) { - audioDevice.stop(); - } else if (enable && romType != ROMType::None && running) { - // Don't start the audio device yet if there's no ROM loaded or the emulator is paused - // Resume and Pause will handle it - audioDevice.start(); - } - - dsp->setAudioEnabled(enable); -} diff --git a/src/host_shaders/opengl_display.frag b/src/host_shaders/opengl_display.frag deleted file mode 100644 index 612671c8..00000000 --- a/src/host_shaders/opengl_display.frag +++ /dev/null @@ -1,8 +0,0 @@ -#version 410 core -in vec2 UV; -out vec4 FragColor; - -uniform sampler2D u_texture; -void main() { - FragColor = texture(u_texture, UV); -} \ No newline at end of file diff --git a/src/host_shaders/opengl_display.vert b/src/host_shaders/opengl_display.vert deleted file mode 100644 index 990e2f80..00000000 --- a/src/host_shaders/opengl_display.vert +++ /dev/null @@ -1,23 +0,0 @@ -#version 410 core -out vec2 UV; - -void main() { - const vec4 positions[4] = vec4[]( - vec4(-1.0, 1.0, 1.0, 1.0), // Top-left - vec4(1.0, 1.0, 1.0, 1.0), // Top-right - vec4(-1.0, -1.0, 1.0, 1.0), // Bottom-left - vec4(1.0, -1.0, 1.0, 1.0) // Bottom-right - ); - - // The 3DS displays both screens' framebuffer rotated 90 deg counter clockwise - // So we adjust our texcoords accordingly - const vec2 texcoords[4] = vec2[]( - vec2(1.0, 1.0), // Top-right - vec2(1.0, 0.0), // Bottom-right - vec2(0.0, 1.0), // Top-left - vec2(0.0, 0.0) // Bottom-left - ); - - gl_Position = positions[gl_VertexID]; - UV = texcoords[gl_VertexID]; -} \ No newline at end of file diff --git a/src/host_shaders/opengl_fragment_shader.frag b/src/host_shaders/opengl_fragment_shader.frag deleted file mode 100644 index f6fa6c55..00000000 --- a/src/host_shaders/opengl_fragment_shader.frag +++ /dev/null @@ -1,417 +0,0 @@ -#version 410 core - -in vec3 v_tangent; -in vec3 v_normal; -in vec3 v_bitangent; -in vec4 v_colour; -in vec3 v_texcoord0; -in vec2 v_texcoord1; -in vec3 v_view; -in vec2 v_texcoord2; -flat in vec4 v_textureEnvColor[6]; -flat in vec4 v_textureEnvBufferColor; - -out vec4 fragColour; - -// TEV uniforms -uniform uint u_textureEnvSource[6]; -uniform uint u_textureEnvOperand[6]; -uniform uint u_textureEnvCombiner[6]; -uniform uint u_textureEnvScale[6]; - -// Depth control uniforms -uniform float u_depthScale; -uniform float u_depthOffset; -uniform bool u_depthmapEnable; - -uniform sampler2D u_tex0; -uniform sampler2D u_tex1; -uniform sampler2D u_tex2; -uniform sampler1DArray u_tex_lighting_lut; - -uniform uint u_picaRegs[0x200 - 0x48]; - -// Helper so that the implementation of u_pica_regs can be changed later -uint readPicaReg(uint reg_addr) { return u_picaRegs[reg_addr - 0x48u]; } - -vec4 tevSources[16]; -vec4 tevNextPreviousBuffer; -bool tevUnimplementedSourceFlag = false; - -// OpenGL ES 1.1 reference pages for TEVs (this is what the PICA200 implements): -// https://registry.khronos.org/OpenGL-Refpages/es1.1/xhtml/glTexEnv.xml - -vec4 tevFetchSource(uint src_id) { - if (src_id >= 6u && src_id < 13u) { - tevUnimplementedSourceFlag = true; - } - - return tevSources[src_id]; -} - -vec4 tevGetColorAndAlphaSource(int tev_id, int src_id) { - vec4 result; - - vec4 colorSource = tevFetchSource((u_textureEnvSource[tev_id] >> (src_id * 4)) & 15u); - vec4 alphaSource = tevFetchSource((u_textureEnvSource[tev_id] >> (src_id * 4 + 16)) & 15u); - - uint colorOperand = (u_textureEnvOperand[tev_id] >> (src_id * 4)) & 15u; - uint alphaOperand = (u_textureEnvOperand[tev_id] >> (12 + src_id * 4)) & 7u; - - // TODO: figure out what the undocumented values do - switch (colorOperand) { - case 0u: result.rgb = colorSource.rgb; break; // Source color - case 1u: result.rgb = 1.0 - colorSource.rgb; break; // One minus source color - case 2u: result.rgb = vec3(colorSource.a); break; // Source alpha - case 3u: result.rgb = vec3(1.0 - colorSource.a); break; // One minus source alpha - case 4u: result.rgb = vec3(colorSource.r); break; // Source red - case 5u: result.rgb = vec3(1.0 - colorSource.r); break; // One minus source red - case 8u: result.rgb = vec3(colorSource.g); break; // Source green - case 9u: result.rgb = vec3(1.0 - colorSource.g); break; // One minus source green - case 12u: result.rgb = vec3(colorSource.b); break; // Source blue - case 13u: result.rgb = vec3(1.0 - colorSource.b); break; // One minus source blue - default: break; - } - - // TODO: figure out what the undocumented values do - switch (alphaOperand) { - case 0u: result.a = alphaSource.a; break; // Source alpha - case 1u: result.a = 1.0 - alphaSource.a; break; // One minus source alpha - case 2u: result.a = alphaSource.r; break; // Source red - case 3u: result.a = 1.0 - alphaSource.r; break; // One minus source red - case 4u: result.a = alphaSource.g; break; // Source green - case 5u: result.a = 1.0 - alphaSource.g; break; // One minus source green - case 6u: result.a = alphaSource.b; break; // Source blue - case 7u: result.a = 1.0 - alphaSource.b; break; // One minus source blue - default: break; - } - - return result; -} - -vec4 tevCalculateCombiner(int tev_id) { - vec4 source0 = tevGetColorAndAlphaSource(tev_id, 0); - vec4 source1 = tevGetColorAndAlphaSource(tev_id, 1); - vec4 source2 = tevGetColorAndAlphaSource(tev_id, 2); - - uint colorCombine = u_textureEnvCombiner[tev_id] & 15u; - uint alphaCombine = (u_textureEnvCombiner[tev_id] >> 16) & 15u; - - vec4 result = vec4(1.0); - - // TODO: figure out what the undocumented values do - switch (colorCombine) { - case 0u: result.rgb = source0.rgb; break; // Replace - case 1u: result.rgb = source0.rgb * source1.rgb; break; // Modulate - case 2u: result.rgb = min(vec3(1.0), source0.rgb + source1.rgb); break; // Add - case 3u: result.rgb = clamp(source0.rgb + source1.rgb - 0.5, 0.0, 1.0); break; // Add signed - case 4u: result.rgb = mix(source1.rgb, source0.rgb, source2.rgb); break; // Interpolate - case 5u: result.rgb = max(source0.rgb - source1.rgb, 0.0); break; // Subtract - case 6u: result.rgb = vec3(4.0 * dot(source0.rgb - 0.5, source1.rgb - 0.5)); break; // Dot3 RGB - case 7u: result = vec4(4.0 * dot(source0.rgb - 0.5, source1.rgb - 0.5)); break; // Dot3 RGBA - case 8u: result.rgb = min(source0.rgb * source1.rgb + source2.rgb, 1.0); break; // Multiply then add - case 9u: result.rgb = min((source0.rgb + source1.rgb) * source2.rgb, 1.0); break; // Add then multiply - default: break; - } - - if (colorCombine != 7u) { // The color combiner also writes the alpha channel in the "Dot3 RGBA" mode. - // TODO: figure out what the undocumented values do - // TODO: test if the alpha combiner supports all the same modes as the color combiner. - switch (alphaCombine) { - case 0u: result.a = source0.a; break; // Replace - case 1u: result.a = source0.a * source1.a; break; // Modulate - case 2u: result.a = min(1.0, source0.a + source1.a); break; // Add - case 3u: result.a = clamp(source0.a + source1.a - 0.5, 0.0, 1.0); break; // Add signed - case 4u: result.a = mix(source1.a, source0.a, source2.a); break; // Interpolate - case 5u: result.a = max(0.0, source0.a - source1.a); break; // Subtract - case 8u: result.a = min(1.0, source0.a * source1.a + source2.a); break; // Multiply then add - case 9u: result.a = min(1.0, (source0.a + source1.a) * source2.a); break; // Add then multiply - default: break; - } - } - - result.rgb *= float(1 << (u_textureEnvScale[tev_id] & 3u)); - result.a *= float(1 << ((u_textureEnvScale[tev_id] >> 16) & 3u)); - - return result; -} - -#define D0_LUT 0u -#define D1_LUT 1u -#define SP_LUT 2u -#define FR_LUT 3u -#define RB_LUT 4u -#define RG_LUT 5u -#define RR_LUT 6u - -float lutLookup(uint lut, uint light, float value) { - if (lut >= FR_LUT && lut <= RR_LUT) lut -= 1; - if (lut == SP_LUT) lut = light + 8; - return texture(u_tex_lighting_lut, vec2(value, lut)).r; -} - -vec3 regToColor(uint reg) { - // Normalization scale to convert from [0...255] to [0.0...1.0] - const float scale = 1.0 / 255.0; - - return scale * vec3(float(bitfieldExtract(reg, 20, 8)), float(bitfieldExtract(reg, 10, 8)), float(bitfieldExtract(reg, 00, 8))); -} - -// Convert an arbitrary-width floating point literal to an f32 -float decodeFP(uint hex, uint E, uint M) { - uint width = M + E + 1u; - uint bias = 128u - (1u << (E - 1u)); - uint exponent = (hex >> M) & ((1u << E) - 1u); - uint mantissa = hex & ((1u << M) - 1u); - uint sign = (hex >> (E + M)) << 31u; - - if ((hex & ((1u << (width - 1u)) - 1u)) != 0u) { - if (exponent == (1u << E) - 1u) - exponent = 255u; - else - exponent += bias; - hex = sign | (mantissa << (23u - M)) | (exponent << 23u); - } else { - hex = sign; - } - - return uintBitsToFloat(hex); -} - -// Implements the following algorthm: https://mathb.in/26766 -void calcLighting(out vec4 primary_color, out vec4 secondary_color) { - // Quaternions describe a transformation from surface-local space to eye space. - // In surface-local space, by definition (and up to permutation) the normal vector is (0,0,1), - // the tangent vector is (1,0,0), and the bitangent vector is (0,1,0). - vec3 normal = normalize(v_normal); - vec3 tangent = normalize(v_tangent); - vec3 bitangent = normalize(v_bitangent); - vec3 view = normalize(v_view); - - uint GPUREG_LIGHTING_ENABLE = readPicaReg(0x008Fu); - if (bitfieldExtract(GPUREG_LIGHTING_ENABLE, 0, 1) == 0u) { - primary_color = secondary_color = vec4(1.0); - return; - } - - uint GPUREG_LIGHTING_AMBIENT = readPicaReg(0x01C0u); - uint GPUREG_LIGHTING_NUM_LIGHTS = (readPicaReg(0x01C2u) & 0x7u) + 1u; - uint GPUREG_LIGHTING_LIGHT_PERMUTATION = readPicaReg(0x01D9u); - - primary_color = vec4(vec3(0.0), 1.0); - secondary_color = vec4(vec3(0.0), 1.0); - - primary_color.rgb += regToColor(GPUREG_LIGHTING_AMBIENT); - - uint GPUREG_LIGHTING_LUTINPUT_ABS = readPicaReg(0x01D0u); - uint GPUREG_LIGHTING_LUTINPUT_SELECT = readPicaReg(0x01D1u); - uint GPUREG_LIGHTING_CONFIG0 = readPicaReg(0x01C3u); - uint GPUREG_LIGHTING_CONFIG1 = readPicaReg(0x01C4u); - uint GPUREG_LIGHTING_LUTINPUT_SCALE = readPicaReg(0x01D2u); - float d[7]; - - bool error_unimpl = false; - - for (uint i = 0u; i < GPUREG_LIGHTING_NUM_LIGHTS; i++) { - uint light_id = bitfieldExtract(GPUREG_LIGHTING_LIGHT_PERMUTATION, int(i * 3u), 3); - - uint GPUREG_LIGHTi_SPECULAR0 = readPicaReg(0x0140u + 0x10u * light_id); - uint GPUREG_LIGHTi_SPECULAR1 = readPicaReg(0x0141u + 0x10u * light_id); - uint GPUREG_LIGHTi_DIFFUSE = readPicaReg(0x0142u + 0x10u * light_id); - uint GPUREG_LIGHTi_AMBIENT = readPicaReg(0x0143u + 0x10u * light_id); - uint GPUREG_LIGHTi_VECTOR_LOW = readPicaReg(0x0144u + 0x10u * light_id); - uint GPUREG_LIGHTi_VECTOR_HIGH = readPicaReg(0x0145u + 0x10u * light_id); - uint GPUREG_LIGHTi_CONFIG = readPicaReg(0x0149u + 0x10u * light_id); - - vec3 light_vector = normalize(vec3( - decodeFP(bitfieldExtract(GPUREG_LIGHTi_VECTOR_LOW, 0, 16), 5u, 10u), decodeFP(bitfieldExtract(GPUREG_LIGHTi_VECTOR_LOW, 16, 16), 5u, 10u), - decodeFP(bitfieldExtract(GPUREG_LIGHTi_VECTOR_HIGH, 0, 16), 5u, 10u) - )); - - vec3 half_vector; - - // Positional Light - if (bitfieldExtract(GPUREG_LIGHTi_CONFIG, 0, 1) == 0u) { - // error_unimpl = true; - half_vector = normalize(normalize(light_vector + v_view) + view); - } - - // Directional light - else { - half_vector = normalize(normalize(light_vector) + view); - } - - for (int c = 0; c < 7; c++) { - if (bitfieldExtract(GPUREG_LIGHTING_CONFIG1, 16 + c, 1) == 0u) { - uint scale_id = bitfieldExtract(GPUREG_LIGHTING_LUTINPUT_SCALE, c * 4, 3); - float scale = float(1u << scale_id); - if (scale_id >= 6u) scale /= 256.0; - - uint input_id = bitfieldExtract(GPUREG_LIGHTING_LUTINPUT_SELECT, c * 4, 3); - if (input_id == 0u) - d[c] = dot(normal, half_vector); - else if (input_id == 1u) - d[c] = dot(view, half_vector); - else if (input_id == 2u) - d[c] = dot(normal, view); - else if (input_id == 3u) - d[c] = dot(light_vector, normal); - else if (input_id == 4u) { - uint GPUREG_LIGHTi_SPOTDIR_LOW = readPicaReg(0x0146u + 0x10u * light_id); - uint GPUREG_LIGHTi_SPOTDIR_HIGH = readPicaReg(0x0147u + 0x10u * light_id); - vec3 spot_light_vector = normalize(vec3( - decodeFP(bitfieldExtract(GPUREG_LIGHTi_SPOTDIR_LOW, 0, 16), 1u, 11u), - decodeFP(bitfieldExtract(GPUREG_LIGHTi_SPOTDIR_LOW, 16, 16), 1u, 11u), - decodeFP(bitfieldExtract(GPUREG_LIGHTi_SPOTDIR_HIGH, 0, 16), 1u, 11u) - )); - d[c] = dot(-light_vector, spot_light_vector); // -L dot P (aka Spotlight aka SP); - } else if (input_id == 5u) { - d[c] = 1.0; // TODO: cos (aka CP); - error_unimpl = true; - } else { - d[c] = 1.0; - } - - d[c] = lutLookup(uint(c), light_id, d[c] * 0.5 + 0.5) * scale; - if (bitfieldExtract(GPUREG_LIGHTING_LUTINPUT_ABS, 2 * c, 1) != 0u) d[c] = abs(d[c]); - } else { - d[c] = 1.0; - } - } - - uint lookup_config = bitfieldExtract(GPUREG_LIGHTi_CONFIG, 4, 4); - if (lookup_config == 0u) { - d[D1_LUT] = 0.0; - d[FR_LUT] = 0.0; - d[RG_LUT] = d[RB_LUT] = d[RR_LUT]; - } else if (lookup_config == 1u) { - d[D0_LUT] = 0.0; - d[D1_LUT] = 0.0; - d[RG_LUT] = d[RB_LUT] = d[RR_LUT]; - } else if (lookup_config == 2u) { - d[FR_LUT] = 0.0; - d[SP_LUT] = 0.0; - d[RG_LUT] = d[RB_LUT] = d[RR_LUT]; - } else if (lookup_config == 3u) { - d[SP_LUT] = 0.0; - d[RG_LUT] = d[RB_LUT] = d[RR_LUT] = 1.0; - } else if (lookup_config == 4u) { - d[FR_LUT] = 0.0; - } else if (lookup_config == 5u) { - d[D1_LUT] = 0.0; - } else if (lookup_config == 6u) { - d[RG_LUT] = d[RB_LUT] = d[RR_LUT]; - } - - float distance_factor = 1.0; // a - float indirect_factor = 1.0; // fi - float shadow_factor = 1.0; // o - - float NdotL = dot(normal, light_vector); // Li dot N - - // Two sided diffuse - if (bitfieldExtract(GPUREG_LIGHTi_CONFIG, 1, 1) == 0u) - NdotL = max(0.0, NdotL); - else - NdotL = abs(NdotL); - - float light_factor = distance_factor * d[SP_LUT] * indirect_factor * shadow_factor; - - primary_color.rgb += light_factor * (regToColor(GPUREG_LIGHTi_AMBIENT) + regToColor(GPUREG_LIGHTi_DIFFUSE) * NdotL); - secondary_color.rgb += light_factor * (regToColor(GPUREG_LIGHTi_SPECULAR0) * d[D0_LUT] + - regToColor(GPUREG_LIGHTi_SPECULAR1) * d[D1_LUT] * vec3(d[RR_LUT], d[RG_LUT], d[RB_LUT])); - } - uint fresnel_output1 = bitfieldExtract(GPUREG_LIGHTING_CONFIG0, 2, 1); - uint fresnel_output2 = bitfieldExtract(GPUREG_LIGHTING_CONFIG0, 3, 1); - - if (fresnel_output1 == 1u) primary_color.a = d[FR_LUT]; - if (fresnel_output2 == 1u) secondary_color.a = d[FR_LUT]; - - if (error_unimpl) { - // secondary_color = primary_color = vec4(1.0, 0., 1.0, 1.0); - } -} - -void main() { - // TODO: what do invalid sources and disabled textures read as? - // And what does the "previous combiner" source read initially? - tevSources[0] = v_colour; // Primary/vertex color - calcLighting(tevSources[1], tevSources[2]); - - uint textureConfig = readPicaReg(0x80u); - vec2 tex2UV = (textureConfig & (1u << 13)) != 0u ? v_texcoord1 : v_texcoord2; - - if ((textureConfig & 1u) != 0u) tevSources[3] = texture(u_tex0, v_texcoord0.xy); - if ((textureConfig & 2u) != 0u) tevSources[4] = texture(u_tex1, v_texcoord1); - if ((textureConfig & 4u) != 0u) tevSources[5] = texture(u_tex2, tex2UV); - tevSources[13] = vec4(0.0); // Previous buffer - tevSources[15] = v_colour; // Previous combiner - - tevNextPreviousBuffer = v_textureEnvBufferColor; - uint textureEnvUpdateBuffer = readPicaReg(0xE0u); - - for (int i = 0; i < 6; i++) { - tevSources[14] = v_textureEnvColor[i]; // Constant color - tevSources[15] = tevCalculateCombiner(i); - tevSources[13] = tevNextPreviousBuffer; - - if (i < 4) { - if ((textureEnvUpdateBuffer & (0x100u << i)) != 0u) { - tevNextPreviousBuffer.rgb = tevSources[15].rgb; - } - - if ((textureEnvUpdateBuffer & (0x1000u << i)) != 0u) { - tevNextPreviousBuffer.a = tevSources[15].a; - } - } - } - - fragColour = tevSources[15]; - - if (tevUnimplementedSourceFlag) { - // fragColour = vec4(1.0, 0.0, 1.0, 1.0); - } - // fragColour.rg = texture(u_tex_lighting_lut,vec2(gl_FragCoord.x/200.,float(int(gl_FragCoord.y/2)%24))).rr; - - // Get original depth value by converting from [near, far] = [0, 1] to [-1, 1] - // We do this by converting to [0, 2] first and subtracting 1 to go to [-1, 1] - float z_over_w = gl_FragCoord.z * 2.0f - 1.0f; - float depth = z_over_w * u_depthScale + u_depthOffset; - - if (!u_depthmapEnable) // Divide z by w if depthmap enable == 0 (ie using W-buffering) - depth /= gl_FragCoord.w; - - // Write final fragment depth - gl_FragDepth = depth; - - // Perform alpha test - uint alphaControl = readPicaReg(0x104u); - if ((alphaControl & 1u) != 0u) { // Check if alpha test is on - uint func = (alphaControl >> 4u) & 7u; - float reference = float((alphaControl >> 8u) & 0xffu) / 255.0; - float alpha = fragColour.a; - - switch (func) { - case 0u: discard; // Never pass alpha test - case 1u: break; // Always pass alpha test - case 2u: // Pass if equal - if (alpha != reference) discard; - break; - case 3u: // Pass if not equal - if (alpha == reference) discard; - break; - case 4u: // Pass if less than - if (alpha >= reference) discard; - break; - case 5u: // Pass if less than or equal - if (alpha > reference) discard; - break; - case 6u: // Pass if greater than - if (alpha <= reference) discard; - break; - case 7u: // Pass if greater than or equal - if (alpha < reference) discard; - break; - } - } -} diff --git a/src/host_shaders/opengl_vertex_shader.vert b/src/host_shaders/opengl_vertex_shader.vert deleted file mode 100644 index a25d7a6d..00000000 --- a/src/host_shaders/opengl_vertex_shader.vert +++ /dev/null @@ -1,98 +0,0 @@ -#version 410 core - -layout(location = 0) in vec4 a_coords; -layout(location = 1) in vec4 a_quaternion; -layout(location = 2) in vec4 a_vertexColour; -layout(location = 3) in vec2 a_texcoord0; -layout(location = 4) in vec2 a_texcoord1; -layout(location = 5) in float a_texcoord0_w; -layout(location = 6) in vec3 a_view; -layout(location = 7) in vec2 a_texcoord2; - -out vec3 v_normal; -out vec3 v_tangent; -out vec3 v_bitangent; -out vec4 v_colour; -out vec3 v_texcoord0; -out vec2 v_texcoord1; -out vec3 v_view; -out vec2 v_texcoord2; -flat out vec4 v_textureEnvColor[6]; -flat out vec4 v_textureEnvBufferColor; - -out float gl_ClipDistance[2]; - -// TEV uniforms -uniform uint u_textureEnvColor[6]; -uniform uint u_picaRegs[0x200 - 0x48]; - -// Helper so that the implementation of u_pica_regs can be changed later -uint readPicaReg(uint reg_addr) { return u_picaRegs[reg_addr - 0x48u]; } - -vec4 abgr8888ToVec4(uint abgr) { - const float scale = 1.0 / 255.0; - - return scale * vec4(float(abgr & 0xffu), float((abgr >> 8) & 0xffu), float((abgr >> 16) & 0xffu), float(abgr >> 24)); -} - -vec3 rotateVec3ByQuaternion(vec3 v, vec4 q) { - vec3 u = q.xyz; - float s = q.w; - return 2.0 * dot(u, v) * u + (s * s - dot(u, u)) * v + 2.0 * s * cross(u, v); -} - -// Convert an arbitrary-width floating point literal to an f32 -float decodeFP(uint hex, uint E, uint M) { - uint width = M + E + 1u; - uint bias = 128u - (1u << (E - 1u)); - uint exponent = (hex >> M) & ((1u << E) - 1u); - uint mantissa = hex & ((1u << M) - 1u); - uint sign = (hex >> (E + M)) << 31u; - - if ((hex & ((1u << (width - 1u)) - 1u)) != 0u) { - if (exponent == (1u << E) - 1u) - exponent = 255u; - else - exponent += bias; - hex = sign | (mantissa << (23u - M)) | (exponent << 23u); - } else { - hex = sign; - } - - return uintBitsToFloat(hex); -} - -void main() { - gl_Position = a_coords; - vec4 colourAbs = abs(a_vertexColour); - v_colour = min(colourAbs, vec4(1.f)); - - // Flip y axis of UVs because OpenGL uses an inverted y for texture sampling compared to the PICA - v_texcoord0 = vec3(a_texcoord0.x, 1.0 - a_texcoord0.y, a_texcoord0_w); - v_texcoord1 = vec2(a_texcoord1.x, 1.0 - a_texcoord1.y); - v_texcoord2 = vec2(a_texcoord2.x, 1.0 - a_texcoord2.y); - v_view = a_view; - - v_normal = normalize(rotateVec3ByQuaternion(vec3(0.0, 0.0, 1.0), a_quaternion)); - v_tangent = normalize(rotateVec3ByQuaternion(vec3(1.0, 0.0, 0.0), a_quaternion)); - v_bitangent = normalize(rotateVec3ByQuaternion(vec3(0.0, 1.0, 0.0), a_quaternion)); - - for (int i = 0; i < 6; i++) { - v_textureEnvColor[i] = abgr8888ToVec4(u_textureEnvColor[i]); - } - - v_textureEnvBufferColor = abgr8888ToVec4(readPicaReg(0xFDu)); - - // Parse clipping plane registers - // The plane registers describe a clipping plane in the form of Ax + By + Cz + D = 0 - // With n = (A, B, C) being the normal vector and D being the origin point distance - // Therefore, for the second clipping plane, we can just pass the dot product of the clip vector and the input coordinates to gl_ClipDistance[1] - vec4 clipData = vec4( - decodeFP(readPicaReg(0x48u) & 0xffffffu, 7u, 16u), decodeFP(readPicaReg(0x49u) & 0xffffffu, 7u, 16u), - decodeFP(readPicaReg(0x4Au) & 0xffffffu, 7u, 16u), decodeFP(readPicaReg(0x4Bu) & 0xffffffu, 7u, 16u) - ); - - // There's also another, always-on clipping plane based on vertex z - gl_ClipDistance[0] = -a_coords.z; - gl_ClipDistance[1] = dot(clipData, a_coords); -} diff --git a/src/host_shaders/vulkan_display.frag b/src/host_shaders/vulkan_display.frag deleted file mode 100644 index 1b6bd937..00000000 --- a/src/host_shaders/vulkan_display.frag +++ /dev/null @@ -1,7 +0,0 @@ -#version 460 core -layout(location = 0) in vec2 UV; -layout(location = 0) out vec4 FragColor; - -layout(binding = 0) uniform sampler2D u_texture; - -void main() { FragColor = texture(u_texture, UV); } \ No newline at end of file diff --git a/src/host_shaders/vulkan_display.vert b/src/host_shaders/vulkan_display.vert deleted file mode 100644 index 284997ca..00000000 --- a/src/host_shaders/vulkan_display.vert +++ /dev/null @@ -1,7 +0,0 @@ -#version 460 core -layout(location = 0) out vec2 UV; - -void main() { - UV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2); - gl_Position = vec4(UV * 2.0f + -1.0f, 0.0f, 1.0f); -} \ No newline at end of file diff --git a/src/http_server.cpp b/src/http_server.cpp deleted file mode 100644 index 41c7ae82..00000000 --- a/src/http_server.cpp +++ /dev/null @@ -1,356 +0,0 @@ -#ifdef PANDA3DS_ENABLE_HTTP_SERVER -#include "http_server.hpp" - -#include -#include -#include -#include -#include -#include - -#include "emulator.hpp" -#include "helpers.hpp" -#include "httplib.h" - -class HttpActionScreenshot : public HttpAction { - DeferredResponseWrapper& response; - - public: - HttpActionScreenshot(DeferredResponseWrapper& response) : HttpAction(HttpActionType::Screenshot), response(response) {} - DeferredResponseWrapper& getResponse() { return response; } -}; - -class HttpActionTogglePause : public HttpAction { - public: - HttpActionTogglePause() : HttpAction(HttpActionType::TogglePause) {} -}; - -class HttpActionReset : public HttpAction { - public: - HttpActionReset() : HttpAction(HttpActionType::Reset) {} -}; - -class HttpActionKey : public HttpAction { - u32 key; - bool state; - - public: - HttpActionKey(u32 key, bool state) : HttpAction(HttpActionType::Key), key(key), state(state) {} - - u32 getKey() const { return key; } - bool getState() const { return state; } -}; - -class HttpActionLoadRom : public HttpAction { - DeferredResponseWrapper& response; - const std::filesystem::path& path; - bool paused; - - public: - HttpActionLoadRom(DeferredResponseWrapper& response, const std::filesystem::path& path, bool paused) - : HttpAction(HttpActionType::LoadRom), response(response), path(path), paused(paused) {} - - DeferredResponseWrapper& getResponse() { return response; } - const std::filesystem::path& getPath() const { return path; } - bool getPaused() const { return paused; } -}; - -class HttpActionStep : public HttpAction { - DeferredResponseWrapper& response; - int frames; - - public: - HttpActionStep(DeferredResponseWrapper& response, int frames) - : HttpAction(HttpActionType::Step), response(response), frames(frames) {} - - DeferredResponseWrapper& getResponse() { return response; } - int getFrames() const { return frames; } -}; - -std::unique_ptr HttpAction::createScreenshotAction(DeferredResponseWrapper& response) { - return std::make_unique(response); -} - -std::unique_ptr HttpAction::createKeyAction(u32 key, bool state) { return std::make_unique(key, state); } -std::unique_ptr HttpAction::createTogglePauseAction() { return std::make_unique(); } -std::unique_ptr HttpAction::createResetAction() { return std::make_unique(); } - -std::unique_ptr HttpAction::createLoadRomAction(DeferredResponseWrapper& response, const std::filesystem::path& path, bool paused) { - return std::make_unique(response, path, paused); -} - -std::unique_ptr HttpAction::createStepAction(DeferredResponseWrapper& response, int frames) { - return std::make_unique(response, frames); -} - -HttpServer::HttpServer(Emulator* emulator) - : emulator(emulator), server(std::make_unique()), keyMap({ - {"A", {HID::Keys::A}}, - {"B", {HID::Keys::B}}, - {"Select", {HID::Keys::Select}}, - {"Start", {HID::Keys::Start}}, - {"Right", {HID::Keys::Right}}, - {"Left", {HID::Keys::Left}}, - {"Up", {HID::Keys::Up}}, - {"Down", {HID::Keys::Down}}, - {"R", {HID::Keys::R}}, - {"L", {HID::Keys::L}}, - {"X", {HID::Keys::X}}, - {"Y", {HID::Keys::Y}}, - }) { - httpServerThread = std::thread(&HttpServer::startHttpServer, this); -} - -HttpServer::~HttpServer() { - printf("Stopping http server...\n"); - server->stop(); - if (httpServerThread.joinable()) { - httpServerThread.join(); - } -} - -void HttpServer::pushAction(std::unique_ptr action) { - std::scoped_lock lock(actionQueueMutex); - actionQueue.push(std::move(action)); -} - -void HttpServer::startHttpServer() { - server->set_tcp_nodelay(true); - server->Get("/ping", [](const httplib::Request&, httplib::Response& response) { response.set_content("pong", "text/plain"); }); - - server->Get("/screen", [this](const httplib::Request&, httplib::Response& response) { - // TODO: make the below a DeferredResponseWrapper function - DeferredResponseWrapper wrapper(response); - // Lock the mutex before pushing the action to ensure that the condition variable is not notified before we wait on it - std::unique_lock lock(wrapper.mutex); - pushAction(HttpAction::createScreenshotAction(wrapper)); - wrapper.cv.wait(lock, [&wrapper] { return wrapper.ready; }); - }); - - server->Get("/input", [this](const httplib::Request& request, httplib::Response& response) { - bool ok = false; - for (auto& [keyStr, value] : request.params) { - u32 key = stringToKey(keyStr); - - if (key != 0) { - bool state = (value == "1"); - if (!state && value != "0") { - // Invalid state - ok = false; - break; - } - - pushAction(HttpAction::createKeyAction(key, state)); - ok = true; - } else { - // Invalid key - ok = false; - break; - } - } - - response.set_content(ok ? "ok" : "error", "text/plain"); - }); - - server->Get("/step", [this](const httplib::Request& request, httplib::Response& response) { - auto it = request.params.find("frames"); - if (it == request.params.end()) { - response.set_content("error", "text/plain"); - return; - } - - int frames; - try { - frames = std::stoi(it->second); - } catch (...) { - response.set_content("error", "text/plain"); - return; - } - - if (frames <= 0) { - response.set_content("error", "text/plain"); - return; - } - - DeferredResponseWrapper wrapper(response); - std::unique_lock lock(wrapper.mutex); - pushAction(HttpAction::createStepAction(wrapper, frames)); - wrapper.cv.wait(lock, [&wrapper] { return wrapper.ready; }); - }); - - server->Get("/status", [this](const httplib::Request&, httplib::Response& response) { response.set_content(status(), "text/plain"); }); - - server->Get("/load_rom", [this](const httplib::Request& request, httplib::Response& response) { - auto it = request.params.find("path"); - if (it == request.params.end()) { - response.set_content("error", "text/plain"); - return; - } - - std::filesystem::path romPath = it->second; - if (romPath.empty()) { - response.set_content("error", "text/plain"); - return; - } else { - std::error_code error; - if (!std::filesystem::is_regular_file(romPath, error)) { - std::string message = "error: " + error.message(); - response.set_content(message, "text/plain"); - return; - } - } - - bool paused = false; - it = request.params.find("paused"); - if (it != request.params.end()) { - paused = (it->second == "1"); - } - - DeferredResponseWrapper wrapper(response); - std::unique_lock lock(wrapper.mutex); - pushAction(HttpAction::createLoadRomAction(wrapper, romPath, paused)); - wrapper.cv.wait(lock, [&wrapper] { return wrapper.ready; }); - }); - - server->Get("/togglepause", [this](const httplib::Request&, httplib::Response& response) { - pushAction(HttpAction::createTogglePauseAction()); - response.set_content("ok", "text/plain"); - }); - - server->Get("/reset", [this](const httplib::Request&, httplib::Response& response) { - pushAction(HttpAction::createResetAction()); - response.set_content("ok", "text/plain"); - }); - - // TODO: ability to specify host and port - printf("Starting HTTP server on port 1234\n"); - server->listen("localhost", 1234); -} - -std::string HttpServer::status() { - HIDService& hid = emulator->getServiceManager().getHID(); - std::stringstream stringStream; - - stringStream << "Panda3DS\n"; - stringStream << "Status: " << (paused ? "Paused" : "Running") << "\n"; - - // TODO: This currently doesn't work for N3DS buttons - auto keyPressed = [](const HIDService& hid, u32 mask) { return (hid.getOldButtons() & mask) != 0; }; - for (auto& [keyStr, value] : keyMap) { - stringStream << keyStr << ": " << keyPressed(hid, value) << "\n"; - } - - return stringStream.str(); -} - -void HttpServer::processActions() { - std::scoped_lock lock(actionQueueMutex); - - if (framesToRun > 0) { - if (!currentStepAction) { - // Should never happen - printf("framesToRun > 0 but no currentStepAction\n"); - return; - } - - emulator->resume(); - framesToRun--; - - if (framesToRun == 0) { - paused = true; - emulator->pause(); - - DeferredResponseWrapper& response = reinterpret_cast(currentStepAction.get())->getResponse(); - response.inner_response.set_content("ok", "text/plain"); - std::unique_lock lock(response.mutex); - response.ready = true; - response.cv.notify_one(); - } - - // Don't process more actions until we're done stepping - return; - } - - HIDService& hid = emulator->getServiceManager().getHID(); - - while (!actionQueue.empty()) { - std::unique_ptr action = std::move(actionQueue.front()); - actionQueue.pop(); - - switch (action->getType()) { - case HttpActionType::Screenshot: { - HttpActionScreenshot* screenshotAction = static_cast(action.get()); - emulator->gpu.screenshot(httpServerScreenshotPath); - std::ifstream file(httpServerScreenshotPath, std::ios::binary); - std::vector buffer(std::istreambuf_iterator(file), {}); - - DeferredResponseWrapper& response = screenshotAction->getResponse(); - response.inner_response.set_content(buffer.data(), buffer.size(), "image/png"); - std::unique_lock lock(response.mutex); - response.ready = true; - response.cv.notify_one(); - break; - } - - case HttpActionType::Key: { - HttpActionKey* keyAction = static_cast(action.get()); - if (keyAction->getState()) { - hid.pressKey(keyAction->getKey()); - } else { - hid.releaseKey(keyAction->getKey()); - } - break; - } - - case HttpActionType::LoadRom: { - HttpActionLoadRom* loadRomAction = static_cast(action.get()); - DeferredResponseWrapper& response = loadRomAction->getResponse(); - bool loaded = emulator->loadROM(loadRomAction->getPath()); - - response.inner_response.set_content(loaded ? "ok" : "error", "text/plain"); - - std::unique_lock lock(response.mutex); - response.ready = true; - response.cv.notify_one(); - - if (loaded) { - paused = loadRomAction->getPaused(); - framesToRun = 0; - if (paused) { - emulator->pause(); - } else { - emulator->resume(); - } - } - break; - } - - case HttpActionType::TogglePause: - framesToRun = 0; - emulator->togglePause(); - paused = !paused; - break; - - case HttpActionType::Reset: emulator->reset(Emulator::ReloadOption::Reload); break; - - case HttpActionType::Step: { - HttpActionStep* stepAction = static_cast(action.get()); - framesToRun = stepAction->getFrames(); - currentStepAction = std::move(action); - break; - } - - default: break; - } - } -} - -u32 HttpServer::stringToKey(const std::string& key_name) { - if (keyMap.find(key_name) != keyMap.end()) { - return keyMap[key_name]; - } - - return 0; -} - -#endif // PANDA3DS_ENABLE_HTTP_SERVER \ No newline at end of file diff --git a/src/hydra_core.cpp b/src/hydra_core.cpp deleted file mode 100644 index acbf30a8..00000000 --- a/src/hydra_core.cpp +++ /dev/null @@ -1,164 +0,0 @@ -#include -#include -#include -#include - -#include "hydra_icon.hpp" -#include "swap.hpp" - -class HC_GLOBAL HydraCore final : public hydra::IBase, - public hydra::IOpenGlRendered, - public hydra::IFrontendDriven, - public hydra::IInput, - public hydra::ICheat { - HYDRA_CLASS - public: - HydraCore(); - - private: - // IBase - bool loadFile(const char* type, const char* path) override; - void reset() override; - hydra::Size getNativeSize() override; - void setOutputSize(hydra::Size size) override; - - // IOpenGlRendered - void resetContext() override; - void destroyContext() override; - void setFbo(unsigned handle) override; - void setGetProcAddress(void* function) override; - - // IFrontendDriven - void runFrame() override; - u16 getFps() override; - - // IInput - void setPollInputCallback(void (*callback)()) override; - void setCheckButtonCallback(s32 (*callback)(u32 player, hydra::ButtonType button)) override; - - // ICheat - u32 addCheat(const u8* data, u32 size) override; - void removeCheat(u32 id) override; - void enableCheat(u32 id) override; - void disableCheat(u32 id) override; - - std::unique_ptr emulator; - RendererGL* renderer; - void (*pollInputCallback)() = nullptr; - int32_t (*checkButtonCallback)(uint32_t player, hydra::ButtonType button) = nullptr; - void* getProcAddress = nullptr; -}; - -HydraCore::HydraCore() : emulator(new Emulator) { - if (emulator->getRendererType() != RendererType::OpenGL) { - throw std::runtime_error("HydraCore: Renderer is not OpenGL"); - } - renderer = static_cast(emulator->getRenderer()); -} - -bool HydraCore::loadFile(const char* type, const char* path) { - if (std::string(type) == "rom") { - return emulator->loadROM(path); - } else { - return false; - } -} - -void HydraCore::runFrame() { - renderer->resetStateManager(); - - pollInputCallback(); - HIDService& hid = emulator->getServiceManager().getHID(); - hid.setKey(HID::Keys::A, checkButtonCallback(0, hydra::ButtonType::A)); - hid.setKey(HID::Keys::B, checkButtonCallback(0, hydra::ButtonType::B)); - hid.setKey(HID::Keys::X, checkButtonCallback(0, hydra::ButtonType::X)); - hid.setKey(HID::Keys::Y, checkButtonCallback(0, hydra::ButtonType::Y)); - hid.setKey(HID::Keys::L, checkButtonCallback(0, hydra::ButtonType::L1)); - hid.setKey(HID::Keys::R, checkButtonCallback(0, hydra::ButtonType::R1)); - hid.setKey(HID::Keys::Start, checkButtonCallback(0, hydra::ButtonType::Start)); - hid.setKey(HID::Keys::Select, checkButtonCallback(0, hydra::ButtonType::Select)); - hid.setKey(HID::Keys::Up, checkButtonCallback(0, hydra::ButtonType::Keypad1Up)); - hid.setKey(HID::Keys::Down, checkButtonCallback(0, hydra::ButtonType::Keypad1Down)); - hid.setKey(HID::Keys::Left, checkButtonCallback(0, hydra::ButtonType::Keypad1Left)); - hid.setKey(HID::Keys::Right, checkButtonCallback(0, hydra::ButtonType::Keypad1Right)); - - int x = !!checkButtonCallback(0, hydra::ButtonType::Analog1Right) - !!checkButtonCallback(0, hydra::ButtonType::Analog1Left); - int y = !!checkButtonCallback(0, hydra::ButtonType::Analog1Up) - !!checkButtonCallback(0, hydra::ButtonType::Analog1Down); - hid.setCirclepadX(x * 0x9C); - hid.setCirclepadY(y * 0x9C); - - u32 touch = checkButtonCallback(0, hydra::ButtonType::Touch); - if (touch != hydra::TOUCH_RELEASED) { - u16 x = touch >> 16; - u16 y = touch; - if (y >= 240 && y <= 480 && x >= 40 && x < 40 + 320) { - hid.setTouchScreenPress(x - 40, y - 240); - } else { - hid.releaseTouchScreen(); - } - } else { - hid.releaseTouchScreen(); - } - - hid.updateInputs(emulator->getTicks()); - emulator->runFrame(); -} - -u16 HydraCore::getFps() { return 60; } - -void HydraCore::reset() { emulator->reset(Emulator::ReloadOption::Reload); } -hydra::Size HydraCore::getNativeSize() { return {400, 480}; } - -// Size doesn't matter as the glBlitFramebuffer call is commented out for the core -void HydraCore::setOutputSize(hydra::Size size) {} - -void HydraCore::resetContext() { -#ifdef __ANDROID__ - if (!gladLoadGLES2Loader(reinterpret_cast(getProcAddress))) { - Helpers::panic("OpenGL ES init failed"); - } -#else - if (!gladLoadGLLoader(reinterpret_cast(getProcAddress))) { - Helpers::panic("OpenGL init failed"); - } -#endif - // SDL_Window is not used, so we pass nullptr - emulator->initGraphicsContext(nullptr); -} - -void HydraCore::destroyContext() { emulator->deinitGraphicsContext(); } -void HydraCore::setFbo(unsigned handle) { renderer->setFBO(handle); } -void HydraCore::setGetProcAddress(void* function) { getProcAddress = function; } - -void HydraCore::setPollInputCallback(void (*callback)()) { pollInputCallback = callback; } -void HydraCore::setCheckButtonCallback(s32 (*callback)(u32 player, hydra::ButtonType button)) { checkButtonCallback = callback; } - -u32 HydraCore::addCheat(const u8* data, u32 size) { - return emulator->getCheats().addCheat(data, size); -}; - -void HydraCore::removeCheat(u32 id) { emulator->getCheats().removeCheat(id); } -void HydraCore::enableCheat(u32 id) { emulator->getCheats().enableCheat(id); } -void HydraCore::disableCheat(u32 id) { emulator->getCheats().disableCheat(id); } - -HC_API hydra::IBase* createEmulator() { return new HydraCore(); } -HC_API void destroyEmulator(hydra::IBase* emulator) { delete emulator; } - -HC_API const char* getInfo(hydra::InfoType type) { - switch (type) { - case hydra::InfoType::CoreName: return "Panda3DS"; - case hydra::InfoType::SystemName: return "Nintendo 3DS"; - case hydra::InfoType::Description: return "HLE 3DS emulator. There's a little Alber in your computer and he runs Nintendo 3DS games."; - case hydra::InfoType::Author: return "wheremyfoodat (Peach)"; - case hydra::InfoType::Version: return "0.7"; - case hydra::InfoType::License: return "GPLv3"; - case hydra::InfoType::Website: return "https://panda3ds.com/"; - case hydra::InfoType::Extensions: return "3ds,cci,cxi,app,3dsx,elf,axf"; - case hydra::InfoType::Firmware: return ""; - case hydra::InfoType::IconWidth: return HYDRA_ICON_WIDTH; - case hydra::InfoType::IconHeight: return HYDRA_ICON_HEIGHT; - case hydra::InfoType::IconData: return (const char*)&HYDRA_ICON_DATA[0]; - - default: return nullptr; - } -} diff --git a/src/io_file.cpp b/src/io_file.cpp deleted file mode 100644 index 3bfac013..00000000 --- a/src/io_file.cpp +++ /dev/null @@ -1,135 +0,0 @@ -#include "io_file.hpp" - -#include "helpers.hpp" - -#ifdef _MSC_VER -// 64 bit offsets for MSVC -#define fseeko _fseeki64 -#define ftello _ftelli64 -#define fileno _fileno - -#pragma warning(disable : 4996) -#endif - -#ifndef _CRT_SECURE_NO_WARNINGS -#define _CRT_SECURE_NO_WARNINGS -#endif - -#ifdef WIN32 -#include // For _chsize_s -#else -#include // For ftruncate -#endif - -#ifdef __ANDROID__ -#include "android_utils.hpp" -#endif - -IOFile::IOFile(const std::filesystem::path& path, const char* permissions) : handle(nullptr) { open(path, permissions); } - -bool IOFile::open(const std::filesystem::path& path, const char* permissions) { - const auto str = path.string(); // For some reason converting paths directly with c_str() doesn't work - return open(str.c_str(), permissions); -} - -bool IOFile::open(const char* filename, const char* permissions) { - // If this IOFile is already bound to an open file descriptor, release the file descriptor - // To avoid leaking it and/or erroneously locking the file - if (isOpen()) { - close(); - } - #ifdef __ANDROID__ - std::string path(filename); - - // Check if this is a URI directory, which will need special handling due to SAF - if (path.find("://") != std::string::npos ) { - handle = fdopen(AndroidUtils::openDocument(filename, permissions), permissions); - } else { - handle = std::fopen(filename, permissions); - } - #else - handle = std::fopen(filename, permissions); - #endif - - return isOpen(); -} - -void IOFile::close() { - if (isOpen()) { - fclose(handle); - handle = nullptr; - } -} - -std::pair IOFile::read(void* data, std::size_t length, std::size_t dataSize) { - if (!isOpen()) { - return {false, std::numeric_limits::max()}; - } - - if (length == 0) return {true, 0}; - return {true, std::fread(data, dataSize, length, handle)}; -} - -std::pair IOFile::write(const void* data, std::size_t length, std::size_t dataSize) { - if (!isOpen()) { - return {false, std::numeric_limits::max()}; - } - - if (length == 0) { - return {true, 0}; - } else { - return {true, std::fwrite(data, dataSize, length, handle)}; - } -} - -std::pair IOFile::readBytes(void* data, std::size_t count) { return read(data, count, sizeof(std::uint8_t)); } -std::pair IOFile::writeBytes(const void* data, std::size_t count) { return write(data, count, sizeof(std::uint8_t)); } - -std::optional IOFile::size() { - if (!isOpen()) return {}; - - std::uint64_t pos = ftello(handle); - if (fseeko(handle, 0, SEEK_END) != 0) { - return {}; - } - - std::uint64_t size = ftello(handle); - if ((size != pos) && (fseeko(handle, pos, SEEK_SET) != 0)) { - return {}; - } - - return size; -} - -bool IOFile::seek(std::int64_t offset, int origin) { - if (!isOpen() || fseeko(handle, offset, origin) != 0) return false; - - return true; -} - -bool IOFile::flush() { - if (!isOpen() || fflush(handle)) return false; - - return true; -} - -bool IOFile::rewind() { return seek(0, SEEK_SET); } -FILE* IOFile::getHandle() { return handle; } - -void IOFile::setAppDataDir(const std::filesystem::path& dir) { - if (dir == "") Helpers::panic("Failed to set app data directory"); - appData = dir; -} - -bool IOFile::setSize(std::uint64_t size) { - if (!isOpen()) return false; - bool success; - -#ifdef WIN32 - success = _chsize_s(_fileno(handle), size) == 0; -#else - success = ftruncate(fileno(handle), size) == 0; -#endif - fflush(handle); - return success; -} \ No newline at end of file diff --git a/src/jni_driver.cpp b/src/jni_driver.cpp deleted file mode 100644 index e4ce2b39..00000000 --- a/src/jni_driver.cpp +++ /dev/null @@ -1,142 +0,0 @@ -#include -#include -#include - -#include - -#include "emulator.hpp" -#include "renderer_gl/renderer_gl.hpp" -#include "services/hid.hpp" -#include "android_utils.hpp" - -std::unique_ptr emulator = nullptr; -HIDService* hidService = nullptr; -RendererGL* renderer = nullptr; -bool romLoaded = false; -JavaVM* jvm = nullptr; - -jclass alberClass; -jmethodID alberClassOpenDocument; - -#define AlberFunction(type, name) JNIEXPORT type JNICALL Java_com_panda3ds_pandroid_AlberDriver_##name - -void throwException(JNIEnv* env, const char* message) { - jclass exceptionClass = env->FindClass("java/lang/RuntimeException"); - env->ThrowNew(exceptionClass, message); -} - -JNIEnv* jniEnv() { - JNIEnv* env; - auto status = jvm->GetEnv((void**)&env, JNI_VERSION_1_6); - if (status == JNI_EDETACHED) { - jvm->AttachCurrentThread(&env, nullptr); - } else if (status != JNI_OK) { - throw std::runtime_error("Failed to obtain JNIEnv from JVM!!"); - } - - return env; -} - -extern "C" { - -#define MAKE_SETTING(functionName, type, settingName) \ -AlberFunction(void, functionName) (JNIEnv* env, jobject obj, type value) { emulator->getConfig().settingName = value; } - -MAKE_SETTING(setShaderJitEnabled, jboolean, shaderJitEnabled) - -#undef MAKE_SETTING - -AlberFunction(void, Setup)(JNIEnv* env, jobject obj) { - env->GetJavaVM(&jvm); - - alberClass = (jclass)env->NewGlobalRef((jclass)env->FindClass("com/panda3ds/pandroid/AlberDriver")); - alberClassOpenDocument = env->GetStaticMethodID(alberClass, "openDocument", "(Ljava/lang/String;Ljava/lang/String;)I"); -} - -AlberFunction(void, Pause)(JNIEnv* env, jobject obj) { emulator->pause(); } -AlberFunction(void, Resume)(JNIEnv* env, jobject obj) { emulator->resume(); } - -AlberFunction(void, Initialize)(JNIEnv* env, jobject obj) { - emulator = std::make_unique(); - - if (emulator->getRendererType() != RendererType::OpenGL) { - return throwException(env, "Renderer type is not OpenGL"); - } - - renderer = static_cast(emulator->getRenderer()); - hidService = &emulator->getServiceManager().getHID(); - - if (!gladLoadGLES2Loader(reinterpret_cast(eglGetProcAddress))) { - return throwException(env, "Failed to load OpenGL ES 2.0"); - } - - __android_log_print(ANDROID_LOG_INFO, "AlberDriver", "OpenGL ES %d.%d", GLVersion.major, GLVersion.minor); - emulator->initGraphicsContext(nullptr); -} - -AlberFunction(void, RunFrame)(JNIEnv* env, jobject obj, jint fbo) { - renderer->setFBO(fbo); - // TODO: don't reset entire state manager - renderer->resetStateManager(); - emulator->runFrame(); - - hidService->updateInputs(emulator->getTicks()); -} - -AlberFunction(void, Finalize)(JNIEnv* env, jobject obj) { - emulator = nullptr; - hidService = nullptr; - renderer = nullptr; -} - -AlberFunction(jboolean, HasRomLoaded)(JNIEnv* env, jobject obj) { return romLoaded; } - -AlberFunction(jboolean, LoadRom)(JNIEnv* env, jobject obj, jstring path) { - const char* pathStr = env->GetStringUTFChars(path, nullptr); - romLoaded = emulator->loadROM(pathStr); - env->ReleaseStringUTFChars(path, pathStr); - - return romLoaded; -} - -AlberFunction(void, LoadLuaScript)(JNIEnv* env, jobject obj, jstring script) { - const char* scriptStr = env->GetStringUTFChars(script, nullptr); - emulator->getLua().loadString(scriptStr); - env->ReleaseStringUTFChars(script, scriptStr); -} - -AlberFunction(void, TouchScreenDown)(JNIEnv* env, jobject obj, jint x, jint y) { hidService->setTouchScreenPress((u16)x, (u16)y); } -AlberFunction(void, TouchScreenUp)(JNIEnv* env, jobject obj) { hidService->releaseTouchScreen(); } -AlberFunction(void, KeyUp)(JNIEnv* env, jobject obj, jint keyCode) { hidService->releaseKey((u32)keyCode); } -AlberFunction(void, KeyDown)(JNIEnv* env, jobject obj, jint keyCode) { hidService->pressKey((u32)keyCode); } - -AlberFunction(void, SetCirclepadAxis)(JNIEnv* env, jobject obj, jint x, jint y) { - hidService->setCirclepadX((s16)x); - hidService->setCirclepadY((s16)y); -} - -AlberFunction(jbyteArray, GetSmdh)(JNIEnv* env, jobject obj) { - std::span smdh = emulator->getSMDH(); - - jbyteArray result = env->NewByteArray(smdh.size()); - env->SetByteArrayRegion(result, 0, smdh.size(), (jbyte*)smdh.data()); - - return result; -} -} - -#undef AlberFunction - -int AndroidUtils::openDocument(const char* path, const char* perms) { - auto env = jniEnv(); - - jstring uri = env->NewStringUTF(path); - jstring jmode = env->NewStringUTF(perms); - - jint result = env->CallStaticIntMethod(alberClass, alberClassOpenDocument, uri, jmode); - - env->DeleteLocalRef(uri); - env->DeleteLocalRef(jmode); - - return (int)result; -} \ No newline at end of file diff --git a/src/lua.cpp b/src/lua.cpp deleted file mode 100644 index d12faf7e..00000000 --- a/src/lua.cpp +++ /dev/null @@ -1,304 +0,0 @@ -#ifdef PANDA3DS_ENABLE_LUA -#include "emulator.hpp" -#include "lua_manager.hpp" - -#ifndef __ANDROID__ -extern "C" { - #include "luv.h" -} -#endif - -void LuaManager::initialize() { - L = luaL_newstate(); // Open Lua - - if (!L) { - printf("Lua initialization failed, continuing without Lua"); - initialized = false; - return; - } - luaL_openlibs(L); - -#ifndef __ANDROID__ - lua_pushstring(L, "luv"); - luaopen_luv(L); - lua_settable(L, LUA_GLOBALSINDEX); -#endif - - initializeThunks(); - initialized = true; - haveScript = false; -} - -void LuaManager::close() { - if (initialized) { - lua_close(L); - initialized = false; - haveScript = false; - L = nullptr; - } -} - -void LuaManager::loadFile(const char* path) { - // Initialize Lua if it has not been initialized - if (!initialized) { - initialize(); - } - - // If init failed, don't execute - if (!initialized) { - printf("Lua initialization failed, file won't run\n"); - haveScript = false; - - return; - } - - int status = luaL_loadfile(L, path); // load Lua script - int ret = lua_pcall(L, 0, 0, 0); // tell Lua to run the script - - if (ret != 0) { - haveScript = false; - fprintf(stderr, "%s\n", lua_tostring(L, -1)); // tell us what mistake we made - } else { - haveScript = true; - } -} - -void LuaManager::loadString(const std::string& code) { - // Initialize Lua if it has not been initialized - if (!initialized) { - initialize(); - } - - // If init failed, don't execute - if (!initialized) { - printf("Lua initialization failed, file won't run\n"); - haveScript = false; - - return; - } - - int status = luaL_loadstring(L, code.c_str()); // load Lua script - int ret = lua_pcall(L, 0, 0, 0); // tell Lua to run the script - - if (ret != 0) { - haveScript = false; - fprintf(stderr, "%s\n", lua_tostring(L, -1)); // tell us what mistake we made - } else { - haveScript = true; - } -} - -void LuaManager::signalEventInternal(LuaEvent e) { - lua_getglobal(L, "eventHandler"); // We want to call the event handler - lua_pushnumber(L, static_cast(e)); // Push event type - - // Call the function with 1 argument and 0 outputs, without an error handler - lua_pcall(L, 1, 0, 0); -} - -void LuaManager::reset() { - // Reset scripts - haveScript = false; -} - -// Initialize C++ thunks for Lua code to call here -// All code beyond this point is terrible and full of global state, don't judge - -Emulator* LuaManager::g_emulator = nullptr; - -#define MAKE_MEMORY_FUNCTIONS(size) \ - static int read##size##Thunk(lua_State* L) { \ - const u32 vaddr = (u32)lua_tonumber(L, 1); \ - lua_pushnumber(L, LuaManager::g_emulator->getMemory().read##size(vaddr)); \ - return 1; \ - } \ - static int write##size##Thunk(lua_State* L) { \ - const u32 vaddr = (u32)lua_tonumber(L, 1); \ - const u##size value = (u##size)lua_tonumber(L, 2); \ - LuaManager::g_emulator->getMemory().write##size(vaddr, value); \ - return 0; \ - } - -MAKE_MEMORY_FUNCTIONS(8) -MAKE_MEMORY_FUNCTIONS(16) -MAKE_MEMORY_FUNCTIONS(32) -MAKE_MEMORY_FUNCTIONS(64) -#undef MAKE_MEMORY_FUNCTIONS - -static int getAppIDThunk(lua_State* L) { - std::optional id = LuaManager::g_emulator->getMemory().getProgramID(); - - // If the app has an ID, return true + its ID - // Otherwise return false and 0 as the ID - if (id.has_value()) { - lua_pushboolean(L, 1); // Return true - lua_pushnumber(L, u32(*id)); // Return bottom 32 bits - lua_pushnumber(L, u32(*id >> 32)); // Return top 32 bits - } else { - lua_pushboolean(L, 0); // Return false - // Return no ID - lua_pushnumber(L, 0); - lua_pushnumber(L, 0); - } - - return 3; -} - -static int pauseThunk(lua_State* L) { - LuaManager::g_emulator->pause(); - return 0; -} - -static int resumeThunk(lua_State* L) { - LuaManager::g_emulator->resume(); - return 0; -} - -static int resetThunk(lua_State* L) { - LuaManager::g_emulator->reset(Emulator::ReloadOption::Reload); - return 0; -} - -static int loadROMThunk(lua_State* L) { - // Path argument is invalid, report that loading failed and exit - if (lua_type(L, -1) != LUA_TSTRING) { - lua_pushboolean(L, 0); - return 1; - } - - size_t pathLength; - const char* const str = lua_tolstring(L, -1, &pathLength); - - const auto path = std::filesystem::path(std::string(str, pathLength)); - // Load ROM and reply if it succeeded or not - lua_pushboolean(L, LuaManager::g_emulator->loadROM(path) ? 1 : 0); - return 1; -} - -static int getButtonsThunk(lua_State* L) { - auto buttons = LuaManager::g_emulator->getServiceManager().getHID().getOldButtons(); - lua_pushinteger(L, static_cast(buttons)); - - return 1; -} - -static int getCirclepadThunk(lua_State* L) { - auto& hid = LuaManager::g_emulator->getServiceManager().getHID(); - s16 x = hid.getCirclepadX(); - s16 y = hid.getCirclepadY(); - - lua_pushinteger(L, static_cast(x)); - lua_pushinteger(L, static_cast(y)); - return 2; -} - -static int getButtonThunk(lua_State* L) { - auto& hid = LuaManager::g_emulator->getServiceManager().getHID(); - // This function accepts a mask. You can use it to check if one or more buttons are pressed at a time - const u32 mask = (u32)lua_tonumber(L, 1); - const bool result = (hid.getOldButtons() & mask) == mask; - - // Return whether the selected buttons are all pressed - lua_pushboolean(L, result ? 1 : 0); - return 1; -} - -// clang-format off -static constexpr luaL_Reg functions[] = { - { "__read8", read8Thunk }, - { "__read16", read16Thunk }, - { "__read32", read32Thunk }, - { "__read64", read64Thunk }, - { "__write8", write8Thunk} , - { "__write16", write16Thunk }, - { "__write32", write32Thunk }, - { "__write64", write64Thunk }, - { "__getAppID", getAppIDThunk }, - { "__pause", pauseThunk}, - { "__resume", resumeThunk}, - { "__reset", resetThunk}, - { "__loadROM", loadROMThunk}, - { "__getButtons", getButtonsThunk}, - { "__getCirclepad", getCirclepadThunk}, - { "__getButton", getButtonThunk}, - { nullptr, nullptr }, -}; -// clang-format on - -void LuaManager::initializeThunks() { - static const char* runtimeInit = R"( - Pand = { - read8 = function(addr) return GLOBALS.__read8(addr) end, - read16 = function(addr) return GLOBALS.__read16(addr) end, - read32 = function(addr) return GLOBALS.__read32(addr) end, - read64 = function(addr) return GLOBALS.__read64(addr) end, - write8 = function(addr, value) GLOBALS.__write8(addr, value) end, - write16 = function(addr, value) GLOBALS.__write16(addr, value) end, - write32 = function(addr, value) GLOBALS.__write32(addr, value) end, - write64 = function(addr, value) GLOBALS.__write64(addr, value) end, - - getAppID = function() - local ffi = require("ffi") - - result, low, high = GLOBALS.__getAppID() - id = bit.bor(ffi.cast("uint64_t", low), (bit.lshift(ffi.cast("uint64_t", high), 32))) - return result, id - end, - - pause = function() GLOBALS.__pause() end, - resume = function() GLOBALS.__resume() end, - reset = function() GLOBALS.__reset() end, - loadROM = function(path) return GLOBALS.__loadROM(path) end, - - getButtons = function() return GLOBALS.__getButtons() end, - getButton = function(button) return GLOBALS.__getButton(button) end, - getCirclepad = function() return GLOBALS.__getCirclepad() end, - - Frame = __Frame, - ButtonA = __ButtonA, - ButtonB = __ButtonB, - ButtonX = __ButtonX, - ButtonY = __ButtonY, - ButtonL = __ButtonL, - ButtonR = __ButtonR, - ButtonUp = __ButtonUp, - ButtonDown = __ButtonDown, - ButtonLeft = __ButtonLeft, - ButtonRight= __ButtonRight, - } -)"; - - auto addIntConstant = [&](T x, const char* name) { - lua_pushinteger(L, (int)x); - lua_setglobal(L, name); - }; - - luaL_register(L, "GLOBALS", functions); - // Add values for event enum - addIntConstant(LuaEvent::Frame, "__Frame"); - - // Add enums for 3DS keys - addIntConstant(HID::Keys::A, "__ButtonA"); - addIntConstant(HID::Keys::B, "__ButtonB"); - addIntConstant(HID::Keys::X, "__ButtonX"); - addIntConstant(HID::Keys::Y, "__ButtonY"); - addIntConstant(HID::Keys::Up, "__ButtonUp"); - addIntConstant(HID::Keys::Down, "__ButtonDown"); - addIntConstant(HID::Keys::Left, "__ButtonLeft"); - addIntConstant(HID::Keys::Right, "__ButtonRight"); - addIntConstant(HID::Keys::L, "__ButtonL"); - addIntConstant(HID::Keys::R, "__ButtonR"); - - // Call our Lua runtime initialization before any Lua script runs - luaL_loadstring(L, runtimeInit); - int ret = lua_pcall(L, 0, 0, 0); // tell Lua to run the script - - if (ret != 0) { - initialized = false; - fprintf(stderr, "%s\n", lua_tostring(L, -1)); // Init should never fail! - } else { - initialized = true; - } -} - -#endif diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 00000000..151ae040 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,7 @@ +#include + +int main() { + std::puts("*starts twerking*"); + + return 0; +} diff --git a/src/memory_mapped_file.cpp b/src/memory_mapped_file.cpp deleted file mode 100644 index e62b4636..00000000 --- a/src/memory_mapped_file.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "memory_mapped_file.hpp" - -MemoryMappedFile::MemoryMappedFile() : opened(false), filePath(""), pointer(nullptr) {} -MemoryMappedFile::MemoryMappedFile(const std::filesystem::path& path) { open(path); } -MemoryMappedFile::~MemoryMappedFile() { close(); } - -// TODO: This should probably also return the error one way or another eventually -bool MemoryMappedFile::open(const std::filesystem::path& path) { - std::error_code error; - map = mio::make_mmap_sink(path.string(), 0, mio::map_entire_file, error); - - if (error) { - opened = false; - return false; - } - - filePath = path; - pointer = (u8*)map.data(); - opened = true; - return true; -} - -void MemoryMappedFile::close() { - if (opened) { - opened = false; - pointer = nullptr; // Set the pointer to nullptr to avoid errors related to lingering pointers - - map.unmap(); - } -} - -std::error_code MemoryMappedFile::flush() { - std::error_code ret; - map.sync(ret); - - return ret; -} \ No newline at end of file diff --git a/src/miniaudio.cpp b/src/miniaudio.cpp deleted file mode 100644 index e42fea68..00000000 --- a/src/miniaudio.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// We do not need the ability to be able to encode or decode audio files for the time being -// So we disable said functionality to make the executable smaller -#define MA_NO_DECODING -#define MA_NO_ENCODING -#define MINIAUDIO_IMPLEMENTATION - -#include "miniaudio.h" \ No newline at end of file diff --git a/src/panda_qt/about_window.cpp b/src/panda_qt/about_window.cpp deleted file mode 100644 index 67767198..00000000 --- a/src/panda_qt/about_window.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "panda_qt/about_window.hpp" - -#include -#include -#include -#include - -// Based on https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/DolphinQt/AboutDialog.cpp - -AboutWindow::AboutWindow(QWidget* parent) : QDialog(parent) { - resize(200, 200); - - setWindowTitle(tr("About Panda3DS")); - setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); - - const QString text = - QStringLiteral(R"( -

Panda3DS

- -

-%ABOUT_PANDA3DS%
-%SUPPORT%
-

- -

-%AUTHORS% -

-)") - .replace(QStringLiteral("%ABOUT_PANDA3DS%"), tr("Panda3DS is a free and open source Nintendo 3DS emulator, for Windows, MacOS and Linux")) - .replace(QStringLiteral("%SUPPORT%"), tr("Visit panda3ds.com for help with Panda3DS and links to our official support sites.")) - .replace( - QStringLiteral("%AUTHORS%"), tr("Panda3DS is developed by volunteers in their spare time. Below is a list of some of these" - " volunteers who've agreed to be listed here, in no particular order.
If you think you should be " - "listed here too, please inform us

" - "- Peach (wheremyfoodat)
" - "- noumidev
" - "- liuk707
" - "- Wunk
" - "- marysaka
" - "- Sky
" - "- merryhime
" - "- TGP17
" - "- Shadow
") - ); - - QLabel* textLabel = new QLabel(text); - textLabel->setTextInteractionFlags(Qt::TextBrowserInteraction); - textLabel->setOpenExternalLinks(true); - - QLabel* logo = new QLabel(); - logo->setPixmap(QPixmap(":/docs/img/rstarstruck_icon.png")); - logo->setContentsMargins(30, 0, 30, 0); - - QVBoxLayout* mainLayout = new QVBoxLayout; - QHBoxLayout* hLayout = new QHBoxLayout; - - setLayout(mainLayout); - mainLayout->addLayout(hLayout); - - hLayout->setAlignment(Qt::AlignLeft); - hLayout->addWidget(logo); - hLayout->addWidget(textLabel); -} \ No newline at end of file diff --git a/src/panda_qt/cheats_window.cpp b/src/panda_qt/cheats_window.cpp deleted file mode 100644 index dbd251cc..00000000 --- a/src/panda_qt/cheats_window.cpp +++ /dev/null @@ -1,268 +0,0 @@ -#include "panda_qt/cheats_window.hpp" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "cheats.hpp" -#include "emulator.hpp" -#include "panda_qt/main_window.hpp" - -MainWindow* mainWindow = nullptr; - -struct CheatMetadata { - u32 handle = Cheats::badCheatHandle; - std::string name = "New cheat"; - std::string code; - bool enabled = true; -}; - -void dispatchToMainThread(std::function callback) { - QTimer* timer = new QTimer(); - timer->moveToThread(qApp->thread()); - timer->setSingleShot(true); - QObject::connect(timer, &QTimer::timeout, [=]() - { - callback(); - timer->deleteLater(); - }); - QMetaObject::invokeMethod(timer, "start", Qt::QueuedConnection, Q_ARG(int, 0)); -} - -class CheatEntryWidget : public QWidget { - public: - CheatEntryWidget(Emulator* emu, CheatMetadata metadata, QListWidget* parent); - - void Update() { - name->setText(metadata.name.c_str()); - enabled->setChecked(metadata.enabled); - update(); - } - - void Remove() { - emu->getCheats().removeCheat(metadata.handle); - cheatList->takeItem(cheatList->row(listItem)); - deleteLater(); - } - - const CheatMetadata& getMetadata() { return metadata; } - void setMetadata(const CheatMetadata& metadata) { this->metadata = metadata; } - - private: - void checkboxChanged(int state); - void editClicked(); - - Emulator* emu; - CheatMetadata metadata; - u32 handle; - QLabel* name; - QCheckBox* enabled; - QListWidget* cheatList; - QListWidgetItem* listItem; -}; - -class CheatEditDialog : public QDialog { - public: - CheatEditDialog(Emulator* emu, CheatEntryWidget& cheatEntry); - - void accepted(); - void rejected(); - - private: - Emulator* emu; - CheatEntryWidget& cheatEntry; - QTextEdit* codeEdit; - QLineEdit* nameEdit; -}; - -CheatEntryWidget::CheatEntryWidget(Emulator* emu, CheatMetadata metadata, QListWidget* parent) - : QWidget(), emu(emu), metadata(metadata), cheatList(parent) { - QHBoxLayout* layout = new QHBoxLayout; - - enabled = new QCheckBox; - enabled->setChecked(metadata.enabled); - - name = new QLabel(metadata.name.c_str()); - QPushButton* buttonEdit = new QPushButton(tr("Edit")); - - connect(enabled, &QCheckBox::stateChanged, this, &CheatEntryWidget::checkboxChanged); - connect(buttonEdit, &QPushButton::clicked, this, &CheatEntryWidget::editClicked); - - layout->addWidget(enabled); - layout->addWidget(name); - layout->addWidget(buttonEdit); - setLayout(layout); - - listItem = new QListWidgetItem; - listItem->setSizeHint(sizeHint()); - parent->addItem(listItem); - parent->setItemWidget(listItem, this); -} - -void CheatEntryWidget::checkboxChanged(int state) { - bool enabled = state == Qt::Checked; - if (metadata.handle == Cheats::badCheatHandle) { - printf("Cheat handle is bad, this shouldn't happen\n"); - return; - } - - if (enabled) { - emu->getCheats().enableCheat(metadata.handle); - metadata.enabled = true; - } else { - emu->getCheats().disableCheat(metadata.handle); - metadata.enabled = false; - } -} - -void CheatEntryWidget::editClicked() { - CheatEditDialog* dialog = new CheatEditDialog(emu, *this); - dialog->show(); -} - -CheatEditDialog::CheatEditDialog(Emulator* emu, CheatEntryWidget& cheatEntry) : QDialog(), emu(emu), cheatEntry(cheatEntry) { - setAttribute(Qt::WA_DeleteOnClose); - setModal(true); - - QVBoxLayout* layout = new QVBoxLayout; - const CheatMetadata& metadata = cheatEntry.getMetadata(); - codeEdit = new QTextEdit; - nameEdit = new QLineEdit; - nameEdit->setText(metadata.name.c_str()); - nameEdit->setPlaceholderText(tr("Cheat name")); - layout->addWidget(nameEdit); - - QFont font; - font.setFamily("Courier"); - font.setFixedPitch(true); - font.setPointSize(10); - codeEdit->setFont(font); - - if (metadata.code.size() != 0) { - // Nicely format it like so: - // 01234567 89ABCDEF - // 01234567 89ABCDEF - std::string formattedCode; - for (size_t i = 0; i < metadata.code.size(); i += 2) { - if (i != 0) { - if (i % 8 == 0 && i % 16 != 0) { - formattedCode += " "; - } else if (i % 16 == 0) { - formattedCode += "\n"; - } - } - - formattedCode += metadata.code[i]; - formattedCode += metadata.code[i + 1]; - } - codeEdit->setText(formattedCode.c_str()); - } - - layout->addWidget(codeEdit); - setLayout(layout); - - auto buttons = QDialogButtonBox::Ok | QDialogButtonBox::Cancel; - QDialogButtonBox* buttonBox = new QDialogButtonBox(buttons); - layout->addWidget(buttonBox); - - connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); - connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); - connect(this, &QDialog::rejected, this, &CheatEditDialog::rejected); - connect(this, &QDialog::accepted, this, &CheatEditDialog::accepted); -} - -void CheatEditDialog::accepted() { - QString code = codeEdit->toPlainText(); - code.replace(QRegularExpression("[^0-9a-fA-F]"), ""); - - CheatMetadata metadata = cheatEntry.getMetadata(); - metadata.name = nameEdit->text().toStdString(); - metadata.code = code.toStdString(); - cheatEntry.setMetadata(metadata); - - std::vector bytes; - for (size_t i = 0; i < metadata.code.size(); i += 2) { - std::string hex = metadata.code.substr(i, 2); - bytes.push_back((u8)std::stoul(hex, nullptr, 16)); - } - - mainWindow->editCheat(cheatEntry.getMetadata().handle, bytes, [this](u32 handle) { - dispatchToMainThread([this, handle]() { - if (handle == Cheats::badCheatHandle) { - cheatEntry.Remove(); - return; - } else { - CheatMetadata metadata = cheatEntry.getMetadata(); - metadata.handle = handle; - cheatEntry.setMetadata(metadata); - cheatEntry.Update(); - } - }); - }); -} - -void CheatEditDialog::rejected() { - bool isEditing = cheatEntry.getMetadata().handle != Cheats::badCheatHandle; - if (!isEditing) { - // Was adding a cheat but user pressed cancel - cheatEntry.Remove(); - } -} - -CheatsWindow::CheatsWindow(Emulator* emu, const std::filesystem::path& cheatPath, QWidget* parent) - : QWidget(parent, Qt::Window), emu(emu), cheatPath(cheatPath) { - mainWindow = static_cast(parent); - - QVBoxLayout* layout = new QVBoxLayout; - layout->setContentsMargins(6, 6, 6, 6); - setLayout(layout); - - cheatList = new QListWidget; - layout->addWidget(cheatList); - - QWidget* buttonBox = new QWidget; - QHBoxLayout* buttonLayout = new QHBoxLayout; - - QPushButton* buttonAdd = new QPushButton(tr("Add")); - QPushButton* buttonRemove = new QPushButton(tr("Remove")); - - connect(buttonAdd, &QPushButton::clicked, this, &CheatsWindow::addEntry); - connect(buttonRemove, &QPushButton::clicked, this, &CheatsWindow::removeClicked); - - buttonLayout->addWidget(buttonAdd); - buttonLayout->addWidget(buttonRemove); - buttonBox->setLayout(buttonLayout); - - layout->addWidget(buttonBox); - - // TODO: load cheats from saved cheats per game - // for (const CheatMetadata& metadata : getSavedCheats()) - // { - // new CheatEntryWidget(emu, metadata, cheatList); - // } -} - -void CheatsWindow::addEntry() { - // CheatEntryWidget is added to the list when it's created - CheatEntryWidget* entry = new CheatEntryWidget(emu, {Cheats::badCheatHandle, "New cheat", "", true}, cheatList); - CheatEditDialog* dialog = new CheatEditDialog(emu, *entry); - dialog->show(); -} - -void CheatsWindow::removeClicked() { - QListWidgetItem* item = cheatList->currentItem(); - if (item == nullptr) { - return; - } - - CheatEntryWidget* entry = static_cast(cheatList->itemWidget(item)); - entry->Remove(); -} diff --git a/src/panda_qt/config_window.cpp b/src/panda_qt/config_window.cpp deleted file mode 100644 index 44debc32..00000000 --- a/src/panda_qt/config_window.cpp +++ /dev/null @@ -1,99 +0,0 @@ -#include "panda_qt/config_window.hpp" - -ConfigWindow::ConfigWindow(QWidget* parent) : QDialog(parent) { - setWindowTitle(tr("Configuration")); - - // Set up theme selection - setTheme(Theme::Dark); - themeSelect = new QComboBox(this); - themeSelect->addItem(tr("System")); - themeSelect->addItem(tr("Light")); - themeSelect->addItem(tr("Dark")); - themeSelect->addItem(tr("Greetings Cat")); - themeSelect->setCurrentIndex(static_cast(currentTheme)); - - themeSelect->setGeometry(40, 40, 100, 50); - themeSelect->show(); - connect(themeSelect, &QComboBox::currentIndexChanged, this, [&](int index) { setTheme(static_cast(index)); }); -} - -void ConfigWindow::setTheme(Theme theme) { - currentTheme = theme; - - switch (theme) { - case Theme::Dark: { - QApplication::setStyle(QStyleFactory::create("Fusion")); - - QPalette p; - p.setColor(QPalette::Window, QColor(53, 53, 53)); - p.setColor(QPalette::WindowText, Qt::white); - p.setColor(QPalette::Base, QColor(25, 25, 25)); - p.setColor(QPalette::AlternateBase, QColor(53, 53, 53)); - p.setColor(QPalette::ToolTipBase, Qt::white); - p.setColor(QPalette::ToolTipText, Qt::white); - p.setColor(QPalette::Text, Qt::white); - p.setColor(QPalette::Button, QColor(53, 53, 53)); - p.setColor(QPalette::ButtonText, Qt::white); - p.setColor(QPalette::BrightText, Qt::red); - p.setColor(QPalette::Link, QColor(42, 130, 218)); - - p.setColor(QPalette::Highlight, QColor(42, 130, 218)); - p.setColor(QPalette::HighlightedText, Qt::black); - qApp->setPalette(p); - break; - } - - case Theme::Light: { - QApplication::setStyle(QStyleFactory::create("Fusion")); - - QPalette p; - p.setColor(QPalette::Window, Qt::white); - p.setColor(QPalette::WindowText, Qt::black); - p.setColor(QPalette::Base, QColor(243, 243, 243)); - p.setColor(QPalette::AlternateBase, Qt::white); - p.setColor(QPalette::ToolTipBase, Qt::black); - p.setColor(QPalette::ToolTipText, Qt::black); - p.setColor(QPalette::Text, Qt::black); - p.setColor(QPalette::Button, Qt::white); - p.setColor(QPalette::ButtonText, Qt::black); - p.setColor(QPalette::BrightText, Qt::red); - p.setColor(QPalette::Link, QColor(42, 130, 218)); - - p.setColor(QPalette::Highlight, QColor(42, 130, 218)); - p.setColor(QPalette::HighlightedText, Qt::white); - qApp->setPalette(p); - break; - } - - case Theme::GreetingsCat: { - QApplication::setStyle(QStyleFactory::create("Fusion")); - - QPalette p; - p.setColor(QPalette::Window, QColor(250, 207, 228)); - p.setColor(QPalette::WindowText, QColor(225, 22, 137)); - p.setColor(QPalette::Base, QColor(250, 207, 228)); - p.setColor(QPalette::AlternateBase, QColor(250, 207, 228)); - p.setColor(QPalette::ToolTipBase, QColor(225, 22, 137)); - p.setColor(QPalette::ToolTipText, QColor(225, 22, 137)); - p.setColor(QPalette::Text, QColor(225, 22, 137)); - p.setColor(QPalette::Button, QColor(250, 207, 228)); - p.setColor(QPalette::ButtonText, QColor(225, 22, 137)); - p.setColor(QPalette::BrightText, Qt::black); - p.setColor(QPalette::Link, QColor(42, 130, 218)); - - p.setColor(QPalette::Highlight, QColor(42, 130, 218)); - p.setColor(QPalette::HighlightedText, Qt::black); - qApp->setPalette(p); - break; - } - - case Theme::System: { - qApp->setPalette(this->style()->standardPalette()); - qApp->setStyle(QStyleFactory::create("WindowsVista")); - qApp->setStyleSheet(""); - break; - } - } -} - -ConfigWindow::~ConfigWindow() { delete themeSelect; } \ No newline at end of file diff --git a/src/panda_qt/main.cpp b/src/panda_qt/main.cpp deleted file mode 100644 index 56391e65..00000000 --- a/src/panda_qt/main.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#include - -#include "panda_qt/main_window.hpp" -#include "panda_qt/screen.hpp" - -int main(int argc, char *argv[]) { - QApplication app(argc, argv); - MainWindow window(&app); - - window.show(); - return app.exec(); -} \ No newline at end of file diff --git a/src/panda_qt/main_window.cpp b/src/panda_qt/main_window.cpp deleted file mode 100644 index dff4c171..00000000 --- a/src/panda_qt/main_window.cpp +++ /dev/null @@ -1,417 +0,0 @@ -#include "panda_qt/main_window.hpp" - -#include -#include -#include -#include -#include -#include - -#include "cheats.hpp" - -MainWindow::MainWindow(QApplication* app, QWidget* parent) : QMainWindow(parent), screen(this) { - setWindowTitle("Alber"); - // Enable drop events for loading ROMs - setAcceptDrops(true); - resize(800, 240 * 4); - screen.show(); - - appRunning = true; - - // Set our menu bar up - menuBar = new QMenuBar(this); - setMenuBar(menuBar); - - // Create menu bar menus - auto fileMenu = menuBar->addMenu(tr("File")); - auto emulationMenu = menuBar->addMenu(tr("Emulation")); - auto toolsMenu = menuBar->addMenu(tr("Tools")); - auto aboutMenu = menuBar->addMenu(tr("About")); - - // Create and bind actions for them - auto loadGameAction = fileMenu->addAction(tr("Load game")); - auto loadLuaAction = fileMenu->addAction(tr("Load Lua script")); - auto openAppFolderAction = fileMenu->addAction(tr("Open Panda3DS folder")); - - connect(loadGameAction, &QAction::triggered, this, &MainWindow::selectROM); - connect(loadLuaAction, &QAction::triggered, this, &MainWindow::selectLuaFile); - connect(openAppFolderAction, &QAction::triggered, this, [this]() { - QString path = QString::fromStdU16String(emu->getAppDataRoot().u16string()); - QDesktopServices::openUrl(QUrl::fromLocalFile(path)); - }); - - auto pauseAction = emulationMenu->addAction(tr("Pause")); - auto resumeAction = emulationMenu->addAction(tr("Resume")); - auto resetAction = emulationMenu->addAction(tr("Reset")); - auto configureAction = emulationMenu->addAction(tr("Configure")); - connect(pauseAction, &QAction::triggered, this, [this]() { sendMessage(EmulatorMessage{.type = MessageType::Pause}); }); - connect(resumeAction, &QAction::triggered, this, [this]() { sendMessage(EmulatorMessage{.type = MessageType::Resume}); }); - connect(resetAction, &QAction::triggered, this, [this]() { sendMessage(EmulatorMessage{.type = MessageType::Reset}); }); - connect(configureAction, &QAction::triggered, this, [this]() { configWindow->show(); }); - - auto dumpRomFSAction = toolsMenu->addAction(tr("Dump RomFS")); - auto luaEditorAction = toolsMenu->addAction(tr("Open Lua Editor")); - auto cheatsEditorAction = toolsMenu->addAction(tr("Open Cheats Editor")); - connect(dumpRomFSAction, &QAction::triggered, this, &MainWindow::dumpRomFS); - connect(luaEditorAction, &QAction::triggered, this, &MainWindow::openLuaEditor); - connect(cheatsEditorAction, &QAction::triggered, this, &MainWindow::openCheatsEditor); - - auto aboutAction = aboutMenu->addAction(tr("About Panda3DS")); - connect(aboutAction, &QAction::triggered, this, &MainWindow::showAboutMenu); - - emu = new Emulator(); - emu->setOutputSize(screen.surfaceWidth, screen.surfaceHeight); - - // Set up misc objects - aboutWindow = new AboutWindow(nullptr); - configWindow = new ConfigWindow(this); - cheatsEditor = new CheatsWindow(emu, {}, this); - luaEditor = new TextEditorWindow(this, "script.lua", ""); - - auto args = QCoreApplication::arguments(); - if (args.size() > 1) { - auto romPath = std::filesystem::current_path() / args.at(1).toStdU16String(); - if (!emu->loadROM(romPath)) { - // For some reason just .c_str() doesn't show the proper path - Helpers::warn("Failed to load ROM file: %s", romPath.string().c_str()); - } - } - - // The emulator graphics context for the thread should be initialized in the emulator thread due to how GL contexts work - emuThread = std::thread([this]() { - const RendererType rendererType = emu->getConfig().rendererType; - usingGL = (rendererType == RendererType::OpenGL || rendererType == RendererType::Software || rendererType == RendererType::Null); - usingVk = (rendererType == RendererType::Vulkan); - - if (usingGL) { - // Make GL context current for this thread, enable VSync - GL::Context* glContext = screen.getGLContext(); - glContext->MakeCurrent(); - glContext->SetSwapInterval(emu->getConfig().vsyncEnabled ? 1 : 0); - - emu->initGraphicsContext(glContext); - } else if (usingVk) { - Helpers::panic("Vulkan on Qt is currently WIP, try the SDL frontend instead!"); - } else { - Helpers::panic("Unsupported graphics backend for Qt frontend!"); - } - - emuThreadMainLoop(); - }); -} - -void MainWindow::emuThreadMainLoop() { - while (appRunning) { - { - std::unique_lock lock(messageQueueMutex); - - // Dispatch all messages in the message queue - if (!messageQueue.empty()) { - for (const auto& msg : messageQueue) { - dispatchMessage(msg); - } - - messageQueue.clear(); - } - } - - emu->runFrame(); - if (emu->romType != ROMType::None) { - emu->getServiceManager().getHID().updateInputs(emu->getTicks()); - } - - swapEmuBuffer(); - } - - // Unbind GL context if we're using GL, otherwise some setups seem to be unable to join this thread - if (usingGL) { - screen.getGLContext()->DoneCurrent(); - } -} - -void MainWindow::swapEmuBuffer() { - if (usingGL) { - screen.getGLContext()->SwapBuffers(); - } else { - Helpers::panic("[Qt] Don't know how to swap buffers for the current rendering backend :("); - } -} - -void MainWindow::selectROM() { - auto path = - QFileDialog::getOpenFileName(this, tr("Select 3DS ROM to load"), "", tr("Nintendo 3DS ROMs (*.3ds *.cci *.cxi *.app *.3dsx *.elf *.axf)")); - - if (!path.isEmpty()) { - std::filesystem::path* p = new std::filesystem::path(path.toStdU16String()); - - EmulatorMessage message{.type = MessageType::LoadROM}; - message.path.p = p; - sendMessage(message); - } -} - -void MainWindow::selectLuaFile() { - auto path = QFileDialog::getOpenFileName(this, tr("Select Lua script to load"), "", tr("Lua scripts (*.lua *.txt)")); - - if (!path.isEmpty()) { - std::ifstream file(std::filesystem::path(path.toStdU16String()), std::ios::in); - - if (file.fail()) { - printf("Failed to load selected lua file\n"); - return; - } - - // Read whole file into an std::string string - // Get file size, preallocate std::string to avoid furthermemory allocations - std::string code; - file.seekg(0, std::ios::end); - code.resize(file.tellg()); - - // Rewind and read the whole file - file.seekg(0, std::ios::beg); - file.read(&code[0], code.size()); - file.close(); - - loadLuaScript(code); - // Copy the Lua script to the Lua editor - luaEditor->setText(code); - } -} - -// Cleanup when the main window closes -MainWindow::~MainWindow() { - appRunning = false; // Set our running atomic to false in order to make the emulator thread stop, and join it - - if (emuThread.joinable()) { - emuThread.join(); - } - - delete emu; - delete menuBar; - delete aboutWindow; - delete configWindow; - delete cheatsEditor; - delete luaEditor; -} - -// Send a message to the emulator thread. Lock the mutex and just push back to the vector. -void MainWindow::sendMessage(const EmulatorMessage& message) { - std::unique_lock lock(messageQueueMutex); - messageQueue.push_back(message); -} - -void MainWindow::dumpRomFS() { - auto folder = QFileDialog::getExistingDirectory( - this, tr("Select folder to dump RomFS files to"), "", QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks - ); - - if (folder.isEmpty()) { - return; - } - std::filesystem::path path(folder.toStdU16String()); - - messageQueueMutex.lock(); - RomFS::DumpingResult res = emu->dumpRomFS(path); - messageQueueMutex.unlock(); - - switch (res) { - case RomFS::DumpingResult::Success: break; // Yay! - case RomFS::DumpingResult::InvalidFormat: { - QMessageBox messageBox( - QMessageBox::Icon::Warning, tr("Invalid format for RomFS dumping"), - tr("The currently loaded app is not in a format that supports RomFS") - ); - - QAbstractButton* button = messageBox.addButton(tr("OK"), QMessageBox::ButtonRole::YesRole); - button->setIcon(QIcon(":/docs/img/rsob_icon.png")); - messageBox.exec(); - break; - } - - case RomFS::DumpingResult::NoRomFS: - QMessageBox::warning(this, tr("No RomFS found"), tr("No RomFS partition was found in the loaded app")); - break; - } -} - -void MainWindow::showAboutMenu() { - AboutWindow about(this); - about.exec(); -} - -void MainWindow::openLuaEditor() { luaEditor->show(); } -void MainWindow::openCheatsEditor() { cheatsEditor->show(); } - -void MainWindow::dispatchMessage(const EmulatorMessage& message) { - switch (message.type) { - case MessageType::LoadROM: - emu->loadROM(*message.path.p); - // Clean up the allocated path - delete message.path.p; - break; - - case MessageType::LoadLuaScript: - emu->getLua().loadString(*message.string.str); - delete message.string.str; - break; - - case MessageType::EditCheat: { - u32 handle = message.cheat.c->handle; - const std::vector& cheat = message.cheat.c->cheat; - const std::function& callback = message.cheat.c->callback; - bool isEditing = handle != Cheats::badCheatHandle; - if (isEditing) { - emu->getCheats().removeCheat(handle); - u32 handle = emu->getCheats().addCheat(cheat.data(), cheat.size()); - } else { - u32 handle = emu->getCheats().addCheat(cheat.data(), cheat.size()); - callback(handle); - } - delete message.cheat.c; - } break; - - case MessageType::Pause: emu->pause(); break; - case MessageType::Resume: emu->resume(); break; - case MessageType::TogglePause: emu->togglePause(); break; - case MessageType::Reset: emu->reset(Emulator::ReloadOption::Reload); break; - case MessageType::PressKey: emu->getServiceManager().getHID().pressKey(message.key.key); break; - case MessageType::ReleaseKey: emu->getServiceManager().getHID().releaseKey(message.key.key); break; - case MessageType::SetCirclePadX: emu->getServiceManager().getHID().setCirclepadX(message.circlepad.value); break; - case MessageType::SetCirclePadY: emu->getServiceManager().getHID().setCirclepadY(message.circlepad.value); break; - case MessageType::PressTouchscreen: - emu->getServiceManager().getHID().setTouchScreenPress(message.touchscreen.x, message.touchscreen.y); - break; - case MessageType::ReleaseTouchscreen: emu->getServiceManager().getHID().releaseTouchScreen(); break; - } -} - -void MainWindow::keyPressEvent(QKeyEvent* event) { - auto pressKey = [this](u32 key) { - EmulatorMessage message{.type = MessageType::PressKey}; - message.key.key = key; - sendMessage(message); - }; - - auto setCirclePad = [this](MessageType type, s16 value) { - EmulatorMessage message{.type = type}; - message.circlepad.value = value; - sendMessage(message); - }; - - switch (event->key()) { - case Qt::Key_L: pressKey(HID::Keys::A); break; - case Qt::Key_K: pressKey(HID::Keys::B); break; - case Qt::Key_O: pressKey(HID::Keys::X); break; - case Qt::Key_I: pressKey(HID::Keys::Y); break; - - case Qt::Key_Q: pressKey(HID::Keys::L); break; - case Qt::Key_P: pressKey(HID::Keys::R); break; - - case Qt::Key_W: setCirclePad(MessageType::SetCirclePadY, 0x9C); break; - case Qt::Key_A: setCirclePad(MessageType::SetCirclePadX, -0x9C); break; - case Qt::Key_S: setCirclePad(MessageType::SetCirclePadY, -0x9C); break; - case Qt::Key_D: setCirclePad(MessageType::SetCirclePadX, 0x9C); break; - - case Qt::Key_Right: pressKey(HID::Keys::Right); break; - case Qt::Key_Left: pressKey(HID::Keys::Left); break; - case Qt::Key_Up: pressKey(HID::Keys::Up); break; - case Qt::Key_Down: pressKey(HID::Keys::Down); break; - - case Qt::Key_Return: pressKey(HID::Keys::Start); break; - case Qt::Key_Backspace: pressKey(HID::Keys::Select); break; - case Qt::Key_F4: sendMessage(EmulatorMessage{.type = MessageType::TogglePause}); break; - case Qt::Key_F5: sendMessage(EmulatorMessage{.type = MessageType::Reset}); break; - } -} - -void MainWindow::keyReleaseEvent(QKeyEvent* event) { - auto releaseKey = [this](u32 key) { - EmulatorMessage message{.type = MessageType::ReleaseKey}; - message.key.key = key; - sendMessage(message); - }; - - auto releaseCirclePad = [this](MessageType type) { - EmulatorMessage message{.type = type}; - message.circlepad.value = 0; - sendMessage(message); - }; - - switch (event->key()) { - case Qt::Key_L: releaseKey(HID::Keys::A); break; - case Qt::Key_K: releaseKey(HID::Keys::B); break; - case Qt::Key_O: releaseKey(HID::Keys::X); break; - case Qt::Key_I: releaseKey(HID::Keys::Y); break; - - case Qt::Key_Q: releaseKey(HID::Keys::L); break; - case Qt::Key_P: releaseKey(HID::Keys::R); break; - - case Qt::Key_W: - case Qt::Key_S: releaseCirclePad(MessageType::SetCirclePadY); break; - - case Qt::Key_A: - case Qt::Key_D: releaseCirclePad(MessageType::SetCirclePadX); break; - - case Qt::Key_Right: releaseKey(HID::Keys::Right); break; - case Qt::Key_Left: releaseKey(HID::Keys::Left); break; - case Qt::Key_Up: releaseKey(HID::Keys::Up); break; - case Qt::Key_Down: releaseKey(HID::Keys::Down); break; - - case Qt::Key_Return: releaseKey(HID::Keys::Start); break; - case Qt::Key_Backspace: releaseKey(HID::Keys::Select); break; - } -} - -void MainWindow::mousePressEvent(QMouseEvent* event) { - if (event->button() == Qt::MouseButton::LeftButton) { - const QPointF clickPos = event->globalPosition(); - const QPointF widgetPos = screen.mapFromGlobal(clickPos); - - // Press is inside the screen area - if (widgetPos.x() >= 0 && widgetPos.x() < screen.width() && widgetPos.y() >= 0 && widgetPos.y() < screen.height()) { - // Go from widget positions to [0, 400) for x and [0, 480) for y - uint x = (uint)std::round(widgetPos.x() / screen.width() * 400.f); - uint y = (uint)std::round(widgetPos.y() / screen.height() * 480.f); - - // Check if touch falls in the touch screen area - if (y >= 240 && y <= 480 && x >= 40 && x < 40 + 320) { - // Convert to 3DS coordinates - u16 x_converted = static_cast(x) - 40; - u16 y_converted = static_cast(y) - 240; - - EmulatorMessage message{.type = MessageType::PressTouchscreen}; - message.touchscreen.x = x_converted; - message.touchscreen.y = y_converted; - sendMessage(message); - } else { - sendMessage(EmulatorMessage{.type = MessageType::ReleaseTouchscreen}); - } - } - } -} - -void MainWindow::mouseReleaseEvent(QMouseEvent* event) { - if (event->button() == Qt::MouseButton::LeftButton) { - sendMessage(EmulatorMessage{.type = MessageType::ReleaseTouchscreen}); - } -} - -void MainWindow::loadLuaScript(const std::string& code) { - EmulatorMessage message{.type = MessageType::LoadLuaScript}; - - // Make a copy of the code on the heap to send via the message queue - message.string.str = new std::string(code); - sendMessage(message); -} - -void MainWindow::editCheat(u32 handle, const std::vector& cheat, const std::function& callback) { - EmulatorMessage message{.type = MessageType::EditCheat}; - - CheatMessage* c = new CheatMessage(); - c->handle = handle; - c->cheat = cheat; - c->callback = callback; - - message.cheat.c = c; - sendMessage(message); -} \ No newline at end of file diff --git a/src/panda_qt/screen.cpp b/src/panda_qt/screen.cpp deleted file mode 100644 index 5a254e79..00000000 --- a/src/panda_qt/screen.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include "opengl.hpp" -// opengl.hpp must be included at the very top. This comment exists to make clang-format not reorder it :p -#include -#include -#include -#include -#include -#include -#include - -#if !defined(_WIN32) && !defined(APPLE) -#include -#endif - -#include "panda_qt/screen.hpp" - -// OpenGL screen widget, based on https://github.com/stenzek/duckstation/blob/master/src/duckstation-qt/displaywidget.cpp -// and https://github.com/melonDS-emu/melonDS/blob/master/src/frontend/qt_sdl/main.cpp - -#ifdef PANDA3DS_ENABLE_OPENGL -ScreenWidget::ScreenWidget(QWidget* parent) : QWidget(parent) { - // Create a native window for use with our graphics API of choice - resize(800, 240 * 4); - - setAutoFillBackground(false); - setAttribute(Qt::WA_NativeWindow, true); - setAttribute(Qt::WA_NoSystemBackground, true); - setAttribute(Qt::WA_PaintOnScreen, true); - setAttribute(Qt::WA_KeyCompression, false); - setFocusPolicy(Qt::StrongFocus); - setMouseTracking(true); - - if (!createGLContext()) { - Helpers::panic("Failed to create GL context for display"); - } -} - -bool ScreenWidget::createGLContext() { - // List of GL context versions we will try. Anything 4.1+ is good - static constexpr std::array versionsToTry = { - GL::Context::Version{GL::Context::Profile::Core, 4, 6}, GL::Context::Version{GL::Context::Profile::Core, 4, 5}, - GL::Context::Version{GL::Context::Profile::Core, 4, 4}, GL::Context::Version{GL::Context::Profile::Core, 4, 3}, - GL::Context::Version{GL::Context::Profile::Core, 4, 2}, GL::Context::Version{GL::Context::Profile::Core, 4, 1}, - }; - - std::optional windowInfo = getWindowInfo(); - if (windowInfo.has_value()) { - glContext = GL::Context::Create(*getWindowInfo(), versionsToTry); - glContext->DoneCurrent(); - } - - return glContext != nullptr; -} - -qreal ScreenWidget::devicePixelRatioFromScreen() const { - const QScreen* screenForRatio = window()->windowHandle()->screen(); - if (!screenForRatio) { - screenForRatio = QGuiApplication::primaryScreen(); - } - - return screenForRatio ? screenForRatio->devicePixelRatio() : static_cast(1); -} - -int ScreenWidget::scaledWindowWidth() const { - return std::max(static_cast(std::ceil(static_cast(width()) * devicePixelRatioFromScreen())), 1); -} - -int ScreenWidget::scaledWindowHeight() const { - return std::max(static_cast(std::ceil(static_cast(height()) * devicePixelRatioFromScreen())), 1); -} - -std::optional ScreenWidget::getWindowInfo() { - WindowInfo wi; - -// Windows and Apple are easy here since there's no display connection. -#if defined(_WIN32) - wi.type = WindowInfo::Type::Win32; - wi.window_handle = reinterpret_cast(winId()); -#elif defined(__APPLE__) - wi.type = WindowInfo::Type::MacOS; - wi.window_handle = reinterpret_cast(winId()); -#else - QPlatformNativeInterface* pni = QGuiApplication::platformNativeInterface(); - const QString platform_name = QGuiApplication::platformName(); - if (platform_name == QStringLiteral("xcb")) { - wi.type = WindowInfo::Type::X11; - wi.display_connection = pni->nativeResourceForWindow("display", windowHandle()); - wi.window_handle = reinterpret_cast(winId()); - } else if (platform_name == QStringLiteral("wayland")) { - wi.type = WindowInfo::Type::Wayland; - QWindow* handle = windowHandle(); - if (handle == nullptr) { - return std::nullopt; - } - - wi.display_connection = pni->nativeResourceForWindow("display", handle); - wi.window_handle = pni->nativeResourceForWindow("surface", handle); - } else { - qCritical() << "Unknown PNI platform " << platform_name; - return std::nullopt; - } -#endif - - wi.surface_width = static_cast(scaledWindowWidth()); - wi.surface_height = static_cast(scaledWindowHeight()); - wi.surface_scale = static_cast(devicePixelRatioFromScreen()); - - surfaceWidth = wi.surface_width; - surfaceHeight = wi.surface_height; - - return wi; -} -#endif \ No newline at end of file diff --git a/src/panda_qt/text_editor.cpp b/src/panda_qt/text_editor.cpp deleted file mode 100644 index a31a829f..00000000 --- a/src/panda_qt/text_editor.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "panda_qt/text_editor.hpp" - -#include -#include - -#include "panda_qt/main_window.hpp" - -using namespace Zep; - -TextEditorWindow::TextEditorWindow(QWidget* parent, const std::string& filename, const std::string& initialText) - : QDialog(parent), zepWidget(this, qApp->applicationDirPath().toStdString(), fontSize) { - resize(600, 600); - - // Register our extensions - ZepRegressExCommand::Register(zepWidget.GetEditor()); - ZepReplExCommand::Register(zepWidget.GetEditor(), &replProvider); - - // Default to standard mode instead of vim mode, initialize text box - zepWidget.GetEditor().InitWithText(filename, initialText); - zepWidget.GetEditor().SetGlobalMode(Zep::ZepMode_Standard::StaticName()); - - // Layout for widgets - QVBoxLayout* mainLayout = new QVBoxLayout(); - setLayout(mainLayout); - - QPushButton* button = new QPushButton(tr("Load script"), this); - button->setFixedSize(100, 20); - - // When the Load Script button is pressed, send the current text to the MainWindow, which will upload it to the emulator's lua object - connect(button, &QPushButton::pressed, this, [this]() { - if (parentWidget()) { - auto buffer = zepWidget.GetEditor().GetMRUBuffer(); - const std::string text = buffer->GetBufferText(buffer->Begin(), buffer->End()); - - static_cast(parentWidget())->loadLuaScript(text); - } else { - // This should be unreachable, only here for safety purposes - printf("Text editor does not have any parent widget, click doesn't work :(\n"); - } - }); - - mainLayout->addWidget(button); - mainLayout->addWidget(&zepWidget); -} diff --git a/src/panda_qt/zep.cpp b/src/panda_qt/zep.cpp deleted file mode 100644 index 570f0e64..00000000 --- a/src/panda_qt/zep.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#define ZEP_SINGLE_HEADER_BUILD -#include "zep.h" \ No newline at end of file diff --git a/src/panda_sdl/frontend_sdl.cpp b/src/panda_sdl/frontend_sdl.cpp deleted file mode 100644 index 04b582e1..00000000 --- a/src/panda_sdl/frontend_sdl.cpp +++ /dev/null @@ -1,348 +0,0 @@ -#include "panda_sdl/frontend_sdl.hpp" - -#include - -FrontendSDL::FrontendSDL() { - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) < 0) { - Helpers::panic("Failed to initialize SDL2"); - } - - // Make SDL use consistent positional button mapping - SDL_SetHint(SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS, "0"); - if (SDL_Init(SDL_INIT_GAMECONTROLLER) < 0) { - Helpers::warn("Failed to initialize SDL2 GameController: %s", SDL_GetError()); - } - - if (SDL_WasInit(SDL_INIT_GAMECONTROLLER)) { - gameController = SDL_GameControllerOpen(0); - - if (gameController != nullptr) { - SDL_Joystick* stick = SDL_GameControllerGetJoystick(gameController); - gameControllerID = SDL_JoystickInstanceID(stick); - } - } - - const EmulatorConfig& config = emu.getConfig(); - // We need OpenGL for software rendering or for OpenGL if it's enabled - bool needOpenGL = config.rendererType == RendererType::Software; -#ifdef PANDA3DS_ENABLE_OPENGL - needOpenGL = needOpenGL || (config.rendererType == RendererType::OpenGL); -#endif - - if (needOpenGL) { - // Demand 3.3 core for software renderer, or 4.1 core for OpenGL renderer (max available on MacOS) - // MacOS gets mad if we don't explicitly demand a core profile - SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, config.rendererType == RendererType::Software ? 3 : 4); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, config.rendererType == RendererType::Software ? 3 : 1); - window = SDL_CreateWindow("Alber", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 400, 480, SDL_WINDOW_OPENGL); - - if (window == nullptr) { - Helpers::panic("Window creation failed: %s", SDL_GetError()); - } - - glContext = SDL_GL_CreateContext(window); - if (glContext == nullptr) { - Helpers::panic("OpenGL context creation failed: %s", SDL_GetError()); - } - - if (!gladLoadGLLoader(reinterpret_cast(SDL_GL_GetProcAddress))) { - Helpers::panic("OpenGL init failed"); - } - - SDL_GL_SetSwapInterval(config.vsyncEnabled ? 1 : 0); - } - -#ifdef PANDA3DS_ENABLE_VULKAN - if (config.rendererType == RendererType::Vulkan) { - window = SDL_CreateWindow("Alber", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 400, 480, SDL_WINDOW_VULKAN); - - if (window == nullptr) { - Helpers::warn("Window creation failed: %s", SDL_GetError()); - } - } -#endif - - emu.initGraphicsContext(window); -} - -bool FrontendSDL::loadROM(const std::filesystem::path& path) { return emu.loadROM(path); } -void FrontendSDL::run() { emu.run(this); } - -void Emulator::run(void* frontend) { - FrontendSDL* frontendSDL = reinterpret_cast(frontend); - programRunning = true; - - while (programRunning) { -#ifdef PANDA3DS_ENABLE_HTTP_SERVER - httpServer.processActions(); -#endif - - runFrame(); - HIDService& hid = kernel.getServiceManager().getHID(); - - SDL_Event event; - while (SDL_PollEvent(&event)) { - namespace Keys = HID::Keys; - - switch (event.type) { - case SDL_QUIT: - printf("Bye :(\n"); - programRunning = false; - return; - - case SDL_KEYDOWN: - if (romType == ROMType::None) break; - - switch (event.key.keysym.sym) { - case SDLK_l: hid.pressKey(Keys::A); break; - case SDLK_k: hid.pressKey(Keys::B); break; - case SDLK_o: hid.pressKey(Keys::X); break; - case SDLK_i: hid.pressKey(Keys::Y); break; - - case SDLK_q: hid.pressKey(Keys::L); break; - case SDLK_p: hid.pressKey(Keys::R); break; - - case SDLK_RIGHT: hid.pressKey(Keys::Right); break; - case SDLK_LEFT: hid.pressKey(Keys::Left); break; - case SDLK_UP: hid.pressKey(Keys::Up); break; - case SDLK_DOWN: hid.pressKey(Keys::Down); break; - - case SDLK_w: - hid.setCirclepadY(0x9C); - keyboardAnalogY = true; - break; - - case SDLK_a: - hid.setCirclepadX(-0x9C); - keyboardAnalogX = true; - break; - - case SDLK_s: - hid.setCirclepadY(-0x9C); - keyboardAnalogY = true; - break; - - case SDLK_d: - hid.setCirclepadX(0x9C); - keyboardAnalogX = true; - break; - - case SDLK_RETURN: hid.pressKey(Keys::Start); break; - case SDLK_BACKSPACE: hid.pressKey(Keys::Select); break; - - // Use the F4 button as a hot-key to pause or resume the emulator - // We can't use the audio play/pause buttons because it's annoying - case SDLK_F4: { - togglePause(); - break; - } - - // Use F5 as a reset button - case SDLK_F5: { - reset(ReloadOption::Reload); - break; - } - } - break; - - case SDL_KEYUP: - if (romType == ROMType::None) break; - - switch (event.key.keysym.sym) { - case SDLK_l: hid.releaseKey(Keys::A); break; - case SDLK_k: hid.releaseKey(Keys::B); break; - case SDLK_o: hid.releaseKey(Keys::X); break; - case SDLK_i: hid.releaseKey(Keys::Y); break; - - case SDLK_q: hid.releaseKey(Keys::L); break; - case SDLK_p: hid.releaseKey(Keys::R); break; - - case SDLK_RIGHT: hid.releaseKey(Keys::Right); break; - case SDLK_LEFT: hid.releaseKey(Keys::Left); break; - case SDLK_UP: hid.releaseKey(Keys::Up); break; - case SDLK_DOWN: hid.releaseKey(Keys::Down); break; - - // Err this is probably not ideal - case SDLK_w: - case SDLK_s: - hid.setCirclepadY(0); - keyboardAnalogY = false; - break; - - case SDLK_a: - case SDLK_d: - hid.setCirclepadX(0); - keyboardAnalogX = false; - break; - - case SDLK_RETURN: hid.releaseKey(Keys::Start); break; - case SDLK_BACKSPACE: hid.releaseKey(Keys::Select); break; - } - break; - - case SDL_MOUSEBUTTONDOWN: - if (romType == ROMType::None) break; - - if (event.button.button == SDL_BUTTON_LEFT) { - const s32 x = event.button.x; - const s32 y = event.button.y; - - // Check if touch falls in the touch screen area - if (y >= 240 && y <= 480 && x >= 40 && x < 40 + 320) { - // Convert to 3DS coordinates - u16 x_converted = static_cast(x) - 40; - u16 y_converted = static_cast(y) - 240; - - hid.setTouchScreenPress(x_converted, y_converted); - } else { - hid.releaseTouchScreen(); - } - } else if (event.button.button == SDL_BUTTON_RIGHT) { - holdingRightClick = true; - } - - break; - - case SDL_MOUSEBUTTONUP: - if (romType == ROMType::None) break; - - if (event.button.button == SDL_BUTTON_LEFT) { - hid.releaseTouchScreen(); - } else if (event.button.button == SDL_BUTTON_RIGHT) { - holdingRightClick = false; - } - break; - - case SDL_CONTROLLERDEVICEADDED: - if (frontendSDL->gameController == nullptr) { - frontendSDL->gameController = SDL_GameControllerOpen(event.cdevice.which); - frontendSDL->gameControllerID = event.cdevice.which; - } - break; - - case SDL_CONTROLLERDEVICEREMOVED: - if (event.cdevice.which == frontendSDL->gameControllerID) { - SDL_GameControllerClose(frontendSDL->gameController); - frontendSDL->gameController = nullptr; - frontendSDL->gameControllerID = 0; - } - break; - - case SDL_CONTROLLERBUTTONUP: - case SDL_CONTROLLERBUTTONDOWN: { - if (romType == ROMType::None) break; - u32 key = 0; - - switch (event.cbutton.button) { - case SDL_CONTROLLER_BUTTON_A: key = Keys::B; break; - case SDL_CONTROLLER_BUTTON_B: key = Keys::A; break; - case SDL_CONTROLLER_BUTTON_X: key = Keys::Y; break; - case SDL_CONTROLLER_BUTTON_Y: key = Keys::X; break; - case SDL_CONTROLLER_BUTTON_LEFTSHOULDER: key = Keys::L; break; - case SDL_CONTROLLER_BUTTON_RIGHTSHOULDER: key = Keys::R; break; - case SDL_CONTROLLER_BUTTON_DPAD_LEFT: key = Keys::Left; break; - case SDL_CONTROLLER_BUTTON_DPAD_RIGHT: key = Keys::Right; break; - case SDL_CONTROLLER_BUTTON_DPAD_UP: key = Keys::Up; break; - case SDL_CONTROLLER_BUTTON_DPAD_DOWN: key = Keys::Down; break; - case SDL_CONTROLLER_BUTTON_BACK: key = Keys::Select; break; - case SDL_CONTROLLER_BUTTON_START: key = Keys::Start; break; - } - - if (key != 0) { - if (event.cbutton.state == SDL_PRESSED) { - hid.pressKey(key); - } else { - hid.releaseKey(key); - } - } - break; - } - - // Detect mouse motion events for gyroscope emulation - case SDL_MOUSEMOTION: { - if (romType == ROMType::None) break; - - // Handle "dragging" across the touchscreen - if (hid.isTouchScreenPressed()) { - const s32 x = event.motion.x; - const s32 y = event.motion.y; - - // Check if touch falls in the touch screen area and register the new touch screen position - if (y >= 240 && y <= 480 && x >= 40 && x < 40 + 320) { - // Convert to 3DS coordinates - u16 x_converted = static_cast(x) - 40; - u16 y_converted = static_cast(y) - 240; - - hid.setTouchScreenPress(x_converted, y_converted); - } - } - - // We use right click to indicate we want to rotate the console. If right click is not held, then this is not a gyroscope rotation - if (holdingRightClick) { - // Relative motion since last mouse motion event - const s32 motionX = event.motion.xrel; - const s32 motionY = event.motion.yrel; - - // The gyroscope involves lots of weird math I don't want to bother with atm - // So up until then, we will set the gyroscope euler angles to fixed values based on the direction of the relative motion - const s32 roll = motionX > 0 ? 0x7f : -0x7f; - const s32 pitch = motionY > 0 ? 0x7f : -0x7f; - hid.setRoll(roll); - hid.setPitch(pitch); - } - break; - } - - case SDL_DROPFILE: { - char* droppedDir = event.drop.file; - - if (droppedDir) { - const std::filesystem::path path(droppedDir); - - if (path.extension() == ".amiibo") { - loadAmiibo(path); - } else if (path.extension() == ".lua") { - lua.loadFile(droppedDir); - } else { - loadROM(path); - } - - SDL_free(droppedDir); - } - break; - } - } - } - - // Update controller analog sticks and HID service - if (romType != ROMType::None) { - if (frontendSDL->gameController != nullptr) { - const s16 stickX = SDL_GameControllerGetAxis(frontendSDL->gameController, SDL_CONTROLLER_AXIS_LEFTX); - const s16 stickY = SDL_GameControllerGetAxis(frontendSDL->gameController, SDL_CONTROLLER_AXIS_LEFTY); - constexpr s16 deadzone = 3276; - constexpr s16 maxValue = 0x9C; - constexpr s16 div = 0x8000 / maxValue; - - // Avoid overriding the keyboard's circlepad input - if (abs(stickX) < deadzone && !keyboardAnalogX) { - hid.setCirclepadX(0); - } else { - hid.setCirclepadX(stickX / div); - } - - if (abs(stickY) < deadzone && !keyboardAnalogY) { - hid.setCirclepadY(0); - } else { - hid.setCirclepadY(-(stickY / div)); - } - } - - hid.updateInputs(cpu.getTicks()); - } - // TODO: Should this be uncommented? - // kernel.evalReschedule(); - - SDL_GL_SwapWindow(frontendSDL->window); - } -} diff --git a/src/panda_sdl/main.cpp b/src/panda_sdl/main.cpp deleted file mode 100644 index ef354c61..00000000 --- a/src/panda_sdl/main.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "panda_sdl/frontend_sdl.hpp" - -int main(int argc, char *argv[]) { - FrontendSDL app; - - if (argc > 1) { - auto romPath = std::filesystem::current_path() / argv[1]; - if (!app.loadROM(romPath)) { - // For some reason just .c_str() doesn't show the proper path - Helpers::panic("Failed to load ROM file: %s", romPath.string().c_str()); - } - } else { - printf("No ROM inserted! Load a ROM by dragging and dropping it into the emulator window!\n"); - } - - app.run(); -} diff --git a/src/pandroid/.gitignore b/src/pandroid/.gitignore deleted file mode 100644 index aa724b77..00000000 --- a/src/pandroid/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -*.iml -.gradle -/local.properties -/.idea/caches -/.idea/libraries -/.idea/modules.xml -/.idea/workspace.xml -/.idea/navEditor.xml -/.idea/assetWizardSettings.xml -.DS_Store -/build -/captures -.externalNativeBuild -.cxx -local.properties diff --git a/src/pandroid/app/build.gradle.kts b/src/pandroid/app/build.gradle.kts deleted file mode 100644 index b67f9419..00000000 --- a/src/pandroid/app/build.gradle.kts +++ /dev/null @@ -1,56 +0,0 @@ -plugins { - id("com.android.application") -} - -android { - namespace = "com.panda3ds.pandroid" - compileSdk = 33 - - defaultConfig { - applicationId = "com.panda3ds.pandroid" - minSdk = 24 - targetSdk = 33 - versionCode = 1 - versionName = "1.0" - - testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" - - ndk { - abiFilters += listOf("x86_64", "arm64-v8a") - } - } - - buildTypes { - getByName("release") { - isMinifyEnabled = true - isShrinkResources = true - isDebuggable = false - signingConfig = signingConfigs.getByName("debug") - proguardFiles( - getDefaultProguardFile("proguard-android-optimize.txt"), - "proguard-rules.pro" - ) - } - getByName("debug") { - isMinifyEnabled = false - isShrinkResources = false - isDebuggable = true - proguardFiles( - getDefaultProguardFile("proguard-android-optimize.txt"), - "proguard-rules.pro" - ) - } - } - compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 - } -} - -dependencies { - implementation("androidx.appcompat:appcompat:1.6.1") - implementation("com.google.android.material:material:1.8.0") - implementation("androidx.preference:preference:1.2.1") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.code.gson:gson:2.10.1") -} diff --git a/src/pandroid/app/proguard-rules.pro b/src/pandroid/app/proguard-rules.pro deleted file mode 100644 index 31c24c5a..00000000 --- a/src/pandroid/app/proguard-rules.pro +++ /dev/null @@ -1,24 +0,0 @@ -# Pandroid Proguard Rules -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Keep all JNI and C++ related classes and methods --keepclasseswithmembernames class * { - native ; -} - -# Keep all native libraries and their methods --keep class * { - native ; -} - -# Keep all classes in the specified package and its subpackages --keep class com.panda3ds.pandroid.** {*;} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/src/pandroid/app/src/main/AndroidManifest.xml b/src/pandroid/app/src/main/AndroidManifest.xml deleted file mode 100644 index d47ae2bb..00000000 --- a/src/pandroid/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/assets/fonts/comic_mono.ttf b/src/pandroid/app/src/main/assets/fonts/comic_mono.ttf deleted file mode 100644 index 9bc7354e..00000000 Binary files a/src/pandroid/app/src/main/assets/fonts/comic_mono.ttf and /dev/null differ diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/AlberDriver.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/AlberDriver.java deleted file mode 100644 index f7a3394b..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/AlberDriver.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.panda3ds.pandroid; - -import android.content.Context; -import android.net.Uri; -import android.os.ParcelFileDescriptor; - -import com.panda3ds.pandroid.app.PandroidApplication; -import com.panda3ds.pandroid.utils.FileUtils; -import com.panda3ds.pandroid.utils.GameUtils; - -import java.util.Objects; - -public class AlberDriver { - AlberDriver() { super(); } - - public static native void Setup(); - public static native void Initialize(); - public static native void RunFrame(int fbo); - public static native boolean HasRomLoaded(); - public static native boolean LoadRom(String path); - public static native void Finalize(); - - public static native void KeyDown(int code); - public static native void KeyUp(int code); - public static native void SetCirclepadAxis(int x, int y); - public static native void TouchScreenUp(); - public static native void TouchScreenDown(int x, int y); - public static native void Pause(); - public static native void Resume(); - public static native void LoadLuaScript(String script); - public static native byte[] GetSmdh(); - - public static native void setShaderJitEnabled(boolean enable); - - public static int openDocument(String path, String mode) { - try { - mode = FileUtils.parseNativeMode(mode); - Context context = PandroidApplication.getAppContext(); - Uri uri = FileUtils.obtainUri(path); - ParcelFileDescriptor parcel; - if (Objects.equals(uri.getScheme(), "game")) { - if (mode.contains("w")) { - throw new IllegalArgumentException("Cannot open ROM file as writable"); - } - uri = FileUtils.obtainUri(GameUtils.getCurrentGame().getRealPath()); - } - parcel = context.getContentResolver().openFileDescriptor(uri, mode); - int fd = parcel.detachFd(); - parcel.close(); - - return fd; - } catch (Exception e) { - throw new RuntimeException(e); - } - } - static { System.loadLibrary("Alber"); } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/BaseActivity.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/BaseActivity.java deleted file mode 100644 index 6bbb2012..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/BaseActivity.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.panda3ds.pandroid.app; - -import android.os.Bundle; - -import androidx.annotation.Nullable; -import androidx.appcompat.app.AppCompatActivity; - -import com.google.android.material.color.DynamicColors; -import com.panda3ds.pandroid.data.config.GlobalConfig; - - -public class BaseActivity extends AppCompatActivity { - private int currentTheme = PandroidApplication.getThemeId(); - - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - applyTheme(); - super.onCreate(savedInstanceState); - } - - @Override - protected void onResume() { - super.onResume(); - - if (PandroidApplication.getThemeId() != currentTheme) { - recreate(); - } - } - - private void applyTheme() { - currentTheme = PandroidApplication.getThemeId(); - setTheme(currentTheme); - - if (GlobalConfig.get(GlobalConfig.KEY_APP_THEME) == GlobalConfig.THEME_ANDROID) { - DynamicColors.applyToActivityIfAvailable(this); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/GameActivity.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/GameActivity.java deleted file mode 100644 index 59a9a3a9..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/GameActivity.java +++ /dev/null @@ -1,182 +0,0 @@ -package com.panda3ds.pandroid.app; - -import android.app.ActivityManager; -import android.app.PictureInPictureParams; -import android.content.Intent; -import android.os.Build; -import android.os.Bundle; -import android.util.Rational; -import android.view.KeyEvent; -import android.view.MotionEvent; -import android.view.View; -import android.view.ViewGroup; -import android.view.WindowManager; -import android.widget.CheckBox; -import android.widget.FrameLayout; -import android.widget.Toast; - -import androidx.annotation.Nullable; - -import com.panda3ds.pandroid.AlberDriver; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.game.AlberInputListener; -import com.panda3ds.pandroid.app.game.DrawerFragment; -import com.panda3ds.pandroid.app.game.EmulatorCallback; -import com.panda3ds.pandroid.data.config.GlobalConfig; -import com.panda3ds.pandroid.input.InputHandler; -import com.panda3ds.pandroid.input.InputMap; -import com.panda3ds.pandroid.utils.Constants; -import com.panda3ds.pandroid.view.PandaGlSurfaceView; -import com.panda3ds.pandroid.view.PandaLayoutController; -import com.panda3ds.pandroid.view.ds.DsLayoutManager; -import com.panda3ds.pandroid.view.renderer.ConsoleRenderer; -import com.panda3ds.pandroid.view.utils.PerformanceView; - -public class GameActivity extends BaseActivity implements EmulatorCallback { - private final DrawerFragment drawerFragment = new DrawerFragment(); - private final AlberInputListener inputListener = new AlberInputListener(this); - private ConsoleRenderer renderer; - private int currentDsLayout; - - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - Intent intent = getIntent(); - if (!intent.hasExtra(Constants.ACTIVITY_PARAMETER_PATH)) { - setContentView(new FrameLayout(this)); - Toast.makeText(this, "Invalid rom path!", Toast.LENGTH_LONG).show(); - finish(); - return; - } - - PandaGlSurfaceView pandaSurface = new PandaGlSurfaceView(this, intent.getStringExtra(Constants.ACTIVITY_PARAMETER_PATH)); - setContentView(R.layout.game_activity); - - renderer = pandaSurface.getRenderer(); - - ((FrameLayout) findViewById(R.id.panda_gl_frame)) - .addView(pandaSurface, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); - - PandaLayoutController controllerLayout = findViewById(R.id.controller_layout); - controllerLayout.initialize(); - - ((CheckBox) findViewById(R.id.hide_screen_controller)).setOnCheckedChangeListener((buttonView, checked) -> { - changeOverlayVisibility(checked); - GlobalConfig.set(GlobalConfig.KEY_SCREEN_GAMEPAD_VISIBLE, checked); - }); - ((CheckBox) findViewById(R.id.hide_screen_controller)).setChecked(GlobalConfig.get(GlobalConfig.KEY_SCREEN_GAMEPAD_VISIBLE)); - - getSupportFragmentManager().beginTransaction().replace(R.id.drawer_fragment, drawerFragment).commitNow(); - - if (GlobalConfig.get(GlobalConfig.KEY_SHOW_PERFORMANCE_OVERLAY)) { - PerformanceView view = new PerformanceView(this); - ((FrameLayout) findViewById(R.id.panda_gl_frame)).addView(view, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); - } - swapScreens(GlobalConfig.get(GlobalConfig.KEY_CURRENT_DS_LAYOUT)); - } - - private void changeOverlayVisibility(boolean visible) { - findViewById(R.id.overlay_controller).setVisibility(visible ? View.VISIBLE : View.GONE); - findViewById(R.id.overlay_controller).invalidate(); - findViewById(R.id.overlay_controller).requestLayout(); - } - - @Override - protected void onResume() { - super.onResume(); - getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); - getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); - InputHandler.reset(); - InputHandler.setMotionDeadZone(InputMap.getDeadZone()); - InputHandler.setEventListener(inputListener); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) { - getTheme().applyStyle(R.style.GameActivityNavigationBar, true); - } - } - - private void enablePIP() { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - PictureInPictureParams.Builder builder = new PictureInPictureParams.Builder(); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { - builder.setAutoEnterEnabled(true); - builder.setSeamlessResizeEnabled(true); - } - - builder.setAspectRatio(new Rational(10, 14)); - enterPictureInPictureMode(builder.build()); - } - } - - @Override - protected void onPause() { - super.onPause(); - - InputHandler.reset(); - if (GlobalConfig.get(GlobalConfig.KEY_PICTURE_IN_PICTURE)) { - if (Build.VERSION.SDK_INT > Build.VERSION_CODES.O) { - enablePIP(); - } - } else { - drawerFragment.open(); - } - } - - @Override - public boolean dispatchKeyEvent(KeyEvent event) { - if ((!drawerFragment.isOpened()) && InputHandler.processKeyEvent(event)) { - return true; - } - - return super.dispatchKeyEvent(event); - } - - @Override - public void onBackPressed() { - if (drawerFragment.isOpened()) { - drawerFragment.close(); - } else { - drawerFragment.open(); - } - } - - @Override - public void swapScreens(int index) { - currentDsLayout = index; - GlobalConfig.set(GlobalConfig.KEY_CURRENT_DS_LAYOUT, index); - renderer.setLayout(DsLayoutManager.createLayout(currentDsLayout)); - } - - @Override - public boolean dispatchGenericMotionEvent(MotionEvent ev) { - if ((!drawerFragment.isOpened()) && InputHandler.processMotionEvent(ev)) { - return true; - } - - return super.dispatchGenericMotionEvent(ev); - } - - @Override - public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) { - super.onPictureInPictureModeChanged(isInPictureInPictureMode); - - changeOverlayVisibility(!isInPictureInPictureMode && GlobalConfig.get(GlobalConfig.KEY_SCREEN_GAMEPAD_VISIBLE)); - findViewById(R.id.hide_screen_controller).setVisibility(isInPictureInPictureMode ? View.INVISIBLE : View.VISIBLE); - - if (isInPictureInPictureMode) { - getWindow().getDecorView().postDelayed(drawerFragment::close, 250); - } else if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) { - ActivityManager manager = ((ActivityManager) getSystemService(ACTIVITY_SERVICE)); - manager.getAppTasks().forEach(ActivityManager.AppTask::moveToFront); - } - } - - @Override - protected void onDestroy() { - if (AlberDriver.HasRomLoaded()) { - AlberDriver.Finalize(); - } - - super.onDestroy(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/MainActivity.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/MainActivity.java deleted file mode 100644 index 1d57cdc5..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/MainActivity.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.panda3ds.pandroid.app; - -import android.os.Bundle; -import android.view.MenuItem; - -import androidx.annotation.NonNull; -import androidx.fragment.app.Fragment; -import androidx.fragment.app.FragmentManager; - -import com.google.android.material.navigation.NavigationBarView; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.main.GamesFragment; -import com.panda3ds.pandroid.app.main.SearchFragment; -import com.panda3ds.pandroid.app.main.SettingsFragment; - -public class MainActivity extends BaseActivity implements NavigationBarView.OnItemSelectedListener { - private final GamesFragment gamesFragment = new GamesFragment(); - private final SearchFragment searchFragment = new SearchFragment(); - private final SettingsFragment settingsFragment = new SettingsFragment(); - private NavigationBarView navigationBar; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - navigationBar = findViewById(R.id.navigation); - navigationBar.setOnItemSelectedListener(this); - navigationBar.postDelayed(() -> navigationBar.setSelectedItemId(navigationBar.getSelectedItemId()), 5); - } - - @Override - public void onBackPressed() { - if (navigationBar.getSelectedItemId() != R.id.games) { - navigationBar.setSelectedItemId(R.id.games); - } else { - super.onBackPressed(); - } - } - - @Override - public boolean onNavigationItemSelected(@NonNull MenuItem item) { - int id = item.getItemId(); - FragmentManager manager = getSupportFragmentManager(); - Fragment fragment; - if (id == R.id.games) { - fragment = gamesFragment; - } else if (id == R.id.search) { - fragment = searchFragment; - } else if (id == R.id.settings) { - fragment = settingsFragment; - } else { - return false; - } - - manager.beginTransaction().replace(R.id.fragment_container, fragment).commitNow(); - return true; - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PandroidApplication.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PandroidApplication.java deleted file mode 100644 index b0cdc935..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PandroidApplication.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.panda3ds.pandroid.app; - -import android.app.Application; -import android.content.Context; -import android.content.Intent; -import android.content.res.Configuration; -import android.content.res.Resources; - -import com.panda3ds.pandroid.AlberDriver; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.services.LoggerService; -import com.panda3ds.pandroid.data.config.GlobalConfig; -import com.panda3ds.pandroid.input.InputMap; -import com.panda3ds.pandroid.utils.GameUtils; - - -public class PandroidApplication extends Application { - private static Context appContext; - - @Override - public void onCreate() { - super.onCreate(); - appContext = this; - - GlobalConfig.initialize(); - GameUtils.initialize(); - InputMap.initialize(); - AlberDriver.Setup(); - - if (GlobalConfig.get(GlobalConfig.KEY_LOGGER_SERVICE)) { - startService(new Intent(this, LoggerService.class)); - } - } - - public static int getThemeId() { - switch (GlobalConfig.get(GlobalConfig.KEY_APP_THEME)) { - case GlobalConfig.THEME_LIGHT: - return R.style.Theme_Pandroid_Light; - case GlobalConfig.THEME_DARK: - return R.style.Theme_Pandroid_Dark; - case GlobalConfig.THEME_BLACK: - return R.style.Theme_Pandroid_Black; - } - - return R.style.Theme_Pandroid; - } - - public static boolean isDarkMode() { - switch (GlobalConfig.get(GlobalConfig.KEY_APP_THEME)) { - case GlobalConfig.THEME_DARK: - case GlobalConfig.THEME_BLACK: - return true; - case GlobalConfig.THEME_LIGHT: - return false; - } - - Resources res = Resources.getSystem(); - int nightFlags = res.getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK; - return nightFlags == Configuration.UI_MODE_NIGHT_YES; - } - - public static Context getAppContext() { return appContext; } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PreferenceActivity.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PreferenceActivity.java deleted file mode 100644 index 9bc9900b..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/PreferenceActivity.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.panda3ds.pandroid.app; - -import android.content.Context; -import android.content.Intent; -import android.os.Bundle; -import android.view.MenuItem; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.fragment.app.Fragment; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.utils.Constants; - -public class PreferenceActivity extends BaseActivity { - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - Intent intent = getIntent(); - - setContentView(R.layout.activity_preference); - setSupportActionBar(findViewById(R.id.toolbar)); - - getSupportActionBar().setDisplayHomeAsUpEnabled(true); - - if (!intent.hasExtra(Constants.ACTIVITY_PARAMETER_FRAGMENT)) { - finish(); - return; - } - - try { - Class clazz = getClassLoader().loadClass(intent.getStringExtra(Constants.ACTIVITY_PARAMETER_FRAGMENT)); - Fragment fragment = (Fragment) clazz.newInstance(); - fragment.setArguments(intent.getExtras()); - getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, fragment).commitNow(); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - public static void launch(Context context, Class clazz) { - launch(context, clazz, new Intent()); - } - - public static void launch(Context context, Class clazz, Intent extras) { - context.startActivity(new Intent(context, PreferenceActivity.class) - .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) - .putExtras(extras) - .putExtra(Constants.ACTIVITY_PARAMETER_FRAGMENT, clazz.getName())); - } - - @Override - public boolean onOptionsItemSelected(@NonNull MenuItem item) { - if (item.getItemId() == android.R.id.home) { - finish(); - } - - return super.onOptionsItemSelected(item); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BasePreferenceFragment.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BasePreferenceFragment.java deleted file mode 100644 index 9426c098..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BasePreferenceFragment.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.panda3ds.pandroid.app.base; - -import android.annotation.SuppressLint; - -import androidx.annotation.StringRes; -import androidx.appcompat.app.ActionBar; -import androidx.appcompat.app.AppCompatActivity; -import androidx.preference.Preference; -import androidx.preference.PreferenceFragmentCompat; -import androidx.preference.SwitchPreferenceCompat; - -import com.panda3ds.pandroid.lang.Function; - - -public abstract class BasePreferenceFragment extends PreferenceFragmentCompat { - @SuppressLint("RestrictedApi") - protected void setItemClick(String key, Function listener) { - findPreference(key).setOnPreferenceClickListener(preference -> { - listener.run(preference); - getPreferenceScreen().performClick(); - return false; - }); - } - - protected void setSwitchValue(String id, boolean value) { - ((SwitchPreferenceCompat)findPreference(id)).setChecked(value); - } - - protected void setActivityTitle(@StringRes int titleId) { - ActionBar header = ((AppCompatActivity) requireActivity()).getSupportActionBar(); - if (header != null) { - header.setTitle(titleId); - } - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BaseSheetDialog.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BaseSheetDialog.java deleted file mode 100644 index 76e5208b..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BaseSheetDialog.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.panda3ds.pandroid.app.base; - -import android.content.Context; -import android.util.TypedValue; -import android.view.LayoutInflater; -import android.view.View; -import android.widget.LinearLayout; - -import androidx.annotation.NonNull; - -import com.google.android.material.bottomsheet.BottomSheetDialog; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.utils.CompatUtils; - -import org.jetbrains.annotations.NotNull; - -public class BaseSheetDialog extends BottomSheetDialog { - private final LinearLayout contentView; - public BaseSheetDialog(@NonNull Context context) { - super(CompatUtils.findActivity(context)); - - int width = CompatUtils.findActivity(context).getWindow().getDecorView().getMeasuredWidth(); - int height = CompatUtils.findActivity(context).getWindow().getDecorView().getMeasuredHeight(); - float heightScale = 0.87f; // What percentage of the screen's height to use up - - getBehavior().setPeekHeight((int) (height * heightScale)); - getBehavior().setMaxHeight((int) (height * heightScale)); - getBehavior().setMaxWidth(width); - - super.setContentView(R.layout.dialog_bottom_sheet); - contentView = super.findViewById(R.id.content); - } - - @Override - public void setContentView(View view) { - contentView.removeAllViews(); - contentView.addView(view); - } - - @Override - public void setContentView(int layoutResId) { - setContentView(LayoutInflater.from(getContext()).inflate(layoutResId, null, false)); - } - - @NotNull - @Override - public T findViewById(int id) { - return contentView.findViewById(id); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BottomAlertDialog.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BottomAlertDialog.java deleted file mode 100644 index 7c5470f1..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BottomAlertDialog.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.panda3ds.pandroid.app.base; - -import android.content.Context; -import android.view.Gravity; -import android.view.ViewGroup; - -import androidx.annotation.NonNull; -import androidx.appcompat.app.AlertDialog; -import androidx.appcompat.widget.AppCompatEditText; -import androidx.appcompat.widget.LinearLayoutCompat; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.lang.Function; - -public class BottomAlertDialog extends AlertDialog.Builder { - private final LinearLayoutCompat layoutCompat; - - public BottomAlertDialog(@NonNull Context context) { - super(context, R.style.AlertDialog); - layoutCompat = new LinearLayoutCompat(context); - layoutCompat.setOrientation(LinearLayoutCompat.VERTICAL); - - int padding = getContext().getResources().getDimensionPixelSize(androidx.appcompat.R.dimen.abc_dialog_padding_material); - layoutCompat.setPadding(padding, 0, padding, 0); - - setView(layoutCompat); - } - - @NonNull - @Override - public AlertDialog create() { - AlertDialog dialog = super.create(); - dialog.getWindow().setGravity(Gravity.BOTTOM | Gravity.CENTER); - dialog.getWindow().getAttributes().y = Math.round(getContext().getResources().getDisplayMetrics().density * 15); - return dialog; - } - - public BottomAlertDialog setTextInput(String hint, Function listener) { - AppCompatEditText edit = new AppCompatEditText(getContext()); - edit.setHint(hint); - int margin = layoutCompat.getPaddingLeft() / 2; - LinearLayoutCompat.LayoutParams params = new LinearLayoutCompat.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT); - params.setMargins(0, margin, 0, margin); - layoutCompat.addView(edit, params); - setPositiveButton(android.R.string.ok, (dialog, which) -> listener.run(String.valueOf(edit.getText()))); - setNegativeButton(android.R.string.cancel, (dialog, which) -> dialog.dismiss()); - return this; - } - - @Override - public AlertDialog show() { - AlertDialog dialog = create(); - dialog.show(); - - return dialog; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BottomDialogFragment.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BottomDialogFragment.java deleted file mode 100644 index 4e54dc61..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/BottomDialogFragment.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.panda3ds.pandroid.app.base; - -import android.app.Dialog; -import android.os.Bundle; -import android.view.Gravity; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.fragment.app.DialogFragment; - -import com.panda3ds.pandroid.R; - -public class BottomDialogFragment extends DialogFragment { - @Override - public int getTheme() { - return R.style.AlertDialog; - } - - @NonNull - @Override - public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { - Dialog dialog = super.onCreateDialog(savedInstanceState); - dialog.getWindow().setGravity(Gravity.CENTER | Gravity.BOTTOM); - dialog.getWindow().getAttributes().y = Math.round(getContext().getResources().getDisplayMetrics().density * 15); - - return dialog; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/GameAboutDialog.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/GameAboutDialog.java deleted file mode 100644 index 7fd6ed36..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/GameAboutDialog.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.panda3ds.pandroid.app.base; - -import android.content.ComponentName; -import android.content.Context; -import android.content.Intent; -import android.net.Uri; -import android.os.Bundle; -import android.view.View; -import android.widget.TextView; - -import androidx.annotation.NonNull; -import androidx.core.content.pm.ShortcutInfoCompat; -import androidx.core.content.pm.ShortcutManagerCompat; -import androidx.core.graphics.drawable.IconCompat; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.PandroidApplication; -import com.panda3ds.pandroid.app.game.GameLauncher; -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.utils.CompatUtils; -import com.panda3ds.pandroid.utils.FileUtils; -import com.panda3ds.pandroid.utils.GameUtils; -import com.panda3ds.pandroid.view.gamesgrid.GameIconView; - -public class GameAboutDialog extends BaseSheetDialog { - private final GameMetadata game; - public GameAboutDialog(@NonNull Context context, GameMetadata game) { - super(context); - this.game = game; - } - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.dialog_game_about); - - ((GameIconView) findViewById(R.id.game_icon)).setImageBitmap(game.getIcon()); - ((TextView) findViewById(R.id.game_title)).setText(game.getTitle()); - ((TextView) findViewById(R.id.game_publisher)).setText(game.getPublisher()); - ((TextView) findViewById(R.id.region)).setText(game.getRegions()[0].localizedName()); - ((TextView) findViewById(R.id.directory)).setText(FileUtils.obtainUri(game.getRealPath()).getPath()); - findViewById(R.id.play).setOnClickListener(v -> { - dismiss(); - GameUtils.launch(getContext(), game); - }); - findViewById(R.id.shortcut).setOnClickListener(v -> { - dismiss(); - makeShortcut(); - }); - - if (game.getRomPath().startsWith("folder:")) { - findViewById(R.id.remove).setVisibility(View.GONE); - } else { - findViewById(R.id.remove).setOnClickListener(v -> { - dismiss(); - if (game.getRomPath().startsWith("elf:")) { - FileUtils.delete(game.getRealPath()); - } - GameUtils.removeGame(game); - }); - } - } - - // Make a shortcut for a specific game - private void makeShortcut() { - Context context = CompatUtils.findActivity(getContext()); - ShortcutInfoCompat.Builder shortcut = new ShortcutInfoCompat.Builder(context, game.getId()); - if (game.getIcon() != null) { - shortcut.setIcon(IconCompat.createWithAdaptiveBitmap(game.getIcon())); - } else { - shortcut.setIcon(IconCompat.createWithResource(getContext(), R.mipmap.ic_launcher)); - } - - shortcut.setActivity(new ComponentName(context, GameLauncher.class)); - shortcut.setLongLabel(game.getTitle()); - shortcut.setShortLabel(game.getTitle()); - Intent intent = new Intent(PandroidApplication.getAppContext(), GameLauncher.class); - intent.setAction(Intent.ACTION_VIEW); - intent.setData(new Uri.Builder().scheme("pandroid-game").authority(game.getId()).build()); - shortcut.setIntent(intent); - ShortcutManagerCompat.requestPinShortcut(context, shortcut.build(), null); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/LoadingAlertDialog.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/LoadingAlertDialog.java deleted file mode 100644 index 881d12cf..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/base/LoadingAlertDialog.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.panda3ds.pandroid.app.base; - -import android.content.Context; -import android.view.LayoutInflater; -import android.view.View; - -import androidx.annotation.NonNull; -import androidx.annotation.StringRes; -import androidx.appcompat.widget.AppCompatTextView; - -import com.panda3ds.pandroid.R; - -public class LoadingAlertDialog extends BottomAlertDialog { - public LoadingAlertDialog(@NonNull Context context, @StringRes int title) { - super(context); - View view = LayoutInflater.from(context).inflate(R.layout.dialog_loading, null, false); - setView(view); - setCancelable(false); - ((AppCompatTextView)view.findViewById(R.id.title)) - .setText(title); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/editor/CodeEditorActivity.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/editor/CodeEditorActivity.java deleted file mode 100644 index e5ced4b4..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/editor/CodeEditorActivity.java +++ /dev/null @@ -1,196 +0,0 @@ -package com.panda3ds.pandroid.app.editor; - -import android.annotation.SuppressLint; -import android.app.Activity; -import android.content.Context; -import android.content.Intent; -import android.graphics.Rect; -import android.os.Bundle; -import android.view.KeyEvent; -import android.view.View; -import android.view.inputmethod.InputMethodManager; - -import androidx.activity.result.contract.ActivityResultContract; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.widget.AppCompatTextView; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.BaseActivity; -import com.panda3ds.pandroid.app.base.BottomAlertDialog; -import com.panda3ds.pandroid.lang.Task; -import com.panda3ds.pandroid.utils.FileUtils; -import com.panda3ds.pandroid.view.code.CodeEditor; -import com.panda3ds.pandroid.view.code.syntax.CodeSyntax; - -import java.io.Serializable; - -public class CodeEditorActivity extends BaseActivity { - private static final String TAB = " "; - private String path; - private String fileName; - private CodeEditor editor; - private AppCompatTextView title; - private View saveButton; - private boolean changed = false; - - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_code_editor); - Arguments args = (Arguments) getIntent().getSerializableExtra("args"); - - editor = findViewById(R.id.editor); - getWindow().getDecorView().getViewTreeObserver().addOnGlobalLayoutListener(this::onGlobalLayoutChanged); - - path = args.path; - fileName = args.fileName; - title = findViewById(R.id.title); - title.setText(fileName); - - saveButton = findViewById(R.id.save); - - saveButton.setVisibility(View.GONE); - saveButton.setOnClickListener(v -> save()); - - new Task(() -> { - String content = FileUtils.readTextFile(path + "/" + fileName); - - editor.post(() -> { - editor.setText(content); - editor.setSyntax(CodeSyntax.getFromFilename(fileName)); - editor.setOnContentChangedListener(this::onDocumentContentChanged); - }); - }).start(); - - switch (args.type) { - case LUA_SCRIPT_EDITOR: - setupLuaPatchEditor(); - break; - case READ_ONLY_EDITOR: - setupReadOnlyEditor(); - break; - } - - onGlobalLayoutChanged(); - - findViewById(R.id.key_hide).setOnClickListener(v -> { - ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(v.getWindowToken(), 0); - }); - findViewById(R.id.key_tab).setOnClickListener(v -> { - editor.insert(TAB); - }); - } - - // Detect virtual keyboard is visible - private void onGlobalLayoutChanged() { - View view = getWindow().getDecorView(); - Rect rect = new Rect(); - view.getWindowVisibleDisplayFrame(rect); - int currentHeight = rect.height(); - int height = view.getHeight(); - - if (currentHeight < height * 0.8) { - findViewById(R.id.keybar).setVisibility(View.VISIBLE); - } else { - findViewById(R.id.keybar).setVisibility(View.GONE); - } - } - - private void setupReadOnlyEditor() { - editor.setEnabled(false); - editor.setFocusable(false); - } - - private void setupLuaPatchEditor() { - findViewById(R.id.lua_toolbar).setVisibility(View.VISIBLE); - findViewById(R.id.lua_play).setOnClickListener(v -> { - if (changed) { - save(); - } - setResult(Activity.RESULT_OK, new Intent(Result.ACTION_PLAY.name())); - finish(); - }); - } - - @SuppressLint("SetTextI18n") - private void onDocumentContentChanged() { - changed = true; - - title.setText("*" + fileName); - saveButton.setVisibility(View.VISIBLE); - } - - public void save() { - title.setText(fileName); - saveButton.setVisibility(View.GONE); - - changed = false; - new Task(() -> FileUtils.writeTextFile(path, fileName, String.valueOf(editor.getText()))).runSync(); - } - - @Override - public boolean dispatchKeyEvent(KeyEvent event) { - if (event.getKeyCode() == KeyEvent.KEYCODE_TAB) { - if (event.getAction() == KeyEvent.ACTION_UP) { - editor.insert(TAB); - } - - return true; - } - - return super.dispatchKeyEvent(event); - } - - @Override - public void onBackPressed() { - if (changed) { - new BottomAlertDialog(this) - .setNeutralButton(android.R.string.cancel, (dialog, which) -> dialog.dismiss()) - .setPositiveButton(R.string.save_and_exit, (dialog, which) -> { - save(); - finish(); - }) - .setNegativeButton(R.string.exit_without_saving, (dialog, which) -> finish()) - .setTitle(String.format(getString(R.string.exit_without_saving_title_ff), fileName)).show(); - } else { - super.onBackPressed(); - } - } - - public static final class Arguments implements Serializable { - private final String path; - private final String fileName; - private final EditorType type; - - public Arguments(String path, String fileName, EditorType type) { - this.path = path; - this.fileName = fileName; - this.type = type; - } - } - - public enum Result { - ACTION_PLAY, - NULL - } - - public enum EditorType { - LUA_SCRIPT_EDITOR, - READ_ONLY_EDITOR, - TEXT_EDITOR - } - - public static final class Contract extends ActivityResultContract { - @NonNull - @Override - public Intent createIntent(@NonNull Context context, Arguments args) { - return new Intent(context, CodeEditorActivity.class).putExtra("args", args); - } - - @Override - public Result parseResult(int i, @Nullable Intent intent) { - return i == RESULT_OK && intent != null ? Result.valueOf(intent.getAction()) : Result.NULL; - } - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/AlberInputListener.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/AlberInputListener.java deleted file mode 100644 index ca63f7ba..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/AlberInputListener.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.panda3ds.pandroid.app.game; - -import com.panda3ds.pandroid.AlberDriver; -import com.panda3ds.pandroid.input.InputEvent; -import com.panda3ds.pandroid.input.InputMap; -import com.panda3ds.pandroid.input.KeyName; -import com.panda3ds.pandroid.lang.Function; -import com.panda3ds.pandroid.math.Vector2; - -import java.util.Objects; - - -public class AlberInputListener implements Function { - private final EmulatorCallback emulator; - public AlberInputListener(EmulatorCallback emulator) { this.emulator = emulator; } - - private final Vector2 axis = new Vector2(0.0f, 0.0f); - - @Override - public void run(InputEvent event) { - KeyName key = InputMap.relative(event.getName()); - - if (Objects.equals(event.getName(), "KEYCODE_BACK")) { - emulator.onBackPressed(); - return; - } - - if (key == KeyName.NULL) { - return; - } - - boolean axisChanged = false; - - switch (key) { - case AXIS_UP: - axis.y = event.getValue(); - axisChanged = true; - break; - case AXIS_DOWN: - axis.y = -event.getValue(); - axisChanged = true; - break; - case AXIS_LEFT: - axis.x = -event.getValue(); - axisChanged = true; - break; - case AXIS_RIGHT: - axis.x = event.getValue(); - axisChanged = true; - break; - case CHANGE_DS_LAYOUT: - if (!event.isDown()) { - emulator.swapScreens(); - } - break; - default: - if (event.isDown()) { - AlberDriver.KeyDown(key.getKeyId()); - } else { - AlberDriver.KeyUp(key.getKeyId()); - } - break; - } - - if (axisChanged) { - AlberDriver.SetCirclepadAxis(Math.round(axis.x * 0x9C), Math.round(axis.y * 0x9C)); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/DrawerFragment.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/DrawerFragment.java deleted file mode 100644 index 736a2cdc..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/DrawerFragment.java +++ /dev/null @@ -1,137 +0,0 @@ -package com.panda3ds.pandroid.app.game; - -import android.graphics.Color; -import android.graphics.drawable.ColorDrawable; -import android.os.Build; -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.MenuItem; -import android.view.View; -import android.view.ViewGroup; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.widget.AppCompatTextView; -import androidx.drawerlayout.widget.DrawerLayout; -import androidx.fragment.app.Fragment; -import android.content.pm.ActivityInfo; - -import com.google.android.material.navigation.NavigationView; -import com.panda3ds.pandroid.AlberDriver; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.utils.GameUtils; -import com.panda3ds.pandroid.view.gamesgrid.GameIconView; - -public class DrawerFragment extends Fragment implements DrawerLayout.DrawerListener, NavigationView.OnNavigationItemSelectedListener { - private DrawerLayout drawerContainer; - private View drawerLayout; - private EmulatorCallback emulator; - private GameMetadata game; - - @Nullable - @Override - public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - emulator = ((EmulatorCallback) requireActivity()); - drawerContainer = requireActivity().findViewById(R.id.drawer_container); - drawerContainer.removeDrawerListener(this); - drawerContainer.addDrawerListener(this); - drawerContainer.setScrimColor(Color.argb(160, 0,0,0)); - drawerContainer.setVisibility(View.GONE); - - return inflater.inflate(R.layout.fragment_game_drawer, container, false); - } - - @Override - public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - drawerContainer.setVisibility(View.GONE); - drawerLayout = view.findViewById(R.id.drawer_layout); - - ((NavigationView)view.findViewById(R.id.menu)).setNavigationItemSelectedListener(this); - refresh(); - } - - private void refresh() { - game = GameUtils.getCurrentGame(); - if (game.getIcon() != null && !game.getIcon().isRecycled()) { - ((GameIconView) drawerLayout.findViewById(R.id.game_icon)).setImageBitmap(game.getIcon()); - } else { - ((GameIconView) drawerLayout.findViewById(R.id.game_icon)).setImageDrawable(new ColorDrawable(Color.TRANSPARENT)); - } - ((AppCompatTextView)drawerLayout.findViewById(R.id.game_title)).setText(game.getTitle()); - ((AppCompatTextView)drawerLayout.findViewById(R.id.game_publisher)).setText(game.getPublisher()); - } - - @Override - public void onDetach() { - if (drawerContainer != null) { - drawerContainer.removeDrawerListener(this); - } - - super.onDetach(); - } - - private void refreshLayout() { - drawerContainer.measure(View.MeasureSpec.EXACTLY, View.MeasureSpec.EXACTLY); - drawerContainer.requestLayout(); - drawerContainer.invalidate(); - drawerContainer.forceLayout(); - } - - public void open() { - if (!drawerContainer.isOpen()) { - drawerContainer.setVisibility(View.VISIBLE); - drawerContainer.open(); - drawerContainer.postDelayed(this::refreshLayout, 20); - refresh(); - } - } - - public void close() { - if (drawerContainer.isOpen()) { - drawerContainer.close(); - } - } - - @Override - public void onDrawerSlide(@NonNull View drawerView, float slideOffset) {} - - @Override - public void onDrawerOpened(@NonNull View drawerView) { - AlberDriver.Pause(); - } - - @Override - public void onDrawerClosed(@NonNull View drawerView) { - drawerContainer.setVisibility(View.GONE); - AlberDriver.Resume(); - } - - @Override - public void onDrawerStateChanged(int newState) {} - - @Override - public boolean onNavigationItemSelected(@NonNull MenuItem item) { - int id = item.getItemId(); - if (id == R.id.resume) { - close(); - } else if (id == R.id.ds_switch) { - emulator.swapScreens(); - close(); - } else if (id == R.id.exit) { - requireActivity().finishAndRemoveTask(); - } else if (id == R.id.lua_script) { - new LuaDialogFragment().show(getParentFragmentManager(), null); - } else if (id == R.id.change_orientation) { - boolean isLandscape = getResources().getDisplayMetrics().widthPixels > getResources().getDisplayMetrics().heightPixels; - requireActivity().setRequestedOrientation(isLandscape ? ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT : ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE); - } - - return false; - } - - public boolean isOpened() { - return drawerContainer.isOpen(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/EmulatorCallback.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/EmulatorCallback.java deleted file mode 100644 index b2f57baf..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/EmulatorCallback.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.panda3ds.pandroid.app.game; - -import com.panda3ds.pandroid.data.config.GlobalConfig; - -public interface EmulatorCallback { - void onBackPressed(); - void swapScreens(int index); - - default void swapScreens() { - swapScreens(GlobalConfig.get(GlobalConfig.KEY_CURRENT_DS_LAYOUT) + 1); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/GameLauncher.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/GameLauncher.java deleted file mode 100644 index 63fe99c4..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/GameLauncher.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.panda3ds.pandroid.app.game; - -import android.net.Uri; -import android.os.Bundle; -import android.widget.TextView; -import android.widget.Toast; - -import androidx.annotation.Nullable; -import androidx.core.content.pm.ShortcutManagerCompat; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.BaseActivity; -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.utils.GameUtils; - -import java.util.Arrays; - -public class GameLauncher extends BaseActivity { - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(new TextView(this)); - Uri uri = getIntent().getData(); - if (uri != null && uri.getScheme().equals("pandroid-game")) { - String gameId = uri.getAuthority(); - GameMetadata game = GameUtils.findGameById(gameId); - - if (game != null) { - GameUtils.launch(this, game); - } else { - Toast.makeText(this, R.string.invalid_game, Toast.LENGTH_LONG).show(); - ShortcutManagerCompat.removeDynamicShortcuts(this, Arrays.asList(gameId)); - ShortcutManagerCompat.removeLongLivedShortcuts(this, Arrays.asList(gameId)); - } - } - - finish(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/LuaDialogFragment.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/LuaDialogFragment.java deleted file mode 100644 index 1d573e42..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/game/LuaDialogFragment.java +++ /dev/null @@ -1,185 +0,0 @@ -package com.panda3ds.pandroid.app.game; - -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.TextView; -import android.widget.Toast; - -import androidx.activity.result.ActivityResultLauncher; -import androidx.activity.result.contract.ActivityResultContracts; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.recyclerview.widget.RecyclerView; - -import com.panda3ds.pandroid.AlberDriver; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.base.BottomAlertDialog; -import com.panda3ds.pandroid.app.base.BottomDialogFragment; -import com.panda3ds.pandroid.app.editor.CodeEditorActivity; -import com.panda3ds.pandroid.lang.Task; -import com.panda3ds.pandroid.utils.Constants; -import com.panda3ds.pandroid.utils.FileUtils; -import com.panda3ds.pandroid.view.recycler.AutoFitGridLayout; -import com.panda3ds.pandroid.view.recycler.SimpleListAdapter; - -import java.util.ArrayList; -import java.util.UUID; - -public class LuaDialogFragment extends BottomDialogFragment { - private final SimpleListAdapter adapter = new SimpleListAdapter<>(R.layout.holder_lua_script, this::onCreateListItem); - private ActivityResultLauncher codeEditorLauncher; - private LuaFile currentEditorFile; - - private ActivityResultLauncher openDocumentLauncher; - - @Nullable - @Override - public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - return inflater.inflate(R.layout.dialog_lua_scripts, container, false); - } - - - @Override - public void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - openDocumentLauncher = registerForActivityResult(new ActivityResultContracts.OpenDocument(), result -> { - if (result != null) { - String fileName = FileUtils.getName(result.toString()); - - if (fileName.toLowerCase().endsWith(".lua")) { - new Task(() -> { - String content = FileUtils.readTextFile(result.toString()); - createFile(FileUtils.getName(result.toString()), content); - }).start(); - } else { - Toast.makeText(getContext(), R.string.file_not_supported, Toast.LENGTH_SHORT).show(); - } - } - }); - - codeEditorLauncher = registerForActivityResult(new CodeEditorActivity.Contract(), result -> { - if (result != null) { - switch (result) { - case ACTION_PLAY: - loadScript(currentEditorFile); - break; - } - } - - orderByModified(); - }); - } - - @Override - public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - view.findViewById(R.id.open_file).setOnClickListener(v -> { - openDocumentLauncher.launch(new String[]{"*/*"}); - }); - view.findViewById(R.id.create).setOnClickListener(v -> { - new BottomAlertDialog(requireContext()) - .setTextInput(getString(R.string.name), arg -> { - String name = arg.trim(); - if (name.length() > 1) { - new Task(() -> { - LuaFile file = createFile(name, ""); - currentEditorFile = file; - codeEditorLauncher.launch(new CodeEditorActivity.Arguments(file.path, file.name, CodeEditorActivity.EditorType.LUA_SCRIPT_EDITOR)); - }).start(); - } - }).setTitle(R.string.create_new) - .show(); - }); - - ((RecyclerView) view.findViewById(R.id.recycler)).setAdapter(adapter); - ((RecyclerView) view.findViewById(R.id.recycler)).setLayoutManager(new AutoFitGridLayout(getContext(), 140)); - ArrayList files = new ArrayList<>(); - String path = FileUtils.getResourcePath(Constants.RESOURCE_FOLDER_LUA_SCRIPTS); - for (String file : FileUtils.listFiles(path)) { - files.add(new LuaFile(file)); - } - - adapter.addAll(files); - orderByModified(); - } - - private LuaFile createFile(String name, String content) { - if (name.toLowerCase().endsWith(".lua")) { - name = name.substring(0, name.length() - 4); - } - - name = name.replaceAll("[^[a-zA-Z0-9-_ ]]", "-"); - - String fileName = name + "." + UUID.randomUUID().toString().substring(0, 4) + ".lua"; - LuaFile file = new LuaFile(fileName); - FileUtils.writeTextFile(file.path, fileName, content); - getView().post(() -> { - adapter.addAll(file); - orderByModified(); - }); - - return file; - } - - private void orderByModified() { - adapter.sort((o1, o2) -> Long.compare(o2.lastModified(), o1.lastModified())); - } - - private void onCreateListItem(int position, LuaFile file, View view) { - ((TextView) view.findViewById(R.id.title)) - .setText(file.name.split("\\.")[0]); - - view.setOnClickListener(v -> loadScript(file)); - view.findViewById(R.id.edit).setOnClickListener(v -> { - currentEditorFile = file; - codeEditorLauncher.launch(new CodeEditorActivity.Arguments(file.path, file.name, CodeEditorActivity.EditorType.LUA_SCRIPT_EDITOR)); - }); - } - - private void loadScript(LuaFile file) { - dismiss(); - - Toast.makeText(getContext(), String.format(getString(R.string.running_ff), file.name), Toast.LENGTH_SHORT).show(); - new Task(() -> { - String script = FileUtils.readTextFile(file.absolutePath()); - file.update(); - AlberDriver.LoadLuaScript(script); - }).start(); - } - - @Override - public void onDestroy() { - super.onDestroy(); - - openDocumentLauncher.unregister(); - codeEditorLauncher.unregister(); - } - - private static class LuaFile { - private final String name; - private final String path; - - private LuaFile(String path, String name) { - this.name = name; - this.path = path; - } - - private LuaFile(String name) { - this(FileUtils.getResourcePath(Constants.RESOURCE_FOLDER_LUA_SCRIPTS), name); - } - - private String absolutePath() { - return path + "/" + name; - } - - private void update() { - FileUtils.updateFile(absolutePath()); - } - - private long lastModified() { - return FileUtils.getLastModified(absolutePath()); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/GamesFragment.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/GamesFragment.java deleted file mode 100644 index 337780b0..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/GamesFragment.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.panda3ds.pandroid.app.main; - -import android.net.Uri; -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.Toast; -import androidx.activity.result.ActivityResultCallback; -import androidx.activity.result.ActivityResultLauncher; -import androidx.activity.result.contract.ActivityResultContracts; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.app.AlertDialog; -import androidx.fragment.app.Fragment; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.base.GameAboutDialog; -import com.panda3ds.pandroid.app.base.LoadingAlertDialog; -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.lang.Task; -import com.panda3ds.pandroid.utils.Constants; -import com.panda3ds.pandroid.utils.FileUtils; -import com.panda3ds.pandroid.utils.GameUtils; -import com.panda3ds.pandroid.view.gamesgrid.GamesGridView; -import java.util.UUID; - -public class GamesFragment extends Fragment implements ActivityResultCallback { - private final ActivityResultContracts.OpenDocument openRomContract = new ActivityResultContracts.OpenDocument(); - private ActivityResultLauncher pickFileRequest; - private GamesGridView gameListView; - - @Nullable - @Override - public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - return inflater.inflate(R.layout.fragment_games, container, false); - } - - @Override - public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - gameListView = view.findViewById(R.id.games); - gameListView.setItemLongClick((game)->{ - GameAboutDialog dialog = new GameAboutDialog(requireActivity(), game); - dialog.setOnDismissListener((x)-> { - gameListView.setGameList(GameUtils.getGames()); - }); - dialog.show(); - }); - - view.findViewById(R.id.add_rom).setOnClickListener((v) -> pickFileRequest.launch(new String[] {"*/*"})); - } - - @Override - public void onResume() { - super.onResume(); - gameListView.setGameList(GameUtils.getGames()); - } - - @Override - public void onActivityResult(Uri result) { - if (result != null) { - String uri = result.toString(); - if (GameUtils.findByRomPath(uri) == null) { - if (!FileUtils.exists(uri)) { - Toast.makeText(getContext(), "Invalid file path", Toast.LENGTH_LONG).show(); - return; - } - - String extension = FileUtils.extension(uri); - - // For ELF and AXF files the emulator core uses the C++ iostreams API to be compatible with elfio unlike other file types - // As such, instead of writing more SAF code for operating with iostreams we just copy the ELF/AXF file to our own private directory - // And use it without caring about SAF - if (extension.equals("elf") || extension.endsWith("axf")) { - importELF(uri); - } else { - FileUtils.makeUriPermanent(uri, FileUtils.MODE_READ); - - GameMetadata game = new GameMetadata(uri, FileUtils.getName(uri).split("\\.")[0], getString(R.string.unknown)); - GameUtils.addGame(game); - GameUtils.launch(requireActivity(), game); - } - } - } - } - - private void importELF(String uri) { - AlertDialog dialog = new LoadingAlertDialog(requireActivity(), R.string.loading).create(); - dialog.show(); - new Task(() -> { - String uuid = UUID.randomUUID().toString() + "." + FileUtils.extension(uri); - String name = FileUtils.getName(uri); - FileUtils.copyFile(uri, FileUtils.getResourcePath(Constants.RESOURCE_FOLDER_ELF), uuid); - gameListView.post(() -> { - dialog.hide(); - GameMetadata game = new GameMetadata("elf://" + uuid, name.substring(0, name.length() - 4).trim(), ""); - GameUtils.addGame(game); - GameUtils.launch(requireActivity(), game); - }); - }).start(); - } - - @Override - public void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - pickFileRequest = registerForActivityResult(openRomContract, this); - } - - @Override - public void onDestroy() { - if (pickFileRequest != null) { - pickFileRequest.unregister(); - pickFileRequest = null; - } - - super.onDestroy(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/SearchFragment.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/SearchFragment.java deleted file mode 100644 index 6c2ee024..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/SearchFragment.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.panda3ds.pandroid.app.main; - -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.widget.AppCompatEditText; -import androidx.fragment.app.Fragment; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.base.GameAboutDialog; -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.utils.GameUtils; -import com.panda3ds.pandroid.utils.SearchAgent; -import com.panda3ds.pandroid.view.SimpleTextWatcher; -import com.panda3ds.pandroid.view.gamesgrid.GamesGridView; -import java.util.ArrayList; -import java.util.List; - - -public class SearchFragment extends Fragment { - private final SearchAgent searchAgent = new SearchAgent(); - private GamesGridView gamesListView; - - @Nullable - @Override - public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - return inflater.inflate(R.layout.fragment_search, container, false); - } - - @Override - public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - - gamesListView = view.findViewById(R.id.games); - gamesListView.setItemLongClick((game)->{ - GameAboutDialog dialog = new GameAboutDialog(requireActivity(), game); - dialog.setOnDismissListener((x)-> search(((AppCompatEditText) view.findViewById(R.id.search_bar)).getText().toString())); - dialog.show(); - }); - ((AppCompatEditText) view.findViewById(R.id.search_bar)).addTextChangedListener((SimpleTextWatcher) this::search); - } - - @Override - public void onResume() { - super.onResume(); - searchAgent.clearBuffer(); - for (GameMetadata game : GameUtils.getGames()) { - searchAgent.addToBuffer(game.getId(), game.getTitle(), game.getPublisher()); - } - - search(""); - } - - private void search(String query) { - List resultIds = searchAgent.search(query); - ArrayList games = new ArrayList<>(GameUtils.getGames()); - Object[] resultObj = games.stream().filter(gameMetadata -> resultIds.contains(gameMetadata.getId())).toArray(); - - games.clear(); - for (Object res : resultObj) { - games.add((GameMetadata) res); - } - - gamesListView.setGameList(games); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/SettingsFragment.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/SettingsFragment.java deleted file mode 100644 index fe35bad0..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/main/SettingsFragment.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.panda3ds.pandroid.app.main; - -import android.content.Context; -import android.os.Bundle; - -import androidx.annotation.Nullable; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.PandroidApplication; -import com.panda3ds.pandroid.app.PreferenceActivity; -import com.panda3ds.pandroid.app.base.BasePreferenceFragment; -import com.panda3ds.pandroid.app.preferences.GeneralPreferences; -import com.panda3ds.pandroid.app.preferences.AdvancedPreferences; -import com.panda3ds.pandroid.app.preferences.InputPreferences; - -public class SettingsFragment extends BasePreferenceFragment { - @Override - public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { - setPreferencesFromResource(R.xml.start_preferences, rootKey); - findPreference("application").setSummary(getVersionName()); - setItemClick("input", (item) -> PreferenceActivity.launch(requireContext(), InputPreferences.class)); - setItemClick("general", (item)-> PreferenceActivity.launch(requireContext(), GeneralPreferences.class)); - setItemClick("advanced", (item)-> PreferenceActivity.launch(requireContext(), AdvancedPreferences.class)); - } - - private String getVersionName() { - try { - Context context = PandroidApplication.getAppContext(); - return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName; - } catch (Exception e) { - return "Error: Unknown version"; - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/AdvancedPreferences.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/AdvancedPreferences.java deleted file mode 100644 index 176bab14..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/AdvancedPreferences.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.panda3ds.pandroid.app.preferences; - -import android.content.Context; -import android.content.Intent; -import android.os.Bundle; -import android.os.Build; - -import androidx.annotation.Nullable; -import androidx.preference.SwitchPreferenceCompat; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.PandroidApplication; -import com.panda3ds.pandroid.app.base.BasePreferenceFragment; -import com.panda3ds.pandroid.app.services.LoggerService; -import com.panda3ds.pandroid.data.config.GlobalConfig; - -public class AdvancedPreferences extends BasePreferenceFragment { - @Override - public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { - setPreferencesFromResource(R.xml.advanced_preferences, rootKey); - setActivityTitle(R.string.advanced_options); - - setItemClick("performanceMonitor", pref -> GlobalConfig.set(GlobalConfig.KEY_SHOW_PERFORMANCE_OVERLAY, ((SwitchPreferenceCompat) pref).isChecked())); - setItemClick("shaderJit", pref -> GlobalConfig.set(GlobalConfig.KEY_SHADER_JIT, ((SwitchPreferenceCompat) pref).isChecked())); - setItemClick("loggerService", pref -> { - boolean checked = ((SwitchPreferenceCompat) pref).isChecked(); - Context ctx = PandroidApplication.getAppContext(); - if (checked) { - ctx.startService(new Intent(ctx, LoggerService.class)); - } else { - ctx.stopService(new Intent(ctx, LoggerService.class)); - } - GlobalConfig.set(GlobalConfig.KEY_LOGGER_SERVICE, checked); - }); - - refresh(); - } - - @Override - public void onResume() { - super.onResume(); - refresh(); - } - - private void refresh() { - ((SwitchPreferenceCompat) findPreference("performanceMonitor")).setChecked(GlobalConfig.get(GlobalConfig.KEY_SHOW_PERFORMANCE_OVERLAY)); - ((SwitchPreferenceCompat) findPreference("loggerService")).setChecked(GlobalConfig.get(GlobalConfig.KEY_LOGGER_SERVICE)); - ((SwitchPreferenceCompat) findPreference("shaderJit")).setChecked(GlobalConfig.get(GlobalConfig.KEY_SHADER_JIT)); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/ControllerMapperPreferences.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/ControllerMapperPreferences.java deleted file mode 100644 index f643c88f..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/ControllerMapperPreferences.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.panda3ds.pandroid.app.preferences; - -import android.content.pm.ActivityInfo; -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.Toast; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.fragment.app.Fragment; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.BaseActivity; -import com.panda3ds.pandroid.app.base.BottomAlertDialog; -import com.panda3ds.pandroid.view.controller.mapping.ControllerMapper; -import com.panda3ds.pandroid.view.controller.mapping.ControllerProfileManager; -import com.panda3ds.pandroid.view.controller.mapping.ControllerItem; -import com.panda3ds.pandroid.view.controller.mapping.Profile; - -public class ControllerMapperPreferences extends Fragment { - private Profile currentProfile; - private ControllerMapper mapper; - private View saveButton; - - @Nullable - @Override - public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - return inflater.inflate(R.layout.preference_controller_mapper, container, false); - } - - @Override - public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - - - currentProfile = ControllerProfileManager.get(getArguments().getString("profile")).clone(); - - if (((BaseActivity)requireActivity()).getSupportActionBar() != null) { - ((BaseActivity) requireActivity()).getSupportActionBar().hide(); - } - mapper = view.findViewById(R.id.mapper); - mapper.initialize(this::onLocationChanged, currentProfile); - - view.findViewById(R.id.change_visibility).setOnClickListener(v -> { - BottomAlertDialog builder = new BottomAlertDialog(v.getContext()); - builder.setTitle("Visibility"); - boolean[] visibleList = { - currentProfile.isVisible(ControllerItem.START), - currentProfile.isVisible(ControllerItem.SELECT), - currentProfile.isVisible(ControllerItem.L), - currentProfile.isVisible(ControllerItem.R), - currentProfile.isVisible(ControllerItem.DPAD), - currentProfile.isVisible(ControllerItem.JOYSTICK), - currentProfile.isVisible(ControllerItem.GAMEPAD), - }; - builder.setMultiChoiceItems(new CharSequence[]{ - "Start", "Select", "L", "R", "Dpad", getString(R.string.axis), "A/B/X/Y" - }, visibleList, (dialog, index, visibility) -> { - visibleList[index] = visibility; - }).setPositiveButton(android.R.string.ok, (dialog, which) -> { - - saveButton.setVisibility(View.VISIBLE); - - currentProfile.setVisible(ControllerItem.START, visibleList[0]); - currentProfile.setVisible(ControllerItem.SELECT, visibleList[1]); - currentProfile.setVisible(ControllerItem.L, visibleList[2]); - currentProfile.setVisible(ControllerItem.R, visibleList[3]); - currentProfile.setVisible(ControllerItem.DPAD, visibleList[4]); - currentProfile.setVisible(ControllerItem.JOYSTICK, visibleList[5]); - currentProfile.setVisible(ControllerItem.GAMEPAD, visibleList[6]); - - mapper.refreshLayout(); - }).setNegativeButton(android.R.string.cancel, (dialog, which) -> dialog.dismiss()); - builder.show(); - }); - - saveButton = view.findViewById(R.id.save); - saveButton.setOnClickListener(v -> { - ControllerProfileManager.add(currentProfile); - Toast.makeText(v.getContext(), R.string.saved, Toast.LENGTH_SHORT).show(); - requireActivity().finish(); - }); - - view.findViewById(R.id.delete).setOnClickListener(v -> { - ControllerProfileManager.remove(currentProfile.getId()); - requireActivity().finish(); - }); - - view.findViewById(R.id.rotate).setOnClickListener(v -> { - requireActivity().setRequestedOrientation(mapper.getCurrentWidth() > mapper.getCurrentHeight() ? ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT : ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE); - }); - - view.findViewById(R.id.delete).setVisibility(ControllerProfileManager.getProfileCount() > 1 ? View.VISIBLE : View.GONE); - - saveButton.setVisibility(View.GONE); - } - - public void onLocationChanged(ControllerItem id) { - saveButton.setVisibility(View.VISIBLE); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/GamesFoldersPreferences.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/GamesFoldersPreferences.java deleted file mode 100644 index ec162c56..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/GamesFoldersPreferences.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.panda3ds.pandroid.app.preferences; - -import android.annotation.SuppressLint; -import android.net.Uri; -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.widget.TextView; - -import androidx.activity.result.ActivityResultCallback; -import androidx.activity.result.ActivityResultLauncher; -import androidx.activity.result.contract.ActivityResultContracts; -import androidx.annotation.Nullable; -import androidx.preference.Preference; -import androidx.preference.PreferenceScreen; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.base.BasePreferenceFragment; -import com.panda3ds.pandroid.app.base.BaseSheetDialog; -import com.panda3ds.pandroid.data.game.GamesFolder; -import com.panda3ds.pandroid.utils.FileUtils; -import com.panda3ds.pandroid.utils.GameUtils; - -public class GamesFoldersPreferences extends BasePreferenceFragment implements ActivityResultCallback { - private final ActivityResultContracts.OpenDocumentTree openFolderContract = new ActivityResultContracts.OpenDocumentTree(); - private ActivityResultLauncher pickFolderRequest; - - @Override - public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { - setPreferencesFromResource(R.xml.empty_preferences, rootKey); - setActivityTitle(R.string.pref_game_folders); - refreshList(); - pickFolderRequest = registerForActivityResult(openFolderContract, this); - } - - @SuppressLint("RestrictedApi") - private void refreshList() { - GamesFolder[] folders = GameUtils.getFolders(); - PreferenceScreen screen = getPreferenceScreen(); - screen.removeAll(); - for (GamesFolder folder : folders) { - Preference preference = new Preference(screen.getContext()); - preference.setOnPreferenceClickListener((item) -> { - showFolderInfo(folder); - screen.performClick(); - return false; - }); - preference.setTitle(FileUtils.getName(folder.getPath())); - preference.setSummary(String.format(getString(R.string.games_count_f), folder.getGames().size())); - preference.setIcon(R.drawable.ic_folder); - screen.addPreference(preference); - } - - Preference pref = new Preference(screen.getContext()); - pref.setTitle(R.string.import_folder); - pref.setIcon(R.drawable.ic_add); - pref.setOnPreferenceClickListener(preference -> { - pickFolderRequest.launch(null); - return false; - }); - screen.addPreference(pref); - } - - private void showFolderInfo(GamesFolder folder) { - BaseSheetDialog dialog = new BaseSheetDialog(requireActivity()); - View layout = LayoutInflater.from(requireActivity()).inflate(R.layout.dialog_games_folder, null, false); - dialog.setContentView(layout); - - ((TextView) layout.findViewById(R.id.name)).setText(FileUtils.getName(folder.getPath())); - ((TextView) layout.findViewById(R.id.directory)).setText(FileUtils.obtainUri(folder.getPath()).getPath()); - ((TextView) layout.findViewById(R.id.games)).setText(String.valueOf(folder.getGames().size())); - - layout.findViewById(R.id.ok).setOnClickListener(v -> dialog.dismiss()); - layout.findViewById(R.id.remove).setOnClickListener(v -> { - dialog.dismiss(); - GameUtils.removeFolder(folder); - refreshList(); - }); - - dialog.show(); - } - - @Override - public void onDestroy() { - super.onDestroy(); - - if (pickFolderRequest != null) { - pickFolderRequest.unregister(); - pickFolderRequest = null; - } - } - - @Override - public void onActivityResult(Uri result) { - if (result != null) { - FileUtils.makeUriPermanent(result.toString(), "r"); - GameUtils.registerFolder(result.toString()); - refreshList(); - } - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/GeneralPreferences.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/GeneralPreferences.java deleted file mode 100644 index 0b003db9..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/GeneralPreferences.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.panda3ds.pandroid.app.preferences; - -import android.os.Bundle; - -import androidx.annotation.Nullable; -import androidx.preference.SwitchPreferenceCompat; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.PreferenceActivity; -import com.panda3ds.pandroid.app.base.BasePreferenceFragment; -import com.panda3ds.pandroid.app.preferences.screen_editor.ScreenLayoutsPreference; -import com.panda3ds.pandroid.data.config.GlobalConfig; - -public class GeneralPreferences extends BasePreferenceFragment { - @Override - public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { - setPreferencesFromResource(R.xml.general_preference, rootKey); - setItemClick("appearance.theme", (pref) -> new ThemeSelectorDialog(requireActivity()).show()); - setItemClick("appearance.ds", (pref) -> PreferenceActivity.launch(requireActivity(), ScreenLayoutsPreference.class)); - setItemClick("games.folders", (pref) -> PreferenceActivity.launch(requireActivity(), GamesFoldersPreferences.class)); - setItemClick("behavior.pictureInPicture", (pref)-> GlobalConfig.set(GlobalConfig.KEY_PICTURE_IN_PICTURE, ((SwitchPreferenceCompat)pref).isChecked())); - setActivityTitle(R.string.general); - refresh(); - } - - @Override - public void onResume() { - super.onResume(); - refresh(); - } - - private void refresh() { - setSwitchValue("behavior.pictureInPicture", GlobalConfig.get(GlobalConfig.KEY_PICTURE_IN_PICTURE)); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputMapActivity.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputMapActivity.java deleted file mode 100644 index dce56a5f..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputMapActivity.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.panda3ds.pandroid.app.preferences; - -import android.content.Context; -import android.content.Intent; -import android.os.Bundle; -import android.view.KeyEvent; -import android.view.MotionEvent; -import android.widget.Toast; - -import androidx.activity.result.contract.ActivityResultContract; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.BaseActivity; -import com.panda3ds.pandroid.input.InputEvent; -import com.panda3ds.pandroid.input.InputHandler; - -import java.util.Objects; - -public class InputMapActivity extends BaseActivity { - @Override - protected void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_input_map); - } - - @Override - protected void onResume() { - super.onResume(); - - InputHandler.reset(); - InputHandler.setMotionDeadZone(0.8f); - InputHandler.setEventListener(this::onInputEvent); - } - - @Override - protected void onPause() { - super.onPause(); - InputHandler.reset(); - } - - @Override - public boolean dispatchGenericMotionEvent(MotionEvent ev) { - return InputHandler.processMotionEvent(ev); - } - - @Override - public boolean dispatchKeyEvent(KeyEvent event) { - return InputHandler.processKeyEvent(event); - } - - private void onInputEvent(InputEvent event) { - if (Objects.equals(event.getName(), "KEYCODE_BACK")) { - onBackPressed(); - return; - } - setResult(RESULT_OK, new Intent(event.getName())); - Toast.makeText(this, event.getName(), Toast.LENGTH_SHORT).show(); - finish(); - } - - - public static final class Contract extends ActivityResultContract { - @NonNull - @Override - public Intent createIntent(@NonNull Context context, String s) { - return new Intent(context, InputMapActivity.class); - } - - @Override - public String parseResult(int i, @Nullable Intent intent) { - return i == RESULT_OK ? intent.getAction() : null; - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputMapPreferences.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputMapPreferences.java deleted file mode 100644 index 10fa10f9..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputMapPreferences.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.panda3ds.pandroid.app.preferences; - -import android.content.Context; -import android.os.Bundle; - -import androidx.activity.result.ActivityResultCallback; -import androidx.activity.result.ActivityResultLauncher; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.preference.Preference; -import androidx.preference.SeekBarPreference; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.BaseActivity; -import com.panda3ds.pandroid.app.base.BasePreferenceFragment; -import com.panda3ds.pandroid.input.InputMap; -import com.panda3ds.pandroid.input.KeyName; - -public class InputMapPreferences extends BasePreferenceFragment implements ActivityResultCallback { - - private ActivityResultLauncher requestKey; - private String currentKey; - - private SeekBarPreference deadZonePreference; - - @Override - public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { - setPreferencesFromResource(R.xml.input_map_preferences, rootKey); - - setActivityTitle(R.string.controller_mapping); - - for (KeyName key : KeyName.values()) { - if (key == KeyName.NULL) { - continue; - } - - setItemClick(key.name(), this::onItemPressed); - } - - deadZonePreference = getPreferenceScreen().findPreference("dead_zone"); - - deadZonePreference.setOnPreferenceChangeListener((preference, value) -> { - InputMap.setDeadZone(((int)value / 100.0f)); - refreshList(); - - return false; - }); - - refreshList(); - } - - @Override - public void onCreate(@Nullable Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - } - - @Override - public void onAttach(@NonNull Context context) { - super.onAttach(context); - requestKey = registerForActivityResult(new InputMapActivity.Contract(), this); - } - - @Override - public void onDetach() { - super.onDetach(); - - if (requestKey != null) { - requestKey.unregister(); - requestKey = null; - } - } - - private void onItemPressed(Preference pref) { - currentKey = pref.getKey(); - requestKey.launch(null); - } - - @Override - public void onResume() { - super.onResume(); - refreshList(); - } - - private void refreshList() { - deadZonePreference.setValue((int)(InputMap.getDeadZone() * 100)); - deadZonePreference.setSummary(deadZonePreference.getValue() + "%"); - - for (KeyName key : KeyName.values()) { - if (key == KeyName.NULL) { - continue; - } - - findPreference(key.name()).setSummary(InputMap.relative(key)); - } - } - - @Override - public void onActivityResult(String result) { - if (result != null) { - InputMap.set(KeyName.valueOf(currentKey), result); - refreshList(); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputPreferences.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputPreferences.java deleted file mode 100644 index cc89accd..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/InputPreferences.java +++ /dev/null @@ -1,109 +0,0 @@ -package com.panda3ds.pandroid.app.preferences; - -import android.annotation.SuppressLint; -import android.content.Intent; -import android.os.Bundle; -import android.widget.Toast; - -import androidx.annotation.Nullable; -import androidx.preference.Preference; -import androidx.preference.PreferenceCategory; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.BaseActivity; -import com.panda3ds.pandroid.app.PreferenceActivity; -import com.panda3ds.pandroid.app.base.BasePreferenceFragment; -import com.panda3ds.pandroid.app.base.BottomAlertDialog; -import com.panda3ds.pandroid.view.controller.mapping.ControllerProfileManager; -import com.panda3ds.pandroid.view.controller.mapping.Profile; - -import java.util.List; -import java.util.Objects; - -public class InputPreferences extends BasePreferenceFragment { - - public static final String ID_DEFAULT_CONTROLLER_PROFILE = "defaultControllerProfile"; - public static final String ID_INPUT_MAP = "inputMap"; - public static final String ID_CREATE_PROFILE = "createProfile"; - private static final CharSequence ID_GAMEPAD_PROFILE_LIST = "gamepadProfileList"; - - @Override - public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { - setPreferencesFromResource(R.xml.input_preference, rootKey); - setItemClick(ID_INPUT_MAP, (item) -> PreferenceActivity.launch(requireContext(), InputMapPreferences.class)); - setItemClick(ID_CREATE_PROFILE, (item) -> { - new BottomAlertDialog(requireContext()) - .setTextInput(getString(R.string.name), (name) -> { - name = formatName(name); - if (name.length() > 0) { - Profile profile = ControllerProfileManager.makeDefaultProfile(); - profile.setName(name); - ControllerProfileManager.add(profile); - refreshScreenProfileList(); - } else { - Toast.makeText(requireContext(), R.string.invalid_name, Toast.LENGTH_SHORT).show(); - } - }).setTitle(R.string.create_profile).show(); - }); - - setItemClick(ID_DEFAULT_CONTROLLER_PROFILE, (item) -> { - List profiles = ControllerProfileManager.listAll(); - String defaultProfileId = ControllerProfileManager.getDefaultProfile().getId(); - int defaultProfileIndex = 0; - CharSequence[] names = new CharSequence[profiles.size()]; - for (int i = 0; i < names.length; i++) { - names[i] = profiles.get(i).getName(); - if (Objects.equals(profiles.get(i).getId(), defaultProfileId)) { - defaultProfileIndex = i; - } - } - new BottomAlertDialog(item.getContext()) - .setSingleChoiceItems(names, defaultProfileIndex, (dialog, which) -> { - dialog.dismiss(); - ControllerProfileManager.setDefaultProfileId(profiles.get(which).getId()); - item.setSummary(profiles.get(which).getName()); - }).setTitle(R.string.pref_default_controller_title).show(); - }); - - ((BaseActivity) requireActivity()).getSupportActionBar().setTitle(R.string.input); - } - - public String formatName(String name) { - return name.trim().replaceAll("\\s\\s", " "); - } - - private void refresh() { - findPreference(ID_DEFAULT_CONTROLLER_PROFILE).setSummary(ControllerProfileManager.getDefaultProfile().getName()); - refreshScreenProfileList(); - } - - @SuppressLint("RestrictedApi") - private void refreshScreenProfileList() { - PreferenceCategory category = findPreference(ID_GAMEPAD_PROFILE_LIST); - Preference pref = category.getPreference(category.getPreferenceCount() - 1); - category.removeAll(); - category.setOrderingAsAdded(true); - - for (Profile profile : ControllerProfileManager.listAll()) { - Preference item = new Preference(category.getContext()); - item.setOnPreferenceClickListener(preference -> { - category.performClick(); - PreferenceActivity.launch(requireActivity(), ControllerMapperPreferences.class, new Intent().putExtra("profile", profile.getId())); - return false; - }); - item.setOrder(category.getPreferenceCount()); - item.setIconSpaceReserved(false); - item.setTitle(profile.getName()); - category.addPreference(item); - } - - pref.setOrder(category.getPreferenceCount()); - category.addPreference(pref); - } - - @Override - public void onResume() { - super.onResume(); - refresh(); - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/ThemeSelectorDialog.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/ThemeSelectorDialog.java deleted file mode 100644 index fa22d884..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/ThemeSelectorDialog.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.panda3ds.pandroid.app.preferences; - -import android.content.Context; -import android.os.Bundle; -import android.view.ContextThemeWrapper; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.TextView; - -import androidx.annotation.NonNull; -import androidx.appcompat.widget.AppCompatRadioButton; -import androidx.recyclerview.widget.RecyclerView; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.base.BaseSheetDialog; -import com.panda3ds.pandroid.utils.CompatUtils; -import com.panda3ds.pandroid.data.config.GlobalConfig; -import com.panda3ds.pandroid.view.recycler.AutoFitGridLayout; -import com.panda3ds.pandroid.view.recycler.SimpleListAdapter; - -import java.util.ArrayList; -import java.util.Arrays; - -public class ThemeSelectorDialog extends BaseSheetDialog { - - private final SimpleListAdapter adapter = new SimpleListAdapter<>(R.layout.hold_theme_preview_base, this::bindItemView); - private final int currentTheme = GlobalConfig.get(GlobalConfig.KEY_APP_THEME); - private static final ArrayList themes = new ArrayList<>(Arrays.asList( - new Theme(R.style.Theme_Pandroid, R.string.theme_device, GlobalConfig.THEME_ANDROID), - new Theme(R.style.Theme_Pandroid_Light, R.string.light, GlobalConfig.THEME_LIGHT), - new Theme(R.style.Theme_Pandroid_Dark, R.string.dark, GlobalConfig.THEME_DARK), - new Theme(R.style.Theme_Pandroid_Black, R.string.black, GlobalConfig.THEME_BLACK) - )); - - - public ThemeSelectorDialog(@NonNull Context context) { - super(context); - } - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.dialog_select_theme); - adapter.clear(); - themes.sort((o1, o2) -> o1.value == currentTheme ? -1 : 0); - adapter.addAll(themes); - - RecyclerView recycler = findViewById(R.id.recycler); - recycler.setAdapter(adapter); - recycler.setLayoutManager(new AutoFitGridLayout(getContext(), 150)); - } - - private void bindItemView(int i, Theme theme, View view) { - ViewGroup container = view.findViewById(R.id.preview); - container.removeAllViews(); - container.addView(LayoutInflater.from(new ContextThemeWrapper(getContext(), theme.style)).inflate(R.layout.hold_theme_preview, null, false)); - ((TextView) view.findViewById(R.id.title)).setText(theme.name); - ((AppCompatRadioButton) view.findViewById(R.id.checkbox)).setChecked(GlobalConfig.get(GlobalConfig.KEY_APP_THEME) == theme.value); - view.setOnClickListener(v -> { - dismiss(); - if (theme.value != GlobalConfig.get(GlobalConfig.KEY_APP_THEME)) { - GlobalConfig.set(GlobalConfig.KEY_APP_THEME, theme.value); - CompatUtils.findActivity(getContext()).recreate(); - } - }); - } - - private static final class Theme { - private final int style; - private final int name; - private final int value; - - private Theme(int style, int name, int value) { - this.style = style; - this.name = name; - this.value = value; - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/screen_editor/ScreenEditorPreference.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/screen_editor/ScreenEditorPreference.java deleted file mode 100644 index 4bc6e299..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/screen_editor/ScreenEditorPreference.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.panda3ds.pandroid.app.preferences.screen_editor; - -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.LinearLayout; -import android.widget.Toast; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.fragment.app.Fragment; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.BaseActivity; -import com.panda3ds.pandroid.view.ds.DsEditorView; -import com.panda3ds.pandroid.view.ds.DsLayoutManager; - -public class ScreenEditorPreference extends Fragment { - private LinearLayout layout; - - @Nullable - @Override - public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { - layout = new LinearLayout(container.getContext()); - layout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION|View.SYSTEM_UI_FLAG_FULLSCREEN|View.SYSTEM_UI_FLAG_IMMERSIVE); - return layout; - } - - @Override - public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - int index = getArguments().getInt("index"); - layout.removeAllViews(); - layout.addView(new DsEditorView(view.getContext(), index), new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); - ((BaseActivity)requireActivity()).getSupportActionBar().hide(); - } - - @Override - public void onDestroy() { - super.onDestroy(); - DsLayoutManager.save(); - Toast.makeText(requireActivity(), R.string.saved, Toast.LENGTH_LONG).show(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/screen_editor/ScreenLayoutsPreference.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/screen_editor/ScreenLayoutsPreference.java deleted file mode 100644 index ac3e1039..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/preferences/screen_editor/ScreenLayoutsPreference.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.panda3ds.pandroid.app.preferences.screen_editor; - -import android.content.Intent; -import android.os.Bundle; - -import androidx.annotation.Nullable; -import androidx.preference.Preference; -import androidx.preference.PreferenceScreen; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.PreferenceActivity; -import com.panda3ds.pandroid.app.base.BasePreferenceFragment; -import com.panda3ds.pandroid.view.ds.DsLayoutManager; - -public class ScreenLayoutsPreference extends BasePreferenceFragment { - @Override - public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { - setPreferencesFromResource(R.xml.empty_preferences, rootKey); - setActivityTitle(R.string.dual_screen_layouts); - refresh(); - } - - public void refresh() { - PreferenceScreen screen = getPreferenceScreen(); - screen.removeAll(); - - for (int i = 0; i < DsLayoutManager.getLayoutCount(); i++) { - Preference pref = new Preference(getPreferenceScreen().getContext()); - pref.setIconSpaceReserved(false); - pref.setTitle("Layout "+ (i + 1)); - pref.setSummary(R.string.click_to_change); - pref.setIcon(R.drawable.ic_edit); - pref.setKey(String.valueOf(i)); - - final int index = i; - pref.setOnPreferenceClickListener(preference -> { - PreferenceActivity.launch(requireContext(), ScreenEditorPreference.class, new Intent().putExtra("index", index)); - return false; - }); - screen.addPreference(pref); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/provider/AppDataDocumentProvider.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/provider/AppDataDocumentProvider.java deleted file mode 100644 index ca6fad90..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/provider/AppDataDocumentProvider.java +++ /dev/null @@ -1,164 +0,0 @@ -package com.panda3ds.pandroid.app.provider; - -import android.content.Context; -import android.database.Cursor; -import android.database.MatrixCursor; -import android.os.CancellationSignal; -import android.os.ParcelFileDescriptor; -import android.provider.DocumentsContract.Document; -import android.provider.DocumentsContract.Root; -import android.provider.DocumentsProvider; - -import androidx.annotation.Nullable; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.PandroidApplication; -import com.panda3ds.pandroid.utils.FileUtils; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.Objects; - -public class AppDataDocumentProvider extends DocumentsProvider { - private static final String ROOT_ID = "root"; - private static final String[] DEFAULT_ROOT_PROJECTION = new String[]{ - Root.COLUMN_ROOT_ID, - Root.COLUMN_MIME_TYPES, - Root.COLUMN_FLAGS, - Root.COLUMN_ICON, - Root.COLUMN_TITLE, - Root.COLUMN_SUMMARY, - Root.COLUMN_DOCUMENT_ID, - Root.COLUMN_AVAILABLE_BYTES - }; - - private static final String[] DEFAULT_DOCUMENT_PROJECTION = new String[]{ - Document.COLUMN_DOCUMENT_ID, - Document.COLUMN_DISPLAY_NAME, - Document.COLUMN_MIME_TYPE, - Document.COLUMN_LAST_MODIFIED, - Document.COLUMN_SIZE - }; - - private String obtainDocumentId(File file) { - String basePath = baseDirectory().getAbsolutePath(); - String fullPath = file.getAbsolutePath(); - return (ROOT_ID + "/" + fullPath.substring(basePath.length())).replaceAll("//", "/"); - } - - private File obtainFile(String documentId) { - if (documentId.startsWith(ROOT_ID)) { - return new File(baseDirectory(), documentId.substring(ROOT_ID.length())); - } - throw new IllegalArgumentException("Invalid document id: " + documentId); - } - - private Context context() { - return PandroidApplication.getAppContext(); - } - - private File baseDirectory() { - return context().getFilesDir(); - } - - @Override - public boolean onCreate() { - return true; - } - - @Override - public Cursor queryRoots(String[] projection) throws FileNotFoundException { - MatrixCursor cursor = new MatrixCursor(projection == null ? DEFAULT_ROOT_PROJECTION : projection); - cursor.newRow() - .add(Root.COLUMN_ROOT_ID, ROOT_ID) - .add(Root.COLUMN_SUMMARY, null) - .add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_IS_CHILD | Root.FLAG_SUPPORTS_CREATE) - .add(Root.COLUMN_DOCUMENT_ID, ROOT_ID + "/") - .add(Root.COLUMN_AVAILABLE_BYTES, baseDirectory().getFreeSpace()) - .add(Root.COLUMN_TITLE, context().getString(R.string.app_name)) - .add(Root.COLUMN_MIME_TYPES, "*/*") - .add(Root.COLUMN_ICON, R.mipmap.ic_launcher); - - return cursor; - } - - @Override - public Cursor queryDocument(String documentId, String[] projection) throws FileNotFoundException { - File file = obtainFile(documentId); - MatrixCursor cursor = new MatrixCursor(projection == null ? DEFAULT_DOCUMENT_PROJECTION : projection); - includeFile(cursor, file); - - return cursor; - } - - private void includeFile(MatrixCursor cursor, File file) { - int flags = 0; - if (file.isDirectory()) { - flags = Document.FLAG_DIR_SUPPORTS_CREATE; - } else { - flags = Document.FLAG_SUPPORTS_WRITE | Document.FLAG_SUPPORTS_REMOVE | Document.FLAG_SUPPORTS_DELETE; - } - cursor.newRow() - .add(Document.COLUMN_DOCUMENT_ID, obtainDocumentId(file)) - .add(Document.COLUMN_MIME_TYPE, file.isDirectory() ? Document.MIME_TYPE_DIR : "application/octect-stream") - .add(Document.COLUMN_FLAGS, flags) - .add(Document.COLUMN_LAST_MODIFIED, file.lastModified()) - .add(Document.COLUMN_DISPLAY_NAME, file.getName()) - .add(Document.COLUMN_SIZE, file.length()); - - } - - @Override - public Cursor queryChildDocuments(String parentDocumentId, String[] projection, String sortOrder) throws FileNotFoundException { - File file = obtainFile(parentDocumentId); - MatrixCursor cursor = new MatrixCursor(projection == null ? DEFAULT_DOCUMENT_PROJECTION : projection); - File[] children = file.listFiles(); - if (children != null) { - for (File child : children) { - includeFile(cursor, child); - } - } - - return cursor; - } - - @Override - public String createDocument(String parentDocumentId, String mimeType, String displayName) throws FileNotFoundException { - File parent = obtainFile(parentDocumentId); - File file = new File(parent, displayName); - if (!parent.exists()) { - throw new FileNotFoundException("Parent doesn't exist"); - } - - if (Objects.equals(mimeType, Document.MIME_TYPE_DIR)) { - if (!file.mkdirs()) { - throw new FileNotFoundException("Error while creating directory"); - } - } else { - try { - if (!file.createNewFile()) { - throw new Exception("Error while creating file"); - } - } catch (Exception e) { - throw new FileNotFoundException(e.getMessage()); - } - } - return obtainDocumentId(file); - } - - @Override - public void deleteDocument(String documentId) throws FileNotFoundException { - File file = obtainFile(documentId); - if (file.exists()) { - FileUtils.delete(file.getAbsolutePath()); - } else { - throw new FileNotFoundException("File not exists"); - } - } - - @Override - public ParcelFileDescriptor openDocument(String documentId, String mode, @Nullable CancellationSignal signal) throws FileNotFoundException { - return ParcelFileDescriptor.open(obtainFile(documentId), ParcelFileDescriptor.parseMode(mode)); - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/services/LoggerService.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/services/LoggerService.java deleted file mode 100644 index e44f3503..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/app/services/LoggerService.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.panda3ds.pandroid.app.services; - -import android.app.Service; -import android.content.Intent; -import android.content.pm.PackageInfo; -import android.os.Build; -import android.os.IBinder; -import android.util.Log; - -import androidx.annotation.Nullable; - -import com.panda3ds.pandroid.lang.PipeStreamTask; -import com.panda3ds.pandroid.lang.Task; -import com.panda3ds.pandroid.utils.Constants; -import com.panda3ds.pandroid.utils.FileUtils; - -import java.io.OutputStream; -import java.util.Arrays; - -public class LoggerService extends Service { - private static final long MAX_LOG_SIZE = 1024 * 1024 * 4; // 4MB - - private PipeStreamTask errorTask; - private PipeStreamTask outputTask; - private Process logcat; - - @Nullable - @Override - public IBinder onBind(Intent intent) { - return null; - } - - @Override - public void onCreate() { - super.onCreate(); - try { - Runtime.getRuntime().exec(new String[]{"logcat", "-c"}).waitFor(); - logcat = Runtime.getRuntime().exec(new String[]{"logcat"}); - String logPath = getExternalMediaDirs()[0].getAbsolutePath(); - FileUtils.createDir(logPath, "logs"); - logPath = logPath + "/logs"; - - if (FileUtils.exists(logPath + "/last.txt")) { - FileUtils.delete(logPath + "/last.txt"); - } - - if (FileUtils.exists(logPath + "/current.txt")) { - FileUtils.rename(logPath + "/current.txt", "last.txt"); - } - - OutputStream stream = FileUtils.getOutputStream(logPath + "/current.txt"); - errorTask = new PipeStreamTask(logcat.getErrorStream(), stream, MAX_LOG_SIZE); - outputTask = new PipeStreamTask(logcat.getInputStream(), stream, MAX_LOG_SIZE); - - errorTask.start(); - outputTask.start(); - - Log.i(Constants.LOG_TAG, "Started logger service"); - logDeviceInfo(); - } catch (Exception e) { - stopSelf(); - Log.e(Constants.LOG_TAG, "Failed to start logger service"); - } - } - - private void logDeviceInfo() { - Log.i(Constants.LOG_TAG, "----------------------"); - Log.i(Constants.LOG_TAG, "Android SDK: " + Build.VERSION.SDK_INT); - Log.i(Constants.LOG_TAG, "Device: " + Build.DEVICE); - Log.i(Constants.LOG_TAG, "Model: " + Build.MANUFACTURER + " " + Build.MODEL); - Log.i(Constants.LOG_TAG, "ABIs: " + Arrays.toString(Build.SUPPORTED_ABIS)); - try { - PackageInfo info = getPackageManager().getPackageInfo(getPackageName(), 0); - Log.i(Constants.LOG_TAG, ""); - Log.i(Constants.LOG_TAG, "Package: " + info.packageName); - Log.i(Constants.LOG_TAG, "Install location: " + info.installLocation); - Log.i(Constants.LOG_TAG, "App version: " + info.versionName + " (" + info.versionCode + ")"); - } catch (Exception e) { - Log.e(Constants.LOG_TAG, "Error obtaining package info: " + e); - } - Log.i(Constants.LOG_TAG, "----------------------"); - } - - @Override - public void onTaskRemoved(Intent rootIntent) { - stopSelf(); - //This is a time for app save save log file - try { - Thread.sleep(1000); - } catch (Exception e) {} - super.onTaskRemoved(rootIntent); - } - - @Override - public void onDestroy() { - Log.i(Constants.LOG_TAG, "Logger service terminating"); - errorTask.close(); - outputTask.close(); - try { - logcat.destroy(); - } catch (Throwable t) {} - super.onDestroy(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/GsonConfigParser.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/GsonConfigParser.java deleted file mode 100644 index 6da6860c..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/GsonConfigParser.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.panda3ds.pandroid.data; - -import com.google.gson.ExclusionStrategy; -import com.google.gson.FieldAttributes; -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.panda3ds.pandroid.lang.Task; -import com.panda3ds.pandroid.utils.FileUtils; - -public class GsonConfigParser { - private final Gson gson = new GsonBuilder().setPrettyPrinting().create(); - private final String name; - - public GsonConfigParser(String name) { - this.name = name; - } - - private String getPath() { - return FileUtils.getConfigPath()+ "/" + name + ".json"; - } - - public void save(Object data) { - synchronized (this) { - new Task(() -> { - String json = gson.toJson(data, data.getClass()); - FileUtils.writeTextFile(FileUtils.getConfigPath(), name + ".json", json); - }).runSync(); - } - } - - public T load(Class myClass) { - String[] content = new String[] {"{}"}; - new Task(()->{ - if (FileUtils.exists(getPath())) { - String src = FileUtils.readTextFile(getPath()); - if (src != null && src.length() > 2) { - content[0] = src; - } - } - }).runSync(); - - return gson.fromJson(content[0], myClass); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/SMDH.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/SMDH.java deleted file mode 100644 index b886ad3f..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/SMDH.java +++ /dev/null @@ -1,182 +0,0 @@ -package com.panda3ds.pandroid.data; - -import android.graphics.Bitmap; -import android.graphics.Color; - -import com.panda3ds.pandroid.data.game.GameRegion; - -import java.nio.ByteBuffer; -import java.nio.charset.StandardCharsets; - -public class SMDH { - public static final int LANGUAGE_JAPANESE = 0; - public static final int LANGUAGE_ENGLISH = 1; - public static final int LANGUAGE_CHINESE = 6; - public static final int LANGUAGE_KOREAN = 7; - - public static final int REGION_JAPAN_MASK = 0x1; - public static final int REGION_NORTH_AMERICAN_MASK = 0x2; - public static final int REGION_EUROPE_MASK = 0x4; - public static final int REGION_AUSTRALIA_MASK = 0x8; - public static final int REGION_CHINA_MASK = 0x10; - public static final int REGION_KOREAN_MASK = 0x20; - public static final int REGION_TAIWAN_MASK = 0x40; - - private static final int ICON_SIZE = 48; - private static final int META_OFFSET = 0x8; - private static final int META_REGION_OFFSET = 0x2018; - private static final int IMAGE_OFFSET = 0x24C0; - - private int metaLanguage = LANGUAGE_ENGLISH; - private final ByteBuffer smdh; - private final String[] title = new String[12]; - private final String[] publisher = new String[12]; - private final int[] icon; - - private final GameRegion region; - - public SMDH(byte[] source) { - smdh = ByteBuffer.allocate(source.length); - smdh.position(0); - smdh.put(source); - smdh.position(0); - - region = parseRegion(); - icon = parseIcon(); - parseMeta(); - } - - private GameRegion parseRegion() { - GameRegion region; - smdh.position(META_REGION_OFFSET); - - int regionMasks = smdh.get() & 0xFF; - - final boolean japan = (regionMasks & REGION_JAPAN_MASK) != 0; - final boolean northAmerica = (regionMasks & REGION_NORTH_AMERICAN_MASK) != 0; - final boolean europe = (regionMasks & REGION_EUROPE_MASK) != 0; - final boolean australia = (regionMasks & REGION_AUSTRALIA_MASK) != 0; - final boolean china = (regionMasks & REGION_CHINA_MASK) != 0; - final boolean korea = (regionMasks & REGION_KOREAN_MASK) != 0; - final boolean taiwan = (regionMasks & REGION_TAIWAN_MASK) != 0; - - // Depending on the regions allowed in the region mask, pick one of the regions to use - // We prioritize English-speaking regions both here and in the emulator core, since users are most likely to speak English at least - if (northAmerica) { - region = GameRegion.NorthAmerican; - } else if (europe) { - region = GameRegion.Europe; - } else if (australia) { - region = GameRegion.Australia; - } else if (japan) { - region = GameRegion.Japan; - metaLanguage = LANGUAGE_JAPANESE; - } else if (korea) { - region = GameRegion.Korean; - metaLanguage = LANGUAGE_KOREAN; - } else if (china) { - region = GameRegion.China; - metaLanguage = LANGUAGE_CHINESE; - } else if (taiwan) { - region = GameRegion.Taiwan; - metaLanguage = LANGUAGE_CHINESE; - } else { - region = GameRegion.None; - } - - return region; - } - - private void parseMeta() { - byte[] data; - for (int i = 0; i < 12; i++) { - smdh.position(META_OFFSET + (512 * i) + 0x80); - data = new byte[0x100]; - smdh.get(data); - title[i] = convertString(data); - - smdh.position(META_OFFSET + (512 * i) + 0x180); - data = new byte[0x80]; - smdh.get(data); - publisher[i] = convertString(data); - } - } - - // The icons are stored in RGB562 but android need RGB888 - private int[] parseIcon() { - int[] icon = new int[ICON_SIZE * ICON_SIZE]; - smdh.position(0); - - for (int x = 0; x < ICON_SIZE; x++) { - for (int y = 0; y < ICON_SIZE; y++) { - int indexY = y & ~7; - int indexX = x & ~7; - - int interleave = mortonInterleave(x, y); - int offset = (interleave + (indexX * 8)) * 2; - - offset = offset + indexY * ICON_SIZE * 2; - - smdh.position(offset + IMAGE_OFFSET); - - int lowByte = smdh.get() & 0xFF; - int highByte = smdh.get() & 0xFF; - int texel = (highByte << 8) | lowByte; - - // Convert texel from RGB565 to RGB888 - int r = (texel >> 11) & 0x1F; - int g = (texel >> 5) & 0x3F; - int b = texel & 0x1F; - - r = (r << 3) | (r >> 2); - g = (g << 2) | (g >> 4); - b = (b << 3) | (b >> 2); - - icon[x + ICON_SIZE * y] = Color.rgb(r, g, b); - } - } - - return icon; - } - - - public GameRegion getRegion() { - return region; - } - - public Bitmap getBitmapIcon() { - Bitmap bitmap = Bitmap.createBitmap(ICON_SIZE, ICON_SIZE, Bitmap.Config.RGB_565); - bitmap.setPixels(icon, 0, ICON_SIZE, 0, 0, ICON_SIZE, ICON_SIZE); - return bitmap; - } - - public int[] getIcon() { - return icon; - } - - public String getTitle() { - return title[metaLanguage]; - } - - public String getPublisher() { - return publisher[metaLanguage]; - } - - // Strings in SMDH files are stored as UTF-16LE - private static String convertString(byte[] buffer) { - try { - return new String(buffer, 0, buffer.length, StandardCharsets.UTF_16LE) - .replaceAll("\0", ""); - } catch (Exception e) { - return ""; - } - } - - // Reference: https://github.com/wheremyfoodat/Panda3DS/blob/master/src/core/renderer_gl/textures.cpp#L88 - private static int mortonInterleave(int u, int v) { - int[] xlut = {0, 1, 4, 5, 16, 17, 20, 21}; - int[] ylut = {0, 2, 8, 10, 32, 34, 40, 42}; - - return xlut[u % 8] + ylut[v % 8]; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/config/GlobalConfig.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/config/GlobalConfig.java deleted file mode 100644 index 21645b7e..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/config/GlobalConfig.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.panda3ds.pandroid.data.config; - -import com.google.gson.Gson; -import com.google.gson.JsonObject; -import com.google.gson.internal.LinkedTreeMap; -import com.panda3ds.pandroid.data.GsonConfigParser; -import com.panda3ds.pandroid.utils.Constants; - -import java.io.Serializable; -import java.util.Map; - -public class GlobalConfig { - - private static final GsonConfigParser parser = new GsonConfigParser(Constants.PREF_GLOBAL_CONFIG); - private static final Gson gson = new Gson(); - - public static final int THEME_ANDROID = 0; - public static final int THEME_LIGHT = 1; - public static final int THEME_DARK = 2; - public static final int THEME_BLACK = 3; - - public static DataModel data; - - public static final Key KEY_SHADER_JIT = new Key<>("emu.shader_jit", false); - public static final Key KEY_PICTURE_IN_PICTURE = new Key<>("app.behavior.pictureInPicture", false); - public static final Key KEY_SHOW_PERFORMANCE_OVERLAY = new Key<>("dev.performanceOverlay", false); - public static final Key KEY_LOGGER_SERVICE = new Key<>("dev.loggerService", false); - public static final Key KEY_APP_THEME = new Key<>("app.theme", THEME_ANDROID); - public static final Key KEY_SCREEN_GAMEPAD_VISIBLE = new Key<>("app.screen_gamepad.visible", true); - public static final Key KEY_CURRENT_DS_LAYOUT = new Key<>("app.ds.current_layout",0); - public static final Key KEY_DS_LAYOUTS = new Key<>("app.ds.layouts", ""); - - public static void initialize() { - data = parser.load(DataModel.class); - } - - public static T get(Key key) { - Serializable value; - - if (!data.configs.containsKey(key.name)) { - return key.defaultValue; - } - - if (key.defaultValue instanceof String) { - value = (String) data.configs.get(key.name); - } else if (key.defaultValue instanceof Integer) { - value = ((Number) data.get(key.name)).intValue(); - } else if (key.defaultValue instanceof Boolean) { - value = (boolean) data.get(key.name); - } else if (key.defaultValue instanceof Long) { - value = ((Number) data.get(key.name)).longValue(); - } else { - value = ((Number) data.get(key.name)).floatValue(); - } - return (T) value; - } - - public static synchronized void set(Key key, T value) { - data.configs.put(key.name, value); - writeChanges(); - } - - public static T getExtra(Key key, Class dataClass) { - if (data.extras.has(key.name)) { - return gson.fromJson(data.extras.getAsJsonObject(key.name), dataClass); - } - - return gson.fromJson("{}", dataClass); - } - - public static synchronized void putExtra(Key key, Object value) { - if (data.extras.has(key.name)) { - data.extras.remove(key.name); - } - - data.extras.add(key.name, gson.toJsonTree(value)); - writeChanges(); - } - - private static void writeChanges() { - parser.save(data); - } - - private static class Key { - private final String name; - private final T defaultValue; - - private Key(String name, T defaultValue) { - this.name = name; - this.defaultValue = defaultValue; - } - } - - private static class DataModel { - private final Map configs = new LinkedTreeMap<>(); - private final JsonObject extras = new JsonObject(); - - public Object get(String key) { - return configs.get(key); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GameMetadata.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GameMetadata.java deleted file mode 100644 index 50cc1992..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GameMetadata.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.panda3ds.pandroid.data.game; - -import android.graphics.Bitmap; -import android.util.Log; - -import androidx.annotation.Nullable; - -import com.panda3ds.pandroid.data.SMDH; -import com.panda3ds.pandroid.utils.Constants; -import com.panda3ds.pandroid.utils.GameUtils; - -import java.util.Objects; -import java.util.UUID; - -public class GameMetadata { - private final String id; - private final String romPath; - private String title; - private String publisher; - private GameRegion[] regions; - private transient Bitmap icon; - - private GameMetadata(String id, String romPath, String title, String publisher, Bitmap icon, GameRegion[] regions) { - this.id = id; - this.title = title; - this.publisher = publisher; - this.romPath = romPath; - this.regions = regions; - if (icon != null) { - GameUtils.setGameIcon(id, icon); - } - } - - public GameMetadata(String romPath,String title, String publisher, GameRegion[] regions) { - this(UUID.randomUUID().toString(), romPath, title, publisher, null, regions); - } - - public GameMetadata(String romPath,String title, String publisher) { - this(romPath,title, publisher, new GameRegion[]{GameRegion.None}); - } - - public String getRomPath() { - return romPath; - } - - public String getRealPath() { - return GameUtils.resolvePath(romPath); - } - - public String getId() { - return id; - } - - public String getTitle() { - return title; - } - - public String getPublisher() { - return publisher; - } - - public Bitmap getIcon() { - if (icon == null || icon.isRecycled()) { - icon = GameUtils.loadGameIcon(id); - } - return icon; - } - - public GameRegion[] getRegions() { - return regions; - } - - @Override - public boolean equals(@Nullable Object obj) { - if (obj instanceof GameMetadata) { - return Objects.equals(((GameMetadata) obj).id, id); - } - return false; - } - - public void applySMDH(SMDH smdh) { - Bitmap icon = smdh.getBitmapIcon(); - this.title = smdh.getTitle(); - this.publisher = smdh.getPublisher(); - this.icon = icon; - if (icon != null) { - GameUtils.setGameIcon(id, icon); - } - - this.regions = new GameRegion[]{smdh.getRegion()}; - GameUtils.writeChanges(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GameRegion.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GameRegion.java deleted file mode 100644 index e369319a..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GameRegion.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.panda3ds.pandroid.data.game; - -import com.panda3ds.pandroid.R; - -public enum GameRegion { - NorthAmerican, - Japan, - Europe, - Australia, - China, - Korean, - Taiwan, - None; - - public int localizedName() { - switch (this) { - case NorthAmerican: - return R.string.region_north_armerican; - case Japan: - return R.string.region_japan; - case Europe: - return R.string.region_europe; - case Australia: - return R.string.region_australia; - case Korean: - return R.string.region_korean; - case Taiwan: - return R.string.region_taiwan; - } - return R.string.unknown; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GamesFolder.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GamesFolder.java deleted file mode 100644 index fd486445..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/data/game/GamesFolder.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.panda3ds.pandroid.data.game; - -import android.net.Uri; -import android.util.Log; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.PandroidApplication; -import com.panda3ds.pandroid.utils.FileUtils; - -import java.util.Collection; -import java.util.HashMap; -import java.util.UUID; - -public class GamesFolder { - private final String id = UUID.randomUUID().toString(); - private final String path; - private final HashMap games = new HashMap<>(); - - public GamesFolder(String path) { - this.path = path; - } - - public boolean isValid() { - return FileUtils.exists(path); - } - - public String getId() { - return id; - } - - public String getPath() { - return path; - } - - public Collection getGames() { - return games.values(); - } - - public void refresh() { - String[] gamesId = games.keySet().toArray(new String[0]); - for (String file: gamesId) { - if (!FileUtils.exists(path + "/" + file)) { - games.remove(file); - } - } - - String unknown = PandroidApplication.getAppContext().getString(R.string.unknown); - - for (String file: FileUtils.listFiles(path)) { - String path = FileUtils.getChild(this.path, file); - if (FileUtils.isDirectory(path) || games.containsKey(file)) { - continue; - } - - String ext = FileUtils.extension(path); - if (ext.equals("3ds") || ext.equals("3dsx") || ext.equals("cci") || ext.equals("cxi") || ext.equals("app") || ext.equals("ncch")) { - String name = FileUtils.getName(path).trim().split("\\.")[0]; - games.put(file, new GameMetadata(new Uri.Builder().path(file).authority(id).scheme("folder").build().toString(), name, unknown)); - } - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputEvent.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputEvent.java deleted file mode 100644 index 7869e00a..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputEvent.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.panda3ds.pandroid.input; - -public class InputEvent { - private final String name; - private final float value; - - public InputEvent(String name, float value) { - this.name = name; - this.value = Math.max(0.0f, Math.min(1.0f, value)); - } - - public boolean isDown() { - return value > 0.0f; - } - - public String getName() { - return name; - } - - public float getValue() { - return value; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputHandler.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputHandler.java deleted file mode 100644 index c6440434..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputHandler.java +++ /dev/null @@ -1,133 +0,0 @@ -package com.panda3ds.pandroid.input; - -import android.view.InputDevice; -import android.view.KeyEvent; -import android.view.MotionEvent; - -import com.panda3ds.pandroid.lang.Function; - -import java.util.HashMap; - -public class InputHandler { - private static Function eventListener; - private static float motionDeadZone = 0.0f; - - private static final int[] gamepadSources = { - InputDevice.SOURCE_GAMEPAD, - InputDevice.SOURCE_JOYSTICK - }; - - private static final int[] validSources = { - InputDevice.SOURCE_GAMEPAD, - InputDevice.SOURCE_JOYSTICK, - InputDevice.SOURCE_DPAD, - InputDevice.SOURCE_KEYBOARD - }; - - private static final HashMap motionDownEvents = new HashMap<>(); - private static final HashMap keyDownEvents = new HashMap<>(); - - private static boolean containsSource(int[] sources, int sourceMask) { - for (int source : sources) { - if ((source & sourceMask) == source) { - return true; - } - } - - return false; - } - - private static boolean isGamepadSource(int sourceMask) { - return containsSource(gamepadSources, sourceMask); - } - - private static boolean isSourceValid(int sourceMasked) { - return containsSource(validSources, sourceMasked); - } - - public static void setEventListener(Function eventListener) { - InputHandler.eventListener = eventListener; - } - - private static void handleEvent(InputEvent event) { - if (eventListener != null) { - eventListener.run(event); - } - } - - public static void setMotionDeadZone(float motionDeadZone) { - InputHandler.motionDeadZone = motionDeadZone; - } - - public static boolean processMotionEvent(MotionEvent event) { - if (!isSourceValid(event.getSource())) { - return false; - } - - if (isGamepadSource(event.getSource())) { - for (InputDevice.MotionRange range : event.getDevice().getMotionRanges()) { - float axisValue = event.getAxisValue(range.getAxis()); - float value = Math.abs(axisValue); - String name = (MotionEvent.axisToString(range.getAxis()) + (axisValue >= 0 ? "+" : "-")).toUpperCase(); - String reverseName = (MotionEvent.axisToString(range.getAxis()) + (axisValue >= 0 ? "-" : "+")).toUpperCase(); - - if (motionDownEvents.containsKey(reverseName)) { - motionDownEvents.remove(reverseName); - handleEvent(new InputEvent(reverseName.toUpperCase(), 0.0f)); - } - - if (value > motionDeadZone) { - motionDownEvents.put(name, value); - handleEvent(new InputEvent(name.toUpperCase(), (value - motionDeadZone) / (1.0f - motionDeadZone))); - } else if (motionDownEvents.containsKey(name)) { - motionDownEvents.remove(name); - handleEvent(new InputEvent(name.toUpperCase(), 0.0f)); - } - - } - } - - return true; - } - - public static boolean processKeyEvent(KeyEvent event) { - if (!isSourceValid(event.getSource())) { - return false; - } - - if (isGamepadSource(event.getSource())) { - // Dpad return motion event + key event, this remove the key event - switch (event.getKeyCode()) { - case KeyEvent.KEYCODE_DPAD_UP: - case KeyEvent.KEYCODE_DPAD_UP_LEFT: - case KeyEvent.KEYCODE_DPAD_UP_RIGHT: - case KeyEvent.KEYCODE_DPAD_DOWN: - case KeyEvent.KEYCODE_DPAD_DOWN_LEFT: - case KeyEvent.KEYCODE_DPAD_DOWN_RIGHT: - case KeyEvent.KEYCODE_DPAD_RIGHT: - case KeyEvent.KEYCODE_DPAD_LEFT: - return true; - } - } - String code = KeyEvent.keyCodeToString(event.getKeyCode()); - if (event.getAction() == KeyEvent.ACTION_UP) { - keyDownEvents.remove(code); - handleEvent(new InputEvent(code, 0.0f)); - } else if (!keyDownEvents.containsKey(code)) { - keyDownEvents.put(code, new InputEvent(code, 1.0f)); - } - - for (InputEvent env: keyDownEvents.values()) { - handleEvent(env); - } - - return true; - } - - public static void reset() { - eventListener = null; - motionDeadZone = 0.0f; - motionDownEvents.clear(); - keyDownEvents.clear(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputMap.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputMap.java deleted file mode 100644 index ab2cdd04..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/InputMap.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.panda3ds.pandroid.input; - -import com.panda3ds.pandroid.data.GsonConfigParser; -import com.panda3ds.pandroid.utils.Constants; - -public class InputMap { - public static final GsonConfigParser parser = new GsonConfigParser(Constants.PREF_INPUT_MAP); - private static DataModel data; - - public static void initialize() { - data = parser.load(DataModel.class); - } - - public static float getDeadZone() { - return data.deadZone; - } - - public static void set(KeyName key, String name) { - data.keys[key.ordinal()] = name; - writeConfig(); - } - - public static String relative(KeyName key) { - return data.keys[key.ordinal()] == null ? "-" : data.keys[key.ordinal()]; - } - - public static KeyName relative(String name) { - for (KeyName key : KeyName.values()) { - if (relative(key).equalsIgnoreCase(name)) - return key; - } - return KeyName.NULL; - } - - public static void setDeadZone(float value) { - data.deadZone = Math.max(0.0f, Math.min(1.0f, value)); - writeConfig(); - } - - private static void writeConfig() { - parser.save(data); - } - - private static class DataModel { - public float deadZone = 0.2f; - public final String[] keys = new String[32]; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/KeyName.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/KeyName.java deleted file mode 100644 index 24c420d3..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/input/KeyName.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.panda3ds.pandroid.input; - -import com.panda3ds.pandroid.utils.Constants; - -public enum KeyName { - A(Constants.INPUT_KEY_A), - B(Constants.INPUT_KEY_B), - X(Constants.INPUT_KEY_X), - Y(Constants.INPUT_KEY_Y), - UP(Constants.INPUT_KEY_UP), - DOWN(Constants.INPUT_KEY_DOWN), - LEFT(Constants.INPUT_KEY_LEFT), - RIGHT(Constants.INPUT_KEY_RIGHT), - AXIS_LEFT, - AXIS_RIGHT, - AXIS_UP, - AXIS_DOWN, - START(Constants.INPUT_KEY_START), - SELECT(Constants.INPUT_KEY_SELECT), - L(Constants.INPUT_KEY_L), - R(Constants.INPUT_KEY_R), - NULL, - CHANGE_DS_LAYOUT; - - private final int keyId; - - KeyName() { - this(-1); - } - - KeyName(int keyId) { - this.keyId = keyId; - } - - public int getKeyId() { - return keyId; - } - -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/Function.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/Function.java deleted file mode 100644 index 25a15875..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/Function.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.panda3ds.pandroid.lang; - -public interface Function { - void run(T arg); -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/PipeStreamTask.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/PipeStreamTask.java deleted file mode 100644 index e4bbda98..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/PipeStreamTask.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.panda3ds.pandroid.lang; - -import java.io.InputStream; -import java.io.OutputStream; - -public class PipeStreamTask extends Task { - private final InputStream input; - private final OutputStream output; - private final long limit; - private long size; - - public PipeStreamTask(InputStream input, OutputStream output, long limit) { - this.input = input; - this.output = output; - this.limit = limit; - } - - @Override - public void run() { - super.run(); - int data; - try { - while ((data = input.read()) != -1) { - output.write(data); - if (++size > limit) { - break; - } - } - } catch (Exception e) {} - close(); - } - - public void close() { - try { - output.flush(); - output.close(); - input.close(); - } catch (Exception e) {} - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/Task.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/Task.java deleted file mode 100644 index 8de344b4..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/lang/Task.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.panda3ds.pandroid.lang; - -public class Task extends Thread { - public Task(Runnable runnable) { - super(runnable); - } - - protected Task() {} - - public void runSync() { - start(); - waitFinish(); - } - - public void waitFinish() { - try { - join(); - } catch (InterruptedException e) { - throw new RuntimeException(e); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/math/Vector2.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/math/Vector2.java deleted file mode 100644 index becec9e1..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/math/Vector2.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.panda3ds.pandroid.math; - -public class Vector2 { - public float x, y; - public Vector2(float x, float y) { - this.x = x; - this.y = y; - } - - public static float distance(float x, float y, float x2, float y2) { return (float) Math.sqrt((x - x2) * (x - x2) + (y - y2) * (y - y2)); } - - public void set(float x, float y) { - this.x = x; - this.y = y; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/CompatUtils.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/CompatUtils.java deleted file mode 100644 index 91a37f55..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/CompatUtils.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.panda3ds.pandroid.utils; - -import android.app.Activity; -import android.app.ActivityManager; -import android.content.Context; -import android.content.ContextWrapper; -import android.content.res.TypedArray; -import android.graphics.Color; -import android.util.TypedValue; - -import androidx.annotation.AttrRes; - -import com.panda3ds.pandroid.app.PandroidApplication; - -public class CompatUtils { - public static Activity findActivity(Context context) { - if (context instanceof Activity) { - return (Activity) context; - } else if ((context instanceof ContextWrapper)) { - return findActivity(((ContextWrapper) context).getBaseContext()); - } - - return ((Activity) context); - } - - public static int resolveColor(Context context, @AttrRes int id) { - try { - TypedArray values = context.obtainStyledAttributes(new int[]{id}); - int color = values.getColor(0, Color.RED); - values.recycle(); - return color; - } catch (Exception e) { - return Color.rgb(255,0,255); - } - } - - public static float applyDimensions(int unit, int size) { - return TypedValue.applyDimension(unit, size, PandroidApplication.getAppContext().getResources().getDisplayMetrics()); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/Constants.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/Constants.java deleted file mode 100644 index 28276920..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/Constants.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.panda3ds.pandroid.utils; - -public class Constants { - public static final int INPUT_KEY_A = 1 << 0; - public static final int INPUT_KEY_B = 1 << 1; - public static final int INPUT_KEY_SELECT = 1 << 2; - public static final int INPUT_KEY_START = 1 << 3; - public static final int INPUT_KEY_RIGHT = 1 << 4; - public static final int INPUT_KEY_LEFT = 1 << 5; - public static final int INPUT_KEY_UP = 1 << 6; - public static final int INPUT_KEY_DOWN = 1 << 7; - public static final int INPUT_KEY_R = 1 << 8; - public static final int INPUT_KEY_L = 1 << 9; - public static final int INPUT_KEY_X = 1 << 10; - public static final int INPUT_KEY_Y = 1 << 11; - - public static final int N3DS_WIDTH = 400; - public static final int N3DS_FULL_HEIGHT = 480; - public static final int N3DS_HALF_HEIGHT = N3DS_FULL_HEIGHT / 2; - - public static final String ACTIVITY_PARAMETER_PATH = "path"; - public static final String ACTIVITY_PARAMETER_FRAGMENT = "fragment"; - public static final String LOG_TAG = "pandroid"; - - public static final String PREF_GLOBAL_CONFIG = "app.GlobalConfig"; - public static final String PREF_GAME_UTILS = "app.GameUtils"; - public static final String PREF_INPUT_MAP = "app.InputMap"; - public static final String PREF_SCREEN_CONTROLLER_PROFILES = "app.input.ScreenControllerManager"; - public static final String RESOURCE_FOLDER_ELF = "ELF"; // Folder for caching ELF files - public static final String RESOURCE_FOLDER_LUA_SCRIPTS = "Lua Scripts"; -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/FileUtils.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/FileUtils.java deleted file mode 100644 index 85245454..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/FileUtils.java +++ /dev/null @@ -1,294 +0,0 @@ -package com.panda3ds.pandroid.utils; - -import android.content.Context; -import android.content.Intent; -import android.database.Cursor; -import android.net.Uri; -import android.os.ParcelFileDescriptor; -import android.provider.DocumentsContract; -import android.system.Os; -import android.util.Log; - -import androidx.documentfile.provider.DocumentFile; - -import com.panda3ds.pandroid.app.PandroidApplication; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.InputStream; -import java.io.OutputStream; -import java.nio.charset.StandardCharsets; -import java.util.Objects; - -public class FileUtils { - public static final String MODE_READ = "r"; - private static final String TREE_URI = "tree"; - - private static DocumentFile parseFile(String path) { - if (path.startsWith("/")) { - return DocumentFile.fromFile(new File(path)); - } - Uri uri = Uri.parse(path); - DocumentFile singleFile = DocumentFile.fromSingleUri(getContext(), uri); - if (singleFile.length() > 0 && singleFile.length() != 4096) { - return singleFile; - } - if (uri.getScheme().equals("content") && uri.getPath().startsWith("/" + TREE_URI)) { - return DocumentFile.fromTreeUri(getContext(), uri); - } - - return singleFile; - } - - private static Context getContext() { - return PandroidApplication.getAppContext(); - } - - public static String getName(String path) { - return parseFile(path).getName(); - } - - public static String getResourcesPath() { - File file = new File(getPrivatePath(), "config/resources"); - if (!file.exists()) { - file.mkdirs(); - } - - return file.getAbsolutePath(); - } - - public static String getResourcePath(String name) { - File file = new File(getResourcesPath(), name); - file.mkdirs(); - - return file.getAbsolutePath(); - } - - public static String getPrivatePath() { - File file = getContext().getFilesDir(); - if (!file.exists()) { - file.mkdirs(); - } - - return file.getAbsolutePath(); - } - - public static String getConfigPath() { - File file = new File(getPrivatePath(), "config"); - if (!file.exists()) { - file.mkdirs(); - } - - return file.getAbsolutePath(); - } - - public static String parseNativeMode(String mode) { - mode = mode.toLowerCase(); - switch (mode) { - case "r": - case "rb": - return "r"; - case "r+": - case "r+b": - case "rb+": - return "rw"; - case "w+": - return "rwt"; - case "w": - case "wb": - return "wt"; - case "wa": - return "wa"; - } - - throw new IllegalArgumentException("Invalid file mode: "+mode); - } - - public static boolean exists(String path) { - return parseFile(path).exists(); - } - - public static void rename(String path, String newName) { - parseFile(path).renameTo(newName); - } - - public static void delete(String path) { - DocumentFile file = parseFile(path); - - if (file.exists()) { - if (file.isDirectory()) { - String[] children = listFiles(path); - for (String child : children) { - delete(path + "/" + child); - } - } - - file.delete(); - } - } - - public static boolean createDir(String path, String name) { - DocumentFile folder = parseFile(path); - if (folder.findFile(name) != null) { - return true; - } - - return folder.createDirectory(name) != null; - } - - public static boolean createFile(String path, String name) { - DocumentFile folder = parseFile(path); - if (folder.findFile(name) != null) { - folder.findFile(name).delete(); - } - - return folder.createFile("", name) != null; - } - - public static boolean writeTextFile(String path, String name, String content) { - try { - createFile(path, name); - OutputStream stream = getOutputStream(path + "/" + name); - stream.write(content.getBytes(StandardCharsets.UTF_8)); - stream.flush(); - stream.close(); - } catch (Exception e) { - Log.e(Constants.LOG_TAG, "Error on write text file: ", e); - return false; - } - - return true; - } - - public static String readTextFile(String path) { - if (!exists(path)) { - return null; - } - - try { - InputStream stream = getInputStream(path); - ByteArrayOutputStream output = new ByteArrayOutputStream(); - - int len; - byte[] buffer = new byte[1024 * 8]; - while ((len = stream.read(buffer)) != -1) { - output.write(buffer, 0, len); - } - - stream.close(); - output.flush(); - output.close(); - - byte[] data = output.toByteArray(); - return new String(data, 0, data.length); - } catch (Exception e) { - return null; - } - } - - public static InputStream getInputStream(String path) throws FileNotFoundException { - return getContext().getContentResolver().openInputStream(parseFile(path).getUri()); - } - - public static OutputStream getOutputStream(String path) throws FileNotFoundException { - return getContext().getContentResolver().openOutputStream(parseFile(path).getUri()); - } - - public static void makeUriPermanent(String uri, String mode) { - int flags = Intent.FLAG_GRANT_READ_URI_PERMISSION; - if (mode.toLowerCase().contains("w")) { - flags &= Intent.FLAG_GRANT_WRITE_URI_PERMISSION; - } - - getContext().getContentResolver().takePersistableUriPermission(Uri.parse(uri), flags); - } - - public static void updateFile(String path) { - DocumentFile file = parseFile(path); - Uri uri = file.getUri(); - - switch (uri.getScheme()) { - case "file": { - new File(uri.getPath()).setLastModified(System.currentTimeMillis()); - break; - } - - case "content": { - getContext().getContentResolver().update(uri, null, null, null); - break; - } - - default: { - Log.w(Constants.LOG_TAG, "Cannot update file from scheme: " + uri.getScheme()); - break; - } - } - } - - public static long getLastModified(String path) { - return parseFile(path).lastModified(); - } - - public static String[] listFiles(String path) { - DocumentFile folder = parseFile(path); - DocumentFile[] files = folder.listFiles(); - - String[] result = new String[files.length]; - for (int i = 0; i < result.length; i++) { - result[i] = files[i].getName(); - } - - return result; - } - - public static Uri obtainUri(String path) { - return parseFile(path).getUri(); - } - - public static String extension(String uri) { - String name = getName(uri); - if (!name.contains(".")) { - return name.toLowerCase(); - } - String[] parts = name.split("\\."); - - return parts[parts.length-1].toLowerCase(); - } - - public static boolean copyFile(String source, String path, String name) { - try { - String fullPath = path + "/" + name; - if (!FileUtils.exists(fullPath)) { - FileUtils.delete(fullPath); - } - FileUtils.createFile(path, name); - InputStream in = getInputStream(source); - OutputStream out = getOutputStream(fullPath); - // Make a 128KB temp buffer used for copying in chunks - byte[] buffer = new byte[1024 * 128]; - int length; - - while ((length = in.read(buffer)) != -1) { - out.write(buffer, 0, length); - } - - out.flush(); - out.close(); - in.close(); - } catch (Exception e) { - Log.e(Constants.LOG_TAG, "Error while trying to copy file", e); - return false; - } - - return true; - } - - public static String getChild(String path, String name) { - return parseFile(path).findFile(name).getUri().toString(); - } - - public static boolean isDirectory(String path) { - return parseFile(path).isDirectory(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/GameUtils.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/GameUtils.java deleted file mode 100644 index 1d865880..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/GameUtils.java +++ /dev/null @@ -1,174 +0,0 @@ -package com.panda3ds.pandroid.utils; - -import android.content.Context; -import android.content.Intent; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; -import android.net.Uri; -import android.util.Log; - -import com.panda3ds.pandroid.app.GameActivity; -import com.panda3ds.pandroid.data.GsonConfigParser; -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.data.game.GamesFolder; - -import java.io.InputStream; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Objects; - -public class GameUtils { - private static final Bitmap DEFAULT_ICON = Bitmap.createBitmap(48, 48, Bitmap.Config.ARGB_8888); - private final static GsonConfigParser parser = new GsonConfigParser(Constants.PREF_GAME_UTILS); - - private static DataModel data; - - private static GameMetadata currentGame; - - public static void initialize() { - data = parser.load(DataModel.class); - refreshFolders(); - } - - public static GameMetadata findByRomPath(String romPath) { - ArrayList games = getGames(); - for (GameMetadata game : games) { - if (Objects.equals(romPath, game.getRealPath())) { - return game; - } - } - return null; - } - - public static void launch(Context context, GameMetadata game) { - currentGame = game; - String path = game.getRealPath(); - if (path.contains("://")) { - path = "game://internal/" + FileUtils.getName(game.getRealPath()); - } - - context.startActivity(new Intent(context, GameActivity.class).putExtra(Constants.ACTIVITY_PARAMETER_PATH, path)); - } - - public static GameMetadata getCurrentGame() { - return currentGame; - } - - public static void removeGame(GameMetadata game) { - data.games.remove(game); - writeChanges(); - } - - public static void addGame(GameMetadata game) { - data.games.add(0, game); - writeChanges(); - } - - public static String resolvePath(String path) { - String lower = path.toLowerCase(); - if (!lower.contains("://")) { - return path; - } - - Uri uri = Uri.parse(path); - switch (uri.getScheme().toLowerCase()) { - case "folder": { - return FileUtils.getChild(data.folders.get(uri.getAuthority()).getPath(), uri.getPathSegments().get(0)); - } - case "elf": { - return FileUtils.getResourcePath(Constants.RESOURCE_FOLDER_ELF) + "/" + uri.getAuthority(); - } - } - return path; - } - - public static void refreshFolders() { - String[] keys = data.folders.keySet().toArray(new String[0]); - for (String key : keys) { - GamesFolder folder = data.folders.get(key); - if (!folder.isValid()) { - data.folders.remove(key); - } else { - folder.refresh(); - } - } - writeChanges(); - } - - public static ArrayList getGames() { - ArrayList games = new ArrayList<>(); - games.addAll(data.games); - for (GamesFolder folder: data.folders.values()) { - games.addAll(folder.getGames()); - } - return games; - } - - public static void writeChanges() { - parser.save(data); - } - - public static void setGameIcon(String id, Bitmap icon) { - try { - String appPath = FileUtils.getPrivatePath(); - FileUtils.createDir(appPath, "cache_icons"); - FileUtils.createFile(appPath + "/cache_icons/", id + ".png"); - - OutputStream output = FileUtils.getOutputStream(appPath + "/cache_icons/" + id + ".png"); - icon.compress(Bitmap.CompressFormat.PNG, 100, output); - output.close(); - } catch (Exception e) { - Log.e(Constants.LOG_TAG, "Error on save game icon: ", e); - } - } - - public static Bitmap loadGameIcon(String id) { - try { - String path = FileUtils.getPrivatePath() + "/cache_icons/" + id + ".png"; - if (FileUtils.exists(path)) { - InputStream stream = FileUtils.getInputStream(path); - Bitmap image = BitmapFactory.decodeStream(stream); - stream.close(); - return image; - } - } catch (Exception e) { - Log.e(Constants.LOG_TAG, "Error on load game icon: ", e); - } - return DEFAULT_ICON; - } - - public static GamesFolder[] getFolders() { - return data.folders.values().toArray(new GamesFolder[0]); - } - - public static void registerFolder(String path) { - if (!data.folders.containsKey(path)) { - GamesFolder folder = new GamesFolder(path); - data.folders.put(folder.getId(), folder); - folder.refresh(); - writeChanges(); - } - } - - public static void removeFolder(GamesFolder folder) { - data.folders.remove(folder.getId()); - writeChanges(); - } - - public static GameMetadata findGameById(String id) { - for (GameMetadata game: getGames()) { - if (game.getId().equals(id)) { - return game; - } - } - - return null; - } - - private static class DataModel { - public final List games = new ArrayList<>(); - public final HashMap folders = new HashMap<>(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/PerformanceMonitor.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/PerformanceMonitor.java deleted file mode 100644 index 23adbf13..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/PerformanceMonitor.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.panda3ds.pandroid.utils; - -import android.app.ActivityManager; -import android.content.Context; -import android.os.Debug; -import android.os.Process; - -import com.panda3ds.pandroid.app.PandroidApplication; -import com.panda3ds.pandroid.data.config.GlobalConfig; - -public class PerformanceMonitor { - private static int fps = 1; - private static String backend = ""; - private static int frames = 0; - private static long lastUpdate = 0; - private static long totalMemory = 1; - private static long availableMemory = 0; - - public static void initialize(String backendName) { - fps = 1; - backend = backendName; - } - - public static void runFrame() { - if (GlobalConfig.get(GlobalConfig.KEY_SHOW_PERFORMANCE_OVERLAY)) { - frames++; - if (System.currentTimeMillis() - lastUpdate > 1000) { - lastUpdate = System.currentTimeMillis(); - fps = frames; - frames = 0; - try { - Context ctx = PandroidApplication.getAppContext(); - ActivityManager manager = (ActivityManager) ctx.getSystemService(Context.ACTIVITY_SERVICE); - ActivityManager.MemoryInfo info = new ActivityManager.MemoryInfo(); - manager.getMemoryInfo(info); - totalMemory = info.totalMem; - availableMemory = info.availMem; - } catch (Exception e) {} - } - } - } - - public static long getUsedMemory() { - return Math.max(1, totalMemory - availableMemory); - } - - public static long getTotalMemory() { - return totalMemory; - } - - public static long getAvailableMemory() { - return availableMemory; - } - - public static int getFps() { - return fps; - } - - public static String getBackend() { - return backend; - } - - public static void destroy() {} -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/SearchAgent.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/SearchAgent.java deleted file mode 100644 index 749e1bd6..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/SearchAgent.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.panda3ds.pandroid.utils; - -import java.text.Normalizer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; - -public class SearchAgent { - // Store all results in a hashmap - // Matches IDs -> Result string - private final HashMap searchBuffer = new HashMap<>(); - - // Add search item to list - public void addToBuffer(String id, String... words) { - StringBuilder string = new StringBuilder(); - for (String word : words) { - string.append(normalize(word)).append(" "); - } - - searchBuffer.put(id, string.toString()); - } - - // Convert string to lowercase alphanumeric string, converting all characters to ASCII and turning double spaces into single ones - // For example, é will be converted to e - private String normalize(String string) { - string = Normalizer.normalize(string, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", ""); - - return string.toLowerCase() - .replaceAll("(?!([a-z0-9 ])).*", "") - .replaceAll("\\s\\s", " "); - } - - // Execute search and return array with item id. - public List search(String query) { - String[] words = normalize(query).split("\\s"); - - if (words.length == 0) { - return Collections.emptyList(); - } - - // Map for add all search result: id -> probability - HashMap results = new HashMap<>(); - for (String key : searchBuffer.keySet()) { - int probability = 0; - String value = searchBuffer.get(key); - - for (String word : words) { - if (value.contains(word)) - probability++; - } - - if (probability > 0) { - results.put(key, probability); - } - } - - - // Filter by probability average, ie by how closely they match to our query - // Ex: A = 10% B = 30% C = 70% (formula is (10+30+70)/3=36) - // Afterwards remove all results with probability < 36 - int average = 0; - for (String key : results.keySet()) { - average += results.get(key); - } - average = average / Math.max(1, results.size()); - - int i = 0; - ArrayList resultKeys = new ArrayList<>(Arrays.asList(results.keySet().toArray(new String[0]))); - while ((i < resultKeys.size() && resultKeys.size() > 1)) { - if (results.get(resultKeys.get(i)) < average) { - String key = resultKeys.get(i); - resultKeys.remove(i); - results.remove(key); - i = 0; - continue; - } - - i++; - } - - return Arrays.asList(results.keySet().toArray(new String[0])); - } - - // Clear search buffer - public void clearBuffer() { - searchBuffer.clear(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlRenderer.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlRenderer.java deleted file mode 100644 index c57421ab..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlRenderer.java +++ /dev/null @@ -1,183 +0,0 @@ -package com.panda3ds.pandroid.view; - -import static android.opengl.GLES32.*; - -import android.app.Activity; -import android.content.Context; -import android.content.res.Resources; -import android.graphics.Rect; -import android.opengl.GLSurfaceView; -import android.os.Handler; -import android.util.Log; - -import com.panda3ds.pandroid.AlberDriver; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.base.BottomAlertDialog; -import com.panda3ds.pandroid.data.SMDH; -import com.panda3ds.pandroid.data.config.GlobalConfig; -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.utils.CompatUtils; -import com.panda3ds.pandroid.utils.Constants; -import com.panda3ds.pandroid.utils.GameUtils; -import com.panda3ds.pandroid.utils.PerformanceMonitor; -import com.panda3ds.pandroid.view.ds.DsLayoutManager; -import com.panda3ds.pandroid.view.renderer.ConsoleRenderer; -import com.panda3ds.pandroid.view.renderer.layout.ConsoleLayout; -import javax.microedition.khronos.egl.EGLConfig; -import javax.microedition.khronos.opengles.GL10; - -public class PandaGlRenderer implements GLSurfaceView.Renderer, ConsoleRenderer { - private final String romPath; - private ConsoleLayout displayLayout; - private int screenWidth, screenHeight; - private int screenTexture; - public int screenFbo; - private final Context context; - - PandaGlRenderer(Context context, String romPath) { - super(); - this.context = context; - this.romPath = romPath; - - screenWidth = Resources.getSystem().getDisplayMetrics().widthPixels; - screenHeight = Resources.getSystem().getDisplayMetrics().heightPixels; - setLayout(DsLayoutManager.createLayout(0)); - } - - @Override - protected void finalize() throws Throwable { - if (screenTexture != 0) { - glDeleteTextures(1, new int[] {screenTexture}, 0); - } - - if (screenFbo != 0) { - glDeleteFramebuffers(1, new int[] {screenFbo}, 0); - } - - PerformanceMonitor.destroy(); - super.finalize(); - } - - public void onSurfaceCreated(GL10 unused, EGLConfig config) { - Log.i(Constants.LOG_TAG, glGetString(GL_EXTENSIONS)); - Log.w(Constants.LOG_TAG, glGetString(GL_VERSION)); - - int[] version = new int[2]; - glGetIntegerv(GL_MAJOR_VERSION, version, 0); - glGetIntegerv(GL_MINOR_VERSION, version, 1); - - if (version[0] < 3 || (version[0] == 3 && version[1] < 1)) { - Log.e(Constants.LOG_TAG, "OpenGL 3.1 or higher is required"); - } - - glClearColor(0.0f, 0.0f, 0.0f, 1.0f); - glClear(GL_COLOR_BUFFER_BIT); - - int[] generateBuffer = new int[1]; - glGenTextures(1, generateBuffer, 0); - screenTexture = generateBuffer[0]; - glBindTexture(GL_TEXTURE_2D, screenTexture); - glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, Constants.N3DS_WIDTH, Constants.N3DS_FULL_HEIGHT); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST_MIPMAP_LINEAR); - glBindTexture(GL_TEXTURE_2D, 0); - - glGenFramebuffers(1, generateBuffer, 0); - screenFbo = generateBuffer[0]; - glBindFramebuffer(GL_FRAMEBUFFER, screenFbo); - glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, screenTexture, 0); - if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) { - Log.e(Constants.LOG_TAG, "Framebuffer is not complete"); - } - glBindFramebuffer(GL_FRAMEBUFFER, 0); - - AlberDriver.Initialize(); - AlberDriver.setShaderJitEnabled(GlobalConfig.get(GlobalConfig.KEY_SHADER_JIT)); - - // If loading the ROM failed, display an error message and early exit - if (!AlberDriver.LoadRom(romPath)) { - // Get a handler that can be used to post to the main thread - Handler mainHandler = new Handler(context.getMainLooper()); - mainHandler.post(()-> { - new BottomAlertDialog(context) - .setTitle(R.string.failed_load_rom) - .setMessage(R.string.dialog_message_invalid_rom) - .setPositiveButton(android.R.string.ok, (dialog, witch) -> { - dialog.dismiss(); - CompatUtils.findActivity(context).finishAndRemoveTask(); - }) - .setCancelable(false) - .show(); - }); - - GameMetadata game = GameUtils.getCurrentGame(); - GameUtils.removeGame(game); - return; - } - - // Load the SMDH - byte[] smdhData = AlberDriver.GetSmdh(); - if (smdhData.length == 0) { - Log.w(Constants.LOG_TAG, "Failed to load SMDH"); - } else { - SMDH smdh = new SMDH(smdhData); - Log.i(Constants.LOG_TAG, "Loaded rom SDMH"); - Log.i(Constants.LOG_TAG, String.format("You are playing '%s' published by '%s'", smdh.getTitle(), smdh.getPublisher())); - GameUtils.getCurrentGame().applySMDH(smdh); - } - - PerformanceMonitor.initialize(getBackendName()); - } - - public void onDrawFrame(GL10 unused) { - glClearColor(0.0f, 0.0f, 0.0f, 1.0f); - glClear(GL_COLOR_BUFFER_BIT); - - if (AlberDriver.HasRomLoaded()) { - AlberDriver.RunFrame(screenFbo); - glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); - glBindFramebuffer(GL_READ_FRAMEBUFFER, screenFbo); - - Rect topScreen = displayLayout.getTopDisplayBounds(); - Rect bottomScreen = displayLayout.getBottomDisplayBounds(); - - glBlitFramebuffer( - 0, Constants.N3DS_FULL_HEIGHT, Constants.N3DS_WIDTH, Constants.N3DS_HALF_HEIGHT, topScreen.left, screenHeight - topScreen.top, - topScreen.right, screenHeight - topScreen.bottom, GL_COLOR_BUFFER_BIT, GL_LINEAR - ); - - // Remove the black bars on the bottom screen - glBlitFramebuffer( - 40, Constants.N3DS_HALF_HEIGHT, Constants.N3DS_WIDTH - 40, 0, bottomScreen.left, screenHeight - bottomScreen.top, bottomScreen.right, - screenHeight - bottomScreen.bottom, GL_COLOR_BUFFER_BIT, GL_LINEAR - ); - } - - PerformanceMonitor.runFrame(); - } - - public void onSurfaceChanged(GL10 unused, int width, int height) { - screenWidth = width; - screenHeight = height; - - displayLayout.update(screenWidth, screenHeight); - } - - @Override - public void setLayout(ConsoleLayout layout) { - displayLayout = layout; - displayLayout.setTopDisplaySourceSize(Constants.N3DS_WIDTH, Constants.N3DS_HALF_HEIGHT); - displayLayout.setBottomDisplaySourceSize(Constants.N3DS_WIDTH - 40 - 40, Constants.N3DS_HALF_HEIGHT); - displayLayout.update(screenWidth, screenHeight); - } - - @Override - public ConsoleLayout getLayout() { - return displayLayout; - } - - @Override - public String getBackendName() { - return "OpenGL"; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlSurfaceView.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlSurfaceView.java deleted file mode 100644 index e3023fcb..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaGlSurfaceView.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.panda3ds.pandroid.view; - -import android.content.Context; -import android.opengl.GLSurfaceView; -import android.os.Debug; - -import androidx.annotation.NonNull; -import com.panda3ds.pandroid.math.Vector2; -import com.panda3ds.pandroid.view.controller.TouchEvent; -import com.panda3ds.pandroid.view.controller.nodes.TouchScreenNodeImpl; -import com.panda3ds.pandroid.view.renderer.ConsoleRenderer; - -public class PandaGlSurfaceView extends GLSurfaceView implements TouchScreenNodeImpl { - final PandaGlRenderer renderer; - private int width; - private int height; - - public PandaGlSurfaceView(Context context, String romPath) { - super(context); - setEGLContextClientVersion(3); - if (Debug.isDebuggerConnected()) { - setDebugFlags(DEBUG_LOG_GL_CALLS); - } - renderer = new PandaGlRenderer(getContext(), romPath); - setRenderer(renderer); - } - - public ConsoleRenderer getRenderer() { return renderer; } - - @Override - protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - super.onMeasure(widthMeasureSpec, heightMeasureSpec); - width = getMeasuredWidth(); - height = getMeasuredHeight(); - } - - @NonNull - @Override - public Vector2 getSize() { - return new Vector2(width, height); - } - - @Override - public void onTouch(TouchEvent event) { - onTouchScreenPress(renderer, event); - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaLayoutController.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaLayoutController.java deleted file mode 100644 index 2f341c7b..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/PandaLayoutController.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.panda3ds.pandroid.view; - -import android.content.Context; -import android.util.AttributeSet; -import com.panda3ds.pandroid.AlberDriver; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.utils.Constants; -import com.panda3ds.pandroid.view.controller.ControllerLayout; -import com.panda3ds.pandroid.view.controller.mapping.ControllerProfileManager; -import com.panda3ds.pandroid.view.controller.mapping.ControllerItem; -import com.panda3ds.pandroid.view.controller.mapping.Profile; -import com.panda3ds.pandroid.view.controller.nodes.Button; -import com.panda3ds.pandroid.view.controller.nodes.Joystick; - -public class PandaLayoutController extends ControllerLayout { - - private int width = -1; - private int height = -1; - - public PandaLayoutController(Context context) { super(context); } - public PandaLayoutController(Context context, AttributeSet attrs) { super(context, attrs); } - public PandaLayoutController(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } - - public PandaLayoutController(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { - super(context, attrs, defStyleAttr, defStyleRes); - } - - public void initialize() { - int[] keyButtonList = {R.id.button_a, Constants.INPUT_KEY_A, R.id.button_b, Constants.INPUT_KEY_B, - R.id.button_y, Constants.INPUT_KEY_Y, R.id.button_x, Constants.INPUT_KEY_X, - - R.id.button_left, Constants.INPUT_KEY_LEFT, R.id.button_right, Constants.INPUT_KEY_RIGHT, - R.id.button_up, Constants.INPUT_KEY_UP, R.id.button_down, Constants.INPUT_KEY_DOWN, - - R.id.button_start, Constants.INPUT_KEY_START, R.id.button_select, Constants.INPUT_KEY_SELECT, - - R.id.button_l, Constants.INPUT_KEY_L, R.id.button_r, Constants.INPUT_KEY_R}; - - for (int i = 0; i < keyButtonList.length; i += 2) { - final int keyCode = keyButtonList[i + 1]; - ((Button) findViewById(keyButtonList[i])).setStateListener((btn, pressed) -> { - if (pressed) - AlberDriver.KeyDown(keyCode); - else - AlberDriver.KeyUp(keyCode); - }); - } - - ((Joystick) findViewById(R.id.left_analog)).setJoystickListener((joystick, axisX, axisY) -> { - AlberDriver.SetCirclepadAxis((int) (axisX * 0x9C), (int) (axisY * 0x9C) * -1); - }); - - refreshChildren(); - measure(MeasureSpec.EXACTLY, MeasureSpec.EXACTLY); - } - - @Override - protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - super.onMeasure(widthMeasureSpec, heightMeasureSpec); - int measuredWidth = getMeasuredWidth(); - int measuredHeight = getMeasuredHeight(); - - if (measuredWidth != width || measuredHeight != height) { - width = measuredWidth; - height = measuredHeight; - applyProfileMap(); - } - } - - private void applyProfileMap() { - Profile profile = ControllerProfileManager.getDefaultProfile(); - - profile.applyToView(ControllerItem.L,findViewById(R.id.button_l), width, height); - profile.applyToView(ControllerItem.R, findViewById(R.id.button_r), width, height); - profile.applyToView(ControllerItem.START, findViewById(R.id.button_start), width, height); - profile.applyToView(ControllerItem.SELECT, findViewById(R.id.button_select), width, height); - profile.applyToView(ControllerItem.JOYSTICK, findViewById(R.id.left_analog), width, height); - profile.applyToView(ControllerItem.GAMEPAD, findViewById(R.id.gamepad), width, height); - profile.applyToView(ControllerItem.DPAD, findViewById(R.id.dpad), width, height); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/SimpleTextWatcher.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/SimpleTextWatcher.java deleted file mode 100644 index baacd743..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/SimpleTextWatcher.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.panda3ds.pandroid.view; - -import android.text.Editable; -import android.text.TextWatcher; - -public interface SimpleTextWatcher extends TextWatcher { - void onChange(String value); - - @Override - default void onTextChanged(CharSequence s, int start, int before, int count) {} - - @Override - default void beforeTextChanged(CharSequence s, int start, int count, int after) {} - - @Override - default void afterTextChanged(Editable s) { - onChange(s.toString()); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/BaseEditor.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/BaseEditor.java deleted file mode 100644 index 4dba9f7c..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/BaseEditor.java +++ /dev/null @@ -1,322 +0,0 @@ -package com.panda3ds.pandroid.view.code; - -import android.annotation.SuppressLint; -import android.content.Context; -import android.graphics.Canvas; -import android.graphics.Color; -import android.graphics.Paint; -import android.graphics.Rect; -import android.text.Editable; -import android.text.Layout; -import android.util.AttributeSet; -import android.view.ViewTreeObserver; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; - -import java.util.Arrays; - -public class BaseEditor extends BasicTextEditor { - private static final String HELLO_WORLD = "Hello World"; - private final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.SUBPIXEL_TEXT_FLAG); - private final Rect rect = new Rect(); - private int currentLine; - private float spaceWidth; - private int lineHeight; - private int textOffset; - private int beginLine; - private int beginIndex; - private int endLine; - private int endIndex; - private int visibleHeight; - private int contentWidth; - private Layout textLayout; - private int currentWidth = -1; - private int currentHeight = -1; - - private final char[] textBuffer = new char[1]; - protected final int[] colors = new int[256]; - - // Allocate 512KB for the buffer - protected final byte[] syntaxBuffer = new byte[512 * 1024]; - private boolean requireUpdate = true; - - public BaseEditor(@NonNull Context context) { - super(context); - } - - public BaseEditor(@NonNull Context context, @Nullable AttributeSet attrs) { - super(context, attrs); - } - - public BaseEditor(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { - super(context, attrs, defStyleAttr); - } - - { - EditorColors.obtainColorScheme(colors, getContext()); - } - - @Override - protected void initialize() { - super.initialize(); - getViewTreeObserver().addOnGlobalLayoutListener(() -> { - adjustScroll(); - requireUpdate = true; - }); - } - - @SuppressLint("MissingSuperCall") - @Override - public void draw(Canvas canvas) { - //super.draw(canvas); - canvas.drawColor(colors[EditorColors.COLOR_BACKGROUND]); - textLayout = getLayout(); - if (textLayout == null) { - postDelayed(this::invalidate, 25); - return; - } - - try { - prepareDraw(); - if (requireUpdate) { - onVisibleContentChanged(beginIndex, endIndex - beginIndex); - } - - if (getSelectionStart() == getSelectionEnd()) { - drawCaret(canvas); - drawCurrentLine(canvas); - } else { - drawSelection(canvas); - } - - drawText(canvas); - drawLineCount(canvas); - } catch (Throwable e) { - drawError(canvas, e); - } - } - - private void drawError(Canvas canvas, Throwable e) { - canvas.drawColor(Color.RED); - paint.setTextSize(getTextSize()); - paint.setColor(Color.WHITE); - canvas.drawText("Editor draw error:", getPaddingLeft(), getLineHeight(), paint); - canvas.drawText(String.valueOf(e), getPaddingLeft(), getLineHeight() * 2, paint); - - int index = 2; - for (StackTraceElement trace : e.getStackTrace()) { - index++; - if (index > 5) break; - canvas.drawText(trace.getClassName() + ":" + trace.getMethodName() + ":" + trace.getLineNumber(), getPaddingLeft(), getLineHeight() * index, paint); - } - } - - private void prepareDraw() { - paint.setTypeface(getTypeface()); - paint.setTextSize(getTextSize()); - - Paint.FontMetrics fontMetrics = paint.getFontMetrics(); - spaceWidth = paint.measureText(" "); - lineHeight = getLineHeight(); - - //Align text to center of line - { - int ascent = (int) Math.abs(fontMetrics.ascent); - paint.getTextBounds(HELLO_WORLD, 0, HELLO_WORLD.length(), rect); - textOffset = Math.max(((lineHeight - rect.height()) / 2), 0) + ascent; - } - - int lineCount = textLayout.getLineCount(); - currentLine = textLayout.getLineForOffset(getSelectionStart()); - - int oldBeginLine = beginLine; - int oldEndLine = endLine; - - beginLine = Math.max(0, Math.min((getScrollY() / lineHeight) - 1, lineCount)); - beginIndex = textLayout.getLineStart(beginLine); - - if (oldEndLine != endLine || beginLine != oldBeginLine) { - requireUpdate = true; - } - - getGlobalVisibleRect(rect); - visibleHeight = rect.height(); - - endLine = Math.round(((float) visibleHeight / lineHeight) + 2) + beginLine; - endIndex = getLayout().getLineStart(Math.min(lineCount, endLine)); - - int padding = (int) (paint.measureText(String.valueOf(lineCount)) + (spaceWidth * 4)); - if (getPaddingLeft() != padding) { - setPadding(padding, 0, 0, 0); - } - - contentWidth = getWidth() + getScrollX(); - } - - private void drawLineCount(Canvas canvas) { - int colorEnable = colors[EditorColors.COLOR_TEXT]; - int colorDisable = applyAlphaToColor(colors[EditorColors.COLOR_TEXT], 100); - - paint.setColor(colors[EditorColors.COLOR_BACKGROUND_SECONDARY]); - int scrollY = getScrollY(); - float x = getScrollX(); - - canvas.translate(x, 0); - canvas.drawRect(0, scrollY, getPaddingLeft() - spaceWidth, visibleHeight + scrollY, paint); - paint.setColor(colors[EditorColors.COLOR_CURRENT_LINE]); - canvas.drawRect(0, currentLine * lineHeight, getPaddingLeft() - spaceWidth, (currentLine * lineHeight) + lineHeight, paint); - - for (int i = beginLine; i < Math.min(getLineCount(), endLine); i++) { - String text = String.valueOf(i + 1); - if (i == currentLine) { - paint.setColor(colorEnable); - } else { - paint.setColor(colorDisable); - } - - float width = paint.measureText(text); - canvas.drawText(text, getPaddingLeft() - width - (spaceWidth * 2.5f), (i * lineHeight) + textOffset, paint); - } - - paint.setColor(applyAlphaToColor(colorEnable, 10)); - canvas.drawRect(getPaddingLeft() - spaceWidth - (spaceWidth / 4), scrollY, getPaddingLeft() - spaceWidth, visibleHeight + scrollY, paint); - - canvas.translate(-x, 0); - } - - private void drawCurrentLine(Canvas canvas) { - float y = currentLine * lineHeight; - paint.setColor(colors[EditorColors.COLOR_CURRENT_LINE]); - canvas.drawRect(0, y, contentWidth, y + lineHeight, paint); - } - - private void drawText(Canvas canvas) { - Editable edit = getText(); - float x = 0; - float y = textOffset; - int line = 0; - - canvas.translate(getPaddingLeft(), beginLine * lineHeight); - - paint.setColor(colors[EditorColors.COLOR_TEXT]); - for (int i = beginIndex; i < endIndex; i++) { - textBuffer[0] = edit.charAt(i); - switch (textBuffer[0]) { - case '\n': - line++; - x = 0; - y = (line * lineHeight) + textOffset; - break; - - case ' ': - x += spaceWidth; - break; - - default: - paint.setColor(colors[syntaxBuffer[i - beginIndex]]); - canvas.drawText(textBuffer, 0, 1, x, y, paint); - x += paint.measureText(textBuffer, 0, 1); - break; - } - } - - canvas.translate(-getPaddingLeft(), -(beginLine * lineHeight)); - } - - private void drawCaret(Canvas canvas) { - int start = textLayout.getLineStart(currentLine); - int end = textLayout.getLineEnd(currentLine); - int position = getSelectionStart(); - float x = getPaddingLeft(); - float y = (currentLine * lineHeight); - Editable text = getText(); - for (int i = start; i < end; i++) { - if (i == position) { - break; - } - - textBuffer[0] = text.charAt(i); - x += paint.measureText(textBuffer, 0, 1); - } - - paint.setColor(colors[EditorColors.COLOR_CARET]); - float caretWidth = spaceWidth / 2; - canvas.drawRect(x - (caretWidth / 2), y, x + (caretWidth / 2), y + lineHeight, paint); - } - - private void drawSelection(Canvas canvas) { - int start = getSelectionStart(); - int end = getSelectionEnd(); - int endLine = textLayout.getLineForOffset(end); - canvas.translate(getPaddingLeft(), 0); - - paint.setColor(colors[EditorColors.COLOR_SELECTION]); - - Editable text = getText(); - - for (int line = currentLine; line <= endLine; line++) { - - if (line < beginLine) continue; - if (line > this.endLine) break; - - if (line == endLine || line == currentLine) { - int lineStart = textLayout.getLineStart(line); - float x = 0; - - if (lineStart <= start) { - x = paint.measureText(text, lineStart, start); - lineStart = start; - } - float width; - if (line < endLine) { - width = contentWidth; - } else { - width = paint.measureText(text, lineStart, end); - } - - canvas.drawRect(x, lineHeight * line, x + width, (lineHeight * line) + lineHeight, paint); - } else { - canvas.drawRect(0, lineHeight * line, contentWidth, (lineHeight * line) + lineHeight, paint); - } - } - canvas.translate(-getPaddingLeft(), 0); - } - - public int applyAlphaToColor(int color, int alpha) { - return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); - } - - protected void onVisibleContentChanged(int index, int length) { - requireUpdate = false; - - Arrays.fill(syntaxBuffer, (byte) 0); - if (length > 0) { - onRefreshColorScheme(syntaxBuffer, index, length); - } - } - - protected void onRefreshColorScheme(byte[] buffer, int index, int length) { - } - - @Override - protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - super.onMeasure(widthMeasureSpec, heightMeasureSpec); - if (currentWidth != getMeasuredWidth() || currentHeight != getMeasuredHeight()) { - currentWidth = getMeasuredWidth(); - currentHeight = getMeasuredHeight(); - invalidateAll(); - } - } - - protected void invalidateAll() { - requireUpdate = true; - invalidate(); - } - - @Override - protected void onTextChanged() { - requireUpdate = true; - super.onTextChanged(); - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/BasicTextEditor.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/BasicTextEditor.java deleted file mode 100644 index caabae6b..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/BasicTextEditor.java +++ /dev/null @@ -1,154 +0,0 @@ -package com.panda3ds.pandroid.view.code; - -import android.annotation.SuppressLint; -import android.content.Context; -import android.graphics.Color; -import android.graphics.Rect; -import android.graphics.Typeface; -import android.text.Editable; -import android.text.InputType; -import android.text.TextWatcher; -import android.util.AttributeSet; -import android.util.TypedValue; -import android.view.GestureDetector; -import android.view.Gravity; -import android.view.KeyEvent; -import android.view.MotionEvent; -import android.view.inputmethod.EditorInfo; -import android.widget.Scroller; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.widget.AppCompatEditText; - -import com.panda3ds.pandroid.view.SimpleTextWatcher; - -public class BasicTextEditor extends AppCompatEditText { - private GestureDetector gestureDetector; - private final Rect visibleRect = new Rect(); - - public BasicTextEditor(@NonNull Context context) { - super(context); - initialize(); - } - - public BasicTextEditor(@NonNull Context context, @Nullable AttributeSet attrs) { - super(context, attrs); - initialize(); - } - - public BasicTextEditor(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { - super(context, attrs, defStyleAttr); - initialize(); - } - - protected void initialize() { - setTypeface(Typeface.MONOSPACE); - gestureDetector = new GestureDetector(getContext(), new ScrollGesture()); - - setTypeface(Typeface.createFromAsset(getContext().getAssets(), "fonts/comic_mono.ttf")); - setGravity(Gravity.START | Gravity.TOP); - setTextSize(TypedValue.COMPLEX_UNIT_SP, 16); - setLineSpacing(0, 1.3f); - setScroller(new Scroller(getContext())); - - setInputType(InputType.TYPE_CLASS_TEXT | - InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | - InputType.TYPE_TEXT_FLAG_IME_MULTI_LINE | - InputType.TYPE_TEXT_FLAG_MULTI_LINE | - InputType.TYPE_TEXT_FLAG_AUTO_CORRECT); - - setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI); - setBackgroundColor(Color.BLACK); - setTextColor(Color.WHITE); - - setFocusableInTouchMode(true); - setHorizontallyScrolling(true); - setHorizontalScrollBarEnabled(true); - - addTextChangedListener((SimpleTextWatcher) value -> BasicTextEditor.this.onTextChanged()); - } - - // Disable default Android scroll - @Override - public void scrollBy(int x, int y) {} - - @Override - public void scrollTo(int x, int y) {} - - public void setScroll(int x, int y) { - x = Math.max(0, x); - y = Math.max(0, y); - - int maxHeight = Math.round(getLineCount() * getLineHeight()); - getGlobalVisibleRect(visibleRect); - maxHeight = Math.max(0, maxHeight - visibleRect.height()); - - int maxWidth = (int) getPaint().measureText(getText(), 0, length()); - maxWidth += getPaddingLeft() + getPaddingRight(); - - int scrollX = x - Math.max(Math.min(maxWidth - visibleRect.width(), x), 0); - int scrollY = Math.min(maxHeight, y); - - super.scrollTo(scrollX, scrollY); - } - - public void adjustScroll() { - setScroll(getScrollX(), getScrollY()); - } - - protected void onTextChanged() {} - - private boolean onSuperTouchListener(MotionEvent event) { - return super.onTouchEvent(event); - } - - @SuppressLint("ClickableViewAccessibility") - @Override - public boolean onTouchEvent(MotionEvent event) { - return gestureDetector.onTouchEvent(event); - } - - private class ScrollGesture implements GestureDetector.OnGestureListener { - @Override - public boolean onDown(@NonNull MotionEvent e) { - return true; - } - - @Override - public void onShowPress(@NonNull MotionEvent e) { - onSuperTouchListener(e); - } - - @Override - public boolean onSingleTapUp(@NonNull MotionEvent e) { - return onSuperTouchListener(e); - } - - @Override - public boolean onScroll(@NonNull MotionEvent e1, @NonNull MotionEvent e2, float distanceX, float distanceY) { - int scrollX = (int) Math.max(0, getScrollX() + distanceX); - int scrollY = (int) Math.max(0, getScrollY() + distanceY); - setScroll(scrollX, scrollY); - return true; - } - - @Override - public void onLongPress(@NonNull MotionEvent e) { - onSuperTouchListener(e); - } - - @Override - public boolean onFling(@NonNull MotionEvent e1, @NonNull MotionEvent e2, float velocityX, float velocityY) { - return false; - } - } - - public void insert(CharSequence text) { - if (getSelectionStart() == getSelectionEnd()) { - getText().insert(getSelectionStart(), text); - } else { - getText().replace(getSelectionStart(), getSelectionEnd(), text); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/CodeEditor.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/CodeEditor.java deleted file mode 100644 index 96a8637b..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/CodeEditor.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.panda3ds.pandroid.view.code; - -import android.content.Context; -import android.util.AttributeSet; - -import com.panda3ds.pandroid.view.code.syntax.CodeSyntax; - -public class CodeEditor extends BaseEditor { - private CodeSyntax syntax; - private Runnable contentChangeListener; - - public CodeEditor(Context context) { - super(context); - } - - public CodeEditor(Context context, AttributeSet attrs) { - super(context, attrs); - } - - public CodeEditor(Context context, AttributeSet attrs, int defStyleAttr) { - super(context, attrs, defStyleAttr); - } - - public void setSyntax(CodeSyntax syntax) { - this.syntax = syntax; - invalidateAll(); - } - - public void setOnContentChangedListener(Runnable contentChangeListener) { - this.contentChangeListener = contentChangeListener; - } - - @Override - protected void onTextChanged() { - super.onTextChanged(); - if (contentChangeListener != null) { - contentChangeListener.run(); - } - } - - @Override - protected void onRefreshColorScheme(byte[] buffer, int index, int length) { - super.onRefreshColorScheme(buffer, index, length); - - if (syntax != null) { - final CharSequence text = getText().subSequence(index, index + length); - syntax.apply(syntaxBuffer, text); - System.gc(); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/EditorColors.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/EditorColors.java deleted file mode 100644 index 3b12ddf9..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/EditorColors.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.panda3ds.pandroid.view.code; - -import android.content.Context; - -import com.panda3ds.pandroid.app.PandroidApplication; - -public class EditorColors { - public static final byte COLOR_TEXT = 0x0; - public static final byte COLOR_KEYWORDS = 0x1; - public static final byte COLOR_NUMBERS = 0x2; - public static final byte COLOR_STRING = 0x3; - public static final byte COLOR_METADATA = 0x4; - public static final byte COLOR_COMMENT = 0x5; - public static final byte COLOR_SYMBOLS = 0x6; - public static final byte COLOR_FIELDS = 0x7; - public static final byte COLOR_BACKGROUND = 0x1D; - public static final byte COLOR_BACKGROUND_SECONDARY = 0x2D; - public static final byte COLOR_SELECTION = 0x3D; - public static final byte COLOR_CARET = 0x4D; - public static final byte COLOR_CURRENT_LINE = 0x5D; - - public static void obtainColorScheme(int[] colors, Context context) { - if (PandroidApplication.isDarkMode()) { - applyDarkTheme(colors); - } else { - applyLightTheme(colors); - } - } - - private static void applyLightTheme(int[] colors) { - colors[EditorColors.COLOR_TEXT] = 0xFF000000; - colors[EditorColors.COLOR_KEYWORDS] = 0xFF3AE666; - colors[EditorColors.COLOR_NUMBERS] = 0xFF3A9EE6; - colors[EditorColors.COLOR_METADATA] = 0xFF806AE6; - colors[EditorColors.COLOR_SYMBOLS] = 0xFF202020; - colors[EditorColors.COLOR_STRING] = 0xFF2EB541; - colors[EditorColors.COLOR_FIELDS] = 0xFF9876AA; - colors[EditorColors.COLOR_COMMENT] = 0xFF808080; - - colors[EditorColors.COLOR_BACKGROUND] = 0xFFFFFFFF; - colors[EditorColors.COLOR_BACKGROUND_SECONDARY] = 0xFFF0F0F0; - colors[EditorColors.COLOR_SELECTION] = 0x701F9EDE; - colors[EditorColors.COLOR_CARET] = 0xFF000000; - colors[EditorColors.COLOR_CURRENT_LINE] = 0x05000050; - } - - private static void applyDarkTheme(int[] colors) { - colors[EditorColors.COLOR_TEXT] = 0xFFFFFFFF; - colors[EditorColors.COLOR_KEYWORDS] = 0xFFE37F3E; - colors[EditorColors.COLOR_NUMBERS] = 0xFF3A9EE6; - colors[EditorColors.COLOR_METADATA] = 0xFFC5CA1D; - colors[EditorColors.COLOR_SYMBOLS] = 0xFFC0C0C0; - colors[EditorColors.COLOR_STRING] = 0xFF2EB541; - colors[EditorColors.COLOR_FIELDS] = 0xFF9876AA; - colors[EditorColors.COLOR_COMMENT] = 0xFFBBBBBB; - - colors[EditorColors.COLOR_BACKGROUND] = 0xFF2B2B2B; - colors[EditorColors.COLOR_BACKGROUND_SECONDARY] = 0xFF313335; - colors[EditorColors.COLOR_SELECTION] = 0x701F9EDE; - colors[EditorColors.COLOR_CARET] = 0x60FFFFFF; - colors[EditorColors.COLOR_CURRENT_LINE] = 0x10FFFFFF; - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/CodeSyntax.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/CodeSyntax.java deleted file mode 100644 index 6c50865f..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/CodeSyntax.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.panda3ds.pandroid.view.code.syntax; - -public abstract class CodeSyntax { - public abstract void apply(byte[] syntaxBuffer, final CharSequence text); - - // Get syntax highlighting data for a file based on its filename, by looking at the extension - public static CodeSyntax getFromFilename(String name) { - name = name.trim().toLowerCase(); - String[] parts = name.split("\\."); - if (parts.length == 0) - return null; - - // Get syntax based on file extension - switch (parts[parts.length - 1]) { - case "lua": - return new LuaSyntax(); - default: - return null; - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/LuaSyntax.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/LuaSyntax.java deleted file mode 100644 index d53fb1d7..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/LuaSyntax.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.panda3ds.pandroid.view.code.syntax; - -import com.panda3ds.pandroid.view.code.EditorColors; - -import java.util.Arrays; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -class LuaSyntax extends CodeSyntax { - public static final Pattern comment = Pattern.compile("(\\-\\-.*)"); - - public static final Pattern keywords = PatternUtils.buildGenericKeywords( - "and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", - "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"); - - public static final Pattern identifiers = PatternUtils.buildGenericKeywords( - "assert", "collectgarbage", "dofile", "error", "getmetatable", "ipairs", "loadfile", "load", "loadstring", "next", "pairs", "pcall", "print", "rawequal", "rawlen", "rawget", "rawset", - "select", "setmetatable", "tonumber", "tostring", "type", "xpcall", "_G", "_VERSION", "arshift", "band", "bnot", "bor", "bxor", "btest", "extract", "lrotate", "lshift", "replace", - "rrotate", "rshift", "create", "resume", "running", "status", "wrap", "yield", "isyieldable", "debug", "getuservalue", "gethook", "getinfo", "getlocal", "getregistry", "getmetatable", - "getupvalue", "upvaluejoin", "upvalueid", "setuservalue", "sethook", "setlocal", "setmetatable", "setupvalue", "traceback", "close", "flush", "input", "lines", "open", "output", "popen", - "read", "tmpfile", "type", "write", "close", "flush", "lines", "read", "seek", "setvbuf", "write", "__gc", "__tostring", "abs", "acos", "asin", "atan", "ceil", "cos", "deg", "exp", "tointeger", - "floor", "fmod", "ult", "log", "max", "min", "modf", "rad", "random", "randomseed", "sin", "sqrt", "string", "tan", "type", "atan2", "cosh", "sinh", "tanh", - "pow", "frexp", "ldexp", "log10", "pi", "huge", "maxinteger", "mininteger", "loadlib", "searchpath", "seeall", "preload", "cpath", "path", "searchers", "loaded", "module", "require", "clock", - "date", "difftime", "execute", "exit", "getenv", "remove", "rename", "setlocale", "time", "tmpname", "byte", "char", "dump", "find", "format", "gmatch", "gsub", "len", "lower", "match", "rep", - "reverse", "sub", "upper", "pack", "packsize", "unpack", "concat", "maxn", "insert", "pack", "unpack", "remove", "move", "sort", "offset", "codepoint", "char", "len", "codes", "charpattern", - "coroutine", "table", "io", "os", "string", "uint8_t", "bit32", "math", "debug", "package"); - - public static final Pattern string = Pattern.compile("((\")(.*?)([^\\\\]\"))|((\")(.+))|((')(.?)('))"); - public static final Pattern symbols = Pattern.compile("([.!&?:;*+/{}()\\]\\[,=-])"); - public static final Pattern numbers = Pattern.compile("\\b((\\d*[.]?\\d+([Ee][+-]?[\\d]+)?[LlfFdD]?)|(0[xX][0-9a-zA-Z]+)|(0[bB][0-1]+)|(0[0-7]+))\\b"); - - @Override - public void apply(byte[] syntaxBuffer, CharSequence text) { - for (Matcher matcher = keywords.matcher(text); matcher.find(); ) { - Arrays.fill(syntaxBuffer, matcher.start(), matcher.end(), EditorColors.COLOR_KEYWORDS); - } - - for (Matcher matcher = identifiers.matcher(text); matcher.find(); ) { - Arrays.fill(syntaxBuffer, matcher.start(), matcher.end(), EditorColors.COLOR_FIELDS); - } - - for (Matcher matcher = symbols.matcher(text); matcher.find(); ) { - Arrays.fill(syntaxBuffer, matcher.start(), matcher.end(), EditorColors.COLOR_SYMBOLS); - } - - for (Matcher matcher = numbers.matcher(text); matcher.find(); ) { - Arrays.fill(syntaxBuffer, matcher.start(), matcher.end(), EditorColors.COLOR_NUMBERS); - } - - for (Matcher matcher = string.matcher(text); matcher.find(); ) { - Arrays.fill(syntaxBuffer, matcher.start(), matcher.end(), EditorColors.COLOR_STRING); - } - - for (Matcher matcher = comment.matcher(text); matcher.find(); ) { - Arrays.fill(syntaxBuffer, matcher.start(), matcher.end(), EditorColors.COLOR_COMMENT); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/PatternUtils.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/PatternUtils.java deleted file mode 100644 index accb0326..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/code/syntax/PatternUtils.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.panda3ds.pandroid.view.code.syntax; - -import java.util.regex.Pattern; - -class PatternUtils { - public static Pattern buildGenericKeywords(String... keywords) { - StringBuilder builder = new StringBuilder(); - builder.append("\\b("); - for (int i = 0; i < keywords.length; i++) { - builder.append(keywords[i]); - if (i + 1 != keywords.length) { - builder.append("|"); - } - } - - builder.append(")\\b"); - return Pattern.compile(builder.toString()); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/ControllerLayout.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/ControllerLayout.java deleted file mode 100644 index 32451bc7..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/ControllerLayout.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.panda3ds.pandroid.view.controller; - -import android.content.Context; -import android.util.AttributeSet; -import android.util.Log; -import android.view.MotionEvent; -import android.view.View; -import android.view.ViewGroup; -import android.widget.RelativeLayout; -import com.panda3ds.pandroid.math.Vector2; -import com.panda3ds.pandroid.utils.Constants; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; - -public class ControllerLayout extends RelativeLayout { - private final HashMap activeTouchEvents = new HashMap<>(); - private final ArrayList controllerNodes = new ArrayList<>(); - - public ControllerLayout(Context context) { this(context, null); } - public ControllerLayout(Context context, AttributeSet attrs) { this(context, attrs, 0); } - public ControllerLayout(Context context, AttributeSet attrs, int defStyleAttr) { this(context, attrs, defStyleAttr, 0); } - - public ControllerLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { - super(context, attrs, defStyleAttr, defStyleRes); - } - - public void refreshChildren() { - ArrayList nodes = new ArrayList<>(); - populateNodesArray(this, nodes); - - // Need Reverse: First view is in back and last view is in front for respect android View hierarchy - Collections.reverse(nodes); - - controllerNodes.clear(); - controllerNodes.addAll(nodes); - } - - private void populateNodesArray(ViewGroup group, ArrayList list) { - for (int i = 0; i < group.getChildCount(); i++) { - View view = group.getChildAt(i); - if (view instanceof ControllerNode) { - list.add((ControllerNode) view); - } else if (view instanceof ViewGroup) { - populateNodesArray((ViewGroup) view, list); - } - } - } - - @Override - public boolean onTouchEvent(MotionEvent event) { - int index = event.getActionIndex(); - - switch (event.getActionMasked()) { - case MotionEvent.ACTION_UP: - case MotionEvent.ACTION_CANCEL: - case MotionEvent.ACTION_POINTER_UP: { - int id = event.getPointerId(index); - processTouch(true, event.getX(index), event.getY(index), id); - } break; - case MotionEvent.ACTION_DOWN: - case MotionEvent.ACTION_POINTER_DOWN: { - int id = event.getPointerId(index); - processTouch(false, event.getX(index), event.getY(index), id); - } break; - case MotionEvent.ACTION_MOVE: - for (int id = 0; id < event.getPointerCount(); id++) { - processTouch(false, event.getX(id), event.getY(id), id); - } - break; - } - return true; - } - - private void processTouch(boolean up, float x, float y, int index) { - int[] globalPosition = new int[2]; - getLocationInWindow(globalPosition); - - TouchType action = TouchType.ACTION_MOVE; - if ((!activeTouchEvents.containsKey(index))) { - if (up) return; - ControllerNode node = null; - for (ControllerNode item : controllerNodes) { - Vector2 pos = item.getPosition(); - Vector2 size = item.getSize(); - - float cx = (pos.x - globalPosition[0]); - float cy = (pos.y - globalPosition[1]); - if (item.isVisible() && x > cx && x < cx + size.x && y > cy && y < cy + size.y) { - node = item; - break; - } - } - if (node != null) { - activeTouchEvents.put(index, node); - action = TouchType.ACTION_DOWN; - } else { - return; - } - } - - if (up) action = TouchType.ACTION_UP; - - ControllerNode node = activeTouchEvents.get(index); - Vector2 pos = node.getPosition(); - pos.x -= globalPosition[0]; - pos.y -= globalPosition[1]; - - x -= pos.x; - y -= pos.y; - - node.onTouch(new TouchEvent(x, y, action)); - - if (up) { - activeTouchEvents.remove(index); - } - } - - @Override - public void onViewAdded(View child) { - super.onViewAdded(child); - refreshChildren(); - } - - @Override - public void onViewRemoved(View child) { - super.onViewRemoved(child); - refreshChildren(); - } - - // TODO: Need to replace these methods to prevent Android sending events directly to children - - @Override - public ArrayList getTouchables() { - return new ArrayList<>(); - } - - @Override - public boolean onInterceptTouchEvent(MotionEvent ev) { - return true; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/ControllerNode.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/ControllerNode.java deleted file mode 100644 index 7d45550a..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/ControllerNode.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.panda3ds.pandroid.view.controller; - -import android.view.View; -import androidx.annotation.NonNull; -import com.panda3ds.pandroid.math.Vector2; - -public interface ControllerNode { - @NonNull - default Vector2 getPosition() { - View view = (View) this; - - int[] position = new int[2]; - view.getLocationInWindow(position); - return new Vector2(position[0], position[1]); - } - - default boolean isVisible() { return ((View) this).isShown(); } - - @NonNull Vector2 getSize(); - void onTouch(TouchEvent event); -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/TouchEvent.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/TouchEvent.java deleted file mode 100644 index 6b82d201..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/TouchEvent.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.panda3ds.pandroid.view.controller; - -public class TouchEvent { - private final TouchType action; - private final float x, y; - - public float getX() { return x; } - public float getY() { return y; } - public TouchType getAction() { return action; } - - public TouchEvent(float x, float y, TouchType action) { - this.x = x; - this.y = y; - this.action = action; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/TouchType.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/TouchType.java deleted file mode 100644 index 69772915..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/TouchType.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.panda3ds.pandroid.view.controller; - -public enum TouchType { - ACTION_DOWN, - ACTION_MOVE, - ACTION_UP -}; \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/listeners/ButtonStateListener.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/listeners/ButtonStateListener.java deleted file mode 100644 index eb5a693a..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/listeners/ButtonStateListener.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.panda3ds.pandroid.view.controller.listeners; - -import com.panda3ds.pandroid.view.controller.nodes.Button; - -public interface ButtonStateListener { - void onButtonPressedChange(Button button, boolean pressed); -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/listeners/JoystickListener.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/listeners/JoystickListener.java deleted file mode 100644 index 77225223..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/listeners/JoystickListener.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.panda3ds.pandroid.view.controller.listeners; - -import com.panda3ds.pandroid.view.controller.nodes.Joystick; - -public interface JoystickListener { - void onJoystickAxisChange(Joystick joystick, float axisX, float axisY); -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerItem.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerItem.java deleted file mode 100644 index 6be617b5..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerItem.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.panda3ds.pandroid.view.controller.mapping; - -public enum ControllerItem { - START, - SELECT, - L,R, - GAMEPAD, - DPAD, JOYSTICK -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerMapper.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerMapper.java deleted file mode 100644 index 04cb75c8..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerMapper.java +++ /dev/null @@ -1,202 +0,0 @@ -package com.panda3ds.pandroid.view.controller.mapping; - -import android.annotation.SuppressLint; -import android.content.Context; -import android.graphics.Canvas; -import android.graphics.Color; -import android.graphics.DashPathEffect; -import android.graphics.Paint; -import android.graphics.drawable.ColorDrawable; -import android.util.AttributeSet; -import android.view.MotionEvent; -import android.view.View; -import android.widget.FrameLayout; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.lang.Function; -import com.panda3ds.pandroid.math.Vector2; - -public class ControllerMapper extends FrameLayout { - public static int COLOR_DARK = Color.rgb(20, 20, 20); - public static int COLOR_LIGHT = Color.rgb(60, 60, 60); - private final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); - private Profile profile; - private View selectedView; - private final Paint selectionPaint = new Paint(Paint.ANTI_ALIAS_FLAG); - private int width = -1; - private int height = -1; - private Function changeListener; - - public ControllerMapper(@NonNull Context context) { - this(context, null); - } - - public ControllerMapper(@NonNull Context context, @Nullable AttributeSet attrs) { - this(context, attrs, 0); - } - - public ControllerMapper(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { - this(context, attrs, defStyleAttr, 0); - } - - public ControllerMapper(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) { - super(context, attrs, defStyleAttr, defStyleRes); - setBackground(new ColorDrawable(Color.YELLOW)); - float dp = getResources().getDisplayMetrics().density; - - selectionPaint.setColor(Color.RED); - selectionPaint.setStrokeWidth(dp * 2); - selectionPaint.setStyle(Paint.Style.STROKE); - selectionPaint.setPathEffect(new DashPathEffect(new float[]{dp * 10, dp * 10}, 0.0f)); - } - - public void initialize(Function changeListener, Profile profile) { - this.profile = profile; - this.changeListener = changeListener; - - measure(MeasureSpec.EXACTLY, MeasureSpec.EXACTLY); - - new MoveElementListener(ControllerItem.L, findViewById(R.id.button_l)); - new MoveElementListener(ControllerItem.R, findViewById(R.id.button_r)); - new MoveElementListener(ControllerItem.START, findViewById(R.id.button_start)); - new MoveElementListener(ControllerItem.SELECT, findViewById(R.id.button_select)); - new MoveElementListener(ControllerItem.DPAD, findViewById(R.id.dpad)); - new MoveElementListener(ControllerItem.GAMEPAD, findViewById(R.id.gamepad)); - new MoveElementListener(ControllerItem.JOYSTICK, findViewById(R.id.left_analog)); - } - - @Override - protected void onDraw(Canvas canvas) { - super.onDraw(canvas); - drawBackground(canvas); - if (selectedView != null) { - paint.setColor(Color.argb(30, 255, 0, 0)); - drawSelected(canvas, paint); - } - } - - @Override - protected void dispatchDraw(Canvas canvas) { - super.dispatchDraw(canvas); - if (selectedView != null) { - drawSelected(canvas, selectionPaint); - } - } - - public void drawSelected(Canvas canvas, Paint paint) { - int[] absolutePosition = new int[2]; - int[] selectedViewPosition = new int[2]; - - selectedView.getLocationOnScreen(selectedViewPosition); - getLocationOnScreen(absolutePosition); - - int width = selectedView.getLayoutParams().width; - int height = selectedView.getLayoutParams().height; - - int x = selectedViewPosition[0] - absolutePosition[0]; - int y = selectedViewPosition[1] - absolutePosition[1]; - - canvas.drawRect(x, y, x + width, y + height, paint); - } - - - private void drawBackground(Canvas canvas) { - paint.setStyle(Paint.Style.FILL); - - int shapeSize = Math.round(getResources().getDimension(R.dimen.SizePt) * 7.2f); - boolean dark = true; - boolean start = true; - - for (int x = 0; x < width + shapeSize; x += shapeSize) { - for (int y = 0; y < height + shapeSize; y += shapeSize) { - paint.setColor(dark ? COLOR_DARK : COLOR_LIGHT); - canvas.drawRect(x, y, x + shapeSize, y + shapeSize, paint); - dark = !dark; - } - start = !start; - dark = start; - } - } - - @Override - protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - super.onMeasure(widthMeasureSpec, heightMeasureSpec); - int measuredWidth = getMeasuredWidth(); - int measuredHeight = getMeasuredHeight(); - - if (measuredWidth != width || measuredHeight != height) { - width = measuredWidth; - height = measuredHeight; - refreshLayout(); - } - } - - public void refreshLayout() { - if (profile != null) { - profile.applyToView(ControllerItem.L, findViewById(R.id.button_l), width, height); - profile.applyToView(ControllerItem.R, findViewById(R.id.button_r), width, height); - profile.applyToView(ControllerItem.START, findViewById(R.id.button_start), width, height); - profile.applyToView(ControllerItem.SELECT, findViewById(R.id.button_select), width, height); - profile.applyToView(ControllerItem.DPAD, findViewById(R.id.dpad), width, height); - profile.applyToView(ControllerItem.GAMEPAD, findViewById(R.id.gamepad), width, height); - profile.applyToView(ControllerItem.JOYSTICK, findViewById(R.id.left_analog), width, height); - } - } - - public int getCurrentWidth() { - return width; - } - - public int getCurrentHeight() { - return height; - } - - public class MoveElementListener implements OnTouchListener { - private final ControllerItem id; - private final View view; - private final Vector2 downPosition = new Vector2(0.0f, 0.0f); - private boolean down = false; - - public MoveElementListener(ControllerItem id, View view) { - this.view = view; - this.id = id; - this.view.setOnTouchListener(this); - } - - @SuppressLint("ClickableViewAccessibility") - @Override - public boolean onTouch(View v, MotionEvent event) { - if (!down) { - down = true; - downPosition.set(event.getX() - (view.getLayoutParams().width / 2.0f), event.getY() - (view.getLayoutParams().height / 2.0f)); - } - - int[] viewPosition = new int[2]; - getLocationOnScreen(viewPosition); - - int x = Math.max(0, Math.min(Math.round(event.getRawX() - viewPosition[0] - downPosition.x), width)); - int y = Math.max(0, Math.min(Math.round(event.getRawY() - viewPosition[1] - downPosition.y), height)); - - profile.setLocation(id, x, y, width, height); - profile.applyToView(id, view, width, height); - - if (changeListener != null) { - changeListener.run(id); - } - - selectedView = view; - - if (event.getAction() == MotionEvent.ACTION_UP) { - selectedView = null; - down = false; - invalidate(); - return false; - } else { - return true; - } - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerProfileManager.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerProfileManager.java deleted file mode 100644 index c5b753d2..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/ControllerProfileManager.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.panda3ds.pandroid.view.controller.mapping; - -import android.annotation.SuppressLint; -import android.view.Gravity; - -import com.panda3ds.pandroid.data.GsonConfigParser; -import com.panda3ds.pandroid.utils.Constants; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.UUID; - -public class ControllerProfileManager { - - public static final GsonConfigParser parser; - private static final DataModel data; - - static { - parser = new GsonConfigParser(Constants.PREF_SCREEN_CONTROLLER_PROFILES); - data = parser.load(DataModel.class); - if (data.profiles.size() == 0) { - add(makeDefaultProfile()); - } - } - - public static void remove(String id) { - data.profiles.remove(id); - save(); - } - - public static void add(Profile profile) { - data.profiles.put(profile.getId(), profile); - save(); - } - - public static List listAll() { - return new ArrayList<>(data.profiles.values()); - } - - public static int getProfileCount() { - return data.profiles.size(); - } - - public static Profile getDefaultProfile() { - if (data.profiles.containsKey(data.profileId)) { - return data.profiles.get(data.profileId); - } else if (getProfileCount() > 0) { - data.profileId = data.profiles.keySet().iterator().next(); - save(); - return getDefaultProfile(); - } else { - add(makeDefaultProfile()); - return getDefaultProfile(); - } - } - - private static void save() { - if ((!data.profiles.containsKey(data.profileId)) && getProfileCount() > 0) { - data.profileId = data.profiles.keySet().iterator().next(); - } - parser.save(data); - } - - public static Profile makeDefaultProfile() { - return new Profile(UUID.randomUUID().toString(), "Default", createDefaultLayout(), createDefaultLayout()); - } - - @SuppressLint("RtlHardcoded") - public static Layout createDefaultLayout() { - Layout layout = new Layout(); - - layout.setLocation(ControllerItem.L, new Location(39, 145, Gravity.LEFT, true)); - layout.setLocation(ControllerItem.R, new Location(39, 145, Gravity.RIGHT, true)); - - layout.setLocation(ControllerItem.SELECT, new Location(32, 131, Gravity.LEFT, true)); - layout.setLocation(ControllerItem.START, new Location(32, 131, Gravity.RIGHT, true)); - - layout.setLocation(ControllerItem.DPAD, new Location(42, 90, Gravity.LEFT, true)); - layout.setLocation(ControllerItem.JOYSTICK, new Location(74, 45, Gravity.LEFT, true)); - layout.setLocation(ControllerItem.GAMEPAD, new Location(42, 75, Gravity.RIGHT, true)); - - return layout; - } - - public static Profile get(String profile) { - return data.profiles.getOrDefault(profile, null); - } - - public static void setDefaultProfileId(String id) { - if (data.profiles.containsKey(id) && !Objects.equals(id, data.profileId)) { - data.profileId = id; - save(); - } - } - - public static class DataModel { - public final Map profiles = new HashMap<>(); - public String profileId; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Layout.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Layout.java deleted file mode 100644 index a2e5f3ce..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Layout.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.panda3ds.pandroid.view.controller.mapping; - - -import androidx.annotation.NonNull; - -import org.jetbrains.annotations.NotNull; - -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -public class Layout { - private final Map mapLocations = new HashMap<>(); - - public void setLocation(ControllerItem item, Location location) { - mapLocations.put(item, location); - } - - @NotNull - public Location getLocation(ControllerItem item) { - if (!mapLocations.containsKey(item)) { - setLocation(item, new Location()); - } - return Objects.requireNonNull(mapLocations.get(item)); - } - - @NonNull - @Override - public Layout clone() { - Layout cloned = new Layout(); - for (ControllerItem key : mapLocations.keySet()) { - cloned.setLocation(key, getLocation(key).clone()); - } - return cloned; - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Location.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Location.java deleted file mode 100644 index 1d28758a..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Location.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.panda3ds.pandroid.view.controller.mapping; - -import android.view.Gravity; - -import androidx.annotation.NonNull; - -public class Location { - private float x = 0.0f; - private float y = 0.0f; - private int gravity = Gravity.LEFT; - private boolean visible = false; - - public Location() {} - - public Location(float x, float y, int gravity, boolean visible) { - this.x = x; - this.y = y; - this.gravity = gravity; - this.visible = visible; - } - - public int getGravity() { - return gravity; - } - - public float getX() { - return x; - } - - public float getY() { - return y; - } - - public void setVisible(boolean visible) { - this.visible = visible; - } - - public boolean isVisible() { - return visible; - } - - public void setGravity(int gravity) { - this.gravity = gravity; - } - - public void setPosition(float x, float y) { - this.x = x; - this.y = y; - } - - @NonNull - @Override - public Location clone() { - return new Location(x, y, gravity, visible); - } - -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Profile.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Profile.java deleted file mode 100644 index b537133b..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/mapping/Profile.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.panda3ds.pandroid.view.controller.mapping; - -import android.view.Gravity; -import android.view.View; -import android.widget.FrameLayout; - -import androidx.annotation.NonNull; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.app.PandroidApplication; - -import java.util.UUID; - -public class Profile { - private final String id; - private final Layout landscapeLayout; - private final Layout portraitLayout; - private String name; - - public Profile(String id, String name, Layout landscape, Layout portrait) { - this.id = id; - this.name = name; - this.landscapeLayout = landscape; - this.portraitLayout = portrait; - } - - public void applyToView(ControllerItem id, View view, int viewportWidth, int viewportHeight) { - float pt = view.getResources().getDimension(R.dimen.SizePt); - - int width = view.getLayoutParams().width; - int height = view.getLayoutParams().height; - - Layout layout = getLayoutBySize(viewportWidth, viewportHeight); - - FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(width, height); - Location location = layout.getLocation(id); - - int x = Math.round(location.getX() * pt); - int y = Math.round(location.getY() * pt); - - params.gravity = location.getGravity() | Gravity.BOTTOM; - params.bottomMargin = Math.max(Math.min(y - (height / 2), viewportHeight - height), 0); - - int gravity = location.getGravity() & Gravity.HORIZONTAL_GRAVITY_MASK; - if (gravity == Gravity.RIGHT) { - params.rightMargin = Math.max(x - (width / 2), 0); - } else { - params.leftMargin = Math.max(x - (width / 2), 0); - } - - view.setVisibility(location.isVisible() ? View.VISIBLE : View.GONE); - view.setLayoutParams(params); - } - - public void setLocation(ControllerItem item, int x, int y, int viewportWidth, int viewportHeight) { - float pt = PandroidApplication.getAppContext().getResources().getDimension(R.dimen.SizePt); - - Layout layout = getLayoutBySize(viewportWidth, viewportHeight); - Location location = layout.getLocation(item); - - y = viewportHeight - y; - - if (x < viewportWidth / 2) { - location.setGravity(Gravity.LEFT); - location.setPosition(x / pt, y / pt); - } else { - x = (viewportWidth / 2) - (x - (viewportWidth / 2)); - location.setGravity(Gravity.RIGHT); - location.setPosition(x / pt, y / pt); - } - } - - - public void setName(String name) { - this.name = name; - } - - public void setVisible(ControllerItem id, boolean visible) { - landscapeLayout.getLocation(id).setVisible(visible); - portraitLayout.getLocation(id).setVisible(visible); - } - - private Layout getLayoutBySize(int width, int height) { - return width > height ? landscapeLayout : portraitLayout; - } - - public String getName() { - return name; - } - - public String getId() { - return id; - } - - @NonNull - @Override - public Profile clone() { - return new Profile(id, name, landscapeLayout.clone(), portraitLayout.clone()); - } - - public boolean isVisible(ControllerItem id) { - return landscapeLayout.getLocation(id).isVisible(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/BasicControllerNode.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/BasicControllerNode.java deleted file mode 100644 index d196c7ec..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/BasicControllerNode.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.panda3ds.pandroid.view.controller.nodes; - -import android.content.Context; -import android.util.AttributeSet; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.widget.AppCompatTextView; -import com.panda3ds.pandroid.view.controller.ControllerNode; - -public abstract class BasicControllerNode extends AppCompatTextView implements ControllerNode { - public BasicControllerNode(@NonNull Context context) { super(context); } - public BasicControllerNode(@NonNull Context context, @Nullable AttributeSet attrs) { super(context, attrs); } - public BasicControllerNode(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/Button.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/Button.java deleted file mode 100644 index 83c38d48..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/Button.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.panda3ds.pandroid.view.controller.nodes; - -import android.annotation.SuppressLint; -import android.content.Context; -import android.graphics.Canvas; -import android.util.AttributeSet; -import android.view.Gravity; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.widget.AppCompatTextView; -import com.panda3ds.pandroid.math.Vector2; -import com.panda3ds.pandroid.view.controller.ControllerNode; -import com.panda3ds.pandroid.view.controller.TouchEvent; -import com.panda3ds.pandroid.view.controller.TouchType; -import com.panda3ds.pandroid.view.controller.listeners.ButtonStateListener; - -public class Button extends BasicControllerNode { - private boolean pressed = false; - private int width, height; - - private ButtonStateListener stateListener; - - public Button(@NonNull Context context) { - super(context); - init(); - } - - public Button(@NonNull Context context, @Nullable AttributeSet attrs) { - super(context, attrs); - init(); - } - - public Button(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { - super(context, attrs, defStyleAttr); - init(); - } - - @Override - protected void onDraw(Canvas canvas) { - super.onDraw(canvas); - width = getWidth(); - height = getHeight(); - } - - private void init() { - setTextAlignment(TEXT_ALIGNMENT_CENTER); - setGravity(Gravity.CENTER); - } - - public void setStateListener(ButtonStateListener stateListener) { this.stateListener = stateListener; } - - public boolean isPressed() { return pressed; } - - @NonNull - @Override - public Vector2 getSize() { - return new Vector2(width, height); - } - - @Override - public void onTouch(TouchEvent event) { - pressed = event.getAction() != TouchType.ACTION_UP; - setAlpha(pressed ? 0.2f : 1.0f); - if (stateListener != null) { - stateListener.onButtonPressedChange(this, pressed); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/Joystick.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/Joystick.java deleted file mode 100644 index cf33afb6..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/Joystick.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.panda3ds.pandroid.view.controller.nodes; - -import android.content.Context; -import android.graphics.Canvas; -import android.graphics.Color; -import android.graphics.Paint; -import android.graphics.drawable.Drawable; -import android.util.AttributeSet; -import androidx.annotation.NonNull; - -import com.panda3ds.pandroid.math.Vector2; -import com.panda3ds.pandroid.view.controller.ControllerNode; -import com.panda3ds.pandroid.view.controller.TouchEvent; -import com.panda3ds.pandroid.view.controller.TouchType; -import com.panda3ds.pandroid.view.controller.listeners.JoystickListener; - -public class Joystick extends BasicControllerNode implements ControllerNode { - private float axisX = 0; - private float axisY = 0; - - private int width = 0; - private int height = 0; - private JoystickListener joystickListener; - - public Joystick(Context context) { this(context, null); } - public Joystick(Context context, AttributeSet attrs) { this(context, attrs, 0); } - - public Joystick(Context context, AttributeSet attrs, int defStyleAttr) { - super(context, attrs, defStyleAttr); - - paint.setColor(Color.RED); - invalidate(); - } - - private final Paint paint = new Paint(); - - @Override - protected void onDraw(Canvas canvas) { - super.onDraw(canvas); - } - - @Override - public void onDrawForeground(Canvas canvas) { - width = getWidth(); - height = getHeight(); - - int analogIconSize = width - getPaddingLeft(); - - float middleIconSize = analogIconSize / 2.0f; - float middle = width / 2.0f; - - float maxDistance = (middle - middleIconSize) * 0.9f; - - float tx = maxDistance * axisX; - float ty = maxDistance * axisY; - - float radius = Vector2.distance(0.0f, 0.0f, Math.abs(tx), Math.abs(ty)); - radius = Math.min(maxDistance, radius); - - double deg = Math.atan2(ty, tx) * (180.0 / Math.PI); - float rx = (float) (radius * Math.cos(2 * Math.PI * deg / 360.0)); - float ry = (float) (radius * Math.sin(2 * Math.PI * deg / 360.0)); - - axisX = Math.max(-1.0f, Math.min(1.0f, axisX)); - axisY = Math.max(-1.0f, Math.min(1.0f, axisY)); - - float x = middle - middleIconSize + rx; - float y = middle - middleIconSize + ry; - - Drawable foreground = getForeground(); - if (foreground != null) { - foreground.setBounds((int) x, (int) y, (int) (x + analogIconSize), (int) (y + analogIconSize)); - foreground.draw(canvas); - } else { - canvas.drawOval(x, y, x + analogIconSize, y + analogIconSize, paint); - } - } - - public Vector2 getAxis() { return new Vector2(Math.max(-1.0f, Math.min(1.0f, axisX)), Math.max(-1.0f, Math.min(1.0f, axisY))); } - - public void setJoystickListener(JoystickListener joystickListener) { this.joystickListener = joystickListener; } - - @NonNull - @Override - public Vector2 getSize() { - return new Vector2(width, height); - } - - @Override - public void onTouch(TouchEvent event) { - float middle = width / 2.0f; - - float x = event.getX(); - float y = event.getY(); - - x = Math.max(0, Math.min(middle * 2, x)); - y = Math.max(0, Math.min(middle * 2, y)); - - axisX = ((x - middle) / middle); - axisY = ((y - middle) / middle); - - if (event.getAction() == TouchType.ACTION_UP) { - axisX = 0; - axisY = 0; - } - - if (joystickListener != null) { - joystickListener.onJoystickAxisChange(this, axisX, axisY); - } - - invalidate(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/TouchScreenNodeImpl.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/TouchScreenNodeImpl.java deleted file mode 100644 index bf51d4fe..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/controller/nodes/TouchScreenNodeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.panda3ds.pandroid.view.controller.nodes; - -import android.graphics.Rect; -import android.view.View; - -import com.panda3ds.pandroid.AlberDriver; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.view.controller.ControllerNode; -import com.panda3ds.pandroid.view.controller.TouchEvent; -import com.panda3ds.pandroid.view.controller.TouchType; -import com.panda3ds.pandroid.view.renderer.ConsoleRenderer; - -public interface TouchScreenNodeImpl extends ControllerNode { - default void onTouchScreenPress(ConsoleRenderer renderer, TouchEvent event) { - View view = (View) this; - boolean hasDownEvent = view.getTag(R.id.TagEventHasDown) != null && (boolean) view.getTag(R.id.TagEventHasDown); - - Rect bounds = renderer.getLayout().getBottomDisplayBounds(); - - if (event.getX() >= bounds.left && event.getY() >= bounds.top && event.getX() <= bounds.right && event.getY() <= bounds.bottom) { - int x = (int) (event.getX() - bounds.left); - int y = (int) (event.getY() - bounds.top); - - x = Math.round((x / (float) bounds.width()) * 320); - y = Math.round((y / (float) bounds.height()) * 240); - - AlberDriver.TouchScreenDown(x, y); - - view.setTag(R.id.TagEventHasDown, true); - } - - if (hasDownEvent && event.getAction() == TouchType.ACTION_UP) { - AlberDriver.TouchScreenUp(); - view.setTag(R.id.TagEventHasDown, false); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Bounds.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Bounds.java deleted file mode 100644 index fa6ef3c3..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Bounds.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.panda3ds.pandroid.view.ds; - -import android.graphics.Rect; - -class Bounds { - public int left = 0; - public int right = 0; - public int top = 0; - public int bottom = 0; - - public void normalize() { - left = Math.abs(left); - right = Math.abs(right); - top = Math.abs(top); - bottom = Math.abs(bottom); - } - - public void applyWithAspect(Rect rect, int width, double aspectRatio) { - normalize(); - rect.set(left, top, width-right, (int) Math.round((width-right-left)*aspectRatio)+top); - } - - public void apply(Rect rect, int width, int height) { - normalize(); - rect.set(left, top, width-right, height-bottom); - } - - public void move(int x, int y) { - left += x; - right -= x; - - top += y; - bottom -= y; - normalize(); - } - - public void fixOverlay(int width, int height, int size) { - if (left > (width - right) - size) { - right = (width - left) - size; - } - - if (top > (height - bottom) - size) { - bottom = (height - top) - size; - } - - normalize(); - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsEditorView.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsEditorView.java deleted file mode 100644 index 7ae0ec83..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsEditorView.java +++ /dev/null @@ -1,362 +0,0 @@ -package com.panda3ds.pandroid.view.ds; - -import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; - -import android.annotation.SuppressLint; -import android.content.Context; -import android.content.res.ColorStateList; -import android.graphics.Canvas; -import android.graphics.Color; -import android.graphics.DashPathEffect; -import android.graphics.Paint; -import android.graphics.Rect; -import android.graphics.drawable.ColorDrawable; -import android.util.TypedValue; -import android.view.Gravity; -import android.view.LayoutInflater; -import android.view.MotionEvent; -import android.view.View; -import android.widget.AdapterView; -import android.widget.ArrayAdapter; -import android.widget.FrameLayout; -import android.widget.LinearLayout; - -import androidx.appcompat.widget.AppCompatSpinner; -import androidx.appcompat.widget.AppCompatTextView; - -import com.google.android.material.checkbox.MaterialCheckBox; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.math.Vector2; -import com.panda3ds.pandroid.utils.CompatUtils; -import com.panda3ds.pandroid.utils.Constants; - -@SuppressLint("ViewConstructor") -public class DsEditorView extends FrameLayout { - private final float SIZE_DP; - - private final Paint selectionPaint = new Paint(Paint.ANTI_ALIAS_FLAG); - private final DsLayout layout; - private int width = 1, height = 1; - private final LinearLayout gravityAnchor; - private final LinearLayout aspectRatioFixLayout; - private final LinearLayout modeSelectorLayout; - private final AppCompatSpinner modeSelector; - private final PointView spacePoint; - private final PointView topDisplay; - private final PointView bottomDisplay; - private final PointView topDisplayResizer; - private final PointView bottomDisplayResizer; - - @SuppressLint("ClickableViewAccessibility") - public DsEditorView(Context context, int index) { - super(context); - layout = (DsLayout) DsLayoutManager.createLayout(index); - SIZE_DP = CompatUtils.applyDimensions(TypedValue.COMPLEX_UNIT_DIP, 1); - int colorBottomSelection = CompatUtils.resolveColor(context, androidx.appcompat.R.attr.colorPrimary); - int colorTopSelection = CompatUtils.resolveColor(context, com.google.android.material.R.attr.colorAccent); - - selectionPaint.setColor(colorTopSelection); - selectionPaint.setStrokeWidth(SIZE_DP * 2); - selectionPaint.setPathEffect(new DashPathEffect(new float[] { SIZE_DP * 10, SIZE_DP * 10 }, 0.0f)); - selectionPaint.setStyle(Paint.Style.STROKE); - - layout.setTopDisplaySourceSize(Constants.N3DS_WIDTH, Constants.N3DS_HALF_HEIGHT); - layout.setBottomDisplaySourceSize(Constants.N3DS_WIDTH - 40 - 40, Constants.N3DS_HALF_HEIGHT); - setBackgroundColor(Color.argb(2, 0, 0, 0)); - - LayoutInflater inflater = LayoutInflater.from(context); - - gravityAnchor = (LinearLayout) inflater.inflate(R.layout.ds_editor_gravity_anchor, this, false); - gravityAnchor.findViewById(R.id.up).setOnClickListener(v -> { - layout.getCurrentModel().gravity = Gravity.TOP; - refreshLayout(); - }); - - gravityAnchor.findViewById(R.id.center).setOnClickListener(v -> { - layout.getCurrentModel().gravity = Gravity.CENTER; - refreshLayout(); - }); - - gravityAnchor.findViewById(R.id.down).setOnClickListener(v -> { - layout.getCurrentModel().gravity = Gravity.BOTTOM; - refreshLayout(); - }); - - gravityAnchor.findViewById(R.id.revert).setOnClickListener(v -> { - layout.getCurrentModel().reverse = !layout.getCurrentModel().reverse; - refreshLayout(); - }); - - { - modeSelectorLayout = (LinearLayout) inflater.inflate(R.layout.ds_editor_spinner, this, false); - ArrayAdapter spinnerAdapter = new ArrayAdapter<>(getContext(), R.layout.ds_editor_spinner_label); - spinnerAdapter.addAll("Single", "Relative", "Absolute"); - modeSelector = modeSelectorLayout.findViewById(R.id.spinner); - modeSelector.setAdapter(spinnerAdapter); - modeSelector.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { - @Override - public void onItemSelected(AdapterView parent, View view, int position, long id) { - layout.getCurrentModel().mode = Mode.values()[position]; - refreshLayout(); - } - - @Override - public void onNothingSelected(AdapterView parent) {} - }); - } - - aspectRatioFixLayout = (LinearLayout) inflater.inflate(R.layout.ds_editor_lock_aspect, this, false); - ((MaterialCheckBox) aspectRatioFixLayout.findViewById(R.id.checkbox)).setOnCheckedChangeListener((buttonView, checked) -> { - layout.getCurrentModel().lockAspect = checked; - refreshPoints(); - }); - - spacePoint = new PointView(); - spacePoint.setColor(CompatUtils.resolveColor(context, com.google.android.material.R.attr.colorOnPrimary), colorTopSelection); - spacePoint.setOnTouchListener((view, motion) -> { - layout.getCurrentModel().space = (motion.getX() + spacePoint.x()) / (float) width; - refreshPoints(); - return true; - }); - - spacePoint.setLayoutGravity(Gravity.START | Gravity.CENTER); - - setOnClickListener(v -> { - if (layout.getCurrentModel().mode == Mode.SINGLE) { - layout.getCurrentModel().onlyTop = !layout.getCurrentModel().onlyTop; - refreshPoints(); - } - }); - - topDisplay = new PointView(); - topDisplay.setText(R.string.top_display); - topDisplay.setOnTouchListener(new DisplayTouchEvent(true)); - topDisplay.setTextColor(colorTopSelection); - topDisplay.setBackground(new SelectionDrawable(colorTopSelection)); - - bottomDisplay = new PointView(); - bottomDisplay.setText(R.string.bottom_display); - bottomDisplay.setOnTouchListener(new DisplayTouchEvent(false)); - bottomDisplay.setTextColor(colorBottomSelection); - bottomDisplay.setBackground(new SelectionDrawable(colorBottomSelection)); - - topDisplayResizer = new PointView(); - topDisplayResizer.setColor(0, colorTopSelection); - topDisplayResizer.setOnTouchListener(new DisplayResizeTouchEvent(true)); - - bottomDisplayResizer = new PointView(); - bottomDisplayResizer.setColor(0, colorBottomSelection); - bottomDisplayResizer.setOnTouchListener(new DisplayResizeTouchEvent(false)); - } - - @Override - public void draw(Canvas canvas) { - super.draw(canvas); - - if (this.width != getWidth() || this.height != getHeight()) { - this.width = getWidth(); - this.height = getHeight(); - refreshLayout(); - } - } - - private void refreshPoints() { - Model data = layout.getCurrentModel(); - data.preferredTop.fixOverlay(width, height, (int) (SIZE_DP * 5)); - data.preferredBottom.fixOverlay(width, height, (int) (SIZE_DP * 30)); - layout.update(width, height); - Rect bottomDisplay = layout.getBottomDisplayBounds(); - Rect topDisplay = layout.getTopDisplayBounds(); - - switch (data.mode) { - case RELATIVE: { - if (width > height) { - Rect primaryDisplay = data.reverse ? bottomDisplay : topDisplay; - data.space = primaryDisplay.width() / (float) width; - spacePoint.setCenterPosition(primaryDisplay.width(), (int) (SIZE_DP * 15)); - spacePoint.setText(String.valueOf((int) (data.space * 100))); - } - - break; - } - - case SINGLE: - case ABSOLUTE: break; - } - - this.topDisplay.setSize(topDisplay.width(), topDisplay.height()); - this.topDisplay.setPosition(topDisplay.left, topDisplay.top); - - this.bottomDisplay.setSize(bottomDisplay.width(), bottomDisplay.height()); - this.bottomDisplay.setPosition(bottomDisplay.left, bottomDisplay.top); - - if (data.lockAspect) { - topDisplayResizer.setCenterPosition(topDisplay.right, topDisplay.top + (topDisplay.height() / 2)); - bottomDisplayResizer.setCenterPosition(bottomDisplay.right, bottomDisplay.top + (bottomDisplay.height() / 2)); - } else { - topDisplayResizer.setCenterPosition(topDisplay.right, topDisplay.bottom); - bottomDisplayResizer.setCenterPosition(bottomDisplay.right, bottomDisplay.bottom); - } - - invalidate(); - } - - private void refreshLayout() { - removeAllViews(); - layout.update(width, height); - boolean landscape = width > height; - addView(topDisplay); - addView(bottomDisplay); - - gravityAnchor.setOrientation(LinearLayout.HORIZONTAL); - addView(modeSelectorLayout, new FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT, Gravity.BOTTOM | Gravity.CENTER)); - switch (layout.getCurrentModel().mode) { - case RELATIVE: { - addView(gravityAnchor, new FrameLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT, Gravity.CENTER | Gravity.TOP)); - if (landscape) { - addView(spacePoint); - } - - break; - } - - case ABSOLUTE: { - addView(aspectRatioFixLayout, new LayoutParams(WRAP_CONTENT, WRAP_CONTENT, Gravity.CENTER | Gravity.TOP)); - addView(topDisplayResizer); - addView(bottomDisplayResizer); - - break; - } - - case SINGLE: { - addView(aspectRatioFixLayout, new LayoutParams(WRAP_CONTENT, WRAP_CONTENT, Gravity.CENTER | Gravity.TOP)); - break; - } - } - ((MaterialCheckBox) aspectRatioFixLayout.findViewById(R.id.checkbox)).setChecked(layout.getCurrentModel().lockAspect); - - modeSelector.setSelection(layout.getCurrentModel().mode.ordinal()); - gravityAnchor.findViewById(R.id.revert).setRotation(landscape ? 0 : 90); - refreshPoints(); - } - - private class PointView extends AppCompatTextView { - public PointView() { - super(DsEditorView.this.getContext()); - setLayoutParams(new FrameLayout.LayoutParams((int) (SIZE_DP * 30), (int) (SIZE_DP * 30))); - setBackgroundResource(R.drawable.medium_card_background); - setGravity(Gravity.CENTER); - this.setFocusable(true); - this.setClickable(true); - } - - public int x() { - return ((LayoutParams) getLayoutParams()).leftMargin; - } - - public int y() { - return ((LayoutParams) getLayoutParams()).topMargin; - } - - public int width() { - return ((LayoutParams) getLayoutParams()).width; - } - - public void setColor(int text, int background) { - setTextColor(text); - setBackgroundTintList(ColorStateList.valueOf(background)); - } - - public void setSize(int width, int height) { - LayoutParams params = (LayoutParams) getLayoutParams(); - params.width = Math.max(0, width); - params.height = Math.max(0, height); - setLayoutParams(params); - } - - public void setPosition(int x, int y) { - LayoutParams params = (LayoutParams) getLayoutParams(); - params.leftMargin = x; - params.topMargin = y; - setLayoutParams(params); - } - - public void setCenterPosition(int x, int y) { - int middle = this.width() / 2; - setPosition(Math.max(-middle, Math.min(x - middle, width - middle)), Math.max(-middle, Math.min(y - middle, height - middle))); - } - - public void setLayoutGravity(int gravity) { - FrameLayout.LayoutParams params = (LayoutParams) getLayoutParams(); - params.gravity = gravity; - setLayoutParams(params); - } - } - - private class DisplayTouchEvent implements OnTouchListener { - private final boolean topScreen; - private Vector2 downEvent = null; - - private DisplayTouchEvent(boolean topScreen) { - this.topScreen = topScreen; - } - - @Override - public boolean onTouch(View v, MotionEvent event) { - Bounds preferred = topScreen ? layout.getCurrentModel().preferredTop : layout.getCurrentModel().preferredBottom; - if (layout.getCurrentModel().mode == Mode.ABSOLUTE && event.getAction() != MotionEvent.ACTION_UP) { - if (downEvent == null) { - downEvent = new Vector2(event.getRawX(), event.getRawY()); - return true; - } - - preferred.move((int) (event.getRawX() - downEvent.x), (int) (event.getRawY() - downEvent.y)); - downEvent.set(event.getRawX(), event.getRawY()); - refreshPoints(); - return true; - } else if (layout.getCurrentModel().mode == Mode.SINGLE && event.getAction() == MotionEvent.ACTION_UP) { - callOnClick(); - } - downEvent = null; - return false; - } - } - - private class DisplayResizeTouchEvent implements OnTouchListener { - private final boolean topScreen; - - private DisplayResizeTouchEvent(boolean topScreen) { - this.topScreen = topScreen; - } - - @Override - public boolean onTouch(View v, MotionEvent event) { - Bounds preferred = topScreen ? layout.getCurrentModel().preferredTop : layout.getCurrentModel().preferredBottom; - if (event.getAction() != MotionEvent.ACTION_UP) { - preferred.right = (int) (width - (((PointView) v).x() + event.getX())); - preferred.bottom = (int) (height - (((PointView) v).y() + event.getY())); - refreshPoints(); - return true; - } - - return false; - } - } - - private class SelectionDrawable extends ColorDrawable { - private final Paint solidPaint = new Paint(); - - public SelectionDrawable(int color) { - super(color); - } - - @Override - public void draw(Canvas canvas) { - int color = this.getColor(); - selectionPaint.setColor(color); - solidPaint.setColor(Color.argb(65, Color.red(color), Color.green(color), Color.blue(color))); - canvas.drawRect(this.getBounds(), solidPaint); - canvas.drawRect(this.getBounds(), selectionPaint); - } - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsLayout.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsLayout.java deleted file mode 100644 index f59a5b29..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsLayout.java +++ /dev/null @@ -1,175 +0,0 @@ -package com.panda3ds.pandroid.view.ds; - -import android.graphics.Rect; -import android.view.Gravity; - -import com.panda3ds.pandroid.math.Vector2; -import com.panda3ds.pandroid.view.renderer.layout.ConsoleLayout; - -class DsLayout implements ConsoleLayout { - private final Rect topDisplay = new Rect(); - private final Rect bottomDisplay = new Rect(); - - private final Vector2 screenSize = new Vector2(0, 0); - private final Vector2 sourceTop = new Vector2(0, 0); - private final Vector2 sourceBottom = new Vector2(0, 0); - private final Model[] modes = new Model[2]; - - public DsLayout(Model landscape, Model portrait) { - modes[0] = landscape; - modes[1] = portrait; - } - - public DsLayout() { - this(new Model(), new Model()); - } - - @Override - public void update(int screenWidth, int screenHeight) { - screenSize.set(screenWidth, screenHeight); - update(); - } - - @Override - public void setBottomDisplaySourceSize(int width, int height) { - sourceBottom.set(width, height); - update(); - } - - @Override - public void setTopDisplaySourceSize(int width, int height) { - sourceTop.set(width, height); - update(); - } - - @Override - public Rect getBottomDisplayBounds() { - return bottomDisplay; - } - - @Override - public Rect getTopDisplayBounds() { - return topDisplay; - } - - public void update() { - Model data = getCurrentModel(); - Mode mode = data.mode; - switch (mode) { - case RELATIVE: - relative(data); - break; - case SINGLE: - single(data); - break; - case ABSOLUTE: - absolute(data); - break; - } - } - - private void absolute(Model data) { - if (data.lockAspect) { - data.preferredTop.applyWithAspect(topDisplay, (int) screenSize.x, (double) sourceTop.y / sourceTop.x); - data.preferredBottom.applyWithAspect(bottomDisplay, (int) screenSize.x, (double) sourceBottom.y / sourceBottom.x); - } else { - data.preferredTop.apply(topDisplay, (int) screenSize.x, (int) screenSize.y); - data.preferredBottom.apply(bottomDisplay, (int) screenSize.x, (int) screenSize.y); - } - } - - private void single(Model data) { - Vector2 source = data.onlyTop ? sourceTop : sourceBottom; - Rect dest = data.onlyTop ? topDisplay : bottomDisplay; - - if (data.lockAspect) { - int x = 0, y = 0; - int width = (int) ((screenSize.y / source.y) * source.x); - int height; - - if (width > screenSize.x) { - height = (int) ((screenSize.x / source.x) * source.y); - width = (int) screenSize.x; - y = (int) ((screenSize.y - height) / 2); - } else { - height = (int) screenSize.y; - x = (int) ((screenSize.x - width) / 2); - } - dest.set(x, y, x + width, y + height); - } else { - dest.set(0, 0, (int) screenSize.x, (int) screenSize.y); - } - (data.onlyTop ? bottomDisplay : topDisplay).set(0, 0, 0, 0); - } - - // Relative layout: Organize screen position based on gravity and space, the space determined by the top screen size in landscape mode - private void relative(Model data) { - int screenWidth = (int) screenSize.x; - int screenHeight = (int) screenSize.y; - - Vector2 topSourceSize = this.sourceTop; - Vector2 bottomSourceSize = this.sourceBottom; - - Rect topDisplay = this.topDisplay; - Rect bottomDisplay = this.bottomDisplay; - - if (data.reverse) { - topSourceSize = this.sourceBottom; - bottomSourceSize = this.sourceTop; - - topDisplay = this.bottomDisplay; - bottomDisplay = this.topDisplay; - } - - if (screenWidth > screenHeight) { - int topDisplayWidth = (int) ((screenHeight / topSourceSize.y) * topSourceSize.x); - int topDisplayHeight = screenHeight; - - if (topDisplayWidth > (screenWidth * data.space)) { - topDisplayWidth = (int) (screenWidth * data.space); - topDisplayHeight = (int) ((topDisplayWidth / topSourceSize.x) * topSourceSize.y); - } - - int bottomDisplayHeight = (int) (((screenWidth - topDisplayWidth) / bottomSourceSize.x) * bottomSourceSize.y); - - topDisplay.set(0, 0, topDisplayWidth, topDisplayHeight); - bottomDisplay.set(topDisplayWidth, 0, topDisplayWidth + (screenWidth - topDisplayWidth), bottomDisplayHeight); - - switch (data.gravity) { - case Gravity.CENTER: { - bottomDisplay.offset(0, (screenHeight - bottomDisplay.height()) / 2); - topDisplay.offset(0, (screenHeight - topDisplay.height()) / 2); - break; - } - - case Gravity.BOTTOM: { - bottomDisplay.offset(0, (screenHeight - bottomDisplay.height())); - topDisplay.offset(0, (screenHeight - topDisplay.height())); - break; - } - } - - } else { - int topScreenHeight = (int) ((screenWidth / topSourceSize.x) * topSourceSize.y); - topDisplay.set(0, 0, screenWidth, topScreenHeight); - - int bottomDisplayHeight = (int) ((screenWidth / bottomSourceSize.x) * bottomSourceSize.y); - int bottomDisplayWidth = screenWidth; - int bottomDisplayX = 0; - - if (topScreenHeight + bottomDisplayHeight > screenHeight) { - bottomDisplayHeight = (screenHeight - topScreenHeight); - bottomDisplayWidth = (int) ((bottomDisplayHeight / bottomSourceSize.y) * bottomSourceSize.x); - bottomDisplayX = (screenWidth - bottomDisplayX) / 2; - } - - topDisplay.set(0, 0, screenWidth, topScreenHeight); - bottomDisplay.set(bottomDisplayX, topScreenHeight, bottomDisplayX + bottomDisplayWidth, topScreenHeight + bottomDisplayHeight); - } - } - - public Model getCurrentModel() { - return screenSize.x > screenSize.y ? modes[0] : modes[1]; - } - -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsLayoutManager.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsLayoutManager.java deleted file mode 100644 index 6b044626..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/DsLayoutManager.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.panda3ds.pandroid.view.ds; - -import com.panda3ds.pandroid.data.config.GlobalConfig; -import com.panda3ds.pandroid.view.renderer.layout.ConsoleLayout; - -import java.util.ArrayList; - -public class DsLayoutManager { - private static final DataModel data; - - static { - data = GlobalConfig.getExtra(GlobalConfig.KEY_DS_LAYOUTS, DataModel.class); - if (data.models.size() == 0) { - setupBasicModels(); - } - } - - private static void setupBasicModels() { - Model model1 = new Model(); - - Model model2 = new Model(); - model2.mode = Mode.SINGLE; - model2.onlyTop = false; - - Model model3 = new Model(); - model3.mode = Mode.SINGLE; - model3.onlyTop = true; - - data.models.add(new Model[] {model1, model1.clone()}); - data.models.add(new Model[] {model2, model2.clone()}); - data.models.add(new Model[] {model3, model3.clone()}); - - save(); - } - - public static synchronized void save() { - GlobalConfig.putExtra(GlobalConfig.KEY_DS_LAYOUTS, data); - } - - public static int getLayoutCount() { - return data.models.size(); - } - - public static ConsoleLayout createLayout(int index) { - index = Math.min(getLayoutCount() - 1, index); - return new DsLayout(data.models.get(index)[0], data.models.get(index)[1]); - } - - private static class DataModel { - private final ArrayList models = new ArrayList<>(); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Mode.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Mode.java deleted file mode 100644 index 0a31f62d..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Mode.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.panda3ds.pandroid.view.ds; - -enum Mode { - SINGLE, - RELATIVE, - ABSOLUTE -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Model.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Model.java deleted file mode 100644 index 84209ba4..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/ds/Model.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.panda3ds.pandroid.view.ds; - -import android.util.Log; -import android.view.Gravity; - -import androidx.annotation.NonNull; - -import com.panda3ds.pandroid.utils.Constants; - -class Model implements Cloneable { - public Mode mode = Mode.RELATIVE; - public final Bounds preferredTop = new Bounds(); - public final Bounds preferredBottom = new Bounds(); - public boolean reverse = false; - public boolean onlyTop = true; - public float space = 0.6f; - public int gravity = Gravity.CENTER; - public boolean lockAspect = true; - - @NonNull - @Override - public Model clone() { - try { - return (Model) super.clone(); - } catch (Exception e) { - Log.e(Constants.LOG_TAG, "Error on clone DsModel!", e); - return new Model(); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GameAdapter.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GameAdapter.java deleted file mode 100644 index 3a07fbf7..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GameAdapter.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.panda3ds.pandroid.view.gamesgrid; - -import android.view.LayoutInflater; -import android.view.ViewGroup; - -import androidx.annotation.NonNull; -import androidx.recyclerview.widget.RecyclerView; - -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.lang.Function; - -import java.util.ArrayList; -import java.util.List; - -class GameAdapter extends RecyclerView.Adapter { - private final ArrayList games = new ArrayList<>(); - private final Function clickListener; - private final Function longClickListener; - - GameAdapter(Function clickListener, Function longClickListener) { - this.clickListener = clickListener; - this.longClickListener = longClickListener; - } - - @NonNull - @Override - public ItemHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { - return new ItemHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.holder_game, parent, false)); - } - - @Override - public void onBindViewHolder(@NonNull ItemHolder holder, int position) { - holder.itemView.setOnClickListener(v -> clickListener.run(games.get(position))); - holder.itemView.setOnLongClickListener(v -> { - longClickListener.run(games.get(position)); - return false; - }); - holder.apply(games.get(position)); - } - - public void replace(List games) { - int oldCount = getItemCount(); - this.games.clear(); - notifyItemRangeRemoved(0, oldCount); - this.games.addAll(games); - notifyItemRangeInserted(0, getItemCount()); - } - - @Override - public int getItemCount() { - return games.size(); - } - -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GameIconView.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GameIconView.java deleted file mode 100644 index e73d8d08..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GameIconView.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.panda3ds.pandroid.view.gamesgrid; - -import android.content.Context; -import android.graphics.Bitmap; -import android.graphics.drawable.BitmapDrawable; -import android.graphics.drawable.Drawable; -import android.util.AttributeSet; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.widget.AppCompatImageView; - -public class GameIconView extends AppCompatImageView { - public GameIconView(@NonNull Context context) { - super(context); - } - - public GameIconView(@NonNull Context context, @Nullable AttributeSet attrs) { - super(context, attrs); - } - - public GameIconView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { - super(context, attrs, defStyleAttr); - } - - @Override - protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - super.onMeasure(widthMeasureSpec, heightMeasureSpec); - int size = getMeasuredWidth(); - setMeasuredDimension(size, size); - } - - @Override - public void setImageBitmap(Bitmap bm) { - super.setImageBitmap(bm); - Drawable bitmapDrawable = getDrawable(); - if (bitmapDrawable instanceof BitmapDrawable) { - bitmapDrawable.setFilterBitmap(false); - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GamesGridView.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GamesGridView.java deleted file mode 100644 index ddb192aa..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/GamesGridView.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.panda3ds.pandroid.view.gamesgrid; - -import android.content.Context; -import android.util.AttributeSet; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.recyclerview.widget.RecyclerView; - -import com.panda3ds.pandroid.data.game.GameMetadata; -import com.panda3ds.pandroid.lang.Function; -import com.panda3ds.pandroid.utils.GameUtils; -import com.panda3ds.pandroid.view.recycler.AutoFitGridLayout; - -import java.util.List; - -public class GamesGridView extends RecyclerView { - private final GameAdapter adapter; - private Function longClickListener = null; - - public GamesGridView(@NonNull Context context) { - this(context, null); - } - - public GamesGridView(@NonNull Context context, @Nullable AttributeSet attrs) { - this(context, attrs, 0); - } - - public GamesGridView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { - super(context, attrs, defStyleAttr); - setLayoutManager(new AutoFitGridLayout(getContext(), 170)); - setAdapter(adapter = new GameAdapter(this::onClickGame, this::onLongClickGame)); - } - - public void setItemLongClick(Function longClickListener) { - this.longClickListener = longClickListener; - } - - private void onClickGame(GameMetadata game) { - GameUtils.launch(getContext(), game); - } - - private void onLongClickGame(GameMetadata game) { - if (longClickListener != null) { - longClickListener.run(game); - } - } - - public void setGameList(List games) { - adapter.replace(games); - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/ItemHolder.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/ItemHolder.java deleted file mode 100644 index 2d55964f..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/gamesgrid/ItemHolder.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.panda3ds.pandroid.view.gamesgrid; - -import android.view.View; - -import androidx.annotation.NonNull; -import androidx.appcompat.widget.AppCompatTextView; -import androidx.recyclerview.widget.RecyclerView; -import com.panda3ds.pandroid.R; -import com.panda3ds.pandroid.data.game.GameMetadata; - -class ItemHolder extends RecyclerView.ViewHolder { - public ItemHolder(@NonNull View itemView) { - super(itemView); - } - - public void apply(GameMetadata game) { - ((AppCompatTextView) itemView.findViewById(R.id.title)) - .setText(game.getTitle()); - ((GameIconView) itemView.findViewById(R.id.icon)) - .setImageBitmap(game.getIcon()); - ((AppCompatTextView) itemView.findViewById(R.id.description)) - .setText(game.getPublisher()); - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/recycler/AutoFitGridLayout.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/recycler/AutoFitGridLayout.java deleted file mode 100644 index 26f80adb..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/recycler/AutoFitGridLayout.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.panda3ds.pandroid.view.recycler; - -import android.content.Context; -import android.util.TypedValue; -import android.view.View; - -import androidx.annotation.NonNull; -import androidx.recyclerview.widget.GridLayoutManager; -import androidx.recyclerview.widget.RecyclerView; - -public final class AutoFitGridLayout extends GridLayoutManager { - private final int iconSize; - private final Context context; - - public AutoFitGridLayout(Context context, int iconSize) { - super(context, 1); - - this.iconSize = iconSize; - this.context = context; - } - - @Override - public void onMeasure(@NonNull RecyclerView.Recycler recycler, @NonNull RecyclerView.State state, int widthSpec, int heightSpec) { - super.onMeasure(recycler, state, widthSpec, heightSpec); - int width = View.MeasureSpec.getSize(widthSpec); - int iconSize = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, this.iconSize, context.getResources().getDisplayMetrics()); - int iconCount = Math.max(1, width / iconSize); - - if (getSpanCount() != iconCount) { - setSpanCount(iconCount); - } - } -} \ No newline at end of file diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/recycler/SimpleListAdapter.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/recycler/SimpleListAdapter.java deleted file mode 100644 index 7d4fa7c3..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/recycler/SimpleListAdapter.java +++ /dev/null @@ -1,76 +0,0 @@ -package com.panda3ds.pandroid.view.recycler; - -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; - -import androidx.annotation.LayoutRes; -import androidx.annotation.NonNull; -import androidx.recyclerview.widget.RecyclerView; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Comparator; -import java.util.List; - -public class SimpleListAdapter extends RecyclerView.Adapter { - private final ArrayList list = new ArrayList<>(); - private final Binder binder; - private final int layoutId; - - public SimpleListAdapter(@LayoutRes int layoutId, Binder binder) { - this.layoutId = layoutId; - this.binder = binder; - } - - @NonNull - @Override - public Holder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { - return new Holder(LayoutInflater.from(parent.getContext()).inflate(layoutId, parent, false)); - } - - @Override - public void onBindViewHolder(@NonNull Holder holder, int position) { - binder.bind(position, list.get(position), holder.getView()); - } - - public void addAll(T... items) { - addAll(Arrays.asList(items)); - } - - public void addAll(List items) { - int index = list.size(); - this.list.addAll(items); - notifyItemRangeInserted(index, getItemCount() - index); - } - - public void clear() { - int count = getItemCount(); - list.clear(); - notifyItemRangeRemoved(0, count); - } - - public void sort(Comparator comparator) { - list.sort(comparator); - notifyItemRangeChanged(0, getItemCount()); - } - - @Override - public int getItemCount() { - return list.size(); - } - - public interface Binder { - void bind(int position, I item, View view); - } - - public static class Holder extends RecyclerView.ViewHolder { - public Holder(@NonNull View itemView) { - super(itemView); - } - - public View getView() { - return itemView; - } - } -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/renderer/ConsoleRenderer.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/renderer/ConsoleRenderer.java deleted file mode 100644 index d5c99e8d..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/renderer/ConsoleRenderer.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.panda3ds.pandroid.view.renderer; - -import com.panda3ds.pandroid.view.renderer.layout.ConsoleLayout; - -public interface ConsoleRenderer { - void setLayout(ConsoleLayout layout); - ConsoleLayout getLayout(); - String getBackendName(); -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/renderer/layout/ConsoleLayout.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/renderer/layout/ConsoleLayout.java deleted file mode 100644 index 7ec00974..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/renderer/layout/ConsoleLayout.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.panda3ds.pandroid.view.renderer.layout; - -import android.graphics.Rect; - -public interface ConsoleLayout { - void update(int screenWidth, int screenHeight); - - void setBottomDisplaySourceSize(int width, int height); - void setTopDisplaySourceSize(int width, int height); - - Rect getBottomDisplayBounds(); - Rect getTopDisplayBounds(); -} diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/utils/PerformanceView.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/utils/PerformanceView.java deleted file mode 100644 index 7688b44e..00000000 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/view/utils/PerformanceView.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.panda3ds.pandroid.view.utils; - -import android.content.Context; -import android.graphics.Canvas; -import android.graphics.Color; -import android.text.Html; -import android.util.AttributeSet; -import android.util.TypedValue; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.widget.AppCompatTextView; - -import com.panda3ds.pandroid.data.config.GlobalConfig; -import com.panda3ds.pandroid.utils.PerformanceMonitor; - -public class PerformanceView extends AppCompatTextView { - private boolean running = false; - - public PerformanceView(@NonNull Context context) { - this(context, null); - } - - public PerformanceView(@NonNull Context context, @Nullable AttributeSet attrs) { - this(context, attrs,0); - } - - public PerformanceView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { - super(context, attrs, defStyleAttr); - - int padding = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, getResources().getDisplayMetrics()); - setPadding(padding,padding,padding,padding); - setTextColor(Color.WHITE); - setShadowLayer(padding,0,0,Color.BLACK); - } - - public void refresh() { - running = isShown(); - if (!running) { - return; - } - - String debug = ""; - - // Calculate total memory in MB and the current memory usage - int memoryTotalMb = (int) Math.round(PerformanceMonitor.getTotalMemory() / (1024.0 * 1024.0)); - int memoryUsageMb = (int) Math.round(PerformanceMonitor.getUsedMemory() / (1024.0 * 1024.0)); - - debug += "FPS: " + PerformanceMonitor.getFps() + "
"; - debug += "RAM: " + Math.round(((float) memoryUsageMb / memoryTotalMb) * 100) + "% (" + memoryUsageMb + "MB/" + memoryTotalMb + "MB)
"; - debug += "BACKEND: " + PerformanceMonitor.getBackend() + (GlobalConfig.get(GlobalConfig.KEY_SHADER_JIT) ? " + JIT" : "") + "
"; - setText(Html.fromHtml(debug, Html.FROM_HTML_MODE_COMPACT)); - postDelayed(this::refresh, 250); - } - - @Override - protected void onDraw(Canvas canvas) { - super.onDraw(canvas); - - if (!running) { - refresh(); - } - } -} diff --git a/src/pandroid/app/src/main/jniLibs/.gitignore b/src/pandroid/app/src/main/jniLibs/.gitignore deleted file mode 100644 index 0b469178..00000000 --- a/src/pandroid/app/src/main/jniLibs/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Prebuilt Alber libraries will be placed in this directory, but we don't want to push them to the repo -libAlber.so \ No newline at end of file diff --git a/src/pandroid/app/src/main/jniLibs/arm64-v8a/.gitkeep b/src/pandroid/app/src/main/jniLibs/arm64-v8a/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/pandroid/app/src/main/jniLibs/x86_64/.gitkeep b/src/pandroid/app/src/main/jniLibs/x86_64/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/pandroid/app/src/main/res/color/bottom_navigation_indicator_tint.xml b/src/pandroid/app/src/main/res/color/bottom_navigation_indicator_tint.xml deleted file mode 100644 index e0fc9112..00000000 --- a/src/pandroid/app/src/main/res/color/bottom_navigation_indicator_tint.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/color/red_color.xml b/src/pandroid/app/src/main/res/color/red_color.xml deleted file mode 100644 index c42336f5..00000000 --- a/src/pandroid/app/src/main/res/color/red_color.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/color/text_secondary_dark.xml b/src/pandroid/app/src/main/res/color/text_secondary_dark.xml deleted file mode 100644 index 53a9cd15..00000000 --- a/src/pandroid/app/src/main/res/color/text_secondary_dark.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/color/text_secondary_light.xml b/src/pandroid/app/src/main/res/color/text_secondary_light.xml deleted file mode 100644 index 35136058..00000000 --- a/src/pandroid/app/src/main/res/color/text_secondary_light.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/drawable/alert_dialog_background.xml b/src/pandroid/app/src/main/res/drawable/alert_dialog_background.xml deleted file mode 100644 index 729e056b..00000000 --- a/src/pandroid/app/src/main/res/drawable/alert_dialog_background.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/drawable/analog_background.xml b/src/pandroid/app/src/main/res/drawable/analog_background.xml deleted file mode 100644 index 3f3747cd..00000000 --- a/src/pandroid/app/src/main/res/drawable/analog_background.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/analog_foreground.xml b/src/pandroid/app/src/main/res/drawable/analog_foreground.xml deleted file mode 100644 index c339e69f..00000000 --- a/src/pandroid/app/src/main/res/drawable/analog_foreground.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/button_a.xml b/src/pandroid/app/src/main/res/drawable/button_a.xml deleted file mode 100644 index d04306b9..00000000 --- a/src/pandroid/app/src/main/res/drawable/button_a.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/button_b.xml b/src/pandroid/app/src/main/res/drawable/button_b.xml deleted file mode 100644 index 1611f28d..00000000 --- a/src/pandroid/app/src/main/res/drawable/button_b.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/button_l.xml b/src/pandroid/app/src/main/res/drawable/button_l.xml deleted file mode 100644 index a2b2f5ad..00000000 --- a/src/pandroid/app/src/main/res/drawable/button_l.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/button_r.xml b/src/pandroid/app/src/main/res/drawable/button_r.xml deleted file mode 100644 index 24cf739b..00000000 --- a/src/pandroid/app/src/main/res/drawable/button_r.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/button_select.xml b/src/pandroid/app/src/main/res/drawable/button_select.xml deleted file mode 100644 index c71a3bff..00000000 --- a/src/pandroid/app/src/main/res/drawable/button_select.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/button_start.xml b/src/pandroid/app/src/main/res/drawable/button_start.xml deleted file mode 100644 index 33e0a58b..00000000 --- a/src/pandroid/app/src/main/res/drawable/button_start.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/button_x.xml b/src/pandroid/app/src/main/res/drawable/button_x.xml deleted file mode 100644 index 4050c539..00000000 --- a/src/pandroid/app/src/main/res/drawable/button_x.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/button_y.xml b/src/pandroid/app/src/main/res/drawable/button_y.xml deleted file mode 100644 index 87799691..00000000 --- a/src/pandroid/app/src/main/res/drawable/button_y.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/color_surface.xml b/src/pandroid/app/src/main/res/drawable/color_surface.xml deleted file mode 100644 index b8655b87..00000000 --- a/src/pandroid/app/src/main/res/drawable/color_surface.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/drawable/dpad_down.xml b/src/pandroid/app/src/main/res/drawable/dpad_down.xml deleted file mode 100644 index 3a904b2d..00000000 --- a/src/pandroid/app/src/main/res/drawable/dpad_down.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/dpad_left.xml b/src/pandroid/app/src/main/res/drawable/dpad_left.xml deleted file mode 100644 index 8dad75be..00000000 --- a/src/pandroid/app/src/main/res/drawable/dpad_left.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/dpad_right.xml b/src/pandroid/app/src/main/res/drawable/dpad_right.xml deleted file mode 100644 index e0bea7ec..00000000 --- a/src/pandroid/app/src/main/res/drawable/dpad_right.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/dpad_up.xml b/src/pandroid/app/src/main/res/drawable/dpad_up.xml deleted file mode 100644 index 4bc0a96b..00000000 --- a/src/pandroid/app/src/main/res/drawable/dpad_up.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/ds_editor_popup_background.xml b/src/pandroid/app/src/main/res/drawable/ds_editor_popup_background.xml deleted file mode 100644 index 80fee9a8..00000000 --- a/src/pandroid/app/src/main/res/drawable/ds_editor_popup_background.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/drawable/ic_add.xml b/src/pandroid/app/src/main/res/drawable/ic_add.xml deleted file mode 100644 index db709d0b..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_add.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_align_center.xml b/src/pandroid/app/src/main/res/drawable/ic_align_center.xml deleted file mode 100644 index 1e2e0c74..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_align_center.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_arrow_down.xml b/src/pandroid/app/src/main/res/drawable/ic_arrow_down.xml deleted file mode 100644 index 5eff5d5d..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_arrow_down.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_arrow_up.xml b/src/pandroid/app/src/main/res/drawable/ic_arrow_up.xml deleted file mode 100644 index f5859d56..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_arrow_up.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_code.xml b/src/pandroid/app/src/main/res/drawable/ic_code.xml deleted file mode 100644 index 167935e2..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_code.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_compare_arrow.xml b/src/pandroid/app/src/main/res/drawable/ic_compare_arrow.xml deleted file mode 100644 index 937d53a8..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_compare_arrow.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_delete.xml b/src/pandroid/app/src/main/res/drawable/ic_delete.xml deleted file mode 100644 index 1efcc802..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_delete.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_done.xml b/src/pandroid/app/src/main/res/drawable/ic_done.xml deleted file mode 100644 index e007f1d1..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_done.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_edit.xml b/src/pandroid/app/src/main/res/drawable/ic_edit.xml deleted file mode 100644 index 6ddb5cb1..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_edit.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_exit.xml b/src/pandroid/app/src/main/res/drawable/ic_exit.xml deleted file mode 100644 index e052e1cb..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_exit.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_folder.xml b/src/pandroid/app/src/main/res/drawable/ic_folder.xml deleted file mode 100644 index ce1051f4..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_folder.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_key_a.xml b/src/pandroid/app/src/main/res/drawable/ic_key_a.xml deleted file mode 100644 index 3081c462..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_key_a.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_keyboard_hide.xml b/src/pandroid/app/src/main/res/drawable/ic_keyboard_hide.xml deleted file mode 100644 index d4e7929b..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_keyboard_hide.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_launcher_background.xml b/src/pandroid/app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index 07d5da9c..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_launcher_foreground.xml b/src/pandroid/app/src/main/res/drawable/ic_launcher_foreground.xml deleted file mode 100644 index 2b068d11..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_launcher_foreground.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/drawable/ic_play.xml b/src/pandroid/app/src/main/res/drawable/ic_play.xml deleted file mode 100644 index d75d7da3..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_play.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_rotate_screen.xml b/src/pandroid/app/src/main/res/drawable/ic_rotate_screen.xml deleted file mode 100644 index 4e95fb72..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_rotate_screen.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_save.xml b/src/pandroid/app/src/main/res/drawable/ic_save.xml deleted file mode 100644 index 82070aa2..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_save.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_search.xml b/src/pandroid/app/src/main/res/drawable/ic_search.xml deleted file mode 100644 index a5687c63..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_search.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_settings.xml b/src/pandroid/app/src/main/res/drawable/ic_settings.xml deleted file mode 100644 index 298a5a1f..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_settings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_shortcut.xml b/src/pandroid/app/src/main/res/drawable/ic_shortcut.xml deleted file mode 100644 index 8bb2a987..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_shortcut.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_switch_screen.xml b/src/pandroid/app/src/main/res/drawable/ic_switch_screen.xml deleted file mode 100644 index f577b24f..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_switch_screen.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_tab.xml b/src/pandroid/app/src/main/res/drawable/ic_tab.xml deleted file mode 100644 index 3f7efd95..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_tab.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_theme.xml b/src/pandroid/app/src/main/res/drawable/ic_theme.xml deleted file mode 100644 index c3d2c7b3..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_theme.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_videogame.xml b/src/pandroid/app/src/main/res/drawable/ic_videogame.xml deleted file mode 100644 index 8693be5f..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_videogame.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/ic_visibility.xml b/src/pandroid/app/src/main/res/drawable/ic_visibility.xml deleted file mode 100644 index b923c39d..00000000 --- a/src/pandroid/app/src/main/res/drawable/ic_visibility.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/medium_card_background.xml b/src/pandroid/app/src/main/res/drawable/medium_card_background.xml deleted file mode 100644 index 805248ea..00000000 --- a/src/pandroid/app/src/main/res/drawable/medium_card_background.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/drawable/rounded_selectable_item_background.xml b/src/pandroid/app/src/main/res/drawable/rounded_selectable_item_background.xml deleted file mode 100644 index 16b39ced..00000000 --- a/src/pandroid/app/src/main/res/drawable/rounded_selectable_item_background.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - diff --git a/src/pandroid/app/src/main/res/drawable/screen_gamepad_checkbox.xml b/src/pandroid/app/src/main/res/drawable/screen_gamepad_checkbox.xml deleted file mode 100644 index 8c61f4c8..00000000 --- a/src/pandroid/app/src/main/res/drawable/screen_gamepad_checkbox.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/drawable/screen_gamepad_hide.xml b/src/pandroid/app/src/main/res/drawable/screen_gamepad_hide.xml deleted file mode 100644 index f22e8c9d..00000000 --- a/src/pandroid/app/src/main/res/drawable/screen_gamepad_hide.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/screen_gamepad_show.xml b/src/pandroid/app/src/main/res/drawable/screen_gamepad_show.xml deleted file mode 100644 index 133f2e70..00000000 --- a/src/pandroid/app/src/main/res/drawable/screen_gamepad_show.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/pandroid/app/src/main/res/drawable/search_bar_background.xml b/src/pandroid/app/src/main/res/drawable/search_bar_background.xml deleted file mode 100644 index 44a1c5b4..00000000 --- a/src/pandroid/app/src/main/res/drawable/search_bar_background.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/drawable/simple_card_background.xml b/src/pandroid/app/src/main/res/drawable/simple_card_background.xml deleted file mode 100644 index f07f345c..00000000 --- a/src/pandroid/app/src/main/res/drawable/simple_card_background.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout-land/activity_main.xml b/src/pandroid/app/src/main/res/layout-land/activity_main.xml deleted file mode 100644 index 9741809d..00000000 --- a/src/pandroid/app/src/main/res/layout-land/activity_main.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/activity_code_editor.xml b/src/pandroid/app/src/main/res/layout/activity_code_editor.xml deleted file mode 100644 index 5cef8609..00000000 --- a/src/pandroid/app/src/main/res/layout/activity_code_editor.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/activity_input_map.xml b/src/pandroid/app/src/main/res/layout/activity_input_map.xml deleted file mode 100644 index 79249e62..00000000 --- a/src/pandroid/app/src/main/res/layout/activity_input_map.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/activity_main.xml b/src/pandroid/app/src/main/res/layout/activity_main.xml deleted file mode 100644 index 68b87bfb..00000000 --- a/src/pandroid/app/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/src/pandroid/app/src/main/res/layout/activity_preference.xml b/src/pandroid/app/src/main/res/layout/activity_preference.xml deleted file mode 100644 index 401c3d86..00000000 --- a/src/pandroid/app/src/main/res/layout/activity_preference.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/controller_dpad.xml b/src/pandroid/app/src/main/res/layout/controller_dpad.xml deleted file mode 100644 index b6f0f626..00000000 --- a/src/pandroid/app/src/main/res/layout/controller_dpad.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/controller_gamepad.xml b/src/pandroid/app/src/main/res/layout/controller_gamepad.xml deleted file mode 100644 index b2186a9d..00000000 --- a/src/pandroid/app/src/main/res/layout/controller_gamepad.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/controller_joystick.xml b/src/pandroid/app/src/main/res/layout/controller_joystick.xml deleted file mode 100644 index d758822f..00000000 --- a/src/pandroid/app/src/main/res/layout/controller_joystick.xml +++ /dev/null @@ -1,11 +0,0 @@ - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/controller_l.xml b/src/pandroid/app/src/main/res/layout/controller_l.xml deleted file mode 100644 index 96ec7582..00000000 --- a/src/pandroid/app/src/main/res/layout/controller_l.xml +++ /dev/null @@ -1,10 +0,0 @@ - - diff --git a/src/pandroid/app/src/main/res/layout/controller_r.xml b/src/pandroid/app/src/main/res/layout/controller_r.xml deleted file mode 100644 index 8aa2fba1..00000000 --- a/src/pandroid/app/src/main/res/layout/controller_r.xml +++ /dev/null @@ -1,10 +0,0 @@ - - diff --git a/src/pandroid/app/src/main/res/layout/controller_select.xml b/src/pandroid/app/src/main/res/layout/controller_select.xml deleted file mode 100644 index a77855be..00000000 --- a/src/pandroid/app/src/main/res/layout/controller_select.xml +++ /dev/null @@ -1,10 +0,0 @@ - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/controller_start.xml b/src/pandroid/app/src/main/res/layout/controller_start.xml deleted file mode 100644 index 94f12eb7..00000000 --- a/src/pandroid/app/src/main/res/layout/controller_start.xml +++ /dev/null @@ -1,10 +0,0 @@ - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/dialog_bottom_sheet.xml b/src/pandroid/app/src/main/res/layout/dialog_bottom_sheet.xml deleted file mode 100644 index 88124bf1..00000000 --- a/src/pandroid/app/src/main/res/layout/dialog_bottom_sheet.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/dialog_game_about.xml b/src/pandroid/app/src/main/res/layout/dialog_game_about.xml deleted file mode 100644 index 3a91ae2c..00000000 --- a/src/pandroid/app/src/main/res/layout/dialog_game_about.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/dialog_games_folder.xml b/src/pandroid/app/src/main/res/layout/dialog_games_folder.xml deleted file mode 100644 index c0b41d8f..00000000 --- a/src/pandroid/app/src/main/res/layout/dialog_games_folder.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/dialog_loading.xml b/src/pandroid/app/src/main/res/layout/dialog_loading.xml deleted file mode 100644 index 824aee72..00000000 --- a/src/pandroid/app/src/main/res/layout/dialog_loading.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/dialog_lua_scripts.xml b/src/pandroid/app/src/main/res/layout/dialog_lua_scripts.xml deleted file mode 100644 index b0484879..00000000 --- a/src/pandroid/app/src/main/res/layout/dialog_lua_scripts.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/layout/dialog_select_theme.xml b/src/pandroid/app/src/main/res/layout/dialog_select_theme.xml deleted file mode 100644 index b3f9d0cf..00000000 --- a/src/pandroid/app/src/main/res/layout/dialog_select_theme.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/drawer_game_container.xml b/src/pandroid/app/src/main/res/layout/drawer_game_container.xml deleted file mode 100644 index 4b094e75..00000000 --- a/src/pandroid/app/src/main/res/layout/drawer_game_container.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/ds_editor_gravity_anchor.xml b/src/pandroid/app/src/main/res/layout/ds_editor_gravity_anchor.xml deleted file mode 100644 index 3945b27a..00000000 --- a/src/pandroid/app/src/main/res/layout/ds_editor_gravity_anchor.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/ds_editor_lock_aspect.xml b/src/pandroid/app/src/main/res/layout/ds_editor_lock_aspect.xml deleted file mode 100644 index 238b86c5..00000000 --- a/src/pandroid/app/src/main/res/layout/ds_editor_lock_aspect.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/ds_editor_spinner.xml b/src/pandroid/app/src/main/res/layout/ds_editor_spinner.xml deleted file mode 100644 index 515f917f..00000000 --- a/src/pandroid/app/src/main/res/layout/ds_editor_spinner.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/ds_editor_spinner_label.xml b/src/pandroid/app/src/main/res/layout/ds_editor_spinner_label.xml deleted file mode 100644 index 125072e0..00000000 --- a/src/pandroid/app/src/main/res/layout/ds_editor_spinner_label.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/fragment_game_drawer.xml b/src/pandroid/app/src/main/res/layout/fragment_game_drawer.xml deleted file mode 100644 index 30b08386..00000000 --- a/src/pandroid/app/src/main/res/layout/fragment_game_drawer.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/layout/fragment_games.xml b/src/pandroid/app/src/main/res/layout/fragment_games.xml deleted file mode 100644 index 33033834..00000000 --- a/src/pandroid/app/src/main/res/layout/fragment_games.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - diff --git a/src/pandroid/app/src/main/res/layout/fragment_search.xml b/src/pandroid/app/src/main/res/layout/fragment_search.xml deleted file mode 100644 index e165ff32..00000000 --- a/src/pandroid/app/src/main/res/layout/fragment_search.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/layout/game_activity.xml b/src/pandroid/app/src/main/res/layout/game_activity.xml deleted file mode 100644 index 9677ac70..00000000 --- a/src/pandroid/app/src/main/res/layout/game_activity.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/hold_theme_preview.xml b/src/pandroid/app/src/main/res/layout/hold_theme_preview.xml deleted file mode 100644 index 9bdab2f1..00000000 --- a/src/pandroid/app/src/main/res/layout/hold_theme_preview.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/hold_theme_preview_base.xml b/src/pandroid/app/src/main/res/layout/hold_theme_preview_base.xml deleted file mode 100644 index 9e7a6e6f..00000000 --- a/src/pandroid/app/src/main/res/layout/hold_theme_preview_base.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/holder_game.xml b/src/pandroid/app/src/main/res/layout/holder_game.xml deleted file mode 100644 index 275926c3..00000000 --- a/src/pandroid/app/src/main/res/layout/holder_game.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/layout/holder_lua_script.xml b/src/pandroid/app/src/main/res/layout/holder_lua_script.xml deleted file mode 100644 index c4410011..00000000 --- a/src/pandroid/app/src/main/res/layout/holder_lua_script.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/layout/material_switch_widget.xml b/src/pandroid/app/src/main/res/layout/material_switch_widget.xml deleted file mode 100644 index 3cffb5c1..00000000 --- a/src/pandroid/app/src/main/res/layout/material_switch_widget.xml +++ /dev/null @@ -1,11 +0,0 @@ - - diff --git a/src/pandroid/app/src/main/res/layout/preference_controller_mapper.xml b/src/pandroid/app/src/main/res/layout/preference_controller_mapper.xml deleted file mode 100644 index daecd2b2..00000000 --- a/src/pandroid/app/src/main/res/layout/preference_controller_mapper.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/layout/preference_simple_about.xml b/src/pandroid/app/src/main/res/layout/preference_simple_about.xml deleted file mode 100644 index cf6370b9..00000000 --- a/src/pandroid/app/src/main/res/layout/preference_simple_about.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/layout/preference_start_item.xml b/src/pandroid/app/src/main/res/layout/preference_start_item.xml deleted file mode 100644 index ecb10436..00000000 --- a/src/pandroid/app/src/main/res/layout/preference_start_item.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/menu/game_drawer.xml b/src/pandroid/app/src/main/res/menu/game_drawer.xml deleted file mode 100644 index 2ac82b68..00000000 --- a/src/pandroid/app/src/main/res/menu/game_drawer.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/menu/main_activity_navigation.xml b/src/pandroid/app/src/main/res/menu/main_activity_navigation.xml deleted file mode 100644 index f457d8cf..00000000 --- a/src/pandroid/app/src/main/res/menu/main_activity_navigation.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/src/pandroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml deleted file mode 100644 index 6f3b755b..00000000 --- a/src/pandroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/src/pandroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml deleted file mode 100644 index 6f3b755b..00000000 --- a/src/pandroid/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/src/pandroid/app/src/main/res/mipmap-hdpi/ic_launcher.webp deleted file mode 100644 index c209e78e..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-hdpi/ic_launcher.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/src/pandroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp deleted file mode 100644 index b2dfe3d1..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/src/pandroid/app/src/main/res/mipmap-mdpi/ic_launcher.webp deleted file mode 100644 index 4f0f1d64..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-mdpi/ic_launcher.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/src/pandroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp deleted file mode 100644 index 62b611da..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/src/pandroid/app/src/main/res/mipmap-xhdpi/ic_launcher.webp deleted file mode 100644 index 948a3070..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-xhdpi/ic_launcher.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/src/pandroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp deleted file mode 100644 index 1b9a6956..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/src/pandroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp deleted file mode 100644 index 28d4b77f..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/src/pandroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp deleted file mode 100644 index 9287f508..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/src/pandroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp deleted file mode 100644 index aa7d6427..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/src/pandroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp deleted file mode 100644 index 9126ae37..00000000 Binary files a/src/pandroid/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp and /dev/null differ diff --git a/src/pandroid/app/src/main/res/values-pt-rBR/strings.xml b/src/pandroid/app/src/main/res/values-pt-rBR/strings.xml deleted file mode 100644 index f2e144c3..00000000 --- a/src/pandroid/app/src/main/res/values-pt-rBR/strings.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - pandroid - Carregar ROM - Jogos - Configurações - Pesquisar - Desconhecido - Esquerda - Direita - Cima - Baixo - Outros - Pressione qualquer tecla - Eixos - Zona Morta - Opções - Mapeie um controle ou teclado - Mapeamento de controle - Tema - Defina a aparência do aplicativo - Aparência - Mesmo do dispositivo - Claro - Escuro - Preto - Ações - Sair - Continuar - Salvo - Criar perfil - Entrada - Altere o mapeamento de controles, disposição de controle na tela etc. - Nome - Disposições de controle - Disposição de controle padrão - Nome Invalido - Trapaças - Script Lua - Scripts - Esse arquivo não é suportado - Salvar e sair - Sair sem salvar - Salvar \"%s\" antes de sair? - Abrir arquivo - Criar novo - Executando \"%s\" ... - Opções avançada. - Depuração, mostrar fps, etc. - Monitor de desempenho - Mostrar um overlay com fps, memoria, etc. - Depuração - Grave os registros para um arquivo. - Shader Jit - Usar recompilador de shaders. - Picture In Picture - Entrar em modo picture in picture quando a janela sai de foco - Gráficos - Carregando - Rotacionar - Aplicar - Definir o tema do aplicativo - Tema do aplicativo - Falha ao carregar a ROM. - Falha ao carregar o arquivo ROM, por favor verifique se o arquivo não esta corrompido ou se o emulator tem permição para acessa-lo. - Sistema - Geral - Configurações gerais do emulador. - Tela inferior - Tela superior - Manter porporção - Disposição das telas - Altere as disposições disponiveis para as telas do console - Clique para mudar - Mudar telas - Pastas usadas para importar os jogos - Pastas de jogos - Adicionar pasta - %d Jogos - Diretorio - Remover - Jogar - Região - Estados Unidos - Japão - Europa - Australia - Coréia - Taiwan - Comportamento - Jogo invalido - Ferramentas - diff --git a/src/pandroid/app/src/main/res/values-v27/themes.xml b/src/pandroid/app/src/main/res/values-v27/themes.xml deleted file mode 100644 index 8e960864..00000000 --- a/src/pandroid/app/src/main/res/values-v27/themes.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/values/themes.xml b/src/pandroid/app/src/main/res/values/themes.xml deleted file mode 100644 index 5deec652..00000000 --- a/src/pandroid/app/src/main/res/values/themes.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/pandroid/app/src/main/res/values/values.xml b/src/pandroid/app/src/main/res/values/values.xml deleted file mode 100644 index 9a4071c7..00000000 --- a/src/pandroid/app/src/main/res/values/values.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/xml/advanced_preferences.xml b/src/pandroid/app/src/main/res/xml/advanced_preferences.xml deleted file mode 100644 index 6602fdfd..00000000 --- a/src/pandroid/app/src/main/res/xml/advanced_preferences.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/xml/backup_rules.xml b/src/pandroid/app/src/main/res/xml/backup_rules.xml deleted file mode 100644 index fa0f996d..00000000 --- a/src/pandroid/app/src/main/res/xml/backup_rules.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/xml/data_extraction_rules.xml b/src/pandroid/app/src/main/res/xml/data_extraction_rules.xml deleted file mode 100644 index 9ee9997b..00000000 --- a/src/pandroid/app/src/main/res/xml/data_extraction_rules.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/xml/empty_preferences.xml b/src/pandroid/app/src/main/res/xml/empty_preferences.xml deleted file mode 100644 index 624ed13a..00000000 --- a/src/pandroid/app/src/main/res/xml/empty_preferences.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/xml/game_mode_config.xml b/src/pandroid/app/src/main/res/xml/game_mode_config.xml deleted file mode 100644 index b28dd3a1..00000000 --- a/src/pandroid/app/src/main/res/xml/game_mode_config.xml +++ /dev/null @@ -1,7 +0,0 @@ - - diff --git a/src/pandroid/app/src/main/res/xml/general_preference.xml b/src/pandroid/app/src/main/res/xml/general_preference.xml deleted file mode 100644 index 3e2d93c8..00000000 --- a/src/pandroid/app/src/main/res/xml/general_preference.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/xml/input_map_preferences.xml b/src/pandroid/app/src/main/res/xml/input_map_preferences.xml deleted file mode 100644 index 2af485ec..00000000 --- a/src/pandroid/app/src/main/res/xml/input_map_preferences.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/xml/input_preference.xml b/src/pandroid/app/src/main/res/xml/input_preference.xml deleted file mode 100644 index 8f91ab40..00000000 --- a/src/pandroid/app/src/main/res/xml/input_preference.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/app/src/main/res/xml/start_preferences.xml b/src/pandroid/app/src/main/res/xml/start_preferences.xml deleted file mode 100644 index 788000d6..00000000 --- a/src/pandroid/app/src/main/res/xml/start_preferences.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/pandroid/build.gradle.kts b/src/pandroid/build.gradle.kts deleted file mode 100644 index c21801c7..00000000 --- a/src/pandroid/build.gradle.kts +++ /dev/null @@ -1,4 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. -plugins { - id("com.android.application") version "8.1.2" apply false -} \ No newline at end of file diff --git a/src/pandroid/gradle.properties b/src/pandroid/gradle.properties deleted file mode 100644 index 3e927b11..00000000 --- a/src/pandroid/gradle.properties +++ /dev/null @@ -1,21 +0,0 @@ -# Project-wide Gradle settings. -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true -# AndroidX package structure to make it clearer which packages are bundled with the -# Android operating system, and which are packaged with your app's APK -# https://developer.android.com/topic/libraries/support-library/androidx-rn -android.useAndroidX=true -# Enables namespacing of each library's R class so that its R class includes only the -# resources declared in the library itself and none from the library's dependencies, -# thereby reducing the size of the R class for that library -android.nonTransitiveRClass=true \ No newline at end of file diff --git a/src/pandroid/gradle/wrapper/gradle-wrapper.jar b/src/pandroid/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index e708b1c0..00000000 Binary files a/src/pandroid/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/src/pandroid/gradle/wrapper/gradle-wrapper.properties b/src/pandroid/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 22c9e5ab..00000000 --- a/src/pandroid/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Tue Nov 14 14:40:27 EET 2023 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists diff --git a/src/pandroid/gradlew b/src/pandroid/gradlew deleted file mode 100755 index 4f906e0c..00000000 --- a/src/pandroid/gradlew +++ /dev/null @@ -1,185 +0,0 @@ -#!/usr/bin/env sh - -# -# Copyright 2015 the original author or authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn () { - echo "$*" -} - -die () { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin or MSYS, switch paths to Windows format before running java -if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=`expr $i + 1` - done - case $i in - 0) set -- ;; - 1) set -- "$args0" ;; - 2) set -- "$args0" "$args1" ;; - 3) set -- "$args0" "$args1" "$args2" ;; - 4) set -- "$args0" "$args1" "$args2" "$args3" ;; - 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=`save "$@"` - -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" - -exec "$JAVACMD" "$@" diff --git a/src/pandroid/gradlew.bat b/src/pandroid/gradlew.bat deleted file mode 100644 index ac1b06f9..00000000 --- a/src/pandroid/gradlew.bat +++ /dev/null @@ -1,89 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/src/pandroid/settings.gradle.kts b/src/pandroid/settings.gradle.kts deleted file mode 100644 index 84d1ce30..00000000 --- a/src/pandroid/settings.gradle.kts +++ /dev/null @@ -1,17 +0,0 @@ -pluginManagement { - repositories { - google() - mavenCentral() - gradlePluginPortal() - } -} -dependencyResolutionManagement { - repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) - repositories { - google() - mavenCentral() - } -} - -rootProject.name = "pandroid" -include(":app") diff --git a/src/renderer.cpp b/src/renderer.cpp deleted file mode 100644 index 76c3e7a0..00000000 --- a/src/renderer.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include "renderer.hpp" - -#include -#include - -Renderer::Renderer(GPU& gpu, const std::array& internalRegs, const std::array& externalRegs) - : gpu(gpu), regs(internalRegs), externalRegs(externalRegs) {} -Renderer::~Renderer() {} - -std::optional Renderer::typeFromString(std::string inString) { - // Transform to lower-case to make the setting case-insensitive - std::transform(inString.begin(), inString.end(), inString.begin(), [](unsigned char c) { return std::tolower(c); }); - - // Huge table of possible names and misspellings - // Please stop misspelling Vulkan as Vulcan - static const std::unordered_map map = { - {"null", RendererType::Null}, {"nil", RendererType::Null}, {"none", RendererType::Null}, - {"gl", RendererType::OpenGL}, {"ogl", RendererType::OpenGL}, {"opengl", RendererType::OpenGL}, - {"vk", RendererType::Vulkan}, {"vulkan", RendererType::Vulkan}, {"vulcan", RendererType::Vulkan}, - {"sw", RendererType::Software}, {"soft", RendererType::Software}, {"software", RendererType::Software}, - {"softrast", RendererType::Software}, - }; - - if (auto search = map.find(inString); search != map.end()) { - return search->second; - } - - return std::nullopt; -} - -const char* Renderer::typeToString(RendererType rendererType) { - switch (rendererType) { - case RendererType::Null: return "null"; - case RendererType::OpenGL: return "opengl"; - case RendererType::Vulkan: return "vulkan"; - case RendererType::Software: return "software"; - default: return "Invalid"; - } -} \ No newline at end of file diff --git a/src/stb_image_write.c b/src/stb_image_write.c deleted file mode 100644 index 2f540c3c..00000000 --- a/src/stb_image_write.c +++ /dev/null @@ -1,2 +0,0 @@ -#define STB_IMAGE_WRITE_IMPLEMENTATION -#include \ No newline at end of file diff --git a/tests/AppCpuTimeLimit/Makefile b/tests/AppCpuTimeLimit/Makefile deleted file mode 100644 index 9fc3a849..00000000 --- a/tests/AppCpuTimeLimit/Makefile +++ /dev/null @@ -1,258 +0,0 @@ -#--------------------------------------------------------------------------------- -.SUFFIXES: -#--------------------------------------------------------------------------------- - -ifeq ($(strip $(DEVKITARM)),) -$(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM") -endif - -TOPDIR ?= $(CURDIR) -include $(DEVKITARM)/3ds_rules - -#--------------------------------------------------------------------------------- -# TARGET is the name of the output -# BUILD is the directory where object files & intermediate files will be placed -# SOURCES is a list of directories containing source code -# DATA is a list of directories containing data files -# INCLUDES is a list of directories containing header files -# GRAPHICS is a list of directories containing graphics files -# GFXBUILD is the directory where converted graphics files will be placed -# If set to $(BUILD), it will statically link in the converted -# files as if they were data files. -# -# NO_SMDH: if set to anything, no SMDH file is generated. -# ROMFS is the directory which contains the RomFS, relative to the Makefile (Optional) -# APP_TITLE is the name of the app stored in the SMDH file (Optional) -# APP_DESCRIPTION is the description of the app stored in the SMDH file (Optional) -# APP_AUTHOR is the author of the app stored in the SMDH file (Optional) -# ICON is the filename of the icon (.png), relative to the project folder. -# If not set, it attempts to use one of the following (in this order): -# - .png -# - icon.png -# - /default_icon.png -#--------------------------------------------------------------------------------- -TARGET := AppCpuTimeLimit -BUILD := build -SOURCES := source -DATA := data -INCLUDES := include -GRAPHICS := gfx -GFXBUILD := $(BUILD) -#ROMFS := romfs -#GFXBUILD := $(ROMFS)/gfx -APP_TITLE := AppCpuTimeLimit -APP_DESCRIPTION := Tests Set/GetAppCpuTimeLimit -APP_AUTHOR := noumidev - -#--------------------------------------------------------------------------------- -# options for code generation -#--------------------------------------------------------------------------------- -ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft - -CFLAGS := -g -Wall -O2 -mword-relocations \ - -ffunction-sections \ - $(ARCH) - -CFLAGS += $(INCLUDE) -D__3DS__ - -CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 - -ASFLAGS := -g $(ARCH) -LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) - -LIBS := -lctru -lm - -#--------------------------------------------------------------------------------- -# list of directories containing libraries, this must be the top level containing -# include and lib -#--------------------------------------------------------------------------------- -LIBDIRS := $(CTRULIB) - - -#--------------------------------------------------------------------------------- -# no real need to edit anything past this point unless you need to add additional -# rules for different file extensions -#--------------------------------------------------------------------------------- -ifneq ($(BUILD),$(notdir $(CURDIR))) -#--------------------------------------------------------------------------------- - -export OUTPUT := $(CURDIR)/$(TARGET) -export TOPDIR := $(CURDIR) - -export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ - $(foreach dir,$(GRAPHICS),$(CURDIR)/$(dir)) \ - $(foreach dir,$(DATA),$(CURDIR)/$(dir)) - -export DEPSDIR := $(CURDIR)/$(BUILD) - -CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) -CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) -SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) -PICAFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.v.pica))) -SHLISTFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.shlist))) -GFXFILES := $(foreach dir,$(GRAPHICS),$(notdir $(wildcard $(dir)/*.t3s))) -BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) - -#--------------------------------------------------------------------------------- -# use CXX for linking C++ projects, CC for standard C -#--------------------------------------------------------------------------------- -ifeq ($(strip $(CPPFILES)),) -#--------------------------------------------------------------------------------- - export LD := $(CC) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- - export LD := $(CXX) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -#--------------------------------------------------------------------------------- -ifeq ($(GFXBUILD),$(BUILD)) -#--------------------------------------------------------------------------------- -export T3XFILES := $(GFXFILES:.t3s=.t3x) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- -export ROMFS_T3XFILES := $(patsubst %.t3s, $(GFXBUILD)/%.t3x, $(GFXFILES)) -export T3XHFILES := $(patsubst %.t3s, $(BUILD)/%.h, $(GFXFILES)) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -export OFILES_SOURCES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o) - -export OFILES_BIN := $(addsuffix .o,$(BINFILES)) \ - $(PICAFILES:.v.pica=.shbin.o) $(SHLISTFILES:.shlist=.shbin.o) \ - $(addsuffix .o,$(T3XFILES)) - -export OFILES := $(OFILES_BIN) $(OFILES_SOURCES) - -export HFILES := $(PICAFILES:.v.pica=_shbin.h) $(SHLISTFILES:.shlist=_shbin.h) \ - $(addsuffix .h,$(subst .,_,$(BINFILES))) \ - $(GFXFILES:.t3s=.h) - -export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ - $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ - -I$(CURDIR)/$(BUILD) - -export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) - -export _3DSXDEPS := $(if $(NO_SMDH),,$(OUTPUT).smdh) - -ifeq ($(strip $(ICON)),) - icons := $(wildcard *.png) - ifneq (,$(findstring $(TARGET).png,$(icons))) - export APP_ICON := $(TOPDIR)/$(TARGET).png - else - ifneq (,$(findstring icon.png,$(icons))) - export APP_ICON := $(TOPDIR)/icon.png - endif - endif -else - export APP_ICON := $(TOPDIR)/$(ICON) -endif - -ifeq ($(strip $(NO_SMDH)),) - export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh -endif - -ifneq ($(ROMFS),) - export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS) -endif - -.PHONY: all clean - -#--------------------------------------------------------------------------------- -all: $(BUILD) $(GFXBUILD) $(DEPSDIR) $(ROMFS_T3XFILES) $(T3XHFILES) - @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile - -$(BUILD): - @mkdir -p $@ - -ifneq ($(GFXBUILD),$(BUILD)) -$(GFXBUILD): - @mkdir -p $@ -endif - -ifneq ($(DEPSDIR),$(BUILD)) -$(DEPSDIR): - @mkdir -p $@ -endif - -#--------------------------------------------------------------------------------- -clean: - @echo clean ... - @rm -fr $(BUILD) $(TARGET).3dsx $(OUTPUT).smdh $(TARGET).elf $(GFXBUILD) - -#--------------------------------------------------------------------------------- -$(GFXBUILD)/%.t3x $(BUILD)/%.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $(BUILD)/$*.h -d $(DEPSDIR)/$*.d -o $(GFXBUILD)/$*.t3x - -#--------------------------------------------------------------------------------- -else - -#--------------------------------------------------------------------------------- -# main targets -#--------------------------------------------------------------------------------- -$(OUTPUT).3dsx : $(OUTPUT).elf $(_3DSXDEPS) - -$(OFILES_SOURCES) : $(HFILES) - -$(OUTPUT).elf : $(OFILES) - -#--------------------------------------------------------------------------------- -# you need a rule like this for each extension you use as binary data -#--------------------------------------------------------------------------------- -%.bin.o %_bin.h : %.bin -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -.PRECIOUS : %.t3x -#--------------------------------------------------------------------------------- -%.t3x.o %_t3x.h : %.t3x -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -# rules for assembling GPU shaders -#--------------------------------------------------------------------------------- -define shader-as - $(eval CURBIN := $*.shbin) - $(eval DEPSFILE := $(DEPSDIR)/$*.shbin.d) - echo "$(CURBIN).o: $< $1" > $(DEPSFILE) - echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(CURBIN) | tr . _)`.h - echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(CURBIN) | tr . _)`.h - echo "extern const u32" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo $(CURBIN) | tr . _)`.h - picasso -o $(CURBIN) $1 - bin2s $(CURBIN) | $(AS) -o $*.shbin.o -endef - -%.shbin.o %_shbin.h : %.v.pica %.g.pica - @echo $(notdir $^) - @$(call shader-as,$^) - -%.shbin.o %_shbin.h : %.v.pica - @echo $(notdir $<) - @$(call shader-as,$<) - -%.shbin.o %_shbin.h : %.shlist - @echo $(notdir $<) - @$(call shader-as,$(foreach file,$(shell cat $<),$(dir $<)$(file))) - -#--------------------------------------------------------------------------------- -%.t3x %.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $*.h -d $*.d -o $*.t3x - --include $(DEPSDIR)/*.d - -#--------------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------------- diff --git a/tests/AppCpuTimeLimit/o3ds.png b/tests/AppCpuTimeLimit/o3ds.png deleted file mode 100644 index b3da7ce7..00000000 Binary files a/tests/AppCpuTimeLimit/o3ds.png and /dev/null differ diff --git a/tests/AppCpuTimeLimit/source/main.c b/tests/AppCpuTimeLimit/source/main.c deleted file mode 100644 index e61dc498..00000000 --- a/tests/AppCpuTimeLimit/source/main.c +++ /dev/null @@ -1,55 +0,0 @@ -#include <3ds.h> - -#include - -int main(int argc, char **argv) { - gfxInitDefault(); - - consoleInit(GFX_TOP, NULL); - - printf("--- APT::SetAppCpuTimeLimit ---\n\n"); - - // Get initial percentage - u32 percentage; - APT_GetAppCpuTimeLimit(&percentage); - - printf("Initial percentage: %lu\n\n", percentage); - - // Try all percentages from 0-100%, print failed calls - for (int i = 0; i <= 100; i++) { - const Result res = APT_SetAppCpuTimeLimit(i); - - if (R_FAILED(res)) { - APT_GetAppCpuTimeLimit(&percentage); - - printf("[%d:%lu:%lX]\n", i, percentage, res); - } - } - - // Send command with invalid fixed value - u32 aptcmdbuf[16]; - aptcmdbuf[0] = 0x004F0080; - aptcmdbuf[1] = 0; - aptcmdbuf[2] = 20; - - aptSendCommand(aptcmdbuf); - - printf("\nWith fixed = 0: [%08lX:%08lX]\n", aptcmdbuf[0], aptcmdbuf[1]); - - while (aptMainLoop()) { - hidScanInput(); - - if ((hidKeysDown() & KEY_START) != 0) { - break; - } - - gfxFlushBuffers(); - gfxSwapBuffers(); - - gspWaitForVBlank(); - } - - gfxExit(); - - return 0; -} diff --git a/tests/DetectEmulator/Makefile b/tests/DetectEmulator/Makefile deleted file mode 100644 index 46a94048..00000000 --- a/tests/DetectEmulator/Makefile +++ /dev/null @@ -1,255 +0,0 @@ -#--------------------------------------------------------------------------------- -.SUFFIXES: -#--------------------------------------------------------------------------------- - -ifeq ($(strip $(DEVKITARM)),) -$(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM") -endif - -TOPDIR ?= $(CURDIR) -include $(DEVKITARM)/3ds_rules - -#--------------------------------------------------------------------------------- -# TARGET is the name of the output -# BUILD is the directory where object files & intermediate files will be placed -# SOURCES is a list of directories containing source code -# DATA is a list of directories containing data files -# INCLUDES is a list of directories containing header files -# GRAPHICS is a list of directories containing graphics files -# GFXBUILD is the directory where converted graphics files will be placed -# If set to $(BUILD), it will statically link in the converted -# files as if they were data files. -# -# NO_SMDH: if set to anything, no SMDH file is generated. -# ROMFS is the directory which contains the RomFS, relative to the Makefile (Optional) -# APP_TITLE is the name of the app stored in the SMDH file (Optional) -# APP_DESCRIPTION is the description of the app stored in the SMDH file (Optional) -# APP_AUTHOR is the author of the app stored in the SMDH file (Optional) -# ICON is the filename of the icon (.png), relative to the project folder. -# If not set, it attempts to use one of the following (in this order): -# - .png -# - icon.png -# - /default_icon.png -#--------------------------------------------------------------------------------- -TARGET := $(notdir $(CURDIR)) -BUILD := build -SOURCES := source -DATA := data -INCLUDES := include -GRAPHICS := gfx -GFXBUILD := $(BUILD) -#ROMFS := romfs -#GFXBUILD := $(ROMFS)/gfx - -#--------------------------------------------------------------------------------- -# options for code generation -#--------------------------------------------------------------------------------- -ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft - -CFLAGS := -g -Wall -O2 -mword-relocations \ - -ffunction-sections \ - $(ARCH) - -CFLAGS += $(INCLUDE) -D__3DS__ - -CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 - -ASFLAGS := -g $(ARCH) -LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) - -LIBS := -lcitro3d -lctru -lm - -#--------------------------------------------------------------------------------- -# list of directories containing libraries, this must be the top level containing -# include and lib -#--------------------------------------------------------------------------------- -LIBDIRS := $(CTRULIB) - - -#--------------------------------------------------------------------------------- -# no real need to edit anything past this point unless you need to add additional -# rules for different file extensions -#--------------------------------------------------------------------------------- -ifneq ($(BUILD),$(notdir $(CURDIR))) -#--------------------------------------------------------------------------------- - -export OUTPUT := $(CURDIR)/$(TARGET) -export TOPDIR := $(CURDIR) - -export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ - $(foreach dir,$(GRAPHICS),$(CURDIR)/$(dir)) \ - $(foreach dir,$(DATA),$(CURDIR)/$(dir)) - -export DEPSDIR := $(CURDIR)/$(BUILD) - -CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) -CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) -SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) -PICAFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.v.pica))) -SHLISTFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.shlist))) -GFXFILES := $(foreach dir,$(GRAPHICS),$(notdir $(wildcard $(dir)/*.t3s))) -BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) - -#--------------------------------------------------------------------------------- -# use CXX for linking C++ projects, CC for standard C -#--------------------------------------------------------------------------------- -ifeq ($(strip $(CPPFILES)),) -#--------------------------------------------------------------------------------- - export LD := $(CC) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- - export LD := $(CXX) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -#--------------------------------------------------------------------------------- -ifeq ($(GFXBUILD),$(BUILD)) -#--------------------------------------------------------------------------------- -export T3XFILES := $(GFXFILES:.t3s=.t3x) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- -export ROMFS_T3XFILES := $(patsubst %.t3s, $(GFXBUILD)/%.t3x, $(GFXFILES)) -export T3XHFILES := $(patsubst %.t3s, $(BUILD)/%.h, $(GFXFILES)) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -export OFILES_SOURCES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o) - -export OFILES_BIN := $(addsuffix .o,$(BINFILES)) \ - $(PICAFILES:.v.pica=.shbin.o) $(SHLISTFILES:.shlist=.shbin.o) \ - $(addsuffix .o,$(T3XFILES)) - -export OFILES := $(OFILES_BIN) $(OFILES_SOURCES) - -export HFILES := $(PICAFILES:.v.pica=_shbin.h) $(SHLISTFILES:.shlist=_shbin.h) \ - $(addsuffix .h,$(subst .,_,$(BINFILES))) \ - $(GFXFILES:.t3s=.h) - -export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ - $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ - -I$(CURDIR)/$(BUILD) - -export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) - -export _3DSXDEPS := $(if $(NO_SMDH),,$(OUTPUT).smdh) - -ifeq ($(strip $(ICON)),) - icons := $(wildcard *.png) - ifneq (,$(findstring $(TARGET).png,$(icons))) - export APP_ICON := $(TOPDIR)/$(TARGET).png - else - ifneq (,$(findstring icon.png,$(icons))) - export APP_ICON := $(TOPDIR)/icon.png - endif - endif -else - export APP_ICON := $(TOPDIR)/$(ICON) -endif - -ifeq ($(strip $(NO_SMDH)),) - export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh -endif - -ifneq ($(ROMFS),) - export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS) -endif - -.PHONY: all clean - -#--------------------------------------------------------------------------------- -all: $(BUILD) $(GFXBUILD) $(DEPSDIR) $(ROMFS_T3XFILES) $(T3XHFILES) - @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile - -$(BUILD): - @mkdir -p $@ - -ifneq ($(GFXBUILD),$(BUILD)) -$(GFXBUILD): - @mkdir -p $@ -endif - -ifneq ($(DEPSDIR),$(BUILD)) -$(DEPSDIR): - @mkdir -p $@ -endif - -#--------------------------------------------------------------------------------- -clean: - @echo clean ... - @rm -fr $(BUILD) $(TARGET).3dsx $(OUTPUT).smdh $(TARGET).elf $(GFXBUILD) - -#--------------------------------------------------------------------------------- -$(GFXBUILD)/%.t3x $(BUILD)/%.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $(BUILD)/$*.h -d $(DEPSDIR)/$*.d -o $(GFXBUILD)/$*.t3x - -#--------------------------------------------------------------------------------- -else - -#--------------------------------------------------------------------------------- -# main targets -#--------------------------------------------------------------------------------- -$(OUTPUT).3dsx : $(OUTPUT).elf $(_3DSXDEPS) - -$(OFILES_SOURCES) : $(HFILES) - -$(OUTPUT).elf : $(OFILES) - -#--------------------------------------------------------------------------------- -# you need a rule like this for each extension you use as binary data -#--------------------------------------------------------------------------------- -%.bin.o %_bin.h : %.bin -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -.PRECIOUS : %.t3x -#--------------------------------------------------------------------------------- -%.t3x.o %_t3x.h : %.t3x -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -# rules for assembling GPU shaders -#--------------------------------------------------------------------------------- -define shader-as - $(eval CURBIN := $*.shbin) - $(eval DEPSFILE := $(DEPSDIR)/$*.shbin.d) - echo "$(CURBIN).o: $< $1" > $(DEPSFILE) - echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(CURBIN) | tr . _)`.h - echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(CURBIN) | tr . _)`.h - echo "extern const u32" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo $(CURBIN) | tr . _)`.h - picasso -o $(CURBIN) $1 - bin2s $(CURBIN) | $(AS) -o $*.shbin.o -endef - -%.shbin.o %_shbin.h : %.v.pica %.g.pica - @echo $(notdir $^) - @$(call shader-as,$^) - -%.shbin.o %_shbin.h : %.v.pica - @echo $(notdir $<) - @$(call shader-as,$<) - -%.shbin.o %_shbin.h : %.shlist - @echo $(notdir $<) - @$(call shader-as,$(foreach file,$(shell cat $<),$(dir $<)$(file))) - -#--------------------------------------------------------------------------------- -%.t3x %.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $*.h -d $*.d -o $*.t3x - --include $(DEPSDIR)/*.d - -#--------------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------------- diff --git a/tests/DetectEmulator/source/main.c b/tests/DetectEmulator/source/main.c deleted file mode 100644 index a66edd69..00000000 --- a/tests/DetectEmulator/source/main.c +++ /dev/null @@ -1,181 +0,0 @@ -#include <3ds.h> -#include -#include -#include "vshader_shbin.h" - -#define CLEAR_COLOR 0x68B0D8FF - -#define DISPLAY_TRANSFER_FLAGS \ - (GX_TRANSFER_FLIP_VERT(0) | GX_TRANSFER_OUT_TILED(0) | GX_TRANSFER_RAW_COPY(0) | \ - GX_TRANSFER_IN_FORMAT(GX_TRANSFER_FMT_RGBA8) | GX_TRANSFER_OUT_FORMAT(GX_TRANSFER_FMT_RGB8) | \ - GX_TRANSFER_SCALING(GX_TRANSFER_SCALE_NO)) - -typedef struct { float x, y, z; } vertex; - -static const vertex vertex_list[] = { - { 200.0f, 200.0f, 0.5f }, - { 100.0f, 40.0f, 0.5f }, - { 300.0f, 40.0f, 0.5f }, -}; - -typedef enum { - Platform_Citra, - Platform_Panda, - Platform_Other -} Platform; - -typedef enum { - SystemInfo_Citra = 0x20000, - SystemInfo_Panda = 0x20001 -} SystemInfoType; - -typedef enum { - SystemInfoSub_IsCitra = 0, - SystemInfoSub_IsPanda = 0, -} SystemInfoSubType; - -// Detect the emulator this is running on -Platform getPlatform() { - s64 out; - - // First, attempt to detect Citra - Result res = svcGetSystemInfo(&out, SystemInfo_Citra, SystemInfoSub_IsCitra); - if (R_SUCCEEDED(res) && out == 1) { - return Platform_Citra; - } - - // Next, attempt to detect Panda3DS - res = svcGetSystemInfo(&out, SystemInfo_Panda, SystemInfoSub_IsPanda); - if (R_SUCCEEDED(res) && out == 1) { - return Platform_Panda; - } - - // Unknown platform, maybe a console or another emulator - return Platform_Other; -} - -// Print string in emulator terminal -static void emuPrint(const char* str) { - svcOutputDebugString(str, strlen(str)); -} - -#define vertex_list_count (sizeof(vertex_list)/sizeof(vertex_list[0])) - -static DVLB_s* vshader_dvlb; -static shaderProgram_s program; -static int uLoc_projection; -static C3D_Mtx projection; - -static void* vbo_data; - -static void sceneInit(void) { - // Load the vertex shader, create a shader program and bind it - vshader_dvlb = DVLB_ParseFile((u32*)vshader_shbin, vshader_shbin_size); - shaderProgramInit(&program); - shaderProgramSetVsh(&program, &vshader_dvlb->DVLE[0]); - C3D_BindProgram(&program); - - // Get the location of the uniforms - uLoc_projection = shaderInstanceGetUniformLocation(program.vertexShader, "projection"); - - // Configure attributes for use with the vertex shader - C3D_AttrInfo* attrInfo = C3D_GetAttrInfo(); - AttrInfo_Init(attrInfo); - AttrInfo_AddLoader(attrInfo, 0, GPU_FLOAT, 3); // v0=position - AttrInfo_AddFixed(attrInfo, 1); // v1=color - - // Set the fixed attribute (color) to a colour depending on the emulator - - Platform platform = getPlatform(); - switch (platform) { - case Platform_Citra: - emuPrint("Detected Citra\n"); - C3D_FixedAttribSet(1, 1.0, 1.0, 0.0, 1.0); - break; - - case Platform_Panda: - emuPrint("Detected Panda3DS\n"); - C3D_FixedAttribSet(1, 1.0, 0.0, 0.0, 1.0); - break; - - default: - emuPrint("Unknown platform. Probably a real 3DS\n"); - C3D_FixedAttribSet(1, 1.0, 0.5, 0.2, 1.0); - break; - } - - // Compute the projection matrix - Mtx_OrthoTilt(&projection, 0.0, 400.0, 0.0, 240.0, 0.0, 1.0, true); - - // Create the VBO (vertex buffer object) - vbo_data = linearAlloc(sizeof(vertex_list)); - memcpy(vbo_data, vertex_list, sizeof(vertex_list)); - - // Configure buffers - C3D_BufInfo* bufInfo = C3D_GetBufInfo(); - BufInfo_Init(bufInfo); - BufInfo_Add(bufInfo, vbo_data, sizeof(vertex), 1, 0x0); - - // Configure the first fragment shading substage to just pass through the vertex color - // See https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnv.xml for more insight - C3D_TexEnv* env = C3D_GetTexEnv(0); - C3D_TexEnvInit(env); - C3D_TexEnvSrc(env, C3D_Both, GPU_PRIMARY_COLOR, 0, 0); - C3D_TexEnvFunc(env, C3D_Both, GPU_REPLACE); -} - -static void sceneRender(void) { - // Update the uniforms - C3D_FVUnifMtx4x4(GPU_VERTEX_SHADER, uLoc_projection, &projection); - - // Draw the VBO - C3D_DrawArrays(GPU_TRIANGLES, 0, vertex_list_count); -} - -static void sceneExit(void) { - // Free the VBO - linearFree(vbo_data); - - // Free the shader program - shaderProgramFree(&program); - DVLB_Free(vshader_dvlb); -} - -int main() { - emuPrint("Entering main\n"); - // Initialize graphics - gfxInitDefault(); - C3D_Init(C3D_DEFAULT_CMDBUF_SIZE); - - // Initialize the render target - C3D_RenderTarget* target = C3D_RenderTargetCreate(240, 400, GPU_RB_RGBA8, GPU_RB_DEPTH24_STENCIL8); - C3D_RenderTargetSetOutput(target, GFX_TOP, GFX_LEFT, DISPLAY_TRANSFER_FLAGS); - - // Initialize the scene - sceneInit(); - - // Main loop - while (true) - { - // Render the scene - emuPrint("Entering C3D_FrameBegin"); - C3D_FrameBegin(C3D_FRAME_SYNCDRAW); - emuPrint("Clearing render target"); - C3D_RenderTargetClear(target, C3D_CLEAR_ALL, CLEAR_COLOR, 0); - emuPrint("Calling C3D_FrameDrawOn"); - C3D_FrameDrawOn(target); - emuPrint("Calling sceneRender"); - sceneRender(); - emuPrint("Entering C3D_FrameEnd"); - C3D_FrameEnd(0); - emuPrint("Exited C3D_FrameEnd"); - } - - // Deinitialize the scene - sceneExit(); - - // Deinitialize graphics - C3D_Fini(); - gfxExit(); - return 0; -} diff --git a/tests/DetectEmulator/source/vshader.v.pica b/tests/DetectEmulator/source/vshader.v.pica deleted file mode 100644 index 79077d12..00000000 --- a/tests/DetectEmulator/source/vshader.v.pica +++ /dev/null @@ -1,36 +0,0 @@ -; Example PICA200 vertex shader - -; Uniforms -.fvec projection[4] - -; Constants -.constf myconst(0.0, 1.0, -1.0, 0.1) -.constf myconst2(0.3, 0.0, 0.0, 0.0) -.alias zeros myconst.xxxx ; Vector full of zeros -.alias ones myconst.yyyy ; Vector full of ones - -; Outputs -.out outpos position -.out outclr color - -; Inputs (defined as aliases for convenience) -.alias inpos v0 -.alias inclr v1 - -.proc main - ; Force the w component of inpos to be 1.0 - mov r0.xyz, inpos - mov r0.w, ones - - ; outpos = projectionMatrix * inpos - dp4 outpos.x, projection[0], r0 - dp4 outpos.y, projection[1], r0 - dp4 outpos.z, projection[2], r0 - dp4 outpos.w, projection[3], r0 - - ; outclr = inclr - mov outclr, inclr - - ; We're finished - end -.end diff --git a/tests/HelloWorldSVC/Makefile b/tests/HelloWorldSVC/Makefile deleted file mode 100644 index a0e7dbde..00000000 --- a/tests/HelloWorldSVC/Makefile +++ /dev/null @@ -1,209 +0,0 @@ -#--------------------------------------------------------------------------------- -.SUFFIXES: -#--------------------------------------------------------------------------------- - -ifeq ($(strip $(DEVKITARM)),) -$(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM") -endif - -TOPDIR ?= $(CURDIR) -include $(DEVKITARM)/3ds_rules - -#--------------------------------------------------------------------------------- -# TARGET is the name of the output -# BUILD is the directory where object files & intermediate files will be placed -# SOURCES is a list of directories containing source code -# DATA is a list of directories containing data files -# INCLUDES is a list of directories containing header files -# -# NO_SMDH: if set to anything, no SMDH file is generated. -# APP_TITLE is the name of the app stored in the SMDH file (Optional) -# APP_DESCRIPTION is the description of the app stored in the SMDH file (Optional) -# APP_AUTHOR is the author of the app stored in the SMDH file (Optional) -# ICON is the filename of the icon (.png), relative to the project folder. -# If not set, it attempts to use one of the following (in this order): -# - .png -# - icon.png -# - /default_icon.png -#--------------------------------------------------------------------------------- -TARGET := $(notdir $(CURDIR)) -BUILD := build -SOURCES := source -DATA := -INCLUDES := include -GRAPHICS := gfx - -#--------------------------------------------------------------------------------- -# options for code generation -#--------------------------------------------------------------------------------- -ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft - -CFLAGS := -g -Wall -O2 -mword-relocations \ - -ffunction-sections \ - $(ARCH) - -CFLAGS += $(INCLUDE) -D__3DS__ - -CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 - -ASFLAGS := -g $(ARCH) -LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) - -LIBS := -lctru -lm - -#--------------------------------------------------------------------------------- -# list of directories containing libraries, this must be the top level containing -# include and lib -#--------------------------------------------------------------------------------- -LIBDIRS := $(CTRULIB) - -#--------------------------------------------------------------------------------- -# no real need to edit anything past this point unless you need to add additional -# rules for different file extensions -#--------------------------------------------------------------------------------- -ifneq ($(BUILD),$(notdir $(CURDIR))) -#--------------------------------------------------------------------------------- - -export OUTPUT := $(CURDIR)/$(TARGET) -export TOPDIR := $(CURDIR) - -export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ - $(foreach dir,$(DATA),$(CURDIR)/$(dir)) \ - $(foreach dir,$(GRAPHICS),$(CURDIR)/$(dir)) - -export DEPSDIR := $(CURDIR)/$(BUILD) - -CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) -CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) -SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) -BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) -PNGFILES := $(foreach dir,$(GRAPHICS),$(notdir $(wildcard $(dir)/*.png))) - -#--------------------------------------------------------------------------------- -# use CXX for linking C++ projects, CC for standard C -#--------------------------------------------------------------------------------- -ifeq ($(strip $(CPPFILES)),) -#--------------------------------------------------------------------------------- - export LD := $(CC) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- - export LD := $(CXX) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -export OFILES_SOURCES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o) - -export OFILES_BIN := $(addsuffix .o,$(BINFILES)) \ - $(PNGFILES:.png=.bgr.o) \ - -export OFILES := $(OFILES_BIN) $(OFILES_SOURCES) - -export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES))) $(PNGFILES:.png=_bgr.h) - -export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ - $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ - -I$(CURDIR)/$(BUILD) - -export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) - -ifeq ($(strip $(ICON)),) - icons := $(wildcard *.png) - ifneq (,$(findstring $(TARGET).png,$(icons))) - export APP_ICON := $(TOPDIR)/$(TARGET).png - else - ifneq (,$(findstring icon.png,$(icons))) - export APP_ICON := $(TOPDIR)/icon.png - endif - endif -else - export APP_ICON := $(TOPDIR)/$(ICON) -endif - -IMAGEMAGICK := $(shell which convert) - -ifeq ($(strip $(NO_SMDH)),) - export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh -endif - -.PHONY: $(BUILD) clean all - -#--------------------------------------------------------------------------------- -ifneq ($(strip $(IMAGEMAGICK)),) -ifeq ($(findstring System32,$(IMAGEMAGICK)),) - -HAVE_CONVERT := yes - -endif -endif - -ifeq ($(strip $(HAVE_CONVERT)),yes) - -all: $(BUILD) - -else - -all: - @echo "Image Magick not found!" - @echo - @echo "Please install Image Magick from http://www.imagemagick.org/ to build this example" - -endif - -#--------------------------------------------------------------------------------- -$(BUILD): - @[ -d $@ ] || mkdir -p $@ - @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile - -#--------------------------------------------------------------------------------- -clean: - @echo clean ... - @rm -fr $(BUILD) $(TARGET).3dsx $(OUTPUT).smdh $(TARGET).elf - - -#--------------------------------------------------------------------------------- -else - -DEPENDS := $(OFILES:.o=.d) - -#--------------------------------------------------------------------------------- -# main targets -#--------------------------------------------------------------------------------- -ifeq ($(strip $(NO_SMDH)),) -$(OUTPUT).3dsx : $(OUTPUT).elf $(OUTPUT).smdh -else -$(OUTPUT).3dsx : $(OUTPUT).elf -endif - -$(OFILES_SOURCES) : $(HFILES) - -$(OUTPUT).elf : $(OFILES) - -#--------------------------------------------------------------------------------- -# you need a rule like this for each extension you use as binary data -#--------------------------------------------------------------------------------- -%.bin.o : %.bin -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - - - -#--------------------------------------------------------------------------------- -%_bgr.h %.bgr.o: %.bgr -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -%.bgr: %.png -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @convert $< -rotate 90 $@ - --include $(DEPENDS) - -#--------------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------------- diff --git a/tests/HelloWorldSVC/source/main.c b/tests/HelloWorldSVC/source/main.c deleted file mode 100644 index 7c2a0972..00000000 --- a/tests/HelloWorldSVC/source/main.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <3ds.h> -#include -#include -#include -#include - -int main(int argc, char** argv) { - // Put the string on the heap to make sure heap initialization works - char* buffer = calloc(6969, sizeof(char)); - strcpy(buffer, "Hello world\n"); - - svcOutputDebugString(buffer, strlen(buffer)); - - // I hate C's UB rules around infinite loops - while (true) { - __asm__ volatile ("" ::: "memory"); - } - - return 0; -} diff --git a/tests/ImmediateModeTriangles/Makefile b/tests/ImmediateModeTriangles/Makefile deleted file mode 100644 index 46a94048..00000000 --- a/tests/ImmediateModeTriangles/Makefile +++ /dev/null @@ -1,255 +0,0 @@ -#--------------------------------------------------------------------------------- -.SUFFIXES: -#--------------------------------------------------------------------------------- - -ifeq ($(strip $(DEVKITARM)),) -$(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM") -endif - -TOPDIR ?= $(CURDIR) -include $(DEVKITARM)/3ds_rules - -#--------------------------------------------------------------------------------- -# TARGET is the name of the output -# BUILD is the directory where object files & intermediate files will be placed -# SOURCES is a list of directories containing source code -# DATA is a list of directories containing data files -# INCLUDES is a list of directories containing header files -# GRAPHICS is a list of directories containing graphics files -# GFXBUILD is the directory where converted graphics files will be placed -# If set to $(BUILD), it will statically link in the converted -# files as if they were data files. -# -# NO_SMDH: if set to anything, no SMDH file is generated. -# ROMFS is the directory which contains the RomFS, relative to the Makefile (Optional) -# APP_TITLE is the name of the app stored in the SMDH file (Optional) -# APP_DESCRIPTION is the description of the app stored in the SMDH file (Optional) -# APP_AUTHOR is the author of the app stored in the SMDH file (Optional) -# ICON is the filename of the icon (.png), relative to the project folder. -# If not set, it attempts to use one of the following (in this order): -# - .png -# - icon.png -# - /default_icon.png -#--------------------------------------------------------------------------------- -TARGET := $(notdir $(CURDIR)) -BUILD := build -SOURCES := source -DATA := data -INCLUDES := include -GRAPHICS := gfx -GFXBUILD := $(BUILD) -#ROMFS := romfs -#GFXBUILD := $(ROMFS)/gfx - -#--------------------------------------------------------------------------------- -# options for code generation -#--------------------------------------------------------------------------------- -ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft - -CFLAGS := -g -Wall -O2 -mword-relocations \ - -ffunction-sections \ - $(ARCH) - -CFLAGS += $(INCLUDE) -D__3DS__ - -CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 - -ASFLAGS := -g $(ARCH) -LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) - -LIBS := -lcitro3d -lctru -lm - -#--------------------------------------------------------------------------------- -# list of directories containing libraries, this must be the top level containing -# include and lib -#--------------------------------------------------------------------------------- -LIBDIRS := $(CTRULIB) - - -#--------------------------------------------------------------------------------- -# no real need to edit anything past this point unless you need to add additional -# rules for different file extensions -#--------------------------------------------------------------------------------- -ifneq ($(BUILD),$(notdir $(CURDIR))) -#--------------------------------------------------------------------------------- - -export OUTPUT := $(CURDIR)/$(TARGET) -export TOPDIR := $(CURDIR) - -export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ - $(foreach dir,$(GRAPHICS),$(CURDIR)/$(dir)) \ - $(foreach dir,$(DATA),$(CURDIR)/$(dir)) - -export DEPSDIR := $(CURDIR)/$(BUILD) - -CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) -CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) -SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) -PICAFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.v.pica))) -SHLISTFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.shlist))) -GFXFILES := $(foreach dir,$(GRAPHICS),$(notdir $(wildcard $(dir)/*.t3s))) -BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) - -#--------------------------------------------------------------------------------- -# use CXX for linking C++ projects, CC for standard C -#--------------------------------------------------------------------------------- -ifeq ($(strip $(CPPFILES)),) -#--------------------------------------------------------------------------------- - export LD := $(CC) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- - export LD := $(CXX) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -#--------------------------------------------------------------------------------- -ifeq ($(GFXBUILD),$(BUILD)) -#--------------------------------------------------------------------------------- -export T3XFILES := $(GFXFILES:.t3s=.t3x) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- -export ROMFS_T3XFILES := $(patsubst %.t3s, $(GFXBUILD)/%.t3x, $(GFXFILES)) -export T3XHFILES := $(patsubst %.t3s, $(BUILD)/%.h, $(GFXFILES)) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -export OFILES_SOURCES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o) - -export OFILES_BIN := $(addsuffix .o,$(BINFILES)) \ - $(PICAFILES:.v.pica=.shbin.o) $(SHLISTFILES:.shlist=.shbin.o) \ - $(addsuffix .o,$(T3XFILES)) - -export OFILES := $(OFILES_BIN) $(OFILES_SOURCES) - -export HFILES := $(PICAFILES:.v.pica=_shbin.h) $(SHLISTFILES:.shlist=_shbin.h) \ - $(addsuffix .h,$(subst .,_,$(BINFILES))) \ - $(GFXFILES:.t3s=.h) - -export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ - $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ - -I$(CURDIR)/$(BUILD) - -export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) - -export _3DSXDEPS := $(if $(NO_SMDH),,$(OUTPUT).smdh) - -ifeq ($(strip $(ICON)),) - icons := $(wildcard *.png) - ifneq (,$(findstring $(TARGET).png,$(icons))) - export APP_ICON := $(TOPDIR)/$(TARGET).png - else - ifneq (,$(findstring icon.png,$(icons))) - export APP_ICON := $(TOPDIR)/icon.png - endif - endif -else - export APP_ICON := $(TOPDIR)/$(ICON) -endif - -ifeq ($(strip $(NO_SMDH)),) - export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh -endif - -ifneq ($(ROMFS),) - export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS) -endif - -.PHONY: all clean - -#--------------------------------------------------------------------------------- -all: $(BUILD) $(GFXBUILD) $(DEPSDIR) $(ROMFS_T3XFILES) $(T3XHFILES) - @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile - -$(BUILD): - @mkdir -p $@ - -ifneq ($(GFXBUILD),$(BUILD)) -$(GFXBUILD): - @mkdir -p $@ -endif - -ifneq ($(DEPSDIR),$(BUILD)) -$(DEPSDIR): - @mkdir -p $@ -endif - -#--------------------------------------------------------------------------------- -clean: - @echo clean ... - @rm -fr $(BUILD) $(TARGET).3dsx $(OUTPUT).smdh $(TARGET).elf $(GFXBUILD) - -#--------------------------------------------------------------------------------- -$(GFXBUILD)/%.t3x $(BUILD)/%.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $(BUILD)/$*.h -d $(DEPSDIR)/$*.d -o $(GFXBUILD)/$*.t3x - -#--------------------------------------------------------------------------------- -else - -#--------------------------------------------------------------------------------- -# main targets -#--------------------------------------------------------------------------------- -$(OUTPUT).3dsx : $(OUTPUT).elf $(_3DSXDEPS) - -$(OFILES_SOURCES) : $(HFILES) - -$(OUTPUT).elf : $(OFILES) - -#--------------------------------------------------------------------------------- -# you need a rule like this for each extension you use as binary data -#--------------------------------------------------------------------------------- -%.bin.o %_bin.h : %.bin -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -.PRECIOUS : %.t3x -#--------------------------------------------------------------------------------- -%.t3x.o %_t3x.h : %.t3x -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -# rules for assembling GPU shaders -#--------------------------------------------------------------------------------- -define shader-as - $(eval CURBIN := $*.shbin) - $(eval DEPSFILE := $(DEPSDIR)/$*.shbin.d) - echo "$(CURBIN).o: $< $1" > $(DEPSFILE) - echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(CURBIN) | tr . _)`.h - echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(CURBIN) | tr . _)`.h - echo "extern const u32" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo $(CURBIN) | tr . _)`.h - picasso -o $(CURBIN) $1 - bin2s $(CURBIN) | $(AS) -o $*.shbin.o -endef - -%.shbin.o %_shbin.h : %.v.pica %.g.pica - @echo $(notdir $^) - @$(call shader-as,$^) - -%.shbin.o %_shbin.h : %.v.pica - @echo $(notdir $<) - @$(call shader-as,$<) - -%.shbin.o %_shbin.h : %.shlist - @echo $(notdir $<) - @$(call shader-as,$(foreach file,$(shell cat $<),$(dir $<)$(file))) - -#--------------------------------------------------------------------------------- -%.t3x %.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $*.h -d $*.d -o $*.t3x - --include $(DEPSDIR)/*.d - -#--------------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------------- diff --git a/tests/ImmediateModeTriangles/source/main.c b/tests/ImmediateModeTriangles/source/main.c deleted file mode 100644 index 4eda609f..00000000 --- a/tests/ImmediateModeTriangles/source/main.c +++ /dev/null @@ -1,121 +0,0 @@ -#include <3ds.h> -#include -#include -#include "vshader_shbin.h" - -#define CLEAR_COLOR 0x68B0D8FF - -#define DISPLAY_TRANSFER_FLAGS \ - (GX_TRANSFER_FLIP_VERT(0) | GX_TRANSFER_OUT_TILED(0) | GX_TRANSFER_RAW_COPY(0) | \ - GX_TRANSFER_IN_FORMAT(GX_TRANSFER_FMT_RGBA8) | GX_TRANSFER_OUT_FORMAT(GX_TRANSFER_FMT_RGB8) | \ - GX_TRANSFER_SCALING(GX_TRANSFER_SCALE_NO)) - -static DVLB_s* vshader_dvlb; -static shaderProgram_s program; -static int uLoc_projection; -static C3D_Mtx projection; - -static void sceneInit(void) -{ - // Load the vertex shader, create a shader program and bind it - vshader_dvlb = DVLB_ParseFile((u32*)vshader_shbin, vshader_shbin_size); - shaderProgramInit(&program); - shaderProgramSetVsh(&program, &vshader_dvlb->DVLE[0]); - C3D_BindProgram(&program); - - // Get the location of the uniforms - uLoc_projection = shaderInstanceGetUniformLocation(program.vertexShader, "projection"); - - // Configure attributes for use with the vertex shader - // Attribute format and element count are ignored in immediate mode - C3D_AttrInfo* attrInfo = C3D_GetAttrInfo(); - AttrInfo_Init(attrInfo); - AttrInfo_AddLoader(attrInfo, 0, GPU_FLOAT, 3); // v0=position - AttrInfo_AddLoader(attrInfo, 1, GPU_FLOAT, 3); // v1=color - - // Compute the projection matrix - Mtx_OrthoTilt(&projection, 0.0, 400.0, 0.0, 240.0, 0.0, 1.0, true); - - // Configure the first fragment shading substage to just pass through the vertex color - // See https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnv.xml for more insight - C3D_TexEnv* env = C3D_GetTexEnv(0); - C3D_TexEnvInit(env); - C3D_TexEnvSrc(env, C3D_Both, GPU_PRIMARY_COLOR, 0, 0); - C3D_TexEnvFunc(env, C3D_Both, GPU_REPLACE); -} - -static void sceneRender(void) -{ - // Update the uniforms - C3D_FVUnifMtx4x4(GPU_VERTEX_SHADER, uLoc_projection, &projection); - - // Draw the triangle directly - C3D_ImmDrawBegin(GPU_TRIANGLES); - // Triangle 1 - C3D_ImmSendAttrib(200.0f, 200.0f, 0.5f, 0.0f); // v0=position - C3D_ImmSendAttrib(1.0f, 0.0f, 0.0f, 1.0f); // v1=color - - C3D_ImmSendAttrib(100.0f, 40.0f, 0.5f, 0.0f); - C3D_ImmSendAttrib(0.0f, 1.0f, 0.0f, 1.0f); - - C3D_ImmSendAttrib(300.0f, 40.0f, 0.5f, 0.0f); - C3D_ImmSendAttrib(0.0f, 0.0f, 1.0f, 1.0f); - - // Triangle 2 - C3D_ImmSendAttrib(10.0f, 20.0f, 0.5f, 0.0f); - C3D_ImmSendAttrib(1.0f, 0.0f, 0.0f, 1.0f); - - C3D_ImmSendAttrib(90.0f, 20.0f, 0.5f, 0.0f); - C3D_ImmSendAttrib(1.0f, 0.0f, 0.0f, 1.0f); - - C3D_ImmSendAttrib(40.0f, 40.0f, 0.5f, 0.0f); - C3D_ImmSendAttrib(1.0f, 0.0f, 0.0f, 1.0f); - C3D_ImmDrawEnd(); -} - -static void sceneExit(void) -{ - // Free the shader program - shaderProgramFree(&program); - DVLB_Free(vshader_dvlb); -} - -int main() -{ - // Initialize graphics - gfxInitDefault(); - C3D_Init(C3D_DEFAULT_CMDBUF_SIZE); - - // Initialize the render target - C3D_RenderTarget* target = C3D_RenderTargetCreate(240, 400, GPU_RB_RGBA8, GPU_RB_DEPTH24_STENCIL8); - C3D_RenderTargetSetOutput(target, GFX_TOP, GFX_LEFT, DISPLAY_TRANSFER_FLAGS); - - // Initialize the scene - sceneInit(); - - // Main loop - while (aptMainLoop()) - { - hidScanInput(); - - // Respond to user input - u32 kDown = hidKeysDown(); - if (kDown & KEY_START) - break; // break in order to return to hbmenu - - // Render the scene - C3D_FrameBegin(C3D_FRAME_SYNCDRAW); - C3D_RenderTargetClear(target, C3D_CLEAR_ALL, CLEAR_COLOR, 0); - C3D_FrameDrawOn(target); - sceneRender(); - C3D_FrameEnd(0); - } - - // Deinitialize the scene - sceneExit(); - - // Deinitialize graphics - C3D_Fini(); - gfxExit(); - return 0; -} diff --git a/tests/ImmediateModeTriangles/source/vshader.v.pica b/tests/ImmediateModeTriangles/source/vshader.v.pica deleted file mode 100644 index ca9498cb..00000000 --- a/tests/ImmediateModeTriangles/source/vshader.v.pica +++ /dev/null @@ -1,38 +0,0 @@ -; Example PICA200 vertex shader - -; Uniforms -.fvec projection[4] - -; Constants -.constf myconst(0.0, 1.0, -1.0, 0.1) -.constf myconst2(0.3, 0.0, 0.0, 0.0) -.alias zeros myconst.xxxx ; Vector full of zeros -.alias ones myconst.yyyy ; Vector full of ones - -; Outputs -.out outpos position -.out outclr color - -; Inputs (defined as aliases for convenience) -.alias inpos v0 -.alias inclr v1 - -.bool test - -.proc main - ; Force the w component of inpos to be 1.0 - mov r0.xyz, inpos - mov r0.w, ones - - ; outpos = projectionMatrix * inpos - dp4 outpos.x, projection[0], r0 - dp4 outpos.y, projection[1], r0 - dp4 outpos.z, projection[2], r0 - dp4 outpos.w, projection[3], r0 - - ; outclr = inclr - mov outclr, inclr - - ; We're finished - end -.end diff --git a/tests/SimplerTri/Makefile b/tests/SimplerTri/Makefile deleted file mode 100644 index 46a94048..00000000 --- a/tests/SimplerTri/Makefile +++ /dev/null @@ -1,255 +0,0 @@ -#--------------------------------------------------------------------------------- -.SUFFIXES: -#--------------------------------------------------------------------------------- - -ifeq ($(strip $(DEVKITARM)),) -$(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM") -endif - -TOPDIR ?= $(CURDIR) -include $(DEVKITARM)/3ds_rules - -#--------------------------------------------------------------------------------- -# TARGET is the name of the output -# BUILD is the directory where object files & intermediate files will be placed -# SOURCES is a list of directories containing source code -# DATA is a list of directories containing data files -# INCLUDES is a list of directories containing header files -# GRAPHICS is a list of directories containing graphics files -# GFXBUILD is the directory where converted graphics files will be placed -# If set to $(BUILD), it will statically link in the converted -# files as if they were data files. -# -# NO_SMDH: if set to anything, no SMDH file is generated. -# ROMFS is the directory which contains the RomFS, relative to the Makefile (Optional) -# APP_TITLE is the name of the app stored in the SMDH file (Optional) -# APP_DESCRIPTION is the description of the app stored in the SMDH file (Optional) -# APP_AUTHOR is the author of the app stored in the SMDH file (Optional) -# ICON is the filename of the icon (.png), relative to the project folder. -# If not set, it attempts to use one of the following (in this order): -# - .png -# - icon.png -# - /default_icon.png -#--------------------------------------------------------------------------------- -TARGET := $(notdir $(CURDIR)) -BUILD := build -SOURCES := source -DATA := data -INCLUDES := include -GRAPHICS := gfx -GFXBUILD := $(BUILD) -#ROMFS := romfs -#GFXBUILD := $(ROMFS)/gfx - -#--------------------------------------------------------------------------------- -# options for code generation -#--------------------------------------------------------------------------------- -ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft - -CFLAGS := -g -Wall -O2 -mword-relocations \ - -ffunction-sections \ - $(ARCH) - -CFLAGS += $(INCLUDE) -D__3DS__ - -CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11 - -ASFLAGS := -g $(ARCH) -LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) - -LIBS := -lcitro3d -lctru -lm - -#--------------------------------------------------------------------------------- -# list of directories containing libraries, this must be the top level containing -# include and lib -#--------------------------------------------------------------------------------- -LIBDIRS := $(CTRULIB) - - -#--------------------------------------------------------------------------------- -# no real need to edit anything past this point unless you need to add additional -# rules for different file extensions -#--------------------------------------------------------------------------------- -ifneq ($(BUILD),$(notdir $(CURDIR))) -#--------------------------------------------------------------------------------- - -export OUTPUT := $(CURDIR)/$(TARGET) -export TOPDIR := $(CURDIR) - -export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ - $(foreach dir,$(GRAPHICS),$(CURDIR)/$(dir)) \ - $(foreach dir,$(DATA),$(CURDIR)/$(dir)) - -export DEPSDIR := $(CURDIR)/$(BUILD) - -CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) -CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) -SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) -PICAFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.v.pica))) -SHLISTFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.shlist))) -GFXFILES := $(foreach dir,$(GRAPHICS),$(notdir $(wildcard $(dir)/*.t3s))) -BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) - -#--------------------------------------------------------------------------------- -# use CXX for linking C++ projects, CC for standard C -#--------------------------------------------------------------------------------- -ifeq ($(strip $(CPPFILES)),) -#--------------------------------------------------------------------------------- - export LD := $(CC) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- - export LD := $(CXX) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -#--------------------------------------------------------------------------------- -ifeq ($(GFXBUILD),$(BUILD)) -#--------------------------------------------------------------------------------- -export T3XFILES := $(GFXFILES:.t3s=.t3x) -#--------------------------------------------------------------------------------- -else -#--------------------------------------------------------------------------------- -export ROMFS_T3XFILES := $(patsubst %.t3s, $(GFXBUILD)/%.t3x, $(GFXFILES)) -export T3XHFILES := $(patsubst %.t3s, $(BUILD)/%.h, $(GFXFILES)) -#--------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------- - -export OFILES_SOURCES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o) - -export OFILES_BIN := $(addsuffix .o,$(BINFILES)) \ - $(PICAFILES:.v.pica=.shbin.o) $(SHLISTFILES:.shlist=.shbin.o) \ - $(addsuffix .o,$(T3XFILES)) - -export OFILES := $(OFILES_BIN) $(OFILES_SOURCES) - -export HFILES := $(PICAFILES:.v.pica=_shbin.h) $(SHLISTFILES:.shlist=_shbin.h) \ - $(addsuffix .h,$(subst .,_,$(BINFILES))) \ - $(GFXFILES:.t3s=.h) - -export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ - $(foreach dir,$(LIBDIRS),-I$(dir)/include) \ - -I$(CURDIR)/$(BUILD) - -export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) - -export _3DSXDEPS := $(if $(NO_SMDH),,$(OUTPUT).smdh) - -ifeq ($(strip $(ICON)),) - icons := $(wildcard *.png) - ifneq (,$(findstring $(TARGET).png,$(icons))) - export APP_ICON := $(TOPDIR)/$(TARGET).png - else - ifneq (,$(findstring icon.png,$(icons))) - export APP_ICON := $(TOPDIR)/icon.png - endif - endif -else - export APP_ICON := $(TOPDIR)/$(ICON) -endif - -ifeq ($(strip $(NO_SMDH)),) - export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh -endif - -ifneq ($(ROMFS),) - export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS) -endif - -.PHONY: all clean - -#--------------------------------------------------------------------------------- -all: $(BUILD) $(GFXBUILD) $(DEPSDIR) $(ROMFS_T3XFILES) $(T3XHFILES) - @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile - -$(BUILD): - @mkdir -p $@ - -ifneq ($(GFXBUILD),$(BUILD)) -$(GFXBUILD): - @mkdir -p $@ -endif - -ifneq ($(DEPSDIR),$(BUILD)) -$(DEPSDIR): - @mkdir -p $@ -endif - -#--------------------------------------------------------------------------------- -clean: - @echo clean ... - @rm -fr $(BUILD) $(TARGET).3dsx $(OUTPUT).smdh $(TARGET).elf $(GFXBUILD) - -#--------------------------------------------------------------------------------- -$(GFXBUILD)/%.t3x $(BUILD)/%.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $(BUILD)/$*.h -d $(DEPSDIR)/$*.d -o $(GFXBUILD)/$*.t3x - -#--------------------------------------------------------------------------------- -else - -#--------------------------------------------------------------------------------- -# main targets -#--------------------------------------------------------------------------------- -$(OUTPUT).3dsx : $(OUTPUT).elf $(_3DSXDEPS) - -$(OFILES_SOURCES) : $(HFILES) - -$(OUTPUT).elf : $(OFILES) - -#--------------------------------------------------------------------------------- -# you need a rule like this for each extension you use as binary data -#--------------------------------------------------------------------------------- -%.bin.o %_bin.h : %.bin -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -.PRECIOUS : %.t3x -#--------------------------------------------------------------------------------- -%.t3x.o %_t3x.h : %.t3x -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @$(bin2o) - -#--------------------------------------------------------------------------------- -# rules for assembling GPU shaders -#--------------------------------------------------------------------------------- -define shader-as - $(eval CURBIN := $*.shbin) - $(eval DEPSFILE := $(DEPSDIR)/$*.shbin.d) - echo "$(CURBIN).o: $< $1" > $(DEPSFILE) - echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(CURBIN) | tr . _)`.h - echo "extern const u8" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(CURBIN) | tr . _)`.h - echo "extern const u32" `(echo $(CURBIN) | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo $(CURBIN) | tr . _)`.h - picasso -o $(CURBIN) $1 - bin2s $(CURBIN) | $(AS) -o $*.shbin.o -endef - -%.shbin.o %_shbin.h : %.v.pica %.g.pica - @echo $(notdir $^) - @$(call shader-as,$^) - -%.shbin.o %_shbin.h : %.v.pica - @echo $(notdir $<) - @$(call shader-as,$<) - -%.shbin.o %_shbin.h : %.shlist - @echo $(notdir $<) - @$(call shader-as,$(foreach file,$(shell cat $<),$(dir $<)$(file))) - -#--------------------------------------------------------------------------------- -%.t3x %.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $*.h -d $*.d -o $*.t3x - --include $(DEPSDIR)/*.d - -#--------------------------------------------------------------------------------------- -endif -#--------------------------------------------------------------------------------------- diff --git a/tests/SimplerTri/source/main.c b/tests/SimplerTri/source/main.c deleted file mode 100644 index 0ebd936d..00000000 --- a/tests/SimplerTri/source/main.c +++ /dev/null @@ -1,134 +0,0 @@ -#include <3ds.h> -#include -#include -#include "vshader_shbin.h" - -#define CLEAR_COLOR 0x68B0D8FF - -#define DISPLAY_TRANSFER_FLAGS \ - (GX_TRANSFER_FLIP_VERT(0) | GX_TRANSFER_OUT_TILED(0) | GX_TRANSFER_RAW_COPY(0) | \ - GX_TRANSFER_IN_FORMAT(GX_TRANSFER_FMT_RGBA8) | GX_TRANSFER_OUT_FORMAT(GX_TRANSFER_FMT_RGB8) | \ - GX_TRANSFER_SCALING(GX_TRANSFER_SCALE_NO)) - -typedef struct { float x, y, z; } vertex; - -static const vertex vertex_list[] = -{ - { 200.0f, 200.0f, 0.5f }, - { 100.0f, 40.0f, 0.5f }, - { 300.0f, 40.0f, 0.5f }, -}; - -#define vertex_list_count (sizeof(vertex_list)/sizeof(vertex_list[0])) - -static DVLB_s* vshader_dvlb; -static shaderProgram_s program; -static int uLoc_projection; -static C3D_Mtx projection; - -static void* vbo_data; - -static void sceneInit(void) -{ - // Load the vertex shader, create a shader program and bind it - vshader_dvlb = DVLB_ParseFile((u32*)vshader_shbin, vshader_shbin_size); - shaderProgramInit(&program); - shaderProgramSetVsh(&program, &vshader_dvlb->DVLE[0]); - C3D_BindProgram(&program); - - // Get the location of the uniforms - uLoc_projection = shaderInstanceGetUniformLocation(program.vertexShader, "projection"); - - // Configure attributes for use with the vertex shader - C3D_AttrInfo* attrInfo = C3D_GetAttrInfo(); - AttrInfo_Init(attrInfo); - AttrInfo_AddLoader(attrInfo, 0, GPU_FLOAT, 3); // v0=position - AttrInfo_AddFixed(attrInfo, 1); // v1=color - - // Set the fixed attribute (color) to orange - C3D_FixedAttribSet(1, 1.0, 0.5, 0.2, 1.0); - - // Compute the projection matrix - Mtx_OrthoTilt(&projection, 0.0, 400.0, 0.0, 240.0, 0.0, 1.0, true); - - // Create the VBO (vertex buffer object) - vbo_data = linearAlloc(sizeof(vertex_list)); - memcpy(vbo_data, vertex_list, sizeof(vertex_list)); - - // Configure buffers - C3D_BufInfo* bufInfo = C3D_GetBufInfo(); - BufInfo_Init(bufInfo); - BufInfo_Add(bufInfo, vbo_data, sizeof(vertex), 1, 0x0); - - // Configure the first fragment shading substage to just pass through the vertex color - // See https://www.opengl.org/sdk/docs/man2/xhtml/glTexEnv.xml for more insight - C3D_TexEnv* env = C3D_GetTexEnv(0); - C3D_TexEnvInit(env); - C3D_TexEnvSrc(env, C3D_Both, GPU_PRIMARY_COLOR, 0, 0); - C3D_TexEnvFunc(env, C3D_Both, GPU_REPLACE); -} - -static void sceneRender(void) -{ - // Update the uniforms - C3D_FVUnifMtx4x4(GPU_VERTEX_SHADER, uLoc_projection, &projection); - - // Draw the VBO - C3D_DrawArrays(GPU_TRIANGLES, 0, vertex_list_count); -} - -static void sceneExit(void) -{ - // Free the VBO - linearFree(vbo_data); - - // Free the shader program - shaderProgramFree(&program); - DVLB_Free(vshader_dvlb); -} - -// Print string in emulator terminal -static void emuPrint(const char* str) -{ - svcOutputDebugString(str, strlen(str)); -} - -int main() -{ - emuPrint("Entering main\n"); - // Initialize graphics - gfxInitDefault(); - C3D_Init(C3D_DEFAULT_CMDBUF_SIZE); - - // Initialize the render target - C3D_RenderTarget* target = C3D_RenderTargetCreate(240, 400, GPU_RB_RGBA8, GPU_RB_DEPTH24_STENCIL8); - C3D_RenderTargetSetOutput(target, GFX_TOP, GFX_LEFT, DISPLAY_TRANSFER_FLAGS); - - // Initialize the scene - sceneInit(); - - // Main loop - while (true) - { - // Render the scene - emuPrint("Entering C3D_FrameBegin"); - C3D_FrameBegin(C3D_FRAME_SYNCDRAW); - emuPrint("Clearing render target"); - C3D_RenderTargetClear(target, C3D_CLEAR_ALL, CLEAR_COLOR, 0); - emuPrint("Calling C3D_FrameDrawOn"); - C3D_FrameDrawOn(target); - emuPrint("Calling sceneRender"); - sceneRender(); - emuPrint("Entering C3D_FrameEnd"); - C3D_FrameEnd(0); - emuPrint("Exited C3D_FrameEnd"); - } - - // Deinitialize the scene - sceneExit(); - - // Deinitialize graphics - C3D_Fini(); - gfxExit(); - return 0; -} diff --git a/tests/SimplerTri/source/vshader.v.pica b/tests/SimplerTri/source/vshader.v.pica deleted file mode 100644 index 79077d12..00000000 --- a/tests/SimplerTri/source/vshader.v.pica +++ /dev/null @@ -1,36 +0,0 @@ -; Example PICA200 vertex shader - -; Uniforms -.fvec projection[4] - -; Constants -.constf myconst(0.0, 1.0, -1.0, 0.1) -.constf myconst2(0.3, 0.0, 0.0, 0.0) -.alias zeros myconst.xxxx ; Vector full of zeros -.alias ones myconst.yyyy ; Vector full of ones - -; Outputs -.out outpos position -.out outclr color - -; Inputs (defined as aliases for convenience) -.alias inpos v0 -.alias inclr v1 - -.proc main - ; Force the w component of inpos to be 1.0 - mov r0.xyz, inpos - mov r0.w, ones - - ; outpos = projectionMatrix * inpos - dp4 outpos.x, projection[0], r0 - dp4 outpos.y, projection[1], r0 - dp4 outpos.z, projection[2], r0 - dp4 outpos.w, projection[3], r0 - - ; outclr = inclr - mov outclr, inclr - - ; We're finished - end -.end diff --git a/third_party/LuaJIT b/third_party/LuaJIT deleted file mode 160000 index 41edf095..00000000 --- a/third_party/LuaJIT +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 41edf0959b9504d36dd85f5f16893c004ea7d7ba diff --git a/third_party/SDL2 b/third_party/SDL2 deleted file mode 160000 index 379d4780..00000000 --- a/third_party/SDL2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 379d4780559690a9836444aeb5637f60953947be diff --git a/third_party/boost b/third_party/boost deleted file mode 160000 index 4532ae23..00000000 --- a/third_party/boost +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4532ae239c4d0b88a547d28e19348c3b05bfd4d6 diff --git a/third_party/cityhash/cityhash.cpp b/third_party/cityhash/cityhash.cpp deleted file mode 100644 index 366d7524..00000000 --- a/third_party/cityhash/cityhash.cpp +++ /dev/null @@ -1,340 +0,0 @@ -// Copyright (c) 2011 Google, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// 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 Software. -// -// THE SOFTWARE IS 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// -// CityHash, by Geoff Pike and Jyrki Alakuijala -// -// This file provides CityHash64() and related functions. -// -// It's probably possible to create even faster hash functions by -// writing a program that systematically explores some of the space of -// possible hash functions, by using SIMD instructions, or by -// compromising on hash quality. - -#include -#include // for memcpy and memset -#include "include/cityhash.hpp" -#include "swap.hpp" - -// #include "config.h" -#ifdef __GNUC__ -#define HAVE_BUILTIN_EXPECT 1 -#endif -#ifdef COMMON_BIG_ENDIAN -#define WORDS_BIGENDIAN 1 -#endif - -using namespace std; - -typedef uint8_t uint8; -typedef uint32_t uint32; -typedef uint64_t uint64; - -namespace CityHash { - -static uint64 UNALIGNED_LOAD64(const char* p) { - uint64 result; - memcpy(&result, p, sizeof(result)); - return result; -} - -static uint32 UNALIGNED_LOAD32(const char* p) { - uint32 result; - memcpy(&result, p, sizeof(result)); - return result; -} - -#ifdef WORDS_BIGENDIAN -#define uint32_in_expected_order(x) (swap32(x)) -#define uint64_in_expected_order(x) (swap64(x)) -#else -#define uint32_in_expected_order(x) (x) -#define uint64_in_expected_order(x) (x) -#endif - -#if !defined(LIKELY) -#if HAVE_BUILTIN_EXPECT -#define LIKELY(x) (__builtin_expect(!!(x), 1)) -#else -#define LIKELY(x) (x) -#endif -#endif - -static uint64 Fetch64(const char* p) { - return uint64_in_expected_order(UNALIGNED_LOAD64(p)); -} - -static uint32 Fetch32(const char* p) { - return uint32_in_expected_order(UNALIGNED_LOAD32(p)); -} - -// Some primes between 2^63 and 2^64 for various uses. -static const uint64 k0 = 0xc3a5c85c97cb3127ULL; -static const uint64 k1 = 0xb492b66fbe98f273ULL; -static const uint64 k2 = 0x9ae16a3b2f90404fULL; - -// Bitwise right rotate. Normally this will compile to a single -// instruction, especially if the shift is a manifest constant. -static uint64 Rotate(uint64 val, int shift) { - // Avoid shifting by 64: doing so yields an undefined result. - return shift == 0 ? val : ((val >> shift) | (val << (64 - shift))); -} - -static uint64 ShiftMix(uint64 val) { - return val ^ (val >> 47); -} - -static uint64 HashLen16(uint64 u, uint64 v) { - return Hash128to64(uint128(u, v)); -} - -static uint64 HashLen16(uint64 u, uint64 v, uint64 mul) { - // Murmur-inspired hashing. - uint64 a = (u ^ v) * mul; - a ^= (a >> 47); - uint64 b = (v ^ a) * mul; - b ^= (b >> 47); - b *= mul; - return b; -} - -static uint64 HashLen0to16(const char* s, std::size_t len) { - if (len >= 8) { - uint64 mul = k2 + len * 2; - uint64 a = Fetch64(s) + k2; - uint64 b = Fetch64(s + len - 8); - uint64 c = Rotate(b, 37) * mul + a; - uint64 d = (Rotate(a, 25) + b) * mul; - return HashLen16(c, d, mul); - } - if (len >= 4) { - uint64 mul = k2 + len * 2; - uint64 a = Fetch32(s); - return HashLen16(len + (a << 3), Fetch32(s + len - 4), mul); - } - if (len > 0) { - uint8 a = s[0]; - uint8 b = s[len >> 1]; - uint8 c = s[len - 1]; - uint32 y = static_cast(a) + (static_cast(b) << 8); - uint32 z = static_cast(len) + (static_cast(c) << 2); - return ShiftMix(y * k2 ^ z * k0) * k2; - } - return k2; -} - -// This probably works well for 16-byte strings as well, but it may be overkill -// in that case. -static uint64 HashLen17to32(const char* s, std::size_t len) { - uint64 mul = k2 + len * 2; - uint64 a = Fetch64(s) * k1; - uint64 b = Fetch64(s + 8); - uint64 c = Fetch64(s + len - 8) * mul; - uint64 d = Fetch64(s + len - 16) * k2; - return HashLen16(Rotate(a + b, 43) + Rotate(c, 30) + d, a + Rotate(b + k2, 18) + c, mul); -} - -// Return a 16-byte hash for 48 bytes. Quick and dirty. -// Callers do best to use "random-looking" values for a and b. -static pair WeakHashLen32WithSeeds(uint64 w, uint64 x, uint64 y, uint64 z, uint64 a, - uint64 b) { - a += w; - b = Rotate(b + a + z, 21); - uint64 c = a; - a += x; - a += y; - b += Rotate(a, 44); - return make_pair(a + z, b + c); -} - -// Return a 16-byte hash for s[0] ... s[31], a, and b. Quick and dirty. -static pair WeakHashLen32WithSeeds(const char* s, uint64 a, uint64 b) { - return WeakHashLen32WithSeeds(Fetch64(s), Fetch64(s + 8), Fetch64(s + 16), Fetch64(s + 24), a, - b); -} - -// Return an 8-byte hash for 33 to 64 bytes. -static uint64 HashLen33to64(const char* s, std::size_t len) { - uint64 mul = k2 + len * 2; - uint64 a = Fetch64(s) * k2; - uint64 b = Fetch64(s + 8); - uint64 c = Fetch64(s + len - 24); - uint64 d = Fetch64(s + len - 32); - uint64 e = Fetch64(s + 16) * k2; - uint64 f = Fetch64(s + 24) * 9; - uint64 g = Fetch64(s + len - 8); - uint64 h = Fetch64(s + len - 16) * mul; - uint64 u = Rotate(a + g, 43) + (Rotate(b, 30) + c) * 9; - uint64 v = ((a + g) ^ d) + f + 1; - uint64 w = Common::swap64((u + v) * mul) + h; - uint64 x = Rotate(e + f, 42) + c; - uint64 y = (Common::swap64((v + w) * mul) + g) * mul; - uint64 z = e + f + c; - a = Common::swap64((x + z) * mul + y) + b; - b = ShiftMix((z + a) * mul + d + h) * mul; - return b + x; -} - -uint64 CityHash64(const char* s, std::size_t len) { - if (len <= 32) { - if (len <= 16) { - return HashLen0to16(s, len); - } else { - return HashLen17to32(s, len); - } - } else if (len <= 64) { - return HashLen33to64(s, len); - } - - // For strings over 64 bytes we hash the end first, and then as we - // loop we keep 56 bytes of state: v, w, x, y, and z. - uint64 x = Fetch64(s + len - 40); - uint64 y = Fetch64(s + len - 16) + Fetch64(s + len - 56); - uint64 z = HashLen16(Fetch64(s + len - 48) + len, Fetch64(s + len - 24)); - pair v = WeakHashLen32WithSeeds(s + len - 64, len, z); - pair w = WeakHashLen32WithSeeds(s + len - 32, y + k1, x); - x = x * k1 + Fetch64(s); - - // Decrease len to the nearest multiple of 64, and operate on 64-byte chunks. - len = (len - 1) & ~static_cast(63); - do { - x = Rotate(x + y + v.first + Fetch64(s + 8), 37) * k1; - y = Rotate(y + v.second + Fetch64(s + 48), 42) * k1; - x ^= w.second; - y += v.first + Fetch64(s + 40); - z = Rotate(z + w.first, 33) * k1; - v = WeakHashLen32WithSeeds(s, v.second * k1, x + w.first); - w = WeakHashLen32WithSeeds(s + 32, z + w.second, y + Fetch64(s + 16)); - std::swap(z, x); - s += 64; - len -= 64; - } while (len != 0); - return HashLen16(HashLen16(v.first, w.first) + ShiftMix(y) * k1 + z, - HashLen16(v.second, w.second) + x); -} - -uint64 CityHash64WithSeed(const char* s, std::size_t len, uint64 seed) { - return CityHash64WithSeeds(s, len, k2, seed); -} - -uint64 CityHash64WithSeeds(const char* s, std::size_t len, uint64 seed0, uint64 seed1) { - return HashLen16(CityHash64(s, len) - seed0, seed1); -} - -// A subroutine for CityHash128(). Returns a decent 128-bit hash for strings -// of any length representable in signed long. Based on City and Murmur. -static uint128 CityMurmur(const char* s, std::size_t len, uint128 seed) { - uint64 a = Uint128Low64(seed); - uint64 b = Uint128High64(seed); - uint64 c = 0; - uint64 d = 0; - signed long l = static_cast(len) - 16; - if (l <= 0) { // len <= 16 - a = ShiftMix(a * k1) * k1; - c = b * k1 + HashLen0to16(s, len); - d = ShiftMix(a + (len >= 8 ? Fetch64(s) : c)); - } else { // len > 16 - c = HashLen16(Fetch64(s + len - 8) + k1, a); - d = HashLen16(b + len, c + Fetch64(s + len - 16)); - a += d; - do { - a ^= ShiftMix(Fetch64(s) * k1) * k1; - a *= k1; - b ^= a; - c ^= ShiftMix(Fetch64(s + 8) * k1) * k1; - c *= k1; - d ^= c; - s += 16; - l -= 16; - } while (l > 0); - } - a = HashLen16(a, c); - b = HashLen16(d, b); - return uint128(a ^ b, HashLen16(b, a)); -} - -uint128 CityHash128WithSeed(const char* s, std::size_t len, uint128 seed) { - if (len < 128) { - return CityMurmur(s, len, seed); - } - - // We expect len >= 128 to be the common case. Keep 56 bytes of state: - // v, w, x, y, and z. - pair v, w; - uint64 x = Uint128Low64(seed); - uint64 y = Uint128High64(seed); - uint64 z = len * k1; - v.first = Rotate(y ^ k1, 49) * k1 + Fetch64(s); - v.second = Rotate(v.first, 42) * k1 + Fetch64(s + 8); - w.first = Rotate(y + z, 35) * k1 + x; - w.second = Rotate(x + Fetch64(s + 88), 53) * k1; - - // This is the same inner loop as CityHash64(), manually unrolled. - do { - x = Rotate(x + y + v.first + Fetch64(s + 8), 37) * k1; - y = Rotate(y + v.second + Fetch64(s + 48), 42) * k1; - x ^= w.second; - y += v.first + Fetch64(s + 40); - z = Rotate(z + w.first, 33) * k1; - v = WeakHashLen32WithSeeds(s, v.second * k1, x + w.first); - w = WeakHashLen32WithSeeds(s + 32, z + w.second, y + Fetch64(s + 16)); - std::swap(z, x); - s += 64; - x = Rotate(x + y + v.first + Fetch64(s + 8), 37) * k1; - y = Rotate(y + v.second + Fetch64(s + 48), 42) * k1; - x ^= w.second; - y += v.first + Fetch64(s + 40); - z = Rotate(z + w.first, 33) * k1; - v = WeakHashLen32WithSeeds(s, v.second * k1, x + w.first); - w = WeakHashLen32WithSeeds(s + 32, z + w.second, y + Fetch64(s + 16)); - std::swap(z, x); - s += 64; - len -= 128; - } while (LIKELY(len >= 128)); - x += Rotate(v.first + z, 49) * k0; - y = y * k0 + Rotate(w.second, 37); - z = z * k0 + Rotate(w.first, 27); - w.first *= 9; - v.first *= k0; - // If 0 < len < 128, hash up to 4 chunks of 32 bytes each from the end of s. - for (std::size_t tail_done = 0; tail_done < len;) { - tail_done += 32; - y = Rotate(x + y, 42) * k0 + v.second; - w.first += Fetch64(s + len - tail_done + 16); - x = x * k0 + w.first; - z += w.second + Fetch64(s + len - tail_done); - w.second += v.first; - v = WeakHashLen32WithSeeds(s + len - tail_done, v.first + z, v.second); - v.first *= k0; - } - // At this point our 56 bytes of state should contain more than - // enough information for a strong 128-bit hash. We use two - // different 56-byte-to-8-byte hashes to get a 16-byte final result. - x = HashLen16(x, v.first); - y = HashLen16(y + z, w.first); - return uint128(HashLen16(x + v.second, w.second) + y, HashLen16(x + w.second, y + v.second)); -} - -uint128 CityHash128(const char* s, std::size_t len) { - return len >= 16 - ? CityHash128WithSeed(s + 16, len - 16, uint128(Fetch64(s), Fetch64(s + 8) + k0)) - : CityHash128WithSeed(s, len, uint128(k0, k1)); -} - -} // namespace CityHash \ No newline at end of file diff --git a/third_party/cityhash/include/cityhash.hpp b/third_party/cityhash/include/cityhash.hpp deleted file mode 100644 index c27bb887..00000000 --- a/third_party/cityhash/include/cityhash.hpp +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) 2011 Google, Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// 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 Software. -// -// THE SOFTWARE IS 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// -// CityHash, by Geoff Pike and Jyrki Alakuijala -// -// http://code.google.com/p/cityhash/ -// -// This file provides a few functions for hashing strings. All of them are -// high-quality functions in the sense that they pass standard tests such -// as Austin Appleby's SMHasher. They are also fast. -// -// For 64-bit x86 code, on short strings, we don't know of anything faster than -// CityHash64 that is of comparable quality. We believe our nearest competitor -// is Murmur3. For 64-bit x86 code, CityHash64 is an excellent choice for hash -// tables and most other hashing (excluding cryptography). -// -// For 64-bit x86 code, on long strings, the picture is more complicated. -// On many recent Intel CPUs, such as Nehalem, Westmere, Sandy Bridge, etc., -// CityHashCrc128 appears to be faster than all competitors of comparable -// quality. CityHash128 is also good but not quite as fast. We believe our -// nearest competitor is Bob Jenkins' Spooky. We don't have great data for -// other 64-bit CPUs, but for long strings we know that Spooky is slightly -// faster than CityHash on some relatively recent AMD x86-64 CPUs, for example. -// Note that CityHashCrc128 is declared in citycrc.h. -// -// For 32-bit x86 code, we don't know of anything faster than CityHash32 that -// is of comparable quality. We believe our nearest competitor is Murmur3A. -// (On 64-bit CPUs, it is typically faster to use the other CityHash variants.) -// -// Functions in the CityHash family are not suitable for cryptography. -// -// Please see CityHash's README file for more details on our performance -// measurements and so on. -// -// WARNING: This code has been only lightly tested on big-endian platforms! -// It is known to work well on little-endian platforms that have a small penalty -// for unaligned reads, such as current Intel and AMD moderate-to-high-end CPUs. -// It should work on all 32-bit and 64-bit platforms that allow unaligned reads; -// bug reports are welcome. -// -// By the way, for some hash functions, given strings a and b, the hash -// of a+b is easily derived from the hashes of a and b. This property -// doesn't hold for any hash functions in this file. - -#pragma once - -#include -#include -#include - -namespace CityHash { - -using uint128 = std::pair; - -[[nodiscard]] inline uint64_t Uint128Low64(const uint128& x) { - return x.first; -} -[[nodiscard]] inline uint64_t Uint128High64(const uint128& x) { - return x.second; -} - -// Hash function for a byte array. -[[nodiscard]] uint64_t CityHash64(const char* buf, std::size_t len); - -// Hash function for a byte array. For convenience, a 64-bit seed is also -// hashed into the result. -[[nodiscard]] uint64_t CityHash64WithSeed(const char* buf, std::size_t len, uint64_t seed); - -// Hash function for a byte array. For convenience, two seeds are also -// hashed into the result. -[[nodiscard]] uint64_t CityHash64WithSeeds(const char* buf, std::size_t len, uint64_t seed0, - uint64_t seed1); - -// Hash function for a byte array. -[[nodiscard]] uint128 CityHash128(const char* s, std::size_t len); - -// Hash function for a byte array. For convenience, a 128-bit seed is also -// hashed into the result. -[[nodiscard]] uint128 CityHash128WithSeed(const char* s, std::size_t len, uint128 seed); - -// Hash 128 input bits down to 64 bits of output. -// This is intended to be a reasonably good hash function. -[[nodiscard]] inline uint64_t Hash128to64(const uint128& x) { - // Murmur-inspired hashing. - const uint64_t kMul = 0x9ddfea08eb382d69ULL; - uint64_t a = (Uint128Low64(x) ^ Uint128High64(x)) * kMul; - a ^= (a >> 47); - uint64_t b = (Uint128High64(x) ^ a) * kMul; - b ^= (b >> 47); - b *= kMul; - return b; -} - -} // namespace CityHash \ No newline at end of file diff --git a/third_party/cmrc b/third_party/cmrc deleted file mode 160000 index 9a339644..00000000 --- a/third_party/cmrc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9a3396444e0478bd6f261075e74d1ecf70964029 diff --git a/third_party/cryptopp/CMakeLists.txt b/third_party/cryptopp/CMakeLists.txt deleted file mode 100644 index 9c410050..00000000 --- a/third_party/cryptopp/CMakeLists.txt +++ /dev/null @@ -1,450 +0,0 @@ -# A trimmed down version of the CMakeLists.txt from noloader/cryptopp-cmake -# The differences are: -# - removed support for legacy CMake versions -# - removed support for 32-bit -# - added prefix "CRYPTOPP_OPT_" to all option names -# - disabled testing -# - disabled installation -# - disabled documentation -# - configured to build a static library only -# - adds include directories to the library target - -cmake_minimum_required(VERSION 3.1) -if (POLICY CMP0048) - cmake_policy(SET CMP0048 NEW) -endif () -project(cryptopp VERSION 8.5.0) -if (POLICY CMP0054) - cmake_policy(SET CMP0054 NEW) -endif () - -set(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cryptopp) - -include(TestBigEndian) -include(GNUInstallDirs) -include(CheckCXXCompilerFlag) - -set(TEST_PROG_DIR ${SRC_DIR}/TestPrograms) -set(TEST_CXX_FILE ${TEST_PROG_DIR}/test_cxx.cxx) - -#============================================================================ -# Settable options -#============================================================================ - -option(CRYPTOPP_OPT_DISABLE_ASM "Disable ASM" OFF) -option(CRYPTOPP_OPT_DISABLE_SSSE3 "Disable SSSE3" OFF) -option(CRYPTOPP_OPT_DISABLE_SSE4 "Disable SSE4" OFF) -option(CRYPTOPP_OPT_DISABLE_AESNI "Disable AES-NI" OFF) -option(CRYPTOPP_OPT_DISABLE_SHA "Disable SHA" OFF) -option(CRYPTOPP_OPT_DISABLE_AVX "Disable AVX" OFF) -option(CRYPTOPP_OPT_DISABLE_AVX2 "Disable AVX2" OFF) - -#============================================================================ -# Compiler options -#============================================================================ - -# Only set when cross-compiling, http://www.vtk.org/Wiki/CMake_Cross_Compiling -if (NOT (CMAKE_SYSTEM_VERSION AND CMAKE_SYSTEM_PROCESSOR)) - set(CRYPTOPP_CROSS_COMPILE 1) -else() - set(CRYPTOPP_CROSS_COMPILE 0) -endif() - -set(CRYPTOPP_COMPILE_DEFINITIONS) -set(CRYPTOPP_COMPILE_OPTIONS) - -# Don't use RPATH's. The resulting binary could fail a security audit. -set(CMAKE_MACOSX_RPATH 0) - -if(CMAKE_CXX_COMPILER_ID MATCHES "Intel") - list(APPEND CRYPTOPP_COMPILE_OPTIONS -wd68 -wd186 -wd279 -wd327 -wd161 -wd3180) -endif() - -if(MSVC) - # Disable C4390: empty controlled statement found: is this the intent? - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4390") -endif() - -# Endianness -TEST_BIG_ENDIAN(IS_BIG_ENDIAN) -if(IS_BIG_ENDIAN) - add_definitions(-DIS_BIG_ENDIAN) -endif() - -if (CRYPTOPP_OPT_DISABLE_ASM) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_ASM) -endif () -if (CRYPTOPP_OPT_DISABLE_SSSE3) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_SSSE3) -endif () -if (CRYPTOPP_OPT_DISABLE_SSE4) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_SSSE4) -endif () -if (CRYPTOPP_OPT_DISABLE_CLMUL) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_CLMUL) -endif () -if (CRYPTOPP_OPT_DISABLE_AESNI) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_AESNI) -endif () -if (CRYPTOPP_OPT_DISABLE_RDRAND) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_RDRAND) -endif () -if (CRYPTOPP_OPT_DISABLE_RDSEED) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_RDSEED) -endif () -if (CRYPTOPP_OPT_DISABLE_AVX) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_AVX) -endif () -if (CRYPTOPP_OPT_DISABLE_AVX2) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_AVX2) -endif () -if (CRYPTOPP_OPT_DISABLE_SHA) - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS CRYPTOPP_DISABLE_SHA) -endif () - -# We need the output 'uname -s' for Unix and Linux system detection -if (NOT CRYPTOPP_CROSS_COMPILE) - set (UNAME_CMD "uname") - set (UNAME_ARG "-s") - execute_process(COMMAND ${UNAME_CMD} ${UNAME_ARG} - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} - RESULT_VARIABLE UNAME_RESULT - OUTPUT_VARIABLE UNAME_SYSTEM) - string(REGEX REPLACE "\n$" "" UNAME_SYSTEM "${UNAME_SYSTEM}") -endif() - -# We need the output 'uname -m' for Unix and Linux platform detection -if (NOT CRYPTOPP_CROSS_COMPILE) - set (UNAME_CMD "uname") - set (UNAME_ARG "-m") - execute_process(COMMAND ${UNAME_CMD} ${UNAME_ARG} - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} - RESULT_VARIABLE UNAME_RESULT - OUTPUT_VARIABLE UNAME_MACHINE) - string(REGEX REPLACE "\n$" "" UNAME_MACHINE "${UNAME_MACHINE}") -endif() - -############################################################################### - -# Try to find a Posix compatible grep and sed. Solaris, Digital Unix, -# Tru64, HP-UX and a few others need tweaking - -if (EXISTS /usr/xpg4/bin/grep) - set(GREP_CMD /usr/xpg4/bin/grep) -elseif (EXISTS /usr/gnu/bin/grep) - set(GREP_CMD /usr/gnu/bin/grep) -elseif (EXISTS /usr/linux/bin/grep) - set(GREP_CMD /usr/linux/bin/grep) -else () - set(GREP_CMD grep) -endif () - -if (EXISTS /usr/xpg4/bin/sed) - set(SED_CMD /usr/xpg4/bin/sed) -elseif (EXISTS /usr/gnu/bin/sed) - set(SED_CMD /usr/gnu/bin/sed) -elseif (EXISTS /usr/linux/bin/sed) - set(SED_CMD /usr/linux/bin/sed) -else () - set(SED_CMD sed) -endif () - -############################################################################### - -function(CheckCompileOption opt var) - CHECK_CXX_COMPILER_FLAG(${opt} ${var}) -endfunction(CheckCompileOption) - -function(CheckCompileLinkOption opt var prog) - - if (MSVC) - - # TODO: improve this... - CHECK_CXX_COMPILER_FLAG(${opt} ${var}) - - elseif (APPLE) - - message(STATUS "Performing Test ${var}") - try_compile(COMMAND_SUCCESS ${CMAKE_BINARY_DIR} ${prog} COMPILE_DEFINITIONS ${opt}) - if (COMMAND_SUCCESS) - set(${var} 1 PARENT_SCOPE) - message(STATUS "Performing Test ${var} - Success") - else () - set(${var} 0 PARENT_SCOPE) - message(STATUS "Performing Test ${var} - Failed") - endif () - - else () - - message(STATUS "Performing Test ${var}") - try_compile(COMMAND_SUCCESS ${CMAKE_BINARY_DIR} ${prog} COMPILE_DEFINITIONS ${opt}) - if (COMMAND_SUCCESS) - set(${var} 1 PARENT_SCOPE) - message(STATUS "Performing Test ${var} - Success") - else () - set(${var} 0 PARENT_SCOPE) - message(STATUS "Performing Test ${var} - Failed") - endif () - - endif () - -endfunction(CheckCompileLinkOption) - -function(AddCompileOption opt) - - if ("${COMMAND_OUTPUT}" NOT STREQUAL "") - list(APPEND CRYPTOPP_COMPILE_OPTIONS "${opt}") - endif () - -endfunction(AddCompileOption) - -############################################################################### - -function(DumpMachine output pattern) - - if (MSVC) - - # CMake does not provide a generic shell/terminal mechanism - # and Microsoft environments don't know what 'sh' is. - set(${output} 0 PARENT_SCOPE) - - else () - if(CMAKE_SYSTEM_PROCESSOR MATCHES ${pattern}) - set(${output} TRUE PARENT_SCOPE) - endif() - endif() - -endfunction(DumpMachine) - -# Thansk to Anonimal for MinGW; see http://github.com/weidai11/cryptopp/issues/466 -DumpMachine(CRYPTOPP_AMD64 "(x86_64|AMD64|amd64)") -DumpMachine(CRYPTOPP_I386 "(i.86)") -DumpMachine(CRYPTOPP_MINGW64 "(w64-mingw32)|(mingw64)") -DumpMachine(CRYPTOPP_ARMV8 "(armv8|aarch64)") - -############################################################################### - -if(MSVC) - if(CMAKE_SYSTEM_VERSION MATCHES "10\\.0.*") - list(APPEND CRYPTOPP_COMPILE_DEFINITIONS "_WIN32_WINNT=0x0A00") - endif() - list(APPEND CRYPTOPP_COMPILE_OPTIONS /FI winapifamily.h) -endif() - -# Enable PIC for all targets except Windows and 32-bit x86. -# Avoid on 32-bit x86 due to register pressures. -if ((NOT CRYPTOPP_CROSS_COMPILE) AND (NOT (WINDOWS OR WINDOWS_STORE OR WINDOWS_PHONE))) - # Use Regex; match i386, i486, i586 and i686 - if (NOT (${UNAME_MACHINE} MATCHES "i.86")) - SET(CMAKE_POSITION_INDEPENDENT_CODE 1) - endif() -endif() - -# Link is driven through the compiler, but CXXFLAGS are not used. Also see -# http://public.kitware.com/pipermail/cmake/2003-June/003967.html -if (NOT (WINDOWS OR WINDOWS_STORE OR WINDOWS_PHONE)) - SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_FLAGS}") -endif() - -#============================================================================ -# Sources & headers -#============================================================================ - -# Library headers -file(GLOB cryptopp_HEADERS ${SRC_DIR}/*.h) - -# Remove headers used to build test suite -list(REMOVE_ITEM cryptopp_HEADERS - ${SRC_DIR}/bench.h - ${SRC_DIR}/validate.h - ) - -# Library sources. -# These have been trimmed to include only things Citra uses. This speeds up -# compiles and reduces the amount of compilation breakage. -set(cryptopp_SOURCES - # The Crypto++ readme says you should put these 3 object files first, - # to avoid "problems associated with C++ static initialization order", - # but doesn't actually tell what could go wrong. Better safe than sorry - # I guess... - ${SRC_DIR}/cryptlib.cpp - ${SRC_DIR}/cpu.cpp - ${SRC_DIR}/integer.cpp - - ${SRC_DIR}/algparam.cpp - ${SRC_DIR}/allocate.cpp - ${SRC_DIR}/asn.cpp - ${SRC_DIR}/authenc.cpp - ${SRC_DIR}/base64.cpp - ${SRC_DIR}/basecode.cpp - ${SRC_DIR}/ccm.cpp - ${SRC_DIR}/crc_simd.cpp - ${SRC_DIR}/des.cpp - ${SRC_DIR}/dessp.cpp - ${SRC_DIR}/dll.cpp - ${SRC_DIR}/ec2n.cpp - ${SRC_DIR}/ecp.cpp - ${SRC_DIR}/filters.cpp - ${SRC_DIR}/fips140.cpp - ${SRC_DIR}/gcm_simd.cpp - ${SRC_DIR}/gf2n_simd.cpp - ${SRC_DIR}/gf2n.cpp - ${SRC_DIR}/gfpcrypt.cpp - ${SRC_DIR}/hex.cpp - ${SRC_DIR}/hmac.cpp - ${SRC_DIR}/hrtimer.cpp - ${SRC_DIR}/iterhash.cpp - ${SRC_DIR}/md5.cpp - ${SRC_DIR}/misc.cpp - ${SRC_DIR}/modes.cpp - ${SRC_DIR}/mqueue.cpp - ${SRC_DIR}/nbtheory.cpp - ${SRC_DIR}/neon_simd.cpp - ${SRC_DIR}/oaep.cpp - ${SRC_DIR}/osrng.cpp - ${SRC_DIR}/power7_ppc.cpp - ${SRC_DIR}/power8_ppc.cpp - ${SRC_DIR}/power9_ppc.cpp - ${SRC_DIR}/ppc_simd.cpp - ${SRC_DIR}/pubkey.cpp - ${SRC_DIR}/queue.cpp - ${SRC_DIR}/randpool.cpp - ${SRC_DIR}/rdtables.cpp - ${SRC_DIR}/rijndael_simd.cpp - ${SRC_DIR}/rijndael.cpp - ${SRC_DIR}/rng.cpp - ${SRC_DIR}/sha_simd.cpp - ${SRC_DIR}/sha.cpp - ${SRC_DIR}/sse_simd.cpp - ) - -if(ANDROID) - include_directories(${ANDROID_NDK}/sources/android/cpufeatures) - list(APPEND cryptopp_SOURCES ${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c) -endif() - -set(cryptopp_SOURCES_ASM) - -if (MSVC AND NOT DISABLE_ASM) - if (${CMAKE_GENERATOR} MATCHES ".*ARM") - message(STATUS "Disabling ASM because ARM is specified as target platform.") - else () - enable_language(ASM_MASM) - list(APPEND cryptopp_SOURCES_ASM - ${SRC_DIR}/rdrand.asm - ${SRC_DIR}/rdseed.asm - ) - if (CMAKE_SIZEOF_VOID_P EQUAL 8) - list(APPEND cryptopp_SOURCES_ASM - ${SRC_DIR}/x64dll.asm - ${SRC_DIR}/x64masm.asm - ) - set_source_files_properties(${cryptopp_SOURCES_ASM} PROPERTIES COMPILE_DEFINITIONS "_M_X64") - else () - set_source_files_properties(${cryptopp_SOURCES_ASM} PROPERTIES COMPILE_DEFINITIONS "_M_X86" COMPILE_FLAGS "/safeseh") - endif () - set_source_files_properties(${cryptopp_SOURCES_ASM} PROPERTIES LANGUAGE ASM_MASM) - endif () -endif () - -#============================================================================ -# Architecture flags -#============================================================================ - -if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Intel" OR CMAKE_CXX_COMPILER MATCHES "xlC") - - if (CRYPTOPP_AMD64 OR CRYPTOPP_I386) - CheckCompileLinkOption("-msse2" CRYPTOPP_IA32_SSE2 - "${TEST_PROG_DIR}/test_x86_sse2.cpp") - CheckCompileLinkOption("-mssse3" CRYPTOPP_IA32_SSSE3 - "${TEST_PROG_DIR}/test_x86_ssse3.cpp") - CheckCompileLinkOption("-msse4.1" CRYPTOPP_IA32_SSE41 - "${TEST_PROG_DIR}/test_x86_sse41.cpp") - CheckCompileLinkOption("-msse4.2" CRYPTOPP_IA32_SSE42 - "${TEST_PROG_DIR}/test_x86_sse42.cpp") - CheckCompileLinkOption("-mssse3 -mpclmul" CRYPTOPP_IA32_CLMUL - "${TEST_PROG_DIR}/test_x86_clmul.cpp") - CheckCompileLinkOption("-msse4.1 -maes" CRYPTOPP_IA32_AES - "${TEST_PROG_DIR}/test_x86_aes.cpp") - CheckCompileLinkOption("-mavx" CRYPTOPP_IA32_AVX - "${TEST_PROG_DIR}/test_x86_avx.cpp") - CheckCompileLinkOption("-mavx2" CRYPTOPP_IA32_AVX2 - "${TEST_PROG_DIR}/test_x86_avx2.cpp") - CheckCompileLinkOption("-msse4.2 -msha" CRYPTOPP_IA32_SHA - "${TEST_PROG_DIR}/test_x86_sha.cpp") - if (EXISTS "${TEST_PROG_DIR}/test_asm_mixed.cpp") - CheckCompileLinkOption("" CRYPTOPP_MIXED_ASM - "${TEST_PROG_DIR}/test_asm_mixed.cpp") - else () - CheckCompileLinkOption("" CRYPTOPP_MIXED_ASM - "${TEST_PROG_DIR}/test_mixed_asm.cpp") - endif () - - if (NOT CRYPTOPP_MIXED_ASM) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_MIXED_ASM") - endif () - - if (NOT CRYPTOPP_IA32_SSE2 AND NOT CRYPTOPP_DISABLE_ASM) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_ASM") - elseif (CRYPTOPP_IA32_SSE2 AND NOT CRYPTOPP_DISABLE_ASM) - set_source_files_properties(${SRC_DIR}/sse_simd.cpp PROPERTIES COMPILE_FLAGS "-msse2") - endif () - if (NOT CRYPTOPP_IA32_SSSE3 AND NOT CRYPTOPP_DISABLE_SSSE3) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_SSSE3") - elseif (CRYPTOPP_IA32_SSSE3 AND NOT CRYPTOPP_DISABLE_SSSE3) - if (NOT CRYPTOPP_IA32_SSE41 AND NOT CRYPTOPP_DISABLE_SSE4) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_SSE4") - endif () - if (NOT CRYPTOPP_IA32_SSE42 AND NOT CRYPTOPP_DISABLE_SSE4) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_SSE4") - elseif (CRYPTOPP_IA32_SSE42 AND NOT CRYPTOPP_DISABLE_SSE4) - set_source_files_properties(${SRC_DIR}/crc_simd.cpp PROPERTIES COMPILE_FLAGS "-msse4.2 -mcrc32") - if (NOT CRYPTOPP_IA32_CLMUL AND NOT CRYPTOPP_DISABLE_CLMUL) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_CLMUL") - elseif (CRYPTOPP_IA32_CLMUL AND NOT CRYPTOPP_DISABLE_CLMUL) - set_source_files_properties(${SRC_DIR}/gcm_simd.cpp PROPERTIES COMPILE_FLAGS "-mssse3 -mpclmul") - set_source_files_properties(${SRC_DIR}/gf2n_simd.cpp PROPERTIES COMPILE_FLAGS "-mpclmul") - endif () - if (NOT CRYPTOPP_IA32_AES AND NOT CRYPTOPP_DISABLE_AES) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_AESNI") - elseif (CRYPTOPP_IA32_AES AND NOT CRYPTOPP_DISABLE_AES) - set_source_files_properties(${SRC_DIR}/rijndael_simd.cpp PROPERTIES COMPILE_FLAGS "-msse4.1 -maes") - endif () - if (NOT CRYPTOPP_IA32_AVX2 AND NOT CRYPTOPP_DISABLE_AVX2) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_AVX2") - endif () - if (NOT CRYPTOPP_IA32_SHA AND NOT CRYPTOPP_DISABLE_SHA) - list(APPEND CRYPTOPP_COMPILE_OPTIONS "-DCRYPTOPP_DISABLE_SHANI") - elseif (CRYPTOPP_IA32_SHA AND NOT CRYPTOPP_DISABLE_SHA) - set_source_files_properties(${SRC_DIR}/sha_simd.cpp PROPERTIES COMPILE_FLAGS "-msse4.2 -msha") - endif () - endif () - endif () - endif () -endif () - -#============================================================================ -# Compile targets -#============================================================================ - -set(cryptopp_LIBRARY_SOURCES ${cryptopp_SOURCES_ASM}) -list(APPEND cryptopp_LIBRARY_SOURCES ${cryptopp_SOURCES}) - -add_library(cryptopp STATIC ${cryptopp_LIBRARY_SOURCES}) -target_compile_definitions(cryptopp PUBLIC ${CRYPTOPP_COMPILE_DEFINITIONS}) -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}") -target_include_directories(cryptopp INTERFACE .) - -#============================================================================ -# Third-party libraries -#============================================================================ - -find_package(Threads) -target_link_libraries(cryptopp PRIVATE ${CMAKE_THREAD_LIBS_INIT}) - -if(ANDROID) - include_directories(${ANDROID_NDK}/sources/android/cpufeatures) - add_library(cpufeatures ${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c) - target_link_libraries(cpufeatures dl) - target_link_libraries(cryptopp PRIVATE cpufeatures) -endif() diff --git a/third_party/cryptopp/cryptopp b/third_party/cryptopp/cryptopp deleted file mode 160000 index cb6804da..00000000 --- a/third_party/cryptopp/cryptopp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit cb6804da176377ea0e2fa73da19d56b7ee752a3e diff --git a/third_party/discord-rpc b/third_party/discord-rpc deleted file mode 160000 index 963aa9f3..00000000 --- a/third_party/discord-rpc +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 963aa9f3e5ce81a4682c6ca3d136cddda614db33 diff --git a/third_party/duckstation/duckstation_compat.h b/third_party/duckstation/duckstation_compat.h deleted file mode 100644 index dd504c4f..00000000 --- a/third_party/duckstation/duckstation_compat.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef DUCKSTATION_COMPAT_H -#define DUCKSTATION_COMPAT_H - -#include - -#include "compiler_builtins.hpp" -#include "helpers.hpp" - -#define AssertMsg(cond, msg) assert(cond&& msg) -#define Assert(cond) assert(cond) - -#define Panic(msg) assert(false && msg) - -#define UnreachableCode() __builtin_unreachable() - -#endif \ No newline at end of file diff --git a/third_party/duckstation/duckstation_log.h b/third_party/duckstation/duckstation_log.h deleted file mode 100644 index a945bb35..00000000 --- a/third_party/duckstation/duckstation_log.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef LOG_H -#define LOG_H - -#include - -#define Log_SetChannel(ChannelName) -#define Log_ErrorPrint(msg) puts(msg "\n"); -#define Log_ErrorPrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) -#define Log_WarningPrint(msg) puts(msg) -#define Log_WarningPrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) -#define Log_PerfPrint(msg) puts(msg) -#define Log_PerfPrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) -#define Log_InfoPrint(msg) puts(msg) -#define Log_InfoPrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) -#define Log_VerbosePrint(msg) puts(msg) -#define Log_VerbosePrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) -#define Log_DevPrint(msg) puts(msg) -#define Log_DevPrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) -#define Log_ProfilePrint(msg) puts(msg) -#define Log_ProfilePrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) - -#ifdef _DEBUG -#define Log_DebugPrint(msg) puts(msg) -#define Log_DebugPrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) -#define Log_TracePrint(msg) puts(msg) -#define Log_TracePrintf(...) do { printf(__VA_ARGS__); putchar('\n'); } while (0) -#else -#define Log_DebugPrint(msg) \ - do \ - { \ - } while (0) -#define Log_DebugPrintf(...) \ - do \ - { \ - } while (0) -#define Log_TracePrint(msg) \ - do \ - { \ - } while (0) -#define Log_TracePrintf(...) \ - do \ - { \ - } while (0) -#endif - -#endif \ No newline at end of file diff --git a/third_party/duckstation/duckstation_scoped_guard.h b/third_party/duckstation/duckstation_scoped_guard.h deleted file mode 100644 index 89f35d92..00000000 --- a/third_party/duckstation/duckstation_scoped_guard.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once -#include -#include - -/// ScopedGuard provides an object which runs a function (usually a lambda) when -/// it goes out of scope. This can be useful for releasing resources or handles -/// which do not normally have C++ types to automatically release. -template -class ScopedGuard final -{ -public: - ALWAYS_INLINE ScopedGuard(T&& func) : m_func(std::forward(func)) {} - ALWAYS_INLINE ScopedGuard(ScopedGuard&& other) : m_func(std::move(other.m_func)) { other.m_func = nullptr; } - ALWAYS_INLINE ~ScopedGuard() { Invoke(); } - - ScopedGuard(const ScopedGuard&) = delete; - void operator=(const ScopedGuard&) = delete; - - /// Prevents the function from being invoked when we go out of scope. - ALWAYS_INLINE void Cancel() { m_func.reset(); } - - /// Explicitly fires the function. - ALWAYS_INLINE void Invoke() - { - if (!m_func.has_value()) - return; - - m_func.value()(); - m_func.reset(); - } - -private: - std::optional m_func; -}; diff --git a/third_party/duckstation/gl/context.cpp b/third_party/duckstation/gl/context.cpp deleted file mode 100644 index 69401bd9..00000000 --- a/third_party/duckstation/gl/context.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include "context.h" -#include "duckstation_log.h" -#include "loader.h" -#include -#include -#ifdef __APPLE__ -#include -#else -#include -#endif -Log_SetChannel(GL::Context); - -#if defined(_WIN32) -#include "context_wgl.h" -#elif defined(__APPLE__) -#include "context_agl.h" -#else -#ifdef WAYLAND_ENABLED -#include "context_egl_wayland.h" -#endif -#include "context_egl_x11.h" -#include "context_glx.h" -#endif - -namespace GL { - -static bool ShouldPreferESContext() -{ -#ifndef _MSC_VER - const char* value = std::getenv("PREFER_GLES_CONTEXT"); - return (value && strcmp(value, "1") == 0); -#else - char buffer[2] = {}; - size_t buffer_size = sizeof(buffer); - getenv_s(&buffer_size, buffer, "PREFER_GLES_CONTEXT"); - return (std::strcmp(buffer, "1") == 0); -#endif -} - -Context::Context(const WindowInfo& wi) : m_wi(wi) {} - -Context::~Context() = default; - -std::vector Context::EnumerateFullscreenModes() -{ - return {}; -} - -std::unique_ptr Context::Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try) -{ - if (ShouldPreferESContext()) - { - // move ES versions to the front - Version* new_versions_to_try = static_cast(alloca(sizeof(Version) * num_versions_to_try)); - size_t count = 0; - for (size_t i = 0; i < num_versions_to_try; i++) - { - if (versions_to_try[i].profile == Profile::ES) - new_versions_to_try[count++] = versions_to_try[i]; - } - for (size_t i = 0; i < num_versions_to_try; i++) - { - if (versions_to_try[i].profile != Profile::ES) - new_versions_to_try[count++] = versions_to_try[i]; - } - versions_to_try = new_versions_to_try; - } - - std::unique_ptr context; -#if defined(_WIN32) - context = ContextWGL::Create(wi, versions_to_try, num_versions_to_try); -#elif defined(__APPLE__) - context = ContextAGL::Create(wi, versions_to_try, num_versions_to_try); -#else - if (wi.type == WindowInfo::Type::X11) - { - const char* use_egl_x11 = std::getenv("USE_EGL_X11"); - if (use_egl_x11 && std::strcmp(use_egl_x11, "1") == 0) - context = ContextEGLX11::Create(wi, versions_to_try, num_versions_to_try); - else - context = ContextGLX::Create(wi, versions_to_try, num_versions_to_try); - } - -#ifdef WAYLAND_ENABLED - if (wi.type == WindowInfo::Type::Wayland) - context = ContextEGLWayland::Create(wi, versions_to_try, num_versions_to_try); -#endif -#endif - - if (!context) - return nullptr; - - Log_InfoPrintf("Created a %s context", context->IsGLES() ? "OpenGL ES" : "OpenGL"); - - // TODO: Not thread-safe. - static Context* context_being_created; - context_being_created = context.get(); - - if (!gladLoadGLLoader([](const char* name) { return context_being_created->GetProcAddress(name); })) - { - Log_ErrorPrintf("Failed to load GL functions for GLAD"); - return nullptr; - } - - const char* gl_vendor = reinterpret_cast(glGetString(GL_VENDOR)); - const char* gl_renderer = reinterpret_cast(glGetString(GL_RENDERER)); - const char* gl_version = reinterpret_cast(glGetString(GL_VERSION)); - const char* gl_shading_language_version = reinterpret_cast(glGetString(GL_SHADING_LANGUAGE_VERSION)); - Log_InfoPrintf("GL_VENDOR: %s", gl_vendor); - Log_InfoPrintf("GL_RENDERER: %s", gl_renderer); - Log_InfoPrintf("GL_VERSION: %s", gl_version); - Log_InfoPrintf("GL_SHADING_LANGUAGE_VERSION: %s", gl_shading_language_version); - - return context; -} - -const std::array& Context::GetAllDesktopVersionsList() -{ - static constexpr std::array vlist = {{{Profile::Core, 4, 6}, - {Profile::Core, 4, 5}, - {Profile::Core, 4, 4}, - {Profile::Core, 4, 3}, - {Profile::Core, 4, 2}, - {Profile::Core, 4, 1}, - {Profile::Core, 4, 0}, - {Profile::Core, 3, 3}, - {Profile::Core, 3, 2}, - {Profile::Core, 3, 1}, - {Profile::Core, 3, 0}}}; - return vlist; -} - -const std::array& Context::GetAllDesktopVersionsListWithFallback() -{ - static constexpr std::array vlist = {{{Profile::Core, 4, 6}, - {Profile::Core, 4, 5}, - {Profile::Core, 4, 4}, - {Profile::Core, 4, 3}, - {Profile::Core, 4, 2}, - {Profile::Core, 4, 1}, - {Profile::Core, 4, 0}, - {Profile::Core, 3, 3}, - {Profile::Core, 3, 2}, - {Profile::Core, 3, 1}, - {Profile::Core, 3, 0}, - {Profile::NoProfile, 0, 0}}}; - return vlist; -} - -const std::array& Context::GetAllESVersionsList() -{ - static constexpr std::array vlist = { - {{Profile::ES, 3, 2}, {Profile::ES, 3, 1}, {Profile::ES, 3, 0}, {Profile::ES, 2, 0}}}; - return vlist; -} - -const std::array& Context::GetAllVersionsList() -{ - static constexpr std::array vlist = {{{Profile::Core, 4, 6}, - {Profile::Core, 4, 5}, - {Profile::Core, 4, 4}, - {Profile::Core, 4, 3}, - {Profile::Core, 4, 2}, - {Profile::Core, 4, 1}, - {Profile::Core, 4, 0}, - {Profile::Core, 3, 3}, - {Profile::Core, 3, 2}, - {Profile::Core, 3, 1}, - {Profile::Core, 3, 0}, - {Profile::ES, 3, 2}, - {Profile::ES, 3, 1}, - {Profile::ES, 3, 0}, - {Profile::ES, 2, 0}, - {Profile::NoProfile, 0, 0}}}; - return vlist; -} - -} // namespace GL diff --git a/third_party/duckstation/gl/context.h b/third_party/duckstation/gl/context.h deleted file mode 100644 index 5d93b0a6..00000000 --- a/third_party/duckstation/gl/context.h +++ /dev/null @@ -1,76 +0,0 @@ -#pragma once -#include "duckstation_compat.h" -#include "window_info.h" -#include -#include -#include - -namespace GL { -class Context -{ -public: - Context(const WindowInfo& wi); - virtual ~Context(); - - enum class Profile - { - NoProfile, - Core, - ES - }; - - struct Version - { - Profile profile; - int major_version; - int minor_version; - }; - - struct FullscreenModeInfo - { - u32 width; - u32 height; - float refresh_rate; - }; - - ALWAYS_INLINE const WindowInfo& GetWindowInfo() const { return m_wi; } - ALWAYS_INLINE bool IsGLES() const { return (m_version.profile == Profile::ES); } - ALWAYS_INLINE u32 GetSurfaceWidth() const { return m_wi.surface_width; } - ALWAYS_INLINE u32 GetSurfaceHeight() const { return m_wi.surface_height; } - ALWAYS_INLINE WindowInfo::SurfaceFormat GetSurfaceFormat() const { return m_wi.surface_format; } - - virtual void* GetProcAddress(const char* name) = 0; - virtual bool ChangeSurface(const WindowInfo& new_wi) = 0; - virtual void ResizeSurface(u32 new_surface_width = 0, u32 new_surface_height = 0) = 0; - virtual bool SwapBuffers() = 0; - virtual bool MakeCurrent() = 0; - virtual bool DoneCurrent() = 0; - virtual bool SetSwapInterval(s32 interval) = 0; - virtual std::unique_ptr CreateSharedContext(const WindowInfo& wi) = 0; - - virtual std::vector EnumerateFullscreenModes(); - - static std::unique_ptr Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try); - - template - static std::unique_ptr Create(const WindowInfo& wi, const std::array& versions_to_try) - { - return Create(wi, versions_to_try.data(), versions_to_try.size()); - } - - static std::unique_ptr Create(const WindowInfo& wi) { return Create(wi, GetAllVersionsList()); } - - static const std::array& GetAllDesktopVersionsList(); - static const std::array& GetAllDesktopVersionsListWithFallback(); - static const std::array& GetAllESVersionsList(); - static const std::array& GetAllVersionsList(); - -protected: -#ifdef _WIN32 -#endif - - WindowInfo m_wi; - Version m_version = {}; -}; -} // namespace GL diff --git a/third_party/duckstation/gl/context_agl.h b/third_party/duckstation/gl/context_agl.h deleted file mode 100644 index 459bf2fd..00000000 --- a/third_party/duckstation/gl/context_agl.h +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once -#include "context.h" -#include "loader.h" - -#if defined(__APPLE__) && defined(__OBJC__) -#import -#else -struct NSOpenGLContext; -struct NSOpenGLPixelFormat; -struct NSView; -#define __bridge -#endif - -namespace GL { - -class ContextAGL final : public Context -{ -public: - ContextAGL(const WindowInfo& wi); - ~ContextAGL() override; - - static std::unique_ptr Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try); - - void* GetProcAddress(const char* name) override; - bool ChangeSurface(const WindowInfo& new_wi) override; - void ResizeSurface(u32 new_surface_width = 0, u32 new_surface_height = 0) override; - bool SwapBuffers() override; - bool MakeCurrent() override; - bool DoneCurrent() override; - bool SetSwapInterval(s32 interval) override; - std::unique_ptr CreateSharedContext(const WindowInfo& wi) override; - -private: - ALWAYS_INLINE NSView* GetView() const { return static_cast((__bridge NSView*)m_wi.window_handle); } - - bool Initialize(const Version* versions_to_try, size_t num_versions_to_try); - bool CreateContext(NSOpenGLContext* share_context, int profile, bool make_current); - void BindContextToView(); - - // returns true if dimensions have changed - bool UpdateDimensions(); - - NSOpenGLContext* m_context = nullptr; - NSOpenGLPixelFormat* m_pixel_format = nullptr; - void* m_opengl_module_handle = nullptr; -}; - -} // namespace GL diff --git a/third_party/duckstation/gl/context_agl.mm b/third_party/duckstation/gl/context_agl.mm deleted file mode 100644 index 9477e3a9..00000000 --- a/third_party/duckstation/gl/context_agl.mm +++ /dev/null @@ -1,214 +0,0 @@ -#include "context_agl.h" -#include "duckstation_compat.h" -#include "duckstation_log.h" -#include "loader.h" -#include -Log_SetChannel(GL::ContextAGL); - -namespace GL { -ContextAGL::ContextAGL(const WindowInfo& wi) : Context(wi) -{ - m_opengl_module_handle = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_NOW); - if (!m_opengl_module_handle) - Log_ErrorPrint("Could not open OpenGL.framework, function lookups will probably fail"); -} - -ContextAGL::~ContextAGL() -{ - if ([NSOpenGLContext currentContext] == m_context) - [NSOpenGLContext clearCurrentContext]; - - if (m_context) - [m_context release]; - - if (m_pixel_format) - [m_pixel_format release]; - - if (m_opengl_module_handle) - dlclose(m_opengl_module_handle); -} - -std::unique_ptr ContextAGL::Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try) -{ - std::unique_ptr context = std::make_unique(wi); - if (!context->Initialize(versions_to_try, num_versions_to_try)) - return nullptr; - - return context; -} - -bool ContextAGL::Initialize(const Version* versions_to_try, size_t num_versions_to_try) -{ - for (size_t i = 0; i < num_versions_to_try; i++) - { - const Version& cv = versions_to_try[i]; - if (cv.profile == Profile::NoProfile && CreateContext(nullptr, NSOpenGLProfileVersionLegacy, true)) - { - // we already have the dummy context, so just use that - m_version = cv; - return true; - } - else if (cv.profile == Profile::Core) - { - if (cv.major_version > 4 && cv.minor_version > 1) - continue; - - const NSOpenGLPixelFormatAttribute profile = (cv.major_version > 3 || cv.minor_version > 2) ? NSOpenGLProfileVersion4_1Core : NSOpenGLProfileVersion3_2Core; - if (CreateContext(nullptr, static_cast(profile), true)) - { - m_version = cv; - return true; - } - } - } - - return false; -} - -void* ContextAGL::GetProcAddress(const char* name) -{ - void* addr = m_opengl_module_handle ? dlsym(m_opengl_module_handle, name) : nullptr; - if (addr) - return addr; - - return dlsym(RTLD_NEXT, name); -} - -bool ContextAGL::ChangeSurface(const WindowInfo& new_wi) -{ - m_wi = new_wi; - BindContextToView(); - return true; -} - -void ContextAGL::ResizeSurface(u32 new_surface_width /*= 0*/, u32 new_surface_height /*= 0*/) -{ - UpdateDimensions(); -} - -bool ContextAGL::UpdateDimensions() -{ - const NSSize window_size = [GetView() frame].size; - const CGFloat window_scale = [[GetView() window] backingScaleFactor]; - const u32 new_width = static_cast(static_cast(window_size.width) * window_scale); - const u32 new_height = static_cast(static_cast(window_size.height) * window_scale); - - if (m_wi.surface_width == new_width && m_wi.surface_height == new_height) - return false; - - m_wi.surface_width = new_width; - m_wi.surface_height = new_height; - - dispatch_block_t block = ^{ - [m_context update]; - }; - - if ([NSThread isMainThread]) - block(); - else - dispatch_sync(dispatch_get_main_queue(), block); - - return true; -} - -bool ContextAGL::SwapBuffers() -{ - [m_context flushBuffer]; - return true; -} - -bool ContextAGL::MakeCurrent() -{ - [m_context makeCurrentContext]; - return true; -} - -bool ContextAGL::DoneCurrent() -{ - [NSOpenGLContext clearCurrentContext]; - return true; -} - -bool ContextAGL::SetSwapInterval(s32 interval) -{ - GLint gl_interval = static_cast(interval); - [m_context setValues:&gl_interval forParameter:NSOpenGLCPSwapInterval]; - return true; -} - -std::unique_ptr ContextAGL::CreateSharedContext(const WindowInfo& wi) -{ - std::unique_ptr context = std::make_unique(wi); - - context->m_context = [[NSOpenGLContext alloc] initWithFormat:m_pixel_format shareContext:m_context]; - if (context->m_context == nil) - return nullptr; - - context->m_version = m_version; - context->m_pixel_format = m_pixel_format; - [context->m_pixel_format retain]; - - if (wi.type == WindowInfo::Type::MacOS) - context->BindContextToView(); - - return context; -} - -bool ContextAGL::CreateContext(NSOpenGLContext* share_context, int profile, bool make_current) -{ - if (m_context) - { - [m_context release]; - m_context = nullptr; - } - - if (m_pixel_format) - [m_pixel_format release]; - - const std::array attribs = {{ - NSOpenGLPFADoubleBuffer, - NSOpenGLPFAOpenGLProfile, - static_cast(profile), - NSOpenGLPFAAccelerated, - 0}}; - m_pixel_format = [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs.data()]; - if (m_pixel_format == nil) - { - Log_ErrorPrintf("Failed to initialize pixel format"); - return false; - } - - m_context = [[NSOpenGLContext alloc] initWithFormat:m_pixel_format shareContext:nil]; - if (m_context == nil) - return false; - - if (m_wi.type == WindowInfo::Type::MacOS) - BindContextToView(); - - if (make_current) - [m_context makeCurrentContext]; - - return true; -} - -void ContextAGL::BindContextToView() -{ - NSView* const view = GetView(); - NSWindow* const window = [view window]; - [view setWantsBestResolutionOpenGLSurface:YES]; - - UpdateDimensions(); - - dispatch_block_t block = ^{ - [window makeFirstResponder:view]; - [m_context setView:view]; - [window makeKeyAndOrderFront:nil]; - }; - - if ([NSThread isMainThread]) - block(); - else - dispatch_sync(dispatch_get_main_queue(), block); -} -} // namespace GL diff --git a/third_party/duckstation/gl/context_egl.cpp b/third_party/duckstation/gl/context_egl.cpp deleted file mode 100644 index 566245b9..00000000 --- a/third_party/duckstation/gl/context_egl.cpp +++ /dev/null @@ -1,432 +0,0 @@ -#include "context_egl.h" -#include "duckstation_log.h" -#include "duckstation_compat.h" -#include -#include -#include -Log_SetChannel(GL::ContextEGL); - -namespace GL { -ContextEGL::ContextEGL(const WindowInfo& wi) : Context(wi) {} - -ContextEGL::~ContextEGL() -{ - DestroySurface(); - DestroyContext(); -} - -std::unique_ptr ContextEGL::Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try) -{ - std::unique_ptr context = std::make_unique(wi); - if (!context->Initialize(versions_to_try, num_versions_to_try)) - return nullptr; - - return context; -} - -bool ContextEGL::Initialize(const Version* versions_to_try, size_t num_versions_to_try) -{ - if (!gladLoadEGL()) - { - Log_ErrorPrintf("Loading GLAD EGL functions failed"); - return false; - } - - if (!SetDisplay()) - return false; - - int egl_major, egl_minor; - if (!eglInitialize(m_display, &egl_major, &egl_minor)) - { - Log_ErrorPrintf("eglInitialize() failed: %d", eglGetError()); - return false; - } - Log_InfoPrintf("EGL Version: %d.%d", egl_major, egl_minor); - - const char* extensions = eglQueryString(m_display, EGL_EXTENSIONS); - if (extensions) - { - Log_InfoPrintf("EGL Extensions: %s", extensions); - m_supports_surfaceless = std::strstr(extensions, "EGL_KHR_surfaceless_context") != nullptr; - } - if (!m_supports_surfaceless) - Log_WarningPrint("EGL implementation does not support surfaceless contexts, emulating with pbuffers"); - - for (size_t i = 0; i < num_versions_to_try; i++) - { - if (CreateContextAndSurface(versions_to_try[i], nullptr, true)) - return true; - } - - return false; -} - -bool ContextEGL::SetDisplay() -{ - m_display = eglGetDisplay(static_cast(m_wi.display_connection)); - if (!m_display) - { - Log_ErrorPrintf("eglGetDisplay() failed: %d", eglGetError()); - return false; - } - - return true; -} - -void* ContextEGL::GetProcAddress(const char* name) -{ - return reinterpret_cast(eglGetProcAddress(name)); -} - -bool ContextEGL::ChangeSurface(const WindowInfo& new_wi) -{ - const bool was_current = (eglGetCurrentContext() == m_context); - if (was_current) - eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); - - if (m_surface != EGL_NO_SURFACE) - { - eglDestroySurface(m_display, m_surface); - m_surface = EGL_NO_SURFACE; - } - - m_wi = new_wi; - if (!CreateSurface()) - return false; - - if (was_current && !eglMakeCurrent(m_display, m_surface, m_surface, m_context)) - { - Log_ErrorPrintf("Failed to make context current again after surface change"); - return false; - } - - return true; -} - -void ContextEGL::ResizeSurface(u32 new_surface_width /*= 0*/, u32 new_surface_height /*= 0*/) -{ - if (new_surface_width == 0 && new_surface_height == 0) - { - EGLint surface_width, surface_height; - if (eglQuerySurface(m_display, m_surface, EGL_WIDTH, &surface_width) && - eglQuerySurface(m_display, m_surface, EGL_HEIGHT, &surface_height)) - { - m_wi.surface_width = static_cast(surface_width); - m_wi.surface_height = static_cast(surface_height); - return; - } - else - { - Log_ErrorPrintf("eglQuerySurface() failed: %d", eglGetError()); - } - } - - m_wi.surface_width = new_surface_width; - m_wi.surface_height = new_surface_height; -} - -bool ContextEGL::SwapBuffers() -{ - return eglSwapBuffers(m_display, m_surface); -} - -bool ContextEGL::MakeCurrent() -{ - if (!eglMakeCurrent(m_display, m_surface, m_surface, m_context)) - { - Log_ErrorPrintf("eglMakeCurrent() failed: %d", eglGetError()); - return false; - } - - return true; -} - -bool ContextEGL::DoneCurrent() -{ - return eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); -} - -bool ContextEGL::SetSwapInterval(s32 interval) -{ - return eglSwapInterval(m_display, interval); -} - -std::unique_ptr ContextEGL::CreateSharedContext(const WindowInfo& wi) -{ - std::unique_ptr context = std::make_unique(wi); - context->m_display = m_display; - context->m_supports_surfaceless = m_supports_surfaceless; - - if (!context->CreateContextAndSurface(m_version, m_context, false)) - return nullptr; - - return context; -} - -EGLNativeWindowType ContextEGL::GetNativeWindow(EGLConfig config) -{ - return {}; -} - -bool ContextEGL::CreateSurface() -{ - if (m_wi.type == WindowInfo::Type::Surfaceless) - { - if (m_supports_surfaceless) - return true; - else - return CreatePBufferSurface(); - } - - EGLNativeWindowType native_window = GetNativeWindow(m_config); - m_surface = eglCreateWindowSurface(m_display, m_config, native_window, nullptr); - if (!m_surface) - { - Log_ErrorPrintf("eglCreateWindowSurface() failed: %d", eglGetError()); - return false; - } - - // Some implementations may require the size to be queried at runtime. - EGLint surface_width, surface_height; - if (eglQuerySurface(m_display, m_surface, EGL_WIDTH, &surface_width) && - eglQuerySurface(m_display, m_surface, EGL_HEIGHT, &surface_height)) - { - m_wi.surface_width = static_cast(surface_width); - m_wi.surface_height = static_cast(surface_height); - } - else - { - Log_ErrorPrintf("eglQuerySurface() failed: %d", eglGetError()); - } - - return true; -} - -bool ContextEGL::CreatePBufferSurface() -{ - const u32 width = std::max(m_wi.surface_width, 1); - const u32 height = std::max(m_wi.surface_height, 1); - - // TODO: Format - EGLint attrib_list[] = { - EGL_WIDTH, static_cast(width), EGL_HEIGHT, static_cast(height), EGL_NONE, - }; - - m_surface = eglCreatePbufferSurface(m_display, m_config, attrib_list); - if (!m_surface) - { - Log_ErrorPrintf("eglCreatePbufferSurface() failed: %d", eglGetError()); - return false; - } - - Log_DevPrintf("Created %ux%u pbuffer surface", width, height); - return true; -} - -bool ContextEGL::CheckConfigSurfaceFormat(EGLConfig config, WindowInfo::SurfaceFormat format) const -{ - int red_size, green_size, blue_size, alpha_size; - if (!eglGetConfigAttrib(m_display, config, EGL_RED_SIZE, &red_size) || - !eglGetConfigAttrib(m_display, config, EGL_GREEN_SIZE, &green_size) || - !eglGetConfigAttrib(m_display, config, EGL_BLUE_SIZE, &blue_size) || - !eglGetConfigAttrib(m_display, config, EGL_ALPHA_SIZE, &alpha_size)) - { - return false; - } - - switch (format) - { - case WindowInfo::SurfaceFormat::Auto: - return true; - - case WindowInfo::SurfaceFormat::RGB8: - return (red_size == 8 && green_size == 8 && blue_size == 8); - - case WindowInfo::SurfaceFormat::RGBA8: - return (red_size == 8 && green_size == 8 && blue_size == 8 && alpha_size == 8); - - case WindowInfo::SurfaceFormat::RGB565: - return (red_size == 5 && green_size == 6 && blue_size == 5); - - default: - return false; - } -} - -void ContextEGL::DestroyContext() -{ - if (eglGetCurrentContext() == m_context) - eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); - - if (m_context != EGL_NO_CONTEXT) - { - eglDestroyContext(m_display, m_context); - m_context = EGL_NO_CONTEXT; - } -} - -void ContextEGL::DestroySurface() -{ - if (eglGetCurrentSurface(EGL_DRAW) == m_surface) - eglMakeCurrent(m_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); - - if (m_surface != EGL_NO_SURFACE) - { - eglDestroySurface(m_display, m_surface); - m_surface = EGL_NO_SURFACE; - } -} - -bool ContextEGL::CreateContext(const Version& version, EGLContext share_context) -{ - Log_DevPrintf( - "Trying version %u.%u (%s)", version.major_version, version.minor_version, - version.profile == Context::Profile::ES ? "ES" : (version.profile == Context::Profile::Core ? "Core" : "None")); - int surface_attribs[16] = { - EGL_RENDERABLE_TYPE, - (version.profile == Profile::ES) ? - ((version.major_version >= 3) ? EGL_OPENGL_ES3_BIT : - ((version.major_version == 2) ? EGL_OPENGL_ES2_BIT : EGL_OPENGL_ES_BIT)) : - EGL_OPENGL_BIT, - EGL_SURFACE_TYPE, - (m_wi.type != WindowInfo::Type::Surfaceless) ? EGL_WINDOW_BIT : 0, - }; - int nsurface_attribs = 4; - - switch (m_wi.surface_format) - { - case WindowInfo::SurfaceFormat::RGB8: - surface_attribs[nsurface_attribs++] = EGL_RED_SIZE; - surface_attribs[nsurface_attribs++] = 8; - surface_attribs[nsurface_attribs++] = EGL_GREEN_SIZE; - surface_attribs[nsurface_attribs++] = 8; - surface_attribs[nsurface_attribs++] = EGL_BLUE_SIZE; - surface_attribs[nsurface_attribs++] = 8; - break; - - case WindowInfo::SurfaceFormat::RGBA8: - surface_attribs[nsurface_attribs++] = EGL_RED_SIZE; - surface_attribs[nsurface_attribs++] = 8; - surface_attribs[nsurface_attribs++] = EGL_GREEN_SIZE; - surface_attribs[nsurface_attribs++] = 8; - surface_attribs[nsurface_attribs++] = EGL_BLUE_SIZE; - surface_attribs[nsurface_attribs++] = 8; - surface_attribs[nsurface_attribs++] = EGL_ALPHA_SIZE; - surface_attribs[nsurface_attribs++] = 8; - break; - - case WindowInfo::SurfaceFormat::RGB565: - surface_attribs[nsurface_attribs++] = EGL_RED_SIZE; - surface_attribs[nsurface_attribs++] = 5; - surface_attribs[nsurface_attribs++] = EGL_GREEN_SIZE; - surface_attribs[nsurface_attribs++] = 6; - surface_attribs[nsurface_attribs++] = EGL_BLUE_SIZE; - surface_attribs[nsurface_attribs++] = 5; - break; - - case WindowInfo::SurfaceFormat::Auto: - break; - - default: - UnreachableCode(); - break; - } - - surface_attribs[nsurface_attribs++] = EGL_NONE; - surface_attribs[nsurface_attribs++] = 0; - - EGLint num_configs; - if (!eglChooseConfig(m_display, surface_attribs, nullptr, 0, &num_configs) || num_configs == 0) - { - Log_ErrorPrintf("eglChooseConfig() failed: %d", eglGetError()); - return false; - } - - std::vector configs(static_cast(num_configs)); - if (!eglChooseConfig(m_display, surface_attribs, configs.data(), num_configs, &num_configs)) - { - Log_ErrorPrintf("eglChooseConfig() failed: %d", eglGetError()); - return false; - } - configs.resize(static_cast(num_configs)); - - std::optional config; - for (EGLConfig check_config : configs) - { - if (CheckConfigSurfaceFormat(check_config, m_wi.surface_format)) - { - config = check_config; - break; - } - } - - if (!config.has_value()) - { - Log_WarningPrintf("No EGL configs matched exactly, using first."); - config = configs.front(); - } - - int attribs[8]; - int nattribs = 0; - if (version.profile != Profile::NoProfile) - { - attribs[nattribs++] = EGL_CONTEXT_MAJOR_VERSION; - attribs[nattribs++] = version.major_version; - attribs[nattribs++] = EGL_CONTEXT_MINOR_VERSION; - attribs[nattribs++] = version.minor_version; - } - attribs[nattribs++] = EGL_NONE; - attribs[nattribs++] = 0; - - if (!eglBindAPI((version.profile == Profile::ES) ? EGL_OPENGL_ES_API : EGL_OPENGL_API)) - { - Log_ErrorPrintf("eglBindAPI(%s) failed", (version.profile == Profile::ES) ? "EGL_OPENGL_ES_API" : "EGL_OPENGL_API"); - return false; - } - - m_context = eglCreateContext(m_display, config.value(), share_context, attribs); - if (!m_context) - { - Log_ErrorPrintf("eglCreateContext() failed: %d", eglGetError()); - return false; - } - - Log_InfoPrintf( - "Got version %u.%u (%s)", version.major_version, version.minor_version, - version.profile == Context::Profile::ES ? "ES" : (version.profile == Context::Profile::Core ? "Core" : "None")); - - m_config = config.value(); - m_version = version; - return true; -} - -bool ContextEGL::CreateContextAndSurface(const Version& version, EGLContext share_context, bool make_current) -{ - if (!CreateContext(version, share_context)) - return false; - - if (!CreateSurface()) - { - Log_ErrorPrintf("Failed to create surface for context"); - eglDestroyContext(m_display, m_context); - m_context = EGL_NO_CONTEXT; - return false; - } - - if (make_current && !eglMakeCurrent(m_display, m_surface, m_surface, m_context)) - { - Log_ErrorPrintf("eglMakeCurrent() failed: %d", eglGetError()); - if (m_surface != EGL_NO_SURFACE) - { - eglDestroySurface(m_display, m_surface); - m_surface = EGL_NO_SURFACE; - } - eglDestroyContext(m_display, m_context); - m_context = EGL_NO_CONTEXT; - return false; - } - - return true; -} -} // namespace GL diff --git a/third_party/duckstation/gl/context_egl.h b/third_party/duckstation/gl/context_egl.h deleted file mode 100644 index 5851c671..00000000 --- a/third_party/duckstation/gl/context_egl.h +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once -#include "context.h" -#include -#include - -namespace GL { - -class ContextEGL : public Context -{ -public: - ContextEGL(const WindowInfo& wi); - ~ContextEGL() override; - - static std::unique_ptr Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try); - - void* GetProcAddress(const char* name) override; - virtual bool ChangeSurface(const WindowInfo& new_wi) override; - virtual void ResizeSurface(u32 new_surface_width = 0, u32 new_surface_height = 0) override; - bool SwapBuffers() override; - bool MakeCurrent() override; - bool DoneCurrent() override; - bool SetSwapInterval(s32 interval) override; - virtual std::unique_ptr CreateSharedContext(const WindowInfo& wi) override; - -protected: - virtual bool SetDisplay(); - virtual EGLNativeWindowType GetNativeWindow(EGLConfig config); - - bool Initialize(const Version* versions_to_try, size_t num_versions_to_try); - bool CreateDisplay(); - bool CreateContext(const Version& version, EGLContext share_context); - bool CreateContextAndSurface(const Version& version, EGLContext share_context, bool make_current); - bool CreateSurface(); - bool CreatePBufferSurface(); - bool CheckConfigSurfaceFormat(EGLConfig config, WindowInfo::SurfaceFormat format) const; - void DestroyContext(); - void DestroySurface(); - - EGLDisplay m_display = EGL_NO_DISPLAY; - EGLSurface m_surface = EGL_NO_SURFACE; - EGLContext m_context = EGL_NO_CONTEXT; - - EGLConfig m_config = {}; - - bool m_supports_surfaceless = false; -}; - -} // namespace GL diff --git a/third_party/duckstation/gl/context_egl_wayland.cpp b/third_party/duckstation/gl/context_egl_wayland.cpp deleted file mode 100644 index 339029ed..00000000 --- a/third_party/duckstation/gl/context_egl_wayland.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include "context_egl_wayland.h" -#include "duckstation_log.h" -#include -Log_SetChannel(ContextEGLWayland); - -namespace GL { -static const char* WAYLAND_EGL_MODNAME = "libwayland-egl.so.1"; - -ContextEGLWayland::ContextEGLWayland(const WindowInfo& wi) : ContextEGL(wi) {} -ContextEGLWayland::~ContextEGLWayland() -{ - if (m_wl_window) - m_wl_egl_window_destroy(m_wl_window); - if (m_wl_module) - dlclose(m_wl_module); -} - -std::unique_ptr ContextEGLWayland::Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try) -{ - std::unique_ptr context = std::make_unique(wi); - if (!context->LoadModule() || !context->Initialize(versions_to_try, num_versions_to_try)) - return nullptr; - - return context; -} - -std::unique_ptr ContextEGLWayland::CreateSharedContext(const WindowInfo& wi) -{ - std::unique_ptr context = std::make_unique(wi); - context->m_display = m_display; - - if (!context->LoadModule() || !context->CreateContextAndSurface(m_version, m_context, false)) - return nullptr; - - return context; -} - -void ContextEGLWayland::ResizeSurface(u32 new_surface_width, u32 new_surface_height) -{ - if (m_wl_window) - m_wl_egl_window_resize(m_wl_window, new_surface_width, new_surface_height, 0, 0); - - ContextEGL::ResizeSurface(new_surface_width, new_surface_height); -} - -EGLNativeWindowType ContextEGLWayland::GetNativeWindow(EGLConfig config) -{ - if (m_wl_window) - { - m_wl_egl_window_destroy(m_wl_window); - m_wl_window = nullptr; - } - - m_wl_window = - m_wl_egl_window_create(static_cast(m_wi.window_handle), m_wi.surface_width, m_wi.surface_height); - if (!m_wl_window) - return {}; - - return reinterpret_cast(m_wl_window); -} - -bool ContextEGLWayland::LoadModule() -{ - m_wl_module = dlopen(WAYLAND_EGL_MODNAME, RTLD_NOW | RTLD_GLOBAL); - if (!m_wl_module) - { - Log_ErrorPrintf("Failed to load %s.", WAYLAND_EGL_MODNAME); - return false; - } - - m_wl_egl_window_create = - reinterpret_cast(dlsym(m_wl_module, "wl_egl_window_create")); - m_wl_egl_window_destroy = - reinterpret_cast(dlsym(m_wl_module, "wl_egl_window_destroy")); - m_wl_egl_window_resize = - reinterpret_cast(dlsym(m_wl_module, "wl_egl_window_resize")); - if (!m_wl_egl_window_create || !m_wl_egl_window_destroy || !m_wl_egl_window_resize) - { - Log_ErrorPrintf("Failed to load one or more functions from %s.", WAYLAND_EGL_MODNAME); - return false; - } - - return true; -} -} // namespace GL diff --git a/third_party/duckstation/gl/context_egl_wayland.h b/third_party/duckstation/gl/context_egl_wayland.h deleted file mode 100644 index 4682f424..00000000 --- a/third_party/duckstation/gl/context_egl_wayland.h +++ /dev/null @@ -1,33 +0,0 @@ -#pragma once -#include "context_egl.h" -#include - -namespace GL { - -class ContextEGLWayland final : public ContextEGL -{ -public: - ContextEGLWayland(const WindowInfo& wi); - ~ContextEGLWayland() override; - - static std::unique_ptr Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try); - - std::unique_ptr CreateSharedContext(const WindowInfo& wi) override; - void ResizeSurface(u32 new_surface_width = 0, u32 new_surface_height = 0) override; - -protected: - EGLNativeWindowType GetNativeWindow(EGLConfig config) override; - -private: - bool LoadModule(); - - wl_egl_window* m_wl_window = nullptr; - - void* m_wl_module = nullptr; - wl_egl_window* (*m_wl_egl_window_create)(struct wl_surface* surface, int width, int height); - void (*m_wl_egl_window_destroy)(struct wl_egl_window* egl_window); - void (*m_wl_egl_window_resize)(struct wl_egl_window* egl_window, int width, int height, int dx, int dy); -}; - -} // namespace GL diff --git a/third_party/duckstation/gl/context_egl_x11.cpp b/third_party/duckstation/gl/context_egl_x11.cpp deleted file mode 100644 index 6db6c10b..00000000 --- a/third_party/duckstation/gl/context_egl_x11.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include "context_egl_x11.h" -#include "duckstation_log.h" -Log_SetChannel(GL::ContextEGLX11); - -namespace GL { -ContextEGLX11::ContextEGLX11(const WindowInfo& wi) : ContextEGL(wi) {} -ContextEGLX11::~ContextEGLX11() = default; - -std::unique_ptr ContextEGLX11::Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try) -{ - std::unique_ptr context = std::make_unique(wi); - if (!context->Initialize(versions_to_try, num_versions_to_try)) - return nullptr; - - return context; -} - -std::unique_ptr ContextEGLX11::CreateSharedContext(const WindowInfo& wi) -{ - std::unique_ptr context = std::make_unique(wi); - context->m_display = m_display; - - if (!context->CreateContextAndSurface(m_version, m_context, false)) - return nullptr; - - return context; -} - -void ContextEGLX11::ResizeSurface(u32 new_surface_width, u32 new_surface_height) -{ - m_window.Resize(); - ContextEGL::ResizeSurface(new_surface_width, new_surface_height); -} - -EGLNativeWindowType ContextEGLX11::GetNativeWindow(EGLConfig config) -{ - X11InhibitErrors ei; - - EGLint native_visual_id = 0; - if (!eglGetConfigAttrib(m_display, m_config, EGL_NATIVE_VISUAL_ID, &native_visual_id)) - { - Log_ErrorPrintf("Failed to get X11 visual ID"); - return false; - } - - XVisualInfo vi_query = {}; - vi_query.visualid = native_visual_id; - - int num_vis; - XVisualInfo* vi = XGetVisualInfo(static_cast(m_wi.display_connection), VisualIDMask, &vi_query, &num_vis); - if (num_vis <= 0 || !vi) - { - Log_ErrorPrintf("Failed to query visual from X11"); - return false; - } - - m_window.Destroy(); - if (!m_window.Create(GetDisplay(), static_cast(reinterpret_cast(m_wi.window_handle)), vi)) - { - Log_ErrorPrintf("Faild to create X11 child window"); - XFree(vi); - return false; - } - - XFree(vi); - return static_cast(m_window.GetWindow()); -} -} // namespace GL diff --git a/third_party/duckstation/gl/context_egl_x11.h b/third_party/duckstation/gl/context_egl_x11.h deleted file mode 100644 index 7def8bfb..00000000 --- a/third_party/duckstation/gl/context_egl_x11.h +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once -#include "context_egl.h" -#include "x11_window.h" - -namespace GL { - -class ContextEGLX11 final : public ContextEGL -{ -public: - ContextEGLX11(const WindowInfo& wi); - ~ContextEGLX11() override; - - static std::unique_ptr Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try); - - std::unique_ptr CreateSharedContext(const WindowInfo& wi) override; - void ResizeSurface(u32 new_surface_width = 0, u32 new_surface_height = 0) override; - -protected: - EGLNativeWindowType GetNativeWindow(EGLConfig config) override; - -private: - ALWAYS_INLINE Display* GetDisplay() const { return static_cast(m_wi.display_connection); } - - X11Window m_window; -}; - -} // namespace GL diff --git a/third_party/duckstation/gl/context_glx.cpp b/third_party/duckstation/gl/context_glx.cpp deleted file mode 100644 index 485e27ad..00000000 --- a/third_party/duckstation/gl/context_glx.cpp +++ /dev/null @@ -1,328 +0,0 @@ -#include "context_glx.h" -#include "duckstation_compat.h" -#include "duckstation_log.h" -#include -Log_SetChannel(GL::ContextGLX); - -namespace GL { -ContextGLX::ContextGLX(const WindowInfo& wi) : Context(wi) {} - -ContextGLX::~ContextGLX() -{ - if (glXGetCurrentContext() == m_context) - glXMakeCurrent(GetDisplay(), None, nullptr); - - if (m_context) - glXDestroyContext(GetDisplay(), m_context); - - if (m_vi) - XFree(m_vi); - - if (m_libGL_handle) - dlclose(m_libGL_handle); -} - -std::unique_ptr ContextGLX::Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try) -{ - std::unique_ptr context = std::make_unique(wi); - if (!context->Initialize(versions_to_try, num_versions_to_try)) - return nullptr; - - return context; -} - -bool ContextGLX::Initialize(const Version* versions_to_try, size_t num_versions_to_try) -{ - // We need libGL loaded, because GLAD loads its own, then releases it. - m_libGL_handle = dlopen("libGL.so.1", RTLD_NOW | RTLD_GLOBAL); - if (!m_libGL_handle) - { - m_libGL_handle = dlopen("libGL.so", RTLD_NOW | RTLD_GLOBAL); - if (!m_libGL_handle) - { - Log_ErrorPrintf("Failed to load libGL.so: %s", dlerror()); - return false; - } - } - - const int screen = DefaultScreen(GetDisplay()); - if (!gladLoadGLX(GetDisplay(), screen)) - { - Log_ErrorPrintf("Loading GLAD GLX functions failed"); - return false; - } - - if (m_wi.type == WindowInfo::Type::X11) - { - if (!CreateWindow(screen)) - return false; - } - else - { - Panic("Create pbuffer"); - } - - for (size_t i = 0; i < num_versions_to_try; i++) - { - const Version& cv = versions_to_try[i]; - if (cv.profile == Profile::NoProfile && CreateAnyContext(nullptr, true)) - { - m_version = cv; - return true; - } - else if (cv.profile != Profile::NoProfile && CreateVersionContext(cv, nullptr, true)) - { - m_version = cv; - return true; - } - } - - return false; -} - -void* ContextGLX::GetProcAddress(const char* name) -{ - return reinterpret_cast(glXGetProcAddress(reinterpret_cast(name))); -} - -bool ContextGLX::ChangeSurface(const WindowInfo& new_wi) -{ - const bool was_current = (glXGetCurrentContext() == m_context); - if (was_current) - glXMakeCurrent(GetDisplay(), None, nullptr); - - m_window.Destroy(); - m_wi = new_wi; - - if (new_wi.type == WindowInfo::Type::X11) - { - const int screen = DefaultScreen(GetDisplay()); - if (!CreateWindow(screen)) - return false; - } - - if (was_current && !glXMakeCurrent(GetDisplay(), GetDrawable(), m_context)) - { - Log_ErrorPrintf("Failed to make context current again after surface change"); - return false; - } - - return true; -} - -void ContextGLX::ResizeSurface(u32 new_surface_width /*= 0*/, u32 new_surface_height /*= 0*/) -{ - m_window.Resize(new_surface_width, new_surface_height); - m_wi.surface_width = m_window.GetWidth(); - m_wi.surface_height = m_window.GetHeight(); -} - -bool ContextGLX::SwapBuffers() -{ - glXSwapBuffers(GetDisplay(), GetDrawable()); - return true; -} - -bool ContextGLX::MakeCurrent() -{ - return (glXMakeCurrent(GetDisplay(), GetDrawable(), m_context) == True); -} - -bool ContextGLX::DoneCurrent() -{ - return (glXMakeCurrent(GetDisplay(), None, nullptr) == True); -} - -bool ContextGLX::SetSwapInterval(s32 interval) -{ - if (GLAD_GLX_EXT_swap_control) - { - glXSwapIntervalEXT(GetDisplay(), GetDrawable(), interval); - return true; - } - else if (GLAD_GLX_MESA_swap_control) - { - return (glXSwapIntervalMESA(static_cast(std::max(interval, 0))) != 0); - } - else if (GLAD_GLX_SGI_swap_control) - { - return (glXSwapIntervalSGI(interval) != 0); - } - else - { - return false; - } -} - -std::unique_ptr ContextGLX::CreateSharedContext(const WindowInfo& wi) -{ - std::unique_ptr context = std::make_unique(wi); - if (wi.type == WindowInfo::Type::X11) - { - const int screen = DefaultScreen(context->GetDisplay()); - if (!context->CreateWindow(screen)) - return nullptr; - } - else - { - Panic("Create pbuffer"); - } - - if (m_version.profile == Profile::NoProfile) - { - if (!context->CreateAnyContext(m_context, false)) - return nullptr; - } - else - { - if (!context->CreateVersionContext(m_version, m_context, false)) - return nullptr; - } - - context->m_version = m_version; - return context; -} - -bool ContextGLX::CreateWindow(int screen) -{ - int attribs[32] = {GLX_X_RENDERABLE, True, GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT, - GLX_X_VISUAL_TYPE, GLX_TRUE_COLOR, GLX_DOUBLEBUFFER, True}; - int nattribs = 8; - - switch (m_wi.surface_format) - { - case WindowInfo::SurfaceFormat::RGB8: - attribs[nattribs++] = GLX_RED_SIZE; - attribs[nattribs++] = 8; - attribs[nattribs++] = GLX_GREEN_SIZE; - attribs[nattribs++] = 8; - attribs[nattribs++] = GLX_BLUE_SIZE; - attribs[nattribs++] = 8; - break; - - case WindowInfo::SurfaceFormat::RGBA8: - attribs[nattribs++] = GLX_RED_SIZE; - attribs[nattribs++] = 8; - attribs[nattribs++] = GLX_GREEN_SIZE; - attribs[nattribs++] = 8; - attribs[nattribs++] = GLX_BLUE_SIZE; - attribs[nattribs++] = 8; - attribs[nattribs++] = GLX_ALPHA_SIZE; - attribs[nattribs++] = 8; - break; - - case WindowInfo::SurfaceFormat::RGB565: - attribs[nattribs++] = GLX_RED_SIZE; - attribs[nattribs++] = 5; - attribs[nattribs++] = GLX_GREEN_SIZE; - attribs[nattribs++] = 6; - attribs[nattribs++] = GLX_BLUE_SIZE; - attribs[nattribs++] = 5; - break; - - case WindowInfo::SurfaceFormat::Auto: - break; - - default: - UnreachableCode(); - break; - } - - attribs[nattribs++] = None; - attribs[nattribs++] = 0; - - int fbcount = 0; - GLXFBConfig* fbc = glXChooseFBConfig(GetDisplay(), screen, attribs, &fbcount); - if (!fbc || !fbcount) - { - Log_ErrorPrintf("glXChooseFBConfig() failed"); - return false; - } - m_fb_config = *fbc; - XFree(fbc); - - if (!GLAD_GLX_VERSION_1_3) - { - Log_ErrorPrintf("GLX Version 1.3 is required"); - return false; - } - - m_vi = glXGetVisualFromFBConfig(GetDisplay(), m_fb_config); - if (!m_vi) - { - Log_ErrorPrintf("glXGetVisualFromFBConfig() failed"); - return false; - } - - return m_window.Create(GetDisplay(), static_cast(reinterpret_cast(m_wi.window_handle)), m_vi); -} - -bool ContextGLX::CreateAnyContext(GLXContext share_context, bool make_current) -{ - X11InhibitErrors ie; - - m_context = glXCreateContext(GetDisplay(), m_vi, share_context, True); - if (!m_context || ie.HadError()) - { - Log_ErrorPrintf("glxCreateContext() failed"); - return false; - } - - if (make_current) - { - if (!glXMakeCurrent(GetDisplay(), GetDrawable(), m_context)) - { - Log_ErrorPrintf("glXMakeCurrent() failed"); - return false; - } - } - - return true; -} - -bool ContextGLX::CreateVersionContext(const Version& version, GLXContext share_context, bool make_current) -{ - // we need create context attribs - if (!GLAD_GLX_VERSION_1_3) - { - Log_ErrorPrint("Missing GLX version 1.3."); - return false; - } - - int attribs[32]; - int nattribs = 0; - attribs[nattribs++] = GLX_CONTEXT_PROFILE_MASK_ARB; - attribs[nattribs++] = - ((version.profile == Profile::ES) ? - ((version.major_version >= 2) ? GLX_CONTEXT_ES2_PROFILE_BIT_EXT : GLX_CONTEXT_ES_PROFILE_BIT_EXT) : - GLX_CONTEXT_CORE_PROFILE_BIT_ARB); - attribs[nattribs++] = GLX_CONTEXT_MAJOR_VERSION_ARB; - attribs[nattribs++] = version.major_version; - attribs[nattribs++] = GLX_CONTEXT_MINOR_VERSION_ARB; - attribs[nattribs++] = version.minor_version; - attribs[nattribs++] = None; - attribs[nattribs++] = 0; - - X11InhibitErrors ie; - m_context = glXCreateContextAttribsARB(GetDisplay(), m_fb_config, share_context, True, attribs); - XSync(GetDisplay(), False); - if (ie.HadError()) - m_context = nullptr; - if (!m_context) - return false; - - if (make_current) - { - if (!glXMakeCurrent(GetDisplay(), GetDrawable(), m_context)) - { - Log_ErrorPrint("glXMakeCurrent() failed"); - glXDestroyContext(GetDisplay(), m_context); - m_context = nullptr; - return false; - } - } - - return true; -} -} // namespace GL diff --git a/third_party/duckstation/gl/context_glx.h b/third_party/duckstation/gl/context_glx.h deleted file mode 100644 index fc2ff902..00000000 --- a/third_party/duckstation/gl/context_glx.h +++ /dev/null @@ -1,44 +0,0 @@ -#pragma once -#include "context.h" -#include -#include "x11_window.h" - -namespace GL { - -class ContextGLX final : public Context -{ -public: - ContextGLX(const WindowInfo& wi); - ~ContextGLX() override; - - static std::unique_ptr Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try); - - void* GetProcAddress(const char* name) override; - bool ChangeSurface(const WindowInfo& new_wi) override; - void ResizeSurface(u32 new_surface_width = 0, u32 new_surface_height = 0) override; - bool SwapBuffers() override; - bool MakeCurrent() override; - bool DoneCurrent() override; - bool SetSwapInterval(s32 interval) override; - std::unique_ptr CreateSharedContext(const WindowInfo& wi) override; - -private: - ALWAYS_INLINE Display* GetDisplay() const { return static_cast(m_wi.display_connection); } - ALWAYS_INLINE GLXDrawable GetDrawable() const { return static_cast(m_window.GetWindow()); } - - bool Initialize(const Version* versions_to_try, size_t num_versions_to_try); - bool CreateWindow(int screen); - bool CreateAnyContext(GLXContext share_context, bool make_current); - bool CreateVersionContext(const Version& version, GLXContext share_context, bool make_current); - - GLXContext m_context = nullptr; - GLXFBConfig m_fb_config = {}; - XVisualInfo* m_vi = nullptr; - X11Window m_window; - - // GLAD releases its reference to libGL.so, so we need to maintain our own. - void* m_libGL_handle = nullptr; -}; - -} // namespace GL diff --git a/third_party/duckstation/gl/context_wgl.cpp b/third_party/duckstation/gl/context_wgl.cpp deleted file mode 100644 index 47ec4b1e..00000000 --- a/third_party/duckstation/gl/context_wgl.cpp +++ /dev/null @@ -1,452 +0,0 @@ -#include "context_wgl.h" -#include "duckstation_compat.h" -#include "duckstation_log.h" -#include "duckstation_scoped_guard.h" -#include "loader.h" -Log_SetChannel(GL::ContextWGL); - -// TODO: get rid of this -#pragma comment(lib, "opengl32.lib") - -static void* GetProcAddressCallback(const char* name) -{ - void* addr = reinterpret_cast(wglGetProcAddress(name)); - if (addr) - return addr; - - // try opengl32.dll - return reinterpret_cast(::GetProcAddress(GetModuleHandleA("opengl32.dll"), name)); -} - -namespace GL { -ContextWGL::ContextWGL(const WindowInfo& wi) : Context(wi) {} - -ContextWGL::~ContextWGL() -{ - if (wglGetCurrentContext() == m_rc) - wglMakeCurrent(m_dc, nullptr); - - if (m_rc) - wglDeleteContext(m_rc); - - ReleaseDC(); -} - -std::unique_ptr ContextWGL::Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try) -{ - std::unique_ptr context = std::make_unique(wi); - if (!context->Initialize(versions_to_try, num_versions_to_try)) - return nullptr; - - return context; -} - -bool ContextWGL::Initialize(const Version* versions_to_try, size_t num_versions_to_try) -{ - if (m_wi.type == WindowInfo::Type::Win32) - { - if (!InitializeDC()) - return false; - } - else - { - Log_ErrorPrint("ContextWGL must always start with a valid surface."); - return false; - } - - // Everything including core/ES requires a dummy profile to load the WGL extensions. - if (!CreateAnyContext(nullptr, true)) - return false; - - for (size_t i = 0; i < num_versions_to_try; i++) - { - const Version& cv = versions_to_try[i]; - if (cv.profile == Profile::NoProfile) - { - // we already have the dummy context, so just use that - m_version = cv; - return true; - } - else if (CreateVersionContext(cv, nullptr, true)) - { - m_version = cv; - return true; - } - } - - return false; -} - -void* ContextWGL::GetProcAddress(const char* name) -{ - return GetProcAddressCallback(name); -} - -bool ContextWGL::ChangeSurface(const WindowInfo& new_wi) -{ - const bool was_current = (wglGetCurrentContext() == m_rc); - - ReleaseDC(); - - m_wi = new_wi; - if (!InitializeDC()) - return false; - - if (was_current && !wglMakeCurrent(m_dc, m_rc)) - { - Log_ErrorPrintf("Failed to make context current again after surface change: 0x%08X", GetLastError()); - return false; - } - - return true; -} - -void ContextWGL::ResizeSurface(u32 new_surface_width /*= 0*/, u32 new_surface_height /*= 0*/) -{ - RECT client_rc = {}; - GetClientRect(GetHWND(), &client_rc); - m_wi.surface_width = static_cast(client_rc.right - client_rc.left); - m_wi.surface_height = static_cast(client_rc.bottom - client_rc.top); -} - -bool ContextWGL::SwapBuffers() -{ - return ::SwapBuffers(m_dc); -} - -bool ContextWGL::MakeCurrent() -{ - if (!wglMakeCurrent(m_dc, m_rc)) - { - Log_ErrorPrintf("wglMakeCurrent() failed: 0x%08X", GetLastError()); - return false; - } - - return true; -} - -bool ContextWGL::DoneCurrent() -{ - return wglMakeCurrent(m_dc, nullptr); -} - -bool ContextWGL::SetSwapInterval(s32 interval) -{ - if (!GLAD_WGL_EXT_swap_control) - return false; - - return wglSwapIntervalEXT(interval); -} - -std::unique_ptr ContextWGL::CreateSharedContext(const WindowInfo& wi) -{ - std::unique_ptr context = std::make_unique(wi); - if (wi.type == WindowInfo::Type::Win32) - { - if (!context->InitializeDC()) - return nullptr; - } - else - { - Log_ErrorPrint("PBuffer not implemented"); - return nullptr; - } - - if (m_version.profile == Profile::NoProfile) - { - if (!context->CreateAnyContext(m_rc, false)) - return nullptr; - } - else - { - if (!context->CreateVersionContext(m_version, m_rc, false)) - return nullptr; - } - - context->m_version = m_version; - return context; -} - -HDC ContextWGL::GetDCAndSetPixelFormat(HWND hwnd) -{ - PIXELFORMATDESCRIPTOR pfd = {}; - pfd.nSize = sizeof(pfd); - pfd.nVersion = 1; - pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; - pfd.iPixelType = PFD_TYPE_RGBA; - pfd.dwLayerMask = PFD_MAIN_PLANE; - pfd.cRedBits = 8; - pfd.cGreenBits = 8; - pfd.cBlueBits = 8; - pfd.cColorBits = 24; - - HDC hDC = ::GetDC(hwnd); - if (!hDC) - { - Log_ErrorPrintf("GetDC() failed: 0x%08X", GetLastError()); - return {}; - } - - if (!m_pixel_format.has_value()) - { - const int pf = ChoosePixelFormat(hDC, &pfd); - if (pf == 0) - { - Log_ErrorPrintf("ChoosePixelFormat() failed: 0x%08X", GetLastError()); - ::ReleaseDC(hwnd, hDC); - return {}; - } - - m_pixel_format = pf; - } - - if (!SetPixelFormat(hDC, m_pixel_format.value(), &pfd)) - { - Log_ErrorPrintf("SetPixelFormat() failed: 0x%08X", GetLastError()); - ::ReleaseDC(hwnd, hDC); - return {}; - } - - return hDC; -} - -bool ContextWGL::InitializeDC() -{ - if (m_wi.type == WindowInfo::Type::Win32) - { - m_dc = GetDCAndSetPixelFormat(GetHWND()); - if (!m_dc) - { - Log_ErrorPrint("Failed to get DC for window"); - return false; - } - - return true; - } - else if (m_wi.type == WindowInfo::Type::Surfaceless) - { - return CreatePBuffer(); - } - else - { - Log_ErrorPrintf("Unknown window info type %u", static_cast(m_wi.type)); - return false; - } -} - -void ContextWGL::ReleaseDC() -{ - if (m_pbuffer) - { - wglReleasePbufferDCARB(m_pbuffer, m_dc); - m_dc = {}; - - wglDestroyPbufferARB(m_pbuffer); - m_pbuffer = {}; - - ::ReleaseDC(m_dummy_window, m_dummy_dc); - m_dummy_dc = {}; - - DestroyWindow(m_dummy_window); - m_dummy_window = {}; - } - else if (m_dc) - { - ::ReleaseDC(GetHWND(), m_dc); - m_dc = {}; - } -} - -bool ContextWGL::CreatePBuffer() -{ - static bool window_class_registered = false; - static const wchar_t* window_class_name = L"ContextWGLPBuffer"; - - if (!window_class_registered) - { - WNDCLASSEXW wc = {}; - wc.cbSize = sizeof(WNDCLASSEXW); - wc.style = 0; - wc.lpfnWndProc = DefWindowProcW; - wc.cbClsExtra = 0; - wc.cbWndExtra = 0; - wc.hInstance = GetModuleHandle(nullptr); - wc.hIcon = NULL; - wc.hCursor = LoadCursor(NULL, IDC_ARROW); - wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); - wc.lpszMenuName = NULL; - wc.lpszClassName = window_class_name; - wc.hIconSm = NULL; - - if (!RegisterClassExW(&wc)) - { - Log_ErrorPrint("(ContextWGL::CreatePBuffer) RegisterClassExW() failed"); - return false; - } - - window_class_registered = true; - } - - HWND hwnd = CreateWindowExW(0, window_class_name, window_class_name, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL); - if (!hwnd) - { - Log_ErrorPrint("(ContextWGL::CreatePBuffer) CreateWindowEx() failed"); - return false; - } - - ScopedGuard hwnd_guard([hwnd]() { DestroyWindow(hwnd); }); - - HDC hdc = GetDCAndSetPixelFormat(hwnd); - if (!hdc) - return false; - - ScopedGuard hdc_guard([hdc, hwnd]() { ::ReleaseDC(hwnd, hdc); }); - - static constexpr const int pb_attribs[] = {0, 0}; - - AssertMsg(m_pixel_format.has_value(), "Has pixel format for pbuffer"); - HPBUFFERARB pbuffer = wglCreatePbufferARB(hdc, m_pixel_format.value(), 1, 1, pb_attribs); - if (!pbuffer) - { - Log_ErrorPrint("(ContextWGL::CreatePBuffer) wglCreatePbufferARB() failed"); - return false; - } - - ScopedGuard pbuffer_guard([pbuffer]() { wglDestroyPbufferARB(pbuffer); }); - - m_dc = wglGetPbufferDCARB(pbuffer); - if (!m_dc) - { - Log_ErrorPrint("(ContextWGL::CreatePbuffer) wglGetPbufferDCARB() failed"); - return false; - } - - m_dummy_window = hwnd; - m_dummy_dc = hdc; - m_pbuffer = pbuffer; - - pbuffer_guard.Cancel(); - hdc_guard.Cancel(); - hwnd_guard.Cancel(); - return true; -} - -bool ContextWGL::CreateAnyContext(HGLRC share_context, bool make_current) -{ - m_rc = wglCreateContext(m_dc); - if (!m_rc) - { - Log_ErrorPrintf("wglCreateContext() failed: 0x%08X", GetLastError()); - return false; - } - - if (make_current) - { - if (!wglMakeCurrent(m_dc, m_rc)) - { - Log_ErrorPrintf("wglMakeCurrent() failed: 0x%08X", GetLastError()); - return false; - } - - // re-init glad-wgl - if (!gladLoadWGLLoader([](const char* name) -> void* { return reinterpret_cast(wglGetProcAddress(name)); }, m_dc)) - { - Log_ErrorPrint("Loading GLAD WGL functions failed"); - return false; - } - } - - if (share_context && !wglShareLists(share_context, m_rc)) - { - Log_ErrorPrintf("wglShareLists() failed: 0x%08X", GetLastError()); - return false; - } - - return true; -} - -bool ContextWGL::CreateVersionContext(const Version& version, HGLRC share_context, bool make_current) -{ - // we need create context attribs - if (!GLAD_WGL_ARB_create_context) - { - Log_ErrorPrint("Missing GLAD_WGL_ARB_create_context."); - return false; - } - - HGLRC new_rc; - if (version.profile == Profile::Core) - { - const int attribs[] = {WGL_CONTEXT_PROFILE_MASK_ARB, - WGL_CONTEXT_CORE_PROFILE_BIT_ARB, - WGL_CONTEXT_MAJOR_VERSION_ARB, - version.major_version, - WGL_CONTEXT_MINOR_VERSION_ARB, - version.minor_version, -#ifdef _DEBUG - WGL_CONTEXT_FLAGS_ARB, - WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB | WGL_CONTEXT_DEBUG_BIT_ARB, -#else - WGL_CONTEXT_FLAGS_ARB, - WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB, -#endif - 0, - 0}; - - new_rc = wglCreateContextAttribsARB(m_dc, share_context, attribs); - } - else if (version.profile == Profile::ES) - { - if ((version.major_version >= 2 && !GLAD_WGL_EXT_create_context_es2_profile) || - (version.major_version < 2 && !GLAD_WGL_EXT_create_context_es_profile)) - { - Log_ErrorPrint("WGL_EXT_create_context_es_profile not supported"); - return false; - } - - const int attribs[] = { - WGL_CONTEXT_PROFILE_MASK_ARB, - ((version.major_version >= 2) ? WGL_CONTEXT_ES2_PROFILE_BIT_EXT : WGL_CONTEXT_ES_PROFILE_BIT_EXT), - WGL_CONTEXT_MAJOR_VERSION_ARB, - version.major_version, - WGL_CONTEXT_MINOR_VERSION_ARB, - version.minor_version, - 0, - 0}; - - new_rc = wglCreateContextAttribsARB(m_dc, share_context, attribs); - } - else - { - Log_ErrorPrint("Unknown profile"); - return false; - } - - if (!new_rc) - return false; - - // destroy and swap contexts - if (m_rc) - { - if (!wglMakeCurrent(m_dc, make_current ? new_rc : nullptr)) - { - Log_ErrorPrintf("wglMakeCurrent() failed: 0x%08X", GetLastError()); - wglDeleteContext(new_rc); - return false; - } - - // re-init glad-wgl - if (make_current && !gladLoadWGLLoader([](const char* name) -> void* { return reinterpret_cast(wglGetProcAddress(name)); }, m_dc)) - { - Log_ErrorPrint("Loading GLAD WGL functions failed"); - return false; - } - - wglDeleteContext(m_rc); - } - - m_rc = new_rc; - return true; -} -} // namespace GL diff --git a/third_party/duckstation/gl/context_wgl.h b/third_party/duckstation/gl/context_wgl.h deleted file mode 100644 index eb2d3be2..00000000 --- a/third_party/duckstation/gl/context_wgl.h +++ /dev/null @@ -1,53 +0,0 @@ -#pragma once -#include "windows_headers.h" - -#include "context.h" -#include -#include "loader.h" -#include - -namespace GL { - -class ContextWGL final : public Context -{ -public: - ContextWGL(const WindowInfo& wi); - ~ContextWGL() override; - - static std::unique_ptr Create(const WindowInfo& wi, const Version* versions_to_try, - size_t num_versions_to_try); - - void* GetProcAddress(const char* name) override; - bool ChangeSurface(const WindowInfo& new_wi) override; - void ResizeSurface(u32 new_surface_width = 0, u32 new_surface_height = 0) override; - bool SwapBuffers() override; - bool MakeCurrent() override; - bool DoneCurrent() override; - bool SetSwapInterval(s32 interval) override; - std::unique_ptr CreateSharedContext(const WindowInfo& wi) override; - -private: - ALWAYS_INLINE HWND GetHWND() const { return static_cast(m_wi.window_handle); } - - HDC GetDCAndSetPixelFormat(HWND hwnd); - - bool Initialize(const Version* versions_to_try, size_t num_versions_to_try); - bool InitializeDC(); - void ReleaseDC(); - bool CreatePBuffer(); - bool CreateAnyContext(HGLRC share_context, bool make_current); - bool CreateVersionContext(const Version& version, HGLRC share_context, bool make_current); - - HDC m_dc = {}; - HGLRC m_rc = {}; - - // Can't change pixel format once it's set for a RC. - std::optional m_pixel_format; - - // Dummy window for creating a PBuffer off when we're surfaceless. - HWND m_dummy_window = {}; - HDC m_dummy_dc = {}; - HPBUFFERARB m_pbuffer = {}; -}; - -} // namespace GL \ No newline at end of file diff --git a/third_party/duckstation/gl/loader.h b/third_party/duckstation/gl/loader.h deleted file mode 100644 index e6993f55..00000000 --- a/third_party/duckstation/gl/loader.h +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once - -// Fix glad.h including windows.h -#ifdef _WIN32 -#include "windows_headers.h" -#endif - -#include diff --git a/third_party/duckstation/gl/x11_window.cpp b/third_party/duckstation/gl/x11_window.cpp deleted file mode 100644 index 48dfe8dd..00000000 --- a/third_party/duckstation/gl/x11_window.cpp +++ /dev/null @@ -1,101 +0,0 @@ -#include "x11_window.h" -#include "duckstation_log.h" -#include "duckstation_compat.h" -#include -Log_SetChannel(X11Window); - -namespace GL { -X11Window::X11Window() = default; - -X11Window::~X11Window() -{ - Destroy(); -} - -bool X11Window::Create(Display* display, Window parent_window, const XVisualInfo* vi) -{ - m_display = display; - m_parent_window = parent_window; - XSync(m_display, True); - - XWindowAttributes parent_wa = {}; - XGetWindowAttributes(m_display, m_parent_window, &parent_wa); - m_width = static_cast(parent_wa.width); - m_height = static_cast(parent_wa.height); - - // Failed X calls terminate the process so no need to check for errors. - // We could swap the error handler out here as well. - m_colormap = XCreateColormap(m_display, m_parent_window, vi->visual, AllocNone); - - XSetWindowAttributes wa = {}; - wa.colormap = m_colormap; - - m_window = XCreateWindow(m_display, m_parent_window, 0, 0, m_width, m_height, 0, vi->depth, InputOutput, vi->visual, - CWColormap, &wa); - XMapWindow(m_display, m_window); - XSync(m_display, True); - - return true; -} - -void X11Window::Destroy() -{ - if (m_window) - { - XUnmapWindow(m_display, m_window); - XDestroyWindow(m_display, m_window); - m_window = {}; - } - - if (m_colormap) - { - XFreeColormap(m_display, m_colormap); - m_colormap = {}; - } -} - -void X11Window::Resize(u32 width, u32 height) -{ - if (width != 0 && height != 0) - { - m_width = width; - m_height = height; - } - else - { - XWindowAttributes parent_wa = {}; - XGetWindowAttributes(m_display, m_parent_window, &parent_wa); - m_width = static_cast(parent_wa.width); - m_height = static_cast(parent_wa.height); - } - - XResizeWindow(m_display, m_window, m_width, m_height); -} - -static X11InhibitErrors* s_current_error_inhibiter; - -X11InhibitErrors::X11InhibitErrors() -{ - Assert(!s_current_error_inhibiter); - m_old_handler = XSetErrorHandler(ErrorHandler); - s_current_error_inhibiter = this; -} - -X11InhibitErrors::~X11InhibitErrors() -{ - Assert(s_current_error_inhibiter == this); - s_current_error_inhibiter = nullptr; - XSetErrorHandler(m_old_handler); -} - -int X11InhibitErrors::ErrorHandler(Display* display, XErrorEvent* ee) -{ - char error_string[256] = {}; - XGetErrorText(display, ee->error_code, error_string, sizeof(error_string)); - Log_WarningPrintf("X11 Error: %s (Error %u Minor %u Request %u)", error_string, ee->error_code, ee->minor_code, - ee->request_code); - - s_current_error_inhibiter->m_had_error = true; - return 0; -} -} // namespace GL diff --git a/third_party/duckstation/gl/x11_window.h b/third_party/duckstation/gl/x11_window.h deleted file mode 100644 index ff3839a6..00000000 --- a/third_party/duckstation/gl/x11_window.h +++ /dev/null @@ -1,48 +0,0 @@ -#pragma once -#include "duckstation_compat.h" -#include -#include - -namespace GL { -class X11Window -{ -public: - X11Window(); - ~X11Window(); - - ALWAYS_INLINE Window GetWindow() const { return m_window; } - ALWAYS_INLINE u32 GetWidth() const { return m_width; } - ALWAYS_INLINE u32 GetHeight() const { return m_height; } - - bool Create(Display* display, Window parent_window, const XVisualInfo* vi); - void Destroy(); - - // Setting a width/height of 0 will use parent dimensions. - void Resize(u32 width = 0, u32 height = 0); - -private: - Display* m_display = nullptr; - Window m_parent_window = {}; - Window m_window = {}; - Colormap m_colormap = {}; - u32 m_width = 0; - u32 m_height = 0; -}; - -// Helper class for managing X errors -class X11InhibitErrors -{ -public: - X11InhibitErrors(); - ~X11InhibitErrors(); - - ALWAYS_INLINE bool HadError() const { return m_had_error; } - -private: - static int ErrorHandler(Display* display, XErrorEvent* ee); - - XErrorHandler m_old_handler = {}; - bool m_had_error = false; -}; - -} // namespace GL diff --git a/third_party/duckstation/window_info.cpp b/third_party/duckstation/window_info.cpp deleted file mode 100644 index 5f131826..00000000 --- a/third_party/duckstation/window_info.cpp +++ /dev/null @@ -1,191 +0,0 @@ -#include "window_info.h" -#include "duckstation_log.h" -Log_SetChannel(WindowInfo); - -#if defined(_WIN32) - -#include "windows_headers.h" -#include - -static bool GetRefreshRateFromDWM(HWND hwnd, float* refresh_rate) -{ - static HMODULE dwm_module = nullptr; - static HRESULT(STDAPICALLTYPE * is_composition_enabled)(BOOL * pfEnabled) = nullptr; - static HRESULT(STDAPICALLTYPE * get_timing_info)(HWND hwnd, DWM_TIMING_INFO * pTimingInfo) = nullptr; - static bool load_tried = false; - if (!load_tried) - { - load_tried = true; - dwm_module = LoadLibrary(L"dwmapi.dll"); - if (dwm_module) - { - std::atexit([]() { - FreeLibrary(dwm_module); - dwm_module = nullptr; - }); - is_composition_enabled = - reinterpret_cast(GetProcAddress(dwm_module, "DwmIsCompositionEnabled")); - get_timing_info = - reinterpret_cast(GetProcAddress(dwm_module, "DwmGetCompositionTimingInfo")); - } - } - - BOOL composition_enabled; - if (!is_composition_enabled || FAILED(is_composition_enabled(&composition_enabled) || !get_timing_info)) - return false; - - DWM_TIMING_INFO ti = {}; - ti.cbSize = sizeof(ti); - HRESULT hr = get_timing_info(nullptr, &ti); - if (SUCCEEDED(hr)) - { - if (ti.rateRefresh.uiNumerator == 0 || ti.rateRefresh.uiDenominator == 0) - return false; - - *refresh_rate = static_cast(ti.rateRefresh.uiNumerator) / static_cast(ti.rateRefresh.uiDenominator); - return true; - } - - return false; -} - -static bool GetRefreshRateFromMonitor(HWND hwnd, float* refresh_rate) -{ - HMONITOR mon = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST); - if (!mon) - return false; - - MONITORINFOEXW mi = {}; - mi.cbSize = sizeof(mi); - if (GetMonitorInfoW(mon, &mi)) - { - DEVMODEW dm = {}; - dm.dmSize = sizeof(dm); - - // 0/1 are reserved for "defaults". - if (EnumDisplaySettingsW(mi.szDevice, ENUM_CURRENT_SETTINGS, &dm) && dm.dmDisplayFrequency > 1) - { - *refresh_rate = static_cast(dm.dmDisplayFrequency); - return true; - } - } - - return false; -} - -bool WindowInfo::QueryRefreshRateForWindow(const WindowInfo& wi, float* refresh_rate) -{ - if (wi.type != Type::Win32 || !wi.window_handle) - return false; - - // Try DWM first, then fall back to integer values. - const HWND hwnd = static_cast(wi.window_handle); - return GetRefreshRateFromDWM(hwnd, refresh_rate) || GetRefreshRateFromMonitor(hwnd, refresh_rate); -} - -#else - -#ifdef USE_X11 - -#include "common/scoped_guard.h" -#include "gl/x11_window.h" -#include - -static bool GetRefreshRateFromXRandR(const WindowInfo& wi, float* refresh_rate) -{ - Display* display = static_cast(wi.display_connection); - Window window = static_cast(reinterpret_cast(wi.window_handle)); - if (!display || !window) - return false; - - GL::X11InhibitErrors inhibiter; - - XRRScreenResources* res = XRRGetScreenResources(display, window); - if (!res) - { - Log_ErrorPrint("XRRGetScreenResources() failed"); - return false; - } - - ScopedGuard res_guard([res]() { XRRFreeScreenResources(res); }); - - int num_monitors; - XRRMonitorInfo* mi = XRRGetMonitors(display, window, True, &num_monitors); - if (num_monitors < 0) - { - Log_ErrorPrint("XRRGetMonitors() failed"); - return false; - } - else if (num_monitors > 1) - { - Log_WarningPrintf("XRRGetMonitors() returned %d monitors, using first", num_monitors); - } - - ScopedGuard mi_guard([mi]() { XRRFreeMonitors(mi); }); - if (mi->noutput <= 0) - { - Log_ErrorPrint("Monitor has no outputs"); - return false; - } - else if (mi->noutput > 1) - { - Log_WarningPrintf("Monitor has %d outputs, using first", mi->noutput); - } - - XRROutputInfo* oi = XRRGetOutputInfo(display, res, mi->outputs[0]); - if (!oi) - { - Log_ErrorPrint("XRRGetOutputInfo() failed"); - return false; - } - - ScopedGuard oi_guard([oi]() { XRRFreeOutputInfo(oi); }); - - XRRCrtcInfo* ci = XRRGetCrtcInfo(display, res, oi->crtc); - if (!ci) - { - Log_ErrorPrint("XRRGetCrtcInfo() failed"); - return false; - } - - ScopedGuard ci_guard([ci]() { XRRFreeCrtcInfo(ci); }); - - XRRModeInfo* mode = nullptr; - for (int i = 0; i < res->nmode; i++) - { - if (res->modes[i].id == ci->mode) - { - mode = &res->modes[i]; - break; - } - } - if (!mode) - { - Log_ErrorPrintf("Failed to look up mode %d (of %d)", static_cast(ci->mode), res->nmode); - return false; - } - - if (mode->dotClock == 0 || mode->hTotal == 0 || mode->vTotal == 0) - { - Log_ErrorPrintf("Modeline is invalid: %ld/%d/%d", mode->dotClock, mode->hTotal, mode->vTotal); - return false; - } - - *refresh_rate = - static_cast(mode->dotClock) / (static_cast(mode->hTotal) * static_cast(mode->vTotal)); - return true; -} - -#endif // USE_X11 - -bool WindowInfo::QueryRefreshRateForWindow(const WindowInfo& wi, float* refresh_rate) -{ -#if defined(USE_X11) - if (wi.type == WindowInfo::Type::X11) - return GetRefreshRateFromXRandR(wi, refresh_rate); -#endif - - return false; -} - -#endif \ No newline at end of file diff --git a/third_party/duckstation/window_info.h b/third_party/duckstation/window_info.h deleted file mode 100644 index cf9f3577..00000000 --- a/third_party/duckstation/window_info.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once -#include "helpers.hpp" - -// Contains the information required to create a graphics context in a window. -struct WindowInfo -{ - enum class Type - { - Surfaceless, - Win32, - X11, - Wayland, - MacOS, - Android, - Display, - }; - - enum class SurfaceFormat - { - None, - Auto, - RGB8, - RGBA8, - RGB565, - Count - }; - - Type type = Type::Surfaceless; - void* display_connection = nullptr; - void* window_handle = nullptr; - u32 surface_width = 0; - u32 surface_height = 0; - float surface_refresh_rate = 0.0f; - float surface_scale = 1.0f; - SurfaceFormat surface_format = SurfaceFormat::RGB8; - - // Needed for macOS. -#ifdef __APPLE__ - void* surface_handle = nullptr; -#endif - - static bool QueryRefreshRateForWindow(const WindowInfo& wi, float* refresh_rate); -}; diff --git a/third_party/duckstation/windows_headers.h b/third_party/duckstation/windows_headers.h deleted file mode 100644 index 6ff6ed30..00000000 --- a/third_party/duckstation/windows_headers.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN 1 -#endif -#ifndef NOMINMAX -#define NOMINMAX 1 -#endif - -// require vista+ -#ifdef _WIN32_WINNT -#undef _WIN32_WINNT -#endif -#define _WIN32_WINNT _WIN32_WINNT_VISTA - -#include - -#if defined(CreateDirectory) -#undef CreateDirectory -#endif -#if defined(CopyFile) -#undef CopyFile -#endif -#if defined(DeleteFile) -#undef DeleteFile -#endif diff --git a/third_party/dynarmic b/third_party/dynarmic deleted file mode 160000 index a41c3802..00000000 --- a/third_party/dynarmic +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a41c380246d3d9f9874f0f792d234dc0cc17c180 diff --git a/third_party/elfio b/third_party/elfio deleted file mode 160000 index b9969779..00000000 --- a/third_party/elfio +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b99697792573588574793408a30fdffaa1c81f43 diff --git a/third_party/glad/CMakeLists.txt b/third_party/glad/CMakeLists.txt deleted file mode 100644 index b6311342..00000000 --- a/third_party/glad/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -set(GLAD_FILES src/gl.c include/KHR/khrplatform.h) - -if(WIN32) - set(GLAD_FILES ${GLAD_FILES} src/glad_wgl.c) -elseif(ANDROID) - set(GLAD_FILES ${GLAD_FILES} src/glad_egl.c) -elseif(NOT APPLE) - set(GLAD_FILES ${GLAD_FILES} src/glad_egl.c src/glad_glx.c) -endif() - -add_library(glad STATIC ${GLAD_FILES}) - -target_include_directories(glad PUBLIC "include") diff --git a/third_party/glad/README.md b/third_party/glad/README.md deleted file mode 100644 index cc1feebb..00000000 --- a/third_party/glad/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# glad - -This was generated with [glad2](https://github.com/Dav1dde/glad) using the following command: - -```bash -python -m glad --api gl:core=4.3 --out-path glad --reproducible c --loader -``` \ No newline at end of file diff --git a/third_party/glad/include/KHR/khrplatform.h b/third_party/glad/include/KHR/khrplatform.h deleted file mode 100644 index 01646449..00000000 --- a/third_party/glad/include/KHR/khrplatform.h +++ /dev/null @@ -1,311 +0,0 @@ -#ifndef __khrplatform_h_ -#define __khrplatform_h_ - -/* -** Copyright (c) 2008-2018 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. -*/ - -/* Khronos platform-specific types and definitions. - * - * The master copy of khrplatform.h is maintained in the Khronos EGL - * Registry repository at https://github.com/KhronosGroup/EGL-Registry - * The last semantic modification to khrplatform.h was at commit ID: - * 67a3e0864c2d75ea5287b9f3d2eb74a745936692 - * - * Adopters may modify this file to suit their platform. Adopters are - * encouraged to submit platform specific modifications to the Khronos - * group so that they can be included in future versions of this file. - * Please submit changes by filing pull requests or issues on - * the EGL Registry repository linked above. - * - * - * See the Implementer's Guidelines for information about where this file - * should be located on your system and for more details of its use: - * http://www.khronos.org/registry/implementers_guide.pdf - * - * This file should be included as - * #include - * by Khronos client API header files that use its types and defines. - * - * The types in khrplatform.h should only be used to define API-specific types. - * - * Types defined in khrplatform.h: - * khronos_int8_t signed 8 bit - * khronos_uint8_t unsigned 8 bit - * khronos_int16_t signed 16 bit - * khronos_uint16_t unsigned 16 bit - * khronos_int32_t signed 32 bit - * khronos_uint32_t unsigned 32 bit - * khronos_int64_t signed 64 bit - * khronos_uint64_t unsigned 64 bit - * khronos_intptr_t signed same number of bits as a pointer - * khronos_uintptr_t unsigned same number of bits as a pointer - * khronos_ssize_t signed size - * khronos_usize_t unsigned size - * khronos_float_t signed 32 bit floating point - * khronos_time_ns_t unsigned 64 bit time in nanoseconds - * khronos_utime_nanoseconds_t unsigned time interval or absolute time in - * nanoseconds - * khronos_stime_nanoseconds_t signed time interval in nanoseconds - * khronos_boolean_enum_t enumerated boolean type. This should - * only be used as a base type when a client API's boolean type is - * an enum. Client APIs which use an integer or other type for - * booleans cannot use this as the base type for their boolean. - * - * Tokens defined in khrplatform.h: - * - * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values. - * - * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0. - * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0. - * - * Calling convention macros defined in this file: - * KHRONOS_APICALL - * KHRONOS_APIENTRY - * KHRONOS_APIATTRIBUTES - * - * These may be used in function prototypes as: - * - * KHRONOS_APICALL void KHRONOS_APIENTRY funcname( - * int arg1, - * int arg2) KHRONOS_APIATTRIBUTES; - */ - -#if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC) -# define KHRONOS_STATIC 1 -#endif - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APICALL - *------------------------------------------------------------------------- - * This precedes the return type of the function in the function prototype. - */ -#if defined(KHRONOS_STATIC) - /* If the preprocessor constant KHRONOS_STATIC is defined, make the - * header compatible with static linking. */ -# define KHRONOS_APICALL -#elif defined(_WIN32) -# define KHRONOS_APICALL __declspec(dllimport) -#elif defined (__SYMBIAN32__) -# define KHRONOS_APICALL IMPORT_C -#elif defined(__ANDROID__) -# define KHRONOS_APICALL __attribute__((visibility("default"))) -#else -# define KHRONOS_APICALL -#endif - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APIENTRY - *------------------------------------------------------------------------- - * This follows the return type of the function and precedes the function - * name in the function prototype. - */ -#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__) - /* Win32 but not WinCE */ -# define KHRONOS_APIENTRY __stdcall -#else -# define KHRONOS_APIENTRY -#endif - -/*------------------------------------------------------------------------- - * Definition of KHRONOS_APIATTRIBUTES - *------------------------------------------------------------------------- - * This follows the closing parenthesis of the function prototype arguments. - */ -#if defined (__ARMCC_2__) -#define KHRONOS_APIATTRIBUTES __softfp -#else -#define KHRONOS_APIATTRIBUTES -#endif - -/*------------------------------------------------------------------------- - * basic type definitions - *-----------------------------------------------------------------------*/ -#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__) - - -/* - * Using - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 -/* - * To support platform where unsigned long cannot be used interchangeably with - * inptr_t (e.g. CHERI-extended ISAs), we can use the stdint.h intptr_t. - * Ideally, we could just use (u)intptr_t everywhere, but this could result in - * ABI breakage if khronos_uintptr_t is changed from unsigned long to - * unsigned long long or similar (this results in different C++ name mangling). - * To avoid changes for existing platforms, we restrict usage of intptr_t to - * platforms where the size of a pointer is larger than the size of long. - */ -#if defined(__SIZEOF_LONG__) && defined(__SIZEOF_POINTER__) -#if __SIZEOF_POINTER__ > __SIZEOF_LONG__ -#define KHRONOS_USE_INTPTR_T -#endif -#endif - -#elif defined(__VMS ) || defined(__sgi) - -/* - * Using - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif defined(_WIN32) && !defined(__SCITECH_SNAP__) - -/* - * Win32 - */ -typedef __int32 khronos_int32_t; -typedef unsigned __int32 khronos_uint32_t; -typedef __int64 khronos_int64_t; -typedef unsigned __int64 khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif defined(__sun__) || defined(__digital__) - -/* - * Sun or Digital - */ -typedef int khronos_int32_t; -typedef unsigned int khronos_uint32_t; -#if defined(__arch64__) || defined(_LP64) -typedef long int khronos_int64_t; -typedef unsigned long int khronos_uint64_t; -#else -typedef long long int khronos_int64_t; -typedef unsigned long long int khronos_uint64_t; -#endif /* __arch64__ */ -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#elif 0 - -/* - * Hypothetical platform with no float or int64 support - */ -typedef int khronos_int32_t; -typedef unsigned int khronos_uint32_t; -#define KHRONOS_SUPPORT_INT64 0 -#define KHRONOS_SUPPORT_FLOAT 0 - -#else - -/* - * Generic fallback - */ -#include -typedef int32_t khronos_int32_t; -typedef uint32_t khronos_uint32_t; -typedef int64_t khronos_int64_t; -typedef uint64_t khronos_uint64_t; -#define KHRONOS_SUPPORT_INT64 1 -#define KHRONOS_SUPPORT_FLOAT 1 - -#endif - - -/* - * Types that are (so far) the same on all platforms - */ -typedef signed char khronos_int8_t; -typedef unsigned char khronos_uint8_t; -typedef signed short int khronos_int16_t; -typedef unsigned short int khronos_uint16_t; - -/* - * Types that differ between LLP64 and LP64 architectures - in LLP64, - * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears - * to be the only LLP64 architecture in current use. - */ -#ifdef KHRONOS_USE_INTPTR_T -typedef intptr_t khronos_intptr_t; -typedef uintptr_t khronos_uintptr_t; -#elif defined(_WIN64) -typedef signed long long int khronos_intptr_t; -typedef unsigned long long int khronos_uintptr_t; -#else -typedef signed long int khronos_intptr_t; -typedef unsigned long int khronos_uintptr_t; -#endif - -#if defined(_WIN64) -typedef signed long long int khronos_ssize_t; -typedef unsigned long long int khronos_usize_t; -#else -typedef signed long int khronos_ssize_t; -typedef unsigned long int khronos_usize_t; -#endif - -#if KHRONOS_SUPPORT_FLOAT -/* - * Float type - */ -typedef float khronos_float_t; -#endif - -#if KHRONOS_SUPPORT_INT64 -/* Time types - * - * These types can be used to represent a time interval in nanoseconds or - * an absolute Unadjusted System Time. Unadjusted System Time is the number - * of nanoseconds since some arbitrary system event (e.g. since the last - * time the system booted). The Unadjusted System Time is an unsigned - * 64 bit value that wraps back to 0 every 584 years. Time intervals - * may be either signed or unsigned. - */ -typedef khronos_uint64_t khronos_utime_nanoseconds_t; -typedef khronos_int64_t khronos_stime_nanoseconds_t; -#endif - -/* - * Dummy value used to pad enum types to 32 bits. - */ -#ifndef KHRONOS_MAX_ENUM -#define KHRONOS_MAX_ENUM 0x7FFFFFFF -#endif - -/* - * Enumerated boolean type - * - * Values other than zero should be considered to be true. Therefore - * comparisons should not be made against KHRONOS_TRUE. - */ -typedef enum { - KHRONOS_FALSE = 0, - KHRONOS_TRUE = 1, - KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM -} khronos_boolean_enum_t; - -#endif /* __khrplatform_h_ */ diff --git a/third_party/glad/include/glad/eglplatform.h b/third_party/glad/include/glad/eglplatform.h deleted file mode 100644 index 99362a23..00000000 --- a/third_party/glad/include/glad/eglplatform.h +++ /dev/null @@ -1,169 +0,0 @@ -#ifndef __eglplatform_h_ -#define __eglplatform_h_ - -/* -** Copyright 2007-2020 The Khronos Group Inc. -** SPDX-License-Identifier: Apache-2.0 -*/ - -/* Platform-specific types and definitions for egl.h - * - * Adopters may modify khrplatform.h and this file to suit their platform. - * You are encouraged to submit all modifications to the Khronos group so that - * they can be included in future versions of this file. Please submit changes - * by filing an issue or pull request on the public Khronos EGL Registry, at - * https://www.github.com/KhronosGroup/EGL-Registry/ - */ - -#include - -/* Macros used in EGL function prototype declarations. - * - * EGL functions should be prototyped as: - * - * EGLAPI return-type EGLAPIENTRY eglFunction(arguments); - * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments); - * - * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h - */ - -#ifndef EGLAPI -#define EGLAPI KHRONOS_APICALL -#endif - -#ifndef EGLAPIENTRY -#define EGLAPIENTRY KHRONOS_APIENTRY -#endif -#define EGLAPIENTRYP EGLAPIENTRY* - -/* The types NativeDisplayType, NativeWindowType, and NativePixmapType - * are aliases of window-system-dependent types, such as X Display * or - * Windows Device Context. They must be defined in platform-specific - * code below. The EGL-prefixed versions of Native*Type are the same - * types, renamed in EGL 1.3 so all types in the API start with "EGL". - * - * Khronos STRONGLY RECOMMENDS that you use the default definitions - * provided below, since these changes affect both binary and source - * portability of applications using EGL running on different EGL - * implementations. - */ - -#if defined(EGL_NO_PLATFORM_SPECIFIC_TYPES) - -typedef void *EGLNativeDisplayType; -typedef void *EGLNativePixmapType; -typedef void *EGLNativeWindowType; - -#elif defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */ -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN 1 -#endif -#include - -typedef HDC EGLNativeDisplayType; -typedef HBITMAP EGLNativePixmapType; -typedef HWND EGLNativeWindowType; - -#elif defined(__EMSCRIPTEN__) - -typedef int EGLNativeDisplayType; -typedef int EGLNativePixmapType; -typedef int EGLNativeWindowType; - -#elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */ - -typedef int EGLNativeDisplayType; -typedef void *EGLNativePixmapType; -typedef void *EGLNativeWindowType; - -#elif defined(WL_EGL_PLATFORM) - -typedef struct wl_display *EGLNativeDisplayType; -typedef struct wl_egl_pixmap *EGLNativePixmapType; -typedef struct wl_egl_window *EGLNativeWindowType; - -#elif defined(__GBM__) - -typedef struct gbm_device *EGLNativeDisplayType; -typedef struct gbm_bo *EGLNativePixmapType; -typedef void *EGLNativeWindowType; - -#elif defined(__ANDROID__) || defined(ANDROID) - -struct ANativeWindow; -struct egl_native_pixmap_t; - -typedef void* EGLNativeDisplayType; -typedef struct egl_native_pixmap_t* EGLNativePixmapType; -typedef struct ANativeWindow* EGLNativeWindowType; - -#elif defined(USE_OZONE) - -typedef intptr_t EGLNativeDisplayType; -typedef intptr_t EGLNativePixmapType; -typedef intptr_t EGLNativeWindowType; - -#elif defined(USE_X11) - -/* X11 (tentative) */ -#include -#include - -typedef Display *EGLNativeDisplayType; -typedef Pixmap EGLNativePixmapType; -typedef Window EGLNativeWindowType; - -#elif defined(__unix__) - -typedef void *EGLNativeDisplayType; -typedef khronos_uintptr_t EGLNativePixmapType; -typedef khronos_uintptr_t EGLNativeWindowType; - -#elif defined(__APPLE__) - -typedef int EGLNativeDisplayType; -typedef void *EGLNativePixmapType; -typedef void *EGLNativeWindowType; - -#elif defined(__HAIKU__) - -#include - -typedef void *EGLNativeDisplayType; -typedef khronos_uintptr_t EGLNativePixmapType; -typedef khronos_uintptr_t EGLNativeWindowType; - -#elif defined(__Fuchsia__) - -typedef void *EGLNativeDisplayType; -typedef khronos_uintptr_t EGLNativePixmapType; -typedef khronos_uintptr_t EGLNativeWindowType; - -#else -#error "Platform not recognized" -#endif - -/* EGL 1.2 types, renamed for consistency in EGL 1.3 */ -typedef EGLNativeDisplayType NativeDisplayType; -typedef EGLNativePixmapType NativePixmapType; -typedef EGLNativeWindowType NativeWindowType; - - -/* Define EGLint. This must be a signed integral type large enough to contain - * all legal attribute names and values passed into and out of EGL, whether - * their type is boolean, bitmask, enumerant (symbolic constant), integer, - * handle, or other. While in general a 32-bit integer will suffice, if - * handles are 64 bit types, then EGLint should be defined as a signed 64-bit - * integer type. - */ -typedef khronos_int32_t EGLint; - - -/* C++ / C typecast macros for special EGL handle values */ -#if defined(__cplusplus) -#define EGL_CAST(type, value) (static_cast(value)) -#else -#define EGL_CAST(type, value) ((type) (value)) -#endif - -#endif /* __eglplatform_h */ diff --git a/third_party/glad/include/glad/gl.h b/third_party/glad/include/glad/gl.h deleted file mode 100644 index 2ad648f1..00000000 --- a/third_party/glad/include/glad/gl.h +++ /dev/null @@ -1,18128 +0,0 @@ -/* - - OpenGL, OpenGL ES loader generated by glad 0.1.25 on Fri Jul 20 15:42:19 2018. - - Language/Generator: C/C++ - Specification: gl - APIs: gl=4.6, gles2=3.2 - Profile: core - Extensions: - GL_3DFX_multisample, - GL_3DFX_tbuffer, - GL_3DFX_texture_compression_FXT1, - GL_AMD_blend_minmax_factor, - GL_AMD_compressed_3DC_texture, - GL_AMD_compressed_ATC_texture, - GL_AMD_conservative_depth, - GL_AMD_debug_output, - GL_AMD_depth_clamp_separate, - GL_AMD_draw_buffers_blend, - GL_AMD_framebuffer_sample_positions, - GL_AMD_gcn_shader, - GL_AMD_gpu_shader_half_float, - GL_AMD_gpu_shader_int16, - GL_AMD_gpu_shader_int64, - GL_AMD_interleaved_elements, - GL_AMD_multi_draw_indirect, - GL_AMD_name_gen_delete, - GL_AMD_occlusion_query_event, - GL_AMD_performance_monitor, - GL_AMD_pinned_memory, - GL_AMD_program_binary_Z400, - GL_AMD_query_buffer_object, - GL_AMD_sample_positions, - GL_AMD_seamless_cubemap_per_texture, - GL_AMD_shader_atomic_counter_ops, - GL_AMD_shader_ballot, - GL_AMD_shader_explicit_vertex_parameter, - GL_AMD_shader_gpu_shader_half_float_fetch, - GL_AMD_shader_image_load_store_lod, - GL_AMD_shader_stencil_export, - GL_AMD_shader_trinary_minmax, - GL_AMD_sparse_texture, - GL_AMD_stencil_operation_extended, - GL_AMD_texture_gather_bias_lod, - GL_AMD_texture_texture4, - GL_AMD_transform_feedback3_lines_triangles, - GL_AMD_transform_feedback4, - GL_AMD_vertex_shader_layer, - GL_AMD_vertex_shader_tessellator, - GL_AMD_vertex_shader_viewport_index, - GL_ANDROID_extension_pack_es31a, - GL_ANGLE_depth_texture, - GL_ANGLE_framebuffer_blit, - GL_ANGLE_framebuffer_multisample, - GL_ANGLE_instanced_arrays, - GL_ANGLE_pack_reverse_row_order, - GL_ANGLE_program_binary, - GL_ANGLE_texture_compression_dxt3, - GL_ANGLE_texture_compression_dxt5, - GL_ANGLE_texture_usage, - GL_ANGLE_translated_shader_source, - GL_APPLE_aux_depth_stencil, - GL_APPLE_client_storage, - GL_APPLE_clip_distance, - GL_APPLE_color_buffer_packed_float, - GL_APPLE_copy_texture_levels, - GL_APPLE_element_array, - GL_APPLE_fence, - GL_APPLE_float_pixels, - GL_APPLE_flush_buffer_range, - GL_APPLE_framebuffer_multisample, - GL_APPLE_object_purgeable, - GL_APPLE_rgb_422, - GL_APPLE_row_bytes, - GL_APPLE_specular_vector, - GL_APPLE_sync, - GL_APPLE_texture_format_BGRA8888, - GL_APPLE_texture_max_level, - GL_APPLE_texture_packed_float, - GL_APPLE_texture_range, - GL_APPLE_transform_hint, - GL_APPLE_vertex_array_object, - GL_APPLE_vertex_array_range, - GL_APPLE_vertex_program_evaluators, - GL_APPLE_ycbcr_422, - GL_ARB_ES2_compatibility, - GL_ARB_ES3_1_compatibility, - GL_ARB_ES3_2_compatibility, - GL_ARB_ES3_compatibility, - GL_ARB_arrays_of_arrays, - GL_ARB_base_instance, - GL_ARB_bindless_texture, - GL_ARB_blend_func_extended, - GL_ARB_buffer_storage, - GL_ARB_cl_event, - GL_ARB_clear_buffer_object, - GL_ARB_clear_texture, - GL_ARB_clip_control, - GL_ARB_color_buffer_float, - GL_ARB_compatibility, - GL_ARB_compressed_texture_pixel_storage, - GL_ARB_compute_shader, - GL_ARB_compute_variable_group_size, - GL_ARB_conditional_render_inverted, - GL_ARB_conservative_depth, - GL_ARB_copy_buffer, - GL_ARB_copy_image, - GL_ARB_cull_distance, - GL_ARB_debug_output, - GL_ARB_depth_buffer_float, - GL_ARB_depth_clamp, - GL_ARB_depth_texture, - GL_ARB_derivative_control, - GL_ARB_direct_state_access, - GL_ARB_draw_buffers, - GL_ARB_draw_buffers_blend, - GL_ARB_draw_elements_base_vertex, - GL_ARB_draw_indirect, - GL_ARB_draw_instanced, - GL_ARB_enhanced_layouts, - GL_ARB_explicit_attrib_location, - GL_ARB_explicit_uniform_location, - GL_ARB_fragment_coord_conventions, - GL_ARB_fragment_layer_viewport, - GL_ARB_fragment_program, - GL_ARB_fragment_program_shadow, - GL_ARB_fragment_shader, - GL_ARB_fragment_shader_interlock, - GL_ARB_framebuffer_no_attachments, - GL_ARB_framebuffer_object, - GL_ARB_framebuffer_sRGB, - GL_ARB_geometry_shader4, - GL_ARB_get_program_binary, - GL_ARB_get_texture_sub_image, - GL_ARB_gl_spirv, - GL_ARB_gpu_shader5, - GL_ARB_gpu_shader_fp64, - GL_ARB_gpu_shader_int64, - GL_ARB_half_float_pixel, - GL_ARB_half_float_vertex, - GL_ARB_imaging, - GL_ARB_indirect_parameters, - GL_ARB_instanced_arrays, - GL_ARB_internalformat_query, - GL_ARB_internalformat_query2, - GL_ARB_invalidate_subdata, - GL_ARB_map_buffer_alignment, - GL_ARB_map_buffer_range, - GL_ARB_matrix_palette, - GL_ARB_multi_bind, - GL_ARB_multi_draw_indirect, - GL_ARB_multisample, - GL_ARB_multitexture, - GL_ARB_occlusion_query, - GL_ARB_occlusion_query2, - GL_ARB_parallel_shader_compile, - GL_ARB_pipeline_statistics_query, - GL_ARB_pixel_buffer_object, - GL_ARB_point_parameters, - GL_ARB_point_sprite, - GL_ARB_polygon_offset_clamp, - GL_ARB_post_depth_coverage, - GL_ARB_program_interface_query, - GL_ARB_provoking_vertex, - GL_ARB_query_buffer_object, - GL_ARB_robust_buffer_access_behavior, - GL_ARB_robustness, - GL_ARB_robustness_isolation, - GL_ARB_sample_locations, - GL_ARB_sample_shading, - GL_ARB_sampler_objects, - GL_ARB_seamless_cube_map, - GL_ARB_seamless_cubemap_per_texture, - GL_ARB_separate_shader_objects, - GL_ARB_shader_atomic_counter_ops, - GL_ARB_shader_atomic_counters, - GL_ARB_shader_ballot, - GL_ARB_shader_bit_encoding, - GL_ARB_shader_clock, - GL_ARB_shader_draw_parameters, - GL_ARB_shader_group_vote, - GL_ARB_shader_image_load_store, - GL_ARB_shader_image_size, - GL_ARB_shader_objects, - GL_ARB_shader_precision, - GL_ARB_shader_stencil_export, - GL_ARB_shader_storage_buffer_object, - GL_ARB_shader_subroutine, - GL_ARB_shader_texture_image_samples, - GL_ARB_shader_texture_lod, - GL_ARB_shader_viewport_layer_array, - GL_ARB_shading_language_100, - GL_ARB_shading_language_420pack, - GL_ARB_shading_language_include, - GL_ARB_shading_language_packing, - GL_ARB_shadow, - GL_ARB_shadow_ambient, - GL_ARB_sparse_buffer, - GL_ARB_sparse_texture, - GL_ARB_sparse_texture2, - GL_ARB_sparse_texture_clamp, - GL_ARB_spirv_extensions, - GL_ARB_stencil_texturing, - GL_ARB_sync, - GL_ARB_tessellation_shader, - GL_ARB_texture_barrier, - GL_ARB_texture_border_clamp, - GL_ARB_texture_buffer_object, - GL_ARB_texture_buffer_object_rgb32, - GL_ARB_texture_buffer_range, - GL_ARB_texture_compression, - GL_ARB_texture_compression_bptc, - GL_ARB_texture_compression_rgtc, - GL_ARB_texture_cube_map, - GL_ARB_texture_cube_map_array, - GL_ARB_texture_env_add, - GL_ARB_texture_env_combine, - GL_ARB_texture_env_crossbar, - GL_ARB_texture_env_dot3, - GL_ARB_texture_filter_anisotropic, - GL_ARB_texture_filter_minmax, - GL_ARB_texture_float, - GL_ARB_texture_gather, - GL_ARB_texture_mirror_clamp_to_edge, - GL_ARB_texture_mirrored_repeat, - GL_ARB_texture_multisample, - GL_ARB_texture_non_power_of_two, - GL_ARB_texture_query_levels, - GL_ARB_texture_query_lod, - GL_ARB_texture_rectangle, - GL_ARB_texture_rg, - GL_ARB_texture_rgb10_a2ui, - GL_ARB_texture_stencil8, - GL_ARB_texture_storage, - GL_ARB_texture_storage_multisample, - GL_ARB_texture_swizzle, - GL_ARB_texture_view, - GL_ARB_timer_query, - GL_ARB_transform_feedback2, - GL_ARB_transform_feedback3, - GL_ARB_transform_feedback_instanced, - GL_ARB_transform_feedback_overflow_query, - GL_ARB_transpose_matrix, - GL_ARB_uniform_buffer_object, - GL_ARB_vertex_array_bgra, - GL_ARB_vertex_array_object, - GL_ARB_vertex_attrib_64bit, - GL_ARB_vertex_attrib_binding, - GL_ARB_vertex_blend, - GL_ARB_vertex_buffer_object, - GL_ARB_vertex_program, - GL_ARB_vertex_shader, - GL_ARB_vertex_type_10f_11f_11f_rev, - GL_ARB_vertex_type_2_10_10_10_rev, - GL_ARB_viewport_array, - GL_ARB_window_pos, - GL_ARM_mali_program_binary, - GL_ARM_mali_shader_binary, - GL_ARM_rgba8, - GL_ARM_shader_framebuffer_fetch, - GL_ARM_shader_framebuffer_fetch_depth_stencil, - GL_ATI_draw_buffers, - GL_ATI_element_array, - GL_ATI_envmap_bumpmap, - GL_ATI_fragment_shader, - GL_ATI_map_object_buffer, - GL_ATI_meminfo, - GL_ATI_pixel_format_float, - GL_ATI_pn_triangles, - GL_ATI_separate_stencil, - GL_ATI_text_fragment_shader, - GL_ATI_texture_env_combine3, - GL_ATI_texture_float, - GL_ATI_texture_mirror_once, - GL_ATI_vertex_array_object, - GL_ATI_vertex_attrib_array_object, - GL_ATI_vertex_streams, - GL_DMP_program_binary, - GL_DMP_shader_binary, - GL_EXT_422_pixels, - GL_EXT_EGL_image_array, - GL_EXT_EGL_image_storage, - GL_EXT_YUV_target, - GL_EXT_abgr, - GL_EXT_base_instance, - GL_EXT_bgra, - GL_EXT_bindable_uniform, - GL_EXT_blend_color, - GL_EXT_blend_equation_separate, - GL_EXT_blend_func_extended, - GL_EXT_blend_func_separate, - GL_EXT_blend_logic_op, - GL_EXT_blend_minmax, - GL_EXT_blend_subtract, - GL_EXT_buffer_storage, - GL_EXT_clear_texture, - GL_EXT_clip_control, - GL_EXT_clip_cull_distance, - GL_EXT_clip_volume_hint, - GL_EXT_cmyka, - GL_EXT_color_buffer_float, - GL_EXT_color_buffer_half_float, - GL_EXT_color_subtable, - GL_EXT_compiled_vertex_array, - GL_EXT_conservative_depth, - GL_EXT_convolution, - GL_EXT_coordinate_frame, - GL_EXT_copy_image, - GL_EXT_copy_texture, - GL_EXT_cull_vertex, - GL_EXT_debug_label, - GL_EXT_debug_marker, - GL_EXT_depth_bounds_test, - GL_EXT_direct_state_access, - GL_EXT_discard_framebuffer, - GL_EXT_disjoint_timer_query, - GL_EXT_draw_buffers, - GL_EXT_draw_buffers2, - GL_EXT_draw_buffers_indexed, - GL_EXT_draw_elements_base_vertex, - GL_EXT_draw_instanced, - GL_EXT_draw_range_elements, - GL_EXT_draw_transform_feedback, - GL_EXT_external_buffer, - GL_EXT_float_blend, - GL_EXT_fog_coord, - GL_EXT_framebuffer_blit, - GL_EXT_framebuffer_multisample, - GL_EXT_framebuffer_multisample_blit_scaled, - GL_EXT_framebuffer_object, - GL_EXT_framebuffer_sRGB, - GL_EXT_geometry_point_size, - GL_EXT_geometry_shader, - GL_EXT_geometry_shader4, - GL_EXT_gpu_program_parameters, - GL_EXT_gpu_shader4, - GL_EXT_gpu_shader5, - GL_EXT_histogram, - GL_EXT_index_array_formats, - GL_EXT_index_func, - GL_EXT_index_material, - GL_EXT_index_texture, - GL_EXT_instanced_arrays, - GL_EXT_light_texture, - GL_EXT_map_buffer_range, - GL_EXT_memory_object, - GL_EXT_memory_object_fd, - GL_EXT_memory_object_win32, - GL_EXT_misc_attribute, - GL_EXT_multi_draw_arrays, - GL_EXT_multi_draw_indirect, - GL_EXT_multisample, - GL_EXT_multisampled_compatibility, - GL_EXT_multisampled_render_to_texture, - GL_EXT_multiview_draw_buffers, - GL_EXT_occlusion_query_boolean, - GL_EXT_packed_depth_stencil, - GL_EXT_packed_float, - GL_EXT_packed_pixels, - GL_EXT_paletted_texture, - GL_EXT_pixel_buffer_object, - GL_EXT_pixel_transform, - GL_EXT_pixel_transform_color_table, - GL_EXT_point_parameters, - GL_EXT_polygon_offset, - GL_EXT_polygon_offset_clamp, - GL_EXT_post_depth_coverage, - GL_EXT_primitive_bounding_box, - GL_EXT_protected_textures, - GL_EXT_provoking_vertex, - GL_EXT_pvrtc_sRGB, - GL_EXT_raster_multisample, - GL_EXT_read_format_bgra, - GL_EXT_render_snorm, - GL_EXT_rescale_normal, - GL_EXT_robustness, - GL_EXT_sRGB, - GL_EXT_sRGB_write_control, - GL_EXT_secondary_color, - GL_EXT_semaphore, - GL_EXT_semaphore_fd, - GL_EXT_semaphore_win32, - GL_EXT_separate_shader_objects, - GL_EXT_separate_specular_color, - GL_EXT_shader_framebuffer_fetch, - GL_EXT_shader_framebuffer_fetch_non_coherent, - GL_EXT_shader_group_vote, - GL_EXT_shader_image_load_formatted, - GL_EXT_shader_image_load_store, - GL_EXT_shader_implicit_conversions, - GL_EXT_shader_integer_mix, - GL_EXT_shader_io_blocks, - GL_EXT_shader_non_constant_global_initializers, - GL_EXT_shader_pixel_local_storage, - GL_EXT_shader_pixel_local_storage2, - GL_EXT_shader_texture_lod, - GL_EXT_shadow_funcs, - GL_EXT_shadow_samplers, - GL_EXT_shared_texture_palette, - GL_EXT_sparse_texture, - GL_EXT_sparse_texture2, - GL_EXT_stencil_clear_tag, - GL_EXT_stencil_two_side, - GL_EXT_stencil_wrap, - GL_EXT_subtexture, - GL_EXT_tessellation_point_size, - GL_EXT_tessellation_shader, - GL_EXT_texture, - GL_EXT_texture3D, - GL_EXT_texture_array, - GL_EXT_texture_border_clamp, - GL_EXT_texture_buffer, - GL_EXT_texture_buffer_object, - GL_EXT_texture_compression_astc_decode_mode, - GL_EXT_texture_compression_bptc, - GL_EXT_texture_compression_dxt1, - GL_EXT_texture_compression_latc, - GL_EXT_texture_compression_rgtc, - GL_EXT_texture_compression_s3tc, - GL_EXT_texture_compression_s3tc_srgb, - GL_EXT_texture_cube_map, - GL_EXT_texture_cube_map_array, - GL_EXT_texture_env_add, - GL_EXT_texture_env_combine, - GL_EXT_texture_env_dot3, - GL_EXT_texture_filter_anisotropic, - GL_EXT_texture_filter_minmax, - GL_EXT_texture_format_BGRA8888, - GL_EXT_texture_format_sRGB_override, - GL_EXT_texture_integer, - GL_EXT_texture_lod_bias, - GL_EXT_texture_mirror_clamp, - GL_EXT_texture_mirror_clamp_to_edge, - GL_EXT_texture_norm16, - GL_EXT_texture_object, - GL_EXT_texture_perturb_normal, - GL_EXT_texture_rg, - GL_EXT_texture_sRGB, - GL_EXT_texture_sRGB_R8, - GL_EXT_texture_sRGB_RG8, - GL_EXT_texture_sRGB_decode, - GL_EXT_texture_shared_exponent, - GL_EXT_texture_snorm, - GL_EXT_texture_storage, - GL_EXT_texture_swizzle, - GL_EXT_texture_type_2_10_10_10_REV, - GL_EXT_texture_view, - GL_EXT_timer_query, - GL_EXT_transform_feedback, - GL_EXT_unpack_subimage, - GL_EXT_vertex_array, - GL_EXT_vertex_array_bgra, - GL_EXT_vertex_attrib_64bit, - GL_EXT_vertex_shader, - GL_EXT_vertex_weighting, - GL_EXT_win32_keyed_mutex, - GL_EXT_window_rectangles, - GL_EXT_x11_sync_object, - GL_FJ_shader_binary_GCCSO, - GL_GREMEDY_frame_terminator, - GL_GREMEDY_string_marker, - GL_HP_convolution_border_modes, - GL_HP_image_transform, - GL_HP_occlusion_test, - GL_HP_texture_lighting, - GL_IBM_cull_vertex, - GL_IBM_multimode_draw_arrays, - GL_IBM_rasterpos_clip, - GL_IBM_static_data, - GL_IBM_texture_mirrored_repeat, - GL_IBM_vertex_array_lists, - GL_IMG_bindless_texture, - GL_IMG_framebuffer_downsample, - GL_IMG_multisampled_render_to_texture, - GL_IMG_program_binary, - GL_IMG_read_format, - GL_IMG_shader_binary, - GL_IMG_texture_compression_pvrtc, - GL_IMG_texture_compression_pvrtc2, - GL_IMG_texture_filter_cubic, - GL_INGR_blend_func_separate, - GL_INGR_color_clamp, - GL_INGR_interlace_read, - GL_INTEL_blackhole_render, - GL_INTEL_conservative_rasterization, - GL_INTEL_fragment_shader_ordering, - GL_INTEL_framebuffer_CMAA, - GL_INTEL_map_texture, - GL_INTEL_parallel_arrays, - GL_INTEL_performance_query, - GL_KHR_blend_equation_advanced, - GL_KHR_blend_equation_advanced_coherent, - GL_KHR_context_flush_control, - GL_KHR_debug, - GL_KHR_no_error, - GL_KHR_parallel_shader_compile, - GL_KHR_robust_buffer_access_behavior, - GL_KHR_robustness, - GL_KHR_texture_compression_astc_hdr, - GL_KHR_texture_compression_astc_ldr, - GL_KHR_texture_compression_astc_sliced_3d, - GL_MESAX_texture_stack, - GL_MESA_pack_invert, - GL_MESA_program_binary_formats, - GL_MESA_resize_buffers, - GL_MESA_shader_integer_functions, - GL_MESA_tile_raster_order, - GL_MESA_window_pos, - GL_MESA_ycbcr_texture, - GL_NVX_blend_equation_advanced_multi_draw_buffers, - GL_NVX_conditional_render, - GL_NVX_gpu_memory_info, - GL_NVX_linked_gpu_multicast, - GL_NV_alpha_to_coverage_dither_control, - GL_NV_bindless_multi_draw_indirect, - GL_NV_bindless_multi_draw_indirect_count, - GL_NV_bindless_texture, - GL_NV_blend_equation_advanced, - GL_NV_blend_equation_advanced_coherent, - GL_NV_blend_minmax_factor, - GL_NV_blend_square, - GL_NV_clip_space_w_scaling, - GL_NV_command_list, - GL_NV_compute_program5, - GL_NV_conditional_render, - GL_NV_conservative_raster, - GL_NV_conservative_raster_dilate, - GL_NV_conservative_raster_pre_snap, - GL_NV_conservative_raster_pre_snap_triangles, - GL_NV_conservative_raster_underestimation, - GL_NV_copy_buffer, - GL_NV_copy_depth_to_color, - GL_NV_copy_image, - GL_NV_coverage_sample, - GL_NV_deep_texture3D, - GL_NV_depth_buffer_float, - GL_NV_depth_clamp, - GL_NV_depth_nonlinear, - GL_NV_draw_buffers, - GL_NV_draw_instanced, - GL_NV_draw_texture, - GL_NV_draw_vulkan_image, - GL_NV_evaluators, - GL_NV_explicit_attrib_location, - GL_NV_explicit_multisample, - GL_NV_fbo_color_attachments, - GL_NV_fence, - GL_NV_fill_rectangle, - GL_NV_float_buffer, - GL_NV_fog_distance, - GL_NV_fragment_coverage_to_color, - GL_NV_fragment_program, - GL_NV_fragment_program2, - GL_NV_fragment_program4, - GL_NV_fragment_program_option, - GL_NV_fragment_shader_interlock, - GL_NV_framebuffer_blit, - GL_NV_framebuffer_mixed_samples, - GL_NV_framebuffer_multisample, - GL_NV_framebuffer_multisample_coverage, - GL_NV_generate_mipmap_sRGB, - GL_NV_geometry_program4, - GL_NV_geometry_shader4, - GL_NV_geometry_shader_passthrough, - GL_NV_gpu_multicast, - GL_NV_gpu_program4, - GL_NV_gpu_program5, - GL_NV_gpu_program5_mem_extended, - GL_NV_gpu_shader5, - GL_NV_half_float, - GL_NV_image_formats, - GL_NV_instanced_arrays, - GL_NV_internalformat_sample_query, - GL_NV_light_max_exponent, - GL_NV_multisample_coverage, - GL_NV_multisample_filter_hint, - GL_NV_non_square_matrices, - GL_NV_occlusion_query, - GL_NV_packed_depth_stencil, - GL_NV_parameter_buffer_object, - GL_NV_parameter_buffer_object2, - GL_NV_path_rendering, - GL_NV_path_rendering_shared_edge, - GL_NV_pixel_buffer_object, - GL_NV_pixel_data_range, - GL_NV_point_sprite, - GL_NV_polygon_mode, - GL_NV_present_video, - GL_NV_primitive_restart, - GL_NV_query_resource, - GL_NV_query_resource_tag, - GL_NV_read_buffer, - GL_NV_read_buffer_front, - GL_NV_read_depth, - GL_NV_read_depth_stencil, - GL_NV_read_stencil, - GL_NV_register_combiners, - GL_NV_register_combiners2, - GL_NV_robustness_video_memory_purge, - GL_NV_sRGB_formats, - GL_NV_sample_locations, - GL_NV_sample_mask_override_coverage, - GL_NV_shader_atomic_counters, - GL_NV_shader_atomic_float, - GL_NV_shader_atomic_float64, - GL_NV_shader_atomic_fp16_vector, - GL_NV_shader_atomic_int64, - GL_NV_shader_buffer_load, - GL_NV_shader_buffer_store, - GL_NV_shader_noperspective_interpolation, - GL_NV_shader_storage_buffer_object, - GL_NV_shader_thread_group, - GL_NV_shader_thread_shuffle, - GL_NV_shadow_samplers_array, - GL_NV_shadow_samplers_cube, - GL_NV_stereo_view_rendering, - GL_NV_tessellation_program5, - GL_NV_texgen_emboss, - GL_NV_texgen_reflection, - GL_NV_texture_barrier, - GL_NV_texture_border_clamp, - GL_NV_texture_compression_s3tc_update, - GL_NV_texture_compression_vtc, - GL_NV_texture_env_combine4, - GL_NV_texture_expand_normal, - GL_NV_texture_multisample, - GL_NV_texture_npot_2D_mipmap, - GL_NV_texture_rectangle, - GL_NV_texture_rectangle_compressed, - GL_NV_texture_shader, - GL_NV_texture_shader2, - GL_NV_texture_shader3, - GL_NV_transform_feedback, - GL_NV_transform_feedback2, - GL_NV_uniform_buffer_unified_memory, - GL_NV_vdpau_interop, - GL_NV_vertex_array_range, - GL_NV_vertex_array_range2, - GL_NV_vertex_attrib_integer_64bit, - GL_NV_vertex_buffer_unified_memory, - GL_NV_vertex_program, - GL_NV_vertex_program1_1, - GL_NV_vertex_program2, - GL_NV_vertex_program2_option, - GL_NV_vertex_program3, - GL_NV_vertex_program4, - GL_NV_video_capture, - GL_NV_viewport_array, - GL_NV_viewport_array2, - GL_NV_viewport_swizzle, - GL_OES_EGL_image, - GL_OES_EGL_image_external, - GL_OES_EGL_image_external_essl3, - GL_OES_byte_coordinates, - GL_OES_compressed_ETC1_RGB8_sub_texture, - GL_OES_compressed_ETC1_RGB8_texture, - GL_OES_compressed_paletted_texture, - GL_OES_copy_image, - GL_OES_depth24, - GL_OES_depth32, - GL_OES_depth_texture, - GL_OES_draw_buffers_indexed, - GL_OES_draw_elements_base_vertex, - GL_OES_element_index_uint, - GL_OES_fbo_render_mipmap, - GL_OES_fixed_point, - GL_OES_fragment_precision_high, - GL_OES_geometry_point_size, - GL_OES_geometry_shader, - GL_OES_get_program_binary, - GL_OES_gpu_shader5, - GL_OES_mapbuffer, - GL_OES_packed_depth_stencil, - GL_OES_primitive_bounding_box, - GL_OES_query_matrix, - GL_OES_read_format, - GL_OES_required_internalformat, - GL_OES_rgb8_rgba8, - GL_OES_sample_shading, - GL_OES_sample_variables, - GL_OES_shader_image_atomic, - GL_OES_shader_io_blocks, - GL_OES_shader_multisample_interpolation, - GL_OES_single_precision, - GL_OES_standard_derivatives, - GL_OES_stencil1, - GL_OES_stencil4, - GL_OES_surfaceless_context, - GL_OES_tessellation_point_size, - GL_OES_tessellation_shader, - GL_OES_texture_3D, - GL_OES_texture_border_clamp, - GL_OES_texture_buffer, - GL_OES_texture_compression_astc, - GL_OES_texture_cube_map_array, - GL_OES_texture_float, - GL_OES_texture_float_linear, - GL_OES_texture_half_float, - GL_OES_texture_half_float_linear, - GL_OES_texture_npot, - GL_OES_texture_stencil8, - GL_OES_texture_storage_multisample_2d_array, - GL_OES_texture_view, - GL_OES_vertex_array_object, - GL_OES_vertex_half_float, - GL_OES_vertex_type_10_10_10_2, - GL_OES_viewport_array, - GL_OML_interlace, - GL_OML_resample, - GL_OML_subsample, - GL_OVR_multiview, - GL_OVR_multiview2, - GL_OVR_multiview_multisampled_render_to_texture, - GL_PGI_misc_hints, - GL_PGI_vertex_hints, - GL_QCOM_alpha_test, - GL_QCOM_binning_control, - GL_QCOM_driver_control, - GL_QCOM_extended_get, - GL_QCOM_extended_get2, - GL_QCOM_framebuffer_foveated, - GL_QCOM_perfmon_global_mode, - GL_QCOM_shader_framebuffer_fetch_noncoherent, - GL_QCOM_texture_foveated, - GL_QCOM_tiled_rendering, - GL_QCOM_writeonly_rendering, - GL_REND_screen_coordinates, - GL_S3_s3tc, - GL_SGIS_detail_texture, - GL_SGIS_fog_function, - GL_SGIS_generate_mipmap, - GL_SGIS_multisample, - GL_SGIS_pixel_texture, - GL_SGIS_point_line_texgen, - GL_SGIS_point_parameters, - GL_SGIS_sharpen_texture, - GL_SGIS_texture4D, - GL_SGIS_texture_border_clamp, - GL_SGIS_texture_color_mask, - GL_SGIS_texture_edge_clamp, - GL_SGIS_texture_filter4, - GL_SGIS_texture_lod, - GL_SGIS_texture_select, - GL_SGIX_async, - GL_SGIX_async_histogram, - GL_SGIX_async_pixel, - GL_SGIX_blend_alpha_minmax, - GL_SGIX_calligraphic_fragment, - GL_SGIX_clipmap, - GL_SGIX_convolution_accuracy, - GL_SGIX_depth_pass_instrument, - GL_SGIX_depth_texture, - GL_SGIX_flush_raster, - GL_SGIX_fog_offset, - GL_SGIX_fragment_lighting, - GL_SGIX_framezoom, - GL_SGIX_igloo_interface, - GL_SGIX_instruments, - GL_SGIX_interlace, - GL_SGIX_ir_instrument1, - GL_SGIX_list_priority, - GL_SGIX_pixel_texture, - GL_SGIX_pixel_tiles, - GL_SGIX_polynomial_ffd, - GL_SGIX_reference_plane, - GL_SGIX_resample, - GL_SGIX_scalebias_hint, - GL_SGIX_shadow, - GL_SGIX_shadow_ambient, - GL_SGIX_sprite, - GL_SGIX_subsample, - GL_SGIX_tag_sample_buffer, - GL_SGIX_texture_add_env, - GL_SGIX_texture_coordinate_clamp, - GL_SGIX_texture_lod_bias, - GL_SGIX_texture_multi_buffer, - GL_SGIX_texture_scale_bias, - GL_SGIX_vertex_preclip, - GL_SGIX_ycrcb, - GL_SGIX_ycrcb_subsample, - GL_SGIX_ycrcba, - GL_SGI_color_matrix, - GL_SGI_color_table, - GL_SGI_texture_color_table, - GL_SUNX_constant_data, - GL_SUN_convolution_border_modes, - GL_SUN_global_alpha, - GL_SUN_mesh_array, - GL_SUN_slice_accum, - GL_SUN_triangle_list, - GL_SUN_vertex, - GL_VIV_shader_binary, - GL_WIN_phong_shading, - GL_WIN_specular_fog - Loader: True - Local files: True - Omit khrplatform: False - - Commandline: - --profile="core" --api="gl=4.6,gles2=3.2" --generator="c" --spec="gl" --local-files --extensions="GL_3DFX_multisample,GL_3DFX_tbuffer,GL_3DFX_texture_compression_FXT1,GL_AMD_blend_minmax_factor,GL_AMD_compressed_3DC_texture,GL_AMD_compressed_ATC_texture,GL_AMD_conservative_depth,GL_AMD_debug_output,GL_AMD_depth_clamp_separate,GL_AMD_draw_buffers_blend,GL_AMD_framebuffer_sample_positions,GL_AMD_gcn_shader,GL_AMD_gpu_shader_half_float,GL_AMD_gpu_shader_int16,GL_AMD_gpu_shader_int64,GL_AMD_interleaved_elements,GL_AMD_multi_draw_indirect,GL_AMD_name_gen_delete,GL_AMD_occlusion_query_event,GL_AMD_performance_monitor,GL_AMD_pinned_memory,GL_AMD_program_binary_Z400,GL_AMD_query_buffer_object,GL_AMD_sample_positions,GL_AMD_seamless_cubemap_per_texture,GL_AMD_shader_atomic_counter_ops,GL_AMD_shader_ballot,GL_AMD_shader_explicit_vertex_parameter,GL_AMD_shader_gpu_shader_half_float_fetch,GL_AMD_shader_image_load_store_lod,GL_AMD_shader_stencil_export,GL_AMD_shader_trinary_minmax,GL_AMD_sparse_texture,GL_AMD_stencil_operation_extended,GL_AMD_texture_gather_bias_lod,GL_AMD_texture_texture4,GL_AMD_transform_feedback3_lines_triangles,GL_AMD_transform_feedback4,GL_AMD_vertex_shader_layer,GL_AMD_vertex_shader_tessellator,GL_AMD_vertex_shader_viewport_index,GL_ANDROID_extension_pack_es31a,GL_ANGLE_depth_texture,GL_ANGLE_framebuffer_blit,GL_ANGLE_framebuffer_multisample,GL_ANGLE_instanced_arrays,GL_ANGLE_pack_reverse_row_order,GL_ANGLE_program_binary,GL_ANGLE_texture_compression_dxt3,GL_ANGLE_texture_compression_dxt5,GL_ANGLE_texture_usage,GL_ANGLE_translated_shader_source,GL_APPLE_aux_depth_stencil,GL_APPLE_client_storage,GL_APPLE_clip_distance,GL_APPLE_color_buffer_packed_float,GL_APPLE_copy_texture_levels,GL_APPLE_element_array,GL_APPLE_fence,GL_APPLE_float_pixels,GL_APPLE_flush_buffer_range,GL_APPLE_framebuffer_multisample,GL_APPLE_object_purgeable,GL_APPLE_rgb_422,GL_APPLE_row_bytes,GL_APPLE_specular_vector,GL_APPLE_sync,GL_APPLE_texture_format_BGRA8888,GL_APPLE_texture_max_level,GL_APPLE_texture_packed_float,GL_APPLE_texture_range,GL_APPLE_transform_hint,GL_APPLE_vertex_array_object,GL_APPLE_vertex_array_range,GL_APPLE_vertex_program_evaluators,GL_APPLE_ycbcr_422,GL_ARB_ES2_compatibility,GL_ARB_ES3_1_compatibility,GL_ARB_ES3_2_compatibility,GL_ARB_ES3_compatibility,GL_ARB_arrays_of_arrays,GL_ARB_base_instance,GL_ARB_bindless_texture,GL_ARB_blend_func_extended,GL_ARB_buffer_storage,GL_ARB_cl_event,GL_ARB_clear_buffer_object,GL_ARB_clear_texture,GL_ARB_clip_control,GL_ARB_color_buffer_float,GL_ARB_compatibility,GL_ARB_compressed_texture_pixel_storage,GL_ARB_compute_shader,GL_ARB_compute_variable_group_size,GL_ARB_conditional_render_inverted,GL_ARB_conservative_depth,GL_ARB_copy_buffer,GL_ARB_copy_image,GL_ARB_cull_distance,GL_ARB_debug_output,GL_ARB_depth_buffer_float,GL_ARB_depth_clamp,GL_ARB_depth_texture,GL_ARB_derivative_control,GL_ARB_direct_state_access,GL_ARB_draw_buffers,GL_ARB_draw_buffers_blend,GL_ARB_draw_elements_base_vertex,GL_ARB_draw_indirect,GL_ARB_draw_instanced,GL_ARB_enhanced_layouts,GL_ARB_explicit_attrib_location,GL_ARB_explicit_uniform_location,GL_ARB_fragment_coord_conventions,GL_ARB_fragment_layer_viewport,GL_ARB_fragment_program,GL_ARB_fragment_program_shadow,GL_ARB_fragment_shader,GL_ARB_fragment_shader_interlock,GL_ARB_framebuffer_no_attachments,GL_ARB_framebuffer_object,GL_ARB_framebuffer_sRGB,GL_ARB_geometry_shader4,GL_ARB_get_program_binary,GL_ARB_get_texture_sub_image,GL_ARB_gl_spirv,GL_ARB_gpu_shader5,GL_ARB_gpu_shader_fp64,GL_ARB_gpu_shader_int64,GL_ARB_half_float_pixel,GL_ARB_half_float_vertex,GL_ARB_imaging,GL_ARB_indirect_parameters,GL_ARB_instanced_arrays,GL_ARB_internalformat_query,GL_ARB_internalformat_query2,GL_ARB_invalidate_subdata,GL_ARB_map_buffer_alignment,GL_ARB_map_buffer_range,GL_ARB_matrix_palette,GL_ARB_multi_bind,GL_ARB_multi_draw_indirect,GL_ARB_multisample,GL_ARB_multitexture,GL_ARB_occlusion_query,GL_ARB_occlusion_query2,GL_ARB_parallel_shader_compile,GL_ARB_pipeline_statistics_query,GL_ARB_pixel_buffer_object,GL_ARB_point_parameters,GL_ARB_point_sprite,GL_ARB_polygon_offset_clamp,GL_ARB_post_depth_coverage,GL_ARB_program_interface_query,GL_ARB_provoking_vertex,GL_ARB_query_buffer_object,GL_ARB_robust_buffer_access_behavior,GL_ARB_robustness,GL_ARB_robustness_isolation,GL_ARB_sample_locations,GL_ARB_sample_shading,GL_ARB_sampler_objects,GL_ARB_seamless_cube_map,GL_ARB_seamless_cubemap_per_texture,GL_ARB_separate_shader_objects,GL_ARB_shader_atomic_counter_ops,GL_ARB_shader_atomic_counters,GL_ARB_shader_ballot,GL_ARB_shader_bit_encoding,GL_ARB_shader_clock,GL_ARB_shader_draw_parameters,GL_ARB_shader_group_vote,GL_ARB_shader_image_load_store,GL_ARB_shader_image_size,GL_ARB_shader_objects,GL_ARB_shader_precision,GL_ARB_shader_stencil_export,GL_ARB_shader_storage_buffer_object,GL_ARB_shader_subroutine,GL_ARB_shader_texture_image_samples,GL_ARB_shader_texture_lod,GL_ARB_shader_viewport_layer_array,GL_ARB_shading_language_100,GL_ARB_shading_language_420pack,GL_ARB_shading_language_include,GL_ARB_shading_language_packing,GL_ARB_shadow,GL_ARB_shadow_ambient,GL_ARB_sparse_buffer,GL_ARB_sparse_texture,GL_ARB_sparse_texture2,GL_ARB_sparse_texture_clamp,GL_ARB_spirv_extensions,GL_ARB_stencil_texturing,GL_ARB_sync,GL_ARB_tessellation_shader,GL_ARB_texture_barrier,GL_ARB_texture_border_clamp,GL_ARB_texture_buffer_object,GL_ARB_texture_buffer_object_rgb32,GL_ARB_texture_buffer_range,GL_ARB_texture_compression,GL_ARB_texture_compression_bptc,GL_ARB_texture_compression_rgtc,GL_ARB_texture_cube_map,GL_ARB_texture_cube_map_array,GL_ARB_texture_env_add,GL_ARB_texture_env_combine,GL_ARB_texture_env_crossbar,GL_ARB_texture_env_dot3,GL_ARB_texture_filter_anisotropic,GL_ARB_texture_filter_minmax,GL_ARB_texture_float,GL_ARB_texture_gather,GL_ARB_texture_mirror_clamp_to_edge,GL_ARB_texture_mirrored_repeat,GL_ARB_texture_multisample,GL_ARB_texture_non_power_of_two,GL_ARB_texture_query_levels,GL_ARB_texture_query_lod,GL_ARB_texture_rectangle,GL_ARB_texture_rg,GL_ARB_texture_rgb10_a2ui,GL_ARB_texture_stencil8,GL_ARB_texture_storage,GL_ARB_texture_storage_multisample,GL_ARB_texture_swizzle,GL_ARB_texture_view,GL_ARB_timer_query,GL_ARB_transform_feedback2,GL_ARB_transform_feedback3,GL_ARB_transform_feedback_instanced,GL_ARB_transform_feedback_overflow_query,GL_ARB_transpose_matrix,GL_ARB_uniform_buffer_object,GL_ARB_vertex_array_bgra,GL_ARB_vertex_array_object,GL_ARB_vertex_attrib_64bit,GL_ARB_vertex_attrib_binding,GL_ARB_vertex_blend,GL_ARB_vertex_buffer_object,GL_ARB_vertex_program,GL_ARB_vertex_shader,GL_ARB_vertex_type_10f_11f_11f_rev,GL_ARB_vertex_type_2_10_10_10_rev,GL_ARB_viewport_array,GL_ARB_window_pos,GL_ARM_mali_program_binary,GL_ARM_mali_shader_binary,GL_ARM_rgba8,GL_ARM_shader_framebuffer_fetch,GL_ARM_shader_framebuffer_fetch_depth_stencil,GL_ATI_draw_buffers,GL_ATI_element_array,GL_ATI_envmap_bumpmap,GL_ATI_fragment_shader,GL_ATI_map_object_buffer,GL_ATI_meminfo,GL_ATI_pixel_format_float,GL_ATI_pn_triangles,GL_ATI_separate_stencil,GL_ATI_text_fragment_shader,GL_ATI_texture_env_combine3,GL_ATI_texture_float,GL_ATI_texture_mirror_once,GL_ATI_vertex_array_object,GL_ATI_vertex_attrib_array_object,GL_ATI_vertex_streams,GL_DMP_program_binary,GL_DMP_shader_binary,GL_EXT_422_pixels,GL_EXT_EGL_image_array,GL_EXT_EGL_image_storage,GL_EXT_YUV_target,GL_EXT_abgr,GL_EXT_base_instance,GL_EXT_bgra,GL_EXT_bindable_uniform,GL_EXT_blend_color,GL_EXT_blend_equation_separate,GL_EXT_blend_func_extended,GL_EXT_blend_func_separate,GL_EXT_blend_logic_op,GL_EXT_blend_minmax,GL_EXT_blend_subtract,GL_EXT_buffer_storage,GL_EXT_clear_texture,GL_EXT_clip_control,GL_EXT_clip_cull_distance,GL_EXT_clip_volume_hint,GL_EXT_cmyka,GL_EXT_color_buffer_float,GL_EXT_color_buffer_half_float,GL_EXT_color_subtable,GL_EXT_compiled_vertex_array,GL_EXT_conservative_depth,GL_EXT_convolution,GL_EXT_coordinate_frame,GL_EXT_copy_image,GL_EXT_copy_texture,GL_EXT_cull_vertex,GL_EXT_debug_label,GL_EXT_debug_marker,GL_EXT_depth_bounds_test,GL_EXT_direct_state_access,GL_EXT_discard_framebuffer,GL_EXT_disjoint_timer_query,GL_EXT_draw_buffers,GL_EXT_draw_buffers2,GL_EXT_draw_buffers_indexed,GL_EXT_draw_elements_base_vertex,GL_EXT_draw_instanced,GL_EXT_draw_range_elements,GL_EXT_draw_transform_feedback,GL_EXT_external_buffer,GL_EXT_float_blend,GL_EXT_fog_coord,GL_EXT_framebuffer_blit,GL_EXT_framebuffer_multisample,GL_EXT_framebuffer_multisample_blit_scaled,GL_EXT_framebuffer_object,GL_EXT_framebuffer_sRGB,GL_EXT_geometry_point_size,GL_EXT_geometry_shader,GL_EXT_geometry_shader4,GL_EXT_gpu_program_parameters,GL_EXT_gpu_shader4,GL_EXT_gpu_shader5,GL_EXT_histogram,GL_EXT_index_array_formats,GL_EXT_index_func,GL_EXT_index_material,GL_EXT_index_texture,GL_EXT_instanced_arrays,GL_EXT_light_texture,GL_EXT_map_buffer_range,GL_EXT_memory_object,GL_EXT_memory_object_fd,GL_EXT_memory_object_win32,GL_EXT_misc_attribute,GL_EXT_multi_draw_arrays,GL_EXT_multi_draw_indirect,GL_EXT_multisample,GL_EXT_multisampled_compatibility,GL_EXT_multisampled_render_to_texture,GL_EXT_multiview_draw_buffers,GL_EXT_occlusion_query_boolean,GL_EXT_packed_depth_stencil,GL_EXT_packed_float,GL_EXT_packed_pixels,GL_EXT_paletted_texture,GL_EXT_pixel_buffer_object,GL_EXT_pixel_transform,GL_EXT_pixel_transform_color_table,GL_EXT_point_parameters,GL_EXT_polygon_offset,GL_EXT_polygon_offset_clamp,GL_EXT_post_depth_coverage,GL_EXT_primitive_bounding_box,GL_EXT_protected_textures,GL_EXT_provoking_vertex,GL_EXT_pvrtc_sRGB,GL_EXT_raster_multisample,GL_EXT_read_format_bgra,GL_EXT_render_snorm,GL_EXT_rescale_normal,GL_EXT_robustness,GL_EXT_sRGB,GL_EXT_sRGB_write_control,GL_EXT_secondary_color,GL_EXT_semaphore,GL_EXT_semaphore_fd,GL_EXT_semaphore_win32,GL_EXT_separate_shader_objects,GL_EXT_separate_specular_color,GL_EXT_shader_framebuffer_fetch,GL_EXT_shader_framebuffer_fetch_non_coherent,GL_EXT_shader_group_vote,GL_EXT_shader_image_load_formatted,GL_EXT_shader_image_load_store,GL_EXT_shader_implicit_conversions,GL_EXT_shader_integer_mix,GL_EXT_shader_io_blocks,GL_EXT_shader_non_constant_global_initializers,GL_EXT_shader_pixel_local_storage,GL_EXT_shader_pixel_local_storage2,GL_EXT_shader_texture_lod,GL_EXT_shadow_funcs,GL_EXT_shadow_samplers,GL_EXT_shared_texture_palette,GL_EXT_sparse_texture,GL_EXT_sparse_texture2,GL_EXT_stencil_clear_tag,GL_EXT_stencil_two_side,GL_EXT_stencil_wrap,GL_EXT_subtexture,GL_EXT_tessellation_point_size,GL_EXT_tessellation_shader,GL_EXT_texture,GL_EXT_texture3D,GL_EXT_texture_array,GL_EXT_texture_border_clamp,GL_EXT_texture_buffer,GL_EXT_texture_buffer_object,GL_EXT_texture_compression_astc_decode_mode,GL_EXT_texture_compression_bptc,GL_EXT_texture_compression_dxt1,GL_EXT_texture_compression_latc,GL_EXT_texture_compression_rgtc,GL_EXT_texture_compression_s3tc,GL_EXT_texture_compression_s3tc_srgb,GL_EXT_texture_cube_map,GL_EXT_texture_cube_map_array,GL_EXT_texture_env_add,GL_EXT_texture_env_combine,GL_EXT_texture_env_dot3,GL_EXT_texture_filter_anisotropic,GL_EXT_texture_filter_minmax,GL_EXT_texture_format_BGRA8888,GL_EXT_texture_format_sRGB_override,GL_EXT_texture_integer,GL_EXT_texture_lod_bias,GL_EXT_texture_mirror_clamp,GL_EXT_texture_mirror_clamp_to_edge,GL_EXT_texture_norm16,GL_EXT_texture_object,GL_EXT_texture_perturb_normal,GL_EXT_texture_rg,GL_EXT_texture_sRGB,GL_EXT_texture_sRGB_R8,GL_EXT_texture_sRGB_RG8,GL_EXT_texture_sRGB_decode,GL_EXT_texture_shared_exponent,GL_EXT_texture_snorm,GL_EXT_texture_storage,GL_EXT_texture_swizzle,GL_EXT_texture_type_2_10_10_10_REV,GL_EXT_texture_view,GL_EXT_timer_query,GL_EXT_transform_feedback,GL_EXT_unpack_subimage,GL_EXT_vertex_array,GL_EXT_vertex_array_bgra,GL_EXT_vertex_attrib_64bit,GL_EXT_vertex_shader,GL_EXT_vertex_weighting,GL_EXT_win32_keyed_mutex,GL_EXT_window_rectangles,GL_EXT_x11_sync_object,GL_FJ_shader_binary_GCCSO,GL_GREMEDY_frame_terminator,GL_GREMEDY_string_marker,GL_HP_convolution_border_modes,GL_HP_image_transform,GL_HP_occlusion_test,GL_HP_texture_lighting,GL_IBM_cull_vertex,GL_IBM_multimode_draw_arrays,GL_IBM_rasterpos_clip,GL_IBM_static_data,GL_IBM_texture_mirrored_repeat,GL_IBM_vertex_array_lists,GL_IMG_bindless_texture,GL_IMG_framebuffer_downsample,GL_IMG_multisampled_render_to_texture,GL_IMG_program_binary,GL_IMG_read_format,GL_IMG_shader_binary,GL_IMG_texture_compression_pvrtc,GL_IMG_texture_compression_pvrtc2,GL_IMG_texture_filter_cubic,GL_INGR_blend_func_separate,GL_INGR_color_clamp,GL_INGR_interlace_read,GL_INTEL_blackhole_render,GL_INTEL_conservative_rasterization,GL_INTEL_fragment_shader_ordering,GL_INTEL_framebuffer_CMAA,GL_INTEL_map_texture,GL_INTEL_parallel_arrays,GL_INTEL_performance_query,GL_KHR_blend_equation_advanced,GL_KHR_blend_equation_advanced_coherent,GL_KHR_context_flush_control,GL_KHR_debug,GL_KHR_no_error,GL_KHR_parallel_shader_compile,GL_KHR_robust_buffer_access_behavior,GL_KHR_robustness,GL_KHR_texture_compression_astc_hdr,GL_KHR_texture_compression_astc_ldr,GL_KHR_texture_compression_astc_sliced_3d,GL_MESAX_texture_stack,GL_MESA_pack_invert,GL_MESA_program_binary_formats,GL_MESA_resize_buffers,GL_MESA_shader_integer_functions,GL_MESA_tile_raster_order,GL_MESA_window_pos,GL_MESA_ycbcr_texture,GL_NVX_blend_equation_advanced_multi_draw_buffers,GL_NVX_conditional_render,GL_NVX_gpu_memory_info,GL_NVX_linked_gpu_multicast,GL_NV_alpha_to_coverage_dither_control,GL_NV_bindless_multi_draw_indirect,GL_NV_bindless_multi_draw_indirect_count,GL_NV_bindless_texture,GL_NV_blend_equation_advanced,GL_NV_blend_equation_advanced_coherent,GL_NV_blend_minmax_factor,GL_NV_blend_square,GL_NV_clip_space_w_scaling,GL_NV_command_list,GL_NV_compute_program5,GL_NV_conditional_render,GL_NV_conservative_raster,GL_NV_conservative_raster_dilate,GL_NV_conservative_raster_pre_snap,GL_NV_conservative_raster_pre_snap_triangles,GL_NV_conservative_raster_underestimation,GL_NV_copy_buffer,GL_NV_copy_depth_to_color,GL_NV_copy_image,GL_NV_coverage_sample,GL_NV_deep_texture3D,GL_NV_depth_buffer_float,GL_NV_depth_clamp,GL_NV_depth_nonlinear,GL_NV_draw_buffers,GL_NV_draw_instanced,GL_NV_draw_texture,GL_NV_draw_vulkan_image,GL_NV_evaluators,GL_NV_explicit_attrib_location,GL_NV_explicit_multisample,GL_NV_fbo_color_attachments,GL_NV_fence,GL_NV_fill_rectangle,GL_NV_float_buffer,GL_NV_fog_distance,GL_NV_fragment_coverage_to_color,GL_NV_fragment_program,GL_NV_fragment_program2,GL_NV_fragment_program4,GL_NV_fragment_program_option,GL_NV_fragment_shader_interlock,GL_NV_framebuffer_blit,GL_NV_framebuffer_mixed_samples,GL_NV_framebuffer_multisample,GL_NV_framebuffer_multisample_coverage,GL_NV_generate_mipmap_sRGB,GL_NV_geometry_program4,GL_NV_geometry_shader4,GL_NV_geometry_shader_passthrough,GL_NV_gpu_multicast,GL_NV_gpu_program4,GL_NV_gpu_program5,GL_NV_gpu_program5_mem_extended,GL_NV_gpu_shader5,GL_NV_half_float,GL_NV_image_formats,GL_NV_instanced_arrays,GL_NV_internalformat_sample_query,GL_NV_light_max_exponent,GL_NV_multisample_coverage,GL_NV_multisample_filter_hint,GL_NV_non_square_matrices,GL_NV_occlusion_query,GL_NV_packed_depth_stencil,GL_NV_parameter_buffer_object,GL_NV_parameter_buffer_object2,GL_NV_path_rendering,GL_NV_path_rendering_shared_edge,GL_NV_pixel_buffer_object,GL_NV_pixel_data_range,GL_NV_point_sprite,GL_NV_polygon_mode,GL_NV_present_video,GL_NV_primitive_restart,GL_NV_query_resource,GL_NV_query_resource_tag,GL_NV_read_buffer,GL_NV_read_buffer_front,GL_NV_read_depth,GL_NV_read_depth_stencil,GL_NV_read_stencil,GL_NV_register_combiners,GL_NV_register_combiners2,GL_NV_robustness_video_memory_purge,GL_NV_sRGB_formats,GL_NV_sample_locations,GL_NV_sample_mask_override_coverage,GL_NV_shader_atomic_counters,GL_NV_shader_atomic_float,GL_NV_shader_atomic_float64,GL_NV_shader_atomic_fp16_vector,GL_NV_shader_atomic_int64,GL_NV_shader_buffer_load,GL_NV_shader_buffer_store,GL_NV_shader_noperspective_interpolation,GL_NV_shader_storage_buffer_object,GL_NV_shader_thread_group,GL_NV_shader_thread_shuffle,GL_NV_shadow_samplers_array,GL_NV_shadow_samplers_cube,GL_NV_stereo_view_rendering,GL_NV_tessellation_program5,GL_NV_texgen_emboss,GL_NV_texgen_reflection,GL_NV_texture_barrier,GL_NV_texture_border_clamp,GL_NV_texture_compression_s3tc_update,GL_NV_texture_compression_vtc,GL_NV_texture_env_combine4,GL_NV_texture_expand_normal,GL_NV_texture_multisample,GL_NV_texture_npot_2D_mipmap,GL_NV_texture_rectangle,GL_NV_texture_rectangle_compressed,GL_NV_texture_shader,GL_NV_texture_shader2,GL_NV_texture_shader3,GL_NV_transform_feedback,GL_NV_transform_feedback2,GL_NV_uniform_buffer_unified_memory,GL_NV_vdpau_interop,GL_NV_vertex_array_range,GL_NV_vertex_array_range2,GL_NV_vertex_attrib_integer_64bit,GL_NV_vertex_buffer_unified_memory,GL_NV_vertex_program,GL_NV_vertex_program1_1,GL_NV_vertex_program2,GL_NV_vertex_program2_option,GL_NV_vertex_program3,GL_NV_vertex_program4,GL_NV_video_capture,GL_NV_viewport_array,GL_NV_viewport_array2,GL_NV_viewport_swizzle,GL_OES_EGL_image,GL_OES_EGL_image_external,GL_OES_EGL_image_external_essl3,GL_OES_byte_coordinates,GL_OES_compressed_ETC1_RGB8_sub_texture,GL_OES_compressed_ETC1_RGB8_texture,GL_OES_compressed_paletted_texture,GL_OES_copy_image,GL_OES_depth24,GL_OES_depth32,GL_OES_depth_texture,GL_OES_draw_buffers_indexed,GL_OES_draw_elements_base_vertex,GL_OES_element_index_uint,GL_OES_fbo_render_mipmap,GL_OES_fixed_point,GL_OES_fragment_precision_high,GL_OES_geometry_point_size,GL_OES_geometry_shader,GL_OES_get_program_binary,GL_OES_gpu_shader5,GL_OES_mapbuffer,GL_OES_packed_depth_stencil,GL_OES_primitive_bounding_box,GL_OES_query_matrix,GL_OES_read_format,GL_OES_required_internalformat,GL_OES_rgb8_rgba8,GL_OES_sample_shading,GL_OES_sample_variables,GL_OES_shader_image_atomic,GL_OES_shader_io_blocks,GL_OES_shader_multisample_interpolation,GL_OES_single_precision,GL_OES_standard_derivatives,GL_OES_stencil1,GL_OES_stencil4,GL_OES_surfaceless_context,GL_OES_tessellation_point_size,GL_OES_tessellation_shader,GL_OES_texture_3D,GL_OES_texture_border_clamp,GL_OES_texture_buffer,GL_OES_texture_compression_astc,GL_OES_texture_cube_map_array,GL_OES_texture_float,GL_OES_texture_float_linear,GL_OES_texture_half_float,GL_OES_texture_half_float_linear,GL_OES_texture_npot,GL_OES_texture_stencil8,GL_OES_texture_storage_multisample_2d_array,GL_OES_texture_view,GL_OES_vertex_array_object,GL_OES_vertex_half_float,GL_OES_vertex_type_10_10_10_2,GL_OES_viewport_array,GL_OML_interlace,GL_OML_resample,GL_OML_subsample,GL_OVR_multiview,GL_OVR_multiview2,GL_OVR_multiview_multisampled_render_to_texture,GL_PGI_misc_hints,GL_PGI_vertex_hints,GL_QCOM_alpha_test,GL_QCOM_binning_control,GL_QCOM_driver_control,GL_QCOM_extended_get,GL_QCOM_extended_get2,GL_QCOM_framebuffer_foveated,GL_QCOM_perfmon_global_mode,GL_QCOM_shader_framebuffer_fetch_noncoherent,GL_QCOM_texture_foveated,GL_QCOM_tiled_rendering,GL_QCOM_writeonly_rendering,GL_REND_screen_coordinates,GL_S3_s3tc,GL_SGIS_detail_texture,GL_SGIS_fog_function,GL_SGIS_generate_mipmap,GL_SGIS_multisample,GL_SGIS_pixel_texture,GL_SGIS_point_line_texgen,GL_SGIS_point_parameters,GL_SGIS_sharpen_texture,GL_SGIS_texture4D,GL_SGIS_texture_border_clamp,GL_SGIS_texture_color_mask,GL_SGIS_texture_edge_clamp,GL_SGIS_texture_filter4,GL_SGIS_texture_lod,GL_SGIS_texture_select,GL_SGIX_async,GL_SGIX_async_histogram,GL_SGIX_async_pixel,GL_SGIX_blend_alpha_minmax,GL_SGIX_calligraphic_fragment,GL_SGIX_clipmap,GL_SGIX_convolution_accuracy,GL_SGIX_depth_pass_instrument,GL_SGIX_depth_texture,GL_SGIX_flush_raster,GL_SGIX_fog_offset,GL_SGIX_fragment_lighting,GL_SGIX_framezoom,GL_SGIX_igloo_interface,GL_SGIX_instruments,GL_SGIX_interlace,GL_SGIX_ir_instrument1,GL_SGIX_list_priority,GL_SGIX_pixel_texture,GL_SGIX_pixel_tiles,GL_SGIX_polynomial_ffd,GL_SGIX_reference_plane,GL_SGIX_resample,GL_SGIX_scalebias_hint,GL_SGIX_shadow,GL_SGIX_shadow_ambient,GL_SGIX_sprite,GL_SGIX_subsample,GL_SGIX_tag_sample_buffer,GL_SGIX_texture_add_env,GL_SGIX_texture_coordinate_clamp,GL_SGIX_texture_lod_bias,GL_SGIX_texture_multi_buffer,GL_SGIX_texture_scale_bias,GL_SGIX_vertex_preclip,GL_SGIX_ycrcb,GL_SGIX_ycrcb_subsample,GL_SGIX_ycrcba,GL_SGI_color_matrix,GL_SGI_color_table,GL_SGI_texture_color_table,GL_SUNX_constant_data,GL_SUN_convolution_border_modes,GL_SUN_global_alpha,GL_SUN_mesh_array,GL_SUN_slice_accum,GL_SUN_triangle_list,GL_SUN_vertex,GL_VIV_shader_binary,GL_WIN_phong_shading,GL_WIN_specular_fog" - Online: - Too many extensions -*/ - - -#ifndef __glad_h_ -#define __glad_h_ - -#ifdef __gl_h_ -#error OpenGL header already included, remove this include, glad already provides it -#endif -#define __gl_h_ - -#ifdef __gl2_h_ -#error OpenGL ES 2 header already included, remove this include, glad already provides it -#endif -#define __gl2_h_ - -#ifdef __gl3_h_ -#error OpenGL ES 3 header already included, remove this include, glad already provides it -#endif -#define __gl3_h_ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN 1 -#endif -#ifndef NOMINMAX -#define NOMINMAX 1 -#endif -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -struct gladGLversionStruct { - int major; - int minor; -}; - -typedef void* (* GLADloadproc)(const char *name); - -#ifndef GLAPI -# if defined(GLAD_GLAPI_EXPORT) -# if defined(_WIN32) || defined(__CYGWIN__) -# if defined(GLAD_GLAPI_EXPORT_BUILD) -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllexport)) extern -# else -# define GLAPI __declspec(dllexport) extern -# endif -# else -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllimport)) extern -# else -# define GLAPI __declspec(dllimport) extern -# endif -# endif -# elif defined(__GNUC__) && defined(GLAD_GLAPI_EXPORT_BUILD) -# define GLAPI __attribute__ ((visibility ("default"))) extern -# else -# define GLAPI extern -# endif -# else -# define GLAPI extern -# endif -#endif - -GLAPI struct gladGLversionStruct GLVersion; - -GLAPI int gladLoadGL(void); - -GLAPI int gladLoadGLLoader(GLADloadproc); - -GLAPI int gladLoadGLES2Loader(GLADloadproc); - -#include -#include -#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 -#elif defined(__sun__) || defined(__digital__) -#include -#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 -#elif defined(__SCO__) || defined(__USLC__) -#include -#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 -#elif defined(_WIN32) -typedef __int32 int32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -/* Fallback if nothing above works */ -#include -#endif -#endif -typedef unsigned int GLenum; -typedef unsigned char GLboolean; -typedef unsigned int GLbitfield; -typedef void GLvoid; -typedef signed char GLbyte; -typedef short GLshort; -typedef int GLint; -typedef int GLclampx; -typedef unsigned char GLubyte; -typedef unsigned short GLushort; -typedef unsigned int GLuint; -typedef int GLsizei; -typedef float GLfloat; -typedef float GLclampf; -typedef double GLdouble; -typedef double GLclampd; -typedef void *GLeglClientBufferEXT; -typedef void *GLeglImageOES; -typedef char GLchar; -typedef char GLcharARB; -#ifdef __APPLE__ -typedef void *GLhandleARB; -#else -typedef unsigned int GLhandleARB; -#endif -typedef unsigned short GLhalfARB; -typedef unsigned short GLhalf; -typedef GLint GLfixed; -typedef khronos_intptr_t GLintptr; -typedef khronos_ssize_t GLsizeiptr; -typedef int64_t GLint64; -typedef uint64_t GLuint64; -#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060) -typedef long GLintptrARB; -#else -typedef ptrdiff_t GLintptrARB; -#endif -#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060) -typedef long GLsizeiptrARB; -#else -typedef ptrdiff_t GLsizeiptrARB; -#endif -typedef int64_t GLint64EXT; -typedef uint64_t GLuint64EXT; -typedef struct __GLsync *GLsync; -struct _cl_context; -struct _cl_event; -typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam); -typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam); -typedef unsigned short GLhalfNV; -typedef GLintptr GLvdpauSurfaceNV; -typedef void (APIENTRY *GLVULKANPROCNV)(void); -#define GL_DEPTH_BUFFER_BIT 0x00000100 -#define GL_STENCIL_BUFFER_BIT 0x00000400 -#define GL_COLOR_BUFFER_BIT 0x00004000 -#define GL_FALSE 0 -#define GL_TRUE 1 -#define GL_POINTS 0x0000 -#define GL_LINES 0x0001 -#define GL_LINE_LOOP 0x0002 -#define GL_LINE_STRIP 0x0003 -#define GL_TRIANGLES 0x0004 -#define GL_TRIANGLE_STRIP 0x0005 -#define GL_TRIANGLE_FAN 0x0006 -#define GL_NEVER 0x0200 -#define GL_LESS 0x0201 -#define GL_EQUAL 0x0202 -#define GL_LEQUAL 0x0203 -#define GL_GREATER 0x0204 -#define GL_NOTEQUAL 0x0205 -#define GL_GEQUAL 0x0206 -#define GL_ALWAYS 0x0207 -#define GL_ZERO 0 -#define GL_ONE 1 -#define GL_SRC_COLOR 0x0300 -#define GL_ONE_MINUS_SRC_COLOR 0x0301 -#define GL_SRC_ALPHA 0x0302 -#define GL_ONE_MINUS_SRC_ALPHA 0x0303 -#define GL_DST_ALPHA 0x0304 -#define GL_ONE_MINUS_DST_ALPHA 0x0305 -#define GL_DST_COLOR 0x0306 -#define GL_ONE_MINUS_DST_COLOR 0x0307 -#define GL_SRC_ALPHA_SATURATE 0x0308 -#define GL_NONE 0 -#define GL_FRONT_LEFT 0x0400 -#define GL_FRONT_RIGHT 0x0401 -#define GL_BACK_LEFT 0x0402 -#define GL_BACK_RIGHT 0x0403 -#define GL_FRONT 0x0404 -#define GL_BACK 0x0405 -#define GL_LEFT 0x0406 -#define GL_RIGHT 0x0407 -#define GL_FRONT_AND_BACK 0x0408 -#define GL_NO_ERROR 0 -#define GL_INVALID_ENUM 0x0500 -#define GL_INVALID_VALUE 0x0501 -#define GL_INVALID_OPERATION 0x0502 -#define GL_OUT_OF_MEMORY 0x0505 -#define GL_CW 0x0900 -#define GL_CCW 0x0901 -#define GL_POINT_SIZE 0x0B11 -#define GL_POINT_SIZE_RANGE 0x0B12 -#define GL_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_LINE_SMOOTH 0x0B20 -#define GL_LINE_WIDTH 0x0B21 -#define GL_LINE_WIDTH_RANGE 0x0B22 -#define GL_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_POLYGON_MODE 0x0B40 -#define GL_POLYGON_SMOOTH 0x0B41 -#define GL_CULL_FACE 0x0B44 -#define GL_CULL_FACE_MODE 0x0B45 -#define GL_FRONT_FACE 0x0B46 -#define GL_DEPTH_RANGE 0x0B70 -#define GL_DEPTH_TEST 0x0B71 -#define GL_DEPTH_WRITEMASK 0x0B72 -#define GL_DEPTH_CLEAR_VALUE 0x0B73 -#define GL_DEPTH_FUNC 0x0B74 -#define GL_STENCIL_TEST 0x0B90 -#define GL_STENCIL_CLEAR_VALUE 0x0B91 -#define GL_STENCIL_FUNC 0x0B92 -#define GL_STENCIL_VALUE_MASK 0x0B93 -#define GL_STENCIL_FAIL 0x0B94 -#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 -#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 -#define GL_STENCIL_REF 0x0B97 -#define GL_STENCIL_WRITEMASK 0x0B98 -#define GL_VIEWPORT 0x0BA2 -#define GL_DITHER 0x0BD0 -#define GL_BLEND_DST 0x0BE0 -#define GL_BLEND_SRC 0x0BE1 -#define GL_BLEND 0x0BE2 -#define GL_LOGIC_OP_MODE 0x0BF0 -#define GL_DRAW_BUFFER 0x0C01 -#define GL_READ_BUFFER 0x0C02 -#define GL_SCISSOR_BOX 0x0C10 -#define GL_SCISSOR_TEST 0x0C11 -#define GL_COLOR_CLEAR_VALUE 0x0C22 -#define GL_COLOR_WRITEMASK 0x0C23 -#define GL_DOUBLEBUFFER 0x0C32 -#define GL_STEREO 0x0C33 -#define GL_LINE_SMOOTH_HINT 0x0C52 -#define GL_POLYGON_SMOOTH_HINT 0x0C53 -#define GL_UNPACK_SWAP_BYTES 0x0CF0 -#define GL_UNPACK_LSB_FIRST 0x0CF1 -#define GL_UNPACK_ROW_LENGTH 0x0CF2 -#define GL_UNPACK_SKIP_ROWS 0x0CF3 -#define GL_UNPACK_SKIP_PIXELS 0x0CF4 -#define GL_UNPACK_ALIGNMENT 0x0CF5 -#define GL_PACK_SWAP_BYTES 0x0D00 -#define GL_PACK_LSB_FIRST 0x0D01 -#define GL_PACK_ROW_LENGTH 0x0D02 -#define GL_PACK_SKIP_ROWS 0x0D03 -#define GL_PACK_SKIP_PIXELS 0x0D04 -#define GL_PACK_ALIGNMENT 0x0D05 -#define GL_MAX_TEXTURE_SIZE 0x0D33 -#define GL_MAX_VIEWPORT_DIMS 0x0D3A -#define GL_SUBPIXEL_BITS 0x0D50 -#define GL_TEXTURE_1D 0x0DE0 -#define GL_TEXTURE_2D 0x0DE1 -#define GL_TEXTURE_WIDTH 0x1000 -#define GL_TEXTURE_HEIGHT 0x1001 -#define GL_TEXTURE_BORDER_COLOR 0x1004 -#define GL_DONT_CARE 0x1100 -#define GL_FASTEST 0x1101 -#define GL_NICEST 0x1102 -#define GL_BYTE 0x1400 -#define GL_UNSIGNED_BYTE 0x1401 -#define GL_SHORT 0x1402 -#define GL_UNSIGNED_SHORT 0x1403 -#define GL_INT 0x1404 -#define GL_UNSIGNED_INT 0x1405 -#define GL_FLOAT 0x1406 -#define GL_CLEAR 0x1500 -#define GL_AND 0x1501 -#define GL_AND_REVERSE 0x1502 -#define GL_COPY 0x1503 -#define GL_AND_INVERTED 0x1504 -#define GL_NOOP 0x1505 -#define GL_XOR 0x1506 -#define GL_OR 0x1507 -#define GL_NOR 0x1508 -#define GL_EQUIV 0x1509 -#define GL_INVERT 0x150A -#define GL_OR_REVERSE 0x150B -#define GL_COPY_INVERTED 0x150C -#define GL_OR_INVERTED 0x150D -#define GL_NAND 0x150E -#define GL_SET 0x150F -#define GL_TEXTURE 0x1702 -#define GL_COLOR 0x1800 -#define GL_DEPTH 0x1801 -#define GL_STENCIL 0x1802 -#define GL_STENCIL_INDEX 0x1901 -#define GL_DEPTH_COMPONENT 0x1902 -#define GL_RED 0x1903 -#define GL_GREEN 0x1904 -#define GL_BLUE 0x1905 -#define GL_ALPHA 0x1906 -#define GL_RGB 0x1907 -#define GL_RGBA 0x1908 -#define GL_POINT 0x1B00 -#define GL_LINE 0x1B01 -#define GL_FILL 0x1B02 -#define GL_KEEP 0x1E00 -#define GL_REPLACE 0x1E01 -#define GL_INCR 0x1E02 -#define GL_DECR 0x1E03 -#define GL_VENDOR 0x1F00 -#define GL_RENDERER 0x1F01 -#define GL_VERSION 0x1F02 -#define GL_EXTENSIONS 0x1F03 -#define GL_NEAREST 0x2600 -#define GL_LINEAR 0x2601 -#define GL_NEAREST_MIPMAP_NEAREST 0x2700 -#define GL_LINEAR_MIPMAP_NEAREST 0x2701 -#define GL_NEAREST_MIPMAP_LINEAR 0x2702 -#define GL_LINEAR_MIPMAP_LINEAR 0x2703 -#define GL_TEXTURE_MAG_FILTER 0x2800 -#define GL_TEXTURE_MIN_FILTER 0x2801 -#define GL_TEXTURE_WRAP_S 0x2802 -#define GL_TEXTURE_WRAP_T 0x2803 -#define GL_REPEAT 0x2901 -#define GL_COLOR_LOGIC_OP 0x0BF2 -#define GL_POLYGON_OFFSET_UNITS 0x2A00 -#define GL_POLYGON_OFFSET_POINT 0x2A01 -#define GL_POLYGON_OFFSET_LINE 0x2A02 -#define GL_POLYGON_OFFSET_FILL 0x8037 -#define GL_POLYGON_OFFSET_FACTOR 0x8038 -#define GL_TEXTURE_BINDING_1D 0x8068 -#define GL_TEXTURE_BINDING_2D 0x8069 -#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 -#define GL_TEXTURE_RED_SIZE 0x805C -#define GL_TEXTURE_GREEN_SIZE 0x805D -#define GL_TEXTURE_BLUE_SIZE 0x805E -#define GL_TEXTURE_ALPHA_SIZE 0x805F -#define GL_DOUBLE 0x140A -#define GL_PROXY_TEXTURE_1D 0x8063 -#define GL_PROXY_TEXTURE_2D 0x8064 -#define GL_R3_G3_B2 0x2A10 -#define GL_RGB4 0x804F -#define GL_RGB5 0x8050 -#define GL_RGB8 0x8051 -#define GL_RGB10 0x8052 -#define GL_RGB12 0x8053 -#define GL_RGB16 0x8054 -#define GL_RGBA2 0x8055 -#define GL_RGBA4 0x8056 -#define GL_RGB5_A1 0x8057 -#define GL_RGBA8 0x8058 -#define GL_RGB10_A2 0x8059 -#define GL_RGBA12 0x805A -#define GL_RGBA16 0x805B -#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_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_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_LINE_WIDTH_RANGE 0x846E -#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_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_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_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_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_FADE_THRESHOLD_SIZE 0x8128 -#define GL_DEPTH_COMPONENT16 0x81A5 -#define GL_DEPTH_COMPONENT24 0x81A6 -#define GL_DEPTH_COMPONENT32 0x81A7 -#define GL_MIRRORED_REPEAT 0x8370 -#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD -#define GL_TEXTURE_LOD_BIAS 0x8501 -#define GL_INCR_WRAP 0x8507 -#define GL_DECR_WRAP 0x8508 -#define GL_TEXTURE_DEPTH_SIZE 0x884A -#define GL_TEXTURE_COMPARE_MODE 0x884C -#define GL_TEXTURE_COMPARE_FUNC 0x884D -#define GL_BLEND_COLOR 0x8005 -#define GL_BLEND_EQUATION 0x8009 -#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_FUNC_ADD 0x8006 -#define GL_FUNC_REVERSE_SUBTRACT 0x800B -#define GL_FUNC_SUBTRACT 0x800A -#define GL_MIN 0x8007 -#define GL_MAX 0x8008 -#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_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_SRC1_ALPHA 0x8589 -#define GL_BLEND_EQUATION_RGB 0x8009 -#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_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_MAX_VERTEX_ATTRIBS 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A -#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 -#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_COMPRESSED_SRGB 0x8C48 -#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 -#define GL_COMPARE_REF_TO_TEXTURE 0x884E -#define GL_CLIP_DISTANCE0 0x3000 -#define GL_CLIP_DISTANCE1 0x3001 -#define GL_CLIP_DISTANCE2 0x3002 -#define GL_CLIP_DISTANCE3 0x3003 -#define GL_CLIP_DISTANCE4 0x3004 -#define GL_CLIP_DISTANCE5 0x3005 -#define GL_CLIP_DISTANCE6 0x3006 -#define GL_CLIP_DISTANCE7 0x3007 -#define GL_MAX_CLIP_DISTANCES 0x0D32 -#define GL_MAJOR_VERSION 0x821B -#define GL_MINOR_VERSION 0x821C -#define GL_NUM_EXTENSIONS 0x821D -#define GL_CONTEXT_FLAGS 0x821E -#define GL_COMPRESSED_RED 0x8225 -#define GL_COMPRESSED_RG 0x8226 -#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001 -#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_READ_COLOR 0x891C -#define GL_FIXED_ONLY 0x891D -#define GL_MAX_VARYING_COMPONENTS 0x8B4B -#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_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 -#define GL_BUFFER_ACCESS_FLAGS 0x911F -#define GL_BUFFER_MAP_LENGTH 0x9120 -#define GL_BUFFER_MAP_OFFSET 0x9121 -#define GL_DEPTH_COMPONENT32F 0x8CAC -#define GL_DEPTH32F_STENCIL8 0x8CAD -#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD -#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_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_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_DEPTH_TYPE 0x8C16 -#define GL_UNSIGNED_NORMALIZED 0x8C17 -#define GL_FRAMEBUFFER_BINDING 0x8CA6 -#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 -#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_COLOR_ATTACHMENT16 0x8CF0 -#define GL_COLOR_ATTACHMENT17 0x8CF1 -#define GL_COLOR_ATTACHMENT18 0x8CF2 -#define GL_COLOR_ATTACHMENT19 0x8CF3 -#define GL_COLOR_ATTACHMENT20 0x8CF4 -#define GL_COLOR_ATTACHMENT21 0x8CF5 -#define GL_COLOR_ATTACHMENT22 0x8CF6 -#define GL_COLOR_ATTACHMENT23 0x8CF7 -#define GL_COLOR_ATTACHMENT24 0x8CF8 -#define GL_COLOR_ATTACHMENT25 0x8CF9 -#define GL_COLOR_ATTACHMENT26 0x8CFA -#define GL_COLOR_ATTACHMENT27 0x8CFB -#define GL_COLOR_ATTACHMENT28 0x8CFC -#define GL_COLOR_ATTACHMENT29 0x8CFD -#define GL_COLOR_ATTACHMENT30 0x8CFE -#define GL_COLOR_ATTACHMENT31 0x8CFF -#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 -#define GL_INDEX 0x8222 -#define GL_FRAMEBUFFER_SRGB 0x8DB9 -#define GL_HALF_FLOAT 0x140B -#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 -#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 -#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 -#define GL_VERTEX_ARRAY_BINDING 0x85B5 -#define GL_SAMPLER_2D_RECT 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 -#define GL_SAMPLER_BUFFER 0x8DC2 -#define GL_INT_SAMPLER_2D_RECT 0x8DCD -#define GL_INT_SAMPLER_BUFFER 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 -#define GL_TEXTURE_BUFFER 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D -#define GL_TEXTURE_RECTANGLE 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 -#define GL_R8_SNORM 0x8F94 -#define GL_RG8_SNORM 0x8F95 -#define GL_RGB8_SNORM 0x8F96 -#define GL_RGBA8_SNORM 0x8F97 -#define GL_R16_SNORM 0x8F98 -#define GL_RG16_SNORM 0x8F99 -#define GL_RGB16_SNORM 0x8F9A -#define GL_RGBA16_SNORM 0x8F9B -#define GL_SIGNED_NORMALIZED 0x8F9C -#define GL_PRIMITIVE_RESTART 0x8F9D -#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E -#define GL_COPY_READ_BUFFER 0x8F36 -#define GL_COPY_WRITE_BUFFER 0x8F37 -#define GL_UNIFORM_BUFFER 0x8A11 -#define GL_UNIFORM_BUFFER_BINDING 0x8A28 -#define GL_UNIFORM_BUFFER_START 0x8A29 -#define GL_UNIFORM_BUFFER_SIZE 0x8A2A -#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B -#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C -#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D -#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E -#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F -#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 -#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 -#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 -#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 -#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 -#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 -#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 -#define GL_UNIFORM_TYPE 0x8A37 -#define GL_UNIFORM_SIZE 0x8A38 -#define GL_UNIFORM_NAME_LENGTH 0x8A39 -#define GL_UNIFORM_BLOCK_INDEX 0x8A3A -#define GL_UNIFORM_OFFSET 0x8A3B -#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C -#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D -#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E -#define GL_UNIFORM_BLOCK_BINDING 0x8A3F -#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 -#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 -#define GL_INVALID_INDEX 0xFFFFFFFF -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define GL_LINES_ADJACENCY 0x000A -#define GL_LINE_STRIP_ADJACENCY 0x000B -#define GL_TRIANGLES_ADJACENCY 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D -#define GL_PROGRAM_POINT_SIZE 0x8642 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 -#define GL_GEOMETRY_SHADER 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT 0x8916 -#define GL_GEOMETRY_INPUT_TYPE 0x8917 -#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 -#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 -#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 -#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 -#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 -#define GL_CONTEXT_PROFILE_MASK 0x9126 -#define GL_DEPTH_CLAMP 0x864F -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION 0x8E4D -#define GL_LAST_VERTEX_CONVENTION 0x8E4E -#define GL_PROVOKING_VERTEX 0x8E4F -#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F -#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 -#define GL_OBJECT_TYPE 0x9112 -#define GL_SYNC_CONDITION 0x9113 -#define GL_SYNC_STATUS 0x9114 -#define GL_SYNC_FLAGS 0x9115 -#define GL_SYNC_FENCE 0x9116 -#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 -#define GL_UNSIGNALED 0x9118 -#define GL_SIGNALED 0x9119 -#define GL_ALREADY_SIGNALED 0x911A -#define GL_TIMEOUT_EXPIRED 0x911B -#define GL_CONDITION_SATISFIED 0x911C -#define GL_WAIT_FAILED 0x911D -#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFF -#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 -#define GL_SAMPLE_POSITION 0x8E50 -#define GL_SAMPLE_MASK 0x8E51 -#define GL_SAMPLE_MASK_VALUE 0x8E52 -#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 -#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 -#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 -#define GL_TEXTURE_SAMPLES 0x9106 -#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 -#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 -#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A -#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B -#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D -#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E -#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F -#define GL_MAX_INTEGER_SAMPLES 0x9110 -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE -#define GL_SRC1_COLOR 0x88F9 -#define GL_ONE_MINUS_SRC1_COLOR 0x88FA -#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB -#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC -#define GL_ANY_SAMPLES_PASSED 0x8C2F -#define GL_SAMPLER_BINDING 0x8919 -#define GL_RGB10_A2UI 0x906F -#define GL_TEXTURE_SWIZZLE_R 0x8E42 -#define GL_TEXTURE_SWIZZLE_G 0x8E43 -#define GL_TEXTURE_SWIZZLE_B 0x8E44 -#define GL_TEXTURE_SWIZZLE_A 0x8E45 -#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 -#define GL_TIME_ELAPSED 0x88BF -#define GL_TIMESTAMP 0x8E28 -#define GL_INT_2_10_10_10_REV 0x8D9F -#define GL_SAMPLE_SHADING 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F -#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B -#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F -#define GL_DRAW_INDIRECT_BUFFER 0x8F3F -#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43 -#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F -#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C -#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D -#define GL_MAX_VERTEX_STREAMS 0x8E71 -#define GL_DOUBLE_VEC2 0x8FFC -#define GL_DOUBLE_VEC3 0x8FFD -#define GL_DOUBLE_VEC4 0x8FFE -#define GL_DOUBLE_MAT2 0x8F46 -#define GL_DOUBLE_MAT3 0x8F47 -#define GL_DOUBLE_MAT4 0x8F48 -#define GL_DOUBLE_MAT2x3 0x8F49 -#define GL_DOUBLE_MAT2x4 0x8F4A -#define GL_DOUBLE_MAT3x2 0x8F4B -#define GL_DOUBLE_MAT3x4 0x8F4C -#define GL_DOUBLE_MAT4x2 0x8F4D -#define GL_DOUBLE_MAT4x3 0x8F4E -#define GL_ACTIVE_SUBROUTINES 0x8DE5 -#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6 -#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47 -#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48 -#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49 -#define GL_MAX_SUBROUTINES 0x8DE7 -#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8 -#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A -#define GL_COMPATIBLE_SUBROUTINES 0x8E4B -#define GL_PATCHES 0x000E -#define GL_PATCH_VERTICES 0x8E72 -#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73 -#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74 -#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75 -#define GL_TESS_GEN_MODE 0x8E76 -#define GL_TESS_GEN_SPACING 0x8E77 -#define GL_TESS_GEN_VERTEX_ORDER 0x8E78 -#define GL_TESS_GEN_POINT_MODE 0x8E79 -#define GL_ISOLINES 0x8E7A -#define GL_QUADS 0x0007 -#define GL_FRACTIONAL_ODD 0x8E7B -#define GL_FRACTIONAL_EVEN 0x8E7C -#define GL_MAX_PATCH_VERTICES 0x8E7D -#define GL_MAX_TESS_GEN_LEVEL 0x8E7E -#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F -#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80 -#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81 -#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82 -#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83 -#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84 -#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85 -#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86 -#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89 -#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A -#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C -#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D -#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E -#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F -#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1 -#define GL_TESS_EVALUATION_SHADER 0x8E87 -#define GL_TESS_CONTROL_SHADER 0x8E88 -#define GL_TRANSFORM_FEEDBACK 0x8E22 -#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23 -#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24 -#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25 -#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70 -#define GL_FIXED 0x140C -#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B -#define GL_LOW_FLOAT 0x8DF0 -#define GL_MEDIUM_FLOAT 0x8DF1 -#define GL_HIGH_FLOAT 0x8DF2 -#define GL_LOW_INT 0x8DF3 -#define GL_MEDIUM_INT 0x8DF4 -#define GL_HIGH_INT 0x8DF5 -#define GL_SHADER_COMPILER 0x8DFA -#define GL_SHADER_BINARY_FORMATS 0x8DF8 -#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 -#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB -#define GL_MAX_VARYING_VECTORS 0x8DFC -#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD -#define GL_RGB565 0x8D62 -#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 -#define GL_PROGRAM_BINARY_LENGTH 0x8741 -#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE -#define GL_PROGRAM_BINARY_FORMATS 0x87FF -#define GL_VERTEX_SHADER_BIT 0x00000001 -#define GL_FRAGMENT_SHADER_BIT 0x00000002 -#define GL_GEOMETRY_SHADER_BIT 0x00000004 -#define GL_TESS_CONTROL_SHADER_BIT 0x00000008 -#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010 -#define GL_ALL_SHADER_BITS 0xFFFFFFFF -#define GL_PROGRAM_SEPARABLE 0x8258 -#define GL_ACTIVE_PROGRAM 0x8259 -#define GL_PROGRAM_PIPELINE_BINDING 0x825A -#define GL_MAX_VIEWPORTS 0x825B -#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C -#define GL_VIEWPORT_BOUNDS_RANGE 0x825D -#define GL_LAYER_PROVOKING_VERTEX 0x825E -#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F -#define GL_UNDEFINED_VERTEX 0x8260 -#define GL_COPY_READ_BUFFER_BINDING 0x8F36 -#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37 -#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24 -#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23 -#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127 -#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128 -#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129 -#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A -#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B -#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C -#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D -#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E -#define GL_NUM_SAMPLE_COUNTS 0x9380 -#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC -#define GL_ATOMIC_COUNTER_BUFFER 0x92C0 -#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1 -#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2 -#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3 -#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4 -#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5 -#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB -#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE -#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF -#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0 -#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1 -#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2 -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3 -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4 -#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5 -#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6 -#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7 -#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8 -#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC -#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9 -#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA -#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB -#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001 -#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002 -#define GL_UNIFORM_BARRIER_BIT 0x00000004 -#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008 -#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020 -#define GL_COMMAND_BARRIER_BIT 0x00000040 -#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080 -#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100 -#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200 -#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400 -#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800 -#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000 -#define GL_ALL_BARRIER_BITS 0xFFFFFFFF -#define GL_MAX_IMAGE_UNITS 0x8F38 -#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39 -#define GL_IMAGE_BINDING_NAME 0x8F3A -#define GL_IMAGE_BINDING_LEVEL 0x8F3B -#define GL_IMAGE_BINDING_LAYERED 0x8F3C -#define GL_IMAGE_BINDING_LAYER 0x8F3D -#define GL_IMAGE_BINDING_ACCESS 0x8F3E -#define GL_IMAGE_1D 0x904C -#define GL_IMAGE_2D 0x904D -#define GL_IMAGE_3D 0x904E -#define GL_IMAGE_2D_RECT 0x904F -#define GL_IMAGE_CUBE 0x9050 -#define GL_IMAGE_BUFFER 0x9051 -#define GL_IMAGE_1D_ARRAY 0x9052 -#define GL_IMAGE_2D_ARRAY 0x9053 -#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054 -#define GL_IMAGE_2D_MULTISAMPLE 0x9055 -#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056 -#define GL_INT_IMAGE_1D 0x9057 -#define GL_INT_IMAGE_2D 0x9058 -#define GL_INT_IMAGE_3D 0x9059 -#define GL_INT_IMAGE_2D_RECT 0x905A -#define GL_INT_IMAGE_CUBE 0x905B -#define GL_INT_IMAGE_BUFFER 0x905C -#define GL_INT_IMAGE_1D_ARRAY 0x905D -#define GL_INT_IMAGE_2D_ARRAY 0x905E -#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F -#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060 -#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061 -#define GL_UNSIGNED_INT_IMAGE_1D 0x9062 -#define GL_UNSIGNED_INT_IMAGE_2D 0x9063 -#define GL_UNSIGNED_INT_IMAGE_3D 0x9064 -#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065 -#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066 -#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067 -#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068 -#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069 -#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C -#define GL_MAX_IMAGE_SAMPLES 0x906D -#define GL_IMAGE_BINDING_FORMAT 0x906E -#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7 -#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8 -#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9 -#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA -#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB -#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC -#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD -#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE -#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF -#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C -#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D -#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E -#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F -#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F -#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9 -#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E -#define GL_COMPRESSED_RGB8_ETC2 0x9274 -#define GL_COMPRESSED_SRGB8_ETC2 0x9275 -#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276 -#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277 -#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278 -#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279 -#define GL_COMPRESSED_R11_EAC 0x9270 -#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271 -#define GL_COMPRESSED_RG11_EAC 0x9272 -#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273 -#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69 -#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A -#define GL_MAX_ELEMENT_INDEX 0x8D6B -#define GL_COMPUTE_SHADER 0x91B9 -#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB -#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC -#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD -#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262 -#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263 -#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264 -#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265 -#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266 -#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB -#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE -#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF -#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED -#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE -#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF -#define GL_COMPUTE_SHADER_BIT 0x00000020 -#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242 -#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243 -#define GL_DEBUG_CALLBACK_FUNCTION 0x8244 -#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245 -#define GL_DEBUG_SOURCE_API 0x8246 -#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247 -#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248 -#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249 -#define GL_DEBUG_SOURCE_APPLICATION 0x824A -#define GL_DEBUG_SOURCE_OTHER 0x824B -#define GL_DEBUG_TYPE_ERROR 0x824C -#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D -#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E -#define GL_DEBUG_TYPE_PORTABILITY 0x824F -#define GL_DEBUG_TYPE_PERFORMANCE 0x8250 -#define GL_DEBUG_TYPE_OTHER 0x8251 -#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES 0x9145 -#define GL_DEBUG_SEVERITY_HIGH 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM 0x9147 -#define GL_DEBUG_SEVERITY_LOW 0x9148 -#define GL_DEBUG_TYPE_MARKER 0x8268 -#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 -#define GL_DEBUG_TYPE_POP_GROUP 0x826A -#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B -#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C -#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D -#define GL_BUFFER 0x82E0 -#define GL_SHADER 0x82E1 -#define GL_PROGRAM 0x82E2 -#define GL_VERTEX_ARRAY 0x8074 -#define GL_QUERY 0x82E3 -#define GL_PROGRAM_PIPELINE 0x82E4 -#define GL_SAMPLER 0x82E6 -#define GL_MAX_LABEL_LENGTH 0x82E8 -#define GL_DEBUG_OUTPUT 0x92E0 -#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 -#define GL_MAX_UNIFORM_LOCATIONS 0x826E -#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310 -#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311 -#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312 -#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313 -#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314 -#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315 -#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316 -#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317 -#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318 -#define GL_INTERNALFORMAT_SUPPORTED 0x826F -#define GL_INTERNALFORMAT_PREFERRED 0x8270 -#define GL_INTERNALFORMAT_RED_SIZE 0x8271 -#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272 -#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273 -#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274 -#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275 -#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276 -#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277 -#define GL_INTERNALFORMAT_RED_TYPE 0x8278 -#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279 -#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A -#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B -#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C -#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D -#define GL_MAX_WIDTH 0x827E -#define GL_MAX_HEIGHT 0x827F -#define GL_MAX_DEPTH 0x8280 -#define GL_MAX_LAYERS 0x8281 -#define GL_MAX_COMBINED_DIMENSIONS 0x8282 -#define GL_COLOR_COMPONENTS 0x8283 -#define GL_DEPTH_COMPONENTS 0x8284 -#define GL_STENCIL_COMPONENTS 0x8285 -#define GL_COLOR_RENDERABLE 0x8286 -#define GL_DEPTH_RENDERABLE 0x8287 -#define GL_STENCIL_RENDERABLE 0x8288 -#define GL_FRAMEBUFFER_RENDERABLE 0x8289 -#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A -#define GL_FRAMEBUFFER_BLEND 0x828B -#define GL_READ_PIXELS 0x828C -#define GL_READ_PIXELS_FORMAT 0x828D -#define GL_READ_PIXELS_TYPE 0x828E -#define GL_TEXTURE_IMAGE_FORMAT 0x828F -#define GL_TEXTURE_IMAGE_TYPE 0x8290 -#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291 -#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292 -#define GL_MIPMAP 0x8293 -#define GL_MANUAL_GENERATE_MIPMAP 0x8294 -#define GL_AUTO_GENERATE_MIPMAP 0x8295 -#define GL_COLOR_ENCODING 0x8296 -#define GL_SRGB_READ 0x8297 -#define GL_SRGB_WRITE 0x8298 -#define GL_FILTER 0x829A -#define GL_VERTEX_TEXTURE 0x829B -#define GL_TESS_CONTROL_TEXTURE 0x829C -#define GL_TESS_EVALUATION_TEXTURE 0x829D -#define GL_GEOMETRY_TEXTURE 0x829E -#define GL_FRAGMENT_TEXTURE 0x829F -#define GL_COMPUTE_TEXTURE 0x82A0 -#define GL_TEXTURE_SHADOW 0x82A1 -#define GL_TEXTURE_GATHER 0x82A2 -#define GL_TEXTURE_GATHER_SHADOW 0x82A3 -#define GL_SHADER_IMAGE_LOAD 0x82A4 -#define GL_SHADER_IMAGE_STORE 0x82A5 -#define GL_SHADER_IMAGE_ATOMIC 0x82A6 -#define GL_IMAGE_TEXEL_SIZE 0x82A7 -#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8 -#define GL_IMAGE_PIXEL_FORMAT 0x82A9 -#define GL_IMAGE_PIXEL_TYPE 0x82AA -#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC -#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD -#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE -#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF -#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1 -#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2 -#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3 -#define GL_CLEAR_BUFFER 0x82B4 -#define GL_TEXTURE_VIEW 0x82B5 -#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6 -#define GL_FULL_SUPPORT 0x82B7 -#define GL_CAVEAT_SUPPORT 0x82B8 -#define GL_IMAGE_CLASS_4_X_32 0x82B9 -#define GL_IMAGE_CLASS_2_X_32 0x82BA -#define GL_IMAGE_CLASS_1_X_32 0x82BB -#define GL_IMAGE_CLASS_4_X_16 0x82BC -#define GL_IMAGE_CLASS_2_X_16 0x82BD -#define GL_IMAGE_CLASS_1_X_16 0x82BE -#define GL_IMAGE_CLASS_4_X_8 0x82BF -#define GL_IMAGE_CLASS_2_X_8 0x82C0 -#define GL_IMAGE_CLASS_1_X_8 0x82C1 -#define GL_IMAGE_CLASS_11_11_10 0x82C2 -#define GL_IMAGE_CLASS_10_10_10_2 0x82C3 -#define GL_VIEW_CLASS_128_BITS 0x82C4 -#define GL_VIEW_CLASS_96_BITS 0x82C5 -#define GL_VIEW_CLASS_64_BITS 0x82C6 -#define GL_VIEW_CLASS_48_BITS 0x82C7 -#define GL_VIEW_CLASS_32_BITS 0x82C8 -#define GL_VIEW_CLASS_24_BITS 0x82C9 -#define GL_VIEW_CLASS_16_BITS 0x82CA -#define GL_VIEW_CLASS_8_BITS 0x82CB -#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC -#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD -#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE -#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF -#define GL_VIEW_CLASS_RGTC1_RED 0x82D0 -#define GL_VIEW_CLASS_RGTC2_RG 0x82D1 -#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2 -#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3 -#define GL_UNIFORM 0x92E1 -#define GL_UNIFORM_BLOCK 0x92E2 -#define GL_PROGRAM_INPUT 0x92E3 -#define GL_PROGRAM_OUTPUT 0x92E4 -#define GL_BUFFER_VARIABLE 0x92E5 -#define GL_SHADER_STORAGE_BLOCK 0x92E6 -#define GL_VERTEX_SUBROUTINE 0x92E8 -#define GL_TESS_CONTROL_SUBROUTINE 0x92E9 -#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA -#define GL_GEOMETRY_SUBROUTINE 0x92EB -#define GL_FRAGMENT_SUBROUTINE 0x92EC -#define GL_COMPUTE_SUBROUTINE 0x92ED -#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE -#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF -#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0 -#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1 -#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2 -#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3 -#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4 -#define GL_ACTIVE_RESOURCES 0x92F5 -#define GL_MAX_NAME_LENGTH 0x92F6 -#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7 -#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8 -#define GL_NAME_LENGTH 0x92F9 -#define GL_TYPE 0x92FA -#define GL_ARRAY_SIZE 0x92FB -#define GL_OFFSET 0x92FC -#define GL_BLOCK_INDEX 0x92FD -#define GL_ARRAY_STRIDE 0x92FE -#define GL_MATRIX_STRIDE 0x92FF -#define GL_IS_ROW_MAJOR 0x9300 -#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301 -#define GL_BUFFER_BINDING 0x9302 -#define GL_BUFFER_DATA_SIZE 0x9303 -#define GL_NUM_ACTIVE_VARIABLES 0x9304 -#define GL_ACTIVE_VARIABLES 0x9305 -#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306 -#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307 -#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308 -#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309 -#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A -#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B -#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C -#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D -#define GL_LOCATION 0x930E -#define GL_LOCATION_INDEX 0x930F -#define GL_IS_PER_PATCH 0x92E7 -#define GL_SHADER_STORAGE_BUFFER 0x90D2 -#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3 -#define GL_SHADER_STORAGE_BUFFER_START 0x90D4 -#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5 -#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6 -#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7 -#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8 -#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9 -#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA -#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB -#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC -#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD -#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE -#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF -#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000 -#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39 -#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA -#define GL_TEXTURE_BUFFER_OFFSET 0x919D -#define GL_TEXTURE_BUFFER_SIZE 0x919E -#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F -#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB -#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC -#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD -#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE -#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF -#define GL_VERTEX_ATTRIB_BINDING 0x82D4 -#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5 -#define GL_VERTEX_BINDING_DIVISOR 0x82D6 -#define GL_VERTEX_BINDING_OFFSET 0x82D7 -#define GL_VERTEX_BINDING_STRIDE 0x82D8 -#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9 -#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA -#define GL_VERTEX_BINDING_BUFFER 0x8F4F -#define GL_DISPLAY_LIST 0x82E7 -#define GL_STACK_UNDERFLOW 0x0504 -#define GL_STACK_OVERFLOW 0x0503 -#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 -#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221 -#define GL_TEXTURE_BUFFER_BINDING 0x8C2A -#define GL_MAP_PERSISTENT_BIT 0x0040 -#define GL_MAP_COHERENT_BIT 0x0080 -#define GL_DYNAMIC_STORAGE_BIT 0x0100 -#define GL_CLIENT_STORAGE_BIT 0x0200 -#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000 -#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F -#define GL_BUFFER_STORAGE_FLAGS 0x8220 -#define GL_CLEAR_TEXTURE 0x9365 -#define GL_LOCATION_COMPONENT 0x934A -#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B -#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C -#define GL_QUERY_BUFFER 0x9192 -#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000 -#define GL_QUERY_BUFFER_BINDING 0x9193 -#define GL_QUERY_RESULT_NO_WAIT 0x9194 -#define GL_MIRROR_CLAMP_TO_EDGE 0x8743 -#define GL_CONTEXT_LOST 0x0507 -#define GL_NEGATIVE_ONE_TO_ONE 0x935E -#define GL_ZERO_TO_ONE 0x935F -#define GL_CLIP_ORIGIN 0x935C -#define GL_CLIP_DEPTH_MODE 0x935D -#define GL_QUERY_WAIT_INVERTED 0x8E17 -#define GL_QUERY_NO_WAIT_INVERTED 0x8E18 -#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19 -#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A -#define GL_MAX_CULL_DISTANCES 0x82F9 -#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA -#define GL_TEXTURE_TARGET 0x1006 -#define GL_QUERY_TARGET 0x82EA -#define GL_GUILTY_CONTEXT_RESET 0x8253 -#define GL_INNOCENT_CONTEXT_RESET 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET 0x8255 -#define GL_RESET_NOTIFICATION_STRATEGY 0x8256 -#define GL_LOSE_CONTEXT_ON_RESET 0x8252 -#define GL_NO_RESET_NOTIFICATION 0x8261 -#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004 -#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB -#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC -#define GL_SHADER_BINARY_FORMAT_SPIR_V 0x9551 -#define GL_SPIR_V_BINARY 0x9552 -#define GL_PARAMETER_BUFFER 0x80EE -#define GL_PARAMETER_BUFFER_BINDING 0x80EF -#define GL_CONTEXT_FLAG_NO_ERROR_BIT 0x00000008 -#define GL_VERTICES_SUBMITTED 0x82EE -#define GL_PRIMITIVES_SUBMITTED 0x82EF -#define GL_VERTEX_SHADER_INVOCATIONS 0x82F0 -#define GL_TESS_CONTROL_SHADER_PATCHES 0x82F1 -#define GL_TESS_EVALUATION_SHADER_INVOCATIONS 0x82F2 -#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED 0x82F3 -#define GL_FRAGMENT_SHADER_INVOCATIONS 0x82F4 -#define GL_COMPUTE_SHADER_INVOCATIONS 0x82F5 -#define GL_CLIPPING_INPUT_PRIMITIVES 0x82F6 -#define GL_CLIPPING_OUTPUT_PRIMITIVES 0x82F7 -#define GL_POLYGON_OFFSET_CLAMP 0x8E1B -#define GL_SPIR_V_EXTENSIONS 0x9553 -#define GL_NUM_SPIR_V_EXTENSIONS 0x9554 -#define GL_TEXTURE_MAX_ANISOTROPY 0x84FE -#define GL_MAX_TEXTURE_MAX_ANISOTROPY 0x84FF -#define GL_TRANSFORM_FEEDBACK_OVERFLOW 0x82EC -#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW 0x82ED -#define GL_ALIASED_POINT_SIZE_RANGE 0x846D -#define GL_RED_BITS 0x0D52 -#define GL_GREEN_BITS 0x0D53 -#define GL_BLUE_BITS 0x0D54 -#define GL_ALPHA_BITS 0x0D55 -#define GL_DEPTH_BITS 0x0D56 -#define GL_STENCIL_BITS 0x0D57 -#define GL_GENERATE_MIPMAP_HINT 0x8192 -#define GL_LUMINANCE 0x1909 -#define GL_LUMINANCE_ALPHA 0x190A -#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9 -#define GL_MULTISAMPLE_LINE_WIDTH_RANGE 0x9381 -#define GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY 0x9382 -#define GL_MULTIPLY 0x9294 -#define GL_SCREEN 0x9295 -#define GL_OVERLAY 0x9296 -#define GL_DARKEN 0x9297 -#define GL_LIGHTEN 0x9298 -#define GL_COLORDODGE 0x9299 -#define GL_COLORBURN 0x929A -#define GL_HARDLIGHT 0x929B -#define GL_SOFTLIGHT 0x929C -#define GL_DIFFERENCE 0x929E -#define GL_EXCLUSION 0x92A0 -#define GL_HSL_HUE 0x92AD -#define GL_HSL_SATURATION 0x92AE -#define GL_HSL_COLOR 0x92AF -#define GL_HSL_LUMINOSITY 0x92B0 -#define GL_PRIMITIVE_BOUNDING_BOX 0x92BE -#define GL_COMPRESSED_RGBA_ASTC_4x4 0x93B0 -#define GL_COMPRESSED_RGBA_ASTC_5x4 0x93B1 -#define GL_COMPRESSED_RGBA_ASTC_5x5 0x93B2 -#define GL_COMPRESSED_RGBA_ASTC_6x5 0x93B3 -#define GL_COMPRESSED_RGBA_ASTC_6x6 0x93B4 -#define GL_COMPRESSED_RGBA_ASTC_8x5 0x93B5 -#define GL_COMPRESSED_RGBA_ASTC_8x6 0x93B6 -#define GL_COMPRESSED_RGBA_ASTC_8x8 0x93B7 -#define GL_COMPRESSED_RGBA_ASTC_10x5 0x93B8 -#define GL_COMPRESSED_RGBA_ASTC_10x6 0x93B9 -#define GL_COMPRESSED_RGBA_ASTC_10x8 0x93BA -#define GL_COMPRESSED_RGBA_ASTC_10x10 0x93BB -#define GL_COMPRESSED_RGBA_ASTC_12x10 0x93BC -#define GL_COMPRESSED_RGBA_ASTC_12x12 0x93BD -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4 0x93D0 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4 0x93D1 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5 0x93D2 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5 0x93D3 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6 0x93D4 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5 0x93D5 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6 0x93D6 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8 0x93D7 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5 0x93D8 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6 0x93D9 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8 0x93DA -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10 0x93DB -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10 0x93DC -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12 0x93DD -#ifndef GL_VERSION_1_0 -#define GL_VERSION_1_0 1 -GLAPI int GLAD_GL_VERSION_1_0; -typedef void (APIENTRYP PFNGLCULLFACEPROC)(GLenum mode); -GLAPI PFNGLCULLFACEPROC glad_glCullFace; -#define glCullFace glad_glCullFace -typedef void (APIENTRYP PFNGLFRONTFACEPROC)(GLenum mode); -GLAPI PFNGLFRONTFACEPROC glad_glFrontFace; -#define glFrontFace glad_glFrontFace -typedef void (APIENTRYP PFNGLHINTPROC)(GLenum target, GLenum mode); -GLAPI PFNGLHINTPROC glad_glHint; -#define glHint glad_glHint -typedef void (APIENTRYP PFNGLLINEWIDTHPROC)(GLfloat width); -GLAPI PFNGLLINEWIDTHPROC glad_glLineWidth; -#define glLineWidth glad_glLineWidth -typedef void (APIENTRYP PFNGLPOINTSIZEPROC)(GLfloat size); -GLAPI PFNGLPOINTSIZEPROC glad_glPointSize; -#define glPointSize glad_glPointSize -typedef void (APIENTRYP PFNGLPOLYGONMODEPROC)(GLenum face, GLenum mode); -GLAPI PFNGLPOLYGONMODEPROC glad_glPolygonMode; -#define glPolygonMode glad_glPolygonMode -typedef void (APIENTRYP PFNGLSCISSORPROC)(GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLSCISSORPROC glad_glScissor; -#define glScissor glad_glScissor -typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC)(GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLTEXPARAMETERFPROC glad_glTexParameterf; -#define glTexParameterf glad_glTexParameterf -typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -#define glTexParameterfv glad_glTexParameterfv -typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -#define glTexParameteri glad_glTexParameteri -typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -#define glTexParameteriv glad_glTexParameteriv -typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -#define glTexImage1D glad_glTexImage1D -typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -#define glTexImage2D glad_glTexImage2D -typedef void (APIENTRYP PFNGLDRAWBUFFERPROC)(GLenum buf); -GLAPI PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -#define glDrawBuffer glad_glDrawBuffer -typedef void (APIENTRYP PFNGLCLEARPROC)(GLbitfield mask); -GLAPI PFNGLCLEARPROC glad_glClear; -#define glClear glad_glClear -typedef void (APIENTRYP PFNGLCLEARCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLCLEARCOLORPROC glad_glClearColor; -#define glClearColor glad_glClearColor -typedef void (APIENTRYP PFNGLCLEARSTENCILPROC)(GLint s); -GLAPI PFNGLCLEARSTENCILPROC glad_glClearStencil; -#define glClearStencil glad_glClearStencil -typedef void (APIENTRYP PFNGLCLEARDEPTHPROC)(GLdouble depth); -GLAPI PFNGLCLEARDEPTHPROC glad_glClearDepth; -#define glClearDepth glad_glClearDepth -typedef void (APIENTRYP PFNGLSTENCILMASKPROC)(GLuint mask); -GLAPI PFNGLSTENCILMASKPROC glad_glStencilMask; -#define glStencilMask glad_glStencilMask -typedef void (APIENTRYP PFNGLCOLORMASKPROC)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -GLAPI PFNGLCOLORMASKPROC glad_glColorMask; -#define glColorMask glad_glColorMask -typedef void (APIENTRYP PFNGLDEPTHMASKPROC)(GLboolean flag); -GLAPI PFNGLDEPTHMASKPROC glad_glDepthMask; -#define glDepthMask glad_glDepthMask -typedef void (APIENTRYP PFNGLDISABLEPROC)(GLenum cap); -GLAPI PFNGLDISABLEPROC glad_glDisable; -#define glDisable glad_glDisable -typedef void (APIENTRYP PFNGLENABLEPROC)(GLenum cap); -GLAPI PFNGLENABLEPROC glad_glEnable; -#define glEnable glad_glEnable -typedef void (APIENTRYP PFNGLFINISHPROC)(void); -GLAPI PFNGLFINISHPROC glad_glFinish; -#define glFinish glad_glFinish -typedef void (APIENTRYP PFNGLFLUSHPROC)(void); -GLAPI PFNGLFLUSHPROC glad_glFlush; -#define glFlush glad_glFlush -typedef void (APIENTRYP PFNGLBLENDFUNCPROC)(GLenum sfactor, GLenum dfactor); -GLAPI PFNGLBLENDFUNCPROC glad_glBlendFunc; -#define glBlendFunc glad_glBlendFunc -typedef void (APIENTRYP PFNGLLOGICOPPROC)(GLenum opcode); -GLAPI PFNGLLOGICOPPROC glad_glLogicOp; -#define glLogicOp glad_glLogicOp -typedef void (APIENTRYP PFNGLSTENCILFUNCPROC)(GLenum func, GLint ref, GLuint mask); -GLAPI PFNGLSTENCILFUNCPROC glad_glStencilFunc; -#define glStencilFunc glad_glStencilFunc -typedef void (APIENTRYP PFNGLSTENCILOPPROC)(GLenum fail, GLenum zfail, GLenum zpass); -GLAPI PFNGLSTENCILOPPROC glad_glStencilOp; -#define glStencilOp glad_glStencilOp -typedef void (APIENTRYP PFNGLDEPTHFUNCPROC)(GLenum func); -GLAPI PFNGLDEPTHFUNCPROC glad_glDepthFunc; -#define glDepthFunc glad_glDepthFunc -typedef void (APIENTRYP PFNGLPIXELSTOREFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPIXELSTOREFPROC glad_glPixelStoref; -#define glPixelStoref glad_glPixelStoref -typedef void (APIENTRYP PFNGLPIXELSTOREIPROC)(GLenum pname, GLint param); -GLAPI PFNGLPIXELSTOREIPROC glad_glPixelStorei; -#define glPixelStorei glad_glPixelStorei -typedef void (APIENTRYP PFNGLREADBUFFERPROC)(GLenum src); -GLAPI PFNGLREADBUFFERPROC glad_glReadBuffer; -#define glReadBuffer glad_glReadBuffer -typedef void (APIENTRYP PFNGLREADPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); -GLAPI PFNGLREADPIXELSPROC glad_glReadPixels; -#define glReadPixels glad_glReadPixels -typedef void (APIENTRYP PFNGLGETBOOLEANVPROC)(GLenum pname, GLboolean *data); -GLAPI PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -#define glGetBooleanv glad_glGetBooleanv -typedef void (APIENTRYP PFNGLGETDOUBLEVPROC)(GLenum pname, GLdouble *data); -GLAPI PFNGLGETDOUBLEVPROC glad_glGetDoublev; -#define glGetDoublev glad_glGetDoublev -typedef GLenum (APIENTRYP PFNGLGETERRORPROC)(void); -GLAPI PFNGLGETERRORPROC glad_glGetError; -#define glGetError glad_glGetError -typedef void (APIENTRYP PFNGLGETFLOATVPROC)(GLenum pname, GLfloat *data); -GLAPI PFNGLGETFLOATVPROC glad_glGetFloatv; -#define glGetFloatv glad_glGetFloatv -typedef void (APIENTRYP PFNGLGETINTEGERVPROC)(GLenum pname, GLint *data); -GLAPI PFNGLGETINTEGERVPROC glad_glGetIntegerv; -#define glGetIntegerv glad_glGetIntegerv -typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC)(GLenum name); -GLAPI PFNGLGETSTRINGPROC glad_glGetString; -#define glGetString glad_glGetString -typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC)(GLenum target, GLint level, GLenum format, GLenum type, void *pixels); -GLAPI PFNGLGETTEXIMAGEPROC glad_glGetTexImage; -#define glGetTexImage glad_glGetTexImage -typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -#define glGetTexParameterfv glad_glGetTexParameterfv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -#define glGetTexParameteriv glad_glGetTexParameteriv -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC)(GLenum target, GLint level, GLenum pname, GLfloat *params); -GLAPI PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; -#define glGetTexLevelParameterfv glad_glGetTexLevelParameterfv -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC)(GLenum target, GLint level, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -#define glGetTexLevelParameteriv glad_glGetTexLevelParameteriv -typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC)(GLenum cap); -GLAPI PFNGLISENABLEDPROC glad_glIsEnabled; -#define glIsEnabled glad_glIsEnabled -typedef void (APIENTRYP PFNGLDEPTHRANGEPROC)(GLdouble n, GLdouble f); -GLAPI PFNGLDEPTHRANGEPROC glad_glDepthRange; -#define glDepthRange glad_glDepthRange -typedef void (APIENTRYP PFNGLVIEWPORTPROC)(GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLVIEWPORTPROC glad_glViewport; -#define glViewport glad_glViewport -#endif -#ifndef GL_VERSION_1_1 -#define GL_VERSION_1_1 1 -GLAPI int GLAD_GL_VERSION_1_1; -typedef void (APIENTRYP PFNGLDRAWARRAYSPROC)(GLenum mode, GLint first, GLsizei count); -GLAPI PFNGLDRAWARRAYSPROC glad_glDrawArrays; -#define glDrawArrays glad_glDrawArrays -typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices); -GLAPI PFNGLDRAWELEMENTSPROC glad_glDrawElements; -#define glDrawElements glad_glDrawElements -typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC)(GLfloat factor, GLfloat units); -GLAPI PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -#define glPolygonOffset glad_glPolygonOffset -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -#define glCopyTexImage1D glad_glCopyTexImage1D -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -#define glCopyTexImage2D glad_glCopyTexImage2D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; -#define glCopyTexSubImage1D glad_glCopyTexSubImage1D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -#define glCopyTexSubImage2D glad_glCopyTexSubImage2D -typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -#define glTexSubImage1D glad_glTexSubImage1D -typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; -#define glTexSubImage2D glad_glTexSubImage2D -typedef void (APIENTRYP PFNGLBINDTEXTUREPROC)(GLenum target, GLuint texture); -GLAPI PFNGLBINDTEXTUREPROC glad_glBindTexture; -#define glBindTexture glad_glBindTexture -typedef void (APIENTRYP PFNGLDELETETEXTURESPROC)(GLsizei n, const GLuint *textures); -GLAPI PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -#define glDeleteTextures glad_glDeleteTextures -typedef void (APIENTRYP PFNGLGENTEXTURESPROC)(GLsizei n, GLuint *textures); -GLAPI PFNGLGENTEXTURESPROC glad_glGenTextures; -#define glGenTextures glad_glGenTextures -typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC)(GLuint texture); -GLAPI PFNGLISTEXTUREPROC glad_glIsTexture; -#define glIsTexture glad_glIsTexture -#endif -#ifndef GL_VERSION_1_2 -#define GL_VERSION_1_2 1 -GLAPI int GLAD_GL_VERSION_1_2; -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); -GLAPI PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -#define glDrawRangeElements glad_glDrawRangeElements -typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -#define glTexImage3D glad_glTexImage3D -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 void *pixels); -GLAPI PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -#define glTexSubImage3D glad_glTexSubImage3D -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -#define glCopyTexSubImage3D glad_glCopyTexSubImage3D -#endif -#ifndef GL_VERSION_1_3 -#define GL_VERSION_1_3 1 -GLAPI int GLAD_GL_VERSION_1_3; -typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture); -GLAPI PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -#define glActiveTexture glad_glActiveTexture -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC)(GLfloat value, GLboolean invert); -GLAPI PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -#define glSampleCoverage glad_glSampleCoverage -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -#define glCompressedTexImage3D glad_glCompressedTexImage3D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -#define glCompressedTexImage2D glad_glCompressedTexImage2D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -#define glCompressedTexImage1D glad_glCompressedTexImage1D -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 void *data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -#define glCompressedTexSubImage3D glad_glCompressedTexSubImage3D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -#define glCompressedTexSubImage2D glad_glCompressedTexSubImage2D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -#define glCompressedTexSubImage1D glad_glCompressedTexSubImage1D -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC)(GLenum target, GLint level, void *img); -GLAPI PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -#define glGetCompressedTexImage glad_glGetCompressedTexImage -#endif -#ifndef GL_VERSION_1_4 -#define GL_VERSION_1_4 1 -GLAPI int GLAD_GL_VERSION_1_4; -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -#define glBlendFuncSeparate glad_glBlendFuncSeparate -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC)(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); -GLAPI PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -#define glMultiDrawArrays glad_glMultiDrawArrays -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC)(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount); -GLAPI PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -#define glMultiDrawElements glad_glMultiDrawElements -typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -#define glPointParameterf glad_glPointParameterf -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -#define glPointParameterfv glad_glPointParameterfv -typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC)(GLenum pname, GLint param); -GLAPI PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -#define glPointParameteri glad_glPointParameteri -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC)(GLenum pname, const GLint *params); -GLAPI PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -#define glPointParameteriv glad_glPointParameteriv -typedef void (APIENTRYP PFNGLBLENDCOLORPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLBLENDCOLORPROC glad_glBlendColor; -#define glBlendColor glad_glBlendColor -typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC)(GLenum mode); -GLAPI PFNGLBLENDEQUATIONPROC glad_glBlendEquation; -#define glBlendEquation glad_glBlendEquation -#endif -#ifndef GL_VERSION_1_5 -#define GL_VERSION_1_5 1 -GLAPI int GLAD_GL_VERSION_1_5; -typedef void (APIENTRYP PFNGLGENQUERIESPROC)(GLsizei n, GLuint *ids); -GLAPI PFNGLGENQUERIESPROC glad_glGenQueries; -#define glGenQueries glad_glGenQueries -typedef void (APIENTRYP PFNGLDELETEQUERIESPROC)(GLsizei n, const GLuint *ids); -GLAPI PFNGLDELETEQUERIESPROC glad_glDeleteQueries; -#define glDeleteQueries glad_glDeleteQueries -typedef GLboolean (APIENTRYP PFNGLISQUERYPROC)(GLuint id); -GLAPI PFNGLISQUERYPROC glad_glIsQuery; -#define glIsQuery glad_glIsQuery -typedef void (APIENTRYP PFNGLBEGINQUERYPROC)(GLenum target, GLuint id); -GLAPI PFNGLBEGINQUERYPROC glad_glBeginQuery; -#define glBeginQuery glad_glBeginQuery -typedef void (APIENTRYP PFNGLENDQUERYPROC)(GLenum target); -GLAPI PFNGLENDQUERYPROC glad_glEndQuery; -#define glEndQuery glad_glEndQuery -typedef void (APIENTRYP PFNGLGETQUERYIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETQUERYIVPROC glad_glGetQueryiv; -#define glGetQueryiv glad_glGetQueryiv -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC)(GLuint id, GLenum pname, GLint *params); -GLAPI PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -#define glGetQueryObjectiv glad_glGetQueryObjectiv -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC)(GLuint id, GLenum pname, GLuint *params); -GLAPI PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -#define glGetQueryObjectuiv glad_glGetQueryObjectuiv -typedef void (APIENTRYP PFNGLBINDBUFFERPROC)(GLenum target, GLuint buffer); -GLAPI PFNGLBINDBUFFERPROC glad_glBindBuffer; -#define glBindBuffer glad_glBindBuffer -typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC)(GLsizei n, const GLuint *buffers); -GLAPI PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -#define glDeleteBuffers glad_glDeleteBuffers -typedef void (APIENTRYP PFNGLGENBUFFERSPROC)(GLsizei n, GLuint *buffers); -GLAPI PFNGLGENBUFFERSPROC glad_glGenBuffers; -#define glGenBuffers glad_glGenBuffers -typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC)(GLuint buffer); -GLAPI PFNGLISBUFFERPROC glad_glIsBuffer; -#define glIsBuffer glad_glIsBuffer -typedef void (APIENTRYP PFNGLBUFFERDATAPROC)(GLenum target, GLsizeiptr size, const void *data, GLenum usage); -GLAPI PFNGLBUFFERDATAPROC glad_glBufferData; -#define glBufferData glad_glBufferData -typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, const void *data); -GLAPI PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -#define glBufferSubData glad_glBufferSubData -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC)(GLenum target, GLintptr offset, GLsizeiptr size, void *data); -GLAPI PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -#define glGetBufferSubData glad_glGetBufferSubData -typedef void * (APIENTRYP PFNGLMAPBUFFERPROC)(GLenum target, GLenum access); -GLAPI PFNGLMAPBUFFERPROC glad_glMapBuffer; -#define glMapBuffer glad_glMapBuffer -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC)(GLenum target); -GLAPI PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -#define glUnmapBuffer glad_glUnmapBuffer -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; -#define glGetBufferParameteriv glad_glGetBufferParameteriv -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC)(GLenum target, GLenum pname, void **params); -GLAPI PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -#define glGetBufferPointerv glad_glGetBufferPointerv -#endif -#ifndef GL_VERSION_2_0 -#define GL_VERSION_2_0 1 -GLAPI int GLAD_GL_VERSION_2_0; -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC)(GLenum modeRGB, GLenum modeAlpha); -GLAPI PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -#define glBlendEquationSeparate glad_glBlendEquationSeparate -typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC)(GLsizei n, const GLenum *bufs); -GLAPI PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; -#define glDrawBuffers glad_glDrawBuffers -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -GLAPI PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -#define glStencilOpSeparate glad_glStencilOpSeparate -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC)(GLenum face, GLenum func, GLint ref, GLuint mask); -GLAPI PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -#define glStencilFuncSeparate glad_glStencilFuncSeparate -typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC)(GLenum face, GLuint mask); -GLAPI PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -#define glStencilMaskSeparate glad_glStencilMaskSeparate -typedef void (APIENTRYP PFNGLATTACHSHADERPROC)(GLuint program, GLuint shader); -GLAPI PFNGLATTACHSHADERPROC glad_glAttachShader; -#define glAttachShader glad_glAttachShader -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC)(GLuint program, GLuint index, const GLchar *name); -GLAPI PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -#define glBindAttribLocation glad_glBindAttribLocation -typedef void (APIENTRYP PFNGLCOMPILESHADERPROC)(GLuint shader); -GLAPI PFNGLCOMPILESHADERPROC glad_glCompileShader; -#define glCompileShader glad_glCompileShader -typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC)(void); -GLAPI PFNGLCREATEPROGRAMPROC glad_glCreateProgram; -#define glCreateProgram glad_glCreateProgram -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC)(GLenum type); -GLAPI PFNGLCREATESHADERPROC glad_glCreateShader; -#define glCreateShader glad_glCreateShader -typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC)(GLuint program); -GLAPI PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -#define glDeleteProgram glad_glDeleteProgram -typedef void (APIENTRYP PFNGLDELETESHADERPROC)(GLuint shader); -GLAPI PFNGLDELETESHADERPROC glad_glDeleteShader; -#define glDeleteShader glad_glDeleteShader -typedef void (APIENTRYP PFNGLDETACHSHADERPROC)(GLuint program, GLuint shader); -GLAPI PFNGLDETACHSHADERPROC glad_glDetachShader; -#define glDetachShader glad_glDetachShader -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC)(GLuint index); -GLAPI PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -#define glDisableVertexAttribArray glad_glDisableVertexAttribArray -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC)(GLuint index); -GLAPI PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; -#define glEnableVertexAttribArray glad_glEnableVertexAttribArray -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -GLAPI PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -#define glGetActiveAttrib glad_glGetActiveAttrib -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -GLAPI PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -#define glGetActiveUniform glad_glGetActiveUniform -typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC)(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); -GLAPI PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -#define glGetAttachedShaders glad_glGetAttachedShaders -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC)(GLuint program, const GLchar *name); -GLAPI PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; -#define glGetAttribLocation glad_glGetAttribLocation -typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC)(GLuint program, GLenum pname, GLint *params); -GLAPI PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -#define glGetProgramiv glad_glGetProgramiv -typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC)(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -#define glGetProgramInfoLog glad_glGetProgramInfoLog -typedef void (APIENTRYP PFNGLGETSHADERIVPROC)(GLuint shader, GLenum pname, GLint *params); -GLAPI PFNGLGETSHADERIVPROC glad_glGetShaderiv; -#define glGetShaderiv glad_glGetShaderiv -typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -#define glGetShaderInfoLog glad_glGetShaderInfoLog -typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); -GLAPI PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; -#define glGetShaderSource glad_glGetShaderSource -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC)(GLuint program, const GLchar *name); -GLAPI PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -#define glGetUniformLocation glad_glGetUniformLocation -typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC)(GLuint program, GLint location, GLfloat *params); -GLAPI PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -#define glGetUniformfv glad_glGetUniformfv -typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC)(GLuint program, GLint location, GLint *params); -GLAPI PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -#define glGetUniformiv glad_glGetUniformiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC)(GLuint index, GLenum pname, GLdouble *params); -GLAPI PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -#define glGetVertexAttribdv glad_glGetVertexAttribdv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC)(GLuint index, GLenum pname, GLfloat *params); -GLAPI PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -#define glGetVertexAttribfv glad_glGetVertexAttribfv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC)(GLuint index, GLenum pname, GLint *params); -GLAPI PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -#define glGetVertexAttribiv glad_glGetVertexAttribiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC)(GLuint index, GLenum pname, void **pointer); -GLAPI PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -#define glGetVertexAttribPointerv glad_glGetVertexAttribPointerv -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC)(GLuint program); -GLAPI PFNGLISPROGRAMPROC glad_glIsProgram; -#define glIsProgram glad_glIsProgram -typedef GLboolean (APIENTRYP PFNGLISSHADERPROC)(GLuint shader); -GLAPI PFNGLISSHADERPROC glad_glIsShader; -#define glIsShader glad_glIsShader -typedef void (APIENTRYP PFNGLLINKPROGRAMPROC)(GLuint program); -GLAPI PFNGLLINKPROGRAMPROC glad_glLinkProgram; -#define glLinkProgram glad_glLinkProgram -typedef void (APIENTRYP PFNGLSHADERSOURCEPROC)(GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length); -GLAPI PFNGLSHADERSOURCEPROC glad_glShaderSource; -#define glShaderSource glad_glShaderSource -typedef void (APIENTRYP PFNGLUSEPROGRAMPROC)(GLuint program); -GLAPI PFNGLUSEPROGRAMPROC glad_glUseProgram; -#define glUseProgram glad_glUseProgram -typedef void (APIENTRYP PFNGLUNIFORM1FPROC)(GLint location, GLfloat v0); -GLAPI PFNGLUNIFORM1FPROC glad_glUniform1f; -#define glUniform1f glad_glUniform1f -typedef void (APIENTRYP PFNGLUNIFORM2FPROC)(GLint location, GLfloat v0, GLfloat v1); -GLAPI PFNGLUNIFORM2FPROC glad_glUniform2f; -#define glUniform2f glad_glUniform2f -typedef void (APIENTRYP PFNGLUNIFORM3FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI PFNGLUNIFORM3FPROC glad_glUniform3f; -#define glUniform3f glad_glUniform3f -typedef void (APIENTRYP PFNGLUNIFORM4FPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI PFNGLUNIFORM4FPROC glad_glUniform4f; -#define glUniform4f glad_glUniform4f -typedef void (APIENTRYP PFNGLUNIFORM1IPROC)(GLint location, GLint v0); -GLAPI PFNGLUNIFORM1IPROC glad_glUniform1i; -#define glUniform1i glad_glUniform1i -typedef void (APIENTRYP PFNGLUNIFORM2IPROC)(GLint location, GLint v0, GLint v1); -GLAPI PFNGLUNIFORM2IPROC glad_glUniform2i; -#define glUniform2i glad_glUniform2i -typedef void (APIENTRYP PFNGLUNIFORM3IPROC)(GLint location, GLint v0, GLint v1, GLint v2); -GLAPI PFNGLUNIFORM3IPROC glad_glUniform3i; -#define glUniform3i glad_glUniform3i -typedef void (APIENTRYP PFNGLUNIFORM4IPROC)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI PFNGLUNIFORM4IPROC glad_glUniform4i; -#define glUniform4i glad_glUniform4i -typedef void (APIENTRYP PFNGLUNIFORM1FVPROC)(GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLUNIFORM1FVPROC glad_glUniform1fv; -#define glUniform1fv glad_glUniform1fv -typedef void (APIENTRYP PFNGLUNIFORM2FVPROC)(GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLUNIFORM2FVPROC glad_glUniform2fv; -#define glUniform2fv glad_glUniform2fv -typedef void (APIENTRYP PFNGLUNIFORM3FVPROC)(GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLUNIFORM3FVPROC glad_glUniform3fv; -#define glUniform3fv glad_glUniform3fv -typedef void (APIENTRYP PFNGLUNIFORM4FVPROC)(GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLUNIFORM4FVPROC glad_glUniform4fv; -#define glUniform4fv glad_glUniform4fv -typedef void (APIENTRYP PFNGLUNIFORM1IVPROC)(GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLUNIFORM1IVPROC glad_glUniform1iv; -#define glUniform1iv glad_glUniform1iv -typedef void (APIENTRYP PFNGLUNIFORM2IVPROC)(GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLUNIFORM2IVPROC glad_glUniform2iv; -#define glUniform2iv glad_glUniform2iv -typedef void (APIENTRYP PFNGLUNIFORM3IVPROC)(GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLUNIFORM3IVPROC glad_glUniform3iv; -#define glUniform3iv glad_glUniform3iv -typedef void (APIENTRYP PFNGLUNIFORM4IVPROC)(GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLUNIFORM4IVPROC glad_glUniform4iv; -#define glUniform4iv glad_glUniform4iv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; -#define glUniformMatrix2fv glad_glUniformMatrix2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -#define glUniformMatrix3fv glad_glUniformMatrix3fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; -#define glUniformMatrix4fv glad_glUniformMatrix4fv -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC)(GLuint program); -GLAPI PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -#define glValidateProgram glad_glValidateProgram -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC)(GLuint index, GLdouble x); -GLAPI PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -#define glVertexAttrib1d glad_glVertexAttrib1d -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -#define glVertexAttrib1dv glad_glVertexAttrib1dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC)(GLuint index, GLfloat x); -GLAPI PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; -#define glVertexAttrib1f glad_glVertexAttrib1f -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; -#define glVertexAttrib1fv glad_glVertexAttrib1fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC)(GLuint index, GLshort x); -GLAPI PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -#define glVertexAttrib1s glad_glVertexAttrib1s -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -#define glVertexAttrib1sv glad_glVertexAttrib1sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC)(GLuint index, GLdouble x, GLdouble y); -GLAPI PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -#define glVertexAttrib2d glad_glVertexAttrib2d -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -#define glVertexAttrib2dv glad_glVertexAttrib2dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC)(GLuint index, GLfloat x, GLfloat y); -GLAPI PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -#define glVertexAttrib2f glad_glVertexAttrib2f -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -#define glVertexAttrib2fv glad_glVertexAttrib2fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC)(GLuint index, GLshort x, GLshort y); -GLAPI PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -#define glVertexAttrib2s glad_glVertexAttrib2s -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -#define glVertexAttrib2sv glad_glVertexAttrib2sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -#define glVertexAttrib3d glad_glVertexAttrib3d -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; -#define glVertexAttrib3dv glad_glVertexAttrib3dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; -#define glVertexAttrib3f glad_glVertexAttrib3f -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -#define glVertexAttrib3fv glad_glVertexAttrib3fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC)(GLuint index, GLshort x, GLshort y, GLshort z); -GLAPI PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -#define glVertexAttrib3s glad_glVertexAttrib3s -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -#define glVertexAttrib3sv glad_glVertexAttrib3sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC)(GLuint index, const GLbyte *v); -GLAPI PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -#define glVertexAttrib4Nbv glad_glVertexAttrib4Nbv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -#define glVertexAttrib4Niv glad_glVertexAttrib4Niv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -#define glVertexAttrib4Nsv glad_glVertexAttrib4Nsv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -GLAPI PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -#define glVertexAttrib4Nub glad_glVertexAttrib4Nub -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC)(GLuint index, const GLubyte *v); -GLAPI PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -#define glVertexAttrib4Nubv glad_glVertexAttrib4Nubv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -#define glVertexAttrib4Nuiv glad_glVertexAttrib4Nuiv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC)(GLuint index, const GLushort *v); -GLAPI PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -#define glVertexAttrib4Nusv glad_glVertexAttrib4Nusv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC)(GLuint index, const GLbyte *v); -GLAPI PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -#define glVertexAttrib4bv glad_glVertexAttrib4bv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; -#define glVertexAttrib4d glad_glVertexAttrib4d -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -#define glVertexAttrib4dv glad_glVertexAttrib4dv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -#define glVertexAttrib4f glad_glVertexAttrib4f -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; -#define glVertexAttrib4fv glad_glVertexAttrib4fv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; -#define glVertexAttrib4iv glad_glVertexAttrib4iv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -#define glVertexAttrib4s glad_glVertexAttrib4s -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -#define glVertexAttrib4sv glad_glVertexAttrib4sv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC)(GLuint index, const GLubyte *v); -GLAPI PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; -#define glVertexAttrib4ubv glad_glVertexAttrib4ubv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -#define glVertexAttrib4uiv glad_glVertexAttrib4uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC)(GLuint index, const GLushort *v); -GLAPI PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -#define glVertexAttrib4usv glad_glVertexAttrib4usv -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -#define glVertexAttribPointer glad_glVertexAttribPointer -#endif -#ifndef GL_VERSION_2_1 -#define GL_VERSION_2_1 1 -GLAPI int GLAD_GL_VERSION_2_1; -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -#define glUniformMatrix2x3fv glad_glUniformMatrix2x3fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -#define glUniformMatrix3x2fv glad_glUniformMatrix3x2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; -#define glUniformMatrix2x4fv glad_glUniformMatrix2x4fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -#define glUniformMatrix4x2fv glad_glUniformMatrix4x2fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -#define glUniformMatrix3x4fv glad_glUniformMatrix3x4fv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -#define glUniformMatrix4x3fv glad_glUniformMatrix4x3fv -#endif -#ifndef GL_VERSION_3_0 -#define GL_VERSION_3_0 1 -GLAPI int GLAD_GL_VERSION_3_0; -typedef void (APIENTRYP PFNGLCOLORMASKIPROC)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -GLAPI PFNGLCOLORMASKIPROC glad_glColorMaski; -#define glColorMaski glad_glColorMaski -typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC)(GLenum target, GLuint index, GLboolean *data); -GLAPI PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -#define glGetBooleani_v glad_glGetBooleani_v -typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC)(GLenum target, GLuint index, GLint *data); -GLAPI PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -#define glGetIntegeri_v glad_glGetIntegeri_v -typedef void (APIENTRYP PFNGLENABLEIPROC)(GLenum target, GLuint index); -GLAPI PFNGLENABLEIPROC glad_glEnablei; -#define glEnablei glad_glEnablei -typedef void (APIENTRYP PFNGLDISABLEIPROC)(GLenum target, GLuint index); -GLAPI PFNGLDISABLEIPROC glad_glDisablei; -#define glDisablei glad_glDisablei -typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC)(GLenum target, GLuint index); -GLAPI PFNGLISENABLEDIPROC glad_glIsEnabledi; -#define glIsEnabledi glad_glIsEnabledi -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC)(GLenum primitiveMode); -GLAPI PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -#define glBeginTransformFeedback glad_glBeginTransformFeedback -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC)(void); -GLAPI PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -#define glEndTransformFeedback glad_glEndTransformFeedback -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -#define glBindBufferRange glad_glBindBufferRange -typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC)(GLenum target, GLuint index, GLuint buffer); -GLAPI PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -#define glBindBufferBase glad_glBindBufferBase -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC)(GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); -GLAPI PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -#define glTransformFeedbackVaryings glad_glTransformFeedbackVaryings -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -GLAPI PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -#define glGetTransformFeedbackVarying glad_glGetTransformFeedbackVarying -typedef void (APIENTRYP PFNGLCLAMPCOLORPROC)(GLenum target, GLenum clamp); -GLAPI PFNGLCLAMPCOLORPROC glad_glClampColor; -#define glClampColor glad_glClampColor -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC)(GLuint id, GLenum mode); -GLAPI PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; -#define glBeginConditionalRender glad_glBeginConditionalRender -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC)(void); -GLAPI PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -#define glEndConditionalRender glad_glEndConditionalRender -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC)(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -#define glVertexAttribIPointer glad_glVertexAttribIPointer -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC)(GLuint index, GLenum pname, GLint *params); -GLAPI PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -#define glGetVertexAttribIiv glad_glGetVertexAttribIiv -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC)(GLuint index, GLenum pname, GLuint *params); -GLAPI PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -#define glGetVertexAttribIuiv glad_glGetVertexAttribIuiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC)(GLuint index, GLint x); -GLAPI PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; -#define glVertexAttribI1i glad_glVertexAttribI1i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC)(GLuint index, GLint x, GLint y); -GLAPI PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; -#define glVertexAttribI2i glad_glVertexAttribI2i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC)(GLuint index, GLint x, GLint y, GLint z); -GLAPI PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -#define glVertexAttribI3i glad_glVertexAttribI3i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC)(GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -#define glVertexAttribI4i glad_glVertexAttribI4i -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC)(GLuint index, GLuint x); -GLAPI PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -#define glVertexAttribI1ui glad_glVertexAttribI1ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC)(GLuint index, GLuint x, GLuint y); -GLAPI PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -#define glVertexAttribI2ui glad_glVertexAttribI2ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC)(GLuint index, GLuint x, GLuint y, GLuint z); -GLAPI PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -#define glVertexAttribI3ui glad_glVertexAttribI3ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC)(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -#define glVertexAttribI4ui glad_glVertexAttribI4ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -#define glVertexAttribI1iv glad_glVertexAttribI1iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -#define glVertexAttribI2iv glad_glVertexAttribI2iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -#define glVertexAttribI3iv glad_glVertexAttribI3iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -#define glVertexAttribI4iv glad_glVertexAttribI4iv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -#define glVertexAttribI1uiv glad_glVertexAttribI1uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -#define glVertexAttribI2uiv glad_glVertexAttribI2uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -#define glVertexAttribI3uiv glad_glVertexAttribI3uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -#define glVertexAttribI4uiv glad_glVertexAttribI4uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC)(GLuint index, const GLbyte *v); -GLAPI PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -#define glVertexAttribI4bv glad_glVertexAttribI4bv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -#define glVertexAttribI4sv glad_glVertexAttribI4sv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC)(GLuint index, const GLubyte *v); -GLAPI PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -#define glVertexAttribI4ubv glad_glVertexAttribI4ubv -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC)(GLuint index, const GLushort *v); -GLAPI PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -#define glVertexAttribI4usv glad_glVertexAttribI4usv -typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC)(GLuint program, GLint location, GLuint *params); -GLAPI PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; -#define glGetUniformuiv glad_glGetUniformuiv -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC)(GLuint program, GLuint color, const GLchar *name); -GLAPI PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -#define glBindFragDataLocation glad_glBindFragDataLocation -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC)(GLuint program, const GLchar *name); -GLAPI PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -#define glGetFragDataLocation glad_glGetFragDataLocation -typedef void (APIENTRYP PFNGLUNIFORM1UIPROC)(GLint location, GLuint v0); -GLAPI PFNGLUNIFORM1UIPROC glad_glUniform1ui; -#define glUniform1ui glad_glUniform1ui -typedef void (APIENTRYP PFNGLUNIFORM2UIPROC)(GLint location, GLuint v0, GLuint v1); -GLAPI PFNGLUNIFORM2UIPROC glad_glUniform2ui; -#define glUniform2ui glad_glUniform2ui -typedef void (APIENTRYP PFNGLUNIFORM3UIPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI PFNGLUNIFORM3UIPROC glad_glUniform3ui; -#define glUniform3ui glad_glUniform3ui -typedef void (APIENTRYP PFNGLUNIFORM4UIPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI PFNGLUNIFORM4UIPROC glad_glUniform4ui; -#define glUniform4ui glad_glUniform4ui -typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC)(GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -#define glUniform1uiv glad_glUniform1uiv -typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC)(GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -#define glUniform2uiv glad_glUniform2uiv -typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC)(GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -#define glUniform3uiv glad_glUniform3uiv -typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC)(GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -#define glUniform4uiv glad_glUniform4uiv -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -#define glTexParameterIiv glad_glTexParameterIiv -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC)(GLenum target, GLenum pname, const GLuint *params); -GLAPI PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; -#define glTexParameterIuiv glad_glTexParameterIuiv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -#define glGetTexParameterIiv glad_glGetTexParameterIiv -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC)(GLenum target, GLenum pname, GLuint *params); -GLAPI PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; -#define glGetTexParameterIuiv glad_glGetTexParameterIuiv -typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC)(GLenum buffer, GLint drawbuffer, const GLint *value); -GLAPI PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -#define glClearBufferiv glad_glClearBufferiv -typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC)(GLenum buffer, GLint drawbuffer, const GLuint *value); -GLAPI PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -#define glClearBufferuiv glad_glClearBufferuiv -typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC)(GLenum buffer, GLint drawbuffer, const GLfloat *value); -GLAPI PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; -#define glClearBufferfv glad_glClearBufferfv -typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC)(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); -GLAPI PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -#define glClearBufferfi glad_glClearBufferfi -typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC)(GLenum name, GLuint index); -GLAPI PFNGLGETSTRINGIPROC glad_glGetStringi; -#define glGetStringi glad_glGetStringi -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC)(GLuint renderbuffer); -GLAPI PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -#define glIsRenderbuffer glad_glIsRenderbuffer -typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC)(GLenum target, GLuint renderbuffer); -GLAPI PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -#define glBindRenderbuffer glad_glBindRenderbuffer -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC)(GLsizei n, const GLuint *renderbuffers); -GLAPI PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -#define glDeleteRenderbuffers glad_glDeleteRenderbuffers -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC)(GLsizei n, GLuint *renderbuffers); -GLAPI PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -#define glGenRenderbuffers glad_glGenRenderbuffers -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -#define glRenderbufferStorage glad_glRenderbufferStorage -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -#define glGetRenderbufferParameteriv glad_glGetRenderbufferParameteriv -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC)(GLuint framebuffer); -GLAPI PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -#define glIsFramebuffer glad_glIsFramebuffer -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC)(GLenum target, GLuint framebuffer); -GLAPI PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -#define glBindFramebuffer glad_glBindFramebuffer -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC)(GLsizei n, const GLuint *framebuffers); -GLAPI PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -#define glDeleteFramebuffers glad_glDeleteFramebuffers -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC)(GLsizei n, GLuint *framebuffers); -GLAPI PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -#define glGenFramebuffers glad_glGenFramebuffers -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target); -GLAPI PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -#define glCheckFramebufferStatus glad_glCheckFramebufferStatus -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -#define glFramebufferTexture1D glad_glFramebufferTexture1D -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -#define glFramebufferTexture2D glad_glFramebufferTexture2D -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -#define glFramebufferTexture3D glad_glFramebufferTexture3D -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -#define glFramebufferRenderbuffer glad_glFramebufferRenderbuffer -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)(GLenum target, GLenum attachment, GLenum pname, GLint *params); -GLAPI PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -#define glGetFramebufferAttachmentParameteriv glad_glGetFramebufferAttachmentParameteriv -typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC)(GLenum target); -GLAPI PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -#define glGenerateMipmap glad_glGenerateMipmap -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; -#define glBlitFramebuffer glad_glBlitFramebuffer -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; -#define glRenderbufferStorageMultisample glad_glRenderbufferStorageMultisample -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -#define glFramebufferTextureLayer glad_glFramebufferTextureLayer -typedef void * (APIENTRYP PFNGLMAPBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -GLAPI PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -#define glMapBufferRange glad_glMapBufferRange -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC)(GLenum target, GLintptr offset, GLsizeiptr length); -GLAPI PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -#define glFlushMappedBufferRange glad_glFlushMappedBufferRange -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC)(GLuint array); -GLAPI PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -#define glBindVertexArray glad_glBindVertexArray -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC)(GLsizei n, const GLuint *arrays); -GLAPI PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -#define glDeleteVertexArrays glad_glDeleteVertexArrays -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC)(GLsizei n, GLuint *arrays); -GLAPI PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -#define glGenVertexArrays glad_glGenVertexArrays -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC)(GLuint array); -GLAPI PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -#define glIsVertexArray glad_glIsVertexArray -#endif -#ifndef GL_VERSION_3_1 -#define GL_VERSION_3_1 1 -GLAPI int GLAD_GL_VERSION_3_1; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount); -GLAPI PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; -#define glDrawArraysInstanced glad_glDrawArraysInstanced -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount); -GLAPI PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -#define glDrawElementsInstanced glad_glDrawElementsInstanced -typedef void (APIENTRYP PFNGLTEXBUFFERPROC)(GLenum target, GLenum internalformat, GLuint buffer); -GLAPI PFNGLTEXBUFFERPROC glad_glTexBuffer; -#define glTexBuffer glad_glTexBuffer -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC)(GLuint index); -GLAPI PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -#define glPrimitiveRestartIndex glad_glPrimitiveRestartIndex -typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; -#define glCopyBufferSubData glad_glCopyBufferSubData -typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC)(GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices); -GLAPI PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -#define glGetUniformIndices glad_glGetUniformIndices -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC)(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); -GLAPI PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -#define glGetActiveUniformsiv glad_glGetActiveUniformsiv -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); -GLAPI PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -#define glGetActiveUniformName glad_glGetActiveUniformName -typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC)(GLuint program, const GLchar *uniformBlockName); -GLAPI PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; -#define glGetUniformBlockIndex glad_glGetUniformBlockIndex -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); -GLAPI PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; -#define glGetActiveUniformBlockiv glad_glGetActiveUniformBlockiv -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); -GLAPI PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -#define glGetActiveUniformBlockName glad_glGetActiveUniformBlockName -typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); -GLAPI PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -#define glUniformBlockBinding glad_glUniformBlockBinding -#endif -#ifndef GL_VERSION_3_2 -#define GL_VERSION_3_2 1 -GLAPI int GLAD_GL_VERSION_3_2; -typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); -GLAPI PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -#define glDrawElementsBaseVertex glad_glDrawElementsBaseVertex -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); -GLAPI PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -#define glDrawRangeElementsBaseVertex glad_glDrawRangeElementsBaseVertex -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -#define glDrawElementsInstancedBaseVertex glad_glDrawElementsInstancedBaseVertex -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex); -GLAPI PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; -#define glMultiDrawElementsBaseVertex glad_glMultiDrawElementsBaseVertex -typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC)(GLenum mode); -GLAPI PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -#define glProvokingVertex glad_glProvokingVertex -typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC)(GLenum condition, GLbitfield flags); -GLAPI PFNGLFENCESYNCPROC glad_glFenceSync; -#define glFenceSync glad_glFenceSync -typedef GLboolean (APIENTRYP PFNGLISSYNCPROC)(GLsync sync); -GLAPI PFNGLISSYNCPROC glad_glIsSync; -#define glIsSync glad_glIsSync -typedef void (APIENTRYP PFNGLDELETESYNCPROC)(GLsync sync); -GLAPI PFNGLDELETESYNCPROC glad_glDeleteSync; -#define glDeleteSync glad_glDeleteSync -typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -#define glClientWaitSync glad_glClientWaitSync -typedef void (APIENTRYP PFNGLWAITSYNCPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI PFNGLWAITSYNCPROC glad_glWaitSync; -#define glWaitSync glad_glWaitSync -typedef void (APIENTRYP PFNGLGETINTEGER64VPROC)(GLenum pname, GLint64 *data); -GLAPI PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -#define glGetInteger64v glad_glGetInteger64v -typedef void (APIENTRYP PFNGLGETSYNCIVPROC)(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -GLAPI PFNGLGETSYNCIVPROC glad_glGetSynciv; -#define glGetSynciv glad_glGetSynciv -typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC)(GLenum target, GLuint index, GLint64 *data); -GLAPI PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -#define glGetInteger64i_v glad_glGetInteger64i_v -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC)(GLenum target, GLenum pname, GLint64 *params); -GLAPI PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; -#define glGetBufferParameteri64v glad_glGetBufferParameteri64v -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -#define glFramebufferTexture glad_glFramebufferTexture -typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -#define glTexImage2DMultisample glad_glTexImage2DMultisample -typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -#define glTexImage3DMultisample glad_glTexImage3DMultisample -typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC)(GLenum pname, GLuint index, GLfloat *val); -GLAPI PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -#define glGetMultisamplefv glad_glGetMultisamplefv -typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC)(GLuint maskNumber, GLbitfield mask); -GLAPI PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -#define glSampleMaski glad_glSampleMaski -#endif -#ifndef GL_VERSION_3_3 -#define GL_VERSION_3_3 1 -GLAPI int GLAD_GL_VERSION_3_3; -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC)(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); -GLAPI PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed; -#define glBindFragDataLocationIndexed glad_glBindFragDataLocationIndexed -typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC)(GLuint program, const GLchar *name); -GLAPI PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex; -#define glGetFragDataIndex glad_glGetFragDataIndex -typedef void (APIENTRYP PFNGLGENSAMPLERSPROC)(GLsizei count, GLuint *samplers); -GLAPI PFNGLGENSAMPLERSPROC glad_glGenSamplers; -#define glGenSamplers glad_glGenSamplers -typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC)(GLsizei count, const GLuint *samplers); -GLAPI PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers; -#define glDeleteSamplers glad_glDeleteSamplers -typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC)(GLuint sampler); -GLAPI PFNGLISSAMPLERPROC glad_glIsSampler; -#define glIsSampler glad_glIsSampler -typedef void (APIENTRYP PFNGLBINDSAMPLERPROC)(GLuint unit, GLuint sampler); -GLAPI PFNGLBINDSAMPLERPROC glad_glBindSampler; -#define glBindSampler glad_glBindSampler -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC)(GLuint sampler, GLenum pname, GLint param); -GLAPI PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri; -#define glSamplerParameteri glad_glSamplerParameteri -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC)(GLuint sampler, GLenum pname, const GLint *param); -GLAPI PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv; -#define glSamplerParameteriv glad_glSamplerParameteriv -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC)(GLuint sampler, GLenum pname, GLfloat param); -GLAPI PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf; -#define glSamplerParameterf glad_glSamplerParameterf -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC)(GLuint sampler, GLenum pname, const GLfloat *param); -GLAPI PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv; -#define glSamplerParameterfv glad_glSamplerParameterfv -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC)(GLuint sampler, GLenum pname, const GLint *param); -GLAPI PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv; -#define glSamplerParameterIiv glad_glSamplerParameterIiv -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC)(GLuint sampler, GLenum pname, const GLuint *param); -GLAPI PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv; -#define glSamplerParameterIuiv glad_glSamplerParameterIuiv -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC)(GLuint sampler, GLenum pname, GLint *params); -GLAPI PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv; -#define glGetSamplerParameteriv glad_glGetSamplerParameteriv -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC)(GLuint sampler, GLenum pname, GLint *params); -GLAPI PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv; -#define glGetSamplerParameterIiv glad_glGetSamplerParameterIiv -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC)(GLuint sampler, GLenum pname, GLfloat *params); -GLAPI PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv; -#define glGetSamplerParameterfv glad_glGetSamplerParameterfv -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC)(GLuint sampler, GLenum pname, GLuint *params); -GLAPI PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv; -#define glGetSamplerParameterIuiv glad_glGetSamplerParameterIuiv -typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC)(GLuint id, GLenum target); -GLAPI PFNGLQUERYCOUNTERPROC glad_glQueryCounter; -#define glQueryCounter glad_glQueryCounter -typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC)(GLuint id, GLenum pname, GLint64 *params); -GLAPI PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v; -#define glGetQueryObjecti64v glad_glGetQueryObjecti64v -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC)(GLuint id, GLenum pname, GLuint64 *params); -GLAPI PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v; -#define glGetQueryObjectui64v glad_glGetQueryObjectui64v -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC)(GLuint index, GLuint divisor); -GLAPI PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor; -#define glVertexAttribDivisor glad_glVertexAttribDivisor -typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui; -#define glVertexAttribP1ui glad_glVertexAttribP1ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv; -#define glVertexAttribP1uiv glad_glVertexAttribP1uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui; -#define glVertexAttribP2ui glad_glVertexAttribP2ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv; -#define glVertexAttribP2uiv glad_glVertexAttribP2uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui; -#define glVertexAttribP3ui glad_glVertexAttribP3ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv; -#define glVertexAttribP3uiv glad_glVertexAttribP3uiv -typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC)(GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui; -#define glVertexAttribP4ui glad_glVertexAttribP4ui -typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC)(GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv; -#define glVertexAttribP4uiv glad_glVertexAttribP4uiv -typedef void (APIENTRYP PFNGLVERTEXP2UIPROC)(GLenum type, GLuint value); -GLAPI PFNGLVERTEXP2UIPROC glad_glVertexP2ui; -#define glVertexP2ui glad_glVertexP2ui -typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC)(GLenum type, const GLuint *value); -GLAPI PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv; -#define glVertexP2uiv glad_glVertexP2uiv -typedef void (APIENTRYP PFNGLVERTEXP3UIPROC)(GLenum type, GLuint value); -GLAPI PFNGLVERTEXP3UIPROC glad_glVertexP3ui; -#define glVertexP3ui glad_glVertexP3ui -typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC)(GLenum type, const GLuint *value); -GLAPI PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv; -#define glVertexP3uiv glad_glVertexP3uiv -typedef void (APIENTRYP PFNGLVERTEXP4UIPROC)(GLenum type, GLuint value); -GLAPI PFNGLVERTEXP4UIPROC glad_glVertexP4ui; -#define glVertexP4ui glad_glVertexP4ui -typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC)(GLenum type, const GLuint *value); -GLAPI PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv; -#define glVertexP4uiv glad_glVertexP4uiv -typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC)(GLenum type, GLuint coords); -GLAPI PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui; -#define glTexCoordP1ui glad_glTexCoordP1ui -typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC)(GLenum type, const GLuint *coords); -GLAPI PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv; -#define glTexCoordP1uiv glad_glTexCoordP1uiv -typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC)(GLenum type, GLuint coords); -GLAPI PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui; -#define glTexCoordP2ui glad_glTexCoordP2ui -typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC)(GLenum type, const GLuint *coords); -GLAPI PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv; -#define glTexCoordP2uiv glad_glTexCoordP2uiv -typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC)(GLenum type, GLuint coords); -GLAPI PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui; -#define glTexCoordP3ui glad_glTexCoordP3ui -typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC)(GLenum type, const GLuint *coords); -GLAPI PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv; -#define glTexCoordP3uiv glad_glTexCoordP3uiv -typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC)(GLenum type, GLuint coords); -GLAPI PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui; -#define glTexCoordP4ui glad_glTexCoordP4ui -typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC)(GLenum type, const GLuint *coords); -GLAPI PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv; -#define glTexCoordP4uiv glad_glTexCoordP4uiv -typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC)(GLenum texture, GLenum type, GLuint coords); -GLAPI PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui; -#define glMultiTexCoordP1ui glad_glMultiTexCoordP1ui -typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC)(GLenum texture, GLenum type, const GLuint *coords); -GLAPI PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv; -#define glMultiTexCoordP1uiv glad_glMultiTexCoordP1uiv -typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC)(GLenum texture, GLenum type, GLuint coords); -GLAPI PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui; -#define glMultiTexCoordP2ui glad_glMultiTexCoordP2ui -typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC)(GLenum texture, GLenum type, const GLuint *coords); -GLAPI PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv; -#define glMultiTexCoordP2uiv glad_glMultiTexCoordP2uiv -typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC)(GLenum texture, GLenum type, GLuint coords); -GLAPI PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui; -#define glMultiTexCoordP3ui glad_glMultiTexCoordP3ui -typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC)(GLenum texture, GLenum type, const GLuint *coords); -GLAPI PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv; -#define glMultiTexCoordP3uiv glad_glMultiTexCoordP3uiv -typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC)(GLenum texture, GLenum type, GLuint coords); -GLAPI PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui; -#define glMultiTexCoordP4ui glad_glMultiTexCoordP4ui -typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC)(GLenum texture, GLenum type, const GLuint *coords); -GLAPI PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv; -#define glMultiTexCoordP4uiv glad_glMultiTexCoordP4uiv -typedef void (APIENTRYP PFNGLNORMALP3UIPROC)(GLenum type, GLuint coords); -GLAPI PFNGLNORMALP3UIPROC glad_glNormalP3ui; -#define glNormalP3ui glad_glNormalP3ui -typedef void (APIENTRYP PFNGLNORMALP3UIVPROC)(GLenum type, const GLuint *coords); -GLAPI PFNGLNORMALP3UIVPROC glad_glNormalP3uiv; -#define glNormalP3uiv glad_glNormalP3uiv -typedef void (APIENTRYP PFNGLCOLORP3UIPROC)(GLenum type, GLuint color); -GLAPI PFNGLCOLORP3UIPROC glad_glColorP3ui; -#define glColorP3ui glad_glColorP3ui -typedef void (APIENTRYP PFNGLCOLORP3UIVPROC)(GLenum type, const GLuint *color); -GLAPI PFNGLCOLORP3UIVPROC glad_glColorP3uiv; -#define glColorP3uiv glad_glColorP3uiv -typedef void (APIENTRYP PFNGLCOLORP4UIPROC)(GLenum type, GLuint color); -GLAPI PFNGLCOLORP4UIPROC glad_glColorP4ui; -#define glColorP4ui glad_glColorP4ui -typedef void (APIENTRYP PFNGLCOLORP4UIVPROC)(GLenum type, const GLuint *color); -GLAPI PFNGLCOLORP4UIVPROC glad_glColorP4uiv; -#define glColorP4uiv glad_glColorP4uiv -typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC)(GLenum type, GLuint color); -GLAPI PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui; -#define glSecondaryColorP3ui glad_glSecondaryColorP3ui -typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC)(GLenum type, const GLuint *color); -GLAPI PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; -#define glSecondaryColorP3uiv glad_glSecondaryColorP3uiv -#endif -#ifndef GL_VERSION_4_0 -#define GL_VERSION_4_0 1 -GLAPI int GLAD_GL_VERSION_4_0; -typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC)(GLfloat value); -GLAPI PFNGLMINSAMPLESHADINGPROC glad_glMinSampleShading; -#define glMinSampleShading glad_glMinSampleShading -typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC)(GLuint buf, GLenum mode); -GLAPI PFNGLBLENDEQUATIONIPROC glad_glBlendEquationi; -#define glBlendEquationi glad_glBlendEquationi -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC)(GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI PFNGLBLENDEQUATIONSEPARATEIPROC glad_glBlendEquationSeparatei; -#define glBlendEquationSeparatei glad_glBlendEquationSeparatei -typedef void (APIENTRYP PFNGLBLENDFUNCIPROC)(GLuint buf, GLenum src, GLenum dst); -GLAPI PFNGLBLENDFUNCIPROC glad_glBlendFunci; -#define glBlendFunci glad_glBlendFunci -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEIPROC glad_glBlendFuncSeparatei; -#define glBlendFuncSeparatei glad_glBlendFuncSeparatei -typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC)(GLenum mode, const void *indirect); -GLAPI PFNGLDRAWARRAYSINDIRECTPROC glad_glDrawArraysIndirect; -#define glDrawArraysIndirect glad_glDrawArraysIndirect -typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC)(GLenum mode, GLenum type, const void *indirect); -GLAPI PFNGLDRAWELEMENTSINDIRECTPROC glad_glDrawElementsIndirect; -#define glDrawElementsIndirect glad_glDrawElementsIndirect -typedef void (APIENTRYP PFNGLUNIFORM1DPROC)(GLint location, GLdouble x); -GLAPI PFNGLUNIFORM1DPROC glad_glUniform1d; -#define glUniform1d glad_glUniform1d -typedef void (APIENTRYP PFNGLUNIFORM2DPROC)(GLint location, GLdouble x, GLdouble y); -GLAPI PFNGLUNIFORM2DPROC glad_glUniform2d; -#define glUniform2d glad_glUniform2d -typedef void (APIENTRYP PFNGLUNIFORM3DPROC)(GLint location, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLUNIFORM3DPROC glad_glUniform3d; -#define glUniform3d glad_glUniform3d -typedef void (APIENTRYP PFNGLUNIFORM4DPROC)(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLUNIFORM4DPROC glad_glUniform4d; -#define glUniform4d glad_glUniform4d -typedef void (APIENTRYP PFNGLUNIFORM1DVPROC)(GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLUNIFORM1DVPROC glad_glUniform1dv; -#define glUniform1dv glad_glUniform1dv -typedef void (APIENTRYP PFNGLUNIFORM2DVPROC)(GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLUNIFORM2DVPROC glad_glUniform2dv; -#define glUniform2dv glad_glUniform2dv -typedef void (APIENTRYP PFNGLUNIFORM3DVPROC)(GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLUNIFORM3DVPROC glad_glUniform3dv; -#define glUniform3dv glad_glUniform3dv -typedef void (APIENTRYP PFNGLUNIFORM4DVPROC)(GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLUNIFORM4DVPROC glad_glUniform4dv; -#define glUniform4dv glad_glUniform4dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX2DVPROC glad_glUniformMatrix2dv; -#define glUniformMatrix2dv glad_glUniformMatrix2dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX3DVPROC glad_glUniformMatrix3dv; -#define glUniformMatrix3dv glad_glUniformMatrix3dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX4DVPROC glad_glUniformMatrix4dv; -#define glUniformMatrix4dv glad_glUniformMatrix4dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX2X3DVPROC glad_glUniformMatrix2x3dv; -#define glUniformMatrix2x3dv glad_glUniformMatrix2x3dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX2X4DVPROC glad_glUniformMatrix2x4dv; -#define glUniformMatrix2x4dv glad_glUniformMatrix2x4dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX3X2DVPROC glad_glUniformMatrix3x2dv; -#define glUniformMatrix3x2dv glad_glUniformMatrix3x2dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX3X4DVPROC glad_glUniformMatrix3x4dv; -#define glUniformMatrix3x4dv glad_glUniformMatrix3x4dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX4X2DVPROC glad_glUniformMatrix4x2dv; -#define glUniformMatrix4x2dv glad_glUniformMatrix4x2dv -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLUNIFORMMATRIX4X3DVPROC glad_glUniformMatrix4x3dv; -#define glUniformMatrix4x3dv glad_glUniformMatrix4x3dv -typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC)(GLuint program, GLint location, GLdouble *params); -GLAPI PFNGLGETUNIFORMDVPROC glad_glGetUniformdv; -#define glGetUniformdv glad_glGetUniformdv -typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC)(GLuint program, GLenum shadertype, const GLchar *name); -GLAPI PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC glad_glGetSubroutineUniformLocation; -#define glGetSubroutineUniformLocation glad_glGetSubroutineUniformLocation -typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC)(GLuint program, GLenum shadertype, const GLchar *name); -GLAPI PFNGLGETSUBROUTINEINDEXPROC glad_glGetSubroutineIndex; -#define glGetSubroutineIndex glad_glGetSubroutineIndex -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC)(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); -GLAPI PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC glad_glGetActiveSubroutineUniformiv; -#define glGetActiveSubroutineUniformiv glad_glGetActiveSubroutineUniformiv -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC)(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -GLAPI PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC glad_glGetActiveSubroutineUniformName; -#define glGetActiveSubroutineUniformName glad_glGetActiveSubroutineUniformName -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC)(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -GLAPI PFNGLGETACTIVESUBROUTINENAMEPROC glad_glGetActiveSubroutineName; -#define glGetActiveSubroutineName glad_glGetActiveSubroutineName -typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC)(GLenum shadertype, GLsizei count, const GLuint *indices); -GLAPI PFNGLUNIFORMSUBROUTINESUIVPROC glad_glUniformSubroutinesuiv; -#define glUniformSubroutinesuiv glad_glUniformSubroutinesuiv -typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC)(GLenum shadertype, GLint location, GLuint *params); -GLAPI PFNGLGETUNIFORMSUBROUTINEUIVPROC glad_glGetUniformSubroutineuiv; -#define glGetUniformSubroutineuiv glad_glGetUniformSubroutineuiv -typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC)(GLuint program, GLenum shadertype, GLenum pname, GLint *values); -GLAPI PFNGLGETPROGRAMSTAGEIVPROC glad_glGetProgramStageiv; -#define glGetProgramStageiv glad_glGetProgramStageiv -typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC)(GLenum pname, GLint value); -GLAPI PFNGLPATCHPARAMETERIPROC glad_glPatchParameteri; -#define glPatchParameteri glad_glPatchParameteri -typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC)(GLenum pname, const GLfloat *values); -GLAPI PFNGLPATCHPARAMETERFVPROC glad_glPatchParameterfv; -#define glPatchParameterfv glad_glPatchParameterfv -typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC)(GLenum target, GLuint id); -GLAPI PFNGLBINDTRANSFORMFEEDBACKPROC glad_glBindTransformFeedback; -#define glBindTransformFeedback glad_glBindTransformFeedback -typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC)(GLsizei n, const GLuint *ids); -GLAPI PFNGLDELETETRANSFORMFEEDBACKSPROC glad_glDeleteTransformFeedbacks; -#define glDeleteTransformFeedbacks glad_glDeleteTransformFeedbacks -typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC)(GLsizei n, GLuint *ids); -GLAPI PFNGLGENTRANSFORMFEEDBACKSPROC glad_glGenTransformFeedbacks; -#define glGenTransformFeedbacks glad_glGenTransformFeedbacks -typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC)(GLuint id); -GLAPI PFNGLISTRANSFORMFEEDBACKPROC glad_glIsTransformFeedback; -#define glIsTransformFeedback glad_glIsTransformFeedback -typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC)(void); -GLAPI PFNGLPAUSETRANSFORMFEEDBACKPROC glad_glPauseTransformFeedback; -#define glPauseTransformFeedback glad_glPauseTransformFeedback -typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC)(void); -GLAPI PFNGLRESUMETRANSFORMFEEDBACKPROC glad_glResumeTransformFeedback; -#define glResumeTransformFeedback glad_glResumeTransformFeedback -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC)(GLenum mode, GLuint id); -GLAPI PFNGLDRAWTRANSFORMFEEDBACKPROC glad_glDrawTransformFeedback; -#define glDrawTransformFeedback glad_glDrawTransformFeedback -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC)(GLenum mode, GLuint id, GLuint stream); -GLAPI PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC glad_glDrawTransformFeedbackStream; -#define glDrawTransformFeedbackStream glad_glDrawTransformFeedbackStream -typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC)(GLenum target, GLuint index, GLuint id); -GLAPI PFNGLBEGINQUERYINDEXEDPROC glad_glBeginQueryIndexed; -#define glBeginQueryIndexed glad_glBeginQueryIndexed -typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC)(GLenum target, GLuint index); -GLAPI PFNGLENDQUERYINDEXEDPROC glad_glEndQueryIndexed; -#define glEndQueryIndexed glad_glEndQueryIndexed -typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC)(GLenum target, GLuint index, GLenum pname, GLint *params); -GLAPI PFNGLGETQUERYINDEXEDIVPROC glad_glGetQueryIndexediv; -#define glGetQueryIndexediv glad_glGetQueryIndexediv -#endif -#ifndef GL_VERSION_4_1 -#define GL_VERSION_4_1 1 -GLAPI int GLAD_GL_VERSION_4_1; -typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC)(void); -GLAPI PFNGLRELEASESHADERCOMPILERPROC glad_glReleaseShaderCompiler; -#define glReleaseShaderCompiler glad_glReleaseShaderCompiler -typedef void (APIENTRYP PFNGLSHADERBINARYPROC)(GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length); -GLAPI PFNGLSHADERBINARYPROC glad_glShaderBinary; -#define glShaderBinary glad_glShaderBinary -typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC)(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); -GLAPI PFNGLGETSHADERPRECISIONFORMATPROC glad_glGetShaderPrecisionFormat; -#define glGetShaderPrecisionFormat glad_glGetShaderPrecisionFormat -typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC)(GLfloat n, GLfloat f); -GLAPI PFNGLDEPTHRANGEFPROC glad_glDepthRangef; -#define glDepthRangef glad_glDepthRangef -typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC)(GLfloat d); -GLAPI PFNGLCLEARDEPTHFPROC glad_glClearDepthf; -#define glClearDepthf glad_glClearDepthf -typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC)(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); -GLAPI PFNGLGETPROGRAMBINARYPROC glad_glGetProgramBinary; -#define glGetProgramBinary glad_glGetProgramBinary -typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC)(GLuint program, GLenum binaryFormat, const void *binary, GLsizei length); -GLAPI PFNGLPROGRAMBINARYPROC glad_glProgramBinary; -#define glProgramBinary glad_glProgramBinary -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC)(GLuint program, GLenum pname, GLint value); -GLAPI PFNGLPROGRAMPARAMETERIPROC glad_glProgramParameteri; -#define glProgramParameteri glad_glProgramParameteri -typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC)(GLuint pipeline, GLbitfield stages, GLuint program); -GLAPI PFNGLUSEPROGRAMSTAGESPROC glad_glUseProgramStages; -#define glUseProgramStages glad_glUseProgramStages -typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC)(GLuint pipeline, GLuint program); -GLAPI PFNGLACTIVESHADERPROGRAMPROC glad_glActiveShaderProgram; -#define glActiveShaderProgram glad_glActiveShaderProgram -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC)(GLenum type, GLsizei count, const GLchar *const*strings); -GLAPI PFNGLCREATESHADERPROGRAMVPROC glad_glCreateShaderProgramv; -#define glCreateShaderProgramv glad_glCreateShaderProgramv -typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC)(GLuint pipeline); -GLAPI PFNGLBINDPROGRAMPIPELINEPROC glad_glBindProgramPipeline; -#define glBindProgramPipeline glad_glBindProgramPipeline -typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC)(GLsizei n, const GLuint *pipelines); -GLAPI PFNGLDELETEPROGRAMPIPELINESPROC glad_glDeleteProgramPipelines; -#define glDeleteProgramPipelines glad_glDeleteProgramPipelines -typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC)(GLsizei n, GLuint *pipelines); -GLAPI PFNGLGENPROGRAMPIPELINESPROC glad_glGenProgramPipelines; -#define glGenProgramPipelines glad_glGenProgramPipelines -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC)(GLuint pipeline); -GLAPI PFNGLISPROGRAMPIPELINEPROC glad_glIsProgramPipeline; -#define glIsProgramPipeline glad_glIsProgramPipeline -typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC)(GLuint pipeline, GLenum pname, GLint *params); -GLAPI PFNGLGETPROGRAMPIPELINEIVPROC glad_glGetProgramPipelineiv; -#define glGetProgramPipelineiv glad_glGetProgramPipelineiv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC)(GLuint program, GLint location, GLint v0); -GLAPI PFNGLPROGRAMUNIFORM1IPROC glad_glProgramUniform1i; -#define glProgramUniform1i glad_glProgramUniform1i -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC)(GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLPROGRAMUNIFORM1IVPROC glad_glProgramUniform1iv; -#define glProgramUniform1iv glad_glProgramUniform1iv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC)(GLuint program, GLint location, GLfloat v0); -GLAPI PFNGLPROGRAMUNIFORM1FPROC glad_glProgramUniform1f; -#define glProgramUniform1f glad_glProgramUniform1f -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORM1FVPROC glad_glProgramUniform1fv; -#define glProgramUniform1fv glad_glProgramUniform1fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC)(GLuint program, GLint location, GLdouble v0); -GLAPI PFNGLPROGRAMUNIFORM1DPROC glad_glProgramUniform1d; -#define glProgramUniform1d glad_glProgramUniform1d -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORM1DVPROC glad_glProgramUniform1dv; -#define glProgramUniform1dv glad_glProgramUniform1dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC)(GLuint program, GLint location, GLuint v0); -GLAPI PFNGLPROGRAMUNIFORM1UIPROC glad_glProgramUniform1ui; -#define glProgramUniform1ui glad_glProgramUniform1ui -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLPROGRAMUNIFORM1UIVPROC glad_glProgramUniform1uiv; -#define glProgramUniform1uiv glad_glProgramUniform1uiv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC)(GLuint program, GLint location, GLint v0, GLint v1); -GLAPI PFNGLPROGRAMUNIFORM2IPROC glad_glProgramUniform2i; -#define glProgramUniform2i glad_glProgramUniform2i -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC)(GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLPROGRAMUNIFORM2IVPROC glad_glProgramUniform2iv; -#define glProgramUniform2iv glad_glProgramUniform2iv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1); -GLAPI PFNGLPROGRAMUNIFORM2FPROC glad_glProgramUniform2f; -#define glProgramUniform2f glad_glProgramUniform2f -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORM2FVPROC glad_glProgramUniform2fv; -#define glProgramUniform2fv glad_glProgramUniform2fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC)(GLuint program, GLint location, GLdouble v0, GLdouble v1); -GLAPI PFNGLPROGRAMUNIFORM2DPROC glad_glProgramUniform2d; -#define glProgramUniform2d glad_glProgramUniform2d -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORM2DVPROC glad_glProgramUniform2dv; -#define glProgramUniform2dv glad_glProgramUniform2dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC)(GLuint program, GLint location, GLuint v0, GLuint v1); -GLAPI PFNGLPROGRAMUNIFORM2UIPROC glad_glProgramUniform2ui; -#define glProgramUniform2ui glad_glProgramUniform2ui -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLPROGRAMUNIFORM2UIVPROC glad_glProgramUniform2uiv; -#define glProgramUniform2uiv glad_glProgramUniform2uiv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -GLAPI PFNGLPROGRAMUNIFORM3IPROC glad_glProgramUniform3i; -#define glProgramUniform3i glad_glProgramUniform3i -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC)(GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLPROGRAMUNIFORM3IVPROC glad_glProgramUniform3iv; -#define glProgramUniform3iv glad_glProgramUniform3iv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI PFNGLPROGRAMUNIFORM3FPROC glad_glProgramUniform3f; -#define glProgramUniform3f glad_glProgramUniform3f -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORM3FVPROC glad_glProgramUniform3fv; -#define glProgramUniform3fv glad_glProgramUniform3fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC)(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); -GLAPI PFNGLPROGRAMUNIFORM3DPROC glad_glProgramUniform3d; -#define glProgramUniform3d glad_glProgramUniform3d -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORM3DVPROC glad_glProgramUniform3dv; -#define glProgramUniform3dv glad_glProgramUniform3dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI PFNGLPROGRAMUNIFORM3UIPROC glad_glProgramUniform3ui; -#define glProgramUniform3ui glad_glProgramUniform3ui -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLPROGRAMUNIFORM3UIVPROC glad_glProgramUniform3uiv; -#define glProgramUniform3uiv glad_glProgramUniform3uiv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI PFNGLPROGRAMUNIFORM4IPROC glad_glProgramUniform4i; -#define glProgramUniform4i glad_glProgramUniform4i -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC)(GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLPROGRAMUNIFORM4IVPROC glad_glProgramUniform4iv; -#define glProgramUniform4iv glad_glProgramUniform4iv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI PFNGLPROGRAMUNIFORM4FPROC glad_glProgramUniform4f; -#define glProgramUniform4f glad_glProgramUniform4f -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORM4FVPROC glad_glProgramUniform4fv; -#define glProgramUniform4fv glad_glProgramUniform4fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC)(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); -GLAPI PFNGLPROGRAMUNIFORM4DPROC glad_glProgramUniform4d; -#define glProgramUniform4d glad_glProgramUniform4d -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORM4DVPROC glad_glProgramUniform4dv; -#define glProgramUniform4dv glad_glProgramUniform4dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI PFNGLPROGRAMUNIFORM4UIPROC glad_glProgramUniform4ui; -#define glProgramUniform4ui glad_glProgramUniform4ui -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLPROGRAMUNIFORM4UIVPROC glad_glProgramUniform4uiv; -#define glProgramUniform4uiv glad_glProgramUniform4uiv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2FVPROC glad_glProgramUniformMatrix2fv; -#define glProgramUniformMatrix2fv glad_glProgramUniformMatrix2fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3FVPROC glad_glProgramUniformMatrix3fv; -#define glProgramUniformMatrix3fv glad_glProgramUniformMatrix3fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4FVPROC glad_glProgramUniformMatrix4fv; -#define glProgramUniformMatrix4fv glad_glProgramUniformMatrix4fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2DVPROC glad_glProgramUniformMatrix2dv; -#define glProgramUniformMatrix2dv glad_glProgramUniformMatrix2dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3DVPROC glad_glProgramUniformMatrix3dv; -#define glProgramUniformMatrix3dv glad_glProgramUniformMatrix3dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4DVPROC glad_glProgramUniformMatrix4dv; -#define glProgramUniformMatrix4dv glad_glProgramUniformMatrix4dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glad_glProgramUniformMatrix2x3fv; -#define glProgramUniformMatrix2x3fv glad_glProgramUniformMatrix2x3fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glad_glProgramUniformMatrix3x2fv; -#define glProgramUniformMatrix3x2fv glad_glProgramUniformMatrix3x2fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glad_glProgramUniformMatrix2x4fv; -#define glProgramUniformMatrix2x4fv glad_glProgramUniformMatrix2x4fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glad_glProgramUniformMatrix4x2fv; -#define glProgramUniformMatrix4x2fv glad_glProgramUniformMatrix4x2fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glad_glProgramUniformMatrix3x4fv; -#define glProgramUniformMatrix3x4fv glad_glProgramUniformMatrix3x4fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glad_glProgramUniformMatrix4x3fv; -#define glProgramUniformMatrix4x3fv glad_glProgramUniformMatrix4x3fv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC glad_glProgramUniformMatrix2x3dv; -#define glProgramUniformMatrix2x3dv glad_glProgramUniformMatrix2x3dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC glad_glProgramUniformMatrix3x2dv; -#define glProgramUniformMatrix3x2dv glad_glProgramUniformMatrix3x2dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC glad_glProgramUniformMatrix2x4dv; -#define glProgramUniformMatrix2x4dv glad_glProgramUniformMatrix2x4dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC glad_glProgramUniformMatrix4x2dv; -#define glProgramUniformMatrix4x2dv glad_glProgramUniformMatrix4x2dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC glad_glProgramUniformMatrix3x4dv; -#define glProgramUniformMatrix3x4dv glad_glProgramUniformMatrix3x4dv -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC glad_glProgramUniformMatrix4x3dv; -#define glProgramUniformMatrix4x3dv glad_glProgramUniformMatrix4x3dv -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC)(GLuint pipeline); -GLAPI PFNGLVALIDATEPROGRAMPIPELINEPROC glad_glValidateProgramPipeline; -#define glValidateProgramPipeline glad_glValidateProgramPipeline -typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC)(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI PFNGLGETPROGRAMPIPELINEINFOLOGPROC glad_glGetProgramPipelineInfoLog; -#define glGetProgramPipelineInfoLog glad_glGetProgramPipelineInfoLog -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC)(GLuint index, GLdouble x); -GLAPI PFNGLVERTEXATTRIBL1DPROC glad_glVertexAttribL1d; -#define glVertexAttribL1d glad_glVertexAttribL1d -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC)(GLuint index, GLdouble x, GLdouble y); -GLAPI PFNGLVERTEXATTRIBL2DPROC glad_glVertexAttribL2d; -#define glVertexAttribL2d glad_glVertexAttribL2d -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEXATTRIBL3DPROC glad_glVertexAttribL3d; -#define glVertexAttribL3d glad_glVertexAttribL3d -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEXATTRIBL4DPROC glad_glVertexAttribL4d; -#define glVertexAttribL4d glad_glVertexAttribL4d -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBL1DVPROC glad_glVertexAttribL1dv; -#define glVertexAttribL1dv glad_glVertexAttribL1dv -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBL2DVPROC glad_glVertexAttribL2dv; -#define glVertexAttribL2dv glad_glVertexAttribL2dv -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBL3DVPROC glad_glVertexAttribL3dv; -#define glVertexAttribL3dv glad_glVertexAttribL3dv -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBL4DVPROC glad_glVertexAttribL4dv; -#define glVertexAttribL4dv glad_glVertexAttribL4dv -typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC)(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXATTRIBLPOINTERPROC glad_glVertexAttribLPointer; -#define glVertexAttribLPointer glad_glVertexAttribLPointer -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC)(GLuint index, GLenum pname, GLdouble *params); -GLAPI PFNGLGETVERTEXATTRIBLDVPROC glad_glGetVertexAttribLdv; -#define glGetVertexAttribLdv glad_glGetVertexAttribLdv -typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC)(GLuint first, GLsizei count, const GLfloat *v); -GLAPI PFNGLVIEWPORTARRAYVPROC glad_glViewportArrayv; -#define glViewportArrayv glad_glViewportArrayv -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -GLAPI PFNGLVIEWPORTINDEXEDFPROC glad_glViewportIndexedf; -#define glViewportIndexedf glad_glViewportIndexedf -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVIEWPORTINDEXEDFVPROC glad_glViewportIndexedfv; -#define glViewportIndexedfv glad_glViewportIndexedfv -typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC)(GLuint first, GLsizei count, const GLint *v); -GLAPI PFNGLSCISSORARRAYVPROC glad_glScissorArrayv; -#define glScissorArrayv glad_glScissorArrayv -typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC)(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -GLAPI PFNGLSCISSORINDEXEDPROC glad_glScissorIndexed; -#define glScissorIndexed glad_glScissorIndexed -typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC)(GLuint index, const GLint *v); -GLAPI PFNGLSCISSORINDEXEDVPROC glad_glScissorIndexedv; -#define glScissorIndexedv glad_glScissorIndexedv -typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC)(GLuint first, GLsizei count, const GLdouble *v); -GLAPI PFNGLDEPTHRANGEARRAYVPROC glad_glDepthRangeArrayv; -#define glDepthRangeArrayv glad_glDepthRangeArrayv -typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC)(GLuint index, GLdouble n, GLdouble f); -GLAPI PFNGLDEPTHRANGEINDEXEDPROC glad_glDepthRangeIndexed; -#define glDepthRangeIndexed glad_glDepthRangeIndexed -typedef void (APIENTRYP PFNGLGETFLOATI_VPROC)(GLenum target, GLuint index, GLfloat *data); -GLAPI PFNGLGETFLOATI_VPROC glad_glGetFloati_v; -#define glGetFloati_v glad_glGetFloati_v -typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC)(GLenum target, GLuint index, GLdouble *data); -GLAPI PFNGLGETDOUBLEI_VPROC glad_glGetDoublei_v; -#define glGetDoublei_v glad_glGetDoublei_v -#endif -#ifndef GL_VERSION_4_2 -#define GL_VERSION_4_2 1 -GLAPI int GLAD_GL_VERSION_4_2; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); -GLAPI PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC glad_glDrawArraysInstancedBaseInstance; -#define glDrawArraysInstancedBaseInstance glad_glDrawArraysInstancedBaseInstance -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC glad_glDrawElementsInstancedBaseInstance; -#define glDrawElementsInstancedBaseInstance glad_glDrawElementsInstancedBaseInstance -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC glad_glDrawElementsInstancedBaseVertexBaseInstance; -#define glDrawElementsInstancedBaseVertexBaseInstance glad_glDrawElementsInstancedBaseVertexBaseInstance -typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC)(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params); -GLAPI PFNGLGETINTERNALFORMATIVPROC glad_glGetInternalformativ; -#define glGetInternalformativ glad_glGetInternalformativ -typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC)(GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); -GLAPI PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC glad_glGetActiveAtomicCounterBufferiv; -#define glGetActiveAtomicCounterBufferiv glad_glGetActiveAtomicCounterBufferiv -typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC)(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); -GLAPI PFNGLBINDIMAGETEXTUREPROC glad_glBindImageTexture; -#define glBindImageTexture glad_glBindImageTexture -typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC)(GLbitfield barriers); -GLAPI PFNGLMEMORYBARRIERPROC glad_glMemoryBarrier; -#define glMemoryBarrier glad_glMemoryBarrier -typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI PFNGLTEXSTORAGE1DPROC glad_glTexStorage1D; -#define glTexStorage1D glad_glTexStorage1D -typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLTEXSTORAGE2DPROC glad_glTexStorage2D; -#define glTexStorage2D glad_glTexStorage2D -typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNGLTEXSTORAGE3DPROC glad_glTexStorage3D; -#define glTexStorage3D glad_glTexStorage3D -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC)(GLenum mode, GLuint id, GLsizei instancecount); -GLAPI PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC glad_glDrawTransformFeedbackInstanced; -#define glDrawTransformFeedbackInstanced glad_glDrawTransformFeedbackInstanced -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC)(GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); -GLAPI PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC glad_glDrawTransformFeedbackStreamInstanced; -#define glDrawTransformFeedbackStreamInstanced glad_glDrawTransformFeedbackStreamInstanced -#endif -#ifndef GL_VERSION_4_3 -#define GL_VERSION_4_3 1 -GLAPI int GLAD_GL_VERSION_4_3; -typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC)(GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARBUFFERDATAPROC glad_glClearBufferData; -#define glClearBufferData glad_glClearBufferData -typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC)(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARBUFFERSUBDATAPROC glad_glClearBufferSubData; -#define glClearBufferSubData glad_glClearBufferSubData -typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC)(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); -GLAPI PFNGLDISPATCHCOMPUTEPROC glad_glDispatchCompute; -#define glDispatchCompute glad_glDispatchCompute -typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC)(GLintptr indirect); -GLAPI PFNGLDISPATCHCOMPUTEINDIRECTPROC glad_glDispatchComputeIndirect; -#define glDispatchComputeIndirect glad_glDispatchComputeIndirect -typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -GLAPI PFNGLCOPYIMAGESUBDATAPROC glad_glCopyImageSubData; -#define glCopyImageSubData glad_glCopyImageSubData -typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLFRAMEBUFFERPARAMETERIPROC glad_glFramebufferParameteri; -#define glFramebufferParameteri glad_glFramebufferParameteri -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETFRAMEBUFFERPARAMETERIVPROC glad_glGetFramebufferParameteriv; -#define glGetFramebufferParameteriv glad_glGetFramebufferParameteriv -typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC)(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params); -GLAPI PFNGLGETINTERNALFORMATI64VPROC glad_glGetInternalformati64v; -#define glGetInternalformati64v glad_glGetInternalformati64v -typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNGLINVALIDATETEXSUBIMAGEPROC glad_glInvalidateTexSubImage; -#define glInvalidateTexSubImage glad_glInvalidateTexSubImage -typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC)(GLuint texture, GLint level); -GLAPI PFNGLINVALIDATETEXIMAGEPROC glad_glInvalidateTexImage; -#define glInvalidateTexImage glad_glInvalidateTexImage -typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length); -GLAPI PFNGLINVALIDATEBUFFERSUBDATAPROC glad_glInvalidateBufferSubData; -#define glInvalidateBufferSubData glad_glInvalidateBufferSubData -typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC)(GLuint buffer); -GLAPI PFNGLINVALIDATEBUFFERDATAPROC glad_glInvalidateBufferData; -#define glInvalidateBufferData glad_glInvalidateBufferData -typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC)(GLenum target, GLsizei numAttachments, const GLenum *attachments); -GLAPI PFNGLINVALIDATEFRAMEBUFFERPROC glad_glInvalidateFramebuffer; -#define glInvalidateFramebuffer glad_glInvalidateFramebuffer -typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC)(GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLINVALIDATESUBFRAMEBUFFERPROC glad_glInvalidateSubFramebuffer; -#define glInvalidateSubFramebuffer glad_glInvalidateSubFramebuffer -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC)(GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWARRAYSINDIRECTPROC glad_glMultiDrawArraysIndirect; -#define glMultiDrawArraysIndirect glad_glMultiDrawArraysIndirect -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC)(GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWELEMENTSINDIRECTPROC glad_glMultiDrawElementsIndirect; -#define glMultiDrawElementsIndirect glad_glMultiDrawElementsIndirect -typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC)(GLuint program, GLenum programInterface, GLenum pname, GLint *params); -GLAPI PFNGLGETPROGRAMINTERFACEIVPROC glad_glGetProgramInterfaceiv; -#define glGetProgramInterfaceiv glad_glGetProgramInterfaceiv -typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC)(GLuint program, GLenum programInterface, const GLchar *name); -GLAPI PFNGLGETPROGRAMRESOURCEINDEXPROC glad_glGetProgramResourceIndex; -#define glGetProgramResourceIndex glad_glGetProgramResourceIndex -typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC)(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); -GLAPI PFNGLGETPROGRAMRESOURCENAMEPROC glad_glGetProgramResourceName; -#define glGetProgramResourceName glad_glGetProgramResourceName -typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC)(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params); -GLAPI PFNGLGETPROGRAMRESOURCEIVPROC glad_glGetProgramResourceiv; -#define glGetProgramResourceiv glad_glGetProgramResourceiv -typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC)(GLuint program, GLenum programInterface, const GLchar *name); -GLAPI PFNGLGETPROGRAMRESOURCELOCATIONPROC glad_glGetProgramResourceLocation; -#define glGetProgramResourceLocation glad_glGetProgramResourceLocation -typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC)(GLuint program, GLenum programInterface, const GLchar *name); -GLAPI PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC glad_glGetProgramResourceLocationIndex; -#define glGetProgramResourceLocationIndex glad_glGetProgramResourceLocationIndex -typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC)(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); -GLAPI PFNGLSHADERSTORAGEBLOCKBINDINGPROC glad_glShaderStorageBlockBinding; -#define glShaderStorageBlockBinding glad_glShaderStorageBlockBinding -typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC)(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLTEXBUFFERRANGEPROC glad_glTexBufferRange; -#define glTexBufferRange glad_glTexBufferRange -typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXSTORAGE2DMULTISAMPLEPROC glad_glTexStorage2DMultisample; -#define glTexStorage2DMultisample glad_glTexStorage2DMultisample -typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXSTORAGE3DMULTISAMPLEPROC glad_glTexStorage3DMultisample; -#define glTexStorage3DMultisample glad_glTexStorage3DMultisample -typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC)(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); -GLAPI PFNGLTEXTUREVIEWPROC glad_glTextureView; -#define glTextureView glad_glTextureView -typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC)(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -GLAPI PFNGLBINDVERTEXBUFFERPROC glad_glBindVertexBuffer; -#define glBindVertexBuffer glad_glBindVertexBuffer -typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC)(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -GLAPI PFNGLVERTEXATTRIBFORMATPROC glad_glVertexAttribFormat; -#define glVertexAttribFormat glad_glVertexAttribFormat -typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC)(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI PFNGLVERTEXATTRIBIFORMATPROC glad_glVertexAttribIFormat; -#define glVertexAttribIFormat glad_glVertexAttribIFormat -typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC)(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI PFNGLVERTEXATTRIBLFORMATPROC glad_glVertexAttribLFormat; -#define glVertexAttribLFormat glad_glVertexAttribLFormat -typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC)(GLuint attribindex, GLuint bindingindex); -GLAPI PFNGLVERTEXATTRIBBINDINGPROC glad_glVertexAttribBinding; -#define glVertexAttribBinding glad_glVertexAttribBinding -typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC)(GLuint bindingindex, GLuint divisor); -GLAPI PFNGLVERTEXBINDINGDIVISORPROC glad_glVertexBindingDivisor; -#define glVertexBindingDivisor glad_glVertexBindingDivisor -typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl; -#define glDebugMessageControl glad_glDebugMessageControl -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -GLAPI PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert; -#define glDebugMessageInsert glad_glDebugMessageInsert -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC)(GLDEBUGPROC callback, const void *userParam); -GLAPI PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback; -#define glDebugMessageCallback glad_glDebugMessageCallback -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC)(GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -GLAPI PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog; -#define glGetDebugMessageLog glad_glGetDebugMessageLog -typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC)(GLenum source, GLuint id, GLsizei length, const GLchar *message); -GLAPI PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup; -#define glPushDebugGroup glad_glPushDebugGroup -typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC)(void); -GLAPI PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup; -#define glPopDebugGroup glad_glPopDebugGroup -typedef void (APIENTRYP PFNGLOBJECTLABELPROC)(GLenum identifier, GLuint name, GLsizei length, const GLchar *label); -GLAPI PFNGLOBJECTLABELPROC glad_glObjectLabel; -#define glObjectLabel glad_glObjectLabel -typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC)(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); -GLAPI PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel; -#define glGetObjectLabel glad_glGetObjectLabel -typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC)(const void *ptr, GLsizei length, const GLchar *label); -GLAPI PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel; -#define glObjectPtrLabel glad_glObjectPtrLabel -typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC)(const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); -GLAPI PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel; -#define glGetObjectPtrLabel glad_glGetObjectPtrLabel -typedef void (APIENTRYP PFNGLGETPOINTERVPROC)(GLenum pname, void **params); -GLAPI PFNGLGETPOINTERVPROC glad_glGetPointerv; -#define glGetPointerv glad_glGetPointerv -#endif -#ifndef GL_VERSION_4_4 -#define GL_VERSION_4_4 1 -GLAPI int GLAD_GL_VERSION_4_4; -typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC)(GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); -GLAPI PFNGLBUFFERSTORAGEPROC glad_glBufferStorage; -#define glBufferStorage glad_glBufferStorage -typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC)(GLuint texture, GLint level, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARTEXIMAGEPROC glad_glClearTexImage; -#define glClearTexImage glad_glClearTexImage -typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARTEXSUBIMAGEPROC glad_glClearTexSubImage; -#define glClearTexSubImage glad_glClearTexSubImage -typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC)(GLenum target, GLuint first, GLsizei count, const GLuint *buffers); -GLAPI PFNGLBINDBUFFERSBASEPROC glad_glBindBuffersBase; -#define glBindBuffersBase glad_glBindBuffersBase -typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC)(GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes); -GLAPI PFNGLBINDBUFFERSRANGEPROC glad_glBindBuffersRange; -#define glBindBuffersRange glad_glBindBuffersRange -typedef void (APIENTRYP PFNGLBINDTEXTURESPROC)(GLuint first, GLsizei count, const GLuint *textures); -GLAPI PFNGLBINDTEXTURESPROC glad_glBindTextures; -#define glBindTextures glad_glBindTextures -typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC)(GLuint first, GLsizei count, const GLuint *samplers); -GLAPI PFNGLBINDSAMPLERSPROC glad_glBindSamplers; -#define glBindSamplers glad_glBindSamplers -typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC)(GLuint first, GLsizei count, const GLuint *textures); -GLAPI PFNGLBINDIMAGETEXTURESPROC glad_glBindImageTextures; -#define glBindImageTextures glad_glBindImageTextures -typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC)(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); -GLAPI PFNGLBINDVERTEXBUFFERSPROC glad_glBindVertexBuffers; -#define glBindVertexBuffers glad_glBindVertexBuffers -#endif -#ifndef GL_VERSION_4_5 -#define GL_VERSION_4_5 1 -GLAPI int GLAD_GL_VERSION_4_5; -typedef void (APIENTRYP PFNGLCLIPCONTROLPROC)(GLenum origin, GLenum depth); -GLAPI PFNGLCLIPCONTROLPROC glad_glClipControl; -#define glClipControl glad_glClipControl -typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC)(GLsizei n, GLuint *ids); -GLAPI PFNGLCREATETRANSFORMFEEDBACKSPROC glad_glCreateTransformFeedbacks; -#define glCreateTransformFeedbacks glad_glCreateTransformFeedbacks -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC)(GLuint xfb, GLuint index, GLuint buffer); -GLAPI PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC glad_glTransformFeedbackBufferBase; -#define glTransformFeedbackBufferBase glad_glTransformFeedbackBufferBase -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC)(GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC glad_glTransformFeedbackBufferRange; -#define glTransformFeedbackBufferRange glad_glTransformFeedbackBufferRange -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC)(GLuint xfb, GLenum pname, GLint *param); -GLAPI PFNGLGETTRANSFORMFEEDBACKIVPROC glad_glGetTransformFeedbackiv; -#define glGetTransformFeedbackiv glad_glGetTransformFeedbackiv -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC)(GLuint xfb, GLenum pname, GLuint index, GLint *param); -GLAPI PFNGLGETTRANSFORMFEEDBACKI_VPROC glad_glGetTransformFeedbacki_v; -#define glGetTransformFeedbacki_v glad_glGetTransformFeedbacki_v -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC)(GLuint xfb, GLenum pname, GLuint index, GLint64 *param); -GLAPI PFNGLGETTRANSFORMFEEDBACKI64_VPROC glad_glGetTransformFeedbacki64_v; -#define glGetTransformFeedbacki64_v glad_glGetTransformFeedbacki64_v -typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC)(GLsizei n, GLuint *buffers); -GLAPI PFNGLCREATEBUFFERSPROC glad_glCreateBuffers; -#define glCreateBuffers glad_glCreateBuffers -typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC)(GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); -GLAPI PFNGLNAMEDBUFFERSTORAGEPROC glad_glNamedBufferStorage; -#define glNamedBufferStorage glad_glNamedBufferStorage -typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC)(GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); -GLAPI PFNGLNAMEDBUFFERDATAPROC glad_glNamedBufferData; -#define glNamedBufferData glad_glNamedBufferData -typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); -GLAPI PFNGLNAMEDBUFFERSUBDATAPROC glad_glNamedBufferSubData; -#define glNamedBufferSubData glad_glNamedBufferSubData -typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC)(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI PFNGLCOPYNAMEDBUFFERSUBDATAPROC glad_glCopyNamedBufferSubData; -#define glCopyNamedBufferSubData glad_glCopyNamedBufferSubData -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC)(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARNAMEDBUFFERDATAPROC glad_glClearNamedBufferData; -#define glClearNamedBufferData glad_glClearNamedBufferData -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC)(GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARNAMEDBUFFERSUBDATAPROC glad_glClearNamedBufferSubData; -#define glClearNamedBufferSubData glad_glClearNamedBufferSubData -typedef void * (APIENTRYP PFNGLMAPNAMEDBUFFERPROC)(GLuint buffer, GLenum access); -GLAPI PFNGLMAPNAMEDBUFFERPROC glad_glMapNamedBuffer; -#define glMapNamedBuffer glad_glMapNamedBuffer -typedef void * (APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); -GLAPI PFNGLMAPNAMEDBUFFERRANGEPROC glad_glMapNamedBufferRange; -#define glMapNamedBufferRange glad_glMapNamedBufferRange -typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC)(GLuint buffer); -GLAPI PFNGLUNMAPNAMEDBUFFERPROC glad_glUnmapNamedBuffer; -#define glUnmapNamedBuffer glad_glUnmapNamedBuffer -typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length); -GLAPI PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC glad_glFlushMappedNamedBufferRange; -#define glFlushMappedNamedBufferRange glad_glFlushMappedNamedBufferRange -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC)(GLuint buffer, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDBUFFERPARAMETERIVPROC glad_glGetNamedBufferParameteriv; -#define glGetNamedBufferParameteriv glad_glGetNamedBufferParameteriv -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC)(GLuint buffer, GLenum pname, GLint64 *params); -GLAPI PFNGLGETNAMEDBUFFERPARAMETERI64VPROC glad_glGetNamedBufferParameteri64v; -#define glGetNamedBufferParameteri64v glad_glGetNamedBufferParameteri64v -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC)(GLuint buffer, GLenum pname, void **params); -GLAPI PFNGLGETNAMEDBUFFERPOINTERVPROC glad_glGetNamedBufferPointerv; -#define glGetNamedBufferPointerv glad_glGetNamedBufferPointerv -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); -GLAPI PFNGLGETNAMEDBUFFERSUBDATAPROC glad_glGetNamedBufferSubData; -#define glGetNamedBufferSubData glad_glGetNamedBufferSubData -typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC)(GLsizei n, GLuint *framebuffers); -GLAPI PFNGLCREATEFRAMEBUFFERSPROC glad_glCreateFramebuffers; -#define glCreateFramebuffers glad_glCreateFramebuffers -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC)(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC glad_glNamedFramebufferRenderbuffer; -#define glNamedFramebufferRenderbuffer glad_glNamedFramebufferRenderbuffer -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC)(GLuint framebuffer, GLenum pname, GLint param); -GLAPI PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC glad_glNamedFramebufferParameteri; -#define glNamedFramebufferParameteri glad_glNamedFramebufferParameteri -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -GLAPI PFNGLNAMEDFRAMEBUFFERTEXTUREPROC glad_glNamedFramebufferTexture; -#define glNamedFramebufferTexture glad_glNamedFramebufferTexture -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC glad_glNamedFramebufferTextureLayer; -#define glNamedFramebufferTextureLayer glad_glNamedFramebufferTextureLayer -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC)(GLuint framebuffer, GLenum buf); -GLAPI PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC glad_glNamedFramebufferDrawBuffer; -#define glNamedFramebufferDrawBuffer glad_glNamedFramebufferDrawBuffer -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC)(GLuint framebuffer, GLsizei n, const GLenum *bufs); -GLAPI PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC glad_glNamedFramebufferDrawBuffers; -#define glNamedFramebufferDrawBuffers glad_glNamedFramebufferDrawBuffers -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC)(GLuint framebuffer, GLenum src); -GLAPI PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC glad_glNamedFramebufferReadBuffer; -#define glNamedFramebufferReadBuffer glad_glNamedFramebufferReadBuffer -typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC)(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments); -GLAPI PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC glad_glInvalidateNamedFramebufferData; -#define glInvalidateNamedFramebufferData glad_glInvalidateNamedFramebufferData -typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC)(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC glad_glInvalidateNamedFramebufferSubData; -#define glInvalidateNamedFramebufferSubData glad_glInvalidateNamedFramebufferSubData -typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value); -GLAPI PFNGLCLEARNAMEDFRAMEBUFFERIVPROC glad_glClearNamedFramebufferiv; -#define glClearNamedFramebufferiv glad_glClearNamedFramebufferiv -typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value); -GLAPI PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC glad_glClearNamedFramebufferuiv; -#define glClearNamedFramebufferuiv glad_glClearNamedFramebufferuiv -typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value); -GLAPI PFNGLCLEARNAMEDFRAMEBUFFERFVPROC glad_glClearNamedFramebufferfv; -#define glClearNamedFramebufferfv glad_glClearNamedFramebufferfv -typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC)(GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); -GLAPI PFNGLCLEARNAMEDFRAMEBUFFERFIPROC glad_glClearNamedFramebufferfi; -#define glClearNamedFramebufferfi glad_glClearNamedFramebufferfi -typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC)(GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNGLBLITNAMEDFRAMEBUFFERPROC glad_glBlitNamedFramebuffer; -#define glBlitNamedFramebuffer glad_glBlitNamedFramebuffer -typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC)(GLuint framebuffer, GLenum target); -GLAPI PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC glad_glCheckNamedFramebufferStatus; -#define glCheckNamedFramebufferStatus glad_glCheckNamedFramebufferStatus -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC)(GLuint framebuffer, GLenum pname, GLint *param); -GLAPI PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC glad_glGetNamedFramebufferParameteriv; -#define glGetNamedFramebufferParameteriv glad_glGetNamedFramebufferParameteriv -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC)(GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetNamedFramebufferAttachmentParameteriv; -#define glGetNamedFramebufferAttachmentParameteriv glad_glGetNamedFramebufferAttachmentParameteriv -typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC)(GLsizei n, GLuint *renderbuffers); -GLAPI PFNGLCREATERENDERBUFFERSPROC glad_glCreateRenderbuffers; -#define glCreateRenderbuffers glad_glCreateRenderbuffers -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC)(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLNAMEDRENDERBUFFERSTORAGEPROC glad_glNamedRenderbufferStorage; -#define glNamedRenderbufferStorage glad_glNamedRenderbufferStorage -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC)(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glNamedRenderbufferStorageMultisample; -#define glNamedRenderbufferStorageMultisample glad_glNamedRenderbufferStorageMultisample -typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC)(GLuint renderbuffer, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC glad_glGetNamedRenderbufferParameteriv; -#define glGetNamedRenderbufferParameteriv glad_glGetNamedRenderbufferParameteriv -typedef void (APIENTRYP PFNGLCREATETEXTURESPROC)(GLenum target, GLsizei n, GLuint *textures); -GLAPI PFNGLCREATETEXTURESPROC glad_glCreateTextures; -#define glCreateTextures glad_glCreateTextures -typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC)(GLuint texture, GLenum internalformat, GLuint buffer); -GLAPI PFNGLTEXTUREBUFFERPROC glad_glTextureBuffer; -#define glTextureBuffer glad_glTextureBuffer -typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC)(GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLTEXTUREBUFFERRANGEPROC glad_glTextureBufferRange; -#define glTextureBufferRange glad_glTextureBufferRange -typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI PFNGLTEXTURESTORAGE1DPROC glad_glTextureStorage1D; -#define glTextureStorage1D glad_glTextureStorage1D -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLTEXTURESTORAGE2DPROC glad_glTextureStorage2D; -#define glTextureStorage2D glad_glTextureStorage2D -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC)(GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNGLTEXTURESTORAGE3DPROC glad_glTextureStorage3D; -#define glTextureStorage3D glad_glTextureStorage3D -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC)(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC glad_glTextureStorage2DMultisample; -#define glTextureStorage2DMultisample glad_glTextureStorage2DMultisample -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC)(GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC glad_glTextureStorage3DMultisample; -#define glTextureStorage3DMultisample glad_glTextureStorage3DMultisample -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC)(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTURESUBIMAGE1DPROC glad_glTextureSubImage1D; -#define glTextureSubImage1D glad_glTextureSubImage1D -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTURESUBIMAGE2DPROC glad_glTextureSubImage2D; -#define glTextureSubImage2D glad_glTextureSubImage2D -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTURESUBIMAGE3DPROC glad_glTextureSubImage3D; -#define glTextureSubImage3D glad_glTextureSubImage3D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC)(GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC glad_glCompressedTextureSubImage1D; -#define glCompressedTextureSubImage1D glad_glCompressedTextureSubImage1D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC glad_glCompressedTextureSubImage2D; -#define glCompressedTextureSubImage2D glad_glCompressedTextureSubImage2D -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC glad_glCompressedTextureSubImage3D; -#define glCompressedTextureSubImage3D glad_glCompressedTextureSubImage3D -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC)(GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYTEXTURESUBIMAGE1DPROC glad_glCopyTextureSubImage1D; -#define glCopyTextureSubImage1D glad_glCopyTextureSubImage1D -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXTURESUBIMAGE2DPROC glad_glCopyTextureSubImage2D; -#define glCopyTextureSubImage2D glad_glCopyTextureSubImage2D -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXTURESUBIMAGE3DPROC glad_glCopyTextureSubImage3D; -#define glCopyTextureSubImage3D glad_glCopyTextureSubImage3D -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC)(GLuint texture, GLenum pname, GLfloat param); -GLAPI PFNGLTEXTUREPARAMETERFPROC glad_glTextureParameterf; -#define glTextureParameterf glad_glTextureParameterf -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC)(GLuint texture, GLenum pname, const GLfloat *param); -GLAPI PFNGLTEXTUREPARAMETERFVPROC glad_glTextureParameterfv; -#define glTextureParameterfv glad_glTextureParameterfv -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC)(GLuint texture, GLenum pname, GLint param); -GLAPI PFNGLTEXTUREPARAMETERIPROC glad_glTextureParameteri; -#define glTextureParameteri glad_glTextureParameteri -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC)(GLuint texture, GLenum pname, const GLint *params); -GLAPI PFNGLTEXTUREPARAMETERIIVPROC glad_glTextureParameterIiv; -#define glTextureParameterIiv glad_glTextureParameterIiv -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC)(GLuint texture, GLenum pname, const GLuint *params); -GLAPI PFNGLTEXTUREPARAMETERIUIVPROC glad_glTextureParameterIuiv; -#define glTextureParameterIuiv glad_glTextureParameterIuiv -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC)(GLuint texture, GLenum pname, const GLint *param); -GLAPI PFNGLTEXTUREPARAMETERIVPROC glad_glTextureParameteriv; -#define glTextureParameteriv glad_glTextureParameteriv -typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC)(GLuint texture); -GLAPI PFNGLGENERATETEXTUREMIPMAPPROC glad_glGenerateTextureMipmap; -#define glGenerateTextureMipmap glad_glGenerateTextureMipmap -typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC)(GLuint unit, GLuint texture); -GLAPI PFNGLBINDTEXTUREUNITPROC glad_glBindTextureUnit; -#define glBindTextureUnit glad_glBindTextureUnit -typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC)(GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -GLAPI PFNGLGETTEXTUREIMAGEPROC glad_glGetTextureImage; -#define glGetTextureImage glad_glGetTextureImage -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC)(GLuint texture, GLint level, GLsizei bufSize, void *pixels); -GLAPI PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC glad_glGetCompressedTextureImage; -#define glGetCompressedTextureImage glad_glGetCompressedTextureImage -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC)(GLuint texture, GLint level, GLenum pname, GLfloat *params); -GLAPI PFNGLGETTEXTURELEVELPARAMETERFVPROC glad_glGetTextureLevelParameterfv; -#define glGetTextureLevelParameterfv glad_glGetTextureLevelParameterfv -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC)(GLuint texture, GLint level, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXTURELEVELPARAMETERIVPROC glad_glGetTextureLevelParameteriv; -#define glGetTextureLevelParameteriv glad_glGetTextureLevelParameteriv -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC)(GLuint texture, GLenum pname, GLfloat *params); -GLAPI PFNGLGETTEXTUREPARAMETERFVPROC glad_glGetTextureParameterfv; -#define glGetTextureParameterfv glad_glGetTextureParameterfv -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC)(GLuint texture, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXTUREPARAMETERIIVPROC glad_glGetTextureParameterIiv; -#define glGetTextureParameterIiv glad_glGetTextureParameterIiv -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC)(GLuint texture, GLenum pname, GLuint *params); -GLAPI PFNGLGETTEXTUREPARAMETERIUIVPROC glad_glGetTextureParameterIuiv; -#define glGetTextureParameterIuiv glad_glGetTextureParameterIuiv -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC)(GLuint texture, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXTUREPARAMETERIVPROC glad_glGetTextureParameteriv; -#define glGetTextureParameteriv glad_glGetTextureParameteriv -typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC)(GLsizei n, GLuint *arrays); -GLAPI PFNGLCREATEVERTEXARRAYSPROC glad_glCreateVertexArrays; -#define glCreateVertexArrays glad_glCreateVertexArrays -typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC)(GLuint vaobj, GLuint index); -GLAPI PFNGLDISABLEVERTEXARRAYATTRIBPROC glad_glDisableVertexArrayAttrib; -#define glDisableVertexArrayAttrib glad_glDisableVertexArrayAttrib -typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC)(GLuint vaobj, GLuint index); -GLAPI PFNGLENABLEVERTEXARRAYATTRIBPROC glad_glEnableVertexArrayAttrib; -#define glEnableVertexArrayAttrib glad_glEnableVertexArrayAttrib -typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC)(GLuint vaobj, GLuint buffer); -GLAPI PFNGLVERTEXARRAYELEMENTBUFFERPROC glad_glVertexArrayElementBuffer; -#define glVertexArrayElementBuffer glad_glVertexArrayElementBuffer -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC)(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -GLAPI PFNGLVERTEXARRAYVERTEXBUFFERPROC glad_glVertexArrayVertexBuffer; -#define glVertexArrayVertexBuffer glad_glVertexArrayVertexBuffer -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC)(GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); -GLAPI PFNGLVERTEXARRAYVERTEXBUFFERSPROC glad_glVertexArrayVertexBuffers; -#define glVertexArrayVertexBuffers glad_glVertexArrayVertexBuffers -typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC)(GLuint vaobj, GLuint attribindex, GLuint bindingindex); -GLAPI PFNGLVERTEXARRAYATTRIBBINDINGPROC glad_glVertexArrayAttribBinding; -#define glVertexArrayAttribBinding glad_glVertexArrayAttribBinding -typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -GLAPI PFNGLVERTEXARRAYATTRIBFORMATPROC glad_glVertexArrayAttribFormat; -#define glVertexArrayAttribFormat glad_glVertexArrayAttribFormat -typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI PFNGLVERTEXARRAYATTRIBIFORMATPROC glad_glVertexArrayAttribIFormat; -#define glVertexArrayAttribIFormat glad_glVertexArrayAttribIFormat -typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI PFNGLVERTEXARRAYATTRIBLFORMATPROC glad_glVertexArrayAttribLFormat; -#define glVertexArrayAttribLFormat glad_glVertexArrayAttribLFormat -typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC)(GLuint vaobj, GLuint bindingindex, GLuint divisor); -GLAPI PFNGLVERTEXARRAYBINDINGDIVISORPROC glad_glVertexArrayBindingDivisor; -#define glVertexArrayBindingDivisor glad_glVertexArrayBindingDivisor -typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC)(GLuint vaobj, GLenum pname, GLint *param); -GLAPI PFNGLGETVERTEXARRAYIVPROC glad_glGetVertexArrayiv; -#define glGetVertexArrayiv glad_glGetVertexArrayiv -typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC)(GLuint vaobj, GLuint index, GLenum pname, GLint *param); -GLAPI PFNGLGETVERTEXARRAYINDEXEDIVPROC glad_glGetVertexArrayIndexediv; -#define glGetVertexArrayIndexediv glad_glGetVertexArrayIndexediv -typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC)(GLuint vaobj, GLuint index, GLenum pname, GLint64 *param); -GLAPI PFNGLGETVERTEXARRAYINDEXED64IVPROC glad_glGetVertexArrayIndexed64iv; -#define glGetVertexArrayIndexed64iv glad_glGetVertexArrayIndexed64iv -typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC)(GLsizei n, GLuint *samplers); -GLAPI PFNGLCREATESAMPLERSPROC glad_glCreateSamplers; -#define glCreateSamplers glad_glCreateSamplers -typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC)(GLsizei n, GLuint *pipelines); -GLAPI PFNGLCREATEPROGRAMPIPELINESPROC glad_glCreateProgramPipelines; -#define glCreateProgramPipelines glad_glCreateProgramPipelines -typedef void (APIENTRYP PFNGLCREATEQUERIESPROC)(GLenum target, GLsizei n, GLuint *ids); -GLAPI PFNGLCREATEQUERIESPROC glad_glCreateQueries; -#define glCreateQueries glad_glCreateQueries -typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTI64VPROC)(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); -GLAPI PFNGLGETQUERYBUFFEROBJECTI64VPROC glad_glGetQueryBufferObjecti64v; -#define glGetQueryBufferObjecti64v glad_glGetQueryBufferObjecti64v -typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTIVPROC)(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); -GLAPI PFNGLGETQUERYBUFFEROBJECTIVPROC glad_glGetQueryBufferObjectiv; -#define glGetQueryBufferObjectiv glad_glGetQueryBufferObjectiv -typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUI64VPROC)(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); -GLAPI PFNGLGETQUERYBUFFEROBJECTUI64VPROC glad_glGetQueryBufferObjectui64v; -#define glGetQueryBufferObjectui64v glad_glGetQueryBufferObjectui64v -typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUIVPROC)(GLuint id, GLuint buffer, GLenum pname, GLintptr offset); -GLAPI PFNGLGETQUERYBUFFEROBJECTUIVPROC glad_glGetQueryBufferObjectuiv; -#define glGetQueryBufferObjectuiv glad_glGetQueryBufferObjectuiv -typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC)(GLbitfield barriers); -GLAPI PFNGLMEMORYBARRIERBYREGIONPROC glad_glMemoryBarrierByRegion; -#define glMemoryBarrierByRegion glad_glMemoryBarrierByRegion -typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -GLAPI PFNGLGETTEXTURESUBIMAGEPROC glad_glGetTextureSubImage; -#define glGetTextureSubImage glad_glGetTextureSubImage -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels); -GLAPI PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC glad_glGetCompressedTextureSubImage; -#define glGetCompressedTextureSubImage glad_glGetCompressedTextureSubImage -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC)(void); -GLAPI PFNGLGETGRAPHICSRESETSTATUSPROC glad_glGetGraphicsResetStatus; -#define glGetGraphicsResetStatus glad_glGetGraphicsResetStatus -typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC)(GLenum target, GLint lod, GLsizei bufSize, void *pixels); -GLAPI PFNGLGETNCOMPRESSEDTEXIMAGEPROC glad_glGetnCompressedTexImage; -#define glGetnCompressedTexImage glad_glGetnCompressedTexImage -typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC)(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels); -GLAPI PFNGLGETNTEXIMAGEPROC glad_glGetnTexImage; -#define glGetnTexImage glad_glGetnTexImage -typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC)(GLuint program, GLint location, GLsizei bufSize, GLdouble *params); -GLAPI PFNGLGETNUNIFORMDVPROC glad_glGetnUniformdv; -#define glGetnUniformdv glad_glGetnUniformdv -typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC)(GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -GLAPI PFNGLGETNUNIFORMFVPROC glad_glGetnUniformfv; -#define glGetnUniformfv glad_glGetnUniformfv -typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC)(GLuint program, GLint location, GLsizei bufSize, GLint *params); -GLAPI PFNGLGETNUNIFORMIVPROC glad_glGetnUniformiv; -#define glGetnUniformiv glad_glGetnUniformiv -typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC)(GLuint program, GLint location, GLsizei bufSize, GLuint *params); -GLAPI PFNGLGETNUNIFORMUIVPROC glad_glGetnUniformuiv; -#define glGetnUniformuiv glad_glGetnUniformuiv -typedef void (APIENTRYP PFNGLREADNPIXELSPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); -GLAPI PFNGLREADNPIXELSPROC glad_glReadnPixels; -#define glReadnPixels glad_glReadnPixels -typedef void (APIENTRYP PFNGLGETNMAPDVPROC)(GLenum target, GLenum query, GLsizei bufSize, GLdouble *v); -GLAPI PFNGLGETNMAPDVPROC glad_glGetnMapdv; -#define glGetnMapdv glad_glGetnMapdv -typedef void (APIENTRYP PFNGLGETNMAPFVPROC)(GLenum target, GLenum query, GLsizei bufSize, GLfloat *v); -GLAPI PFNGLGETNMAPFVPROC glad_glGetnMapfv; -#define glGetnMapfv glad_glGetnMapfv -typedef void (APIENTRYP PFNGLGETNMAPIVPROC)(GLenum target, GLenum query, GLsizei bufSize, GLint *v); -GLAPI PFNGLGETNMAPIVPROC glad_glGetnMapiv; -#define glGetnMapiv glad_glGetnMapiv -typedef void (APIENTRYP PFNGLGETNPIXELMAPFVPROC)(GLenum map, GLsizei bufSize, GLfloat *values); -GLAPI PFNGLGETNPIXELMAPFVPROC glad_glGetnPixelMapfv; -#define glGetnPixelMapfv glad_glGetnPixelMapfv -typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVPROC)(GLenum map, GLsizei bufSize, GLuint *values); -GLAPI PFNGLGETNPIXELMAPUIVPROC glad_glGetnPixelMapuiv; -#define glGetnPixelMapuiv glad_glGetnPixelMapuiv -typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVPROC)(GLenum map, GLsizei bufSize, GLushort *values); -GLAPI PFNGLGETNPIXELMAPUSVPROC glad_glGetnPixelMapusv; -#define glGetnPixelMapusv glad_glGetnPixelMapusv -typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEPROC)(GLsizei bufSize, GLubyte *pattern); -GLAPI PFNGLGETNPOLYGONSTIPPLEPROC glad_glGetnPolygonStipple; -#define glGetnPolygonStipple glad_glGetnPolygonStipple -typedef void (APIENTRYP PFNGLGETNCOLORTABLEPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table); -GLAPI PFNGLGETNCOLORTABLEPROC glad_glGetnColorTable; -#define glGetnColorTable glad_glGetnColorTable -typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image); -GLAPI PFNGLGETNCONVOLUTIONFILTERPROC glad_glGetnConvolutionFilter; -#define glGetnConvolutionFilter glad_glGetnConvolutionFilter -typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERPROC)(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span); -GLAPI PFNGLGETNSEPARABLEFILTERPROC glad_glGetnSeparableFilter; -#define glGetnSeparableFilter glad_glGetnSeparableFilter -typedef void (APIENTRYP PFNGLGETNHISTOGRAMPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -GLAPI PFNGLGETNHISTOGRAMPROC glad_glGetnHistogram; -#define glGetnHistogram glad_glGetnHistogram -typedef void (APIENTRYP PFNGLGETNMINMAXPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -GLAPI PFNGLGETNMINMAXPROC glad_glGetnMinmax; -#define glGetnMinmax glad_glGetnMinmax -typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC)(void); -GLAPI PFNGLTEXTUREBARRIERPROC glad_glTextureBarrier; -#define glTextureBarrier glad_glTextureBarrier -#endif -#ifndef GL_VERSION_4_6 -#define GL_VERSION_4_6 1 -GLAPI int GLAD_GL_VERSION_4_6; -typedef void (APIENTRYP PFNGLSPECIALIZESHADERPROC)(GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); -GLAPI PFNGLSPECIALIZESHADERPROC glad_glSpecializeShader; -#define glSpecializeShader glad_glSpecializeShader -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC)(GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC glad_glMultiDrawArraysIndirectCount; -#define glMultiDrawArraysIndirectCount glad_glMultiDrawArraysIndirectCount -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC)(GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC glad_glMultiDrawElementsIndirectCount; -#define glMultiDrawElementsIndirectCount glad_glMultiDrawElementsIndirectCount -typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPPROC)(GLfloat factor, GLfloat units, GLfloat clamp); -GLAPI PFNGLPOLYGONOFFSETCLAMPPROC glad_glPolygonOffsetClamp; -#define glPolygonOffsetClamp glad_glPolygonOffsetClamp -#endif -#ifndef GL_ES_VERSION_2_0 -#define GL_ES_VERSION_2_0 1 -GLAPI int GLAD_GL_ES_VERSION_2_0; -#endif -#ifndef GL_ES_VERSION_3_0 -#define GL_ES_VERSION_3_0 1 -GLAPI int GLAD_GL_ES_VERSION_3_0; -#endif -#ifndef GL_ES_VERSION_3_1 -#define GL_ES_VERSION_3_1 1 -GLAPI int GLAD_GL_ES_VERSION_3_1; -#endif -#ifndef GL_ES_VERSION_3_2 -#define GL_ES_VERSION_3_2 1 -GLAPI int GLAD_GL_ES_VERSION_3_2; -typedef void (APIENTRYP PFNGLBLENDBARRIERPROC)(void); -GLAPI PFNGLBLENDBARRIERPROC glad_glBlendBarrier; -#define glBlendBarrier glad_glBlendBarrier -typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXPROC)(GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); -GLAPI PFNGLPRIMITIVEBOUNDINGBOXPROC glad_glPrimitiveBoundingBox; -#define glPrimitiveBoundingBox glad_glPrimitiveBoundingBox -#endif -#define GL_MULTISAMPLE_3DFX 0x86B2 -#define GL_SAMPLE_BUFFERS_3DFX 0x86B3 -#define GL_SAMPLES_3DFX 0x86B4 -#define GL_MULTISAMPLE_BIT_3DFX 0x20000000 -#define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0 -#define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1 -#define GL_FACTOR_MIN_AMD 0x901C -#define GL_FACTOR_MAX_AMD 0x901D -#define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145 -#define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM_AMD 0x9147 -#define GL_DEBUG_SEVERITY_LOW_AMD 0x9148 -#define GL_DEBUG_CATEGORY_API_ERROR_AMD 0x9149 -#define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A -#define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B -#define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C -#define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D -#define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E -#define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F -#define GL_DEBUG_CATEGORY_OTHER_AMD 0x9150 -#define GL_DEPTH_CLAMP_NEAR_AMD 0x901E -#define GL_DEPTH_CLAMP_FAR_AMD 0x901F -#define GL_SUBSAMPLE_DISTANCE_AMD 0x883F -#define GL_PIXELS_PER_SAMPLE_PATTERN_X_AMD 0x91AE -#define GL_PIXELS_PER_SAMPLE_PATTERN_Y_AMD 0x91AF -#define GL_ALL_PIXELS_AMD 0xFFFFFFFF -#define GL_FLOAT16_NV 0x8FF8 -#define GL_FLOAT16_VEC2_NV 0x8FF9 -#define GL_FLOAT16_VEC3_NV 0x8FFA -#define GL_FLOAT16_VEC4_NV 0x8FFB -#define GL_FLOAT16_MAT2_AMD 0x91C5 -#define GL_FLOAT16_MAT3_AMD 0x91C6 -#define GL_FLOAT16_MAT4_AMD 0x91C7 -#define GL_FLOAT16_MAT2x3_AMD 0x91C8 -#define GL_FLOAT16_MAT2x4_AMD 0x91C9 -#define GL_FLOAT16_MAT3x2_AMD 0x91CA -#define GL_FLOAT16_MAT3x4_AMD 0x91CB -#define GL_FLOAT16_MAT4x2_AMD 0x91CC -#define GL_FLOAT16_MAT4x3_AMD 0x91CD -#define GL_INT64_NV 0x140E -#define GL_UNSIGNED_INT64_NV 0x140F -#define GL_INT8_NV 0x8FE0 -#define GL_INT8_VEC2_NV 0x8FE1 -#define GL_INT8_VEC3_NV 0x8FE2 -#define GL_INT8_VEC4_NV 0x8FE3 -#define GL_INT16_NV 0x8FE4 -#define GL_INT16_VEC2_NV 0x8FE5 -#define GL_INT16_VEC3_NV 0x8FE6 -#define GL_INT16_VEC4_NV 0x8FE7 -#define GL_INT64_VEC2_NV 0x8FE9 -#define GL_INT64_VEC3_NV 0x8FEA -#define GL_INT64_VEC4_NV 0x8FEB -#define GL_UNSIGNED_INT8_NV 0x8FEC -#define GL_UNSIGNED_INT8_VEC2_NV 0x8FED -#define GL_UNSIGNED_INT8_VEC3_NV 0x8FEE -#define GL_UNSIGNED_INT8_VEC4_NV 0x8FEF -#define GL_UNSIGNED_INT16_NV 0x8FF0 -#define GL_UNSIGNED_INT16_VEC2_NV 0x8FF1 -#define GL_UNSIGNED_INT16_VEC3_NV 0x8FF2 -#define GL_UNSIGNED_INT16_VEC4_NV 0x8FF3 -#define GL_UNSIGNED_INT64_VEC2_NV 0x8FF5 -#define GL_UNSIGNED_INT64_VEC3_NV 0x8FF6 -#define GL_UNSIGNED_INT64_VEC4_NV 0x8FF7 -#define GL_VERTEX_ELEMENT_SWIZZLE_AMD 0x91A4 -#define GL_VERTEX_ID_SWIZZLE_AMD 0x91A5 -#define GL_DATA_BUFFER_AMD 0x9151 -#define GL_PERFORMANCE_MONITOR_AMD 0x9152 -#define GL_QUERY_OBJECT_AMD 0x9153 -#define GL_VERTEX_ARRAY_OBJECT_AMD 0x9154 -#define GL_SAMPLER_OBJECT_AMD 0x9155 -#define GL_OCCLUSION_QUERY_EVENT_MASK_AMD 0x874F -#define GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD 0x00000001 -#define GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD 0x00000002 -#define GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD 0x00000004 -#define GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD 0x00000008 -#define GL_QUERY_ALL_EVENT_BITS_AMD 0xFFFFFFFF -#define GL_COUNTER_TYPE_AMD 0x8BC0 -#define GL_COUNTER_RANGE_AMD 0x8BC1 -#define GL_UNSIGNED_INT64_AMD 0x8BC2 -#define GL_PERCENTAGE_AMD 0x8BC3 -#define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4 -#define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5 -#define GL_PERFMON_RESULT_AMD 0x8BC6 -#define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160 -#define GL_QUERY_BUFFER_AMD 0x9192 -#define GL_QUERY_BUFFER_BINDING_AMD 0x9193 -#define GL_QUERY_RESULT_NO_WAIT_AMD 0x9194 -#define GL_VIRTUAL_PAGE_SIZE_X_AMD 0x9195 -#define GL_VIRTUAL_PAGE_SIZE_Y_AMD 0x9196 -#define GL_VIRTUAL_PAGE_SIZE_Z_AMD 0x9197 -#define GL_MAX_SPARSE_TEXTURE_SIZE_AMD 0x9198 -#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199 -#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A -#define GL_MIN_SPARSE_LEVEL_AMD 0x919B -#define GL_MIN_LOD_WARNING_AMD 0x919C -#define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001 -#define GL_SET_AMD 0x874A -#define GL_REPLACE_VALUE_AMD 0x874B -#define GL_STENCIL_OP_VALUE_AMD 0x874C -#define GL_STENCIL_BACK_OP_VALUE_AMD 0x874D -#define GL_STREAM_RASTERIZATION_AMD 0x91A0 -#define GL_SAMPLER_BUFFER_AMD 0x9001 -#define GL_INT_SAMPLER_BUFFER_AMD 0x9002 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003 -#define GL_TESSELLATION_MODE_AMD 0x9004 -#define GL_TESSELLATION_FACTOR_AMD 0x9005 -#define GL_DISCRETE_AMD 0x9006 -#define GL_CONTINUOUS_AMD 0x9007 -#define GL_AUX_DEPTH_STENCIL_APPLE 0x8A14 -#define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2 -#define GL_ELEMENT_ARRAY_APPLE 0x8A0C -#define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8A0D -#define GL_ELEMENT_ARRAY_POINTER_APPLE 0x8A0E -#define GL_DRAW_PIXELS_APPLE 0x8A0A -#define GL_FENCE_APPLE 0x8A0B -#define GL_HALF_APPLE 0x140B -#define GL_RGBA_FLOAT32_APPLE 0x8814 -#define GL_RGB_FLOAT32_APPLE 0x8815 -#define GL_ALPHA_FLOAT32_APPLE 0x8816 -#define GL_INTENSITY_FLOAT32_APPLE 0x8817 -#define GL_LUMINANCE_FLOAT32_APPLE 0x8818 -#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819 -#define GL_RGBA_FLOAT16_APPLE 0x881A -#define GL_RGB_FLOAT16_APPLE 0x881B -#define GL_ALPHA_FLOAT16_APPLE 0x881C -#define GL_INTENSITY_FLOAT16_APPLE 0x881D -#define GL_LUMINANCE_FLOAT16_APPLE 0x881E -#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F -#define GL_COLOR_FLOAT_APPLE 0x8A0F -#define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12 -#define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13 -#define GL_BUFFER_OBJECT_APPLE 0x85B3 -#define GL_RELEASED_APPLE 0x8A19 -#define GL_VOLATILE_APPLE 0x8A1A -#define GL_RETAINED_APPLE 0x8A1B -#define GL_UNDEFINED_APPLE 0x8A1C -#define GL_PURGEABLE_APPLE 0x8A1D -#define GL_RGB_422_APPLE 0x8A1F -#define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB -#define GL_RGB_RAW_422_APPLE 0x8A51 -#define GL_PACK_ROW_BYTES_APPLE 0x8A15 -#define GL_UNPACK_ROW_BYTES_APPLE 0x8A16 -#define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0 -#define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7 -#define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8 -#define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC -#define GL_STORAGE_PRIVATE_APPLE 0x85BD -#define GL_STORAGE_CACHED_APPLE 0x85BE -#define GL_STORAGE_SHARED_APPLE 0x85BF -#define GL_TRANSFORM_HINT_APPLE 0x85B1 -#define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5 -#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_CLIENT_APPLE 0x85B4 -#define GL_VERTEX_ATTRIB_MAP1_APPLE 0x8A00 -#define GL_VERTEX_ATTRIB_MAP2_APPLE 0x8A01 -#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE 0x8A02 -#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03 -#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04 -#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05 -#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE 0x8A06 -#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07 -#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08 -#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09 -#define GL_YCBCR_422_APPLE 0x85B9 -#define GL_PRIMITIVE_BOUNDING_BOX_ARB 0x92BE -#define GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB 0x9381 -#define GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB 0x9382 -#define GL_UNSIGNED_INT64_ARB 0x140F -#define GL_SYNC_CL_EVENT_ARB 0x8240 -#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241 -#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 -#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344 -#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB -#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345 -#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF -#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 -#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 -#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 -#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 -#define GL_DEBUG_SOURCE_API_ARB 0x8246 -#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 -#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 -#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 -#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A -#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B -#define GL_DEBUG_TYPE_ERROR_ARB 0x824C -#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D -#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E -#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F -#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 -#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 -#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 -#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 -#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 -#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 -#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 -#define GL_FRAGMENT_PROGRAM_ARB 0x8804 -#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875 -#define GL_PROGRAM_LENGTH_ARB 0x8627 -#define GL_PROGRAM_FORMAT_ARB 0x8876 -#define GL_PROGRAM_BINDING_ARB 0x8677 -#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_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4 -#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5 -#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6 -#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_PROGRAM_STRING_ARB 0x8628 -#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B -#define GL_CURRENT_MATRIX_ARB 0x8641 -#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7 -#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640 -#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F -#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E -#define GL_MAX_TEXTURE_COORDS_ARB 0x8871 -#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872 -#define GL_PROGRAM_ERROR_STRING_ARB 0x8874 -#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 -#define GL_FRAGMENT_SHADER_ARB 0x8B30 -#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49 -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B -#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 -#define GL_SHADER_BINARY_FORMAT_SPIR_V_ARB 0x9551 -#define GL_SPIR_V_BINARY_ARB 0x9552 -#define GL_INT64_ARB 0x140E -#define GL_INT64_VEC2_ARB 0x8FE9 -#define GL_INT64_VEC3_ARB 0x8FEA -#define GL_INT64_VEC4_ARB 0x8FEB -#define GL_UNSIGNED_INT64_VEC2_ARB 0x8FF5 -#define GL_UNSIGNED_INT64_VEC3_ARB 0x8FF6 -#define GL_UNSIGNED_INT64_VEC4_ARB 0x8FF7 -#define GL_HALF_FLOAT_ARB 0x140B -#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 -#define GL_PARAMETER_BUFFER_ARB 0x80EE -#define GL_PARAMETER_BUFFER_BINDING_ARB 0x80EF -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE -#define GL_SRGB_DECODE_ARB 0x8299 -#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 -#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 -#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 -#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 -#define GL_MAX_SHADER_COMPILER_THREADS_ARB 0x91B0 -#define GL_COMPLETION_STATUS_ARB 0x91B1 -#define GL_VERTICES_SUBMITTED_ARB 0x82EE -#define GL_PRIMITIVES_SUBMITTED_ARB 0x82EF -#define GL_VERTEX_SHADER_INVOCATIONS_ARB 0x82F0 -#define GL_TESS_CONTROL_SHADER_PATCHES_ARB 0x82F1 -#define GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB 0x82F2 -#define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB 0x82F3 -#define GL_FRAGMENT_SHADER_INVOCATIONS_ARB 0x82F4 -#define GL_COMPUTE_SHADER_INVOCATIONS_ARB 0x82F5 -#define GL_CLIPPING_INPUT_PRIMITIVES_ARB 0x82F6 -#define GL_CLIPPING_OUTPUT_PRIMITIVES_ARB 0x82F7 -#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 -#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 -#define GL_POINT_SPRITE_ARB 0x8861 -#define GL_COORD_REPLACE_ARB 0x8862 -#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 -#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 -#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 -#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB 0x933D -#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB 0x933E -#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB 0x933F -#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB 0x9340 -#define GL_SAMPLE_LOCATION_ARB 0x8E50 -#define GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB 0x9341 -#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB 0x9342 -#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB 0x9343 -#define GL_SAMPLE_SHADING_ARB 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37 -#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 -#define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C -#define GL_SHADER_INCLUDE_ARB 0x8DAE -#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9 -#define GL_NAMED_STRING_TYPE_ARB 0x8DEA -#define GL_TEXTURE_COMPARE_MODE_ARB 0x884C -#define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D -#define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E -#define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF -#define GL_SPARSE_STORAGE_BIT_ARB 0x0400 -#define GL_SPARSE_BUFFER_PAGE_SIZE_ARB 0x82F8 -#define GL_TEXTURE_SPARSE_ARB 0x91A6 -#define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB 0x91A7 -#define GL_NUM_SPARSE_LEVELS_ARB 0x91AA -#define GL_NUM_VIRTUAL_PAGE_SIZES_ARB 0x91A8 -#define GL_VIRTUAL_PAGE_SIZE_X_ARB 0x9195 -#define GL_VIRTUAL_PAGE_SIZE_Y_ARB 0x9196 -#define GL_VIRTUAL_PAGE_SIZE_Z_ARB 0x9197 -#define GL_MAX_SPARSE_TEXTURE_SIZE_ARB 0x9198 -#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199 -#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A -#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9 -#define GL_CLAMP_TO_BORDER_ARB 0x812D -#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 -#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 -#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C -#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D -#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E -#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F -#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 -#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B -#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F -#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 -#define GL_DOT3_RGB_ARB 0x86AE -#define GL_DOT3_RGBA_ARB 0x86AF -#define GL_TEXTURE_REDUCTION_MODE_ARB 0x9366 -#define GL_WEIGHTED_AVERAGE_ARB 0x9367 -#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 -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F -#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F -#define GL_MIRRORED_REPEAT_ARB 0x8370 -#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 -#define GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB 0x82EC -#define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB 0x82ED -#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 -#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 -#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 -#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_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642 -#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643 -#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645 -#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A -#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_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 -#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 -#define GL_ELEMENT_ARRAY_ATI 0x8768 -#define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769 -#define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A -#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 -#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 -#define GL_VBO_FREE_MEMORY_ATI 0x87FB -#define GL_TEXTURE_FREE_MEMORY_ATI 0x87FC -#define GL_RENDERBUFFER_FREE_MEMORY_ATI 0x87FD -#define GL_RGBA_FLOAT_MODE_ATI 0x8820 -#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 -#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 -#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 -#define GL_TEXT_FRAGMENT_SHADER_ATI 0x8200 -#define GL_MODULATE_ADD_ATI 0x8744 -#define GL_MODULATE_SIGNED_ADD_ATI 0x8745 -#define GL_MODULATE_SUBTRACT_ATI 0x8746 -#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 -#define GL_MIRROR_CLAMP_ATI 0x8742 -#define GL_MIRROR_CLAMP_TO_EDGE_ATI 0x8743 -#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 -#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 -#define GL_422_EXT 0x80CC -#define GL_422_REV_EXT 0x80CD -#define GL_422_AVERAGE_EXT 0x80CE -#define GL_422_REV_AVERAGE_EXT 0x80CF -#define GL_ABGR_EXT 0x8000 -#define GL_BGR_EXT 0x80E0 -#define GL_BGRA_EXT 0x80E1 -#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 -#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 -#define GL_BLEND_EQUATION_RGB_EXT 0x8009 -#define GL_BLEND_EQUATION_ALPHA_EXT 0x883D -#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 -#define GL_MIN_EXT 0x8007 -#define GL_MAX_EXT 0x8008 -#define GL_FUNC_ADD_EXT 0x8006 -#define GL_BLEND_EQUATION_EXT 0x8009 -#define GL_FUNC_SUBTRACT_EXT 0x800A -#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B -#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0 -#define GL_CMYK_EXT 0x800C -#define GL_CMYKA_EXT 0x800D -#define GL_PACK_CMYK_HINT_EXT 0x800E -#define GL_UNPACK_CMYK_HINT_EXT 0x800F -#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8 -#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9 -#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 -#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 -#define GL_CULL_VERTEX_EXT 0x81AA -#define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB -#define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC -#define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F -#define GL_PROGRAM_OBJECT_EXT 0x8B40 -#define GL_SHADER_OBJECT_EXT 0x8B48 -#define GL_BUFFER_OBJECT_EXT 0x9151 -#define GL_QUERY_OBJECT_EXT 0x9153 -#define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154 -#define GL_DEPTH_BOUNDS_TEST_EXT 0x8890 -#define GL_DEPTH_BOUNDS_EXT 0x8891 -#define GL_PROGRAM_MATRIX_EXT 0x8E2D -#define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8E2E -#define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F -#define GL_MAX_ELEMENTS_VERTICES_EXT 0x80E8 -#define GL_MAX_ELEMENTS_INDICES_EXT 0x80E9 -#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 -#define GL_READ_FRAMEBUFFER_EXT 0x8CA8 -#define GL_DRAW_FRAMEBUFFER_EXT 0x8CA9 -#define GL_DRAW_FRAMEBUFFER_BINDING_EXT 0x8CA6 -#define GL_READ_FRAMEBUFFER_BINDING_EXT 0x8CAA -#define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56 -#define GL_MAX_SAMPLES_EXT 0x8D57 -#define GL_SCALED_RESOLVE_FASTEST_EXT 0x90BA -#define GL_SCALED_RESOLVE_NICEST_EXT 0x90BB -#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 -#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9 -#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA -#define GL_GEOMETRY_SHADER_EXT 0x8DD9 -#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_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 -#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_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4 -#define GL_PROGRAM_POINT_SIZE_EXT 0x8642 -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD -#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 -#define GL_MIN_PROGRAM_TEXEL_OFFSET_EXT 0x8904 -#define GL_MAX_PROGRAM_TEXEL_OFFSET_EXT 0x8905 -#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 -#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 -#define GL_INDEX_TEST_EXT 0x81B5 -#define GL_INDEX_TEST_FUNC_EXT 0x81B6 -#define GL_INDEX_TEST_REF_EXT 0x81B7 -#define GL_INDEX_MATERIAL_EXT 0x81B8 -#define GL_INDEX_MATERIAL_PARAMETER_EXT 0x81B9 -#define GL_INDEX_MATERIAL_FACE_EXT 0x81BA -#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 -#define GL_TEXTURE_TILING_EXT 0x9580 -#define GL_DEDICATED_MEMORY_OBJECT_EXT 0x9581 -#define GL_PROTECTED_MEMORY_OBJECT_EXT 0x959B -#define GL_NUM_TILING_TYPES_EXT 0x9582 -#define GL_TILING_TYPES_EXT 0x9583 -#define GL_OPTIMAL_TILING_EXT 0x9584 -#define GL_LINEAR_TILING_EXT 0x9585 -#define GL_NUM_DEVICE_UUIDS_EXT 0x9596 -#define GL_DEVICE_UUID_EXT 0x9597 -#define GL_DRIVER_UUID_EXT 0x9598 -#define GL_UUID_SIZE_EXT 16 -#define GL_HANDLE_TYPE_OPAQUE_FD_EXT 0x9586 -#define GL_HANDLE_TYPE_OPAQUE_WIN32_EXT 0x9587 -#define GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT 0x9588 -#define GL_DEVICE_LUID_EXT 0x9599 -#define GL_DEVICE_NODE_MASK_EXT 0x959A -#define GL_LUID_SIZE_EXT 8 -#define GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT 0x9589 -#define GL_HANDLE_TYPE_D3D12_RESOURCE_EXT 0x958A -#define GL_HANDLE_TYPE_D3D11_IMAGE_EXT 0x958B -#define GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT 0x958C -#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 -#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 -#define GL_R11F_G11F_B10F_EXT 0x8C3A -#define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B -#define GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C -#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 -#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 -#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 -#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 -#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 -#define GL_POLYGON_OFFSET_EXT 0x8037 -#define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038 -#define GL_POLYGON_OFFSET_BIAS_EXT 0x8039 -#define GL_POLYGON_OFFSET_CLAMP_EXT 0x8E1B -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION_EXT 0x8E4D -#define GL_LAST_VERTEX_CONVENTION_EXT 0x8E4E -#define GL_PROVOKING_VERTEX_EXT 0x8E4F -#define GL_RASTER_MULTISAMPLE_EXT 0x9327 -#define GL_RASTER_SAMPLES_EXT 0x9328 -#define GL_MAX_RASTER_SAMPLES_EXT 0x9329 -#define GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A -#define GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B -#define GL_EFFECTIVE_RASTER_SAMPLES_EXT 0x932C -#define GL_RESCALE_NORMAL_EXT 0x803A -#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 -#define GL_LAYOUT_GENERAL_EXT 0x958D -#define GL_LAYOUT_COLOR_ATTACHMENT_EXT 0x958E -#define GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT 0x958F -#define GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT 0x9590 -#define GL_LAYOUT_SHADER_READ_ONLY_EXT 0x9591 -#define GL_LAYOUT_TRANSFER_SRC_EXT 0x9592 -#define GL_LAYOUT_TRANSFER_DST_EXT 0x9593 -#define GL_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_EXT 0x9530 -#define GL_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_EXT 0x9531 -#define GL_HANDLE_TYPE_D3D12_FENCE_EXT 0x9594 -#define GL_D3D12_FENCE_VALUE_EXT 0x9595 -#define GL_ACTIVE_PROGRAM_EXT 0x8B8D -#define GL_VERTEX_SHADER_BIT_EXT 0x00000001 -#define GL_FRAGMENT_SHADER_BIT_EXT 0x00000002 -#define GL_ALL_SHADER_BITS_EXT 0xFFFFFFFF -#define GL_PROGRAM_SEPARABLE_EXT 0x8258 -#define GL_PROGRAM_PIPELINE_BINDING_EXT 0x825A -#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8 -#define GL_SINGLE_COLOR_EXT 0x81F9 -#define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA -#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52 -#define GL_MAX_IMAGE_UNITS_EXT 0x8F38 -#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39 -#define GL_IMAGE_BINDING_NAME_EXT 0x8F3A -#define GL_IMAGE_BINDING_LEVEL_EXT 0x8F3B -#define GL_IMAGE_BINDING_LAYERED_EXT 0x8F3C -#define GL_IMAGE_BINDING_LAYER_EXT 0x8F3D -#define GL_IMAGE_BINDING_ACCESS_EXT 0x8F3E -#define GL_IMAGE_1D_EXT 0x904C -#define GL_IMAGE_2D_EXT 0x904D -#define GL_IMAGE_3D_EXT 0x904E -#define GL_IMAGE_2D_RECT_EXT 0x904F -#define GL_IMAGE_CUBE_EXT 0x9050 -#define GL_IMAGE_BUFFER_EXT 0x9051 -#define GL_IMAGE_1D_ARRAY_EXT 0x9052 -#define GL_IMAGE_2D_ARRAY_EXT 0x9053 -#define GL_IMAGE_CUBE_MAP_ARRAY_EXT 0x9054 -#define GL_IMAGE_2D_MULTISAMPLE_EXT 0x9055 -#define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056 -#define GL_INT_IMAGE_1D_EXT 0x9057 -#define GL_INT_IMAGE_2D_EXT 0x9058 -#define GL_INT_IMAGE_3D_EXT 0x9059 -#define GL_INT_IMAGE_2D_RECT_EXT 0x905A -#define GL_INT_IMAGE_CUBE_EXT 0x905B -#define GL_INT_IMAGE_BUFFER_EXT 0x905C -#define GL_INT_IMAGE_1D_ARRAY_EXT 0x905D -#define GL_INT_IMAGE_2D_ARRAY_EXT 0x905E -#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x905F -#define GL_INT_IMAGE_2D_MULTISAMPLE_EXT 0x9060 -#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061 -#define GL_UNSIGNED_INT_IMAGE_1D_EXT 0x9062 -#define GL_UNSIGNED_INT_IMAGE_2D_EXT 0x9063 -#define GL_UNSIGNED_INT_IMAGE_3D_EXT 0x9064 -#define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065 -#define GL_UNSIGNED_INT_IMAGE_CUBE_EXT 0x9066 -#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT 0x9067 -#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068 -#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069 -#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C -#define GL_MAX_IMAGE_SAMPLES_EXT 0x906D -#define GL_IMAGE_BINDING_FORMAT_EXT 0x906E -#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001 -#define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT 0x00000002 -#define GL_UNIFORM_BARRIER_BIT_EXT 0x00000004 -#define GL_TEXTURE_FETCH_BARRIER_BIT_EXT 0x00000008 -#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020 -#define GL_COMMAND_BARRIER_BIT_EXT 0x00000040 -#define GL_PIXEL_BUFFER_BARRIER_BIT_EXT 0x00000080 -#define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100 -#define GL_BUFFER_UPDATE_BARRIER_BIT_EXT 0x00000200 -#define GL_FRAMEBUFFER_BARRIER_BIT_EXT 0x00000400 -#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800 -#define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000 -#define GL_ALL_BARRIER_BITS_EXT 0xFFFFFFFF -#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB -#define GL_STENCIL_TAG_BITS_EXT 0x88F2 -#define GL_STENCIL_CLEAR_TAG_VALUE_EXT 0x88F3 -#define GL_STENCIL_TEST_TWO_SIDE_EXT 0x8910 -#define GL_ACTIVE_STENCIL_FACE_EXT 0x8911 -#define GL_INCR_WRAP_EXT 0x8507 -#define GL_DECR_WRAP_EXT 0x8508 -#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 -#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 -#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 -#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 -#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 -#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 -#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 -#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 -#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 -#define GL_DOT3_RGB_EXT 0x8740 -#define GL_DOT3_RGBA_EXT 0x8741 -#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE -#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF -#define GL_TEXTURE_REDUCTION_MODE_EXT 0x9366 -#define GL_WEIGHTED_AVERAGE_EXT 0x9367 -#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 -#define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD -#define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500 -#define GL_TEXTURE_LOD_BIAS_EXT 0x8501 -#define GL_MIRROR_CLAMP_EXT 0x8742 -#define GL_MIRROR_CLAMP_TO_EDGE_EXT 0x8743 -#define GL_MIRROR_CLAMP_TO_BORDER_EXT 0x8912 -#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 -#define GL_PERTURB_EXT 0x85AE -#define GL_TEXTURE_NORMAL_EXT 0x85AF -#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 -#define GL_TEXTURE_SRGB_DECODE_EXT 0x8A48 -#define GL_DECODE_EXT 0x8A49 -#define GL_SKIP_DECODE_EXT 0x8A4A -#define GL_RGB9_E5_EXT 0x8C3D -#define GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E -#define GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F -#define GL_ALPHA_SNORM 0x9010 -#define GL_LUMINANCE_SNORM 0x9011 -#define GL_LUMINANCE_ALPHA_SNORM 0x9012 -#define GL_INTENSITY_SNORM 0x9013 -#define GL_ALPHA8_SNORM 0x9014 -#define GL_LUMINANCE8_SNORM 0x9015 -#define GL_LUMINANCE8_ALPHA8_SNORM 0x9016 -#define GL_INTENSITY8_SNORM 0x9017 -#define GL_ALPHA16_SNORM 0x9018 -#define GL_LUMINANCE16_SNORM 0x9019 -#define GL_LUMINANCE16_ALPHA16_SNORM 0x901A -#define GL_INTENSITY16_SNORM 0x901B -#define GL_RED_SNORM 0x8F90 -#define GL_RG_SNORM 0x8F91 -#define GL_RGB_SNORM 0x8F92 -#define GL_RGBA_SNORM 0x8F93 -#define GL_TEXTURE_SWIZZLE_R_EXT 0x8E42 -#define GL_TEXTURE_SWIZZLE_G_EXT 0x8E43 -#define GL_TEXTURE_SWIZZLE_B_EXT 0x8E44 -#define GL_TEXTURE_SWIZZLE_A_EXT 0x8E45 -#define GL_TEXTURE_SWIZZLE_RGBA_EXT 0x8E46 -#define GL_TIME_ELAPSED_EXT 0x88BF -#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 -#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 -#define GL_DOUBLE_VEC2_EXT 0x8FFC -#define GL_DOUBLE_VEC3_EXT 0x8FFD -#define GL_DOUBLE_VEC4_EXT 0x8FFE -#define GL_DOUBLE_MAT2_EXT 0x8F46 -#define GL_DOUBLE_MAT3_EXT 0x8F47 -#define GL_DOUBLE_MAT4_EXT 0x8F48 -#define GL_DOUBLE_MAT2x3_EXT 0x8F49 -#define GL_DOUBLE_MAT2x4_EXT 0x8F4A -#define GL_DOUBLE_MAT3x2_EXT 0x8F4B -#define GL_DOUBLE_MAT3x4_EXT 0x8F4C -#define GL_DOUBLE_MAT4x2_EXT 0x8F4D -#define GL_DOUBLE_MAT4x3_EXT 0x8F4E -#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 -#define GL_MODELVIEW0_STACK_DEPTH_EXT 0x0BA3 -#define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502 -#define GL_MODELVIEW0_MATRIX_EXT 0x0BA6 -#define GL_MODELVIEW1_MATRIX_EXT 0x8506 -#define GL_VERTEX_WEIGHTING_EXT 0x8509 -#define GL_MODELVIEW0_EXT 0x1700 -#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 -#define GL_INCLUSIVE_EXT 0x8F10 -#define GL_EXCLUSIVE_EXT 0x8F11 -#define GL_WINDOW_RECTANGLE_EXT 0x8F12 -#define GL_WINDOW_RECTANGLE_MODE_EXT 0x8F13 -#define GL_MAX_WINDOW_RECTANGLES_EXT 0x8F14 -#define GL_NUM_WINDOW_RECTANGLES_EXT 0x8F15 -#define GL_SYNC_X11_FENCE_EXT 0x90E1 -#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 -#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 -#define GL_OCCLUSION_TEST_HP 0x8165 -#define GL_OCCLUSION_TEST_RESULT_HP 0x8166 -#define GL_TEXTURE_LIGHTING_MODE_HP 0x8167 -#define GL_TEXTURE_POST_SPECULAR_HP 0x8168 -#define GL_TEXTURE_PRE_SPECULAR_HP 0x8169 -#define GL_CULL_VERTEX_IBM 103050 -#define GL_RASTER_POSITION_UNCLIPPED_IBM 0x19262 -#define GL_ALL_STATIC_DATA_IBM 103060 -#define GL_STATIC_VERTEX_ARRAY_IBM 103061 -#define GL_MIRRORED_REPEAT_IBM 0x8370 -#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 -#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 -#define GL_INTERLACE_READ_INGR 0x8568 -#define GL_BLACKHOLE_RENDER_INTEL 0x83FC -#define GL_CONSERVATIVE_RASTERIZATION_INTEL 0x83FE -#define GL_TEXTURE_MEMORY_LAYOUT_INTEL 0x83FF -#define GL_LAYOUT_DEFAULT_INTEL 0 -#define GL_LAYOUT_LINEAR_INTEL 1 -#define GL_LAYOUT_LINEAR_CPU_CACHED_INTEL 2 -#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 -#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000 -#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001 -#define GL_PERFQUERY_WAIT_INTEL 0x83FB -#define GL_PERFQUERY_FLUSH_INTEL 0x83FA -#define GL_PERFQUERY_DONOT_FLUSH_INTEL 0x83F9 -#define GL_PERFQUERY_COUNTER_EVENT_INTEL 0x94F0 -#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1 -#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2 -#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3 -#define GL_PERFQUERY_COUNTER_RAW_INTEL 0x94F4 -#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5 -#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8 -#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9 -#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA -#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB -#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC -#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD -#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE -#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF -#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500 -#define GL_MULTIPLY_KHR 0x9294 -#define GL_SCREEN_KHR 0x9295 -#define GL_OVERLAY_KHR 0x9296 -#define GL_DARKEN_KHR 0x9297 -#define GL_LIGHTEN_KHR 0x9298 -#define GL_COLORDODGE_KHR 0x9299 -#define GL_COLORBURN_KHR 0x929A -#define GL_HARDLIGHT_KHR 0x929B -#define GL_SOFTLIGHT_KHR 0x929C -#define GL_DIFFERENCE_KHR 0x929E -#define GL_EXCLUSION_KHR 0x92A0 -#define GL_HSL_HUE_KHR 0x92AD -#define GL_HSL_SATURATION_KHR 0x92AE -#define GL_HSL_COLOR_KHR 0x92AF -#define GL_HSL_LUMINOSITY_KHR 0x92B0 -#define GL_BLEND_ADVANCED_COHERENT_KHR 0x9285 -#define GL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x82FB -#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x82FC -#define GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR 0x8242 -#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR 0x8243 -#define GL_DEBUG_CALLBACK_FUNCTION_KHR 0x8244 -#define GL_DEBUG_CALLBACK_USER_PARAM_KHR 0x8245 -#define GL_DEBUG_SOURCE_API_KHR 0x8246 -#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR 0x8247 -#define GL_DEBUG_SOURCE_SHADER_COMPILER_KHR 0x8248 -#define GL_DEBUG_SOURCE_THIRD_PARTY_KHR 0x8249 -#define GL_DEBUG_SOURCE_APPLICATION_KHR 0x824A -#define GL_DEBUG_SOURCE_OTHER_KHR 0x824B -#define GL_DEBUG_TYPE_ERROR_KHR 0x824C -#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR 0x824D -#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR 0x824E -#define GL_DEBUG_TYPE_PORTABILITY_KHR 0x824F -#define GL_DEBUG_TYPE_PERFORMANCE_KHR 0x8250 -#define GL_DEBUG_TYPE_OTHER_KHR 0x8251 -#define GL_DEBUG_TYPE_MARKER_KHR 0x8268 -#define GL_DEBUG_TYPE_PUSH_GROUP_KHR 0x8269 -#define GL_DEBUG_TYPE_POP_GROUP_KHR 0x826A -#define GL_DEBUG_SEVERITY_NOTIFICATION_KHR 0x826B -#define GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR 0x826C -#define GL_DEBUG_GROUP_STACK_DEPTH_KHR 0x826D -#define GL_BUFFER_KHR 0x82E0 -#define GL_SHADER_KHR 0x82E1 -#define GL_PROGRAM_KHR 0x82E2 -#define GL_VERTEX_ARRAY_KHR 0x8074 -#define GL_QUERY_KHR 0x82E3 -#define GL_PROGRAM_PIPELINE_KHR 0x82E4 -#define GL_SAMPLER_KHR 0x82E6 -#define GL_MAX_LABEL_LENGTH_KHR 0x82E8 -#define GL_MAX_DEBUG_MESSAGE_LENGTH_KHR 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES_KHR 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES_KHR 0x9145 -#define GL_DEBUG_SEVERITY_HIGH_KHR 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM_KHR 0x9147 -#define GL_DEBUG_SEVERITY_LOW_KHR 0x9148 -#define GL_DEBUG_OUTPUT_KHR 0x92E0 -#define GL_CONTEXT_FLAG_DEBUG_BIT_KHR 0x00000002 -#define GL_STACK_OVERFLOW_KHR 0x0503 -#define GL_STACK_UNDERFLOW_KHR 0x0504 -#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR 0x00000008 -#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0 -#define GL_COMPLETION_STATUS_KHR 0x91B1 -#define GL_CONTEXT_ROBUST_ACCESS 0x90F3 -#define GL_CONTEXT_ROBUST_ACCESS_KHR 0x90F3 -#define GL_LOSE_CONTEXT_ON_RESET_KHR 0x8252 -#define GL_GUILTY_CONTEXT_RESET_KHR 0x8253 -#define GL_INNOCENT_CONTEXT_RESET_KHR 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET_KHR 0x8255 -#define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256 -#define GL_NO_RESET_NOTIFICATION_KHR 0x8261 -#define GL_CONTEXT_LOST_KHR 0x0507 -#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0 -#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1 -#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2 -#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3 -#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4 -#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5 -#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6 -#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7 -#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8 -#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9 -#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA -#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB -#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC -#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD -#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 -#define GL_PACK_INVERT_MESA 0x8758 -#define GL_PROGRAM_BINARY_FORMAT_MESA 0x875F -#define GL_TILE_RASTER_ORDER_FIXED_MESA 0x8BB8 -#define GL_TILE_RASTER_ORDER_INCREASING_X_MESA 0x8BB9 -#define GL_TILE_RASTER_ORDER_INCREASING_Y_MESA 0x8BBA -#define GL_UNSIGNED_SHORT_8_8_MESA 0x85BA -#define GL_UNSIGNED_SHORT_8_8_REV_MESA 0x85BB -#define GL_YCBCR_MESA 0x8757 -#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047 -#define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048 -#define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049 -#define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A -#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B -#define GL_LGPU_SEPARATE_STORAGE_BIT_NVX 0x0800 -#define GL_MAX_LGPU_GPUS_NVX 0x92BA -#define GL_ALPHA_TO_COVERAGE_DITHER_DEFAULT_NV 0x934D -#define GL_ALPHA_TO_COVERAGE_DITHER_ENABLE_NV 0x934E -#define GL_ALPHA_TO_COVERAGE_DITHER_DISABLE_NV 0x934F -#define GL_ALPHA_TO_COVERAGE_DITHER_MODE_NV 0x92BF -#define GL_BLEND_OVERLAP_NV 0x9281 -#define GL_BLEND_PREMULTIPLIED_SRC_NV 0x9280 -#define GL_BLUE_NV 0x1905 -#define GL_COLORBURN_NV 0x929A -#define GL_COLORDODGE_NV 0x9299 -#define GL_CONJOINT_NV 0x9284 -#define GL_CONTRAST_NV 0x92A1 -#define GL_DARKEN_NV 0x9297 -#define GL_DIFFERENCE_NV 0x929E -#define GL_DISJOINT_NV 0x9283 -#define GL_DST_ATOP_NV 0x928F -#define GL_DST_IN_NV 0x928B -#define GL_DST_NV 0x9287 -#define GL_DST_OUT_NV 0x928D -#define GL_DST_OVER_NV 0x9289 -#define GL_EXCLUSION_NV 0x92A0 -#define GL_GREEN_NV 0x1904 -#define GL_HARDLIGHT_NV 0x929B -#define GL_HARDMIX_NV 0x92A9 -#define GL_HSL_COLOR_NV 0x92AF -#define GL_HSL_HUE_NV 0x92AD -#define GL_HSL_LUMINOSITY_NV 0x92B0 -#define GL_HSL_SATURATION_NV 0x92AE -#define GL_INVERT_OVG_NV 0x92B4 -#define GL_INVERT_RGB_NV 0x92A3 -#define GL_LIGHTEN_NV 0x9298 -#define GL_LINEARBURN_NV 0x92A5 -#define GL_LINEARDODGE_NV 0x92A4 -#define GL_LINEARLIGHT_NV 0x92A7 -#define GL_MINUS_CLAMPED_NV 0x92B3 -#define GL_MINUS_NV 0x929F -#define GL_MULTIPLY_NV 0x9294 -#define GL_OVERLAY_NV 0x9296 -#define GL_PINLIGHT_NV 0x92A8 -#define GL_PLUS_CLAMPED_ALPHA_NV 0x92B2 -#define GL_PLUS_CLAMPED_NV 0x92B1 -#define GL_PLUS_DARKER_NV 0x9292 -#define GL_PLUS_NV 0x9291 -#define GL_RED_NV 0x1903 -#define GL_SCREEN_NV 0x9295 -#define GL_SOFTLIGHT_NV 0x929C -#define GL_SRC_ATOP_NV 0x928E -#define GL_SRC_IN_NV 0x928A -#define GL_SRC_NV 0x9286 -#define GL_SRC_OUT_NV 0x928C -#define GL_SRC_OVER_NV 0x9288 -#define GL_UNCORRELATED_NV 0x9282 -#define GL_VIVIDLIGHT_NV 0x92A6 -#define GL_XOR_NV 0x1506 -#define GL_BLEND_ADVANCED_COHERENT_NV 0x9285 -#define GL_VIEWPORT_POSITION_W_SCALE_NV 0x937C -#define GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV 0x937D -#define GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV 0x937E -#define GL_TERMINATE_SEQUENCE_COMMAND_NV 0x0000 -#define GL_NOP_COMMAND_NV 0x0001 -#define GL_DRAW_ELEMENTS_COMMAND_NV 0x0002 -#define GL_DRAW_ARRAYS_COMMAND_NV 0x0003 -#define GL_DRAW_ELEMENTS_STRIP_COMMAND_NV 0x0004 -#define GL_DRAW_ARRAYS_STRIP_COMMAND_NV 0x0005 -#define GL_DRAW_ELEMENTS_INSTANCED_COMMAND_NV 0x0006 -#define GL_DRAW_ARRAYS_INSTANCED_COMMAND_NV 0x0007 -#define GL_ELEMENT_ADDRESS_COMMAND_NV 0x0008 -#define GL_ATTRIBUTE_ADDRESS_COMMAND_NV 0x0009 -#define GL_UNIFORM_ADDRESS_COMMAND_NV 0x000A -#define GL_BLEND_COLOR_COMMAND_NV 0x000B -#define GL_STENCIL_REF_COMMAND_NV 0x000C -#define GL_LINE_WIDTH_COMMAND_NV 0x000D -#define GL_POLYGON_OFFSET_COMMAND_NV 0x000E -#define GL_ALPHA_REF_COMMAND_NV 0x000F -#define GL_VIEWPORT_COMMAND_NV 0x0010 -#define GL_SCISSOR_COMMAND_NV 0x0011 -#define GL_FRONT_FACE_COMMAND_NV 0x0012 -#define GL_COMPUTE_PROGRAM_NV 0x90FB -#define GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV 0x90FC -#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 -#define GL_CONSERVATIVE_RASTERIZATION_NV 0x9346 -#define GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347 -#define GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348 -#define GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349 -#define GL_CONSERVATIVE_RASTER_DILATE_NV 0x9379 -#define GL_CONSERVATIVE_RASTER_DILATE_RANGE_NV 0x937A -#define GL_CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV 0x937B -#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_NV 0x9550 -#define GL_CONSERVATIVE_RASTER_MODE_NV 0x954D -#define GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV 0x954E -#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV 0x954F -#define GL_DEPTH_STENCIL_TO_RGBA_NV 0x886E -#define GL_DEPTH_STENCIL_TO_BGRA_NV 0x886F -#define GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV 0x90D0 -#define GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV 0x90D1 -#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 -#define GL_DEPTH_CLAMP_NV 0x864F -#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 -#define GL_SAMPLE_POSITION_NV 0x8E50 -#define GL_SAMPLE_MASK_NV 0x8E51 -#define GL_SAMPLE_MASK_VALUE_NV 0x8E52 -#define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53 -#define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54 -#define GL_TEXTURE_RENDERBUFFER_NV 0x8E55 -#define GL_SAMPLER_RENDERBUFFER_NV 0x8E56 -#define GL_INT_SAMPLER_RENDERBUFFER_NV 0x8E57 -#define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58 -#define GL_MAX_SAMPLE_MASK_WORDS_NV 0x8E59 -#define GL_ALL_COMPLETED_NV 0x84F2 -#define GL_FENCE_STATUS_NV 0x84F3 -#define GL_FENCE_CONDITION_NV 0x84F4 -#define GL_FILL_RECTANGLE_NV 0x933C -#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 -#define GL_FOG_DISTANCE_MODE_NV 0x855A -#define GL_EYE_RADIAL_NV 0x855B -#define GL_EYE_PLANE_ABSOLUTE_NV 0x855C -#define GL_EYE_PLANE 0x2502 -#define GL_FRAGMENT_COVERAGE_TO_COLOR_NV 0x92DD -#define GL_FRAGMENT_COVERAGE_COLOR_NV 0x92DE -#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 -#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 -#define GL_COVERAGE_MODULATION_TABLE_NV 0x9331 -#define GL_COLOR_SAMPLES_NV 0x8E20 -#define GL_DEPTH_SAMPLES_NV 0x932D -#define GL_STENCIL_SAMPLES_NV 0x932E -#define GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F -#define GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330 -#define GL_COVERAGE_MODULATION_NV 0x9332 -#define GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333 -#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 -#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_PER_GPU_STORAGE_BIT_NV 0x0800 -#define GL_MULTICAST_GPUS_NV 0x92BA -#define GL_RENDER_GPU_MASK_NV 0x9558 -#define GL_PER_GPU_STORAGE_NV 0x9548 -#define GL_MULTICAST_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9549 -#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 -#define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C -#define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV 0x8E5F -#define GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV 0x8F44 -#define GL_MAX_PROGRAM_SUBROUTINE_NUM_NV 0x8F45 -#define GL_HALF_FLOAT_NV 0x140B -#define GL_MULTISAMPLES_NV 0x9371 -#define GL_SUPERSAMPLE_SCALE_X_NV 0x9372 -#define GL_SUPERSAMPLE_SCALE_Y_NV 0x9373 -#define GL_CONFORMANT_NV 0x9374 -#define GL_MAX_SHININESS_NV 0x8504 -#define GL_MAX_SPOT_EXPONENT_NV 0x8505 -#define GL_MULTISAMPLE_FILTER_HINT_NV 0x8534 -#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 -#define GL_DEPTH_STENCIL_NV 0x84F9 -#define GL_UNSIGNED_INT_24_8_NV 0x84FA -#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 -#define GL_PATH_FORMAT_SVG_NV 0x9070 -#define GL_PATH_FORMAT_PS_NV 0x9071 -#define GL_STANDARD_FONT_NAME_NV 0x9072 -#define GL_SYSTEM_FONT_NAME_NV 0x9073 -#define GL_FILE_NAME_NV 0x9074 -#define GL_PATH_STROKE_WIDTH_NV 0x9075 -#define GL_PATH_END_CAPS_NV 0x9076 -#define GL_PATH_INITIAL_END_CAP_NV 0x9077 -#define GL_PATH_TERMINAL_END_CAP_NV 0x9078 -#define GL_PATH_JOIN_STYLE_NV 0x9079 -#define GL_PATH_MITER_LIMIT_NV 0x907A -#define GL_PATH_DASH_CAPS_NV 0x907B -#define GL_PATH_INITIAL_DASH_CAP_NV 0x907C -#define GL_PATH_TERMINAL_DASH_CAP_NV 0x907D -#define GL_PATH_DASH_OFFSET_NV 0x907E -#define GL_PATH_CLIENT_LENGTH_NV 0x907F -#define GL_PATH_FILL_MODE_NV 0x9080 -#define GL_PATH_FILL_MASK_NV 0x9081 -#define GL_PATH_FILL_COVER_MODE_NV 0x9082 -#define GL_PATH_STROKE_COVER_MODE_NV 0x9083 -#define GL_PATH_STROKE_MASK_NV 0x9084 -#define GL_COUNT_UP_NV 0x9088 -#define GL_COUNT_DOWN_NV 0x9089 -#define GL_PATH_OBJECT_BOUNDING_BOX_NV 0x908A -#define GL_CONVEX_HULL_NV 0x908B -#define GL_BOUNDING_BOX_NV 0x908D -#define GL_TRANSLATE_X_NV 0x908E -#define GL_TRANSLATE_Y_NV 0x908F -#define GL_TRANSLATE_2D_NV 0x9090 -#define GL_TRANSLATE_3D_NV 0x9091 -#define GL_AFFINE_2D_NV 0x9092 -#define GL_AFFINE_3D_NV 0x9094 -#define GL_TRANSPOSE_AFFINE_2D_NV 0x9096 -#define GL_TRANSPOSE_AFFINE_3D_NV 0x9098 -#define GL_UTF8_NV 0x909A -#define GL_UTF16_NV 0x909B -#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C -#define GL_PATH_COMMAND_COUNT_NV 0x909D -#define GL_PATH_COORD_COUNT_NV 0x909E -#define GL_PATH_DASH_ARRAY_COUNT_NV 0x909F -#define GL_PATH_COMPUTED_LENGTH_NV 0x90A0 -#define GL_PATH_FILL_BOUNDING_BOX_NV 0x90A1 -#define GL_PATH_STROKE_BOUNDING_BOX_NV 0x90A2 -#define GL_SQUARE_NV 0x90A3 -#define GL_ROUND_NV 0x90A4 -#define GL_TRIANGULAR_NV 0x90A5 -#define GL_BEVEL_NV 0x90A6 -#define GL_MITER_REVERT_NV 0x90A7 -#define GL_MITER_TRUNCATE_NV 0x90A8 -#define GL_SKIP_MISSING_GLYPH_NV 0x90A9 -#define GL_USE_MISSING_GLYPH_NV 0x90AA -#define GL_PATH_ERROR_POSITION_NV 0x90AB -#define GL_ACCUM_ADJACENT_PAIRS_NV 0x90AD -#define GL_ADJACENT_PAIRS_NV 0x90AE -#define GL_FIRST_TO_REST_NV 0x90AF -#define GL_PATH_GEN_MODE_NV 0x90B0 -#define GL_PATH_GEN_COEFF_NV 0x90B1 -#define GL_PATH_GEN_COMPONENTS_NV 0x90B3 -#define GL_PATH_STENCIL_FUNC_NV 0x90B7 -#define GL_PATH_STENCIL_REF_NV 0x90B8 -#define GL_PATH_STENCIL_VALUE_MASK_NV 0x90B9 -#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD -#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE -#define GL_PATH_COVER_DEPTH_FUNC_NV 0x90BF -#define GL_PATH_DASH_OFFSET_RESET_NV 0x90B4 -#define GL_MOVE_TO_RESETS_NV 0x90B5 -#define GL_MOVE_TO_CONTINUES_NV 0x90B6 -#define GL_CLOSE_PATH_NV 0x00 -#define GL_MOVE_TO_NV 0x02 -#define GL_RELATIVE_MOVE_TO_NV 0x03 -#define GL_LINE_TO_NV 0x04 -#define GL_RELATIVE_LINE_TO_NV 0x05 -#define GL_HORIZONTAL_LINE_TO_NV 0x06 -#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07 -#define GL_VERTICAL_LINE_TO_NV 0x08 -#define GL_RELATIVE_VERTICAL_LINE_TO_NV 0x09 -#define GL_QUADRATIC_CURVE_TO_NV 0x0A -#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B -#define GL_CUBIC_CURVE_TO_NV 0x0C -#define GL_RELATIVE_CUBIC_CURVE_TO_NV 0x0D -#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0E -#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F -#define GL_SMOOTH_CUBIC_CURVE_TO_NV 0x10 -#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11 -#define GL_SMALL_CCW_ARC_TO_NV 0x12 -#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV 0x13 -#define GL_SMALL_CW_ARC_TO_NV 0x14 -#define GL_RELATIVE_SMALL_CW_ARC_TO_NV 0x15 -#define GL_LARGE_CCW_ARC_TO_NV 0x16 -#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV 0x17 -#define GL_LARGE_CW_ARC_TO_NV 0x18 -#define GL_RELATIVE_LARGE_CW_ARC_TO_NV 0x19 -#define GL_RESTART_PATH_NV 0xF0 -#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV 0xF2 -#define GL_DUP_LAST_CUBIC_CURVE_TO_NV 0xF4 -#define GL_RECT_NV 0xF6 -#define GL_CIRCULAR_CCW_ARC_TO_NV 0xF8 -#define GL_CIRCULAR_CW_ARC_TO_NV 0xFA -#define GL_CIRCULAR_TANGENT_ARC_TO_NV 0xFC -#define GL_ARC_TO_NV 0xFE -#define GL_RELATIVE_ARC_TO_NV 0xFF -#define GL_BOLD_BIT_NV 0x01 -#define GL_ITALIC_BIT_NV 0x02 -#define GL_GLYPH_WIDTH_BIT_NV 0x01 -#define GL_GLYPH_HEIGHT_BIT_NV 0x02 -#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04 -#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08 -#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10 -#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20 -#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40 -#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80 -#define GL_GLYPH_HAS_KERNING_BIT_NV 0x100 -#define GL_FONT_X_MIN_BOUNDS_BIT_NV 0x00010000 -#define GL_FONT_Y_MIN_BOUNDS_BIT_NV 0x00020000 -#define GL_FONT_X_MAX_BOUNDS_BIT_NV 0x00040000 -#define GL_FONT_Y_MAX_BOUNDS_BIT_NV 0x00080000 -#define GL_FONT_UNITS_PER_EM_BIT_NV 0x00100000 -#define GL_FONT_ASCENDER_BIT_NV 0x00200000 -#define GL_FONT_DESCENDER_BIT_NV 0x00400000 -#define GL_FONT_HEIGHT_BIT_NV 0x00800000 -#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV 0x01000000 -#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000 -#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000 -#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000 -#define GL_FONT_HAS_KERNING_BIT_NV 0x10000000 -#define GL_ROUNDED_RECT_NV 0xE8 -#define GL_RELATIVE_ROUNDED_RECT_NV 0xE9 -#define GL_ROUNDED_RECT2_NV 0xEA -#define GL_RELATIVE_ROUNDED_RECT2_NV 0xEB -#define GL_ROUNDED_RECT4_NV 0xEC -#define GL_RELATIVE_ROUNDED_RECT4_NV 0xED -#define GL_ROUNDED_RECT8_NV 0xEE -#define GL_RELATIVE_ROUNDED_RECT8_NV 0xEF -#define GL_RELATIVE_RECT_NV 0xF7 -#define GL_FONT_GLYPHS_AVAILABLE_NV 0x9368 -#define GL_FONT_TARGET_UNAVAILABLE_NV 0x9369 -#define GL_FONT_UNAVAILABLE_NV 0x936A -#define GL_FONT_UNINTELLIGIBLE_NV 0x936B -#define GL_CONIC_CURVE_TO_NV 0x1A -#define GL_RELATIVE_CONIC_CURVE_TO_NV 0x1B -#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV 0x20000000 -#define GL_STANDARD_FONT_FORMAT_NV 0x936C -#define GL_2_BYTES_NV 0x1407 -#define GL_3_BYTES_NV 0x1408 -#define GL_4_BYTES_NV 0x1409 -#define GL_EYE_LINEAR_NV 0x2400 -#define GL_OBJECT_LINEAR_NV 0x2401 -#define GL_CONSTANT_NV 0x8576 -#define GL_PATH_FOG_GEN_MODE_NV 0x90AC -#define GL_PRIMARY_COLOR 0x8577 -#define GL_PRIMARY_COLOR_NV 0x852C -#define GL_SECONDARY_COLOR_NV 0x852D -#define GL_PATH_GEN_COLOR_FORMAT_NV 0x90B2 -#define GL_PATH_PROJECTION_NV 0x1701 -#define GL_PATH_MODELVIEW_NV 0x1700 -#define GL_PATH_MODELVIEW_STACK_DEPTH_NV 0x0BA3 -#define GL_PATH_MODELVIEW_MATRIX_NV 0x0BA6 -#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36 -#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3 -#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4 -#define GL_PATH_PROJECTION_MATRIX_NV 0x0BA7 -#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38 -#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4 -#define GL_FRAGMENT_INPUT_NV 0x936D -#define GL_SHARED_EDGE_NV 0xC0 -#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 -#define GL_POINT_SPRITE_NV 0x8861 -#define GL_COORD_REPLACE_NV 0x8862 -#define GL_POINT_SPRITE_R_MODE_NV 0x8863 -#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 -#define GL_PRIMITIVE_RESTART_NV 0x8558 -#define GL_PRIMITIVE_RESTART_INDEX_NV 0x8559 -#define GL_QUERY_RESOURCE_TYPE_VIDMEM_ALLOC_NV 0x9540 -#define GL_QUERY_RESOURCE_MEMTYPE_VIDMEM_NV 0x9542 -#define GL_QUERY_RESOURCE_SYS_RESERVED_NV 0x9544 -#define GL_QUERY_RESOURCE_TEXTURE_NV 0x9545 -#define GL_QUERY_RESOURCE_RENDERBUFFER_NV 0x9546 -#define GL_QUERY_RESOURCE_BUFFEROBJECT_NV 0x9547 -#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_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 -#define GL_FOG 0x0B60 -#define GL_PER_STAGE_CONSTANTS_NV 0x8535 -#define GL_PURGED_CONTEXT_RESET_NV 0x92BB -#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D -#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E -#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F -#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340 -#define GL_SAMPLE_LOCATION_NV 0x8E50 -#define GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341 -#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342 -#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343 -#define GL_BUFFER_GPU_ADDRESS_NV 0x8F1D -#define GL_GPU_ADDRESS_NV 0x8F34 -#define GL_MAX_SHADER_BUFFER_ADDRESS_NV 0x8F35 -#define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010 -#define GL_WARP_SIZE_NV 0x9339 -#define GL_WARPS_PER_SM_NV 0x933A -#define GL_SM_COUNT_NV 0x933B -#define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV 0x86D8 -#define GL_TESS_CONTROL_PROGRAM_NV 0x891E -#define GL_TESS_EVALUATION_PROGRAM_NV 0x891F -#define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74 -#define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75 -#define GL_EMBOSS_LIGHT_NV 0x855D -#define GL_EMBOSS_CONSTANT_NV 0x855E -#define GL_EMBOSS_MAP_NV 0x855F -#define GL_NORMAL_MAP_NV 0x8511 -#define GL_REFLECTION_MAP_NV 0x8512 -#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 -#define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F -#define GL_TEXTURE_COVERAGE_SAMPLES_NV 0x9045 -#define GL_TEXTURE_COLOR_SAMPLES_NV 0x9046 -#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 -#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 0x86E1 -#define GL_OFFSET_TEXTURE_2D_SCALE_NV 0x86E2 -#define GL_OFFSET_TEXTURE_2D_BIAS_NV 0x86E3 -#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 -#define GL_DOT_PRODUCT_TEXTURE_3D_NV 0x86EF -#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 -#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_COMPONENTS_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 -#define GL_LAYER_NV 0x8DAA -#define GL_NEXT_BUFFER_NV -2 -#define GL_SKIP_COMPONENTS4_NV -3 -#define GL_SKIP_COMPONENTS3_NV -4 -#define GL_SKIP_COMPONENTS2_NV -5 -#define GL_SKIP_COMPONENTS1_NV -6 -#define GL_TRANSFORM_FEEDBACK_NV 0x8E22 -#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23 -#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24 -#define GL_TRANSFORM_FEEDBACK_BINDING_NV 0x8E25 -#define GL_UNIFORM_BUFFER_UNIFIED_NV 0x936E -#define GL_UNIFORM_BUFFER_ADDRESS_NV 0x936F -#define GL_UNIFORM_BUFFER_LENGTH_NV 0x9370 -#define GL_SURFACE_STATE_NV 0x86EB -#define GL_SURFACE_REGISTERED_NV 0x86FD -#define GL_SURFACE_MAPPED_NV 0x8700 -#define GL_WRITE_DISCARD_NV 0x88BE -#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 -#define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533 -#define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E -#define GL_ELEMENT_ARRAY_UNIFIED_NV 0x8F1F -#define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20 -#define GL_VERTEX_ARRAY_ADDRESS_NV 0x8F21 -#define GL_NORMAL_ARRAY_ADDRESS_NV 0x8F22 -#define GL_COLOR_ARRAY_ADDRESS_NV 0x8F23 -#define GL_INDEX_ARRAY_ADDRESS_NV 0x8F24 -#define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25 -#define GL_EDGE_FLAG_ARRAY_ADDRESS_NV 0x8F26 -#define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27 -#define GL_FOG_COORD_ARRAY_ADDRESS_NV 0x8F28 -#define GL_ELEMENT_ARRAY_ADDRESS_NV 0x8F29 -#define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV 0x8F2A -#define GL_VERTEX_ARRAY_LENGTH_NV 0x8F2B -#define GL_NORMAL_ARRAY_LENGTH_NV 0x8F2C -#define GL_COLOR_ARRAY_LENGTH_NV 0x8F2D -#define GL_INDEX_ARRAY_LENGTH_NV 0x8F2E -#define GL_TEXTURE_COORD_ARRAY_LENGTH_NV 0x8F2F -#define GL_EDGE_FLAG_ARRAY_LENGTH_NV 0x8F30 -#define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31 -#define GL_FOG_COORD_ARRAY_LENGTH_NV 0x8F32 -#define GL_ELEMENT_ARRAY_LENGTH_NV 0x8F33 -#define GL_DRAW_INDIRECT_UNIFIED_NV 0x8F40 -#define GL_DRAW_INDIRECT_ADDRESS_NV 0x8F41 -#define GL_DRAW_INDIRECT_LENGTH_NV 0x8F42 -#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 -#define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD -#define GL_VIDEO_BUFFER_NV 0x9020 -#define GL_VIDEO_BUFFER_BINDING_NV 0x9021 -#define GL_FIELD_UPPER_NV 0x9022 -#define GL_FIELD_LOWER_NV 0x9023 -#define GL_NUM_VIDEO_CAPTURE_STREAMS_NV 0x9024 -#define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025 -#define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026 -#define GL_LAST_VIDEO_CAPTURE_STATUS_NV 0x9027 -#define GL_VIDEO_BUFFER_PITCH_NV 0x9028 -#define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029 -#define GL_VIDEO_COLOR_CONVERSION_MAX_NV 0x902A -#define GL_VIDEO_COLOR_CONVERSION_MIN_NV 0x902B -#define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C -#define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D -#define GL_PARTIAL_SUCCESS_NV 0x902E -#define GL_SUCCESS_NV 0x902F -#define GL_FAILURE_NV 0x9030 -#define GL_YCBYCR8_422_NV 0x9031 -#define GL_YCBAYCR8A_4224_NV 0x9032 -#define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV 0x9033 -#define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034 -#define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV 0x9035 -#define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036 -#define GL_Z4Y12Z4CB12Z4CR12_444_NV 0x9037 -#define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV 0x9038 -#define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV 0x9039 -#define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A -#define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B -#define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C -#define GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV 0x9350 -#define GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV 0x9351 -#define GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV 0x9352 -#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV 0x9353 -#define GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV 0x9354 -#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV 0x9355 -#define GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV 0x9356 -#define GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV 0x9357 -#define GL_VIEWPORT_SWIZZLE_X_NV 0x9358 -#define GL_VIEWPORT_SWIZZLE_Y_NV 0x9359 -#define GL_VIEWPORT_SWIZZLE_Z_NV 0x935A -#define GL_VIEWPORT_SWIZZLE_W_NV 0x935B -#define GL_PALETTE4_RGB8_OES 0x8B90 -#define GL_PALETTE4_RGBA8_OES 0x8B91 -#define GL_PALETTE4_R5_G6_B5_OES 0x8B92 -#define GL_PALETTE4_RGBA4_OES 0x8B93 -#define GL_PALETTE4_RGB5_A1_OES 0x8B94 -#define GL_PALETTE8_RGB8_OES 0x8B95 -#define GL_PALETTE8_RGBA8_OES 0x8B96 -#define GL_PALETTE8_R5_G6_B5_OES 0x8B97 -#define GL_PALETTE8_RGBA4_OES 0x8B98 -#define GL_PALETTE8_RGB5_A1_OES 0x8B99 -#define GL_FIXED_OES 0x140C -#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B -#define GL_INTERLACE_OML 0x8980 -#define GL_INTERLACE_READ_OML 0x8981 -#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 -#define GL_FORMAT_SUBSAMPLE_24_24_OML 0x8982 -#define GL_FORMAT_SUBSAMPLE_244_244_OML 0x8983 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR 0x9630 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR 0x9632 -#define GL_MAX_VIEWS_OVR 0x9631 -#define GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR 0x9633 -#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 -#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 -#define GL_SCREEN_COORDINATES_REND 0x8490 -#define GL_INVERTED_SCREEN_W_REND 0x8491 -#define GL_RGB_S3TC 0x83A0 -#define GL_RGB4_S3TC 0x83A1 -#define GL_RGBA_S3TC 0x83A2 -#define GL_RGBA4_S3TC 0x83A3 -#define GL_RGBA_DXT5_S3TC 0x83A4 -#define GL_RGBA4_DXT5_S3TC 0x83A5 -#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 -#define GL_FOG_FUNC_SGIS 0x812A -#define GL_FOG_FUNC_POINTS_SGIS 0x812B -#define GL_MAX_FOG_FUNC_POINTS_SGIS 0x812C -#define GL_GENERATE_MIPMAP_SGIS 0x8191 -#define GL_GENERATE_MIPMAP_HINT_SGIS 0x8192 -#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 -#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 -#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 -#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 -#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 -#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 -#define GL_CLAMP_TO_BORDER_SGIS 0x812D -#define GL_TEXTURE_COLOR_WRITEMASK_SGIS 0x81EF -#define GL_CLAMP_TO_EDGE_SGIS 0x812F -#define GL_FILTER4_SGIS 0x8146 -#define GL_TEXTURE_FILTER4_SIZE_SGIS 0x8147 -#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 -#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 -#define GL_ASYNC_MARKER_SGIX 0x8329 -#define GL_ASYNC_HISTOGRAM_SGIX 0x832C -#define GL_MAX_ASYNC_HISTOGRAM_SGIX 0x832D -#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 -#define GL_ALPHA_MIN_SGIX 0x8320 -#define GL_ALPHA_MAX_SGIX 0x8321 -#define GL_CALLIGRAPHIC_FRAGMENT_SGIX 0x8183 -#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 -#define GL_CONVOLUTION_HINT_SGIX 0x8316 -#define GL_DEPTH_COMPONENT16_SGIX 0x81A5 -#define GL_DEPTH_COMPONENT24_SGIX 0x81A6 -#define GL_DEPTH_COMPONENT32_SGIX 0x81A7 -#define GL_FOG_OFFSET_SGIX 0x8198 -#define GL_FOG_OFFSET_VALUE_SGIX 0x8199 -#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 -#define GL_FRAMEZOOM_SGIX 0x818B -#define GL_FRAMEZOOM_FACTOR_SGIX 0x818C -#define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D -#define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180 -#define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181 -#define GL_INTERLACE_SGIX 0x8094 -#define GL_IR_INSTRUMENT1_SGIX 0x817F -#define GL_LIST_PRIORITY_SGIX 0x8182 -#define GL_PIXEL_TEX_GEN_SGIX 0x8139 -#define GL_PIXEL_TEX_GEN_MODE_SGIX 0x832B -#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 -#define GL_TEXTURE_DEFORMATION_BIT_SGIX 0x00000001 -#define GL_GEOMETRY_DEFORMATION_BIT_SGIX 0x00000002 -#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 -#define GL_REFERENCE_PLANE_SGIX 0x817D -#define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E -#define GL_PACK_RESAMPLE_SGIX 0x842E -#define GL_UNPACK_RESAMPLE_SGIX 0x842F -#define GL_RESAMPLE_REPLICATE_SGIX 0x8433 -#define GL_RESAMPLE_ZERO_FILL_SGIX 0x8434 -#define GL_RESAMPLE_DECIMATE_SGIX 0x8430 -#define GL_SCALEBIAS_HINT_SGIX 0x8322 -#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 -#define GL_SHADOW_AMBIENT_SGIX 0x80BF -#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 -#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 -#define GL_TEXTURE_ENV_BIAS_SGIX 0x80BE -#define GL_TEXTURE_MAX_CLAMP_S_SGIX 0x8369 -#define GL_TEXTURE_MAX_CLAMP_T_SGIX 0x836A -#define GL_TEXTURE_MAX_CLAMP_R_SGIX 0x836B -#define GL_TEXTURE_LOD_BIAS_S_SGIX 0x818E -#define GL_TEXTURE_LOD_BIAS_T_SGIX 0x818F -#define GL_TEXTURE_LOD_BIAS_R_SGIX 0x8190 -#define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E -#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 -#define GL_VERTEX_PRECLIP_SGIX 0x83EE -#define GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF -#define GL_YCRCB_422_SGIX 0x81BB -#define GL_YCRCB_444_SGIX 0x81BC -#define GL_YCRCB_SGIX 0x8318 -#define GL_YCRCBA_SGIX 0x8319 -#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 -#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 -#define GL_TEXTURE_COLOR_TABLE_SGI 0x80BC -#define GL_PROXY_TEXTURE_COLOR_TABLE_SGI 0x80BD -#define GL_UNPACK_CONSTANT_DATA_SUNX 0x81D5 -#define GL_TEXTURE_CONSTANT_DATA_SUNX 0x81D6 -#define GL_WRAP_BORDER_SUN 0x81D4 -#define GL_GLOBAL_ALPHA_SUN 0x81D9 -#define GL_GLOBAL_ALPHA_FACTOR_SUN 0x81DA -#define GL_QUAD_MESH_SUN 0x8614 -#define GL_TRIANGLE_MESH_SUN 0x8615 -#define GL_SLICE_ACCUM_SUN 0x85CC -#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 -#define GL_PHONG_WIN 0x80EA -#define GL_PHONG_HINT_WIN 0x80EB -#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC -#define GL_3DC_X_AMD 0x87F9 -#define GL_3DC_XY_AMD 0x87FA -#define GL_ATC_RGB_AMD 0x8C92 -#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93 -#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE -#define GL_Z400_BINARY_AMD 0x8740 -#define GL_DEPTH_STENCIL_OES 0x84F9 -#define GL_UNSIGNED_INT_24_8_OES 0x84FA -#define GL_DEPTH_COMPONENT32_OES 0x81A7 -#define GL_DEPTH24_STENCIL8_OES 0x88F0 -#define GL_READ_FRAMEBUFFER_ANGLE 0x8CA8 -#define GL_DRAW_FRAMEBUFFER_ANGLE 0x8CA9 -#define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE 0x8CA6 -#define GL_READ_FRAMEBUFFER_BINDING_ANGLE 0x8CAA -#define GL_RENDERBUFFER_SAMPLES_ANGLE 0x8CAB -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56 -#define GL_MAX_SAMPLES_ANGLE 0x8D57 -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE -#define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4 -#define GL_PROGRAM_BINARY_ANGLE 0x93A6 -#define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2 -#define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3 -#define GL_TEXTURE_USAGE_ANGLE 0x93A2 -#define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3 -#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0 -#define GL_MAX_CLIP_DISTANCES_APPLE 0x0D32 -#define GL_CLIP_DISTANCE0_APPLE 0x3000 -#define GL_CLIP_DISTANCE1_APPLE 0x3001 -#define GL_CLIP_DISTANCE2_APPLE 0x3002 -#define GL_CLIP_DISTANCE3_APPLE 0x3003 -#define GL_CLIP_DISTANCE4_APPLE 0x3004 -#define GL_CLIP_DISTANCE5_APPLE 0x3005 -#define GL_CLIP_DISTANCE6_APPLE 0x3006 -#define GL_CLIP_DISTANCE7_APPLE 0x3007 -#define GL_RENDERBUFFER_SAMPLES_APPLE 0x8CAB -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56 -#define GL_MAX_SAMPLES_APPLE 0x8D57 -#define GL_READ_FRAMEBUFFER_APPLE 0x8CA8 -#define GL_DRAW_FRAMEBUFFER_APPLE 0x8CA9 -#define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6 -#define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA -#define GL_SYNC_OBJECT_APPLE 0x8A53 -#define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE 0x9111 -#define GL_OBJECT_TYPE_APPLE 0x9112 -#define GL_SYNC_CONDITION_APPLE 0x9113 -#define GL_SYNC_STATUS_APPLE 0x9114 -#define GL_SYNC_FLAGS_APPLE 0x9115 -#define GL_SYNC_FENCE_APPLE 0x9116 -#define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE 0x9117 -#define GL_UNSIGNALED_APPLE 0x9118 -#define GL_SIGNALED_APPLE 0x9119 -#define GL_ALREADY_SIGNALED_APPLE 0x911A -#define GL_TIMEOUT_EXPIRED_APPLE 0x911B -#define GL_CONDITION_SATISFIED_APPLE 0x911C -#define GL_WAIT_FAILED_APPLE 0x911D -#define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE 0x00000001 -#define GL_TIMEOUT_IGNORED_APPLE 0xFFFFFFFFFFFFFFFF -#define GL_BGRA8_EXT 0x93A1 -#define GL_TEXTURE_MAX_LEVEL_APPLE 0x813D -#define GL_UNSIGNED_INT_10F_11F_11F_REV_APPLE 0x8C3B -#define GL_UNSIGNED_INT_5_9_9_9_REV_APPLE 0x8C3E -#define GL_R11F_G11F_B10F_APPLE 0x8C3A -#define GL_RGB9_E5_APPLE 0x8C3D -#define GL_MALI_PROGRAM_BINARY_ARM 0x8F61 -#define GL_MALI_SHADER_BINARY_ARM 0x8F60 -#define GL_FETCH_PER_SAMPLE_ARM 0x8F65 -#define GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM 0x8F66 -#define GL_SMAPHS30_PROGRAM_BINARY_DMP 0x9251 -#define GL_SMAPHS_PROGRAM_BINARY_DMP 0x9252 -#define GL_DMP_PROGRAM_BINARY_DMP 0x9253 -#define GL_SHADER_BINARY_DMP 0x9250 -#define GL_SAMPLER_EXTERNAL_2D_Y2Y_EXT 0x8BE7 -#define GL_TEXTURE_EXTERNAL_OES 0x8D65 -#define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67 -#define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68 -#define GL_SRC1_COLOR_EXT 0x88F9 -#define GL_SRC1_ALPHA_EXT 0x8589 -#define GL_ONE_MINUS_SRC1_COLOR_EXT 0x88FA -#define GL_ONE_MINUS_SRC1_ALPHA_EXT 0x88FB -#define GL_SRC_ALPHA_SATURATE_EXT 0x0308 -#define GL_LOCATION_INDEX_EXT 0x930F -#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT 0x88FC -#define GL_MAP_PERSISTENT_BIT_EXT 0x0040 -#define GL_MAP_COHERENT_BIT_EXT 0x0080 -#define GL_DYNAMIC_STORAGE_BIT_EXT 0x0100 -#define GL_CLIENT_STORAGE_BIT_EXT 0x0200 -#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXT 0x00004000 -#define GL_BUFFER_IMMUTABLE_STORAGE_EXT 0x821F -#define GL_BUFFER_STORAGE_FLAGS_EXT 0x8220 -#define GL_LOWER_LEFT_EXT 0x8CA1 -#define GL_UPPER_LEFT_EXT 0x8CA2 -#define GL_NEGATIVE_ONE_TO_ONE_EXT 0x935E -#define GL_ZERO_TO_ONE_EXT 0x935F -#define GL_CLIP_ORIGIN_EXT 0x935C -#define GL_CLIP_DEPTH_MODE_EXT 0x935D -#define GL_MAX_CLIP_DISTANCES_EXT 0x0D32 -#define GL_MAX_CULL_DISTANCES_EXT 0x82F9 -#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES_EXT 0x82FA -#define GL_CLIP_DISTANCE0_EXT 0x3000 -#define GL_CLIP_DISTANCE1_EXT 0x3001 -#define GL_CLIP_DISTANCE2_EXT 0x3002 -#define GL_CLIP_DISTANCE3_EXT 0x3003 -#define GL_CLIP_DISTANCE4_EXT 0x3004 -#define GL_CLIP_DISTANCE5_EXT 0x3005 -#define GL_CLIP_DISTANCE6_EXT 0x3006 -#define GL_CLIP_DISTANCE7_EXT 0x3007 -#define GL_RGBA16F_EXT 0x881A -#define GL_RGB16F_EXT 0x881B -#define GL_RG16F_EXT 0x822F -#define GL_R16F_EXT 0x822D -#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT 0x8211 -#define GL_UNSIGNED_NORMALIZED_EXT 0x8C17 -#define GL_COLOR_EXT 0x1800 -#define GL_DEPTH_EXT 0x1801 -#define GL_STENCIL_EXT 0x1802 -#define GL_QUERY_COUNTER_BITS_EXT 0x8864 -#define GL_CURRENT_QUERY_EXT 0x8865 -#define GL_QUERY_RESULT_EXT 0x8866 -#define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867 -#define GL_TIMESTAMP_EXT 0x8E28 -#define GL_GPU_DISJOINT_EXT 0x8FBB -#define GL_MAX_DRAW_BUFFERS_EXT 0x8824 -#define GL_DRAW_BUFFER0_EXT 0x8825 -#define GL_DRAW_BUFFER1_EXT 0x8826 -#define GL_DRAW_BUFFER2_EXT 0x8827 -#define GL_DRAW_BUFFER3_EXT 0x8828 -#define GL_DRAW_BUFFER4_EXT 0x8829 -#define GL_DRAW_BUFFER5_EXT 0x882A -#define GL_DRAW_BUFFER6_EXT 0x882B -#define GL_DRAW_BUFFER7_EXT 0x882C -#define GL_DRAW_BUFFER8_EXT 0x882D -#define GL_DRAW_BUFFER9_EXT 0x882E -#define GL_DRAW_BUFFER10_EXT 0x882F -#define GL_DRAW_BUFFER11_EXT 0x8830 -#define GL_DRAW_BUFFER12_EXT 0x8831 -#define GL_DRAW_BUFFER13_EXT 0x8832 -#define GL_DRAW_BUFFER14_EXT 0x8833 -#define GL_DRAW_BUFFER15_EXT 0x8834 -#define GL_GEOMETRY_SHADER_BIT_EXT 0x00000004 -#define GL_GEOMETRY_LINKED_VERTICES_OUT_EXT 0x8916 -#define GL_GEOMETRY_LINKED_INPUT_TYPE_EXT 0x8917 -#define GL_GEOMETRY_LINKED_OUTPUT_TYPE_EXT 0x8918 -#define GL_GEOMETRY_SHADER_INVOCATIONS_EXT 0x887F -#define GL_LAYER_PROVOKING_VERTEX_EXT 0x825E -#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS_EXT 0x8A2C -#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8A32 -#define GL_MAX_GEOMETRY_INPUT_COMPONENTS_EXT 0x9123 -#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_EXT 0x9124 -#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT 0x8E5A -#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_EXT 0x92CF -#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT 0x92D5 -#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS_EXT 0x90CD -#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_EXT 0x90D7 -#define GL_UNDEFINED_VERTEX_EXT 0x8260 -#define GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT 0x9312 -#define GL_MAX_FRAMEBUFFER_LAYERS_EXT 0x9317 -#define GL_REFERENCED_BY_GEOMETRY_SHADER_EXT 0x9309 -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_EXT 0x88FE -#define GL_MAP_READ_BIT_EXT 0x0001 -#define GL_MAP_WRITE_BIT_EXT 0x0002 -#define GL_MAP_INVALIDATE_RANGE_BIT_EXT 0x0004 -#define GL_MAP_INVALIDATE_BUFFER_BIT_EXT 0x0008 -#define GL_MAP_FLUSH_EXPLICIT_BIT_EXT 0x0010 -#define GL_MAP_UNSYNCHRONIZED_BIT_EXT 0x0020 -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C -#define GL_COLOR_ATTACHMENT_EXT 0x90F0 -#define GL_MULTIVIEW_EXT 0x90F1 -#define GL_DRAW_BUFFER_EXT 0x0C01 -#define GL_READ_BUFFER_EXT 0x0C02 -#define GL_MAX_MULTIVIEW_BUFFERS_EXT 0x90F2 -#define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F -#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A -#define GL_PRIMITIVE_BOUNDING_BOX_EXT 0x92BE -#define GL_CONTEXT_FLAG_PROTECTED_CONTENT_BIT_EXT 0x00000010 -#define GL_TEXTURE_PROTECTED_EXT 0x8BFA -#define GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT 0x8A54 -#define GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT 0x8A55 -#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT 0x8A56 -#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT 0x8A57 -#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG 0x93F0 -#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV2_IMG 0x93F1 -#define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365 -#define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366 -#define GL_R16_SNORM_EXT 0x8F98 -#define GL_RG16_SNORM_EXT 0x8F99 -#define GL_RGBA16_SNORM_EXT 0x8F9B -#define GL_GUILTY_CONTEXT_RESET_EXT 0x8253 -#define GL_INNOCENT_CONTEXT_RESET_EXT 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET_EXT 0x8255 -#define GL_CONTEXT_ROBUST_ACCESS_EXT 0x90F3 -#define GL_RESET_NOTIFICATION_STRATEGY_EXT 0x8256 -#define GL_LOSE_CONTEXT_ON_RESET_EXT 0x8252 -#define GL_NO_RESET_NOTIFICATION_EXT 0x8261 -#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT 0x8210 -#define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT 0x8F63 -#define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT 0x8F67 -#define GL_SHADER_PIXEL_LOCAL_STORAGE_EXT 0x8F64 -#define GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_FAST_SIZE_EXT 0x9650 -#define GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_SIZE_EXT 0x9651 -#define GL_FRAMEBUFFER_INCOMPLETE_INSUFFICIENT_SHADER_COMBINED_LOCAL_STORAGE_EXT 0x9652 -#define GL_TEXTURE_COMPARE_MODE_EXT 0x884C -#define GL_TEXTURE_COMPARE_FUNC_EXT 0x884D -#define GL_COMPARE_REF_TO_TEXTURE_EXT 0x884E -#define GL_SAMPLER_2D_SHADOW_EXT 0x8B62 -#define GL_TEXTURE_SPARSE_EXT 0x91A6 -#define GL_VIRTUAL_PAGE_SIZE_INDEX_EXT 0x91A7 -#define GL_NUM_SPARSE_LEVELS_EXT 0x91AA -#define GL_NUM_VIRTUAL_PAGE_SIZES_EXT 0x91A8 -#define GL_VIRTUAL_PAGE_SIZE_X_EXT 0x9195 -#define GL_VIRTUAL_PAGE_SIZE_Y_EXT 0x9196 -#define GL_VIRTUAL_PAGE_SIZE_Z_EXT 0x9197 -#define GL_TEXTURE_CUBE_MAP_ARRAY_OES 0x9009 -#define GL_MAX_SPARSE_TEXTURE_SIZE_EXT 0x9198 -#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_EXT 0x9199 -#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_EXT 0x919A -#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_EXT 0x91A9 -#define GL_PATCHES_EXT 0x000E -#define GL_PATCH_VERTICES_EXT 0x8E72 -#define GL_TESS_CONTROL_OUTPUT_VERTICES_EXT 0x8E75 -#define GL_TESS_GEN_MODE_EXT 0x8E76 -#define GL_TESS_GEN_SPACING_EXT 0x8E77 -#define GL_TESS_GEN_VERTEX_ORDER_EXT 0x8E78 -#define GL_TESS_GEN_POINT_MODE_EXT 0x8E79 -#define GL_ISOLINES_EXT 0x8E7A -#define GL_QUADS_EXT 0x0007 -#define GL_FRACTIONAL_ODD_EXT 0x8E7B -#define GL_FRACTIONAL_EVEN_EXT 0x8E7C -#define GL_MAX_PATCH_VERTICES_EXT 0x8E7D -#define GL_MAX_TESS_GEN_LEVEL_EXT 0x8E7E -#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT 0x8E7F -#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT 0x8E80 -#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_EXT 0x8E81 -#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_EXT 0x8E82 -#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_EXT 0x8E83 -#define GL_MAX_TESS_PATCH_COMPONENTS_EXT 0x8E84 -#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_EXT 0x8E85 -#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_EXT 0x8E86 -#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_EXT 0x8E89 -#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_EXT 0x8E8A -#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_EXT 0x886C -#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_EXT 0x886D -#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT 0x8E1E -#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT 0x8E1F -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_EXT 0x92CD -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_EXT 0x92CE -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT 0x92D3 -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT 0x92D4 -#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_EXT 0x90CB -#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_EXT 0x90CC -#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_EXT 0x90D8 -#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_EXT 0x90D9 -#define GL_IS_PER_PATCH_EXT 0x92E7 -#define GL_REFERENCED_BY_TESS_CONTROL_SHADER_EXT 0x9307 -#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT 0x9308 -#define GL_TESS_CONTROL_SHADER_EXT 0x8E88 -#define GL_TESS_EVALUATION_SHADER_EXT 0x8E87 -#define GL_TESS_CONTROL_SHADER_BIT_EXT 0x00000008 -#define GL_TESS_EVALUATION_SHADER_BIT_EXT 0x00000010 -#define GL_TEXTURE_BORDER_COLOR_EXT 0x1004 -#define GL_CLAMP_TO_BORDER_EXT 0x812D -#define GL_TEXTURE_BUFFER_BINDING_EXT 0x8C2A -#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT 0x919F -#define GL_TEXTURE_BUFFER_OFFSET_EXT 0x919D -#define GL_TEXTURE_BUFFER_SIZE_EXT 0x919E -#define GL_TEXTURE_ASTC_DECODE_PRECISION_EXT 0x8F69 -#define GL_COMPRESSED_RGBA_BPTC_UNORM_EXT 0x8E8C -#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT 0x8E8D -#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT 0x8E8E -#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT 0x8E8F -#define GL_TEXTURE_CUBE_MAP_ARRAY_EXT 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_EXT 0x900A -#define GL_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_EXT 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900F -#define GL_TEXTURE_FORMAT_SRGB_OVERRIDE_EXT 0x8FBF -#define GL_R16_EXT 0x822A -#define GL_RG16_EXT 0x822C -#define GL_RGB16_SNORM_EXT 0x8F9A -#define GL_RED_EXT 0x1903 -#define GL_RG_EXT 0x8227 -#define GL_R8_EXT 0x8229 -#define GL_RG8_EXT 0x822B -#define GL_SR8_EXT 0x8FBD -#define GL_SRG8_EXT 0x8FBE -#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F -#define GL_RGBA32F_EXT 0x8814 -#define GL_RGB32F_EXT 0x8815 -#define GL_ALPHA32F_EXT 0x8816 -#define GL_LUMINANCE32F_EXT 0x8818 -#define GL_LUMINANCE_ALPHA32F_EXT 0x8819 -#define GL_ALPHA16F_EXT 0x881C -#define GL_LUMINANCE16F_EXT 0x881E -#define GL_LUMINANCE_ALPHA16F_EXT 0x881F -#define GL_R32F_EXT 0x822E -#define GL_RG32F_EXT 0x8230 -#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368 -#define GL_TEXTURE_VIEW_MIN_LEVEL_EXT 0x82DB -#define GL_TEXTURE_VIEW_NUM_LEVELS_EXT 0x82DC -#define GL_TEXTURE_VIEW_MIN_LAYER_EXT 0x82DD -#define GL_TEXTURE_VIEW_NUM_LAYERS_EXT 0x82DE -#define GL_UNPACK_ROW_LENGTH_EXT 0x0CF2 -#define GL_UNPACK_SKIP_ROWS_EXT 0x0CF3 -#define GL_UNPACK_SKIP_PIXELS_EXT 0x0CF4 -#define GL_GCCSO_SHADER_BINARY_FJ 0x9260 -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG 0x913C -#define GL_NUM_DOWNSAMPLE_SCALES_IMG 0x913D -#define GL_DOWNSAMPLE_SCALES_IMG 0x913E -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG 0x913F -#define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 -#define GL_MAX_SAMPLES_IMG 0x9135 -#define GL_TEXTURE_SAMPLES_IMG 0x9136 -#define GL_SGX_PROGRAM_BINARY_IMG 0x9130 -#define GL_BGRA_IMG 0x80E1 -#define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365 -#define GL_SGX_BINARY_IMG 0x8C0A -#define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00 -#define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01 -#define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02 -#define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03 -#define GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG 0x9137 -#define GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG 0x9138 -#define GL_CUBIC_IMG 0x9139 -#define GL_CUBIC_MIPMAP_NEAREST_IMG 0x913A -#define GL_CUBIC_MIPMAP_LINEAR_IMG 0x913B -#define GL_COPY_READ_BUFFER_NV 0x8F36 -#define GL_COPY_WRITE_BUFFER_NV 0x8F37 -#define GL_COVERAGE_COMPONENT_NV 0x8ED0 -#define GL_COVERAGE_COMPONENT4_NV 0x8ED1 -#define GL_COVERAGE_ATTACHMENT_NV 0x8ED2 -#define GL_COVERAGE_BUFFERS_NV 0x8ED3 -#define GL_COVERAGE_SAMPLES_NV 0x8ED4 -#define GL_COVERAGE_ALL_FRAGMENTS_NV 0x8ED5 -#define GL_COVERAGE_EDGE_FRAGMENTS_NV 0x8ED6 -#define GL_COVERAGE_AUTOMATIC_NV 0x8ED7 -#define GL_COVERAGE_BUFFER_BIT_NV 0x00008000 -#define GL_DEPTH_COMPONENT16_NONLINEAR_NV 0x8E2C -#define GL_MAX_DRAW_BUFFERS_NV 0x8824 -#define GL_DRAW_BUFFER0_NV 0x8825 -#define GL_DRAW_BUFFER1_NV 0x8826 -#define GL_DRAW_BUFFER2_NV 0x8827 -#define GL_DRAW_BUFFER3_NV 0x8828 -#define GL_DRAW_BUFFER4_NV 0x8829 -#define GL_DRAW_BUFFER5_NV 0x882A -#define GL_DRAW_BUFFER6_NV 0x882B -#define GL_DRAW_BUFFER7_NV 0x882C -#define GL_DRAW_BUFFER8_NV 0x882D -#define GL_DRAW_BUFFER9_NV 0x882E -#define GL_DRAW_BUFFER10_NV 0x882F -#define GL_DRAW_BUFFER11_NV 0x8830 -#define GL_DRAW_BUFFER12_NV 0x8831 -#define GL_DRAW_BUFFER13_NV 0x8832 -#define GL_DRAW_BUFFER14_NV 0x8833 -#define GL_DRAW_BUFFER15_NV 0x8834 -#define GL_COLOR_ATTACHMENT0_NV 0x8CE0 -#define GL_COLOR_ATTACHMENT1_NV 0x8CE1 -#define GL_COLOR_ATTACHMENT2_NV 0x8CE2 -#define GL_COLOR_ATTACHMENT3_NV 0x8CE3 -#define GL_COLOR_ATTACHMENT4_NV 0x8CE4 -#define GL_COLOR_ATTACHMENT5_NV 0x8CE5 -#define GL_COLOR_ATTACHMENT6_NV 0x8CE6 -#define GL_COLOR_ATTACHMENT7_NV 0x8CE7 -#define GL_COLOR_ATTACHMENT8_NV 0x8CE8 -#define GL_COLOR_ATTACHMENT9_NV 0x8CE9 -#define GL_COLOR_ATTACHMENT10_NV 0x8CEA -#define GL_COLOR_ATTACHMENT11_NV 0x8CEB -#define GL_COLOR_ATTACHMENT12_NV 0x8CEC -#define GL_COLOR_ATTACHMENT13_NV 0x8CED -#define GL_COLOR_ATTACHMENT14_NV 0x8CEE -#define GL_COLOR_ATTACHMENT15_NV 0x8CEF -#define GL_MAX_COLOR_ATTACHMENTS_NV 0x8CDF -#define GL_READ_FRAMEBUFFER_NV 0x8CA8 -#define GL_DRAW_FRAMEBUFFER_NV 0x8CA9 -#define GL_DRAW_FRAMEBUFFER_BINDING_NV 0x8CA6 -#define GL_READ_FRAMEBUFFER_BINDING_NV 0x8CAA -#define GL_RENDERBUFFER_SAMPLES_NV 0x8CAB -#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV 0x8D56 -#define GL_MAX_SAMPLES_NV 0x8D57 -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_NV 0x88FE -#define GL_FLOAT_MAT2x3_NV 0x8B65 -#define GL_FLOAT_MAT2x4_NV 0x8B66 -#define GL_FLOAT_MAT3x2_NV 0x8B67 -#define GL_FLOAT_MAT3x4_NV 0x8B68 -#define GL_FLOAT_MAT4x2_NV 0x8B69 -#define GL_FLOAT_MAT4x3_NV 0x8B6A -#define GL_PIXEL_PACK_BUFFER_NV 0x88EB -#define GL_PIXEL_UNPACK_BUFFER_NV 0x88EC -#define GL_PIXEL_PACK_BUFFER_BINDING_NV 0x88ED -#define GL_PIXEL_UNPACK_BUFFER_BINDING_NV 0x88EF -#define GL_POLYGON_MODE_NV 0x0B40 -#define GL_POLYGON_OFFSET_POINT_NV 0x2A01 -#define GL_POLYGON_OFFSET_LINE_NV 0x2A02 -#define GL_POINT_NV 0x1B00 -#define GL_LINE_NV 0x1B01 -#define GL_FILL_NV 0x1B02 -#define GL_READ_BUFFER_NV 0x0C02 -#define GL_SLUMINANCE_NV 0x8C46 -#define GL_SLUMINANCE_ALPHA_NV 0x8C44 -#define GL_SRGB8_NV 0x8C41 -#define GL_SLUMINANCE8_NV 0x8C47 -#define GL_SLUMINANCE8_ALPHA8_NV 0x8C45 -#define GL_COMPRESSED_SRGB_S3TC_DXT1_NV 0x8C4C -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV 0x8C4D -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV 0x8C4E -#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV 0x8C4F -#define GL_ETC1_SRGB8_NV 0x88EE -#define GL_SAMPLER_2D_ARRAY_SHADOW_NV 0x8DC4 -#define GL_SAMPLER_CUBE_SHADOW_NV 0x8DC5 -#define GL_TEXTURE_BORDER_COLOR_NV 0x1004 -#define GL_CLAMP_TO_BORDER_NV 0x812D -#define GL_MAX_VIEWPORTS_NV 0x825B -#define GL_VIEWPORT_SUBPIXEL_BITS_NV 0x825C -#define GL_VIEWPORT_BOUNDS_RANGE_NV 0x825D -#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX_NV 0x825F -#define GL_SAMPLER_EXTERNAL_OES 0x8D66 -#define GL_ETC1_RGB8_OES 0x8D64 -#define GL_DEPTH_COMPONENT24_OES 0x81A6 -#define GL_GEOMETRY_SHADER_OES 0x8DD9 -#define GL_GEOMETRY_SHADER_BIT_OES 0x00000004 -#define GL_GEOMETRY_LINKED_VERTICES_OUT_OES 0x8916 -#define GL_GEOMETRY_LINKED_INPUT_TYPE_OES 0x8917 -#define GL_GEOMETRY_LINKED_OUTPUT_TYPE_OES 0x8918 -#define GL_GEOMETRY_SHADER_INVOCATIONS_OES 0x887F -#define GL_LAYER_PROVOKING_VERTEX_OES 0x825E -#define GL_LINES_ADJACENCY_OES 0x000A -#define GL_LINE_STRIP_ADJACENCY_OES 0x000B -#define GL_TRIANGLES_ADJACENCY_OES 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY_OES 0x000D -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_OES 0x8DDF -#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS_OES 0x8A2C -#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_OES 0x8A32 -#define GL_MAX_GEOMETRY_INPUT_COMPONENTS_OES 0x9123 -#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_OES 0x9124 -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_OES 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_OES 0x8DE1 -#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS_OES 0x8E5A -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_OES 0x8C29 -#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_OES 0x92CF -#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS_OES 0x92D5 -#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS_OES 0x90CD -#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_OES 0x90D7 -#define GL_FIRST_VERTEX_CONVENTION_OES 0x8E4D -#define GL_LAST_VERTEX_CONVENTION_OES 0x8E4E -#define GL_UNDEFINED_VERTEX_OES 0x8260 -#define GL_PRIMITIVES_GENERATED_OES 0x8C87 -#define GL_FRAMEBUFFER_DEFAULT_LAYERS_OES 0x9312 -#define GL_MAX_FRAMEBUFFER_LAYERS_OES 0x9317 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_OES 0x8DA8 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_OES 0x8DA7 -#define GL_REFERENCED_BY_GEOMETRY_SHADER_OES 0x9309 -#define GL_PROGRAM_BINARY_LENGTH_OES 0x8741 -#define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE -#define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF -#define GL_WRITE_ONLY_OES 0x88B9 -#define GL_BUFFER_ACCESS_OES 0x88BB -#define GL_BUFFER_MAPPED_OES 0x88BC -#define GL_BUFFER_MAP_POINTER_OES 0x88BD -#define GL_PRIMITIVE_BOUNDING_BOX_OES 0x92BE -#define GL_ALPHA8_OES 0x803C -#define GL_DEPTH_COMPONENT16_OES 0x81A5 -#define GL_LUMINANCE4_ALPHA4_OES 0x8043 -#define GL_LUMINANCE8_ALPHA8_OES 0x8045 -#define GL_LUMINANCE8_OES 0x8040 -#define GL_RGBA4_OES 0x8056 -#define GL_RGB5_A1_OES 0x8057 -#define GL_RGB565_OES 0x8D62 -#define GL_RGB8_OES 0x8051 -#define GL_RGBA8_OES 0x8058 -#define GL_SAMPLE_SHADING_OES 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE_OES 0x8C37 -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_OES 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_OES 0x8E5C -#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS_OES 0x8E5D -#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B -#define GL_STENCIL_INDEX1_OES 0x8D46 -#define GL_STENCIL_INDEX4_OES 0x8D47 -#define GL_FRAMEBUFFER_UNDEFINED_OES 0x8219 -#define GL_PATCHES_OES 0x000E -#define GL_PATCH_VERTICES_OES 0x8E72 -#define GL_TESS_CONTROL_OUTPUT_VERTICES_OES 0x8E75 -#define GL_TESS_GEN_MODE_OES 0x8E76 -#define GL_TESS_GEN_SPACING_OES 0x8E77 -#define GL_TESS_GEN_VERTEX_ORDER_OES 0x8E78 -#define GL_TESS_GEN_POINT_MODE_OES 0x8E79 -#define GL_ISOLINES_OES 0x8E7A -#define GL_QUADS_OES 0x0007 -#define GL_FRACTIONAL_ODD_OES 0x8E7B -#define GL_FRACTIONAL_EVEN_OES 0x8E7C -#define GL_MAX_PATCH_VERTICES_OES 0x8E7D -#define GL_MAX_TESS_GEN_LEVEL_OES 0x8E7E -#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_OES 0x8E7F -#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_OES 0x8E80 -#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_OES 0x8E81 -#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_OES 0x8E82 -#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_OES 0x8E83 -#define GL_MAX_TESS_PATCH_COMPONENTS_OES 0x8E84 -#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_OES 0x8E85 -#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_OES 0x8E86 -#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_OES 0x8E89 -#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_OES 0x8E8A -#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_OES 0x886C -#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_OES 0x886D -#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_OES 0x8E1E -#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_OES 0x8E1F -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_OES 0x92CD -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_OES 0x92CE -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_OES 0x92D3 -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_OES 0x92D4 -#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_OES 0x90CB -#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_OES 0x90CC -#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_OES 0x90D8 -#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_OES 0x90D9 -#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED_OES 0x8221 -#define GL_IS_PER_PATCH_OES 0x92E7 -#define GL_REFERENCED_BY_TESS_CONTROL_SHADER_OES 0x9307 -#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER_OES 0x9308 -#define GL_TESS_CONTROL_SHADER_OES 0x8E88 -#define GL_TESS_EVALUATION_SHADER_OES 0x8E87 -#define GL_TESS_CONTROL_SHADER_BIT_OES 0x00000008 -#define GL_TESS_EVALUATION_SHADER_BIT_OES 0x00000010 -#define GL_TEXTURE_WRAP_R_OES 0x8072 -#define GL_TEXTURE_3D_OES 0x806F -#define GL_TEXTURE_BINDING_3D_OES 0x806A -#define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073 -#define GL_SAMPLER_3D_OES 0x8B5F -#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4 -#define GL_TEXTURE_BORDER_COLOR_OES 0x1004 -#define GL_CLAMP_TO_BORDER_OES 0x812D -#define GL_TEXTURE_BUFFER_OES 0x8C2A -#define GL_TEXTURE_BUFFER_BINDING_OES 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE_OES 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER_OES 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_OES 0x8C2D -#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_OES 0x919F -#define GL_SAMPLER_BUFFER_OES 0x8DC2 -#define GL_INT_SAMPLER_BUFFER_OES 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER_OES 0x8DD8 -#define GL_IMAGE_BUFFER_OES 0x9051 -#define GL_INT_IMAGE_BUFFER_OES 0x905C -#define GL_UNSIGNED_INT_IMAGE_BUFFER_OES 0x9067 -#define GL_TEXTURE_BUFFER_OFFSET_OES 0x919D -#define GL_TEXTURE_BUFFER_SIZE_OES 0x919E -#define GL_COMPRESSED_RGBA_ASTC_3x3x3_OES 0x93C0 -#define GL_COMPRESSED_RGBA_ASTC_4x3x3_OES 0x93C1 -#define GL_COMPRESSED_RGBA_ASTC_4x4x3_OES 0x93C2 -#define GL_COMPRESSED_RGBA_ASTC_4x4x4_OES 0x93C3 -#define GL_COMPRESSED_RGBA_ASTC_5x4x4_OES 0x93C4 -#define GL_COMPRESSED_RGBA_ASTC_5x5x4_OES 0x93C5 -#define GL_COMPRESSED_RGBA_ASTC_5x5x5_OES 0x93C6 -#define GL_COMPRESSED_RGBA_ASTC_6x5x5_OES 0x93C7 -#define GL_COMPRESSED_RGBA_ASTC_6x6x5_OES 0x93C8 -#define GL_COMPRESSED_RGBA_ASTC_6x6x6_OES 0x93C9 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES 0x93E0 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES 0x93E1 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES 0x93E2 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES 0x93E3 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES 0x93E4 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES 0x93E5 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES 0x93E6 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES 0x93E7 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES 0x93E8 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES 0x93E9 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_OES 0x900A -#define GL_SAMPLER_CUBE_MAP_ARRAY_OES 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_OES 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_OES 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_OES 0x900F -#define GL_IMAGE_CUBE_MAP_ARRAY_OES 0x9054 -#define GL_INT_IMAGE_CUBE_MAP_ARRAY_OES 0x905F -#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_OES 0x906A -#define GL_HALF_FLOAT_OES 0x8D61 -#define GL_STENCIL_INDEX_OES 0x1901 -#define GL_STENCIL_INDEX8_OES 0x8D48 -#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES 0x9102 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES 0x9105 -#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910B -#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910C -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910D -#define GL_TEXTURE_VIEW_MIN_LEVEL_OES 0x82DB -#define GL_TEXTURE_VIEW_NUM_LEVELS_OES 0x82DC -#define GL_TEXTURE_VIEW_MIN_LAYER_OES 0x82DD -#define GL_TEXTURE_VIEW_NUM_LAYERS_OES 0x82DE -#define GL_VERTEX_ARRAY_BINDING_OES 0x85B5 -#define GL_UNSIGNED_INT_10_10_10_2_OES 0x8DF6 -#define GL_INT_10_10_10_2_OES 0x8DF7 -#define GL_MAX_VIEWPORTS_OES 0x825B -#define GL_VIEWPORT_SUBPIXEL_BITS_OES 0x825C -#define GL_VIEWPORT_BOUNDS_RANGE_OES 0x825D -#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES 0x825F -#define GL_ALPHA_TEST_QCOM 0x0BC0 -#define GL_ALPHA_TEST_FUNC_QCOM 0x0BC1 -#define GL_ALPHA_TEST_REF_QCOM 0x0BC2 -#define GL_BINNING_CONTROL_HINT_QCOM 0x8FB0 -#define GL_CPU_OPTIMIZED_QCOM 0x8FB1 -#define GL_GPU_OPTIMIZED_QCOM 0x8FB2 -#define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM 0x8FB3 -#define GL_TEXTURE_WIDTH_QCOM 0x8BD2 -#define GL_TEXTURE_HEIGHT_QCOM 0x8BD3 -#define GL_TEXTURE_DEPTH_QCOM 0x8BD4 -#define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5 -#define GL_TEXTURE_FORMAT_QCOM 0x8BD6 -#define GL_TEXTURE_TYPE_QCOM 0x8BD7 -#define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8 -#define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9 -#define GL_TEXTURE_TARGET_QCOM 0x8BDA -#define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB -#define GL_STATE_RESTORE 0x8BDC -#define GL_FOVEATION_ENABLE_BIT_QCOM 0x00000001 -#define GL_FOVEATION_SCALED_BIN_METHOD_BIT_QCOM 0x00000002 -#define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0 -#define GL_FRAMEBUFFER_FETCH_NONCOHERENT_QCOM 0x96A2 -#define GL_TEXTURE_FOVEATED_FEATURE_BITS_QCOM 0x8BFB -#define GL_TEXTURE_FOVEATED_MIN_PIXEL_DENSITY_QCOM 0x8BFC -#define GL_TEXTURE_FOVEATED_FEATURE_QUERY_QCOM 0x8BFD -#define GL_TEXTURE_FOVEATED_NUM_FOCAL_POINTS_QUERY_QCOM 0x8BFE -#define GL_FRAMEBUFFER_INCOMPLETE_FOVEATION_QCOM 0x8BFF -#define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001 -#define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002 -#define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004 -#define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008 -#define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010 -#define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020 -#define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040 -#define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080 -#define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100 -#define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200 -#define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400 -#define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800 -#define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000 -#define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000 -#define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000 -#define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000 -#define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000 -#define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000 -#define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000 -#define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000 -#define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000 -#define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000 -#define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000 -#define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000 -#define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000 -#define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000 -#define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000 -#define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000 -#define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000 -#define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000 -#define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000 -#define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000 -#define GL_WRITEONLY_RENDERING_QCOM 0x8823 -#define GL_SHADER_BINARY_VIV 0x8FC4 -#ifndef GL_3DFX_multisample -#define GL_3DFX_multisample 1 -GLAPI int GLAD_GL_3DFX_multisample; -#endif -#ifndef GL_3DFX_tbuffer -#define GL_3DFX_tbuffer 1 -GLAPI int GLAD_GL_3DFX_tbuffer; -typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC)(GLuint mask); -GLAPI PFNGLTBUFFERMASK3DFXPROC glad_glTbufferMask3DFX; -#define glTbufferMask3DFX glad_glTbufferMask3DFX -#endif -#ifndef GL_3DFX_texture_compression_FXT1 -#define GL_3DFX_texture_compression_FXT1 1 -GLAPI int GLAD_GL_3DFX_texture_compression_FXT1; -#endif -#ifndef GL_AMD_blend_minmax_factor -#define GL_AMD_blend_minmax_factor 1 -GLAPI int GLAD_GL_AMD_blend_minmax_factor; -#endif -#ifndef GL_AMD_conservative_depth -#define GL_AMD_conservative_depth 1 -GLAPI int GLAD_GL_AMD_conservative_depth; -#endif -#ifndef GL_AMD_debug_output -#define GL_AMD_debug_output 1 -GLAPI int GLAD_GL_AMD_debug_output; -typedef void (APIENTRYP PFNGLDEBUGMESSAGEENABLEAMDPROC)(GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI PFNGLDEBUGMESSAGEENABLEAMDPROC glad_glDebugMessageEnableAMD; -#define glDebugMessageEnableAMD glad_glDebugMessageEnableAMD -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTAMDPROC)(GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf); -GLAPI PFNGLDEBUGMESSAGEINSERTAMDPROC glad_glDebugMessageInsertAMD; -#define glDebugMessageInsertAMD glad_glDebugMessageInsertAMD -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKAMDPROC)(GLDEBUGPROCAMD callback, void *userParam); -GLAPI PFNGLDEBUGMESSAGECALLBACKAMDPROC glad_glDebugMessageCallbackAMD; -#define glDebugMessageCallbackAMD glad_glDebugMessageCallbackAMD -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGAMDPROC)(GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message); -GLAPI PFNGLGETDEBUGMESSAGELOGAMDPROC glad_glGetDebugMessageLogAMD; -#define glGetDebugMessageLogAMD glad_glGetDebugMessageLogAMD -#endif -#ifndef GL_AMD_depth_clamp_separate -#define GL_AMD_depth_clamp_separate 1 -GLAPI int GLAD_GL_AMD_depth_clamp_separate; -#endif -#ifndef GL_AMD_draw_buffers_blend -#define GL_AMD_draw_buffers_blend 1 -GLAPI int GLAD_GL_AMD_draw_buffers_blend; -typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC)(GLuint buf, GLenum src, GLenum dst); -GLAPI PFNGLBLENDFUNCINDEXEDAMDPROC glad_glBlendFuncIndexedAMD; -#define glBlendFuncIndexedAMD glad_glBlendFuncIndexedAMD -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC glad_glBlendFuncSeparateIndexedAMD; -#define glBlendFuncSeparateIndexedAMD glad_glBlendFuncSeparateIndexedAMD -typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC)(GLuint buf, GLenum mode); -GLAPI PFNGLBLENDEQUATIONINDEXEDAMDPROC glad_glBlendEquationIndexedAMD; -#define glBlendEquationIndexedAMD glad_glBlendEquationIndexedAMD -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC)(GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC glad_glBlendEquationSeparateIndexedAMD; -#define glBlendEquationSeparateIndexedAMD glad_glBlendEquationSeparateIndexedAMD -#endif -#ifndef GL_AMD_framebuffer_sample_positions -#define GL_AMD_framebuffer_sample_positions 1 -GLAPI int GLAD_GL_AMD_framebuffer_sample_positions; -typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC)(GLenum target, GLuint numsamples, GLuint pixelindex, const GLfloat *values); -GLAPI PFNGLFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC glad_glFramebufferSamplePositionsfvAMD; -#define glFramebufferSamplePositionsfvAMD glad_glFramebufferSamplePositionsfvAMD -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC)(GLuint framebuffer, GLuint numsamples, GLuint pixelindex, const GLfloat *values); -GLAPI PFNGLNAMEDFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC glad_glNamedFramebufferSamplePositionsfvAMD; -#define glNamedFramebufferSamplePositionsfvAMD glad_glNamedFramebufferSamplePositionsfvAMD -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERFVAMDPROC)(GLenum target, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat *values); -GLAPI PFNGLGETFRAMEBUFFERPARAMETERFVAMDPROC glad_glGetFramebufferParameterfvAMD; -#define glGetFramebufferParameterfvAMD glad_glGetFramebufferParameterfvAMD -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERFVAMDPROC)(GLuint framebuffer, GLenum pname, GLuint numsamples, GLuint pixelindex, GLsizei size, GLfloat *values); -GLAPI PFNGLGETNAMEDFRAMEBUFFERPARAMETERFVAMDPROC glad_glGetNamedFramebufferParameterfvAMD; -#define glGetNamedFramebufferParameterfvAMD glad_glGetNamedFramebufferParameterfvAMD -#endif -#ifndef GL_AMD_gcn_shader -#define GL_AMD_gcn_shader 1 -GLAPI int GLAD_GL_AMD_gcn_shader; -#endif -#ifndef GL_AMD_gpu_shader_half_float -#define GL_AMD_gpu_shader_half_float 1 -GLAPI int GLAD_GL_AMD_gpu_shader_half_float; -#endif -#ifndef GL_AMD_gpu_shader_int16 -#define GL_AMD_gpu_shader_int16 1 -GLAPI int GLAD_GL_AMD_gpu_shader_int16; -#endif -#ifndef GL_AMD_gpu_shader_int64 -#define GL_AMD_gpu_shader_int64 1 -GLAPI int GLAD_GL_AMD_gpu_shader_int64; -typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC)(GLint location, GLint64EXT x); -GLAPI PFNGLUNIFORM1I64NVPROC glad_glUniform1i64NV; -#define glUniform1i64NV glad_glUniform1i64NV -typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC)(GLint location, GLint64EXT x, GLint64EXT y); -GLAPI PFNGLUNIFORM2I64NVPROC glad_glUniform2i64NV; -#define glUniform2i64NV glad_glUniform2i64NV -typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC)(GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -GLAPI PFNGLUNIFORM3I64NVPROC glad_glUniform3i64NV; -#define glUniform3i64NV glad_glUniform3i64NV -typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC)(GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -GLAPI PFNGLUNIFORM4I64NVPROC glad_glUniform4i64NV; -#define glUniform4i64NV glad_glUniform4i64NV -typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC)(GLint location, GLsizei count, const GLint64EXT *value); -GLAPI PFNGLUNIFORM1I64VNVPROC glad_glUniform1i64vNV; -#define glUniform1i64vNV glad_glUniform1i64vNV -typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC)(GLint location, GLsizei count, const GLint64EXT *value); -GLAPI PFNGLUNIFORM2I64VNVPROC glad_glUniform2i64vNV; -#define glUniform2i64vNV glad_glUniform2i64vNV -typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC)(GLint location, GLsizei count, const GLint64EXT *value); -GLAPI PFNGLUNIFORM3I64VNVPROC glad_glUniform3i64vNV; -#define glUniform3i64vNV glad_glUniform3i64vNV -typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC)(GLint location, GLsizei count, const GLint64EXT *value); -GLAPI PFNGLUNIFORM4I64VNVPROC glad_glUniform4i64vNV; -#define glUniform4i64vNV glad_glUniform4i64vNV -typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC)(GLint location, GLuint64EXT x); -GLAPI PFNGLUNIFORM1UI64NVPROC glad_glUniform1ui64NV; -#define glUniform1ui64NV glad_glUniform1ui64NV -typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC)(GLint location, GLuint64EXT x, GLuint64EXT y); -GLAPI PFNGLUNIFORM2UI64NVPROC glad_glUniform2ui64NV; -#define glUniform2ui64NV glad_glUniform2ui64NV -typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC)(GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -GLAPI PFNGLUNIFORM3UI64NVPROC glad_glUniform3ui64NV; -#define glUniform3ui64NV glad_glUniform3ui64NV -typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC)(GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -GLAPI PFNGLUNIFORM4UI64NVPROC glad_glUniform4ui64NV; -#define glUniform4ui64NV glad_glUniform4ui64NV -typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC)(GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLUNIFORM1UI64VNVPROC glad_glUniform1ui64vNV; -#define glUniform1ui64vNV glad_glUniform1ui64vNV -typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC)(GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLUNIFORM2UI64VNVPROC glad_glUniform2ui64vNV; -#define glUniform2ui64vNV glad_glUniform2ui64vNV -typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC)(GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLUNIFORM3UI64VNVPROC glad_glUniform3ui64vNV; -#define glUniform3ui64vNV glad_glUniform3ui64vNV -typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC)(GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLUNIFORM4UI64VNVPROC glad_glUniform4ui64vNV; -#define glUniform4ui64vNV glad_glUniform4ui64vNV -typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC)(GLuint program, GLint location, GLint64EXT *params); -GLAPI PFNGLGETUNIFORMI64VNVPROC glad_glGetUniformi64vNV; -#define glGetUniformi64vNV glad_glGetUniformi64vNV -typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC)(GLuint program, GLint location, GLuint64EXT *params); -GLAPI PFNGLGETUNIFORMUI64VNVPROC glad_glGetUniformui64vNV; -#define glGetUniformui64vNV glad_glGetUniformui64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC)(GLuint program, GLint location, GLint64EXT x); -GLAPI PFNGLPROGRAMUNIFORM1I64NVPROC glad_glProgramUniform1i64NV; -#define glProgramUniform1i64NV glad_glProgramUniform1i64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC)(GLuint program, GLint location, GLint64EXT x, GLint64EXT y); -GLAPI PFNGLPROGRAMUNIFORM2I64NVPROC glad_glProgramUniform2i64NV; -#define glProgramUniform2i64NV glad_glProgramUniform2i64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC)(GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z); -GLAPI PFNGLPROGRAMUNIFORM3I64NVPROC glad_glProgramUniform3i64NV; -#define glProgramUniform3i64NV glad_glProgramUniform3i64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC)(GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -GLAPI PFNGLPROGRAMUNIFORM4I64NVPROC glad_glProgramUniform4i64NV; -#define glProgramUniform4i64NV glad_glProgramUniform4i64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORM1I64VNVPROC glad_glProgramUniform1i64vNV; -#define glProgramUniform1i64vNV glad_glProgramUniform1i64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORM2I64VNVPROC glad_glProgramUniform2i64vNV; -#define glProgramUniform2i64vNV glad_glProgramUniform2i64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORM3I64VNVPROC glad_glProgramUniform3i64vNV; -#define glProgramUniform3i64vNV glad_glProgramUniform3i64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORM4I64VNVPROC glad_glProgramUniform4i64vNV; -#define glProgramUniform4i64vNV glad_glProgramUniform4i64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC)(GLuint program, GLint location, GLuint64EXT x); -GLAPI PFNGLPROGRAMUNIFORM1UI64NVPROC glad_glProgramUniform1ui64NV; -#define glProgramUniform1ui64NV glad_glProgramUniform1ui64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC)(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y); -GLAPI PFNGLPROGRAMUNIFORM2UI64NVPROC glad_glProgramUniform2ui64NV; -#define glProgramUniform2ui64NV glad_glProgramUniform2ui64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC)(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -GLAPI PFNGLPROGRAMUNIFORM3UI64NVPROC glad_glProgramUniform3ui64NV; -#define glProgramUniform3ui64NV glad_glProgramUniform3ui64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC)(GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -GLAPI PFNGLPROGRAMUNIFORM4UI64NVPROC glad_glProgramUniform4ui64NV; -#define glProgramUniform4ui64NV glad_glProgramUniform4ui64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORM1UI64VNVPROC glad_glProgramUniform1ui64vNV; -#define glProgramUniform1ui64vNV glad_glProgramUniform1ui64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORM2UI64VNVPROC glad_glProgramUniform2ui64vNV; -#define glProgramUniform2ui64vNV glad_glProgramUniform2ui64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORM3UI64VNVPROC glad_glProgramUniform3ui64vNV; -#define glProgramUniform3ui64vNV glad_glProgramUniform3ui64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORM4UI64VNVPROC glad_glProgramUniform4ui64vNV; -#define glProgramUniform4ui64vNV glad_glProgramUniform4ui64vNV -#endif -#ifndef GL_AMD_interleaved_elements -#define GL_AMD_interleaved_elements 1 -GLAPI int GLAD_GL_AMD_interleaved_elements; -typedef void (APIENTRYP PFNGLVERTEXATTRIBPARAMETERIAMDPROC)(GLuint index, GLenum pname, GLint param); -GLAPI PFNGLVERTEXATTRIBPARAMETERIAMDPROC glad_glVertexAttribParameteriAMD; -#define glVertexAttribParameteriAMD glad_glVertexAttribParameteriAMD -#endif -#ifndef GL_AMD_multi_draw_indirect -#define GL_AMD_multi_draw_indirect 1 -GLAPI int GLAD_GL_AMD_multi_draw_indirect; -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC)(GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC glad_glMultiDrawArraysIndirectAMD; -#define glMultiDrawArraysIndirectAMD glad_glMultiDrawArraysIndirectAMD -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC)(GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC glad_glMultiDrawElementsIndirectAMD; -#define glMultiDrawElementsIndirectAMD glad_glMultiDrawElementsIndirectAMD -#endif -#ifndef GL_AMD_name_gen_delete -#define GL_AMD_name_gen_delete 1 -GLAPI int GLAD_GL_AMD_name_gen_delete; -typedef void (APIENTRYP PFNGLGENNAMESAMDPROC)(GLenum identifier, GLuint num, GLuint *names); -GLAPI PFNGLGENNAMESAMDPROC glad_glGenNamesAMD; -#define glGenNamesAMD glad_glGenNamesAMD -typedef void (APIENTRYP PFNGLDELETENAMESAMDPROC)(GLenum identifier, GLuint num, const GLuint *names); -GLAPI PFNGLDELETENAMESAMDPROC glad_glDeleteNamesAMD; -#define glDeleteNamesAMD glad_glDeleteNamesAMD -typedef GLboolean (APIENTRYP PFNGLISNAMEAMDPROC)(GLenum identifier, GLuint name); -GLAPI PFNGLISNAMEAMDPROC glad_glIsNameAMD; -#define glIsNameAMD glad_glIsNameAMD -#endif -#ifndef GL_AMD_occlusion_query_event -#define GL_AMD_occlusion_query_event 1 -GLAPI int GLAD_GL_AMD_occlusion_query_event; -typedef void (APIENTRYP PFNGLQUERYOBJECTPARAMETERUIAMDPROC)(GLenum target, GLuint id, GLenum pname, GLuint param); -GLAPI PFNGLQUERYOBJECTPARAMETERUIAMDPROC glad_glQueryObjectParameteruiAMD; -#define glQueryObjectParameteruiAMD glad_glQueryObjectParameteruiAMD -#endif -#ifndef GL_AMD_performance_monitor -#define GL_AMD_performance_monitor 1 -GLAPI int GLAD_GL_AMD_performance_monitor; -typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC)(GLint *numGroups, GLsizei groupsSize, GLuint *groups); -GLAPI PFNGLGETPERFMONITORGROUPSAMDPROC glad_glGetPerfMonitorGroupsAMD; -#define glGetPerfMonitorGroupsAMD glad_glGetPerfMonitorGroupsAMD -typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC)(GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); -GLAPI PFNGLGETPERFMONITORCOUNTERSAMDPROC glad_glGetPerfMonitorCountersAMD; -#define glGetPerfMonitorCountersAMD glad_glGetPerfMonitorCountersAMD -typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC)(GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString); -GLAPI PFNGLGETPERFMONITORGROUPSTRINGAMDPROC glad_glGetPerfMonitorGroupStringAMD; -#define glGetPerfMonitorGroupStringAMD glad_glGetPerfMonitorGroupStringAMD -typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC)(GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); -GLAPI PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC glad_glGetPerfMonitorCounterStringAMD; -#define glGetPerfMonitorCounterStringAMD glad_glGetPerfMonitorCounterStringAMD -typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC)(GLuint group, GLuint counter, GLenum pname, void *data); -GLAPI PFNGLGETPERFMONITORCOUNTERINFOAMDPROC glad_glGetPerfMonitorCounterInfoAMD; -#define glGetPerfMonitorCounterInfoAMD glad_glGetPerfMonitorCounterInfoAMD -typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC)(GLsizei n, GLuint *monitors); -GLAPI PFNGLGENPERFMONITORSAMDPROC glad_glGenPerfMonitorsAMD; -#define glGenPerfMonitorsAMD glad_glGenPerfMonitorsAMD -typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC)(GLsizei n, GLuint *monitors); -GLAPI PFNGLDELETEPERFMONITORSAMDPROC glad_glDeletePerfMonitorsAMD; -#define glDeletePerfMonitorsAMD glad_glDeletePerfMonitorsAMD -typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC)(GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList); -GLAPI PFNGLSELECTPERFMONITORCOUNTERSAMDPROC glad_glSelectPerfMonitorCountersAMD; -#define glSelectPerfMonitorCountersAMD glad_glSelectPerfMonitorCountersAMD -typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC)(GLuint monitor); -GLAPI PFNGLBEGINPERFMONITORAMDPROC glad_glBeginPerfMonitorAMD; -#define glBeginPerfMonitorAMD glad_glBeginPerfMonitorAMD -typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC)(GLuint monitor); -GLAPI PFNGLENDPERFMONITORAMDPROC glad_glEndPerfMonitorAMD; -#define glEndPerfMonitorAMD glad_glEndPerfMonitorAMD -typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC)(GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); -GLAPI PFNGLGETPERFMONITORCOUNTERDATAAMDPROC glad_glGetPerfMonitorCounterDataAMD; -#define glGetPerfMonitorCounterDataAMD glad_glGetPerfMonitorCounterDataAMD -#endif -#ifndef GL_AMD_pinned_memory -#define GL_AMD_pinned_memory 1 -GLAPI int GLAD_GL_AMD_pinned_memory; -#endif -#ifndef GL_AMD_query_buffer_object -#define GL_AMD_query_buffer_object 1 -GLAPI int GLAD_GL_AMD_query_buffer_object; -#endif -#ifndef GL_AMD_sample_positions -#define GL_AMD_sample_positions 1 -GLAPI int GLAD_GL_AMD_sample_positions; -typedef void (APIENTRYP PFNGLSETMULTISAMPLEFVAMDPROC)(GLenum pname, GLuint index, const GLfloat *val); -GLAPI PFNGLSETMULTISAMPLEFVAMDPROC glad_glSetMultisamplefvAMD; -#define glSetMultisamplefvAMD glad_glSetMultisamplefvAMD -#endif -#ifndef GL_AMD_seamless_cubemap_per_texture -#define GL_AMD_seamless_cubemap_per_texture 1 -GLAPI int GLAD_GL_AMD_seamless_cubemap_per_texture; -#endif -#ifndef GL_AMD_shader_atomic_counter_ops -#define GL_AMD_shader_atomic_counter_ops 1 -GLAPI int GLAD_GL_AMD_shader_atomic_counter_ops; -#endif -#ifndef GL_AMD_shader_ballot -#define GL_AMD_shader_ballot 1 -GLAPI int GLAD_GL_AMD_shader_ballot; -#endif -#ifndef GL_AMD_shader_explicit_vertex_parameter -#define GL_AMD_shader_explicit_vertex_parameter 1 -GLAPI int GLAD_GL_AMD_shader_explicit_vertex_parameter; -#endif -#ifndef GL_AMD_shader_gpu_shader_half_float_fetch -#define GL_AMD_shader_gpu_shader_half_float_fetch 1 -GLAPI int GLAD_GL_AMD_shader_gpu_shader_half_float_fetch; -#endif -#ifndef GL_AMD_shader_image_load_store_lod -#define GL_AMD_shader_image_load_store_lod 1 -GLAPI int GLAD_GL_AMD_shader_image_load_store_lod; -#endif -#ifndef GL_AMD_shader_stencil_export -#define GL_AMD_shader_stencil_export 1 -GLAPI int GLAD_GL_AMD_shader_stencil_export; -#endif -#ifndef GL_AMD_shader_trinary_minmax -#define GL_AMD_shader_trinary_minmax 1 -GLAPI int GLAD_GL_AMD_shader_trinary_minmax; -#endif -#ifndef GL_AMD_sparse_texture -#define GL_AMD_sparse_texture 1 -GLAPI int GLAD_GL_AMD_sparse_texture; -typedef void (APIENTRYP PFNGLTEXSTORAGESPARSEAMDPROC)(GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); -GLAPI PFNGLTEXSTORAGESPARSEAMDPROC glad_glTexStorageSparseAMD; -#define glTexStorageSparseAMD glad_glTexStorageSparseAMD -typedef void (APIENTRYP PFNGLTEXTURESTORAGESPARSEAMDPROC)(GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags); -GLAPI PFNGLTEXTURESTORAGESPARSEAMDPROC glad_glTextureStorageSparseAMD; -#define glTextureStorageSparseAMD glad_glTextureStorageSparseAMD -#endif -#ifndef GL_AMD_stencil_operation_extended -#define GL_AMD_stencil_operation_extended 1 -GLAPI int GLAD_GL_AMD_stencil_operation_extended; -typedef void (APIENTRYP PFNGLSTENCILOPVALUEAMDPROC)(GLenum face, GLuint value); -GLAPI PFNGLSTENCILOPVALUEAMDPROC glad_glStencilOpValueAMD; -#define glStencilOpValueAMD glad_glStencilOpValueAMD -#endif -#ifndef GL_AMD_texture_gather_bias_lod -#define GL_AMD_texture_gather_bias_lod 1 -GLAPI int GLAD_GL_AMD_texture_gather_bias_lod; -#endif -#ifndef GL_AMD_texture_texture4 -#define GL_AMD_texture_texture4 1 -GLAPI int GLAD_GL_AMD_texture_texture4; -#endif -#ifndef GL_AMD_transform_feedback3_lines_triangles -#define GL_AMD_transform_feedback3_lines_triangles 1 -GLAPI int GLAD_GL_AMD_transform_feedback3_lines_triangles; -#endif -#ifndef GL_AMD_transform_feedback4 -#define GL_AMD_transform_feedback4 1 -GLAPI int GLAD_GL_AMD_transform_feedback4; -#endif -#ifndef GL_AMD_vertex_shader_layer -#define GL_AMD_vertex_shader_layer 1 -GLAPI int GLAD_GL_AMD_vertex_shader_layer; -#endif -#ifndef GL_AMD_vertex_shader_tessellator -#define GL_AMD_vertex_shader_tessellator 1 -GLAPI int GLAD_GL_AMD_vertex_shader_tessellator; -typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC)(GLfloat factor); -GLAPI PFNGLTESSELLATIONFACTORAMDPROC glad_glTessellationFactorAMD; -#define glTessellationFactorAMD glad_glTessellationFactorAMD -typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC)(GLenum mode); -GLAPI PFNGLTESSELLATIONMODEAMDPROC glad_glTessellationModeAMD; -#define glTessellationModeAMD glad_glTessellationModeAMD -#endif -#ifndef GL_AMD_vertex_shader_viewport_index -#define GL_AMD_vertex_shader_viewport_index 1 -GLAPI int GLAD_GL_AMD_vertex_shader_viewport_index; -#endif -#ifndef GL_APPLE_aux_depth_stencil -#define GL_APPLE_aux_depth_stencil 1 -GLAPI int GLAD_GL_APPLE_aux_depth_stencil; -#endif -#ifndef GL_APPLE_client_storage -#define GL_APPLE_client_storage 1 -GLAPI int GLAD_GL_APPLE_client_storage; -#endif -#ifndef GL_APPLE_element_array -#define GL_APPLE_element_array 1 -GLAPI int GLAD_GL_APPLE_element_array; -typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC)(GLenum type, const void *pointer); -GLAPI PFNGLELEMENTPOINTERAPPLEPROC glad_glElementPointerAPPLE; -#define glElementPointerAPPLE glad_glElementPointerAPPLE -typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC)(GLenum mode, GLint first, GLsizei count); -GLAPI PFNGLDRAWELEMENTARRAYAPPLEPROC glad_glDrawElementArrayAPPLE; -#define glDrawElementArrayAPPLE glad_glDrawElementArrayAPPLE -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC)(GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count); -GLAPI PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC glad_glDrawRangeElementArrayAPPLE; -#define glDrawRangeElementArrayAPPLE glad_glDrawRangeElementArrayAPPLE -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC)(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); -GLAPI PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC glad_glMultiDrawElementArrayAPPLE; -#define glMultiDrawElementArrayAPPLE glad_glMultiDrawElementArrayAPPLE -typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC)(GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount); -GLAPI PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC glad_glMultiDrawRangeElementArrayAPPLE; -#define glMultiDrawRangeElementArrayAPPLE glad_glMultiDrawRangeElementArrayAPPLE -#endif -#ifndef GL_APPLE_fence -#define GL_APPLE_fence 1 -GLAPI int GLAD_GL_APPLE_fence; -typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC)(GLsizei n, GLuint *fences); -GLAPI PFNGLGENFENCESAPPLEPROC glad_glGenFencesAPPLE; -#define glGenFencesAPPLE glad_glGenFencesAPPLE -typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC)(GLsizei n, const GLuint *fences); -GLAPI PFNGLDELETEFENCESAPPLEPROC glad_glDeleteFencesAPPLE; -#define glDeleteFencesAPPLE glad_glDeleteFencesAPPLE -typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC)(GLuint fence); -GLAPI PFNGLSETFENCEAPPLEPROC glad_glSetFenceAPPLE; -#define glSetFenceAPPLE glad_glSetFenceAPPLE -typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC)(GLuint fence); -GLAPI PFNGLISFENCEAPPLEPROC glad_glIsFenceAPPLE; -#define glIsFenceAPPLE glad_glIsFenceAPPLE -typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC)(GLuint fence); -GLAPI PFNGLTESTFENCEAPPLEPROC glad_glTestFenceAPPLE; -#define glTestFenceAPPLE glad_glTestFenceAPPLE -typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC)(GLuint fence); -GLAPI PFNGLFINISHFENCEAPPLEPROC glad_glFinishFenceAPPLE; -#define glFinishFenceAPPLE glad_glFinishFenceAPPLE -typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC)(GLenum object, GLuint name); -GLAPI PFNGLTESTOBJECTAPPLEPROC glad_glTestObjectAPPLE; -#define glTestObjectAPPLE glad_glTestObjectAPPLE -typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC)(GLenum object, GLint name); -GLAPI PFNGLFINISHOBJECTAPPLEPROC glad_glFinishObjectAPPLE; -#define glFinishObjectAPPLE glad_glFinishObjectAPPLE -#endif -#ifndef GL_APPLE_float_pixels -#define GL_APPLE_float_pixels 1 -GLAPI int GLAD_GL_APPLE_float_pixels; -#endif -#ifndef GL_APPLE_flush_buffer_range -#define GL_APPLE_flush_buffer_range 1 -GLAPI int GLAD_GL_APPLE_flush_buffer_range; -typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLBUFFERPARAMETERIAPPLEPROC glad_glBufferParameteriAPPLE; -#define glBufferParameteriAPPLE glad_glBufferParameteriAPPLE -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC)(GLenum target, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC glad_glFlushMappedBufferRangeAPPLE; -#define glFlushMappedBufferRangeAPPLE glad_glFlushMappedBufferRangeAPPLE -#endif -#ifndef GL_APPLE_object_purgeable -#define GL_APPLE_object_purgeable 1 -GLAPI int GLAD_GL_APPLE_object_purgeable; -typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC)(GLenum objectType, GLuint name, GLenum option); -GLAPI PFNGLOBJECTPURGEABLEAPPLEPROC glad_glObjectPurgeableAPPLE; -#define glObjectPurgeableAPPLE glad_glObjectPurgeableAPPLE -typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC)(GLenum objectType, GLuint name, GLenum option); -GLAPI PFNGLOBJECTUNPURGEABLEAPPLEPROC glad_glObjectUnpurgeableAPPLE; -#define glObjectUnpurgeableAPPLE glad_glObjectUnpurgeableAPPLE -typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC)(GLenum objectType, GLuint name, GLenum pname, GLint *params); -GLAPI PFNGLGETOBJECTPARAMETERIVAPPLEPROC glad_glGetObjectParameterivAPPLE; -#define glGetObjectParameterivAPPLE glad_glGetObjectParameterivAPPLE -#endif -#ifndef GL_APPLE_rgb_422 -#define GL_APPLE_rgb_422 1 -GLAPI int GLAD_GL_APPLE_rgb_422; -#endif -#ifndef GL_APPLE_row_bytes -#define GL_APPLE_row_bytes 1 -GLAPI int GLAD_GL_APPLE_row_bytes; -#endif -#ifndef GL_APPLE_specular_vector -#define GL_APPLE_specular_vector 1 -GLAPI int GLAD_GL_APPLE_specular_vector; -#endif -#ifndef GL_APPLE_texture_range -#define GL_APPLE_texture_range 1 -GLAPI int GLAD_GL_APPLE_texture_range; -typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC)(GLenum target, GLsizei length, const void *pointer); -GLAPI PFNGLTEXTURERANGEAPPLEPROC glad_glTextureRangeAPPLE; -#define glTextureRangeAPPLE glad_glTextureRangeAPPLE -typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC)(GLenum target, GLenum pname, void **params); -GLAPI PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC glad_glGetTexParameterPointervAPPLE; -#define glGetTexParameterPointervAPPLE glad_glGetTexParameterPointervAPPLE -#endif -#ifndef GL_APPLE_transform_hint -#define GL_APPLE_transform_hint 1 -GLAPI int GLAD_GL_APPLE_transform_hint; -#endif -#ifndef GL_APPLE_vertex_array_object -#define GL_APPLE_vertex_array_object 1 -GLAPI int GLAD_GL_APPLE_vertex_array_object; -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC)(GLuint array); -GLAPI PFNGLBINDVERTEXARRAYAPPLEPROC glad_glBindVertexArrayAPPLE; -#define glBindVertexArrayAPPLE glad_glBindVertexArrayAPPLE -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC)(GLsizei n, const GLuint *arrays); -GLAPI PFNGLDELETEVERTEXARRAYSAPPLEPROC glad_glDeleteVertexArraysAPPLE; -#define glDeleteVertexArraysAPPLE glad_glDeleteVertexArraysAPPLE -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC)(GLsizei n, GLuint *arrays); -GLAPI PFNGLGENVERTEXARRAYSAPPLEPROC glad_glGenVertexArraysAPPLE; -#define glGenVertexArraysAPPLE glad_glGenVertexArraysAPPLE -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC)(GLuint array); -GLAPI PFNGLISVERTEXARRAYAPPLEPROC glad_glIsVertexArrayAPPLE; -#define glIsVertexArrayAPPLE glad_glIsVertexArrayAPPLE -#endif -#ifndef GL_APPLE_vertex_array_range -#define GL_APPLE_vertex_array_range 1 -GLAPI int GLAD_GL_APPLE_vertex_array_range; -typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC)(GLsizei length, void *pointer); -GLAPI PFNGLVERTEXARRAYRANGEAPPLEPROC glad_glVertexArrayRangeAPPLE; -#define glVertexArrayRangeAPPLE glad_glVertexArrayRangeAPPLE -typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC)(GLsizei length, void *pointer); -GLAPI PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC glad_glFlushVertexArrayRangeAPPLE; -#define glFlushVertexArrayRangeAPPLE glad_glFlushVertexArrayRangeAPPLE -typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC)(GLenum pname, GLint param); -GLAPI PFNGLVERTEXARRAYPARAMETERIAPPLEPROC glad_glVertexArrayParameteriAPPLE; -#define glVertexArrayParameteriAPPLE glad_glVertexArrayParameteriAPPLE -#endif -#ifndef GL_APPLE_vertex_program_evaluators -#define GL_APPLE_vertex_program_evaluators 1 -GLAPI int GLAD_GL_APPLE_vertex_program_evaluators; -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC)(GLuint index, GLenum pname); -GLAPI PFNGLENABLEVERTEXATTRIBAPPLEPROC glad_glEnableVertexAttribAPPLE; -#define glEnableVertexAttribAPPLE glad_glEnableVertexAttribAPPLE -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC)(GLuint index, GLenum pname); -GLAPI PFNGLDISABLEVERTEXATTRIBAPPLEPROC glad_glDisableVertexAttribAPPLE; -#define glDisableVertexAttribAPPLE glad_glDisableVertexAttribAPPLE -typedef GLboolean (APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC)(GLuint index, GLenum pname); -GLAPI PFNGLISVERTEXATTRIBENABLEDAPPLEPROC glad_glIsVertexAttribEnabledAPPLE; -#define glIsVertexAttribEnabledAPPLE glad_glIsVertexAttribEnabledAPPLE -typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC)(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); -GLAPI PFNGLMAPVERTEXATTRIB1DAPPLEPROC glad_glMapVertexAttrib1dAPPLE; -#define glMapVertexAttrib1dAPPLE glad_glMapVertexAttrib1dAPPLE -typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC)(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); -GLAPI PFNGLMAPVERTEXATTRIB1FAPPLEPROC glad_glMapVertexAttrib1fAPPLE; -#define glMapVertexAttrib1fAPPLE glad_glMapVertexAttrib1fAPPLE -typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC)(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); -GLAPI PFNGLMAPVERTEXATTRIB2DAPPLEPROC glad_glMapVertexAttrib2dAPPLE; -#define glMapVertexAttrib2dAPPLE glad_glMapVertexAttrib2dAPPLE -typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC)(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); -GLAPI PFNGLMAPVERTEXATTRIB2FAPPLEPROC glad_glMapVertexAttrib2fAPPLE; -#define glMapVertexAttrib2fAPPLE glad_glMapVertexAttrib2fAPPLE -#endif -#ifndef GL_APPLE_ycbcr_422 -#define GL_APPLE_ycbcr_422 1 -GLAPI int GLAD_GL_APPLE_ycbcr_422; -#endif -#ifndef GL_ARB_ES2_compatibility -#define GL_ARB_ES2_compatibility 1 -GLAPI int GLAD_GL_ARB_ES2_compatibility; -#endif -#ifndef GL_ARB_ES3_1_compatibility -#define GL_ARB_ES3_1_compatibility 1 -GLAPI int GLAD_GL_ARB_ES3_1_compatibility; -#endif -#ifndef GL_ARB_ES3_2_compatibility -#define GL_ARB_ES3_2_compatibility 1 -GLAPI int GLAD_GL_ARB_ES3_2_compatibility; -typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXARBPROC)(GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); -GLAPI PFNGLPRIMITIVEBOUNDINGBOXARBPROC glad_glPrimitiveBoundingBoxARB; -#define glPrimitiveBoundingBoxARB glad_glPrimitiveBoundingBoxARB -#endif -#ifndef GL_ARB_ES3_compatibility -#define GL_ARB_ES3_compatibility 1 -GLAPI int GLAD_GL_ARB_ES3_compatibility; -#endif -#ifndef GL_ARB_arrays_of_arrays -#define GL_ARB_arrays_of_arrays 1 -GLAPI int GLAD_GL_ARB_arrays_of_arrays; -#endif -#ifndef GL_ARB_base_instance -#define GL_ARB_base_instance 1 -GLAPI int GLAD_GL_ARB_base_instance; -#endif -#ifndef GL_ARB_bindless_texture -#define GL_ARB_bindless_texture 1 -GLAPI int GLAD_GL_ARB_bindless_texture; -typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC)(GLuint texture); -GLAPI PFNGLGETTEXTUREHANDLEARBPROC glad_glGetTextureHandleARB; -#define glGetTextureHandleARB glad_glGetTextureHandleARB -typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC)(GLuint texture, GLuint sampler); -GLAPI PFNGLGETTEXTURESAMPLERHANDLEARBPROC glad_glGetTextureSamplerHandleARB; -#define glGetTextureSamplerHandleARB glad_glGetTextureSamplerHandleARB -typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC)(GLuint64 handle); -GLAPI PFNGLMAKETEXTUREHANDLERESIDENTARBPROC glad_glMakeTextureHandleResidentARB; -#define glMakeTextureHandleResidentARB glad_glMakeTextureHandleResidentARB -typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC)(GLuint64 handle); -GLAPI PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC glad_glMakeTextureHandleNonResidentARB; -#define glMakeTextureHandleNonResidentARB glad_glMakeTextureHandleNonResidentARB -typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC)(GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); -GLAPI PFNGLGETIMAGEHANDLEARBPROC glad_glGetImageHandleARB; -#define glGetImageHandleARB glad_glGetImageHandleARB -typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC)(GLuint64 handle, GLenum access); -GLAPI PFNGLMAKEIMAGEHANDLERESIDENTARBPROC glad_glMakeImageHandleResidentARB; -#define glMakeImageHandleResidentARB glad_glMakeImageHandleResidentARB -typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC)(GLuint64 handle); -GLAPI PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC glad_glMakeImageHandleNonResidentARB; -#define glMakeImageHandleNonResidentARB glad_glMakeImageHandleNonResidentARB -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC)(GLint location, GLuint64 value); -GLAPI PFNGLUNIFORMHANDLEUI64ARBPROC glad_glUniformHandleui64ARB; -#define glUniformHandleui64ARB glad_glUniformHandleui64ARB -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC)(GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLUNIFORMHANDLEUI64VARBPROC glad_glUniformHandleui64vARB; -#define glUniformHandleui64vARB glad_glUniformHandleui64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC)(GLuint program, GLint location, GLuint64 value); -GLAPI PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC glad_glProgramUniformHandleui64ARB; -#define glProgramUniformHandleui64ARB glad_glProgramUniformHandleui64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLuint64 *values); -GLAPI PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC glad_glProgramUniformHandleui64vARB; -#define glProgramUniformHandleui64vARB glad_glProgramUniformHandleui64vARB -typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC)(GLuint64 handle); -GLAPI PFNGLISTEXTUREHANDLERESIDENTARBPROC glad_glIsTextureHandleResidentARB; -#define glIsTextureHandleResidentARB glad_glIsTextureHandleResidentARB -typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC)(GLuint64 handle); -GLAPI PFNGLISIMAGEHANDLERESIDENTARBPROC glad_glIsImageHandleResidentARB; -#define glIsImageHandleResidentARB glad_glIsImageHandleResidentARB -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC)(GLuint index, GLuint64EXT x); -GLAPI PFNGLVERTEXATTRIBL1UI64ARBPROC glad_glVertexAttribL1ui64ARB; -#define glVertexAttribL1ui64ARB glad_glVertexAttribL1ui64ARB -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC)(GLuint index, const GLuint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL1UI64VARBPROC glad_glVertexAttribL1ui64vARB; -#define glVertexAttribL1ui64vARB glad_glVertexAttribL1ui64vARB -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC)(GLuint index, GLenum pname, GLuint64EXT *params); -GLAPI PFNGLGETVERTEXATTRIBLUI64VARBPROC glad_glGetVertexAttribLui64vARB; -#define glGetVertexAttribLui64vARB glad_glGetVertexAttribLui64vARB -#endif -#ifndef GL_ARB_blend_func_extended -#define GL_ARB_blend_func_extended 1 -GLAPI int GLAD_GL_ARB_blend_func_extended; -#endif -#ifndef GL_ARB_buffer_storage -#define GL_ARB_buffer_storage 1 -GLAPI int GLAD_GL_ARB_buffer_storage; -#endif -#ifndef GL_ARB_cl_event -#define GL_ARB_cl_event 1 -GLAPI int GLAD_GL_ARB_cl_event; -typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC)(struct _cl_context *context, struct _cl_event *event, GLbitfield flags); -GLAPI PFNGLCREATESYNCFROMCLEVENTARBPROC glad_glCreateSyncFromCLeventARB; -#define glCreateSyncFromCLeventARB glad_glCreateSyncFromCLeventARB -#endif -#ifndef GL_ARB_clear_buffer_object -#define GL_ARB_clear_buffer_object 1 -GLAPI int GLAD_GL_ARB_clear_buffer_object; -#endif -#ifndef GL_ARB_clear_texture -#define GL_ARB_clear_texture 1 -GLAPI int GLAD_GL_ARB_clear_texture; -#endif -#ifndef GL_ARB_clip_control -#define GL_ARB_clip_control 1 -GLAPI int GLAD_GL_ARB_clip_control; -#endif -#ifndef GL_ARB_color_buffer_float -#define GL_ARB_color_buffer_float 1 -GLAPI int GLAD_GL_ARB_color_buffer_float; -typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC)(GLenum target, GLenum clamp); -GLAPI PFNGLCLAMPCOLORARBPROC glad_glClampColorARB; -#define glClampColorARB glad_glClampColorARB -#endif -#ifndef GL_ARB_compatibility -#define GL_ARB_compatibility 1 -GLAPI int GLAD_GL_ARB_compatibility; -#endif -#ifndef GL_ARB_compressed_texture_pixel_storage -#define GL_ARB_compressed_texture_pixel_storage 1 -GLAPI int GLAD_GL_ARB_compressed_texture_pixel_storage; -#endif -#ifndef GL_ARB_compute_shader -#define GL_ARB_compute_shader 1 -GLAPI int GLAD_GL_ARB_compute_shader; -#endif -#ifndef GL_ARB_compute_variable_group_size -#define GL_ARB_compute_variable_group_size 1 -GLAPI int GLAD_GL_ARB_compute_variable_group_size; -typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC)(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z); -GLAPI PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC glad_glDispatchComputeGroupSizeARB; -#define glDispatchComputeGroupSizeARB glad_glDispatchComputeGroupSizeARB -#endif -#ifndef GL_ARB_conditional_render_inverted -#define GL_ARB_conditional_render_inverted 1 -GLAPI int GLAD_GL_ARB_conditional_render_inverted; -#endif -#ifndef GL_ARB_conservative_depth -#define GL_ARB_conservative_depth 1 -GLAPI int GLAD_GL_ARB_conservative_depth; -#endif -#ifndef GL_ARB_copy_buffer -#define GL_ARB_copy_buffer 1 -GLAPI int GLAD_GL_ARB_copy_buffer; -#endif -#ifndef GL_ARB_copy_image -#define GL_ARB_copy_image 1 -GLAPI int GLAD_GL_ARB_copy_image; -#endif -#ifndef GL_ARB_cull_distance -#define GL_ARB_cull_distance 1 -GLAPI int GLAD_GL_ARB_cull_distance; -#endif -#ifndef GL_ARB_debug_output -#define GL_ARB_debug_output 1 -GLAPI int GLAD_GL_ARB_debug_output; -typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI PFNGLDEBUGMESSAGECONTROLARBPROC glad_glDebugMessageControlARB; -#define glDebugMessageControlARB glad_glDebugMessageControlARB -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -GLAPI PFNGLDEBUGMESSAGEINSERTARBPROC glad_glDebugMessageInsertARB; -#define glDebugMessageInsertARB glad_glDebugMessageInsertARB -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC)(GLDEBUGPROCARB callback, const void *userParam); -GLAPI PFNGLDEBUGMESSAGECALLBACKARBPROC glad_glDebugMessageCallbackARB; -#define glDebugMessageCallbackARB glad_glDebugMessageCallbackARB -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC)(GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -GLAPI PFNGLGETDEBUGMESSAGELOGARBPROC glad_glGetDebugMessageLogARB; -#define glGetDebugMessageLogARB glad_glGetDebugMessageLogARB -#endif -#ifndef GL_ARB_depth_buffer_float -#define GL_ARB_depth_buffer_float 1 -GLAPI int GLAD_GL_ARB_depth_buffer_float; -#endif -#ifndef GL_ARB_depth_clamp -#define GL_ARB_depth_clamp 1 -GLAPI int GLAD_GL_ARB_depth_clamp; -#endif -#ifndef GL_ARB_depth_texture -#define GL_ARB_depth_texture 1 -GLAPI int GLAD_GL_ARB_depth_texture; -#endif -#ifndef GL_ARB_derivative_control -#define GL_ARB_derivative_control 1 -GLAPI int GLAD_GL_ARB_derivative_control; -#endif -#ifndef GL_ARB_direct_state_access -#define GL_ARB_direct_state_access 1 -GLAPI int GLAD_GL_ARB_direct_state_access; -#endif -#ifndef GL_ARB_draw_buffers -#define GL_ARB_draw_buffers 1 -GLAPI int GLAD_GL_ARB_draw_buffers; -typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC)(GLsizei n, const GLenum *bufs); -GLAPI PFNGLDRAWBUFFERSARBPROC glad_glDrawBuffersARB; -#define glDrawBuffersARB glad_glDrawBuffersARB -#endif -#ifndef GL_ARB_draw_buffers_blend -#define GL_ARB_draw_buffers_blend 1 -GLAPI int GLAD_GL_ARB_draw_buffers_blend; -typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC)(GLuint buf, GLenum mode); -GLAPI PFNGLBLENDEQUATIONIARBPROC glad_glBlendEquationiARB; -#define glBlendEquationiARB glad_glBlendEquationiARB -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC)(GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI PFNGLBLENDEQUATIONSEPARATEIARBPROC glad_glBlendEquationSeparateiARB; -#define glBlendEquationSeparateiARB glad_glBlendEquationSeparateiARB -typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC)(GLuint buf, GLenum src, GLenum dst); -GLAPI PFNGLBLENDFUNCIARBPROC glad_glBlendFunciARB; -#define glBlendFunciARB glad_glBlendFunciARB -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEIARBPROC glad_glBlendFuncSeparateiARB; -#define glBlendFuncSeparateiARB glad_glBlendFuncSeparateiARB -#endif -#ifndef GL_ARB_draw_elements_base_vertex -#define GL_ARB_draw_elements_base_vertex 1 -GLAPI int GLAD_GL_ARB_draw_elements_base_vertex; -#endif -#ifndef GL_ARB_draw_indirect -#define GL_ARB_draw_indirect 1 -GLAPI int GLAD_GL_ARB_draw_indirect; -#endif -#ifndef GL_ARB_draw_instanced -#define GL_ARB_draw_instanced 1 -GLAPI int GLAD_GL_ARB_draw_instanced; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC)(GLenum mode, GLint first, GLsizei count, GLsizei primcount); -GLAPI PFNGLDRAWARRAYSINSTANCEDARBPROC glad_glDrawArraysInstancedARB; -#define glDrawArraysInstancedARB glad_glDrawArraysInstancedARB -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); -GLAPI PFNGLDRAWELEMENTSINSTANCEDARBPROC glad_glDrawElementsInstancedARB; -#define glDrawElementsInstancedARB glad_glDrawElementsInstancedARB -#endif -#ifndef GL_ARB_enhanced_layouts -#define GL_ARB_enhanced_layouts 1 -GLAPI int GLAD_GL_ARB_enhanced_layouts; -#endif -#ifndef GL_ARB_explicit_attrib_location -#define GL_ARB_explicit_attrib_location 1 -GLAPI int GLAD_GL_ARB_explicit_attrib_location; -#endif -#ifndef GL_ARB_explicit_uniform_location -#define GL_ARB_explicit_uniform_location 1 -GLAPI int GLAD_GL_ARB_explicit_uniform_location; -#endif -#ifndef GL_ARB_fragment_coord_conventions -#define GL_ARB_fragment_coord_conventions 1 -GLAPI int GLAD_GL_ARB_fragment_coord_conventions; -#endif -#ifndef GL_ARB_fragment_layer_viewport -#define GL_ARB_fragment_layer_viewport 1 -GLAPI int GLAD_GL_ARB_fragment_layer_viewport; -#endif -#ifndef GL_ARB_fragment_program -#define GL_ARB_fragment_program 1 -GLAPI int GLAD_GL_ARB_fragment_program; -typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC)(GLenum target, GLenum format, GLsizei len, const void *string); -GLAPI PFNGLPROGRAMSTRINGARBPROC glad_glProgramStringARB; -#define glProgramStringARB glad_glProgramStringARB -typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC)(GLenum target, GLuint program); -GLAPI PFNGLBINDPROGRAMARBPROC glad_glBindProgramARB; -#define glBindProgramARB glad_glBindProgramARB -typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC)(GLsizei n, const GLuint *programs); -GLAPI PFNGLDELETEPROGRAMSARBPROC glad_glDeleteProgramsARB; -#define glDeleteProgramsARB glad_glDeleteProgramsARB -typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC)(GLsizei n, GLuint *programs); -GLAPI PFNGLGENPROGRAMSARBPROC glad_glGenProgramsARB; -#define glGenProgramsARB glad_glGenProgramsARB -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLPROGRAMENVPARAMETER4DARBPROC glad_glProgramEnvParameter4dARB; -#define glProgramEnvParameter4dARB glad_glProgramEnvParameter4dARB -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC)(GLenum target, GLuint index, const GLdouble *params); -GLAPI PFNGLPROGRAMENVPARAMETER4DVARBPROC glad_glProgramEnvParameter4dvARB; -#define glProgramEnvParameter4dvARB glad_glProgramEnvParameter4dvARB -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLPROGRAMENVPARAMETER4FARBPROC glad_glProgramEnvParameter4fARB; -#define glProgramEnvParameter4fARB glad_glProgramEnvParameter4fARB -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC)(GLenum target, GLuint index, const GLfloat *params); -GLAPI PFNGLPROGRAMENVPARAMETER4FVARBPROC glad_glProgramEnvParameter4fvARB; -#define glProgramEnvParameter4fvARB glad_glProgramEnvParameter4fvARB -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLPROGRAMLOCALPARAMETER4DARBPROC glad_glProgramLocalParameter4dARB; -#define glProgramLocalParameter4dARB glad_glProgramLocalParameter4dARB -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC)(GLenum target, GLuint index, const GLdouble *params); -GLAPI PFNGLPROGRAMLOCALPARAMETER4DVARBPROC glad_glProgramLocalParameter4dvARB; -#define glProgramLocalParameter4dvARB glad_glProgramLocalParameter4dvARB -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLPROGRAMLOCALPARAMETER4FARBPROC glad_glProgramLocalParameter4fARB; -#define glProgramLocalParameter4fARB glad_glProgramLocalParameter4fARB -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC)(GLenum target, GLuint index, const GLfloat *params); -GLAPI PFNGLPROGRAMLOCALPARAMETER4FVARBPROC glad_glProgramLocalParameter4fvARB; -#define glProgramLocalParameter4fvARB glad_glProgramLocalParameter4fvARB -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC)(GLenum target, GLuint index, GLdouble *params); -GLAPI PFNGLGETPROGRAMENVPARAMETERDVARBPROC glad_glGetProgramEnvParameterdvARB; -#define glGetProgramEnvParameterdvARB glad_glGetProgramEnvParameterdvARB -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC)(GLenum target, GLuint index, GLfloat *params); -GLAPI PFNGLGETPROGRAMENVPARAMETERFVARBPROC glad_glGetProgramEnvParameterfvARB; -#define glGetProgramEnvParameterfvARB glad_glGetProgramEnvParameterfvARB -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC)(GLenum target, GLuint index, GLdouble *params); -GLAPI PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC glad_glGetProgramLocalParameterdvARB; -#define glGetProgramLocalParameterdvARB glad_glGetProgramLocalParameterdvARB -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC)(GLenum target, GLuint index, GLfloat *params); -GLAPI PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC glad_glGetProgramLocalParameterfvARB; -#define glGetProgramLocalParameterfvARB glad_glGetProgramLocalParameterfvARB -typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETPROGRAMIVARBPROC glad_glGetProgramivARB; -#define glGetProgramivARB glad_glGetProgramivARB -typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC)(GLenum target, GLenum pname, void *string); -GLAPI PFNGLGETPROGRAMSTRINGARBPROC glad_glGetProgramStringARB; -#define glGetProgramStringARB glad_glGetProgramStringARB -typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC)(GLuint program); -GLAPI PFNGLISPROGRAMARBPROC glad_glIsProgramARB; -#define glIsProgramARB glad_glIsProgramARB -#endif -#ifndef GL_ARB_fragment_program_shadow -#define GL_ARB_fragment_program_shadow 1 -GLAPI int GLAD_GL_ARB_fragment_program_shadow; -#endif -#ifndef GL_ARB_fragment_shader -#define GL_ARB_fragment_shader 1 -GLAPI int GLAD_GL_ARB_fragment_shader; -#endif -#ifndef GL_ARB_fragment_shader_interlock -#define GL_ARB_fragment_shader_interlock 1 -GLAPI int GLAD_GL_ARB_fragment_shader_interlock; -#endif -#ifndef GL_ARB_framebuffer_no_attachments -#define GL_ARB_framebuffer_no_attachments 1 -GLAPI int GLAD_GL_ARB_framebuffer_no_attachments; -#endif -#ifndef GL_ARB_framebuffer_object -#define GL_ARB_framebuffer_object 1 -GLAPI int GLAD_GL_ARB_framebuffer_object; -#endif -#ifndef GL_ARB_framebuffer_sRGB -#define GL_ARB_framebuffer_sRGB 1 -GLAPI int GLAD_GL_ARB_framebuffer_sRGB; -#endif -#ifndef GL_ARB_geometry_shader4 -#define GL_ARB_geometry_shader4 1 -GLAPI int GLAD_GL_ARB_geometry_shader4; -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC)(GLuint program, GLenum pname, GLint value); -GLAPI PFNGLPROGRAMPARAMETERIARBPROC glad_glProgramParameteriARB; -#define glProgramParameteriARB glad_glProgramParameteriARB -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTUREARBPROC glad_glFramebufferTextureARB; -#define glFramebufferTextureARB glad_glFramebufferTextureARB -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI PFNGLFRAMEBUFFERTEXTURELAYERARBPROC glad_glFramebufferTextureLayerARB; -#define glFramebufferTextureLayerARB glad_glFramebufferTextureLayerARB -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -GLAPI PFNGLFRAMEBUFFERTEXTUREFACEARBPROC glad_glFramebufferTextureFaceARB; -#define glFramebufferTextureFaceARB glad_glFramebufferTextureFaceARB -#endif -#ifndef GL_ARB_get_program_binary -#define GL_ARB_get_program_binary 1 -GLAPI int GLAD_GL_ARB_get_program_binary; -#endif -#ifndef GL_ARB_get_texture_sub_image -#define GL_ARB_get_texture_sub_image 1 -GLAPI int GLAD_GL_ARB_get_texture_sub_image; -#endif -#ifndef GL_ARB_gl_spirv -#define GL_ARB_gl_spirv 1 -GLAPI int GLAD_GL_ARB_gl_spirv; -typedef void (APIENTRYP PFNGLSPECIALIZESHADERARBPROC)(GLuint shader, const GLchar *pEntryPoint, GLuint numSpecializationConstants, const GLuint *pConstantIndex, const GLuint *pConstantValue); -GLAPI PFNGLSPECIALIZESHADERARBPROC glad_glSpecializeShaderARB; -#define glSpecializeShaderARB glad_glSpecializeShaderARB -#endif -#ifndef GL_ARB_gpu_shader5 -#define GL_ARB_gpu_shader5 1 -GLAPI int GLAD_GL_ARB_gpu_shader5; -#endif -#ifndef GL_ARB_gpu_shader_fp64 -#define GL_ARB_gpu_shader_fp64 1 -GLAPI int GLAD_GL_ARB_gpu_shader_fp64; -#endif -#ifndef GL_ARB_gpu_shader_int64 -#define GL_ARB_gpu_shader_int64 1 -GLAPI int GLAD_GL_ARB_gpu_shader_int64; -typedef void (APIENTRYP PFNGLUNIFORM1I64ARBPROC)(GLint location, GLint64 x); -GLAPI PFNGLUNIFORM1I64ARBPROC glad_glUniform1i64ARB; -#define glUniform1i64ARB glad_glUniform1i64ARB -typedef void (APIENTRYP PFNGLUNIFORM2I64ARBPROC)(GLint location, GLint64 x, GLint64 y); -GLAPI PFNGLUNIFORM2I64ARBPROC glad_glUniform2i64ARB; -#define glUniform2i64ARB glad_glUniform2i64ARB -typedef void (APIENTRYP PFNGLUNIFORM3I64ARBPROC)(GLint location, GLint64 x, GLint64 y, GLint64 z); -GLAPI PFNGLUNIFORM3I64ARBPROC glad_glUniform3i64ARB; -#define glUniform3i64ARB glad_glUniform3i64ARB -typedef void (APIENTRYP PFNGLUNIFORM4I64ARBPROC)(GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); -GLAPI PFNGLUNIFORM4I64ARBPROC glad_glUniform4i64ARB; -#define glUniform4i64ARB glad_glUniform4i64ARB -typedef void (APIENTRYP PFNGLUNIFORM1I64VARBPROC)(GLint location, GLsizei count, const GLint64 *value); -GLAPI PFNGLUNIFORM1I64VARBPROC glad_glUniform1i64vARB; -#define glUniform1i64vARB glad_glUniform1i64vARB -typedef void (APIENTRYP PFNGLUNIFORM2I64VARBPROC)(GLint location, GLsizei count, const GLint64 *value); -GLAPI PFNGLUNIFORM2I64VARBPROC glad_glUniform2i64vARB; -#define glUniform2i64vARB glad_glUniform2i64vARB -typedef void (APIENTRYP PFNGLUNIFORM3I64VARBPROC)(GLint location, GLsizei count, const GLint64 *value); -GLAPI PFNGLUNIFORM3I64VARBPROC glad_glUniform3i64vARB; -#define glUniform3i64vARB glad_glUniform3i64vARB -typedef void (APIENTRYP PFNGLUNIFORM4I64VARBPROC)(GLint location, GLsizei count, const GLint64 *value); -GLAPI PFNGLUNIFORM4I64VARBPROC glad_glUniform4i64vARB; -#define glUniform4i64vARB glad_glUniform4i64vARB -typedef void (APIENTRYP PFNGLUNIFORM1UI64ARBPROC)(GLint location, GLuint64 x); -GLAPI PFNGLUNIFORM1UI64ARBPROC glad_glUniform1ui64ARB; -#define glUniform1ui64ARB glad_glUniform1ui64ARB -typedef void (APIENTRYP PFNGLUNIFORM2UI64ARBPROC)(GLint location, GLuint64 x, GLuint64 y); -GLAPI PFNGLUNIFORM2UI64ARBPROC glad_glUniform2ui64ARB; -#define glUniform2ui64ARB glad_glUniform2ui64ARB -typedef void (APIENTRYP PFNGLUNIFORM3UI64ARBPROC)(GLint location, GLuint64 x, GLuint64 y, GLuint64 z); -GLAPI PFNGLUNIFORM3UI64ARBPROC glad_glUniform3ui64ARB; -#define glUniform3ui64ARB glad_glUniform3ui64ARB -typedef void (APIENTRYP PFNGLUNIFORM4UI64ARBPROC)(GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); -GLAPI PFNGLUNIFORM4UI64ARBPROC glad_glUniform4ui64ARB; -#define glUniform4ui64ARB glad_glUniform4ui64ARB -typedef void (APIENTRYP PFNGLUNIFORM1UI64VARBPROC)(GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLUNIFORM1UI64VARBPROC glad_glUniform1ui64vARB; -#define glUniform1ui64vARB glad_glUniform1ui64vARB -typedef void (APIENTRYP PFNGLUNIFORM2UI64VARBPROC)(GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLUNIFORM2UI64VARBPROC glad_glUniform2ui64vARB; -#define glUniform2ui64vARB glad_glUniform2ui64vARB -typedef void (APIENTRYP PFNGLUNIFORM3UI64VARBPROC)(GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLUNIFORM3UI64VARBPROC glad_glUniform3ui64vARB; -#define glUniform3ui64vARB glad_glUniform3ui64vARB -typedef void (APIENTRYP PFNGLUNIFORM4UI64VARBPROC)(GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLUNIFORM4UI64VARBPROC glad_glUniform4ui64vARB; -#define glUniform4ui64vARB glad_glUniform4ui64vARB -typedef void (APIENTRYP PFNGLGETUNIFORMI64VARBPROC)(GLuint program, GLint location, GLint64 *params); -GLAPI PFNGLGETUNIFORMI64VARBPROC glad_glGetUniformi64vARB; -#define glGetUniformi64vARB glad_glGetUniformi64vARB -typedef void (APIENTRYP PFNGLGETUNIFORMUI64VARBPROC)(GLuint program, GLint location, GLuint64 *params); -GLAPI PFNGLGETUNIFORMUI64VARBPROC glad_glGetUniformui64vARB; -#define glGetUniformui64vARB glad_glGetUniformui64vARB -typedef void (APIENTRYP PFNGLGETNUNIFORMI64VARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLint64 *params); -GLAPI PFNGLGETNUNIFORMI64VARBPROC glad_glGetnUniformi64vARB; -#define glGetnUniformi64vARB glad_glGetnUniformi64vARB -typedef void (APIENTRYP PFNGLGETNUNIFORMUI64VARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLuint64 *params); -GLAPI PFNGLGETNUNIFORMUI64VARBPROC glad_glGetnUniformui64vARB; -#define glGetnUniformui64vARB glad_glGetnUniformui64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64ARBPROC)(GLuint program, GLint location, GLint64 x); -GLAPI PFNGLPROGRAMUNIFORM1I64ARBPROC glad_glProgramUniform1i64ARB; -#define glProgramUniform1i64ARB glad_glProgramUniform1i64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64ARBPROC)(GLuint program, GLint location, GLint64 x, GLint64 y); -GLAPI PFNGLPROGRAMUNIFORM2I64ARBPROC glad_glProgramUniform2i64ARB; -#define glProgramUniform2i64ARB glad_glProgramUniform2i64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64ARBPROC)(GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z); -GLAPI PFNGLPROGRAMUNIFORM3I64ARBPROC glad_glProgramUniform3i64ARB; -#define glProgramUniform3i64ARB glad_glProgramUniform3i64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64ARBPROC)(GLuint program, GLint location, GLint64 x, GLint64 y, GLint64 z, GLint64 w); -GLAPI PFNGLPROGRAMUNIFORM4I64ARBPROC glad_glProgramUniform4i64ARB; -#define glProgramUniform4i64ARB glad_glProgramUniform4i64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLint64 *value); -GLAPI PFNGLPROGRAMUNIFORM1I64VARBPROC glad_glProgramUniform1i64vARB; -#define glProgramUniform1i64vARB glad_glProgramUniform1i64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLint64 *value); -GLAPI PFNGLPROGRAMUNIFORM2I64VARBPROC glad_glProgramUniform2i64vARB; -#define glProgramUniform2i64vARB glad_glProgramUniform2i64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLint64 *value); -GLAPI PFNGLPROGRAMUNIFORM3I64VARBPROC glad_glProgramUniform3i64vARB; -#define glProgramUniform3i64vARB glad_glProgramUniform3i64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLint64 *value); -GLAPI PFNGLPROGRAMUNIFORM4I64VARBPROC glad_glProgramUniform4i64vARB; -#define glProgramUniform4i64vARB glad_glProgramUniform4i64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64ARBPROC)(GLuint program, GLint location, GLuint64 x); -GLAPI PFNGLPROGRAMUNIFORM1UI64ARBPROC glad_glProgramUniform1ui64ARB; -#define glProgramUniform1ui64ARB glad_glProgramUniform1ui64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64ARBPROC)(GLuint program, GLint location, GLuint64 x, GLuint64 y); -GLAPI PFNGLPROGRAMUNIFORM2UI64ARBPROC glad_glProgramUniform2ui64ARB; -#define glProgramUniform2ui64ARB glad_glProgramUniform2ui64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64ARBPROC)(GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z); -GLAPI PFNGLPROGRAMUNIFORM3UI64ARBPROC glad_glProgramUniform3ui64ARB; -#define glProgramUniform3ui64ARB glad_glProgramUniform3ui64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64ARBPROC)(GLuint program, GLint location, GLuint64 x, GLuint64 y, GLuint64 z, GLuint64 w); -GLAPI PFNGLPROGRAMUNIFORM4UI64ARBPROC glad_glProgramUniform4ui64ARB; -#define glProgramUniform4ui64ARB glad_glProgramUniform4ui64ARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLPROGRAMUNIFORM1UI64VARBPROC glad_glProgramUniform1ui64vARB; -#define glProgramUniform1ui64vARB glad_glProgramUniform1ui64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLPROGRAMUNIFORM2UI64VARBPROC glad_glProgramUniform2ui64vARB; -#define glProgramUniform2ui64vARB glad_glProgramUniform2ui64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLPROGRAMUNIFORM3UI64VARBPROC glad_glProgramUniform3ui64vARB; -#define glProgramUniform3ui64vARB glad_glProgramUniform3ui64vARB -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VARBPROC)(GLuint program, GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLPROGRAMUNIFORM4UI64VARBPROC glad_glProgramUniform4ui64vARB; -#define glProgramUniform4ui64vARB glad_glProgramUniform4ui64vARB -#endif -#ifndef GL_ARB_half_float_pixel -#define GL_ARB_half_float_pixel 1 -GLAPI int GLAD_GL_ARB_half_float_pixel; -#endif -#ifndef GL_ARB_half_float_vertex -#define GL_ARB_half_float_vertex 1 -GLAPI int GLAD_GL_ARB_half_float_vertex; -#endif -#ifndef GL_ARB_imaging -#define GL_ARB_imaging 1 -GLAPI int GLAD_GL_ARB_imaging; -typedef void (APIENTRYP PFNGLCOLORTABLEPROC)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table); -GLAPI PFNGLCOLORTABLEPROC glad_glColorTable; -#define glColorTable glad_glColorTable -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLCOLORTABLEPARAMETERFVPROC glad_glColorTableParameterfv; -#define glColorTableParameterfv glad_glColorTableParameterfv -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLCOLORTABLEPARAMETERIVPROC glad_glColorTableParameteriv; -#define glColorTableParameteriv glad_glColorTableParameteriv -typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYCOLORTABLEPROC glad_glCopyColorTable; -#define glCopyColorTable glad_glCopyColorTable -typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC)(GLenum target, GLenum format, GLenum type, void *table); -GLAPI PFNGLGETCOLORTABLEPROC glad_glGetColorTable; -#define glGetColorTable glad_glGetColorTable -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETCOLORTABLEPARAMETERFVPROC glad_glGetColorTableParameterfv; -#define glGetColorTableParameterfv glad_glGetColorTableParameterfv -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETCOLORTABLEPARAMETERIVPROC glad_glGetColorTableParameteriv; -#define glGetColorTableParameteriv glad_glGetColorTableParameteriv -typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC)(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCOLORSUBTABLEPROC glad_glColorSubTable; -#define glColorSubTable glad_glColorSubTable -typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC)(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYCOLORSUBTABLEPROC glad_glCopyColorSubTable; -#define glCopyColorSubTable glad_glCopyColorSubTable -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image); -GLAPI PFNGLCONVOLUTIONFILTER1DPROC glad_glConvolutionFilter1D; -#define glConvolutionFilter1D glad_glConvolutionFilter1D -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image); -GLAPI PFNGLCONVOLUTIONFILTER2DPROC glad_glConvolutionFilter2D; -#define glConvolutionFilter2D glad_glConvolutionFilter2D -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC)(GLenum target, GLenum pname, GLfloat params); -GLAPI PFNGLCONVOLUTIONPARAMETERFPROC glad_glConvolutionParameterf; -#define glConvolutionParameterf glad_glConvolutionParameterf -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLCONVOLUTIONPARAMETERFVPROC glad_glConvolutionParameterfv; -#define glConvolutionParameterfv glad_glConvolutionParameterfv -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC)(GLenum target, GLenum pname, GLint params); -GLAPI PFNGLCONVOLUTIONPARAMETERIPROC glad_glConvolutionParameteri; -#define glConvolutionParameteri glad_glConvolutionParameteri -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLCONVOLUTIONPARAMETERIVPROC glad_glConvolutionParameteriv; -#define glConvolutionParameteriv glad_glConvolutionParameteriv -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYCONVOLUTIONFILTER1DPROC glad_glCopyConvolutionFilter1D; -#define glCopyConvolutionFilter1D glad_glCopyConvolutionFilter1D -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYCONVOLUTIONFILTER2DPROC glad_glCopyConvolutionFilter2D; -#define glCopyConvolutionFilter2D glad_glCopyConvolutionFilter2D -typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC)(GLenum target, GLenum format, GLenum type, void *image); -GLAPI PFNGLGETCONVOLUTIONFILTERPROC glad_glGetConvolutionFilter; -#define glGetConvolutionFilter glad_glGetConvolutionFilter -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETCONVOLUTIONPARAMETERFVPROC glad_glGetConvolutionParameterfv; -#define glGetConvolutionParameterfv glad_glGetConvolutionParameterfv -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETCONVOLUTIONPARAMETERIVPROC glad_glGetConvolutionParameteriv; -#define glGetConvolutionParameteriv glad_glGetConvolutionParameteriv -typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC)(GLenum target, GLenum format, GLenum type, void *row, void *column, void *span); -GLAPI PFNGLGETSEPARABLEFILTERPROC glad_glGetSeparableFilter; -#define glGetSeparableFilter glad_glGetSeparableFilter -typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column); -GLAPI PFNGLSEPARABLEFILTER2DPROC glad_glSeparableFilter2D; -#define glSeparableFilter2D glad_glSeparableFilter2D -typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -GLAPI PFNGLGETHISTOGRAMPROC glad_glGetHistogram; -#define glGetHistogram glad_glGetHistogram -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETHISTOGRAMPARAMETERFVPROC glad_glGetHistogramParameterfv; -#define glGetHistogramParameterfv glad_glGetHistogramParameterfv -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETHISTOGRAMPARAMETERIVPROC glad_glGetHistogramParameteriv; -#define glGetHistogramParameteriv glad_glGetHistogramParameteriv -typedef void (APIENTRYP PFNGLGETMINMAXPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -GLAPI PFNGLGETMINMAXPROC glad_glGetMinmax; -#define glGetMinmax glad_glGetMinmax -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMINMAXPARAMETERFVPROC glad_glGetMinmaxParameterfv; -#define glGetMinmaxParameterfv glad_glGetMinmaxParameterfv -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETMINMAXPARAMETERIVPROC glad_glGetMinmaxParameteriv; -#define glGetMinmaxParameteriv glad_glGetMinmaxParameteriv -typedef void (APIENTRYP PFNGLHISTOGRAMPROC)(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -GLAPI PFNGLHISTOGRAMPROC glad_glHistogram; -#define glHistogram glad_glHistogram -typedef void (APIENTRYP PFNGLMINMAXPROC)(GLenum target, GLenum internalformat, GLboolean sink); -GLAPI PFNGLMINMAXPROC glad_glMinmax; -#define glMinmax glad_glMinmax -typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC)(GLenum target); -GLAPI PFNGLRESETHISTOGRAMPROC glad_glResetHistogram; -#define glResetHistogram glad_glResetHistogram -typedef void (APIENTRYP PFNGLRESETMINMAXPROC)(GLenum target); -GLAPI PFNGLRESETMINMAXPROC glad_glResetMinmax; -#define glResetMinmax glad_glResetMinmax -#endif -#ifndef GL_ARB_indirect_parameters -#define GL_ARB_indirect_parameters 1 -GLAPI int GLAD_GL_ARB_indirect_parameters; -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC)(GLenum mode, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC glad_glMultiDrawArraysIndirectCountARB; -#define glMultiDrawArraysIndirectCountARB glad_glMultiDrawArraysIndirectCountARB -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC)(GLenum mode, GLenum type, const void *indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC glad_glMultiDrawElementsIndirectCountARB; -#define glMultiDrawElementsIndirectCountARB glad_glMultiDrawElementsIndirectCountARB -#endif -#ifndef GL_ARB_instanced_arrays -#define GL_ARB_instanced_arrays 1 -GLAPI int GLAD_GL_ARB_instanced_arrays; -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC)(GLuint index, GLuint divisor); -GLAPI PFNGLVERTEXATTRIBDIVISORARBPROC glad_glVertexAttribDivisorARB; -#define glVertexAttribDivisorARB glad_glVertexAttribDivisorARB -#endif -#ifndef GL_ARB_internalformat_query -#define GL_ARB_internalformat_query 1 -GLAPI int GLAD_GL_ARB_internalformat_query; -#endif -#ifndef GL_ARB_internalformat_query2 -#define GL_ARB_internalformat_query2 1 -GLAPI int GLAD_GL_ARB_internalformat_query2; -#endif -#ifndef GL_ARB_invalidate_subdata -#define GL_ARB_invalidate_subdata 1 -GLAPI int GLAD_GL_ARB_invalidate_subdata; -#endif -#ifndef GL_ARB_map_buffer_alignment -#define GL_ARB_map_buffer_alignment 1 -GLAPI int GLAD_GL_ARB_map_buffer_alignment; -#endif -#ifndef GL_ARB_map_buffer_range -#define GL_ARB_map_buffer_range 1 -GLAPI int GLAD_GL_ARB_map_buffer_range; -#endif -#ifndef GL_ARB_matrix_palette -#define GL_ARB_matrix_palette 1 -GLAPI int GLAD_GL_ARB_matrix_palette; -typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC)(GLint index); -GLAPI PFNGLCURRENTPALETTEMATRIXARBPROC glad_glCurrentPaletteMatrixARB; -#define glCurrentPaletteMatrixARB glad_glCurrentPaletteMatrixARB -typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC)(GLint size, const GLubyte *indices); -GLAPI PFNGLMATRIXINDEXUBVARBPROC glad_glMatrixIndexubvARB; -#define glMatrixIndexubvARB glad_glMatrixIndexubvARB -typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC)(GLint size, const GLushort *indices); -GLAPI PFNGLMATRIXINDEXUSVARBPROC glad_glMatrixIndexusvARB; -#define glMatrixIndexusvARB glad_glMatrixIndexusvARB -typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC)(GLint size, const GLuint *indices); -GLAPI PFNGLMATRIXINDEXUIVARBPROC glad_glMatrixIndexuivARB; -#define glMatrixIndexuivARB glad_glMatrixIndexuivARB -typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLMATRIXINDEXPOINTERARBPROC glad_glMatrixIndexPointerARB; -#define glMatrixIndexPointerARB glad_glMatrixIndexPointerARB -#endif -#ifndef GL_ARB_multi_bind -#define GL_ARB_multi_bind 1 -GLAPI int GLAD_GL_ARB_multi_bind; -#endif -#ifndef GL_ARB_multi_draw_indirect -#define GL_ARB_multi_draw_indirect 1 -GLAPI int GLAD_GL_ARB_multi_draw_indirect; -#endif -#ifndef GL_ARB_multisample -#define GL_ARB_multisample 1 -GLAPI int GLAD_GL_ARB_multisample; -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC)(GLfloat value, GLboolean invert); -GLAPI PFNGLSAMPLECOVERAGEARBPROC glad_glSampleCoverageARB; -#define glSampleCoverageARB glad_glSampleCoverageARB -#endif -#ifndef GL_ARB_multitexture -#define GL_ARB_multitexture 1 -GLAPI int GLAD_GL_ARB_multitexture; -typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC)(GLenum texture); -GLAPI PFNGLACTIVETEXTUREARBPROC glad_glActiveTextureARB; -#define glActiveTextureARB glad_glActiveTextureARB -typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC)(GLenum texture); -GLAPI PFNGLCLIENTACTIVETEXTUREARBPROC glad_glClientActiveTextureARB; -#define glClientActiveTextureARB glad_glClientActiveTextureARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC)(GLenum target, GLdouble s); -GLAPI PFNGLMULTITEXCOORD1DARBPROC glad_glMultiTexCoord1dARB; -#define glMultiTexCoord1dARB glad_glMultiTexCoord1dARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC)(GLenum target, const GLdouble *v); -GLAPI PFNGLMULTITEXCOORD1DVARBPROC glad_glMultiTexCoord1dvARB; -#define glMultiTexCoord1dvARB glad_glMultiTexCoord1dvARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC)(GLenum target, GLfloat s); -GLAPI PFNGLMULTITEXCOORD1FARBPROC glad_glMultiTexCoord1fARB; -#define glMultiTexCoord1fARB glad_glMultiTexCoord1fARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC)(GLenum target, const GLfloat *v); -GLAPI PFNGLMULTITEXCOORD1FVARBPROC glad_glMultiTexCoord1fvARB; -#define glMultiTexCoord1fvARB glad_glMultiTexCoord1fvARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC)(GLenum target, GLint s); -GLAPI PFNGLMULTITEXCOORD1IARBPROC glad_glMultiTexCoord1iARB; -#define glMultiTexCoord1iARB glad_glMultiTexCoord1iARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC)(GLenum target, const GLint *v); -GLAPI PFNGLMULTITEXCOORD1IVARBPROC glad_glMultiTexCoord1ivARB; -#define glMultiTexCoord1ivARB glad_glMultiTexCoord1ivARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC)(GLenum target, GLshort s); -GLAPI PFNGLMULTITEXCOORD1SARBPROC glad_glMultiTexCoord1sARB; -#define glMultiTexCoord1sARB glad_glMultiTexCoord1sARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC)(GLenum target, const GLshort *v); -GLAPI PFNGLMULTITEXCOORD1SVARBPROC glad_glMultiTexCoord1svARB; -#define glMultiTexCoord1svARB glad_glMultiTexCoord1svARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC)(GLenum target, GLdouble s, GLdouble t); -GLAPI PFNGLMULTITEXCOORD2DARBPROC glad_glMultiTexCoord2dARB; -#define glMultiTexCoord2dARB glad_glMultiTexCoord2dARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC)(GLenum target, const GLdouble *v); -GLAPI PFNGLMULTITEXCOORD2DVARBPROC glad_glMultiTexCoord2dvARB; -#define glMultiTexCoord2dvARB glad_glMultiTexCoord2dvARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC)(GLenum target, GLfloat s, GLfloat t); -GLAPI PFNGLMULTITEXCOORD2FARBPROC glad_glMultiTexCoord2fARB; -#define glMultiTexCoord2fARB glad_glMultiTexCoord2fARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC)(GLenum target, const GLfloat *v); -GLAPI PFNGLMULTITEXCOORD2FVARBPROC glad_glMultiTexCoord2fvARB; -#define glMultiTexCoord2fvARB glad_glMultiTexCoord2fvARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC)(GLenum target, GLint s, GLint t); -GLAPI PFNGLMULTITEXCOORD2IARBPROC glad_glMultiTexCoord2iARB; -#define glMultiTexCoord2iARB glad_glMultiTexCoord2iARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC)(GLenum target, const GLint *v); -GLAPI PFNGLMULTITEXCOORD2IVARBPROC glad_glMultiTexCoord2ivARB; -#define glMultiTexCoord2ivARB glad_glMultiTexCoord2ivARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC)(GLenum target, GLshort s, GLshort t); -GLAPI PFNGLMULTITEXCOORD2SARBPROC glad_glMultiTexCoord2sARB; -#define glMultiTexCoord2sARB glad_glMultiTexCoord2sARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC)(GLenum target, const GLshort *v); -GLAPI PFNGLMULTITEXCOORD2SVARBPROC glad_glMultiTexCoord2svARB; -#define glMultiTexCoord2svARB glad_glMultiTexCoord2svARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r); -GLAPI PFNGLMULTITEXCOORD3DARBPROC glad_glMultiTexCoord3dARB; -#define glMultiTexCoord3dARB glad_glMultiTexCoord3dARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC)(GLenum target, const GLdouble *v); -GLAPI PFNGLMULTITEXCOORD3DVARBPROC glad_glMultiTexCoord3dvARB; -#define glMultiTexCoord3dvARB glad_glMultiTexCoord3dvARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r); -GLAPI PFNGLMULTITEXCOORD3FARBPROC glad_glMultiTexCoord3fARB; -#define glMultiTexCoord3fARB glad_glMultiTexCoord3fARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC)(GLenum target, const GLfloat *v); -GLAPI PFNGLMULTITEXCOORD3FVARBPROC glad_glMultiTexCoord3fvARB; -#define glMultiTexCoord3fvARB glad_glMultiTexCoord3fvARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC)(GLenum target, GLint s, GLint t, GLint r); -GLAPI PFNGLMULTITEXCOORD3IARBPROC glad_glMultiTexCoord3iARB; -#define glMultiTexCoord3iARB glad_glMultiTexCoord3iARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC)(GLenum target, const GLint *v); -GLAPI PFNGLMULTITEXCOORD3IVARBPROC glad_glMultiTexCoord3ivARB; -#define glMultiTexCoord3ivARB glad_glMultiTexCoord3ivARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC)(GLenum target, GLshort s, GLshort t, GLshort r); -GLAPI PFNGLMULTITEXCOORD3SARBPROC glad_glMultiTexCoord3sARB; -#define glMultiTexCoord3sARB glad_glMultiTexCoord3sARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC)(GLenum target, const GLshort *v); -GLAPI PFNGLMULTITEXCOORD3SVARBPROC glad_glMultiTexCoord3svARB; -#define glMultiTexCoord3svARB glad_glMultiTexCoord3svARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI PFNGLMULTITEXCOORD4DARBPROC glad_glMultiTexCoord4dARB; -#define glMultiTexCoord4dARB glad_glMultiTexCoord4dARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC)(GLenum target, const GLdouble *v); -GLAPI PFNGLMULTITEXCOORD4DVARBPROC glad_glMultiTexCoord4dvARB; -#define glMultiTexCoord4dvARB glad_glMultiTexCoord4dvARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI PFNGLMULTITEXCOORD4FARBPROC glad_glMultiTexCoord4fARB; -#define glMultiTexCoord4fARB glad_glMultiTexCoord4fARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC)(GLenum target, const GLfloat *v); -GLAPI PFNGLMULTITEXCOORD4FVARBPROC glad_glMultiTexCoord4fvARB; -#define glMultiTexCoord4fvARB glad_glMultiTexCoord4fvARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC)(GLenum target, GLint s, GLint t, GLint r, GLint q); -GLAPI PFNGLMULTITEXCOORD4IARBPROC glad_glMultiTexCoord4iARB; -#define glMultiTexCoord4iARB glad_glMultiTexCoord4iARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC)(GLenum target, const GLint *v); -GLAPI PFNGLMULTITEXCOORD4IVARBPROC glad_glMultiTexCoord4ivARB; -#define glMultiTexCoord4ivARB glad_glMultiTexCoord4ivARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI PFNGLMULTITEXCOORD4SARBPROC glad_glMultiTexCoord4sARB; -#define glMultiTexCoord4sARB glad_glMultiTexCoord4sARB -typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC)(GLenum target, const GLshort *v); -GLAPI PFNGLMULTITEXCOORD4SVARBPROC glad_glMultiTexCoord4svARB; -#define glMultiTexCoord4svARB glad_glMultiTexCoord4svARB -#endif -#ifndef GL_ARB_occlusion_query -#define GL_ARB_occlusion_query 1 -GLAPI int GLAD_GL_ARB_occlusion_query; -typedef void (APIENTRYP PFNGLGENQUERIESARBPROC)(GLsizei n, GLuint *ids); -GLAPI PFNGLGENQUERIESARBPROC glad_glGenQueriesARB; -#define glGenQueriesARB glad_glGenQueriesARB -typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC)(GLsizei n, const GLuint *ids); -GLAPI PFNGLDELETEQUERIESARBPROC glad_glDeleteQueriesARB; -#define glDeleteQueriesARB glad_glDeleteQueriesARB -typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC)(GLuint id); -GLAPI PFNGLISQUERYARBPROC glad_glIsQueryARB; -#define glIsQueryARB glad_glIsQueryARB -typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC)(GLenum target, GLuint id); -GLAPI PFNGLBEGINQUERYARBPROC glad_glBeginQueryARB; -#define glBeginQueryARB glad_glBeginQueryARB -typedef void (APIENTRYP PFNGLENDQUERYARBPROC)(GLenum target); -GLAPI PFNGLENDQUERYARBPROC glad_glEndQueryARB; -#define glEndQueryARB glad_glEndQueryARB -typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETQUERYIVARBPROC glad_glGetQueryivARB; -#define glGetQueryivARB glad_glGetQueryivARB -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC)(GLuint id, GLenum pname, GLint *params); -GLAPI PFNGLGETQUERYOBJECTIVARBPROC glad_glGetQueryObjectivARB; -#define glGetQueryObjectivARB glad_glGetQueryObjectivARB -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC)(GLuint id, GLenum pname, GLuint *params); -GLAPI PFNGLGETQUERYOBJECTUIVARBPROC glad_glGetQueryObjectuivARB; -#define glGetQueryObjectuivARB glad_glGetQueryObjectuivARB -#endif -#ifndef GL_ARB_occlusion_query2 -#define GL_ARB_occlusion_query2 1 -GLAPI int GLAD_GL_ARB_occlusion_query2; -#endif -#ifndef GL_ARB_parallel_shader_compile -#define GL_ARB_parallel_shader_compile 1 -GLAPI int GLAD_GL_ARB_parallel_shader_compile; -typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSARBPROC)(GLuint count); -GLAPI PFNGLMAXSHADERCOMPILERTHREADSARBPROC glad_glMaxShaderCompilerThreadsARB; -#define glMaxShaderCompilerThreadsARB glad_glMaxShaderCompilerThreadsARB -#endif -#ifndef GL_ARB_pipeline_statistics_query -#define GL_ARB_pipeline_statistics_query 1 -GLAPI int GLAD_GL_ARB_pipeline_statistics_query; -#endif -#ifndef GL_ARB_pixel_buffer_object -#define GL_ARB_pixel_buffer_object 1 -GLAPI int GLAD_GL_ARB_pixel_buffer_object; -#endif -#ifndef GL_ARB_point_parameters -#define GL_ARB_point_parameters 1 -GLAPI int GLAD_GL_ARB_point_parameters; -typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPOINTPARAMETERFARBPROC glad_glPointParameterfARB; -#define glPointParameterfARB glad_glPointParameterfARB -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLPOINTPARAMETERFVARBPROC glad_glPointParameterfvARB; -#define glPointParameterfvARB glad_glPointParameterfvARB -#endif -#ifndef GL_ARB_point_sprite -#define GL_ARB_point_sprite 1 -GLAPI int GLAD_GL_ARB_point_sprite; -#endif -#ifndef GL_ARB_polygon_offset_clamp -#define GL_ARB_polygon_offset_clamp 1 -GLAPI int GLAD_GL_ARB_polygon_offset_clamp; -#endif -#ifndef GL_ARB_post_depth_coverage -#define GL_ARB_post_depth_coverage 1 -GLAPI int GLAD_GL_ARB_post_depth_coverage; -#endif -#ifndef GL_ARB_program_interface_query -#define GL_ARB_program_interface_query 1 -GLAPI int GLAD_GL_ARB_program_interface_query; -#endif -#ifndef GL_ARB_provoking_vertex -#define GL_ARB_provoking_vertex 1 -GLAPI int GLAD_GL_ARB_provoking_vertex; -#endif -#ifndef GL_ARB_query_buffer_object -#define GL_ARB_query_buffer_object 1 -GLAPI int GLAD_GL_ARB_query_buffer_object; -#endif -#ifndef GL_ARB_robust_buffer_access_behavior -#define GL_ARB_robust_buffer_access_behavior 1 -GLAPI int GLAD_GL_ARB_robust_buffer_access_behavior; -#endif -#ifndef GL_ARB_robustness -#define GL_ARB_robustness 1 -GLAPI int GLAD_GL_ARB_robustness; -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC)(void); -GLAPI PFNGLGETGRAPHICSRESETSTATUSARBPROC glad_glGetGraphicsResetStatusARB; -#define glGetGraphicsResetStatusARB glad_glGetGraphicsResetStatusARB -typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC)(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img); -GLAPI PFNGLGETNTEXIMAGEARBPROC glad_glGetnTexImageARB; -#define glGetnTexImageARB glad_glGetnTexImageARB -typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); -GLAPI PFNGLREADNPIXELSARBPROC glad_glReadnPixelsARB; -#define glReadnPixelsARB glad_glReadnPixelsARB -typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC)(GLenum target, GLint lod, GLsizei bufSize, void *img); -GLAPI PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC glad_glGetnCompressedTexImageARB; -#define glGetnCompressedTexImageARB glad_glGetnCompressedTexImageARB -typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -GLAPI PFNGLGETNUNIFORMFVARBPROC glad_glGetnUniformfvARB; -#define glGetnUniformfvARB glad_glGetnUniformfvARB -typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLint *params); -GLAPI PFNGLGETNUNIFORMIVARBPROC glad_glGetnUniformivARB; -#define glGetnUniformivARB glad_glGetnUniformivARB -typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLuint *params); -GLAPI PFNGLGETNUNIFORMUIVARBPROC glad_glGetnUniformuivARB; -#define glGetnUniformuivARB glad_glGetnUniformuivARB -typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC)(GLuint program, GLint location, GLsizei bufSize, GLdouble *params); -GLAPI PFNGLGETNUNIFORMDVARBPROC glad_glGetnUniformdvARB; -#define glGetnUniformdvARB glad_glGetnUniformdvARB -typedef void (APIENTRYP PFNGLGETNMAPDVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLdouble *v); -GLAPI PFNGLGETNMAPDVARBPROC glad_glGetnMapdvARB; -#define glGetnMapdvARB glad_glGetnMapdvARB -typedef void (APIENTRYP PFNGLGETNMAPFVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLfloat *v); -GLAPI PFNGLGETNMAPFVARBPROC glad_glGetnMapfvARB; -#define glGetnMapfvARB glad_glGetnMapfvARB -typedef void (APIENTRYP PFNGLGETNMAPIVARBPROC)(GLenum target, GLenum query, GLsizei bufSize, GLint *v); -GLAPI PFNGLGETNMAPIVARBPROC glad_glGetnMapivARB; -#define glGetnMapivARB glad_glGetnMapivARB -typedef void (APIENTRYP PFNGLGETNPIXELMAPFVARBPROC)(GLenum map, GLsizei bufSize, GLfloat *values); -GLAPI PFNGLGETNPIXELMAPFVARBPROC glad_glGetnPixelMapfvARB; -#define glGetnPixelMapfvARB glad_glGetnPixelMapfvARB -typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVARBPROC)(GLenum map, GLsizei bufSize, GLuint *values); -GLAPI PFNGLGETNPIXELMAPUIVARBPROC glad_glGetnPixelMapuivARB; -#define glGetnPixelMapuivARB glad_glGetnPixelMapuivARB -typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVARBPROC)(GLenum map, GLsizei bufSize, GLushort *values); -GLAPI PFNGLGETNPIXELMAPUSVARBPROC glad_glGetnPixelMapusvARB; -#define glGetnPixelMapusvARB glad_glGetnPixelMapusvARB -typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEARBPROC)(GLsizei bufSize, GLubyte *pattern); -GLAPI PFNGLGETNPOLYGONSTIPPLEARBPROC glad_glGetnPolygonStippleARB; -#define glGetnPolygonStippleARB glad_glGetnPolygonStippleARB -typedef void (APIENTRYP PFNGLGETNCOLORTABLEARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table); -GLAPI PFNGLGETNCOLORTABLEARBPROC glad_glGetnColorTableARB; -#define glGetnColorTableARB glad_glGetnColorTableARB -typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image); -GLAPI PFNGLGETNCONVOLUTIONFILTERARBPROC glad_glGetnConvolutionFilterARB; -#define glGetnConvolutionFilterARB glad_glGetnConvolutionFilterARB -typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERARBPROC)(GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span); -GLAPI PFNGLGETNSEPARABLEFILTERARBPROC glad_glGetnSeparableFilterARB; -#define glGetnSeparableFilterARB glad_glGetnSeparableFilterARB -typedef void (APIENTRYP PFNGLGETNHISTOGRAMARBPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -GLAPI PFNGLGETNHISTOGRAMARBPROC glad_glGetnHistogramARB; -#define glGetnHistogramARB glad_glGetnHistogramARB -typedef void (APIENTRYP PFNGLGETNMINMAXARBPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values); -GLAPI PFNGLGETNMINMAXARBPROC glad_glGetnMinmaxARB; -#define glGetnMinmaxARB glad_glGetnMinmaxARB -#endif -#ifndef GL_ARB_robustness_isolation -#define GL_ARB_robustness_isolation 1 -GLAPI int GLAD_GL_ARB_robustness_isolation; -#endif -#ifndef GL_ARB_sample_locations -#define GL_ARB_sample_locations 1 -GLAPI int GLAD_GL_ARB_sample_locations; -typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC)(GLenum target, GLuint start, GLsizei count, const GLfloat *v); -GLAPI PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC glad_glFramebufferSampleLocationsfvARB; -#define glFramebufferSampleLocationsfvARB glad_glFramebufferSampleLocationsfvARB -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC)(GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); -GLAPI PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC glad_glNamedFramebufferSampleLocationsfvARB; -#define glNamedFramebufferSampleLocationsfvARB glad_glNamedFramebufferSampleLocationsfvARB -typedef void (APIENTRYP PFNGLEVALUATEDEPTHVALUESARBPROC)(void); -GLAPI PFNGLEVALUATEDEPTHVALUESARBPROC glad_glEvaluateDepthValuesARB; -#define glEvaluateDepthValuesARB glad_glEvaluateDepthValuesARB -#endif -#ifndef GL_ARB_sample_shading -#define GL_ARB_sample_shading 1 -GLAPI int GLAD_GL_ARB_sample_shading; -typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC)(GLfloat value); -GLAPI PFNGLMINSAMPLESHADINGARBPROC glad_glMinSampleShadingARB; -#define glMinSampleShadingARB glad_glMinSampleShadingARB -#endif -#ifndef GL_ARB_sampler_objects -#define GL_ARB_sampler_objects 1 -GLAPI int GLAD_GL_ARB_sampler_objects; -#endif -#ifndef GL_ARB_seamless_cube_map -#define GL_ARB_seamless_cube_map 1 -GLAPI int GLAD_GL_ARB_seamless_cube_map; -#endif -#ifndef GL_ARB_seamless_cubemap_per_texture -#define GL_ARB_seamless_cubemap_per_texture 1 -GLAPI int GLAD_GL_ARB_seamless_cubemap_per_texture; -#endif -#ifndef GL_ARB_separate_shader_objects -#define GL_ARB_separate_shader_objects 1 -GLAPI int GLAD_GL_ARB_separate_shader_objects; -#endif -#ifndef GL_ARB_shader_atomic_counter_ops -#define GL_ARB_shader_atomic_counter_ops 1 -GLAPI int GLAD_GL_ARB_shader_atomic_counter_ops; -#endif -#ifndef GL_ARB_shader_atomic_counters -#define GL_ARB_shader_atomic_counters 1 -GLAPI int GLAD_GL_ARB_shader_atomic_counters; -#endif -#ifndef GL_ARB_shader_ballot -#define GL_ARB_shader_ballot 1 -GLAPI int GLAD_GL_ARB_shader_ballot; -#endif -#ifndef GL_ARB_shader_bit_encoding -#define GL_ARB_shader_bit_encoding 1 -GLAPI int GLAD_GL_ARB_shader_bit_encoding; -#endif -#ifndef GL_ARB_shader_clock -#define GL_ARB_shader_clock 1 -GLAPI int GLAD_GL_ARB_shader_clock; -#endif -#ifndef GL_ARB_shader_draw_parameters -#define GL_ARB_shader_draw_parameters 1 -GLAPI int GLAD_GL_ARB_shader_draw_parameters; -#endif -#ifndef GL_ARB_shader_group_vote -#define GL_ARB_shader_group_vote 1 -GLAPI int GLAD_GL_ARB_shader_group_vote; -#endif -#ifndef GL_ARB_shader_image_load_store -#define GL_ARB_shader_image_load_store 1 -GLAPI int GLAD_GL_ARB_shader_image_load_store; -#endif -#ifndef GL_ARB_shader_image_size -#define GL_ARB_shader_image_size 1 -GLAPI int GLAD_GL_ARB_shader_image_size; -#endif -#ifndef GL_ARB_shader_objects -#define GL_ARB_shader_objects 1 -GLAPI int GLAD_GL_ARB_shader_objects; -typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC)(GLhandleARB obj); -GLAPI PFNGLDELETEOBJECTARBPROC glad_glDeleteObjectARB; -#define glDeleteObjectARB glad_glDeleteObjectARB -typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC)(GLenum pname); -GLAPI PFNGLGETHANDLEARBPROC glad_glGetHandleARB; -#define glGetHandleARB glad_glGetHandleARB -typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC)(GLhandleARB containerObj, GLhandleARB attachedObj); -GLAPI PFNGLDETACHOBJECTARBPROC glad_glDetachObjectARB; -#define glDetachObjectARB glad_glDetachObjectARB -typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC)(GLenum shaderType); -GLAPI PFNGLCREATESHADEROBJECTARBPROC glad_glCreateShaderObjectARB; -#define glCreateShaderObjectARB glad_glCreateShaderObjectARB -typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC)(GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length); -GLAPI PFNGLSHADERSOURCEARBPROC glad_glShaderSourceARB; -#define glShaderSourceARB glad_glShaderSourceARB -typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC)(GLhandleARB shaderObj); -GLAPI PFNGLCOMPILESHADERARBPROC glad_glCompileShaderARB; -#define glCompileShaderARB glad_glCompileShaderARB -typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC)(void); -GLAPI PFNGLCREATEPROGRAMOBJECTARBPROC glad_glCreateProgramObjectARB; -#define glCreateProgramObjectARB glad_glCreateProgramObjectARB -typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC)(GLhandleARB containerObj, GLhandleARB obj); -GLAPI PFNGLATTACHOBJECTARBPROC glad_glAttachObjectARB; -#define glAttachObjectARB glad_glAttachObjectARB -typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC)(GLhandleARB programObj); -GLAPI PFNGLLINKPROGRAMARBPROC glad_glLinkProgramARB; -#define glLinkProgramARB glad_glLinkProgramARB -typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC)(GLhandleARB programObj); -GLAPI PFNGLUSEPROGRAMOBJECTARBPROC glad_glUseProgramObjectARB; -#define glUseProgramObjectARB glad_glUseProgramObjectARB -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC)(GLhandleARB programObj); -GLAPI PFNGLVALIDATEPROGRAMARBPROC glad_glValidateProgramARB; -#define glValidateProgramARB glad_glValidateProgramARB -typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC)(GLint location, GLfloat v0); -GLAPI PFNGLUNIFORM1FARBPROC glad_glUniform1fARB; -#define glUniform1fARB glad_glUniform1fARB -typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC)(GLint location, GLfloat v0, GLfloat v1); -GLAPI PFNGLUNIFORM2FARBPROC glad_glUniform2fARB; -#define glUniform2fARB glad_glUniform2fARB -typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI PFNGLUNIFORM3FARBPROC glad_glUniform3fARB; -#define glUniform3fARB glad_glUniform3fARB -typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI PFNGLUNIFORM4FARBPROC glad_glUniform4fARB; -#define glUniform4fARB glad_glUniform4fARB -typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC)(GLint location, GLint v0); -GLAPI PFNGLUNIFORM1IARBPROC glad_glUniform1iARB; -#define glUniform1iARB glad_glUniform1iARB -typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC)(GLint location, GLint v0, GLint v1); -GLAPI PFNGLUNIFORM2IARBPROC glad_glUniform2iARB; -#define glUniform2iARB glad_glUniform2iARB -typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC)(GLint location, GLint v0, GLint v1, GLint v2); -GLAPI PFNGLUNIFORM3IARBPROC glad_glUniform3iARB; -#define glUniform3iARB glad_glUniform3iARB -typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI PFNGLUNIFORM4IARBPROC glad_glUniform4iARB; -#define glUniform4iARB glad_glUniform4iARB -typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC)(GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLUNIFORM1FVARBPROC glad_glUniform1fvARB; -#define glUniform1fvARB glad_glUniform1fvARB -typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC)(GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLUNIFORM2FVARBPROC glad_glUniform2fvARB; -#define glUniform2fvARB glad_glUniform2fvARB -typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC)(GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLUNIFORM3FVARBPROC glad_glUniform3fvARB; -#define glUniform3fvARB glad_glUniform3fvARB -typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC)(GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLUNIFORM4FVARBPROC glad_glUniform4fvARB; -#define glUniform4fvARB glad_glUniform4fvARB -typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC)(GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLUNIFORM1IVARBPROC glad_glUniform1ivARB; -#define glUniform1ivARB glad_glUniform1ivARB -typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC)(GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLUNIFORM2IVARBPROC glad_glUniform2ivARB; -#define glUniform2ivARB glad_glUniform2ivARB -typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC)(GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLUNIFORM3IVARBPROC glad_glUniform3ivARB; -#define glUniform3ivARB glad_glUniform3ivARB -typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC)(GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLUNIFORM4IVARBPROC glad_glUniform4ivARB; -#define glUniform4ivARB glad_glUniform4ivARB -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX2FVARBPROC glad_glUniformMatrix2fvARB; -#define glUniformMatrix2fvARB glad_glUniformMatrix2fvARB -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX3FVARBPROC glad_glUniformMatrix3fvARB; -#define glUniformMatrix3fvARB glad_glUniformMatrix3fvARB -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX4FVARBPROC glad_glUniformMatrix4fvARB; -#define glUniformMatrix4fvARB glad_glUniformMatrix4fvARB -typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC)(GLhandleARB obj, GLenum pname, GLfloat *params); -GLAPI PFNGLGETOBJECTPARAMETERFVARBPROC glad_glGetObjectParameterfvARB; -#define glGetObjectParameterfvARB glad_glGetObjectParameterfvARB -typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC)(GLhandleARB obj, GLenum pname, GLint *params); -GLAPI PFNGLGETOBJECTPARAMETERIVARBPROC glad_glGetObjectParameterivARB; -#define glGetObjectParameterivARB glad_glGetObjectParameterivARB -typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC)(GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog); -GLAPI PFNGLGETINFOLOGARBPROC glad_glGetInfoLogARB; -#define glGetInfoLogARB glad_glGetInfoLogARB -typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC)(GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj); -GLAPI PFNGLGETATTACHEDOBJECTSARBPROC glad_glGetAttachedObjectsARB; -#define glGetAttachedObjectsARB glad_glGetAttachedObjectsARB -typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC)(GLhandleARB programObj, const GLcharARB *name); -GLAPI PFNGLGETUNIFORMLOCATIONARBPROC glad_glGetUniformLocationARB; -#define glGetUniformLocationARB glad_glGetUniformLocationARB -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC)(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); -GLAPI PFNGLGETACTIVEUNIFORMARBPROC glad_glGetActiveUniformARB; -#define glGetActiveUniformARB glad_glGetActiveUniformARB -typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC)(GLhandleARB programObj, GLint location, GLfloat *params); -GLAPI PFNGLGETUNIFORMFVARBPROC glad_glGetUniformfvARB; -#define glGetUniformfvARB glad_glGetUniformfvARB -typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC)(GLhandleARB programObj, GLint location, GLint *params); -GLAPI PFNGLGETUNIFORMIVARBPROC glad_glGetUniformivARB; -#define glGetUniformivARB glad_glGetUniformivARB -typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC)(GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source); -GLAPI PFNGLGETSHADERSOURCEARBPROC glad_glGetShaderSourceARB; -#define glGetShaderSourceARB glad_glGetShaderSourceARB -#endif -#ifndef GL_ARB_shader_precision -#define GL_ARB_shader_precision 1 -GLAPI int GLAD_GL_ARB_shader_precision; -#endif -#ifndef GL_ARB_shader_stencil_export -#define GL_ARB_shader_stencil_export 1 -GLAPI int GLAD_GL_ARB_shader_stencil_export; -#endif -#ifndef GL_ARB_shader_storage_buffer_object -#define GL_ARB_shader_storage_buffer_object 1 -GLAPI int GLAD_GL_ARB_shader_storage_buffer_object; -#endif -#ifndef GL_ARB_shader_subroutine -#define GL_ARB_shader_subroutine 1 -GLAPI int GLAD_GL_ARB_shader_subroutine; -#endif -#ifndef GL_ARB_shader_texture_image_samples -#define GL_ARB_shader_texture_image_samples 1 -GLAPI int GLAD_GL_ARB_shader_texture_image_samples; -#endif -#ifndef GL_ARB_shader_texture_lod -#define GL_ARB_shader_texture_lod 1 -GLAPI int GLAD_GL_ARB_shader_texture_lod; -#endif -#ifndef GL_ARB_shader_viewport_layer_array -#define GL_ARB_shader_viewport_layer_array 1 -GLAPI int GLAD_GL_ARB_shader_viewport_layer_array; -#endif -#ifndef GL_ARB_shading_language_100 -#define GL_ARB_shading_language_100 1 -GLAPI int GLAD_GL_ARB_shading_language_100; -#endif -#ifndef GL_ARB_shading_language_420pack -#define GL_ARB_shading_language_420pack 1 -GLAPI int GLAD_GL_ARB_shading_language_420pack; -#endif -#ifndef GL_ARB_shading_language_include -#define GL_ARB_shading_language_include 1 -GLAPI int GLAD_GL_ARB_shading_language_include; -typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC)(GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); -GLAPI PFNGLNAMEDSTRINGARBPROC glad_glNamedStringARB; -#define glNamedStringARB glad_glNamedStringARB -typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC)(GLint namelen, const GLchar *name); -GLAPI PFNGLDELETENAMEDSTRINGARBPROC glad_glDeleteNamedStringARB; -#define glDeleteNamedStringARB glad_glDeleteNamedStringARB -typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC)(GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length); -GLAPI PFNGLCOMPILESHADERINCLUDEARBPROC glad_glCompileShaderIncludeARB; -#define glCompileShaderIncludeARB glad_glCompileShaderIncludeARB -typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC)(GLint namelen, const GLchar *name); -GLAPI PFNGLISNAMEDSTRINGARBPROC glad_glIsNamedStringARB; -#define glIsNamedStringARB glad_glIsNamedStringARB -typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC)(GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); -GLAPI PFNGLGETNAMEDSTRINGARBPROC glad_glGetNamedStringARB; -#define glGetNamedStringARB glad_glGetNamedStringARB -typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC)(GLint namelen, const GLchar *name, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDSTRINGIVARBPROC glad_glGetNamedStringivARB; -#define glGetNamedStringivARB glad_glGetNamedStringivARB -#endif -#ifndef GL_ARB_shading_language_packing -#define GL_ARB_shading_language_packing 1 -GLAPI int GLAD_GL_ARB_shading_language_packing; -#endif -#ifndef GL_ARB_shadow -#define GL_ARB_shadow 1 -GLAPI int GLAD_GL_ARB_shadow; -#endif -#ifndef GL_ARB_shadow_ambient -#define GL_ARB_shadow_ambient 1 -GLAPI int GLAD_GL_ARB_shadow_ambient; -#endif -#ifndef GL_ARB_sparse_buffer -#define GL_ARB_sparse_buffer 1 -GLAPI int GLAD_GL_ARB_sparse_buffer; -typedef void (APIENTRYP PFNGLBUFFERPAGECOMMITMENTARBPROC)(GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit); -GLAPI PFNGLBUFFERPAGECOMMITMENTARBPROC glad_glBufferPageCommitmentARB; -#define glBufferPageCommitmentARB glad_glBufferPageCommitmentARB -typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); -GLAPI PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC glad_glNamedBufferPageCommitmentEXT; -#define glNamedBufferPageCommitmentEXT glad_glNamedBufferPageCommitmentEXT -typedef void (APIENTRYP PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, GLboolean commit); -GLAPI PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC glad_glNamedBufferPageCommitmentARB; -#define glNamedBufferPageCommitmentARB glad_glNamedBufferPageCommitmentARB -#endif -#ifndef GL_ARB_sparse_texture -#define GL_ARB_sparse_texture 1 -GLAPI int GLAD_GL_ARB_sparse_texture; -typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); -GLAPI PFNGLTEXPAGECOMMITMENTARBPROC glad_glTexPageCommitmentARB; -#define glTexPageCommitmentARB glad_glTexPageCommitmentARB -#endif -#ifndef GL_ARB_sparse_texture2 -#define GL_ARB_sparse_texture2 1 -GLAPI int GLAD_GL_ARB_sparse_texture2; -#endif -#ifndef GL_ARB_sparse_texture_clamp -#define GL_ARB_sparse_texture_clamp 1 -GLAPI int GLAD_GL_ARB_sparse_texture_clamp; -#endif -#ifndef GL_ARB_spirv_extensions -#define GL_ARB_spirv_extensions 1 -GLAPI int GLAD_GL_ARB_spirv_extensions; -#endif -#ifndef GL_ARB_stencil_texturing -#define GL_ARB_stencil_texturing 1 -GLAPI int GLAD_GL_ARB_stencil_texturing; -#endif -#ifndef GL_ARB_sync -#define GL_ARB_sync 1 -GLAPI int GLAD_GL_ARB_sync; -#endif -#ifndef GL_ARB_tessellation_shader -#define GL_ARB_tessellation_shader 1 -GLAPI int GLAD_GL_ARB_tessellation_shader; -#endif -#ifndef GL_ARB_texture_barrier -#define GL_ARB_texture_barrier 1 -GLAPI int GLAD_GL_ARB_texture_barrier; -#endif -#ifndef GL_ARB_texture_border_clamp -#define GL_ARB_texture_border_clamp 1 -GLAPI int GLAD_GL_ARB_texture_border_clamp; -#endif -#ifndef GL_ARB_texture_buffer_object -#define GL_ARB_texture_buffer_object 1 -GLAPI int GLAD_GL_ARB_texture_buffer_object; -typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC)(GLenum target, GLenum internalformat, GLuint buffer); -GLAPI PFNGLTEXBUFFERARBPROC glad_glTexBufferARB; -#define glTexBufferARB glad_glTexBufferARB -#endif -#ifndef GL_ARB_texture_buffer_object_rgb32 -#define GL_ARB_texture_buffer_object_rgb32 1 -GLAPI int GLAD_GL_ARB_texture_buffer_object_rgb32; -#endif -#ifndef GL_ARB_texture_buffer_range -#define GL_ARB_texture_buffer_range 1 -GLAPI int GLAD_GL_ARB_texture_buffer_range; -#endif -#ifndef GL_ARB_texture_compression -#define GL_ARB_texture_compression 1 -GLAPI int GLAD_GL_ARB_texture_compression; -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE3DARBPROC glad_glCompressedTexImage3DARB; -#define glCompressedTexImage3DARB glad_glCompressedTexImage3DARB -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE2DARBPROC glad_glCompressedTexImage2DARB; -#define glCompressedTexImage2DARB glad_glCompressedTexImage2DARB -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE1DARBPROC glad_glCompressedTexImage1DARB; -#define glCompressedTexImage1DARB glad_glCompressedTexImage1DARB -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 void *data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC glad_glCompressedTexSubImage3DARB; -#define glCompressedTexSubImage3DARB glad_glCompressedTexSubImage3DARB -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC glad_glCompressedTexSubImage2DARB; -#define glCompressedTexSubImage2DARB glad_glCompressedTexSubImage2DARB -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC glad_glCompressedTexSubImage1DARB; -#define glCompressedTexSubImage1DARB glad_glCompressedTexSubImage1DARB -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC)(GLenum target, GLint level, void *img); -GLAPI PFNGLGETCOMPRESSEDTEXIMAGEARBPROC glad_glGetCompressedTexImageARB; -#define glGetCompressedTexImageARB glad_glGetCompressedTexImageARB -#endif -#ifndef GL_ARB_texture_compression_bptc -#define GL_ARB_texture_compression_bptc 1 -GLAPI int GLAD_GL_ARB_texture_compression_bptc; -#endif -#ifndef GL_ARB_texture_compression_rgtc -#define GL_ARB_texture_compression_rgtc 1 -GLAPI int GLAD_GL_ARB_texture_compression_rgtc; -#endif -#ifndef GL_ARB_texture_cube_map -#define GL_ARB_texture_cube_map 1 -GLAPI int GLAD_GL_ARB_texture_cube_map; -#endif -#ifndef GL_ARB_texture_cube_map_array -#define GL_ARB_texture_cube_map_array 1 -GLAPI int GLAD_GL_ARB_texture_cube_map_array; -#endif -#ifndef GL_ARB_texture_env_add -#define GL_ARB_texture_env_add 1 -GLAPI int GLAD_GL_ARB_texture_env_add; -#endif -#ifndef GL_ARB_texture_env_combine -#define GL_ARB_texture_env_combine 1 -GLAPI int GLAD_GL_ARB_texture_env_combine; -#endif -#ifndef GL_ARB_texture_env_crossbar -#define GL_ARB_texture_env_crossbar 1 -GLAPI int GLAD_GL_ARB_texture_env_crossbar; -#endif -#ifndef GL_ARB_texture_env_dot3 -#define GL_ARB_texture_env_dot3 1 -GLAPI int GLAD_GL_ARB_texture_env_dot3; -#endif -#ifndef GL_ARB_texture_filter_anisotropic -#define GL_ARB_texture_filter_anisotropic 1 -GLAPI int GLAD_GL_ARB_texture_filter_anisotropic; -#endif -#ifndef GL_ARB_texture_filter_minmax -#define GL_ARB_texture_filter_minmax 1 -GLAPI int GLAD_GL_ARB_texture_filter_minmax; -#endif -#ifndef GL_ARB_texture_float -#define GL_ARB_texture_float 1 -GLAPI int GLAD_GL_ARB_texture_float; -#endif -#ifndef GL_ARB_texture_gather -#define GL_ARB_texture_gather 1 -GLAPI int GLAD_GL_ARB_texture_gather; -#endif -#ifndef GL_ARB_texture_mirror_clamp_to_edge -#define GL_ARB_texture_mirror_clamp_to_edge 1 -GLAPI int GLAD_GL_ARB_texture_mirror_clamp_to_edge; -#endif -#ifndef GL_ARB_texture_mirrored_repeat -#define GL_ARB_texture_mirrored_repeat 1 -GLAPI int GLAD_GL_ARB_texture_mirrored_repeat; -#endif -#ifndef GL_ARB_texture_multisample -#define GL_ARB_texture_multisample 1 -GLAPI int GLAD_GL_ARB_texture_multisample; -#endif -#ifndef GL_ARB_texture_non_power_of_two -#define GL_ARB_texture_non_power_of_two 1 -GLAPI int GLAD_GL_ARB_texture_non_power_of_two; -#endif -#ifndef GL_ARB_texture_query_levels -#define GL_ARB_texture_query_levels 1 -GLAPI int GLAD_GL_ARB_texture_query_levels; -#endif -#ifndef GL_ARB_texture_query_lod -#define GL_ARB_texture_query_lod 1 -GLAPI int GLAD_GL_ARB_texture_query_lod; -#endif -#ifndef GL_ARB_texture_rectangle -#define GL_ARB_texture_rectangle 1 -GLAPI int GLAD_GL_ARB_texture_rectangle; -#endif -#ifndef GL_ARB_texture_rg -#define GL_ARB_texture_rg 1 -GLAPI int GLAD_GL_ARB_texture_rg; -#endif -#ifndef GL_ARB_texture_rgb10_a2ui -#define GL_ARB_texture_rgb10_a2ui 1 -GLAPI int GLAD_GL_ARB_texture_rgb10_a2ui; -#endif -#ifndef GL_ARB_texture_stencil8 -#define GL_ARB_texture_stencil8 1 -GLAPI int GLAD_GL_ARB_texture_stencil8; -#endif -#ifndef GL_ARB_texture_storage -#define GL_ARB_texture_storage 1 -GLAPI int GLAD_GL_ARB_texture_storage; -#endif -#ifndef GL_ARB_texture_storage_multisample -#define GL_ARB_texture_storage_multisample 1 -GLAPI int GLAD_GL_ARB_texture_storage_multisample; -#endif -#ifndef GL_ARB_texture_swizzle -#define GL_ARB_texture_swizzle 1 -GLAPI int GLAD_GL_ARB_texture_swizzle; -#endif -#ifndef GL_ARB_texture_view -#define GL_ARB_texture_view 1 -GLAPI int GLAD_GL_ARB_texture_view; -#endif -#ifndef GL_ARB_timer_query -#define GL_ARB_timer_query 1 -GLAPI int GLAD_GL_ARB_timer_query; -#endif -#ifndef GL_ARB_transform_feedback2 -#define GL_ARB_transform_feedback2 1 -GLAPI int GLAD_GL_ARB_transform_feedback2; -#endif -#ifndef GL_ARB_transform_feedback3 -#define GL_ARB_transform_feedback3 1 -GLAPI int GLAD_GL_ARB_transform_feedback3; -#endif -#ifndef GL_ARB_transform_feedback_instanced -#define GL_ARB_transform_feedback_instanced 1 -GLAPI int GLAD_GL_ARB_transform_feedback_instanced; -#endif -#ifndef GL_ARB_transform_feedback_overflow_query -#define GL_ARB_transform_feedback_overflow_query 1 -GLAPI int GLAD_GL_ARB_transform_feedback_overflow_query; -#endif -#ifndef GL_ARB_transpose_matrix -#define GL_ARB_transpose_matrix 1 -GLAPI int GLAD_GL_ARB_transpose_matrix; -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC)(const GLfloat *m); -GLAPI PFNGLLOADTRANSPOSEMATRIXFARBPROC glad_glLoadTransposeMatrixfARB; -#define glLoadTransposeMatrixfARB glad_glLoadTransposeMatrixfARB -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC)(const GLdouble *m); -GLAPI PFNGLLOADTRANSPOSEMATRIXDARBPROC glad_glLoadTransposeMatrixdARB; -#define glLoadTransposeMatrixdARB glad_glLoadTransposeMatrixdARB -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC)(const GLfloat *m); -GLAPI PFNGLMULTTRANSPOSEMATRIXFARBPROC glad_glMultTransposeMatrixfARB; -#define glMultTransposeMatrixfARB glad_glMultTransposeMatrixfARB -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC)(const GLdouble *m); -GLAPI PFNGLMULTTRANSPOSEMATRIXDARBPROC glad_glMultTransposeMatrixdARB; -#define glMultTransposeMatrixdARB glad_glMultTransposeMatrixdARB -#endif -#ifndef GL_ARB_uniform_buffer_object -#define GL_ARB_uniform_buffer_object 1 -GLAPI int GLAD_GL_ARB_uniform_buffer_object; -#endif -#ifndef GL_ARB_vertex_array_bgra -#define GL_ARB_vertex_array_bgra 1 -GLAPI int GLAD_GL_ARB_vertex_array_bgra; -#endif -#ifndef GL_ARB_vertex_array_object -#define GL_ARB_vertex_array_object 1 -GLAPI int GLAD_GL_ARB_vertex_array_object; -#endif -#ifndef GL_ARB_vertex_attrib_64bit -#define GL_ARB_vertex_attrib_64bit 1 -GLAPI int GLAD_GL_ARB_vertex_attrib_64bit; -#endif -#ifndef GL_ARB_vertex_attrib_binding -#define GL_ARB_vertex_attrib_binding 1 -GLAPI int GLAD_GL_ARB_vertex_attrib_binding; -#endif -#ifndef GL_ARB_vertex_blend -#define GL_ARB_vertex_blend 1 -GLAPI int GLAD_GL_ARB_vertex_blend; -typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC)(GLint size, const GLbyte *weights); -GLAPI PFNGLWEIGHTBVARBPROC glad_glWeightbvARB; -#define glWeightbvARB glad_glWeightbvARB -typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC)(GLint size, const GLshort *weights); -GLAPI PFNGLWEIGHTSVARBPROC glad_glWeightsvARB; -#define glWeightsvARB glad_glWeightsvARB -typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC)(GLint size, const GLint *weights); -GLAPI PFNGLWEIGHTIVARBPROC glad_glWeightivARB; -#define glWeightivARB glad_glWeightivARB -typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC)(GLint size, const GLfloat *weights); -GLAPI PFNGLWEIGHTFVARBPROC glad_glWeightfvARB; -#define glWeightfvARB glad_glWeightfvARB -typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC)(GLint size, const GLdouble *weights); -GLAPI PFNGLWEIGHTDVARBPROC glad_glWeightdvARB; -#define glWeightdvARB glad_glWeightdvARB -typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC)(GLint size, const GLubyte *weights); -GLAPI PFNGLWEIGHTUBVARBPROC glad_glWeightubvARB; -#define glWeightubvARB glad_glWeightubvARB -typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC)(GLint size, const GLushort *weights); -GLAPI PFNGLWEIGHTUSVARBPROC glad_glWeightusvARB; -#define glWeightusvARB glad_glWeightusvARB -typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC)(GLint size, const GLuint *weights); -GLAPI PFNGLWEIGHTUIVARBPROC glad_glWeightuivARB; -#define glWeightuivARB glad_glWeightuivARB -typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLWEIGHTPOINTERARBPROC glad_glWeightPointerARB; -#define glWeightPointerARB glad_glWeightPointerARB -typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC)(GLint count); -GLAPI PFNGLVERTEXBLENDARBPROC glad_glVertexBlendARB; -#define glVertexBlendARB glad_glVertexBlendARB -#endif -#ifndef GL_ARB_vertex_buffer_object -#define GL_ARB_vertex_buffer_object 1 -GLAPI int GLAD_GL_ARB_vertex_buffer_object; -typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC)(GLenum target, GLuint buffer); -GLAPI PFNGLBINDBUFFERARBPROC glad_glBindBufferARB; -#define glBindBufferARB glad_glBindBufferARB -typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC)(GLsizei n, const GLuint *buffers); -GLAPI PFNGLDELETEBUFFERSARBPROC glad_glDeleteBuffersARB; -#define glDeleteBuffersARB glad_glDeleteBuffersARB -typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC)(GLsizei n, GLuint *buffers); -GLAPI PFNGLGENBUFFERSARBPROC glad_glGenBuffersARB; -#define glGenBuffersARB glad_glGenBuffersARB -typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC)(GLuint buffer); -GLAPI PFNGLISBUFFERARBPROC glad_glIsBufferARB; -#define glIsBufferARB glad_glIsBufferARB -typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC)(GLenum target, GLsizeiptrARB size, const void *data, GLenum usage); -GLAPI PFNGLBUFFERDATAARBPROC glad_glBufferDataARB; -#define glBufferDataARB glad_glBufferDataARB -typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data); -GLAPI PFNGLBUFFERSUBDATAARBPROC glad_glBufferSubDataARB; -#define glBufferSubDataARB glad_glBufferSubDataARB -typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data); -GLAPI PFNGLGETBUFFERSUBDATAARBPROC glad_glGetBufferSubDataARB; -#define glGetBufferSubDataARB glad_glGetBufferSubDataARB -typedef void * (APIENTRYP PFNGLMAPBUFFERARBPROC)(GLenum target, GLenum access); -GLAPI PFNGLMAPBUFFERARBPROC glad_glMapBufferARB; -#define glMapBufferARB glad_glMapBufferARB -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC)(GLenum target); -GLAPI PFNGLUNMAPBUFFERARBPROC glad_glUnmapBufferARB; -#define glUnmapBufferARB glad_glUnmapBufferARB -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETBUFFERPARAMETERIVARBPROC glad_glGetBufferParameterivARB; -#define glGetBufferParameterivARB glad_glGetBufferParameterivARB -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC)(GLenum target, GLenum pname, void **params); -GLAPI PFNGLGETBUFFERPOINTERVARBPROC glad_glGetBufferPointervARB; -#define glGetBufferPointervARB glad_glGetBufferPointervARB -#endif -#ifndef GL_ARB_vertex_program -#define GL_ARB_vertex_program 1 -GLAPI int GLAD_GL_ARB_vertex_program; -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC)(GLuint index, GLdouble x); -GLAPI PFNGLVERTEXATTRIB1DARBPROC glad_glVertexAttrib1dARB; -#define glVertexAttrib1dARB glad_glVertexAttrib1dARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB1DVARBPROC glad_glVertexAttrib1dvARB; -#define glVertexAttrib1dvARB glad_glVertexAttrib1dvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC)(GLuint index, GLfloat x); -GLAPI PFNGLVERTEXATTRIB1FARBPROC glad_glVertexAttrib1fARB; -#define glVertexAttrib1fARB glad_glVertexAttrib1fARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB1FVARBPROC glad_glVertexAttrib1fvARB; -#define glVertexAttrib1fvARB glad_glVertexAttrib1fvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC)(GLuint index, GLshort x); -GLAPI PFNGLVERTEXATTRIB1SARBPROC glad_glVertexAttrib1sARB; -#define glVertexAttrib1sARB glad_glVertexAttrib1sARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB1SVARBPROC glad_glVertexAttrib1svARB; -#define glVertexAttrib1svARB glad_glVertexAttrib1svARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC)(GLuint index, GLdouble x, GLdouble y); -GLAPI PFNGLVERTEXATTRIB2DARBPROC glad_glVertexAttrib2dARB; -#define glVertexAttrib2dARB glad_glVertexAttrib2dARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB2DVARBPROC glad_glVertexAttrib2dvARB; -#define glVertexAttrib2dvARB glad_glVertexAttrib2dvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC)(GLuint index, GLfloat x, GLfloat y); -GLAPI PFNGLVERTEXATTRIB2FARBPROC glad_glVertexAttrib2fARB; -#define glVertexAttrib2fARB glad_glVertexAttrib2fARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB2FVARBPROC glad_glVertexAttrib2fvARB; -#define glVertexAttrib2fvARB glad_glVertexAttrib2fvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC)(GLuint index, GLshort x, GLshort y); -GLAPI PFNGLVERTEXATTRIB2SARBPROC glad_glVertexAttrib2sARB; -#define glVertexAttrib2sARB glad_glVertexAttrib2sARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB2SVARBPROC glad_glVertexAttrib2svARB; -#define glVertexAttrib2svARB glad_glVertexAttrib2svARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEXATTRIB3DARBPROC glad_glVertexAttrib3dARB; -#define glVertexAttrib3dARB glad_glVertexAttrib3dARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB3DVARBPROC glad_glVertexAttrib3dvARB; -#define glVertexAttrib3dvARB glad_glVertexAttrib3dvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLVERTEXATTRIB3FARBPROC glad_glVertexAttrib3fARB; -#define glVertexAttrib3fARB glad_glVertexAttrib3fARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB3FVARBPROC glad_glVertexAttrib3fvARB; -#define glVertexAttrib3fvARB glad_glVertexAttrib3fvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC)(GLuint index, GLshort x, GLshort y, GLshort z); -GLAPI PFNGLVERTEXATTRIB3SARBPROC glad_glVertexAttrib3sARB; -#define glVertexAttrib3sARB glad_glVertexAttrib3sARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB3SVARBPROC glad_glVertexAttrib3svARB; -#define glVertexAttrib3svARB glad_glVertexAttrib3svARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC)(GLuint index, const GLbyte *v); -GLAPI PFNGLVERTEXATTRIB4NBVARBPROC glad_glVertexAttrib4NbvARB; -#define glVertexAttrib4NbvARB glad_glVertexAttrib4NbvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIB4NIVARBPROC glad_glVertexAttrib4NivARB; -#define glVertexAttrib4NivARB glad_glVertexAttrib4NivARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB4NSVARBPROC glad_glVertexAttrib4NsvARB; -#define glVertexAttrib4NsvARB glad_glVertexAttrib4NsvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -GLAPI PFNGLVERTEXATTRIB4NUBARBPROC glad_glVertexAttrib4NubARB; -#define glVertexAttrib4NubARB glad_glVertexAttrib4NubARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC)(GLuint index, const GLubyte *v); -GLAPI PFNGLVERTEXATTRIB4NUBVARBPROC glad_glVertexAttrib4NubvARB; -#define glVertexAttrib4NubvARB glad_glVertexAttrib4NubvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIB4NUIVARBPROC glad_glVertexAttrib4NuivARB; -#define glVertexAttrib4NuivARB glad_glVertexAttrib4NuivARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC)(GLuint index, const GLushort *v); -GLAPI PFNGLVERTEXATTRIB4NUSVARBPROC glad_glVertexAttrib4NusvARB; -#define glVertexAttrib4NusvARB glad_glVertexAttrib4NusvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC)(GLuint index, const GLbyte *v); -GLAPI PFNGLVERTEXATTRIB4BVARBPROC glad_glVertexAttrib4bvARB; -#define glVertexAttrib4bvARB glad_glVertexAttrib4bvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEXATTRIB4DARBPROC glad_glVertexAttrib4dARB; -#define glVertexAttrib4dARB glad_glVertexAttrib4dARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB4DVARBPROC glad_glVertexAttrib4dvARB; -#define glVertexAttrib4dvARB glad_glVertexAttrib4dvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLVERTEXATTRIB4FARBPROC glad_glVertexAttrib4fARB; -#define glVertexAttrib4fARB glad_glVertexAttrib4fARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB4FVARBPROC glad_glVertexAttrib4fvARB; -#define glVertexAttrib4fvARB glad_glVertexAttrib4fvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIB4IVARBPROC glad_glVertexAttrib4ivARB; -#define glVertexAttrib4ivARB glad_glVertexAttrib4ivARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLVERTEXATTRIB4SARBPROC glad_glVertexAttrib4sARB; -#define glVertexAttrib4sARB glad_glVertexAttrib4sARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB4SVARBPROC glad_glVertexAttrib4svARB; -#define glVertexAttrib4svARB glad_glVertexAttrib4svARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC)(GLuint index, const GLubyte *v); -GLAPI PFNGLVERTEXATTRIB4UBVARBPROC glad_glVertexAttrib4ubvARB; -#define glVertexAttrib4ubvARB glad_glVertexAttrib4ubvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIB4UIVARBPROC glad_glVertexAttrib4uivARB; -#define glVertexAttrib4uivARB glad_glVertexAttrib4uivARB -typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC)(GLuint index, const GLushort *v); -GLAPI PFNGLVERTEXATTRIB4USVARBPROC glad_glVertexAttrib4usvARB; -#define glVertexAttrib4usvARB glad_glVertexAttrib4usvARB -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXATTRIBPOINTERARBPROC glad_glVertexAttribPointerARB; -#define glVertexAttribPointerARB glad_glVertexAttribPointerARB -typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC)(GLuint index); -GLAPI PFNGLENABLEVERTEXATTRIBARRAYARBPROC glad_glEnableVertexAttribArrayARB; -#define glEnableVertexAttribArrayARB glad_glEnableVertexAttribArrayARB -typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC)(GLuint index); -GLAPI PFNGLDISABLEVERTEXATTRIBARRAYARBPROC glad_glDisableVertexAttribArrayARB; -#define glDisableVertexAttribArrayARB glad_glDisableVertexAttribArrayARB -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC)(GLuint index, GLenum pname, GLdouble *params); -GLAPI PFNGLGETVERTEXATTRIBDVARBPROC glad_glGetVertexAttribdvARB; -#define glGetVertexAttribdvARB glad_glGetVertexAttribdvARB -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC)(GLuint index, GLenum pname, GLfloat *params); -GLAPI PFNGLGETVERTEXATTRIBFVARBPROC glad_glGetVertexAttribfvARB; -#define glGetVertexAttribfvARB glad_glGetVertexAttribfvARB -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC)(GLuint index, GLenum pname, GLint *params); -GLAPI PFNGLGETVERTEXATTRIBIVARBPROC glad_glGetVertexAttribivARB; -#define glGetVertexAttribivARB glad_glGetVertexAttribivARB -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC)(GLuint index, GLenum pname, void **pointer); -GLAPI PFNGLGETVERTEXATTRIBPOINTERVARBPROC glad_glGetVertexAttribPointervARB; -#define glGetVertexAttribPointervARB glad_glGetVertexAttribPointervARB -#endif -#ifndef GL_ARB_vertex_shader -#define GL_ARB_vertex_shader 1 -GLAPI int GLAD_GL_ARB_vertex_shader; -typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC)(GLhandleARB programObj, GLuint index, const GLcharARB *name); -GLAPI PFNGLBINDATTRIBLOCATIONARBPROC glad_glBindAttribLocationARB; -#define glBindAttribLocationARB glad_glBindAttribLocationARB -typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC)(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name); -GLAPI PFNGLGETACTIVEATTRIBARBPROC glad_glGetActiveAttribARB; -#define glGetActiveAttribARB glad_glGetActiveAttribARB -typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC)(GLhandleARB programObj, const GLcharARB *name); -GLAPI PFNGLGETATTRIBLOCATIONARBPROC glad_glGetAttribLocationARB; -#define glGetAttribLocationARB glad_glGetAttribLocationARB -#endif -#ifndef GL_ARB_vertex_type_10f_11f_11f_rev -#define GL_ARB_vertex_type_10f_11f_11f_rev 1 -GLAPI int GLAD_GL_ARB_vertex_type_10f_11f_11f_rev; -#endif -#ifndef GL_ARB_vertex_type_2_10_10_10_rev -#define GL_ARB_vertex_type_2_10_10_10_rev 1 -GLAPI int GLAD_GL_ARB_vertex_type_2_10_10_10_rev; -#endif -#ifndef GL_ARB_viewport_array -#define GL_ARB_viewport_array 1 -GLAPI int GLAD_GL_ARB_viewport_array; -#endif -#ifndef GL_ARB_window_pos -#define GL_ARB_window_pos 1 -GLAPI int GLAD_GL_ARB_window_pos; -typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC)(GLdouble x, GLdouble y); -GLAPI PFNGLWINDOWPOS2DARBPROC glad_glWindowPos2dARB; -#define glWindowPos2dARB glad_glWindowPos2dARB -typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC)(const GLdouble *v); -GLAPI PFNGLWINDOWPOS2DVARBPROC glad_glWindowPos2dvARB; -#define glWindowPos2dvARB glad_glWindowPos2dvARB -typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC)(GLfloat x, GLfloat y); -GLAPI PFNGLWINDOWPOS2FARBPROC glad_glWindowPos2fARB; -#define glWindowPos2fARB glad_glWindowPos2fARB -typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC)(const GLfloat *v); -GLAPI PFNGLWINDOWPOS2FVARBPROC glad_glWindowPos2fvARB; -#define glWindowPos2fvARB glad_glWindowPos2fvARB -typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC)(GLint x, GLint y); -GLAPI PFNGLWINDOWPOS2IARBPROC glad_glWindowPos2iARB; -#define glWindowPos2iARB glad_glWindowPos2iARB -typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC)(const GLint *v); -GLAPI PFNGLWINDOWPOS2IVARBPROC glad_glWindowPos2ivARB; -#define glWindowPos2ivARB glad_glWindowPos2ivARB -typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC)(GLshort x, GLshort y); -GLAPI PFNGLWINDOWPOS2SARBPROC glad_glWindowPos2sARB; -#define glWindowPos2sARB glad_glWindowPos2sARB -typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC)(const GLshort *v); -GLAPI PFNGLWINDOWPOS2SVARBPROC glad_glWindowPos2svARB; -#define glWindowPos2svARB glad_glWindowPos2svARB -typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLWINDOWPOS3DARBPROC glad_glWindowPos3dARB; -#define glWindowPos3dARB glad_glWindowPos3dARB -typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC)(const GLdouble *v); -GLAPI PFNGLWINDOWPOS3DVARBPROC glad_glWindowPos3dvARB; -#define glWindowPos3dvARB glad_glWindowPos3dvARB -typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLWINDOWPOS3FARBPROC glad_glWindowPos3fARB; -#define glWindowPos3fARB glad_glWindowPos3fARB -typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC)(const GLfloat *v); -GLAPI PFNGLWINDOWPOS3FVARBPROC glad_glWindowPos3fvARB; -#define glWindowPos3fvARB glad_glWindowPos3fvARB -typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC)(GLint x, GLint y, GLint z); -GLAPI PFNGLWINDOWPOS3IARBPROC glad_glWindowPos3iARB; -#define glWindowPos3iARB glad_glWindowPos3iARB -typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC)(const GLint *v); -GLAPI PFNGLWINDOWPOS3IVARBPROC glad_glWindowPos3ivARB; -#define glWindowPos3ivARB glad_glWindowPos3ivARB -typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC)(GLshort x, GLshort y, GLshort z); -GLAPI PFNGLWINDOWPOS3SARBPROC glad_glWindowPos3sARB; -#define glWindowPos3sARB glad_glWindowPos3sARB -typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC)(const GLshort *v); -GLAPI PFNGLWINDOWPOS3SVARBPROC glad_glWindowPos3svARB; -#define glWindowPos3svARB glad_glWindowPos3svARB -#endif -#ifndef GL_ATI_draw_buffers -#define GL_ATI_draw_buffers 1 -GLAPI int GLAD_GL_ATI_draw_buffers; -typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC)(GLsizei n, const GLenum *bufs); -GLAPI PFNGLDRAWBUFFERSATIPROC glad_glDrawBuffersATI; -#define glDrawBuffersATI glad_glDrawBuffersATI -#endif -#ifndef GL_ATI_element_array -#define GL_ATI_element_array 1 -GLAPI int GLAD_GL_ATI_element_array; -typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC)(GLenum type, const void *pointer); -GLAPI PFNGLELEMENTPOINTERATIPROC glad_glElementPointerATI; -#define glElementPointerATI glad_glElementPointerATI -typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC)(GLenum mode, GLsizei count); -GLAPI PFNGLDRAWELEMENTARRAYATIPROC glad_glDrawElementArrayATI; -#define glDrawElementArrayATI glad_glDrawElementArrayATI -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count); -GLAPI PFNGLDRAWRANGEELEMENTARRAYATIPROC glad_glDrawRangeElementArrayATI; -#define glDrawRangeElementArrayATI glad_glDrawRangeElementArrayATI -#endif -#ifndef GL_ATI_envmap_bumpmap -#define GL_ATI_envmap_bumpmap 1 -GLAPI int GLAD_GL_ATI_envmap_bumpmap; -typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC)(GLenum pname, const GLint *param); -GLAPI PFNGLTEXBUMPPARAMETERIVATIPROC glad_glTexBumpParameterivATI; -#define glTexBumpParameterivATI glad_glTexBumpParameterivATI -typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC)(GLenum pname, const GLfloat *param); -GLAPI PFNGLTEXBUMPPARAMETERFVATIPROC glad_glTexBumpParameterfvATI; -#define glTexBumpParameterfvATI glad_glTexBumpParameterfvATI -typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC)(GLenum pname, GLint *param); -GLAPI PFNGLGETTEXBUMPPARAMETERIVATIPROC glad_glGetTexBumpParameterivATI; -#define glGetTexBumpParameterivATI glad_glGetTexBumpParameterivATI -typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC)(GLenum pname, GLfloat *param); -GLAPI PFNGLGETTEXBUMPPARAMETERFVATIPROC glad_glGetTexBumpParameterfvATI; -#define glGetTexBumpParameterfvATI glad_glGetTexBumpParameterfvATI -#endif -#ifndef GL_ATI_fragment_shader -#define GL_ATI_fragment_shader 1 -GLAPI int GLAD_GL_ATI_fragment_shader; -typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC)(GLuint range); -GLAPI PFNGLGENFRAGMENTSHADERSATIPROC glad_glGenFragmentShadersATI; -#define glGenFragmentShadersATI glad_glGenFragmentShadersATI -typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC)(GLuint id); -GLAPI PFNGLBINDFRAGMENTSHADERATIPROC glad_glBindFragmentShaderATI; -#define glBindFragmentShaderATI glad_glBindFragmentShaderATI -typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC)(GLuint id); -GLAPI PFNGLDELETEFRAGMENTSHADERATIPROC glad_glDeleteFragmentShaderATI; -#define glDeleteFragmentShaderATI glad_glDeleteFragmentShaderATI -typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC)(void); -GLAPI PFNGLBEGINFRAGMENTSHADERATIPROC glad_glBeginFragmentShaderATI; -#define glBeginFragmentShaderATI glad_glBeginFragmentShaderATI -typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC)(void); -GLAPI PFNGLENDFRAGMENTSHADERATIPROC glad_glEndFragmentShaderATI; -#define glEndFragmentShaderATI glad_glEndFragmentShaderATI -typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC)(GLuint dst, GLuint coord, GLenum swizzle); -GLAPI PFNGLPASSTEXCOORDATIPROC glad_glPassTexCoordATI; -#define glPassTexCoordATI glad_glPassTexCoordATI -typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC)(GLuint dst, GLuint interp, GLenum swizzle); -GLAPI PFNGLSAMPLEMAPATIPROC glad_glSampleMapATI; -#define glSampleMapATI glad_glSampleMapATI -typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC)(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -GLAPI PFNGLCOLORFRAGMENTOP1ATIPROC glad_glColorFragmentOp1ATI; -#define glColorFragmentOp1ATI glad_glColorFragmentOp1ATI -typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC)(GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -GLAPI PFNGLCOLORFRAGMENTOP2ATIPROC glad_glColorFragmentOp2ATI; -#define glColorFragmentOp2ATI glad_glColorFragmentOp2ATI -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); -GLAPI PFNGLCOLORFRAGMENTOP3ATIPROC glad_glColorFragmentOp3ATI; -#define glColorFragmentOp3ATI glad_glColorFragmentOp3ATI -typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC)(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod); -GLAPI PFNGLALPHAFRAGMENTOP1ATIPROC glad_glAlphaFragmentOp1ATI; -#define glAlphaFragmentOp1ATI glad_glAlphaFragmentOp1ATI -typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC)(GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod); -GLAPI PFNGLALPHAFRAGMENTOP2ATIPROC glad_glAlphaFragmentOp2ATI; -#define glAlphaFragmentOp2ATI glad_glAlphaFragmentOp2ATI -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); -GLAPI PFNGLALPHAFRAGMENTOP3ATIPROC glad_glAlphaFragmentOp3ATI; -#define glAlphaFragmentOp3ATI glad_glAlphaFragmentOp3ATI -typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC)(GLuint dst, const GLfloat *value); -GLAPI PFNGLSETFRAGMENTSHADERCONSTANTATIPROC glad_glSetFragmentShaderConstantATI; -#define glSetFragmentShaderConstantATI glad_glSetFragmentShaderConstantATI -#endif -#ifndef GL_ATI_map_object_buffer -#define GL_ATI_map_object_buffer 1 -GLAPI int GLAD_GL_ATI_map_object_buffer; -typedef void * (APIENTRYP PFNGLMAPOBJECTBUFFERATIPROC)(GLuint buffer); -GLAPI PFNGLMAPOBJECTBUFFERATIPROC glad_glMapObjectBufferATI; -#define glMapObjectBufferATI glad_glMapObjectBufferATI -typedef void (APIENTRYP PFNGLUNMAPOBJECTBUFFERATIPROC)(GLuint buffer); -GLAPI PFNGLUNMAPOBJECTBUFFERATIPROC glad_glUnmapObjectBufferATI; -#define glUnmapObjectBufferATI glad_glUnmapObjectBufferATI -#endif -#ifndef GL_ATI_meminfo -#define GL_ATI_meminfo 1 -GLAPI int GLAD_GL_ATI_meminfo; -#endif -#ifndef GL_ATI_pixel_format_float -#define GL_ATI_pixel_format_float 1 -GLAPI int GLAD_GL_ATI_pixel_format_float; -#endif -#ifndef GL_ATI_pn_triangles -#define GL_ATI_pn_triangles 1 -GLAPI int GLAD_GL_ATI_pn_triangles; -typedef void (APIENTRYP PFNGLPNTRIANGLESIATIPROC)(GLenum pname, GLint param); -GLAPI PFNGLPNTRIANGLESIATIPROC glad_glPNTrianglesiATI; -#define glPNTrianglesiATI glad_glPNTrianglesiATI -typedef void (APIENTRYP PFNGLPNTRIANGLESFATIPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPNTRIANGLESFATIPROC glad_glPNTrianglesfATI; -#define glPNTrianglesfATI glad_glPNTrianglesfATI -#endif -#ifndef GL_ATI_separate_stencil -#define GL_ATI_separate_stencil 1 -GLAPI int GLAD_GL_ATI_separate_stencil; -typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEATIPROC)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -GLAPI PFNGLSTENCILOPSEPARATEATIPROC glad_glStencilOpSeparateATI; -#define glStencilOpSeparateATI glad_glStencilOpSeparateATI -typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEATIPROC)(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); -GLAPI PFNGLSTENCILFUNCSEPARATEATIPROC glad_glStencilFuncSeparateATI; -#define glStencilFuncSeparateATI glad_glStencilFuncSeparateATI -#endif -#ifndef GL_ATI_text_fragment_shader -#define GL_ATI_text_fragment_shader 1 -GLAPI int GLAD_GL_ATI_text_fragment_shader; -#endif -#ifndef GL_ATI_texture_env_combine3 -#define GL_ATI_texture_env_combine3 1 -GLAPI int GLAD_GL_ATI_texture_env_combine3; -#endif -#ifndef GL_ATI_texture_float -#define GL_ATI_texture_float 1 -GLAPI int GLAD_GL_ATI_texture_float; -#endif -#ifndef GL_ATI_texture_mirror_once -#define GL_ATI_texture_mirror_once 1 -GLAPI int GLAD_GL_ATI_texture_mirror_once; -#endif -#ifndef GL_ATI_vertex_array_object -#define GL_ATI_vertex_array_object 1 -GLAPI int GLAD_GL_ATI_vertex_array_object; -typedef GLuint (APIENTRYP PFNGLNEWOBJECTBUFFERATIPROC)(GLsizei size, const void *pointer, GLenum usage); -GLAPI PFNGLNEWOBJECTBUFFERATIPROC glad_glNewObjectBufferATI; -#define glNewObjectBufferATI glad_glNewObjectBufferATI -typedef GLboolean (APIENTRYP PFNGLISOBJECTBUFFERATIPROC)(GLuint buffer); -GLAPI PFNGLISOBJECTBUFFERATIPROC glad_glIsObjectBufferATI; -#define glIsObjectBufferATI glad_glIsObjectBufferATI -typedef void (APIENTRYP PFNGLUPDATEOBJECTBUFFERATIPROC)(GLuint buffer, GLuint offset, GLsizei size, const void *pointer, GLenum preserve); -GLAPI PFNGLUPDATEOBJECTBUFFERATIPROC glad_glUpdateObjectBufferATI; -#define glUpdateObjectBufferATI glad_glUpdateObjectBufferATI -typedef void (APIENTRYP PFNGLGETOBJECTBUFFERFVATIPROC)(GLuint buffer, GLenum pname, GLfloat *params); -GLAPI PFNGLGETOBJECTBUFFERFVATIPROC glad_glGetObjectBufferfvATI; -#define glGetObjectBufferfvATI glad_glGetObjectBufferfvATI -typedef void (APIENTRYP PFNGLGETOBJECTBUFFERIVATIPROC)(GLuint buffer, GLenum pname, GLint *params); -GLAPI PFNGLGETOBJECTBUFFERIVATIPROC glad_glGetObjectBufferivATI; -#define glGetObjectBufferivATI glad_glGetObjectBufferivATI -typedef void (APIENTRYP PFNGLFREEOBJECTBUFFERATIPROC)(GLuint buffer); -GLAPI PFNGLFREEOBJECTBUFFERATIPROC glad_glFreeObjectBufferATI; -#define glFreeObjectBufferATI glad_glFreeObjectBufferATI -typedef void (APIENTRYP PFNGLARRAYOBJECTATIPROC)(GLenum array, GLint size, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -GLAPI PFNGLARRAYOBJECTATIPROC glad_glArrayObjectATI; -#define glArrayObjectATI glad_glArrayObjectATI -typedef void (APIENTRYP PFNGLGETARRAYOBJECTFVATIPROC)(GLenum array, GLenum pname, GLfloat *params); -GLAPI PFNGLGETARRAYOBJECTFVATIPROC glad_glGetArrayObjectfvATI; -#define glGetArrayObjectfvATI glad_glGetArrayObjectfvATI -typedef void (APIENTRYP PFNGLGETARRAYOBJECTIVATIPROC)(GLenum array, GLenum pname, GLint *params); -GLAPI PFNGLGETARRAYOBJECTIVATIPROC glad_glGetArrayObjectivATI; -#define glGetArrayObjectivATI glad_glGetArrayObjectivATI -typedef void (APIENTRYP PFNGLVARIANTARRAYOBJECTATIPROC)(GLuint id, GLenum type, GLsizei stride, GLuint buffer, GLuint offset); -GLAPI PFNGLVARIANTARRAYOBJECTATIPROC glad_glVariantArrayObjectATI; -#define glVariantArrayObjectATI glad_glVariantArrayObjectATI -typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTFVATIPROC)(GLuint id, GLenum pname, GLfloat *params); -GLAPI PFNGLGETVARIANTARRAYOBJECTFVATIPROC glad_glGetVariantArrayObjectfvATI; -#define glGetVariantArrayObjectfvATI glad_glGetVariantArrayObjectfvATI -typedef void (APIENTRYP PFNGLGETVARIANTARRAYOBJECTIVATIPROC)(GLuint id, GLenum pname, GLint *params); -GLAPI PFNGLGETVARIANTARRAYOBJECTIVATIPROC glad_glGetVariantArrayObjectivATI; -#define glGetVariantArrayObjectivATI glad_glGetVariantArrayObjectivATI -#endif -#ifndef GL_ATI_vertex_attrib_array_object -#define GL_ATI_vertex_attrib_array_object 1 -GLAPI int GLAD_GL_ATI_vertex_attrib_array_object; -typedef void (APIENTRYP PFNGLVERTEXATTRIBARRAYOBJECTATIPROC)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint buffer, GLuint offset); -GLAPI PFNGLVERTEXATTRIBARRAYOBJECTATIPROC glad_glVertexAttribArrayObjectATI; -#define glVertexAttribArrayObjectATI glad_glVertexAttribArrayObjectATI -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC)(GLuint index, GLenum pname, GLfloat *params); -GLAPI PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC glad_glGetVertexAttribArrayObjectfvATI; -#define glGetVertexAttribArrayObjectfvATI glad_glGetVertexAttribArrayObjectfvATI -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC)(GLuint index, GLenum pname, GLint *params); -GLAPI PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC glad_glGetVertexAttribArrayObjectivATI; -#define glGetVertexAttribArrayObjectivATI glad_glGetVertexAttribArrayObjectivATI -#endif -#ifndef GL_ATI_vertex_streams -#define GL_ATI_vertex_streams 1 -GLAPI int GLAD_GL_ATI_vertex_streams; -typedef void (APIENTRYP PFNGLVERTEXSTREAM1SATIPROC)(GLenum stream, GLshort x); -GLAPI PFNGLVERTEXSTREAM1SATIPROC glad_glVertexStream1sATI; -#define glVertexStream1sATI glad_glVertexStream1sATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM1SVATIPROC)(GLenum stream, const GLshort *coords); -GLAPI PFNGLVERTEXSTREAM1SVATIPROC glad_glVertexStream1svATI; -#define glVertexStream1svATI glad_glVertexStream1svATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM1IATIPROC)(GLenum stream, GLint x); -GLAPI PFNGLVERTEXSTREAM1IATIPROC glad_glVertexStream1iATI; -#define glVertexStream1iATI glad_glVertexStream1iATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM1IVATIPROC)(GLenum stream, const GLint *coords); -GLAPI PFNGLVERTEXSTREAM1IVATIPROC glad_glVertexStream1ivATI; -#define glVertexStream1ivATI glad_glVertexStream1ivATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM1FATIPROC)(GLenum stream, GLfloat x); -GLAPI PFNGLVERTEXSTREAM1FATIPROC glad_glVertexStream1fATI; -#define glVertexStream1fATI glad_glVertexStream1fATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM1FVATIPROC)(GLenum stream, const GLfloat *coords); -GLAPI PFNGLVERTEXSTREAM1FVATIPROC glad_glVertexStream1fvATI; -#define glVertexStream1fvATI glad_glVertexStream1fvATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM1DATIPROC)(GLenum stream, GLdouble x); -GLAPI PFNGLVERTEXSTREAM1DATIPROC glad_glVertexStream1dATI; -#define glVertexStream1dATI glad_glVertexStream1dATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM1DVATIPROC)(GLenum stream, const GLdouble *coords); -GLAPI PFNGLVERTEXSTREAM1DVATIPROC glad_glVertexStream1dvATI; -#define glVertexStream1dvATI glad_glVertexStream1dvATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM2SATIPROC)(GLenum stream, GLshort x, GLshort y); -GLAPI PFNGLVERTEXSTREAM2SATIPROC glad_glVertexStream2sATI; -#define glVertexStream2sATI glad_glVertexStream2sATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM2SVATIPROC)(GLenum stream, const GLshort *coords); -GLAPI PFNGLVERTEXSTREAM2SVATIPROC glad_glVertexStream2svATI; -#define glVertexStream2svATI glad_glVertexStream2svATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM2IATIPROC)(GLenum stream, GLint x, GLint y); -GLAPI PFNGLVERTEXSTREAM2IATIPROC glad_glVertexStream2iATI; -#define glVertexStream2iATI glad_glVertexStream2iATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM2IVATIPROC)(GLenum stream, const GLint *coords); -GLAPI PFNGLVERTEXSTREAM2IVATIPROC glad_glVertexStream2ivATI; -#define glVertexStream2ivATI glad_glVertexStream2ivATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM2FATIPROC)(GLenum stream, GLfloat x, GLfloat y); -GLAPI PFNGLVERTEXSTREAM2FATIPROC glad_glVertexStream2fATI; -#define glVertexStream2fATI glad_glVertexStream2fATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM2FVATIPROC)(GLenum stream, const GLfloat *coords); -GLAPI PFNGLVERTEXSTREAM2FVATIPROC glad_glVertexStream2fvATI; -#define glVertexStream2fvATI glad_glVertexStream2fvATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM2DATIPROC)(GLenum stream, GLdouble x, GLdouble y); -GLAPI PFNGLVERTEXSTREAM2DATIPROC glad_glVertexStream2dATI; -#define glVertexStream2dATI glad_glVertexStream2dATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM2DVATIPROC)(GLenum stream, const GLdouble *coords); -GLAPI PFNGLVERTEXSTREAM2DVATIPROC glad_glVertexStream2dvATI; -#define glVertexStream2dvATI glad_glVertexStream2dvATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM3SATIPROC)(GLenum stream, GLshort x, GLshort y, GLshort z); -GLAPI PFNGLVERTEXSTREAM3SATIPROC glad_glVertexStream3sATI; -#define glVertexStream3sATI glad_glVertexStream3sATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM3SVATIPROC)(GLenum stream, const GLshort *coords); -GLAPI PFNGLVERTEXSTREAM3SVATIPROC glad_glVertexStream3svATI; -#define glVertexStream3svATI glad_glVertexStream3svATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM3IATIPROC)(GLenum stream, GLint x, GLint y, GLint z); -GLAPI PFNGLVERTEXSTREAM3IATIPROC glad_glVertexStream3iATI; -#define glVertexStream3iATI glad_glVertexStream3iATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM3IVATIPROC)(GLenum stream, const GLint *coords); -GLAPI PFNGLVERTEXSTREAM3IVATIPROC glad_glVertexStream3ivATI; -#define glVertexStream3ivATI glad_glVertexStream3ivATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM3FATIPROC)(GLenum stream, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLVERTEXSTREAM3FATIPROC glad_glVertexStream3fATI; -#define glVertexStream3fATI glad_glVertexStream3fATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM3FVATIPROC)(GLenum stream, const GLfloat *coords); -GLAPI PFNGLVERTEXSTREAM3FVATIPROC glad_glVertexStream3fvATI; -#define glVertexStream3fvATI glad_glVertexStream3fvATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM3DATIPROC)(GLenum stream, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEXSTREAM3DATIPROC glad_glVertexStream3dATI; -#define glVertexStream3dATI glad_glVertexStream3dATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM3DVATIPROC)(GLenum stream, const GLdouble *coords); -GLAPI PFNGLVERTEXSTREAM3DVATIPROC glad_glVertexStream3dvATI; -#define glVertexStream3dvATI glad_glVertexStream3dvATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM4SATIPROC)(GLenum stream, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLVERTEXSTREAM4SATIPROC glad_glVertexStream4sATI; -#define glVertexStream4sATI glad_glVertexStream4sATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM4SVATIPROC)(GLenum stream, const GLshort *coords); -GLAPI PFNGLVERTEXSTREAM4SVATIPROC glad_glVertexStream4svATI; -#define glVertexStream4svATI glad_glVertexStream4svATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM4IATIPROC)(GLenum stream, GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLVERTEXSTREAM4IATIPROC glad_glVertexStream4iATI; -#define glVertexStream4iATI glad_glVertexStream4iATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM4IVATIPROC)(GLenum stream, const GLint *coords); -GLAPI PFNGLVERTEXSTREAM4IVATIPROC glad_glVertexStream4ivATI; -#define glVertexStream4ivATI glad_glVertexStream4ivATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM4FATIPROC)(GLenum stream, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLVERTEXSTREAM4FATIPROC glad_glVertexStream4fATI; -#define glVertexStream4fATI glad_glVertexStream4fATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM4FVATIPROC)(GLenum stream, const GLfloat *coords); -GLAPI PFNGLVERTEXSTREAM4FVATIPROC glad_glVertexStream4fvATI; -#define glVertexStream4fvATI glad_glVertexStream4fvATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM4DATIPROC)(GLenum stream, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEXSTREAM4DATIPROC glad_glVertexStream4dATI; -#define glVertexStream4dATI glad_glVertexStream4dATI -typedef void (APIENTRYP PFNGLVERTEXSTREAM4DVATIPROC)(GLenum stream, const GLdouble *coords); -GLAPI PFNGLVERTEXSTREAM4DVATIPROC glad_glVertexStream4dvATI; -#define glVertexStream4dvATI glad_glVertexStream4dvATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3BATIPROC)(GLenum stream, GLbyte nx, GLbyte ny, GLbyte nz); -GLAPI PFNGLNORMALSTREAM3BATIPROC glad_glNormalStream3bATI; -#define glNormalStream3bATI glad_glNormalStream3bATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3BVATIPROC)(GLenum stream, const GLbyte *coords); -GLAPI PFNGLNORMALSTREAM3BVATIPROC glad_glNormalStream3bvATI; -#define glNormalStream3bvATI glad_glNormalStream3bvATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3SATIPROC)(GLenum stream, GLshort nx, GLshort ny, GLshort nz); -GLAPI PFNGLNORMALSTREAM3SATIPROC glad_glNormalStream3sATI; -#define glNormalStream3sATI glad_glNormalStream3sATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3SVATIPROC)(GLenum stream, const GLshort *coords); -GLAPI PFNGLNORMALSTREAM3SVATIPROC glad_glNormalStream3svATI; -#define glNormalStream3svATI glad_glNormalStream3svATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3IATIPROC)(GLenum stream, GLint nx, GLint ny, GLint nz); -GLAPI PFNGLNORMALSTREAM3IATIPROC glad_glNormalStream3iATI; -#define glNormalStream3iATI glad_glNormalStream3iATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3IVATIPROC)(GLenum stream, const GLint *coords); -GLAPI PFNGLNORMALSTREAM3IVATIPROC glad_glNormalStream3ivATI; -#define glNormalStream3ivATI glad_glNormalStream3ivATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3FATIPROC)(GLenum stream, GLfloat nx, GLfloat ny, GLfloat nz); -GLAPI PFNGLNORMALSTREAM3FATIPROC glad_glNormalStream3fATI; -#define glNormalStream3fATI glad_glNormalStream3fATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3FVATIPROC)(GLenum stream, const GLfloat *coords); -GLAPI PFNGLNORMALSTREAM3FVATIPROC glad_glNormalStream3fvATI; -#define glNormalStream3fvATI glad_glNormalStream3fvATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3DATIPROC)(GLenum stream, GLdouble nx, GLdouble ny, GLdouble nz); -GLAPI PFNGLNORMALSTREAM3DATIPROC glad_glNormalStream3dATI; -#define glNormalStream3dATI glad_glNormalStream3dATI -typedef void (APIENTRYP PFNGLNORMALSTREAM3DVATIPROC)(GLenum stream, const GLdouble *coords); -GLAPI PFNGLNORMALSTREAM3DVATIPROC glad_glNormalStream3dvATI; -#define glNormalStream3dvATI glad_glNormalStream3dvATI -typedef void (APIENTRYP PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC)(GLenum stream); -GLAPI PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC glad_glClientActiveVertexStreamATI; -#define glClientActiveVertexStreamATI glad_glClientActiveVertexStreamATI -typedef void (APIENTRYP PFNGLVERTEXBLENDENVIATIPROC)(GLenum pname, GLint param); -GLAPI PFNGLVERTEXBLENDENVIATIPROC glad_glVertexBlendEnviATI; -#define glVertexBlendEnviATI glad_glVertexBlendEnviATI -typedef void (APIENTRYP PFNGLVERTEXBLENDENVFATIPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLVERTEXBLENDENVFATIPROC glad_glVertexBlendEnvfATI; -#define glVertexBlendEnvfATI glad_glVertexBlendEnvfATI -#endif -#ifndef GL_EXT_422_pixels -#define GL_EXT_422_pixels 1 -GLAPI int GLAD_GL_EXT_422_pixels; -#endif -#ifndef GL_EXT_EGL_image_storage -#define GL_EXT_EGL_image_storage 1 -GLAPI int GLAD_GL_EXT_EGL_image_storage; -typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC)(GLenum target, GLeglImageOES image, const GLint* attrib_list); -GLAPI PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC glad_glEGLImageTargetTexStorageEXT; -#define glEGLImageTargetTexStorageEXT glad_glEGLImageTargetTexStorageEXT -typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC)(GLuint texture, GLeglImageOES image, const GLint* attrib_list); -GLAPI PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC glad_glEGLImageTargetTextureStorageEXT; -#define glEGLImageTargetTextureStorageEXT glad_glEGLImageTargetTextureStorageEXT -#endif -#ifndef GL_EXT_abgr -#define GL_EXT_abgr 1 -GLAPI int GLAD_GL_EXT_abgr; -#endif -#ifndef GL_EXT_bgra -#define GL_EXT_bgra 1 -GLAPI int GLAD_GL_EXT_bgra; -#endif -#ifndef GL_EXT_bindable_uniform -#define GL_EXT_bindable_uniform 1 -GLAPI int GLAD_GL_EXT_bindable_uniform; -typedef void (APIENTRYP PFNGLUNIFORMBUFFEREXTPROC)(GLuint program, GLint location, GLuint buffer); -GLAPI PFNGLUNIFORMBUFFEREXTPROC glad_glUniformBufferEXT; -#define glUniformBufferEXT glad_glUniformBufferEXT -typedef GLint (APIENTRYP PFNGLGETUNIFORMBUFFERSIZEEXTPROC)(GLuint program, GLint location); -GLAPI PFNGLGETUNIFORMBUFFERSIZEEXTPROC glad_glGetUniformBufferSizeEXT; -#define glGetUniformBufferSizeEXT glad_glGetUniformBufferSizeEXT -typedef GLintptr (APIENTRYP PFNGLGETUNIFORMOFFSETEXTPROC)(GLuint program, GLint location); -GLAPI PFNGLGETUNIFORMOFFSETEXTPROC glad_glGetUniformOffsetEXT; -#define glGetUniformOffsetEXT glad_glGetUniformOffsetEXT -#endif -#ifndef GL_EXT_blend_color -#define GL_EXT_blend_color 1 -GLAPI int GLAD_GL_EXT_blend_color; -typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI PFNGLBLENDCOLOREXTPROC glad_glBlendColorEXT; -#define glBlendColorEXT glad_glBlendColorEXT -#endif -#ifndef GL_EXT_blend_equation_separate -#define GL_EXT_blend_equation_separate 1 -GLAPI int GLAD_GL_EXT_blend_equation_separate; -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEEXTPROC)(GLenum modeRGB, GLenum modeAlpha); -GLAPI PFNGLBLENDEQUATIONSEPARATEEXTPROC glad_glBlendEquationSeparateEXT; -#define glBlendEquationSeparateEXT glad_glBlendEquationSeparateEXT -#endif -#ifndef GL_EXT_blend_func_separate -#define GL_EXT_blend_func_separate 1 -GLAPI int GLAD_GL_EXT_blend_func_separate; -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEEXTPROC)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEEXTPROC glad_glBlendFuncSeparateEXT; -#define glBlendFuncSeparateEXT glad_glBlendFuncSeparateEXT -#endif -#ifndef GL_EXT_blend_logic_op -#define GL_EXT_blend_logic_op 1 -GLAPI int GLAD_GL_EXT_blend_logic_op; -#endif -#ifndef GL_EXT_blend_minmax -#define GL_EXT_blend_minmax 1 -GLAPI int GLAD_GL_EXT_blend_minmax; -typedef void (APIENTRYP PFNGLBLENDEQUATIONEXTPROC)(GLenum mode); -GLAPI PFNGLBLENDEQUATIONEXTPROC glad_glBlendEquationEXT; -#define glBlendEquationEXT glad_glBlendEquationEXT -#endif -#ifndef GL_EXT_blend_subtract -#define GL_EXT_blend_subtract 1 -GLAPI int GLAD_GL_EXT_blend_subtract; -#endif -#ifndef GL_EXT_clip_volume_hint -#define GL_EXT_clip_volume_hint 1 -GLAPI int GLAD_GL_EXT_clip_volume_hint; -#endif -#ifndef GL_EXT_cmyka -#define GL_EXT_cmyka 1 -GLAPI int GLAD_GL_EXT_cmyka; -#endif -#ifndef GL_EXT_color_subtable -#define GL_EXT_color_subtable 1 -GLAPI int GLAD_GL_EXT_color_subtable; -typedef void (APIENTRYP PFNGLCOLORSUBTABLEEXTPROC)(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCOLORSUBTABLEEXTPROC glad_glColorSubTableEXT; -#define glColorSubTableEXT glad_glColorSubTableEXT -typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEEXTPROC)(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYCOLORSUBTABLEEXTPROC glad_glCopyColorSubTableEXT; -#define glCopyColorSubTableEXT glad_glCopyColorSubTableEXT -#endif -#ifndef GL_EXT_compiled_vertex_array -#define GL_EXT_compiled_vertex_array 1 -GLAPI int GLAD_GL_EXT_compiled_vertex_array; -typedef void (APIENTRYP PFNGLLOCKARRAYSEXTPROC)(GLint first, GLsizei count); -GLAPI PFNGLLOCKARRAYSEXTPROC glad_glLockArraysEXT; -#define glLockArraysEXT glad_glLockArraysEXT -typedef void (APIENTRYP PFNGLUNLOCKARRAYSEXTPROC)(void); -GLAPI PFNGLUNLOCKARRAYSEXTPROC glad_glUnlockArraysEXT; -#define glUnlockArraysEXT glad_glUnlockArraysEXT -#endif -#ifndef GL_EXT_convolution -#define GL_EXT_convolution 1 -GLAPI int GLAD_GL_EXT_convolution; -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image); -GLAPI PFNGLCONVOLUTIONFILTER1DEXTPROC glad_glConvolutionFilter1DEXT; -#define glConvolutionFilter1DEXT glad_glConvolutionFilter1DEXT -typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image); -GLAPI PFNGLCONVOLUTIONFILTER2DEXTPROC glad_glConvolutionFilter2DEXT; -#define glConvolutionFilter2DEXT glad_glConvolutionFilter2DEXT -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC)(GLenum target, GLenum pname, GLfloat params); -GLAPI PFNGLCONVOLUTIONPARAMETERFEXTPROC glad_glConvolutionParameterfEXT; -#define glConvolutionParameterfEXT glad_glConvolutionParameterfEXT -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLCONVOLUTIONPARAMETERFVEXTPROC glad_glConvolutionParameterfvEXT; -#define glConvolutionParameterfvEXT glad_glConvolutionParameterfvEXT -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC)(GLenum target, GLenum pname, GLint params); -GLAPI PFNGLCONVOLUTIONPARAMETERIEXTPROC glad_glConvolutionParameteriEXT; -#define glConvolutionParameteriEXT glad_glConvolutionParameteriEXT -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLCONVOLUTIONPARAMETERIVEXTPROC glad_glConvolutionParameterivEXT; -#define glConvolutionParameterivEXT glad_glConvolutionParameterivEXT -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC glad_glCopyConvolutionFilter1DEXT; -#define glCopyConvolutionFilter1DEXT glad_glCopyConvolutionFilter1DEXT -typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC glad_glCopyConvolutionFilter2DEXT; -#define glCopyConvolutionFilter2DEXT glad_glCopyConvolutionFilter2DEXT -typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC)(GLenum target, GLenum format, GLenum type, void *image); -GLAPI PFNGLGETCONVOLUTIONFILTEREXTPROC glad_glGetConvolutionFilterEXT; -#define glGetConvolutionFilterEXT glad_glGetConvolutionFilterEXT -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC glad_glGetConvolutionParameterfvEXT; -#define glGetConvolutionParameterfvEXT glad_glGetConvolutionParameterfvEXT -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC glad_glGetConvolutionParameterivEXT; -#define glGetConvolutionParameterivEXT glad_glGetConvolutionParameterivEXT -typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC)(GLenum target, GLenum format, GLenum type, void *row, void *column, void *span); -GLAPI PFNGLGETSEPARABLEFILTEREXTPROC glad_glGetSeparableFilterEXT; -#define glGetSeparableFilterEXT glad_glGetSeparableFilterEXT -typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column); -GLAPI PFNGLSEPARABLEFILTER2DEXTPROC glad_glSeparableFilter2DEXT; -#define glSeparableFilter2DEXT glad_glSeparableFilter2DEXT -#endif -#ifndef GL_EXT_coordinate_frame -#define GL_EXT_coordinate_frame 1 -GLAPI int GLAD_GL_EXT_coordinate_frame; -typedef void (APIENTRYP PFNGLTANGENT3BEXTPROC)(GLbyte tx, GLbyte ty, GLbyte tz); -GLAPI PFNGLTANGENT3BEXTPROC glad_glTangent3bEXT; -#define glTangent3bEXT glad_glTangent3bEXT -typedef void (APIENTRYP PFNGLTANGENT3BVEXTPROC)(const GLbyte *v); -GLAPI PFNGLTANGENT3BVEXTPROC glad_glTangent3bvEXT; -#define glTangent3bvEXT glad_glTangent3bvEXT -typedef void (APIENTRYP PFNGLTANGENT3DEXTPROC)(GLdouble tx, GLdouble ty, GLdouble tz); -GLAPI PFNGLTANGENT3DEXTPROC glad_glTangent3dEXT; -#define glTangent3dEXT glad_glTangent3dEXT -typedef void (APIENTRYP PFNGLTANGENT3DVEXTPROC)(const GLdouble *v); -GLAPI PFNGLTANGENT3DVEXTPROC glad_glTangent3dvEXT; -#define glTangent3dvEXT glad_glTangent3dvEXT -typedef void (APIENTRYP PFNGLTANGENT3FEXTPROC)(GLfloat tx, GLfloat ty, GLfloat tz); -GLAPI PFNGLTANGENT3FEXTPROC glad_glTangent3fEXT; -#define glTangent3fEXT glad_glTangent3fEXT -typedef void (APIENTRYP PFNGLTANGENT3FVEXTPROC)(const GLfloat *v); -GLAPI PFNGLTANGENT3FVEXTPROC glad_glTangent3fvEXT; -#define glTangent3fvEXT glad_glTangent3fvEXT -typedef void (APIENTRYP PFNGLTANGENT3IEXTPROC)(GLint tx, GLint ty, GLint tz); -GLAPI PFNGLTANGENT3IEXTPROC glad_glTangent3iEXT; -#define glTangent3iEXT glad_glTangent3iEXT -typedef void (APIENTRYP PFNGLTANGENT3IVEXTPROC)(const GLint *v); -GLAPI PFNGLTANGENT3IVEXTPROC glad_glTangent3ivEXT; -#define glTangent3ivEXT glad_glTangent3ivEXT -typedef void (APIENTRYP PFNGLTANGENT3SEXTPROC)(GLshort tx, GLshort ty, GLshort tz); -GLAPI PFNGLTANGENT3SEXTPROC glad_glTangent3sEXT; -#define glTangent3sEXT glad_glTangent3sEXT -typedef void (APIENTRYP PFNGLTANGENT3SVEXTPROC)(const GLshort *v); -GLAPI PFNGLTANGENT3SVEXTPROC glad_glTangent3svEXT; -#define glTangent3svEXT glad_glTangent3svEXT -typedef void (APIENTRYP PFNGLBINORMAL3BEXTPROC)(GLbyte bx, GLbyte by, GLbyte bz); -GLAPI PFNGLBINORMAL3BEXTPROC glad_glBinormal3bEXT; -#define glBinormal3bEXT glad_glBinormal3bEXT -typedef void (APIENTRYP PFNGLBINORMAL3BVEXTPROC)(const GLbyte *v); -GLAPI PFNGLBINORMAL3BVEXTPROC glad_glBinormal3bvEXT; -#define glBinormal3bvEXT glad_glBinormal3bvEXT -typedef void (APIENTRYP PFNGLBINORMAL3DEXTPROC)(GLdouble bx, GLdouble by, GLdouble bz); -GLAPI PFNGLBINORMAL3DEXTPROC glad_glBinormal3dEXT; -#define glBinormal3dEXT glad_glBinormal3dEXT -typedef void (APIENTRYP PFNGLBINORMAL3DVEXTPROC)(const GLdouble *v); -GLAPI PFNGLBINORMAL3DVEXTPROC glad_glBinormal3dvEXT; -#define glBinormal3dvEXT glad_glBinormal3dvEXT -typedef void (APIENTRYP PFNGLBINORMAL3FEXTPROC)(GLfloat bx, GLfloat by, GLfloat bz); -GLAPI PFNGLBINORMAL3FEXTPROC glad_glBinormal3fEXT; -#define glBinormal3fEXT glad_glBinormal3fEXT -typedef void (APIENTRYP PFNGLBINORMAL3FVEXTPROC)(const GLfloat *v); -GLAPI PFNGLBINORMAL3FVEXTPROC glad_glBinormal3fvEXT; -#define glBinormal3fvEXT glad_glBinormal3fvEXT -typedef void (APIENTRYP PFNGLBINORMAL3IEXTPROC)(GLint bx, GLint by, GLint bz); -GLAPI PFNGLBINORMAL3IEXTPROC glad_glBinormal3iEXT; -#define glBinormal3iEXT glad_glBinormal3iEXT -typedef void (APIENTRYP PFNGLBINORMAL3IVEXTPROC)(const GLint *v); -GLAPI PFNGLBINORMAL3IVEXTPROC glad_glBinormal3ivEXT; -#define glBinormal3ivEXT glad_glBinormal3ivEXT -typedef void (APIENTRYP PFNGLBINORMAL3SEXTPROC)(GLshort bx, GLshort by, GLshort bz); -GLAPI PFNGLBINORMAL3SEXTPROC glad_glBinormal3sEXT; -#define glBinormal3sEXT glad_glBinormal3sEXT -typedef void (APIENTRYP PFNGLBINORMAL3SVEXTPROC)(const GLshort *v); -GLAPI PFNGLBINORMAL3SVEXTPROC glad_glBinormal3svEXT; -#define glBinormal3svEXT glad_glBinormal3svEXT -typedef void (APIENTRYP PFNGLTANGENTPOINTEREXTPROC)(GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLTANGENTPOINTEREXTPROC glad_glTangentPointerEXT; -#define glTangentPointerEXT glad_glTangentPointerEXT -typedef void (APIENTRYP PFNGLBINORMALPOINTEREXTPROC)(GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLBINORMALPOINTEREXTPROC glad_glBinormalPointerEXT; -#define glBinormalPointerEXT glad_glBinormalPointerEXT -#endif -#ifndef GL_EXT_copy_texture -#define GL_EXT_copy_texture 1 -GLAPI int GLAD_GL_EXT_copy_texture; -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI PFNGLCOPYTEXIMAGE1DEXTPROC glad_glCopyTexImage1DEXT; -#define glCopyTexImage1DEXT glad_glCopyTexImage1DEXT -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI PFNGLCOPYTEXIMAGE2DEXTPROC glad_glCopyTexImage2DEXT; -#define glCopyTexImage2DEXT glad_glCopyTexImage2DEXT -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYTEXSUBIMAGE1DEXTPROC glad_glCopyTexSubImage1DEXT; -#define glCopyTexSubImage1DEXT glad_glCopyTexSubImage1DEXT -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXSUBIMAGE2DEXTPROC glad_glCopyTexSubImage2DEXT; -#define glCopyTexSubImage2DEXT glad_glCopyTexSubImage2DEXT -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXSUBIMAGE3DEXTPROC glad_glCopyTexSubImage3DEXT; -#define glCopyTexSubImage3DEXT glad_glCopyTexSubImage3DEXT -#endif -#ifndef GL_EXT_cull_vertex -#define GL_EXT_cull_vertex 1 -GLAPI int GLAD_GL_EXT_cull_vertex; -typedef void (APIENTRYP PFNGLCULLPARAMETERDVEXTPROC)(GLenum pname, GLdouble *params); -GLAPI PFNGLCULLPARAMETERDVEXTPROC glad_glCullParameterdvEXT; -#define glCullParameterdvEXT glad_glCullParameterdvEXT -typedef void (APIENTRYP PFNGLCULLPARAMETERFVEXTPROC)(GLenum pname, GLfloat *params); -GLAPI PFNGLCULLPARAMETERFVEXTPROC glad_glCullParameterfvEXT; -#define glCullParameterfvEXT glad_glCullParameterfvEXT -#endif -#ifndef GL_EXT_debug_label -#define GL_EXT_debug_label 1 -GLAPI int GLAD_GL_EXT_debug_label; -typedef void (APIENTRYP PFNGLLABELOBJECTEXTPROC)(GLenum type, GLuint object, GLsizei length, const GLchar *label); -GLAPI PFNGLLABELOBJECTEXTPROC glad_glLabelObjectEXT; -#define glLabelObjectEXT glad_glLabelObjectEXT -typedef void (APIENTRYP PFNGLGETOBJECTLABELEXTPROC)(GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label); -GLAPI PFNGLGETOBJECTLABELEXTPROC glad_glGetObjectLabelEXT; -#define glGetObjectLabelEXT glad_glGetObjectLabelEXT -#endif -#ifndef GL_EXT_debug_marker -#define GL_EXT_debug_marker 1 -GLAPI int GLAD_GL_EXT_debug_marker; -typedef void (APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC)(GLsizei length, const GLchar *marker); -GLAPI PFNGLINSERTEVENTMARKEREXTPROC glad_glInsertEventMarkerEXT; -#define glInsertEventMarkerEXT glad_glInsertEventMarkerEXT -typedef void (APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC)(GLsizei length, const GLchar *marker); -GLAPI PFNGLPUSHGROUPMARKEREXTPROC glad_glPushGroupMarkerEXT; -#define glPushGroupMarkerEXT glad_glPushGroupMarkerEXT -typedef void (APIENTRYP PFNGLPOPGROUPMARKEREXTPROC)(void); -GLAPI PFNGLPOPGROUPMARKEREXTPROC glad_glPopGroupMarkerEXT; -#define glPopGroupMarkerEXT glad_glPopGroupMarkerEXT -#endif -#ifndef GL_EXT_depth_bounds_test -#define GL_EXT_depth_bounds_test 1 -GLAPI int GLAD_GL_EXT_depth_bounds_test; -typedef void (APIENTRYP PFNGLDEPTHBOUNDSEXTPROC)(GLclampd zmin, GLclampd zmax); -GLAPI PFNGLDEPTHBOUNDSEXTPROC glad_glDepthBoundsEXT; -#define glDepthBoundsEXT glad_glDepthBoundsEXT -#endif -#ifndef GL_EXT_direct_state_access -#define GL_EXT_direct_state_access 1 -GLAPI int GLAD_GL_EXT_direct_state_access; -typedef void (APIENTRYP PFNGLMATRIXLOADFEXTPROC)(GLenum mode, const GLfloat *m); -GLAPI PFNGLMATRIXLOADFEXTPROC glad_glMatrixLoadfEXT; -#define glMatrixLoadfEXT glad_glMatrixLoadfEXT -typedef void (APIENTRYP PFNGLMATRIXLOADDEXTPROC)(GLenum mode, const GLdouble *m); -GLAPI PFNGLMATRIXLOADDEXTPROC glad_glMatrixLoaddEXT; -#define glMatrixLoaddEXT glad_glMatrixLoaddEXT -typedef void (APIENTRYP PFNGLMATRIXMULTFEXTPROC)(GLenum mode, const GLfloat *m); -GLAPI PFNGLMATRIXMULTFEXTPROC glad_glMatrixMultfEXT; -#define glMatrixMultfEXT glad_glMatrixMultfEXT -typedef void (APIENTRYP PFNGLMATRIXMULTDEXTPROC)(GLenum mode, const GLdouble *m); -GLAPI PFNGLMATRIXMULTDEXTPROC glad_glMatrixMultdEXT; -#define glMatrixMultdEXT glad_glMatrixMultdEXT -typedef void (APIENTRYP PFNGLMATRIXLOADIDENTITYEXTPROC)(GLenum mode); -GLAPI PFNGLMATRIXLOADIDENTITYEXTPROC glad_glMatrixLoadIdentityEXT; -#define glMatrixLoadIdentityEXT glad_glMatrixLoadIdentityEXT -typedef void (APIENTRYP PFNGLMATRIXROTATEFEXTPROC)(GLenum mode, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLMATRIXROTATEFEXTPROC glad_glMatrixRotatefEXT; -#define glMatrixRotatefEXT glad_glMatrixRotatefEXT -typedef void (APIENTRYP PFNGLMATRIXROTATEDEXTPROC)(GLenum mode, GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLMATRIXROTATEDEXTPROC glad_glMatrixRotatedEXT; -#define glMatrixRotatedEXT glad_glMatrixRotatedEXT -typedef void (APIENTRYP PFNGLMATRIXSCALEFEXTPROC)(GLenum mode, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLMATRIXSCALEFEXTPROC glad_glMatrixScalefEXT; -#define glMatrixScalefEXT glad_glMatrixScalefEXT -typedef void (APIENTRYP PFNGLMATRIXSCALEDEXTPROC)(GLenum mode, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLMATRIXSCALEDEXTPROC glad_glMatrixScaledEXT; -#define glMatrixScaledEXT glad_glMatrixScaledEXT -typedef void (APIENTRYP PFNGLMATRIXTRANSLATEFEXTPROC)(GLenum mode, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLMATRIXTRANSLATEFEXTPROC glad_glMatrixTranslatefEXT; -#define glMatrixTranslatefEXT glad_glMatrixTranslatefEXT -typedef void (APIENTRYP PFNGLMATRIXTRANSLATEDEXTPROC)(GLenum mode, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLMATRIXTRANSLATEDEXTPROC glad_glMatrixTranslatedEXT; -#define glMatrixTranslatedEXT glad_glMatrixTranslatedEXT -typedef void (APIENTRYP PFNGLMATRIXFRUSTUMEXTPROC)(GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI PFNGLMATRIXFRUSTUMEXTPROC glad_glMatrixFrustumEXT; -#define glMatrixFrustumEXT glad_glMatrixFrustumEXT -typedef void (APIENTRYP PFNGLMATRIXORTHOEXTPROC)(GLenum mode, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI PFNGLMATRIXORTHOEXTPROC glad_glMatrixOrthoEXT; -#define glMatrixOrthoEXT glad_glMatrixOrthoEXT -typedef void (APIENTRYP PFNGLMATRIXPOPEXTPROC)(GLenum mode); -GLAPI PFNGLMATRIXPOPEXTPROC glad_glMatrixPopEXT; -#define glMatrixPopEXT glad_glMatrixPopEXT -typedef void (APIENTRYP PFNGLMATRIXPUSHEXTPROC)(GLenum mode); -GLAPI PFNGLMATRIXPUSHEXTPROC glad_glMatrixPushEXT; -#define glMatrixPushEXT glad_glMatrixPushEXT -typedef void (APIENTRYP PFNGLCLIENTATTRIBDEFAULTEXTPROC)(GLbitfield mask); -GLAPI PFNGLCLIENTATTRIBDEFAULTEXTPROC glad_glClientAttribDefaultEXT; -#define glClientAttribDefaultEXT glad_glClientAttribDefaultEXT -typedef void (APIENTRYP PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC)(GLbitfield mask); -GLAPI PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC glad_glPushClientAttribDefaultEXT; -#define glPushClientAttribDefaultEXT glad_glPushClientAttribDefaultEXT -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFEXTPROC)(GLuint texture, GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLTEXTUREPARAMETERFEXTPROC glad_glTextureParameterfEXT; -#define glTextureParameterfEXT glad_glTextureParameterfEXT -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVEXTPROC)(GLuint texture, GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLTEXTUREPARAMETERFVEXTPROC glad_glTextureParameterfvEXT; -#define glTextureParameterfvEXT glad_glTextureParameterfvEXT -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIEXTPROC)(GLuint texture, GLenum target, GLenum pname, GLint param); -GLAPI PFNGLTEXTUREPARAMETERIEXTPROC glad_glTextureParameteriEXT; -#define glTextureParameteriEXT glad_glTextureParameteriEXT -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVEXTPROC)(GLuint texture, GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLTEXTUREPARAMETERIVEXTPROC glad_glTextureParameterivEXT; -#define glTextureParameterivEXT glad_glTextureParameterivEXT -typedef void (APIENTRYP PFNGLTEXTUREIMAGE1DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTUREIMAGE1DEXTPROC glad_glTextureImage1DEXT; -#define glTextureImage1DEXT glad_glTextureImage1DEXT -typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTUREIMAGE2DEXTPROC glad_glTextureImage2DEXT; -#define glTextureImage2DEXT glad_glTextureImage2DEXT -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTURESUBIMAGE1DEXTPROC glad_glTextureSubImage1DEXT; -#define glTextureSubImage1DEXT glad_glTextureSubImage1DEXT -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTURESUBIMAGE2DEXTPROC glad_glTextureSubImage2DEXT; -#define glTextureSubImage2DEXT glad_glTextureSubImage2DEXT -typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE1DEXTPROC)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI PFNGLCOPYTEXTUREIMAGE1DEXTPROC glad_glCopyTextureImage1DEXT; -#define glCopyTextureImage1DEXT glad_glCopyTextureImage1DEXT -typedef void (APIENTRYP PFNGLCOPYTEXTUREIMAGE2DEXTPROC)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI PFNGLCOPYTEXTUREIMAGE2DEXTPROC glad_glCopyTextureImage2DEXT; -#define glCopyTextureImage2DEXT glad_glCopyTextureImage2DEXT -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC glad_glCopyTextureSubImage1DEXT; -#define glCopyTextureSubImage1DEXT glad_glCopyTextureSubImage1DEXT -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC glad_glCopyTextureSubImage2DEXT; -#define glCopyTextureSubImage2DEXT glad_glCopyTextureSubImage2DEXT -typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEEXTPROC)(GLuint texture, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); -GLAPI PFNGLGETTEXTUREIMAGEEXTPROC glad_glGetTextureImageEXT; -#define glGetTextureImageEXT glad_glGetTextureImageEXT -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVEXTPROC)(GLuint texture, GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETTEXTUREPARAMETERFVEXTPROC glad_glGetTextureParameterfvEXT; -#define glGetTextureParameterfvEXT glad_glGetTextureParameterfvEXT -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVEXTPROC)(GLuint texture, GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXTUREPARAMETERIVEXTPROC glad_glGetTextureParameterivEXT; -#define glGetTextureParameterivEXT glad_glGetTextureParameterivEXT -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC)(GLuint texture, GLenum target, GLint level, GLenum pname, GLfloat *params); -GLAPI PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC glad_glGetTextureLevelParameterfvEXT; -#define glGetTextureLevelParameterfvEXT glad_glGetTextureLevelParameterfvEXT -typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC)(GLuint texture, GLenum target, GLint level, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC glad_glGetTextureLevelParameterivEXT; -#define glGetTextureLevelParameterivEXT glad_glGetTextureLevelParameterivEXT -typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTUREIMAGE3DEXTPROC glad_glTextureImage3DEXT; -#define glTextureImage3DEXT glad_glTextureImage3DEXT -typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXTURESUBIMAGE3DEXTPROC glad_glTextureSubImage3DEXT; -#define glTextureSubImage3DEXT glad_glTextureSubImage3DEXT -typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC glad_glCopyTextureSubImage3DEXT; -#define glCopyTextureSubImage3DEXT glad_glCopyTextureSubImage3DEXT -typedef void (APIENTRYP PFNGLBINDMULTITEXTUREEXTPROC)(GLenum texunit, GLenum target, GLuint texture); -GLAPI PFNGLBINDMULTITEXTUREEXTPROC glad_glBindMultiTextureEXT; -#define glBindMultiTextureEXT glad_glBindMultiTextureEXT -typedef void (APIENTRYP PFNGLMULTITEXCOORDPOINTEREXTPROC)(GLenum texunit, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLMULTITEXCOORDPOINTEREXTPROC glad_glMultiTexCoordPointerEXT; -#define glMultiTexCoordPointerEXT glad_glMultiTexCoordPointerEXT -typedef void (APIENTRYP PFNGLMULTITEXENVFEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLMULTITEXENVFEXTPROC glad_glMultiTexEnvfEXT; -#define glMultiTexEnvfEXT glad_glMultiTexEnvfEXT -typedef void (APIENTRYP PFNGLMULTITEXENVFVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLMULTITEXENVFVEXTPROC glad_glMultiTexEnvfvEXT; -#define glMultiTexEnvfvEXT glad_glMultiTexEnvfvEXT -typedef void (APIENTRYP PFNGLMULTITEXENVIEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLint param); -GLAPI PFNGLMULTITEXENVIEXTPROC glad_glMultiTexEnviEXT; -#define glMultiTexEnviEXT glad_glMultiTexEnviEXT -typedef void (APIENTRYP PFNGLMULTITEXENVIVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLMULTITEXENVIVEXTPROC glad_glMultiTexEnvivEXT; -#define glMultiTexEnvivEXT glad_glMultiTexEnvivEXT -typedef void (APIENTRYP PFNGLMULTITEXGENDEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, GLdouble param); -GLAPI PFNGLMULTITEXGENDEXTPROC glad_glMultiTexGendEXT; -#define glMultiTexGendEXT glad_glMultiTexGendEXT -typedef void (APIENTRYP PFNGLMULTITEXGENDVEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, const GLdouble *params); -GLAPI PFNGLMULTITEXGENDVEXTPROC glad_glMultiTexGendvEXT; -#define glMultiTexGendvEXT glad_glMultiTexGendvEXT -typedef void (APIENTRYP PFNGLMULTITEXGENFEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, GLfloat param); -GLAPI PFNGLMULTITEXGENFEXTPROC glad_glMultiTexGenfEXT; -#define glMultiTexGenfEXT glad_glMultiTexGenfEXT -typedef void (APIENTRYP PFNGLMULTITEXGENFVEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, const GLfloat *params); -GLAPI PFNGLMULTITEXGENFVEXTPROC glad_glMultiTexGenfvEXT; -#define glMultiTexGenfvEXT glad_glMultiTexGenfvEXT -typedef void (APIENTRYP PFNGLMULTITEXGENIEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, GLint param); -GLAPI PFNGLMULTITEXGENIEXTPROC glad_glMultiTexGeniEXT; -#define glMultiTexGeniEXT glad_glMultiTexGeniEXT -typedef void (APIENTRYP PFNGLMULTITEXGENIVEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, const GLint *params); -GLAPI PFNGLMULTITEXGENIVEXTPROC glad_glMultiTexGenivEXT; -#define glMultiTexGenivEXT glad_glMultiTexGenivEXT -typedef void (APIENTRYP PFNGLGETMULTITEXENVFVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMULTITEXENVFVEXTPROC glad_glGetMultiTexEnvfvEXT; -#define glGetMultiTexEnvfvEXT glad_glGetMultiTexEnvfvEXT -typedef void (APIENTRYP PFNGLGETMULTITEXENVIVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETMULTITEXENVIVEXTPROC glad_glGetMultiTexEnvivEXT; -#define glGetMultiTexEnvivEXT glad_glGetMultiTexEnvivEXT -typedef void (APIENTRYP PFNGLGETMULTITEXGENDVEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, GLdouble *params); -GLAPI PFNGLGETMULTITEXGENDVEXTPROC glad_glGetMultiTexGendvEXT; -#define glGetMultiTexGendvEXT glad_glGetMultiTexGendvEXT -typedef void (APIENTRYP PFNGLGETMULTITEXGENFVEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMULTITEXGENFVEXTPROC glad_glGetMultiTexGenfvEXT; -#define glGetMultiTexGenfvEXT glad_glGetMultiTexGenfvEXT -typedef void (APIENTRYP PFNGLGETMULTITEXGENIVEXTPROC)(GLenum texunit, GLenum coord, GLenum pname, GLint *params); -GLAPI PFNGLGETMULTITEXGENIVEXTPROC glad_glGetMultiTexGenivEXT; -#define glGetMultiTexGenivEXT glad_glGetMultiTexGenivEXT -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLint param); -GLAPI PFNGLMULTITEXPARAMETERIEXTPROC glad_glMultiTexParameteriEXT; -#define glMultiTexParameteriEXT glad_glMultiTexParameteriEXT -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLMULTITEXPARAMETERIVEXTPROC glad_glMultiTexParameterivEXT; -#define glMultiTexParameterivEXT glad_glMultiTexParameterivEXT -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLMULTITEXPARAMETERFEXTPROC glad_glMultiTexParameterfEXT; -#define glMultiTexParameterfEXT glad_glMultiTexParameterfEXT -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERFVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLMULTITEXPARAMETERFVEXTPROC glad_glMultiTexParameterfvEXT; -#define glMultiTexParameterfvEXT glad_glMultiTexParameterfvEXT -typedef void (APIENTRYP PFNGLMULTITEXIMAGE1DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLMULTITEXIMAGE1DEXTPROC glad_glMultiTexImage1DEXT; -#define glMultiTexImage1DEXT glad_glMultiTexImage1DEXT -typedef void (APIENTRYP PFNGLMULTITEXIMAGE2DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLMULTITEXIMAGE2DEXTPROC glad_glMultiTexImage2DEXT; -#define glMultiTexImage2DEXT glad_glMultiTexImage2DEXT -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE1DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLMULTITEXSUBIMAGE1DEXTPROC glad_glMultiTexSubImage1DEXT; -#define glMultiTexSubImage1DEXT glad_glMultiTexSubImage1DEXT -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE2DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLMULTITEXSUBIMAGE2DEXTPROC glad_glMultiTexSubImage2DEXT; -#define glMultiTexSubImage2DEXT glad_glMultiTexSubImage2DEXT -typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE1DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI PFNGLCOPYMULTITEXIMAGE1DEXTPROC glad_glCopyMultiTexImage1DEXT; -#define glCopyMultiTexImage1DEXT glad_glCopyMultiTexImage1DEXT -typedef void (APIENTRYP PFNGLCOPYMULTITEXIMAGE2DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI PFNGLCOPYMULTITEXIMAGE2DEXTPROC glad_glCopyMultiTexImage2DEXT; -#define glCopyMultiTexImage2DEXT glad_glCopyMultiTexImage2DEXT -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC glad_glCopyMultiTexSubImage1DEXT; -#define glCopyMultiTexSubImage1DEXT glad_glCopyMultiTexSubImage1DEXT -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC glad_glCopyMultiTexSubImage2DEXT; -#define glCopyMultiTexSubImage2DEXT glad_glCopyMultiTexSubImage2DEXT -typedef void (APIENTRYP PFNGLGETMULTITEXIMAGEEXTPROC)(GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels); -GLAPI PFNGLGETMULTITEXIMAGEEXTPROC glad_glGetMultiTexImageEXT; -#define glGetMultiTexImageEXT glad_glGetMultiTexImageEXT -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERFVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMULTITEXPARAMETERFVEXTPROC glad_glGetMultiTexParameterfvEXT; -#define glGetMultiTexParameterfvEXT glad_glGetMultiTexParameterfvEXT -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETMULTITEXPARAMETERIVEXTPROC glad_glGetMultiTexParameterivEXT; -#define glGetMultiTexParameterivEXT glad_glGetMultiTexParameterivEXT -typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC)(GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC glad_glGetMultiTexLevelParameterfvEXT; -#define glGetMultiTexLevelParameterfvEXT glad_glGetMultiTexLevelParameterfvEXT -typedef void (APIENTRYP PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC)(GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params); -GLAPI PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC glad_glGetMultiTexLevelParameterivEXT; -#define glGetMultiTexLevelParameterivEXT glad_glGetMultiTexLevelParameterivEXT -typedef void (APIENTRYP PFNGLMULTITEXIMAGE3DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLMULTITEXIMAGE3DEXTPROC glad_glMultiTexImage3DEXT; -#define glMultiTexImage3DEXT glad_glMultiTexImage3DEXT -typedef void (APIENTRYP PFNGLMULTITEXSUBIMAGE3DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLMULTITEXSUBIMAGE3DEXTPROC glad_glMultiTexSubImage3DEXT; -#define glMultiTexSubImage3DEXT glad_glMultiTexSubImage3DEXT -typedef void (APIENTRYP PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC glad_glCopyMultiTexSubImage3DEXT; -#define glCopyMultiTexSubImage3DEXT glad_glCopyMultiTexSubImage3DEXT -typedef void (APIENTRYP PFNGLENABLECLIENTSTATEINDEXEDEXTPROC)(GLenum array, GLuint index); -GLAPI PFNGLENABLECLIENTSTATEINDEXEDEXTPROC glad_glEnableClientStateIndexedEXT; -#define glEnableClientStateIndexedEXT glad_glEnableClientStateIndexedEXT -typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC)(GLenum array, GLuint index); -GLAPI PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC glad_glDisableClientStateIndexedEXT; -#define glDisableClientStateIndexedEXT glad_glDisableClientStateIndexedEXT -typedef void (APIENTRYP PFNGLGETFLOATINDEXEDVEXTPROC)(GLenum target, GLuint index, GLfloat *data); -GLAPI PFNGLGETFLOATINDEXEDVEXTPROC glad_glGetFloatIndexedvEXT; -#define glGetFloatIndexedvEXT glad_glGetFloatIndexedvEXT -typedef void (APIENTRYP PFNGLGETDOUBLEINDEXEDVEXTPROC)(GLenum target, GLuint index, GLdouble *data); -GLAPI PFNGLGETDOUBLEINDEXEDVEXTPROC glad_glGetDoubleIndexedvEXT; -#define glGetDoubleIndexedvEXT glad_glGetDoubleIndexedvEXT -typedef void (APIENTRYP PFNGLGETPOINTERINDEXEDVEXTPROC)(GLenum target, GLuint index, void **data); -GLAPI PFNGLGETPOINTERINDEXEDVEXTPROC glad_glGetPointerIndexedvEXT; -#define glGetPointerIndexedvEXT glad_glGetPointerIndexedvEXT -typedef void (APIENTRYP PFNGLENABLEINDEXEDEXTPROC)(GLenum target, GLuint index); -GLAPI PFNGLENABLEINDEXEDEXTPROC glad_glEnableIndexedEXT; -#define glEnableIndexedEXT glad_glEnableIndexedEXT -typedef void (APIENTRYP PFNGLDISABLEINDEXEDEXTPROC)(GLenum target, GLuint index); -GLAPI PFNGLDISABLEINDEXEDEXTPROC glad_glDisableIndexedEXT; -#define glDisableIndexedEXT glad_glDisableIndexedEXT -typedef GLboolean (APIENTRYP PFNGLISENABLEDINDEXEDEXTPROC)(GLenum target, GLuint index); -GLAPI PFNGLISENABLEDINDEXEDEXTPROC glad_glIsEnabledIndexedEXT; -#define glIsEnabledIndexedEXT glad_glIsEnabledIndexedEXT -typedef void (APIENTRYP PFNGLGETINTEGERINDEXEDVEXTPROC)(GLenum target, GLuint index, GLint *data); -GLAPI PFNGLGETINTEGERINDEXEDVEXTPROC glad_glGetIntegerIndexedvEXT; -#define glGetIntegerIndexedvEXT glad_glGetIntegerIndexedvEXT -typedef void (APIENTRYP PFNGLGETBOOLEANINDEXEDVEXTPROC)(GLenum target, GLuint index, GLboolean *data); -GLAPI PFNGLGETBOOLEANINDEXEDVEXTPROC glad_glGetBooleanIndexedvEXT; -#define glGetBooleanIndexedvEXT glad_glGetBooleanIndexedvEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC glad_glCompressedTextureImage3DEXT; -#define glCompressedTextureImage3DEXT glad_glCompressedTextureImage3DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC glad_glCompressedTextureImage2DEXT; -#define glCompressedTextureImage2DEXT glad_glCompressedTextureImage2DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC)(GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC glad_glCompressedTextureImage1DEXT; -#define glCompressedTextureImage1DEXT glad_glCompressedTextureImage1DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC glad_glCompressedTextureSubImage3DEXT; -#define glCompressedTextureSubImage3DEXT glad_glCompressedTextureSubImage3DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC glad_glCompressedTextureSubImage2DEXT; -#define glCompressedTextureSubImage2DEXT glad_glCompressedTextureSubImage2DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC)(GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC glad_glCompressedTextureSubImage1DEXT; -#define glCompressedTextureSubImage1DEXT glad_glCompressedTextureSubImage1DEXT -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC)(GLuint texture, GLenum target, GLint lod, void *img); -GLAPI PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC glad_glGetCompressedTextureImageEXT; -#define glGetCompressedTextureImageEXT glad_glGetCompressedTextureImageEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC glad_glCompressedMultiTexImage3DEXT; -#define glCompressedMultiTexImage3DEXT glad_glCompressedMultiTexImage3DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC glad_glCompressedMultiTexImage2DEXT; -#define glCompressedMultiTexImage2DEXT glad_glCompressedMultiTexImage2DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC glad_glCompressedMultiTexImage1DEXT; -#define glCompressedMultiTexImage1DEXT glad_glCompressedMultiTexImage1DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC glad_glCompressedMultiTexSubImage3DEXT; -#define glCompressedMultiTexSubImage3DEXT glad_glCompressedMultiTexSubImage3DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC glad_glCompressedMultiTexSubImage2DEXT; -#define glCompressedMultiTexSubImage2DEXT glad_glCompressedMultiTexSubImage2DEXT -typedef void (APIENTRYP PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC)(GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits); -GLAPI PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC glad_glCompressedMultiTexSubImage1DEXT; -#define glCompressedMultiTexSubImage1DEXT glad_glCompressedMultiTexSubImage1DEXT -typedef void (APIENTRYP PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC)(GLenum texunit, GLenum target, GLint lod, void *img); -GLAPI PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC glad_glGetCompressedMultiTexImageEXT; -#define glGetCompressedMultiTexImageEXT glad_glGetCompressedMultiTexImageEXT -typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEFEXTPROC)(GLenum mode, const GLfloat *m); -GLAPI PFNGLMATRIXLOADTRANSPOSEFEXTPROC glad_glMatrixLoadTransposefEXT; -#define glMatrixLoadTransposefEXT glad_glMatrixLoadTransposefEXT -typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSEDEXTPROC)(GLenum mode, const GLdouble *m); -GLAPI PFNGLMATRIXLOADTRANSPOSEDEXTPROC glad_glMatrixLoadTransposedEXT; -#define glMatrixLoadTransposedEXT glad_glMatrixLoadTransposedEXT -typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEFEXTPROC)(GLenum mode, const GLfloat *m); -GLAPI PFNGLMATRIXMULTTRANSPOSEFEXTPROC glad_glMatrixMultTransposefEXT; -#define glMatrixMultTransposefEXT glad_glMatrixMultTransposefEXT -typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSEDEXTPROC)(GLenum mode, const GLdouble *m); -GLAPI PFNGLMATRIXMULTTRANSPOSEDEXTPROC glad_glMatrixMultTransposedEXT; -#define glMatrixMultTransposedEXT glad_glMatrixMultTransposedEXT -typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAEXTPROC)(GLuint buffer, GLsizeiptr size, const void *data, GLenum usage); -GLAPI PFNGLNAMEDBUFFERDATAEXTPROC glad_glNamedBufferDataEXT; -#define glNamedBufferDataEXT glad_glNamedBufferDataEXT -typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAEXTPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); -GLAPI PFNGLNAMEDBUFFERSUBDATAEXTPROC glad_glNamedBufferSubDataEXT; -#define glNamedBufferSubDataEXT glad_glNamedBufferSubDataEXT -typedef void * (APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC)(GLuint buffer, GLenum access); -GLAPI PFNGLMAPNAMEDBUFFEREXTPROC glad_glMapNamedBufferEXT; -#define glMapNamedBufferEXT glad_glMapNamedBufferEXT -typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFEREXTPROC)(GLuint buffer); -GLAPI PFNGLUNMAPNAMEDBUFFEREXTPROC glad_glUnmapNamedBufferEXT; -#define glUnmapNamedBufferEXT glad_glUnmapNamedBufferEXT -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC)(GLuint buffer, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC glad_glGetNamedBufferParameterivEXT; -#define glGetNamedBufferParameterivEXT glad_glGetNamedBufferParameterivEXT -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVEXTPROC)(GLuint buffer, GLenum pname, void **params); -GLAPI PFNGLGETNAMEDBUFFERPOINTERVEXTPROC glad_glGetNamedBufferPointervEXT; -#define glGetNamedBufferPointervEXT glad_glGetNamedBufferPointervEXT -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAEXTPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, void *data); -GLAPI PFNGLGETNAMEDBUFFERSUBDATAEXTPROC glad_glGetNamedBufferSubDataEXT; -#define glGetNamedBufferSubDataEXT glad_glGetNamedBufferSubDataEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC)(GLuint program, GLint location, GLfloat v0); -GLAPI PFNGLPROGRAMUNIFORM1FEXTPROC glad_glProgramUniform1fEXT; -#define glProgramUniform1fEXT glad_glProgramUniform1fEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1); -GLAPI PFNGLPROGRAMUNIFORM2FEXTPROC glad_glProgramUniform2fEXT; -#define glProgramUniform2fEXT glad_glProgramUniform2fEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI PFNGLPROGRAMUNIFORM3FEXTPROC glad_glProgramUniform3fEXT; -#define glProgramUniform3fEXT glad_glProgramUniform3fEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC)(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI PFNGLPROGRAMUNIFORM4FEXTPROC glad_glProgramUniform4fEXT; -#define glProgramUniform4fEXT glad_glProgramUniform4fEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC)(GLuint program, GLint location, GLint v0); -GLAPI PFNGLPROGRAMUNIFORM1IEXTPROC glad_glProgramUniform1iEXT; -#define glProgramUniform1iEXT glad_glProgramUniform1iEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC)(GLuint program, GLint location, GLint v0, GLint v1); -GLAPI PFNGLPROGRAMUNIFORM2IEXTPROC glad_glProgramUniform2iEXT; -#define glProgramUniform2iEXT glad_glProgramUniform2iEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -GLAPI PFNGLPROGRAMUNIFORM3IEXTPROC glad_glProgramUniform3iEXT; -#define glProgramUniform3iEXT glad_glProgramUniform3iEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC)(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI PFNGLPROGRAMUNIFORM4IEXTPROC glad_glProgramUniform4iEXT; -#define glProgramUniform4iEXT glad_glProgramUniform4iEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORM1FVEXTPROC glad_glProgramUniform1fvEXT; -#define glProgramUniform1fvEXT glad_glProgramUniform1fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORM2FVEXTPROC glad_glProgramUniform2fvEXT; -#define glProgramUniform2fvEXT glad_glProgramUniform2fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORM3FVEXTPROC glad_glProgramUniform3fvEXT; -#define glProgramUniform3fvEXT glad_glProgramUniform3fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORM4FVEXTPROC glad_glProgramUniform4fvEXT; -#define glProgramUniform4fvEXT glad_glProgramUniform4fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLPROGRAMUNIFORM1IVEXTPROC glad_glProgramUniform1ivEXT; -#define glProgramUniform1ivEXT glad_glProgramUniform1ivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLPROGRAMUNIFORM2IVEXTPROC glad_glProgramUniform2ivEXT; -#define glProgramUniform2ivEXT glad_glProgramUniform2ivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLPROGRAMUNIFORM3IVEXTPROC glad_glProgramUniform3ivEXT; -#define glProgramUniform3ivEXT glad_glProgramUniform3ivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI PFNGLPROGRAMUNIFORM4IVEXTPROC glad_glProgramUniform4ivEXT; -#define glProgramUniform4ivEXT glad_glProgramUniform4ivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC glad_glProgramUniformMatrix2fvEXT; -#define glProgramUniformMatrix2fvEXT glad_glProgramUniformMatrix2fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC glad_glProgramUniformMatrix3fvEXT; -#define glProgramUniformMatrix3fvEXT glad_glProgramUniformMatrix3fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC glad_glProgramUniformMatrix4fvEXT; -#define glProgramUniformMatrix4fvEXT glad_glProgramUniformMatrix4fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC glad_glProgramUniformMatrix2x3fvEXT; -#define glProgramUniformMatrix2x3fvEXT glad_glProgramUniformMatrix2x3fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC glad_glProgramUniformMatrix3x2fvEXT; -#define glProgramUniformMatrix3x2fvEXT glad_glProgramUniformMatrix3x2fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC glad_glProgramUniformMatrix2x4fvEXT; -#define glProgramUniformMatrix2x4fvEXT glad_glProgramUniformMatrix2x4fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC glad_glProgramUniformMatrix4x2fvEXT; -#define glProgramUniformMatrix4x2fvEXT glad_glProgramUniformMatrix4x2fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC glad_glProgramUniformMatrix3x4fvEXT; -#define glProgramUniformMatrix3x4fvEXT glad_glProgramUniformMatrix3x4fvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC glad_glProgramUniformMatrix4x3fvEXT; -#define glProgramUniformMatrix4x3fvEXT glad_glProgramUniformMatrix4x3fvEXT -typedef void (APIENTRYP PFNGLTEXTUREBUFFEREXTPROC)(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer); -GLAPI PFNGLTEXTUREBUFFEREXTPROC glad_glTextureBufferEXT; -#define glTextureBufferEXT glad_glTextureBufferEXT -typedef void (APIENTRYP PFNGLMULTITEXBUFFEREXTPROC)(GLenum texunit, GLenum target, GLenum internalformat, GLuint buffer); -GLAPI PFNGLMULTITEXBUFFEREXTPROC glad_glMultiTexBufferEXT; -#define glMultiTexBufferEXT glad_glMultiTexBufferEXT -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVEXTPROC)(GLuint texture, GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLTEXTUREPARAMETERIIVEXTPROC glad_glTextureParameterIivEXT; -#define glTextureParameterIivEXT glad_glTextureParameterIivEXT -typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVEXTPROC)(GLuint texture, GLenum target, GLenum pname, const GLuint *params); -GLAPI PFNGLTEXTUREPARAMETERIUIVEXTPROC glad_glTextureParameterIuivEXT; -#define glTextureParameterIuivEXT glad_glTextureParameterIuivEXT -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVEXTPROC)(GLuint texture, GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXTUREPARAMETERIIVEXTPROC glad_glGetTextureParameterIivEXT; -#define glGetTextureParameterIivEXT glad_glGetTextureParameterIivEXT -typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVEXTPROC)(GLuint texture, GLenum target, GLenum pname, GLuint *params); -GLAPI PFNGLGETTEXTUREPARAMETERIUIVEXTPROC glad_glGetTextureParameterIuivEXT; -#define glGetTextureParameterIuivEXT glad_glGetTextureParameterIuivEXT -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIIVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLMULTITEXPARAMETERIIVEXTPROC glad_glMultiTexParameterIivEXT; -#define glMultiTexParameterIivEXT glad_glMultiTexParameterIivEXT -typedef void (APIENTRYP PFNGLMULTITEXPARAMETERIUIVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, const GLuint *params); -GLAPI PFNGLMULTITEXPARAMETERIUIVEXTPROC glad_glMultiTexParameterIuivEXT; -#define glMultiTexParameterIuivEXT glad_glMultiTexParameterIuivEXT -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIIVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETMULTITEXPARAMETERIIVEXTPROC glad_glGetMultiTexParameterIivEXT; -#define glGetMultiTexParameterIivEXT glad_glGetMultiTexParameterIivEXT -typedef void (APIENTRYP PFNGLGETMULTITEXPARAMETERIUIVEXTPROC)(GLenum texunit, GLenum target, GLenum pname, GLuint *params); -GLAPI PFNGLGETMULTITEXPARAMETERIUIVEXTPROC glad_glGetMultiTexParameterIuivEXT; -#define glGetMultiTexParameterIuivEXT glad_glGetMultiTexParameterIuivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC)(GLuint program, GLint location, GLuint v0); -GLAPI PFNGLPROGRAMUNIFORM1UIEXTPROC glad_glProgramUniform1uiEXT; -#define glProgramUniform1uiEXT glad_glProgramUniform1uiEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC)(GLuint program, GLint location, GLuint v0, GLuint v1); -GLAPI PFNGLPROGRAMUNIFORM2UIEXTPROC glad_glProgramUniform2uiEXT; -#define glProgramUniform2uiEXT glad_glProgramUniform2uiEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI PFNGLPROGRAMUNIFORM3UIEXTPROC glad_glProgramUniform3uiEXT; -#define glProgramUniform3uiEXT glad_glProgramUniform3uiEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC)(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI PFNGLPROGRAMUNIFORM4UIEXTPROC glad_glProgramUniform4uiEXT; -#define glProgramUniform4uiEXT glad_glProgramUniform4uiEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLPROGRAMUNIFORM1UIVEXTPROC glad_glProgramUniform1uivEXT; -#define glProgramUniform1uivEXT glad_glProgramUniform1uivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLPROGRAMUNIFORM2UIVEXTPROC glad_glProgramUniform2uivEXT; -#define glProgramUniform2uivEXT glad_glProgramUniform2uivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLPROGRAMUNIFORM3UIVEXTPROC glad_glProgramUniform3uivEXT; -#define glProgramUniform3uivEXT glad_glProgramUniform3uivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLPROGRAMUNIFORM4UIVEXTPROC glad_glProgramUniform4uivEXT; -#define glProgramUniform4uivEXT glad_glProgramUniform4uivEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC)(GLuint program, GLenum target, GLuint index, GLsizei count, const GLfloat *params); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC glad_glNamedProgramLocalParameters4fvEXT; -#define glNamedProgramLocalParameters4fvEXT glad_glNamedProgramLocalParameters4fvEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC)(GLuint program, GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC glad_glNamedProgramLocalParameterI4iEXT; -#define glNamedProgramLocalParameterI4iEXT glad_glNamedProgramLocalParameterI4iEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC)(GLuint program, GLenum target, GLuint index, const GLint *params); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC glad_glNamedProgramLocalParameterI4ivEXT; -#define glNamedProgramLocalParameterI4ivEXT glad_glNamedProgramLocalParameterI4ivEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC)(GLuint program, GLenum target, GLuint index, GLsizei count, const GLint *params); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC glad_glNamedProgramLocalParametersI4ivEXT; -#define glNamedProgramLocalParametersI4ivEXT glad_glNamedProgramLocalParametersI4ivEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC)(GLuint program, GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC glad_glNamedProgramLocalParameterI4uiEXT; -#define glNamedProgramLocalParameterI4uiEXT glad_glNamedProgramLocalParameterI4uiEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC)(GLuint program, GLenum target, GLuint index, const GLuint *params); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC glad_glNamedProgramLocalParameterI4uivEXT; -#define glNamedProgramLocalParameterI4uivEXT glad_glNamedProgramLocalParameterI4uivEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC)(GLuint program, GLenum target, GLuint index, GLsizei count, const GLuint *params); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC glad_glNamedProgramLocalParametersI4uivEXT; -#define glNamedProgramLocalParametersI4uivEXT glad_glNamedProgramLocalParametersI4uivEXT -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC)(GLuint program, GLenum target, GLuint index, GLint *params); -GLAPI PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC glad_glGetNamedProgramLocalParameterIivEXT; -#define glGetNamedProgramLocalParameterIivEXT glad_glGetNamedProgramLocalParameterIivEXT -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC)(GLuint program, GLenum target, GLuint index, GLuint *params); -GLAPI PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC glad_glGetNamedProgramLocalParameterIuivEXT; -#define glGetNamedProgramLocalParameterIuivEXT glad_glGetNamedProgramLocalParameterIuivEXT -typedef void (APIENTRYP PFNGLENABLECLIENTSTATEIEXTPROC)(GLenum array, GLuint index); -GLAPI PFNGLENABLECLIENTSTATEIEXTPROC glad_glEnableClientStateiEXT; -#define glEnableClientStateiEXT glad_glEnableClientStateiEXT -typedef void (APIENTRYP PFNGLDISABLECLIENTSTATEIEXTPROC)(GLenum array, GLuint index); -GLAPI PFNGLDISABLECLIENTSTATEIEXTPROC glad_glDisableClientStateiEXT; -#define glDisableClientStateiEXT glad_glDisableClientStateiEXT -typedef void (APIENTRYP PFNGLGETFLOATI_VEXTPROC)(GLenum pname, GLuint index, GLfloat *params); -GLAPI PFNGLGETFLOATI_VEXTPROC glad_glGetFloati_vEXT; -#define glGetFloati_vEXT glad_glGetFloati_vEXT -typedef void (APIENTRYP PFNGLGETDOUBLEI_VEXTPROC)(GLenum pname, GLuint index, GLdouble *params); -GLAPI PFNGLGETDOUBLEI_VEXTPROC glad_glGetDoublei_vEXT; -#define glGetDoublei_vEXT glad_glGetDoublei_vEXT -typedef void (APIENTRYP PFNGLGETPOINTERI_VEXTPROC)(GLenum pname, GLuint index, void **params); -GLAPI PFNGLGETPOINTERI_VEXTPROC glad_glGetPointeri_vEXT; -#define glGetPointeri_vEXT glad_glGetPointeri_vEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMSTRINGEXTPROC)(GLuint program, GLenum target, GLenum format, GLsizei len, const void *string); -GLAPI PFNGLNAMEDPROGRAMSTRINGEXTPROC glad_glNamedProgramStringEXT; -#define glNamedProgramStringEXT glad_glNamedProgramStringEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC)(GLuint program, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC glad_glNamedProgramLocalParameter4dEXT; -#define glNamedProgramLocalParameter4dEXT glad_glNamedProgramLocalParameter4dEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC)(GLuint program, GLenum target, GLuint index, const GLdouble *params); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC glad_glNamedProgramLocalParameter4dvEXT; -#define glNamedProgramLocalParameter4dvEXT glad_glNamedProgramLocalParameter4dvEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC)(GLuint program, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC glad_glNamedProgramLocalParameter4fEXT; -#define glNamedProgramLocalParameter4fEXT glad_glNamedProgramLocalParameter4fEXT -typedef void (APIENTRYP PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC)(GLuint program, GLenum target, GLuint index, const GLfloat *params); -GLAPI PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC glad_glNamedProgramLocalParameter4fvEXT; -#define glNamedProgramLocalParameter4fvEXT glad_glNamedProgramLocalParameter4fvEXT -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC)(GLuint program, GLenum target, GLuint index, GLdouble *params); -GLAPI PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC glad_glGetNamedProgramLocalParameterdvEXT; -#define glGetNamedProgramLocalParameterdvEXT glad_glGetNamedProgramLocalParameterdvEXT -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC)(GLuint program, GLenum target, GLuint index, GLfloat *params); -GLAPI PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC glad_glGetNamedProgramLocalParameterfvEXT; -#define glGetNamedProgramLocalParameterfvEXT glad_glGetNamedProgramLocalParameterfvEXT -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMIVEXTPROC)(GLuint program, GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDPROGRAMIVEXTPROC glad_glGetNamedProgramivEXT; -#define glGetNamedProgramivEXT glad_glGetNamedProgramivEXT -typedef void (APIENTRYP PFNGLGETNAMEDPROGRAMSTRINGEXTPROC)(GLuint program, GLenum target, GLenum pname, void *string); -GLAPI PFNGLGETNAMEDPROGRAMSTRINGEXTPROC glad_glGetNamedProgramStringEXT; -#define glGetNamedProgramStringEXT glad_glGetNamedProgramStringEXT -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC)(GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC glad_glNamedRenderbufferStorageEXT; -#define glNamedRenderbufferStorageEXT glad_glNamedRenderbufferStorageEXT -typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC)(GLuint renderbuffer, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC glad_glGetNamedRenderbufferParameterivEXT; -#define glGetNamedRenderbufferParameterivEXT glad_glGetNamedRenderbufferParameterivEXT -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC)(GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glad_glNamedRenderbufferStorageMultisampleEXT; -#define glNamedRenderbufferStorageMultisampleEXT glad_glNamedRenderbufferStorageMultisampleEXT -typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC)(GLuint renderbuffer, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC glad_glNamedRenderbufferStorageMultisampleCoverageEXT; -#define glNamedRenderbufferStorageMultisampleCoverageEXT glad_glNamedRenderbufferStorageMultisampleCoverageEXT -typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC)(GLuint framebuffer, GLenum target); -GLAPI PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC glad_glCheckNamedFramebufferStatusEXT; -#define glCheckNamedFramebufferStatusEXT glad_glCheckNamedFramebufferStatusEXT -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC)(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC glad_glNamedFramebufferTexture1DEXT; -#define glNamedFramebufferTexture1DEXT glad_glNamedFramebufferTexture1DEXT -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC)(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC glad_glNamedFramebufferTexture2DEXT; -#define glNamedFramebufferTexture2DEXT glad_glNamedFramebufferTexture2DEXT -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC)(GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC glad_glNamedFramebufferTexture3DEXT; -#define glNamedFramebufferTexture3DEXT glad_glNamedFramebufferTexture3DEXT -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC)(GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC glad_glNamedFramebufferRenderbufferEXT; -#define glNamedFramebufferRenderbufferEXT glad_glNamedFramebufferRenderbufferEXT -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC)(GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glad_glGetNamedFramebufferAttachmentParameterivEXT; -#define glGetNamedFramebufferAttachmentParameterivEXT glad_glGetNamedFramebufferAttachmentParameterivEXT -typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPEXTPROC)(GLuint texture, GLenum target); -GLAPI PFNGLGENERATETEXTUREMIPMAPEXTPROC glad_glGenerateTextureMipmapEXT; -#define glGenerateTextureMipmapEXT glad_glGenerateTextureMipmapEXT -typedef void (APIENTRYP PFNGLGENERATEMULTITEXMIPMAPEXTPROC)(GLenum texunit, GLenum target); -GLAPI PFNGLGENERATEMULTITEXMIPMAPEXTPROC glad_glGenerateMultiTexMipmapEXT; -#define glGenerateMultiTexMipmapEXT glad_glGenerateMultiTexMipmapEXT -typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC)(GLuint framebuffer, GLenum mode); -GLAPI PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC glad_glFramebufferDrawBufferEXT; -#define glFramebufferDrawBufferEXT glad_glFramebufferDrawBufferEXT -typedef void (APIENTRYP PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC)(GLuint framebuffer, GLsizei n, const GLenum *bufs); -GLAPI PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC glad_glFramebufferDrawBuffersEXT; -#define glFramebufferDrawBuffersEXT glad_glFramebufferDrawBuffersEXT -typedef void (APIENTRYP PFNGLFRAMEBUFFERREADBUFFEREXTPROC)(GLuint framebuffer, GLenum mode); -GLAPI PFNGLFRAMEBUFFERREADBUFFEREXTPROC glad_glFramebufferReadBufferEXT; -#define glFramebufferReadBufferEXT glad_glFramebufferReadBufferEXT -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC)(GLuint framebuffer, GLenum pname, GLint *params); -GLAPI PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC glad_glGetFramebufferParameterivEXT; -#define glGetFramebufferParameterivEXT glad_glGetFramebufferParameterivEXT -typedef void (APIENTRYP PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC)(GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC glad_glNamedCopyBufferSubDataEXT; -#define glNamedCopyBufferSubDataEXT glad_glNamedCopyBufferSubDataEXT -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level); -GLAPI PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC glad_glNamedFramebufferTextureEXT; -#define glNamedFramebufferTextureEXT glad_glNamedFramebufferTextureEXT -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC glad_glNamedFramebufferTextureLayerEXT; -#define glNamedFramebufferTextureLayerEXT glad_glNamedFramebufferTextureLayerEXT -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC)(GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLenum face); -GLAPI PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC glad_glNamedFramebufferTextureFaceEXT; -#define glNamedFramebufferTextureFaceEXT glad_glNamedFramebufferTextureFaceEXT -typedef void (APIENTRYP PFNGLTEXTURERENDERBUFFEREXTPROC)(GLuint texture, GLenum target, GLuint renderbuffer); -GLAPI PFNGLTEXTURERENDERBUFFEREXTPROC glad_glTextureRenderbufferEXT; -#define glTextureRenderbufferEXT glad_glTextureRenderbufferEXT -typedef void (APIENTRYP PFNGLMULTITEXRENDERBUFFEREXTPROC)(GLenum texunit, GLenum target, GLuint renderbuffer); -GLAPI PFNGLMULTITEXRENDERBUFFEREXTPROC glad_glMultiTexRenderbufferEXT; -#define glMultiTexRenderbufferEXT glad_glMultiTexRenderbufferEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC glad_glVertexArrayVertexOffsetEXT; -#define glVertexArrayVertexOffsetEXT glad_glVertexArrayVertexOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYCOLOROFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYCOLOROFFSETEXTPROC glad_glVertexArrayColorOffsetEXT; -#define glVertexArrayColorOffsetEXT glad_glVertexArrayColorOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC glad_glVertexArrayEdgeFlagOffsetEXT; -#define glVertexArrayEdgeFlagOffsetEXT glad_glVertexArrayEdgeFlagOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYINDEXOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYINDEXOFFSETEXTPROC glad_glVertexArrayIndexOffsetEXT; -#define glVertexArrayIndexOffsetEXT glad_glVertexArrayIndexOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYNORMALOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYNORMALOFFSETEXTPROC glad_glVertexArrayNormalOffsetEXT; -#define glVertexArrayNormalOffsetEXT glad_glVertexArrayNormalOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC glad_glVertexArrayTexCoordOffsetEXT; -#define glVertexArrayTexCoordOffsetEXT glad_glVertexArrayTexCoordOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLenum texunit, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC glad_glVertexArrayMultiTexCoordOffsetEXT; -#define glVertexArrayMultiTexCoordOffsetEXT glad_glVertexArrayMultiTexCoordOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC glad_glVertexArrayFogCoordOffsetEXT; -#define glVertexArrayFogCoordOffsetEXT glad_glVertexArrayFogCoordOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC glad_glVertexArraySecondaryColorOffsetEXT; -#define glVertexArraySecondaryColorOffsetEXT glad_glVertexArraySecondaryColorOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC glad_glVertexArrayVertexAttribOffsetEXT; -#define glVertexArrayVertexAttribOffsetEXT glad_glVertexArrayVertexAttribOffsetEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC glad_glVertexArrayVertexAttribIOffsetEXT; -#define glVertexArrayVertexAttribIOffsetEXT glad_glVertexArrayVertexAttribIOffsetEXT -typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYEXTPROC)(GLuint vaobj, GLenum array); -GLAPI PFNGLENABLEVERTEXARRAYEXTPROC glad_glEnableVertexArrayEXT; -#define glEnableVertexArrayEXT glad_glEnableVertexArrayEXT -typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYEXTPROC)(GLuint vaobj, GLenum array); -GLAPI PFNGLDISABLEVERTEXARRAYEXTPROC glad_glDisableVertexArrayEXT; -#define glDisableVertexArrayEXT glad_glDisableVertexArrayEXT -typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBEXTPROC)(GLuint vaobj, GLuint index); -GLAPI PFNGLENABLEVERTEXARRAYATTRIBEXTPROC glad_glEnableVertexArrayAttribEXT; -#define glEnableVertexArrayAttribEXT glad_glEnableVertexArrayAttribEXT -typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC)(GLuint vaobj, GLuint index); -GLAPI PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC glad_glDisableVertexArrayAttribEXT; -#define glDisableVertexArrayAttribEXT glad_glDisableVertexArrayAttribEXT -typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERVEXTPROC)(GLuint vaobj, GLenum pname, GLint *param); -GLAPI PFNGLGETVERTEXARRAYINTEGERVEXTPROC glad_glGetVertexArrayIntegervEXT; -#define glGetVertexArrayIntegervEXT glad_glGetVertexArrayIntegervEXT -typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERVEXTPROC)(GLuint vaobj, GLenum pname, void **param); -GLAPI PFNGLGETVERTEXARRAYPOINTERVEXTPROC glad_glGetVertexArrayPointervEXT; -#define glGetVertexArrayPointervEXT glad_glGetVertexArrayPointervEXT -typedef void (APIENTRYP PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC)(GLuint vaobj, GLuint index, GLenum pname, GLint *param); -GLAPI PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC glad_glGetVertexArrayIntegeri_vEXT; -#define glGetVertexArrayIntegeri_vEXT glad_glGetVertexArrayIntegeri_vEXT -typedef void (APIENTRYP PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC)(GLuint vaobj, GLuint index, GLenum pname, void **param); -GLAPI PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC glad_glGetVertexArrayPointeri_vEXT; -#define glGetVertexArrayPointeri_vEXT glad_glGetVertexArrayPointeri_vEXT -typedef void * (APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); -GLAPI PFNGLMAPNAMEDBUFFERRANGEEXTPROC glad_glMapNamedBufferRangeEXT; -#define glMapNamedBufferRangeEXT glad_glMapNamedBufferRangeEXT -typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC)(GLuint buffer, GLintptr offset, GLsizeiptr length); -GLAPI PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC glad_glFlushMappedNamedBufferRangeEXT; -#define glFlushMappedNamedBufferRangeEXT glad_glFlushMappedNamedBufferRangeEXT -typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTPROC)(GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags); -GLAPI PFNGLNAMEDBUFFERSTORAGEEXTPROC glad_glNamedBufferStorageEXT; -#define glNamedBufferStorageEXT glad_glNamedBufferStorageEXT -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC)(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARNAMEDBUFFERDATAEXTPROC glad_glClearNamedBufferDataEXT; -#define glClearNamedBufferDataEXT glad_glClearNamedBufferDataEXT -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC)(GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC glad_glClearNamedBufferSubDataEXT; -#define glClearNamedBufferSubDataEXT glad_glClearNamedBufferSubDataEXT -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC)(GLuint framebuffer, GLenum pname, GLint param); -GLAPI PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC glad_glNamedFramebufferParameteriEXT; -#define glNamedFramebufferParameteriEXT glad_glNamedFramebufferParameteriEXT -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC)(GLuint framebuffer, GLenum pname, GLint *params); -GLAPI PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC glad_glGetNamedFramebufferParameterivEXT; -#define glGetNamedFramebufferParameterivEXT glad_glGetNamedFramebufferParameterivEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DEXTPROC)(GLuint program, GLint location, GLdouble x); -GLAPI PFNGLPROGRAMUNIFORM1DEXTPROC glad_glProgramUniform1dEXT; -#define glProgramUniform1dEXT glad_glProgramUniform1dEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DEXTPROC)(GLuint program, GLint location, GLdouble x, GLdouble y); -GLAPI PFNGLPROGRAMUNIFORM2DEXTPROC glad_glProgramUniform2dEXT; -#define glProgramUniform2dEXT glad_glProgramUniform2dEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DEXTPROC)(GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLPROGRAMUNIFORM3DEXTPROC glad_glProgramUniform3dEXT; -#define glProgramUniform3dEXT glad_glProgramUniform3dEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DEXTPROC)(GLuint program, GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLPROGRAMUNIFORM4DEXTPROC glad_glProgramUniform4dEXT; -#define glProgramUniform4dEXT glad_glProgramUniform4dEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORM1DVEXTPROC glad_glProgramUniform1dvEXT; -#define glProgramUniform1dvEXT glad_glProgramUniform1dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORM2DVEXTPROC glad_glProgramUniform2dvEXT; -#define glProgramUniform2dvEXT glad_glProgramUniform2dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORM3DVEXTPROC glad_glProgramUniform3dvEXT; -#define glProgramUniform3dvEXT glad_glProgramUniform3dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVEXTPROC)(GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORM4DVEXTPROC glad_glProgramUniform4dvEXT; -#define glProgramUniform4dvEXT glad_glProgramUniform4dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC glad_glProgramUniformMatrix2dvEXT; -#define glProgramUniformMatrix2dvEXT glad_glProgramUniformMatrix2dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC glad_glProgramUniformMatrix3dvEXT; -#define glProgramUniformMatrix3dvEXT glad_glProgramUniformMatrix3dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC glad_glProgramUniformMatrix4dvEXT; -#define glProgramUniformMatrix4dvEXT glad_glProgramUniformMatrix4dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC glad_glProgramUniformMatrix2x3dvEXT; -#define glProgramUniformMatrix2x3dvEXT glad_glProgramUniformMatrix2x3dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC glad_glProgramUniformMatrix2x4dvEXT; -#define glProgramUniformMatrix2x4dvEXT glad_glProgramUniformMatrix2x4dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC glad_glProgramUniformMatrix3x2dvEXT; -#define glProgramUniformMatrix3x2dvEXT glad_glProgramUniformMatrix3x2dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC glad_glProgramUniformMatrix3x4dvEXT; -#define glProgramUniformMatrix3x4dvEXT glad_glProgramUniformMatrix3x4dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC glad_glProgramUniformMatrix4x2dvEXT; -#define glProgramUniformMatrix4x2dvEXT glad_glProgramUniformMatrix4x2dvEXT -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC)(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC glad_glProgramUniformMatrix4x3dvEXT; -#define glProgramUniformMatrix4x3dvEXT glad_glProgramUniformMatrix4x3dvEXT -typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC)(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLTEXTUREBUFFERRANGEEXTPROC glad_glTextureBufferRangeEXT; -#define glTextureBufferRangeEXT glad_glTextureBufferRangeEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI PFNGLTEXTURESTORAGE1DEXTPROC glad_glTextureStorage1DEXT; -#define glTextureStorage1DEXT glad_glTextureStorage1DEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLTEXTURESTORAGE2DEXTPROC glad_glTextureStorage2DEXT; -#define glTextureStorage2DEXT glad_glTextureStorage2DEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC)(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNGLTEXTURESTORAGE3DEXTPROC glad_glTextureStorage3DEXT; -#define glTextureStorage3DEXT glad_glTextureStorage3DEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC)(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC glad_glTextureStorage2DMultisampleEXT; -#define glTextureStorage2DMultisampleEXT glad_glTextureStorage2DMultisampleEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC)(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC glad_glTextureStorage3DMultisampleEXT; -#define glTextureStorage3DMultisampleEXT glad_glTextureStorage3DMultisampleEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC)(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -GLAPI PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC glad_glVertexArrayBindVertexBufferEXT; -#define glVertexArrayBindVertexBufferEXT glad_glVertexArrayBindVertexBufferEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -GLAPI PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC glad_glVertexArrayVertexAttribFormatEXT; -#define glVertexArrayVertexAttribFormatEXT glad_glVertexArrayVertexAttribFormatEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC glad_glVertexArrayVertexAttribIFormatEXT; -#define glVertexArrayVertexAttribIFormatEXT glad_glVertexArrayVertexAttribIFormatEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC)(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC glad_glVertexArrayVertexAttribLFormatEXT; -#define glVertexArrayVertexAttribLFormatEXT glad_glVertexArrayVertexAttribLFormatEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC)(GLuint vaobj, GLuint attribindex, GLuint bindingindex); -GLAPI PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC glad_glVertexArrayVertexAttribBindingEXT; -#define glVertexArrayVertexAttribBindingEXT glad_glVertexArrayVertexAttribBindingEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC)(GLuint vaobj, GLuint bindingindex, GLuint divisor); -GLAPI PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC glad_glVertexArrayVertexBindingDivisorEXT; -#define glVertexArrayVertexBindingDivisorEXT glad_glVertexArrayVertexBindingDivisorEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC)(GLuint vaobj, GLuint buffer, GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset); -GLAPI PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC glad_glVertexArrayVertexAttribLOffsetEXT; -#define glVertexArrayVertexAttribLOffsetEXT glad_glVertexArrayVertexAttribLOffsetEXT -typedef void (APIENTRYP PFNGLTEXTUREPAGECOMMITMENTEXTPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); -GLAPI PFNGLTEXTUREPAGECOMMITMENTEXTPROC glad_glTexturePageCommitmentEXT; -#define glTexturePageCommitmentEXT glad_glTexturePageCommitmentEXT -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC)(GLuint vaobj, GLuint index, GLuint divisor); -GLAPI PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC glad_glVertexArrayVertexAttribDivisorEXT; -#define glVertexArrayVertexAttribDivisorEXT glad_glVertexArrayVertexAttribDivisorEXT -#endif -#ifndef GL_EXT_draw_buffers2 -#define GL_EXT_draw_buffers2 1 -GLAPI int GLAD_GL_EXT_draw_buffers2; -typedef void (APIENTRYP PFNGLCOLORMASKINDEXEDEXTPROC)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -GLAPI PFNGLCOLORMASKINDEXEDEXTPROC glad_glColorMaskIndexedEXT; -#define glColorMaskIndexedEXT glad_glColorMaskIndexedEXT -#endif -#ifndef GL_EXT_draw_instanced -#define GL_EXT_draw_instanced 1 -GLAPI int GLAD_GL_EXT_draw_instanced; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC)(GLenum mode, GLint start, GLsizei count, GLsizei primcount); -GLAPI PFNGLDRAWARRAYSINSTANCEDEXTPROC glad_glDrawArraysInstancedEXT; -#define glDrawArraysInstancedEXT glad_glDrawArraysInstancedEXT -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); -GLAPI PFNGLDRAWELEMENTSINSTANCEDEXTPROC glad_glDrawElementsInstancedEXT; -#define glDrawElementsInstancedEXT glad_glDrawElementsInstancedEXT -#endif -#ifndef GL_EXT_draw_range_elements -#define GL_EXT_draw_range_elements 1 -GLAPI int GLAD_GL_EXT_draw_range_elements; -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSEXTPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices); -GLAPI PFNGLDRAWRANGEELEMENTSEXTPROC glad_glDrawRangeElementsEXT; -#define glDrawRangeElementsEXT glad_glDrawRangeElementsEXT -#endif -#ifndef GL_EXT_external_buffer -#define GL_EXT_external_buffer 1 -GLAPI int GLAD_GL_EXT_external_buffer; -typedef void (APIENTRYP PFNGLBUFFERSTORAGEEXTERNALEXTPROC)(GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags); -GLAPI PFNGLBUFFERSTORAGEEXTERNALEXTPROC glad_glBufferStorageExternalEXT; -#define glBufferStorageExternalEXT glad_glBufferStorageExternalEXT -typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC)(GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags); -GLAPI PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC glad_glNamedBufferStorageExternalEXT; -#define glNamedBufferStorageExternalEXT glad_glNamedBufferStorageExternalEXT -#endif -#ifndef GL_EXT_fog_coord -#define GL_EXT_fog_coord 1 -GLAPI int GLAD_GL_EXT_fog_coord; -typedef void (APIENTRYP PFNGLFOGCOORDFEXTPROC)(GLfloat coord); -GLAPI PFNGLFOGCOORDFEXTPROC glad_glFogCoordfEXT; -#define glFogCoordfEXT glad_glFogCoordfEXT -typedef void (APIENTRYP PFNGLFOGCOORDFVEXTPROC)(const GLfloat *coord); -GLAPI PFNGLFOGCOORDFVEXTPROC glad_glFogCoordfvEXT; -#define glFogCoordfvEXT glad_glFogCoordfvEXT -typedef void (APIENTRYP PFNGLFOGCOORDDEXTPROC)(GLdouble coord); -GLAPI PFNGLFOGCOORDDEXTPROC glad_glFogCoorddEXT; -#define glFogCoorddEXT glad_glFogCoorddEXT -typedef void (APIENTRYP PFNGLFOGCOORDDVEXTPROC)(const GLdouble *coord); -GLAPI PFNGLFOGCOORDDVEXTPROC glad_glFogCoorddvEXT; -#define glFogCoorddvEXT glad_glFogCoorddvEXT -typedef void (APIENTRYP PFNGLFOGCOORDPOINTEREXTPROC)(GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLFOGCOORDPOINTEREXTPROC glad_glFogCoordPointerEXT; -#define glFogCoordPointerEXT glad_glFogCoordPointerEXT -#endif -#ifndef GL_EXT_framebuffer_blit -#define GL_EXT_framebuffer_blit 1 -GLAPI int GLAD_GL_EXT_framebuffer_blit; -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNGLBLITFRAMEBUFFEREXTPROC glad_glBlitFramebufferEXT; -#define glBlitFramebufferEXT glad_glBlitFramebufferEXT -#endif -#ifndef GL_EXT_framebuffer_multisample -#define GL_EXT_framebuffer_multisample 1 -GLAPI int GLAD_GL_EXT_framebuffer_multisample; -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glad_glRenderbufferStorageMultisampleEXT; -#define glRenderbufferStorageMultisampleEXT glad_glRenderbufferStorageMultisampleEXT -#endif -#ifndef GL_EXT_framebuffer_multisample_blit_scaled -#define GL_EXT_framebuffer_multisample_blit_scaled 1 -GLAPI int GLAD_GL_EXT_framebuffer_multisample_blit_scaled; -#endif -#ifndef GL_EXT_framebuffer_object -#define GL_EXT_framebuffer_object 1 -GLAPI int GLAD_GL_EXT_framebuffer_object; -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFEREXTPROC)(GLuint renderbuffer); -GLAPI PFNGLISRENDERBUFFEREXTPROC glad_glIsRenderbufferEXT; -#define glIsRenderbufferEXT glad_glIsRenderbufferEXT -typedef void (APIENTRYP PFNGLBINDRENDERBUFFEREXTPROC)(GLenum target, GLuint renderbuffer); -GLAPI PFNGLBINDRENDERBUFFEREXTPROC glad_glBindRenderbufferEXT; -#define glBindRenderbufferEXT glad_glBindRenderbufferEXT -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSEXTPROC)(GLsizei n, const GLuint *renderbuffers); -GLAPI PFNGLDELETERENDERBUFFERSEXTPROC glad_glDeleteRenderbuffersEXT; -#define glDeleteRenderbuffersEXT glad_glDeleteRenderbuffersEXT -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSEXTPROC)(GLsizei n, GLuint *renderbuffers); -GLAPI PFNGLGENRENDERBUFFERSEXTPROC glad_glGenRenderbuffersEXT; -#define glGenRenderbuffersEXT glad_glGenRenderbuffersEXT -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEEXTPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEEXTPROC glad_glRenderbufferStorageEXT; -#define glRenderbufferStorageEXT glad_glRenderbufferStorageEXT -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC glad_glGetRenderbufferParameterivEXT; -#define glGetRenderbufferParameterivEXT glad_glGetRenderbufferParameterivEXT -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFEREXTPROC)(GLuint framebuffer); -GLAPI PFNGLISFRAMEBUFFEREXTPROC glad_glIsFramebufferEXT; -#define glIsFramebufferEXT glad_glIsFramebufferEXT -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFEREXTPROC)(GLenum target, GLuint framebuffer); -GLAPI PFNGLBINDFRAMEBUFFEREXTPROC glad_glBindFramebufferEXT; -#define glBindFramebufferEXT glad_glBindFramebufferEXT -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSEXTPROC)(GLsizei n, const GLuint *framebuffers); -GLAPI PFNGLDELETEFRAMEBUFFERSEXTPROC glad_glDeleteFramebuffersEXT; -#define glDeleteFramebuffersEXT glad_glDeleteFramebuffersEXT -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC)(GLsizei n, GLuint *framebuffers); -GLAPI PFNGLGENFRAMEBUFFERSEXTPROC glad_glGenFramebuffersEXT; -#define glGenFramebuffersEXT glad_glGenFramebuffersEXT -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)(GLenum target); -GLAPI PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glad_glCheckFramebufferStatusEXT; -#define glCheckFramebufferStatusEXT glad_glCheckFramebufferStatusEXT -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DEXTPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTURE1DEXTPROC glad_glFramebufferTexture1DEXT; -#define glFramebufferTexture1DEXT glad_glFramebufferTexture1DEXT -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DEXTPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glad_glFramebufferTexture2DEXT; -#define glFramebufferTexture2DEXT glad_glFramebufferTexture2DEXT -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DEXTPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI PFNGLFRAMEBUFFERTEXTURE3DEXTPROC glad_glFramebufferTexture3DEXT; -#define glFramebufferTexture3DEXT glad_glFramebufferTexture3DEXT -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glad_glFramebufferRenderbufferEXT; -#define glFramebufferRenderbufferEXT glad_glFramebufferRenderbufferEXT -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC)(GLenum target, GLenum attachment, GLenum pname, GLint *params); -GLAPI PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glad_glGetFramebufferAttachmentParameterivEXT; -#define glGetFramebufferAttachmentParameterivEXT glad_glGetFramebufferAttachmentParameterivEXT -typedef void (APIENTRYP PFNGLGENERATEMIPMAPEXTPROC)(GLenum target); -GLAPI PFNGLGENERATEMIPMAPEXTPROC glad_glGenerateMipmapEXT; -#define glGenerateMipmapEXT glad_glGenerateMipmapEXT -#endif -#ifndef GL_EXT_framebuffer_sRGB -#define GL_EXT_framebuffer_sRGB 1 -GLAPI int GLAD_GL_EXT_framebuffer_sRGB; -#endif -#ifndef GL_EXT_geometry_shader4 -#define GL_EXT_geometry_shader4 1 -GLAPI int GLAD_GL_EXT_geometry_shader4; -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC)(GLuint program, GLenum pname, GLint value); -GLAPI PFNGLPROGRAMPARAMETERIEXTPROC glad_glProgramParameteriEXT; -#define glProgramParameteriEXT glad_glProgramParameteriEXT -#endif -#ifndef GL_EXT_gpu_program_parameters -#define GL_EXT_gpu_program_parameters 1 -GLAPI int GLAD_GL_EXT_gpu_program_parameters; -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERS4FVEXTPROC)(GLenum target, GLuint index, GLsizei count, const GLfloat *params); -GLAPI PFNGLPROGRAMENVPARAMETERS4FVEXTPROC glad_glProgramEnvParameters4fvEXT; -#define glProgramEnvParameters4fvEXT glad_glProgramEnvParameters4fvEXT -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC)(GLenum target, GLuint index, GLsizei count, const GLfloat *params); -GLAPI PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC glad_glProgramLocalParameters4fvEXT; -#define glProgramLocalParameters4fvEXT glad_glProgramLocalParameters4fvEXT -#endif -#ifndef GL_EXT_gpu_shader4 -#define GL_EXT_gpu_shader4 1 -GLAPI int GLAD_GL_EXT_gpu_shader4; -typedef void (APIENTRYP PFNGLGETUNIFORMUIVEXTPROC)(GLuint program, GLint location, GLuint *params); -GLAPI PFNGLGETUNIFORMUIVEXTPROC glad_glGetUniformuivEXT; -#define glGetUniformuivEXT glad_glGetUniformuivEXT -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC)(GLuint program, GLuint color, const GLchar *name); -GLAPI PFNGLBINDFRAGDATALOCATIONEXTPROC glad_glBindFragDataLocationEXT; -#define glBindFragDataLocationEXT glad_glBindFragDataLocationEXT -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONEXTPROC)(GLuint program, const GLchar *name); -GLAPI PFNGLGETFRAGDATALOCATIONEXTPROC glad_glGetFragDataLocationEXT; -#define glGetFragDataLocationEXT glad_glGetFragDataLocationEXT -typedef void (APIENTRYP PFNGLUNIFORM1UIEXTPROC)(GLint location, GLuint v0); -GLAPI PFNGLUNIFORM1UIEXTPROC glad_glUniform1uiEXT; -#define glUniform1uiEXT glad_glUniform1uiEXT -typedef void (APIENTRYP PFNGLUNIFORM2UIEXTPROC)(GLint location, GLuint v0, GLuint v1); -GLAPI PFNGLUNIFORM2UIEXTPROC glad_glUniform2uiEXT; -#define glUniform2uiEXT glad_glUniform2uiEXT -typedef void (APIENTRYP PFNGLUNIFORM3UIEXTPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI PFNGLUNIFORM3UIEXTPROC glad_glUniform3uiEXT; -#define glUniform3uiEXT glad_glUniform3uiEXT -typedef void (APIENTRYP PFNGLUNIFORM4UIEXTPROC)(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI PFNGLUNIFORM4UIEXTPROC glad_glUniform4uiEXT; -#define glUniform4uiEXT glad_glUniform4uiEXT -typedef void (APIENTRYP PFNGLUNIFORM1UIVEXTPROC)(GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLUNIFORM1UIVEXTPROC glad_glUniform1uivEXT; -#define glUniform1uivEXT glad_glUniform1uivEXT -typedef void (APIENTRYP PFNGLUNIFORM2UIVEXTPROC)(GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLUNIFORM2UIVEXTPROC glad_glUniform2uivEXT; -#define glUniform2uivEXT glad_glUniform2uivEXT -typedef void (APIENTRYP PFNGLUNIFORM3UIVEXTPROC)(GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLUNIFORM3UIVEXTPROC glad_glUniform3uivEXT; -#define glUniform3uivEXT glad_glUniform3uivEXT -typedef void (APIENTRYP PFNGLUNIFORM4UIVEXTPROC)(GLint location, GLsizei count, const GLuint *value); -GLAPI PFNGLUNIFORM4UIVEXTPROC glad_glUniform4uivEXT; -#define glUniform4uivEXT glad_glUniform4uivEXT -#endif -#ifndef GL_EXT_histogram -#define GL_EXT_histogram 1 -GLAPI int GLAD_GL_EXT_histogram; -typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -GLAPI PFNGLGETHISTOGRAMEXTPROC glad_glGetHistogramEXT; -#define glGetHistogramEXT glad_glGetHistogramEXT -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETHISTOGRAMPARAMETERFVEXTPROC glad_glGetHistogramParameterfvEXT; -#define glGetHistogramParameterfvEXT glad_glGetHistogramParameterfvEXT -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETHISTOGRAMPARAMETERIVEXTPROC glad_glGetHistogramParameterivEXT; -#define glGetHistogramParameterivEXT glad_glGetHistogramParameterivEXT -typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC)(GLenum target, GLboolean reset, GLenum format, GLenum type, void *values); -GLAPI PFNGLGETMINMAXEXTPROC glad_glGetMinmaxEXT; -#define glGetMinmaxEXT glad_glGetMinmaxEXT -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMINMAXPARAMETERFVEXTPROC glad_glGetMinmaxParameterfvEXT; -#define glGetMinmaxParameterfvEXT glad_glGetMinmaxParameterfvEXT -typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETMINMAXPARAMETERIVEXTPROC glad_glGetMinmaxParameterivEXT; -#define glGetMinmaxParameterivEXT glad_glGetMinmaxParameterivEXT -typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC)(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink); -GLAPI PFNGLHISTOGRAMEXTPROC glad_glHistogramEXT; -#define glHistogramEXT glad_glHistogramEXT -typedef void (APIENTRYP PFNGLMINMAXEXTPROC)(GLenum target, GLenum internalformat, GLboolean sink); -GLAPI PFNGLMINMAXEXTPROC glad_glMinmaxEXT; -#define glMinmaxEXT glad_glMinmaxEXT -typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC)(GLenum target); -GLAPI PFNGLRESETHISTOGRAMEXTPROC glad_glResetHistogramEXT; -#define glResetHistogramEXT glad_glResetHistogramEXT -typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC)(GLenum target); -GLAPI PFNGLRESETMINMAXEXTPROC glad_glResetMinmaxEXT; -#define glResetMinmaxEXT glad_glResetMinmaxEXT -#endif -#ifndef GL_EXT_index_array_formats -#define GL_EXT_index_array_formats 1 -GLAPI int GLAD_GL_EXT_index_array_formats; -#endif -#ifndef GL_EXT_index_func -#define GL_EXT_index_func 1 -GLAPI int GLAD_GL_EXT_index_func; -typedef void (APIENTRYP PFNGLINDEXFUNCEXTPROC)(GLenum func, GLclampf ref); -GLAPI PFNGLINDEXFUNCEXTPROC glad_glIndexFuncEXT; -#define glIndexFuncEXT glad_glIndexFuncEXT -#endif -#ifndef GL_EXT_index_material -#define GL_EXT_index_material 1 -GLAPI int GLAD_GL_EXT_index_material; -typedef void (APIENTRYP PFNGLINDEXMATERIALEXTPROC)(GLenum face, GLenum mode); -GLAPI PFNGLINDEXMATERIALEXTPROC glad_glIndexMaterialEXT; -#define glIndexMaterialEXT glad_glIndexMaterialEXT -#endif -#ifndef GL_EXT_index_texture -#define GL_EXT_index_texture 1 -GLAPI int GLAD_GL_EXT_index_texture; -#endif -#ifndef GL_EXT_light_texture -#define GL_EXT_light_texture 1 -GLAPI int GLAD_GL_EXT_light_texture; -typedef void (APIENTRYP PFNGLAPPLYTEXTUREEXTPROC)(GLenum mode); -GLAPI PFNGLAPPLYTEXTUREEXTPROC glad_glApplyTextureEXT; -#define glApplyTextureEXT glad_glApplyTextureEXT -typedef void (APIENTRYP PFNGLTEXTURELIGHTEXTPROC)(GLenum pname); -GLAPI PFNGLTEXTURELIGHTEXTPROC glad_glTextureLightEXT; -#define glTextureLightEXT glad_glTextureLightEXT -typedef void (APIENTRYP PFNGLTEXTUREMATERIALEXTPROC)(GLenum face, GLenum mode); -GLAPI PFNGLTEXTUREMATERIALEXTPROC glad_glTextureMaterialEXT; -#define glTextureMaterialEXT glad_glTextureMaterialEXT -#endif -#ifndef GL_EXT_memory_object -#define GL_EXT_memory_object 1 -GLAPI int GLAD_GL_EXT_memory_object; -typedef void (APIENTRYP PFNGLGETUNSIGNEDBYTEVEXTPROC)(GLenum pname, GLubyte *data); -GLAPI PFNGLGETUNSIGNEDBYTEVEXTPROC glad_glGetUnsignedBytevEXT; -#define glGetUnsignedBytevEXT glad_glGetUnsignedBytevEXT -typedef void (APIENTRYP PFNGLGETUNSIGNEDBYTEI_VEXTPROC)(GLenum target, GLuint index, GLubyte *data); -GLAPI PFNGLGETUNSIGNEDBYTEI_VEXTPROC glad_glGetUnsignedBytei_vEXT; -#define glGetUnsignedBytei_vEXT glad_glGetUnsignedBytei_vEXT -typedef void (APIENTRYP PFNGLDELETEMEMORYOBJECTSEXTPROC)(GLsizei n, const GLuint *memoryObjects); -GLAPI PFNGLDELETEMEMORYOBJECTSEXTPROC glad_glDeleteMemoryObjectsEXT; -#define glDeleteMemoryObjectsEXT glad_glDeleteMemoryObjectsEXT -typedef GLboolean (APIENTRYP PFNGLISMEMORYOBJECTEXTPROC)(GLuint memoryObject); -GLAPI PFNGLISMEMORYOBJECTEXTPROC glad_glIsMemoryObjectEXT; -#define glIsMemoryObjectEXT glad_glIsMemoryObjectEXT -typedef void (APIENTRYP PFNGLCREATEMEMORYOBJECTSEXTPROC)(GLsizei n, GLuint *memoryObjects); -GLAPI PFNGLCREATEMEMORYOBJECTSEXTPROC glad_glCreateMemoryObjectsEXT; -#define glCreateMemoryObjectsEXT glad_glCreateMemoryObjectsEXT -typedef void (APIENTRYP PFNGLMEMORYOBJECTPARAMETERIVEXTPROC)(GLuint memoryObject, GLenum pname, const GLint *params); -GLAPI PFNGLMEMORYOBJECTPARAMETERIVEXTPROC glad_glMemoryObjectParameterivEXT; -#define glMemoryObjectParameterivEXT glad_glMemoryObjectParameterivEXT -typedef void (APIENTRYP PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC)(GLuint memoryObject, GLenum pname, GLint *params); -GLAPI PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC glad_glGetMemoryObjectParameterivEXT; -#define glGetMemoryObjectParameterivEXT glad_glGetMemoryObjectParameterivEXT -typedef void (APIENTRYP PFNGLTEXSTORAGEMEM2DEXTPROC)(GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXSTORAGEMEM2DEXTPROC glad_glTexStorageMem2DEXT; -#define glTexStorageMem2DEXT glad_glTexStorageMem2DEXT -typedef void (APIENTRYP PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC)(GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC glad_glTexStorageMem2DMultisampleEXT; -#define glTexStorageMem2DMultisampleEXT glad_glTexStorageMem2DMultisampleEXT -typedef void (APIENTRYP PFNGLTEXSTORAGEMEM3DEXTPROC)(GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXSTORAGEMEM3DEXTPROC glad_glTexStorageMem3DEXT; -#define glTexStorageMem3DEXT glad_glTexStorageMem3DEXT -typedef void (APIENTRYP PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC)(GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC glad_glTexStorageMem3DMultisampleEXT; -#define glTexStorageMem3DMultisampleEXT glad_glTexStorageMem3DMultisampleEXT -typedef void (APIENTRYP PFNGLBUFFERSTORAGEMEMEXTPROC)(GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset); -GLAPI PFNGLBUFFERSTORAGEMEMEXTPROC glad_glBufferStorageMemEXT; -#define glBufferStorageMemEXT glad_glBufferStorageMemEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM2DEXTPROC)(GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXTURESTORAGEMEM2DEXTPROC glad_glTextureStorageMem2DEXT; -#define glTextureStorageMem2DEXT glad_glTextureStorageMem2DEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC)(GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC glad_glTextureStorageMem2DMultisampleEXT; -#define glTextureStorageMem2DMultisampleEXT glad_glTextureStorageMem2DMultisampleEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM3DEXTPROC)(GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXTURESTORAGEMEM3DEXTPROC glad_glTextureStorageMem3DEXT; -#define glTextureStorageMem3DEXT glad_glTextureStorageMem3DEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC)(GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC glad_glTextureStorageMem3DMultisampleEXT; -#define glTextureStorageMem3DMultisampleEXT glad_glTextureStorageMem3DMultisampleEXT -typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC)(GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset); -GLAPI PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC glad_glNamedBufferStorageMemEXT; -#define glNamedBufferStorageMemEXT glad_glNamedBufferStorageMemEXT -typedef void (APIENTRYP PFNGLTEXSTORAGEMEM1DEXTPROC)(GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXSTORAGEMEM1DEXTPROC glad_glTexStorageMem1DEXT; -#define glTexStorageMem1DEXT glad_glTexStorageMem1DEXT -typedef void (APIENTRYP PFNGLTEXTURESTORAGEMEM1DEXTPROC)(GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLuint memory, GLuint64 offset); -GLAPI PFNGLTEXTURESTORAGEMEM1DEXTPROC glad_glTextureStorageMem1DEXT; -#define glTextureStorageMem1DEXT glad_glTextureStorageMem1DEXT -#endif -#ifndef GL_EXT_memory_object_fd -#define GL_EXT_memory_object_fd 1 -GLAPI int GLAD_GL_EXT_memory_object_fd; -typedef void (APIENTRYP PFNGLIMPORTMEMORYFDEXTPROC)(GLuint memory, GLuint64 size, GLenum handleType, GLint fd); -GLAPI PFNGLIMPORTMEMORYFDEXTPROC glad_glImportMemoryFdEXT; -#define glImportMemoryFdEXT glad_glImportMemoryFdEXT -#endif -#ifndef GL_EXT_memory_object_win32 -#define GL_EXT_memory_object_win32 1 -GLAPI int GLAD_GL_EXT_memory_object_win32; -typedef void (APIENTRYP PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC)(GLuint memory, GLuint64 size, GLenum handleType, void *handle); -GLAPI PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC glad_glImportMemoryWin32HandleEXT; -#define glImportMemoryWin32HandleEXT glad_glImportMemoryWin32HandleEXT -typedef void (APIENTRYP PFNGLIMPORTMEMORYWIN32NAMEEXTPROC)(GLuint memory, GLuint64 size, GLenum handleType, const void *name); -GLAPI PFNGLIMPORTMEMORYWIN32NAMEEXTPROC glad_glImportMemoryWin32NameEXT; -#define glImportMemoryWin32NameEXT glad_glImportMemoryWin32NameEXT -#endif -#ifndef GL_EXT_misc_attribute -#define GL_EXT_misc_attribute 1 -GLAPI int GLAD_GL_EXT_misc_attribute; -#endif -#ifndef GL_EXT_multi_draw_arrays -#define GL_EXT_multi_draw_arrays 1 -GLAPI int GLAD_GL_EXT_multi_draw_arrays; -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC)(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount); -GLAPI PFNGLMULTIDRAWARRAYSEXTPROC glad_glMultiDrawArraysEXT; -#define glMultiDrawArraysEXT glad_glMultiDrawArraysEXT -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC)(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount); -GLAPI PFNGLMULTIDRAWELEMENTSEXTPROC glad_glMultiDrawElementsEXT; -#define glMultiDrawElementsEXT glad_glMultiDrawElementsEXT -#endif -#ifndef GL_EXT_multisample -#define GL_EXT_multisample 1 -GLAPI int GLAD_GL_EXT_multisample; -typedef void (APIENTRYP PFNGLSAMPLEMASKEXTPROC)(GLclampf value, GLboolean invert); -GLAPI PFNGLSAMPLEMASKEXTPROC glad_glSampleMaskEXT; -#define glSampleMaskEXT glad_glSampleMaskEXT -typedef void (APIENTRYP PFNGLSAMPLEPATTERNEXTPROC)(GLenum pattern); -GLAPI PFNGLSAMPLEPATTERNEXTPROC glad_glSamplePatternEXT; -#define glSamplePatternEXT glad_glSamplePatternEXT -#endif -#ifndef GL_EXT_packed_depth_stencil -#define GL_EXT_packed_depth_stencil 1 -GLAPI int GLAD_GL_EXT_packed_depth_stencil; -#endif -#ifndef GL_EXT_packed_float -#define GL_EXT_packed_float 1 -GLAPI int GLAD_GL_EXT_packed_float; -#endif -#ifndef GL_EXT_packed_pixels -#define GL_EXT_packed_pixels 1 -GLAPI int GLAD_GL_EXT_packed_pixels; -#endif -#ifndef GL_EXT_paletted_texture -#define GL_EXT_paletted_texture 1 -GLAPI int GLAD_GL_EXT_paletted_texture; -typedef void (APIENTRYP PFNGLCOLORTABLEEXTPROC)(GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const void *table); -GLAPI PFNGLCOLORTABLEEXTPROC glad_glColorTableEXT; -#define glColorTableEXT glad_glColorTableEXT -typedef void (APIENTRYP PFNGLGETCOLORTABLEEXTPROC)(GLenum target, GLenum format, GLenum type, void *data); -GLAPI PFNGLGETCOLORTABLEEXTPROC glad_glGetColorTableEXT; -#define glGetColorTableEXT glad_glGetColorTableEXT -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETCOLORTABLEPARAMETERIVEXTPROC glad_glGetColorTableParameterivEXT; -#define glGetColorTableParameterivEXT glad_glGetColorTableParameterivEXT -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETCOLORTABLEPARAMETERFVEXTPROC glad_glGetColorTableParameterfvEXT; -#define glGetColorTableParameterfvEXT glad_glGetColorTableParameterfvEXT -#endif -#ifndef GL_EXT_pixel_buffer_object -#define GL_EXT_pixel_buffer_object 1 -GLAPI int GLAD_GL_EXT_pixel_buffer_object; -#endif -#ifndef GL_EXT_pixel_transform -#define GL_EXT_pixel_transform 1 -GLAPI int GLAD_GL_EXT_pixel_transform; -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIEXTPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLPIXELTRANSFORMPARAMETERIEXTPROC glad_glPixelTransformParameteriEXT; -#define glPixelTransformParameteriEXT glad_glPixelTransformParameteriEXT -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFEXTPROC)(GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLPIXELTRANSFORMPARAMETERFEXTPROC glad_glPixelTransformParameterfEXT; -#define glPixelTransformParameterfEXT glad_glPixelTransformParameterfEXT -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC glad_glPixelTransformParameterivEXT; -#define glPixelTransformParameterivEXT glad_glPixelTransformParameterivEXT -typedef void (APIENTRYP PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC glad_glPixelTransformParameterfvEXT; -#define glPixelTransformParameterfvEXT glad_glPixelTransformParameterfvEXT -typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC glad_glGetPixelTransformParameterivEXT; -#define glGetPixelTransformParameterivEXT glad_glGetPixelTransformParameterivEXT -typedef void (APIENTRYP PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC glad_glGetPixelTransformParameterfvEXT; -#define glGetPixelTransformParameterfvEXT glad_glGetPixelTransformParameterfvEXT -#endif -#ifndef GL_EXT_pixel_transform_color_table -#define GL_EXT_pixel_transform_color_table 1 -GLAPI int GLAD_GL_EXT_pixel_transform_color_table; -#endif -#ifndef GL_EXT_point_parameters -#define GL_EXT_point_parameters 1 -GLAPI int GLAD_GL_EXT_point_parameters; -typedef void (APIENTRYP PFNGLPOINTPARAMETERFEXTPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPOINTPARAMETERFEXTPROC glad_glPointParameterfEXT; -#define glPointParameterfEXT glad_glPointParameterfEXT -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVEXTPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLPOINTPARAMETERFVEXTPROC glad_glPointParameterfvEXT; -#define glPointParameterfvEXT glad_glPointParameterfvEXT -#endif -#ifndef GL_EXT_polygon_offset -#define GL_EXT_polygon_offset 1 -GLAPI int GLAD_GL_EXT_polygon_offset; -typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC)(GLfloat factor, GLfloat bias); -GLAPI PFNGLPOLYGONOFFSETEXTPROC glad_glPolygonOffsetEXT; -#define glPolygonOffsetEXT glad_glPolygonOffsetEXT -#endif -#ifndef GL_EXT_polygon_offset_clamp -#define GL_EXT_polygon_offset_clamp 1 -GLAPI int GLAD_GL_EXT_polygon_offset_clamp; -typedef void (APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC)(GLfloat factor, GLfloat units, GLfloat clamp); -GLAPI PFNGLPOLYGONOFFSETCLAMPEXTPROC glad_glPolygonOffsetClampEXT; -#define glPolygonOffsetClampEXT glad_glPolygonOffsetClampEXT -#endif -#ifndef GL_EXT_post_depth_coverage -#define GL_EXT_post_depth_coverage 1 -GLAPI int GLAD_GL_EXT_post_depth_coverage; -#endif -#ifndef GL_EXT_provoking_vertex -#define GL_EXT_provoking_vertex 1 -GLAPI int GLAD_GL_EXT_provoking_vertex; -typedef void (APIENTRYP PFNGLPROVOKINGVERTEXEXTPROC)(GLenum mode); -GLAPI PFNGLPROVOKINGVERTEXEXTPROC glad_glProvokingVertexEXT; -#define glProvokingVertexEXT glad_glProvokingVertexEXT -#endif -#ifndef GL_EXT_raster_multisample -#define GL_EXT_raster_multisample 1 -GLAPI int GLAD_GL_EXT_raster_multisample; -typedef void (APIENTRYP PFNGLRASTERSAMPLESEXTPROC)(GLuint samples, GLboolean fixedsamplelocations); -GLAPI PFNGLRASTERSAMPLESEXTPROC glad_glRasterSamplesEXT; -#define glRasterSamplesEXT glad_glRasterSamplesEXT -#endif -#ifndef GL_EXT_rescale_normal -#define GL_EXT_rescale_normal 1 -GLAPI int GLAD_GL_EXT_rescale_normal; -#endif -#ifndef GL_EXT_secondary_color -#define GL_EXT_secondary_color 1 -GLAPI int GLAD_GL_EXT_secondary_color; -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BEXTPROC)(GLbyte red, GLbyte green, GLbyte blue); -GLAPI PFNGLSECONDARYCOLOR3BEXTPROC glad_glSecondaryColor3bEXT; -#define glSecondaryColor3bEXT glad_glSecondaryColor3bEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVEXTPROC)(const GLbyte *v); -GLAPI PFNGLSECONDARYCOLOR3BVEXTPROC glad_glSecondaryColor3bvEXT; -#define glSecondaryColor3bvEXT glad_glSecondaryColor3bvEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DEXTPROC)(GLdouble red, GLdouble green, GLdouble blue); -GLAPI PFNGLSECONDARYCOLOR3DEXTPROC glad_glSecondaryColor3dEXT; -#define glSecondaryColor3dEXT glad_glSecondaryColor3dEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVEXTPROC)(const GLdouble *v); -GLAPI PFNGLSECONDARYCOLOR3DVEXTPROC glad_glSecondaryColor3dvEXT; -#define glSecondaryColor3dvEXT glad_glSecondaryColor3dvEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FEXTPROC)(GLfloat red, GLfloat green, GLfloat blue); -GLAPI PFNGLSECONDARYCOLOR3FEXTPROC glad_glSecondaryColor3fEXT; -#define glSecondaryColor3fEXT glad_glSecondaryColor3fEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVEXTPROC)(const GLfloat *v); -GLAPI PFNGLSECONDARYCOLOR3FVEXTPROC glad_glSecondaryColor3fvEXT; -#define glSecondaryColor3fvEXT glad_glSecondaryColor3fvEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IEXTPROC)(GLint red, GLint green, GLint blue); -GLAPI PFNGLSECONDARYCOLOR3IEXTPROC glad_glSecondaryColor3iEXT; -#define glSecondaryColor3iEXT glad_glSecondaryColor3iEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVEXTPROC)(const GLint *v); -GLAPI PFNGLSECONDARYCOLOR3IVEXTPROC glad_glSecondaryColor3ivEXT; -#define glSecondaryColor3ivEXT glad_glSecondaryColor3ivEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SEXTPROC)(GLshort red, GLshort green, GLshort blue); -GLAPI PFNGLSECONDARYCOLOR3SEXTPROC glad_glSecondaryColor3sEXT; -#define glSecondaryColor3sEXT glad_glSecondaryColor3sEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVEXTPROC)(const GLshort *v); -GLAPI PFNGLSECONDARYCOLOR3SVEXTPROC glad_glSecondaryColor3svEXT; -#define glSecondaryColor3svEXT glad_glSecondaryColor3svEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBEXTPROC)(GLubyte red, GLubyte green, GLubyte blue); -GLAPI PFNGLSECONDARYCOLOR3UBEXTPROC glad_glSecondaryColor3ubEXT; -#define glSecondaryColor3ubEXT glad_glSecondaryColor3ubEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVEXTPROC)(const GLubyte *v); -GLAPI PFNGLSECONDARYCOLOR3UBVEXTPROC glad_glSecondaryColor3ubvEXT; -#define glSecondaryColor3ubvEXT glad_glSecondaryColor3ubvEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIEXTPROC)(GLuint red, GLuint green, GLuint blue); -GLAPI PFNGLSECONDARYCOLOR3UIEXTPROC glad_glSecondaryColor3uiEXT; -#define glSecondaryColor3uiEXT glad_glSecondaryColor3uiEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVEXTPROC)(const GLuint *v); -GLAPI PFNGLSECONDARYCOLOR3UIVEXTPROC glad_glSecondaryColor3uivEXT; -#define glSecondaryColor3uivEXT glad_glSecondaryColor3uivEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USEXTPROC)(GLushort red, GLushort green, GLushort blue); -GLAPI PFNGLSECONDARYCOLOR3USEXTPROC glad_glSecondaryColor3usEXT; -#define glSecondaryColor3usEXT glad_glSecondaryColor3usEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVEXTPROC)(const GLushort *v); -GLAPI PFNGLSECONDARYCOLOR3USVEXTPROC glad_glSecondaryColor3usvEXT; -#define glSecondaryColor3usvEXT glad_glSecondaryColor3usvEXT -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTEREXTPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLSECONDARYCOLORPOINTEREXTPROC glad_glSecondaryColorPointerEXT; -#define glSecondaryColorPointerEXT glad_glSecondaryColorPointerEXT -#endif -#ifndef GL_EXT_semaphore -#define GL_EXT_semaphore 1 -GLAPI int GLAD_GL_EXT_semaphore; -typedef void (APIENTRYP PFNGLGENSEMAPHORESEXTPROC)(GLsizei n, GLuint *semaphores); -GLAPI PFNGLGENSEMAPHORESEXTPROC glad_glGenSemaphoresEXT; -#define glGenSemaphoresEXT glad_glGenSemaphoresEXT -typedef void (APIENTRYP PFNGLDELETESEMAPHORESEXTPROC)(GLsizei n, const GLuint *semaphores); -GLAPI PFNGLDELETESEMAPHORESEXTPROC glad_glDeleteSemaphoresEXT; -#define glDeleteSemaphoresEXT glad_glDeleteSemaphoresEXT -typedef GLboolean (APIENTRYP PFNGLISSEMAPHOREEXTPROC)(GLuint semaphore); -GLAPI PFNGLISSEMAPHOREEXTPROC glad_glIsSemaphoreEXT; -#define glIsSemaphoreEXT glad_glIsSemaphoreEXT -typedef void (APIENTRYP PFNGLSEMAPHOREPARAMETERUI64VEXTPROC)(GLuint semaphore, GLenum pname, const GLuint64 *params); -GLAPI PFNGLSEMAPHOREPARAMETERUI64VEXTPROC glad_glSemaphoreParameterui64vEXT; -#define glSemaphoreParameterui64vEXT glad_glSemaphoreParameterui64vEXT -typedef void (APIENTRYP PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC)(GLuint semaphore, GLenum pname, GLuint64 *params); -GLAPI PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC glad_glGetSemaphoreParameterui64vEXT; -#define glGetSemaphoreParameterui64vEXT glad_glGetSemaphoreParameterui64vEXT -typedef void (APIENTRYP PFNGLWAITSEMAPHOREEXTPROC)(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *srcLayouts); -GLAPI PFNGLWAITSEMAPHOREEXTPROC glad_glWaitSemaphoreEXT; -#define glWaitSemaphoreEXT glad_glWaitSemaphoreEXT -typedef void (APIENTRYP PFNGLSIGNALSEMAPHOREEXTPROC)(GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *dstLayouts); -GLAPI PFNGLSIGNALSEMAPHOREEXTPROC glad_glSignalSemaphoreEXT; -#define glSignalSemaphoreEXT glad_glSignalSemaphoreEXT -#endif -#ifndef GL_EXT_semaphore_fd -#define GL_EXT_semaphore_fd 1 -GLAPI int GLAD_GL_EXT_semaphore_fd; -typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREFDEXTPROC)(GLuint semaphore, GLenum handleType, GLint fd); -GLAPI PFNGLIMPORTSEMAPHOREFDEXTPROC glad_glImportSemaphoreFdEXT; -#define glImportSemaphoreFdEXT glad_glImportSemaphoreFdEXT -#endif -#ifndef GL_EXT_semaphore_win32 -#define GL_EXT_semaphore_win32 1 -GLAPI int GLAD_GL_EXT_semaphore_win32; -typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC)(GLuint semaphore, GLenum handleType, void *handle); -GLAPI PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC glad_glImportSemaphoreWin32HandleEXT; -#define glImportSemaphoreWin32HandleEXT glad_glImportSemaphoreWin32HandleEXT -typedef void (APIENTRYP PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC)(GLuint semaphore, GLenum handleType, const void *name); -GLAPI PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC glad_glImportSemaphoreWin32NameEXT; -#define glImportSemaphoreWin32NameEXT glad_glImportSemaphoreWin32NameEXT -#endif -#ifndef GL_EXT_separate_shader_objects -#define GL_EXT_separate_shader_objects 1 -GLAPI int GLAD_GL_EXT_separate_shader_objects; -typedef void (APIENTRYP PFNGLUSESHADERPROGRAMEXTPROC)(GLenum type, GLuint program); -GLAPI PFNGLUSESHADERPROGRAMEXTPROC glad_glUseShaderProgramEXT; -#define glUseShaderProgramEXT glad_glUseShaderProgramEXT -typedef void (APIENTRYP PFNGLACTIVEPROGRAMEXTPROC)(GLuint program); -GLAPI PFNGLACTIVEPROGRAMEXTPROC glad_glActiveProgramEXT; -#define glActiveProgramEXT glad_glActiveProgramEXT -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMEXTPROC)(GLenum type, const GLchar *string); -GLAPI PFNGLCREATESHADERPROGRAMEXTPROC glad_glCreateShaderProgramEXT; -#define glCreateShaderProgramEXT glad_glCreateShaderProgramEXT -typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC)(GLuint pipeline, GLuint program); -GLAPI PFNGLACTIVESHADERPROGRAMEXTPROC glad_glActiveShaderProgramEXT; -#define glActiveShaderProgramEXT glad_glActiveShaderProgramEXT -typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC)(GLuint pipeline); -GLAPI PFNGLBINDPROGRAMPIPELINEEXTPROC glad_glBindProgramPipelineEXT; -#define glBindProgramPipelineEXT glad_glBindProgramPipelineEXT -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC)(GLenum type, GLsizei count, const GLchar **strings); -GLAPI PFNGLCREATESHADERPROGRAMVEXTPROC glad_glCreateShaderProgramvEXT; -#define glCreateShaderProgramvEXT glad_glCreateShaderProgramvEXT -typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC)(GLsizei n, const GLuint *pipelines); -GLAPI PFNGLDELETEPROGRAMPIPELINESEXTPROC glad_glDeleteProgramPipelinesEXT; -#define glDeleteProgramPipelinesEXT glad_glDeleteProgramPipelinesEXT -typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC)(GLsizei n, GLuint *pipelines); -GLAPI PFNGLGENPROGRAMPIPELINESEXTPROC glad_glGenProgramPipelinesEXT; -#define glGenProgramPipelinesEXT glad_glGenProgramPipelinesEXT -typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC)(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC glad_glGetProgramPipelineInfoLogEXT; -#define glGetProgramPipelineInfoLogEXT glad_glGetProgramPipelineInfoLogEXT -typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC)(GLuint pipeline, GLenum pname, GLint *params); -GLAPI PFNGLGETPROGRAMPIPELINEIVEXTPROC glad_glGetProgramPipelineivEXT; -#define glGetProgramPipelineivEXT glad_glGetProgramPipelineivEXT -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC)(GLuint pipeline); -GLAPI PFNGLISPROGRAMPIPELINEEXTPROC glad_glIsProgramPipelineEXT; -#define glIsProgramPipelineEXT glad_glIsProgramPipelineEXT -typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC)(GLuint pipeline, GLbitfield stages, GLuint program); -GLAPI PFNGLUSEPROGRAMSTAGESEXTPROC glad_glUseProgramStagesEXT; -#define glUseProgramStagesEXT glad_glUseProgramStagesEXT -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC)(GLuint pipeline); -GLAPI PFNGLVALIDATEPROGRAMPIPELINEEXTPROC glad_glValidateProgramPipelineEXT; -#define glValidateProgramPipelineEXT glad_glValidateProgramPipelineEXT -#endif -#ifndef GL_EXT_separate_specular_color -#define GL_EXT_separate_specular_color 1 -GLAPI int GLAD_GL_EXT_separate_specular_color; -#endif -#ifndef GL_EXT_shader_framebuffer_fetch -#define GL_EXT_shader_framebuffer_fetch 1 -GLAPI int GLAD_GL_EXT_shader_framebuffer_fetch; -#endif -#ifndef GL_EXT_shader_framebuffer_fetch_non_coherent -#define GL_EXT_shader_framebuffer_fetch_non_coherent 1 -GLAPI int GLAD_GL_EXT_shader_framebuffer_fetch_non_coherent; -typedef void (APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC)(void); -GLAPI PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC glad_glFramebufferFetchBarrierEXT; -#define glFramebufferFetchBarrierEXT glad_glFramebufferFetchBarrierEXT -#endif -#ifndef GL_EXT_shader_image_load_formatted -#define GL_EXT_shader_image_load_formatted 1 -GLAPI int GLAD_GL_EXT_shader_image_load_formatted; -#endif -#ifndef GL_EXT_shader_image_load_store -#define GL_EXT_shader_image_load_store 1 -GLAPI int GLAD_GL_EXT_shader_image_load_store; -typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREEXTPROC)(GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); -GLAPI PFNGLBINDIMAGETEXTUREEXTPROC glad_glBindImageTextureEXT; -#define glBindImageTextureEXT glad_glBindImageTextureEXT -typedef void (APIENTRYP PFNGLMEMORYBARRIEREXTPROC)(GLbitfield barriers); -GLAPI PFNGLMEMORYBARRIEREXTPROC glad_glMemoryBarrierEXT; -#define glMemoryBarrierEXT glad_glMemoryBarrierEXT -#endif -#ifndef GL_EXT_shader_integer_mix -#define GL_EXT_shader_integer_mix 1 -GLAPI int GLAD_GL_EXT_shader_integer_mix; -#endif -#ifndef GL_EXT_shadow_funcs -#define GL_EXT_shadow_funcs 1 -GLAPI int GLAD_GL_EXT_shadow_funcs; -#endif -#ifndef GL_EXT_shared_texture_palette -#define GL_EXT_shared_texture_palette 1 -GLAPI int GLAD_GL_EXT_shared_texture_palette; -#endif -#ifndef GL_EXT_sparse_texture2 -#define GL_EXT_sparse_texture2 1 -GLAPI int GLAD_GL_EXT_sparse_texture2; -#endif -#ifndef GL_EXT_stencil_clear_tag -#define GL_EXT_stencil_clear_tag 1 -GLAPI int GLAD_GL_EXT_stencil_clear_tag; -typedef void (APIENTRYP PFNGLSTENCILCLEARTAGEXTPROC)(GLsizei stencilTagBits, GLuint stencilClearTag); -GLAPI PFNGLSTENCILCLEARTAGEXTPROC glad_glStencilClearTagEXT; -#define glStencilClearTagEXT glad_glStencilClearTagEXT -#endif -#ifndef GL_EXT_stencil_two_side -#define GL_EXT_stencil_two_side 1 -GLAPI int GLAD_GL_EXT_stencil_two_side; -typedef void (APIENTRYP PFNGLACTIVESTENCILFACEEXTPROC)(GLenum face); -GLAPI PFNGLACTIVESTENCILFACEEXTPROC glad_glActiveStencilFaceEXT; -#define glActiveStencilFaceEXT glad_glActiveStencilFaceEXT -#endif -#ifndef GL_EXT_stencil_wrap -#define GL_EXT_stencil_wrap 1 -GLAPI int GLAD_GL_EXT_stencil_wrap; -#endif -#ifndef GL_EXT_subtexture -#define GL_EXT_subtexture 1 -GLAPI int GLAD_GL_EXT_subtexture; -typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXSUBIMAGE1DEXTPROC glad_glTexSubImage1DEXT; -#define glTexSubImage1DEXT glad_glTexSubImage1DEXT -typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXSUBIMAGE2DEXTPROC glad_glTexSubImage2DEXT; -#define glTexSubImage2DEXT glad_glTexSubImage2DEXT -#endif -#ifndef GL_EXT_texture -#define GL_EXT_texture 1 -GLAPI int GLAD_GL_EXT_texture; -#endif -#ifndef GL_EXT_texture3D -#define GL_EXT_texture3D 1 -GLAPI int GLAD_GL_EXT_texture3D; -typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXIMAGE3DEXTPROC glad_glTexImage3DEXT; -#define glTexImage3DEXT glad_glTexImage3DEXT -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 void *pixels); -GLAPI PFNGLTEXSUBIMAGE3DEXTPROC glad_glTexSubImage3DEXT; -#define glTexSubImage3DEXT glad_glTexSubImage3DEXT -#endif -#ifndef GL_EXT_texture_array -#define GL_EXT_texture_array 1 -GLAPI int GLAD_GL_EXT_texture_array; -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -GLAPI PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC glad_glFramebufferTextureLayerEXT; -#define glFramebufferTextureLayerEXT glad_glFramebufferTextureLayerEXT -#endif -#ifndef GL_EXT_texture_buffer_object -#define GL_EXT_texture_buffer_object 1 -GLAPI int GLAD_GL_EXT_texture_buffer_object; -typedef void (APIENTRYP PFNGLTEXBUFFEREXTPROC)(GLenum target, GLenum internalformat, GLuint buffer); -GLAPI PFNGLTEXBUFFEREXTPROC glad_glTexBufferEXT; -#define glTexBufferEXT glad_glTexBufferEXT -#endif -#ifndef GL_EXT_texture_compression_latc -#define GL_EXT_texture_compression_latc 1 -GLAPI int GLAD_GL_EXT_texture_compression_latc; -#endif -#ifndef GL_EXT_texture_compression_rgtc -#define GL_EXT_texture_compression_rgtc 1 -GLAPI int GLAD_GL_EXT_texture_compression_rgtc; -#endif -#ifndef GL_EXT_texture_compression_s3tc -#define GL_EXT_texture_compression_s3tc 1 -GLAPI int GLAD_GL_EXT_texture_compression_s3tc; -#endif -#ifndef GL_EXT_texture_cube_map -#define GL_EXT_texture_cube_map 1 -GLAPI int GLAD_GL_EXT_texture_cube_map; -#endif -#ifndef GL_EXT_texture_env_add -#define GL_EXT_texture_env_add 1 -GLAPI int GLAD_GL_EXT_texture_env_add; -#endif -#ifndef GL_EXT_texture_env_combine -#define GL_EXT_texture_env_combine 1 -GLAPI int GLAD_GL_EXT_texture_env_combine; -#endif -#ifndef GL_EXT_texture_env_dot3 -#define GL_EXT_texture_env_dot3 1 -GLAPI int GLAD_GL_EXT_texture_env_dot3; -#endif -#ifndef GL_EXT_texture_filter_anisotropic -#define GL_EXT_texture_filter_anisotropic 1 -GLAPI int GLAD_GL_EXT_texture_filter_anisotropic; -#endif -#ifndef GL_EXT_texture_filter_minmax -#define GL_EXT_texture_filter_minmax 1 -GLAPI int GLAD_GL_EXT_texture_filter_minmax; -#endif -#ifndef GL_EXT_texture_integer -#define GL_EXT_texture_integer 1 -GLAPI int GLAD_GL_EXT_texture_integer; -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLTEXPARAMETERIIVEXTPROC glad_glTexParameterIivEXT; -#define glTexParameterIivEXT glad_glTexParameterIivEXT -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC)(GLenum target, GLenum pname, const GLuint *params); -GLAPI PFNGLTEXPARAMETERIUIVEXTPROC glad_glTexParameterIuivEXT; -#define glTexParameterIuivEXT glad_glTexParameterIuivEXT -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXPARAMETERIIVEXTPROC glad_glGetTexParameterIivEXT; -#define glGetTexParameterIivEXT glad_glGetTexParameterIivEXT -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC)(GLenum target, GLenum pname, GLuint *params); -GLAPI PFNGLGETTEXPARAMETERIUIVEXTPROC glad_glGetTexParameterIuivEXT; -#define glGetTexParameterIuivEXT glad_glGetTexParameterIuivEXT -typedef void (APIENTRYP PFNGLCLEARCOLORIIEXTPROC)(GLint red, GLint green, GLint blue, GLint alpha); -GLAPI PFNGLCLEARCOLORIIEXTPROC glad_glClearColorIiEXT; -#define glClearColorIiEXT glad_glClearColorIiEXT -typedef void (APIENTRYP PFNGLCLEARCOLORIUIEXTPROC)(GLuint red, GLuint green, GLuint blue, GLuint alpha); -GLAPI PFNGLCLEARCOLORIUIEXTPROC glad_glClearColorIuiEXT; -#define glClearColorIuiEXT glad_glClearColorIuiEXT -#endif -#ifndef GL_EXT_texture_lod_bias -#define GL_EXT_texture_lod_bias 1 -GLAPI int GLAD_GL_EXT_texture_lod_bias; -#endif -#ifndef GL_EXT_texture_mirror_clamp -#define GL_EXT_texture_mirror_clamp 1 -GLAPI int GLAD_GL_EXT_texture_mirror_clamp; -#endif -#ifndef GL_EXT_texture_object -#define GL_EXT_texture_object 1 -GLAPI int GLAD_GL_EXT_texture_object; -typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC)(GLsizei n, const GLuint *textures, GLboolean *residences); -GLAPI PFNGLARETEXTURESRESIDENTEXTPROC glad_glAreTexturesResidentEXT; -#define glAreTexturesResidentEXT glad_glAreTexturesResidentEXT -typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC)(GLenum target, GLuint texture); -GLAPI PFNGLBINDTEXTUREEXTPROC glad_glBindTextureEXT; -#define glBindTextureEXT glad_glBindTextureEXT -typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC)(GLsizei n, const GLuint *textures); -GLAPI PFNGLDELETETEXTURESEXTPROC glad_glDeleteTexturesEXT; -#define glDeleteTexturesEXT glad_glDeleteTexturesEXT -typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC)(GLsizei n, GLuint *textures); -GLAPI PFNGLGENTEXTURESEXTPROC glad_glGenTexturesEXT; -#define glGenTexturesEXT glad_glGenTexturesEXT -typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC)(GLuint texture); -GLAPI PFNGLISTEXTUREEXTPROC glad_glIsTextureEXT; -#define glIsTextureEXT glad_glIsTextureEXT -typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC)(GLsizei n, const GLuint *textures, const GLclampf *priorities); -GLAPI PFNGLPRIORITIZETEXTURESEXTPROC glad_glPrioritizeTexturesEXT; -#define glPrioritizeTexturesEXT glad_glPrioritizeTexturesEXT -#endif -#ifndef GL_EXT_texture_perturb_normal -#define GL_EXT_texture_perturb_normal 1 -GLAPI int GLAD_GL_EXT_texture_perturb_normal; -typedef void (APIENTRYP PFNGLTEXTURENORMALEXTPROC)(GLenum mode); -GLAPI PFNGLTEXTURENORMALEXTPROC glad_glTextureNormalEXT; -#define glTextureNormalEXT glad_glTextureNormalEXT -#endif -#ifndef GL_EXT_texture_sRGB -#define GL_EXT_texture_sRGB 1 -GLAPI int GLAD_GL_EXT_texture_sRGB; -#endif -#ifndef GL_EXT_texture_sRGB_decode -#define GL_EXT_texture_sRGB_decode 1 -GLAPI int GLAD_GL_EXT_texture_sRGB_decode; -#endif -#ifndef GL_EXT_texture_shared_exponent -#define GL_EXT_texture_shared_exponent 1 -GLAPI int GLAD_GL_EXT_texture_shared_exponent; -#endif -#ifndef GL_EXT_texture_snorm -#define GL_EXT_texture_snorm 1 -GLAPI int GLAD_GL_EXT_texture_snorm; -#endif -#ifndef GL_EXT_texture_swizzle -#define GL_EXT_texture_swizzle 1 -GLAPI int GLAD_GL_EXT_texture_swizzle; -#endif -#ifndef GL_EXT_timer_query -#define GL_EXT_timer_query 1 -GLAPI int GLAD_GL_EXT_timer_query; -typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC)(GLuint id, GLenum pname, GLint64 *params); -GLAPI PFNGLGETQUERYOBJECTI64VEXTPROC glad_glGetQueryObjecti64vEXT; -#define glGetQueryObjecti64vEXT glad_glGetQueryObjecti64vEXT -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC)(GLuint id, GLenum pname, GLuint64 *params); -GLAPI PFNGLGETQUERYOBJECTUI64VEXTPROC glad_glGetQueryObjectui64vEXT; -#define glGetQueryObjectui64vEXT glad_glGetQueryObjectui64vEXT -#endif -#ifndef GL_EXT_transform_feedback -#define GL_EXT_transform_feedback 1 -GLAPI int GLAD_GL_EXT_transform_feedback; -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC)(GLenum primitiveMode); -GLAPI PFNGLBEGINTRANSFORMFEEDBACKEXTPROC glad_glBeginTransformFeedbackEXT; -#define glBeginTransformFeedbackEXT glad_glBeginTransformFeedbackEXT -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC)(void); -GLAPI PFNGLENDTRANSFORMFEEDBACKEXTPROC glad_glEndTransformFeedbackEXT; -#define glEndTransformFeedbackEXT glad_glEndTransformFeedbackEXT -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLBINDBUFFERRANGEEXTPROC glad_glBindBufferRangeEXT; -#define glBindBufferRangeEXT glad_glBindBufferRangeEXT -typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC)(GLenum target, GLuint index, GLuint buffer, GLintptr offset); -GLAPI PFNGLBINDBUFFEROFFSETEXTPROC glad_glBindBufferOffsetEXT; -#define glBindBufferOffsetEXT glad_glBindBufferOffsetEXT -typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC)(GLenum target, GLuint index, GLuint buffer); -GLAPI PFNGLBINDBUFFERBASEEXTPROC glad_glBindBufferBaseEXT; -#define glBindBufferBaseEXT glad_glBindBufferBaseEXT -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC)(GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode); -GLAPI PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC glad_glTransformFeedbackVaryingsEXT; -#define glTransformFeedbackVaryingsEXT glad_glTransformFeedbackVaryingsEXT -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -GLAPI PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC glad_glGetTransformFeedbackVaryingEXT; -#define glGetTransformFeedbackVaryingEXT glad_glGetTransformFeedbackVaryingEXT -#endif -#ifndef GL_EXT_vertex_array -#define GL_EXT_vertex_array 1 -GLAPI int GLAD_GL_EXT_vertex_array; -typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC)(GLint i); -GLAPI PFNGLARRAYELEMENTEXTPROC glad_glArrayElementEXT; -#define glArrayElementEXT glad_glArrayElementEXT -typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC)(GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI PFNGLCOLORPOINTEREXTPROC glad_glColorPointerEXT; -#define glColorPointerEXT glad_glColorPointerEXT -typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC)(GLenum mode, GLint first, GLsizei count); -GLAPI PFNGLDRAWARRAYSEXTPROC glad_glDrawArraysEXT; -#define glDrawArraysEXT glad_glDrawArraysEXT -typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC)(GLsizei stride, GLsizei count, const GLboolean *pointer); -GLAPI PFNGLEDGEFLAGPOINTEREXTPROC glad_glEdgeFlagPointerEXT; -#define glEdgeFlagPointerEXT glad_glEdgeFlagPointerEXT -typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC)(GLenum pname, void **params); -GLAPI PFNGLGETPOINTERVEXTPROC glad_glGetPointervEXT; -#define glGetPointervEXT glad_glGetPointervEXT -typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC)(GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI PFNGLINDEXPOINTEREXTPROC glad_glIndexPointerEXT; -#define glIndexPointerEXT glad_glIndexPointerEXT -typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC)(GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI PFNGLNORMALPOINTEREXTPROC glad_glNormalPointerEXT; -#define glNormalPointerEXT glad_glNormalPointerEXT -typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC)(GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI PFNGLTEXCOORDPOINTEREXTPROC glad_glTexCoordPointerEXT; -#define glTexCoordPointerEXT glad_glTexCoordPointerEXT -typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC)(GLint size, GLenum type, GLsizei stride, GLsizei count, const void *pointer); -GLAPI PFNGLVERTEXPOINTEREXTPROC glad_glVertexPointerEXT; -#define glVertexPointerEXT glad_glVertexPointerEXT -#endif -#ifndef GL_EXT_vertex_array_bgra -#define GL_EXT_vertex_array_bgra 1 -GLAPI int GLAD_GL_EXT_vertex_array_bgra; -#endif -#ifndef GL_EXT_vertex_attrib_64bit -#define GL_EXT_vertex_attrib_64bit 1 -GLAPI int GLAD_GL_EXT_vertex_attrib_64bit; -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DEXTPROC)(GLuint index, GLdouble x); -GLAPI PFNGLVERTEXATTRIBL1DEXTPROC glad_glVertexAttribL1dEXT; -#define glVertexAttribL1dEXT glad_glVertexAttribL1dEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DEXTPROC)(GLuint index, GLdouble x, GLdouble y); -GLAPI PFNGLVERTEXATTRIBL2DEXTPROC glad_glVertexAttribL2dEXT; -#define glVertexAttribL2dEXT glad_glVertexAttribL2dEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DEXTPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEXATTRIBL3DEXTPROC glad_glVertexAttribL3dEXT; -#define glVertexAttribL3dEXT glad_glVertexAttribL3dEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DEXTPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEXATTRIBL4DEXTPROC glad_glVertexAttribL4dEXT; -#define glVertexAttribL4dEXT glad_glVertexAttribL4dEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVEXTPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBL1DVEXTPROC glad_glVertexAttribL1dvEXT; -#define glVertexAttribL1dvEXT glad_glVertexAttribL1dvEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVEXTPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBL2DVEXTPROC glad_glVertexAttribL2dvEXT; -#define glVertexAttribL2dvEXT glad_glVertexAttribL2dvEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVEXTPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBL3DVEXTPROC glad_glVertexAttribL3dvEXT; -#define glVertexAttribL3dvEXT glad_glVertexAttribL3dvEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVEXTPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBL4DVEXTPROC glad_glVertexAttribL4dvEXT; -#define glVertexAttribL4dvEXT glad_glVertexAttribL4dvEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTEREXTPROC)(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXATTRIBLPOINTEREXTPROC glad_glVertexAttribLPointerEXT; -#define glVertexAttribLPointerEXT glad_glVertexAttribLPointerEXT -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVEXTPROC)(GLuint index, GLenum pname, GLdouble *params); -GLAPI PFNGLGETVERTEXATTRIBLDVEXTPROC glad_glGetVertexAttribLdvEXT; -#define glGetVertexAttribLdvEXT glad_glGetVertexAttribLdvEXT -#endif -#ifndef GL_EXT_vertex_shader -#define GL_EXT_vertex_shader 1 -GLAPI int GLAD_GL_EXT_vertex_shader; -typedef void (APIENTRYP PFNGLBEGINVERTEXSHADEREXTPROC)(void); -GLAPI PFNGLBEGINVERTEXSHADEREXTPROC glad_glBeginVertexShaderEXT; -#define glBeginVertexShaderEXT glad_glBeginVertexShaderEXT -typedef void (APIENTRYP PFNGLENDVERTEXSHADEREXTPROC)(void); -GLAPI PFNGLENDVERTEXSHADEREXTPROC glad_glEndVertexShaderEXT; -#define glEndVertexShaderEXT glad_glEndVertexShaderEXT -typedef void (APIENTRYP PFNGLBINDVERTEXSHADEREXTPROC)(GLuint id); -GLAPI PFNGLBINDVERTEXSHADEREXTPROC glad_glBindVertexShaderEXT; -#define glBindVertexShaderEXT glad_glBindVertexShaderEXT -typedef GLuint (APIENTRYP PFNGLGENVERTEXSHADERSEXTPROC)(GLuint range); -GLAPI PFNGLGENVERTEXSHADERSEXTPROC glad_glGenVertexShadersEXT; -#define glGenVertexShadersEXT glad_glGenVertexShadersEXT -typedef void (APIENTRYP PFNGLDELETEVERTEXSHADEREXTPROC)(GLuint id); -GLAPI PFNGLDELETEVERTEXSHADEREXTPROC glad_glDeleteVertexShaderEXT; -#define glDeleteVertexShaderEXT glad_glDeleteVertexShaderEXT -typedef void (APIENTRYP PFNGLSHADEROP1EXTPROC)(GLenum op, GLuint res, GLuint arg1); -GLAPI PFNGLSHADEROP1EXTPROC glad_glShaderOp1EXT; -#define glShaderOp1EXT glad_glShaderOp1EXT -typedef void (APIENTRYP PFNGLSHADEROP2EXTPROC)(GLenum op, GLuint res, GLuint arg1, GLuint arg2); -GLAPI PFNGLSHADEROP2EXTPROC glad_glShaderOp2EXT; -#define glShaderOp2EXT glad_glShaderOp2EXT -typedef void (APIENTRYP PFNGLSHADEROP3EXTPROC)(GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); -GLAPI PFNGLSHADEROP3EXTPROC glad_glShaderOp3EXT; -#define glShaderOp3EXT glad_glShaderOp3EXT -typedef void (APIENTRYP PFNGLSWIZZLEEXTPROC)(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -GLAPI PFNGLSWIZZLEEXTPROC glad_glSwizzleEXT; -#define glSwizzleEXT glad_glSwizzleEXT -typedef void (APIENTRYP PFNGLWRITEMASKEXTPROC)(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); -GLAPI PFNGLWRITEMASKEXTPROC glad_glWriteMaskEXT; -#define glWriteMaskEXT glad_glWriteMaskEXT -typedef void (APIENTRYP PFNGLINSERTCOMPONENTEXTPROC)(GLuint res, GLuint src, GLuint num); -GLAPI PFNGLINSERTCOMPONENTEXTPROC glad_glInsertComponentEXT; -#define glInsertComponentEXT glad_glInsertComponentEXT -typedef void (APIENTRYP PFNGLEXTRACTCOMPONENTEXTPROC)(GLuint res, GLuint src, GLuint num); -GLAPI PFNGLEXTRACTCOMPONENTEXTPROC glad_glExtractComponentEXT; -#define glExtractComponentEXT glad_glExtractComponentEXT -typedef GLuint (APIENTRYP PFNGLGENSYMBOLSEXTPROC)(GLenum datatype, GLenum storagetype, GLenum range, GLuint components); -GLAPI PFNGLGENSYMBOLSEXTPROC glad_glGenSymbolsEXT; -#define glGenSymbolsEXT glad_glGenSymbolsEXT -typedef void (APIENTRYP PFNGLSETINVARIANTEXTPROC)(GLuint id, GLenum type, const void *addr); -GLAPI PFNGLSETINVARIANTEXTPROC glad_glSetInvariantEXT; -#define glSetInvariantEXT glad_glSetInvariantEXT -typedef void (APIENTRYP PFNGLSETLOCALCONSTANTEXTPROC)(GLuint id, GLenum type, const void *addr); -GLAPI PFNGLSETLOCALCONSTANTEXTPROC glad_glSetLocalConstantEXT; -#define glSetLocalConstantEXT glad_glSetLocalConstantEXT -typedef void (APIENTRYP PFNGLVARIANTBVEXTPROC)(GLuint id, const GLbyte *addr); -GLAPI PFNGLVARIANTBVEXTPROC glad_glVariantbvEXT; -#define glVariantbvEXT glad_glVariantbvEXT -typedef void (APIENTRYP PFNGLVARIANTSVEXTPROC)(GLuint id, const GLshort *addr); -GLAPI PFNGLVARIANTSVEXTPROC glad_glVariantsvEXT; -#define glVariantsvEXT glad_glVariantsvEXT -typedef void (APIENTRYP PFNGLVARIANTIVEXTPROC)(GLuint id, const GLint *addr); -GLAPI PFNGLVARIANTIVEXTPROC glad_glVariantivEXT; -#define glVariantivEXT glad_glVariantivEXT -typedef void (APIENTRYP PFNGLVARIANTFVEXTPROC)(GLuint id, const GLfloat *addr); -GLAPI PFNGLVARIANTFVEXTPROC glad_glVariantfvEXT; -#define glVariantfvEXT glad_glVariantfvEXT -typedef void (APIENTRYP PFNGLVARIANTDVEXTPROC)(GLuint id, const GLdouble *addr); -GLAPI PFNGLVARIANTDVEXTPROC glad_glVariantdvEXT; -#define glVariantdvEXT glad_glVariantdvEXT -typedef void (APIENTRYP PFNGLVARIANTUBVEXTPROC)(GLuint id, const GLubyte *addr); -GLAPI PFNGLVARIANTUBVEXTPROC glad_glVariantubvEXT; -#define glVariantubvEXT glad_glVariantubvEXT -typedef void (APIENTRYP PFNGLVARIANTUSVEXTPROC)(GLuint id, const GLushort *addr); -GLAPI PFNGLVARIANTUSVEXTPROC glad_glVariantusvEXT; -#define glVariantusvEXT glad_glVariantusvEXT -typedef void (APIENTRYP PFNGLVARIANTUIVEXTPROC)(GLuint id, const GLuint *addr); -GLAPI PFNGLVARIANTUIVEXTPROC glad_glVariantuivEXT; -#define glVariantuivEXT glad_glVariantuivEXT -typedef void (APIENTRYP PFNGLVARIANTPOINTEREXTPROC)(GLuint id, GLenum type, GLuint stride, const void *addr); -GLAPI PFNGLVARIANTPOINTEREXTPROC glad_glVariantPointerEXT; -#define glVariantPointerEXT glad_glVariantPointerEXT -typedef void (APIENTRYP PFNGLENABLEVARIANTCLIENTSTATEEXTPROC)(GLuint id); -GLAPI PFNGLENABLEVARIANTCLIENTSTATEEXTPROC glad_glEnableVariantClientStateEXT; -#define glEnableVariantClientStateEXT glad_glEnableVariantClientStateEXT -typedef void (APIENTRYP PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC)(GLuint id); -GLAPI PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC glad_glDisableVariantClientStateEXT; -#define glDisableVariantClientStateEXT glad_glDisableVariantClientStateEXT -typedef GLuint (APIENTRYP PFNGLBINDLIGHTPARAMETEREXTPROC)(GLenum light, GLenum value); -GLAPI PFNGLBINDLIGHTPARAMETEREXTPROC glad_glBindLightParameterEXT; -#define glBindLightParameterEXT glad_glBindLightParameterEXT -typedef GLuint (APIENTRYP PFNGLBINDMATERIALPARAMETEREXTPROC)(GLenum face, GLenum value); -GLAPI PFNGLBINDMATERIALPARAMETEREXTPROC glad_glBindMaterialParameterEXT; -#define glBindMaterialParameterEXT glad_glBindMaterialParameterEXT -typedef GLuint (APIENTRYP PFNGLBINDTEXGENPARAMETEREXTPROC)(GLenum unit, GLenum coord, GLenum value); -GLAPI PFNGLBINDTEXGENPARAMETEREXTPROC glad_glBindTexGenParameterEXT; -#define glBindTexGenParameterEXT glad_glBindTexGenParameterEXT -typedef GLuint (APIENTRYP PFNGLBINDTEXTUREUNITPARAMETEREXTPROC)(GLenum unit, GLenum value); -GLAPI PFNGLBINDTEXTUREUNITPARAMETEREXTPROC glad_glBindTextureUnitParameterEXT; -#define glBindTextureUnitParameterEXT glad_glBindTextureUnitParameterEXT -typedef GLuint (APIENTRYP PFNGLBINDPARAMETEREXTPROC)(GLenum value); -GLAPI PFNGLBINDPARAMETEREXTPROC glad_glBindParameterEXT; -#define glBindParameterEXT glad_glBindParameterEXT -typedef GLboolean (APIENTRYP PFNGLISVARIANTENABLEDEXTPROC)(GLuint id, GLenum cap); -GLAPI PFNGLISVARIANTENABLEDEXTPROC glad_glIsVariantEnabledEXT; -#define glIsVariantEnabledEXT glad_glIsVariantEnabledEXT -typedef void (APIENTRYP PFNGLGETVARIANTBOOLEANVEXTPROC)(GLuint id, GLenum value, GLboolean *data); -GLAPI PFNGLGETVARIANTBOOLEANVEXTPROC glad_glGetVariantBooleanvEXT; -#define glGetVariantBooleanvEXT glad_glGetVariantBooleanvEXT -typedef void (APIENTRYP PFNGLGETVARIANTINTEGERVEXTPROC)(GLuint id, GLenum value, GLint *data); -GLAPI PFNGLGETVARIANTINTEGERVEXTPROC glad_glGetVariantIntegervEXT; -#define glGetVariantIntegervEXT glad_glGetVariantIntegervEXT -typedef void (APIENTRYP PFNGLGETVARIANTFLOATVEXTPROC)(GLuint id, GLenum value, GLfloat *data); -GLAPI PFNGLGETVARIANTFLOATVEXTPROC glad_glGetVariantFloatvEXT; -#define glGetVariantFloatvEXT glad_glGetVariantFloatvEXT -typedef void (APIENTRYP PFNGLGETVARIANTPOINTERVEXTPROC)(GLuint id, GLenum value, void **data); -GLAPI PFNGLGETVARIANTPOINTERVEXTPROC glad_glGetVariantPointervEXT; -#define glGetVariantPointervEXT glad_glGetVariantPointervEXT -typedef void (APIENTRYP PFNGLGETINVARIANTBOOLEANVEXTPROC)(GLuint id, GLenum value, GLboolean *data); -GLAPI PFNGLGETINVARIANTBOOLEANVEXTPROC glad_glGetInvariantBooleanvEXT; -#define glGetInvariantBooleanvEXT glad_glGetInvariantBooleanvEXT -typedef void (APIENTRYP PFNGLGETINVARIANTINTEGERVEXTPROC)(GLuint id, GLenum value, GLint *data); -GLAPI PFNGLGETINVARIANTINTEGERVEXTPROC glad_glGetInvariantIntegervEXT; -#define glGetInvariantIntegervEXT glad_glGetInvariantIntegervEXT -typedef void (APIENTRYP PFNGLGETINVARIANTFLOATVEXTPROC)(GLuint id, GLenum value, GLfloat *data); -GLAPI PFNGLGETINVARIANTFLOATVEXTPROC glad_glGetInvariantFloatvEXT; -#define glGetInvariantFloatvEXT glad_glGetInvariantFloatvEXT -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC)(GLuint id, GLenum value, GLboolean *data); -GLAPI PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC glad_glGetLocalConstantBooleanvEXT; -#define glGetLocalConstantBooleanvEXT glad_glGetLocalConstantBooleanvEXT -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTINTEGERVEXTPROC)(GLuint id, GLenum value, GLint *data); -GLAPI PFNGLGETLOCALCONSTANTINTEGERVEXTPROC glad_glGetLocalConstantIntegervEXT; -#define glGetLocalConstantIntegervEXT glad_glGetLocalConstantIntegervEXT -typedef void (APIENTRYP PFNGLGETLOCALCONSTANTFLOATVEXTPROC)(GLuint id, GLenum value, GLfloat *data); -GLAPI PFNGLGETLOCALCONSTANTFLOATVEXTPROC glad_glGetLocalConstantFloatvEXT; -#define glGetLocalConstantFloatvEXT glad_glGetLocalConstantFloatvEXT -#endif -#ifndef GL_EXT_vertex_weighting -#define GL_EXT_vertex_weighting 1 -GLAPI int GLAD_GL_EXT_vertex_weighting; -typedef void (APIENTRYP PFNGLVERTEXWEIGHTFEXTPROC)(GLfloat weight); -GLAPI PFNGLVERTEXWEIGHTFEXTPROC glad_glVertexWeightfEXT; -#define glVertexWeightfEXT glad_glVertexWeightfEXT -typedef void (APIENTRYP PFNGLVERTEXWEIGHTFVEXTPROC)(const GLfloat *weight); -GLAPI PFNGLVERTEXWEIGHTFVEXTPROC glad_glVertexWeightfvEXT; -#define glVertexWeightfvEXT glad_glVertexWeightfvEXT -typedef void (APIENTRYP PFNGLVERTEXWEIGHTPOINTEREXTPROC)(GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXWEIGHTPOINTEREXTPROC glad_glVertexWeightPointerEXT; -#define glVertexWeightPointerEXT glad_glVertexWeightPointerEXT -#endif -#ifndef GL_EXT_win32_keyed_mutex -#define GL_EXT_win32_keyed_mutex 1 -GLAPI int GLAD_GL_EXT_win32_keyed_mutex; -typedef GLboolean (APIENTRYP PFNGLACQUIREKEYEDMUTEXWIN32EXTPROC)(GLuint memory, GLuint64 key, GLuint timeout); -GLAPI PFNGLACQUIREKEYEDMUTEXWIN32EXTPROC glad_glAcquireKeyedMutexWin32EXT; -#define glAcquireKeyedMutexWin32EXT glad_glAcquireKeyedMutexWin32EXT -typedef GLboolean (APIENTRYP PFNGLRELEASEKEYEDMUTEXWIN32EXTPROC)(GLuint memory, GLuint64 key); -GLAPI PFNGLRELEASEKEYEDMUTEXWIN32EXTPROC glad_glReleaseKeyedMutexWin32EXT; -#define glReleaseKeyedMutexWin32EXT glad_glReleaseKeyedMutexWin32EXT -#endif -#ifndef GL_EXT_window_rectangles -#define GL_EXT_window_rectangles 1 -GLAPI int GLAD_GL_EXT_window_rectangles; -typedef void (APIENTRYP PFNGLWINDOWRECTANGLESEXTPROC)(GLenum mode, GLsizei count, const GLint *box); -GLAPI PFNGLWINDOWRECTANGLESEXTPROC glad_glWindowRectanglesEXT; -#define glWindowRectanglesEXT glad_glWindowRectanglesEXT -#endif -#ifndef GL_EXT_x11_sync_object -#define GL_EXT_x11_sync_object 1 -GLAPI int GLAD_GL_EXT_x11_sync_object; -typedef GLsync (APIENTRYP PFNGLIMPORTSYNCEXTPROC)(GLenum external_sync_type, GLintptr external_sync, GLbitfield flags); -GLAPI PFNGLIMPORTSYNCEXTPROC glad_glImportSyncEXT; -#define glImportSyncEXT glad_glImportSyncEXT -#endif -#ifndef GL_GREMEDY_frame_terminator -#define GL_GREMEDY_frame_terminator 1 -GLAPI int GLAD_GL_GREMEDY_frame_terminator; -typedef void (APIENTRYP PFNGLFRAMETERMINATORGREMEDYPROC)(void); -GLAPI PFNGLFRAMETERMINATORGREMEDYPROC glad_glFrameTerminatorGREMEDY; -#define glFrameTerminatorGREMEDY glad_glFrameTerminatorGREMEDY -#endif -#ifndef GL_GREMEDY_string_marker -#define GL_GREMEDY_string_marker 1 -GLAPI int GLAD_GL_GREMEDY_string_marker; -typedef void (APIENTRYP PFNGLSTRINGMARKERGREMEDYPROC)(GLsizei len, const void *string); -GLAPI PFNGLSTRINGMARKERGREMEDYPROC glad_glStringMarkerGREMEDY; -#define glStringMarkerGREMEDY glad_glStringMarkerGREMEDY -#endif -#ifndef GL_HP_convolution_border_modes -#define GL_HP_convolution_border_modes 1 -GLAPI int GLAD_GL_HP_convolution_border_modes; -#endif -#ifndef GL_HP_image_transform -#define GL_HP_image_transform 1 -GLAPI int GLAD_GL_HP_image_transform; -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIHPPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLIMAGETRANSFORMPARAMETERIHPPROC glad_glImageTransformParameteriHP; -#define glImageTransformParameteriHP glad_glImageTransformParameteriHP -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFHPPROC)(GLenum target, GLenum pname, GLfloat param); -GLAPI PFNGLIMAGETRANSFORMPARAMETERFHPPROC glad_glImageTransformParameterfHP; -#define glImageTransformParameterfHP glad_glImageTransformParameterfHP -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERIVHPPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLIMAGETRANSFORMPARAMETERIVHPPROC glad_glImageTransformParameterivHP; -#define glImageTransformParameterivHP glad_glImageTransformParameterivHP -typedef void (APIENTRYP PFNGLIMAGETRANSFORMPARAMETERFVHPPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLIMAGETRANSFORMPARAMETERFVHPPROC glad_glImageTransformParameterfvHP; -#define glImageTransformParameterfvHP glad_glImageTransformParameterfvHP -typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC glad_glGetImageTransformParameterivHP; -#define glGetImageTransformParameterivHP glad_glGetImageTransformParameterivHP -typedef void (APIENTRYP PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC glad_glGetImageTransformParameterfvHP; -#define glGetImageTransformParameterfvHP glad_glGetImageTransformParameterfvHP -#endif -#ifndef GL_HP_occlusion_test -#define GL_HP_occlusion_test 1 -GLAPI int GLAD_GL_HP_occlusion_test; -#endif -#ifndef GL_HP_texture_lighting -#define GL_HP_texture_lighting 1 -GLAPI int GLAD_GL_HP_texture_lighting; -#endif -#ifndef GL_IBM_cull_vertex -#define GL_IBM_cull_vertex 1 -GLAPI int GLAD_GL_IBM_cull_vertex; -#endif -#ifndef GL_IBM_multimode_draw_arrays -#define GL_IBM_multimode_draw_arrays 1 -GLAPI int GLAD_GL_IBM_multimode_draw_arrays; -typedef void (APIENTRYP PFNGLMULTIMODEDRAWARRAYSIBMPROC)(const GLenum *mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride); -GLAPI PFNGLMULTIMODEDRAWARRAYSIBMPROC glad_glMultiModeDrawArraysIBM; -#define glMultiModeDrawArraysIBM glad_glMultiModeDrawArraysIBM -typedef void (APIENTRYP PFNGLMULTIMODEDRAWELEMENTSIBMPROC)(const GLenum *mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, GLint modestride); -GLAPI PFNGLMULTIMODEDRAWELEMENTSIBMPROC glad_glMultiModeDrawElementsIBM; -#define glMultiModeDrawElementsIBM glad_glMultiModeDrawElementsIBM -#endif -#ifndef GL_IBM_rasterpos_clip -#define GL_IBM_rasterpos_clip 1 -GLAPI int GLAD_GL_IBM_rasterpos_clip; -#endif -#ifndef GL_IBM_static_data -#define GL_IBM_static_data 1 -GLAPI int GLAD_GL_IBM_static_data; -typedef void (APIENTRYP PFNGLFLUSHSTATICDATAIBMPROC)(GLenum target); -GLAPI PFNGLFLUSHSTATICDATAIBMPROC glad_glFlushStaticDataIBM; -#define glFlushStaticDataIBM glad_glFlushStaticDataIBM -#endif -#ifndef GL_IBM_texture_mirrored_repeat -#define GL_IBM_texture_mirrored_repeat 1 -GLAPI int GLAD_GL_IBM_texture_mirrored_repeat; -#endif -#ifndef GL_IBM_vertex_array_lists -#define GL_IBM_vertex_array_lists 1 -GLAPI int GLAD_GL_IBM_vertex_array_lists; -typedef void (APIENTRYP PFNGLCOLORPOINTERLISTIBMPROC)(GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI PFNGLCOLORPOINTERLISTIBMPROC glad_glColorPointerListIBM; -#define glColorPointerListIBM glad_glColorPointerListIBM -typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERLISTIBMPROC)(GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI PFNGLSECONDARYCOLORPOINTERLISTIBMPROC glad_glSecondaryColorPointerListIBM; -#define glSecondaryColorPointerListIBM glad_glSecondaryColorPointerListIBM -typedef void (APIENTRYP PFNGLEDGEFLAGPOINTERLISTIBMPROC)(GLint stride, const GLboolean **pointer, GLint ptrstride); -GLAPI PFNGLEDGEFLAGPOINTERLISTIBMPROC glad_glEdgeFlagPointerListIBM; -#define glEdgeFlagPointerListIBM glad_glEdgeFlagPointerListIBM -typedef void (APIENTRYP PFNGLFOGCOORDPOINTERLISTIBMPROC)(GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI PFNGLFOGCOORDPOINTERLISTIBMPROC glad_glFogCoordPointerListIBM; -#define glFogCoordPointerListIBM glad_glFogCoordPointerListIBM -typedef void (APIENTRYP PFNGLINDEXPOINTERLISTIBMPROC)(GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI PFNGLINDEXPOINTERLISTIBMPROC glad_glIndexPointerListIBM; -#define glIndexPointerListIBM glad_glIndexPointerListIBM -typedef void (APIENTRYP PFNGLNORMALPOINTERLISTIBMPROC)(GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI PFNGLNORMALPOINTERLISTIBMPROC glad_glNormalPointerListIBM; -#define glNormalPointerListIBM glad_glNormalPointerListIBM -typedef void (APIENTRYP PFNGLTEXCOORDPOINTERLISTIBMPROC)(GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI PFNGLTEXCOORDPOINTERLISTIBMPROC glad_glTexCoordPointerListIBM; -#define glTexCoordPointerListIBM glad_glTexCoordPointerListIBM -typedef void (APIENTRYP PFNGLVERTEXPOINTERLISTIBMPROC)(GLint size, GLenum type, GLint stride, const void **pointer, GLint ptrstride); -GLAPI PFNGLVERTEXPOINTERLISTIBMPROC glad_glVertexPointerListIBM; -#define glVertexPointerListIBM glad_glVertexPointerListIBM -#endif -#ifndef GL_INGR_blend_func_separate -#define GL_INGR_blend_func_separate 1 -GLAPI int GLAD_GL_INGR_blend_func_separate; -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINGRPROC)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEINGRPROC glad_glBlendFuncSeparateINGR; -#define glBlendFuncSeparateINGR glad_glBlendFuncSeparateINGR -#endif -#ifndef GL_INGR_color_clamp -#define GL_INGR_color_clamp 1 -GLAPI int GLAD_GL_INGR_color_clamp; -#endif -#ifndef GL_INGR_interlace_read -#define GL_INGR_interlace_read 1 -GLAPI int GLAD_GL_INGR_interlace_read; -#endif -#ifndef GL_INTEL_blackhole_render -#define GL_INTEL_blackhole_render 1 -GLAPI int GLAD_GL_INTEL_blackhole_render; -#endif -#ifndef GL_INTEL_conservative_rasterization -#define GL_INTEL_conservative_rasterization 1 -GLAPI int GLAD_GL_INTEL_conservative_rasterization; -#endif -#ifndef GL_INTEL_fragment_shader_ordering -#define GL_INTEL_fragment_shader_ordering 1 -GLAPI int GLAD_GL_INTEL_fragment_shader_ordering; -#endif -#ifndef GL_INTEL_framebuffer_CMAA -#define GL_INTEL_framebuffer_CMAA 1 -GLAPI int GLAD_GL_INTEL_framebuffer_CMAA; -typedef void (APIENTRYP PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC)(void); -GLAPI PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC glad_glApplyFramebufferAttachmentCMAAINTEL; -#define glApplyFramebufferAttachmentCMAAINTEL glad_glApplyFramebufferAttachmentCMAAINTEL -#endif -#ifndef GL_INTEL_map_texture -#define GL_INTEL_map_texture 1 -GLAPI int GLAD_GL_INTEL_map_texture; -typedef void (APIENTRYP PFNGLSYNCTEXTUREINTELPROC)(GLuint texture); -GLAPI PFNGLSYNCTEXTUREINTELPROC glad_glSyncTextureINTEL; -#define glSyncTextureINTEL glad_glSyncTextureINTEL -typedef void (APIENTRYP PFNGLUNMAPTEXTURE2DINTELPROC)(GLuint texture, GLint level); -GLAPI PFNGLUNMAPTEXTURE2DINTELPROC glad_glUnmapTexture2DINTEL; -#define glUnmapTexture2DINTEL glad_glUnmapTexture2DINTEL -typedef void * (APIENTRYP PFNGLMAPTEXTURE2DINTELPROC)(GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout); -GLAPI PFNGLMAPTEXTURE2DINTELPROC glad_glMapTexture2DINTEL; -#define glMapTexture2DINTEL glad_glMapTexture2DINTEL -#endif -#ifndef GL_INTEL_parallel_arrays -#define GL_INTEL_parallel_arrays 1 -GLAPI int GLAD_GL_INTEL_parallel_arrays; -typedef void (APIENTRYP PFNGLVERTEXPOINTERVINTELPROC)(GLint size, GLenum type, const void **pointer); -GLAPI PFNGLVERTEXPOINTERVINTELPROC glad_glVertexPointervINTEL; -#define glVertexPointervINTEL glad_glVertexPointervINTEL -typedef void (APIENTRYP PFNGLNORMALPOINTERVINTELPROC)(GLenum type, const void **pointer); -GLAPI PFNGLNORMALPOINTERVINTELPROC glad_glNormalPointervINTEL; -#define glNormalPointervINTEL glad_glNormalPointervINTEL -typedef void (APIENTRYP PFNGLCOLORPOINTERVINTELPROC)(GLint size, GLenum type, const void **pointer); -GLAPI PFNGLCOLORPOINTERVINTELPROC glad_glColorPointervINTEL; -#define glColorPointervINTEL glad_glColorPointervINTEL -typedef void (APIENTRYP PFNGLTEXCOORDPOINTERVINTELPROC)(GLint size, GLenum type, const void **pointer); -GLAPI PFNGLTEXCOORDPOINTERVINTELPROC glad_glTexCoordPointervINTEL; -#define glTexCoordPointervINTEL glad_glTexCoordPointervINTEL -#endif -#ifndef GL_INTEL_performance_query -#define GL_INTEL_performance_query 1 -GLAPI int GLAD_GL_INTEL_performance_query; -typedef void (APIENTRYP PFNGLBEGINPERFQUERYINTELPROC)(GLuint queryHandle); -GLAPI PFNGLBEGINPERFQUERYINTELPROC glad_glBeginPerfQueryINTEL; -#define glBeginPerfQueryINTEL glad_glBeginPerfQueryINTEL -typedef void (APIENTRYP PFNGLCREATEPERFQUERYINTELPROC)(GLuint queryId, GLuint *queryHandle); -GLAPI PFNGLCREATEPERFQUERYINTELPROC glad_glCreatePerfQueryINTEL; -#define glCreatePerfQueryINTEL glad_glCreatePerfQueryINTEL -typedef void (APIENTRYP PFNGLDELETEPERFQUERYINTELPROC)(GLuint queryHandle); -GLAPI PFNGLDELETEPERFQUERYINTELPROC glad_glDeletePerfQueryINTEL; -#define glDeletePerfQueryINTEL glad_glDeletePerfQueryINTEL -typedef void (APIENTRYP PFNGLENDPERFQUERYINTELPROC)(GLuint queryHandle); -GLAPI PFNGLENDPERFQUERYINTELPROC glad_glEndPerfQueryINTEL; -#define glEndPerfQueryINTEL glad_glEndPerfQueryINTEL -typedef void (APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC)(GLuint *queryId); -GLAPI PFNGLGETFIRSTPERFQUERYIDINTELPROC glad_glGetFirstPerfQueryIdINTEL; -#define glGetFirstPerfQueryIdINTEL glad_glGetFirstPerfQueryIdINTEL -typedef void (APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC)(GLuint queryId, GLuint *nextQueryId); -GLAPI PFNGLGETNEXTPERFQUERYIDINTELPROC glad_glGetNextPerfQueryIdINTEL; -#define glGetNextPerfQueryIdINTEL glad_glGetNextPerfQueryIdINTEL -typedef void (APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC)(GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue); -GLAPI PFNGLGETPERFCOUNTERINFOINTELPROC glad_glGetPerfCounterInfoINTEL; -#define glGetPerfCounterInfoINTEL glad_glGetPerfCounterInfoINTEL -typedef void (APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC)(GLuint queryHandle, GLuint flags, GLsizei dataSize, void *data, GLuint *bytesWritten); -GLAPI PFNGLGETPERFQUERYDATAINTELPROC glad_glGetPerfQueryDataINTEL; -#define glGetPerfQueryDataINTEL glad_glGetPerfQueryDataINTEL -typedef void (APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC)(GLchar *queryName, GLuint *queryId); -GLAPI PFNGLGETPERFQUERYIDBYNAMEINTELPROC glad_glGetPerfQueryIdByNameINTEL; -#define glGetPerfQueryIdByNameINTEL glad_glGetPerfQueryIdByNameINTEL -typedef void (APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC)(GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask); -GLAPI PFNGLGETPERFQUERYINFOINTELPROC glad_glGetPerfQueryInfoINTEL; -#define glGetPerfQueryInfoINTEL glad_glGetPerfQueryInfoINTEL -#endif -#ifndef GL_KHR_blend_equation_advanced -#define GL_KHR_blend_equation_advanced 1 -GLAPI int GLAD_GL_KHR_blend_equation_advanced; -typedef void (APIENTRYP PFNGLBLENDBARRIERKHRPROC)(void); -GLAPI PFNGLBLENDBARRIERKHRPROC glad_glBlendBarrierKHR; -#define glBlendBarrierKHR glad_glBlendBarrierKHR -#endif -#ifndef GL_KHR_blend_equation_advanced_coherent -#define GL_KHR_blend_equation_advanced_coherent 1 -GLAPI int GLAD_GL_KHR_blend_equation_advanced_coherent; -#endif -#ifndef GL_KHR_context_flush_control -#define GL_KHR_context_flush_control 1 -GLAPI int GLAD_GL_KHR_context_flush_control; -#endif -#ifndef GL_KHR_debug -#define GL_KHR_debug 1 -GLAPI int GLAD_GL_KHR_debug; -typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLKHRPROC)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI PFNGLDEBUGMESSAGECONTROLKHRPROC glad_glDebugMessageControlKHR; -#define glDebugMessageControlKHR glad_glDebugMessageControlKHR -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTKHRPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -GLAPI PFNGLDEBUGMESSAGEINSERTKHRPROC glad_glDebugMessageInsertKHR; -#define glDebugMessageInsertKHR glad_glDebugMessageInsertKHR -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKKHRPROC)(GLDEBUGPROCKHR callback, const void *userParam); -GLAPI PFNGLDEBUGMESSAGECALLBACKKHRPROC glad_glDebugMessageCallbackKHR; -#define glDebugMessageCallbackKHR glad_glDebugMessageCallbackKHR -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC)(GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -GLAPI PFNGLGETDEBUGMESSAGELOGKHRPROC glad_glGetDebugMessageLogKHR; -#define glGetDebugMessageLogKHR glad_glGetDebugMessageLogKHR -typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPKHRPROC)(GLenum source, GLuint id, GLsizei length, const GLchar *message); -GLAPI PFNGLPUSHDEBUGGROUPKHRPROC glad_glPushDebugGroupKHR; -#define glPushDebugGroupKHR glad_glPushDebugGroupKHR -typedef void (APIENTRYP PFNGLPOPDEBUGGROUPKHRPROC)(void); -GLAPI PFNGLPOPDEBUGGROUPKHRPROC glad_glPopDebugGroupKHR; -#define glPopDebugGroupKHR glad_glPopDebugGroupKHR -typedef void (APIENTRYP PFNGLOBJECTLABELKHRPROC)(GLenum identifier, GLuint name, GLsizei length, const GLchar *label); -GLAPI PFNGLOBJECTLABELKHRPROC glad_glObjectLabelKHR; -#define glObjectLabelKHR glad_glObjectLabelKHR -typedef void (APIENTRYP PFNGLGETOBJECTLABELKHRPROC)(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); -GLAPI PFNGLGETOBJECTLABELKHRPROC glad_glGetObjectLabelKHR; -#define glGetObjectLabelKHR glad_glGetObjectLabelKHR -typedef void (APIENTRYP PFNGLOBJECTPTRLABELKHRPROC)(const void *ptr, GLsizei length, const GLchar *label); -GLAPI PFNGLOBJECTPTRLABELKHRPROC glad_glObjectPtrLabelKHR; -#define glObjectPtrLabelKHR glad_glObjectPtrLabelKHR -typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELKHRPROC)(const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); -GLAPI PFNGLGETOBJECTPTRLABELKHRPROC glad_glGetObjectPtrLabelKHR; -#define glGetObjectPtrLabelKHR glad_glGetObjectPtrLabelKHR -typedef void (APIENTRYP PFNGLGETPOINTERVKHRPROC)(GLenum pname, void **params); -GLAPI PFNGLGETPOINTERVKHRPROC glad_glGetPointervKHR; -#define glGetPointervKHR glad_glGetPointervKHR -#endif -#ifndef GL_KHR_no_error -#define GL_KHR_no_error 1 -GLAPI int GLAD_GL_KHR_no_error; -#endif -#ifndef GL_KHR_parallel_shader_compile -#define GL_KHR_parallel_shader_compile 1 -GLAPI int GLAD_GL_KHR_parallel_shader_compile; -typedef void (APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC)(GLuint count); -GLAPI PFNGLMAXSHADERCOMPILERTHREADSKHRPROC glad_glMaxShaderCompilerThreadsKHR; -#define glMaxShaderCompilerThreadsKHR glad_glMaxShaderCompilerThreadsKHR -#endif -#ifndef GL_KHR_robust_buffer_access_behavior -#define GL_KHR_robust_buffer_access_behavior 1 -GLAPI int GLAD_GL_KHR_robust_buffer_access_behavior; -#endif -#ifndef GL_KHR_robustness -#define GL_KHR_robustness 1 -GLAPI int GLAD_GL_KHR_robustness; -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC)(void); -GLAPI PFNGLGETGRAPHICSRESETSTATUSKHRPROC glad_glGetGraphicsResetStatusKHR; -#define glGetGraphicsResetStatusKHR glad_glGetGraphicsResetStatusKHR -typedef void (APIENTRYP PFNGLREADNPIXELSKHRPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); -GLAPI PFNGLREADNPIXELSKHRPROC glad_glReadnPixelsKHR; -#define glReadnPixelsKHR glad_glReadnPixelsKHR -typedef void (APIENTRYP PFNGLGETNUNIFORMFVKHRPROC)(GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -GLAPI PFNGLGETNUNIFORMFVKHRPROC glad_glGetnUniformfvKHR; -#define glGetnUniformfvKHR glad_glGetnUniformfvKHR -typedef void (APIENTRYP PFNGLGETNUNIFORMIVKHRPROC)(GLuint program, GLint location, GLsizei bufSize, GLint *params); -GLAPI PFNGLGETNUNIFORMIVKHRPROC glad_glGetnUniformivKHR; -#define glGetnUniformivKHR glad_glGetnUniformivKHR -typedef void (APIENTRYP PFNGLGETNUNIFORMUIVKHRPROC)(GLuint program, GLint location, GLsizei bufSize, GLuint *params); -GLAPI PFNGLGETNUNIFORMUIVKHRPROC glad_glGetnUniformuivKHR; -#define glGetnUniformuivKHR glad_glGetnUniformuivKHR -#endif -#ifndef GL_KHR_texture_compression_astc_hdr -#define GL_KHR_texture_compression_astc_hdr 1 -GLAPI int GLAD_GL_KHR_texture_compression_astc_hdr; -#endif -#ifndef GL_KHR_texture_compression_astc_ldr -#define GL_KHR_texture_compression_astc_ldr 1 -GLAPI int GLAD_GL_KHR_texture_compression_astc_ldr; -#endif -#ifndef GL_KHR_texture_compression_astc_sliced_3d -#define GL_KHR_texture_compression_astc_sliced_3d 1 -GLAPI int GLAD_GL_KHR_texture_compression_astc_sliced_3d; -#endif -#ifndef GL_MESAX_texture_stack -#define GL_MESAX_texture_stack 1 -GLAPI int GLAD_GL_MESAX_texture_stack; -#endif -#ifndef GL_MESA_pack_invert -#define GL_MESA_pack_invert 1 -GLAPI int GLAD_GL_MESA_pack_invert; -#endif -#ifndef GL_MESA_program_binary_formats -#define GL_MESA_program_binary_formats 1 -GLAPI int GLAD_GL_MESA_program_binary_formats; -#endif -#ifndef GL_MESA_resize_buffers -#define GL_MESA_resize_buffers 1 -GLAPI int GLAD_GL_MESA_resize_buffers; -typedef void (APIENTRYP PFNGLRESIZEBUFFERSMESAPROC)(void); -GLAPI PFNGLRESIZEBUFFERSMESAPROC glad_glResizeBuffersMESA; -#define glResizeBuffersMESA glad_glResizeBuffersMESA -#endif -#ifndef GL_MESA_shader_integer_functions -#define GL_MESA_shader_integer_functions 1 -GLAPI int GLAD_GL_MESA_shader_integer_functions; -#endif -#ifndef GL_MESA_tile_raster_order -#define GL_MESA_tile_raster_order 1 -GLAPI int GLAD_GL_MESA_tile_raster_order; -#endif -#ifndef GL_MESA_window_pos -#define GL_MESA_window_pos 1 -GLAPI int GLAD_GL_MESA_window_pos; -typedef void (APIENTRYP PFNGLWINDOWPOS2DMESAPROC)(GLdouble x, GLdouble y); -GLAPI PFNGLWINDOWPOS2DMESAPROC glad_glWindowPos2dMESA; -#define glWindowPos2dMESA glad_glWindowPos2dMESA -typedef void (APIENTRYP PFNGLWINDOWPOS2DVMESAPROC)(const GLdouble *v); -GLAPI PFNGLWINDOWPOS2DVMESAPROC glad_glWindowPos2dvMESA; -#define glWindowPos2dvMESA glad_glWindowPos2dvMESA -typedef void (APIENTRYP PFNGLWINDOWPOS2FMESAPROC)(GLfloat x, GLfloat y); -GLAPI PFNGLWINDOWPOS2FMESAPROC glad_glWindowPos2fMESA; -#define glWindowPos2fMESA glad_glWindowPos2fMESA -typedef void (APIENTRYP PFNGLWINDOWPOS2FVMESAPROC)(const GLfloat *v); -GLAPI PFNGLWINDOWPOS2FVMESAPROC glad_glWindowPos2fvMESA; -#define glWindowPos2fvMESA glad_glWindowPos2fvMESA -typedef void (APIENTRYP PFNGLWINDOWPOS2IMESAPROC)(GLint x, GLint y); -GLAPI PFNGLWINDOWPOS2IMESAPROC glad_glWindowPos2iMESA; -#define glWindowPos2iMESA glad_glWindowPos2iMESA -typedef void (APIENTRYP PFNGLWINDOWPOS2IVMESAPROC)(const GLint *v); -GLAPI PFNGLWINDOWPOS2IVMESAPROC glad_glWindowPos2ivMESA; -#define glWindowPos2ivMESA glad_glWindowPos2ivMESA -typedef void (APIENTRYP PFNGLWINDOWPOS2SMESAPROC)(GLshort x, GLshort y); -GLAPI PFNGLWINDOWPOS2SMESAPROC glad_glWindowPos2sMESA; -#define glWindowPos2sMESA glad_glWindowPos2sMESA -typedef void (APIENTRYP PFNGLWINDOWPOS2SVMESAPROC)(const GLshort *v); -GLAPI PFNGLWINDOWPOS2SVMESAPROC glad_glWindowPos2svMESA; -#define glWindowPos2svMESA glad_glWindowPos2svMESA -typedef void (APIENTRYP PFNGLWINDOWPOS3DMESAPROC)(GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLWINDOWPOS3DMESAPROC glad_glWindowPos3dMESA; -#define glWindowPos3dMESA glad_glWindowPos3dMESA -typedef void (APIENTRYP PFNGLWINDOWPOS3DVMESAPROC)(const GLdouble *v); -GLAPI PFNGLWINDOWPOS3DVMESAPROC glad_glWindowPos3dvMESA; -#define glWindowPos3dvMESA glad_glWindowPos3dvMESA -typedef void (APIENTRYP PFNGLWINDOWPOS3FMESAPROC)(GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLWINDOWPOS3FMESAPROC glad_glWindowPos3fMESA; -#define glWindowPos3fMESA glad_glWindowPos3fMESA -typedef void (APIENTRYP PFNGLWINDOWPOS3FVMESAPROC)(const GLfloat *v); -GLAPI PFNGLWINDOWPOS3FVMESAPROC glad_glWindowPos3fvMESA; -#define glWindowPos3fvMESA glad_glWindowPos3fvMESA -typedef void (APIENTRYP PFNGLWINDOWPOS3IMESAPROC)(GLint x, GLint y, GLint z); -GLAPI PFNGLWINDOWPOS3IMESAPROC glad_glWindowPos3iMESA; -#define glWindowPos3iMESA glad_glWindowPos3iMESA -typedef void (APIENTRYP PFNGLWINDOWPOS3IVMESAPROC)(const GLint *v); -GLAPI PFNGLWINDOWPOS3IVMESAPROC glad_glWindowPos3ivMESA; -#define glWindowPos3ivMESA glad_glWindowPos3ivMESA -typedef void (APIENTRYP PFNGLWINDOWPOS3SMESAPROC)(GLshort x, GLshort y, GLshort z); -GLAPI PFNGLWINDOWPOS3SMESAPROC glad_glWindowPos3sMESA; -#define glWindowPos3sMESA glad_glWindowPos3sMESA -typedef void (APIENTRYP PFNGLWINDOWPOS3SVMESAPROC)(const GLshort *v); -GLAPI PFNGLWINDOWPOS3SVMESAPROC glad_glWindowPos3svMESA; -#define glWindowPos3svMESA glad_glWindowPos3svMESA -typedef void (APIENTRYP PFNGLWINDOWPOS4DMESAPROC)(GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLWINDOWPOS4DMESAPROC glad_glWindowPos4dMESA; -#define glWindowPos4dMESA glad_glWindowPos4dMESA -typedef void (APIENTRYP PFNGLWINDOWPOS4DVMESAPROC)(const GLdouble *v); -GLAPI PFNGLWINDOWPOS4DVMESAPROC glad_glWindowPos4dvMESA; -#define glWindowPos4dvMESA glad_glWindowPos4dvMESA -typedef void (APIENTRYP PFNGLWINDOWPOS4FMESAPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLWINDOWPOS4FMESAPROC glad_glWindowPos4fMESA; -#define glWindowPos4fMESA glad_glWindowPos4fMESA -typedef void (APIENTRYP PFNGLWINDOWPOS4FVMESAPROC)(const GLfloat *v); -GLAPI PFNGLWINDOWPOS4FVMESAPROC glad_glWindowPos4fvMESA; -#define glWindowPos4fvMESA glad_glWindowPos4fvMESA -typedef void (APIENTRYP PFNGLWINDOWPOS4IMESAPROC)(GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLWINDOWPOS4IMESAPROC glad_glWindowPos4iMESA; -#define glWindowPos4iMESA glad_glWindowPos4iMESA -typedef void (APIENTRYP PFNGLWINDOWPOS4IVMESAPROC)(const GLint *v); -GLAPI PFNGLWINDOWPOS4IVMESAPROC glad_glWindowPos4ivMESA; -#define glWindowPos4ivMESA glad_glWindowPos4ivMESA -typedef void (APIENTRYP PFNGLWINDOWPOS4SMESAPROC)(GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLWINDOWPOS4SMESAPROC glad_glWindowPos4sMESA; -#define glWindowPos4sMESA glad_glWindowPos4sMESA -typedef void (APIENTRYP PFNGLWINDOWPOS4SVMESAPROC)(const GLshort *v); -GLAPI PFNGLWINDOWPOS4SVMESAPROC glad_glWindowPos4svMESA; -#define glWindowPos4svMESA glad_glWindowPos4svMESA -#endif -#ifndef GL_MESA_ycbcr_texture -#define GL_MESA_ycbcr_texture 1 -GLAPI int GLAD_GL_MESA_ycbcr_texture; -#endif -#ifndef GL_NVX_blend_equation_advanced_multi_draw_buffers -#define GL_NVX_blend_equation_advanced_multi_draw_buffers 1 -GLAPI int GLAD_GL_NVX_blend_equation_advanced_multi_draw_buffers; -#endif -#ifndef GL_NVX_conditional_render -#define GL_NVX_conditional_render 1 -GLAPI int GLAD_GL_NVX_conditional_render; -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVXPROC)(GLuint id); -GLAPI PFNGLBEGINCONDITIONALRENDERNVXPROC glad_glBeginConditionalRenderNVX; -#define glBeginConditionalRenderNVX glad_glBeginConditionalRenderNVX -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVXPROC)(void); -GLAPI PFNGLENDCONDITIONALRENDERNVXPROC glad_glEndConditionalRenderNVX; -#define glEndConditionalRenderNVX glad_glEndConditionalRenderNVX -#endif -#ifndef GL_NVX_gpu_memory_info -#define GL_NVX_gpu_memory_info 1 -GLAPI int GLAD_GL_NVX_gpu_memory_info; -#endif -#ifndef GL_NVX_linked_gpu_multicast -#define GL_NVX_linked_gpu_multicast 1 -GLAPI int GLAD_GL_NVX_linked_gpu_multicast; -typedef void (APIENTRYP PFNGLLGPUNAMEDBUFFERSUBDATANVXPROC)(GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); -GLAPI PFNGLLGPUNAMEDBUFFERSUBDATANVXPROC glad_glLGPUNamedBufferSubDataNVX; -#define glLGPUNamedBufferSubDataNVX glad_glLGPUNamedBufferSubDataNVX -typedef void (APIENTRYP PFNGLLGPUCOPYIMAGESUBDATANVXPROC)(GLuint sourceGpu, GLbitfield destinationGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srxY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNGLLGPUCOPYIMAGESUBDATANVXPROC glad_glLGPUCopyImageSubDataNVX; -#define glLGPUCopyImageSubDataNVX glad_glLGPUCopyImageSubDataNVX -typedef void (APIENTRYP PFNGLLGPUINTERLOCKNVXPROC)(void); -GLAPI PFNGLLGPUINTERLOCKNVXPROC glad_glLGPUInterlockNVX; -#define glLGPUInterlockNVX glad_glLGPUInterlockNVX -#endif -#ifndef GL_NV_alpha_to_coverage_dither_control -#define GL_NV_alpha_to_coverage_dither_control 1 -GLAPI int GLAD_GL_NV_alpha_to_coverage_dither_control; -typedef void (APIENTRYP PFNGLALPHATOCOVERAGEDITHERCONTROLNVPROC)(GLenum mode); -GLAPI PFNGLALPHATOCOVERAGEDITHERCONTROLNVPROC glad_glAlphaToCoverageDitherControlNV; -#define glAlphaToCoverageDitherControlNV glad_glAlphaToCoverageDitherControlNV -#endif -#ifndef GL_NV_bindless_multi_draw_indirect -#define GL_NV_bindless_multi_draw_indirect 1 -GLAPI int GLAD_GL_NV_bindless_multi_draw_indirect; -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC)(GLenum mode, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); -GLAPI PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC glad_glMultiDrawArraysIndirectBindlessNV; -#define glMultiDrawArraysIndirectBindlessNV glad_glMultiDrawArraysIndirectBindlessNV -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC)(GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei stride, GLint vertexBufferCount); -GLAPI PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC glad_glMultiDrawElementsIndirectBindlessNV; -#define glMultiDrawElementsIndirectBindlessNV glad_glMultiDrawElementsIndirectBindlessNV -#endif -#ifndef GL_NV_bindless_multi_draw_indirect_count -#define GL_NV_bindless_multi_draw_indirect_count 1 -GLAPI int GLAD_GL_NV_bindless_multi_draw_indirect_count; -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC)(GLenum mode, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); -GLAPI PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC glad_glMultiDrawArraysIndirectBindlessCountNV; -#define glMultiDrawArraysIndirectBindlessCountNV glad_glMultiDrawArraysIndirectBindlessCountNV -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC)(GLenum mode, GLenum type, const void *indirect, GLsizei drawCount, GLsizei maxDrawCount, GLsizei stride, GLint vertexBufferCount); -GLAPI PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC glad_glMultiDrawElementsIndirectBindlessCountNV; -#define glMultiDrawElementsIndirectBindlessCountNV glad_glMultiDrawElementsIndirectBindlessCountNV -#endif -#ifndef GL_NV_bindless_texture -#define GL_NV_bindless_texture 1 -GLAPI int GLAD_GL_NV_bindless_texture; -typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLENVPROC)(GLuint texture); -GLAPI PFNGLGETTEXTUREHANDLENVPROC glad_glGetTextureHandleNV; -#define glGetTextureHandleNV glad_glGetTextureHandleNV -typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC)(GLuint texture, GLuint sampler); -GLAPI PFNGLGETTEXTURESAMPLERHANDLENVPROC glad_glGetTextureSamplerHandleNV; -#define glGetTextureSamplerHandleNV glad_glGetTextureSamplerHandleNV -typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC)(GLuint64 handle); -GLAPI PFNGLMAKETEXTUREHANDLERESIDENTNVPROC glad_glMakeTextureHandleResidentNV; -#define glMakeTextureHandleResidentNV glad_glMakeTextureHandleResidentNV -typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC)(GLuint64 handle); -GLAPI PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC glad_glMakeTextureHandleNonResidentNV; -#define glMakeTextureHandleNonResidentNV glad_glMakeTextureHandleNonResidentNV -typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLENVPROC)(GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format); -GLAPI PFNGLGETIMAGEHANDLENVPROC glad_glGetImageHandleNV; -#define glGetImageHandleNV glad_glGetImageHandleNV -typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC)(GLuint64 handle, GLenum access); -GLAPI PFNGLMAKEIMAGEHANDLERESIDENTNVPROC glad_glMakeImageHandleResidentNV; -#define glMakeImageHandleResidentNV glad_glMakeImageHandleResidentNV -typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC)(GLuint64 handle); -GLAPI PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC glad_glMakeImageHandleNonResidentNV; -#define glMakeImageHandleNonResidentNV glad_glMakeImageHandleNonResidentNV -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC)(GLint location, GLuint64 value); -GLAPI PFNGLUNIFORMHANDLEUI64NVPROC glad_glUniformHandleui64NV; -#define glUniformHandleui64NV glad_glUniformHandleui64NV -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC)(GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLUNIFORMHANDLEUI64VNVPROC glad_glUniformHandleui64vNV; -#define glUniformHandleui64vNV glad_glUniformHandleui64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC)(GLuint program, GLint location, GLuint64 value); -GLAPI PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC glad_glProgramUniformHandleui64NV; -#define glProgramUniformHandleui64NV glad_glProgramUniformHandleui64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLuint64 *values); -GLAPI PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC glad_glProgramUniformHandleui64vNV; -#define glProgramUniformHandleui64vNV glad_glProgramUniformHandleui64vNV -typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC)(GLuint64 handle); -GLAPI PFNGLISTEXTUREHANDLERESIDENTNVPROC glad_glIsTextureHandleResidentNV; -#define glIsTextureHandleResidentNV glad_glIsTextureHandleResidentNV -typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC)(GLuint64 handle); -GLAPI PFNGLISIMAGEHANDLERESIDENTNVPROC glad_glIsImageHandleResidentNV; -#define glIsImageHandleResidentNV glad_glIsImageHandleResidentNV -#endif -#ifndef GL_NV_blend_equation_advanced -#define GL_NV_blend_equation_advanced 1 -GLAPI int GLAD_GL_NV_blend_equation_advanced; -typedef void (APIENTRYP PFNGLBLENDPARAMETERINVPROC)(GLenum pname, GLint value); -GLAPI PFNGLBLENDPARAMETERINVPROC glad_glBlendParameteriNV; -#define glBlendParameteriNV glad_glBlendParameteriNV -typedef void (APIENTRYP PFNGLBLENDBARRIERNVPROC)(void); -GLAPI PFNGLBLENDBARRIERNVPROC glad_glBlendBarrierNV; -#define glBlendBarrierNV glad_glBlendBarrierNV -#endif -#ifndef GL_NV_blend_equation_advanced_coherent -#define GL_NV_blend_equation_advanced_coherent 1 -GLAPI int GLAD_GL_NV_blend_equation_advanced_coherent; -#endif -#ifndef GL_NV_blend_minmax_factor -#define GL_NV_blend_minmax_factor 1 -GLAPI int GLAD_GL_NV_blend_minmax_factor; -#endif -#ifndef GL_NV_blend_square -#define GL_NV_blend_square 1 -GLAPI int GLAD_GL_NV_blend_square; -#endif -#ifndef GL_NV_clip_space_w_scaling -#define GL_NV_clip_space_w_scaling 1 -GLAPI int GLAD_GL_NV_clip_space_w_scaling; -typedef void (APIENTRYP PFNGLVIEWPORTPOSITIONWSCALENVPROC)(GLuint index, GLfloat xcoeff, GLfloat ycoeff); -GLAPI PFNGLVIEWPORTPOSITIONWSCALENVPROC glad_glViewportPositionWScaleNV; -#define glViewportPositionWScaleNV glad_glViewportPositionWScaleNV -#endif -#ifndef GL_NV_command_list -#define GL_NV_command_list 1 -GLAPI int GLAD_GL_NV_command_list; -typedef void (APIENTRYP PFNGLCREATESTATESNVPROC)(GLsizei n, GLuint *states); -GLAPI PFNGLCREATESTATESNVPROC glad_glCreateStatesNV; -#define glCreateStatesNV glad_glCreateStatesNV -typedef void (APIENTRYP PFNGLDELETESTATESNVPROC)(GLsizei n, const GLuint *states); -GLAPI PFNGLDELETESTATESNVPROC glad_glDeleteStatesNV; -#define glDeleteStatesNV glad_glDeleteStatesNV -typedef GLboolean (APIENTRYP PFNGLISSTATENVPROC)(GLuint state); -GLAPI PFNGLISSTATENVPROC glad_glIsStateNV; -#define glIsStateNV glad_glIsStateNV -typedef void (APIENTRYP PFNGLSTATECAPTURENVPROC)(GLuint state, GLenum mode); -GLAPI PFNGLSTATECAPTURENVPROC glad_glStateCaptureNV; -#define glStateCaptureNV glad_glStateCaptureNV -typedef GLuint (APIENTRYP PFNGLGETCOMMANDHEADERNVPROC)(GLenum tokenID, GLuint size); -GLAPI PFNGLGETCOMMANDHEADERNVPROC glad_glGetCommandHeaderNV; -#define glGetCommandHeaderNV glad_glGetCommandHeaderNV -typedef GLushort (APIENTRYP PFNGLGETSTAGEINDEXNVPROC)(GLenum shadertype); -GLAPI PFNGLGETSTAGEINDEXNVPROC glad_glGetStageIndexNV; -#define glGetStageIndexNV glad_glGetStageIndexNV -typedef void (APIENTRYP PFNGLDRAWCOMMANDSNVPROC)(GLenum primitiveMode, GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, GLuint count); -GLAPI PFNGLDRAWCOMMANDSNVPROC glad_glDrawCommandsNV; -#define glDrawCommandsNV glad_glDrawCommandsNV -typedef void (APIENTRYP PFNGLDRAWCOMMANDSADDRESSNVPROC)(GLenum primitiveMode, const GLuint64 *indirects, const GLsizei *sizes, GLuint count); -GLAPI PFNGLDRAWCOMMANDSADDRESSNVPROC glad_glDrawCommandsAddressNV; -#define glDrawCommandsAddressNV glad_glDrawCommandsAddressNV -typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESNVPROC)(GLuint buffer, const GLintptr *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); -GLAPI PFNGLDRAWCOMMANDSSTATESNVPROC glad_glDrawCommandsStatesNV; -#define glDrawCommandsStatesNV glad_glDrawCommandsStatesNV -typedef void (APIENTRYP PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC)(const GLuint64 *indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); -GLAPI PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC glad_glDrawCommandsStatesAddressNV; -#define glDrawCommandsStatesAddressNV glad_glDrawCommandsStatesAddressNV -typedef void (APIENTRYP PFNGLCREATECOMMANDLISTSNVPROC)(GLsizei n, GLuint *lists); -GLAPI PFNGLCREATECOMMANDLISTSNVPROC glad_glCreateCommandListsNV; -#define glCreateCommandListsNV glad_glCreateCommandListsNV -typedef void (APIENTRYP PFNGLDELETECOMMANDLISTSNVPROC)(GLsizei n, const GLuint *lists); -GLAPI PFNGLDELETECOMMANDLISTSNVPROC glad_glDeleteCommandListsNV; -#define glDeleteCommandListsNV glad_glDeleteCommandListsNV -typedef GLboolean (APIENTRYP PFNGLISCOMMANDLISTNVPROC)(GLuint list); -GLAPI PFNGLISCOMMANDLISTNVPROC glad_glIsCommandListNV; -#define glIsCommandListNV glad_glIsCommandListNV -typedef void (APIENTRYP PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC)(GLuint list, GLuint segment, const void **indirects, const GLsizei *sizes, const GLuint *states, const GLuint *fbos, GLuint count); -GLAPI PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC glad_glListDrawCommandsStatesClientNV; -#define glListDrawCommandsStatesClientNV glad_glListDrawCommandsStatesClientNV -typedef void (APIENTRYP PFNGLCOMMANDLISTSEGMENTSNVPROC)(GLuint list, GLuint segments); -GLAPI PFNGLCOMMANDLISTSEGMENTSNVPROC glad_glCommandListSegmentsNV; -#define glCommandListSegmentsNV glad_glCommandListSegmentsNV -typedef void (APIENTRYP PFNGLCOMPILECOMMANDLISTNVPROC)(GLuint list); -GLAPI PFNGLCOMPILECOMMANDLISTNVPROC glad_glCompileCommandListNV; -#define glCompileCommandListNV glad_glCompileCommandListNV -typedef void (APIENTRYP PFNGLCALLCOMMANDLISTNVPROC)(GLuint list); -GLAPI PFNGLCALLCOMMANDLISTNVPROC glad_glCallCommandListNV; -#define glCallCommandListNV glad_glCallCommandListNV -#endif -#ifndef GL_NV_compute_program5 -#define GL_NV_compute_program5 1 -GLAPI int GLAD_GL_NV_compute_program5; -#endif -#ifndef GL_NV_conditional_render -#define GL_NV_conditional_render 1 -GLAPI int GLAD_GL_NV_conditional_render; -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC)(GLuint id, GLenum mode); -GLAPI PFNGLBEGINCONDITIONALRENDERNVPROC glad_glBeginConditionalRenderNV; -#define glBeginConditionalRenderNV glad_glBeginConditionalRenderNV -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC)(void); -GLAPI PFNGLENDCONDITIONALRENDERNVPROC glad_glEndConditionalRenderNV; -#define glEndConditionalRenderNV glad_glEndConditionalRenderNV -#endif -#ifndef GL_NV_conservative_raster -#define GL_NV_conservative_raster 1 -GLAPI int GLAD_GL_NV_conservative_raster; -typedef void (APIENTRYP PFNGLSUBPIXELPRECISIONBIASNVPROC)(GLuint xbits, GLuint ybits); -GLAPI PFNGLSUBPIXELPRECISIONBIASNVPROC glad_glSubpixelPrecisionBiasNV; -#define glSubpixelPrecisionBiasNV glad_glSubpixelPrecisionBiasNV -#endif -#ifndef GL_NV_conservative_raster_dilate -#define GL_NV_conservative_raster_dilate 1 -GLAPI int GLAD_GL_NV_conservative_raster_dilate; -typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERFNVPROC)(GLenum pname, GLfloat value); -GLAPI PFNGLCONSERVATIVERASTERPARAMETERFNVPROC glad_glConservativeRasterParameterfNV; -#define glConservativeRasterParameterfNV glad_glConservativeRasterParameterfNV -#endif -#ifndef GL_NV_conservative_raster_pre_snap -#define GL_NV_conservative_raster_pre_snap 1 -GLAPI int GLAD_GL_NV_conservative_raster_pre_snap; -#endif -#ifndef GL_NV_conservative_raster_pre_snap_triangles -#define GL_NV_conservative_raster_pre_snap_triangles 1 -GLAPI int GLAD_GL_NV_conservative_raster_pre_snap_triangles; -typedef void (APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERINVPROC)(GLenum pname, GLint param); -GLAPI PFNGLCONSERVATIVERASTERPARAMETERINVPROC glad_glConservativeRasterParameteriNV; -#define glConservativeRasterParameteriNV glad_glConservativeRasterParameteriNV -#endif -#ifndef GL_NV_conservative_raster_underestimation -#define GL_NV_conservative_raster_underestimation 1 -GLAPI int GLAD_GL_NV_conservative_raster_underestimation; -#endif -#ifndef GL_NV_copy_depth_to_color -#define GL_NV_copy_depth_to_color 1 -GLAPI int GLAD_GL_NV_copy_depth_to_color; -#endif -#ifndef GL_NV_copy_image -#define GL_NV_copy_image 1 -GLAPI int GLAD_GL_NV_copy_image; -typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATANVPROC)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNGLCOPYIMAGESUBDATANVPROC glad_glCopyImageSubDataNV; -#define glCopyImageSubDataNV glad_glCopyImageSubDataNV -#endif -#ifndef GL_NV_deep_texture3D -#define GL_NV_deep_texture3D 1 -GLAPI int GLAD_GL_NV_deep_texture3D; -#endif -#ifndef GL_NV_depth_buffer_float -#define GL_NV_depth_buffer_float 1 -GLAPI int GLAD_GL_NV_depth_buffer_float; -typedef void (APIENTRYP PFNGLDEPTHRANGEDNVPROC)(GLdouble zNear, GLdouble zFar); -GLAPI PFNGLDEPTHRANGEDNVPROC glad_glDepthRangedNV; -#define glDepthRangedNV glad_glDepthRangedNV -typedef void (APIENTRYP PFNGLCLEARDEPTHDNVPROC)(GLdouble depth); -GLAPI PFNGLCLEARDEPTHDNVPROC glad_glClearDepthdNV; -#define glClearDepthdNV glad_glClearDepthdNV -typedef void (APIENTRYP PFNGLDEPTHBOUNDSDNVPROC)(GLdouble zmin, GLdouble zmax); -GLAPI PFNGLDEPTHBOUNDSDNVPROC glad_glDepthBoundsdNV; -#define glDepthBoundsdNV glad_glDepthBoundsdNV -#endif -#ifndef GL_NV_depth_clamp -#define GL_NV_depth_clamp 1 -GLAPI int GLAD_GL_NV_depth_clamp; -#endif -#ifndef GL_NV_draw_texture -#define GL_NV_draw_texture 1 -GLAPI int GLAD_GL_NV_draw_texture; -typedef void (APIENTRYP PFNGLDRAWTEXTURENVPROC)(GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); -GLAPI PFNGLDRAWTEXTURENVPROC glad_glDrawTextureNV; -#define glDrawTextureNV glad_glDrawTextureNV -#endif -#ifndef GL_NV_draw_vulkan_image -#define GL_NV_draw_vulkan_image 1 -GLAPI int GLAD_GL_NV_draw_vulkan_image; -typedef void (APIENTRYP PFNGLDRAWVKIMAGENVPROC)(GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1); -GLAPI PFNGLDRAWVKIMAGENVPROC glad_glDrawVkImageNV; -#define glDrawVkImageNV glad_glDrawVkImageNV -typedef GLVULKANPROCNV (APIENTRYP PFNGLGETVKPROCADDRNVPROC)(const GLchar *name); -GLAPI PFNGLGETVKPROCADDRNVPROC glad_glGetVkProcAddrNV; -#define glGetVkProcAddrNV glad_glGetVkProcAddrNV -typedef void (APIENTRYP PFNGLWAITVKSEMAPHORENVPROC)(GLuint64 vkSemaphore); -GLAPI PFNGLWAITVKSEMAPHORENVPROC glad_glWaitVkSemaphoreNV; -#define glWaitVkSemaphoreNV glad_glWaitVkSemaphoreNV -typedef void (APIENTRYP PFNGLSIGNALVKSEMAPHORENVPROC)(GLuint64 vkSemaphore); -GLAPI PFNGLSIGNALVKSEMAPHORENVPROC glad_glSignalVkSemaphoreNV; -#define glSignalVkSemaphoreNV glad_glSignalVkSemaphoreNV -typedef void (APIENTRYP PFNGLSIGNALVKFENCENVPROC)(GLuint64 vkFence); -GLAPI PFNGLSIGNALVKFENCENVPROC glad_glSignalVkFenceNV; -#define glSignalVkFenceNV glad_glSignalVkFenceNV -#endif -#ifndef GL_NV_evaluators -#define GL_NV_evaluators 1 -GLAPI int GLAD_GL_NV_evaluators; -typedef void (APIENTRYP PFNGLMAPCONTROLPOINTSNVPROC)(GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const void *points); -GLAPI PFNGLMAPCONTROLPOINTSNVPROC glad_glMapControlPointsNV; -#define glMapControlPointsNV glad_glMapControlPointsNV -typedef void (APIENTRYP PFNGLMAPPARAMETERIVNVPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLMAPPARAMETERIVNVPROC glad_glMapParameterivNV; -#define glMapParameterivNV glad_glMapParameterivNV -typedef void (APIENTRYP PFNGLMAPPARAMETERFVNVPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLMAPPARAMETERFVNVPROC glad_glMapParameterfvNV; -#define glMapParameterfvNV glad_glMapParameterfvNV -typedef void (APIENTRYP PFNGLGETMAPCONTROLPOINTSNVPROC)(GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, void *points); -GLAPI PFNGLGETMAPCONTROLPOINTSNVPROC glad_glGetMapControlPointsNV; -#define glGetMapControlPointsNV glad_glGetMapControlPointsNV -typedef void (APIENTRYP PFNGLGETMAPPARAMETERIVNVPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETMAPPARAMETERIVNVPROC glad_glGetMapParameterivNV; -#define glGetMapParameterivNV glad_glGetMapParameterivNV -typedef void (APIENTRYP PFNGLGETMAPPARAMETERFVNVPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMAPPARAMETERFVNVPROC glad_glGetMapParameterfvNV; -#define glGetMapParameterfvNV glad_glGetMapParameterfvNV -typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERIVNVPROC)(GLenum target, GLuint index, GLenum pname, GLint *params); -GLAPI PFNGLGETMAPATTRIBPARAMETERIVNVPROC glad_glGetMapAttribParameterivNV; -#define glGetMapAttribParameterivNV glad_glGetMapAttribParameterivNV -typedef void (APIENTRYP PFNGLGETMAPATTRIBPARAMETERFVNVPROC)(GLenum target, GLuint index, GLenum pname, GLfloat *params); -GLAPI PFNGLGETMAPATTRIBPARAMETERFVNVPROC glad_glGetMapAttribParameterfvNV; -#define glGetMapAttribParameterfvNV glad_glGetMapAttribParameterfvNV -typedef void (APIENTRYP PFNGLEVALMAPSNVPROC)(GLenum target, GLenum mode); -GLAPI PFNGLEVALMAPSNVPROC glad_glEvalMapsNV; -#define glEvalMapsNV glad_glEvalMapsNV -#endif -#ifndef GL_NV_explicit_multisample -#define GL_NV_explicit_multisample 1 -GLAPI int GLAD_GL_NV_explicit_multisample; -typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVNVPROC)(GLenum pname, GLuint index, GLfloat *val); -GLAPI PFNGLGETMULTISAMPLEFVNVPROC glad_glGetMultisamplefvNV; -#define glGetMultisamplefvNV glad_glGetMultisamplefvNV -typedef void (APIENTRYP PFNGLSAMPLEMASKINDEXEDNVPROC)(GLuint index, GLbitfield mask); -GLAPI PFNGLSAMPLEMASKINDEXEDNVPROC glad_glSampleMaskIndexedNV; -#define glSampleMaskIndexedNV glad_glSampleMaskIndexedNV -typedef void (APIENTRYP PFNGLTEXRENDERBUFFERNVPROC)(GLenum target, GLuint renderbuffer); -GLAPI PFNGLTEXRENDERBUFFERNVPROC glad_glTexRenderbufferNV; -#define glTexRenderbufferNV glad_glTexRenderbufferNV -#endif -#ifndef GL_NV_fence -#define GL_NV_fence 1 -GLAPI int GLAD_GL_NV_fence; -typedef void (APIENTRYP PFNGLDELETEFENCESNVPROC)(GLsizei n, const GLuint *fences); -GLAPI PFNGLDELETEFENCESNVPROC glad_glDeleteFencesNV; -#define glDeleteFencesNV glad_glDeleteFencesNV -typedef void (APIENTRYP PFNGLGENFENCESNVPROC)(GLsizei n, GLuint *fences); -GLAPI PFNGLGENFENCESNVPROC glad_glGenFencesNV; -#define glGenFencesNV glad_glGenFencesNV -typedef GLboolean (APIENTRYP PFNGLISFENCENVPROC)(GLuint fence); -GLAPI PFNGLISFENCENVPROC glad_glIsFenceNV; -#define glIsFenceNV glad_glIsFenceNV -typedef GLboolean (APIENTRYP PFNGLTESTFENCENVPROC)(GLuint fence); -GLAPI PFNGLTESTFENCENVPROC glad_glTestFenceNV; -#define glTestFenceNV glad_glTestFenceNV -typedef void (APIENTRYP PFNGLGETFENCEIVNVPROC)(GLuint fence, GLenum pname, GLint *params); -GLAPI PFNGLGETFENCEIVNVPROC glad_glGetFenceivNV; -#define glGetFenceivNV glad_glGetFenceivNV -typedef void (APIENTRYP PFNGLFINISHFENCENVPROC)(GLuint fence); -GLAPI PFNGLFINISHFENCENVPROC glad_glFinishFenceNV; -#define glFinishFenceNV glad_glFinishFenceNV -typedef void (APIENTRYP PFNGLSETFENCENVPROC)(GLuint fence, GLenum condition); -GLAPI PFNGLSETFENCENVPROC glad_glSetFenceNV; -#define glSetFenceNV glad_glSetFenceNV -#endif -#ifndef GL_NV_fill_rectangle -#define GL_NV_fill_rectangle 1 -GLAPI int GLAD_GL_NV_fill_rectangle; -#endif -#ifndef GL_NV_float_buffer -#define GL_NV_float_buffer 1 -GLAPI int GLAD_GL_NV_float_buffer; -#endif -#ifndef GL_NV_fog_distance -#define GL_NV_fog_distance 1 -GLAPI int GLAD_GL_NV_fog_distance; -#endif -#ifndef GL_NV_fragment_coverage_to_color -#define GL_NV_fragment_coverage_to_color 1 -GLAPI int GLAD_GL_NV_fragment_coverage_to_color; -typedef void (APIENTRYP PFNGLFRAGMENTCOVERAGECOLORNVPROC)(GLuint color); -GLAPI PFNGLFRAGMENTCOVERAGECOLORNVPROC glad_glFragmentCoverageColorNV; -#define glFragmentCoverageColorNV glad_glFragmentCoverageColorNV -#endif -#ifndef GL_NV_fragment_program -#define GL_NV_fragment_program 1 -GLAPI int GLAD_GL_NV_fragment_program; -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FNVPROC)(GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLPROGRAMNAMEDPARAMETER4FNVPROC glad_glProgramNamedParameter4fNV; -#define glProgramNamedParameter4fNV glad_glProgramNamedParameter4fNV -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC)(GLuint id, GLsizei len, const GLubyte *name, const GLfloat *v); -GLAPI PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC glad_glProgramNamedParameter4fvNV; -#define glProgramNamedParameter4fvNV glad_glProgramNamedParameter4fvNV -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DNVPROC)(GLuint id, GLsizei len, const GLubyte *name, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLPROGRAMNAMEDPARAMETER4DNVPROC glad_glProgramNamedParameter4dNV; -#define glProgramNamedParameter4dNV glad_glProgramNamedParameter4dNV -typedef void (APIENTRYP PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC)(GLuint id, GLsizei len, const GLubyte *name, const GLdouble *v); -GLAPI PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC glad_glProgramNamedParameter4dvNV; -#define glProgramNamedParameter4dvNV glad_glProgramNamedParameter4dvNV -typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC)(GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); -GLAPI PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC glad_glGetProgramNamedParameterfvNV; -#define glGetProgramNamedParameterfvNV glad_glGetProgramNamedParameterfvNV -typedef void (APIENTRYP PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC)(GLuint id, GLsizei len, const GLubyte *name, GLdouble *params); -GLAPI PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC glad_glGetProgramNamedParameterdvNV; -#define glGetProgramNamedParameterdvNV glad_glGetProgramNamedParameterdvNV -#endif -#ifndef GL_NV_fragment_program2 -#define GL_NV_fragment_program2 1 -GLAPI int GLAD_GL_NV_fragment_program2; -#endif -#ifndef GL_NV_fragment_program4 -#define GL_NV_fragment_program4 1 -GLAPI int GLAD_GL_NV_fragment_program4; -#endif -#ifndef GL_NV_fragment_program_option -#define GL_NV_fragment_program_option 1 -GLAPI int GLAD_GL_NV_fragment_program_option; -#endif -#ifndef GL_NV_fragment_shader_interlock -#define GL_NV_fragment_shader_interlock 1 -GLAPI int GLAD_GL_NV_fragment_shader_interlock; -#endif -#ifndef GL_NV_framebuffer_mixed_samples -#define GL_NV_framebuffer_mixed_samples 1 -GLAPI int GLAD_GL_NV_framebuffer_mixed_samples; -typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONTABLENVPROC)(GLsizei n, const GLfloat *v); -GLAPI PFNGLCOVERAGEMODULATIONTABLENVPROC glad_glCoverageModulationTableNV; -#define glCoverageModulationTableNV glad_glCoverageModulationTableNV -typedef void (APIENTRYP PFNGLGETCOVERAGEMODULATIONTABLENVPROC)(GLsizei bufsize, GLfloat *v); -GLAPI PFNGLGETCOVERAGEMODULATIONTABLENVPROC glad_glGetCoverageModulationTableNV; -#define glGetCoverageModulationTableNV glad_glGetCoverageModulationTableNV -typedef void (APIENTRYP PFNGLCOVERAGEMODULATIONNVPROC)(GLenum components); -GLAPI PFNGLCOVERAGEMODULATIONNVPROC glad_glCoverageModulationNV; -#define glCoverageModulationNV glad_glCoverageModulationNV -#endif -#ifndef GL_NV_framebuffer_multisample_coverage -#define GL_NV_framebuffer_multisample_coverage 1 -GLAPI int GLAD_GL_NV_framebuffer_multisample_coverage; -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC)(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC glad_glRenderbufferStorageMultisampleCoverageNV; -#define glRenderbufferStorageMultisampleCoverageNV glad_glRenderbufferStorageMultisampleCoverageNV -#endif -#ifndef GL_NV_geometry_program4 -#define GL_NV_geometry_program4 1 -GLAPI int GLAD_GL_NV_geometry_program4; -typedef void (APIENTRYP PFNGLPROGRAMVERTEXLIMITNVPROC)(GLenum target, GLint limit); -GLAPI PFNGLPROGRAMVERTEXLIMITNVPROC glad_glProgramVertexLimitNV; -#define glProgramVertexLimitNV glad_glProgramVertexLimitNV -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTUREEXTPROC glad_glFramebufferTextureEXT; -#define glFramebufferTextureEXT glad_glFramebufferTextureEXT -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face); -GLAPI PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC glad_glFramebufferTextureFaceEXT; -#define glFramebufferTextureFaceEXT glad_glFramebufferTextureFaceEXT -#endif -#ifndef GL_NV_geometry_shader4 -#define GL_NV_geometry_shader4 1 -GLAPI int GLAD_GL_NV_geometry_shader4; -#endif -#ifndef GL_NV_geometry_shader_passthrough -#define GL_NV_geometry_shader_passthrough 1 -GLAPI int GLAD_GL_NV_geometry_shader_passthrough; -#endif -#ifndef GL_NV_gpu_multicast -#define GL_NV_gpu_multicast 1 -GLAPI int GLAD_GL_NV_gpu_multicast; -typedef void (APIENTRYP PFNGLRENDERGPUMASKNVPROC)(GLbitfield mask); -GLAPI PFNGLRENDERGPUMASKNVPROC glad_glRenderGpuMaskNV; -#define glRenderGpuMaskNV glad_glRenderGpuMaskNV -typedef void (APIENTRYP PFNGLMULTICASTBUFFERSUBDATANVPROC)(GLbitfield gpuMask, GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data); -GLAPI PFNGLMULTICASTBUFFERSUBDATANVPROC glad_glMulticastBufferSubDataNV; -#define glMulticastBufferSubDataNV glad_glMulticastBufferSubDataNV -typedef void (APIENTRYP PFNGLMULTICASTCOPYBUFFERSUBDATANVPROC)(GLuint readGpu, GLbitfield writeGpuMask, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI PFNGLMULTICASTCOPYBUFFERSUBDATANVPROC glad_glMulticastCopyBufferSubDataNV; -#define glMulticastCopyBufferSubDataNV glad_glMulticastCopyBufferSubDataNV -typedef void (APIENTRYP PFNGLMULTICASTCOPYIMAGESUBDATANVPROC)(GLuint srcGpu, GLbitfield dstGpuMask, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -GLAPI PFNGLMULTICASTCOPYIMAGESUBDATANVPROC glad_glMulticastCopyImageSubDataNV; -#define glMulticastCopyImageSubDataNV glad_glMulticastCopyImageSubDataNV -typedef void (APIENTRYP PFNGLMULTICASTBLITFRAMEBUFFERNVPROC)(GLuint srcGpu, GLuint dstGpu, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNGLMULTICASTBLITFRAMEBUFFERNVPROC glad_glMulticastBlitFramebufferNV; -#define glMulticastBlitFramebufferNV glad_glMulticastBlitFramebufferNV -typedef void (APIENTRYP PFNGLMULTICASTFRAMEBUFFERSAMPLELOCATIONSFVNVPROC)(GLuint gpu, GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); -GLAPI PFNGLMULTICASTFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glad_glMulticastFramebufferSampleLocationsfvNV; -#define glMulticastFramebufferSampleLocationsfvNV glad_glMulticastFramebufferSampleLocationsfvNV -typedef void (APIENTRYP PFNGLMULTICASTBARRIERNVPROC)(void); -GLAPI PFNGLMULTICASTBARRIERNVPROC glad_glMulticastBarrierNV; -#define glMulticastBarrierNV glad_glMulticastBarrierNV -typedef void (APIENTRYP PFNGLMULTICASTWAITSYNCNVPROC)(GLuint signalGpu, GLbitfield waitGpuMask); -GLAPI PFNGLMULTICASTWAITSYNCNVPROC glad_glMulticastWaitSyncNV; -#define glMulticastWaitSyncNV glad_glMulticastWaitSyncNV -typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTIVNVPROC)(GLuint gpu, GLuint id, GLenum pname, GLint *params); -GLAPI PFNGLMULTICASTGETQUERYOBJECTIVNVPROC glad_glMulticastGetQueryObjectivNV; -#define glMulticastGetQueryObjectivNV glad_glMulticastGetQueryObjectivNV -typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTUIVNVPROC)(GLuint gpu, GLuint id, GLenum pname, GLuint *params); -GLAPI PFNGLMULTICASTGETQUERYOBJECTUIVNVPROC glad_glMulticastGetQueryObjectuivNV; -#define glMulticastGetQueryObjectuivNV glad_glMulticastGetQueryObjectuivNV -typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTI64VNVPROC)(GLuint gpu, GLuint id, GLenum pname, GLint64 *params); -GLAPI PFNGLMULTICASTGETQUERYOBJECTI64VNVPROC glad_glMulticastGetQueryObjecti64vNV; -#define glMulticastGetQueryObjecti64vNV glad_glMulticastGetQueryObjecti64vNV -typedef void (APIENTRYP PFNGLMULTICASTGETQUERYOBJECTUI64VNVPROC)(GLuint gpu, GLuint id, GLenum pname, GLuint64 *params); -GLAPI PFNGLMULTICASTGETQUERYOBJECTUI64VNVPROC glad_glMulticastGetQueryObjectui64vNV; -#define glMulticastGetQueryObjectui64vNV glad_glMulticastGetQueryObjectui64vNV -#endif -#ifndef GL_NV_gpu_program4 -#define GL_NV_gpu_program4 1 -GLAPI int GLAD_GL_NV_gpu_program4; -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4INVPROC)(GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLPROGRAMLOCALPARAMETERI4INVPROC glad_glProgramLocalParameterI4iNV; -#define glProgramLocalParameterI4iNV glad_glProgramLocalParameterI4iNV -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC)(GLenum target, GLuint index, const GLint *params); -GLAPI PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC glad_glProgramLocalParameterI4ivNV; -#define glProgramLocalParameterI4ivNV glad_glProgramLocalParameterI4ivNV -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC)(GLenum target, GLuint index, GLsizei count, const GLint *params); -GLAPI PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC glad_glProgramLocalParametersI4ivNV; -#define glProgramLocalParametersI4ivNV glad_glProgramLocalParametersI4ivNV -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UINVPROC)(GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI PFNGLPROGRAMLOCALPARAMETERI4UINVPROC glad_glProgramLocalParameterI4uiNV; -#define glProgramLocalParameterI4uiNV glad_glProgramLocalParameterI4uiNV -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC)(GLenum target, GLuint index, const GLuint *params); -GLAPI PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC glad_glProgramLocalParameterI4uivNV; -#define glProgramLocalParameterI4uivNV glad_glProgramLocalParameterI4uivNV -typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC)(GLenum target, GLuint index, GLsizei count, const GLuint *params); -GLAPI PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC glad_glProgramLocalParametersI4uivNV; -#define glProgramLocalParametersI4uivNV glad_glProgramLocalParametersI4uivNV -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4INVPROC)(GLenum target, GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLPROGRAMENVPARAMETERI4INVPROC glad_glProgramEnvParameterI4iNV; -#define glProgramEnvParameterI4iNV glad_glProgramEnvParameterI4iNV -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4IVNVPROC)(GLenum target, GLuint index, const GLint *params); -GLAPI PFNGLPROGRAMENVPARAMETERI4IVNVPROC glad_glProgramEnvParameterI4ivNV; -#define glProgramEnvParameterI4ivNV glad_glProgramEnvParameterI4ivNV -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4IVNVPROC)(GLenum target, GLuint index, GLsizei count, const GLint *params); -GLAPI PFNGLPROGRAMENVPARAMETERSI4IVNVPROC glad_glProgramEnvParametersI4ivNV; -#define glProgramEnvParametersI4ivNV glad_glProgramEnvParametersI4ivNV -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UINVPROC)(GLenum target, GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI PFNGLPROGRAMENVPARAMETERI4UINVPROC glad_glProgramEnvParameterI4uiNV; -#define glProgramEnvParameterI4uiNV glad_glProgramEnvParameterI4uiNV -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERI4UIVNVPROC)(GLenum target, GLuint index, const GLuint *params); -GLAPI PFNGLPROGRAMENVPARAMETERI4UIVNVPROC glad_glProgramEnvParameterI4uivNV; -#define glProgramEnvParameterI4uivNV glad_glProgramEnvParameterI4uivNV -typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC)(GLenum target, GLuint index, GLsizei count, const GLuint *params); -GLAPI PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC glad_glProgramEnvParametersI4uivNV; -#define glProgramEnvParametersI4uivNV glad_glProgramEnvParametersI4uivNV -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC)(GLenum target, GLuint index, GLint *params); -GLAPI PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC glad_glGetProgramLocalParameterIivNV; -#define glGetProgramLocalParameterIivNV glad_glGetProgramLocalParameterIivNV -typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC)(GLenum target, GLuint index, GLuint *params); -GLAPI PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC glad_glGetProgramLocalParameterIuivNV; -#define glGetProgramLocalParameterIuivNV glad_glGetProgramLocalParameterIuivNV -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIIVNVPROC)(GLenum target, GLuint index, GLint *params); -GLAPI PFNGLGETPROGRAMENVPARAMETERIIVNVPROC glad_glGetProgramEnvParameterIivNV; -#define glGetProgramEnvParameterIivNV glad_glGetProgramEnvParameterIivNV -typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC)(GLenum target, GLuint index, GLuint *params); -GLAPI PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC glad_glGetProgramEnvParameterIuivNV; -#define glGetProgramEnvParameterIuivNV glad_glGetProgramEnvParameterIuivNV -#endif -#ifndef GL_NV_gpu_program5 -#define GL_NV_gpu_program5 1 -GLAPI int GLAD_GL_NV_gpu_program5; -typedef void (APIENTRYP PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC)(GLenum target, GLsizei count, const GLuint *params); -GLAPI PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC glad_glProgramSubroutineParametersuivNV; -#define glProgramSubroutineParametersuivNV glad_glProgramSubroutineParametersuivNV -typedef void (APIENTRYP PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC)(GLenum target, GLuint index, GLuint *param); -GLAPI PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC glad_glGetProgramSubroutineParameteruivNV; -#define glGetProgramSubroutineParameteruivNV glad_glGetProgramSubroutineParameteruivNV -#endif -#ifndef GL_NV_gpu_program5_mem_extended -#define GL_NV_gpu_program5_mem_extended 1 -GLAPI int GLAD_GL_NV_gpu_program5_mem_extended; -#endif -#ifndef GL_NV_gpu_shader5 -#define GL_NV_gpu_shader5 1 -GLAPI int GLAD_GL_NV_gpu_shader5; -#endif -#ifndef GL_NV_half_float -#define GL_NV_half_float 1 -GLAPI int GLAD_GL_NV_half_float; -typedef void (APIENTRYP PFNGLVERTEX2HNVPROC)(GLhalfNV x, GLhalfNV y); -GLAPI PFNGLVERTEX2HNVPROC glad_glVertex2hNV; -#define glVertex2hNV glad_glVertex2hNV -typedef void (APIENTRYP PFNGLVERTEX2HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLVERTEX2HVNVPROC glad_glVertex2hvNV; -#define glVertex2hvNV glad_glVertex2hvNV -typedef void (APIENTRYP PFNGLVERTEX3HNVPROC)(GLhalfNV x, GLhalfNV y, GLhalfNV z); -GLAPI PFNGLVERTEX3HNVPROC glad_glVertex3hNV; -#define glVertex3hNV glad_glVertex3hNV -typedef void (APIENTRYP PFNGLVERTEX3HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLVERTEX3HVNVPROC glad_glVertex3hvNV; -#define glVertex3hvNV glad_glVertex3hvNV -typedef void (APIENTRYP PFNGLVERTEX4HNVPROC)(GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -GLAPI PFNGLVERTEX4HNVPROC glad_glVertex4hNV; -#define glVertex4hNV glad_glVertex4hNV -typedef void (APIENTRYP PFNGLVERTEX4HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLVERTEX4HVNVPROC glad_glVertex4hvNV; -#define glVertex4hvNV glad_glVertex4hvNV -typedef void (APIENTRYP PFNGLNORMAL3HNVPROC)(GLhalfNV nx, GLhalfNV ny, GLhalfNV nz); -GLAPI PFNGLNORMAL3HNVPROC glad_glNormal3hNV; -#define glNormal3hNV glad_glNormal3hNV -typedef void (APIENTRYP PFNGLNORMAL3HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLNORMAL3HVNVPROC glad_glNormal3hvNV; -#define glNormal3hvNV glad_glNormal3hvNV -typedef void (APIENTRYP PFNGLCOLOR3HNVPROC)(GLhalfNV red, GLhalfNV green, GLhalfNV blue); -GLAPI PFNGLCOLOR3HNVPROC glad_glColor3hNV; -#define glColor3hNV glad_glColor3hNV -typedef void (APIENTRYP PFNGLCOLOR3HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLCOLOR3HVNVPROC glad_glColor3hvNV; -#define glColor3hvNV glad_glColor3hvNV -typedef void (APIENTRYP PFNGLCOLOR4HNVPROC)(GLhalfNV red, GLhalfNV green, GLhalfNV blue, GLhalfNV alpha); -GLAPI PFNGLCOLOR4HNVPROC glad_glColor4hNV; -#define glColor4hNV glad_glColor4hNV -typedef void (APIENTRYP PFNGLCOLOR4HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLCOLOR4HVNVPROC glad_glColor4hvNV; -#define glColor4hvNV glad_glColor4hvNV -typedef void (APIENTRYP PFNGLTEXCOORD1HNVPROC)(GLhalfNV s); -GLAPI PFNGLTEXCOORD1HNVPROC glad_glTexCoord1hNV; -#define glTexCoord1hNV glad_glTexCoord1hNV -typedef void (APIENTRYP PFNGLTEXCOORD1HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLTEXCOORD1HVNVPROC glad_glTexCoord1hvNV; -#define glTexCoord1hvNV glad_glTexCoord1hvNV -typedef void (APIENTRYP PFNGLTEXCOORD2HNVPROC)(GLhalfNV s, GLhalfNV t); -GLAPI PFNGLTEXCOORD2HNVPROC glad_glTexCoord2hNV; -#define glTexCoord2hNV glad_glTexCoord2hNV -typedef void (APIENTRYP PFNGLTEXCOORD2HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLTEXCOORD2HVNVPROC glad_glTexCoord2hvNV; -#define glTexCoord2hvNV glad_glTexCoord2hvNV -typedef void (APIENTRYP PFNGLTEXCOORD3HNVPROC)(GLhalfNV s, GLhalfNV t, GLhalfNV r); -GLAPI PFNGLTEXCOORD3HNVPROC glad_glTexCoord3hNV; -#define glTexCoord3hNV glad_glTexCoord3hNV -typedef void (APIENTRYP PFNGLTEXCOORD3HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLTEXCOORD3HVNVPROC glad_glTexCoord3hvNV; -#define glTexCoord3hvNV glad_glTexCoord3hvNV -typedef void (APIENTRYP PFNGLTEXCOORD4HNVPROC)(GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -GLAPI PFNGLTEXCOORD4HNVPROC glad_glTexCoord4hNV; -#define glTexCoord4hNV glad_glTexCoord4hNV -typedef void (APIENTRYP PFNGLTEXCOORD4HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLTEXCOORD4HVNVPROC glad_glTexCoord4hvNV; -#define glTexCoord4hvNV glad_glTexCoord4hvNV -typedef void (APIENTRYP PFNGLMULTITEXCOORD1HNVPROC)(GLenum target, GLhalfNV s); -GLAPI PFNGLMULTITEXCOORD1HNVPROC glad_glMultiTexCoord1hNV; -#define glMultiTexCoord1hNV glad_glMultiTexCoord1hNV -typedef void (APIENTRYP PFNGLMULTITEXCOORD1HVNVPROC)(GLenum target, const GLhalfNV *v); -GLAPI PFNGLMULTITEXCOORD1HVNVPROC glad_glMultiTexCoord1hvNV; -#define glMultiTexCoord1hvNV glad_glMultiTexCoord1hvNV -typedef void (APIENTRYP PFNGLMULTITEXCOORD2HNVPROC)(GLenum target, GLhalfNV s, GLhalfNV t); -GLAPI PFNGLMULTITEXCOORD2HNVPROC glad_glMultiTexCoord2hNV; -#define glMultiTexCoord2hNV glad_glMultiTexCoord2hNV -typedef void (APIENTRYP PFNGLMULTITEXCOORD2HVNVPROC)(GLenum target, const GLhalfNV *v); -GLAPI PFNGLMULTITEXCOORD2HVNVPROC glad_glMultiTexCoord2hvNV; -#define glMultiTexCoord2hvNV glad_glMultiTexCoord2hvNV -typedef void (APIENTRYP PFNGLMULTITEXCOORD3HNVPROC)(GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r); -GLAPI PFNGLMULTITEXCOORD3HNVPROC glad_glMultiTexCoord3hNV; -#define glMultiTexCoord3hNV glad_glMultiTexCoord3hNV -typedef void (APIENTRYP PFNGLMULTITEXCOORD3HVNVPROC)(GLenum target, const GLhalfNV *v); -GLAPI PFNGLMULTITEXCOORD3HVNVPROC glad_glMultiTexCoord3hvNV; -#define glMultiTexCoord3hvNV glad_glMultiTexCoord3hvNV -typedef void (APIENTRYP PFNGLMULTITEXCOORD4HNVPROC)(GLenum target, GLhalfNV s, GLhalfNV t, GLhalfNV r, GLhalfNV q); -GLAPI PFNGLMULTITEXCOORD4HNVPROC glad_glMultiTexCoord4hNV; -#define glMultiTexCoord4hNV glad_glMultiTexCoord4hNV -typedef void (APIENTRYP PFNGLMULTITEXCOORD4HVNVPROC)(GLenum target, const GLhalfNV *v); -GLAPI PFNGLMULTITEXCOORD4HVNVPROC glad_glMultiTexCoord4hvNV; -#define glMultiTexCoord4hvNV glad_glMultiTexCoord4hvNV -typedef void (APIENTRYP PFNGLFOGCOORDHNVPROC)(GLhalfNV fog); -GLAPI PFNGLFOGCOORDHNVPROC glad_glFogCoordhNV; -#define glFogCoordhNV glad_glFogCoordhNV -typedef void (APIENTRYP PFNGLFOGCOORDHVNVPROC)(const GLhalfNV *fog); -GLAPI PFNGLFOGCOORDHVNVPROC glad_glFogCoordhvNV; -#define glFogCoordhvNV glad_glFogCoordhvNV -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HNVPROC)(GLhalfNV red, GLhalfNV green, GLhalfNV blue); -GLAPI PFNGLSECONDARYCOLOR3HNVPROC glad_glSecondaryColor3hNV; -#define glSecondaryColor3hNV glad_glSecondaryColor3hNV -typedef void (APIENTRYP PFNGLSECONDARYCOLOR3HVNVPROC)(const GLhalfNV *v); -GLAPI PFNGLSECONDARYCOLOR3HVNVPROC glad_glSecondaryColor3hvNV; -#define glSecondaryColor3hvNV glad_glSecondaryColor3hvNV -typedef void (APIENTRYP PFNGLVERTEXWEIGHTHNVPROC)(GLhalfNV weight); -GLAPI PFNGLVERTEXWEIGHTHNVPROC glad_glVertexWeighthNV; -#define glVertexWeighthNV glad_glVertexWeighthNV -typedef void (APIENTRYP PFNGLVERTEXWEIGHTHVNVPROC)(const GLhalfNV *weight); -GLAPI PFNGLVERTEXWEIGHTHVNVPROC glad_glVertexWeighthvNV; -#define glVertexWeighthvNV glad_glVertexWeighthvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB1HNVPROC)(GLuint index, GLhalfNV x); -GLAPI PFNGLVERTEXATTRIB1HNVPROC glad_glVertexAttrib1hNV; -#define glVertexAttrib1hNV glad_glVertexAttrib1hNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB1HVNVPROC)(GLuint index, const GLhalfNV *v); -GLAPI PFNGLVERTEXATTRIB1HVNVPROC glad_glVertexAttrib1hvNV; -#define glVertexAttrib1hvNV glad_glVertexAttrib1hvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB2HNVPROC)(GLuint index, GLhalfNV x, GLhalfNV y); -GLAPI PFNGLVERTEXATTRIB2HNVPROC glad_glVertexAttrib2hNV; -#define glVertexAttrib2hNV glad_glVertexAttrib2hNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB2HVNVPROC)(GLuint index, const GLhalfNV *v); -GLAPI PFNGLVERTEXATTRIB2HVNVPROC glad_glVertexAttrib2hvNV; -#define glVertexAttrib2hvNV glad_glVertexAttrib2hvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB3HNVPROC)(GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z); -GLAPI PFNGLVERTEXATTRIB3HNVPROC glad_glVertexAttrib3hNV; -#define glVertexAttrib3hNV glad_glVertexAttrib3hNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB3HVNVPROC)(GLuint index, const GLhalfNV *v); -GLAPI PFNGLVERTEXATTRIB3HVNVPROC glad_glVertexAttrib3hvNV; -#define glVertexAttrib3hvNV glad_glVertexAttrib3hvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4HNVPROC)(GLuint index, GLhalfNV x, GLhalfNV y, GLhalfNV z, GLhalfNV w); -GLAPI PFNGLVERTEXATTRIB4HNVPROC glad_glVertexAttrib4hNV; -#define glVertexAttrib4hNV glad_glVertexAttrib4hNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4HVNVPROC)(GLuint index, const GLhalfNV *v); -GLAPI PFNGLVERTEXATTRIB4HVNVPROC glad_glVertexAttrib4hvNV; -#define glVertexAttrib4hvNV glad_glVertexAttrib4hvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1HVNVPROC)(GLuint index, GLsizei n, const GLhalfNV *v); -GLAPI PFNGLVERTEXATTRIBS1HVNVPROC glad_glVertexAttribs1hvNV; -#define glVertexAttribs1hvNV glad_glVertexAttribs1hvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2HVNVPROC)(GLuint index, GLsizei n, const GLhalfNV *v); -GLAPI PFNGLVERTEXATTRIBS2HVNVPROC glad_glVertexAttribs2hvNV; -#define glVertexAttribs2hvNV glad_glVertexAttribs2hvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3HVNVPROC)(GLuint index, GLsizei n, const GLhalfNV *v); -GLAPI PFNGLVERTEXATTRIBS3HVNVPROC glad_glVertexAttribs3hvNV; -#define glVertexAttribs3hvNV glad_glVertexAttribs3hvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4HVNVPROC)(GLuint index, GLsizei n, const GLhalfNV *v); -GLAPI PFNGLVERTEXATTRIBS4HVNVPROC glad_glVertexAttribs4hvNV; -#define glVertexAttribs4hvNV glad_glVertexAttribs4hvNV -#endif -#ifndef GL_NV_internalformat_sample_query -#define GL_NV_internalformat_sample_query 1 -GLAPI int GLAD_GL_NV_internalformat_sample_query; -typedef void (APIENTRYP PFNGLGETINTERNALFORMATSAMPLEIVNVPROC)(GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei bufSize, GLint *params); -GLAPI PFNGLGETINTERNALFORMATSAMPLEIVNVPROC glad_glGetInternalformatSampleivNV; -#define glGetInternalformatSampleivNV glad_glGetInternalformatSampleivNV -#endif -#ifndef GL_NV_light_max_exponent -#define GL_NV_light_max_exponent 1 -GLAPI int GLAD_GL_NV_light_max_exponent; -#endif -#ifndef GL_NV_multisample_coverage -#define GL_NV_multisample_coverage 1 -GLAPI int GLAD_GL_NV_multisample_coverage; -#endif -#ifndef GL_NV_multisample_filter_hint -#define GL_NV_multisample_filter_hint 1 -GLAPI int GLAD_GL_NV_multisample_filter_hint; -#endif -#ifndef GL_NV_occlusion_query -#define GL_NV_occlusion_query 1 -GLAPI int GLAD_GL_NV_occlusion_query; -typedef void (APIENTRYP PFNGLGENOCCLUSIONQUERIESNVPROC)(GLsizei n, GLuint *ids); -GLAPI PFNGLGENOCCLUSIONQUERIESNVPROC glad_glGenOcclusionQueriesNV; -#define glGenOcclusionQueriesNV glad_glGenOcclusionQueriesNV -typedef void (APIENTRYP PFNGLDELETEOCCLUSIONQUERIESNVPROC)(GLsizei n, const GLuint *ids); -GLAPI PFNGLDELETEOCCLUSIONQUERIESNVPROC glad_glDeleteOcclusionQueriesNV; -#define glDeleteOcclusionQueriesNV glad_glDeleteOcclusionQueriesNV -typedef GLboolean (APIENTRYP PFNGLISOCCLUSIONQUERYNVPROC)(GLuint id); -GLAPI PFNGLISOCCLUSIONQUERYNVPROC glad_glIsOcclusionQueryNV; -#define glIsOcclusionQueryNV glad_glIsOcclusionQueryNV -typedef void (APIENTRYP PFNGLBEGINOCCLUSIONQUERYNVPROC)(GLuint id); -GLAPI PFNGLBEGINOCCLUSIONQUERYNVPROC glad_glBeginOcclusionQueryNV; -#define glBeginOcclusionQueryNV glad_glBeginOcclusionQueryNV -typedef void (APIENTRYP PFNGLENDOCCLUSIONQUERYNVPROC)(void); -GLAPI PFNGLENDOCCLUSIONQUERYNVPROC glad_glEndOcclusionQueryNV; -#define glEndOcclusionQueryNV glad_glEndOcclusionQueryNV -typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYIVNVPROC)(GLuint id, GLenum pname, GLint *params); -GLAPI PFNGLGETOCCLUSIONQUERYIVNVPROC glad_glGetOcclusionQueryivNV; -#define glGetOcclusionQueryivNV glad_glGetOcclusionQueryivNV -typedef void (APIENTRYP PFNGLGETOCCLUSIONQUERYUIVNVPROC)(GLuint id, GLenum pname, GLuint *params); -GLAPI PFNGLGETOCCLUSIONQUERYUIVNVPROC glad_glGetOcclusionQueryuivNV; -#define glGetOcclusionQueryuivNV glad_glGetOcclusionQueryuivNV -#endif -#ifndef GL_NV_packed_depth_stencil -#define GL_NV_packed_depth_stencil 1 -GLAPI int GLAD_GL_NV_packed_depth_stencil; -#endif -#ifndef GL_NV_parameter_buffer_object -#define GL_NV_parameter_buffer_object 1 -GLAPI int GLAD_GL_NV_parameter_buffer_object; -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC)(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLfloat *params); -GLAPI PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC glad_glProgramBufferParametersfvNV; -#define glProgramBufferParametersfvNV glad_glProgramBufferParametersfvNV -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC)(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLint *params); -GLAPI PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC glad_glProgramBufferParametersIivNV; -#define glProgramBufferParametersIivNV glad_glProgramBufferParametersIivNV -typedef void (APIENTRYP PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC)(GLenum target, GLuint bindingIndex, GLuint wordIndex, GLsizei count, const GLuint *params); -GLAPI PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC glad_glProgramBufferParametersIuivNV; -#define glProgramBufferParametersIuivNV glad_glProgramBufferParametersIuivNV -#endif -#ifndef GL_NV_parameter_buffer_object2 -#define GL_NV_parameter_buffer_object2 1 -GLAPI int GLAD_GL_NV_parameter_buffer_object2; -#endif -#ifndef GL_NV_path_rendering -#define GL_NV_path_rendering 1 -GLAPI int GLAD_GL_NV_path_rendering; -typedef GLuint (APIENTRYP PFNGLGENPATHSNVPROC)(GLsizei range); -GLAPI PFNGLGENPATHSNVPROC glad_glGenPathsNV; -#define glGenPathsNV glad_glGenPathsNV -typedef void (APIENTRYP PFNGLDELETEPATHSNVPROC)(GLuint path, GLsizei range); -GLAPI PFNGLDELETEPATHSNVPROC glad_glDeletePathsNV; -#define glDeletePathsNV glad_glDeletePathsNV -typedef GLboolean (APIENTRYP PFNGLISPATHNVPROC)(GLuint path); -GLAPI PFNGLISPATHNVPROC glad_glIsPathNV; -#define glIsPathNV glad_glIsPathNV -typedef void (APIENTRYP PFNGLPATHCOMMANDSNVPROC)(GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); -GLAPI PFNGLPATHCOMMANDSNVPROC glad_glPathCommandsNV; -#define glPathCommandsNV glad_glPathCommandsNV -typedef void (APIENTRYP PFNGLPATHCOORDSNVPROC)(GLuint path, GLsizei numCoords, GLenum coordType, const void *coords); -GLAPI PFNGLPATHCOORDSNVPROC glad_glPathCoordsNV; -#define glPathCoordsNV glad_glPathCoordsNV -typedef void (APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC)(GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords); -GLAPI PFNGLPATHSUBCOMMANDSNVPROC glad_glPathSubCommandsNV; -#define glPathSubCommandsNV glad_glPathSubCommandsNV -typedef void (APIENTRYP PFNGLPATHSUBCOORDSNVPROC)(GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords); -GLAPI PFNGLPATHSUBCOORDSNVPROC glad_glPathSubCoordsNV; -#define glPathSubCoordsNV glad_glPathSubCoordsNV -typedef void (APIENTRYP PFNGLPATHSTRINGNVPROC)(GLuint path, GLenum format, GLsizei length, const void *pathString); -GLAPI PFNGLPATHSTRINGNVPROC glad_glPathStringNV; -#define glPathStringNV glad_glPathStringNV -typedef void (APIENTRYP PFNGLPATHGLYPHSNVPROC)(GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -GLAPI PFNGLPATHGLYPHSNVPROC glad_glPathGlyphsNV; -#define glPathGlyphsNV glad_glPathGlyphsNV -typedef void (APIENTRYP PFNGLPATHGLYPHRANGENVPROC)(GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -GLAPI PFNGLPATHGLYPHRANGENVPROC glad_glPathGlyphRangeNV; -#define glPathGlyphRangeNV glad_glPathGlyphRangeNV -typedef void (APIENTRYP PFNGLWEIGHTPATHSNVPROC)(GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights); -GLAPI PFNGLWEIGHTPATHSNVPROC glad_glWeightPathsNV; -#define glWeightPathsNV glad_glWeightPathsNV -typedef void (APIENTRYP PFNGLCOPYPATHNVPROC)(GLuint resultPath, GLuint srcPath); -GLAPI PFNGLCOPYPATHNVPROC glad_glCopyPathNV; -#define glCopyPathNV glad_glCopyPathNV -typedef void (APIENTRYP PFNGLINTERPOLATEPATHSNVPROC)(GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight); -GLAPI PFNGLINTERPOLATEPATHSNVPROC glad_glInterpolatePathsNV; -#define glInterpolatePathsNV glad_glInterpolatePathsNV -typedef void (APIENTRYP PFNGLTRANSFORMPATHNVPROC)(GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues); -GLAPI PFNGLTRANSFORMPATHNVPROC glad_glTransformPathNV; -#define glTransformPathNV glad_glTransformPathNV -typedef void (APIENTRYP PFNGLPATHPARAMETERIVNVPROC)(GLuint path, GLenum pname, const GLint *value); -GLAPI PFNGLPATHPARAMETERIVNVPROC glad_glPathParameterivNV; -#define glPathParameterivNV glad_glPathParameterivNV -typedef void (APIENTRYP PFNGLPATHPARAMETERINVPROC)(GLuint path, GLenum pname, GLint value); -GLAPI PFNGLPATHPARAMETERINVPROC glad_glPathParameteriNV; -#define glPathParameteriNV glad_glPathParameteriNV -typedef void (APIENTRYP PFNGLPATHPARAMETERFVNVPROC)(GLuint path, GLenum pname, const GLfloat *value); -GLAPI PFNGLPATHPARAMETERFVNVPROC glad_glPathParameterfvNV; -#define glPathParameterfvNV glad_glPathParameterfvNV -typedef void (APIENTRYP PFNGLPATHPARAMETERFNVPROC)(GLuint path, GLenum pname, GLfloat value); -GLAPI PFNGLPATHPARAMETERFNVPROC glad_glPathParameterfNV; -#define glPathParameterfNV glad_glPathParameterfNV -typedef void (APIENTRYP PFNGLPATHDASHARRAYNVPROC)(GLuint path, GLsizei dashCount, const GLfloat *dashArray); -GLAPI PFNGLPATHDASHARRAYNVPROC glad_glPathDashArrayNV; -#define glPathDashArrayNV glad_glPathDashArrayNV -typedef void (APIENTRYP PFNGLPATHSTENCILFUNCNVPROC)(GLenum func, GLint ref, GLuint mask); -GLAPI PFNGLPATHSTENCILFUNCNVPROC glad_glPathStencilFuncNV; -#define glPathStencilFuncNV glad_glPathStencilFuncNV -typedef void (APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC)(GLfloat factor, GLfloat units); -GLAPI PFNGLPATHSTENCILDEPTHOFFSETNVPROC glad_glPathStencilDepthOffsetNV; -#define glPathStencilDepthOffsetNV glad_glPathStencilDepthOffsetNV -typedef void (APIENTRYP PFNGLSTENCILFILLPATHNVPROC)(GLuint path, GLenum fillMode, GLuint mask); -GLAPI PFNGLSTENCILFILLPATHNVPROC glad_glStencilFillPathNV; -#define glStencilFillPathNV glad_glStencilFillPathNV -typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC)(GLuint path, GLint reference, GLuint mask); -GLAPI PFNGLSTENCILSTROKEPATHNVPROC glad_glStencilStrokePathNV; -#define glStencilStrokePathNV glad_glStencilStrokePathNV -typedef void (APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC)(GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues); -GLAPI PFNGLSTENCILFILLPATHINSTANCEDNVPROC glad_glStencilFillPathInstancedNV; -#define glStencilFillPathInstancedNV glad_glStencilFillPathInstancedNV -typedef void (APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC)(GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues); -GLAPI PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC glad_glStencilStrokePathInstancedNV; -#define glStencilStrokePathInstancedNV glad_glStencilStrokePathInstancedNV -typedef void (APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC)(GLenum func); -GLAPI PFNGLPATHCOVERDEPTHFUNCNVPROC glad_glPathCoverDepthFuncNV; -#define glPathCoverDepthFuncNV glad_glPathCoverDepthFuncNV -typedef void (APIENTRYP PFNGLCOVERFILLPATHNVPROC)(GLuint path, GLenum coverMode); -GLAPI PFNGLCOVERFILLPATHNVPROC glad_glCoverFillPathNV; -#define glCoverFillPathNV glad_glCoverFillPathNV -typedef void (APIENTRYP PFNGLCOVERSTROKEPATHNVPROC)(GLuint path, GLenum coverMode); -GLAPI PFNGLCOVERSTROKEPATHNVPROC glad_glCoverStrokePathNV; -#define glCoverStrokePathNV glad_glCoverStrokePathNV -typedef void (APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC)(GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -GLAPI PFNGLCOVERFILLPATHINSTANCEDNVPROC glad_glCoverFillPathInstancedNV; -#define glCoverFillPathInstancedNV glad_glCoverFillPathInstancedNV -typedef void (APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC)(GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -GLAPI PFNGLCOVERSTROKEPATHINSTANCEDNVPROC glad_glCoverStrokePathInstancedNV; -#define glCoverStrokePathInstancedNV glad_glCoverStrokePathInstancedNV -typedef void (APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC)(GLuint path, GLenum pname, GLint *value); -GLAPI PFNGLGETPATHPARAMETERIVNVPROC glad_glGetPathParameterivNV; -#define glGetPathParameterivNV glad_glGetPathParameterivNV -typedef void (APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC)(GLuint path, GLenum pname, GLfloat *value); -GLAPI PFNGLGETPATHPARAMETERFVNVPROC glad_glGetPathParameterfvNV; -#define glGetPathParameterfvNV glad_glGetPathParameterfvNV -typedef void (APIENTRYP PFNGLGETPATHCOMMANDSNVPROC)(GLuint path, GLubyte *commands); -GLAPI PFNGLGETPATHCOMMANDSNVPROC glad_glGetPathCommandsNV; -#define glGetPathCommandsNV glad_glGetPathCommandsNV -typedef void (APIENTRYP PFNGLGETPATHCOORDSNVPROC)(GLuint path, GLfloat *coords); -GLAPI PFNGLGETPATHCOORDSNVPROC glad_glGetPathCoordsNV; -#define glGetPathCoordsNV glad_glGetPathCoordsNV -typedef void (APIENTRYP PFNGLGETPATHDASHARRAYNVPROC)(GLuint path, GLfloat *dashArray); -GLAPI PFNGLGETPATHDASHARRAYNVPROC glad_glGetPathDashArrayNV; -#define glGetPathDashArrayNV glad_glGetPathDashArrayNV -typedef void (APIENTRYP PFNGLGETPATHMETRICSNVPROC)(GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics); -GLAPI PFNGLGETPATHMETRICSNVPROC glad_glGetPathMetricsNV; -#define glGetPathMetricsNV glad_glGetPathMetricsNV -typedef void (APIENTRYP PFNGLGETPATHMETRICRANGENVPROC)(GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics); -GLAPI PFNGLGETPATHMETRICRANGENVPROC glad_glGetPathMetricRangeNV; -#define glGetPathMetricRangeNV glad_glGetPathMetricRangeNV -typedef void (APIENTRYP PFNGLGETPATHSPACINGNVPROC)(GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing); -GLAPI PFNGLGETPATHSPACINGNVPROC glad_glGetPathSpacingNV; -#define glGetPathSpacingNV glad_glGetPathSpacingNV -typedef GLboolean (APIENTRYP PFNGLISPOINTINFILLPATHNVPROC)(GLuint path, GLuint mask, GLfloat x, GLfloat y); -GLAPI PFNGLISPOINTINFILLPATHNVPROC glad_glIsPointInFillPathNV; -#define glIsPointInFillPathNV glad_glIsPointInFillPathNV -typedef GLboolean (APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC)(GLuint path, GLfloat x, GLfloat y); -GLAPI PFNGLISPOINTINSTROKEPATHNVPROC glad_glIsPointInStrokePathNV; -#define glIsPointInStrokePathNV glad_glIsPointInStrokePathNV -typedef GLfloat (APIENTRYP PFNGLGETPATHLENGTHNVPROC)(GLuint path, GLsizei startSegment, GLsizei numSegments); -GLAPI PFNGLGETPATHLENGTHNVPROC glad_glGetPathLengthNV; -#define glGetPathLengthNV glad_glGetPathLengthNV -typedef GLboolean (APIENTRYP PFNGLPOINTALONGPATHNVPROC)(GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY); -GLAPI PFNGLPOINTALONGPATHNVPROC glad_glPointAlongPathNV; -#define glPointAlongPathNV glad_glPointAlongPathNV -typedef void (APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC)(GLenum matrixMode, const GLfloat *m); -GLAPI PFNGLMATRIXLOAD3X2FNVPROC glad_glMatrixLoad3x2fNV; -#define glMatrixLoad3x2fNV glad_glMatrixLoad3x2fNV -typedef void (APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC)(GLenum matrixMode, const GLfloat *m); -GLAPI PFNGLMATRIXLOAD3X3FNVPROC glad_glMatrixLoad3x3fNV; -#define glMatrixLoad3x3fNV glad_glMatrixLoad3x3fNV -typedef void (APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC)(GLenum matrixMode, const GLfloat *m); -GLAPI PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC glad_glMatrixLoadTranspose3x3fNV; -#define glMatrixLoadTranspose3x3fNV glad_glMatrixLoadTranspose3x3fNV -typedef void (APIENTRYP PFNGLMATRIXMULT3X2FNVPROC)(GLenum matrixMode, const GLfloat *m); -GLAPI PFNGLMATRIXMULT3X2FNVPROC glad_glMatrixMult3x2fNV; -#define glMatrixMult3x2fNV glad_glMatrixMult3x2fNV -typedef void (APIENTRYP PFNGLMATRIXMULT3X3FNVPROC)(GLenum matrixMode, const GLfloat *m); -GLAPI PFNGLMATRIXMULT3X3FNVPROC glad_glMatrixMult3x3fNV; -#define glMatrixMult3x3fNV glad_glMatrixMult3x3fNV -typedef void (APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC)(GLenum matrixMode, const GLfloat *m); -GLAPI PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC glad_glMatrixMultTranspose3x3fNV; -#define glMatrixMultTranspose3x3fNV glad_glMatrixMultTranspose3x3fNV -typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC)(GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode); -GLAPI PFNGLSTENCILTHENCOVERFILLPATHNVPROC glad_glStencilThenCoverFillPathNV; -#define glStencilThenCoverFillPathNV glad_glStencilThenCoverFillPathNV -typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC)(GLuint path, GLint reference, GLuint mask, GLenum coverMode); -GLAPI PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC glad_glStencilThenCoverStrokePathNV; -#define glStencilThenCoverStrokePathNV glad_glStencilThenCoverStrokePathNV -typedef void (APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC)(GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -GLAPI PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC glad_glStencilThenCoverFillPathInstancedNV; -#define glStencilThenCoverFillPathInstancedNV glad_glStencilThenCoverFillPathInstancedNV -typedef void (APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC)(GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues); -GLAPI PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC glad_glStencilThenCoverStrokePathInstancedNV; -#define glStencilThenCoverStrokePathInstancedNV glad_glStencilThenCoverStrokePathInstancedNV -typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC)(GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount[2]); -GLAPI PFNGLPATHGLYPHINDEXRANGENVPROC glad_glPathGlyphIndexRangeNV; -#define glPathGlyphIndexRangeNV glad_glPathGlyphIndexRangeNV -typedef GLenum (APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC)(GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -GLAPI PFNGLPATHGLYPHINDEXARRAYNVPROC glad_glPathGlyphIndexArrayNV; -#define glPathGlyphIndexArrayNV glad_glPathGlyphIndexArrayNV -typedef GLenum (APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC)(GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale); -GLAPI PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC glad_glPathMemoryGlyphIndexArrayNV; -#define glPathMemoryGlyphIndexArrayNV glad_glPathMemoryGlyphIndexArrayNV -typedef void (APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC)(GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs); -GLAPI PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC glad_glProgramPathFragmentInputGenNV; -#define glProgramPathFragmentInputGenNV glad_glProgramPathFragmentInputGenNV -typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC)(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLfloat *params); -GLAPI PFNGLGETPROGRAMRESOURCEFVNVPROC glad_glGetProgramResourcefvNV; -#define glGetProgramResourcefvNV glad_glGetProgramResourcefvNV -typedef void (APIENTRYP PFNGLPATHCOLORGENNVPROC)(GLenum color, GLenum genMode, GLenum colorFormat, const GLfloat *coeffs); -GLAPI PFNGLPATHCOLORGENNVPROC glad_glPathColorGenNV; -#define glPathColorGenNV glad_glPathColorGenNV -typedef void (APIENTRYP PFNGLPATHTEXGENNVPROC)(GLenum texCoordSet, GLenum genMode, GLint components, const GLfloat *coeffs); -GLAPI PFNGLPATHTEXGENNVPROC glad_glPathTexGenNV; -#define glPathTexGenNV glad_glPathTexGenNV -typedef void (APIENTRYP PFNGLPATHFOGGENNVPROC)(GLenum genMode); -GLAPI PFNGLPATHFOGGENNVPROC glad_glPathFogGenNV; -#define glPathFogGenNV glad_glPathFogGenNV -typedef void (APIENTRYP PFNGLGETPATHCOLORGENIVNVPROC)(GLenum color, GLenum pname, GLint *value); -GLAPI PFNGLGETPATHCOLORGENIVNVPROC glad_glGetPathColorGenivNV; -#define glGetPathColorGenivNV glad_glGetPathColorGenivNV -typedef void (APIENTRYP PFNGLGETPATHCOLORGENFVNVPROC)(GLenum color, GLenum pname, GLfloat *value); -GLAPI PFNGLGETPATHCOLORGENFVNVPROC glad_glGetPathColorGenfvNV; -#define glGetPathColorGenfvNV glad_glGetPathColorGenfvNV -typedef void (APIENTRYP PFNGLGETPATHTEXGENIVNVPROC)(GLenum texCoordSet, GLenum pname, GLint *value); -GLAPI PFNGLGETPATHTEXGENIVNVPROC glad_glGetPathTexGenivNV; -#define glGetPathTexGenivNV glad_glGetPathTexGenivNV -typedef void (APIENTRYP PFNGLGETPATHTEXGENFVNVPROC)(GLenum texCoordSet, GLenum pname, GLfloat *value); -GLAPI PFNGLGETPATHTEXGENFVNVPROC glad_glGetPathTexGenfvNV; -#define glGetPathTexGenfvNV glad_glGetPathTexGenfvNV -#endif -#ifndef GL_NV_path_rendering_shared_edge -#define GL_NV_path_rendering_shared_edge 1 -GLAPI int GLAD_GL_NV_path_rendering_shared_edge; -#endif -#ifndef GL_NV_pixel_data_range -#define GL_NV_pixel_data_range 1 -GLAPI int GLAD_GL_NV_pixel_data_range; -typedef void (APIENTRYP PFNGLPIXELDATARANGENVPROC)(GLenum target, GLsizei length, const void *pointer); -GLAPI PFNGLPIXELDATARANGENVPROC glad_glPixelDataRangeNV; -#define glPixelDataRangeNV glad_glPixelDataRangeNV -typedef void (APIENTRYP PFNGLFLUSHPIXELDATARANGENVPROC)(GLenum target); -GLAPI PFNGLFLUSHPIXELDATARANGENVPROC glad_glFlushPixelDataRangeNV; -#define glFlushPixelDataRangeNV glad_glFlushPixelDataRangeNV -#endif -#ifndef GL_NV_point_sprite -#define GL_NV_point_sprite 1 -GLAPI int GLAD_GL_NV_point_sprite; -typedef void (APIENTRYP PFNGLPOINTPARAMETERINVPROC)(GLenum pname, GLint param); -GLAPI PFNGLPOINTPARAMETERINVPROC glad_glPointParameteriNV; -#define glPointParameteriNV glad_glPointParameteriNV -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVNVPROC)(GLenum pname, const GLint *params); -GLAPI PFNGLPOINTPARAMETERIVNVPROC glad_glPointParameterivNV; -#define glPointParameterivNV glad_glPointParameterivNV -#endif -#ifndef GL_NV_present_video -#define GL_NV_present_video 1 -GLAPI int GLAD_GL_NV_present_video; -typedef void (APIENTRYP PFNGLPRESENTFRAMEKEYEDNVPROC)(GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1); -GLAPI PFNGLPRESENTFRAMEKEYEDNVPROC glad_glPresentFrameKeyedNV; -#define glPresentFrameKeyedNV glad_glPresentFrameKeyedNV -typedef void (APIENTRYP PFNGLPRESENTFRAMEDUALFILLNVPROC)(GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3); -GLAPI PFNGLPRESENTFRAMEDUALFILLNVPROC glad_glPresentFrameDualFillNV; -#define glPresentFrameDualFillNV glad_glPresentFrameDualFillNV -typedef void (APIENTRYP PFNGLGETVIDEOIVNVPROC)(GLuint video_slot, GLenum pname, GLint *params); -GLAPI PFNGLGETVIDEOIVNVPROC glad_glGetVideoivNV; -#define glGetVideoivNV glad_glGetVideoivNV -typedef void (APIENTRYP PFNGLGETVIDEOUIVNVPROC)(GLuint video_slot, GLenum pname, GLuint *params); -GLAPI PFNGLGETVIDEOUIVNVPROC glad_glGetVideouivNV; -#define glGetVideouivNV glad_glGetVideouivNV -typedef void (APIENTRYP PFNGLGETVIDEOI64VNVPROC)(GLuint video_slot, GLenum pname, GLint64EXT *params); -GLAPI PFNGLGETVIDEOI64VNVPROC glad_glGetVideoi64vNV; -#define glGetVideoi64vNV glad_glGetVideoi64vNV -typedef void (APIENTRYP PFNGLGETVIDEOUI64VNVPROC)(GLuint video_slot, GLenum pname, GLuint64EXT *params); -GLAPI PFNGLGETVIDEOUI64VNVPROC glad_glGetVideoui64vNV; -#define glGetVideoui64vNV glad_glGetVideoui64vNV -#endif -#ifndef GL_NV_primitive_restart -#define GL_NV_primitive_restart 1 -GLAPI int GLAD_GL_NV_primitive_restart; -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTNVPROC)(void); -GLAPI PFNGLPRIMITIVERESTARTNVPROC glad_glPrimitiveRestartNV; -#define glPrimitiveRestartNV glad_glPrimitiveRestartNV -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXNVPROC)(GLuint index); -GLAPI PFNGLPRIMITIVERESTARTINDEXNVPROC glad_glPrimitiveRestartIndexNV; -#define glPrimitiveRestartIndexNV glad_glPrimitiveRestartIndexNV -#endif -#ifndef GL_NV_query_resource -#define GL_NV_query_resource 1 -GLAPI int GLAD_GL_NV_query_resource; -typedef GLint (APIENTRYP PFNGLQUERYRESOURCENVPROC)(GLenum queryType, GLint tagId, GLuint bufSize, GLint *buffer); -GLAPI PFNGLQUERYRESOURCENVPROC glad_glQueryResourceNV; -#define glQueryResourceNV glad_glQueryResourceNV -#endif -#ifndef GL_NV_query_resource_tag -#define GL_NV_query_resource_tag 1 -GLAPI int GLAD_GL_NV_query_resource_tag; -typedef void (APIENTRYP PFNGLGENQUERYRESOURCETAGNVPROC)(GLsizei n, GLint *tagIds); -GLAPI PFNGLGENQUERYRESOURCETAGNVPROC glad_glGenQueryResourceTagNV; -#define glGenQueryResourceTagNV glad_glGenQueryResourceTagNV -typedef void (APIENTRYP PFNGLDELETEQUERYRESOURCETAGNVPROC)(GLsizei n, const GLint *tagIds); -GLAPI PFNGLDELETEQUERYRESOURCETAGNVPROC glad_glDeleteQueryResourceTagNV; -#define glDeleteQueryResourceTagNV glad_glDeleteQueryResourceTagNV -typedef void (APIENTRYP PFNGLQUERYRESOURCETAGNVPROC)(GLint tagId, const GLchar *tagString); -GLAPI PFNGLQUERYRESOURCETAGNVPROC glad_glQueryResourceTagNV; -#define glQueryResourceTagNV glad_glQueryResourceTagNV -#endif -#ifndef GL_NV_register_combiners -#define GL_NV_register_combiners 1 -GLAPI int GLAD_GL_NV_register_combiners; -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFVNVPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLCOMBINERPARAMETERFVNVPROC glad_glCombinerParameterfvNV; -#define glCombinerParameterfvNV glad_glCombinerParameterfvNV -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERFNVPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLCOMBINERPARAMETERFNVPROC glad_glCombinerParameterfNV; -#define glCombinerParameterfNV glad_glCombinerParameterfNV -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERIVNVPROC)(GLenum pname, const GLint *params); -GLAPI PFNGLCOMBINERPARAMETERIVNVPROC glad_glCombinerParameterivNV; -#define glCombinerParameterivNV glad_glCombinerParameterivNV -typedef void (APIENTRYP PFNGLCOMBINERPARAMETERINVPROC)(GLenum pname, GLint param); -GLAPI PFNGLCOMBINERPARAMETERINVPROC glad_glCombinerParameteriNV; -#define glCombinerParameteriNV glad_glCombinerParameteriNV -typedef void (APIENTRYP PFNGLCOMBINERINPUTNVPROC)(GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -GLAPI PFNGLCOMBINERINPUTNVPROC glad_glCombinerInputNV; -#define glCombinerInputNV glad_glCombinerInputNV -typedef void (APIENTRYP PFNGLCOMBINEROUTPUTNVPROC)(GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum); -GLAPI PFNGLCOMBINEROUTPUTNVPROC glad_glCombinerOutputNV; -#define glCombinerOutputNV glad_glCombinerOutputNV -typedef void (APIENTRYP PFNGLFINALCOMBINERINPUTNVPROC)(GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage); -GLAPI PFNGLFINALCOMBINERINPUTNVPROC glad_glFinalCombinerInputNV; -#define glFinalCombinerInputNV glad_glFinalCombinerInputNV -typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC)(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params); -GLAPI PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC glad_glGetCombinerInputParameterfvNV; -#define glGetCombinerInputParameterfvNV glad_glGetCombinerInputParameterfvNV -typedef void (APIENTRYP PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC)(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params); -GLAPI PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC glad_glGetCombinerInputParameterivNV; -#define glGetCombinerInputParameterivNV glad_glGetCombinerInputParameterivNV -typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC)(GLenum stage, GLenum portion, GLenum pname, GLfloat *params); -GLAPI PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC glad_glGetCombinerOutputParameterfvNV; -#define glGetCombinerOutputParameterfvNV glad_glGetCombinerOutputParameterfvNV -typedef void (APIENTRYP PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC)(GLenum stage, GLenum portion, GLenum pname, GLint *params); -GLAPI PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC glad_glGetCombinerOutputParameterivNV; -#define glGetCombinerOutputParameterivNV glad_glGetCombinerOutputParameterivNV -typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC)(GLenum variable, GLenum pname, GLfloat *params); -GLAPI PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC glad_glGetFinalCombinerInputParameterfvNV; -#define glGetFinalCombinerInputParameterfvNV glad_glGetFinalCombinerInputParameterfvNV -typedef void (APIENTRYP PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC)(GLenum variable, GLenum pname, GLint *params); -GLAPI PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC glad_glGetFinalCombinerInputParameterivNV; -#define glGetFinalCombinerInputParameterivNV glad_glGetFinalCombinerInputParameterivNV -#endif -#ifndef GL_NV_register_combiners2 -#define GL_NV_register_combiners2 1 -GLAPI int GLAD_GL_NV_register_combiners2; -typedef void (APIENTRYP PFNGLCOMBINERSTAGEPARAMETERFVNVPROC)(GLenum stage, GLenum pname, const GLfloat *params); -GLAPI PFNGLCOMBINERSTAGEPARAMETERFVNVPROC glad_glCombinerStageParameterfvNV; -#define glCombinerStageParameterfvNV glad_glCombinerStageParameterfvNV -typedef void (APIENTRYP PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC)(GLenum stage, GLenum pname, GLfloat *params); -GLAPI PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC glad_glGetCombinerStageParameterfvNV; -#define glGetCombinerStageParameterfvNV glad_glGetCombinerStageParameterfvNV -#endif -#ifndef GL_NV_robustness_video_memory_purge -#define GL_NV_robustness_video_memory_purge 1 -GLAPI int GLAD_GL_NV_robustness_video_memory_purge; -#endif -#ifndef GL_NV_sample_locations -#define GL_NV_sample_locations 1 -GLAPI int GLAD_GL_NV_sample_locations; -typedef void (APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC)(GLenum target, GLuint start, GLsizei count, const GLfloat *v); -GLAPI PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glad_glFramebufferSampleLocationsfvNV; -#define glFramebufferSampleLocationsfvNV glad_glFramebufferSampleLocationsfvNV -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC)(GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v); -GLAPI PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glad_glNamedFramebufferSampleLocationsfvNV; -#define glNamedFramebufferSampleLocationsfvNV glad_glNamedFramebufferSampleLocationsfvNV -typedef void (APIENTRYP PFNGLRESOLVEDEPTHVALUESNVPROC)(void); -GLAPI PFNGLRESOLVEDEPTHVALUESNVPROC glad_glResolveDepthValuesNV; -#define glResolveDepthValuesNV glad_glResolveDepthValuesNV -#endif -#ifndef GL_NV_sample_mask_override_coverage -#define GL_NV_sample_mask_override_coverage 1 -GLAPI int GLAD_GL_NV_sample_mask_override_coverage; -#endif -#ifndef GL_NV_shader_atomic_counters -#define GL_NV_shader_atomic_counters 1 -GLAPI int GLAD_GL_NV_shader_atomic_counters; -#endif -#ifndef GL_NV_shader_atomic_float -#define GL_NV_shader_atomic_float 1 -GLAPI int GLAD_GL_NV_shader_atomic_float; -#endif -#ifndef GL_NV_shader_atomic_float64 -#define GL_NV_shader_atomic_float64 1 -GLAPI int GLAD_GL_NV_shader_atomic_float64; -#endif -#ifndef GL_NV_shader_atomic_fp16_vector -#define GL_NV_shader_atomic_fp16_vector 1 -GLAPI int GLAD_GL_NV_shader_atomic_fp16_vector; -#endif -#ifndef GL_NV_shader_atomic_int64 -#define GL_NV_shader_atomic_int64 1 -GLAPI int GLAD_GL_NV_shader_atomic_int64; -#endif -#ifndef GL_NV_shader_buffer_load -#define GL_NV_shader_buffer_load 1 -GLAPI int GLAD_GL_NV_shader_buffer_load; -typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC)(GLenum target, GLenum access); -GLAPI PFNGLMAKEBUFFERRESIDENTNVPROC glad_glMakeBufferResidentNV; -#define glMakeBufferResidentNV glad_glMakeBufferResidentNV -typedef void (APIENTRYP PFNGLMAKEBUFFERNONRESIDENTNVPROC)(GLenum target); -GLAPI PFNGLMAKEBUFFERNONRESIDENTNVPROC glad_glMakeBufferNonResidentNV; -#define glMakeBufferNonResidentNV glad_glMakeBufferNonResidentNV -typedef GLboolean (APIENTRYP PFNGLISBUFFERRESIDENTNVPROC)(GLenum target); -GLAPI PFNGLISBUFFERRESIDENTNVPROC glad_glIsBufferResidentNV; -#define glIsBufferResidentNV glad_glIsBufferResidentNV -typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC)(GLuint buffer, GLenum access); -GLAPI PFNGLMAKENAMEDBUFFERRESIDENTNVPROC glad_glMakeNamedBufferResidentNV; -#define glMakeNamedBufferResidentNV glad_glMakeNamedBufferResidentNV -typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC)(GLuint buffer); -GLAPI PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC glad_glMakeNamedBufferNonResidentNV; -#define glMakeNamedBufferNonResidentNV glad_glMakeNamedBufferNonResidentNV -typedef GLboolean (APIENTRYP PFNGLISNAMEDBUFFERRESIDENTNVPROC)(GLuint buffer); -GLAPI PFNGLISNAMEDBUFFERRESIDENTNVPROC glad_glIsNamedBufferResidentNV; -#define glIsNamedBufferResidentNV glad_glIsNamedBufferResidentNV -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERUI64VNVPROC)(GLenum target, GLenum pname, GLuint64EXT *params); -GLAPI PFNGLGETBUFFERPARAMETERUI64VNVPROC glad_glGetBufferParameterui64vNV; -#define glGetBufferParameterui64vNV glad_glGetBufferParameterui64vNV -typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC)(GLuint buffer, GLenum pname, GLuint64EXT *params); -GLAPI PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC glad_glGetNamedBufferParameterui64vNV; -#define glGetNamedBufferParameterui64vNV glad_glGetNamedBufferParameterui64vNV -typedef void (APIENTRYP PFNGLGETINTEGERUI64VNVPROC)(GLenum value, GLuint64EXT *result); -GLAPI PFNGLGETINTEGERUI64VNVPROC glad_glGetIntegerui64vNV; -#define glGetIntegerui64vNV glad_glGetIntegerui64vNV -typedef void (APIENTRYP PFNGLUNIFORMUI64NVPROC)(GLint location, GLuint64EXT value); -GLAPI PFNGLUNIFORMUI64NVPROC glad_glUniformui64NV; -#define glUniformui64NV glad_glUniformui64NV -typedef void (APIENTRYP PFNGLUNIFORMUI64VNVPROC)(GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLUNIFORMUI64VNVPROC glad_glUniformui64vNV; -#define glUniformui64vNV glad_glUniformui64vNV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64NVPROC)(GLuint program, GLint location, GLuint64EXT value); -GLAPI PFNGLPROGRAMUNIFORMUI64NVPROC glad_glProgramUniformui64NV; -#define glProgramUniformui64NV glad_glProgramUniformui64NV -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMUI64VNVPROC)(GLuint program, GLint location, GLsizei count, const GLuint64EXT *value); -GLAPI PFNGLPROGRAMUNIFORMUI64VNVPROC glad_glProgramUniformui64vNV; -#define glProgramUniformui64vNV glad_glProgramUniformui64vNV -#endif -#ifndef GL_NV_shader_buffer_store -#define GL_NV_shader_buffer_store 1 -GLAPI int GLAD_GL_NV_shader_buffer_store; -#endif -#ifndef GL_NV_shader_storage_buffer_object -#define GL_NV_shader_storage_buffer_object 1 -GLAPI int GLAD_GL_NV_shader_storage_buffer_object; -#endif -#ifndef GL_NV_shader_thread_group -#define GL_NV_shader_thread_group 1 -GLAPI int GLAD_GL_NV_shader_thread_group; -#endif -#ifndef GL_NV_shader_thread_shuffle -#define GL_NV_shader_thread_shuffle 1 -GLAPI int GLAD_GL_NV_shader_thread_shuffle; -#endif -#ifndef GL_NV_stereo_view_rendering -#define GL_NV_stereo_view_rendering 1 -GLAPI int GLAD_GL_NV_stereo_view_rendering; -#endif -#ifndef GL_NV_tessellation_program5 -#define GL_NV_tessellation_program5 1 -GLAPI int GLAD_GL_NV_tessellation_program5; -#endif -#ifndef GL_NV_texgen_emboss -#define GL_NV_texgen_emboss 1 -GLAPI int GLAD_GL_NV_texgen_emboss; -#endif -#ifndef GL_NV_texgen_reflection -#define GL_NV_texgen_reflection 1 -GLAPI int GLAD_GL_NV_texgen_reflection; -#endif -#ifndef GL_NV_texture_barrier -#define GL_NV_texture_barrier 1 -GLAPI int GLAD_GL_NV_texture_barrier; -typedef void (APIENTRYP PFNGLTEXTUREBARRIERNVPROC)(void); -GLAPI PFNGLTEXTUREBARRIERNVPROC glad_glTextureBarrierNV; -#define glTextureBarrierNV glad_glTextureBarrierNV -#endif -#ifndef GL_NV_texture_compression_vtc -#define GL_NV_texture_compression_vtc 1 -GLAPI int GLAD_GL_NV_texture_compression_vtc; -#endif -#ifndef GL_NV_texture_env_combine4 -#define GL_NV_texture_env_combine4 1 -GLAPI int GLAD_GL_NV_texture_env_combine4; -#endif -#ifndef GL_NV_texture_expand_normal -#define GL_NV_texture_expand_normal 1 -GLAPI int GLAD_GL_NV_texture_expand_normal; -#endif -#ifndef GL_NV_texture_multisample -#define GL_NV_texture_multisample 1 -GLAPI int GLAD_GL_NV_texture_multisample; -typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC)(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -GLAPI PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC glad_glTexImage2DMultisampleCoverageNV; -#define glTexImage2DMultisampleCoverageNV glad_glTexImage2DMultisampleCoverageNV -typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC)(GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -GLAPI PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC glad_glTexImage3DMultisampleCoverageNV; -#define glTexImage3DMultisampleCoverageNV glad_glTexImage3DMultisampleCoverageNV -typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC)(GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -GLAPI PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC glad_glTextureImage2DMultisampleNV; -#define glTextureImage2DMultisampleNV glad_glTextureImage2DMultisampleNV -typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC)(GLuint texture, GLenum target, GLsizei samples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -GLAPI PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC glad_glTextureImage3DMultisampleNV; -#define glTextureImage3DMultisampleNV glad_glTextureImage3DMultisampleNV -typedef void (APIENTRYP PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC)(GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations); -GLAPI PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC glad_glTextureImage2DMultisampleCoverageNV; -#define glTextureImage2DMultisampleCoverageNV glad_glTextureImage2DMultisampleCoverageNV -typedef void (APIENTRYP PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC)(GLuint texture, GLenum target, GLsizei coverageSamples, GLsizei colorSamples, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations); -GLAPI PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC glad_glTextureImage3DMultisampleCoverageNV; -#define glTextureImage3DMultisampleCoverageNV glad_glTextureImage3DMultisampleCoverageNV -#endif -#ifndef GL_NV_texture_rectangle -#define GL_NV_texture_rectangle 1 -GLAPI int GLAD_GL_NV_texture_rectangle; -#endif -#ifndef GL_NV_texture_rectangle_compressed -#define GL_NV_texture_rectangle_compressed 1 -GLAPI int GLAD_GL_NV_texture_rectangle_compressed; -#endif -#ifndef GL_NV_texture_shader -#define GL_NV_texture_shader 1 -GLAPI int GLAD_GL_NV_texture_shader; -#endif -#ifndef GL_NV_texture_shader2 -#define GL_NV_texture_shader2 1 -GLAPI int GLAD_GL_NV_texture_shader2; -#endif -#ifndef GL_NV_texture_shader3 -#define GL_NV_texture_shader3 1 -GLAPI int GLAD_GL_NV_texture_shader3; -#endif -#ifndef GL_NV_transform_feedback -#define GL_NV_transform_feedback 1 -GLAPI int GLAD_GL_NV_transform_feedback; -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKNVPROC)(GLenum primitiveMode); -GLAPI PFNGLBEGINTRANSFORMFEEDBACKNVPROC glad_glBeginTransformFeedbackNV; -#define glBeginTransformFeedbackNV glad_glBeginTransformFeedbackNV -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKNVPROC)(void); -GLAPI PFNGLENDTRANSFORMFEEDBACKNVPROC glad_glEndTransformFeedbackNV; -#define glEndTransformFeedbackNV glad_glEndTransformFeedbackNV -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC)(GLsizei count, const GLint *attribs, GLenum bufferMode); -GLAPI PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC glad_glTransformFeedbackAttribsNV; -#define glTransformFeedbackAttribsNV glad_glTransformFeedbackAttribsNV -typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLBINDBUFFERRANGENVPROC glad_glBindBufferRangeNV; -#define glBindBufferRangeNV glad_glBindBufferRangeNV -typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC)(GLenum target, GLuint index, GLuint buffer, GLintptr offset); -GLAPI PFNGLBINDBUFFEROFFSETNVPROC glad_glBindBufferOffsetNV; -#define glBindBufferOffsetNV glad_glBindBufferOffsetNV -typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC)(GLenum target, GLuint index, GLuint buffer); -GLAPI PFNGLBINDBUFFERBASENVPROC glad_glBindBufferBaseNV; -#define glBindBufferBaseNV glad_glBindBufferBaseNV -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC)(GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode); -GLAPI PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC glad_glTransformFeedbackVaryingsNV; -#define glTransformFeedbackVaryingsNV glad_glTransformFeedbackVaryingsNV -typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC)(GLuint program, const GLchar *name); -GLAPI PFNGLACTIVEVARYINGNVPROC glad_glActiveVaryingNV; -#define glActiveVaryingNV glad_glActiveVaryingNV -typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC)(GLuint program, const GLchar *name); -GLAPI PFNGLGETVARYINGLOCATIONNVPROC glad_glGetVaryingLocationNV; -#define glGetVaryingLocationNV glad_glGetVaryingLocationNV -typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -GLAPI PFNGLGETACTIVEVARYINGNVPROC glad_glGetActiveVaryingNV; -#define glGetActiveVaryingNV glad_glGetActiveVaryingNV -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC)(GLuint program, GLuint index, GLint *location); -GLAPI PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC glad_glGetTransformFeedbackVaryingNV; -#define glGetTransformFeedbackVaryingNV glad_glGetTransformFeedbackVaryingNV -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC)(GLsizei count, const GLint *attribs, GLsizei nbuffers, const GLint *bufstreams, GLenum bufferMode); -GLAPI PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC glad_glTransformFeedbackStreamAttribsNV; -#define glTransformFeedbackStreamAttribsNV glad_glTransformFeedbackStreamAttribsNV -#endif -#ifndef GL_NV_transform_feedback2 -#define GL_NV_transform_feedback2 1 -GLAPI int GLAD_GL_NV_transform_feedback2; -typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKNVPROC)(GLenum target, GLuint id); -GLAPI PFNGLBINDTRANSFORMFEEDBACKNVPROC glad_glBindTransformFeedbackNV; -#define glBindTransformFeedbackNV glad_glBindTransformFeedbackNV -typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSNVPROC)(GLsizei n, const GLuint *ids); -GLAPI PFNGLDELETETRANSFORMFEEDBACKSNVPROC glad_glDeleteTransformFeedbacksNV; -#define glDeleteTransformFeedbacksNV glad_glDeleteTransformFeedbacksNV -typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSNVPROC)(GLsizei n, GLuint *ids); -GLAPI PFNGLGENTRANSFORMFEEDBACKSNVPROC glad_glGenTransformFeedbacksNV; -#define glGenTransformFeedbacksNV glad_glGenTransformFeedbacksNV -typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKNVPROC)(GLuint id); -GLAPI PFNGLISTRANSFORMFEEDBACKNVPROC glad_glIsTransformFeedbackNV; -#define glIsTransformFeedbackNV glad_glIsTransformFeedbackNV -typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKNVPROC)(void); -GLAPI PFNGLPAUSETRANSFORMFEEDBACKNVPROC glad_glPauseTransformFeedbackNV; -#define glPauseTransformFeedbackNV glad_glPauseTransformFeedbackNV -typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKNVPROC)(void); -GLAPI PFNGLRESUMETRANSFORMFEEDBACKNVPROC glad_glResumeTransformFeedbackNV; -#define glResumeTransformFeedbackNV glad_glResumeTransformFeedbackNV -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKNVPROC)(GLenum mode, GLuint id); -GLAPI PFNGLDRAWTRANSFORMFEEDBACKNVPROC glad_glDrawTransformFeedbackNV; -#define glDrawTransformFeedbackNV glad_glDrawTransformFeedbackNV -#endif -#ifndef GL_NV_uniform_buffer_unified_memory -#define GL_NV_uniform_buffer_unified_memory 1 -GLAPI int GLAD_GL_NV_uniform_buffer_unified_memory; -#endif -#ifndef GL_NV_vdpau_interop -#define GL_NV_vdpau_interop 1 -GLAPI int GLAD_GL_NV_vdpau_interop; -typedef void (APIENTRYP PFNGLVDPAUINITNVPROC)(const void *vdpDevice, const void *getProcAddress); -GLAPI PFNGLVDPAUINITNVPROC glad_glVDPAUInitNV; -#define glVDPAUInitNV glad_glVDPAUInitNV -typedef void (APIENTRYP PFNGLVDPAUFININVPROC)(void); -GLAPI PFNGLVDPAUFININVPROC glad_glVDPAUFiniNV; -#define glVDPAUFiniNV glad_glVDPAUFiniNV -typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTERVIDEOSURFACENVPROC)(const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); -GLAPI PFNGLVDPAUREGISTERVIDEOSURFACENVPROC glad_glVDPAURegisterVideoSurfaceNV; -#define glVDPAURegisterVideoSurfaceNV glad_glVDPAURegisterVideoSurfaceNV -typedef GLvdpauSurfaceNV (APIENTRYP PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC)(const void *vdpSurface, GLenum target, GLsizei numTextureNames, const GLuint *textureNames); -GLAPI PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC glad_glVDPAURegisterOutputSurfaceNV; -#define glVDPAURegisterOutputSurfaceNV glad_glVDPAURegisterOutputSurfaceNV -typedef GLboolean (APIENTRYP PFNGLVDPAUISSURFACENVPROC)(GLvdpauSurfaceNV surface); -GLAPI PFNGLVDPAUISSURFACENVPROC glad_glVDPAUIsSurfaceNV; -#define glVDPAUIsSurfaceNV glad_glVDPAUIsSurfaceNV -typedef void (APIENTRYP PFNGLVDPAUUNREGISTERSURFACENVPROC)(GLvdpauSurfaceNV surface); -GLAPI PFNGLVDPAUUNREGISTERSURFACENVPROC glad_glVDPAUUnregisterSurfaceNV; -#define glVDPAUUnregisterSurfaceNV glad_glVDPAUUnregisterSurfaceNV -typedef void (APIENTRYP PFNGLVDPAUGETSURFACEIVNVPROC)(GLvdpauSurfaceNV surface, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -GLAPI PFNGLVDPAUGETSURFACEIVNVPROC glad_glVDPAUGetSurfaceivNV; -#define glVDPAUGetSurfaceivNV glad_glVDPAUGetSurfaceivNV -typedef void (APIENTRYP PFNGLVDPAUSURFACEACCESSNVPROC)(GLvdpauSurfaceNV surface, GLenum access); -GLAPI PFNGLVDPAUSURFACEACCESSNVPROC glad_glVDPAUSurfaceAccessNV; -#define glVDPAUSurfaceAccessNV glad_glVDPAUSurfaceAccessNV -typedef void (APIENTRYP PFNGLVDPAUMAPSURFACESNVPROC)(GLsizei numSurfaces, const GLvdpauSurfaceNV *surfaces); -GLAPI PFNGLVDPAUMAPSURFACESNVPROC glad_glVDPAUMapSurfacesNV; -#define glVDPAUMapSurfacesNV glad_glVDPAUMapSurfacesNV -typedef void (APIENTRYP PFNGLVDPAUUNMAPSURFACESNVPROC)(GLsizei numSurface, const GLvdpauSurfaceNV *surfaces); -GLAPI PFNGLVDPAUUNMAPSURFACESNVPROC glad_glVDPAUUnmapSurfacesNV; -#define glVDPAUUnmapSurfacesNV glad_glVDPAUUnmapSurfacesNV -#endif -#ifndef GL_NV_vertex_array_range -#define GL_NV_vertex_array_range 1 -GLAPI int GLAD_GL_NV_vertex_array_range; -typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGENVPROC)(void); -GLAPI PFNGLFLUSHVERTEXARRAYRANGENVPROC glad_glFlushVertexArrayRangeNV; -#define glFlushVertexArrayRangeNV glad_glFlushVertexArrayRangeNV -typedef void (APIENTRYP PFNGLVERTEXARRAYRANGENVPROC)(GLsizei length, const void *pointer); -GLAPI PFNGLVERTEXARRAYRANGENVPROC glad_glVertexArrayRangeNV; -#define glVertexArrayRangeNV glad_glVertexArrayRangeNV -#endif -#ifndef GL_NV_vertex_array_range2 -#define GL_NV_vertex_array_range2 1 -GLAPI int GLAD_GL_NV_vertex_array_range2; -#endif -#ifndef GL_NV_vertex_attrib_integer_64bit -#define GL_NV_vertex_attrib_integer_64bit 1 -GLAPI int GLAD_GL_NV_vertex_attrib_integer_64bit; -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64NVPROC)(GLuint index, GLint64EXT x); -GLAPI PFNGLVERTEXATTRIBL1I64NVPROC glad_glVertexAttribL1i64NV; -#define glVertexAttribL1i64NV glad_glVertexAttribL1i64NV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64NVPROC)(GLuint index, GLint64EXT x, GLint64EXT y); -GLAPI PFNGLVERTEXATTRIBL2I64NVPROC glad_glVertexAttribL2i64NV; -#define glVertexAttribL2i64NV glad_glVertexAttribL2i64NV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64NVPROC)(GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z); -GLAPI PFNGLVERTEXATTRIBL3I64NVPROC glad_glVertexAttribL3i64NV; -#define glVertexAttribL3i64NV glad_glVertexAttribL3i64NV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64NVPROC)(GLuint index, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w); -GLAPI PFNGLVERTEXATTRIBL4I64NVPROC glad_glVertexAttribL4i64NV; -#define glVertexAttribL4i64NV glad_glVertexAttribL4i64NV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1I64VNVPROC)(GLuint index, const GLint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL1I64VNVPROC glad_glVertexAttribL1i64vNV; -#define glVertexAttribL1i64vNV glad_glVertexAttribL1i64vNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2I64VNVPROC)(GLuint index, const GLint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL2I64VNVPROC glad_glVertexAttribL2i64vNV; -#define glVertexAttribL2i64vNV glad_glVertexAttribL2i64vNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3I64VNVPROC)(GLuint index, const GLint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL3I64VNVPROC glad_glVertexAttribL3i64vNV; -#define glVertexAttribL3i64vNV glad_glVertexAttribL3i64vNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4I64VNVPROC)(GLuint index, const GLint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL4I64VNVPROC glad_glVertexAttribL4i64vNV; -#define glVertexAttribL4i64vNV glad_glVertexAttribL4i64vNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64NVPROC)(GLuint index, GLuint64EXT x); -GLAPI PFNGLVERTEXATTRIBL1UI64NVPROC glad_glVertexAttribL1ui64NV; -#define glVertexAttribL1ui64NV glad_glVertexAttribL1ui64NV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64NVPROC)(GLuint index, GLuint64EXT x, GLuint64EXT y); -GLAPI PFNGLVERTEXATTRIBL2UI64NVPROC glad_glVertexAttribL2ui64NV; -#define glVertexAttribL2ui64NV glad_glVertexAttribL2ui64NV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64NVPROC)(GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z); -GLAPI PFNGLVERTEXATTRIBL3UI64NVPROC glad_glVertexAttribL3ui64NV; -#define glVertexAttribL3ui64NV glad_glVertexAttribL3ui64NV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64NVPROC)(GLuint index, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w); -GLAPI PFNGLVERTEXATTRIBL4UI64NVPROC glad_glVertexAttribL4ui64NV; -#define glVertexAttribL4ui64NV glad_glVertexAttribL4ui64NV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VNVPROC)(GLuint index, const GLuint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL1UI64VNVPROC glad_glVertexAttribL1ui64vNV; -#define glVertexAttribL1ui64vNV glad_glVertexAttribL1ui64vNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2UI64VNVPROC)(GLuint index, const GLuint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL2UI64VNVPROC glad_glVertexAttribL2ui64vNV; -#define glVertexAttribL2ui64vNV glad_glVertexAttribL2ui64vNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3UI64VNVPROC)(GLuint index, const GLuint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL3UI64VNVPROC glad_glVertexAttribL3ui64vNV; -#define glVertexAttribL3ui64vNV glad_glVertexAttribL3ui64vNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4UI64VNVPROC)(GLuint index, const GLuint64EXT *v); -GLAPI PFNGLVERTEXATTRIBL4UI64VNVPROC glad_glVertexAttribL4ui64vNV; -#define glVertexAttribL4ui64vNV glad_glVertexAttribL4ui64vNV -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLI64VNVPROC)(GLuint index, GLenum pname, GLint64EXT *params); -GLAPI PFNGLGETVERTEXATTRIBLI64VNVPROC glad_glGetVertexAttribLi64vNV; -#define glGetVertexAttribLi64vNV glad_glGetVertexAttribLi64vNV -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VNVPROC)(GLuint index, GLenum pname, GLuint64EXT *params); -GLAPI PFNGLGETVERTEXATTRIBLUI64VNVPROC glad_glGetVertexAttribLui64vNV; -#define glGetVertexAttribLui64vNV glad_glGetVertexAttribLui64vNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATNVPROC)(GLuint index, GLint size, GLenum type, GLsizei stride); -GLAPI PFNGLVERTEXATTRIBLFORMATNVPROC glad_glVertexAttribLFormatNV; -#define glVertexAttribLFormatNV glad_glVertexAttribLFormatNV -#endif -#ifndef GL_NV_vertex_buffer_unified_memory -#define GL_NV_vertex_buffer_unified_memory 1 -GLAPI int GLAD_GL_NV_vertex_buffer_unified_memory; -typedef void (APIENTRYP PFNGLBUFFERADDRESSRANGENVPROC)(GLenum pname, GLuint index, GLuint64EXT address, GLsizeiptr length); -GLAPI PFNGLBUFFERADDRESSRANGENVPROC glad_glBufferAddressRangeNV; -#define glBufferAddressRangeNV glad_glBufferAddressRangeNV -typedef void (APIENTRYP PFNGLVERTEXFORMATNVPROC)(GLint size, GLenum type, GLsizei stride); -GLAPI PFNGLVERTEXFORMATNVPROC glad_glVertexFormatNV; -#define glVertexFormatNV glad_glVertexFormatNV -typedef void (APIENTRYP PFNGLNORMALFORMATNVPROC)(GLenum type, GLsizei stride); -GLAPI PFNGLNORMALFORMATNVPROC glad_glNormalFormatNV; -#define glNormalFormatNV glad_glNormalFormatNV -typedef void (APIENTRYP PFNGLCOLORFORMATNVPROC)(GLint size, GLenum type, GLsizei stride); -GLAPI PFNGLCOLORFORMATNVPROC glad_glColorFormatNV; -#define glColorFormatNV glad_glColorFormatNV -typedef void (APIENTRYP PFNGLINDEXFORMATNVPROC)(GLenum type, GLsizei stride); -GLAPI PFNGLINDEXFORMATNVPROC glad_glIndexFormatNV; -#define glIndexFormatNV glad_glIndexFormatNV -typedef void (APIENTRYP PFNGLTEXCOORDFORMATNVPROC)(GLint size, GLenum type, GLsizei stride); -GLAPI PFNGLTEXCOORDFORMATNVPROC glad_glTexCoordFormatNV; -#define glTexCoordFormatNV glad_glTexCoordFormatNV -typedef void (APIENTRYP PFNGLEDGEFLAGFORMATNVPROC)(GLsizei stride); -GLAPI PFNGLEDGEFLAGFORMATNVPROC glad_glEdgeFlagFormatNV; -#define glEdgeFlagFormatNV glad_glEdgeFlagFormatNV -typedef void (APIENTRYP PFNGLSECONDARYCOLORFORMATNVPROC)(GLint size, GLenum type, GLsizei stride); -GLAPI PFNGLSECONDARYCOLORFORMATNVPROC glad_glSecondaryColorFormatNV; -#define glSecondaryColorFormatNV glad_glSecondaryColorFormatNV -typedef void (APIENTRYP PFNGLFOGCOORDFORMATNVPROC)(GLenum type, GLsizei stride); -GLAPI PFNGLFOGCOORDFORMATNVPROC glad_glFogCoordFormatNV; -#define glFogCoordFormatNV glad_glFogCoordFormatNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATNVPROC)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride); -GLAPI PFNGLVERTEXATTRIBFORMATNVPROC glad_glVertexAttribFormatNV; -#define glVertexAttribFormatNV glad_glVertexAttribFormatNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATNVPROC)(GLuint index, GLint size, GLenum type, GLsizei stride); -GLAPI PFNGLVERTEXATTRIBIFORMATNVPROC glad_glVertexAttribIFormatNV; -#define glVertexAttribIFormatNV glad_glVertexAttribIFormatNV -typedef void (APIENTRYP PFNGLGETINTEGERUI64I_VNVPROC)(GLenum value, GLuint index, GLuint64EXT *result); -GLAPI PFNGLGETINTEGERUI64I_VNVPROC glad_glGetIntegerui64i_vNV; -#define glGetIntegerui64i_vNV glad_glGetIntegerui64i_vNV -#endif -#ifndef GL_NV_vertex_program -#define GL_NV_vertex_program 1 -GLAPI int GLAD_GL_NV_vertex_program; -typedef GLboolean (APIENTRYP PFNGLAREPROGRAMSRESIDENTNVPROC)(GLsizei n, const GLuint *programs, GLboolean *residences); -GLAPI PFNGLAREPROGRAMSRESIDENTNVPROC glad_glAreProgramsResidentNV; -#define glAreProgramsResidentNV glad_glAreProgramsResidentNV -typedef void (APIENTRYP PFNGLBINDPROGRAMNVPROC)(GLenum target, GLuint id); -GLAPI PFNGLBINDPROGRAMNVPROC glad_glBindProgramNV; -#define glBindProgramNV glad_glBindProgramNV -typedef void (APIENTRYP PFNGLDELETEPROGRAMSNVPROC)(GLsizei n, const GLuint *programs); -GLAPI PFNGLDELETEPROGRAMSNVPROC glad_glDeleteProgramsNV; -#define glDeleteProgramsNV glad_glDeleteProgramsNV -typedef void (APIENTRYP PFNGLEXECUTEPROGRAMNVPROC)(GLenum target, GLuint id, const GLfloat *params); -GLAPI PFNGLEXECUTEPROGRAMNVPROC glad_glExecuteProgramNV; -#define glExecuteProgramNV glad_glExecuteProgramNV -typedef void (APIENTRYP PFNGLGENPROGRAMSNVPROC)(GLsizei n, GLuint *programs); -GLAPI PFNGLGENPROGRAMSNVPROC glad_glGenProgramsNV; -#define glGenProgramsNV glad_glGenProgramsNV -typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERDVNVPROC)(GLenum target, GLuint index, GLenum pname, GLdouble *params); -GLAPI PFNGLGETPROGRAMPARAMETERDVNVPROC glad_glGetProgramParameterdvNV; -#define glGetProgramParameterdvNV glad_glGetProgramParameterdvNV -typedef void (APIENTRYP PFNGLGETPROGRAMPARAMETERFVNVPROC)(GLenum target, GLuint index, GLenum pname, GLfloat *params); -GLAPI PFNGLGETPROGRAMPARAMETERFVNVPROC glad_glGetProgramParameterfvNV; -#define glGetProgramParameterfvNV glad_glGetProgramParameterfvNV -typedef void (APIENTRYP PFNGLGETPROGRAMIVNVPROC)(GLuint id, GLenum pname, GLint *params); -GLAPI PFNGLGETPROGRAMIVNVPROC glad_glGetProgramivNV; -#define glGetProgramivNV glad_glGetProgramivNV -typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGNVPROC)(GLuint id, GLenum pname, GLubyte *program); -GLAPI PFNGLGETPROGRAMSTRINGNVPROC glad_glGetProgramStringNV; -#define glGetProgramStringNV glad_glGetProgramStringNV -typedef void (APIENTRYP PFNGLGETTRACKMATRIXIVNVPROC)(GLenum target, GLuint address, GLenum pname, GLint *params); -GLAPI PFNGLGETTRACKMATRIXIVNVPROC glad_glGetTrackMatrixivNV; -#define glGetTrackMatrixivNV glad_glGetTrackMatrixivNV -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVNVPROC)(GLuint index, GLenum pname, GLdouble *params); -GLAPI PFNGLGETVERTEXATTRIBDVNVPROC glad_glGetVertexAttribdvNV; -#define glGetVertexAttribdvNV glad_glGetVertexAttribdvNV -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVNVPROC)(GLuint index, GLenum pname, GLfloat *params); -GLAPI PFNGLGETVERTEXATTRIBFVNVPROC glad_glGetVertexAttribfvNV; -#define glGetVertexAttribfvNV glad_glGetVertexAttribfvNV -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVNVPROC)(GLuint index, GLenum pname, GLint *params); -GLAPI PFNGLGETVERTEXATTRIBIVNVPROC glad_glGetVertexAttribivNV; -#define glGetVertexAttribivNV glad_glGetVertexAttribivNV -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVNVPROC)(GLuint index, GLenum pname, void **pointer); -GLAPI PFNGLGETVERTEXATTRIBPOINTERVNVPROC glad_glGetVertexAttribPointervNV; -#define glGetVertexAttribPointervNV glad_glGetVertexAttribPointervNV -typedef GLboolean (APIENTRYP PFNGLISPROGRAMNVPROC)(GLuint id); -GLAPI PFNGLISPROGRAMNVPROC glad_glIsProgramNV; -#define glIsProgramNV glad_glIsProgramNV -typedef void (APIENTRYP PFNGLLOADPROGRAMNVPROC)(GLenum target, GLuint id, GLsizei len, const GLubyte *program); -GLAPI PFNGLLOADPROGRAMNVPROC glad_glLoadProgramNV; -#define glLoadProgramNV glad_glLoadProgramNV -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DNVPROC)(GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLPROGRAMPARAMETER4DNVPROC glad_glProgramParameter4dNV; -#define glProgramParameter4dNV glad_glProgramParameter4dNV -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4DVNVPROC)(GLenum target, GLuint index, const GLdouble *v); -GLAPI PFNGLPROGRAMPARAMETER4DVNVPROC glad_glProgramParameter4dvNV; -#define glProgramParameter4dvNV glad_glProgramParameter4dvNV -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FNVPROC)(GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLPROGRAMPARAMETER4FNVPROC glad_glProgramParameter4fNV; -#define glProgramParameter4fNV glad_glProgramParameter4fNV -typedef void (APIENTRYP PFNGLPROGRAMPARAMETER4FVNVPROC)(GLenum target, GLuint index, const GLfloat *v); -GLAPI PFNGLPROGRAMPARAMETER4FVNVPROC glad_glProgramParameter4fvNV; -#define glProgramParameter4fvNV glad_glProgramParameter4fvNV -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4DVNVPROC)(GLenum target, GLuint index, GLsizei count, const GLdouble *v); -GLAPI PFNGLPROGRAMPARAMETERS4DVNVPROC glad_glProgramParameters4dvNV; -#define glProgramParameters4dvNV glad_glProgramParameters4dvNV -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERS4FVNVPROC)(GLenum target, GLuint index, GLsizei count, const GLfloat *v); -GLAPI PFNGLPROGRAMPARAMETERS4FVNVPROC glad_glProgramParameters4fvNV; -#define glProgramParameters4fvNV glad_glProgramParameters4fvNV -typedef void (APIENTRYP PFNGLREQUESTRESIDENTPROGRAMSNVPROC)(GLsizei n, const GLuint *programs); -GLAPI PFNGLREQUESTRESIDENTPROGRAMSNVPROC glad_glRequestResidentProgramsNV; -#define glRequestResidentProgramsNV glad_glRequestResidentProgramsNV -typedef void (APIENTRYP PFNGLTRACKMATRIXNVPROC)(GLenum target, GLuint address, GLenum matrix, GLenum transform); -GLAPI PFNGLTRACKMATRIXNVPROC glad_glTrackMatrixNV; -#define glTrackMatrixNV glad_glTrackMatrixNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERNVPROC)(GLuint index, GLint fsize, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXATTRIBPOINTERNVPROC glad_glVertexAttribPointerNV; -#define glVertexAttribPointerNV glad_glVertexAttribPointerNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DNVPROC)(GLuint index, GLdouble x); -GLAPI PFNGLVERTEXATTRIB1DNVPROC glad_glVertexAttrib1dNV; -#define glVertexAttrib1dNV glad_glVertexAttrib1dNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVNVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB1DVNVPROC glad_glVertexAttrib1dvNV; -#define glVertexAttrib1dvNV glad_glVertexAttrib1dvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FNVPROC)(GLuint index, GLfloat x); -GLAPI PFNGLVERTEXATTRIB1FNVPROC glad_glVertexAttrib1fNV; -#define glVertexAttrib1fNV glad_glVertexAttrib1fNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVNVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB1FVNVPROC glad_glVertexAttrib1fvNV; -#define glVertexAttrib1fvNV glad_glVertexAttrib1fvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SNVPROC)(GLuint index, GLshort x); -GLAPI PFNGLVERTEXATTRIB1SNVPROC glad_glVertexAttrib1sNV; -#define glVertexAttrib1sNV glad_glVertexAttrib1sNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVNVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB1SVNVPROC glad_glVertexAttrib1svNV; -#define glVertexAttrib1svNV glad_glVertexAttrib1svNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DNVPROC)(GLuint index, GLdouble x, GLdouble y); -GLAPI PFNGLVERTEXATTRIB2DNVPROC glad_glVertexAttrib2dNV; -#define glVertexAttrib2dNV glad_glVertexAttrib2dNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVNVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB2DVNVPROC glad_glVertexAttrib2dvNV; -#define glVertexAttrib2dvNV glad_glVertexAttrib2dvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FNVPROC)(GLuint index, GLfloat x, GLfloat y); -GLAPI PFNGLVERTEXATTRIB2FNVPROC glad_glVertexAttrib2fNV; -#define glVertexAttrib2fNV glad_glVertexAttrib2fNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVNVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB2FVNVPROC glad_glVertexAttrib2fvNV; -#define glVertexAttrib2fvNV glad_glVertexAttrib2fvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SNVPROC)(GLuint index, GLshort x, GLshort y); -GLAPI PFNGLVERTEXATTRIB2SNVPROC glad_glVertexAttrib2sNV; -#define glVertexAttrib2sNV glad_glVertexAttrib2sNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVNVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB2SVNVPROC glad_glVertexAttrib2svNV; -#define glVertexAttrib2svNV glad_glVertexAttrib2svNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DNVPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI PFNGLVERTEXATTRIB3DNVPROC glad_glVertexAttrib3dNV; -#define glVertexAttrib3dNV glad_glVertexAttrib3dNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVNVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB3DVNVPROC glad_glVertexAttrib3dvNV; -#define glVertexAttrib3dvNV glad_glVertexAttrib3dvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FNVPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLVERTEXATTRIB3FNVPROC glad_glVertexAttrib3fNV; -#define glVertexAttrib3fNV glad_glVertexAttrib3fNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVNVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB3FVNVPROC glad_glVertexAttrib3fvNV; -#define glVertexAttrib3fvNV glad_glVertexAttrib3fvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SNVPROC)(GLuint index, GLshort x, GLshort y, GLshort z); -GLAPI PFNGLVERTEXATTRIB3SNVPROC glad_glVertexAttrib3sNV; -#define glVertexAttrib3sNV glad_glVertexAttrib3sNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVNVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB3SVNVPROC glad_glVertexAttrib3svNV; -#define glVertexAttrib3svNV glad_glVertexAttrib3svNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DNVPROC)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI PFNGLVERTEXATTRIB4DNVPROC glad_glVertexAttrib4dNV; -#define glVertexAttrib4dNV glad_glVertexAttrib4dNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVNVPROC)(GLuint index, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIB4DVNVPROC glad_glVertexAttrib4dvNV; -#define glVertexAttrib4dvNV glad_glVertexAttrib4dvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FNVPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLVERTEXATTRIB4FNVPROC glad_glVertexAttrib4fNV; -#define glVertexAttrib4fNV glad_glVertexAttrib4fNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVNVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIB4FVNVPROC glad_glVertexAttrib4fvNV; -#define glVertexAttrib4fvNV glad_glVertexAttrib4fvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SNVPROC)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI PFNGLVERTEXATTRIB4SNVPROC glad_glVertexAttrib4sNV; -#define glVertexAttrib4sNV glad_glVertexAttrib4sNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVNVPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIB4SVNVPROC glad_glVertexAttrib4svNV; -#define glVertexAttrib4svNV glad_glVertexAttrib4svNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBNVPROC)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -GLAPI PFNGLVERTEXATTRIB4UBNVPROC glad_glVertexAttrib4ubNV; -#define glVertexAttrib4ubNV glad_glVertexAttrib4ubNV -typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVNVPROC)(GLuint index, const GLubyte *v); -GLAPI PFNGLVERTEXATTRIB4UBVNVPROC glad_glVertexAttrib4ubvNV; -#define glVertexAttrib4ubvNV glad_glVertexAttrib4ubvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1DVNVPROC)(GLuint index, GLsizei count, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBS1DVNVPROC glad_glVertexAttribs1dvNV; -#define glVertexAttribs1dvNV glad_glVertexAttribs1dvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1FVNVPROC)(GLuint index, GLsizei count, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIBS1FVNVPROC glad_glVertexAttribs1fvNV; -#define glVertexAttribs1fvNV glad_glVertexAttribs1fvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS1SVNVPROC)(GLuint index, GLsizei count, const GLshort *v); -GLAPI PFNGLVERTEXATTRIBS1SVNVPROC glad_glVertexAttribs1svNV; -#define glVertexAttribs1svNV glad_glVertexAttribs1svNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2DVNVPROC)(GLuint index, GLsizei count, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBS2DVNVPROC glad_glVertexAttribs2dvNV; -#define glVertexAttribs2dvNV glad_glVertexAttribs2dvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2FVNVPROC)(GLuint index, GLsizei count, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIBS2FVNVPROC glad_glVertexAttribs2fvNV; -#define glVertexAttribs2fvNV glad_glVertexAttribs2fvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS2SVNVPROC)(GLuint index, GLsizei count, const GLshort *v); -GLAPI PFNGLVERTEXATTRIBS2SVNVPROC glad_glVertexAttribs2svNV; -#define glVertexAttribs2svNV glad_glVertexAttribs2svNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3DVNVPROC)(GLuint index, GLsizei count, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBS3DVNVPROC glad_glVertexAttribs3dvNV; -#define glVertexAttribs3dvNV glad_glVertexAttribs3dvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3FVNVPROC)(GLuint index, GLsizei count, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIBS3FVNVPROC glad_glVertexAttribs3fvNV; -#define glVertexAttribs3fvNV glad_glVertexAttribs3fvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS3SVNVPROC)(GLuint index, GLsizei count, const GLshort *v); -GLAPI PFNGLVERTEXATTRIBS3SVNVPROC glad_glVertexAttribs3svNV; -#define glVertexAttribs3svNV glad_glVertexAttribs3svNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4DVNVPROC)(GLuint index, GLsizei count, const GLdouble *v); -GLAPI PFNGLVERTEXATTRIBS4DVNVPROC glad_glVertexAttribs4dvNV; -#define glVertexAttribs4dvNV glad_glVertexAttribs4dvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4FVNVPROC)(GLuint index, GLsizei count, const GLfloat *v); -GLAPI PFNGLVERTEXATTRIBS4FVNVPROC glad_glVertexAttribs4fvNV; -#define glVertexAttribs4fvNV glad_glVertexAttribs4fvNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4SVNVPROC)(GLuint index, GLsizei count, const GLshort *v); -GLAPI PFNGLVERTEXATTRIBS4SVNVPROC glad_glVertexAttribs4svNV; -#define glVertexAttribs4svNV glad_glVertexAttribs4svNV -typedef void (APIENTRYP PFNGLVERTEXATTRIBS4UBVNVPROC)(GLuint index, GLsizei count, const GLubyte *v); -GLAPI PFNGLVERTEXATTRIBS4UBVNVPROC glad_glVertexAttribs4ubvNV; -#define glVertexAttribs4ubvNV glad_glVertexAttribs4ubvNV -#endif -#ifndef GL_NV_vertex_program1_1 -#define GL_NV_vertex_program1_1 1 -GLAPI int GLAD_GL_NV_vertex_program1_1; -#endif -#ifndef GL_NV_vertex_program2 -#define GL_NV_vertex_program2 1 -GLAPI int GLAD_GL_NV_vertex_program2; -#endif -#ifndef GL_NV_vertex_program2_option -#define GL_NV_vertex_program2_option 1 -GLAPI int GLAD_GL_NV_vertex_program2_option; -#endif -#ifndef GL_NV_vertex_program3 -#define GL_NV_vertex_program3 1 -GLAPI int GLAD_GL_NV_vertex_program3; -#endif -#ifndef GL_NV_vertex_program4 -#define GL_NV_vertex_program4 1 -GLAPI int GLAD_GL_NV_vertex_program4; -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IEXTPROC)(GLuint index, GLint x); -GLAPI PFNGLVERTEXATTRIBI1IEXTPROC glad_glVertexAttribI1iEXT; -#define glVertexAttribI1iEXT glad_glVertexAttribI1iEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IEXTPROC)(GLuint index, GLint x, GLint y); -GLAPI PFNGLVERTEXATTRIBI2IEXTPROC glad_glVertexAttribI2iEXT; -#define glVertexAttribI2iEXT glad_glVertexAttribI2iEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IEXTPROC)(GLuint index, GLint x, GLint y, GLint z); -GLAPI PFNGLVERTEXATTRIBI3IEXTPROC glad_glVertexAttribI3iEXT; -#define glVertexAttribI3iEXT glad_glVertexAttribI3iEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IEXTPROC)(GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI PFNGLVERTEXATTRIBI4IEXTPROC glad_glVertexAttribI4iEXT; -#define glVertexAttribI4iEXT glad_glVertexAttribI4iEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIEXTPROC)(GLuint index, GLuint x); -GLAPI PFNGLVERTEXATTRIBI1UIEXTPROC glad_glVertexAttribI1uiEXT; -#define glVertexAttribI1uiEXT glad_glVertexAttribI1uiEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIEXTPROC)(GLuint index, GLuint x, GLuint y); -GLAPI PFNGLVERTEXATTRIBI2UIEXTPROC glad_glVertexAttribI2uiEXT; -#define glVertexAttribI2uiEXT glad_glVertexAttribI2uiEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIEXTPROC)(GLuint index, GLuint x, GLuint y, GLuint z); -GLAPI PFNGLVERTEXATTRIBI3UIEXTPROC glad_glVertexAttribI3uiEXT; -#define glVertexAttribI3uiEXT glad_glVertexAttribI3uiEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIEXTPROC)(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI PFNGLVERTEXATTRIBI4UIEXTPROC glad_glVertexAttribI4uiEXT; -#define glVertexAttribI4uiEXT glad_glVertexAttribI4uiEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVEXTPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIBI1IVEXTPROC glad_glVertexAttribI1ivEXT; -#define glVertexAttribI1ivEXT glad_glVertexAttribI1ivEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVEXTPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIBI2IVEXTPROC glad_glVertexAttribI2ivEXT; -#define glVertexAttribI2ivEXT glad_glVertexAttribI2ivEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVEXTPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIBI3IVEXTPROC glad_glVertexAttribI3ivEXT; -#define glVertexAttribI3ivEXT glad_glVertexAttribI3ivEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVEXTPROC)(GLuint index, const GLint *v); -GLAPI PFNGLVERTEXATTRIBI4IVEXTPROC glad_glVertexAttribI4ivEXT; -#define glVertexAttribI4ivEXT glad_glVertexAttribI4ivEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVEXTPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIBI1UIVEXTPROC glad_glVertexAttribI1uivEXT; -#define glVertexAttribI1uivEXT glad_glVertexAttribI1uivEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVEXTPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIBI2UIVEXTPROC glad_glVertexAttribI2uivEXT; -#define glVertexAttribI2uivEXT glad_glVertexAttribI2uivEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVEXTPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIBI3UIVEXTPROC glad_glVertexAttribI3uivEXT; -#define glVertexAttribI3uivEXT glad_glVertexAttribI3uivEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVEXTPROC)(GLuint index, const GLuint *v); -GLAPI PFNGLVERTEXATTRIBI4UIVEXTPROC glad_glVertexAttribI4uivEXT; -#define glVertexAttribI4uivEXT glad_glVertexAttribI4uivEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVEXTPROC)(GLuint index, const GLbyte *v); -GLAPI PFNGLVERTEXATTRIBI4BVEXTPROC glad_glVertexAttribI4bvEXT; -#define glVertexAttribI4bvEXT glad_glVertexAttribI4bvEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVEXTPROC)(GLuint index, const GLshort *v); -GLAPI PFNGLVERTEXATTRIBI4SVEXTPROC glad_glVertexAttribI4svEXT; -#define glVertexAttribI4svEXT glad_glVertexAttribI4svEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVEXTPROC)(GLuint index, const GLubyte *v); -GLAPI PFNGLVERTEXATTRIBI4UBVEXTPROC glad_glVertexAttribI4ubvEXT; -#define glVertexAttribI4ubvEXT glad_glVertexAttribI4ubvEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVEXTPROC)(GLuint index, const GLushort *v); -GLAPI PFNGLVERTEXATTRIBI4USVEXTPROC glad_glVertexAttribI4usvEXT; -#define glVertexAttribI4usvEXT glad_glVertexAttribI4usvEXT -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTEREXTPROC)(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -GLAPI PFNGLVERTEXATTRIBIPOINTEREXTPROC glad_glVertexAttribIPointerEXT; -#define glVertexAttribIPointerEXT glad_glVertexAttribIPointerEXT -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVEXTPROC)(GLuint index, GLenum pname, GLint *params); -GLAPI PFNGLGETVERTEXATTRIBIIVEXTPROC glad_glGetVertexAttribIivEXT; -#define glGetVertexAttribIivEXT glad_glGetVertexAttribIivEXT -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVEXTPROC)(GLuint index, GLenum pname, GLuint *params); -GLAPI PFNGLGETVERTEXATTRIBIUIVEXTPROC glad_glGetVertexAttribIuivEXT; -#define glGetVertexAttribIuivEXT glad_glGetVertexAttribIuivEXT -#endif -#ifndef GL_NV_video_capture -#define GL_NV_video_capture 1 -GLAPI int GLAD_GL_NV_video_capture; -typedef void (APIENTRYP PFNGLBEGINVIDEOCAPTURENVPROC)(GLuint video_capture_slot); -GLAPI PFNGLBEGINVIDEOCAPTURENVPROC glad_glBeginVideoCaptureNV; -#define glBeginVideoCaptureNV glad_glBeginVideoCaptureNV -typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC)(GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLintptrARB offset); -GLAPI PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC glad_glBindVideoCaptureStreamBufferNV; -#define glBindVideoCaptureStreamBufferNV glad_glBindVideoCaptureStreamBufferNV -typedef void (APIENTRYP PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC)(GLuint video_capture_slot, GLuint stream, GLenum frame_region, GLenum target, GLuint texture); -GLAPI PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC glad_glBindVideoCaptureStreamTextureNV; -#define glBindVideoCaptureStreamTextureNV glad_glBindVideoCaptureStreamTextureNV -typedef void (APIENTRYP PFNGLENDVIDEOCAPTURENVPROC)(GLuint video_capture_slot); -GLAPI PFNGLENDVIDEOCAPTURENVPROC glad_glEndVideoCaptureNV; -#define glEndVideoCaptureNV glad_glEndVideoCaptureNV -typedef void (APIENTRYP PFNGLGETVIDEOCAPTUREIVNVPROC)(GLuint video_capture_slot, GLenum pname, GLint *params); -GLAPI PFNGLGETVIDEOCAPTUREIVNVPROC glad_glGetVideoCaptureivNV; -#define glGetVideoCaptureivNV glad_glGetVideoCaptureivNV -typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMIVNVPROC)(GLuint video_capture_slot, GLuint stream, GLenum pname, GLint *params); -GLAPI PFNGLGETVIDEOCAPTURESTREAMIVNVPROC glad_glGetVideoCaptureStreamivNV; -#define glGetVideoCaptureStreamivNV glad_glGetVideoCaptureStreamivNV -typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMFVNVPROC)(GLuint video_capture_slot, GLuint stream, GLenum pname, GLfloat *params); -GLAPI PFNGLGETVIDEOCAPTURESTREAMFVNVPROC glad_glGetVideoCaptureStreamfvNV; -#define glGetVideoCaptureStreamfvNV glad_glGetVideoCaptureStreamfvNV -typedef void (APIENTRYP PFNGLGETVIDEOCAPTURESTREAMDVNVPROC)(GLuint video_capture_slot, GLuint stream, GLenum pname, GLdouble *params); -GLAPI PFNGLGETVIDEOCAPTURESTREAMDVNVPROC glad_glGetVideoCaptureStreamdvNV; -#define glGetVideoCaptureStreamdvNV glad_glGetVideoCaptureStreamdvNV -typedef GLenum (APIENTRYP PFNGLVIDEOCAPTURENVPROC)(GLuint video_capture_slot, GLuint *sequence_num, GLuint64EXT *capture_time); -GLAPI PFNGLVIDEOCAPTURENVPROC glad_glVideoCaptureNV; -#define glVideoCaptureNV glad_glVideoCaptureNV -typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC)(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLint *params); -GLAPI PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC glad_glVideoCaptureStreamParameterivNV; -#define glVideoCaptureStreamParameterivNV glad_glVideoCaptureStreamParameterivNV -typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC)(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLfloat *params); -GLAPI PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC glad_glVideoCaptureStreamParameterfvNV; -#define glVideoCaptureStreamParameterfvNV glad_glVideoCaptureStreamParameterfvNV -typedef void (APIENTRYP PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC)(GLuint video_capture_slot, GLuint stream, GLenum pname, const GLdouble *params); -GLAPI PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC glad_glVideoCaptureStreamParameterdvNV; -#define glVideoCaptureStreamParameterdvNV glad_glVideoCaptureStreamParameterdvNV -#endif -#ifndef GL_NV_viewport_array2 -#define GL_NV_viewport_array2 1 -GLAPI int GLAD_GL_NV_viewport_array2; -#endif -#ifndef GL_NV_viewport_swizzle -#define GL_NV_viewport_swizzle 1 -GLAPI int GLAD_GL_NV_viewport_swizzle; -typedef void (APIENTRYP PFNGLVIEWPORTSWIZZLENVPROC)(GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew); -GLAPI PFNGLVIEWPORTSWIZZLENVPROC glad_glViewportSwizzleNV; -#define glViewportSwizzleNV glad_glViewportSwizzleNV -#endif -#ifndef GL_OES_byte_coordinates -#define GL_OES_byte_coordinates 1 -GLAPI int GLAD_GL_OES_byte_coordinates; -typedef void (APIENTRYP PFNGLMULTITEXCOORD1BOESPROC)(GLenum texture, GLbyte s); -GLAPI PFNGLMULTITEXCOORD1BOESPROC glad_glMultiTexCoord1bOES; -#define glMultiTexCoord1bOES glad_glMultiTexCoord1bOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD1BVOESPROC)(GLenum texture, const GLbyte *coords); -GLAPI PFNGLMULTITEXCOORD1BVOESPROC glad_glMultiTexCoord1bvOES; -#define glMultiTexCoord1bvOES glad_glMultiTexCoord1bvOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD2BOESPROC)(GLenum texture, GLbyte s, GLbyte t); -GLAPI PFNGLMULTITEXCOORD2BOESPROC glad_glMultiTexCoord2bOES; -#define glMultiTexCoord2bOES glad_glMultiTexCoord2bOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD2BVOESPROC)(GLenum texture, const GLbyte *coords); -GLAPI PFNGLMULTITEXCOORD2BVOESPROC glad_glMultiTexCoord2bvOES; -#define glMultiTexCoord2bvOES glad_glMultiTexCoord2bvOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD3BOESPROC)(GLenum texture, GLbyte s, GLbyte t, GLbyte r); -GLAPI PFNGLMULTITEXCOORD3BOESPROC glad_glMultiTexCoord3bOES; -#define glMultiTexCoord3bOES glad_glMultiTexCoord3bOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD3BVOESPROC)(GLenum texture, const GLbyte *coords); -GLAPI PFNGLMULTITEXCOORD3BVOESPROC glad_glMultiTexCoord3bvOES; -#define glMultiTexCoord3bvOES glad_glMultiTexCoord3bvOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD4BOESPROC)(GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q); -GLAPI PFNGLMULTITEXCOORD4BOESPROC glad_glMultiTexCoord4bOES; -#define glMultiTexCoord4bOES glad_glMultiTexCoord4bOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD4BVOESPROC)(GLenum texture, const GLbyte *coords); -GLAPI PFNGLMULTITEXCOORD4BVOESPROC glad_glMultiTexCoord4bvOES; -#define glMultiTexCoord4bvOES glad_glMultiTexCoord4bvOES -typedef void (APIENTRYP PFNGLTEXCOORD1BOESPROC)(GLbyte s); -GLAPI PFNGLTEXCOORD1BOESPROC glad_glTexCoord1bOES; -#define glTexCoord1bOES glad_glTexCoord1bOES -typedef void (APIENTRYP PFNGLTEXCOORD1BVOESPROC)(const GLbyte *coords); -GLAPI PFNGLTEXCOORD1BVOESPROC glad_glTexCoord1bvOES; -#define glTexCoord1bvOES glad_glTexCoord1bvOES -typedef void (APIENTRYP PFNGLTEXCOORD2BOESPROC)(GLbyte s, GLbyte t); -GLAPI PFNGLTEXCOORD2BOESPROC glad_glTexCoord2bOES; -#define glTexCoord2bOES glad_glTexCoord2bOES -typedef void (APIENTRYP PFNGLTEXCOORD2BVOESPROC)(const GLbyte *coords); -GLAPI PFNGLTEXCOORD2BVOESPROC glad_glTexCoord2bvOES; -#define glTexCoord2bvOES glad_glTexCoord2bvOES -typedef void (APIENTRYP PFNGLTEXCOORD3BOESPROC)(GLbyte s, GLbyte t, GLbyte r); -GLAPI PFNGLTEXCOORD3BOESPROC glad_glTexCoord3bOES; -#define glTexCoord3bOES glad_glTexCoord3bOES -typedef void (APIENTRYP PFNGLTEXCOORD3BVOESPROC)(const GLbyte *coords); -GLAPI PFNGLTEXCOORD3BVOESPROC glad_glTexCoord3bvOES; -#define glTexCoord3bvOES glad_glTexCoord3bvOES -typedef void (APIENTRYP PFNGLTEXCOORD4BOESPROC)(GLbyte s, GLbyte t, GLbyte r, GLbyte q); -GLAPI PFNGLTEXCOORD4BOESPROC glad_glTexCoord4bOES; -#define glTexCoord4bOES glad_glTexCoord4bOES -typedef void (APIENTRYP PFNGLTEXCOORD4BVOESPROC)(const GLbyte *coords); -GLAPI PFNGLTEXCOORD4BVOESPROC glad_glTexCoord4bvOES; -#define glTexCoord4bvOES glad_glTexCoord4bvOES -typedef void (APIENTRYP PFNGLVERTEX2BOESPROC)(GLbyte x, GLbyte y); -GLAPI PFNGLVERTEX2BOESPROC glad_glVertex2bOES; -#define glVertex2bOES glad_glVertex2bOES -typedef void (APIENTRYP PFNGLVERTEX2BVOESPROC)(const GLbyte *coords); -GLAPI PFNGLVERTEX2BVOESPROC glad_glVertex2bvOES; -#define glVertex2bvOES glad_glVertex2bvOES -typedef void (APIENTRYP PFNGLVERTEX3BOESPROC)(GLbyte x, GLbyte y, GLbyte z); -GLAPI PFNGLVERTEX3BOESPROC glad_glVertex3bOES; -#define glVertex3bOES glad_glVertex3bOES -typedef void (APIENTRYP PFNGLVERTEX3BVOESPROC)(const GLbyte *coords); -GLAPI PFNGLVERTEX3BVOESPROC glad_glVertex3bvOES; -#define glVertex3bvOES glad_glVertex3bvOES -typedef void (APIENTRYP PFNGLVERTEX4BOESPROC)(GLbyte x, GLbyte y, GLbyte z, GLbyte w); -GLAPI PFNGLVERTEX4BOESPROC glad_glVertex4bOES; -#define glVertex4bOES glad_glVertex4bOES -typedef void (APIENTRYP PFNGLVERTEX4BVOESPROC)(const GLbyte *coords); -GLAPI PFNGLVERTEX4BVOESPROC glad_glVertex4bvOES; -#define glVertex4bvOES glad_glVertex4bvOES -#endif -#ifndef GL_OES_compressed_paletted_texture -#define GL_OES_compressed_paletted_texture 1 -GLAPI int GLAD_GL_OES_compressed_paletted_texture; -#endif -#ifndef GL_OES_fixed_point -#define GL_OES_fixed_point 1 -GLAPI int GLAD_GL_OES_fixed_point; -typedef void (APIENTRYP PFNGLALPHAFUNCXOESPROC)(GLenum func, GLfixed ref); -GLAPI PFNGLALPHAFUNCXOESPROC glad_glAlphaFuncxOES; -#define glAlphaFuncxOES glad_glAlphaFuncxOES -typedef void (APIENTRYP PFNGLCLEARCOLORXOESPROC)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -GLAPI PFNGLCLEARCOLORXOESPROC glad_glClearColorxOES; -#define glClearColorxOES glad_glClearColorxOES -typedef void (APIENTRYP PFNGLCLEARDEPTHXOESPROC)(GLfixed depth); -GLAPI PFNGLCLEARDEPTHXOESPROC glad_glClearDepthxOES; -#define glClearDepthxOES glad_glClearDepthxOES -typedef void (APIENTRYP PFNGLCLIPPLANEXOESPROC)(GLenum plane, const GLfixed *equation); -GLAPI PFNGLCLIPPLANEXOESPROC glad_glClipPlanexOES; -#define glClipPlanexOES glad_glClipPlanexOES -typedef void (APIENTRYP PFNGLCOLOR4XOESPROC)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -GLAPI PFNGLCOLOR4XOESPROC glad_glColor4xOES; -#define glColor4xOES glad_glColor4xOES -typedef void (APIENTRYP PFNGLDEPTHRANGEXOESPROC)(GLfixed n, GLfixed f); -GLAPI PFNGLDEPTHRANGEXOESPROC glad_glDepthRangexOES; -#define glDepthRangexOES glad_glDepthRangexOES -typedef void (APIENTRYP PFNGLFOGXOESPROC)(GLenum pname, GLfixed param); -GLAPI PFNGLFOGXOESPROC glad_glFogxOES; -#define glFogxOES glad_glFogxOES -typedef void (APIENTRYP PFNGLFOGXVOESPROC)(GLenum pname, const GLfixed *param); -GLAPI PFNGLFOGXVOESPROC glad_glFogxvOES; -#define glFogxvOES glad_glFogxvOES -typedef void (APIENTRYP PFNGLFRUSTUMXOESPROC)(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -GLAPI PFNGLFRUSTUMXOESPROC glad_glFrustumxOES; -#define glFrustumxOES glad_glFrustumxOES -typedef void (APIENTRYP PFNGLGETCLIPPLANEXOESPROC)(GLenum plane, GLfixed *equation); -GLAPI PFNGLGETCLIPPLANEXOESPROC glad_glGetClipPlanexOES; -#define glGetClipPlanexOES glad_glGetClipPlanexOES -typedef void (APIENTRYP PFNGLGETFIXEDVOESPROC)(GLenum pname, GLfixed *params); -GLAPI PFNGLGETFIXEDVOESPROC glad_glGetFixedvOES; -#define glGetFixedvOES glad_glGetFixedvOES -typedef void (APIENTRYP PFNGLGETTEXENVXVOESPROC)(GLenum target, GLenum pname, GLfixed *params); -GLAPI PFNGLGETTEXENVXVOESPROC glad_glGetTexEnvxvOES; -#define glGetTexEnvxvOES glad_glGetTexEnvxvOES -typedef void (APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC)(GLenum target, GLenum pname, GLfixed *params); -GLAPI PFNGLGETTEXPARAMETERXVOESPROC glad_glGetTexParameterxvOES; -#define glGetTexParameterxvOES glad_glGetTexParameterxvOES -typedef void (APIENTRYP PFNGLLIGHTMODELXOESPROC)(GLenum pname, GLfixed param); -GLAPI PFNGLLIGHTMODELXOESPROC glad_glLightModelxOES; -#define glLightModelxOES glad_glLightModelxOES -typedef void (APIENTRYP PFNGLLIGHTMODELXVOESPROC)(GLenum pname, const GLfixed *param); -GLAPI PFNGLLIGHTMODELXVOESPROC glad_glLightModelxvOES; -#define glLightModelxvOES glad_glLightModelxvOES -typedef void (APIENTRYP PFNGLLIGHTXOESPROC)(GLenum light, GLenum pname, GLfixed param); -GLAPI PFNGLLIGHTXOESPROC glad_glLightxOES; -#define glLightxOES glad_glLightxOES -typedef void (APIENTRYP PFNGLLIGHTXVOESPROC)(GLenum light, GLenum pname, const GLfixed *params); -GLAPI PFNGLLIGHTXVOESPROC glad_glLightxvOES; -#define glLightxvOES glad_glLightxvOES -typedef void (APIENTRYP PFNGLLINEWIDTHXOESPROC)(GLfixed width); -GLAPI PFNGLLINEWIDTHXOESPROC glad_glLineWidthxOES; -#define glLineWidthxOES glad_glLineWidthxOES -typedef void (APIENTRYP PFNGLLOADMATRIXXOESPROC)(const GLfixed *m); -GLAPI PFNGLLOADMATRIXXOESPROC glad_glLoadMatrixxOES; -#define glLoadMatrixxOES glad_glLoadMatrixxOES -typedef void (APIENTRYP PFNGLMATERIALXOESPROC)(GLenum face, GLenum pname, GLfixed param); -GLAPI PFNGLMATERIALXOESPROC glad_glMaterialxOES; -#define glMaterialxOES glad_glMaterialxOES -typedef void (APIENTRYP PFNGLMATERIALXVOESPROC)(GLenum face, GLenum pname, const GLfixed *param); -GLAPI PFNGLMATERIALXVOESPROC glad_glMaterialxvOES; -#define glMaterialxvOES glad_glMaterialxvOES -typedef void (APIENTRYP PFNGLMULTMATRIXXOESPROC)(const GLfixed *m); -GLAPI PFNGLMULTMATRIXXOESPROC glad_glMultMatrixxOES; -#define glMultMatrixxOES glad_glMultMatrixxOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD4XOESPROC)(GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q); -GLAPI PFNGLMULTITEXCOORD4XOESPROC glad_glMultiTexCoord4xOES; -#define glMultiTexCoord4xOES glad_glMultiTexCoord4xOES -typedef void (APIENTRYP PFNGLNORMAL3XOESPROC)(GLfixed nx, GLfixed ny, GLfixed nz); -GLAPI PFNGLNORMAL3XOESPROC glad_glNormal3xOES; -#define glNormal3xOES glad_glNormal3xOES -typedef void (APIENTRYP PFNGLORTHOXOESPROC)(GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f); -GLAPI PFNGLORTHOXOESPROC glad_glOrthoxOES; -#define glOrthoxOES glad_glOrthoxOES -typedef void (APIENTRYP PFNGLPOINTPARAMETERXVOESPROC)(GLenum pname, const GLfixed *params); -GLAPI PFNGLPOINTPARAMETERXVOESPROC glad_glPointParameterxvOES; -#define glPointParameterxvOES glad_glPointParameterxvOES -typedef void (APIENTRYP PFNGLPOINTSIZEXOESPROC)(GLfixed size); -GLAPI PFNGLPOINTSIZEXOESPROC glad_glPointSizexOES; -#define glPointSizexOES glad_glPointSizexOES -typedef void (APIENTRYP PFNGLPOLYGONOFFSETXOESPROC)(GLfixed factor, GLfixed units); -GLAPI PFNGLPOLYGONOFFSETXOESPROC glad_glPolygonOffsetxOES; -#define glPolygonOffsetxOES glad_glPolygonOffsetxOES -typedef void (APIENTRYP PFNGLROTATEXOESPROC)(GLfixed angle, GLfixed x, GLfixed y, GLfixed z); -GLAPI PFNGLROTATEXOESPROC glad_glRotatexOES; -#define glRotatexOES glad_glRotatexOES -typedef void (APIENTRYP PFNGLSCALEXOESPROC)(GLfixed x, GLfixed y, GLfixed z); -GLAPI PFNGLSCALEXOESPROC glad_glScalexOES; -#define glScalexOES glad_glScalexOES -typedef void (APIENTRYP PFNGLTEXENVXOESPROC)(GLenum target, GLenum pname, GLfixed param); -GLAPI PFNGLTEXENVXOESPROC glad_glTexEnvxOES; -#define glTexEnvxOES glad_glTexEnvxOES -typedef void (APIENTRYP PFNGLTEXENVXVOESPROC)(GLenum target, GLenum pname, const GLfixed *params); -GLAPI PFNGLTEXENVXVOESPROC glad_glTexEnvxvOES; -#define glTexEnvxvOES glad_glTexEnvxvOES -typedef void (APIENTRYP PFNGLTEXPARAMETERXOESPROC)(GLenum target, GLenum pname, GLfixed param); -GLAPI PFNGLTEXPARAMETERXOESPROC glad_glTexParameterxOES; -#define glTexParameterxOES glad_glTexParameterxOES -typedef void (APIENTRYP PFNGLTEXPARAMETERXVOESPROC)(GLenum target, GLenum pname, const GLfixed *params); -GLAPI PFNGLTEXPARAMETERXVOESPROC glad_glTexParameterxvOES; -#define glTexParameterxvOES glad_glTexParameterxvOES -typedef void (APIENTRYP PFNGLTRANSLATEXOESPROC)(GLfixed x, GLfixed y, GLfixed z); -GLAPI PFNGLTRANSLATEXOESPROC glad_glTranslatexOES; -#define glTranslatexOES glad_glTranslatexOES -typedef void (APIENTRYP PFNGLGETLIGHTXVOESPROC)(GLenum light, GLenum pname, GLfixed *params); -GLAPI PFNGLGETLIGHTXVOESPROC glad_glGetLightxvOES; -#define glGetLightxvOES glad_glGetLightxvOES -typedef void (APIENTRYP PFNGLGETMATERIALXVOESPROC)(GLenum face, GLenum pname, GLfixed *params); -GLAPI PFNGLGETMATERIALXVOESPROC glad_glGetMaterialxvOES; -#define glGetMaterialxvOES glad_glGetMaterialxvOES -typedef void (APIENTRYP PFNGLPOINTPARAMETERXOESPROC)(GLenum pname, GLfixed param); -GLAPI PFNGLPOINTPARAMETERXOESPROC glad_glPointParameterxOES; -#define glPointParameterxOES glad_glPointParameterxOES -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEXOESPROC)(GLclampx value, GLboolean invert); -GLAPI PFNGLSAMPLECOVERAGEXOESPROC glad_glSampleCoveragexOES; -#define glSampleCoveragexOES glad_glSampleCoveragexOES -typedef void (APIENTRYP PFNGLACCUMXOESPROC)(GLenum op, GLfixed value); -GLAPI PFNGLACCUMXOESPROC glad_glAccumxOES; -#define glAccumxOES glad_glAccumxOES -typedef void (APIENTRYP PFNGLBITMAPXOESPROC)(GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap); -GLAPI PFNGLBITMAPXOESPROC glad_glBitmapxOES; -#define glBitmapxOES glad_glBitmapxOES -typedef void (APIENTRYP PFNGLBLENDCOLORXOESPROC)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -GLAPI PFNGLBLENDCOLORXOESPROC glad_glBlendColorxOES; -#define glBlendColorxOES glad_glBlendColorxOES -typedef void (APIENTRYP PFNGLCLEARACCUMXOESPROC)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha); -GLAPI PFNGLCLEARACCUMXOESPROC glad_glClearAccumxOES; -#define glClearAccumxOES glad_glClearAccumxOES -typedef void (APIENTRYP PFNGLCOLOR3XOESPROC)(GLfixed red, GLfixed green, GLfixed blue); -GLAPI PFNGLCOLOR3XOESPROC glad_glColor3xOES; -#define glColor3xOES glad_glColor3xOES -typedef void (APIENTRYP PFNGLCOLOR3XVOESPROC)(const GLfixed *components); -GLAPI PFNGLCOLOR3XVOESPROC glad_glColor3xvOES; -#define glColor3xvOES glad_glColor3xvOES -typedef void (APIENTRYP PFNGLCOLOR4XVOESPROC)(const GLfixed *components); -GLAPI PFNGLCOLOR4XVOESPROC glad_glColor4xvOES; -#define glColor4xvOES glad_glColor4xvOES -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXOESPROC)(GLenum target, GLenum pname, GLfixed param); -GLAPI PFNGLCONVOLUTIONPARAMETERXOESPROC glad_glConvolutionParameterxOES; -#define glConvolutionParameterxOES glad_glConvolutionParameterxOES -typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXVOESPROC)(GLenum target, GLenum pname, const GLfixed *params); -GLAPI PFNGLCONVOLUTIONPARAMETERXVOESPROC glad_glConvolutionParameterxvOES; -#define glConvolutionParameterxvOES glad_glConvolutionParameterxvOES -typedef void (APIENTRYP PFNGLEVALCOORD1XOESPROC)(GLfixed u); -GLAPI PFNGLEVALCOORD1XOESPROC glad_glEvalCoord1xOES; -#define glEvalCoord1xOES glad_glEvalCoord1xOES -typedef void (APIENTRYP PFNGLEVALCOORD1XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLEVALCOORD1XVOESPROC glad_glEvalCoord1xvOES; -#define glEvalCoord1xvOES glad_glEvalCoord1xvOES -typedef void (APIENTRYP PFNGLEVALCOORD2XOESPROC)(GLfixed u, GLfixed v); -GLAPI PFNGLEVALCOORD2XOESPROC glad_glEvalCoord2xOES; -#define glEvalCoord2xOES glad_glEvalCoord2xOES -typedef void (APIENTRYP PFNGLEVALCOORD2XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLEVALCOORD2XVOESPROC glad_glEvalCoord2xvOES; -#define glEvalCoord2xvOES glad_glEvalCoord2xvOES -typedef void (APIENTRYP PFNGLFEEDBACKBUFFERXOESPROC)(GLsizei n, GLenum type, const GLfixed *buffer); -GLAPI PFNGLFEEDBACKBUFFERXOESPROC glad_glFeedbackBufferxOES; -#define glFeedbackBufferxOES glad_glFeedbackBufferxOES -typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERXVOESPROC)(GLenum target, GLenum pname, GLfixed *params); -GLAPI PFNGLGETCONVOLUTIONPARAMETERXVOESPROC glad_glGetConvolutionParameterxvOES; -#define glGetConvolutionParameterxvOES glad_glGetConvolutionParameterxvOES -typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERXVOESPROC)(GLenum target, GLenum pname, GLfixed *params); -GLAPI PFNGLGETHISTOGRAMPARAMETERXVOESPROC glad_glGetHistogramParameterxvOES; -#define glGetHistogramParameterxvOES glad_glGetHistogramParameterxvOES -typedef void (APIENTRYP PFNGLGETLIGHTXOESPROC)(GLenum light, GLenum pname, GLfixed *params); -GLAPI PFNGLGETLIGHTXOESPROC glad_glGetLightxOES; -#define glGetLightxOES glad_glGetLightxOES -typedef void (APIENTRYP PFNGLGETMAPXVOESPROC)(GLenum target, GLenum query, GLfixed *v); -GLAPI PFNGLGETMAPXVOESPROC glad_glGetMapxvOES; -#define glGetMapxvOES glad_glGetMapxvOES -typedef void (APIENTRYP PFNGLGETMATERIALXOESPROC)(GLenum face, GLenum pname, GLfixed param); -GLAPI PFNGLGETMATERIALXOESPROC glad_glGetMaterialxOES; -#define glGetMaterialxOES glad_glGetMaterialxOES -typedef void (APIENTRYP PFNGLGETPIXELMAPXVPROC)(GLenum map, GLint size, GLfixed *values); -GLAPI PFNGLGETPIXELMAPXVPROC glad_glGetPixelMapxv; -#define glGetPixelMapxv glad_glGetPixelMapxv -typedef void (APIENTRYP PFNGLGETTEXGENXVOESPROC)(GLenum coord, GLenum pname, GLfixed *params); -GLAPI PFNGLGETTEXGENXVOESPROC glad_glGetTexGenxvOES; -#define glGetTexGenxvOES glad_glGetTexGenxvOES -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERXVOESPROC)(GLenum target, GLint level, GLenum pname, GLfixed *params); -GLAPI PFNGLGETTEXLEVELPARAMETERXVOESPROC glad_glGetTexLevelParameterxvOES; -#define glGetTexLevelParameterxvOES glad_glGetTexLevelParameterxvOES -typedef void (APIENTRYP PFNGLINDEXXOESPROC)(GLfixed component); -GLAPI PFNGLINDEXXOESPROC glad_glIndexxOES; -#define glIndexxOES glad_glIndexxOES -typedef void (APIENTRYP PFNGLINDEXXVOESPROC)(const GLfixed *component); -GLAPI PFNGLINDEXXVOESPROC glad_glIndexxvOES; -#define glIndexxvOES glad_glIndexxvOES -typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXXOESPROC)(const GLfixed *m); -GLAPI PFNGLLOADTRANSPOSEMATRIXXOESPROC glad_glLoadTransposeMatrixxOES; -#define glLoadTransposeMatrixxOES glad_glLoadTransposeMatrixxOES -typedef void (APIENTRYP PFNGLMAP1XOESPROC)(GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points); -GLAPI PFNGLMAP1XOESPROC glad_glMap1xOES; -#define glMap1xOES glad_glMap1xOES -typedef void (APIENTRYP PFNGLMAP2XOESPROC)(GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points); -GLAPI PFNGLMAP2XOESPROC glad_glMap2xOES; -#define glMap2xOES glad_glMap2xOES -typedef void (APIENTRYP PFNGLMAPGRID1XOESPROC)(GLint n, GLfixed u1, GLfixed u2); -GLAPI PFNGLMAPGRID1XOESPROC glad_glMapGrid1xOES; -#define glMapGrid1xOES glad_glMapGrid1xOES -typedef void (APIENTRYP PFNGLMAPGRID2XOESPROC)(GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2); -GLAPI PFNGLMAPGRID2XOESPROC glad_glMapGrid2xOES; -#define glMapGrid2xOES glad_glMapGrid2xOES -typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXXOESPROC)(const GLfixed *m); -GLAPI PFNGLMULTTRANSPOSEMATRIXXOESPROC glad_glMultTransposeMatrixxOES; -#define glMultTransposeMatrixxOES glad_glMultTransposeMatrixxOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD1XOESPROC)(GLenum texture, GLfixed s); -GLAPI PFNGLMULTITEXCOORD1XOESPROC glad_glMultiTexCoord1xOES; -#define glMultiTexCoord1xOES glad_glMultiTexCoord1xOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD1XVOESPROC)(GLenum texture, const GLfixed *coords); -GLAPI PFNGLMULTITEXCOORD1XVOESPROC glad_glMultiTexCoord1xvOES; -#define glMultiTexCoord1xvOES glad_glMultiTexCoord1xvOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD2XOESPROC)(GLenum texture, GLfixed s, GLfixed t); -GLAPI PFNGLMULTITEXCOORD2XOESPROC glad_glMultiTexCoord2xOES; -#define glMultiTexCoord2xOES glad_glMultiTexCoord2xOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD2XVOESPROC)(GLenum texture, const GLfixed *coords); -GLAPI PFNGLMULTITEXCOORD2XVOESPROC glad_glMultiTexCoord2xvOES; -#define glMultiTexCoord2xvOES glad_glMultiTexCoord2xvOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD3XOESPROC)(GLenum texture, GLfixed s, GLfixed t, GLfixed r); -GLAPI PFNGLMULTITEXCOORD3XOESPROC glad_glMultiTexCoord3xOES; -#define glMultiTexCoord3xOES glad_glMultiTexCoord3xOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD3XVOESPROC)(GLenum texture, const GLfixed *coords); -GLAPI PFNGLMULTITEXCOORD3XVOESPROC glad_glMultiTexCoord3xvOES; -#define glMultiTexCoord3xvOES glad_glMultiTexCoord3xvOES -typedef void (APIENTRYP PFNGLMULTITEXCOORD4XVOESPROC)(GLenum texture, const GLfixed *coords); -GLAPI PFNGLMULTITEXCOORD4XVOESPROC glad_glMultiTexCoord4xvOES; -#define glMultiTexCoord4xvOES glad_glMultiTexCoord4xvOES -typedef void (APIENTRYP PFNGLNORMAL3XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLNORMAL3XVOESPROC glad_glNormal3xvOES; -#define glNormal3xvOES glad_glNormal3xvOES -typedef void (APIENTRYP PFNGLPASSTHROUGHXOESPROC)(GLfixed token); -GLAPI PFNGLPASSTHROUGHXOESPROC glad_glPassThroughxOES; -#define glPassThroughxOES glad_glPassThroughxOES -typedef void (APIENTRYP PFNGLPIXELMAPXPROC)(GLenum map, GLint size, const GLfixed *values); -GLAPI PFNGLPIXELMAPXPROC glad_glPixelMapx; -#define glPixelMapx glad_glPixelMapx -typedef void (APIENTRYP PFNGLPIXELSTOREXPROC)(GLenum pname, GLfixed param); -GLAPI PFNGLPIXELSTOREXPROC glad_glPixelStorex; -#define glPixelStorex glad_glPixelStorex -typedef void (APIENTRYP PFNGLPIXELTRANSFERXOESPROC)(GLenum pname, GLfixed param); -GLAPI PFNGLPIXELTRANSFERXOESPROC glad_glPixelTransferxOES; -#define glPixelTransferxOES glad_glPixelTransferxOES -typedef void (APIENTRYP PFNGLPIXELZOOMXOESPROC)(GLfixed xfactor, GLfixed yfactor); -GLAPI PFNGLPIXELZOOMXOESPROC glad_glPixelZoomxOES; -#define glPixelZoomxOES glad_glPixelZoomxOES -typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESXOESPROC)(GLsizei n, const GLuint *textures, const GLfixed *priorities); -GLAPI PFNGLPRIORITIZETEXTURESXOESPROC glad_glPrioritizeTexturesxOES; -#define glPrioritizeTexturesxOES glad_glPrioritizeTexturesxOES -typedef void (APIENTRYP PFNGLRASTERPOS2XOESPROC)(GLfixed x, GLfixed y); -GLAPI PFNGLRASTERPOS2XOESPROC glad_glRasterPos2xOES; -#define glRasterPos2xOES glad_glRasterPos2xOES -typedef void (APIENTRYP PFNGLRASTERPOS2XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLRASTERPOS2XVOESPROC glad_glRasterPos2xvOES; -#define glRasterPos2xvOES glad_glRasterPos2xvOES -typedef void (APIENTRYP PFNGLRASTERPOS3XOESPROC)(GLfixed x, GLfixed y, GLfixed z); -GLAPI PFNGLRASTERPOS3XOESPROC glad_glRasterPos3xOES; -#define glRasterPos3xOES glad_glRasterPos3xOES -typedef void (APIENTRYP PFNGLRASTERPOS3XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLRASTERPOS3XVOESPROC glad_glRasterPos3xvOES; -#define glRasterPos3xvOES glad_glRasterPos3xvOES -typedef void (APIENTRYP PFNGLRASTERPOS4XOESPROC)(GLfixed x, GLfixed y, GLfixed z, GLfixed w); -GLAPI PFNGLRASTERPOS4XOESPROC glad_glRasterPos4xOES; -#define glRasterPos4xOES glad_glRasterPos4xOES -typedef void (APIENTRYP PFNGLRASTERPOS4XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLRASTERPOS4XVOESPROC glad_glRasterPos4xvOES; -#define glRasterPos4xvOES glad_glRasterPos4xvOES -typedef void (APIENTRYP PFNGLRECTXOESPROC)(GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2); -GLAPI PFNGLRECTXOESPROC glad_glRectxOES; -#define glRectxOES glad_glRectxOES -typedef void (APIENTRYP PFNGLRECTXVOESPROC)(const GLfixed *v1, const GLfixed *v2); -GLAPI PFNGLRECTXVOESPROC glad_glRectxvOES; -#define glRectxvOES glad_glRectxvOES -typedef void (APIENTRYP PFNGLTEXCOORD1XOESPROC)(GLfixed s); -GLAPI PFNGLTEXCOORD1XOESPROC glad_glTexCoord1xOES; -#define glTexCoord1xOES glad_glTexCoord1xOES -typedef void (APIENTRYP PFNGLTEXCOORD1XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLTEXCOORD1XVOESPROC glad_glTexCoord1xvOES; -#define glTexCoord1xvOES glad_glTexCoord1xvOES -typedef void (APIENTRYP PFNGLTEXCOORD2XOESPROC)(GLfixed s, GLfixed t); -GLAPI PFNGLTEXCOORD2XOESPROC glad_glTexCoord2xOES; -#define glTexCoord2xOES glad_glTexCoord2xOES -typedef void (APIENTRYP PFNGLTEXCOORD2XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLTEXCOORD2XVOESPROC glad_glTexCoord2xvOES; -#define glTexCoord2xvOES glad_glTexCoord2xvOES -typedef void (APIENTRYP PFNGLTEXCOORD3XOESPROC)(GLfixed s, GLfixed t, GLfixed r); -GLAPI PFNGLTEXCOORD3XOESPROC glad_glTexCoord3xOES; -#define glTexCoord3xOES glad_glTexCoord3xOES -typedef void (APIENTRYP PFNGLTEXCOORD3XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLTEXCOORD3XVOESPROC glad_glTexCoord3xvOES; -#define glTexCoord3xvOES glad_glTexCoord3xvOES -typedef void (APIENTRYP PFNGLTEXCOORD4XOESPROC)(GLfixed s, GLfixed t, GLfixed r, GLfixed q); -GLAPI PFNGLTEXCOORD4XOESPROC glad_glTexCoord4xOES; -#define glTexCoord4xOES glad_glTexCoord4xOES -typedef void (APIENTRYP PFNGLTEXCOORD4XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLTEXCOORD4XVOESPROC glad_glTexCoord4xvOES; -#define glTexCoord4xvOES glad_glTexCoord4xvOES -typedef void (APIENTRYP PFNGLTEXGENXOESPROC)(GLenum coord, GLenum pname, GLfixed param); -GLAPI PFNGLTEXGENXOESPROC glad_glTexGenxOES; -#define glTexGenxOES glad_glTexGenxOES -typedef void (APIENTRYP PFNGLTEXGENXVOESPROC)(GLenum coord, GLenum pname, const GLfixed *params); -GLAPI PFNGLTEXGENXVOESPROC glad_glTexGenxvOES; -#define glTexGenxvOES glad_glTexGenxvOES -typedef void (APIENTRYP PFNGLVERTEX2XOESPROC)(GLfixed x); -GLAPI PFNGLVERTEX2XOESPROC glad_glVertex2xOES; -#define glVertex2xOES glad_glVertex2xOES -typedef void (APIENTRYP PFNGLVERTEX2XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLVERTEX2XVOESPROC glad_glVertex2xvOES; -#define glVertex2xvOES glad_glVertex2xvOES -typedef void (APIENTRYP PFNGLVERTEX3XOESPROC)(GLfixed x, GLfixed y); -GLAPI PFNGLVERTEX3XOESPROC glad_glVertex3xOES; -#define glVertex3xOES glad_glVertex3xOES -typedef void (APIENTRYP PFNGLVERTEX3XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLVERTEX3XVOESPROC glad_glVertex3xvOES; -#define glVertex3xvOES glad_glVertex3xvOES -typedef void (APIENTRYP PFNGLVERTEX4XOESPROC)(GLfixed x, GLfixed y, GLfixed z); -GLAPI PFNGLVERTEX4XOESPROC glad_glVertex4xOES; -#define glVertex4xOES glad_glVertex4xOES -typedef void (APIENTRYP PFNGLVERTEX4XVOESPROC)(const GLfixed *coords); -GLAPI PFNGLVERTEX4XVOESPROC glad_glVertex4xvOES; -#define glVertex4xvOES glad_glVertex4xvOES -#endif -#ifndef GL_OES_query_matrix -#define GL_OES_query_matrix 1 -GLAPI int GLAD_GL_OES_query_matrix; -typedef GLbitfield (APIENTRYP PFNGLQUERYMATRIXXOESPROC)(GLfixed *mantissa, GLint *exponent); -GLAPI PFNGLQUERYMATRIXXOESPROC glad_glQueryMatrixxOES; -#define glQueryMatrixxOES glad_glQueryMatrixxOES -#endif -#ifndef GL_OES_read_format -#define GL_OES_read_format 1 -GLAPI int GLAD_GL_OES_read_format; -#endif -#ifndef GL_OES_single_precision -#define GL_OES_single_precision 1 -GLAPI int GLAD_GL_OES_single_precision; -typedef void (APIENTRYP PFNGLCLEARDEPTHFOESPROC)(GLclampf depth); -GLAPI PFNGLCLEARDEPTHFOESPROC glad_glClearDepthfOES; -#define glClearDepthfOES glad_glClearDepthfOES -typedef void (APIENTRYP PFNGLCLIPPLANEFOESPROC)(GLenum plane, const GLfloat *equation); -GLAPI PFNGLCLIPPLANEFOESPROC glad_glClipPlanefOES; -#define glClipPlanefOES glad_glClipPlanefOES -typedef void (APIENTRYP PFNGLDEPTHRANGEFOESPROC)(GLclampf n, GLclampf f); -GLAPI PFNGLDEPTHRANGEFOESPROC glad_glDepthRangefOES; -#define glDepthRangefOES glad_glDepthRangefOES -typedef void (APIENTRYP PFNGLFRUSTUMFOESPROC)(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -GLAPI PFNGLFRUSTUMFOESPROC glad_glFrustumfOES; -#define glFrustumfOES glad_glFrustumfOES -typedef void (APIENTRYP PFNGLGETCLIPPLANEFOESPROC)(GLenum plane, GLfloat *equation); -GLAPI PFNGLGETCLIPPLANEFOESPROC glad_glGetClipPlanefOES; -#define glGetClipPlanefOES glad_glGetClipPlanefOES -typedef void (APIENTRYP PFNGLORTHOFOESPROC)(GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f); -GLAPI PFNGLORTHOFOESPROC glad_glOrthofOES; -#define glOrthofOES glad_glOrthofOES -#endif -#ifndef GL_OML_interlace -#define GL_OML_interlace 1 -GLAPI int GLAD_GL_OML_interlace; -#endif -#ifndef GL_OML_resample -#define GL_OML_resample 1 -GLAPI int GLAD_GL_OML_resample; -#endif -#ifndef GL_OML_subsample -#define GL_OML_subsample 1 -GLAPI int GLAD_GL_OML_subsample; -#endif -#ifndef GL_OVR_multiview -#define GL_OVR_multiview 1 -GLAPI int GLAD_GL_OVR_multiview; -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews); -GLAPI PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC glad_glFramebufferTextureMultiviewOVR; -#define glFramebufferTextureMultiviewOVR glad_glFramebufferTextureMultiviewOVR -#endif -#ifndef GL_OVR_multiview2 -#define GL_OVR_multiview2 1 -GLAPI int GLAD_GL_OVR_multiview2; -#endif -#ifndef GL_PGI_misc_hints -#define GL_PGI_misc_hints 1 -GLAPI int GLAD_GL_PGI_misc_hints; -typedef void (APIENTRYP PFNGLHINTPGIPROC)(GLenum target, GLint mode); -GLAPI PFNGLHINTPGIPROC glad_glHintPGI; -#define glHintPGI glad_glHintPGI -#endif -#ifndef GL_PGI_vertex_hints -#define GL_PGI_vertex_hints 1 -GLAPI int GLAD_GL_PGI_vertex_hints; -#endif -#ifndef GL_REND_screen_coordinates -#define GL_REND_screen_coordinates 1 -GLAPI int GLAD_GL_REND_screen_coordinates; -#endif -#ifndef GL_S3_s3tc -#define GL_S3_s3tc 1 -GLAPI int GLAD_GL_S3_s3tc; -#endif -#ifndef GL_SGIS_detail_texture -#define GL_SGIS_detail_texture 1 -GLAPI int GLAD_GL_SGIS_detail_texture; -typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC)(GLenum target, GLsizei n, const GLfloat *points); -GLAPI PFNGLDETAILTEXFUNCSGISPROC glad_glDetailTexFuncSGIS; -#define glDetailTexFuncSGIS glad_glDetailTexFuncSGIS -typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC)(GLenum target, GLfloat *points); -GLAPI PFNGLGETDETAILTEXFUNCSGISPROC glad_glGetDetailTexFuncSGIS; -#define glGetDetailTexFuncSGIS glad_glGetDetailTexFuncSGIS -#endif -#ifndef GL_SGIS_fog_function -#define GL_SGIS_fog_function 1 -GLAPI int GLAD_GL_SGIS_fog_function; -typedef void (APIENTRYP PFNGLFOGFUNCSGISPROC)(GLsizei n, const GLfloat *points); -GLAPI PFNGLFOGFUNCSGISPROC glad_glFogFuncSGIS; -#define glFogFuncSGIS glad_glFogFuncSGIS -typedef void (APIENTRYP PFNGLGETFOGFUNCSGISPROC)(GLfloat *points); -GLAPI PFNGLGETFOGFUNCSGISPROC glad_glGetFogFuncSGIS; -#define glGetFogFuncSGIS glad_glGetFogFuncSGIS -#endif -#ifndef GL_SGIS_generate_mipmap -#define GL_SGIS_generate_mipmap 1 -GLAPI int GLAD_GL_SGIS_generate_mipmap; -#endif -#ifndef GL_SGIS_multisample -#define GL_SGIS_multisample 1 -GLAPI int GLAD_GL_SGIS_multisample; -typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC)(GLclampf value, GLboolean invert); -GLAPI PFNGLSAMPLEMASKSGISPROC glad_glSampleMaskSGIS; -#define glSampleMaskSGIS glad_glSampleMaskSGIS -typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC)(GLenum pattern); -GLAPI PFNGLSAMPLEPATTERNSGISPROC glad_glSamplePatternSGIS; -#define glSamplePatternSGIS glad_glSamplePatternSGIS -#endif -#ifndef GL_SGIS_pixel_texture -#define GL_SGIS_pixel_texture 1 -GLAPI int GLAD_GL_SGIS_pixel_texture; -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC)(GLenum pname, GLint param); -GLAPI PFNGLPIXELTEXGENPARAMETERISGISPROC glad_glPixelTexGenParameteriSGIS; -#define glPixelTexGenParameteriSGIS glad_glPixelTexGenParameteriSGIS -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC)(GLenum pname, const GLint *params); -GLAPI PFNGLPIXELTEXGENPARAMETERIVSGISPROC glad_glPixelTexGenParameterivSGIS; -#define glPixelTexGenParameterivSGIS glad_glPixelTexGenParameterivSGIS -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPIXELTEXGENPARAMETERFSGISPROC glad_glPixelTexGenParameterfSGIS; -#define glPixelTexGenParameterfSGIS glad_glPixelTexGenParameterfSGIS -typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLPIXELTEXGENPARAMETERFVSGISPROC glad_glPixelTexGenParameterfvSGIS; -#define glPixelTexGenParameterfvSGIS glad_glPixelTexGenParameterfvSGIS -typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC)(GLenum pname, GLint *params); -GLAPI PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC glad_glGetPixelTexGenParameterivSGIS; -#define glGetPixelTexGenParameterivSGIS glad_glGetPixelTexGenParameterivSGIS -typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC)(GLenum pname, GLfloat *params); -GLAPI PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC glad_glGetPixelTexGenParameterfvSGIS; -#define glGetPixelTexGenParameterfvSGIS glad_glGetPixelTexGenParameterfvSGIS -#endif -#ifndef GL_SGIS_point_line_texgen -#define GL_SGIS_point_line_texgen 1 -GLAPI int GLAD_GL_SGIS_point_line_texgen; -#endif -#ifndef GL_SGIS_point_parameters -#define GL_SGIS_point_parameters 1 -GLAPI int GLAD_GL_SGIS_point_parameters; -typedef void (APIENTRYP PFNGLPOINTPARAMETERFSGISPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLPOINTPARAMETERFSGISPROC glad_glPointParameterfSGIS; -#define glPointParameterfSGIS glad_glPointParameterfSGIS -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVSGISPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLPOINTPARAMETERFVSGISPROC glad_glPointParameterfvSGIS; -#define glPointParameterfvSGIS glad_glPointParameterfvSGIS -#endif -#ifndef GL_SGIS_sharpen_texture -#define GL_SGIS_sharpen_texture 1 -GLAPI int GLAD_GL_SGIS_sharpen_texture; -typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC)(GLenum target, GLsizei n, const GLfloat *points); -GLAPI PFNGLSHARPENTEXFUNCSGISPROC glad_glSharpenTexFuncSGIS; -#define glSharpenTexFuncSGIS glad_glSharpenTexFuncSGIS -typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC)(GLenum target, GLfloat *points); -GLAPI PFNGLGETSHARPENTEXFUNCSGISPROC glad_glGetSharpenTexFuncSGIS; -#define glGetSharpenTexFuncSGIS glad_glGetSharpenTexFuncSGIS -#endif -#ifndef GL_SGIS_texture4D -#define GL_SGIS_texture4D 1 -GLAPI int GLAD_GL_SGIS_texture4D; -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 void *pixels); -GLAPI PFNGLTEXIMAGE4DSGISPROC glad_glTexImage4DSGIS; -#define glTexImage4DSGIS glad_glTexImage4DSGIS -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 void *pixels); -GLAPI PFNGLTEXSUBIMAGE4DSGISPROC glad_glTexSubImage4DSGIS; -#define glTexSubImage4DSGIS glad_glTexSubImage4DSGIS -#endif -#ifndef GL_SGIS_texture_border_clamp -#define GL_SGIS_texture_border_clamp 1 -GLAPI int GLAD_GL_SGIS_texture_border_clamp; -#endif -#ifndef GL_SGIS_texture_color_mask -#define GL_SGIS_texture_color_mask 1 -GLAPI int GLAD_GL_SGIS_texture_color_mask; -typedef void (APIENTRYP PFNGLTEXTURECOLORMASKSGISPROC)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -GLAPI PFNGLTEXTURECOLORMASKSGISPROC glad_glTextureColorMaskSGIS; -#define glTextureColorMaskSGIS glad_glTextureColorMaskSGIS -#endif -#ifndef GL_SGIS_texture_edge_clamp -#define GL_SGIS_texture_edge_clamp 1 -GLAPI int GLAD_GL_SGIS_texture_edge_clamp; -#endif -#ifndef GL_SGIS_texture_filter4 -#define GL_SGIS_texture_filter4 1 -GLAPI int GLAD_GL_SGIS_texture_filter4; -typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC)(GLenum target, GLenum filter, GLfloat *weights); -GLAPI PFNGLGETTEXFILTERFUNCSGISPROC glad_glGetTexFilterFuncSGIS; -#define glGetTexFilterFuncSGIS glad_glGetTexFilterFuncSGIS -typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC)(GLenum target, GLenum filter, GLsizei n, const GLfloat *weights); -GLAPI PFNGLTEXFILTERFUNCSGISPROC glad_glTexFilterFuncSGIS; -#define glTexFilterFuncSGIS glad_glTexFilterFuncSGIS -#endif -#ifndef GL_SGIS_texture_lod -#define GL_SGIS_texture_lod 1 -GLAPI int GLAD_GL_SGIS_texture_lod; -#endif -#ifndef GL_SGIS_texture_select -#define GL_SGIS_texture_select 1 -GLAPI int GLAD_GL_SGIS_texture_select; -#endif -#ifndef GL_SGIX_async -#define GL_SGIX_async 1 -GLAPI int GLAD_GL_SGIX_async; -typedef void (APIENTRYP PFNGLASYNCMARKERSGIXPROC)(GLuint marker); -GLAPI PFNGLASYNCMARKERSGIXPROC glad_glAsyncMarkerSGIX; -#define glAsyncMarkerSGIX glad_glAsyncMarkerSGIX -typedef GLint (APIENTRYP PFNGLFINISHASYNCSGIXPROC)(GLuint *markerp); -GLAPI PFNGLFINISHASYNCSGIXPROC glad_glFinishAsyncSGIX; -#define glFinishAsyncSGIX glad_glFinishAsyncSGIX -typedef GLint (APIENTRYP PFNGLPOLLASYNCSGIXPROC)(GLuint *markerp); -GLAPI PFNGLPOLLASYNCSGIXPROC glad_glPollAsyncSGIX; -#define glPollAsyncSGIX glad_glPollAsyncSGIX -typedef GLuint (APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC)(GLsizei range); -GLAPI PFNGLGENASYNCMARKERSSGIXPROC glad_glGenAsyncMarkersSGIX; -#define glGenAsyncMarkersSGIX glad_glGenAsyncMarkersSGIX -typedef void (APIENTRYP PFNGLDELETEASYNCMARKERSSGIXPROC)(GLuint marker, GLsizei range); -GLAPI PFNGLDELETEASYNCMARKERSSGIXPROC glad_glDeleteAsyncMarkersSGIX; -#define glDeleteAsyncMarkersSGIX glad_glDeleteAsyncMarkersSGIX -typedef GLboolean (APIENTRYP PFNGLISASYNCMARKERSGIXPROC)(GLuint marker); -GLAPI PFNGLISASYNCMARKERSGIXPROC glad_glIsAsyncMarkerSGIX; -#define glIsAsyncMarkerSGIX glad_glIsAsyncMarkerSGIX -#endif -#ifndef GL_SGIX_async_histogram -#define GL_SGIX_async_histogram 1 -GLAPI int GLAD_GL_SGIX_async_histogram; -#endif -#ifndef GL_SGIX_async_pixel -#define GL_SGIX_async_pixel 1 -GLAPI int GLAD_GL_SGIX_async_pixel; -#endif -#ifndef GL_SGIX_blend_alpha_minmax -#define GL_SGIX_blend_alpha_minmax 1 -GLAPI int GLAD_GL_SGIX_blend_alpha_minmax; -#endif -#ifndef GL_SGIX_calligraphic_fragment -#define GL_SGIX_calligraphic_fragment 1 -GLAPI int GLAD_GL_SGIX_calligraphic_fragment; -#endif -#ifndef GL_SGIX_clipmap -#define GL_SGIX_clipmap 1 -GLAPI int GLAD_GL_SGIX_clipmap; -#endif -#ifndef GL_SGIX_convolution_accuracy -#define GL_SGIX_convolution_accuracy 1 -GLAPI int GLAD_GL_SGIX_convolution_accuracy; -#endif -#ifndef GL_SGIX_depth_pass_instrument -#define GL_SGIX_depth_pass_instrument 1 -GLAPI int GLAD_GL_SGIX_depth_pass_instrument; -#endif -#ifndef GL_SGIX_depth_texture -#define GL_SGIX_depth_texture 1 -GLAPI int GLAD_GL_SGIX_depth_texture; -#endif -#ifndef GL_SGIX_flush_raster -#define GL_SGIX_flush_raster 1 -GLAPI int GLAD_GL_SGIX_flush_raster; -typedef void (APIENTRYP PFNGLFLUSHRASTERSGIXPROC)(void); -GLAPI PFNGLFLUSHRASTERSGIXPROC glad_glFlushRasterSGIX; -#define glFlushRasterSGIX glad_glFlushRasterSGIX -#endif -#ifndef GL_SGIX_fog_offset -#define GL_SGIX_fog_offset 1 -GLAPI int GLAD_GL_SGIX_fog_offset; -#endif -#ifndef GL_SGIX_fragment_lighting -#define GL_SGIX_fragment_lighting 1 -GLAPI int GLAD_GL_SGIX_fragment_lighting; -typedef void (APIENTRYP PFNGLFRAGMENTCOLORMATERIALSGIXPROC)(GLenum face, GLenum mode); -GLAPI PFNGLFRAGMENTCOLORMATERIALSGIXPROC glad_glFragmentColorMaterialSGIX; -#define glFragmentColorMaterialSGIX glad_glFragmentColorMaterialSGIX -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFSGIXPROC)(GLenum light, GLenum pname, GLfloat param); -GLAPI PFNGLFRAGMENTLIGHTFSGIXPROC glad_glFragmentLightfSGIX; -#define glFragmentLightfSGIX glad_glFragmentLightfSGIX -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTFVSGIXPROC)(GLenum light, GLenum pname, const GLfloat *params); -GLAPI PFNGLFRAGMENTLIGHTFVSGIXPROC glad_glFragmentLightfvSGIX; -#define glFragmentLightfvSGIX glad_glFragmentLightfvSGIX -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTISGIXPROC)(GLenum light, GLenum pname, GLint param); -GLAPI PFNGLFRAGMENTLIGHTISGIXPROC glad_glFragmentLightiSGIX; -#define glFragmentLightiSGIX glad_glFragmentLightiSGIX -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTIVSGIXPROC)(GLenum light, GLenum pname, const GLint *params); -GLAPI PFNGLFRAGMENTLIGHTIVSGIXPROC glad_glFragmentLightivSGIX; -#define glFragmentLightivSGIX glad_glFragmentLightivSGIX -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFSGIXPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLFRAGMENTLIGHTMODELFSGIXPROC glad_glFragmentLightModelfSGIX; -#define glFragmentLightModelfSGIX glad_glFragmentLightModelfSGIX -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELFVSGIXPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLFRAGMENTLIGHTMODELFVSGIXPROC glad_glFragmentLightModelfvSGIX; -#define glFragmentLightModelfvSGIX glad_glFragmentLightModelfvSGIX -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELISGIXPROC)(GLenum pname, GLint param); -GLAPI PFNGLFRAGMENTLIGHTMODELISGIXPROC glad_glFragmentLightModeliSGIX; -#define glFragmentLightModeliSGIX glad_glFragmentLightModeliSGIX -typedef void (APIENTRYP PFNGLFRAGMENTLIGHTMODELIVSGIXPROC)(GLenum pname, const GLint *params); -GLAPI PFNGLFRAGMENTLIGHTMODELIVSGIXPROC glad_glFragmentLightModelivSGIX; -#define glFragmentLightModelivSGIX glad_glFragmentLightModelivSGIX -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFSGIXPROC)(GLenum face, GLenum pname, GLfloat param); -GLAPI PFNGLFRAGMENTMATERIALFSGIXPROC glad_glFragmentMaterialfSGIX; -#define glFragmentMaterialfSGIX glad_glFragmentMaterialfSGIX -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALFVSGIXPROC)(GLenum face, GLenum pname, const GLfloat *params); -GLAPI PFNGLFRAGMENTMATERIALFVSGIXPROC glad_glFragmentMaterialfvSGIX; -#define glFragmentMaterialfvSGIX glad_glFragmentMaterialfvSGIX -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALISGIXPROC)(GLenum face, GLenum pname, GLint param); -GLAPI PFNGLFRAGMENTMATERIALISGIXPROC glad_glFragmentMaterialiSGIX; -#define glFragmentMaterialiSGIX glad_glFragmentMaterialiSGIX -typedef void (APIENTRYP PFNGLFRAGMENTMATERIALIVSGIXPROC)(GLenum face, GLenum pname, const GLint *params); -GLAPI PFNGLFRAGMENTMATERIALIVSGIXPROC glad_glFragmentMaterialivSGIX; -#define glFragmentMaterialivSGIX glad_glFragmentMaterialivSGIX -typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTFVSGIXPROC)(GLenum light, GLenum pname, GLfloat *params); -GLAPI PFNGLGETFRAGMENTLIGHTFVSGIXPROC glad_glGetFragmentLightfvSGIX; -#define glGetFragmentLightfvSGIX glad_glGetFragmentLightfvSGIX -typedef void (APIENTRYP PFNGLGETFRAGMENTLIGHTIVSGIXPROC)(GLenum light, GLenum pname, GLint *params); -GLAPI PFNGLGETFRAGMENTLIGHTIVSGIXPROC glad_glGetFragmentLightivSGIX; -#define glGetFragmentLightivSGIX glad_glGetFragmentLightivSGIX -typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALFVSGIXPROC)(GLenum face, GLenum pname, GLfloat *params); -GLAPI PFNGLGETFRAGMENTMATERIALFVSGIXPROC glad_glGetFragmentMaterialfvSGIX; -#define glGetFragmentMaterialfvSGIX glad_glGetFragmentMaterialfvSGIX -typedef void (APIENTRYP PFNGLGETFRAGMENTMATERIALIVSGIXPROC)(GLenum face, GLenum pname, GLint *params); -GLAPI PFNGLGETFRAGMENTMATERIALIVSGIXPROC glad_glGetFragmentMaterialivSGIX; -#define glGetFragmentMaterialivSGIX glad_glGetFragmentMaterialivSGIX -typedef void (APIENTRYP PFNGLLIGHTENVISGIXPROC)(GLenum pname, GLint param); -GLAPI PFNGLLIGHTENVISGIXPROC glad_glLightEnviSGIX; -#define glLightEnviSGIX glad_glLightEnviSGIX -#endif -#ifndef GL_SGIX_framezoom -#define GL_SGIX_framezoom 1 -GLAPI int GLAD_GL_SGIX_framezoom; -typedef void (APIENTRYP PFNGLFRAMEZOOMSGIXPROC)(GLint factor); -GLAPI PFNGLFRAMEZOOMSGIXPROC glad_glFrameZoomSGIX; -#define glFrameZoomSGIX glad_glFrameZoomSGIX -#endif -#ifndef GL_SGIX_igloo_interface -#define GL_SGIX_igloo_interface 1 -GLAPI int GLAD_GL_SGIX_igloo_interface; -typedef void (APIENTRYP PFNGLIGLOOINTERFACESGIXPROC)(GLenum pname, const void *params); -GLAPI PFNGLIGLOOINTERFACESGIXPROC glad_glIglooInterfaceSGIX; -#define glIglooInterfaceSGIX glad_glIglooInterfaceSGIX -#endif -#ifndef GL_SGIX_instruments -#define GL_SGIX_instruments 1 -GLAPI int GLAD_GL_SGIX_instruments; -typedef GLint (APIENTRYP PFNGLGETINSTRUMENTSSGIXPROC)(void); -GLAPI PFNGLGETINSTRUMENTSSGIXPROC glad_glGetInstrumentsSGIX; -#define glGetInstrumentsSGIX glad_glGetInstrumentsSGIX -typedef void (APIENTRYP PFNGLINSTRUMENTSBUFFERSGIXPROC)(GLsizei size, GLint *buffer); -GLAPI PFNGLINSTRUMENTSBUFFERSGIXPROC glad_glInstrumentsBufferSGIX; -#define glInstrumentsBufferSGIX glad_glInstrumentsBufferSGIX -typedef GLint (APIENTRYP PFNGLPOLLINSTRUMENTSSGIXPROC)(GLint *marker_p); -GLAPI PFNGLPOLLINSTRUMENTSSGIXPROC glad_glPollInstrumentsSGIX; -#define glPollInstrumentsSGIX glad_glPollInstrumentsSGIX -typedef void (APIENTRYP PFNGLREADINSTRUMENTSSGIXPROC)(GLint marker); -GLAPI PFNGLREADINSTRUMENTSSGIXPROC glad_glReadInstrumentsSGIX; -#define glReadInstrumentsSGIX glad_glReadInstrumentsSGIX -typedef void (APIENTRYP PFNGLSTARTINSTRUMENTSSGIXPROC)(void); -GLAPI PFNGLSTARTINSTRUMENTSSGIXPROC glad_glStartInstrumentsSGIX; -#define glStartInstrumentsSGIX glad_glStartInstrumentsSGIX -typedef void (APIENTRYP PFNGLSTOPINSTRUMENTSSGIXPROC)(GLint marker); -GLAPI PFNGLSTOPINSTRUMENTSSGIXPROC glad_glStopInstrumentsSGIX; -#define glStopInstrumentsSGIX glad_glStopInstrumentsSGIX -#endif -#ifndef GL_SGIX_interlace -#define GL_SGIX_interlace 1 -GLAPI int GLAD_GL_SGIX_interlace; -#endif -#ifndef GL_SGIX_ir_instrument1 -#define GL_SGIX_ir_instrument1 1 -GLAPI int GLAD_GL_SGIX_ir_instrument1; -#endif -#ifndef GL_SGIX_list_priority -#define GL_SGIX_list_priority 1 -GLAPI int GLAD_GL_SGIX_list_priority; -typedef void (APIENTRYP PFNGLGETLISTPARAMETERFVSGIXPROC)(GLuint list, GLenum pname, GLfloat *params); -GLAPI PFNGLGETLISTPARAMETERFVSGIXPROC glad_glGetListParameterfvSGIX; -#define glGetListParameterfvSGIX glad_glGetListParameterfvSGIX -typedef void (APIENTRYP PFNGLGETLISTPARAMETERIVSGIXPROC)(GLuint list, GLenum pname, GLint *params); -GLAPI PFNGLGETLISTPARAMETERIVSGIXPROC glad_glGetListParameterivSGIX; -#define glGetListParameterivSGIX glad_glGetListParameterivSGIX -typedef void (APIENTRYP PFNGLLISTPARAMETERFSGIXPROC)(GLuint list, GLenum pname, GLfloat param); -GLAPI PFNGLLISTPARAMETERFSGIXPROC glad_glListParameterfSGIX; -#define glListParameterfSGIX glad_glListParameterfSGIX -typedef void (APIENTRYP PFNGLLISTPARAMETERFVSGIXPROC)(GLuint list, GLenum pname, const GLfloat *params); -GLAPI PFNGLLISTPARAMETERFVSGIXPROC glad_glListParameterfvSGIX; -#define glListParameterfvSGIX glad_glListParameterfvSGIX -typedef void (APIENTRYP PFNGLLISTPARAMETERISGIXPROC)(GLuint list, GLenum pname, GLint param); -GLAPI PFNGLLISTPARAMETERISGIXPROC glad_glListParameteriSGIX; -#define glListParameteriSGIX glad_glListParameteriSGIX -typedef void (APIENTRYP PFNGLLISTPARAMETERIVSGIXPROC)(GLuint list, GLenum pname, const GLint *params); -GLAPI PFNGLLISTPARAMETERIVSGIXPROC glad_glListParameterivSGIX; -#define glListParameterivSGIX glad_glListParameterivSGIX -#endif -#ifndef GL_SGIX_pixel_texture -#define GL_SGIX_pixel_texture 1 -GLAPI int GLAD_GL_SGIX_pixel_texture; -typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC)(GLenum mode); -GLAPI PFNGLPIXELTEXGENSGIXPROC glad_glPixelTexGenSGIX; -#define glPixelTexGenSGIX glad_glPixelTexGenSGIX -#endif -#ifndef GL_SGIX_pixel_tiles -#define GL_SGIX_pixel_tiles 1 -GLAPI int GLAD_GL_SGIX_pixel_tiles; -#endif -#ifndef GL_SGIX_polynomial_ffd -#define GL_SGIX_polynomial_ffd 1 -GLAPI int GLAD_GL_SGIX_polynomial_ffd; -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); -GLAPI PFNGLDEFORMATIONMAP3DSGIXPROC glad_glDeformationMap3dSGIX; -#define glDeformationMap3dSGIX glad_glDeformationMap3dSGIX -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); -GLAPI PFNGLDEFORMATIONMAP3FSGIXPROC glad_glDeformationMap3fSGIX; -#define glDeformationMap3fSGIX glad_glDeformationMap3fSGIX -typedef void (APIENTRYP PFNGLDEFORMSGIXPROC)(GLbitfield mask); -GLAPI PFNGLDEFORMSGIXPROC glad_glDeformSGIX; -#define glDeformSGIX glad_glDeformSGIX -typedef void (APIENTRYP PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC)(GLbitfield mask); -GLAPI PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC glad_glLoadIdentityDeformationMapSGIX; -#define glLoadIdentityDeformationMapSGIX glad_glLoadIdentityDeformationMapSGIX -#endif -#ifndef GL_SGIX_reference_plane -#define GL_SGIX_reference_plane 1 -GLAPI int GLAD_GL_SGIX_reference_plane; -typedef void (APIENTRYP PFNGLREFERENCEPLANESGIXPROC)(const GLdouble *equation); -GLAPI PFNGLREFERENCEPLANESGIXPROC glad_glReferencePlaneSGIX; -#define glReferencePlaneSGIX glad_glReferencePlaneSGIX -#endif -#ifndef GL_SGIX_resample -#define GL_SGIX_resample 1 -GLAPI int GLAD_GL_SGIX_resample; -#endif -#ifndef GL_SGIX_scalebias_hint -#define GL_SGIX_scalebias_hint 1 -GLAPI int GLAD_GL_SGIX_scalebias_hint; -#endif -#ifndef GL_SGIX_shadow -#define GL_SGIX_shadow 1 -GLAPI int GLAD_GL_SGIX_shadow; -#endif -#ifndef GL_SGIX_shadow_ambient -#define GL_SGIX_shadow_ambient 1 -GLAPI int GLAD_GL_SGIX_shadow_ambient; -#endif -#ifndef GL_SGIX_sprite -#define GL_SGIX_sprite 1 -GLAPI int GLAD_GL_SGIX_sprite; -typedef void (APIENTRYP PFNGLSPRITEPARAMETERFSGIXPROC)(GLenum pname, GLfloat param); -GLAPI PFNGLSPRITEPARAMETERFSGIXPROC glad_glSpriteParameterfSGIX; -#define glSpriteParameterfSGIX glad_glSpriteParameterfSGIX -typedef void (APIENTRYP PFNGLSPRITEPARAMETERFVSGIXPROC)(GLenum pname, const GLfloat *params); -GLAPI PFNGLSPRITEPARAMETERFVSGIXPROC glad_glSpriteParameterfvSGIX; -#define glSpriteParameterfvSGIX glad_glSpriteParameterfvSGIX -typedef void (APIENTRYP PFNGLSPRITEPARAMETERISGIXPROC)(GLenum pname, GLint param); -GLAPI PFNGLSPRITEPARAMETERISGIXPROC glad_glSpriteParameteriSGIX; -#define glSpriteParameteriSGIX glad_glSpriteParameteriSGIX -typedef void (APIENTRYP PFNGLSPRITEPARAMETERIVSGIXPROC)(GLenum pname, const GLint *params); -GLAPI PFNGLSPRITEPARAMETERIVSGIXPROC glad_glSpriteParameterivSGIX; -#define glSpriteParameterivSGIX glad_glSpriteParameterivSGIX -#endif -#ifndef GL_SGIX_subsample -#define GL_SGIX_subsample 1 -GLAPI int GLAD_GL_SGIX_subsample; -#endif -#ifndef GL_SGIX_tag_sample_buffer -#define GL_SGIX_tag_sample_buffer 1 -GLAPI int GLAD_GL_SGIX_tag_sample_buffer; -typedef void (APIENTRYP PFNGLTAGSAMPLEBUFFERSGIXPROC)(void); -GLAPI PFNGLTAGSAMPLEBUFFERSGIXPROC glad_glTagSampleBufferSGIX; -#define glTagSampleBufferSGIX glad_glTagSampleBufferSGIX -#endif -#ifndef GL_SGIX_texture_add_env -#define GL_SGIX_texture_add_env 1 -GLAPI int GLAD_GL_SGIX_texture_add_env; -#endif -#ifndef GL_SGIX_texture_coordinate_clamp -#define GL_SGIX_texture_coordinate_clamp 1 -GLAPI int GLAD_GL_SGIX_texture_coordinate_clamp; -#endif -#ifndef GL_SGIX_texture_lod_bias -#define GL_SGIX_texture_lod_bias 1 -GLAPI int GLAD_GL_SGIX_texture_lod_bias; -#endif -#ifndef GL_SGIX_texture_multi_buffer -#define GL_SGIX_texture_multi_buffer 1 -GLAPI int GLAD_GL_SGIX_texture_multi_buffer; -#endif -#ifndef GL_SGIX_texture_scale_bias -#define GL_SGIX_texture_scale_bias 1 -GLAPI int GLAD_GL_SGIX_texture_scale_bias; -#endif -#ifndef GL_SGIX_vertex_preclip -#define GL_SGIX_vertex_preclip 1 -GLAPI int GLAD_GL_SGIX_vertex_preclip; -#endif -#ifndef GL_SGIX_ycrcb -#define GL_SGIX_ycrcb 1 -GLAPI int GLAD_GL_SGIX_ycrcb; -#endif -#ifndef GL_SGIX_ycrcb_subsample -#define GL_SGIX_ycrcb_subsample 1 -GLAPI int GLAD_GL_SGIX_ycrcb_subsample; -#endif -#ifndef GL_SGIX_ycrcba -#define GL_SGIX_ycrcba 1 -GLAPI int GLAD_GL_SGIX_ycrcba; -#endif -#ifndef GL_SGI_color_matrix -#define GL_SGI_color_matrix 1 -GLAPI int GLAD_GL_SGI_color_matrix; -#endif -#ifndef GL_SGI_color_table -#define GL_SGI_color_table 1 -GLAPI int GLAD_GL_SGI_color_table; -typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table); -GLAPI PFNGLCOLORTABLESGIPROC glad_glColorTableSGI; -#define glColorTableSGI glad_glColorTableSGI -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC)(GLenum target, GLenum pname, const GLfloat *params); -GLAPI PFNGLCOLORTABLEPARAMETERFVSGIPROC glad_glColorTableParameterfvSGI; -#define glColorTableParameterfvSGI glad_glColorTableParameterfvSGI -typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLCOLORTABLEPARAMETERIVSGIPROC glad_glColorTableParameterivSGI; -#define glColorTableParameterivSGI glad_glColorTableParameterivSGI -typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC)(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); -GLAPI PFNGLCOPYCOLORTABLESGIPROC glad_glCopyColorTableSGI; -#define glCopyColorTableSGI glad_glCopyColorTableSGI -typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC)(GLenum target, GLenum format, GLenum type, void *table); -GLAPI PFNGLGETCOLORTABLESGIPROC glad_glGetColorTableSGI; -#define glGetColorTableSGI glad_glGetColorTableSGI -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC)(GLenum target, GLenum pname, GLfloat *params); -GLAPI PFNGLGETCOLORTABLEPARAMETERFVSGIPROC glad_glGetColorTableParameterfvSGI; -#define glGetColorTableParameterfvSGI glad_glGetColorTableParameterfvSGI -typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETCOLORTABLEPARAMETERIVSGIPROC glad_glGetColorTableParameterivSGI; -#define glGetColorTableParameterivSGI glad_glGetColorTableParameterivSGI -#endif -#ifndef GL_SGI_texture_color_table -#define GL_SGI_texture_color_table 1 -GLAPI int GLAD_GL_SGI_texture_color_table; -#endif -#ifndef GL_SUNX_constant_data -#define GL_SUNX_constant_data 1 -GLAPI int GLAD_GL_SUNX_constant_data; -typedef void (APIENTRYP PFNGLFINISHTEXTURESUNXPROC)(void); -GLAPI PFNGLFINISHTEXTURESUNXPROC glad_glFinishTextureSUNX; -#define glFinishTextureSUNX glad_glFinishTextureSUNX -#endif -#ifndef GL_SUN_convolution_border_modes -#define GL_SUN_convolution_border_modes 1 -GLAPI int GLAD_GL_SUN_convolution_border_modes; -#endif -#ifndef GL_SUN_global_alpha -#define GL_SUN_global_alpha 1 -GLAPI int GLAD_GL_SUN_global_alpha; -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORBSUNPROC)(GLbyte factor); -GLAPI PFNGLGLOBALALPHAFACTORBSUNPROC glad_glGlobalAlphaFactorbSUN; -#define glGlobalAlphaFactorbSUN glad_glGlobalAlphaFactorbSUN -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORSSUNPROC)(GLshort factor); -GLAPI PFNGLGLOBALALPHAFACTORSSUNPROC glad_glGlobalAlphaFactorsSUN; -#define glGlobalAlphaFactorsSUN glad_glGlobalAlphaFactorsSUN -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORISUNPROC)(GLint factor); -GLAPI PFNGLGLOBALALPHAFACTORISUNPROC glad_glGlobalAlphaFactoriSUN; -#define glGlobalAlphaFactoriSUN glad_glGlobalAlphaFactoriSUN -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORFSUNPROC)(GLfloat factor); -GLAPI PFNGLGLOBALALPHAFACTORFSUNPROC glad_glGlobalAlphaFactorfSUN; -#define glGlobalAlphaFactorfSUN glad_glGlobalAlphaFactorfSUN -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORDSUNPROC)(GLdouble factor); -GLAPI PFNGLGLOBALALPHAFACTORDSUNPROC glad_glGlobalAlphaFactordSUN; -#define glGlobalAlphaFactordSUN glad_glGlobalAlphaFactordSUN -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUBSUNPROC)(GLubyte factor); -GLAPI PFNGLGLOBALALPHAFACTORUBSUNPROC glad_glGlobalAlphaFactorubSUN; -#define glGlobalAlphaFactorubSUN glad_glGlobalAlphaFactorubSUN -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUSSUNPROC)(GLushort factor); -GLAPI PFNGLGLOBALALPHAFACTORUSSUNPROC glad_glGlobalAlphaFactorusSUN; -#define glGlobalAlphaFactorusSUN glad_glGlobalAlphaFactorusSUN -typedef void (APIENTRYP PFNGLGLOBALALPHAFACTORUISUNPROC)(GLuint factor); -GLAPI PFNGLGLOBALALPHAFACTORUISUNPROC glad_glGlobalAlphaFactoruiSUN; -#define glGlobalAlphaFactoruiSUN glad_glGlobalAlphaFactoruiSUN -#endif -#ifndef GL_SUN_mesh_array -#define GL_SUN_mesh_array 1 -GLAPI int GLAD_GL_SUN_mesh_array; -typedef void (APIENTRYP PFNGLDRAWMESHARRAYSSUNPROC)(GLenum mode, GLint first, GLsizei count, GLsizei width); -GLAPI PFNGLDRAWMESHARRAYSSUNPROC glad_glDrawMeshArraysSUN; -#define glDrawMeshArraysSUN glad_glDrawMeshArraysSUN -#endif -#ifndef GL_SUN_slice_accum -#define GL_SUN_slice_accum 1 -GLAPI int GLAD_GL_SUN_slice_accum; -#endif -#ifndef GL_SUN_triangle_list -#define GL_SUN_triangle_list 1 -GLAPI int GLAD_GL_SUN_triangle_list; -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUISUNPROC)(GLuint code); -GLAPI PFNGLREPLACEMENTCODEUISUNPROC glad_glReplacementCodeuiSUN; -#define glReplacementCodeuiSUN glad_glReplacementCodeuiSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSSUNPROC)(GLushort code); -GLAPI PFNGLREPLACEMENTCODEUSSUNPROC glad_glReplacementCodeusSUN; -#define glReplacementCodeusSUN glad_glReplacementCodeusSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBSUNPROC)(GLubyte code); -GLAPI PFNGLREPLACEMENTCODEUBSUNPROC glad_glReplacementCodeubSUN; -#define glReplacementCodeubSUN glad_glReplacementCodeubSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVSUNPROC)(const GLuint *code); -GLAPI PFNGLREPLACEMENTCODEUIVSUNPROC glad_glReplacementCodeuivSUN; -#define glReplacementCodeuivSUN glad_glReplacementCodeuivSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUSVSUNPROC)(const GLushort *code); -GLAPI PFNGLREPLACEMENTCODEUSVSUNPROC glad_glReplacementCodeusvSUN; -#define glReplacementCodeusvSUN glad_glReplacementCodeusvSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUBVSUNPROC)(const GLubyte *code); -GLAPI PFNGLREPLACEMENTCODEUBVSUNPROC glad_glReplacementCodeubvSUN; -#define glReplacementCodeubvSUN glad_glReplacementCodeubvSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEPOINTERSUNPROC)(GLenum type, GLsizei stride, const void **pointer); -GLAPI PFNGLREPLACEMENTCODEPOINTERSUNPROC glad_glReplacementCodePointerSUN; -#define glReplacementCodePointerSUN glad_glReplacementCodePointerSUN -#endif -#ifndef GL_SUN_vertex -#define GL_SUN_vertex 1 -GLAPI int GLAD_GL_SUN_vertex; -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FSUNPROC)(GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y); -GLAPI PFNGLCOLOR4UBVERTEX2FSUNPROC glad_glColor4ubVertex2fSUN; -#define glColor4ubVertex2fSUN glad_glColor4ubVertex2fSUN -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX2FVSUNPROC)(const GLubyte *c, const GLfloat *v); -GLAPI PFNGLCOLOR4UBVERTEX2FVSUNPROC glad_glColor4ubVertex2fvSUN; -#define glColor4ubVertex2fvSUN glad_glColor4ubVertex2fvSUN -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FSUNPROC)(GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLCOLOR4UBVERTEX3FSUNPROC glad_glColor4ubVertex3fSUN; -#define glColor4ubVertex3fSUN glad_glColor4ubVertex3fSUN -typedef void (APIENTRYP PFNGLCOLOR4UBVERTEX3FVSUNPROC)(const GLubyte *c, const GLfloat *v); -GLAPI PFNGLCOLOR4UBVERTEX3FVSUNPROC glad_glColor4ubVertex3fvSUN; -#define glColor4ubVertex3fvSUN glad_glColor4ubVertex3fvSUN -typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FSUNPROC)(GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLCOLOR3FVERTEX3FSUNPROC glad_glColor3fVertex3fSUN; -#define glColor3fVertex3fSUN glad_glColor3fVertex3fSUN -typedef void (APIENTRYP PFNGLCOLOR3FVERTEX3FVSUNPROC)(const GLfloat *c, const GLfloat *v); -GLAPI PFNGLCOLOR3FVERTEX3FVSUNPROC glad_glColor3fVertex3fvSUN; -#define glColor3fVertex3fvSUN glad_glColor3fVertex3fvSUN -typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FSUNPROC)(GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLNORMAL3FVERTEX3FSUNPROC glad_glNormal3fVertex3fSUN; -#define glNormal3fVertex3fSUN glad_glNormal3fVertex3fSUN -typedef void (APIENTRYP PFNGLNORMAL3FVERTEX3FVSUNPROC)(const GLfloat *n, const GLfloat *v); -GLAPI PFNGLNORMAL3FVERTEX3FVSUNPROC glad_glNormal3fVertex3fvSUN; -#define glNormal3fVertex3fvSUN glad_glNormal3fVertex3fvSUN -typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC)(GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC glad_glColor4fNormal3fVertex3fSUN; -#define glColor4fNormal3fVertex3fSUN glad_glColor4fNormal3fVertex3fSUN -typedef void (APIENTRYP PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC)(const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC glad_glColor4fNormal3fVertex3fvSUN; -#define glColor4fNormal3fVertex3fvSUN glad_glColor4fNormal3fVertex3fvSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FSUNPROC)(GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLTEXCOORD2FVERTEX3FSUNPROC glad_glTexCoord2fVertex3fSUN; -#define glTexCoord2fVertex3fSUN glad_glTexCoord2fVertex3fSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FVERTEX3FVSUNPROC)(const GLfloat *tc, const GLfloat *v); -GLAPI PFNGLTEXCOORD2FVERTEX3FVSUNPROC glad_glTexCoord2fVertex3fvSUN; -#define glTexCoord2fVertex3fvSUN glad_glTexCoord2fVertex3fvSUN -typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FSUNPROC)(GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI PFNGLTEXCOORD4FVERTEX4FSUNPROC glad_glTexCoord4fVertex4fSUN; -#define glTexCoord4fVertex4fSUN glad_glTexCoord4fVertex4fSUN -typedef void (APIENTRYP PFNGLTEXCOORD4FVERTEX4FVSUNPROC)(const GLfloat *tc, const GLfloat *v); -GLAPI PFNGLTEXCOORD4FVERTEX4FVSUNPROC glad_glTexCoord4fVertex4fvSUN; -#define glTexCoord4fVertex4fvSUN glad_glTexCoord4fVertex4fvSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC)(GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC glad_glTexCoord2fColor4ubVertex3fSUN; -#define glTexCoord2fColor4ubVertex3fSUN glad_glTexCoord2fColor4ubVertex3fSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC)(const GLfloat *tc, const GLubyte *c, const GLfloat *v); -GLAPI PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC glad_glTexCoord2fColor4ubVertex3fvSUN; -#define glTexCoord2fColor4ubVertex3fvSUN glad_glTexCoord2fColor4ubVertex3fvSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC)(GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC glad_glTexCoord2fColor3fVertex3fSUN; -#define glTexCoord2fColor3fVertex3fSUN glad_glTexCoord2fColor3fVertex3fSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC)(const GLfloat *tc, const GLfloat *c, const GLfloat *v); -GLAPI PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC glad_glTexCoord2fColor3fVertex3fvSUN; -#define glTexCoord2fColor3fVertex3fvSUN glad_glTexCoord2fColor3fVertex3fvSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC)(GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC glad_glTexCoord2fNormal3fVertex3fSUN; -#define glTexCoord2fNormal3fVertex3fSUN glad_glTexCoord2fNormal3fVertex3fSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC)(const GLfloat *tc, const GLfloat *n, const GLfloat *v); -GLAPI PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC glad_glTexCoord2fNormal3fVertex3fvSUN; -#define glTexCoord2fNormal3fVertex3fvSUN glad_glTexCoord2fNormal3fVertex3fvSUN -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); -GLAPI PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC glad_glTexCoord2fColor4fNormal3fVertex3fSUN; -#define glTexCoord2fColor4fNormal3fVertex3fSUN glad_glTexCoord2fColor4fNormal3fVertex3fSUN -typedef void (APIENTRYP PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC)(const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC glad_glTexCoord2fColor4fNormal3fVertex3fvSUN; -#define glTexCoord2fColor4fNormal3fVertex3fvSUN glad_glTexCoord2fColor4fNormal3fVertex3fvSUN -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); -GLAPI PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC glad_glTexCoord4fColor4fNormal3fVertex4fSUN; -#define glTexCoord4fColor4fNormal3fVertex4fSUN glad_glTexCoord4fColor4fNormal3fVertex4fSUN -typedef void (APIENTRYP PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC)(const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC glad_glTexCoord4fColor4fNormal3fVertex4fvSUN; -#define glTexCoord4fColor4fNormal3fVertex4fvSUN glad_glTexCoord4fColor4fNormal3fVertex4fvSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC)(GLuint rc, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC glad_glReplacementCodeuiVertex3fSUN; -#define glReplacementCodeuiVertex3fSUN glad_glReplacementCodeuiVertex3fSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC)(const GLuint *rc, const GLfloat *v); -GLAPI PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC glad_glReplacementCodeuiVertex3fvSUN; -#define glReplacementCodeuiVertex3fvSUN glad_glReplacementCodeuiVertex3fvSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC)(GLuint rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC glad_glReplacementCodeuiColor4ubVertex3fSUN; -#define glReplacementCodeuiColor4ubVertex3fSUN glad_glReplacementCodeuiColor4ubVertex3fSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC)(const GLuint *rc, const GLubyte *c, const GLfloat *v); -GLAPI PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC glad_glReplacementCodeuiColor4ubVertex3fvSUN; -#define glReplacementCodeuiColor4ubVertex3fvSUN glad_glReplacementCodeuiColor4ubVertex3fvSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC)(GLuint rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC glad_glReplacementCodeuiColor3fVertex3fSUN; -#define glReplacementCodeuiColor3fVertex3fSUN glad_glReplacementCodeuiColor3fVertex3fSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC)(const GLuint *rc, const GLfloat *c, const GLfloat *v); -GLAPI PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC glad_glReplacementCodeuiColor3fVertex3fvSUN; -#define glReplacementCodeuiColor3fVertex3fvSUN glad_glReplacementCodeuiColor3fVertex3fvSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC)(GLuint rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC glad_glReplacementCodeuiNormal3fVertex3fSUN; -#define glReplacementCodeuiNormal3fVertex3fSUN glad_glReplacementCodeuiNormal3fVertex3fSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC)(const GLuint *rc, const GLfloat *n, const GLfloat *v); -GLAPI PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC glad_glReplacementCodeuiNormal3fVertex3fvSUN; -#define glReplacementCodeuiNormal3fVertex3fvSUN glad_glReplacementCodeuiNormal3fVertex3fvSUN -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); -GLAPI PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC glad_glReplacementCodeuiColor4fNormal3fVertex3fSUN; -#define glReplacementCodeuiColor4fNormal3fVertex3fSUN glad_glReplacementCodeuiColor4fNormal3fVertex3fSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC)(const GLuint *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC glad_glReplacementCodeuiColor4fNormal3fVertex3fvSUN; -#define glReplacementCodeuiColor4fNormal3fVertex3fvSUN glad_glReplacementCodeuiColor4fNormal3fVertex3fvSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC)(GLuint rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC glad_glReplacementCodeuiTexCoord2fVertex3fSUN; -#define glReplacementCodeuiTexCoord2fVertex3fSUN glad_glReplacementCodeuiTexCoord2fVertex3fSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC)(const GLuint *rc, const GLfloat *tc, const GLfloat *v); -GLAPI PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC glad_glReplacementCodeuiTexCoord2fVertex3fvSUN; -#define glReplacementCodeuiTexCoord2fVertex3fvSUN glad_glReplacementCodeuiTexCoord2fVertex3fvSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC)(GLuint rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z); -GLAPI PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC glad_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN; -#define glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN glad_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC)(const GLuint *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v); -GLAPI PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC glad_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN; -#define glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN glad_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN -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); -GLAPI PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC glad_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN; -#define glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN glad_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN -typedef void (APIENTRYP PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC)(const GLuint *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v); -GLAPI PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC glad_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN; -#define glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN glad_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN -#endif -#ifndef GL_WIN_phong_shading -#define GL_WIN_phong_shading 1 -GLAPI int GLAD_GL_WIN_phong_shading; -#endif -#ifndef GL_WIN_specular_fog -#define GL_WIN_specular_fog 1 -GLAPI int GLAD_GL_WIN_specular_fog; -#endif -#ifndef GL_AMD_compressed_3DC_texture -#define GL_AMD_compressed_3DC_texture 1 -GLAPI int GLAD_GL_AMD_compressed_3DC_texture; -#endif -#ifndef GL_AMD_compressed_ATC_texture -#define GL_AMD_compressed_ATC_texture 1 -GLAPI int GLAD_GL_AMD_compressed_ATC_texture; -#endif -#ifndef GL_AMD_performance_monitor -#define GL_AMD_performance_monitor 1 -GLAPI int GLAD_GL_AMD_performance_monitor; -#endif -#ifndef GL_AMD_program_binary_Z400 -#define GL_AMD_program_binary_Z400 1 -GLAPI int GLAD_GL_AMD_program_binary_Z400; -#endif -#ifndef GL_ANDROID_extension_pack_es31a -#define GL_ANDROID_extension_pack_es31a 1 -GLAPI int GLAD_GL_ANDROID_extension_pack_es31a; -#endif -#ifndef GL_ANGLE_depth_texture -#define GL_ANGLE_depth_texture 1 -GLAPI int GLAD_GL_ANGLE_depth_texture; -#endif -#ifndef GL_ANGLE_framebuffer_blit -#define GL_ANGLE_framebuffer_blit 1 -GLAPI int GLAD_GL_ANGLE_framebuffer_blit; -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERANGLEPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNGLBLITFRAMEBUFFERANGLEPROC glad_glBlitFramebufferANGLE; -#define glBlitFramebufferANGLE glad_glBlitFramebufferANGLE -#endif -#ifndef GL_ANGLE_framebuffer_multisample -#define GL_ANGLE_framebuffer_multisample 1 -GLAPI int GLAD_GL_ANGLE_framebuffer_multisample; -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC glad_glRenderbufferStorageMultisampleANGLE; -#define glRenderbufferStorageMultisampleANGLE glad_glRenderbufferStorageMultisampleANGLE -#endif -#ifndef GL_ANGLE_instanced_arrays -#define GL_ANGLE_instanced_arrays 1 -GLAPI int GLAD_GL_ANGLE_instanced_arrays; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDANGLEPROC)(GLenum mode, GLint first, GLsizei count, GLsizei primcount); -GLAPI PFNGLDRAWARRAYSINSTANCEDANGLEPROC glad_glDrawArraysInstancedANGLE; -#define glDrawArraysInstancedANGLE glad_glDrawArraysInstancedANGLE -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDANGLEPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); -GLAPI PFNGLDRAWELEMENTSINSTANCEDANGLEPROC glad_glDrawElementsInstancedANGLE; -#define glDrawElementsInstancedANGLE glad_glDrawElementsInstancedANGLE -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORANGLEPROC)(GLuint index, GLuint divisor); -GLAPI PFNGLVERTEXATTRIBDIVISORANGLEPROC glad_glVertexAttribDivisorANGLE; -#define glVertexAttribDivisorANGLE glad_glVertexAttribDivisorANGLE -#endif -#ifndef GL_ANGLE_pack_reverse_row_order -#define GL_ANGLE_pack_reverse_row_order 1 -GLAPI int GLAD_GL_ANGLE_pack_reverse_row_order; -#endif -#ifndef GL_ANGLE_program_binary -#define GL_ANGLE_program_binary 1 -GLAPI int GLAD_GL_ANGLE_program_binary; -#endif -#ifndef GL_ANGLE_texture_compression_dxt3 -#define GL_ANGLE_texture_compression_dxt3 1 -GLAPI int GLAD_GL_ANGLE_texture_compression_dxt3; -#endif -#ifndef GL_ANGLE_texture_compression_dxt5 -#define GL_ANGLE_texture_compression_dxt5 1 -GLAPI int GLAD_GL_ANGLE_texture_compression_dxt5; -#endif -#ifndef GL_ANGLE_texture_usage -#define GL_ANGLE_texture_usage 1 -GLAPI int GLAD_GL_ANGLE_texture_usage; -#endif -#ifndef GL_ANGLE_translated_shader_source -#define GL_ANGLE_translated_shader_source 1 -GLAPI int GLAD_GL_ANGLE_translated_shader_source; -typedef void (APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC)(GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source); -GLAPI PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC glad_glGetTranslatedShaderSourceANGLE; -#define glGetTranslatedShaderSourceANGLE glad_glGetTranslatedShaderSourceANGLE -#endif -#ifndef GL_APPLE_clip_distance -#define GL_APPLE_clip_distance 1 -GLAPI int GLAD_GL_APPLE_clip_distance; -#endif -#ifndef GL_APPLE_color_buffer_packed_float -#define GL_APPLE_color_buffer_packed_float 1 -GLAPI int GLAD_GL_APPLE_color_buffer_packed_float; -#endif -#ifndef GL_APPLE_copy_texture_levels -#define GL_APPLE_copy_texture_levels 1 -GLAPI int GLAD_GL_APPLE_copy_texture_levels; -typedef void (APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC)(GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount); -GLAPI PFNGLCOPYTEXTURELEVELSAPPLEPROC glad_glCopyTextureLevelsAPPLE; -#define glCopyTextureLevelsAPPLE glad_glCopyTextureLevelsAPPLE -#endif -#ifndef GL_APPLE_framebuffer_multisample -#define GL_APPLE_framebuffer_multisample 1 -GLAPI int GLAD_GL_APPLE_framebuffer_multisample; -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC glad_glRenderbufferStorageMultisampleAPPLE; -#define glRenderbufferStorageMultisampleAPPLE glad_glRenderbufferStorageMultisampleAPPLE -typedef void (APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC)(void); -GLAPI PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC glad_glResolveMultisampleFramebufferAPPLE; -#define glResolveMultisampleFramebufferAPPLE glad_glResolveMultisampleFramebufferAPPLE -#endif -#ifndef GL_APPLE_rgb_422 -#define GL_APPLE_rgb_422 1 -GLAPI int GLAD_GL_APPLE_rgb_422; -#endif -#ifndef GL_APPLE_sync -#define GL_APPLE_sync 1 -GLAPI int GLAD_GL_APPLE_sync; -typedef GLsync (APIENTRYP PFNGLFENCESYNCAPPLEPROC)(GLenum condition, GLbitfield flags); -GLAPI PFNGLFENCESYNCAPPLEPROC glad_glFenceSyncAPPLE; -#define glFenceSyncAPPLE glad_glFenceSyncAPPLE -typedef GLboolean (APIENTRYP PFNGLISSYNCAPPLEPROC)(GLsync sync); -GLAPI PFNGLISSYNCAPPLEPROC glad_glIsSyncAPPLE; -#define glIsSyncAPPLE glad_glIsSyncAPPLE -typedef void (APIENTRYP PFNGLDELETESYNCAPPLEPROC)(GLsync sync); -GLAPI PFNGLDELETESYNCAPPLEPROC glad_glDeleteSyncAPPLE; -#define glDeleteSyncAPPLE glad_glDeleteSyncAPPLE -typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI PFNGLCLIENTWAITSYNCAPPLEPROC glad_glClientWaitSyncAPPLE; -#define glClientWaitSyncAPPLE glad_glClientWaitSyncAPPLE -typedef void (APIENTRYP PFNGLWAITSYNCAPPLEPROC)(GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI PFNGLWAITSYNCAPPLEPROC glad_glWaitSyncAPPLE; -#define glWaitSyncAPPLE glad_glWaitSyncAPPLE -typedef void (APIENTRYP PFNGLGETINTEGER64VAPPLEPROC)(GLenum pname, GLint64 *params); -GLAPI PFNGLGETINTEGER64VAPPLEPROC glad_glGetInteger64vAPPLE; -#define glGetInteger64vAPPLE glad_glGetInteger64vAPPLE -typedef void (APIENTRYP PFNGLGETSYNCIVAPPLEPROC)(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -GLAPI PFNGLGETSYNCIVAPPLEPROC glad_glGetSyncivAPPLE; -#define glGetSyncivAPPLE glad_glGetSyncivAPPLE -#endif -#ifndef GL_APPLE_texture_format_BGRA8888 -#define GL_APPLE_texture_format_BGRA8888 1 -GLAPI int GLAD_GL_APPLE_texture_format_BGRA8888; -#endif -#ifndef GL_APPLE_texture_max_level -#define GL_APPLE_texture_max_level 1 -GLAPI int GLAD_GL_APPLE_texture_max_level; -#endif -#ifndef GL_APPLE_texture_packed_float -#define GL_APPLE_texture_packed_float 1 -GLAPI int GLAD_GL_APPLE_texture_packed_float; -#endif -#ifndef GL_ARM_mali_program_binary -#define GL_ARM_mali_program_binary 1 -GLAPI int GLAD_GL_ARM_mali_program_binary; -#endif -#ifndef GL_ARM_mali_shader_binary -#define GL_ARM_mali_shader_binary 1 -GLAPI int GLAD_GL_ARM_mali_shader_binary; -#endif -#ifndef GL_ARM_rgba8 -#define GL_ARM_rgba8 1 -GLAPI int GLAD_GL_ARM_rgba8; -#endif -#ifndef GL_ARM_shader_framebuffer_fetch -#define GL_ARM_shader_framebuffer_fetch 1 -GLAPI int GLAD_GL_ARM_shader_framebuffer_fetch; -#endif -#ifndef GL_ARM_shader_framebuffer_fetch_depth_stencil -#define GL_ARM_shader_framebuffer_fetch_depth_stencil 1 -GLAPI int GLAD_GL_ARM_shader_framebuffer_fetch_depth_stencil; -#endif -#ifndef GL_DMP_program_binary -#define GL_DMP_program_binary 1 -GLAPI int GLAD_GL_DMP_program_binary; -#endif -#ifndef GL_DMP_shader_binary -#define GL_DMP_shader_binary 1 -GLAPI int GLAD_GL_DMP_shader_binary; -#endif -#ifndef GL_EXT_EGL_image_array -#define GL_EXT_EGL_image_array 1 -GLAPI int GLAD_GL_EXT_EGL_image_array; -#endif -#ifndef GL_EXT_EGL_image_storage -#define GL_EXT_EGL_image_storage 1 -GLAPI int GLAD_GL_EXT_EGL_image_storage; -#endif -#ifndef GL_EXT_YUV_target -#define GL_EXT_YUV_target 1 -GLAPI int GLAD_GL_EXT_YUV_target; -#endif -#ifndef GL_EXT_base_instance -#define GL_EXT_base_instance 1 -GLAPI int GLAD_GL_EXT_base_instance; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEEXTPROC)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); -GLAPI PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEEXTPROC glad_glDrawArraysInstancedBaseInstanceEXT; -#define glDrawArraysInstancedBaseInstanceEXT glad_glDrawArraysInstancedBaseInstanceEXT -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEEXTPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEEXTPROC glad_glDrawElementsInstancedBaseInstanceEXT; -#define glDrawElementsInstancedBaseInstanceEXT glad_glDrawElementsInstancedBaseInstanceEXT -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEEXTPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEEXTPROC glad_glDrawElementsInstancedBaseVertexBaseInstanceEXT; -#define glDrawElementsInstancedBaseVertexBaseInstanceEXT glad_glDrawElementsInstancedBaseVertexBaseInstanceEXT -#endif -#ifndef GL_EXT_blend_func_extended -#define GL_EXT_blend_func_extended 1 -GLAPI int GLAD_GL_EXT_blend_func_extended; -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDEXTPROC)(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); -GLAPI PFNGLBINDFRAGDATALOCATIONINDEXEDEXTPROC glad_glBindFragDataLocationIndexedEXT; -#define glBindFragDataLocationIndexedEXT glad_glBindFragDataLocationIndexedEXT -typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC)(GLuint program, GLenum programInterface, const GLchar *name); -GLAPI PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC glad_glGetProgramResourceLocationIndexEXT; -#define glGetProgramResourceLocationIndexEXT glad_glGetProgramResourceLocationIndexEXT -typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXEXTPROC)(GLuint program, const GLchar *name); -GLAPI PFNGLGETFRAGDATAINDEXEXTPROC glad_glGetFragDataIndexEXT; -#define glGetFragDataIndexEXT glad_glGetFragDataIndexEXT -#endif -#ifndef GL_EXT_blend_minmax -#define GL_EXT_blend_minmax 1 -GLAPI int GLAD_GL_EXT_blend_minmax; -#endif -#ifndef GL_EXT_buffer_storage -#define GL_EXT_buffer_storage 1 -GLAPI int GLAD_GL_EXT_buffer_storage; -typedef void (APIENTRYP PFNGLBUFFERSTORAGEEXTPROC)(GLenum target, GLsizeiptr size, const void *data, GLbitfield flags); -GLAPI PFNGLBUFFERSTORAGEEXTPROC glad_glBufferStorageEXT; -#define glBufferStorageEXT glad_glBufferStorageEXT -#endif -#ifndef GL_EXT_clear_texture -#define GL_EXT_clear_texture 1 -GLAPI int GLAD_GL_EXT_clear_texture; -typedef void (APIENTRYP PFNGLCLEARTEXIMAGEEXTPROC)(GLuint texture, GLint level, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARTEXIMAGEEXTPROC glad_glClearTexImageEXT; -#define glClearTexImageEXT glad_glClearTexImageEXT -typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEEXTPROC)(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data); -GLAPI PFNGLCLEARTEXSUBIMAGEEXTPROC glad_glClearTexSubImageEXT; -#define glClearTexSubImageEXT glad_glClearTexSubImageEXT -#endif -#ifndef GL_EXT_clip_control -#define GL_EXT_clip_control 1 -GLAPI int GLAD_GL_EXT_clip_control; -typedef void (APIENTRYP PFNGLCLIPCONTROLEXTPROC)(GLenum origin, GLenum depth); -GLAPI PFNGLCLIPCONTROLEXTPROC glad_glClipControlEXT; -#define glClipControlEXT glad_glClipControlEXT -#endif -#ifndef GL_EXT_clip_cull_distance -#define GL_EXT_clip_cull_distance 1 -GLAPI int GLAD_GL_EXT_clip_cull_distance; -#endif -#ifndef GL_EXT_color_buffer_float -#define GL_EXT_color_buffer_float 1 -GLAPI int GLAD_GL_EXT_color_buffer_float; -#endif -#ifndef GL_EXT_color_buffer_half_float -#define GL_EXT_color_buffer_half_float 1 -GLAPI int GLAD_GL_EXT_color_buffer_half_float; -#endif -#ifndef GL_EXT_conservative_depth -#define GL_EXT_conservative_depth 1 -GLAPI int GLAD_GL_EXT_conservative_depth; -#endif -#ifndef GL_EXT_copy_image -#define GL_EXT_copy_image 1 -GLAPI int GLAD_GL_EXT_copy_image; -typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAEXTPROC)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -GLAPI PFNGLCOPYIMAGESUBDATAEXTPROC glad_glCopyImageSubDataEXT; -#define glCopyImageSubDataEXT glad_glCopyImageSubDataEXT -#endif -#ifndef GL_EXT_debug_label -#define GL_EXT_debug_label 1 -GLAPI int GLAD_GL_EXT_debug_label; -#endif -#ifndef GL_EXT_debug_marker -#define GL_EXT_debug_marker 1 -GLAPI int GLAD_GL_EXT_debug_marker; -#endif -#ifndef GL_EXT_discard_framebuffer -#define GL_EXT_discard_framebuffer 1 -GLAPI int GLAD_GL_EXT_discard_framebuffer; -typedef void (APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC)(GLenum target, GLsizei numAttachments, const GLenum *attachments); -GLAPI PFNGLDISCARDFRAMEBUFFEREXTPROC glad_glDiscardFramebufferEXT; -#define glDiscardFramebufferEXT glad_glDiscardFramebufferEXT -#endif -#ifndef GL_EXT_disjoint_timer_query -#define GL_EXT_disjoint_timer_query 1 -GLAPI int GLAD_GL_EXT_disjoint_timer_query; -typedef void (APIENTRYP PFNGLGENQUERIESEXTPROC)(GLsizei n, GLuint *ids); -GLAPI PFNGLGENQUERIESEXTPROC glad_glGenQueriesEXT; -#define glGenQueriesEXT glad_glGenQueriesEXT -typedef void (APIENTRYP PFNGLDELETEQUERIESEXTPROC)(GLsizei n, const GLuint *ids); -GLAPI PFNGLDELETEQUERIESEXTPROC glad_glDeleteQueriesEXT; -#define glDeleteQueriesEXT glad_glDeleteQueriesEXT -typedef GLboolean (APIENTRYP PFNGLISQUERYEXTPROC)(GLuint id); -GLAPI PFNGLISQUERYEXTPROC glad_glIsQueryEXT; -#define glIsQueryEXT glad_glIsQueryEXT -typedef void (APIENTRYP PFNGLBEGINQUERYEXTPROC)(GLenum target, GLuint id); -GLAPI PFNGLBEGINQUERYEXTPROC glad_glBeginQueryEXT; -#define glBeginQueryEXT glad_glBeginQueryEXT -typedef void (APIENTRYP PFNGLENDQUERYEXTPROC)(GLenum target); -GLAPI PFNGLENDQUERYEXTPROC glad_glEndQueryEXT; -#define glEndQueryEXT glad_glEndQueryEXT -typedef void (APIENTRYP PFNGLQUERYCOUNTEREXTPROC)(GLuint id, GLenum target); -GLAPI PFNGLQUERYCOUNTEREXTPROC glad_glQueryCounterEXT; -#define glQueryCounterEXT glad_glQueryCounterEXT -typedef void (APIENTRYP PFNGLGETQUERYIVEXTPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETQUERYIVEXTPROC glad_glGetQueryivEXT; -#define glGetQueryivEXT glad_glGetQueryivEXT -typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVEXTPROC)(GLuint id, GLenum pname, GLint *params); -GLAPI PFNGLGETQUERYOBJECTIVEXTPROC glad_glGetQueryObjectivEXT; -#define glGetQueryObjectivEXT glad_glGetQueryObjectivEXT -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC)(GLuint id, GLenum pname, GLuint *params); -GLAPI PFNGLGETQUERYOBJECTUIVEXTPROC glad_glGetQueryObjectuivEXT; -#define glGetQueryObjectuivEXT glad_glGetQueryObjectuivEXT -#endif -#ifndef GL_EXT_draw_buffers -#define GL_EXT_draw_buffers 1 -GLAPI int GLAD_GL_EXT_draw_buffers; -typedef void (APIENTRYP PFNGLDRAWBUFFERSEXTPROC)(GLsizei n, const GLenum *bufs); -GLAPI PFNGLDRAWBUFFERSEXTPROC glad_glDrawBuffersEXT; -#define glDrawBuffersEXT glad_glDrawBuffersEXT -#endif -#ifndef GL_EXT_draw_buffers_indexed -#define GL_EXT_draw_buffers_indexed 1 -GLAPI int GLAD_GL_EXT_draw_buffers_indexed; -typedef void (APIENTRYP PFNGLENABLEIEXTPROC)(GLenum target, GLuint index); -GLAPI PFNGLENABLEIEXTPROC glad_glEnableiEXT; -#define glEnableiEXT glad_glEnableiEXT -typedef void (APIENTRYP PFNGLDISABLEIEXTPROC)(GLenum target, GLuint index); -GLAPI PFNGLDISABLEIEXTPROC glad_glDisableiEXT; -#define glDisableiEXT glad_glDisableiEXT -typedef void (APIENTRYP PFNGLBLENDEQUATIONIEXTPROC)(GLuint buf, GLenum mode); -GLAPI PFNGLBLENDEQUATIONIEXTPROC glad_glBlendEquationiEXT; -#define glBlendEquationiEXT glad_glBlendEquationiEXT -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIEXTPROC)(GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI PFNGLBLENDEQUATIONSEPARATEIEXTPROC glad_glBlendEquationSeparateiEXT; -#define glBlendEquationSeparateiEXT glad_glBlendEquationSeparateiEXT -typedef void (APIENTRYP PFNGLBLENDFUNCIEXTPROC)(GLuint buf, GLenum src, GLenum dst); -GLAPI PFNGLBLENDFUNCIEXTPROC glad_glBlendFunciEXT; -#define glBlendFunciEXT glad_glBlendFunciEXT -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIEXTPROC)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEIEXTPROC glad_glBlendFuncSeparateiEXT; -#define glBlendFuncSeparateiEXT glad_glBlendFuncSeparateiEXT -typedef void (APIENTRYP PFNGLCOLORMASKIEXTPROC)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -GLAPI PFNGLCOLORMASKIEXTPROC glad_glColorMaskiEXT; -#define glColorMaskiEXT glad_glColorMaskiEXT -typedef GLboolean (APIENTRYP PFNGLISENABLEDIEXTPROC)(GLenum target, GLuint index); -GLAPI PFNGLISENABLEDIEXTPROC glad_glIsEnablediEXT; -#define glIsEnablediEXT glad_glIsEnablediEXT -#endif -#ifndef GL_EXT_draw_elements_base_vertex -#define GL_EXT_draw_elements_base_vertex 1 -GLAPI int GLAD_GL_EXT_draw_elements_base_vertex; -typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXEXTPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); -GLAPI PFNGLDRAWELEMENTSBASEVERTEXEXTPROC glad_glDrawElementsBaseVertexEXT; -#define glDrawElementsBaseVertexEXT glad_glDrawElementsBaseVertexEXT -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXEXTPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); -GLAPI PFNGLDRAWRANGEELEMENTSBASEVERTEXEXTPROC glad_glDrawRangeElementsBaseVertexEXT; -#define glDrawRangeElementsBaseVertexEXT glad_glDrawRangeElementsBaseVertexEXT -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXEXTPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXEXTPROC glad_glDrawElementsInstancedBaseVertexEXT; -#define glDrawElementsInstancedBaseVertexEXT glad_glDrawElementsInstancedBaseVertexEXT -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC)(GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, const GLint *basevertex); -GLAPI PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC glad_glMultiDrawElementsBaseVertexEXT; -#define glMultiDrawElementsBaseVertexEXT glad_glMultiDrawElementsBaseVertexEXT -#endif -#ifndef GL_EXT_draw_instanced -#define GL_EXT_draw_instanced 1 -GLAPI int GLAD_GL_EXT_draw_instanced; -#endif -#ifndef GL_EXT_draw_transform_feedback -#define GL_EXT_draw_transform_feedback 1 -GLAPI int GLAD_GL_EXT_draw_transform_feedback; -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKEXTPROC)(GLenum mode, GLuint id); -GLAPI PFNGLDRAWTRANSFORMFEEDBACKEXTPROC glad_glDrawTransformFeedbackEXT; -#define glDrawTransformFeedbackEXT glad_glDrawTransformFeedbackEXT -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDEXTPROC)(GLenum mode, GLuint id, GLsizei instancecount); -GLAPI PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDEXTPROC glad_glDrawTransformFeedbackInstancedEXT; -#define glDrawTransformFeedbackInstancedEXT glad_glDrawTransformFeedbackInstancedEXT -#endif -#ifndef GL_EXT_external_buffer -#define GL_EXT_external_buffer 1 -GLAPI int GLAD_GL_EXT_external_buffer; -#endif -#ifndef GL_EXT_float_blend -#define GL_EXT_float_blend 1 -GLAPI int GLAD_GL_EXT_float_blend; -#endif -#ifndef GL_EXT_geometry_point_size -#define GL_EXT_geometry_point_size 1 -GLAPI int GLAD_GL_EXT_geometry_point_size; -#endif -#ifndef GL_EXT_geometry_shader -#define GL_EXT_geometry_shader 1 -GLAPI int GLAD_GL_EXT_geometry_shader; -#endif -#ifndef GL_EXT_gpu_shader5 -#define GL_EXT_gpu_shader5 1 -GLAPI int GLAD_GL_EXT_gpu_shader5; -#endif -#ifndef GL_EXT_instanced_arrays -#define GL_EXT_instanced_arrays 1 -GLAPI int GLAD_GL_EXT_instanced_arrays; -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISOREXTPROC)(GLuint index, GLuint divisor); -GLAPI PFNGLVERTEXATTRIBDIVISOREXTPROC glad_glVertexAttribDivisorEXT; -#define glVertexAttribDivisorEXT glad_glVertexAttribDivisorEXT -#endif -#ifndef GL_EXT_map_buffer_range -#define GL_EXT_map_buffer_range 1 -GLAPI int GLAD_GL_EXT_map_buffer_range; -typedef void * (APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC)(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -GLAPI PFNGLMAPBUFFERRANGEEXTPROC glad_glMapBufferRangeEXT; -#define glMapBufferRangeEXT glad_glMapBufferRangeEXT -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC)(GLenum target, GLintptr offset, GLsizeiptr length); -GLAPI PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC glad_glFlushMappedBufferRangeEXT; -#define glFlushMappedBufferRangeEXT glad_glFlushMappedBufferRangeEXT -#endif -#ifndef GL_EXT_memory_object -#define GL_EXT_memory_object 1 -GLAPI int GLAD_GL_EXT_memory_object; -#endif -#ifndef GL_EXT_memory_object_fd -#define GL_EXT_memory_object_fd 1 -GLAPI int GLAD_GL_EXT_memory_object_fd; -#endif -#ifndef GL_EXT_memory_object_win32 -#define GL_EXT_memory_object_win32 1 -GLAPI int GLAD_GL_EXT_memory_object_win32; -#endif -#ifndef GL_EXT_multi_draw_arrays -#define GL_EXT_multi_draw_arrays 1 -GLAPI int GLAD_GL_EXT_multi_draw_arrays; -#endif -#ifndef GL_EXT_multi_draw_indirect -#define GL_EXT_multi_draw_indirect 1 -GLAPI int GLAD_GL_EXT_multi_draw_indirect; -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTEXTPROC)(GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWARRAYSINDIRECTEXTPROC glad_glMultiDrawArraysIndirectEXT; -#define glMultiDrawArraysIndirectEXT glad_glMultiDrawArraysIndirectEXT -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTEXTPROC)(GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); -GLAPI PFNGLMULTIDRAWELEMENTSINDIRECTEXTPROC glad_glMultiDrawElementsIndirectEXT; -#define glMultiDrawElementsIndirectEXT glad_glMultiDrawElementsIndirectEXT -#endif -#ifndef GL_EXT_multisampled_compatibility -#define GL_EXT_multisampled_compatibility 1 -GLAPI int GLAD_GL_EXT_multisampled_compatibility; -#endif -#ifndef GL_EXT_multisampled_render_to_texture -#define GL_EXT_multisampled_render_to_texture 1 -GLAPI int GLAD_GL_EXT_multisampled_render_to_texture; -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples); -GLAPI PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC glad_glFramebufferTexture2DMultisampleEXT; -#define glFramebufferTexture2DMultisampleEXT glad_glFramebufferTexture2DMultisampleEXT -#endif -#ifndef GL_EXT_multiview_draw_buffers -#define GL_EXT_multiview_draw_buffers 1 -GLAPI int GLAD_GL_EXT_multiview_draw_buffers; -typedef void (APIENTRYP PFNGLREADBUFFERINDEXEDEXTPROC)(GLenum src, GLint index); -GLAPI PFNGLREADBUFFERINDEXEDEXTPROC glad_glReadBufferIndexedEXT; -#define glReadBufferIndexedEXT glad_glReadBufferIndexedEXT -typedef void (APIENTRYP PFNGLDRAWBUFFERSINDEXEDEXTPROC)(GLint n, const GLenum *location, const GLint *indices); -GLAPI PFNGLDRAWBUFFERSINDEXEDEXTPROC glad_glDrawBuffersIndexedEXT; -#define glDrawBuffersIndexedEXT glad_glDrawBuffersIndexedEXT -typedef void (APIENTRYP PFNGLGETINTEGERI_VEXTPROC)(GLenum target, GLuint index, GLint *data); -GLAPI PFNGLGETINTEGERI_VEXTPROC glad_glGetIntegeri_vEXT; -#define glGetIntegeri_vEXT glad_glGetIntegeri_vEXT -#endif -#ifndef GL_EXT_occlusion_query_boolean -#define GL_EXT_occlusion_query_boolean 1 -GLAPI int GLAD_GL_EXT_occlusion_query_boolean; -#endif -#ifndef GL_EXT_polygon_offset_clamp -#define GL_EXT_polygon_offset_clamp 1 -GLAPI int GLAD_GL_EXT_polygon_offset_clamp; -#endif -#ifndef GL_EXT_post_depth_coverage -#define GL_EXT_post_depth_coverage 1 -GLAPI int GLAD_GL_EXT_post_depth_coverage; -#endif -#ifndef GL_EXT_primitive_bounding_box -#define GL_EXT_primitive_bounding_box 1 -GLAPI int GLAD_GL_EXT_primitive_bounding_box; -typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXEXTPROC)(GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); -GLAPI PFNGLPRIMITIVEBOUNDINGBOXEXTPROC glad_glPrimitiveBoundingBoxEXT; -#define glPrimitiveBoundingBoxEXT glad_glPrimitiveBoundingBoxEXT -#endif -#ifndef GL_EXT_protected_textures -#define GL_EXT_protected_textures 1 -GLAPI int GLAD_GL_EXT_protected_textures; -#endif -#ifndef GL_EXT_pvrtc_sRGB -#define GL_EXT_pvrtc_sRGB 1 -GLAPI int GLAD_GL_EXT_pvrtc_sRGB; -#endif -#ifndef GL_EXT_raster_multisample -#define GL_EXT_raster_multisample 1 -GLAPI int GLAD_GL_EXT_raster_multisample; -#endif -#ifndef GL_EXT_read_format_bgra -#define GL_EXT_read_format_bgra 1 -GLAPI int GLAD_GL_EXT_read_format_bgra; -#endif -#ifndef GL_EXT_render_snorm -#define GL_EXT_render_snorm 1 -GLAPI int GLAD_GL_EXT_render_snorm; -#endif -#ifndef GL_EXT_robustness -#define GL_EXT_robustness 1 -GLAPI int GLAD_GL_EXT_robustness; -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC)(void); -GLAPI PFNGLGETGRAPHICSRESETSTATUSEXTPROC glad_glGetGraphicsResetStatusEXT; -#define glGetGraphicsResetStatusEXT glad_glGetGraphicsResetStatusEXT -typedef void (APIENTRYP PFNGLREADNPIXELSEXTPROC)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data); -GLAPI PFNGLREADNPIXELSEXTPROC glad_glReadnPixelsEXT; -#define glReadnPixelsEXT glad_glReadnPixelsEXT -typedef void (APIENTRYP PFNGLGETNUNIFORMFVEXTPROC)(GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -GLAPI PFNGLGETNUNIFORMFVEXTPROC glad_glGetnUniformfvEXT; -#define glGetnUniformfvEXT glad_glGetnUniformfvEXT -typedef void (APIENTRYP PFNGLGETNUNIFORMIVEXTPROC)(GLuint program, GLint location, GLsizei bufSize, GLint *params); -GLAPI PFNGLGETNUNIFORMIVEXTPROC glad_glGetnUniformivEXT; -#define glGetnUniformivEXT glad_glGetnUniformivEXT -#endif -#ifndef GL_EXT_sRGB -#define GL_EXT_sRGB 1 -GLAPI int GLAD_GL_EXT_sRGB; -#endif -#ifndef GL_EXT_sRGB_write_control -#define GL_EXT_sRGB_write_control 1 -GLAPI int GLAD_GL_EXT_sRGB_write_control; -#endif -#ifndef GL_EXT_semaphore -#define GL_EXT_semaphore 1 -GLAPI int GLAD_GL_EXT_semaphore; -#endif -#ifndef GL_EXT_semaphore_fd -#define GL_EXT_semaphore_fd 1 -GLAPI int GLAD_GL_EXT_semaphore_fd; -#endif -#ifndef GL_EXT_semaphore_win32 -#define GL_EXT_semaphore_win32 1 -GLAPI int GLAD_GL_EXT_semaphore_win32; -#endif -#ifndef GL_EXT_separate_shader_objects -#define GL_EXT_separate_shader_objects 1 -GLAPI int GLAD_GL_EXT_separate_shader_objects; -#endif -#ifndef GL_EXT_shader_framebuffer_fetch -#define GL_EXT_shader_framebuffer_fetch 1 -GLAPI int GLAD_GL_EXT_shader_framebuffer_fetch; -#endif -#ifndef GL_EXT_shader_framebuffer_fetch_non_coherent -#define GL_EXT_shader_framebuffer_fetch_non_coherent 1 -GLAPI int GLAD_GL_EXT_shader_framebuffer_fetch_non_coherent; -#endif -#ifndef GL_EXT_shader_group_vote -#define GL_EXT_shader_group_vote 1 -GLAPI int GLAD_GL_EXT_shader_group_vote; -#endif -#ifndef GL_EXT_shader_implicit_conversions -#define GL_EXT_shader_implicit_conversions 1 -GLAPI int GLAD_GL_EXT_shader_implicit_conversions; -#endif -#ifndef GL_EXT_shader_integer_mix -#define GL_EXT_shader_integer_mix 1 -GLAPI int GLAD_GL_EXT_shader_integer_mix; -#endif -#ifndef GL_EXT_shader_io_blocks -#define GL_EXT_shader_io_blocks 1 -GLAPI int GLAD_GL_EXT_shader_io_blocks; -#endif -#ifndef GL_EXT_shader_non_constant_global_initializers -#define GL_EXT_shader_non_constant_global_initializers 1 -GLAPI int GLAD_GL_EXT_shader_non_constant_global_initializers; -#endif -#ifndef GL_EXT_shader_pixel_local_storage -#define GL_EXT_shader_pixel_local_storage 1 -GLAPI int GLAD_GL_EXT_shader_pixel_local_storage; -#endif -#ifndef GL_EXT_shader_pixel_local_storage2 -#define GL_EXT_shader_pixel_local_storage2 1 -GLAPI int GLAD_GL_EXT_shader_pixel_local_storage2; -typedef void (APIENTRYP PFNGLFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC)(GLuint target, GLsizei size); -GLAPI PFNGLFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC glad_glFramebufferPixelLocalStorageSizeEXT; -#define glFramebufferPixelLocalStorageSizeEXT glad_glFramebufferPixelLocalStorageSizeEXT -typedef GLsizei (APIENTRYP PFNGLGETFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC)(GLuint target); -GLAPI PFNGLGETFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC glad_glGetFramebufferPixelLocalStorageSizeEXT; -#define glGetFramebufferPixelLocalStorageSizeEXT glad_glGetFramebufferPixelLocalStorageSizeEXT -typedef void (APIENTRYP PFNGLCLEARPIXELLOCALSTORAGEUIEXTPROC)(GLsizei offset, GLsizei n, const GLuint *values); -GLAPI PFNGLCLEARPIXELLOCALSTORAGEUIEXTPROC glad_glClearPixelLocalStorageuiEXT; -#define glClearPixelLocalStorageuiEXT glad_glClearPixelLocalStorageuiEXT -#endif -#ifndef GL_EXT_shader_texture_lod -#define GL_EXT_shader_texture_lod 1 -GLAPI int GLAD_GL_EXT_shader_texture_lod; -#endif -#ifndef GL_EXT_shadow_samplers -#define GL_EXT_shadow_samplers 1 -GLAPI int GLAD_GL_EXT_shadow_samplers; -#endif -#ifndef GL_EXT_sparse_texture -#define GL_EXT_sparse_texture 1 -GLAPI int GLAD_GL_EXT_sparse_texture; -typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTEXTPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit); -GLAPI PFNGLTEXPAGECOMMITMENTEXTPROC glad_glTexPageCommitmentEXT; -#define glTexPageCommitmentEXT glad_glTexPageCommitmentEXT -#endif -#ifndef GL_EXT_sparse_texture2 -#define GL_EXT_sparse_texture2 1 -GLAPI int GLAD_GL_EXT_sparse_texture2; -#endif -#ifndef GL_EXT_tessellation_point_size -#define GL_EXT_tessellation_point_size 1 -GLAPI int GLAD_GL_EXT_tessellation_point_size; -#endif -#ifndef GL_EXT_tessellation_shader -#define GL_EXT_tessellation_shader 1 -GLAPI int GLAD_GL_EXT_tessellation_shader; -typedef void (APIENTRYP PFNGLPATCHPARAMETERIEXTPROC)(GLenum pname, GLint value); -GLAPI PFNGLPATCHPARAMETERIEXTPROC glad_glPatchParameteriEXT; -#define glPatchParameteriEXT glad_glPatchParameteriEXT -#endif -#ifndef GL_EXT_texture_border_clamp -#define GL_EXT_texture_border_clamp 1 -GLAPI int GLAD_GL_EXT_texture_border_clamp; -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVEXTPROC)(GLuint sampler, GLenum pname, const GLint *param); -GLAPI PFNGLSAMPLERPARAMETERIIVEXTPROC glad_glSamplerParameterIivEXT; -#define glSamplerParameterIivEXT glad_glSamplerParameterIivEXT -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVEXTPROC)(GLuint sampler, GLenum pname, const GLuint *param); -GLAPI PFNGLSAMPLERPARAMETERIUIVEXTPROC glad_glSamplerParameterIuivEXT; -#define glSamplerParameterIuivEXT glad_glSamplerParameterIuivEXT -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVEXTPROC)(GLuint sampler, GLenum pname, GLint *params); -GLAPI PFNGLGETSAMPLERPARAMETERIIVEXTPROC glad_glGetSamplerParameterIivEXT; -#define glGetSamplerParameterIivEXT glad_glGetSamplerParameterIivEXT -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVEXTPROC)(GLuint sampler, GLenum pname, GLuint *params); -GLAPI PFNGLGETSAMPLERPARAMETERIUIVEXTPROC glad_glGetSamplerParameterIuivEXT; -#define glGetSamplerParameterIuivEXT glad_glGetSamplerParameterIuivEXT -#endif -#ifndef GL_EXT_texture_buffer -#define GL_EXT_texture_buffer 1 -GLAPI int GLAD_GL_EXT_texture_buffer; -typedef void (APIENTRYP PFNGLTEXBUFFERRANGEEXTPROC)(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLTEXBUFFERRANGEEXTPROC glad_glTexBufferRangeEXT; -#define glTexBufferRangeEXT glad_glTexBufferRangeEXT -#endif -#ifndef GL_EXT_texture_compression_astc_decode_mode -#define GL_EXT_texture_compression_astc_decode_mode 1 -GLAPI int GLAD_GL_EXT_texture_compression_astc_decode_mode; -#endif -#ifndef GL_EXT_texture_compression_bptc -#define GL_EXT_texture_compression_bptc 1 -GLAPI int GLAD_GL_EXT_texture_compression_bptc; -#endif -#ifndef GL_EXT_texture_compression_dxt1 -#define GL_EXT_texture_compression_dxt1 1 -GLAPI int GLAD_GL_EXT_texture_compression_dxt1; -#endif -#ifndef GL_EXT_texture_compression_rgtc -#define GL_EXT_texture_compression_rgtc 1 -GLAPI int GLAD_GL_EXT_texture_compression_rgtc; -#endif -#ifndef GL_EXT_texture_compression_s3tc -#define GL_EXT_texture_compression_s3tc 1 -GLAPI int GLAD_GL_EXT_texture_compression_s3tc; -#endif -#ifndef GL_EXT_texture_compression_s3tc_srgb -#define GL_EXT_texture_compression_s3tc_srgb 1 -GLAPI int GLAD_GL_EXT_texture_compression_s3tc_srgb; -#endif -#ifndef GL_EXT_texture_cube_map_array -#define GL_EXT_texture_cube_map_array 1 -GLAPI int GLAD_GL_EXT_texture_cube_map_array; -#endif -#ifndef GL_EXT_texture_filter_anisotropic -#define GL_EXT_texture_filter_anisotropic 1 -GLAPI int GLAD_GL_EXT_texture_filter_anisotropic; -#endif -#ifndef GL_EXT_texture_filter_minmax -#define GL_EXT_texture_filter_minmax 1 -GLAPI int GLAD_GL_EXT_texture_filter_minmax; -#endif -#ifndef GL_EXT_texture_format_BGRA8888 -#define GL_EXT_texture_format_BGRA8888 1 -GLAPI int GLAD_GL_EXT_texture_format_BGRA8888; -#endif -#ifndef GL_EXT_texture_format_sRGB_override -#define GL_EXT_texture_format_sRGB_override 1 -GLAPI int GLAD_GL_EXT_texture_format_sRGB_override; -#endif -#ifndef GL_EXT_texture_mirror_clamp_to_edge -#define GL_EXT_texture_mirror_clamp_to_edge 1 -GLAPI int GLAD_GL_EXT_texture_mirror_clamp_to_edge; -#endif -#ifndef GL_EXT_texture_norm16 -#define GL_EXT_texture_norm16 1 -GLAPI int GLAD_GL_EXT_texture_norm16; -#endif -#ifndef GL_EXT_texture_rg -#define GL_EXT_texture_rg 1 -GLAPI int GLAD_GL_EXT_texture_rg; -#endif -#ifndef GL_EXT_texture_sRGB_R8 -#define GL_EXT_texture_sRGB_R8 1 -GLAPI int GLAD_GL_EXT_texture_sRGB_R8; -#endif -#ifndef GL_EXT_texture_sRGB_RG8 -#define GL_EXT_texture_sRGB_RG8 1 -GLAPI int GLAD_GL_EXT_texture_sRGB_RG8; -#endif -#ifndef GL_EXT_texture_sRGB_decode -#define GL_EXT_texture_sRGB_decode 1 -GLAPI int GLAD_GL_EXT_texture_sRGB_decode; -#endif -#ifndef GL_EXT_texture_storage -#define GL_EXT_texture_storage 1 -GLAPI int GLAD_GL_EXT_texture_storage; -typedef void (APIENTRYP PFNGLTEXSTORAGE1DEXTPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI PFNGLTEXSTORAGE1DEXTPROC glad_glTexStorage1DEXT; -#define glTexStorage1DEXT glad_glTexStorage1DEXT -typedef void (APIENTRYP PFNGLTEXSTORAGE2DEXTPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLTEXSTORAGE2DEXTPROC glad_glTexStorage2DEXT; -#define glTexStorage2DEXT glad_glTexStorage2DEXT -typedef void (APIENTRYP PFNGLTEXSTORAGE3DEXTPROC)(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNGLTEXSTORAGE3DEXTPROC glad_glTexStorage3DEXT; -#define glTexStorage3DEXT glad_glTexStorage3DEXT -#endif -#ifndef GL_EXT_texture_type_2_10_10_10_REV -#define GL_EXT_texture_type_2_10_10_10_REV 1 -GLAPI int GLAD_GL_EXT_texture_type_2_10_10_10_REV; -#endif -#ifndef GL_EXT_texture_view -#define GL_EXT_texture_view 1 -GLAPI int GLAD_GL_EXT_texture_view; -typedef void (APIENTRYP PFNGLTEXTUREVIEWEXTPROC)(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); -GLAPI PFNGLTEXTUREVIEWEXTPROC glad_glTextureViewEXT; -#define glTextureViewEXT glad_glTextureViewEXT -#endif -#ifndef GL_EXT_unpack_subimage -#define GL_EXT_unpack_subimage 1 -GLAPI int GLAD_GL_EXT_unpack_subimage; -#endif -#ifndef GL_EXT_win32_keyed_mutex -#define GL_EXT_win32_keyed_mutex 1 -GLAPI int GLAD_GL_EXT_win32_keyed_mutex; -#endif -#ifndef GL_EXT_window_rectangles -#define GL_EXT_window_rectangles 1 -GLAPI int GLAD_GL_EXT_window_rectangles; -#endif -#ifndef GL_FJ_shader_binary_GCCSO -#define GL_FJ_shader_binary_GCCSO 1 -GLAPI int GLAD_GL_FJ_shader_binary_GCCSO; -#endif -#ifndef GL_IMG_bindless_texture -#define GL_IMG_bindless_texture 1 -GLAPI int GLAD_GL_IMG_bindless_texture; -typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEIMGPROC)(GLuint texture); -GLAPI PFNGLGETTEXTUREHANDLEIMGPROC glad_glGetTextureHandleIMG; -#define glGetTextureHandleIMG glad_glGetTextureHandleIMG -typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEIMGPROC)(GLuint texture, GLuint sampler); -GLAPI PFNGLGETTEXTURESAMPLERHANDLEIMGPROC glad_glGetTextureSamplerHandleIMG; -#define glGetTextureSamplerHandleIMG glad_glGetTextureSamplerHandleIMG -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64IMGPROC)(GLint location, GLuint64 value); -GLAPI PFNGLUNIFORMHANDLEUI64IMGPROC glad_glUniformHandleui64IMG; -#define glUniformHandleui64IMG glad_glUniformHandleui64IMG -typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VIMGPROC)(GLint location, GLsizei count, const GLuint64 *value); -GLAPI PFNGLUNIFORMHANDLEUI64VIMGPROC glad_glUniformHandleui64vIMG; -#define glUniformHandleui64vIMG glad_glUniformHandleui64vIMG -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64IMGPROC)(GLuint program, GLint location, GLuint64 value); -GLAPI PFNGLPROGRAMUNIFORMHANDLEUI64IMGPROC glad_glProgramUniformHandleui64IMG; -#define glProgramUniformHandleui64IMG glad_glProgramUniformHandleui64IMG -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VIMGPROC)(GLuint program, GLint location, GLsizei count, const GLuint64 *values); -GLAPI PFNGLPROGRAMUNIFORMHANDLEUI64VIMGPROC glad_glProgramUniformHandleui64vIMG; -#define glProgramUniformHandleui64vIMG glad_glProgramUniformHandleui64vIMG -#endif -#ifndef GL_IMG_framebuffer_downsample -#define GL_IMG_framebuffer_downsample 1 -GLAPI int GLAD_GL_IMG_framebuffer_downsample; -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DDOWNSAMPLEIMGPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint xscale, GLint yscale); -GLAPI PFNGLFRAMEBUFFERTEXTURE2DDOWNSAMPLEIMGPROC glad_glFramebufferTexture2DDownsampleIMG; -#define glFramebufferTexture2DDownsampleIMG glad_glFramebufferTexture2DDownsampleIMG -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERDOWNSAMPLEIMGPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer, GLint xscale, GLint yscale); -GLAPI PFNGLFRAMEBUFFERTEXTURELAYERDOWNSAMPLEIMGPROC glad_glFramebufferTextureLayerDownsampleIMG; -#define glFramebufferTextureLayerDownsampleIMG glad_glFramebufferTextureLayerDownsampleIMG -#endif -#ifndef GL_IMG_multisampled_render_to_texture -#define GL_IMG_multisampled_render_to_texture 1 -GLAPI int GLAD_GL_IMG_multisampled_render_to_texture; -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC glad_glRenderbufferStorageMultisampleIMG; -#define glRenderbufferStorageMultisampleIMG glad_glRenderbufferStorageMultisampleIMG -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples); -GLAPI PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC glad_glFramebufferTexture2DMultisampleIMG; -#define glFramebufferTexture2DMultisampleIMG glad_glFramebufferTexture2DMultisampleIMG -#endif -#ifndef GL_IMG_program_binary -#define GL_IMG_program_binary 1 -GLAPI int GLAD_GL_IMG_program_binary; -#endif -#ifndef GL_IMG_read_format -#define GL_IMG_read_format 1 -GLAPI int GLAD_GL_IMG_read_format; -#endif -#ifndef GL_IMG_shader_binary -#define GL_IMG_shader_binary 1 -GLAPI int GLAD_GL_IMG_shader_binary; -#endif -#ifndef GL_IMG_texture_compression_pvrtc -#define GL_IMG_texture_compression_pvrtc 1 -GLAPI int GLAD_GL_IMG_texture_compression_pvrtc; -#endif -#ifndef GL_IMG_texture_compression_pvrtc2 -#define GL_IMG_texture_compression_pvrtc2 1 -GLAPI int GLAD_GL_IMG_texture_compression_pvrtc2; -#endif -#ifndef GL_IMG_texture_filter_cubic -#define GL_IMG_texture_filter_cubic 1 -GLAPI int GLAD_GL_IMG_texture_filter_cubic; -#endif -#ifndef GL_INTEL_blackhole_render -#define GL_INTEL_blackhole_render 1 -GLAPI int GLAD_GL_INTEL_blackhole_render; -#endif -#ifndef GL_INTEL_conservative_rasterization -#define GL_INTEL_conservative_rasterization 1 -GLAPI int GLAD_GL_INTEL_conservative_rasterization; -#endif -#ifndef GL_INTEL_framebuffer_CMAA -#define GL_INTEL_framebuffer_CMAA 1 -GLAPI int GLAD_GL_INTEL_framebuffer_CMAA; -#endif -#ifndef GL_INTEL_performance_query -#define GL_INTEL_performance_query 1 -GLAPI int GLAD_GL_INTEL_performance_query; -#endif -#ifndef GL_KHR_blend_equation_advanced -#define GL_KHR_blend_equation_advanced 1 -GLAPI int GLAD_GL_KHR_blend_equation_advanced; -#endif -#ifndef GL_KHR_blend_equation_advanced_coherent -#define GL_KHR_blend_equation_advanced_coherent 1 -GLAPI int GLAD_GL_KHR_blend_equation_advanced_coherent; -#endif -#ifndef GL_KHR_context_flush_control -#define GL_KHR_context_flush_control 1 -GLAPI int GLAD_GL_KHR_context_flush_control; -#endif -#ifndef GL_KHR_debug -#define GL_KHR_debug 1 -GLAPI int GLAD_GL_KHR_debug; -#endif -#ifndef GL_KHR_no_error -#define GL_KHR_no_error 1 -GLAPI int GLAD_GL_KHR_no_error; -#endif -#ifndef GL_KHR_parallel_shader_compile -#define GL_KHR_parallel_shader_compile 1 -GLAPI int GLAD_GL_KHR_parallel_shader_compile; -#endif -#ifndef GL_KHR_robust_buffer_access_behavior -#define GL_KHR_robust_buffer_access_behavior 1 -GLAPI int GLAD_GL_KHR_robust_buffer_access_behavior; -#endif -#ifndef GL_KHR_robustness -#define GL_KHR_robustness 1 -GLAPI int GLAD_GL_KHR_robustness; -#endif -#ifndef GL_KHR_texture_compression_astc_hdr -#define GL_KHR_texture_compression_astc_hdr 1 -GLAPI int GLAD_GL_KHR_texture_compression_astc_hdr; -#endif -#ifndef GL_KHR_texture_compression_astc_ldr -#define GL_KHR_texture_compression_astc_ldr 1 -GLAPI int GLAD_GL_KHR_texture_compression_astc_ldr; -#endif -#ifndef GL_KHR_texture_compression_astc_sliced_3d -#define GL_KHR_texture_compression_astc_sliced_3d 1 -GLAPI int GLAD_GL_KHR_texture_compression_astc_sliced_3d; -#endif -#ifndef GL_MESA_program_binary_formats -#define GL_MESA_program_binary_formats 1 -GLAPI int GLAD_GL_MESA_program_binary_formats; -#endif -#ifndef GL_MESA_shader_integer_functions -#define GL_MESA_shader_integer_functions 1 -GLAPI int GLAD_GL_MESA_shader_integer_functions; -#endif -#ifndef GL_NVX_blend_equation_advanced_multi_draw_buffers -#define GL_NVX_blend_equation_advanced_multi_draw_buffers 1 -GLAPI int GLAD_GL_NVX_blend_equation_advanced_multi_draw_buffers; -#endif -#ifndef GL_NV_bindless_texture -#define GL_NV_bindless_texture 1 -GLAPI int GLAD_GL_NV_bindless_texture; -#endif -#ifndef GL_NV_blend_equation_advanced -#define GL_NV_blend_equation_advanced 1 -GLAPI int GLAD_GL_NV_blend_equation_advanced; -#endif -#ifndef GL_NV_blend_equation_advanced_coherent -#define GL_NV_blend_equation_advanced_coherent 1 -GLAPI int GLAD_GL_NV_blend_equation_advanced_coherent; -#endif -#ifndef GL_NV_blend_minmax_factor -#define GL_NV_blend_minmax_factor 1 -GLAPI int GLAD_GL_NV_blend_minmax_factor; -#endif -#ifndef GL_NV_clip_space_w_scaling -#define GL_NV_clip_space_w_scaling 1 -GLAPI int GLAD_GL_NV_clip_space_w_scaling; -#endif -#ifndef GL_NV_conditional_render -#define GL_NV_conditional_render 1 -GLAPI int GLAD_GL_NV_conditional_render; -#endif -#ifndef GL_NV_conservative_raster -#define GL_NV_conservative_raster 1 -GLAPI int GLAD_GL_NV_conservative_raster; -#endif -#ifndef GL_NV_conservative_raster_pre_snap -#define GL_NV_conservative_raster_pre_snap 1 -GLAPI int GLAD_GL_NV_conservative_raster_pre_snap; -#endif -#ifndef GL_NV_conservative_raster_pre_snap_triangles -#define GL_NV_conservative_raster_pre_snap_triangles 1 -GLAPI int GLAD_GL_NV_conservative_raster_pre_snap_triangles; -#endif -#ifndef GL_NV_copy_buffer -#define GL_NV_copy_buffer 1 -GLAPI int GLAD_GL_NV_copy_buffer; -typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATANVPROC)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI PFNGLCOPYBUFFERSUBDATANVPROC glad_glCopyBufferSubDataNV; -#define glCopyBufferSubDataNV glad_glCopyBufferSubDataNV -#endif -#ifndef GL_NV_coverage_sample -#define GL_NV_coverage_sample 1 -GLAPI int GLAD_GL_NV_coverage_sample; -typedef void (APIENTRYP PFNGLCOVERAGEMASKNVPROC)(GLboolean mask); -GLAPI PFNGLCOVERAGEMASKNVPROC glad_glCoverageMaskNV; -#define glCoverageMaskNV glad_glCoverageMaskNV -typedef void (APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC)(GLenum operation); -GLAPI PFNGLCOVERAGEOPERATIONNVPROC glad_glCoverageOperationNV; -#define glCoverageOperationNV glad_glCoverageOperationNV -#endif -#ifndef GL_NV_depth_nonlinear -#define GL_NV_depth_nonlinear 1 -GLAPI int GLAD_GL_NV_depth_nonlinear; -#endif -#ifndef GL_NV_draw_buffers -#define GL_NV_draw_buffers 1 -GLAPI int GLAD_GL_NV_draw_buffers; -typedef void (APIENTRYP PFNGLDRAWBUFFERSNVPROC)(GLsizei n, const GLenum *bufs); -GLAPI PFNGLDRAWBUFFERSNVPROC glad_glDrawBuffersNV; -#define glDrawBuffersNV glad_glDrawBuffersNV -#endif -#ifndef GL_NV_draw_instanced -#define GL_NV_draw_instanced 1 -GLAPI int GLAD_GL_NV_draw_instanced; -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDNVPROC)(GLenum mode, GLint first, GLsizei count, GLsizei primcount); -GLAPI PFNGLDRAWARRAYSINSTANCEDNVPROC glad_glDrawArraysInstancedNV; -#define glDrawArraysInstancedNV glad_glDrawArraysInstancedNV -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDNVPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount); -GLAPI PFNGLDRAWELEMENTSINSTANCEDNVPROC glad_glDrawElementsInstancedNV; -#define glDrawElementsInstancedNV glad_glDrawElementsInstancedNV -#endif -#ifndef GL_NV_draw_vulkan_image -#define GL_NV_draw_vulkan_image 1 -GLAPI int GLAD_GL_NV_draw_vulkan_image; -#endif -#ifndef GL_NV_explicit_attrib_location -#define GL_NV_explicit_attrib_location 1 -GLAPI int GLAD_GL_NV_explicit_attrib_location; -#endif -#ifndef GL_NV_fbo_color_attachments -#define GL_NV_fbo_color_attachments 1 -GLAPI int GLAD_GL_NV_fbo_color_attachments; -#endif -#ifndef GL_NV_fence -#define GL_NV_fence 1 -GLAPI int GLAD_GL_NV_fence; -#endif -#ifndef GL_NV_fill_rectangle -#define GL_NV_fill_rectangle 1 -GLAPI int GLAD_GL_NV_fill_rectangle; -#endif -#ifndef GL_NV_fragment_coverage_to_color -#define GL_NV_fragment_coverage_to_color 1 -GLAPI int GLAD_GL_NV_fragment_coverage_to_color; -#endif -#ifndef GL_NV_fragment_shader_interlock -#define GL_NV_fragment_shader_interlock 1 -GLAPI int GLAD_GL_NV_fragment_shader_interlock; -#endif -#ifndef GL_NV_framebuffer_blit -#define GL_NV_framebuffer_blit 1 -GLAPI int GLAD_GL_NV_framebuffer_blit; -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERNVPROC)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNGLBLITFRAMEBUFFERNVPROC glad_glBlitFramebufferNV; -#define glBlitFramebufferNV glad_glBlitFramebufferNV -#endif -#ifndef GL_NV_framebuffer_mixed_samples -#define GL_NV_framebuffer_mixed_samples 1 -GLAPI int GLAD_GL_NV_framebuffer_mixed_samples; -#endif -#ifndef GL_NV_framebuffer_multisample -#define GL_NV_framebuffer_multisample 1 -GLAPI int GLAD_GL_NV_framebuffer_multisample; -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC glad_glRenderbufferStorageMultisampleNV; -#define glRenderbufferStorageMultisampleNV glad_glRenderbufferStorageMultisampleNV -#endif -#ifndef GL_NV_generate_mipmap_sRGB -#define GL_NV_generate_mipmap_sRGB 1 -GLAPI int GLAD_GL_NV_generate_mipmap_sRGB; -#endif -#ifndef GL_NV_geometry_shader_passthrough -#define GL_NV_geometry_shader_passthrough 1 -GLAPI int GLAD_GL_NV_geometry_shader_passthrough; -#endif -#ifndef GL_NV_gpu_shader5 -#define GL_NV_gpu_shader5 1 -GLAPI int GLAD_GL_NV_gpu_shader5; -#endif -#ifndef GL_NV_image_formats -#define GL_NV_image_formats 1 -GLAPI int GLAD_GL_NV_image_formats; -#endif -#ifndef GL_NV_instanced_arrays -#define GL_NV_instanced_arrays 1 -GLAPI int GLAD_GL_NV_instanced_arrays; -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORNVPROC)(GLuint index, GLuint divisor); -GLAPI PFNGLVERTEXATTRIBDIVISORNVPROC glad_glVertexAttribDivisorNV; -#define glVertexAttribDivisorNV glad_glVertexAttribDivisorNV -#endif -#ifndef GL_NV_internalformat_sample_query -#define GL_NV_internalformat_sample_query 1 -GLAPI int GLAD_GL_NV_internalformat_sample_query; -#endif -#ifndef GL_NV_non_square_matrices -#define GL_NV_non_square_matrices 1 -GLAPI int GLAD_GL_NV_non_square_matrices; -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVNVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX2X3FVNVPROC glad_glUniformMatrix2x3fvNV; -#define glUniformMatrix2x3fvNV glad_glUniformMatrix2x3fvNV -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVNVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX3X2FVNVPROC glad_glUniformMatrix3x2fvNV; -#define glUniformMatrix3x2fvNV glad_glUniformMatrix3x2fvNV -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVNVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX2X4FVNVPROC glad_glUniformMatrix2x4fvNV; -#define glUniformMatrix2x4fvNV glad_glUniformMatrix2x4fvNV -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVNVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX4X2FVNVPROC glad_glUniformMatrix4x2fvNV; -#define glUniformMatrix4x2fvNV glad_glUniformMatrix4x2fvNV -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVNVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX3X4FVNVPROC glad_glUniformMatrix3x4fvNV; -#define glUniformMatrix3x4fvNV glad_glUniformMatrix3x4fvNV -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVNVPROC)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI PFNGLUNIFORMMATRIX4X3FVNVPROC glad_glUniformMatrix4x3fvNV; -#define glUniformMatrix4x3fvNV glad_glUniformMatrix4x3fvNV -#endif -#ifndef GL_NV_path_rendering -#define GL_NV_path_rendering 1 -GLAPI int GLAD_GL_NV_path_rendering; -#endif -#ifndef GL_NV_path_rendering_shared_edge -#define GL_NV_path_rendering_shared_edge 1 -GLAPI int GLAD_GL_NV_path_rendering_shared_edge; -#endif -#ifndef GL_NV_pixel_buffer_object -#define GL_NV_pixel_buffer_object 1 -GLAPI int GLAD_GL_NV_pixel_buffer_object; -#endif -#ifndef GL_NV_polygon_mode -#define GL_NV_polygon_mode 1 -GLAPI int GLAD_GL_NV_polygon_mode; -typedef void (APIENTRYP PFNGLPOLYGONMODENVPROC)(GLenum face, GLenum mode); -GLAPI PFNGLPOLYGONMODENVPROC glad_glPolygonModeNV; -#define glPolygonModeNV glad_glPolygonModeNV -#endif -#ifndef GL_NV_read_buffer -#define GL_NV_read_buffer 1 -GLAPI int GLAD_GL_NV_read_buffer; -typedef void (APIENTRYP PFNGLREADBUFFERNVPROC)(GLenum mode); -GLAPI PFNGLREADBUFFERNVPROC glad_glReadBufferNV; -#define glReadBufferNV glad_glReadBufferNV -#endif -#ifndef GL_NV_read_buffer_front -#define GL_NV_read_buffer_front 1 -GLAPI int GLAD_GL_NV_read_buffer_front; -#endif -#ifndef GL_NV_read_depth -#define GL_NV_read_depth 1 -GLAPI int GLAD_GL_NV_read_depth; -#endif -#ifndef GL_NV_read_depth_stencil -#define GL_NV_read_depth_stencil 1 -GLAPI int GLAD_GL_NV_read_depth_stencil; -#endif -#ifndef GL_NV_read_stencil -#define GL_NV_read_stencil 1 -GLAPI int GLAD_GL_NV_read_stencil; -#endif -#ifndef GL_NV_sRGB_formats -#define GL_NV_sRGB_formats 1 -GLAPI int GLAD_GL_NV_sRGB_formats; -#endif -#ifndef GL_NV_sample_locations -#define GL_NV_sample_locations 1 -GLAPI int GLAD_GL_NV_sample_locations; -#endif -#ifndef GL_NV_sample_mask_override_coverage -#define GL_NV_sample_mask_override_coverage 1 -GLAPI int GLAD_GL_NV_sample_mask_override_coverage; -#endif -#ifndef GL_NV_shader_atomic_fp16_vector -#define GL_NV_shader_atomic_fp16_vector 1 -GLAPI int GLAD_GL_NV_shader_atomic_fp16_vector; -#endif -#ifndef GL_NV_shader_noperspective_interpolation -#define GL_NV_shader_noperspective_interpolation 1 -GLAPI int GLAD_GL_NV_shader_noperspective_interpolation; -#endif -#ifndef GL_NV_shadow_samplers_array -#define GL_NV_shadow_samplers_array 1 -GLAPI int GLAD_GL_NV_shadow_samplers_array; -#endif -#ifndef GL_NV_shadow_samplers_cube -#define GL_NV_shadow_samplers_cube 1 -GLAPI int GLAD_GL_NV_shadow_samplers_cube; -#endif -#ifndef GL_NV_stereo_view_rendering -#define GL_NV_stereo_view_rendering 1 -GLAPI int GLAD_GL_NV_stereo_view_rendering; -#endif -#ifndef GL_NV_texture_border_clamp -#define GL_NV_texture_border_clamp 1 -GLAPI int GLAD_GL_NV_texture_border_clamp; -#endif -#ifndef GL_NV_texture_compression_s3tc_update -#define GL_NV_texture_compression_s3tc_update 1 -GLAPI int GLAD_GL_NV_texture_compression_s3tc_update; -#endif -#ifndef GL_NV_texture_npot_2D_mipmap -#define GL_NV_texture_npot_2D_mipmap 1 -GLAPI int GLAD_GL_NV_texture_npot_2D_mipmap; -#endif -#ifndef GL_NV_viewport_array -#define GL_NV_viewport_array 1 -GLAPI int GLAD_GL_NV_viewport_array; -typedef void (APIENTRYP PFNGLVIEWPORTARRAYVNVPROC)(GLuint first, GLsizei count, const GLfloat *v); -GLAPI PFNGLVIEWPORTARRAYVNVPROC glad_glViewportArrayvNV; -#define glViewportArrayvNV glad_glViewportArrayvNV -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFNVPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -GLAPI PFNGLVIEWPORTINDEXEDFNVPROC glad_glViewportIndexedfNV; -#define glViewportIndexedfNV glad_glViewportIndexedfNV -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVNVPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVIEWPORTINDEXEDFVNVPROC glad_glViewportIndexedfvNV; -#define glViewportIndexedfvNV glad_glViewportIndexedfvNV -typedef void (APIENTRYP PFNGLSCISSORARRAYVNVPROC)(GLuint first, GLsizei count, const GLint *v); -GLAPI PFNGLSCISSORARRAYVNVPROC glad_glScissorArrayvNV; -#define glScissorArrayvNV glad_glScissorArrayvNV -typedef void (APIENTRYP PFNGLSCISSORINDEXEDNVPROC)(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -GLAPI PFNGLSCISSORINDEXEDNVPROC glad_glScissorIndexedNV; -#define glScissorIndexedNV glad_glScissorIndexedNV -typedef void (APIENTRYP PFNGLSCISSORINDEXEDVNVPROC)(GLuint index, const GLint *v); -GLAPI PFNGLSCISSORINDEXEDVNVPROC glad_glScissorIndexedvNV; -#define glScissorIndexedvNV glad_glScissorIndexedvNV -typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYFVNVPROC)(GLuint first, GLsizei count, const GLfloat *v); -GLAPI PFNGLDEPTHRANGEARRAYFVNVPROC glad_glDepthRangeArrayfvNV; -#define glDepthRangeArrayfvNV glad_glDepthRangeArrayfvNV -typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDFNVPROC)(GLuint index, GLfloat n, GLfloat f); -GLAPI PFNGLDEPTHRANGEINDEXEDFNVPROC glad_glDepthRangeIndexedfNV; -#define glDepthRangeIndexedfNV glad_glDepthRangeIndexedfNV -typedef void (APIENTRYP PFNGLGETFLOATI_VNVPROC)(GLenum target, GLuint index, GLfloat *data); -GLAPI PFNGLGETFLOATI_VNVPROC glad_glGetFloati_vNV; -#define glGetFloati_vNV glad_glGetFloati_vNV -typedef void (APIENTRYP PFNGLENABLEINVPROC)(GLenum target, GLuint index); -GLAPI PFNGLENABLEINVPROC glad_glEnableiNV; -#define glEnableiNV glad_glEnableiNV -typedef void (APIENTRYP PFNGLDISABLEINVPROC)(GLenum target, GLuint index); -GLAPI PFNGLDISABLEINVPROC glad_glDisableiNV; -#define glDisableiNV glad_glDisableiNV -typedef GLboolean (APIENTRYP PFNGLISENABLEDINVPROC)(GLenum target, GLuint index); -GLAPI PFNGLISENABLEDINVPROC glad_glIsEnablediNV; -#define glIsEnablediNV glad_glIsEnablediNV -#endif -#ifndef GL_NV_viewport_array2 -#define GL_NV_viewport_array2 1 -GLAPI int GLAD_GL_NV_viewport_array2; -#endif -#ifndef GL_NV_viewport_swizzle -#define GL_NV_viewport_swizzle 1 -GLAPI int GLAD_GL_NV_viewport_swizzle; -#endif -#ifndef GL_OES_EGL_image -#define GL_OES_EGL_image 1 -GLAPI int GLAD_GL_OES_EGL_image; -typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)(GLenum target, GLeglImageOES image); -GLAPI PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glad_glEGLImageTargetTexture2DOES; -#define glEGLImageTargetTexture2DOES glad_glEGLImageTargetTexture2DOES -typedef void (APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC)(GLenum target, GLeglImageOES image); -GLAPI PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glad_glEGLImageTargetRenderbufferStorageOES; -#define glEGLImageTargetRenderbufferStorageOES glad_glEGLImageTargetRenderbufferStorageOES -#endif -#ifndef GL_OES_EGL_image_external -#define GL_OES_EGL_image_external 1 -GLAPI int GLAD_GL_OES_EGL_image_external; -#endif -#ifndef GL_OES_EGL_image_external_essl3 -#define GL_OES_EGL_image_external_essl3 1 -GLAPI int GLAD_GL_OES_EGL_image_external_essl3; -#endif -#ifndef GL_OES_compressed_ETC1_RGB8_sub_texture -#define GL_OES_compressed_ETC1_RGB8_sub_texture 1 -GLAPI int GLAD_GL_OES_compressed_ETC1_RGB8_sub_texture; -#endif -#ifndef GL_OES_compressed_ETC1_RGB8_texture -#define GL_OES_compressed_ETC1_RGB8_texture 1 -GLAPI int GLAD_GL_OES_compressed_ETC1_RGB8_texture; -#endif -#ifndef GL_OES_compressed_paletted_texture -#define GL_OES_compressed_paletted_texture 1 -GLAPI int GLAD_GL_OES_compressed_paletted_texture; -#endif -#ifndef GL_OES_copy_image -#define GL_OES_copy_image 1 -GLAPI int GLAD_GL_OES_copy_image; -typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAOESPROC)(GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -GLAPI PFNGLCOPYIMAGESUBDATAOESPROC glad_glCopyImageSubDataOES; -#define glCopyImageSubDataOES glad_glCopyImageSubDataOES -#endif -#ifndef GL_OES_depth24 -#define GL_OES_depth24 1 -GLAPI int GLAD_GL_OES_depth24; -#endif -#ifndef GL_OES_depth32 -#define GL_OES_depth32 1 -GLAPI int GLAD_GL_OES_depth32; -#endif -#ifndef GL_OES_depth_texture -#define GL_OES_depth_texture 1 -GLAPI int GLAD_GL_OES_depth_texture; -#endif -#ifndef GL_OES_draw_buffers_indexed -#define GL_OES_draw_buffers_indexed 1 -GLAPI int GLAD_GL_OES_draw_buffers_indexed; -typedef void (APIENTRYP PFNGLENABLEIOESPROC)(GLenum target, GLuint index); -GLAPI PFNGLENABLEIOESPROC glad_glEnableiOES; -#define glEnableiOES glad_glEnableiOES -typedef void (APIENTRYP PFNGLDISABLEIOESPROC)(GLenum target, GLuint index); -GLAPI PFNGLDISABLEIOESPROC glad_glDisableiOES; -#define glDisableiOES glad_glDisableiOES -typedef void (APIENTRYP PFNGLBLENDEQUATIONIOESPROC)(GLuint buf, GLenum mode); -GLAPI PFNGLBLENDEQUATIONIOESPROC glad_glBlendEquationiOES; -#define glBlendEquationiOES glad_glBlendEquationiOES -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIOESPROC)(GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI PFNGLBLENDEQUATIONSEPARATEIOESPROC glad_glBlendEquationSeparateiOES; -#define glBlendEquationSeparateiOES glad_glBlendEquationSeparateiOES -typedef void (APIENTRYP PFNGLBLENDFUNCIOESPROC)(GLuint buf, GLenum src, GLenum dst); -GLAPI PFNGLBLENDFUNCIOESPROC glad_glBlendFunciOES; -#define glBlendFunciOES glad_glBlendFunciOES -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIOESPROC)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -GLAPI PFNGLBLENDFUNCSEPARATEIOESPROC glad_glBlendFuncSeparateiOES; -#define glBlendFuncSeparateiOES glad_glBlendFuncSeparateiOES -typedef void (APIENTRYP PFNGLCOLORMASKIOESPROC)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -GLAPI PFNGLCOLORMASKIOESPROC glad_glColorMaskiOES; -#define glColorMaskiOES glad_glColorMaskiOES -typedef GLboolean (APIENTRYP PFNGLISENABLEDIOESPROC)(GLenum target, GLuint index); -GLAPI PFNGLISENABLEDIOESPROC glad_glIsEnablediOES; -#define glIsEnablediOES glad_glIsEnablediOES -#endif -#ifndef GL_OES_draw_elements_base_vertex -#define GL_OES_draw_elements_base_vertex 1 -GLAPI int GLAD_GL_OES_draw_elements_base_vertex; -typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXOESPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex); -GLAPI PFNGLDRAWELEMENTSBASEVERTEXOESPROC glad_glDrawElementsBaseVertexOES; -#define glDrawElementsBaseVertexOES glad_glDrawElementsBaseVertexOES -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex); -GLAPI PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC glad_glDrawRangeElementsBaseVertexOES; -#define glDrawRangeElementsBaseVertexOES glad_glDrawRangeElementsBaseVertexOES -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXOESPROC)(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex); -GLAPI PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXOESPROC glad_glDrawElementsInstancedBaseVertexOES; -#define glDrawElementsInstancedBaseVertexOES glad_glDrawElementsInstancedBaseVertexOES -#endif -#ifndef GL_OES_element_index_uint -#define GL_OES_element_index_uint 1 -GLAPI int GLAD_GL_OES_element_index_uint; -#endif -#ifndef GL_OES_fbo_render_mipmap -#define GL_OES_fbo_render_mipmap 1 -GLAPI int GLAD_GL_OES_fbo_render_mipmap; -#endif -#ifndef GL_OES_fragment_precision_high -#define GL_OES_fragment_precision_high 1 -GLAPI int GLAD_GL_OES_fragment_precision_high; -#endif -#ifndef GL_OES_geometry_point_size -#define GL_OES_geometry_point_size 1 -GLAPI int GLAD_GL_OES_geometry_point_size; -#endif -#ifndef GL_OES_geometry_shader -#define GL_OES_geometry_shader 1 -GLAPI int GLAD_GL_OES_geometry_shader; -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREOESPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level); -GLAPI PFNGLFRAMEBUFFERTEXTUREOESPROC glad_glFramebufferTextureOES; -#define glFramebufferTextureOES glad_glFramebufferTextureOES -#endif -#ifndef GL_OES_get_program_binary -#define GL_OES_get_program_binary 1 -GLAPI int GLAD_GL_OES_get_program_binary; -typedef void (APIENTRYP PFNGLGETPROGRAMBINARYOESPROC)(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary); -GLAPI PFNGLGETPROGRAMBINARYOESPROC glad_glGetProgramBinaryOES; -#define glGetProgramBinaryOES glad_glGetProgramBinaryOES -typedef void (APIENTRYP PFNGLPROGRAMBINARYOESPROC)(GLuint program, GLenum binaryFormat, const void *binary, GLint length); -GLAPI PFNGLPROGRAMBINARYOESPROC glad_glProgramBinaryOES; -#define glProgramBinaryOES glad_glProgramBinaryOES -#endif -#ifndef GL_OES_gpu_shader5 -#define GL_OES_gpu_shader5 1 -GLAPI int GLAD_GL_OES_gpu_shader5; -#endif -#ifndef GL_OES_mapbuffer -#define GL_OES_mapbuffer 1 -GLAPI int GLAD_GL_OES_mapbuffer; -typedef void * (APIENTRYP PFNGLMAPBUFFEROESPROC)(GLenum target, GLenum access); -GLAPI PFNGLMAPBUFFEROESPROC glad_glMapBufferOES; -#define glMapBufferOES glad_glMapBufferOES -typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFEROESPROC)(GLenum target); -GLAPI PFNGLUNMAPBUFFEROESPROC glad_glUnmapBufferOES; -#define glUnmapBufferOES glad_glUnmapBufferOES -typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC)(GLenum target, GLenum pname, void **params); -GLAPI PFNGLGETBUFFERPOINTERVOESPROC glad_glGetBufferPointervOES; -#define glGetBufferPointervOES glad_glGetBufferPointervOES -#endif -#ifndef GL_OES_packed_depth_stencil -#define GL_OES_packed_depth_stencil 1 -GLAPI int GLAD_GL_OES_packed_depth_stencil; -#endif -#ifndef GL_OES_primitive_bounding_box -#define GL_OES_primitive_bounding_box 1 -GLAPI int GLAD_GL_OES_primitive_bounding_box; -typedef void (APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXOESPROC)(GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW); -GLAPI PFNGLPRIMITIVEBOUNDINGBOXOESPROC glad_glPrimitiveBoundingBoxOES; -#define glPrimitiveBoundingBoxOES glad_glPrimitiveBoundingBoxOES -#endif -#ifndef GL_OES_required_internalformat -#define GL_OES_required_internalformat 1 -GLAPI int GLAD_GL_OES_required_internalformat; -#endif -#ifndef GL_OES_rgb8_rgba8 -#define GL_OES_rgb8_rgba8 1 -GLAPI int GLAD_GL_OES_rgb8_rgba8; -#endif -#ifndef GL_OES_sample_shading -#define GL_OES_sample_shading 1 -GLAPI int GLAD_GL_OES_sample_shading; -typedef void (APIENTRYP PFNGLMINSAMPLESHADINGOESPROC)(GLfloat value); -GLAPI PFNGLMINSAMPLESHADINGOESPROC glad_glMinSampleShadingOES; -#define glMinSampleShadingOES glad_glMinSampleShadingOES -#endif -#ifndef GL_OES_sample_variables -#define GL_OES_sample_variables 1 -GLAPI int GLAD_GL_OES_sample_variables; -#endif -#ifndef GL_OES_shader_image_atomic -#define GL_OES_shader_image_atomic 1 -GLAPI int GLAD_GL_OES_shader_image_atomic; -#endif -#ifndef GL_OES_shader_io_blocks -#define GL_OES_shader_io_blocks 1 -GLAPI int GLAD_GL_OES_shader_io_blocks; -#endif -#ifndef GL_OES_shader_multisample_interpolation -#define GL_OES_shader_multisample_interpolation 1 -GLAPI int GLAD_GL_OES_shader_multisample_interpolation; -#endif -#ifndef GL_OES_standard_derivatives -#define GL_OES_standard_derivatives 1 -GLAPI int GLAD_GL_OES_standard_derivatives; -#endif -#ifndef GL_OES_stencil1 -#define GL_OES_stencil1 1 -GLAPI int GLAD_GL_OES_stencil1; -#endif -#ifndef GL_OES_stencil4 -#define GL_OES_stencil4 1 -GLAPI int GLAD_GL_OES_stencil4; -#endif -#ifndef GL_OES_surfaceless_context -#define GL_OES_surfaceless_context 1 -GLAPI int GLAD_GL_OES_surfaceless_context; -#endif -#ifndef GL_OES_tessellation_point_size -#define GL_OES_tessellation_point_size 1 -GLAPI int GLAD_GL_OES_tessellation_point_size; -#endif -#ifndef GL_OES_tessellation_shader -#define GL_OES_tessellation_shader 1 -GLAPI int GLAD_GL_OES_tessellation_shader; -typedef void (APIENTRYP PFNGLPATCHPARAMETERIOESPROC)(GLenum pname, GLint value); -GLAPI PFNGLPATCHPARAMETERIOESPROC glad_glPatchParameteriOES; -#define glPatchParameteriOES glad_glPatchParameteriOES -#endif -#ifndef GL_OES_texture_3D -#define GL_OES_texture_3D 1 -GLAPI int GLAD_GL_OES_texture_3D; -typedef void (APIENTRYP PFNGLTEXIMAGE3DOESPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXIMAGE3DOESPROC glad_glTexImage3DOES; -#define glTexImage3DOES glad_glTexImage3DOES -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels); -GLAPI PFNGLTEXSUBIMAGE3DOESPROC glad_glTexSubImage3DOES; -#define glTexSubImage3DOES glad_glTexSubImage3DOES -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI PFNGLCOPYTEXSUBIMAGE3DOESPROC glad_glCopyTexSubImage3DOES; -#define glCopyTexSubImage3DOES glad_glCopyTexSubImage3DOES -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXIMAGE3DOESPROC glad_glCompressedTexImage3DOES; -#define glCompressedTexImage3DOES glad_glCompressedTexImage3DOES -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data); -GLAPI PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC glad_glCompressedTexSubImage3DOES; -#define glCompressedTexSubImage3DOES glad_glCompressedTexSubImage3DOES -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOESPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI PFNGLFRAMEBUFFERTEXTURE3DOESPROC glad_glFramebufferTexture3DOES; -#define glFramebufferTexture3DOES glad_glFramebufferTexture3DOES -#endif -#ifndef GL_OES_texture_border_clamp -#define GL_OES_texture_border_clamp 1 -GLAPI int GLAD_GL_OES_texture_border_clamp; -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVOESPROC)(GLenum target, GLenum pname, const GLint *params); -GLAPI PFNGLTEXPARAMETERIIVOESPROC glad_glTexParameterIivOES; -#define glTexParameterIivOES glad_glTexParameterIivOES -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVOESPROC)(GLenum target, GLenum pname, const GLuint *params); -GLAPI PFNGLTEXPARAMETERIUIVOESPROC glad_glTexParameterIuivOES; -#define glTexParameterIuivOES glad_glTexParameterIuivOES -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVOESPROC)(GLenum target, GLenum pname, GLint *params); -GLAPI PFNGLGETTEXPARAMETERIIVOESPROC glad_glGetTexParameterIivOES; -#define glGetTexParameterIivOES glad_glGetTexParameterIivOES -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVOESPROC)(GLenum target, GLenum pname, GLuint *params); -GLAPI PFNGLGETTEXPARAMETERIUIVOESPROC glad_glGetTexParameterIuivOES; -#define glGetTexParameterIuivOES glad_glGetTexParameterIuivOES -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVOESPROC)(GLuint sampler, GLenum pname, const GLint *param); -GLAPI PFNGLSAMPLERPARAMETERIIVOESPROC glad_glSamplerParameterIivOES; -#define glSamplerParameterIivOES glad_glSamplerParameterIivOES -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVOESPROC)(GLuint sampler, GLenum pname, const GLuint *param); -GLAPI PFNGLSAMPLERPARAMETERIUIVOESPROC glad_glSamplerParameterIuivOES; -#define glSamplerParameterIuivOES glad_glSamplerParameterIuivOES -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVOESPROC)(GLuint sampler, GLenum pname, GLint *params); -GLAPI PFNGLGETSAMPLERPARAMETERIIVOESPROC glad_glGetSamplerParameterIivOES; -#define glGetSamplerParameterIivOES glad_glGetSamplerParameterIivOES -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVOESPROC)(GLuint sampler, GLenum pname, GLuint *params); -GLAPI PFNGLGETSAMPLERPARAMETERIUIVOESPROC glad_glGetSamplerParameterIuivOES; -#define glGetSamplerParameterIuivOES glad_glGetSamplerParameterIuivOES -#endif -#ifndef GL_OES_texture_buffer -#define GL_OES_texture_buffer 1 -GLAPI int GLAD_GL_OES_texture_buffer; -typedef void (APIENTRYP PFNGLTEXBUFFEROESPROC)(GLenum target, GLenum internalformat, GLuint buffer); -GLAPI PFNGLTEXBUFFEROESPROC glad_glTexBufferOES; -#define glTexBufferOES glad_glTexBufferOES -typedef void (APIENTRYP PFNGLTEXBUFFERRANGEOESPROC)(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI PFNGLTEXBUFFERRANGEOESPROC glad_glTexBufferRangeOES; -#define glTexBufferRangeOES glad_glTexBufferRangeOES -#endif -#ifndef GL_OES_texture_compression_astc -#define GL_OES_texture_compression_astc 1 -GLAPI int GLAD_GL_OES_texture_compression_astc; -#endif -#ifndef GL_OES_texture_cube_map_array -#define GL_OES_texture_cube_map_array 1 -GLAPI int GLAD_GL_OES_texture_cube_map_array; -#endif -#ifndef GL_OES_texture_float -#define GL_OES_texture_float 1 -GLAPI int GLAD_GL_OES_texture_float; -#endif -#ifndef GL_OES_texture_float_linear -#define GL_OES_texture_float_linear 1 -GLAPI int GLAD_GL_OES_texture_float_linear; -#endif -#ifndef GL_OES_texture_half_float -#define GL_OES_texture_half_float 1 -GLAPI int GLAD_GL_OES_texture_half_float; -#endif -#ifndef GL_OES_texture_half_float_linear -#define GL_OES_texture_half_float_linear 1 -GLAPI int GLAD_GL_OES_texture_half_float_linear; -#endif -#ifndef GL_OES_texture_npot -#define GL_OES_texture_npot 1 -GLAPI int GLAD_GL_OES_texture_npot; -#endif -#ifndef GL_OES_texture_stencil8 -#define GL_OES_texture_stencil8 1 -GLAPI int GLAD_GL_OES_texture_stencil8; -#endif -#ifndef GL_OES_texture_storage_multisample_2d_array -#define GL_OES_texture_storage_multisample_2d_array 1 -GLAPI int GLAD_GL_OES_texture_storage_multisample_2d_array; -typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEOESPROC)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI PFNGLTEXSTORAGE3DMULTISAMPLEOESPROC glad_glTexStorage3DMultisampleOES; -#define glTexStorage3DMultisampleOES glad_glTexStorage3DMultisampleOES -#endif -#ifndef GL_OES_texture_view -#define GL_OES_texture_view 1 -GLAPI int GLAD_GL_OES_texture_view; -typedef void (APIENTRYP PFNGLTEXTUREVIEWOESPROC)(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); -GLAPI PFNGLTEXTUREVIEWOESPROC glad_glTextureViewOES; -#define glTextureViewOES glad_glTextureViewOES -#endif -#ifndef GL_OES_vertex_array_object -#define GL_OES_vertex_array_object 1 -GLAPI int GLAD_GL_OES_vertex_array_object; -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYOESPROC)(GLuint array); -GLAPI PFNGLBINDVERTEXARRAYOESPROC glad_glBindVertexArrayOES; -#define glBindVertexArrayOES glad_glBindVertexArrayOES -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC)(GLsizei n, const GLuint *arrays); -GLAPI PFNGLDELETEVERTEXARRAYSOESPROC glad_glDeleteVertexArraysOES; -#define glDeleteVertexArraysOES glad_glDeleteVertexArraysOES -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSOESPROC)(GLsizei n, GLuint *arrays); -GLAPI PFNGLGENVERTEXARRAYSOESPROC glad_glGenVertexArraysOES; -#define glGenVertexArraysOES glad_glGenVertexArraysOES -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYOESPROC)(GLuint array); -GLAPI PFNGLISVERTEXARRAYOESPROC glad_glIsVertexArrayOES; -#define glIsVertexArrayOES glad_glIsVertexArrayOES -#endif -#ifndef GL_OES_vertex_half_float -#define GL_OES_vertex_half_float 1 -GLAPI int GLAD_GL_OES_vertex_half_float; -#endif -#ifndef GL_OES_vertex_type_10_10_10_2 -#define GL_OES_vertex_type_10_10_10_2 1 -GLAPI int GLAD_GL_OES_vertex_type_10_10_10_2; -#endif -#ifndef GL_OES_viewport_array -#define GL_OES_viewport_array 1 -GLAPI int GLAD_GL_OES_viewport_array; -typedef void (APIENTRYP PFNGLVIEWPORTARRAYVOESPROC)(GLuint first, GLsizei count, const GLfloat *v); -GLAPI PFNGLVIEWPORTARRAYVOESPROC glad_glViewportArrayvOES; -#define glViewportArrayvOES glad_glViewportArrayvOES -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFOESPROC)(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -GLAPI PFNGLVIEWPORTINDEXEDFOESPROC glad_glViewportIndexedfOES; -#define glViewportIndexedfOES glad_glViewportIndexedfOES -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVOESPROC)(GLuint index, const GLfloat *v); -GLAPI PFNGLVIEWPORTINDEXEDFVOESPROC glad_glViewportIndexedfvOES; -#define glViewportIndexedfvOES glad_glViewportIndexedfvOES -typedef void (APIENTRYP PFNGLSCISSORARRAYVOESPROC)(GLuint first, GLsizei count, const GLint *v); -GLAPI PFNGLSCISSORARRAYVOESPROC glad_glScissorArrayvOES; -#define glScissorArrayvOES glad_glScissorArrayvOES -typedef void (APIENTRYP PFNGLSCISSORINDEXEDOESPROC)(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -GLAPI PFNGLSCISSORINDEXEDOESPROC glad_glScissorIndexedOES; -#define glScissorIndexedOES glad_glScissorIndexedOES -typedef void (APIENTRYP PFNGLSCISSORINDEXEDVOESPROC)(GLuint index, const GLint *v); -GLAPI PFNGLSCISSORINDEXEDVOESPROC glad_glScissorIndexedvOES; -#define glScissorIndexedvOES glad_glScissorIndexedvOES -typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYFVOESPROC)(GLuint first, GLsizei count, const GLfloat *v); -GLAPI PFNGLDEPTHRANGEARRAYFVOESPROC glad_glDepthRangeArrayfvOES; -#define glDepthRangeArrayfvOES glad_glDepthRangeArrayfvOES -typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDFOESPROC)(GLuint index, GLfloat n, GLfloat f); -GLAPI PFNGLDEPTHRANGEINDEXEDFOESPROC glad_glDepthRangeIndexedfOES; -#define glDepthRangeIndexedfOES glad_glDepthRangeIndexedfOES -typedef void (APIENTRYP PFNGLGETFLOATI_VOESPROC)(GLenum target, GLuint index, GLfloat *data); -GLAPI PFNGLGETFLOATI_VOESPROC glad_glGetFloati_vOES; -#define glGetFloati_vOES glad_glGetFloati_vOES -#endif -#ifndef GL_OVR_multiview -#define GL_OVR_multiview 1 -GLAPI int GLAD_GL_OVR_multiview; -#endif -#ifndef GL_OVR_multiview2 -#define GL_OVR_multiview2 1 -GLAPI int GLAD_GL_OVR_multiview2; -#endif -#ifndef GL_OVR_multiview_multisampled_render_to_texture -#define GL_OVR_multiview_multisampled_render_to_texture 1 -GLAPI int GLAD_GL_OVR_multiview_multisampled_render_to_texture; -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTISAMPLEMULTIVIEWOVRPROC)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLsizei samples, GLint baseViewIndex, GLsizei numViews); -GLAPI PFNGLFRAMEBUFFERTEXTUREMULTISAMPLEMULTIVIEWOVRPROC glad_glFramebufferTextureMultisampleMultiviewOVR; -#define glFramebufferTextureMultisampleMultiviewOVR glad_glFramebufferTextureMultisampleMultiviewOVR -#endif -#ifndef GL_QCOM_alpha_test -#define GL_QCOM_alpha_test 1 -GLAPI int GLAD_GL_QCOM_alpha_test; -typedef void (APIENTRYP PFNGLALPHAFUNCQCOMPROC)(GLenum func, GLclampf ref); -GLAPI PFNGLALPHAFUNCQCOMPROC glad_glAlphaFuncQCOM; -#define glAlphaFuncQCOM glad_glAlphaFuncQCOM -#endif -#ifndef GL_QCOM_binning_control -#define GL_QCOM_binning_control 1 -GLAPI int GLAD_GL_QCOM_binning_control; -#endif -#ifndef GL_QCOM_driver_control -#define GL_QCOM_driver_control 1 -GLAPI int GLAD_GL_QCOM_driver_control; -typedef void (APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC)(GLint *num, GLsizei size, GLuint *driverControls); -GLAPI PFNGLGETDRIVERCONTROLSQCOMPROC glad_glGetDriverControlsQCOM; -#define glGetDriverControlsQCOM glad_glGetDriverControlsQCOM -typedef void (APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC)(GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString); -GLAPI PFNGLGETDRIVERCONTROLSTRINGQCOMPROC glad_glGetDriverControlStringQCOM; -#define glGetDriverControlStringQCOM glad_glGetDriverControlStringQCOM -typedef void (APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC)(GLuint driverControl); -GLAPI PFNGLENABLEDRIVERCONTROLQCOMPROC glad_glEnableDriverControlQCOM; -#define glEnableDriverControlQCOM glad_glEnableDriverControlQCOM -typedef void (APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC)(GLuint driverControl); -GLAPI PFNGLDISABLEDRIVERCONTROLQCOMPROC glad_glDisableDriverControlQCOM; -#define glDisableDriverControlQCOM glad_glDisableDriverControlQCOM -#endif -#ifndef GL_QCOM_extended_get -#define GL_QCOM_extended_get 1 -GLAPI int GLAD_GL_QCOM_extended_get; -typedef void (APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC)(GLuint *textures, GLint maxTextures, GLint *numTextures); -GLAPI PFNGLEXTGETTEXTURESQCOMPROC glad_glExtGetTexturesQCOM; -#define glExtGetTexturesQCOM glad_glExtGetTexturesQCOM -typedef void (APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC)(GLuint *buffers, GLint maxBuffers, GLint *numBuffers); -GLAPI PFNGLEXTGETBUFFERSQCOMPROC glad_glExtGetBuffersQCOM; -#define glExtGetBuffersQCOM glad_glExtGetBuffersQCOM -typedef void (APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC)(GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers); -GLAPI PFNGLEXTGETRENDERBUFFERSQCOMPROC glad_glExtGetRenderbuffersQCOM; -#define glExtGetRenderbuffersQCOM glad_glExtGetRenderbuffersQCOM -typedef void (APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC)(GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers); -GLAPI PFNGLEXTGETFRAMEBUFFERSQCOMPROC glad_glExtGetFramebuffersQCOM; -#define glExtGetFramebuffersQCOM glad_glExtGetFramebuffersQCOM -typedef void (APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC)(GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params); -GLAPI PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC glad_glExtGetTexLevelParameterivQCOM; -#define glExtGetTexLevelParameterivQCOM glad_glExtGetTexLevelParameterivQCOM -typedef void (APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC)(GLenum target, GLenum pname, GLint param); -GLAPI PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC glad_glExtTexObjectStateOverrideiQCOM; -#define glExtTexObjectStateOverrideiQCOM glad_glExtTexObjectStateOverrideiQCOM -typedef void (APIENTRYP PFNGLEXTGETTEXSUBIMAGEQCOMPROC)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void *texels); -GLAPI PFNGLEXTGETTEXSUBIMAGEQCOMPROC glad_glExtGetTexSubImageQCOM; -#define glExtGetTexSubImageQCOM glad_glExtGetTexSubImageQCOM -typedef void (APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC)(GLenum target, void **params); -GLAPI PFNGLEXTGETBUFFERPOINTERVQCOMPROC glad_glExtGetBufferPointervQCOM; -#define glExtGetBufferPointervQCOM glad_glExtGetBufferPointervQCOM -#endif -#ifndef GL_QCOM_extended_get2 -#define GL_QCOM_extended_get2 1 -GLAPI int GLAD_GL_QCOM_extended_get2; -typedef void (APIENTRYP PFNGLEXTGETSHADERSQCOMPROC)(GLuint *shaders, GLint maxShaders, GLint *numShaders); -GLAPI PFNGLEXTGETSHADERSQCOMPROC glad_glExtGetShadersQCOM; -#define glExtGetShadersQCOM glad_glExtGetShadersQCOM -typedef void (APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC)(GLuint *programs, GLint maxPrograms, GLint *numPrograms); -GLAPI PFNGLEXTGETPROGRAMSQCOMPROC glad_glExtGetProgramsQCOM; -#define glExtGetProgramsQCOM glad_glExtGetProgramsQCOM -typedef GLboolean (APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC)(GLuint program); -GLAPI PFNGLEXTISPROGRAMBINARYQCOMPROC glad_glExtIsProgramBinaryQCOM; -#define glExtIsProgramBinaryQCOM glad_glExtIsProgramBinaryQCOM -typedef void (APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC)(GLuint program, GLenum shadertype, GLchar *source, GLint *length); -GLAPI PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC glad_glExtGetProgramBinarySourceQCOM; -#define glExtGetProgramBinarySourceQCOM glad_glExtGetProgramBinarySourceQCOM -#endif -#ifndef GL_QCOM_framebuffer_foveated -#define GL_QCOM_framebuffer_foveated 1 -GLAPI int GLAD_GL_QCOM_framebuffer_foveated; -typedef void (APIENTRYP PFNGLFRAMEBUFFERFOVEATIONCONFIGQCOMPROC)(GLuint framebuffer, GLuint numLayers, GLuint focalPointsPerLayer, GLuint requestedFeatures, GLuint *providedFeatures); -GLAPI PFNGLFRAMEBUFFERFOVEATIONCONFIGQCOMPROC glad_glFramebufferFoveationConfigQCOM; -#define glFramebufferFoveationConfigQCOM glad_glFramebufferFoveationConfigQCOM -typedef void (APIENTRYP PFNGLFRAMEBUFFERFOVEATIONPARAMETERSQCOMPROC)(GLuint framebuffer, GLuint layer, GLuint focalPoint, GLfloat focalX, GLfloat focalY, GLfloat gainX, GLfloat gainY, GLfloat foveaArea); -GLAPI PFNGLFRAMEBUFFERFOVEATIONPARAMETERSQCOMPROC glad_glFramebufferFoveationParametersQCOM; -#define glFramebufferFoveationParametersQCOM glad_glFramebufferFoveationParametersQCOM -#endif -#ifndef GL_QCOM_perfmon_global_mode -#define GL_QCOM_perfmon_global_mode 1 -GLAPI int GLAD_GL_QCOM_perfmon_global_mode; -#endif -#ifndef GL_QCOM_shader_framebuffer_fetch_noncoherent -#define GL_QCOM_shader_framebuffer_fetch_noncoherent 1 -GLAPI int GLAD_GL_QCOM_shader_framebuffer_fetch_noncoherent; -typedef void (APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIERQCOMPROC)(void); -GLAPI PFNGLFRAMEBUFFERFETCHBARRIERQCOMPROC glad_glFramebufferFetchBarrierQCOM; -#define glFramebufferFetchBarrierQCOM glad_glFramebufferFetchBarrierQCOM -#endif -#ifndef GL_QCOM_texture_foveated -#define GL_QCOM_texture_foveated 1 -GLAPI int GLAD_GL_QCOM_texture_foveated; -typedef void (APIENTRYP PFNGLTEXTUREFOVEATIONPARAMETERSQCOMPROC)(GLuint texture, GLuint layer, GLuint focalPoint, GLfloat focalX, GLfloat focalY, GLfloat gainX, GLfloat gainY, GLfloat foveaArea); -GLAPI PFNGLTEXTUREFOVEATIONPARAMETERSQCOMPROC glad_glTextureFoveationParametersQCOM; -#define glTextureFoveationParametersQCOM glad_glTextureFoveationParametersQCOM -#endif -#ifndef GL_QCOM_tiled_rendering -#define GL_QCOM_tiled_rendering 1 -GLAPI int GLAD_GL_QCOM_tiled_rendering; -typedef void (APIENTRYP PFNGLSTARTTILINGQCOMPROC)(GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask); -GLAPI PFNGLSTARTTILINGQCOMPROC glad_glStartTilingQCOM; -#define glStartTilingQCOM glad_glStartTilingQCOM -typedef void (APIENTRYP PFNGLENDTILINGQCOMPROC)(GLbitfield preserveMask); -GLAPI PFNGLENDTILINGQCOMPROC glad_glEndTilingQCOM; -#define glEndTilingQCOM glad_glEndTilingQCOM -#endif -#ifndef GL_QCOM_writeonly_rendering -#define GL_QCOM_writeonly_rendering 1 -GLAPI int GLAD_GL_QCOM_writeonly_rendering; -#endif -#ifndef GL_VIV_shader_binary -#define GL_VIV_shader_binary 1 -GLAPI int GLAD_GL_VIV_shader_binary; -#endif - -#ifdef __cplusplus -} -#endif - -#endif \ No newline at end of file diff --git a/third_party/glad/include/glad/glad_egl.h b/third_party/glad/include/glad/glad_egl.h deleted file mode 100644 index 4f2c56f2..00000000 --- a/third_party/glad/include/glad/glad_egl.h +++ /dev/null @@ -1,1629 +0,0 @@ -/* - - EGL loader generated by glad 0.1.33 on Sun May 3 16:34:53 2020. - - Language/Generator: C/C++ - Specification: egl - APIs: egl=1.5 - Profile: - - Extensions: - EGL_ANDROID_GLES_layers, - EGL_ANDROID_blob_cache, - EGL_ANDROID_create_native_client_buffer, - EGL_ANDROID_framebuffer_target, - EGL_ANDROID_front_buffer_auto_refresh, - EGL_ANDROID_get_frame_timestamps, - EGL_ANDROID_get_native_client_buffer, - EGL_ANDROID_image_native_buffer, - EGL_ANDROID_native_fence_sync, - EGL_ANDROID_presentation_time, - EGL_ANDROID_recordable, - EGL_ANGLE_d3d_share_handle_client_buffer, - EGL_ANGLE_device_d3d, - EGL_ANGLE_query_surface_pointer, - EGL_ANGLE_surface_d3d_texture_2d_share_handle, - EGL_ANGLE_window_fixed_size, - EGL_ARM_image_format, - EGL_ARM_implicit_external_sync, - EGL_ARM_pixmap_multisample_discard, - EGL_EXT_bind_to_front, - EGL_EXT_buffer_age, - EGL_EXT_client_extensions, - EGL_EXT_client_sync, - EGL_EXT_compositor, - EGL_EXT_create_context_robustness, - EGL_EXT_device_base, - EGL_EXT_device_drm, - EGL_EXT_device_enumeration, - EGL_EXT_device_openwf, - EGL_EXT_device_query, - EGL_EXT_gl_colorspace_bt2020_linear, - EGL_EXT_gl_colorspace_bt2020_pq, - EGL_EXT_gl_colorspace_display_p3, - EGL_EXT_gl_colorspace_display_p3_linear, - EGL_EXT_gl_colorspace_display_p3_passthrough, - EGL_EXT_gl_colorspace_scrgb, - EGL_EXT_gl_colorspace_scrgb_linear, - EGL_EXT_image_dma_buf_import, - EGL_EXT_image_dma_buf_import_modifiers, - EGL_EXT_image_gl_colorspace, - EGL_EXT_image_implicit_sync_control, - EGL_EXT_multiview_window, - EGL_EXT_output_base, - EGL_EXT_output_drm, - EGL_EXT_output_openwf, - EGL_EXT_pixel_format_float, - EGL_EXT_platform_base, - EGL_EXT_platform_device, - EGL_EXT_platform_wayland, - EGL_EXT_platform_x11, - EGL_EXT_protected_content, - EGL_EXT_protected_surface, - EGL_EXT_stream_consumer_egloutput, - EGL_EXT_surface_CTA861_3_metadata, - EGL_EXT_surface_SMPTE2086_metadata, - EGL_EXT_swap_buffers_with_damage, - EGL_EXT_sync_reuse, - EGL_EXT_yuv_surface, - EGL_HI_clientpixmap, - EGL_HI_colorformats, - EGL_IMG_context_priority, - EGL_IMG_image_plane_attribs, - EGL_KHR_cl_event, - EGL_KHR_cl_event2, - EGL_KHR_client_get_all_proc_addresses, - EGL_KHR_config_attribs, - EGL_KHR_context_flush_control, - EGL_KHR_create_context, - EGL_KHR_create_context_no_error, - EGL_KHR_debug, - EGL_KHR_display_reference, - EGL_KHR_fence_sync, - EGL_KHR_get_all_proc_addresses, - EGL_KHR_gl_colorspace, - EGL_KHR_gl_renderbuffer_image, - EGL_KHR_gl_texture_2D_image, - EGL_KHR_gl_texture_3D_image, - EGL_KHR_gl_texture_cubemap_image, - EGL_KHR_image, - EGL_KHR_image_base, - EGL_KHR_image_pixmap, - EGL_KHR_lock_surface, - EGL_KHR_lock_surface2, - EGL_KHR_lock_surface3, - EGL_KHR_mutable_render_buffer, - EGL_KHR_no_config_context, - EGL_KHR_partial_update, - EGL_KHR_platform_android, - EGL_KHR_platform_gbm, - EGL_KHR_platform_wayland, - EGL_KHR_platform_x11, - EGL_KHR_reusable_sync, - EGL_KHR_stream, - EGL_KHR_stream_attrib, - EGL_KHR_stream_consumer_gltexture, - EGL_KHR_stream_cross_process_fd, - EGL_KHR_stream_fifo, - EGL_KHR_stream_producer_aldatalocator, - EGL_KHR_stream_producer_eglsurface, - EGL_KHR_surfaceless_context, - EGL_KHR_swap_buffers_with_damage, - EGL_KHR_vg_parent_image, - EGL_KHR_wait_sync, - EGL_MESA_drm_image, - EGL_MESA_image_dma_buf_export, - EGL_MESA_platform_gbm, - EGL_MESA_platform_surfaceless, - EGL_MESA_query_driver, - EGL_NOK_swap_region, - EGL_NOK_swap_region2, - EGL_NOK_texture_from_pixmap, - EGL_NV_3dvision_surface, - EGL_NV_context_priority_realtime, - EGL_NV_coverage_sample, - EGL_NV_coverage_sample_resolve, - EGL_NV_cuda_event, - EGL_NV_depth_nonlinear, - EGL_NV_device_cuda, - EGL_NV_native_query, - EGL_NV_post_convert_rounding, - EGL_NV_post_sub_buffer, - EGL_NV_quadruple_buffer, - EGL_NV_robustness_video_memory_purge, - EGL_NV_stream_consumer_gltexture_yuv, - EGL_NV_stream_cross_display, - EGL_NV_stream_cross_object, - EGL_NV_stream_cross_partition, - EGL_NV_stream_cross_process, - EGL_NV_stream_cross_system, - EGL_NV_stream_dma, - EGL_NV_stream_fifo_next, - EGL_NV_stream_fifo_synchronous, - EGL_NV_stream_flush, - EGL_NV_stream_frame_limits, - EGL_NV_stream_metadata, - EGL_NV_stream_origin, - EGL_NV_stream_remote, - EGL_NV_stream_reset, - EGL_NV_stream_socket, - EGL_NV_stream_socket_inet, - EGL_NV_stream_socket_unix, - EGL_NV_stream_sync, - EGL_NV_sync, - EGL_NV_system_time, - EGL_NV_triple_buffer, - EGL_TIZEN_image_native_buffer, - EGL_TIZEN_image_native_surface, - EGL_WL_bind_wayland_display, - EGL_WL_create_wayland_buffer_from_image - Loader: True - Local files: False - Omit khrplatform: False - Reproducible: False - - Commandline: - --api="egl=1.5" --generator="c" --spec="egl" --extensions="EGL_ANDROID_GLES_layers,EGL_ANDROID_blob_cache,EGL_ANDROID_create_native_client_buffer,EGL_ANDROID_framebuffer_target,EGL_ANDROID_front_buffer_auto_refresh,EGL_ANDROID_get_frame_timestamps,EGL_ANDROID_get_native_client_buffer,EGL_ANDROID_image_native_buffer,EGL_ANDROID_native_fence_sync,EGL_ANDROID_presentation_time,EGL_ANDROID_recordable,EGL_ANGLE_d3d_share_handle_client_buffer,EGL_ANGLE_device_d3d,EGL_ANGLE_query_surface_pointer,EGL_ANGLE_surface_d3d_texture_2d_share_handle,EGL_ANGLE_window_fixed_size,EGL_ARM_image_format,EGL_ARM_implicit_external_sync,EGL_ARM_pixmap_multisample_discard,EGL_EXT_bind_to_front,EGL_EXT_buffer_age,EGL_EXT_client_extensions,EGL_EXT_client_sync,EGL_EXT_compositor,EGL_EXT_create_context_robustness,EGL_EXT_device_base,EGL_EXT_device_drm,EGL_EXT_device_enumeration,EGL_EXT_device_openwf,EGL_EXT_device_query,EGL_EXT_gl_colorspace_bt2020_linear,EGL_EXT_gl_colorspace_bt2020_pq,EGL_EXT_gl_colorspace_display_p3,EGL_EXT_gl_colorspace_display_p3_linear,EGL_EXT_gl_colorspace_display_p3_passthrough,EGL_EXT_gl_colorspace_scrgb,EGL_EXT_gl_colorspace_scrgb_linear,EGL_EXT_image_dma_buf_import,EGL_EXT_image_dma_buf_import_modifiers,EGL_EXT_image_gl_colorspace,EGL_EXT_image_implicit_sync_control,EGL_EXT_multiview_window,EGL_EXT_output_base,EGL_EXT_output_drm,EGL_EXT_output_openwf,EGL_EXT_pixel_format_float,EGL_EXT_platform_base,EGL_EXT_platform_device,EGL_EXT_platform_wayland,EGL_EXT_platform_x11,EGL_EXT_protected_content,EGL_EXT_protected_surface,EGL_EXT_stream_consumer_egloutput,EGL_EXT_surface_CTA861_3_metadata,EGL_EXT_surface_SMPTE2086_metadata,EGL_EXT_swap_buffers_with_damage,EGL_EXT_sync_reuse,EGL_EXT_yuv_surface,EGL_HI_clientpixmap,EGL_HI_colorformats,EGL_IMG_context_priority,EGL_IMG_image_plane_attribs,EGL_KHR_cl_event,EGL_KHR_cl_event2,EGL_KHR_client_get_all_proc_addresses,EGL_KHR_config_attribs,EGL_KHR_context_flush_control,EGL_KHR_create_context,EGL_KHR_create_context_no_error,EGL_KHR_debug,EGL_KHR_display_reference,EGL_KHR_fence_sync,EGL_KHR_get_all_proc_addresses,EGL_KHR_gl_colorspace,EGL_KHR_gl_renderbuffer_image,EGL_KHR_gl_texture_2D_image,EGL_KHR_gl_texture_3D_image,EGL_KHR_gl_texture_cubemap_image,EGL_KHR_image,EGL_KHR_image_base,EGL_KHR_image_pixmap,EGL_KHR_lock_surface,EGL_KHR_lock_surface2,EGL_KHR_lock_surface3,EGL_KHR_mutable_render_buffer,EGL_KHR_no_config_context,EGL_KHR_partial_update,EGL_KHR_platform_android,EGL_KHR_platform_gbm,EGL_KHR_platform_wayland,EGL_KHR_platform_x11,EGL_KHR_reusable_sync,EGL_KHR_stream,EGL_KHR_stream_attrib,EGL_KHR_stream_consumer_gltexture,EGL_KHR_stream_cross_process_fd,EGL_KHR_stream_fifo,EGL_KHR_stream_producer_aldatalocator,EGL_KHR_stream_producer_eglsurface,EGL_KHR_surfaceless_context,EGL_KHR_swap_buffers_with_damage,EGL_KHR_vg_parent_image,EGL_KHR_wait_sync,EGL_MESA_drm_image,EGL_MESA_image_dma_buf_export,EGL_MESA_platform_gbm,EGL_MESA_platform_surfaceless,EGL_MESA_query_driver,EGL_NOK_swap_region,EGL_NOK_swap_region2,EGL_NOK_texture_from_pixmap,EGL_NV_3dvision_surface,EGL_NV_context_priority_realtime,EGL_NV_coverage_sample,EGL_NV_coverage_sample_resolve,EGL_NV_cuda_event,EGL_NV_depth_nonlinear,EGL_NV_device_cuda,EGL_NV_native_query,EGL_NV_post_convert_rounding,EGL_NV_post_sub_buffer,EGL_NV_quadruple_buffer,EGL_NV_robustness_video_memory_purge,EGL_NV_stream_consumer_gltexture_yuv,EGL_NV_stream_cross_display,EGL_NV_stream_cross_object,EGL_NV_stream_cross_partition,EGL_NV_stream_cross_process,EGL_NV_stream_cross_system,EGL_NV_stream_dma,EGL_NV_stream_fifo_next,EGL_NV_stream_fifo_synchronous,EGL_NV_stream_flush,EGL_NV_stream_frame_limits,EGL_NV_stream_metadata,EGL_NV_stream_origin,EGL_NV_stream_remote,EGL_NV_stream_reset,EGL_NV_stream_socket,EGL_NV_stream_socket_inet,EGL_NV_stream_socket_unix,EGL_NV_stream_sync,EGL_NV_sync,EGL_NV_system_time,EGL_NV_triple_buffer,EGL_TIZEN_image_native_buffer,EGL_TIZEN_image_native_surface,EGL_WL_bind_wayland_display,EGL_WL_create_wayland_buffer_from_image" - Online: - Too many extensions -*/ - - -#ifndef __glad_egl_h_ - -#ifdef __egl_h_ -#error EGL header already included, remove this include, glad already provides it -#endif - -#define __glad_egl_h_ -#define __egl_h_ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#define APIENTRY __stdcall -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif -#ifndef GLAPI -#define GLAPI extern -#endif - -// ARM drivers are missing EGL_CAST... -#ifndef EGL_CAST -#ifdef __cplusplus -#define EGL_CAST(type, value) static_cast(value) -#else -#define EGL_CAST(type, value) ((type) (value)) -#endif -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void* (* GLADloadproc)(const char *name); - -GLAPI int gladLoadEGL(void); -GLAPI int gladLoadEGLLoader(GLADloadproc); - -#include -#include - -struct AHardwareBuffer; -struct wl_buffer; -struct wl_display; -struct wl_resource; -typedef unsigned int EGLBoolean; -typedef unsigned int EGLenum; -typedef intptr_t EGLAttribKHR; -typedef intptr_t EGLAttrib; -typedef void *EGLClientBuffer; -typedef void *EGLConfig; -typedef void *EGLContext; -typedef void *EGLDeviceEXT; -typedef void *EGLDisplay; -typedef void *EGLImage; -typedef void *EGLImageKHR; -typedef void *EGLLabelKHR; -typedef void *EGLObjectKHR; -typedef void *EGLOutputLayerEXT; -typedef void *EGLOutputPortEXT; -typedef void *EGLStreamKHR; -typedef void *EGLSurface; -typedef void *EGLSync; -typedef void *EGLSyncKHR; -typedef void *EGLSyncNV; -typedef void (*__eglMustCastToProperFunctionPointerType)(void); -typedef khronos_utime_nanoseconds_t EGLTimeKHR; -typedef khronos_utime_nanoseconds_t EGLTime; -typedef khronos_utime_nanoseconds_t EGLTimeNV; -typedef khronos_utime_nanoseconds_t EGLuint64NV; -typedef khronos_uint64_t EGLuint64KHR; -typedef khronos_stime_nanoseconds_t EGLnsecsANDROID; -typedef int EGLNativeFileDescriptorKHR; -typedef khronos_ssize_t EGLsizeiANDROID; -typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize); -typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize); -struct EGLClientPixmapHI { - void *pData; - EGLint iWidth; - EGLint iHeight; - EGLint iStride; -}; -typedef void (APIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message); -#define PFNEGLBINDWAYLANDDISPLAYWL PFNEGLBINDWAYLANDDISPLAYWLPROC -#define PFNEGLUNBINDWAYLANDDISPLAYWL PFNEGLUNBINDWAYLANDDISPLAYWLPROC -#define PFNEGLQUERYWAYLANDBUFFERWL PFNEGLQUERYWAYLANDBUFFERWLPROC -#define PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC -#define EGL_ALPHA_SIZE 0x3021 -#define EGL_BAD_ACCESS 0x3002 -#define EGL_BAD_ALLOC 0x3003 -#define EGL_BAD_ATTRIBUTE 0x3004 -#define EGL_BAD_CONFIG 0x3005 -#define EGL_BAD_CONTEXT 0x3006 -#define EGL_BAD_CURRENT_SURFACE 0x3007 -#define EGL_BAD_DISPLAY 0x3008 -#define EGL_BAD_MATCH 0x3009 -#define EGL_BAD_NATIVE_PIXMAP 0x300A -#define EGL_BAD_NATIVE_WINDOW 0x300B -#define EGL_BAD_PARAMETER 0x300C -#define EGL_BAD_SURFACE 0x300D -#define EGL_BLUE_SIZE 0x3022 -#define EGL_BUFFER_SIZE 0x3020 -#define EGL_CONFIG_CAVEAT 0x3027 -#define EGL_CONFIG_ID 0x3028 -#define EGL_CORE_NATIVE_ENGINE 0x305B -#define EGL_DEPTH_SIZE 0x3025 -#define EGL_DONT_CARE EGL_CAST(EGLint,-1) -#define EGL_DRAW 0x3059 -#define EGL_EXTENSIONS 0x3055 -#define EGL_FALSE 0 -#define EGL_GREEN_SIZE 0x3023 -#define EGL_HEIGHT 0x3056 -#define EGL_LARGEST_PBUFFER 0x3058 -#define EGL_LEVEL 0x3029 -#define EGL_MAX_PBUFFER_HEIGHT 0x302A -#define EGL_MAX_PBUFFER_PIXELS 0x302B -#define EGL_MAX_PBUFFER_WIDTH 0x302C -#define EGL_NATIVE_RENDERABLE 0x302D -#define EGL_NATIVE_VISUAL_ID 0x302E -#define EGL_NATIVE_VISUAL_TYPE 0x302F -#define EGL_NONE 0x3038 -#define EGL_NON_CONFORMANT_CONFIG 0x3051 -#define EGL_NOT_INITIALIZED 0x3001 -#define EGL_NO_CONTEXT EGL_CAST(EGLContext,0) -#define EGL_NO_DISPLAY EGL_CAST(EGLDisplay,0) -#define EGL_NO_SURFACE EGL_CAST(EGLSurface,0) -#define EGL_PBUFFER_BIT 0x0001 -#define EGL_PIXMAP_BIT 0x0002 -#define EGL_READ 0x305A -#define EGL_RED_SIZE 0x3024 -#define EGL_SAMPLES 0x3031 -#define EGL_SAMPLE_BUFFERS 0x3032 -#define EGL_SLOW_CONFIG 0x3050 -#define EGL_STENCIL_SIZE 0x3026 -#define EGL_SUCCESS 0x3000 -#define EGL_SURFACE_TYPE 0x3033 -#define EGL_TRANSPARENT_BLUE_VALUE 0x3035 -#define EGL_TRANSPARENT_GREEN_VALUE 0x3036 -#define EGL_TRANSPARENT_RED_VALUE 0x3037 -#define EGL_TRANSPARENT_RGB 0x3052 -#define EGL_TRANSPARENT_TYPE 0x3034 -#define EGL_TRUE 1 -#define EGL_VENDOR 0x3053 -#define EGL_VERSION 0x3054 -#define EGL_WIDTH 0x3057 -#define EGL_WINDOW_BIT 0x0004 -#define EGL_BACK_BUFFER 0x3084 -#define EGL_BIND_TO_TEXTURE_RGB 0x3039 -#define EGL_BIND_TO_TEXTURE_RGBA 0x303A -#define EGL_CONTEXT_LOST 0x300E -#define EGL_MIN_SWAP_INTERVAL 0x303B -#define EGL_MAX_SWAP_INTERVAL 0x303C -#define EGL_MIPMAP_TEXTURE 0x3082 -#define EGL_MIPMAP_LEVEL 0x3083 -#define EGL_NO_TEXTURE 0x305C -#define EGL_TEXTURE_2D 0x305F -#define EGL_TEXTURE_FORMAT 0x3080 -#define EGL_TEXTURE_RGB 0x305D -#define EGL_TEXTURE_RGBA 0x305E -#define EGL_TEXTURE_TARGET 0x3081 -#define EGL_ALPHA_FORMAT 0x3088 -#define EGL_ALPHA_FORMAT_NONPRE 0x308B -#define EGL_ALPHA_FORMAT_PRE 0x308C -#define EGL_ALPHA_MASK_SIZE 0x303E -#define EGL_BUFFER_PRESERVED 0x3094 -#define EGL_BUFFER_DESTROYED 0x3095 -#define EGL_CLIENT_APIS 0x308D -#define EGL_COLORSPACE 0x3087 -#define EGL_COLORSPACE_sRGB 0x3089 -#define EGL_COLORSPACE_LINEAR 0x308A -#define EGL_COLOR_BUFFER_TYPE 0x303F -#define EGL_CONTEXT_CLIENT_TYPE 0x3097 -#define EGL_DISPLAY_SCALING 10000 -#define EGL_HORIZONTAL_RESOLUTION 0x3090 -#define EGL_LUMINANCE_BUFFER 0x308F -#define EGL_LUMINANCE_SIZE 0x303D -#define EGL_OPENGL_ES_BIT 0x0001 -#define EGL_OPENVG_BIT 0x0002 -#define EGL_OPENGL_ES_API 0x30A0 -#define EGL_OPENVG_API 0x30A1 -#define EGL_OPENVG_IMAGE 0x3096 -#define EGL_PIXEL_ASPECT_RATIO 0x3092 -#define EGL_RENDERABLE_TYPE 0x3040 -#define EGL_RENDER_BUFFER 0x3086 -#define EGL_RGB_BUFFER 0x308E -#define EGL_SINGLE_BUFFER 0x3085 -#define EGL_SWAP_BEHAVIOR 0x3093 -#define EGL_UNKNOWN EGL_CAST(EGLint,-1) -#define EGL_VERTICAL_RESOLUTION 0x3091 -#define EGL_CONFORMANT 0x3042 -#define EGL_CONTEXT_CLIENT_VERSION 0x3098 -#define EGL_MATCH_NATIVE_PIXMAP 0x3041 -#define EGL_OPENGL_ES2_BIT 0x0004 -#define EGL_VG_ALPHA_FORMAT 0x3088 -#define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B -#define EGL_VG_ALPHA_FORMAT_PRE 0x308C -#define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040 -#define EGL_VG_COLORSPACE 0x3087 -#define EGL_VG_COLORSPACE_sRGB 0x3089 -#define EGL_VG_COLORSPACE_LINEAR 0x308A -#define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020 -#define EGL_DEFAULT_DISPLAY EGL_CAST(EGLNativeDisplayType,0) -#define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200 -#define EGL_MULTISAMPLE_RESOLVE 0x3099 -#define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A -#define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B -#define EGL_OPENGL_API 0x30A2 -#define EGL_OPENGL_BIT 0x0008 -#define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400 -#define EGL_CONTEXT_MAJOR_VERSION 0x3098 -#define EGL_CONTEXT_MINOR_VERSION 0x30FB -#define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD -#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD -#define EGL_NO_RESET_NOTIFICATION 0x31BE -#define EGL_LOSE_CONTEXT_ON_RESET 0x31BF -#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001 -#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define EGL_CONTEXT_OPENGL_DEBUG 0x31B0 -#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1 -#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2 -#define EGL_OPENGL_ES3_BIT 0x00000040 -#define EGL_CL_EVENT_HANDLE 0x309C -#define EGL_SYNC_CL_EVENT 0x30FE -#define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF -#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0 -#define EGL_SYNC_TYPE 0x30F7 -#define EGL_SYNC_STATUS 0x30F1 -#define EGL_SYNC_CONDITION 0x30F8 -#define EGL_SIGNALED 0x30F2 -#define EGL_UNSIGNALED 0x30F3 -#define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001 -#define EGL_FOREVER 0xFFFFFFFFFFFFFFFF -#define EGL_TIMEOUT_EXPIRED 0x30F5 -#define EGL_CONDITION_SATISFIED 0x30F6 -#define EGL_NO_SYNC EGL_CAST(EGLSync,0) -#define EGL_SYNC_FENCE 0x30F9 -#define EGL_GL_COLORSPACE 0x309D -#define EGL_GL_COLORSPACE_SRGB 0x3089 -#define EGL_GL_COLORSPACE_LINEAR 0x308A -#define EGL_GL_RENDERBUFFER 0x30B9 -#define EGL_GL_TEXTURE_2D 0x30B1 -#define EGL_GL_TEXTURE_LEVEL 0x30BC -#define EGL_GL_TEXTURE_3D 0x30B2 -#define EGL_GL_TEXTURE_ZOFFSET 0x30BD -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3 -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4 -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5 -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6 -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7 -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8 -#define EGL_IMAGE_PRESERVED 0x30D2 -#define EGL_NO_IMAGE EGL_CAST(EGLImage,0) -EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config); -EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target); -EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list); -EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list); -EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list); -EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list); -EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx); -EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface); -EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value); -EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config); -EGLDisplay eglGetCurrentDisplay(void); -EGLSurface eglGetCurrentSurface(EGLint readdraw); -EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id); -EGLint eglGetError(void); -__eglMustCastToProperFunctionPointerType eglGetProcAddress(const char *procname); -EGLBoolean eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor); -EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx); -EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value); -const char *eglQueryString(EGLDisplay dpy, EGLint name); -EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value); -EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface); -EGLBoolean eglTerminate(EGLDisplay dpy); -EGLBoolean eglWaitGL(void); -EGLBoolean eglWaitNative(EGLint engine); -EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); -EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); -EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value); -EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval); -EGLBoolean eglBindAPI(EGLenum api); -EGLenum eglQueryAPI(void); -EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list); -EGLBoolean eglReleaseThread(void); -EGLBoolean eglWaitClient(void); -EGLContext eglGetCurrentContext(void); -EGLSync eglCreateSync(EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list); -EGLBoolean eglDestroySync(EGLDisplay dpy, EGLSync sync); -EGLint eglClientWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout); -EGLBoolean eglGetSyncAttrib(EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value); -EGLImage eglCreateImage(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list); -EGLBoolean eglDestroyImage(EGLDisplay dpy, EGLImage image); -EGLDisplay eglGetPlatformDisplay(EGLenum platform, void *native_display, const EGLAttrib *attrib_list); -EGLSurface eglCreatePlatformWindowSurface(EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list); -EGLSurface eglCreatePlatformPixmapSurface(EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list); -EGLBoolean eglWaitSync(EGLDisplay dpy, EGLSync sync, EGLint flags); -#define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143 -#define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001 -#define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002 -#define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004 -#define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147 -#define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C -#define EGL_TIMESTAMP_PENDING_ANDROID EGL_CAST(EGLnsecsANDROID,-2) -#define EGL_TIMESTAMP_INVALID_ANDROID EGL_CAST(EGLnsecsANDROID,-1) -#define EGL_TIMESTAMPS_ANDROID 0x3430 -#define EGL_COMPOSITE_DEADLINE_ANDROID 0x3431 -#define EGL_COMPOSITE_INTERVAL_ANDROID 0x3432 -#define EGL_COMPOSITE_TO_PRESENT_LATENCY_ANDROID 0x3433 -#define EGL_REQUESTED_PRESENT_TIME_ANDROID 0x3434 -#define EGL_RENDERING_COMPLETE_TIME_ANDROID 0x3435 -#define EGL_COMPOSITION_LATCH_TIME_ANDROID 0x3436 -#define EGL_FIRST_COMPOSITION_START_TIME_ANDROID 0x3437 -#define EGL_LAST_COMPOSITION_START_TIME_ANDROID 0x3438 -#define EGL_FIRST_COMPOSITION_GPU_FINISHED_TIME_ANDROID 0x3439 -#define EGL_DISPLAY_PRESENT_TIME_ANDROID 0x343A -#define EGL_DEQUEUE_READY_TIME_ANDROID 0x343B -#define EGL_READS_DONE_TIME_ANDROID 0x343C -#define EGL_NATIVE_BUFFER_ANDROID 0x3140 -#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144 -#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145 -#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146 -#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1 -#define EGL_RECORDABLE_ANDROID 0x3142 -#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200 -#define EGL_D3D9_DEVICE_ANGLE 0x33A0 -#define EGL_D3D11_DEVICE_ANGLE 0x33A1 -#define EGL_FIXED_SIZE_ANGLE 0x3201 -#define EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM 0x3287 -#define EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM 0x3288 -#define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A -#define EGL_DISCARD_SAMPLES_ARM 0x3286 -#define EGL_FRONT_BUFFER_EXT 0x3464 -#define EGL_BUFFER_AGE_EXT 0x313D -#define EGL_SYNC_CLIENT_EXT 0x3364 -#define EGL_SYNC_CLIENT_SIGNAL_EXT 0x3365 -#define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460 -#define EGL_EXTERNAL_REF_ID_EXT 0x3461 -#define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462 -#define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463 -#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF -#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138 -#define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE -#define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF -#define EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0) -#define EGL_BAD_DEVICE_EXT 0x322B -#define EGL_DEVICE_EXT 0x322C -#define EGL_DRM_DEVICE_FILE_EXT 0x3233 -#define EGL_DRM_MASTER_FD_EXT 0x333C -#define EGL_OPENWF_DEVICE_ID_EXT 0x3237 -#define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F -#define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340 -#define EGL_GL_COLORSPACE_DISPLAY_P3_EXT 0x3363 -#define EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT 0x3362 -#define EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT 0x3490 -#define EGL_GL_COLORSPACE_SCRGB_EXT 0x3351 -#define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350 -#define EGL_LINUX_DMA_BUF_EXT 0x3270 -#define EGL_LINUX_DRM_FOURCC_EXT 0x3271 -#define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272 -#define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273 -#define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 -#define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275 -#define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276 -#define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277 -#define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278 -#define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279 -#define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A -#define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B -#define EGL_SAMPLE_RANGE_HINT_EXT 0x327C -#define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D -#define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E -#define EGL_ITU_REC601_EXT 0x327F -#define EGL_ITU_REC709_EXT 0x3280 -#define EGL_ITU_REC2020_EXT 0x3281 -#define EGL_YUV_FULL_RANGE_EXT 0x3282 -#define EGL_YUV_NARROW_RANGE_EXT 0x3283 -#define EGL_YUV_CHROMA_SITING_0_EXT 0x3284 -#define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285 -#define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440 -#define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441 -#define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442 -#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443 -#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444 -#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445 -#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446 -#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447 -#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448 -#define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449 -#define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A -#define EGL_GL_COLORSPACE_DEFAULT_EXT 0x314D -#define EGL_IMPORT_SYNC_TYPE_EXT 0x3470 -#define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471 -#define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472 -#define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134 -#define EGL_NO_OUTPUT_LAYER_EXT EGL_CAST(EGLOutputLayerEXT,0) -#define EGL_NO_OUTPUT_PORT_EXT EGL_CAST(EGLOutputPortEXT,0) -#define EGL_BAD_OUTPUT_LAYER_EXT 0x322D -#define EGL_BAD_OUTPUT_PORT_EXT 0x322E -#define EGL_SWAP_INTERVAL_EXT 0x322F -#define EGL_DRM_CRTC_EXT 0x3234 -#define EGL_DRM_PLANE_EXT 0x3235 -#define EGL_DRM_CONNECTOR_EXT 0x3236 -#define EGL_OPENWF_PIPELINE_ID_EXT 0x3238 -#define EGL_OPENWF_PORT_ID_EXT 0x3239 -#define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339 -#define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A -#define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B -#define EGL_PLATFORM_DEVICE_EXT 0x313F -#define EGL_PLATFORM_WAYLAND_EXT 0x31D8 -#define EGL_PLATFORM_X11_EXT 0x31D5 -#define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6 -#define EGL_PROTECTED_CONTENT_EXT 0x32C0 -#define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360 -#define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361 -#define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341 -#define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342 -#define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343 -#define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344 -#define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345 -#define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346 -#define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347 -#define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348 -#define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349 -#define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A -#define EGL_METADATA_SCALING_EXT 50000 -#define EGL_YUV_ORDER_EXT 0x3301 -#define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311 -#define EGL_YUV_SUBSAMPLE_EXT 0x3312 -#define EGL_YUV_DEPTH_RANGE_EXT 0x3317 -#define EGL_YUV_CSC_STANDARD_EXT 0x330A -#define EGL_YUV_PLANE_BPP_EXT 0x331A -#define EGL_YUV_BUFFER_EXT 0x3300 -#define EGL_YUV_ORDER_YUV_EXT 0x3302 -#define EGL_YUV_ORDER_YVU_EXT 0x3303 -#define EGL_YUV_ORDER_YUYV_EXT 0x3304 -#define EGL_YUV_ORDER_UYVY_EXT 0x3305 -#define EGL_YUV_ORDER_YVYU_EXT 0x3306 -#define EGL_YUV_ORDER_VYUY_EXT 0x3307 -#define EGL_YUV_ORDER_AYUV_EXT 0x3308 -#define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313 -#define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314 -#define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315 -#define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318 -#define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319 -#define EGL_YUV_CSC_STANDARD_601_EXT 0x330B -#define EGL_YUV_CSC_STANDARD_709_EXT 0x330C -#define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D -#define EGL_YUV_PLANE_BPP_0_EXT 0x331B -#define EGL_YUV_PLANE_BPP_8_EXT 0x331C -#define EGL_YUV_PLANE_BPP_10_EXT 0x331D -#define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74 -#define EGL_COLOR_FORMAT_HI 0x8F70 -#define EGL_COLOR_RGB_HI 0x8F71 -#define EGL_COLOR_RGBA_HI 0x8F72 -#define EGL_COLOR_ARGB_HI 0x8F73 -#define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100 -#define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101 -#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102 -#define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103 -#define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105 -#define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106 -#define EGL_CL_EVENT_HANDLE_KHR 0x309C -#define EGL_SYNC_CL_EVENT_KHR 0x30FE -#define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF -#define EGL_CONFORMANT_KHR 0x3042 -#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020 -#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040 -#define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0 -#define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097 -#define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098 -#define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098 -#define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB -#define EGL_CONTEXT_FLAGS_KHR 0x30FC -#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD -#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD -#define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE -#define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF -#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 -#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002 -#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004 -#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001 -#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002 -#define EGL_OPENGL_ES3_BIT_KHR 0x00000040 -#define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3 -#define EGL_OBJECT_THREAD_KHR 0x33B0 -#define EGL_OBJECT_DISPLAY_KHR 0x33B1 -#define EGL_OBJECT_CONTEXT_KHR 0x33B2 -#define EGL_OBJECT_SURFACE_KHR 0x33B3 -#define EGL_OBJECT_IMAGE_KHR 0x33B4 -#define EGL_OBJECT_SYNC_KHR 0x33B5 -#define EGL_OBJECT_STREAM_KHR 0x33B6 -#define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9 -#define EGL_DEBUG_MSG_ERROR_KHR 0x33BA -#define EGL_DEBUG_MSG_WARN_KHR 0x33BB -#define EGL_DEBUG_MSG_INFO_KHR 0x33BC -#define EGL_DEBUG_CALLBACK_KHR 0x33B8 -#define EGL_TRACK_REFERENCES_KHR 0x3352 -#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 -#define EGL_SYNC_CONDITION_KHR 0x30F8 -#define EGL_SYNC_FENCE_KHR 0x30F9 -#define EGL_GL_COLORSPACE_KHR 0x309D -#define EGL_GL_COLORSPACE_SRGB_KHR 0x3089 -#define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A -#define EGL_GL_RENDERBUFFER_KHR 0x30B9 -#define EGL_GL_TEXTURE_2D_KHR 0x30B1 -#define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC -#define EGL_GL_TEXTURE_3D_KHR 0x30B2 -#define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3 -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4 -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5 -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6 -#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7 -#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8 -#define EGL_NATIVE_PIXMAP_KHR 0x30B0 -#define EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0) -#define EGL_IMAGE_PRESERVED_KHR 0x30D2 -#define EGL_READ_SURFACE_BIT_KHR 0x0001 -#define EGL_WRITE_SURFACE_BIT_KHR 0x0002 -#define EGL_LOCK_SURFACE_BIT_KHR 0x0080 -#define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 -#define EGL_MATCH_FORMAT_KHR 0x3043 -#define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 -#define EGL_FORMAT_RGB_565_KHR 0x30C1 -#define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 -#define EGL_FORMAT_RGBA_8888_KHR 0x30C3 -#define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 -#define EGL_LOCK_USAGE_HINT_KHR 0x30C5 -#define EGL_BITMAP_POINTER_KHR 0x30C6 -#define EGL_BITMAP_PITCH_KHR 0x30C7 -#define EGL_BITMAP_ORIGIN_KHR 0x30C8 -#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 -#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA -#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB -#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC -#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD -#define EGL_LOWER_LEFT_KHR 0x30CE -#define EGL_UPPER_LEFT_KHR 0x30CF -#define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110 -#define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000 -#define EGL_NO_CONFIG_KHR EGL_CAST(EGLConfig,0) -#define EGL_BUFFER_AGE_KHR 0x313D -#define EGL_PLATFORM_ANDROID_KHR 0x3141 -#define EGL_PLATFORM_GBM_KHR 0x31D7 -#define EGL_PLATFORM_WAYLAND_KHR 0x31D8 -#define EGL_PLATFORM_X11_KHR 0x31D5 -#define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6 -#define EGL_SYNC_STATUS_KHR 0x30F1 -#define EGL_SIGNALED_KHR 0x30F2 -#define EGL_UNSIGNALED_KHR 0x30F3 -#define EGL_TIMEOUT_EXPIRED_KHR 0x30F5 -#define EGL_CONDITION_SATISFIED_KHR 0x30F6 -#define EGL_SYNC_TYPE_KHR 0x30F7 -#define EGL_SYNC_REUSABLE_KHR 0x30FA -#define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 -#define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFF -#define EGL_NO_SYNC_KHR EGL_CAST(EGLSyncKHR,0) -#define EGL_NO_STREAM_KHR EGL_CAST(EGLStreamKHR,0) -#define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210 -#define EGL_PRODUCER_FRAME_KHR 0x3212 -#define EGL_CONSUMER_FRAME_KHR 0x3213 -#define EGL_STREAM_STATE_KHR 0x3214 -#define EGL_STREAM_STATE_CREATED_KHR 0x3215 -#define EGL_STREAM_STATE_CONNECTING_KHR 0x3216 -#define EGL_STREAM_STATE_EMPTY_KHR 0x3217 -#define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218 -#define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219 -#define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A -#define EGL_BAD_STREAM_KHR 0x321B -#define EGL_BAD_STATE_KHR 0x321C -#define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E -#define EGL_NO_FILE_DESCRIPTOR_KHR EGL_CAST(EGLNativeFileDescriptorKHR,-1) -#define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC -#define EGL_STREAM_TIME_NOW_KHR 0x31FD -#define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE -#define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF -#define EGL_STREAM_BIT_KHR 0x0800 -#define EGL_VG_PARENT_IMAGE_KHR 0x30BA -#define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0 -#define EGL_DRM_BUFFER_USE_MESA 0x31D1 -#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2 -#define EGL_DRM_BUFFER_MESA 0x31D3 -#define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4 -#define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001 -#define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002 -#define EGL_DRM_BUFFER_USE_CURSOR_MESA 0x00000004 -#define EGL_PLATFORM_GBM_MESA 0x31D7 -#define EGL_PLATFORM_SURFACELESS_MESA 0x31DD -#define EGL_Y_INVERTED_NOK 0x307F -#define EGL_AUTO_STEREO_NV 0x3136 -#define EGL_CONTEXT_PRIORITY_REALTIME_NV 0x3357 -#define EGL_COVERAGE_BUFFERS_NV 0x30E0 -#define EGL_COVERAGE_SAMPLES_NV 0x30E1 -#define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131 -#define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132 -#define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133 -#define EGL_CUDA_EVENT_HANDLE_NV 0x323B -#define EGL_SYNC_CUDA_EVENT_NV 0x323C -#define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D -#define EGL_DEPTH_ENCODING_NV 0x30E2 -#define EGL_DEPTH_ENCODING_NONE_NV 0 -#define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3 -#define EGL_CUDA_DEVICE_NV 0x323A -#define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE -#define EGL_QUADRUPLE_BUFFER_NV 0x3231 -#define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C -#define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C -#define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D -#define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E -#define EGL_STREAM_CROSS_DISPLAY_NV 0x334E -#define EGL_STREAM_CROSS_OBJECT_NV 0x334D -#define EGL_STREAM_CROSS_PARTITION_NV 0x323F -#define EGL_STREAM_CROSS_PROCESS_NV 0x3245 -#define EGL_STREAM_CROSS_SYSTEM_NV 0x334F -#define EGL_STREAM_DMA_NV 0x3371 -#define EGL_STREAM_DMA_SERVER_NV 0x3372 -#define EGL_PENDING_FRAME_NV 0x3329 -#define EGL_STREAM_TIME_PENDING_NV 0x332A -#define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336 -#define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337 -#define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338 -#define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250 -#define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251 -#define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252 -#define EGL_PRODUCER_METADATA_NV 0x3253 -#define EGL_CONSUMER_METADATA_NV 0x3254 -#define EGL_PENDING_METADATA_NV 0x3328 -#define EGL_METADATA0_SIZE_NV 0x3255 -#define EGL_METADATA1_SIZE_NV 0x3256 -#define EGL_METADATA2_SIZE_NV 0x3257 -#define EGL_METADATA3_SIZE_NV 0x3258 -#define EGL_METADATA0_TYPE_NV 0x3259 -#define EGL_METADATA1_TYPE_NV 0x325A -#define EGL_METADATA2_TYPE_NV 0x325B -#define EGL_METADATA3_TYPE_NV 0x325C -#define EGL_STREAM_FRAME_ORIGIN_X_NV 0x3366 -#define EGL_STREAM_FRAME_ORIGIN_Y_NV 0x3367 -#define EGL_STREAM_FRAME_MAJOR_AXIS_NV 0x3368 -#define EGL_CONSUMER_AUTO_ORIENTATION_NV 0x3369 -#define EGL_PRODUCER_AUTO_ORIENTATION_NV 0x336A -#define EGL_LEFT_NV 0x336B -#define EGL_RIGHT_NV 0x336C -#define EGL_TOP_NV 0x336D -#define EGL_BOTTOM_NV 0x336E -#define EGL_X_AXIS_NV 0x336F -#define EGL_Y_AXIS_NV 0x3370 -#define EGL_STREAM_STATE_INITIALIZING_NV 0x3240 -#define EGL_STREAM_TYPE_NV 0x3241 -#define EGL_STREAM_PROTOCOL_NV 0x3242 -#define EGL_STREAM_ENDPOINT_NV 0x3243 -#define EGL_STREAM_LOCAL_NV 0x3244 -#define EGL_STREAM_PRODUCER_NV 0x3247 -#define EGL_STREAM_CONSUMER_NV 0x3248 -#define EGL_STREAM_PROTOCOL_FD_NV 0x3246 -#define EGL_SUPPORT_RESET_NV 0x3334 -#define EGL_SUPPORT_REUSE_NV 0x3335 -#define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B -#define EGL_SOCKET_HANDLE_NV 0x324C -#define EGL_SOCKET_TYPE_NV 0x324D -#define EGL_SOCKET_TYPE_INET_NV 0x324F -#define EGL_SOCKET_TYPE_UNIX_NV 0x324E -#define EGL_SYNC_NEW_FRAME_NV 0x321F -#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6 -#define EGL_SYNC_STATUS_NV 0x30E7 -#define EGL_SIGNALED_NV 0x30E8 -#define EGL_UNSIGNALED_NV 0x30E9 -#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001 -#define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFF -#define EGL_ALREADY_SIGNALED_NV 0x30EA -#define EGL_TIMEOUT_EXPIRED_NV 0x30EB -#define EGL_CONDITION_SATISFIED_NV 0x30EC -#define EGL_SYNC_TYPE_NV 0x30ED -#define EGL_SYNC_CONDITION_NV 0x30EE -#define EGL_SYNC_FENCE_NV 0x30EF -#define EGL_NO_SYNC_NV EGL_CAST(EGLSyncNV,0) -#define EGL_TRIPLE_BUFFER_NV 0x3230 -#define EGL_NATIVE_BUFFER_TIZEN 0x32A0 -#define EGL_NATIVE_SURFACE_TIZEN 0x32A1 -#define EGL_WAYLAND_BUFFER_WL 0x31D5 -#define EGL_WAYLAND_PLANE_WL 0x31D6 -#define EGL_TEXTURE_Y_U_V_WL 0x31D7 -#define EGL_TEXTURE_Y_UV_WL 0x31D8 -#define EGL_TEXTURE_Y_XUXV_WL 0x31D9 -#define EGL_TEXTURE_EXTERNAL_WL 0x31DA -#define EGL_WAYLAND_Y_INVERTED_WL 0x31DB -#ifndef EGL_ANDROID_GLES_layers -#define EGL_ANDROID_GLES_layers 1 -#endif -#ifndef EGL_ANDROID_blob_cache -#define EGL_ANDROID_blob_cache 1 -typedef void (APIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC)(EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); -GLAPI PFNEGLSETBLOBCACHEFUNCSANDROIDPROC glad_eglSetBlobCacheFuncsANDROID; -#define eglSetBlobCacheFuncsANDROID glad_eglSetBlobCacheFuncsANDROID -#endif -#ifndef EGL_ANDROID_create_native_client_buffer -#define EGL_ANDROID_create_native_client_buffer 1 -typedef EGLClientBuffer (APIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC)(const EGLint *attrib_list); -GLAPI PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC glad_eglCreateNativeClientBufferANDROID; -#define eglCreateNativeClientBufferANDROID glad_eglCreateNativeClientBufferANDROID -#endif -#ifndef EGL_ANDROID_framebuffer_target -#define EGL_ANDROID_framebuffer_target 1 -#endif -#ifndef EGL_ANDROID_front_buffer_auto_refresh -#define EGL_ANDROID_front_buffer_auto_refresh 1 -#endif -#ifndef EGL_ANDROID_get_frame_timestamps -#define EGL_ANDROID_get_frame_timestamps 1 -typedef EGLBoolean (APIENTRYP PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC)(EGLDisplay dpy, EGLSurface surface, EGLint name); -GLAPI PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC glad_eglGetCompositorTimingSupportedANDROID; -#define eglGetCompositorTimingSupportedANDROID glad_eglGetCompositorTimingSupportedANDROID -typedef EGLBoolean (APIENTRYP PFNEGLGETCOMPOSITORTIMINGANDROIDPROC)(EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint *names, EGLnsecsANDROID *values); -GLAPI PFNEGLGETCOMPOSITORTIMINGANDROIDPROC glad_eglGetCompositorTimingANDROID; -#define eglGetCompositorTimingANDROID glad_eglGetCompositorTimingANDROID -typedef EGLBoolean (APIENTRYP PFNEGLGETNEXTFRAMEIDANDROIDPROC)(EGLDisplay dpy, EGLSurface surface, EGLuint64KHR *frameId); -GLAPI PFNEGLGETNEXTFRAMEIDANDROIDPROC glad_eglGetNextFrameIdANDROID; -#define eglGetNextFrameIdANDROID glad_eglGetNextFrameIdANDROID -typedef EGLBoolean (APIENTRYP PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC)(EGLDisplay dpy, EGLSurface surface, EGLint timestamp); -GLAPI PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC glad_eglGetFrameTimestampSupportedANDROID; -#define eglGetFrameTimestampSupportedANDROID glad_eglGetFrameTimestampSupportedANDROID -typedef EGLBoolean (APIENTRYP PFNEGLGETFRAMETIMESTAMPSANDROIDPROC)(EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint *timestamps, EGLnsecsANDROID *values); -GLAPI PFNEGLGETFRAMETIMESTAMPSANDROIDPROC glad_eglGetFrameTimestampsANDROID; -#define eglGetFrameTimestampsANDROID glad_eglGetFrameTimestampsANDROID -#endif -#ifndef EGL_ANDROID_get_native_client_buffer -#define EGL_ANDROID_get_native_client_buffer 1 -typedef EGLClientBuffer (APIENTRYP PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC)(const struct AHardwareBuffer *buffer); -GLAPI PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC glad_eglGetNativeClientBufferANDROID; -#define eglGetNativeClientBufferANDROID glad_eglGetNativeClientBufferANDROID -#endif -#ifndef EGL_ANDROID_image_native_buffer -#define EGL_ANDROID_image_native_buffer 1 -#endif -#ifndef EGL_ANDROID_native_fence_sync -#define EGL_ANDROID_native_fence_sync 1 -typedef EGLint (APIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC)(EGLDisplay dpy, EGLSyncKHR sync); -GLAPI PFNEGLDUPNATIVEFENCEFDANDROIDPROC glad_eglDupNativeFenceFDANDROID; -#define eglDupNativeFenceFDANDROID glad_eglDupNativeFenceFDANDROID -#endif -#ifndef EGL_ANDROID_presentation_time -#define EGL_ANDROID_presentation_time 1 -typedef EGLBoolean (APIENTRYP PFNEGLPRESENTATIONTIMEANDROIDPROC)(EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time); -GLAPI PFNEGLPRESENTATIONTIMEANDROIDPROC glad_eglPresentationTimeANDROID; -#define eglPresentationTimeANDROID glad_eglPresentationTimeANDROID -#endif -#ifndef EGL_ANDROID_recordable -#define EGL_ANDROID_recordable 1 -#endif -#ifndef EGL_ANGLE_d3d_share_handle_client_buffer -#define EGL_ANGLE_d3d_share_handle_client_buffer 1 -#endif -#ifndef EGL_ANGLE_device_d3d -#define EGL_ANGLE_device_d3d 1 -#endif -#ifndef EGL_ANGLE_query_surface_pointer -#define EGL_ANGLE_query_surface_pointer 1 -typedef EGLBoolean (APIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC)(EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); -GLAPI PFNEGLQUERYSURFACEPOINTERANGLEPROC glad_eglQuerySurfacePointerANGLE; -#define eglQuerySurfacePointerANGLE glad_eglQuerySurfacePointerANGLE -#endif -#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle -#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1 -#endif -#ifndef EGL_ANGLE_window_fixed_size -#define EGL_ANGLE_window_fixed_size 1 -#endif -#ifndef EGL_ARM_image_format -#define EGL_ARM_image_format 1 -#endif -#ifndef EGL_ARM_implicit_external_sync -#define EGL_ARM_implicit_external_sync 1 -#endif -#ifndef EGL_ARM_pixmap_multisample_discard -#define EGL_ARM_pixmap_multisample_discard 1 -#endif -#ifndef EGL_EXT_bind_to_front -#define EGL_EXT_bind_to_front 1 -#endif -#ifndef EGL_EXT_buffer_age -#define EGL_EXT_buffer_age 1 -#endif -#ifndef EGL_EXT_client_extensions -#define EGL_EXT_client_extensions 1 -#endif -#ifndef EGL_EXT_client_sync -#define EGL_EXT_client_sync 1 -typedef EGLBoolean (APIENTRYP PFNEGLCLIENTSIGNALSYNCEXTPROC)(EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list); -GLAPI PFNEGLCLIENTSIGNALSYNCEXTPROC glad_eglClientSignalSyncEXT; -#define eglClientSignalSyncEXT glad_eglClientSignalSyncEXT -#endif -#ifndef EGL_EXT_compositor -#define EGL_EXT_compositor 1 -typedef EGLBoolean (APIENTRYP PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC)(const EGLint *external_ref_ids, EGLint num_entries); -GLAPI PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC glad_eglCompositorSetContextListEXT; -#define eglCompositorSetContextListEXT glad_eglCompositorSetContextListEXT -typedef EGLBoolean (APIENTRYP PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC)(EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries); -GLAPI PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC glad_eglCompositorSetContextAttributesEXT; -#define eglCompositorSetContextAttributesEXT glad_eglCompositorSetContextAttributesEXT -typedef EGLBoolean (APIENTRYP PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC)(EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries); -GLAPI PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC glad_eglCompositorSetWindowListEXT; -#define eglCompositorSetWindowListEXT glad_eglCompositorSetWindowListEXT -typedef EGLBoolean (APIENTRYP PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC)(EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries); -GLAPI PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC glad_eglCompositorSetWindowAttributesEXT; -#define eglCompositorSetWindowAttributesEXT glad_eglCompositorSetWindowAttributesEXT -typedef EGLBoolean (APIENTRYP PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC)(EGLint external_win_id); -GLAPI PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC glad_eglCompositorBindTexWindowEXT; -#define eglCompositorBindTexWindowEXT glad_eglCompositorBindTexWindowEXT -typedef EGLBoolean (APIENTRYP PFNEGLCOMPOSITORSETSIZEEXTPROC)(EGLint external_win_id, EGLint width, EGLint height); -GLAPI PFNEGLCOMPOSITORSETSIZEEXTPROC glad_eglCompositorSetSizeEXT; -#define eglCompositorSetSizeEXT glad_eglCompositorSetSizeEXT -typedef EGLBoolean (APIENTRYP PFNEGLCOMPOSITORSWAPPOLICYEXTPROC)(EGLint external_win_id, EGLint policy); -GLAPI PFNEGLCOMPOSITORSWAPPOLICYEXTPROC glad_eglCompositorSwapPolicyEXT; -#define eglCompositorSwapPolicyEXT glad_eglCompositorSwapPolicyEXT -#endif -#ifndef EGL_EXT_create_context_robustness -#define EGL_EXT_create_context_robustness 1 -#endif -#ifndef EGL_EXT_device_base -#define EGL_EXT_device_base 1 -typedef EGLBoolean (APIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC)(EGLDeviceEXT device, EGLint attribute, EGLAttrib *value); -GLAPI PFNEGLQUERYDEVICEATTRIBEXTPROC glad_eglQueryDeviceAttribEXT; -#define eglQueryDeviceAttribEXT glad_eglQueryDeviceAttribEXT -typedef const char * (APIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC)(EGLDeviceEXT device, EGLint name); -GLAPI PFNEGLQUERYDEVICESTRINGEXTPROC glad_eglQueryDeviceStringEXT; -#define eglQueryDeviceStringEXT glad_eglQueryDeviceStringEXT -typedef EGLBoolean (APIENTRYP PFNEGLQUERYDEVICESEXTPROC)(EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices); -GLAPI PFNEGLQUERYDEVICESEXTPROC glad_eglQueryDevicesEXT; -#define eglQueryDevicesEXT glad_eglQueryDevicesEXT -typedef EGLBoolean (APIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC)(EGLDisplay dpy, EGLint attribute, EGLAttrib *value); -GLAPI PFNEGLQUERYDISPLAYATTRIBEXTPROC glad_eglQueryDisplayAttribEXT; -#define eglQueryDisplayAttribEXT glad_eglQueryDisplayAttribEXT -#endif -#ifndef EGL_EXT_device_drm -#define EGL_EXT_device_drm 1 -#endif -#ifndef EGL_EXT_device_enumeration -#define EGL_EXT_device_enumeration 1 -#endif -#ifndef EGL_EXT_device_openwf -#define EGL_EXT_device_openwf 1 -#endif -#ifndef EGL_EXT_device_query -#define EGL_EXT_device_query 1 -#endif -#ifndef EGL_EXT_gl_colorspace_bt2020_linear -#define EGL_EXT_gl_colorspace_bt2020_linear 1 -#endif -#ifndef EGL_EXT_gl_colorspace_bt2020_pq -#define EGL_EXT_gl_colorspace_bt2020_pq 1 -#endif -#ifndef EGL_EXT_gl_colorspace_display_p3 -#define EGL_EXT_gl_colorspace_display_p3 1 -#endif -#ifndef EGL_EXT_gl_colorspace_display_p3_linear -#define EGL_EXT_gl_colorspace_display_p3_linear 1 -#endif -#ifndef EGL_EXT_gl_colorspace_display_p3_passthrough -#define EGL_EXT_gl_colorspace_display_p3_passthrough 1 -#endif -#ifndef EGL_EXT_gl_colorspace_scrgb -#define EGL_EXT_gl_colorspace_scrgb 1 -#endif -#ifndef EGL_EXT_gl_colorspace_scrgb_linear -#define EGL_EXT_gl_colorspace_scrgb_linear 1 -#endif -#ifndef EGL_EXT_image_dma_buf_import -#define EGL_EXT_image_dma_buf_import 1 -#endif -#ifndef EGL_EXT_image_dma_buf_import_modifiers -#define EGL_EXT_image_dma_buf_import_modifiers 1 -typedef EGLBoolean (APIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC)(EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats); -GLAPI PFNEGLQUERYDMABUFFORMATSEXTPROC glad_eglQueryDmaBufFormatsEXT; -#define eglQueryDmaBufFormatsEXT glad_eglQueryDmaBufFormatsEXT -typedef EGLBoolean (APIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC)(EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers); -GLAPI PFNEGLQUERYDMABUFMODIFIERSEXTPROC glad_eglQueryDmaBufModifiersEXT; -#define eglQueryDmaBufModifiersEXT glad_eglQueryDmaBufModifiersEXT -#endif -#ifndef EGL_EXT_image_gl_colorspace -#define EGL_EXT_image_gl_colorspace 1 -#endif -#ifndef EGL_EXT_image_implicit_sync_control -#define EGL_EXT_image_implicit_sync_control 1 -#endif -#ifndef EGL_EXT_multiview_window -#define EGL_EXT_multiview_window 1 -#endif -#ifndef EGL_EXT_output_base -#define EGL_EXT_output_base 1 -typedef EGLBoolean (APIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC)(EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers); -GLAPI PFNEGLGETOUTPUTLAYERSEXTPROC glad_eglGetOutputLayersEXT; -#define eglGetOutputLayersEXT glad_eglGetOutputLayersEXT -typedef EGLBoolean (APIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC)(EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports); -GLAPI PFNEGLGETOUTPUTPORTSEXTPROC glad_eglGetOutputPortsEXT; -#define eglGetOutputPortsEXT glad_eglGetOutputPortsEXT -typedef EGLBoolean (APIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC)(EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value); -GLAPI PFNEGLOUTPUTLAYERATTRIBEXTPROC glad_eglOutputLayerAttribEXT; -#define eglOutputLayerAttribEXT glad_eglOutputLayerAttribEXT -typedef EGLBoolean (APIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC)(EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value); -GLAPI PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC glad_eglQueryOutputLayerAttribEXT; -#define eglQueryOutputLayerAttribEXT glad_eglQueryOutputLayerAttribEXT -typedef const char * (APIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC)(EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name); -GLAPI PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC glad_eglQueryOutputLayerStringEXT; -#define eglQueryOutputLayerStringEXT glad_eglQueryOutputLayerStringEXT -typedef EGLBoolean (APIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC)(EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value); -GLAPI PFNEGLOUTPUTPORTATTRIBEXTPROC glad_eglOutputPortAttribEXT; -#define eglOutputPortAttribEXT glad_eglOutputPortAttribEXT -typedef EGLBoolean (APIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC)(EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value); -GLAPI PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC glad_eglQueryOutputPortAttribEXT; -#define eglQueryOutputPortAttribEXT glad_eglQueryOutputPortAttribEXT -typedef const char * (APIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC)(EGLDisplay dpy, EGLOutputPortEXT port, EGLint name); -GLAPI PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC glad_eglQueryOutputPortStringEXT; -#define eglQueryOutputPortStringEXT glad_eglQueryOutputPortStringEXT -#endif -#ifndef EGL_EXT_output_drm -#define EGL_EXT_output_drm 1 -#endif -#ifndef EGL_EXT_output_openwf -#define EGL_EXT_output_openwf 1 -#endif -#ifndef EGL_EXT_pixel_format_float -#define EGL_EXT_pixel_format_float 1 -#endif -#ifndef EGL_EXT_platform_base -#define EGL_EXT_platform_base 1 -typedef EGLDisplay (APIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform, void *native_display, const EGLint *attrib_list); -GLAPI PFNEGLGETPLATFORMDISPLAYEXTPROC glad_eglGetPlatformDisplayEXT; -#define eglGetPlatformDisplayEXT glad_eglGetPlatformDisplayEXT -typedef EGLSurface (APIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC)(EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list); -GLAPI PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC glad_eglCreatePlatformWindowSurfaceEXT; -#define eglCreatePlatformWindowSurfaceEXT glad_eglCreatePlatformWindowSurfaceEXT -typedef EGLSurface (APIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC)(EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list); -GLAPI PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC glad_eglCreatePlatformPixmapSurfaceEXT; -#define eglCreatePlatformPixmapSurfaceEXT glad_eglCreatePlatformPixmapSurfaceEXT -#endif -#ifndef EGL_EXT_platform_device -#define EGL_EXT_platform_device 1 -#endif -#ifndef EGL_EXT_platform_wayland -#define EGL_EXT_platform_wayland 1 -#endif -#ifndef EGL_EXT_platform_x11 -#define EGL_EXT_platform_x11 1 -#endif -#ifndef EGL_EXT_protected_content -#define EGL_EXT_protected_content 1 -#endif -#ifndef EGL_EXT_protected_surface -#define EGL_EXT_protected_surface 1 -#endif -#ifndef EGL_EXT_stream_consumer_egloutput -#define EGL_EXT_stream_consumer_egloutput 1 -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer); -GLAPI PFNEGLSTREAMCONSUMEROUTPUTEXTPROC glad_eglStreamConsumerOutputEXT; -#define eglStreamConsumerOutputEXT glad_eglStreamConsumerOutputEXT -#endif -#ifndef EGL_EXT_surface_CTA861_3_metadata -#define EGL_EXT_surface_CTA861_3_metadata 1 -#endif -#ifndef EGL_EXT_surface_SMPTE2086_metadata -#define EGL_EXT_surface_SMPTE2086_metadata 1 -#endif -#ifndef EGL_EXT_swap_buffers_with_damage -#define EGL_EXT_swap_buffers_with_damage 1 -typedef EGLBoolean (APIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC)(EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects); -GLAPI PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC glad_eglSwapBuffersWithDamageEXT; -#define eglSwapBuffersWithDamageEXT glad_eglSwapBuffersWithDamageEXT -#endif -#ifndef EGL_EXT_sync_reuse -#define EGL_EXT_sync_reuse 1 -typedef EGLBoolean (APIENTRYP PFNEGLUNSIGNALSYNCEXTPROC)(EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list); -GLAPI PFNEGLUNSIGNALSYNCEXTPROC glad_eglUnsignalSyncEXT; -#define eglUnsignalSyncEXT glad_eglUnsignalSyncEXT -#endif -#ifndef EGL_EXT_yuv_surface -#define EGL_EXT_yuv_surface 1 -#endif -#ifndef EGL_HI_clientpixmap -#define EGL_HI_clientpixmap 1 -typedef EGLSurface (APIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC)(EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap); -GLAPI PFNEGLCREATEPIXMAPSURFACEHIPROC glad_eglCreatePixmapSurfaceHI; -#define eglCreatePixmapSurfaceHI glad_eglCreatePixmapSurfaceHI -#endif -#ifndef EGL_HI_colorformats -#define EGL_HI_colorformats 1 -#endif -#ifndef EGL_IMG_context_priority -#define EGL_IMG_context_priority 1 -#endif -#ifndef EGL_IMG_image_plane_attribs -#define EGL_IMG_image_plane_attribs 1 -#endif -#ifndef EGL_KHR_cl_event -#define EGL_KHR_cl_event 1 -#endif -#ifndef EGL_KHR_cl_event2 -#define EGL_KHR_cl_event2 1 -typedef EGLSyncKHR (APIENTRYP PFNEGLCREATESYNC64KHRPROC)(EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list); -GLAPI PFNEGLCREATESYNC64KHRPROC glad_eglCreateSync64KHR; -#define eglCreateSync64KHR glad_eglCreateSync64KHR -#endif -#ifndef EGL_KHR_client_get_all_proc_addresses -#define EGL_KHR_client_get_all_proc_addresses 1 -#endif -#ifndef EGL_KHR_config_attribs -#define EGL_KHR_config_attribs 1 -#endif -#ifndef EGL_KHR_context_flush_control -#define EGL_KHR_context_flush_control 1 -#endif -#ifndef EGL_KHR_create_context -#define EGL_KHR_create_context 1 -#endif -#ifndef EGL_KHR_create_context_no_error -#define EGL_KHR_create_context_no_error 1 -#endif -#ifndef EGL_KHR_debug -#define EGL_KHR_debug 1 -typedef EGLint (APIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC)(EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list); -GLAPI PFNEGLDEBUGMESSAGECONTROLKHRPROC glad_eglDebugMessageControlKHR; -#define eglDebugMessageControlKHR glad_eglDebugMessageControlKHR -typedef EGLBoolean (APIENTRYP PFNEGLQUERYDEBUGKHRPROC)(EGLint attribute, EGLAttrib *value); -GLAPI PFNEGLQUERYDEBUGKHRPROC glad_eglQueryDebugKHR; -#define eglQueryDebugKHR glad_eglQueryDebugKHR -typedef EGLint (APIENTRYP PFNEGLLABELOBJECTKHRPROC)(EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label); -GLAPI PFNEGLLABELOBJECTKHRPROC glad_eglLabelObjectKHR; -#define eglLabelObjectKHR glad_eglLabelObjectKHR -#endif -#ifndef EGL_KHR_display_reference -#define EGL_KHR_display_reference 1 -typedef EGLBoolean (APIENTRYP PFNEGLQUERYDISPLAYATTRIBKHRPROC)(EGLDisplay dpy, EGLint name, EGLAttrib *value); -GLAPI PFNEGLQUERYDISPLAYATTRIBKHRPROC glad_eglQueryDisplayAttribKHR; -#define eglQueryDisplayAttribKHR glad_eglQueryDisplayAttribKHR -#endif -#ifndef EGL_KHR_fence_sync -#define EGL_KHR_fence_sync 1 -typedef EGLSyncKHR (APIENTRYP PFNEGLCREATESYNCKHRPROC)(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); -GLAPI PFNEGLCREATESYNCKHRPROC glad_eglCreateSyncKHR; -#define eglCreateSyncKHR glad_eglCreateSyncKHR -typedef EGLBoolean (APIENTRYP PFNEGLDESTROYSYNCKHRPROC)(EGLDisplay dpy, EGLSyncKHR sync); -GLAPI PFNEGLDESTROYSYNCKHRPROC glad_eglDestroySyncKHR; -#define eglDestroySyncKHR glad_eglDestroySyncKHR -typedef EGLint (APIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); -GLAPI PFNEGLCLIENTWAITSYNCKHRPROC glad_eglClientWaitSyncKHR; -#define eglClientWaitSyncKHR glad_eglClientWaitSyncKHR -typedef EGLBoolean (APIENTRYP PFNEGLGETSYNCATTRIBKHRPROC)(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); -GLAPI PFNEGLGETSYNCATTRIBKHRPROC glad_eglGetSyncAttribKHR; -#define eglGetSyncAttribKHR glad_eglGetSyncAttribKHR -#endif -#ifndef EGL_KHR_get_all_proc_addresses -#define EGL_KHR_get_all_proc_addresses 1 -#endif -#ifndef EGL_KHR_gl_colorspace -#define EGL_KHR_gl_colorspace 1 -#endif -#ifndef EGL_KHR_gl_renderbuffer_image -#define EGL_KHR_gl_renderbuffer_image 1 -#endif -#ifndef EGL_KHR_gl_texture_2D_image -#define EGL_KHR_gl_texture_2D_image 1 -#endif -#ifndef EGL_KHR_gl_texture_3D_image -#define EGL_KHR_gl_texture_3D_image 1 -#endif -#ifndef EGL_KHR_gl_texture_cubemap_image -#define EGL_KHR_gl_texture_cubemap_image 1 -#endif -#ifndef EGL_KHR_image -#define EGL_KHR_image 1 -typedef EGLImageKHR (APIENTRYP PFNEGLCREATEIMAGEKHRPROC)(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); -GLAPI PFNEGLCREATEIMAGEKHRPROC glad_eglCreateImageKHR; -#define eglCreateImageKHR glad_eglCreateImageKHR -typedef EGLBoolean (APIENTRYP PFNEGLDESTROYIMAGEKHRPROC)(EGLDisplay dpy, EGLImageKHR image); -GLAPI PFNEGLDESTROYIMAGEKHRPROC glad_eglDestroyImageKHR; -#define eglDestroyImageKHR glad_eglDestroyImageKHR -#endif -#ifndef EGL_KHR_image_base -#define EGL_KHR_image_base 1 -#endif -#ifndef EGL_KHR_image_pixmap -#define EGL_KHR_image_pixmap 1 -#endif -#ifndef EGL_KHR_lock_surface -#define EGL_KHR_lock_surface 1 -typedef EGLBoolean (APIENTRYP PFNEGLLOCKSURFACEKHRPROC)(EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list); -GLAPI PFNEGLLOCKSURFACEKHRPROC glad_eglLockSurfaceKHR; -#define eglLockSurfaceKHR glad_eglLockSurfaceKHR -typedef EGLBoolean (APIENTRYP PFNEGLUNLOCKSURFACEKHRPROC)(EGLDisplay dpy, EGLSurface surface); -GLAPI PFNEGLUNLOCKSURFACEKHRPROC glad_eglUnlockSurfaceKHR; -#define eglUnlockSurfaceKHR glad_eglUnlockSurfaceKHR -#endif -#ifndef EGL_KHR_lock_surface2 -#define EGL_KHR_lock_surface2 1 -#endif -#ifndef EGL_KHR_lock_surface3 -#define EGL_KHR_lock_surface3 1 -typedef EGLBoolean (APIENTRYP PFNEGLQUERYSURFACE64KHRPROC)(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value); -GLAPI PFNEGLQUERYSURFACE64KHRPROC glad_eglQuerySurface64KHR; -#define eglQuerySurface64KHR glad_eglQuerySurface64KHR -#endif -#ifndef EGL_KHR_mutable_render_buffer -#define EGL_KHR_mutable_render_buffer 1 -#endif -#ifndef EGL_KHR_no_config_context -#define EGL_KHR_no_config_context 1 -#endif -#ifndef EGL_KHR_partial_update -#define EGL_KHR_partial_update 1 -typedef EGLBoolean (APIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC)(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); -GLAPI PFNEGLSETDAMAGEREGIONKHRPROC glad_eglSetDamageRegionKHR; -#define eglSetDamageRegionKHR glad_eglSetDamageRegionKHR -#endif -#ifndef EGL_KHR_platform_android -#define EGL_KHR_platform_android 1 -#endif -#ifndef EGL_KHR_platform_gbm -#define EGL_KHR_platform_gbm 1 -#endif -#ifndef EGL_KHR_platform_wayland -#define EGL_KHR_platform_wayland 1 -#endif -#ifndef EGL_KHR_platform_x11 -#define EGL_KHR_platform_x11 1 -#endif -#ifndef EGL_KHR_reusable_sync -#define EGL_KHR_reusable_sync 1 -typedef EGLBoolean (APIENTRYP PFNEGLSIGNALSYNCKHRPROC)(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); -GLAPI PFNEGLSIGNALSYNCKHRPROC glad_eglSignalSyncKHR; -#define eglSignalSyncKHR glad_eglSignalSyncKHR -#endif -#ifndef EGL_KHR_stream -#define EGL_KHR_stream 1 -typedef EGLStreamKHR (APIENTRYP PFNEGLCREATESTREAMKHRPROC)(EGLDisplay dpy, const EGLint *attrib_list); -GLAPI PFNEGLCREATESTREAMKHRPROC glad_eglCreateStreamKHR; -#define eglCreateStreamKHR glad_eglCreateStreamKHR -typedef EGLBoolean (APIENTRYP PFNEGLDESTROYSTREAMKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -GLAPI PFNEGLDESTROYSTREAMKHRPROC glad_eglDestroyStreamKHR; -#define eglDestroyStreamKHR glad_eglDestroyStreamKHR -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMATTRIBKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); -GLAPI PFNEGLSTREAMATTRIBKHRPROC glad_eglStreamAttribKHR; -#define eglStreamAttribKHR glad_eglStreamAttribKHR -typedef EGLBoolean (APIENTRYP PFNEGLQUERYSTREAMKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); -GLAPI PFNEGLQUERYSTREAMKHRPROC glad_eglQueryStreamKHR; -#define eglQueryStreamKHR glad_eglQueryStreamKHR -typedef EGLBoolean (APIENTRYP PFNEGLQUERYSTREAMU64KHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); -GLAPI PFNEGLQUERYSTREAMU64KHRPROC glad_eglQueryStreamu64KHR; -#define eglQueryStreamu64KHR glad_eglQueryStreamu64KHR -#endif -#ifndef EGL_KHR_stream_attrib -#define EGL_KHR_stream_attrib 1 -typedef EGLStreamKHR (APIENTRYP PFNEGLCREATESTREAMATTRIBKHRPROC)(EGLDisplay dpy, const EGLAttrib *attrib_list); -GLAPI PFNEGLCREATESTREAMATTRIBKHRPROC glad_eglCreateStreamAttribKHR; -#define eglCreateStreamAttribKHR glad_eglCreateStreamAttribKHR -typedef EGLBoolean (APIENTRYP PFNEGLSETSTREAMATTRIBKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value); -GLAPI PFNEGLSETSTREAMATTRIBKHRPROC glad_eglSetStreamAttribKHR; -#define eglSetStreamAttribKHR glad_eglSetStreamAttribKHR -typedef EGLBoolean (APIENTRYP PFNEGLQUERYSTREAMATTRIBKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value); -GLAPI PFNEGLQUERYSTREAMATTRIBKHRPROC glad_eglQueryStreamAttribKHR; -#define eglQueryStreamAttribKHR glad_eglQueryStreamAttribKHR -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); -GLAPI PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC glad_eglStreamConsumerAcquireAttribKHR; -#define eglStreamConsumerAcquireAttribKHR glad_eglStreamConsumerAcquireAttribKHR -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); -GLAPI PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC glad_eglStreamConsumerReleaseAttribKHR; -#define eglStreamConsumerReleaseAttribKHR glad_eglStreamConsumerReleaseAttribKHR -#endif -#ifndef EGL_KHR_stream_consumer_gltexture -#define EGL_KHR_stream_consumer_gltexture 1 -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -GLAPI PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC glad_eglStreamConsumerGLTextureExternalKHR; -#define eglStreamConsumerGLTextureExternalKHR glad_eglStreamConsumerGLTextureExternalKHR -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -GLAPI PFNEGLSTREAMCONSUMERACQUIREKHRPROC glad_eglStreamConsumerAcquireKHR; -#define eglStreamConsumerAcquireKHR glad_eglStreamConsumerAcquireKHR -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -GLAPI PFNEGLSTREAMCONSUMERRELEASEKHRPROC glad_eglStreamConsumerReleaseKHR; -#define eglStreamConsumerReleaseKHR glad_eglStreamConsumerReleaseKHR -#endif -#ifndef EGL_KHR_stream_cross_process_fd -#define EGL_KHR_stream_cross_process_fd 1 -typedef EGLNativeFileDescriptorKHR (APIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream); -GLAPI PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC glad_eglGetStreamFileDescriptorKHR; -#define eglGetStreamFileDescriptorKHR glad_eglGetStreamFileDescriptorKHR -typedef EGLStreamKHR (APIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC)(EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); -GLAPI PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC glad_eglCreateStreamFromFileDescriptorKHR; -#define eglCreateStreamFromFileDescriptorKHR glad_eglCreateStreamFromFileDescriptorKHR -#endif -#ifndef EGL_KHR_stream_fifo -#define EGL_KHR_stream_fifo 1 -typedef EGLBoolean (APIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); -GLAPI PFNEGLQUERYSTREAMTIMEKHRPROC glad_eglQueryStreamTimeKHR; -#define eglQueryStreamTimeKHR glad_eglQueryStreamTimeKHR -#endif -#ifndef EGL_KHR_stream_producer_aldatalocator -#define EGL_KHR_stream_producer_aldatalocator 1 -#endif -#ifndef EGL_KHR_stream_producer_eglsurface -#define EGL_KHR_stream_producer_eglsurface 1 -typedef EGLSurface (APIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); -GLAPI PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC glad_eglCreateStreamProducerSurfaceKHR; -#define eglCreateStreamProducerSurfaceKHR glad_eglCreateStreamProducerSurfaceKHR -#endif -#ifndef EGL_KHR_surfaceless_context -#define EGL_KHR_surfaceless_context 1 -#endif -#ifndef EGL_KHR_swap_buffers_with_damage -#define EGL_KHR_swap_buffers_with_damage 1 -typedef EGLBoolean (APIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC)(EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects); -GLAPI PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC glad_eglSwapBuffersWithDamageKHR; -#define eglSwapBuffersWithDamageKHR glad_eglSwapBuffersWithDamageKHR -#endif -#ifndef EGL_KHR_vg_parent_image -#define EGL_KHR_vg_parent_image 1 -#endif -#ifndef EGL_KHR_wait_sync -#define EGL_KHR_wait_sync 1 -typedef EGLint (APIENTRYP PFNEGLWAITSYNCKHRPROC)(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); -GLAPI PFNEGLWAITSYNCKHRPROC glad_eglWaitSyncKHR; -#define eglWaitSyncKHR glad_eglWaitSyncKHR -#endif -#ifndef EGL_MESA_drm_image -#define EGL_MESA_drm_image 1 -typedef EGLImageKHR (APIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC)(EGLDisplay dpy, const EGLint *attrib_list); -GLAPI PFNEGLCREATEDRMIMAGEMESAPROC glad_eglCreateDRMImageMESA; -#define eglCreateDRMImageMESA glad_eglCreateDRMImageMESA -typedef EGLBoolean (APIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC)(EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); -GLAPI PFNEGLEXPORTDRMIMAGEMESAPROC glad_eglExportDRMImageMESA; -#define eglExportDRMImageMESA glad_eglExportDRMImageMESA -#endif -#ifndef EGL_MESA_image_dma_buf_export -#define EGL_MESA_image_dma_buf_export 1 -typedef EGLBoolean (APIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC)(EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers); -GLAPI PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC glad_eglExportDMABUFImageQueryMESA; -#define eglExportDMABUFImageQueryMESA glad_eglExportDMABUFImageQueryMESA -typedef EGLBoolean (APIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC)(EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets); -GLAPI PFNEGLEXPORTDMABUFIMAGEMESAPROC glad_eglExportDMABUFImageMESA; -#define eglExportDMABUFImageMESA glad_eglExportDMABUFImageMESA -#endif -#ifndef EGL_MESA_platform_gbm -#define EGL_MESA_platform_gbm 1 -#endif -#ifndef EGL_MESA_platform_surfaceless -#define EGL_MESA_platform_surfaceless 1 -#endif -#ifndef EGL_MESA_query_driver -#define EGL_MESA_query_driver 1 -typedef char * (APIENTRYP PFNEGLGETDISPLAYDRIVERCONFIGPROC)(EGLDisplay dpy); -GLAPI PFNEGLGETDISPLAYDRIVERCONFIGPROC glad_eglGetDisplayDriverConfig; -#define eglGetDisplayDriverConfig glad_eglGetDisplayDriverConfig -typedef const char * (APIENTRYP PFNEGLGETDISPLAYDRIVERNAMEPROC)(EGLDisplay dpy); -GLAPI PFNEGLGETDISPLAYDRIVERNAMEPROC glad_eglGetDisplayDriverName; -#define eglGetDisplayDriverName glad_eglGetDisplayDriverName -#endif -#ifndef EGL_NOK_swap_region -#define EGL_NOK_swap_region 1 -typedef EGLBoolean (APIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC)(EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); -GLAPI PFNEGLSWAPBUFFERSREGIONNOKPROC glad_eglSwapBuffersRegionNOK; -#define eglSwapBuffersRegionNOK glad_eglSwapBuffersRegionNOK -#endif -#ifndef EGL_NOK_swap_region2 -#define EGL_NOK_swap_region2 1 -typedef EGLBoolean (APIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC)(EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); -GLAPI PFNEGLSWAPBUFFERSREGION2NOKPROC glad_eglSwapBuffersRegion2NOK; -#define eglSwapBuffersRegion2NOK glad_eglSwapBuffersRegion2NOK -#endif -#ifndef EGL_NOK_texture_from_pixmap -#define EGL_NOK_texture_from_pixmap 1 -#endif -#ifndef EGL_NV_3dvision_surface -#define EGL_NV_3dvision_surface 1 -#endif -#ifndef EGL_NV_context_priority_realtime -#define EGL_NV_context_priority_realtime 1 -#endif -#ifndef EGL_NV_coverage_sample -#define EGL_NV_coverage_sample 1 -#endif -#ifndef EGL_NV_coverage_sample_resolve -#define EGL_NV_coverage_sample_resolve 1 -#endif -#ifndef EGL_NV_cuda_event -#define EGL_NV_cuda_event 1 -#endif -#ifndef EGL_NV_depth_nonlinear -#define EGL_NV_depth_nonlinear 1 -#endif -#ifndef EGL_NV_device_cuda -#define EGL_NV_device_cuda 1 -#endif -#ifndef EGL_NV_native_query -#define EGL_NV_native_query 1 -typedef EGLBoolean (APIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC)(EGLDisplay dpy, EGLNativeDisplayType *display_id); -GLAPI PFNEGLQUERYNATIVEDISPLAYNVPROC glad_eglQueryNativeDisplayNV; -#define eglQueryNativeDisplayNV glad_eglQueryNativeDisplayNV -typedef EGLBoolean (APIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window); -GLAPI PFNEGLQUERYNATIVEWINDOWNVPROC glad_eglQueryNativeWindowNV; -#define eglQueryNativeWindowNV glad_eglQueryNativeWindowNV -typedef EGLBoolean (APIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC)(EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap); -GLAPI PFNEGLQUERYNATIVEPIXMAPNVPROC glad_eglQueryNativePixmapNV; -#define eglQueryNativePixmapNV glad_eglQueryNativePixmapNV -#endif -#ifndef EGL_NV_post_convert_rounding -#define EGL_NV_post_convert_rounding 1 -#endif -#ifndef EGL_NV_post_sub_buffer -#define EGL_NV_post_sub_buffer 1 -typedef EGLBoolean (APIENTRYP PFNEGLPOSTSUBBUFFERNVPROC)(EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); -GLAPI PFNEGLPOSTSUBBUFFERNVPROC glad_eglPostSubBufferNV; -#define eglPostSubBufferNV glad_eglPostSubBufferNV -#endif -#ifndef EGL_NV_quadruple_buffer -#define EGL_NV_quadruple_buffer 1 -#endif -#ifndef EGL_NV_robustness_video_memory_purge -#define EGL_NV_robustness_video_memory_purge 1 -#endif -#ifndef EGL_NV_stream_consumer_gltexture_yuv -#define EGL_NV_stream_consumer_gltexture_yuv 1 -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC)(EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list); -GLAPI PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC glad_eglStreamConsumerGLTextureExternalAttribsNV; -#define eglStreamConsumerGLTextureExternalAttribsNV glad_eglStreamConsumerGLTextureExternalAttribsNV -#endif -#ifndef EGL_NV_stream_cross_display -#define EGL_NV_stream_cross_display 1 -#endif -#ifndef EGL_NV_stream_cross_object -#define EGL_NV_stream_cross_object 1 -#endif -#ifndef EGL_NV_stream_cross_partition -#define EGL_NV_stream_cross_partition 1 -#endif -#ifndef EGL_NV_stream_cross_process -#define EGL_NV_stream_cross_process 1 -#endif -#ifndef EGL_NV_stream_cross_system -#define EGL_NV_stream_cross_system 1 -#endif -#ifndef EGL_NV_stream_dma -#define EGL_NV_stream_dma 1 -#endif -#ifndef EGL_NV_stream_fifo_next -#define EGL_NV_stream_fifo_next 1 -#endif -#ifndef EGL_NV_stream_fifo_synchronous -#define EGL_NV_stream_fifo_synchronous 1 -#endif -#ifndef EGL_NV_stream_flush -#define EGL_NV_stream_flush 1 -typedef EGLBoolean (APIENTRYP PFNEGLSTREAMFLUSHNVPROC)(EGLDisplay dpy, EGLStreamKHR stream); -GLAPI PFNEGLSTREAMFLUSHNVPROC glad_eglStreamFlushNV; -#define eglStreamFlushNV glad_eglStreamFlushNV -#endif -#ifndef EGL_NV_stream_frame_limits -#define EGL_NV_stream_frame_limits 1 -#endif -#ifndef EGL_NV_stream_metadata -#define EGL_NV_stream_metadata 1 -typedef EGLBoolean (APIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC)(EGLDisplay dpy, EGLint attribute, EGLAttrib *value); -GLAPI PFNEGLQUERYDISPLAYATTRIBNVPROC glad_eglQueryDisplayAttribNV; -#define eglQueryDisplayAttribNV glad_eglQueryDisplayAttribNV -typedef EGLBoolean (APIENTRYP PFNEGLSETSTREAMMETADATANVPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data); -GLAPI PFNEGLSETSTREAMMETADATANVPROC glad_eglSetStreamMetadataNV; -#define eglSetStreamMetadataNV glad_eglSetStreamMetadataNV -typedef EGLBoolean (APIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data); -GLAPI PFNEGLQUERYSTREAMMETADATANVPROC glad_eglQueryStreamMetadataNV; -#define eglQueryStreamMetadataNV glad_eglQueryStreamMetadataNV -#endif -#ifndef EGL_NV_stream_origin -#define EGL_NV_stream_origin 1 -#endif -#ifndef EGL_NV_stream_remote -#define EGL_NV_stream_remote 1 -#endif -#ifndef EGL_NV_stream_reset -#define EGL_NV_stream_reset 1 -typedef EGLBoolean (APIENTRYP PFNEGLRESETSTREAMNVPROC)(EGLDisplay dpy, EGLStreamKHR stream); -GLAPI PFNEGLRESETSTREAMNVPROC glad_eglResetStreamNV; -#define eglResetStreamNV glad_eglResetStreamNV -#endif -#ifndef EGL_NV_stream_socket -#define EGL_NV_stream_socket 1 -#endif -#ifndef EGL_NV_stream_socket_inet -#define EGL_NV_stream_socket_inet 1 -#endif -#ifndef EGL_NV_stream_socket_unix -#define EGL_NV_stream_socket_unix 1 -#endif -#ifndef EGL_NV_stream_sync -#define EGL_NV_stream_sync 1 -typedef EGLSyncKHR (APIENTRYP PFNEGLCREATESTREAMSYNCNVPROC)(EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list); -GLAPI PFNEGLCREATESTREAMSYNCNVPROC glad_eglCreateStreamSyncNV; -#define eglCreateStreamSyncNV glad_eglCreateStreamSyncNV -#endif -#ifndef EGL_NV_sync -#define EGL_NV_sync 1 -typedef EGLSyncNV (APIENTRYP PFNEGLCREATEFENCESYNCNVPROC)(EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); -GLAPI PFNEGLCREATEFENCESYNCNVPROC glad_eglCreateFenceSyncNV; -#define eglCreateFenceSyncNV glad_eglCreateFenceSyncNV -typedef EGLBoolean (APIENTRYP PFNEGLDESTROYSYNCNVPROC)(EGLSyncNV sync); -GLAPI PFNEGLDESTROYSYNCNVPROC glad_eglDestroySyncNV; -#define eglDestroySyncNV glad_eglDestroySyncNV -typedef EGLBoolean (APIENTRYP PFNEGLFENCENVPROC)(EGLSyncNV sync); -GLAPI PFNEGLFENCENVPROC glad_eglFenceNV; -#define eglFenceNV glad_eglFenceNV -typedef EGLint (APIENTRYP PFNEGLCLIENTWAITSYNCNVPROC)(EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); -GLAPI PFNEGLCLIENTWAITSYNCNVPROC glad_eglClientWaitSyncNV; -#define eglClientWaitSyncNV glad_eglClientWaitSyncNV -typedef EGLBoolean (APIENTRYP PFNEGLSIGNALSYNCNVPROC)(EGLSyncNV sync, EGLenum mode); -GLAPI PFNEGLSIGNALSYNCNVPROC glad_eglSignalSyncNV; -#define eglSignalSyncNV glad_eglSignalSyncNV -typedef EGLBoolean (APIENTRYP PFNEGLGETSYNCATTRIBNVPROC)(EGLSyncNV sync, EGLint attribute, EGLint *value); -GLAPI PFNEGLGETSYNCATTRIBNVPROC glad_eglGetSyncAttribNV; -#define eglGetSyncAttribNV glad_eglGetSyncAttribNV -#endif -#ifndef EGL_NV_system_time -#define EGL_NV_system_time 1 -typedef EGLuint64NV (APIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC)(void); -GLAPI PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC glad_eglGetSystemTimeFrequencyNV; -#define eglGetSystemTimeFrequencyNV glad_eglGetSystemTimeFrequencyNV -typedef EGLuint64NV (APIENTRYP PFNEGLGETSYSTEMTIMENVPROC)(void); -GLAPI PFNEGLGETSYSTEMTIMENVPROC glad_eglGetSystemTimeNV; -#define eglGetSystemTimeNV glad_eglGetSystemTimeNV -#endif -#ifndef EGL_NV_triple_buffer -#define EGL_NV_triple_buffer 1 -#endif -#ifndef EGL_TIZEN_image_native_buffer -#define EGL_TIZEN_image_native_buffer 1 -#endif -#ifndef EGL_TIZEN_image_native_surface -#define EGL_TIZEN_image_native_surface 1 -#endif -#ifndef EGL_WL_bind_wayland_display -#define EGL_WL_bind_wayland_display 1 -typedef EGLBoolean (APIENTRYP PFNEGLBINDWAYLANDDISPLAYWLPROC)(EGLDisplay dpy, struct wl_display *display); -GLAPI PFNEGLBINDWAYLANDDISPLAYWLPROC glad_eglBindWaylandDisplayWL; -#define eglBindWaylandDisplayWL glad_eglBindWaylandDisplayWL -typedef EGLBoolean (APIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWLPROC)(EGLDisplay dpy, struct wl_display *display); -GLAPI PFNEGLUNBINDWAYLANDDISPLAYWLPROC glad_eglUnbindWaylandDisplayWL; -#define eglUnbindWaylandDisplayWL glad_eglUnbindWaylandDisplayWL -typedef EGLBoolean (APIENTRYP PFNEGLQUERYWAYLANDBUFFERWLPROC)(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value); -GLAPI PFNEGLQUERYWAYLANDBUFFERWLPROC glad_eglQueryWaylandBufferWL; -#define eglQueryWaylandBufferWL glad_eglQueryWaylandBufferWL -#endif -#ifndef EGL_WL_create_wayland_buffer_from_image -#define EGL_WL_create_wayland_buffer_from_image 1 -typedef struct wl_buffer * (APIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC)(EGLDisplay dpy, EGLImageKHR image); -GLAPI PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC glad_eglCreateWaylandBufferFromImageWL; -#define eglCreateWaylandBufferFromImageWL glad_eglCreateWaylandBufferFromImageWL -#endif - -#ifdef __cplusplus -} -#endif - -#endif \ No newline at end of file diff --git a/third_party/glad/include/glad/glad_glx.h b/third_party/glad/include/glad/glad_glx.h deleted file mode 100644 index 307e08e5..00000000 --- a/third_party/glad/include/glad/glad_glx.h +++ /dev/null @@ -1,1262 +0,0 @@ -/* - - GLX loader generated by glad 0.1.33 on Sun May 3 16:48:35 2020. - - Language/Generator: C/C++ - Specification: glx - APIs: glx=1.4 - Profile: - - Extensions: - GLX_3DFX_multisample, - GLX_AMD_gpu_association, - GLX_ARB_context_flush_control, - GLX_ARB_create_context, - GLX_ARB_create_context_no_error, - GLX_ARB_create_context_profile, - GLX_ARB_create_context_robustness, - GLX_ARB_fbconfig_float, - GLX_ARB_framebuffer_sRGB, - GLX_ARB_get_proc_address, - GLX_ARB_multisample, - GLX_ARB_robustness_application_isolation, - GLX_ARB_robustness_share_group_isolation, - GLX_ARB_vertex_buffer_object, - GLX_EXT_buffer_age, - GLX_EXT_context_priority, - GLX_EXT_create_context_es2_profile, - GLX_EXT_create_context_es_profile, - GLX_EXT_fbconfig_packed_float, - GLX_EXT_framebuffer_sRGB, - GLX_EXT_import_context, - GLX_EXT_libglvnd, - GLX_EXT_no_config_context, - GLX_EXT_stereo_tree, - GLX_EXT_swap_control, - GLX_EXT_swap_control_tear, - GLX_EXT_texture_from_pixmap, - GLX_EXT_visual_info, - GLX_EXT_visual_rating, - GLX_INTEL_swap_event, - GLX_MESA_agp_offset, - GLX_MESA_copy_sub_buffer, - GLX_MESA_pixmap_colormap, - GLX_MESA_query_renderer, - GLX_MESA_release_buffers, - GLX_MESA_set_3dfx_mode, - GLX_MESA_swap_control, - GLX_NV_copy_buffer, - GLX_NV_copy_image, - GLX_NV_delay_before_swap, - GLX_NV_float_buffer, - GLX_NV_multigpu_context, - GLX_NV_multisample_coverage, - GLX_NV_present_video, - GLX_NV_robustness_video_memory_purge, - GLX_NV_swap_group, - GLX_NV_video_capture, - GLX_NV_video_out, - GLX_OML_swap_method, - GLX_OML_sync_control, - GLX_SGIS_blended_overlay, - GLX_SGIS_multisample, - GLX_SGIS_shared_multisample, - GLX_SGIX_dmbuffer, - GLX_SGIX_fbconfig, - GLX_SGIX_hyperpipe, - GLX_SGIX_pbuffer, - GLX_SGIX_swap_barrier, - GLX_SGIX_swap_group, - GLX_SGIX_video_resize, - GLX_SGIX_video_source, - GLX_SGIX_visual_select_group, - GLX_SGI_cushion, - GLX_SGI_make_current_read, - GLX_SGI_swap_control, - GLX_SGI_video_sync, - GLX_SUN_get_transparent_index - Loader: True - Local files: False - Omit khrplatform: False - Reproducible: False - - Commandline: - --api="glx=1.4" --generator="c" --spec="glx" --extensions="GLX_3DFX_multisample,GLX_AMD_gpu_association,GLX_ARB_context_flush_control,GLX_ARB_create_context,GLX_ARB_create_context_no_error,GLX_ARB_create_context_profile,GLX_ARB_create_context_robustness,GLX_ARB_fbconfig_float,GLX_ARB_framebuffer_sRGB,GLX_ARB_get_proc_address,GLX_ARB_multisample,GLX_ARB_robustness_application_isolation,GLX_ARB_robustness_share_group_isolation,GLX_ARB_vertex_buffer_object,GLX_EXT_buffer_age,GLX_EXT_context_priority,GLX_EXT_create_context_es2_profile,GLX_EXT_create_context_es_profile,GLX_EXT_fbconfig_packed_float,GLX_EXT_framebuffer_sRGB,GLX_EXT_import_context,GLX_EXT_libglvnd,GLX_EXT_no_config_context,GLX_EXT_stereo_tree,GLX_EXT_swap_control,GLX_EXT_swap_control_tear,GLX_EXT_texture_from_pixmap,GLX_EXT_visual_info,GLX_EXT_visual_rating,GLX_INTEL_swap_event,GLX_MESA_agp_offset,GLX_MESA_copy_sub_buffer,GLX_MESA_pixmap_colormap,GLX_MESA_query_renderer,GLX_MESA_release_buffers,GLX_MESA_set_3dfx_mode,GLX_MESA_swap_control,GLX_NV_copy_buffer,GLX_NV_copy_image,GLX_NV_delay_before_swap,GLX_NV_float_buffer,GLX_NV_multigpu_context,GLX_NV_multisample_coverage,GLX_NV_present_video,GLX_NV_robustness_video_memory_purge,GLX_NV_swap_group,GLX_NV_video_capture,GLX_NV_video_out,GLX_OML_swap_method,GLX_OML_sync_control,GLX_SGIS_blended_overlay,GLX_SGIS_multisample,GLX_SGIS_shared_multisample,GLX_SGIX_dmbuffer,GLX_SGIX_fbconfig,GLX_SGIX_hyperpipe,GLX_SGIX_pbuffer,GLX_SGIX_swap_barrier,GLX_SGIX_swap_group,GLX_SGIX_video_resize,GLX_SGIX_video_source,GLX_SGIX_visual_select_group,GLX_SGI_cushion,GLX_SGI_make_current_read,GLX_SGI_swap_control,GLX_SGI_video_sync,GLX_SUN_get_transparent_index" - Online: - Too many extensions -*/ - - -#include -#include -#include -#include - -#ifndef __glad_glxext_h_ - -#ifdef __glxext_h_ -#error GLX header already included, remove this include, glad already provides it -#endif - -#define __glad_glxext_h_ -#define __glxext_h_ - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void* (* GLADloadproc)(const char *name); - -#ifndef GLAPI -# if defined(GLAD_GLAPI_EXPORT) -# if defined(_WIN32) || defined(__CYGWIN__) -# if defined(GLAD_GLAPI_EXPORT_BUILD) -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllexport)) extern -# else -# define GLAPI __declspec(dllexport) extern -# endif -# else -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllimport)) extern -# else -# define GLAPI __declspec(dllimport) extern -# endif -# endif -# elif defined(__GNUC__) && defined(GLAD_GLAPI_EXPORT_BUILD) -# define GLAPI __attribute__ ((visibility ("default"))) extern -# else -# define GLAPI extern -# endif -# else -# define GLAPI extern -# endif -#endif - -GLAPI int gladLoadGLX(Display *dpy, int screen); - -GLAPI int gladLoadGLXLoader(GLADloadproc, Display *dpy, int screen); - -#ifndef GLEXT_64_TYPES_DEFINED -/* This code block is duplicated in glext.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 GLX_OML_sync_control extension). */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -#include -#elif defined(__sun__) || defined(__digital__) -#include -#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 -#elif defined(__SCO__) || defined(__USLC__) -#include -#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 -#elif defined(_WIN32) -typedef __int32 int32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -/* Fallback if nothing above works */ -#include -#endif -#endif -typedef XID GLXFBConfigID; -typedef struct __GLXFBConfigRec *GLXFBConfig; -typedef XID GLXContextID; -typedef struct __GLXcontextRec *GLXContext; -typedef XID GLXPixmap; -typedef XID GLXDrawable; -typedef XID GLXWindow; -typedef XID GLXPbuffer; -typedef void (APIENTRY *__GLXextFuncPtr)(void); -typedef XID GLXVideoCaptureDeviceNV; -typedef unsigned int GLXVideoDeviceNV; -typedef XID GLXVideoSourceSGIX; -typedef XID GLXFBConfigIDSGIX; -typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; -typedef XID GLXPbufferSGIX; -typedef struct { - int event_type; /* GLX_DAMAGED or GLX_SAVED */ - int draw_type; /* GLX_WINDOW or GLX_PBUFFER */ - unsigned long serial; /* # of last request processed by server */ - Bool send_event; /* true if this came for SendEvent request */ - Display *display; /* display the event was read from */ - GLXDrawable drawable; /* XID of Drawable */ - unsigned int buffer_mask; /* mask indicating which buffers are affected */ - unsigned int aux_buffer; /* which aux buffer was affected */ - int x, y; - int width, height; - int count; /* if nonzero, at least this many more */ -} GLXPbufferClobberEvent; -typedef struct { - int type; - unsigned long serial; /* # of last request processed by server */ - Bool send_event; /* true if this came from a SendEvent request */ - Display *display; /* Display the event was read from */ - GLXDrawable drawable; /* drawable on which event was requested in event mask */ - int event_type; - int64_t ust; - int64_t msc; - int64_t sbc; -} GLXBufferSwapComplete; -typedef union __GLXEvent { - GLXPbufferClobberEvent glxpbufferclobber; - GLXBufferSwapComplete glxbufferswapcomplete; - long pad[24]; -} GLXEvent; -typedef struct { - int type; - unsigned long serial; - Bool send_event; - Display *display; - int extension; - int evtype; - GLXDrawable window; - Bool stereo_tree; -} GLXStereoNotifyEventEXT; -typedef struct { - int type; - unsigned long serial; /* # of last request processed by server */ - Bool send_event; /* true if this came for SendEvent request */ - Display *display; /* display the event was read from */ - GLXDrawable drawable; /* i.d. of Drawable */ - int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */ - int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */ - unsigned int mask; /* mask indicating which buffers are affected*/ - int x, y; - int width, height; - int count; /* if nonzero, at least this many more */ -} GLXBufferClobberEventSGIX; -typedef struct { - char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ - int networkId; -} GLXHyperpipeNetworkSGIX; -typedef struct { - char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ - int channel; - unsigned int participationType; - int timeSlice; -} GLXHyperpipeConfigSGIX; -typedef struct { - char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ - int srcXOrigin, srcYOrigin, srcWidth, srcHeight; - int destXOrigin, destYOrigin, destWidth, destHeight; -} GLXPipeRect; -typedef struct { - char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */ - int XOrigin, YOrigin, maxHeight, maxWidth; -} GLXPipeRectLimits; -#define GLX_EXTENSION_NAME "GLX" -#define GLX_PbufferClobber 0 -#define GLX_BufferSwapComplete 1 -#define __GLX_NUMBER_EVENTS 17 -#define GLX_BAD_SCREEN 1 -#define GLX_BAD_ATTRIBUTE 2 -#define GLX_NO_EXTENSION 3 -#define GLX_BAD_VISUAL 4 -#define GLX_BAD_CONTEXT 5 -#define GLX_BAD_VALUE 6 -#define GLX_BAD_ENUM 7 -#define GLX_USE_GL 1 -#define GLX_BUFFER_SIZE 2 -#define GLX_LEVEL 3 -#define GLX_RGBA 4 -#define GLX_DOUBLEBUFFER 5 -#define GLX_STEREO 6 -#define GLX_AUX_BUFFERS 7 -#define GLX_RED_SIZE 8 -#define GLX_GREEN_SIZE 9 -#define GLX_BLUE_SIZE 10 -#define GLX_ALPHA_SIZE 11 -#define GLX_DEPTH_SIZE 12 -#define GLX_STENCIL_SIZE 13 -#define GLX_ACCUM_RED_SIZE 14 -#define GLX_ACCUM_GREEN_SIZE 15 -#define GLX_ACCUM_BLUE_SIZE 16 -#define GLX_ACCUM_ALPHA_SIZE 17 -#define GLX_VENDOR 0x1 -#define GLX_VERSION 0x2 -#define GLX_EXTENSIONS 0x3 -#define GLX_WINDOW_BIT 0x00000001 -#define GLX_PIXMAP_BIT 0x00000002 -#define GLX_PBUFFER_BIT 0x00000004 -#define GLX_RGBA_BIT 0x00000001 -#define GLX_COLOR_INDEX_BIT 0x00000002 -#define GLX_PBUFFER_CLOBBER_MASK 0x08000000 -#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 -#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 -#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 -#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 -#define GLX_AUX_BUFFERS_BIT 0x00000010 -#define GLX_DEPTH_BUFFER_BIT 0x00000020 -#define GLX_STENCIL_BUFFER_BIT 0x00000040 -#define GLX_ACCUM_BUFFER_BIT 0x00000080 -#define GLX_CONFIG_CAVEAT 0x20 -#define GLX_X_VISUAL_TYPE 0x22 -#define GLX_TRANSPARENT_TYPE 0x23 -#define GLX_TRANSPARENT_INDEX_VALUE 0x24 -#define GLX_TRANSPARENT_RED_VALUE 0x25 -#define GLX_TRANSPARENT_GREEN_VALUE 0x26 -#define GLX_TRANSPARENT_BLUE_VALUE 0x27 -#define GLX_TRANSPARENT_ALPHA_VALUE 0x28 -#define GLX_DONT_CARE 0xFFFFFFFF -#define GLX_NONE 0x8000 -#define GLX_SLOW_CONFIG 0x8001 -#define GLX_TRUE_COLOR 0x8002 -#define GLX_DIRECT_COLOR 0x8003 -#define GLX_PSEUDO_COLOR 0x8004 -#define GLX_STATIC_COLOR 0x8005 -#define GLX_GRAY_SCALE 0x8006 -#define GLX_STATIC_GRAY 0x8007 -#define GLX_TRANSPARENT_RGB 0x8008 -#define GLX_TRANSPARENT_INDEX 0x8009 -#define GLX_VISUAL_ID 0x800B -#define GLX_SCREEN 0x800C -#define GLX_NON_CONFORMANT_CONFIG 0x800D -#define GLX_DRAWABLE_TYPE 0x8010 -#define GLX_RENDER_TYPE 0x8011 -#define GLX_X_RENDERABLE 0x8012 -#define GLX_FBCONFIG_ID 0x8013 -#define GLX_RGBA_TYPE 0x8014 -#define GLX_COLOR_INDEX_TYPE 0x8015 -#define GLX_MAX_PBUFFER_WIDTH 0x8016 -#define GLX_MAX_PBUFFER_HEIGHT 0x8017 -#define GLX_MAX_PBUFFER_PIXELS 0x8018 -#define GLX_PRESERVED_CONTENTS 0x801B -#define GLX_LARGEST_PBUFFER 0x801C -#define GLX_WIDTH 0x801D -#define GLX_HEIGHT 0x801E -#define GLX_EVENT_MASK 0x801F -#define GLX_DAMAGED 0x8020 -#define GLX_SAVED 0x8021 -#define GLX_WINDOW 0x8022 -#define GLX_PBUFFER 0x8023 -#define GLX_PBUFFER_HEIGHT 0x8040 -#define GLX_PBUFFER_WIDTH 0x8041 -#define GLX_SAMPLE_BUFFERS 100000 -#define GLX_SAMPLES 100001 -#ifndef GLX_VERSION_1_0 -#define GLX_VERSION_1_0 1 -GLAPI int GLAD_GLX_VERSION_1_0; -typedef XVisualInfo * (APIENTRYP PFNGLXCHOOSEVISUALPROC)(Display *dpy, int screen, int *attribList); -GLAPI PFNGLXCHOOSEVISUALPROC glad_glXChooseVisual; -#define glXChooseVisual glad_glXChooseVisual -typedef GLXContext (APIENTRYP PFNGLXCREATECONTEXTPROC)(Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); -GLAPI PFNGLXCREATECONTEXTPROC glad_glXCreateContext; -#define glXCreateContext glad_glXCreateContext -typedef void (APIENTRYP PFNGLXDESTROYCONTEXTPROC)(Display *dpy, GLXContext ctx); -GLAPI PFNGLXDESTROYCONTEXTPROC glad_glXDestroyContext; -#define glXDestroyContext glad_glXDestroyContext -typedef Bool (APIENTRYP PFNGLXMAKECURRENTPROC)(Display *dpy, GLXDrawable drawable, GLXContext ctx); -GLAPI PFNGLXMAKECURRENTPROC glad_glXMakeCurrent; -#define glXMakeCurrent glad_glXMakeCurrent -typedef void (APIENTRYP PFNGLXCOPYCONTEXTPROC)(Display *dpy, GLXContext src, GLXContext dst, unsigned long mask); -GLAPI PFNGLXCOPYCONTEXTPROC glad_glXCopyContext; -#define glXCopyContext glad_glXCopyContext -typedef void (APIENTRYP PFNGLXSWAPBUFFERSPROC)(Display *dpy, GLXDrawable drawable); -GLAPI PFNGLXSWAPBUFFERSPROC glad_glXSwapBuffers; -#define glXSwapBuffers glad_glXSwapBuffers -typedef GLXPixmap (APIENTRYP PFNGLXCREATEGLXPIXMAPPROC)(Display *dpy, XVisualInfo *visual, Pixmap pixmap); -GLAPI PFNGLXCREATEGLXPIXMAPPROC glad_glXCreateGLXPixmap; -#define glXCreateGLXPixmap glad_glXCreateGLXPixmap -typedef void (APIENTRYP PFNGLXDESTROYGLXPIXMAPPROC)(Display *dpy, GLXPixmap pixmap); -GLAPI PFNGLXDESTROYGLXPIXMAPPROC glad_glXDestroyGLXPixmap; -#define glXDestroyGLXPixmap glad_glXDestroyGLXPixmap -typedef Bool (APIENTRYP PFNGLXQUERYEXTENSIONPROC)(Display *dpy, int *errorb, int *event); -GLAPI PFNGLXQUERYEXTENSIONPROC glad_glXQueryExtension; -#define glXQueryExtension glad_glXQueryExtension -typedef Bool (APIENTRYP PFNGLXQUERYVERSIONPROC)(Display *dpy, int *maj, int *min); -GLAPI PFNGLXQUERYVERSIONPROC glad_glXQueryVersion; -#define glXQueryVersion glad_glXQueryVersion -typedef Bool (APIENTRYP PFNGLXISDIRECTPROC)(Display *dpy, GLXContext ctx); -GLAPI PFNGLXISDIRECTPROC glad_glXIsDirect; -#define glXIsDirect glad_glXIsDirect -typedef int (APIENTRYP PFNGLXGETCONFIGPROC)(Display *dpy, XVisualInfo *visual, int attrib, int *value); -GLAPI PFNGLXGETCONFIGPROC glad_glXGetConfig; -#define glXGetConfig glad_glXGetConfig -typedef GLXContext (APIENTRYP PFNGLXGETCURRENTCONTEXTPROC)(void); -GLAPI PFNGLXGETCURRENTCONTEXTPROC glad_glXGetCurrentContext; -#define glXGetCurrentContext glad_glXGetCurrentContext -typedef GLXDrawable (APIENTRYP PFNGLXGETCURRENTDRAWABLEPROC)(void); -GLAPI PFNGLXGETCURRENTDRAWABLEPROC glad_glXGetCurrentDrawable; -#define glXGetCurrentDrawable glad_glXGetCurrentDrawable -typedef void (APIENTRYP PFNGLXWAITGLPROC)(void); -GLAPI PFNGLXWAITGLPROC glad_glXWaitGL; -#define glXWaitGL glad_glXWaitGL -typedef void (APIENTRYP PFNGLXWAITXPROC)(void); -GLAPI PFNGLXWAITXPROC glad_glXWaitX; -#define glXWaitX glad_glXWaitX -typedef void (APIENTRYP PFNGLXUSEXFONTPROC)(Font font, int first, int count, int list); -GLAPI PFNGLXUSEXFONTPROC glad_glXUseXFont; -#define glXUseXFont glad_glXUseXFont -#endif -#ifndef GLX_VERSION_1_1 -#define GLX_VERSION_1_1 1 -GLAPI int GLAD_GLX_VERSION_1_1; -typedef const char * (APIENTRYP PFNGLXQUERYEXTENSIONSSTRINGPROC)(Display *dpy, int screen); -GLAPI PFNGLXQUERYEXTENSIONSSTRINGPROC glad_glXQueryExtensionsString; -#define glXQueryExtensionsString glad_glXQueryExtensionsString -typedef const char * (APIENTRYP PFNGLXQUERYSERVERSTRINGPROC)(Display *dpy, int screen, int name); -GLAPI PFNGLXQUERYSERVERSTRINGPROC glad_glXQueryServerString; -#define glXQueryServerString glad_glXQueryServerString -typedef const char * (APIENTRYP PFNGLXGETCLIENTSTRINGPROC)(Display *dpy, int name); -GLAPI PFNGLXGETCLIENTSTRINGPROC glad_glXGetClientString; -#define glXGetClientString glad_glXGetClientString -#endif -#ifndef GLX_VERSION_1_2 -#define GLX_VERSION_1_2 1 -GLAPI int GLAD_GLX_VERSION_1_2; -typedef Display * (APIENTRYP PFNGLXGETCURRENTDISPLAYPROC)(void); -GLAPI PFNGLXGETCURRENTDISPLAYPROC glad_glXGetCurrentDisplay; -#define glXGetCurrentDisplay glad_glXGetCurrentDisplay -#endif -#ifndef GLX_VERSION_1_3 -#define GLX_VERSION_1_3 1 -GLAPI int GLAD_GLX_VERSION_1_3; -typedef GLXFBConfig * (APIENTRYP PFNGLXGETFBCONFIGSPROC)(Display *dpy, int screen, int *nelements); -GLAPI PFNGLXGETFBCONFIGSPROC glad_glXGetFBConfigs; -#define glXGetFBConfigs glad_glXGetFBConfigs -typedef GLXFBConfig * (APIENTRYP PFNGLXCHOOSEFBCONFIGPROC)(Display *dpy, int screen, const int *attrib_list, int *nelements); -GLAPI PFNGLXCHOOSEFBCONFIGPROC glad_glXChooseFBConfig; -#define glXChooseFBConfig glad_glXChooseFBConfig -typedef int (APIENTRYP PFNGLXGETFBCONFIGATTRIBPROC)(Display *dpy, GLXFBConfig config, int attribute, int *value); -GLAPI PFNGLXGETFBCONFIGATTRIBPROC glad_glXGetFBConfigAttrib; -#define glXGetFBConfigAttrib glad_glXGetFBConfigAttrib -typedef XVisualInfo * (APIENTRYP PFNGLXGETVISUALFROMFBCONFIGPROC)(Display *dpy, GLXFBConfig config); -GLAPI PFNGLXGETVISUALFROMFBCONFIGPROC glad_glXGetVisualFromFBConfig; -#define glXGetVisualFromFBConfig glad_glXGetVisualFromFBConfig -typedef GLXWindow (APIENTRYP PFNGLXCREATEWINDOWPROC)(Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); -GLAPI PFNGLXCREATEWINDOWPROC glad_glXCreateWindow; -#define glXCreateWindow glad_glXCreateWindow -typedef void (APIENTRYP PFNGLXDESTROYWINDOWPROC)(Display *dpy, GLXWindow win); -GLAPI PFNGLXDESTROYWINDOWPROC glad_glXDestroyWindow; -#define glXDestroyWindow glad_glXDestroyWindow -typedef GLXPixmap (APIENTRYP PFNGLXCREATEPIXMAPPROC)(Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); -GLAPI PFNGLXCREATEPIXMAPPROC glad_glXCreatePixmap; -#define glXCreatePixmap glad_glXCreatePixmap -typedef void (APIENTRYP PFNGLXDESTROYPIXMAPPROC)(Display *dpy, GLXPixmap pixmap); -GLAPI PFNGLXDESTROYPIXMAPPROC glad_glXDestroyPixmap; -#define glXDestroyPixmap glad_glXDestroyPixmap -typedef GLXPbuffer (APIENTRYP PFNGLXCREATEPBUFFERPROC)(Display *dpy, GLXFBConfig config, const int *attrib_list); -GLAPI PFNGLXCREATEPBUFFERPROC glad_glXCreatePbuffer; -#define glXCreatePbuffer glad_glXCreatePbuffer -typedef void (APIENTRYP PFNGLXDESTROYPBUFFERPROC)(Display *dpy, GLXPbuffer pbuf); -GLAPI PFNGLXDESTROYPBUFFERPROC glad_glXDestroyPbuffer; -#define glXDestroyPbuffer glad_glXDestroyPbuffer -typedef void (APIENTRYP PFNGLXQUERYDRAWABLEPROC)(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); -GLAPI PFNGLXQUERYDRAWABLEPROC glad_glXQueryDrawable; -#define glXQueryDrawable glad_glXQueryDrawable -typedef GLXContext (APIENTRYP PFNGLXCREATENEWCONTEXTPROC)(Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); -GLAPI PFNGLXCREATENEWCONTEXTPROC glad_glXCreateNewContext; -#define glXCreateNewContext glad_glXCreateNewContext -typedef Bool (APIENTRYP PFNGLXMAKECONTEXTCURRENTPROC)(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -GLAPI PFNGLXMAKECONTEXTCURRENTPROC glad_glXMakeContextCurrent; -#define glXMakeContextCurrent glad_glXMakeContextCurrent -typedef GLXDrawable (APIENTRYP PFNGLXGETCURRENTREADDRAWABLEPROC)(void); -GLAPI PFNGLXGETCURRENTREADDRAWABLEPROC glad_glXGetCurrentReadDrawable; -#define glXGetCurrentReadDrawable glad_glXGetCurrentReadDrawable -typedef int (APIENTRYP PFNGLXQUERYCONTEXTPROC)(Display *dpy, GLXContext ctx, int attribute, int *value); -GLAPI PFNGLXQUERYCONTEXTPROC glad_glXQueryContext; -#define glXQueryContext glad_glXQueryContext -typedef void (APIENTRYP PFNGLXSELECTEVENTPROC)(Display *dpy, GLXDrawable draw, unsigned long event_mask); -GLAPI PFNGLXSELECTEVENTPROC glad_glXSelectEvent; -#define glXSelectEvent glad_glXSelectEvent -typedef void (APIENTRYP PFNGLXGETSELECTEDEVENTPROC)(Display *dpy, GLXDrawable draw, unsigned long *event_mask); -GLAPI PFNGLXGETSELECTEDEVENTPROC glad_glXGetSelectedEvent; -#define glXGetSelectedEvent glad_glXGetSelectedEvent -#endif -#ifndef GLX_VERSION_1_4 -#define GLX_VERSION_1_4 1 -GLAPI int GLAD_GLX_VERSION_1_4; -typedef __GLXextFuncPtr (APIENTRYP PFNGLXGETPROCADDRESSPROC)(const GLubyte *procName); -GLAPI PFNGLXGETPROCADDRESSPROC glad_glXGetProcAddress; -#define glXGetProcAddress glad_glXGetProcAddress -#endif -#define GLX_SAMPLE_BUFFERS_3DFX 0x8050 -#define GLX_SAMPLES_3DFX 0x8051 -#define GLX_GPU_VENDOR_AMD 0x1F00 -#define GLX_GPU_RENDERER_STRING_AMD 0x1F01 -#define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 -#define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 -#define GLX_GPU_RAM_AMD 0x21A3 -#define GLX_GPU_CLOCK_AMD 0x21A4 -#define GLX_GPU_NUM_PIPES_AMD 0x21A5 -#define GLX_GPU_NUM_SIMD_AMD 0x21A6 -#define GLX_GPU_NUM_RB_AMD 0x21A7 -#define GLX_GPU_NUM_SPI_AMD 0x21A8 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 -#define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 -#define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001 -#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 -#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define GLX_CONTEXT_FLAGS_ARB 0x2094 -#define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3 -#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 -#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 -#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 -#define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9 -#define GLX_RGBA_FLOAT_BIT_ARB 0x00000004 -#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2 -#define GLX_SAMPLE_BUFFERS_ARB 100000 -#define GLX_SAMPLES_ARB 100001 -#define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 -#define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095 -#define GLX_BACK_BUFFER_AGE_EXT 0x20F4 -#define GLX_CONTEXT_PRIORITY_LEVEL_EXT 0x3100 -#define GLX_CONTEXT_PRIORITY_HIGH_EXT 0x3101 -#define GLX_CONTEXT_PRIORITY_MEDIUM_EXT 0x3102 -#define GLX_CONTEXT_PRIORITY_LOW_EXT 0x3103 -#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 -#define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004 -#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1 -#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008 -#define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2 -#define GLX_SHARE_CONTEXT_EXT 0x800A -#define GLX_VISUAL_ID_EXT 0x800B -#define GLX_SCREEN_EXT 0x800C -#define GLX_VENDOR_NAMES_EXT 0x20F6 -#define GLX_STEREO_TREE_EXT 0x20F5 -#define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001 -#define GLX_STEREO_NOTIFY_EXT 0x00000000 -#define GLX_SWAP_INTERVAL_EXT 0x20F1 -#define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2 -#define GLX_LATE_SWAPS_TEAR_EXT 0x20F3 -#define GLX_TEXTURE_1D_BIT_EXT 0x00000001 -#define GLX_TEXTURE_2D_BIT_EXT 0x00000002 -#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 -#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 -#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 -#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 -#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 -#define GLX_Y_INVERTED_EXT 0x20D4 -#define GLX_TEXTURE_FORMAT_EXT 0x20D5 -#define GLX_TEXTURE_TARGET_EXT 0x20D6 -#define GLX_MIPMAP_TEXTURE_EXT 0x20D7 -#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 -#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 -#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA -#define GLX_TEXTURE_1D_EXT 0x20DB -#define GLX_TEXTURE_2D_EXT 0x20DC -#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD -#define GLX_FRONT_LEFT_EXT 0x20DE -#define GLX_FRONT_RIGHT_EXT 0x20DF -#define GLX_BACK_LEFT_EXT 0x20E0 -#define GLX_BACK_RIGHT_EXT 0x20E1 -#define GLX_FRONT_EXT 0x20DE -#define GLX_BACK_EXT 0x20E0 -#define GLX_AUX0_EXT 0x20E2 -#define GLX_AUX1_EXT 0x20E3 -#define GLX_AUX2_EXT 0x20E4 -#define GLX_AUX3_EXT 0x20E5 -#define GLX_AUX4_EXT 0x20E6 -#define GLX_AUX5_EXT 0x20E7 -#define GLX_AUX6_EXT 0x20E8 -#define GLX_AUX7_EXT 0x20E9 -#define GLX_AUX8_EXT 0x20EA -#define GLX_AUX9_EXT 0x20EB -#define GLX_X_VISUAL_TYPE_EXT 0x22 -#define GLX_TRANSPARENT_TYPE_EXT 0x23 -#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 -#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 -#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 -#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 -#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 -#define GLX_NONE_EXT 0x8000 -#define GLX_TRUE_COLOR_EXT 0x8002 -#define GLX_DIRECT_COLOR_EXT 0x8003 -#define GLX_PSEUDO_COLOR_EXT 0x8004 -#define GLX_STATIC_COLOR_EXT 0x8005 -#define GLX_GRAY_SCALE_EXT 0x8006 -#define GLX_STATIC_GRAY_EXT 0x8007 -#define GLX_TRANSPARENT_RGB_EXT 0x8008 -#define GLX_TRANSPARENT_INDEX_EXT 0x8009 -#define GLX_VISUAL_CAVEAT_EXT 0x20 -#define GLX_SLOW_VISUAL_EXT 0x8001 -#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D -#define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000 -#define GLX_EXCHANGE_COMPLETE_INTEL 0x8180 -#define GLX_COPY_COMPLETE_INTEL 0x8181 -#define GLX_FLIP_COMPLETE_INTEL 0x8182 -#define GLX_RENDERER_VENDOR_ID_MESA 0x8183 -#define GLX_RENDERER_DEVICE_ID_MESA 0x8184 -#define GLX_RENDERER_VERSION_MESA 0x8185 -#define GLX_RENDERER_ACCELERATED_MESA 0x8186 -#define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187 -#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188 -#define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189 -#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A -#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B -#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C -#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D -#define GLX_3DFX_WINDOW_MODE_MESA 0x1 -#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 -#define GLX_FLOAT_COMPONENTS_NV 0x20B0 -#define GLX_CONTEXT_MULTIGPU_ATTRIB_NV 0x20AA -#define GLX_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB -#define GLX_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC -#define GLX_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD -#define GLX_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE -#define GLX_COVERAGE_SAMPLES_NV 100001 -#define GLX_COLOR_SAMPLES_NV 0x20B3 -#define GLX_NUM_VIDEO_SLOTS_NV 0x20F0 -#define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7 -#define GLX_DEVICE_ID_NV 0x20CD -#define GLX_UNIQUE_ID_NV 0x20CE -#define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF -#define GLX_VIDEO_OUT_COLOR_NV 0x20C3 -#define GLX_VIDEO_OUT_ALPHA_NV 0x20C4 -#define GLX_VIDEO_OUT_DEPTH_NV 0x20C5 -#define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 -#define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 -#define GLX_VIDEO_OUT_FRAME_NV 0x20C8 -#define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9 -#define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA -#define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB -#define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC -#define GLX_SWAP_METHOD_OML 0x8060 -#define GLX_SWAP_EXCHANGE_OML 0x8061 -#define GLX_SWAP_COPY_OML 0x8062 -#define GLX_SWAP_UNDEFINED_OML 0x8063 -#define GLX_BLENDED_RGBA_SGIS 0x8025 -#define GLX_SAMPLE_BUFFERS_SGIS 100000 -#define GLX_SAMPLES_SGIS 100001 -#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 -#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 -#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024 -#define GLX_WINDOW_BIT_SGIX 0x00000001 -#define GLX_PIXMAP_BIT_SGIX 0x00000002 -#define GLX_RGBA_BIT_SGIX 0x00000001 -#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 -#define GLX_DRAWABLE_TYPE_SGIX 0x8010 -#define GLX_RENDER_TYPE_SGIX 0x8011 -#define GLX_X_RENDERABLE_SGIX 0x8012 -#define GLX_FBCONFIG_ID_SGIX 0x8013 -#define GLX_RGBA_TYPE_SGIX 0x8014 -#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 -#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80 -#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91 -#define GLX_BAD_HYPERPIPE_SGIX 92 -#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001 -#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002 -#define GLX_PIPE_RECT_SGIX 0x00000001 -#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002 -#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003 -#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004 -#define GLX_HYPERPIPE_ID_SGIX 0x8030 -#define GLX_PBUFFER_BIT_SGIX 0x00000004 -#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 -#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 -#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 -#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 -#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 -#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 -#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 -#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 -#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 -#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 -#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 -#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 -#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 -#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 -#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A -#define GLX_PRESERVED_CONTENTS_SGIX 0x801B -#define GLX_LARGEST_PBUFFER_SGIX 0x801C -#define GLX_WIDTH_SGIX 0x801D -#define GLX_HEIGHT_SGIX 0x801E -#define GLX_EVENT_MASK_SGIX 0x801F -#define GLX_DAMAGED_SGIX 0x8020 -#define GLX_SAVED_SGIX 0x8021 -#define GLX_WINDOW_SGIX 0x8022 -#define GLX_PBUFFER_SGIX 0x8023 -#define GLX_SYNC_FRAME_SGIX 0x00000000 -#define GLX_SYNC_SWAP_SGIX 0x00000001 -#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 -#ifndef GLX_3DFX_multisample -#define GLX_3DFX_multisample 1 -GLAPI int GLAD_GLX_3DFX_multisample; -#endif -#ifndef GLX_AMD_gpu_association -#define GLX_AMD_gpu_association 1 -GLAPI int GLAD_GLX_AMD_gpu_association; -typedef unsigned int (APIENTRYP PFNGLXGETGPUIDSAMDPROC)(unsigned int maxCount, unsigned int *ids); -GLAPI PFNGLXGETGPUIDSAMDPROC glad_glXGetGPUIDsAMD; -#define glXGetGPUIDsAMD glad_glXGetGPUIDsAMD -typedef int (APIENTRYP PFNGLXGETGPUINFOAMDPROC)(unsigned int id, int property, GLenum dataType, unsigned int size, void *data); -GLAPI PFNGLXGETGPUINFOAMDPROC glad_glXGetGPUInfoAMD; -#define glXGetGPUInfoAMD glad_glXGetGPUInfoAMD -typedef unsigned int (APIENTRYP PFNGLXGETCONTEXTGPUIDAMDPROC)(GLXContext ctx); -GLAPI PFNGLXGETCONTEXTGPUIDAMDPROC glad_glXGetContextGPUIDAMD; -#define glXGetContextGPUIDAMD glad_glXGetContextGPUIDAMD -typedef GLXContext (APIENTRYP PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC)(unsigned int id, GLXContext share_list); -GLAPI PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC glad_glXCreateAssociatedContextAMD; -#define glXCreateAssociatedContextAMD glad_glXCreateAssociatedContextAMD -typedef GLXContext (APIENTRYP PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC)(unsigned int id, GLXContext share_context, const int *attribList); -GLAPI PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC glad_glXCreateAssociatedContextAttribsAMD; -#define glXCreateAssociatedContextAttribsAMD glad_glXCreateAssociatedContextAttribsAMD -typedef Bool (APIENTRYP PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC)(GLXContext ctx); -GLAPI PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC glad_glXDeleteAssociatedContextAMD; -#define glXDeleteAssociatedContextAMD glad_glXDeleteAssociatedContextAMD -typedef Bool (APIENTRYP PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC)(GLXContext ctx); -GLAPI PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC glad_glXMakeAssociatedContextCurrentAMD; -#define glXMakeAssociatedContextCurrentAMD glad_glXMakeAssociatedContextCurrentAMD -typedef GLXContext (APIENTRYP PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC)(void); -GLAPI PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC glad_glXGetCurrentAssociatedContextAMD; -#define glXGetCurrentAssociatedContextAMD glad_glXGetCurrentAssociatedContextAMD -typedef void (APIENTRYP PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC)(GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC glad_glXBlitContextFramebufferAMD; -#define glXBlitContextFramebufferAMD glad_glXBlitContextFramebufferAMD -#endif -#ifndef GLX_ARB_context_flush_control -#define GLX_ARB_context_flush_control 1 -GLAPI int GLAD_GLX_ARB_context_flush_control; -#endif -#ifndef GLX_ARB_create_context -#define GLX_ARB_create_context 1 -GLAPI int GLAD_GLX_ARB_create_context; -typedef GLXContext (APIENTRYP PFNGLXCREATECONTEXTATTRIBSARBPROC)(Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); -GLAPI PFNGLXCREATECONTEXTATTRIBSARBPROC glad_glXCreateContextAttribsARB; -#define glXCreateContextAttribsARB glad_glXCreateContextAttribsARB -#endif -#ifndef GLX_ARB_create_context_no_error -#define GLX_ARB_create_context_no_error 1 -GLAPI int GLAD_GLX_ARB_create_context_no_error; -#endif -#ifndef GLX_ARB_create_context_profile -#define GLX_ARB_create_context_profile 1 -GLAPI int GLAD_GLX_ARB_create_context_profile; -#endif -#ifndef GLX_ARB_create_context_robustness -#define GLX_ARB_create_context_robustness 1 -GLAPI int GLAD_GLX_ARB_create_context_robustness; -#endif -#ifndef GLX_ARB_fbconfig_float -#define GLX_ARB_fbconfig_float 1 -GLAPI int GLAD_GLX_ARB_fbconfig_float; -#endif -#ifndef GLX_ARB_framebuffer_sRGB -#define GLX_ARB_framebuffer_sRGB 1 -GLAPI int GLAD_GLX_ARB_framebuffer_sRGB; -#endif -#ifndef GLX_ARB_get_proc_address -#define GLX_ARB_get_proc_address 1 -GLAPI int GLAD_GLX_ARB_get_proc_address; -typedef __GLXextFuncPtr (APIENTRYP PFNGLXGETPROCADDRESSARBPROC)(const GLubyte *procName); -GLAPI PFNGLXGETPROCADDRESSARBPROC glad_glXGetProcAddressARB; -#define glXGetProcAddressARB glad_glXGetProcAddressARB -#endif -#ifndef GLX_ARB_multisample -#define GLX_ARB_multisample 1 -GLAPI int GLAD_GLX_ARB_multisample; -#endif -#ifndef GLX_ARB_robustness_application_isolation -#define GLX_ARB_robustness_application_isolation 1 -GLAPI int GLAD_GLX_ARB_robustness_application_isolation; -#endif -#ifndef GLX_ARB_robustness_share_group_isolation -#define GLX_ARB_robustness_share_group_isolation 1 -GLAPI int GLAD_GLX_ARB_robustness_share_group_isolation; -#endif -#ifndef GLX_ARB_vertex_buffer_object -#define GLX_ARB_vertex_buffer_object 1 -GLAPI int GLAD_GLX_ARB_vertex_buffer_object; -#endif -#ifndef GLX_EXT_buffer_age -#define GLX_EXT_buffer_age 1 -GLAPI int GLAD_GLX_EXT_buffer_age; -#endif -#ifndef GLX_EXT_context_priority -#define GLX_EXT_context_priority 1 -GLAPI int GLAD_GLX_EXT_context_priority; -#endif -#ifndef GLX_EXT_create_context_es2_profile -#define GLX_EXT_create_context_es2_profile 1 -GLAPI int GLAD_GLX_EXT_create_context_es2_profile; -#endif -#ifndef GLX_EXT_create_context_es_profile -#define GLX_EXT_create_context_es_profile 1 -GLAPI int GLAD_GLX_EXT_create_context_es_profile; -#endif -#ifndef GLX_EXT_fbconfig_packed_float -#define GLX_EXT_fbconfig_packed_float 1 -GLAPI int GLAD_GLX_EXT_fbconfig_packed_float; -#endif -#ifndef GLX_EXT_framebuffer_sRGB -#define GLX_EXT_framebuffer_sRGB 1 -GLAPI int GLAD_GLX_EXT_framebuffer_sRGB; -#endif -#ifndef GLX_EXT_import_context -#define GLX_EXT_import_context 1 -GLAPI int GLAD_GLX_EXT_import_context; -typedef Display * (APIENTRYP PFNGLXGETCURRENTDISPLAYEXTPROC)(void); -GLAPI PFNGLXGETCURRENTDISPLAYEXTPROC glad_glXGetCurrentDisplayEXT; -#define glXGetCurrentDisplayEXT glad_glXGetCurrentDisplayEXT -typedef int (APIENTRYP PFNGLXQUERYCONTEXTINFOEXTPROC)(Display *dpy, GLXContext context, int attribute, int *value); -GLAPI PFNGLXQUERYCONTEXTINFOEXTPROC glad_glXQueryContextInfoEXT; -#define glXQueryContextInfoEXT glad_glXQueryContextInfoEXT -typedef GLXContextID (APIENTRYP PFNGLXGETCONTEXTIDEXTPROC)(const GLXContext context); -GLAPI PFNGLXGETCONTEXTIDEXTPROC glad_glXGetContextIDEXT; -#define glXGetContextIDEXT glad_glXGetContextIDEXT -typedef GLXContext (APIENTRYP PFNGLXIMPORTCONTEXTEXTPROC)(Display *dpy, GLXContextID contextID); -GLAPI PFNGLXIMPORTCONTEXTEXTPROC glad_glXImportContextEXT; -#define glXImportContextEXT glad_glXImportContextEXT -typedef void (APIENTRYP PFNGLXFREECONTEXTEXTPROC)(Display *dpy, GLXContext context); -GLAPI PFNGLXFREECONTEXTEXTPROC glad_glXFreeContextEXT; -#define glXFreeContextEXT glad_glXFreeContextEXT -#endif -#ifndef GLX_EXT_libglvnd -#define GLX_EXT_libglvnd 1 -GLAPI int GLAD_GLX_EXT_libglvnd; -#endif -#ifndef GLX_EXT_no_config_context -#define GLX_EXT_no_config_context 1 -GLAPI int GLAD_GLX_EXT_no_config_context; -#endif -#ifndef GLX_EXT_stereo_tree -#define GLX_EXT_stereo_tree 1 -GLAPI int GLAD_GLX_EXT_stereo_tree; -#endif -#ifndef GLX_EXT_swap_control -#define GLX_EXT_swap_control 1 -GLAPI int GLAD_GLX_EXT_swap_control; -typedef void (APIENTRYP PFNGLXSWAPINTERVALEXTPROC)(Display *dpy, GLXDrawable drawable, int interval); -GLAPI PFNGLXSWAPINTERVALEXTPROC glad_glXSwapIntervalEXT; -#define glXSwapIntervalEXT glad_glXSwapIntervalEXT -#endif -#ifndef GLX_EXT_swap_control_tear -#define GLX_EXT_swap_control_tear 1 -GLAPI int GLAD_GLX_EXT_swap_control_tear; -#endif -#ifndef GLX_EXT_texture_from_pixmap -#define GLX_EXT_texture_from_pixmap 1 -GLAPI int GLAD_GLX_EXT_texture_from_pixmap; -typedef void (APIENTRYP PFNGLXBINDTEXIMAGEEXTPROC)(Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list); -GLAPI PFNGLXBINDTEXIMAGEEXTPROC glad_glXBindTexImageEXT; -#define glXBindTexImageEXT glad_glXBindTexImageEXT -typedef void (APIENTRYP PFNGLXRELEASETEXIMAGEEXTPROC)(Display *dpy, GLXDrawable drawable, int buffer); -GLAPI PFNGLXRELEASETEXIMAGEEXTPROC glad_glXReleaseTexImageEXT; -#define glXReleaseTexImageEXT glad_glXReleaseTexImageEXT -#endif -#ifndef GLX_EXT_visual_info -#define GLX_EXT_visual_info 1 -GLAPI int GLAD_GLX_EXT_visual_info; -#endif -#ifndef GLX_EXT_visual_rating -#define GLX_EXT_visual_rating 1 -GLAPI int GLAD_GLX_EXT_visual_rating; -#endif -#ifndef GLX_INTEL_swap_event -#define GLX_INTEL_swap_event 1 -GLAPI int GLAD_GLX_INTEL_swap_event; -#endif -#ifndef GLX_MESA_agp_offset -#define GLX_MESA_agp_offset 1 -GLAPI int GLAD_GLX_MESA_agp_offset; -typedef unsigned int (APIENTRYP PFNGLXGETAGPOFFSETMESAPROC)(const void *pointer); -GLAPI PFNGLXGETAGPOFFSETMESAPROC glad_glXGetAGPOffsetMESA; -#define glXGetAGPOffsetMESA glad_glXGetAGPOffsetMESA -#endif -#ifndef GLX_MESA_copy_sub_buffer -#define GLX_MESA_copy_sub_buffer 1 -GLAPI int GLAD_GLX_MESA_copy_sub_buffer; -typedef void (APIENTRYP PFNGLXCOPYSUBBUFFERMESAPROC)(Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); -GLAPI PFNGLXCOPYSUBBUFFERMESAPROC glad_glXCopySubBufferMESA; -#define glXCopySubBufferMESA glad_glXCopySubBufferMESA -#endif -#ifndef GLX_MESA_pixmap_colormap -#define GLX_MESA_pixmap_colormap 1 -GLAPI int GLAD_GLX_MESA_pixmap_colormap; -typedef GLXPixmap (APIENTRYP PFNGLXCREATEGLXPIXMAPMESAPROC)(Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); -GLAPI PFNGLXCREATEGLXPIXMAPMESAPROC glad_glXCreateGLXPixmapMESA; -#define glXCreateGLXPixmapMESA glad_glXCreateGLXPixmapMESA -#endif -#ifndef GLX_MESA_query_renderer -#define GLX_MESA_query_renderer 1 -GLAPI int GLAD_GLX_MESA_query_renderer; -typedef Bool (APIENTRYP PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC)(int attribute, unsigned int *value); -GLAPI PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC glad_glXQueryCurrentRendererIntegerMESA; -#define glXQueryCurrentRendererIntegerMESA glad_glXQueryCurrentRendererIntegerMESA -typedef const char * (APIENTRYP PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC)(int attribute); -GLAPI PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC glad_glXQueryCurrentRendererStringMESA; -#define glXQueryCurrentRendererStringMESA glad_glXQueryCurrentRendererStringMESA -typedef Bool (APIENTRYP PFNGLXQUERYRENDERERINTEGERMESAPROC)(Display *dpy, int screen, int renderer, int attribute, unsigned int *value); -GLAPI PFNGLXQUERYRENDERERINTEGERMESAPROC glad_glXQueryRendererIntegerMESA; -#define glXQueryRendererIntegerMESA glad_glXQueryRendererIntegerMESA -typedef const char * (APIENTRYP PFNGLXQUERYRENDERERSTRINGMESAPROC)(Display *dpy, int screen, int renderer, int attribute); -GLAPI PFNGLXQUERYRENDERERSTRINGMESAPROC glad_glXQueryRendererStringMESA; -#define glXQueryRendererStringMESA glad_glXQueryRendererStringMESA -#endif -#ifndef GLX_MESA_release_buffers -#define GLX_MESA_release_buffers 1 -GLAPI int GLAD_GLX_MESA_release_buffers; -typedef Bool (APIENTRYP PFNGLXRELEASEBUFFERSMESAPROC)(Display *dpy, GLXDrawable drawable); -GLAPI PFNGLXRELEASEBUFFERSMESAPROC glad_glXReleaseBuffersMESA; -#define glXReleaseBuffersMESA glad_glXReleaseBuffersMESA -#endif -#ifndef GLX_MESA_set_3dfx_mode -#define GLX_MESA_set_3dfx_mode 1 -GLAPI int GLAD_GLX_MESA_set_3dfx_mode; -typedef GLboolean (APIENTRYP PFNGLXSET3DFXMODEMESAPROC)(GLint mode); -GLAPI PFNGLXSET3DFXMODEMESAPROC glad_glXSet3DfxModeMESA; -#define glXSet3DfxModeMESA glad_glXSet3DfxModeMESA -#endif -#ifndef GLX_MESA_swap_control -#define GLX_MESA_swap_control 1 -GLAPI int GLAD_GLX_MESA_swap_control; -typedef int (APIENTRYP PFNGLXGETSWAPINTERVALMESAPROC)(void); -GLAPI PFNGLXGETSWAPINTERVALMESAPROC glad_glXGetSwapIntervalMESA; -#define glXGetSwapIntervalMESA glad_glXGetSwapIntervalMESA -typedef int (APIENTRYP PFNGLXSWAPINTERVALMESAPROC)(unsigned int interval); -GLAPI PFNGLXSWAPINTERVALMESAPROC glad_glXSwapIntervalMESA; -#define glXSwapIntervalMESA glad_glXSwapIntervalMESA -#endif -#ifndef GLX_NV_copy_buffer -#define GLX_NV_copy_buffer 1 -GLAPI int GLAD_GLX_NV_copy_buffer; -typedef void (APIENTRYP PFNGLXCOPYBUFFERSUBDATANVPROC)(Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI PFNGLXCOPYBUFFERSUBDATANVPROC glad_glXCopyBufferSubDataNV; -#define glXCopyBufferSubDataNV glad_glXCopyBufferSubDataNV -typedef void (APIENTRYP PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC)(Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -GLAPI PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC glad_glXNamedCopyBufferSubDataNV; -#define glXNamedCopyBufferSubDataNV glad_glXNamedCopyBufferSubDataNV -#endif -#ifndef GLX_NV_copy_image -#define GLX_NV_copy_image 1 -GLAPI int GLAD_GLX_NV_copy_image; -typedef void (APIENTRYP PFNGLXCOPYIMAGESUBDATANVPROC)(Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNGLXCOPYIMAGESUBDATANVPROC glad_glXCopyImageSubDataNV; -#define glXCopyImageSubDataNV glad_glXCopyImageSubDataNV -#endif -#ifndef GLX_NV_delay_before_swap -#define GLX_NV_delay_before_swap 1 -GLAPI int GLAD_GLX_NV_delay_before_swap; -typedef Bool (APIENTRYP PFNGLXDELAYBEFORESWAPNVPROC)(Display *dpy, GLXDrawable drawable, GLfloat seconds); -GLAPI PFNGLXDELAYBEFORESWAPNVPROC glad_glXDelayBeforeSwapNV; -#define glXDelayBeforeSwapNV glad_glXDelayBeforeSwapNV -#endif -#ifndef GLX_NV_float_buffer -#define GLX_NV_float_buffer 1 -GLAPI int GLAD_GLX_NV_float_buffer; -#endif -#ifndef GLX_NV_multigpu_context -#define GLX_NV_multigpu_context 1 -GLAPI int GLAD_GLX_NV_multigpu_context; -#endif -#ifndef GLX_NV_multisample_coverage -#define GLX_NV_multisample_coverage 1 -GLAPI int GLAD_GLX_NV_multisample_coverage; -#endif -#ifndef GLX_NV_present_video -#define GLX_NV_present_video 1 -GLAPI int GLAD_GLX_NV_present_video; -typedef unsigned int * (APIENTRYP PFNGLXENUMERATEVIDEODEVICESNVPROC)(Display *dpy, int screen, int *nelements); -GLAPI PFNGLXENUMERATEVIDEODEVICESNVPROC glad_glXEnumerateVideoDevicesNV; -#define glXEnumerateVideoDevicesNV glad_glXEnumerateVideoDevicesNV -typedef int (APIENTRYP PFNGLXBINDVIDEODEVICENVPROC)(Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); -GLAPI PFNGLXBINDVIDEODEVICENVPROC glad_glXBindVideoDeviceNV; -#define glXBindVideoDeviceNV glad_glXBindVideoDeviceNV -#endif -#ifndef GLX_NV_robustness_video_memory_purge -#define GLX_NV_robustness_video_memory_purge 1 -GLAPI int GLAD_GLX_NV_robustness_video_memory_purge; -#endif -#ifndef GLX_NV_swap_group -#define GLX_NV_swap_group 1 -GLAPI int GLAD_GLX_NV_swap_group; -typedef Bool (APIENTRYP PFNGLXJOINSWAPGROUPNVPROC)(Display *dpy, GLXDrawable drawable, GLuint group); -GLAPI PFNGLXJOINSWAPGROUPNVPROC glad_glXJoinSwapGroupNV; -#define glXJoinSwapGroupNV glad_glXJoinSwapGroupNV -typedef Bool (APIENTRYP PFNGLXBINDSWAPBARRIERNVPROC)(Display *dpy, GLuint group, GLuint barrier); -GLAPI PFNGLXBINDSWAPBARRIERNVPROC glad_glXBindSwapBarrierNV; -#define glXBindSwapBarrierNV glad_glXBindSwapBarrierNV -typedef Bool (APIENTRYP PFNGLXQUERYSWAPGROUPNVPROC)(Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); -GLAPI PFNGLXQUERYSWAPGROUPNVPROC glad_glXQuerySwapGroupNV; -#define glXQuerySwapGroupNV glad_glXQuerySwapGroupNV -typedef Bool (APIENTRYP PFNGLXQUERYMAXSWAPGROUPSNVPROC)(Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); -GLAPI PFNGLXQUERYMAXSWAPGROUPSNVPROC glad_glXQueryMaxSwapGroupsNV; -#define glXQueryMaxSwapGroupsNV glad_glXQueryMaxSwapGroupsNV -typedef Bool (APIENTRYP PFNGLXQUERYFRAMECOUNTNVPROC)(Display *dpy, int screen, GLuint *count); -GLAPI PFNGLXQUERYFRAMECOUNTNVPROC glad_glXQueryFrameCountNV; -#define glXQueryFrameCountNV glad_glXQueryFrameCountNV -typedef Bool (APIENTRYP PFNGLXRESETFRAMECOUNTNVPROC)(Display *dpy, int screen); -GLAPI PFNGLXRESETFRAMECOUNTNVPROC glad_glXResetFrameCountNV; -#define glXResetFrameCountNV glad_glXResetFrameCountNV -#endif -#ifndef GLX_NV_video_capture -#define GLX_NV_video_capture 1 -GLAPI int GLAD_GLX_NV_video_capture; -typedef int (APIENTRYP PFNGLXBINDVIDEOCAPTUREDEVICENVPROC)(Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); -GLAPI PFNGLXBINDVIDEOCAPTUREDEVICENVPROC glad_glXBindVideoCaptureDeviceNV; -#define glXBindVideoCaptureDeviceNV glad_glXBindVideoCaptureDeviceNV -typedef GLXVideoCaptureDeviceNV * (APIENTRYP PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC)(Display *dpy, int screen, int *nelements); -GLAPI PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC glad_glXEnumerateVideoCaptureDevicesNV; -#define glXEnumerateVideoCaptureDevicesNV glad_glXEnumerateVideoCaptureDevicesNV -typedef void (APIENTRYP PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC)(Display *dpy, GLXVideoCaptureDeviceNV device); -GLAPI PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC glad_glXLockVideoCaptureDeviceNV; -#define glXLockVideoCaptureDeviceNV glad_glXLockVideoCaptureDeviceNV -typedef int (APIENTRYP PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC)(Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); -GLAPI PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC glad_glXQueryVideoCaptureDeviceNV; -#define glXQueryVideoCaptureDeviceNV glad_glXQueryVideoCaptureDeviceNV -typedef void (APIENTRYP PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC)(Display *dpy, GLXVideoCaptureDeviceNV device); -GLAPI PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC glad_glXReleaseVideoCaptureDeviceNV; -#define glXReleaseVideoCaptureDeviceNV glad_glXReleaseVideoCaptureDeviceNV -#endif -#ifndef GLX_NV_video_out -#define GLX_NV_video_out 1 -GLAPI int GLAD_GLX_NV_video_out; -typedef int (APIENTRYP PFNGLXGETVIDEODEVICENVPROC)(Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); -GLAPI PFNGLXGETVIDEODEVICENVPROC glad_glXGetVideoDeviceNV; -#define glXGetVideoDeviceNV glad_glXGetVideoDeviceNV -typedef int (APIENTRYP PFNGLXRELEASEVIDEODEVICENVPROC)(Display *dpy, int screen, GLXVideoDeviceNV VideoDevice); -GLAPI PFNGLXRELEASEVIDEODEVICENVPROC glad_glXReleaseVideoDeviceNV; -#define glXReleaseVideoDeviceNV glad_glXReleaseVideoDeviceNV -typedef int (APIENTRYP PFNGLXBINDVIDEOIMAGENVPROC)(Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); -GLAPI PFNGLXBINDVIDEOIMAGENVPROC glad_glXBindVideoImageNV; -#define glXBindVideoImageNV glad_glXBindVideoImageNV -typedef int (APIENTRYP PFNGLXRELEASEVIDEOIMAGENVPROC)(Display *dpy, GLXPbuffer pbuf); -GLAPI PFNGLXRELEASEVIDEOIMAGENVPROC glad_glXReleaseVideoImageNV; -#define glXReleaseVideoImageNV glad_glXReleaseVideoImageNV -typedef int (APIENTRYP PFNGLXSENDPBUFFERTOVIDEONVPROC)(Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); -GLAPI PFNGLXSENDPBUFFERTOVIDEONVPROC glad_glXSendPbufferToVideoNV; -#define glXSendPbufferToVideoNV glad_glXSendPbufferToVideoNV -typedef int (APIENTRYP PFNGLXGETVIDEOINFONVPROC)(Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); -GLAPI PFNGLXGETVIDEOINFONVPROC glad_glXGetVideoInfoNV; -#define glXGetVideoInfoNV glad_glXGetVideoInfoNV -#endif -#ifndef GLX_OML_swap_method -#define GLX_OML_swap_method 1 -GLAPI int GLAD_GLX_OML_swap_method; -#endif -#ifndef GLX_OML_sync_control -#define GLX_OML_sync_control 1 -GLAPI int GLAD_GLX_OML_sync_control; -typedef Bool (APIENTRYP PFNGLXGETSYNCVALUESOMLPROC)(Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc); -GLAPI PFNGLXGETSYNCVALUESOMLPROC glad_glXGetSyncValuesOML; -#define glXGetSyncValuesOML glad_glXGetSyncValuesOML -typedef Bool (APIENTRYP PFNGLXGETMSCRATEOMLPROC)(Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator); -GLAPI PFNGLXGETMSCRATEOMLPROC glad_glXGetMscRateOML; -#define glXGetMscRateOML glad_glXGetMscRateOML -typedef int64_t (APIENTRYP PFNGLXSWAPBUFFERSMSCOMLPROC)(Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); -GLAPI PFNGLXSWAPBUFFERSMSCOMLPROC glad_glXSwapBuffersMscOML; -#define glXSwapBuffersMscOML glad_glXSwapBuffersMscOML -typedef Bool (APIENTRYP PFNGLXWAITFORMSCOMLPROC)(Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc); -GLAPI PFNGLXWAITFORMSCOMLPROC glad_glXWaitForMscOML; -#define glXWaitForMscOML glad_glXWaitForMscOML -typedef Bool (APIENTRYP PFNGLXWAITFORSBCOMLPROC)(Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc); -GLAPI PFNGLXWAITFORSBCOMLPROC glad_glXWaitForSbcOML; -#define glXWaitForSbcOML glad_glXWaitForSbcOML -#endif -#ifndef GLX_SGIS_blended_overlay -#define GLX_SGIS_blended_overlay 1 -GLAPI int GLAD_GLX_SGIS_blended_overlay; -#endif -#ifndef GLX_SGIS_multisample -#define GLX_SGIS_multisample 1 -GLAPI int GLAD_GLX_SGIS_multisample; -#endif -#ifndef GLX_SGIS_shared_multisample -#define GLX_SGIS_shared_multisample 1 -GLAPI int GLAD_GLX_SGIS_shared_multisample; -#endif -#ifndef GLX_SGIX_dmbuffer -#define GLX_SGIX_dmbuffer 1 -GLAPI int GLAD_GLX_SGIX_dmbuffer; -#ifdef _DM_BUFFER_H_ -typedef Bool (APIENTRYP PFNGLXASSOCIATEDMPBUFFERSGIXPROC)(Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer); -GLAPI PFNGLXASSOCIATEDMPBUFFERSGIXPROC glad_glXAssociateDMPbufferSGIX; -#define glXAssociateDMPbufferSGIX glad_glXAssociateDMPbufferSGIX -#endif -#endif -#ifndef GLX_SGIX_fbconfig -#define GLX_SGIX_fbconfig 1 -GLAPI int GLAD_GLX_SGIX_fbconfig; -typedef int (APIENTRYP PFNGLXGETFBCONFIGATTRIBSGIXPROC)(Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); -GLAPI PFNGLXGETFBCONFIGATTRIBSGIXPROC glad_glXGetFBConfigAttribSGIX; -#define glXGetFBConfigAttribSGIX glad_glXGetFBConfigAttribSGIX -typedef GLXFBConfigSGIX * (APIENTRYP PFNGLXCHOOSEFBCONFIGSGIXPROC)(Display *dpy, int screen, int *attrib_list, int *nelements); -GLAPI PFNGLXCHOOSEFBCONFIGSGIXPROC glad_glXChooseFBConfigSGIX; -#define glXChooseFBConfigSGIX glad_glXChooseFBConfigSGIX -typedef GLXPixmap (APIENTRYP PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC)(Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap); -GLAPI PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC glad_glXCreateGLXPixmapWithConfigSGIX; -#define glXCreateGLXPixmapWithConfigSGIX glad_glXCreateGLXPixmapWithConfigSGIX -typedef GLXContext (APIENTRYP PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC)(Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); -GLAPI PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC glad_glXCreateContextWithConfigSGIX; -#define glXCreateContextWithConfigSGIX glad_glXCreateContextWithConfigSGIX -typedef XVisualInfo * (APIENTRYP PFNGLXGETVISUALFROMFBCONFIGSGIXPROC)(Display *dpy, GLXFBConfigSGIX config); -GLAPI PFNGLXGETVISUALFROMFBCONFIGSGIXPROC glad_glXGetVisualFromFBConfigSGIX; -#define glXGetVisualFromFBConfigSGIX glad_glXGetVisualFromFBConfigSGIX -typedef GLXFBConfigSGIX (APIENTRYP PFNGLXGETFBCONFIGFROMVISUALSGIXPROC)(Display *dpy, XVisualInfo *vis); -GLAPI PFNGLXGETFBCONFIGFROMVISUALSGIXPROC glad_glXGetFBConfigFromVisualSGIX; -#define glXGetFBConfigFromVisualSGIX glad_glXGetFBConfigFromVisualSGIX -#endif -#ifndef GLX_SGIX_hyperpipe -#define GLX_SGIX_hyperpipe 1 -GLAPI int GLAD_GLX_SGIX_hyperpipe; -typedef GLXHyperpipeNetworkSGIX * (APIENTRYP PFNGLXQUERYHYPERPIPENETWORKSGIXPROC)(Display *dpy, int *npipes); -GLAPI PFNGLXQUERYHYPERPIPENETWORKSGIXPROC glad_glXQueryHyperpipeNetworkSGIX; -#define glXQueryHyperpipeNetworkSGIX glad_glXQueryHyperpipeNetworkSGIX -typedef int (APIENTRYP PFNGLXHYPERPIPECONFIGSGIXPROC)(Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); -GLAPI PFNGLXHYPERPIPECONFIGSGIXPROC glad_glXHyperpipeConfigSGIX; -#define glXHyperpipeConfigSGIX glad_glXHyperpipeConfigSGIX -typedef GLXHyperpipeConfigSGIX * (APIENTRYP PFNGLXQUERYHYPERPIPECONFIGSGIXPROC)(Display *dpy, int hpId, int *npipes); -GLAPI PFNGLXQUERYHYPERPIPECONFIGSGIXPROC glad_glXQueryHyperpipeConfigSGIX; -#define glXQueryHyperpipeConfigSGIX glad_glXQueryHyperpipeConfigSGIX -typedef int (APIENTRYP PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC)(Display *dpy, int hpId); -GLAPI PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC glad_glXDestroyHyperpipeConfigSGIX; -#define glXDestroyHyperpipeConfigSGIX glad_glXDestroyHyperpipeConfigSGIX -typedef int (APIENTRYP PFNGLXBINDHYPERPIPESGIXPROC)(Display *dpy, int hpId); -GLAPI PFNGLXBINDHYPERPIPESGIXPROC glad_glXBindHyperpipeSGIX; -#define glXBindHyperpipeSGIX glad_glXBindHyperpipeSGIX -typedef int (APIENTRYP PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC)(Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); -GLAPI PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC glad_glXQueryHyperpipeBestAttribSGIX; -#define glXQueryHyperpipeBestAttribSGIX glad_glXQueryHyperpipeBestAttribSGIX -typedef int (APIENTRYP PFNGLXHYPERPIPEATTRIBSGIXPROC)(Display *dpy, int timeSlice, int attrib, int size, void *attribList); -GLAPI PFNGLXHYPERPIPEATTRIBSGIXPROC glad_glXHyperpipeAttribSGIX; -#define glXHyperpipeAttribSGIX glad_glXHyperpipeAttribSGIX -typedef int (APIENTRYP PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC)(Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); -GLAPI PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC glad_glXQueryHyperpipeAttribSGIX; -#define glXQueryHyperpipeAttribSGIX glad_glXQueryHyperpipeAttribSGIX -#endif -#ifndef GLX_SGIX_pbuffer -#define GLX_SGIX_pbuffer 1 -GLAPI int GLAD_GLX_SGIX_pbuffer; -typedef GLXPbufferSGIX (APIENTRYP PFNGLXCREATEGLXPBUFFERSGIXPROC)(Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list); -GLAPI PFNGLXCREATEGLXPBUFFERSGIXPROC glad_glXCreateGLXPbufferSGIX; -#define glXCreateGLXPbufferSGIX glad_glXCreateGLXPbufferSGIX -typedef void (APIENTRYP PFNGLXDESTROYGLXPBUFFERSGIXPROC)(Display *dpy, GLXPbufferSGIX pbuf); -GLAPI PFNGLXDESTROYGLXPBUFFERSGIXPROC glad_glXDestroyGLXPbufferSGIX; -#define glXDestroyGLXPbufferSGIX glad_glXDestroyGLXPbufferSGIX -typedef void (APIENTRYP PFNGLXQUERYGLXPBUFFERSGIXPROC)(Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value); -GLAPI PFNGLXQUERYGLXPBUFFERSGIXPROC glad_glXQueryGLXPbufferSGIX; -#define glXQueryGLXPbufferSGIX glad_glXQueryGLXPbufferSGIX -typedef void (APIENTRYP PFNGLXSELECTEVENTSGIXPROC)(Display *dpy, GLXDrawable drawable, unsigned long mask); -GLAPI PFNGLXSELECTEVENTSGIXPROC glad_glXSelectEventSGIX; -#define glXSelectEventSGIX glad_glXSelectEventSGIX -typedef void (APIENTRYP PFNGLXGETSELECTEDEVENTSGIXPROC)(Display *dpy, GLXDrawable drawable, unsigned long *mask); -GLAPI PFNGLXGETSELECTEDEVENTSGIXPROC glad_glXGetSelectedEventSGIX; -#define glXGetSelectedEventSGIX glad_glXGetSelectedEventSGIX -#endif -#ifndef GLX_SGIX_swap_barrier -#define GLX_SGIX_swap_barrier 1 -GLAPI int GLAD_GLX_SGIX_swap_barrier; -typedef void (APIENTRYP PFNGLXBINDSWAPBARRIERSGIXPROC)(Display *dpy, GLXDrawable drawable, int barrier); -GLAPI PFNGLXBINDSWAPBARRIERSGIXPROC glad_glXBindSwapBarrierSGIX; -#define glXBindSwapBarrierSGIX glad_glXBindSwapBarrierSGIX -typedef Bool (APIENTRYP PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC)(Display *dpy, int screen, int *max); -GLAPI PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC glad_glXQueryMaxSwapBarriersSGIX; -#define glXQueryMaxSwapBarriersSGIX glad_glXQueryMaxSwapBarriersSGIX -#endif -#ifndef GLX_SGIX_swap_group -#define GLX_SGIX_swap_group 1 -GLAPI int GLAD_GLX_SGIX_swap_group; -typedef void (APIENTRYP PFNGLXJOINSWAPGROUPSGIXPROC)(Display *dpy, GLXDrawable drawable, GLXDrawable member); -GLAPI PFNGLXJOINSWAPGROUPSGIXPROC glad_glXJoinSwapGroupSGIX; -#define glXJoinSwapGroupSGIX glad_glXJoinSwapGroupSGIX -#endif -#ifndef GLX_SGIX_video_resize -#define GLX_SGIX_video_resize 1 -GLAPI int GLAD_GLX_SGIX_video_resize; -typedef int (APIENTRYP PFNGLXBINDCHANNELTOWINDOWSGIXPROC)(Display *display, int screen, int channel, Window window); -GLAPI PFNGLXBINDCHANNELTOWINDOWSGIXPROC glad_glXBindChannelToWindowSGIX; -#define glXBindChannelToWindowSGIX glad_glXBindChannelToWindowSGIX -typedef int (APIENTRYP PFNGLXCHANNELRECTSGIXPROC)(Display *display, int screen, int channel, int x, int y, int w, int h); -GLAPI PFNGLXCHANNELRECTSGIXPROC glad_glXChannelRectSGIX; -#define glXChannelRectSGIX glad_glXChannelRectSGIX -typedef int (APIENTRYP PFNGLXQUERYCHANNELRECTSGIXPROC)(Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); -GLAPI PFNGLXQUERYCHANNELRECTSGIXPROC glad_glXQueryChannelRectSGIX; -#define glXQueryChannelRectSGIX glad_glXQueryChannelRectSGIX -typedef int (APIENTRYP PFNGLXQUERYCHANNELDELTASSGIXPROC)(Display *display, int screen, int channel, int *x, int *y, int *w, int *h); -GLAPI PFNGLXQUERYCHANNELDELTASSGIXPROC glad_glXQueryChannelDeltasSGIX; -#define glXQueryChannelDeltasSGIX glad_glXQueryChannelDeltasSGIX -typedef int (APIENTRYP PFNGLXCHANNELRECTSYNCSGIXPROC)(Display *display, int screen, int channel, GLenum synctype); -GLAPI PFNGLXCHANNELRECTSYNCSGIXPROC glad_glXChannelRectSyncSGIX; -#define glXChannelRectSyncSGIX glad_glXChannelRectSyncSGIX -#endif -#ifndef GLX_SGIX_video_source -#define GLX_SGIX_video_source 1 -GLAPI int GLAD_GLX_SGIX_video_source; -#ifdef _VL_H_ -typedef GLXVideoSourceSGIX (APIENTRYP PFNGLXCREATEGLXVIDEOSOURCESGIXPROC)(Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode); -GLAPI PFNGLXCREATEGLXVIDEOSOURCESGIXPROC glad_glXCreateGLXVideoSourceSGIX; -#define glXCreateGLXVideoSourceSGIX glad_glXCreateGLXVideoSourceSGIX -typedef void (APIENTRYP PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC)(Display *dpy, GLXVideoSourceSGIX glxvideosource); -GLAPI PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC glad_glXDestroyGLXVideoSourceSGIX; -#define glXDestroyGLXVideoSourceSGIX glad_glXDestroyGLXVideoSourceSGIX -#endif -#endif -#ifndef GLX_SGIX_visual_select_group -#define GLX_SGIX_visual_select_group 1 -GLAPI int GLAD_GLX_SGIX_visual_select_group; -#endif -#ifndef GLX_SGI_cushion -#define GLX_SGI_cushion 1 -GLAPI int GLAD_GLX_SGI_cushion; -typedef void (APIENTRYP PFNGLXCUSHIONSGIPROC)(Display *dpy, Window window, float cushion); -GLAPI PFNGLXCUSHIONSGIPROC glad_glXCushionSGI; -#define glXCushionSGI glad_glXCushionSGI -#endif -#ifndef GLX_SGI_make_current_read -#define GLX_SGI_make_current_read 1 -GLAPI int GLAD_GLX_SGI_make_current_read; -typedef Bool (APIENTRYP PFNGLXMAKECURRENTREADSGIPROC)(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); -GLAPI PFNGLXMAKECURRENTREADSGIPROC glad_glXMakeCurrentReadSGI; -#define glXMakeCurrentReadSGI glad_glXMakeCurrentReadSGI -typedef GLXDrawable (APIENTRYP PFNGLXGETCURRENTREADDRAWABLESGIPROC)(void); -GLAPI PFNGLXGETCURRENTREADDRAWABLESGIPROC glad_glXGetCurrentReadDrawableSGI; -#define glXGetCurrentReadDrawableSGI glad_glXGetCurrentReadDrawableSGI -#endif -#ifndef GLX_SGI_swap_control -#define GLX_SGI_swap_control 1 -GLAPI int GLAD_GLX_SGI_swap_control; -typedef int (APIENTRYP PFNGLXSWAPINTERVALSGIPROC)(int interval); -GLAPI PFNGLXSWAPINTERVALSGIPROC glad_glXSwapIntervalSGI; -#define glXSwapIntervalSGI glad_glXSwapIntervalSGI -#endif -#ifndef GLX_SGI_video_sync -#define GLX_SGI_video_sync 1 -GLAPI int GLAD_GLX_SGI_video_sync; -typedef int (APIENTRYP PFNGLXGETVIDEOSYNCSGIPROC)(unsigned int *count); -GLAPI PFNGLXGETVIDEOSYNCSGIPROC glad_glXGetVideoSyncSGI; -#define glXGetVideoSyncSGI glad_glXGetVideoSyncSGI -typedef int (APIENTRYP PFNGLXWAITVIDEOSYNCSGIPROC)(int divisor, int remainder, unsigned int *count); -GLAPI PFNGLXWAITVIDEOSYNCSGIPROC glad_glXWaitVideoSyncSGI; -#define glXWaitVideoSyncSGI glad_glXWaitVideoSyncSGI -#endif -#ifndef GLX_SUN_get_transparent_index -#define GLX_SUN_get_transparent_index 1 -GLAPI int GLAD_GLX_SUN_get_transparent_index; -typedef Status (APIENTRYP PFNGLXGETTRANSPARENTINDEXSUNPROC)(Display *dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex); -GLAPI PFNGLXGETTRANSPARENTINDEXSUNPROC glad_glXGetTransparentIndexSUN; -#define glXGetTransparentIndexSUN glad_glXGetTransparentIndexSUN -#endif - -#ifdef __cplusplus -} -#endif - -#endif \ No newline at end of file diff --git a/third_party/glad/include/glad/glad_wgl.h b/third_party/glad/include/glad/glad_wgl.h deleted file mode 100644 index b41eae75..00000000 --- a/third_party/glad/include/glad/glad_wgl.h +++ /dev/null @@ -1,1014 +0,0 @@ -/* - - WGL loader generated by glad 0.1.33 on Sun May 3 16:49:27 2020. - - Language/Generator: C/C++ - Specification: wgl - APIs: wgl=1.0 - Profile: - - Extensions: - WGL_3DFX_multisample, - WGL_3DL_stereo_control, - WGL_AMD_gpu_association, - WGL_ARB_buffer_region, - WGL_ARB_context_flush_control, - WGL_ARB_create_context, - WGL_ARB_create_context_no_error, - WGL_ARB_create_context_profile, - WGL_ARB_create_context_robustness, - WGL_ARB_extensions_string, - WGL_ARB_framebuffer_sRGB, - WGL_ARB_make_current_read, - WGL_ARB_multisample, - WGL_ARB_pbuffer, - WGL_ARB_pixel_format, - WGL_ARB_pixel_format_float, - WGL_ARB_render_texture, - WGL_ARB_robustness_application_isolation, - WGL_ARB_robustness_share_group_isolation, - WGL_ATI_pixel_format_float, - WGL_ATI_render_texture_rectangle, - WGL_EXT_colorspace, - WGL_EXT_create_context_es2_profile, - WGL_EXT_create_context_es_profile, - WGL_EXT_depth_float, - WGL_EXT_display_color_table, - WGL_EXT_extensions_string, - WGL_EXT_framebuffer_sRGB, - WGL_EXT_make_current_read, - WGL_EXT_multisample, - WGL_EXT_pbuffer, - WGL_EXT_pixel_format, - WGL_EXT_pixel_format_packed_float, - WGL_EXT_swap_control, - WGL_EXT_swap_control_tear, - WGL_I3D_digital_video_control, - WGL_I3D_gamma, - WGL_I3D_genlock, - WGL_I3D_image_buffer, - WGL_I3D_swap_frame_lock, - WGL_I3D_swap_frame_usage, - WGL_NV_DX_interop, - WGL_NV_DX_interop2, - WGL_NV_copy_image, - WGL_NV_delay_before_swap, - WGL_NV_float_buffer, - WGL_NV_gpu_affinity, - WGL_NV_multigpu_context, - WGL_NV_multisample_coverage, - WGL_NV_present_video, - WGL_NV_render_depth_texture, - WGL_NV_render_texture_rectangle, - WGL_NV_swap_group, - WGL_NV_vertex_array_range, - WGL_NV_video_capture, - WGL_NV_video_output, - WGL_OML_sync_control - Loader: True - Local files: False - Omit khrplatform: False - Reproducible: False - - Commandline: - --api="wgl=1.0" --generator="c" --spec="wgl" --extensions="WGL_3DFX_multisample,WGL_3DL_stereo_control,WGL_AMD_gpu_association,WGL_ARB_buffer_region,WGL_ARB_context_flush_control,WGL_ARB_create_context,WGL_ARB_create_context_no_error,WGL_ARB_create_context_profile,WGL_ARB_create_context_robustness,WGL_ARB_extensions_string,WGL_ARB_framebuffer_sRGB,WGL_ARB_make_current_read,WGL_ARB_multisample,WGL_ARB_pbuffer,WGL_ARB_pixel_format,WGL_ARB_pixel_format_float,WGL_ARB_render_texture,WGL_ARB_robustness_application_isolation,WGL_ARB_robustness_share_group_isolation,WGL_ATI_pixel_format_float,WGL_ATI_render_texture_rectangle,WGL_EXT_colorspace,WGL_EXT_create_context_es2_profile,WGL_EXT_create_context_es_profile,WGL_EXT_depth_float,WGL_EXT_display_color_table,WGL_EXT_extensions_string,WGL_EXT_framebuffer_sRGB,WGL_EXT_make_current_read,WGL_EXT_multisample,WGL_EXT_pbuffer,WGL_EXT_pixel_format,WGL_EXT_pixel_format_packed_float,WGL_EXT_swap_control,WGL_EXT_swap_control_tear,WGL_I3D_digital_video_control,WGL_I3D_gamma,WGL_I3D_genlock,WGL_I3D_image_buffer,WGL_I3D_swap_frame_lock,WGL_I3D_swap_frame_usage,WGL_NV_DX_interop,WGL_NV_DX_interop2,WGL_NV_copy_image,WGL_NV_delay_before_swap,WGL_NV_float_buffer,WGL_NV_gpu_affinity,WGL_NV_multigpu_context,WGL_NV_multisample_coverage,WGL_NV_present_video,WGL_NV_render_depth_texture,WGL_NV_render_texture_rectangle,WGL_NV_swap_group,WGL_NV_vertex_array_range,WGL_NV_video_capture,WGL_NV_video_output,WGL_OML_sync_control" - Online: - Too many extensions -*/ - - -#ifndef WINAPI -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN 1 -#endif -#ifndef NOMINMAX -#define NOMINMAX 1 -#endif -#include -#endif - -#include - -#ifndef __glad_wglext_h_ - -#ifdef __wglext_h_ -#error WGL header already included, remove this include, glad already provides it -#endif - -#define __glad_wglext_h_ -#define __wglext_h_ - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void* (* GLADloadproc)(const char *name); - -#ifndef GLAPI -# if defined(GLAD_GLAPI_EXPORT) -# if defined(_WIN32) || defined(__CYGWIN__) -# if defined(GLAD_GLAPI_EXPORT_BUILD) -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllexport)) extern -# else -# define GLAPI __declspec(dllexport) extern -# endif -# else -# if defined(__GNUC__) -# define GLAPI __attribute__ ((dllimport)) extern -# else -# define GLAPI __declspec(dllimport) extern -# endif -# endif -# elif defined(__GNUC__) && defined(GLAD_GLAPI_EXPORT_BUILD) -# define GLAPI __attribute__ ((visibility ("default"))) extern -# else -# define GLAPI extern -# endif -# else -# define GLAPI extern -# endif -#endif - -GLAPI int gladLoadWGL(HDC hdc); - -GLAPI int gladLoadWGLLoader(GLADloadproc, HDC hdc); - -struct _GPU_DEVICE { - DWORD cb; - CHAR DeviceName[32]; - CHAR DeviceString[128]; - DWORD Flags; - RECT rcVirtualScreen; -}; -DECLARE_HANDLE(HPBUFFERARB); -DECLARE_HANDLE(HPBUFFEREXT); -DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); -DECLARE_HANDLE(HPVIDEODEV); -DECLARE_HANDLE(HPGPUNV); -DECLARE_HANDLE(HGPUNV); -DECLARE_HANDLE(HVIDEOINPUTDEVICENV); -typedef struct _GPU_DEVICE GPU_DEVICE; -typedef struct _GPU_DEVICE *PGPU_DEVICE; -#define WGL_SAMPLE_BUFFERS_3DFX 0x2060 -#define WGL_SAMPLES_3DFX 0x2061 -#define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055 -#define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056 -#define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057 -#define WGL_STEREO_POLARITY_INVERT_3DL 0x2058 -#define WGL_GPU_VENDOR_AMD 0x1F00 -#define WGL_GPU_RENDERER_STRING_AMD 0x1F01 -#define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 -#define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 -#define WGL_GPU_RAM_AMD 0x21A3 -#define WGL_GPU_CLOCK_AMD 0x21A4 -#define WGL_GPU_NUM_PIPES_AMD 0x21A5 -#define WGL_GPU_NUM_SIMD_AMD 0x21A6 -#define WGL_GPU_NUM_RB_AMD 0x21A7 -#define WGL_GPU_NUM_SPI_AMD 0x21A8 -#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 -#define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 -#define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 -#define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 -#define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 -#define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 -#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 -#define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 -#define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 -#define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 -#define WGL_CONTEXT_FLAGS_ARB 0x2094 -#define ERROR_INVALID_VERSION_ARB 0x2095 -#define WGL_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3 -#define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 -#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 -#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 -#define ERROR_INVALID_PROFILE_ARB 0x2096 -#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 -#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9 -#define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 -#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 -#define WGL_SAMPLE_BUFFERS_ARB 0x2041 -#define WGL_SAMPLES_ARB 0x2042 -#define WGL_DRAW_TO_PBUFFER_ARB 0x202D -#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E -#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F -#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 -#define WGL_PBUFFER_LARGEST_ARB 0x2033 -#define WGL_PBUFFER_WIDTH_ARB 0x2034 -#define WGL_PBUFFER_HEIGHT_ARB 0x2035 -#define WGL_PBUFFER_LOST_ARB 0x2036 -#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 -#define WGL_DRAW_TO_WINDOW_ARB 0x2001 -#define WGL_DRAW_TO_BITMAP_ARB 0x2002 -#define WGL_ACCELERATION_ARB 0x2003 -#define WGL_NEED_PALETTE_ARB 0x2004 -#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 -#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 -#define WGL_SWAP_METHOD_ARB 0x2007 -#define WGL_NUMBER_OVERLAYS_ARB 0x2008 -#define WGL_NUMBER_UNDERLAYS_ARB 0x2009 -#define WGL_TRANSPARENT_ARB 0x200A -#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 -#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 -#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 -#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A -#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B -#define WGL_SHARE_DEPTH_ARB 0x200C -#define WGL_SHARE_STENCIL_ARB 0x200D -#define WGL_SHARE_ACCUM_ARB 0x200E -#define WGL_SUPPORT_GDI_ARB 0x200F -#define WGL_SUPPORT_OPENGL_ARB 0x2010 -#define WGL_DOUBLE_BUFFER_ARB 0x2011 -#define WGL_STEREO_ARB 0x2012 -#define WGL_PIXEL_TYPE_ARB 0x2013 -#define WGL_COLOR_BITS_ARB 0x2014 -#define WGL_RED_BITS_ARB 0x2015 -#define WGL_RED_SHIFT_ARB 0x2016 -#define WGL_GREEN_BITS_ARB 0x2017 -#define WGL_GREEN_SHIFT_ARB 0x2018 -#define WGL_BLUE_BITS_ARB 0x2019 -#define WGL_BLUE_SHIFT_ARB 0x201A -#define WGL_ALPHA_BITS_ARB 0x201B -#define WGL_ALPHA_SHIFT_ARB 0x201C -#define WGL_ACCUM_BITS_ARB 0x201D -#define WGL_ACCUM_RED_BITS_ARB 0x201E -#define WGL_ACCUM_GREEN_BITS_ARB 0x201F -#define WGL_ACCUM_BLUE_BITS_ARB 0x2020 -#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 -#define WGL_DEPTH_BITS_ARB 0x2022 -#define WGL_STENCIL_BITS_ARB 0x2023 -#define WGL_AUX_BUFFERS_ARB 0x2024 -#define WGL_NO_ACCELERATION_ARB 0x2025 -#define WGL_GENERIC_ACCELERATION_ARB 0x2026 -#define WGL_FULL_ACCELERATION_ARB 0x2027 -#define WGL_SWAP_EXCHANGE_ARB 0x2028 -#define WGL_SWAP_COPY_ARB 0x2029 -#define WGL_SWAP_UNDEFINED_ARB 0x202A -#define WGL_TYPE_RGBA_ARB 0x202B -#define WGL_TYPE_COLORINDEX_ARB 0x202C -#define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0 -#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 -#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 -#define WGL_TEXTURE_FORMAT_ARB 0x2072 -#define WGL_TEXTURE_TARGET_ARB 0x2073 -#define WGL_MIPMAP_TEXTURE_ARB 0x2074 -#define WGL_TEXTURE_RGB_ARB 0x2075 -#define WGL_TEXTURE_RGBA_ARB 0x2076 -#define WGL_NO_TEXTURE_ARB 0x2077 -#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 -#define WGL_TEXTURE_1D_ARB 0x2079 -#define WGL_TEXTURE_2D_ARB 0x207A -#define WGL_MIPMAP_LEVEL_ARB 0x207B -#define WGL_CUBE_MAP_FACE_ARB 0x207C -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 -#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 -#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 -#define WGL_FRONT_LEFT_ARB 0x2083 -#define WGL_FRONT_RIGHT_ARB 0x2084 -#define WGL_BACK_LEFT_ARB 0x2085 -#define WGL_BACK_RIGHT_ARB 0x2086 -#define WGL_AUX0_ARB 0x2087 -#define WGL_AUX1_ARB 0x2088 -#define WGL_AUX2_ARB 0x2089 -#define WGL_AUX3_ARB 0x208A -#define WGL_AUX4_ARB 0x208B -#define WGL_AUX5_ARB 0x208C -#define WGL_AUX6_ARB 0x208D -#define WGL_AUX7_ARB 0x208E -#define WGL_AUX8_ARB 0x208F -#define WGL_AUX9_ARB 0x2090 -#define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 -#define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0 -#define WGL_TEXTURE_RECTANGLE_ATI 0x21A5 -#define WGL_COLORSPACE_EXT 0x309D -#define WGL_COLORSPACE_SRGB_EXT 0x3089 -#define WGL_COLORSPACE_LINEAR_EXT 0x308A -#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 -#define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004 -#define WGL_DEPTH_FLOAT_EXT 0x2040 -#define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9 -#define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 -#define WGL_SAMPLE_BUFFERS_EXT 0x2041 -#define WGL_SAMPLES_EXT 0x2042 -#define WGL_DRAW_TO_PBUFFER_EXT 0x202D -#define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E -#define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F -#define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 -#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 -#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 -#define WGL_PBUFFER_LARGEST_EXT 0x2033 -#define WGL_PBUFFER_WIDTH_EXT 0x2034 -#define WGL_PBUFFER_HEIGHT_EXT 0x2035 -#define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 -#define WGL_DRAW_TO_WINDOW_EXT 0x2001 -#define WGL_DRAW_TO_BITMAP_EXT 0x2002 -#define WGL_ACCELERATION_EXT 0x2003 -#define WGL_NEED_PALETTE_EXT 0x2004 -#define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 -#define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 -#define WGL_SWAP_METHOD_EXT 0x2007 -#define WGL_NUMBER_OVERLAYS_EXT 0x2008 -#define WGL_NUMBER_UNDERLAYS_EXT 0x2009 -#define WGL_TRANSPARENT_EXT 0x200A -#define WGL_TRANSPARENT_VALUE_EXT 0x200B -#define WGL_SHARE_DEPTH_EXT 0x200C -#define WGL_SHARE_STENCIL_EXT 0x200D -#define WGL_SHARE_ACCUM_EXT 0x200E -#define WGL_SUPPORT_GDI_EXT 0x200F -#define WGL_SUPPORT_OPENGL_EXT 0x2010 -#define WGL_DOUBLE_BUFFER_EXT 0x2011 -#define WGL_STEREO_EXT 0x2012 -#define WGL_PIXEL_TYPE_EXT 0x2013 -#define WGL_COLOR_BITS_EXT 0x2014 -#define WGL_RED_BITS_EXT 0x2015 -#define WGL_RED_SHIFT_EXT 0x2016 -#define WGL_GREEN_BITS_EXT 0x2017 -#define WGL_GREEN_SHIFT_EXT 0x2018 -#define WGL_BLUE_BITS_EXT 0x2019 -#define WGL_BLUE_SHIFT_EXT 0x201A -#define WGL_ALPHA_BITS_EXT 0x201B -#define WGL_ALPHA_SHIFT_EXT 0x201C -#define WGL_ACCUM_BITS_EXT 0x201D -#define WGL_ACCUM_RED_BITS_EXT 0x201E -#define WGL_ACCUM_GREEN_BITS_EXT 0x201F -#define WGL_ACCUM_BLUE_BITS_EXT 0x2020 -#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 -#define WGL_DEPTH_BITS_EXT 0x2022 -#define WGL_STENCIL_BITS_EXT 0x2023 -#define WGL_AUX_BUFFERS_EXT 0x2024 -#define WGL_NO_ACCELERATION_EXT 0x2025 -#define WGL_GENERIC_ACCELERATION_EXT 0x2026 -#define WGL_FULL_ACCELERATION_EXT 0x2027 -#define WGL_SWAP_EXCHANGE_EXT 0x2028 -#define WGL_SWAP_COPY_EXT 0x2029 -#define WGL_SWAP_UNDEFINED_EXT 0x202A -#define WGL_TYPE_RGBA_EXT 0x202B -#define WGL_TYPE_COLORINDEX_EXT 0x202C -#define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8 -#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 -#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 -#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 -#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 -#define WGL_GAMMA_TABLE_SIZE_I3D 0x204E -#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F -#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 -#define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045 -#define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046 -#define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047 -#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 -#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 -#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A -#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B -#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C -#define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 -#define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 -#define WGL_ACCESS_READ_ONLY_NV 0x00000000 -#define WGL_ACCESS_READ_WRITE_NV 0x00000001 -#define WGL_ACCESS_WRITE_DISCARD_NV 0x00000002 -#define WGL_FLOAT_COMPONENTS_NV 0x20B0 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 -#define WGL_TEXTURE_FLOAT_R_NV 0x20B5 -#define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 -#define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 -#define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 -#define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 -#define ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 -#define WGL_CONTEXT_MULTIGPU_ATTRIB_NV 0x20AA -#define WGL_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB -#define WGL_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC -#define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD -#define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE -#define WGL_COVERAGE_SAMPLES_NV 0x2042 -#define WGL_COLOR_SAMPLES_NV 0x20B9 -#define WGL_NUM_VIDEO_SLOTS_NV 0x20F0 -#define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 -#define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 -#define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 -#define WGL_DEPTH_COMPONENT_NV 0x20A7 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 -#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 -#define WGL_TEXTURE_RECTANGLE_NV 0x20A2 -#define WGL_UNIQUE_ID_NV 0x20CE -#define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF -#define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0 -#define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1 -#define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2 -#define WGL_VIDEO_OUT_COLOR_NV 0x20C3 -#define WGL_VIDEO_OUT_ALPHA_NV 0x20C4 -#define WGL_VIDEO_OUT_DEPTH_NV 0x20C5 -#define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 -#define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 -#define WGL_VIDEO_OUT_FRAME 0x20C8 -#define WGL_VIDEO_OUT_FIELD_1 0x20C9 -#define WGL_VIDEO_OUT_FIELD_2 0x20CA -#define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB -#define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC -#ifndef WGL_3DFX_multisample -#define WGL_3DFX_multisample 1 -GLAPI int GLAD_WGL_3DFX_multisample; -#endif -#ifndef WGL_3DL_stereo_control -#define WGL_3DL_stereo_control 1 -GLAPI int GLAD_WGL_3DL_stereo_control; -typedef BOOL (APIENTRYP PFNWGLSETSTEREOEMITTERSTATE3DLPROC)(HDC hDC, UINT uState); -GLAPI PFNWGLSETSTEREOEMITTERSTATE3DLPROC glad_wglSetStereoEmitterState3DL; -#define wglSetStereoEmitterState3DL glad_wglSetStereoEmitterState3DL -#endif -#ifndef WGL_AMD_gpu_association -#define WGL_AMD_gpu_association 1 -GLAPI int GLAD_WGL_AMD_gpu_association; -typedef UINT (APIENTRYP PFNWGLGETGPUIDSAMDPROC)(UINT maxCount, UINT *ids); -GLAPI PFNWGLGETGPUIDSAMDPROC glad_wglGetGPUIDsAMD; -#define wglGetGPUIDsAMD glad_wglGetGPUIDsAMD -typedef INT (APIENTRYP PFNWGLGETGPUINFOAMDPROC)(UINT id, INT property, GLenum dataType, UINT size, void *data); -GLAPI PFNWGLGETGPUINFOAMDPROC glad_wglGetGPUInfoAMD; -#define wglGetGPUInfoAMD glad_wglGetGPUInfoAMD -typedef UINT (APIENTRYP PFNWGLGETCONTEXTGPUIDAMDPROC)(HGLRC hglrc); -GLAPI PFNWGLGETCONTEXTGPUIDAMDPROC glad_wglGetContextGPUIDAMD; -#define wglGetContextGPUIDAMD glad_wglGetContextGPUIDAMD -typedef HGLRC (APIENTRYP PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC)(UINT id); -GLAPI PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC glad_wglCreateAssociatedContextAMD; -#define wglCreateAssociatedContextAMD glad_wglCreateAssociatedContextAMD -typedef HGLRC (APIENTRYP PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC)(UINT id, HGLRC hShareContext, const int *attribList); -GLAPI PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC glad_wglCreateAssociatedContextAttribsAMD; -#define wglCreateAssociatedContextAttribsAMD glad_wglCreateAssociatedContextAttribsAMD -typedef BOOL (APIENTRYP PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC)(HGLRC hglrc); -GLAPI PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC glad_wglDeleteAssociatedContextAMD; -#define wglDeleteAssociatedContextAMD glad_wglDeleteAssociatedContextAMD -typedef BOOL (APIENTRYP PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC)(HGLRC hglrc); -GLAPI PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC glad_wglMakeAssociatedContextCurrentAMD; -#define wglMakeAssociatedContextCurrentAMD glad_wglMakeAssociatedContextCurrentAMD -typedef HGLRC (APIENTRYP PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC)(void); -GLAPI PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC glad_wglGetCurrentAssociatedContextAMD; -#define wglGetCurrentAssociatedContextAMD glad_wglGetCurrentAssociatedContextAMD -typedef VOID (APIENTRYP PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC)(HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC glad_wglBlitContextFramebufferAMD; -#define wglBlitContextFramebufferAMD glad_wglBlitContextFramebufferAMD -#endif -#ifndef WGL_ARB_buffer_region -#define WGL_ARB_buffer_region 1 -GLAPI int GLAD_WGL_ARB_buffer_region; -typedef HANDLE (APIENTRYP PFNWGLCREATEBUFFERREGIONARBPROC)(HDC hDC, int iLayerPlane, UINT uType); -GLAPI PFNWGLCREATEBUFFERREGIONARBPROC glad_wglCreateBufferRegionARB; -#define wglCreateBufferRegionARB glad_wglCreateBufferRegionARB -typedef VOID (APIENTRYP PFNWGLDELETEBUFFERREGIONARBPROC)(HANDLE hRegion); -GLAPI PFNWGLDELETEBUFFERREGIONARBPROC glad_wglDeleteBufferRegionARB; -#define wglDeleteBufferRegionARB glad_wglDeleteBufferRegionARB -typedef BOOL (APIENTRYP PFNWGLSAVEBUFFERREGIONARBPROC)(HANDLE hRegion, int x, int y, int width, int height); -GLAPI PFNWGLSAVEBUFFERREGIONARBPROC glad_wglSaveBufferRegionARB; -#define wglSaveBufferRegionARB glad_wglSaveBufferRegionARB -typedef BOOL (APIENTRYP PFNWGLRESTOREBUFFERREGIONARBPROC)(HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); -GLAPI PFNWGLRESTOREBUFFERREGIONARBPROC glad_wglRestoreBufferRegionARB; -#define wglRestoreBufferRegionARB glad_wglRestoreBufferRegionARB -#endif -#ifndef WGL_ARB_context_flush_control -#define WGL_ARB_context_flush_control 1 -GLAPI int GLAD_WGL_ARB_context_flush_control; -#endif -#ifndef WGL_ARB_create_context -#define WGL_ARB_create_context 1 -GLAPI int GLAD_WGL_ARB_create_context; -typedef HGLRC (APIENTRYP PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC hDC, HGLRC hShareContext, const int *attribList); -GLAPI PFNWGLCREATECONTEXTATTRIBSARBPROC glad_wglCreateContextAttribsARB; -#define wglCreateContextAttribsARB glad_wglCreateContextAttribsARB -#endif -#ifndef WGL_ARB_create_context_no_error -#define WGL_ARB_create_context_no_error 1 -GLAPI int GLAD_WGL_ARB_create_context_no_error; -#endif -#ifndef WGL_ARB_create_context_profile -#define WGL_ARB_create_context_profile 1 -GLAPI int GLAD_WGL_ARB_create_context_profile; -#endif -#ifndef WGL_ARB_create_context_robustness -#define WGL_ARB_create_context_robustness 1 -GLAPI int GLAD_WGL_ARB_create_context_robustness; -#endif -#ifndef WGL_ARB_extensions_string -#define WGL_ARB_extensions_string 1 -GLAPI int GLAD_WGL_ARB_extensions_string; -typedef const char * (APIENTRYP PFNWGLGETEXTENSIONSSTRINGARBPROC)(HDC hdc); -GLAPI PFNWGLGETEXTENSIONSSTRINGARBPROC glad_wglGetExtensionsStringARB; -#define wglGetExtensionsStringARB glad_wglGetExtensionsStringARB -#endif -#ifndef WGL_ARB_framebuffer_sRGB -#define WGL_ARB_framebuffer_sRGB 1 -GLAPI int GLAD_WGL_ARB_framebuffer_sRGB; -#endif -#ifndef WGL_ARB_make_current_read -#define WGL_ARB_make_current_read 1 -GLAPI int GLAD_WGL_ARB_make_current_read; -typedef BOOL (APIENTRYP PFNWGLMAKECONTEXTCURRENTARBPROC)(HDC hDrawDC, HDC hReadDC, HGLRC hglrc); -GLAPI PFNWGLMAKECONTEXTCURRENTARBPROC glad_wglMakeContextCurrentARB; -#define wglMakeContextCurrentARB glad_wglMakeContextCurrentARB -typedef HDC (APIENTRYP PFNWGLGETCURRENTREADDCARBPROC)(void); -GLAPI PFNWGLGETCURRENTREADDCARBPROC glad_wglGetCurrentReadDCARB; -#define wglGetCurrentReadDCARB glad_wglGetCurrentReadDCARB -#endif -#ifndef WGL_ARB_multisample -#define WGL_ARB_multisample 1 -GLAPI int GLAD_WGL_ARB_multisample; -#endif -#ifndef WGL_ARB_pbuffer -#define WGL_ARB_pbuffer 1 -GLAPI int GLAD_WGL_ARB_pbuffer; -typedef HPBUFFERARB (APIENTRYP PFNWGLCREATEPBUFFERARBPROC)(HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); -GLAPI PFNWGLCREATEPBUFFERARBPROC glad_wglCreatePbufferARB; -#define wglCreatePbufferARB glad_wglCreatePbufferARB -typedef HDC (APIENTRYP PFNWGLGETPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer); -GLAPI PFNWGLGETPBUFFERDCARBPROC glad_wglGetPbufferDCARB; -#define wglGetPbufferDCARB glad_wglGetPbufferDCARB -typedef int (APIENTRYP PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer, HDC hDC); -GLAPI PFNWGLRELEASEPBUFFERDCARBPROC glad_wglReleasePbufferDCARB; -#define wglReleasePbufferDCARB glad_wglReleasePbufferDCARB -typedef BOOL (APIENTRYP PFNWGLDESTROYPBUFFERARBPROC)(HPBUFFERARB hPbuffer); -GLAPI PFNWGLDESTROYPBUFFERARBPROC glad_wglDestroyPbufferARB; -#define wglDestroyPbufferARB glad_wglDestroyPbufferARB -typedef BOOL (APIENTRYP PFNWGLQUERYPBUFFERARBPROC)(HPBUFFERARB hPbuffer, int iAttribute, int *piValue); -GLAPI PFNWGLQUERYPBUFFERARBPROC glad_wglQueryPbufferARB; -#define wglQueryPbufferARB glad_wglQueryPbufferARB -#endif -#ifndef WGL_ARB_pixel_format -#define WGL_ARB_pixel_format 1 -GLAPI int GLAD_WGL_ARB_pixel_format; -typedef BOOL (APIENTRYP PFNWGLGETPIXELFORMATATTRIBIVARBPROC)(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues); -GLAPI PFNWGLGETPIXELFORMATATTRIBIVARBPROC glad_wglGetPixelFormatAttribivARB; -#define wglGetPixelFormatAttribivARB glad_wglGetPixelFormatAttribivARB -typedef BOOL (APIENTRYP PFNWGLGETPIXELFORMATATTRIBFVARBPROC)(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues); -GLAPI PFNWGLGETPIXELFORMATATTRIBFVARBPROC glad_wglGetPixelFormatAttribfvARB; -#define wglGetPixelFormatAttribfvARB glad_wglGetPixelFormatAttribfvARB -typedef BOOL (APIENTRYP PFNWGLCHOOSEPIXELFORMATARBPROC)(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -GLAPI PFNWGLCHOOSEPIXELFORMATARBPROC glad_wglChoosePixelFormatARB; -#define wglChoosePixelFormatARB glad_wglChoosePixelFormatARB -#endif -#ifndef WGL_ARB_pixel_format_float -#define WGL_ARB_pixel_format_float 1 -GLAPI int GLAD_WGL_ARB_pixel_format_float; -#endif -#ifndef WGL_ARB_render_texture -#define WGL_ARB_render_texture 1 -GLAPI int GLAD_WGL_ARB_render_texture; -typedef BOOL (APIENTRYP PFNWGLBINDTEXIMAGEARBPROC)(HPBUFFERARB hPbuffer, int iBuffer); -GLAPI PFNWGLBINDTEXIMAGEARBPROC glad_wglBindTexImageARB; -#define wglBindTexImageARB glad_wglBindTexImageARB -typedef BOOL (APIENTRYP PFNWGLRELEASETEXIMAGEARBPROC)(HPBUFFERARB hPbuffer, int iBuffer); -GLAPI PFNWGLRELEASETEXIMAGEARBPROC glad_wglReleaseTexImageARB; -#define wglReleaseTexImageARB glad_wglReleaseTexImageARB -typedef BOOL (APIENTRYP PFNWGLSETPBUFFERATTRIBARBPROC)(HPBUFFERARB hPbuffer, const int *piAttribList); -GLAPI PFNWGLSETPBUFFERATTRIBARBPROC glad_wglSetPbufferAttribARB; -#define wglSetPbufferAttribARB glad_wglSetPbufferAttribARB -#endif -#ifndef WGL_ARB_robustness_application_isolation -#define WGL_ARB_robustness_application_isolation 1 -GLAPI int GLAD_WGL_ARB_robustness_application_isolation; -#endif -#ifndef WGL_ARB_robustness_share_group_isolation -#define WGL_ARB_robustness_share_group_isolation 1 -GLAPI int GLAD_WGL_ARB_robustness_share_group_isolation; -#endif -#ifndef WGL_ATI_pixel_format_float -#define WGL_ATI_pixel_format_float 1 -GLAPI int GLAD_WGL_ATI_pixel_format_float; -#endif -#ifndef WGL_ATI_render_texture_rectangle -#define WGL_ATI_render_texture_rectangle 1 -GLAPI int GLAD_WGL_ATI_render_texture_rectangle; -#endif -#ifndef WGL_EXT_colorspace -#define WGL_EXT_colorspace 1 -GLAPI int GLAD_WGL_EXT_colorspace; -#endif -#ifndef WGL_EXT_create_context_es2_profile -#define WGL_EXT_create_context_es2_profile 1 -GLAPI int GLAD_WGL_EXT_create_context_es2_profile; -#endif -#ifndef WGL_EXT_create_context_es_profile -#define WGL_EXT_create_context_es_profile 1 -GLAPI int GLAD_WGL_EXT_create_context_es_profile; -#endif -#ifndef WGL_EXT_depth_float -#define WGL_EXT_depth_float 1 -GLAPI int GLAD_WGL_EXT_depth_float; -#endif -#ifndef WGL_EXT_display_color_table -#define WGL_EXT_display_color_table 1 -GLAPI int GLAD_WGL_EXT_display_color_table; -typedef GLboolean (APIENTRYP PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC)(GLushort id); -GLAPI PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC glad_wglCreateDisplayColorTableEXT; -#define wglCreateDisplayColorTableEXT glad_wglCreateDisplayColorTableEXT -typedef GLboolean (APIENTRYP PFNWGLLOADDISPLAYCOLORTABLEEXTPROC)(const GLushort *table, GLuint length); -GLAPI PFNWGLLOADDISPLAYCOLORTABLEEXTPROC glad_wglLoadDisplayColorTableEXT; -#define wglLoadDisplayColorTableEXT glad_wglLoadDisplayColorTableEXT -typedef GLboolean (APIENTRYP PFNWGLBINDDISPLAYCOLORTABLEEXTPROC)(GLushort id); -GLAPI PFNWGLBINDDISPLAYCOLORTABLEEXTPROC glad_wglBindDisplayColorTableEXT; -#define wglBindDisplayColorTableEXT glad_wglBindDisplayColorTableEXT -typedef VOID (APIENTRYP PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC)(GLushort id); -GLAPI PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC glad_wglDestroyDisplayColorTableEXT; -#define wglDestroyDisplayColorTableEXT glad_wglDestroyDisplayColorTableEXT -#endif -#ifndef WGL_EXT_extensions_string -#define WGL_EXT_extensions_string 1 -GLAPI int GLAD_WGL_EXT_extensions_string; -typedef const char * (APIENTRYP PFNWGLGETEXTENSIONSSTRINGEXTPROC)(void); -GLAPI PFNWGLGETEXTENSIONSSTRINGEXTPROC glad_wglGetExtensionsStringEXT; -#define wglGetExtensionsStringEXT glad_wglGetExtensionsStringEXT -#endif -#ifndef WGL_EXT_framebuffer_sRGB -#define WGL_EXT_framebuffer_sRGB 1 -GLAPI int GLAD_WGL_EXT_framebuffer_sRGB; -#endif -#ifndef WGL_EXT_make_current_read -#define WGL_EXT_make_current_read 1 -GLAPI int GLAD_WGL_EXT_make_current_read; -typedef BOOL (APIENTRYP PFNWGLMAKECONTEXTCURRENTEXTPROC)(HDC hDrawDC, HDC hReadDC, HGLRC hglrc); -GLAPI PFNWGLMAKECONTEXTCURRENTEXTPROC glad_wglMakeContextCurrentEXT; -#define wglMakeContextCurrentEXT glad_wglMakeContextCurrentEXT -typedef HDC (APIENTRYP PFNWGLGETCURRENTREADDCEXTPROC)(void); -GLAPI PFNWGLGETCURRENTREADDCEXTPROC glad_wglGetCurrentReadDCEXT; -#define wglGetCurrentReadDCEXT glad_wglGetCurrentReadDCEXT -#endif -#ifndef WGL_EXT_multisample -#define WGL_EXT_multisample 1 -GLAPI int GLAD_WGL_EXT_multisample; -#endif -#ifndef WGL_EXT_pbuffer -#define WGL_EXT_pbuffer 1 -GLAPI int GLAD_WGL_EXT_pbuffer; -typedef HPBUFFEREXT (APIENTRYP PFNWGLCREATEPBUFFEREXTPROC)(HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); -GLAPI PFNWGLCREATEPBUFFEREXTPROC glad_wglCreatePbufferEXT; -#define wglCreatePbufferEXT glad_wglCreatePbufferEXT -typedef HDC (APIENTRYP PFNWGLGETPBUFFERDCEXTPROC)(HPBUFFEREXT hPbuffer); -GLAPI PFNWGLGETPBUFFERDCEXTPROC glad_wglGetPbufferDCEXT; -#define wglGetPbufferDCEXT glad_wglGetPbufferDCEXT -typedef int (APIENTRYP PFNWGLRELEASEPBUFFERDCEXTPROC)(HPBUFFEREXT hPbuffer, HDC hDC); -GLAPI PFNWGLRELEASEPBUFFERDCEXTPROC glad_wglReleasePbufferDCEXT; -#define wglReleasePbufferDCEXT glad_wglReleasePbufferDCEXT -typedef BOOL (APIENTRYP PFNWGLDESTROYPBUFFEREXTPROC)(HPBUFFEREXT hPbuffer); -GLAPI PFNWGLDESTROYPBUFFEREXTPROC glad_wglDestroyPbufferEXT; -#define wglDestroyPbufferEXT glad_wglDestroyPbufferEXT -typedef BOOL (APIENTRYP PFNWGLQUERYPBUFFEREXTPROC)(HPBUFFEREXT hPbuffer, int iAttribute, int *piValue); -GLAPI PFNWGLQUERYPBUFFEREXTPROC glad_wglQueryPbufferEXT; -#define wglQueryPbufferEXT glad_wglQueryPbufferEXT -#endif -#ifndef WGL_EXT_pixel_format -#define WGL_EXT_pixel_format 1 -GLAPI int GLAD_WGL_EXT_pixel_format; -typedef BOOL (APIENTRYP PFNWGLGETPIXELFORMATATTRIBIVEXTPROC)(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues); -GLAPI PFNWGLGETPIXELFORMATATTRIBIVEXTPROC glad_wglGetPixelFormatAttribivEXT; -#define wglGetPixelFormatAttribivEXT glad_wglGetPixelFormatAttribivEXT -typedef BOOL (APIENTRYP PFNWGLGETPIXELFORMATATTRIBFVEXTPROC)(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues); -GLAPI PFNWGLGETPIXELFORMATATTRIBFVEXTPROC glad_wglGetPixelFormatAttribfvEXT; -#define wglGetPixelFormatAttribfvEXT glad_wglGetPixelFormatAttribfvEXT -typedef BOOL (APIENTRYP PFNWGLCHOOSEPIXELFORMATEXTPROC)(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); -GLAPI PFNWGLCHOOSEPIXELFORMATEXTPROC glad_wglChoosePixelFormatEXT; -#define wglChoosePixelFormatEXT glad_wglChoosePixelFormatEXT -#endif -#ifndef WGL_EXT_pixel_format_packed_float -#define WGL_EXT_pixel_format_packed_float 1 -GLAPI int GLAD_WGL_EXT_pixel_format_packed_float; -#endif -#ifndef WGL_EXT_swap_control -#define WGL_EXT_swap_control 1 -GLAPI int GLAD_WGL_EXT_swap_control; -typedef BOOL (APIENTRYP PFNWGLSWAPINTERVALEXTPROC)(int interval); -GLAPI PFNWGLSWAPINTERVALEXTPROC glad_wglSwapIntervalEXT; -#define wglSwapIntervalEXT glad_wglSwapIntervalEXT -typedef int (APIENTRYP PFNWGLGETSWAPINTERVALEXTPROC)(void); -GLAPI PFNWGLGETSWAPINTERVALEXTPROC glad_wglGetSwapIntervalEXT; -#define wglGetSwapIntervalEXT glad_wglGetSwapIntervalEXT -#endif -#ifndef WGL_EXT_swap_control_tear -#define WGL_EXT_swap_control_tear 1 -GLAPI int GLAD_WGL_EXT_swap_control_tear; -#endif -#ifndef WGL_I3D_digital_video_control -#define WGL_I3D_digital_video_control 1 -GLAPI int GLAD_WGL_I3D_digital_video_control; -typedef BOOL (APIENTRYP PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC)(HDC hDC, int iAttribute, int *piValue); -GLAPI PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC glad_wglGetDigitalVideoParametersI3D; -#define wglGetDigitalVideoParametersI3D glad_wglGetDigitalVideoParametersI3D -typedef BOOL (APIENTRYP PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC)(HDC hDC, int iAttribute, const int *piValue); -GLAPI PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC glad_wglSetDigitalVideoParametersI3D; -#define wglSetDigitalVideoParametersI3D glad_wglSetDigitalVideoParametersI3D -#endif -#ifndef WGL_I3D_gamma -#define WGL_I3D_gamma 1 -GLAPI int GLAD_WGL_I3D_gamma; -typedef BOOL (APIENTRYP PFNWGLGETGAMMATABLEPARAMETERSI3DPROC)(HDC hDC, int iAttribute, int *piValue); -GLAPI PFNWGLGETGAMMATABLEPARAMETERSI3DPROC glad_wglGetGammaTableParametersI3D; -#define wglGetGammaTableParametersI3D glad_wglGetGammaTableParametersI3D -typedef BOOL (APIENTRYP PFNWGLSETGAMMATABLEPARAMETERSI3DPROC)(HDC hDC, int iAttribute, const int *piValue); -GLAPI PFNWGLSETGAMMATABLEPARAMETERSI3DPROC glad_wglSetGammaTableParametersI3D; -#define wglSetGammaTableParametersI3D glad_wglSetGammaTableParametersI3D -typedef BOOL (APIENTRYP PFNWGLGETGAMMATABLEI3DPROC)(HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue); -GLAPI PFNWGLGETGAMMATABLEI3DPROC glad_wglGetGammaTableI3D; -#define wglGetGammaTableI3D glad_wglGetGammaTableI3D -typedef BOOL (APIENTRYP PFNWGLSETGAMMATABLEI3DPROC)(HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue); -GLAPI PFNWGLSETGAMMATABLEI3DPROC glad_wglSetGammaTableI3D; -#define wglSetGammaTableI3D glad_wglSetGammaTableI3D -#endif -#ifndef WGL_I3D_genlock -#define WGL_I3D_genlock 1 -GLAPI int GLAD_WGL_I3D_genlock; -typedef BOOL (APIENTRYP PFNWGLENABLEGENLOCKI3DPROC)(HDC hDC); -GLAPI PFNWGLENABLEGENLOCKI3DPROC glad_wglEnableGenlockI3D; -#define wglEnableGenlockI3D glad_wglEnableGenlockI3D -typedef BOOL (APIENTRYP PFNWGLDISABLEGENLOCKI3DPROC)(HDC hDC); -GLAPI PFNWGLDISABLEGENLOCKI3DPROC glad_wglDisableGenlockI3D; -#define wglDisableGenlockI3D glad_wglDisableGenlockI3D -typedef BOOL (APIENTRYP PFNWGLISENABLEDGENLOCKI3DPROC)(HDC hDC, BOOL *pFlag); -GLAPI PFNWGLISENABLEDGENLOCKI3DPROC glad_wglIsEnabledGenlockI3D; -#define wglIsEnabledGenlockI3D glad_wglIsEnabledGenlockI3D -typedef BOOL (APIENTRYP PFNWGLGENLOCKSOURCEI3DPROC)(HDC hDC, UINT uSource); -GLAPI PFNWGLGENLOCKSOURCEI3DPROC glad_wglGenlockSourceI3D; -#define wglGenlockSourceI3D glad_wglGenlockSourceI3D -typedef BOOL (APIENTRYP PFNWGLGETGENLOCKSOURCEI3DPROC)(HDC hDC, UINT *uSource); -GLAPI PFNWGLGETGENLOCKSOURCEI3DPROC glad_wglGetGenlockSourceI3D; -#define wglGetGenlockSourceI3D glad_wglGetGenlockSourceI3D -typedef BOOL (APIENTRYP PFNWGLGENLOCKSOURCEEDGEI3DPROC)(HDC hDC, UINT uEdge); -GLAPI PFNWGLGENLOCKSOURCEEDGEI3DPROC glad_wglGenlockSourceEdgeI3D; -#define wglGenlockSourceEdgeI3D glad_wglGenlockSourceEdgeI3D -typedef BOOL (APIENTRYP PFNWGLGETGENLOCKSOURCEEDGEI3DPROC)(HDC hDC, UINT *uEdge); -GLAPI PFNWGLGETGENLOCKSOURCEEDGEI3DPROC glad_wglGetGenlockSourceEdgeI3D; -#define wglGetGenlockSourceEdgeI3D glad_wglGetGenlockSourceEdgeI3D -typedef BOOL (APIENTRYP PFNWGLGENLOCKSAMPLERATEI3DPROC)(HDC hDC, UINT uRate); -GLAPI PFNWGLGENLOCKSAMPLERATEI3DPROC glad_wglGenlockSampleRateI3D; -#define wglGenlockSampleRateI3D glad_wglGenlockSampleRateI3D -typedef BOOL (APIENTRYP PFNWGLGETGENLOCKSAMPLERATEI3DPROC)(HDC hDC, UINT *uRate); -GLAPI PFNWGLGETGENLOCKSAMPLERATEI3DPROC glad_wglGetGenlockSampleRateI3D; -#define wglGetGenlockSampleRateI3D glad_wglGetGenlockSampleRateI3D -typedef BOOL (APIENTRYP PFNWGLGENLOCKSOURCEDELAYI3DPROC)(HDC hDC, UINT uDelay); -GLAPI PFNWGLGENLOCKSOURCEDELAYI3DPROC glad_wglGenlockSourceDelayI3D; -#define wglGenlockSourceDelayI3D glad_wglGenlockSourceDelayI3D -typedef BOOL (APIENTRYP PFNWGLGETGENLOCKSOURCEDELAYI3DPROC)(HDC hDC, UINT *uDelay); -GLAPI PFNWGLGETGENLOCKSOURCEDELAYI3DPROC glad_wglGetGenlockSourceDelayI3D; -#define wglGetGenlockSourceDelayI3D glad_wglGetGenlockSourceDelayI3D -typedef BOOL (APIENTRYP PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC)(HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay); -GLAPI PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC glad_wglQueryGenlockMaxSourceDelayI3D; -#define wglQueryGenlockMaxSourceDelayI3D glad_wglQueryGenlockMaxSourceDelayI3D -#endif -#ifndef WGL_I3D_image_buffer -#define WGL_I3D_image_buffer 1 -GLAPI int GLAD_WGL_I3D_image_buffer; -typedef LPVOID (APIENTRYP PFNWGLCREATEIMAGEBUFFERI3DPROC)(HDC hDC, DWORD dwSize, UINT uFlags); -GLAPI PFNWGLCREATEIMAGEBUFFERI3DPROC glad_wglCreateImageBufferI3D; -#define wglCreateImageBufferI3D glad_wglCreateImageBufferI3D -typedef BOOL (APIENTRYP PFNWGLDESTROYIMAGEBUFFERI3DPROC)(HDC hDC, LPVOID pAddress); -GLAPI PFNWGLDESTROYIMAGEBUFFERI3DPROC glad_wglDestroyImageBufferI3D; -#define wglDestroyImageBufferI3D glad_wglDestroyImageBufferI3D -typedef BOOL (APIENTRYP PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC)(HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count); -GLAPI PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC glad_wglAssociateImageBufferEventsI3D; -#define wglAssociateImageBufferEventsI3D glad_wglAssociateImageBufferEventsI3D -typedef BOOL (APIENTRYP PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC)(HDC hDC, const LPVOID *pAddress, UINT count); -GLAPI PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC glad_wglReleaseImageBufferEventsI3D; -#define wglReleaseImageBufferEventsI3D glad_wglReleaseImageBufferEventsI3D -#endif -#ifndef WGL_I3D_swap_frame_lock -#define WGL_I3D_swap_frame_lock 1 -GLAPI int GLAD_WGL_I3D_swap_frame_lock; -typedef BOOL (APIENTRYP PFNWGLENABLEFRAMELOCKI3DPROC)(void); -GLAPI PFNWGLENABLEFRAMELOCKI3DPROC glad_wglEnableFrameLockI3D; -#define wglEnableFrameLockI3D glad_wglEnableFrameLockI3D -typedef BOOL (APIENTRYP PFNWGLDISABLEFRAMELOCKI3DPROC)(void); -GLAPI PFNWGLDISABLEFRAMELOCKI3DPROC glad_wglDisableFrameLockI3D; -#define wglDisableFrameLockI3D glad_wglDisableFrameLockI3D -typedef BOOL (APIENTRYP PFNWGLISENABLEDFRAMELOCKI3DPROC)(BOOL *pFlag); -GLAPI PFNWGLISENABLEDFRAMELOCKI3DPROC glad_wglIsEnabledFrameLockI3D; -#define wglIsEnabledFrameLockI3D glad_wglIsEnabledFrameLockI3D -typedef BOOL (APIENTRYP PFNWGLQUERYFRAMELOCKMASTERI3DPROC)(BOOL *pFlag); -GLAPI PFNWGLQUERYFRAMELOCKMASTERI3DPROC glad_wglQueryFrameLockMasterI3D; -#define wglQueryFrameLockMasterI3D glad_wglQueryFrameLockMasterI3D -#endif -#ifndef WGL_I3D_swap_frame_usage -#define WGL_I3D_swap_frame_usage 1 -GLAPI int GLAD_WGL_I3D_swap_frame_usage; -typedef BOOL (APIENTRYP PFNWGLGETFRAMEUSAGEI3DPROC)(float *pUsage); -GLAPI PFNWGLGETFRAMEUSAGEI3DPROC glad_wglGetFrameUsageI3D; -#define wglGetFrameUsageI3D glad_wglGetFrameUsageI3D -typedef BOOL (APIENTRYP PFNWGLBEGINFRAMETRACKINGI3DPROC)(void); -GLAPI PFNWGLBEGINFRAMETRACKINGI3DPROC glad_wglBeginFrameTrackingI3D; -#define wglBeginFrameTrackingI3D glad_wglBeginFrameTrackingI3D -typedef BOOL (APIENTRYP PFNWGLENDFRAMETRACKINGI3DPROC)(void); -GLAPI PFNWGLENDFRAMETRACKINGI3DPROC glad_wglEndFrameTrackingI3D; -#define wglEndFrameTrackingI3D glad_wglEndFrameTrackingI3D -typedef BOOL (APIENTRYP PFNWGLQUERYFRAMETRACKINGI3DPROC)(DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); -GLAPI PFNWGLQUERYFRAMETRACKINGI3DPROC glad_wglQueryFrameTrackingI3D; -#define wglQueryFrameTrackingI3D glad_wglQueryFrameTrackingI3D -#endif -#ifndef WGL_NV_DX_interop -#define WGL_NV_DX_interop 1 -GLAPI int GLAD_WGL_NV_DX_interop; -typedef BOOL (APIENTRYP PFNWGLDXSETRESOURCESHAREHANDLENVPROC)(void *dxObject, HANDLE shareHandle); -GLAPI PFNWGLDXSETRESOURCESHAREHANDLENVPROC glad_wglDXSetResourceShareHandleNV; -#define wglDXSetResourceShareHandleNV glad_wglDXSetResourceShareHandleNV -typedef HANDLE (APIENTRYP PFNWGLDXOPENDEVICENVPROC)(void *dxDevice); -GLAPI PFNWGLDXOPENDEVICENVPROC glad_wglDXOpenDeviceNV; -#define wglDXOpenDeviceNV glad_wglDXOpenDeviceNV -typedef BOOL (APIENTRYP PFNWGLDXCLOSEDEVICENVPROC)(HANDLE hDevice); -GLAPI PFNWGLDXCLOSEDEVICENVPROC glad_wglDXCloseDeviceNV; -#define wglDXCloseDeviceNV glad_wglDXCloseDeviceNV -typedef HANDLE (APIENTRYP PFNWGLDXREGISTEROBJECTNVPROC)(HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access); -GLAPI PFNWGLDXREGISTEROBJECTNVPROC glad_wglDXRegisterObjectNV; -#define wglDXRegisterObjectNV glad_wglDXRegisterObjectNV -typedef BOOL (APIENTRYP PFNWGLDXUNREGISTEROBJECTNVPROC)(HANDLE hDevice, HANDLE hObject); -GLAPI PFNWGLDXUNREGISTEROBJECTNVPROC glad_wglDXUnregisterObjectNV; -#define wglDXUnregisterObjectNV glad_wglDXUnregisterObjectNV -typedef BOOL (APIENTRYP PFNWGLDXOBJECTACCESSNVPROC)(HANDLE hObject, GLenum access); -GLAPI PFNWGLDXOBJECTACCESSNVPROC glad_wglDXObjectAccessNV; -#define wglDXObjectAccessNV glad_wglDXObjectAccessNV -typedef BOOL (APIENTRYP PFNWGLDXLOCKOBJECTSNVPROC)(HANDLE hDevice, GLint count, HANDLE *hObjects); -GLAPI PFNWGLDXLOCKOBJECTSNVPROC glad_wglDXLockObjectsNV; -#define wglDXLockObjectsNV glad_wglDXLockObjectsNV -typedef BOOL (APIENTRYP PFNWGLDXUNLOCKOBJECTSNVPROC)(HANDLE hDevice, GLint count, HANDLE *hObjects); -GLAPI PFNWGLDXUNLOCKOBJECTSNVPROC glad_wglDXUnlockObjectsNV; -#define wglDXUnlockObjectsNV glad_wglDXUnlockObjectsNV -#endif -#ifndef WGL_NV_DX_interop2 -#define WGL_NV_DX_interop2 1 -GLAPI int GLAD_WGL_NV_DX_interop2; -#endif -#ifndef WGL_NV_copy_image -#define WGL_NV_copy_image 1 -GLAPI int GLAD_WGL_NV_copy_image; -typedef BOOL (APIENTRYP PFNWGLCOPYIMAGESUBDATANVPROC)(HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); -GLAPI PFNWGLCOPYIMAGESUBDATANVPROC glad_wglCopyImageSubDataNV; -#define wglCopyImageSubDataNV glad_wglCopyImageSubDataNV -#endif -#ifndef WGL_NV_delay_before_swap -#define WGL_NV_delay_before_swap 1 -GLAPI int GLAD_WGL_NV_delay_before_swap; -typedef BOOL (APIENTRYP PFNWGLDELAYBEFORESWAPNVPROC)(HDC hDC, GLfloat seconds); -GLAPI PFNWGLDELAYBEFORESWAPNVPROC glad_wglDelayBeforeSwapNV; -#define wglDelayBeforeSwapNV glad_wglDelayBeforeSwapNV -#endif -#ifndef WGL_NV_float_buffer -#define WGL_NV_float_buffer 1 -GLAPI int GLAD_WGL_NV_float_buffer; -#endif -#ifndef WGL_NV_gpu_affinity -#define WGL_NV_gpu_affinity 1 -GLAPI int GLAD_WGL_NV_gpu_affinity; -typedef BOOL (APIENTRYP PFNWGLENUMGPUSNVPROC)(UINT iGpuIndex, HGPUNV *phGpu); -GLAPI PFNWGLENUMGPUSNVPROC glad_wglEnumGpusNV; -#define wglEnumGpusNV glad_wglEnumGpusNV -typedef BOOL (APIENTRYP PFNWGLENUMGPUDEVICESNVPROC)(HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice); -GLAPI PFNWGLENUMGPUDEVICESNVPROC glad_wglEnumGpuDevicesNV; -#define wglEnumGpuDevicesNV glad_wglEnumGpuDevicesNV -typedef HDC (APIENTRYP PFNWGLCREATEAFFINITYDCNVPROC)(const HGPUNV *phGpuList); -GLAPI PFNWGLCREATEAFFINITYDCNVPROC glad_wglCreateAffinityDCNV; -#define wglCreateAffinityDCNV glad_wglCreateAffinityDCNV -typedef BOOL (APIENTRYP PFNWGLENUMGPUSFROMAFFINITYDCNVPROC)(HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu); -GLAPI PFNWGLENUMGPUSFROMAFFINITYDCNVPROC glad_wglEnumGpusFromAffinityDCNV; -#define wglEnumGpusFromAffinityDCNV glad_wglEnumGpusFromAffinityDCNV -typedef BOOL (APIENTRYP PFNWGLDELETEDCNVPROC)(HDC hdc); -GLAPI PFNWGLDELETEDCNVPROC glad_wglDeleteDCNV; -#define wglDeleteDCNV glad_wglDeleteDCNV -#endif -#ifndef WGL_NV_multigpu_context -#define WGL_NV_multigpu_context 1 -GLAPI int GLAD_WGL_NV_multigpu_context; -#endif -#ifndef WGL_NV_multisample_coverage -#define WGL_NV_multisample_coverage 1 -GLAPI int GLAD_WGL_NV_multisample_coverage; -#endif -#ifndef WGL_NV_present_video -#define WGL_NV_present_video 1 -GLAPI int GLAD_WGL_NV_present_video; -typedef int (APIENTRYP PFNWGLENUMERATEVIDEODEVICESNVPROC)(HDC hDc, HVIDEOOUTPUTDEVICENV *phDeviceList); -GLAPI PFNWGLENUMERATEVIDEODEVICESNVPROC glad_wglEnumerateVideoDevicesNV; -#define wglEnumerateVideoDevicesNV glad_wglEnumerateVideoDevicesNV -typedef BOOL (APIENTRYP PFNWGLBINDVIDEODEVICENVPROC)(HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList); -GLAPI PFNWGLBINDVIDEODEVICENVPROC glad_wglBindVideoDeviceNV; -#define wglBindVideoDeviceNV glad_wglBindVideoDeviceNV -typedef BOOL (APIENTRYP PFNWGLQUERYCURRENTCONTEXTNVPROC)(int iAttribute, int *piValue); -GLAPI PFNWGLQUERYCURRENTCONTEXTNVPROC glad_wglQueryCurrentContextNV; -#define wglQueryCurrentContextNV glad_wglQueryCurrentContextNV -#endif -#ifndef WGL_NV_render_depth_texture -#define WGL_NV_render_depth_texture 1 -GLAPI int GLAD_WGL_NV_render_depth_texture; -#endif -#ifndef WGL_NV_render_texture_rectangle -#define WGL_NV_render_texture_rectangle 1 -GLAPI int GLAD_WGL_NV_render_texture_rectangle; -#endif -#ifndef WGL_NV_swap_group -#define WGL_NV_swap_group 1 -GLAPI int GLAD_WGL_NV_swap_group; -typedef BOOL (APIENTRYP PFNWGLJOINSWAPGROUPNVPROC)(HDC hDC, GLuint group); -GLAPI PFNWGLJOINSWAPGROUPNVPROC glad_wglJoinSwapGroupNV; -#define wglJoinSwapGroupNV glad_wglJoinSwapGroupNV -typedef BOOL (APIENTRYP PFNWGLBINDSWAPBARRIERNVPROC)(GLuint group, GLuint barrier); -GLAPI PFNWGLBINDSWAPBARRIERNVPROC glad_wglBindSwapBarrierNV; -#define wglBindSwapBarrierNV glad_wglBindSwapBarrierNV -typedef BOOL (APIENTRYP PFNWGLQUERYSWAPGROUPNVPROC)(HDC hDC, GLuint *group, GLuint *barrier); -GLAPI PFNWGLQUERYSWAPGROUPNVPROC glad_wglQuerySwapGroupNV; -#define wglQuerySwapGroupNV glad_wglQuerySwapGroupNV -typedef BOOL (APIENTRYP PFNWGLQUERYMAXSWAPGROUPSNVPROC)(HDC hDC, GLuint *maxGroups, GLuint *maxBarriers); -GLAPI PFNWGLQUERYMAXSWAPGROUPSNVPROC glad_wglQueryMaxSwapGroupsNV; -#define wglQueryMaxSwapGroupsNV glad_wglQueryMaxSwapGroupsNV -typedef BOOL (APIENTRYP PFNWGLQUERYFRAMECOUNTNVPROC)(HDC hDC, GLuint *count); -GLAPI PFNWGLQUERYFRAMECOUNTNVPROC glad_wglQueryFrameCountNV; -#define wglQueryFrameCountNV glad_wglQueryFrameCountNV -typedef BOOL (APIENTRYP PFNWGLRESETFRAMECOUNTNVPROC)(HDC hDC); -GLAPI PFNWGLRESETFRAMECOUNTNVPROC glad_wglResetFrameCountNV; -#define wglResetFrameCountNV glad_wglResetFrameCountNV -#endif -#ifndef WGL_NV_vertex_array_range -#define WGL_NV_vertex_array_range 1 -GLAPI int GLAD_WGL_NV_vertex_array_range; -typedef void * (APIENTRYP PFNWGLALLOCATEMEMORYNVPROC)(GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); -GLAPI PFNWGLALLOCATEMEMORYNVPROC glad_wglAllocateMemoryNV; -#define wglAllocateMemoryNV glad_wglAllocateMemoryNV -typedef void (APIENTRYP PFNWGLFREEMEMORYNVPROC)(void *pointer); -GLAPI PFNWGLFREEMEMORYNVPROC glad_wglFreeMemoryNV; -#define wglFreeMemoryNV glad_wglFreeMemoryNV -#endif -#ifndef WGL_NV_video_capture -#define WGL_NV_video_capture 1 -GLAPI int GLAD_WGL_NV_video_capture; -typedef BOOL (APIENTRYP PFNWGLBINDVIDEOCAPTUREDEVICENVPROC)(UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice); -GLAPI PFNWGLBINDVIDEOCAPTUREDEVICENVPROC glad_wglBindVideoCaptureDeviceNV; -#define wglBindVideoCaptureDeviceNV glad_wglBindVideoCaptureDeviceNV -typedef UINT (APIENTRYP PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC)(HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList); -GLAPI PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC glad_wglEnumerateVideoCaptureDevicesNV; -#define wglEnumerateVideoCaptureDevicesNV glad_wglEnumerateVideoCaptureDevicesNV -typedef BOOL (APIENTRYP PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC)(HDC hDc, HVIDEOINPUTDEVICENV hDevice); -GLAPI PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC glad_wglLockVideoCaptureDeviceNV; -#define wglLockVideoCaptureDeviceNV glad_wglLockVideoCaptureDeviceNV -typedef BOOL (APIENTRYP PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC)(HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue); -GLAPI PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC glad_wglQueryVideoCaptureDeviceNV; -#define wglQueryVideoCaptureDeviceNV glad_wglQueryVideoCaptureDeviceNV -typedef BOOL (APIENTRYP PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC)(HDC hDc, HVIDEOINPUTDEVICENV hDevice); -GLAPI PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC glad_wglReleaseVideoCaptureDeviceNV; -#define wglReleaseVideoCaptureDeviceNV glad_wglReleaseVideoCaptureDeviceNV -#endif -#ifndef WGL_NV_video_output -#define WGL_NV_video_output 1 -GLAPI int GLAD_WGL_NV_video_output; -typedef BOOL (APIENTRYP PFNWGLGETVIDEODEVICENVPROC)(HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice); -GLAPI PFNWGLGETVIDEODEVICENVPROC glad_wglGetVideoDeviceNV; -#define wglGetVideoDeviceNV glad_wglGetVideoDeviceNV -typedef BOOL (APIENTRYP PFNWGLRELEASEVIDEODEVICENVPROC)(HPVIDEODEV hVideoDevice); -GLAPI PFNWGLRELEASEVIDEODEVICENVPROC glad_wglReleaseVideoDeviceNV; -#define wglReleaseVideoDeviceNV glad_wglReleaseVideoDeviceNV -typedef BOOL (APIENTRYP PFNWGLBINDVIDEOIMAGENVPROC)(HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer); -GLAPI PFNWGLBINDVIDEOIMAGENVPROC glad_wglBindVideoImageNV; -#define wglBindVideoImageNV glad_wglBindVideoImageNV -typedef BOOL (APIENTRYP PFNWGLRELEASEVIDEOIMAGENVPROC)(HPBUFFERARB hPbuffer, int iVideoBuffer); -GLAPI PFNWGLRELEASEVIDEOIMAGENVPROC glad_wglReleaseVideoImageNV; -#define wglReleaseVideoImageNV glad_wglReleaseVideoImageNV -typedef BOOL (APIENTRYP PFNWGLSENDPBUFFERTOVIDEONVPROC)(HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock); -GLAPI PFNWGLSENDPBUFFERTOVIDEONVPROC glad_wglSendPbufferToVideoNV; -#define wglSendPbufferToVideoNV glad_wglSendPbufferToVideoNV -typedef BOOL (APIENTRYP PFNWGLGETVIDEOINFONVPROC)(HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); -GLAPI PFNWGLGETVIDEOINFONVPROC glad_wglGetVideoInfoNV; -#define wglGetVideoInfoNV glad_wglGetVideoInfoNV -#endif -#ifndef WGL_OML_sync_control -#define WGL_OML_sync_control 1 -GLAPI int GLAD_WGL_OML_sync_control; -typedef BOOL (APIENTRYP PFNWGLGETSYNCVALUESOMLPROC)(HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc); -GLAPI PFNWGLGETSYNCVALUESOMLPROC glad_wglGetSyncValuesOML; -#define wglGetSyncValuesOML glad_wglGetSyncValuesOML -typedef BOOL (APIENTRYP PFNWGLGETMSCRATEOMLPROC)(HDC hdc, INT32 *numerator, INT32 *denominator); -GLAPI PFNWGLGETMSCRATEOMLPROC glad_wglGetMscRateOML; -#define wglGetMscRateOML glad_wglGetMscRateOML -typedef INT64 (APIENTRYP PFNWGLSWAPBUFFERSMSCOMLPROC)(HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); -GLAPI PFNWGLSWAPBUFFERSMSCOMLPROC glad_wglSwapBuffersMscOML; -#define wglSwapBuffersMscOML glad_wglSwapBuffersMscOML -typedef INT64 (APIENTRYP PFNWGLSWAPLAYERBUFFERSMSCOMLPROC)(HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); -GLAPI PFNWGLSWAPLAYERBUFFERSMSCOMLPROC glad_wglSwapLayerBuffersMscOML; -#define wglSwapLayerBuffersMscOML glad_wglSwapLayerBuffersMscOML -typedef BOOL (APIENTRYP PFNWGLWAITFORMSCOMLPROC)(HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc); -GLAPI PFNWGLWAITFORMSCOMLPROC glad_wglWaitForMscOML; -#define wglWaitForMscOML glad_wglWaitForMscOML -typedef BOOL (APIENTRYP PFNWGLWAITFORSBCOMLPROC)(HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc); -GLAPI PFNWGLWAITFORSBCOMLPROC glad_wglWaitForSbcOML; -#define wglWaitForSbcOML glad_wglWaitForSbcOML -#endif - -#ifdef __cplusplus -} -#endif - -#endif \ No newline at end of file diff --git a/third_party/glad/src/gl.c b/third_party/glad/src/gl.c deleted file mode 100644 index 464ab9cb..00000000 --- a/third_party/glad/src/gl.c +++ /dev/null @@ -1,11033 +0,0 @@ -/* - - OpenGL, OpenGL ES loader generated by glad 0.1.25 on Fri Jul 20 15:42:19 2018. - - Language/Generator: C/C++ - Specification: gl - APIs: gl=4.6, gles2=3.2 - Profile: core - Extensions: - GL_3DFX_multisample, - GL_3DFX_tbuffer, - GL_3DFX_texture_compression_FXT1, - GL_AMD_blend_minmax_factor, - GL_AMD_compressed_3DC_texture, - GL_AMD_compressed_ATC_texture, - GL_AMD_conservative_depth, - GL_AMD_debug_output, - GL_AMD_depth_clamp_separate, - GL_AMD_draw_buffers_blend, - GL_AMD_framebuffer_sample_positions, - GL_AMD_gcn_shader, - GL_AMD_gpu_shader_half_float, - GL_AMD_gpu_shader_int16, - GL_AMD_gpu_shader_int64, - GL_AMD_interleaved_elements, - GL_AMD_multi_draw_indirect, - GL_AMD_name_gen_delete, - GL_AMD_occlusion_query_event, - GL_AMD_performance_monitor, - GL_AMD_pinned_memory, - GL_AMD_program_binary_Z400, - GL_AMD_query_buffer_object, - GL_AMD_sample_positions, - GL_AMD_seamless_cubemap_per_texture, - GL_AMD_shader_atomic_counter_ops, - GL_AMD_shader_ballot, - GL_AMD_shader_explicit_vertex_parameter, - GL_AMD_shader_gpu_shader_half_float_fetch, - GL_AMD_shader_image_load_store_lod, - GL_AMD_shader_stencil_export, - GL_AMD_shader_trinary_minmax, - GL_AMD_sparse_texture, - GL_AMD_stencil_operation_extended, - GL_AMD_texture_gather_bias_lod, - GL_AMD_texture_texture4, - GL_AMD_transform_feedback3_lines_triangles, - GL_AMD_transform_feedback4, - GL_AMD_vertex_shader_layer, - GL_AMD_vertex_shader_tessellator, - GL_AMD_vertex_shader_viewport_index, - GL_ANDROID_extension_pack_es31a, - GL_ANGLE_depth_texture, - GL_ANGLE_framebuffer_blit, - GL_ANGLE_framebuffer_multisample, - GL_ANGLE_instanced_arrays, - GL_ANGLE_pack_reverse_row_order, - GL_ANGLE_program_binary, - GL_ANGLE_texture_compression_dxt3, - GL_ANGLE_texture_compression_dxt5, - GL_ANGLE_texture_usage, - GL_ANGLE_translated_shader_source, - GL_APPLE_aux_depth_stencil, - GL_APPLE_client_storage, - GL_APPLE_clip_distance, - GL_APPLE_color_buffer_packed_float, - GL_APPLE_copy_texture_levels, - GL_APPLE_element_array, - GL_APPLE_fence, - GL_APPLE_float_pixels, - GL_APPLE_flush_buffer_range, - GL_APPLE_framebuffer_multisample, - GL_APPLE_object_purgeable, - GL_APPLE_rgb_422, - GL_APPLE_row_bytes, - GL_APPLE_specular_vector, - GL_APPLE_sync, - GL_APPLE_texture_format_BGRA8888, - GL_APPLE_texture_max_level, - GL_APPLE_texture_packed_float, - GL_APPLE_texture_range, - GL_APPLE_transform_hint, - GL_APPLE_vertex_array_object, - GL_APPLE_vertex_array_range, - GL_APPLE_vertex_program_evaluators, - GL_APPLE_ycbcr_422, - GL_ARB_ES2_compatibility, - GL_ARB_ES3_1_compatibility, - GL_ARB_ES3_2_compatibility, - GL_ARB_ES3_compatibility, - GL_ARB_arrays_of_arrays, - GL_ARB_base_instance, - GL_ARB_bindless_texture, - GL_ARB_blend_func_extended, - GL_ARB_buffer_storage, - GL_ARB_cl_event, - GL_ARB_clear_buffer_object, - GL_ARB_clear_texture, - GL_ARB_clip_control, - GL_ARB_color_buffer_float, - GL_ARB_compatibility, - GL_ARB_compressed_texture_pixel_storage, - GL_ARB_compute_shader, - GL_ARB_compute_variable_group_size, - GL_ARB_conditional_render_inverted, - GL_ARB_conservative_depth, - GL_ARB_copy_buffer, - GL_ARB_copy_image, - GL_ARB_cull_distance, - GL_ARB_debug_output, - GL_ARB_depth_buffer_float, - GL_ARB_depth_clamp, - GL_ARB_depth_texture, - GL_ARB_derivative_control, - GL_ARB_direct_state_access, - GL_ARB_draw_buffers, - GL_ARB_draw_buffers_blend, - GL_ARB_draw_elements_base_vertex, - GL_ARB_draw_indirect, - GL_ARB_draw_instanced, - GL_ARB_enhanced_layouts, - GL_ARB_explicit_attrib_location, - GL_ARB_explicit_uniform_location, - GL_ARB_fragment_coord_conventions, - GL_ARB_fragment_layer_viewport, - GL_ARB_fragment_program, - GL_ARB_fragment_program_shadow, - GL_ARB_fragment_shader, - GL_ARB_fragment_shader_interlock, - GL_ARB_framebuffer_no_attachments, - GL_ARB_framebuffer_object, - GL_ARB_framebuffer_sRGB, - GL_ARB_geometry_shader4, - GL_ARB_get_program_binary, - GL_ARB_get_texture_sub_image, - GL_ARB_gl_spirv, - GL_ARB_gpu_shader5, - GL_ARB_gpu_shader_fp64, - GL_ARB_gpu_shader_int64, - GL_ARB_half_float_pixel, - GL_ARB_half_float_vertex, - GL_ARB_imaging, - GL_ARB_indirect_parameters, - GL_ARB_instanced_arrays, - GL_ARB_internalformat_query, - GL_ARB_internalformat_query2, - GL_ARB_invalidate_subdata, - GL_ARB_map_buffer_alignment, - GL_ARB_map_buffer_range, - GL_ARB_matrix_palette, - GL_ARB_multi_bind, - GL_ARB_multi_draw_indirect, - GL_ARB_multisample, - GL_ARB_multitexture, - GL_ARB_occlusion_query, - GL_ARB_occlusion_query2, - GL_ARB_parallel_shader_compile, - GL_ARB_pipeline_statistics_query, - GL_ARB_pixel_buffer_object, - GL_ARB_point_parameters, - GL_ARB_point_sprite, - GL_ARB_polygon_offset_clamp, - GL_ARB_post_depth_coverage, - GL_ARB_program_interface_query, - GL_ARB_provoking_vertex, - GL_ARB_query_buffer_object, - GL_ARB_robust_buffer_access_behavior, - GL_ARB_robustness, - GL_ARB_robustness_isolation, - GL_ARB_sample_locations, - GL_ARB_sample_shading, - GL_ARB_sampler_objects, - GL_ARB_seamless_cube_map, - GL_ARB_seamless_cubemap_per_texture, - GL_ARB_separate_shader_objects, - GL_ARB_shader_atomic_counter_ops, - GL_ARB_shader_atomic_counters, - GL_ARB_shader_ballot, - GL_ARB_shader_bit_encoding, - GL_ARB_shader_clock, - GL_ARB_shader_draw_parameters, - GL_ARB_shader_group_vote, - GL_ARB_shader_image_load_store, - GL_ARB_shader_image_size, - GL_ARB_shader_objects, - GL_ARB_shader_precision, - GL_ARB_shader_stencil_export, - GL_ARB_shader_storage_buffer_object, - GL_ARB_shader_subroutine, - GL_ARB_shader_texture_image_samples, - GL_ARB_shader_texture_lod, - GL_ARB_shader_viewport_layer_array, - GL_ARB_shading_language_100, - GL_ARB_shading_language_420pack, - GL_ARB_shading_language_include, - GL_ARB_shading_language_packing, - GL_ARB_shadow, - GL_ARB_shadow_ambient, - GL_ARB_sparse_buffer, - GL_ARB_sparse_texture, - GL_ARB_sparse_texture2, - GL_ARB_sparse_texture_clamp, - GL_ARB_spirv_extensions, - GL_ARB_stencil_texturing, - GL_ARB_sync, - GL_ARB_tessellation_shader, - GL_ARB_texture_barrier, - GL_ARB_texture_border_clamp, - GL_ARB_texture_buffer_object, - GL_ARB_texture_buffer_object_rgb32, - GL_ARB_texture_buffer_range, - GL_ARB_texture_compression, - GL_ARB_texture_compression_bptc, - GL_ARB_texture_compression_rgtc, - GL_ARB_texture_cube_map, - GL_ARB_texture_cube_map_array, - GL_ARB_texture_env_add, - GL_ARB_texture_env_combine, - GL_ARB_texture_env_crossbar, - GL_ARB_texture_env_dot3, - GL_ARB_texture_filter_anisotropic, - GL_ARB_texture_filter_minmax, - GL_ARB_texture_float, - GL_ARB_texture_gather, - GL_ARB_texture_mirror_clamp_to_edge, - GL_ARB_texture_mirrored_repeat, - GL_ARB_texture_multisample, - GL_ARB_texture_non_power_of_two, - GL_ARB_texture_query_levels, - GL_ARB_texture_query_lod, - GL_ARB_texture_rectangle, - GL_ARB_texture_rg, - GL_ARB_texture_rgb10_a2ui, - GL_ARB_texture_stencil8, - GL_ARB_texture_storage, - GL_ARB_texture_storage_multisample, - GL_ARB_texture_swizzle, - GL_ARB_texture_view, - GL_ARB_timer_query, - GL_ARB_transform_feedback2, - GL_ARB_transform_feedback3, - GL_ARB_transform_feedback_instanced, - GL_ARB_transform_feedback_overflow_query, - GL_ARB_transpose_matrix, - GL_ARB_uniform_buffer_object, - GL_ARB_vertex_array_bgra, - GL_ARB_vertex_array_object, - GL_ARB_vertex_attrib_64bit, - GL_ARB_vertex_attrib_binding, - GL_ARB_vertex_blend, - GL_ARB_vertex_buffer_object, - GL_ARB_vertex_program, - GL_ARB_vertex_shader, - GL_ARB_vertex_type_10f_11f_11f_rev, - GL_ARB_vertex_type_2_10_10_10_rev, - GL_ARB_viewport_array, - GL_ARB_window_pos, - GL_ARM_mali_program_binary, - GL_ARM_mali_shader_binary, - GL_ARM_rgba8, - GL_ARM_shader_framebuffer_fetch, - GL_ARM_shader_framebuffer_fetch_depth_stencil, - GL_ATI_draw_buffers, - GL_ATI_element_array, - GL_ATI_envmap_bumpmap, - GL_ATI_fragment_shader, - GL_ATI_map_object_buffer, - GL_ATI_meminfo, - GL_ATI_pixel_format_float, - GL_ATI_pn_triangles, - GL_ATI_separate_stencil, - GL_ATI_text_fragment_shader, - GL_ATI_texture_env_combine3, - GL_ATI_texture_float, - GL_ATI_texture_mirror_once, - GL_ATI_vertex_array_object, - GL_ATI_vertex_attrib_array_object, - GL_ATI_vertex_streams, - GL_DMP_program_binary, - GL_DMP_shader_binary, - GL_EXT_422_pixels, - GL_EXT_EGL_image_array, - GL_EXT_EGL_image_storage, - GL_EXT_YUV_target, - GL_EXT_abgr, - GL_EXT_base_instance, - GL_EXT_bgra, - GL_EXT_bindable_uniform, - GL_EXT_blend_color, - GL_EXT_blend_equation_separate, - GL_EXT_blend_func_extended, - GL_EXT_blend_func_separate, - GL_EXT_blend_logic_op, - GL_EXT_blend_minmax, - GL_EXT_blend_subtract, - GL_EXT_buffer_storage, - GL_EXT_clear_texture, - GL_EXT_clip_control, - GL_EXT_clip_cull_distance, - GL_EXT_clip_volume_hint, - GL_EXT_cmyka, - GL_EXT_color_buffer_float, - GL_EXT_color_buffer_half_float, - GL_EXT_color_subtable, - GL_EXT_compiled_vertex_array, - GL_EXT_conservative_depth, - GL_EXT_convolution, - GL_EXT_coordinate_frame, - GL_EXT_copy_image, - GL_EXT_copy_texture, - GL_EXT_cull_vertex, - GL_EXT_debug_label, - GL_EXT_debug_marker, - GL_EXT_depth_bounds_test, - GL_EXT_direct_state_access, - GL_EXT_discard_framebuffer, - GL_EXT_disjoint_timer_query, - GL_EXT_draw_buffers, - GL_EXT_draw_buffers2, - GL_EXT_draw_buffers_indexed, - GL_EXT_draw_elements_base_vertex, - GL_EXT_draw_instanced, - GL_EXT_draw_range_elements, - GL_EXT_draw_transform_feedback, - GL_EXT_external_buffer, - GL_EXT_float_blend, - GL_EXT_fog_coord, - GL_EXT_framebuffer_blit, - GL_EXT_framebuffer_multisample, - GL_EXT_framebuffer_multisample_blit_scaled, - GL_EXT_framebuffer_object, - GL_EXT_framebuffer_sRGB, - GL_EXT_geometry_point_size, - GL_EXT_geometry_shader, - GL_EXT_geometry_shader4, - GL_EXT_gpu_program_parameters, - GL_EXT_gpu_shader4, - GL_EXT_gpu_shader5, - GL_EXT_histogram, - GL_EXT_index_array_formats, - GL_EXT_index_func, - GL_EXT_index_material, - GL_EXT_index_texture, - GL_EXT_instanced_arrays, - GL_EXT_light_texture, - GL_EXT_map_buffer_range, - GL_EXT_memory_object, - GL_EXT_memory_object_fd, - GL_EXT_memory_object_win32, - GL_EXT_misc_attribute, - GL_EXT_multi_draw_arrays, - GL_EXT_multi_draw_indirect, - GL_EXT_multisample, - GL_EXT_multisampled_compatibility, - GL_EXT_multisampled_render_to_texture, - GL_EXT_multiview_draw_buffers, - GL_EXT_occlusion_query_boolean, - GL_EXT_packed_depth_stencil, - GL_EXT_packed_float, - GL_EXT_packed_pixels, - GL_EXT_paletted_texture, - GL_EXT_pixel_buffer_object, - GL_EXT_pixel_transform, - GL_EXT_pixel_transform_color_table, - GL_EXT_point_parameters, - GL_EXT_polygon_offset, - GL_EXT_polygon_offset_clamp, - GL_EXT_post_depth_coverage, - GL_EXT_primitive_bounding_box, - GL_EXT_protected_textures, - GL_EXT_provoking_vertex, - GL_EXT_pvrtc_sRGB, - GL_EXT_raster_multisample, - GL_EXT_read_format_bgra, - GL_EXT_render_snorm, - GL_EXT_rescale_normal, - GL_EXT_robustness, - GL_EXT_sRGB, - GL_EXT_sRGB_write_control, - GL_EXT_secondary_color, - GL_EXT_semaphore, - GL_EXT_semaphore_fd, - GL_EXT_semaphore_win32, - GL_EXT_separate_shader_objects, - GL_EXT_separate_specular_color, - GL_EXT_shader_framebuffer_fetch, - GL_EXT_shader_framebuffer_fetch_non_coherent, - GL_EXT_shader_group_vote, - GL_EXT_shader_image_load_formatted, - GL_EXT_shader_image_load_store, - GL_EXT_shader_implicit_conversions, - GL_EXT_shader_integer_mix, - GL_EXT_shader_io_blocks, - GL_EXT_shader_non_constant_global_initializers, - GL_EXT_shader_pixel_local_storage, - GL_EXT_shader_pixel_local_storage2, - GL_EXT_shader_texture_lod, - GL_EXT_shadow_funcs, - GL_EXT_shadow_samplers, - GL_EXT_shared_texture_palette, - GL_EXT_sparse_texture, - GL_EXT_sparse_texture2, - GL_EXT_stencil_clear_tag, - GL_EXT_stencil_two_side, - GL_EXT_stencil_wrap, - GL_EXT_subtexture, - GL_EXT_tessellation_point_size, - GL_EXT_tessellation_shader, - GL_EXT_texture, - GL_EXT_texture3D, - GL_EXT_texture_array, - GL_EXT_texture_border_clamp, - GL_EXT_texture_buffer, - GL_EXT_texture_buffer_object, - GL_EXT_texture_compression_astc_decode_mode, - GL_EXT_texture_compression_bptc, - GL_EXT_texture_compression_dxt1, - GL_EXT_texture_compression_latc, - GL_EXT_texture_compression_rgtc, - GL_EXT_texture_compression_s3tc, - GL_EXT_texture_compression_s3tc_srgb, - GL_EXT_texture_cube_map, - GL_EXT_texture_cube_map_array, - GL_EXT_texture_env_add, - GL_EXT_texture_env_combine, - GL_EXT_texture_env_dot3, - GL_EXT_texture_filter_anisotropic, - GL_EXT_texture_filter_minmax, - GL_EXT_texture_format_BGRA8888, - GL_EXT_texture_format_sRGB_override, - GL_EXT_texture_integer, - GL_EXT_texture_lod_bias, - GL_EXT_texture_mirror_clamp, - GL_EXT_texture_mirror_clamp_to_edge, - GL_EXT_texture_norm16, - GL_EXT_texture_object, - GL_EXT_texture_perturb_normal, - GL_EXT_texture_rg, - GL_EXT_texture_sRGB, - GL_EXT_texture_sRGB_R8, - GL_EXT_texture_sRGB_RG8, - GL_EXT_texture_sRGB_decode, - GL_EXT_texture_shared_exponent, - GL_EXT_texture_snorm, - GL_EXT_texture_storage, - GL_EXT_texture_swizzle, - GL_EXT_texture_type_2_10_10_10_REV, - GL_EXT_texture_view, - GL_EXT_timer_query, - GL_EXT_transform_feedback, - GL_EXT_unpack_subimage, - GL_EXT_vertex_array, - GL_EXT_vertex_array_bgra, - GL_EXT_vertex_attrib_64bit, - GL_EXT_vertex_shader, - GL_EXT_vertex_weighting, - GL_EXT_win32_keyed_mutex, - GL_EXT_window_rectangles, - GL_EXT_x11_sync_object, - GL_FJ_shader_binary_GCCSO, - GL_GREMEDY_frame_terminator, - GL_GREMEDY_string_marker, - GL_HP_convolution_border_modes, - GL_HP_image_transform, - GL_HP_occlusion_test, - GL_HP_texture_lighting, - GL_IBM_cull_vertex, - GL_IBM_multimode_draw_arrays, - GL_IBM_rasterpos_clip, - GL_IBM_static_data, - GL_IBM_texture_mirrored_repeat, - GL_IBM_vertex_array_lists, - GL_IMG_bindless_texture, - GL_IMG_framebuffer_downsample, - GL_IMG_multisampled_render_to_texture, - GL_IMG_program_binary, - GL_IMG_read_format, - GL_IMG_shader_binary, - GL_IMG_texture_compression_pvrtc, - GL_IMG_texture_compression_pvrtc2, - GL_IMG_texture_filter_cubic, - GL_INGR_blend_func_separate, - GL_INGR_color_clamp, - GL_INGR_interlace_read, - GL_INTEL_blackhole_render, - GL_INTEL_conservative_rasterization, - GL_INTEL_fragment_shader_ordering, - GL_INTEL_framebuffer_CMAA, - GL_INTEL_map_texture, - GL_INTEL_parallel_arrays, - GL_INTEL_performance_query, - GL_KHR_blend_equation_advanced, - GL_KHR_blend_equation_advanced_coherent, - GL_KHR_context_flush_control, - GL_KHR_debug, - GL_KHR_no_error, - GL_KHR_parallel_shader_compile, - GL_KHR_robust_buffer_access_behavior, - GL_KHR_robustness, - GL_KHR_texture_compression_astc_hdr, - GL_KHR_texture_compression_astc_ldr, - GL_KHR_texture_compression_astc_sliced_3d, - GL_MESAX_texture_stack, - GL_MESA_pack_invert, - GL_MESA_program_binary_formats, - GL_MESA_resize_buffers, - GL_MESA_shader_integer_functions, - GL_MESA_tile_raster_order, - GL_MESA_window_pos, - GL_MESA_ycbcr_texture, - GL_NVX_blend_equation_advanced_multi_draw_buffers, - GL_NVX_conditional_render, - GL_NVX_gpu_memory_info, - GL_NVX_linked_gpu_multicast, - GL_NV_alpha_to_coverage_dither_control, - GL_NV_bindless_multi_draw_indirect, - GL_NV_bindless_multi_draw_indirect_count, - GL_NV_bindless_texture, - GL_NV_blend_equation_advanced, - GL_NV_blend_equation_advanced_coherent, - GL_NV_blend_minmax_factor, - GL_NV_blend_square, - GL_NV_clip_space_w_scaling, - GL_NV_command_list, - GL_NV_compute_program5, - GL_NV_conditional_render, - GL_NV_conservative_raster, - GL_NV_conservative_raster_dilate, - GL_NV_conservative_raster_pre_snap, - GL_NV_conservative_raster_pre_snap_triangles, - GL_NV_conservative_raster_underestimation, - GL_NV_copy_buffer, - GL_NV_copy_depth_to_color, - GL_NV_copy_image, - GL_NV_coverage_sample, - GL_NV_deep_texture3D, - GL_NV_depth_buffer_float, - GL_NV_depth_clamp, - GL_NV_depth_nonlinear, - GL_NV_draw_buffers, - GL_NV_draw_instanced, - GL_NV_draw_texture, - GL_NV_draw_vulkan_image, - GL_NV_evaluators, - GL_NV_explicit_attrib_location, - GL_NV_explicit_multisample, - GL_NV_fbo_color_attachments, - GL_NV_fence, - GL_NV_fill_rectangle, - GL_NV_float_buffer, - GL_NV_fog_distance, - GL_NV_fragment_coverage_to_color, - GL_NV_fragment_program, - GL_NV_fragment_program2, - GL_NV_fragment_program4, - GL_NV_fragment_program_option, - GL_NV_fragment_shader_interlock, - GL_NV_framebuffer_blit, - GL_NV_framebuffer_mixed_samples, - GL_NV_framebuffer_multisample, - GL_NV_framebuffer_multisample_coverage, - GL_NV_generate_mipmap_sRGB, - GL_NV_geometry_program4, - GL_NV_geometry_shader4, - GL_NV_geometry_shader_passthrough, - GL_NV_gpu_multicast, - GL_NV_gpu_program4, - GL_NV_gpu_program5, - GL_NV_gpu_program5_mem_extended, - GL_NV_gpu_shader5, - GL_NV_half_float, - GL_NV_image_formats, - GL_NV_instanced_arrays, - GL_NV_internalformat_sample_query, - GL_NV_light_max_exponent, - GL_NV_multisample_coverage, - GL_NV_multisample_filter_hint, - GL_NV_non_square_matrices, - GL_NV_occlusion_query, - GL_NV_packed_depth_stencil, - GL_NV_parameter_buffer_object, - GL_NV_parameter_buffer_object2, - GL_NV_path_rendering, - GL_NV_path_rendering_shared_edge, - GL_NV_pixel_buffer_object, - GL_NV_pixel_data_range, - GL_NV_point_sprite, - GL_NV_polygon_mode, - GL_NV_present_video, - GL_NV_primitive_restart, - GL_NV_query_resource, - GL_NV_query_resource_tag, - GL_NV_read_buffer, - GL_NV_read_buffer_front, - GL_NV_read_depth, - GL_NV_read_depth_stencil, - GL_NV_read_stencil, - GL_NV_register_combiners, - GL_NV_register_combiners2, - GL_NV_robustness_video_memory_purge, - GL_NV_sRGB_formats, - GL_NV_sample_locations, - GL_NV_sample_mask_override_coverage, - GL_NV_shader_atomic_counters, - GL_NV_shader_atomic_float, - GL_NV_shader_atomic_float64, - GL_NV_shader_atomic_fp16_vector, - GL_NV_shader_atomic_int64, - GL_NV_shader_buffer_load, - GL_NV_shader_buffer_store, - GL_NV_shader_noperspective_interpolation, - GL_NV_shader_storage_buffer_object, - GL_NV_shader_thread_group, - GL_NV_shader_thread_shuffle, - GL_NV_shadow_samplers_array, - GL_NV_shadow_samplers_cube, - GL_NV_stereo_view_rendering, - GL_NV_tessellation_program5, - GL_NV_texgen_emboss, - GL_NV_texgen_reflection, - GL_NV_texture_barrier, - GL_NV_texture_border_clamp, - GL_NV_texture_compression_s3tc_update, - GL_NV_texture_compression_vtc, - GL_NV_texture_env_combine4, - GL_NV_texture_expand_normal, - GL_NV_texture_multisample, - GL_NV_texture_npot_2D_mipmap, - GL_NV_texture_rectangle, - GL_NV_texture_rectangle_compressed, - GL_NV_texture_shader, - GL_NV_texture_shader2, - GL_NV_texture_shader3, - GL_NV_transform_feedback, - GL_NV_transform_feedback2, - GL_NV_uniform_buffer_unified_memory, - GL_NV_vdpau_interop, - GL_NV_vertex_array_range, - GL_NV_vertex_array_range2, - GL_NV_vertex_attrib_integer_64bit, - GL_NV_vertex_buffer_unified_memory, - GL_NV_vertex_program, - GL_NV_vertex_program1_1, - GL_NV_vertex_program2, - GL_NV_vertex_program2_option, - GL_NV_vertex_program3, - GL_NV_vertex_program4, - GL_NV_video_capture, - GL_NV_viewport_array, - GL_NV_viewport_array2, - GL_NV_viewport_swizzle, - GL_OES_EGL_image, - GL_OES_EGL_image_external, - GL_OES_EGL_image_external_essl3, - GL_OES_byte_coordinates, - GL_OES_compressed_ETC1_RGB8_sub_texture, - GL_OES_compressed_ETC1_RGB8_texture, - GL_OES_compressed_paletted_texture, - GL_OES_copy_image, - GL_OES_depth24, - GL_OES_depth32, - GL_OES_depth_texture, - GL_OES_draw_buffers_indexed, - GL_OES_draw_elements_base_vertex, - GL_OES_element_index_uint, - GL_OES_fbo_render_mipmap, - GL_OES_fixed_point, - GL_OES_fragment_precision_high, - GL_OES_geometry_point_size, - GL_OES_geometry_shader, - GL_OES_get_program_binary, - GL_OES_gpu_shader5, - GL_OES_mapbuffer, - GL_OES_packed_depth_stencil, - GL_OES_primitive_bounding_box, - GL_OES_query_matrix, - GL_OES_read_format, - GL_OES_required_internalformat, - GL_OES_rgb8_rgba8, - GL_OES_sample_shading, - GL_OES_sample_variables, - GL_OES_shader_image_atomic, - GL_OES_shader_io_blocks, - GL_OES_shader_multisample_interpolation, - GL_OES_single_precision, - GL_OES_standard_derivatives, - GL_OES_stencil1, - GL_OES_stencil4, - GL_OES_surfaceless_context, - GL_OES_tessellation_point_size, - GL_OES_tessellation_shader, - GL_OES_texture_3D, - GL_OES_texture_border_clamp, - GL_OES_texture_buffer, - GL_OES_texture_compression_astc, - GL_OES_texture_cube_map_array, - GL_OES_texture_float, - GL_OES_texture_float_linear, - GL_OES_texture_half_float, - GL_OES_texture_half_float_linear, - GL_OES_texture_npot, - GL_OES_texture_stencil8, - GL_OES_texture_storage_multisample_2d_array, - GL_OES_texture_view, - GL_OES_vertex_array_object, - GL_OES_vertex_half_float, - GL_OES_vertex_type_10_10_10_2, - GL_OES_viewport_array, - GL_OML_interlace, - GL_OML_resample, - GL_OML_subsample, - GL_OVR_multiview, - GL_OVR_multiview2, - GL_OVR_multiview_multisampled_render_to_texture, - GL_PGI_misc_hints, - GL_PGI_vertex_hints, - GL_QCOM_alpha_test, - GL_QCOM_binning_control, - GL_QCOM_driver_control, - GL_QCOM_extended_get, - GL_QCOM_extended_get2, - GL_QCOM_framebuffer_foveated, - GL_QCOM_perfmon_global_mode, - GL_QCOM_shader_framebuffer_fetch_noncoherent, - GL_QCOM_texture_foveated, - GL_QCOM_tiled_rendering, - GL_QCOM_writeonly_rendering, - GL_REND_screen_coordinates, - GL_S3_s3tc, - GL_SGIS_detail_texture, - GL_SGIS_fog_function, - GL_SGIS_generate_mipmap, - GL_SGIS_multisample, - GL_SGIS_pixel_texture, - GL_SGIS_point_line_texgen, - GL_SGIS_point_parameters, - GL_SGIS_sharpen_texture, - GL_SGIS_texture4D, - GL_SGIS_texture_border_clamp, - GL_SGIS_texture_color_mask, - GL_SGIS_texture_edge_clamp, - GL_SGIS_texture_filter4, - GL_SGIS_texture_lod, - GL_SGIS_texture_select, - GL_SGIX_async, - GL_SGIX_async_histogram, - GL_SGIX_async_pixel, - GL_SGIX_blend_alpha_minmax, - GL_SGIX_calligraphic_fragment, - GL_SGIX_clipmap, - GL_SGIX_convolution_accuracy, - GL_SGIX_depth_pass_instrument, - GL_SGIX_depth_texture, - GL_SGIX_flush_raster, - GL_SGIX_fog_offset, - GL_SGIX_fragment_lighting, - GL_SGIX_framezoom, - GL_SGIX_igloo_interface, - GL_SGIX_instruments, - GL_SGIX_interlace, - GL_SGIX_ir_instrument1, - GL_SGIX_list_priority, - GL_SGIX_pixel_texture, - GL_SGIX_pixel_tiles, - GL_SGIX_polynomial_ffd, - GL_SGIX_reference_plane, - GL_SGIX_resample, - GL_SGIX_scalebias_hint, - GL_SGIX_shadow, - GL_SGIX_shadow_ambient, - GL_SGIX_sprite, - GL_SGIX_subsample, - GL_SGIX_tag_sample_buffer, - GL_SGIX_texture_add_env, - GL_SGIX_texture_coordinate_clamp, - GL_SGIX_texture_lod_bias, - GL_SGIX_texture_multi_buffer, - GL_SGIX_texture_scale_bias, - GL_SGIX_vertex_preclip, - GL_SGIX_ycrcb, - GL_SGIX_ycrcb_subsample, - GL_SGIX_ycrcba, - GL_SGI_color_matrix, - GL_SGI_color_table, - GL_SGI_texture_color_table, - GL_SUNX_constant_data, - GL_SUN_convolution_border_modes, - GL_SUN_global_alpha, - GL_SUN_mesh_array, - GL_SUN_slice_accum, - GL_SUN_triangle_list, - GL_SUN_vertex, - GL_VIV_shader_binary, - GL_WIN_phong_shading, - GL_WIN_specular_fog - Loader: True - Local files: True - Omit khrplatform: False - - Commandline: - --profile="core" --api="gl=4.6,gles2=3.2" --generator="c" --spec="gl" --local-files --extensions="GL_3DFX_multisample,GL_3DFX_tbuffer,GL_3DFX_texture_compression_FXT1,GL_AMD_blend_minmax_factor,GL_AMD_compressed_3DC_texture,GL_AMD_compressed_ATC_texture,GL_AMD_conservative_depth,GL_AMD_debug_output,GL_AMD_depth_clamp_separate,GL_AMD_draw_buffers_blend,GL_AMD_framebuffer_sample_positions,GL_AMD_gcn_shader,GL_AMD_gpu_shader_half_float,GL_AMD_gpu_shader_int16,GL_AMD_gpu_shader_int64,GL_AMD_interleaved_elements,GL_AMD_multi_draw_indirect,GL_AMD_name_gen_delete,GL_AMD_occlusion_query_event,GL_AMD_performance_monitor,GL_AMD_pinned_memory,GL_AMD_program_binary_Z400,GL_AMD_query_buffer_object,GL_AMD_sample_positions,GL_AMD_seamless_cubemap_per_texture,GL_AMD_shader_atomic_counter_ops,GL_AMD_shader_ballot,GL_AMD_shader_explicit_vertex_parameter,GL_AMD_shader_gpu_shader_half_float_fetch,GL_AMD_shader_image_load_store_lod,GL_AMD_shader_stencil_export,GL_AMD_shader_trinary_minmax,GL_AMD_sparse_texture,GL_AMD_stencil_operation_extended,GL_AMD_texture_gather_bias_lod,GL_AMD_texture_texture4,GL_AMD_transform_feedback3_lines_triangles,GL_AMD_transform_feedback4,GL_AMD_vertex_shader_layer,GL_AMD_vertex_shader_tessellator,GL_AMD_vertex_shader_viewport_index,GL_ANDROID_extension_pack_es31a,GL_ANGLE_depth_texture,GL_ANGLE_framebuffer_blit,GL_ANGLE_framebuffer_multisample,GL_ANGLE_instanced_arrays,GL_ANGLE_pack_reverse_row_order,GL_ANGLE_program_binary,GL_ANGLE_texture_compression_dxt3,GL_ANGLE_texture_compression_dxt5,GL_ANGLE_texture_usage,GL_ANGLE_translated_shader_source,GL_APPLE_aux_depth_stencil,GL_APPLE_client_storage,GL_APPLE_clip_distance,GL_APPLE_color_buffer_packed_float,GL_APPLE_copy_texture_levels,GL_APPLE_element_array,GL_APPLE_fence,GL_APPLE_float_pixels,GL_APPLE_flush_buffer_range,GL_APPLE_framebuffer_multisample,GL_APPLE_object_purgeable,GL_APPLE_rgb_422,GL_APPLE_row_bytes,GL_APPLE_specular_vector,GL_APPLE_sync,GL_APPLE_texture_format_BGRA8888,GL_APPLE_texture_max_level,GL_APPLE_texture_packed_float,GL_APPLE_texture_range,GL_APPLE_transform_hint,GL_APPLE_vertex_array_object,GL_APPLE_vertex_array_range,GL_APPLE_vertex_program_evaluators,GL_APPLE_ycbcr_422,GL_ARB_ES2_compatibility,GL_ARB_ES3_1_compatibility,GL_ARB_ES3_2_compatibility,GL_ARB_ES3_compatibility,GL_ARB_arrays_of_arrays,GL_ARB_base_instance,GL_ARB_bindless_texture,GL_ARB_blend_func_extended,GL_ARB_buffer_storage,GL_ARB_cl_event,GL_ARB_clear_buffer_object,GL_ARB_clear_texture,GL_ARB_clip_control,GL_ARB_color_buffer_float,GL_ARB_compatibility,GL_ARB_compressed_texture_pixel_storage,GL_ARB_compute_shader,GL_ARB_compute_variable_group_size,GL_ARB_conditional_render_inverted,GL_ARB_conservative_depth,GL_ARB_copy_buffer,GL_ARB_copy_image,GL_ARB_cull_distance,GL_ARB_debug_output,GL_ARB_depth_buffer_float,GL_ARB_depth_clamp,GL_ARB_depth_texture,GL_ARB_derivative_control,GL_ARB_direct_state_access,GL_ARB_draw_buffers,GL_ARB_draw_buffers_blend,GL_ARB_draw_elements_base_vertex,GL_ARB_draw_indirect,GL_ARB_draw_instanced,GL_ARB_enhanced_layouts,GL_ARB_explicit_attrib_location,GL_ARB_explicit_uniform_location,GL_ARB_fragment_coord_conventions,GL_ARB_fragment_layer_viewport,GL_ARB_fragment_program,GL_ARB_fragment_program_shadow,GL_ARB_fragment_shader,GL_ARB_fragment_shader_interlock,GL_ARB_framebuffer_no_attachments,GL_ARB_framebuffer_object,GL_ARB_framebuffer_sRGB,GL_ARB_geometry_shader4,GL_ARB_get_program_binary,GL_ARB_get_texture_sub_image,GL_ARB_gl_spirv,GL_ARB_gpu_shader5,GL_ARB_gpu_shader_fp64,GL_ARB_gpu_shader_int64,GL_ARB_half_float_pixel,GL_ARB_half_float_vertex,GL_ARB_imaging,GL_ARB_indirect_parameters,GL_ARB_instanced_arrays,GL_ARB_internalformat_query,GL_ARB_internalformat_query2,GL_ARB_invalidate_subdata,GL_ARB_map_buffer_alignment,GL_ARB_map_buffer_range,GL_ARB_matrix_palette,GL_ARB_multi_bind,GL_ARB_multi_draw_indirect,GL_ARB_multisample,GL_ARB_multitexture,GL_ARB_occlusion_query,GL_ARB_occlusion_query2,GL_ARB_parallel_shader_compile,GL_ARB_pipeline_statistics_query,GL_ARB_pixel_buffer_object,GL_ARB_point_parameters,GL_ARB_point_sprite,GL_ARB_polygon_offset_clamp,GL_ARB_post_depth_coverage,GL_ARB_program_interface_query,GL_ARB_provoking_vertex,GL_ARB_query_buffer_object,GL_ARB_robust_buffer_access_behavior,GL_ARB_robustness,GL_ARB_robustness_isolation,GL_ARB_sample_locations,GL_ARB_sample_shading,GL_ARB_sampler_objects,GL_ARB_seamless_cube_map,GL_ARB_seamless_cubemap_per_texture,GL_ARB_separate_shader_objects,GL_ARB_shader_atomic_counter_ops,GL_ARB_shader_atomic_counters,GL_ARB_shader_ballot,GL_ARB_shader_bit_encoding,GL_ARB_shader_clock,GL_ARB_shader_draw_parameters,GL_ARB_shader_group_vote,GL_ARB_shader_image_load_store,GL_ARB_shader_image_size,GL_ARB_shader_objects,GL_ARB_shader_precision,GL_ARB_shader_stencil_export,GL_ARB_shader_storage_buffer_object,GL_ARB_shader_subroutine,GL_ARB_shader_texture_image_samples,GL_ARB_shader_texture_lod,GL_ARB_shader_viewport_layer_array,GL_ARB_shading_language_100,GL_ARB_shading_language_420pack,GL_ARB_shading_language_include,GL_ARB_shading_language_packing,GL_ARB_shadow,GL_ARB_shadow_ambient,GL_ARB_sparse_buffer,GL_ARB_sparse_texture,GL_ARB_sparse_texture2,GL_ARB_sparse_texture_clamp,GL_ARB_spirv_extensions,GL_ARB_stencil_texturing,GL_ARB_sync,GL_ARB_tessellation_shader,GL_ARB_texture_barrier,GL_ARB_texture_border_clamp,GL_ARB_texture_buffer_object,GL_ARB_texture_buffer_object_rgb32,GL_ARB_texture_buffer_range,GL_ARB_texture_compression,GL_ARB_texture_compression_bptc,GL_ARB_texture_compression_rgtc,GL_ARB_texture_cube_map,GL_ARB_texture_cube_map_array,GL_ARB_texture_env_add,GL_ARB_texture_env_combine,GL_ARB_texture_env_crossbar,GL_ARB_texture_env_dot3,GL_ARB_texture_filter_anisotropic,GL_ARB_texture_filter_minmax,GL_ARB_texture_float,GL_ARB_texture_gather,GL_ARB_texture_mirror_clamp_to_edge,GL_ARB_texture_mirrored_repeat,GL_ARB_texture_multisample,GL_ARB_texture_non_power_of_two,GL_ARB_texture_query_levels,GL_ARB_texture_query_lod,GL_ARB_texture_rectangle,GL_ARB_texture_rg,GL_ARB_texture_rgb10_a2ui,GL_ARB_texture_stencil8,GL_ARB_texture_storage,GL_ARB_texture_storage_multisample,GL_ARB_texture_swizzle,GL_ARB_texture_view,GL_ARB_timer_query,GL_ARB_transform_feedback2,GL_ARB_transform_feedback3,GL_ARB_transform_feedback_instanced,GL_ARB_transform_feedback_overflow_query,GL_ARB_transpose_matrix,GL_ARB_uniform_buffer_object,GL_ARB_vertex_array_bgra,GL_ARB_vertex_array_object,GL_ARB_vertex_attrib_64bit,GL_ARB_vertex_attrib_binding,GL_ARB_vertex_blend,GL_ARB_vertex_buffer_object,GL_ARB_vertex_program,GL_ARB_vertex_shader,GL_ARB_vertex_type_10f_11f_11f_rev,GL_ARB_vertex_type_2_10_10_10_rev,GL_ARB_viewport_array,GL_ARB_window_pos,GL_ARM_mali_program_binary,GL_ARM_mali_shader_binary,GL_ARM_rgba8,GL_ARM_shader_framebuffer_fetch,GL_ARM_shader_framebuffer_fetch_depth_stencil,GL_ATI_draw_buffers,GL_ATI_element_array,GL_ATI_envmap_bumpmap,GL_ATI_fragment_shader,GL_ATI_map_object_buffer,GL_ATI_meminfo,GL_ATI_pixel_format_float,GL_ATI_pn_triangles,GL_ATI_separate_stencil,GL_ATI_text_fragment_shader,GL_ATI_texture_env_combine3,GL_ATI_texture_float,GL_ATI_texture_mirror_once,GL_ATI_vertex_array_object,GL_ATI_vertex_attrib_array_object,GL_ATI_vertex_streams,GL_DMP_program_binary,GL_DMP_shader_binary,GL_EXT_422_pixels,GL_EXT_EGL_image_array,GL_EXT_EGL_image_storage,GL_EXT_YUV_target,GL_EXT_abgr,GL_EXT_base_instance,GL_EXT_bgra,GL_EXT_bindable_uniform,GL_EXT_blend_color,GL_EXT_blend_equation_separate,GL_EXT_blend_func_extended,GL_EXT_blend_func_separate,GL_EXT_blend_logic_op,GL_EXT_blend_minmax,GL_EXT_blend_subtract,GL_EXT_buffer_storage,GL_EXT_clear_texture,GL_EXT_clip_control,GL_EXT_clip_cull_distance,GL_EXT_clip_volume_hint,GL_EXT_cmyka,GL_EXT_color_buffer_float,GL_EXT_color_buffer_half_float,GL_EXT_color_subtable,GL_EXT_compiled_vertex_array,GL_EXT_conservative_depth,GL_EXT_convolution,GL_EXT_coordinate_frame,GL_EXT_copy_image,GL_EXT_copy_texture,GL_EXT_cull_vertex,GL_EXT_debug_label,GL_EXT_debug_marker,GL_EXT_depth_bounds_test,GL_EXT_direct_state_access,GL_EXT_discard_framebuffer,GL_EXT_disjoint_timer_query,GL_EXT_draw_buffers,GL_EXT_draw_buffers2,GL_EXT_draw_buffers_indexed,GL_EXT_draw_elements_base_vertex,GL_EXT_draw_instanced,GL_EXT_draw_range_elements,GL_EXT_draw_transform_feedback,GL_EXT_external_buffer,GL_EXT_float_blend,GL_EXT_fog_coord,GL_EXT_framebuffer_blit,GL_EXT_framebuffer_multisample,GL_EXT_framebuffer_multisample_blit_scaled,GL_EXT_framebuffer_object,GL_EXT_framebuffer_sRGB,GL_EXT_geometry_point_size,GL_EXT_geometry_shader,GL_EXT_geometry_shader4,GL_EXT_gpu_program_parameters,GL_EXT_gpu_shader4,GL_EXT_gpu_shader5,GL_EXT_histogram,GL_EXT_index_array_formats,GL_EXT_index_func,GL_EXT_index_material,GL_EXT_index_texture,GL_EXT_instanced_arrays,GL_EXT_light_texture,GL_EXT_map_buffer_range,GL_EXT_memory_object,GL_EXT_memory_object_fd,GL_EXT_memory_object_win32,GL_EXT_misc_attribute,GL_EXT_multi_draw_arrays,GL_EXT_multi_draw_indirect,GL_EXT_multisample,GL_EXT_multisampled_compatibility,GL_EXT_multisampled_render_to_texture,GL_EXT_multiview_draw_buffers,GL_EXT_occlusion_query_boolean,GL_EXT_packed_depth_stencil,GL_EXT_packed_float,GL_EXT_packed_pixels,GL_EXT_paletted_texture,GL_EXT_pixel_buffer_object,GL_EXT_pixel_transform,GL_EXT_pixel_transform_color_table,GL_EXT_point_parameters,GL_EXT_polygon_offset,GL_EXT_polygon_offset_clamp,GL_EXT_post_depth_coverage,GL_EXT_primitive_bounding_box,GL_EXT_protected_textures,GL_EXT_provoking_vertex,GL_EXT_pvrtc_sRGB,GL_EXT_raster_multisample,GL_EXT_read_format_bgra,GL_EXT_render_snorm,GL_EXT_rescale_normal,GL_EXT_robustness,GL_EXT_sRGB,GL_EXT_sRGB_write_control,GL_EXT_secondary_color,GL_EXT_semaphore,GL_EXT_semaphore_fd,GL_EXT_semaphore_win32,GL_EXT_separate_shader_objects,GL_EXT_separate_specular_color,GL_EXT_shader_framebuffer_fetch,GL_EXT_shader_framebuffer_fetch_non_coherent,GL_EXT_shader_group_vote,GL_EXT_shader_image_load_formatted,GL_EXT_shader_image_load_store,GL_EXT_shader_implicit_conversions,GL_EXT_shader_integer_mix,GL_EXT_shader_io_blocks,GL_EXT_shader_non_constant_global_initializers,GL_EXT_shader_pixel_local_storage,GL_EXT_shader_pixel_local_storage2,GL_EXT_shader_texture_lod,GL_EXT_shadow_funcs,GL_EXT_shadow_samplers,GL_EXT_shared_texture_palette,GL_EXT_sparse_texture,GL_EXT_sparse_texture2,GL_EXT_stencil_clear_tag,GL_EXT_stencil_two_side,GL_EXT_stencil_wrap,GL_EXT_subtexture,GL_EXT_tessellation_point_size,GL_EXT_tessellation_shader,GL_EXT_texture,GL_EXT_texture3D,GL_EXT_texture_array,GL_EXT_texture_border_clamp,GL_EXT_texture_buffer,GL_EXT_texture_buffer_object,GL_EXT_texture_compression_astc_decode_mode,GL_EXT_texture_compression_bptc,GL_EXT_texture_compression_dxt1,GL_EXT_texture_compression_latc,GL_EXT_texture_compression_rgtc,GL_EXT_texture_compression_s3tc,GL_EXT_texture_compression_s3tc_srgb,GL_EXT_texture_cube_map,GL_EXT_texture_cube_map_array,GL_EXT_texture_env_add,GL_EXT_texture_env_combine,GL_EXT_texture_env_dot3,GL_EXT_texture_filter_anisotropic,GL_EXT_texture_filter_minmax,GL_EXT_texture_format_BGRA8888,GL_EXT_texture_format_sRGB_override,GL_EXT_texture_integer,GL_EXT_texture_lod_bias,GL_EXT_texture_mirror_clamp,GL_EXT_texture_mirror_clamp_to_edge,GL_EXT_texture_norm16,GL_EXT_texture_object,GL_EXT_texture_perturb_normal,GL_EXT_texture_rg,GL_EXT_texture_sRGB,GL_EXT_texture_sRGB_R8,GL_EXT_texture_sRGB_RG8,GL_EXT_texture_sRGB_decode,GL_EXT_texture_shared_exponent,GL_EXT_texture_snorm,GL_EXT_texture_storage,GL_EXT_texture_swizzle,GL_EXT_texture_type_2_10_10_10_REV,GL_EXT_texture_view,GL_EXT_timer_query,GL_EXT_transform_feedback,GL_EXT_unpack_subimage,GL_EXT_vertex_array,GL_EXT_vertex_array_bgra,GL_EXT_vertex_attrib_64bit,GL_EXT_vertex_shader,GL_EXT_vertex_weighting,GL_EXT_win32_keyed_mutex,GL_EXT_window_rectangles,GL_EXT_x11_sync_object,GL_FJ_shader_binary_GCCSO,GL_GREMEDY_frame_terminator,GL_GREMEDY_string_marker,GL_HP_convolution_border_modes,GL_HP_image_transform,GL_HP_occlusion_test,GL_HP_texture_lighting,GL_IBM_cull_vertex,GL_IBM_multimode_draw_arrays,GL_IBM_rasterpos_clip,GL_IBM_static_data,GL_IBM_texture_mirrored_repeat,GL_IBM_vertex_array_lists,GL_IMG_bindless_texture,GL_IMG_framebuffer_downsample,GL_IMG_multisampled_render_to_texture,GL_IMG_program_binary,GL_IMG_read_format,GL_IMG_shader_binary,GL_IMG_texture_compression_pvrtc,GL_IMG_texture_compression_pvrtc2,GL_IMG_texture_filter_cubic,GL_INGR_blend_func_separate,GL_INGR_color_clamp,GL_INGR_interlace_read,GL_INTEL_blackhole_render,GL_INTEL_conservative_rasterization,GL_INTEL_fragment_shader_ordering,GL_INTEL_framebuffer_CMAA,GL_INTEL_map_texture,GL_INTEL_parallel_arrays,GL_INTEL_performance_query,GL_KHR_blend_equation_advanced,GL_KHR_blend_equation_advanced_coherent,GL_KHR_context_flush_control,GL_KHR_debug,GL_KHR_no_error,GL_KHR_parallel_shader_compile,GL_KHR_robust_buffer_access_behavior,GL_KHR_robustness,GL_KHR_texture_compression_astc_hdr,GL_KHR_texture_compression_astc_ldr,GL_KHR_texture_compression_astc_sliced_3d,GL_MESAX_texture_stack,GL_MESA_pack_invert,GL_MESA_program_binary_formats,GL_MESA_resize_buffers,GL_MESA_shader_integer_functions,GL_MESA_tile_raster_order,GL_MESA_window_pos,GL_MESA_ycbcr_texture,GL_NVX_blend_equation_advanced_multi_draw_buffers,GL_NVX_conditional_render,GL_NVX_gpu_memory_info,GL_NVX_linked_gpu_multicast,GL_NV_alpha_to_coverage_dither_control,GL_NV_bindless_multi_draw_indirect,GL_NV_bindless_multi_draw_indirect_count,GL_NV_bindless_texture,GL_NV_blend_equation_advanced,GL_NV_blend_equation_advanced_coherent,GL_NV_blend_minmax_factor,GL_NV_blend_square,GL_NV_clip_space_w_scaling,GL_NV_command_list,GL_NV_compute_program5,GL_NV_conditional_render,GL_NV_conservative_raster,GL_NV_conservative_raster_dilate,GL_NV_conservative_raster_pre_snap,GL_NV_conservative_raster_pre_snap_triangles,GL_NV_conservative_raster_underestimation,GL_NV_copy_buffer,GL_NV_copy_depth_to_color,GL_NV_copy_image,GL_NV_coverage_sample,GL_NV_deep_texture3D,GL_NV_depth_buffer_float,GL_NV_depth_clamp,GL_NV_depth_nonlinear,GL_NV_draw_buffers,GL_NV_draw_instanced,GL_NV_draw_texture,GL_NV_draw_vulkan_image,GL_NV_evaluators,GL_NV_explicit_attrib_location,GL_NV_explicit_multisample,GL_NV_fbo_color_attachments,GL_NV_fence,GL_NV_fill_rectangle,GL_NV_float_buffer,GL_NV_fog_distance,GL_NV_fragment_coverage_to_color,GL_NV_fragment_program,GL_NV_fragment_program2,GL_NV_fragment_program4,GL_NV_fragment_program_option,GL_NV_fragment_shader_interlock,GL_NV_framebuffer_blit,GL_NV_framebuffer_mixed_samples,GL_NV_framebuffer_multisample,GL_NV_framebuffer_multisample_coverage,GL_NV_generate_mipmap_sRGB,GL_NV_geometry_program4,GL_NV_geometry_shader4,GL_NV_geometry_shader_passthrough,GL_NV_gpu_multicast,GL_NV_gpu_program4,GL_NV_gpu_program5,GL_NV_gpu_program5_mem_extended,GL_NV_gpu_shader5,GL_NV_half_float,GL_NV_image_formats,GL_NV_instanced_arrays,GL_NV_internalformat_sample_query,GL_NV_light_max_exponent,GL_NV_multisample_coverage,GL_NV_multisample_filter_hint,GL_NV_non_square_matrices,GL_NV_occlusion_query,GL_NV_packed_depth_stencil,GL_NV_parameter_buffer_object,GL_NV_parameter_buffer_object2,GL_NV_path_rendering,GL_NV_path_rendering_shared_edge,GL_NV_pixel_buffer_object,GL_NV_pixel_data_range,GL_NV_point_sprite,GL_NV_polygon_mode,GL_NV_present_video,GL_NV_primitive_restart,GL_NV_query_resource,GL_NV_query_resource_tag,GL_NV_read_buffer,GL_NV_read_buffer_front,GL_NV_read_depth,GL_NV_read_depth_stencil,GL_NV_read_stencil,GL_NV_register_combiners,GL_NV_register_combiners2,GL_NV_robustness_video_memory_purge,GL_NV_sRGB_formats,GL_NV_sample_locations,GL_NV_sample_mask_override_coverage,GL_NV_shader_atomic_counters,GL_NV_shader_atomic_float,GL_NV_shader_atomic_float64,GL_NV_shader_atomic_fp16_vector,GL_NV_shader_atomic_int64,GL_NV_shader_buffer_load,GL_NV_shader_buffer_store,GL_NV_shader_noperspective_interpolation,GL_NV_shader_storage_buffer_object,GL_NV_shader_thread_group,GL_NV_shader_thread_shuffle,GL_NV_shadow_samplers_array,GL_NV_shadow_samplers_cube,GL_NV_stereo_view_rendering,GL_NV_tessellation_program5,GL_NV_texgen_emboss,GL_NV_texgen_reflection,GL_NV_texture_barrier,GL_NV_texture_border_clamp,GL_NV_texture_compression_s3tc_update,GL_NV_texture_compression_vtc,GL_NV_texture_env_combine4,GL_NV_texture_expand_normal,GL_NV_texture_multisample,GL_NV_texture_npot_2D_mipmap,GL_NV_texture_rectangle,GL_NV_texture_rectangle_compressed,GL_NV_texture_shader,GL_NV_texture_shader2,GL_NV_texture_shader3,GL_NV_transform_feedback,GL_NV_transform_feedback2,GL_NV_uniform_buffer_unified_memory,GL_NV_vdpau_interop,GL_NV_vertex_array_range,GL_NV_vertex_array_range2,GL_NV_vertex_attrib_integer_64bit,GL_NV_vertex_buffer_unified_memory,GL_NV_vertex_program,GL_NV_vertex_program1_1,GL_NV_vertex_program2,GL_NV_vertex_program2_option,GL_NV_vertex_program3,GL_NV_vertex_program4,GL_NV_video_capture,GL_NV_viewport_array,GL_NV_viewport_array2,GL_NV_viewport_swizzle,GL_OES_EGL_image,GL_OES_EGL_image_external,GL_OES_EGL_image_external_essl3,GL_OES_byte_coordinates,GL_OES_compressed_ETC1_RGB8_sub_texture,GL_OES_compressed_ETC1_RGB8_texture,GL_OES_compressed_paletted_texture,GL_OES_copy_image,GL_OES_depth24,GL_OES_depth32,GL_OES_depth_texture,GL_OES_draw_buffers_indexed,GL_OES_draw_elements_base_vertex,GL_OES_element_index_uint,GL_OES_fbo_render_mipmap,GL_OES_fixed_point,GL_OES_fragment_precision_high,GL_OES_geometry_point_size,GL_OES_geometry_shader,GL_OES_get_program_binary,GL_OES_gpu_shader5,GL_OES_mapbuffer,GL_OES_packed_depth_stencil,GL_OES_primitive_bounding_box,GL_OES_query_matrix,GL_OES_read_format,GL_OES_required_internalformat,GL_OES_rgb8_rgba8,GL_OES_sample_shading,GL_OES_sample_variables,GL_OES_shader_image_atomic,GL_OES_shader_io_blocks,GL_OES_shader_multisample_interpolation,GL_OES_single_precision,GL_OES_standard_derivatives,GL_OES_stencil1,GL_OES_stencil4,GL_OES_surfaceless_context,GL_OES_tessellation_point_size,GL_OES_tessellation_shader,GL_OES_texture_3D,GL_OES_texture_border_clamp,GL_OES_texture_buffer,GL_OES_texture_compression_astc,GL_OES_texture_cube_map_array,GL_OES_texture_float,GL_OES_texture_float_linear,GL_OES_texture_half_float,GL_OES_texture_half_float_linear,GL_OES_texture_npot,GL_OES_texture_stencil8,GL_OES_texture_storage_multisample_2d_array,GL_OES_texture_view,GL_OES_vertex_array_object,GL_OES_vertex_half_float,GL_OES_vertex_type_10_10_10_2,GL_OES_viewport_array,GL_OML_interlace,GL_OML_resample,GL_OML_subsample,GL_OVR_multiview,GL_OVR_multiview2,GL_OVR_multiview_multisampled_render_to_texture,GL_PGI_misc_hints,GL_PGI_vertex_hints,GL_QCOM_alpha_test,GL_QCOM_binning_control,GL_QCOM_driver_control,GL_QCOM_extended_get,GL_QCOM_extended_get2,GL_QCOM_framebuffer_foveated,GL_QCOM_perfmon_global_mode,GL_QCOM_shader_framebuffer_fetch_noncoherent,GL_QCOM_texture_foveated,GL_QCOM_tiled_rendering,GL_QCOM_writeonly_rendering,GL_REND_screen_coordinates,GL_S3_s3tc,GL_SGIS_detail_texture,GL_SGIS_fog_function,GL_SGIS_generate_mipmap,GL_SGIS_multisample,GL_SGIS_pixel_texture,GL_SGIS_point_line_texgen,GL_SGIS_point_parameters,GL_SGIS_sharpen_texture,GL_SGIS_texture4D,GL_SGIS_texture_border_clamp,GL_SGIS_texture_color_mask,GL_SGIS_texture_edge_clamp,GL_SGIS_texture_filter4,GL_SGIS_texture_lod,GL_SGIS_texture_select,GL_SGIX_async,GL_SGIX_async_histogram,GL_SGIX_async_pixel,GL_SGIX_blend_alpha_minmax,GL_SGIX_calligraphic_fragment,GL_SGIX_clipmap,GL_SGIX_convolution_accuracy,GL_SGIX_depth_pass_instrument,GL_SGIX_depth_texture,GL_SGIX_flush_raster,GL_SGIX_fog_offset,GL_SGIX_fragment_lighting,GL_SGIX_framezoom,GL_SGIX_igloo_interface,GL_SGIX_instruments,GL_SGIX_interlace,GL_SGIX_ir_instrument1,GL_SGIX_list_priority,GL_SGIX_pixel_texture,GL_SGIX_pixel_tiles,GL_SGIX_polynomial_ffd,GL_SGIX_reference_plane,GL_SGIX_resample,GL_SGIX_scalebias_hint,GL_SGIX_shadow,GL_SGIX_shadow_ambient,GL_SGIX_sprite,GL_SGIX_subsample,GL_SGIX_tag_sample_buffer,GL_SGIX_texture_add_env,GL_SGIX_texture_coordinate_clamp,GL_SGIX_texture_lod_bias,GL_SGIX_texture_multi_buffer,GL_SGIX_texture_scale_bias,GL_SGIX_vertex_preclip,GL_SGIX_ycrcb,GL_SGIX_ycrcb_subsample,GL_SGIX_ycrcba,GL_SGI_color_matrix,GL_SGI_color_table,GL_SGI_texture_color_table,GL_SUNX_constant_data,GL_SUN_convolution_border_modes,GL_SUN_global_alpha,GL_SUN_mesh_array,GL_SUN_slice_accum,GL_SUN_triangle_list,GL_SUN_vertex,GL_VIV_shader_binary,GL_WIN_phong_shading,GL_WIN_specular_fog" - Online: - Too many extensions -*/ - -#include -#include -#include -#include - -static void* get_proc(const char *namez); - -#if defined(_WIN32) || defined(__CYGWIN__) -#include -static HMODULE libGL; - -typedef void* (APIENTRYP PFNWGLGETPROCADDRESSPROC_PRIVATE)(const char*); -static PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; - -#ifdef _MSC_VER -#ifdef __has_include - #if __has_include() - #define HAVE_WINAPIFAMILY 1 - #endif -#elif _MSC_VER >= 1700 && !_USING_V110_SDK71_ - #define HAVE_WINAPIFAMILY 1 -#endif -#endif - -#ifdef HAVE_WINAPIFAMILY - #include - #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) - #define IS_UWP 1 - #endif -#endif - -static -int open_gl(void) { -#ifndef IS_UWP - libGL = LoadLibraryW(L"opengl32.dll"); - if(libGL != NULL) { - void (* tmp)(void); - tmp = (void(*)(void)) GetProcAddress(libGL, "wglGetProcAddress"); - gladGetProcAddressPtr = (PFNWGLGETPROCADDRESSPROC_PRIVATE) tmp; - return gladGetProcAddressPtr != NULL; - } -#endif - - return 0; -} - -static -void close_gl(void) { - if(libGL != NULL) { - FreeLibrary((HMODULE) libGL); - libGL = NULL; - } -} -#else -#include -static void* libGL; - -#ifndef __APPLE__ -typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*); -static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; -#endif - -static -int open_gl(void) { -#ifdef __APPLE__ - static const char *NAMES[] = { - "../Frameworks/OpenGL.framework/OpenGL", - "/Library/Frameworks/OpenGL.framework/OpenGL", - "/System/Library/Frameworks/OpenGL.framework/OpenGL", - "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" - }; -#else - static const char *NAMES[] = {"libGL.so.1", "libGL.so"}; -#endif - - unsigned int index = 0; - for(index = 0; index < (sizeof(NAMES) / sizeof(NAMES[0])); index++) { - libGL = dlopen(NAMES[index], RTLD_NOW | RTLD_GLOBAL); - - if(libGL != NULL) { -#ifdef __APPLE__ - return 1; -#else - gladGetProcAddressPtr = (PFNGLXGETPROCADDRESSPROC_PRIVATE)dlsym(libGL, - "glXGetProcAddressARB"); - return gladGetProcAddressPtr != NULL; -#endif - } - } - - return 0; -} - -static -void close_gl(void) { - if(libGL != NULL) { - dlclose(libGL); - libGL = NULL; - } -} -#endif - -static -void* get_proc(const char *namez) { - void* result = NULL; - if(libGL == NULL) return NULL; - -#ifndef __APPLE__ - if(gladGetProcAddressPtr != NULL) { - result = gladGetProcAddressPtr(namez); - } -#endif - if(result == NULL) { -#if defined(_WIN32) || defined(__CYGWIN__) - result = (void*)GetProcAddress((HMODULE) libGL, namez); -#else - result = dlsym(libGL, namez); -#endif - } - - return result; -} - -int gladLoadGL(void) { - int status = 0; - - if(open_gl()) { - status = gladLoadGLLoader(&get_proc); - close_gl(); - } - - return status; -} - -struct gladGLversionStruct GLVersion; - -#if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0) -#define _GLAD_IS_SOME_NEW_VERSION 1 -#endif - -static int max_loaded_major; -static int max_loaded_minor; - -static const char *exts = NULL; -static int num_exts_i = 0; -static char **exts_i = NULL; - -static int get_exts(void) { -#ifdef _GLAD_IS_SOME_NEW_VERSION - if(max_loaded_major < 3) { -#endif - exts = (const char *)glGetString(GL_EXTENSIONS); -#ifdef _GLAD_IS_SOME_NEW_VERSION - } else { - unsigned int index; - - num_exts_i = 0; - glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts_i); - if (num_exts_i > 0) { - exts_i = (char **)realloc((void *)exts_i, (size_t)num_exts_i * (sizeof *exts_i)); - } - - if (exts_i == NULL) { - return 0; - } - - for(index = 0; index < (unsigned)num_exts_i; index++) { - const char *gl_str_tmp = (const char*)glGetStringi(GL_EXTENSIONS, index); - size_t len = strlen(gl_str_tmp); - - char *local_str = (char*)malloc((len+1) * sizeof(char)); - if(local_str != NULL) { - memcpy(local_str, gl_str_tmp, (len+1) * sizeof(char)); - } - exts_i[index] = local_str; - } - } -#endif - return 1; -} - -static void free_exts(void) { - if (exts_i != NULL) { - int index; - for(index = 0; index < num_exts_i; index++) { - free((char *)exts_i[index]); - } - free((void *)exts_i); - exts_i = NULL; - } -} - -static int has_ext(const char *ext) { -#ifdef _GLAD_IS_SOME_NEW_VERSION - if(max_loaded_major < 3) { -#endif - const char *extensions; - const char *loc; - const char *terminator; - extensions = exts; - if(extensions == NULL || ext == NULL) { - return 0; - } - - while(1) { - loc = strstr(extensions, ext); - if(loc == NULL) { - return 0; - } - - terminator = loc + strlen(ext); - if((loc == extensions || *(loc - 1) == ' ') && - (*terminator == ' ' || *terminator == '\0')) { - return 1; - } - extensions = terminator; - } -#ifdef _GLAD_IS_SOME_NEW_VERSION - } else { - int index; - if(exts_i == NULL) return 0; - for(index = 0; index < num_exts_i; index++) { - const char *e = exts_i[index]; - - if(exts_i[index] != NULL && strcmp(e, ext) == 0) { - return 1; - } - } - } -#endif - - return 0; -} -int GLAD_GL_VERSION_1_0; -int GLAD_GL_VERSION_1_1; -int GLAD_GL_VERSION_1_2; -int GLAD_GL_VERSION_1_3; -int GLAD_GL_VERSION_1_4; -int GLAD_GL_VERSION_1_5; -int GLAD_GL_VERSION_2_0; -int GLAD_GL_VERSION_2_1; -int GLAD_GL_VERSION_3_0; -int GLAD_GL_VERSION_3_1; -int GLAD_GL_VERSION_3_2; -int GLAD_GL_VERSION_3_3; -int GLAD_GL_VERSION_4_0; -int GLAD_GL_VERSION_4_1; -int GLAD_GL_VERSION_4_2; -int GLAD_GL_VERSION_4_3; -int GLAD_GL_VERSION_4_4; -int GLAD_GL_VERSION_4_5; -int GLAD_GL_VERSION_4_6; -int GLAD_GL_ES_VERSION_2_0; -int GLAD_GL_ES_VERSION_3_0; -int GLAD_GL_ES_VERSION_3_1; -int GLAD_GL_ES_VERSION_3_2; -PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D; -PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui; -PFNGLVERTEXARRAYELEMENTBUFFERPROC glad_glVertexArrayElementBuffer; -PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate; -PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC glad_glTextureStorage3DMultisample; -PFNGLTEXTUREPARAMETERFVPROC glad_glTextureParameterfv; -PFNGLMINSAMPLESHADINGPROC glad_glMinSampleShading; -PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer; -PFNGLUNIFORMSUBROUTINESUIVPROC glad_glUniformSubroutinesuiv; -PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D; -PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv; -PFNGLGETDOUBLEI_VPROC glad_glGetDoublei_v; -PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv; -PFNGLVERTEXARRAYVERTEXBUFFERSPROC glad_glVertexArrayVertexBuffers; -PFNGLBINDSAMPLERPROC glad_glBindSampler; -PFNGLLINEWIDTHPROC glad_glLineWidth; -PFNGLCOLORP3UIVPROC glad_glColorP3uiv; -PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v; -PFNGLCOMPILESHADERPROC glad_glCompileShader; -PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying; -PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC glad_glCompressedTextureSubImage3D; -PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC glad_glGetCompressedTextureImage; -PFNGLGETNMAPFVPROC glad_glGetnMapfv; -PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC glad_glTransformFeedbackBufferRange; -PFNGLGETTEXTUREIMAGEPROC glad_glGetTextureImage; -PFNGLDEPTHRANGEFPROC glad_glDepthRangef; -PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC glad_glMultiDrawElementsIndirectCount; -PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer; -PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui; -PFNGLGETNAMEDBUFFERPARAMETERIVPROC glad_glGetNamedBufferParameteriv; -PFNGLVERTEXP4UIPROC glad_glVertexP4ui; -PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC glad_glDrawElementsInstancedBaseInstance; -PFNGLENABLEIPROC glad_glEnablei; -PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui; -PFNGLCREATESHADERPROC glad_glCreateShader; -PFNGLISBUFFERPROC glad_glIsBuffer; -PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv; -PFNGLPROGRAMUNIFORMMATRIX2DVPROC glad_glProgramUniformMatrix2dv; -PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers; -PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D; -PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D; -PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f; -PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate; -PFNGLPROGRAMUNIFORMMATRIX4FVPROC glad_glProgramUniformMatrix4fv; -PFNGLCLEARNAMEDFRAMEBUFFERFIPROC glad_glClearNamedFramebufferfi; -PFNGLGETQUERYBUFFEROBJECTUIVPROC glad_glGetQueryBufferObjectuiv; -PFNGLHINTPROC glad_glHint; -PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s; -PFNGLSAMPLEMASKIPROC glad_glSampleMaski; -PFNGLVERTEXP2UIPROC glad_glVertexP2ui; -PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv; -PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl; -PFNGLPOINTSIZEPROC glad_glPointSize; -PFNGLBINDTEXTUREUNITPROC glad_glBindTextureUnit; -PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv; -PFNGLDELETEPROGRAMPROC glad_glDeleteProgram; -PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv; -PFNGLTEXSTORAGE2DPROC glad_glTexStorage2D; -PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage; -PFNGLWAITSYNCPROC glad_glWaitSync; -PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv; -PFNGLUNIFORM3IPROC glad_glUniform3i; -PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv; -PFNGLPROGRAMUNIFORM1UIPROC glad_glProgramUniform1ui; -PFNGLBLENDEQUATIONSEPARATEIPROC glad_glBlendEquationSeparatei; -PFNGLGETNMAPIVPROC glad_glGetnMapiv; -PFNGLTEXTUREBARRIERPROC glad_glTextureBarrier; -PFNGLUNIFORM3DPROC glad_glUniform3d; -PFNGLUNIFORM3FPROC glad_glUniform3f; -PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv; -PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv; -PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui; -PFNGLCOLORMASKIPROC glad_glColorMaski; -PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi; -PFNGLDRAWARRAYSINDIRECTPROC glad_glDrawArraysIndirect; -PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays; -PFNGLPAUSETRANSFORMFEEDBACKPROC glad_glPauseTransformFeedback; -PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui; -PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC glad_glProgramUniformMatrix3x2dv; -PFNGLCOPYNAMEDBUFFERSUBDATAPROC glad_glCopyNamedBufferSubData; -PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glad_glProgramUniformMatrix3x2fv; -PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv; -PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex; -PFNGLVERTEXATTRIBL4DPROC glad_glVertexAttribL4d; -PFNGLBINDIMAGETEXTUREPROC glad_glBindImageTexture; -PFNGLTEXTUREPARAMETERIVPROC glad_glTextureParameteriv; -PFNGLGETQUERYBUFFEROBJECTI64VPROC glad_glGetQueryBufferObjecti64v; -PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv; -PFNGLACTIVESHADERPROGRAMPROC glad_glActiveShaderProgram; -PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv; -PFNGLUNIFORMMATRIX3DVPROC glad_glUniformMatrix3dv; -PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC glad_glProgramUniformMatrix3x4dv; -PFNGLNAMEDFRAMEBUFFERTEXTUREPROC glad_glNamedFramebufferTexture; -PFNGLGETTEXTUREPARAMETERFVPROC glad_glGetTextureParameterfv; -PFNGLINVALIDATEBUFFERSUBDATAPROC glad_glInvalidateBufferSubData; -PFNGLRESUMETRANSFORMFEEDBACKPROC glad_glResumeTransformFeedback; -PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui; -PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glad_glProgramUniformMatrix4x3fv; -PFNGLVIEWPORTARRAYVPROC glad_glViewportArrayv; -PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers; -PFNGLDRAWARRAYSPROC glad_glDrawArrays; -PFNGLUNIFORM1UIPROC glad_glUniform1ui; -PFNGLPROGRAMUNIFORM2UIVPROC glad_glProgramUniform2uiv; -PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i; -PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui; -PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d; -PFNGLCLEARPROC glad_glClear; -PFNGLPROGRAMPARAMETERIPROC glad_glProgramParameteri; -PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName; -PFNGLMEMORYBARRIERPROC glad_glMemoryBarrier; -PFNGLGETGRAPHICSRESETSTATUSPROC glad_glGetGraphicsResetStatus; -PFNGLISENABLEDPROC glad_glIsEnabled; -PFNGLSTENCILOPPROC glad_glStencilOp; -PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D; -PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv; -PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub; -PFNGLMAPNAMEDBUFFERRANGEPROC glad_glMapNamedBufferRange; -PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation; -PFNGLGETTEXTUREPARAMETERIIVPROC glad_glGetTextureParameterIiv; -PFNGLTEXIMAGE1DPROC glad_glTexImage1D; -PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv; -PFNGLVERTEXARRAYATTRIBIFORMATPROC glad_glVertexArrayAttribIFormat; -PFNGLVERTEXARRAYVERTEXBUFFERPROC glad_glVertexArrayVertexBuffer; -PFNGLGETTEXIMAGEPROC glad_glGetTexImage; -PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v; -PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers; -PFNGLCREATETEXTURESPROC glad_glCreateTextures; -PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC glad_glTransformFeedbackBufferBase; -PFNGLCLEARTEXSUBIMAGEPROC glad_glClearTexSubImage; -PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders; -PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer; -PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays; -PFNGLBINDVERTEXBUFFERSPROC glad_glBindVertexBuffers; -PFNGLPROGRAMUNIFORM1UIVPROC glad_glProgramUniform1uiv; -PFNGLISVERTEXARRAYPROC glad_glIsVertexArray; -PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray; -PFNGLPROGRAMUNIFORM2IVPROC glad_glProgramUniform2iv; -PFNGLGETQUERYIVPROC glad_glGetQueryiv; -PFNGLGETTRANSFORMFEEDBACKIVPROC glad_glGetTransformFeedbackiv; -PFNGLBLITNAMEDFRAMEBUFFERPROC glad_glBlitNamedFramebuffer; -PFNGLVERTEXARRAYATTRIBLFORMATPROC glad_glVertexArrayAttribLFormat; -PFNGLCREATEQUERIESPROC glad_glCreateQueries; -PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv; -PFNGLSHADERSTORAGEBLOCKBINDINGPROC glad_glShaderStorageBlockBinding; -PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC glad_glProgramUniformMatrix4x2dv; -PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices; -PFNGLISSHADERPROC glad_glIsShader; -PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv; -PFNGLBEGINQUERYINDEXEDPROC glad_glBeginQueryIndexed; -PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv; -PFNGLENABLEPROC glad_glEnable; -PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv; -PFNGLVERTEXARRAYATTRIBBINDINGPROC glad_glVertexArrayAttribBinding; -PFNGLTEXTURESTORAGE1DPROC glad_glTextureStorage1D; -PFNGLMEMORYBARRIERBYREGIONPROC glad_glMemoryBarrierByRegion; -PFNGLBLENDEQUATIONIPROC glad_glBlendEquationi; -PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation; -PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv; -PFNGLGETTEXTUREPARAMETERIVPROC glad_glGetTextureParameteriv; -PFNGLGETPROGRAMINTERFACEIVPROC glad_glGetProgramInterfaceiv; -PFNGLUNIFORM2DVPROC glad_glUniform2dv; -PFNGLMAPNAMEDBUFFERPROC glad_glMapNamedBuffer; -PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv; -PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui; -PFNGLVERTEXATTRIBL1DVPROC glad_glVertexAttribL1dv; -PFNGLTEXTUREBUFFERRANGEPROC glad_glTextureBufferRange; -PFNGLGETNUNIFORMDVPROC glad_glGetnUniformdv; -PFNGLPROGRAMUNIFORM3UIPROC glad_glProgramUniform3ui; -PFNGLGETPOINTERVPROC glad_glGetPointerv; -PFNGLVERTEXBINDINGDIVISORPROC glad_glVertexBindingDivisor; -PFNGLGETUNIFORMFVPROC glad_glGetUniformfv; -PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv; -PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glad_glProgramUniformMatrix2x3fv; -PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv; -PFNGLVERTEXARRAYBINDINGDIVISORPROC glad_glVertexArrayBindingDivisor; -PFNGLDRAWBUFFERPROC glad_glDrawBuffer; -PFNGLENDQUERYINDEXEDPROC glad_glEndQueryIndexed; -PFNGLGETNPIXELMAPUSVPROC glad_glGetnPixelMapusv; -PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv; -PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced; -PFNGLPROGRAMUNIFORM1IPROC glad_glProgramUniform1i; -PFNGLPATCHPARAMETERIPROC glad_glPatchParameteri; -PFNGLPROGRAMUNIFORM1DPROC glad_glProgramUniform1d; -PFNGLPROGRAMUNIFORM1FPROC glad_glProgramUniform1f; -PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC glad_glGetNamedFramebufferParameteriv; -PFNGLFLUSHPROC glad_glFlush; -PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv; -PFNGLPROGRAMUNIFORM3IVPROC glad_glProgramUniform3iv; -PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog; -PFNGLNAMEDRENDERBUFFERSTORAGEPROC glad_glNamedRenderbufferStorage; -PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetNamedFramebufferAttachmentParameteriv; -PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv; -PFNGLPOLYGONOFFSETCLAMPPROC glad_glPolygonOffsetClamp; -PFNGLFENCESYNCPROC glad_glFenceSync; -PFNGLCOLORP3UIPROC glad_glColorP3ui; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC glad_glDrawElementsInstancedBaseVertexBaseInstance; -PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv; -PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender; -PFNGLVALIDATEPROGRAMPIPELINEPROC glad_glValidateProgramPipeline; -PFNGLGETNMINMAXPROC glad_glGetnMinmax; -PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv; -PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv; -PFNGLTEXSTORAGE3DMULTISAMPLEPROC glad_glTexStorage3DMultisample; -PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate; -PFNGLDISABLEVERTEXARRAYATTRIBPROC glad_glDisableVertexArrayAttrib; -PFNGLGENSAMPLERSPROC glad_glGenSamplers; -PFNGLCLAMPCOLORPROC glad_glClampColor; -PFNGLUNIFORM4IVPROC glad_glUniform4iv; -PFNGLCLEARSTENCILPROC glad_glClearStencil; -PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv; -PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC glad_glGetNamedRenderbufferParameteriv; -PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC glad_glDrawTransformFeedbackInstanced; -PFNGLSPECIALIZESHADERPROC glad_glSpecializeShader; -PFNGLGENTEXTURESPROC glad_glGenTextures; -PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC glad_glTextureStorage2DMultisample; -PFNGLDRAWTRANSFORMFEEDBACKPROC glad_glDrawTransformFeedback; -PFNGLUNIFORM1DVPROC glad_glUniform1dv; -PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv; -PFNGLGETTRANSFORMFEEDBACKI_VPROC glad_glGetTransformFeedbacki_v; -PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv; -PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC glad_glClearNamedFramebufferuiv; -PFNGLISSYNCPROC glad_glIsSync; -PFNGLCLEARNAMEDFRAMEBUFFERIVPROC glad_glClearNamedFramebufferiv; -PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName; -PFNGLUNIFORM2IPROC glad_glUniform2i; -PFNGLUNIFORM2FPROC glad_glUniform2f; -PFNGLUNIFORM2DPROC glad_glUniform2d; -PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui; -PFNGLGETPROGRAMIVPROC glad_glGetProgramiv; -PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer; -PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer; -PFNGLPROGRAMUNIFORM4FVPROC glad_glProgramUniform4fv; -PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel; -PFNGLTEXTUREPARAMETERIPROC glad_glTextureParameteri; -PFNGLTEXTUREPARAMETERFPROC glad_glTextureParameterf; -PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange; -PFNGLPROGRAMUNIFORM2FVPROC glad_glProgramUniform2fv; -PFNGLUNIFORMMATRIX2X3DVPROC glad_glUniformMatrix2x3dv; -PFNGLPROGRAMUNIFORMMATRIX4DVPROC glad_glProgramUniformMatrix4dv; -PFNGLVERTEXATTRIBL3DPROC glad_glVertexAttribL3d; -PFNGLPRIMITIVEBOUNDINGBOXPROC glad_glPrimitiveBoundingBox; -PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC glad_glProgramUniformMatrix2x4dv; -PFNGLDISPATCHCOMPUTEPROC glad_glDispatchCompute; -PFNGLGENQUERIESPROC glad_glGenQueries; -PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui; -PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D; -PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v; -PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers; -PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D; -PFNGLGETTEXTURESUBIMAGEPROC glad_glGetTextureSubImage; -PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer; -PFNGLISENABLEDIPROC glad_glIsEnabledi; -PFNGLBINDBUFFERSRANGEPROC glad_glBindBuffersRange; -PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui; -PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed; -PFNGLCOPYIMAGESUBDATAPROC glad_glCopyImageSubData; -PFNGLUNIFORM2IVPROC glad_glUniform2iv; -PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv; -PFNGLUNIFORM4UIVPROC glad_glUniform4uiv; -PFNGLPROGRAMUNIFORM2DVPROC glad_glProgramUniform2dv; -PFNGLTEXTURESUBIMAGE3DPROC glad_glTextureSubImage3D; -PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D; -PFNGLGETSHADERIVPROC glad_glGetShaderiv; -PFNGLPROGRAMUNIFORMMATRIX3FVPROC glad_glProgramUniformMatrix3fv; -PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel; -PFNGLINVALIDATEFRAMEBUFFERPROC glad_glInvalidateFramebuffer; -PFNGLBINDTEXTURESPROC glad_glBindTextures; -PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation; -PFNGLNAMEDBUFFERSTORAGEPROC glad_glNamedBufferStorage; -PFNGLSCISSORARRAYVPROC glad_glScissorArrayv; -PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset; -PFNGLGETDOUBLEVPROC glad_glGetDoublev; -PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d; -PFNGLUNIFORM4DVPROC glad_glUniform4dv; -PFNGLPROGRAMUNIFORM3DVPROC glad_glProgramUniform3dv; -PFNGLGETUNIFORMIVPROC glad_glGetUniformiv; -PFNGLINVALIDATEBUFFERDATAPROC glad_glInvalidateBufferData; -PFNGLGETNCOLORTABLEPROC glad_glGetnColorTable; -PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC glad_glCompressedTextureSubImage1D; -PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv; -PFNGLUNIFORM3FVPROC glad_glUniform3fv; -PFNGLMULTIDRAWELEMENTSINDIRECTPROC glad_glMultiDrawElementsIndirect; -PFNGLDEPTHRANGEPROC glad_glDepthRange; -PFNGLINVALIDATESUBFRAMEBUFFERPROC glad_glInvalidateSubFramebuffer; -PFNGLMAPBUFFERPROC glad_glMapBuffer; -PFNGLCLEARTEXIMAGEPROC glad_glClearTexImage; -PFNGLVERTEXATTRIBLFORMATPROC glad_glVertexAttribLFormat; -PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D; -PFNGLDELETESYNCPROC glad_glDeleteSync; -PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D; -PFNGLGETTRANSFORMFEEDBACKI64_VPROC glad_glGetTransformFeedbacki64_v; -PFNGLUNIFORMMATRIX4DVPROC glad_glUniformMatrix4dv; -PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv; -PFNGLUNIFORMMATRIX4X2DVPROC glad_glUniformMatrix4x2dv; -PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements; -PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv; -PFNGLUNIFORM3IVPROC glad_glUniform3iv; -PFNGLPOLYGONMODEPROC glad_glPolygonMode; -PFNGLDRAWBUFFERSPROC glad_glDrawBuffers; -PFNGLGETNHISTOGRAMPROC glad_glGetnHistogram; -PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv; -PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC glad_glNamedFramebufferReadBuffer; -PFNGLPROGRAMUNIFORM4IVPROC glad_glProgramUniform4iv; -PFNGLGETPROGRAMBINARYPROC glad_glGetProgramBinary; -PFNGLUSEPROGRAMPROC glad_glUseProgram; -PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog; -PFNGLBINDTRANSFORMFEEDBACKPROC glad_glBindTransformFeedback; -PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray; -PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers; -PFNGLGENERATETEXTUREMIPMAPPROC glad_glGenerateTextureMipmap; -PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv; -PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex; -PFNGLNAMEDBUFFERSUBDATAPROC glad_glNamedBufferSubData; -PFNGLTEXTURESTORAGE2DPROC glad_glTextureStorage2D; -PFNGLGETNCONVOLUTIONFILTERPROC glad_glGetnConvolutionFilter; -PFNGLUNIFORM2UIVPROC glad_glUniform2uiv; -PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D; -PFNGLFINISHPROC glad_glFinish; -PFNGLDEPTHRANGEINDEXEDPROC glad_glDepthRangeIndexed; -PFNGLDELETESHADERPROC glad_glDeleteShader; -PFNGLGETINTERNALFORMATI64VPROC glad_glGetInternalformati64v; -PFNGLCOPYTEXTURESUBIMAGE1DPROC glad_glCopyTextureSubImage1D; -PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup; -PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv; -PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC glad_glGetProgramResourceLocationIndex; -PFNGLTEXTUREPARAMETERIUIVPROC glad_glTextureParameterIuiv; -PFNGLVIEWPORTPROC glad_glViewport; -PFNGLUNIFORM1UIVPROC glad_glUniform1uiv; -PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings; -PFNGLUNIFORM2UIPROC glad_glUniform2ui; -PFNGLGETNMAPDVPROC glad_glGetnMapdv; -PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback; -PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i; -PFNGLINVALIDATETEXIMAGEPROC glad_glInvalidateTexImage; -PFNGLVERTEXATTRIBFORMATPROC glad_glVertexAttribFormat; -PFNGLCLEARDEPTHPROC glad_glClearDepth; -PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv; -PFNGLTEXPARAMETERFPROC glad_glTexParameterf; -PFNGLVERTEXATTRIBBINDINGPROC glad_glVertexAttribBinding; -PFNGLTEXPARAMETERIPROC glad_glTexParameteri; -PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC glad_glGetActiveSubroutineUniformiv; -PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource; -PFNGLGETNTEXIMAGEPROC glad_glGetnTexImage; -PFNGLTEXBUFFERPROC glad_glTexBuffer; -PFNGLPIXELSTOREIPROC glad_glPixelStorei; -PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram; -PFNGLPIXELSTOREFPROC glad_glPixelStoref; -PFNGLCREATEBUFFERSPROC glad_glCreateBuffers; -PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v; -PFNGLCLIPCONTROLPROC glad_glClipControl; -PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv; -PFNGLGENPROGRAMPIPELINESPROC glad_glGenProgramPipelines; -PFNGLGETINTERNALFORMATIVPROC glad_glGetInternalformativ; -PFNGLCOPYTEXTURESUBIMAGE3DPROC glad_glCopyTextureSubImage3D; -PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv; -PFNGLLINKPROGRAMPROC glad_glLinkProgram; -PFNGLBINDTEXTUREPROC glad_glBindTexture; -PFNGLMULTIDRAWARRAYSINDIRECTPROC glad_glMultiDrawArraysIndirect; -PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel; -PFNGLGETPROGRAMPIPELINEINFOLOGPROC glad_glGetProgramPipelineInfoLog; -PFNGLGETSTRINGPROC glad_glGetString; -PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv; -PFNGLDETACHSHADERPROC glad_glDetachShader; -PFNGLPROGRAMUNIFORM3IPROC glad_glProgramUniform3i; -PFNGLUNIFORMMATRIX3X4DVPROC glad_glUniformMatrix3x4dv; -PFNGLENDQUERYPROC glad_glEndQuery; -PFNGLNORMALP3UIPROC glad_glNormalP3ui; -PFNGLFRAMEBUFFERPARAMETERIPROC glad_glFramebufferParameteri; -PFNGLGETPROGRAMRESOURCENAMEPROC glad_glGetProgramResourceName; -PFNGLUNIFORMMATRIX4X3DVPROC glad_glUniformMatrix4x3dv; -PFNGLDEPTHRANGEARRAYVPROC glad_glDepthRangeArrayv; -PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui; -PFNGLGETPROGRAMRESOURCELOCATIONPROC glad_glGetProgramResourceLocation; -PFNGLDELETETEXTURESPROC glad_glDeleteTextures; -PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC glad_glGetActiveAtomicCounterBufferiv; -PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate; -PFNGLDELETEQUERIESPROC glad_glDeleteQueries; -PFNGLNORMALP3UIVPROC glad_glNormalP3uiv; -PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f; -PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d; -PFNGLVIEWPORTINDEXEDFVPROC glad_glViewportIndexedfv; -PFNGLBINDBUFFERSBASEPROC glad_glBindBuffersBase; -PFNGLVERTEXATTRIBL4DVPROC glad_glVertexAttribL4dv; -PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv; -PFNGLCREATEVERTEXARRAYSPROC glad_glCreateVertexArrays; -PFNGLPROGRAMUNIFORM1DVPROC glad_glProgramUniform1dv; -PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s; -PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex; -PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage; -PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri; -PFNGLCLEARBUFFERSUBDATAPROC glad_glClearBufferSubData; -PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf; -PFNGLTEXSTORAGE1DPROC glad_glTexStorage1D; -PFNGLUNIFORM1FPROC glad_glUniform1f; -PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv; -PFNGLUNIFORM1DPROC glad_glUniform1d; -PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage; -PFNGLGETNCOMPRESSEDTEXIMAGEPROC glad_glGetnCompressedTexImage; -PFNGLUNIFORM1IPROC glad_glUniform1i; -PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib; -PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D; -PFNGLDISABLEPROC glad_glDisable; -PFNGLLOGICOPPROC glad_glLogicOp; -PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glad_glProgramUniformMatrix3x4fv; -PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC glad_glMultiDrawArraysIndirectCount; -PFNGLGETTEXTUREPARAMETERIUIVPROC glad_glGetTextureParameterIuiv; -PFNGLPROGRAMUNIFORM4UIVPROC glad_glProgramUniform4uiv; -PFNGLUNIFORM4UIPROC glad_glUniform4ui; -PFNGLCOPYTEXTURESUBIMAGE2DPROC glad_glCopyTextureSubImage2D; -PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer; -PFNGLCULLFACEPROC glad_glCullFace; -PFNGLPROGRAMUNIFORM4IPROC glad_glProgramUniform4i; -PFNGLPROGRAMUNIFORM4FPROC glad_glProgramUniform4f; -PFNGLVIEWPORTINDEXEDFPROC glad_glViewportIndexedf; -PFNGLPROGRAMUNIFORM4DPROC glad_glProgramUniform4d; -PFNGLTEXTUREPARAMETERIIVPROC glad_glTextureParameterIiv; -PFNGLGETSTRINGIPROC glad_glGetStringi; -PFNGLTEXTURESUBIMAGE2DPROC glad_glTextureSubImage2D; -PFNGLSCISSORINDEXEDPROC glad_glScissorIndexed; -PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC glad_glDrawTransformFeedbackStream; -PFNGLATTACHSHADERPROC glad_glAttachShader; -PFNGLQUERYCOUNTERPROC glad_glQueryCounter; -PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex; -PFNGLSHADERBINARYPROC glad_glShaderBinary; -PFNGLUNMAPNAMEDBUFFERPROC glad_glUnmapNamedBuffer; -PFNGLDRAWELEMENTSPROC glad_glDrawElements; -PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glNamedRenderbufferStorageMultisample; -PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv; -PFNGLCLEARNAMEDBUFFERDATAPROC glad_glClearNamedBufferData; -PFNGLUNIFORM1IVPROC glad_glUniform1iv; -PFNGLCREATESHADERPROGRAMVPROC glad_glCreateShaderProgramv; -PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv; -PFNGLREADBUFFERPROC glad_glReadBuffer; -PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv; -PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced; -PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap; -PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC glad_glCompressedTextureSubImage2D; -PFNGLPROGRAMUNIFORMMATRIX2FVPROC glad_glProgramUniformMatrix2fv; -PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv; -PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f; -PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv; -PFNGLPOINTPARAMETERIPROC glad_glPointParameteri; -PFNGLBLENDCOLORPROC glad_glBlendColor; -PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv; -PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC glad_glCheckNamedFramebufferStatus; -PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer; -PFNGLPOINTPARAMETERFPROC glad_glPointParameterf; -PFNGLPROGRAMUNIFORM1IVPROC glad_glProgramUniform1iv; -PFNGLGETVERTEXARRAYIVPROC glad_glGetVertexArrayiv; -PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s; -PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer; -PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv; -PFNGLGETPROGRAMSTAGEIVPROC glad_glGetProgramStageiv; -PFNGLISPROGRAMPROC glad_glIsProgram; -PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv; -PFNGLTEXTURESTORAGE3DPROC glad_glTextureStorage3D; -PFNGLUNIFORMMATRIX3X2DVPROC glad_glUniformMatrix3x2dv; -PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv; -PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC glad_glProgramUniformMatrix2x3dv; -PFNGLISTRANSFORMFEEDBACKPROC glad_glIsTransformFeedback; -PFNGLUNIFORM4IPROC glad_glUniform4i; -PFNGLACTIVETEXTUREPROC glad_glActiveTexture; -PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray; -PFNGLISPROGRAMPIPELINEPROC glad_glIsProgramPipeline; -PFNGLREADPIXELSPROC glad_glReadPixels; -PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv; -PFNGLUNIFORM4FPROC glad_glUniform4f; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample; -PFNGLCREATEPROGRAMPIPELINESPROC glad_glCreateProgramPipelines; -PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv; -PFNGLVERTEXATTRIBLPOINTERPROC glad_glVertexAttribLPointer; -PFNGLGETNUNIFORMFVPROC glad_glGetnUniformfv; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex; -PFNGLVERTEXATTRIBL2DVPROC glad_glVertexAttribL2dv; -PFNGLENABLEVERTEXARRAYATTRIBPROC glad_glEnableVertexArrayAttrib; -PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC glad_glDrawTransformFeedbackStreamInstanced; -PFNGLGETACTIVESUBROUTINENAMEPROC glad_glGetActiveSubroutineName; -PFNGLVERTEXATTRIBL2DPROC glad_glVertexAttribL2d; -PFNGLSTENCILFUNCPROC glad_glStencilFunc; -PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC glad_glInvalidateNamedFramebufferData; -PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup; -PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding; -PFNGLGETVERTEXARRAYINDEXEDIVPROC glad_glGetVertexArrayIndexediv; -PFNGLCOLORP4UIPROC glad_glColorP4ui; -PFNGLUSEPROGRAMSTAGESPROC glad_glUseProgramStages; -PFNGLPROGRAMUNIFORM3FPROC glad_glProgramUniform3f; -PFNGLPROGRAMUNIFORM3DPROC glad_glProgramUniform3d; -PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv; -PFNGLGETPROGRAMPIPELINEIVPROC glad_glGetProgramPipelineiv; -PFNGLTEXSTORAGE3DPROC glad_glTexStorage3D; -PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC glad_glNamedFramebufferDrawBuffer; -PFNGLGETQUERYINDEXEDIVPROC glad_glGetQueryIndexediv; -PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog; -PFNGLOBJECTLABELPROC glad_glObjectLabel; -PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i; -PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData; -PFNGLGETVERTEXATTRIBLDVPROC glad_glGetVertexAttribLdv; -PFNGLGETNUNIFORMUIVPROC glad_glGetnUniformuiv; -PFNGLGETQUERYBUFFEROBJECTIVPROC glad_glGetQueryBufferObjectiv; -PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate; -PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui; -PFNGLGENBUFFERSPROC glad_glGenBuffers; -PFNGLGETSUBROUTINEINDEXPROC glad_glGetSubroutineIndex; -PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv; -PFNGLGETNPOLYGONSTIPPLEPROC glad_glGetnPolygonStipple; -PFNGLBLENDFUNCPROC glad_glBlendFunc; -PFNGLCREATEPROGRAMPROC glad_glCreateProgram; -PFNGLTEXIMAGE3DPROC glad_glTexImage3D; -PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer; -PFNGLCLEARNAMEDFRAMEBUFFERFVPROC glad_glClearNamedFramebufferfv; -PFNGLGETNAMEDBUFFERSUBDATAPROC glad_glGetNamedBufferSubData; -PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex; -PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC glad_glFlushMappedNamedBufferRange; -PFNGLINVALIDATETEXSUBIMAGEPROC glad_glInvalidateTexSubImage; -PFNGLBINDIMAGETEXTURESPROC glad_glBindImageTextures; -PFNGLGETINTEGER64VPROC glad_glGetInteger64v; -PFNGLBINDPROGRAMPIPELINEPROC glad_glBindProgramPipeline; -PFNGLSCISSORPROC glad_glScissor; -PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv; -PFNGLGETBOOLEANVPROC glad_glGetBooleanv; -PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC glad_glNamedFramebufferRenderbuffer; -PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv; -PFNGLUNIFORM3UIVPROC glad_glUniform3uiv; -PFNGLCLEARCOLORPROC glad_glClearColor; -PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv; -PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv; -PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v; -PFNGLPROGRAMUNIFORM4DVPROC glad_glProgramUniform4dv; -PFNGLCOLORP4UIVPROC glad_glColorP4uiv; -PFNGLGETTEXTURELEVELPARAMETERIVPROC glad_glGetTextureLevelParameteriv; -PFNGLGETNUNIFORMIVPROC glad_glGetnUniformiv; -PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv; -PFNGLUNIFORM3UIPROC glad_glUniform3ui; -PFNGLPROGRAMUNIFORM3UIVPROC glad_glProgramUniform3uiv; -PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv; -PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv; -PFNGLUNIFORM2FVPROC glad_glUniform2fv; -PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC glad_glGetActiveSubroutineUniformName; -PFNGLGETPROGRAMRESOURCEINDEXPROC glad_glGetProgramResourceIndex; -PFNGLDRAWELEMENTSINDIRECTPROC glad_glDrawElementsIndirect; -PFNGLGETTEXTURELEVELPARAMETERFVPROC glad_glGetTextureLevelParameterfv; -PFNGLGETNAMEDBUFFERPOINTERVPROC glad_glGetNamedBufferPointerv; -PFNGLDISPATCHCOMPUTEINDIRECTPROC glad_glDispatchComputeIndirect; -PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC glad_glInvalidateNamedFramebufferSubData; -PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv; -PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange; -PFNGLTEXTURESUBIMAGE1DPROC glad_glTextureSubImage1D; -PFNGLVERTEXATTRIBL3DVPROC glad_glVertexAttribL3dv; -PFNGLGETUNIFORMDVPROC glad_glGetUniformdv; -PFNGLGETQUERYBUFFEROBJECTUI64VPROC glad_glGetQueryBufferObjectui64v; -PFNGLCLEARDEPTHFPROC glad_glClearDepthf; -PFNGLCREATERENDERBUFFERSPROC glad_glCreateRenderbuffers; -PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv; -PFNGLGENTRANSFORMFEEDBACKSPROC glad_glGenTransformFeedbacks; -PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv; -PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv; -PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC glad_glProgramUniformMatrix4x3dv; -PFNGLDEPTHFUNCPROC glad_glDepthFunc; -PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D; -PFNGLPROGRAMBINARYPROC glad_glProgramBinary; -PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv; -PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv; -PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui; -PFNGLBUFFERSTORAGEPROC glad_glBufferStorage; -PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync; -PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui; -PFNGLGETFLOATI_VPROC glad_glGetFloati_v; -PFNGLCOLORMASKPROC glad_glColorMask; -PFNGLTEXTUREBUFFERPROC glad_glTextureBuffer; -PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv; -PFNGLBLENDEQUATIONPROC glad_glBlendEquation; -PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation; -PFNGLUNIFORMMATRIX2X4DVPROC glad_glUniformMatrix2x4dv; -PFNGLVERTEXARRAYATTRIBFORMATPROC glad_glVertexArrayAttribFormat; -PFNGLREADNPIXELSPROC glad_glReadnPixels; -PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC glad_glNamedFramebufferDrawBuffers; -PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback; -PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv; -PFNGLGETUNIFORMSUBROUTINEUIVPROC glad_glGetUniformSubroutineuiv; -PFNGLUNIFORM4FVPROC glad_glUniform4fv; -PFNGLBINDVERTEXBUFFERPROC glad_glBindVertexBuffer; -PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert; -PFNGLCREATESAMPLERSPROC glad_glCreateSamplers; -PFNGLGETPROGRAMRESOURCEIVPROC glad_glGetProgramResourceiv; -PFNGLCLEARBUFFERDATAPROC glad_glClearBufferData; -PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback; -PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv; -PFNGLISSAMPLERPROC glad_glIsSampler; -PFNGLVERTEXP3UIPROC glad_glVertexP3ui; -PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor; -PFNGLBINDSAMPLERSPROC glad_glBindSamplers; -PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D; -PFNGLDELETETRANSFORMFEEDBACKSPROC glad_glDeleteTransformFeedbacks; -PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D; -PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex; -PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus; -PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender; -PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv; -PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation; -PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv; -PFNGLUNIFORMMATRIX2DVPROC glad_glUniformMatrix2dv; -PFNGLBLENDFUNCIPROC glad_glBlendFunci; -PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv; -PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements; -PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv; -PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase; -PFNGLBUFFERSUBDATAPROC glad_glBufferSubData; -PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv; -PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange; -PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture; -PFNGLBLENDFUNCSEPARATEIPROC glad_glBlendFuncSeparatei; -PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glad_glProgramUniformMatrix4x2fv; -PFNGLVERTEXATTRIBL1DPROC glad_glVertexAttribL1d; -PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays; -PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv; -PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv; -PFNGLGETSHADERPRECISIONFORMATPROC glad_glGetShaderPrecisionFormat; -PFNGLTEXTUREVIEWPROC glad_glTextureView; -PFNGLDISABLEIPROC glad_glDisablei; -PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glad_glProgramUniformMatrix2x4fv; -PFNGLSHADERSOURCEPROC glad_glShaderSource; -PFNGLGETNSEPARABLEFILTERPROC glad_glGetnSeparableFilter; -PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers; -PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv; -PFNGLRELEASESHADERCOMPILERPROC glad_glReleaseShaderCompiler; -PFNGLVERTEXATTRIBIFORMATPROC glad_glVertexAttribIFormat; -PFNGLCREATEFRAMEBUFFERSPROC glad_glCreateFramebuffers; -PFNGLGETSYNCIVPROC glad_glGetSynciv; -PFNGLGETNPIXELMAPFVPROC glad_glGetnPixelMapfv; -PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv; -PFNGLPATCHPARAMETERFVPROC glad_glPatchParameterfv; -PFNGLPROGRAMUNIFORM2IPROC glad_glProgramUniform2i; -PFNGLGETNAMEDBUFFERPARAMETERI64VPROC glad_glGetNamedBufferParameteri64v; -PFNGLBEGINQUERYPROC glad_glBeginQuery; -PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv; -PFNGLBINDBUFFERPROC glad_glBindBuffer; -PFNGLTEXSTORAGE2DMULTISAMPLEPROC glad_glTexStorage2DMultisample; -PFNGLPROGRAMUNIFORM2DPROC glad_glProgramUniform2d; -PFNGLPROGRAMUNIFORM2FPROC glad_glProgramUniform2f; -PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv; -PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv; -PFNGLBUFFERDATAPROC glad_glBufferData; -PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv; -PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui; -PFNGLGETERRORPROC glad_glGetError; -PFNGLCREATETRANSFORMFEEDBACKSPROC glad_glCreateTransformFeedbacks; -PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui; -PFNGLGETFLOATVPROC glad_glGetFloatv; -PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D; -PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv; -PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv; -PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i; -PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv; -PFNGLUNIFORM4DPROC glad_glUniform4d; -PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv; -PFNGLGETINTEGERVPROC glad_glGetIntegerv; -PFNGLGETVERTEXARRAYINDEXED64IVPROC glad_glGetVertexArrayIndexed64iv; -PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv; -PFNGLPROGRAMUNIFORMMATRIX3DVPROC glad_glProgramUniformMatrix3dv; -PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D; -PFNGLISQUERYPROC glad_glIsQuery; -PFNGLBLENDBARRIERPROC glad_glBlendBarrier; -PFNGLPROGRAMUNIFORM2UIPROC glad_glProgramUniform2ui; -PFNGLPROGRAMUNIFORM4UIPROC glad_glProgramUniform4ui; -PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv; -PFNGLTEXIMAGE2DPROC glad_glTexImage2D; -PFNGLSTENCILMASKPROC glad_glStencilMask; -PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv; -PFNGLISTEXTUREPROC glad_glIsTexture; -PFNGLNAMEDBUFFERDATAPROC glad_glNamedBufferData; -PFNGLUNIFORM1FVPROC glad_glUniform1fv; -PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv; -PFNGLCLEARNAMEDBUFFERSUBDATAPROC glad_glClearNamedBufferSubData; -PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv; -PFNGLSCISSORINDEXEDVPROC glad_glScissorIndexedv; -PFNGLUNIFORM3DVPROC glad_glUniform3dv; -PFNGLGETNPIXELMAPUIVPROC glad_glGetnPixelMapuiv; -PFNGLPROGRAMUNIFORM3FVPROC glad_glProgramUniform3fv; -PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC glad_glGetSubroutineUniformLocation; -PFNGLGETFRAMEBUFFERPARAMETERIVPROC glad_glGetFramebufferParameteriv; -PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv; -PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC glad_glGetCompressedTextureSubImage; -PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData; -PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv; -PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d; -PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f; -PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv; -PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v; -PFNGLDEPTHMASKPROC glad_glDepthMask; -PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s; -PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample; -PFNGLPROGRAMUNIFORM1FVPROC glad_glProgramUniform1fv; -PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex; -PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample; -PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform; -PFNGLFRONTFACEPROC glad_glFrontFace; -PFNGLTEXBUFFERRANGEPROC glad_glTexBufferRange; -PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC glad_glNamedFramebufferTextureLayer; -PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC glad_glNamedFramebufferParameteri; -PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC glad_glDrawArraysInstancedBaseInstance; -PFNGLDELETEPROGRAMPIPELINESPROC glad_glDeleteProgramPipelines; -int GLAD_GL_SGIX_pixel_tiles; -int GLAD_GL_EXT_post_depth_coverage; -int GLAD_GL_NV_non_square_matrices; -int GLAD_GL_APPLE_element_array; -int GLAD_GL_EXT_EGL_image_array; -int GLAD_GL_AMD_multi_draw_indirect; -int GLAD_GL_QCOM_tiled_rendering; -int GLAD_GL_EXT_blend_subtract; -int GLAD_GL_SGIX_tag_sample_buffer; -int GLAD_GL_OES_standard_derivatives; -int GLAD_GL_NV_point_sprite; -int GLAD_GL_IBM_texture_mirrored_repeat; -int GLAD_GL_NV_sRGB_formats; -int GLAD_GL_APPLE_transform_hint; -int GLAD_GL_ATI_separate_stencil; -int GLAD_GL_NV_shader_atomic_int64; -int GLAD_GL_EXT_semaphore_win32; -int GLAD_GL_OES_get_program_binary; -int GLAD_GL_NV_vertex_program2_option; -int GLAD_GL_EXT_sRGB; -int GLAD_GL_EXT_texture_buffer_object; -int GLAD_GL_OES_packed_depth_stencil; -int GLAD_GL_OES_geometry_shader; -int GLAD_GL_NV_read_depth_stencil; -int GLAD_GL_ARB_vertex_blend; -int GLAD_GL_OVR_multiview; -int GLAD_GL_QCOM_framebuffer_foveated; -int GLAD_GL_EXT_multisampled_render_to_texture; -int GLAD_GL_AMD_shader_gpu_shader_half_float_fetch; -int GLAD_GL_NV_vertex_program2; -int GLAD_GL_ARB_program_interface_query; -int GLAD_GL_EXT_misc_attribute; -int GLAD_GL_NV_multisample_coverage; -int GLAD_GL_EXT_robustness; -int GLAD_GL_ARB_shading_language_packing; -int GLAD_GL_EXT_texture_cube_map; -int GLAD_GL_OES_texture_half_float_linear; -int GLAD_GL_NV_viewport_array2; -int GLAD_GL_ARB_texture_stencil8; -int GLAD_GL_EXT_index_func; -int GLAD_GL_ANGLE_texture_usage; -int GLAD_GL_EXT_memory_object_fd; -int GLAD_GL_OES_compressed_paletted_texture; -int GLAD_GL_OES_vertex_array_object; -int GLAD_GL_MESA_shader_integer_functions; -int GLAD_GL_NV_shader_buffer_load; -int GLAD_GL_EXT_primitive_bounding_box; -int GLAD_GL_NV_texture_border_clamp; -int GLAD_GL_EXT_color_subtable; -int GLAD_GL_OES_vertex_half_float; -int GLAD_GL_SUNX_constant_data; -int GLAD_GL_EXT_texture_compression_s3tc; -int GLAD_GL_OES_fragment_precision_high; -int GLAD_GL_EXT_multi_draw_arrays; -int GLAD_GL_ARB_shader_atomic_counters; -int GLAD_GL_ARB_arrays_of_arrays; -int GLAD_GL_NV_conditional_render; -int GLAD_GL_OES_texture_storage_multisample_2d_array; -int GLAD_GL_EXT_texture_env_combine; -int GLAD_GL_NV_fog_distance; -int GLAD_GL_ANGLE_depth_texture; -int GLAD_GL_SGIX_async_histogram; -int GLAD_GL_NV_explicit_attrib_location; -int GLAD_GL_MESA_resize_buffers; -int GLAD_GL_EXT_shader_io_blocks; -int GLAD_GL_NV_light_max_exponent; -int GLAD_GL_NV_texture_env_combine4; -int GLAD_GL_ARB_spirv_extensions; -int GLAD_GL_ARB_texture_view; -int GLAD_GL_ARB_texture_env_combine; -int GLAD_GL_OES_geometry_point_size; -int GLAD_GL_ARB_map_buffer_range; -int GLAD_GL_EXT_convolution; -int GLAD_GL_OES_tessellation_shader; -int GLAD_GL_NV_compute_program5; -int GLAD_GL_NV_vertex_attrib_integer_64bit; -int GLAD_GL_EXT_paletted_texture; -int GLAD_GL_ARB_texture_buffer_object; -int GLAD_GL_ATI_pn_triangles; -int GLAD_GL_AMD_compressed_ATC_texture; -int GLAD_GL_SGIX_resample; -int GLAD_GL_SGIX_flush_raster; -int GLAD_GL_EXT_shader_implicit_conversions; -int GLAD_GL_EXT_light_texture; -int GLAD_GL_ARB_point_sprite; -int GLAD_GL_EXT_multi_draw_indirect; -int GLAD_GL_SUN_convolution_border_modes; -int GLAD_GL_EXT_semaphore_fd; -int GLAD_GL_NV_parameter_buffer_object2; -int GLAD_GL_ARB_half_float_pixel; -int GLAD_GL_EXT_color_buffer_float; -int GLAD_GL_NV_tessellation_program5; -int GLAD_GL_REND_screen_coordinates; -int GLAD_GL_IMG_program_binary; -int GLAD_GL_EXT_shared_texture_palette; -int GLAD_GL_ARM_mali_program_binary; -int GLAD_GL_EXT_packed_float; -int GLAD_GL_OML_subsample; -int GLAD_GL_SGIX_vertex_preclip; -int GLAD_GL_SGIX_texture_scale_bias; -int GLAD_GL_AMD_draw_buffers_blend; -int GLAD_GL_APPLE_texture_range; -int GLAD_GL_OES_compressed_ETC1_RGB8_texture; -int GLAD_GL_EXT_texture_array; -int GLAD_GL_NV_texture_barrier; -int GLAD_GL_OES_copy_image; -int GLAD_GL_QCOM_extended_get2; -int GLAD_GL_ARB_texture_query_levels; -int GLAD_GL_NV_texgen_emboss; -int GLAD_GL_EXT_texture_swizzle; -int GLAD_GL_ARB_texture_rg; -int GLAD_GL_ARB_vertex_type_2_10_10_10_rev; -int GLAD_GL_EXT_shadow_samplers; -int GLAD_GL_ARB_fragment_shader; -int GLAD_GL_3DFX_tbuffer; -int GLAD_GL_GREMEDY_frame_terminator; -int GLAD_GL_IBM_cull_vertex; -int GLAD_GL_EXT_separate_shader_objects; -int GLAD_GL_APPLE_texture_packed_float; -int GLAD_GL_NV_texture_multisample; -int GLAD_GL_ARB_shader_objects; -int GLAD_GL_ARB_framebuffer_object; -int GLAD_GL_OES_tessellation_point_size; -int GLAD_GL_EXT_sRGB_write_control; -int GLAD_GL_OES_draw_buffers_indexed; -int GLAD_GL_EXT_external_buffer; -int GLAD_GL_ATI_envmap_bumpmap; -int GLAD_GL_AMD_shader_explicit_vertex_parameter; -int GLAD_GL_ARB_robust_buffer_access_behavior; -int GLAD_GL_ARB_shader_stencil_export; -int GLAD_GL_OES_sample_variables; -int GLAD_GL_NV_texture_rectangle; -int GLAD_GL_ARB_enhanced_layouts; -int GLAD_GL_ARB_texture_rectangle; -int GLAD_GL_SGI_texture_color_table; -int GLAD_GL_NV_viewport_swizzle; -int GLAD_GL_ATI_map_object_buffer; -int GLAD_GL_QCOM_texture_foveated; -int GLAD_GL_ARB_robustness; -int GLAD_GL_NV_pixel_data_range; -int GLAD_GL_ANGLE_framebuffer_multisample; -int GLAD_GL_EXT_framebuffer_blit; -int GLAD_GL_QCOM_binning_control; -int GLAD_GL_ARB_gpu_shader_fp64; -int GLAD_GL_EXT_occlusion_query_boolean; -int GLAD_GL_NV_command_list; -int GLAD_GL_EXT_copy_image; -int GLAD_GL_SGIX_depth_texture; -int GLAD_GL_AMD_compressed_3DC_texture; -int GLAD_GL_AMD_framebuffer_sample_positions; -int GLAD_GL_GREMEDY_string_marker; -int GLAD_GL_ARB_texture_compression_bptc; -int GLAD_GL_EXT_subtexture; -int GLAD_GL_IMG_texture_compression_pvrtc2; -int GLAD_GL_EXT_pixel_transform_color_table; -int GLAD_GL_EXT_texture_compression_rgtc; -int GLAD_GL_ARB_shader_atomic_counter_ops; -int GLAD_GL_SGIX_depth_pass_instrument; -int GLAD_GL_EXT_gpu_program_parameters; -int GLAD_GL_NV_image_formats; -int GLAD_GL_NV_evaluators; -int GLAD_GL_EXT_shader_framebuffer_fetch_non_coherent; -int GLAD_GL_SGIS_texture_filter4; -int GLAD_GL_AMD_performance_monitor; -int GLAD_GL_NV_geometry_shader4; -int GLAD_GL_EXT_stencil_clear_tag; -int GLAD_GL_NV_vertex_program1_1; -int GLAD_GL_NV_present_video; -int GLAD_GL_ARB_texture_compression_rgtc; -int GLAD_GL_EXT_YUV_target; -int GLAD_GL_HP_convolution_border_modes; -int GLAD_GL_EXT_multiview_draw_buffers; -int GLAD_GL_QCOM_extended_get; -int GLAD_GL_EXT_shader_integer_mix; -int GLAD_GL_SGIX_framezoom; -int GLAD_GL_ARB_stencil_texturing; -int GLAD_GL_EXT_texture_norm16; -int GLAD_GL_EXT_shader_non_constant_global_initializers; -int GLAD_GL_ARB_shader_clock; -int GLAD_GL_NV_shader_atomic_fp16_vector; -int GLAD_GL_OES_viewport_array; -int GLAD_GL_SGIX_fog_offset; -int GLAD_GL_ARB_draw_elements_base_vertex; -int GLAD_GL_EXT_tessellation_shader; -int GLAD_GL_INGR_interlace_read; -int GLAD_GL_NV_transform_feedback; -int GLAD_GL_NV_generate_mipmap_sRGB; -int GLAD_GL_EXT_geometry_point_size; -int GLAD_GL_OES_EGL_image_external_essl3; -int GLAD_GL_NV_fragment_program; -int GLAD_GL_AMD_stencil_operation_extended; -int GLAD_GL_EXT_texture_type_2_10_10_10_REV; -int GLAD_GL_EXT_discard_framebuffer; -int GLAD_GL_NV_read_depth; -int GLAD_GL_ARB_seamless_cubemap_per_texture; -int GLAD_GL_EXT_texture_buffer; -int GLAD_GL_ARB_instanced_arrays; -int GLAD_GL_ARB_get_texture_sub_image; -int GLAD_GL_NV_vertex_array_range2; -int GLAD_GL_KHR_robustness; -int GLAD_GL_AMD_sparse_texture; -int GLAD_GL_ARB_clip_control; -int GLAD_GL_NV_fragment_coverage_to_color; -int GLAD_GL_NV_fence; -int GLAD_GL_ARB_texture_buffer_range; -int GLAD_GL_SUN_mesh_array; -int GLAD_GL_ARB_vertex_attrib_binding; -int GLAD_GL_ARB_framebuffer_no_attachments; -int GLAD_GL_ARB_cl_event; -int GLAD_GL_QCOM_writeonly_rendering; -int GLAD_GL_EXT_vertex_weighting; -int GLAD_GL_OES_draw_elements_base_vertex; -int GLAD_GL_ARB_derivative_control; -int GLAD_GL_NV_packed_depth_stencil; -int GLAD_GL_ANGLE_program_binary; -int GLAD_GL_OES_single_precision; -int GLAD_GL_OES_primitive_bounding_box; -int GLAD_GL_NV_primitive_restart; -int GLAD_GL_SUN_global_alpha; -int GLAD_GL_ARB_fragment_shader_interlock; -int GLAD_GL_ANGLE_texture_compression_dxt3; -int GLAD_GL_EXT_texture_object; -int GLAD_GL_AMD_name_gen_delete; -int GLAD_GL_NV_texture_compression_vtc; -int GLAD_GL_NV_sample_mask_override_coverage; -int GLAD_GL_NV_texture_shader3; -int GLAD_GL_MESA_tile_raster_order; -int GLAD_GL_ARB_texture_filter_anisotropic; -int GLAD_GL_EXT_texture; -int GLAD_GL_ARB_buffer_storage; -int GLAD_GL_AMD_shader_atomic_counter_ops; -int GLAD_GL_APPLE_vertex_program_evaluators; -int GLAD_GL_AMD_texture_gather_bias_lod; -int GLAD_GL_NV_texgen_reflection; -int GLAD_GL_ARB_explicit_uniform_location; -int GLAD_GL_FJ_shader_binary_GCCSO; -int GLAD_GL_EXT_disjoint_timer_query; -int GLAD_GL_ARB_depth_buffer_float; -int GLAD_GL_NV_path_rendering_shared_edge; -int GLAD_GL_SGIX_shadow_ambient; -int GLAD_GL_NV_read_buffer; -int GLAD_GL_IMG_bindless_texture; -int GLAD_GL_ARB_texture_cube_map; -int GLAD_GL_AMD_vertex_shader_viewport_index; -int GLAD_GL_SGIX_list_priority; -int GLAD_GL_NV_vertex_buffer_unified_memory; -int GLAD_GL_NV_uniform_buffer_unified_memory; -int GLAD_GL_ARB_clear_texture; -int GLAD_GL_NV_texture_compression_s3tc_update; -int GLAD_GL_ATI_texture_env_combine3; -int GLAD_GL_NV_depth_clamp; -int GLAD_GL_ARB_map_buffer_alignment; -int GLAD_GL_EXT_memory_object; -int GLAD_GL_NV_blend_equation_advanced; -int GLAD_GL_SGIS_sharpen_texture; -int GLAD_GL_KHR_robust_buffer_access_behavior; -int GLAD_GL_ARB_pipeline_statistics_query; -int GLAD_GL_ARB_vertex_program; -int GLAD_GL_NV_pixel_buffer_object; -int GLAD_GL_EXT_clip_cull_distance; -int GLAD_GL_ARB_texture_rgb10_a2ui; -int GLAD_GL_EXT_draw_transform_feedback; -int GLAD_GL_OML_interlace; -int GLAD_GL_OES_texture_buffer; -int GLAD_GL_ATI_pixel_format_float; -int GLAD_GL_NV_clip_space_w_scaling; -int GLAD_GL_NV_polygon_mode; -int GLAD_GL_ARB_vertex_buffer_object; -int GLAD_GL_OES_sample_shading; -int GLAD_GL_EXT_shadow_funcs; -int GLAD_GL_ATI_text_fragment_shader; -int GLAD_GL_NV_vertex_array_range; -int GLAD_GL_SGIX_fragment_lighting; -int GLAD_GL_AMD_shader_ballot; -int GLAD_GL_NV_texture_expand_normal; -int GLAD_GL_NV_framebuffer_multisample_coverage; -int GLAD_GL_EXT_timer_query; -int GLAD_GL_ANGLE_framebuffer_blit; -int GLAD_GL_EXT_vertex_array_bgra; -int GLAD_GL_QCOM_alpha_test; -int GLAD_GL_NV_bindless_texture; -int GLAD_GL_KHR_debug; -int GLAD_GL_SGIS_texture_border_clamp; -int GLAD_GL_ATI_vertex_attrib_array_object; -int GLAD_GL_SGIX_clipmap; -int GLAD_GL_EXT_geometry_shader4; -int GLAD_GL_ARB_shader_texture_image_samples; -int GLAD_GL_MESA_ycbcr_texture; -int GLAD_GL_MESAX_texture_stack; -int GLAD_GL_EXT_blend_func_extended; -int GLAD_GL_AMD_seamless_cubemap_per_texture; -int GLAD_GL_EXT_bindable_uniform; -int GLAD_GL_KHR_texture_compression_astc_hdr; -int GLAD_GL_ARB_shader_ballot; -int GLAD_GL_KHR_blend_equation_advanced; -int GLAD_GL_ARB_fragment_program_shadow; -int GLAD_GL_OES_shader_image_atomic; -int GLAD_GL_ATI_element_array; -int GLAD_GL_ANGLE_instanced_arrays; -int GLAD_GL_AMD_texture_texture4; -int GLAD_GL_SGIX_reference_plane; -int GLAD_GL_EXT_stencil_two_side; -int GLAD_GL_EXT_texture_format_sRGB_override; -int GLAD_GL_ARB_transform_feedback_overflow_query; -int GLAD_GL_SGIX_texture_lod_bias; -int GLAD_GL_KHR_no_error; -int GLAD_GL_NV_explicit_multisample; -int GLAD_GL_NV_stereo_view_rendering; -int GLAD_GL_IBM_static_data; -int GLAD_GL_EXT_clip_volume_hint; -int GLAD_GL_EXT_texture_perturb_normal; -int GLAD_GL_NV_fragment_program2; -int GLAD_GL_NV_fragment_program4; -int GLAD_GL_EXT_point_parameters; -int GLAD_GL_PGI_misc_hints; -int GLAD_GL_EXT_EGL_image_storage; -int GLAD_GL_SGIX_subsample; -int GLAD_GL_AMD_shader_stencil_export; -int GLAD_GL_ARB_shader_texture_lod; -int GLAD_GL_ARB_vertex_shader; -int GLAD_GL_ARB_depth_clamp; -int GLAD_GL_OES_mapbuffer; -int GLAD_GL_SGIS_texture_select; -int GLAD_GL_NV_texture_shader; -int GLAD_GL_ARB_tessellation_shader; -int GLAD_GL_EXT_draw_buffers2; -int GLAD_GL_ARB_vertex_attrib_64bit; -int GLAD_GL_EXT_texture_filter_minmax; -int GLAD_GL_NV_query_resource; -int GLAD_GL_NV_read_stencil; -int GLAD_GL_AMD_interleaved_elements; -int GLAD_GL_ARB_fragment_program; -int GLAD_GL_NV_framebuffer_multisample; -int GLAD_GL_OML_resample; -int GLAD_GL_APPLE_ycbcr_422; -int GLAD_GL_SGIX_texture_add_env; -int GLAD_GL_ARB_shadow_ambient; -int GLAD_GL_ARB_texture_storage; -int GLAD_GL_EXT_pixel_buffer_object; -int GLAD_GL_ARB_copy_image; -int GLAD_GL_SGIS_pixel_texture; -int GLAD_GL_SGIS_generate_mipmap; -int GLAD_GL_SGIX_instruments; -int GLAD_GL_ARB_fragment_layer_viewport; -int GLAD_GL_ARB_shader_storage_buffer_object; -int GLAD_GL_EXT_sparse_texture2; -int GLAD_GL_EXT_blend_minmax; -int GLAD_GL_MESA_pack_invert; -int GLAD_GL_OES_required_internalformat; -int GLAD_GL_ARB_base_instance; -int GLAD_GL_EXT_texture_mirror_clamp_to_edge; -int GLAD_GL_SGIX_convolution_accuracy; -int GLAD_GL_PGI_vertex_hints; -int GLAD_GL_AMD_transform_feedback4; -int GLAD_GL_ARB_ES3_1_compatibility; -int GLAD_GL_EXT_memory_object_win32; -int GLAD_GL_EXT_texture_integer; -int GLAD_GL_ARB_texture_multisample; -int GLAD_GL_ATI_vertex_streams; -int GLAD_GL_AMD_gpu_shader_int64; -int GLAD_GL_S3_s3tc; -int GLAD_GL_ARB_query_buffer_object; -int GLAD_GL_IMG_multisampled_render_to_texture; -int GLAD_GL_AMD_vertex_shader_tessellator; -int GLAD_GL_ARB_invalidate_subdata; -int GLAD_GL_EXT_texture_format_BGRA8888; -int GLAD_GL_APPLE_copy_texture_levels; -int GLAD_GL_OVR_multiview_multisampled_render_to_texture; -int GLAD_GL_OES_texture_stencil8; -int GLAD_GL_NV_draw_vulkan_image; -int GLAD_GL_EXT_index_material; -int GLAD_GL_OES_stencil4; -int GLAD_GL_NVX_linked_gpu_multicast; -int GLAD_GL_OES_stencil1; -int GLAD_GL_NV_blend_equation_advanced_coherent; -int GLAD_GL_OES_texture_3D; -int GLAD_GL_KHR_texture_compression_astc_sliced_3d; -int GLAD_GL_INTEL_parallel_arrays; -int GLAD_GL_ATI_draw_buffers; -int GLAD_GL_WIN_specular_fog; -int GLAD_GL_EXT_cmyka; -int GLAD_GL_SGIX_pixel_texture; -int GLAD_GL_APPLE_specular_vector; -int GLAD_GL_DMP_shader_binary; -int GLAD_GL_ARB_compatibility; -int GLAD_GL_EXT_texture_storage; -int GLAD_GL_ARB_timer_query; -int GLAD_GL_SGIX_interlace; -int GLAD_GL_NV_parameter_buffer_object; -int GLAD_GL_AMD_shader_trinary_minmax; -int GLAD_GL_ARB_direct_state_access; -int GLAD_GL_EXT_rescale_normal; -int GLAD_GL_ARB_pixel_buffer_object; -int GLAD_GL_ARB_uniform_buffer_object; -int GLAD_GL_ARB_vertex_type_10f_11f_11f_rev; -int GLAD_GL_ARB_texture_swizzle; -int GLAD_GL_NV_transform_feedback2; -int GLAD_GL_SGIX_async_pixel; -int GLAD_GL_NV_fragment_program_option; -int GLAD_GL_ARB_explicit_attrib_location; -int GLAD_GL_EXT_sparse_texture; -int GLAD_GL_EXT_blend_color; -int GLAD_GL_NV_shader_thread_group; -int GLAD_GL_EXT_stencil_wrap; -int GLAD_GL_EXT_index_array_formats; -int GLAD_GL_OES_texture_float_linear; -int GLAD_GL_IMG_texture_compression_pvrtc; -int GLAD_GL_OVR_multiview2; -int GLAD_GL_EXT_histogram; -int GLAD_GL_EXT_polygon_offset; -int GLAD_GL_SGIS_point_parameters; -int GLAD_GL_DMP_program_binary; -int GLAD_GL_SGIX_ycrcb; -int GLAD_GL_EXT_draw_buffers_indexed; -int GLAD_GL_EXT_direct_state_access; -int GLAD_GL_ARB_cull_distance; -int GLAD_GL_AMD_sample_positions; -int GLAD_GL_NV_vertex_program; -int GLAD_GL_NV_shader_thread_shuffle; -int GLAD_GL_ARB_shader_precision; -int GLAD_GL_EXT_vertex_shader; -int GLAD_GL_EXT_blend_func_separate; -int GLAD_GL_APPLE_fence; -int GLAD_GL_NV_query_resource_tag; -int GLAD_GL_OES_byte_coordinates; -int GLAD_GL_NV_draw_instanced; -int GLAD_GL_ARB_transpose_matrix; -int GLAD_GL_ARB_provoking_vertex; -int GLAD_GL_OES_fbo_render_mipmap; -int GLAD_GL_EXT_fog_coord; -int GLAD_GL_OES_element_index_uint; -int GLAD_GL_EXT_buffer_storage; -int GLAD_GL_EXT_vertex_array; -int GLAD_GL_ARB_half_float_vertex; -int GLAD_GL_EXT_blend_equation_separate; -int GLAD_GL_NV_framebuffer_mixed_samples; -int GLAD_GL_NVX_conditional_render; -int GLAD_GL_ARB_multi_draw_indirect; -int GLAD_GL_EXT_raster_multisample; -int GLAD_GL_NV_copy_image; -int GLAD_GL_HP_texture_lighting; -int GLAD_GL_INTEL_framebuffer_CMAA; -int GLAD_GL_EXT_texture_border_clamp; -int GLAD_GL_EXT_texture_compression_astc_decode_mode; -int GLAD_GL_EXT_draw_buffers; -int GLAD_GL_ARB_transform_feedback2; -int GLAD_GL_ARB_transform_feedback3; -int GLAD_GL_SGIX_ycrcba; -int GLAD_GL_NV_framebuffer_blit; -int GLAD_GL_EXT_debug_marker; -int GLAD_GL_EXT_bgra; -int GLAD_GL_OES_texture_view; -int GLAD_GL_ARB_sparse_texture_clamp; -int GLAD_GL_EXT_pixel_transform; -int GLAD_GL_ARB_conservative_depth; -int GLAD_GL_ATI_fragment_shader; -int GLAD_GL_ARB_vertex_array_object; -int GLAD_GL_EXT_tessellation_point_size; -int GLAD_GL_EXT_color_buffer_half_float; -int GLAD_GL_SUN_triangle_list; -int GLAD_GL_OES_texture_half_float; -int GLAD_GL_EXT_texture_view; -int GLAD_GL_EXT_texture_env_add; -int GLAD_GL_EXT_packed_depth_stencil; -int GLAD_GL_EXT_texture_mirror_clamp; -int GLAD_GL_NV_multisample_filter_hint; -int GLAD_GL_ANGLE_pack_reverse_row_order; -int GLAD_GL_APPLE_float_pixels; -int GLAD_GL_EXT_texture_compression_bptc; -int GLAD_GL_ARB_transform_feedback_instanced; -int GLAD_GL_SGIX_async; -int GLAD_GL_EXT_texture_compression_latc; -int GLAD_GL_NV_robustness_video_memory_purge; -int GLAD_GL_ARB_shading_language_100; -int GLAD_GL_INTEL_performance_query; -int GLAD_GL_ARB_texture_mirror_clamp_to_edge; -int GLAD_GL_NV_gpu_shader5; -int GLAD_GL_NV_bindless_multi_draw_indirect_count; -int GLAD_GL_IMG_framebuffer_downsample; -int GLAD_GL_ARB_ES2_compatibility; -int GLAD_GL_ARB_indirect_parameters; -int GLAD_GL_APPLE_sync; -int GLAD_GL_EXT_window_rectangles; -int GLAD_GL_NV_half_float; -int GLAD_GL_QCOM_driver_control; -int GLAD_GL_ARB_ES3_2_compatibility; -int GLAD_GL_ATI_texture_mirror_once; -int GLAD_GL_IBM_rasterpos_clip; -int GLAD_GL_EXT_semaphore; -int GLAD_GL_SGIX_shadow; -int GLAD_GL_EXT_polygon_offset_clamp; -int GLAD_GL_NV_deep_texture3D; -int GLAD_GL_ARB_shader_draw_parameters; -int GLAD_GL_SGIX_calligraphic_fragment; -int GLAD_GL_ARB_shader_bit_encoding; -int GLAD_GL_EXT_compiled_vertex_array; -int GLAD_GL_EXT_pvrtc_sRGB; -int GLAD_GL_NV_depth_buffer_float; -int GLAD_GL_EXT_shader_pixel_local_storage; -int GLAD_GL_NV_occlusion_query; -int GLAD_GL_APPLE_flush_buffer_range; -int GLAD_GL_EXT_draw_elements_base_vertex; -int GLAD_GL_OES_depth32; -int GLAD_GL_ARB_imaging; -int GLAD_GL_NV_shader_atomic_float; -int GLAD_GL_ARM_shader_framebuffer_fetch; -int GLAD_GL_QCOM_shader_framebuffer_fetch_noncoherent; -int GLAD_GL_ARB_draw_buffers_blend; -int GLAD_GL_AMD_gcn_shader; -int GLAD_GL_AMD_blend_minmax_factor; -int GLAD_GL_OES_vertex_type_10_10_10_2; -int GLAD_GL_EXT_texture_sRGB_decode; -int GLAD_GL_ARB_shading_language_420pack; -int GLAD_GL_ARB_shader_viewport_layer_array; -int GLAD_GL_ATI_meminfo; -int GLAD_GL_EXT_abgr; -int GLAD_GL_ARM_rgba8; -int GLAD_GL_AMD_pinned_memory; -int GLAD_GL_EXT_texture_snorm; -int GLAD_GL_SGIX_texture_coordinate_clamp; -int GLAD_GL_ARB_clear_buffer_object; -int GLAD_GL_ARB_multisample; -int GLAD_GL_EXT_debug_label; -int GLAD_GL_EXT_map_buffer_range; -int GLAD_GL_ARB_sample_shading; -int GLAD_GL_NV_internalformat_sample_query; -int GLAD_GL_INTEL_map_texture; -int GLAD_GL_ARB_texture_env_crossbar; -int GLAD_GL_OES_gpu_shader5; -int GLAD_GL_EXT_422_pixels; -int GLAD_GL_NV_blend_minmax_factor; -int GLAD_GL_NV_conservative_raster_pre_snap_triangles; -int GLAD_GL_ARB_compute_shader; -int GLAD_GL_EXT_blend_logic_op; -int GLAD_GL_ARB_blend_func_extended; -int GLAD_GL_IBM_vertex_array_lists; -int GLAD_GL_ARB_color_buffer_float; -int GLAD_GL_ARB_bindless_texture; -int GLAD_GL_ARB_window_pos; -int GLAD_GL_EXT_texture_cube_map_array; -int GLAD_GL_ARB_internalformat_query; -int GLAD_GL_ARB_shadow; -int GLAD_GL_ARB_texture_mirrored_repeat; -int GLAD_GL_EXT_shader_image_load_store; -int GLAD_GL_OES_shader_multisample_interpolation; -int GLAD_GL_EXT_copy_texture; -int GLAD_GL_NV_register_combiners2; -int GLAD_GL_SGIX_ycrcb_subsample; -int GLAD_GL_EXT_clip_control; -int GLAD_GL_NV_depth_nonlinear; -int GLAD_GL_AMD_program_binary_Z400; -int GLAD_GL_NV_alpha_to_coverage_dither_control; -int GLAD_GL_OES_texture_cube_map_array; -int GLAD_GL_SGIX_ir_instrument1; -int GLAD_GL_EXT_geometry_shader; -int GLAD_GL_NV_draw_texture; -int GLAD_GL_EXT_texture_shared_exponent; -int GLAD_GL_NV_texture_shader2; -int GLAD_GL_OES_texture_border_clamp; -int GLAD_GL_EXT_draw_instanced; -int GLAD_GL_NV_copy_depth_to_color; -int GLAD_GL_ARB_viewport_array; -int GLAD_GL_ARB_separate_shader_objects; -int GLAD_GL_NV_conservative_raster_pre_snap; -int GLAD_GL_EXT_depth_bounds_test; -int GLAD_GL_HP_image_transform; -int GLAD_GL_EXT_texture_sRGB_R8; -int GLAD_GL_ARB_texture_env_add; -int GLAD_GL_NV_instanced_arrays; -int GLAD_GL_NV_video_capture; -int GLAD_GL_ARB_sampler_objects; -int GLAD_GL_ARB_matrix_palette; -int GLAD_GL_SGIS_texture_color_mask; -int GLAD_GL_EXT_packed_pixels; -int GLAD_GL_EXT_coordinate_frame; -int GLAD_GL_ARB_texture_compression; -int GLAD_GL_ARB_multi_bind; -int GLAD_GL_APPLE_aux_depth_stencil; -int GLAD_GL_QCOM_perfmon_global_mode; -int GLAD_GL_ARB_shader_subroutine; -int GLAD_GL_EXT_framebuffer_sRGB; -int GLAD_GL_ARB_texture_storage_multisample; -int GLAD_GL_KHR_blend_equation_advanced_coherent; -int GLAD_GL_NV_viewport_array; -int GLAD_GL_EXT_vertex_attrib_64bit; -int GLAD_GL_OES_compressed_ETC1_RGB8_sub_texture; -int GLAD_GL_OES_texture_compression_astc; -int GLAD_GL_EXT_base_instance; -int GLAD_GL_EXT_instanced_arrays; -int GLAD_GL_NV_shader_atomic_float64; -int GLAD_GL_ARB_depth_texture; -int GLAD_GL_NV_shader_buffer_store; -int GLAD_GL_OES_query_matrix; -int GLAD_GL_MESA_window_pos; -int GLAD_GL_ANGLE_translated_shader_source; -int GLAD_GL_NV_fill_rectangle; -int GLAD_GL_NV_coverage_sample; -int GLAD_GL_EXT_shader_group_vote; -int GLAD_GL_EXT_multisampled_compatibility; -int GLAD_GL_NV_shader_storage_buffer_object; -int GLAD_GL_EXT_gpu_shader5; -int GLAD_GL_ARB_texture_query_lod; -int GLAD_GL_ARB_copy_buffer; -int GLAD_GL_ARB_shader_image_size; -int GLAD_GL_NV_shader_atomic_counters; -int GLAD_GL_APPLE_object_purgeable; -int GLAD_GL_ARB_occlusion_query; -int GLAD_GL_INGR_color_clamp; -int GLAD_GL_SGI_color_table; -int GLAD_GL_NV_gpu_program5_mem_extended; -int GLAD_GL_ARB_texture_cube_map_array; -int GLAD_GL_SGIX_scalebias_hint; -int GLAD_GL_EXT_gpu_shader4; -int GLAD_GL_NV_geometry_program4; -int GLAD_GL_OES_shader_io_blocks; -int GLAD_GL_EXT_framebuffer_multisample_blit_scaled; -int GLAD_GL_AMD_debug_output; -int GLAD_GL_EXT_shader_texture_lod; -int GLAD_GL_ARB_texture_border_clamp; -int GLAD_GL_NV_read_buffer_front; -int GLAD_GL_EXT_win32_keyed_mutex; -int GLAD_GL_ARB_fragment_coord_conventions; -int GLAD_GL_APPLE_framebuffer_multisample; -int GLAD_GL_IMG_read_format; -int GLAD_GL_ARB_multitexture; -int GLAD_GL_SGIX_polynomial_ffd; -int GLAD_GL_EXT_texture_env_dot3; -int GLAD_GL_EXT_provoking_vertex; -int GLAD_GL_ARB_point_parameters; -int GLAD_GL_ARB_shader_image_load_store; -int GLAD_GL_ARB_conditional_render_inverted; -int GLAD_GL_HP_occlusion_test; -int GLAD_GL_ARB_ES3_compatibility; -int GLAD_GL_ARB_texture_barrier; -int GLAD_GL_ARB_texture_buffer_object_rgb32; -int GLAD_GL_NV_bindless_multi_draw_indirect; -int GLAD_GL_SGIX_texture_multi_buffer; -int GLAD_GL_INTEL_blackhole_render; -int GLAD_GL_AMD_shader_image_load_store_lod; -int GLAD_GL_NV_fbo_color_attachments; -int GLAD_GL_EXT_render_snorm; -int GLAD_GL_EXT_texture_rg; -int GLAD_GL_KHR_texture_compression_astc_ldr; -int GLAD_GL_3DFX_multisample; -int GLAD_GL_INTEL_fragment_shader_ordering; -int GLAD_GL_ARB_texture_env_dot3; -int GLAD_GL_NV_gpu_program4; -int GLAD_GL_NV_gpu_program5; -int GLAD_GL_NV_float_buffer; -int GLAD_GL_SGIS_texture_edge_clamp; -int GLAD_GL_ARB_framebuffer_sRGB; -int GLAD_GL_EXT_texture_compression_s3tc_srgb; -int GLAD_GL_SUN_slice_accum; -int GLAD_GL_EXT_index_texture; -int GLAD_GL_EXT_shader_image_load_formatted; -int GLAD_GL_NV_copy_buffer; -int GLAD_GL_ARB_geometry_shader4; -int GLAD_GL_OES_texture_float; -int GLAD_GL_IMG_texture_filter_cubic; -int GLAD_GL_EXT_separate_specular_color; -int GLAD_GL_AMD_depth_clamp_separate; -int GLAD_GL_ANDROID_extension_pack_es31a; -int GLAD_GL_NV_shadow_samplers_cube; -int GLAD_GL_NV_conservative_raster; -int GLAD_GL_ARB_sparse_texture2; -int GLAD_GL_SGIX_sprite; -int GLAD_GL_ARB_get_program_binary; -int GLAD_GL_AMD_occlusion_query_event; -int GLAD_GL_SGIS_multisample; -int GLAD_GL_EXT_framebuffer_object; -int GLAD_GL_OES_texture_npot; -int GLAD_GL_OES_depth_texture; -int GLAD_GL_ARB_robustness_isolation; -int GLAD_GL_ARB_vertex_array_bgra; -int GLAD_GL_APPLE_vertex_array_range; -int GLAD_GL_AMD_query_buffer_object; -int GLAD_GL_NV_register_combiners; -int GLAD_GL_ARB_draw_buffers; -int GLAD_GL_OES_surfaceless_context; -int GLAD_GL_IMG_shader_binary; -int GLAD_GL_NVX_blend_equation_advanced_multi_draw_buffers; -int GLAD_GL_AMD_gpu_shader_int16; -int GLAD_GL_ARB_debug_output; -int GLAD_GL_EXT_shader_framebuffer_fetch; -int GLAD_GL_SGI_color_matrix; -int GLAD_GL_EXT_cull_vertex; -int GLAD_GL_EXT_texture_sRGB; -int GLAD_GL_EXT_unpack_subimage; -int GLAD_GL_APPLE_row_bytes; -int GLAD_GL_ANGLE_texture_compression_dxt5; -int GLAD_GL_NV_shader_noperspective_interpolation; -int GLAD_GL_NV_conservative_raster_underestimation; -int GLAD_GL_IBM_multimode_draw_arrays; -int GLAD_GL_EXT_read_format_bgra; -int GLAD_GL_KHR_parallel_shader_compile; -int GLAD_GL_APPLE_color_buffer_packed_float; -int GLAD_GL_APPLE_vertex_array_object; -int GLAD_GL_3DFX_texture_compression_FXT1; -int GLAD_GL_NV_fragment_shader_interlock; -int GLAD_GL_APPLE_texture_max_level; -int GLAD_GL_AMD_conservative_depth; -int GLAD_GL_ARB_texture_float; -int GLAD_GL_ARB_compressed_texture_pixel_storage; -int GLAD_GL_SGIS_detail_texture; -int GLAD_GL_EXT_texture_compression_dxt1; -int GLAD_GL_NV_geometry_shader_passthrough; -int GLAD_GL_ARB_draw_instanced; -int GLAD_GL_OES_read_format; -int GLAD_GL_ATI_texture_float; -int GLAD_GL_ARB_texture_gather; -int GLAD_GL_AMD_vertex_shader_layer; -int GLAD_GL_NV_draw_buffers; -int GLAD_GL_ARB_shading_language_include; -int GLAD_GL_APPLE_client_storage; -int GLAD_GL_OES_EGL_image; -int GLAD_GL_WIN_phong_shading; -int GLAD_GL_INGR_blend_func_separate; -int GLAD_GL_NV_path_rendering; -int GLAD_GL_NV_conservative_raster_dilate; -int GLAD_GL_AMD_gpu_shader_half_float; -int GLAD_GL_VIV_shader_binary; -int GLAD_GL_ARB_post_depth_coverage; -int GLAD_GL_ARB_texture_non_power_of_two; -int GLAD_GL_EXT_texture_sRGB_RG8; -int GLAD_GL_APPLE_rgb_422; -int GLAD_GL_EXT_texture_lod_bias; -int GLAD_GL_ARB_gpu_shader_int64; -int GLAD_GL_ARB_seamless_cube_map; -int GLAD_GL_APPLE_clip_distance; -int GLAD_GL_ARB_shader_group_vote; -int GLAD_GL_NV_vdpau_interop; -int GLAD_GL_ARB_occlusion_query2; -int GLAD_GL_ARB_internalformat_query2; -int GLAD_GL_EXT_texture_filter_anisotropic; -int GLAD_GL_SUN_vertex; -int GLAD_GL_EXT_transform_feedback; -int GLAD_GL_OES_depth24; -int GLAD_GL_SGIX_igloo_interface; -int GLAD_GL_SGIS_texture_lod; -int GLAD_GL_NV_vertex_program3; -int GLAD_GL_ARB_draw_indirect; -int GLAD_GL_NV_vertex_program4; -int GLAD_GL_AMD_transform_feedback3_lines_triangles; -int GLAD_GL_SGIS_fog_function; -int GLAD_GL_EXT_x11_sync_object; -int GLAD_GL_ARB_sync; -int GLAD_GL_NV_texture_rectangle_compressed; -int GLAD_GL_EXT_protected_textures; -int GLAD_GL_OES_rgb8_rgba8; -int GLAD_GL_NV_sample_locations; -int GLAD_GL_NV_gpu_multicast; -int GLAD_GL_EXT_float_blend; -int GLAD_GL_ARB_gl_spirv; -int GLAD_GL_ARM_shader_framebuffer_fetch_depth_stencil; -int GLAD_GL_EXT_clear_texture; -int GLAD_GL_ARB_compute_variable_group_size; -int GLAD_GL_OES_EGL_image_external; -int GLAD_GL_APPLE_texture_format_BGRA8888; -int GLAD_GL_OES_fixed_point; -int GLAD_GL_NV_shadow_samplers_array; -int GLAD_GL_MESA_program_binary_formats; -int GLAD_GL_NV_blend_square; -int GLAD_GL_ARM_mali_shader_binary; -int GLAD_GL_EXT_framebuffer_multisample; -int GLAD_GL_ARB_gpu_shader5; -int GLAD_GL_SGIS_texture4D; -int GLAD_GL_EXT_texture3D; -int GLAD_GL_EXT_multisample; -int GLAD_GL_EXT_conservative_depth; -int GLAD_GL_EXT_secondary_color; -int GLAD_GL_INTEL_conservative_rasterization; -int GLAD_GL_ARB_texture_filter_minmax; -int GLAD_GL_EXT_shader_pixel_local_storage2; -int GLAD_GL_ATI_vertex_array_object; -int GLAD_GL_ARB_parallel_shader_compile; -int GLAD_GL_NVX_gpu_memory_info; -int GLAD_GL_ARB_sparse_texture; -int GLAD_GL_SGIS_point_line_texgen; -int GLAD_GL_ARB_sample_locations; -int GLAD_GL_ARB_sparse_buffer; -int GLAD_GL_ARB_polygon_offset_clamp; -int GLAD_GL_NV_texture_npot_2D_mipmap; -int GLAD_GL_EXT_draw_range_elements; -int GLAD_GL_SGIX_blend_alpha_minmax; -int GLAD_GL_KHR_context_flush_control; -PFNGLTBUFFERMASK3DFXPROC glad_glTbufferMask3DFX; -PFNGLDEBUGMESSAGEENABLEAMDPROC glad_glDebugMessageEnableAMD; -PFNGLDEBUGMESSAGEINSERTAMDPROC glad_glDebugMessageInsertAMD; -PFNGLDEBUGMESSAGECALLBACKAMDPROC glad_glDebugMessageCallbackAMD; -PFNGLGETDEBUGMESSAGELOGAMDPROC glad_glGetDebugMessageLogAMD; -PFNGLBLENDFUNCINDEXEDAMDPROC glad_glBlendFuncIndexedAMD; -PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC glad_glBlendFuncSeparateIndexedAMD; -PFNGLBLENDEQUATIONINDEXEDAMDPROC glad_glBlendEquationIndexedAMD; -PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC glad_glBlendEquationSeparateIndexedAMD; -PFNGLFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC glad_glFramebufferSamplePositionsfvAMD; -PFNGLNAMEDFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC glad_glNamedFramebufferSamplePositionsfvAMD; -PFNGLGETFRAMEBUFFERPARAMETERFVAMDPROC glad_glGetFramebufferParameterfvAMD; -PFNGLGETNAMEDFRAMEBUFFERPARAMETERFVAMDPROC glad_glGetNamedFramebufferParameterfvAMD; -PFNGLUNIFORM1I64NVPROC glad_glUniform1i64NV; -PFNGLUNIFORM2I64NVPROC glad_glUniform2i64NV; -PFNGLUNIFORM3I64NVPROC glad_glUniform3i64NV; -PFNGLUNIFORM4I64NVPROC glad_glUniform4i64NV; -PFNGLUNIFORM1I64VNVPROC glad_glUniform1i64vNV; -PFNGLUNIFORM2I64VNVPROC glad_glUniform2i64vNV; -PFNGLUNIFORM3I64VNVPROC glad_glUniform3i64vNV; -PFNGLUNIFORM4I64VNVPROC glad_glUniform4i64vNV; -PFNGLUNIFORM1UI64NVPROC glad_glUniform1ui64NV; -PFNGLUNIFORM2UI64NVPROC glad_glUniform2ui64NV; -PFNGLUNIFORM3UI64NVPROC glad_glUniform3ui64NV; -PFNGLUNIFORM4UI64NVPROC glad_glUniform4ui64NV; -PFNGLUNIFORM1UI64VNVPROC glad_glUniform1ui64vNV; -PFNGLUNIFORM2UI64VNVPROC glad_glUniform2ui64vNV; -PFNGLUNIFORM3UI64VNVPROC glad_glUniform3ui64vNV; -PFNGLUNIFORM4UI64VNVPROC glad_glUniform4ui64vNV; -PFNGLGETUNIFORMI64VNVPROC glad_glGetUniformi64vNV; -PFNGLGETUNIFORMUI64VNVPROC glad_glGetUniformui64vNV; -PFNGLPROGRAMUNIFORM1I64NVPROC glad_glProgramUniform1i64NV; -PFNGLPROGRAMUNIFORM2I64NVPROC glad_glProgramUniform2i64NV; -PFNGLPROGRAMUNIFORM3I64NVPROC glad_glProgramUniform3i64NV; -PFNGLPROGRAMUNIFORM4I64NVPROC glad_glProgramUniform4i64NV; -PFNGLPROGRAMUNIFORM1I64VNVPROC glad_glProgramUniform1i64vNV; -PFNGLPROGRAMUNIFORM2I64VNVPROC glad_glProgramUniform2i64vNV; -PFNGLPROGRAMUNIFORM3I64VNVPROC glad_glProgramUniform3i64vNV; -PFNGLPROGRAMUNIFORM4I64VNVPROC glad_glProgramUniform4i64vNV; -PFNGLPROGRAMUNIFORM1UI64NVPROC glad_glProgramUniform1ui64NV; -PFNGLPROGRAMUNIFORM2UI64NVPROC glad_glProgramUniform2ui64NV; -PFNGLPROGRAMUNIFORM3UI64NVPROC glad_glProgramUniform3ui64NV; -PFNGLPROGRAMUNIFORM4UI64NVPROC glad_glProgramUniform4ui64NV; -PFNGLPROGRAMUNIFORM1UI64VNVPROC glad_glProgramUniform1ui64vNV; -PFNGLPROGRAMUNIFORM2UI64VNVPROC glad_glProgramUniform2ui64vNV; -PFNGLPROGRAMUNIFORM3UI64VNVPROC glad_glProgramUniform3ui64vNV; -PFNGLPROGRAMUNIFORM4UI64VNVPROC glad_glProgramUniform4ui64vNV; -PFNGLVERTEXATTRIBPARAMETERIAMDPROC glad_glVertexAttribParameteriAMD; -PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC glad_glMultiDrawArraysIndirectAMD; -PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC glad_glMultiDrawElementsIndirectAMD; -PFNGLGENNAMESAMDPROC glad_glGenNamesAMD; -PFNGLDELETENAMESAMDPROC glad_glDeleteNamesAMD; -PFNGLISNAMEAMDPROC glad_glIsNameAMD; -PFNGLQUERYOBJECTPARAMETERUIAMDPROC glad_glQueryObjectParameteruiAMD; -PFNGLGETPERFMONITORGROUPSAMDPROC glad_glGetPerfMonitorGroupsAMD; -PFNGLGETPERFMONITORCOUNTERSAMDPROC glad_glGetPerfMonitorCountersAMD; -PFNGLGETPERFMONITORGROUPSTRINGAMDPROC glad_glGetPerfMonitorGroupStringAMD; -PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC glad_glGetPerfMonitorCounterStringAMD; -PFNGLGETPERFMONITORCOUNTERINFOAMDPROC glad_glGetPerfMonitorCounterInfoAMD; -PFNGLGENPERFMONITORSAMDPROC glad_glGenPerfMonitorsAMD; -PFNGLDELETEPERFMONITORSAMDPROC glad_glDeletePerfMonitorsAMD; -PFNGLSELECTPERFMONITORCOUNTERSAMDPROC glad_glSelectPerfMonitorCountersAMD; -PFNGLBEGINPERFMONITORAMDPROC glad_glBeginPerfMonitorAMD; -PFNGLENDPERFMONITORAMDPROC glad_glEndPerfMonitorAMD; -PFNGLGETPERFMONITORCOUNTERDATAAMDPROC glad_glGetPerfMonitorCounterDataAMD; -PFNGLSETMULTISAMPLEFVAMDPROC glad_glSetMultisamplefvAMD; -PFNGLTEXSTORAGESPARSEAMDPROC glad_glTexStorageSparseAMD; -PFNGLTEXTURESTORAGESPARSEAMDPROC glad_glTextureStorageSparseAMD; -PFNGLSTENCILOPVALUEAMDPROC glad_glStencilOpValueAMD; -PFNGLTESSELLATIONFACTORAMDPROC glad_glTessellationFactorAMD; -PFNGLTESSELLATIONMODEAMDPROC glad_glTessellationModeAMD; -PFNGLELEMENTPOINTERAPPLEPROC glad_glElementPointerAPPLE; -PFNGLDRAWELEMENTARRAYAPPLEPROC glad_glDrawElementArrayAPPLE; -PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC glad_glDrawRangeElementArrayAPPLE; -PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC glad_glMultiDrawElementArrayAPPLE; -PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC glad_glMultiDrawRangeElementArrayAPPLE; -PFNGLGENFENCESAPPLEPROC glad_glGenFencesAPPLE; -PFNGLDELETEFENCESAPPLEPROC glad_glDeleteFencesAPPLE; -PFNGLSETFENCEAPPLEPROC glad_glSetFenceAPPLE; -PFNGLISFENCEAPPLEPROC glad_glIsFenceAPPLE; -PFNGLTESTFENCEAPPLEPROC glad_glTestFenceAPPLE; -PFNGLFINISHFENCEAPPLEPROC glad_glFinishFenceAPPLE; -PFNGLTESTOBJECTAPPLEPROC glad_glTestObjectAPPLE; -PFNGLFINISHOBJECTAPPLEPROC glad_glFinishObjectAPPLE; -PFNGLBUFFERPARAMETERIAPPLEPROC glad_glBufferParameteriAPPLE; -PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC glad_glFlushMappedBufferRangeAPPLE; -PFNGLOBJECTPURGEABLEAPPLEPROC glad_glObjectPurgeableAPPLE; -PFNGLOBJECTUNPURGEABLEAPPLEPROC glad_glObjectUnpurgeableAPPLE; -PFNGLGETOBJECTPARAMETERIVAPPLEPROC glad_glGetObjectParameterivAPPLE; -PFNGLTEXTURERANGEAPPLEPROC glad_glTextureRangeAPPLE; -PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC glad_glGetTexParameterPointervAPPLE; -PFNGLBINDVERTEXARRAYAPPLEPROC glad_glBindVertexArrayAPPLE; -PFNGLDELETEVERTEXARRAYSAPPLEPROC glad_glDeleteVertexArraysAPPLE; -PFNGLGENVERTEXARRAYSAPPLEPROC glad_glGenVertexArraysAPPLE; -PFNGLISVERTEXARRAYAPPLEPROC glad_glIsVertexArrayAPPLE; -PFNGLVERTEXARRAYRANGEAPPLEPROC glad_glVertexArrayRangeAPPLE; -PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC glad_glFlushVertexArrayRangeAPPLE; -PFNGLVERTEXARRAYPARAMETERIAPPLEPROC glad_glVertexArrayParameteriAPPLE; -PFNGLENABLEVERTEXATTRIBAPPLEPROC glad_glEnableVertexAttribAPPLE; -PFNGLDISABLEVERTEXATTRIBAPPLEPROC glad_glDisableVertexAttribAPPLE; -PFNGLISVERTEXATTRIBENABLEDAPPLEPROC glad_glIsVertexAttribEnabledAPPLE; -PFNGLMAPVERTEXATTRIB1DAPPLEPROC glad_glMapVertexAttrib1dAPPLE; -PFNGLMAPVERTEXATTRIB1FAPPLEPROC glad_glMapVertexAttrib1fAPPLE; -PFNGLMAPVERTEXATTRIB2DAPPLEPROC glad_glMapVertexAttrib2dAPPLE; -PFNGLMAPVERTEXATTRIB2FAPPLEPROC glad_glMapVertexAttrib2fAPPLE; -PFNGLPRIMITIVEBOUNDINGBOXARBPROC glad_glPrimitiveBoundingBoxARB; -PFNGLGETTEXTUREHANDLEARBPROC glad_glGetTextureHandleARB; -PFNGLGETTEXTURESAMPLERHANDLEARBPROC glad_glGetTextureSamplerHandleARB; -PFNGLMAKETEXTUREHANDLERESIDENTARBPROC glad_glMakeTextureHandleResidentARB; -PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC glad_glMakeTextureHandleNonResidentARB; -PFNGLGETIMAGEHANDLEARBPROC glad_glGetImageHandleARB; -PFNGLMAKEIMAGEHANDLERESIDENTARBPROC glad_glMakeImageHandleResidentARB; -PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC glad_glMakeImageHandleNonResidentARB; -PFNGLUNIFORMHANDLEUI64ARBPROC glad_glUniformHandleui64ARB; -PFNGLUNIFORMHANDLEUI64VARBPROC glad_glUniformHandleui64vARB; -PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC glad_glProgramUniformHandleui64ARB; -PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC glad_glProgramUniformHandleui64vARB; -PFNGLISTEXTUREHANDLERESIDENTARBPROC glad_glIsTextureHandleResidentARB; -PFNGLISIMAGEHANDLERESIDENTARBPROC glad_glIsImageHandleResidentARB; -PFNGLVERTEXATTRIBL1UI64ARBPROC glad_glVertexAttribL1ui64ARB; -PFNGLVERTEXATTRIBL1UI64VARBPROC glad_glVertexAttribL1ui64vARB; -PFNGLGETVERTEXATTRIBLUI64VARBPROC glad_glGetVertexAttribLui64vARB; -PFNGLCREATESYNCFROMCLEVENTARBPROC glad_glCreateSyncFromCLeventARB; -PFNGLCLAMPCOLORARBPROC glad_glClampColorARB; -PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC glad_glDispatchComputeGroupSizeARB; -PFNGLDEBUGMESSAGECONTROLARBPROC glad_glDebugMessageControlARB; -PFNGLDEBUGMESSAGEINSERTARBPROC glad_glDebugMessageInsertARB; -PFNGLDEBUGMESSAGECALLBACKARBPROC glad_glDebugMessageCallbackARB; -PFNGLGETDEBUGMESSAGELOGARBPROC glad_glGetDebugMessageLogARB; -PFNGLDRAWBUFFERSARBPROC glad_glDrawBuffersARB; -PFNGLBLENDEQUATIONIARBPROC glad_glBlendEquationiARB; -PFNGLBLENDEQUATIONSEPARATEIARBPROC glad_glBlendEquationSeparateiARB; -PFNGLBLENDFUNCIARBPROC glad_glBlendFunciARB; -PFNGLBLENDFUNCSEPARATEIARBPROC glad_glBlendFuncSeparateiARB; -PFNGLDRAWARRAYSINSTANCEDARBPROC glad_glDrawArraysInstancedARB; -PFNGLDRAWELEMENTSINSTANCEDARBPROC glad_glDrawElementsInstancedARB; -PFNGLPROGRAMSTRINGARBPROC glad_glProgramStringARB; -PFNGLBINDPROGRAMARBPROC glad_glBindProgramARB; -PFNGLDELETEPROGRAMSARBPROC glad_glDeleteProgramsARB; -PFNGLGENPROGRAMSARBPROC glad_glGenProgramsARB; -PFNGLPROGRAMENVPARAMETER4DARBPROC glad_glProgramEnvParameter4dARB; -PFNGLPROGRAMENVPARAMETER4DVARBPROC glad_glProgramEnvParameter4dvARB; -PFNGLPROGRAMENVPARAMETER4FARBPROC glad_glProgramEnvParameter4fARB; -PFNGLPROGRAMENVPARAMETER4FVARBPROC glad_glProgramEnvParameter4fvARB; -PFNGLPROGRAMLOCALPARAMETER4DARBPROC glad_glProgramLocalParameter4dARB; -PFNGLPROGRAMLOCALPARAMETER4DVARBPROC glad_glProgramLocalParameter4dvARB; -PFNGLPROGRAMLOCALPARAMETER4FARBPROC glad_glProgramLocalParameter4fARB; -PFNGLPROGRAMLOCALPARAMETER4FVARBPROC glad_glProgramLocalParameter4fvARB; -PFNGLGETPROGRAMENVPARAMETERDVARBPROC glad_glGetProgramEnvParameterdvARB; -PFNGLGETPROGRAMENVPARAMETERFVARBPROC glad_glGetProgramEnvParameterfvARB; -PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC glad_glGetProgramLocalParameterdvARB; -PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC glad_glGetProgramLocalParameterfvARB; -PFNGLGETPROGRAMIVARBPROC glad_glGetProgramivARB; -PFNGLGETPROGRAMSTRINGARBPROC glad_glGetProgramStringARB; -PFNGLISPROGRAMARBPROC glad_glIsProgramARB; -PFNGLPROGRAMPARAMETERIARBPROC glad_glProgramParameteriARB; -PFNGLFRAMEBUFFERTEXTUREARBPROC glad_glFramebufferTextureARB; -PFNGLFRAMEBUFFERTEXTURELAYERARBPROC glad_glFramebufferTextureLayerARB; -PFNGLFRAMEBUFFERTEXTUREFACEARBPROC glad_glFramebufferTextureFaceARB; -PFNGLSPECIALIZESHADERARBPROC glad_glSpecializeShaderARB; -PFNGLUNIFORM1I64ARBPROC glad_glUniform1i64ARB; -PFNGLUNIFORM2I64ARBPROC glad_glUniform2i64ARB; -PFNGLUNIFORM3I64ARBPROC glad_glUniform3i64ARB; -PFNGLUNIFORM4I64ARBPROC glad_glUniform4i64ARB; -PFNGLUNIFORM1I64VARBPROC glad_glUniform1i64vARB; -PFNGLUNIFORM2I64VARBPROC glad_glUniform2i64vARB; -PFNGLUNIFORM3I64VARBPROC glad_glUniform3i64vARB; -PFNGLUNIFORM4I64VARBPROC glad_glUniform4i64vARB; -PFNGLUNIFORM1UI64ARBPROC glad_glUniform1ui64ARB; -PFNGLUNIFORM2UI64ARBPROC glad_glUniform2ui64ARB; -PFNGLUNIFORM3UI64ARBPROC glad_glUniform3ui64ARB; -PFNGLUNIFORM4UI64ARBPROC glad_glUniform4ui64ARB; -PFNGLUNIFORM1UI64VARBPROC glad_glUniform1ui64vARB; -PFNGLUNIFORM2UI64VARBPROC glad_glUniform2ui64vARB; -PFNGLUNIFORM3UI64VARBPROC glad_glUniform3ui64vARB; -PFNGLUNIFORM4UI64VARBPROC glad_glUniform4ui64vARB; -PFNGLGETUNIFORMI64VARBPROC glad_glGetUniformi64vARB; -PFNGLGETUNIFORMUI64VARBPROC glad_glGetUniformui64vARB; -PFNGLGETNUNIFORMI64VARBPROC glad_glGetnUniformi64vARB; -PFNGLGETNUNIFORMUI64VARBPROC glad_glGetnUniformui64vARB; -PFNGLPROGRAMUNIFORM1I64ARBPROC glad_glProgramUniform1i64ARB; -PFNGLPROGRAMUNIFORM2I64ARBPROC glad_glProgramUniform2i64ARB; -PFNGLPROGRAMUNIFORM3I64ARBPROC glad_glProgramUniform3i64ARB; -PFNGLPROGRAMUNIFORM4I64ARBPROC glad_glProgramUniform4i64ARB; -PFNGLPROGRAMUNIFORM1I64VARBPROC glad_glProgramUniform1i64vARB; -PFNGLPROGRAMUNIFORM2I64VARBPROC glad_glProgramUniform2i64vARB; -PFNGLPROGRAMUNIFORM3I64VARBPROC glad_glProgramUniform3i64vARB; -PFNGLPROGRAMUNIFORM4I64VARBPROC glad_glProgramUniform4i64vARB; -PFNGLPROGRAMUNIFORM1UI64ARBPROC glad_glProgramUniform1ui64ARB; -PFNGLPROGRAMUNIFORM2UI64ARBPROC glad_glProgramUniform2ui64ARB; -PFNGLPROGRAMUNIFORM3UI64ARBPROC glad_glProgramUniform3ui64ARB; -PFNGLPROGRAMUNIFORM4UI64ARBPROC glad_glProgramUniform4ui64ARB; -PFNGLPROGRAMUNIFORM1UI64VARBPROC glad_glProgramUniform1ui64vARB; -PFNGLPROGRAMUNIFORM2UI64VARBPROC glad_glProgramUniform2ui64vARB; -PFNGLPROGRAMUNIFORM3UI64VARBPROC glad_glProgramUniform3ui64vARB; -PFNGLPROGRAMUNIFORM4UI64VARBPROC glad_glProgramUniform4ui64vARB; -PFNGLCOLORTABLEPROC glad_glColorTable; -PFNGLCOLORTABLEPARAMETERFVPROC glad_glColorTableParameterfv; -PFNGLCOLORTABLEPARAMETERIVPROC glad_glColorTableParameteriv; -PFNGLCOPYCOLORTABLEPROC glad_glCopyColorTable; -PFNGLGETCOLORTABLEPROC glad_glGetColorTable; -PFNGLGETCOLORTABLEPARAMETERFVPROC glad_glGetColorTableParameterfv; -PFNGLGETCOLORTABLEPARAMETERIVPROC glad_glGetColorTableParameteriv; -PFNGLCOLORSUBTABLEPROC glad_glColorSubTable; -PFNGLCOPYCOLORSUBTABLEPROC glad_glCopyColorSubTable; -PFNGLCONVOLUTIONFILTER1DPROC glad_glConvolutionFilter1D; -PFNGLCONVOLUTIONFILTER2DPROC glad_glConvolutionFilter2D; -PFNGLCONVOLUTIONPARAMETERFPROC glad_glConvolutionParameterf; -PFNGLCONVOLUTIONPARAMETERFVPROC glad_glConvolutionParameterfv; -PFNGLCONVOLUTIONPARAMETERIPROC glad_glConvolutionParameteri; -PFNGLCONVOLUTIONPARAMETERIVPROC glad_glConvolutionParameteriv; -PFNGLCOPYCONVOLUTIONFILTER1DPROC glad_glCopyConvolutionFilter1D; -PFNGLCOPYCONVOLUTIONFILTER2DPROC glad_glCopyConvolutionFilter2D; -PFNGLGETCONVOLUTIONFILTERPROC glad_glGetConvolutionFilter; -PFNGLGETCONVOLUTIONPARAMETERFVPROC glad_glGetConvolutionParameterfv; -PFNGLGETCONVOLUTIONPARAMETERIVPROC glad_glGetConvolutionParameteriv; -PFNGLGETSEPARABLEFILTERPROC glad_glGetSeparableFilter; -PFNGLSEPARABLEFILTER2DPROC glad_glSeparableFilter2D; -PFNGLGETHISTOGRAMPROC glad_glGetHistogram; -PFNGLGETHISTOGRAMPARAMETERFVPROC glad_glGetHistogramParameterfv; -PFNGLGETHISTOGRAMPARAMETERIVPROC glad_glGetHistogramParameteriv; -PFNGLGETMINMAXPROC glad_glGetMinmax; -PFNGLGETMINMAXPARAMETERFVPROC glad_glGetMinmaxParameterfv; -PFNGLGETMINMAXPARAMETERIVPROC glad_glGetMinmaxParameteriv; -PFNGLHISTOGRAMPROC glad_glHistogram; -PFNGLMINMAXPROC glad_glMinmax; -PFNGLRESETHISTOGRAMPROC glad_glResetHistogram; -PFNGLRESETMINMAXPROC glad_glResetMinmax; -PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC glad_glMultiDrawArraysIndirectCountARB; -PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC glad_glMultiDrawElementsIndirectCountARB; -PFNGLVERTEXATTRIBDIVISORARBPROC glad_glVertexAttribDivisorARB; -PFNGLCURRENTPALETTEMATRIXARBPROC glad_glCurrentPaletteMatrixARB; -PFNGLMATRIXINDEXUBVARBPROC glad_glMatrixIndexubvARB; -PFNGLMATRIXINDEXUSVARBPROC glad_glMatrixIndexusvARB; -PFNGLMATRIXINDEXUIVARBPROC glad_glMatrixIndexuivARB; -PFNGLMATRIXINDEXPOINTERARBPROC glad_glMatrixIndexPointerARB; -PFNGLSAMPLECOVERAGEARBPROC glad_glSampleCoverageARB; -PFNGLACTIVETEXTUREARBPROC glad_glActiveTextureARB; -PFNGLCLIENTACTIVETEXTUREARBPROC glad_glClientActiveTextureARB; -PFNGLMULTITEXCOORD1DARBPROC glad_glMultiTexCoord1dARB; -PFNGLMULTITEXCOORD1DVARBPROC glad_glMultiTexCoord1dvARB; -PFNGLMULTITEXCOORD1FARBPROC glad_glMultiTexCoord1fARB; -PFNGLMULTITEXCOORD1FVARBPROC glad_glMultiTexCoord1fvARB; -PFNGLMULTITEXCOORD1IARBPROC glad_glMultiTexCoord1iARB; -PFNGLMULTITEXCOORD1IVARBPROC glad_glMultiTexCoord1ivARB; -PFNGLMULTITEXCOORD1SARBPROC glad_glMultiTexCoord1sARB; -PFNGLMULTITEXCOORD1SVARBPROC glad_glMultiTexCoord1svARB; -PFNGLMULTITEXCOORD2DARBPROC glad_glMultiTexCoord2dARB; -PFNGLMULTITEXCOORD2DVARBPROC glad_glMultiTexCoord2dvARB; -PFNGLMULTITEXCOORD2FARBPROC glad_glMultiTexCoord2fARB; -PFNGLMULTITEXCOORD2FVARBPROC glad_glMultiTexCoord2fvARB; -PFNGLMULTITEXCOORD2IARBPROC glad_glMultiTexCoord2iARB; -PFNGLMULTITEXCOORD2IVARBPROC glad_glMultiTexCoord2ivARB; -PFNGLMULTITEXCOORD2SARBPROC glad_glMultiTexCoord2sARB; -PFNGLMULTITEXCOORD2SVARBPROC glad_glMultiTexCoord2svARB; -PFNGLMULTITEXCOORD3DARBPROC glad_glMultiTexCoord3dARB; -PFNGLMULTITEXCOORD3DVARBPROC glad_glMultiTexCoord3dvARB; -PFNGLMULTITEXCOORD3FARBPROC glad_glMultiTexCoord3fARB; -PFNGLMULTITEXCOORD3FVARBPROC glad_glMultiTexCoord3fvARB; -PFNGLMULTITEXCOORD3IARBPROC glad_glMultiTexCoord3iARB; -PFNGLMULTITEXCOORD3IVARBPROC glad_glMultiTexCoord3ivARB; -PFNGLMULTITEXCOORD3SARBPROC glad_glMultiTexCoord3sARB; -PFNGLMULTITEXCOORD3SVARBPROC glad_glMultiTexCoord3svARB; -PFNGLMULTITEXCOORD4DARBPROC glad_glMultiTexCoord4dARB; -PFNGLMULTITEXCOORD4DVARBPROC glad_glMultiTexCoord4dvARB; -PFNGLMULTITEXCOORD4FARBPROC glad_glMultiTexCoord4fARB; -PFNGLMULTITEXCOORD4FVARBPROC glad_glMultiTexCoord4fvARB; -PFNGLMULTITEXCOORD4IARBPROC glad_glMultiTexCoord4iARB; -PFNGLMULTITEXCOORD4IVARBPROC glad_glMultiTexCoord4ivARB; -PFNGLMULTITEXCOORD4SARBPROC glad_glMultiTexCoord4sARB; -PFNGLMULTITEXCOORD4SVARBPROC glad_glMultiTexCoord4svARB; -PFNGLGENQUERIESARBPROC glad_glGenQueriesARB; -PFNGLDELETEQUERIESARBPROC glad_glDeleteQueriesARB; -PFNGLISQUERYARBPROC glad_glIsQueryARB; -PFNGLBEGINQUERYARBPROC glad_glBeginQueryARB; -PFNGLENDQUERYARBPROC glad_glEndQueryARB; -PFNGLGETQUERYIVARBPROC glad_glGetQueryivARB; -PFNGLGETQUERYOBJECTIVARBPROC glad_glGetQueryObjectivARB; -PFNGLGETQUERYOBJECTUIVARBPROC glad_glGetQueryObjectuivARB; -PFNGLMAXSHADERCOMPILERTHREADSARBPROC glad_glMaxShaderCompilerThreadsARB; -PFNGLPOINTPARAMETERFARBPROC glad_glPointParameterfARB; -PFNGLPOINTPARAMETERFVARBPROC glad_glPointParameterfvARB; -PFNGLGETGRAPHICSRESETSTATUSARBPROC glad_glGetGraphicsResetStatusARB; -PFNGLGETNTEXIMAGEARBPROC glad_glGetnTexImageARB; -PFNGLREADNPIXELSARBPROC glad_glReadnPixelsARB; -PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC glad_glGetnCompressedTexImageARB; -PFNGLGETNUNIFORMFVARBPROC glad_glGetnUniformfvARB; -PFNGLGETNUNIFORMIVARBPROC glad_glGetnUniformivARB; -PFNGLGETNUNIFORMUIVARBPROC glad_glGetnUniformuivARB; -PFNGLGETNUNIFORMDVARBPROC glad_glGetnUniformdvARB; -PFNGLGETNMAPDVARBPROC glad_glGetnMapdvARB; -PFNGLGETNMAPFVARBPROC glad_glGetnMapfvARB; -PFNGLGETNMAPIVARBPROC glad_glGetnMapivARB; -PFNGLGETNPIXELMAPFVARBPROC glad_glGetnPixelMapfvARB; -PFNGLGETNPIXELMAPUIVARBPROC glad_glGetnPixelMapuivARB; -PFNGLGETNPIXELMAPUSVARBPROC glad_glGetnPixelMapusvARB; -PFNGLGETNPOLYGONSTIPPLEARBPROC glad_glGetnPolygonStippleARB; -PFNGLGETNCOLORTABLEARBPROC glad_glGetnColorTableARB; -PFNGLGETNCONVOLUTIONFILTERARBPROC glad_glGetnConvolutionFilterARB; -PFNGLGETNSEPARABLEFILTERARBPROC glad_glGetnSeparableFilterARB; -PFNGLGETNHISTOGRAMARBPROC glad_glGetnHistogramARB; -PFNGLGETNMINMAXARBPROC glad_glGetnMinmaxARB; -PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC glad_glFramebufferSampleLocationsfvARB; -PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC glad_glNamedFramebufferSampleLocationsfvARB; -PFNGLEVALUATEDEPTHVALUESARBPROC glad_glEvaluateDepthValuesARB; -PFNGLMINSAMPLESHADINGARBPROC glad_glMinSampleShadingARB; -PFNGLDELETEOBJECTARBPROC glad_glDeleteObjectARB; -PFNGLGETHANDLEARBPROC glad_glGetHandleARB; -PFNGLDETACHOBJECTARBPROC glad_glDetachObjectARB; -PFNGLCREATESHADEROBJECTARBPROC glad_glCreateShaderObjectARB; -PFNGLSHADERSOURCEARBPROC glad_glShaderSourceARB; -PFNGLCOMPILESHADERARBPROC glad_glCompileShaderARB; -PFNGLCREATEPROGRAMOBJECTARBPROC glad_glCreateProgramObjectARB; -PFNGLATTACHOBJECTARBPROC glad_glAttachObjectARB; -PFNGLLINKPROGRAMARBPROC glad_glLinkProgramARB; -PFNGLUSEPROGRAMOBJECTARBPROC glad_glUseProgramObjectARB; -PFNGLVALIDATEPROGRAMARBPROC glad_glValidateProgramARB; -PFNGLUNIFORM1FARBPROC glad_glUniform1fARB; -PFNGLUNIFORM2FARBPROC glad_glUniform2fARB; -PFNGLUNIFORM3FARBPROC glad_glUniform3fARB; -PFNGLUNIFORM4FARBPROC glad_glUniform4fARB; -PFNGLUNIFORM1IARBPROC glad_glUniform1iARB; -PFNGLUNIFORM2IARBPROC glad_glUniform2iARB; -PFNGLUNIFORM3IARBPROC glad_glUniform3iARB; -PFNGLUNIFORM4IARBPROC glad_glUniform4iARB; -PFNGLUNIFORM1FVARBPROC glad_glUniform1fvARB; -PFNGLUNIFORM2FVARBPROC glad_glUniform2fvARB; -PFNGLUNIFORM3FVARBPROC glad_glUniform3fvARB; -PFNGLUNIFORM4FVARBPROC glad_glUniform4fvARB; -PFNGLUNIFORM1IVARBPROC glad_glUniform1ivARB; -PFNGLUNIFORM2IVARBPROC glad_glUniform2ivARB; -PFNGLUNIFORM3IVARBPROC glad_glUniform3ivARB; -PFNGLUNIFORM4IVARBPROC glad_glUniform4ivARB; -PFNGLUNIFORMMATRIX2FVARBPROC glad_glUniformMatrix2fvARB; -PFNGLUNIFORMMATRIX3FVARBPROC glad_glUniformMatrix3fvARB; -PFNGLUNIFORMMATRIX4FVARBPROC glad_glUniformMatrix4fvARB; -PFNGLGETOBJECTPARAMETERFVARBPROC glad_glGetObjectParameterfvARB; -PFNGLGETOBJECTPARAMETERIVARBPROC glad_glGetObjectParameterivARB; -PFNGLGETINFOLOGARBPROC glad_glGetInfoLogARB; -PFNGLGETATTACHEDOBJECTSARBPROC glad_glGetAttachedObjectsARB; -PFNGLGETUNIFORMLOCATIONARBPROC glad_glGetUniformLocationARB; -PFNGLGETACTIVEUNIFORMARBPROC glad_glGetActiveUniformARB; -PFNGLGETUNIFORMFVARBPROC glad_glGetUniformfvARB; -PFNGLGETUNIFORMIVARBPROC glad_glGetUniformivARB; -PFNGLGETSHADERSOURCEARBPROC glad_glGetShaderSourceARB; -PFNGLNAMEDSTRINGARBPROC glad_glNamedStringARB; -PFNGLDELETENAMEDSTRINGARBPROC glad_glDeleteNamedStringARB; -PFNGLCOMPILESHADERINCLUDEARBPROC glad_glCompileShaderIncludeARB; -PFNGLISNAMEDSTRINGARBPROC glad_glIsNamedStringARB; -PFNGLGETNAMEDSTRINGARBPROC glad_glGetNamedStringARB; -PFNGLGETNAMEDSTRINGIVARBPROC glad_glGetNamedStringivARB; -PFNGLBUFFERPAGECOMMITMENTARBPROC glad_glBufferPageCommitmentARB; -PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC glad_glNamedBufferPageCommitmentEXT; -PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC glad_glNamedBufferPageCommitmentARB; -PFNGLTEXPAGECOMMITMENTARBPROC glad_glTexPageCommitmentARB; -PFNGLTEXBUFFERARBPROC glad_glTexBufferARB; -PFNGLCOMPRESSEDTEXIMAGE3DARBPROC glad_glCompressedTexImage3DARB; -PFNGLCOMPRESSEDTEXIMAGE2DARBPROC glad_glCompressedTexImage2DARB; -PFNGLCOMPRESSEDTEXIMAGE1DARBPROC glad_glCompressedTexImage1DARB; -PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC glad_glCompressedTexSubImage3DARB; -PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC glad_glCompressedTexSubImage2DARB; -PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC glad_glCompressedTexSubImage1DARB; -PFNGLGETCOMPRESSEDTEXIMAGEARBPROC glad_glGetCompressedTexImageARB; -PFNGLLOADTRANSPOSEMATRIXFARBPROC glad_glLoadTransposeMatrixfARB; -PFNGLLOADTRANSPOSEMATRIXDARBPROC glad_glLoadTransposeMatrixdARB; -PFNGLMULTTRANSPOSEMATRIXFARBPROC glad_glMultTransposeMatrixfARB; -PFNGLMULTTRANSPOSEMATRIXDARBPROC glad_glMultTransposeMatrixdARB; -PFNGLWEIGHTBVARBPROC glad_glWeightbvARB; -PFNGLWEIGHTSVARBPROC glad_glWeightsvARB; -PFNGLWEIGHTIVARBPROC glad_glWeightivARB; -PFNGLWEIGHTFVARBPROC glad_glWeightfvARB; -PFNGLWEIGHTDVARBPROC glad_glWeightdvARB; -PFNGLWEIGHTUBVARBPROC glad_glWeightubvARB; -PFNGLWEIGHTUSVARBPROC glad_glWeightusvARB; -PFNGLWEIGHTUIVARBPROC glad_glWeightuivARB; -PFNGLWEIGHTPOINTERARBPROC glad_glWeightPointerARB; -PFNGLVERTEXBLENDARBPROC glad_glVertexBlendARB; -PFNGLBINDBUFFERARBPROC glad_glBindBufferARB; -PFNGLDELETEBUFFERSARBPROC glad_glDeleteBuffersARB; -PFNGLGENBUFFERSARBPROC glad_glGenBuffersARB; -PFNGLISBUFFERARBPROC glad_glIsBufferARB; -PFNGLBUFFERDATAARBPROC glad_glBufferDataARB; -PFNGLBUFFERSUBDATAARBPROC glad_glBufferSubDataARB; -PFNGLGETBUFFERSUBDATAARBPROC glad_glGetBufferSubDataARB; -PFNGLMAPBUFFERARBPROC glad_glMapBufferARB; -PFNGLUNMAPBUFFERARBPROC glad_glUnmapBufferARB; -PFNGLGETBUFFERPARAMETERIVARBPROC glad_glGetBufferParameterivARB; -PFNGLGETBUFFERPOINTERVARBPROC glad_glGetBufferPointervARB; -PFNGLVERTEXATTRIB1DARBPROC glad_glVertexAttrib1dARB; -PFNGLVERTEXATTRIB1DVARBPROC glad_glVertexAttrib1dvARB; -PFNGLVERTEXATTRIB1FARBPROC glad_glVertexAttrib1fARB; -PFNGLVERTEXATTRIB1FVARBPROC glad_glVertexAttrib1fvARB; -PFNGLVERTEXATTRIB1SARBPROC glad_glVertexAttrib1sARB; -PFNGLVERTEXATTRIB1SVARBPROC glad_glVertexAttrib1svARB; -PFNGLVERTEXATTRIB2DARBPROC glad_glVertexAttrib2dARB; -PFNGLVERTEXATTRIB2DVARBPROC glad_glVertexAttrib2dvARB; -PFNGLVERTEXATTRIB2FARBPROC glad_glVertexAttrib2fARB; -PFNGLVERTEXATTRIB2FVARBPROC glad_glVertexAttrib2fvARB; -PFNGLVERTEXATTRIB2SARBPROC glad_glVertexAttrib2sARB; -PFNGLVERTEXATTRIB2SVARBPROC glad_glVertexAttrib2svARB; -PFNGLVERTEXATTRIB3DARBPROC glad_glVertexAttrib3dARB; -PFNGLVERTEXATTRIB3DVARBPROC glad_glVertexAttrib3dvARB; -PFNGLVERTEXATTRIB3FARBPROC glad_glVertexAttrib3fARB; -PFNGLVERTEXATTRIB3FVARBPROC glad_glVertexAttrib3fvARB; -PFNGLVERTEXATTRIB3SARBPROC glad_glVertexAttrib3sARB; -PFNGLVERTEXATTRIB3SVARBPROC glad_glVertexAttrib3svARB; -PFNGLVERTEXATTRIB4NBVARBPROC glad_glVertexAttrib4NbvARB; -PFNGLVERTEXATTRIB4NIVARBPROC glad_glVertexAttrib4NivARB; -PFNGLVERTEXATTRIB4NSVARBPROC glad_glVertexAttrib4NsvARB; -PFNGLVERTEXATTRIB4NUBARBPROC glad_glVertexAttrib4NubARB; -PFNGLVERTEXATTRIB4NUBVARBPROC glad_glVertexAttrib4NubvARB; -PFNGLVERTEXATTRIB4NUIVARBPROC glad_glVertexAttrib4NuivARB; -PFNGLVERTEXATTRIB4NUSVARBPROC glad_glVertexAttrib4NusvARB; -PFNGLVERTEXATTRIB4BVARBPROC glad_glVertexAttrib4bvARB; -PFNGLVERTEXATTRIB4DARBPROC glad_glVertexAttrib4dARB; -PFNGLVERTEXATTRIB4DVARBPROC glad_glVertexAttrib4dvARB; -PFNGLVERTEXATTRIB4FARBPROC glad_glVertexAttrib4fARB; -PFNGLVERTEXATTRIB4FVARBPROC glad_glVertexAttrib4fvARB; -PFNGLVERTEXATTRIB4IVARBPROC glad_glVertexAttrib4ivARB; -PFNGLVERTEXATTRIB4SARBPROC glad_glVertexAttrib4sARB; -PFNGLVERTEXATTRIB4SVARBPROC glad_glVertexAttrib4svARB; -PFNGLVERTEXATTRIB4UBVARBPROC glad_glVertexAttrib4ubvARB; -PFNGLVERTEXATTRIB4UIVARBPROC glad_glVertexAttrib4uivARB; -PFNGLVERTEXATTRIB4USVARBPROC glad_glVertexAttrib4usvARB; -PFNGLVERTEXATTRIBPOINTERARBPROC glad_glVertexAttribPointerARB; -PFNGLENABLEVERTEXATTRIBARRAYARBPROC glad_glEnableVertexAttribArrayARB; -PFNGLDISABLEVERTEXATTRIBARRAYARBPROC glad_glDisableVertexAttribArrayARB; -PFNGLGETVERTEXATTRIBDVARBPROC glad_glGetVertexAttribdvARB; -PFNGLGETVERTEXATTRIBFVARBPROC glad_glGetVertexAttribfvARB; -PFNGLGETVERTEXATTRIBIVARBPROC glad_glGetVertexAttribivARB; -PFNGLGETVERTEXATTRIBPOINTERVARBPROC glad_glGetVertexAttribPointervARB; -PFNGLBINDATTRIBLOCATIONARBPROC glad_glBindAttribLocationARB; -PFNGLGETACTIVEATTRIBARBPROC glad_glGetActiveAttribARB; -PFNGLGETATTRIBLOCATIONARBPROC glad_glGetAttribLocationARB; -PFNGLWINDOWPOS2DARBPROC glad_glWindowPos2dARB; -PFNGLWINDOWPOS2DVARBPROC glad_glWindowPos2dvARB; -PFNGLWINDOWPOS2FARBPROC glad_glWindowPos2fARB; -PFNGLWINDOWPOS2FVARBPROC glad_glWindowPos2fvARB; -PFNGLWINDOWPOS2IARBPROC glad_glWindowPos2iARB; -PFNGLWINDOWPOS2IVARBPROC glad_glWindowPos2ivARB; -PFNGLWINDOWPOS2SARBPROC glad_glWindowPos2sARB; -PFNGLWINDOWPOS2SVARBPROC glad_glWindowPos2svARB; -PFNGLWINDOWPOS3DARBPROC glad_glWindowPos3dARB; -PFNGLWINDOWPOS3DVARBPROC glad_glWindowPos3dvARB; -PFNGLWINDOWPOS3FARBPROC glad_glWindowPos3fARB; -PFNGLWINDOWPOS3FVARBPROC glad_glWindowPos3fvARB; -PFNGLWINDOWPOS3IARBPROC glad_glWindowPos3iARB; -PFNGLWINDOWPOS3IVARBPROC glad_glWindowPos3ivARB; -PFNGLWINDOWPOS3SARBPROC glad_glWindowPos3sARB; -PFNGLWINDOWPOS3SVARBPROC glad_glWindowPos3svARB; -PFNGLDRAWBUFFERSATIPROC glad_glDrawBuffersATI; -PFNGLELEMENTPOINTERATIPROC glad_glElementPointerATI; -PFNGLDRAWELEMENTARRAYATIPROC glad_glDrawElementArrayATI; -PFNGLDRAWRANGEELEMENTARRAYATIPROC glad_glDrawRangeElementArrayATI; -PFNGLTEXBUMPPARAMETERIVATIPROC glad_glTexBumpParameterivATI; -PFNGLTEXBUMPPARAMETERFVATIPROC glad_glTexBumpParameterfvATI; -PFNGLGETTEXBUMPPARAMETERIVATIPROC glad_glGetTexBumpParameterivATI; -PFNGLGETTEXBUMPPARAMETERFVATIPROC glad_glGetTexBumpParameterfvATI; -PFNGLGENFRAGMENTSHADERSATIPROC glad_glGenFragmentShadersATI; -PFNGLBINDFRAGMENTSHADERATIPROC glad_glBindFragmentShaderATI; -PFNGLDELETEFRAGMENTSHADERATIPROC glad_glDeleteFragmentShaderATI; -PFNGLBEGINFRAGMENTSHADERATIPROC glad_glBeginFragmentShaderATI; -PFNGLENDFRAGMENTSHADERATIPROC glad_glEndFragmentShaderATI; -PFNGLPASSTEXCOORDATIPROC glad_glPassTexCoordATI; -PFNGLSAMPLEMAPATIPROC glad_glSampleMapATI; -PFNGLCOLORFRAGMENTOP1ATIPROC glad_glColorFragmentOp1ATI; -PFNGLCOLORFRAGMENTOP2ATIPROC glad_glColorFragmentOp2ATI; -PFNGLCOLORFRAGMENTOP3ATIPROC glad_glColorFragmentOp3ATI; -PFNGLALPHAFRAGMENTOP1ATIPROC glad_glAlphaFragmentOp1ATI; -PFNGLALPHAFRAGMENTOP2ATIPROC glad_glAlphaFragmentOp2ATI; -PFNGLALPHAFRAGMENTOP3ATIPROC glad_glAlphaFragmentOp3ATI; -PFNGLSETFRAGMENTSHADERCONSTANTATIPROC glad_glSetFragmentShaderConstantATI; -PFNGLMAPOBJECTBUFFERATIPROC glad_glMapObjectBufferATI; -PFNGLUNMAPOBJECTBUFFERATIPROC glad_glUnmapObjectBufferATI; -PFNGLPNTRIANGLESIATIPROC glad_glPNTrianglesiATI; -PFNGLPNTRIANGLESFATIPROC glad_glPNTrianglesfATI; -PFNGLSTENCILOPSEPARATEATIPROC glad_glStencilOpSeparateATI; -PFNGLSTENCILFUNCSEPARATEATIPROC glad_glStencilFuncSeparateATI; -PFNGLNEWOBJECTBUFFERATIPROC glad_glNewObjectBufferATI; -PFNGLISOBJECTBUFFERATIPROC glad_glIsObjectBufferATI; -PFNGLUPDATEOBJECTBUFFERATIPROC glad_glUpdateObjectBufferATI; -PFNGLGETOBJECTBUFFERFVATIPROC glad_glGetObjectBufferfvATI; -PFNGLGETOBJECTBUFFERIVATIPROC glad_glGetObjectBufferivATI; -PFNGLFREEOBJECTBUFFERATIPROC glad_glFreeObjectBufferATI; -PFNGLARRAYOBJECTATIPROC glad_glArrayObjectATI; -PFNGLGETARRAYOBJECTFVATIPROC glad_glGetArrayObjectfvATI; -PFNGLGETARRAYOBJECTIVATIPROC glad_glGetArrayObjectivATI; -PFNGLVARIANTARRAYOBJECTATIPROC glad_glVariantArrayObjectATI; -PFNGLGETVARIANTARRAYOBJECTFVATIPROC glad_glGetVariantArrayObjectfvATI; -PFNGLGETVARIANTARRAYOBJECTIVATIPROC glad_glGetVariantArrayObjectivATI; -PFNGLVERTEXATTRIBARRAYOBJECTATIPROC glad_glVertexAttribArrayObjectATI; -PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC glad_glGetVertexAttribArrayObjectfvATI; -PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC glad_glGetVertexAttribArrayObjectivATI; -PFNGLVERTEXSTREAM1SATIPROC glad_glVertexStream1sATI; -PFNGLVERTEXSTREAM1SVATIPROC glad_glVertexStream1svATI; -PFNGLVERTEXSTREAM1IATIPROC glad_glVertexStream1iATI; -PFNGLVERTEXSTREAM1IVATIPROC glad_glVertexStream1ivATI; -PFNGLVERTEXSTREAM1FATIPROC glad_glVertexStream1fATI; -PFNGLVERTEXSTREAM1FVATIPROC glad_glVertexStream1fvATI; -PFNGLVERTEXSTREAM1DATIPROC glad_glVertexStream1dATI; -PFNGLVERTEXSTREAM1DVATIPROC glad_glVertexStream1dvATI; -PFNGLVERTEXSTREAM2SATIPROC glad_glVertexStream2sATI; -PFNGLVERTEXSTREAM2SVATIPROC glad_glVertexStream2svATI; -PFNGLVERTEXSTREAM2IATIPROC glad_glVertexStream2iATI; -PFNGLVERTEXSTREAM2IVATIPROC glad_glVertexStream2ivATI; -PFNGLVERTEXSTREAM2FATIPROC glad_glVertexStream2fATI; -PFNGLVERTEXSTREAM2FVATIPROC glad_glVertexStream2fvATI; -PFNGLVERTEXSTREAM2DATIPROC glad_glVertexStream2dATI; -PFNGLVERTEXSTREAM2DVATIPROC glad_glVertexStream2dvATI; -PFNGLVERTEXSTREAM3SATIPROC glad_glVertexStream3sATI; -PFNGLVERTEXSTREAM3SVATIPROC glad_glVertexStream3svATI; -PFNGLVERTEXSTREAM3IATIPROC glad_glVertexStream3iATI; -PFNGLVERTEXSTREAM3IVATIPROC glad_glVertexStream3ivATI; -PFNGLVERTEXSTREAM3FATIPROC glad_glVertexStream3fATI; -PFNGLVERTEXSTREAM3FVATIPROC glad_glVertexStream3fvATI; -PFNGLVERTEXSTREAM3DATIPROC glad_glVertexStream3dATI; -PFNGLVERTEXSTREAM3DVATIPROC glad_glVertexStream3dvATI; -PFNGLVERTEXSTREAM4SATIPROC glad_glVertexStream4sATI; -PFNGLVERTEXSTREAM4SVATIPROC glad_glVertexStream4svATI; -PFNGLVERTEXSTREAM4IATIPROC glad_glVertexStream4iATI; -PFNGLVERTEXSTREAM4IVATIPROC glad_glVertexStream4ivATI; -PFNGLVERTEXSTREAM4FATIPROC glad_glVertexStream4fATI; -PFNGLVERTEXSTREAM4FVATIPROC glad_glVertexStream4fvATI; -PFNGLVERTEXSTREAM4DATIPROC glad_glVertexStream4dATI; -PFNGLVERTEXSTREAM4DVATIPROC glad_glVertexStream4dvATI; -PFNGLNORMALSTREAM3BATIPROC glad_glNormalStream3bATI; -PFNGLNORMALSTREAM3BVATIPROC glad_glNormalStream3bvATI; -PFNGLNORMALSTREAM3SATIPROC glad_glNormalStream3sATI; -PFNGLNORMALSTREAM3SVATIPROC glad_glNormalStream3svATI; -PFNGLNORMALSTREAM3IATIPROC glad_glNormalStream3iATI; -PFNGLNORMALSTREAM3IVATIPROC glad_glNormalStream3ivATI; -PFNGLNORMALSTREAM3FATIPROC glad_glNormalStream3fATI; -PFNGLNORMALSTREAM3FVATIPROC glad_glNormalStream3fvATI; -PFNGLNORMALSTREAM3DATIPROC glad_glNormalStream3dATI; -PFNGLNORMALSTREAM3DVATIPROC glad_glNormalStream3dvATI; -PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC glad_glClientActiveVertexStreamATI; -PFNGLVERTEXBLENDENVIATIPROC glad_glVertexBlendEnviATI; -PFNGLVERTEXBLENDENVFATIPROC glad_glVertexBlendEnvfATI; -PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC glad_glEGLImageTargetTexStorageEXT; -PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC glad_glEGLImageTargetTextureStorageEXT; -PFNGLUNIFORMBUFFEREXTPROC glad_glUniformBufferEXT; -PFNGLGETUNIFORMBUFFERSIZEEXTPROC glad_glGetUniformBufferSizeEXT; -PFNGLGETUNIFORMOFFSETEXTPROC glad_glGetUniformOffsetEXT; -PFNGLBLENDCOLOREXTPROC glad_glBlendColorEXT; -PFNGLBLENDEQUATIONSEPARATEEXTPROC glad_glBlendEquationSeparateEXT; -PFNGLBLENDFUNCSEPARATEEXTPROC glad_glBlendFuncSeparateEXT; -PFNGLBLENDEQUATIONEXTPROC glad_glBlendEquationEXT; -PFNGLCOLORSUBTABLEEXTPROC glad_glColorSubTableEXT; -PFNGLCOPYCOLORSUBTABLEEXTPROC glad_glCopyColorSubTableEXT; -PFNGLLOCKARRAYSEXTPROC glad_glLockArraysEXT; -PFNGLUNLOCKARRAYSEXTPROC glad_glUnlockArraysEXT; -PFNGLCONVOLUTIONFILTER1DEXTPROC glad_glConvolutionFilter1DEXT; -PFNGLCONVOLUTIONFILTER2DEXTPROC glad_glConvolutionFilter2DEXT; -PFNGLCONVOLUTIONPARAMETERFEXTPROC glad_glConvolutionParameterfEXT; -PFNGLCONVOLUTIONPARAMETERFVEXTPROC glad_glConvolutionParameterfvEXT; -PFNGLCONVOLUTIONPARAMETERIEXTPROC glad_glConvolutionParameteriEXT; -PFNGLCONVOLUTIONPARAMETERIVEXTPROC glad_glConvolutionParameterivEXT; -PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC glad_glCopyConvolutionFilter1DEXT; -PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC glad_glCopyConvolutionFilter2DEXT; -PFNGLGETCONVOLUTIONFILTEREXTPROC glad_glGetConvolutionFilterEXT; -PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC glad_glGetConvolutionParameterfvEXT; -PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC glad_glGetConvolutionParameterivEXT; -PFNGLGETSEPARABLEFILTEREXTPROC glad_glGetSeparableFilterEXT; -PFNGLSEPARABLEFILTER2DEXTPROC glad_glSeparableFilter2DEXT; -PFNGLTANGENT3BEXTPROC glad_glTangent3bEXT; -PFNGLTANGENT3BVEXTPROC glad_glTangent3bvEXT; -PFNGLTANGENT3DEXTPROC glad_glTangent3dEXT; -PFNGLTANGENT3DVEXTPROC glad_glTangent3dvEXT; -PFNGLTANGENT3FEXTPROC glad_glTangent3fEXT; -PFNGLTANGENT3FVEXTPROC glad_glTangent3fvEXT; -PFNGLTANGENT3IEXTPROC glad_glTangent3iEXT; -PFNGLTANGENT3IVEXTPROC glad_glTangent3ivEXT; -PFNGLTANGENT3SEXTPROC glad_glTangent3sEXT; -PFNGLTANGENT3SVEXTPROC glad_glTangent3svEXT; -PFNGLBINORMAL3BEXTPROC glad_glBinormal3bEXT; -PFNGLBINORMAL3BVEXTPROC glad_glBinormal3bvEXT; -PFNGLBINORMAL3DEXTPROC glad_glBinormal3dEXT; -PFNGLBINORMAL3DVEXTPROC glad_glBinormal3dvEXT; -PFNGLBINORMAL3FEXTPROC glad_glBinormal3fEXT; -PFNGLBINORMAL3FVEXTPROC glad_glBinormal3fvEXT; -PFNGLBINORMAL3IEXTPROC glad_glBinormal3iEXT; -PFNGLBINORMAL3IVEXTPROC glad_glBinormal3ivEXT; -PFNGLBINORMAL3SEXTPROC glad_glBinormal3sEXT; -PFNGLBINORMAL3SVEXTPROC glad_glBinormal3svEXT; -PFNGLTANGENTPOINTEREXTPROC glad_glTangentPointerEXT; -PFNGLBINORMALPOINTEREXTPROC glad_glBinormalPointerEXT; -PFNGLCOPYTEXIMAGE1DEXTPROC glad_glCopyTexImage1DEXT; -PFNGLCOPYTEXIMAGE2DEXTPROC glad_glCopyTexImage2DEXT; -PFNGLCOPYTEXSUBIMAGE1DEXTPROC glad_glCopyTexSubImage1DEXT; -PFNGLCOPYTEXSUBIMAGE2DEXTPROC glad_glCopyTexSubImage2DEXT; -PFNGLCOPYTEXSUBIMAGE3DEXTPROC glad_glCopyTexSubImage3DEXT; -PFNGLCULLPARAMETERDVEXTPROC glad_glCullParameterdvEXT; -PFNGLCULLPARAMETERFVEXTPROC glad_glCullParameterfvEXT; -PFNGLLABELOBJECTEXTPROC glad_glLabelObjectEXT; -PFNGLGETOBJECTLABELEXTPROC glad_glGetObjectLabelEXT; -PFNGLINSERTEVENTMARKEREXTPROC glad_glInsertEventMarkerEXT; -PFNGLPUSHGROUPMARKEREXTPROC glad_glPushGroupMarkerEXT; -PFNGLPOPGROUPMARKEREXTPROC glad_glPopGroupMarkerEXT; -PFNGLDEPTHBOUNDSEXTPROC glad_glDepthBoundsEXT; -PFNGLMATRIXLOADFEXTPROC glad_glMatrixLoadfEXT; -PFNGLMATRIXLOADDEXTPROC glad_glMatrixLoaddEXT; -PFNGLMATRIXMULTFEXTPROC glad_glMatrixMultfEXT; -PFNGLMATRIXMULTDEXTPROC glad_glMatrixMultdEXT; -PFNGLMATRIXLOADIDENTITYEXTPROC glad_glMatrixLoadIdentityEXT; -PFNGLMATRIXROTATEFEXTPROC glad_glMatrixRotatefEXT; -PFNGLMATRIXROTATEDEXTPROC glad_glMatrixRotatedEXT; -PFNGLMATRIXSCALEFEXTPROC glad_glMatrixScalefEXT; -PFNGLMATRIXSCALEDEXTPROC glad_glMatrixScaledEXT; -PFNGLMATRIXTRANSLATEFEXTPROC glad_glMatrixTranslatefEXT; -PFNGLMATRIXTRANSLATEDEXTPROC glad_glMatrixTranslatedEXT; -PFNGLMATRIXFRUSTUMEXTPROC glad_glMatrixFrustumEXT; -PFNGLMATRIXORTHOEXTPROC glad_glMatrixOrthoEXT; -PFNGLMATRIXPOPEXTPROC glad_glMatrixPopEXT; -PFNGLMATRIXPUSHEXTPROC glad_glMatrixPushEXT; -PFNGLCLIENTATTRIBDEFAULTEXTPROC glad_glClientAttribDefaultEXT; -PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC glad_glPushClientAttribDefaultEXT; -PFNGLTEXTUREPARAMETERFEXTPROC glad_glTextureParameterfEXT; -PFNGLTEXTUREPARAMETERFVEXTPROC glad_glTextureParameterfvEXT; -PFNGLTEXTUREPARAMETERIEXTPROC glad_glTextureParameteriEXT; -PFNGLTEXTUREPARAMETERIVEXTPROC glad_glTextureParameterivEXT; -PFNGLTEXTUREIMAGE1DEXTPROC glad_glTextureImage1DEXT; -PFNGLTEXTUREIMAGE2DEXTPROC glad_glTextureImage2DEXT; -PFNGLTEXTURESUBIMAGE1DEXTPROC glad_glTextureSubImage1DEXT; -PFNGLTEXTURESUBIMAGE2DEXTPROC glad_glTextureSubImage2DEXT; -PFNGLCOPYTEXTUREIMAGE1DEXTPROC glad_glCopyTextureImage1DEXT; -PFNGLCOPYTEXTUREIMAGE2DEXTPROC glad_glCopyTextureImage2DEXT; -PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC glad_glCopyTextureSubImage1DEXT; -PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC glad_glCopyTextureSubImage2DEXT; -PFNGLGETTEXTUREIMAGEEXTPROC glad_glGetTextureImageEXT; -PFNGLGETTEXTUREPARAMETERFVEXTPROC glad_glGetTextureParameterfvEXT; -PFNGLGETTEXTUREPARAMETERIVEXTPROC glad_glGetTextureParameterivEXT; -PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC glad_glGetTextureLevelParameterfvEXT; -PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC glad_glGetTextureLevelParameterivEXT; -PFNGLTEXTUREIMAGE3DEXTPROC glad_glTextureImage3DEXT; -PFNGLTEXTURESUBIMAGE3DEXTPROC glad_glTextureSubImage3DEXT; -PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC glad_glCopyTextureSubImage3DEXT; -PFNGLBINDMULTITEXTUREEXTPROC glad_glBindMultiTextureEXT; -PFNGLMULTITEXCOORDPOINTEREXTPROC glad_glMultiTexCoordPointerEXT; -PFNGLMULTITEXENVFEXTPROC glad_glMultiTexEnvfEXT; -PFNGLMULTITEXENVFVEXTPROC glad_glMultiTexEnvfvEXT; -PFNGLMULTITEXENVIEXTPROC glad_glMultiTexEnviEXT; -PFNGLMULTITEXENVIVEXTPROC glad_glMultiTexEnvivEXT; -PFNGLMULTITEXGENDEXTPROC glad_glMultiTexGendEXT; -PFNGLMULTITEXGENDVEXTPROC glad_glMultiTexGendvEXT; -PFNGLMULTITEXGENFEXTPROC glad_glMultiTexGenfEXT; -PFNGLMULTITEXGENFVEXTPROC glad_glMultiTexGenfvEXT; -PFNGLMULTITEXGENIEXTPROC glad_glMultiTexGeniEXT; -PFNGLMULTITEXGENIVEXTPROC glad_glMultiTexGenivEXT; -PFNGLGETMULTITEXENVFVEXTPROC glad_glGetMultiTexEnvfvEXT; -PFNGLGETMULTITEXENVIVEXTPROC glad_glGetMultiTexEnvivEXT; -PFNGLGETMULTITEXGENDVEXTPROC glad_glGetMultiTexGendvEXT; -PFNGLGETMULTITEXGENFVEXTPROC glad_glGetMultiTexGenfvEXT; -PFNGLGETMULTITEXGENIVEXTPROC glad_glGetMultiTexGenivEXT; -PFNGLMULTITEXPARAMETERIEXTPROC glad_glMultiTexParameteriEXT; -PFNGLMULTITEXPARAMETERIVEXTPROC glad_glMultiTexParameterivEXT; -PFNGLMULTITEXPARAMETERFEXTPROC glad_glMultiTexParameterfEXT; -PFNGLMULTITEXPARAMETERFVEXTPROC glad_glMultiTexParameterfvEXT; -PFNGLMULTITEXIMAGE1DEXTPROC glad_glMultiTexImage1DEXT; -PFNGLMULTITEXIMAGE2DEXTPROC glad_glMultiTexImage2DEXT; -PFNGLMULTITEXSUBIMAGE1DEXTPROC glad_glMultiTexSubImage1DEXT; -PFNGLMULTITEXSUBIMAGE2DEXTPROC glad_glMultiTexSubImage2DEXT; -PFNGLCOPYMULTITEXIMAGE1DEXTPROC glad_glCopyMultiTexImage1DEXT; -PFNGLCOPYMULTITEXIMAGE2DEXTPROC glad_glCopyMultiTexImage2DEXT; -PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC glad_glCopyMultiTexSubImage1DEXT; -PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC glad_glCopyMultiTexSubImage2DEXT; -PFNGLGETMULTITEXIMAGEEXTPROC glad_glGetMultiTexImageEXT; -PFNGLGETMULTITEXPARAMETERFVEXTPROC glad_glGetMultiTexParameterfvEXT; -PFNGLGETMULTITEXPARAMETERIVEXTPROC glad_glGetMultiTexParameterivEXT; -PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC glad_glGetMultiTexLevelParameterfvEXT; -PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC glad_glGetMultiTexLevelParameterivEXT; -PFNGLMULTITEXIMAGE3DEXTPROC glad_glMultiTexImage3DEXT; -PFNGLMULTITEXSUBIMAGE3DEXTPROC glad_glMultiTexSubImage3DEXT; -PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC glad_glCopyMultiTexSubImage3DEXT; -PFNGLENABLECLIENTSTATEINDEXEDEXTPROC glad_glEnableClientStateIndexedEXT; -PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC glad_glDisableClientStateIndexedEXT; -PFNGLGETFLOATINDEXEDVEXTPROC glad_glGetFloatIndexedvEXT; -PFNGLGETDOUBLEINDEXEDVEXTPROC glad_glGetDoubleIndexedvEXT; -PFNGLGETPOINTERINDEXEDVEXTPROC glad_glGetPointerIndexedvEXT; -PFNGLENABLEINDEXEDEXTPROC glad_glEnableIndexedEXT; -PFNGLDISABLEINDEXEDEXTPROC glad_glDisableIndexedEXT; -PFNGLISENABLEDINDEXEDEXTPROC glad_glIsEnabledIndexedEXT; -PFNGLGETINTEGERINDEXEDVEXTPROC glad_glGetIntegerIndexedvEXT; -PFNGLGETBOOLEANINDEXEDVEXTPROC glad_glGetBooleanIndexedvEXT; -PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC glad_glCompressedTextureImage3DEXT; -PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC glad_glCompressedTextureImage2DEXT; -PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC glad_glCompressedTextureImage1DEXT; -PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC glad_glCompressedTextureSubImage3DEXT; -PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC glad_glCompressedTextureSubImage2DEXT; -PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC glad_glCompressedTextureSubImage1DEXT; -PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC glad_glGetCompressedTextureImageEXT; -PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC glad_glCompressedMultiTexImage3DEXT; -PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC glad_glCompressedMultiTexImage2DEXT; -PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC glad_glCompressedMultiTexImage1DEXT; -PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC glad_glCompressedMultiTexSubImage3DEXT; -PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC glad_glCompressedMultiTexSubImage2DEXT; -PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC glad_glCompressedMultiTexSubImage1DEXT; -PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC glad_glGetCompressedMultiTexImageEXT; -PFNGLMATRIXLOADTRANSPOSEFEXTPROC glad_glMatrixLoadTransposefEXT; -PFNGLMATRIXLOADTRANSPOSEDEXTPROC glad_glMatrixLoadTransposedEXT; -PFNGLMATRIXMULTTRANSPOSEFEXTPROC glad_glMatrixMultTransposefEXT; -PFNGLMATRIXMULTTRANSPOSEDEXTPROC glad_glMatrixMultTransposedEXT; -PFNGLNAMEDBUFFERDATAEXTPROC glad_glNamedBufferDataEXT; -PFNGLNAMEDBUFFERSUBDATAEXTPROC glad_glNamedBufferSubDataEXT; -PFNGLMAPNAMEDBUFFEREXTPROC glad_glMapNamedBufferEXT; -PFNGLUNMAPNAMEDBUFFEREXTPROC glad_glUnmapNamedBufferEXT; -PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC glad_glGetNamedBufferParameterivEXT; -PFNGLGETNAMEDBUFFERPOINTERVEXTPROC glad_glGetNamedBufferPointervEXT; -PFNGLGETNAMEDBUFFERSUBDATAEXTPROC glad_glGetNamedBufferSubDataEXT; -PFNGLPROGRAMUNIFORM1FEXTPROC glad_glProgramUniform1fEXT; -PFNGLPROGRAMUNIFORM2FEXTPROC glad_glProgramUniform2fEXT; -PFNGLPROGRAMUNIFORM3FEXTPROC glad_glProgramUniform3fEXT; -PFNGLPROGRAMUNIFORM4FEXTPROC glad_glProgramUniform4fEXT; -PFNGLPROGRAMUNIFORM1IEXTPROC glad_glProgramUniform1iEXT; -PFNGLPROGRAMUNIFORM2IEXTPROC glad_glProgramUniform2iEXT; -PFNGLPROGRAMUNIFORM3IEXTPROC glad_glProgramUniform3iEXT; -PFNGLPROGRAMUNIFORM4IEXTPROC glad_glProgramUniform4iEXT; -PFNGLPROGRAMUNIFORM1FVEXTPROC glad_glProgramUniform1fvEXT; -PFNGLPROGRAMUNIFORM2FVEXTPROC glad_glProgramUniform2fvEXT; -PFNGLPROGRAMUNIFORM3FVEXTPROC glad_glProgramUniform3fvEXT; -PFNGLPROGRAMUNIFORM4FVEXTPROC glad_glProgramUniform4fvEXT; -PFNGLPROGRAMUNIFORM1IVEXTPROC glad_glProgramUniform1ivEXT; -PFNGLPROGRAMUNIFORM2IVEXTPROC glad_glProgramUniform2ivEXT; -PFNGLPROGRAMUNIFORM3IVEXTPROC glad_glProgramUniform3ivEXT; -PFNGLPROGRAMUNIFORM4IVEXTPROC glad_glProgramUniform4ivEXT; -PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC glad_glProgramUniformMatrix2fvEXT; -PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC glad_glProgramUniformMatrix3fvEXT; -PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC glad_glProgramUniformMatrix4fvEXT; -PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC glad_glProgramUniformMatrix2x3fvEXT; -PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC glad_glProgramUniformMatrix3x2fvEXT; -PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC glad_glProgramUniformMatrix2x4fvEXT; -PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC glad_glProgramUniformMatrix4x2fvEXT; -PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC glad_glProgramUniformMatrix3x4fvEXT; -PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC glad_glProgramUniformMatrix4x3fvEXT; -PFNGLTEXTUREBUFFEREXTPROC glad_glTextureBufferEXT; -PFNGLMULTITEXBUFFEREXTPROC glad_glMultiTexBufferEXT; -PFNGLTEXTUREPARAMETERIIVEXTPROC glad_glTextureParameterIivEXT; -PFNGLTEXTUREPARAMETERIUIVEXTPROC glad_glTextureParameterIuivEXT; -PFNGLGETTEXTUREPARAMETERIIVEXTPROC glad_glGetTextureParameterIivEXT; -PFNGLGETTEXTUREPARAMETERIUIVEXTPROC glad_glGetTextureParameterIuivEXT; -PFNGLMULTITEXPARAMETERIIVEXTPROC glad_glMultiTexParameterIivEXT; -PFNGLMULTITEXPARAMETERIUIVEXTPROC glad_glMultiTexParameterIuivEXT; -PFNGLGETMULTITEXPARAMETERIIVEXTPROC glad_glGetMultiTexParameterIivEXT; -PFNGLGETMULTITEXPARAMETERIUIVEXTPROC glad_glGetMultiTexParameterIuivEXT; -PFNGLPROGRAMUNIFORM1UIEXTPROC glad_glProgramUniform1uiEXT; -PFNGLPROGRAMUNIFORM2UIEXTPROC glad_glProgramUniform2uiEXT; -PFNGLPROGRAMUNIFORM3UIEXTPROC glad_glProgramUniform3uiEXT; -PFNGLPROGRAMUNIFORM4UIEXTPROC glad_glProgramUniform4uiEXT; -PFNGLPROGRAMUNIFORM1UIVEXTPROC glad_glProgramUniform1uivEXT; -PFNGLPROGRAMUNIFORM2UIVEXTPROC glad_glProgramUniform2uivEXT; -PFNGLPROGRAMUNIFORM3UIVEXTPROC glad_glProgramUniform3uivEXT; -PFNGLPROGRAMUNIFORM4UIVEXTPROC glad_glProgramUniform4uivEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC glad_glNamedProgramLocalParameters4fvEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC glad_glNamedProgramLocalParameterI4iEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC glad_glNamedProgramLocalParameterI4ivEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC glad_glNamedProgramLocalParametersI4ivEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC glad_glNamedProgramLocalParameterI4uiEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC glad_glNamedProgramLocalParameterI4uivEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC glad_glNamedProgramLocalParametersI4uivEXT; -PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC glad_glGetNamedProgramLocalParameterIivEXT; -PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC glad_glGetNamedProgramLocalParameterIuivEXT; -PFNGLENABLECLIENTSTATEIEXTPROC glad_glEnableClientStateiEXT; -PFNGLDISABLECLIENTSTATEIEXTPROC glad_glDisableClientStateiEXT; -PFNGLGETFLOATI_VEXTPROC glad_glGetFloati_vEXT; -PFNGLGETDOUBLEI_VEXTPROC glad_glGetDoublei_vEXT; -PFNGLGETPOINTERI_VEXTPROC glad_glGetPointeri_vEXT; -PFNGLNAMEDPROGRAMSTRINGEXTPROC glad_glNamedProgramStringEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC glad_glNamedProgramLocalParameter4dEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC glad_glNamedProgramLocalParameter4dvEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC glad_glNamedProgramLocalParameter4fEXT; -PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC glad_glNamedProgramLocalParameter4fvEXT; -PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC glad_glGetNamedProgramLocalParameterdvEXT; -PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC glad_glGetNamedProgramLocalParameterfvEXT; -PFNGLGETNAMEDPROGRAMIVEXTPROC glad_glGetNamedProgramivEXT; -PFNGLGETNAMEDPROGRAMSTRINGEXTPROC glad_glGetNamedProgramStringEXT; -PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC glad_glNamedRenderbufferStorageEXT; -PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC glad_glGetNamedRenderbufferParameterivEXT; -PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glad_glNamedRenderbufferStorageMultisampleEXT; -PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC glad_glNamedRenderbufferStorageMultisampleCoverageEXT; -PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC glad_glCheckNamedFramebufferStatusEXT; -PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC glad_glNamedFramebufferTexture1DEXT; -PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC glad_glNamedFramebufferTexture2DEXT; -PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC glad_glNamedFramebufferTexture3DEXT; -PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC glad_glNamedFramebufferRenderbufferEXT; -PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glad_glGetNamedFramebufferAttachmentParameterivEXT; -PFNGLGENERATETEXTUREMIPMAPEXTPROC glad_glGenerateTextureMipmapEXT; -PFNGLGENERATEMULTITEXMIPMAPEXTPROC glad_glGenerateMultiTexMipmapEXT; -PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC glad_glFramebufferDrawBufferEXT; -PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC glad_glFramebufferDrawBuffersEXT; -PFNGLFRAMEBUFFERREADBUFFEREXTPROC glad_glFramebufferReadBufferEXT; -PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC glad_glGetFramebufferParameterivEXT; -PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC glad_glNamedCopyBufferSubDataEXT; -PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC glad_glNamedFramebufferTextureEXT; -PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC glad_glNamedFramebufferTextureLayerEXT; -PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC glad_glNamedFramebufferTextureFaceEXT; -PFNGLTEXTURERENDERBUFFEREXTPROC glad_glTextureRenderbufferEXT; -PFNGLMULTITEXRENDERBUFFEREXTPROC glad_glMultiTexRenderbufferEXT; -PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC glad_glVertexArrayVertexOffsetEXT; -PFNGLVERTEXARRAYCOLOROFFSETEXTPROC glad_glVertexArrayColorOffsetEXT; -PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC glad_glVertexArrayEdgeFlagOffsetEXT; -PFNGLVERTEXARRAYINDEXOFFSETEXTPROC glad_glVertexArrayIndexOffsetEXT; -PFNGLVERTEXARRAYNORMALOFFSETEXTPROC glad_glVertexArrayNormalOffsetEXT; -PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC glad_glVertexArrayTexCoordOffsetEXT; -PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC glad_glVertexArrayMultiTexCoordOffsetEXT; -PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC glad_glVertexArrayFogCoordOffsetEXT; -PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC glad_glVertexArraySecondaryColorOffsetEXT; -PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC glad_glVertexArrayVertexAttribOffsetEXT; -PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC glad_glVertexArrayVertexAttribIOffsetEXT; -PFNGLENABLEVERTEXARRAYEXTPROC glad_glEnableVertexArrayEXT; -PFNGLDISABLEVERTEXARRAYEXTPROC glad_glDisableVertexArrayEXT; -PFNGLENABLEVERTEXARRAYATTRIBEXTPROC glad_glEnableVertexArrayAttribEXT; -PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC glad_glDisableVertexArrayAttribEXT; -PFNGLGETVERTEXARRAYINTEGERVEXTPROC glad_glGetVertexArrayIntegervEXT; -PFNGLGETVERTEXARRAYPOINTERVEXTPROC glad_glGetVertexArrayPointervEXT; -PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC glad_glGetVertexArrayIntegeri_vEXT; -PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC glad_glGetVertexArrayPointeri_vEXT; -PFNGLMAPNAMEDBUFFERRANGEEXTPROC glad_glMapNamedBufferRangeEXT; -PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC glad_glFlushMappedNamedBufferRangeEXT; -PFNGLNAMEDBUFFERSTORAGEEXTPROC glad_glNamedBufferStorageEXT; -PFNGLCLEARNAMEDBUFFERDATAEXTPROC glad_glClearNamedBufferDataEXT; -PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC glad_glClearNamedBufferSubDataEXT; -PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC glad_glNamedFramebufferParameteriEXT; -PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC glad_glGetNamedFramebufferParameterivEXT; -PFNGLPROGRAMUNIFORM1DEXTPROC glad_glProgramUniform1dEXT; -PFNGLPROGRAMUNIFORM2DEXTPROC glad_glProgramUniform2dEXT; -PFNGLPROGRAMUNIFORM3DEXTPROC glad_glProgramUniform3dEXT; -PFNGLPROGRAMUNIFORM4DEXTPROC glad_glProgramUniform4dEXT; -PFNGLPROGRAMUNIFORM1DVEXTPROC glad_glProgramUniform1dvEXT; -PFNGLPROGRAMUNIFORM2DVEXTPROC glad_glProgramUniform2dvEXT; -PFNGLPROGRAMUNIFORM3DVEXTPROC glad_glProgramUniform3dvEXT; -PFNGLPROGRAMUNIFORM4DVEXTPROC glad_glProgramUniform4dvEXT; -PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC glad_glProgramUniformMatrix2dvEXT; -PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC glad_glProgramUniformMatrix3dvEXT; -PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC glad_glProgramUniformMatrix4dvEXT; -PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC glad_glProgramUniformMatrix2x3dvEXT; -PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC glad_glProgramUniformMatrix2x4dvEXT; -PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC glad_glProgramUniformMatrix3x2dvEXT; -PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC glad_glProgramUniformMatrix3x4dvEXT; -PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC glad_glProgramUniformMatrix4x2dvEXT; -PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC glad_glProgramUniformMatrix4x3dvEXT; -PFNGLTEXTUREBUFFERRANGEEXTPROC glad_glTextureBufferRangeEXT; -PFNGLTEXTURESTORAGE1DEXTPROC glad_glTextureStorage1DEXT; -PFNGLTEXTURESTORAGE2DEXTPROC glad_glTextureStorage2DEXT; -PFNGLTEXTURESTORAGE3DEXTPROC glad_glTextureStorage3DEXT; -PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC glad_glTextureStorage2DMultisampleEXT; -PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC glad_glTextureStorage3DMultisampleEXT; -PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC glad_glVertexArrayBindVertexBufferEXT; -PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC glad_glVertexArrayVertexAttribFormatEXT; -PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC glad_glVertexArrayVertexAttribIFormatEXT; -PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC glad_glVertexArrayVertexAttribLFormatEXT; -PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC glad_glVertexArrayVertexAttribBindingEXT; -PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC glad_glVertexArrayVertexBindingDivisorEXT; -PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC glad_glVertexArrayVertexAttribLOffsetEXT; -PFNGLTEXTUREPAGECOMMITMENTEXTPROC glad_glTexturePageCommitmentEXT; -PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC glad_glVertexArrayVertexAttribDivisorEXT; -PFNGLCOLORMASKINDEXEDEXTPROC glad_glColorMaskIndexedEXT; -PFNGLDRAWARRAYSINSTANCEDEXTPROC glad_glDrawArraysInstancedEXT; -PFNGLDRAWELEMENTSINSTANCEDEXTPROC glad_glDrawElementsInstancedEXT; -PFNGLDRAWRANGEELEMENTSEXTPROC glad_glDrawRangeElementsEXT; -PFNGLBUFFERSTORAGEEXTERNALEXTPROC glad_glBufferStorageExternalEXT; -PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC glad_glNamedBufferStorageExternalEXT; -PFNGLFOGCOORDFEXTPROC glad_glFogCoordfEXT; -PFNGLFOGCOORDFVEXTPROC glad_glFogCoordfvEXT; -PFNGLFOGCOORDDEXTPROC glad_glFogCoorddEXT; -PFNGLFOGCOORDDVEXTPROC glad_glFogCoorddvEXT; -PFNGLFOGCOORDPOINTEREXTPROC glad_glFogCoordPointerEXT; -PFNGLBLITFRAMEBUFFEREXTPROC glad_glBlitFramebufferEXT; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glad_glRenderbufferStorageMultisampleEXT; -PFNGLISRENDERBUFFEREXTPROC glad_glIsRenderbufferEXT; -PFNGLBINDRENDERBUFFEREXTPROC glad_glBindRenderbufferEXT; -PFNGLDELETERENDERBUFFERSEXTPROC glad_glDeleteRenderbuffersEXT; -PFNGLGENRENDERBUFFERSEXTPROC glad_glGenRenderbuffersEXT; -PFNGLRENDERBUFFERSTORAGEEXTPROC glad_glRenderbufferStorageEXT; -PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC glad_glGetRenderbufferParameterivEXT; -PFNGLISFRAMEBUFFEREXTPROC glad_glIsFramebufferEXT; -PFNGLBINDFRAMEBUFFEREXTPROC glad_glBindFramebufferEXT; -PFNGLDELETEFRAMEBUFFERSEXTPROC glad_glDeleteFramebuffersEXT; -PFNGLGENFRAMEBUFFERSEXTPROC glad_glGenFramebuffersEXT; -PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glad_glCheckFramebufferStatusEXT; -PFNGLFRAMEBUFFERTEXTURE1DEXTPROC glad_glFramebufferTexture1DEXT; -PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glad_glFramebufferTexture2DEXT; -PFNGLFRAMEBUFFERTEXTURE3DEXTPROC glad_glFramebufferTexture3DEXT; -PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glad_glFramebufferRenderbufferEXT; -PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glad_glGetFramebufferAttachmentParameterivEXT; -PFNGLGENERATEMIPMAPEXTPROC glad_glGenerateMipmapEXT; -PFNGLPROGRAMPARAMETERIEXTPROC glad_glProgramParameteriEXT; -PFNGLPROGRAMENVPARAMETERS4FVEXTPROC glad_glProgramEnvParameters4fvEXT; -PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC glad_glProgramLocalParameters4fvEXT; -PFNGLGETUNIFORMUIVEXTPROC glad_glGetUniformuivEXT; -PFNGLBINDFRAGDATALOCATIONEXTPROC glad_glBindFragDataLocationEXT; -PFNGLGETFRAGDATALOCATIONEXTPROC glad_glGetFragDataLocationEXT; -PFNGLUNIFORM1UIEXTPROC glad_glUniform1uiEXT; -PFNGLUNIFORM2UIEXTPROC glad_glUniform2uiEXT; -PFNGLUNIFORM3UIEXTPROC glad_glUniform3uiEXT; -PFNGLUNIFORM4UIEXTPROC glad_glUniform4uiEXT; -PFNGLUNIFORM1UIVEXTPROC glad_glUniform1uivEXT; -PFNGLUNIFORM2UIVEXTPROC glad_glUniform2uivEXT; -PFNGLUNIFORM3UIVEXTPROC glad_glUniform3uivEXT; -PFNGLUNIFORM4UIVEXTPROC glad_glUniform4uivEXT; -PFNGLGETHISTOGRAMEXTPROC glad_glGetHistogramEXT; -PFNGLGETHISTOGRAMPARAMETERFVEXTPROC glad_glGetHistogramParameterfvEXT; -PFNGLGETHISTOGRAMPARAMETERIVEXTPROC glad_glGetHistogramParameterivEXT; -PFNGLGETMINMAXEXTPROC glad_glGetMinmaxEXT; -PFNGLGETMINMAXPARAMETERFVEXTPROC glad_glGetMinmaxParameterfvEXT; -PFNGLGETMINMAXPARAMETERIVEXTPROC glad_glGetMinmaxParameterivEXT; -PFNGLHISTOGRAMEXTPROC glad_glHistogramEXT; -PFNGLMINMAXEXTPROC glad_glMinmaxEXT; -PFNGLRESETHISTOGRAMEXTPROC glad_glResetHistogramEXT; -PFNGLRESETMINMAXEXTPROC glad_glResetMinmaxEXT; -PFNGLINDEXFUNCEXTPROC glad_glIndexFuncEXT; -PFNGLINDEXMATERIALEXTPROC glad_glIndexMaterialEXT; -PFNGLAPPLYTEXTUREEXTPROC glad_glApplyTextureEXT; -PFNGLTEXTURELIGHTEXTPROC glad_glTextureLightEXT; -PFNGLTEXTUREMATERIALEXTPROC glad_glTextureMaterialEXT; -PFNGLGETUNSIGNEDBYTEVEXTPROC glad_glGetUnsignedBytevEXT; -PFNGLGETUNSIGNEDBYTEI_VEXTPROC glad_glGetUnsignedBytei_vEXT; -PFNGLDELETEMEMORYOBJECTSEXTPROC glad_glDeleteMemoryObjectsEXT; -PFNGLISMEMORYOBJECTEXTPROC glad_glIsMemoryObjectEXT; -PFNGLCREATEMEMORYOBJECTSEXTPROC glad_glCreateMemoryObjectsEXT; -PFNGLMEMORYOBJECTPARAMETERIVEXTPROC glad_glMemoryObjectParameterivEXT; -PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC glad_glGetMemoryObjectParameterivEXT; -PFNGLTEXSTORAGEMEM2DEXTPROC glad_glTexStorageMem2DEXT; -PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC glad_glTexStorageMem2DMultisampleEXT; -PFNGLTEXSTORAGEMEM3DEXTPROC glad_glTexStorageMem3DEXT; -PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC glad_glTexStorageMem3DMultisampleEXT; -PFNGLBUFFERSTORAGEMEMEXTPROC glad_glBufferStorageMemEXT; -PFNGLTEXTURESTORAGEMEM2DEXTPROC glad_glTextureStorageMem2DEXT; -PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC glad_glTextureStorageMem2DMultisampleEXT; -PFNGLTEXTURESTORAGEMEM3DEXTPROC glad_glTextureStorageMem3DEXT; -PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC glad_glTextureStorageMem3DMultisampleEXT; -PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC glad_glNamedBufferStorageMemEXT; -PFNGLTEXSTORAGEMEM1DEXTPROC glad_glTexStorageMem1DEXT; -PFNGLTEXTURESTORAGEMEM1DEXTPROC glad_glTextureStorageMem1DEXT; -PFNGLIMPORTMEMORYFDEXTPROC glad_glImportMemoryFdEXT; -PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC glad_glImportMemoryWin32HandleEXT; -PFNGLIMPORTMEMORYWIN32NAMEEXTPROC glad_glImportMemoryWin32NameEXT; -PFNGLMULTIDRAWARRAYSEXTPROC glad_glMultiDrawArraysEXT; -PFNGLMULTIDRAWELEMENTSEXTPROC glad_glMultiDrawElementsEXT; -PFNGLSAMPLEMASKEXTPROC glad_glSampleMaskEXT; -PFNGLSAMPLEPATTERNEXTPROC glad_glSamplePatternEXT; -PFNGLCOLORTABLEEXTPROC glad_glColorTableEXT; -PFNGLGETCOLORTABLEEXTPROC glad_glGetColorTableEXT; -PFNGLGETCOLORTABLEPARAMETERIVEXTPROC glad_glGetColorTableParameterivEXT; -PFNGLGETCOLORTABLEPARAMETERFVEXTPROC glad_glGetColorTableParameterfvEXT; -PFNGLPIXELTRANSFORMPARAMETERIEXTPROC glad_glPixelTransformParameteriEXT; -PFNGLPIXELTRANSFORMPARAMETERFEXTPROC glad_glPixelTransformParameterfEXT; -PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC glad_glPixelTransformParameterivEXT; -PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC glad_glPixelTransformParameterfvEXT; -PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC glad_glGetPixelTransformParameterivEXT; -PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC glad_glGetPixelTransformParameterfvEXT; -PFNGLPOINTPARAMETERFEXTPROC glad_glPointParameterfEXT; -PFNGLPOINTPARAMETERFVEXTPROC glad_glPointParameterfvEXT; -PFNGLPOLYGONOFFSETEXTPROC glad_glPolygonOffsetEXT; -PFNGLPOLYGONOFFSETCLAMPEXTPROC glad_glPolygonOffsetClampEXT; -PFNGLPROVOKINGVERTEXEXTPROC glad_glProvokingVertexEXT; -PFNGLRASTERSAMPLESEXTPROC glad_glRasterSamplesEXT; -PFNGLSECONDARYCOLOR3BEXTPROC glad_glSecondaryColor3bEXT; -PFNGLSECONDARYCOLOR3BVEXTPROC glad_glSecondaryColor3bvEXT; -PFNGLSECONDARYCOLOR3DEXTPROC glad_glSecondaryColor3dEXT; -PFNGLSECONDARYCOLOR3DVEXTPROC glad_glSecondaryColor3dvEXT; -PFNGLSECONDARYCOLOR3FEXTPROC glad_glSecondaryColor3fEXT; -PFNGLSECONDARYCOLOR3FVEXTPROC glad_glSecondaryColor3fvEXT; -PFNGLSECONDARYCOLOR3IEXTPROC glad_glSecondaryColor3iEXT; -PFNGLSECONDARYCOLOR3IVEXTPROC glad_glSecondaryColor3ivEXT; -PFNGLSECONDARYCOLOR3SEXTPROC glad_glSecondaryColor3sEXT; -PFNGLSECONDARYCOLOR3SVEXTPROC glad_glSecondaryColor3svEXT; -PFNGLSECONDARYCOLOR3UBEXTPROC glad_glSecondaryColor3ubEXT; -PFNGLSECONDARYCOLOR3UBVEXTPROC glad_glSecondaryColor3ubvEXT; -PFNGLSECONDARYCOLOR3UIEXTPROC glad_glSecondaryColor3uiEXT; -PFNGLSECONDARYCOLOR3UIVEXTPROC glad_glSecondaryColor3uivEXT; -PFNGLSECONDARYCOLOR3USEXTPROC glad_glSecondaryColor3usEXT; -PFNGLSECONDARYCOLOR3USVEXTPROC glad_glSecondaryColor3usvEXT; -PFNGLSECONDARYCOLORPOINTEREXTPROC glad_glSecondaryColorPointerEXT; -PFNGLGENSEMAPHORESEXTPROC glad_glGenSemaphoresEXT; -PFNGLDELETESEMAPHORESEXTPROC glad_glDeleteSemaphoresEXT; -PFNGLISSEMAPHOREEXTPROC glad_glIsSemaphoreEXT; -PFNGLSEMAPHOREPARAMETERUI64VEXTPROC glad_glSemaphoreParameterui64vEXT; -PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC glad_glGetSemaphoreParameterui64vEXT; -PFNGLWAITSEMAPHOREEXTPROC glad_glWaitSemaphoreEXT; -PFNGLSIGNALSEMAPHOREEXTPROC glad_glSignalSemaphoreEXT; -PFNGLIMPORTSEMAPHOREFDEXTPROC glad_glImportSemaphoreFdEXT; -PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC glad_glImportSemaphoreWin32HandleEXT; -PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC glad_glImportSemaphoreWin32NameEXT; -PFNGLUSESHADERPROGRAMEXTPROC glad_glUseShaderProgramEXT; -PFNGLACTIVEPROGRAMEXTPROC glad_glActiveProgramEXT; -PFNGLCREATESHADERPROGRAMEXTPROC glad_glCreateShaderProgramEXT; -PFNGLACTIVESHADERPROGRAMEXTPROC glad_glActiveShaderProgramEXT; -PFNGLBINDPROGRAMPIPELINEEXTPROC glad_glBindProgramPipelineEXT; -PFNGLCREATESHADERPROGRAMVEXTPROC glad_glCreateShaderProgramvEXT; -PFNGLDELETEPROGRAMPIPELINESEXTPROC glad_glDeleteProgramPipelinesEXT; -PFNGLGENPROGRAMPIPELINESEXTPROC glad_glGenProgramPipelinesEXT; -PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC glad_glGetProgramPipelineInfoLogEXT; -PFNGLGETPROGRAMPIPELINEIVEXTPROC glad_glGetProgramPipelineivEXT; -PFNGLISPROGRAMPIPELINEEXTPROC glad_glIsProgramPipelineEXT; -PFNGLUSEPROGRAMSTAGESEXTPROC glad_glUseProgramStagesEXT; -PFNGLVALIDATEPROGRAMPIPELINEEXTPROC glad_glValidateProgramPipelineEXT; -PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC glad_glFramebufferFetchBarrierEXT; -PFNGLBINDIMAGETEXTUREEXTPROC glad_glBindImageTextureEXT; -PFNGLMEMORYBARRIEREXTPROC glad_glMemoryBarrierEXT; -PFNGLSTENCILCLEARTAGEXTPROC glad_glStencilClearTagEXT; -PFNGLACTIVESTENCILFACEEXTPROC glad_glActiveStencilFaceEXT; -PFNGLTEXSUBIMAGE1DEXTPROC glad_glTexSubImage1DEXT; -PFNGLTEXSUBIMAGE2DEXTPROC glad_glTexSubImage2DEXT; -PFNGLTEXIMAGE3DEXTPROC glad_glTexImage3DEXT; -PFNGLTEXSUBIMAGE3DEXTPROC glad_glTexSubImage3DEXT; -PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC glad_glFramebufferTextureLayerEXT; -PFNGLTEXBUFFEREXTPROC glad_glTexBufferEXT; -PFNGLTEXPARAMETERIIVEXTPROC glad_glTexParameterIivEXT; -PFNGLTEXPARAMETERIUIVEXTPROC glad_glTexParameterIuivEXT; -PFNGLGETTEXPARAMETERIIVEXTPROC glad_glGetTexParameterIivEXT; -PFNGLGETTEXPARAMETERIUIVEXTPROC glad_glGetTexParameterIuivEXT; -PFNGLCLEARCOLORIIEXTPROC glad_glClearColorIiEXT; -PFNGLCLEARCOLORIUIEXTPROC glad_glClearColorIuiEXT; -PFNGLARETEXTURESRESIDENTEXTPROC glad_glAreTexturesResidentEXT; -PFNGLBINDTEXTUREEXTPROC glad_glBindTextureEXT; -PFNGLDELETETEXTURESEXTPROC glad_glDeleteTexturesEXT; -PFNGLGENTEXTURESEXTPROC glad_glGenTexturesEXT; -PFNGLISTEXTUREEXTPROC glad_glIsTextureEXT; -PFNGLPRIORITIZETEXTURESEXTPROC glad_glPrioritizeTexturesEXT; -PFNGLTEXTURENORMALEXTPROC glad_glTextureNormalEXT; -PFNGLGETQUERYOBJECTI64VEXTPROC glad_glGetQueryObjecti64vEXT; -PFNGLGETQUERYOBJECTUI64VEXTPROC glad_glGetQueryObjectui64vEXT; -PFNGLBEGINTRANSFORMFEEDBACKEXTPROC glad_glBeginTransformFeedbackEXT; -PFNGLENDTRANSFORMFEEDBACKEXTPROC glad_glEndTransformFeedbackEXT; -PFNGLBINDBUFFERRANGEEXTPROC glad_glBindBufferRangeEXT; -PFNGLBINDBUFFEROFFSETEXTPROC glad_glBindBufferOffsetEXT; -PFNGLBINDBUFFERBASEEXTPROC glad_glBindBufferBaseEXT; -PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC glad_glTransformFeedbackVaryingsEXT; -PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC glad_glGetTransformFeedbackVaryingEXT; -PFNGLARRAYELEMENTEXTPROC glad_glArrayElementEXT; -PFNGLCOLORPOINTEREXTPROC glad_glColorPointerEXT; -PFNGLDRAWARRAYSEXTPROC glad_glDrawArraysEXT; -PFNGLEDGEFLAGPOINTEREXTPROC glad_glEdgeFlagPointerEXT; -PFNGLGETPOINTERVEXTPROC glad_glGetPointervEXT; -PFNGLINDEXPOINTEREXTPROC glad_glIndexPointerEXT; -PFNGLNORMALPOINTEREXTPROC glad_glNormalPointerEXT; -PFNGLTEXCOORDPOINTEREXTPROC glad_glTexCoordPointerEXT; -PFNGLVERTEXPOINTEREXTPROC glad_glVertexPointerEXT; -PFNGLVERTEXATTRIBL1DEXTPROC glad_glVertexAttribL1dEXT; -PFNGLVERTEXATTRIBL2DEXTPROC glad_glVertexAttribL2dEXT; -PFNGLVERTEXATTRIBL3DEXTPROC glad_glVertexAttribL3dEXT; -PFNGLVERTEXATTRIBL4DEXTPROC glad_glVertexAttribL4dEXT; -PFNGLVERTEXATTRIBL1DVEXTPROC glad_glVertexAttribL1dvEXT; -PFNGLVERTEXATTRIBL2DVEXTPROC glad_glVertexAttribL2dvEXT; -PFNGLVERTEXATTRIBL3DVEXTPROC glad_glVertexAttribL3dvEXT; -PFNGLVERTEXATTRIBL4DVEXTPROC glad_glVertexAttribL4dvEXT; -PFNGLVERTEXATTRIBLPOINTEREXTPROC glad_glVertexAttribLPointerEXT; -PFNGLGETVERTEXATTRIBLDVEXTPROC glad_glGetVertexAttribLdvEXT; -PFNGLBEGINVERTEXSHADEREXTPROC glad_glBeginVertexShaderEXT; -PFNGLENDVERTEXSHADEREXTPROC glad_glEndVertexShaderEXT; -PFNGLBINDVERTEXSHADEREXTPROC glad_glBindVertexShaderEXT; -PFNGLGENVERTEXSHADERSEXTPROC glad_glGenVertexShadersEXT; -PFNGLDELETEVERTEXSHADEREXTPROC glad_glDeleteVertexShaderEXT; -PFNGLSHADEROP1EXTPROC glad_glShaderOp1EXT; -PFNGLSHADEROP2EXTPROC glad_glShaderOp2EXT; -PFNGLSHADEROP3EXTPROC glad_glShaderOp3EXT; -PFNGLSWIZZLEEXTPROC glad_glSwizzleEXT; -PFNGLWRITEMASKEXTPROC glad_glWriteMaskEXT; -PFNGLINSERTCOMPONENTEXTPROC glad_glInsertComponentEXT; -PFNGLEXTRACTCOMPONENTEXTPROC glad_glExtractComponentEXT; -PFNGLGENSYMBOLSEXTPROC glad_glGenSymbolsEXT; -PFNGLSETINVARIANTEXTPROC glad_glSetInvariantEXT; -PFNGLSETLOCALCONSTANTEXTPROC glad_glSetLocalConstantEXT; -PFNGLVARIANTBVEXTPROC glad_glVariantbvEXT; -PFNGLVARIANTSVEXTPROC glad_glVariantsvEXT; -PFNGLVARIANTIVEXTPROC glad_glVariantivEXT; -PFNGLVARIANTFVEXTPROC glad_glVariantfvEXT; -PFNGLVARIANTDVEXTPROC glad_glVariantdvEXT; -PFNGLVARIANTUBVEXTPROC glad_glVariantubvEXT; -PFNGLVARIANTUSVEXTPROC glad_glVariantusvEXT; -PFNGLVARIANTUIVEXTPROC glad_glVariantuivEXT; -PFNGLVARIANTPOINTEREXTPROC glad_glVariantPointerEXT; -PFNGLENABLEVARIANTCLIENTSTATEEXTPROC glad_glEnableVariantClientStateEXT; -PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC glad_glDisableVariantClientStateEXT; -PFNGLBINDLIGHTPARAMETEREXTPROC glad_glBindLightParameterEXT; -PFNGLBINDMATERIALPARAMETEREXTPROC glad_glBindMaterialParameterEXT; -PFNGLBINDTEXGENPARAMETEREXTPROC glad_glBindTexGenParameterEXT; -PFNGLBINDTEXTUREUNITPARAMETEREXTPROC glad_glBindTextureUnitParameterEXT; -PFNGLBINDPARAMETEREXTPROC glad_glBindParameterEXT; -PFNGLISVARIANTENABLEDEXTPROC glad_glIsVariantEnabledEXT; -PFNGLGETVARIANTBOOLEANVEXTPROC glad_glGetVariantBooleanvEXT; -PFNGLGETVARIANTINTEGERVEXTPROC glad_glGetVariantIntegervEXT; -PFNGLGETVARIANTFLOATVEXTPROC glad_glGetVariantFloatvEXT; -PFNGLGETVARIANTPOINTERVEXTPROC glad_glGetVariantPointervEXT; -PFNGLGETINVARIANTBOOLEANVEXTPROC glad_glGetInvariantBooleanvEXT; -PFNGLGETINVARIANTINTEGERVEXTPROC glad_glGetInvariantIntegervEXT; -PFNGLGETINVARIANTFLOATVEXTPROC glad_glGetInvariantFloatvEXT; -PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC glad_glGetLocalConstantBooleanvEXT; -PFNGLGETLOCALCONSTANTINTEGERVEXTPROC glad_glGetLocalConstantIntegervEXT; -PFNGLGETLOCALCONSTANTFLOATVEXTPROC glad_glGetLocalConstantFloatvEXT; -PFNGLVERTEXWEIGHTFEXTPROC glad_glVertexWeightfEXT; -PFNGLVERTEXWEIGHTFVEXTPROC glad_glVertexWeightfvEXT; -PFNGLVERTEXWEIGHTPOINTEREXTPROC glad_glVertexWeightPointerEXT; -PFNGLACQUIREKEYEDMUTEXWIN32EXTPROC glad_glAcquireKeyedMutexWin32EXT; -PFNGLRELEASEKEYEDMUTEXWIN32EXTPROC glad_glReleaseKeyedMutexWin32EXT; -PFNGLWINDOWRECTANGLESEXTPROC glad_glWindowRectanglesEXT; -PFNGLIMPORTSYNCEXTPROC glad_glImportSyncEXT; -PFNGLFRAMETERMINATORGREMEDYPROC glad_glFrameTerminatorGREMEDY; -PFNGLSTRINGMARKERGREMEDYPROC glad_glStringMarkerGREMEDY; -PFNGLIMAGETRANSFORMPARAMETERIHPPROC glad_glImageTransformParameteriHP; -PFNGLIMAGETRANSFORMPARAMETERFHPPROC glad_glImageTransformParameterfHP; -PFNGLIMAGETRANSFORMPARAMETERIVHPPROC glad_glImageTransformParameterivHP; -PFNGLIMAGETRANSFORMPARAMETERFVHPPROC glad_glImageTransformParameterfvHP; -PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC glad_glGetImageTransformParameterivHP; -PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC glad_glGetImageTransformParameterfvHP; -PFNGLMULTIMODEDRAWARRAYSIBMPROC glad_glMultiModeDrawArraysIBM; -PFNGLMULTIMODEDRAWELEMENTSIBMPROC glad_glMultiModeDrawElementsIBM; -PFNGLFLUSHSTATICDATAIBMPROC glad_glFlushStaticDataIBM; -PFNGLCOLORPOINTERLISTIBMPROC glad_glColorPointerListIBM; -PFNGLSECONDARYCOLORPOINTERLISTIBMPROC glad_glSecondaryColorPointerListIBM; -PFNGLEDGEFLAGPOINTERLISTIBMPROC glad_glEdgeFlagPointerListIBM; -PFNGLFOGCOORDPOINTERLISTIBMPROC glad_glFogCoordPointerListIBM; -PFNGLINDEXPOINTERLISTIBMPROC glad_glIndexPointerListIBM; -PFNGLNORMALPOINTERLISTIBMPROC glad_glNormalPointerListIBM; -PFNGLTEXCOORDPOINTERLISTIBMPROC glad_glTexCoordPointerListIBM; -PFNGLVERTEXPOINTERLISTIBMPROC glad_glVertexPointerListIBM; -PFNGLBLENDFUNCSEPARATEINGRPROC glad_glBlendFuncSeparateINGR; -PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC glad_glApplyFramebufferAttachmentCMAAINTEL; -PFNGLSYNCTEXTUREINTELPROC glad_glSyncTextureINTEL; -PFNGLUNMAPTEXTURE2DINTELPROC glad_glUnmapTexture2DINTEL; -PFNGLMAPTEXTURE2DINTELPROC glad_glMapTexture2DINTEL; -PFNGLVERTEXPOINTERVINTELPROC glad_glVertexPointervINTEL; -PFNGLNORMALPOINTERVINTELPROC glad_glNormalPointervINTEL; -PFNGLCOLORPOINTERVINTELPROC glad_glColorPointervINTEL; -PFNGLTEXCOORDPOINTERVINTELPROC glad_glTexCoordPointervINTEL; -PFNGLBEGINPERFQUERYINTELPROC glad_glBeginPerfQueryINTEL; -PFNGLCREATEPERFQUERYINTELPROC glad_glCreatePerfQueryINTEL; -PFNGLDELETEPERFQUERYINTELPROC glad_glDeletePerfQueryINTEL; -PFNGLENDPERFQUERYINTELPROC glad_glEndPerfQueryINTEL; -PFNGLGETFIRSTPERFQUERYIDINTELPROC glad_glGetFirstPerfQueryIdINTEL; -PFNGLGETNEXTPERFQUERYIDINTELPROC glad_glGetNextPerfQueryIdINTEL; -PFNGLGETPERFCOUNTERINFOINTELPROC glad_glGetPerfCounterInfoINTEL; -PFNGLGETPERFQUERYDATAINTELPROC glad_glGetPerfQueryDataINTEL; -PFNGLGETPERFQUERYIDBYNAMEINTELPROC glad_glGetPerfQueryIdByNameINTEL; -PFNGLGETPERFQUERYINFOINTELPROC glad_glGetPerfQueryInfoINTEL; -PFNGLBLENDBARRIERKHRPROC glad_glBlendBarrierKHR; -PFNGLDEBUGMESSAGECONTROLKHRPROC glad_glDebugMessageControlKHR; -PFNGLDEBUGMESSAGEINSERTKHRPROC glad_glDebugMessageInsertKHR; -PFNGLDEBUGMESSAGECALLBACKKHRPROC glad_glDebugMessageCallbackKHR; -PFNGLGETDEBUGMESSAGELOGKHRPROC glad_glGetDebugMessageLogKHR; -PFNGLPUSHDEBUGGROUPKHRPROC glad_glPushDebugGroupKHR; -PFNGLPOPDEBUGGROUPKHRPROC glad_glPopDebugGroupKHR; -PFNGLOBJECTLABELKHRPROC glad_glObjectLabelKHR; -PFNGLGETOBJECTLABELKHRPROC glad_glGetObjectLabelKHR; -PFNGLOBJECTPTRLABELKHRPROC glad_glObjectPtrLabelKHR; -PFNGLGETOBJECTPTRLABELKHRPROC glad_glGetObjectPtrLabelKHR; -PFNGLGETPOINTERVKHRPROC glad_glGetPointervKHR; -PFNGLMAXSHADERCOMPILERTHREADSKHRPROC glad_glMaxShaderCompilerThreadsKHR; -PFNGLGETGRAPHICSRESETSTATUSKHRPROC glad_glGetGraphicsResetStatusKHR; -PFNGLREADNPIXELSKHRPROC glad_glReadnPixelsKHR; -PFNGLGETNUNIFORMFVKHRPROC glad_glGetnUniformfvKHR; -PFNGLGETNUNIFORMIVKHRPROC glad_glGetnUniformivKHR; -PFNGLGETNUNIFORMUIVKHRPROC glad_glGetnUniformuivKHR; -PFNGLRESIZEBUFFERSMESAPROC glad_glResizeBuffersMESA; -PFNGLWINDOWPOS2DMESAPROC glad_glWindowPos2dMESA; -PFNGLWINDOWPOS2DVMESAPROC glad_glWindowPos2dvMESA; -PFNGLWINDOWPOS2FMESAPROC glad_glWindowPos2fMESA; -PFNGLWINDOWPOS2FVMESAPROC glad_glWindowPos2fvMESA; -PFNGLWINDOWPOS2IMESAPROC glad_glWindowPos2iMESA; -PFNGLWINDOWPOS2IVMESAPROC glad_glWindowPos2ivMESA; -PFNGLWINDOWPOS2SMESAPROC glad_glWindowPos2sMESA; -PFNGLWINDOWPOS2SVMESAPROC glad_glWindowPos2svMESA; -PFNGLWINDOWPOS3DMESAPROC glad_glWindowPos3dMESA; -PFNGLWINDOWPOS3DVMESAPROC glad_glWindowPos3dvMESA; -PFNGLWINDOWPOS3FMESAPROC glad_glWindowPos3fMESA; -PFNGLWINDOWPOS3FVMESAPROC glad_glWindowPos3fvMESA; -PFNGLWINDOWPOS3IMESAPROC glad_glWindowPos3iMESA; -PFNGLWINDOWPOS3IVMESAPROC glad_glWindowPos3ivMESA; -PFNGLWINDOWPOS3SMESAPROC glad_glWindowPos3sMESA; -PFNGLWINDOWPOS3SVMESAPROC glad_glWindowPos3svMESA; -PFNGLWINDOWPOS4DMESAPROC glad_glWindowPos4dMESA; -PFNGLWINDOWPOS4DVMESAPROC glad_glWindowPos4dvMESA; -PFNGLWINDOWPOS4FMESAPROC glad_glWindowPos4fMESA; -PFNGLWINDOWPOS4FVMESAPROC glad_glWindowPos4fvMESA; -PFNGLWINDOWPOS4IMESAPROC glad_glWindowPos4iMESA; -PFNGLWINDOWPOS4IVMESAPROC glad_glWindowPos4ivMESA; -PFNGLWINDOWPOS4SMESAPROC glad_glWindowPos4sMESA; -PFNGLWINDOWPOS4SVMESAPROC glad_glWindowPos4svMESA; -PFNGLBEGINCONDITIONALRENDERNVXPROC glad_glBeginConditionalRenderNVX; -PFNGLENDCONDITIONALRENDERNVXPROC glad_glEndConditionalRenderNVX; -PFNGLLGPUNAMEDBUFFERSUBDATANVXPROC glad_glLGPUNamedBufferSubDataNVX; -PFNGLLGPUCOPYIMAGESUBDATANVXPROC glad_glLGPUCopyImageSubDataNVX; -PFNGLLGPUINTERLOCKNVXPROC glad_glLGPUInterlockNVX; -PFNGLALPHATOCOVERAGEDITHERCONTROLNVPROC glad_glAlphaToCoverageDitherControlNV; -PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC glad_glMultiDrawArraysIndirectBindlessNV; -PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC glad_glMultiDrawElementsIndirectBindlessNV; -PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC glad_glMultiDrawArraysIndirectBindlessCountNV; -PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC glad_glMultiDrawElementsIndirectBindlessCountNV; -PFNGLGETTEXTUREHANDLENVPROC glad_glGetTextureHandleNV; -PFNGLGETTEXTURESAMPLERHANDLENVPROC glad_glGetTextureSamplerHandleNV; -PFNGLMAKETEXTUREHANDLERESIDENTNVPROC glad_glMakeTextureHandleResidentNV; -PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC glad_glMakeTextureHandleNonResidentNV; -PFNGLGETIMAGEHANDLENVPROC glad_glGetImageHandleNV; -PFNGLMAKEIMAGEHANDLERESIDENTNVPROC glad_glMakeImageHandleResidentNV; -PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC glad_glMakeImageHandleNonResidentNV; -PFNGLUNIFORMHANDLEUI64NVPROC glad_glUniformHandleui64NV; -PFNGLUNIFORMHANDLEUI64VNVPROC glad_glUniformHandleui64vNV; -PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC glad_glProgramUniformHandleui64NV; -PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC glad_glProgramUniformHandleui64vNV; -PFNGLISTEXTUREHANDLERESIDENTNVPROC glad_glIsTextureHandleResidentNV; -PFNGLISIMAGEHANDLERESIDENTNVPROC glad_glIsImageHandleResidentNV; -PFNGLBLENDPARAMETERINVPROC glad_glBlendParameteriNV; -PFNGLBLENDBARRIERNVPROC glad_glBlendBarrierNV; -PFNGLVIEWPORTPOSITIONWSCALENVPROC glad_glViewportPositionWScaleNV; -PFNGLCREATESTATESNVPROC glad_glCreateStatesNV; -PFNGLDELETESTATESNVPROC glad_glDeleteStatesNV; -PFNGLISSTATENVPROC glad_glIsStateNV; -PFNGLSTATECAPTURENVPROC glad_glStateCaptureNV; -PFNGLGETCOMMANDHEADERNVPROC glad_glGetCommandHeaderNV; -PFNGLGETSTAGEINDEXNVPROC glad_glGetStageIndexNV; -PFNGLDRAWCOMMANDSNVPROC glad_glDrawCommandsNV; -PFNGLDRAWCOMMANDSADDRESSNVPROC glad_glDrawCommandsAddressNV; -PFNGLDRAWCOMMANDSSTATESNVPROC glad_glDrawCommandsStatesNV; -PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC glad_glDrawCommandsStatesAddressNV; -PFNGLCREATECOMMANDLISTSNVPROC glad_glCreateCommandListsNV; -PFNGLDELETECOMMANDLISTSNVPROC glad_glDeleteCommandListsNV; -PFNGLISCOMMANDLISTNVPROC glad_glIsCommandListNV; -PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC glad_glListDrawCommandsStatesClientNV; -PFNGLCOMMANDLISTSEGMENTSNVPROC glad_glCommandListSegmentsNV; -PFNGLCOMPILECOMMANDLISTNVPROC glad_glCompileCommandListNV; -PFNGLCALLCOMMANDLISTNVPROC glad_glCallCommandListNV; -PFNGLBEGINCONDITIONALRENDERNVPROC glad_glBeginConditionalRenderNV; -PFNGLENDCONDITIONALRENDERNVPROC glad_glEndConditionalRenderNV; -PFNGLSUBPIXELPRECISIONBIASNVPROC glad_glSubpixelPrecisionBiasNV; -PFNGLCONSERVATIVERASTERPARAMETERFNVPROC glad_glConservativeRasterParameterfNV; -PFNGLCONSERVATIVERASTERPARAMETERINVPROC glad_glConservativeRasterParameteriNV; -PFNGLCOPYIMAGESUBDATANVPROC glad_glCopyImageSubDataNV; -PFNGLDEPTHRANGEDNVPROC glad_glDepthRangedNV; -PFNGLCLEARDEPTHDNVPROC glad_glClearDepthdNV; -PFNGLDEPTHBOUNDSDNVPROC glad_glDepthBoundsdNV; -PFNGLDRAWTEXTURENVPROC glad_glDrawTextureNV; -PFNGLDRAWVKIMAGENVPROC glad_glDrawVkImageNV; -PFNGLGETVKPROCADDRNVPROC glad_glGetVkProcAddrNV; -PFNGLWAITVKSEMAPHORENVPROC glad_glWaitVkSemaphoreNV; -PFNGLSIGNALVKSEMAPHORENVPROC glad_glSignalVkSemaphoreNV; -PFNGLSIGNALVKFENCENVPROC glad_glSignalVkFenceNV; -PFNGLMAPCONTROLPOINTSNVPROC glad_glMapControlPointsNV; -PFNGLMAPPARAMETERIVNVPROC glad_glMapParameterivNV; -PFNGLMAPPARAMETERFVNVPROC glad_glMapParameterfvNV; -PFNGLGETMAPCONTROLPOINTSNVPROC glad_glGetMapControlPointsNV; -PFNGLGETMAPPARAMETERIVNVPROC glad_glGetMapParameterivNV; -PFNGLGETMAPPARAMETERFVNVPROC glad_glGetMapParameterfvNV; -PFNGLGETMAPATTRIBPARAMETERIVNVPROC glad_glGetMapAttribParameterivNV; -PFNGLGETMAPATTRIBPARAMETERFVNVPROC glad_glGetMapAttribParameterfvNV; -PFNGLEVALMAPSNVPROC glad_glEvalMapsNV; -PFNGLGETMULTISAMPLEFVNVPROC glad_glGetMultisamplefvNV; -PFNGLSAMPLEMASKINDEXEDNVPROC glad_glSampleMaskIndexedNV; -PFNGLTEXRENDERBUFFERNVPROC glad_glTexRenderbufferNV; -PFNGLDELETEFENCESNVPROC glad_glDeleteFencesNV; -PFNGLGENFENCESNVPROC glad_glGenFencesNV; -PFNGLISFENCENVPROC glad_glIsFenceNV; -PFNGLTESTFENCENVPROC glad_glTestFenceNV; -PFNGLGETFENCEIVNVPROC glad_glGetFenceivNV; -PFNGLFINISHFENCENVPROC glad_glFinishFenceNV; -PFNGLSETFENCENVPROC glad_glSetFenceNV; -PFNGLFRAGMENTCOVERAGECOLORNVPROC glad_glFragmentCoverageColorNV; -PFNGLPROGRAMNAMEDPARAMETER4FNVPROC glad_glProgramNamedParameter4fNV; -PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC glad_glProgramNamedParameter4fvNV; -PFNGLPROGRAMNAMEDPARAMETER4DNVPROC glad_glProgramNamedParameter4dNV; -PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC glad_glProgramNamedParameter4dvNV; -PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC glad_glGetProgramNamedParameterfvNV; -PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC glad_glGetProgramNamedParameterdvNV; -PFNGLCOVERAGEMODULATIONTABLENVPROC glad_glCoverageModulationTableNV; -PFNGLGETCOVERAGEMODULATIONTABLENVPROC glad_glGetCoverageModulationTableNV; -PFNGLCOVERAGEMODULATIONNVPROC glad_glCoverageModulationNV; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC glad_glRenderbufferStorageMultisampleCoverageNV; -PFNGLPROGRAMVERTEXLIMITNVPROC glad_glProgramVertexLimitNV; -PFNGLFRAMEBUFFERTEXTUREEXTPROC glad_glFramebufferTextureEXT; -PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC glad_glFramebufferTextureFaceEXT; -PFNGLRENDERGPUMASKNVPROC glad_glRenderGpuMaskNV; -PFNGLMULTICASTBUFFERSUBDATANVPROC glad_glMulticastBufferSubDataNV; -PFNGLMULTICASTCOPYBUFFERSUBDATANVPROC glad_glMulticastCopyBufferSubDataNV; -PFNGLMULTICASTCOPYIMAGESUBDATANVPROC glad_glMulticastCopyImageSubDataNV; -PFNGLMULTICASTBLITFRAMEBUFFERNVPROC glad_glMulticastBlitFramebufferNV; -PFNGLMULTICASTFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glad_glMulticastFramebufferSampleLocationsfvNV; -PFNGLMULTICASTBARRIERNVPROC glad_glMulticastBarrierNV; -PFNGLMULTICASTWAITSYNCNVPROC glad_glMulticastWaitSyncNV; -PFNGLMULTICASTGETQUERYOBJECTIVNVPROC glad_glMulticastGetQueryObjectivNV; -PFNGLMULTICASTGETQUERYOBJECTUIVNVPROC glad_glMulticastGetQueryObjectuivNV; -PFNGLMULTICASTGETQUERYOBJECTI64VNVPROC glad_glMulticastGetQueryObjecti64vNV; -PFNGLMULTICASTGETQUERYOBJECTUI64VNVPROC glad_glMulticastGetQueryObjectui64vNV; -PFNGLPROGRAMLOCALPARAMETERI4INVPROC glad_glProgramLocalParameterI4iNV; -PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC glad_glProgramLocalParameterI4ivNV; -PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC glad_glProgramLocalParametersI4ivNV; -PFNGLPROGRAMLOCALPARAMETERI4UINVPROC glad_glProgramLocalParameterI4uiNV; -PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC glad_glProgramLocalParameterI4uivNV; -PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC glad_glProgramLocalParametersI4uivNV; -PFNGLPROGRAMENVPARAMETERI4INVPROC glad_glProgramEnvParameterI4iNV; -PFNGLPROGRAMENVPARAMETERI4IVNVPROC glad_glProgramEnvParameterI4ivNV; -PFNGLPROGRAMENVPARAMETERSI4IVNVPROC glad_glProgramEnvParametersI4ivNV; -PFNGLPROGRAMENVPARAMETERI4UINVPROC glad_glProgramEnvParameterI4uiNV; -PFNGLPROGRAMENVPARAMETERI4UIVNVPROC glad_glProgramEnvParameterI4uivNV; -PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC glad_glProgramEnvParametersI4uivNV; -PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC glad_glGetProgramLocalParameterIivNV; -PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC glad_glGetProgramLocalParameterIuivNV; -PFNGLGETPROGRAMENVPARAMETERIIVNVPROC glad_glGetProgramEnvParameterIivNV; -PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC glad_glGetProgramEnvParameterIuivNV; -PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC glad_glProgramSubroutineParametersuivNV; -PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC glad_glGetProgramSubroutineParameteruivNV; -PFNGLVERTEX2HNVPROC glad_glVertex2hNV; -PFNGLVERTEX2HVNVPROC glad_glVertex2hvNV; -PFNGLVERTEX3HNVPROC glad_glVertex3hNV; -PFNGLVERTEX3HVNVPROC glad_glVertex3hvNV; -PFNGLVERTEX4HNVPROC glad_glVertex4hNV; -PFNGLVERTEX4HVNVPROC glad_glVertex4hvNV; -PFNGLNORMAL3HNVPROC glad_glNormal3hNV; -PFNGLNORMAL3HVNVPROC glad_glNormal3hvNV; -PFNGLCOLOR3HNVPROC glad_glColor3hNV; -PFNGLCOLOR3HVNVPROC glad_glColor3hvNV; -PFNGLCOLOR4HNVPROC glad_glColor4hNV; -PFNGLCOLOR4HVNVPROC glad_glColor4hvNV; -PFNGLTEXCOORD1HNVPROC glad_glTexCoord1hNV; -PFNGLTEXCOORD1HVNVPROC glad_glTexCoord1hvNV; -PFNGLTEXCOORD2HNVPROC glad_glTexCoord2hNV; -PFNGLTEXCOORD2HVNVPROC glad_glTexCoord2hvNV; -PFNGLTEXCOORD3HNVPROC glad_glTexCoord3hNV; -PFNGLTEXCOORD3HVNVPROC glad_glTexCoord3hvNV; -PFNGLTEXCOORD4HNVPROC glad_glTexCoord4hNV; -PFNGLTEXCOORD4HVNVPROC glad_glTexCoord4hvNV; -PFNGLMULTITEXCOORD1HNVPROC glad_glMultiTexCoord1hNV; -PFNGLMULTITEXCOORD1HVNVPROC glad_glMultiTexCoord1hvNV; -PFNGLMULTITEXCOORD2HNVPROC glad_glMultiTexCoord2hNV; -PFNGLMULTITEXCOORD2HVNVPROC glad_glMultiTexCoord2hvNV; -PFNGLMULTITEXCOORD3HNVPROC glad_glMultiTexCoord3hNV; -PFNGLMULTITEXCOORD3HVNVPROC glad_glMultiTexCoord3hvNV; -PFNGLMULTITEXCOORD4HNVPROC glad_glMultiTexCoord4hNV; -PFNGLMULTITEXCOORD4HVNVPROC glad_glMultiTexCoord4hvNV; -PFNGLFOGCOORDHNVPROC glad_glFogCoordhNV; -PFNGLFOGCOORDHVNVPROC glad_glFogCoordhvNV; -PFNGLSECONDARYCOLOR3HNVPROC glad_glSecondaryColor3hNV; -PFNGLSECONDARYCOLOR3HVNVPROC glad_glSecondaryColor3hvNV; -PFNGLVERTEXWEIGHTHNVPROC glad_glVertexWeighthNV; -PFNGLVERTEXWEIGHTHVNVPROC glad_glVertexWeighthvNV; -PFNGLVERTEXATTRIB1HNVPROC glad_glVertexAttrib1hNV; -PFNGLVERTEXATTRIB1HVNVPROC glad_glVertexAttrib1hvNV; -PFNGLVERTEXATTRIB2HNVPROC glad_glVertexAttrib2hNV; -PFNGLVERTEXATTRIB2HVNVPROC glad_glVertexAttrib2hvNV; -PFNGLVERTEXATTRIB3HNVPROC glad_glVertexAttrib3hNV; -PFNGLVERTEXATTRIB3HVNVPROC glad_glVertexAttrib3hvNV; -PFNGLVERTEXATTRIB4HNVPROC glad_glVertexAttrib4hNV; -PFNGLVERTEXATTRIB4HVNVPROC glad_glVertexAttrib4hvNV; -PFNGLVERTEXATTRIBS1HVNVPROC glad_glVertexAttribs1hvNV; -PFNGLVERTEXATTRIBS2HVNVPROC glad_glVertexAttribs2hvNV; -PFNGLVERTEXATTRIBS3HVNVPROC glad_glVertexAttribs3hvNV; -PFNGLVERTEXATTRIBS4HVNVPROC glad_glVertexAttribs4hvNV; -PFNGLGETINTERNALFORMATSAMPLEIVNVPROC glad_glGetInternalformatSampleivNV; -PFNGLGENOCCLUSIONQUERIESNVPROC glad_glGenOcclusionQueriesNV; -PFNGLDELETEOCCLUSIONQUERIESNVPROC glad_glDeleteOcclusionQueriesNV; -PFNGLISOCCLUSIONQUERYNVPROC glad_glIsOcclusionQueryNV; -PFNGLBEGINOCCLUSIONQUERYNVPROC glad_glBeginOcclusionQueryNV; -PFNGLENDOCCLUSIONQUERYNVPROC glad_glEndOcclusionQueryNV; -PFNGLGETOCCLUSIONQUERYIVNVPROC glad_glGetOcclusionQueryivNV; -PFNGLGETOCCLUSIONQUERYUIVNVPROC glad_glGetOcclusionQueryuivNV; -PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC glad_glProgramBufferParametersfvNV; -PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC glad_glProgramBufferParametersIivNV; -PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC glad_glProgramBufferParametersIuivNV; -PFNGLGENPATHSNVPROC glad_glGenPathsNV; -PFNGLDELETEPATHSNVPROC glad_glDeletePathsNV; -PFNGLISPATHNVPROC glad_glIsPathNV; -PFNGLPATHCOMMANDSNVPROC glad_glPathCommandsNV; -PFNGLPATHCOORDSNVPROC glad_glPathCoordsNV; -PFNGLPATHSUBCOMMANDSNVPROC glad_glPathSubCommandsNV; -PFNGLPATHSUBCOORDSNVPROC glad_glPathSubCoordsNV; -PFNGLPATHSTRINGNVPROC glad_glPathStringNV; -PFNGLPATHGLYPHSNVPROC glad_glPathGlyphsNV; -PFNGLPATHGLYPHRANGENVPROC glad_glPathGlyphRangeNV; -PFNGLWEIGHTPATHSNVPROC glad_glWeightPathsNV; -PFNGLCOPYPATHNVPROC glad_glCopyPathNV; -PFNGLINTERPOLATEPATHSNVPROC glad_glInterpolatePathsNV; -PFNGLTRANSFORMPATHNVPROC glad_glTransformPathNV; -PFNGLPATHPARAMETERIVNVPROC glad_glPathParameterivNV; -PFNGLPATHPARAMETERINVPROC glad_glPathParameteriNV; -PFNGLPATHPARAMETERFVNVPROC glad_glPathParameterfvNV; -PFNGLPATHPARAMETERFNVPROC glad_glPathParameterfNV; -PFNGLPATHDASHARRAYNVPROC glad_glPathDashArrayNV; -PFNGLPATHSTENCILFUNCNVPROC glad_glPathStencilFuncNV; -PFNGLPATHSTENCILDEPTHOFFSETNVPROC glad_glPathStencilDepthOffsetNV; -PFNGLSTENCILFILLPATHNVPROC glad_glStencilFillPathNV; -PFNGLSTENCILSTROKEPATHNVPROC glad_glStencilStrokePathNV; -PFNGLSTENCILFILLPATHINSTANCEDNVPROC glad_glStencilFillPathInstancedNV; -PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC glad_glStencilStrokePathInstancedNV; -PFNGLPATHCOVERDEPTHFUNCNVPROC glad_glPathCoverDepthFuncNV; -PFNGLCOVERFILLPATHNVPROC glad_glCoverFillPathNV; -PFNGLCOVERSTROKEPATHNVPROC glad_glCoverStrokePathNV; -PFNGLCOVERFILLPATHINSTANCEDNVPROC glad_glCoverFillPathInstancedNV; -PFNGLCOVERSTROKEPATHINSTANCEDNVPROC glad_glCoverStrokePathInstancedNV; -PFNGLGETPATHPARAMETERIVNVPROC glad_glGetPathParameterivNV; -PFNGLGETPATHPARAMETERFVNVPROC glad_glGetPathParameterfvNV; -PFNGLGETPATHCOMMANDSNVPROC glad_glGetPathCommandsNV; -PFNGLGETPATHCOORDSNVPROC glad_glGetPathCoordsNV; -PFNGLGETPATHDASHARRAYNVPROC glad_glGetPathDashArrayNV; -PFNGLGETPATHMETRICSNVPROC glad_glGetPathMetricsNV; -PFNGLGETPATHMETRICRANGENVPROC glad_glGetPathMetricRangeNV; -PFNGLGETPATHSPACINGNVPROC glad_glGetPathSpacingNV; -PFNGLISPOINTINFILLPATHNVPROC glad_glIsPointInFillPathNV; -PFNGLISPOINTINSTROKEPATHNVPROC glad_glIsPointInStrokePathNV; -PFNGLGETPATHLENGTHNVPROC glad_glGetPathLengthNV; -PFNGLPOINTALONGPATHNVPROC glad_glPointAlongPathNV; -PFNGLMATRIXLOAD3X2FNVPROC glad_glMatrixLoad3x2fNV; -PFNGLMATRIXLOAD3X3FNVPROC glad_glMatrixLoad3x3fNV; -PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC glad_glMatrixLoadTranspose3x3fNV; -PFNGLMATRIXMULT3X2FNVPROC glad_glMatrixMult3x2fNV; -PFNGLMATRIXMULT3X3FNVPROC glad_glMatrixMult3x3fNV; -PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC glad_glMatrixMultTranspose3x3fNV; -PFNGLSTENCILTHENCOVERFILLPATHNVPROC glad_glStencilThenCoverFillPathNV; -PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC glad_glStencilThenCoverStrokePathNV; -PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC glad_glStencilThenCoverFillPathInstancedNV; -PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC glad_glStencilThenCoverStrokePathInstancedNV; -PFNGLPATHGLYPHINDEXRANGENVPROC glad_glPathGlyphIndexRangeNV; -PFNGLPATHGLYPHINDEXARRAYNVPROC glad_glPathGlyphIndexArrayNV; -PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC glad_glPathMemoryGlyphIndexArrayNV; -PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC glad_glProgramPathFragmentInputGenNV; -PFNGLGETPROGRAMRESOURCEFVNVPROC glad_glGetProgramResourcefvNV; -PFNGLPATHCOLORGENNVPROC glad_glPathColorGenNV; -PFNGLPATHTEXGENNVPROC glad_glPathTexGenNV; -PFNGLPATHFOGGENNVPROC glad_glPathFogGenNV; -PFNGLGETPATHCOLORGENIVNVPROC glad_glGetPathColorGenivNV; -PFNGLGETPATHCOLORGENFVNVPROC glad_glGetPathColorGenfvNV; -PFNGLGETPATHTEXGENIVNVPROC glad_glGetPathTexGenivNV; -PFNGLGETPATHTEXGENFVNVPROC glad_glGetPathTexGenfvNV; -PFNGLPIXELDATARANGENVPROC glad_glPixelDataRangeNV; -PFNGLFLUSHPIXELDATARANGENVPROC glad_glFlushPixelDataRangeNV; -PFNGLPOINTPARAMETERINVPROC glad_glPointParameteriNV; -PFNGLPOINTPARAMETERIVNVPROC glad_glPointParameterivNV; -PFNGLPRESENTFRAMEKEYEDNVPROC glad_glPresentFrameKeyedNV; -PFNGLPRESENTFRAMEDUALFILLNVPROC glad_glPresentFrameDualFillNV; -PFNGLGETVIDEOIVNVPROC glad_glGetVideoivNV; -PFNGLGETVIDEOUIVNVPROC glad_glGetVideouivNV; -PFNGLGETVIDEOI64VNVPROC glad_glGetVideoi64vNV; -PFNGLGETVIDEOUI64VNVPROC glad_glGetVideoui64vNV; -PFNGLPRIMITIVERESTARTNVPROC glad_glPrimitiveRestartNV; -PFNGLPRIMITIVERESTARTINDEXNVPROC glad_glPrimitiveRestartIndexNV; -PFNGLQUERYRESOURCENVPROC glad_glQueryResourceNV; -PFNGLGENQUERYRESOURCETAGNVPROC glad_glGenQueryResourceTagNV; -PFNGLDELETEQUERYRESOURCETAGNVPROC glad_glDeleteQueryResourceTagNV; -PFNGLQUERYRESOURCETAGNVPROC glad_glQueryResourceTagNV; -PFNGLCOMBINERPARAMETERFVNVPROC glad_glCombinerParameterfvNV; -PFNGLCOMBINERPARAMETERFNVPROC glad_glCombinerParameterfNV; -PFNGLCOMBINERPARAMETERIVNVPROC glad_glCombinerParameterivNV; -PFNGLCOMBINERPARAMETERINVPROC glad_glCombinerParameteriNV; -PFNGLCOMBINERINPUTNVPROC glad_glCombinerInputNV; -PFNGLCOMBINEROUTPUTNVPROC glad_glCombinerOutputNV; -PFNGLFINALCOMBINERINPUTNVPROC glad_glFinalCombinerInputNV; -PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC glad_glGetCombinerInputParameterfvNV; -PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC glad_glGetCombinerInputParameterivNV; -PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC glad_glGetCombinerOutputParameterfvNV; -PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC glad_glGetCombinerOutputParameterivNV; -PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC glad_glGetFinalCombinerInputParameterfvNV; -PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC glad_glGetFinalCombinerInputParameterivNV; -PFNGLCOMBINERSTAGEPARAMETERFVNVPROC glad_glCombinerStageParameterfvNV; -PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC glad_glGetCombinerStageParameterfvNV; -PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glad_glFramebufferSampleLocationsfvNV; -PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glad_glNamedFramebufferSampleLocationsfvNV; -PFNGLRESOLVEDEPTHVALUESNVPROC glad_glResolveDepthValuesNV; -PFNGLMAKEBUFFERRESIDENTNVPROC glad_glMakeBufferResidentNV; -PFNGLMAKEBUFFERNONRESIDENTNVPROC glad_glMakeBufferNonResidentNV; -PFNGLISBUFFERRESIDENTNVPROC glad_glIsBufferResidentNV; -PFNGLMAKENAMEDBUFFERRESIDENTNVPROC glad_glMakeNamedBufferResidentNV; -PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC glad_glMakeNamedBufferNonResidentNV; -PFNGLISNAMEDBUFFERRESIDENTNVPROC glad_glIsNamedBufferResidentNV; -PFNGLGETBUFFERPARAMETERUI64VNVPROC glad_glGetBufferParameterui64vNV; -PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC glad_glGetNamedBufferParameterui64vNV; -PFNGLGETINTEGERUI64VNVPROC glad_glGetIntegerui64vNV; -PFNGLUNIFORMUI64NVPROC glad_glUniformui64NV; -PFNGLUNIFORMUI64VNVPROC glad_glUniformui64vNV; -PFNGLPROGRAMUNIFORMUI64NVPROC glad_glProgramUniformui64NV; -PFNGLPROGRAMUNIFORMUI64VNVPROC glad_glProgramUniformui64vNV; -PFNGLTEXTUREBARRIERNVPROC glad_glTextureBarrierNV; -PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC glad_glTexImage2DMultisampleCoverageNV; -PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC glad_glTexImage3DMultisampleCoverageNV; -PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC glad_glTextureImage2DMultisampleNV; -PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC glad_glTextureImage3DMultisampleNV; -PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC glad_glTextureImage2DMultisampleCoverageNV; -PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC glad_glTextureImage3DMultisampleCoverageNV; -PFNGLBEGINTRANSFORMFEEDBACKNVPROC glad_glBeginTransformFeedbackNV; -PFNGLENDTRANSFORMFEEDBACKNVPROC glad_glEndTransformFeedbackNV; -PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC glad_glTransformFeedbackAttribsNV; -PFNGLBINDBUFFERRANGENVPROC glad_glBindBufferRangeNV; -PFNGLBINDBUFFEROFFSETNVPROC glad_glBindBufferOffsetNV; -PFNGLBINDBUFFERBASENVPROC glad_glBindBufferBaseNV; -PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC glad_glTransformFeedbackVaryingsNV; -PFNGLACTIVEVARYINGNVPROC glad_glActiveVaryingNV; -PFNGLGETVARYINGLOCATIONNVPROC glad_glGetVaryingLocationNV; -PFNGLGETACTIVEVARYINGNVPROC glad_glGetActiveVaryingNV; -PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC glad_glGetTransformFeedbackVaryingNV; -PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC glad_glTransformFeedbackStreamAttribsNV; -PFNGLBINDTRANSFORMFEEDBACKNVPROC glad_glBindTransformFeedbackNV; -PFNGLDELETETRANSFORMFEEDBACKSNVPROC glad_glDeleteTransformFeedbacksNV; -PFNGLGENTRANSFORMFEEDBACKSNVPROC glad_glGenTransformFeedbacksNV; -PFNGLISTRANSFORMFEEDBACKNVPROC glad_glIsTransformFeedbackNV; -PFNGLPAUSETRANSFORMFEEDBACKNVPROC glad_glPauseTransformFeedbackNV; -PFNGLRESUMETRANSFORMFEEDBACKNVPROC glad_glResumeTransformFeedbackNV; -PFNGLDRAWTRANSFORMFEEDBACKNVPROC glad_glDrawTransformFeedbackNV; -PFNGLVDPAUINITNVPROC glad_glVDPAUInitNV; -PFNGLVDPAUFININVPROC glad_glVDPAUFiniNV; -PFNGLVDPAUREGISTERVIDEOSURFACENVPROC glad_glVDPAURegisterVideoSurfaceNV; -PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC glad_glVDPAURegisterOutputSurfaceNV; -PFNGLVDPAUISSURFACENVPROC glad_glVDPAUIsSurfaceNV; -PFNGLVDPAUUNREGISTERSURFACENVPROC glad_glVDPAUUnregisterSurfaceNV; -PFNGLVDPAUGETSURFACEIVNVPROC glad_glVDPAUGetSurfaceivNV; -PFNGLVDPAUSURFACEACCESSNVPROC glad_glVDPAUSurfaceAccessNV; -PFNGLVDPAUMAPSURFACESNVPROC glad_glVDPAUMapSurfacesNV; -PFNGLVDPAUUNMAPSURFACESNVPROC glad_glVDPAUUnmapSurfacesNV; -PFNGLFLUSHVERTEXARRAYRANGENVPROC glad_glFlushVertexArrayRangeNV; -PFNGLVERTEXARRAYRANGENVPROC glad_glVertexArrayRangeNV; -PFNGLVERTEXATTRIBL1I64NVPROC glad_glVertexAttribL1i64NV; -PFNGLVERTEXATTRIBL2I64NVPROC glad_glVertexAttribL2i64NV; -PFNGLVERTEXATTRIBL3I64NVPROC glad_glVertexAttribL3i64NV; -PFNGLVERTEXATTRIBL4I64NVPROC glad_glVertexAttribL4i64NV; -PFNGLVERTEXATTRIBL1I64VNVPROC glad_glVertexAttribL1i64vNV; -PFNGLVERTEXATTRIBL2I64VNVPROC glad_glVertexAttribL2i64vNV; -PFNGLVERTEXATTRIBL3I64VNVPROC glad_glVertexAttribL3i64vNV; -PFNGLVERTEXATTRIBL4I64VNVPROC glad_glVertexAttribL4i64vNV; -PFNGLVERTEXATTRIBL1UI64NVPROC glad_glVertexAttribL1ui64NV; -PFNGLVERTEXATTRIBL2UI64NVPROC glad_glVertexAttribL2ui64NV; -PFNGLVERTEXATTRIBL3UI64NVPROC glad_glVertexAttribL3ui64NV; -PFNGLVERTEXATTRIBL4UI64NVPROC glad_glVertexAttribL4ui64NV; -PFNGLVERTEXATTRIBL1UI64VNVPROC glad_glVertexAttribL1ui64vNV; -PFNGLVERTEXATTRIBL2UI64VNVPROC glad_glVertexAttribL2ui64vNV; -PFNGLVERTEXATTRIBL3UI64VNVPROC glad_glVertexAttribL3ui64vNV; -PFNGLVERTEXATTRIBL4UI64VNVPROC glad_glVertexAttribL4ui64vNV; -PFNGLGETVERTEXATTRIBLI64VNVPROC glad_glGetVertexAttribLi64vNV; -PFNGLGETVERTEXATTRIBLUI64VNVPROC glad_glGetVertexAttribLui64vNV; -PFNGLVERTEXATTRIBLFORMATNVPROC glad_glVertexAttribLFormatNV; -PFNGLBUFFERADDRESSRANGENVPROC glad_glBufferAddressRangeNV; -PFNGLVERTEXFORMATNVPROC glad_glVertexFormatNV; -PFNGLNORMALFORMATNVPROC glad_glNormalFormatNV; -PFNGLCOLORFORMATNVPROC glad_glColorFormatNV; -PFNGLINDEXFORMATNVPROC glad_glIndexFormatNV; -PFNGLTEXCOORDFORMATNVPROC glad_glTexCoordFormatNV; -PFNGLEDGEFLAGFORMATNVPROC glad_glEdgeFlagFormatNV; -PFNGLSECONDARYCOLORFORMATNVPROC glad_glSecondaryColorFormatNV; -PFNGLFOGCOORDFORMATNVPROC glad_glFogCoordFormatNV; -PFNGLVERTEXATTRIBFORMATNVPROC glad_glVertexAttribFormatNV; -PFNGLVERTEXATTRIBIFORMATNVPROC glad_glVertexAttribIFormatNV; -PFNGLGETINTEGERUI64I_VNVPROC glad_glGetIntegerui64i_vNV; -PFNGLAREPROGRAMSRESIDENTNVPROC glad_glAreProgramsResidentNV; -PFNGLBINDPROGRAMNVPROC glad_glBindProgramNV; -PFNGLDELETEPROGRAMSNVPROC glad_glDeleteProgramsNV; -PFNGLEXECUTEPROGRAMNVPROC glad_glExecuteProgramNV; -PFNGLGENPROGRAMSNVPROC glad_glGenProgramsNV; -PFNGLGETPROGRAMPARAMETERDVNVPROC glad_glGetProgramParameterdvNV; -PFNGLGETPROGRAMPARAMETERFVNVPROC glad_glGetProgramParameterfvNV; -PFNGLGETPROGRAMIVNVPROC glad_glGetProgramivNV; -PFNGLGETPROGRAMSTRINGNVPROC glad_glGetProgramStringNV; -PFNGLGETTRACKMATRIXIVNVPROC glad_glGetTrackMatrixivNV; -PFNGLGETVERTEXATTRIBDVNVPROC glad_glGetVertexAttribdvNV; -PFNGLGETVERTEXATTRIBFVNVPROC glad_glGetVertexAttribfvNV; -PFNGLGETVERTEXATTRIBIVNVPROC glad_glGetVertexAttribivNV; -PFNGLGETVERTEXATTRIBPOINTERVNVPROC glad_glGetVertexAttribPointervNV; -PFNGLISPROGRAMNVPROC glad_glIsProgramNV; -PFNGLLOADPROGRAMNVPROC glad_glLoadProgramNV; -PFNGLPROGRAMPARAMETER4DNVPROC glad_glProgramParameter4dNV; -PFNGLPROGRAMPARAMETER4DVNVPROC glad_glProgramParameter4dvNV; -PFNGLPROGRAMPARAMETER4FNVPROC glad_glProgramParameter4fNV; -PFNGLPROGRAMPARAMETER4FVNVPROC glad_glProgramParameter4fvNV; -PFNGLPROGRAMPARAMETERS4DVNVPROC glad_glProgramParameters4dvNV; -PFNGLPROGRAMPARAMETERS4FVNVPROC glad_glProgramParameters4fvNV; -PFNGLREQUESTRESIDENTPROGRAMSNVPROC glad_glRequestResidentProgramsNV; -PFNGLTRACKMATRIXNVPROC glad_glTrackMatrixNV; -PFNGLVERTEXATTRIBPOINTERNVPROC glad_glVertexAttribPointerNV; -PFNGLVERTEXATTRIB1DNVPROC glad_glVertexAttrib1dNV; -PFNGLVERTEXATTRIB1DVNVPROC glad_glVertexAttrib1dvNV; -PFNGLVERTEXATTRIB1FNVPROC glad_glVertexAttrib1fNV; -PFNGLVERTEXATTRIB1FVNVPROC glad_glVertexAttrib1fvNV; -PFNGLVERTEXATTRIB1SNVPROC glad_glVertexAttrib1sNV; -PFNGLVERTEXATTRIB1SVNVPROC glad_glVertexAttrib1svNV; -PFNGLVERTEXATTRIB2DNVPROC glad_glVertexAttrib2dNV; -PFNGLVERTEXATTRIB2DVNVPROC glad_glVertexAttrib2dvNV; -PFNGLVERTEXATTRIB2FNVPROC glad_glVertexAttrib2fNV; -PFNGLVERTEXATTRIB2FVNVPROC glad_glVertexAttrib2fvNV; -PFNGLVERTEXATTRIB2SNVPROC glad_glVertexAttrib2sNV; -PFNGLVERTEXATTRIB2SVNVPROC glad_glVertexAttrib2svNV; -PFNGLVERTEXATTRIB3DNVPROC glad_glVertexAttrib3dNV; -PFNGLVERTEXATTRIB3DVNVPROC glad_glVertexAttrib3dvNV; -PFNGLVERTEXATTRIB3FNVPROC glad_glVertexAttrib3fNV; -PFNGLVERTEXATTRIB3FVNVPROC glad_glVertexAttrib3fvNV; -PFNGLVERTEXATTRIB3SNVPROC glad_glVertexAttrib3sNV; -PFNGLVERTEXATTRIB3SVNVPROC glad_glVertexAttrib3svNV; -PFNGLVERTEXATTRIB4DNVPROC glad_glVertexAttrib4dNV; -PFNGLVERTEXATTRIB4DVNVPROC glad_glVertexAttrib4dvNV; -PFNGLVERTEXATTRIB4FNVPROC glad_glVertexAttrib4fNV; -PFNGLVERTEXATTRIB4FVNVPROC glad_glVertexAttrib4fvNV; -PFNGLVERTEXATTRIB4SNVPROC glad_glVertexAttrib4sNV; -PFNGLVERTEXATTRIB4SVNVPROC glad_glVertexAttrib4svNV; -PFNGLVERTEXATTRIB4UBNVPROC glad_glVertexAttrib4ubNV; -PFNGLVERTEXATTRIB4UBVNVPROC glad_glVertexAttrib4ubvNV; -PFNGLVERTEXATTRIBS1DVNVPROC glad_glVertexAttribs1dvNV; -PFNGLVERTEXATTRIBS1FVNVPROC glad_glVertexAttribs1fvNV; -PFNGLVERTEXATTRIBS1SVNVPROC glad_glVertexAttribs1svNV; -PFNGLVERTEXATTRIBS2DVNVPROC glad_glVertexAttribs2dvNV; -PFNGLVERTEXATTRIBS2FVNVPROC glad_glVertexAttribs2fvNV; -PFNGLVERTEXATTRIBS2SVNVPROC glad_glVertexAttribs2svNV; -PFNGLVERTEXATTRIBS3DVNVPROC glad_glVertexAttribs3dvNV; -PFNGLVERTEXATTRIBS3FVNVPROC glad_glVertexAttribs3fvNV; -PFNGLVERTEXATTRIBS3SVNVPROC glad_glVertexAttribs3svNV; -PFNGLVERTEXATTRIBS4DVNVPROC glad_glVertexAttribs4dvNV; -PFNGLVERTEXATTRIBS4FVNVPROC glad_glVertexAttribs4fvNV; -PFNGLVERTEXATTRIBS4SVNVPROC glad_glVertexAttribs4svNV; -PFNGLVERTEXATTRIBS4UBVNVPROC glad_glVertexAttribs4ubvNV; -PFNGLVERTEXATTRIBI1IEXTPROC glad_glVertexAttribI1iEXT; -PFNGLVERTEXATTRIBI2IEXTPROC glad_glVertexAttribI2iEXT; -PFNGLVERTEXATTRIBI3IEXTPROC glad_glVertexAttribI3iEXT; -PFNGLVERTEXATTRIBI4IEXTPROC glad_glVertexAttribI4iEXT; -PFNGLVERTEXATTRIBI1UIEXTPROC glad_glVertexAttribI1uiEXT; -PFNGLVERTEXATTRIBI2UIEXTPROC glad_glVertexAttribI2uiEXT; -PFNGLVERTEXATTRIBI3UIEXTPROC glad_glVertexAttribI3uiEXT; -PFNGLVERTEXATTRIBI4UIEXTPROC glad_glVertexAttribI4uiEXT; -PFNGLVERTEXATTRIBI1IVEXTPROC glad_glVertexAttribI1ivEXT; -PFNGLVERTEXATTRIBI2IVEXTPROC glad_glVertexAttribI2ivEXT; -PFNGLVERTEXATTRIBI3IVEXTPROC glad_glVertexAttribI3ivEXT; -PFNGLVERTEXATTRIBI4IVEXTPROC glad_glVertexAttribI4ivEXT; -PFNGLVERTEXATTRIBI1UIVEXTPROC glad_glVertexAttribI1uivEXT; -PFNGLVERTEXATTRIBI2UIVEXTPROC glad_glVertexAttribI2uivEXT; -PFNGLVERTEXATTRIBI3UIVEXTPROC glad_glVertexAttribI3uivEXT; -PFNGLVERTEXATTRIBI4UIVEXTPROC glad_glVertexAttribI4uivEXT; -PFNGLVERTEXATTRIBI4BVEXTPROC glad_glVertexAttribI4bvEXT; -PFNGLVERTEXATTRIBI4SVEXTPROC glad_glVertexAttribI4svEXT; -PFNGLVERTEXATTRIBI4UBVEXTPROC glad_glVertexAttribI4ubvEXT; -PFNGLVERTEXATTRIBI4USVEXTPROC glad_glVertexAttribI4usvEXT; -PFNGLVERTEXATTRIBIPOINTEREXTPROC glad_glVertexAttribIPointerEXT; -PFNGLGETVERTEXATTRIBIIVEXTPROC glad_glGetVertexAttribIivEXT; -PFNGLGETVERTEXATTRIBIUIVEXTPROC glad_glGetVertexAttribIuivEXT; -PFNGLBEGINVIDEOCAPTURENVPROC glad_glBeginVideoCaptureNV; -PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC glad_glBindVideoCaptureStreamBufferNV; -PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC glad_glBindVideoCaptureStreamTextureNV; -PFNGLENDVIDEOCAPTURENVPROC glad_glEndVideoCaptureNV; -PFNGLGETVIDEOCAPTUREIVNVPROC glad_glGetVideoCaptureivNV; -PFNGLGETVIDEOCAPTURESTREAMIVNVPROC glad_glGetVideoCaptureStreamivNV; -PFNGLGETVIDEOCAPTURESTREAMFVNVPROC glad_glGetVideoCaptureStreamfvNV; -PFNGLGETVIDEOCAPTURESTREAMDVNVPROC glad_glGetVideoCaptureStreamdvNV; -PFNGLVIDEOCAPTURENVPROC glad_glVideoCaptureNV; -PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC glad_glVideoCaptureStreamParameterivNV; -PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC glad_glVideoCaptureStreamParameterfvNV; -PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC glad_glVideoCaptureStreamParameterdvNV; -PFNGLVIEWPORTSWIZZLENVPROC glad_glViewportSwizzleNV; -PFNGLMULTITEXCOORD1BOESPROC glad_glMultiTexCoord1bOES; -PFNGLMULTITEXCOORD1BVOESPROC glad_glMultiTexCoord1bvOES; -PFNGLMULTITEXCOORD2BOESPROC glad_glMultiTexCoord2bOES; -PFNGLMULTITEXCOORD2BVOESPROC glad_glMultiTexCoord2bvOES; -PFNGLMULTITEXCOORD3BOESPROC glad_glMultiTexCoord3bOES; -PFNGLMULTITEXCOORD3BVOESPROC glad_glMultiTexCoord3bvOES; -PFNGLMULTITEXCOORD4BOESPROC glad_glMultiTexCoord4bOES; -PFNGLMULTITEXCOORD4BVOESPROC glad_glMultiTexCoord4bvOES; -PFNGLTEXCOORD1BOESPROC glad_glTexCoord1bOES; -PFNGLTEXCOORD1BVOESPROC glad_glTexCoord1bvOES; -PFNGLTEXCOORD2BOESPROC glad_glTexCoord2bOES; -PFNGLTEXCOORD2BVOESPROC glad_glTexCoord2bvOES; -PFNGLTEXCOORD3BOESPROC glad_glTexCoord3bOES; -PFNGLTEXCOORD3BVOESPROC glad_glTexCoord3bvOES; -PFNGLTEXCOORD4BOESPROC glad_glTexCoord4bOES; -PFNGLTEXCOORD4BVOESPROC glad_glTexCoord4bvOES; -PFNGLVERTEX2BOESPROC glad_glVertex2bOES; -PFNGLVERTEX2BVOESPROC glad_glVertex2bvOES; -PFNGLVERTEX3BOESPROC glad_glVertex3bOES; -PFNGLVERTEX3BVOESPROC glad_glVertex3bvOES; -PFNGLVERTEX4BOESPROC glad_glVertex4bOES; -PFNGLVERTEX4BVOESPROC glad_glVertex4bvOES; -PFNGLALPHAFUNCXOESPROC glad_glAlphaFuncxOES; -PFNGLCLEARCOLORXOESPROC glad_glClearColorxOES; -PFNGLCLEARDEPTHXOESPROC glad_glClearDepthxOES; -PFNGLCLIPPLANEXOESPROC glad_glClipPlanexOES; -PFNGLCOLOR4XOESPROC glad_glColor4xOES; -PFNGLDEPTHRANGEXOESPROC glad_glDepthRangexOES; -PFNGLFOGXOESPROC glad_glFogxOES; -PFNGLFOGXVOESPROC glad_glFogxvOES; -PFNGLFRUSTUMXOESPROC glad_glFrustumxOES; -PFNGLGETCLIPPLANEXOESPROC glad_glGetClipPlanexOES; -PFNGLGETFIXEDVOESPROC glad_glGetFixedvOES; -PFNGLGETTEXENVXVOESPROC glad_glGetTexEnvxvOES; -PFNGLGETTEXPARAMETERXVOESPROC glad_glGetTexParameterxvOES; -PFNGLLIGHTMODELXOESPROC glad_glLightModelxOES; -PFNGLLIGHTMODELXVOESPROC glad_glLightModelxvOES; -PFNGLLIGHTXOESPROC glad_glLightxOES; -PFNGLLIGHTXVOESPROC glad_glLightxvOES; -PFNGLLINEWIDTHXOESPROC glad_glLineWidthxOES; -PFNGLLOADMATRIXXOESPROC glad_glLoadMatrixxOES; -PFNGLMATERIALXOESPROC glad_glMaterialxOES; -PFNGLMATERIALXVOESPROC glad_glMaterialxvOES; -PFNGLMULTMATRIXXOESPROC glad_glMultMatrixxOES; -PFNGLMULTITEXCOORD4XOESPROC glad_glMultiTexCoord4xOES; -PFNGLNORMAL3XOESPROC glad_glNormal3xOES; -PFNGLORTHOXOESPROC glad_glOrthoxOES; -PFNGLPOINTPARAMETERXVOESPROC glad_glPointParameterxvOES; -PFNGLPOINTSIZEXOESPROC glad_glPointSizexOES; -PFNGLPOLYGONOFFSETXOESPROC glad_glPolygonOffsetxOES; -PFNGLROTATEXOESPROC glad_glRotatexOES; -PFNGLSCALEXOESPROC glad_glScalexOES; -PFNGLTEXENVXOESPROC glad_glTexEnvxOES; -PFNGLTEXENVXVOESPROC glad_glTexEnvxvOES; -PFNGLTEXPARAMETERXOESPROC glad_glTexParameterxOES; -PFNGLTEXPARAMETERXVOESPROC glad_glTexParameterxvOES; -PFNGLTRANSLATEXOESPROC glad_glTranslatexOES; -PFNGLGETLIGHTXVOESPROC glad_glGetLightxvOES; -PFNGLGETMATERIALXVOESPROC glad_glGetMaterialxvOES; -PFNGLPOINTPARAMETERXOESPROC glad_glPointParameterxOES; -PFNGLSAMPLECOVERAGEXOESPROC glad_glSampleCoveragexOES; -PFNGLACCUMXOESPROC glad_glAccumxOES; -PFNGLBITMAPXOESPROC glad_glBitmapxOES; -PFNGLBLENDCOLORXOESPROC glad_glBlendColorxOES; -PFNGLCLEARACCUMXOESPROC glad_glClearAccumxOES; -PFNGLCOLOR3XOESPROC glad_glColor3xOES; -PFNGLCOLOR3XVOESPROC glad_glColor3xvOES; -PFNGLCOLOR4XVOESPROC glad_glColor4xvOES; -PFNGLCONVOLUTIONPARAMETERXOESPROC glad_glConvolutionParameterxOES; -PFNGLCONVOLUTIONPARAMETERXVOESPROC glad_glConvolutionParameterxvOES; -PFNGLEVALCOORD1XOESPROC glad_glEvalCoord1xOES; -PFNGLEVALCOORD1XVOESPROC glad_glEvalCoord1xvOES; -PFNGLEVALCOORD2XOESPROC glad_glEvalCoord2xOES; -PFNGLEVALCOORD2XVOESPROC glad_glEvalCoord2xvOES; -PFNGLFEEDBACKBUFFERXOESPROC glad_glFeedbackBufferxOES; -PFNGLGETCONVOLUTIONPARAMETERXVOESPROC glad_glGetConvolutionParameterxvOES; -PFNGLGETHISTOGRAMPARAMETERXVOESPROC glad_glGetHistogramParameterxvOES; -PFNGLGETLIGHTXOESPROC glad_glGetLightxOES; -PFNGLGETMAPXVOESPROC glad_glGetMapxvOES; -PFNGLGETMATERIALXOESPROC glad_glGetMaterialxOES; -PFNGLGETPIXELMAPXVPROC glad_glGetPixelMapxv; -PFNGLGETTEXGENXVOESPROC glad_glGetTexGenxvOES; -PFNGLGETTEXLEVELPARAMETERXVOESPROC glad_glGetTexLevelParameterxvOES; -PFNGLINDEXXOESPROC glad_glIndexxOES; -PFNGLINDEXXVOESPROC glad_glIndexxvOES; -PFNGLLOADTRANSPOSEMATRIXXOESPROC glad_glLoadTransposeMatrixxOES; -PFNGLMAP1XOESPROC glad_glMap1xOES; -PFNGLMAP2XOESPROC glad_glMap2xOES; -PFNGLMAPGRID1XOESPROC glad_glMapGrid1xOES; -PFNGLMAPGRID2XOESPROC glad_glMapGrid2xOES; -PFNGLMULTTRANSPOSEMATRIXXOESPROC glad_glMultTransposeMatrixxOES; -PFNGLMULTITEXCOORD1XOESPROC glad_glMultiTexCoord1xOES; -PFNGLMULTITEXCOORD1XVOESPROC glad_glMultiTexCoord1xvOES; -PFNGLMULTITEXCOORD2XOESPROC glad_glMultiTexCoord2xOES; -PFNGLMULTITEXCOORD2XVOESPROC glad_glMultiTexCoord2xvOES; -PFNGLMULTITEXCOORD3XOESPROC glad_glMultiTexCoord3xOES; -PFNGLMULTITEXCOORD3XVOESPROC glad_glMultiTexCoord3xvOES; -PFNGLMULTITEXCOORD4XVOESPROC glad_glMultiTexCoord4xvOES; -PFNGLNORMAL3XVOESPROC glad_glNormal3xvOES; -PFNGLPASSTHROUGHXOESPROC glad_glPassThroughxOES; -PFNGLPIXELMAPXPROC glad_glPixelMapx; -PFNGLPIXELSTOREXPROC glad_glPixelStorex; -PFNGLPIXELTRANSFERXOESPROC glad_glPixelTransferxOES; -PFNGLPIXELZOOMXOESPROC glad_glPixelZoomxOES; -PFNGLPRIORITIZETEXTURESXOESPROC glad_glPrioritizeTexturesxOES; -PFNGLRASTERPOS2XOESPROC glad_glRasterPos2xOES; -PFNGLRASTERPOS2XVOESPROC glad_glRasterPos2xvOES; -PFNGLRASTERPOS3XOESPROC glad_glRasterPos3xOES; -PFNGLRASTERPOS3XVOESPROC glad_glRasterPos3xvOES; -PFNGLRASTERPOS4XOESPROC glad_glRasterPos4xOES; -PFNGLRASTERPOS4XVOESPROC glad_glRasterPos4xvOES; -PFNGLRECTXOESPROC glad_glRectxOES; -PFNGLRECTXVOESPROC glad_glRectxvOES; -PFNGLTEXCOORD1XOESPROC glad_glTexCoord1xOES; -PFNGLTEXCOORD1XVOESPROC glad_glTexCoord1xvOES; -PFNGLTEXCOORD2XOESPROC glad_glTexCoord2xOES; -PFNGLTEXCOORD2XVOESPROC glad_glTexCoord2xvOES; -PFNGLTEXCOORD3XOESPROC glad_glTexCoord3xOES; -PFNGLTEXCOORD3XVOESPROC glad_glTexCoord3xvOES; -PFNGLTEXCOORD4XOESPROC glad_glTexCoord4xOES; -PFNGLTEXCOORD4XVOESPROC glad_glTexCoord4xvOES; -PFNGLTEXGENXOESPROC glad_glTexGenxOES; -PFNGLTEXGENXVOESPROC glad_glTexGenxvOES; -PFNGLVERTEX2XOESPROC glad_glVertex2xOES; -PFNGLVERTEX2XVOESPROC glad_glVertex2xvOES; -PFNGLVERTEX3XOESPROC glad_glVertex3xOES; -PFNGLVERTEX3XVOESPROC glad_glVertex3xvOES; -PFNGLVERTEX4XOESPROC glad_glVertex4xOES; -PFNGLVERTEX4XVOESPROC glad_glVertex4xvOES; -PFNGLQUERYMATRIXXOESPROC glad_glQueryMatrixxOES; -PFNGLCLEARDEPTHFOESPROC glad_glClearDepthfOES; -PFNGLCLIPPLANEFOESPROC glad_glClipPlanefOES; -PFNGLDEPTHRANGEFOESPROC glad_glDepthRangefOES; -PFNGLFRUSTUMFOESPROC glad_glFrustumfOES; -PFNGLGETCLIPPLANEFOESPROC glad_glGetClipPlanefOES; -PFNGLORTHOFOESPROC glad_glOrthofOES; -PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC glad_glFramebufferTextureMultiviewOVR; -PFNGLHINTPGIPROC glad_glHintPGI; -PFNGLDETAILTEXFUNCSGISPROC glad_glDetailTexFuncSGIS; -PFNGLGETDETAILTEXFUNCSGISPROC glad_glGetDetailTexFuncSGIS; -PFNGLFOGFUNCSGISPROC glad_glFogFuncSGIS; -PFNGLGETFOGFUNCSGISPROC glad_glGetFogFuncSGIS; -PFNGLSAMPLEMASKSGISPROC glad_glSampleMaskSGIS; -PFNGLSAMPLEPATTERNSGISPROC glad_glSamplePatternSGIS; -PFNGLPIXELTEXGENPARAMETERISGISPROC glad_glPixelTexGenParameteriSGIS; -PFNGLPIXELTEXGENPARAMETERIVSGISPROC glad_glPixelTexGenParameterivSGIS; -PFNGLPIXELTEXGENPARAMETERFSGISPROC glad_glPixelTexGenParameterfSGIS; -PFNGLPIXELTEXGENPARAMETERFVSGISPROC glad_glPixelTexGenParameterfvSGIS; -PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC glad_glGetPixelTexGenParameterivSGIS; -PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC glad_glGetPixelTexGenParameterfvSGIS; -PFNGLPOINTPARAMETERFSGISPROC glad_glPointParameterfSGIS; -PFNGLPOINTPARAMETERFVSGISPROC glad_glPointParameterfvSGIS; -PFNGLSHARPENTEXFUNCSGISPROC glad_glSharpenTexFuncSGIS; -PFNGLGETSHARPENTEXFUNCSGISPROC glad_glGetSharpenTexFuncSGIS; -PFNGLTEXIMAGE4DSGISPROC glad_glTexImage4DSGIS; -PFNGLTEXSUBIMAGE4DSGISPROC glad_glTexSubImage4DSGIS; -PFNGLTEXTURECOLORMASKSGISPROC glad_glTextureColorMaskSGIS; -PFNGLGETTEXFILTERFUNCSGISPROC glad_glGetTexFilterFuncSGIS; -PFNGLTEXFILTERFUNCSGISPROC glad_glTexFilterFuncSGIS; -PFNGLASYNCMARKERSGIXPROC glad_glAsyncMarkerSGIX; -PFNGLFINISHASYNCSGIXPROC glad_glFinishAsyncSGIX; -PFNGLPOLLASYNCSGIXPROC glad_glPollAsyncSGIX; -PFNGLGENASYNCMARKERSSGIXPROC glad_glGenAsyncMarkersSGIX; -PFNGLDELETEASYNCMARKERSSGIXPROC glad_glDeleteAsyncMarkersSGIX; -PFNGLISASYNCMARKERSGIXPROC glad_glIsAsyncMarkerSGIX; -PFNGLFLUSHRASTERSGIXPROC glad_glFlushRasterSGIX; -PFNGLFRAGMENTCOLORMATERIALSGIXPROC glad_glFragmentColorMaterialSGIX; -PFNGLFRAGMENTLIGHTFSGIXPROC glad_glFragmentLightfSGIX; -PFNGLFRAGMENTLIGHTFVSGIXPROC glad_glFragmentLightfvSGIX; -PFNGLFRAGMENTLIGHTISGIXPROC glad_glFragmentLightiSGIX; -PFNGLFRAGMENTLIGHTIVSGIXPROC glad_glFragmentLightivSGIX; -PFNGLFRAGMENTLIGHTMODELFSGIXPROC glad_glFragmentLightModelfSGIX; -PFNGLFRAGMENTLIGHTMODELFVSGIXPROC glad_glFragmentLightModelfvSGIX; -PFNGLFRAGMENTLIGHTMODELISGIXPROC glad_glFragmentLightModeliSGIX; -PFNGLFRAGMENTLIGHTMODELIVSGIXPROC glad_glFragmentLightModelivSGIX; -PFNGLFRAGMENTMATERIALFSGIXPROC glad_glFragmentMaterialfSGIX; -PFNGLFRAGMENTMATERIALFVSGIXPROC glad_glFragmentMaterialfvSGIX; -PFNGLFRAGMENTMATERIALISGIXPROC glad_glFragmentMaterialiSGIX; -PFNGLFRAGMENTMATERIALIVSGIXPROC glad_glFragmentMaterialivSGIX; -PFNGLGETFRAGMENTLIGHTFVSGIXPROC glad_glGetFragmentLightfvSGIX; -PFNGLGETFRAGMENTLIGHTIVSGIXPROC glad_glGetFragmentLightivSGIX; -PFNGLGETFRAGMENTMATERIALFVSGIXPROC glad_glGetFragmentMaterialfvSGIX; -PFNGLGETFRAGMENTMATERIALIVSGIXPROC glad_glGetFragmentMaterialivSGIX; -PFNGLLIGHTENVISGIXPROC glad_glLightEnviSGIX; -PFNGLFRAMEZOOMSGIXPROC glad_glFrameZoomSGIX; -PFNGLIGLOOINTERFACESGIXPROC glad_glIglooInterfaceSGIX; -PFNGLGETINSTRUMENTSSGIXPROC glad_glGetInstrumentsSGIX; -PFNGLINSTRUMENTSBUFFERSGIXPROC glad_glInstrumentsBufferSGIX; -PFNGLPOLLINSTRUMENTSSGIXPROC glad_glPollInstrumentsSGIX; -PFNGLREADINSTRUMENTSSGIXPROC glad_glReadInstrumentsSGIX; -PFNGLSTARTINSTRUMENTSSGIXPROC glad_glStartInstrumentsSGIX; -PFNGLSTOPINSTRUMENTSSGIXPROC glad_glStopInstrumentsSGIX; -PFNGLGETLISTPARAMETERFVSGIXPROC glad_glGetListParameterfvSGIX; -PFNGLGETLISTPARAMETERIVSGIXPROC glad_glGetListParameterivSGIX; -PFNGLLISTPARAMETERFSGIXPROC glad_glListParameterfSGIX; -PFNGLLISTPARAMETERFVSGIXPROC glad_glListParameterfvSGIX; -PFNGLLISTPARAMETERISGIXPROC glad_glListParameteriSGIX; -PFNGLLISTPARAMETERIVSGIXPROC glad_glListParameterivSGIX; -PFNGLPIXELTEXGENSGIXPROC glad_glPixelTexGenSGIX; -PFNGLDEFORMATIONMAP3DSGIXPROC glad_glDeformationMap3dSGIX; -PFNGLDEFORMATIONMAP3FSGIXPROC glad_glDeformationMap3fSGIX; -PFNGLDEFORMSGIXPROC glad_glDeformSGIX; -PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC glad_glLoadIdentityDeformationMapSGIX; -PFNGLREFERENCEPLANESGIXPROC glad_glReferencePlaneSGIX; -PFNGLSPRITEPARAMETERFSGIXPROC glad_glSpriteParameterfSGIX; -PFNGLSPRITEPARAMETERFVSGIXPROC glad_glSpriteParameterfvSGIX; -PFNGLSPRITEPARAMETERISGIXPROC glad_glSpriteParameteriSGIX; -PFNGLSPRITEPARAMETERIVSGIXPROC glad_glSpriteParameterivSGIX; -PFNGLTAGSAMPLEBUFFERSGIXPROC glad_glTagSampleBufferSGIX; -PFNGLCOLORTABLESGIPROC glad_glColorTableSGI; -PFNGLCOLORTABLEPARAMETERFVSGIPROC glad_glColorTableParameterfvSGI; -PFNGLCOLORTABLEPARAMETERIVSGIPROC glad_glColorTableParameterivSGI; -PFNGLCOPYCOLORTABLESGIPROC glad_glCopyColorTableSGI; -PFNGLGETCOLORTABLESGIPROC glad_glGetColorTableSGI; -PFNGLGETCOLORTABLEPARAMETERFVSGIPROC glad_glGetColorTableParameterfvSGI; -PFNGLGETCOLORTABLEPARAMETERIVSGIPROC glad_glGetColorTableParameterivSGI; -PFNGLFINISHTEXTURESUNXPROC glad_glFinishTextureSUNX; -PFNGLGLOBALALPHAFACTORBSUNPROC glad_glGlobalAlphaFactorbSUN; -PFNGLGLOBALALPHAFACTORSSUNPROC glad_glGlobalAlphaFactorsSUN; -PFNGLGLOBALALPHAFACTORISUNPROC glad_glGlobalAlphaFactoriSUN; -PFNGLGLOBALALPHAFACTORFSUNPROC glad_glGlobalAlphaFactorfSUN; -PFNGLGLOBALALPHAFACTORDSUNPROC glad_glGlobalAlphaFactordSUN; -PFNGLGLOBALALPHAFACTORUBSUNPROC glad_glGlobalAlphaFactorubSUN; -PFNGLGLOBALALPHAFACTORUSSUNPROC glad_glGlobalAlphaFactorusSUN; -PFNGLGLOBALALPHAFACTORUISUNPROC glad_glGlobalAlphaFactoruiSUN; -PFNGLDRAWMESHARRAYSSUNPROC glad_glDrawMeshArraysSUN; -PFNGLREPLACEMENTCODEUISUNPROC glad_glReplacementCodeuiSUN; -PFNGLREPLACEMENTCODEUSSUNPROC glad_glReplacementCodeusSUN; -PFNGLREPLACEMENTCODEUBSUNPROC glad_glReplacementCodeubSUN; -PFNGLREPLACEMENTCODEUIVSUNPROC glad_glReplacementCodeuivSUN; -PFNGLREPLACEMENTCODEUSVSUNPROC glad_glReplacementCodeusvSUN; -PFNGLREPLACEMENTCODEUBVSUNPROC glad_glReplacementCodeubvSUN; -PFNGLREPLACEMENTCODEPOINTERSUNPROC glad_glReplacementCodePointerSUN; -PFNGLCOLOR4UBVERTEX2FSUNPROC glad_glColor4ubVertex2fSUN; -PFNGLCOLOR4UBVERTEX2FVSUNPROC glad_glColor4ubVertex2fvSUN; -PFNGLCOLOR4UBVERTEX3FSUNPROC glad_glColor4ubVertex3fSUN; -PFNGLCOLOR4UBVERTEX3FVSUNPROC glad_glColor4ubVertex3fvSUN; -PFNGLCOLOR3FVERTEX3FSUNPROC glad_glColor3fVertex3fSUN; -PFNGLCOLOR3FVERTEX3FVSUNPROC glad_glColor3fVertex3fvSUN; -PFNGLNORMAL3FVERTEX3FSUNPROC glad_glNormal3fVertex3fSUN; -PFNGLNORMAL3FVERTEX3FVSUNPROC glad_glNormal3fVertex3fvSUN; -PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC glad_glColor4fNormal3fVertex3fSUN; -PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC glad_glColor4fNormal3fVertex3fvSUN; -PFNGLTEXCOORD2FVERTEX3FSUNPROC glad_glTexCoord2fVertex3fSUN; -PFNGLTEXCOORD2FVERTEX3FVSUNPROC glad_glTexCoord2fVertex3fvSUN; -PFNGLTEXCOORD4FVERTEX4FSUNPROC glad_glTexCoord4fVertex4fSUN; -PFNGLTEXCOORD4FVERTEX4FVSUNPROC glad_glTexCoord4fVertex4fvSUN; -PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC glad_glTexCoord2fColor4ubVertex3fSUN; -PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC glad_glTexCoord2fColor4ubVertex3fvSUN; -PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC glad_glTexCoord2fColor3fVertex3fSUN; -PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC glad_glTexCoord2fColor3fVertex3fvSUN; -PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC glad_glTexCoord2fNormal3fVertex3fSUN; -PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC glad_glTexCoord2fNormal3fVertex3fvSUN; -PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC glad_glTexCoord2fColor4fNormal3fVertex3fSUN; -PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC glad_glTexCoord2fColor4fNormal3fVertex3fvSUN; -PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC glad_glTexCoord4fColor4fNormal3fVertex4fSUN; -PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC glad_glTexCoord4fColor4fNormal3fVertex4fvSUN; -PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC glad_glReplacementCodeuiVertex3fSUN; -PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC glad_glReplacementCodeuiVertex3fvSUN; -PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC glad_glReplacementCodeuiColor4ubVertex3fSUN; -PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC glad_glReplacementCodeuiColor4ubVertex3fvSUN; -PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC glad_glReplacementCodeuiColor3fVertex3fSUN; -PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC glad_glReplacementCodeuiColor3fVertex3fvSUN; -PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC glad_glReplacementCodeuiNormal3fVertex3fSUN; -PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC glad_glReplacementCodeuiNormal3fVertex3fvSUN; -PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC glad_glReplacementCodeuiColor4fNormal3fVertex3fSUN; -PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC glad_glReplacementCodeuiColor4fNormal3fVertex3fvSUN; -PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC glad_glReplacementCodeuiTexCoord2fVertex3fSUN; -PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC glad_glReplacementCodeuiTexCoord2fVertex3fvSUN; -PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC glad_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN; -PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC glad_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN; -PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC glad_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN; -PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC glad_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN; -PFNGLBLITFRAMEBUFFERANGLEPROC glad_glBlitFramebufferANGLE; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC glad_glRenderbufferStorageMultisampleANGLE; -PFNGLDRAWARRAYSINSTANCEDANGLEPROC glad_glDrawArraysInstancedANGLE; -PFNGLDRAWELEMENTSINSTANCEDANGLEPROC glad_glDrawElementsInstancedANGLE; -PFNGLVERTEXATTRIBDIVISORANGLEPROC glad_glVertexAttribDivisorANGLE; -PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC glad_glGetTranslatedShaderSourceANGLE; -PFNGLCOPYTEXTURELEVELSAPPLEPROC glad_glCopyTextureLevelsAPPLE; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC glad_glRenderbufferStorageMultisampleAPPLE; -PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC glad_glResolveMultisampleFramebufferAPPLE; -PFNGLFENCESYNCAPPLEPROC glad_glFenceSyncAPPLE; -PFNGLISSYNCAPPLEPROC glad_glIsSyncAPPLE; -PFNGLDELETESYNCAPPLEPROC glad_glDeleteSyncAPPLE; -PFNGLCLIENTWAITSYNCAPPLEPROC glad_glClientWaitSyncAPPLE; -PFNGLWAITSYNCAPPLEPROC glad_glWaitSyncAPPLE; -PFNGLGETINTEGER64VAPPLEPROC glad_glGetInteger64vAPPLE; -PFNGLGETSYNCIVAPPLEPROC glad_glGetSyncivAPPLE; -PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEEXTPROC glad_glDrawArraysInstancedBaseInstanceEXT; -PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEEXTPROC glad_glDrawElementsInstancedBaseInstanceEXT; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEEXTPROC glad_glDrawElementsInstancedBaseVertexBaseInstanceEXT; -PFNGLBINDFRAGDATALOCATIONINDEXEDEXTPROC glad_glBindFragDataLocationIndexedEXT; -PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC glad_glGetProgramResourceLocationIndexEXT; -PFNGLGETFRAGDATAINDEXEXTPROC glad_glGetFragDataIndexEXT; -PFNGLBUFFERSTORAGEEXTPROC glad_glBufferStorageEXT; -PFNGLCLEARTEXIMAGEEXTPROC glad_glClearTexImageEXT; -PFNGLCLEARTEXSUBIMAGEEXTPROC glad_glClearTexSubImageEXT; -PFNGLCLIPCONTROLEXTPROC glad_glClipControlEXT; -PFNGLCOPYIMAGESUBDATAEXTPROC glad_glCopyImageSubDataEXT; -PFNGLDISCARDFRAMEBUFFEREXTPROC glad_glDiscardFramebufferEXT; -PFNGLGENQUERIESEXTPROC glad_glGenQueriesEXT; -PFNGLDELETEQUERIESEXTPROC glad_glDeleteQueriesEXT; -PFNGLISQUERYEXTPROC glad_glIsQueryEXT; -PFNGLBEGINQUERYEXTPROC glad_glBeginQueryEXT; -PFNGLENDQUERYEXTPROC glad_glEndQueryEXT; -PFNGLQUERYCOUNTEREXTPROC glad_glQueryCounterEXT; -PFNGLGETQUERYIVEXTPROC glad_glGetQueryivEXT; -PFNGLGETQUERYOBJECTIVEXTPROC glad_glGetQueryObjectivEXT; -PFNGLGETQUERYOBJECTUIVEXTPROC glad_glGetQueryObjectuivEXT; -PFNGLDRAWBUFFERSEXTPROC glad_glDrawBuffersEXT; -PFNGLENABLEIEXTPROC glad_glEnableiEXT; -PFNGLDISABLEIEXTPROC glad_glDisableiEXT; -PFNGLBLENDEQUATIONIEXTPROC glad_glBlendEquationiEXT; -PFNGLBLENDEQUATIONSEPARATEIEXTPROC glad_glBlendEquationSeparateiEXT; -PFNGLBLENDFUNCIEXTPROC glad_glBlendFunciEXT; -PFNGLBLENDFUNCSEPARATEIEXTPROC glad_glBlendFuncSeparateiEXT; -PFNGLCOLORMASKIEXTPROC glad_glColorMaskiEXT; -PFNGLISENABLEDIEXTPROC glad_glIsEnablediEXT; -PFNGLDRAWELEMENTSBASEVERTEXEXTPROC glad_glDrawElementsBaseVertexEXT; -PFNGLDRAWRANGEELEMENTSBASEVERTEXEXTPROC glad_glDrawRangeElementsBaseVertexEXT; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXEXTPROC glad_glDrawElementsInstancedBaseVertexEXT; -PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC glad_glMultiDrawElementsBaseVertexEXT; -PFNGLDRAWTRANSFORMFEEDBACKEXTPROC glad_glDrawTransformFeedbackEXT; -PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDEXTPROC glad_glDrawTransformFeedbackInstancedEXT; -PFNGLVERTEXATTRIBDIVISOREXTPROC glad_glVertexAttribDivisorEXT; -PFNGLMAPBUFFERRANGEEXTPROC glad_glMapBufferRangeEXT; -PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC glad_glFlushMappedBufferRangeEXT; -PFNGLMULTIDRAWARRAYSINDIRECTEXTPROC glad_glMultiDrawArraysIndirectEXT; -PFNGLMULTIDRAWELEMENTSINDIRECTEXTPROC glad_glMultiDrawElementsIndirectEXT; -PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC glad_glFramebufferTexture2DMultisampleEXT; -PFNGLREADBUFFERINDEXEDEXTPROC glad_glReadBufferIndexedEXT; -PFNGLDRAWBUFFERSINDEXEDEXTPROC glad_glDrawBuffersIndexedEXT; -PFNGLGETINTEGERI_VEXTPROC glad_glGetIntegeri_vEXT; -PFNGLPRIMITIVEBOUNDINGBOXEXTPROC glad_glPrimitiveBoundingBoxEXT; -PFNGLGETGRAPHICSRESETSTATUSEXTPROC glad_glGetGraphicsResetStatusEXT; -PFNGLREADNPIXELSEXTPROC glad_glReadnPixelsEXT; -PFNGLGETNUNIFORMFVEXTPROC glad_glGetnUniformfvEXT; -PFNGLGETNUNIFORMIVEXTPROC glad_glGetnUniformivEXT; -PFNGLFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC glad_glFramebufferPixelLocalStorageSizeEXT; -PFNGLGETFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC glad_glGetFramebufferPixelLocalStorageSizeEXT; -PFNGLCLEARPIXELLOCALSTORAGEUIEXTPROC glad_glClearPixelLocalStorageuiEXT; -PFNGLTEXPAGECOMMITMENTEXTPROC glad_glTexPageCommitmentEXT; -PFNGLPATCHPARAMETERIEXTPROC glad_glPatchParameteriEXT; -PFNGLSAMPLERPARAMETERIIVEXTPROC glad_glSamplerParameterIivEXT; -PFNGLSAMPLERPARAMETERIUIVEXTPROC glad_glSamplerParameterIuivEXT; -PFNGLGETSAMPLERPARAMETERIIVEXTPROC glad_glGetSamplerParameterIivEXT; -PFNGLGETSAMPLERPARAMETERIUIVEXTPROC glad_glGetSamplerParameterIuivEXT; -PFNGLTEXBUFFERRANGEEXTPROC glad_glTexBufferRangeEXT; -PFNGLTEXSTORAGE1DEXTPROC glad_glTexStorage1DEXT; -PFNGLTEXSTORAGE2DEXTPROC glad_glTexStorage2DEXT; -PFNGLTEXSTORAGE3DEXTPROC glad_glTexStorage3DEXT; -PFNGLTEXTUREVIEWEXTPROC glad_glTextureViewEXT; -PFNGLGETTEXTUREHANDLEIMGPROC glad_glGetTextureHandleIMG; -PFNGLGETTEXTURESAMPLERHANDLEIMGPROC glad_glGetTextureSamplerHandleIMG; -PFNGLUNIFORMHANDLEUI64IMGPROC glad_glUniformHandleui64IMG; -PFNGLUNIFORMHANDLEUI64VIMGPROC glad_glUniformHandleui64vIMG; -PFNGLPROGRAMUNIFORMHANDLEUI64IMGPROC glad_glProgramUniformHandleui64IMG; -PFNGLPROGRAMUNIFORMHANDLEUI64VIMGPROC glad_glProgramUniformHandleui64vIMG; -PFNGLFRAMEBUFFERTEXTURE2DDOWNSAMPLEIMGPROC glad_glFramebufferTexture2DDownsampleIMG; -PFNGLFRAMEBUFFERTEXTURELAYERDOWNSAMPLEIMGPROC glad_glFramebufferTextureLayerDownsampleIMG; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC glad_glRenderbufferStorageMultisampleIMG; -PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC glad_glFramebufferTexture2DMultisampleIMG; -PFNGLCOPYBUFFERSUBDATANVPROC glad_glCopyBufferSubDataNV; -PFNGLCOVERAGEMASKNVPROC glad_glCoverageMaskNV; -PFNGLCOVERAGEOPERATIONNVPROC glad_glCoverageOperationNV; -PFNGLDRAWBUFFERSNVPROC glad_glDrawBuffersNV; -PFNGLDRAWARRAYSINSTANCEDNVPROC glad_glDrawArraysInstancedNV; -PFNGLDRAWELEMENTSINSTANCEDNVPROC glad_glDrawElementsInstancedNV; -PFNGLBLITFRAMEBUFFERNVPROC glad_glBlitFramebufferNV; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC glad_glRenderbufferStorageMultisampleNV; -PFNGLVERTEXATTRIBDIVISORNVPROC glad_glVertexAttribDivisorNV; -PFNGLUNIFORMMATRIX2X3FVNVPROC glad_glUniformMatrix2x3fvNV; -PFNGLUNIFORMMATRIX3X2FVNVPROC glad_glUniformMatrix3x2fvNV; -PFNGLUNIFORMMATRIX2X4FVNVPROC glad_glUniformMatrix2x4fvNV; -PFNGLUNIFORMMATRIX4X2FVNVPROC glad_glUniformMatrix4x2fvNV; -PFNGLUNIFORMMATRIX3X4FVNVPROC glad_glUniformMatrix3x4fvNV; -PFNGLUNIFORMMATRIX4X3FVNVPROC glad_glUniformMatrix4x3fvNV; -PFNGLPOLYGONMODENVPROC glad_glPolygonModeNV; -PFNGLREADBUFFERNVPROC glad_glReadBufferNV; -PFNGLVIEWPORTARRAYVNVPROC glad_glViewportArrayvNV; -PFNGLVIEWPORTINDEXEDFNVPROC glad_glViewportIndexedfNV; -PFNGLVIEWPORTINDEXEDFVNVPROC glad_glViewportIndexedfvNV; -PFNGLSCISSORARRAYVNVPROC glad_glScissorArrayvNV; -PFNGLSCISSORINDEXEDNVPROC glad_glScissorIndexedNV; -PFNGLSCISSORINDEXEDVNVPROC glad_glScissorIndexedvNV; -PFNGLDEPTHRANGEARRAYFVNVPROC glad_glDepthRangeArrayfvNV; -PFNGLDEPTHRANGEINDEXEDFNVPROC glad_glDepthRangeIndexedfNV; -PFNGLGETFLOATI_VNVPROC glad_glGetFloati_vNV; -PFNGLENABLEINVPROC glad_glEnableiNV; -PFNGLDISABLEINVPROC glad_glDisableiNV; -PFNGLISENABLEDINVPROC glad_glIsEnablediNV; -PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glad_glEGLImageTargetTexture2DOES; -PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glad_glEGLImageTargetRenderbufferStorageOES; -PFNGLCOPYIMAGESUBDATAOESPROC glad_glCopyImageSubDataOES; -PFNGLENABLEIOESPROC glad_glEnableiOES; -PFNGLDISABLEIOESPROC glad_glDisableiOES; -PFNGLBLENDEQUATIONIOESPROC glad_glBlendEquationiOES; -PFNGLBLENDEQUATIONSEPARATEIOESPROC glad_glBlendEquationSeparateiOES; -PFNGLBLENDFUNCIOESPROC glad_glBlendFunciOES; -PFNGLBLENDFUNCSEPARATEIOESPROC glad_glBlendFuncSeparateiOES; -PFNGLCOLORMASKIOESPROC glad_glColorMaskiOES; -PFNGLISENABLEDIOESPROC glad_glIsEnablediOES; -PFNGLDRAWELEMENTSBASEVERTEXOESPROC glad_glDrawElementsBaseVertexOES; -PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC glad_glDrawRangeElementsBaseVertexOES; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXOESPROC glad_glDrawElementsInstancedBaseVertexOES; -PFNGLFRAMEBUFFERTEXTUREOESPROC glad_glFramebufferTextureOES; -PFNGLGETPROGRAMBINARYOESPROC glad_glGetProgramBinaryOES; -PFNGLPROGRAMBINARYOESPROC glad_glProgramBinaryOES; -PFNGLMAPBUFFEROESPROC glad_glMapBufferOES; -PFNGLUNMAPBUFFEROESPROC glad_glUnmapBufferOES; -PFNGLGETBUFFERPOINTERVOESPROC glad_glGetBufferPointervOES; -PFNGLPRIMITIVEBOUNDINGBOXOESPROC glad_glPrimitiveBoundingBoxOES; -PFNGLMINSAMPLESHADINGOESPROC glad_glMinSampleShadingOES; -PFNGLPATCHPARAMETERIOESPROC glad_glPatchParameteriOES; -PFNGLTEXIMAGE3DOESPROC glad_glTexImage3DOES; -PFNGLTEXSUBIMAGE3DOESPROC glad_glTexSubImage3DOES; -PFNGLCOPYTEXSUBIMAGE3DOESPROC glad_glCopyTexSubImage3DOES; -PFNGLCOMPRESSEDTEXIMAGE3DOESPROC glad_glCompressedTexImage3DOES; -PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC glad_glCompressedTexSubImage3DOES; -PFNGLFRAMEBUFFERTEXTURE3DOESPROC glad_glFramebufferTexture3DOES; -PFNGLTEXPARAMETERIIVOESPROC glad_glTexParameterIivOES; -PFNGLTEXPARAMETERIUIVOESPROC glad_glTexParameterIuivOES; -PFNGLGETTEXPARAMETERIIVOESPROC glad_glGetTexParameterIivOES; -PFNGLGETTEXPARAMETERIUIVOESPROC glad_glGetTexParameterIuivOES; -PFNGLSAMPLERPARAMETERIIVOESPROC glad_glSamplerParameterIivOES; -PFNGLSAMPLERPARAMETERIUIVOESPROC glad_glSamplerParameterIuivOES; -PFNGLGETSAMPLERPARAMETERIIVOESPROC glad_glGetSamplerParameterIivOES; -PFNGLGETSAMPLERPARAMETERIUIVOESPROC glad_glGetSamplerParameterIuivOES; -PFNGLTEXBUFFEROESPROC glad_glTexBufferOES; -PFNGLTEXBUFFERRANGEOESPROC glad_glTexBufferRangeOES; -PFNGLTEXSTORAGE3DMULTISAMPLEOESPROC glad_glTexStorage3DMultisampleOES; -PFNGLTEXTUREVIEWOESPROC glad_glTextureViewOES; -PFNGLBINDVERTEXARRAYOESPROC glad_glBindVertexArrayOES; -PFNGLDELETEVERTEXARRAYSOESPROC glad_glDeleteVertexArraysOES; -PFNGLGENVERTEXARRAYSOESPROC glad_glGenVertexArraysOES; -PFNGLISVERTEXARRAYOESPROC glad_glIsVertexArrayOES; -PFNGLVIEWPORTARRAYVOESPROC glad_glViewportArrayvOES; -PFNGLVIEWPORTINDEXEDFOESPROC glad_glViewportIndexedfOES; -PFNGLVIEWPORTINDEXEDFVOESPROC glad_glViewportIndexedfvOES; -PFNGLSCISSORARRAYVOESPROC glad_glScissorArrayvOES; -PFNGLSCISSORINDEXEDOESPROC glad_glScissorIndexedOES; -PFNGLSCISSORINDEXEDVOESPROC glad_glScissorIndexedvOES; -PFNGLDEPTHRANGEARRAYFVOESPROC glad_glDepthRangeArrayfvOES; -PFNGLDEPTHRANGEINDEXEDFOESPROC glad_glDepthRangeIndexedfOES; -PFNGLGETFLOATI_VOESPROC glad_glGetFloati_vOES; -PFNGLFRAMEBUFFERTEXTUREMULTISAMPLEMULTIVIEWOVRPROC glad_glFramebufferTextureMultisampleMultiviewOVR; -PFNGLALPHAFUNCQCOMPROC glad_glAlphaFuncQCOM; -PFNGLGETDRIVERCONTROLSQCOMPROC glad_glGetDriverControlsQCOM; -PFNGLGETDRIVERCONTROLSTRINGQCOMPROC glad_glGetDriverControlStringQCOM; -PFNGLENABLEDRIVERCONTROLQCOMPROC glad_glEnableDriverControlQCOM; -PFNGLDISABLEDRIVERCONTROLQCOMPROC glad_glDisableDriverControlQCOM; -PFNGLEXTGETTEXTURESQCOMPROC glad_glExtGetTexturesQCOM; -PFNGLEXTGETBUFFERSQCOMPROC glad_glExtGetBuffersQCOM; -PFNGLEXTGETRENDERBUFFERSQCOMPROC glad_glExtGetRenderbuffersQCOM; -PFNGLEXTGETFRAMEBUFFERSQCOMPROC glad_glExtGetFramebuffersQCOM; -PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC glad_glExtGetTexLevelParameterivQCOM; -PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC glad_glExtTexObjectStateOverrideiQCOM; -PFNGLEXTGETTEXSUBIMAGEQCOMPROC glad_glExtGetTexSubImageQCOM; -PFNGLEXTGETBUFFERPOINTERVQCOMPROC glad_glExtGetBufferPointervQCOM; -PFNGLEXTGETSHADERSQCOMPROC glad_glExtGetShadersQCOM; -PFNGLEXTGETPROGRAMSQCOMPROC glad_glExtGetProgramsQCOM; -PFNGLEXTISPROGRAMBINARYQCOMPROC glad_glExtIsProgramBinaryQCOM; -PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC glad_glExtGetProgramBinarySourceQCOM; -PFNGLFRAMEBUFFERFOVEATIONCONFIGQCOMPROC glad_glFramebufferFoveationConfigQCOM; -PFNGLFRAMEBUFFERFOVEATIONPARAMETERSQCOMPROC glad_glFramebufferFoveationParametersQCOM; -PFNGLFRAMEBUFFERFETCHBARRIERQCOMPROC glad_glFramebufferFetchBarrierQCOM; -PFNGLTEXTUREFOVEATIONPARAMETERSQCOMPROC glad_glTextureFoveationParametersQCOM; -PFNGLSTARTTILINGQCOMPROC glad_glStartTilingQCOM; -PFNGLENDTILINGQCOMPROC glad_glEndTilingQCOM; -static void load_GL_VERSION_1_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_0) return; - glad_glCullFace = (PFNGLCULLFACEPROC)load("glCullFace"); - glad_glFrontFace = (PFNGLFRONTFACEPROC)load("glFrontFace"); - glad_glHint = (PFNGLHINTPROC)load("glHint"); - glad_glLineWidth = (PFNGLLINEWIDTHPROC)load("glLineWidth"); - glad_glPointSize = (PFNGLPOINTSIZEPROC)load("glPointSize"); - glad_glPolygonMode = (PFNGLPOLYGONMODEPROC)load("glPolygonMode"); - glad_glScissor = (PFNGLSCISSORPROC)load("glScissor"); - glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC)load("glTexParameterf"); - glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)load("glTexParameterfv"); - glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC)load("glTexParameteri"); - glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)load("glTexParameteriv"); - glad_glTexImage1D = (PFNGLTEXIMAGE1DPROC)load("glTexImage1D"); - glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC)load("glTexImage2D"); - glad_glDrawBuffer = (PFNGLDRAWBUFFERPROC)load("glDrawBuffer"); - glad_glClear = (PFNGLCLEARPROC)load("glClear"); - glad_glClearColor = (PFNGLCLEARCOLORPROC)load("glClearColor"); - glad_glClearStencil = (PFNGLCLEARSTENCILPROC)load("glClearStencil"); - glad_glClearDepth = (PFNGLCLEARDEPTHPROC)load("glClearDepth"); - glad_glStencilMask = (PFNGLSTENCILMASKPROC)load("glStencilMask"); - glad_glColorMask = (PFNGLCOLORMASKPROC)load("glColorMask"); - glad_glDepthMask = (PFNGLDEPTHMASKPROC)load("glDepthMask"); - glad_glDisable = (PFNGLDISABLEPROC)load("glDisable"); - glad_glEnable = (PFNGLENABLEPROC)load("glEnable"); - glad_glFinish = (PFNGLFINISHPROC)load("glFinish"); - glad_glFlush = (PFNGLFLUSHPROC)load("glFlush"); - glad_glBlendFunc = (PFNGLBLENDFUNCPROC)load("glBlendFunc"); - glad_glLogicOp = (PFNGLLOGICOPPROC)load("glLogicOp"); - glad_glStencilFunc = (PFNGLSTENCILFUNCPROC)load("glStencilFunc"); - glad_glStencilOp = (PFNGLSTENCILOPPROC)load("glStencilOp"); - glad_glDepthFunc = (PFNGLDEPTHFUNCPROC)load("glDepthFunc"); - glad_glPixelStoref = (PFNGLPIXELSTOREFPROC)load("glPixelStoref"); - glad_glPixelStorei = (PFNGLPIXELSTOREIPROC)load("glPixelStorei"); - glad_glReadBuffer = (PFNGLREADBUFFERPROC)load("glReadBuffer"); - glad_glReadPixels = (PFNGLREADPIXELSPROC)load("glReadPixels"); - glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC)load("glGetBooleanv"); - glad_glGetDoublev = (PFNGLGETDOUBLEVPROC)load("glGetDoublev"); - glad_glGetError = (PFNGLGETERRORPROC)load("glGetError"); - glad_glGetFloatv = (PFNGLGETFLOATVPROC)load("glGetFloatv"); - glad_glGetIntegerv = (PFNGLGETINTEGERVPROC)load("glGetIntegerv"); - glad_glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); - glad_glGetTexImage = (PFNGLGETTEXIMAGEPROC)load("glGetTexImage"); - glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)load("glGetTexParameterfv"); - glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)load("glGetTexParameteriv"); - glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)load("glGetTexLevelParameterfv"); - glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)load("glGetTexLevelParameteriv"); - glad_glIsEnabled = (PFNGLISENABLEDPROC)load("glIsEnabled"); - glad_glDepthRange = (PFNGLDEPTHRANGEPROC)load("glDepthRange"); - glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport"); -} -static void load_GL_VERSION_1_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_1) return; - glad_glDrawArrays = (PFNGLDRAWARRAYSPROC)load("glDrawArrays"); - glad_glDrawElements = (PFNGLDRAWELEMENTSPROC)load("glDrawElements"); - glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)load("glPolygonOffset"); - glad_glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC)load("glCopyTexImage1D"); - glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)load("glCopyTexImage2D"); - glad_glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC)load("glCopyTexSubImage1D"); - glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)load("glCopyTexSubImage2D"); - glad_glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC)load("glTexSubImage1D"); - glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)load("glTexSubImage2D"); - glad_glBindTexture = (PFNGLBINDTEXTUREPROC)load("glBindTexture"); - glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC)load("glDeleteTextures"); - glad_glGenTextures = (PFNGLGENTEXTURESPROC)load("glGenTextures"); - glad_glIsTexture = (PFNGLISTEXTUREPROC)load("glIsTexture"); -} -static void load_GL_VERSION_1_2(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_2) return; - glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)load("glDrawRangeElements"); - glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC)load("glTexImage3D"); - glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)load("glTexSubImage3D"); - glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)load("glCopyTexSubImage3D"); -} -static void load_GL_VERSION_1_3(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_3) return; - glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC)load("glActiveTexture"); - glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)load("glSampleCoverage"); - glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)load("glCompressedTexImage3D"); - glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)load("glCompressedTexImage2D"); - glad_glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC)load("glCompressedTexImage1D"); - glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)load("glCompressedTexSubImage3D"); - glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)load("glCompressedTexSubImage2D"); - glad_glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)load("glCompressedTexSubImage1D"); - glad_glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC)load("glGetCompressedTexImage"); -} -static void load_GL_VERSION_1_4(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_4) return; - glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)load("glBlendFuncSeparate"); - glad_glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC)load("glMultiDrawArrays"); - glad_glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC)load("glMultiDrawElements"); - glad_glPointParameterf = (PFNGLPOINTPARAMETERFPROC)load("glPointParameterf"); - glad_glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC)load("glPointParameterfv"); - glad_glPointParameteri = (PFNGLPOINTPARAMETERIPROC)load("glPointParameteri"); - glad_glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC)load("glPointParameteriv"); - glad_glBlendColor = (PFNGLBLENDCOLORPROC)load("glBlendColor"); - glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC)load("glBlendEquation"); -} -static void load_GL_VERSION_1_5(GLADloadproc load) { - if(!GLAD_GL_VERSION_1_5) return; - glad_glGenQueries = (PFNGLGENQUERIESPROC)load("glGenQueries"); - glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC)load("glDeleteQueries"); - glad_glIsQuery = (PFNGLISQUERYPROC)load("glIsQuery"); - glad_glBeginQuery = (PFNGLBEGINQUERYPROC)load("glBeginQuery"); - glad_glEndQuery = (PFNGLENDQUERYPROC)load("glEndQuery"); - glad_glGetQueryiv = (PFNGLGETQUERYIVPROC)load("glGetQueryiv"); - glad_glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC)load("glGetQueryObjectiv"); - glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)load("glGetQueryObjectuiv"); - glad_glBindBuffer = (PFNGLBINDBUFFERPROC)load("glBindBuffer"); - glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)load("glDeleteBuffers"); - glad_glGenBuffers = (PFNGLGENBUFFERSPROC)load("glGenBuffers"); - glad_glIsBuffer = (PFNGLISBUFFERPROC)load("glIsBuffer"); - glad_glBufferData = (PFNGLBUFFERDATAPROC)load("glBufferData"); - glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC)load("glBufferSubData"); - glad_glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC)load("glGetBufferSubData"); - glad_glMapBuffer = (PFNGLMAPBUFFERPROC)load("glMapBuffer"); - glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)load("glUnmapBuffer"); - glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)load("glGetBufferParameteriv"); - glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)load("glGetBufferPointerv"); -} -static void load_GL_VERSION_2_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_2_0) return; - glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)load("glBlendEquationSeparate"); - glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC)load("glDrawBuffers"); - glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)load("glStencilOpSeparate"); - glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)load("glStencilFuncSeparate"); - glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)load("glStencilMaskSeparate"); - glad_glAttachShader = (PFNGLATTACHSHADERPROC)load("glAttachShader"); - glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)load("glBindAttribLocation"); - glad_glCompileShader = (PFNGLCOMPILESHADERPROC)load("glCompileShader"); - glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC)load("glCreateProgram"); - glad_glCreateShader = (PFNGLCREATESHADERPROC)load("glCreateShader"); - glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC)load("glDeleteProgram"); - glad_glDeleteShader = (PFNGLDELETESHADERPROC)load("glDeleteShader"); - glad_glDetachShader = (PFNGLDETACHSHADERPROC)load("glDetachShader"); - glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)load("glDisableVertexAttribArray"); - glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)load("glEnableVertexAttribArray"); - glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)load("glGetActiveAttrib"); - glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)load("glGetActiveUniform"); - glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)load("glGetAttachedShaders"); - glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)load("glGetAttribLocation"); - glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC)load("glGetProgramiv"); - glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)load("glGetProgramInfoLog"); - glad_glGetShaderiv = (PFNGLGETSHADERIVPROC)load("glGetShaderiv"); - glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)load("glGetShaderInfoLog"); - glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)load("glGetShaderSource"); - glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)load("glGetUniformLocation"); - glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC)load("glGetUniformfv"); - glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC)load("glGetUniformiv"); - glad_glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC)load("glGetVertexAttribdv"); - glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)load("glGetVertexAttribfv"); - glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)load("glGetVertexAttribiv"); - glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)load("glGetVertexAttribPointerv"); - glad_glIsProgram = (PFNGLISPROGRAMPROC)load("glIsProgram"); - glad_glIsShader = (PFNGLISSHADERPROC)load("glIsShader"); - glad_glLinkProgram = (PFNGLLINKPROGRAMPROC)load("glLinkProgram"); - glad_glShaderSource = (PFNGLSHADERSOURCEPROC)load("glShaderSource"); - glad_glUseProgram = (PFNGLUSEPROGRAMPROC)load("glUseProgram"); - glad_glUniform1f = (PFNGLUNIFORM1FPROC)load("glUniform1f"); - glad_glUniform2f = (PFNGLUNIFORM2FPROC)load("glUniform2f"); - glad_glUniform3f = (PFNGLUNIFORM3FPROC)load("glUniform3f"); - glad_glUniform4f = (PFNGLUNIFORM4FPROC)load("glUniform4f"); - glad_glUniform1i = (PFNGLUNIFORM1IPROC)load("glUniform1i"); - glad_glUniform2i = (PFNGLUNIFORM2IPROC)load("glUniform2i"); - glad_glUniform3i = (PFNGLUNIFORM3IPROC)load("glUniform3i"); - glad_glUniform4i = (PFNGLUNIFORM4IPROC)load("glUniform4i"); - glad_glUniform1fv = (PFNGLUNIFORM1FVPROC)load("glUniform1fv"); - glad_glUniform2fv = (PFNGLUNIFORM2FVPROC)load("glUniform2fv"); - glad_glUniform3fv = (PFNGLUNIFORM3FVPROC)load("glUniform3fv"); - glad_glUniform4fv = (PFNGLUNIFORM4FVPROC)load("glUniform4fv"); - glad_glUniform1iv = (PFNGLUNIFORM1IVPROC)load("glUniform1iv"); - glad_glUniform2iv = (PFNGLUNIFORM2IVPROC)load("glUniform2iv"); - glad_glUniform3iv = (PFNGLUNIFORM3IVPROC)load("glUniform3iv"); - glad_glUniform4iv = (PFNGLUNIFORM4IVPROC)load("glUniform4iv"); - glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)load("glUniformMatrix2fv"); - glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)load("glUniformMatrix3fv"); - glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)load("glUniformMatrix4fv"); - glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)load("glValidateProgram"); - glad_glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC)load("glVertexAttrib1d"); - glad_glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC)load("glVertexAttrib1dv"); - glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)load("glVertexAttrib1f"); - glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)load("glVertexAttrib1fv"); - glad_glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC)load("glVertexAttrib1s"); - glad_glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC)load("glVertexAttrib1sv"); - glad_glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC)load("glVertexAttrib2d"); - glad_glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC)load("glVertexAttrib2dv"); - glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)load("glVertexAttrib2f"); - glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)load("glVertexAttrib2fv"); - glad_glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC)load("glVertexAttrib2s"); - glad_glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC)load("glVertexAttrib2sv"); - glad_glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC)load("glVertexAttrib3d"); - glad_glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC)load("glVertexAttrib3dv"); - glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)load("glVertexAttrib3f"); - glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)load("glVertexAttrib3fv"); - glad_glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC)load("glVertexAttrib3s"); - glad_glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC)load("glVertexAttrib3sv"); - glad_glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC)load("glVertexAttrib4Nbv"); - glad_glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC)load("glVertexAttrib4Niv"); - glad_glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC)load("glVertexAttrib4Nsv"); - glad_glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC)load("glVertexAttrib4Nub"); - glad_glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC)load("glVertexAttrib4Nubv"); - glad_glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC)load("glVertexAttrib4Nuiv"); - glad_glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC)load("glVertexAttrib4Nusv"); - glad_glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC)load("glVertexAttrib4bv"); - glad_glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC)load("glVertexAttrib4d"); - glad_glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC)load("glVertexAttrib4dv"); - glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)load("glVertexAttrib4f"); - glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)load("glVertexAttrib4fv"); - glad_glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC)load("glVertexAttrib4iv"); - glad_glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC)load("glVertexAttrib4s"); - glad_glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC)load("glVertexAttrib4sv"); - glad_glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC)load("glVertexAttrib4ubv"); - glad_glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC)load("glVertexAttrib4uiv"); - glad_glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC)load("glVertexAttrib4usv"); - glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)load("glVertexAttribPointer"); -} -static void load_GL_VERSION_2_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_2_1) return; - glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)load("glUniformMatrix2x3fv"); - glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)load("glUniformMatrix3x2fv"); - glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)load("glUniformMatrix2x4fv"); - glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)load("glUniformMatrix4x2fv"); - glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)load("glUniformMatrix3x4fv"); - glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)load("glUniformMatrix4x3fv"); -} -static void load_GL_VERSION_3_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_0) return; - glad_glColorMaski = (PFNGLCOLORMASKIPROC)load("glColorMaski"); - glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC)load("glGetBooleani_v"); - glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v"); - glad_glEnablei = (PFNGLENABLEIPROC)load("glEnablei"); - glad_glDisablei = (PFNGLDISABLEIPROC)load("glDisablei"); - glad_glIsEnabledi = (PFNGLISENABLEDIPROC)load("glIsEnabledi"); - glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC)load("glBeginTransformFeedback"); - glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC)load("glEndTransformFeedback"); - glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange"); - glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase"); - glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC)load("glTransformFeedbackVaryings"); - glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)load("glGetTransformFeedbackVarying"); - glad_glClampColor = (PFNGLCLAMPCOLORPROC)load("glClampColor"); - glad_glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC)load("glBeginConditionalRender"); - glad_glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC)load("glEndConditionalRender"); - glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC)load("glVertexAttribIPointer"); - glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC)load("glGetVertexAttribIiv"); - glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC)load("glGetVertexAttribIuiv"); - glad_glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC)load("glVertexAttribI1i"); - glad_glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC)load("glVertexAttribI2i"); - glad_glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC)load("glVertexAttribI3i"); - glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC)load("glVertexAttribI4i"); - glad_glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC)load("glVertexAttribI1ui"); - glad_glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC)load("glVertexAttribI2ui"); - glad_glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC)load("glVertexAttribI3ui"); - glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC)load("glVertexAttribI4ui"); - glad_glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC)load("glVertexAttribI1iv"); - glad_glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC)load("glVertexAttribI2iv"); - glad_glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC)load("glVertexAttribI3iv"); - glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC)load("glVertexAttribI4iv"); - glad_glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC)load("glVertexAttribI1uiv"); - glad_glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC)load("glVertexAttribI2uiv"); - glad_glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC)load("glVertexAttribI3uiv"); - glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC)load("glVertexAttribI4uiv"); - glad_glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC)load("glVertexAttribI4bv"); - glad_glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC)load("glVertexAttribI4sv"); - glad_glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC)load("glVertexAttribI4ubv"); - glad_glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC)load("glVertexAttribI4usv"); - glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC)load("glGetUniformuiv"); - glad_glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC)load("glBindFragDataLocation"); - glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC)load("glGetFragDataLocation"); - glad_glUniform1ui = (PFNGLUNIFORM1UIPROC)load("glUniform1ui"); - glad_glUniform2ui = (PFNGLUNIFORM2UIPROC)load("glUniform2ui"); - glad_glUniform3ui = (PFNGLUNIFORM3UIPROC)load("glUniform3ui"); - glad_glUniform4ui = (PFNGLUNIFORM4UIPROC)load("glUniform4ui"); - glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC)load("glUniform1uiv"); - glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC)load("glUniform2uiv"); - glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC)load("glUniform3uiv"); - glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC)load("glUniform4uiv"); - glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC)load("glTexParameterIiv"); - glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC)load("glTexParameterIuiv"); - glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC)load("glGetTexParameterIiv"); - glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC)load("glGetTexParameterIuiv"); - glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC)load("glClearBufferiv"); - glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC)load("glClearBufferuiv"); - glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC)load("glClearBufferfv"); - glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC)load("glClearBufferfi"); - glad_glGetStringi = (PFNGLGETSTRINGIPROC)load("glGetStringi"); - glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer"); - glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)load("glBindRenderbuffer"); - glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)load("glDeleteRenderbuffers"); - glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)load("glGenRenderbuffers"); - glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)load("glRenderbufferStorage"); - glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)load("glGetRenderbufferParameteriv"); - glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)load("glIsFramebuffer"); - glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)load("glBindFramebuffer"); - glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)load("glDeleteFramebuffers"); - glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)load("glGenFramebuffers"); - glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)load("glCheckFramebufferStatus"); - glad_glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC)load("glFramebufferTexture1D"); - glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)load("glFramebufferTexture2D"); - glad_glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC)load("glFramebufferTexture3D"); - glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)load("glFramebufferRenderbuffer"); - glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetFramebufferAttachmentParameteriv"); - glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)load("glGenerateMipmap"); - glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)load("glBlitFramebuffer"); - glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glRenderbufferStorageMultisample"); - glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)load("glFramebufferTextureLayer"); - glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)load("glMapBufferRange"); - glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)load("glFlushMappedBufferRange"); - glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)load("glBindVertexArray"); - glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)load("glDeleteVertexArrays"); - glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)load("glGenVertexArrays"); - glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC)load("glIsVertexArray"); -} -static void load_GL_VERSION_3_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_1) return; - glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)load("glDrawArraysInstanced"); - glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC)load("glDrawElementsInstanced"); - glad_glTexBuffer = (PFNGLTEXBUFFERPROC)load("glTexBuffer"); - glad_glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC)load("glPrimitiveRestartIndex"); - glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)load("glCopyBufferSubData"); - glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)load("glGetUniformIndices"); - glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)load("glGetActiveUniformsiv"); - glad_glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC)load("glGetActiveUniformName"); - glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)load("glGetUniformBlockIndex"); - glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)load("glGetActiveUniformBlockiv"); - glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)load("glGetActiveUniformBlockName"); - glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)load("glUniformBlockBinding"); - glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange"); - glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase"); - glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v"); -} -static void load_GL_VERSION_3_2(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_2) return; - glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)load("glDrawElementsBaseVertex"); - glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)load("glDrawRangeElementsBaseVertex"); - glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)load("glDrawElementsInstancedBaseVertex"); - glad_glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)load("glMultiDrawElementsBaseVertex"); - glad_glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC)load("glProvokingVertex"); - glad_glFenceSync = (PFNGLFENCESYNCPROC)load("glFenceSync"); - glad_glIsSync = (PFNGLISSYNCPROC)load("glIsSync"); - glad_glDeleteSync = (PFNGLDELETESYNCPROC)load("glDeleteSync"); - glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)load("glClientWaitSync"); - glad_glWaitSync = (PFNGLWAITSYNCPROC)load("glWaitSync"); - glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC)load("glGetInteger64v"); - glad_glGetSynciv = (PFNGLGETSYNCIVPROC)load("glGetSynciv"); - glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)load("glGetInteger64i_v"); - glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)load("glGetBufferParameteri64v"); - glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)load("glFramebufferTexture"); - glad_glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)load("glTexImage2DMultisample"); - glad_glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC)load("glTexImage3DMultisample"); - glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)load("glGetMultisamplefv"); - glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC)load("glSampleMaski"); -} -static void load_GL_VERSION_3_3(GLADloadproc load) { - if(!GLAD_GL_VERSION_3_3) return; - glad_glBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC)load("glBindFragDataLocationIndexed"); - glad_glGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC)load("glGetFragDataIndex"); - glad_glGenSamplers = (PFNGLGENSAMPLERSPROC)load("glGenSamplers"); - glad_glDeleteSamplers = (PFNGLDELETESAMPLERSPROC)load("glDeleteSamplers"); - glad_glIsSampler = (PFNGLISSAMPLERPROC)load("glIsSampler"); - glad_glBindSampler = (PFNGLBINDSAMPLERPROC)load("glBindSampler"); - glad_glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC)load("glSamplerParameteri"); - glad_glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC)load("glSamplerParameteriv"); - glad_glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC)load("glSamplerParameterf"); - glad_glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC)load("glSamplerParameterfv"); - glad_glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC)load("glSamplerParameterIiv"); - glad_glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC)load("glSamplerParameterIuiv"); - glad_glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC)load("glGetSamplerParameteriv"); - glad_glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC)load("glGetSamplerParameterIiv"); - glad_glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC)load("glGetSamplerParameterfv"); - glad_glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC)load("glGetSamplerParameterIuiv"); - glad_glQueryCounter = (PFNGLQUERYCOUNTERPROC)load("glQueryCounter"); - glad_glGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC)load("glGetQueryObjecti64v"); - glad_glGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC)load("glGetQueryObjectui64v"); - glad_glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC)load("glVertexAttribDivisor"); - glad_glVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC)load("glVertexAttribP1ui"); - glad_glVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC)load("glVertexAttribP1uiv"); - glad_glVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC)load("glVertexAttribP2ui"); - glad_glVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC)load("glVertexAttribP2uiv"); - glad_glVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC)load("glVertexAttribP3ui"); - glad_glVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC)load("glVertexAttribP3uiv"); - glad_glVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC)load("glVertexAttribP4ui"); - glad_glVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC)load("glVertexAttribP4uiv"); - glad_glVertexP2ui = (PFNGLVERTEXP2UIPROC)load("glVertexP2ui"); - glad_glVertexP2uiv = (PFNGLVERTEXP2UIVPROC)load("glVertexP2uiv"); - glad_glVertexP3ui = (PFNGLVERTEXP3UIPROC)load("glVertexP3ui"); - glad_glVertexP3uiv = (PFNGLVERTEXP3UIVPROC)load("glVertexP3uiv"); - glad_glVertexP4ui = (PFNGLVERTEXP4UIPROC)load("glVertexP4ui"); - glad_glVertexP4uiv = (PFNGLVERTEXP4UIVPROC)load("glVertexP4uiv"); - glad_glTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC)load("glTexCoordP1ui"); - glad_glTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC)load("glTexCoordP1uiv"); - glad_glTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC)load("glTexCoordP2ui"); - glad_glTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC)load("glTexCoordP2uiv"); - glad_glTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC)load("glTexCoordP3ui"); - glad_glTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC)load("glTexCoordP3uiv"); - glad_glTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC)load("glTexCoordP4ui"); - glad_glTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC)load("glTexCoordP4uiv"); - glad_glMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC)load("glMultiTexCoordP1ui"); - glad_glMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC)load("glMultiTexCoordP1uiv"); - glad_glMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC)load("glMultiTexCoordP2ui"); - glad_glMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC)load("glMultiTexCoordP2uiv"); - glad_glMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC)load("glMultiTexCoordP3ui"); - glad_glMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC)load("glMultiTexCoordP3uiv"); - glad_glMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC)load("glMultiTexCoordP4ui"); - glad_glMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC)load("glMultiTexCoordP4uiv"); - glad_glNormalP3ui = (PFNGLNORMALP3UIPROC)load("glNormalP3ui"); - glad_glNormalP3uiv = (PFNGLNORMALP3UIVPROC)load("glNormalP3uiv"); - glad_glColorP3ui = (PFNGLCOLORP3UIPROC)load("glColorP3ui"); - glad_glColorP3uiv = (PFNGLCOLORP3UIVPROC)load("glColorP3uiv"); - glad_glColorP4ui = (PFNGLCOLORP4UIPROC)load("glColorP4ui"); - glad_glColorP4uiv = (PFNGLCOLORP4UIVPROC)load("glColorP4uiv"); - glad_glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC)load("glSecondaryColorP3ui"); - glad_glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC)load("glSecondaryColorP3uiv"); -} -static void load_GL_VERSION_4_0(GLADloadproc load) { - if(!GLAD_GL_VERSION_4_0) return; - glad_glMinSampleShading = (PFNGLMINSAMPLESHADINGPROC)load("glMinSampleShading"); - glad_glBlendEquationi = (PFNGLBLENDEQUATIONIPROC)load("glBlendEquationi"); - glad_glBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC)load("glBlendEquationSeparatei"); - glad_glBlendFunci = (PFNGLBLENDFUNCIPROC)load("glBlendFunci"); - glad_glBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC)load("glBlendFuncSeparatei"); - glad_glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC)load("glDrawArraysIndirect"); - glad_glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC)load("glDrawElementsIndirect"); - glad_glUniform1d = (PFNGLUNIFORM1DPROC)load("glUniform1d"); - glad_glUniform2d = (PFNGLUNIFORM2DPROC)load("glUniform2d"); - glad_glUniform3d = (PFNGLUNIFORM3DPROC)load("glUniform3d"); - glad_glUniform4d = (PFNGLUNIFORM4DPROC)load("glUniform4d"); - glad_glUniform1dv = (PFNGLUNIFORM1DVPROC)load("glUniform1dv"); - glad_glUniform2dv = (PFNGLUNIFORM2DVPROC)load("glUniform2dv"); - glad_glUniform3dv = (PFNGLUNIFORM3DVPROC)load("glUniform3dv"); - glad_glUniform4dv = (PFNGLUNIFORM4DVPROC)load("glUniform4dv"); - glad_glUniformMatrix2dv = (PFNGLUNIFORMMATRIX2DVPROC)load("glUniformMatrix2dv"); - glad_glUniformMatrix3dv = (PFNGLUNIFORMMATRIX3DVPROC)load("glUniformMatrix3dv"); - glad_glUniformMatrix4dv = (PFNGLUNIFORMMATRIX4DVPROC)load("glUniformMatrix4dv"); - glad_glUniformMatrix2x3dv = (PFNGLUNIFORMMATRIX2X3DVPROC)load("glUniformMatrix2x3dv"); - glad_glUniformMatrix2x4dv = (PFNGLUNIFORMMATRIX2X4DVPROC)load("glUniformMatrix2x4dv"); - glad_glUniformMatrix3x2dv = (PFNGLUNIFORMMATRIX3X2DVPROC)load("glUniformMatrix3x2dv"); - glad_glUniformMatrix3x4dv = (PFNGLUNIFORMMATRIX3X4DVPROC)load("glUniformMatrix3x4dv"); - glad_glUniformMatrix4x2dv = (PFNGLUNIFORMMATRIX4X2DVPROC)load("glUniformMatrix4x2dv"); - glad_glUniformMatrix4x3dv = (PFNGLUNIFORMMATRIX4X3DVPROC)load("glUniformMatrix4x3dv"); - glad_glGetUniformdv = (PFNGLGETUNIFORMDVPROC)load("glGetUniformdv"); - glad_glGetSubroutineUniformLocation = (PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC)load("glGetSubroutineUniformLocation"); - glad_glGetSubroutineIndex = (PFNGLGETSUBROUTINEINDEXPROC)load("glGetSubroutineIndex"); - glad_glGetActiveSubroutineUniformiv = (PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC)load("glGetActiveSubroutineUniformiv"); - glad_glGetActiveSubroutineUniformName = (PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC)load("glGetActiveSubroutineUniformName"); - glad_glGetActiveSubroutineName = (PFNGLGETACTIVESUBROUTINENAMEPROC)load("glGetActiveSubroutineName"); - glad_glUniformSubroutinesuiv = (PFNGLUNIFORMSUBROUTINESUIVPROC)load("glUniformSubroutinesuiv"); - glad_glGetUniformSubroutineuiv = (PFNGLGETUNIFORMSUBROUTINEUIVPROC)load("glGetUniformSubroutineuiv"); - glad_glGetProgramStageiv = (PFNGLGETPROGRAMSTAGEIVPROC)load("glGetProgramStageiv"); - glad_glPatchParameteri = (PFNGLPATCHPARAMETERIPROC)load("glPatchParameteri"); - glad_glPatchParameterfv = (PFNGLPATCHPARAMETERFVPROC)load("glPatchParameterfv"); - glad_glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC)load("glBindTransformFeedback"); - glad_glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC)load("glDeleteTransformFeedbacks"); - glad_glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC)load("glGenTransformFeedbacks"); - glad_glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC)load("glIsTransformFeedback"); - glad_glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC)load("glPauseTransformFeedback"); - glad_glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC)load("glResumeTransformFeedback"); - glad_glDrawTransformFeedback = (PFNGLDRAWTRANSFORMFEEDBACKPROC)load("glDrawTransformFeedback"); - glad_glDrawTransformFeedbackStream = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC)load("glDrawTransformFeedbackStream"); - glad_glBeginQueryIndexed = (PFNGLBEGINQUERYINDEXEDPROC)load("glBeginQueryIndexed"); - glad_glEndQueryIndexed = (PFNGLENDQUERYINDEXEDPROC)load("glEndQueryIndexed"); - glad_glGetQueryIndexediv = (PFNGLGETQUERYINDEXEDIVPROC)load("glGetQueryIndexediv"); -} -static void load_GL_VERSION_4_1(GLADloadproc load) { - if(!GLAD_GL_VERSION_4_1) return; - glad_glReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC)load("glReleaseShaderCompiler"); - glad_glShaderBinary = (PFNGLSHADERBINARYPROC)load("glShaderBinary"); - glad_glGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC)load("glGetShaderPrecisionFormat"); - glad_glDepthRangef = (PFNGLDEPTHRANGEFPROC)load("glDepthRangef"); - glad_glClearDepthf = (PFNGLCLEARDEPTHFPROC)load("glClearDepthf"); - glad_glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC)load("glGetProgramBinary"); - glad_glProgramBinary = (PFNGLPROGRAMBINARYPROC)load("glProgramBinary"); - glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri"); - glad_glUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC)load("glUseProgramStages"); - glad_glActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC)load("glActiveShaderProgram"); - glad_glCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC)load("glCreateShaderProgramv"); - glad_glBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC)load("glBindProgramPipeline"); - glad_glDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC)load("glDeleteProgramPipelines"); - glad_glGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC)load("glGenProgramPipelines"); - glad_glIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC)load("glIsProgramPipeline"); - glad_glGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC)load("glGetProgramPipelineiv"); - glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri"); - glad_glProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC)load("glProgramUniform1i"); - glad_glProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC)load("glProgramUniform1iv"); - glad_glProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC)load("glProgramUniform1f"); - glad_glProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC)load("glProgramUniform1fv"); - glad_glProgramUniform1d = (PFNGLPROGRAMUNIFORM1DPROC)load("glProgramUniform1d"); - glad_glProgramUniform1dv = (PFNGLPROGRAMUNIFORM1DVPROC)load("glProgramUniform1dv"); - glad_glProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC)load("glProgramUniform1ui"); - glad_glProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC)load("glProgramUniform1uiv"); - glad_glProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC)load("glProgramUniform2i"); - glad_glProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC)load("glProgramUniform2iv"); - glad_glProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC)load("glProgramUniform2f"); - glad_glProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC)load("glProgramUniform2fv"); - glad_glProgramUniform2d = (PFNGLPROGRAMUNIFORM2DPROC)load("glProgramUniform2d"); - glad_glProgramUniform2dv = (PFNGLPROGRAMUNIFORM2DVPROC)load("glProgramUniform2dv"); - glad_glProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC)load("glProgramUniform2ui"); - glad_glProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC)load("glProgramUniform2uiv"); - glad_glProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC)load("glProgramUniform3i"); - glad_glProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC)load("glProgramUniform3iv"); - glad_glProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC)load("glProgramUniform3f"); - glad_glProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC)load("glProgramUniform3fv"); - glad_glProgramUniform3d = (PFNGLPROGRAMUNIFORM3DPROC)load("glProgramUniform3d"); - glad_glProgramUniform3dv = (PFNGLPROGRAMUNIFORM3DVPROC)load("glProgramUniform3dv"); - glad_glProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC)load("glProgramUniform3ui"); - glad_glProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC)load("glProgramUniform3uiv"); - glad_glProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC)load("glProgramUniform4i"); - glad_glProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC)load("glProgramUniform4iv"); - glad_glProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC)load("glProgramUniform4f"); - glad_glProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC)load("glProgramUniform4fv"); - glad_glProgramUniform4d = (PFNGLPROGRAMUNIFORM4DPROC)load("glProgramUniform4d"); - glad_glProgramUniform4dv = (PFNGLPROGRAMUNIFORM4DVPROC)load("glProgramUniform4dv"); - glad_glProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC)load("glProgramUniform4ui"); - glad_glProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC)load("glProgramUniform4uiv"); - glad_glProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC)load("glProgramUniformMatrix2fv"); - glad_glProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC)load("glProgramUniformMatrix3fv"); - glad_glProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC)load("glProgramUniformMatrix4fv"); - glad_glProgramUniformMatrix2dv = (PFNGLPROGRAMUNIFORMMATRIX2DVPROC)load("glProgramUniformMatrix2dv"); - glad_glProgramUniformMatrix3dv = (PFNGLPROGRAMUNIFORMMATRIX3DVPROC)load("glProgramUniformMatrix3dv"); - glad_glProgramUniformMatrix4dv = (PFNGLPROGRAMUNIFORMMATRIX4DVPROC)load("glProgramUniformMatrix4dv"); - glad_glProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)load("glProgramUniformMatrix2x3fv"); - glad_glProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)load("glProgramUniformMatrix3x2fv"); - glad_glProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)load("glProgramUniformMatrix2x4fv"); - glad_glProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)load("glProgramUniformMatrix4x2fv"); - glad_glProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)load("glProgramUniformMatrix3x4fv"); - glad_glProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)load("glProgramUniformMatrix4x3fv"); - glad_glProgramUniformMatrix2x3dv = (PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC)load("glProgramUniformMatrix2x3dv"); - glad_glProgramUniformMatrix3x2dv = (PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC)load("glProgramUniformMatrix3x2dv"); - glad_glProgramUniformMatrix2x4dv = (PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC)load("glProgramUniformMatrix2x4dv"); - glad_glProgramUniformMatrix4x2dv = (PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC)load("glProgramUniformMatrix4x2dv"); - glad_glProgramUniformMatrix3x4dv = (PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC)load("glProgramUniformMatrix3x4dv"); - glad_glProgramUniformMatrix4x3dv = (PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC)load("glProgramUniformMatrix4x3dv"); - glad_glValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC)load("glValidateProgramPipeline"); - glad_glGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC)load("glGetProgramPipelineInfoLog"); - glad_glVertexAttribL1d = (PFNGLVERTEXATTRIBL1DPROC)load("glVertexAttribL1d"); - glad_glVertexAttribL2d = (PFNGLVERTEXATTRIBL2DPROC)load("glVertexAttribL2d"); - glad_glVertexAttribL3d = (PFNGLVERTEXATTRIBL3DPROC)load("glVertexAttribL3d"); - glad_glVertexAttribL4d = (PFNGLVERTEXATTRIBL4DPROC)load("glVertexAttribL4d"); - glad_glVertexAttribL1dv = (PFNGLVERTEXATTRIBL1DVPROC)load("glVertexAttribL1dv"); - glad_glVertexAttribL2dv = (PFNGLVERTEXATTRIBL2DVPROC)load("glVertexAttribL2dv"); - glad_glVertexAttribL3dv = (PFNGLVERTEXATTRIBL3DVPROC)load("glVertexAttribL3dv"); - glad_glVertexAttribL4dv = (PFNGLVERTEXATTRIBL4DVPROC)load("glVertexAttribL4dv"); - glad_glVertexAttribLPointer = (PFNGLVERTEXATTRIBLPOINTERPROC)load("glVertexAttribLPointer"); - glad_glGetVertexAttribLdv = (PFNGLGETVERTEXATTRIBLDVPROC)load("glGetVertexAttribLdv"); - glad_glViewportArrayv = (PFNGLVIEWPORTARRAYVPROC)load("glViewportArrayv"); - glad_glViewportIndexedf = (PFNGLVIEWPORTINDEXEDFPROC)load("glViewportIndexedf"); - glad_glViewportIndexedfv = (PFNGLVIEWPORTINDEXEDFVPROC)load("glViewportIndexedfv"); - glad_glScissorArrayv = (PFNGLSCISSORARRAYVPROC)load("glScissorArrayv"); - glad_glScissorIndexed = (PFNGLSCISSORINDEXEDPROC)load("glScissorIndexed"); - glad_glScissorIndexedv = (PFNGLSCISSORINDEXEDVPROC)load("glScissorIndexedv"); - glad_glDepthRangeArrayv = (PFNGLDEPTHRANGEARRAYVPROC)load("glDepthRangeArrayv"); - glad_glDepthRangeIndexed = (PFNGLDEPTHRANGEINDEXEDPROC)load("glDepthRangeIndexed"); - glad_glGetFloati_v = (PFNGLGETFLOATI_VPROC)load("glGetFloati_v"); - glad_glGetDoublei_v = (PFNGLGETDOUBLEI_VPROC)load("glGetDoublei_v"); -} -static void load_GL_VERSION_4_2(GLADloadproc load) { - if(!GLAD_GL_VERSION_4_2) return; - glad_glDrawArraysInstancedBaseInstance = (PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC)load("glDrawArraysInstancedBaseInstance"); - glad_glDrawElementsInstancedBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC)load("glDrawElementsInstancedBaseInstance"); - glad_glDrawElementsInstancedBaseVertexBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC)load("glDrawElementsInstancedBaseVertexBaseInstance"); - glad_glGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC)load("glGetInternalformativ"); - glad_glGetActiveAtomicCounterBufferiv = (PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC)load("glGetActiveAtomicCounterBufferiv"); - glad_glBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC)load("glBindImageTexture"); - glad_glMemoryBarrier = (PFNGLMEMORYBARRIERPROC)load("glMemoryBarrier"); - glad_glTexStorage1D = (PFNGLTEXSTORAGE1DPROC)load("glTexStorage1D"); - glad_glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)load("glTexStorage2D"); - glad_glTexStorage3D = (PFNGLTEXSTORAGE3DPROC)load("glTexStorage3D"); - glad_glDrawTransformFeedbackInstanced = (PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC)load("glDrawTransformFeedbackInstanced"); - glad_glDrawTransformFeedbackStreamInstanced = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC)load("glDrawTransformFeedbackStreamInstanced"); -} -static void load_GL_VERSION_4_3(GLADloadproc load) { - if(!GLAD_GL_VERSION_4_3) return; - glad_glClearBufferData = (PFNGLCLEARBUFFERDATAPROC)load("glClearBufferData"); - glad_glClearBufferSubData = (PFNGLCLEARBUFFERSUBDATAPROC)load("glClearBufferSubData"); - glad_glDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC)load("glDispatchCompute"); - glad_glDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC)load("glDispatchComputeIndirect"); - glad_glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)load("glCopyImageSubData"); - glad_glFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC)load("glFramebufferParameteri"); - glad_glGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC)load("glGetFramebufferParameteriv"); - glad_glGetInternalformati64v = (PFNGLGETINTERNALFORMATI64VPROC)load("glGetInternalformati64v"); - glad_glInvalidateTexSubImage = (PFNGLINVALIDATETEXSUBIMAGEPROC)load("glInvalidateTexSubImage"); - glad_glInvalidateTexImage = (PFNGLINVALIDATETEXIMAGEPROC)load("glInvalidateTexImage"); - glad_glInvalidateBufferSubData = (PFNGLINVALIDATEBUFFERSUBDATAPROC)load("glInvalidateBufferSubData"); - glad_glInvalidateBufferData = (PFNGLINVALIDATEBUFFERDATAPROC)load("glInvalidateBufferData"); - glad_glInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC)load("glInvalidateFramebuffer"); - glad_glInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC)load("glInvalidateSubFramebuffer"); - glad_glMultiDrawArraysIndirect = (PFNGLMULTIDRAWARRAYSINDIRECTPROC)load("glMultiDrawArraysIndirect"); - glad_glMultiDrawElementsIndirect = (PFNGLMULTIDRAWELEMENTSINDIRECTPROC)load("glMultiDrawElementsIndirect"); - glad_glGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC)load("glGetProgramInterfaceiv"); - glad_glGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC)load("glGetProgramResourceIndex"); - glad_glGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC)load("glGetProgramResourceName"); - glad_glGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC)load("glGetProgramResourceiv"); - glad_glGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC)load("glGetProgramResourceLocation"); - glad_glGetProgramResourceLocationIndex = (PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC)load("glGetProgramResourceLocationIndex"); - glad_glShaderStorageBlockBinding = (PFNGLSHADERSTORAGEBLOCKBINDINGPROC)load("glShaderStorageBlockBinding"); - glad_glTexBufferRange = (PFNGLTEXBUFFERRANGEPROC)load("glTexBufferRange"); - glad_glTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC)load("glTexStorage2DMultisample"); - glad_glTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC)load("glTexStorage3DMultisample"); - glad_glTextureView = (PFNGLTEXTUREVIEWPROC)load("glTextureView"); - glad_glBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC)load("glBindVertexBuffer"); - glad_glVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC)load("glVertexAttribFormat"); - glad_glVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC)load("glVertexAttribIFormat"); - glad_glVertexAttribLFormat = (PFNGLVERTEXATTRIBLFORMATPROC)load("glVertexAttribLFormat"); - glad_glVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC)load("glVertexAttribBinding"); - glad_glVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC)load("glVertexBindingDivisor"); - glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)load("glDebugMessageControl"); - glad_glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC)load("glDebugMessageInsert"); - glad_glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC)load("glDebugMessageCallback"); - glad_glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC)load("glGetDebugMessageLog"); - glad_glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC)load("glPushDebugGroup"); - glad_glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC)load("glPopDebugGroup"); - glad_glObjectLabel = (PFNGLOBJECTLABELPROC)load("glObjectLabel"); - glad_glGetObjectLabel = (PFNGLGETOBJECTLABELPROC)load("glGetObjectLabel"); - glad_glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC)load("glObjectPtrLabel"); - glad_glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC)load("glGetObjectPtrLabel"); - glad_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv"); -} -static void load_GL_VERSION_4_4(GLADloadproc load) { - if(!GLAD_GL_VERSION_4_4) return; - glad_glBufferStorage = (PFNGLBUFFERSTORAGEPROC)load("glBufferStorage"); - glad_glClearTexImage = (PFNGLCLEARTEXIMAGEPROC)load("glClearTexImage"); - glad_glClearTexSubImage = (PFNGLCLEARTEXSUBIMAGEPROC)load("glClearTexSubImage"); - glad_glBindBuffersBase = (PFNGLBINDBUFFERSBASEPROC)load("glBindBuffersBase"); - glad_glBindBuffersRange = (PFNGLBINDBUFFERSRANGEPROC)load("glBindBuffersRange"); - glad_glBindTextures = (PFNGLBINDTEXTURESPROC)load("glBindTextures"); - glad_glBindSamplers = (PFNGLBINDSAMPLERSPROC)load("glBindSamplers"); - glad_glBindImageTextures = (PFNGLBINDIMAGETEXTURESPROC)load("glBindImageTextures"); - glad_glBindVertexBuffers = (PFNGLBINDVERTEXBUFFERSPROC)load("glBindVertexBuffers"); -} -static void load_GL_VERSION_4_5(GLADloadproc load) { - if(!GLAD_GL_VERSION_4_5) return; - glad_glClipControl = (PFNGLCLIPCONTROLPROC)load("glClipControl"); - glad_glCreateTransformFeedbacks = (PFNGLCREATETRANSFORMFEEDBACKSPROC)load("glCreateTransformFeedbacks"); - glad_glTransformFeedbackBufferBase = (PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC)load("glTransformFeedbackBufferBase"); - glad_glTransformFeedbackBufferRange = (PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC)load("glTransformFeedbackBufferRange"); - glad_glGetTransformFeedbackiv = (PFNGLGETTRANSFORMFEEDBACKIVPROC)load("glGetTransformFeedbackiv"); - glad_glGetTransformFeedbacki_v = (PFNGLGETTRANSFORMFEEDBACKI_VPROC)load("glGetTransformFeedbacki_v"); - glad_glGetTransformFeedbacki64_v = (PFNGLGETTRANSFORMFEEDBACKI64_VPROC)load("glGetTransformFeedbacki64_v"); - glad_glCreateBuffers = (PFNGLCREATEBUFFERSPROC)load("glCreateBuffers"); - glad_glNamedBufferStorage = (PFNGLNAMEDBUFFERSTORAGEPROC)load("glNamedBufferStorage"); - glad_glNamedBufferData = (PFNGLNAMEDBUFFERDATAPROC)load("glNamedBufferData"); - glad_glNamedBufferSubData = (PFNGLNAMEDBUFFERSUBDATAPROC)load("glNamedBufferSubData"); - glad_glCopyNamedBufferSubData = (PFNGLCOPYNAMEDBUFFERSUBDATAPROC)load("glCopyNamedBufferSubData"); - glad_glClearNamedBufferData = (PFNGLCLEARNAMEDBUFFERDATAPROC)load("glClearNamedBufferData"); - glad_glClearNamedBufferSubData = (PFNGLCLEARNAMEDBUFFERSUBDATAPROC)load("glClearNamedBufferSubData"); - glad_glMapNamedBuffer = (PFNGLMAPNAMEDBUFFERPROC)load("glMapNamedBuffer"); - glad_glMapNamedBufferRange = (PFNGLMAPNAMEDBUFFERRANGEPROC)load("glMapNamedBufferRange"); - glad_glUnmapNamedBuffer = (PFNGLUNMAPNAMEDBUFFERPROC)load("glUnmapNamedBuffer"); - glad_glFlushMappedNamedBufferRange = (PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC)load("glFlushMappedNamedBufferRange"); - glad_glGetNamedBufferParameteriv = (PFNGLGETNAMEDBUFFERPARAMETERIVPROC)load("glGetNamedBufferParameteriv"); - glad_glGetNamedBufferParameteri64v = (PFNGLGETNAMEDBUFFERPARAMETERI64VPROC)load("glGetNamedBufferParameteri64v"); - glad_glGetNamedBufferPointerv = (PFNGLGETNAMEDBUFFERPOINTERVPROC)load("glGetNamedBufferPointerv"); - glad_glGetNamedBufferSubData = (PFNGLGETNAMEDBUFFERSUBDATAPROC)load("glGetNamedBufferSubData"); - glad_glCreateFramebuffers = (PFNGLCREATEFRAMEBUFFERSPROC)load("glCreateFramebuffers"); - glad_glNamedFramebufferRenderbuffer = (PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC)load("glNamedFramebufferRenderbuffer"); - glad_glNamedFramebufferParameteri = (PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC)load("glNamedFramebufferParameteri"); - glad_glNamedFramebufferTexture = (PFNGLNAMEDFRAMEBUFFERTEXTUREPROC)load("glNamedFramebufferTexture"); - glad_glNamedFramebufferTextureLayer = (PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC)load("glNamedFramebufferTextureLayer"); - glad_glNamedFramebufferDrawBuffer = (PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC)load("glNamedFramebufferDrawBuffer"); - glad_glNamedFramebufferDrawBuffers = (PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC)load("glNamedFramebufferDrawBuffers"); - glad_glNamedFramebufferReadBuffer = (PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC)load("glNamedFramebufferReadBuffer"); - glad_glInvalidateNamedFramebufferData = (PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC)load("glInvalidateNamedFramebufferData"); - glad_glInvalidateNamedFramebufferSubData = (PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC)load("glInvalidateNamedFramebufferSubData"); - glad_glClearNamedFramebufferiv = (PFNGLCLEARNAMEDFRAMEBUFFERIVPROC)load("glClearNamedFramebufferiv"); - glad_glClearNamedFramebufferuiv = (PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC)load("glClearNamedFramebufferuiv"); - glad_glClearNamedFramebufferfv = (PFNGLCLEARNAMEDFRAMEBUFFERFVPROC)load("glClearNamedFramebufferfv"); - glad_glClearNamedFramebufferfi = (PFNGLCLEARNAMEDFRAMEBUFFERFIPROC)load("glClearNamedFramebufferfi"); - glad_glBlitNamedFramebuffer = (PFNGLBLITNAMEDFRAMEBUFFERPROC)load("glBlitNamedFramebuffer"); - glad_glCheckNamedFramebufferStatus = (PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC)load("glCheckNamedFramebufferStatus"); - glad_glGetNamedFramebufferParameteriv = (PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC)load("glGetNamedFramebufferParameteriv"); - glad_glGetNamedFramebufferAttachmentParameteriv = (PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetNamedFramebufferAttachmentParameteriv"); - glad_glCreateRenderbuffers = (PFNGLCREATERENDERBUFFERSPROC)load("glCreateRenderbuffers"); - glad_glNamedRenderbufferStorage = (PFNGLNAMEDRENDERBUFFERSTORAGEPROC)load("glNamedRenderbufferStorage"); - glad_glNamedRenderbufferStorageMultisample = (PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glNamedRenderbufferStorageMultisample"); - glad_glGetNamedRenderbufferParameteriv = (PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC)load("glGetNamedRenderbufferParameteriv"); - glad_glCreateTextures = (PFNGLCREATETEXTURESPROC)load("glCreateTextures"); - glad_glTextureBuffer = (PFNGLTEXTUREBUFFERPROC)load("glTextureBuffer"); - glad_glTextureBufferRange = (PFNGLTEXTUREBUFFERRANGEPROC)load("glTextureBufferRange"); - glad_glTextureStorage1D = (PFNGLTEXTURESTORAGE1DPROC)load("glTextureStorage1D"); - glad_glTextureStorage2D = (PFNGLTEXTURESTORAGE2DPROC)load("glTextureStorage2D"); - glad_glTextureStorage3D = (PFNGLTEXTURESTORAGE3DPROC)load("glTextureStorage3D"); - glad_glTextureStorage2DMultisample = (PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC)load("glTextureStorage2DMultisample"); - glad_glTextureStorage3DMultisample = (PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC)load("glTextureStorage3DMultisample"); - glad_glTextureSubImage1D = (PFNGLTEXTURESUBIMAGE1DPROC)load("glTextureSubImage1D"); - glad_glTextureSubImage2D = (PFNGLTEXTURESUBIMAGE2DPROC)load("glTextureSubImage2D"); - glad_glTextureSubImage3D = (PFNGLTEXTURESUBIMAGE3DPROC)load("glTextureSubImage3D"); - glad_glCompressedTextureSubImage1D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC)load("glCompressedTextureSubImage1D"); - glad_glCompressedTextureSubImage2D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC)load("glCompressedTextureSubImage2D"); - glad_glCompressedTextureSubImage3D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC)load("glCompressedTextureSubImage3D"); - glad_glCopyTextureSubImage1D = (PFNGLCOPYTEXTURESUBIMAGE1DPROC)load("glCopyTextureSubImage1D"); - glad_glCopyTextureSubImage2D = (PFNGLCOPYTEXTURESUBIMAGE2DPROC)load("glCopyTextureSubImage2D"); - glad_glCopyTextureSubImage3D = (PFNGLCOPYTEXTURESUBIMAGE3DPROC)load("glCopyTextureSubImage3D"); - glad_glTextureParameterf = (PFNGLTEXTUREPARAMETERFPROC)load("glTextureParameterf"); - glad_glTextureParameterfv = (PFNGLTEXTUREPARAMETERFVPROC)load("glTextureParameterfv"); - glad_glTextureParameteri = (PFNGLTEXTUREPARAMETERIPROC)load("glTextureParameteri"); - glad_glTextureParameterIiv = (PFNGLTEXTUREPARAMETERIIVPROC)load("glTextureParameterIiv"); - glad_glTextureParameterIuiv = (PFNGLTEXTUREPARAMETERIUIVPROC)load("glTextureParameterIuiv"); - glad_glTextureParameteriv = (PFNGLTEXTUREPARAMETERIVPROC)load("glTextureParameteriv"); - glad_glGenerateTextureMipmap = (PFNGLGENERATETEXTUREMIPMAPPROC)load("glGenerateTextureMipmap"); - glad_glBindTextureUnit = (PFNGLBINDTEXTUREUNITPROC)load("glBindTextureUnit"); - glad_glGetTextureImage = (PFNGLGETTEXTUREIMAGEPROC)load("glGetTextureImage"); - glad_glGetCompressedTextureImage = (PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC)load("glGetCompressedTextureImage"); - glad_glGetTextureLevelParameterfv = (PFNGLGETTEXTURELEVELPARAMETERFVPROC)load("glGetTextureLevelParameterfv"); - glad_glGetTextureLevelParameteriv = (PFNGLGETTEXTURELEVELPARAMETERIVPROC)load("glGetTextureLevelParameteriv"); - glad_glGetTextureParameterfv = (PFNGLGETTEXTUREPARAMETERFVPROC)load("glGetTextureParameterfv"); - glad_glGetTextureParameterIiv = (PFNGLGETTEXTUREPARAMETERIIVPROC)load("glGetTextureParameterIiv"); - glad_glGetTextureParameterIuiv = (PFNGLGETTEXTUREPARAMETERIUIVPROC)load("glGetTextureParameterIuiv"); - glad_glGetTextureParameteriv = (PFNGLGETTEXTUREPARAMETERIVPROC)load("glGetTextureParameteriv"); - glad_glCreateVertexArrays = (PFNGLCREATEVERTEXARRAYSPROC)load("glCreateVertexArrays"); - glad_glDisableVertexArrayAttrib = (PFNGLDISABLEVERTEXARRAYATTRIBPROC)load("glDisableVertexArrayAttrib"); - glad_glEnableVertexArrayAttrib = (PFNGLENABLEVERTEXARRAYATTRIBPROC)load("glEnableVertexArrayAttrib"); - glad_glVertexArrayElementBuffer = (PFNGLVERTEXARRAYELEMENTBUFFERPROC)load("glVertexArrayElementBuffer"); - glad_glVertexArrayVertexBuffer = (PFNGLVERTEXARRAYVERTEXBUFFERPROC)load("glVertexArrayVertexBuffer"); - glad_glVertexArrayVertexBuffers = (PFNGLVERTEXARRAYVERTEXBUFFERSPROC)load("glVertexArrayVertexBuffers"); - glad_glVertexArrayAttribBinding = (PFNGLVERTEXARRAYATTRIBBINDINGPROC)load("glVertexArrayAttribBinding"); - glad_glVertexArrayAttribFormat = (PFNGLVERTEXARRAYATTRIBFORMATPROC)load("glVertexArrayAttribFormat"); - glad_glVertexArrayAttribIFormat = (PFNGLVERTEXARRAYATTRIBIFORMATPROC)load("glVertexArrayAttribIFormat"); - glad_glVertexArrayAttribLFormat = (PFNGLVERTEXARRAYATTRIBLFORMATPROC)load("glVertexArrayAttribLFormat"); - glad_glVertexArrayBindingDivisor = (PFNGLVERTEXARRAYBINDINGDIVISORPROC)load("glVertexArrayBindingDivisor"); - glad_glGetVertexArrayiv = (PFNGLGETVERTEXARRAYIVPROC)load("glGetVertexArrayiv"); - glad_glGetVertexArrayIndexediv = (PFNGLGETVERTEXARRAYINDEXEDIVPROC)load("glGetVertexArrayIndexediv"); - glad_glGetVertexArrayIndexed64iv = (PFNGLGETVERTEXARRAYINDEXED64IVPROC)load("glGetVertexArrayIndexed64iv"); - glad_glCreateSamplers = (PFNGLCREATESAMPLERSPROC)load("glCreateSamplers"); - glad_glCreateProgramPipelines = (PFNGLCREATEPROGRAMPIPELINESPROC)load("glCreateProgramPipelines"); - glad_glCreateQueries = (PFNGLCREATEQUERIESPROC)load("glCreateQueries"); - glad_glGetQueryBufferObjecti64v = (PFNGLGETQUERYBUFFEROBJECTI64VPROC)load("glGetQueryBufferObjecti64v"); - glad_glGetQueryBufferObjectiv = (PFNGLGETQUERYBUFFEROBJECTIVPROC)load("glGetQueryBufferObjectiv"); - glad_glGetQueryBufferObjectui64v = (PFNGLGETQUERYBUFFEROBJECTUI64VPROC)load("glGetQueryBufferObjectui64v"); - glad_glGetQueryBufferObjectuiv = (PFNGLGETQUERYBUFFEROBJECTUIVPROC)load("glGetQueryBufferObjectuiv"); - glad_glMemoryBarrierByRegion = (PFNGLMEMORYBARRIERBYREGIONPROC)load("glMemoryBarrierByRegion"); - glad_glGetTextureSubImage = (PFNGLGETTEXTURESUBIMAGEPROC)load("glGetTextureSubImage"); - glad_glGetCompressedTextureSubImage = (PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC)load("glGetCompressedTextureSubImage"); - glad_glGetGraphicsResetStatus = (PFNGLGETGRAPHICSRESETSTATUSPROC)load("glGetGraphicsResetStatus"); - glad_glGetnCompressedTexImage = (PFNGLGETNCOMPRESSEDTEXIMAGEPROC)load("glGetnCompressedTexImage"); - glad_glGetnTexImage = (PFNGLGETNTEXIMAGEPROC)load("glGetnTexImage"); - glad_glGetnUniformdv = (PFNGLGETNUNIFORMDVPROC)load("glGetnUniformdv"); - glad_glGetnUniformfv = (PFNGLGETNUNIFORMFVPROC)load("glGetnUniformfv"); - glad_glGetnUniformiv = (PFNGLGETNUNIFORMIVPROC)load("glGetnUniformiv"); - glad_glGetnUniformuiv = (PFNGLGETNUNIFORMUIVPROC)load("glGetnUniformuiv"); - glad_glReadnPixels = (PFNGLREADNPIXELSPROC)load("glReadnPixels"); - glad_glGetnMapdv = (PFNGLGETNMAPDVPROC)load("glGetnMapdv"); - glad_glGetnMapfv = (PFNGLGETNMAPFVPROC)load("glGetnMapfv"); - glad_glGetnMapiv = (PFNGLGETNMAPIVPROC)load("glGetnMapiv"); - glad_glGetnPixelMapfv = (PFNGLGETNPIXELMAPFVPROC)load("glGetnPixelMapfv"); - glad_glGetnPixelMapuiv = (PFNGLGETNPIXELMAPUIVPROC)load("glGetnPixelMapuiv"); - glad_glGetnPixelMapusv = (PFNGLGETNPIXELMAPUSVPROC)load("glGetnPixelMapusv"); - glad_glGetnPolygonStipple = (PFNGLGETNPOLYGONSTIPPLEPROC)load("glGetnPolygonStipple"); - glad_glGetnColorTable = (PFNGLGETNCOLORTABLEPROC)load("glGetnColorTable"); - glad_glGetnConvolutionFilter = (PFNGLGETNCONVOLUTIONFILTERPROC)load("glGetnConvolutionFilter"); - glad_glGetnSeparableFilter = (PFNGLGETNSEPARABLEFILTERPROC)load("glGetnSeparableFilter"); - glad_glGetnHistogram = (PFNGLGETNHISTOGRAMPROC)load("glGetnHistogram"); - glad_glGetnMinmax = (PFNGLGETNMINMAXPROC)load("glGetnMinmax"); - glad_glTextureBarrier = (PFNGLTEXTUREBARRIERPROC)load("glTextureBarrier"); -} -static void load_GL_VERSION_4_6(GLADloadproc load) { - if(!GLAD_GL_VERSION_4_6) return; - glad_glSpecializeShader = (PFNGLSPECIALIZESHADERPROC)load("glSpecializeShader"); - glad_glMultiDrawArraysIndirectCount = (PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC)load("glMultiDrawArraysIndirectCount"); - glad_glMultiDrawElementsIndirectCount = (PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC)load("glMultiDrawElementsIndirectCount"); - glad_glPolygonOffsetClamp = (PFNGLPOLYGONOFFSETCLAMPPROC)load("glPolygonOffsetClamp"); -} -static void load_GL_3DFX_tbuffer(GLADloadproc load) { - if(!GLAD_GL_3DFX_tbuffer) return; - glad_glTbufferMask3DFX = (PFNGLTBUFFERMASK3DFXPROC)load("glTbufferMask3DFX"); -} -static void load_GL_AMD_debug_output(GLADloadproc load) { - if(!GLAD_GL_AMD_debug_output) return; - glad_glDebugMessageEnableAMD = (PFNGLDEBUGMESSAGEENABLEAMDPROC)load("glDebugMessageEnableAMD"); - glad_glDebugMessageInsertAMD = (PFNGLDEBUGMESSAGEINSERTAMDPROC)load("glDebugMessageInsertAMD"); - glad_glDebugMessageCallbackAMD = (PFNGLDEBUGMESSAGECALLBACKAMDPROC)load("glDebugMessageCallbackAMD"); - glad_glGetDebugMessageLogAMD = (PFNGLGETDEBUGMESSAGELOGAMDPROC)load("glGetDebugMessageLogAMD"); -} -static void load_GL_AMD_draw_buffers_blend(GLADloadproc load) { - if(!GLAD_GL_AMD_draw_buffers_blend) return; - glad_glBlendFuncIndexedAMD = (PFNGLBLENDFUNCINDEXEDAMDPROC)load("glBlendFuncIndexedAMD"); - glad_glBlendFuncSeparateIndexedAMD = (PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC)load("glBlendFuncSeparateIndexedAMD"); - glad_glBlendEquationIndexedAMD = (PFNGLBLENDEQUATIONINDEXEDAMDPROC)load("glBlendEquationIndexedAMD"); - glad_glBlendEquationSeparateIndexedAMD = (PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC)load("glBlendEquationSeparateIndexedAMD"); -} -static void load_GL_AMD_framebuffer_sample_positions(GLADloadproc load) { - if(!GLAD_GL_AMD_framebuffer_sample_positions) return; - glad_glFramebufferSamplePositionsfvAMD = (PFNGLFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC)load("glFramebufferSamplePositionsfvAMD"); - glad_glNamedFramebufferSamplePositionsfvAMD = (PFNGLNAMEDFRAMEBUFFERSAMPLEPOSITIONSFVAMDPROC)load("glNamedFramebufferSamplePositionsfvAMD"); - glad_glGetFramebufferParameterfvAMD = (PFNGLGETFRAMEBUFFERPARAMETERFVAMDPROC)load("glGetFramebufferParameterfvAMD"); - glad_glGetNamedFramebufferParameterfvAMD = (PFNGLGETNAMEDFRAMEBUFFERPARAMETERFVAMDPROC)load("glGetNamedFramebufferParameterfvAMD"); -} -static void load_GL_AMD_gpu_shader_int64(GLADloadproc load) { - if(!GLAD_GL_AMD_gpu_shader_int64) return; - glad_glUniform1i64NV = (PFNGLUNIFORM1I64NVPROC)load("glUniform1i64NV"); - glad_glUniform2i64NV = (PFNGLUNIFORM2I64NVPROC)load("glUniform2i64NV"); - glad_glUniform3i64NV = (PFNGLUNIFORM3I64NVPROC)load("glUniform3i64NV"); - glad_glUniform4i64NV = (PFNGLUNIFORM4I64NVPROC)load("glUniform4i64NV"); - glad_glUniform1i64vNV = (PFNGLUNIFORM1I64VNVPROC)load("glUniform1i64vNV"); - glad_glUniform2i64vNV = (PFNGLUNIFORM2I64VNVPROC)load("glUniform2i64vNV"); - glad_glUniform3i64vNV = (PFNGLUNIFORM3I64VNVPROC)load("glUniform3i64vNV"); - glad_glUniform4i64vNV = (PFNGLUNIFORM4I64VNVPROC)load("glUniform4i64vNV"); - glad_glUniform1ui64NV = (PFNGLUNIFORM1UI64NVPROC)load("glUniform1ui64NV"); - glad_glUniform2ui64NV = (PFNGLUNIFORM2UI64NVPROC)load("glUniform2ui64NV"); - glad_glUniform3ui64NV = (PFNGLUNIFORM3UI64NVPROC)load("glUniform3ui64NV"); - glad_glUniform4ui64NV = (PFNGLUNIFORM4UI64NVPROC)load("glUniform4ui64NV"); - glad_glUniform1ui64vNV = (PFNGLUNIFORM1UI64VNVPROC)load("glUniform1ui64vNV"); - glad_glUniform2ui64vNV = (PFNGLUNIFORM2UI64VNVPROC)load("glUniform2ui64vNV"); - glad_glUniform3ui64vNV = (PFNGLUNIFORM3UI64VNVPROC)load("glUniform3ui64vNV"); - glad_glUniform4ui64vNV = (PFNGLUNIFORM4UI64VNVPROC)load("glUniform4ui64vNV"); - glad_glGetUniformi64vNV = (PFNGLGETUNIFORMI64VNVPROC)load("glGetUniformi64vNV"); - glad_glGetUniformui64vNV = (PFNGLGETUNIFORMUI64VNVPROC)load("glGetUniformui64vNV"); - glad_glProgramUniform1i64NV = (PFNGLPROGRAMUNIFORM1I64NVPROC)load("glProgramUniform1i64NV"); - glad_glProgramUniform2i64NV = (PFNGLPROGRAMUNIFORM2I64NVPROC)load("glProgramUniform2i64NV"); - glad_glProgramUniform3i64NV = (PFNGLPROGRAMUNIFORM3I64NVPROC)load("glProgramUniform3i64NV"); - glad_glProgramUniform4i64NV = (PFNGLPROGRAMUNIFORM4I64NVPROC)load("glProgramUniform4i64NV"); - glad_glProgramUniform1i64vNV = (PFNGLPROGRAMUNIFORM1I64VNVPROC)load("glProgramUniform1i64vNV"); - glad_glProgramUniform2i64vNV = (PFNGLPROGRAMUNIFORM2I64VNVPROC)load("glProgramUniform2i64vNV"); - glad_glProgramUniform3i64vNV = (PFNGLPROGRAMUNIFORM3I64VNVPROC)load("glProgramUniform3i64vNV"); - glad_glProgramUniform4i64vNV = (PFNGLPROGRAMUNIFORM4I64VNVPROC)load("glProgramUniform4i64vNV"); - glad_glProgramUniform1ui64NV = (PFNGLPROGRAMUNIFORM1UI64NVPROC)load("glProgramUniform1ui64NV"); - glad_glProgramUniform2ui64NV = (PFNGLPROGRAMUNIFORM2UI64NVPROC)load("glProgramUniform2ui64NV"); - glad_glProgramUniform3ui64NV = (PFNGLPROGRAMUNIFORM3UI64NVPROC)load("glProgramUniform3ui64NV"); - glad_glProgramUniform4ui64NV = (PFNGLPROGRAMUNIFORM4UI64NVPROC)load("glProgramUniform4ui64NV"); - glad_glProgramUniform1ui64vNV = (PFNGLPROGRAMUNIFORM1UI64VNVPROC)load("glProgramUniform1ui64vNV"); - glad_glProgramUniform2ui64vNV = (PFNGLPROGRAMUNIFORM2UI64VNVPROC)load("glProgramUniform2ui64vNV"); - glad_glProgramUniform3ui64vNV = (PFNGLPROGRAMUNIFORM3UI64VNVPROC)load("glProgramUniform3ui64vNV"); - glad_glProgramUniform4ui64vNV = (PFNGLPROGRAMUNIFORM4UI64VNVPROC)load("glProgramUniform4ui64vNV"); -} -static void load_GL_AMD_interleaved_elements(GLADloadproc load) { - if(!GLAD_GL_AMD_interleaved_elements) return; - glad_glVertexAttribParameteriAMD = (PFNGLVERTEXATTRIBPARAMETERIAMDPROC)load("glVertexAttribParameteriAMD"); -} -static void load_GL_AMD_multi_draw_indirect(GLADloadproc load) { - if(!GLAD_GL_AMD_multi_draw_indirect) return; - glad_glMultiDrawArraysIndirectAMD = (PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC)load("glMultiDrawArraysIndirectAMD"); - glad_glMultiDrawElementsIndirectAMD = (PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC)load("glMultiDrawElementsIndirectAMD"); -} -static void load_GL_AMD_name_gen_delete(GLADloadproc load) { - if(!GLAD_GL_AMD_name_gen_delete) return; - glad_glGenNamesAMD = (PFNGLGENNAMESAMDPROC)load("glGenNamesAMD"); - glad_glDeleteNamesAMD = (PFNGLDELETENAMESAMDPROC)load("glDeleteNamesAMD"); - glad_glIsNameAMD = (PFNGLISNAMEAMDPROC)load("glIsNameAMD"); -} -static void load_GL_AMD_occlusion_query_event(GLADloadproc load) { - if(!GLAD_GL_AMD_occlusion_query_event) return; - glad_glQueryObjectParameteruiAMD = (PFNGLQUERYOBJECTPARAMETERUIAMDPROC)load("glQueryObjectParameteruiAMD"); -} -static void load_GL_AMD_performance_monitor(GLADloadproc load) { - if(!GLAD_GL_AMD_performance_monitor) return; - glad_glGetPerfMonitorGroupsAMD = (PFNGLGETPERFMONITORGROUPSAMDPROC)load("glGetPerfMonitorGroupsAMD"); - glad_glGetPerfMonitorCountersAMD = (PFNGLGETPERFMONITORCOUNTERSAMDPROC)load("glGetPerfMonitorCountersAMD"); - glad_glGetPerfMonitorGroupStringAMD = (PFNGLGETPERFMONITORGROUPSTRINGAMDPROC)load("glGetPerfMonitorGroupStringAMD"); - glad_glGetPerfMonitorCounterStringAMD = (PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC)load("glGetPerfMonitorCounterStringAMD"); - glad_glGetPerfMonitorCounterInfoAMD = (PFNGLGETPERFMONITORCOUNTERINFOAMDPROC)load("glGetPerfMonitorCounterInfoAMD"); - glad_glGenPerfMonitorsAMD = (PFNGLGENPERFMONITORSAMDPROC)load("glGenPerfMonitorsAMD"); - glad_glDeletePerfMonitorsAMD = (PFNGLDELETEPERFMONITORSAMDPROC)load("glDeletePerfMonitorsAMD"); - glad_glSelectPerfMonitorCountersAMD = (PFNGLSELECTPERFMONITORCOUNTERSAMDPROC)load("glSelectPerfMonitorCountersAMD"); - glad_glBeginPerfMonitorAMD = (PFNGLBEGINPERFMONITORAMDPROC)load("glBeginPerfMonitorAMD"); - glad_glEndPerfMonitorAMD = (PFNGLENDPERFMONITORAMDPROC)load("glEndPerfMonitorAMD"); - glad_glGetPerfMonitorCounterDataAMD = (PFNGLGETPERFMONITORCOUNTERDATAAMDPROC)load("glGetPerfMonitorCounterDataAMD"); -} -static void load_GL_AMD_sample_positions(GLADloadproc load) { - if(!GLAD_GL_AMD_sample_positions) return; - glad_glSetMultisamplefvAMD = (PFNGLSETMULTISAMPLEFVAMDPROC)load("glSetMultisamplefvAMD"); -} -static void load_GL_AMD_sparse_texture(GLADloadproc load) { - if(!GLAD_GL_AMD_sparse_texture) return; - glad_glTexStorageSparseAMD = (PFNGLTEXSTORAGESPARSEAMDPROC)load("glTexStorageSparseAMD"); - glad_glTextureStorageSparseAMD = (PFNGLTEXTURESTORAGESPARSEAMDPROC)load("glTextureStorageSparseAMD"); -} -static void load_GL_AMD_stencil_operation_extended(GLADloadproc load) { - if(!GLAD_GL_AMD_stencil_operation_extended) return; - glad_glStencilOpValueAMD = (PFNGLSTENCILOPVALUEAMDPROC)load("glStencilOpValueAMD"); -} -static void load_GL_AMD_vertex_shader_tessellator(GLADloadproc load) { - if(!GLAD_GL_AMD_vertex_shader_tessellator) return; - glad_glTessellationFactorAMD = (PFNGLTESSELLATIONFACTORAMDPROC)load("glTessellationFactorAMD"); - glad_glTessellationModeAMD = (PFNGLTESSELLATIONMODEAMDPROC)load("glTessellationModeAMD"); -} -static void load_GL_APPLE_element_array(GLADloadproc load) { - if(!GLAD_GL_APPLE_element_array) return; - glad_glElementPointerAPPLE = (PFNGLELEMENTPOINTERAPPLEPROC)load("glElementPointerAPPLE"); - glad_glDrawElementArrayAPPLE = (PFNGLDRAWELEMENTARRAYAPPLEPROC)load("glDrawElementArrayAPPLE"); - glad_glDrawRangeElementArrayAPPLE = (PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC)load("glDrawRangeElementArrayAPPLE"); - glad_glMultiDrawElementArrayAPPLE = (PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC)load("glMultiDrawElementArrayAPPLE"); - glad_glMultiDrawRangeElementArrayAPPLE = (PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC)load("glMultiDrawRangeElementArrayAPPLE"); -} -static void load_GL_APPLE_fence(GLADloadproc load) { - if(!GLAD_GL_APPLE_fence) return; - glad_glGenFencesAPPLE = (PFNGLGENFENCESAPPLEPROC)load("glGenFencesAPPLE"); - glad_glDeleteFencesAPPLE = (PFNGLDELETEFENCESAPPLEPROC)load("glDeleteFencesAPPLE"); - glad_glSetFenceAPPLE = (PFNGLSETFENCEAPPLEPROC)load("glSetFenceAPPLE"); - glad_glIsFenceAPPLE = (PFNGLISFENCEAPPLEPROC)load("glIsFenceAPPLE"); - glad_glTestFenceAPPLE = (PFNGLTESTFENCEAPPLEPROC)load("glTestFenceAPPLE"); - glad_glFinishFenceAPPLE = (PFNGLFINISHFENCEAPPLEPROC)load("glFinishFenceAPPLE"); - glad_glTestObjectAPPLE = (PFNGLTESTOBJECTAPPLEPROC)load("glTestObjectAPPLE"); - glad_glFinishObjectAPPLE = (PFNGLFINISHOBJECTAPPLEPROC)load("glFinishObjectAPPLE"); -} -static void load_GL_APPLE_flush_buffer_range(GLADloadproc load) { - if(!GLAD_GL_APPLE_flush_buffer_range) return; - glad_glBufferParameteriAPPLE = (PFNGLBUFFERPARAMETERIAPPLEPROC)load("glBufferParameteriAPPLE"); - glad_glFlushMappedBufferRangeAPPLE = (PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC)load("glFlushMappedBufferRangeAPPLE"); -} -static void load_GL_APPLE_object_purgeable(GLADloadproc load) { - if(!GLAD_GL_APPLE_object_purgeable) return; - glad_glObjectPurgeableAPPLE = (PFNGLOBJECTPURGEABLEAPPLEPROC)load("glObjectPurgeableAPPLE"); - glad_glObjectUnpurgeableAPPLE = (PFNGLOBJECTUNPURGEABLEAPPLEPROC)load("glObjectUnpurgeableAPPLE"); - glad_glGetObjectParameterivAPPLE = (PFNGLGETOBJECTPARAMETERIVAPPLEPROC)load("glGetObjectParameterivAPPLE"); -} -static void load_GL_APPLE_texture_range(GLADloadproc load) { - if(!GLAD_GL_APPLE_texture_range) return; - glad_glTextureRangeAPPLE = (PFNGLTEXTURERANGEAPPLEPROC)load("glTextureRangeAPPLE"); - glad_glGetTexParameterPointervAPPLE = (PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC)load("glGetTexParameterPointervAPPLE"); -} -static void load_GL_APPLE_vertex_array_object(GLADloadproc load) { - if(!GLAD_GL_APPLE_vertex_array_object) return; - glad_glBindVertexArrayAPPLE = (PFNGLBINDVERTEXARRAYAPPLEPROC)load("glBindVertexArrayAPPLE"); - glad_glDeleteVertexArraysAPPLE = (PFNGLDELETEVERTEXARRAYSAPPLEPROC)load("glDeleteVertexArraysAPPLE"); - glad_glGenVertexArraysAPPLE = (PFNGLGENVERTEXARRAYSAPPLEPROC)load("glGenVertexArraysAPPLE"); - glad_glIsVertexArrayAPPLE = (PFNGLISVERTEXARRAYAPPLEPROC)load("glIsVertexArrayAPPLE"); -} -static void load_GL_APPLE_vertex_array_range(GLADloadproc load) { - if(!GLAD_GL_APPLE_vertex_array_range) return; - glad_glVertexArrayRangeAPPLE = (PFNGLVERTEXARRAYRANGEAPPLEPROC)load("glVertexArrayRangeAPPLE"); - glad_glFlushVertexArrayRangeAPPLE = (PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC)load("glFlushVertexArrayRangeAPPLE"); - glad_glVertexArrayParameteriAPPLE = (PFNGLVERTEXARRAYPARAMETERIAPPLEPROC)load("glVertexArrayParameteriAPPLE"); -} -static void load_GL_APPLE_vertex_program_evaluators(GLADloadproc load) { - if(!GLAD_GL_APPLE_vertex_program_evaluators) return; - glad_glEnableVertexAttribAPPLE = (PFNGLENABLEVERTEXATTRIBAPPLEPROC)load("glEnableVertexAttribAPPLE"); - glad_glDisableVertexAttribAPPLE = (PFNGLDISABLEVERTEXATTRIBAPPLEPROC)load("glDisableVertexAttribAPPLE"); - glad_glIsVertexAttribEnabledAPPLE = (PFNGLISVERTEXATTRIBENABLEDAPPLEPROC)load("glIsVertexAttribEnabledAPPLE"); - glad_glMapVertexAttrib1dAPPLE = (PFNGLMAPVERTEXATTRIB1DAPPLEPROC)load("glMapVertexAttrib1dAPPLE"); - glad_glMapVertexAttrib1fAPPLE = (PFNGLMAPVERTEXATTRIB1FAPPLEPROC)load("glMapVertexAttrib1fAPPLE"); - glad_glMapVertexAttrib2dAPPLE = (PFNGLMAPVERTEXATTRIB2DAPPLEPROC)load("glMapVertexAttrib2dAPPLE"); - glad_glMapVertexAttrib2fAPPLE = (PFNGLMAPVERTEXATTRIB2FAPPLEPROC)load("glMapVertexAttrib2fAPPLE"); -} -static void load_GL_ARB_ES2_compatibility(GLADloadproc load) { - if(!GLAD_GL_ARB_ES2_compatibility) return; - glad_glReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC)load("glReleaseShaderCompiler"); - glad_glShaderBinary = (PFNGLSHADERBINARYPROC)load("glShaderBinary"); - glad_glGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC)load("glGetShaderPrecisionFormat"); - glad_glDepthRangef = (PFNGLDEPTHRANGEFPROC)load("glDepthRangef"); - glad_glClearDepthf = (PFNGLCLEARDEPTHFPROC)load("glClearDepthf"); -} -static void load_GL_ARB_ES3_1_compatibility(GLADloadproc load) { - if(!GLAD_GL_ARB_ES3_1_compatibility) return; - glad_glMemoryBarrierByRegion = (PFNGLMEMORYBARRIERBYREGIONPROC)load("glMemoryBarrierByRegion"); -} -static void load_GL_ARB_ES3_2_compatibility(GLADloadproc load) { - if(!GLAD_GL_ARB_ES3_2_compatibility) return; - glad_glPrimitiveBoundingBoxARB = (PFNGLPRIMITIVEBOUNDINGBOXARBPROC)load("glPrimitiveBoundingBoxARB"); -} -static void load_GL_ARB_base_instance(GLADloadproc load) { - if(!GLAD_GL_ARB_base_instance) return; - glad_glDrawArraysInstancedBaseInstance = (PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC)load("glDrawArraysInstancedBaseInstance"); - glad_glDrawElementsInstancedBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC)load("glDrawElementsInstancedBaseInstance"); - glad_glDrawElementsInstancedBaseVertexBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC)load("glDrawElementsInstancedBaseVertexBaseInstance"); -} -static void load_GL_ARB_bindless_texture(GLADloadproc load) { - if(!GLAD_GL_ARB_bindless_texture) return; - glad_glGetTextureHandleARB = (PFNGLGETTEXTUREHANDLEARBPROC)load("glGetTextureHandleARB"); - glad_glGetTextureSamplerHandleARB = (PFNGLGETTEXTURESAMPLERHANDLEARBPROC)load("glGetTextureSamplerHandleARB"); - glad_glMakeTextureHandleResidentARB = (PFNGLMAKETEXTUREHANDLERESIDENTARBPROC)load("glMakeTextureHandleResidentARB"); - glad_glMakeTextureHandleNonResidentARB = (PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC)load("glMakeTextureHandleNonResidentARB"); - glad_glGetImageHandleARB = (PFNGLGETIMAGEHANDLEARBPROC)load("glGetImageHandleARB"); - glad_glMakeImageHandleResidentARB = (PFNGLMAKEIMAGEHANDLERESIDENTARBPROC)load("glMakeImageHandleResidentARB"); - glad_glMakeImageHandleNonResidentARB = (PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC)load("glMakeImageHandleNonResidentARB"); - glad_glUniformHandleui64ARB = (PFNGLUNIFORMHANDLEUI64ARBPROC)load("glUniformHandleui64ARB"); - glad_glUniformHandleui64vARB = (PFNGLUNIFORMHANDLEUI64VARBPROC)load("glUniformHandleui64vARB"); - glad_glProgramUniformHandleui64ARB = (PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC)load("glProgramUniformHandleui64ARB"); - glad_glProgramUniformHandleui64vARB = (PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC)load("glProgramUniformHandleui64vARB"); - glad_glIsTextureHandleResidentARB = (PFNGLISTEXTUREHANDLERESIDENTARBPROC)load("glIsTextureHandleResidentARB"); - glad_glIsImageHandleResidentARB = (PFNGLISIMAGEHANDLERESIDENTARBPROC)load("glIsImageHandleResidentARB"); - glad_glVertexAttribL1ui64ARB = (PFNGLVERTEXATTRIBL1UI64ARBPROC)load("glVertexAttribL1ui64ARB"); - glad_glVertexAttribL1ui64vARB = (PFNGLVERTEXATTRIBL1UI64VARBPROC)load("glVertexAttribL1ui64vARB"); - glad_glGetVertexAttribLui64vARB = (PFNGLGETVERTEXATTRIBLUI64VARBPROC)load("glGetVertexAttribLui64vARB"); -} -static void load_GL_ARB_blend_func_extended(GLADloadproc load) { - if(!GLAD_GL_ARB_blend_func_extended) return; - glad_glBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC)load("glBindFragDataLocationIndexed"); - glad_glGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC)load("glGetFragDataIndex"); -} -static void load_GL_ARB_buffer_storage(GLADloadproc load) { - if(!GLAD_GL_ARB_buffer_storage) return; - glad_glBufferStorage = (PFNGLBUFFERSTORAGEPROC)load("glBufferStorage"); -} -static void load_GL_ARB_cl_event(GLADloadproc load) { - if(!GLAD_GL_ARB_cl_event) return; - glad_glCreateSyncFromCLeventARB = (PFNGLCREATESYNCFROMCLEVENTARBPROC)load("glCreateSyncFromCLeventARB"); -} -static void load_GL_ARB_clear_buffer_object(GLADloadproc load) { - if(!GLAD_GL_ARB_clear_buffer_object) return; - glad_glClearBufferData = (PFNGLCLEARBUFFERDATAPROC)load("glClearBufferData"); - glad_glClearBufferSubData = (PFNGLCLEARBUFFERSUBDATAPROC)load("glClearBufferSubData"); -} -static void load_GL_ARB_clear_texture(GLADloadproc load) { - if(!GLAD_GL_ARB_clear_texture) return; - glad_glClearTexImage = (PFNGLCLEARTEXIMAGEPROC)load("glClearTexImage"); - glad_glClearTexSubImage = (PFNGLCLEARTEXSUBIMAGEPROC)load("glClearTexSubImage"); -} -static void load_GL_ARB_clip_control(GLADloadproc load) { - if(!GLAD_GL_ARB_clip_control) return; - glad_glClipControl = (PFNGLCLIPCONTROLPROC)load("glClipControl"); -} -static void load_GL_ARB_color_buffer_float(GLADloadproc load) { - if(!GLAD_GL_ARB_color_buffer_float) return; - glad_glClampColorARB = (PFNGLCLAMPCOLORARBPROC)load("glClampColorARB"); -} -static void load_GL_ARB_compute_shader(GLADloadproc load) { - if(!GLAD_GL_ARB_compute_shader) return; - glad_glDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC)load("glDispatchCompute"); - glad_glDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC)load("glDispatchComputeIndirect"); -} -static void load_GL_ARB_compute_variable_group_size(GLADloadproc load) { - if(!GLAD_GL_ARB_compute_variable_group_size) return; - glad_glDispatchComputeGroupSizeARB = (PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC)load("glDispatchComputeGroupSizeARB"); -} -static void load_GL_ARB_copy_buffer(GLADloadproc load) { - if(!GLAD_GL_ARB_copy_buffer) return; - glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)load("glCopyBufferSubData"); -} -static void load_GL_ARB_copy_image(GLADloadproc load) { - if(!GLAD_GL_ARB_copy_image) return; - glad_glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)load("glCopyImageSubData"); -} -static void load_GL_ARB_debug_output(GLADloadproc load) { - if(!GLAD_GL_ARB_debug_output) return; - glad_glDebugMessageControlARB = (PFNGLDEBUGMESSAGECONTROLARBPROC)load("glDebugMessageControlARB"); - glad_glDebugMessageInsertARB = (PFNGLDEBUGMESSAGEINSERTARBPROC)load("glDebugMessageInsertARB"); - glad_glDebugMessageCallbackARB = (PFNGLDEBUGMESSAGECALLBACKARBPROC)load("glDebugMessageCallbackARB"); - glad_glGetDebugMessageLogARB = (PFNGLGETDEBUGMESSAGELOGARBPROC)load("glGetDebugMessageLogARB"); -} -static void load_GL_ARB_direct_state_access(GLADloadproc load) { - if(!GLAD_GL_ARB_direct_state_access) return; - glad_glCreateTransformFeedbacks = (PFNGLCREATETRANSFORMFEEDBACKSPROC)load("glCreateTransformFeedbacks"); - glad_glTransformFeedbackBufferBase = (PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC)load("glTransformFeedbackBufferBase"); - glad_glTransformFeedbackBufferRange = (PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC)load("glTransformFeedbackBufferRange"); - glad_glGetTransformFeedbackiv = (PFNGLGETTRANSFORMFEEDBACKIVPROC)load("glGetTransformFeedbackiv"); - glad_glGetTransformFeedbacki_v = (PFNGLGETTRANSFORMFEEDBACKI_VPROC)load("glGetTransformFeedbacki_v"); - glad_glGetTransformFeedbacki64_v = (PFNGLGETTRANSFORMFEEDBACKI64_VPROC)load("glGetTransformFeedbacki64_v"); - glad_glCreateBuffers = (PFNGLCREATEBUFFERSPROC)load("glCreateBuffers"); - glad_glNamedBufferStorage = (PFNGLNAMEDBUFFERSTORAGEPROC)load("glNamedBufferStorage"); - glad_glNamedBufferData = (PFNGLNAMEDBUFFERDATAPROC)load("glNamedBufferData"); - glad_glNamedBufferSubData = (PFNGLNAMEDBUFFERSUBDATAPROC)load("glNamedBufferSubData"); - glad_glCopyNamedBufferSubData = (PFNGLCOPYNAMEDBUFFERSUBDATAPROC)load("glCopyNamedBufferSubData"); - glad_glClearNamedBufferData = (PFNGLCLEARNAMEDBUFFERDATAPROC)load("glClearNamedBufferData"); - glad_glClearNamedBufferSubData = (PFNGLCLEARNAMEDBUFFERSUBDATAPROC)load("glClearNamedBufferSubData"); - glad_glMapNamedBuffer = (PFNGLMAPNAMEDBUFFERPROC)load("glMapNamedBuffer"); - glad_glMapNamedBufferRange = (PFNGLMAPNAMEDBUFFERRANGEPROC)load("glMapNamedBufferRange"); - glad_glUnmapNamedBuffer = (PFNGLUNMAPNAMEDBUFFERPROC)load("glUnmapNamedBuffer"); - glad_glFlushMappedNamedBufferRange = (PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC)load("glFlushMappedNamedBufferRange"); - glad_glGetNamedBufferParameteriv = (PFNGLGETNAMEDBUFFERPARAMETERIVPROC)load("glGetNamedBufferParameteriv"); - glad_glGetNamedBufferParameteri64v = (PFNGLGETNAMEDBUFFERPARAMETERI64VPROC)load("glGetNamedBufferParameteri64v"); - glad_glGetNamedBufferPointerv = (PFNGLGETNAMEDBUFFERPOINTERVPROC)load("glGetNamedBufferPointerv"); - glad_glGetNamedBufferSubData = (PFNGLGETNAMEDBUFFERSUBDATAPROC)load("glGetNamedBufferSubData"); - glad_glCreateFramebuffers = (PFNGLCREATEFRAMEBUFFERSPROC)load("glCreateFramebuffers"); - glad_glNamedFramebufferRenderbuffer = (PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC)load("glNamedFramebufferRenderbuffer"); - glad_glNamedFramebufferParameteri = (PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC)load("glNamedFramebufferParameteri"); - glad_glNamedFramebufferTexture = (PFNGLNAMEDFRAMEBUFFERTEXTUREPROC)load("glNamedFramebufferTexture"); - glad_glNamedFramebufferTextureLayer = (PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC)load("glNamedFramebufferTextureLayer"); - glad_glNamedFramebufferDrawBuffer = (PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC)load("glNamedFramebufferDrawBuffer"); - glad_glNamedFramebufferDrawBuffers = (PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC)load("glNamedFramebufferDrawBuffers"); - glad_glNamedFramebufferReadBuffer = (PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC)load("glNamedFramebufferReadBuffer"); - glad_glInvalidateNamedFramebufferData = (PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC)load("glInvalidateNamedFramebufferData"); - glad_glInvalidateNamedFramebufferSubData = (PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC)load("glInvalidateNamedFramebufferSubData"); - glad_glClearNamedFramebufferiv = (PFNGLCLEARNAMEDFRAMEBUFFERIVPROC)load("glClearNamedFramebufferiv"); - glad_glClearNamedFramebufferuiv = (PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC)load("glClearNamedFramebufferuiv"); - glad_glClearNamedFramebufferfv = (PFNGLCLEARNAMEDFRAMEBUFFERFVPROC)load("glClearNamedFramebufferfv"); - glad_glClearNamedFramebufferfi = (PFNGLCLEARNAMEDFRAMEBUFFERFIPROC)load("glClearNamedFramebufferfi"); - glad_glBlitNamedFramebuffer = (PFNGLBLITNAMEDFRAMEBUFFERPROC)load("glBlitNamedFramebuffer"); - glad_glCheckNamedFramebufferStatus = (PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC)load("glCheckNamedFramebufferStatus"); - glad_glGetNamedFramebufferParameteriv = (PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC)load("glGetNamedFramebufferParameteriv"); - glad_glGetNamedFramebufferAttachmentParameteriv = (PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetNamedFramebufferAttachmentParameteriv"); - glad_glCreateRenderbuffers = (PFNGLCREATERENDERBUFFERSPROC)load("glCreateRenderbuffers"); - glad_glNamedRenderbufferStorage = (PFNGLNAMEDRENDERBUFFERSTORAGEPROC)load("glNamedRenderbufferStorage"); - glad_glNamedRenderbufferStorageMultisample = (PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glNamedRenderbufferStorageMultisample"); - glad_glGetNamedRenderbufferParameteriv = (PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC)load("glGetNamedRenderbufferParameteriv"); - glad_glCreateTextures = (PFNGLCREATETEXTURESPROC)load("glCreateTextures"); - glad_glTextureBuffer = (PFNGLTEXTUREBUFFERPROC)load("glTextureBuffer"); - glad_glTextureBufferRange = (PFNGLTEXTUREBUFFERRANGEPROC)load("glTextureBufferRange"); - glad_glTextureStorage1D = (PFNGLTEXTURESTORAGE1DPROC)load("glTextureStorage1D"); - glad_glTextureStorage2D = (PFNGLTEXTURESTORAGE2DPROC)load("glTextureStorage2D"); - glad_glTextureStorage3D = (PFNGLTEXTURESTORAGE3DPROC)load("glTextureStorage3D"); - glad_glTextureStorage2DMultisample = (PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC)load("glTextureStorage2DMultisample"); - glad_glTextureStorage3DMultisample = (PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC)load("glTextureStorage3DMultisample"); - glad_glTextureSubImage1D = (PFNGLTEXTURESUBIMAGE1DPROC)load("glTextureSubImage1D"); - glad_glTextureSubImage2D = (PFNGLTEXTURESUBIMAGE2DPROC)load("glTextureSubImage2D"); - glad_glTextureSubImage3D = (PFNGLTEXTURESUBIMAGE3DPROC)load("glTextureSubImage3D"); - glad_glCompressedTextureSubImage1D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC)load("glCompressedTextureSubImage1D"); - glad_glCompressedTextureSubImage2D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC)load("glCompressedTextureSubImage2D"); - glad_glCompressedTextureSubImage3D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC)load("glCompressedTextureSubImage3D"); - glad_glCopyTextureSubImage1D = (PFNGLCOPYTEXTURESUBIMAGE1DPROC)load("glCopyTextureSubImage1D"); - glad_glCopyTextureSubImage2D = (PFNGLCOPYTEXTURESUBIMAGE2DPROC)load("glCopyTextureSubImage2D"); - glad_glCopyTextureSubImage3D = (PFNGLCOPYTEXTURESUBIMAGE3DPROC)load("glCopyTextureSubImage3D"); - glad_glTextureParameterf = (PFNGLTEXTUREPARAMETERFPROC)load("glTextureParameterf"); - glad_glTextureParameterfv = (PFNGLTEXTUREPARAMETERFVPROC)load("glTextureParameterfv"); - glad_glTextureParameteri = (PFNGLTEXTUREPARAMETERIPROC)load("glTextureParameteri"); - glad_glTextureParameterIiv = (PFNGLTEXTUREPARAMETERIIVPROC)load("glTextureParameterIiv"); - glad_glTextureParameterIuiv = (PFNGLTEXTUREPARAMETERIUIVPROC)load("glTextureParameterIuiv"); - glad_glTextureParameteriv = (PFNGLTEXTUREPARAMETERIVPROC)load("glTextureParameteriv"); - glad_glGenerateTextureMipmap = (PFNGLGENERATETEXTUREMIPMAPPROC)load("glGenerateTextureMipmap"); - glad_glBindTextureUnit = (PFNGLBINDTEXTUREUNITPROC)load("glBindTextureUnit"); - glad_glGetTextureImage = (PFNGLGETTEXTUREIMAGEPROC)load("glGetTextureImage"); - glad_glGetCompressedTextureImage = (PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC)load("glGetCompressedTextureImage"); - glad_glGetTextureLevelParameterfv = (PFNGLGETTEXTURELEVELPARAMETERFVPROC)load("glGetTextureLevelParameterfv"); - glad_glGetTextureLevelParameteriv = (PFNGLGETTEXTURELEVELPARAMETERIVPROC)load("glGetTextureLevelParameteriv"); - glad_glGetTextureParameterfv = (PFNGLGETTEXTUREPARAMETERFVPROC)load("glGetTextureParameterfv"); - glad_glGetTextureParameterIiv = (PFNGLGETTEXTUREPARAMETERIIVPROC)load("glGetTextureParameterIiv"); - glad_glGetTextureParameterIuiv = (PFNGLGETTEXTUREPARAMETERIUIVPROC)load("glGetTextureParameterIuiv"); - glad_glGetTextureParameteriv = (PFNGLGETTEXTUREPARAMETERIVPROC)load("glGetTextureParameteriv"); - glad_glCreateVertexArrays = (PFNGLCREATEVERTEXARRAYSPROC)load("glCreateVertexArrays"); - glad_glDisableVertexArrayAttrib = (PFNGLDISABLEVERTEXARRAYATTRIBPROC)load("glDisableVertexArrayAttrib"); - glad_glEnableVertexArrayAttrib = (PFNGLENABLEVERTEXARRAYATTRIBPROC)load("glEnableVertexArrayAttrib"); - glad_glVertexArrayElementBuffer = (PFNGLVERTEXARRAYELEMENTBUFFERPROC)load("glVertexArrayElementBuffer"); - glad_glVertexArrayVertexBuffer = (PFNGLVERTEXARRAYVERTEXBUFFERPROC)load("glVertexArrayVertexBuffer"); - glad_glVertexArrayVertexBuffers = (PFNGLVERTEXARRAYVERTEXBUFFERSPROC)load("glVertexArrayVertexBuffers"); - glad_glVertexArrayAttribBinding = (PFNGLVERTEXARRAYATTRIBBINDINGPROC)load("glVertexArrayAttribBinding"); - glad_glVertexArrayAttribFormat = (PFNGLVERTEXARRAYATTRIBFORMATPROC)load("glVertexArrayAttribFormat"); - glad_glVertexArrayAttribIFormat = (PFNGLVERTEXARRAYATTRIBIFORMATPROC)load("glVertexArrayAttribIFormat"); - glad_glVertexArrayAttribLFormat = (PFNGLVERTEXARRAYATTRIBLFORMATPROC)load("glVertexArrayAttribLFormat"); - glad_glVertexArrayBindingDivisor = (PFNGLVERTEXARRAYBINDINGDIVISORPROC)load("glVertexArrayBindingDivisor"); - glad_glGetVertexArrayiv = (PFNGLGETVERTEXARRAYIVPROC)load("glGetVertexArrayiv"); - glad_glGetVertexArrayIndexediv = (PFNGLGETVERTEXARRAYINDEXEDIVPROC)load("glGetVertexArrayIndexediv"); - glad_glGetVertexArrayIndexed64iv = (PFNGLGETVERTEXARRAYINDEXED64IVPROC)load("glGetVertexArrayIndexed64iv"); - glad_glCreateSamplers = (PFNGLCREATESAMPLERSPROC)load("glCreateSamplers"); - glad_glCreateProgramPipelines = (PFNGLCREATEPROGRAMPIPELINESPROC)load("glCreateProgramPipelines"); - glad_glCreateQueries = (PFNGLCREATEQUERIESPROC)load("glCreateQueries"); - glad_glGetQueryBufferObjecti64v = (PFNGLGETQUERYBUFFEROBJECTI64VPROC)load("glGetQueryBufferObjecti64v"); - glad_glGetQueryBufferObjectiv = (PFNGLGETQUERYBUFFEROBJECTIVPROC)load("glGetQueryBufferObjectiv"); - glad_glGetQueryBufferObjectui64v = (PFNGLGETQUERYBUFFEROBJECTUI64VPROC)load("glGetQueryBufferObjectui64v"); - glad_glGetQueryBufferObjectuiv = (PFNGLGETQUERYBUFFEROBJECTUIVPROC)load("glGetQueryBufferObjectuiv"); -} -static void load_GL_ARB_draw_buffers(GLADloadproc load) { - if(!GLAD_GL_ARB_draw_buffers) return; - glad_glDrawBuffersARB = (PFNGLDRAWBUFFERSARBPROC)load("glDrawBuffersARB"); -} -static void load_GL_ARB_draw_buffers_blend(GLADloadproc load) { - if(!GLAD_GL_ARB_draw_buffers_blend) return; - glad_glBlendEquationiARB = (PFNGLBLENDEQUATIONIARBPROC)load("glBlendEquationiARB"); - glad_glBlendEquationSeparateiARB = (PFNGLBLENDEQUATIONSEPARATEIARBPROC)load("glBlendEquationSeparateiARB"); - glad_glBlendFunciARB = (PFNGLBLENDFUNCIARBPROC)load("glBlendFunciARB"); - glad_glBlendFuncSeparateiARB = (PFNGLBLENDFUNCSEPARATEIARBPROC)load("glBlendFuncSeparateiARB"); -} -static void load_GL_ARB_draw_elements_base_vertex(GLADloadproc load) { - if(!GLAD_GL_ARB_draw_elements_base_vertex) return; - glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)load("glDrawElementsBaseVertex"); - glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)load("glDrawRangeElementsBaseVertex"); - glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)load("glDrawElementsInstancedBaseVertex"); - glad_glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)load("glMultiDrawElementsBaseVertex"); -} -static void load_GL_ARB_draw_indirect(GLADloadproc load) { - if(!GLAD_GL_ARB_draw_indirect) return; - glad_glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC)load("glDrawArraysIndirect"); - glad_glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC)load("glDrawElementsIndirect"); -} -static void load_GL_ARB_draw_instanced(GLADloadproc load) { - if(!GLAD_GL_ARB_draw_instanced) return; - glad_glDrawArraysInstancedARB = (PFNGLDRAWARRAYSINSTANCEDARBPROC)load("glDrawArraysInstancedARB"); - glad_glDrawElementsInstancedARB = (PFNGLDRAWELEMENTSINSTANCEDARBPROC)load("glDrawElementsInstancedARB"); -} -static void load_GL_ARB_fragment_program(GLADloadproc load) { - if(!GLAD_GL_ARB_fragment_program) return; - glad_glProgramStringARB = (PFNGLPROGRAMSTRINGARBPROC)load("glProgramStringARB"); - glad_glBindProgramARB = (PFNGLBINDPROGRAMARBPROC)load("glBindProgramARB"); - glad_glDeleteProgramsARB = (PFNGLDELETEPROGRAMSARBPROC)load("glDeleteProgramsARB"); - glad_glGenProgramsARB = (PFNGLGENPROGRAMSARBPROC)load("glGenProgramsARB"); - glad_glProgramEnvParameter4dARB = (PFNGLPROGRAMENVPARAMETER4DARBPROC)load("glProgramEnvParameter4dARB"); - glad_glProgramEnvParameter4dvARB = (PFNGLPROGRAMENVPARAMETER4DVARBPROC)load("glProgramEnvParameter4dvARB"); - glad_glProgramEnvParameter4fARB = (PFNGLPROGRAMENVPARAMETER4FARBPROC)load("glProgramEnvParameter4fARB"); - glad_glProgramEnvParameter4fvARB = (PFNGLPROGRAMENVPARAMETER4FVARBPROC)load("glProgramEnvParameter4fvARB"); - glad_glProgramLocalParameter4dARB = (PFNGLPROGRAMLOCALPARAMETER4DARBPROC)load("glProgramLocalParameter4dARB"); - glad_glProgramLocalParameter4dvARB = (PFNGLPROGRAMLOCALPARAMETER4DVARBPROC)load("glProgramLocalParameter4dvARB"); - glad_glProgramLocalParameter4fARB = (PFNGLPROGRAMLOCALPARAMETER4FARBPROC)load("glProgramLocalParameter4fARB"); - glad_glProgramLocalParameter4fvARB = (PFNGLPROGRAMLOCALPARAMETER4FVARBPROC)load("glProgramLocalParameter4fvARB"); - glad_glGetProgramEnvParameterdvARB = (PFNGLGETPROGRAMENVPARAMETERDVARBPROC)load("glGetProgramEnvParameterdvARB"); - glad_glGetProgramEnvParameterfvARB = (PFNGLGETPROGRAMENVPARAMETERFVARBPROC)load("glGetProgramEnvParameterfvARB"); - glad_glGetProgramLocalParameterdvARB = (PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC)load("glGetProgramLocalParameterdvARB"); - glad_glGetProgramLocalParameterfvARB = (PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC)load("glGetProgramLocalParameterfvARB"); - glad_glGetProgramivARB = (PFNGLGETPROGRAMIVARBPROC)load("glGetProgramivARB"); - glad_glGetProgramStringARB = (PFNGLGETPROGRAMSTRINGARBPROC)load("glGetProgramStringARB"); - glad_glIsProgramARB = (PFNGLISPROGRAMARBPROC)load("glIsProgramARB"); -} -static void load_GL_ARB_framebuffer_no_attachments(GLADloadproc load) { - if(!GLAD_GL_ARB_framebuffer_no_attachments) return; - glad_glFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC)load("glFramebufferParameteri"); - glad_glGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC)load("glGetFramebufferParameteriv"); -} -static void load_GL_ARB_framebuffer_object(GLADloadproc load) { - if(!GLAD_GL_ARB_framebuffer_object) return; - glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer"); - glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)load("glBindRenderbuffer"); - glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)load("glDeleteRenderbuffers"); - glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)load("glGenRenderbuffers"); - glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)load("glRenderbufferStorage"); - glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)load("glGetRenderbufferParameteriv"); - glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)load("glIsFramebuffer"); - glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)load("glBindFramebuffer"); - glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)load("glDeleteFramebuffers"); - glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)load("glGenFramebuffers"); - glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)load("glCheckFramebufferStatus"); - glad_glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC)load("glFramebufferTexture1D"); - glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)load("glFramebufferTexture2D"); - glad_glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC)load("glFramebufferTexture3D"); - glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)load("glFramebufferRenderbuffer"); - glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetFramebufferAttachmentParameteriv"); - glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)load("glGenerateMipmap"); - glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)load("glBlitFramebuffer"); - glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glRenderbufferStorageMultisample"); - glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)load("glFramebufferTextureLayer"); -} -static void load_GL_ARB_geometry_shader4(GLADloadproc load) { - if(!GLAD_GL_ARB_geometry_shader4) return; - glad_glProgramParameteriARB = (PFNGLPROGRAMPARAMETERIARBPROC)load("glProgramParameteriARB"); - glad_glFramebufferTextureARB = (PFNGLFRAMEBUFFERTEXTUREARBPROC)load("glFramebufferTextureARB"); - glad_glFramebufferTextureLayerARB = (PFNGLFRAMEBUFFERTEXTURELAYERARBPROC)load("glFramebufferTextureLayerARB"); - glad_glFramebufferTextureFaceARB = (PFNGLFRAMEBUFFERTEXTUREFACEARBPROC)load("glFramebufferTextureFaceARB"); -} -static void load_GL_ARB_get_program_binary(GLADloadproc load) { - if(!GLAD_GL_ARB_get_program_binary) return; - glad_glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC)load("glGetProgramBinary"); - glad_glProgramBinary = (PFNGLPROGRAMBINARYPROC)load("glProgramBinary"); - glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri"); -} -static void load_GL_ARB_get_texture_sub_image(GLADloadproc load) { - if(!GLAD_GL_ARB_get_texture_sub_image) return; - glad_glGetTextureSubImage = (PFNGLGETTEXTURESUBIMAGEPROC)load("glGetTextureSubImage"); - glad_glGetCompressedTextureSubImage = (PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC)load("glGetCompressedTextureSubImage"); -} -static void load_GL_ARB_gl_spirv(GLADloadproc load) { - if(!GLAD_GL_ARB_gl_spirv) return; - glad_glSpecializeShaderARB = (PFNGLSPECIALIZESHADERARBPROC)load("glSpecializeShaderARB"); -} -static void load_GL_ARB_gpu_shader_fp64(GLADloadproc load) { - if(!GLAD_GL_ARB_gpu_shader_fp64) return; - glad_glUniform1d = (PFNGLUNIFORM1DPROC)load("glUniform1d"); - glad_glUniform2d = (PFNGLUNIFORM2DPROC)load("glUniform2d"); - glad_glUniform3d = (PFNGLUNIFORM3DPROC)load("glUniform3d"); - glad_glUniform4d = (PFNGLUNIFORM4DPROC)load("glUniform4d"); - glad_glUniform1dv = (PFNGLUNIFORM1DVPROC)load("glUniform1dv"); - glad_glUniform2dv = (PFNGLUNIFORM2DVPROC)load("glUniform2dv"); - glad_glUniform3dv = (PFNGLUNIFORM3DVPROC)load("glUniform3dv"); - glad_glUniform4dv = (PFNGLUNIFORM4DVPROC)load("glUniform4dv"); - glad_glUniformMatrix2dv = (PFNGLUNIFORMMATRIX2DVPROC)load("glUniformMatrix2dv"); - glad_glUniformMatrix3dv = (PFNGLUNIFORMMATRIX3DVPROC)load("glUniformMatrix3dv"); - glad_glUniformMatrix4dv = (PFNGLUNIFORMMATRIX4DVPROC)load("glUniformMatrix4dv"); - glad_glUniformMatrix2x3dv = (PFNGLUNIFORMMATRIX2X3DVPROC)load("glUniformMatrix2x3dv"); - glad_glUniformMatrix2x4dv = (PFNGLUNIFORMMATRIX2X4DVPROC)load("glUniformMatrix2x4dv"); - glad_glUniformMatrix3x2dv = (PFNGLUNIFORMMATRIX3X2DVPROC)load("glUniformMatrix3x2dv"); - glad_glUniformMatrix3x4dv = (PFNGLUNIFORMMATRIX3X4DVPROC)load("glUniformMatrix3x4dv"); - glad_glUniformMatrix4x2dv = (PFNGLUNIFORMMATRIX4X2DVPROC)load("glUniformMatrix4x2dv"); - glad_glUniformMatrix4x3dv = (PFNGLUNIFORMMATRIX4X3DVPROC)load("glUniformMatrix4x3dv"); - glad_glGetUniformdv = (PFNGLGETUNIFORMDVPROC)load("glGetUniformdv"); -} -static void load_GL_ARB_gpu_shader_int64(GLADloadproc load) { - if(!GLAD_GL_ARB_gpu_shader_int64) return; - glad_glUniform1i64ARB = (PFNGLUNIFORM1I64ARBPROC)load("glUniform1i64ARB"); - glad_glUniform2i64ARB = (PFNGLUNIFORM2I64ARBPROC)load("glUniform2i64ARB"); - glad_glUniform3i64ARB = (PFNGLUNIFORM3I64ARBPROC)load("glUniform3i64ARB"); - glad_glUniform4i64ARB = (PFNGLUNIFORM4I64ARBPROC)load("glUniform4i64ARB"); - glad_glUniform1i64vARB = (PFNGLUNIFORM1I64VARBPROC)load("glUniform1i64vARB"); - glad_glUniform2i64vARB = (PFNGLUNIFORM2I64VARBPROC)load("glUniform2i64vARB"); - glad_glUniform3i64vARB = (PFNGLUNIFORM3I64VARBPROC)load("glUniform3i64vARB"); - glad_glUniform4i64vARB = (PFNGLUNIFORM4I64VARBPROC)load("glUniform4i64vARB"); - glad_glUniform1ui64ARB = (PFNGLUNIFORM1UI64ARBPROC)load("glUniform1ui64ARB"); - glad_glUniform2ui64ARB = (PFNGLUNIFORM2UI64ARBPROC)load("glUniform2ui64ARB"); - glad_glUniform3ui64ARB = (PFNGLUNIFORM3UI64ARBPROC)load("glUniform3ui64ARB"); - glad_glUniform4ui64ARB = (PFNGLUNIFORM4UI64ARBPROC)load("glUniform4ui64ARB"); - glad_glUniform1ui64vARB = (PFNGLUNIFORM1UI64VARBPROC)load("glUniform1ui64vARB"); - glad_glUniform2ui64vARB = (PFNGLUNIFORM2UI64VARBPROC)load("glUniform2ui64vARB"); - glad_glUniform3ui64vARB = (PFNGLUNIFORM3UI64VARBPROC)load("glUniform3ui64vARB"); - glad_glUniform4ui64vARB = (PFNGLUNIFORM4UI64VARBPROC)load("glUniform4ui64vARB"); - glad_glGetUniformi64vARB = (PFNGLGETUNIFORMI64VARBPROC)load("glGetUniformi64vARB"); - glad_glGetUniformui64vARB = (PFNGLGETUNIFORMUI64VARBPROC)load("glGetUniformui64vARB"); - glad_glGetnUniformi64vARB = (PFNGLGETNUNIFORMI64VARBPROC)load("glGetnUniformi64vARB"); - glad_glGetnUniformui64vARB = (PFNGLGETNUNIFORMUI64VARBPROC)load("glGetnUniformui64vARB"); - glad_glProgramUniform1i64ARB = (PFNGLPROGRAMUNIFORM1I64ARBPROC)load("glProgramUniform1i64ARB"); - glad_glProgramUniform2i64ARB = (PFNGLPROGRAMUNIFORM2I64ARBPROC)load("glProgramUniform2i64ARB"); - glad_glProgramUniform3i64ARB = (PFNGLPROGRAMUNIFORM3I64ARBPROC)load("glProgramUniform3i64ARB"); - glad_glProgramUniform4i64ARB = (PFNGLPROGRAMUNIFORM4I64ARBPROC)load("glProgramUniform4i64ARB"); - glad_glProgramUniform1i64vARB = (PFNGLPROGRAMUNIFORM1I64VARBPROC)load("glProgramUniform1i64vARB"); - glad_glProgramUniform2i64vARB = (PFNGLPROGRAMUNIFORM2I64VARBPROC)load("glProgramUniform2i64vARB"); - glad_glProgramUniform3i64vARB = (PFNGLPROGRAMUNIFORM3I64VARBPROC)load("glProgramUniform3i64vARB"); - glad_glProgramUniform4i64vARB = (PFNGLPROGRAMUNIFORM4I64VARBPROC)load("glProgramUniform4i64vARB"); - glad_glProgramUniform1ui64ARB = (PFNGLPROGRAMUNIFORM1UI64ARBPROC)load("glProgramUniform1ui64ARB"); - glad_glProgramUniform2ui64ARB = (PFNGLPROGRAMUNIFORM2UI64ARBPROC)load("glProgramUniform2ui64ARB"); - glad_glProgramUniform3ui64ARB = (PFNGLPROGRAMUNIFORM3UI64ARBPROC)load("glProgramUniform3ui64ARB"); - glad_glProgramUniform4ui64ARB = (PFNGLPROGRAMUNIFORM4UI64ARBPROC)load("glProgramUniform4ui64ARB"); - glad_glProgramUniform1ui64vARB = (PFNGLPROGRAMUNIFORM1UI64VARBPROC)load("glProgramUniform1ui64vARB"); - glad_glProgramUniform2ui64vARB = (PFNGLPROGRAMUNIFORM2UI64VARBPROC)load("glProgramUniform2ui64vARB"); - glad_glProgramUniform3ui64vARB = (PFNGLPROGRAMUNIFORM3UI64VARBPROC)load("glProgramUniform3ui64vARB"); - glad_glProgramUniform4ui64vARB = (PFNGLPROGRAMUNIFORM4UI64VARBPROC)load("glProgramUniform4ui64vARB"); -} -static void load_GL_ARB_imaging(GLADloadproc load) { - if(!GLAD_GL_ARB_imaging) return; - glad_glBlendColor = (PFNGLBLENDCOLORPROC)load("glBlendColor"); - glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC)load("glBlendEquation"); - glad_glColorTable = (PFNGLCOLORTABLEPROC)load("glColorTable"); - glad_glColorTableParameterfv = (PFNGLCOLORTABLEPARAMETERFVPROC)load("glColorTableParameterfv"); - glad_glColorTableParameteriv = (PFNGLCOLORTABLEPARAMETERIVPROC)load("glColorTableParameteriv"); - glad_glCopyColorTable = (PFNGLCOPYCOLORTABLEPROC)load("glCopyColorTable"); - glad_glGetColorTable = (PFNGLGETCOLORTABLEPROC)load("glGetColorTable"); - glad_glGetColorTableParameterfv = (PFNGLGETCOLORTABLEPARAMETERFVPROC)load("glGetColorTableParameterfv"); - glad_glGetColorTableParameteriv = (PFNGLGETCOLORTABLEPARAMETERIVPROC)load("glGetColorTableParameteriv"); - glad_glColorSubTable = (PFNGLCOLORSUBTABLEPROC)load("glColorSubTable"); - glad_glCopyColorSubTable = (PFNGLCOPYCOLORSUBTABLEPROC)load("glCopyColorSubTable"); - glad_glConvolutionFilter1D = (PFNGLCONVOLUTIONFILTER1DPROC)load("glConvolutionFilter1D"); - glad_glConvolutionFilter2D = (PFNGLCONVOLUTIONFILTER2DPROC)load("glConvolutionFilter2D"); - glad_glConvolutionParameterf = (PFNGLCONVOLUTIONPARAMETERFPROC)load("glConvolutionParameterf"); - glad_glConvolutionParameterfv = (PFNGLCONVOLUTIONPARAMETERFVPROC)load("glConvolutionParameterfv"); - glad_glConvolutionParameteri = (PFNGLCONVOLUTIONPARAMETERIPROC)load("glConvolutionParameteri"); - glad_glConvolutionParameteriv = (PFNGLCONVOLUTIONPARAMETERIVPROC)load("glConvolutionParameteriv"); - glad_glCopyConvolutionFilter1D = (PFNGLCOPYCONVOLUTIONFILTER1DPROC)load("glCopyConvolutionFilter1D"); - glad_glCopyConvolutionFilter2D = (PFNGLCOPYCONVOLUTIONFILTER2DPROC)load("glCopyConvolutionFilter2D"); - glad_glGetConvolutionFilter = (PFNGLGETCONVOLUTIONFILTERPROC)load("glGetConvolutionFilter"); - glad_glGetConvolutionParameterfv = (PFNGLGETCONVOLUTIONPARAMETERFVPROC)load("glGetConvolutionParameterfv"); - glad_glGetConvolutionParameteriv = (PFNGLGETCONVOLUTIONPARAMETERIVPROC)load("glGetConvolutionParameteriv"); - glad_glGetSeparableFilter = (PFNGLGETSEPARABLEFILTERPROC)load("glGetSeparableFilter"); - glad_glSeparableFilter2D = (PFNGLSEPARABLEFILTER2DPROC)load("glSeparableFilter2D"); - glad_glGetHistogram = (PFNGLGETHISTOGRAMPROC)load("glGetHistogram"); - glad_glGetHistogramParameterfv = (PFNGLGETHISTOGRAMPARAMETERFVPROC)load("glGetHistogramParameterfv"); - glad_glGetHistogramParameteriv = (PFNGLGETHISTOGRAMPARAMETERIVPROC)load("glGetHistogramParameteriv"); - glad_glGetMinmax = (PFNGLGETMINMAXPROC)load("glGetMinmax"); - glad_glGetMinmaxParameterfv = (PFNGLGETMINMAXPARAMETERFVPROC)load("glGetMinmaxParameterfv"); - glad_glGetMinmaxParameteriv = (PFNGLGETMINMAXPARAMETERIVPROC)load("glGetMinmaxParameteriv"); - glad_glHistogram = (PFNGLHISTOGRAMPROC)load("glHistogram"); - glad_glMinmax = (PFNGLMINMAXPROC)load("glMinmax"); - glad_glResetHistogram = (PFNGLRESETHISTOGRAMPROC)load("glResetHistogram"); - glad_glResetMinmax = (PFNGLRESETMINMAXPROC)load("glResetMinmax"); -} -static void load_GL_ARB_indirect_parameters(GLADloadproc load) { - if(!GLAD_GL_ARB_indirect_parameters) return; - glad_glMultiDrawArraysIndirectCountARB = (PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC)load("glMultiDrawArraysIndirectCountARB"); - glad_glMultiDrawElementsIndirectCountARB = (PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC)load("glMultiDrawElementsIndirectCountARB"); -} -static void load_GL_ARB_instanced_arrays(GLADloadproc load) { - if(!GLAD_GL_ARB_instanced_arrays) return; - glad_glVertexAttribDivisorARB = (PFNGLVERTEXATTRIBDIVISORARBPROC)load("glVertexAttribDivisorARB"); -} -static void load_GL_ARB_internalformat_query(GLADloadproc load) { - if(!GLAD_GL_ARB_internalformat_query) return; - glad_glGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC)load("glGetInternalformativ"); -} -static void load_GL_ARB_internalformat_query2(GLADloadproc load) { - if(!GLAD_GL_ARB_internalformat_query2) return; - glad_glGetInternalformati64v = (PFNGLGETINTERNALFORMATI64VPROC)load("glGetInternalformati64v"); -} -static void load_GL_ARB_invalidate_subdata(GLADloadproc load) { - if(!GLAD_GL_ARB_invalidate_subdata) return; - glad_glInvalidateTexSubImage = (PFNGLINVALIDATETEXSUBIMAGEPROC)load("glInvalidateTexSubImage"); - glad_glInvalidateTexImage = (PFNGLINVALIDATETEXIMAGEPROC)load("glInvalidateTexImage"); - glad_glInvalidateBufferSubData = (PFNGLINVALIDATEBUFFERSUBDATAPROC)load("glInvalidateBufferSubData"); - glad_glInvalidateBufferData = (PFNGLINVALIDATEBUFFERDATAPROC)load("glInvalidateBufferData"); - glad_glInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC)load("glInvalidateFramebuffer"); - glad_glInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC)load("glInvalidateSubFramebuffer"); -} -static void load_GL_ARB_map_buffer_range(GLADloadproc load) { - if(!GLAD_GL_ARB_map_buffer_range) return; - glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)load("glMapBufferRange"); - glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)load("glFlushMappedBufferRange"); -} -static void load_GL_ARB_matrix_palette(GLADloadproc load) { - if(!GLAD_GL_ARB_matrix_palette) return; - glad_glCurrentPaletteMatrixARB = (PFNGLCURRENTPALETTEMATRIXARBPROC)load("glCurrentPaletteMatrixARB"); - glad_glMatrixIndexubvARB = (PFNGLMATRIXINDEXUBVARBPROC)load("glMatrixIndexubvARB"); - glad_glMatrixIndexusvARB = (PFNGLMATRIXINDEXUSVARBPROC)load("glMatrixIndexusvARB"); - glad_glMatrixIndexuivARB = (PFNGLMATRIXINDEXUIVARBPROC)load("glMatrixIndexuivARB"); - glad_glMatrixIndexPointerARB = (PFNGLMATRIXINDEXPOINTERARBPROC)load("glMatrixIndexPointerARB"); -} -static void load_GL_ARB_multi_bind(GLADloadproc load) { - if(!GLAD_GL_ARB_multi_bind) return; - glad_glBindBuffersBase = (PFNGLBINDBUFFERSBASEPROC)load("glBindBuffersBase"); - glad_glBindBuffersRange = (PFNGLBINDBUFFERSRANGEPROC)load("glBindBuffersRange"); - glad_glBindTextures = (PFNGLBINDTEXTURESPROC)load("glBindTextures"); - glad_glBindSamplers = (PFNGLBINDSAMPLERSPROC)load("glBindSamplers"); - glad_glBindImageTextures = (PFNGLBINDIMAGETEXTURESPROC)load("glBindImageTextures"); - glad_glBindVertexBuffers = (PFNGLBINDVERTEXBUFFERSPROC)load("glBindVertexBuffers"); -} -static void load_GL_ARB_multi_draw_indirect(GLADloadproc load) { - if(!GLAD_GL_ARB_multi_draw_indirect) return; - glad_glMultiDrawArraysIndirect = (PFNGLMULTIDRAWARRAYSINDIRECTPROC)load("glMultiDrawArraysIndirect"); - glad_glMultiDrawElementsIndirect = (PFNGLMULTIDRAWELEMENTSINDIRECTPROC)load("glMultiDrawElementsIndirect"); -} -static void load_GL_ARB_multisample(GLADloadproc load) { - if(!GLAD_GL_ARB_multisample) return; - glad_glSampleCoverageARB = (PFNGLSAMPLECOVERAGEARBPROC)load("glSampleCoverageARB"); -} -static void load_GL_ARB_multitexture(GLADloadproc load) { - if(!GLAD_GL_ARB_multitexture) return; - glad_glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)load("glActiveTextureARB"); - glad_glClientActiveTextureARB = (PFNGLCLIENTACTIVETEXTUREARBPROC)load("glClientActiveTextureARB"); - glad_glMultiTexCoord1dARB = (PFNGLMULTITEXCOORD1DARBPROC)load("glMultiTexCoord1dARB"); - glad_glMultiTexCoord1dvARB = (PFNGLMULTITEXCOORD1DVARBPROC)load("glMultiTexCoord1dvARB"); - glad_glMultiTexCoord1fARB = (PFNGLMULTITEXCOORD1FARBPROC)load("glMultiTexCoord1fARB"); - glad_glMultiTexCoord1fvARB = (PFNGLMULTITEXCOORD1FVARBPROC)load("glMultiTexCoord1fvARB"); - glad_glMultiTexCoord1iARB = (PFNGLMULTITEXCOORD1IARBPROC)load("glMultiTexCoord1iARB"); - glad_glMultiTexCoord1ivARB = (PFNGLMULTITEXCOORD1IVARBPROC)load("glMultiTexCoord1ivARB"); - glad_glMultiTexCoord1sARB = (PFNGLMULTITEXCOORD1SARBPROC)load("glMultiTexCoord1sARB"); - glad_glMultiTexCoord1svARB = (PFNGLMULTITEXCOORD1SVARBPROC)load("glMultiTexCoord1svARB"); - glad_glMultiTexCoord2dARB = (PFNGLMULTITEXCOORD2DARBPROC)load("glMultiTexCoord2dARB"); - glad_glMultiTexCoord2dvARB = (PFNGLMULTITEXCOORD2DVARBPROC)load("glMultiTexCoord2dvARB"); - glad_glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)load("glMultiTexCoord2fARB"); - glad_glMultiTexCoord2fvARB = (PFNGLMULTITEXCOORD2FVARBPROC)load("glMultiTexCoord2fvARB"); - glad_glMultiTexCoord2iARB = (PFNGLMULTITEXCOORD2IARBPROC)load("glMultiTexCoord2iARB"); - glad_glMultiTexCoord2ivARB = (PFNGLMULTITEXCOORD2IVARBPROC)load("glMultiTexCoord2ivARB"); - glad_glMultiTexCoord2sARB = (PFNGLMULTITEXCOORD2SARBPROC)load("glMultiTexCoord2sARB"); - glad_glMultiTexCoord2svARB = (PFNGLMULTITEXCOORD2SVARBPROC)load("glMultiTexCoord2svARB"); - glad_glMultiTexCoord3dARB = (PFNGLMULTITEXCOORD3DARBPROC)load("glMultiTexCoord3dARB"); - glad_glMultiTexCoord3dvARB = (PFNGLMULTITEXCOORD3DVARBPROC)load("glMultiTexCoord3dvARB"); - glad_glMultiTexCoord3fARB = (PFNGLMULTITEXCOORD3FARBPROC)load("glMultiTexCoord3fARB"); - glad_glMultiTexCoord3fvARB = (PFNGLMULTITEXCOORD3FVARBPROC)load("glMultiTexCoord3fvARB"); - glad_glMultiTexCoord3iARB = (PFNGLMULTITEXCOORD3IARBPROC)load("glMultiTexCoord3iARB"); - glad_glMultiTexCoord3ivARB = (PFNGLMULTITEXCOORD3IVARBPROC)load("glMultiTexCoord3ivARB"); - glad_glMultiTexCoord3sARB = (PFNGLMULTITEXCOORD3SARBPROC)load("glMultiTexCoord3sARB"); - glad_glMultiTexCoord3svARB = (PFNGLMULTITEXCOORD3SVARBPROC)load("glMultiTexCoord3svARB"); - glad_glMultiTexCoord4dARB = (PFNGLMULTITEXCOORD4DARBPROC)load("glMultiTexCoord4dARB"); - glad_glMultiTexCoord4dvARB = (PFNGLMULTITEXCOORD4DVARBPROC)load("glMultiTexCoord4dvARB"); - glad_glMultiTexCoord4fARB = (PFNGLMULTITEXCOORD4FARBPROC)load("glMultiTexCoord4fARB"); - glad_glMultiTexCoord4fvARB = (PFNGLMULTITEXCOORD4FVARBPROC)load("glMultiTexCoord4fvARB"); - glad_glMultiTexCoord4iARB = (PFNGLMULTITEXCOORD4IARBPROC)load("glMultiTexCoord4iARB"); - glad_glMultiTexCoord4ivARB = (PFNGLMULTITEXCOORD4IVARBPROC)load("glMultiTexCoord4ivARB"); - glad_glMultiTexCoord4sARB = (PFNGLMULTITEXCOORD4SARBPROC)load("glMultiTexCoord4sARB"); - glad_glMultiTexCoord4svARB = (PFNGLMULTITEXCOORD4SVARBPROC)load("glMultiTexCoord4svARB"); -} -static void load_GL_ARB_occlusion_query(GLADloadproc load) { - if(!GLAD_GL_ARB_occlusion_query) return; - glad_glGenQueriesARB = (PFNGLGENQUERIESARBPROC)load("glGenQueriesARB"); - glad_glDeleteQueriesARB = (PFNGLDELETEQUERIESARBPROC)load("glDeleteQueriesARB"); - glad_glIsQueryARB = (PFNGLISQUERYARBPROC)load("glIsQueryARB"); - glad_glBeginQueryARB = (PFNGLBEGINQUERYARBPROC)load("glBeginQueryARB"); - glad_glEndQueryARB = (PFNGLENDQUERYARBPROC)load("glEndQueryARB"); - glad_glGetQueryivARB = (PFNGLGETQUERYIVARBPROC)load("glGetQueryivARB"); - glad_glGetQueryObjectivARB = (PFNGLGETQUERYOBJECTIVARBPROC)load("glGetQueryObjectivARB"); - glad_glGetQueryObjectuivARB = (PFNGLGETQUERYOBJECTUIVARBPROC)load("glGetQueryObjectuivARB"); -} -static void load_GL_ARB_parallel_shader_compile(GLADloadproc load) { - if(!GLAD_GL_ARB_parallel_shader_compile) return; - glad_glMaxShaderCompilerThreadsARB = (PFNGLMAXSHADERCOMPILERTHREADSARBPROC)load("glMaxShaderCompilerThreadsARB"); -} -static void load_GL_ARB_point_parameters(GLADloadproc load) { - if(!GLAD_GL_ARB_point_parameters) return; - glad_glPointParameterfARB = (PFNGLPOINTPARAMETERFARBPROC)load("glPointParameterfARB"); - glad_glPointParameterfvARB = (PFNGLPOINTPARAMETERFVARBPROC)load("glPointParameterfvARB"); -} -static void load_GL_ARB_polygon_offset_clamp(GLADloadproc load) { - if(!GLAD_GL_ARB_polygon_offset_clamp) return; - glad_glPolygonOffsetClamp = (PFNGLPOLYGONOFFSETCLAMPPROC)load("glPolygonOffsetClamp"); -} -static void load_GL_ARB_program_interface_query(GLADloadproc load) { - if(!GLAD_GL_ARB_program_interface_query) return; - glad_glGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC)load("glGetProgramInterfaceiv"); - glad_glGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC)load("glGetProgramResourceIndex"); - glad_glGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC)load("glGetProgramResourceName"); - glad_glGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC)load("glGetProgramResourceiv"); - glad_glGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC)load("glGetProgramResourceLocation"); - glad_glGetProgramResourceLocationIndex = (PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC)load("glGetProgramResourceLocationIndex"); -} -static void load_GL_ARB_provoking_vertex(GLADloadproc load) { - if(!GLAD_GL_ARB_provoking_vertex) return; - glad_glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC)load("glProvokingVertex"); -} -static void load_GL_ARB_robustness(GLADloadproc load) { - if(!GLAD_GL_ARB_robustness) return; - glad_glGetGraphicsResetStatusARB = (PFNGLGETGRAPHICSRESETSTATUSARBPROC)load("glGetGraphicsResetStatusARB"); - glad_glGetnTexImageARB = (PFNGLGETNTEXIMAGEARBPROC)load("glGetnTexImageARB"); - glad_glReadnPixelsARB = (PFNGLREADNPIXELSARBPROC)load("glReadnPixelsARB"); - glad_glGetnCompressedTexImageARB = (PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC)load("glGetnCompressedTexImageARB"); - glad_glGetnUniformfvARB = (PFNGLGETNUNIFORMFVARBPROC)load("glGetnUniformfvARB"); - glad_glGetnUniformivARB = (PFNGLGETNUNIFORMIVARBPROC)load("glGetnUniformivARB"); - glad_glGetnUniformuivARB = (PFNGLGETNUNIFORMUIVARBPROC)load("glGetnUniformuivARB"); - glad_glGetnUniformdvARB = (PFNGLGETNUNIFORMDVARBPROC)load("glGetnUniformdvARB"); - glad_glGetnMapdvARB = (PFNGLGETNMAPDVARBPROC)load("glGetnMapdvARB"); - glad_glGetnMapfvARB = (PFNGLGETNMAPFVARBPROC)load("glGetnMapfvARB"); - glad_glGetnMapivARB = (PFNGLGETNMAPIVARBPROC)load("glGetnMapivARB"); - glad_glGetnPixelMapfvARB = (PFNGLGETNPIXELMAPFVARBPROC)load("glGetnPixelMapfvARB"); - glad_glGetnPixelMapuivARB = (PFNGLGETNPIXELMAPUIVARBPROC)load("glGetnPixelMapuivARB"); - glad_glGetnPixelMapusvARB = (PFNGLGETNPIXELMAPUSVARBPROC)load("glGetnPixelMapusvARB"); - glad_glGetnPolygonStippleARB = (PFNGLGETNPOLYGONSTIPPLEARBPROC)load("glGetnPolygonStippleARB"); - glad_glGetnColorTableARB = (PFNGLGETNCOLORTABLEARBPROC)load("glGetnColorTableARB"); - glad_glGetnConvolutionFilterARB = (PFNGLGETNCONVOLUTIONFILTERARBPROC)load("glGetnConvolutionFilterARB"); - glad_glGetnSeparableFilterARB = (PFNGLGETNSEPARABLEFILTERARBPROC)load("glGetnSeparableFilterARB"); - glad_glGetnHistogramARB = (PFNGLGETNHISTOGRAMARBPROC)load("glGetnHistogramARB"); - glad_glGetnMinmaxARB = (PFNGLGETNMINMAXARBPROC)load("glGetnMinmaxARB"); -} -static void load_GL_ARB_sample_locations(GLADloadproc load) { - if(!GLAD_GL_ARB_sample_locations) return; - glad_glFramebufferSampleLocationsfvARB = (PFNGLFRAMEBUFFERSAMPLELOCATIONSFVARBPROC)load("glFramebufferSampleLocationsfvARB"); - glad_glNamedFramebufferSampleLocationsfvARB = (PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVARBPROC)load("glNamedFramebufferSampleLocationsfvARB"); - glad_glEvaluateDepthValuesARB = (PFNGLEVALUATEDEPTHVALUESARBPROC)load("glEvaluateDepthValuesARB"); -} -static void load_GL_ARB_sample_shading(GLADloadproc load) { - if(!GLAD_GL_ARB_sample_shading) return; - glad_glMinSampleShadingARB = (PFNGLMINSAMPLESHADINGARBPROC)load("glMinSampleShadingARB"); -} -static void load_GL_ARB_sampler_objects(GLADloadproc load) { - if(!GLAD_GL_ARB_sampler_objects) return; - glad_glGenSamplers = (PFNGLGENSAMPLERSPROC)load("glGenSamplers"); - glad_glDeleteSamplers = (PFNGLDELETESAMPLERSPROC)load("glDeleteSamplers"); - glad_glIsSampler = (PFNGLISSAMPLERPROC)load("glIsSampler"); - glad_glBindSampler = (PFNGLBINDSAMPLERPROC)load("glBindSampler"); - glad_glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC)load("glSamplerParameteri"); - glad_glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC)load("glSamplerParameteriv"); - glad_glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC)load("glSamplerParameterf"); - glad_glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC)load("glSamplerParameterfv"); - glad_glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC)load("glSamplerParameterIiv"); - glad_glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC)load("glSamplerParameterIuiv"); - glad_glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC)load("glGetSamplerParameteriv"); - glad_glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC)load("glGetSamplerParameterIiv"); - glad_glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC)load("glGetSamplerParameterfv"); - glad_glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC)load("glGetSamplerParameterIuiv"); -} -static void load_GL_ARB_separate_shader_objects(GLADloadproc load) { - if(!GLAD_GL_ARB_separate_shader_objects) return; - glad_glUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC)load("glUseProgramStages"); - glad_glActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC)load("glActiveShaderProgram"); - glad_glCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC)load("glCreateShaderProgramv"); - glad_glBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC)load("glBindProgramPipeline"); - glad_glDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC)load("glDeleteProgramPipelines"); - glad_glGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC)load("glGenProgramPipelines"); - glad_glIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC)load("glIsProgramPipeline"); - glad_glGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC)load("glGetProgramPipelineiv"); - glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri"); - glad_glProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC)load("glProgramUniform1i"); - glad_glProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC)load("glProgramUniform1iv"); - glad_glProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC)load("glProgramUniform1f"); - glad_glProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC)load("glProgramUniform1fv"); - glad_glProgramUniform1d = (PFNGLPROGRAMUNIFORM1DPROC)load("glProgramUniform1d"); - glad_glProgramUniform1dv = (PFNGLPROGRAMUNIFORM1DVPROC)load("glProgramUniform1dv"); - glad_glProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC)load("glProgramUniform1ui"); - glad_glProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC)load("glProgramUniform1uiv"); - glad_glProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC)load("glProgramUniform2i"); - glad_glProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC)load("glProgramUniform2iv"); - glad_glProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC)load("glProgramUniform2f"); - glad_glProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC)load("glProgramUniform2fv"); - glad_glProgramUniform2d = (PFNGLPROGRAMUNIFORM2DPROC)load("glProgramUniform2d"); - glad_glProgramUniform2dv = (PFNGLPROGRAMUNIFORM2DVPROC)load("glProgramUniform2dv"); - glad_glProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC)load("glProgramUniform2ui"); - glad_glProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC)load("glProgramUniform2uiv"); - glad_glProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC)load("glProgramUniform3i"); - glad_glProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC)load("glProgramUniform3iv"); - glad_glProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC)load("glProgramUniform3f"); - glad_glProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC)load("glProgramUniform3fv"); - glad_glProgramUniform3d = (PFNGLPROGRAMUNIFORM3DPROC)load("glProgramUniform3d"); - glad_glProgramUniform3dv = (PFNGLPROGRAMUNIFORM3DVPROC)load("glProgramUniform3dv"); - glad_glProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC)load("glProgramUniform3ui"); - glad_glProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC)load("glProgramUniform3uiv"); - glad_glProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC)load("glProgramUniform4i"); - glad_glProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC)load("glProgramUniform4iv"); - glad_glProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC)load("glProgramUniform4f"); - glad_glProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC)load("glProgramUniform4fv"); - glad_glProgramUniform4d = (PFNGLPROGRAMUNIFORM4DPROC)load("glProgramUniform4d"); - glad_glProgramUniform4dv = (PFNGLPROGRAMUNIFORM4DVPROC)load("glProgramUniform4dv"); - glad_glProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC)load("glProgramUniform4ui"); - glad_glProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC)load("glProgramUniform4uiv"); - glad_glProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC)load("glProgramUniformMatrix2fv"); - glad_glProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC)load("glProgramUniformMatrix3fv"); - glad_glProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC)load("glProgramUniformMatrix4fv"); - glad_glProgramUniformMatrix2dv = (PFNGLPROGRAMUNIFORMMATRIX2DVPROC)load("glProgramUniformMatrix2dv"); - glad_glProgramUniformMatrix3dv = (PFNGLPROGRAMUNIFORMMATRIX3DVPROC)load("glProgramUniformMatrix3dv"); - glad_glProgramUniformMatrix4dv = (PFNGLPROGRAMUNIFORMMATRIX4DVPROC)load("glProgramUniformMatrix4dv"); - glad_glProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)load("glProgramUniformMatrix2x3fv"); - glad_glProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)load("glProgramUniformMatrix3x2fv"); - glad_glProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)load("glProgramUniformMatrix2x4fv"); - glad_glProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)load("glProgramUniformMatrix4x2fv"); - glad_glProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)load("glProgramUniformMatrix3x4fv"); - glad_glProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)load("glProgramUniformMatrix4x3fv"); - glad_glProgramUniformMatrix2x3dv = (PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC)load("glProgramUniformMatrix2x3dv"); - glad_glProgramUniformMatrix3x2dv = (PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC)load("glProgramUniformMatrix3x2dv"); - glad_glProgramUniformMatrix2x4dv = (PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC)load("glProgramUniformMatrix2x4dv"); - glad_glProgramUniformMatrix4x2dv = (PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC)load("glProgramUniformMatrix4x2dv"); - glad_glProgramUniformMatrix3x4dv = (PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC)load("glProgramUniformMatrix3x4dv"); - glad_glProgramUniformMatrix4x3dv = (PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC)load("glProgramUniformMatrix4x3dv"); - glad_glValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC)load("glValidateProgramPipeline"); - glad_glGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC)load("glGetProgramPipelineInfoLog"); -} -static void load_GL_ARB_shader_atomic_counters(GLADloadproc load) { - if(!GLAD_GL_ARB_shader_atomic_counters) return; - glad_glGetActiveAtomicCounterBufferiv = (PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC)load("glGetActiveAtomicCounterBufferiv"); -} -static void load_GL_ARB_shader_image_load_store(GLADloadproc load) { - if(!GLAD_GL_ARB_shader_image_load_store) return; - glad_glBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC)load("glBindImageTexture"); - glad_glMemoryBarrier = (PFNGLMEMORYBARRIERPROC)load("glMemoryBarrier"); -} -static void load_GL_ARB_shader_objects(GLADloadproc load) { - if(!GLAD_GL_ARB_shader_objects) return; - glad_glDeleteObjectARB = (PFNGLDELETEOBJECTARBPROC)load("glDeleteObjectARB"); - glad_glGetHandleARB = (PFNGLGETHANDLEARBPROC)load("glGetHandleARB"); - glad_glDetachObjectARB = (PFNGLDETACHOBJECTARBPROC)load("glDetachObjectARB"); - glad_glCreateShaderObjectARB = (PFNGLCREATESHADEROBJECTARBPROC)load("glCreateShaderObjectARB"); - glad_glShaderSourceARB = (PFNGLSHADERSOURCEARBPROC)load("glShaderSourceARB"); - glad_glCompileShaderARB = (PFNGLCOMPILESHADERARBPROC)load("glCompileShaderARB"); - glad_glCreateProgramObjectARB = (PFNGLCREATEPROGRAMOBJECTARBPROC)load("glCreateProgramObjectARB"); - glad_glAttachObjectARB = (PFNGLATTACHOBJECTARBPROC)load("glAttachObjectARB"); - glad_glLinkProgramARB = (PFNGLLINKPROGRAMARBPROC)load("glLinkProgramARB"); - glad_glUseProgramObjectARB = (PFNGLUSEPROGRAMOBJECTARBPROC)load("glUseProgramObjectARB"); - glad_glValidateProgramARB = (PFNGLVALIDATEPROGRAMARBPROC)load("glValidateProgramARB"); - glad_glUniform1fARB = (PFNGLUNIFORM1FARBPROC)load("glUniform1fARB"); - glad_glUniform2fARB = (PFNGLUNIFORM2FARBPROC)load("glUniform2fARB"); - glad_glUniform3fARB = (PFNGLUNIFORM3FARBPROC)load("glUniform3fARB"); - glad_glUniform4fARB = (PFNGLUNIFORM4FARBPROC)load("glUniform4fARB"); - glad_glUniform1iARB = (PFNGLUNIFORM1IARBPROC)load("glUniform1iARB"); - glad_glUniform2iARB = (PFNGLUNIFORM2IARBPROC)load("glUniform2iARB"); - glad_glUniform3iARB = (PFNGLUNIFORM3IARBPROC)load("glUniform3iARB"); - glad_glUniform4iARB = (PFNGLUNIFORM4IARBPROC)load("glUniform4iARB"); - glad_glUniform1fvARB = (PFNGLUNIFORM1FVARBPROC)load("glUniform1fvARB"); - glad_glUniform2fvARB = (PFNGLUNIFORM2FVARBPROC)load("glUniform2fvARB"); - glad_glUniform3fvARB = (PFNGLUNIFORM3FVARBPROC)load("glUniform3fvARB"); - glad_glUniform4fvARB = (PFNGLUNIFORM4FVARBPROC)load("glUniform4fvARB"); - glad_glUniform1ivARB = (PFNGLUNIFORM1IVARBPROC)load("glUniform1ivARB"); - glad_glUniform2ivARB = (PFNGLUNIFORM2IVARBPROC)load("glUniform2ivARB"); - glad_glUniform3ivARB = (PFNGLUNIFORM3IVARBPROC)load("glUniform3ivARB"); - glad_glUniform4ivARB = (PFNGLUNIFORM4IVARBPROC)load("glUniform4ivARB"); - glad_glUniformMatrix2fvARB = (PFNGLUNIFORMMATRIX2FVARBPROC)load("glUniformMatrix2fvARB"); - glad_glUniformMatrix3fvARB = (PFNGLUNIFORMMATRIX3FVARBPROC)load("glUniformMatrix3fvARB"); - glad_glUniformMatrix4fvARB = (PFNGLUNIFORMMATRIX4FVARBPROC)load("glUniformMatrix4fvARB"); - glad_glGetObjectParameterfvARB = (PFNGLGETOBJECTPARAMETERFVARBPROC)load("glGetObjectParameterfvARB"); - glad_glGetObjectParameterivARB = (PFNGLGETOBJECTPARAMETERIVARBPROC)load("glGetObjectParameterivARB"); - glad_glGetInfoLogARB = (PFNGLGETINFOLOGARBPROC)load("glGetInfoLogARB"); - glad_glGetAttachedObjectsARB = (PFNGLGETATTACHEDOBJECTSARBPROC)load("glGetAttachedObjectsARB"); - glad_glGetUniformLocationARB = (PFNGLGETUNIFORMLOCATIONARBPROC)load("glGetUniformLocationARB"); - glad_glGetActiveUniformARB = (PFNGLGETACTIVEUNIFORMARBPROC)load("glGetActiveUniformARB"); - glad_glGetUniformfvARB = (PFNGLGETUNIFORMFVARBPROC)load("glGetUniformfvARB"); - glad_glGetUniformivARB = (PFNGLGETUNIFORMIVARBPROC)load("glGetUniformivARB"); - glad_glGetShaderSourceARB = (PFNGLGETSHADERSOURCEARBPROC)load("glGetShaderSourceARB"); -} -static void load_GL_ARB_shader_storage_buffer_object(GLADloadproc load) { - if(!GLAD_GL_ARB_shader_storage_buffer_object) return; - glad_glShaderStorageBlockBinding = (PFNGLSHADERSTORAGEBLOCKBINDINGPROC)load("glShaderStorageBlockBinding"); -} -static void load_GL_ARB_shader_subroutine(GLADloadproc load) { - if(!GLAD_GL_ARB_shader_subroutine) return; - glad_glGetSubroutineUniformLocation = (PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC)load("glGetSubroutineUniformLocation"); - glad_glGetSubroutineIndex = (PFNGLGETSUBROUTINEINDEXPROC)load("glGetSubroutineIndex"); - glad_glGetActiveSubroutineUniformiv = (PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC)load("glGetActiveSubroutineUniformiv"); - glad_glGetActiveSubroutineUniformName = (PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC)load("glGetActiveSubroutineUniformName"); - glad_glGetActiveSubroutineName = (PFNGLGETACTIVESUBROUTINENAMEPROC)load("glGetActiveSubroutineName"); - glad_glUniformSubroutinesuiv = (PFNGLUNIFORMSUBROUTINESUIVPROC)load("glUniformSubroutinesuiv"); - glad_glGetUniformSubroutineuiv = (PFNGLGETUNIFORMSUBROUTINEUIVPROC)load("glGetUniformSubroutineuiv"); - glad_glGetProgramStageiv = (PFNGLGETPROGRAMSTAGEIVPROC)load("glGetProgramStageiv"); -} -static void load_GL_ARB_shading_language_include(GLADloadproc load) { - if(!GLAD_GL_ARB_shading_language_include) return; - glad_glNamedStringARB = (PFNGLNAMEDSTRINGARBPROC)load("glNamedStringARB"); - glad_glDeleteNamedStringARB = (PFNGLDELETENAMEDSTRINGARBPROC)load("glDeleteNamedStringARB"); - glad_glCompileShaderIncludeARB = (PFNGLCOMPILESHADERINCLUDEARBPROC)load("glCompileShaderIncludeARB"); - glad_glIsNamedStringARB = (PFNGLISNAMEDSTRINGARBPROC)load("glIsNamedStringARB"); - glad_glGetNamedStringARB = (PFNGLGETNAMEDSTRINGARBPROC)load("glGetNamedStringARB"); - glad_glGetNamedStringivARB = (PFNGLGETNAMEDSTRINGIVARBPROC)load("glGetNamedStringivARB"); -} -static void load_GL_ARB_sparse_buffer(GLADloadproc load) { - if(!GLAD_GL_ARB_sparse_buffer) return; - glad_glBufferPageCommitmentARB = (PFNGLBUFFERPAGECOMMITMENTARBPROC)load("glBufferPageCommitmentARB"); - glad_glNamedBufferPageCommitmentEXT = (PFNGLNAMEDBUFFERPAGECOMMITMENTEXTPROC)load("glNamedBufferPageCommitmentEXT"); - glad_glNamedBufferPageCommitmentARB = (PFNGLNAMEDBUFFERPAGECOMMITMENTARBPROC)load("glNamedBufferPageCommitmentARB"); -} -static void load_GL_ARB_sparse_texture(GLADloadproc load) { - if(!GLAD_GL_ARB_sparse_texture) return; - glad_glTexPageCommitmentARB = (PFNGLTEXPAGECOMMITMENTARBPROC)load("glTexPageCommitmentARB"); -} -static void load_GL_ARB_sync(GLADloadproc load) { - if(!GLAD_GL_ARB_sync) return; - glad_glFenceSync = (PFNGLFENCESYNCPROC)load("glFenceSync"); - glad_glIsSync = (PFNGLISSYNCPROC)load("glIsSync"); - glad_glDeleteSync = (PFNGLDELETESYNCPROC)load("glDeleteSync"); - glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)load("glClientWaitSync"); - glad_glWaitSync = (PFNGLWAITSYNCPROC)load("glWaitSync"); - glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC)load("glGetInteger64v"); - glad_glGetSynciv = (PFNGLGETSYNCIVPROC)load("glGetSynciv"); -} -static void load_GL_ARB_tessellation_shader(GLADloadproc load) { - if(!GLAD_GL_ARB_tessellation_shader) return; - glad_glPatchParameteri = (PFNGLPATCHPARAMETERIPROC)load("glPatchParameteri"); - glad_glPatchParameterfv = (PFNGLPATCHPARAMETERFVPROC)load("glPatchParameterfv"); -} -static void load_GL_ARB_texture_barrier(GLADloadproc load) { - if(!GLAD_GL_ARB_texture_barrier) return; - glad_glTextureBarrier = (PFNGLTEXTUREBARRIERPROC)load("glTextureBarrier"); -} -static void load_GL_ARB_texture_buffer_object(GLADloadproc load) { - if(!GLAD_GL_ARB_texture_buffer_object) return; - glad_glTexBufferARB = (PFNGLTEXBUFFERARBPROC)load("glTexBufferARB"); -} -static void load_GL_ARB_texture_buffer_range(GLADloadproc load) { - if(!GLAD_GL_ARB_texture_buffer_range) return; - glad_glTexBufferRange = (PFNGLTEXBUFFERRANGEPROC)load("glTexBufferRange"); -} -static void load_GL_ARB_texture_compression(GLADloadproc load) { - if(!GLAD_GL_ARB_texture_compression) return; - glad_glCompressedTexImage3DARB = (PFNGLCOMPRESSEDTEXIMAGE3DARBPROC)load("glCompressedTexImage3DARB"); - glad_glCompressedTexImage2DARB = (PFNGLCOMPRESSEDTEXIMAGE2DARBPROC)load("glCompressedTexImage2DARB"); - glad_glCompressedTexImage1DARB = (PFNGLCOMPRESSEDTEXIMAGE1DARBPROC)load("glCompressedTexImage1DARB"); - glad_glCompressedTexSubImage3DARB = (PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC)load("glCompressedTexSubImage3DARB"); - glad_glCompressedTexSubImage2DARB = (PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC)load("glCompressedTexSubImage2DARB"); - glad_glCompressedTexSubImage1DARB = (PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC)load("glCompressedTexSubImage1DARB"); - glad_glGetCompressedTexImageARB = (PFNGLGETCOMPRESSEDTEXIMAGEARBPROC)load("glGetCompressedTexImageARB"); -} -static void load_GL_ARB_texture_multisample(GLADloadproc load) { - if(!GLAD_GL_ARB_texture_multisample) return; - glad_glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)load("glTexImage2DMultisample"); - glad_glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC)load("glTexImage3DMultisample"); - glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)load("glGetMultisamplefv"); - glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC)load("glSampleMaski"); -} -static void load_GL_ARB_texture_storage(GLADloadproc load) { - if(!GLAD_GL_ARB_texture_storage) return; - glad_glTexStorage1D = (PFNGLTEXSTORAGE1DPROC)load("glTexStorage1D"); - glad_glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)load("glTexStorage2D"); - glad_glTexStorage3D = (PFNGLTEXSTORAGE3DPROC)load("glTexStorage3D"); -} -static void load_GL_ARB_texture_storage_multisample(GLADloadproc load) { - if(!GLAD_GL_ARB_texture_storage_multisample) return; - glad_glTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC)load("glTexStorage2DMultisample"); - glad_glTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC)load("glTexStorage3DMultisample"); -} -static void load_GL_ARB_texture_view(GLADloadproc load) { - if(!GLAD_GL_ARB_texture_view) return; - glad_glTextureView = (PFNGLTEXTUREVIEWPROC)load("glTextureView"); -} -static void load_GL_ARB_timer_query(GLADloadproc load) { - if(!GLAD_GL_ARB_timer_query) return; - glad_glQueryCounter = (PFNGLQUERYCOUNTERPROC)load("glQueryCounter"); - glad_glGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC)load("glGetQueryObjecti64v"); - glad_glGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC)load("glGetQueryObjectui64v"); -} -static void load_GL_ARB_transform_feedback2(GLADloadproc load) { - if(!GLAD_GL_ARB_transform_feedback2) return; - glad_glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC)load("glBindTransformFeedback"); - glad_glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC)load("glDeleteTransformFeedbacks"); - glad_glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC)load("glGenTransformFeedbacks"); - glad_glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC)load("glIsTransformFeedback"); - glad_glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC)load("glPauseTransformFeedback"); - glad_glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC)load("glResumeTransformFeedback"); - glad_glDrawTransformFeedback = (PFNGLDRAWTRANSFORMFEEDBACKPROC)load("glDrawTransformFeedback"); -} -static void load_GL_ARB_transform_feedback3(GLADloadproc load) { - if(!GLAD_GL_ARB_transform_feedback3) return; - glad_glDrawTransformFeedbackStream = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC)load("glDrawTransformFeedbackStream"); - glad_glBeginQueryIndexed = (PFNGLBEGINQUERYINDEXEDPROC)load("glBeginQueryIndexed"); - glad_glEndQueryIndexed = (PFNGLENDQUERYINDEXEDPROC)load("glEndQueryIndexed"); - glad_glGetQueryIndexediv = (PFNGLGETQUERYINDEXEDIVPROC)load("glGetQueryIndexediv"); -} -static void load_GL_ARB_transform_feedback_instanced(GLADloadproc load) { - if(!GLAD_GL_ARB_transform_feedback_instanced) return; - glad_glDrawTransformFeedbackInstanced = (PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC)load("glDrawTransformFeedbackInstanced"); - glad_glDrawTransformFeedbackStreamInstanced = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC)load("glDrawTransformFeedbackStreamInstanced"); -} -static void load_GL_ARB_transpose_matrix(GLADloadproc load) { - if(!GLAD_GL_ARB_transpose_matrix) return; - glad_glLoadTransposeMatrixfARB = (PFNGLLOADTRANSPOSEMATRIXFARBPROC)load("glLoadTransposeMatrixfARB"); - glad_glLoadTransposeMatrixdARB = (PFNGLLOADTRANSPOSEMATRIXDARBPROC)load("glLoadTransposeMatrixdARB"); - glad_glMultTransposeMatrixfARB = (PFNGLMULTTRANSPOSEMATRIXFARBPROC)load("glMultTransposeMatrixfARB"); - glad_glMultTransposeMatrixdARB = (PFNGLMULTTRANSPOSEMATRIXDARBPROC)load("glMultTransposeMatrixdARB"); -} -static void load_GL_ARB_uniform_buffer_object(GLADloadproc load) { - if(!GLAD_GL_ARB_uniform_buffer_object) return; - glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)load("glGetUniformIndices"); - glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)load("glGetActiveUniformsiv"); - glad_glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC)load("glGetActiveUniformName"); - glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)load("glGetUniformBlockIndex"); - glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)load("glGetActiveUniformBlockiv"); - glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)load("glGetActiveUniformBlockName"); - glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)load("glUniformBlockBinding"); - glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange"); - glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase"); - glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v"); -} -static void load_GL_ARB_vertex_array_object(GLADloadproc load) { - if(!GLAD_GL_ARB_vertex_array_object) return; - glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)load("glBindVertexArray"); - glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)load("glDeleteVertexArrays"); - glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)load("glGenVertexArrays"); - glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC)load("glIsVertexArray"); -} -static void load_GL_ARB_vertex_attrib_64bit(GLADloadproc load) { - if(!GLAD_GL_ARB_vertex_attrib_64bit) return; - glad_glVertexAttribL1d = (PFNGLVERTEXATTRIBL1DPROC)load("glVertexAttribL1d"); - glad_glVertexAttribL2d = (PFNGLVERTEXATTRIBL2DPROC)load("glVertexAttribL2d"); - glad_glVertexAttribL3d = (PFNGLVERTEXATTRIBL3DPROC)load("glVertexAttribL3d"); - glad_glVertexAttribL4d = (PFNGLVERTEXATTRIBL4DPROC)load("glVertexAttribL4d"); - glad_glVertexAttribL1dv = (PFNGLVERTEXATTRIBL1DVPROC)load("glVertexAttribL1dv"); - glad_glVertexAttribL2dv = (PFNGLVERTEXATTRIBL2DVPROC)load("glVertexAttribL2dv"); - glad_glVertexAttribL3dv = (PFNGLVERTEXATTRIBL3DVPROC)load("glVertexAttribL3dv"); - glad_glVertexAttribL4dv = (PFNGLVERTEXATTRIBL4DVPROC)load("glVertexAttribL4dv"); - glad_glVertexAttribLPointer = (PFNGLVERTEXATTRIBLPOINTERPROC)load("glVertexAttribLPointer"); - glad_glGetVertexAttribLdv = (PFNGLGETVERTEXATTRIBLDVPROC)load("glGetVertexAttribLdv"); -} -static void load_GL_ARB_vertex_attrib_binding(GLADloadproc load) { - if(!GLAD_GL_ARB_vertex_attrib_binding) return; - glad_glBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC)load("glBindVertexBuffer"); - glad_glVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC)load("glVertexAttribFormat"); - glad_glVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC)load("glVertexAttribIFormat"); - glad_glVertexAttribLFormat = (PFNGLVERTEXATTRIBLFORMATPROC)load("glVertexAttribLFormat"); - glad_glVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC)load("glVertexAttribBinding"); - glad_glVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC)load("glVertexBindingDivisor"); -} -static void load_GL_ARB_vertex_blend(GLADloadproc load) { - if(!GLAD_GL_ARB_vertex_blend) return; - glad_glWeightbvARB = (PFNGLWEIGHTBVARBPROC)load("glWeightbvARB"); - glad_glWeightsvARB = (PFNGLWEIGHTSVARBPROC)load("glWeightsvARB"); - glad_glWeightivARB = (PFNGLWEIGHTIVARBPROC)load("glWeightivARB"); - glad_glWeightfvARB = (PFNGLWEIGHTFVARBPROC)load("glWeightfvARB"); - glad_glWeightdvARB = (PFNGLWEIGHTDVARBPROC)load("glWeightdvARB"); - glad_glWeightubvARB = (PFNGLWEIGHTUBVARBPROC)load("glWeightubvARB"); - glad_glWeightusvARB = (PFNGLWEIGHTUSVARBPROC)load("glWeightusvARB"); - glad_glWeightuivARB = (PFNGLWEIGHTUIVARBPROC)load("glWeightuivARB"); - glad_glWeightPointerARB = (PFNGLWEIGHTPOINTERARBPROC)load("glWeightPointerARB"); - glad_glVertexBlendARB = (PFNGLVERTEXBLENDARBPROC)load("glVertexBlendARB"); -} -static void load_GL_ARB_vertex_buffer_object(GLADloadproc load) { - if(!GLAD_GL_ARB_vertex_buffer_object) return; - glad_glBindBufferARB = (PFNGLBINDBUFFERARBPROC)load("glBindBufferARB"); - glad_glDeleteBuffersARB = (PFNGLDELETEBUFFERSARBPROC)load("glDeleteBuffersARB"); - glad_glGenBuffersARB = (PFNGLGENBUFFERSARBPROC)load("glGenBuffersARB"); - glad_glIsBufferARB = (PFNGLISBUFFERARBPROC)load("glIsBufferARB"); - glad_glBufferDataARB = (PFNGLBUFFERDATAARBPROC)load("glBufferDataARB"); - glad_glBufferSubDataARB = (PFNGLBUFFERSUBDATAARBPROC)load("glBufferSubDataARB"); - glad_glGetBufferSubDataARB = (PFNGLGETBUFFERSUBDATAARBPROC)load("glGetBufferSubDataARB"); - glad_glMapBufferARB = (PFNGLMAPBUFFERARBPROC)load("glMapBufferARB"); - glad_glUnmapBufferARB = (PFNGLUNMAPBUFFERARBPROC)load("glUnmapBufferARB"); - glad_glGetBufferParameterivARB = (PFNGLGETBUFFERPARAMETERIVARBPROC)load("glGetBufferParameterivARB"); - glad_glGetBufferPointervARB = (PFNGLGETBUFFERPOINTERVARBPROC)load("glGetBufferPointervARB"); -} -static void load_GL_ARB_vertex_program(GLADloadproc load) { - if(!GLAD_GL_ARB_vertex_program) return; - glad_glVertexAttrib1dARB = (PFNGLVERTEXATTRIB1DARBPROC)load("glVertexAttrib1dARB"); - glad_glVertexAttrib1dvARB = (PFNGLVERTEXATTRIB1DVARBPROC)load("glVertexAttrib1dvARB"); - glad_glVertexAttrib1fARB = (PFNGLVERTEXATTRIB1FARBPROC)load("glVertexAttrib1fARB"); - glad_glVertexAttrib1fvARB = (PFNGLVERTEXATTRIB1FVARBPROC)load("glVertexAttrib1fvARB"); - glad_glVertexAttrib1sARB = (PFNGLVERTEXATTRIB1SARBPROC)load("glVertexAttrib1sARB"); - glad_glVertexAttrib1svARB = (PFNGLVERTEXATTRIB1SVARBPROC)load("glVertexAttrib1svARB"); - glad_glVertexAttrib2dARB = (PFNGLVERTEXATTRIB2DARBPROC)load("glVertexAttrib2dARB"); - glad_glVertexAttrib2dvARB = (PFNGLVERTEXATTRIB2DVARBPROC)load("glVertexAttrib2dvARB"); - glad_glVertexAttrib2fARB = (PFNGLVERTEXATTRIB2FARBPROC)load("glVertexAttrib2fARB"); - glad_glVertexAttrib2fvARB = (PFNGLVERTEXATTRIB2FVARBPROC)load("glVertexAttrib2fvARB"); - glad_glVertexAttrib2sARB = (PFNGLVERTEXATTRIB2SARBPROC)load("glVertexAttrib2sARB"); - glad_glVertexAttrib2svARB = (PFNGLVERTEXATTRIB2SVARBPROC)load("glVertexAttrib2svARB"); - glad_glVertexAttrib3dARB = (PFNGLVERTEXATTRIB3DARBPROC)load("glVertexAttrib3dARB"); - glad_glVertexAttrib3dvARB = (PFNGLVERTEXATTRIB3DVARBPROC)load("glVertexAttrib3dvARB"); - glad_glVertexAttrib3fARB = (PFNGLVERTEXATTRIB3FARBPROC)load("glVertexAttrib3fARB"); - glad_glVertexAttrib3fvARB = (PFNGLVERTEXATTRIB3FVARBPROC)load("glVertexAttrib3fvARB"); - glad_glVertexAttrib3sARB = (PFNGLVERTEXATTRIB3SARBPROC)load("glVertexAttrib3sARB"); - glad_glVertexAttrib3svARB = (PFNGLVERTEXATTRIB3SVARBPROC)load("glVertexAttrib3svARB"); - glad_glVertexAttrib4NbvARB = (PFNGLVERTEXATTRIB4NBVARBPROC)load("glVertexAttrib4NbvARB"); - glad_glVertexAttrib4NivARB = (PFNGLVERTEXATTRIB4NIVARBPROC)load("glVertexAttrib4NivARB"); - glad_glVertexAttrib4NsvARB = (PFNGLVERTEXATTRIB4NSVARBPROC)load("glVertexAttrib4NsvARB"); - glad_glVertexAttrib4NubARB = (PFNGLVERTEXATTRIB4NUBARBPROC)load("glVertexAttrib4NubARB"); - glad_glVertexAttrib4NubvARB = (PFNGLVERTEXATTRIB4NUBVARBPROC)load("glVertexAttrib4NubvARB"); - glad_glVertexAttrib4NuivARB = (PFNGLVERTEXATTRIB4NUIVARBPROC)load("glVertexAttrib4NuivARB"); - glad_glVertexAttrib4NusvARB = (PFNGLVERTEXATTRIB4NUSVARBPROC)load("glVertexAttrib4NusvARB"); - glad_glVertexAttrib4bvARB = (PFNGLVERTEXATTRIB4BVARBPROC)load("glVertexAttrib4bvARB"); - glad_glVertexAttrib4dARB = (PFNGLVERTEXATTRIB4DARBPROC)load("glVertexAttrib4dARB"); - glad_glVertexAttrib4dvARB = (PFNGLVERTEXATTRIB4DVARBPROC)load("glVertexAttrib4dvARB"); - glad_glVertexAttrib4fARB = (PFNGLVERTEXATTRIB4FARBPROC)load("glVertexAttrib4fARB"); - glad_glVertexAttrib4fvARB = (PFNGLVERTEXATTRIB4FVARBPROC)load("glVertexAttrib4fvARB"); - glad_glVertexAttrib4ivARB = (PFNGLVERTEXATTRIB4IVARBPROC)load("glVertexAttrib4ivARB"); - glad_glVertexAttrib4sARB = (PFNGLVERTEXATTRIB4SARBPROC)load("glVertexAttrib4sARB"); - glad_glVertexAttrib4svARB = (PFNGLVERTEXATTRIB4SVARBPROC)load("glVertexAttrib4svARB"); - glad_glVertexAttrib4ubvARB = (PFNGLVERTEXATTRIB4UBVARBPROC)load("glVertexAttrib4ubvARB"); - glad_glVertexAttrib4uivARB = (PFNGLVERTEXATTRIB4UIVARBPROC)load("glVertexAttrib4uivARB"); - glad_glVertexAttrib4usvARB = (PFNGLVERTEXATTRIB4USVARBPROC)load("glVertexAttrib4usvARB"); - glad_glVertexAttribPointerARB = (PFNGLVERTEXATTRIBPOINTERARBPROC)load("glVertexAttribPointerARB"); - glad_glEnableVertexAttribArrayARB = (PFNGLENABLEVERTEXATTRIBARRAYARBPROC)load("glEnableVertexAttribArrayARB"); - glad_glDisableVertexAttribArrayARB = (PFNGLDISABLEVERTEXATTRIBARRAYARBPROC)load("glDisableVertexAttribArrayARB"); - glad_glProgramStringARB = (PFNGLPROGRAMSTRINGARBPROC)load("glProgramStringARB"); - glad_glBindProgramARB = (PFNGLBINDPROGRAMARBPROC)load("glBindProgramARB"); - glad_glDeleteProgramsARB = (PFNGLDELETEPROGRAMSARBPROC)load("glDeleteProgramsARB"); - glad_glGenProgramsARB = (PFNGLGENPROGRAMSARBPROC)load("glGenProgramsARB"); - glad_glProgramEnvParameter4dARB = (PFNGLPROGRAMENVPARAMETER4DARBPROC)load("glProgramEnvParameter4dARB"); - glad_glProgramEnvParameter4dvARB = (PFNGLPROGRAMENVPARAMETER4DVARBPROC)load("glProgramEnvParameter4dvARB"); - glad_glProgramEnvParameter4fARB = (PFNGLPROGRAMENVPARAMETER4FARBPROC)load("glProgramEnvParameter4fARB"); - glad_glProgramEnvParameter4fvARB = (PFNGLPROGRAMENVPARAMETER4FVARBPROC)load("glProgramEnvParameter4fvARB"); - glad_glProgramLocalParameter4dARB = (PFNGLPROGRAMLOCALPARAMETER4DARBPROC)load("glProgramLocalParameter4dARB"); - glad_glProgramLocalParameter4dvARB = (PFNGLPROGRAMLOCALPARAMETER4DVARBPROC)load("glProgramLocalParameter4dvARB"); - glad_glProgramLocalParameter4fARB = (PFNGLPROGRAMLOCALPARAMETER4FARBPROC)load("glProgramLocalParameter4fARB"); - glad_glProgramLocalParameter4fvARB = (PFNGLPROGRAMLOCALPARAMETER4FVARBPROC)load("glProgramLocalParameter4fvARB"); - glad_glGetProgramEnvParameterdvARB = (PFNGLGETPROGRAMENVPARAMETERDVARBPROC)load("glGetProgramEnvParameterdvARB"); - glad_glGetProgramEnvParameterfvARB = (PFNGLGETPROGRAMENVPARAMETERFVARBPROC)load("glGetProgramEnvParameterfvARB"); - glad_glGetProgramLocalParameterdvARB = (PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC)load("glGetProgramLocalParameterdvARB"); - glad_glGetProgramLocalParameterfvARB = (PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC)load("glGetProgramLocalParameterfvARB"); - glad_glGetProgramivARB = (PFNGLGETPROGRAMIVARBPROC)load("glGetProgramivARB"); - glad_glGetProgramStringARB = (PFNGLGETPROGRAMSTRINGARBPROC)load("glGetProgramStringARB"); - glad_glGetVertexAttribdvARB = (PFNGLGETVERTEXATTRIBDVARBPROC)load("glGetVertexAttribdvARB"); - glad_glGetVertexAttribfvARB = (PFNGLGETVERTEXATTRIBFVARBPROC)load("glGetVertexAttribfvARB"); - glad_glGetVertexAttribivARB = (PFNGLGETVERTEXATTRIBIVARBPROC)load("glGetVertexAttribivARB"); - glad_glGetVertexAttribPointervARB = (PFNGLGETVERTEXATTRIBPOINTERVARBPROC)load("glGetVertexAttribPointervARB"); - glad_glIsProgramARB = (PFNGLISPROGRAMARBPROC)load("glIsProgramARB"); -} -static void load_GL_ARB_vertex_shader(GLADloadproc load) { - if(!GLAD_GL_ARB_vertex_shader) return; - glad_glVertexAttrib1fARB = (PFNGLVERTEXATTRIB1FARBPROC)load("glVertexAttrib1fARB"); - glad_glVertexAttrib1sARB = (PFNGLVERTEXATTRIB1SARBPROC)load("glVertexAttrib1sARB"); - glad_glVertexAttrib1dARB = (PFNGLVERTEXATTRIB1DARBPROC)load("glVertexAttrib1dARB"); - glad_glVertexAttrib2fARB = (PFNGLVERTEXATTRIB2FARBPROC)load("glVertexAttrib2fARB"); - glad_glVertexAttrib2sARB = (PFNGLVERTEXATTRIB2SARBPROC)load("glVertexAttrib2sARB"); - glad_glVertexAttrib2dARB = (PFNGLVERTEXATTRIB2DARBPROC)load("glVertexAttrib2dARB"); - glad_glVertexAttrib3fARB = (PFNGLVERTEXATTRIB3FARBPROC)load("glVertexAttrib3fARB"); - glad_glVertexAttrib3sARB = (PFNGLVERTEXATTRIB3SARBPROC)load("glVertexAttrib3sARB"); - glad_glVertexAttrib3dARB = (PFNGLVERTEXATTRIB3DARBPROC)load("glVertexAttrib3dARB"); - glad_glVertexAttrib4fARB = (PFNGLVERTEXATTRIB4FARBPROC)load("glVertexAttrib4fARB"); - glad_glVertexAttrib4sARB = (PFNGLVERTEXATTRIB4SARBPROC)load("glVertexAttrib4sARB"); - glad_glVertexAttrib4dARB = (PFNGLVERTEXATTRIB4DARBPROC)load("glVertexAttrib4dARB"); - glad_glVertexAttrib4NubARB = (PFNGLVERTEXATTRIB4NUBARBPROC)load("glVertexAttrib4NubARB"); - glad_glVertexAttrib1fvARB = (PFNGLVERTEXATTRIB1FVARBPROC)load("glVertexAttrib1fvARB"); - glad_glVertexAttrib1svARB = (PFNGLVERTEXATTRIB1SVARBPROC)load("glVertexAttrib1svARB"); - glad_glVertexAttrib1dvARB = (PFNGLVERTEXATTRIB1DVARBPROC)load("glVertexAttrib1dvARB"); - glad_glVertexAttrib2fvARB = (PFNGLVERTEXATTRIB2FVARBPROC)load("glVertexAttrib2fvARB"); - glad_glVertexAttrib2svARB = (PFNGLVERTEXATTRIB2SVARBPROC)load("glVertexAttrib2svARB"); - glad_glVertexAttrib2dvARB = (PFNGLVERTEXATTRIB2DVARBPROC)load("glVertexAttrib2dvARB"); - glad_glVertexAttrib3fvARB = (PFNGLVERTEXATTRIB3FVARBPROC)load("glVertexAttrib3fvARB"); - glad_glVertexAttrib3svARB = (PFNGLVERTEXATTRIB3SVARBPROC)load("glVertexAttrib3svARB"); - glad_glVertexAttrib3dvARB = (PFNGLVERTEXATTRIB3DVARBPROC)load("glVertexAttrib3dvARB"); - glad_glVertexAttrib4fvARB = (PFNGLVERTEXATTRIB4FVARBPROC)load("glVertexAttrib4fvARB"); - glad_glVertexAttrib4svARB = (PFNGLVERTEXATTRIB4SVARBPROC)load("glVertexAttrib4svARB"); - glad_glVertexAttrib4dvARB = (PFNGLVERTEXATTRIB4DVARBPROC)load("glVertexAttrib4dvARB"); - glad_glVertexAttrib4ivARB = (PFNGLVERTEXATTRIB4IVARBPROC)load("glVertexAttrib4ivARB"); - glad_glVertexAttrib4bvARB = (PFNGLVERTEXATTRIB4BVARBPROC)load("glVertexAttrib4bvARB"); - glad_glVertexAttrib4ubvARB = (PFNGLVERTEXATTRIB4UBVARBPROC)load("glVertexAttrib4ubvARB"); - glad_glVertexAttrib4usvARB = (PFNGLVERTEXATTRIB4USVARBPROC)load("glVertexAttrib4usvARB"); - glad_glVertexAttrib4uivARB = (PFNGLVERTEXATTRIB4UIVARBPROC)load("glVertexAttrib4uivARB"); - glad_glVertexAttrib4NbvARB = (PFNGLVERTEXATTRIB4NBVARBPROC)load("glVertexAttrib4NbvARB"); - glad_glVertexAttrib4NsvARB = (PFNGLVERTEXATTRIB4NSVARBPROC)load("glVertexAttrib4NsvARB"); - glad_glVertexAttrib4NivARB = (PFNGLVERTEXATTRIB4NIVARBPROC)load("glVertexAttrib4NivARB"); - glad_glVertexAttrib4NubvARB = (PFNGLVERTEXATTRIB4NUBVARBPROC)load("glVertexAttrib4NubvARB"); - glad_glVertexAttrib4NusvARB = (PFNGLVERTEXATTRIB4NUSVARBPROC)load("glVertexAttrib4NusvARB"); - glad_glVertexAttrib4NuivARB = (PFNGLVERTEXATTRIB4NUIVARBPROC)load("glVertexAttrib4NuivARB"); - glad_glVertexAttribPointerARB = (PFNGLVERTEXATTRIBPOINTERARBPROC)load("glVertexAttribPointerARB"); - glad_glEnableVertexAttribArrayARB = (PFNGLENABLEVERTEXATTRIBARRAYARBPROC)load("glEnableVertexAttribArrayARB"); - glad_glDisableVertexAttribArrayARB = (PFNGLDISABLEVERTEXATTRIBARRAYARBPROC)load("glDisableVertexAttribArrayARB"); - glad_glBindAttribLocationARB = (PFNGLBINDATTRIBLOCATIONARBPROC)load("glBindAttribLocationARB"); - glad_glGetActiveAttribARB = (PFNGLGETACTIVEATTRIBARBPROC)load("glGetActiveAttribARB"); - glad_glGetAttribLocationARB = (PFNGLGETATTRIBLOCATIONARBPROC)load("glGetAttribLocationARB"); - glad_glGetVertexAttribdvARB = (PFNGLGETVERTEXATTRIBDVARBPROC)load("glGetVertexAttribdvARB"); - glad_glGetVertexAttribfvARB = (PFNGLGETVERTEXATTRIBFVARBPROC)load("glGetVertexAttribfvARB"); - glad_glGetVertexAttribivARB = (PFNGLGETVERTEXATTRIBIVARBPROC)load("glGetVertexAttribivARB"); - glad_glGetVertexAttribPointervARB = (PFNGLGETVERTEXATTRIBPOINTERVARBPROC)load("glGetVertexAttribPointervARB"); -} -static void load_GL_ARB_vertex_type_2_10_10_10_rev(GLADloadproc load) { - if(!GLAD_GL_ARB_vertex_type_2_10_10_10_rev) return; - glad_glVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC)load("glVertexAttribP1ui"); - glad_glVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC)load("glVertexAttribP1uiv"); - glad_glVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC)load("glVertexAttribP2ui"); - glad_glVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC)load("glVertexAttribP2uiv"); - glad_glVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC)load("glVertexAttribP3ui"); - glad_glVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC)load("glVertexAttribP3uiv"); - glad_glVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC)load("glVertexAttribP4ui"); - glad_glVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC)load("glVertexAttribP4uiv"); - glad_glVertexP2ui = (PFNGLVERTEXP2UIPROC)load("glVertexP2ui"); - glad_glVertexP2uiv = (PFNGLVERTEXP2UIVPROC)load("glVertexP2uiv"); - glad_glVertexP3ui = (PFNGLVERTEXP3UIPROC)load("glVertexP3ui"); - glad_glVertexP3uiv = (PFNGLVERTEXP3UIVPROC)load("glVertexP3uiv"); - glad_glVertexP4ui = (PFNGLVERTEXP4UIPROC)load("glVertexP4ui"); - glad_glVertexP4uiv = (PFNGLVERTEXP4UIVPROC)load("glVertexP4uiv"); - glad_glTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC)load("glTexCoordP1ui"); - glad_glTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC)load("glTexCoordP1uiv"); - glad_glTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC)load("glTexCoordP2ui"); - glad_glTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC)load("glTexCoordP2uiv"); - glad_glTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC)load("glTexCoordP3ui"); - glad_glTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC)load("glTexCoordP3uiv"); - glad_glTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC)load("glTexCoordP4ui"); - glad_glTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC)load("glTexCoordP4uiv"); - glad_glMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC)load("glMultiTexCoordP1ui"); - glad_glMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC)load("glMultiTexCoordP1uiv"); - glad_glMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC)load("glMultiTexCoordP2ui"); - glad_glMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC)load("glMultiTexCoordP2uiv"); - glad_glMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC)load("glMultiTexCoordP3ui"); - glad_glMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC)load("glMultiTexCoordP3uiv"); - glad_glMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC)load("glMultiTexCoordP4ui"); - glad_glMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC)load("glMultiTexCoordP4uiv"); - glad_glNormalP3ui = (PFNGLNORMALP3UIPROC)load("glNormalP3ui"); - glad_glNormalP3uiv = (PFNGLNORMALP3UIVPROC)load("glNormalP3uiv"); - glad_glColorP3ui = (PFNGLCOLORP3UIPROC)load("glColorP3ui"); - glad_glColorP3uiv = (PFNGLCOLORP3UIVPROC)load("glColorP3uiv"); - glad_glColorP4ui = (PFNGLCOLORP4UIPROC)load("glColorP4ui"); - glad_glColorP4uiv = (PFNGLCOLORP4UIVPROC)load("glColorP4uiv"); - glad_glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC)load("glSecondaryColorP3ui"); - glad_glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC)load("glSecondaryColorP3uiv"); -} -static void load_GL_ARB_viewport_array(GLADloadproc load) { - if(!GLAD_GL_ARB_viewport_array) return; - glad_glViewportArrayv = (PFNGLVIEWPORTARRAYVPROC)load("glViewportArrayv"); - glad_glViewportIndexedf = (PFNGLVIEWPORTINDEXEDFPROC)load("glViewportIndexedf"); - glad_glViewportIndexedfv = (PFNGLVIEWPORTINDEXEDFVPROC)load("glViewportIndexedfv"); - glad_glScissorArrayv = (PFNGLSCISSORARRAYVPROC)load("glScissorArrayv"); - glad_glScissorIndexed = (PFNGLSCISSORINDEXEDPROC)load("glScissorIndexed"); - glad_glScissorIndexedv = (PFNGLSCISSORINDEXEDVPROC)load("glScissorIndexedv"); - glad_glDepthRangeArrayv = (PFNGLDEPTHRANGEARRAYVPROC)load("glDepthRangeArrayv"); - glad_glDepthRangeIndexed = (PFNGLDEPTHRANGEINDEXEDPROC)load("glDepthRangeIndexed"); - glad_glGetFloati_v = (PFNGLGETFLOATI_VPROC)load("glGetFloati_v"); - glad_glGetDoublei_v = (PFNGLGETDOUBLEI_VPROC)load("glGetDoublei_v"); -} -static void load_GL_ARB_window_pos(GLADloadproc load) { - if(!GLAD_GL_ARB_window_pos) return; - glad_glWindowPos2dARB = (PFNGLWINDOWPOS2DARBPROC)load("glWindowPos2dARB"); - glad_glWindowPos2dvARB = (PFNGLWINDOWPOS2DVARBPROC)load("glWindowPos2dvARB"); - glad_glWindowPos2fARB = (PFNGLWINDOWPOS2FARBPROC)load("glWindowPos2fARB"); - glad_glWindowPos2fvARB = (PFNGLWINDOWPOS2FVARBPROC)load("glWindowPos2fvARB"); - glad_glWindowPos2iARB = (PFNGLWINDOWPOS2IARBPROC)load("glWindowPos2iARB"); - glad_glWindowPos2ivARB = (PFNGLWINDOWPOS2IVARBPROC)load("glWindowPos2ivARB"); - glad_glWindowPos2sARB = (PFNGLWINDOWPOS2SARBPROC)load("glWindowPos2sARB"); - glad_glWindowPos2svARB = (PFNGLWINDOWPOS2SVARBPROC)load("glWindowPos2svARB"); - glad_glWindowPos3dARB = (PFNGLWINDOWPOS3DARBPROC)load("glWindowPos3dARB"); - glad_glWindowPos3dvARB = (PFNGLWINDOWPOS3DVARBPROC)load("glWindowPos3dvARB"); - glad_glWindowPos3fARB = (PFNGLWINDOWPOS3FARBPROC)load("glWindowPos3fARB"); - glad_glWindowPos3fvARB = (PFNGLWINDOWPOS3FVARBPROC)load("glWindowPos3fvARB"); - glad_glWindowPos3iARB = (PFNGLWINDOWPOS3IARBPROC)load("glWindowPos3iARB"); - glad_glWindowPos3ivARB = (PFNGLWINDOWPOS3IVARBPROC)load("glWindowPos3ivARB"); - glad_glWindowPos3sARB = (PFNGLWINDOWPOS3SARBPROC)load("glWindowPos3sARB"); - glad_glWindowPos3svARB = (PFNGLWINDOWPOS3SVARBPROC)load("glWindowPos3svARB"); -} -static void load_GL_ATI_draw_buffers(GLADloadproc load) { - if(!GLAD_GL_ATI_draw_buffers) return; - glad_glDrawBuffersATI = (PFNGLDRAWBUFFERSATIPROC)load("glDrawBuffersATI"); -} -static void load_GL_ATI_element_array(GLADloadproc load) { - if(!GLAD_GL_ATI_element_array) return; - glad_glElementPointerATI = (PFNGLELEMENTPOINTERATIPROC)load("glElementPointerATI"); - glad_glDrawElementArrayATI = (PFNGLDRAWELEMENTARRAYATIPROC)load("glDrawElementArrayATI"); - glad_glDrawRangeElementArrayATI = (PFNGLDRAWRANGEELEMENTARRAYATIPROC)load("glDrawRangeElementArrayATI"); -} -static void load_GL_ATI_envmap_bumpmap(GLADloadproc load) { - if(!GLAD_GL_ATI_envmap_bumpmap) return; - glad_glTexBumpParameterivATI = (PFNGLTEXBUMPPARAMETERIVATIPROC)load("glTexBumpParameterivATI"); - glad_glTexBumpParameterfvATI = (PFNGLTEXBUMPPARAMETERFVATIPROC)load("glTexBumpParameterfvATI"); - glad_glGetTexBumpParameterivATI = (PFNGLGETTEXBUMPPARAMETERIVATIPROC)load("glGetTexBumpParameterivATI"); - glad_glGetTexBumpParameterfvATI = (PFNGLGETTEXBUMPPARAMETERFVATIPROC)load("glGetTexBumpParameterfvATI"); -} -static void load_GL_ATI_fragment_shader(GLADloadproc load) { - if(!GLAD_GL_ATI_fragment_shader) return; - glad_glGenFragmentShadersATI = (PFNGLGENFRAGMENTSHADERSATIPROC)load("glGenFragmentShadersATI"); - glad_glBindFragmentShaderATI = (PFNGLBINDFRAGMENTSHADERATIPROC)load("glBindFragmentShaderATI"); - glad_glDeleteFragmentShaderATI = (PFNGLDELETEFRAGMENTSHADERATIPROC)load("glDeleteFragmentShaderATI"); - glad_glBeginFragmentShaderATI = (PFNGLBEGINFRAGMENTSHADERATIPROC)load("glBeginFragmentShaderATI"); - glad_glEndFragmentShaderATI = (PFNGLENDFRAGMENTSHADERATIPROC)load("glEndFragmentShaderATI"); - glad_glPassTexCoordATI = (PFNGLPASSTEXCOORDATIPROC)load("glPassTexCoordATI"); - glad_glSampleMapATI = (PFNGLSAMPLEMAPATIPROC)load("glSampleMapATI"); - glad_glColorFragmentOp1ATI = (PFNGLCOLORFRAGMENTOP1ATIPROC)load("glColorFragmentOp1ATI"); - glad_glColorFragmentOp2ATI = (PFNGLCOLORFRAGMENTOP2ATIPROC)load("glColorFragmentOp2ATI"); - glad_glColorFragmentOp3ATI = (PFNGLCOLORFRAGMENTOP3ATIPROC)load("glColorFragmentOp3ATI"); - glad_glAlphaFragmentOp1ATI = (PFNGLALPHAFRAGMENTOP1ATIPROC)load("glAlphaFragmentOp1ATI"); - glad_glAlphaFragmentOp2ATI = (PFNGLALPHAFRAGMENTOP2ATIPROC)load("glAlphaFragmentOp2ATI"); - glad_glAlphaFragmentOp3ATI = (PFNGLALPHAFRAGMENTOP3ATIPROC)load("glAlphaFragmentOp3ATI"); - glad_glSetFragmentShaderConstantATI = (PFNGLSETFRAGMENTSHADERCONSTANTATIPROC)load("glSetFragmentShaderConstantATI"); -} -static void load_GL_ATI_map_object_buffer(GLADloadproc load) { - if(!GLAD_GL_ATI_map_object_buffer) return; - glad_glMapObjectBufferATI = (PFNGLMAPOBJECTBUFFERATIPROC)load("glMapObjectBufferATI"); - glad_glUnmapObjectBufferATI = (PFNGLUNMAPOBJECTBUFFERATIPROC)load("glUnmapObjectBufferATI"); -} -static void load_GL_ATI_pn_triangles(GLADloadproc load) { - if(!GLAD_GL_ATI_pn_triangles) return; - glad_glPNTrianglesiATI = (PFNGLPNTRIANGLESIATIPROC)load("glPNTrianglesiATI"); - glad_glPNTrianglesfATI = (PFNGLPNTRIANGLESFATIPROC)load("glPNTrianglesfATI"); -} -static void load_GL_ATI_separate_stencil(GLADloadproc load) { - if(!GLAD_GL_ATI_separate_stencil) return; - glad_glStencilOpSeparateATI = (PFNGLSTENCILOPSEPARATEATIPROC)load("glStencilOpSeparateATI"); - glad_glStencilFuncSeparateATI = (PFNGLSTENCILFUNCSEPARATEATIPROC)load("glStencilFuncSeparateATI"); -} -static void load_GL_ATI_vertex_array_object(GLADloadproc load) { - if(!GLAD_GL_ATI_vertex_array_object) return; - glad_glNewObjectBufferATI = (PFNGLNEWOBJECTBUFFERATIPROC)load("glNewObjectBufferATI"); - glad_glIsObjectBufferATI = (PFNGLISOBJECTBUFFERATIPROC)load("glIsObjectBufferATI"); - glad_glUpdateObjectBufferATI = (PFNGLUPDATEOBJECTBUFFERATIPROC)load("glUpdateObjectBufferATI"); - glad_glGetObjectBufferfvATI = (PFNGLGETOBJECTBUFFERFVATIPROC)load("glGetObjectBufferfvATI"); - glad_glGetObjectBufferivATI = (PFNGLGETOBJECTBUFFERIVATIPROC)load("glGetObjectBufferivATI"); - glad_glFreeObjectBufferATI = (PFNGLFREEOBJECTBUFFERATIPROC)load("glFreeObjectBufferATI"); - glad_glArrayObjectATI = (PFNGLARRAYOBJECTATIPROC)load("glArrayObjectATI"); - glad_glGetArrayObjectfvATI = (PFNGLGETARRAYOBJECTFVATIPROC)load("glGetArrayObjectfvATI"); - glad_glGetArrayObjectivATI = (PFNGLGETARRAYOBJECTIVATIPROC)load("glGetArrayObjectivATI"); - glad_glVariantArrayObjectATI = (PFNGLVARIANTARRAYOBJECTATIPROC)load("glVariantArrayObjectATI"); - glad_glGetVariantArrayObjectfvATI = (PFNGLGETVARIANTARRAYOBJECTFVATIPROC)load("glGetVariantArrayObjectfvATI"); - glad_glGetVariantArrayObjectivATI = (PFNGLGETVARIANTARRAYOBJECTIVATIPROC)load("glGetVariantArrayObjectivATI"); -} -static void load_GL_ATI_vertex_attrib_array_object(GLADloadproc load) { - if(!GLAD_GL_ATI_vertex_attrib_array_object) return; - glad_glVertexAttribArrayObjectATI = (PFNGLVERTEXATTRIBARRAYOBJECTATIPROC)load("glVertexAttribArrayObjectATI"); - glad_glGetVertexAttribArrayObjectfvATI = (PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC)load("glGetVertexAttribArrayObjectfvATI"); - glad_glGetVertexAttribArrayObjectivATI = (PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC)load("glGetVertexAttribArrayObjectivATI"); -} -static void load_GL_ATI_vertex_streams(GLADloadproc load) { - if(!GLAD_GL_ATI_vertex_streams) return; - glad_glVertexStream1sATI = (PFNGLVERTEXSTREAM1SATIPROC)load("glVertexStream1sATI"); - glad_glVertexStream1svATI = (PFNGLVERTEXSTREAM1SVATIPROC)load("glVertexStream1svATI"); - glad_glVertexStream1iATI = (PFNGLVERTEXSTREAM1IATIPROC)load("glVertexStream1iATI"); - glad_glVertexStream1ivATI = (PFNGLVERTEXSTREAM1IVATIPROC)load("glVertexStream1ivATI"); - glad_glVertexStream1fATI = (PFNGLVERTEXSTREAM1FATIPROC)load("glVertexStream1fATI"); - glad_glVertexStream1fvATI = (PFNGLVERTEXSTREAM1FVATIPROC)load("glVertexStream1fvATI"); - glad_glVertexStream1dATI = (PFNGLVERTEXSTREAM1DATIPROC)load("glVertexStream1dATI"); - glad_glVertexStream1dvATI = (PFNGLVERTEXSTREAM1DVATIPROC)load("glVertexStream1dvATI"); - glad_glVertexStream2sATI = (PFNGLVERTEXSTREAM2SATIPROC)load("glVertexStream2sATI"); - glad_glVertexStream2svATI = (PFNGLVERTEXSTREAM2SVATIPROC)load("glVertexStream2svATI"); - glad_glVertexStream2iATI = (PFNGLVERTEXSTREAM2IATIPROC)load("glVertexStream2iATI"); - glad_glVertexStream2ivATI = (PFNGLVERTEXSTREAM2IVATIPROC)load("glVertexStream2ivATI"); - glad_glVertexStream2fATI = (PFNGLVERTEXSTREAM2FATIPROC)load("glVertexStream2fATI"); - glad_glVertexStream2fvATI = (PFNGLVERTEXSTREAM2FVATIPROC)load("glVertexStream2fvATI"); - glad_glVertexStream2dATI = (PFNGLVERTEXSTREAM2DATIPROC)load("glVertexStream2dATI"); - glad_glVertexStream2dvATI = (PFNGLVERTEXSTREAM2DVATIPROC)load("glVertexStream2dvATI"); - glad_glVertexStream3sATI = (PFNGLVERTEXSTREAM3SATIPROC)load("glVertexStream3sATI"); - glad_glVertexStream3svATI = (PFNGLVERTEXSTREAM3SVATIPROC)load("glVertexStream3svATI"); - glad_glVertexStream3iATI = (PFNGLVERTEXSTREAM3IATIPROC)load("glVertexStream3iATI"); - glad_glVertexStream3ivATI = (PFNGLVERTEXSTREAM3IVATIPROC)load("glVertexStream3ivATI"); - glad_glVertexStream3fATI = (PFNGLVERTEXSTREAM3FATIPROC)load("glVertexStream3fATI"); - glad_glVertexStream3fvATI = (PFNGLVERTEXSTREAM3FVATIPROC)load("glVertexStream3fvATI"); - glad_glVertexStream3dATI = (PFNGLVERTEXSTREAM3DATIPROC)load("glVertexStream3dATI"); - glad_glVertexStream3dvATI = (PFNGLVERTEXSTREAM3DVATIPROC)load("glVertexStream3dvATI"); - glad_glVertexStream4sATI = (PFNGLVERTEXSTREAM4SATIPROC)load("glVertexStream4sATI"); - glad_glVertexStream4svATI = (PFNGLVERTEXSTREAM4SVATIPROC)load("glVertexStream4svATI"); - glad_glVertexStream4iATI = (PFNGLVERTEXSTREAM4IATIPROC)load("glVertexStream4iATI"); - glad_glVertexStream4ivATI = (PFNGLVERTEXSTREAM4IVATIPROC)load("glVertexStream4ivATI"); - glad_glVertexStream4fATI = (PFNGLVERTEXSTREAM4FATIPROC)load("glVertexStream4fATI"); - glad_glVertexStream4fvATI = (PFNGLVERTEXSTREAM4FVATIPROC)load("glVertexStream4fvATI"); - glad_glVertexStream4dATI = (PFNGLVERTEXSTREAM4DATIPROC)load("glVertexStream4dATI"); - glad_glVertexStream4dvATI = (PFNGLVERTEXSTREAM4DVATIPROC)load("glVertexStream4dvATI"); - glad_glNormalStream3bATI = (PFNGLNORMALSTREAM3BATIPROC)load("glNormalStream3bATI"); - glad_glNormalStream3bvATI = (PFNGLNORMALSTREAM3BVATIPROC)load("glNormalStream3bvATI"); - glad_glNormalStream3sATI = (PFNGLNORMALSTREAM3SATIPROC)load("glNormalStream3sATI"); - glad_glNormalStream3svATI = (PFNGLNORMALSTREAM3SVATIPROC)load("glNormalStream3svATI"); - glad_glNormalStream3iATI = (PFNGLNORMALSTREAM3IATIPROC)load("glNormalStream3iATI"); - glad_glNormalStream3ivATI = (PFNGLNORMALSTREAM3IVATIPROC)load("glNormalStream3ivATI"); - glad_glNormalStream3fATI = (PFNGLNORMALSTREAM3FATIPROC)load("glNormalStream3fATI"); - glad_glNormalStream3fvATI = (PFNGLNORMALSTREAM3FVATIPROC)load("glNormalStream3fvATI"); - glad_glNormalStream3dATI = (PFNGLNORMALSTREAM3DATIPROC)load("glNormalStream3dATI"); - glad_glNormalStream3dvATI = (PFNGLNORMALSTREAM3DVATIPROC)load("glNormalStream3dvATI"); - glad_glClientActiveVertexStreamATI = (PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC)load("glClientActiveVertexStreamATI"); - glad_glVertexBlendEnviATI = (PFNGLVERTEXBLENDENVIATIPROC)load("glVertexBlendEnviATI"); - glad_glVertexBlendEnvfATI = (PFNGLVERTEXBLENDENVFATIPROC)load("glVertexBlendEnvfATI"); -} -static void load_GL_EXT_EGL_image_storage(GLADloadproc load) { - if(!GLAD_GL_EXT_EGL_image_storage) return; - glad_glEGLImageTargetTexStorageEXT = (PFNGLEGLIMAGETARGETTEXSTORAGEEXTPROC)load("glEGLImageTargetTexStorageEXT"); - glad_glEGLImageTargetTextureStorageEXT = (PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC)load("glEGLImageTargetTextureStorageEXT"); -} -static void load_GL_EXT_bindable_uniform(GLADloadproc load) { - if(!GLAD_GL_EXT_bindable_uniform) return; - glad_glUniformBufferEXT = (PFNGLUNIFORMBUFFEREXTPROC)load("glUniformBufferEXT"); - glad_glGetUniformBufferSizeEXT = (PFNGLGETUNIFORMBUFFERSIZEEXTPROC)load("glGetUniformBufferSizeEXT"); - glad_glGetUniformOffsetEXT = (PFNGLGETUNIFORMOFFSETEXTPROC)load("glGetUniformOffsetEXT"); -} -static void load_GL_EXT_blend_color(GLADloadproc load) { - if(!GLAD_GL_EXT_blend_color) return; - glad_glBlendColorEXT = (PFNGLBLENDCOLOREXTPROC)load("glBlendColorEXT"); -} -static void load_GL_EXT_blend_equation_separate(GLADloadproc load) { - if(!GLAD_GL_EXT_blend_equation_separate) return; - glad_glBlendEquationSeparateEXT = (PFNGLBLENDEQUATIONSEPARATEEXTPROC)load("glBlendEquationSeparateEXT"); -} -static void load_GL_EXT_blend_func_separate(GLADloadproc load) { - if(!GLAD_GL_EXT_blend_func_separate) return; - glad_glBlendFuncSeparateEXT = (PFNGLBLENDFUNCSEPARATEEXTPROC)load("glBlendFuncSeparateEXT"); -} -static void load_GL_EXT_blend_minmax(GLADloadproc load) { - if(!GLAD_GL_EXT_blend_minmax) return; - glad_glBlendEquationEXT = (PFNGLBLENDEQUATIONEXTPROC)load("glBlendEquationEXT"); -} -static void load_GL_EXT_color_subtable(GLADloadproc load) { - if(!GLAD_GL_EXT_color_subtable) return; - glad_glColorSubTableEXT = (PFNGLCOLORSUBTABLEEXTPROC)load("glColorSubTableEXT"); - glad_glCopyColorSubTableEXT = (PFNGLCOPYCOLORSUBTABLEEXTPROC)load("glCopyColorSubTableEXT"); -} -static void load_GL_EXT_compiled_vertex_array(GLADloadproc load) { - if(!GLAD_GL_EXT_compiled_vertex_array) return; - glad_glLockArraysEXT = (PFNGLLOCKARRAYSEXTPROC)load("glLockArraysEXT"); - glad_glUnlockArraysEXT = (PFNGLUNLOCKARRAYSEXTPROC)load("glUnlockArraysEXT"); -} -static void load_GL_EXT_convolution(GLADloadproc load) { - if(!GLAD_GL_EXT_convolution) return; - glad_glConvolutionFilter1DEXT = (PFNGLCONVOLUTIONFILTER1DEXTPROC)load("glConvolutionFilter1DEXT"); - glad_glConvolutionFilter2DEXT = (PFNGLCONVOLUTIONFILTER2DEXTPROC)load("glConvolutionFilter2DEXT"); - glad_glConvolutionParameterfEXT = (PFNGLCONVOLUTIONPARAMETERFEXTPROC)load("glConvolutionParameterfEXT"); - glad_glConvolutionParameterfvEXT = (PFNGLCONVOLUTIONPARAMETERFVEXTPROC)load("glConvolutionParameterfvEXT"); - glad_glConvolutionParameteriEXT = (PFNGLCONVOLUTIONPARAMETERIEXTPROC)load("glConvolutionParameteriEXT"); - glad_glConvolutionParameterivEXT = (PFNGLCONVOLUTIONPARAMETERIVEXTPROC)load("glConvolutionParameterivEXT"); - glad_glCopyConvolutionFilter1DEXT = (PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC)load("glCopyConvolutionFilter1DEXT"); - glad_glCopyConvolutionFilter2DEXT = (PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC)load("glCopyConvolutionFilter2DEXT"); - glad_glGetConvolutionFilterEXT = (PFNGLGETCONVOLUTIONFILTEREXTPROC)load("glGetConvolutionFilterEXT"); - glad_glGetConvolutionParameterfvEXT = (PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC)load("glGetConvolutionParameterfvEXT"); - glad_glGetConvolutionParameterivEXT = (PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC)load("glGetConvolutionParameterivEXT"); - glad_glGetSeparableFilterEXT = (PFNGLGETSEPARABLEFILTEREXTPROC)load("glGetSeparableFilterEXT"); - glad_glSeparableFilter2DEXT = (PFNGLSEPARABLEFILTER2DEXTPROC)load("glSeparableFilter2DEXT"); -} -static void load_GL_EXT_coordinate_frame(GLADloadproc load) { - if(!GLAD_GL_EXT_coordinate_frame) return; - glad_glTangent3bEXT = (PFNGLTANGENT3BEXTPROC)load("glTangent3bEXT"); - glad_glTangent3bvEXT = (PFNGLTANGENT3BVEXTPROC)load("glTangent3bvEXT"); - glad_glTangent3dEXT = (PFNGLTANGENT3DEXTPROC)load("glTangent3dEXT"); - glad_glTangent3dvEXT = (PFNGLTANGENT3DVEXTPROC)load("glTangent3dvEXT"); - glad_glTangent3fEXT = (PFNGLTANGENT3FEXTPROC)load("glTangent3fEXT"); - glad_glTangent3fvEXT = (PFNGLTANGENT3FVEXTPROC)load("glTangent3fvEXT"); - glad_glTangent3iEXT = (PFNGLTANGENT3IEXTPROC)load("glTangent3iEXT"); - glad_glTangent3ivEXT = (PFNGLTANGENT3IVEXTPROC)load("glTangent3ivEXT"); - glad_glTangent3sEXT = (PFNGLTANGENT3SEXTPROC)load("glTangent3sEXT"); - glad_glTangent3svEXT = (PFNGLTANGENT3SVEXTPROC)load("glTangent3svEXT"); - glad_glBinormal3bEXT = (PFNGLBINORMAL3BEXTPROC)load("glBinormal3bEXT"); - glad_glBinormal3bvEXT = (PFNGLBINORMAL3BVEXTPROC)load("glBinormal3bvEXT"); - glad_glBinormal3dEXT = (PFNGLBINORMAL3DEXTPROC)load("glBinormal3dEXT"); - glad_glBinormal3dvEXT = (PFNGLBINORMAL3DVEXTPROC)load("glBinormal3dvEXT"); - glad_glBinormal3fEXT = (PFNGLBINORMAL3FEXTPROC)load("glBinormal3fEXT"); - glad_glBinormal3fvEXT = (PFNGLBINORMAL3FVEXTPROC)load("glBinormal3fvEXT"); - glad_glBinormal3iEXT = (PFNGLBINORMAL3IEXTPROC)load("glBinormal3iEXT"); - glad_glBinormal3ivEXT = (PFNGLBINORMAL3IVEXTPROC)load("glBinormal3ivEXT"); - glad_glBinormal3sEXT = (PFNGLBINORMAL3SEXTPROC)load("glBinormal3sEXT"); - glad_glBinormal3svEXT = (PFNGLBINORMAL3SVEXTPROC)load("glBinormal3svEXT"); - glad_glTangentPointerEXT = (PFNGLTANGENTPOINTEREXTPROC)load("glTangentPointerEXT"); - glad_glBinormalPointerEXT = (PFNGLBINORMALPOINTEREXTPROC)load("glBinormalPointerEXT"); -} -static void load_GL_EXT_copy_texture(GLADloadproc load) { - if(!GLAD_GL_EXT_copy_texture) return; - glad_glCopyTexImage1DEXT = (PFNGLCOPYTEXIMAGE1DEXTPROC)load("glCopyTexImage1DEXT"); - glad_glCopyTexImage2DEXT = (PFNGLCOPYTEXIMAGE2DEXTPROC)load("glCopyTexImage2DEXT"); - glad_glCopyTexSubImage1DEXT = (PFNGLCOPYTEXSUBIMAGE1DEXTPROC)load("glCopyTexSubImage1DEXT"); - glad_glCopyTexSubImage2DEXT = (PFNGLCOPYTEXSUBIMAGE2DEXTPROC)load("glCopyTexSubImage2DEXT"); - glad_glCopyTexSubImage3DEXT = (PFNGLCOPYTEXSUBIMAGE3DEXTPROC)load("glCopyTexSubImage3DEXT"); -} -static void load_GL_EXT_cull_vertex(GLADloadproc load) { - if(!GLAD_GL_EXT_cull_vertex) return; - glad_glCullParameterdvEXT = (PFNGLCULLPARAMETERDVEXTPROC)load("glCullParameterdvEXT"); - glad_glCullParameterfvEXT = (PFNGLCULLPARAMETERFVEXTPROC)load("glCullParameterfvEXT"); -} -static void load_GL_EXT_debug_label(GLADloadproc load) { - if(!GLAD_GL_EXT_debug_label) return; - glad_glLabelObjectEXT = (PFNGLLABELOBJECTEXTPROC)load("glLabelObjectEXT"); - glad_glGetObjectLabelEXT = (PFNGLGETOBJECTLABELEXTPROC)load("glGetObjectLabelEXT"); -} -static void load_GL_EXT_debug_marker(GLADloadproc load) { - if(!GLAD_GL_EXT_debug_marker) return; - glad_glInsertEventMarkerEXT = (PFNGLINSERTEVENTMARKEREXTPROC)load("glInsertEventMarkerEXT"); - glad_glPushGroupMarkerEXT = (PFNGLPUSHGROUPMARKEREXTPROC)load("glPushGroupMarkerEXT"); - glad_glPopGroupMarkerEXT = (PFNGLPOPGROUPMARKEREXTPROC)load("glPopGroupMarkerEXT"); -} -static void load_GL_EXT_depth_bounds_test(GLADloadproc load) { - if(!GLAD_GL_EXT_depth_bounds_test) return; - glad_glDepthBoundsEXT = (PFNGLDEPTHBOUNDSEXTPROC)load("glDepthBoundsEXT"); -} -static void load_GL_EXT_direct_state_access(GLADloadproc load) { - if(!GLAD_GL_EXT_direct_state_access) return; - glad_glMatrixLoadfEXT = (PFNGLMATRIXLOADFEXTPROC)load("glMatrixLoadfEXT"); - glad_glMatrixLoaddEXT = (PFNGLMATRIXLOADDEXTPROC)load("glMatrixLoaddEXT"); - glad_glMatrixMultfEXT = (PFNGLMATRIXMULTFEXTPROC)load("glMatrixMultfEXT"); - glad_glMatrixMultdEXT = (PFNGLMATRIXMULTDEXTPROC)load("glMatrixMultdEXT"); - glad_glMatrixLoadIdentityEXT = (PFNGLMATRIXLOADIDENTITYEXTPROC)load("glMatrixLoadIdentityEXT"); - glad_glMatrixRotatefEXT = (PFNGLMATRIXROTATEFEXTPROC)load("glMatrixRotatefEXT"); - glad_glMatrixRotatedEXT = (PFNGLMATRIXROTATEDEXTPROC)load("glMatrixRotatedEXT"); - glad_glMatrixScalefEXT = (PFNGLMATRIXSCALEFEXTPROC)load("glMatrixScalefEXT"); - glad_glMatrixScaledEXT = (PFNGLMATRIXSCALEDEXTPROC)load("glMatrixScaledEXT"); - glad_glMatrixTranslatefEXT = (PFNGLMATRIXTRANSLATEFEXTPROC)load("glMatrixTranslatefEXT"); - glad_glMatrixTranslatedEXT = (PFNGLMATRIXTRANSLATEDEXTPROC)load("glMatrixTranslatedEXT"); - glad_glMatrixFrustumEXT = (PFNGLMATRIXFRUSTUMEXTPROC)load("glMatrixFrustumEXT"); - glad_glMatrixOrthoEXT = (PFNGLMATRIXORTHOEXTPROC)load("glMatrixOrthoEXT"); - glad_glMatrixPopEXT = (PFNGLMATRIXPOPEXTPROC)load("glMatrixPopEXT"); - glad_glMatrixPushEXT = (PFNGLMATRIXPUSHEXTPROC)load("glMatrixPushEXT"); - glad_glClientAttribDefaultEXT = (PFNGLCLIENTATTRIBDEFAULTEXTPROC)load("glClientAttribDefaultEXT"); - glad_glPushClientAttribDefaultEXT = (PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC)load("glPushClientAttribDefaultEXT"); - glad_glTextureParameterfEXT = (PFNGLTEXTUREPARAMETERFEXTPROC)load("glTextureParameterfEXT"); - glad_glTextureParameterfvEXT = (PFNGLTEXTUREPARAMETERFVEXTPROC)load("glTextureParameterfvEXT"); - glad_glTextureParameteriEXT = (PFNGLTEXTUREPARAMETERIEXTPROC)load("glTextureParameteriEXT"); - glad_glTextureParameterivEXT = (PFNGLTEXTUREPARAMETERIVEXTPROC)load("glTextureParameterivEXT"); - glad_glTextureImage1DEXT = (PFNGLTEXTUREIMAGE1DEXTPROC)load("glTextureImage1DEXT"); - glad_glTextureImage2DEXT = (PFNGLTEXTUREIMAGE2DEXTPROC)load("glTextureImage2DEXT"); - glad_glTextureSubImage1DEXT = (PFNGLTEXTURESUBIMAGE1DEXTPROC)load("glTextureSubImage1DEXT"); - glad_glTextureSubImage2DEXT = (PFNGLTEXTURESUBIMAGE2DEXTPROC)load("glTextureSubImage2DEXT"); - glad_glCopyTextureImage1DEXT = (PFNGLCOPYTEXTUREIMAGE1DEXTPROC)load("glCopyTextureImage1DEXT"); - glad_glCopyTextureImage2DEXT = (PFNGLCOPYTEXTUREIMAGE2DEXTPROC)load("glCopyTextureImage2DEXT"); - glad_glCopyTextureSubImage1DEXT = (PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC)load("glCopyTextureSubImage1DEXT"); - glad_glCopyTextureSubImage2DEXT = (PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC)load("glCopyTextureSubImage2DEXT"); - glad_glGetTextureImageEXT = (PFNGLGETTEXTUREIMAGEEXTPROC)load("glGetTextureImageEXT"); - glad_glGetTextureParameterfvEXT = (PFNGLGETTEXTUREPARAMETERFVEXTPROC)load("glGetTextureParameterfvEXT"); - glad_glGetTextureParameterivEXT = (PFNGLGETTEXTUREPARAMETERIVEXTPROC)load("glGetTextureParameterivEXT"); - glad_glGetTextureLevelParameterfvEXT = (PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC)load("glGetTextureLevelParameterfvEXT"); - glad_glGetTextureLevelParameterivEXT = (PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC)load("glGetTextureLevelParameterivEXT"); - glad_glTextureImage3DEXT = (PFNGLTEXTUREIMAGE3DEXTPROC)load("glTextureImage3DEXT"); - glad_glTextureSubImage3DEXT = (PFNGLTEXTURESUBIMAGE3DEXTPROC)load("glTextureSubImage3DEXT"); - glad_glCopyTextureSubImage3DEXT = (PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC)load("glCopyTextureSubImage3DEXT"); - glad_glBindMultiTextureEXT = (PFNGLBINDMULTITEXTUREEXTPROC)load("glBindMultiTextureEXT"); - glad_glMultiTexCoordPointerEXT = (PFNGLMULTITEXCOORDPOINTEREXTPROC)load("glMultiTexCoordPointerEXT"); - glad_glMultiTexEnvfEXT = (PFNGLMULTITEXENVFEXTPROC)load("glMultiTexEnvfEXT"); - glad_glMultiTexEnvfvEXT = (PFNGLMULTITEXENVFVEXTPROC)load("glMultiTexEnvfvEXT"); - glad_glMultiTexEnviEXT = (PFNGLMULTITEXENVIEXTPROC)load("glMultiTexEnviEXT"); - glad_glMultiTexEnvivEXT = (PFNGLMULTITEXENVIVEXTPROC)load("glMultiTexEnvivEXT"); - glad_glMultiTexGendEXT = (PFNGLMULTITEXGENDEXTPROC)load("glMultiTexGendEXT"); - glad_glMultiTexGendvEXT = (PFNGLMULTITEXGENDVEXTPROC)load("glMultiTexGendvEXT"); - glad_glMultiTexGenfEXT = (PFNGLMULTITEXGENFEXTPROC)load("glMultiTexGenfEXT"); - glad_glMultiTexGenfvEXT = (PFNGLMULTITEXGENFVEXTPROC)load("glMultiTexGenfvEXT"); - glad_glMultiTexGeniEXT = (PFNGLMULTITEXGENIEXTPROC)load("glMultiTexGeniEXT"); - glad_glMultiTexGenivEXT = (PFNGLMULTITEXGENIVEXTPROC)load("glMultiTexGenivEXT"); - glad_glGetMultiTexEnvfvEXT = (PFNGLGETMULTITEXENVFVEXTPROC)load("glGetMultiTexEnvfvEXT"); - glad_glGetMultiTexEnvivEXT = (PFNGLGETMULTITEXENVIVEXTPROC)load("glGetMultiTexEnvivEXT"); - glad_glGetMultiTexGendvEXT = (PFNGLGETMULTITEXGENDVEXTPROC)load("glGetMultiTexGendvEXT"); - glad_glGetMultiTexGenfvEXT = (PFNGLGETMULTITEXGENFVEXTPROC)load("glGetMultiTexGenfvEXT"); - glad_glGetMultiTexGenivEXT = (PFNGLGETMULTITEXGENIVEXTPROC)load("glGetMultiTexGenivEXT"); - glad_glMultiTexParameteriEXT = (PFNGLMULTITEXPARAMETERIEXTPROC)load("glMultiTexParameteriEXT"); - glad_glMultiTexParameterivEXT = (PFNGLMULTITEXPARAMETERIVEXTPROC)load("glMultiTexParameterivEXT"); - glad_glMultiTexParameterfEXT = (PFNGLMULTITEXPARAMETERFEXTPROC)load("glMultiTexParameterfEXT"); - glad_glMultiTexParameterfvEXT = (PFNGLMULTITEXPARAMETERFVEXTPROC)load("glMultiTexParameterfvEXT"); - glad_glMultiTexImage1DEXT = (PFNGLMULTITEXIMAGE1DEXTPROC)load("glMultiTexImage1DEXT"); - glad_glMultiTexImage2DEXT = (PFNGLMULTITEXIMAGE2DEXTPROC)load("glMultiTexImage2DEXT"); - glad_glMultiTexSubImage1DEXT = (PFNGLMULTITEXSUBIMAGE1DEXTPROC)load("glMultiTexSubImage1DEXT"); - glad_glMultiTexSubImage2DEXT = (PFNGLMULTITEXSUBIMAGE2DEXTPROC)load("glMultiTexSubImage2DEXT"); - glad_glCopyMultiTexImage1DEXT = (PFNGLCOPYMULTITEXIMAGE1DEXTPROC)load("glCopyMultiTexImage1DEXT"); - glad_glCopyMultiTexImage2DEXT = (PFNGLCOPYMULTITEXIMAGE2DEXTPROC)load("glCopyMultiTexImage2DEXT"); - glad_glCopyMultiTexSubImage1DEXT = (PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC)load("glCopyMultiTexSubImage1DEXT"); - glad_glCopyMultiTexSubImage2DEXT = (PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC)load("glCopyMultiTexSubImage2DEXT"); - glad_glGetMultiTexImageEXT = (PFNGLGETMULTITEXIMAGEEXTPROC)load("glGetMultiTexImageEXT"); - glad_glGetMultiTexParameterfvEXT = (PFNGLGETMULTITEXPARAMETERFVEXTPROC)load("glGetMultiTexParameterfvEXT"); - glad_glGetMultiTexParameterivEXT = (PFNGLGETMULTITEXPARAMETERIVEXTPROC)load("glGetMultiTexParameterivEXT"); - glad_glGetMultiTexLevelParameterfvEXT = (PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC)load("glGetMultiTexLevelParameterfvEXT"); - glad_glGetMultiTexLevelParameterivEXT = (PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC)load("glGetMultiTexLevelParameterivEXT"); - glad_glMultiTexImage3DEXT = (PFNGLMULTITEXIMAGE3DEXTPROC)load("glMultiTexImage3DEXT"); - glad_glMultiTexSubImage3DEXT = (PFNGLMULTITEXSUBIMAGE3DEXTPROC)load("glMultiTexSubImage3DEXT"); - glad_glCopyMultiTexSubImage3DEXT = (PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC)load("glCopyMultiTexSubImage3DEXT"); - glad_glEnableClientStateIndexedEXT = (PFNGLENABLECLIENTSTATEINDEXEDEXTPROC)load("glEnableClientStateIndexedEXT"); - glad_glDisableClientStateIndexedEXT = (PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC)load("glDisableClientStateIndexedEXT"); - glad_glGetFloatIndexedvEXT = (PFNGLGETFLOATINDEXEDVEXTPROC)load("glGetFloatIndexedvEXT"); - glad_glGetDoubleIndexedvEXT = (PFNGLGETDOUBLEINDEXEDVEXTPROC)load("glGetDoubleIndexedvEXT"); - glad_glGetPointerIndexedvEXT = (PFNGLGETPOINTERINDEXEDVEXTPROC)load("glGetPointerIndexedvEXT"); - glad_glEnableIndexedEXT = (PFNGLENABLEINDEXEDEXTPROC)load("glEnableIndexedEXT"); - glad_glDisableIndexedEXT = (PFNGLDISABLEINDEXEDEXTPROC)load("glDisableIndexedEXT"); - glad_glIsEnabledIndexedEXT = (PFNGLISENABLEDINDEXEDEXTPROC)load("glIsEnabledIndexedEXT"); - glad_glGetIntegerIndexedvEXT = (PFNGLGETINTEGERINDEXEDVEXTPROC)load("glGetIntegerIndexedvEXT"); - glad_glGetBooleanIndexedvEXT = (PFNGLGETBOOLEANINDEXEDVEXTPROC)load("glGetBooleanIndexedvEXT"); - glad_glCompressedTextureImage3DEXT = (PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC)load("glCompressedTextureImage3DEXT"); - glad_glCompressedTextureImage2DEXT = (PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC)load("glCompressedTextureImage2DEXT"); - glad_glCompressedTextureImage1DEXT = (PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC)load("glCompressedTextureImage1DEXT"); - glad_glCompressedTextureSubImage3DEXT = (PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC)load("glCompressedTextureSubImage3DEXT"); - glad_glCompressedTextureSubImage2DEXT = (PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC)load("glCompressedTextureSubImage2DEXT"); - glad_glCompressedTextureSubImage1DEXT = (PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC)load("glCompressedTextureSubImage1DEXT"); - glad_glGetCompressedTextureImageEXT = (PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC)load("glGetCompressedTextureImageEXT"); - glad_glCompressedMultiTexImage3DEXT = (PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC)load("glCompressedMultiTexImage3DEXT"); - glad_glCompressedMultiTexImage2DEXT = (PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC)load("glCompressedMultiTexImage2DEXT"); - glad_glCompressedMultiTexImage1DEXT = (PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC)load("glCompressedMultiTexImage1DEXT"); - glad_glCompressedMultiTexSubImage3DEXT = (PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC)load("glCompressedMultiTexSubImage3DEXT"); - glad_glCompressedMultiTexSubImage2DEXT = (PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC)load("glCompressedMultiTexSubImage2DEXT"); - glad_glCompressedMultiTexSubImage1DEXT = (PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC)load("glCompressedMultiTexSubImage1DEXT"); - glad_glGetCompressedMultiTexImageEXT = (PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC)load("glGetCompressedMultiTexImageEXT"); - glad_glMatrixLoadTransposefEXT = (PFNGLMATRIXLOADTRANSPOSEFEXTPROC)load("glMatrixLoadTransposefEXT"); - glad_glMatrixLoadTransposedEXT = (PFNGLMATRIXLOADTRANSPOSEDEXTPROC)load("glMatrixLoadTransposedEXT"); - glad_glMatrixMultTransposefEXT = (PFNGLMATRIXMULTTRANSPOSEFEXTPROC)load("glMatrixMultTransposefEXT"); - glad_glMatrixMultTransposedEXT = (PFNGLMATRIXMULTTRANSPOSEDEXTPROC)load("glMatrixMultTransposedEXT"); - glad_glNamedBufferDataEXT = (PFNGLNAMEDBUFFERDATAEXTPROC)load("glNamedBufferDataEXT"); - glad_glNamedBufferSubDataEXT = (PFNGLNAMEDBUFFERSUBDATAEXTPROC)load("glNamedBufferSubDataEXT"); - glad_glMapNamedBufferEXT = (PFNGLMAPNAMEDBUFFEREXTPROC)load("glMapNamedBufferEXT"); - glad_glUnmapNamedBufferEXT = (PFNGLUNMAPNAMEDBUFFEREXTPROC)load("glUnmapNamedBufferEXT"); - glad_glGetNamedBufferParameterivEXT = (PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC)load("glGetNamedBufferParameterivEXT"); - glad_glGetNamedBufferPointervEXT = (PFNGLGETNAMEDBUFFERPOINTERVEXTPROC)load("glGetNamedBufferPointervEXT"); - glad_glGetNamedBufferSubDataEXT = (PFNGLGETNAMEDBUFFERSUBDATAEXTPROC)load("glGetNamedBufferSubDataEXT"); - glad_glProgramUniform1fEXT = (PFNGLPROGRAMUNIFORM1FEXTPROC)load("glProgramUniform1fEXT"); - glad_glProgramUniform2fEXT = (PFNGLPROGRAMUNIFORM2FEXTPROC)load("glProgramUniform2fEXT"); - glad_glProgramUniform3fEXT = (PFNGLPROGRAMUNIFORM3FEXTPROC)load("glProgramUniform3fEXT"); - glad_glProgramUniform4fEXT = (PFNGLPROGRAMUNIFORM4FEXTPROC)load("glProgramUniform4fEXT"); - glad_glProgramUniform1iEXT = (PFNGLPROGRAMUNIFORM1IEXTPROC)load("glProgramUniform1iEXT"); - glad_glProgramUniform2iEXT = (PFNGLPROGRAMUNIFORM2IEXTPROC)load("glProgramUniform2iEXT"); - glad_glProgramUniform3iEXT = (PFNGLPROGRAMUNIFORM3IEXTPROC)load("glProgramUniform3iEXT"); - glad_glProgramUniform4iEXT = (PFNGLPROGRAMUNIFORM4IEXTPROC)load("glProgramUniform4iEXT"); - glad_glProgramUniform1fvEXT = (PFNGLPROGRAMUNIFORM1FVEXTPROC)load("glProgramUniform1fvEXT"); - glad_glProgramUniform2fvEXT = (PFNGLPROGRAMUNIFORM2FVEXTPROC)load("glProgramUniform2fvEXT"); - glad_glProgramUniform3fvEXT = (PFNGLPROGRAMUNIFORM3FVEXTPROC)load("glProgramUniform3fvEXT"); - glad_glProgramUniform4fvEXT = (PFNGLPROGRAMUNIFORM4FVEXTPROC)load("glProgramUniform4fvEXT"); - glad_glProgramUniform1ivEXT = (PFNGLPROGRAMUNIFORM1IVEXTPROC)load("glProgramUniform1ivEXT"); - glad_glProgramUniform2ivEXT = (PFNGLPROGRAMUNIFORM2IVEXTPROC)load("glProgramUniform2ivEXT"); - glad_glProgramUniform3ivEXT = (PFNGLPROGRAMUNIFORM3IVEXTPROC)load("glProgramUniform3ivEXT"); - glad_glProgramUniform4ivEXT = (PFNGLPROGRAMUNIFORM4IVEXTPROC)load("glProgramUniform4ivEXT"); - glad_glProgramUniformMatrix2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC)load("glProgramUniformMatrix2fvEXT"); - glad_glProgramUniformMatrix3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC)load("glProgramUniformMatrix3fvEXT"); - glad_glProgramUniformMatrix4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC)load("glProgramUniformMatrix4fvEXT"); - glad_glProgramUniformMatrix2x3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC)load("glProgramUniformMatrix2x3fvEXT"); - glad_glProgramUniformMatrix3x2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC)load("glProgramUniformMatrix3x2fvEXT"); - glad_glProgramUniformMatrix2x4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC)load("glProgramUniformMatrix2x4fvEXT"); - glad_glProgramUniformMatrix4x2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC)load("glProgramUniformMatrix4x2fvEXT"); - glad_glProgramUniformMatrix3x4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC)load("glProgramUniformMatrix3x4fvEXT"); - glad_glProgramUniformMatrix4x3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC)load("glProgramUniformMatrix4x3fvEXT"); - glad_glTextureBufferEXT = (PFNGLTEXTUREBUFFEREXTPROC)load("glTextureBufferEXT"); - glad_glMultiTexBufferEXT = (PFNGLMULTITEXBUFFEREXTPROC)load("glMultiTexBufferEXT"); - glad_glTextureParameterIivEXT = (PFNGLTEXTUREPARAMETERIIVEXTPROC)load("glTextureParameterIivEXT"); - glad_glTextureParameterIuivEXT = (PFNGLTEXTUREPARAMETERIUIVEXTPROC)load("glTextureParameterIuivEXT"); - glad_glGetTextureParameterIivEXT = (PFNGLGETTEXTUREPARAMETERIIVEXTPROC)load("glGetTextureParameterIivEXT"); - glad_glGetTextureParameterIuivEXT = (PFNGLGETTEXTUREPARAMETERIUIVEXTPROC)load("glGetTextureParameterIuivEXT"); - glad_glMultiTexParameterIivEXT = (PFNGLMULTITEXPARAMETERIIVEXTPROC)load("glMultiTexParameterIivEXT"); - glad_glMultiTexParameterIuivEXT = (PFNGLMULTITEXPARAMETERIUIVEXTPROC)load("glMultiTexParameterIuivEXT"); - glad_glGetMultiTexParameterIivEXT = (PFNGLGETMULTITEXPARAMETERIIVEXTPROC)load("glGetMultiTexParameterIivEXT"); - glad_glGetMultiTexParameterIuivEXT = (PFNGLGETMULTITEXPARAMETERIUIVEXTPROC)load("glGetMultiTexParameterIuivEXT"); - glad_glProgramUniform1uiEXT = (PFNGLPROGRAMUNIFORM1UIEXTPROC)load("glProgramUniform1uiEXT"); - glad_glProgramUniform2uiEXT = (PFNGLPROGRAMUNIFORM2UIEXTPROC)load("glProgramUniform2uiEXT"); - glad_glProgramUniform3uiEXT = (PFNGLPROGRAMUNIFORM3UIEXTPROC)load("glProgramUniform3uiEXT"); - glad_glProgramUniform4uiEXT = (PFNGLPROGRAMUNIFORM4UIEXTPROC)load("glProgramUniform4uiEXT"); - glad_glProgramUniform1uivEXT = (PFNGLPROGRAMUNIFORM1UIVEXTPROC)load("glProgramUniform1uivEXT"); - glad_glProgramUniform2uivEXT = (PFNGLPROGRAMUNIFORM2UIVEXTPROC)load("glProgramUniform2uivEXT"); - glad_glProgramUniform3uivEXT = (PFNGLPROGRAMUNIFORM3UIVEXTPROC)load("glProgramUniform3uivEXT"); - glad_glProgramUniform4uivEXT = (PFNGLPROGRAMUNIFORM4UIVEXTPROC)load("glProgramUniform4uivEXT"); - glad_glNamedProgramLocalParameters4fvEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC)load("glNamedProgramLocalParameters4fvEXT"); - glad_glNamedProgramLocalParameterI4iEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC)load("glNamedProgramLocalParameterI4iEXT"); - glad_glNamedProgramLocalParameterI4ivEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC)load("glNamedProgramLocalParameterI4ivEXT"); - glad_glNamedProgramLocalParametersI4ivEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC)load("glNamedProgramLocalParametersI4ivEXT"); - glad_glNamedProgramLocalParameterI4uiEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC)load("glNamedProgramLocalParameterI4uiEXT"); - glad_glNamedProgramLocalParameterI4uivEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC)load("glNamedProgramLocalParameterI4uivEXT"); - glad_glNamedProgramLocalParametersI4uivEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC)load("glNamedProgramLocalParametersI4uivEXT"); - glad_glGetNamedProgramLocalParameterIivEXT = (PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC)load("glGetNamedProgramLocalParameterIivEXT"); - glad_glGetNamedProgramLocalParameterIuivEXT = (PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC)load("glGetNamedProgramLocalParameterIuivEXT"); - glad_glEnableClientStateiEXT = (PFNGLENABLECLIENTSTATEIEXTPROC)load("glEnableClientStateiEXT"); - glad_glDisableClientStateiEXT = (PFNGLDISABLECLIENTSTATEIEXTPROC)load("glDisableClientStateiEXT"); - glad_glGetFloati_vEXT = (PFNGLGETFLOATI_VEXTPROC)load("glGetFloati_vEXT"); - glad_glGetDoublei_vEXT = (PFNGLGETDOUBLEI_VEXTPROC)load("glGetDoublei_vEXT"); - glad_glGetPointeri_vEXT = (PFNGLGETPOINTERI_VEXTPROC)load("glGetPointeri_vEXT"); - glad_glNamedProgramStringEXT = (PFNGLNAMEDPROGRAMSTRINGEXTPROC)load("glNamedProgramStringEXT"); - glad_glNamedProgramLocalParameter4dEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC)load("glNamedProgramLocalParameter4dEXT"); - glad_glNamedProgramLocalParameter4dvEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC)load("glNamedProgramLocalParameter4dvEXT"); - glad_glNamedProgramLocalParameter4fEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC)load("glNamedProgramLocalParameter4fEXT"); - glad_glNamedProgramLocalParameter4fvEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC)load("glNamedProgramLocalParameter4fvEXT"); - glad_glGetNamedProgramLocalParameterdvEXT = (PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC)load("glGetNamedProgramLocalParameterdvEXT"); - glad_glGetNamedProgramLocalParameterfvEXT = (PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC)load("glGetNamedProgramLocalParameterfvEXT"); - glad_glGetNamedProgramivEXT = (PFNGLGETNAMEDPROGRAMIVEXTPROC)load("glGetNamedProgramivEXT"); - glad_glGetNamedProgramStringEXT = (PFNGLGETNAMEDPROGRAMSTRINGEXTPROC)load("glGetNamedProgramStringEXT"); - glad_glNamedRenderbufferStorageEXT = (PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC)load("glNamedRenderbufferStorageEXT"); - glad_glGetNamedRenderbufferParameterivEXT = (PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC)load("glGetNamedRenderbufferParameterivEXT"); - glad_glNamedRenderbufferStorageMultisampleEXT = (PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC)load("glNamedRenderbufferStorageMultisampleEXT"); - glad_glNamedRenderbufferStorageMultisampleCoverageEXT = (PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC)load("glNamedRenderbufferStorageMultisampleCoverageEXT"); - glad_glCheckNamedFramebufferStatusEXT = (PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC)load("glCheckNamedFramebufferStatusEXT"); - glad_glNamedFramebufferTexture1DEXT = (PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC)load("glNamedFramebufferTexture1DEXT"); - glad_glNamedFramebufferTexture2DEXT = (PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC)load("glNamedFramebufferTexture2DEXT"); - glad_glNamedFramebufferTexture3DEXT = (PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC)load("glNamedFramebufferTexture3DEXT"); - glad_glNamedFramebufferRenderbufferEXT = (PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC)load("glNamedFramebufferRenderbufferEXT"); - glad_glGetNamedFramebufferAttachmentParameterivEXT = (PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC)load("glGetNamedFramebufferAttachmentParameterivEXT"); - glad_glGenerateTextureMipmapEXT = (PFNGLGENERATETEXTUREMIPMAPEXTPROC)load("glGenerateTextureMipmapEXT"); - glad_glGenerateMultiTexMipmapEXT = (PFNGLGENERATEMULTITEXMIPMAPEXTPROC)load("glGenerateMultiTexMipmapEXT"); - glad_glFramebufferDrawBufferEXT = (PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC)load("glFramebufferDrawBufferEXT"); - glad_glFramebufferDrawBuffersEXT = (PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC)load("glFramebufferDrawBuffersEXT"); - glad_glFramebufferReadBufferEXT = (PFNGLFRAMEBUFFERREADBUFFEREXTPROC)load("glFramebufferReadBufferEXT"); - glad_glGetFramebufferParameterivEXT = (PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC)load("glGetFramebufferParameterivEXT"); - glad_glNamedCopyBufferSubDataEXT = (PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC)load("glNamedCopyBufferSubDataEXT"); - glad_glNamedFramebufferTextureEXT = (PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC)load("glNamedFramebufferTextureEXT"); - glad_glNamedFramebufferTextureLayerEXT = (PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC)load("glNamedFramebufferTextureLayerEXT"); - glad_glNamedFramebufferTextureFaceEXT = (PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC)load("glNamedFramebufferTextureFaceEXT"); - glad_glTextureRenderbufferEXT = (PFNGLTEXTURERENDERBUFFEREXTPROC)load("glTextureRenderbufferEXT"); - glad_glMultiTexRenderbufferEXT = (PFNGLMULTITEXRENDERBUFFEREXTPROC)load("glMultiTexRenderbufferEXT"); - glad_glVertexArrayVertexOffsetEXT = (PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC)load("glVertexArrayVertexOffsetEXT"); - glad_glVertexArrayColorOffsetEXT = (PFNGLVERTEXARRAYCOLOROFFSETEXTPROC)load("glVertexArrayColorOffsetEXT"); - glad_glVertexArrayEdgeFlagOffsetEXT = (PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC)load("glVertexArrayEdgeFlagOffsetEXT"); - glad_glVertexArrayIndexOffsetEXT = (PFNGLVERTEXARRAYINDEXOFFSETEXTPROC)load("glVertexArrayIndexOffsetEXT"); - glad_glVertexArrayNormalOffsetEXT = (PFNGLVERTEXARRAYNORMALOFFSETEXTPROC)load("glVertexArrayNormalOffsetEXT"); - glad_glVertexArrayTexCoordOffsetEXT = (PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC)load("glVertexArrayTexCoordOffsetEXT"); - glad_glVertexArrayMultiTexCoordOffsetEXT = (PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC)load("glVertexArrayMultiTexCoordOffsetEXT"); - glad_glVertexArrayFogCoordOffsetEXT = (PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC)load("glVertexArrayFogCoordOffsetEXT"); - glad_glVertexArraySecondaryColorOffsetEXT = (PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC)load("glVertexArraySecondaryColorOffsetEXT"); - glad_glVertexArrayVertexAttribOffsetEXT = (PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC)load("glVertexArrayVertexAttribOffsetEXT"); - glad_glVertexArrayVertexAttribIOffsetEXT = (PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC)load("glVertexArrayVertexAttribIOffsetEXT"); - glad_glEnableVertexArrayEXT = (PFNGLENABLEVERTEXARRAYEXTPROC)load("glEnableVertexArrayEXT"); - glad_glDisableVertexArrayEXT = (PFNGLDISABLEVERTEXARRAYEXTPROC)load("glDisableVertexArrayEXT"); - glad_glEnableVertexArrayAttribEXT = (PFNGLENABLEVERTEXARRAYATTRIBEXTPROC)load("glEnableVertexArrayAttribEXT"); - glad_glDisableVertexArrayAttribEXT = (PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC)load("glDisableVertexArrayAttribEXT"); - glad_glGetVertexArrayIntegervEXT = (PFNGLGETVERTEXARRAYINTEGERVEXTPROC)load("glGetVertexArrayIntegervEXT"); - glad_glGetVertexArrayPointervEXT = (PFNGLGETVERTEXARRAYPOINTERVEXTPROC)load("glGetVertexArrayPointervEXT"); - glad_glGetVertexArrayIntegeri_vEXT = (PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC)load("glGetVertexArrayIntegeri_vEXT"); - glad_glGetVertexArrayPointeri_vEXT = (PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC)load("glGetVertexArrayPointeri_vEXT"); - glad_glMapNamedBufferRangeEXT = (PFNGLMAPNAMEDBUFFERRANGEEXTPROC)load("glMapNamedBufferRangeEXT"); - glad_glFlushMappedNamedBufferRangeEXT = (PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC)load("glFlushMappedNamedBufferRangeEXT"); - glad_glNamedBufferStorageEXT = (PFNGLNAMEDBUFFERSTORAGEEXTPROC)load("glNamedBufferStorageEXT"); - glad_glClearNamedBufferDataEXT = (PFNGLCLEARNAMEDBUFFERDATAEXTPROC)load("glClearNamedBufferDataEXT"); - glad_glClearNamedBufferSubDataEXT = (PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC)load("glClearNamedBufferSubDataEXT"); - glad_glNamedFramebufferParameteriEXT = (PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC)load("glNamedFramebufferParameteriEXT"); - glad_glGetNamedFramebufferParameterivEXT = (PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC)load("glGetNamedFramebufferParameterivEXT"); - glad_glProgramUniform1dEXT = (PFNGLPROGRAMUNIFORM1DEXTPROC)load("glProgramUniform1dEXT"); - glad_glProgramUniform2dEXT = (PFNGLPROGRAMUNIFORM2DEXTPROC)load("glProgramUniform2dEXT"); - glad_glProgramUniform3dEXT = (PFNGLPROGRAMUNIFORM3DEXTPROC)load("glProgramUniform3dEXT"); - glad_glProgramUniform4dEXT = (PFNGLPROGRAMUNIFORM4DEXTPROC)load("glProgramUniform4dEXT"); - glad_glProgramUniform1dvEXT = (PFNGLPROGRAMUNIFORM1DVEXTPROC)load("glProgramUniform1dvEXT"); - glad_glProgramUniform2dvEXT = (PFNGLPROGRAMUNIFORM2DVEXTPROC)load("glProgramUniform2dvEXT"); - glad_glProgramUniform3dvEXT = (PFNGLPROGRAMUNIFORM3DVEXTPROC)load("glProgramUniform3dvEXT"); - glad_glProgramUniform4dvEXT = (PFNGLPROGRAMUNIFORM4DVEXTPROC)load("glProgramUniform4dvEXT"); - glad_glProgramUniformMatrix2dvEXT = (PFNGLPROGRAMUNIFORMMATRIX2DVEXTPROC)load("glProgramUniformMatrix2dvEXT"); - glad_glProgramUniformMatrix3dvEXT = (PFNGLPROGRAMUNIFORMMATRIX3DVEXTPROC)load("glProgramUniformMatrix3dvEXT"); - glad_glProgramUniformMatrix4dvEXT = (PFNGLPROGRAMUNIFORMMATRIX4DVEXTPROC)load("glProgramUniformMatrix4dvEXT"); - glad_glProgramUniformMatrix2x3dvEXT = (PFNGLPROGRAMUNIFORMMATRIX2X3DVEXTPROC)load("glProgramUniformMatrix2x3dvEXT"); - glad_glProgramUniformMatrix2x4dvEXT = (PFNGLPROGRAMUNIFORMMATRIX2X4DVEXTPROC)load("glProgramUniformMatrix2x4dvEXT"); - glad_glProgramUniformMatrix3x2dvEXT = (PFNGLPROGRAMUNIFORMMATRIX3X2DVEXTPROC)load("glProgramUniformMatrix3x2dvEXT"); - glad_glProgramUniformMatrix3x4dvEXT = (PFNGLPROGRAMUNIFORMMATRIX3X4DVEXTPROC)load("glProgramUniformMatrix3x4dvEXT"); - glad_glProgramUniformMatrix4x2dvEXT = (PFNGLPROGRAMUNIFORMMATRIX4X2DVEXTPROC)load("glProgramUniformMatrix4x2dvEXT"); - glad_glProgramUniformMatrix4x3dvEXT = (PFNGLPROGRAMUNIFORMMATRIX4X3DVEXTPROC)load("glProgramUniformMatrix4x3dvEXT"); - glad_glTextureBufferRangeEXT = (PFNGLTEXTUREBUFFERRANGEEXTPROC)load("glTextureBufferRangeEXT"); - glad_glTextureStorage1DEXT = (PFNGLTEXTURESTORAGE1DEXTPROC)load("glTextureStorage1DEXT"); - glad_glTextureStorage2DEXT = (PFNGLTEXTURESTORAGE2DEXTPROC)load("glTextureStorage2DEXT"); - glad_glTextureStorage3DEXT = (PFNGLTEXTURESTORAGE3DEXTPROC)load("glTextureStorage3DEXT"); - glad_glTextureStorage2DMultisampleEXT = (PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC)load("glTextureStorage2DMultisampleEXT"); - glad_glTextureStorage3DMultisampleEXT = (PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC)load("glTextureStorage3DMultisampleEXT"); - glad_glVertexArrayBindVertexBufferEXT = (PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC)load("glVertexArrayBindVertexBufferEXT"); - glad_glVertexArrayVertexAttribFormatEXT = (PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC)load("glVertexArrayVertexAttribFormatEXT"); - glad_glVertexArrayVertexAttribIFormatEXT = (PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC)load("glVertexArrayVertexAttribIFormatEXT"); - glad_glVertexArrayVertexAttribLFormatEXT = (PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC)load("glVertexArrayVertexAttribLFormatEXT"); - glad_glVertexArrayVertexAttribBindingEXT = (PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC)load("glVertexArrayVertexAttribBindingEXT"); - glad_glVertexArrayVertexBindingDivisorEXT = (PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC)load("glVertexArrayVertexBindingDivisorEXT"); - glad_glVertexArrayVertexAttribLOffsetEXT = (PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC)load("glVertexArrayVertexAttribLOffsetEXT"); - glad_glTexturePageCommitmentEXT = (PFNGLTEXTUREPAGECOMMITMENTEXTPROC)load("glTexturePageCommitmentEXT"); - glad_glVertexArrayVertexAttribDivisorEXT = (PFNGLVERTEXARRAYVERTEXATTRIBDIVISOREXTPROC)load("glVertexArrayVertexAttribDivisorEXT"); -} -static void load_GL_EXT_draw_buffers2(GLADloadproc load) { - if(!GLAD_GL_EXT_draw_buffers2) return; - glad_glColorMaskIndexedEXT = (PFNGLCOLORMASKINDEXEDEXTPROC)load("glColorMaskIndexedEXT"); - glad_glGetBooleanIndexedvEXT = (PFNGLGETBOOLEANINDEXEDVEXTPROC)load("glGetBooleanIndexedvEXT"); - glad_glGetIntegerIndexedvEXT = (PFNGLGETINTEGERINDEXEDVEXTPROC)load("glGetIntegerIndexedvEXT"); - glad_glEnableIndexedEXT = (PFNGLENABLEINDEXEDEXTPROC)load("glEnableIndexedEXT"); - glad_glDisableIndexedEXT = (PFNGLDISABLEINDEXEDEXTPROC)load("glDisableIndexedEXT"); - glad_glIsEnabledIndexedEXT = (PFNGLISENABLEDINDEXEDEXTPROC)load("glIsEnabledIndexedEXT"); -} -static void load_GL_EXT_draw_instanced(GLADloadproc load) { - if(!GLAD_GL_EXT_draw_instanced) return; - glad_glDrawArraysInstancedEXT = (PFNGLDRAWARRAYSINSTANCEDEXTPROC)load("glDrawArraysInstancedEXT"); - glad_glDrawElementsInstancedEXT = (PFNGLDRAWELEMENTSINSTANCEDEXTPROC)load("glDrawElementsInstancedEXT"); -} -static void load_GL_EXT_draw_range_elements(GLADloadproc load) { - if(!GLAD_GL_EXT_draw_range_elements) return; - glad_glDrawRangeElementsEXT = (PFNGLDRAWRANGEELEMENTSEXTPROC)load("glDrawRangeElementsEXT"); -} -static void load_GL_EXT_external_buffer(GLADloadproc load) { - if(!GLAD_GL_EXT_external_buffer) return; - glad_glBufferStorageExternalEXT = (PFNGLBUFFERSTORAGEEXTERNALEXTPROC)load("glBufferStorageExternalEXT"); - glad_glNamedBufferStorageExternalEXT = (PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC)load("glNamedBufferStorageExternalEXT"); -} -static void load_GL_EXT_fog_coord(GLADloadproc load) { - if(!GLAD_GL_EXT_fog_coord) return; - glad_glFogCoordfEXT = (PFNGLFOGCOORDFEXTPROC)load("glFogCoordfEXT"); - glad_glFogCoordfvEXT = (PFNGLFOGCOORDFVEXTPROC)load("glFogCoordfvEXT"); - glad_glFogCoorddEXT = (PFNGLFOGCOORDDEXTPROC)load("glFogCoorddEXT"); - glad_glFogCoorddvEXT = (PFNGLFOGCOORDDVEXTPROC)load("glFogCoorddvEXT"); - glad_glFogCoordPointerEXT = (PFNGLFOGCOORDPOINTEREXTPROC)load("glFogCoordPointerEXT"); -} -static void load_GL_EXT_framebuffer_blit(GLADloadproc load) { - if(!GLAD_GL_EXT_framebuffer_blit) return; - glad_glBlitFramebufferEXT = (PFNGLBLITFRAMEBUFFEREXTPROC)load("glBlitFramebufferEXT"); -} -static void load_GL_EXT_framebuffer_multisample(GLADloadproc load) { - if(!GLAD_GL_EXT_framebuffer_multisample) return; - glad_glRenderbufferStorageMultisampleEXT = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC)load("glRenderbufferStorageMultisampleEXT"); -} -static void load_GL_EXT_framebuffer_object(GLADloadproc load) { - if(!GLAD_GL_EXT_framebuffer_object) return; - glad_glIsRenderbufferEXT = (PFNGLISRENDERBUFFEREXTPROC)load("glIsRenderbufferEXT"); - glad_glBindRenderbufferEXT = (PFNGLBINDRENDERBUFFEREXTPROC)load("glBindRenderbufferEXT"); - glad_glDeleteRenderbuffersEXT = (PFNGLDELETERENDERBUFFERSEXTPROC)load("glDeleteRenderbuffersEXT"); - glad_glGenRenderbuffersEXT = (PFNGLGENRENDERBUFFERSEXTPROC)load("glGenRenderbuffersEXT"); - glad_glRenderbufferStorageEXT = (PFNGLRENDERBUFFERSTORAGEEXTPROC)load("glRenderbufferStorageEXT"); - glad_glGetRenderbufferParameterivEXT = (PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC)load("glGetRenderbufferParameterivEXT"); - glad_glIsFramebufferEXT = (PFNGLISFRAMEBUFFEREXTPROC)load("glIsFramebufferEXT"); - glad_glBindFramebufferEXT = (PFNGLBINDFRAMEBUFFEREXTPROC)load("glBindFramebufferEXT"); - glad_glDeleteFramebuffersEXT = (PFNGLDELETEFRAMEBUFFERSEXTPROC)load("glDeleteFramebuffersEXT"); - glad_glGenFramebuffersEXT = (PFNGLGENFRAMEBUFFERSEXTPROC)load("glGenFramebuffersEXT"); - glad_glCheckFramebufferStatusEXT = (PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)load("glCheckFramebufferStatusEXT"); - glad_glFramebufferTexture1DEXT = (PFNGLFRAMEBUFFERTEXTURE1DEXTPROC)load("glFramebufferTexture1DEXT"); - glad_glFramebufferTexture2DEXT = (PFNGLFRAMEBUFFERTEXTURE2DEXTPROC)load("glFramebufferTexture2DEXT"); - glad_glFramebufferTexture3DEXT = (PFNGLFRAMEBUFFERTEXTURE3DEXTPROC)load("glFramebufferTexture3DEXT"); - glad_glFramebufferRenderbufferEXT = (PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC)load("glFramebufferRenderbufferEXT"); - glad_glGetFramebufferAttachmentParameterivEXT = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC)load("glGetFramebufferAttachmentParameterivEXT"); - glad_glGenerateMipmapEXT = (PFNGLGENERATEMIPMAPEXTPROC)load("glGenerateMipmapEXT"); -} -static void load_GL_EXT_geometry_shader4(GLADloadproc load) { - if(!GLAD_GL_EXT_geometry_shader4) return; - glad_glProgramParameteriEXT = (PFNGLPROGRAMPARAMETERIEXTPROC)load("glProgramParameteriEXT"); -} -static void load_GL_EXT_gpu_program_parameters(GLADloadproc load) { - if(!GLAD_GL_EXT_gpu_program_parameters) return; - glad_glProgramEnvParameters4fvEXT = (PFNGLPROGRAMENVPARAMETERS4FVEXTPROC)load("glProgramEnvParameters4fvEXT"); - glad_glProgramLocalParameters4fvEXT = (PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC)load("glProgramLocalParameters4fvEXT"); -} -static void load_GL_EXT_gpu_shader4(GLADloadproc load) { - if(!GLAD_GL_EXT_gpu_shader4) return; - glad_glGetUniformuivEXT = (PFNGLGETUNIFORMUIVEXTPROC)load("glGetUniformuivEXT"); - glad_glBindFragDataLocationEXT = (PFNGLBINDFRAGDATALOCATIONEXTPROC)load("glBindFragDataLocationEXT"); - glad_glGetFragDataLocationEXT = (PFNGLGETFRAGDATALOCATIONEXTPROC)load("glGetFragDataLocationEXT"); - glad_glUniform1uiEXT = (PFNGLUNIFORM1UIEXTPROC)load("glUniform1uiEXT"); - glad_glUniform2uiEXT = (PFNGLUNIFORM2UIEXTPROC)load("glUniform2uiEXT"); - glad_glUniform3uiEXT = (PFNGLUNIFORM3UIEXTPROC)load("glUniform3uiEXT"); - glad_glUniform4uiEXT = (PFNGLUNIFORM4UIEXTPROC)load("glUniform4uiEXT"); - glad_glUniform1uivEXT = (PFNGLUNIFORM1UIVEXTPROC)load("glUniform1uivEXT"); - glad_glUniform2uivEXT = (PFNGLUNIFORM2UIVEXTPROC)load("glUniform2uivEXT"); - glad_glUniform3uivEXT = (PFNGLUNIFORM3UIVEXTPROC)load("glUniform3uivEXT"); - glad_glUniform4uivEXT = (PFNGLUNIFORM4UIVEXTPROC)load("glUniform4uivEXT"); -} -static void load_GL_EXT_histogram(GLADloadproc load) { - if(!GLAD_GL_EXT_histogram) return; - glad_glGetHistogramEXT = (PFNGLGETHISTOGRAMEXTPROC)load("glGetHistogramEXT"); - glad_glGetHistogramParameterfvEXT = (PFNGLGETHISTOGRAMPARAMETERFVEXTPROC)load("glGetHistogramParameterfvEXT"); - glad_glGetHistogramParameterivEXT = (PFNGLGETHISTOGRAMPARAMETERIVEXTPROC)load("glGetHistogramParameterivEXT"); - glad_glGetMinmaxEXT = (PFNGLGETMINMAXEXTPROC)load("glGetMinmaxEXT"); - glad_glGetMinmaxParameterfvEXT = (PFNGLGETMINMAXPARAMETERFVEXTPROC)load("glGetMinmaxParameterfvEXT"); - glad_glGetMinmaxParameterivEXT = (PFNGLGETMINMAXPARAMETERIVEXTPROC)load("glGetMinmaxParameterivEXT"); - glad_glHistogramEXT = (PFNGLHISTOGRAMEXTPROC)load("glHistogramEXT"); - glad_glMinmaxEXT = (PFNGLMINMAXEXTPROC)load("glMinmaxEXT"); - glad_glResetHistogramEXT = (PFNGLRESETHISTOGRAMEXTPROC)load("glResetHistogramEXT"); - glad_glResetMinmaxEXT = (PFNGLRESETMINMAXEXTPROC)load("glResetMinmaxEXT"); -} -static void load_GL_EXT_index_func(GLADloadproc load) { - if(!GLAD_GL_EXT_index_func) return; - glad_glIndexFuncEXT = (PFNGLINDEXFUNCEXTPROC)load("glIndexFuncEXT"); -} -static void load_GL_EXT_index_material(GLADloadproc load) { - if(!GLAD_GL_EXT_index_material) return; - glad_glIndexMaterialEXT = (PFNGLINDEXMATERIALEXTPROC)load("glIndexMaterialEXT"); -} -static void load_GL_EXT_light_texture(GLADloadproc load) { - if(!GLAD_GL_EXT_light_texture) return; - glad_glApplyTextureEXT = (PFNGLAPPLYTEXTUREEXTPROC)load("glApplyTextureEXT"); - glad_glTextureLightEXT = (PFNGLTEXTURELIGHTEXTPROC)load("glTextureLightEXT"); - glad_glTextureMaterialEXT = (PFNGLTEXTUREMATERIALEXTPROC)load("glTextureMaterialEXT"); -} -static void load_GL_EXT_memory_object(GLADloadproc load) { - if(!GLAD_GL_EXT_memory_object) return; - glad_glGetUnsignedBytevEXT = (PFNGLGETUNSIGNEDBYTEVEXTPROC)load("glGetUnsignedBytevEXT"); - glad_glGetUnsignedBytei_vEXT = (PFNGLGETUNSIGNEDBYTEI_VEXTPROC)load("glGetUnsignedBytei_vEXT"); - glad_glDeleteMemoryObjectsEXT = (PFNGLDELETEMEMORYOBJECTSEXTPROC)load("glDeleteMemoryObjectsEXT"); - glad_glIsMemoryObjectEXT = (PFNGLISMEMORYOBJECTEXTPROC)load("glIsMemoryObjectEXT"); - glad_glCreateMemoryObjectsEXT = (PFNGLCREATEMEMORYOBJECTSEXTPROC)load("glCreateMemoryObjectsEXT"); - glad_glMemoryObjectParameterivEXT = (PFNGLMEMORYOBJECTPARAMETERIVEXTPROC)load("glMemoryObjectParameterivEXT"); - glad_glGetMemoryObjectParameterivEXT = (PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC)load("glGetMemoryObjectParameterivEXT"); - glad_glTexStorageMem2DEXT = (PFNGLTEXSTORAGEMEM2DEXTPROC)load("glTexStorageMem2DEXT"); - glad_glTexStorageMem2DMultisampleEXT = (PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC)load("glTexStorageMem2DMultisampleEXT"); - glad_glTexStorageMem3DEXT = (PFNGLTEXSTORAGEMEM3DEXTPROC)load("glTexStorageMem3DEXT"); - glad_glTexStorageMem3DMultisampleEXT = (PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC)load("glTexStorageMem3DMultisampleEXT"); - glad_glBufferStorageMemEXT = (PFNGLBUFFERSTORAGEMEMEXTPROC)load("glBufferStorageMemEXT"); - glad_glTextureStorageMem2DEXT = (PFNGLTEXTURESTORAGEMEM2DEXTPROC)load("glTextureStorageMem2DEXT"); - glad_glTextureStorageMem2DMultisampleEXT = (PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC)load("glTextureStorageMem2DMultisampleEXT"); - glad_glTextureStorageMem3DEXT = (PFNGLTEXTURESTORAGEMEM3DEXTPROC)load("glTextureStorageMem3DEXT"); - glad_glTextureStorageMem3DMultisampleEXT = (PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC)load("glTextureStorageMem3DMultisampleEXT"); - glad_glNamedBufferStorageMemEXT = (PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC)load("glNamedBufferStorageMemEXT"); - glad_glTexStorageMem1DEXT = (PFNGLTEXSTORAGEMEM1DEXTPROC)load("glTexStorageMem1DEXT"); - glad_glTextureStorageMem1DEXT = (PFNGLTEXTURESTORAGEMEM1DEXTPROC)load("glTextureStorageMem1DEXT"); -} -static void load_GL_EXT_memory_object_fd(GLADloadproc load) { - if(!GLAD_GL_EXT_memory_object_fd) return; - glad_glImportMemoryFdEXT = (PFNGLIMPORTMEMORYFDEXTPROC)load("glImportMemoryFdEXT"); -} -static void load_GL_EXT_memory_object_win32(GLADloadproc load) { - if(!GLAD_GL_EXT_memory_object_win32) return; - glad_glImportMemoryWin32HandleEXT = (PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC)load("glImportMemoryWin32HandleEXT"); - glad_glImportMemoryWin32NameEXT = (PFNGLIMPORTMEMORYWIN32NAMEEXTPROC)load("glImportMemoryWin32NameEXT"); -} -static void load_GL_EXT_multi_draw_arrays(GLADloadproc load) { - if(!GLAD_GL_EXT_multi_draw_arrays) return; - glad_glMultiDrawArraysEXT = (PFNGLMULTIDRAWARRAYSEXTPROC)load("glMultiDrawArraysEXT"); - glad_glMultiDrawElementsEXT = (PFNGLMULTIDRAWELEMENTSEXTPROC)load("glMultiDrawElementsEXT"); -} -static void load_GL_EXT_multisample(GLADloadproc load) { - if(!GLAD_GL_EXT_multisample) return; - glad_glSampleMaskEXT = (PFNGLSAMPLEMASKEXTPROC)load("glSampleMaskEXT"); - glad_glSamplePatternEXT = (PFNGLSAMPLEPATTERNEXTPROC)load("glSamplePatternEXT"); -} -static void load_GL_EXT_paletted_texture(GLADloadproc load) { - if(!GLAD_GL_EXT_paletted_texture) return; - glad_glColorTableEXT = (PFNGLCOLORTABLEEXTPROC)load("glColorTableEXT"); - glad_glGetColorTableEXT = (PFNGLGETCOLORTABLEEXTPROC)load("glGetColorTableEXT"); - glad_glGetColorTableParameterivEXT = (PFNGLGETCOLORTABLEPARAMETERIVEXTPROC)load("glGetColorTableParameterivEXT"); - glad_glGetColorTableParameterfvEXT = (PFNGLGETCOLORTABLEPARAMETERFVEXTPROC)load("glGetColorTableParameterfvEXT"); -} -static void load_GL_EXT_pixel_transform(GLADloadproc load) { - if(!GLAD_GL_EXT_pixel_transform) return; - glad_glPixelTransformParameteriEXT = (PFNGLPIXELTRANSFORMPARAMETERIEXTPROC)load("glPixelTransformParameteriEXT"); - glad_glPixelTransformParameterfEXT = (PFNGLPIXELTRANSFORMPARAMETERFEXTPROC)load("glPixelTransformParameterfEXT"); - glad_glPixelTransformParameterivEXT = (PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC)load("glPixelTransformParameterivEXT"); - glad_glPixelTransformParameterfvEXT = (PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC)load("glPixelTransformParameterfvEXT"); - glad_glGetPixelTransformParameterivEXT = (PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC)load("glGetPixelTransformParameterivEXT"); - glad_glGetPixelTransformParameterfvEXT = (PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC)load("glGetPixelTransformParameterfvEXT"); -} -static void load_GL_EXT_point_parameters(GLADloadproc load) { - if(!GLAD_GL_EXT_point_parameters) return; - glad_glPointParameterfEXT = (PFNGLPOINTPARAMETERFEXTPROC)load("glPointParameterfEXT"); - glad_glPointParameterfvEXT = (PFNGLPOINTPARAMETERFVEXTPROC)load("glPointParameterfvEXT"); -} -static void load_GL_EXT_polygon_offset(GLADloadproc load) { - if(!GLAD_GL_EXT_polygon_offset) return; - glad_glPolygonOffsetEXT = (PFNGLPOLYGONOFFSETEXTPROC)load("glPolygonOffsetEXT"); -} -static void load_GL_EXT_polygon_offset_clamp(GLADloadproc load) { - if(!GLAD_GL_EXT_polygon_offset_clamp) return; - glad_glPolygonOffsetClampEXT = (PFNGLPOLYGONOFFSETCLAMPEXTPROC)load("glPolygonOffsetClampEXT"); -} -static void load_GL_EXT_provoking_vertex(GLADloadproc load) { - if(!GLAD_GL_EXT_provoking_vertex) return; - glad_glProvokingVertexEXT = (PFNGLPROVOKINGVERTEXEXTPROC)load("glProvokingVertexEXT"); -} -static void load_GL_EXT_raster_multisample(GLADloadproc load) { - if(!GLAD_GL_EXT_raster_multisample) return; - glad_glRasterSamplesEXT = (PFNGLRASTERSAMPLESEXTPROC)load("glRasterSamplesEXT"); -} -static void load_GL_EXT_secondary_color(GLADloadproc load) { - if(!GLAD_GL_EXT_secondary_color) return; - glad_glSecondaryColor3bEXT = (PFNGLSECONDARYCOLOR3BEXTPROC)load("glSecondaryColor3bEXT"); - glad_glSecondaryColor3bvEXT = (PFNGLSECONDARYCOLOR3BVEXTPROC)load("glSecondaryColor3bvEXT"); - glad_glSecondaryColor3dEXT = (PFNGLSECONDARYCOLOR3DEXTPROC)load("glSecondaryColor3dEXT"); - glad_glSecondaryColor3dvEXT = (PFNGLSECONDARYCOLOR3DVEXTPROC)load("glSecondaryColor3dvEXT"); - glad_glSecondaryColor3fEXT = (PFNGLSECONDARYCOLOR3FEXTPROC)load("glSecondaryColor3fEXT"); - glad_glSecondaryColor3fvEXT = (PFNGLSECONDARYCOLOR3FVEXTPROC)load("glSecondaryColor3fvEXT"); - glad_glSecondaryColor3iEXT = (PFNGLSECONDARYCOLOR3IEXTPROC)load("glSecondaryColor3iEXT"); - glad_glSecondaryColor3ivEXT = (PFNGLSECONDARYCOLOR3IVEXTPROC)load("glSecondaryColor3ivEXT"); - glad_glSecondaryColor3sEXT = (PFNGLSECONDARYCOLOR3SEXTPROC)load("glSecondaryColor3sEXT"); - glad_glSecondaryColor3svEXT = (PFNGLSECONDARYCOLOR3SVEXTPROC)load("glSecondaryColor3svEXT"); - glad_glSecondaryColor3ubEXT = (PFNGLSECONDARYCOLOR3UBEXTPROC)load("glSecondaryColor3ubEXT"); - glad_glSecondaryColor3ubvEXT = (PFNGLSECONDARYCOLOR3UBVEXTPROC)load("glSecondaryColor3ubvEXT"); - glad_glSecondaryColor3uiEXT = (PFNGLSECONDARYCOLOR3UIEXTPROC)load("glSecondaryColor3uiEXT"); - glad_glSecondaryColor3uivEXT = (PFNGLSECONDARYCOLOR3UIVEXTPROC)load("glSecondaryColor3uivEXT"); - glad_glSecondaryColor3usEXT = (PFNGLSECONDARYCOLOR3USEXTPROC)load("glSecondaryColor3usEXT"); - glad_glSecondaryColor3usvEXT = (PFNGLSECONDARYCOLOR3USVEXTPROC)load("glSecondaryColor3usvEXT"); - glad_glSecondaryColorPointerEXT = (PFNGLSECONDARYCOLORPOINTEREXTPROC)load("glSecondaryColorPointerEXT"); -} -static void load_GL_EXT_semaphore(GLADloadproc load) { - if(!GLAD_GL_EXT_semaphore) return; - glad_glGetUnsignedBytevEXT = (PFNGLGETUNSIGNEDBYTEVEXTPROC)load("glGetUnsignedBytevEXT"); - glad_glGetUnsignedBytei_vEXT = (PFNGLGETUNSIGNEDBYTEI_VEXTPROC)load("glGetUnsignedBytei_vEXT"); - glad_glGenSemaphoresEXT = (PFNGLGENSEMAPHORESEXTPROC)load("glGenSemaphoresEXT"); - glad_glDeleteSemaphoresEXT = (PFNGLDELETESEMAPHORESEXTPROC)load("glDeleteSemaphoresEXT"); - glad_glIsSemaphoreEXT = (PFNGLISSEMAPHOREEXTPROC)load("glIsSemaphoreEXT"); - glad_glSemaphoreParameterui64vEXT = (PFNGLSEMAPHOREPARAMETERUI64VEXTPROC)load("glSemaphoreParameterui64vEXT"); - glad_glGetSemaphoreParameterui64vEXT = (PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC)load("glGetSemaphoreParameterui64vEXT"); - glad_glWaitSemaphoreEXT = (PFNGLWAITSEMAPHOREEXTPROC)load("glWaitSemaphoreEXT"); - glad_glSignalSemaphoreEXT = (PFNGLSIGNALSEMAPHOREEXTPROC)load("glSignalSemaphoreEXT"); -} -static void load_GL_EXT_semaphore_fd(GLADloadproc load) { - if(!GLAD_GL_EXT_semaphore_fd) return; - glad_glImportSemaphoreFdEXT = (PFNGLIMPORTSEMAPHOREFDEXTPROC)load("glImportSemaphoreFdEXT"); -} -static void load_GL_EXT_semaphore_win32(GLADloadproc load) { - if(!GLAD_GL_EXT_semaphore_win32) return; - glad_glImportSemaphoreWin32HandleEXT = (PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC)load("glImportSemaphoreWin32HandleEXT"); - glad_glImportSemaphoreWin32NameEXT = (PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC)load("glImportSemaphoreWin32NameEXT"); -} -static void load_GL_EXT_separate_shader_objects(GLADloadproc load) { - if(!GLAD_GL_EXT_separate_shader_objects) return; - glad_glUseShaderProgramEXT = (PFNGLUSESHADERPROGRAMEXTPROC)load("glUseShaderProgramEXT"); - glad_glActiveProgramEXT = (PFNGLACTIVEPROGRAMEXTPROC)load("glActiveProgramEXT"); - glad_glCreateShaderProgramEXT = (PFNGLCREATESHADERPROGRAMEXTPROC)load("glCreateShaderProgramEXT"); - glad_glActiveShaderProgramEXT = (PFNGLACTIVESHADERPROGRAMEXTPROC)load("glActiveShaderProgramEXT"); - glad_glBindProgramPipelineEXT = (PFNGLBINDPROGRAMPIPELINEEXTPROC)load("glBindProgramPipelineEXT"); - glad_glCreateShaderProgramvEXT = (PFNGLCREATESHADERPROGRAMVEXTPROC)load("glCreateShaderProgramvEXT"); - glad_glDeleteProgramPipelinesEXT = (PFNGLDELETEPROGRAMPIPELINESEXTPROC)load("glDeleteProgramPipelinesEXT"); - glad_glGenProgramPipelinesEXT = (PFNGLGENPROGRAMPIPELINESEXTPROC)load("glGenProgramPipelinesEXT"); - glad_glGetProgramPipelineInfoLogEXT = (PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC)load("glGetProgramPipelineInfoLogEXT"); - glad_glGetProgramPipelineivEXT = (PFNGLGETPROGRAMPIPELINEIVEXTPROC)load("glGetProgramPipelineivEXT"); - glad_glIsProgramPipelineEXT = (PFNGLISPROGRAMPIPELINEEXTPROC)load("glIsProgramPipelineEXT"); - glad_glProgramParameteriEXT = (PFNGLPROGRAMPARAMETERIEXTPROC)load("glProgramParameteriEXT"); - glad_glProgramUniform1fEXT = (PFNGLPROGRAMUNIFORM1FEXTPROC)load("glProgramUniform1fEXT"); - glad_glProgramUniform1fvEXT = (PFNGLPROGRAMUNIFORM1FVEXTPROC)load("glProgramUniform1fvEXT"); - glad_glProgramUniform1iEXT = (PFNGLPROGRAMUNIFORM1IEXTPROC)load("glProgramUniform1iEXT"); - glad_glProgramUniform1ivEXT = (PFNGLPROGRAMUNIFORM1IVEXTPROC)load("glProgramUniform1ivEXT"); - glad_glProgramUniform2fEXT = (PFNGLPROGRAMUNIFORM2FEXTPROC)load("glProgramUniform2fEXT"); - glad_glProgramUniform2fvEXT = (PFNGLPROGRAMUNIFORM2FVEXTPROC)load("glProgramUniform2fvEXT"); - glad_glProgramUniform2iEXT = (PFNGLPROGRAMUNIFORM2IEXTPROC)load("glProgramUniform2iEXT"); - glad_glProgramUniform2ivEXT = (PFNGLPROGRAMUNIFORM2IVEXTPROC)load("glProgramUniform2ivEXT"); - glad_glProgramUniform3fEXT = (PFNGLPROGRAMUNIFORM3FEXTPROC)load("glProgramUniform3fEXT"); - glad_glProgramUniform3fvEXT = (PFNGLPROGRAMUNIFORM3FVEXTPROC)load("glProgramUniform3fvEXT"); - glad_glProgramUniform3iEXT = (PFNGLPROGRAMUNIFORM3IEXTPROC)load("glProgramUniform3iEXT"); - glad_glProgramUniform3ivEXT = (PFNGLPROGRAMUNIFORM3IVEXTPROC)load("glProgramUniform3ivEXT"); - glad_glProgramUniform4fEXT = (PFNGLPROGRAMUNIFORM4FEXTPROC)load("glProgramUniform4fEXT"); - glad_glProgramUniform4fvEXT = (PFNGLPROGRAMUNIFORM4FVEXTPROC)load("glProgramUniform4fvEXT"); - glad_glProgramUniform4iEXT = (PFNGLPROGRAMUNIFORM4IEXTPROC)load("glProgramUniform4iEXT"); - glad_glProgramUniform4ivEXT = (PFNGLPROGRAMUNIFORM4IVEXTPROC)load("glProgramUniform4ivEXT"); - glad_glProgramUniformMatrix2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC)load("glProgramUniformMatrix2fvEXT"); - glad_glProgramUniformMatrix3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC)load("glProgramUniformMatrix3fvEXT"); - glad_glProgramUniformMatrix4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC)load("glProgramUniformMatrix4fvEXT"); - glad_glUseProgramStagesEXT = (PFNGLUSEPROGRAMSTAGESEXTPROC)load("glUseProgramStagesEXT"); - glad_glValidateProgramPipelineEXT = (PFNGLVALIDATEPROGRAMPIPELINEEXTPROC)load("glValidateProgramPipelineEXT"); - glad_glProgramUniform1uiEXT = (PFNGLPROGRAMUNIFORM1UIEXTPROC)load("glProgramUniform1uiEXT"); - glad_glProgramUniform2uiEXT = (PFNGLPROGRAMUNIFORM2UIEXTPROC)load("glProgramUniform2uiEXT"); - glad_glProgramUniform3uiEXT = (PFNGLPROGRAMUNIFORM3UIEXTPROC)load("glProgramUniform3uiEXT"); - glad_glProgramUniform4uiEXT = (PFNGLPROGRAMUNIFORM4UIEXTPROC)load("glProgramUniform4uiEXT"); - glad_glProgramUniform1uivEXT = (PFNGLPROGRAMUNIFORM1UIVEXTPROC)load("glProgramUniform1uivEXT"); - glad_glProgramUniform2uivEXT = (PFNGLPROGRAMUNIFORM2UIVEXTPROC)load("glProgramUniform2uivEXT"); - glad_glProgramUniform3uivEXT = (PFNGLPROGRAMUNIFORM3UIVEXTPROC)load("glProgramUniform3uivEXT"); - glad_glProgramUniform4uivEXT = (PFNGLPROGRAMUNIFORM4UIVEXTPROC)load("glProgramUniform4uivEXT"); - glad_glProgramUniformMatrix4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC)load("glProgramUniformMatrix4fvEXT"); - glad_glProgramUniformMatrix2x3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC)load("glProgramUniformMatrix2x3fvEXT"); - glad_glProgramUniformMatrix3x2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC)load("glProgramUniformMatrix3x2fvEXT"); - glad_glProgramUniformMatrix2x4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC)load("glProgramUniformMatrix2x4fvEXT"); - glad_glProgramUniformMatrix4x2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC)load("glProgramUniformMatrix4x2fvEXT"); - glad_glProgramUniformMatrix3x4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC)load("glProgramUniformMatrix3x4fvEXT"); - glad_glProgramUniformMatrix4x3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC)load("glProgramUniformMatrix4x3fvEXT"); -} -static void load_GL_EXT_shader_framebuffer_fetch_non_coherent(GLADloadproc load) { - if(!GLAD_GL_EXT_shader_framebuffer_fetch_non_coherent) return; - glad_glFramebufferFetchBarrierEXT = (PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC)load("glFramebufferFetchBarrierEXT"); -} -static void load_GL_EXT_shader_image_load_store(GLADloadproc load) { - if(!GLAD_GL_EXT_shader_image_load_store) return; - glad_glBindImageTextureEXT = (PFNGLBINDIMAGETEXTUREEXTPROC)load("glBindImageTextureEXT"); - glad_glMemoryBarrierEXT = (PFNGLMEMORYBARRIEREXTPROC)load("glMemoryBarrierEXT"); -} -static void load_GL_EXT_stencil_clear_tag(GLADloadproc load) { - if(!GLAD_GL_EXT_stencil_clear_tag) return; - glad_glStencilClearTagEXT = (PFNGLSTENCILCLEARTAGEXTPROC)load("glStencilClearTagEXT"); -} -static void load_GL_EXT_stencil_two_side(GLADloadproc load) { - if(!GLAD_GL_EXT_stencil_two_side) return; - glad_glActiveStencilFaceEXT = (PFNGLACTIVESTENCILFACEEXTPROC)load("glActiveStencilFaceEXT"); -} -static void load_GL_EXT_subtexture(GLADloadproc load) { - if(!GLAD_GL_EXT_subtexture) return; - glad_glTexSubImage1DEXT = (PFNGLTEXSUBIMAGE1DEXTPROC)load("glTexSubImage1DEXT"); - glad_glTexSubImage2DEXT = (PFNGLTEXSUBIMAGE2DEXTPROC)load("glTexSubImage2DEXT"); -} -static void load_GL_EXT_texture3D(GLADloadproc load) { - if(!GLAD_GL_EXT_texture3D) return; - glad_glTexImage3DEXT = (PFNGLTEXIMAGE3DEXTPROC)load("glTexImage3DEXT"); - glad_glTexSubImage3DEXT = (PFNGLTEXSUBIMAGE3DEXTPROC)load("glTexSubImage3DEXT"); -} -static void load_GL_EXT_texture_array(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_array) return; - glad_glFramebufferTextureLayerEXT = (PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC)load("glFramebufferTextureLayerEXT"); -} -static void load_GL_EXT_texture_buffer_object(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_buffer_object) return; - glad_glTexBufferEXT = (PFNGLTEXBUFFEREXTPROC)load("glTexBufferEXT"); -} -static void load_GL_EXT_texture_integer(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_integer) return; - glad_glTexParameterIivEXT = (PFNGLTEXPARAMETERIIVEXTPROC)load("glTexParameterIivEXT"); - glad_glTexParameterIuivEXT = (PFNGLTEXPARAMETERIUIVEXTPROC)load("glTexParameterIuivEXT"); - glad_glGetTexParameterIivEXT = (PFNGLGETTEXPARAMETERIIVEXTPROC)load("glGetTexParameterIivEXT"); - glad_glGetTexParameterIuivEXT = (PFNGLGETTEXPARAMETERIUIVEXTPROC)load("glGetTexParameterIuivEXT"); - glad_glClearColorIiEXT = (PFNGLCLEARCOLORIIEXTPROC)load("glClearColorIiEXT"); - glad_glClearColorIuiEXT = (PFNGLCLEARCOLORIUIEXTPROC)load("glClearColorIuiEXT"); -} -static void load_GL_EXT_texture_object(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_object) return; - glad_glAreTexturesResidentEXT = (PFNGLARETEXTURESRESIDENTEXTPROC)load("glAreTexturesResidentEXT"); - glad_glBindTextureEXT = (PFNGLBINDTEXTUREEXTPROC)load("glBindTextureEXT"); - glad_glDeleteTexturesEXT = (PFNGLDELETETEXTURESEXTPROC)load("glDeleteTexturesEXT"); - glad_glGenTexturesEXT = (PFNGLGENTEXTURESEXTPROC)load("glGenTexturesEXT"); - glad_glIsTextureEXT = (PFNGLISTEXTUREEXTPROC)load("glIsTextureEXT"); - glad_glPrioritizeTexturesEXT = (PFNGLPRIORITIZETEXTURESEXTPROC)load("glPrioritizeTexturesEXT"); -} -static void load_GL_EXT_texture_perturb_normal(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_perturb_normal) return; - glad_glTextureNormalEXT = (PFNGLTEXTURENORMALEXTPROC)load("glTextureNormalEXT"); -} -static void load_GL_EXT_timer_query(GLADloadproc load) { - if(!GLAD_GL_EXT_timer_query) return; - glad_glGetQueryObjecti64vEXT = (PFNGLGETQUERYOBJECTI64VEXTPROC)load("glGetQueryObjecti64vEXT"); - glad_glGetQueryObjectui64vEXT = (PFNGLGETQUERYOBJECTUI64VEXTPROC)load("glGetQueryObjectui64vEXT"); -} -static void load_GL_EXT_transform_feedback(GLADloadproc load) { - if(!GLAD_GL_EXT_transform_feedback) return; - glad_glBeginTransformFeedbackEXT = (PFNGLBEGINTRANSFORMFEEDBACKEXTPROC)load("glBeginTransformFeedbackEXT"); - glad_glEndTransformFeedbackEXT = (PFNGLENDTRANSFORMFEEDBACKEXTPROC)load("glEndTransformFeedbackEXT"); - glad_glBindBufferRangeEXT = (PFNGLBINDBUFFERRANGEEXTPROC)load("glBindBufferRangeEXT"); - glad_glBindBufferOffsetEXT = (PFNGLBINDBUFFEROFFSETEXTPROC)load("glBindBufferOffsetEXT"); - glad_glBindBufferBaseEXT = (PFNGLBINDBUFFERBASEEXTPROC)load("glBindBufferBaseEXT"); - glad_glTransformFeedbackVaryingsEXT = (PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC)load("glTransformFeedbackVaryingsEXT"); - glad_glGetTransformFeedbackVaryingEXT = (PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC)load("glGetTransformFeedbackVaryingEXT"); -} -static void load_GL_EXT_vertex_array(GLADloadproc load) { - if(!GLAD_GL_EXT_vertex_array) return; - glad_glArrayElementEXT = (PFNGLARRAYELEMENTEXTPROC)load("glArrayElementEXT"); - glad_glColorPointerEXT = (PFNGLCOLORPOINTEREXTPROC)load("glColorPointerEXT"); - glad_glDrawArraysEXT = (PFNGLDRAWARRAYSEXTPROC)load("glDrawArraysEXT"); - glad_glEdgeFlagPointerEXT = (PFNGLEDGEFLAGPOINTEREXTPROC)load("glEdgeFlagPointerEXT"); - glad_glGetPointervEXT = (PFNGLGETPOINTERVEXTPROC)load("glGetPointervEXT"); - glad_glIndexPointerEXT = (PFNGLINDEXPOINTEREXTPROC)load("glIndexPointerEXT"); - glad_glNormalPointerEXT = (PFNGLNORMALPOINTEREXTPROC)load("glNormalPointerEXT"); - glad_glTexCoordPointerEXT = (PFNGLTEXCOORDPOINTEREXTPROC)load("glTexCoordPointerEXT"); - glad_glVertexPointerEXT = (PFNGLVERTEXPOINTEREXTPROC)load("glVertexPointerEXT"); -} -static void load_GL_EXT_vertex_attrib_64bit(GLADloadproc load) { - if(!GLAD_GL_EXT_vertex_attrib_64bit) return; - glad_glVertexAttribL1dEXT = (PFNGLVERTEXATTRIBL1DEXTPROC)load("glVertexAttribL1dEXT"); - glad_glVertexAttribL2dEXT = (PFNGLVERTEXATTRIBL2DEXTPROC)load("glVertexAttribL2dEXT"); - glad_glVertexAttribL3dEXT = (PFNGLVERTEXATTRIBL3DEXTPROC)load("glVertexAttribL3dEXT"); - glad_glVertexAttribL4dEXT = (PFNGLVERTEXATTRIBL4DEXTPROC)load("glVertexAttribL4dEXT"); - glad_glVertexAttribL1dvEXT = (PFNGLVERTEXATTRIBL1DVEXTPROC)load("glVertexAttribL1dvEXT"); - glad_glVertexAttribL2dvEXT = (PFNGLVERTEXATTRIBL2DVEXTPROC)load("glVertexAttribL2dvEXT"); - glad_glVertexAttribL3dvEXT = (PFNGLVERTEXATTRIBL3DVEXTPROC)load("glVertexAttribL3dvEXT"); - glad_glVertexAttribL4dvEXT = (PFNGLVERTEXATTRIBL4DVEXTPROC)load("glVertexAttribL4dvEXT"); - glad_glVertexAttribLPointerEXT = (PFNGLVERTEXATTRIBLPOINTEREXTPROC)load("glVertexAttribLPointerEXT"); - glad_glGetVertexAttribLdvEXT = (PFNGLGETVERTEXATTRIBLDVEXTPROC)load("glGetVertexAttribLdvEXT"); -} -static void load_GL_EXT_vertex_shader(GLADloadproc load) { - if(!GLAD_GL_EXT_vertex_shader) return; - glad_glBeginVertexShaderEXT = (PFNGLBEGINVERTEXSHADEREXTPROC)load("glBeginVertexShaderEXT"); - glad_glEndVertexShaderEXT = (PFNGLENDVERTEXSHADEREXTPROC)load("glEndVertexShaderEXT"); - glad_glBindVertexShaderEXT = (PFNGLBINDVERTEXSHADEREXTPROC)load("glBindVertexShaderEXT"); - glad_glGenVertexShadersEXT = (PFNGLGENVERTEXSHADERSEXTPROC)load("glGenVertexShadersEXT"); - glad_glDeleteVertexShaderEXT = (PFNGLDELETEVERTEXSHADEREXTPROC)load("glDeleteVertexShaderEXT"); - glad_glShaderOp1EXT = (PFNGLSHADEROP1EXTPROC)load("glShaderOp1EXT"); - glad_glShaderOp2EXT = (PFNGLSHADEROP2EXTPROC)load("glShaderOp2EXT"); - glad_glShaderOp3EXT = (PFNGLSHADEROP3EXTPROC)load("glShaderOp3EXT"); - glad_glSwizzleEXT = (PFNGLSWIZZLEEXTPROC)load("glSwizzleEXT"); - glad_glWriteMaskEXT = (PFNGLWRITEMASKEXTPROC)load("glWriteMaskEXT"); - glad_glInsertComponentEXT = (PFNGLINSERTCOMPONENTEXTPROC)load("glInsertComponentEXT"); - glad_glExtractComponentEXT = (PFNGLEXTRACTCOMPONENTEXTPROC)load("glExtractComponentEXT"); - glad_glGenSymbolsEXT = (PFNGLGENSYMBOLSEXTPROC)load("glGenSymbolsEXT"); - glad_glSetInvariantEXT = (PFNGLSETINVARIANTEXTPROC)load("glSetInvariantEXT"); - glad_glSetLocalConstantEXT = (PFNGLSETLOCALCONSTANTEXTPROC)load("glSetLocalConstantEXT"); - glad_glVariantbvEXT = (PFNGLVARIANTBVEXTPROC)load("glVariantbvEXT"); - glad_glVariantsvEXT = (PFNGLVARIANTSVEXTPROC)load("glVariantsvEXT"); - glad_glVariantivEXT = (PFNGLVARIANTIVEXTPROC)load("glVariantivEXT"); - glad_glVariantfvEXT = (PFNGLVARIANTFVEXTPROC)load("glVariantfvEXT"); - glad_glVariantdvEXT = (PFNGLVARIANTDVEXTPROC)load("glVariantdvEXT"); - glad_glVariantubvEXT = (PFNGLVARIANTUBVEXTPROC)load("glVariantubvEXT"); - glad_glVariantusvEXT = (PFNGLVARIANTUSVEXTPROC)load("glVariantusvEXT"); - glad_glVariantuivEXT = (PFNGLVARIANTUIVEXTPROC)load("glVariantuivEXT"); - glad_glVariantPointerEXT = (PFNGLVARIANTPOINTEREXTPROC)load("glVariantPointerEXT"); - glad_glEnableVariantClientStateEXT = (PFNGLENABLEVARIANTCLIENTSTATEEXTPROC)load("glEnableVariantClientStateEXT"); - glad_glDisableVariantClientStateEXT = (PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC)load("glDisableVariantClientStateEXT"); - glad_glBindLightParameterEXT = (PFNGLBINDLIGHTPARAMETEREXTPROC)load("glBindLightParameterEXT"); - glad_glBindMaterialParameterEXT = (PFNGLBINDMATERIALPARAMETEREXTPROC)load("glBindMaterialParameterEXT"); - glad_glBindTexGenParameterEXT = (PFNGLBINDTEXGENPARAMETEREXTPROC)load("glBindTexGenParameterEXT"); - glad_glBindTextureUnitParameterEXT = (PFNGLBINDTEXTUREUNITPARAMETEREXTPROC)load("glBindTextureUnitParameterEXT"); - glad_glBindParameterEXT = (PFNGLBINDPARAMETEREXTPROC)load("glBindParameterEXT"); - glad_glIsVariantEnabledEXT = (PFNGLISVARIANTENABLEDEXTPROC)load("glIsVariantEnabledEXT"); - glad_glGetVariantBooleanvEXT = (PFNGLGETVARIANTBOOLEANVEXTPROC)load("glGetVariantBooleanvEXT"); - glad_glGetVariantIntegervEXT = (PFNGLGETVARIANTINTEGERVEXTPROC)load("glGetVariantIntegervEXT"); - glad_glGetVariantFloatvEXT = (PFNGLGETVARIANTFLOATVEXTPROC)load("glGetVariantFloatvEXT"); - glad_glGetVariantPointervEXT = (PFNGLGETVARIANTPOINTERVEXTPROC)load("glGetVariantPointervEXT"); - glad_glGetInvariantBooleanvEXT = (PFNGLGETINVARIANTBOOLEANVEXTPROC)load("glGetInvariantBooleanvEXT"); - glad_glGetInvariantIntegervEXT = (PFNGLGETINVARIANTINTEGERVEXTPROC)load("glGetInvariantIntegervEXT"); - glad_glGetInvariantFloatvEXT = (PFNGLGETINVARIANTFLOATVEXTPROC)load("glGetInvariantFloatvEXT"); - glad_glGetLocalConstantBooleanvEXT = (PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC)load("glGetLocalConstantBooleanvEXT"); - glad_glGetLocalConstantIntegervEXT = (PFNGLGETLOCALCONSTANTINTEGERVEXTPROC)load("glGetLocalConstantIntegervEXT"); - glad_glGetLocalConstantFloatvEXT = (PFNGLGETLOCALCONSTANTFLOATVEXTPROC)load("glGetLocalConstantFloatvEXT"); -} -static void load_GL_EXT_vertex_weighting(GLADloadproc load) { - if(!GLAD_GL_EXT_vertex_weighting) return; - glad_glVertexWeightfEXT = (PFNGLVERTEXWEIGHTFEXTPROC)load("glVertexWeightfEXT"); - glad_glVertexWeightfvEXT = (PFNGLVERTEXWEIGHTFVEXTPROC)load("glVertexWeightfvEXT"); - glad_glVertexWeightPointerEXT = (PFNGLVERTEXWEIGHTPOINTEREXTPROC)load("glVertexWeightPointerEXT"); -} -static void load_GL_EXT_win32_keyed_mutex(GLADloadproc load) { - if(!GLAD_GL_EXT_win32_keyed_mutex) return; - glad_glAcquireKeyedMutexWin32EXT = (PFNGLACQUIREKEYEDMUTEXWIN32EXTPROC)load("glAcquireKeyedMutexWin32EXT"); - glad_glReleaseKeyedMutexWin32EXT = (PFNGLRELEASEKEYEDMUTEXWIN32EXTPROC)load("glReleaseKeyedMutexWin32EXT"); -} -static void load_GL_EXT_window_rectangles(GLADloadproc load) { - if(!GLAD_GL_EXT_window_rectangles) return; - glad_glWindowRectanglesEXT = (PFNGLWINDOWRECTANGLESEXTPROC)load("glWindowRectanglesEXT"); -} -static void load_GL_EXT_x11_sync_object(GLADloadproc load) { - if(!GLAD_GL_EXT_x11_sync_object) return; - glad_glImportSyncEXT = (PFNGLIMPORTSYNCEXTPROC)load("glImportSyncEXT"); -} -static void load_GL_GREMEDY_frame_terminator(GLADloadproc load) { - if(!GLAD_GL_GREMEDY_frame_terminator) return; - glad_glFrameTerminatorGREMEDY = (PFNGLFRAMETERMINATORGREMEDYPROC)load("glFrameTerminatorGREMEDY"); -} -static void load_GL_GREMEDY_string_marker(GLADloadproc load) { - if(!GLAD_GL_GREMEDY_string_marker) return; - glad_glStringMarkerGREMEDY = (PFNGLSTRINGMARKERGREMEDYPROC)load("glStringMarkerGREMEDY"); -} -static void load_GL_HP_image_transform(GLADloadproc load) { - if(!GLAD_GL_HP_image_transform) return; - glad_glImageTransformParameteriHP = (PFNGLIMAGETRANSFORMPARAMETERIHPPROC)load("glImageTransformParameteriHP"); - glad_glImageTransformParameterfHP = (PFNGLIMAGETRANSFORMPARAMETERFHPPROC)load("glImageTransformParameterfHP"); - glad_glImageTransformParameterivHP = (PFNGLIMAGETRANSFORMPARAMETERIVHPPROC)load("glImageTransformParameterivHP"); - glad_glImageTransformParameterfvHP = (PFNGLIMAGETRANSFORMPARAMETERFVHPPROC)load("glImageTransformParameterfvHP"); - glad_glGetImageTransformParameterivHP = (PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC)load("glGetImageTransformParameterivHP"); - glad_glGetImageTransformParameterfvHP = (PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC)load("glGetImageTransformParameterfvHP"); -} -static void load_GL_IBM_multimode_draw_arrays(GLADloadproc load) { - if(!GLAD_GL_IBM_multimode_draw_arrays) return; - glad_glMultiModeDrawArraysIBM = (PFNGLMULTIMODEDRAWARRAYSIBMPROC)load("glMultiModeDrawArraysIBM"); - glad_glMultiModeDrawElementsIBM = (PFNGLMULTIMODEDRAWELEMENTSIBMPROC)load("glMultiModeDrawElementsIBM"); -} -static void load_GL_IBM_static_data(GLADloadproc load) { - if(!GLAD_GL_IBM_static_data) return; - glad_glFlushStaticDataIBM = (PFNGLFLUSHSTATICDATAIBMPROC)load("glFlushStaticDataIBM"); -} -static void load_GL_IBM_vertex_array_lists(GLADloadproc load) { - if(!GLAD_GL_IBM_vertex_array_lists) return; - glad_glColorPointerListIBM = (PFNGLCOLORPOINTERLISTIBMPROC)load("glColorPointerListIBM"); - glad_glSecondaryColorPointerListIBM = (PFNGLSECONDARYCOLORPOINTERLISTIBMPROC)load("glSecondaryColorPointerListIBM"); - glad_glEdgeFlagPointerListIBM = (PFNGLEDGEFLAGPOINTERLISTIBMPROC)load("glEdgeFlagPointerListIBM"); - glad_glFogCoordPointerListIBM = (PFNGLFOGCOORDPOINTERLISTIBMPROC)load("glFogCoordPointerListIBM"); - glad_glIndexPointerListIBM = (PFNGLINDEXPOINTERLISTIBMPROC)load("glIndexPointerListIBM"); - glad_glNormalPointerListIBM = (PFNGLNORMALPOINTERLISTIBMPROC)load("glNormalPointerListIBM"); - glad_glTexCoordPointerListIBM = (PFNGLTEXCOORDPOINTERLISTIBMPROC)load("glTexCoordPointerListIBM"); - glad_glVertexPointerListIBM = (PFNGLVERTEXPOINTERLISTIBMPROC)load("glVertexPointerListIBM"); -} -static void load_GL_INGR_blend_func_separate(GLADloadproc load) { - if(!GLAD_GL_INGR_blend_func_separate) return; - glad_glBlendFuncSeparateINGR = (PFNGLBLENDFUNCSEPARATEINGRPROC)load("glBlendFuncSeparateINGR"); -} -static void load_GL_INTEL_framebuffer_CMAA(GLADloadproc load) { - if(!GLAD_GL_INTEL_framebuffer_CMAA) return; - glad_glApplyFramebufferAttachmentCMAAINTEL = (PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC)load("glApplyFramebufferAttachmentCMAAINTEL"); -} -static void load_GL_INTEL_map_texture(GLADloadproc load) { - if(!GLAD_GL_INTEL_map_texture) return; - glad_glSyncTextureINTEL = (PFNGLSYNCTEXTUREINTELPROC)load("glSyncTextureINTEL"); - glad_glUnmapTexture2DINTEL = (PFNGLUNMAPTEXTURE2DINTELPROC)load("glUnmapTexture2DINTEL"); - glad_glMapTexture2DINTEL = (PFNGLMAPTEXTURE2DINTELPROC)load("glMapTexture2DINTEL"); -} -static void load_GL_INTEL_parallel_arrays(GLADloadproc load) { - if(!GLAD_GL_INTEL_parallel_arrays) return; - glad_glVertexPointervINTEL = (PFNGLVERTEXPOINTERVINTELPROC)load("glVertexPointervINTEL"); - glad_glNormalPointervINTEL = (PFNGLNORMALPOINTERVINTELPROC)load("glNormalPointervINTEL"); - glad_glColorPointervINTEL = (PFNGLCOLORPOINTERVINTELPROC)load("glColorPointervINTEL"); - glad_glTexCoordPointervINTEL = (PFNGLTEXCOORDPOINTERVINTELPROC)load("glTexCoordPointervINTEL"); -} -static void load_GL_INTEL_performance_query(GLADloadproc load) { - if(!GLAD_GL_INTEL_performance_query) return; - glad_glBeginPerfQueryINTEL = (PFNGLBEGINPERFQUERYINTELPROC)load("glBeginPerfQueryINTEL"); - glad_glCreatePerfQueryINTEL = (PFNGLCREATEPERFQUERYINTELPROC)load("glCreatePerfQueryINTEL"); - glad_glDeletePerfQueryINTEL = (PFNGLDELETEPERFQUERYINTELPROC)load("glDeletePerfQueryINTEL"); - glad_glEndPerfQueryINTEL = (PFNGLENDPERFQUERYINTELPROC)load("glEndPerfQueryINTEL"); - glad_glGetFirstPerfQueryIdINTEL = (PFNGLGETFIRSTPERFQUERYIDINTELPROC)load("glGetFirstPerfQueryIdINTEL"); - glad_glGetNextPerfQueryIdINTEL = (PFNGLGETNEXTPERFQUERYIDINTELPROC)load("glGetNextPerfQueryIdINTEL"); - glad_glGetPerfCounterInfoINTEL = (PFNGLGETPERFCOUNTERINFOINTELPROC)load("glGetPerfCounterInfoINTEL"); - glad_glGetPerfQueryDataINTEL = (PFNGLGETPERFQUERYDATAINTELPROC)load("glGetPerfQueryDataINTEL"); - glad_glGetPerfQueryIdByNameINTEL = (PFNGLGETPERFQUERYIDBYNAMEINTELPROC)load("glGetPerfQueryIdByNameINTEL"); - glad_glGetPerfQueryInfoINTEL = (PFNGLGETPERFQUERYINFOINTELPROC)load("glGetPerfQueryInfoINTEL"); -} -static void load_GL_KHR_blend_equation_advanced(GLADloadproc load) { - if(!GLAD_GL_KHR_blend_equation_advanced) return; - glad_glBlendBarrierKHR = (PFNGLBLENDBARRIERKHRPROC)load("glBlendBarrierKHR"); -} -static void load_GL_KHR_debug(GLADloadproc load) { - if(!GLAD_GL_KHR_debug) return; - glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)load("glDebugMessageControl"); - glad_glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC)load("glDebugMessageInsert"); - glad_glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC)load("glDebugMessageCallback"); - glad_glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC)load("glGetDebugMessageLog"); - glad_glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC)load("glPushDebugGroup"); - glad_glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC)load("glPopDebugGroup"); - glad_glObjectLabel = (PFNGLOBJECTLABELPROC)load("glObjectLabel"); - glad_glGetObjectLabel = (PFNGLGETOBJECTLABELPROC)load("glGetObjectLabel"); - glad_glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC)load("glObjectPtrLabel"); - glad_glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC)load("glGetObjectPtrLabel"); - glad_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv"); - glad_glDebugMessageControlKHR = (PFNGLDEBUGMESSAGECONTROLKHRPROC)load("glDebugMessageControlKHR"); - glad_glDebugMessageInsertKHR = (PFNGLDEBUGMESSAGEINSERTKHRPROC)load("glDebugMessageInsertKHR"); - glad_glDebugMessageCallbackKHR = (PFNGLDEBUGMESSAGECALLBACKKHRPROC)load("glDebugMessageCallbackKHR"); - glad_glGetDebugMessageLogKHR = (PFNGLGETDEBUGMESSAGELOGKHRPROC)load("glGetDebugMessageLogKHR"); - glad_glPushDebugGroupKHR = (PFNGLPUSHDEBUGGROUPKHRPROC)load("glPushDebugGroupKHR"); - glad_glPopDebugGroupKHR = (PFNGLPOPDEBUGGROUPKHRPROC)load("glPopDebugGroupKHR"); - glad_glObjectLabelKHR = (PFNGLOBJECTLABELKHRPROC)load("glObjectLabelKHR"); - glad_glGetObjectLabelKHR = (PFNGLGETOBJECTLABELKHRPROC)load("glGetObjectLabelKHR"); - glad_glObjectPtrLabelKHR = (PFNGLOBJECTPTRLABELKHRPROC)load("glObjectPtrLabelKHR"); - glad_glGetObjectPtrLabelKHR = (PFNGLGETOBJECTPTRLABELKHRPROC)load("glGetObjectPtrLabelKHR"); - glad_glGetPointervKHR = (PFNGLGETPOINTERVKHRPROC)load("glGetPointervKHR"); -} -static void load_GL_KHR_parallel_shader_compile(GLADloadproc load) { - if(!GLAD_GL_KHR_parallel_shader_compile) return; - glad_glMaxShaderCompilerThreadsKHR = (PFNGLMAXSHADERCOMPILERTHREADSKHRPROC)load("glMaxShaderCompilerThreadsKHR"); -} -static void load_GL_KHR_robustness(GLADloadproc load) { - if(!GLAD_GL_KHR_robustness) return; - glad_glGetGraphicsResetStatus = (PFNGLGETGRAPHICSRESETSTATUSPROC)load("glGetGraphicsResetStatus"); - glad_glReadnPixels = (PFNGLREADNPIXELSPROC)load("glReadnPixels"); - glad_glGetnUniformfv = (PFNGLGETNUNIFORMFVPROC)load("glGetnUniformfv"); - glad_glGetnUniformiv = (PFNGLGETNUNIFORMIVPROC)load("glGetnUniformiv"); - glad_glGetnUniformuiv = (PFNGLGETNUNIFORMUIVPROC)load("glGetnUniformuiv"); - glad_glGetGraphicsResetStatusKHR = (PFNGLGETGRAPHICSRESETSTATUSKHRPROC)load("glGetGraphicsResetStatusKHR"); - glad_glReadnPixelsKHR = (PFNGLREADNPIXELSKHRPROC)load("glReadnPixelsKHR"); - glad_glGetnUniformfvKHR = (PFNGLGETNUNIFORMFVKHRPROC)load("glGetnUniformfvKHR"); - glad_glGetnUniformivKHR = (PFNGLGETNUNIFORMIVKHRPROC)load("glGetnUniformivKHR"); - glad_glGetnUniformuivKHR = (PFNGLGETNUNIFORMUIVKHRPROC)load("glGetnUniformuivKHR"); -} -static void load_GL_MESA_resize_buffers(GLADloadproc load) { - if(!GLAD_GL_MESA_resize_buffers) return; - glad_glResizeBuffersMESA = (PFNGLRESIZEBUFFERSMESAPROC)load("glResizeBuffersMESA"); -} -static void load_GL_MESA_window_pos(GLADloadproc load) { - if(!GLAD_GL_MESA_window_pos) return; - glad_glWindowPos2dMESA = (PFNGLWINDOWPOS2DMESAPROC)load("glWindowPos2dMESA"); - glad_glWindowPos2dvMESA = (PFNGLWINDOWPOS2DVMESAPROC)load("glWindowPos2dvMESA"); - glad_glWindowPos2fMESA = (PFNGLWINDOWPOS2FMESAPROC)load("glWindowPos2fMESA"); - glad_glWindowPos2fvMESA = (PFNGLWINDOWPOS2FVMESAPROC)load("glWindowPos2fvMESA"); - glad_glWindowPos2iMESA = (PFNGLWINDOWPOS2IMESAPROC)load("glWindowPos2iMESA"); - glad_glWindowPos2ivMESA = (PFNGLWINDOWPOS2IVMESAPROC)load("glWindowPos2ivMESA"); - glad_glWindowPos2sMESA = (PFNGLWINDOWPOS2SMESAPROC)load("glWindowPos2sMESA"); - glad_glWindowPos2svMESA = (PFNGLWINDOWPOS2SVMESAPROC)load("glWindowPos2svMESA"); - glad_glWindowPos3dMESA = (PFNGLWINDOWPOS3DMESAPROC)load("glWindowPos3dMESA"); - glad_glWindowPos3dvMESA = (PFNGLWINDOWPOS3DVMESAPROC)load("glWindowPos3dvMESA"); - glad_glWindowPos3fMESA = (PFNGLWINDOWPOS3FMESAPROC)load("glWindowPos3fMESA"); - glad_glWindowPos3fvMESA = (PFNGLWINDOWPOS3FVMESAPROC)load("glWindowPos3fvMESA"); - glad_glWindowPos3iMESA = (PFNGLWINDOWPOS3IMESAPROC)load("glWindowPos3iMESA"); - glad_glWindowPos3ivMESA = (PFNGLWINDOWPOS3IVMESAPROC)load("glWindowPos3ivMESA"); - glad_glWindowPos3sMESA = (PFNGLWINDOWPOS3SMESAPROC)load("glWindowPos3sMESA"); - glad_glWindowPos3svMESA = (PFNGLWINDOWPOS3SVMESAPROC)load("glWindowPos3svMESA"); - glad_glWindowPos4dMESA = (PFNGLWINDOWPOS4DMESAPROC)load("glWindowPos4dMESA"); - glad_glWindowPos4dvMESA = (PFNGLWINDOWPOS4DVMESAPROC)load("glWindowPos4dvMESA"); - glad_glWindowPos4fMESA = (PFNGLWINDOWPOS4FMESAPROC)load("glWindowPos4fMESA"); - glad_glWindowPos4fvMESA = (PFNGLWINDOWPOS4FVMESAPROC)load("glWindowPos4fvMESA"); - glad_glWindowPos4iMESA = (PFNGLWINDOWPOS4IMESAPROC)load("glWindowPos4iMESA"); - glad_glWindowPos4ivMESA = (PFNGLWINDOWPOS4IVMESAPROC)load("glWindowPos4ivMESA"); - glad_glWindowPos4sMESA = (PFNGLWINDOWPOS4SMESAPROC)load("glWindowPos4sMESA"); - glad_glWindowPos4svMESA = (PFNGLWINDOWPOS4SVMESAPROC)load("glWindowPos4svMESA"); -} -static void load_GL_NVX_conditional_render(GLADloadproc load) { - if(!GLAD_GL_NVX_conditional_render) return; - glad_glBeginConditionalRenderNVX = (PFNGLBEGINCONDITIONALRENDERNVXPROC)load("glBeginConditionalRenderNVX"); - glad_glEndConditionalRenderNVX = (PFNGLENDCONDITIONALRENDERNVXPROC)load("glEndConditionalRenderNVX"); -} -static void load_GL_NVX_linked_gpu_multicast(GLADloadproc load) { - if(!GLAD_GL_NVX_linked_gpu_multicast) return; - glad_glLGPUNamedBufferSubDataNVX = (PFNGLLGPUNAMEDBUFFERSUBDATANVXPROC)load("glLGPUNamedBufferSubDataNVX"); - glad_glLGPUCopyImageSubDataNVX = (PFNGLLGPUCOPYIMAGESUBDATANVXPROC)load("glLGPUCopyImageSubDataNVX"); - glad_glLGPUInterlockNVX = (PFNGLLGPUINTERLOCKNVXPROC)load("glLGPUInterlockNVX"); -} -static void load_GL_NV_alpha_to_coverage_dither_control(GLADloadproc load) { - if(!GLAD_GL_NV_alpha_to_coverage_dither_control) return; - glad_glAlphaToCoverageDitherControlNV = (PFNGLALPHATOCOVERAGEDITHERCONTROLNVPROC)load("glAlphaToCoverageDitherControlNV"); -} -static void load_GL_NV_bindless_multi_draw_indirect(GLADloadproc load) { - if(!GLAD_GL_NV_bindless_multi_draw_indirect) return; - glad_glMultiDrawArraysIndirectBindlessNV = (PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC)load("glMultiDrawArraysIndirectBindlessNV"); - glad_glMultiDrawElementsIndirectBindlessNV = (PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC)load("glMultiDrawElementsIndirectBindlessNV"); -} -static void load_GL_NV_bindless_multi_draw_indirect_count(GLADloadproc load) { - if(!GLAD_GL_NV_bindless_multi_draw_indirect_count) return; - glad_glMultiDrawArraysIndirectBindlessCountNV = (PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSCOUNTNVPROC)load("glMultiDrawArraysIndirectBindlessCountNV"); - glad_glMultiDrawElementsIndirectBindlessCountNV = (PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSCOUNTNVPROC)load("glMultiDrawElementsIndirectBindlessCountNV"); -} -static void load_GL_NV_bindless_texture(GLADloadproc load) { - if(!GLAD_GL_NV_bindless_texture) return; - glad_glGetTextureHandleNV = (PFNGLGETTEXTUREHANDLENVPROC)load("glGetTextureHandleNV"); - glad_glGetTextureSamplerHandleNV = (PFNGLGETTEXTURESAMPLERHANDLENVPROC)load("glGetTextureSamplerHandleNV"); - glad_glMakeTextureHandleResidentNV = (PFNGLMAKETEXTUREHANDLERESIDENTNVPROC)load("glMakeTextureHandleResidentNV"); - glad_glMakeTextureHandleNonResidentNV = (PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC)load("glMakeTextureHandleNonResidentNV"); - glad_glGetImageHandleNV = (PFNGLGETIMAGEHANDLENVPROC)load("glGetImageHandleNV"); - glad_glMakeImageHandleResidentNV = (PFNGLMAKEIMAGEHANDLERESIDENTNVPROC)load("glMakeImageHandleResidentNV"); - glad_glMakeImageHandleNonResidentNV = (PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC)load("glMakeImageHandleNonResidentNV"); - glad_glUniformHandleui64NV = (PFNGLUNIFORMHANDLEUI64NVPROC)load("glUniformHandleui64NV"); - glad_glUniformHandleui64vNV = (PFNGLUNIFORMHANDLEUI64VNVPROC)load("glUniformHandleui64vNV"); - glad_glProgramUniformHandleui64NV = (PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC)load("glProgramUniformHandleui64NV"); - glad_glProgramUniformHandleui64vNV = (PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC)load("glProgramUniformHandleui64vNV"); - glad_glIsTextureHandleResidentNV = (PFNGLISTEXTUREHANDLERESIDENTNVPROC)load("glIsTextureHandleResidentNV"); - glad_glIsImageHandleResidentNV = (PFNGLISIMAGEHANDLERESIDENTNVPROC)load("glIsImageHandleResidentNV"); -} -static void load_GL_NV_blend_equation_advanced(GLADloadproc load) { - if(!GLAD_GL_NV_blend_equation_advanced) return; - glad_glBlendParameteriNV = (PFNGLBLENDPARAMETERINVPROC)load("glBlendParameteriNV"); - glad_glBlendBarrierNV = (PFNGLBLENDBARRIERNVPROC)load("glBlendBarrierNV"); -} -static void load_GL_NV_clip_space_w_scaling(GLADloadproc load) { - if(!GLAD_GL_NV_clip_space_w_scaling) return; - glad_glViewportPositionWScaleNV = (PFNGLVIEWPORTPOSITIONWSCALENVPROC)load("glViewportPositionWScaleNV"); -} -static void load_GL_NV_command_list(GLADloadproc load) { - if(!GLAD_GL_NV_command_list) return; - glad_glCreateStatesNV = (PFNGLCREATESTATESNVPROC)load("glCreateStatesNV"); - glad_glDeleteStatesNV = (PFNGLDELETESTATESNVPROC)load("glDeleteStatesNV"); - glad_glIsStateNV = (PFNGLISSTATENVPROC)load("glIsStateNV"); - glad_glStateCaptureNV = (PFNGLSTATECAPTURENVPROC)load("glStateCaptureNV"); - glad_glGetCommandHeaderNV = (PFNGLGETCOMMANDHEADERNVPROC)load("glGetCommandHeaderNV"); - glad_glGetStageIndexNV = (PFNGLGETSTAGEINDEXNVPROC)load("glGetStageIndexNV"); - glad_glDrawCommandsNV = (PFNGLDRAWCOMMANDSNVPROC)load("glDrawCommandsNV"); - glad_glDrawCommandsAddressNV = (PFNGLDRAWCOMMANDSADDRESSNVPROC)load("glDrawCommandsAddressNV"); - glad_glDrawCommandsStatesNV = (PFNGLDRAWCOMMANDSSTATESNVPROC)load("glDrawCommandsStatesNV"); - glad_glDrawCommandsStatesAddressNV = (PFNGLDRAWCOMMANDSSTATESADDRESSNVPROC)load("glDrawCommandsStatesAddressNV"); - glad_glCreateCommandListsNV = (PFNGLCREATECOMMANDLISTSNVPROC)load("glCreateCommandListsNV"); - glad_glDeleteCommandListsNV = (PFNGLDELETECOMMANDLISTSNVPROC)load("glDeleteCommandListsNV"); - glad_glIsCommandListNV = (PFNGLISCOMMANDLISTNVPROC)load("glIsCommandListNV"); - glad_glListDrawCommandsStatesClientNV = (PFNGLLISTDRAWCOMMANDSSTATESCLIENTNVPROC)load("glListDrawCommandsStatesClientNV"); - glad_glCommandListSegmentsNV = (PFNGLCOMMANDLISTSEGMENTSNVPROC)load("glCommandListSegmentsNV"); - glad_glCompileCommandListNV = (PFNGLCOMPILECOMMANDLISTNVPROC)load("glCompileCommandListNV"); - glad_glCallCommandListNV = (PFNGLCALLCOMMANDLISTNVPROC)load("glCallCommandListNV"); -} -static void load_GL_NV_conditional_render(GLADloadproc load) { - if(!GLAD_GL_NV_conditional_render) return; - glad_glBeginConditionalRenderNV = (PFNGLBEGINCONDITIONALRENDERNVPROC)load("glBeginConditionalRenderNV"); - glad_glEndConditionalRenderNV = (PFNGLENDCONDITIONALRENDERNVPROC)load("glEndConditionalRenderNV"); -} -static void load_GL_NV_conservative_raster(GLADloadproc load) { - if(!GLAD_GL_NV_conservative_raster) return; - glad_glSubpixelPrecisionBiasNV = (PFNGLSUBPIXELPRECISIONBIASNVPROC)load("glSubpixelPrecisionBiasNV"); -} -static void load_GL_NV_conservative_raster_dilate(GLADloadproc load) { - if(!GLAD_GL_NV_conservative_raster_dilate) return; - glad_glConservativeRasterParameterfNV = (PFNGLCONSERVATIVERASTERPARAMETERFNVPROC)load("glConservativeRasterParameterfNV"); -} -static void load_GL_NV_conservative_raster_pre_snap_triangles(GLADloadproc load) { - if(!GLAD_GL_NV_conservative_raster_pre_snap_triangles) return; - glad_glConservativeRasterParameteriNV = (PFNGLCONSERVATIVERASTERPARAMETERINVPROC)load("glConservativeRasterParameteriNV"); -} -static void load_GL_NV_copy_image(GLADloadproc load) { - if(!GLAD_GL_NV_copy_image) return; - glad_glCopyImageSubDataNV = (PFNGLCOPYIMAGESUBDATANVPROC)load("glCopyImageSubDataNV"); -} -static void load_GL_NV_depth_buffer_float(GLADloadproc load) { - if(!GLAD_GL_NV_depth_buffer_float) return; - glad_glDepthRangedNV = (PFNGLDEPTHRANGEDNVPROC)load("glDepthRangedNV"); - glad_glClearDepthdNV = (PFNGLCLEARDEPTHDNVPROC)load("glClearDepthdNV"); - glad_glDepthBoundsdNV = (PFNGLDEPTHBOUNDSDNVPROC)load("glDepthBoundsdNV"); -} -static void load_GL_NV_draw_texture(GLADloadproc load) { - if(!GLAD_GL_NV_draw_texture) return; - glad_glDrawTextureNV = (PFNGLDRAWTEXTURENVPROC)load("glDrawTextureNV"); -} -static void load_GL_NV_draw_vulkan_image(GLADloadproc load) { - if(!GLAD_GL_NV_draw_vulkan_image) return; - glad_glDrawVkImageNV = (PFNGLDRAWVKIMAGENVPROC)load("glDrawVkImageNV"); - glad_glGetVkProcAddrNV = (PFNGLGETVKPROCADDRNVPROC)load("glGetVkProcAddrNV"); - glad_glWaitVkSemaphoreNV = (PFNGLWAITVKSEMAPHORENVPROC)load("glWaitVkSemaphoreNV"); - glad_glSignalVkSemaphoreNV = (PFNGLSIGNALVKSEMAPHORENVPROC)load("glSignalVkSemaphoreNV"); - glad_glSignalVkFenceNV = (PFNGLSIGNALVKFENCENVPROC)load("glSignalVkFenceNV"); -} -static void load_GL_NV_evaluators(GLADloadproc load) { - if(!GLAD_GL_NV_evaluators) return; - glad_glMapControlPointsNV = (PFNGLMAPCONTROLPOINTSNVPROC)load("glMapControlPointsNV"); - glad_glMapParameterivNV = (PFNGLMAPPARAMETERIVNVPROC)load("glMapParameterivNV"); - glad_glMapParameterfvNV = (PFNGLMAPPARAMETERFVNVPROC)load("glMapParameterfvNV"); - glad_glGetMapControlPointsNV = (PFNGLGETMAPCONTROLPOINTSNVPROC)load("glGetMapControlPointsNV"); - glad_glGetMapParameterivNV = (PFNGLGETMAPPARAMETERIVNVPROC)load("glGetMapParameterivNV"); - glad_glGetMapParameterfvNV = (PFNGLGETMAPPARAMETERFVNVPROC)load("glGetMapParameterfvNV"); - glad_glGetMapAttribParameterivNV = (PFNGLGETMAPATTRIBPARAMETERIVNVPROC)load("glGetMapAttribParameterivNV"); - glad_glGetMapAttribParameterfvNV = (PFNGLGETMAPATTRIBPARAMETERFVNVPROC)load("glGetMapAttribParameterfvNV"); - glad_glEvalMapsNV = (PFNGLEVALMAPSNVPROC)load("glEvalMapsNV"); -} -static void load_GL_NV_explicit_multisample(GLADloadproc load) { - if(!GLAD_GL_NV_explicit_multisample) return; - glad_glGetMultisamplefvNV = (PFNGLGETMULTISAMPLEFVNVPROC)load("glGetMultisamplefvNV"); - glad_glSampleMaskIndexedNV = (PFNGLSAMPLEMASKINDEXEDNVPROC)load("glSampleMaskIndexedNV"); - glad_glTexRenderbufferNV = (PFNGLTEXRENDERBUFFERNVPROC)load("glTexRenderbufferNV"); -} -static void load_GL_NV_fence(GLADloadproc load) { - if(!GLAD_GL_NV_fence) return; - glad_glDeleteFencesNV = (PFNGLDELETEFENCESNVPROC)load("glDeleteFencesNV"); - glad_glGenFencesNV = (PFNGLGENFENCESNVPROC)load("glGenFencesNV"); - glad_glIsFenceNV = (PFNGLISFENCENVPROC)load("glIsFenceNV"); - glad_glTestFenceNV = (PFNGLTESTFENCENVPROC)load("glTestFenceNV"); - glad_glGetFenceivNV = (PFNGLGETFENCEIVNVPROC)load("glGetFenceivNV"); - glad_glFinishFenceNV = (PFNGLFINISHFENCENVPROC)load("glFinishFenceNV"); - glad_glSetFenceNV = (PFNGLSETFENCENVPROC)load("glSetFenceNV"); -} -static void load_GL_NV_fragment_coverage_to_color(GLADloadproc load) { - if(!GLAD_GL_NV_fragment_coverage_to_color) return; - glad_glFragmentCoverageColorNV = (PFNGLFRAGMENTCOVERAGECOLORNVPROC)load("glFragmentCoverageColorNV"); -} -static void load_GL_NV_fragment_program(GLADloadproc load) { - if(!GLAD_GL_NV_fragment_program) return; - glad_glProgramNamedParameter4fNV = (PFNGLPROGRAMNAMEDPARAMETER4FNVPROC)load("glProgramNamedParameter4fNV"); - glad_glProgramNamedParameter4fvNV = (PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC)load("glProgramNamedParameter4fvNV"); - glad_glProgramNamedParameter4dNV = (PFNGLPROGRAMNAMEDPARAMETER4DNVPROC)load("glProgramNamedParameter4dNV"); - glad_glProgramNamedParameter4dvNV = (PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC)load("glProgramNamedParameter4dvNV"); - glad_glGetProgramNamedParameterfvNV = (PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC)load("glGetProgramNamedParameterfvNV"); - glad_glGetProgramNamedParameterdvNV = (PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC)load("glGetProgramNamedParameterdvNV"); -} -static void load_GL_NV_framebuffer_mixed_samples(GLADloadproc load) { - if(!GLAD_GL_NV_framebuffer_mixed_samples) return; - glad_glRasterSamplesEXT = (PFNGLRASTERSAMPLESEXTPROC)load("glRasterSamplesEXT"); - glad_glCoverageModulationTableNV = (PFNGLCOVERAGEMODULATIONTABLENVPROC)load("glCoverageModulationTableNV"); - glad_glGetCoverageModulationTableNV = (PFNGLGETCOVERAGEMODULATIONTABLENVPROC)load("glGetCoverageModulationTableNV"); - glad_glCoverageModulationNV = (PFNGLCOVERAGEMODULATIONNVPROC)load("glCoverageModulationNV"); -} -static void load_GL_NV_framebuffer_multisample_coverage(GLADloadproc load) { - if(!GLAD_GL_NV_framebuffer_multisample_coverage) return; - glad_glRenderbufferStorageMultisampleCoverageNV = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC)load("glRenderbufferStorageMultisampleCoverageNV"); -} -static void load_GL_NV_geometry_program4(GLADloadproc load) { - if(!GLAD_GL_NV_geometry_program4) return; - glad_glProgramVertexLimitNV = (PFNGLPROGRAMVERTEXLIMITNVPROC)load("glProgramVertexLimitNV"); - glad_glFramebufferTextureEXT = (PFNGLFRAMEBUFFERTEXTUREEXTPROC)load("glFramebufferTextureEXT"); - glad_glFramebufferTextureLayerEXT = (PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC)load("glFramebufferTextureLayerEXT"); - glad_glFramebufferTextureFaceEXT = (PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC)load("glFramebufferTextureFaceEXT"); -} -static void load_GL_NV_gpu_multicast(GLADloadproc load) { - if(!GLAD_GL_NV_gpu_multicast) return; - glad_glRenderGpuMaskNV = (PFNGLRENDERGPUMASKNVPROC)load("glRenderGpuMaskNV"); - glad_glMulticastBufferSubDataNV = (PFNGLMULTICASTBUFFERSUBDATANVPROC)load("glMulticastBufferSubDataNV"); - glad_glMulticastCopyBufferSubDataNV = (PFNGLMULTICASTCOPYBUFFERSUBDATANVPROC)load("glMulticastCopyBufferSubDataNV"); - glad_glMulticastCopyImageSubDataNV = (PFNGLMULTICASTCOPYIMAGESUBDATANVPROC)load("glMulticastCopyImageSubDataNV"); - glad_glMulticastBlitFramebufferNV = (PFNGLMULTICASTBLITFRAMEBUFFERNVPROC)load("glMulticastBlitFramebufferNV"); - glad_glMulticastFramebufferSampleLocationsfvNV = (PFNGLMULTICASTFRAMEBUFFERSAMPLELOCATIONSFVNVPROC)load("glMulticastFramebufferSampleLocationsfvNV"); - glad_glMulticastBarrierNV = (PFNGLMULTICASTBARRIERNVPROC)load("glMulticastBarrierNV"); - glad_glMulticastWaitSyncNV = (PFNGLMULTICASTWAITSYNCNVPROC)load("glMulticastWaitSyncNV"); - glad_glMulticastGetQueryObjectivNV = (PFNGLMULTICASTGETQUERYOBJECTIVNVPROC)load("glMulticastGetQueryObjectivNV"); - glad_glMulticastGetQueryObjectuivNV = (PFNGLMULTICASTGETQUERYOBJECTUIVNVPROC)load("glMulticastGetQueryObjectuivNV"); - glad_glMulticastGetQueryObjecti64vNV = (PFNGLMULTICASTGETQUERYOBJECTI64VNVPROC)load("glMulticastGetQueryObjecti64vNV"); - glad_glMulticastGetQueryObjectui64vNV = (PFNGLMULTICASTGETQUERYOBJECTUI64VNVPROC)load("glMulticastGetQueryObjectui64vNV"); -} -static void load_GL_NV_gpu_program4(GLADloadproc load) { - if(!GLAD_GL_NV_gpu_program4) return; - glad_glProgramLocalParameterI4iNV = (PFNGLPROGRAMLOCALPARAMETERI4INVPROC)load("glProgramLocalParameterI4iNV"); - glad_glProgramLocalParameterI4ivNV = (PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC)load("glProgramLocalParameterI4ivNV"); - glad_glProgramLocalParametersI4ivNV = (PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC)load("glProgramLocalParametersI4ivNV"); - glad_glProgramLocalParameterI4uiNV = (PFNGLPROGRAMLOCALPARAMETERI4UINVPROC)load("glProgramLocalParameterI4uiNV"); - glad_glProgramLocalParameterI4uivNV = (PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC)load("glProgramLocalParameterI4uivNV"); - glad_glProgramLocalParametersI4uivNV = (PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC)load("glProgramLocalParametersI4uivNV"); - glad_glProgramEnvParameterI4iNV = (PFNGLPROGRAMENVPARAMETERI4INVPROC)load("glProgramEnvParameterI4iNV"); - glad_glProgramEnvParameterI4ivNV = (PFNGLPROGRAMENVPARAMETERI4IVNVPROC)load("glProgramEnvParameterI4ivNV"); - glad_glProgramEnvParametersI4ivNV = (PFNGLPROGRAMENVPARAMETERSI4IVNVPROC)load("glProgramEnvParametersI4ivNV"); - glad_glProgramEnvParameterI4uiNV = (PFNGLPROGRAMENVPARAMETERI4UINVPROC)load("glProgramEnvParameterI4uiNV"); - glad_glProgramEnvParameterI4uivNV = (PFNGLPROGRAMENVPARAMETERI4UIVNVPROC)load("glProgramEnvParameterI4uivNV"); - glad_glProgramEnvParametersI4uivNV = (PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC)load("glProgramEnvParametersI4uivNV"); - glad_glGetProgramLocalParameterIivNV = (PFNGLGETPROGRAMLOCALPARAMETERIIVNVPROC)load("glGetProgramLocalParameterIivNV"); - glad_glGetProgramLocalParameterIuivNV = (PFNGLGETPROGRAMLOCALPARAMETERIUIVNVPROC)load("glGetProgramLocalParameterIuivNV"); - glad_glGetProgramEnvParameterIivNV = (PFNGLGETPROGRAMENVPARAMETERIIVNVPROC)load("glGetProgramEnvParameterIivNV"); - glad_glGetProgramEnvParameterIuivNV = (PFNGLGETPROGRAMENVPARAMETERIUIVNVPROC)load("glGetProgramEnvParameterIuivNV"); -} -static void load_GL_NV_gpu_program5(GLADloadproc load) { - if(!GLAD_GL_NV_gpu_program5) return; - glad_glProgramSubroutineParametersuivNV = (PFNGLPROGRAMSUBROUTINEPARAMETERSUIVNVPROC)load("glProgramSubroutineParametersuivNV"); - glad_glGetProgramSubroutineParameteruivNV = (PFNGLGETPROGRAMSUBROUTINEPARAMETERUIVNVPROC)load("glGetProgramSubroutineParameteruivNV"); -} -static void load_GL_NV_gpu_shader5(GLADloadproc load) { - if(!GLAD_GL_NV_gpu_shader5) return; - glad_glUniform1i64NV = (PFNGLUNIFORM1I64NVPROC)load("glUniform1i64NV"); - glad_glUniform2i64NV = (PFNGLUNIFORM2I64NVPROC)load("glUniform2i64NV"); - glad_glUniform3i64NV = (PFNGLUNIFORM3I64NVPROC)load("glUniform3i64NV"); - glad_glUniform4i64NV = (PFNGLUNIFORM4I64NVPROC)load("glUniform4i64NV"); - glad_glUniform1i64vNV = (PFNGLUNIFORM1I64VNVPROC)load("glUniform1i64vNV"); - glad_glUniform2i64vNV = (PFNGLUNIFORM2I64VNVPROC)load("glUniform2i64vNV"); - glad_glUniform3i64vNV = (PFNGLUNIFORM3I64VNVPROC)load("glUniform3i64vNV"); - glad_glUniform4i64vNV = (PFNGLUNIFORM4I64VNVPROC)load("glUniform4i64vNV"); - glad_glUniform1ui64NV = (PFNGLUNIFORM1UI64NVPROC)load("glUniform1ui64NV"); - glad_glUniform2ui64NV = (PFNGLUNIFORM2UI64NVPROC)load("glUniform2ui64NV"); - glad_glUniform3ui64NV = (PFNGLUNIFORM3UI64NVPROC)load("glUniform3ui64NV"); - glad_glUniform4ui64NV = (PFNGLUNIFORM4UI64NVPROC)load("glUniform4ui64NV"); - glad_glUniform1ui64vNV = (PFNGLUNIFORM1UI64VNVPROC)load("glUniform1ui64vNV"); - glad_glUniform2ui64vNV = (PFNGLUNIFORM2UI64VNVPROC)load("glUniform2ui64vNV"); - glad_glUniform3ui64vNV = (PFNGLUNIFORM3UI64VNVPROC)load("glUniform3ui64vNV"); - glad_glUniform4ui64vNV = (PFNGLUNIFORM4UI64VNVPROC)load("glUniform4ui64vNV"); - glad_glGetUniformi64vNV = (PFNGLGETUNIFORMI64VNVPROC)load("glGetUniformi64vNV"); - glad_glProgramUniform1i64NV = (PFNGLPROGRAMUNIFORM1I64NVPROC)load("glProgramUniform1i64NV"); - glad_glProgramUniform2i64NV = (PFNGLPROGRAMUNIFORM2I64NVPROC)load("glProgramUniform2i64NV"); - glad_glProgramUniform3i64NV = (PFNGLPROGRAMUNIFORM3I64NVPROC)load("glProgramUniform3i64NV"); - glad_glProgramUniform4i64NV = (PFNGLPROGRAMUNIFORM4I64NVPROC)load("glProgramUniform4i64NV"); - glad_glProgramUniform1i64vNV = (PFNGLPROGRAMUNIFORM1I64VNVPROC)load("glProgramUniform1i64vNV"); - glad_glProgramUniform2i64vNV = (PFNGLPROGRAMUNIFORM2I64VNVPROC)load("glProgramUniform2i64vNV"); - glad_glProgramUniform3i64vNV = (PFNGLPROGRAMUNIFORM3I64VNVPROC)load("glProgramUniform3i64vNV"); - glad_glProgramUniform4i64vNV = (PFNGLPROGRAMUNIFORM4I64VNVPROC)load("glProgramUniform4i64vNV"); - glad_glProgramUniform1ui64NV = (PFNGLPROGRAMUNIFORM1UI64NVPROC)load("glProgramUniform1ui64NV"); - glad_glProgramUniform2ui64NV = (PFNGLPROGRAMUNIFORM2UI64NVPROC)load("glProgramUniform2ui64NV"); - glad_glProgramUniform3ui64NV = (PFNGLPROGRAMUNIFORM3UI64NVPROC)load("glProgramUniform3ui64NV"); - glad_glProgramUniform4ui64NV = (PFNGLPROGRAMUNIFORM4UI64NVPROC)load("glProgramUniform4ui64NV"); - glad_glProgramUniform1ui64vNV = (PFNGLPROGRAMUNIFORM1UI64VNVPROC)load("glProgramUniform1ui64vNV"); - glad_glProgramUniform2ui64vNV = (PFNGLPROGRAMUNIFORM2UI64VNVPROC)load("glProgramUniform2ui64vNV"); - glad_glProgramUniform3ui64vNV = (PFNGLPROGRAMUNIFORM3UI64VNVPROC)load("glProgramUniform3ui64vNV"); - glad_glProgramUniform4ui64vNV = (PFNGLPROGRAMUNIFORM4UI64VNVPROC)load("glProgramUniform4ui64vNV"); -} -static void load_GL_NV_half_float(GLADloadproc load) { - if(!GLAD_GL_NV_half_float) return; - glad_glVertex2hNV = (PFNGLVERTEX2HNVPROC)load("glVertex2hNV"); - glad_glVertex2hvNV = (PFNGLVERTEX2HVNVPROC)load("glVertex2hvNV"); - glad_glVertex3hNV = (PFNGLVERTEX3HNVPROC)load("glVertex3hNV"); - glad_glVertex3hvNV = (PFNGLVERTEX3HVNVPROC)load("glVertex3hvNV"); - glad_glVertex4hNV = (PFNGLVERTEX4HNVPROC)load("glVertex4hNV"); - glad_glVertex4hvNV = (PFNGLVERTEX4HVNVPROC)load("glVertex4hvNV"); - glad_glNormal3hNV = (PFNGLNORMAL3HNVPROC)load("glNormal3hNV"); - glad_glNormal3hvNV = (PFNGLNORMAL3HVNVPROC)load("glNormal3hvNV"); - glad_glColor3hNV = (PFNGLCOLOR3HNVPROC)load("glColor3hNV"); - glad_glColor3hvNV = (PFNGLCOLOR3HVNVPROC)load("glColor3hvNV"); - glad_glColor4hNV = (PFNGLCOLOR4HNVPROC)load("glColor4hNV"); - glad_glColor4hvNV = (PFNGLCOLOR4HVNVPROC)load("glColor4hvNV"); - glad_glTexCoord1hNV = (PFNGLTEXCOORD1HNVPROC)load("glTexCoord1hNV"); - glad_glTexCoord1hvNV = (PFNGLTEXCOORD1HVNVPROC)load("glTexCoord1hvNV"); - glad_glTexCoord2hNV = (PFNGLTEXCOORD2HNVPROC)load("glTexCoord2hNV"); - glad_glTexCoord2hvNV = (PFNGLTEXCOORD2HVNVPROC)load("glTexCoord2hvNV"); - glad_glTexCoord3hNV = (PFNGLTEXCOORD3HNVPROC)load("glTexCoord3hNV"); - glad_glTexCoord3hvNV = (PFNGLTEXCOORD3HVNVPROC)load("glTexCoord3hvNV"); - glad_glTexCoord4hNV = (PFNGLTEXCOORD4HNVPROC)load("glTexCoord4hNV"); - glad_glTexCoord4hvNV = (PFNGLTEXCOORD4HVNVPROC)load("glTexCoord4hvNV"); - glad_glMultiTexCoord1hNV = (PFNGLMULTITEXCOORD1HNVPROC)load("glMultiTexCoord1hNV"); - glad_glMultiTexCoord1hvNV = (PFNGLMULTITEXCOORD1HVNVPROC)load("glMultiTexCoord1hvNV"); - glad_glMultiTexCoord2hNV = (PFNGLMULTITEXCOORD2HNVPROC)load("glMultiTexCoord2hNV"); - glad_glMultiTexCoord2hvNV = (PFNGLMULTITEXCOORD2HVNVPROC)load("glMultiTexCoord2hvNV"); - glad_glMultiTexCoord3hNV = (PFNGLMULTITEXCOORD3HNVPROC)load("glMultiTexCoord3hNV"); - glad_glMultiTexCoord3hvNV = (PFNGLMULTITEXCOORD3HVNVPROC)load("glMultiTexCoord3hvNV"); - glad_glMultiTexCoord4hNV = (PFNGLMULTITEXCOORD4HNVPROC)load("glMultiTexCoord4hNV"); - glad_glMultiTexCoord4hvNV = (PFNGLMULTITEXCOORD4HVNVPROC)load("glMultiTexCoord4hvNV"); - glad_glFogCoordhNV = (PFNGLFOGCOORDHNVPROC)load("glFogCoordhNV"); - glad_glFogCoordhvNV = (PFNGLFOGCOORDHVNVPROC)load("glFogCoordhvNV"); - glad_glSecondaryColor3hNV = (PFNGLSECONDARYCOLOR3HNVPROC)load("glSecondaryColor3hNV"); - glad_glSecondaryColor3hvNV = (PFNGLSECONDARYCOLOR3HVNVPROC)load("glSecondaryColor3hvNV"); - glad_glVertexWeighthNV = (PFNGLVERTEXWEIGHTHNVPROC)load("glVertexWeighthNV"); - glad_glVertexWeighthvNV = (PFNGLVERTEXWEIGHTHVNVPROC)load("glVertexWeighthvNV"); - glad_glVertexAttrib1hNV = (PFNGLVERTEXATTRIB1HNVPROC)load("glVertexAttrib1hNV"); - glad_glVertexAttrib1hvNV = (PFNGLVERTEXATTRIB1HVNVPROC)load("glVertexAttrib1hvNV"); - glad_glVertexAttrib2hNV = (PFNGLVERTEXATTRIB2HNVPROC)load("glVertexAttrib2hNV"); - glad_glVertexAttrib2hvNV = (PFNGLVERTEXATTRIB2HVNVPROC)load("glVertexAttrib2hvNV"); - glad_glVertexAttrib3hNV = (PFNGLVERTEXATTRIB3HNVPROC)load("glVertexAttrib3hNV"); - glad_glVertexAttrib3hvNV = (PFNGLVERTEXATTRIB3HVNVPROC)load("glVertexAttrib3hvNV"); - glad_glVertexAttrib4hNV = (PFNGLVERTEXATTRIB4HNVPROC)load("glVertexAttrib4hNV"); - glad_glVertexAttrib4hvNV = (PFNGLVERTEXATTRIB4HVNVPROC)load("glVertexAttrib4hvNV"); - glad_glVertexAttribs1hvNV = (PFNGLVERTEXATTRIBS1HVNVPROC)load("glVertexAttribs1hvNV"); - glad_glVertexAttribs2hvNV = (PFNGLVERTEXATTRIBS2HVNVPROC)load("glVertexAttribs2hvNV"); - glad_glVertexAttribs3hvNV = (PFNGLVERTEXATTRIBS3HVNVPROC)load("glVertexAttribs3hvNV"); - glad_glVertexAttribs4hvNV = (PFNGLVERTEXATTRIBS4HVNVPROC)load("glVertexAttribs4hvNV"); -} -static void load_GL_NV_internalformat_sample_query(GLADloadproc load) { - if(!GLAD_GL_NV_internalformat_sample_query) return; - glad_glGetInternalformatSampleivNV = (PFNGLGETINTERNALFORMATSAMPLEIVNVPROC)load("glGetInternalformatSampleivNV"); -} -static void load_GL_NV_occlusion_query(GLADloadproc load) { - if(!GLAD_GL_NV_occlusion_query) return; - glad_glGenOcclusionQueriesNV = (PFNGLGENOCCLUSIONQUERIESNVPROC)load("glGenOcclusionQueriesNV"); - glad_glDeleteOcclusionQueriesNV = (PFNGLDELETEOCCLUSIONQUERIESNVPROC)load("glDeleteOcclusionQueriesNV"); - glad_glIsOcclusionQueryNV = (PFNGLISOCCLUSIONQUERYNVPROC)load("glIsOcclusionQueryNV"); - glad_glBeginOcclusionQueryNV = (PFNGLBEGINOCCLUSIONQUERYNVPROC)load("glBeginOcclusionQueryNV"); - glad_glEndOcclusionQueryNV = (PFNGLENDOCCLUSIONQUERYNVPROC)load("glEndOcclusionQueryNV"); - glad_glGetOcclusionQueryivNV = (PFNGLGETOCCLUSIONQUERYIVNVPROC)load("glGetOcclusionQueryivNV"); - glad_glGetOcclusionQueryuivNV = (PFNGLGETOCCLUSIONQUERYUIVNVPROC)load("glGetOcclusionQueryuivNV"); -} -static void load_GL_NV_parameter_buffer_object(GLADloadproc load) { - if(!GLAD_GL_NV_parameter_buffer_object) return; - glad_glProgramBufferParametersfvNV = (PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC)load("glProgramBufferParametersfvNV"); - glad_glProgramBufferParametersIivNV = (PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC)load("glProgramBufferParametersIivNV"); - glad_glProgramBufferParametersIuivNV = (PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC)load("glProgramBufferParametersIuivNV"); -} -static void load_GL_NV_path_rendering(GLADloadproc load) { - if(!GLAD_GL_NV_path_rendering) return; - glad_glGenPathsNV = (PFNGLGENPATHSNVPROC)load("glGenPathsNV"); - glad_glDeletePathsNV = (PFNGLDELETEPATHSNVPROC)load("glDeletePathsNV"); - glad_glIsPathNV = (PFNGLISPATHNVPROC)load("glIsPathNV"); - glad_glPathCommandsNV = (PFNGLPATHCOMMANDSNVPROC)load("glPathCommandsNV"); - glad_glPathCoordsNV = (PFNGLPATHCOORDSNVPROC)load("glPathCoordsNV"); - glad_glPathSubCommandsNV = (PFNGLPATHSUBCOMMANDSNVPROC)load("glPathSubCommandsNV"); - glad_glPathSubCoordsNV = (PFNGLPATHSUBCOORDSNVPROC)load("glPathSubCoordsNV"); - glad_glPathStringNV = (PFNGLPATHSTRINGNVPROC)load("glPathStringNV"); - glad_glPathGlyphsNV = (PFNGLPATHGLYPHSNVPROC)load("glPathGlyphsNV"); - glad_glPathGlyphRangeNV = (PFNGLPATHGLYPHRANGENVPROC)load("glPathGlyphRangeNV"); - glad_glWeightPathsNV = (PFNGLWEIGHTPATHSNVPROC)load("glWeightPathsNV"); - glad_glCopyPathNV = (PFNGLCOPYPATHNVPROC)load("glCopyPathNV"); - glad_glInterpolatePathsNV = (PFNGLINTERPOLATEPATHSNVPROC)load("glInterpolatePathsNV"); - glad_glTransformPathNV = (PFNGLTRANSFORMPATHNVPROC)load("glTransformPathNV"); - glad_glPathParameterivNV = (PFNGLPATHPARAMETERIVNVPROC)load("glPathParameterivNV"); - glad_glPathParameteriNV = (PFNGLPATHPARAMETERINVPROC)load("glPathParameteriNV"); - glad_glPathParameterfvNV = (PFNGLPATHPARAMETERFVNVPROC)load("glPathParameterfvNV"); - glad_glPathParameterfNV = (PFNGLPATHPARAMETERFNVPROC)load("glPathParameterfNV"); - glad_glPathDashArrayNV = (PFNGLPATHDASHARRAYNVPROC)load("glPathDashArrayNV"); - glad_glPathStencilFuncNV = (PFNGLPATHSTENCILFUNCNVPROC)load("glPathStencilFuncNV"); - glad_glPathStencilDepthOffsetNV = (PFNGLPATHSTENCILDEPTHOFFSETNVPROC)load("glPathStencilDepthOffsetNV"); - glad_glStencilFillPathNV = (PFNGLSTENCILFILLPATHNVPROC)load("glStencilFillPathNV"); - glad_glStencilStrokePathNV = (PFNGLSTENCILSTROKEPATHNVPROC)load("glStencilStrokePathNV"); - glad_glStencilFillPathInstancedNV = (PFNGLSTENCILFILLPATHINSTANCEDNVPROC)load("glStencilFillPathInstancedNV"); - glad_glStencilStrokePathInstancedNV = (PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC)load("glStencilStrokePathInstancedNV"); - glad_glPathCoverDepthFuncNV = (PFNGLPATHCOVERDEPTHFUNCNVPROC)load("glPathCoverDepthFuncNV"); - glad_glCoverFillPathNV = (PFNGLCOVERFILLPATHNVPROC)load("glCoverFillPathNV"); - glad_glCoverStrokePathNV = (PFNGLCOVERSTROKEPATHNVPROC)load("glCoverStrokePathNV"); - glad_glCoverFillPathInstancedNV = (PFNGLCOVERFILLPATHINSTANCEDNVPROC)load("glCoverFillPathInstancedNV"); - glad_glCoverStrokePathInstancedNV = (PFNGLCOVERSTROKEPATHINSTANCEDNVPROC)load("glCoverStrokePathInstancedNV"); - glad_glGetPathParameterivNV = (PFNGLGETPATHPARAMETERIVNVPROC)load("glGetPathParameterivNV"); - glad_glGetPathParameterfvNV = (PFNGLGETPATHPARAMETERFVNVPROC)load("glGetPathParameterfvNV"); - glad_glGetPathCommandsNV = (PFNGLGETPATHCOMMANDSNVPROC)load("glGetPathCommandsNV"); - glad_glGetPathCoordsNV = (PFNGLGETPATHCOORDSNVPROC)load("glGetPathCoordsNV"); - glad_glGetPathDashArrayNV = (PFNGLGETPATHDASHARRAYNVPROC)load("glGetPathDashArrayNV"); - glad_glGetPathMetricsNV = (PFNGLGETPATHMETRICSNVPROC)load("glGetPathMetricsNV"); - glad_glGetPathMetricRangeNV = (PFNGLGETPATHMETRICRANGENVPROC)load("glGetPathMetricRangeNV"); - glad_glGetPathSpacingNV = (PFNGLGETPATHSPACINGNVPROC)load("glGetPathSpacingNV"); - glad_glIsPointInFillPathNV = (PFNGLISPOINTINFILLPATHNVPROC)load("glIsPointInFillPathNV"); - glad_glIsPointInStrokePathNV = (PFNGLISPOINTINSTROKEPATHNVPROC)load("glIsPointInStrokePathNV"); - glad_glGetPathLengthNV = (PFNGLGETPATHLENGTHNVPROC)load("glGetPathLengthNV"); - glad_glPointAlongPathNV = (PFNGLPOINTALONGPATHNVPROC)load("glPointAlongPathNV"); - glad_glMatrixLoad3x2fNV = (PFNGLMATRIXLOAD3X2FNVPROC)load("glMatrixLoad3x2fNV"); - glad_glMatrixLoad3x3fNV = (PFNGLMATRIXLOAD3X3FNVPROC)load("glMatrixLoad3x3fNV"); - glad_glMatrixLoadTranspose3x3fNV = (PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC)load("glMatrixLoadTranspose3x3fNV"); - glad_glMatrixMult3x2fNV = (PFNGLMATRIXMULT3X2FNVPROC)load("glMatrixMult3x2fNV"); - glad_glMatrixMult3x3fNV = (PFNGLMATRIXMULT3X3FNVPROC)load("glMatrixMult3x3fNV"); - glad_glMatrixMultTranspose3x3fNV = (PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC)load("glMatrixMultTranspose3x3fNV"); - glad_glStencilThenCoverFillPathNV = (PFNGLSTENCILTHENCOVERFILLPATHNVPROC)load("glStencilThenCoverFillPathNV"); - glad_glStencilThenCoverStrokePathNV = (PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC)load("glStencilThenCoverStrokePathNV"); - glad_glStencilThenCoverFillPathInstancedNV = (PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC)load("glStencilThenCoverFillPathInstancedNV"); - glad_glStencilThenCoverStrokePathInstancedNV = (PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC)load("glStencilThenCoverStrokePathInstancedNV"); - glad_glPathGlyphIndexRangeNV = (PFNGLPATHGLYPHINDEXRANGENVPROC)load("glPathGlyphIndexRangeNV"); - glad_glPathGlyphIndexArrayNV = (PFNGLPATHGLYPHINDEXARRAYNVPROC)load("glPathGlyphIndexArrayNV"); - glad_glPathMemoryGlyphIndexArrayNV = (PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC)load("glPathMemoryGlyphIndexArrayNV"); - glad_glProgramPathFragmentInputGenNV = (PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC)load("glProgramPathFragmentInputGenNV"); - glad_glGetProgramResourcefvNV = (PFNGLGETPROGRAMRESOURCEFVNVPROC)load("glGetProgramResourcefvNV"); - glad_glPathColorGenNV = (PFNGLPATHCOLORGENNVPROC)load("glPathColorGenNV"); - glad_glPathTexGenNV = (PFNGLPATHTEXGENNVPROC)load("glPathTexGenNV"); - glad_glPathFogGenNV = (PFNGLPATHFOGGENNVPROC)load("glPathFogGenNV"); - glad_glGetPathColorGenivNV = (PFNGLGETPATHCOLORGENIVNVPROC)load("glGetPathColorGenivNV"); - glad_glGetPathColorGenfvNV = (PFNGLGETPATHCOLORGENFVNVPROC)load("glGetPathColorGenfvNV"); - glad_glGetPathTexGenivNV = (PFNGLGETPATHTEXGENIVNVPROC)load("glGetPathTexGenivNV"); - glad_glGetPathTexGenfvNV = (PFNGLGETPATHTEXGENFVNVPROC)load("glGetPathTexGenfvNV"); - glad_glMatrixFrustumEXT = (PFNGLMATRIXFRUSTUMEXTPROC)load("glMatrixFrustumEXT"); - glad_glMatrixLoadIdentityEXT = (PFNGLMATRIXLOADIDENTITYEXTPROC)load("glMatrixLoadIdentityEXT"); - glad_glMatrixLoadTransposefEXT = (PFNGLMATRIXLOADTRANSPOSEFEXTPROC)load("glMatrixLoadTransposefEXT"); - glad_glMatrixLoadTransposedEXT = (PFNGLMATRIXLOADTRANSPOSEDEXTPROC)load("glMatrixLoadTransposedEXT"); - glad_glMatrixLoadfEXT = (PFNGLMATRIXLOADFEXTPROC)load("glMatrixLoadfEXT"); - glad_glMatrixLoaddEXT = (PFNGLMATRIXLOADDEXTPROC)load("glMatrixLoaddEXT"); - glad_glMatrixMultTransposefEXT = (PFNGLMATRIXMULTTRANSPOSEFEXTPROC)load("glMatrixMultTransposefEXT"); - glad_glMatrixMultTransposedEXT = (PFNGLMATRIXMULTTRANSPOSEDEXTPROC)load("glMatrixMultTransposedEXT"); - glad_glMatrixMultfEXT = (PFNGLMATRIXMULTFEXTPROC)load("glMatrixMultfEXT"); - glad_glMatrixMultdEXT = (PFNGLMATRIXMULTDEXTPROC)load("glMatrixMultdEXT"); - glad_glMatrixOrthoEXT = (PFNGLMATRIXORTHOEXTPROC)load("glMatrixOrthoEXT"); - glad_glMatrixPopEXT = (PFNGLMATRIXPOPEXTPROC)load("glMatrixPopEXT"); - glad_glMatrixPushEXT = (PFNGLMATRIXPUSHEXTPROC)load("glMatrixPushEXT"); - glad_glMatrixRotatefEXT = (PFNGLMATRIXROTATEFEXTPROC)load("glMatrixRotatefEXT"); - glad_glMatrixRotatedEXT = (PFNGLMATRIXROTATEDEXTPROC)load("glMatrixRotatedEXT"); - glad_glMatrixScalefEXT = (PFNGLMATRIXSCALEFEXTPROC)load("glMatrixScalefEXT"); - glad_glMatrixScaledEXT = (PFNGLMATRIXSCALEDEXTPROC)load("glMatrixScaledEXT"); - glad_glMatrixTranslatefEXT = (PFNGLMATRIXTRANSLATEFEXTPROC)load("glMatrixTranslatefEXT"); - glad_glMatrixTranslatedEXT = (PFNGLMATRIXTRANSLATEDEXTPROC)load("glMatrixTranslatedEXT"); -} -static void load_GL_NV_pixel_data_range(GLADloadproc load) { - if(!GLAD_GL_NV_pixel_data_range) return; - glad_glPixelDataRangeNV = (PFNGLPIXELDATARANGENVPROC)load("glPixelDataRangeNV"); - glad_glFlushPixelDataRangeNV = (PFNGLFLUSHPIXELDATARANGENVPROC)load("glFlushPixelDataRangeNV"); -} -static void load_GL_NV_point_sprite(GLADloadproc load) { - if(!GLAD_GL_NV_point_sprite) return; - glad_glPointParameteriNV = (PFNGLPOINTPARAMETERINVPROC)load("glPointParameteriNV"); - glad_glPointParameterivNV = (PFNGLPOINTPARAMETERIVNVPROC)load("glPointParameterivNV"); -} -static void load_GL_NV_present_video(GLADloadproc load) { - if(!GLAD_GL_NV_present_video) return; - glad_glPresentFrameKeyedNV = (PFNGLPRESENTFRAMEKEYEDNVPROC)load("glPresentFrameKeyedNV"); - glad_glPresentFrameDualFillNV = (PFNGLPRESENTFRAMEDUALFILLNVPROC)load("glPresentFrameDualFillNV"); - glad_glGetVideoivNV = (PFNGLGETVIDEOIVNVPROC)load("glGetVideoivNV"); - glad_glGetVideouivNV = (PFNGLGETVIDEOUIVNVPROC)load("glGetVideouivNV"); - glad_glGetVideoi64vNV = (PFNGLGETVIDEOI64VNVPROC)load("glGetVideoi64vNV"); - glad_glGetVideoui64vNV = (PFNGLGETVIDEOUI64VNVPROC)load("glGetVideoui64vNV"); -} -static void load_GL_NV_primitive_restart(GLADloadproc load) { - if(!GLAD_GL_NV_primitive_restart) return; - glad_glPrimitiveRestartNV = (PFNGLPRIMITIVERESTARTNVPROC)load("glPrimitiveRestartNV"); - glad_glPrimitiveRestartIndexNV = (PFNGLPRIMITIVERESTARTINDEXNVPROC)load("glPrimitiveRestartIndexNV"); -} -static void load_GL_NV_query_resource(GLADloadproc load) { - if(!GLAD_GL_NV_query_resource) return; - glad_glQueryResourceNV = (PFNGLQUERYRESOURCENVPROC)load("glQueryResourceNV"); -} -static void load_GL_NV_query_resource_tag(GLADloadproc load) { - if(!GLAD_GL_NV_query_resource_tag) return; - glad_glGenQueryResourceTagNV = (PFNGLGENQUERYRESOURCETAGNVPROC)load("glGenQueryResourceTagNV"); - glad_glDeleteQueryResourceTagNV = (PFNGLDELETEQUERYRESOURCETAGNVPROC)load("glDeleteQueryResourceTagNV"); - glad_glQueryResourceTagNV = (PFNGLQUERYRESOURCETAGNVPROC)load("glQueryResourceTagNV"); -} -static void load_GL_NV_register_combiners(GLADloadproc load) { - if(!GLAD_GL_NV_register_combiners) return; - glad_glCombinerParameterfvNV = (PFNGLCOMBINERPARAMETERFVNVPROC)load("glCombinerParameterfvNV"); - glad_glCombinerParameterfNV = (PFNGLCOMBINERPARAMETERFNVPROC)load("glCombinerParameterfNV"); - glad_glCombinerParameterivNV = (PFNGLCOMBINERPARAMETERIVNVPROC)load("glCombinerParameterivNV"); - glad_glCombinerParameteriNV = (PFNGLCOMBINERPARAMETERINVPROC)load("glCombinerParameteriNV"); - glad_glCombinerInputNV = (PFNGLCOMBINERINPUTNVPROC)load("glCombinerInputNV"); - glad_glCombinerOutputNV = (PFNGLCOMBINEROUTPUTNVPROC)load("glCombinerOutputNV"); - glad_glFinalCombinerInputNV = (PFNGLFINALCOMBINERINPUTNVPROC)load("glFinalCombinerInputNV"); - glad_glGetCombinerInputParameterfvNV = (PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC)load("glGetCombinerInputParameterfvNV"); - glad_glGetCombinerInputParameterivNV = (PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC)load("glGetCombinerInputParameterivNV"); - glad_glGetCombinerOutputParameterfvNV = (PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC)load("glGetCombinerOutputParameterfvNV"); - glad_glGetCombinerOutputParameterivNV = (PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC)load("glGetCombinerOutputParameterivNV"); - glad_glGetFinalCombinerInputParameterfvNV = (PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC)load("glGetFinalCombinerInputParameterfvNV"); - glad_glGetFinalCombinerInputParameterivNV = (PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC)load("glGetFinalCombinerInputParameterivNV"); -} -static void load_GL_NV_register_combiners2(GLADloadproc load) { - if(!GLAD_GL_NV_register_combiners2) return; - glad_glCombinerStageParameterfvNV = (PFNGLCOMBINERSTAGEPARAMETERFVNVPROC)load("glCombinerStageParameterfvNV"); - glad_glGetCombinerStageParameterfvNV = (PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC)load("glGetCombinerStageParameterfvNV"); -} -static void load_GL_NV_sample_locations(GLADloadproc load) { - if(!GLAD_GL_NV_sample_locations) return; - glad_glFramebufferSampleLocationsfvNV = (PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC)load("glFramebufferSampleLocationsfvNV"); - glad_glNamedFramebufferSampleLocationsfvNV = (PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC)load("glNamedFramebufferSampleLocationsfvNV"); - glad_glResolveDepthValuesNV = (PFNGLRESOLVEDEPTHVALUESNVPROC)load("glResolveDepthValuesNV"); -} -static void load_GL_NV_shader_buffer_load(GLADloadproc load) { - if(!GLAD_GL_NV_shader_buffer_load) return; - glad_glMakeBufferResidentNV = (PFNGLMAKEBUFFERRESIDENTNVPROC)load("glMakeBufferResidentNV"); - glad_glMakeBufferNonResidentNV = (PFNGLMAKEBUFFERNONRESIDENTNVPROC)load("glMakeBufferNonResidentNV"); - glad_glIsBufferResidentNV = (PFNGLISBUFFERRESIDENTNVPROC)load("glIsBufferResidentNV"); - glad_glMakeNamedBufferResidentNV = (PFNGLMAKENAMEDBUFFERRESIDENTNVPROC)load("glMakeNamedBufferResidentNV"); - glad_glMakeNamedBufferNonResidentNV = (PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC)load("glMakeNamedBufferNonResidentNV"); - glad_glIsNamedBufferResidentNV = (PFNGLISNAMEDBUFFERRESIDENTNVPROC)load("glIsNamedBufferResidentNV"); - glad_glGetBufferParameterui64vNV = (PFNGLGETBUFFERPARAMETERUI64VNVPROC)load("glGetBufferParameterui64vNV"); - glad_glGetNamedBufferParameterui64vNV = (PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC)load("glGetNamedBufferParameterui64vNV"); - glad_glGetIntegerui64vNV = (PFNGLGETINTEGERUI64VNVPROC)load("glGetIntegerui64vNV"); - glad_glUniformui64NV = (PFNGLUNIFORMUI64NVPROC)load("glUniformui64NV"); - glad_glUniformui64vNV = (PFNGLUNIFORMUI64VNVPROC)load("glUniformui64vNV"); - glad_glGetUniformui64vNV = (PFNGLGETUNIFORMUI64VNVPROC)load("glGetUniformui64vNV"); - glad_glProgramUniformui64NV = (PFNGLPROGRAMUNIFORMUI64NVPROC)load("glProgramUniformui64NV"); - glad_glProgramUniformui64vNV = (PFNGLPROGRAMUNIFORMUI64VNVPROC)load("glProgramUniformui64vNV"); -} -static void load_GL_NV_texture_barrier(GLADloadproc load) { - if(!GLAD_GL_NV_texture_barrier) return; - glad_glTextureBarrierNV = (PFNGLTEXTUREBARRIERNVPROC)load("glTextureBarrierNV"); -} -static void load_GL_NV_texture_multisample(GLADloadproc load) { - if(!GLAD_GL_NV_texture_multisample) return; - glad_glTexImage2DMultisampleCoverageNV = (PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC)load("glTexImage2DMultisampleCoverageNV"); - glad_glTexImage3DMultisampleCoverageNV = (PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC)load("glTexImage3DMultisampleCoverageNV"); - glad_glTextureImage2DMultisampleNV = (PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC)load("glTextureImage2DMultisampleNV"); - glad_glTextureImage3DMultisampleNV = (PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC)load("glTextureImage3DMultisampleNV"); - glad_glTextureImage2DMultisampleCoverageNV = (PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC)load("glTextureImage2DMultisampleCoverageNV"); - glad_glTextureImage3DMultisampleCoverageNV = (PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC)load("glTextureImage3DMultisampleCoverageNV"); -} -static void load_GL_NV_transform_feedback(GLADloadproc load) { - if(!GLAD_GL_NV_transform_feedback) return; - glad_glBeginTransformFeedbackNV = (PFNGLBEGINTRANSFORMFEEDBACKNVPROC)load("glBeginTransformFeedbackNV"); - glad_glEndTransformFeedbackNV = (PFNGLENDTRANSFORMFEEDBACKNVPROC)load("glEndTransformFeedbackNV"); - glad_glTransformFeedbackAttribsNV = (PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC)load("glTransformFeedbackAttribsNV"); - glad_glBindBufferRangeNV = (PFNGLBINDBUFFERRANGENVPROC)load("glBindBufferRangeNV"); - glad_glBindBufferOffsetNV = (PFNGLBINDBUFFEROFFSETNVPROC)load("glBindBufferOffsetNV"); - glad_glBindBufferBaseNV = (PFNGLBINDBUFFERBASENVPROC)load("glBindBufferBaseNV"); - glad_glTransformFeedbackVaryingsNV = (PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC)load("glTransformFeedbackVaryingsNV"); - glad_glActiveVaryingNV = (PFNGLACTIVEVARYINGNVPROC)load("glActiveVaryingNV"); - glad_glGetVaryingLocationNV = (PFNGLGETVARYINGLOCATIONNVPROC)load("glGetVaryingLocationNV"); - glad_glGetActiveVaryingNV = (PFNGLGETACTIVEVARYINGNVPROC)load("glGetActiveVaryingNV"); - glad_glGetTransformFeedbackVaryingNV = (PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC)load("glGetTransformFeedbackVaryingNV"); - glad_glTransformFeedbackStreamAttribsNV = (PFNGLTRANSFORMFEEDBACKSTREAMATTRIBSNVPROC)load("glTransformFeedbackStreamAttribsNV"); -} -static void load_GL_NV_transform_feedback2(GLADloadproc load) { - if(!GLAD_GL_NV_transform_feedback2) return; - glad_glBindTransformFeedbackNV = (PFNGLBINDTRANSFORMFEEDBACKNVPROC)load("glBindTransformFeedbackNV"); - glad_glDeleteTransformFeedbacksNV = (PFNGLDELETETRANSFORMFEEDBACKSNVPROC)load("glDeleteTransformFeedbacksNV"); - glad_glGenTransformFeedbacksNV = (PFNGLGENTRANSFORMFEEDBACKSNVPROC)load("glGenTransformFeedbacksNV"); - glad_glIsTransformFeedbackNV = (PFNGLISTRANSFORMFEEDBACKNVPROC)load("glIsTransformFeedbackNV"); - glad_glPauseTransformFeedbackNV = (PFNGLPAUSETRANSFORMFEEDBACKNVPROC)load("glPauseTransformFeedbackNV"); - glad_glResumeTransformFeedbackNV = (PFNGLRESUMETRANSFORMFEEDBACKNVPROC)load("glResumeTransformFeedbackNV"); - glad_glDrawTransformFeedbackNV = (PFNGLDRAWTRANSFORMFEEDBACKNVPROC)load("glDrawTransformFeedbackNV"); -} -static void load_GL_NV_vdpau_interop(GLADloadproc load) { - if(!GLAD_GL_NV_vdpau_interop) return; - glad_glVDPAUInitNV = (PFNGLVDPAUINITNVPROC)load("glVDPAUInitNV"); - glad_glVDPAUFiniNV = (PFNGLVDPAUFININVPROC)load("glVDPAUFiniNV"); - glad_glVDPAURegisterVideoSurfaceNV = (PFNGLVDPAUREGISTERVIDEOSURFACENVPROC)load("glVDPAURegisterVideoSurfaceNV"); - glad_glVDPAURegisterOutputSurfaceNV = (PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC)load("glVDPAURegisterOutputSurfaceNV"); - glad_glVDPAUIsSurfaceNV = (PFNGLVDPAUISSURFACENVPROC)load("glVDPAUIsSurfaceNV"); - glad_glVDPAUUnregisterSurfaceNV = (PFNGLVDPAUUNREGISTERSURFACENVPROC)load("glVDPAUUnregisterSurfaceNV"); - glad_glVDPAUGetSurfaceivNV = (PFNGLVDPAUGETSURFACEIVNVPROC)load("glVDPAUGetSurfaceivNV"); - glad_glVDPAUSurfaceAccessNV = (PFNGLVDPAUSURFACEACCESSNVPROC)load("glVDPAUSurfaceAccessNV"); - glad_glVDPAUMapSurfacesNV = (PFNGLVDPAUMAPSURFACESNVPROC)load("glVDPAUMapSurfacesNV"); - glad_glVDPAUUnmapSurfacesNV = (PFNGLVDPAUUNMAPSURFACESNVPROC)load("glVDPAUUnmapSurfacesNV"); -} -static void load_GL_NV_vertex_array_range(GLADloadproc load) { - if(!GLAD_GL_NV_vertex_array_range) return; - glad_glFlushVertexArrayRangeNV = (PFNGLFLUSHVERTEXARRAYRANGENVPROC)load("glFlushVertexArrayRangeNV"); - glad_glVertexArrayRangeNV = (PFNGLVERTEXARRAYRANGENVPROC)load("glVertexArrayRangeNV"); -} -static void load_GL_NV_vertex_attrib_integer_64bit(GLADloadproc load) { - if(!GLAD_GL_NV_vertex_attrib_integer_64bit) return; - glad_glVertexAttribL1i64NV = (PFNGLVERTEXATTRIBL1I64NVPROC)load("glVertexAttribL1i64NV"); - glad_glVertexAttribL2i64NV = (PFNGLVERTEXATTRIBL2I64NVPROC)load("glVertexAttribL2i64NV"); - glad_glVertexAttribL3i64NV = (PFNGLVERTEXATTRIBL3I64NVPROC)load("glVertexAttribL3i64NV"); - glad_glVertexAttribL4i64NV = (PFNGLVERTEXATTRIBL4I64NVPROC)load("glVertexAttribL4i64NV"); - glad_glVertexAttribL1i64vNV = (PFNGLVERTEXATTRIBL1I64VNVPROC)load("glVertexAttribL1i64vNV"); - glad_glVertexAttribL2i64vNV = (PFNGLVERTEXATTRIBL2I64VNVPROC)load("glVertexAttribL2i64vNV"); - glad_glVertexAttribL3i64vNV = (PFNGLVERTEXATTRIBL3I64VNVPROC)load("glVertexAttribL3i64vNV"); - glad_glVertexAttribL4i64vNV = (PFNGLVERTEXATTRIBL4I64VNVPROC)load("glVertexAttribL4i64vNV"); - glad_glVertexAttribL1ui64NV = (PFNGLVERTEXATTRIBL1UI64NVPROC)load("glVertexAttribL1ui64NV"); - glad_glVertexAttribL2ui64NV = (PFNGLVERTEXATTRIBL2UI64NVPROC)load("glVertexAttribL2ui64NV"); - glad_glVertexAttribL3ui64NV = (PFNGLVERTEXATTRIBL3UI64NVPROC)load("glVertexAttribL3ui64NV"); - glad_glVertexAttribL4ui64NV = (PFNGLVERTEXATTRIBL4UI64NVPROC)load("glVertexAttribL4ui64NV"); - glad_glVertexAttribL1ui64vNV = (PFNGLVERTEXATTRIBL1UI64VNVPROC)load("glVertexAttribL1ui64vNV"); - glad_glVertexAttribL2ui64vNV = (PFNGLVERTEXATTRIBL2UI64VNVPROC)load("glVertexAttribL2ui64vNV"); - glad_glVertexAttribL3ui64vNV = (PFNGLVERTEXATTRIBL3UI64VNVPROC)load("glVertexAttribL3ui64vNV"); - glad_glVertexAttribL4ui64vNV = (PFNGLVERTEXATTRIBL4UI64VNVPROC)load("glVertexAttribL4ui64vNV"); - glad_glGetVertexAttribLi64vNV = (PFNGLGETVERTEXATTRIBLI64VNVPROC)load("glGetVertexAttribLi64vNV"); - glad_glGetVertexAttribLui64vNV = (PFNGLGETVERTEXATTRIBLUI64VNVPROC)load("glGetVertexAttribLui64vNV"); - glad_glVertexAttribLFormatNV = (PFNGLVERTEXATTRIBLFORMATNVPROC)load("glVertexAttribLFormatNV"); -} -static void load_GL_NV_vertex_buffer_unified_memory(GLADloadproc load) { - if(!GLAD_GL_NV_vertex_buffer_unified_memory) return; - glad_glBufferAddressRangeNV = (PFNGLBUFFERADDRESSRANGENVPROC)load("glBufferAddressRangeNV"); - glad_glVertexFormatNV = (PFNGLVERTEXFORMATNVPROC)load("glVertexFormatNV"); - glad_glNormalFormatNV = (PFNGLNORMALFORMATNVPROC)load("glNormalFormatNV"); - glad_glColorFormatNV = (PFNGLCOLORFORMATNVPROC)load("glColorFormatNV"); - glad_glIndexFormatNV = (PFNGLINDEXFORMATNVPROC)load("glIndexFormatNV"); - glad_glTexCoordFormatNV = (PFNGLTEXCOORDFORMATNVPROC)load("glTexCoordFormatNV"); - glad_glEdgeFlagFormatNV = (PFNGLEDGEFLAGFORMATNVPROC)load("glEdgeFlagFormatNV"); - glad_glSecondaryColorFormatNV = (PFNGLSECONDARYCOLORFORMATNVPROC)load("glSecondaryColorFormatNV"); - glad_glFogCoordFormatNV = (PFNGLFOGCOORDFORMATNVPROC)load("glFogCoordFormatNV"); - glad_glVertexAttribFormatNV = (PFNGLVERTEXATTRIBFORMATNVPROC)load("glVertexAttribFormatNV"); - glad_glVertexAttribIFormatNV = (PFNGLVERTEXATTRIBIFORMATNVPROC)load("glVertexAttribIFormatNV"); - glad_glGetIntegerui64i_vNV = (PFNGLGETINTEGERUI64I_VNVPROC)load("glGetIntegerui64i_vNV"); -} -static void load_GL_NV_vertex_program(GLADloadproc load) { - if(!GLAD_GL_NV_vertex_program) return; - glad_glAreProgramsResidentNV = (PFNGLAREPROGRAMSRESIDENTNVPROC)load("glAreProgramsResidentNV"); - glad_glBindProgramNV = (PFNGLBINDPROGRAMNVPROC)load("glBindProgramNV"); - glad_glDeleteProgramsNV = (PFNGLDELETEPROGRAMSNVPROC)load("glDeleteProgramsNV"); - glad_glExecuteProgramNV = (PFNGLEXECUTEPROGRAMNVPROC)load("glExecuteProgramNV"); - glad_glGenProgramsNV = (PFNGLGENPROGRAMSNVPROC)load("glGenProgramsNV"); - glad_glGetProgramParameterdvNV = (PFNGLGETPROGRAMPARAMETERDVNVPROC)load("glGetProgramParameterdvNV"); - glad_glGetProgramParameterfvNV = (PFNGLGETPROGRAMPARAMETERFVNVPROC)load("glGetProgramParameterfvNV"); - glad_glGetProgramivNV = (PFNGLGETPROGRAMIVNVPROC)load("glGetProgramivNV"); - glad_glGetProgramStringNV = (PFNGLGETPROGRAMSTRINGNVPROC)load("glGetProgramStringNV"); - glad_glGetTrackMatrixivNV = (PFNGLGETTRACKMATRIXIVNVPROC)load("glGetTrackMatrixivNV"); - glad_glGetVertexAttribdvNV = (PFNGLGETVERTEXATTRIBDVNVPROC)load("glGetVertexAttribdvNV"); - glad_glGetVertexAttribfvNV = (PFNGLGETVERTEXATTRIBFVNVPROC)load("glGetVertexAttribfvNV"); - glad_glGetVertexAttribivNV = (PFNGLGETVERTEXATTRIBIVNVPROC)load("glGetVertexAttribivNV"); - glad_glGetVertexAttribPointervNV = (PFNGLGETVERTEXATTRIBPOINTERVNVPROC)load("glGetVertexAttribPointervNV"); - glad_glIsProgramNV = (PFNGLISPROGRAMNVPROC)load("glIsProgramNV"); - glad_glLoadProgramNV = (PFNGLLOADPROGRAMNVPROC)load("glLoadProgramNV"); - glad_glProgramParameter4dNV = (PFNGLPROGRAMPARAMETER4DNVPROC)load("glProgramParameter4dNV"); - glad_glProgramParameter4dvNV = (PFNGLPROGRAMPARAMETER4DVNVPROC)load("glProgramParameter4dvNV"); - glad_glProgramParameter4fNV = (PFNGLPROGRAMPARAMETER4FNVPROC)load("glProgramParameter4fNV"); - glad_glProgramParameter4fvNV = (PFNGLPROGRAMPARAMETER4FVNVPROC)load("glProgramParameter4fvNV"); - glad_glProgramParameters4dvNV = (PFNGLPROGRAMPARAMETERS4DVNVPROC)load("glProgramParameters4dvNV"); - glad_glProgramParameters4fvNV = (PFNGLPROGRAMPARAMETERS4FVNVPROC)load("glProgramParameters4fvNV"); - glad_glRequestResidentProgramsNV = (PFNGLREQUESTRESIDENTPROGRAMSNVPROC)load("glRequestResidentProgramsNV"); - glad_glTrackMatrixNV = (PFNGLTRACKMATRIXNVPROC)load("glTrackMatrixNV"); - glad_glVertexAttribPointerNV = (PFNGLVERTEXATTRIBPOINTERNVPROC)load("glVertexAttribPointerNV"); - glad_glVertexAttrib1dNV = (PFNGLVERTEXATTRIB1DNVPROC)load("glVertexAttrib1dNV"); - glad_glVertexAttrib1dvNV = (PFNGLVERTEXATTRIB1DVNVPROC)load("glVertexAttrib1dvNV"); - glad_glVertexAttrib1fNV = (PFNGLVERTEXATTRIB1FNVPROC)load("glVertexAttrib1fNV"); - glad_glVertexAttrib1fvNV = (PFNGLVERTEXATTRIB1FVNVPROC)load("glVertexAttrib1fvNV"); - glad_glVertexAttrib1sNV = (PFNGLVERTEXATTRIB1SNVPROC)load("glVertexAttrib1sNV"); - glad_glVertexAttrib1svNV = (PFNGLVERTEXATTRIB1SVNVPROC)load("glVertexAttrib1svNV"); - glad_glVertexAttrib2dNV = (PFNGLVERTEXATTRIB2DNVPROC)load("glVertexAttrib2dNV"); - glad_glVertexAttrib2dvNV = (PFNGLVERTEXATTRIB2DVNVPROC)load("glVertexAttrib2dvNV"); - glad_glVertexAttrib2fNV = (PFNGLVERTEXATTRIB2FNVPROC)load("glVertexAttrib2fNV"); - glad_glVertexAttrib2fvNV = (PFNGLVERTEXATTRIB2FVNVPROC)load("glVertexAttrib2fvNV"); - glad_glVertexAttrib2sNV = (PFNGLVERTEXATTRIB2SNVPROC)load("glVertexAttrib2sNV"); - glad_glVertexAttrib2svNV = (PFNGLVERTEXATTRIB2SVNVPROC)load("glVertexAttrib2svNV"); - glad_glVertexAttrib3dNV = (PFNGLVERTEXATTRIB3DNVPROC)load("glVertexAttrib3dNV"); - glad_glVertexAttrib3dvNV = (PFNGLVERTEXATTRIB3DVNVPROC)load("glVertexAttrib3dvNV"); - glad_glVertexAttrib3fNV = (PFNGLVERTEXATTRIB3FNVPROC)load("glVertexAttrib3fNV"); - glad_glVertexAttrib3fvNV = (PFNGLVERTEXATTRIB3FVNVPROC)load("glVertexAttrib3fvNV"); - glad_glVertexAttrib3sNV = (PFNGLVERTEXATTRIB3SNVPROC)load("glVertexAttrib3sNV"); - glad_glVertexAttrib3svNV = (PFNGLVERTEXATTRIB3SVNVPROC)load("glVertexAttrib3svNV"); - glad_glVertexAttrib4dNV = (PFNGLVERTEXATTRIB4DNVPROC)load("glVertexAttrib4dNV"); - glad_glVertexAttrib4dvNV = (PFNGLVERTEXATTRIB4DVNVPROC)load("glVertexAttrib4dvNV"); - glad_glVertexAttrib4fNV = (PFNGLVERTEXATTRIB4FNVPROC)load("glVertexAttrib4fNV"); - glad_glVertexAttrib4fvNV = (PFNGLVERTEXATTRIB4FVNVPROC)load("glVertexAttrib4fvNV"); - glad_glVertexAttrib4sNV = (PFNGLVERTEXATTRIB4SNVPROC)load("glVertexAttrib4sNV"); - glad_glVertexAttrib4svNV = (PFNGLVERTEXATTRIB4SVNVPROC)load("glVertexAttrib4svNV"); - glad_glVertexAttrib4ubNV = (PFNGLVERTEXATTRIB4UBNVPROC)load("glVertexAttrib4ubNV"); - glad_glVertexAttrib4ubvNV = (PFNGLVERTEXATTRIB4UBVNVPROC)load("glVertexAttrib4ubvNV"); - glad_glVertexAttribs1dvNV = (PFNGLVERTEXATTRIBS1DVNVPROC)load("glVertexAttribs1dvNV"); - glad_glVertexAttribs1fvNV = (PFNGLVERTEXATTRIBS1FVNVPROC)load("glVertexAttribs1fvNV"); - glad_glVertexAttribs1svNV = (PFNGLVERTEXATTRIBS1SVNVPROC)load("glVertexAttribs1svNV"); - glad_glVertexAttribs2dvNV = (PFNGLVERTEXATTRIBS2DVNVPROC)load("glVertexAttribs2dvNV"); - glad_glVertexAttribs2fvNV = (PFNGLVERTEXATTRIBS2FVNVPROC)load("glVertexAttribs2fvNV"); - glad_glVertexAttribs2svNV = (PFNGLVERTEXATTRIBS2SVNVPROC)load("glVertexAttribs2svNV"); - glad_glVertexAttribs3dvNV = (PFNGLVERTEXATTRIBS3DVNVPROC)load("glVertexAttribs3dvNV"); - glad_glVertexAttribs3fvNV = (PFNGLVERTEXATTRIBS3FVNVPROC)load("glVertexAttribs3fvNV"); - glad_glVertexAttribs3svNV = (PFNGLVERTEXATTRIBS3SVNVPROC)load("glVertexAttribs3svNV"); - glad_glVertexAttribs4dvNV = (PFNGLVERTEXATTRIBS4DVNVPROC)load("glVertexAttribs4dvNV"); - glad_glVertexAttribs4fvNV = (PFNGLVERTEXATTRIBS4FVNVPROC)load("glVertexAttribs4fvNV"); - glad_glVertexAttribs4svNV = (PFNGLVERTEXATTRIBS4SVNVPROC)load("glVertexAttribs4svNV"); - glad_glVertexAttribs4ubvNV = (PFNGLVERTEXATTRIBS4UBVNVPROC)load("glVertexAttribs4ubvNV"); -} -static void load_GL_NV_vertex_program4(GLADloadproc load) { - if(!GLAD_GL_NV_vertex_program4) return; - glad_glVertexAttribI1iEXT = (PFNGLVERTEXATTRIBI1IEXTPROC)load("glVertexAttribI1iEXT"); - glad_glVertexAttribI2iEXT = (PFNGLVERTEXATTRIBI2IEXTPROC)load("glVertexAttribI2iEXT"); - glad_glVertexAttribI3iEXT = (PFNGLVERTEXATTRIBI3IEXTPROC)load("glVertexAttribI3iEXT"); - glad_glVertexAttribI4iEXT = (PFNGLVERTEXATTRIBI4IEXTPROC)load("glVertexAttribI4iEXT"); - glad_glVertexAttribI1uiEXT = (PFNGLVERTEXATTRIBI1UIEXTPROC)load("glVertexAttribI1uiEXT"); - glad_glVertexAttribI2uiEXT = (PFNGLVERTEXATTRIBI2UIEXTPROC)load("glVertexAttribI2uiEXT"); - glad_glVertexAttribI3uiEXT = (PFNGLVERTEXATTRIBI3UIEXTPROC)load("glVertexAttribI3uiEXT"); - glad_glVertexAttribI4uiEXT = (PFNGLVERTEXATTRIBI4UIEXTPROC)load("glVertexAttribI4uiEXT"); - glad_glVertexAttribI1ivEXT = (PFNGLVERTEXATTRIBI1IVEXTPROC)load("glVertexAttribI1ivEXT"); - glad_glVertexAttribI2ivEXT = (PFNGLVERTEXATTRIBI2IVEXTPROC)load("glVertexAttribI2ivEXT"); - glad_glVertexAttribI3ivEXT = (PFNGLVERTEXATTRIBI3IVEXTPROC)load("glVertexAttribI3ivEXT"); - glad_glVertexAttribI4ivEXT = (PFNGLVERTEXATTRIBI4IVEXTPROC)load("glVertexAttribI4ivEXT"); - glad_glVertexAttribI1uivEXT = (PFNGLVERTEXATTRIBI1UIVEXTPROC)load("glVertexAttribI1uivEXT"); - glad_glVertexAttribI2uivEXT = (PFNGLVERTEXATTRIBI2UIVEXTPROC)load("glVertexAttribI2uivEXT"); - glad_glVertexAttribI3uivEXT = (PFNGLVERTEXATTRIBI3UIVEXTPROC)load("glVertexAttribI3uivEXT"); - glad_glVertexAttribI4uivEXT = (PFNGLVERTEXATTRIBI4UIVEXTPROC)load("glVertexAttribI4uivEXT"); - glad_glVertexAttribI4bvEXT = (PFNGLVERTEXATTRIBI4BVEXTPROC)load("glVertexAttribI4bvEXT"); - glad_glVertexAttribI4svEXT = (PFNGLVERTEXATTRIBI4SVEXTPROC)load("glVertexAttribI4svEXT"); - glad_glVertexAttribI4ubvEXT = (PFNGLVERTEXATTRIBI4UBVEXTPROC)load("glVertexAttribI4ubvEXT"); - glad_glVertexAttribI4usvEXT = (PFNGLVERTEXATTRIBI4USVEXTPROC)load("glVertexAttribI4usvEXT"); - glad_glVertexAttribIPointerEXT = (PFNGLVERTEXATTRIBIPOINTEREXTPROC)load("glVertexAttribIPointerEXT"); - glad_glGetVertexAttribIivEXT = (PFNGLGETVERTEXATTRIBIIVEXTPROC)load("glGetVertexAttribIivEXT"); - glad_glGetVertexAttribIuivEXT = (PFNGLGETVERTEXATTRIBIUIVEXTPROC)load("glGetVertexAttribIuivEXT"); -} -static void load_GL_NV_video_capture(GLADloadproc load) { - if(!GLAD_GL_NV_video_capture) return; - glad_glBeginVideoCaptureNV = (PFNGLBEGINVIDEOCAPTURENVPROC)load("glBeginVideoCaptureNV"); - glad_glBindVideoCaptureStreamBufferNV = (PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC)load("glBindVideoCaptureStreamBufferNV"); - glad_glBindVideoCaptureStreamTextureNV = (PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC)load("glBindVideoCaptureStreamTextureNV"); - glad_glEndVideoCaptureNV = (PFNGLENDVIDEOCAPTURENVPROC)load("glEndVideoCaptureNV"); - glad_glGetVideoCaptureivNV = (PFNGLGETVIDEOCAPTUREIVNVPROC)load("glGetVideoCaptureivNV"); - glad_glGetVideoCaptureStreamivNV = (PFNGLGETVIDEOCAPTURESTREAMIVNVPROC)load("glGetVideoCaptureStreamivNV"); - glad_glGetVideoCaptureStreamfvNV = (PFNGLGETVIDEOCAPTURESTREAMFVNVPROC)load("glGetVideoCaptureStreamfvNV"); - glad_glGetVideoCaptureStreamdvNV = (PFNGLGETVIDEOCAPTURESTREAMDVNVPROC)load("glGetVideoCaptureStreamdvNV"); - glad_glVideoCaptureNV = (PFNGLVIDEOCAPTURENVPROC)load("glVideoCaptureNV"); - glad_glVideoCaptureStreamParameterivNV = (PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC)load("glVideoCaptureStreamParameterivNV"); - glad_glVideoCaptureStreamParameterfvNV = (PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC)load("glVideoCaptureStreamParameterfvNV"); - glad_glVideoCaptureStreamParameterdvNV = (PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC)load("glVideoCaptureStreamParameterdvNV"); -} -static void load_GL_NV_viewport_swizzle(GLADloadproc load) { - if(!GLAD_GL_NV_viewport_swizzle) return; - glad_glViewportSwizzleNV = (PFNGLVIEWPORTSWIZZLENVPROC)load("glViewportSwizzleNV"); -} -static void load_GL_OES_byte_coordinates(GLADloadproc load) { - if(!GLAD_GL_OES_byte_coordinates) return; - glad_glMultiTexCoord1bOES = (PFNGLMULTITEXCOORD1BOESPROC)load("glMultiTexCoord1bOES"); - glad_glMultiTexCoord1bvOES = (PFNGLMULTITEXCOORD1BVOESPROC)load("glMultiTexCoord1bvOES"); - glad_glMultiTexCoord2bOES = (PFNGLMULTITEXCOORD2BOESPROC)load("glMultiTexCoord2bOES"); - glad_glMultiTexCoord2bvOES = (PFNGLMULTITEXCOORD2BVOESPROC)load("glMultiTexCoord2bvOES"); - glad_glMultiTexCoord3bOES = (PFNGLMULTITEXCOORD3BOESPROC)load("glMultiTexCoord3bOES"); - glad_glMultiTexCoord3bvOES = (PFNGLMULTITEXCOORD3BVOESPROC)load("glMultiTexCoord3bvOES"); - glad_glMultiTexCoord4bOES = (PFNGLMULTITEXCOORD4BOESPROC)load("glMultiTexCoord4bOES"); - glad_glMultiTexCoord4bvOES = (PFNGLMULTITEXCOORD4BVOESPROC)load("glMultiTexCoord4bvOES"); - glad_glTexCoord1bOES = (PFNGLTEXCOORD1BOESPROC)load("glTexCoord1bOES"); - glad_glTexCoord1bvOES = (PFNGLTEXCOORD1BVOESPROC)load("glTexCoord1bvOES"); - glad_glTexCoord2bOES = (PFNGLTEXCOORD2BOESPROC)load("glTexCoord2bOES"); - glad_glTexCoord2bvOES = (PFNGLTEXCOORD2BVOESPROC)load("glTexCoord2bvOES"); - glad_glTexCoord3bOES = (PFNGLTEXCOORD3BOESPROC)load("glTexCoord3bOES"); - glad_glTexCoord3bvOES = (PFNGLTEXCOORD3BVOESPROC)load("glTexCoord3bvOES"); - glad_glTexCoord4bOES = (PFNGLTEXCOORD4BOESPROC)load("glTexCoord4bOES"); - glad_glTexCoord4bvOES = (PFNGLTEXCOORD4BVOESPROC)load("glTexCoord4bvOES"); - glad_glVertex2bOES = (PFNGLVERTEX2BOESPROC)load("glVertex2bOES"); - glad_glVertex2bvOES = (PFNGLVERTEX2BVOESPROC)load("glVertex2bvOES"); - glad_glVertex3bOES = (PFNGLVERTEX3BOESPROC)load("glVertex3bOES"); - glad_glVertex3bvOES = (PFNGLVERTEX3BVOESPROC)load("glVertex3bvOES"); - glad_glVertex4bOES = (PFNGLVERTEX4BOESPROC)load("glVertex4bOES"); - glad_glVertex4bvOES = (PFNGLVERTEX4BVOESPROC)load("glVertex4bvOES"); -} -static void load_GL_OES_fixed_point(GLADloadproc load) { - if(!GLAD_GL_OES_fixed_point) return; - glad_glAlphaFuncxOES = (PFNGLALPHAFUNCXOESPROC)load("glAlphaFuncxOES"); - glad_glClearColorxOES = (PFNGLCLEARCOLORXOESPROC)load("glClearColorxOES"); - glad_glClearDepthxOES = (PFNGLCLEARDEPTHXOESPROC)load("glClearDepthxOES"); - glad_glClipPlanexOES = (PFNGLCLIPPLANEXOESPROC)load("glClipPlanexOES"); - glad_glColor4xOES = (PFNGLCOLOR4XOESPROC)load("glColor4xOES"); - glad_glDepthRangexOES = (PFNGLDEPTHRANGEXOESPROC)load("glDepthRangexOES"); - glad_glFogxOES = (PFNGLFOGXOESPROC)load("glFogxOES"); - glad_glFogxvOES = (PFNGLFOGXVOESPROC)load("glFogxvOES"); - glad_glFrustumxOES = (PFNGLFRUSTUMXOESPROC)load("glFrustumxOES"); - glad_glGetClipPlanexOES = (PFNGLGETCLIPPLANEXOESPROC)load("glGetClipPlanexOES"); - glad_glGetFixedvOES = (PFNGLGETFIXEDVOESPROC)load("glGetFixedvOES"); - glad_glGetTexEnvxvOES = (PFNGLGETTEXENVXVOESPROC)load("glGetTexEnvxvOES"); - glad_glGetTexParameterxvOES = (PFNGLGETTEXPARAMETERXVOESPROC)load("glGetTexParameterxvOES"); - glad_glLightModelxOES = (PFNGLLIGHTMODELXOESPROC)load("glLightModelxOES"); - glad_glLightModelxvOES = (PFNGLLIGHTMODELXVOESPROC)load("glLightModelxvOES"); - glad_glLightxOES = (PFNGLLIGHTXOESPROC)load("glLightxOES"); - glad_glLightxvOES = (PFNGLLIGHTXVOESPROC)load("glLightxvOES"); - glad_glLineWidthxOES = (PFNGLLINEWIDTHXOESPROC)load("glLineWidthxOES"); - glad_glLoadMatrixxOES = (PFNGLLOADMATRIXXOESPROC)load("glLoadMatrixxOES"); - glad_glMaterialxOES = (PFNGLMATERIALXOESPROC)load("glMaterialxOES"); - glad_glMaterialxvOES = (PFNGLMATERIALXVOESPROC)load("glMaterialxvOES"); - glad_glMultMatrixxOES = (PFNGLMULTMATRIXXOESPROC)load("glMultMatrixxOES"); - glad_glMultiTexCoord4xOES = (PFNGLMULTITEXCOORD4XOESPROC)load("glMultiTexCoord4xOES"); - glad_glNormal3xOES = (PFNGLNORMAL3XOESPROC)load("glNormal3xOES"); - glad_glOrthoxOES = (PFNGLORTHOXOESPROC)load("glOrthoxOES"); - glad_glPointParameterxvOES = (PFNGLPOINTPARAMETERXVOESPROC)load("glPointParameterxvOES"); - glad_glPointSizexOES = (PFNGLPOINTSIZEXOESPROC)load("glPointSizexOES"); - glad_glPolygonOffsetxOES = (PFNGLPOLYGONOFFSETXOESPROC)load("glPolygonOffsetxOES"); - glad_glRotatexOES = (PFNGLROTATEXOESPROC)load("glRotatexOES"); - glad_glScalexOES = (PFNGLSCALEXOESPROC)load("glScalexOES"); - glad_glTexEnvxOES = (PFNGLTEXENVXOESPROC)load("glTexEnvxOES"); - glad_glTexEnvxvOES = (PFNGLTEXENVXVOESPROC)load("glTexEnvxvOES"); - glad_glTexParameterxOES = (PFNGLTEXPARAMETERXOESPROC)load("glTexParameterxOES"); - glad_glTexParameterxvOES = (PFNGLTEXPARAMETERXVOESPROC)load("glTexParameterxvOES"); - glad_glTranslatexOES = (PFNGLTRANSLATEXOESPROC)load("glTranslatexOES"); - glad_glGetLightxvOES = (PFNGLGETLIGHTXVOESPROC)load("glGetLightxvOES"); - glad_glGetMaterialxvOES = (PFNGLGETMATERIALXVOESPROC)load("glGetMaterialxvOES"); - glad_glPointParameterxOES = (PFNGLPOINTPARAMETERXOESPROC)load("glPointParameterxOES"); - glad_glSampleCoveragexOES = (PFNGLSAMPLECOVERAGEXOESPROC)load("glSampleCoveragexOES"); - glad_glAccumxOES = (PFNGLACCUMXOESPROC)load("glAccumxOES"); - glad_glBitmapxOES = (PFNGLBITMAPXOESPROC)load("glBitmapxOES"); - glad_glBlendColorxOES = (PFNGLBLENDCOLORXOESPROC)load("glBlendColorxOES"); - glad_glClearAccumxOES = (PFNGLCLEARACCUMXOESPROC)load("glClearAccumxOES"); - glad_glColor3xOES = (PFNGLCOLOR3XOESPROC)load("glColor3xOES"); - glad_glColor3xvOES = (PFNGLCOLOR3XVOESPROC)load("glColor3xvOES"); - glad_glColor4xvOES = (PFNGLCOLOR4XVOESPROC)load("glColor4xvOES"); - glad_glConvolutionParameterxOES = (PFNGLCONVOLUTIONPARAMETERXOESPROC)load("glConvolutionParameterxOES"); - glad_glConvolutionParameterxvOES = (PFNGLCONVOLUTIONPARAMETERXVOESPROC)load("glConvolutionParameterxvOES"); - glad_glEvalCoord1xOES = (PFNGLEVALCOORD1XOESPROC)load("glEvalCoord1xOES"); - glad_glEvalCoord1xvOES = (PFNGLEVALCOORD1XVOESPROC)load("glEvalCoord1xvOES"); - glad_glEvalCoord2xOES = (PFNGLEVALCOORD2XOESPROC)load("glEvalCoord2xOES"); - glad_glEvalCoord2xvOES = (PFNGLEVALCOORD2XVOESPROC)load("glEvalCoord2xvOES"); - glad_glFeedbackBufferxOES = (PFNGLFEEDBACKBUFFERXOESPROC)load("glFeedbackBufferxOES"); - glad_glGetConvolutionParameterxvOES = (PFNGLGETCONVOLUTIONPARAMETERXVOESPROC)load("glGetConvolutionParameterxvOES"); - glad_glGetHistogramParameterxvOES = (PFNGLGETHISTOGRAMPARAMETERXVOESPROC)load("glGetHistogramParameterxvOES"); - glad_glGetLightxOES = (PFNGLGETLIGHTXOESPROC)load("glGetLightxOES"); - glad_glGetMapxvOES = (PFNGLGETMAPXVOESPROC)load("glGetMapxvOES"); - glad_glGetMaterialxOES = (PFNGLGETMATERIALXOESPROC)load("glGetMaterialxOES"); - glad_glGetPixelMapxv = (PFNGLGETPIXELMAPXVPROC)load("glGetPixelMapxv"); - glad_glGetTexGenxvOES = (PFNGLGETTEXGENXVOESPROC)load("glGetTexGenxvOES"); - glad_glGetTexLevelParameterxvOES = (PFNGLGETTEXLEVELPARAMETERXVOESPROC)load("glGetTexLevelParameterxvOES"); - glad_glIndexxOES = (PFNGLINDEXXOESPROC)load("glIndexxOES"); - glad_glIndexxvOES = (PFNGLINDEXXVOESPROC)load("glIndexxvOES"); - glad_glLoadTransposeMatrixxOES = (PFNGLLOADTRANSPOSEMATRIXXOESPROC)load("glLoadTransposeMatrixxOES"); - glad_glMap1xOES = (PFNGLMAP1XOESPROC)load("glMap1xOES"); - glad_glMap2xOES = (PFNGLMAP2XOESPROC)load("glMap2xOES"); - glad_glMapGrid1xOES = (PFNGLMAPGRID1XOESPROC)load("glMapGrid1xOES"); - glad_glMapGrid2xOES = (PFNGLMAPGRID2XOESPROC)load("glMapGrid2xOES"); - glad_glMultTransposeMatrixxOES = (PFNGLMULTTRANSPOSEMATRIXXOESPROC)load("glMultTransposeMatrixxOES"); - glad_glMultiTexCoord1xOES = (PFNGLMULTITEXCOORD1XOESPROC)load("glMultiTexCoord1xOES"); - glad_glMultiTexCoord1xvOES = (PFNGLMULTITEXCOORD1XVOESPROC)load("glMultiTexCoord1xvOES"); - glad_glMultiTexCoord2xOES = (PFNGLMULTITEXCOORD2XOESPROC)load("glMultiTexCoord2xOES"); - glad_glMultiTexCoord2xvOES = (PFNGLMULTITEXCOORD2XVOESPROC)load("glMultiTexCoord2xvOES"); - glad_glMultiTexCoord3xOES = (PFNGLMULTITEXCOORD3XOESPROC)load("glMultiTexCoord3xOES"); - glad_glMultiTexCoord3xvOES = (PFNGLMULTITEXCOORD3XVOESPROC)load("glMultiTexCoord3xvOES"); - glad_glMultiTexCoord4xvOES = (PFNGLMULTITEXCOORD4XVOESPROC)load("glMultiTexCoord4xvOES"); - glad_glNormal3xvOES = (PFNGLNORMAL3XVOESPROC)load("glNormal3xvOES"); - glad_glPassThroughxOES = (PFNGLPASSTHROUGHXOESPROC)load("glPassThroughxOES"); - glad_glPixelMapx = (PFNGLPIXELMAPXPROC)load("glPixelMapx"); - glad_glPixelStorex = (PFNGLPIXELSTOREXPROC)load("glPixelStorex"); - glad_glPixelTransferxOES = (PFNGLPIXELTRANSFERXOESPROC)load("glPixelTransferxOES"); - glad_glPixelZoomxOES = (PFNGLPIXELZOOMXOESPROC)load("glPixelZoomxOES"); - glad_glPrioritizeTexturesxOES = (PFNGLPRIORITIZETEXTURESXOESPROC)load("glPrioritizeTexturesxOES"); - glad_glRasterPos2xOES = (PFNGLRASTERPOS2XOESPROC)load("glRasterPos2xOES"); - glad_glRasterPos2xvOES = (PFNGLRASTERPOS2XVOESPROC)load("glRasterPos2xvOES"); - glad_glRasterPos3xOES = (PFNGLRASTERPOS3XOESPROC)load("glRasterPos3xOES"); - glad_glRasterPos3xvOES = (PFNGLRASTERPOS3XVOESPROC)load("glRasterPos3xvOES"); - glad_glRasterPos4xOES = (PFNGLRASTERPOS4XOESPROC)load("glRasterPos4xOES"); - glad_glRasterPos4xvOES = (PFNGLRASTERPOS4XVOESPROC)load("glRasterPos4xvOES"); - glad_glRectxOES = (PFNGLRECTXOESPROC)load("glRectxOES"); - glad_glRectxvOES = (PFNGLRECTXVOESPROC)load("glRectxvOES"); - glad_glTexCoord1xOES = (PFNGLTEXCOORD1XOESPROC)load("glTexCoord1xOES"); - glad_glTexCoord1xvOES = (PFNGLTEXCOORD1XVOESPROC)load("glTexCoord1xvOES"); - glad_glTexCoord2xOES = (PFNGLTEXCOORD2XOESPROC)load("glTexCoord2xOES"); - glad_glTexCoord2xvOES = (PFNGLTEXCOORD2XVOESPROC)load("glTexCoord2xvOES"); - glad_glTexCoord3xOES = (PFNGLTEXCOORD3XOESPROC)load("glTexCoord3xOES"); - glad_glTexCoord3xvOES = (PFNGLTEXCOORD3XVOESPROC)load("glTexCoord3xvOES"); - glad_glTexCoord4xOES = (PFNGLTEXCOORD4XOESPROC)load("glTexCoord4xOES"); - glad_glTexCoord4xvOES = (PFNGLTEXCOORD4XVOESPROC)load("glTexCoord4xvOES"); - glad_glTexGenxOES = (PFNGLTEXGENXOESPROC)load("glTexGenxOES"); - glad_glTexGenxvOES = (PFNGLTEXGENXVOESPROC)load("glTexGenxvOES"); - glad_glVertex2xOES = (PFNGLVERTEX2XOESPROC)load("glVertex2xOES"); - glad_glVertex2xvOES = (PFNGLVERTEX2XVOESPROC)load("glVertex2xvOES"); - glad_glVertex3xOES = (PFNGLVERTEX3XOESPROC)load("glVertex3xOES"); - glad_glVertex3xvOES = (PFNGLVERTEX3XVOESPROC)load("glVertex3xvOES"); - glad_glVertex4xOES = (PFNGLVERTEX4XOESPROC)load("glVertex4xOES"); - glad_glVertex4xvOES = (PFNGLVERTEX4XVOESPROC)load("glVertex4xvOES"); -} -static void load_GL_OES_query_matrix(GLADloadproc load) { - if(!GLAD_GL_OES_query_matrix) return; - glad_glQueryMatrixxOES = (PFNGLQUERYMATRIXXOESPROC)load("glQueryMatrixxOES"); -} -static void load_GL_OES_single_precision(GLADloadproc load) { - if(!GLAD_GL_OES_single_precision) return; - glad_glClearDepthfOES = (PFNGLCLEARDEPTHFOESPROC)load("glClearDepthfOES"); - glad_glClipPlanefOES = (PFNGLCLIPPLANEFOESPROC)load("glClipPlanefOES"); - glad_glDepthRangefOES = (PFNGLDEPTHRANGEFOESPROC)load("glDepthRangefOES"); - glad_glFrustumfOES = (PFNGLFRUSTUMFOESPROC)load("glFrustumfOES"); - glad_glGetClipPlanefOES = (PFNGLGETCLIPPLANEFOESPROC)load("glGetClipPlanefOES"); - glad_glOrthofOES = (PFNGLORTHOFOESPROC)load("glOrthofOES"); -} -static void load_GL_OVR_multiview(GLADloadproc load) { - if(!GLAD_GL_OVR_multiview) return; - glad_glFramebufferTextureMultiviewOVR = (PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC)load("glFramebufferTextureMultiviewOVR"); -} -static void load_GL_PGI_misc_hints(GLADloadproc load) { - if(!GLAD_GL_PGI_misc_hints) return; - glad_glHintPGI = (PFNGLHINTPGIPROC)load("glHintPGI"); -} -static void load_GL_SGIS_detail_texture(GLADloadproc load) { - if(!GLAD_GL_SGIS_detail_texture) return; - glad_glDetailTexFuncSGIS = (PFNGLDETAILTEXFUNCSGISPROC)load("glDetailTexFuncSGIS"); - glad_glGetDetailTexFuncSGIS = (PFNGLGETDETAILTEXFUNCSGISPROC)load("glGetDetailTexFuncSGIS"); -} -static void load_GL_SGIS_fog_function(GLADloadproc load) { - if(!GLAD_GL_SGIS_fog_function) return; - glad_glFogFuncSGIS = (PFNGLFOGFUNCSGISPROC)load("glFogFuncSGIS"); - glad_glGetFogFuncSGIS = (PFNGLGETFOGFUNCSGISPROC)load("glGetFogFuncSGIS"); -} -static void load_GL_SGIS_multisample(GLADloadproc load) { - if(!GLAD_GL_SGIS_multisample) return; - glad_glSampleMaskSGIS = (PFNGLSAMPLEMASKSGISPROC)load("glSampleMaskSGIS"); - glad_glSamplePatternSGIS = (PFNGLSAMPLEPATTERNSGISPROC)load("glSamplePatternSGIS"); -} -static void load_GL_SGIS_pixel_texture(GLADloadproc load) { - if(!GLAD_GL_SGIS_pixel_texture) return; - glad_glPixelTexGenParameteriSGIS = (PFNGLPIXELTEXGENPARAMETERISGISPROC)load("glPixelTexGenParameteriSGIS"); - glad_glPixelTexGenParameterivSGIS = (PFNGLPIXELTEXGENPARAMETERIVSGISPROC)load("glPixelTexGenParameterivSGIS"); - glad_glPixelTexGenParameterfSGIS = (PFNGLPIXELTEXGENPARAMETERFSGISPROC)load("glPixelTexGenParameterfSGIS"); - glad_glPixelTexGenParameterfvSGIS = (PFNGLPIXELTEXGENPARAMETERFVSGISPROC)load("glPixelTexGenParameterfvSGIS"); - glad_glGetPixelTexGenParameterivSGIS = (PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC)load("glGetPixelTexGenParameterivSGIS"); - glad_glGetPixelTexGenParameterfvSGIS = (PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC)load("glGetPixelTexGenParameterfvSGIS"); -} -static void load_GL_SGIS_point_parameters(GLADloadproc load) { - if(!GLAD_GL_SGIS_point_parameters) return; - glad_glPointParameterfSGIS = (PFNGLPOINTPARAMETERFSGISPROC)load("glPointParameterfSGIS"); - glad_glPointParameterfvSGIS = (PFNGLPOINTPARAMETERFVSGISPROC)load("glPointParameterfvSGIS"); -} -static void load_GL_SGIS_sharpen_texture(GLADloadproc load) { - if(!GLAD_GL_SGIS_sharpen_texture) return; - glad_glSharpenTexFuncSGIS = (PFNGLSHARPENTEXFUNCSGISPROC)load("glSharpenTexFuncSGIS"); - glad_glGetSharpenTexFuncSGIS = (PFNGLGETSHARPENTEXFUNCSGISPROC)load("glGetSharpenTexFuncSGIS"); -} -static void load_GL_SGIS_texture4D(GLADloadproc load) { - if(!GLAD_GL_SGIS_texture4D) return; - glad_glTexImage4DSGIS = (PFNGLTEXIMAGE4DSGISPROC)load("glTexImage4DSGIS"); - glad_glTexSubImage4DSGIS = (PFNGLTEXSUBIMAGE4DSGISPROC)load("glTexSubImage4DSGIS"); -} -static void load_GL_SGIS_texture_color_mask(GLADloadproc load) { - if(!GLAD_GL_SGIS_texture_color_mask) return; - glad_glTextureColorMaskSGIS = (PFNGLTEXTURECOLORMASKSGISPROC)load("glTextureColorMaskSGIS"); -} -static void load_GL_SGIS_texture_filter4(GLADloadproc load) { - if(!GLAD_GL_SGIS_texture_filter4) return; - glad_glGetTexFilterFuncSGIS = (PFNGLGETTEXFILTERFUNCSGISPROC)load("glGetTexFilterFuncSGIS"); - glad_glTexFilterFuncSGIS = (PFNGLTEXFILTERFUNCSGISPROC)load("glTexFilterFuncSGIS"); -} -static void load_GL_SGIX_async(GLADloadproc load) { - if(!GLAD_GL_SGIX_async) return; - glad_glAsyncMarkerSGIX = (PFNGLASYNCMARKERSGIXPROC)load("glAsyncMarkerSGIX"); - glad_glFinishAsyncSGIX = (PFNGLFINISHASYNCSGIXPROC)load("glFinishAsyncSGIX"); - glad_glPollAsyncSGIX = (PFNGLPOLLASYNCSGIXPROC)load("glPollAsyncSGIX"); - glad_glGenAsyncMarkersSGIX = (PFNGLGENASYNCMARKERSSGIXPROC)load("glGenAsyncMarkersSGIX"); - glad_glDeleteAsyncMarkersSGIX = (PFNGLDELETEASYNCMARKERSSGIXPROC)load("glDeleteAsyncMarkersSGIX"); - glad_glIsAsyncMarkerSGIX = (PFNGLISASYNCMARKERSGIXPROC)load("glIsAsyncMarkerSGIX"); -} -static void load_GL_SGIX_flush_raster(GLADloadproc load) { - if(!GLAD_GL_SGIX_flush_raster) return; - glad_glFlushRasterSGIX = (PFNGLFLUSHRASTERSGIXPROC)load("glFlushRasterSGIX"); -} -static void load_GL_SGIX_fragment_lighting(GLADloadproc load) { - if(!GLAD_GL_SGIX_fragment_lighting) return; - glad_glFragmentColorMaterialSGIX = (PFNGLFRAGMENTCOLORMATERIALSGIXPROC)load("glFragmentColorMaterialSGIX"); - glad_glFragmentLightfSGIX = (PFNGLFRAGMENTLIGHTFSGIXPROC)load("glFragmentLightfSGIX"); - glad_glFragmentLightfvSGIX = (PFNGLFRAGMENTLIGHTFVSGIXPROC)load("glFragmentLightfvSGIX"); - glad_glFragmentLightiSGIX = (PFNGLFRAGMENTLIGHTISGIXPROC)load("glFragmentLightiSGIX"); - glad_glFragmentLightivSGIX = (PFNGLFRAGMENTLIGHTIVSGIXPROC)load("glFragmentLightivSGIX"); - glad_glFragmentLightModelfSGIX = (PFNGLFRAGMENTLIGHTMODELFSGIXPROC)load("glFragmentLightModelfSGIX"); - glad_glFragmentLightModelfvSGIX = (PFNGLFRAGMENTLIGHTMODELFVSGIXPROC)load("glFragmentLightModelfvSGIX"); - glad_glFragmentLightModeliSGIX = (PFNGLFRAGMENTLIGHTMODELISGIXPROC)load("glFragmentLightModeliSGIX"); - glad_glFragmentLightModelivSGIX = (PFNGLFRAGMENTLIGHTMODELIVSGIXPROC)load("glFragmentLightModelivSGIX"); - glad_glFragmentMaterialfSGIX = (PFNGLFRAGMENTMATERIALFSGIXPROC)load("glFragmentMaterialfSGIX"); - glad_glFragmentMaterialfvSGIX = (PFNGLFRAGMENTMATERIALFVSGIXPROC)load("glFragmentMaterialfvSGIX"); - glad_glFragmentMaterialiSGIX = (PFNGLFRAGMENTMATERIALISGIXPROC)load("glFragmentMaterialiSGIX"); - glad_glFragmentMaterialivSGIX = (PFNGLFRAGMENTMATERIALIVSGIXPROC)load("glFragmentMaterialivSGIX"); - glad_glGetFragmentLightfvSGIX = (PFNGLGETFRAGMENTLIGHTFVSGIXPROC)load("glGetFragmentLightfvSGIX"); - glad_glGetFragmentLightivSGIX = (PFNGLGETFRAGMENTLIGHTIVSGIXPROC)load("glGetFragmentLightivSGIX"); - glad_glGetFragmentMaterialfvSGIX = (PFNGLGETFRAGMENTMATERIALFVSGIXPROC)load("glGetFragmentMaterialfvSGIX"); - glad_glGetFragmentMaterialivSGIX = (PFNGLGETFRAGMENTMATERIALIVSGIXPROC)load("glGetFragmentMaterialivSGIX"); - glad_glLightEnviSGIX = (PFNGLLIGHTENVISGIXPROC)load("glLightEnviSGIX"); -} -static void load_GL_SGIX_framezoom(GLADloadproc load) { - if(!GLAD_GL_SGIX_framezoom) return; - glad_glFrameZoomSGIX = (PFNGLFRAMEZOOMSGIXPROC)load("glFrameZoomSGIX"); -} -static void load_GL_SGIX_igloo_interface(GLADloadproc load) { - if(!GLAD_GL_SGIX_igloo_interface) return; - glad_glIglooInterfaceSGIX = (PFNGLIGLOOINTERFACESGIXPROC)load("glIglooInterfaceSGIX"); -} -static void load_GL_SGIX_instruments(GLADloadproc load) { - if(!GLAD_GL_SGIX_instruments) return; - glad_glGetInstrumentsSGIX = (PFNGLGETINSTRUMENTSSGIXPROC)load("glGetInstrumentsSGIX"); - glad_glInstrumentsBufferSGIX = (PFNGLINSTRUMENTSBUFFERSGIXPROC)load("glInstrumentsBufferSGIX"); - glad_glPollInstrumentsSGIX = (PFNGLPOLLINSTRUMENTSSGIXPROC)load("glPollInstrumentsSGIX"); - glad_glReadInstrumentsSGIX = (PFNGLREADINSTRUMENTSSGIXPROC)load("glReadInstrumentsSGIX"); - glad_glStartInstrumentsSGIX = (PFNGLSTARTINSTRUMENTSSGIXPROC)load("glStartInstrumentsSGIX"); - glad_glStopInstrumentsSGIX = (PFNGLSTOPINSTRUMENTSSGIXPROC)load("glStopInstrumentsSGIX"); -} -static void load_GL_SGIX_list_priority(GLADloadproc load) { - if(!GLAD_GL_SGIX_list_priority) return; - glad_glGetListParameterfvSGIX = (PFNGLGETLISTPARAMETERFVSGIXPROC)load("glGetListParameterfvSGIX"); - glad_glGetListParameterivSGIX = (PFNGLGETLISTPARAMETERIVSGIXPROC)load("glGetListParameterivSGIX"); - glad_glListParameterfSGIX = (PFNGLLISTPARAMETERFSGIXPROC)load("glListParameterfSGIX"); - glad_glListParameterfvSGIX = (PFNGLLISTPARAMETERFVSGIXPROC)load("glListParameterfvSGIX"); - glad_glListParameteriSGIX = (PFNGLLISTPARAMETERISGIXPROC)load("glListParameteriSGIX"); - glad_glListParameterivSGIX = (PFNGLLISTPARAMETERIVSGIXPROC)load("glListParameterivSGIX"); -} -static void load_GL_SGIX_pixel_texture(GLADloadproc load) { - if(!GLAD_GL_SGIX_pixel_texture) return; - glad_glPixelTexGenSGIX = (PFNGLPIXELTEXGENSGIXPROC)load("glPixelTexGenSGIX"); -} -static void load_GL_SGIX_polynomial_ffd(GLADloadproc load) { - if(!GLAD_GL_SGIX_polynomial_ffd) return; - glad_glDeformationMap3dSGIX = (PFNGLDEFORMATIONMAP3DSGIXPROC)load("glDeformationMap3dSGIX"); - glad_glDeformationMap3fSGIX = (PFNGLDEFORMATIONMAP3FSGIXPROC)load("glDeformationMap3fSGIX"); - glad_glDeformSGIX = (PFNGLDEFORMSGIXPROC)load("glDeformSGIX"); - glad_glLoadIdentityDeformationMapSGIX = (PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC)load("glLoadIdentityDeformationMapSGIX"); -} -static void load_GL_SGIX_reference_plane(GLADloadproc load) { - if(!GLAD_GL_SGIX_reference_plane) return; - glad_glReferencePlaneSGIX = (PFNGLREFERENCEPLANESGIXPROC)load("glReferencePlaneSGIX"); -} -static void load_GL_SGIX_sprite(GLADloadproc load) { - if(!GLAD_GL_SGIX_sprite) return; - glad_glSpriteParameterfSGIX = (PFNGLSPRITEPARAMETERFSGIXPROC)load("glSpriteParameterfSGIX"); - glad_glSpriteParameterfvSGIX = (PFNGLSPRITEPARAMETERFVSGIXPROC)load("glSpriteParameterfvSGIX"); - glad_glSpriteParameteriSGIX = (PFNGLSPRITEPARAMETERISGIXPROC)load("glSpriteParameteriSGIX"); - glad_glSpriteParameterivSGIX = (PFNGLSPRITEPARAMETERIVSGIXPROC)load("glSpriteParameterivSGIX"); -} -static void load_GL_SGIX_tag_sample_buffer(GLADloadproc load) { - if(!GLAD_GL_SGIX_tag_sample_buffer) return; - glad_glTagSampleBufferSGIX = (PFNGLTAGSAMPLEBUFFERSGIXPROC)load("glTagSampleBufferSGIX"); -} -static void load_GL_SGI_color_table(GLADloadproc load) { - if(!GLAD_GL_SGI_color_table) return; - glad_glColorTableSGI = (PFNGLCOLORTABLESGIPROC)load("glColorTableSGI"); - glad_glColorTableParameterfvSGI = (PFNGLCOLORTABLEPARAMETERFVSGIPROC)load("glColorTableParameterfvSGI"); - glad_glColorTableParameterivSGI = (PFNGLCOLORTABLEPARAMETERIVSGIPROC)load("glColorTableParameterivSGI"); - glad_glCopyColorTableSGI = (PFNGLCOPYCOLORTABLESGIPROC)load("glCopyColorTableSGI"); - glad_glGetColorTableSGI = (PFNGLGETCOLORTABLESGIPROC)load("glGetColorTableSGI"); - glad_glGetColorTableParameterfvSGI = (PFNGLGETCOLORTABLEPARAMETERFVSGIPROC)load("glGetColorTableParameterfvSGI"); - glad_glGetColorTableParameterivSGI = (PFNGLGETCOLORTABLEPARAMETERIVSGIPROC)load("glGetColorTableParameterivSGI"); -} -static void load_GL_SUNX_constant_data(GLADloadproc load) { - if(!GLAD_GL_SUNX_constant_data) return; - glad_glFinishTextureSUNX = (PFNGLFINISHTEXTURESUNXPROC)load("glFinishTextureSUNX"); -} -static void load_GL_SUN_global_alpha(GLADloadproc load) { - if(!GLAD_GL_SUN_global_alpha) return; - glad_glGlobalAlphaFactorbSUN = (PFNGLGLOBALALPHAFACTORBSUNPROC)load("glGlobalAlphaFactorbSUN"); - glad_glGlobalAlphaFactorsSUN = (PFNGLGLOBALALPHAFACTORSSUNPROC)load("glGlobalAlphaFactorsSUN"); - glad_glGlobalAlphaFactoriSUN = (PFNGLGLOBALALPHAFACTORISUNPROC)load("glGlobalAlphaFactoriSUN"); - glad_glGlobalAlphaFactorfSUN = (PFNGLGLOBALALPHAFACTORFSUNPROC)load("glGlobalAlphaFactorfSUN"); - glad_glGlobalAlphaFactordSUN = (PFNGLGLOBALALPHAFACTORDSUNPROC)load("glGlobalAlphaFactordSUN"); - glad_glGlobalAlphaFactorubSUN = (PFNGLGLOBALALPHAFACTORUBSUNPROC)load("glGlobalAlphaFactorubSUN"); - glad_glGlobalAlphaFactorusSUN = (PFNGLGLOBALALPHAFACTORUSSUNPROC)load("glGlobalAlphaFactorusSUN"); - glad_glGlobalAlphaFactoruiSUN = (PFNGLGLOBALALPHAFACTORUISUNPROC)load("glGlobalAlphaFactoruiSUN"); -} -static void load_GL_SUN_mesh_array(GLADloadproc load) { - if(!GLAD_GL_SUN_mesh_array) return; - glad_glDrawMeshArraysSUN = (PFNGLDRAWMESHARRAYSSUNPROC)load("glDrawMeshArraysSUN"); -} -static void load_GL_SUN_triangle_list(GLADloadproc load) { - if(!GLAD_GL_SUN_triangle_list) return; - glad_glReplacementCodeuiSUN = (PFNGLREPLACEMENTCODEUISUNPROC)load("glReplacementCodeuiSUN"); - glad_glReplacementCodeusSUN = (PFNGLREPLACEMENTCODEUSSUNPROC)load("glReplacementCodeusSUN"); - glad_glReplacementCodeubSUN = (PFNGLREPLACEMENTCODEUBSUNPROC)load("glReplacementCodeubSUN"); - glad_glReplacementCodeuivSUN = (PFNGLREPLACEMENTCODEUIVSUNPROC)load("glReplacementCodeuivSUN"); - glad_glReplacementCodeusvSUN = (PFNGLREPLACEMENTCODEUSVSUNPROC)load("glReplacementCodeusvSUN"); - glad_glReplacementCodeubvSUN = (PFNGLREPLACEMENTCODEUBVSUNPROC)load("glReplacementCodeubvSUN"); - glad_glReplacementCodePointerSUN = (PFNGLREPLACEMENTCODEPOINTERSUNPROC)load("glReplacementCodePointerSUN"); -} -static void load_GL_SUN_vertex(GLADloadproc load) { - if(!GLAD_GL_SUN_vertex) return; - glad_glColor4ubVertex2fSUN = (PFNGLCOLOR4UBVERTEX2FSUNPROC)load("glColor4ubVertex2fSUN"); - glad_glColor4ubVertex2fvSUN = (PFNGLCOLOR4UBVERTEX2FVSUNPROC)load("glColor4ubVertex2fvSUN"); - glad_glColor4ubVertex3fSUN = (PFNGLCOLOR4UBVERTEX3FSUNPROC)load("glColor4ubVertex3fSUN"); - glad_glColor4ubVertex3fvSUN = (PFNGLCOLOR4UBVERTEX3FVSUNPROC)load("glColor4ubVertex3fvSUN"); - glad_glColor3fVertex3fSUN = (PFNGLCOLOR3FVERTEX3FSUNPROC)load("glColor3fVertex3fSUN"); - glad_glColor3fVertex3fvSUN = (PFNGLCOLOR3FVERTEX3FVSUNPROC)load("glColor3fVertex3fvSUN"); - glad_glNormal3fVertex3fSUN = (PFNGLNORMAL3FVERTEX3FSUNPROC)load("glNormal3fVertex3fSUN"); - glad_glNormal3fVertex3fvSUN = (PFNGLNORMAL3FVERTEX3FVSUNPROC)load("glNormal3fVertex3fvSUN"); - glad_glColor4fNormal3fVertex3fSUN = (PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC)load("glColor4fNormal3fVertex3fSUN"); - glad_glColor4fNormal3fVertex3fvSUN = (PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC)load("glColor4fNormal3fVertex3fvSUN"); - glad_glTexCoord2fVertex3fSUN = (PFNGLTEXCOORD2FVERTEX3FSUNPROC)load("glTexCoord2fVertex3fSUN"); - glad_glTexCoord2fVertex3fvSUN = (PFNGLTEXCOORD2FVERTEX3FVSUNPROC)load("glTexCoord2fVertex3fvSUN"); - glad_glTexCoord4fVertex4fSUN = (PFNGLTEXCOORD4FVERTEX4FSUNPROC)load("glTexCoord4fVertex4fSUN"); - glad_glTexCoord4fVertex4fvSUN = (PFNGLTEXCOORD4FVERTEX4FVSUNPROC)load("glTexCoord4fVertex4fvSUN"); - glad_glTexCoord2fColor4ubVertex3fSUN = (PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC)load("glTexCoord2fColor4ubVertex3fSUN"); - glad_glTexCoord2fColor4ubVertex3fvSUN = (PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC)load("glTexCoord2fColor4ubVertex3fvSUN"); - glad_glTexCoord2fColor3fVertex3fSUN = (PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC)load("glTexCoord2fColor3fVertex3fSUN"); - glad_glTexCoord2fColor3fVertex3fvSUN = (PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC)load("glTexCoord2fColor3fVertex3fvSUN"); - glad_glTexCoord2fNormal3fVertex3fSUN = (PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC)load("glTexCoord2fNormal3fVertex3fSUN"); - glad_glTexCoord2fNormal3fVertex3fvSUN = (PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC)load("glTexCoord2fNormal3fVertex3fvSUN"); - glad_glTexCoord2fColor4fNormal3fVertex3fSUN = (PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC)load("glTexCoord2fColor4fNormal3fVertex3fSUN"); - glad_glTexCoord2fColor4fNormal3fVertex3fvSUN = (PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC)load("glTexCoord2fColor4fNormal3fVertex3fvSUN"); - glad_glTexCoord4fColor4fNormal3fVertex4fSUN = (PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC)load("glTexCoord4fColor4fNormal3fVertex4fSUN"); - glad_glTexCoord4fColor4fNormal3fVertex4fvSUN = (PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC)load("glTexCoord4fColor4fNormal3fVertex4fvSUN"); - glad_glReplacementCodeuiVertex3fSUN = (PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC)load("glReplacementCodeuiVertex3fSUN"); - glad_glReplacementCodeuiVertex3fvSUN = (PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC)load("glReplacementCodeuiVertex3fvSUN"); - glad_glReplacementCodeuiColor4ubVertex3fSUN = (PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC)load("glReplacementCodeuiColor4ubVertex3fSUN"); - glad_glReplacementCodeuiColor4ubVertex3fvSUN = (PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC)load("glReplacementCodeuiColor4ubVertex3fvSUN"); - glad_glReplacementCodeuiColor3fVertex3fSUN = (PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC)load("glReplacementCodeuiColor3fVertex3fSUN"); - glad_glReplacementCodeuiColor3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC)load("glReplacementCodeuiColor3fVertex3fvSUN"); - glad_glReplacementCodeuiNormal3fVertex3fSUN = (PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC)load("glReplacementCodeuiNormal3fVertex3fSUN"); - glad_glReplacementCodeuiNormal3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC)load("glReplacementCodeuiNormal3fVertex3fvSUN"); - glad_glReplacementCodeuiColor4fNormal3fVertex3fSUN = (PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC)load("glReplacementCodeuiColor4fNormal3fVertex3fSUN"); - glad_glReplacementCodeuiColor4fNormal3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC)load("glReplacementCodeuiColor4fNormal3fVertex3fvSUN"); - glad_glReplacementCodeuiTexCoord2fVertex3fSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC)load("glReplacementCodeuiTexCoord2fVertex3fSUN"); - glad_glReplacementCodeuiTexCoord2fVertex3fvSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC)load("glReplacementCodeuiTexCoord2fVertex3fvSUN"); - glad_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC)load("glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN"); - glad_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC)load("glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN"); - glad_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC)load("glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN"); - glad_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC)load("glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN"); -} -static int find_extensionsGL(void) { - if (!get_exts()) return 0; - GLAD_GL_3DFX_multisample = has_ext("GL_3DFX_multisample"); - GLAD_GL_3DFX_tbuffer = has_ext("GL_3DFX_tbuffer"); - GLAD_GL_3DFX_texture_compression_FXT1 = has_ext("GL_3DFX_texture_compression_FXT1"); - GLAD_GL_AMD_blend_minmax_factor = has_ext("GL_AMD_blend_minmax_factor"); - GLAD_GL_AMD_conservative_depth = has_ext("GL_AMD_conservative_depth"); - GLAD_GL_AMD_debug_output = has_ext("GL_AMD_debug_output"); - GLAD_GL_AMD_depth_clamp_separate = has_ext("GL_AMD_depth_clamp_separate"); - GLAD_GL_AMD_draw_buffers_blend = has_ext("GL_AMD_draw_buffers_blend"); - GLAD_GL_AMD_framebuffer_sample_positions = has_ext("GL_AMD_framebuffer_sample_positions"); - GLAD_GL_AMD_gcn_shader = has_ext("GL_AMD_gcn_shader"); - GLAD_GL_AMD_gpu_shader_half_float = has_ext("GL_AMD_gpu_shader_half_float"); - GLAD_GL_AMD_gpu_shader_int16 = has_ext("GL_AMD_gpu_shader_int16"); - GLAD_GL_AMD_gpu_shader_int64 = has_ext("GL_AMD_gpu_shader_int64"); - GLAD_GL_AMD_interleaved_elements = has_ext("GL_AMD_interleaved_elements"); - GLAD_GL_AMD_multi_draw_indirect = has_ext("GL_AMD_multi_draw_indirect"); - GLAD_GL_AMD_name_gen_delete = has_ext("GL_AMD_name_gen_delete"); - GLAD_GL_AMD_occlusion_query_event = has_ext("GL_AMD_occlusion_query_event"); - GLAD_GL_AMD_performance_monitor = has_ext("GL_AMD_performance_monitor"); - GLAD_GL_AMD_pinned_memory = has_ext("GL_AMD_pinned_memory"); - GLAD_GL_AMD_query_buffer_object = has_ext("GL_AMD_query_buffer_object"); - GLAD_GL_AMD_sample_positions = has_ext("GL_AMD_sample_positions"); - GLAD_GL_AMD_seamless_cubemap_per_texture = has_ext("GL_AMD_seamless_cubemap_per_texture"); - GLAD_GL_AMD_shader_atomic_counter_ops = has_ext("GL_AMD_shader_atomic_counter_ops"); - GLAD_GL_AMD_shader_ballot = has_ext("GL_AMD_shader_ballot"); - GLAD_GL_AMD_shader_explicit_vertex_parameter = has_ext("GL_AMD_shader_explicit_vertex_parameter"); - GLAD_GL_AMD_shader_gpu_shader_half_float_fetch = has_ext("GL_AMD_shader_gpu_shader_half_float_fetch"); - GLAD_GL_AMD_shader_image_load_store_lod = has_ext("GL_AMD_shader_image_load_store_lod"); - GLAD_GL_AMD_shader_stencil_export = has_ext("GL_AMD_shader_stencil_export"); - GLAD_GL_AMD_shader_trinary_minmax = has_ext("GL_AMD_shader_trinary_minmax"); - GLAD_GL_AMD_sparse_texture = has_ext("GL_AMD_sparse_texture"); - GLAD_GL_AMD_stencil_operation_extended = has_ext("GL_AMD_stencil_operation_extended"); - GLAD_GL_AMD_texture_gather_bias_lod = has_ext("GL_AMD_texture_gather_bias_lod"); - GLAD_GL_AMD_texture_texture4 = has_ext("GL_AMD_texture_texture4"); - GLAD_GL_AMD_transform_feedback3_lines_triangles = has_ext("GL_AMD_transform_feedback3_lines_triangles"); - GLAD_GL_AMD_transform_feedback4 = has_ext("GL_AMD_transform_feedback4"); - GLAD_GL_AMD_vertex_shader_layer = has_ext("GL_AMD_vertex_shader_layer"); - GLAD_GL_AMD_vertex_shader_tessellator = has_ext("GL_AMD_vertex_shader_tessellator"); - GLAD_GL_AMD_vertex_shader_viewport_index = has_ext("GL_AMD_vertex_shader_viewport_index"); - GLAD_GL_APPLE_aux_depth_stencil = has_ext("GL_APPLE_aux_depth_stencil"); - GLAD_GL_APPLE_client_storage = has_ext("GL_APPLE_client_storage"); - GLAD_GL_APPLE_element_array = has_ext("GL_APPLE_element_array"); - GLAD_GL_APPLE_fence = has_ext("GL_APPLE_fence"); - GLAD_GL_APPLE_float_pixels = has_ext("GL_APPLE_float_pixels"); - GLAD_GL_APPLE_flush_buffer_range = has_ext("GL_APPLE_flush_buffer_range"); - GLAD_GL_APPLE_object_purgeable = has_ext("GL_APPLE_object_purgeable"); - GLAD_GL_APPLE_rgb_422 = has_ext("GL_APPLE_rgb_422"); - GLAD_GL_APPLE_row_bytes = has_ext("GL_APPLE_row_bytes"); - GLAD_GL_APPLE_specular_vector = has_ext("GL_APPLE_specular_vector"); - GLAD_GL_APPLE_texture_range = has_ext("GL_APPLE_texture_range"); - GLAD_GL_APPLE_transform_hint = has_ext("GL_APPLE_transform_hint"); - GLAD_GL_APPLE_vertex_array_object = has_ext("GL_APPLE_vertex_array_object"); - GLAD_GL_APPLE_vertex_array_range = has_ext("GL_APPLE_vertex_array_range"); - GLAD_GL_APPLE_vertex_program_evaluators = has_ext("GL_APPLE_vertex_program_evaluators"); - GLAD_GL_APPLE_ycbcr_422 = has_ext("GL_APPLE_ycbcr_422"); - GLAD_GL_ARB_ES2_compatibility = has_ext("GL_ARB_ES2_compatibility"); - GLAD_GL_ARB_ES3_1_compatibility = has_ext("GL_ARB_ES3_1_compatibility"); - GLAD_GL_ARB_ES3_2_compatibility = has_ext("GL_ARB_ES3_2_compatibility"); - GLAD_GL_ARB_ES3_compatibility = has_ext("GL_ARB_ES3_compatibility"); - GLAD_GL_ARB_arrays_of_arrays = has_ext("GL_ARB_arrays_of_arrays"); - GLAD_GL_ARB_base_instance = has_ext("GL_ARB_base_instance"); - GLAD_GL_ARB_bindless_texture = has_ext("GL_ARB_bindless_texture"); - GLAD_GL_ARB_blend_func_extended = has_ext("GL_ARB_blend_func_extended"); - GLAD_GL_ARB_buffer_storage = has_ext("GL_ARB_buffer_storage"); - GLAD_GL_ARB_cl_event = has_ext("GL_ARB_cl_event"); - GLAD_GL_ARB_clear_buffer_object = has_ext("GL_ARB_clear_buffer_object"); - GLAD_GL_ARB_clear_texture = has_ext("GL_ARB_clear_texture"); - GLAD_GL_ARB_clip_control = has_ext("GL_ARB_clip_control"); - GLAD_GL_ARB_color_buffer_float = has_ext("GL_ARB_color_buffer_float"); - GLAD_GL_ARB_compatibility = has_ext("GL_ARB_compatibility"); - GLAD_GL_ARB_compressed_texture_pixel_storage = has_ext("GL_ARB_compressed_texture_pixel_storage"); - GLAD_GL_ARB_compute_shader = has_ext("GL_ARB_compute_shader"); - GLAD_GL_ARB_compute_variable_group_size = has_ext("GL_ARB_compute_variable_group_size"); - GLAD_GL_ARB_conditional_render_inverted = has_ext("GL_ARB_conditional_render_inverted"); - GLAD_GL_ARB_conservative_depth = has_ext("GL_ARB_conservative_depth"); - GLAD_GL_ARB_copy_buffer = has_ext("GL_ARB_copy_buffer"); - GLAD_GL_ARB_copy_image = has_ext("GL_ARB_copy_image"); - GLAD_GL_ARB_cull_distance = has_ext("GL_ARB_cull_distance"); - GLAD_GL_ARB_debug_output = has_ext("GL_ARB_debug_output"); - GLAD_GL_ARB_depth_buffer_float = has_ext("GL_ARB_depth_buffer_float"); - GLAD_GL_ARB_depth_clamp = has_ext("GL_ARB_depth_clamp"); - GLAD_GL_ARB_depth_texture = has_ext("GL_ARB_depth_texture"); - GLAD_GL_ARB_derivative_control = has_ext("GL_ARB_derivative_control"); - GLAD_GL_ARB_direct_state_access = has_ext("GL_ARB_direct_state_access"); - GLAD_GL_ARB_draw_buffers = has_ext("GL_ARB_draw_buffers"); - GLAD_GL_ARB_draw_buffers_blend = has_ext("GL_ARB_draw_buffers_blend"); - GLAD_GL_ARB_draw_elements_base_vertex = has_ext("GL_ARB_draw_elements_base_vertex"); - GLAD_GL_ARB_draw_indirect = has_ext("GL_ARB_draw_indirect"); - GLAD_GL_ARB_draw_instanced = has_ext("GL_ARB_draw_instanced"); - GLAD_GL_ARB_enhanced_layouts = has_ext("GL_ARB_enhanced_layouts"); - GLAD_GL_ARB_explicit_attrib_location = has_ext("GL_ARB_explicit_attrib_location"); - GLAD_GL_ARB_explicit_uniform_location = has_ext("GL_ARB_explicit_uniform_location"); - GLAD_GL_ARB_fragment_coord_conventions = has_ext("GL_ARB_fragment_coord_conventions"); - GLAD_GL_ARB_fragment_layer_viewport = has_ext("GL_ARB_fragment_layer_viewport"); - GLAD_GL_ARB_fragment_program = has_ext("GL_ARB_fragment_program"); - GLAD_GL_ARB_fragment_program_shadow = has_ext("GL_ARB_fragment_program_shadow"); - GLAD_GL_ARB_fragment_shader = has_ext("GL_ARB_fragment_shader"); - GLAD_GL_ARB_fragment_shader_interlock = has_ext("GL_ARB_fragment_shader_interlock"); - GLAD_GL_ARB_framebuffer_no_attachments = has_ext("GL_ARB_framebuffer_no_attachments"); - GLAD_GL_ARB_framebuffer_object = has_ext("GL_ARB_framebuffer_object"); - GLAD_GL_ARB_framebuffer_sRGB = has_ext("GL_ARB_framebuffer_sRGB"); - GLAD_GL_ARB_geometry_shader4 = has_ext("GL_ARB_geometry_shader4"); - GLAD_GL_ARB_get_program_binary = has_ext("GL_ARB_get_program_binary"); - GLAD_GL_ARB_get_texture_sub_image = has_ext("GL_ARB_get_texture_sub_image"); - GLAD_GL_ARB_gl_spirv = has_ext("GL_ARB_gl_spirv"); - GLAD_GL_ARB_gpu_shader5 = has_ext("GL_ARB_gpu_shader5"); - GLAD_GL_ARB_gpu_shader_fp64 = has_ext("GL_ARB_gpu_shader_fp64"); - GLAD_GL_ARB_gpu_shader_int64 = has_ext("GL_ARB_gpu_shader_int64"); - GLAD_GL_ARB_half_float_pixel = has_ext("GL_ARB_half_float_pixel"); - GLAD_GL_ARB_half_float_vertex = has_ext("GL_ARB_half_float_vertex"); - GLAD_GL_ARB_imaging = has_ext("GL_ARB_imaging"); - GLAD_GL_ARB_indirect_parameters = has_ext("GL_ARB_indirect_parameters"); - GLAD_GL_ARB_instanced_arrays = has_ext("GL_ARB_instanced_arrays"); - GLAD_GL_ARB_internalformat_query = has_ext("GL_ARB_internalformat_query"); - GLAD_GL_ARB_internalformat_query2 = has_ext("GL_ARB_internalformat_query2"); - GLAD_GL_ARB_invalidate_subdata = has_ext("GL_ARB_invalidate_subdata"); - GLAD_GL_ARB_map_buffer_alignment = has_ext("GL_ARB_map_buffer_alignment"); - GLAD_GL_ARB_map_buffer_range = has_ext("GL_ARB_map_buffer_range"); - GLAD_GL_ARB_matrix_palette = has_ext("GL_ARB_matrix_palette"); - GLAD_GL_ARB_multi_bind = has_ext("GL_ARB_multi_bind"); - GLAD_GL_ARB_multi_draw_indirect = has_ext("GL_ARB_multi_draw_indirect"); - GLAD_GL_ARB_multisample = has_ext("GL_ARB_multisample"); - GLAD_GL_ARB_multitexture = has_ext("GL_ARB_multitexture"); - GLAD_GL_ARB_occlusion_query = has_ext("GL_ARB_occlusion_query"); - GLAD_GL_ARB_occlusion_query2 = has_ext("GL_ARB_occlusion_query2"); - GLAD_GL_ARB_parallel_shader_compile = has_ext("GL_ARB_parallel_shader_compile"); - GLAD_GL_ARB_pipeline_statistics_query = has_ext("GL_ARB_pipeline_statistics_query"); - GLAD_GL_ARB_pixel_buffer_object = has_ext("GL_ARB_pixel_buffer_object"); - GLAD_GL_ARB_point_parameters = has_ext("GL_ARB_point_parameters"); - GLAD_GL_ARB_point_sprite = has_ext("GL_ARB_point_sprite"); - GLAD_GL_ARB_polygon_offset_clamp = has_ext("GL_ARB_polygon_offset_clamp"); - GLAD_GL_ARB_post_depth_coverage = has_ext("GL_ARB_post_depth_coverage"); - GLAD_GL_ARB_program_interface_query = has_ext("GL_ARB_program_interface_query"); - GLAD_GL_ARB_provoking_vertex = has_ext("GL_ARB_provoking_vertex"); - GLAD_GL_ARB_query_buffer_object = has_ext("GL_ARB_query_buffer_object"); - GLAD_GL_ARB_robust_buffer_access_behavior = has_ext("GL_ARB_robust_buffer_access_behavior"); - GLAD_GL_ARB_robustness = has_ext("GL_ARB_robustness"); - GLAD_GL_ARB_robustness_isolation = has_ext("GL_ARB_robustness_isolation"); - GLAD_GL_ARB_sample_locations = has_ext("GL_ARB_sample_locations"); - GLAD_GL_ARB_sample_shading = has_ext("GL_ARB_sample_shading"); - GLAD_GL_ARB_sampler_objects = has_ext("GL_ARB_sampler_objects"); - GLAD_GL_ARB_seamless_cube_map = has_ext("GL_ARB_seamless_cube_map"); - GLAD_GL_ARB_seamless_cubemap_per_texture = has_ext("GL_ARB_seamless_cubemap_per_texture"); - GLAD_GL_ARB_separate_shader_objects = has_ext("GL_ARB_separate_shader_objects"); - GLAD_GL_ARB_shader_atomic_counter_ops = has_ext("GL_ARB_shader_atomic_counter_ops"); - GLAD_GL_ARB_shader_atomic_counters = has_ext("GL_ARB_shader_atomic_counters"); - GLAD_GL_ARB_shader_ballot = has_ext("GL_ARB_shader_ballot"); - GLAD_GL_ARB_shader_bit_encoding = has_ext("GL_ARB_shader_bit_encoding"); - GLAD_GL_ARB_shader_clock = has_ext("GL_ARB_shader_clock"); - GLAD_GL_ARB_shader_draw_parameters = has_ext("GL_ARB_shader_draw_parameters"); - GLAD_GL_ARB_shader_group_vote = has_ext("GL_ARB_shader_group_vote"); - GLAD_GL_ARB_shader_image_load_store = has_ext("GL_ARB_shader_image_load_store"); - GLAD_GL_ARB_shader_image_size = has_ext("GL_ARB_shader_image_size"); - GLAD_GL_ARB_shader_objects = has_ext("GL_ARB_shader_objects"); - GLAD_GL_ARB_shader_precision = has_ext("GL_ARB_shader_precision"); - GLAD_GL_ARB_shader_stencil_export = has_ext("GL_ARB_shader_stencil_export"); - GLAD_GL_ARB_shader_storage_buffer_object = has_ext("GL_ARB_shader_storage_buffer_object"); - GLAD_GL_ARB_shader_subroutine = has_ext("GL_ARB_shader_subroutine"); - GLAD_GL_ARB_shader_texture_image_samples = has_ext("GL_ARB_shader_texture_image_samples"); - GLAD_GL_ARB_shader_texture_lod = has_ext("GL_ARB_shader_texture_lod"); - GLAD_GL_ARB_shader_viewport_layer_array = has_ext("GL_ARB_shader_viewport_layer_array"); - GLAD_GL_ARB_shading_language_100 = has_ext("GL_ARB_shading_language_100"); - GLAD_GL_ARB_shading_language_420pack = has_ext("GL_ARB_shading_language_420pack"); - GLAD_GL_ARB_shading_language_include = has_ext("GL_ARB_shading_language_include"); - GLAD_GL_ARB_shading_language_packing = has_ext("GL_ARB_shading_language_packing"); - GLAD_GL_ARB_shadow = has_ext("GL_ARB_shadow"); - GLAD_GL_ARB_shadow_ambient = has_ext("GL_ARB_shadow_ambient"); - GLAD_GL_ARB_sparse_buffer = has_ext("GL_ARB_sparse_buffer"); - GLAD_GL_ARB_sparse_texture = has_ext("GL_ARB_sparse_texture"); - GLAD_GL_ARB_sparse_texture2 = has_ext("GL_ARB_sparse_texture2"); - GLAD_GL_ARB_sparse_texture_clamp = has_ext("GL_ARB_sparse_texture_clamp"); - GLAD_GL_ARB_spirv_extensions = has_ext("GL_ARB_spirv_extensions"); - GLAD_GL_ARB_stencil_texturing = has_ext("GL_ARB_stencil_texturing"); - GLAD_GL_ARB_sync = has_ext("GL_ARB_sync"); - GLAD_GL_ARB_tessellation_shader = has_ext("GL_ARB_tessellation_shader"); - GLAD_GL_ARB_texture_barrier = has_ext("GL_ARB_texture_barrier"); - GLAD_GL_ARB_texture_border_clamp = has_ext("GL_ARB_texture_border_clamp"); - GLAD_GL_ARB_texture_buffer_object = has_ext("GL_ARB_texture_buffer_object"); - GLAD_GL_ARB_texture_buffer_object_rgb32 = has_ext("GL_ARB_texture_buffer_object_rgb32"); - GLAD_GL_ARB_texture_buffer_range = has_ext("GL_ARB_texture_buffer_range"); - GLAD_GL_ARB_texture_compression = has_ext("GL_ARB_texture_compression"); - GLAD_GL_ARB_texture_compression_bptc = has_ext("GL_ARB_texture_compression_bptc"); - GLAD_GL_ARB_texture_compression_rgtc = has_ext("GL_ARB_texture_compression_rgtc"); - GLAD_GL_ARB_texture_cube_map = has_ext("GL_ARB_texture_cube_map"); - GLAD_GL_ARB_texture_cube_map_array = has_ext("GL_ARB_texture_cube_map_array"); - GLAD_GL_ARB_texture_env_add = has_ext("GL_ARB_texture_env_add"); - GLAD_GL_ARB_texture_env_combine = has_ext("GL_ARB_texture_env_combine"); - GLAD_GL_ARB_texture_env_crossbar = has_ext("GL_ARB_texture_env_crossbar"); - GLAD_GL_ARB_texture_env_dot3 = has_ext("GL_ARB_texture_env_dot3"); - GLAD_GL_ARB_texture_filter_anisotropic = has_ext("GL_ARB_texture_filter_anisotropic"); - GLAD_GL_ARB_texture_filter_minmax = has_ext("GL_ARB_texture_filter_minmax"); - GLAD_GL_ARB_texture_float = has_ext("GL_ARB_texture_float"); - GLAD_GL_ARB_texture_gather = has_ext("GL_ARB_texture_gather"); - GLAD_GL_ARB_texture_mirror_clamp_to_edge = has_ext("GL_ARB_texture_mirror_clamp_to_edge"); - GLAD_GL_ARB_texture_mirrored_repeat = has_ext("GL_ARB_texture_mirrored_repeat"); - GLAD_GL_ARB_texture_multisample = has_ext("GL_ARB_texture_multisample"); - GLAD_GL_ARB_texture_non_power_of_two = has_ext("GL_ARB_texture_non_power_of_two"); - GLAD_GL_ARB_texture_query_levels = has_ext("GL_ARB_texture_query_levels"); - GLAD_GL_ARB_texture_query_lod = has_ext("GL_ARB_texture_query_lod"); - GLAD_GL_ARB_texture_rectangle = has_ext("GL_ARB_texture_rectangle"); - GLAD_GL_ARB_texture_rg = has_ext("GL_ARB_texture_rg"); - GLAD_GL_ARB_texture_rgb10_a2ui = has_ext("GL_ARB_texture_rgb10_a2ui"); - GLAD_GL_ARB_texture_stencil8 = has_ext("GL_ARB_texture_stencil8"); - GLAD_GL_ARB_texture_storage = has_ext("GL_ARB_texture_storage"); - GLAD_GL_ARB_texture_storage_multisample = has_ext("GL_ARB_texture_storage_multisample"); - GLAD_GL_ARB_texture_swizzle = has_ext("GL_ARB_texture_swizzle"); - GLAD_GL_ARB_texture_view = has_ext("GL_ARB_texture_view"); - GLAD_GL_ARB_timer_query = has_ext("GL_ARB_timer_query"); - GLAD_GL_ARB_transform_feedback2 = has_ext("GL_ARB_transform_feedback2"); - GLAD_GL_ARB_transform_feedback3 = has_ext("GL_ARB_transform_feedback3"); - GLAD_GL_ARB_transform_feedback_instanced = has_ext("GL_ARB_transform_feedback_instanced"); - GLAD_GL_ARB_transform_feedback_overflow_query = has_ext("GL_ARB_transform_feedback_overflow_query"); - GLAD_GL_ARB_transpose_matrix = has_ext("GL_ARB_transpose_matrix"); - GLAD_GL_ARB_uniform_buffer_object = has_ext("GL_ARB_uniform_buffer_object"); - GLAD_GL_ARB_vertex_array_bgra = has_ext("GL_ARB_vertex_array_bgra"); - GLAD_GL_ARB_vertex_array_object = has_ext("GL_ARB_vertex_array_object"); - GLAD_GL_ARB_vertex_attrib_64bit = has_ext("GL_ARB_vertex_attrib_64bit"); - GLAD_GL_ARB_vertex_attrib_binding = has_ext("GL_ARB_vertex_attrib_binding"); - GLAD_GL_ARB_vertex_blend = has_ext("GL_ARB_vertex_blend"); - GLAD_GL_ARB_vertex_buffer_object = has_ext("GL_ARB_vertex_buffer_object"); - GLAD_GL_ARB_vertex_program = has_ext("GL_ARB_vertex_program"); - GLAD_GL_ARB_vertex_shader = has_ext("GL_ARB_vertex_shader"); - GLAD_GL_ARB_vertex_type_10f_11f_11f_rev = has_ext("GL_ARB_vertex_type_10f_11f_11f_rev"); - GLAD_GL_ARB_vertex_type_2_10_10_10_rev = has_ext("GL_ARB_vertex_type_2_10_10_10_rev"); - GLAD_GL_ARB_viewport_array = has_ext("GL_ARB_viewport_array"); - GLAD_GL_ARB_window_pos = has_ext("GL_ARB_window_pos"); - GLAD_GL_ATI_draw_buffers = has_ext("GL_ATI_draw_buffers"); - GLAD_GL_ATI_element_array = has_ext("GL_ATI_element_array"); - GLAD_GL_ATI_envmap_bumpmap = has_ext("GL_ATI_envmap_bumpmap"); - GLAD_GL_ATI_fragment_shader = has_ext("GL_ATI_fragment_shader"); - GLAD_GL_ATI_map_object_buffer = has_ext("GL_ATI_map_object_buffer"); - GLAD_GL_ATI_meminfo = has_ext("GL_ATI_meminfo"); - GLAD_GL_ATI_pixel_format_float = has_ext("GL_ATI_pixel_format_float"); - GLAD_GL_ATI_pn_triangles = has_ext("GL_ATI_pn_triangles"); - GLAD_GL_ATI_separate_stencil = has_ext("GL_ATI_separate_stencil"); - GLAD_GL_ATI_text_fragment_shader = has_ext("GL_ATI_text_fragment_shader"); - GLAD_GL_ATI_texture_env_combine3 = has_ext("GL_ATI_texture_env_combine3"); - GLAD_GL_ATI_texture_float = has_ext("GL_ATI_texture_float"); - GLAD_GL_ATI_texture_mirror_once = has_ext("GL_ATI_texture_mirror_once"); - GLAD_GL_ATI_vertex_array_object = has_ext("GL_ATI_vertex_array_object"); - GLAD_GL_ATI_vertex_attrib_array_object = has_ext("GL_ATI_vertex_attrib_array_object"); - GLAD_GL_ATI_vertex_streams = has_ext("GL_ATI_vertex_streams"); - GLAD_GL_EXT_422_pixels = has_ext("GL_EXT_422_pixels"); - GLAD_GL_EXT_EGL_image_storage = has_ext("GL_EXT_EGL_image_storage"); - GLAD_GL_EXT_abgr = has_ext("GL_EXT_abgr"); - GLAD_GL_EXT_bgra = has_ext("GL_EXT_bgra"); - GLAD_GL_EXT_bindable_uniform = has_ext("GL_EXT_bindable_uniform"); - GLAD_GL_EXT_blend_color = has_ext("GL_EXT_blend_color"); - GLAD_GL_EXT_blend_equation_separate = has_ext("GL_EXT_blend_equation_separate"); - GLAD_GL_EXT_blend_func_separate = has_ext("GL_EXT_blend_func_separate"); - GLAD_GL_EXT_blend_logic_op = has_ext("GL_EXT_blend_logic_op"); - GLAD_GL_EXT_blend_minmax = has_ext("GL_EXT_blend_minmax"); - GLAD_GL_EXT_blend_subtract = has_ext("GL_EXT_blend_subtract"); - GLAD_GL_EXT_clip_volume_hint = has_ext("GL_EXT_clip_volume_hint"); - GLAD_GL_EXT_cmyka = has_ext("GL_EXT_cmyka"); - GLAD_GL_EXT_color_subtable = has_ext("GL_EXT_color_subtable"); - GLAD_GL_EXT_compiled_vertex_array = has_ext("GL_EXT_compiled_vertex_array"); - GLAD_GL_EXT_convolution = has_ext("GL_EXT_convolution"); - GLAD_GL_EXT_coordinate_frame = has_ext("GL_EXT_coordinate_frame"); - GLAD_GL_EXT_copy_texture = has_ext("GL_EXT_copy_texture"); - GLAD_GL_EXT_cull_vertex = has_ext("GL_EXT_cull_vertex"); - GLAD_GL_EXT_debug_label = has_ext("GL_EXT_debug_label"); - GLAD_GL_EXT_debug_marker = has_ext("GL_EXT_debug_marker"); - GLAD_GL_EXT_depth_bounds_test = has_ext("GL_EXT_depth_bounds_test"); - GLAD_GL_EXT_direct_state_access = has_ext("GL_EXT_direct_state_access"); - GLAD_GL_EXT_draw_buffers2 = has_ext("GL_EXT_draw_buffers2"); - GLAD_GL_EXT_draw_instanced = has_ext("GL_EXT_draw_instanced"); - GLAD_GL_EXT_draw_range_elements = has_ext("GL_EXT_draw_range_elements"); - GLAD_GL_EXT_external_buffer = has_ext("GL_EXT_external_buffer"); - GLAD_GL_EXT_fog_coord = has_ext("GL_EXT_fog_coord"); - GLAD_GL_EXT_framebuffer_blit = has_ext("GL_EXT_framebuffer_blit"); - GLAD_GL_EXT_framebuffer_multisample = has_ext("GL_EXT_framebuffer_multisample"); - GLAD_GL_EXT_framebuffer_multisample_blit_scaled = has_ext("GL_EXT_framebuffer_multisample_blit_scaled"); - GLAD_GL_EXT_framebuffer_object = has_ext("GL_EXT_framebuffer_object"); - GLAD_GL_EXT_framebuffer_sRGB = has_ext("GL_EXT_framebuffer_sRGB"); - GLAD_GL_EXT_geometry_shader4 = has_ext("GL_EXT_geometry_shader4"); - GLAD_GL_EXT_gpu_program_parameters = has_ext("GL_EXT_gpu_program_parameters"); - GLAD_GL_EXT_gpu_shader4 = has_ext("GL_EXT_gpu_shader4"); - GLAD_GL_EXT_histogram = has_ext("GL_EXT_histogram"); - GLAD_GL_EXT_index_array_formats = has_ext("GL_EXT_index_array_formats"); - GLAD_GL_EXT_index_func = has_ext("GL_EXT_index_func"); - GLAD_GL_EXT_index_material = has_ext("GL_EXT_index_material"); - GLAD_GL_EXT_index_texture = has_ext("GL_EXT_index_texture"); - GLAD_GL_EXT_light_texture = has_ext("GL_EXT_light_texture"); - GLAD_GL_EXT_memory_object = has_ext("GL_EXT_memory_object"); - GLAD_GL_EXT_memory_object_fd = has_ext("GL_EXT_memory_object_fd"); - GLAD_GL_EXT_memory_object_win32 = has_ext("GL_EXT_memory_object_win32"); - GLAD_GL_EXT_misc_attribute = has_ext("GL_EXT_misc_attribute"); - GLAD_GL_EXT_multi_draw_arrays = has_ext("GL_EXT_multi_draw_arrays"); - GLAD_GL_EXT_multisample = has_ext("GL_EXT_multisample"); - GLAD_GL_EXT_packed_depth_stencil = has_ext("GL_EXT_packed_depth_stencil"); - GLAD_GL_EXT_packed_float = has_ext("GL_EXT_packed_float"); - GLAD_GL_EXT_packed_pixels = has_ext("GL_EXT_packed_pixels"); - GLAD_GL_EXT_paletted_texture = has_ext("GL_EXT_paletted_texture"); - GLAD_GL_EXT_pixel_buffer_object = has_ext("GL_EXT_pixel_buffer_object"); - GLAD_GL_EXT_pixel_transform = has_ext("GL_EXT_pixel_transform"); - GLAD_GL_EXT_pixel_transform_color_table = has_ext("GL_EXT_pixel_transform_color_table"); - GLAD_GL_EXT_point_parameters = has_ext("GL_EXT_point_parameters"); - GLAD_GL_EXT_polygon_offset = has_ext("GL_EXT_polygon_offset"); - GLAD_GL_EXT_polygon_offset_clamp = has_ext("GL_EXT_polygon_offset_clamp"); - GLAD_GL_EXT_post_depth_coverage = has_ext("GL_EXT_post_depth_coverage"); - GLAD_GL_EXT_provoking_vertex = has_ext("GL_EXT_provoking_vertex"); - GLAD_GL_EXT_raster_multisample = has_ext("GL_EXT_raster_multisample"); - GLAD_GL_EXT_rescale_normal = has_ext("GL_EXT_rescale_normal"); - GLAD_GL_EXT_secondary_color = has_ext("GL_EXT_secondary_color"); - GLAD_GL_EXT_semaphore = has_ext("GL_EXT_semaphore"); - GLAD_GL_EXT_semaphore_fd = has_ext("GL_EXT_semaphore_fd"); - GLAD_GL_EXT_semaphore_win32 = has_ext("GL_EXT_semaphore_win32"); - GLAD_GL_EXT_separate_shader_objects = has_ext("GL_EXT_separate_shader_objects"); - GLAD_GL_EXT_separate_specular_color = has_ext("GL_EXT_separate_specular_color"); - GLAD_GL_EXT_shader_framebuffer_fetch = has_ext("GL_EXT_shader_framebuffer_fetch"); - GLAD_GL_EXT_shader_framebuffer_fetch_non_coherent = has_ext("GL_EXT_shader_framebuffer_fetch_non_coherent"); - GLAD_GL_EXT_shader_image_load_formatted = has_ext("GL_EXT_shader_image_load_formatted"); - GLAD_GL_EXT_shader_image_load_store = has_ext("GL_EXT_shader_image_load_store"); - GLAD_GL_EXT_shader_integer_mix = has_ext("GL_EXT_shader_integer_mix"); - GLAD_GL_EXT_shadow_funcs = has_ext("GL_EXT_shadow_funcs"); - GLAD_GL_EXT_shared_texture_palette = has_ext("GL_EXT_shared_texture_palette"); - GLAD_GL_EXT_sparse_texture2 = has_ext("GL_EXT_sparse_texture2"); - GLAD_GL_EXT_stencil_clear_tag = has_ext("GL_EXT_stencil_clear_tag"); - GLAD_GL_EXT_stencil_two_side = has_ext("GL_EXT_stencil_two_side"); - GLAD_GL_EXT_stencil_wrap = has_ext("GL_EXT_stencil_wrap"); - GLAD_GL_EXT_subtexture = has_ext("GL_EXT_subtexture"); - GLAD_GL_EXT_texture = has_ext("GL_EXT_texture"); - GLAD_GL_EXT_texture3D = has_ext("GL_EXT_texture3D"); - GLAD_GL_EXT_texture_array = has_ext("GL_EXT_texture_array"); - GLAD_GL_EXT_texture_buffer_object = has_ext("GL_EXT_texture_buffer_object"); - GLAD_GL_EXT_texture_compression_latc = has_ext("GL_EXT_texture_compression_latc"); - GLAD_GL_EXT_texture_compression_rgtc = has_ext("GL_EXT_texture_compression_rgtc"); - GLAD_GL_EXT_texture_compression_s3tc = has_ext("GL_EXT_texture_compression_s3tc"); - GLAD_GL_EXT_texture_cube_map = has_ext("GL_EXT_texture_cube_map"); - GLAD_GL_EXT_texture_env_add = has_ext("GL_EXT_texture_env_add"); - GLAD_GL_EXT_texture_env_combine = has_ext("GL_EXT_texture_env_combine"); - GLAD_GL_EXT_texture_env_dot3 = has_ext("GL_EXT_texture_env_dot3"); - GLAD_GL_EXT_texture_filter_anisotropic = has_ext("GL_EXT_texture_filter_anisotropic"); - GLAD_GL_EXT_texture_filter_minmax = has_ext("GL_EXT_texture_filter_minmax"); - GLAD_GL_EXT_texture_integer = has_ext("GL_EXT_texture_integer"); - GLAD_GL_EXT_texture_lod_bias = has_ext("GL_EXT_texture_lod_bias"); - GLAD_GL_EXT_texture_mirror_clamp = has_ext("GL_EXT_texture_mirror_clamp"); - GLAD_GL_EXT_texture_object = has_ext("GL_EXT_texture_object"); - GLAD_GL_EXT_texture_perturb_normal = has_ext("GL_EXT_texture_perturb_normal"); - GLAD_GL_EXT_texture_sRGB = has_ext("GL_EXT_texture_sRGB"); - GLAD_GL_EXT_texture_sRGB_decode = has_ext("GL_EXT_texture_sRGB_decode"); - GLAD_GL_EXT_texture_shared_exponent = has_ext("GL_EXT_texture_shared_exponent"); - GLAD_GL_EXT_texture_snorm = has_ext("GL_EXT_texture_snorm"); - GLAD_GL_EXT_texture_swizzle = has_ext("GL_EXT_texture_swizzle"); - GLAD_GL_EXT_timer_query = has_ext("GL_EXT_timer_query"); - GLAD_GL_EXT_transform_feedback = has_ext("GL_EXT_transform_feedback"); - GLAD_GL_EXT_vertex_array = has_ext("GL_EXT_vertex_array"); - GLAD_GL_EXT_vertex_array_bgra = has_ext("GL_EXT_vertex_array_bgra"); - GLAD_GL_EXT_vertex_attrib_64bit = has_ext("GL_EXT_vertex_attrib_64bit"); - GLAD_GL_EXT_vertex_shader = has_ext("GL_EXT_vertex_shader"); - GLAD_GL_EXT_vertex_weighting = has_ext("GL_EXT_vertex_weighting"); - GLAD_GL_EXT_win32_keyed_mutex = has_ext("GL_EXT_win32_keyed_mutex"); - GLAD_GL_EXT_window_rectangles = has_ext("GL_EXT_window_rectangles"); - GLAD_GL_EXT_x11_sync_object = has_ext("GL_EXT_x11_sync_object"); - GLAD_GL_GREMEDY_frame_terminator = has_ext("GL_GREMEDY_frame_terminator"); - GLAD_GL_GREMEDY_string_marker = has_ext("GL_GREMEDY_string_marker"); - GLAD_GL_HP_convolution_border_modes = has_ext("GL_HP_convolution_border_modes"); - GLAD_GL_HP_image_transform = has_ext("GL_HP_image_transform"); - GLAD_GL_HP_occlusion_test = has_ext("GL_HP_occlusion_test"); - GLAD_GL_HP_texture_lighting = has_ext("GL_HP_texture_lighting"); - GLAD_GL_IBM_cull_vertex = has_ext("GL_IBM_cull_vertex"); - GLAD_GL_IBM_multimode_draw_arrays = has_ext("GL_IBM_multimode_draw_arrays"); - GLAD_GL_IBM_rasterpos_clip = has_ext("GL_IBM_rasterpos_clip"); - GLAD_GL_IBM_static_data = has_ext("GL_IBM_static_data"); - GLAD_GL_IBM_texture_mirrored_repeat = has_ext("GL_IBM_texture_mirrored_repeat"); - GLAD_GL_IBM_vertex_array_lists = has_ext("GL_IBM_vertex_array_lists"); - GLAD_GL_INGR_blend_func_separate = has_ext("GL_INGR_blend_func_separate"); - GLAD_GL_INGR_color_clamp = has_ext("GL_INGR_color_clamp"); - GLAD_GL_INGR_interlace_read = has_ext("GL_INGR_interlace_read"); - GLAD_GL_INTEL_blackhole_render = has_ext("GL_INTEL_blackhole_render"); - GLAD_GL_INTEL_conservative_rasterization = has_ext("GL_INTEL_conservative_rasterization"); - GLAD_GL_INTEL_fragment_shader_ordering = has_ext("GL_INTEL_fragment_shader_ordering"); - GLAD_GL_INTEL_framebuffer_CMAA = has_ext("GL_INTEL_framebuffer_CMAA"); - GLAD_GL_INTEL_map_texture = has_ext("GL_INTEL_map_texture"); - GLAD_GL_INTEL_parallel_arrays = has_ext("GL_INTEL_parallel_arrays"); - GLAD_GL_INTEL_performance_query = has_ext("GL_INTEL_performance_query"); - GLAD_GL_KHR_blend_equation_advanced = has_ext("GL_KHR_blend_equation_advanced"); - GLAD_GL_KHR_blend_equation_advanced_coherent = has_ext("GL_KHR_blend_equation_advanced_coherent"); - GLAD_GL_KHR_context_flush_control = has_ext("GL_KHR_context_flush_control"); - GLAD_GL_KHR_debug = has_ext("GL_KHR_debug"); - GLAD_GL_KHR_no_error = has_ext("GL_KHR_no_error"); - GLAD_GL_KHR_parallel_shader_compile = has_ext("GL_KHR_parallel_shader_compile"); - GLAD_GL_KHR_robust_buffer_access_behavior = has_ext("GL_KHR_robust_buffer_access_behavior"); - GLAD_GL_KHR_robustness = has_ext("GL_KHR_robustness"); - GLAD_GL_KHR_texture_compression_astc_hdr = has_ext("GL_KHR_texture_compression_astc_hdr"); - GLAD_GL_KHR_texture_compression_astc_ldr = has_ext("GL_KHR_texture_compression_astc_ldr"); - GLAD_GL_KHR_texture_compression_astc_sliced_3d = has_ext("GL_KHR_texture_compression_astc_sliced_3d"); - GLAD_GL_MESAX_texture_stack = has_ext("GL_MESAX_texture_stack"); - GLAD_GL_MESA_pack_invert = has_ext("GL_MESA_pack_invert"); - GLAD_GL_MESA_program_binary_formats = has_ext("GL_MESA_program_binary_formats"); - GLAD_GL_MESA_resize_buffers = has_ext("GL_MESA_resize_buffers"); - GLAD_GL_MESA_shader_integer_functions = has_ext("GL_MESA_shader_integer_functions"); - GLAD_GL_MESA_tile_raster_order = has_ext("GL_MESA_tile_raster_order"); - GLAD_GL_MESA_window_pos = has_ext("GL_MESA_window_pos"); - GLAD_GL_MESA_ycbcr_texture = has_ext("GL_MESA_ycbcr_texture"); - GLAD_GL_NVX_blend_equation_advanced_multi_draw_buffers = has_ext("GL_NVX_blend_equation_advanced_multi_draw_buffers"); - GLAD_GL_NVX_conditional_render = has_ext("GL_NVX_conditional_render"); - GLAD_GL_NVX_gpu_memory_info = has_ext("GL_NVX_gpu_memory_info"); - GLAD_GL_NVX_linked_gpu_multicast = has_ext("GL_NVX_linked_gpu_multicast"); - GLAD_GL_NV_alpha_to_coverage_dither_control = has_ext("GL_NV_alpha_to_coverage_dither_control"); - GLAD_GL_NV_bindless_multi_draw_indirect = has_ext("GL_NV_bindless_multi_draw_indirect"); - GLAD_GL_NV_bindless_multi_draw_indirect_count = has_ext("GL_NV_bindless_multi_draw_indirect_count"); - GLAD_GL_NV_bindless_texture = has_ext("GL_NV_bindless_texture"); - GLAD_GL_NV_blend_equation_advanced = has_ext("GL_NV_blend_equation_advanced"); - GLAD_GL_NV_blend_equation_advanced_coherent = has_ext("GL_NV_blend_equation_advanced_coherent"); - GLAD_GL_NV_blend_minmax_factor = has_ext("GL_NV_blend_minmax_factor"); - GLAD_GL_NV_blend_square = has_ext("GL_NV_blend_square"); - GLAD_GL_NV_clip_space_w_scaling = has_ext("GL_NV_clip_space_w_scaling"); - GLAD_GL_NV_command_list = has_ext("GL_NV_command_list"); - GLAD_GL_NV_compute_program5 = has_ext("GL_NV_compute_program5"); - GLAD_GL_NV_conditional_render = has_ext("GL_NV_conditional_render"); - GLAD_GL_NV_conservative_raster = has_ext("GL_NV_conservative_raster"); - GLAD_GL_NV_conservative_raster_dilate = has_ext("GL_NV_conservative_raster_dilate"); - GLAD_GL_NV_conservative_raster_pre_snap = has_ext("GL_NV_conservative_raster_pre_snap"); - GLAD_GL_NV_conservative_raster_pre_snap_triangles = has_ext("GL_NV_conservative_raster_pre_snap_triangles"); - GLAD_GL_NV_conservative_raster_underestimation = has_ext("GL_NV_conservative_raster_underestimation"); - GLAD_GL_NV_copy_depth_to_color = has_ext("GL_NV_copy_depth_to_color"); - GLAD_GL_NV_copy_image = has_ext("GL_NV_copy_image"); - GLAD_GL_NV_deep_texture3D = has_ext("GL_NV_deep_texture3D"); - GLAD_GL_NV_depth_buffer_float = has_ext("GL_NV_depth_buffer_float"); - GLAD_GL_NV_depth_clamp = has_ext("GL_NV_depth_clamp"); - GLAD_GL_NV_draw_texture = has_ext("GL_NV_draw_texture"); - GLAD_GL_NV_draw_vulkan_image = has_ext("GL_NV_draw_vulkan_image"); - GLAD_GL_NV_evaluators = has_ext("GL_NV_evaluators"); - GLAD_GL_NV_explicit_multisample = has_ext("GL_NV_explicit_multisample"); - GLAD_GL_NV_fence = has_ext("GL_NV_fence"); - GLAD_GL_NV_fill_rectangle = has_ext("GL_NV_fill_rectangle"); - GLAD_GL_NV_float_buffer = has_ext("GL_NV_float_buffer"); - GLAD_GL_NV_fog_distance = has_ext("GL_NV_fog_distance"); - GLAD_GL_NV_fragment_coverage_to_color = has_ext("GL_NV_fragment_coverage_to_color"); - GLAD_GL_NV_fragment_program = has_ext("GL_NV_fragment_program"); - GLAD_GL_NV_fragment_program2 = has_ext("GL_NV_fragment_program2"); - GLAD_GL_NV_fragment_program4 = has_ext("GL_NV_fragment_program4"); - GLAD_GL_NV_fragment_program_option = has_ext("GL_NV_fragment_program_option"); - GLAD_GL_NV_fragment_shader_interlock = has_ext("GL_NV_fragment_shader_interlock"); - GLAD_GL_NV_framebuffer_mixed_samples = has_ext("GL_NV_framebuffer_mixed_samples"); - GLAD_GL_NV_framebuffer_multisample_coverage = has_ext("GL_NV_framebuffer_multisample_coverage"); - GLAD_GL_NV_geometry_program4 = has_ext("GL_NV_geometry_program4"); - GLAD_GL_NV_geometry_shader4 = has_ext("GL_NV_geometry_shader4"); - GLAD_GL_NV_geometry_shader_passthrough = has_ext("GL_NV_geometry_shader_passthrough"); - GLAD_GL_NV_gpu_multicast = has_ext("GL_NV_gpu_multicast"); - GLAD_GL_NV_gpu_program4 = has_ext("GL_NV_gpu_program4"); - GLAD_GL_NV_gpu_program5 = has_ext("GL_NV_gpu_program5"); - GLAD_GL_NV_gpu_program5_mem_extended = has_ext("GL_NV_gpu_program5_mem_extended"); - GLAD_GL_NV_gpu_shader5 = has_ext("GL_NV_gpu_shader5"); - GLAD_GL_NV_half_float = has_ext("GL_NV_half_float"); - GLAD_GL_NV_internalformat_sample_query = has_ext("GL_NV_internalformat_sample_query"); - GLAD_GL_NV_light_max_exponent = has_ext("GL_NV_light_max_exponent"); - GLAD_GL_NV_multisample_coverage = has_ext("GL_NV_multisample_coverage"); - GLAD_GL_NV_multisample_filter_hint = has_ext("GL_NV_multisample_filter_hint"); - GLAD_GL_NV_occlusion_query = has_ext("GL_NV_occlusion_query"); - GLAD_GL_NV_packed_depth_stencil = has_ext("GL_NV_packed_depth_stencil"); - GLAD_GL_NV_parameter_buffer_object = has_ext("GL_NV_parameter_buffer_object"); - GLAD_GL_NV_parameter_buffer_object2 = has_ext("GL_NV_parameter_buffer_object2"); - GLAD_GL_NV_path_rendering = has_ext("GL_NV_path_rendering"); - GLAD_GL_NV_path_rendering_shared_edge = has_ext("GL_NV_path_rendering_shared_edge"); - GLAD_GL_NV_pixel_data_range = has_ext("GL_NV_pixel_data_range"); - GLAD_GL_NV_point_sprite = has_ext("GL_NV_point_sprite"); - GLAD_GL_NV_present_video = has_ext("GL_NV_present_video"); - GLAD_GL_NV_primitive_restart = has_ext("GL_NV_primitive_restart"); - GLAD_GL_NV_query_resource = has_ext("GL_NV_query_resource"); - GLAD_GL_NV_query_resource_tag = has_ext("GL_NV_query_resource_tag"); - GLAD_GL_NV_register_combiners = has_ext("GL_NV_register_combiners"); - GLAD_GL_NV_register_combiners2 = has_ext("GL_NV_register_combiners2"); - GLAD_GL_NV_robustness_video_memory_purge = has_ext("GL_NV_robustness_video_memory_purge"); - GLAD_GL_NV_sample_locations = has_ext("GL_NV_sample_locations"); - GLAD_GL_NV_sample_mask_override_coverage = has_ext("GL_NV_sample_mask_override_coverage"); - GLAD_GL_NV_shader_atomic_counters = has_ext("GL_NV_shader_atomic_counters"); - GLAD_GL_NV_shader_atomic_float = has_ext("GL_NV_shader_atomic_float"); - GLAD_GL_NV_shader_atomic_float64 = has_ext("GL_NV_shader_atomic_float64"); - GLAD_GL_NV_shader_atomic_fp16_vector = has_ext("GL_NV_shader_atomic_fp16_vector"); - GLAD_GL_NV_shader_atomic_int64 = has_ext("GL_NV_shader_atomic_int64"); - GLAD_GL_NV_shader_buffer_load = has_ext("GL_NV_shader_buffer_load"); - GLAD_GL_NV_shader_buffer_store = has_ext("GL_NV_shader_buffer_store"); - GLAD_GL_NV_shader_storage_buffer_object = has_ext("GL_NV_shader_storage_buffer_object"); - GLAD_GL_NV_shader_thread_group = has_ext("GL_NV_shader_thread_group"); - GLAD_GL_NV_shader_thread_shuffle = has_ext("GL_NV_shader_thread_shuffle"); - GLAD_GL_NV_stereo_view_rendering = has_ext("GL_NV_stereo_view_rendering"); - GLAD_GL_NV_tessellation_program5 = has_ext("GL_NV_tessellation_program5"); - GLAD_GL_NV_texgen_emboss = has_ext("GL_NV_texgen_emboss"); - GLAD_GL_NV_texgen_reflection = has_ext("GL_NV_texgen_reflection"); - GLAD_GL_NV_texture_barrier = has_ext("GL_NV_texture_barrier"); - GLAD_GL_NV_texture_compression_vtc = has_ext("GL_NV_texture_compression_vtc"); - GLAD_GL_NV_texture_env_combine4 = has_ext("GL_NV_texture_env_combine4"); - GLAD_GL_NV_texture_expand_normal = has_ext("GL_NV_texture_expand_normal"); - GLAD_GL_NV_texture_multisample = has_ext("GL_NV_texture_multisample"); - GLAD_GL_NV_texture_rectangle = has_ext("GL_NV_texture_rectangle"); - GLAD_GL_NV_texture_rectangle_compressed = has_ext("GL_NV_texture_rectangle_compressed"); - GLAD_GL_NV_texture_shader = has_ext("GL_NV_texture_shader"); - GLAD_GL_NV_texture_shader2 = has_ext("GL_NV_texture_shader2"); - GLAD_GL_NV_texture_shader3 = has_ext("GL_NV_texture_shader3"); - GLAD_GL_NV_transform_feedback = has_ext("GL_NV_transform_feedback"); - GLAD_GL_NV_transform_feedback2 = has_ext("GL_NV_transform_feedback2"); - GLAD_GL_NV_uniform_buffer_unified_memory = has_ext("GL_NV_uniform_buffer_unified_memory"); - GLAD_GL_NV_vdpau_interop = has_ext("GL_NV_vdpau_interop"); - GLAD_GL_NV_vertex_array_range = has_ext("GL_NV_vertex_array_range"); - GLAD_GL_NV_vertex_array_range2 = has_ext("GL_NV_vertex_array_range2"); - GLAD_GL_NV_vertex_attrib_integer_64bit = has_ext("GL_NV_vertex_attrib_integer_64bit"); - GLAD_GL_NV_vertex_buffer_unified_memory = has_ext("GL_NV_vertex_buffer_unified_memory"); - GLAD_GL_NV_vertex_program = has_ext("GL_NV_vertex_program"); - GLAD_GL_NV_vertex_program1_1 = has_ext("GL_NV_vertex_program1_1"); - GLAD_GL_NV_vertex_program2 = has_ext("GL_NV_vertex_program2"); - GLAD_GL_NV_vertex_program2_option = has_ext("GL_NV_vertex_program2_option"); - GLAD_GL_NV_vertex_program3 = has_ext("GL_NV_vertex_program3"); - GLAD_GL_NV_vertex_program4 = has_ext("GL_NV_vertex_program4"); - GLAD_GL_NV_video_capture = has_ext("GL_NV_video_capture"); - GLAD_GL_NV_viewport_array2 = has_ext("GL_NV_viewport_array2"); - GLAD_GL_NV_viewport_swizzle = has_ext("GL_NV_viewport_swizzle"); - GLAD_GL_OES_byte_coordinates = has_ext("GL_OES_byte_coordinates"); - GLAD_GL_OES_compressed_paletted_texture = has_ext("GL_OES_compressed_paletted_texture"); - GLAD_GL_OES_fixed_point = has_ext("GL_OES_fixed_point"); - GLAD_GL_OES_query_matrix = has_ext("GL_OES_query_matrix"); - GLAD_GL_OES_read_format = has_ext("GL_OES_read_format"); - GLAD_GL_OES_single_precision = has_ext("GL_OES_single_precision"); - GLAD_GL_OML_interlace = has_ext("GL_OML_interlace"); - GLAD_GL_OML_resample = has_ext("GL_OML_resample"); - GLAD_GL_OML_subsample = has_ext("GL_OML_subsample"); - GLAD_GL_OVR_multiview = has_ext("GL_OVR_multiview"); - GLAD_GL_OVR_multiview2 = has_ext("GL_OVR_multiview2"); - GLAD_GL_PGI_misc_hints = has_ext("GL_PGI_misc_hints"); - GLAD_GL_PGI_vertex_hints = has_ext("GL_PGI_vertex_hints"); - GLAD_GL_REND_screen_coordinates = has_ext("GL_REND_screen_coordinates"); - GLAD_GL_S3_s3tc = has_ext("GL_S3_s3tc"); - GLAD_GL_SGIS_detail_texture = has_ext("GL_SGIS_detail_texture"); - GLAD_GL_SGIS_fog_function = has_ext("GL_SGIS_fog_function"); - GLAD_GL_SGIS_generate_mipmap = has_ext("GL_SGIS_generate_mipmap"); - GLAD_GL_SGIS_multisample = has_ext("GL_SGIS_multisample"); - GLAD_GL_SGIS_pixel_texture = has_ext("GL_SGIS_pixel_texture"); - GLAD_GL_SGIS_point_line_texgen = has_ext("GL_SGIS_point_line_texgen"); - GLAD_GL_SGIS_point_parameters = has_ext("GL_SGIS_point_parameters"); - GLAD_GL_SGIS_sharpen_texture = has_ext("GL_SGIS_sharpen_texture"); - GLAD_GL_SGIS_texture4D = has_ext("GL_SGIS_texture4D"); - GLAD_GL_SGIS_texture_border_clamp = has_ext("GL_SGIS_texture_border_clamp"); - GLAD_GL_SGIS_texture_color_mask = has_ext("GL_SGIS_texture_color_mask"); - GLAD_GL_SGIS_texture_edge_clamp = has_ext("GL_SGIS_texture_edge_clamp"); - GLAD_GL_SGIS_texture_filter4 = has_ext("GL_SGIS_texture_filter4"); - GLAD_GL_SGIS_texture_lod = has_ext("GL_SGIS_texture_lod"); - GLAD_GL_SGIS_texture_select = has_ext("GL_SGIS_texture_select"); - GLAD_GL_SGIX_async = has_ext("GL_SGIX_async"); - GLAD_GL_SGIX_async_histogram = has_ext("GL_SGIX_async_histogram"); - GLAD_GL_SGIX_async_pixel = has_ext("GL_SGIX_async_pixel"); - GLAD_GL_SGIX_blend_alpha_minmax = has_ext("GL_SGIX_blend_alpha_minmax"); - GLAD_GL_SGIX_calligraphic_fragment = has_ext("GL_SGIX_calligraphic_fragment"); - GLAD_GL_SGIX_clipmap = has_ext("GL_SGIX_clipmap"); - GLAD_GL_SGIX_convolution_accuracy = has_ext("GL_SGIX_convolution_accuracy"); - GLAD_GL_SGIX_depth_pass_instrument = has_ext("GL_SGIX_depth_pass_instrument"); - GLAD_GL_SGIX_depth_texture = has_ext("GL_SGIX_depth_texture"); - GLAD_GL_SGIX_flush_raster = has_ext("GL_SGIX_flush_raster"); - GLAD_GL_SGIX_fog_offset = has_ext("GL_SGIX_fog_offset"); - GLAD_GL_SGIX_fragment_lighting = has_ext("GL_SGIX_fragment_lighting"); - GLAD_GL_SGIX_framezoom = has_ext("GL_SGIX_framezoom"); - GLAD_GL_SGIX_igloo_interface = has_ext("GL_SGIX_igloo_interface"); - GLAD_GL_SGIX_instruments = has_ext("GL_SGIX_instruments"); - GLAD_GL_SGIX_interlace = has_ext("GL_SGIX_interlace"); - GLAD_GL_SGIX_ir_instrument1 = has_ext("GL_SGIX_ir_instrument1"); - GLAD_GL_SGIX_list_priority = has_ext("GL_SGIX_list_priority"); - GLAD_GL_SGIX_pixel_texture = has_ext("GL_SGIX_pixel_texture"); - GLAD_GL_SGIX_pixel_tiles = has_ext("GL_SGIX_pixel_tiles"); - GLAD_GL_SGIX_polynomial_ffd = has_ext("GL_SGIX_polynomial_ffd"); - GLAD_GL_SGIX_reference_plane = has_ext("GL_SGIX_reference_plane"); - GLAD_GL_SGIX_resample = has_ext("GL_SGIX_resample"); - GLAD_GL_SGIX_scalebias_hint = has_ext("GL_SGIX_scalebias_hint"); - GLAD_GL_SGIX_shadow = has_ext("GL_SGIX_shadow"); - GLAD_GL_SGIX_shadow_ambient = has_ext("GL_SGIX_shadow_ambient"); - GLAD_GL_SGIX_sprite = has_ext("GL_SGIX_sprite"); - GLAD_GL_SGIX_subsample = has_ext("GL_SGIX_subsample"); - GLAD_GL_SGIX_tag_sample_buffer = has_ext("GL_SGIX_tag_sample_buffer"); - GLAD_GL_SGIX_texture_add_env = has_ext("GL_SGIX_texture_add_env"); - GLAD_GL_SGIX_texture_coordinate_clamp = has_ext("GL_SGIX_texture_coordinate_clamp"); - GLAD_GL_SGIX_texture_lod_bias = has_ext("GL_SGIX_texture_lod_bias"); - GLAD_GL_SGIX_texture_multi_buffer = has_ext("GL_SGIX_texture_multi_buffer"); - GLAD_GL_SGIX_texture_scale_bias = has_ext("GL_SGIX_texture_scale_bias"); - GLAD_GL_SGIX_vertex_preclip = has_ext("GL_SGIX_vertex_preclip"); - GLAD_GL_SGIX_ycrcb = has_ext("GL_SGIX_ycrcb"); - GLAD_GL_SGIX_ycrcb_subsample = has_ext("GL_SGIX_ycrcb_subsample"); - GLAD_GL_SGIX_ycrcba = has_ext("GL_SGIX_ycrcba"); - GLAD_GL_SGI_color_matrix = has_ext("GL_SGI_color_matrix"); - GLAD_GL_SGI_color_table = has_ext("GL_SGI_color_table"); - GLAD_GL_SGI_texture_color_table = has_ext("GL_SGI_texture_color_table"); - GLAD_GL_SUNX_constant_data = has_ext("GL_SUNX_constant_data"); - GLAD_GL_SUN_convolution_border_modes = has_ext("GL_SUN_convolution_border_modes"); - GLAD_GL_SUN_global_alpha = has_ext("GL_SUN_global_alpha"); - GLAD_GL_SUN_mesh_array = has_ext("GL_SUN_mesh_array"); - GLAD_GL_SUN_slice_accum = has_ext("GL_SUN_slice_accum"); - GLAD_GL_SUN_triangle_list = has_ext("GL_SUN_triangle_list"); - GLAD_GL_SUN_vertex = has_ext("GL_SUN_vertex"); - GLAD_GL_WIN_phong_shading = has_ext("GL_WIN_phong_shading"); - GLAD_GL_WIN_specular_fog = has_ext("GL_WIN_specular_fog"); - free_exts(); - return 1; -} - -static void find_coreGL(void) { - - /* Thank you @elmindreda - * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176 - * https://github.com/glfw/glfw/blob/master/src/context.c#L36 - */ - int i, major, minor; - - const char* version; - const char* prefixes[] = { - "OpenGL ES-CM ", - "OpenGL ES-CL ", - "OpenGL ES ", - NULL - }; - - version = (const char*) glGetString(GL_VERSION); - if (!version) return; - - for (i = 0; prefixes[i]; i++) { - const size_t length = strlen(prefixes[i]); - if (strncmp(version, prefixes[i], length) == 0) { - version += length; - break; - } - } - -/* PR #18 */ -#ifdef _MSC_VER - sscanf_s(version, "%d.%d", &major, &minor); -#else - sscanf(version, "%d.%d", &major, &minor); -#endif - - GLVersion.major = major; GLVersion.minor = minor; - max_loaded_major = major; max_loaded_minor = minor; - GLAD_GL_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1; - GLAD_GL_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1; - GLAD_GL_VERSION_1_2 = (major == 1 && minor >= 2) || major > 1; - GLAD_GL_VERSION_1_3 = (major == 1 && minor >= 3) || major > 1; - GLAD_GL_VERSION_1_4 = (major == 1 && minor >= 4) || major > 1; - GLAD_GL_VERSION_1_5 = (major == 1 && minor >= 5) || major > 1; - GLAD_GL_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2; - GLAD_GL_VERSION_2_1 = (major == 2 && minor >= 1) || major > 2; - GLAD_GL_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3; - GLAD_GL_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3; - GLAD_GL_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3; - GLAD_GL_VERSION_3_3 = (major == 3 && minor >= 3) || major > 3; - GLAD_GL_VERSION_4_0 = (major == 4 && minor >= 0) || major > 4; - GLAD_GL_VERSION_4_1 = (major == 4 && minor >= 1) || major > 4; - GLAD_GL_VERSION_4_2 = (major == 4 && minor >= 2) || major > 4; - GLAD_GL_VERSION_4_3 = (major == 4 && minor >= 3) || major > 4; - GLAD_GL_VERSION_4_4 = (major == 4 && minor >= 4) || major > 4; - GLAD_GL_VERSION_4_5 = (major == 4 && minor >= 5) || major > 4; - GLAD_GL_VERSION_4_6 = (major == 4 && minor >= 6) || major > 4; - if (GLVersion.major > 4 || (GLVersion.major >= 4 && GLVersion.minor >= 6)) { - max_loaded_major = 4; - max_loaded_minor = 6; - } -} - -int gladLoadGLLoader(GLADloadproc load) { - GLVersion.major = 0; GLVersion.minor = 0; - glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); - if(glGetString == NULL) return 0; - if(glGetString(GL_VERSION) == NULL) return 0; - find_coreGL(); - load_GL_VERSION_1_0(load); - load_GL_VERSION_1_1(load); - load_GL_VERSION_1_2(load); - load_GL_VERSION_1_3(load); - load_GL_VERSION_1_4(load); - load_GL_VERSION_1_5(load); - load_GL_VERSION_2_0(load); - load_GL_VERSION_2_1(load); - load_GL_VERSION_3_0(load); - load_GL_VERSION_3_1(load); - load_GL_VERSION_3_2(load); - load_GL_VERSION_3_3(load); - load_GL_VERSION_4_0(load); - load_GL_VERSION_4_1(load); - load_GL_VERSION_4_2(load); - load_GL_VERSION_4_3(load); - load_GL_VERSION_4_4(load); - load_GL_VERSION_4_5(load); - load_GL_VERSION_4_6(load); - - if (!find_extensionsGL()) return 0; - load_GL_3DFX_tbuffer(load); - load_GL_AMD_debug_output(load); - load_GL_AMD_draw_buffers_blend(load); - load_GL_AMD_framebuffer_sample_positions(load); - load_GL_AMD_gpu_shader_int64(load); - load_GL_AMD_interleaved_elements(load); - load_GL_AMD_multi_draw_indirect(load); - load_GL_AMD_name_gen_delete(load); - load_GL_AMD_occlusion_query_event(load); - load_GL_AMD_performance_monitor(load); - load_GL_AMD_sample_positions(load); - load_GL_AMD_sparse_texture(load); - load_GL_AMD_stencil_operation_extended(load); - load_GL_AMD_vertex_shader_tessellator(load); - load_GL_APPLE_element_array(load); - load_GL_APPLE_fence(load); - load_GL_APPLE_flush_buffer_range(load); - load_GL_APPLE_object_purgeable(load); - load_GL_APPLE_texture_range(load); - load_GL_APPLE_vertex_array_object(load); - load_GL_APPLE_vertex_array_range(load); - load_GL_APPLE_vertex_program_evaluators(load); - load_GL_ARB_ES2_compatibility(load); - load_GL_ARB_ES3_1_compatibility(load); - load_GL_ARB_ES3_2_compatibility(load); - load_GL_ARB_base_instance(load); - load_GL_ARB_bindless_texture(load); - load_GL_ARB_blend_func_extended(load); - load_GL_ARB_buffer_storage(load); - load_GL_ARB_cl_event(load); - load_GL_ARB_clear_buffer_object(load); - load_GL_ARB_clear_texture(load); - load_GL_ARB_clip_control(load); - load_GL_ARB_color_buffer_float(load); - load_GL_ARB_compute_shader(load); - load_GL_ARB_compute_variable_group_size(load); - load_GL_ARB_copy_buffer(load); - load_GL_ARB_copy_image(load); - load_GL_ARB_debug_output(load); - load_GL_ARB_direct_state_access(load); - load_GL_ARB_draw_buffers(load); - load_GL_ARB_draw_buffers_blend(load); - load_GL_ARB_draw_elements_base_vertex(load); - load_GL_ARB_draw_indirect(load); - load_GL_ARB_draw_instanced(load); - load_GL_ARB_fragment_program(load); - load_GL_ARB_framebuffer_no_attachments(load); - load_GL_ARB_framebuffer_object(load); - load_GL_ARB_geometry_shader4(load); - load_GL_ARB_get_program_binary(load); - load_GL_ARB_get_texture_sub_image(load); - load_GL_ARB_gl_spirv(load); - load_GL_ARB_gpu_shader_fp64(load); - load_GL_ARB_gpu_shader_int64(load); - load_GL_ARB_imaging(load); - load_GL_ARB_indirect_parameters(load); - load_GL_ARB_instanced_arrays(load); - load_GL_ARB_internalformat_query(load); - load_GL_ARB_internalformat_query2(load); - load_GL_ARB_invalidate_subdata(load); - load_GL_ARB_map_buffer_range(load); - load_GL_ARB_matrix_palette(load); - load_GL_ARB_multi_bind(load); - load_GL_ARB_multi_draw_indirect(load); - load_GL_ARB_multisample(load); - load_GL_ARB_multitexture(load); - load_GL_ARB_occlusion_query(load); - load_GL_ARB_parallel_shader_compile(load); - load_GL_ARB_point_parameters(load); - load_GL_ARB_polygon_offset_clamp(load); - load_GL_ARB_program_interface_query(load); - load_GL_ARB_provoking_vertex(load); - load_GL_ARB_robustness(load); - load_GL_ARB_sample_locations(load); - load_GL_ARB_sample_shading(load); - load_GL_ARB_sampler_objects(load); - load_GL_ARB_separate_shader_objects(load); - load_GL_ARB_shader_atomic_counters(load); - load_GL_ARB_shader_image_load_store(load); - load_GL_ARB_shader_objects(load); - load_GL_ARB_shader_storage_buffer_object(load); - load_GL_ARB_shader_subroutine(load); - load_GL_ARB_shading_language_include(load); - load_GL_ARB_sparse_buffer(load); - load_GL_ARB_sparse_texture(load); - load_GL_ARB_sync(load); - load_GL_ARB_tessellation_shader(load); - load_GL_ARB_texture_barrier(load); - load_GL_ARB_texture_buffer_object(load); - load_GL_ARB_texture_buffer_range(load); - load_GL_ARB_texture_compression(load); - load_GL_ARB_texture_multisample(load); - load_GL_ARB_texture_storage(load); - load_GL_ARB_texture_storage_multisample(load); - load_GL_ARB_texture_view(load); - load_GL_ARB_timer_query(load); - load_GL_ARB_transform_feedback2(load); - load_GL_ARB_transform_feedback3(load); - load_GL_ARB_transform_feedback_instanced(load); - load_GL_ARB_transpose_matrix(load); - load_GL_ARB_uniform_buffer_object(load); - load_GL_ARB_vertex_array_object(load); - load_GL_ARB_vertex_attrib_64bit(load); - load_GL_ARB_vertex_attrib_binding(load); - load_GL_ARB_vertex_blend(load); - load_GL_ARB_vertex_buffer_object(load); - load_GL_ARB_vertex_program(load); - load_GL_ARB_vertex_shader(load); - load_GL_ARB_vertex_type_2_10_10_10_rev(load); - load_GL_ARB_viewport_array(load); - load_GL_ARB_window_pos(load); - load_GL_ATI_draw_buffers(load); - load_GL_ATI_element_array(load); - load_GL_ATI_envmap_bumpmap(load); - load_GL_ATI_fragment_shader(load); - load_GL_ATI_map_object_buffer(load); - load_GL_ATI_pn_triangles(load); - load_GL_ATI_separate_stencil(load); - load_GL_ATI_vertex_array_object(load); - load_GL_ATI_vertex_attrib_array_object(load); - load_GL_ATI_vertex_streams(load); - load_GL_EXT_EGL_image_storage(load); - load_GL_EXT_bindable_uniform(load); - load_GL_EXT_blend_color(load); - load_GL_EXT_blend_equation_separate(load); - load_GL_EXT_blend_func_separate(load); - load_GL_EXT_blend_minmax(load); - load_GL_EXT_color_subtable(load); - load_GL_EXT_compiled_vertex_array(load); - load_GL_EXT_convolution(load); - load_GL_EXT_coordinate_frame(load); - load_GL_EXT_copy_texture(load); - load_GL_EXT_cull_vertex(load); - load_GL_EXT_debug_label(load); - load_GL_EXT_debug_marker(load); - load_GL_EXT_depth_bounds_test(load); - load_GL_EXT_direct_state_access(load); - load_GL_EXT_draw_buffers2(load); - load_GL_EXT_draw_instanced(load); - load_GL_EXT_draw_range_elements(load); - load_GL_EXT_external_buffer(load); - load_GL_EXT_fog_coord(load); - load_GL_EXT_framebuffer_blit(load); - load_GL_EXT_framebuffer_multisample(load); - load_GL_EXT_framebuffer_object(load); - load_GL_EXT_geometry_shader4(load); - load_GL_EXT_gpu_program_parameters(load); - load_GL_EXT_gpu_shader4(load); - load_GL_EXT_histogram(load); - load_GL_EXT_index_func(load); - load_GL_EXT_index_material(load); - load_GL_EXT_light_texture(load); - load_GL_EXT_memory_object(load); - load_GL_EXT_memory_object_fd(load); - load_GL_EXT_memory_object_win32(load); - load_GL_EXT_multi_draw_arrays(load); - load_GL_EXT_multisample(load); - load_GL_EXT_paletted_texture(load); - load_GL_EXT_pixel_transform(load); - load_GL_EXT_point_parameters(load); - load_GL_EXT_polygon_offset(load); - load_GL_EXT_polygon_offset_clamp(load); - load_GL_EXT_provoking_vertex(load); - load_GL_EXT_raster_multisample(load); - load_GL_EXT_secondary_color(load); - load_GL_EXT_semaphore(load); - load_GL_EXT_semaphore_fd(load); - load_GL_EXT_semaphore_win32(load); - load_GL_EXT_separate_shader_objects(load); - load_GL_EXT_shader_framebuffer_fetch_non_coherent(load); - load_GL_EXT_shader_image_load_store(load); - load_GL_EXT_stencil_clear_tag(load); - load_GL_EXT_stencil_two_side(load); - load_GL_EXT_subtexture(load); - load_GL_EXT_texture3D(load); - load_GL_EXT_texture_array(load); - load_GL_EXT_texture_buffer_object(load); - load_GL_EXT_texture_integer(load); - load_GL_EXT_texture_object(load); - load_GL_EXT_texture_perturb_normal(load); - load_GL_EXT_timer_query(load); - load_GL_EXT_transform_feedback(load); - load_GL_EXT_vertex_array(load); - load_GL_EXT_vertex_attrib_64bit(load); - load_GL_EXT_vertex_shader(load); - load_GL_EXT_vertex_weighting(load); - load_GL_EXT_win32_keyed_mutex(load); - load_GL_EXT_window_rectangles(load); - load_GL_EXT_x11_sync_object(load); - load_GL_GREMEDY_frame_terminator(load); - load_GL_GREMEDY_string_marker(load); - load_GL_HP_image_transform(load); - load_GL_IBM_multimode_draw_arrays(load); - load_GL_IBM_static_data(load); - load_GL_IBM_vertex_array_lists(load); - load_GL_INGR_blend_func_separate(load); - load_GL_INTEL_framebuffer_CMAA(load); - load_GL_INTEL_map_texture(load); - load_GL_INTEL_parallel_arrays(load); - load_GL_INTEL_performance_query(load); - load_GL_KHR_blend_equation_advanced(load); - load_GL_KHR_debug(load); - load_GL_KHR_parallel_shader_compile(load); - load_GL_KHR_robustness(load); - load_GL_MESA_resize_buffers(load); - load_GL_MESA_window_pos(load); - load_GL_NVX_conditional_render(load); - load_GL_NVX_linked_gpu_multicast(load); - load_GL_NV_alpha_to_coverage_dither_control(load); - load_GL_NV_bindless_multi_draw_indirect(load); - load_GL_NV_bindless_multi_draw_indirect_count(load); - load_GL_NV_bindless_texture(load); - load_GL_NV_blend_equation_advanced(load); - load_GL_NV_clip_space_w_scaling(load); - load_GL_NV_command_list(load); - load_GL_NV_conditional_render(load); - load_GL_NV_conservative_raster(load); - load_GL_NV_conservative_raster_dilate(load); - load_GL_NV_conservative_raster_pre_snap_triangles(load); - load_GL_NV_copy_image(load); - load_GL_NV_depth_buffer_float(load); - load_GL_NV_draw_texture(load); - load_GL_NV_draw_vulkan_image(load); - load_GL_NV_evaluators(load); - load_GL_NV_explicit_multisample(load); - load_GL_NV_fence(load); - load_GL_NV_fragment_coverage_to_color(load); - load_GL_NV_fragment_program(load); - load_GL_NV_framebuffer_mixed_samples(load); - load_GL_NV_framebuffer_multisample_coverage(load); - load_GL_NV_geometry_program4(load); - load_GL_NV_gpu_multicast(load); - load_GL_NV_gpu_program4(load); - load_GL_NV_gpu_program5(load); - load_GL_NV_gpu_shader5(load); - load_GL_NV_half_float(load); - load_GL_NV_internalformat_sample_query(load); - load_GL_NV_occlusion_query(load); - load_GL_NV_parameter_buffer_object(load); - load_GL_NV_path_rendering(load); - load_GL_NV_pixel_data_range(load); - load_GL_NV_point_sprite(load); - load_GL_NV_present_video(load); - load_GL_NV_primitive_restart(load); - load_GL_NV_query_resource(load); - load_GL_NV_query_resource_tag(load); - load_GL_NV_register_combiners(load); - load_GL_NV_register_combiners2(load); - load_GL_NV_sample_locations(load); - load_GL_NV_shader_buffer_load(load); - load_GL_NV_texture_barrier(load); - load_GL_NV_texture_multisample(load); - load_GL_NV_transform_feedback(load); - load_GL_NV_transform_feedback2(load); - load_GL_NV_vdpau_interop(load); - load_GL_NV_vertex_array_range(load); - load_GL_NV_vertex_attrib_integer_64bit(load); - load_GL_NV_vertex_buffer_unified_memory(load); - load_GL_NV_vertex_program(load); - load_GL_NV_vertex_program4(load); - load_GL_NV_video_capture(load); - load_GL_NV_viewport_swizzle(load); - load_GL_OES_byte_coordinates(load); - load_GL_OES_fixed_point(load); - load_GL_OES_query_matrix(load); - load_GL_OES_single_precision(load); - load_GL_OVR_multiview(load); - load_GL_PGI_misc_hints(load); - load_GL_SGIS_detail_texture(load); - load_GL_SGIS_fog_function(load); - load_GL_SGIS_multisample(load); - load_GL_SGIS_pixel_texture(load); - load_GL_SGIS_point_parameters(load); - load_GL_SGIS_sharpen_texture(load); - load_GL_SGIS_texture4D(load); - load_GL_SGIS_texture_color_mask(load); - load_GL_SGIS_texture_filter4(load); - load_GL_SGIX_async(load); - load_GL_SGIX_flush_raster(load); - load_GL_SGIX_fragment_lighting(load); - load_GL_SGIX_framezoom(load); - load_GL_SGIX_igloo_interface(load); - load_GL_SGIX_instruments(load); - load_GL_SGIX_list_priority(load); - load_GL_SGIX_pixel_texture(load); - load_GL_SGIX_polynomial_ffd(load); - load_GL_SGIX_reference_plane(load); - load_GL_SGIX_sprite(load); - load_GL_SGIX_tag_sample_buffer(load); - load_GL_SGI_color_table(load); - load_GL_SUNX_constant_data(load); - load_GL_SUN_global_alpha(load); - load_GL_SUN_mesh_array(load); - load_GL_SUN_triangle_list(load); - load_GL_SUN_vertex(load); - return GLVersion.major != 0 || GLVersion.minor != 0; -} - -static void load_GL_ES_VERSION_2_0(GLADloadproc load) { - if(!GLAD_GL_ES_VERSION_2_0) return; - glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC)load("glActiveTexture"); - glad_glAttachShader = (PFNGLATTACHSHADERPROC)load("glAttachShader"); - glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)load("glBindAttribLocation"); - glad_glBindBuffer = (PFNGLBINDBUFFERPROC)load("glBindBuffer"); - glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)load("glBindFramebuffer"); - glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)load("glBindRenderbuffer"); - glad_glBindTexture = (PFNGLBINDTEXTUREPROC)load("glBindTexture"); - glad_glBlendColor = (PFNGLBLENDCOLORPROC)load("glBlendColor"); - glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC)load("glBlendEquation"); - glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)load("glBlendEquationSeparate"); - glad_glBlendFunc = (PFNGLBLENDFUNCPROC)load("glBlendFunc"); - glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)load("glBlendFuncSeparate"); - glad_glBufferData = (PFNGLBUFFERDATAPROC)load("glBufferData"); - glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC)load("glBufferSubData"); - glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)load("glCheckFramebufferStatus"); - glad_glClear = (PFNGLCLEARPROC)load("glClear"); - glad_glClearColor = (PFNGLCLEARCOLORPROC)load("glClearColor"); - glad_glClearDepthf = (PFNGLCLEARDEPTHFPROC)load("glClearDepthf"); - glad_glClearStencil = (PFNGLCLEARSTENCILPROC)load("glClearStencil"); - glad_glColorMask = (PFNGLCOLORMASKPROC)load("glColorMask"); - glad_glCompileShader = (PFNGLCOMPILESHADERPROC)load("glCompileShader"); - glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)load("glCompressedTexImage2D"); - glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)load("glCompressedTexSubImage2D"); - glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)load("glCopyTexImage2D"); - glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)load("glCopyTexSubImage2D"); - glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC)load("glCreateProgram"); - glad_glCreateShader = (PFNGLCREATESHADERPROC)load("glCreateShader"); - glad_glCullFace = (PFNGLCULLFACEPROC)load("glCullFace"); - glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)load("glDeleteBuffers"); - glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)load("glDeleteFramebuffers"); - glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC)load("glDeleteProgram"); - glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)load("glDeleteRenderbuffers"); - glad_glDeleteShader = (PFNGLDELETESHADERPROC)load("glDeleteShader"); - glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC)load("glDeleteTextures"); - glad_glDepthFunc = (PFNGLDEPTHFUNCPROC)load("glDepthFunc"); - glad_glDepthMask = (PFNGLDEPTHMASKPROC)load("glDepthMask"); - glad_glDepthRangef = (PFNGLDEPTHRANGEFPROC)load("glDepthRangef"); - glad_glDetachShader = (PFNGLDETACHSHADERPROC)load("glDetachShader"); - glad_glDisable = (PFNGLDISABLEPROC)load("glDisable"); - glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)load("glDisableVertexAttribArray"); - glad_glDrawArrays = (PFNGLDRAWARRAYSPROC)load("glDrawArrays"); - glad_glDrawElements = (PFNGLDRAWELEMENTSPROC)load("glDrawElements"); - glad_glEnable = (PFNGLENABLEPROC)load("glEnable"); - glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)load("glEnableVertexAttribArray"); - glad_glFinish = (PFNGLFINISHPROC)load("glFinish"); - glad_glFlush = (PFNGLFLUSHPROC)load("glFlush"); - glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)load("glFramebufferRenderbuffer"); - glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)load("glFramebufferTexture2D"); - glad_glFrontFace = (PFNGLFRONTFACEPROC)load("glFrontFace"); - glad_glGenBuffers = (PFNGLGENBUFFERSPROC)load("glGenBuffers"); - glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)load("glGenerateMipmap"); - glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)load("glGenFramebuffers"); - glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)load("glGenRenderbuffers"); - glad_glGenTextures = (PFNGLGENTEXTURESPROC)load("glGenTextures"); - glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)load("glGetActiveAttrib"); - glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)load("glGetActiveUniform"); - glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)load("glGetAttachedShaders"); - glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)load("glGetAttribLocation"); - glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC)load("glGetBooleanv"); - glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)load("glGetBufferParameteriv"); - glad_glGetError = (PFNGLGETERRORPROC)load("glGetError"); - glad_glGetFloatv = (PFNGLGETFLOATVPROC)load("glGetFloatv"); - glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetFramebufferAttachmentParameteriv"); - glad_glGetIntegerv = (PFNGLGETINTEGERVPROC)load("glGetIntegerv"); - glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC)load("glGetProgramiv"); - glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)load("glGetProgramInfoLog"); - glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)load("glGetRenderbufferParameteriv"); - glad_glGetShaderiv = (PFNGLGETSHADERIVPROC)load("glGetShaderiv"); - glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)load("glGetShaderInfoLog"); - glad_glGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC)load("glGetShaderPrecisionFormat"); - glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)load("glGetShaderSource"); - glad_glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); - glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)load("glGetTexParameterfv"); - glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)load("glGetTexParameteriv"); - glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC)load("glGetUniformfv"); - glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC)load("glGetUniformiv"); - glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)load("glGetUniformLocation"); - glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)load("glGetVertexAttribfv"); - glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)load("glGetVertexAttribiv"); - glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)load("glGetVertexAttribPointerv"); - glad_glHint = (PFNGLHINTPROC)load("glHint"); - glad_glIsBuffer = (PFNGLISBUFFERPROC)load("glIsBuffer"); - glad_glIsEnabled = (PFNGLISENABLEDPROC)load("glIsEnabled"); - glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)load("glIsFramebuffer"); - glad_glIsProgram = (PFNGLISPROGRAMPROC)load("glIsProgram"); - glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer"); - glad_glIsShader = (PFNGLISSHADERPROC)load("glIsShader"); - glad_glIsTexture = (PFNGLISTEXTUREPROC)load("glIsTexture"); - glad_glLineWidth = (PFNGLLINEWIDTHPROC)load("glLineWidth"); - glad_glLinkProgram = (PFNGLLINKPROGRAMPROC)load("glLinkProgram"); - glad_glPixelStorei = (PFNGLPIXELSTOREIPROC)load("glPixelStorei"); - glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)load("glPolygonOffset"); - glad_glReadPixels = (PFNGLREADPIXELSPROC)load("glReadPixels"); - glad_glReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC)load("glReleaseShaderCompiler"); - glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)load("glRenderbufferStorage"); - glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)load("glSampleCoverage"); - glad_glScissor = (PFNGLSCISSORPROC)load("glScissor"); - glad_glShaderBinary = (PFNGLSHADERBINARYPROC)load("glShaderBinary"); - glad_glShaderSource = (PFNGLSHADERSOURCEPROC)load("glShaderSource"); - glad_glStencilFunc = (PFNGLSTENCILFUNCPROC)load("glStencilFunc"); - glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)load("glStencilFuncSeparate"); - glad_glStencilMask = (PFNGLSTENCILMASKPROC)load("glStencilMask"); - glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)load("glStencilMaskSeparate"); - glad_glStencilOp = (PFNGLSTENCILOPPROC)load("glStencilOp"); - glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)load("glStencilOpSeparate"); - glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC)load("glTexImage2D"); - glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC)load("glTexParameterf"); - glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)load("glTexParameterfv"); - glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC)load("glTexParameteri"); - glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)load("glTexParameteriv"); - glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)load("glTexSubImage2D"); - glad_glUniform1f = (PFNGLUNIFORM1FPROC)load("glUniform1f"); - glad_glUniform1fv = (PFNGLUNIFORM1FVPROC)load("glUniform1fv"); - glad_glUniform1i = (PFNGLUNIFORM1IPROC)load("glUniform1i"); - glad_glUniform1iv = (PFNGLUNIFORM1IVPROC)load("glUniform1iv"); - glad_glUniform2f = (PFNGLUNIFORM2FPROC)load("glUniform2f"); - glad_glUniform2fv = (PFNGLUNIFORM2FVPROC)load("glUniform2fv"); - glad_glUniform2i = (PFNGLUNIFORM2IPROC)load("glUniform2i"); - glad_glUniform2iv = (PFNGLUNIFORM2IVPROC)load("glUniform2iv"); - glad_glUniform3f = (PFNGLUNIFORM3FPROC)load("glUniform3f"); - glad_glUniform3fv = (PFNGLUNIFORM3FVPROC)load("glUniform3fv"); - glad_glUniform3i = (PFNGLUNIFORM3IPROC)load("glUniform3i"); - glad_glUniform3iv = (PFNGLUNIFORM3IVPROC)load("glUniform3iv"); - glad_glUniform4f = (PFNGLUNIFORM4FPROC)load("glUniform4f"); - glad_glUniform4fv = (PFNGLUNIFORM4FVPROC)load("glUniform4fv"); - glad_glUniform4i = (PFNGLUNIFORM4IPROC)load("glUniform4i"); - glad_glUniform4iv = (PFNGLUNIFORM4IVPROC)load("glUniform4iv"); - glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)load("glUniformMatrix2fv"); - glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)load("glUniformMatrix3fv"); - glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)load("glUniformMatrix4fv"); - glad_glUseProgram = (PFNGLUSEPROGRAMPROC)load("glUseProgram"); - glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)load("glValidateProgram"); - glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)load("glVertexAttrib1f"); - glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)load("glVertexAttrib1fv"); - glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)load("glVertexAttrib2f"); - glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)load("glVertexAttrib2fv"); - glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)load("glVertexAttrib3f"); - glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)load("glVertexAttrib3fv"); - glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)load("glVertexAttrib4f"); - glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)load("glVertexAttrib4fv"); - glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)load("glVertexAttribPointer"); - glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport"); -} -static void load_GL_ES_VERSION_3_0(GLADloadproc load) { - if(!GLAD_GL_ES_VERSION_3_0) return; - glad_glReadBuffer = (PFNGLREADBUFFERPROC)load("glReadBuffer"); - glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)load("glDrawRangeElements"); - glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC)load("glTexImage3D"); - glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)load("glTexSubImage3D"); - glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)load("glCopyTexSubImage3D"); - glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)load("glCompressedTexImage3D"); - glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)load("glCompressedTexSubImage3D"); - glad_glGenQueries = (PFNGLGENQUERIESPROC)load("glGenQueries"); - glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC)load("glDeleteQueries"); - glad_glIsQuery = (PFNGLISQUERYPROC)load("glIsQuery"); - glad_glBeginQuery = (PFNGLBEGINQUERYPROC)load("glBeginQuery"); - glad_glEndQuery = (PFNGLENDQUERYPROC)load("glEndQuery"); - glad_glGetQueryiv = (PFNGLGETQUERYIVPROC)load("glGetQueryiv"); - glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)load("glGetQueryObjectuiv"); - glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)load("glUnmapBuffer"); - glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)load("glGetBufferPointerv"); - glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC)load("glDrawBuffers"); - glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)load("glUniformMatrix2x3fv"); - glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)load("glUniformMatrix3x2fv"); - glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)load("glUniformMatrix2x4fv"); - glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)load("glUniformMatrix4x2fv"); - glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)load("glUniformMatrix3x4fv"); - glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)load("glUniformMatrix4x3fv"); - glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)load("glBlitFramebuffer"); - glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glRenderbufferStorageMultisample"); - glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)load("glFramebufferTextureLayer"); - glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)load("glMapBufferRange"); - glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)load("glFlushMappedBufferRange"); - glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)load("glBindVertexArray"); - glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)load("glDeleteVertexArrays"); - glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)load("glGenVertexArrays"); - glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC)load("glIsVertexArray"); - glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v"); - glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC)load("glBeginTransformFeedback"); - glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC)load("glEndTransformFeedback"); - glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange"); - glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase"); - glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC)load("glTransformFeedbackVaryings"); - glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)load("glGetTransformFeedbackVarying"); - glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC)load("glVertexAttribIPointer"); - glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC)load("glGetVertexAttribIiv"); - glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC)load("glGetVertexAttribIuiv"); - glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC)load("glVertexAttribI4i"); - glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC)load("glVertexAttribI4ui"); - glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC)load("glVertexAttribI4iv"); - glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC)load("glVertexAttribI4uiv"); - glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC)load("glGetUniformuiv"); - glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC)load("glGetFragDataLocation"); - glad_glUniform1ui = (PFNGLUNIFORM1UIPROC)load("glUniform1ui"); - glad_glUniform2ui = (PFNGLUNIFORM2UIPROC)load("glUniform2ui"); - glad_glUniform3ui = (PFNGLUNIFORM3UIPROC)load("glUniform3ui"); - glad_glUniform4ui = (PFNGLUNIFORM4UIPROC)load("glUniform4ui"); - glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC)load("glUniform1uiv"); - glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC)load("glUniform2uiv"); - glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC)load("glUniform3uiv"); - glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC)load("glUniform4uiv"); - glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC)load("glClearBufferiv"); - glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC)load("glClearBufferuiv"); - glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC)load("glClearBufferfv"); - glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC)load("glClearBufferfi"); - glad_glGetStringi = (PFNGLGETSTRINGIPROC)load("glGetStringi"); - glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)load("glCopyBufferSubData"); - glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)load("glGetUniformIndices"); - glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)load("glGetActiveUniformsiv"); - glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)load("glGetUniformBlockIndex"); - glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)load("glGetActiveUniformBlockiv"); - glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)load("glGetActiveUniformBlockName"); - glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)load("glUniformBlockBinding"); - glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)load("glDrawArraysInstanced"); - glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC)load("glDrawElementsInstanced"); - glad_glFenceSync = (PFNGLFENCESYNCPROC)load("glFenceSync"); - glad_glIsSync = (PFNGLISSYNCPROC)load("glIsSync"); - glad_glDeleteSync = (PFNGLDELETESYNCPROC)load("glDeleteSync"); - glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)load("glClientWaitSync"); - glad_glWaitSync = (PFNGLWAITSYNCPROC)load("glWaitSync"); - glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC)load("glGetInteger64v"); - glad_glGetSynciv = (PFNGLGETSYNCIVPROC)load("glGetSynciv"); - glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)load("glGetInteger64i_v"); - glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)load("glGetBufferParameteri64v"); - glad_glGenSamplers = (PFNGLGENSAMPLERSPROC)load("glGenSamplers"); - glad_glDeleteSamplers = (PFNGLDELETESAMPLERSPROC)load("glDeleteSamplers"); - glad_glIsSampler = (PFNGLISSAMPLERPROC)load("glIsSampler"); - glad_glBindSampler = (PFNGLBINDSAMPLERPROC)load("glBindSampler"); - glad_glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC)load("glSamplerParameteri"); - glad_glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC)load("glSamplerParameteriv"); - glad_glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC)load("glSamplerParameterf"); - glad_glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC)load("glSamplerParameterfv"); - glad_glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC)load("glGetSamplerParameteriv"); - glad_glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC)load("glGetSamplerParameterfv"); - glad_glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC)load("glVertexAttribDivisor"); - glad_glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC)load("glBindTransformFeedback"); - glad_glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC)load("glDeleteTransformFeedbacks"); - glad_glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC)load("glGenTransformFeedbacks"); - glad_glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC)load("glIsTransformFeedback"); - glad_glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC)load("glPauseTransformFeedback"); - glad_glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC)load("glResumeTransformFeedback"); - glad_glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC)load("glGetProgramBinary"); - glad_glProgramBinary = (PFNGLPROGRAMBINARYPROC)load("glProgramBinary"); - glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri"); - glad_glInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC)load("glInvalidateFramebuffer"); - glad_glInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC)load("glInvalidateSubFramebuffer"); - glad_glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)load("glTexStorage2D"); - glad_glTexStorage3D = (PFNGLTEXSTORAGE3DPROC)load("glTexStorage3D"); - glad_glGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC)load("glGetInternalformativ"); -} -static void load_GL_ES_VERSION_3_1(GLADloadproc load) { - if(!GLAD_GL_ES_VERSION_3_1) return; - glad_glDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC)load("glDispatchCompute"); - glad_glDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC)load("glDispatchComputeIndirect"); - glad_glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC)load("glDrawArraysIndirect"); - glad_glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC)load("glDrawElementsIndirect"); - glad_glFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC)load("glFramebufferParameteri"); - glad_glGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC)load("glGetFramebufferParameteriv"); - glad_glGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC)load("glGetProgramInterfaceiv"); - glad_glGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC)load("glGetProgramResourceIndex"); - glad_glGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC)load("glGetProgramResourceName"); - glad_glGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC)load("glGetProgramResourceiv"); - glad_glGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC)load("glGetProgramResourceLocation"); - glad_glUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC)load("glUseProgramStages"); - glad_glActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC)load("glActiveShaderProgram"); - glad_glCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC)load("glCreateShaderProgramv"); - glad_glBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC)load("glBindProgramPipeline"); - glad_glDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC)load("glDeleteProgramPipelines"); - glad_glGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC)load("glGenProgramPipelines"); - glad_glIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC)load("glIsProgramPipeline"); - glad_glGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC)load("glGetProgramPipelineiv"); - glad_glProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC)load("glProgramUniform1i"); - glad_glProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC)load("glProgramUniform2i"); - glad_glProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC)load("glProgramUniform3i"); - glad_glProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC)load("glProgramUniform4i"); - glad_glProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC)load("glProgramUniform1ui"); - glad_glProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC)load("glProgramUniform2ui"); - glad_glProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC)load("glProgramUniform3ui"); - glad_glProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC)load("glProgramUniform4ui"); - glad_glProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC)load("glProgramUniform1f"); - glad_glProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC)load("glProgramUniform2f"); - glad_glProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC)load("glProgramUniform3f"); - glad_glProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC)load("glProgramUniform4f"); - glad_glProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC)load("glProgramUniform1iv"); - glad_glProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC)load("glProgramUniform2iv"); - glad_glProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC)load("glProgramUniform3iv"); - glad_glProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC)load("glProgramUniform4iv"); - glad_glProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC)load("glProgramUniform1uiv"); - glad_glProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC)load("glProgramUniform2uiv"); - glad_glProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC)load("glProgramUniform3uiv"); - glad_glProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC)load("glProgramUniform4uiv"); - glad_glProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC)load("glProgramUniform1fv"); - glad_glProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC)load("glProgramUniform2fv"); - glad_glProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC)load("glProgramUniform3fv"); - glad_glProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC)load("glProgramUniform4fv"); - glad_glProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC)load("glProgramUniformMatrix2fv"); - glad_glProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC)load("glProgramUniformMatrix3fv"); - glad_glProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC)load("glProgramUniformMatrix4fv"); - glad_glProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)load("glProgramUniformMatrix2x3fv"); - glad_glProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)load("glProgramUniformMatrix3x2fv"); - glad_glProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)load("glProgramUniformMatrix2x4fv"); - glad_glProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)load("glProgramUniformMatrix4x2fv"); - glad_glProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)load("glProgramUniformMatrix3x4fv"); - glad_glProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)load("glProgramUniformMatrix4x3fv"); - glad_glValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC)load("glValidateProgramPipeline"); - glad_glGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC)load("glGetProgramPipelineInfoLog"); - glad_glBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC)load("glBindImageTexture"); - glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC)load("glGetBooleani_v"); - glad_glMemoryBarrier = (PFNGLMEMORYBARRIERPROC)load("glMemoryBarrier"); - glad_glMemoryBarrierByRegion = (PFNGLMEMORYBARRIERBYREGIONPROC)load("glMemoryBarrierByRegion"); - glad_glTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC)load("glTexStorage2DMultisample"); - glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)load("glGetMultisamplefv"); - glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC)load("glSampleMaski"); - glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)load("glGetTexLevelParameteriv"); - glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)load("glGetTexLevelParameterfv"); - glad_glBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC)load("glBindVertexBuffer"); - glad_glVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC)load("glVertexAttribFormat"); - glad_glVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC)load("glVertexAttribIFormat"); - glad_glVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC)load("glVertexAttribBinding"); - glad_glVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC)load("glVertexBindingDivisor"); -} -static void load_GL_ES_VERSION_3_2(GLADloadproc load) { - if(!GLAD_GL_ES_VERSION_3_2) return; - glad_glBlendBarrier = (PFNGLBLENDBARRIERPROC)load("glBlendBarrier"); - glad_glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)load("glCopyImageSubData"); - glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)load("glDebugMessageControl"); - glad_glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC)load("glDebugMessageInsert"); - glad_glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC)load("glDebugMessageCallback"); - glad_glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC)load("glGetDebugMessageLog"); - glad_glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC)load("glPushDebugGroup"); - glad_glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC)load("glPopDebugGroup"); - glad_glObjectLabel = (PFNGLOBJECTLABELPROC)load("glObjectLabel"); - glad_glGetObjectLabel = (PFNGLGETOBJECTLABELPROC)load("glGetObjectLabel"); - glad_glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC)load("glObjectPtrLabel"); - glad_glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC)load("glGetObjectPtrLabel"); - glad_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv"); - glad_glEnablei = (PFNGLENABLEIPROC)load("glEnablei"); - glad_glDisablei = (PFNGLDISABLEIPROC)load("glDisablei"); - glad_glBlendEquationi = (PFNGLBLENDEQUATIONIPROC)load("glBlendEquationi"); - glad_glBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC)load("glBlendEquationSeparatei"); - glad_glBlendFunci = (PFNGLBLENDFUNCIPROC)load("glBlendFunci"); - glad_glBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC)load("glBlendFuncSeparatei"); - glad_glColorMaski = (PFNGLCOLORMASKIPROC)load("glColorMaski"); - glad_glIsEnabledi = (PFNGLISENABLEDIPROC)load("glIsEnabledi"); - glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)load("glDrawElementsBaseVertex"); - glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)load("glDrawRangeElementsBaseVertex"); - glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)load("glDrawElementsInstancedBaseVertex"); - glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)load("glFramebufferTexture"); - glad_glPrimitiveBoundingBox = (PFNGLPRIMITIVEBOUNDINGBOXPROC)load("glPrimitiveBoundingBox"); - glad_glGetGraphicsResetStatus = (PFNGLGETGRAPHICSRESETSTATUSPROC)load("glGetGraphicsResetStatus"); - glad_glReadnPixels = (PFNGLREADNPIXELSPROC)load("glReadnPixels"); - glad_glGetnUniformfv = (PFNGLGETNUNIFORMFVPROC)load("glGetnUniformfv"); - glad_glGetnUniformiv = (PFNGLGETNUNIFORMIVPROC)load("glGetnUniformiv"); - glad_glGetnUniformuiv = (PFNGLGETNUNIFORMUIVPROC)load("glGetnUniformuiv"); - glad_glMinSampleShading = (PFNGLMINSAMPLESHADINGPROC)load("glMinSampleShading"); - glad_glPatchParameteri = (PFNGLPATCHPARAMETERIPROC)load("glPatchParameteri"); - glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC)load("glTexParameterIiv"); - glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC)load("glTexParameterIuiv"); - glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC)load("glGetTexParameterIiv"); - glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC)load("glGetTexParameterIuiv"); - glad_glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC)load("glSamplerParameterIiv"); - glad_glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC)load("glSamplerParameterIuiv"); - glad_glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC)load("glGetSamplerParameterIiv"); - glad_glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC)load("glGetSamplerParameterIuiv"); - glad_glTexBuffer = (PFNGLTEXBUFFERPROC)load("glTexBuffer"); - glad_glTexBufferRange = (PFNGLTEXBUFFERRANGEPROC)load("glTexBufferRange"); - glad_glTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC)load("glTexStorage3DMultisample"); -} -static void load_GL_ANGLE_framebuffer_blit(GLADloadproc load) { - if(!GLAD_GL_ANGLE_framebuffer_blit) return; - glad_glBlitFramebufferANGLE = (PFNGLBLITFRAMEBUFFERANGLEPROC)load("glBlitFramebufferANGLE"); -} -static void load_GL_ANGLE_framebuffer_multisample(GLADloadproc load) { - if(!GLAD_GL_ANGLE_framebuffer_multisample) return; - glad_glRenderbufferStorageMultisampleANGLE = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC)load("glRenderbufferStorageMultisampleANGLE"); -} -static void load_GL_ANGLE_instanced_arrays(GLADloadproc load) { - if(!GLAD_GL_ANGLE_instanced_arrays) return; - glad_glDrawArraysInstancedANGLE = (PFNGLDRAWARRAYSINSTANCEDANGLEPROC)load("glDrawArraysInstancedANGLE"); - glad_glDrawElementsInstancedANGLE = (PFNGLDRAWELEMENTSINSTANCEDANGLEPROC)load("glDrawElementsInstancedANGLE"); - glad_glVertexAttribDivisorANGLE = (PFNGLVERTEXATTRIBDIVISORANGLEPROC)load("glVertexAttribDivisorANGLE"); -} -static void load_GL_ANGLE_translated_shader_source(GLADloadproc load) { - if(!GLAD_GL_ANGLE_translated_shader_source) return; - glad_glGetTranslatedShaderSourceANGLE = (PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC)load("glGetTranslatedShaderSourceANGLE"); -} -static void load_GL_APPLE_copy_texture_levels(GLADloadproc load) { - if(!GLAD_GL_APPLE_copy_texture_levels) return; - glad_glCopyTextureLevelsAPPLE = (PFNGLCOPYTEXTURELEVELSAPPLEPROC)load("glCopyTextureLevelsAPPLE"); -} -static void load_GL_APPLE_framebuffer_multisample(GLADloadproc load) { - if(!GLAD_GL_APPLE_framebuffer_multisample) return; - glad_glRenderbufferStorageMultisampleAPPLE = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC)load("glRenderbufferStorageMultisampleAPPLE"); - glad_glResolveMultisampleFramebufferAPPLE = (PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC)load("glResolveMultisampleFramebufferAPPLE"); -} -static void load_GL_APPLE_sync(GLADloadproc load) { - if(!GLAD_GL_APPLE_sync) return; - glad_glFenceSyncAPPLE = (PFNGLFENCESYNCAPPLEPROC)load("glFenceSyncAPPLE"); - glad_glIsSyncAPPLE = (PFNGLISSYNCAPPLEPROC)load("glIsSyncAPPLE"); - glad_glDeleteSyncAPPLE = (PFNGLDELETESYNCAPPLEPROC)load("glDeleteSyncAPPLE"); - glad_glClientWaitSyncAPPLE = (PFNGLCLIENTWAITSYNCAPPLEPROC)load("glClientWaitSyncAPPLE"); - glad_glWaitSyncAPPLE = (PFNGLWAITSYNCAPPLEPROC)load("glWaitSyncAPPLE"); - glad_glGetInteger64vAPPLE = (PFNGLGETINTEGER64VAPPLEPROC)load("glGetInteger64vAPPLE"); - glad_glGetSyncivAPPLE = (PFNGLGETSYNCIVAPPLEPROC)load("glGetSyncivAPPLE"); -} -static void load_GL_EXT_base_instance(GLADloadproc load) { - if(!GLAD_GL_EXT_base_instance) return; - glad_glDrawArraysInstancedBaseInstanceEXT = (PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEEXTPROC)load("glDrawArraysInstancedBaseInstanceEXT"); - glad_glDrawElementsInstancedBaseInstanceEXT = (PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEEXTPROC)load("glDrawElementsInstancedBaseInstanceEXT"); - glad_glDrawElementsInstancedBaseVertexBaseInstanceEXT = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEEXTPROC)load("glDrawElementsInstancedBaseVertexBaseInstanceEXT"); -} -static void load_GL_EXT_blend_func_extended(GLADloadproc load) { - if(!GLAD_GL_EXT_blend_func_extended) return; - glad_glBindFragDataLocationIndexedEXT = (PFNGLBINDFRAGDATALOCATIONINDEXEDEXTPROC)load("glBindFragDataLocationIndexedEXT"); - glad_glBindFragDataLocationEXT = (PFNGLBINDFRAGDATALOCATIONEXTPROC)load("glBindFragDataLocationEXT"); - glad_glGetProgramResourceLocationIndexEXT = (PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC)load("glGetProgramResourceLocationIndexEXT"); - glad_glGetFragDataIndexEXT = (PFNGLGETFRAGDATAINDEXEXTPROC)load("glGetFragDataIndexEXT"); -} -static void load_GL_EXT_buffer_storage(GLADloadproc load) { - if(!GLAD_GL_EXT_buffer_storage) return; - glad_glBufferStorageEXT = (PFNGLBUFFERSTORAGEEXTPROC)load("glBufferStorageEXT"); -} -static void load_GL_EXT_clear_texture(GLADloadproc load) { - if(!GLAD_GL_EXT_clear_texture) return; - glad_glClearTexImageEXT = (PFNGLCLEARTEXIMAGEEXTPROC)load("glClearTexImageEXT"); - glad_glClearTexSubImageEXT = (PFNGLCLEARTEXSUBIMAGEEXTPROC)load("glClearTexSubImageEXT"); -} -static void load_GL_EXT_clip_control(GLADloadproc load) { - if(!GLAD_GL_EXT_clip_control) return; - glad_glClipControlEXT = (PFNGLCLIPCONTROLEXTPROC)load("glClipControlEXT"); -} -static void load_GL_EXT_copy_image(GLADloadproc load) { - if(!GLAD_GL_EXT_copy_image) return; - glad_glCopyImageSubDataEXT = (PFNGLCOPYIMAGESUBDATAEXTPROC)load("glCopyImageSubDataEXT"); -} -static void load_GL_EXT_discard_framebuffer(GLADloadproc load) { - if(!GLAD_GL_EXT_discard_framebuffer) return; - glad_glDiscardFramebufferEXT = (PFNGLDISCARDFRAMEBUFFEREXTPROC)load("glDiscardFramebufferEXT"); -} -static void load_GL_EXT_disjoint_timer_query(GLADloadproc load) { - if(!GLAD_GL_EXT_disjoint_timer_query) return; - glad_glGenQueriesEXT = (PFNGLGENQUERIESEXTPROC)load("glGenQueriesEXT"); - glad_glDeleteQueriesEXT = (PFNGLDELETEQUERIESEXTPROC)load("glDeleteQueriesEXT"); - glad_glIsQueryEXT = (PFNGLISQUERYEXTPROC)load("glIsQueryEXT"); - glad_glBeginQueryEXT = (PFNGLBEGINQUERYEXTPROC)load("glBeginQueryEXT"); - glad_glEndQueryEXT = (PFNGLENDQUERYEXTPROC)load("glEndQueryEXT"); - glad_glQueryCounterEXT = (PFNGLQUERYCOUNTEREXTPROC)load("glQueryCounterEXT"); - glad_glGetQueryivEXT = (PFNGLGETQUERYIVEXTPROC)load("glGetQueryivEXT"); - glad_glGetQueryObjectivEXT = (PFNGLGETQUERYOBJECTIVEXTPROC)load("glGetQueryObjectivEXT"); - glad_glGetQueryObjectuivEXT = (PFNGLGETQUERYOBJECTUIVEXTPROC)load("glGetQueryObjectuivEXT"); - glad_glGetQueryObjecti64vEXT = (PFNGLGETQUERYOBJECTI64VEXTPROC)load("glGetQueryObjecti64vEXT"); - glad_glGetQueryObjectui64vEXT = (PFNGLGETQUERYOBJECTUI64VEXTPROC)load("glGetQueryObjectui64vEXT"); -} -static void load_GL_EXT_draw_buffers(GLADloadproc load) { - if(!GLAD_GL_EXT_draw_buffers) return; - glad_glDrawBuffersEXT = (PFNGLDRAWBUFFERSEXTPROC)load("glDrawBuffersEXT"); -} -static void load_GL_EXT_draw_buffers_indexed(GLADloadproc load) { - if(!GLAD_GL_EXT_draw_buffers_indexed) return; - glad_glEnableiEXT = (PFNGLENABLEIEXTPROC)load("glEnableiEXT"); - glad_glDisableiEXT = (PFNGLDISABLEIEXTPROC)load("glDisableiEXT"); - glad_glBlendEquationiEXT = (PFNGLBLENDEQUATIONIEXTPROC)load("glBlendEquationiEXT"); - glad_glBlendEquationSeparateiEXT = (PFNGLBLENDEQUATIONSEPARATEIEXTPROC)load("glBlendEquationSeparateiEXT"); - glad_glBlendFunciEXT = (PFNGLBLENDFUNCIEXTPROC)load("glBlendFunciEXT"); - glad_glBlendFuncSeparateiEXT = (PFNGLBLENDFUNCSEPARATEIEXTPROC)load("glBlendFuncSeparateiEXT"); - glad_glColorMaskiEXT = (PFNGLCOLORMASKIEXTPROC)load("glColorMaskiEXT"); - glad_glIsEnablediEXT = (PFNGLISENABLEDIEXTPROC)load("glIsEnablediEXT"); -} -static void load_GL_EXT_draw_elements_base_vertex(GLADloadproc load) { - if(!GLAD_GL_EXT_draw_elements_base_vertex) return; - glad_glDrawElementsBaseVertexEXT = (PFNGLDRAWELEMENTSBASEVERTEXEXTPROC)load("glDrawElementsBaseVertexEXT"); - glad_glDrawRangeElementsBaseVertexEXT = (PFNGLDRAWRANGEELEMENTSBASEVERTEXEXTPROC)load("glDrawRangeElementsBaseVertexEXT"); - glad_glDrawElementsInstancedBaseVertexEXT = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXEXTPROC)load("glDrawElementsInstancedBaseVertexEXT"); - glad_glMultiDrawElementsBaseVertexEXT = (PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC)load("glMultiDrawElementsBaseVertexEXT"); -} -static void load_GL_EXT_draw_transform_feedback(GLADloadproc load) { - if(!GLAD_GL_EXT_draw_transform_feedback) return; - glad_glDrawTransformFeedbackEXT = (PFNGLDRAWTRANSFORMFEEDBACKEXTPROC)load("glDrawTransformFeedbackEXT"); - glad_glDrawTransformFeedbackInstancedEXT = (PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDEXTPROC)load("glDrawTransformFeedbackInstancedEXT"); -} -static void load_GL_EXT_geometry_shader(GLADloadproc load) { - if(!GLAD_GL_EXT_geometry_shader) return; - glad_glFramebufferTextureEXT = (PFNGLFRAMEBUFFERTEXTUREEXTPROC)load("glFramebufferTextureEXT"); -} -static void load_GL_EXT_instanced_arrays(GLADloadproc load) { - if(!GLAD_GL_EXT_instanced_arrays) return; - glad_glDrawArraysInstancedEXT = (PFNGLDRAWARRAYSINSTANCEDEXTPROC)load("glDrawArraysInstancedEXT"); - glad_glDrawElementsInstancedEXT = (PFNGLDRAWELEMENTSINSTANCEDEXTPROC)load("glDrawElementsInstancedEXT"); - glad_glVertexAttribDivisorEXT = (PFNGLVERTEXATTRIBDIVISOREXTPROC)load("glVertexAttribDivisorEXT"); -} -static void load_GL_EXT_map_buffer_range(GLADloadproc load) { - if(!GLAD_GL_EXT_map_buffer_range) return; - glad_glMapBufferRangeEXT = (PFNGLMAPBUFFERRANGEEXTPROC)load("glMapBufferRangeEXT"); - glad_glFlushMappedBufferRangeEXT = (PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC)load("glFlushMappedBufferRangeEXT"); -} -static void load_GL_EXT_multi_draw_indirect(GLADloadproc load) { - if(!GLAD_GL_EXT_multi_draw_indirect) return; - glad_glMultiDrawArraysIndirectEXT = (PFNGLMULTIDRAWARRAYSINDIRECTEXTPROC)load("glMultiDrawArraysIndirectEXT"); - glad_glMultiDrawElementsIndirectEXT = (PFNGLMULTIDRAWELEMENTSINDIRECTEXTPROC)load("glMultiDrawElementsIndirectEXT"); -} -static void load_GL_EXT_multisampled_render_to_texture(GLADloadproc load) { - if(!GLAD_GL_EXT_multisampled_render_to_texture) return; - glad_glRenderbufferStorageMultisampleEXT = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC)load("glRenderbufferStorageMultisampleEXT"); - glad_glFramebufferTexture2DMultisampleEXT = (PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC)load("glFramebufferTexture2DMultisampleEXT"); -} -static void load_GL_EXT_multiview_draw_buffers(GLADloadproc load) { - if(!GLAD_GL_EXT_multiview_draw_buffers) return; - glad_glReadBufferIndexedEXT = (PFNGLREADBUFFERINDEXEDEXTPROC)load("glReadBufferIndexedEXT"); - glad_glDrawBuffersIndexedEXT = (PFNGLDRAWBUFFERSINDEXEDEXTPROC)load("glDrawBuffersIndexedEXT"); - glad_glGetIntegeri_vEXT = (PFNGLGETINTEGERI_VEXTPROC)load("glGetIntegeri_vEXT"); -} -static void load_GL_EXT_occlusion_query_boolean(GLADloadproc load) { - if(!GLAD_GL_EXT_occlusion_query_boolean) return; - glad_glGenQueriesEXT = (PFNGLGENQUERIESEXTPROC)load("glGenQueriesEXT"); - glad_glDeleteQueriesEXT = (PFNGLDELETEQUERIESEXTPROC)load("glDeleteQueriesEXT"); - glad_glIsQueryEXT = (PFNGLISQUERYEXTPROC)load("glIsQueryEXT"); - glad_glBeginQueryEXT = (PFNGLBEGINQUERYEXTPROC)load("glBeginQueryEXT"); - glad_glEndQueryEXT = (PFNGLENDQUERYEXTPROC)load("glEndQueryEXT"); - glad_glGetQueryivEXT = (PFNGLGETQUERYIVEXTPROC)load("glGetQueryivEXT"); - glad_glGetQueryObjectuivEXT = (PFNGLGETQUERYOBJECTUIVEXTPROC)load("glGetQueryObjectuivEXT"); -} -static void load_GL_EXT_primitive_bounding_box(GLADloadproc load) { - if(!GLAD_GL_EXT_primitive_bounding_box) return; - glad_glPrimitiveBoundingBoxEXT = (PFNGLPRIMITIVEBOUNDINGBOXEXTPROC)load("glPrimitiveBoundingBoxEXT"); -} -static void load_GL_EXT_robustness(GLADloadproc load) { - if(!GLAD_GL_EXT_robustness) return; - glad_glGetGraphicsResetStatusEXT = (PFNGLGETGRAPHICSRESETSTATUSEXTPROC)load("glGetGraphicsResetStatusEXT"); - glad_glReadnPixelsEXT = (PFNGLREADNPIXELSEXTPROC)load("glReadnPixelsEXT"); - glad_glGetnUniformfvEXT = (PFNGLGETNUNIFORMFVEXTPROC)load("glGetnUniformfvEXT"); - glad_glGetnUniformivEXT = (PFNGLGETNUNIFORMIVEXTPROC)load("glGetnUniformivEXT"); -} -static void load_GL_EXT_shader_pixel_local_storage2(GLADloadproc load) { - if(!GLAD_GL_EXT_shader_pixel_local_storage2) return; - glad_glFramebufferPixelLocalStorageSizeEXT = (PFNGLFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC)load("glFramebufferPixelLocalStorageSizeEXT"); - glad_glGetFramebufferPixelLocalStorageSizeEXT = (PFNGLGETFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC)load("glGetFramebufferPixelLocalStorageSizeEXT"); - glad_glClearPixelLocalStorageuiEXT = (PFNGLCLEARPIXELLOCALSTORAGEUIEXTPROC)load("glClearPixelLocalStorageuiEXT"); -} -static void load_GL_EXT_sparse_texture(GLADloadproc load) { - if(!GLAD_GL_EXT_sparse_texture) return; - glad_glTexPageCommitmentEXT = (PFNGLTEXPAGECOMMITMENTEXTPROC)load("glTexPageCommitmentEXT"); -} -static void load_GL_EXT_tessellation_shader(GLADloadproc load) { - if(!GLAD_GL_EXT_tessellation_shader) return; - glad_glPatchParameteriEXT = (PFNGLPATCHPARAMETERIEXTPROC)load("glPatchParameteriEXT"); -} -static void load_GL_EXT_texture_border_clamp(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_border_clamp) return; - glad_glTexParameterIivEXT = (PFNGLTEXPARAMETERIIVEXTPROC)load("glTexParameterIivEXT"); - glad_glTexParameterIuivEXT = (PFNGLTEXPARAMETERIUIVEXTPROC)load("glTexParameterIuivEXT"); - glad_glGetTexParameterIivEXT = (PFNGLGETTEXPARAMETERIIVEXTPROC)load("glGetTexParameterIivEXT"); - glad_glGetTexParameterIuivEXT = (PFNGLGETTEXPARAMETERIUIVEXTPROC)load("glGetTexParameterIuivEXT"); - glad_glSamplerParameterIivEXT = (PFNGLSAMPLERPARAMETERIIVEXTPROC)load("glSamplerParameterIivEXT"); - glad_glSamplerParameterIuivEXT = (PFNGLSAMPLERPARAMETERIUIVEXTPROC)load("glSamplerParameterIuivEXT"); - glad_glGetSamplerParameterIivEXT = (PFNGLGETSAMPLERPARAMETERIIVEXTPROC)load("glGetSamplerParameterIivEXT"); - glad_glGetSamplerParameterIuivEXT = (PFNGLGETSAMPLERPARAMETERIUIVEXTPROC)load("glGetSamplerParameterIuivEXT"); -} -static void load_GL_EXT_texture_buffer(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_buffer) return; - glad_glTexBufferEXT = (PFNGLTEXBUFFEREXTPROC)load("glTexBufferEXT"); - glad_glTexBufferRangeEXT = (PFNGLTEXBUFFERRANGEEXTPROC)load("glTexBufferRangeEXT"); -} -static void load_GL_EXT_texture_storage(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_storage) return; - glad_glTexStorage1DEXT = (PFNGLTEXSTORAGE1DEXTPROC)load("glTexStorage1DEXT"); - glad_glTexStorage2DEXT = (PFNGLTEXSTORAGE2DEXTPROC)load("glTexStorage2DEXT"); - glad_glTexStorage3DEXT = (PFNGLTEXSTORAGE3DEXTPROC)load("glTexStorage3DEXT"); - glad_glTextureStorage1DEXT = (PFNGLTEXTURESTORAGE1DEXTPROC)load("glTextureStorage1DEXT"); - glad_glTextureStorage2DEXT = (PFNGLTEXTURESTORAGE2DEXTPROC)load("glTextureStorage2DEXT"); - glad_glTextureStorage3DEXT = (PFNGLTEXTURESTORAGE3DEXTPROC)load("glTextureStorage3DEXT"); -} -static void load_GL_EXT_texture_view(GLADloadproc load) { - if(!GLAD_GL_EXT_texture_view) return; - glad_glTextureViewEXT = (PFNGLTEXTUREVIEWEXTPROC)load("glTextureViewEXT"); -} -static void load_GL_IMG_bindless_texture(GLADloadproc load) { - if(!GLAD_GL_IMG_bindless_texture) return; - glad_glGetTextureHandleIMG = (PFNGLGETTEXTUREHANDLEIMGPROC)load("glGetTextureHandleIMG"); - glad_glGetTextureSamplerHandleIMG = (PFNGLGETTEXTURESAMPLERHANDLEIMGPROC)load("glGetTextureSamplerHandleIMG"); - glad_glUniformHandleui64IMG = (PFNGLUNIFORMHANDLEUI64IMGPROC)load("glUniformHandleui64IMG"); - glad_glUniformHandleui64vIMG = (PFNGLUNIFORMHANDLEUI64VIMGPROC)load("glUniformHandleui64vIMG"); - glad_glProgramUniformHandleui64IMG = (PFNGLPROGRAMUNIFORMHANDLEUI64IMGPROC)load("glProgramUniformHandleui64IMG"); - glad_glProgramUniformHandleui64vIMG = (PFNGLPROGRAMUNIFORMHANDLEUI64VIMGPROC)load("glProgramUniformHandleui64vIMG"); -} -static void load_GL_IMG_framebuffer_downsample(GLADloadproc load) { - if(!GLAD_GL_IMG_framebuffer_downsample) return; - glad_glFramebufferTexture2DDownsampleIMG = (PFNGLFRAMEBUFFERTEXTURE2DDOWNSAMPLEIMGPROC)load("glFramebufferTexture2DDownsampleIMG"); - glad_glFramebufferTextureLayerDownsampleIMG = (PFNGLFRAMEBUFFERTEXTURELAYERDOWNSAMPLEIMGPROC)load("glFramebufferTextureLayerDownsampleIMG"); -} -static void load_GL_IMG_multisampled_render_to_texture(GLADloadproc load) { - if(!GLAD_GL_IMG_multisampled_render_to_texture) return; - glad_glRenderbufferStorageMultisampleIMG = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC)load("glRenderbufferStorageMultisampleIMG"); - glad_glFramebufferTexture2DMultisampleIMG = (PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC)load("glFramebufferTexture2DMultisampleIMG"); -} -static void load_GL_NV_copy_buffer(GLADloadproc load) { - if(!GLAD_GL_NV_copy_buffer) return; - glad_glCopyBufferSubDataNV = (PFNGLCOPYBUFFERSUBDATANVPROC)load("glCopyBufferSubDataNV"); -} -static void load_GL_NV_coverage_sample(GLADloadproc load) { - if(!GLAD_GL_NV_coverage_sample) return; - glad_glCoverageMaskNV = (PFNGLCOVERAGEMASKNVPROC)load("glCoverageMaskNV"); - glad_glCoverageOperationNV = (PFNGLCOVERAGEOPERATIONNVPROC)load("glCoverageOperationNV"); -} -static void load_GL_NV_draw_buffers(GLADloadproc load) { - if(!GLAD_GL_NV_draw_buffers) return; - glad_glDrawBuffersNV = (PFNGLDRAWBUFFERSNVPROC)load("glDrawBuffersNV"); -} -static void load_GL_NV_draw_instanced(GLADloadproc load) { - if(!GLAD_GL_NV_draw_instanced) return; - glad_glDrawArraysInstancedNV = (PFNGLDRAWARRAYSINSTANCEDNVPROC)load("glDrawArraysInstancedNV"); - glad_glDrawElementsInstancedNV = (PFNGLDRAWELEMENTSINSTANCEDNVPROC)load("glDrawElementsInstancedNV"); -} -static void load_GL_NV_framebuffer_blit(GLADloadproc load) { - if(!GLAD_GL_NV_framebuffer_blit) return; - glad_glBlitFramebufferNV = (PFNGLBLITFRAMEBUFFERNVPROC)load("glBlitFramebufferNV"); -} -static void load_GL_NV_framebuffer_multisample(GLADloadproc load) { - if(!GLAD_GL_NV_framebuffer_multisample) return; - glad_glRenderbufferStorageMultisampleNV = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC)load("glRenderbufferStorageMultisampleNV"); -} -static void load_GL_NV_instanced_arrays(GLADloadproc load) { - if(!GLAD_GL_NV_instanced_arrays) return; - glad_glVertexAttribDivisorNV = (PFNGLVERTEXATTRIBDIVISORNVPROC)load("glVertexAttribDivisorNV"); -} -static void load_GL_NV_non_square_matrices(GLADloadproc load) { - if(!GLAD_GL_NV_non_square_matrices) return; - glad_glUniformMatrix2x3fvNV = (PFNGLUNIFORMMATRIX2X3FVNVPROC)load("glUniformMatrix2x3fvNV"); - glad_glUniformMatrix3x2fvNV = (PFNGLUNIFORMMATRIX3X2FVNVPROC)load("glUniformMatrix3x2fvNV"); - glad_glUniformMatrix2x4fvNV = (PFNGLUNIFORMMATRIX2X4FVNVPROC)load("glUniformMatrix2x4fvNV"); - glad_glUniformMatrix4x2fvNV = (PFNGLUNIFORMMATRIX4X2FVNVPROC)load("glUniformMatrix4x2fvNV"); - glad_glUniformMatrix3x4fvNV = (PFNGLUNIFORMMATRIX3X4FVNVPROC)load("glUniformMatrix3x4fvNV"); - glad_glUniformMatrix4x3fvNV = (PFNGLUNIFORMMATRIX4X3FVNVPROC)load("glUniformMatrix4x3fvNV"); -} -static void load_GL_NV_polygon_mode(GLADloadproc load) { - if(!GLAD_GL_NV_polygon_mode) return; - glad_glPolygonModeNV = (PFNGLPOLYGONMODENVPROC)load("glPolygonModeNV"); -} -static void load_GL_NV_read_buffer(GLADloadproc load) { - if(!GLAD_GL_NV_read_buffer) return; - glad_glReadBufferNV = (PFNGLREADBUFFERNVPROC)load("glReadBufferNV"); -} -static void load_GL_NV_viewport_array(GLADloadproc load) { - if(!GLAD_GL_NV_viewport_array) return; - glad_glViewportArrayvNV = (PFNGLVIEWPORTARRAYVNVPROC)load("glViewportArrayvNV"); - glad_glViewportIndexedfNV = (PFNGLVIEWPORTINDEXEDFNVPROC)load("glViewportIndexedfNV"); - glad_glViewportIndexedfvNV = (PFNGLVIEWPORTINDEXEDFVNVPROC)load("glViewportIndexedfvNV"); - glad_glScissorArrayvNV = (PFNGLSCISSORARRAYVNVPROC)load("glScissorArrayvNV"); - glad_glScissorIndexedNV = (PFNGLSCISSORINDEXEDNVPROC)load("glScissorIndexedNV"); - glad_glScissorIndexedvNV = (PFNGLSCISSORINDEXEDVNVPROC)load("glScissorIndexedvNV"); - glad_glDepthRangeArrayfvNV = (PFNGLDEPTHRANGEARRAYFVNVPROC)load("glDepthRangeArrayfvNV"); - glad_glDepthRangeIndexedfNV = (PFNGLDEPTHRANGEINDEXEDFNVPROC)load("glDepthRangeIndexedfNV"); - glad_glGetFloati_vNV = (PFNGLGETFLOATI_VNVPROC)load("glGetFloati_vNV"); - glad_glEnableiNV = (PFNGLENABLEINVPROC)load("glEnableiNV"); - glad_glDisableiNV = (PFNGLDISABLEINVPROC)load("glDisableiNV"); - glad_glIsEnablediNV = (PFNGLISENABLEDINVPROC)load("glIsEnablediNV"); -} -static void load_GL_OES_EGL_image(GLADloadproc load) { - if(!GLAD_GL_OES_EGL_image) return; - glad_glEGLImageTargetTexture2DOES = (PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)load("glEGLImageTargetTexture2DOES"); - glad_glEGLImageTargetRenderbufferStorageOES = (PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC)load("glEGLImageTargetRenderbufferStorageOES"); -} -static void load_GL_OES_copy_image(GLADloadproc load) { - if(!GLAD_GL_OES_copy_image) return; - glad_glCopyImageSubDataOES = (PFNGLCOPYIMAGESUBDATAOESPROC)load("glCopyImageSubDataOES"); -} -static void load_GL_OES_draw_buffers_indexed(GLADloadproc load) { - if(!GLAD_GL_OES_draw_buffers_indexed) return; - glad_glEnableiOES = (PFNGLENABLEIOESPROC)load("glEnableiOES"); - glad_glDisableiOES = (PFNGLDISABLEIOESPROC)load("glDisableiOES"); - glad_glBlendEquationiOES = (PFNGLBLENDEQUATIONIOESPROC)load("glBlendEquationiOES"); - glad_glBlendEquationSeparateiOES = (PFNGLBLENDEQUATIONSEPARATEIOESPROC)load("glBlendEquationSeparateiOES"); - glad_glBlendFunciOES = (PFNGLBLENDFUNCIOESPROC)load("glBlendFunciOES"); - glad_glBlendFuncSeparateiOES = (PFNGLBLENDFUNCSEPARATEIOESPROC)load("glBlendFuncSeparateiOES"); - glad_glColorMaskiOES = (PFNGLCOLORMASKIOESPROC)load("glColorMaskiOES"); - glad_glIsEnablediOES = (PFNGLISENABLEDIOESPROC)load("glIsEnablediOES"); -} -static void load_GL_OES_draw_elements_base_vertex(GLADloadproc load) { - if(!GLAD_GL_OES_draw_elements_base_vertex) return; - glad_glDrawElementsBaseVertexOES = (PFNGLDRAWELEMENTSBASEVERTEXOESPROC)load("glDrawElementsBaseVertexOES"); - glad_glDrawRangeElementsBaseVertexOES = (PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC)load("glDrawRangeElementsBaseVertexOES"); - glad_glDrawElementsInstancedBaseVertexOES = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXOESPROC)load("glDrawElementsInstancedBaseVertexOES"); - glad_glMultiDrawElementsBaseVertexEXT = (PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC)load("glMultiDrawElementsBaseVertexEXT"); -} -static void load_GL_OES_geometry_shader(GLADloadproc load) { - if(!GLAD_GL_OES_geometry_shader) return; - glad_glFramebufferTextureOES = (PFNGLFRAMEBUFFERTEXTUREOESPROC)load("glFramebufferTextureOES"); -} -static void load_GL_OES_get_program_binary(GLADloadproc load) { - if(!GLAD_GL_OES_get_program_binary) return; - glad_glGetProgramBinaryOES = (PFNGLGETPROGRAMBINARYOESPROC)load("glGetProgramBinaryOES"); - glad_glProgramBinaryOES = (PFNGLPROGRAMBINARYOESPROC)load("glProgramBinaryOES"); -} -static void load_GL_OES_mapbuffer(GLADloadproc load) { - if(!GLAD_GL_OES_mapbuffer) return; - glad_glMapBufferOES = (PFNGLMAPBUFFEROESPROC)load("glMapBufferOES"); - glad_glUnmapBufferOES = (PFNGLUNMAPBUFFEROESPROC)load("glUnmapBufferOES"); - glad_glGetBufferPointervOES = (PFNGLGETBUFFERPOINTERVOESPROC)load("glGetBufferPointervOES"); -} -static void load_GL_OES_primitive_bounding_box(GLADloadproc load) { - if(!GLAD_GL_OES_primitive_bounding_box) return; - glad_glPrimitiveBoundingBoxOES = (PFNGLPRIMITIVEBOUNDINGBOXOESPROC)load("glPrimitiveBoundingBoxOES"); -} -static void load_GL_OES_sample_shading(GLADloadproc load) { - if(!GLAD_GL_OES_sample_shading) return; - glad_glMinSampleShadingOES = (PFNGLMINSAMPLESHADINGOESPROC)load("glMinSampleShadingOES"); -} -static void load_GL_OES_tessellation_shader(GLADloadproc load) { - if(!GLAD_GL_OES_tessellation_shader) return; - glad_glPatchParameteriOES = (PFNGLPATCHPARAMETERIOESPROC)load("glPatchParameteriOES"); -} -static void load_GL_OES_texture_3D(GLADloadproc load) { - if(!GLAD_GL_OES_texture_3D) return; - glad_glTexImage3DOES = (PFNGLTEXIMAGE3DOESPROC)load("glTexImage3DOES"); - glad_glTexSubImage3DOES = (PFNGLTEXSUBIMAGE3DOESPROC)load("glTexSubImage3DOES"); - glad_glCopyTexSubImage3DOES = (PFNGLCOPYTEXSUBIMAGE3DOESPROC)load("glCopyTexSubImage3DOES"); - glad_glCompressedTexImage3DOES = (PFNGLCOMPRESSEDTEXIMAGE3DOESPROC)load("glCompressedTexImage3DOES"); - glad_glCompressedTexSubImage3DOES = (PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC)load("glCompressedTexSubImage3DOES"); - glad_glFramebufferTexture3DOES = (PFNGLFRAMEBUFFERTEXTURE3DOESPROC)load("glFramebufferTexture3DOES"); -} -static void load_GL_OES_texture_border_clamp(GLADloadproc load) { - if(!GLAD_GL_OES_texture_border_clamp) return; - glad_glTexParameterIivOES = (PFNGLTEXPARAMETERIIVOESPROC)load("glTexParameterIivOES"); - glad_glTexParameterIuivOES = (PFNGLTEXPARAMETERIUIVOESPROC)load("glTexParameterIuivOES"); - glad_glGetTexParameterIivOES = (PFNGLGETTEXPARAMETERIIVOESPROC)load("glGetTexParameterIivOES"); - glad_glGetTexParameterIuivOES = (PFNGLGETTEXPARAMETERIUIVOESPROC)load("glGetTexParameterIuivOES"); - glad_glSamplerParameterIivOES = (PFNGLSAMPLERPARAMETERIIVOESPROC)load("glSamplerParameterIivOES"); - glad_glSamplerParameterIuivOES = (PFNGLSAMPLERPARAMETERIUIVOESPROC)load("glSamplerParameterIuivOES"); - glad_glGetSamplerParameterIivOES = (PFNGLGETSAMPLERPARAMETERIIVOESPROC)load("glGetSamplerParameterIivOES"); - glad_glGetSamplerParameterIuivOES = (PFNGLGETSAMPLERPARAMETERIUIVOESPROC)load("glGetSamplerParameterIuivOES"); -} -static void load_GL_OES_texture_buffer(GLADloadproc load) { - if(!GLAD_GL_OES_texture_buffer) return; - glad_glTexBufferOES = (PFNGLTEXBUFFEROESPROC)load("glTexBufferOES"); - glad_glTexBufferRangeOES = (PFNGLTEXBUFFERRANGEOESPROC)load("glTexBufferRangeOES"); -} -static void load_GL_OES_texture_storage_multisample_2d_array(GLADloadproc load) { - if(!GLAD_GL_OES_texture_storage_multisample_2d_array) return; - glad_glTexStorage3DMultisampleOES = (PFNGLTEXSTORAGE3DMULTISAMPLEOESPROC)load("glTexStorage3DMultisampleOES"); -} -static void load_GL_OES_texture_view(GLADloadproc load) { - if(!GLAD_GL_OES_texture_view) return; - glad_glTextureViewOES = (PFNGLTEXTUREVIEWOESPROC)load("glTextureViewOES"); -} -static void load_GL_OES_vertex_array_object(GLADloadproc load) { - if(!GLAD_GL_OES_vertex_array_object) return; - glad_glBindVertexArrayOES = (PFNGLBINDVERTEXARRAYOESPROC)load("glBindVertexArrayOES"); - glad_glDeleteVertexArraysOES = (PFNGLDELETEVERTEXARRAYSOESPROC)load("glDeleteVertexArraysOES"); - glad_glGenVertexArraysOES = (PFNGLGENVERTEXARRAYSOESPROC)load("glGenVertexArraysOES"); - glad_glIsVertexArrayOES = (PFNGLISVERTEXARRAYOESPROC)load("glIsVertexArrayOES"); -} -static void load_GL_OES_viewport_array(GLADloadproc load) { - if(!GLAD_GL_OES_viewport_array) return; - glad_glViewportArrayvOES = (PFNGLVIEWPORTARRAYVOESPROC)load("glViewportArrayvOES"); - glad_glViewportIndexedfOES = (PFNGLVIEWPORTINDEXEDFOESPROC)load("glViewportIndexedfOES"); - glad_glViewportIndexedfvOES = (PFNGLVIEWPORTINDEXEDFVOESPROC)load("glViewportIndexedfvOES"); - glad_glScissorArrayvOES = (PFNGLSCISSORARRAYVOESPROC)load("glScissorArrayvOES"); - glad_glScissorIndexedOES = (PFNGLSCISSORINDEXEDOESPROC)load("glScissorIndexedOES"); - glad_glScissorIndexedvOES = (PFNGLSCISSORINDEXEDVOESPROC)load("glScissorIndexedvOES"); - glad_glDepthRangeArrayfvOES = (PFNGLDEPTHRANGEARRAYFVOESPROC)load("glDepthRangeArrayfvOES"); - glad_glDepthRangeIndexedfOES = (PFNGLDEPTHRANGEINDEXEDFOESPROC)load("glDepthRangeIndexedfOES"); - glad_glGetFloati_vOES = (PFNGLGETFLOATI_VOESPROC)load("glGetFloati_vOES"); - glad_glEnableiOES = (PFNGLENABLEIOESPROC)load("glEnableiOES"); - glad_glDisableiOES = (PFNGLDISABLEIOESPROC)load("glDisableiOES"); - glad_glIsEnablediOES = (PFNGLISENABLEDIOESPROC)load("glIsEnablediOES"); -} -static void load_GL_OVR_multiview_multisampled_render_to_texture(GLADloadproc load) { - if(!GLAD_GL_OVR_multiview_multisampled_render_to_texture) return; - glad_glFramebufferTextureMultisampleMultiviewOVR = (PFNGLFRAMEBUFFERTEXTUREMULTISAMPLEMULTIVIEWOVRPROC)load("glFramebufferTextureMultisampleMultiviewOVR"); -} -static void load_GL_QCOM_alpha_test(GLADloadproc load) { - if(!GLAD_GL_QCOM_alpha_test) return; - glad_glAlphaFuncQCOM = (PFNGLALPHAFUNCQCOMPROC)load("glAlphaFuncQCOM"); -} -static void load_GL_QCOM_driver_control(GLADloadproc load) { - if(!GLAD_GL_QCOM_driver_control) return; - glad_glGetDriverControlsQCOM = (PFNGLGETDRIVERCONTROLSQCOMPROC)load("glGetDriverControlsQCOM"); - glad_glGetDriverControlStringQCOM = (PFNGLGETDRIVERCONTROLSTRINGQCOMPROC)load("glGetDriverControlStringQCOM"); - glad_glEnableDriverControlQCOM = (PFNGLENABLEDRIVERCONTROLQCOMPROC)load("glEnableDriverControlQCOM"); - glad_glDisableDriverControlQCOM = (PFNGLDISABLEDRIVERCONTROLQCOMPROC)load("glDisableDriverControlQCOM"); -} -static void load_GL_QCOM_extended_get(GLADloadproc load) { - if(!GLAD_GL_QCOM_extended_get) return; - glad_glExtGetTexturesQCOM = (PFNGLEXTGETTEXTURESQCOMPROC)load("glExtGetTexturesQCOM"); - glad_glExtGetBuffersQCOM = (PFNGLEXTGETBUFFERSQCOMPROC)load("glExtGetBuffersQCOM"); - glad_glExtGetRenderbuffersQCOM = (PFNGLEXTGETRENDERBUFFERSQCOMPROC)load("glExtGetRenderbuffersQCOM"); - glad_glExtGetFramebuffersQCOM = (PFNGLEXTGETFRAMEBUFFERSQCOMPROC)load("glExtGetFramebuffersQCOM"); - glad_glExtGetTexLevelParameterivQCOM = (PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC)load("glExtGetTexLevelParameterivQCOM"); - glad_glExtTexObjectStateOverrideiQCOM = (PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC)load("glExtTexObjectStateOverrideiQCOM"); - glad_glExtGetTexSubImageQCOM = (PFNGLEXTGETTEXSUBIMAGEQCOMPROC)load("glExtGetTexSubImageQCOM"); - glad_glExtGetBufferPointervQCOM = (PFNGLEXTGETBUFFERPOINTERVQCOMPROC)load("glExtGetBufferPointervQCOM"); -} -static void load_GL_QCOM_extended_get2(GLADloadproc load) { - if(!GLAD_GL_QCOM_extended_get2) return; - glad_glExtGetShadersQCOM = (PFNGLEXTGETSHADERSQCOMPROC)load("glExtGetShadersQCOM"); - glad_glExtGetProgramsQCOM = (PFNGLEXTGETPROGRAMSQCOMPROC)load("glExtGetProgramsQCOM"); - glad_glExtIsProgramBinaryQCOM = (PFNGLEXTISPROGRAMBINARYQCOMPROC)load("glExtIsProgramBinaryQCOM"); - glad_glExtGetProgramBinarySourceQCOM = (PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC)load("glExtGetProgramBinarySourceQCOM"); -} -static void load_GL_QCOM_framebuffer_foveated(GLADloadproc load) { - if(!GLAD_GL_QCOM_framebuffer_foveated) return; - glad_glFramebufferFoveationConfigQCOM = (PFNGLFRAMEBUFFERFOVEATIONCONFIGQCOMPROC)load("glFramebufferFoveationConfigQCOM"); - glad_glFramebufferFoveationParametersQCOM = (PFNGLFRAMEBUFFERFOVEATIONPARAMETERSQCOMPROC)load("glFramebufferFoveationParametersQCOM"); -} -static void load_GL_QCOM_shader_framebuffer_fetch_noncoherent(GLADloadproc load) { - if(!GLAD_GL_QCOM_shader_framebuffer_fetch_noncoherent) return; - glad_glFramebufferFetchBarrierQCOM = (PFNGLFRAMEBUFFERFETCHBARRIERQCOMPROC)load("glFramebufferFetchBarrierQCOM"); -} -static void load_GL_QCOM_texture_foveated(GLADloadproc load) { - if(!GLAD_GL_QCOM_texture_foveated) return; - glad_glTextureFoveationParametersQCOM = (PFNGLTEXTUREFOVEATIONPARAMETERSQCOMPROC)load("glTextureFoveationParametersQCOM"); -} -static void load_GL_QCOM_tiled_rendering(GLADloadproc load) { - if(!GLAD_GL_QCOM_tiled_rendering) return; - glad_glStartTilingQCOM = (PFNGLSTARTTILINGQCOMPROC)load("glStartTilingQCOM"); - glad_glEndTilingQCOM = (PFNGLENDTILINGQCOMPROC)load("glEndTilingQCOM"); -} -static int find_extensionsGLES2(void) { - if (!get_exts()) return 0; - GLAD_GL_AMD_compressed_3DC_texture = has_ext("GL_AMD_compressed_3DC_texture"); - GLAD_GL_AMD_compressed_ATC_texture = has_ext("GL_AMD_compressed_ATC_texture"); - GLAD_GL_AMD_performance_monitor = has_ext("GL_AMD_performance_monitor"); - GLAD_GL_AMD_program_binary_Z400 = has_ext("GL_AMD_program_binary_Z400"); - GLAD_GL_ANDROID_extension_pack_es31a = has_ext("GL_ANDROID_extension_pack_es31a"); - GLAD_GL_ANGLE_depth_texture = has_ext("GL_ANGLE_depth_texture"); - GLAD_GL_ANGLE_framebuffer_blit = has_ext("GL_ANGLE_framebuffer_blit"); - GLAD_GL_ANGLE_framebuffer_multisample = has_ext("GL_ANGLE_framebuffer_multisample"); - GLAD_GL_ANGLE_instanced_arrays = has_ext("GL_ANGLE_instanced_arrays"); - GLAD_GL_ANGLE_pack_reverse_row_order = has_ext("GL_ANGLE_pack_reverse_row_order"); - GLAD_GL_ANGLE_program_binary = has_ext("GL_ANGLE_program_binary"); - GLAD_GL_ANGLE_texture_compression_dxt3 = has_ext("GL_ANGLE_texture_compression_dxt3"); - GLAD_GL_ANGLE_texture_compression_dxt5 = has_ext("GL_ANGLE_texture_compression_dxt5"); - GLAD_GL_ANGLE_texture_usage = has_ext("GL_ANGLE_texture_usage"); - GLAD_GL_ANGLE_translated_shader_source = has_ext("GL_ANGLE_translated_shader_source"); - GLAD_GL_APPLE_clip_distance = has_ext("GL_APPLE_clip_distance"); - GLAD_GL_APPLE_color_buffer_packed_float = has_ext("GL_APPLE_color_buffer_packed_float"); - GLAD_GL_APPLE_copy_texture_levels = has_ext("GL_APPLE_copy_texture_levels"); - GLAD_GL_APPLE_framebuffer_multisample = has_ext("GL_APPLE_framebuffer_multisample"); - GLAD_GL_APPLE_rgb_422 = has_ext("GL_APPLE_rgb_422"); - GLAD_GL_APPLE_sync = has_ext("GL_APPLE_sync"); - GLAD_GL_APPLE_texture_format_BGRA8888 = has_ext("GL_APPLE_texture_format_BGRA8888"); - GLAD_GL_APPLE_texture_max_level = has_ext("GL_APPLE_texture_max_level"); - GLAD_GL_APPLE_texture_packed_float = has_ext("GL_APPLE_texture_packed_float"); - GLAD_GL_ARM_mali_program_binary = has_ext("GL_ARM_mali_program_binary"); - GLAD_GL_ARM_mali_shader_binary = has_ext("GL_ARM_mali_shader_binary"); - GLAD_GL_ARM_rgba8 = has_ext("GL_ARM_rgba8"); - GLAD_GL_ARM_shader_framebuffer_fetch = has_ext("GL_ARM_shader_framebuffer_fetch"); - GLAD_GL_ARM_shader_framebuffer_fetch_depth_stencil = has_ext("GL_ARM_shader_framebuffer_fetch_depth_stencil"); - GLAD_GL_DMP_program_binary = has_ext("GL_DMP_program_binary"); - GLAD_GL_DMP_shader_binary = has_ext("GL_DMP_shader_binary"); - GLAD_GL_EXT_EGL_image_array = has_ext("GL_EXT_EGL_image_array"); - GLAD_GL_EXT_EGL_image_storage = has_ext("GL_EXT_EGL_image_storage"); - GLAD_GL_EXT_YUV_target = has_ext("GL_EXT_YUV_target"); - GLAD_GL_EXT_base_instance = has_ext("GL_EXT_base_instance"); - GLAD_GL_EXT_blend_func_extended = has_ext("GL_EXT_blend_func_extended"); - GLAD_GL_EXT_blend_minmax = has_ext("GL_EXT_blend_minmax"); - GLAD_GL_EXT_buffer_storage = has_ext("GL_EXT_buffer_storage"); - GLAD_GL_EXT_clear_texture = has_ext("GL_EXT_clear_texture"); - GLAD_GL_EXT_clip_control = has_ext("GL_EXT_clip_control"); - GLAD_GL_EXT_clip_cull_distance = has_ext("GL_EXT_clip_cull_distance"); - GLAD_GL_EXT_color_buffer_float = has_ext("GL_EXT_color_buffer_float"); - GLAD_GL_EXT_color_buffer_half_float = has_ext("GL_EXT_color_buffer_half_float"); - GLAD_GL_EXT_conservative_depth = has_ext("GL_EXT_conservative_depth"); - GLAD_GL_EXT_copy_image = has_ext("GL_EXT_copy_image"); - GLAD_GL_EXT_debug_label = has_ext("GL_EXT_debug_label"); - GLAD_GL_EXT_debug_marker = has_ext("GL_EXT_debug_marker"); - GLAD_GL_EXT_discard_framebuffer = has_ext("GL_EXT_discard_framebuffer"); - GLAD_GL_EXT_disjoint_timer_query = has_ext("GL_EXT_disjoint_timer_query"); - GLAD_GL_EXT_draw_buffers = has_ext("GL_EXT_draw_buffers"); - GLAD_GL_EXT_draw_buffers_indexed = has_ext("GL_EXT_draw_buffers_indexed"); - GLAD_GL_EXT_draw_elements_base_vertex = has_ext("GL_EXT_draw_elements_base_vertex"); - GLAD_GL_EXT_draw_instanced = has_ext("GL_EXT_draw_instanced"); - GLAD_GL_EXT_draw_transform_feedback = has_ext("GL_EXT_draw_transform_feedback"); - GLAD_GL_EXT_external_buffer = has_ext("GL_EXT_external_buffer"); - GLAD_GL_EXT_float_blend = has_ext("GL_EXT_float_blend"); - GLAD_GL_EXT_geometry_point_size = has_ext("GL_EXT_geometry_point_size"); - GLAD_GL_EXT_geometry_shader = has_ext("GL_EXT_geometry_shader"); - GLAD_GL_EXT_gpu_shader5 = has_ext("GL_EXT_gpu_shader5"); - GLAD_GL_EXT_instanced_arrays = has_ext("GL_EXT_instanced_arrays"); - GLAD_GL_EXT_map_buffer_range = has_ext("GL_EXT_map_buffer_range"); - GLAD_GL_EXT_memory_object = has_ext("GL_EXT_memory_object"); - GLAD_GL_EXT_memory_object_fd = has_ext("GL_EXT_memory_object_fd"); - GLAD_GL_EXT_memory_object_win32 = has_ext("GL_EXT_memory_object_win32"); - GLAD_GL_EXT_multi_draw_arrays = has_ext("GL_EXT_multi_draw_arrays"); - GLAD_GL_EXT_multi_draw_indirect = has_ext("GL_EXT_multi_draw_indirect"); - GLAD_GL_EXT_multisampled_compatibility = has_ext("GL_EXT_multisampled_compatibility"); - GLAD_GL_EXT_multisampled_render_to_texture = has_ext("GL_EXT_multisampled_render_to_texture"); - GLAD_GL_EXT_multiview_draw_buffers = has_ext("GL_EXT_multiview_draw_buffers"); - GLAD_GL_EXT_occlusion_query_boolean = has_ext("GL_EXT_occlusion_query_boolean"); - GLAD_GL_EXT_polygon_offset_clamp = has_ext("GL_EXT_polygon_offset_clamp"); - GLAD_GL_EXT_post_depth_coverage = has_ext("GL_EXT_post_depth_coverage"); - GLAD_GL_EXT_primitive_bounding_box = has_ext("GL_EXT_primitive_bounding_box"); - GLAD_GL_EXT_protected_textures = has_ext("GL_EXT_protected_textures"); - GLAD_GL_EXT_pvrtc_sRGB = has_ext("GL_EXT_pvrtc_sRGB"); - GLAD_GL_EXT_raster_multisample = has_ext("GL_EXT_raster_multisample"); - GLAD_GL_EXT_read_format_bgra = has_ext("GL_EXT_read_format_bgra"); - GLAD_GL_EXT_render_snorm = has_ext("GL_EXT_render_snorm"); - GLAD_GL_EXT_robustness = has_ext("GL_EXT_robustness"); - GLAD_GL_EXT_sRGB = has_ext("GL_EXT_sRGB"); - GLAD_GL_EXT_sRGB_write_control = has_ext("GL_EXT_sRGB_write_control"); - GLAD_GL_EXT_semaphore = has_ext("GL_EXT_semaphore"); - GLAD_GL_EXT_semaphore_fd = has_ext("GL_EXT_semaphore_fd"); - GLAD_GL_EXT_semaphore_win32 = has_ext("GL_EXT_semaphore_win32"); - GLAD_GL_EXT_separate_shader_objects = has_ext("GL_EXT_separate_shader_objects"); - GLAD_GL_EXT_shader_framebuffer_fetch = has_ext("GL_EXT_shader_framebuffer_fetch"); - GLAD_GL_EXT_shader_framebuffer_fetch_non_coherent = has_ext("GL_EXT_shader_framebuffer_fetch_non_coherent"); - GLAD_GL_EXT_shader_group_vote = has_ext("GL_EXT_shader_group_vote"); - GLAD_GL_EXT_shader_implicit_conversions = has_ext("GL_EXT_shader_implicit_conversions"); - GLAD_GL_EXT_shader_integer_mix = has_ext("GL_EXT_shader_integer_mix"); - GLAD_GL_EXT_shader_io_blocks = has_ext("GL_EXT_shader_io_blocks"); - GLAD_GL_EXT_shader_non_constant_global_initializers = has_ext("GL_EXT_shader_non_constant_global_initializers"); - GLAD_GL_EXT_shader_pixel_local_storage = has_ext("GL_EXT_shader_pixel_local_storage"); - GLAD_GL_EXT_shader_pixel_local_storage2 = has_ext("GL_EXT_shader_pixel_local_storage2"); - GLAD_GL_EXT_shader_texture_lod = has_ext("GL_EXT_shader_texture_lod"); - GLAD_GL_EXT_shadow_samplers = has_ext("GL_EXT_shadow_samplers"); - GLAD_GL_EXT_sparse_texture = has_ext("GL_EXT_sparse_texture"); - GLAD_GL_EXT_sparse_texture2 = has_ext("GL_EXT_sparse_texture2"); - GLAD_GL_EXT_tessellation_point_size = has_ext("GL_EXT_tessellation_point_size"); - GLAD_GL_EXT_tessellation_shader = has_ext("GL_EXT_tessellation_shader"); - GLAD_GL_EXT_texture_border_clamp = has_ext("GL_EXT_texture_border_clamp"); - GLAD_GL_EXT_texture_buffer = has_ext("GL_EXT_texture_buffer"); - GLAD_GL_EXT_texture_compression_astc_decode_mode = has_ext("GL_EXT_texture_compression_astc_decode_mode"); - GLAD_GL_EXT_texture_compression_bptc = has_ext("GL_EXT_texture_compression_bptc"); - GLAD_GL_EXT_texture_compression_dxt1 = has_ext("GL_EXT_texture_compression_dxt1"); - GLAD_GL_EXT_texture_compression_rgtc = has_ext("GL_EXT_texture_compression_rgtc"); - GLAD_GL_EXT_texture_compression_s3tc = has_ext("GL_EXT_texture_compression_s3tc"); - GLAD_GL_EXT_texture_compression_s3tc_srgb = has_ext("GL_EXT_texture_compression_s3tc_srgb"); - GLAD_GL_EXT_texture_cube_map_array = has_ext("GL_EXT_texture_cube_map_array"); - GLAD_GL_EXT_texture_filter_anisotropic = has_ext("GL_EXT_texture_filter_anisotropic"); - GLAD_GL_EXT_texture_filter_minmax = has_ext("GL_EXT_texture_filter_minmax"); - GLAD_GL_EXT_texture_format_BGRA8888 = has_ext("GL_EXT_texture_format_BGRA8888"); - GLAD_GL_EXT_texture_format_sRGB_override = has_ext("GL_EXT_texture_format_sRGB_override"); - GLAD_GL_EXT_texture_mirror_clamp_to_edge = has_ext("GL_EXT_texture_mirror_clamp_to_edge"); - GLAD_GL_EXT_texture_norm16 = has_ext("GL_EXT_texture_norm16"); - GLAD_GL_EXT_texture_rg = has_ext("GL_EXT_texture_rg"); - GLAD_GL_EXT_texture_sRGB_R8 = has_ext("GL_EXT_texture_sRGB_R8"); - GLAD_GL_EXT_texture_sRGB_RG8 = has_ext("GL_EXT_texture_sRGB_RG8"); - GLAD_GL_EXT_texture_sRGB_decode = has_ext("GL_EXT_texture_sRGB_decode"); - GLAD_GL_EXT_texture_storage = has_ext("GL_EXT_texture_storage"); - GLAD_GL_EXT_texture_type_2_10_10_10_REV = has_ext("GL_EXT_texture_type_2_10_10_10_REV"); - GLAD_GL_EXT_texture_view = has_ext("GL_EXT_texture_view"); - GLAD_GL_EXT_unpack_subimage = has_ext("GL_EXT_unpack_subimage"); - GLAD_GL_EXT_win32_keyed_mutex = has_ext("GL_EXT_win32_keyed_mutex"); - GLAD_GL_EXT_window_rectangles = has_ext("GL_EXT_window_rectangles"); - GLAD_GL_FJ_shader_binary_GCCSO = has_ext("GL_FJ_shader_binary_GCCSO"); - GLAD_GL_IMG_bindless_texture = has_ext("GL_IMG_bindless_texture"); - GLAD_GL_IMG_framebuffer_downsample = has_ext("GL_IMG_framebuffer_downsample"); - GLAD_GL_IMG_multisampled_render_to_texture = has_ext("GL_IMG_multisampled_render_to_texture"); - GLAD_GL_IMG_program_binary = has_ext("GL_IMG_program_binary"); - GLAD_GL_IMG_read_format = has_ext("GL_IMG_read_format"); - GLAD_GL_IMG_shader_binary = has_ext("GL_IMG_shader_binary"); - GLAD_GL_IMG_texture_compression_pvrtc = has_ext("GL_IMG_texture_compression_pvrtc"); - GLAD_GL_IMG_texture_compression_pvrtc2 = has_ext("GL_IMG_texture_compression_pvrtc2"); - GLAD_GL_IMG_texture_filter_cubic = has_ext("GL_IMG_texture_filter_cubic"); - GLAD_GL_INTEL_blackhole_render = has_ext("GL_INTEL_blackhole_render"); - GLAD_GL_INTEL_conservative_rasterization = has_ext("GL_INTEL_conservative_rasterization"); - GLAD_GL_INTEL_framebuffer_CMAA = has_ext("GL_INTEL_framebuffer_CMAA"); - GLAD_GL_INTEL_performance_query = has_ext("GL_INTEL_performance_query"); - GLAD_GL_KHR_blend_equation_advanced = has_ext("GL_KHR_blend_equation_advanced"); - GLAD_GL_KHR_blend_equation_advanced_coherent = has_ext("GL_KHR_blend_equation_advanced_coherent"); - GLAD_GL_KHR_context_flush_control = has_ext("GL_KHR_context_flush_control"); - GLAD_GL_KHR_debug = has_ext("GL_KHR_debug"); - GLAD_GL_KHR_no_error = has_ext("GL_KHR_no_error"); - GLAD_GL_KHR_parallel_shader_compile = has_ext("GL_KHR_parallel_shader_compile"); - GLAD_GL_KHR_robust_buffer_access_behavior = has_ext("GL_KHR_robust_buffer_access_behavior"); - GLAD_GL_KHR_robustness = has_ext("GL_KHR_robustness"); - GLAD_GL_KHR_texture_compression_astc_hdr = has_ext("GL_KHR_texture_compression_astc_hdr"); - GLAD_GL_KHR_texture_compression_astc_ldr = has_ext("GL_KHR_texture_compression_astc_ldr"); - GLAD_GL_KHR_texture_compression_astc_sliced_3d = has_ext("GL_KHR_texture_compression_astc_sliced_3d"); - GLAD_GL_MESA_program_binary_formats = has_ext("GL_MESA_program_binary_formats"); - GLAD_GL_MESA_shader_integer_functions = has_ext("GL_MESA_shader_integer_functions"); - GLAD_GL_NVX_blend_equation_advanced_multi_draw_buffers = has_ext("GL_NVX_blend_equation_advanced_multi_draw_buffers"); - GLAD_GL_NV_bindless_texture = has_ext("GL_NV_bindless_texture"); - GLAD_GL_NV_blend_equation_advanced = has_ext("GL_NV_blend_equation_advanced"); - GLAD_GL_NV_blend_equation_advanced_coherent = has_ext("GL_NV_blend_equation_advanced_coherent"); - GLAD_GL_NV_blend_minmax_factor = has_ext("GL_NV_blend_minmax_factor"); - GLAD_GL_NV_clip_space_w_scaling = has_ext("GL_NV_clip_space_w_scaling"); - GLAD_GL_NV_conditional_render = has_ext("GL_NV_conditional_render"); - GLAD_GL_NV_conservative_raster = has_ext("GL_NV_conservative_raster"); - GLAD_GL_NV_conservative_raster_pre_snap = has_ext("GL_NV_conservative_raster_pre_snap"); - GLAD_GL_NV_conservative_raster_pre_snap_triangles = has_ext("GL_NV_conservative_raster_pre_snap_triangles"); - GLAD_GL_NV_copy_buffer = has_ext("GL_NV_copy_buffer"); - GLAD_GL_NV_coverage_sample = has_ext("GL_NV_coverage_sample"); - GLAD_GL_NV_depth_nonlinear = has_ext("GL_NV_depth_nonlinear"); - GLAD_GL_NV_draw_buffers = has_ext("GL_NV_draw_buffers"); - GLAD_GL_NV_draw_instanced = has_ext("GL_NV_draw_instanced"); - GLAD_GL_NV_draw_vulkan_image = has_ext("GL_NV_draw_vulkan_image"); - GLAD_GL_NV_explicit_attrib_location = has_ext("GL_NV_explicit_attrib_location"); - GLAD_GL_NV_fbo_color_attachments = has_ext("GL_NV_fbo_color_attachments"); - GLAD_GL_NV_fence = has_ext("GL_NV_fence"); - GLAD_GL_NV_fill_rectangle = has_ext("GL_NV_fill_rectangle"); - GLAD_GL_NV_fragment_coverage_to_color = has_ext("GL_NV_fragment_coverage_to_color"); - GLAD_GL_NV_fragment_shader_interlock = has_ext("GL_NV_fragment_shader_interlock"); - GLAD_GL_NV_framebuffer_blit = has_ext("GL_NV_framebuffer_blit"); - GLAD_GL_NV_framebuffer_mixed_samples = has_ext("GL_NV_framebuffer_mixed_samples"); - GLAD_GL_NV_framebuffer_multisample = has_ext("GL_NV_framebuffer_multisample"); - GLAD_GL_NV_generate_mipmap_sRGB = has_ext("GL_NV_generate_mipmap_sRGB"); - GLAD_GL_NV_geometry_shader_passthrough = has_ext("GL_NV_geometry_shader_passthrough"); - GLAD_GL_NV_gpu_shader5 = has_ext("GL_NV_gpu_shader5"); - GLAD_GL_NV_image_formats = has_ext("GL_NV_image_formats"); - GLAD_GL_NV_instanced_arrays = has_ext("GL_NV_instanced_arrays"); - GLAD_GL_NV_internalformat_sample_query = has_ext("GL_NV_internalformat_sample_query"); - GLAD_GL_NV_non_square_matrices = has_ext("GL_NV_non_square_matrices"); - GLAD_GL_NV_path_rendering = has_ext("GL_NV_path_rendering"); - GLAD_GL_NV_path_rendering_shared_edge = has_ext("GL_NV_path_rendering_shared_edge"); - GLAD_GL_NV_pixel_buffer_object = has_ext("GL_NV_pixel_buffer_object"); - GLAD_GL_NV_polygon_mode = has_ext("GL_NV_polygon_mode"); - GLAD_GL_NV_read_buffer = has_ext("GL_NV_read_buffer"); - GLAD_GL_NV_read_buffer_front = has_ext("GL_NV_read_buffer_front"); - GLAD_GL_NV_read_depth = has_ext("GL_NV_read_depth"); - GLAD_GL_NV_read_depth_stencil = has_ext("GL_NV_read_depth_stencil"); - GLAD_GL_NV_read_stencil = has_ext("GL_NV_read_stencil"); - GLAD_GL_NV_sRGB_formats = has_ext("GL_NV_sRGB_formats"); - GLAD_GL_NV_sample_locations = has_ext("GL_NV_sample_locations"); - GLAD_GL_NV_sample_mask_override_coverage = has_ext("GL_NV_sample_mask_override_coverage"); - GLAD_GL_NV_shader_atomic_fp16_vector = has_ext("GL_NV_shader_atomic_fp16_vector"); - GLAD_GL_NV_shader_noperspective_interpolation = has_ext("GL_NV_shader_noperspective_interpolation"); - GLAD_GL_NV_shadow_samplers_array = has_ext("GL_NV_shadow_samplers_array"); - GLAD_GL_NV_shadow_samplers_cube = has_ext("GL_NV_shadow_samplers_cube"); - GLAD_GL_NV_stereo_view_rendering = has_ext("GL_NV_stereo_view_rendering"); - GLAD_GL_NV_texture_border_clamp = has_ext("GL_NV_texture_border_clamp"); - GLAD_GL_NV_texture_compression_s3tc_update = has_ext("GL_NV_texture_compression_s3tc_update"); - GLAD_GL_NV_texture_npot_2D_mipmap = has_ext("GL_NV_texture_npot_2D_mipmap"); - GLAD_GL_NV_viewport_array = has_ext("GL_NV_viewport_array"); - GLAD_GL_NV_viewport_array2 = has_ext("GL_NV_viewport_array2"); - GLAD_GL_NV_viewport_swizzle = has_ext("GL_NV_viewport_swizzle"); - GLAD_GL_OES_EGL_image = has_ext("GL_OES_EGL_image"); - GLAD_GL_OES_EGL_image_external = has_ext("GL_OES_EGL_image_external"); - GLAD_GL_OES_EGL_image_external_essl3 = has_ext("GL_OES_EGL_image_external_essl3"); - GLAD_GL_OES_compressed_ETC1_RGB8_sub_texture = has_ext("GL_OES_compressed_ETC1_RGB8_sub_texture"); - GLAD_GL_OES_compressed_ETC1_RGB8_texture = has_ext("GL_OES_compressed_ETC1_RGB8_texture"); - GLAD_GL_OES_compressed_paletted_texture = has_ext("GL_OES_compressed_paletted_texture"); - GLAD_GL_OES_copy_image = has_ext("GL_OES_copy_image"); - GLAD_GL_OES_depth24 = has_ext("GL_OES_depth24"); - GLAD_GL_OES_depth32 = has_ext("GL_OES_depth32"); - GLAD_GL_OES_depth_texture = has_ext("GL_OES_depth_texture"); - GLAD_GL_OES_draw_buffers_indexed = has_ext("GL_OES_draw_buffers_indexed"); - GLAD_GL_OES_draw_elements_base_vertex = has_ext("GL_OES_draw_elements_base_vertex"); - GLAD_GL_OES_element_index_uint = has_ext("GL_OES_element_index_uint"); - GLAD_GL_OES_fbo_render_mipmap = has_ext("GL_OES_fbo_render_mipmap"); - GLAD_GL_OES_fragment_precision_high = has_ext("GL_OES_fragment_precision_high"); - GLAD_GL_OES_geometry_point_size = has_ext("GL_OES_geometry_point_size"); - GLAD_GL_OES_geometry_shader = has_ext("GL_OES_geometry_shader"); - GLAD_GL_OES_get_program_binary = has_ext("GL_OES_get_program_binary"); - GLAD_GL_OES_gpu_shader5 = has_ext("GL_OES_gpu_shader5"); - GLAD_GL_OES_mapbuffer = has_ext("GL_OES_mapbuffer"); - GLAD_GL_OES_packed_depth_stencil = has_ext("GL_OES_packed_depth_stencil"); - GLAD_GL_OES_primitive_bounding_box = has_ext("GL_OES_primitive_bounding_box"); - GLAD_GL_OES_required_internalformat = has_ext("GL_OES_required_internalformat"); - GLAD_GL_OES_rgb8_rgba8 = has_ext("GL_OES_rgb8_rgba8"); - GLAD_GL_OES_sample_shading = has_ext("GL_OES_sample_shading"); - GLAD_GL_OES_sample_variables = has_ext("GL_OES_sample_variables"); - GLAD_GL_OES_shader_image_atomic = has_ext("GL_OES_shader_image_atomic"); - GLAD_GL_OES_shader_io_blocks = has_ext("GL_OES_shader_io_blocks"); - GLAD_GL_OES_shader_multisample_interpolation = has_ext("GL_OES_shader_multisample_interpolation"); - GLAD_GL_OES_standard_derivatives = has_ext("GL_OES_standard_derivatives"); - GLAD_GL_OES_stencil1 = has_ext("GL_OES_stencil1"); - GLAD_GL_OES_stencil4 = has_ext("GL_OES_stencil4"); - GLAD_GL_OES_surfaceless_context = has_ext("GL_OES_surfaceless_context"); - GLAD_GL_OES_tessellation_point_size = has_ext("GL_OES_tessellation_point_size"); - GLAD_GL_OES_tessellation_shader = has_ext("GL_OES_tessellation_shader"); - GLAD_GL_OES_texture_3D = has_ext("GL_OES_texture_3D"); - GLAD_GL_OES_texture_border_clamp = has_ext("GL_OES_texture_border_clamp"); - GLAD_GL_OES_texture_buffer = has_ext("GL_OES_texture_buffer"); - GLAD_GL_OES_texture_compression_astc = has_ext("GL_OES_texture_compression_astc"); - GLAD_GL_OES_texture_cube_map_array = has_ext("GL_OES_texture_cube_map_array"); - GLAD_GL_OES_texture_float = has_ext("GL_OES_texture_float"); - GLAD_GL_OES_texture_float_linear = has_ext("GL_OES_texture_float_linear"); - GLAD_GL_OES_texture_half_float = has_ext("GL_OES_texture_half_float"); - GLAD_GL_OES_texture_half_float_linear = has_ext("GL_OES_texture_half_float_linear"); - GLAD_GL_OES_texture_npot = has_ext("GL_OES_texture_npot"); - GLAD_GL_OES_texture_stencil8 = has_ext("GL_OES_texture_stencil8"); - GLAD_GL_OES_texture_storage_multisample_2d_array = has_ext("GL_OES_texture_storage_multisample_2d_array"); - GLAD_GL_OES_texture_view = has_ext("GL_OES_texture_view"); - GLAD_GL_OES_vertex_array_object = has_ext("GL_OES_vertex_array_object"); - GLAD_GL_OES_vertex_half_float = has_ext("GL_OES_vertex_half_float"); - GLAD_GL_OES_vertex_type_10_10_10_2 = has_ext("GL_OES_vertex_type_10_10_10_2"); - GLAD_GL_OES_viewport_array = has_ext("GL_OES_viewport_array"); - GLAD_GL_OVR_multiview = has_ext("GL_OVR_multiview"); - GLAD_GL_OVR_multiview2 = has_ext("GL_OVR_multiview2"); - GLAD_GL_OVR_multiview_multisampled_render_to_texture = has_ext("GL_OVR_multiview_multisampled_render_to_texture"); - GLAD_GL_QCOM_alpha_test = has_ext("GL_QCOM_alpha_test"); - GLAD_GL_QCOM_binning_control = has_ext("GL_QCOM_binning_control"); - GLAD_GL_QCOM_driver_control = has_ext("GL_QCOM_driver_control"); - GLAD_GL_QCOM_extended_get = has_ext("GL_QCOM_extended_get"); - GLAD_GL_QCOM_extended_get2 = has_ext("GL_QCOM_extended_get2"); - GLAD_GL_QCOM_framebuffer_foveated = has_ext("GL_QCOM_framebuffer_foveated"); - GLAD_GL_QCOM_perfmon_global_mode = has_ext("GL_QCOM_perfmon_global_mode"); - GLAD_GL_QCOM_shader_framebuffer_fetch_noncoherent = has_ext("GL_QCOM_shader_framebuffer_fetch_noncoherent"); - GLAD_GL_QCOM_texture_foveated = has_ext("GL_QCOM_texture_foveated"); - GLAD_GL_QCOM_tiled_rendering = has_ext("GL_QCOM_tiled_rendering"); - GLAD_GL_QCOM_writeonly_rendering = has_ext("GL_QCOM_writeonly_rendering"); - GLAD_GL_VIV_shader_binary = has_ext("GL_VIV_shader_binary"); - free_exts(); - return 1; -} - -static void find_coreGLES2(void) { - - /* Thank you @elmindreda - * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176 - * https://github.com/glfw/glfw/blob/master/src/context.c#L36 - */ - int i, major, minor; - - const char* version; - const char* prefixes[] = { - "OpenGL ES-CM ", - "OpenGL ES-CL ", - "OpenGL ES ", - NULL - }; - - version = (const char*) glGetString(GL_VERSION); - if (!version) return; - - for (i = 0; prefixes[i]; i++) { - const size_t length = strlen(prefixes[i]); - if (strncmp(version, prefixes[i], length) == 0) { - version += length; - break; - } - } - -/* PR #18 */ -#ifdef _MSC_VER - sscanf_s(version, "%d.%d", &major, &minor); -#else - sscanf(version, "%d.%d", &major, &minor); -#endif - - GLVersion.major = major; GLVersion.minor = minor; - max_loaded_major = major; max_loaded_minor = minor; - GLAD_GL_ES_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2; - GLAD_GL_ES_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3; - GLAD_GL_ES_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3; - GLAD_GL_ES_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3; - if (GLVersion.major > 3 || (GLVersion.major >= 3 && GLVersion.minor >= 2)) { - max_loaded_major = 3; - max_loaded_minor = 2; - } -} - -int gladLoadGLES2Loader(GLADloadproc load) { - GLVersion.major = 0; GLVersion.minor = 0; - glGetString = (PFNGLGETSTRINGPROC)load("glGetString"); - if(glGetString == NULL) return 0; - if(glGetString(GL_VERSION) == NULL) return 0; - find_coreGLES2(); - load_GL_ES_VERSION_2_0(load); - load_GL_ES_VERSION_3_0(load); - load_GL_ES_VERSION_3_1(load); - load_GL_ES_VERSION_3_2(load); - - if (!find_extensionsGLES2()) return 0; - load_GL_AMD_performance_monitor(load); - load_GL_ANGLE_framebuffer_blit(load); - load_GL_ANGLE_framebuffer_multisample(load); - load_GL_ANGLE_instanced_arrays(load); - load_GL_ANGLE_translated_shader_source(load); - load_GL_APPLE_copy_texture_levels(load); - load_GL_APPLE_framebuffer_multisample(load); - load_GL_APPLE_sync(load); - load_GL_EXT_EGL_image_storage(load); - load_GL_EXT_base_instance(load); - load_GL_EXT_blend_func_extended(load); - load_GL_EXT_blend_minmax(load); - load_GL_EXT_buffer_storage(load); - load_GL_EXT_clear_texture(load); - load_GL_EXT_clip_control(load); - load_GL_EXT_copy_image(load); - load_GL_EXT_debug_label(load); - load_GL_EXT_debug_marker(load); - load_GL_EXT_discard_framebuffer(load); - load_GL_EXT_disjoint_timer_query(load); - load_GL_EXT_draw_buffers(load); - load_GL_EXT_draw_buffers_indexed(load); - load_GL_EXT_draw_elements_base_vertex(load); - load_GL_EXT_draw_instanced(load); - load_GL_EXT_draw_transform_feedback(load); - load_GL_EXT_external_buffer(load); - load_GL_EXT_geometry_shader(load); - load_GL_EXT_instanced_arrays(load); - load_GL_EXT_map_buffer_range(load); - load_GL_EXT_memory_object(load); - load_GL_EXT_memory_object_fd(load); - load_GL_EXT_memory_object_win32(load); - load_GL_EXT_multi_draw_arrays(load); - load_GL_EXT_multi_draw_indirect(load); - load_GL_EXT_multisampled_render_to_texture(load); - load_GL_EXT_multiview_draw_buffers(load); - load_GL_EXT_occlusion_query_boolean(load); - load_GL_EXT_polygon_offset_clamp(load); - load_GL_EXT_primitive_bounding_box(load); - load_GL_EXT_raster_multisample(load); - load_GL_EXT_robustness(load); - load_GL_EXT_semaphore(load); - load_GL_EXT_semaphore_fd(load); - load_GL_EXT_semaphore_win32(load); - load_GL_EXT_separate_shader_objects(load); - load_GL_EXT_shader_framebuffer_fetch_non_coherent(load); - load_GL_EXT_shader_pixel_local_storage2(load); - load_GL_EXT_sparse_texture(load); - load_GL_EXT_tessellation_shader(load); - load_GL_EXT_texture_border_clamp(load); - load_GL_EXT_texture_buffer(load); - load_GL_EXT_texture_storage(load); - load_GL_EXT_texture_view(load); - load_GL_EXT_win32_keyed_mutex(load); - load_GL_EXT_window_rectangles(load); - load_GL_IMG_bindless_texture(load); - load_GL_IMG_framebuffer_downsample(load); - load_GL_IMG_multisampled_render_to_texture(load); - load_GL_INTEL_framebuffer_CMAA(load); - load_GL_INTEL_performance_query(load); - load_GL_KHR_blend_equation_advanced(load); - load_GL_KHR_debug(load); - load_GL_KHR_parallel_shader_compile(load); - load_GL_KHR_robustness(load); - load_GL_NV_bindless_texture(load); - load_GL_NV_blend_equation_advanced(load); - load_GL_NV_clip_space_w_scaling(load); - load_GL_NV_conditional_render(load); - load_GL_NV_conservative_raster(load); - load_GL_NV_conservative_raster_pre_snap_triangles(load); - load_GL_NV_copy_buffer(load); - load_GL_NV_coverage_sample(load); - load_GL_NV_draw_buffers(load); - load_GL_NV_draw_instanced(load); - load_GL_NV_draw_vulkan_image(load); - load_GL_NV_fence(load); - load_GL_NV_fragment_coverage_to_color(load); - load_GL_NV_framebuffer_blit(load); - load_GL_NV_framebuffer_mixed_samples(load); - load_GL_NV_framebuffer_multisample(load); - load_GL_NV_gpu_shader5(load); - load_GL_NV_instanced_arrays(load); - load_GL_NV_internalformat_sample_query(load); - load_GL_NV_non_square_matrices(load); - load_GL_NV_path_rendering(load); - load_GL_NV_polygon_mode(load); - load_GL_NV_read_buffer(load); - load_GL_NV_sample_locations(load); - load_GL_NV_viewport_array(load); - load_GL_NV_viewport_swizzle(load); - load_GL_OES_EGL_image(load); - load_GL_OES_copy_image(load); - load_GL_OES_draw_buffers_indexed(load); - load_GL_OES_draw_elements_base_vertex(load); - load_GL_OES_geometry_shader(load); - load_GL_OES_get_program_binary(load); - load_GL_OES_mapbuffer(load); - load_GL_OES_primitive_bounding_box(load); - load_GL_OES_sample_shading(load); - load_GL_OES_tessellation_shader(load); - load_GL_OES_texture_3D(load); - load_GL_OES_texture_border_clamp(load); - load_GL_OES_texture_buffer(load); - load_GL_OES_texture_storage_multisample_2d_array(load); - load_GL_OES_texture_view(load); - load_GL_OES_vertex_array_object(load); - load_GL_OES_viewport_array(load); - load_GL_OVR_multiview(load); - load_GL_OVR_multiview_multisampled_render_to_texture(load); - load_GL_QCOM_alpha_test(load); - load_GL_QCOM_driver_control(load); - load_GL_QCOM_extended_get(load); - load_GL_QCOM_extended_get2(load); - load_GL_QCOM_framebuffer_foveated(load); - load_GL_QCOM_shader_framebuffer_fetch_noncoherent(load); - load_GL_QCOM_texture_foveated(load); - load_GL_QCOM_tiled_rendering(load); - return GLVersion.major != 0 || GLVersion.minor != 0; -} \ No newline at end of file diff --git a/third_party/glad/src/glad_egl.c b/third_party/glad/src/glad_egl.c deleted file mode 100644 index a15a9a74..00000000 --- a/third_party/glad/src/glad_egl.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - - EGL loader generated by glad 0.1.36 on Thu Sep 15 11:06:51 2022. - - Language/Generator: C/C++ - Specification: egl - APIs: egl=1.5 - Profile: - - Extensions: - - Loader: True - Local files: True - Omit khrplatform: False - Reproducible: False - - Commandline: - --api="egl=1.5" --generator="c" --spec="egl" --local-files --extensions="" - Online: - https://glad.dav1d.de/#language=c&specification=egl&loader=on&api=egl%3D1.5 -*/ - -#include -#include -#include -#include - -int gladLoadEGL(void) { - return gladLoadEGLLoader((GLADloadproc)eglGetProcAddress); -} - -static int find_extensionsEGL(void) { - return 1; -} - -static void find_coreEGL(void) { -} - -int gladLoadEGLLoader(GLADloadproc load) { - (void) load; - find_coreEGL(); - - if (!find_extensionsEGL()) return 0; - return 1; -} - diff --git a/third_party/glad/src/glad_glx.c b/third_party/glad/src/glad_glx.c deleted file mode 100644 index a39d129b..00000000 --- a/third_party/glad/src/glad_glx.c +++ /dev/null @@ -1,880 +0,0 @@ -/* - - GLX loader generated by glad 0.1.36 on Sat Oct 8 13:52:35 2022. - - Language/Generator: C/C++ - Specification: glx - APIs: glx=1.4 - Profile: - - Extensions: - GLX_3DFX_multisample, - GLX_AMD_gpu_association, - GLX_ARB_context_flush_control, - GLX_ARB_create_context, - GLX_ARB_create_context_no_error, - GLX_ARB_create_context_profile, - GLX_ARB_create_context_robustness, - GLX_ARB_fbconfig_float, - GLX_ARB_framebuffer_sRGB, - GLX_ARB_get_proc_address, - GLX_ARB_multisample, - GLX_ARB_robustness_application_isolation, - GLX_ARB_robustness_share_group_isolation, - GLX_ARB_vertex_buffer_object, - GLX_EXT_buffer_age, - GLX_EXT_context_priority, - GLX_EXT_create_context_es2_profile, - GLX_EXT_create_context_es_profile, - GLX_EXT_fbconfig_packed_float, - GLX_EXT_framebuffer_sRGB, - GLX_EXT_get_drawable_type, - GLX_EXT_import_context, - GLX_EXT_libglvnd, - GLX_EXT_no_config_context, - GLX_EXT_stereo_tree, - GLX_EXT_swap_control, - GLX_EXT_swap_control_tear, - GLX_EXT_texture_from_pixmap, - GLX_EXT_visual_info, - GLX_EXT_visual_rating, - GLX_INTEL_swap_event, - GLX_MESA_agp_offset, - GLX_MESA_copy_sub_buffer, - GLX_MESA_pixmap_colormap, - GLX_MESA_query_renderer, - GLX_MESA_release_buffers, - GLX_MESA_set_3dfx_mode, - GLX_MESA_swap_control, - GLX_NV_copy_buffer, - GLX_NV_copy_image, - GLX_NV_delay_before_swap, - GLX_NV_float_buffer, - GLX_NV_multigpu_context, - GLX_NV_multisample_coverage, - GLX_NV_present_video, - GLX_NV_robustness_video_memory_purge, - GLX_NV_swap_group, - GLX_NV_video_capture, - GLX_NV_video_out, - GLX_OML_swap_method, - GLX_OML_sync_control, - GLX_SGIS_blended_overlay, - GLX_SGIS_multisample, - GLX_SGIS_shared_multisample, - GLX_SGIX_dmbuffer, - GLX_SGIX_fbconfig, - GLX_SGIX_hyperpipe, - GLX_SGIX_pbuffer, - GLX_SGIX_swap_barrier, - GLX_SGIX_swap_group, - GLX_SGIX_video_resize, - GLX_SGIX_video_source, - GLX_SGIX_visual_select_group, - GLX_SGI_cushion, - GLX_SGI_make_current_read, - GLX_SGI_swap_control, - GLX_SGI_video_sync, - GLX_SUN_get_transparent_index - Loader: True - Local files: True - Omit khrplatform: False - Reproducible: False - - Commandline: - --api="glx=1.4" --generator="c" --spec="glx" --local-files --extensions="GLX_3DFX_multisample,GLX_AMD_gpu_association,GLX_ARB_context_flush_control,GLX_ARB_create_context,GLX_ARB_create_context_no_error,GLX_ARB_create_context_profile,GLX_ARB_create_context_robustness,GLX_ARB_fbconfig_float,GLX_ARB_framebuffer_sRGB,GLX_ARB_get_proc_address,GLX_ARB_multisample,GLX_ARB_robustness_application_isolation,GLX_ARB_robustness_share_group_isolation,GLX_ARB_vertex_buffer_object,GLX_EXT_buffer_age,GLX_EXT_context_priority,GLX_EXT_create_context_es2_profile,GLX_EXT_create_context_es_profile,GLX_EXT_fbconfig_packed_float,GLX_EXT_framebuffer_sRGB,GLX_EXT_get_drawable_type,GLX_EXT_import_context,GLX_EXT_libglvnd,GLX_EXT_no_config_context,GLX_EXT_stereo_tree,GLX_EXT_swap_control,GLX_EXT_swap_control_tear,GLX_EXT_texture_from_pixmap,GLX_EXT_visual_info,GLX_EXT_visual_rating,GLX_INTEL_swap_event,GLX_MESA_agp_offset,GLX_MESA_copy_sub_buffer,GLX_MESA_pixmap_colormap,GLX_MESA_query_renderer,GLX_MESA_release_buffers,GLX_MESA_set_3dfx_mode,GLX_MESA_swap_control,GLX_NV_copy_buffer,GLX_NV_copy_image,GLX_NV_delay_before_swap,GLX_NV_float_buffer,GLX_NV_multigpu_context,GLX_NV_multisample_coverage,GLX_NV_present_video,GLX_NV_robustness_video_memory_purge,GLX_NV_swap_group,GLX_NV_video_capture,GLX_NV_video_out,GLX_OML_swap_method,GLX_OML_sync_control,GLX_SGIS_blended_overlay,GLX_SGIS_multisample,GLX_SGIS_shared_multisample,GLX_SGIX_dmbuffer,GLX_SGIX_fbconfig,GLX_SGIX_hyperpipe,GLX_SGIX_pbuffer,GLX_SGIX_swap_barrier,GLX_SGIX_swap_group,GLX_SGIX_video_resize,GLX_SGIX_video_source,GLX_SGIX_visual_select_group,GLX_SGI_cushion,GLX_SGI_make_current_read,GLX_SGI_swap_control,GLX_SGI_video_sync,GLX_SUN_get_transparent_index" - Online: - Too many extensions -*/ - -#include -#include -#include -#include - -static void* get_proc(const char *namez); - -#if defined(_WIN32) || defined(__CYGWIN__) -#ifndef _WINDOWS_ -#undef APIENTRY -#endif -#include -static HMODULE libGL; - -typedef void* (APIENTRYP PFNWGLGETPROCADDRESSPROC_PRIVATE)(const char*); -static PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; - -#ifdef _MSC_VER -#ifdef __has_include - #if __has_include() - #define HAVE_WINAPIFAMILY 1 - #endif -#elif _MSC_VER >= 1700 && !_USING_V110_SDK71_ - #define HAVE_WINAPIFAMILY 1 -#endif -#endif - -#ifdef HAVE_WINAPIFAMILY - #include - #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) - #define IS_UWP 1 - #endif -#endif - -static -int open_glx(void) { -#ifndef IS_UWP - libGL = LoadLibraryW(L"opengl32.dll"); - if(libGL != NULL) { - void (* tmp)(void); - tmp = (void(*)(void)) GetProcAddress(libGL, "wglGetProcAddress"); - gladGetProcAddressPtr = (PFNWGLGETPROCADDRESSPROC_PRIVATE) tmp; - return gladGetProcAddressPtr != NULL; - } -#endif - - return 0; -} - -static -void close_glx(void) { - if(libGL != NULL) { - FreeLibrary((HMODULE) libGL); - libGL = NULL; - } -} -#else -#include -static void* libGL; - -#if !defined(__APPLE__) && !defined(__HAIKU__) -typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*); -static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; -#endif - -static -int open_glx(void) { -#ifdef __APPLE__ - static const char *NAMES[] = { - "../Frameworks/OpenGL.framework/OpenGL", - "/Library/Frameworks/OpenGL.framework/OpenGL", - "/System/Library/Frameworks/OpenGL.framework/OpenGL", - "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" - }; -#else - static const char *NAMES[] = {"libGL.so.1", "libGL.so"}; -#endif - - unsigned int index = 0; - for(index = 0; index < (sizeof(NAMES) / sizeof(NAMES[0])); index++) { - libGL = dlopen(NAMES[index], RTLD_NOW | RTLD_GLOBAL); - - if(libGL != NULL) { -#if defined(__APPLE__) || defined(__HAIKU__) - return 1; -#else - gladGetProcAddressPtr = (PFNGLXGETPROCADDRESSPROC_PRIVATE)dlsym(libGL, - "glXGetProcAddressARB"); - return gladGetProcAddressPtr != NULL; -#endif - } - } - - return 0; -} - -static -void close_glx(void) { - if(libGL != NULL) { - dlclose(libGL); - libGL = NULL; - } -} -#endif - -static -void* get_proc(const char *namez) { - void* result = NULL; - if(libGL == NULL) return NULL; - -#if !defined(__APPLE__) && !defined(__HAIKU__) - if(gladGetProcAddressPtr != NULL) { - result = gladGetProcAddressPtr(namez); - } -#endif - if(result == NULL) { -#if defined(_WIN32) || defined(__CYGWIN__) - result = (void*)GetProcAddress((HMODULE) libGL, namez); -#else - result = dlsym(libGL, namez); -#endif - } - - return result; -} - -int gladLoadGLX(Display *dpy, int screen) { - int status = 0; - - if(open_glx()) { - status = gladLoadGLXLoader((GLADloadproc)get_proc, dpy, screen); - } - - return status; -} - -void gladUnloadGLX(void) { - close_glx(); -} - -static Display *GLADGLXDisplay = 0; -static int GLADGLXscreen = 0; - -static int get_exts(void) { - return 1; -} - -static void free_exts(void) { - return; -} - -static int has_ext(const char *ext) { - const char *terminator; - const char *loc; - const char *extensions; - - if(!GLAD_GLX_VERSION_1_1) - return 0; - - extensions = glXQueryExtensionsString(GLADGLXDisplay, GLADGLXscreen); - - if(extensions == NULL || ext == NULL) - return 0; - - while(1) { - loc = strstr(extensions, ext); - if(loc == NULL) - break; - - terminator = loc + strlen(ext); - if((loc == extensions || *(loc - 1) == ' ') && - (*terminator == ' ' || *terminator == '\0')) - { - return 1; - } - extensions = terminator; - } - - return 0; -} - -int GLAD_GLX_VERSION_1_0 = 0; -int GLAD_GLX_VERSION_1_1 = 0; -int GLAD_GLX_VERSION_1_2 = 0; -int GLAD_GLX_VERSION_1_3 = 0; -int GLAD_GLX_VERSION_1_4 = 0; -PFNGLXCHOOSEFBCONFIGPROC glad_glXChooseFBConfig = NULL; -PFNGLXCHOOSEVISUALPROC glad_glXChooseVisual = NULL; -PFNGLXCOPYCONTEXTPROC glad_glXCopyContext = NULL; -PFNGLXCREATECONTEXTPROC glad_glXCreateContext = NULL; -PFNGLXCREATEGLXPIXMAPPROC glad_glXCreateGLXPixmap = NULL; -PFNGLXCREATENEWCONTEXTPROC glad_glXCreateNewContext = NULL; -PFNGLXCREATEPBUFFERPROC glad_glXCreatePbuffer = NULL; -PFNGLXCREATEPIXMAPPROC glad_glXCreatePixmap = NULL; -PFNGLXCREATEWINDOWPROC glad_glXCreateWindow = NULL; -PFNGLXDESTROYCONTEXTPROC glad_glXDestroyContext = NULL; -PFNGLXDESTROYGLXPIXMAPPROC glad_glXDestroyGLXPixmap = NULL; -PFNGLXDESTROYPBUFFERPROC glad_glXDestroyPbuffer = NULL; -PFNGLXDESTROYPIXMAPPROC glad_glXDestroyPixmap = NULL; -PFNGLXDESTROYWINDOWPROC glad_glXDestroyWindow = NULL; -PFNGLXGETCLIENTSTRINGPROC glad_glXGetClientString = NULL; -PFNGLXGETCONFIGPROC glad_glXGetConfig = NULL; -PFNGLXGETCURRENTCONTEXTPROC glad_glXGetCurrentContext = NULL; -PFNGLXGETCURRENTDISPLAYPROC glad_glXGetCurrentDisplay = NULL; -PFNGLXGETCURRENTDRAWABLEPROC glad_glXGetCurrentDrawable = NULL; -PFNGLXGETCURRENTREADDRAWABLEPROC glad_glXGetCurrentReadDrawable = NULL; -PFNGLXGETFBCONFIGATTRIBPROC glad_glXGetFBConfigAttrib = NULL; -PFNGLXGETFBCONFIGSPROC glad_glXGetFBConfigs = NULL; -PFNGLXGETPROCADDRESSPROC glad_glXGetProcAddress = NULL; -PFNGLXGETSELECTEDEVENTPROC glad_glXGetSelectedEvent = NULL; -PFNGLXGETVISUALFROMFBCONFIGPROC glad_glXGetVisualFromFBConfig = NULL; -PFNGLXISDIRECTPROC glad_glXIsDirect = NULL; -PFNGLXMAKECONTEXTCURRENTPROC glad_glXMakeContextCurrent = NULL; -PFNGLXMAKECURRENTPROC glad_glXMakeCurrent = NULL; -PFNGLXQUERYCONTEXTPROC glad_glXQueryContext = NULL; -PFNGLXQUERYDRAWABLEPROC glad_glXQueryDrawable = NULL; -PFNGLXQUERYEXTENSIONPROC glad_glXQueryExtension = NULL; -PFNGLXQUERYEXTENSIONSSTRINGPROC glad_glXQueryExtensionsString = NULL; -PFNGLXQUERYSERVERSTRINGPROC glad_glXQueryServerString = NULL; -PFNGLXQUERYVERSIONPROC glad_glXQueryVersion = NULL; -PFNGLXSELECTEVENTPROC glad_glXSelectEvent = NULL; -PFNGLXSWAPBUFFERSPROC glad_glXSwapBuffers = NULL; -PFNGLXUSEXFONTPROC glad_glXUseXFont = NULL; -PFNGLXWAITGLPROC glad_glXWaitGL = NULL; -PFNGLXWAITXPROC glad_glXWaitX = NULL; -int GLAD_GLX_3DFX_multisample = 0; -int GLAD_GLX_AMD_gpu_association = 0; -int GLAD_GLX_ARB_context_flush_control = 0; -int GLAD_GLX_ARB_create_context = 0; -int GLAD_GLX_ARB_create_context_no_error = 0; -int GLAD_GLX_ARB_create_context_profile = 0; -int GLAD_GLX_ARB_create_context_robustness = 0; -int GLAD_GLX_ARB_fbconfig_float = 0; -int GLAD_GLX_ARB_framebuffer_sRGB = 0; -int GLAD_GLX_ARB_get_proc_address = 0; -int GLAD_GLX_ARB_multisample = 0; -int GLAD_GLX_ARB_robustness_application_isolation = 0; -int GLAD_GLX_ARB_robustness_share_group_isolation = 0; -int GLAD_GLX_ARB_vertex_buffer_object = 0; -int GLAD_GLX_EXT_buffer_age = 0; -int GLAD_GLX_EXT_context_priority = 0; -int GLAD_GLX_EXT_create_context_es2_profile = 0; -int GLAD_GLX_EXT_create_context_es_profile = 0; -int GLAD_GLX_EXT_fbconfig_packed_float = 0; -int GLAD_GLX_EXT_framebuffer_sRGB = 0; -int GLAD_GLX_EXT_get_drawable_type = 0; -int GLAD_GLX_EXT_import_context = 0; -int GLAD_GLX_EXT_libglvnd = 0; -int GLAD_GLX_EXT_no_config_context = 0; -int GLAD_GLX_EXT_stereo_tree = 0; -int GLAD_GLX_EXT_swap_control = 0; -int GLAD_GLX_EXT_swap_control_tear = 0; -int GLAD_GLX_EXT_texture_from_pixmap = 0; -int GLAD_GLX_EXT_visual_info = 0; -int GLAD_GLX_EXT_visual_rating = 0; -int GLAD_GLX_INTEL_swap_event = 0; -int GLAD_GLX_MESA_agp_offset = 0; -int GLAD_GLX_MESA_copy_sub_buffer = 0; -int GLAD_GLX_MESA_pixmap_colormap = 0; -int GLAD_GLX_MESA_query_renderer = 0; -int GLAD_GLX_MESA_release_buffers = 0; -int GLAD_GLX_MESA_set_3dfx_mode = 0; -int GLAD_GLX_MESA_swap_control = 0; -int GLAD_GLX_NV_copy_buffer = 0; -int GLAD_GLX_NV_copy_image = 0; -int GLAD_GLX_NV_delay_before_swap = 0; -int GLAD_GLX_NV_float_buffer = 0; -int GLAD_GLX_NV_multigpu_context = 0; -int GLAD_GLX_NV_multisample_coverage = 0; -int GLAD_GLX_NV_present_video = 0; -int GLAD_GLX_NV_robustness_video_memory_purge = 0; -int GLAD_GLX_NV_swap_group = 0; -int GLAD_GLX_NV_video_capture = 0; -int GLAD_GLX_NV_video_out = 0; -int GLAD_GLX_OML_swap_method = 0; -int GLAD_GLX_OML_sync_control = 0; -int GLAD_GLX_SGIS_blended_overlay = 0; -int GLAD_GLX_SGIS_multisample = 0; -int GLAD_GLX_SGIS_shared_multisample = 0; -int GLAD_GLX_SGIX_dmbuffer = 0; -int GLAD_GLX_SGIX_fbconfig = 0; -int GLAD_GLX_SGIX_hyperpipe = 0; -int GLAD_GLX_SGIX_pbuffer = 0; -int GLAD_GLX_SGIX_swap_barrier = 0; -int GLAD_GLX_SGIX_swap_group = 0; -int GLAD_GLX_SGIX_video_resize = 0; -int GLAD_GLX_SGIX_video_source = 0; -int GLAD_GLX_SGIX_visual_select_group = 0; -int GLAD_GLX_SGI_cushion = 0; -int GLAD_GLX_SGI_make_current_read = 0; -int GLAD_GLX_SGI_swap_control = 0; -int GLAD_GLX_SGI_video_sync = 0; -int GLAD_GLX_SUN_get_transparent_index = 0; -PFNGLXGETGPUIDSAMDPROC glad_glXGetGPUIDsAMD = NULL; -PFNGLXGETGPUINFOAMDPROC glad_glXGetGPUInfoAMD = NULL; -PFNGLXGETCONTEXTGPUIDAMDPROC glad_glXGetContextGPUIDAMD = NULL; -PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC glad_glXCreateAssociatedContextAMD = NULL; -PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC glad_glXCreateAssociatedContextAttribsAMD = NULL; -PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC glad_glXDeleteAssociatedContextAMD = NULL; -PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC glad_glXMakeAssociatedContextCurrentAMD = NULL; -PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC glad_glXGetCurrentAssociatedContextAMD = NULL; -PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC glad_glXBlitContextFramebufferAMD = NULL; -PFNGLXCREATECONTEXTATTRIBSARBPROC glad_glXCreateContextAttribsARB = NULL; -PFNGLXGETPROCADDRESSARBPROC glad_glXGetProcAddressARB = NULL; -PFNGLXGETCURRENTDISPLAYEXTPROC glad_glXGetCurrentDisplayEXT = NULL; -PFNGLXQUERYCONTEXTINFOEXTPROC glad_glXQueryContextInfoEXT = NULL; -PFNGLXGETCONTEXTIDEXTPROC glad_glXGetContextIDEXT = NULL; -PFNGLXIMPORTCONTEXTEXTPROC glad_glXImportContextEXT = NULL; -PFNGLXFREECONTEXTEXTPROC glad_glXFreeContextEXT = NULL; -PFNGLXSWAPINTERVALEXTPROC glad_glXSwapIntervalEXT = NULL; -PFNGLXBINDTEXIMAGEEXTPROC glad_glXBindTexImageEXT = NULL; -PFNGLXRELEASETEXIMAGEEXTPROC glad_glXReleaseTexImageEXT = NULL; -PFNGLXGETAGPOFFSETMESAPROC glad_glXGetAGPOffsetMESA = NULL; -PFNGLXCOPYSUBBUFFERMESAPROC glad_glXCopySubBufferMESA = NULL; -PFNGLXCREATEGLXPIXMAPMESAPROC glad_glXCreateGLXPixmapMESA = NULL; -PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC glad_glXQueryCurrentRendererIntegerMESA = NULL; -PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC glad_glXQueryCurrentRendererStringMESA = NULL; -PFNGLXQUERYRENDERERINTEGERMESAPROC glad_glXQueryRendererIntegerMESA = NULL; -PFNGLXQUERYRENDERERSTRINGMESAPROC glad_glXQueryRendererStringMESA = NULL; -PFNGLXRELEASEBUFFERSMESAPROC glad_glXReleaseBuffersMESA = NULL; -PFNGLXSET3DFXMODEMESAPROC glad_glXSet3DfxModeMESA = NULL; -PFNGLXGETSWAPINTERVALMESAPROC glad_glXGetSwapIntervalMESA = NULL; -PFNGLXSWAPINTERVALMESAPROC glad_glXSwapIntervalMESA = NULL; -PFNGLXCOPYBUFFERSUBDATANVPROC glad_glXCopyBufferSubDataNV = NULL; -PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC glad_glXNamedCopyBufferSubDataNV = NULL; -PFNGLXCOPYIMAGESUBDATANVPROC glad_glXCopyImageSubDataNV = NULL; -PFNGLXDELAYBEFORESWAPNVPROC glad_glXDelayBeforeSwapNV = NULL; -PFNGLXENUMERATEVIDEODEVICESNVPROC glad_glXEnumerateVideoDevicesNV = NULL; -PFNGLXBINDVIDEODEVICENVPROC glad_glXBindVideoDeviceNV = NULL; -PFNGLXJOINSWAPGROUPNVPROC glad_glXJoinSwapGroupNV = NULL; -PFNGLXBINDSWAPBARRIERNVPROC glad_glXBindSwapBarrierNV = NULL; -PFNGLXQUERYSWAPGROUPNVPROC glad_glXQuerySwapGroupNV = NULL; -PFNGLXQUERYMAXSWAPGROUPSNVPROC glad_glXQueryMaxSwapGroupsNV = NULL; -PFNGLXQUERYFRAMECOUNTNVPROC glad_glXQueryFrameCountNV = NULL; -PFNGLXRESETFRAMECOUNTNVPROC glad_glXResetFrameCountNV = NULL; -PFNGLXBINDVIDEOCAPTUREDEVICENVPROC glad_glXBindVideoCaptureDeviceNV = NULL; -PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC glad_glXEnumerateVideoCaptureDevicesNV = NULL; -PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC glad_glXLockVideoCaptureDeviceNV = NULL; -PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC glad_glXQueryVideoCaptureDeviceNV = NULL; -PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC glad_glXReleaseVideoCaptureDeviceNV = NULL; -PFNGLXGETVIDEODEVICENVPROC glad_glXGetVideoDeviceNV = NULL; -PFNGLXRELEASEVIDEODEVICENVPROC glad_glXReleaseVideoDeviceNV = NULL; -PFNGLXBINDVIDEOIMAGENVPROC glad_glXBindVideoImageNV = NULL; -PFNGLXRELEASEVIDEOIMAGENVPROC glad_glXReleaseVideoImageNV = NULL; -PFNGLXSENDPBUFFERTOVIDEONVPROC glad_glXSendPbufferToVideoNV = NULL; -PFNGLXGETVIDEOINFONVPROC glad_glXGetVideoInfoNV = NULL; -PFNGLXGETSYNCVALUESOMLPROC glad_glXGetSyncValuesOML = NULL; -PFNGLXGETMSCRATEOMLPROC glad_glXGetMscRateOML = NULL; -PFNGLXSWAPBUFFERSMSCOMLPROC glad_glXSwapBuffersMscOML = NULL; -PFNGLXWAITFORMSCOMLPROC glad_glXWaitForMscOML = NULL; -PFNGLXWAITFORSBCOMLPROC glad_glXWaitForSbcOML = NULL; -#ifdef _DM_BUFFER_H_ -PFNGLXASSOCIATEDMPBUFFERSGIXPROC glad_glXAssociateDMPbufferSGIX = NULL; -#endif -PFNGLXGETFBCONFIGATTRIBSGIXPROC glad_glXGetFBConfigAttribSGIX = NULL; -PFNGLXCHOOSEFBCONFIGSGIXPROC glad_glXChooseFBConfigSGIX = NULL; -PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC glad_glXCreateGLXPixmapWithConfigSGIX = NULL; -PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC glad_glXCreateContextWithConfigSGIX = NULL; -PFNGLXGETVISUALFROMFBCONFIGSGIXPROC glad_glXGetVisualFromFBConfigSGIX = NULL; -PFNGLXGETFBCONFIGFROMVISUALSGIXPROC glad_glXGetFBConfigFromVisualSGIX = NULL; -PFNGLXQUERYHYPERPIPENETWORKSGIXPROC glad_glXQueryHyperpipeNetworkSGIX = NULL; -PFNGLXHYPERPIPECONFIGSGIXPROC glad_glXHyperpipeConfigSGIX = NULL; -PFNGLXQUERYHYPERPIPECONFIGSGIXPROC glad_glXQueryHyperpipeConfigSGIX = NULL; -PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC glad_glXDestroyHyperpipeConfigSGIX = NULL; -PFNGLXBINDHYPERPIPESGIXPROC glad_glXBindHyperpipeSGIX = NULL; -PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC glad_glXQueryHyperpipeBestAttribSGIX = NULL; -PFNGLXHYPERPIPEATTRIBSGIXPROC glad_glXHyperpipeAttribSGIX = NULL; -PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC glad_glXQueryHyperpipeAttribSGIX = NULL; -PFNGLXCREATEGLXPBUFFERSGIXPROC glad_glXCreateGLXPbufferSGIX = NULL; -PFNGLXDESTROYGLXPBUFFERSGIXPROC glad_glXDestroyGLXPbufferSGIX = NULL; -PFNGLXQUERYGLXPBUFFERSGIXPROC glad_glXQueryGLXPbufferSGIX = NULL; -PFNGLXSELECTEVENTSGIXPROC glad_glXSelectEventSGIX = NULL; -PFNGLXGETSELECTEDEVENTSGIXPROC glad_glXGetSelectedEventSGIX = NULL; -PFNGLXBINDSWAPBARRIERSGIXPROC glad_glXBindSwapBarrierSGIX = NULL; -PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC glad_glXQueryMaxSwapBarriersSGIX = NULL; -PFNGLXJOINSWAPGROUPSGIXPROC glad_glXJoinSwapGroupSGIX = NULL; -PFNGLXBINDCHANNELTOWINDOWSGIXPROC glad_glXBindChannelToWindowSGIX = NULL; -PFNGLXCHANNELRECTSGIXPROC glad_glXChannelRectSGIX = NULL; -PFNGLXQUERYCHANNELRECTSGIXPROC glad_glXQueryChannelRectSGIX = NULL; -PFNGLXQUERYCHANNELDELTASSGIXPROC glad_glXQueryChannelDeltasSGIX = NULL; -PFNGLXCHANNELRECTSYNCSGIXPROC glad_glXChannelRectSyncSGIX = NULL; -#ifdef _VL_H_ -PFNGLXCREATEGLXVIDEOSOURCESGIXPROC glad_glXCreateGLXVideoSourceSGIX = NULL; -PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC glad_glXDestroyGLXVideoSourceSGIX = NULL; -#endif -PFNGLXCUSHIONSGIPROC glad_glXCushionSGI = NULL; -PFNGLXMAKECURRENTREADSGIPROC glad_glXMakeCurrentReadSGI = NULL; -PFNGLXGETCURRENTREADDRAWABLESGIPROC glad_glXGetCurrentReadDrawableSGI = NULL; -PFNGLXSWAPINTERVALSGIPROC glad_glXSwapIntervalSGI = NULL; -PFNGLXGETVIDEOSYNCSGIPROC glad_glXGetVideoSyncSGI = NULL; -PFNGLXWAITVIDEOSYNCSGIPROC glad_glXWaitVideoSyncSGI = NULL; -PFNGLXGETTRANSPARENTINDEXSUNPROC glad_glXGetTransparentIndexSUN = NULL; -static void load_GLX_VERSION_1_0(GLADloadproc load) { - if(!GLAD_GLX_VERSION_1_0) return; - glad_glXChooseVisual = (PFNGLXCHOOSEVISUALPROC)load("glXChooseVisual"); - glad_glXCreateContext = (PFNGLXCREATECONTEXTPROC)load("glXCreateContext"); - glad_glXDestroyContext = (PFNGLXDESTROYCONTEXTPROC)load("glXDestroyContext"); - glad_glXMakeCurrent = (PFNGLXMAKECURRENTPROC)load("glXMakeCurrent"); - glad_glXCopyContext = (PFNGLXCOPYCONTEXTPROC)load("glXCopyContext"); - glad_glXSwapBuffers = (PFNGLXSWAPBUFFERSPROC)load("glXSwapBuffers"); - glad_glXCreateGLXPixmap = (PFNGLXCREATEGLXPIXMAPPROC)load("glXCreateGLXPixmap"); - glad_glXDestroyGLXPixmap = (PFNGLXDESTROYGLXPIXMAPPROC)load("glXDestroyGLXPixmap"); - glad_glXQueryExtension = (PFNGLXQUERYEXTENSIONPROC)load("glXQueryExtension"); - glad_glXQueryVersion = (PFNGLXQUERYVERSIONPROC)load("glXQueryVersion"); - glad_glXIsDirect = (PFNGLXISDIRECTPROC)load("glXIsDirect"); - glad_glXGetConfig = (PFNGLXGETCONFIGPROC)load("glXGetConfig"); - glad_glXGetCurrentContext = (PFNGLXGETCURRENTCONTEXTPROC)load("glXGetCurrentContext"); - glad_glXGetCurrentDrawable = (PFNGLXGETCURRENTDRAWABLEPROC)load("glXGetCurrentDrawable"); - glad_glXWaitGL = (PFNGLXWAITGLPROC)load("glXWaitGL"); - glad_glXWaitX = (PFNGLXWAITXPROC)load("glXWaitX"); - glad_glXUseXFont = (PFNGLXUSEXFONTPROC)load("glXUseXFont"); -} -static void load_GLX_VERSION_1_1(GLADloadproc load) { - if(!GLAD_GLX_VERSION_1_1) return; - glad_glXQueryExtensionsString = (PFNGLXQUERYEXTENSIONSSTRINGPROC)load("glXQueryExtensionsString"); - glad_glXQueryServerString = (PFNGLXQUERYSERVERSTRINGPROC)load("glXQueryServerString"); - glad_glXGetClientString = (PFNGLXGETCLIENTSTRINGPROC)load("glXGetClientString"); -} -static void load_GLX_VERSION_1_2(GLADloadproc load) { - if(!GLAD_GLX_VERSION_1_2) return; - glad_glXGetCurrentDisplay = (PFNGLXGETCURRENTDISPLAYPROC)load("glXGetCurrentDisplay"); -} -static void load_GLX_VERSION_1_3(GLADloadproc load) { - if(!GLAD_GLX_VERSION_1_3) return; - glad_glXGetFBConfigs = (PFNGLXGETFBCONFIGSPROC)load("glXGetFBConfigs"); - glad_glXChooseFBConfig = (PFNGLXCHOOSEFBCONFIGPROC)load("glXChooseFBConfig"); - glad_glXGetFBConfigAttrib = (PFNGLXGETFBCONFIGATTRIBPROC)load("glXGetFBConfigAttrib"); - glad_glXGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGPROC)load("glXGetVisualFromFBConfig"); - glad_glXCreateWindow = (PFNGLXCREATEWINDOWPROC)load("glXCreateWindow"); - glad_glXDestroyWindow = (PFNGLXDESTROYWINDOWPROC)load("glXDestroyWindow"); - glad_glXCreatePixmap = (PFNGLXCREATEPIXMAPPROC)load("glXCreatePixmap"); - glad_glXDestroyPixmap = (PFNGLXDESTROYPIXMAPPROC)load("glXDestroyPixmap"); - glad_glXCreatePbuffer = (PFNGLXCREATEPBUFFERPROC)load("glXCreatePbuffer"); - glad_glXDestroyPbuffer = (PFNGLXDESTROYPBUFFERPROC)load("glXDestroyPbuffer"); - glad_glXQueryDrawable = (PFNGLXQUERYDRAWABLEPROC)load("glXQueryDrawable"); - glad_glXCreateNewContext = (PFNGLXCREATENEWCONTEXTPROC)load("glXCreateNewContext"); - glad_glXMakeContextCurrent = (PFNGLXMAKECONTEXTCURRENTPROC)load("glXMakeContextCurrent"); - glad_glXGetCurrentReadDrawable = (PFNGLXGETCURRENTREADDRAWABLEPROC)load("glXGetCurrentReadDrawable"); - glad_glXQueryContext = (PFNGLXQUERYCONTEXTPROC)load("glXQueryContext"); - glad_glXSelectEvent = (PFNGLXSELECTEVENTPROC)load("glXSelectEvent"); - glad_glXGetSelectedEvent = (PFNGLXGETSELECTEDEVENTPROC)load("glXGetSelectedEvent"); -} -static void load_GLX_VERSION_1_4(GLADloadproc load) { - if(!GLAD_GLX_VERSION_1_4) return; - glad_glXGetProcAddress = (PFNGLXGETPROCADDRESSPROC)load("glXGetProcAddress"); -} -static void load_GLX_AMD_gpu_association(GLADloadproc load) { - if(!GLAD_GLX_AMD_gpu_association) return; - glad_glXGetGPUIDsAMD = (PFNGLXGETGPUIDSAMDPROC)load("glXGetGPUIDsAMD"); - glad_glXGetGPUInfoAMD = (PFNGLXGETGPUINFOAMDPROC)load("glXGetGPUInfoAMD"); - glad_glXGetContextGPUIDAMD = (PFNGLXGETCONTEXTGPUIDAMDPROC)load("glXGetContextGPUIDAMD"); - glad_glXCreateAssociatedContextAMD = (PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC)load("glXCreateAssociatedContextAMD"); - glad_glXCreateAssociatedContextAttribsAMD = (PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC)load("glXCreateAssociatedContextAttribsAMD"); - glad_glXDeleteAssociatedContextAMD = (PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC)load("glXDeleteAssociatedContextAMD"); - glad_glXMakeAssociatedContextCurrentAMD = (PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC)load("glXMakeAssociatedContextCurrentAMD"); - glad_glXGetCurrentAssociatedContextAMD = (PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC)load("glXGetCurrentAssociatedContextAMD"); - glad_glXBlitContextFramebufferAMD = (PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC)load("glXBlitContextFramebufferAMD"); -} -static void load_GLX_ARB_create_context(GLADloadproc load) { - if(!GLAD_GLX_ARB_create_context) return; - glad_glXCreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC)load("glXCreateContextAttribsARB"); -} -static void load_GLX_ARB_get_proc_address(GLADloadproc load) { - if(!GLAD_GLX_ARB_get_proc_address) return; - glad_glXGetProcAddressARB = (PFNGLXGETPROCADDRESSARBPROC)load("glXGetProcAddressARB"); -} -static void load_GLX_EXT_import_context(GLADloadproc load) { - if(!GLAD_GLX_EXT_import_context) return; - glad_glXGetCurrentDisplayEXT = (PFNGLXGETCURRENTDISPLAYEXTPROC)load("glXGetCurrentDisplayEXT"); - glad_glXQueryContextInfoEXT = (PFNGLXQUERYCONTEXTINFOEXTPROC)load("glXQueryContextInfoEXT"); - glad_glXGetContextIDEXT = (PFNGLXGETCONTEXTIDEXTPROC)load("glXGetContextIDEXT"); - glad_glXImportContextEXT = (PFNGLXIMPORTCONTEXTEXTPROC)load("glXImportContextEXT"); - glad_glXFreeContextEXT = (PFNGLXFREECONTEXTEXTPROC)load("glXFreeContextEXT"); -} -static void load_GLX_EXT_swap_control(GLADloadproc load) { - if(!GLAD_GLX_EXT_swap_control) return; - glad_glXSwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC)load("glXSwapIntervalEXT"); -} -static void load_GLX_EXT_texture_from_pixmap(GLADloadproc load) { - if(!GLAD_GLX_EXT_texture_from_pixmap) return; - glad_glXBindTexImageEXT = (PFNGLXBINDTEXIMAGEEXTPROC)load("glXBindTexImageEXT"); - glad_glXReleaseTexImageEXT = (PFNGLXRELEASETEXIMAGEEXTPROC)load("glXReleaseTexImageEXT"); -} -static void load_GLX_MESA_agp_offset(GLADloadproc load) { - if(!GLAD_GLX_MESA_agp_offset) return; - glad_glXGetAGPOffsetMESA = (PFNGLXGETAGPOFFSETMESAPROC)load("glXGetAGPOffsetMESA"); -} -static void load_GLX_MESA_copy_sub_buffer(GLADloadproc load) { - if(!GLAD_GLX_MESA_copy_sub_buffer) return; - glad_glXCopySubBufferMESA = (PFNGLXCOPYSUBBUFFERMESAPROC)load("glXCopySubBufferMESA"); -} -static void load_GLX_MESA_pixmap_colormap(GLADloadproc load) { - if(!GLAD_GLX_MESA_pixmap_colormap) return; - glad_glXCreateGLXPixmapMESA = (PFNGLXCREATEGLXPIXMAPMESAPROC)load("glXCreateGLXPixmapMESA"); -} -static void load_GLX_MESA_query_renderer(GLADloadproc load) { - if(!GLAD_GLX_MESA_query_renderer) return; - glad_glXQueryCurrentRendererIntegerMESA = (PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC)load("glXQueryCurrentRendererIntegerMESA"); - glad_glXQueryCurrentRendererStringMESA = (PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC)load("glXQueryCurrentRendererStringMESA"); - glad_glXQueryRendererIntegerMESA = (PFNGLXQUERYRENDERERINTEGERMESAPROC)load("glXQueryRendererIntegerMESA"); - glad_glXQueryRendererStringMESA = (PFNGLXQUERYRENDERERSTRINGMESAPROC)load("glXQueryRendererStringMESA"); -} -static void load_GLX_MESA_release_buffers(GLADloadproc load) { - if(!GLAD_GLX_MESA_release_buffers) return; - glad_glXReleaseBuffersMESA = (PFNGLXRELEASEBUFFERSMESAPROC)load("glXReleaseBuffersMESA"); -} -static void load_GLX_MESA_set_3dfx_mode(GLADloadproc load) { - if(!GLAD_GLX_MESA_set_3dfx_mode) return; - glad_glXSet3DfxModeMESA = (PFNGLXSET3DFXMODEMESAPROC)load("glXSet3DfxModeMESA"); -} -static void load_GLX_MESA_swap_control(GLADloadproc load) { - if(!GLAD_GLX_MESA_swap_control) return; - glad_glXGetSwapIntervalMESA = (PFNGLXGETSWAPINTERVALMESAPROC)load("glXGetSwapIntervalMESA"); - glad_glXSwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC)load("glXSwapIntervalMESA"); -} -static void load_GLX_NV_copy_buffer(GLADloadproc load) { - if(!GLAD_GLX_NV_copy_buffer) return; - glad_glXCopyBufferSubDataNV = (PFNGLXCOPYBUFFERSUBDATANVPROC)load("glXCopyBufferSubDataNV"); - glad_glXNamedCopyBufferSubDataNV = (PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC)load("glXNamedCopyBufferSubDataNV"); -} -static void load_GLX_NV_copy_image(GLADloadproc load) { - if(!GLAD_GLX_NV_copy_image) return; - glad_glXCopyImageSubDataNV = (PFNGLXCOPYIMAGESUBDATANVPROC)load("glXCopyImageSubDataNV"); -} -static void load_GLX_NV_delay_before_swap(GLADloadproc load) { - if(!GLAD_GLX_NV_delay_before_swap) return; - glad_glXDelayBeforeSwapNV = (PFNGLXDELAYBEFORESWAPNVPROC)load("glXDelayBeforeSwapNV"); -} -static void load_GLX_NV_present_video(GLADloadproc load) { - if(!GLAD_GLX_NV_present_video) return; - glad_glXEnumerateVideoDevicesNV = (PFNGLXENUMERATEVIDEODEVICESNVPROC)load("glXEnumerateVideoDevicesNV"); - glad_glXBindVideoDeviceNV = (PFNGLXBINDVIDEODEVICENVPROC)load("glXBindVideoDeviceNV"); -} -static void load_GLX_NV_swap_group(GLADloadproc load) { - if(!GLAD_GLX_NV_swap_group) return; - glad_glXJoinSwapGroupNV = (PFNGLXJOINSWAPGROUPNVPROC)load("glXJoinSwapGroupNV"); - glad_glXBindSwapBarrierNV = (PFNGLXBINDSWAPBARRIERNVPROC)load("glXBindSwapBarrierNV"); - glad_glXQuerySwapGroupNV = (PFNGLXQUERYSWAPGROUPNVPROC)load("glXQuerySwapGroupNV"); - glad_glXQueryMaxSwapGroupsNV = (PFNGLXQUERYMAXSWAPGROUPSNVPROC)load("glXQueryMaxSwapGroupsNV"); - glad_glXQueryFrameCountNV = (PFNGLXQUERYFRAMECOUNTNVPROC)load("glXQueryFrameCountNV"); - glad_glXResetFrameCountNV = (PFNGLXRESETFRAMECOUNTNVPROC)load("glXResetFrameCountNV"); -} -static void load_GLX_NV_video_capture(GLADloadproc load) { - if(!GLAD_GLX_NV_video_capture) return; - glad_glXBindVideoCaptureDeviceNV = (PFNGLXBINDVIDEOCAPTUREDEVICENVPROC)load("glXBindVideoCaptureDeviceNV"); - glad_glXEnumerateVideoCaptureDevicesNV = (PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC)load("glXEnumerateVideoCaptureDevicesNV"); - glad_glXLockVideoCaptureDeviceNV = (PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC)load("glXLockVideoCaptureDeviceNV"); - glad_glXQueryVideoCaptureDeviceNV = (PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC)load("glXQueryVideoCaptureDeviceNV"); - glad_glXReleaseVideoCaptureDeviceNV = (PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC)load("glXReleaseVideoCaptureDeviceNV"); -} -static void load_GLX_NV_video_out(GLADloadproc load) { - if(!GLAD_GLX_NV_video_out) return; - glad_glXGetVideoDeviceNV = (PFNGLXGETVIDEODEVICENVPROC)load("glXGetVideoDeviceNV"); - glad_glXReleaseVideoDeviceNV = (PFNGLXRELEASEVIDEODEVICENVPROC)load("glXReleaseVideoDeviceNV"); - glad_glXBindVideoImageNV = (PFNGLXBINDVIDEOIMAGENVPROC)load("glXBindVideoImageNV"); - glad_glXReleaseVideoImageNV = (PFNGLXRELEASEVIDEOIMAGENVPROC)load("glXReleaseVideoImageNV"); - glad_glXSendPbufferToVideoNV = (PFNGLXSENDPBUFFERTOVIDEONVPROC)load("glXSendPbufferToVideoNV"); - glad_glXGetVideoInfoNV = (PFNGLXGETVIDEOINFONVPROC)load("glXGetVideoInfoNV"); -} -static void load_GLX_OML_sync_control(GLADloadproc load) { - if(!GLAD_GLX_OML_sync_control) return; - glad_glXGetSyncValuesOML = (PFNGLXGETSYNCVALUESOMLPROC)load("glXGetSyncValuesOML"); - glad_glXGetMscRateOML = (PFNGLXGETMSCRATEOMLPROC)load("glXGetMscRateOML"); - glad_glXSwapBuffersMscOML = (PFNGLXSWAPBUFFERSMSCOMLPROC)load("glXSwapBuffersMscOML"); - glad_glXWaitForMscOML = (PFNGLXWAITFORMSCOMLPROC)load("glXWaitForMscOML"); - glad_glXWaitForSbcOML = (PFNGLXWAITFORSBCOMLPROC)load("glXWaitForSbcOML"); -} -static void load_GLX_SGIX_dmbuffer(GLADloadproc load) { - if(!GLAD_GLX_SGIX_dmbuffer) return; -#ifdef _DM_BUFFER_H_ - glad_glXAssociateDMPbufferSGIX = (PFNGLXASSOCIATEDMPBUFFERSGIXPROC)load("glXAssociateDMPbufferSGIX"); -#else - (void)load; -#endif -} -static void load_GLX_SGIX_fbconfig(GLADloadproc load) { - if(!GLAD_GLX_SGIX_fbconfig) return; - glad_glXGetFBConfigAttribSGIX = (PFNGLXGETFBCONFIGATTRIBSGIXPROC)load("glXGetFBConfigAttribSGIX"); - glad_glXChooseFBConfigSGIX = (PFNGLXCHOOSEFBCONFIGSGIXPROC)load("glXChooseFBConfigSGIX"); - glad_glXCreateGLXPixmapWithConfigSGIX = (PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC)load("glXCreateGLXPixmapWithConfigSGIX"); - glad_glXCreateContextWithConfigSGIX = (PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC)load("glXCreateContextWithConfigSGIX"); - glad_glXGetVisualFromFBConfigSGIX = (PFNGLXGETVISUALFROMFBCONFIGSGIXPROC)load("glXGetVisualFromFBConfigSGIX"); - glad_glXGetFBConfigFromVisualSGIX = (PFNGLXGETFBCONFIGFROMVISUALSGIXPROC)load("glXGetFBConfigFromVisualSGIX"); -} -static void load_GLX_SGIX_hyperpipe(GLADloadproc load) { - if(!GLAD_GLX_SGIX_hyperpipe) return; - glad_glXQueryHyperpipeNetworkSGIX = (PFNGLXQUERYHYPERPIPENETWORKSGIXPROC)load("glXQueryHyperpipeNetworkSGIX"); - glad_glXHyperpipeConfigSGIX = (PFNGLXHYPERPIPECONFIGSGIXPROC)load("glXHyperpipeConfigSGIX"); - glad_glXQueryHyperpipeConfigSGIX = (PFNGLXQUERYHYPERPIPECONFIGSGIXPROC)load("glXQueryHyperpipeConfigSGIX"); - glad_glXDestroyHyperpipeConfigSGIX = (PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC)load("glXDestroyHyperpipeConfigSGIX"); - glad_glXBindHyperpipeSGIX = (PFNGLXBINDHYPERPIPESGIXPROC)load("glXBindHyperpipeSGIX"); - glad_glXQueryHyperpipeBestAttribSGIX = (PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC)load("glXQueryHyperpipeBestAttribSGIX"); - glad_glXHyperpipeAttribSGIX = (PFNGLXHYPERPIPEATTRIBSGIXPROC)load("glXHyperpipeAttribSGIX"); - glad_glXQueryHyperpipeAttribSGIX = (PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC)load("glXQueryHyperpipeAttribSGIX"); -} -static void load_GLX_SGIX_pbuffer(GLADloadproc load) { - if(!GLAD_GLX_SGIX_pbuffer) return; - glad_glXCreateGLXPbufferSGIX = (PFNGLXCREATEGLXPBUFFERSGIXPROC)load("glXCreateGLXPbufferSGIX"); - glad_glXDestroyGLXPbufferSGIX = (PFNGLXDESTROYGLXPBUFFERSGIXPROC)load("glXDestroyGLXPbufferSGIX"); - glad_glXQueryGLXPbufferSGIX = (PFNGLXQUERYGLXPBUFFERSGIXPROC)load("glXQueryGLXPbufferSGIX"); - glad_glXSelectEventSGIX = (PFNGLXSELECTEVENTSGIXPROC)load("glXSelectEventSGIX"); - glad_glXGetSelectedEventSGIX = (PFNGLXGETSELECTEDEVENTSGIXPROC)load("glXGetSelectedEventSGIX"); -} -static void load_GLX_SGIX_swap_barrier(GLADloadproc load) { - if(!GLAD_GLX_SGIX_swap_barrier) return; - glad_glXBindSwapBarrierSGIX = (PFNGLXBINDSWAPBARRIERSGIXPROC)load("glXBindSwapBarrierSGIX"); - glad_glXQueryMaxSwapBarriersSGIX = (PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC)load("glXQueryMaxSwapBarriersSGIX"); -} -static void load_GLX_SGIX_swap_group(GLADloadproc load) { - if(!GLAD_GLX_SGIX_swap_group) return; - glad_glXJoinSwapGroupSGIX = (PFNGLXJOINSWAPGROUPSGIXPROC)load("glXJoinSwapGroupSGIX"); -} -static void load_GLX_SGIX_video_resize(GLADloadproc load) { - if(!GLAD_GLX_SGIX_video_resize) return; - glad_glXBindChannelToWindowSGIX = (PFNGLXBINDCHANNELTOWINDOWSGIXPROC)load("glXBindChannelToWindowSGIX"); - glad_glXChannelRectSGIX = (PFNGLXCHANNELRECTSGIXPROC)load("glXChannelRectSGIX"); - glad_glXQueryChannelRectSGIX = (PFNGLXQUERYCHANNELRECTSGIXPROC)load("glXQueryChannelRectSGIX"); - glad_glXQueryChannelDeltasSGIX = (PFNGLXQUERYCHANNELDELTASSGIXPROC)load("glXQueryChannelDeltasSGIX"); - glad_glXChannelRectSyncSGIX = (PFNGLXCHANNELRECTSYNCSGIXPROC)load("glXChannelRectSyncSGIX"); -} -static void load_GLX_SGIX_video_source(GLADloadproc load) { - if(!GLAD_GLX_SGIX_video_source) return; -#ifdef _VL_H_ - glad_glXCreateGLXVideoSourceSGIX = (PFNGLXCREATEGLXVIDEOSOURCESGIXPROC)load("glXCreateGLXVideoSourceSGIX"); - glad_glXDestroyGLXVideoSourceSGIX = (PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC)load("glXDestroyGLXVideoSourceSGIX"); -#else - (void)load; -#endif -} -static void load_GLX_SGI_cushion(GLADloadproc load) { - if(!GLAD_GLX_SGI_cushion) return; - glad_glXCushionSGI = (PFNGLXCUSHIONSGIPROC)load("glXCushionSGI"); -} -static void load_GLX_SGI_make_current_read(GLADloadproc load) { - if(!GLAD_GLX_SGI_make_current_read) return; - glad_glXMakeCurrentReadSGI = (PFNGLXMAKECURRENTREADSGIPROC)load("glXMakeCurrentReadSGI"); - glad_glXGetCurrentReadDrawableSGI = (PFNGLXGETCURRENTREADDRAWABLESGIPROC)load("glXGetCurrentReadDrawableSGI"); -} -static void load_GLX_SGI_swap_control(GLADloadproc load) { - if(!GLAD_GLX_SGI_swap_control) return; - glad_glXSwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC)load("glXSwapIntervalSGI"); -} -static void load_GLX_SGI_video_sync(GLADloadproc load) { - if(!GLAD_GLX_SGI_video_sync) return; - glad_glXGetVideoSyncSGI = (PFNGLXGETVIDEOSYNCSGIPROC)load("glXGetVideoSyncSGI"); - glad_glXWaitVideoSyncSGI = (PFNGLXWAITVIDEOSYNCSGIPROC)load("glXWaitVideoSyncSGI"); -} -static void load_GLX_SUN_get_transparent_index(GLADloadproc load) { - if(!GLAD_GLX_SUN_get_transparent_index) return; - glad_glXGetTransparentIndexSUN = (PFNGLXGETTRANSPARENTINDEXSUNPROC)load("glXGetTransparentIndexSUN"); -} -static int find_extensionsGLX(void) { - if (!get_exts()) return 0; - GLAD_GLX_3DFX_multisample = has_ext("GLX_3DFX_multisample"); - GLAD_GLX_AMD_gpu_association = has_ext("GLX_AMD_gpu_association"); - GLAD_GLX_ARB_context_flush_control = has_ext("GLX_ARB_context_flush_control"); - GLAD_GLX_ARB_create_context = has_ext("GLX_ARB_create_context"); - GLAD_GLX_ARB_create_context_no_error = has_ext("GLX_ARB_create_context_no_error"); - GLAD_GLX_ARB_create_context_profile = has_ext("GLX_ARB_create_context_profile"); - GLAD_GLX_ARB_create_context_robustness = has_ext("GLX_ARB_create_context_robustness"); - GLAD_GLX_ARB_fbconfig_float = has_ext("GLX_ARB_fbconfig_float"); - GLAD_GLX_ARB_framebuffer_sRGB = has_ext("GLX_ARB_framebuffer_sRGB"); - GLAD_GLX_ARB_get_proc_address = has_ext("GLX_ARB_get_proc_address"); - GLAD_GLX_ARB_multisample = has_ext("GLX_ARB_multisample"); - GLAD_GLX_ARB_robustness_application_isolation = has_ext("GLX_ARB_robustness_application_isolation"); - GLAD_GLX_ARB_robustness_share_group_isolation = has_ext("GLX_ARB_robustness_share_group_isolation"); - GLAD_GLX_ARB_vertex_buffer_object = has_ext("GLX_ARB_vertex_buffer_object"); - GLAD_GLX_EXT_buffer_age = has_ext("GLX_EXT_buffer_age"); - GLAD_GLX_EXT_context_priority = has_ext("GLX_EXT_context_priority"); - GLAD_GLX_EXT_create_context_es2_profile = has_ext("GLX_EXT_create_context_es2_profile"); - GLAD_GLX_EXT_create_context_es_profile = has_ext("GLX_EXT_create_context_es_profile"); - GLAD_GLX_EXT_fbconfig_packed_float = has_ext("GLX_EXT_fbconfig_packed_float"); - GLAD_GLX_EXT_framebuffer_sRGB = has_ext("GLX_EXT_framebuffer_sRGB"); - GLAD_GLX_EXT_get_drawable_type = has_ext("GLX_EXT_get_drawable_type"); - GLAD_GLX_EXT_import_context = has_ext("GLX_EXT_import_context"); - GLAD_GLX_EXT_libglvnd = has_ext("GLX_EXT_libglvnd"); - GLAD_GLX_EXT_no_config_context = has_ext("GLX_EXT_no_config_context"); - GLAD_GLX_EXT_stereo_tree = has_ext("GLX_EXT_stereo_tree"); - GLAD_GLX_EXT_swap_control = has_ext("GLX_EXT_swap_control"); - GLAD_GLX_EXT_swap_control_tear = has_ext("GLX_EXT_swap_control_tear"); - GLAD_GLX_EXT_texture_from_pixmap = has_ext("GLX_EXT_texture_from_pixmap"); - GLAD_GLX_EXT_visual_info = has_ext("GLX_EXT_visual_info"); - GLAD_GLX_EXT_visual_rating = has_ext("GLX_EXT_visual_rating"); - GLAD_GLX_INTEL_swap_event = has_ext("GLX_INTEL_swap_event"); - GLAD_GLX_MESA_agp_offset = has_ext("GLX_MESA_agp_offset"); - GLAD_GLX_MESA_copy_sub_buffer = has_ext("GLX_MESA_copy_sub_buffer"); - GLAD_GLX_MESA_pixmap_colormap = has_ext("GLX_MESA_pixmap_colormap"); - GLAD_GLX_MESA_query_renderer = has_ext("GLX_MESA_query_renderer"); - GLAD_GLX_MESA_release_buffers = has_ext("GLX_MESA_release_buffers"); - GLAD_GLX_MESA_set_3dfx_mode = has_ext("GLX_MESA_set_3dfx_mode"); - GLAD_GLX_MESA_swap_control = has_ext("GLX_MESA_swap_control"); - GLAD_GLX_NV_copy_buffer = has_ext("GLX_NV_copy_buffer"); - GLAD_GLX_NV_copy_image = has_ext("GLX_NV_copy_image"); - GLAD_GLX_NV_delay_before_swap = has_ext("GLX_NV_delay_before_swap"); - GLAD_GLX_NV_float_buffer = has_ext("GLX_NV_float_buffer"); - GLAD_GLX_NV_multigpu_context = has_ext("GLX_NV_multigpu_context"); - GLAD_GLX_NV_multisample_coverage = has_ext("GLX_NV_multisample_coverage"); - GLAD_GLX_NV_present_video = has_ext("GLX_NV_present_video"); - GLAD_GLX_NV_robustness_video_memory_purge = has_ext("GLX_NV_robustness_video_memory_purge"); - GLAD_GLX_NV_swap_group = has_ext("GLX_NV_swap_group"); - GLAD_GLX_NV_video_capture = has_ext("GLX_NV_video_capture"); - GLAD_GLX_NV_video_out = has_ext("GLX_NV_video_out"); - GLAD_GLX_OML_swap_method = has_ext("GLX_OML_swap_method"); - GLAD_GLX_OML_sync_control = has_ext("GLX_OML_sync_control"); - GLAD_GLX_SGIS_blended_overlay = has_ext("GLX_SGIS_blended_overlay"); - GLAD_GLX_SGIS_multisample = has_ext("GLX_SGIS_multisample"); - GLAD_GLX_SGIS_shared_multisample = has_ext("GLX_SGIS_shared_multisample"); - GLAD_GLX_SGIX_dmbuffer = has_ext("GLX_SGIX_dmbuffer"); - GLAD_GLX_SGIX_fbconfig = has_ext("GLX_SGIX_fbconfig"); - GLAD_GLX_SGIX_hyperpipe = has_ext("GLX_SGIX_hyperpipe"); - GLAD_GLX_SGIX_pbuffer = has_ext("GLX_SGIX_pbuffer"); - GLAD_GLX_SGIX_swap_barrier = has_ext("GLX_SGIX_swap_barrier"); - GLAD_GLX_SGIX_swap_group = has_ext("GLX_SGIX_swap_group"); - GLAD_GLX_SGIX_video_resize = has_ext("GLX_SGIX_video_resize"); - GLAD_GLX_SGIX_video_source = has_ext("GLX_SGIX_video_source"); - GLAD_GLX_SGIX_visual_select_group = has_ext("GLX_SGIX_visual_select_group"); - GLAD_GLX_SGI_cushion = has_ext("GLX_SGI_cushion"); - GLAD_GLX_SGI_make_current_read = has_ext("GLX_SGI_make_current_read"); - GLAD_GLX_SGI_swap_control = has_ext("GLX_SGI_swap_control"); - GLAD_GLX_SGI_video_sync = has_ext("GLX_SGI_video_sync"); - GLAD_GLX_SUN_get_transparent_index = has_ext("GLX_SUN_get_transparent_index"); - free_exts(); - return 1; -} - -static void find_coreGLX(Display *dpy, int screen) { - int major = 0, minor = 0; - if(dpy == 0 && GLADGLXDisplay == 0) { - dpy = XOpenDisplay(0); - screen = XScreenNumberOfScreen(XDefaultScreenOfDisplay(dpy)); - } else if(dpy == 0) { - dpy = GLADGLXDisplay; - screen = GLADGLXscreen; - } - glXQueryVersion(dpy, &major, &minor); - GLADGLXDisplay = dpy; - GLADGLXscreen = screen; - GLAD_GLX_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1; - GLAD_GLX_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1; - GLAD_GLX_VERSION_1_2 = (major == 1 && minor >= 2) || major > 1; - GLAD_GLX_VERSION_1_3 = (major == 1 && minor >= 3) || major > 1; - GLAD_GLX_VERSION_1_4 = (major == 1 && minor >= 4) || major > 1; -} - -int gladLoadGLXLoader(GLADloadproc load, Display *dpy, int screen) { - glXQueryVersion = (PFNGLXQUERYVERSIONPROC)load("glXQueryVersion"); - if(glXQueryVersion == NULL) return 0; - find_coreGLX(dpy, screen); - load_GLX_VERSION_1_0(load); - load_GLX_VERSION_1_1(load); - load_GLX_VERSION_1_2(load); - load_GLX_VERSION_1_3(load); - load_GLX_VERSION_1_4(load); - - if (!find_extensionsGLX()) return 0; - load_GLX_AMD_gpu_association(load); - load_GLX_ARB_create_context(load); - load_GLX_ARB_get_proc_address(load); - load_GLX_EXT_import_context(load); - load_GLX_EXT_swap_control(load); - load_GLX_EXT_texture_from_pixmap(load); - load_GLX_MESA_agp_offset(load); - load_GLX_MESA_copy_sub_buffer(load); - load_GLX_MESA_pixmap_colormap(load); - load_GLX_MESA_query_renderer(load); - load_GLX_MESA_release_buffers(load); - load_GLX_MESA_set_3dfx_mode(load); - load_GLX_MESA_swap_control(load); - load_GLX_NV_copy_buffer(load); - load_GLX_NV_copy_image(load); - load_GLX_NV_delay_before_swap(load); - load_GLX_NV_present_video(load); - load_GLX_NV_swap_group(load); - load_GLX_NV_video_capture(load); - load_GLX_NV_video_out(load); - load_GLX_OML_sync_control(load); - load_GLX_SGIX_dmbuffer(load); - load_GLX_SGIX_fbconfig(load); - load_GLX_SGIX_hyperpipe(load); - load_GLX_SGIX_pbuffer(load); - load_GLX_SGIX_swap_barrier(load); - load_GLX_SGIX_swap_group(load); - load_GLX_SGIX_video_resize(load); - load_GLX_SGIX_video_source(load); - load_GLX_SGI_cushion(load); - load_GLX_SGI_make_current_read(load); - load_GLX_SGI_swap_control(load); - load_GLX_SGI_video_sync(load); - load_GLX_SUN_get_transparent_index(load); - return 1; -} - diff --git a/third_party/glad/src/glad_wgl.c b/third_party/glad/src/glad_wgl.c deleted file mode 100644 index d9ad035c..00000000 --- a/third_party/glad/src/glad_wgl.c +++ /dev/null @@ -1,756 +0,0 @@ -/* - - WGL loader generated by glad 0.1.36 on Thu Sep 15 11:18:46 2022. - - Language/Generator: C/C++ - Specification: wgl - APIs: wgl=1.0 - Profile: - - Extensions: - WGL_3DFX_multisample, - WGL_3DL_stereo_control, - WGL_AMD_gpu_association, - WGL_ARB_buffer_region, - WGL_ARB_context_flush_control, - WGL_ARB_create_context, - WGL_ARB_create_context_no_error, - WGL_ARB_create_context_profile, - WGL_ARB_create_context_robustness, - WGL_ARB_extensions_string, - WGL_ARB_framebuffer_sRGB, - WGL_ARB_make_current_read, - WGL_ARB_multisample, - WGL_ARB_pbuffer, - WGL_ARB_pixel_format, - WGL_ARB_pixel_format_float, - WGL_ARB_render_texture, - WGL_ARB_robustness_application_isolation, - WGL_ARB_robustness_share_group_isolation, - WGL_ATI_pixel_format_float, - WGL_ATI_render_texture_rectangle, - WGL_EXT_colorspace, - WGL_EXT_create_context_es2_profile, - WGL_EXT_create_context_es_profile, - WGL_EXT_depth_float, - WGL_EXT_display_color_table, - WGL_EXT_extensions_string, - WGL_EXT_framebuffer_sRGB, - WGL_EXT_make_current_read, - WGL_EXT_multisample, - WGL_EXT_pbuffer, - WGL_EXT_pixel_format, - WGL_EXT_pixel_format_packed_float, - WGL_EXT_swap_control, - WGL_EXT_swap_control_tear, - WGL_I3D_digital_video_control, - WGL_I3D_gamma, - WGL_I3D_genlock, - WGL_I3D_image_buffer, - WGL_I3D_swap_frame_lock, - WGL_I3D_swap_frame_usage, - WGL_NV_DX_interop, - WGL_NV_DX_interop2, - WGL_NV_copy_image, - WGL_NV_delay_before_swap, - WGL_NV_float_buffer, - WGL_NV_gpu_affinity, - WGL_NV_multigpu_context, - WGL_NV_multisample_coverage, - WGL_NV_present_video, - WGL_NV_render_depth_texture, - WGL_NV_render_texture_rectangle, - WGL_NV_swap_group, - WGL_NV_vertex_array_range, - WGL_NV_video_capture, - WGL_NV_video_output, - WGL_OML_sync_control - Loader: True - Local files: True - Omit khrplatform: False - Reproducible: False - - Commandline: - --api="wgl=1.0" --generator="c" --spec="wgl" --local-files --extensions="WGL_3DFX_multisample,WGL_3DL_stereo_control,WGL_AMD_gpu_association,WGL_ARB_buffer_region,WGL_ARB_context_flush_control,WGL_ARB_create_context,WGL_ARB_create_context_no_error,WGL_ARB_create_context_profile,WGL_ARB_create_context_robustness,WGL_ARB_extensions_string,WGL_ARB_framebuffer_sRGB,WGL_ARB_make_current_read,WGL_ARB_multisample,WGL_ARB_pbuffer,WGL_ARB_pixel_format,WGL_ARB_pixel_format_float,WGL_ARB_render_texture,WGL_ARB_robustness_application_isolation,WGL_ARB_robustness_share_group_isolation,WGL_ATI_pixel_format_float,WGL_ATI_render_texture_rectangle,WGL_EXT_colorspace,WGL_EXT_create_context_es2_profile,WGL_EXT_create_context_es_profile,WGL_EXT_depth_float,WGL_EXT_display_color_table,WGL_EXT_extensions_string,WGL_EXT_framebuffer_sRGB,WGL_EXT_make_current_read,WGL_EXT_multisample,WGL_EXT_pbuffer,WGL_EXT_pixel_format,WGL_EXT_pixel_format_packed_float,WGL_EXT_swap_control,WGL_EXT_swap_control_tear,WGL_I3D_digital_video_control,WGL_I3D_gamma,WGL_I3D_genlock,WGL_I3D_image_buffer,WGL_I3D_swap_frame_lock,WGL_I3D_swap_frame_usage,WGL_NV_DX_interop,WGL_NV_DX_interop2,WGL_NV_copy_image,WGL_NV_delay_before_swap,WGL_NV_float_buffer,WGL_NV_gpu_affinity,WGL_NV_multigpu_context,WGL_NV_multisample_coverage,WGL_NV_present_video,WGL_NV_render_depth_texture,WGL_NV_render_texture_rectangle,WGL_NV_swap_group,WGL_NV_vertex_array_range,WGL_NV_video_capture,WGL_NV_video_output,WGL_OML_sync_control" - Online: - Too many extensions -*/ - -#include -#include -#include -#include - -static void* get_proc(const char *namez); - -#if defined(_WIN32) || defined(__CYGWIN__) -#ifndef _WINDOWS_ -#undef APIENTRY -#endif -#include -static HMODULE libGL; - -typedef void* (APIENTRYP PFNWGLGETPROCADDRESSPROC_PRIVATE)(const char*); -static PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; - -#ifdef _MSC_VER -#ifdef __has_include - #if __has_include() - #define HAVE_WINAPIFAMILY 1 - #endif -#elif _MSC_VER >= 1700 && !_USING_V110_SDK71_ - #define HAVE_WINAPIFAMILY 1 -#endif -#endif - -#ifdef HAVE_WINAPIFAMILY - #include - #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) - #define IS_UWP 1 - #endif -#endif - -static -int open_wgl(void) { -#ifndef IS_UWP - libGL = LoadLibraryW(L"opengl32.dll"); - if(libGL != NULL) { - void (* tmp)(void); - tmp = (void(*)(void)) GetProcAddress(libGL, "wglGetProcAddress"); - gladGetProcAddressPtr = (PFNWGLGETPROCADDRESSPROC_PRIVATE) tmp; - return gladGetProcAddressPtr != NULL; - } -#endif - - return 0; -} - -static -void close_wgl(void) { - if(libGL != NULL) { - FreeLibrary((HMODULE) libGL); - libGL = NULL; - } -} -#else -#include -static void* libGL; - -#if !defined(__APPLE__) && !defined(__HAIKU__) -typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*); -static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; -#endif - -static -int open_wgl(void) { -#ifdef __APPLE__ - static const char *NAMES[] = { - "../Frameworks/OpenGL.framework/OpenGL", - "/Library/Frameworks/OpenGL.framework/OpenGL", - "/System/Library/Frameworks/OpenGL.framework/OpenGL", - "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL" - }; -#else - static const char *NAMES[] = {"libGL.so.1", "libGL.so"}; -#endif - - unsigned int index = 0; - for(index = 0; index < (sizeof(NAMES) / sizeof(NAMES[0])); index++) { - libGL = dlopen(NAMES[index], RTLD_NOW | RTLD_GLOBAL); - - if(libGL != NULL) { -#if defined(__APPLE__) || defined(__HAIKU__) - return 1; -#else - gladGetProcAddressPtr = (PFNGLXGETPROCADDRESSPROC_PRIVATE)dlsym(libGL, - "glXGetProcAddressARB"); - return gladGetProcAddressPtr != NULL; -#endif - } - } - - return 0; -} - -static -void close_wgl(void) { - if(libGL != NULL) { - dlclose(libGL); - libGL = NULL; - } -} -#endif - -static -void* get_proc(const char *namez) { - void* result = NULL; - if(libGL == NULL) return NULL; - -#if !defined(__APPLE__) && !defined(__HAIKU__) - if(gladGetProcAddressPtr != NULL) { - result = gladGetProcAddressPtr(namez); - } -#endif - if(result == NULL) { -#if defined(_WIN32) || defined(__CYGWIN__) - result = (void*)GetProcAddress((HMODULE) libGL, namez); -#else - result = dlsym(libGL, namez); -#endif - } - - return result; -} - -int gladLoadWGL(HDC hdc) { - int status = 0; - - if(open_wgl()) { - status = gladLoadWGLLoader((GLADloadproc)get_proc, hdc); - } - - return status; -} - -void gladUnloadGLX(void) { - close_wgl(); -} - -static HDC GLADWGLhdc = (HDC)INVALID_HANDLE_VALUE; - -static int get_exts(void) { - return 1; -} - -static void free_exts(void) { - return; -} - -static int has_ext(const char *ext) { - const char *terminator; - const char *loc; - const char *extensions; - - if(wglGetExtensionsStringEXT == NULL && wglGetExtensionsStringARB == NULL) - return 0; - - if(wglGetExtensionsStringARB == NULL || GLADWGLhdc == INVALID_HANDLE_VALUE) - extensions = wglGetExtensionsStringEXT(); - else - extensions = wglGetExtensionsStringARB(GLADWGLhdc); - - if(extensions == NULL || ext == NULL) - return 0; - - while(1) { - loc = strstr(extensions, ext); - if(loc == NULL) - break; - - terminator = loc + strlen(ext); - if((loc == extensions || *(loc - 1) == ' ') && - (*terminator == ' ' || *terminator == '\0')) - { - return 1; - } - extensions = terminator; - } - - return 0; -} -int GLAD_WGL_VERSION_1_0 = 0; -int GLAD_WGL_3DFX_multisample = 0; -int GLAD_WGL_3DL_stereo_control = 0; -int GLAD_WGL_AMD_gpu_association = 0; -int GLAD_WGL_ARB_buffer_region = 0; -int GLAD_WGL_ARB_context_flush_control = 0; -int GLAD_WGL_ARB_create_context = 0; -int GLAD_WGL_ARB_create_context_no_error = 0; -int GLAD_WGL_ARB_create_context_profile = 0; -int GLAD_WGL_ARB_create_context_robustness = 0; -int GLAD_WGL_ARB_extensions_string = 0; -int GLAD_WGL_ARB_framebuffer_sRGB = 0; -int GLAD_WGL_ARB_make_current_read = 0; -int GLAD_WGL_ARB_multisample = 0; -int GLAD_WGL_ARB_pbuffer = 0; -int GLAD_WGL_ARB_pixel_format = 0; -int GLAD_WGL_ARB_pixel_format_float = 0; -int GLAD_WGL_ARB_render_texture = 0; -int GLAD_WGL_ARB_robustness_application_isolation = 0; -int GLAD_WGL_ARB_robustness_share_group_isolation = 0; -int GLAD_WGL_ATI_pixel_format_float = 0; -int GLAD_WGL_ATI_render_texture_rectangle = 0; -int GLAD_WGL_EXT_colorspace = 0; -int GLAD_WGL_EXT_create_context_es2_profile = 0; -int GLAD_WGL_EXT_create_context_es_profile = 0; -int GLAD_WGL_EXT_depth_float = 0; -int GLAD_WGL_EXT_display_color_table = 0; -int GLAD_WGL_EXT_extensions_string = 0; -int GLAD_WGL_EXT_framebuffer_sRGB = 0; -int GLAD_WGL_EXT_make_current_read = 0; -int GLAD_WGL_EXT_multisample = 0; -int GLAD_WGL_EXT_pbuffer = 0; -int GLAD_WGL_EXT_pixel_format = 0; -int GLAD_WGL_EXT_pixel_format_packed_float = 0; -int GLAD_WGL_EXT_swap_control = 0; -int GLAD_WGL_EXT_swap_control_tear = 0; -int GLAD_WGL_I3D_digital_video_control = 0; -int GLAD_WGL_I3D_gamma = 0; -int GLAD_WGL_I3D_genlock = 0; -int GLAD_WGL_I3D_image_buffer = 0; -int GLAD_WGL_I3D_swap_frame_lock = 0; -int GLAD_WGL_I3D_swap_frame_usage = 0; -int GLAD_WGL_NV_DX_interop = 0; -int GLAD_WGL_NV_DX_interop2 = 0; -int GLAD_WGL_NV_copy_image = 0; -int GLAD_WGL_NV_delay_before_swap = 0; -int GLAD_WGL_NV_float_buffer = 0; -int GLAD_WGL_NV_gpu_affinity = 0; -int GLAD_WGL_NV_multigpu_context = 0; -int GLAD_WGL_NV_multisample_coverage = 0; -int GLAD_WGL_NV_present_video = 0; -int GLAD_WGL_NV_render_depth_texture = 0; -int GLAD_WGL_NV_render_texture_rectangle = 0; -int GLAD_WGL_NV_swap_group = 0; -int GLAD_WGL_NV_vertex_array_range = 0; -int GLAD_WGL_NV_video_capture = 0; -int GLAD_WGL_NV_video_output = 0; -int GLAD_WGL_OML_sync_control = 0; -PFNWGLSETSTEREOEMITTERSTATE3DLPROC glad_wglSetStereoEmitterState3DL = NULL; -PFNWGLGETGPUIDSAMDPROC glad_wglGetGPUIDsAMD = NULL; -PFNWGLGETGPUINFOAMDPROC glad_wglGetGPUInfoAMD = NULL; -PFNWGLGETCONTEXTGPUIDAMDPROC glad_wglGetContextGPUIDAMD = NULL; -PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC glad_wglCreateAssociatedContextAMD = NULL; -PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC glad_wglCreateAssociatedContextAttribsAMD = NULL; -PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC glad_wglDeleteAssociatedContextAMD = NULL; -PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC glad_wglMakeAssociatedContextCurrentAMD = NULL; -PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC glad_wglGetCurrentAssociatedContextAMD = NULL; -PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC glad_wglBlitContextFramebufferAMD = NULL; -PFNWGLCREATEBUFFERREGIONARBPROC glad_wglCreateBufferRegionARB = NULL; -PFNWGLDELETEBUFFERREGIONARBPROC glad_wglDeleteBufferRegionARB = NULL; -PFNWGLSAVEBUFFERREGIONARBPROC glad_wglSaveBufferRegionARB = NULL; -PFNWGLRESTOREBUFFERREGIONARBPROC glad_wglRestoreBufferRegionARB = NULL; -PFNWGLCREATECONTEXTATTRIBSARBPROC glad_wglCreateContextAttribsARB = NULL; -PFNWGLGETEXTENSIONSSTRINGARBPROC glad_wglGetExtensionsStringARB = NULL; -PFNWGLMAKECONTEXTCURRENTARBPROC glad_wglMakeContextCurrentARB = NULL; -PFNWGLGETCURRENTREADDCARBPROC glad_wglGetCurrentReadDCARB = NULL; -PFNWGLCREATEPBUFFERARBPROC glad_wglCreatePbufferARB = NULL; -PFNWGLGETPBUFFERDCARBPROC glad_wglGetPbufferDCARB = NULL; -PFNWGLRELEASEPBUFFERDCARBPROC glad_wglReleasePbufferDCARB = NULL; -PFNWGLDESTROYPBUFFERARBPROC glad_wglDestroyPbufferARB = NULL; -PFNWGLQUERYPBUFFERARBPROC glad_wglQueryPbufferARB = NULL; -PFNWGLGETPIXELFORMATATTRIBIVARBPROC glad_wglGetPixelFormatAttribivARB = NULL; -PFNWGLGETPIXELFORMATATTRIBFVARBPROC glad_wglGetPixelFormatAttribfvARB = NULL; -PFNWGLCHOOSEPIXELFORMATARBPROC glad_wglChoosePixelFormatARB = NULL; -PFNWGLBINDTEXIMAGEARBPROC glad_wglBindTexImageARB = NULL; -PFNWGLRELEASETEXIMAGEARBPROC glad_wglReleaseTexImageARB = NULL; -PFNWGLSETPBUFFERATTRIBARBPROC glad_wglSetPbufferAttribARB = NULL; -PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC glad_wglCreateDisplayColorTableEXT = NULL; -PFNWGLLOADDISPLAYCOLORTABLEEXTPROC glad_wglLoadDisplayColorTableEXT = NULL; -PFNWGLBINDDISPLAYCOLORTABLEEXTPROC glad_wglBindDisplayColorTableEXT = NULL; -PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC glad_wglDestroyDisplayColorTableEXT = NULL; -PFNWGLGETEXTENSIONSSTRINGEXTPROC glad_wglGetExtensionsStringEXT = NULL; -PFNWGLMAKECONTEXTCURRENTEXTPROC glad_wglMakeContextCurrentEXT = NULL; -PFNWGLGETCURRENTREADDCEXTPROC glad_wglGetCurrentReadDCEXT = NULL; -PFNWGLCREATEPBUFFEREXTPROC glad_wglCreatePbufferEXT = NULL; -PFNWGLGETPBUFFERDCEXTPROC glad_wglGetPbufferDCEXT = NULL; -PFNWGLRELEASEPBUFFERDCEXTPROC glad_wglReleasePbufferDCEXT = NULL; -PFNWGLDESTROYPBUFFEREXTPROC glad_wglDestroyPbufferEXT = NULL; -PFNWGLQUERYPBUFFEREXTPROC glad_wglQueryPbufferEXT = NULL; -PFNWGLGETPIXELFORMATATTRIBIVEXTPROC glad_wglGetPixelFormatAttribivEXT = NULL; -PFNWGLGETPIXELFORMATATTRIBFVEXTPROC glad_wglGetPixelFormatAttribfvEXT = NULL; -PFNWGLCHOOSEPIXELFORMATEXTPROC glad_wglChoosePixelFormatEXT = NULL; -PFNWGLSWAPINTERVALEXTPROC glad_wglSwapIntervalEXT = NULL; -PFNWGLGETSWAPINTERVALEXTPROC glad_wglGetSwapIntervalEXT = NULL; -PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC glad_wglGetDigitalVideoParametersI3D = NULL; -PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC glad_wglSetDigitalVideoParametersI3D = NULL; -PFNWGLGETGAMMATABLEPARAMETERSI3DPROC glad_wglGetGammaTableParametersI3D = NULL; -PFNWGLSETGAMMATABLEPARAMETERSI3DPROC glad_wglSetGammaTableParametersI3D = NULL; -PFNWGLGETGAMMATABLEI3DPROC glad_wglGetGammaTableI3D = NULL; -PFNWGLSETGAMMATABLEI3DPROC glad_wglSetGammaTableI3D = NULL; -PFNWGLENABLEGENLOCKI3DPROC glad_wglEnableGenlockI3D = NULL; -PFNWGLDISABLEGENLOCKI3DPROC glad_wglDisableGenlockI3D = NULL; -PFNWGLISENABLEDGENLOCKI3DPROC glad_wglIsEnabledGenlockI3D = NULL; -PFNWGLGENLOCKSOURCEI3DPROC glad_wglGenlockSourceI3D = NULL; -PFNWGLGETGENLOCKSOURCEI3DPROC glad_wglGetGenlockSourceI3D = NULL; -PFNWGLGENLOCKSOURCEEDGEI3DPROC glad_wglGenlockSourceEdgeI3D = NULL; -PFNWGLGETGENLOCKSOURCEEDGEI3DPROC glad_wglGetGenlockSourceEdgeI3D = NULL; -PFNWGLGENLOCKSAMPLERATEI3DPROC glad_wglGenlockSampleRateI3D = NULL; -PFNWGLGETGENLOCKSAMPLERATEI3DPROC glad_wglGetGenlockSampleRateI3D = NULL; -PFNWGLGENLOCKSOURCEDELAYI3DPROC glad_wglGenlockSourceDelayI3D = NULL; -PFNWGLGETGENLOCKSOURCEDELAYI3DPROC glad_wglGetGenlockSourceDelayI3D = NULL; -PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC glad_wglQueryGenlockMaxSourceDelayI3D = NULL; -PFNWGLCREATEIMAGEBUFFERI3DPROC glad_wglCreateImageBufferI3D = NULL; -PFNWGLDESTROYIMAGEBUFFERI3DPROC glad_wglDestroyImageBufferI3D = NULL; -PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC glad_wglAssociateImageBufferEventsI3D = NULL; -PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC glad_wglReleaseImageBufferEventsI3D = NULL; -PFNWGLENABLEFRAMELOCKI3DPROC glad_wglEnableFrameLockI3D = NULL; -PFNWGLDISABLEFRAMELOCKI3DPROC glad_wglDisableFrameLockI3D = NULL; -PFNWGLISENABLEDFRAMELOCKI3DPROC glad_wglIsEnabledFrameLockI3D = NULL; -PFNWGLQUERYFRAMELOCKMASTERI3DPROC glad_wglQueryFrameLockMasterI3D = NULL; -PFNWGLGETFRAMEUSAGEI3DPROC glad_wglGetFrameUsageI3D = NULL; -PFNWGLBEGINFRAMETRACKINGI3DPROC glad_wglBeginFrameTrackingI3D = NULL; -PFNWGLENDFRAMETRACKINGI3DPROC glad_wglEndFrameTrackingI3D = NULL; -PFNWGLQUERYFRAMETRACKINGI3DPROC glad_wglQueryFrameTrackingI3D = NULL; -PFNWGLDXSETRESOURCESHAREHANDLENVPROC glad_wglDXSetResourceShareHandleNV = NULL; -PFNWGLDXOPENDEVICENVPROC glad_wglDXOpenDeviceNV = NULL; -PFNWGLDXCLOSEDEVICENVPROC glad_wglDXCloseDeviceNV = NULL; -PFNWGLDXREGISTEROBJECTNVPROC glad_wglDXRegisterObjectNV = NULL; -PFNWGLDXUNREGISTEROBJECTNVPROC glad_wglDXUnregisterObjectNV = NULL; -PFNWGLDXOBJECTACCESSNVPROC glad_wglDXObjectAccessNV = NULL; -PFNWGLDXLOCKOBJECTSNVPROC glad_wglDXLockObjectsNV = NULL; -PFNWGLDXUNLOCKOBJECTSNVPROC glad_wglDXUnlockObjectsNV = NULL; -PFNWGLCOPYIMAGESUBDATANVPROC glad_wglCopyImageSubDataNV = NULL; -PFNWGLDELAYBEFORESWAPNVPROC glad_wglDelayBeforeSwapNV = NULL; -PFNWGLENUMGPUSNVPROC glad_wglEnumGpusNV = NULL; -PFNWGLENUMGPUDEVICESNVPROC glad_wglEnumGpuDevicesNV = NULL; -PFNWGLCREATEAFFINITYDCNVPROC glad_wglCreateAffinityDCNV = NULL; -PFNWGLENUMGPUSFROMAFFINITYDCNVPROC glad_wglEnumGpusFromAffinityDCNV = NULL; -PFNWGLDELETEDCNVPROC glad_wglDeleteDCNV = NULL; -PFNWGLENUMERATEVIDEODEVICESNVPROC glad_wglEnumerateVideoDevicesNV = NULL; -PFNWGLBINDVIDEODEVICENVPROC glad_wglBindVideoDeviceNV = NULL; -PFNWGLQUERYCURRENTCONTEXTNVPROC glad_wglQueryCurrentContextNV = NULL; -PFNWGLJOINSWAPGROUPNVPROC glad_wglJoinSwapGroupNV = NULL; -PFNWGLBINDSWAPBARRIERNVPROC glad_wglBindSwapBarrierNV = NULL; -PFNWGLQUERYSWAPGROUPNVPROC glad_wglQuerySwapGroupNV = NULL; -PFNWGLQUERYMAXSWAPGROUPSNVPROC glad_wglQueryMaxSwapGroupsNV = NULL; -PFNWGLQUERYFRAMECOUNTNVPROC glad_wglQueryFrameCountNV = NULL; -PFNWGLRESETFRAMECOUNTNVPROC glad_wglResetFrameCountNV = NULL; -PFNWGLALLOCATEMEMORYNVPROC glad_wglAllocateMemoryNV = NULL; -PFNWGLFREEMEMORYNVPROC glad_wglFreeMemoryNV = NULL; -PFNWGLBINDVIDEOCAPTUREDEVICENVPROC glad_wglBindVideoCaptureDeviceNV = NULL; -PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC glad_wglEnumerateVideoCaptureDevicesNV = NULL; -PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC glad_wglLockVideoCaptureDeviceNV = NULL; -PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC glad_wglQueryVideoCaptureDeviceNV = NULL; -PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC glad_wglReleaseVideoCaptureDeviceNV = NULL; -PFNWGLGETVIDEODEVICENVPROC glad_wglGetVideoDeviceNV = NULL; -PFNWGLRELEASEVIDEODEVICENVPROC glad_wglReleaseVideoDeviceNV = NULL; -PFNWGLBINDVIDEOIMAGENVPROC glad_wglBindVideoImageNV = NULL; -PFNWGLRELEASEVIDEOIMAGENVPROC glad_wglReleaseVideoImageNV = NULL; -PFNWGLSENDPBUFFERTOVIDEONVPROC glad_wglSendPbufferToVideoNV = NULL; -PFNWGLGETVIDEOINFONVPROC glad_wglGetVideoInfoNV = NULL; -PFNWGLGETSYNCVALUESOMLPROC glad_wglGetSyncValuesOML = NULL; -PFNWGLGETMSCRATEOMLPROC glad_wglGetMscRateOML = NULL; -PFNWGLSWAPBUFFERSMSCOMLPROC glad_wglSwapBuffersMscOML = NULL; -PFNWGLSWAPLAYERBUFFERSMSCOMLPROC glad_wglSwapLayerBuffersMscOML = NULL; -PFNWGLWAITFORMSCOMLPROC glad_wglWaitForMscOML = NULL; -PFNWGLWAITFORSBCOMLPROC glad_wglWaitForSbcOML = NULL; -static void load_WGL_3DL_stereo_control(GLADloadproc load) { - if(!GLAD_WGL_3DL_stereo_control) return; - glad_wglSetStereoEmitterState3DL = (PFNWGLSETSTEREOEMITTERSTATE3DLPROC)load("wglSetStereoEmitterState3DL"); -} -static void load_WGL_AMD_gpu_association(GLADloadproc load) { - if(!GLAD_WGL_AMD_gpu_association) return; - glad_wglGetGPUIDsAMD = (PFNWGLGETGPUIDSAMDPROC)load("wglGetGPUIDsAMD"); - glad_wglGetGPUInfoAMD = (PFNWGLGETGPUINFOAMDPROC)load("wglGetGPUInfoAMD"); - glad_wglGetContextGPUIDAMD = (PFNWGLGETCONTEXTGPUIDAMDPROC)load("wglGetContextGPUIDAMD"); - glad_wglCreateAssociatedContextAMD = (PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC)load("wglCreateAssociatedContextAMD"); - glad_wglCreateAssociatedContextAttribsAMD = (PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC)load("wglCreateAssociatedContextAttribsAMD"); - glad_wglDeleteAssociatedContextAMD = (PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC)load("wglDeleteAssociatedContextAMD"); - glad_wglMakeAssociatedContextCurrentAMD = (PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC)load("wglMakeAssociatedContextCurrentAMD"); - glad_wglGetCurrentAssociatedContextAMD = (PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC)load("wglGetCurrentAssociatedContextAMD"); - glad_wglBlitContextFramebufferAMD = (PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC)load("wglBlitContextFramebufferAMD"); -} -static void load_WGL_ARB_buffer_region(GLADloadproc load) { - if(!GLAD_WGL_ARB_buffer_region) return; - glad_wglCreateBufferRegionARB = (PFNWGLCREATEBUFFERREGIONARBPROC)load("wglCreateBufferRegionARB"); - glad_wglDeleteBufferRegionARB = (PFNWGLDELETEBUFFERREGIONARBPROC)load("wglDeleteBufferRegionARB"); - glad_wglSaveBufferRegionARB = (PFNWGLSAVEBUFFERREGIONARBPROC)load("wglSaveBufferRegionARB"); - glad_wglRestoreBufferRegionARB = (PFNWGLRESTOREBUFFERREGIONARBPROC)load("wglRestoreBufferRegionARB"); -} -static void load_WGL_ARB_create_context(GLADloadproc load) { - if(!GLAD_WGL_ARB_create_context) return; - glad_wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)load("wglCreateContextAttribsARB"); -} -static void load_WGL_ARB_extensions_string(GLADloadproc load) { - if(!GLAD_WGL_ARB_extensions_string) return; - glad_wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)load("wglGetExtensionsStringARB"); -} -static void load_WGL_ARB_make_current_read(GLADloadproc load) { - if(!GLAD_WGL_ARB_make_current_read) return; - glad_wglMakeContextCurrentARB = (PFNWGLMAKECONTEXTCURRENTARBPROC)load("wglMakeContextCurrentARB"); - glad_wglGetCurrentReadDCARB = (PFNWGLGETCURRENTREADDCARBPROC)load("wglGetCurrentReadDCARB"); -} -static void load_WGL_ARB_pbuffer(GLADloadproc load) { - if(!GLAD_WGL_ARB_pbuffer) return; - glad_wglCreatePbufferARB = (PFNWGLCREATEPBUFFERARBPROC)load("wglCreatePbufferARB"); - glad_wglGetPbufferDCARB = (PFNWGLGETPBUFFERDCARBPROC)load("wglGetPbufferDCARB"); - glad_wglReleasePbufferDCARB = (PFNWGLRELEASEPBUFFERDCARBPROC)load("wglReleasePbufferDCARB"); - glad_wglDestroyPbufferARB = (PFNWGLDESTROYPBUFFERARBPROC)load("wglDestroyPbufferARB"); - glad_wglQueryPbufferARB = (PFNWGLQUERYPBUFFERARBPROC)load("wglQueryPbufferARB"); -} -static void load_WGL_ARB_pixel_format(GLADloadproc load) { - if(!GLAD_WGL_ARB_pixel_format) return; - glad_wglGetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC)load("wglGetPixelFormatAttribivARB"); - glad_wglGetPixelFormatAttribfvARB = (PFNWGLGETPIXELFORMATATTRIBFVARBPROC)load("wglGetPixelFormatAttribfvARB"); - glad_wglChoosePixelFormatARB = (PFNWGLCHOOSEPIXELFORMATARBPROC)load("wglChoosePixelFormatARB"); -} -static void load_WGL_ARB_render_texture(GLADloadproc load) { - if(!GLAD_WGL_ARB_render_texture) return; - glad_wglBindTexImageARB = (PFNWGLBINDTEXIMAGEARBPROC)load("wglBindTexImageARB"); - glad_wglReleaseTexImageARB = (PFNWGLRELEASETEXIMAGEARBPROC)load("wglReleaseTexImageARB"); - glad_wglSetPbufferAttribARB = (PFNWGLSETPBUFFERATTRIBARBPROC)load("wglSetPbufferAttribARB"); -} -static void load_WGL_EXT_display_color_table(GLADloadproc load) { - if(!GLAD_WGL_EXT_display_color_table) return; - glad_wglCreateDisplayColorTableEXT = (PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC)load("wglCreateDisplayColorTableEXT"); - glad_wglLoadDisplayColorTableEXT = (PFNWGLLOADDISPLAYCOLORTABLEEXTPROC)load("wglLoadDisplayColorTableEXT"); - glad_wglBindDisplayColorTableEXT = (PFNWGLBINDDISPLAYCOLORTABLEEXTPROC)load("wglBindDisplayColorTableEXT"); - glad_wglDestroyDisplayColorTableEXT = (PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC)load("wglDestroyDisplayColorTableEXT"); -} -static void load_WGL_EXT_extensions_string(GLADloadproc load) { - if(!GLAD_WGL_EXT_extensions_string) return; - glad_wglGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)load("wglGetExtensionsStringEXT"); -} -static void load_WGL_EXT_make_current_read(GLADloadproc load) { - if(!GLAD_WGL_EXT_make_current_read) return; - glad_wglMakeContextCurrentEXT = (PFNWGLMAKECONTEXTCURRENTEXTPROC)load("wglMakeContextCurrentEXT"); - glad_wglGetCurrentReadDCEXT = (PFNWGLGETCURRENTREADDCEXTPROC)load("wglGetCurrentReadDCEXT"); -} -static void load_WGL_EXT_pbuffer(GLADloadproc load) { - if(!GLAD_WGL_EXT_pbuffer) return; - glad_wglCreatePbufferEXT = (PFNWGLCREATEPBUFFEREXTPROC)load("wglCreatePbufferEXT"); - glad_wglGetPbufferDCEXT = (PFNWGLGETPBUFFERDCEXTPROC)load("wglGetPbufferDCEXT"); - glad_wglReleasePbufferDCEXT = (PFNWGLRELEASEPBUFFERDCEXTPROC)load("wglReleasePbufferDCEXT"); - glad_wglDestroyPbufferEXT = (PFNWGLDESTROYPBUFFEREXTPROC)load("wglDestroyPbufferEXT"); - glad_wglQueryPbufferEXT = (PFNWGLQUERYPBUFFEREXTPROC)load("wglQueryPbufferEXT"); -} -static void load_WGL_EXT_pixel_format(GLADloadproc load) { - if(!GLAD_WGL_EXT_pixel_format) return; - glad_wglGetPixelFormatAttribivEXT = (PFNWGLGETPIXELFORMATATTRIBIVEXTPROC)load("wglGetPixelFormatAttribivEXT"); - glad_wglGetPixelFormatAttribfvEXT = (PFNWGLGETPIXELFORMATATTRIBFVEXTPROC)load("wglGetPixelFormatAttribfvEXT"); - glad_wglChoosePixelFormatEXT = (PFNWGLCHOOSEPIXELFORMATEXTPROC)load("wglChoosePixelFormatEXT"); -} -static void load_WGL_EXT_swap_control(GLADloadproc load) { - if(!GLAD_WGL_EXT_swap_control) return; - glad_wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)load("wglSwapIntervalEXT"); - glad_wglGetSwapIntervalEXT = (PFNWGLGETSWAPINTERVALEXTPROC)load("wglGetSwapIntervalEXT"); -} -static void load_WGL_I3D_digital_video_control(GLADloadproc load) { - if(!GLAD_WGL_I3D_digital_video_control) return; - glad_wglGetDigitalVideoParametersI3D = (PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC)load("wglGetDigitalVideoParametersI3D"); - glad_wglSetDigitalVideoParametersI3D = (PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC)load("wglSetDigitalVideoParametersI3D"); -} -static void load_WGL_I3D_gamma(GLADloadproc load) { - if(!GLAD_WGL_I3D_gamma) return; - glad_wglGetGammaTableParametersI3D = (PFNWGLGETGAMMATABLEPARAMETERSI3DPROC)load("wglGetGammaTableParametersI3D"); - glad_wglSetGammaTableParametersI3D = (PFNWGLSETGAMMATABLEPARAMETERSI3DPROC)load("wglSetGammaTableParametersI3D"); - glad_wglGetGammaTableI3D = (PFNWGLGETGAMMATABLEI3DPROC)load("wglGetGammaTableI3D"); - glad_wglSetGammaTableI3D = (PFNWGLSETGAMMATABLEI3DPROC)load("wglSetGammaTableI3D"); -} -static void load_WGL_I3D_genlock(GLADloadproc load) { - if(!GLAD_WGL_I3D_genlock) return; - glad_wglEnableGenlockI3D = (PFNWGLENABLEGENLOCKI3DPROC)load("wglEnableGenlockI3D"); - glad_wglDisableGenlockI3D = (PFNWGLDISABLEGENLOCKI3DPROC)load("wglDisableGenlockI3D"); - glad_wglIsEnabledGenlockI3D = (PFNWGLISENABLEDGENLOCKI3DPROC)load("wglIsEnabledGenlockI3D"); - glad_wglGenlockSourceI3D = (PFNWGLGENLOCKSOURCEI3DPROC)load("wglGenlockSourceI3D"); - glad_wglGetGenlockSourceI3D = (PFNWGLGETGENLOCKSOURCEI3DPROC)load("wglGetGenlockSourceI3D"); - glad_wglGenlockSourceEdgeI3D = (PFNWGLGENLOCKSOURCEEDGEI3DPROC)load("wglGenlockSourceEdgeI3D"); - glad_wglGetGenlockSourceEdgeI3D = (PFNWGLGETGENLOCKSOURCEEDGEI3DPROC)load("wglGetGenlockSourceEdgeI3D"); - glad_wglGenlockSampleRateI3D = (PFNWGLGENLOCKSAMPLERATEI3DPROC)load("wglGenlockSampleRateI3D"); - glad_wglGetGenlockSampleRateI3D = (PFNWGLGETGENLOCKSAMPLERATEI3DPROC)load("wglGetGenlockSampleRateI3D"); - glad_wglGenlockSourceDelayI3D = (PFNWGLGENLOCKSOURCEDELAYI3DPROC)load("wglGenlockSourceDelayI3D"); - glad_wglGetGenlockSourceDelayI3D = (PFNWGLGETGENLOCKSOURCEDELAYI3DPROC)load("wglGetGenlockSourceDelayI3D"); - glad_wglQueryGenlockMaxSourceDelayI3D = (PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC)load("wglQueryGenlockMaxSourceDelayI3D"); -} -static void load_WGL_I3D_image_buffer(GLADloadproc load) { - if(!GLAD_WGL_I3D_image_buffer) return; - glad_wglCreateImageBufferI3D = (PFNWGLCREATEIMAGEBUFFERI3DPROC)load("wglCreateImageBufferI3D"); - glad_wglDestroyImageBufferI3D = (PFNWGLDESTROYIMAGEBUFFERI3DPROC)load("wglDestroyImageBufferI3D"); - glad_wglAssociateImageBufferEventsI3D = (PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC)load("wglAssociateImageBufferEventsI3D"); - glad_wglReleaseImageBufferEventsI3D = (PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC)load("wglReleaseImageBufferEventsI3D"); -} -static void load_WGL_I3D_swap_frame_lock(GLADloadproc load) { - if(!GLAD_WGL_I3D_swap_frame_lock) return; - glad_wglEnableFrameLockI3D = (PFNWGLENABLEFRAMELOCKI3DPROC)load("wglEnableFrameLockI3D"); - glad_wglDisableFrameLockI3D = (PFNWGLDISABLEFRAMELOCKI3DPROC)load("wglDisableFrameLockI3D"); - glad_wglIsEnabledFrameLockI3D = (PFNWGLISENABLEDFRAMELOCKI3DPROC)load("wglIsEnabledFrameLockI3D"); - glad_wglQueryFrameLockMasterI3D = (PFNWGLQUERYFRAMELOCKMASTERI3DPROC)load("wglQueryFrameLockMasterI3D"); -} -static void load_WGL_I3D_swap_frame_usage(GLADloadproc load) { - if(!GLAD_WGL_I3D_swap_frame_usage) return; - glad_wglGetFrameUsageI3D = (PFNWGLGETFRAMEUSAGEI3DPROC)load("wglGetFrameUsageI3D"); - glad_wglBeginFrameTrackingI3D = (PFNWGLBEGINFRAMETRACKINGI3DPROC)load("wglBeginFrameTrackingI3D"); - glad_wglEndFrameTrackingI3D = (PFNWGLENDFRAMETRACKINGI3DPROC)load("wglEndFrameTrackingI3D"); - glad_wglQueryFrameTrackingI3D = (PFNWGLQUERYFRAMETRACKINGI3DPROC)load("wglQueryFrameTrackingI3D"); -} -static void load_WGL_NV_DX_interop(GLADloadproc load) { - if(!GLAD_WGL_NV_DX_interop) return; - glad_wglDXSetResourceShareHandleNV = (PFNWGLDXSETRESOURCESHAREHANDLENVPROC)load("wglDXSetResourceShareHandleNV"); - glad_wglDXOpenDeviceNV = (PFNWGLDXOPENDEVICENVPROC)load("wglDXOpenDeviceNV"); - glad_wglDXCloseDeviceNV = (PFNWGLDXCLOSEDEVICENVPROC)load("wglDXCloseDeviceNV"); - glad_wglDXRegisterObjectNV = (PFNWGLDXREGISTEROBJECTNVPROC)load("wglDXRegisterObjectNV"); - glad_wglDXUnregisterObjectNV = (PFNWGLDXUNREGISTEROBJECTNVPROC)load("wglDXUnregisterObjectNV"); - glad_wglDXObjectAccessNV = (PFNWGLDXOBJECTACCESSNVPROC)load("wglDXObjectAccessNV"); - glad_wglDXLockObjectsNV = (PFNWGLDXLOCKOBJECTSNVPROC)load("wglDXLockObjectsNV"); - glad_wglDXUnlockObjectsNV = (PFNWGLDXUNLOCKOBJECTSNVPROC)load("wglDXUnlockObjectsNV"); -} -static void load_WGL_NV_copy_image(GLADloadproc load) { - if(!GLAD_WGL_NV_copy_image) return; - glad_wglCopyImageSubDataNV = (PFNWGLCOPYIMAGESUBDATANVPROC)load("wglCopyImageSubDataNV"); -} -static void load_WGL_NV_delay_before_swap(GLADloadproc load) { - if(!GLAD_WGL_NV_delay_before_swap) return; - glad_wglDelayBeforeSwapNV = (PFNWGLDELAYBEFORESWAPNVPROC)load("wglDelayBeforeSwapNV"); -} -static void load_WGL_NV_gpu_affinity(GLADloadproc load) { - if(!GLAD_WGL_NV_gpu_affinity) return; - glad_wglEnumGpusNV = (PFNWGLENUMGPUSNVPROC)load("wglEnumGpusNV"); - glad_wglEnumGpuDevicesNV = (PFNWGLENUMGPUDEVICESNVPROC)load("wglEnumGpuDevicesNV"); - glad_wglCreateAffinityDCNV = (PFNWGLCREATEAFFINITYDCNVPROC)load("wglCreateAffinityDCNV"); - glad_wglEnumGpusFromAffinityDCNV = (PFNWGLENUMGPUSFROMAFFINITYDCNVPROC)load("wglEnumGpusFromAffinityDCNV"); - glad_wglDeleteDCNV = (PFNWGLDELETEDCNVPROC)load("wglDeleteDCNV"); -} -static void load_WGL_NV_present_video(GLADloadproc load) { - if(!GLAD_WGL_NV_present_video) return; - glad_wglEnumerateVideoDevicesNV = (PFNWGLENUMERATEVIDEODEVICESNVPROC)load("wglEnumerateVideoDevicesNV"); - glad_wglBindVideoDeviceNV = (PFNWGLBINDVIDEODEVICENVPROC)load("wglBindVideoDeviceNV"); - glad_wglQueryCurrentContextNV = (PFNWGLQUERYCURRENTCONTEXTNVPROC)load("wglQueryCurrentContextNV"); -} -static void load_WGL_NV_swap_group(GLADloadproc load) { - if(!GLAD_WGL_NV_swap_group) return; - glad_wglJoinSwapGroupNV = (PFNWGLJOINSWAPGROUPNVPROC)load("wglJoinSwapGroupNV"); - glad_wglBindSwapBarrierNV = (PFNWGLBINDSWAPBARRIERNVPROC)load("wglBindSwapBarrierNV"); - glad_wglQuerySwapGroupNV = (PFNWGLQUERYSWAPGROUPNVPROC)load("wglQuerySwapGroupNV"); - glad_wglQueryMaxSwapGroupsNV = (PFNWGLQUERYMAXSWAPGROUPSNVPROC)load("wglQueryMaxSwapGroupsNV"); - glad_wglQueryFrameCountNV = (PFNWGLQUERYFRAMECOUNTNVPROC)load("wglQueryFrameCountNV"); - glad_wglResetFrameCountNV = (PFNWGLRESETFRAMECOUNTNVPROC)load("wglResetFrameCountNV"); -} -static void load_WGL_NV_vertex_array_range(GLADloadproc load) { - if(!GLAD_WGL_NV_vertex_array_range) return; - glad_wglAllocateMemoryNV = (PFNWGLALLOCATEMEMORYNVPROC)load("wglAllocateMemoryNV"); - glad_wglFreeMemoryNV = (PFNWGLFREEMEMORYNVPROC)load("wglFreeMemoryNV"); -} -static void load_WGL_NV_video_capture(GLADloadproc load) { - if(!GLAD_WGL_NV_video_capture) return; - glad_wglBindVideoCaptureDeviceNV = (PFNWGLBINDVIDEOCAPTUREDEVICENVPROC)load("wglBindVideoCaptureDeviceNV"); - glad_wglEnumerateVideoCaptureDevicesNV = (PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC)load("wglEnumerateVideoCaptureDevicesNV"); - glad_wglLockVideoCaptureDeviceNV = (PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC)load("wglLockVideoCaptureDeviceNV"); - glad_wglQueryVideoCaptureDeviceNV = (PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC)load("wglQueryVideoCaptureDeviceNV"); - glad_wglReleaseVideoCaptureDeviceNV = (PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC)load("wglReleaseVideoCaptureDeviceNV"); -} -static void load_WGL_NV_video_output(GLADloadproc load) { - if(!GLAD_WGL_NV_video_output) return; - glad_wglGetVideoDeviceNV = (PFNWGLGETVIDEODEVICENVPROC)load("wglGetVideoDeviceNV"); - glad_wglReleaseVideoDeviceNV = (PFNWGLRELEASEVIDEODEVICENVPROC)load("wglReleaseVideoDeviceNV"); - glad_wglBindVideoImageNV = (PFNWGLBINDVIDEOIMAGENVPROC)load("wglBindVideoImageNV"); - glad_wglReleaseVideoImageNV = (PFNWGLRELEASEVIDEOIMAGENVPROC)load("wglReleaseVideoImageNV"); - glad_wglSendPbufferToVideoNV = (PFNWGLSENDPBUFFERTOVIDEONVPROC)load("wglSendPbufferToVideoNV"); - glad_wglGetVideoInfoNV = (PFNWGLGETVIDEOINFONVPROC)load("wglGetVideoInfoNV"); -} -static void load_WGL_OML_sync_control(GLADloadproc load) { - if(!GLAD_WGL_OML_sync_control) return; - glad_wglGetSyncValuesOML = (PFNWGLGETSYNCVALUESOMLPROC)load("wglGetSyncValuesOML"); - glad_wglGetMscRateOML = (PFNWGLGETMSCRATEOMLPROC)load("wglGetMscRateOML"); - glad_wglSwapBuffersMscOML = (PFNWGLSWAPBUFFERSMSCOMLPROC)load("wglSwapBuffersMscOML"); - glad_wglSwapLayerBuffersMscOML = (PFNWGLSWAPLAYERBUFFERSMSCOMLPROC)load("wglSwapLayerBuffersMscOML"); - glad_wglWaitForMscOML = (PFNWGLWAITFORMSCOMLPROC)load("wglWaitForMscOML"); - glad_wglWaitForSbcOML = (PFNWGLWAITFORSBCOMLPROC)load("wglWaitForSbcOML"); -} -static int find_extensionsWGL(void) { - if (!get_exts()) return 0; - GLAD_WGL_3DFX_multisample = has_ext("WGL_3DFX_multisample"); - GLAD_WGL_3DL_stereo_control = has_ext("WGL_3DL_stereo_control"); - GLAD_WGL_AMD_gpu_association = has_ext("WGL_AMD_gpu_association"); - GLAD_WGL_ARB_buffer_region = has_ext("WGL_ARB_buffer_region"); - GLAD_WGL_ARB_context_flush_control = has_ext("WGL_ARB_context_flush_control"); - GLAD_WGL_ARB_create_context = has_ext("WGL_ARB_create_context"); - GLAD_WGL_ARB_create_context_no_error = has_ext("WGL_ARB_create_context_no_error"); - GLAD_WGL_ARB_create_context_profile = has_ext("WGL_ARB_create_context_profile"); - GLAD_WGL_ARB_create_context_robustness = has_ext("WGL_ARB_create_context_robustness"); - GLAD_WGL_ARB_extensions_string = has_ext("WGL_ARB_extensions_string"); - GLAD_WGL_ARB_framebuffer_sRGB = has_ext("WGL_ARB_framebuffer_sRGB"); - GLAD_WGL_ARB_make_current_read = has_ext("WGL_ARB_make_current_read"); - GLAD_WGL_ARB_multisample = has_ext("WGL_ARB_multisample"); - GLAD_WGL_ARB_pbuffer = has_ext("WGL_ARB_pbuffer"); - GLAD_WGL_ARB_pixel_format = has_ext("WGL_ARB_pixel_format"); - GLAD_WGL_ARB_pixel_format_float = has_ext("WGL_ARB_pixel_format_float"); - GLAD_WGL_ARB_render_texture = has_ext("WGL_ARB_render_texture"); - GLAD_WGL_ARB_robustness_application_isolation = has_ext("WGL_ARB_robustness_application_isolation"); - GLAD_WGL_ARB_robustness_share_group_isolation = has_ext("WGL_ARB_robustness_share_group_isolation"); - GLAD_WGL_ATI_pixel_format_float = has_ext("WGL_ATI_pixel_format_float"); - GLAD_WGL_ATI_render_texture_rectangle = has_ext("WGL_ATI_render_texture_rectangle"); - GLAD_WGL_EXT_colorspace = has_ext("WGL_EXT_colorspace"); - GLAD_WGL_EXT_create_context_es2_profile = has_ext("WGL_EXT_create_context_es2_profile"); - GLAD_WGL_EXT_create_context_es_profile = has_ext("WGL_EXT_create_context_es_profile"); - GLAD_WGL_EXT_depth_float = has_ext("WGL_EXT_depth_float"); - GLAD_WGL_EXT_display_color_table = has_ext("WGL_EXT_display_color_table"); - GLAD_WGL_EXT_extensions_string = has_ext("WGL_EXT_extensions_string"); - GLAD_WGL_EXT_framebuffer_sRGB = has_ext("WGL_EXT_framebuffer_sRGB"); - GLAD_WGL_EXT_make_current_read = has_ext("WGL_EXT_make_current_read"); - GLAD_WGL_EXT_multisample = has_ext("WGL_EXT_multisample"); - GLAD_WGL_EXT_pbuffer = has_ext("WGL_EXT_pbuffer"); - GLAD_WGL_EXT_pixel_format = has_ext("WGL_EXT_pixel_format"); - GLAD_WGL_EXT_pixel_format_packed_float = has_ext("WGL_EXT_pixel_format_packed_float"); - GLAD_WGL_EXT_swap_control = has_ext("WGL_EXT_swap_control"); - GLAD_WGL_EXT_swap_control_tear = has_ext("WGL_EXT_swap_control_tear"); - GLAD_WGL_I3D_digital_video_control = has_ext("WGL_I3D_digital_video_control"); - GLAD_WGL_I3D_gamma = has_ext("WGL_I3D_gamma"); - GLAD_WGL_I3D_genlock = has_ext("WGL_I3D_genlock"); - GLAD_WGL_I3D_image_buffer = has_ext("WGL_I3D_image_buffer"); - GLAD_WGL_I3D_swap_frame_lock = has_ext("WGL_I3D_swap_frame_lock"); - GLAD_WGL_I3D_swap_frame_usage = has_ext("WGL_I3D_swap_frame_usage"); - GLAD_WGL_NV_DX_interop = has_ext("WGL_NV_DX_interop"); - GLAD_WGL_NV_DX_interop2 = has_ext("WGL_NV_DX_interop2"); - GLAD_WGL_NV_copy_image = has_ext("WGL_NV_copy_image"); - GLAD_WGL_NV_delay_before_swap = has_ext("WGL_NV_delay_before_swap"); - GLAD_WGL_NV_float_buffer = has_ext("WGL_NV_float_buffer"); - GLAD_WGL_NV_gpu_affinity = has_ext("WGL_NV_gpu_affinity"); - GLAD_WGL_NV_multigpu_context = has_ext("WGL_NV_multigpu_context"); - GLAD_WGL_NV_multisample_coverage = has_ext("WGL_NV_multisample_coverage"); - GLAD_WGL_NV_present_video = has_ext("WGL_NV_present_video"); - GLAD_WGL_NV_render_depth_texture = has_ext("WGL_NV_render_depth_texture"); - GLAD_WGL_NV_render_texture_rectangle = has_ext("WGL_NV_render_texture_rectangle"); - GLAD_WGL_NV_swap_group = has_ext("WGL_NV_swap_group"); - GLAD_WGL_NV_vertex_array_range = has_ext("WGL_NV_vertex_array_range"); - GLAD_WGL_NV_video_capture = has_ext("WGL_NV_video_capture"); - GLAD_WGL_NV_video_output = has_ext("WGL_NV_video_output"); - GLAD_WGL_OML_sync_control = has_ext("WGL_OML_sync_control"); - free_exts(); - return 1; -} - -static void find_coreWGL(HDC hdc) { - GLADWGLhdc = hdc; -} - -int gladLoadWGLLoader(GLADloadproc load, HDC hdc) { - wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)load("wglGetExtensionsStringARB"); - wglGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)load("wglGetExtensionsStringEXT"); - if(wglGetExtensionsStringARB == NULL && wglGetExtensionsStringEXT == NULL) return 0; - find_coreWGL(hdc); - - if (!find_extensionsWGL()) return 0; - load_WGL_3DL_stereo_control(load); - load_WGL_AMD_gpu_association(load); - load_WGL_ARB_buffer_region(load); - load_WGL_ARB_create_context(load); - load_WGL_ARB_extensions_string(load); - load_WGL_ARB_make_current_read(load); - load_WGL_ARB_pbuffer(load); - load_WGL_ARB_pixel_format(load); - load_WGL_ARB_render_texture(load); - load_WGL_EXT_display_color_table(load); - load_WGL_EXT_extensions_string(load); - load_WGL_EXT_make_current_read(load); - load_WGL_EXT_pbuffer(load); - load_WGL_EXT_pixel_format(load); - load_WGL_EXT_swap_control(load); - load_WGL_I3D_digital_video_control(load); - load_WGL_I3D_gamma(load); - load_WGL_I3D_genlock(load); - load_WGL_I3D_image_buffer(load); - load_WGL_I3D_swap_frame_lock(load); - load_WGL_I3D_swap_frame_usage(load); - load_WGL_NV_DX_interop(load); - load_WGL_NV_copy_image(load); - load_WGL_NV_delay_before_swap(load); - load_WGL_NV_gpu_affinity(load); - load_WGL_NV_present_video(load); - load_WGL_NV_swap_group(load); - load_WGL_NV_vertex_array_range(load); - load_WGL_NV_video_capture(load); - load_WGL_NV_video_output(load); - load_WGL_OML_sync_control(load); - return 1; -} - diff --git a/third_party/glm b/third_party/glm deleted file mode 160000 index 5c46b9c0..00000000 --- a/third_party/glm +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5c46b9c07008ae65cb81ab79cd677ecc1934b903 diff --git a/third_party/httplib b/third_party/httplib deleted file mode 160000 index be07d2d7..00000000 --- a/third_party/httplib +++ /dev/null @@ -1 +0,0 @@ -Subproject commit be07d2d7a99c0a54b00526f30f175e93c3588f34 diff --git a/third_party/hydra_core b/third_party/hydra_core deleted file mode 160000 index 1cdb1eda..00000000 --- a/third_party/hydra_core +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1cdb1eda5f368481e216416a119c85664e8c72ab diff --git a/third_party/imgui/.editorconfig b/third_party/imgui/.editorconfig deleted file mode 100644 index 284ba13f..00000000 --- a/third_party/imgui/.editorconfig +++ /dev/null @@ -1,22 +0,0 @@ -# See http://editorconfig.org to read about the EditorConfig format. -# - Automatically supported by VS2017+ and most common IDE or text editors. -# - For older VS2010 to VS2015, install https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig - -# top-most EditorConfig file -root = true - -# Default settings: -# Use 4 spaces as indentation -[*] -indent_style = space -indent_size = 4 -insert_final_newline = true -trim_trailing_whitespace = true - -[imstb_*] -indent_size = 3 -trim_trailing_whitespace = false - -[Makefile] -indent_style = tab -indent_size = 4 diff --git a/third_party/imgui/.gitattributes b/third_party/imgui/.gitattributes deleted file mode 100644 index d48470ee..00000000 --- a/third_party/imgui/.gitattributes +++ /dev/null @@ -1,30 +0,0 @@ -* text=auto - -*.c text -*.cpp text -*.h text -*.m text -*.mm text -*.md text -*.txt text -*.html text -*.bat text -*.frag text -*.vert text -*.mkb text -*.icf text - -*.sln text eol=crlf -*.vcxproj text eol=crlf -*.vcxproj.filters text eol=crlf -*.natvis text eol=crlf - -Makefile text eol=lf -*.sh text eol=lf -*.pbxproj text eol=lf -*.storyboard text eol=lf -*.plist text eol=lf - -*.png binary -*.ttf binary -*.lib binary diff --git a/third_party/imgui/.github/FUNDING.yml b/third_party/imgui/.github/FUNDING.yml deleted file mode 100644 index 2aa08b44..00000000 --- a/third_party/imgui/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -custom: ['https://github.com/ocornut/imgui/wiki/Sponsors'] diff --git a/third_party/imgui/.github/issue_template.md b/third_party/imgui/.github/issue_template.md deleted file mode 100644 index 4fe6119c..00000000 --- a/third_party/imgui/.github/issue_template.md +++ /dev/null @@ -1,46 +0,0 @@ -(Click "Preview" above ^ to turn URL into clickable links) - -1. PLEASE CAREFULLY READ: [FAQ](https://github.com/ocornut/imgui/blob/master/docs/FAQ.md) - -2. PLEASE CAREFULLY READ: [Issue Submitting Guidelines](https://github.com/ocornut/imgui/issues/2261) - -3. FOR FIRST-TIME USERS ISSUES COMPILING/LINKING/RUNNING/LOADING FONTS, please use [GitHub Discussions](https://github.com/ocornut/imgui/discussions). - -4. PLEASE MAKE SURE that you have: read the FAQ; explored the contents of `ShowDemoWindow()` including the Examples menu; searched among Issues; used your IDE to search for keywords in all sources and text files; and read the link provided in (1) (2). - -5. Be mindful that messages are being sent to the e-mail box of "Watching" users. Try to proof-read your messages before sending them. Edits are not seen by those users. - -6. Delete points 1-6 and PLEASE FILL THE TEMPLATE BELOW before submitting your issue. - -Thank you! - ----- - -_(you may also go to Demo>About Window, and click "Config/Build Information" to obtain a bunch of detailed information that you can paste here)_ - -**Version/Branch of Dear ImGui:** - -Version: XXX -Branch: XXX _(master/viewport/docking/etc.)_ - -**Back-end/Renderer/Compiler/OS** - -Back-ends: imgui_impl_XXX.cpp + imgui_impl_XXX.cpp _(or specify if using a custom engine/back-end)_ -Compiler: XXX _(if the question is related to building or platform specific features)_ -Operating System: XXX - -**My Issue/Question:** - -XXX _(please provide as much context as possible)_ - -**Screenshots/Video** - -XXX _(you can drag files here)_ - -**Standalone, minimal, complete and verifiable example:** _(see https://github.com/ocornut/imgui/issues/2261)_ -``` -// Here's some code anyone can copy and paste to reproduce your issue -ImGui::Begin("Example Bug"); -MoreCodeToExplainMyIssue(); -ImGui::End(); -``` diff --git a/third_party/imgui/.github/pull_request_template.md b/third_party/imgui/.github/pull_request_template.md deleted file mode 100644 index 533027c9..00000000 --- a/third_party/imgui/.github/pull_request_template.md +++ /dev/null @@ -1,6 +0,0 @@ -(Click "Preview" to turn any http URL into a clickable link) - -PLEASE CAREFULLY READ: -https://github.com/ocornut/imgui/issues/2261 - -(Clear this template before submitting your PR) diff --git a/third_party/imgui/.github/workflows/build.yml b/third_party/imgui/.github/workflows/build.yml deleted file mode 100644 index 100a630e..00000000 --- a/third_party/imgui/.github/workflows/build.yml +++ /dev/null @@ -1,500 +0,0 @@ -name: build - -on: - push: - pull_request: - workflow_run: - # Use a workflow as a trigger of scheduled builds. Forked repositories can disable scheduled builds by disabling - # "scheduled" workflow, while maintaining ability to perform local CI builds. - workflows: - - scheduled - branches: - - master - - docking - types: - - requested - -jobs: - Windows: - runs-on: windows-2019 - env: - VS_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\ - MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\ - steps: - - uses: actions/checkout@v2 - - - name: Install Dependencies - shell: powershell - run: | - Invoke-WebRequest -Uri "https://www.libsdl.org/release/SDL2-devel-2.0.10-VC.zip" -OutFile "SDL2-devel-2.0.10-VC.zip" - Expand-Archive -Path SDL2-devel-2.0.10-VC.zip - echo "SDL2_DIR=$(pwd)\SDL2-devel-2.0.10-VC\SDL2-2.0.10\" >>${env:GITHUB_ENV} - - Invoke-WebRequest -Uri "https://github.com/ocornut/imgui/files/3789205/vulkan-sdk-1.1.121.2.zip" -OutFile vulkan-sdk-1.1.121.2.zip - Expand-Archive -Path vulkan-sdk-1.1.121.2.zip - echo "VULKAN_SDK=$(pwd)\vulkan-sdk-1.1.121.2\" >>${env:GITHUB_ENV} - - - name: Fix Projects - shell: powershell - run: | - # WARNING: This will need updating if toolset/sdk change in project files! - gci -recurse -filter "*.vcxproj" | ForEach-Object { - # Fix SDK and toolset for most samples. - (Get-Content $_.FullName) -Replace "v110","v142" | Set-Content -Path $_.FullName - (Get-Content $_.FullName) -Replace "8.1","10.0.18362.0" | Set-Content -Path $_.FullName - # Fix SDK and toolset for samples that require newer SDK/toolset. At the moment it is only dx12. - (Get-Content $_.FullName) -Replace "v140","v142" | Set-Content -Path $_.FullName - (Get-Content $_.FullName) -Replace "10.0.14393.0","10.0.18362.0" | Set-Content -Path $_.FullName - } - - # Not using matrix here because it would inflate job count too much. Check out and setup is done for every job and that makes build times way too long. - - name: Build example_null (extra warnings, mingw 64-bit) - run: mingw32-make -C examples/example_null WITH_EXTRA_WARNINGS=1 - - - name: Build example_null (extra warnings, msvc 64-bit) - shell: cmd - run: | - cd examples\example_null - call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat" - .\build_win32.bat /W4 - - - name: Build example_null (single file build) - shell: bash - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file.exe example_single_file.cpp -limm32 - - - name: Build example_null (with IMGUI_DISABLE_WIN32_FUNCTIONS) - shell: bash - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_DISABLE_WIN32_FUNCTIONS - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file.exe example_single_file.cpp -limm32 - - - name: Build example_null (as DLL) - shell: cmd - run: | - call "%VS_PATH%\VC\Auxiliary\Build\vcvars64.bat" - - echo #ifdef _EXPORT > example_single_file.cpp - echo # define IMGUI_API __declspec(dllexport) >> example_single_file.cpp - echo #else >> example_single_file.cpp - echo # define IMGUI_API __declspec(dllimport) >> example_single_file.cpp - echo #endif >> example_single_file.cpp - echo #define IMGUI_IMPLEMENTATION >> example_single_file.cpp - echo #include "misc/single_file/imgui_single_file.h" >> example_single_file.cpp - - cl.exe /D_USRDLL /D_WINDLL /D_EXPORT /I. example_single_file.cpp /LD /FeImGui.dll /link - cl.exe /I. ImGui.lib /Feexample_null.exe examples/example_null/main.cpp - - - name: Build Win32 example_glfw_opengl2 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release' - - - name: Build Win32 example_glfw_opengl3 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build Win32 example_glfw_vulkan - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build Win32 example_sdl_vulkan - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj /p:Platform=Win32 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build Win32 example_sdl_opengl2 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj /p:Platform=Win32 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build Win32 example_sdl_opengl3 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj /p:Platform=Win32 /p:Configuration=Release' - - - name: Build Win32 example_sdl_directx11 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_directx11/example_sdl_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build Win32 example_win32_directx9 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=Win32 /p:Configuration=Release' - - - name: Build Win32 example_win32_directx10 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=Win32 /p:Configuration=Release' - - - name: Build Win32 example_win32_directx11 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=Win32 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build x64 example_glfw_opengl2 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build x64 example_glfw_opengl3 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release' - - - name: Build x64 example_glfw_vulkan - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release' - - - name: Build x64 example_sdl_vulkan - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj /p:Platform=x64 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build x64 example_sdl_opengl2 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj /p:Platform=x64 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build x64 example_sdl_opengl3 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj /p:Platform=x64 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build x64 example_sdl_directx11 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_sdl_directx11/example_sdl_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release' - - - name: Build x64 example_win32_directx9 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx9/example_win32_directx9.vcxproj /p:Platform=x64 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build x64 example_win32_directx10 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx10/example_win32_directx10.vcxproj /p:Platform=x64 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build x64 example_win32_directx11 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx11/example_win32_directx11.vcxproj /p:Platform=x64 /p:Configuration=Release' - if: github.event_name == 'workflow_run' - - - name: Build x64 example_win32_directx12 - shell: cmd - run: '"%MSBUILD_PATH%\MSBuild.exe" examples/example_win32_directx12/example_win32_directx12.vcxproj /p:Platform=x64 /p:Configuration=Release' - - Linux: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - - name: Install Dependencies - run: | - sudo apt-get update - sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev - - - name: Build example_null (extra warnings, gcc 32-bit) - run: | - make -C examples/example_null clean - CXXFLAGS="$CXXFLAGS -m32 -Werror" make -C examples/example_null WITH_EXTRA_WARNINGS=1 - - - name: Build example_null (extra warnings, gcc 64-bit) - run: | - make -C examples/example_null clean - CXXFLAGS="$CXXFLAGS -m64 -Werror" make -C examples/example_null WITH_EXTRA_WARNINGS=1 - - - name: Build example_null (extra warnings, clang 32-bit) - run: | - make -C examples/example_null clean - CXXFLAGS="$CXXFLAGS -m32 -Werror" CXX=clang++ make -C examples/example_null WITH_EXTRA_WARNINGS=1 - - - name: Build example_null (extra warnings, clang 64-bit) - run: | - make -C examples/example_null clean - CXXFLAGS="$CXXFLAGS -m64 -Werror" CXX=clang++ make -C examples/example_null WITH_EXTRA_WARNINGS=1 - - - name: Build example_null (freetype) - run: | - make -C examples/example_null clean - make -C examples/example_null WITH_FREETYPE=1 - - - name: Build example_null (single file build) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (with ImWchar32) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_USE_WCHAR32 - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (with large ImDrawIdx) - run: | - cat > example_single_file.cpp <<'EOF' - - #define ImDrawIdx unsigned int - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (with IMGUI_DISABLE_OBSOLETE_FUNCTIONS) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_DISABLE_OBSOLETE_FUNCTIONS - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (with IMGUI_DISABLE_DEMO_WINDOWS and IMGUI_DISABLE_METRICS_WINDOW) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_DISABLE_DEMO_WINDOWS - #define IMGUI_DISABLE_METRICS_WINDOW - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (with IMGUI_DISABLE_FILE_FUNCTIONS) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_DISABLE_FILE_FUNCTIONS - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (with IMGUI_USE_BGRA_PACKED_COLOR) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_USE_BGRA_PACKED_COLOR - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (with IM_VEC2_CLASS_EXTRA and IM_VEC4_CLASS_EXTRA) - run: | - cat > example_single_file.cpp <<'EOF' - - struct MyVec2 { float x; float y; MyVec2(float x, float y) : x(x), y(y) { } }; - struct MyVec4 { float x; float y; float z; float w; - MyVec4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) { } }; - #define IM_VEC2_CLASS_EXTRA \ - ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \ - operator MyVec2() const { return MyVec2(x, y); } - #define IM_VEC4_CLASS_EXTRA \ - ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \ - operator MyVec4() const { return MyVec4(x, y, z, w); } - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - g++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (without c++ runtime, Clang) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_IMPLEMENTATION - #define IMGUI_DISABLE_DEMO_WINDOWS - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - clang++ -I. -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp - - - name: Build example_glfw_opengl2 - run: make -C examples/example_glfw_opengl2 - - - name: Build example_glfw_opengl3 - run: make -C examples/example_glfw_opengl3 - if: github.event_name == 'workflow_run' - - - name: Build example_sdl_opengl2 - run: make -C examples/example_sdl_opengl2 - if: github.event_name == 'workflow_run' - - - name: Build example_sdl_opengl3 - run: make -C examples/example_sdl_opengl3 - - MacOS: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - - name: Install Dependencies - run: | - brew install glfw3 sdl2 - - - name: Build example_null (extra warnings, clang 64-bit) - run: make -C examples/example_null WITH_EXTRA_WARNINGS=1 - - - name: Build example_null (single file build) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - clang++ -I. -Wall -Wformat -o example_single_file example_single_file.cpp - - - name: Build example_null (without c++ runtime) - run: | - cat > example_single_file.cpp <<'EOF' - - #define IMGUI_IMPLEMENTATION - #include "misc/single_file/imgui_single_file.h" - #include "examples/example_null/main.cpp" - - EOF - clang++ -I. -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp - - - name: Build example_glfw_opengl2 - run: make -C examples/example_glfw_opengl2 - - - name: Build example_glfw_opengl3 - run: make -C examples/example_glfw_opengl3 - if: github.event_name == 'workflow_run' - - - name: Build example_glfw_metal - run: make -C examples/example_glfw_metal - - - name: Build example_sdl_metal - run: make -C examples/example_sdl_metal - - - name: Build example_sdl_opengl2 - run: make -C examples/example_sdl_opengl2 - if: github.event_name == 'workflow_run' - - - name: Build example_sdl_opengl3 - run: make -C examples/example_sdl_opengl3 - - - name: Build example_apple_metal - run: xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_macos - - - name: Build example_apple_opengl2 - run: xcodebuild -project examples/example_apple_opengl2/example_apple_opengl2.xcodeproj -target example_osx_opengl2 - - iOS: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - - name: Build example_apple_metal - run: | - # Code signing is required, but we disable it because it is irrelevant for CI builds. - xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_ios CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO - - Emscripten: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - - name: Install Dependencies - run: | - wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz - tar -xvf master.tar.gz - emsdk-master/emsdk update - emsdk-master/emsdk install latest - emsdk-master/emsdk activate latest - - - name: Build example_emscripten_opengl3 - run: | - pushd emsdk-master - source ./emsdk_env.sh - popd - make -C examples/example_emscripten_opengl3 - - - name: Build example_emscripten_wgpu - run: | - pushd emsdk-master - source ./emsdk_env.sh - popd - make -C examples/example_emscripten_wgpu - - Android: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - - name: Build example_android_opengl3 - run: | - cd examples/example_android_opengl3/android - gradle assembleDebug - - Discord-CI: - runs-on: ubuntu-18.04 - if: always() - needs: [Windows, Linux, MacOS, iOS, Emscripten, Android] - steps: - - uses: dearimgui/github_discord_notifier@latest - with: - discord-webhook: ${{ secrets.DISCORD_CI_WEBHOOK }} - github-token: ${{ github.token }} - action-task: discord-jobs - discord-filter: "'{{ github.branch }}'.match(/master|docking/g) != null && '{{ run.conclusion }}' != '{{ last_run.conclusion }}'" - discord-username: GitHub Actions - discord-job-new-failure-message: '' - discord-job-fixed-failure-message: '' - discord-job-new-failure-embed: | - { - "title": "`{{ job.name }}` job is failing on `{{ github.branch }}`!", - "description": "Commit [{{ github.context.payload.head_commit.title }}]({{ github.context.payload.head_commit.url }}) pushed to [{{ github.branch }}]({{ github.branch_url }}) broke [{{ job.name }}]({{ job.url }}) build job.\nFailing steps: {{ failing_steps }}", - "url": "{{ job.url }}", - "color": "0xFF0000", - "timestamp": "{{ run.updated_at }}" - } - discord-job-fixed-failure-embed: | - { - "title": "`{{ github.branch }}` branch is no longer failing!", - "description": "Build failures were fixed on [{{ github.branch }}]({{ github.branch_url }}) branch.", - "color": "0x00FF00", - "url": "{{ github.context.payload.head_commit.url }}", - "timestamp": "{{ run.completed_at }}" - } diff --git a/third_party/imgui/.github/workflows/scheduled.yml b/third_party/imgui/.github/workflows/scheduled.yml deleted file mode 100644 index 2a08578f..00000000 --- a/third_party/imgui/.github/workflows/scheduled.yml +++ /dev/null @@ -1,15 +0,0 @@ -# -# This is a dummy workflow used to trigger scheduled builds. Forked repositories most likely should disable this -# workflow to avoid daily builds of inactive repositories. -# -name: scheduled - -on: - schedule: - - cron: '0 9 * * *' - -jobs: - scheduled: - runs-on: ubuntu-latest - steps: - - run: exit 0 diff --git a/third_party/imgui/.github/workflows/static-analysis.yml b/third_party/imgui/.github/workflows/static-analysis.yml deleted file mode 100644 index d3b7d50b..00000000 --- a/third_party/imgui/.github/workflows/static-analysis.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: static-analysis - -on: - workflow_run: - # Perform static analysis together with build workflow. Build triggers of "build" workflow do not need to be repeated here. - workflows: - - build - types: - - requested - -jobs: - PVS-Studio: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - - name: Install Dependencies - env: - # The Secret variable setup in GitHub must be in format: "name_or_email key", on a single line - PVS_STUDIO_LICENSE: ${{ secrets.PVS_STUDIO_LICENSE }} - run: | - if [[ "$PVS_STUDIO_LICENSE" != "" ]]; - then - wget -q https://files.viva64.com/etc/pubkey.txt - sudo apt-key add pubkey.txt - sudo wget -O /etc/apt/sources.list.d/viva64.list https://files.viva64.com/etc/viva64.list - sudo apt-get update - sudo apt-get install -y pvs-studio - pvs-studio-analyzer credentials -o pvs-studio.lic $PVS_STUDIO_LICENSE - fi - - - name: PVS-Studio static analysis - run: | - if [[ ! -f pvs-studio.lic ]]; - then - echo "PVS Studio license is missing. No analysis will be performed." - echo "If you have a PVS Studio license please create a project secret named PVS_STUDIO_LICENSE with your license." - echo "You may use a free license. More information at https://www.viva64.com/en/b/0457/" - exit 0 - fi - cd examples/example_null - pvs-studio-analyzer trace -- make WITH_EXTRA_WARNINGS=1 - pvs-studio-analyzer analyze -e ../../imstb_rectpack.h -e ../../imstb_textedit.h -e ../../imstb_truetype.h -l ../../pvs-studio.lic -o pvs-studio.log - plog-converter -a 'GA:1,2;OP:1' -t errorfile -w pvs-studio.log - - Discord-CI: - runs-on: ubuntu-18.04 - needs: [PVS-Studio] - if: always() - steps: - - uses: dearimgui/github_discord_notifier@latest - with: - discord-webhook: ${{ secrets.DISCORD_CI_WEBHOOK }} - github-token: ${{ github.token }} - action-task: discord-jobs - discord-filter: "'{{ github.branch }}'.match(/master|docking/g) != null && '{{ run.conclusion }}' != '{{ last_run.conclusion }}'" - discord-username: GitHub Actions - discord-job-new-failure-message: '' - discord-job-fixed-failure-message: '' - discord-job-new-failure-embed: | - { - "title": "`{{ job.name }}` job is failing on `{{ github.branch }}`!", - "description": "Commit [{{ github.context.payload.head_commit.title }}]({{ github.context.payload.head_commit.url }}) pushed to [{{ github.branch }}]({{ github.branch_url }}) broke static analysis [{{ job.name }}]({{ job.url }}) job.\nFailing steps: {{ failing_steps }}", - "url": "{{ job.url }}", - "color": "0xFF0000", - "timestamp": "{{ run.updated_at }}" - } - discord-job-fixed-failure-embed: | - { - "title": "`{{ github.branch }}` branch is no longer failing!", - "description": "Static analysis failures were fixed on [{{ github.branch }}]({{ github.branch_url }}) branch.", - "color": "0x00FF00", - "url": "{{ github.context.payload.head_commit.url }}", - "timestamp": "{{ run.completed_at }}" - } diff --git a/third_party/imgui/.gitignore b/third_party/imgui/.gitignore deleted file mode 100644 index 8d720199..00000000 --- a/third_party/imgui/.gitignore +++ /dev/null @@ -1,50 +0,0 @@ -## OSX artifacts -.DS_Store - -## Dear ImGui artifacts -imgui.ini - -## General build artifacts -*.o -*.obj -*.exe -examples/build/* -examples/*/Debug/* -examples/*/Release/* -examples/*/x64/* - -## Visual Studio artifacts -.vs -ipch -*.opensdf -*.log -*.pdb -*.ilk -*.user -*.sdf -*.suo -*.VC.db -*.VC.VC.opendb - -## Xcode artifacts -project.xcworkspace -xcuserdata - -## Emscripten artifacts -examples/*.o.tmp -examples/*.out.js -examples/*.out.wasm -examples/example_emscripten_opengl3/web/* -examples/example_emscripten_wgpu/web/* - -## JetBrains IDE artifacts -.idea -cmake-build-* - -## Unix executables from our example Makefiles -examples/example_glfw_opengl2/example_glfw_opengl2 -examples/example_glfw_opengl3/example_glfw_opengl3 -examples/example_glut_opengl2/example_glut_opengl2 -examples/example_null/example_null -examples/example_sdl_opengl2/example_sdl_opengl2 -examples/example_sdl_opengl3/example_sdl_opengl3 diff --git a/third_party/imgui/LICENSE.txt b/third_party/imgui/LICENSE.txt deleted file mode 100644 index 780533dc..00000000 --- a/third_party/imgui/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2021 Omar Cornut - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -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 Software. - -THE SOFTWARE IS 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/third_party/imgui/backends/imgui_impl_allegro5.cpp b/third_party/imgui/backends/imgui_impl_allegro5.cpp deleted file mode 100644 index c4832b6b..00000000 --- a/third_party/imgui/backends/imgui_impl_allegro5.cpp +++ /dev/null @@ -1,430 +0,0 @@ -// dear imgui: Renderer + Platform Backend for Allegro 5 -// (Info: Allegro 5 is a cross-platform general purpose library for handling windows, inputs, graphics, etc.) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'ALLEGRO_BITMAP*' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Platform: Clipboard support (from Allegro 5.1.12) -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. -// Issues: -// [ ] Renderer: The renderer is suboptimal as we need to unindex our buffers and convert vertices manually. -// [ ] Platform: Missing gamepad support. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: Change blending equation to preserve alpha in output buffer. -// 2020-08-10: Inputs: Fixed horizontal mouse wheel direction. -// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. -// 2019-07-21: Inputs: Added mapping for ImGuiKey_KeyPadEnter. -// 2019-05-11: Inputs: Don't filter character value from ALLEGRO_EVENT_KEY_CHAR before calling AddInputCharacter(). -// 2019-04-30: Renderer: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2018-11-30: Platform: Added touchscreen support. -// 2018-11-30: Misc: Setting up io.BackendPlatformName/io.BackendRendererName so they can be displayed in the About Window. -// 2018-06-13: Platform: Added clipboard support (from Allegro 5.1.12). -// 2018-06-13: Renderer: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. -// 2018-06-13: Renderer: Backup/restore transform and clipping rectangle. -// 2018-06-11: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors flag + honor ImGuiConfigFlags_NoMouseCursorChange flag. -// 2018-04-18: Misc: Renamed file from imgui_impl_a5.cpp to imgui_impl_allegro5.cpp. -// 2018-04-18: Misc: Added support for 32-bit vertex indices to avoid conversion at runtime. Added imconfig_allegro5.h to enforce 32-bit indices when included from imgui.h. -// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplAllegro5_RenderDrawData() in the .h file so you can call it yourself. -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. -// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. - -#include // uint64_t -#include // memcpy -#include "imgui.h" -#include "imgui_impl_allegro5.h" - -// Allegro -#include -#include -#ifdef _WIN32 -#include -#endif -#define ALLEGRO_HAS_CLIPBOARD (ALLEGRO_VERSION_INT >= ((5 << 24) | (1 << 16) | (12 << 8))) // Clipboard only supported from Allegro 5.1.12 - -// Visual Studio warnings -#ifdef _MSC_VER -#pragma warning (disable: 4127) // condition expression is constant -#endif - -// Data -static ALLEGRO_DISPLAY* g_Display = NULL; -static ALLEGRO_BITMAP* g_Texture = NULL; -static double g_Time = 0.0; -static ALLEGRO_MOUSE_CURSOR* g_MouseCursorInvisible = NULL; -static ALLEGRO_VERTEX_DECL* g_VertexDecl = NULL; -static char* g_ClipboardTextData = NULL; - -struct ImDrawVertAllegro -{ - ImVec2 pos; - ImVec2 uv; - ALLEGRO_COLOR col; -}; - -static void ImGui_ImplAllegro5_SetupRenderState(ImDrawData* draw_data) -{ - // Setup blending - al_set_separate_blender(ALLEGRO_ADD, ALLEGRO_ALPHA, ALLEGRO_INVERSE_ALPHA, ALLEGRO_ADD, ALLEGRO_ONE, ALLEGRO_INVERSE_ALPHA); - - // Setup orthographic projection matrix - // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). - { - float L = draw_data->DisplayPos.x; - float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; - float T = draw_data->DisplayPos.y; - float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; - ALLEGRO_TRANSFORM transform; - al_identity_transform(&transform); - al_use_transform(&transform); - al_orthographic_transform(&transform, L, T, 1.0f, R, B, -1.0f); - al_use_projection_transform(&transform); - } -} - -// Render function. -void ImGui_ImplAllegro5_RenderDrawData(ImDrawData* draw_data) -{ - // Avoid rendering when minimized - if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) - return; - - // Backup Allegro state that will be modified - ALLEGRO_TRANSFORM last_transform = *al_get_current_transform(); - ALLEGRO_TRANSFORM last_projection_transform = *al_get_current_projection_transform(); - int last_clip_x, last_clip_y, last_clip_w, last_clip_h; - al_get_clipping_rectangle(&last_clip_x, &last_clip_y, &last_clip_w, &last_clip_h); - int last_blender_op, last_blender_src, last_blender_dst; - al_get_blender(&last_blender_op, &last_blender_src, &last_blender_dst); - - // Setup desired render state - ImGui_ImplAllegro5_SetupRenderState(draw_data); - - // Render command lists - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - - // Allegro's implementation of al_draw_indexed_prim() for DX9 is completely broken. Unindex our buffers ourselves. - // FIXME-OPT: Unfortunately Allegro doesn't support 32-bit packed colors so we have to convert them to 4 float as well.. - static ImVector vertices; - vertices.resize(cmd_list->IdxBuffer.Size); - for (int i = 0; i < cmd_list->IdxBuffer.Size; i++) - { - const ImDrawVert* src_v = &cmd_list->VtxBuffer[cmd_list->IdxBuffer[i]]; - ImDrawVertAllegro* dst_v = &vertices[i]; - dst_v->pos = src_v->pos; - dst_v->uv = src_v->uv; - unsigned char* c = (unsigned char*)&src_v->col; - dst_v->col = al_map_rgba(c[0], c[1], c[2], c[3]); - } - - const int* indices = NULL; - if (sizeof(ImDrawIdx) == 2) - { - // FIXME-OPT: Unfortunately Allegro doesn't support 16-bit indices.. You can '#define ImDrawIdx int' in imconfig.h to request Dear ImGui to output 32-bit indices. - // Otherwise, we convert them from 16-bit to 32-bit at runtime here, which works perfectly but is a little wasteful. - static ImVector indices_converted; - indices_converted.resize(cmd_list->IdxBuffer.Size); - for (int i = 0; i < cmd_list->IdxBuffer.Size; ++i) - indices_converted[i] = (int)cmd_list->IdxBuffer.Data[i]; - indices = indices_converted.Data; - } - else if (sizeof(ImDrawIdx) == 4) - { - indices = (const int*)cmd_list->IdxBuffer.Data; - } - - // Render command lists - int idx_offset = 0; - ImVec2 clip_off = draw_data->DisplayPos; - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplAllegro5_SetupRenderState(draw_data); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Draw - ALLEGRO_BITMAP* texture = (ALLEGRO_BITMAP*)pcmd->TextureId; - al_set_clipping_rectangle(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y, pcmd->ClipRect.z - pcmd->ClipRect.x, pcmd->ClipRect.w - pcmd->ClipRect.y); - al_draw_prim(&vertices[0], g_VertexDecl, texture, idx_offset, idx_offset + pcmd->ElemCount, ALLEGRO_PRIM_TRIANGLE_LIST); - } - idx_offset += pcmd->ElemCount; - } - } - - // Restore modified Allegro state - al_set_blender(last_blender_op, last_blender_src, last_blender_dst); - al_set_clipping_rectangle(last_clip_x, last_clip_y, last_clip_w, last_clip_h); - al_use_transform(&last_transform); - al_use_projection_transform(&last_projection_transform); -} - -bool ImGui_ImplAllegro5_CreateDeviceObjects() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - - // Create texture - int flags = al_get_new_bitmap_flags(); - int fmt = al_get_new_bitmap_format(); - al_set_new_bitmap_flags(ALLEGRO_MEMORY_BITMAP | ALLEGRO_MIN_LINEAR | ALLEGRO_MAG_LINEAR); - al_set_new_bitmap_format(ALLEGRO_PIXEL_FORMAT_ABGR_8888_LE); - ALLEGRO_BITMAP* img = al_create_bitmap(width, height); - al_set_new_bitmap_flags(flags); - al_set_new_bitmap_format(fmt); - if (!img) - return false; - - ALLEGRO_LOCKED_REGION* locked_img = al_lock_bitmap(img, al_get_bitmap_format(img), ALLEGRO_LOCK_WRITEONLY); - if (!locked_img) - { - al_destroy_bitmap(img); - return false; - } - memcpy(locked_img->data, pixels, sizeof(int) * width * height); - al_unlock_bitmap(img); - - // Convert software texture to hardware texture. - ALLEGRO_BITMAP* cloned_img = al_clone_bitmap(img); - al_destroy_bitmap(img); - if (!cloned_img) - return false; - - // Store our identifier - io.Fonts->SetTexID((void*)cloned_img); - g_Texture = cloned_img; - - // Create an invisible mouse cursor - // Because al_hide_mouse_cursor() seems to mess up with the actual inputs.. - ALLEGRO_BITMAP* mouse_cursor = al_create_bitmap(8, 8); - g_MouseCursorInvisible = al_create_mouse_cursor(mouse_cursor, 0, 0); - al_destroy_bitmap(mouse_cursor); - - return true; -} - -void ImGui_ImplAllegro5_InvalidateDeviceObjects() -{ - if (g_Texture) - { - ImGuiIO& io = ImGui::GetIO(); - io.Fonts->SetTexID(NULL); - al_destroy_bitmap(g_Texture); - g_Texture = NULL; - } - if (g_MouseCursorInvisible) - { - al_destroy_mouse_cursor(g_MouseCursorInvisible); - g_MouseCursorInvisible = NULL; - } -} - -#if ALLEGRO_HAS_CLIPBOARD -static const char* ImGui_ImplAllegro5_GetClipboardText(void*) -{ - if (g_ClipboardTextData) - al_free(g_ClipboardTextData); - g_ClipboardTextData = al_get_clipboard_text(g_Display); - return g_ClipboardTextData; -} - -static void ImGui_ImplAllegro5_SetClipboardText(void*, const char* text) -{ - al_set_clipboard_text(g_Display, text); -} -#endif - -bool ImGui_ImplAllegro5_Init(ALLEGRO_DISPLAY* display) -{ - g_Display = display; - - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) - io.BackendPlatformName = io.BackendRendererName = "imgui_impl_allegro5"; - - // Create custom vertex declaration. - // Unfortunately Allegro doesn't support 32-bit packed colors so we have to convert them to 4 floats. - // We still use a custom declaration to use 'ALLEGRO_PRIM_TEX_COORD' instead of 'ALLEGRO_PRIM_TEX_COORD_PIXEL' else we can't do a reliable conversion. - ALLEGRO_VERTEX_ELEMENT elems[] = - { - { ALLEGRO_PRIM_POSITION, ALLEGRO_PRIM_FLOAT_2, IM_OFFSETOF(ImDrawVertAllegro, pos) }, - { ALLEGRO_PRIM_TEX_COORD, ALLEGRO_PRIM_FLOAT_2, IM_OFFSETOF(ImDrawVertAllegro, uv) }, - { ALLEGRO_PRIM_COLOR_ATTR, 0, IM_OFFSETOF(ImDrawVertAllegro, col) }, - { 0, 0, 0 } - }; - g_VertexDecl = al_create_vertex_decl(elems, sizeof(ImDrawVertAllegro)); - - io.KeyMap[ImGuiKey_Tab] = ALLEGRO_KEY_TAB; - io.KeyMap[ImGuiKey_LeftArrow] = ALLEGRO_KEY_LEFT; - io.KeyMap[ImGuiKey_RightArrow] = ALLEGRO_KEY_RIGHT; - io.KeyMap[ImGuiKey_UpArrow] = ALLEGRO_KEY_UP; - io.KeyMap[ImGuiKey_DownArrow] = ALLEGRO_KEY_DOWN; - io.KeyMap[ImGuiKey_PageUp] = ALLEGRO_KEY_PGUP; - io.KeyMap[ImGuiKey_PageDown] = ALLEGRO_KEY_PGDN; - io.KeyMap[ImGuiKey_Home] = ALLEGRO_KEY_HOME; - io.KeyMap[ImGuiKey_End] = ALLEGRO_KEY_END; - io.KeyMap[ImGuiKey_Insert] = ALLEGRO_KEY_INSERT; - io.KeyMap[ImGuiKey_Delete] = ALLEGRO_KEY_DELETE; - io.KeyMap[ImGuiKey_Backspace] = ALLEGRO_KEY_BACKSPACE; - io.KeyMap[ImGuiKey_Space] = ALLEGRO_KEY_SPACE; - io.KeyMap[ImGuiKey_Enter] = ALLEGRO_KEY_ENTER; - io.KeyMap[ImGuiKey_Escape] = ALLEGRO_KEY_ESCAPE; - io.KeyMap[ImGuiKey_KeyPadEnter] = ALLEGRO_KEY_PAD_ENTER; - io.KeyMap[ImGuiKey_A] = ALLEGRO_KEY_A; - io.KeyMap[ImGuiKey_C] = ALLEGRO_KEY_C; - io.KeyMap[ImGuiKey_V] = ALLEGRO_KEY_V; - io.KeyMap[ImGuiKey_X] = ALLEGRO_KEY_X; - io.KeyMap[ImGuiKey_Y] = ALLEGRO_KEY_Y; - io.KeyMap[ImGuiKey_Z] = ALLEGRO_KEY_Z; - io.MousePos = ImVec2(-FLT_MAX, -FLT_MAX); - -#if ALLEGRO_HAS_CLIPBOARD - io.SetClipboardTextFn = ImGui_ImplAllegro5_SetClipboardText; - io.GetClipboardTextFn = ImGui_ImplAllegro5_GetClipboardText; - io.ClipboardUserData = NULL; -#endif - - return true; -} - -void ImGui_ImplAllegro5_Shutdown() -{ - ImGui_ImplAllegro5_InvalidateDeviceObjects(); - - g_Display = NULL; - g_Time = 0.0; - - if (g_VertexDecl) - al_destroy_vertex_decl(g_VertexDecl); - g_VertexDecl = NULL; - - if (g_ClipboardTextData) - al_free(g_ClipboardTextData); - g_ClipboardTextData = NULL; -} - -// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. -// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. -// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. -// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. -bool ImGui_ImplAllegro5_ProcessEvent(ALLEGRO_EVENT* ev) -{ - ImGuiIO& io = ImGui::GetIO(); - - switch (ev->type) - { - case ALLEGRO_EVENT_MOUSE_AXES: - if (ev->mouse.display == g_Display) - { - io.MouseWheel += ev->mouse.dz; - io.MouseWheelH -= ev->mouse.dw; - io.MousePos = ImVec2(ev->mouse.x, ev->mouse.y); - } - return true; - case ALLEGRO_EVENT_MOUSE_BUTTON_DOWN: - case ALLEGRO_EVENT_MOUSE_BUTTON_UP: - if (ev->mouse.display == g_Display && ev->mouse.button <= 5) - io.MouseDown[ev->mouse.button - 1] = (ev->type == ALLEGRO_EVENT_MOUSE_BUTTON_DOWN); - return true; - case ALLEGRO_EVENT_TOUCH_MOVE: - if (ev->touch.display == g_Display) - io.MousePos = ImVec2(ev->touch.x, ev->touch.y); - return true; - case ALLEGRO_EVENT_TOUCH_BEGIN: - case ALLEGRO_EVENT_TOUCH_END: - case ALLEGRO_EVENT_TOUCH_CANCEL: - if (ev->touch.display == g_Display && ev->touch.primary) - io.MouseDown[0] = (ev->type == ALLEGRO_EVENT_TOUCH_BEGIN); - return true; - case ALLEGRO_EVENT_MOUSE_LEAVE_DISPLAY: - if (ev->mouse.display == g_Display) - io.MousePos = ImVec2(-FLT_MAX, -FLT_MAX); - return true; - case ALLEGRO_EVENT_KEY_CHAR: - if (ev->keyboard.display == g_Display) - if (ev->keyboard.unichar != 0) - io.AddInputCharacter((unsigned int)ev->keyboard.unichar); - return true; - case ALLEGRO_EVENT_KEY_DOWN: - case ALLEGRO_EVENT_KEY_UP: - if (ev->keyboard.display == g_Display) - io.KeysDown[ev->keyboard.keycode] = (ev->type == ALLEGRO_EVENT_KEY_DOWN); - return true; - } - return false; -} - -static void ImGui_ImplAllegro5_UpdateMouseCursor() -{ - ImGuiIO& io = ImGui::GetIO(); - if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) - return; - - ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); - if (io.MouseDrawCursor || imgui_cursor == ImGuiMouseCursor_None) - { - // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor - al_set_mouse_cursor(g_Display, g_MouseCursorInvisible); - } - else - { - ALLEGRO_SYSTEM_MOUSE_CURSOR cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_DEFAULT; - switch (imgui_cursor) - { - case ImGuiMouseCursor_TextInput: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_EDIT; break; - case ImGuiMouseCursor_ResizeAll: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_MOVE; break; - case ImGuiMouseCursor_ResizeNS: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_N; break; - case ImGuiMouseCursor_ResizeEW: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_E; break; - case ImGuiMouseCursor_ResizeNESW: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NE; break; - case ImGuiMouseCursor_ResizeNWSE: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NW; break; - case ImGuiMouseCursor_NotAllowed: cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_UNAVAILABLE; break; - } - al_set_system_mouse_cursor(g_Display, cursor_id); - } -} - -void ImGui_ImplAllegro5_NewFrame() -{ - if (!g_Texture) - ImGui_ImplAllegro5_CreateDeviceObjects(); - - ImGuiIO& io = ImGui::GetIO(); - - // Setup display size (every frame to accommodate for window resizing) - int w, h; - w = al_get_display_width(g_Display); - h = al_get_display_height(g_Display); - io.DisplaySize = ImVec2((float)w, (float)h); - - // Setup time step - double current_time = al_get_time(); - io.DeltaTime = g_Time > 0.0 ? (float)(current_time - g_Time) : (float)(1.0f / 60.0f); - g_Time = current_time; - - // Setup inputs - ALLEGRO_KEYBOARD_STATE keys; - al_get_keyboard_state(&keys); - io.KeyCtrl = al_key_down(&keys, ALLEGRO_KEY_LCTRL) || al_key_down(&keys, ALLEGRO_KEY_RCTRL); - io.KeyShift = al_key_down(&keys, ALLEGRO_KEY_LSHIFT) || al_key_down(&keys, ALLEGRO_KEY_RSHIFT); - io.KeyAlt = al_key_down(&keys, ALLEGRO_KEY_ALT) || al_key_down(&keys, ALLEGRO_KEY_ALTGR); - io.KeySuper = al_key_down(&keys, ALLEGRO_KEY_LWIN) || al_key_down(&keys, ALLEGRO_KEY_RWIN); - - ImGui_ImplAllegro5_UpdateMouseCursor(); -} diff --git a/third_party/imgui/backends/imgui_impl_allegro5.h b/third_party/imgui/backends/imgui_impl_allegro5.h deleted file mode 100644 index ef91d4b3..00000000 --- a/third_party/imgui/backends/imgui_impl_allegro5.h +++ /dev/null @@ -1,30 +0,0 @@ -// dear imgui: Renderer + Platform Backend for Allegro 5 -// (Info: Allegro 5 is a cross-platform general purpose library for handling windows, inputs, graphics, etc.) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'ALLEGRO_BITMAP*' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Platform: Clipboard support (from Allegro 5.1.12) -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. -// Issues: -// [ ] Renderer: The renderer is suboptimal as we need to unindex our buffers and convert vertices manually. -// [ ] Platform: Missing gamepad support. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -struct ALLEGRO_DISPLAY; -union ALLEGRO_EVENT; - -IMGUI_IMPL_API bool ImGui_ImplAllegro5_Init(ALLEGRO_DISPLAY* display); -IMGUI_IMPL_API void ImGui_ImplAllegro5_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplAllegro5_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplAllegro5_RenderDrawData(ImDrawData* draw_data); -IMGUI_IMPL_API bool ImGui_ImplAllegro5_ProcessEvent(ALLEGRO_EVENT* event); - -// Use if you want to reset your rendering device without losing Dear ImGui state. -IMGUI_IMPL_API bool ImGui_ImplAllegro5_CreateDeviceObjects(); -IMGUI_IMPL_API void ImGui_ImplAllegro5_InvalidateDeviceObjects(); diff --git a/third_party/imgui/backends/imgui_impl_android.cpp b/third_party/imgui/backends/imgui_impl_android.cpp deleted file mode 100644 index 672a27e1..00000000 --- a/third_party/imgui/backends/imgui_impl_android.cpp +++ /dev/null @@ -1,187 +0,0 @@ -// dear imgui: Platform Binding for Android native app -// This needs to be used along with the OpenGL 3 Renderer (imgui_impl_opengl3) - -// Implemented features: -// [X] Platform: Keyboard arrays indexed using AKEYCODE_* codes, e.g. ImGui::IsKeyPressed(AKEYCODE_SPACE). -// Missing features: -// [ ] Platform: Clipboard support. -// [ ] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. -// [ ] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. FIXME: Check if this is even possible with Android. -// Important: -// - FIXME: On-screen keyboard currently needs to be enabled by the application (see examples/ and issue #3446) -// - FIXME: Unicode character inputs needs to be passed by Dear ImGui by the application (see examples/ and issue #3446) - -// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. -// If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp. -// https://github.com/ocornut/imgui - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-03-04: Initial version. - -#include "imgui.h" -#include "imgui_impl_android.h" -#include -#include -#include -#include -#include -#include -#include - -// Android data -static double g_Time = 0.0; -static ANativeWindow* g_Window; -static char g_LogTag[] = "ImGuiExample"; -static std::map> g_KeyEventQueues; // FIXME: Remove dependency on map and queue once we use upcoming input queue. - -int32_t ImGui_ImplAndroid_HandleInputEvent(AInputEvent* input_event) -{ - ImGuiIO& io = ImGui::GetIO(); - int32_t event_type = AInputEvent_getType(input_event); - switch (event_type) - { - case AINPUT_EVENT_TYPE_KEY: - { - int32_t event_key_code = AKeyEvent_getKeyCode(input_event); - int32_t event_action = AKeyEvent_getAction(input_event); - int32_t event_meta_state = AKeyEvent_getMetaState(input_event); - - io.KeyCtrl = ((event_meta_state & AMETA_CTRL_ON) != 0); - io.KeyShift = ((event_meta_state & AMETA_SHIFT_ON) != 0); - io.KeyAlt = ((event_meta_state & AMETA_ALT_ON) != 0); - - switch (event_action) - { - // FIXME: AKEY_EVENT_ACTION_DOWN and AKEY_EVENT_ACTION_UP occur at once as soon as a touch pointer - // goes up from a key. We use a simple key event queue/ and process one event per key per frame in - // ImGui_ImplAndroid_NewFrame()...or consider using IO queue, if suitable: https://github.com/ocornut/imgui/issues/2787 - case AKEY_EVENT_ACTION_DOWN: - case AKEY_EVENT_ACTION_UP: - g_KeyEventQueues[event_key_code].push(event_action); - break; - default: - break; - } - break; - } - case AINPUT_EVENT_TYPE_MOTION: - { - int32_t event_action = AMotionEvent_getAction(input_event); - int32_t event_pointer_index = (event_action & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) >> AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT; - event_action &= AMOTION_EVENT_ACTION_MASK; - switch (event_action) - { - case AMOTION_EVENT_ACTION_DOWN: - case AMOTION_EVENT_ACTION_UP: - // Physical mouse buttons (and probably other physical devices) also invoke the actions AMOTION_EVENT_ACTION_DOWN/_UP, - // but we have to process them separately to identify the actual button pressed. This is done below via - // AMOTION_EVENT_ACTION_BUTTON_PRESS/_RELEASE. Here, we only process "FINGER" input (and "UNKNOWN", as a fallback). - if((AMotionEvent_getToolType(input_event, event_pointer_index) == AMOTION_EVENT_TOOL_TYPE_FINGER) - || (AMotionEvent_getToolType(input_event, event_pointer_index) == AMOTION_EVENT_TOOL_TYPE_UNKNOWN)) - { - io.MouseDown[0] = (event_action == AMOTION_EVENT_ACTION_DOWN) ? true : false; - io.MousePos = ImVec2(AMotionEvent_getX(input_event, event_pointer_index), AMotionEvent_getY(input_event, event_pointer_index)); - } - break; - case AMOTION_EVENT_ACTION_BUTTON_PRESS: - case AMOTION_EVENT_ACTION_BUTTON_RELEASE: - { - int32_t button_state = AMotionEvent_getButtonState(input_event); - io.MouseDown[0] = (button_state & AMOTION_EVENT_BUTTON_PRIMARY) ? true : false; - io.MouseDown[1] = (button_state & AMOTION_EVENT_BUTTON_SECONDARY) ? true : false; - io.MouseDown[2] = (button_state & AMOTION_EVENT_BUTTON_TERTIARY) ? true : false; - } - break; - case AMOTION_EVENT_ACTION_HOVER_MOVE: // Hovering: Tool moves while NOT pressed (such as a physical mouse) - case AMOTION_EVENT_ACTION_MOVE: // Touch pointer moves while DOWN - io.MousePos = ImVec2(AMotionEvent_getX(input_event, event_pointer_index), AMotionEvent_getY(input_event, event_pointer_index)); - break; - case AMOTION_EVENT_ACTION_SCROLL: - io.MouseWheel = AMotionEvent_getAxisValue(input_event, AMOTION_EVENT_AXIS_VSCROLL, event_pointer_index); - io.MouseWheelH = AMotionEvent_getAxisValue(input_event, AMOTION_EVENT_AXIS_HSCROLL, event_pointer_index); - break; - default: - break; - } - } - return 1; - default: - break; - } - - return 0; -} - -bool ImGui_ImplAndroid_Init(ANativeWindow* window) -{ - g_Window = window; - g_Time = 0.0; - - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendPlatformName = "imgui_impl_android"; - - // Keyboard mapping. Dear ImGui will use those indices to peek into the io.KeysDown[] array. - io.KeyMap[ImGuiKey_Tab] = AKEYCODE_TAB; - io.KeyMap[ImGuiKey_LeftArrow] = AKEYCODE_DPAD_LEFT; // also covers physical keyboard arrow key - io.KeyMap[ImGuiKey_RightArrow] = AKEYCODE_DPAD_RIGHT; // also covers physical keyboard arrow key - io.KeyMap[ImGuiKey_UpArrow] = AKEYCODE_DPAD_UP; // also covers physical keyboard arrow key - io.KeyMap[ImGuiKey_DownArrow] = AKEYCODE_DPAD_DOWN; // also covers physical keyboard arrow key - io.KeyMap[ImGuiKey_PageUp] = AKEYCODE_PAGE_UP; - io.KeyMap[ImGuiKey_PageDown] = AKEYCODE_PAGE_DOWN; - io.KeyMap[ImGuiKey_Home] = AKEYCODE_MOVE_HOME; - io.KeyMap[ImGuiKey_End] = AKEYCODE_MOVE_END; - io.KeyMap[ImGuiKey_Insert] = AKEYCODE_INSERT; - io.KeyMap[ImGuiKey_Delete] = AKEYCODE_FORWARD_DEL; - io.KeyMap[ImGuiKey_Backspace] = AKEYCODE_DEL; - io.KeyMap[ImGuiKey_Space] = AKEYCODE_SPACE; - io.KeyMap[ImGuiKey_Enter] = AKEYCODE_ENTER; - io.KeyMap[ImGuiKey_Escape] = AKEYCODE_ESCAPE; - io.KeyMap[ImGuiKey_KeyPadEnter] = AKEYCODE_NUMPAD_ENTER; - io.KeyMap[ImGuiKey_A] = AKEYCODE_A; - io.KeyMap[ImGuiKey_C] = AKEYCODE_C; - io.KeyMap[ImGuiKey_V] = AKEYCODE_V; - io.KeyMap[ImGuiKey_X] = AKEYCODE_X; - io.KeyMap[ImGuiKey_Y] = AKEYCODE_Y; - io.KeyMap[ImGuiKey_Z] = AKEYCODE_Z; - - return true; -} - -void ImGui_ImplAndroid_Shutdown() -{ -} - -void ImGui_ImplAndroid_NewFrame() -{ - ImGuiIO& io = ImGui::GetIO(); - IM_ASSERT(io.Fonts->IsBuilt() && "Font atlas not built! It is generally built by the renderer backend. Missing call to renderer _NewFrame() function? e.g. ImGui_ImplOpenGL3_NewFrame()."); - - // Process queued key events - // FIXME: This is a workaround for multiple key event actions occurring at once (see above) and can be removed once we use upcoming input queue. - for (auto& key_queue : g_KeyEventQueues) - { - if (key_queue.second.empty()) - continue; - io.KeysDown[key_queue.first] = (key_queue.second.front() == AKEY_EVENT_ACTION_DOWN); - key_queue.second.pop(); - } - - // Setup display size (every frame to accommodate for window resizing) - int32_t window_width = ANativeWindow_getWidth(g_Window); - int32_t window_height = ANativeWindow_getHeight(g_Window); - int display_width = window_width; - int display_height = window_height; - - io.DisplaySize = ImVec2((float)window_width, (float)window_height); - if (window_width > 0 && window_height > 0) - io.DisplayFramebufferScale = ImVec2((float)display_width / window_width, (float)display_height / window_height); - - // Setup time step - struct timespec current_timespec; - clock_gettime(CLOCK_MONOTONIC, ¤t_timespec); - double current_time = (double)(current_timespec.tv_sec) + (current_timespec.tv_nsec / 1000000000.0); - io.DeltaTime = g_Time > 0.0 ? (float)(current_time - g_Time) : (float)(1.0f / 60.0f); - g_Time = current_time; -} diff --git a/third_party/imgui/backends/imgui_impl_android.h b/third_party/imgui/backends/imgui_impl_android.h deleted file mode 100644 index e2f17573..00000000 --- a/third_party/imgui/backends/imgui_impl_android.h +++ /dev/null @@ -1,26 +0,0 @@ -// dear imgui: Platform Binding for Android native app -// This needs to be used along with the OpenGL 3 Renderer (imgui_impl_opengl3) - -// Implemented features: -// [X] Platform: Keyboard arrays indexed using AKEYCODE_* codes, e.g. ImGui::IsKeyPressed(AKEYCODE_SPACE). -// Missing features: -// [ ] Platform: Clipboard support. -// [ ] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. -// [ ] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. FIXME: Check if this is even possible with Android. -// Important: -// - FIXME: On-screen keyboard currently needs to be enabled by the application (see examples/ and issue #3446) -// - FIXME: Unicode character inputs needs to be passed by Dear ImGui by the application (see examples/ and issue #3446) - -// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this. -// If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp. -// https://github.com/ocornut/imgui - -#pragma once - -struct ANativeWindow; -struct AInputEvent; - -IMGUI_IMPL_API bool ImGui_ImplAndroid_Init(ANativeWindow* window); -IMGUI_IMPL_API int32_t ImGui_ImplAndroid_HandleInputEvent(AInputEvent* input_event); -IMGUI_IMPL_API void ImGui_ImplAndroid_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplAndroid_NewFrame(); diff --git a/third_party/imgui/backends/imgui_impl_dx10.cpp b/third_party/imgui/backends/imgui_impl_dx10.cpp deleted file mode 100644 index 28842755..00000000 --- a/third_party/imgui/backends/imgui_impl_dx10.cpp +++ /dev/null @@ -1,536 +0,0 @@ -// dear imgui: Renderer Backend for DirectX10 -// This needs to be used along with a Platform Backend (e.g. Win32) - -// Implemented features: -// [X] Renderer: User texture backend. Use 'ID3D10ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: DirectX10: Change blending equation to preserve alpha in output buffer. -// 2019-07-21: DirectX10: Backup, clear and restore Geometry Shader is any is bound when calling ImGui_ImplDX10_RenderDrawData(). -// 2019-05-29: DirectX10: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. -// 2019-04-30: DirectX10: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2018-12-03: Misc: Added #pragma comment statement to automatically link with d3dcompiler.lib when using D3DCompile(). -// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. -// 2018-07-13: DirectX10: Fixed unreleased resources in Init and Shutdown functions. -// 2018-06-08: Misc: Extracted imgui_impl_dx10.cpp/.h away from the old combined DX10+Win32 example. -// 2018-06-08: DirectX10: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. -// 2018-04-09: Misc: Fixed erroneous call to io.Fonts->ClearInputData() + ClearTexData() that was left in DX10 example but removed in 1.47 (Nov 2015) on other backends. -// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX10_RenderDrawData() in the .h file so you can call it yourself. -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. -// 2016-05-07: DirectX10: Disabling depth-write. - -#include "imgui.h" -#include "imgui_impl_dx10.h" - -// DirectX -#include -#include -#include -#include -#ifdef _MSC_VER -#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below. -#endif - -// DirectX data -static ID3D10Device* g_pd3dDevice = NULL; -static IDXGIFactory* g_pFactory = NULL; -static ID3D10Buffer* g_pVB = NULL; -static ID3D10Buffer* g_pIB = NULL; -static ID3D10VertexShader* g_pVertexShader = NULL; -static ID3D10InputLayout* g_pInputLayout = NULL; -static ID3D10Buffer* g_pVertexConstantBuffer = NULL; -static ID3D10PixelShader* g_pPixelShader = NULL; -static ID3D10SamplerState* g_pFontSampler = NULL; -static ID3D10ShaderResourceView*g_pFontTextureView = NULL; -static ID3D10RasterizerState* g_pRasterizerState = NULL; -static ID3D10BlendState* g_pBlendState = NULL; -static ID3D10DepthStencilState* g_pDepthStencilState = NULL; -static int g_VertexBufferSize = 5000, g_IndexBufferSize = 10000; - -struct VERTEX_CONSTANT_BUFFER -{ - float mvp[4][4]; -}; - -static void ImGui_ImplDX10_SetupRenderState(ImDrawData* draw_data, ID3D10Device* ctx) -{ - // Setup viewport - D3D10_VIEWPORT vp; - memset(&vp, 0, sizeof(D3D10_VIEWPORT)); - vp.Width = (UINT)draw_data->DisplaySize.x; - vp.Height = (UINT)draw_data->DisplaySize.y; - vp.MinDepth = 0.0f; - vp.MaxDepth = 1.0f; - vp.TopLeftX = vp.TopLeftY = 0; - ctx->RSSetViewports(1, &vp); - - // Bind shader and vertex buffers - unsigned int stride = sizeof(ImDrawVert); - unsigned int offset = 0; - ctx->IASetInputLayout(g_pInputLayout); - ctx->IASetVertexBuffers(0, 1, &g_pVB, &stride, &offset); - ctx->IASetIndexBuffer(g_pIB, sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT, 0); - ctx->IASetPrimitiveTopology(D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST); - ctx->VSSetShader(g_pVertexShader); - ctx->VSSetConstantBuffers(0, 1, &g_pVertexConstantBuffer); - ctx->PSSetShader(g_pPixelShader); - ctx->PSSetSamplers(0, 1, &g_pFontSampler); - ctx->GSSetShader(NULL); - - // Setup render state - const float blend_factor[4] = { 0.f, 0.f, 0.f, 0.f }; - ctx->OMSetBlendState(g_pBlendState, blend_factor, 0xffffffff); - ctx->OMSetDepthStencilState(g_pDepthStencilState, 0); - ctx->RSSetState(g_pRasterizerState); -} - -// Render function -void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data) -{ - // Avoid rendering when minimized - if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) - return; - - ID3D10Device* ctx = g_pd3dDevice; - - // Create and grow vertex/index buffers if needed - if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) - { - if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } - g_VertexBufferSize = draw_data->TotalVtxCount + 5000; - D3D10_BUFFER_DESC desc; - memset(&desc, 0, sizeof(D3D10_BUFFER_DESC)); - desc.Usage = D3D10_USAGE_DYNAMIC; - desc.ByteWidth = g_VertexBufferSize * sizeof(ImDrawVert); - desc.BindFlags = D3D10_BIND_VERTEX_BUFFER; - desc.CPUAccessFlags = D3D10_CPU_ACCESS_WRITE; - desc.MiscFlags = 0; - if (ctx->CreateBuffer(&desc, NULL, &g_pVB) < 0) - return; - } - - if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) - { - if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } - g_IndexBufferSize = draw_data->TotalIdxCount + 10000; - D3D10_BUFFER_DESC desc; - memset(&desc, 0, sizeof(D3D10_BUFFER_DESC)); - desc.Usage = D3D10_USAGE_DYNAMIC; - desc.ByteWidth = g_IndexBufferSize * sizeof(ImDrawIdx); - desc.BindFlags = D3D10_BIND_INDEX_BUFFER; - desc.CPUAccessFlags = D3D10_CPU_ACCESS_WRITE; - if (ctx->CreateBuffer(&desc, NULL, &g_pIB) < 0) - return; - } - - // Copy and convert all vertices into a single contiguous buffer - ImDrawVert* vtx_dst = NULL; - ImDrawIdx* idx_dst = NULL; - g_pVB->Map(D3D10_MAP_WRITE_DISCARD, 0, (void**)&vtx_dst); - g_pIB->Map(D3D10_MAP_WRITE_DISCARD, 0, (void**)&idx_dst); - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); - memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); - vtx_dst += cmd_list->VtxBuffer.Size; - idx_dst += cmd_list->IdxBuffer.Size; - } - g_pVB->Unmap(); - g_pIB->Unmap(); - - // Setup orthographic projection matrix into our constant buffer - // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. - { - void* mapped_resource; - if (g_pVertexConstantBuffer->Map(D3D10_MAP_WRITE_DISCARD, 0, &mapped_resource) != S_OK) - return; - VERTEX_CONSTANT_BUFFER* constant_buffer = (VERTEX_CONSTANT_BUFFER*)mapped_resource; - float L = draw_data->DisplayPos.x; - float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; - float T = draw_data->DisplayPos.y; - float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; - float mvp[4][4] = - { - { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, - { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, - { 0.0f, 0.0f, 0.5f, 0.0f }, - { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, - }; - memcpy(&constant_buffer->mvp, mvp, sizeof(mvp)); - g_pVertexConstantBuffer->Unmap(); - } - - // Backup DX state that will be modified to restore it afterwards (unfortunately this is very ugly looking and verbose. Close your eyes!) - struct BACKUP_DX10_STATE - { - UINT ScissorRectsCount, ViewportsCount; - D3D10_RECT ScissorRects[D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; - D3D10_VIEWPORT Viewports[D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; - ID3D10RasterizerState* RS; - ID3D10BlendState* BlendState; - FLOAT BlendFactor[4]; - UINT SampleMask; - UINT StencilRef; - ID3D10DepthStencilState* DepthStencilState; - ID3D10ShaderResourceView* PSShaderResource; - ID3D10SamplerState* PSSampler; - ID3D10PixelShader* PS; - ID3D10VertexShader* VS; - ID3D10GeometryShader* GS; - D3D10_PRIMITIVE_TOPOLOGY PrimitiveTopology; - ID3D10Buffer* IndexBuffer, *VertexBuffer, *VSConstantBuffer; - UINT IndexBufferOffset, VertexBufferStride, VertexBufferOffset; - DXGI_FORMAT IndexBufferFormat; - ID3D10InputLayout* InputLayout; - }; - BACKUP_DX10_STATE old; - old.ScissorRectsCount = old.ViewportsCount = D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; - ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); - ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); - ctx->RSGetState(&old.RS); - ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); - ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); - ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); - ctx->PSGetSamplers(0, 1, &old.PSSampler); - ctx->PSGetShader(&old.PS); - ctx->VSGetShader(&old.VS); - ctx->VSGetConstantBuffers(0, 1, &old.VSConstantBuffer); - ctx->GSGetShader(&old.GS); - ctx->IAGetPrimitiveTopology(&old.PrimitiveTopology); - ctx->IAGetIndexBuffer(&old.IndexBuffer, &old.IndexBufferFormat, &old.IndexBufferOffset); - ctx->IAGetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); - ctx->IAGetInputLayout(&old.InputLayout); - - // Setup desired DX state - ImGui_ImplDX10_SetupRenderState(draw_data, ctx); - - // Render command lists - // (Because we merged all buffers into a single one, we maintain our own offset into them) - int global_vtx_offset = 0; - int global_idx_offset = 0; - ImVec2 clip_off = draw_data->DisplayPos; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplDX10_SetupRenderState(draw_data, ctx); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Apply scissor/clipping rectangle - const D3D10_RECT r = { (LONG)(pcmd->ClipRect.x - clip_off.x), (LONG)(pcmd->ClipRect.y - clip_off.y), (LONG)(pcmd->ClipRect.z - clip_off.x), (LONG)(pcmd->ClipRect.w - clip_off.y)}; - ctx->RSSetScissorRects(1, &r); - - // Bind texture, Draw - ID3D10ShaderResourceView* texture_srv = (ID3D10ShaderResourceView*)pcmd->TextureId; - ctx->PSSetShaderResources(0, 1, &texture_srv); - ctx->DrawIndexed(pcmd->ElemCount, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset); - } - } - global_idx_offset += cmd_list->IdxBuffer.Size; - global_vtx_offset += cmd_list->VtxBuffer.Size; - } - - // Restore modified DX state - ctx->RSSetScissorRects(old.ScissorRectsCount, old.ScissorRects); - ctx->RSSetViewports(old.ViewportsCount, old.Viewports); - ctx->RSSetState(old.RS); if (old.RS) old.RS->Release(); - ctx->OMSetBlendState(old.BlendState, old.BlendFactor, old.SampleMask); if (old.BlendState) old.BlendState->Release(); - ctx->OMSetDepthStencilState(old.DepthStencilState, old.StencilRef); if (old.DepthStencilState) old.DepthStencilState->Release(); - ctx->PSSetShaderResources(0, 1, &old.PSShaderResource); if (old.PSShaderResource) old.PSShaderResource->Release(); - ctx->PSSetSamplers(0, 1, &old.PSSampler); if (old.PSSampler) old.PSSampler->Release(); - ctx->PSSetShader(old.PS); if (old.PS) old.PS->Release(); - ctx->VSSetShader(old.VS); if (old.VS) old.VS->Release(); - ctx->GSSetShader(old.GS); if (old.GS) old.GS->Release(); - ctx->VSSetConstantBuffers(0, 1, &old.VSConstantBuffer); if (old.VSConstantBuffer) old.VSConstantBuffer->Release(); - ctx->IASetPrimitiveTopology(old.PrimitiveTopology); - ctx->IASetIndexBuffer(old.IndexBuffer, old.IndexBufferFormat, old.IndexBufferOffset); if (old.IndexBuffer) old.IndexBuffer->Release(); - ctx->IASetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); if (old.VertexBuffer) old.VertexBuffer->Release(); - ctx->IASetInputLayout(old.InputLayout); if (old.InputLayout) old.InputLayout->Release(); -} - -static void ImGui_ImplDX10_CreateFontsTexture() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - - // Upload texture to graphics system - { - D3D10_TEXTURE2D_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.Width = width; - desc.Height = height; - desc.MipLevels = 1; - desc.ArraySize = 1; - desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - desc.SampleDesc.Count = 1; - desc.Usage = D3D10_USAGE_DEFAULT; - desc.BindFlags = D3D10_BIND_SHADER_RESOURCE; - desc.CPUAccessFlags = 0; - - ID3D10Texture2D* pTexture = NULL; - D3D10_SUBRESOURCE_DATA subResource; - subResource.pSysMem = pixels; - subResource.SysMemPitch = desc.Width * 4; - subResource.SysMemSlicePitch = 0; - g_pd3dDevice->CreateTexture2D(&desc, &subResource, &pTexture); - - // Create texture view - D3D10_SHADER_RESOURCE_VIEW_DESC srv_desc; - ZeroMemory(&srv_desc, sizeof(srv_desc)); - srv_desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - srv_desc.ViewDimension = D3D10_SRV_DIMENSION_TEXTURE2D; - srv_desc.Texture2D.MipLevels = desc.MipLevels; - srv_desc.Texture2D.MostDetailedMip = 0; - g_pd3dDevice->CreateShaderResourceView(pTexture, &srv_desc, &g_pFontTextureView); - pTexture->Release(); - } - - // Store our identifier - io.Fonts->SetTexID((ImTextureID)g_pFontTextureView); - - // Create texture sampler - { - D3D10_SAMPLER_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.Filter = D3D10_FILTER_MIN_MAG_MIP_LINEAR; - desc.AddressU = D3D10_TEXTURE_ADDRESS_WRAP; - desc.AddressV = D3D10_TEXTURE_ADDRESS_WRAP; - desc.AddressW = D3D10_TEXTURE_ADDRESS_WRAP; - desc.MipLODBias = 0.f; - desc.ComparisonFunc = D3D10_COMPARISON_ALWAYS; - desc.MinLOD = 0.f; - desc.MaxLOD = 0.f; - g_pd3dDevice->CreateSamplerState(&desc, &g_pFontSampler); - } -} - -bool ImGui_ImplDX10_CreateDeviceObjects() -{ - if (!g_pd3dDevice) - return false; - if (g_pFontSampler) - ImGui_ImplDX10_InvalidateDeviceObjects(); - - // By using D3DCompile() from / d3dcompiler.lib, we introduce a dependency to a given version of d3dcompiler_XX.dll (see D3DCOMPILER_DLL_A) - // If you would like to use this DX10 sample code but remove this dependency you can: - // 1) compile once, save the compiled shader blobs into a file or source code and pass them to CreateVertexShader()/CreatePixelShader() [preferred solution] - // 2) use code to detect any version of the DLL and grab a pointer to D3DCompile from the DLL. - // See https://github.com/ocornut/imgui/pull/638 for sources and details. - - // Create the vertex shader - { - static const char* vertexShader = - "cbuffer vertexBuffer : register(b0) \ - {\ - float4x4 ProjectionMatrix; \ - };\ - struct VS_INPUT\ - {\ - float2 pos : POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - \ - struct PS_INPUT\ - {\ - float4 pos : SV_POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - \ - PS_INPUT main(VS_INPUT input)\ - {\ - PS_INPUT output;\ - output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\ - output.col = input.col;\ - output.uv = input.uv;\ - return output;\ - }"; - - ID3DBlob* vertexShaderBlob; - if (FAILED(D3DCompile(vertexShader, strlen(vertexShader), NULL, NULL, NULL, "main", "vs_4_0", 0, 0, &vertexShaderBlob, NULL))) - return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! - if (g_pd3dDevice->CreateVertexShader(vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), &g_pVertexShader) != S_OK) - { - vertexShaderBlob->Release(); - return false; - } - - // Create the input layout - D3D10_INPUT_ELEMENT_DESC local_layout[] = - { - { "POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, pos), D3D10_INPUT_PER_VERTEX_DATA, 0 }, - { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, uv), D3D10_INPUT_PER_VERTEX_DATA, 0 }, - { "COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, (UINT)IM_OFFSETOF(ImDrawVert, col), D3D10_INPUT_PER_VERTEX_DATA, 0 }, - }; - if (g_pd3dDevice->CreateInputLayout(local_layout, 3, vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), &g_pInputLayout) != S_OK) - { - vertexShaderBlob->Release(); - return false; - } - vertexShaderBlob->Release(); - - // Create the constant buffer - { - D3D10_BUFFER_DESC desc; - desc.ByteWidth = sizeof(VERTEX_CONSTANT_BUFFER); - desc.Usage = D3D10_USAGE_DYNAMIC; - desc.BindFlags = D3D10_BIND_CONSTANT_BUFFER; - desc.CPUAccessFlags = D3D10_CPU_ACCESS_WRITE; - desc.MiscFlags = 0; - g_pd3dDevice->CreateBuffer(&desc, NULL, &g_pVertexConstantBuffer); - } - } - - // Create the pixel shader - { - static const char* pixelShader = - "struct PS_INPUT\ - {\ - float4 pos : SV_POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - sampler sampler0;\ - Texture2D texture0;\ - \ - float4 main(PS_INPUT input) : SV_Target\ - {\ - float4 out_col = input.col * texture0.Sample(sampler0, input.uv); \ - return out_col; \ - }"; - - ID3DBlob* pixelShaderBlob; - if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), NULL, NULL, NULL, "main", "ps_4_0", 0, 0, &pixelShaderBlob, NULL))) - return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! - if (g_pd3dDevice->CreatePixelShader(pixelShaderBlob->GetBufferPointer(), pixelShaderBlob->GetBufferSize(), &g_pPixelShader) != S_OK) - { - pixelShaderBlob->Release(); - return false; - } - pixelShaderBlob->Release(); - } - - // Create the blending setup - { - D3D10_BLEND_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.AlphaToCoverageEnable = false; - desc.BlendEnable[0] = true; - desc.SrcBlend = D3D10_BLEND_SRC_ALPHA; - desc.DestBlend = D3D10_BLEND_INV_SRC_ALPHA; - desc.BlendOp = D3D10_BLEND_OP_ADD; - desc.SrcBlendAlpha = D3D10_BLEND_ONE; - desc.DestBlendAlpha = D3D10_BLEND_INV_SRC_ALPHA; - desc.BlendOpAlpha = D3D10_BLEND_OP_ADD; - desc.RenderTargetWriteMask[0] = D3D10_COLOR_WRITE_ENABLE_ALL; - g_pd3dDevice->CreateBlendState(&desc, &g_pBlendState); - } - - // Create the rasterizer state - { - D3D10_RASTERIZER_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.FillMode = D3D10_FILL_SOLID; - desc.CullMode = D3D10_CULL_NONE; - desc.ScissorEnable = true; - desc.DepthClipEnable = true; - g_pd3dDevice->CreateRasterizerState(&desc, &g_pRasterizerState); - } - - // Create depth-stencil State - { - D3D10_DEPTH_STENCIL_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.DepthEnable = false; - desc.DepthWriteMask = D3D10_DEPTH_WRITE_MASK_ALL; - desc.DepthFunc = D3D10_COMPARISON_ALWAYS; - desc.StencilEnable = false; - desc.FrontFace.StencilFailOp = desc.FrontFace.StencilDepthFailOp = desc.FrontFace.StencilPassOp = D3D10_STENCIL_OP_KEEP; - desc.FrontFace.StencilFunc = D3D10_COMPARISON_ALWAYS; - desc.BackFace = desc.FrontFace; - g_pd3dDevice->CreateDepthStencilState(&desc, &g_pDepthStencilState); - } - - ImGui_ImplDX10_CreateFontsTexture(); - - return true; -} - -void ImGui_ImplDX10_InvalidateDeviceObjects() -{ - if (!g_pd3dDevice) - return; - - if (g_pFontSampler) { g_pFontSampler->Release(); g_pFontSampler = NULL; } - if (g_pFontTextureView) { g_pFontTextureView->Release(); g_pFontTextureView = NULL; ImGui::GetIO().Fonts->SetTexID(NULL); } // We copied g_pFontTextureView to io.Fonts->TexID so let's clear that as well. - if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } - if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } - - if (g_pBlendState) { g_pBlendState->Release(); g_pBlendState = NULL; } - if (g_pDepthStencilState) { g_pDepthStencilState->Release(); g_pDepthStencilState = NULL; } - if (g_pRasterizerState) { g_pRasterizerState->Release(); g_pRasterizerState = NULL; } - if (g_pPixelShader) { g_pPixelShader->Release(); g_pPixelShader = NULL; } - if (g_pVertexConstantBuffer) { g_pVertexConstantBuffer->Release(); g_pVertexConstantBuffer = NULL; } - if (g_pInputLayout) { g_pInputLayout->Release(); g_pInputLayout = NULL; } - if (g_pVertexShader) { g_pVertexShader->Release(); g_pVertexShader = NULL; } -} - -bool ImGui_ImplDX10_Init(ID3D10Device* device) -{ - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_dx10"; - io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. - - // Get factory from device - IDXGIDevice* pDXGIDevice = NULL; - IDXGIAdapter* pDXGIAdapter = NULL; - IDXGIFactory* pFactory = NULL; - - if (device->QueryInterface(IID_PPV_ARGS(&pDXGIDevice)) == S_OK) - if (pDXGIDevice->GetParent(IID_PPV_ARGS(&pDXGIAdapter)) == S_OK) - if (pDXGIAdapter->GetParent(IID_PPV_ARGS(&pFactory)) == S_OK) - { - g_pd3dDevice = device; - g_pFactory = pFactory; - } - if (pDXGIDevice) pDXGIDevice->Release(); - if (pDXGIAdapter) pDXGIAdapter->Release(); - g_pd3dDevice->AddRef(); - - return true; -} - -void ImGui_ImplDX10_Shutdown() -{ - ImGui_ImplDX10_InvalidateDeviceObjects(); - if (g_pFactory) { g_pFactory->Release(); g_pFactory = NULL; } - if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } -} - -void ImGui_ImplDX10_NewFrame() -{ - if (!g_pFontSampler) - ImGui_ImplDX10_CreateDeviceObjects(); -} diff --git a/third_party/imgui/backends/imgui_impl_dx10.h b/third_party/imgui/backends/imgui_impl_dx10.h deleted file mode 100644 index 35a34a9c..00000000 --- a/third_party/imgui/backends/imgui_impl_dx10.h +++ /dev/null @@ -1,24 +0,0 @@ -// dear imgui: Renderer Backend for DirectX10 -// This needs to be used along with a Platform Backend (e.g. Win32) - -// Implemented features: -// [X] Renderer: User texture backend. Use 'ID3D10ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -struct ID3D10Device; - -IMGUI_IMPL_API bool ImGui_ImplDX10_Init(ID3D10Device* device); -IMGUI_IMPL_API void ImGui_ImplDX10_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplDX10_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplDX10_RenderDrawData(ImDrawData* draw_data); - -// Use if you want to reset your rendering device without losing Dear ImGui state. -IMGUI_IMPL_API void ImGui_ImplDX10_InvalidateDeviceObjects(); -IMGUI_IMPL_API bool ImGui_ImplDX10_CreateDeviceObjects(); diff --git a/third_party/imgui/backends/imgui_impl_dx11.cpp b/third_party/imgui/backends/imgui_impl_dx11.cpp deleted file mode 100644 index f114cdc1..00000000 --- a/third_party/imgui/backends/imgui_impl_dx11.cpp +++ /dev/null @@ -1,551 +0,0 @@ -// dear imgui: Renderer Backend for DirectX11 -// This needs to be used along with a Platform Backend (e.g. Win32) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: DirectX11: Change blending equation to preserve alpha in output buffer. -// 2019-08-01: DirectX11: Fixed code querying the Geometry Shader state (would generally error with Debug layer enabled). -// 2019-07-21: DirectX11: Backup, clear and restore Geometry Shader is any is bound when calling ImGui_ImplDX10_RenderDrawData. Clearing Hull/Domain/Compute shaders without backup/restore. -// 2019-05-29: DirectX11: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. -// 2019-04-30: DirectX11: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2018-12-03: Misc: Added #pragma comment statement to automatically link with d3dcompiler.lib when using D3DCompile(). -// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. -// 2018-08-01: DirectX11: Querying for IDXGIFactory instead of IDXGIFactory1 to increase compatibility. -// 2018-07-13: DirectX11: Fixed unreleased resources in Init and Shutdown functions. -// 2018-06-08: Misc: Extracted imgui_impl_dx11.cpp/.h away from the old combined DX11+Win32 example. -// 2018-06-08: DirectX11: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. -// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX11_RenderDrawData() in the .h file so you can call it yourself. -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. -// 2016-05-07: DirectX11: Disabling depth-write. - -#include "imgui.h" -#include "imgui_impl_dx11.h" - -// DirectX -#include -#include -#include -#ifdef _MSC_VER -#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below. -#endif - -// DirectX data -static ID3D11Device* g_pd3dDevice = NULL; -static ID3D11DeviceContext* g_pd3dDeviceContext = NULL; -static IDXGIFactory* g_pFactory = NULL; -static ID3D11Buffer* g_pVB = NULL; -static ID3D11Buffer* g_pIB = NULL; -static ID3D11VertexShader* g_pVertexShader = NULL; -static ID3D11InputLayout* g_pInputLayout = NULL; -static ID3D11Buffer* g_pVertexConstantBuffer = NULL; -static ID3D11PixelShader* g_pPixelShader = NULL; -static ID3D11SamplerState* g_pFontSampler = NULL; -static ID3D11ShaderResourceView*g_pFontTextureView = NULL; -static ID3D11RasterizerState* g_pRasterizerState = NULL; -static ID3D11BlendState* g_pBlendState = NULL; -static ID3D11DepthStencilState* g_pDepthStencilState = NULL; -static int g_VertexBufferSize = 5000, g_IndexBufferSize = 10000; - -struct VERTEX_CONSTANT_BUFFER -{ - float mvp[4][4]; -}; - -static void ImGui_ImplDX11_SetupRenderState(ImDrawData* draw_data, ID3D11DeviceContext* ctx) -{ - // Setup viewport - D3D11_VIEWPORT vp; - memset(&vp, 0, sizeof(D3D11_VIEWPORT)); - vp.Width = draw_data->DisplaySize.x; - vp.Height = draw_data->DisplaySize.y; - vp.MinDepth = 0.0f; - vp.MaxDepth = 1.0f; - vp.TopLeftX = vp.TopLeftY = 0; - ctx->RSSetViewports(1, &vp); - - // Setup shader and vertex buffers - unsigned int stride = sizeof(ImDrawVert); - unsigned int offset = 0; - ctx->IASetInputLayout(g_pInputLayout); - ctx->IASetVertexBuffers(0, 1, &g_pVB, &stride, &offset); - ctx->IASetIndexBuffer(g_pIB, sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT, 0); - ctx->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST); - ctx->VSSetShader(g_pVertexShader, NULL, 0); - ctx->VSSetConstantBuffers(0, 1, &g_pVertexConstantBuffer); - ctx->PSSetShader(g_pPixelShader, NULL, 0); - ctx->PSSetSamplers(0, 1, &g_pFontSampler); - ctx->GSSetShader(NULL, NULL, 0); - ctx->HSSetShader(NULL, NULL, 0); // In theory we should backup and restore this as well.. very infrequently used.. - ctx->DSSetShader(NULL, NULL, 0); // In theory we should backup and restore this as well.. very infrequently used.. - ctx->CSSetShader(NULL, NULL, 0); // In theory we should backup and restore this as well.. very infrequently used.. - - // Setup blend state - const float blend_factor[4] = { 0.f, 0.f, 0.f, 0.f }; - ctx->OMSetBlendState(g_pBlendState, blend_factor, 0xffffffff); - ctx->OMSetDepthStencilState(g_pDepthStencilState, 0); - ctx->RSSetState(g_pRasterizerState); -} - -// Render function -void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data) -{ - // Avoid rendering when minimized - if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) - return; - - ID3D11DeviceContext* ctx = g_pd3dDeviceContext; - - // Create and grow vertex/index buffers if needed - if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) - { - if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } - g_VertexBufferSize = draw_data->TotalVtxCount + 5000; - D3D11_BUFFER_DESC desc; - memset(&desc, 0, sizeof(D3D11_BUFFER_DESC)); - desc.Usage = D3D11_USAGE_DYNAMIC; - desc.ByteWidth = g_VertexBufferSize * sizeof(ImDrawVert); - desc.BindFlags = D3D11_BIND_VERTEX_BUFFER; - desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; - desc.MiscFlags = 0; - if (g_pd3dDevice->CreateBuffer(&desc, NULL, &g_pVB) < 0) - return; - } - if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) - { - if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } - g_IndexBufferSize = draw_data->TotalIdxCount + 10000; - D3D11_BUFFER_DESC desc; - memset(&desc, 0, sizeof(D3D11_BUFFER_DESC)); - desc.Usage = D3D11_USAGE_DYNAMIC; - desc.ByteWidth = g_IndexBufferSize * sizeof(ImDrawIdx); - desc.BindFlags = D3D11_BIND_INDEX_BUFFER; - desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; - if (g_pd3dDevice->CreateBuffer(&desc, NULL, &g_pIB) < 0) - return; - } - - // Upload vertex/index data into a single contiguous GPU buffer - D3D11_MAPPED_SUBRESOURCE vtx_resource, idx_resource; - if (ctx->Map(g_pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &vtx_resource) != S_OK) - return; - if (ctx->Map(g_pIB, 0, D3D11_MAP_WRITE_DISCARD, 0, &idx_resource) != S_OK) - return; - ImDrawVert* vtx_dst = (ImDrawVert*)vtx_resource.pData; - ImDrawIdx* idx_dst = (ImDrawIdx*)idx_resource.pData; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); - memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); - vtx_dst += cmd_list->VtxBuffer.Size; - idx_dst += cmd_list->IdxBuffer.Size; - } - ctx->Unmap(g_pVB, 0); - ctx->Unmap(g_pIB, 0); - - // Setup orthographic projection matrix into our constant buffer - // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. - { - D3D11_MAPPED_SUBRESOURCE mapped_resource; - if (ctx->Map(g_pVertexConstantBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &mapped_resource) != S_OK) - return; - VERTEX_CONSTANT_BUFFER* constant_buffer = (VERTEX_CONSTANT_BUFFER*)mapped_resource.pData; - float L = draw_data->DisplayPos.x; - float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; - float T = draw_data->DisplayPos.y; - float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; - float mvp[4][4] = - { - { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, - { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, - { 0.0f, 0.0f, 0.5f, 0.0f }, - { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, - }; - memcpy(&constant_buffer->mvp, mvp, sizeof(mvp)); - ctx->Unmap(g_pVertexConstantBuffer, 0); - } - - // Backup DX state that will be modified to restore it afterwards (unfortunately this is very ugly looking and verbose. Close your eyes!) - struct BACKUP_DX11_STATE - { - UINT ScissorRectsCount, ViewportsCount; - D3D11_RECT ScissorRects[D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; - D3D11_VIEWPORT Viewports[D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE]; - ID3D11RasterizerState* RS; - ID3D11BlendState* BlendState; - FLOAT BlendFactor[4]; - UINT SampleMask; - UINT StencilRef; - ID3D11DepthStencilState* DepthStencilState; - ID3D11ShaderResourceView* PSShaderResource; - ID3D11SamplerState* PSSampler; - ID3D11PixelShader* PS; - ID3D11VertexShader* VS; - ID3D11GeometryShader* GS; - UINT PSInstancesCount, VSInstancesCount, GSInstancesCount; - ID3D11ClassInstance *PSInstances[256], *VSInstances[256], *GSInstances[256]; // 256 is max according to PSSetShader documentation - D3D11_PRIMITIVE_TOPOLOGY PrimitiveTopology; - ID3D11Buffer* IndexBuffer, *VertexBuffer, *VSConstantBuffer; - UINT IndexBufferOffset, VertexBufferStride, VertexBufferOffset; - DXGI_FORMAT IndexBufferFormat; - ID3D11InputLayout* InputLayout; - }; - BACKUP_DX11_STATE old; - old.ScissorRectsCount = old.ViewportsCount = D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; - ctx->RSGetScissorRects(&old.ScissorRectsCount, old.ScissorRects); - ctx->RSGetViewports(&old.ViewportsCount, old.Viewports); - ctx->RSGetState(&old.RS); - ctx->OMGetBlendState(&old.BlendState, old.BlendFactor, &old.SampleMask); - ctx->OMGetDepthStencilState(&old.DepthStencilState, &old.StencilRef); - ctx->PSGetShaderResources(0, 1, &old.PSShaderResource); - ctx->PSGetSamplers(0, 1, &old.PSSampler); - old.PSInstancesCount = old.VSInstancesCount = old.GSInstancesCount = 256; - ctx->PSGetShader(&old.PS, old.PSInstances, &old.PSInstancesCount); - ctx->VSGetShader(&old.VS, old.VSInstances, &old.VSInstancesCount); - ctx->VSGetConstantBuffers(0, 1, &old.VSConstantBuffer); - ctx->GSGetShader(&old.GS, old.GSInstances, &old.GSInstancesCount); - - ctx->IAGetPrimitiveTopology(&old.PrimitiveTopology); - ctx->IAGetIndexBuffer(&old.IndexBuffer, &old.IndexBufferFormat, &old.IndexBufferOffset); - ctx->IAGetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); - ctx->IAGetInputLayout(&old.InputLayout); - - // Setup desired DX state - ImGui_ImplDX11_SetupRenderState(draw_data, ctx); - - // Render command lists - // (Because we merged all buffers into a single one, we maintain our own offset into them) - int global_idx_offset = 0; - int global_vtx_offset = 0; - ImVec2 clip_off = draw_data->DisplayPos; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback != NULL) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplDX11_SetupRenderState(draw_data, ctx); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Apply scissor/clipping rectangle - const D3D11_RECT r = { (LONG)(pcmd->ClipRect.x - clip_off.x), (LONG)(pcmd->ClipRect.y - clip_off.y), (LONG)(pcmd->ClipRect.z - clip_off.x), (LONG)(pcmd->ClipRect.w - clip_off.y) }; - ctx->RSSetScissorRects(1, &r); - - // Bind texture, Draw - ID3D11ShaderResourceView* texture_srv = (ID3D11ShaderResourceView*)pcmd->TextureId; - ctx->PSSetShaderResources(0, 1, &texture_srv); - ctx->DrawIndexed(pcmd->ElemCount, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset); - } - } - global_idx_offset += cmd_list->IdxBuffer.Size; - global_vtx_offset += cmd_list->VtxBuffer.Size; - } - - // Restore modified DX state - ctx->RSSetScissorRects(old.ScissorRectsCount, old.ScissorRects); - ctx->RSSetViewports(old.ViewportsCount, old.Viewports); - ctx->RSSetState(old.RS); if (old.RS) old.RS->Release(); - ctx->OMSetBlendState(old.BlendState, old.BlendFactor, old.SampleMask); if (old.BlendState) old.BlendState->Release(); - ctx->OMSetDepthStencilState(old.DepthStencilState, old.StencilRef); if (old.DepthStencilState) old.DepthStencilState->Release(); - ctx->PSSetShaderResources(0, 1, &old.PSShaderResource); if (old.PSShaderResource) old.PSShaderResource->Release(); - ctx->PSSetSamplers(0, 1, &old.PSSampler); if (old.PSSampler) old.PSSampler->Release(); - ctx->PSSetShader(old.PS, old.PSInstances, old.PSInstancesCount); if (old.PS) old.PS->Release(); - for (UINT i = 0; i < old.PSInstancesCount; i++) if (old.PSInstances[i]) old.PSInstances[i]->Release(); - ctx->VSSetShader(old.VS, old.VSInstances, old.VSInstancesCount); if (old.VS) old.VS->Release(); - ctx->VSSetConstantBuffers(0, 1, &old.VSConstantBuffer); if (old.VSConstantBuffer) old.VSConstantBuffer->Release(); - ctx->GSSetShader(old.GS, old.GSInstances, old.GSInstancesCount); if (old.GS) old.GS->Release(); - for (UINT i = 0; i < old.VSInstancesCount; i++) if (old.VSInstances[i]) old.VSInstances[i]->Release(); - ctx->IASetPrimitiveTopology(old.PrimitiveTopology); - ctx->IASetIndexBuffer(old.IndexBuffer, old.IndexBufferFormat, old.IndexBufferOffset); if (old.IndexBuffer) old.IndexBuffer->Release(); - ctx->IASetVertexBuffers(0, 1, &old.VertexBuffer, &old.VertexBufferStride, &old.VertexBufferOffset); if (old.VertexBuffer) old.VertexBuffer->Release(); - ctx->IASetInputLayout(old.InputLayout); if (old.InputLayout) old.InputLayout->Release(); -} - -static void ImGui_ImplDX11_CreateFontsTexture() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - - // Upload texture to graphics system - { - D3D11_TEXTURE2D_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.Width = width; - desc.Height = height; - desc.MipLevels = 1; - desc.ArraySize = 1; - desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - desc.SampleDesc.Count = 1; - desc.Usage = D3D11_USAGE_DEFAULT; - desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; - desc.CPUAccessFlags = 0; - - ID3D11Texture2D* pTexture = NULL; - D3D11_SUBRESOURCE_DATA subResource; - subResource.pSysMem = pixels; - subResource.SysMemPitch = desc.Width * 4; - subResource.SysMemSlicePitch = 0; - g_pd3dDevice->CreateTexture2D(&desc, &subResource, &pTexture); - - // Create texture view - D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc; - ZeroMemory(&srvDesc, sizeof(srvDesc)); - srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - srvDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D; - srvDesc.Texture2D.MipLevels = desc.MipLevels; - srvDesc.Texture2D.MostDetailedMip = 0; - g_pd3dDevice->CreateShaderResourceView(pTexture, &srvDesc, &g_pFontTextureView); - pTexture->Release(); - } - - // Store our identifier - io.Fonts->SetTexID((ImTextureID)g_pFontTextureView); - - // Create texture sampler - { - D3D11_SAMPLER_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; - desc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; - desc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; - desc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP; - desc.MipLODBias = 0.f; - desc.ComparisonFunc = D3D11_COMPARISON_ALWAYS; - desc.MinLOD = 0.f; - desc.MaxLOD = 0.f; - g_pd3dDevice->CreateSamplerState(&desc, &g_pFontSampler); - } -} - -bool ImGui_ImplDX11_CreateDeviceObjects() -{ - if (!g_pd3dDevice) - return false; - if (g_pFontSampler) - ImGui_ImplDX11_InvalidateDeviceObjects(); - - // By using D3DCompile() from / d3dcompiler.lib, we introduce a dependency to a given version of d3dcompiler_XX.dll (see D3DCOMPILER_DLL_A) - // If you would like to use this DX11 sample code but remove this dependency you can: - // 1) compile once, save the compiled shader blobs into a file or source code and pass them to CreateVertexShader()/CreatePixelShader() [preferred solution] - // 2) use code to detect any version of the DLL and grab a pointer to D3DCompile from the DLL. - // See https://github.com/ocornut/imgui/pull/638 for sources and details. - - // Create the vertex shader - { - static const char* vertexShader = - "cbuffer vertexBuffer : register(b0) \ - {\ - float4x4 ProjectionMatrix; \ - };\ - struct VS_INPUT\ - {\ - float2 pos : POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - \ - struct PS_INPUT\ - {\ - float4 pos : SV_POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - \ - PS_INPUT main(VS_INPUT input)\ - {\ - PS_INPUT output;\ - output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\ - output.col = input.col;\ - output.uv = input.uv;\ - return output;\ - }"; - - ID3DBlob* vertexShaderBlob; - if (FAILED(D3DCompile(vertexShader, strlen(vertexShader), NULL, NULL, NULL, "main", "vs_4_0", 0, 0, &vertexShaderBlob, NULL))) - return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! - if (g_pd3dDevice->CreateVertexShader(vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), NULL, &g_pVertexShader) != S_OK) - { - vertexShaderBlob->Release(); - return false; - } - - // Create the input layout - D3D11_INPUT_ELEMENT_DESC local_layout[] = - { - { "POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, pos), D3D11_INPUT_PER_VERTEX_DATA, 0 }, - { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, uv), D3D11_INPUT_PER_VERTEX_DATA, 0 }, - { "COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, (UINT)IM_OFFSETOF(ImDrawVert, col), D3D11_INPUT_PER_VERTEX_DATA, 0 }, - }; - if (g_pd3dDevice->CreateInputLayout(local_layout, 3, vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize(), &g_pInputLayout) != S_OK) - { - vertexShaderBlob->Release(); - return false; - } - vertexShaderBlob->Release(); - - // Create the constant buffer - { - D3D11_BUFFER_DESC desc; - desc.ByteWidth = sizeof(VERTEX_CONSTANT_BUFFER); - desc.Usage = D3D11_USAGE_DYNAMIC; - desc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; - desc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; - desc.MiscFlags = 0; - g_pd3dDevice->CreateBuffer(&desc, NULL, &g_pVertexConstantBuffer); - } - } - - // Create the pixel shader - { - static const char* pixelShader = - "struct PS_INPUT\ - {\ - float4 pos : SV_POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - sampler sampler0;\ - Texture2D texture0;\ - \ - float4 main(PS_INPUT input) : SV_Target\ - {\ - float4 out_col = input.col * texture0.Sample(sampler0, input.uv); \ - return out_col; \ - }"; - - ID3DBlob* pixelShaderBlob; - if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), NULL, NULL, NULL, "main", "ps_4_0", 0, 0, &pixelShaderBlob, NULL))) - return false; // NB: Pass ID3DBlob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! - if (g_pd3dDevice->CreatePixelShader(pixelShaderBlob->GetBufferPointer(), pixelShaderBlob->GetBufferSize(), NULL, &g_pPixelShader) != S_OK) - { - pixelShaderBlob->Release(); - return false; - } - pixelShaderBlob->Release(); - } - - // Create the blending setup - { - D3D11_BLEND_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.AlphaToCoverageEnable = false; - desc.RenderTarget[0].BlendEnable = true; - desc.RenderTarget[0].SrcBlend = D3D11_BLEND_SRC_ALPHA; - desc.RenderTarget[0].DestBlend = D3D11_BLEND_INV_SRC_ALPHA; - desc.RenderTarget[0].BlendOp = D3D11_BLEND_OP_ADD; - desc.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE; - desc.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_INV_SRC_ALPHA; - desc.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD; - desc.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL; - g_pd3dDevice->CreateBlendState(&desc, &g_pBlendState); - } - - // Create the rasterizer state - { - D3D11_RASTERIZER_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.FillMode = D3D11_FILL_SOLID; - desc.CullMode = D3D11_CULL_NONE; - desc.ScissorEnable = true; - desc.DepthClipEnable = true; - g_pd3dDevice->CreateRasterizerState(&desc, &g_pRasterizerState); - } - - // Create depth-stencil State - { - D3D11_DEPTH_STENCIL_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.DepthEnable = false; - desc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL; - desc.DepthFunc = D3D11_COMPARISON_ALWAYS; - desc.StencilEnable = false; - desc.FrontFace.StencilFailOp = desc.FrontFace.StencilDepthFailOp = desc.FrontFace.StencilPassOp = D3D11_STENCIL_OP_KEEP; - desc.FrontFace.StencilFunc = D3D11_COMPARISON_ALWAYS; - desc.BackFace = desc.FrontFace; - g_pd3dDevice->CreateDepthStencilState(&desc, &g_pDepthStencilState); - } - - ImGui_ImplDX11_CreateFontsTexture(); - - return true; -} - -void ImGui_ImplDX11_InvalidateDeviceObjects() -{ - if (!g_pd3dDevice) - return; - - if (g_pFontSampler) { g_pFontSampler->Release(); g_pFontSampler = NULL; } - if (g_pFontTextureView) { g_pFontTextureView->Release(); g_pFontTextureView = NULL; ImGui::GetIO().Fonts->SetTexID(NULL); } // We copied g_pFontTextureView to io.Fonts->TexID so let's clear that as well. - if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } - if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } - - if (g_pBlendState) { g_pBlendState->Release(); g_pBlendState = NULL; } - if (g_pDepthStencilState) { g_pDepthStencilState->Release(); g_pDepthStencilState = NULL; } - if (g_pRasterizerState) { g_pRasterizerState->Release(); g_pRasterizerState = NULL; } - if (g_pPixelShader) { g_pPixelShader->Release(); g_pPixelShader = NULL; } - if (g_pVertexConstantBuffer) { g_pVertexConstantBuffer->Release(); g_pVertexConstantBuffer = NULL; } - if (g_pInputLayout) { g_pInputLayout->Release(); g_pInputLayout = NULL; } - if (g_pVertexShader) { g_pVertexShader->Release(); g_pVertexShader = NULL; } -} - -bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context) -{ - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_dx11"; - io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. - - // Get factory from device - IDXGIDevice* pDXGIDevice = NULL; - IDXGIAdapter* pDXGIAdapter = NULL; - IDXGIFactory* pFactory = NULL; - - if (device->QueryInterface(IID_PPV_ARGS(&pDXGIDevice)) == S_OK) - if (pDXGIDevice->GetParent(IID_PPV_ARGS(&pDXGIAdapter)) == S_OK) - if (pDXGIAdapter->GetParent(IID_PPV_ARGS(&pFactory)) == S_OK) - { - g_pd3dDevice = device; - g_pd3dDeviceContext = device_context; - g_pFactory = pFactory; - } - if (pDXGIDevice) pDXGIDevice->Release(); - if (pDXGIAdapter) pDXGIAdapter->Release(); - g_pd3dDevice->AddRef(); - g_pd3dDeviceContext->AddRef(); - - return true; -} - -void ImGui_ImplDX11_Shutdown() -{ - ImGui_ImplDX11_InvalidateDeviceObjects(); - if (g_pFactory) { g_pFactory->Release(); g_pFactory = NULL; } - if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } - if (g_pd3dDeviceContext) { g_pd3dDeviceContext->Release(); g_pd3dDeviceContext = NULL; } -} - -void ImGui_ImplDX11_NewFrame() -{ - if (!g_pFontSampler) - ImGui_ImplDX11_CreateDeviceObjects(); -} diff --git a/third_party/imgui/backends/imgui_impl_dx11.h b/third_party/imgui/backends/imgui_impl_dx11.h deleted file mode 100644 index 03fee14d..00000000 --- a/third_party/imgui/backends/imgui_impl_dx11.h +++ /dev/null @@ -1,25 +0,0 @@ -// dear imgui: Renderer Backend for DirectX11 -// This needs to be used along with a Platform Backend (e.g. Win32) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'ID3D11ShaderResourceView*' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -struct ID3D11Device; -struct ID3D11DeviceContext; - -IMGUI_IMPL_API bool ImGui_ImplDX11_Init(ID3D11Device* device, ID3D11DeviceContext* device_context); -IMGUI_IMPL_API void ImGui_ImplDX11_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplDX11_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data); - -// Use if you want to reset your rendering device without losing Dear ImGui state. -IMGUI_IMPL_API void ImGui_ImplDX11_InvalidateDeviceObjects(); -IMGUI_IMPL_API bool ImGui_ImplDX11_CreateDeviceObjects(); diff --git a/third_party/imgui/backends/imgui_impl_dx12.cpp b/third_party/imgui/backends/imgui_impl_dx12.cpp deleted file mode 100644 index 860fe660..00000000 --- a/third_party/imgui/backends/imgui_impl_dx12.cpp +++ /dev/null @@ -1,700 +0,0 @@ -// dear imgui: Renderer Backend for DirectX12 -// This needs to be used along with a Platform Backend (e.g. Win32) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'D3D12_GPU_DESCRIPTOR_HANDLE' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// Important: to compile on 32-bit systems, this backend requires code to be compiled with '#define ImTextureID ImU64'. -// This is because we need ImTextureID to carry a 64-bit value and by default ImTextureID is defined as void*. -// This define is set in the example .vcxproj file and need to be replicated in your app or by adding it to your imconfig.h file. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: DirectX12: Change blending equation to preserve alpha in output buffer. -// 2021-01-11: DirectX12: Improve Windows 7 compatibility (for D3D12On7) by loading d3d12.dll dynamically. -// 2020-09-16: DirectX12: Avoid rendering calls with zero-sized scissor rectangle since it generates a validation layer warning. -// 2020-09-08: DirectX12: Clarified support for building on 32-bit systems by redefining ImTextureID. -// 2019-10-18: DirectX12: *BREAKING CHANGE* Added extra ID3D12DescriptorHeap parameter to ImGui_ImplDX12_Init() function. -// 2019-05-29: DirectX12: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. -// 2019-04-30: DirectX12: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2019-03-29: Misc: Various minor tidying up. -// 2018-12-03: Misc: Added #pragma comment statement to automatically link with d3dcompiler.lib when using D3DCompile(). -// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. -// 2018-06-12: DirectX12: Moved the ID3D12GraphicsCommandList* parameter from NewFrame() to RenderDrawData(). -// 2018-06-08: Misc: Extracted imgui_impl_dx12.cpp/.h away from the old combined DX12+Win32 example. -// 2018-06-08: DirectX12: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle (to ease support for future multi-viewport). -// 2018-02-22: Merged into master with all Win32 code synchronized to other examples. - -#include "imgui.h" -#include "imgui_impl_dx12.h" - -// DirectX -#include -#include -#include -#ifdef _MSC_VER -#pragma comment(lib, "d3dcompiler") // Automatically link with d3dcompiler.lib as we are using D3DCompile() below. -#endif - -// DirectX data -static ID3D12Device* g_pd3dDevice = NULL; -static ID3D12RootSignature* g_pRootSignature = NULL; -static ID3D12PipelineState* g_pPipelineState = NULL; -static DXGI_FORMAT g_RTVFormat = DXGI_FORMAT_UNKNOWN; -static ID3D12Resource* g_pFontTextureResource = NULL; -static D3D12_CPU_DESCRIPTOR_HANDLE g_hFontSrvCpuDescHandle = {}; -static D3D12_GPU_DESCRIPTOR_HANDLE g_hFontSrvGpuDescHandle = {}; - -struct FrameResources -{ - ID3D12Resource* IndexBuffer; - ID3D12Resource* VertexBuffer; - int IndexBufferSize; - int VertexBufferSize; -}; -static FrameResources* g_pFrameResources = NULL; -static UINT g_numFramesInFlight = 0; -static UINT g_frameIndex = UINT_MAX; - -template -static void SafeRelease(T*& res) -{ - if (res) - res->Release(); - res = NULL; -} - -struct VERTEX_CONSTANT_BUFFER -{ - float mvp[4][4]; -}; - -static void ImGui_ImplDX12_SetupRenderState(ImDrawData* draw_data, ID3D12GraphicsCommandList* ctx, FrameResources* fr) -{ - // Setup orthographic projection matrix into our constant buffer - // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). - VERTEX_CONSTANT_BUFFER vertex_constant_buffer; - { - float L = draw_data->DisplayPos.x; - float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; - float T = draw_data->DisplayPos.y; - float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; - float mvp[4][4] = - { - { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, - { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, - { 0.0f, 0.0f, 0.5f, 0.0f }, - { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, - }; - memcpy(&vertex_constant_buffer.mvp, mvp, sizeof(mvp)); - } - - // Setup viewport - D3D12_VIEWPORT vp; - memset(&vp, 0, sizeof(D3D12_VIEWPORT)); - vp.Width = draw_data->DisplaySize.x; - vp.Height = draw_data->DisplaySize.y; - vp.MinDepth = 0.0f; - vp.MaxDepth = 1.0f; - vp.TopLeftX = vp.TopLeftY = 0.0f; - ctx->RSSetViewports(1, &vp); - - // Bind shader and vertex buffers - unsigned int stride = sizeof(ImDrawVert); - unsigned int offset = 0; - D3D12_VERTEX_BUFFER_VIEW vbv; - memset(&vbv, 0, sizeof(D3D12_VERTEX_BUFFER_VIEW)); - vbv.BufferLocation = fr->VertexBuffer->GetGPUVirtualAddress() + offset; - vbv.SizeInBytes = fr->VertexBufferSize * stride; - vbv.StrideInBytes = stride; - ctx->IASetVertexBuffers(0, 1, &vbv); - D3D12_INDEX_BUFFER_VIEW ibv; - memset(&ibv, 0, sizeof(D3D12_INDEX_BUFFER_VIEW)); - ibv.BufferLocation = fr->IndexBuffer->GetGPUVirtualAddress(); - ibv.SizeInBytes = fr->IndexBufferSize * sizeof(ImDrawIdx); - ibv.Format = sizeof(ImDrawIdx) == 2 ? DXGI_FORMAT_R16_UINT : DXGI_FORMAT_R32_UINT; - ctx->IASetIndexBuffer(&ibv); - ctx->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST); - ctx->SetPipelineState(g_pPipelineState); - ctx->SetGraphicsRootSignature(g_pRootSignature); - ctx->SetGraphicsRoot32BitConstants(0, 16, &vertex_constant_buffer, 0); - - // Setup blend factor - const float blend_factor[4] = { 0.f, 0.f, 0.f, 0.f }; - ctx->OMSetBlendFactor(blend_factor); -} - -// Render function -void ImGui_ImplDX12_RenderDrawData(ImDrawData* draw_data, ID3D12GraphicsCommandList* ctx) -{ - // Avoid rendering when minimized - if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) - return; - - // FIXME: I'm assuming that this only gets called once per frame! - // If not, we can't just re-allocate the IB or VB, we'll have to do a proper allocator. - g_frameIndex = g_frameIndex + 1; - FrameResources* fr = &g_pFrameResources[g_frameIndex % g_numFramesInFlight]; - - // Create and grow vertex/index buffers if needed - if (fr->VertexBuffer == NULL || fr->VertexBufferSize < draw_data->TotalVtxCount) - { - SafeRelease(fr->VertexBuffer); - fr->VertexBufferSize = draw_data->TotalVtxCount + 5000; - D3D12_HEAP_PROPERTIES props; - memset(&props, 0, sizeof(D3D12_HEAP_PROPERTIES)); - props.Type = D3D12_HEAP_TYPE_UPLOAD; - props.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; - props.MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; - D3D12_RESOURCE_DESC desc; - memset(&desc, 0, sizeof(D3D12_RESOURCE_DESC)); - desc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER; - desc.Width = fr->VertexBufferSize * sizeof(ImDrawVert); - desc.Height = 1; - desc.DepthOrArraySize = 1; - desc.MipLevels = 1; - desc.Format = DXGI_FORMAT_UNKNOWN; - desc.SampleDesc.Count = 1; - desc.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR; - desc.Flags = D3D12_RESOURCE_FLAG_NONE; - if (g_pd3dDevice->CreateCommittedResource(&props, D3D12_HEAP_FLAG_NONE, &desc, D3D12_RESOURCE_STATE_GENERIC_READ, NULL, IID_PPV_ARGS(&fr->VertexBuffer)) < 0) - return; - } - if (fr->IndexBuffer == NULL || fr->IndexBufferSize < draw_data->TotalIdxCount) - { - SafeRelease(fr->IndexBuffer); - fr->IndexBufferSize = draw_data->TotalIdxCount + 10000; - D3D12_HEAP_PROPERTIES props; - memset(&props, 0, sizeof(D3D12_HEAP_PROPERTIES)); - props.Type = D3D12_HEAP_TYPE_UPLOAD; - props.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; - props.MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; - D3D12_RESOURCE_DESC desc; - memset(&desc, 0, sizeof(D3D12_RESOURCE_DESC)); - desc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER; - desc.Width = fr->IndexBufferSize * sizeof(ImDrawIdx); - desc.Height = 1; - desc.DepthOrArraySize = 1; - desc.MipLevels = 1; - desc.Format = DXGI_FORMAT_UNKNOWN; - desc.SampleDesc.Count = 1; - desc.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR; - desc.Flags = D3D12_RESOURCE_FLAG_NONE; - if (g_pd3dDevice->CreateCommittedResource(&props, D3D12_HEAP_FLAG_NONE, &desc, D3D12_RESOURCE_STATE_GENERIC_READ, NULL, IID_PPV_ARGS(&fr->IndexBuffer)) < 0) - return; - } - - // Upload vertex/index data into a single contiguous GPU buffer - void* vtx_resource, *idx_resource; - D3D12_RANGE range; - memset(&range, 0, sizeof(D3D12_RANGE)); - if (fr->VertexBuffer->Map(0, &range, &vtx_resource) != S_OK) - return; - if (fr->IndexBuffer->Map(0, &range, &idx_resource) != S_OK) - return; - ImDrawVert* vtx_dst = (ImDrawVert*)vtx_resource; - ImDrawIdx* idx_dst = (ImDrawIdx*)idx_resource; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); - memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); - vtx_dst += cmd_list->VtxBuffer.Size; - idx_dst += cmd_list->IdxBuffer.Size; - } - fr->VertexBuffer->Unmap(0, &range); - fr->IndexBuffer->Unmap(0, &range); - - // Setup desired DX state - ImGui_ImplDX12_SetupRenderState(draw_data, ctx, fr); - - // Render command lists - // (Because we merged all buffers into a single one, we maintain our own offset into them) - int global_vtx_offset = 0; - int global_idx_offset = 0; - ImVec2 clip_off = draw_data->DisplayPos; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback != NULL) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplDX12_SetupRenderState(draw_data, ctx, fr); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Apply Scissor, Bind texture, Draw - const D3D12_RECT r = { (LONG)(pcmd->ClipRect.x - clip_off.x), (LONG)(pcmd->ClipRect.y - clip_off.y), (LONG)(pcmd->ClipRect.z - clip_off.x), (LONG)(pcmd->ClipRect.w - clip_off.y) }; - if (r.right > r.left && r.bottom > r.top) - { - ctx->SetGraphicsRootDescriptorTable(1, *(D3D12_GPU_DESCRIPTOR_HANDLE*)&pcmd->TextureId); - ctx->RSSetScissorRects(1, &r); - ctx->DrawIndexedInstanced(pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset, 0); - } - } - } - global_idx_offset += cmd_list->IdxBuffer.Size; - global_vtx_offset += cmd_list->VtxBuffer.Size; - } -} - -static void ImGui_ImplDX12_CreateFontsTexture() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - - // Upload texture to graphics system - { - D3D12_HEAP_PROPERTIES props; - memset(&props, 0, sizeof(D3D12_HEAP_PROPERTIES)); - props.Type = D3D12_HEAP_TYPE_DEFAULT; - props.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; - props.MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; - - D3D12_RESOURCE_DESC desc; - ZeroMemory(&desc, sizeof(desc)); - desc.Dimension = D3D12_RESOURCE_DIMENSION_TEXTURE2D; - desc.Alignment = 0; - desc.Width = width; - desc.Height = height; - desc.DepthOrArraySize = 1; - desc.MipLevels = 1; - desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - desc.SampleDesc.Count = 1; - desc.SampleDesc.Quality = 0; - desc.Layout = D3D12_TEXTURE_LAYOUT_UNKNOWN; - desc.Flags = D3D12_RESOURCE_FLAG_NONE; - - ID3D12Resource* pTexture = NULL; - g_pd3dDevice->CreateCommittedResource(&props, D3D12_HEAP_FLAG_NONE, &desc, - D3D12_RESOURCE_STATE_COPY_DEST, NULL, IID_PPV_ARGS(&pTexture)); - - UINT uploadPitch = (width * 4 + D3D12_TEXTURE_DATA_PITCH_ALIGNMENT - 1u) & ~(D3D12_TEXTURE_DATA_PITCH_ALIGNMENT - 1u); - UINT uploadSize = height * uploadPitch; - desc.Dimension = D3D12_RESOURCE_DIMENSION_BUFFER; - desc.Alignment = 0; - desc.Width = uploadSize; - desc.Height = 1; - desc.DepthOrArraySize = 1; - desc.MipLevels = 1; - desc.Format = DXGI_FORMAT_UNKNOWN; - desc.SampleDesc.Count = 1; - desc.SampleDesc.Quality = 0; - desc.Layout = D3D12_TEXTURE_LAYOUT_ROW_MAJOR; - desc.Flags = D3D12_RESOURCE_FLAG_NONE; - - props.Type = D3D12_HEAP_TYPE_UPLOAD; - props.CPUPageProperty = D3D12_CPU_PAGE_PROPERTY_UNKNOWN; - props.MemoryPoolPreference = D3D12_MEMORY_POOL_UNKNOWN; - - ID3D12Resource* uploadBuffer = NULL; - HRESULT hr = g_pd3dDevice->CreateCommittedResource(&props, D3D12_HEAP_FLAG_NONE, &desc, - D3D12_RESOURCE_STATE_GENERIC_READ, NULL, IID_PPV_ARGS(&uploadBuffer)); - IM_ASSERT(SUCCEEDED(hr)); - - void* mapped = NULL; - D3D12_RANGE range = { 0, uploadSize }; - hr = uploadBuffer->Map(0, &range, &mapped); - IM_ASSERT(SUCCEEDED(hr)); - for (int y = 0; y < height; y++) - memcpy((void*) ((uintptr_t) mapped + y * uploadPitch), pixels + y * width * 4, width * 4); - uploadBuffer->Unmap(0, &range); - - D3D12_TEXTURE_COPY_LOCATION srcLocation = {}; - srcLocation.pResource = uploadBuffer; - srcLocation.Type = D3D12_TEXTURE_COPY_TYPE_PLACED_FOOTPRINT; - srcLocation.PlacedFootprint.Footprint.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - srcLocation.PlacedFootprint.Footprint.Width = width; - srcLocation.PlacedFootprint.Footprint.Height = height; - srcLocation.PlacedFootprint.Footprint.Depth = 1; - srcLocation.PlacedFootprint.Footprint.RowPitch = uploadPitch; - - D3D12_TEXTURE_COPY_LOCATION dstLocation = {}; - dstLocation.pResource = pTexture; - dstLocation.Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX; - dstLocation.SubresourceIndex = 0; - - D3D12_RESOURCE_BARRIER barrier = {}; - barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION; - barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; - barrier.Transition.pResource = pTexture; - barrier.Transition.Subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES; - barrier.Transition.StateBefore = D3D12_RESOURCE_STATE_COPY_DEST; - barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE; - - ID3D12Fence* fence = NULL; - hr = g_pd3dDevice->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&fence)); - IM_ASSERT(SUCCEEDED(hr)); - - HANDLE event = CreateEvent(0, 0, 0, 0); - IM_ASSERT(event != NULL); - - D3D12_COMMAND_QUEUE_DESC queueDesc = {}; - queueDesc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT; - queueDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE; - queueDesc.NodeMask = 1; - - ID3D12CommandQueue* cmdQueue = NULL; - hr = g_pd3dDevice->CreateCommandQueue(&queueDesc, IID_PPV_ARGS(&cmdQueue)); - IM_ASSERT(SUCCEEDED(hr)); - - ID3D12CommandAllocator* cmdAlloc = NULL; - hr = g_pd3dDevice->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&cmdAlloc)); - IM_ASSERT(SUCCEEDED(hr)); - - ID3D12GraphicsCommandList* cmdList = NULL; - hr = g_pd3dDevice->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, cmdAlloc, NULL, IID_PPV_ARGS(&cmdList)); - IM_ASSERT(SUCCEEDED(hr)); - - cmdList->CopyTextureRegion(&dstLocation, 0, 0, 0, &srcLocation, NULL); - cmdList->ResourceBarrier(1, &barrier); - - hr = cmdList->Close(); - IM_ASSERT(SUCCEEDED(hr)); - - cmdQueue->ExecuteCommandLists(1, (ID3D12CommandList* const*)&cmdList); - hr = cmdQueue->Signal(fence, 1); - IM_ASSERT(SUCCEEDED(hr)); - - fence->SetEventOnCompletion(1, event); - WaitForSingleObject(event, INFINITE); - - cmdList->Release(); - cmdAlloc->Release(); - cmdQueue->Release(); - CloseHandle(event); - fence->Release(); - uploadBuffer->Release(); - - // Create texture view - D3D12_SHADER_RESOURCE_VIEW_DESC srvDesc; - ZeroMemory(&srvDesc, sizeof(srvDesc)); - srvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - srvDesc.ViewDimension = D3D12_SRV_DIMENSION_TEXTURE2D; - srvDesc.Texture2D.MipLevels = desc.MipLevels; - srvDesc.Texture2D.MostDetailedMip = 0; - srvDesc.Shader4ComponentMapping = D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING; - g_pd3dDevice->CreateShaderResourceView(pTexture, &srvDesc, g_hFontSrvCpuDescHandle); - SafeRelease(g_pFontTextureResource); - g_pFontTextureResource = pTexture; - } - - // Store our identifier - static_assert(sizeof(ImTextureID) >= sizeof(g_hFontSrvGpuDescHandle.ptr), "Can't pack descriptor handle into TexID, 32-bit not supported yet."); - io.Fonts->SetTexID((ImTextureID)g_hFontSrvGpuDescHandle.ptr); -} - -bool ImGui_ImplDX12_CreateDeviceObjects() -{ - if (!g_pd3dDevice) - return false; - if (g_pPipelineState) - ImGui_ImplDX12_InvalidateDeviceObjects(); - - // Create the root signature - { - D3D12_DESCRIPTOR_RANGE descRange = {}; - descRange.RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_SRV; - descRange.NumDescriptors = 1; - descRange.BaseShaderRegister = 0; - descRange.RegisterSpace = 0; - descRange.OffsetInDescriptorsFromTableStart = 0; - - D3D12_ROOT_PARAMETER param[2] = {}; - - param[0].ParameterType = D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS; - param[0].Constants.ShaderRegister = 0; - param[0].Constants.RegisterSpace = 0; - param[0].Constants.Num32BitValues = 16; - param[0].ShaderVisibility = D3D12_SHADER_VISIBILITY_VERTEX; - - param[1].ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE; - param[1].DescriptorTable.NumDescriptorRanges = 1; - param[1].DescriptorTable.pDescriptorRanges = &descRange; - param[1].ShaderVisibility = D3D12_SHADER_VISIBILITY_PIXEL; - - D3D12_STATIC_SAMPLER_DESC staticSampler = {}; - staticSampler.Filter = D3D12_FILTER_MIN_MAG_MIP_LINEAR; - staticSampler.AddressU = D3D12_TEXTURE_ADDRESS_MODE_WRAP; - staticSampler.AddressV = D3D12_TEXTURE_ADDRESS_MODE_WRAP; - staticSampler.AddressW = D3D12_TEXTURE_ADDRESS_MODE_WRAP; - staticSampler.MipLODBias = 0.f; - staticSampler.MaxAnisotropy = 0; - staticSampler.ComparisonFunc = D3D12_COMPARISON_FUNC_ALWAYS; - staticSampler.BorderColor = D3D12_STATIC_BORDER_COLOR_TRANSPARENT_BLACK; - staticSampler.MinLOD = 0.f; - staticSampler.MaxLOD = 0.f; - staticSampler.ShaderRegister = 0; - staticSampler.RegisterSpace = 0; - staticSampler.ShaderVisibility = D3D12_SHADER_VISIBILITY_PIXEL; - - D3D12_ROOT_SIGNATURE_DESC desc = {}; - desc.NumParameters = _countof(param); - desc.pParameters = param; - desc.NumStaticSamplers = 1; - desc.pStaticSamplers = &staticSampler; - desc.Flags = - D3D12_ROOT_SIGNATURE_FLAG_ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT | - D3D12_ROOT_SIGNATURE_FLAG_DENY_HULL_SHADER_ROOT_ACCESS | - D3D12_ROOT_SIGNATURE_FLAG_DENY_DOMAIN_SHADER_ROOT_ACCESS | - D3D12_ROOT_SIGNATURE_FLAG_DENY_GEOMETRY_SHADER_ROOT_ACCESS; - - // Load d3d12.dll and D3D12SerializeRootSignature() function address dynamically to facilitate using with D3D12On7. - // See if any version of d3d12.dll is already loaded in the process. If so, give preference to that. - static HINSTANCE d3d12_dll = ::GetModuleHandleA("d3d12.dll"); - if (d3d12_dll == NULL) - { - // Attempt to load d3d12.dll from local directories. This will only succeed if - // (1) the current OS is Windows 7, and - // (2) there exists a version of d3d12.dll for Windows 7 (D3D12On7) in one of the following directories. - // See https://github.com/ocornut/imgui/pull/3696 for details. - const char* localD3d12Paths[] = { ".\\d3d12.dll", ".\\d3d12on7\\d3d12.dll", ".\\12on7\\d3d12.dll" }; // A. current directory, B. used by some games, C. used in Microsoft D3D12On7 sample - for (int i = 0; i < IM_ARRAYSIZE(localD3d12Paths); i++) - if ((d3d12_dll = ::LoadLibraryA(localD3d12Paths[i])) != NULL) - break; - - // If failed, we are on Windows >= 10. - if (d3d12_dll == NULL) - d3d12_dll = ::LoadLibraryA("d3d12.dll"); - - if (d3d12_dll == NULL) - return false; - } - - PFN_D3D12_SERIALIZE_ROOT_SIGNATURE D3D12SerializeRootSignatureFn = (PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)::GetProcAddress(d3d12_dll, "D3D12SerializeRootSignature"); - if (D3D12SerializeRootSignatureFn == NULL) - return false; - - ID3DBlob* blob = NULL; - if (D3D12SerializeRootSignatureFn(&desc, D3D_ROOT_SIGNATURE_VERSION_1, &blob, NULL) != S_OK) - return false; - - g_pd3dDevice->CreateRootSignature(0, blob->GetBufferPointer(), blob->GetBufferSize(), IID_PPV_ARGS(&g_pRootSignature)); - blob->Release(); - } - - // By using D3DCompile() from / d3dcompiler.lib, we introduce a dependency to a given version of d3dcompiler_XX.dll (see D3DCOMPILER_DLL_A) - // If you would like to use this DX12 sample code but remove this dependency you can: - // 1) compile once, save the compiled shader blobs into a file or source code and pass them to CreateVertexShader()/CreatePixelShader() [preferred solution] - // 2) use code to detect any version of the DLL and grab a pointer to D3DCompile from the DLL. - // See https://github.com/ocornut/imgui/pull/638 for sources and details. - - D3D12_GRAPHICS_PIPELINE_STATE_DESC psoDesc; - memset(&psoDesc, 0, sizeof(D3D12_GRAPHICS_PIPELINE_STATE_DESC)); - psoDesc.NodeMask = 1; - psoDesc.PrimitiveTopologyType = D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE; - psoDesc.pRootSignature = g_pRootSignature; - psoDesc.SampleMask = UINT_MAX; - psoDesc.NumRenderTargets = 1; - psoDesc.RTVFormats[0] = g_RTVFormat; - psoDesc.SampleDesc.Count = 1; - psoDesc.Flags = D3D12_PIPELINE_STATE_FLAG_NONE; - - ID3DBlob* vertexShaderBlob; - ID3DBlob* pixelShaderBlob; - - // Create the vertex shader - { - static const char* vertexShader = - "cbuffer vertexBuffer : register(b0) \ - {\ - float4x4 ProjectionMatrix; \ - };\ - struct VS_INPUT\ - {\ - float2 pos : POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - \ - struct PS_INPUT\ - {\ - float4 pos : SV_POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - \ - PS_INPUT main(VS_INPUT input)\ - {\ - PS_INPUT output;\ - output.pos = mul( ProjectionMatrix, float4(input.pos.xy, 0.f, 1.f));\ - output.col = input.col;\ - output.uv = input.uv;\ - return output;\ - }"; - - if (FAILED(D3DCompile(vertexShader, strlen(vertexShader), NULL, NULL, NULL, "main", "vs_5_0", 0, 0, &vertexShaderBlob, NULL))) - return false; // NB: Pass ID3D10Blob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! - psoDesc.VS = { vertexShaderBlob->GetBufferPointer(), vertexShaderBlob->GetBufferSize() }; - - // Create the input layout - static D3D12_INPUT_ELEMENT_DESC local_layout[] = - { - { "POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, pos), D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 }, - { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, (UINT)IM_OFFSETOF(ImDrawVert, uv), D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 }, - { "COLOR", 0, DXGI_FORMAT_R8G8B8A8_UNORM, 0, (UINT)IM_OFFSETOF(ImDrawVert, col), D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 }, - }; - psoDesc.InputLayout = { local_layout, 3 }; - } - - // Create the pixel shader - { - static const char* pixelShader = - "struct PS_INPUT\ - {\ - float4 pos : SV_POSITION;\ - float4 col : COLOR0;\ - float2 uv : TEXCOORD0;\ - };\ - SamplerState sampler0 : register(s0);\ - Texture2D texture0 : register(t0);\ - \ - float4 main(PS_INPUT input) : SV_Target\ - {\ - float4 out_col = input.col * texture0.Sample(sampler0, input.uv); \ - return out_col; \ - }"; - - if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), NULL, NULL, NULL, "main", "ps_5_0", 0, 0, &pixelShaderBlob, NULL))) - { - vertexShaderBlob->Release(); - return false; // NB: Pass ID3D10Blob* pErrorBlob to D3DCompile() to get error showing in (const char*)pErrorBlob->GetBufferPointer(). Make sure to Release() the blob! - } - psoDesc.PS = { pixelShaderBlob->GetBufferPointer(), pixelShaderBlob->GetBufferSize() }; - } - - // Create the blending setup - { - D3D12_BLEND_DESC& desc = psoDesc.BlendState; - desc.AlphaToCoverageEnable = false; - desc.RenderTarget[0].BlendEnable = true; - desc.RenderTarget[0].SrcBlend = D3D12_BLEND_SRC_ALPHA; - desc.RenderTarget[0].DestBlend = D3D12_BLEND_INV_SRC_ALPHA; - desc.RenderTarget[0].BlendOp = D3D12_BLEND_OP_ADD; - desc.RenderTarget[0].SrcBlendAlpha = D3D12_BLEND_ONE; - desc.RenderTarget[0].DestBlendAlpha = D3D12_BLEND_INV_SRC_ALPHA; - desc.RenderTarget[0].BlendOpAlpha = D3D12_BLEND_OP_ADD; - desc.RenderTarget[0].RenderTargetWriteMask = D3D12_COLOR_WRITE_ENABLE_ALL; - } - - // Create the rasterizer state - { - D3D12_RASTERIZER_DESC& desc = psoDesc.RasterizerState; - desc.FillMode = D3D12_FILL_MODE_SOLID; - desc.CullMode = D3D12_CULL_MODE_NONE; - desc.FrontCounterClockwise = FALSE; - desc.DepthBias = D3D12_DEFAULT_DEPTH_BIAS; - desc.DepthBiasClamp = D3D12_DEFAULT_DEPTH_BIAS_CLAMP; - desc.SlopeScaledDepthBias = D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS; - desc.DepthClipEnable = true; - desc.MultisampleEnable = FALSE; - desc.AntialiasedLineEnable = FALSE; - desc.ForcedSampleCount = 0; - desc.ConservativeRaster = D3D12_CONSERVATIVE_RASTERIZATION_MODE_OFF; - } - - // Create depth-stencil State - { - D3D12_DEPTH_STENCIL_DESC& desc = psoDesc.DepthStencilState; - desc.DepthEnable = false; - desc.DepthWriteMask = D3D12_DEPTH_WRITE_MASK_ALL; - desc.DepthFunc = D3D12_COMPARISON_FUNC_ALWAYS; - desc.StencilEnable = false; - desc.FrontFace.StencilFailOp = desc.FrontFace.StencilDepthFailOp = desc.FrontFace.StencilPassOp = D3D12_STENCIL_OP_KEEP; - desc.FrontFace.StencilFunc = D3D12_COMPARISON_FUNC_ALWAYS; - desc.BackFace = desc.FrontFace; - } - - HRESULT result_pipeline_state = g_pd3dDevice->CreateGraphicsPipelineState(&psoDesc, IID_PPV_ARGS(&g_pPipelineState)); - vertexShaderBlob->Release(); - pixelShaderBlob->Release(); - if (result_pipeline_state != S_OK) - return false; - - ImGui_ImplDX12_CreateFontsTexture(); - - return true; -} - -void ImGui_ImplDX12_InvalidateDeviceObjects() -{ - if (!g_pd3dDevice) - return; - - SafeRelease(g_pRootSignature); - SafeRelease(g_pPipelineState); - SafeRelease(g_pFontTextureResource); - - ImGuiIO& io = ImGui::GetIO(); - io.Fonts->SetTexID(NULL); // We copied g_pFontTextureView to io.Fonts->TexID so let's clear that as well. - - for (UINT i = 0; i < g_numFramesInFlight; i++) - { - FrameResources* fr = &g_pFrameResources[i]; - SafeRelease(fr->IndexBuffer); - SafeRelease(fr->VertexBuffer); - } -} - -bool ImGui_ImplDX12_Init(ID3D12Device* device, int num_frames_in_flight, DXGI_FORMAT rtv_format, ID3D12DescriptorHeap* cbv_srv_heap, - D3D12_CPU_DESCRIPTOR_HANDLE font_srv_cpu_desc_handle, D3D12_GPU_DESCRIPTOR_HANDLE font_srv_gpu_desc_handle) -{ - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_dx12"; - io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. - - g_pd3dDevice = device; - g_RTVFormat = rtv_format; - g_hFontSrvCpuDescHandle = font_srv_cpu_desc_handle; - g_hFontSrvGpuDescHandle = font_srv_gpu_desc_handle; - g_pFrameResources = new FrameResources[num_frames_in_flight]; - g_numFramesInFlight = num_frames_in_flight; - g_frameIndex = UINT_MAX; - IM_UNUSED(cbv_srv_heap); // Unused in master branch (will be used by multi-viewports) - - // Create buffers with a default size (they will later be grown as needed) - for (int i = 0; i < num_frames_in_flight; i++) - { - FrameResources* fr = &g_pFrameResources[i]; - fr->IndexBuffer = NULL; - fr->VertexBuffer = NULL; - fr->IndexBufferSize = 10000; - fr->VertexBufferSize = 5000; - } - - return true; -} - -void ImGui_ImplDX12_Shutdown() -{ - ImGui_ImplDX12_InvalidateDeviceObjects(); - delete[] g_pFrameResources; - g_pFrameResources = NULL; - g_pd3dDevice = NULL; - g_hFontSrvCpuDescHandle.ptr = 0; - g_hFontSrvGpuDescHandle.ptr = 0; - g_numFramesInFlight = 0; - g_frameIndex = UINT_MAX; -} - -void ImGui_ImplDX12_NewFrame() -{ - if (!g_pPipelineState) - ImGui_ImplDX12_CreateDeviceObjects(); -} diff --git a/third_party/imgui/backends/imgui_impl_dx12.h b/third_party/imgui/backends/imgui_impl_dx12.h deleted file mode 100644 index 7051962a..00000000 --- a/third_party/imgui/backends/imgui_impl_dx12.h +++ /dev/null @@ -1,48 +0,0 @@ -// dear imgui: Renderer Backend for DirectX12 -// This needs to be used along with a Platform Backend (e.g. Win32) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'D3D12_GPU_DESCRIPTOR_HANDLE' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// Important: to compile on 32-bit systems, this backend requires code to be compiled with '#define ImTextureID ImU64'. -// This is because we need ImTextureID to carry a 64-bit value and by default ImTextureID is defined as void*. -// This define is set in the example .vcxproj file and need to be replicated in your app or by adding it to your imconfig.h file. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -#ifdef _MSC_VER -#pragma warning (push) -#pragma warning (disable: 4471) // a forward declaration of an unscoped enumeration must have an underlying type -#endif - -enum DXGI_FORMAT; -struct ID3D12Device; -struct ID3D12DescriptorHeap; -struct ID3D12GraphicsCommandList; -struct D3D12_CPU_DESCRIPTOR_HANDLE; -struct D3D12_GPU_DESCRIPTOR_HANDLE; - -// cmd_list is the command list that the implementation will use to render imgui draw lists. -// Before calling the render function, caller must prepare cmd_list by resetting it and setting the appropriate -// render target and descriptor heap that contains font_srv_cpu_desc_handle/font_srv_gpu_desc_handle. -// font_srv_cpu_desc_handle and font_srv_gpu_desc_handle are handles to a single SRV descriptor to use for the internal font texture. -IMGUI_IMPL_API bool ImGui_ImplDX12_Init(ID3D12Device* device, int num_frames_in_flight, DXGI_FORMAT rtv_format, ID3D12DescriptorHeap* cbv_srv_heap, - D3D12_CPU_DESCRIPTOR_HANDLE font_srv_cpu_desc_handle, D3D12_GPU_DESCRIPTOR_HANDLE font_srv_gpu_desc_handle); -IMGUI_IMPL_API void ImGui_ImplDX12_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplDX12_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplDX12_RenderDrawData(ImDrawData* draw_data, ID3D12GraphicsCommandList* graphics_command_list); - -// Use if you want to reset your rendering device without losing Dear ImGui state. -IMGUI_IMPL_API void ImGui_ImplDX12_InvalidateDeviceObjects(); -IMGUI_IMPL_API bool ImGui_ImplDX12_CreateDeviceObjects(); - -#ifdef _MSC_VER -#pragma warning (pop) -#endif - diff --git a/third_party/imgui/backends/imgui_impl_dx9.cpp b/third_party/imgui/backends/imgui_impl_dx9.cpp deleted file mode 100644 index b8044d9a..00000000 --- a/third_party/imgui/backends/imgui_impl_dx9.cpp +++ /dev/null @@ -1,308 +0,0 @@ -// dear imgui: Renderer Backend for DirectX9 -// This needs to be used along with a Platform Backend (e.g. Win32) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'LPDIRECT3DTEXTURE9' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-03-03: DirectX9: Added support for IMGUI_USE_BGRA_PACKED_COLOR in user's imconfig file. -// 2021-02-18: DirectX9: Change blending equation to preserve alpha in output buffer. -// 2019-05-29: DirectX9: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. -// 2019-04-30: DirectX9: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2019-03-29: Misc: Fixed erroneous assert in ImGui_ImplDX9_InvalidateDeviceObjects(). -// 2019-01-16: Misc: Disabled fog before drawing UI's. Fixes issue #2288. -// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. -// 2018-06-08: Misc: Extracted imgui_impl_dx9.cpp/.h away from the old combined DX9+Win32 example. -// 2018-06-08: DirectX9: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. -// 2018-05-07: Render: Saving/restoring Transform because they don't seem to be included in the StateBlock. Setting shading mode to Gouraud. -// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplDX9_RenderDrawData() in the .h file so you can call it yourself. -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. - -#include "imgui.h" -#include "imgui_impl_dx9.h" - -// DirectX -#include - -// DirectX data -static LPDIRECT3DDEVICE9 g_pd3dDevice = NULL; -static LPDIRECT3DVERTEXBUFFER9 g_pVB = NULL; -static LPDIRECT3DINDEXBUFFER9 g_pIB = NULL; -static LPDIRECT3DTEXTURE9 g_FontTexture = NULL; -static int g_VertexBufferSize = 5000, g_IndexBufferSize = 10000; - -struct CUSTOMVERTEX -{ - float pos[3]; - D3DCOLOR col; - float uv[2]; -}; -#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE|D3DFVF_TEX1) - -#ifdef IMGUI_USE_BGRA_PACKED_COLOR -#define IMGUI_COL_TO_DX9_ARGB(_COL) (_COL) -#else -#define IMGUI_COL_TO_DX9_ARGB(_COL) (((_COL) & 0xFF00FF00) | (((_COL) & 0xFF0000) >> 16) | (((_COL) & 0xFF) << 16)) -#endif - -static void ImGui_ImplDX9_SetupRenderState(ImDrawData* draw_data) -{ - // Setup viewport - D3DVIEWPORT9 vp; - vp.X = vp.Y = 0; - vp.Width = (DWORD)draw_data->DisplaySize.x; - vp.Height = (DWORD)draw_data->DisplaySize.y; - vp.MinZ = 0.0f; - vp.MaxZ = 1.0f; - g_pd3dDevice->SetViewport(&vp); - - // Setup render state: fixed-pipeline, alpha-blending, no face culling, no depth testing, shade mode (for gradient) - g_pd3dDevice->SetPixelShader(NULL); - g_pd3dDevice->SetVertexShader(NULL); - g_pd3dDevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE); - g_pd3dDevice->SetRenderState(D3DRS_LIGHTING, FALSE); - g_pd3dDevice->SetRenderState(D3DRS_ZENABLE, FALSE); - g_pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE); - g_pd3dDevice->SetRenderState(D3DRS_ALPHATESTENABLE, FALSE); - g_pd3dDevice->SetRenderState(D3DRS_BLENDOP, D3DBLENDOP_ADD); - g_pd3dDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA); - g_pd3dDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA); - g_pd3dDevice->SetRenderState(D3DRS_SEPARATEALPHABLENDENABLE, TRUE); - g_pd3dDevice->SetRenderState(D3DRS_SRCBLENDALPHA, D3DBLEND_ONE); - g_pd3dDevice->SetRenderState(D3DRS_DESTBLENDALPHA, D3DBLEND_INVSRCALPHA); - g_pd3dDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, TRUE); - g_pd3dDevice->SetRenderState(D3DRS_SHADEMODE, D3DSHADE_GOURAUD); - g_pd3dDevice->SetRenderState(D3DRS_FOGENABLE, FALSE); - g_pd3dDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE); - g_pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE); - g_pd3dDevice->SetTextureStageState(0, D3DTSS_COLORARG2, D3DTA_DIFFUSE); - g_pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE); - g_pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE); - g_pd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE); - g_pd3dDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR); - g_pd3dDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR); - - // Setup orthographic projection matrix - // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. - // Being agnostic of whether or can be used, we aren't relying on D3DXMatrixIdentity()/D3DXMatrixOrthoOffCenterLH() or DirectX::XMMatrixIdentity()/DirectX::XMMatrixOrthographicOffCenterLH() - { - float L = draw_data->DisplayPos.x + 0.5f; - float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x + 0.5f; - float T = draw_data->DisplayPos.y + 0.5f; - float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y + 0.5f; - D3DMATRIX mat_identity = { { { 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f } } }; - D3DMATRIX mat_projection = - { { { - 2.0f/(R-L), 0.0f, 0.0f, 0.0f, - 0.0f, 2.0f/(T-B), 0.0f, 0.0f, - 0.0f, 0.0f, 0.5f, 0.0f, - (L+R)/(L-R), (T+B)/(B-T), 0.5f, 1.0f - } } }; - g_pd3dDevice->SetTransform(D3DTS_WORLD, &mat_identity); - g_pd3dDevice->SetTransform(D3DTS_VIEW, &mat_identity); - g_pd3dDevice->SetTransform(D3DTS_PROJECTION, &mat_projection); - } -} - -// Render function. -void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data) -{ - // Avoid rendering when minimized - if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) - return; - - // Create and grow buffers if needed - if (!g_pVB || g_VertexBufferSize < draw_data->TotalVtxCount) - { - if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } - g_VertexBufferSize = draw_data->TotalVtxCount + 5000; - if (g_pd3dDevice->CreateVertexBuffer(g_VertexBufferSize * sizeof(CUSTOMVERTEX), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, D3DFVF_CUSTOMVERTEX, D3DPOOL_DEFAULT, &g_pVB, NULL) < 0) - return; - } - if (!g_pIB || g_IndexBufferSize < draw_data->TotalIdxCount) - { - if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } - g_IndexBufferSize = draw_data->TotalIdxCount + 10000; - if (g_pd3dDevice->CreateIndexBuffer(g_IndexBufferSize * sizeof(ImDrawIdx), D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY, sizeof(ImDrawIdx) == 2 ? D3DFMT_INDEX16 : D3DFMT_INDEX32, D3DPOOL_DEFAULT, &g_pIB, NULL) < 0) - return; - } - - // Backup the DX9 state - IDirect3DStateBlock9* d3d9_state_block = NULL; - if (g_pd3dDevice->CreateStateBlock(D3DSBT_ALL, &d3d9_state_block) < 0) - return; - - // Backup the DX9 transform (DX9 documentation suggests that it is included in the StateBlock but it doesn't appear to) - D3DMATRIX last_world, last_view, last_projection; - g_pd3dDevice->GetTransform(D3DTS_WORLD, &last_world); - g_pd3dDevice->GetTransform(D3DTS_VIEW, &last_view); - g_pd3dDevice->GetTransform(D3DTS_PROJECTION, &last_projection); - - // Copy and convert all vertices into a single contiguous buffer, convert colors to DX9 default format. - // FIXME-OPT: This is a minor waste of resource, the ideal is to use imconfig.h and - // 1) to avoid repacking colors: #define IMGUI_USE_BGRA_PACKED_COLOR - // 2) to avoid repacking vertices: #define IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT struct ImDrawVert { ImVec2 pos; float z; ImU32 col; ImVec2 uv; } - CUSTOMVERTEX* vtx_dst; - ImDrawIdx* idx_dst; - if (g_pVB->Lock(0, (UINT)(draw_data->TotalVtxCount * sizeof(CUSTOMVERTEX)), (void**)&vtx_dst, D3DLOCK_DISCARD) < 0) - return; - if (g_pIB->Lock(0, (UINT)(draw_data->TotalIdxCount * sizeof(ImDrawIdx)), (void**)&idx_dst, D3DLOCK_DISCARD) < 0) - return; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - const ImDrawVert* vtx_src = cmd_list->VtxBuffer.Data; - for (int i = 0; i < cmd_list->VtxBuffer.Size; i++) - { - vtx_dst->pos[0] = vtx_src->pos.x; - vtx_dst->pos[1] = vtx_src->pos.y; - vtx_dst->pos[2] = 0.0f; - vtx_dst->col = IMGUI_COL_TO_DX9_ARGB(vtx_src->col); - vtx_dst->uv[0] = vtx_src->uv.x; - vtx_dst->uv[1] = vtx_src->uv.y; - vtx_dst++; - vtx_src++; - } - memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); - idx_dst += cmd_list->IdxBuffer.Size; - } - g_pVB->Unlock(); - g_pIB->Unlock(); - g_pd3dDevice->SetStreamSource(0, g_pVB, 0, sizeof(CUSTOMVERTEX)); - g_pd3dDevice->SetIndices(g_pIB); - g_pd3dDevice->SetFVF(D3DFVF_CUSTOMVERTEX); - - // Setup desired DX state - ImGui_ImplDX9_SetupRenderState(draw_data); - - // Render command lists - // (Because we merged all buffers into a single one, we maintain our own offset into them) - int global_vtx_offset = 0; - int global_idx_offset = 0; - ImVec2 clip_off = draw_data->DisplayPos; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback != NULL) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplDX9_SetupRenderState(draw_data); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - const RECT r = { (LONG)(pcmd->ClipRect.x - clip_off.x), (LONG)(pcmd->ClipRect.y - clip_off.y), (LONG)(pcmd->ClipRect.z - clip_off.x), (LONG)(pcmd->ClipRect.w - clip_off.y) }; - const LPDIRECT3DTEXTURE9 texture = (LPDIRECT3DTEXTURE9)pcmd->TextureId; - g_pd3dDevice->SetTexture(0, texture); - g_pd3dDevice->SetScissorRect(&r); - g_pd3dDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, pcmd->VtxOffset + global_vtx_offset, 0, (UINT)cmd_list->VtxBuffer.Size, pcmd->IdxOffset + global_idx_offset, pcmd->ElemCount / 3); - } - } - global_idx_offset += cmd_list->IdxBuffer.Size; - global_vtx_offset += cmd_list->VtxBuffer.Size; - } - - // Restore the DX9 transform - g_pd3dDevice->SetTransform(D3DTS_WORLD, &last_world); - g_pd3dDevice->SetTransform(D3DTS_VIEW, &last_view); - g_pd3dDevice->SetTransform(D3DTS_PROJECTION, &last_projection); - - // Restore the DX9 state - d3d9_state_block->Apply(); - d3d9_state_block->Release(); -} - -bool ImGui_ImplDX9_Init(IDirect3DDevice9* device) -{ - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_dx9"; - io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. - - g_pd3dDevice = device; - g_pd3dDevice->AddRef(); - return true; -} - -void ImGui_ImplDX9_Shutdown() -{ - ImGui_ImplDX9_InvalidateDeviceObjects(); - if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } -} - -static bool ImGui_ImplDX9_CreateFontsTexture() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height, bytes_per_pixel; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height, &bytes_per_pixel); - - // Convert RGBA32 to BGRA32 (because RGBA32 is not well supported by DX9 devices) -#ifndef IMGUI_USE_BGRA_PACKED_COLOR - if (io.Fonts->TexPixelsUseColors) - { - ImU32* dst_start = (ImU32*)ImGui::MemAlloc(width * height * bytes_per_pixel); - for (ImU32* src = (ImU32*)pixels, *dst = dst_start, *dst_end = dst_start + width * height; dst < dst_end; src++, dst++) - *dst = IMGUI_COL_TO_DX9_ARGB(*src); - pixels = (unsigned char*)dst_start; - } -#endif - - // Upload texture to graphics system - g_FontTexture = NULL; - if (g_pd3dDevice->CreateTexture(width, height, 1, D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &g_FontTexture, NULL) < 0) - return false; - D3DLOCKED_RECT tex_locked_rect; - if (g_FontTexture->LockRect(0, &tex_locked_rect, NULL, 0) != D3D_OK) - return false; - for (int y = 0; y < height; y++) - memcpy((unsigned char*)tex_locked_rect.pBits + tex_locked_rect.Pitch * y, pixels + (width * bytes_per_pixel) * y, (width * bytes_per_pixel)); - g_FontTexture->UnlockRect(0); - - // Store our identifier - io.Fonts->SetTexID((ImTextureID)g_FontTexture); - -#ifndef IMGUI_USE_BGRA_PACKED_COLOR - if (io.Fonts->TexPixelsUseColors) - ImGui::MemFree(pixels); -#endif - - return true; -} - -bool ImGui_ImplDX9_CreateDeviceObjects() -{ - if (!g_pd3dDevice) - return false; - if (!ImGui_ImplDX9_CreateFontsTexture()) - return false; - return true; -} - -void ImGui_ImplDX9_InvalidateDeviceObjects() -{ - if (!g_pd3dDevice) - return; - if (g_pVB) { g_pVB->Release(); g_pVB = NULL; } - if (g_pIB) { g_pIB->Release(); g_pIB = NULL; } - if (g_FontTexture) { g_FontTexture->Release(); g_FontTexture = NULL; ImGui::GetIO().Fonts->SetTexID(NULL); } // We copied g_pFontTextureView to io.Fonts->TexID so let's clear that as well. -} - -void ImGui_ImplDX9_NewFrame() -{ - if (!g_FontTexture) - ImGui_ImplDX9_CreateDeviceObjects(); -} diff --git a/third_party/imgui/backends/imgui_impl_dx9.h b/third_party/imgui/backends/imgui_impl_dx9.h deleted file mode 100644 index 88edca73..00000000 --- a/third_party/imgui/backends/imgui_impl_dx9.h +++ /dev/null @@ -1,24 +0,0 @@ -// dear imgui: Renderer Backend for DirectX9 -// This needs to be used along with a Platform Backend (e.g. Win32) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'LPDIRECT3DTEXTURE9' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -struct IDirect3DDevice9; - -IMGUI_IMPL_API bool ImGui_ImplDX9_Init(IDirect3DDevice9* device); -IMGUI_IMPL_API void ImGui_ImplDX9_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplDX9_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data); - -// Use if you want to reset your rendering device without losing Dear ImGui state. -IMGUI_IMPL_API bool ImGui_ImplDX9_CreateDeviceObjects(); -IMGUI_IMPL_API void ImGui_ImplDX9_InvalidateDeviceObjects(); diff --git a/third_party/imgui/backends/imgui_impl_glfw.cpp b/third_party/imgui/backends/imgui_impl_glfw.cpp deleted file mode 100644 index cd0f51db..00000000 --- a/third_party/imgui/backends/imgui_impl_glfw.cpp +++ /dev/null @@ -1,374 +0,0 @@ -// dear imgui: Platform Backend for GLFW -// This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..) -// (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) -// (Requires: GLFW 3.1+) - -// Implemented features: -// [X] Platform: Clipboard support. -// [X] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange' (note: the resizing cursors requires GLFW 3.4+). -// [X] Platform: Keyboard arrays indexed using GLFW_KEY_* codes, e.g. ImGui::IsKeyPressed(GLFW_KEY_SPACE). - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2020-01-17: Inputs: Disable error callback while assigning mouse cursors because some X11 setup don't have them and it generates errors. -// 2019-12-05: Inputs: Added support for new mouse cursors added in GLFW 3.4+ (resizing cursors, not allowed cursor). -// 2019-10-18: Misc: Previously installed user callbacks are now restored on shutdown. -// 2019-07-21: Inputs: Added mapping for ImGuiKey_KeyPadEnter. -// 2019-05-11: Inputs: Don't filter value from character callback before calling AddInputCharacter(). -// 2019-03-12: Misc: Preserve DisplayFramebufferScale when main window is minimized. -// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. -// 2018-11-07: Inputs: When installing our GLFW callbacks, we save user's previously installed ones - if any - and chain call them. -// 2018-08-01: Inputs: Workaround for Emscripten which doesn't seem to handle focus related calls. -// 2018-06-29: Inputs: Added support for the ImGuiMouseCursor_Hand cursor. -// 2018-06-08: Misc: Extracted imgui_impl_glfw.cpp/.h away from the old combined GLFW+OpenGL/Vulkan examples. -// 2018-03-20: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors flag + honor ImGuiConfigFlags_NoMouseCursorChange flag. -// 2018-02-20: Inputs: Added support for mouse cursors (ImGui::GetMouseCursor() value, passed to glfwSetCursor()). -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. -// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. -// 2018-01-25: Inputs: Added gamepad support if ImGuiConfigFlags_NavEnableGamepad is set. -// 2018-01-25: Inputs: Honoring the io.WantSetMousePos by repositioning the mouse (when using navigation and ImGuiConfigFlags_NavMoveMouse is set). -// 2018-01-20: Inputs: Added Horizontal Mouse Wheel support. -// 2018-01-18: Inputs: Added mapping for ImGuiKey_Insert. -// 2017-08-25: Inputs: MousePos set to -FLT_MAX,-FLT_MAX when mouse is unavailable/missing (instead of -1,-1). -// 2016-10-15: Misc: Added a void* user_data parameter to Clipboard function handlers. - -#include "imgui.h" -#include "imgui_impl_glfw.h" - -// GLFW -#include -#ifdef _WIN32 -#undef APIENTRY -#define GLFW_EXPOSE_NATIVE_WIN32 -#include // for glfwGetWin32Window -#endif -#define GLFW_HAS_WINDOW_TOPMOST (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 >= 3200) // 3.2+ GLFW_FLOATING -#define GLFW_HAS_WINDOW_HOVERED (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 >= 3300) // 3.3+ GLFW_HOVERED -#define GLFW_HAS_WINDOW_ALPHA (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 >= 3300) // 3.3+ glfwSetWindowOpacity -#define GLFW_HAS_PER_MONITOR_DPI (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 >= 3300) // 3.3+ glfwGetMonitorContentScale -#define GLFW_HAS_VULKAN (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 >= 3200) // 3.2+ glfwCreateWindowSurface -#ifdef GLFW_RESIZE_NESW_CURSOR // let's be nice to people who pulled GLFW between 2019-04-16 (3.4 define) and 2019-11-29 (cursors defines) // FIXME: Remove when GLFW 3.4 is released? -#define GLFW_HAS_NEW_CURSORS (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 >= 3400) // 3.4+ GLFW_RESIZE_ALL_CURSOR, GLFW_RESIZE_NESW_CURSOR, GLFW_RESIZE_NWSE_CURSOR, GLFW_NOT_ALLOWED_CURSOR -#else -#define GLFW_HAS_NEW_CURSORS (0) -#endif - -// Data -enum GlfwClientApi -{ - GlfwClientApi_Unknown, - GlfwClientApi_OpenGL, - GlfwClientApi_Vulkan -}; -static GLFWwindow* g_Window = NULL; // Main window -static GlfwClientApi g_ClientApi = GlfwClientApi_Unknown; -static double g_Time = 0.0; -static bool g_MouseJustPressed[ImGuiMouseButton_COUNT] = {}; -static GLFWcursor* g_MouseCursors[ImGuiMouseCursor_COUNT] = {}; -static bool g_InstalledCallbacks = false; - -// Chain GLFW callbacks: our callbacks will call the user's previously installed callbacks, if any. -static GLFWmousebuttonfun g_PrevUserCallbackMousebutton = NULL; -static GLFWscrollfun g_PrevUserCallbackScroll = NULL; -static GLFWkeyfun g_PrevUserCallbackKey = NULL; -static GLFWcharfun g_PrevUserCallbackChar = NULL; - -static const char* ImGui_ImplGlfw_GetClipboardText(void* user_data) -{ - return glfwGetClipboardString((GLFWwindow*)user_data); -} - -static void ImGui_ImplGlfw_SetClipboardText(void* user_data, const char* text) -{ - glfwSetClipboardString((GLFWwindow*)user_data, text); -} - -void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods) -{ - if (g_PrevUserCallbackMousebutton != NULL) - g_PrevUserCallbackMousebutton(window, button, action, mods); - - if (action == GLFW_PRESS && button >= 0 && button < IM_ARRAYSIZE(g_MouseJustPressed)) - g_MouseJustPressed[button] = true; -} - -void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset) -{ - if (g_PrevUserCallbackScroll != NULL) - g_PrevUserCallbackScroll(window, xoffset, yoffset); - - ImGuiIO& io = ImGui::GetIO(); - io.MouseWheelH += (float)xoffset; - io.MouseWheel += (float)yoffset; -} - -void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods) -{ - if (g_PrevUserCallbackKey != NULL) - g_PrevUserCallbackKey(window, key, scancode, action, mods); - - ImGuiIO& io = ImGui::GetIO(); - if (action == GLFW_PRESS) - io.KeysDown[key] = true; - if (action == GLFW_RELEASE) - io.KeysDown[key] = false; - - // Modifiers are not reliable across systems - io.KeyCtrl = io.KeysDown[GLFW_KEY_LEFT_CONTROL] || io.KeysDown[GLFW_KEY_RIGHT_CONTROL]; - io.KeyShift = io.KeysDown[GLFW_KEY_LEFT_SHIFT] || io.KeysDown[GLFW_KEY_RIGHT_SHIFT]; - io.KeyAlt = io.KeysDown[GLFW_KEY_LEFT_ALT] || io.KeysDown[GLFW_KEY_RIGHT_ALT]; -#ifdef _WIN32 - io.KeySuper = false; -#else - io.KeySuper = io.KeysDown[GLFW_KEY_LEFT_SUPER] || io.KeysDown[GLFW_KEY_RIGHT_SUPER]; -#endif -} - -void ImGui_ImplGlfw_CharCallback(GLFWwindow* window, unsigned int c) -{ - if (g_PrevUserCallbackChar != NULL) - g_PrevUserCallbackChar(window, c); - - ImGuiIO& io = ImGui::GetIO(); - io.AddInputCharacter(c); -} - -static bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks, GlfwClientApi client_api) -{ - g_Window = window; - g_Time = 0.0; - - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) - io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) - io.BackendPlatformName = "imgui_impl_glfw"; - - // Keyboard mapping. Dear ImGui will use those indices to peek into the io.KeysDown[] array. - io.KeyMap[ImGuiKey_Tab] = GLFW_KEY_TAB; - io.KeyMap[ImGuiKey_LeftArrow] = GLFW_KEY_LEFT; - io.KeyMap[ImGuiKey_RightArrow] = GLFW_KEY_RIGHT; - io.KeyMap[ImGuiKey_UpArrow] = GLFW_KEY_UP; - io.KeyMap[ImGuiKey_DownArrow] = GLFW_KEY_DOWN; - io.KeyMap[ImGuiKey_PageUp] = GLFW_KEY_PAGE_UP; - io.KeyMap[ImGuiKey_PageDown] = GLFW_KEY_PAGE_DOWN; - io.KeyMap[ImGuiKey_Home] = GLFW_KEY_HOME; - io.KeyMap[ImGuiKey_End] = GLFW_KEY_END; - io.KeyMap[ImGuiKey_Insert] = GLFW_KEY_INSERT; - io.KeyMap[ImGuiKey_Delete] = GLFW_KEY_DELETE; - io.KeyMap[ImGuiKey_Backspace] = GLFW_KEY_BACKSPACE; - io.KeyMap[ImGuiKey_Space] = GLFW_KEY_SPACE; - io.KeyMap[ImGuiKey_Enter] = GLFW_KEY_ENTER; - io.KeyMap[ImGuiKey_Escape] = GLFW_KEY_ESCAPE; - io.KeyMap[ImGuiKey_KeyPadEnter] = GLFW_KEY_KP_ENTER; - io.KeyMap[ImGuiKey_A] = GLFW_KEY_A; - io.KeyMap[ImGuiKey_C] = GLFW_KEY_C; - io.KeyMap[ImGuiKey_V] = GLFW_KEY_V; - io.KeyMap[ImGuiKey_X] = GLFW_KEY_X; - io.KeyMap[ImGuiKey_Y] = GLFW_KEY_Y; - io.KeyMap[ImGuiKey_Z] = GLFW_KEY_Z; - - io.SetClipboardTextFn = ImGui_ImplGlfw_SetClipboardText; - io.GetClipboardTextFn = ImGui_ImplGlfw_GetClipboardText; - io.ClipboardUserData = g_Window; -#if defined(_WIN32) - io.ImeWindowHandle = (void*)glfwGetWin32Window(g_Window); -#endif - - // Create mouse cursors - // (By design, on X11 cursors are user configurable and some cursors may be missing. When a cursor doesn't exist, - // GLFW will emit an error which will often be printed by the app, so we temporarily disable error reporting. - // Missing cursors will return NULL and our _UpdateMouseCursor() function will use the Arrow cursor instead.) - GLFWerrorfun prev_error_callback = glfwSetErrorCallback(NULL); - g_MouseCursors[ImGuiMouseCursor_Arrow] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); - g_MouseCursors[ImGuiMouseCursor_TextInput] = glfwCreateStandardCursor(GLFW_IBEAM_CURSOR); - g_MouseCursors[ImGuiMouseCursor_ResizeNS] = glfwCreateStandardCursor(GLFW_VRESIZE_CURSOR); - g_MouseCursors[ImGuiMouseCursor_ResizeEW] = glfwCreateStandardCursor(GLFW_HRESIZE_CURSOR); - g_MouseCursors[ImGuiMouseCursor_Hand] = glfwCreateStandardCursor(GLFW_HAND_CURSOR); -#if GLFW_HAS_NEW_CURSORS - g_MouseCursors[ImGuiMouseCursor_ResizeAll] = glfwCreateStandardCursor(GLFW_RESIZE_ALL_CURSOR); - g_MouseCursors[ImGuiMouseCursor_ResizeNESW] = glfwCreateStandardCursor(GLFW_RESIZE_NESW_CURSOR); - g_MouseCursors[ImGuiMouseCursor_ResizeNWSE] = glfwCreateStandardCursor(GLFW_RESIZE_NWSE_CURSOR); - g_MouseCursors[ImGuiMouseCursor_NotAllowed] = glfwCreateStandardCursor(GLFW_NOT_ALLOWED_CURSOR); -#else - g_MouseCursors[ImGuiMouseCursor_ResizeAll] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); - g_MouseCursors[ImGuiMouseCursor_ResizeNESW] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); - g_MouseCursors[ImGuiMouseCursor_ResizeNWSE] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); - g_MouseCursors[ImGuiMouseCursor_NotAllowed] = glfwCreateStandardCursor(GLFW_ARROW_CURSOR); -#endif - glfwSetErrorCallback(prev_error_callback); - - // Chain GLFW callbacks: our callbacks will call the user's previously installed callbacks, if any. - g_PrevUserCallbackMousebutton = NULL; - g_PrevUserCallbackScroll = NULL; - g_PrevUserCallbackKey = NULL; - g_PrevUserCallbackChar = NULL; - if (install_callbacks) - { - g_InstalledCallbacks = true; - g_PrevUserCallbackMousebutton = glfwSetMouseButtonCallback(window, ImGui_ImplGlfw_MouseButtonCallback); - g_PrevUserCallbackScroll = glfwSetScrollCallback(window, ImGui_ImplGlfw_ScrollCallback); - g_PrevUserCallbackKey = glfwSetKeyCallback(window, ImGui_ImplGlfw_KeyCallback); - g_PrevUserCallbackChar = glfwSetCharCallback(window, ImGui_ImplGlfw_CharCallback); - } - - g_ClientApi = client_api; - return true; -} - -bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window, bool install_callbacks) -{ - return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_OpenGL); -} - -bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window, bool install_callbacks) -{ - return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_Vulkan); -} - -bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window, bool install_callbacks) -{ - return ImGui_ImplGlfw_Init(window, install_callbacks, GlfwClientApi_Unknown); -} - -void ImGui_ImplGlfw_Shutdown() -{ - if (g_InstalledCallbacks) - { - glfwSetMouseButtonCallback(g_Window, g_PrevUserCallbackMousebutton); - glfwSetScrollCallback(g_Window, g_PrevUserCallbackScroll); - glfwSetKeyCallback(g_Window, g_PrevUserCallbackKey); - glfwSetCharCallback(g_Window, g_PrevUserCallbackChar); - g_InstalledCallbacks = false; - } - - for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_COUNT; cursor_n++) - { - glfwDestroyCursor(g_MouseCursors[cursor_n]); - g_MouseCursors[cursor_n] = NULL; - } - g_ClientApi = GlfwClientApi_Unknown; -} - -static void ImGui_ImplGlfw_UpdateMousePosAndButtons() -{ - // Update buttons - ImGuiIO& io = ImGui::GetIO(); - for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) - { - // If a mouse press event came, always pass it as "mouse held this frame", so we don't miss click-release events that are shorter than 1 frame. - io.MouseDown[i] = g_MouseJustPressed[i] || glfwGetMouseButton(g_Window, i) != 0; - g_MouseJustPressed[i] = false; - } - - // Update mouse position - const ImVec2 mouse_pos_backup = io.MousePos; - io.MousePos = ImVec2(-FLT_MAX, -FLT_MAX); -#ifdef __EMSCRIPTEN__ - const bool focused = true; // Emscripten -#else - const bool focused = glfwGetWindowAttrib(g_Window, GLFW_FOCUSED) != 0; -#endif - if (focused) - { - if (io.WantSetMousePos) - { - glfwSetCursorPos(g_Window, (double)mouse_pos_backup.x, (double)mouse_pos_backup.y); - } - else - { - double mouse_x, mouse_y; - glfwGetCursorPos(g_Window, &mouse_x, &mouse_y); - io.MousePos = ImVec2((float)mouse_x, (float)mouse_y); - } - } -} - -static void ImGui_ImplGlfw_UpdateMouseCursor() -{ - ImGuiIO& io = ImGui::GetIO(); - if ((io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) || glfwGetInputMode(g_Window, GLFW_CURSOR) == GLFW_CURSOR_DISABLED) - return; - - ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); - if (imgui_cursor == ImGuiMouseCursor_None || io.MouseDrawCursor) - { - // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor - glfwSetInputMode(g_Window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN); - } - else - { - // Show OS mouse cursor - // FIXME-PLATFORM: Unfocused windows seems to fail changing the mouse cursor with GLFW 3.2, but 3.3 works here. - glfwSetCursor(g_Window, g_MouseCursors[imgui_cursor] ? g_MouseCursors[imgui_cursor] : g_MouseCursors[ImGuiMouseCursor_Arrow]); - glfwSetInputMode(g_Window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); - } -} - -static void ImGui_ImplGlfw_UpdateGamepads() -{ - ImGuiIO& io = ImGui::GetIO(); - memset(io.NavInputs, 0, sizeof(io.NavInputs)); - if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) - return; - - // Update gamepad inputs - #define MAP_BUTTON(NAV_NO, BUTTON_NO) { if (buttons_count > BUTTON_NO && buttons[BUTTON_NO] == GLFW_PRESS) io.NavInputs[NAV_NO] = 1.0f; } - #define MAP_ANALOG(NAV_NO, AXIS_NO, V0, V1) { float v = (axes_count > AXIS_NO) ? axes[AXIS_NO] : V0; v = (v - V0) / (V1 - V0); if (v > 1.0f) v = 1.0f; if (io.NavInputs[NAV_NO] < v) io.NavInputs[NAV_NO] = v; } - int axes_count = 0, buttons_count = 0; - const float* axes = glfwGetJoystickAxes(GLFW_JOYSTICK_1, &axes_count); - const unsigned char* buttons = glfwGetJoystickButtons(GLFW_JOYSTICK_1, &buttons_count); - MAP_BUTTON(ImGuiNavInput_Activate, 0); // Cross / A - MAP_BUTTON(ImGuiNavInput_Cancel, 1); // Circle / B - MAP_BUTTON(ImGuiNavInput_Menu, 2); // Square / X - MAP_BUTTON(ImGuiNavInput_Input, 3); // Triangle / Y - MAP_BUTTON(ImGuiNavInput_DpadLeft, 13); // D-Pad Left - MAP_BUTTON(ImGuiNavInput_DpadRight, 11); // D-Pad Right - MAP_BUTTON(ImGuiNavInput_DpadUp, 10); // D-Pad Up - MAP_BUTTON(ImGuiNavInput_DpadDown, 12); // D-Pad Down - MAP_BUTTON(ImGuiNavInput_FocusPrev, 4); // L1 / LB - MAP_BUTTON(ImGuiNavInput_FocusNext, 5); // R1 / RB - MAP_BUTTON(ImGuiNavInput_TweakSlow, 4); // L1 / LB - MAP_BUTTON(ImGuiNavInput_TweakFast, 5); // R1 / RB - MAP_ANALOG(ImGuiNavInput_LStickLeft, 0, -0.3f, -0.9f); - MAP_ANALOG(ImGuiNavInput_LStickRight,0, +0.3f, +0.9f); - MAP_ANALOG(ImGuiNavInput_LStickUp, 1, +0.3f, +0.9f); - MAP_ANALOG(ImGuiNavInput_LStickDown, 1, -0.3f, -0.9f); - #undef MAP_BUTTON - #undef MAP_ANALOG - if (axes_count > 0 && buttons_count > 0) - io.BackendFlags |= ImGuiBackendFlags_HasGamepad; - else - io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; -} - -void ImGui_ImplGlfw_NewFrame() -{ - ImGuiIO& io = ImGui::GetIO(); - IM_ASSERT(io.Fonts->IsBuilt() && "Font atlas not built! It is generally built by the renderer backend. Missing call to renderer _NewFrame() function? e.g. ImGui_ImplOpenGL3_NewFrame()."); - - // Setup display size (every frame to accommodate for window resizing) - int w, h; - int display_w, display_h; - glfwGetWindowSize(g_Window, &w, &h); - glfwGetFramebufferSize(g_Window, &display_w, &display_h); - io.DisplaySize = ImVec2((float)w, (float)h); - if (w > 0 && h > 0) - io.DisplayFramebufferScale = ImVec2((float)display_w / w, (float)display_h / h); - - // Setup time step - double current_time = glfwGetTime(); - io.DeltaTime = g_Time > 0.0 ? (float)(current_time - g_Time) : (float)(1.0f / 60.0f); - g_Time = current_time; - - ImGui_ImplGlfw_UpdateMousePosAndButtons(); - ImGui_ImplGlfw_UpdateMouseCursor(); - - // Update game controllers (if enabled and available) - ImGui_ImplGlfw_UpdateGamepads(); -} diff --git a/third_party/imgui/backends/imgui_impl_glfw.h b/third_party/imgui/backends/imgui_impl_glfw.h deleted file mode 100644 index 018f1a1e..00000000 --- a/third_party/imgui/backends/imgui_impl_glfw.h +++ /dev/null @@ -1,36 +0,0 @@ -// dear imgui: Platform Backend for GLFW -// This needs to be used along with a Renderer (e.g. OpenGL3, Vulkan, WebGPU..) -// (Info: GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) - -// Implemented features: -// [X] Platform: Clipboard support. -// [X] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. -// [x] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. FIXME: 3 cursors types are missing from GLFW. -// [X] Platform: Keyboard arrays indexed using GLFW_KEY_* codes, e.g. ImGui::IsKeyPressed(GLFW_KEY_SPACE). - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// About GLSL version: -// The 'glsl_version' initialization parameter defaults to "#version 150" if NULL. -// Only override if your GL version doesn't handle this GLSL version. Keep NULL if unsure! - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -struct GLFWwindow; - -IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window, bool install_callbacks); -IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window, bool install_callbacks); -IMGUI_IMPL_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window, bool install_callbacks); -IMGUI_IMPL_API void ImGui_ImplGlfw_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplGlfw_NewFrame(); - -// GLFW callbacks -// - When calling Init with 'install_callbacks=true': GLFW callbacks will be installed for you. They will call user's previously installed callbacks, if any. -// - When calling Init with 'install_callbacks=false': GLFW callbacks won't be installed. You will need to call those function yourself from your own GLFW callbacks. -IMGUI_IMPL_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods); -IMGUI_IMPL_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset); -IMGUI_IMPL_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods); -IMGUI_IMPL_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window, unsigned int c); diff --git a/third_party/imgui/backends/imgui_impl_glut.cpp b/third_party/imgui/backends/imgui_impl_glut.cpp deleted file mode 100644 index 6be4682c..00000000 --- a/third_party/imgui/backends/imgui_impl_glut.cpp +++ /dev/null @@ -1,216 +0,0 @@ -// dear imgui: Platform Backend for GLUT/FreeGLUT -// This needs to be used along with a Renderer (e.g. OpenGL2) - -// !!! GLUT/FreeGLUT IS OBSOLETE PREHISTORIC SOFTWARE. Using GLUT is not recommended unless you really miss the 90's. !!! -// !!! If someone or something is teaching you GLUT today, you are being abused. Please show some resistance. !!! -// !!! Nowadays, prefer using GLFW or SDL instead! - -// Issues: -// [ ] Platform: GLUT is unable to distinguish e.g. Backspace from CTRL+H or TAB from CTRL+I -// [ ] Platform: Missing mouse cursor shape/visibility support. -// [ ] Platform: Missing clipboard support (not supported by Glut). -// [ ] Platform: Missing gamepad support. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2019-04-03: Misc: Renamed imgui_impl_freeglut.cpp/.h to imgui_impl_glut.cpp/.h. -// 2019-03-25: Misc: Made io.DeltaTime always above zero. -// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. -// 2018-03-22: Added GLUT Platform binding. - -#include "imgui.h" -#include "imgui_impl_glut.h" -#ifdef __APPLE__ -#include -#else -#include -#endif - -#ifdef _MSC_VER -#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) -#endif - -static int g_Time = 0; // Current time, in milliseconds - -bool ImGui_ImplGLUT_Init() -{ - ImGuiIO& io = ImGui::GetIO(); - -#ifdef FREEGLUT - io.BackendPlatformName = "imgui_impl_glut (freeglut)"; -#else - io.BackendPlatformName = "imgui_impl_glut"; -#endif - - g_Time = 0; - - // Glut has 1 function for characters and one for "special keys". We map the characters in the 0..255 range and the keys above. - io.KeyMap[ImGuiKey_Tab] = '\t'; // == 9 == CTRL+I - io.KeyMap[ImGuiKey_LeftArrow] = 256 + GLUT_KEY_LEFT; - io.KeyMap[ImGuiKey_RightArrow] = 256 + GLUT_KEY_RIGHT; - io.KeyMap[ImGuiKey_UpArrow] = 256 + GLUT_KEY_UP; - io.KeyMap[ImGuiKey_DownArrow] = 256 + GLUT_KEY_DOWN; - io.KeyMap[ImGuiKey_PageUp] = 256 + GLUT_KEY_PAGE_UP; - io.KeyMap[ImGuiKey_PageDown] = 256 + GLUT_KEY_PAGE_DOWN; - io.KeyMap[ImGuiKey_Home] = 256 + GLUT_KEY_HOME; - io.KeyMap[ImGuiKey_End] = 256 + GLUT_KEY_END; - io.KeyMap[ImGuiKey_Insert] = 256 + GLUT_KEY_INSERT; - io.KeyMap[ImGuiKey_Delete] = 127; - io.KeyMap[ImGuiKey_Backspace] = 8; // == CTRL+H - io.KeyMap[ImGuiKey_Space] = ' '; - io.KeyMap[ImGuiKey_Enter] = 13; // == CTRL+M - io.KeyMap[ImGuiKey_Escape] = 27; - io.KeyMap[ImGuiKey_KeyPadEnter] = 13; // == CTRL+M - io.KeyMap[ImGuiKey_A] = 'A'; - io.KeyMap[ImGuiKey_C] = 'C'; - io.KeyMap[ImGuiKey_V] = 'V'; - io.KeyMap[ImGuiKey_X] = 'X'; - io.KeyMap[ImGuiKey_Y] = 'Y'; - io.KeyMap[ImGuiKey_Z] = 'Z'; - - return true; -} - -void ImGui_ImplGLUT_InstallFuncs() -{ - glutReshapeFunc(ImGui_ImplGLUT_ReshapeFunc); - glutMotionFunc(ImGui_ImplGLUT_MotionFunc); - glutPassiveMotionFunc(ImGui_ImplGLUT_MotionFunc); - glutMouseFunc(ImGui_ImplGLUT_MouseFunc); -#ifdef __FREEGLUT_EXT_H__ - glutMouseWheelFunc(ImGui_ImplGLUT_MouseWheelFunc); -#endif - glutKeyboardFunc(ImGui_ImplGLUT_KeyboardFunc); - glutKeyboardUpFunc(ImGui_ImplGLUT_KeyboardUpFunc); - glutSpecialFunc(ImGui_ImplGLUT_SpecialFunc); - glutSpecialUpFunc(ImGui_ImplGLUT_SpecialUpFunc); -} - -void ImGui_ImplGLUT_Shutdown() -{ -} - -void ImGui_ImplGLUT_NewFrame() -{ - // Setup time step - ImGuiIO& io = ImGui::GetIO(); - int current_time = glutGet(GLUT_ELAPSED_TIME); - int delta_time_ms = (current_time - g_Time); - if (delta_time_ms <= 0) - delta_time_ms = 1; - io.DeltaTime = delta_time_ms / 1000.0f; - g_Time = current_time; - - // Start the frame - ImGui::NewFrame(); -} - -static void ImGui_ImplGLUT_UpdateKeyboardMods() -{ - ImGuiIO& io = ImGui::GetIO(); - int mods = glutGetModifiers(); - io.KeyCtrl = (mods & GLUT_ACTIVE_CTRL) != 0; - io.KeyShift = (mods & GLUT_ACTIVE_SHIFT) != 0; - io.KeyAlt = (mods & GLUT_ACTIVE_ALT) != 0; -} - -void ImGui_ImplGLUT_KeyboardFunc(unsigned char c, int x, int y) -{ - // Send character to imgui - //printf("char_down_func %d '%c'\n", c, c); - ImGuiIO& io = ImGui::GetIO(); - if (c >= 32) - io.AddInputCharacter((unsigned int)c); - - // Store letters in KeysDown[] array as both uppercase and lowercase + Handle GLUT translating CTRL+A..CTRL+Z as 1..26. - // This is a hacky mess but GLUT is unable to distinguish e.g. a TAB key from CTRL+I so this is probably the best we can do here. - if (c >= 1 && c <= 26) - io.KeysDown[c] = io.KeysDown[c - 1 + 'a'] = io.KeysDown[c - 1 + 'A'] = true; - else if (c >= 'a' && c <= 'z') - io.KeysDown[c] = io.KeysDown[c - 'a' + 'A'] = true; - else if (c >= 'A' && c <= 'Z') - io.KeysDown[c] = io.KeysDown[c - 'A' + 'a'] = true; - else - io.KeysDown[c] = true; - ImGui_ImplGLUT_UpdateKeyboardMods(); - (void)x; (void)y; // Unused -} - -void ImGui_ImplGLUT_KeyboardUpFunc(unsigned char c, int x, int y) -{ - //printf("char_up_func %d '%c'\n", c, c); - ImGuiIO& io = ImGui::GetIO(); - if (c >= 1 && c <= 26) - io.KeysDown[c] = io.KeysDown[c - 1 + 'a'] = io.KeysDown[c - 1 + 'A'] = false; - else if (c >= 'a' && c <= 'z') - io.KeysDown[c] = io.KeysDown[c - 'a' + 'A'] = false; - else if (c >= 'A' && c <= 'Z') - io.KeysDown[c] = io.KeysDown[c - 'A' + 'a'] = false; - else - io.KeysDown[c] = false; - ImGui_ImplGLUT_UpdateKeyboardMods(); - (void)x; (void)y; // Unused -} - -void ImGui_ImplGLUT_SpecialFunc(int key, int x, int y) -{ - //printf("key_down_func %d\n", key); - ImGuiIO& io = ImGui::GetIO(); - if (key + 256 < IM_ARRAYSIZE(io.KeysDown)) - io.KeysDown[key + 256] = true; - ImGui_ImplGLUT_UpdateKeyboardMods(); - (void)x; (void)y; // Unused -} - -void ImGui_ImplGLUT_SpecialUpFunc(int key, int x, int y) -{ - //printf("key_up_func %d\n", key); - ImGuiIO& io = ImGui::GetIO(); - if (key + 256 < IM_ARRAYSIZE(io.KeysDown)) - io.KeysDown[key + 256] = false; - ImGui_ImplGLUT_UpdateKeyboardMods(); - (void)x; (void)y; // Unused -} - -void ImGui_ImplGLUT_MouseFunc(int glut_button, int state, int x, int y) -{ - ImGuiIO& io = ImGui::GetIO(); - io.MousePos = ImVec2((float)x, (float)y); - int button = -1; - if (glut_button == GLUT_LEFT_BUTTON) button = 0; - if (glut_button == GLUT_RIGHT_BUTTON) button = 1; - if (glut_button == GLUT_MIDDLE_BUTTON) button = 2; - if (button != -1 && state == GLUT_DOWN) - io.MouseDown[button] = true; - if (button != -1 && state == GLUT_UP) - io.MouseDown[button] = false; -} - -#ifdef __FREEGLUT_EXT_H__ -void ImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y) -{ - ImGuiIO& io = ImGui::GetIO(); - io.MousePos = ImVec2((float)x, (float)y); - if (dir > 0) - io.MouseWheel += 1.0; - else if (dir < 0) - io.MouseWheel -= 1.0; - (void)button; // Unused -} -#endif - -void ImGui_ImplGLUT_ReshapeFunc(int w, int h) -{ - ImGuiIO& io = ImGui::GetIO(); - io.DisplaySize = ImVec2((float)w, (float)h); -} - -void ImGui_ImplGLUT_MotionFunc(int x, int y) -{ - ImGuiIO& io = ImGui::GetIO(); - io.MousePos = ImVec2((float)x, (float)y); -} diff --git a/third_party/imgui/backends/imgui_impl_glut.h b/third_party/imgui/backends/imgui_impl_glut.h deleted file mode 100644 index 2f18ab76..00000000 --- a/third_party/imgui/backends/imgui_impl_glut.h +++ /dev/null @@ -1,36 +0,0 @@ -// dear imgui: Platform Backend for GLUT/FreeGLUT -// This needs to be used along with a Renderer (e.g. OpenGL2) - -// !!! GLUT/FreeGLUT IS OBSOLETE PREHISTORIC SOFTWARE. Using GLUT is not recommended unless you really miss the 90's. !!! -// !!! If someone or something is teaching you GLUT today, you are being abused. Please show some resistance. !!! -// !!! Nowadays, prefer using GLFW or SDL instead! - -// Issues: -// [ ] Platform: GLUT is unable to distinguish e.g. Backspace from CTRL+H or TAB from CTRL+I -// [ ] Platform: Missing mouse cursor shape/visibility support. -// [ ] Platform: Missing clipboard support (not supported by Glut). -// [ ] Platform: Missing gamepad support. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -IMGUI_IMPL_API bool ImGui_ImplGLUT_Init(); -IMGUI_IMPL_API void ImGui_ImplGLUT_InstallFuncs(); -IMGUI_IMPL_API void ImGui_ImplGLUT_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplGLUT_NewFrame(); - -// You can call ImGui_ImplGLUT_InstallFuncs() to get all those functions installed automatically, -// or call them yourself from your own GLUT handlers. We are using the same weird names as GLUT for consistency.. -//---------------------------------------- GLUT name --------------------------------------------- Decent Name --------- -IMGUI_IMPL_API void ImGui_ImplGLUT_ReshapeFunc(int w, int h); // ~ ResizeFunc -IMGUI_IMPL_API void ImGui_ImplGLUT_MotionFunc(int x, int y); // ~ MouseMoveFunc -IMGUI_IMPL_API void ImGui_ImplGLUT_MouseFunc(int button, int state, int x, int y); // ~ MouseButtonFunc -IMGUI_IMPL_API void ImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y); // ~ MouseWheelFunc -IMGUI_IMPL_API void ImGui_ImplGLUT_KeyboardFunc(unsigned char c, int x, int y); // ~ CharPressedFunc -IMGUI_IMPL_API void ImGui_ImplGLUT_KeyboardUpFunc(unsigned char c, int x, int y); // ~ CharReleasedFunc -IMGUI_IMPL_API void ImGui_ImplGLUT_SpecialFunc(int key, int x, int y); // ~ KeyPressedFunc -IMGUI_IMPL_API void ImGui_ImplGLUT_SpecialUpFunc(int key, int x, int y); // ~ KeyReleasedFunc diff --git a/third_party/imgui/backends/imgui_impl_marmalade.cpp b/third_party/imgui/backends/imgui_impl_marmalade.cpp deleted file mode 100644 index c0c06e1e..00000000 --- a/third_party/imgui/backends/imgui_impl_marmalade.cpp +++ /dev/null @@ -1,316 +0,0 @@ -// dear imgui: Renderer + Platform Backend for Marmalade + IwGx -// Marmalade code: Copyright (C) 2015 by Giovanni Zito (this file is part of Dear ImGui) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'CIwTexture*' as ImTextureID. Read the FAQ about ImTextureID! -// Missing features: -// [ ] Renderer: Clipping rectangles are not honored. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2019-07-21: Inputs: Added mapping for ImGuiKey_KeyPadEnter. -// 2019-05-11: Inputs: Don't filter value from character callback before calling AddInputCharacter(). -// 2018-11-30: Misc: Setting up io.BackendPlatformName/io.BackendRendererName so they can be displayed in the About Window. -// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_Marmalade_RenderDrawData() in the .h file so you can call it yourself. -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. -// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. - -#include "imgui.h" -#include "imgui_impl_marmalade.h" - -#include -#include -#include -#include -#include - -// Data -static double g_Time = 0.0f; -static bool g_MousePressed[3] = { false, false, false }; -static CIwTexture* g_FontTexture = NULL; -static char* g_ClipboardText = NULL; -static bool g_osdKeyboardEnabled = false; - -// use this setting to scale the interface - e.g. on device you could use 2 or 3 scale factor -static ImVec2 g_RenderScale = ImVec2(1.0f, 1.0f); - -// Render function. -void ImGui_Marmalade_RenderDrawData(ImDrawData* draw_data) -{ - // Avoid rendering when minimized - if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) - return; - - // Render command lists - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; - const int nVert = cmd_list->VtxBuffer.Size; - CIwFVec2* pVertStream = IW_GX_ALLOC(CIwFVec2, nVert); - CIwFVec2* pUVStream = IW_GX_ALLOC(CIwFVec2, nVert); - CIwColour* pColStream = IW_GX_ALLOC(CIwColour, nVert); - - for (int i = 0; i < nVert; i++) - { - // FIXME-OPT: optimize multiplication on GPU using vertex shader/projection matrix. - pVertStream[i].x = cmd_list->VtxBuffer[i].pos.x * g_RenderScale.x; - pVertStream[i].y = cmd_list->VtxBuffer[i].pos.y * g_RenderScale.y; - pUVStream[i].x = cmd_list->VtxBuffer[i].uv.x; - pUVStream[i].y = cmd_list->VtxBuffer[i].uv.y; - pColStream[i] = cmd_list->VtxBuffer[i].col; - } - - IwGxSetVertStreamScreenSpace(pVertStream, nVert); - IwGxSetUVStream(pUVStream); - IwGxSetColStream(pColStream, nVert); - IwGxSetNormStream(0); - - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback) - { - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // FIXME: Not honoring ClipRect fields. - CIwMaterial* pCurrentMaterial = IW_GX_ALLOC_MATERIAL(); - pCurrentMaterial->SetShadeMode(CIwMaterial::SHADE_FLAT); - pCurrentMaterial->SetCullMode(CIwMaterial::CULL_NONE); - pCurrentMaterial->SetFiltering(false); - pCurrentMaterial->SetAlphaMode(CIwMaterial::ALPHA_BLEND); - pCurrentMaterial->SetDepthWriteMode(CIwMaterial::DEPTH_WRITE_NORMAL); - pCurrentMaterial->SetAlphaTestMode(CIwMaterial::ALPHATEST_DISABLED); - pCurrentMaterial->SetTexture((CIwTexture*)pcmd->TextureId); - IwGxSetMaterial(pCurrentMaterial); - IwGxDrawPrims(IW_GX_TRI_LIST, (uint16*)idx_buffer, pcmd->ElemCount); - } - idx_buffer += pcmd->ElemCount; - } - IwGxFlush(); - } - - // TODO: restore modified state (i.e. mvp matrix) -} - -static const char* ImGui_Marmalade_GetClipboardText(void* /*user_data*/) -{ - if (!s3eClipboardAvailable()) - return NULL; - - if (int size = s3eClipboardGetText(NULL, 0)) - { - if (g_ClipboardText) - delete[] g_ClipboardText; - g_ClipboardText = new char[size]; - g_ClipboardText[0] = '\0'; - s3eClipboardGetText(g_ClipboardText, size); - } - - return g_ClipboardText; -} - -static void ImGui_Marmalade_SetClipboardText(void* /*user_data*/, const char* text) -{ - if (s3eClipboardAvailable()) - s3eClipboardSetText(text); -} - -int32 ImGui_Marmalade_PointerButtonEventCallback(void* system_data, void* user_data) -{ - // pEvent->m_Button is of type s3ePointerButton and indicates which mouse - // button was pressed. For touchscreen this should always have the value - // S3E_POINTER_BUTTON_SELECT - s3ePointerEvent* pEvent = (s3ePointerEvent*)system_data; - - if (pEvent->m_Pressed == 1) - { - if (pEvent->m_Button == S3E_POINTER_BUTTON_LEFTMOUSE) - g_MousePressed[0] = true; - if (pEvent->m_Button == S3E_POINTER_BUTTON_RIGHTMOUSE) - g_MousePressed[1] = true; - if (pEvent->m_Button == S3E_POINTER_BUTTON_MIDDLEMOUSE) - g_MousePressed[2] = true; - if (pEvent->m_Button == S3E_POINTER_BUTTON_MOUSEWHEELUP) - io.MouseWheel += pEvent->m_y; - if (pEvent->m_Button == S3E_POINTER_BUTTON_MOUSEWHEELDOWN) - io.MouseWheel += pEvent->m_y; - } - - return 0; -} - -int32 ImGui_Marmalade_KeyCallback(void* system_data, void* user_data) -{ - ImGuiIO& io = ImGui::GetIO(); - s3eKeyboardEvent* e = (s3eKeyboardEvent*)system_data; - if (e->m_Pressed == 1) - io.KeysDown[e->m_Key] = true; - if (e->m_Pressed == 0) - io.KeysDown[e->m_Key] = false; - - io.KeyCtrl = s3eKeyboardGetState(s3eKeyLeftControl) == S3E_KEY_STATE_DOWN || s3eKeyboardGetState(s3eKeyRightControl) == S3E_KEY_STATE_DOWN; - io.KeyShift = s3eKeyboardGetState(s3eKeyLeftShift) == S3E_KEY_STATE_DOWN || s3eKeyboardGetState(s3eKeyRightShift) == S3E_KEY_STATE_DOWN; - io.KeyAlt = s3eKeyboardGetState(s3eKeyLeftAlt) == S3E_KEY_STATE_DOWN || s3eKeyboardGetState(s3eKeyRightAlt) == S3E_KEY_STATE_DOWN; - io.KeySuper = s3eKeyboardGetState(s3eKeyLeftWindows) == S3E_KEY_STATE_DOWN || s3eKeyboardGetState(s3eKeyRightWindows) == S3E_KEY_STATE_DOWN; - - return 0; -} - -int32 ImGui_Marmalade_CharCallback(void* system_data, void* user_data) -{ - ImGuiIO& io = ImGui::GetIO(); - s3eKeyboardCharEvent* e = (s3eKeyboardCharEvent*)system_data; - io.AddInputCharacter((unsigned int)e->m_Char); - - return 0; -} - -bool ImGui_Marmalade_CreateDeviceObjects() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - - // Upload texture to graphics system - g_FontTexture = new CIwTexture(); - g_FontTexture->SetModifiable(true); - CIwImage& image = g_FontTexture->GetImage(); - image.SetFormat(CIwImage::ARGB_8888); - image.SetWidth(width); - image.SetHeight(height); - image.SetBuffers(); // allocates and own buffers - image.ReadTexels(pixels); - g_FontTexture->SetMipMapping(false); - g_FontTexture->SetFiltering(false); - g_FontTexture->Upload(); - - // Store our identifier - io.Fonts->SetTexID((ImTextureID)g_FontTexture); - - return true; -} - -void ImGui_Marmalade_InvalidateDeviceObjects() -{ - if (g_ClipboardText) - { - delete[] g_ClipboardText; - g_ClipboardText = NULL; - } - - if (g_FontTexture) - { - ImGui::GetIO().Fonts->SetTexID(0); - delete g_FontTexture; - g_FontTexture = NULL; - } -} - -bool ImGui_Marmalade_Init(bool install_callbacks) -{ - ImGuiIO& io = ImGui::GetIO(); - io.BackendPlatformName = io.BackendRendererName = "imgui_impl_marmalade"; - - // Keyboard mapping. Dear ImGui will use those indices to peek into the io.KeysDown[] array. - io.KeyMap[ImGuiKey_Tab] = s3eKeyTab - io.KeyMap[ImGuiKey_LeftArrow] = s3eKeyLeft; - io.KeyMap[ImGuiKey_RightArrow] = s3eKeyRight; - io.KeyMap[ImGuiKey_UpArrow] = s3eKeyUp; - io.KeyMap[ImGuiKey_DownArrow] = s3eKeyDown; - io.KeyMap[ImGuiKey_PageUp] = s3eKeyPageUp; - io.KeyMap[ImGuiKey_PageDown] = s3eKeyPageDown; - io.KeyMap[ImGuiKey_Home] = s3eKeyHome; - io.KeyMap[ImGuiKey_End] = s3eKeyEnd; - io.KeyMap[ImGuiKey_Insert] = s3eKeyInsert; - io.KeyMap[ImGuiKey_Delete] = s3eKeyDelete; - io.KeyMap[ImGuiKey_Backspace] = s3eKeyBackspace; - io.KeyMap[ImGuiKey_Space] = s3eKeySpace; - io.KeyMap[ImGuiKey_Enter] = s3eKeyEnter; - io.KeyMap[ImGuiKey_Escape] = s3eKeyEsc; - io.KeyMap[ImGuiKey_KeyPadEnter] = s3eKeyNumPadEnter; - io.KeyMap[ImGuiKey_A] = s3eKeyA; - io.KeyMap[ImGuiKey_C] = s3eKeyC; - io.KeyMap[ImGuiKey_V] = s3eKeyV; - io.KeyMap[ImGuiKey_X] = s3eKeyX; - io.KeyMap[ImGuiKey_Y] = s3eKeyY; - io.KeyMap[ImGuiKey_Z] = s3eKeyZ; - - io.SetClipboardTextFn = ImGui_Marmalade_SetClipboardText; - io.GetClipboardTextFn = ImGui_Marmalade_GetClipboardText; - - if (install_callbacks) - { - s3ePointerRegister(S3E_POINTER_BUTTON_EVENT, ImGui_Marmalade_PointerButtonEventCallback, 0); - s3eKeyboardRegister(S3E_KEYBOARD_KEY_EVENT, ImGui_Marmalade_KeyCallback, 0); - s3eKeyboardRegister(S3E_KEYBOARD_CHAR_EVENT, ImGui_Marmalade_CharCallback, 0); - } - - return true; -} - -void ImGui_Marmalade_Shutdown() -{ - ImGui_Marmalade_InvalidateDeviceObjects(); -} - -void ImGui_Marmalade_NewFrame() -{ - if (!g_FontTexture) - ImGui_Marmalade_CreateDeviceObjects(); - - ImGuiIO& io = ImGui::GetIO(); - - // Setup display size (every frame to accommodate for window resizing) - int w = IwGxGetScreenWidth(), h = IwGxGetScreenHeight(); - io.DisplaySize = ImVec2((float)w, (float)h); - // For retina display or other situations where window coordinates are different from framebuffer coordinates. User storage only, presently not used by ImGui. - io.DisplayFramebufferScale = g_scale; - - // Setup time step - double current_time = s3eTimerGetUST() / 1000.0f; - io.DeltaTime = g_Time > 0.0 ? (float)(current_time - g_Time) : (float)(1.0f / 60.0f); - g_Time = current_time; - - double mouse_x, mouse_y; - mouse_x = s3ePointerGetX(); - mouse_y = s3ePointerGetY(); - io.MousePos = ImVec2((float)mouse_x / g_scale.x, (float)mouse_y / g_scale.y); // Mouse position (set to -FLT_MAX,-FLT_MAX if no mouse / on another screen, etc.) - - for (int i = 0; i < 3; i++) - { - io.MouseDown[i] = g_MousePressed[i] || s3ePointerGetState((s3ePointerButton)i) != S3E_POINTER_STATE_UP; // If a mouse press event came, always pass it as "mouse held this frame", so we don't miss click-release events that are shorter than 1 frame. - g_MousePressed[i] = false; - } - - // TODO: Hide OS mouse cursor if ImGui is drawing it - // s3ePointerSetInt(S3E_POINTER_HIDE_CURSOR,(io.MouseDrawCursor ? 0 : 1)); - - // Show/hide OSD keyboard - if (io.WantTextInput) - { - // Some text input widget is active? - if (!g_osdKeyboardEnabled) - { - g_osdKeyboardEnabled = true; - s3eKeyboardSetInt(S3E_KEYBOARD_GET_CHAR, 1); // show OSD keyboard - } - } - else - { - // No text input widget is active - if (g_osdKeyboardEnabled) - { - g_osdKeyboardEnabled = false; - s3eKeyboardSetInt(S3E_KEYBOARD_GET_CHAR, 0); // hide OSD keyboard - } - } -} diff --git a/third_party/imgui/backends/imgui_impl_marmalade.h b/third_party/imgui/backends/imgui_impl_marmalade.h deleted file mode 100644 index db521d58..00000000 --- a/third_party/imgui/backends/imgui_impl_marmalade.h +++ /dev/null @@ -1,27 +0,0 @@ -// dear imgui: Renderer + Platform Backend for Marmalade + IwGx -// Marmalade code: Copyright (C) 2015 by Giovanni Zito (this file is part of Dear ImGui) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'CIwTexture*' as ImTextureID. Read the FAQ about ImTextureID! - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -IMGUI_IMPL_API bool ImGui_Marmalade_Init(bool install_callbacks); -IMGUI_IMPL_API void ImGui_Marmalade_Shutdown(); -IMGUI_IMPL_API void ImGui_Marmalade_NewFrame(); -IMGUI_IMPL_API void ImGui_Marmalade_RenderDrawData(ImDrawData* draw_data); - -// Use if you want to reset your rendering device without losing Dear ImGui state. -IMGUI_IMPL_API void ImGui_Marmalade_InvalidateDeviceObjects(); -IMGUI_IMPL_API bool ImGui_Marmalade_CreateDeviceObjects(); - -// Callbacks (installed by default if you enable 'install_callbacks' during initialization) -// You can also handle inputs yourself and use those as a reference. -IMGUI_IMPL_API int32 ImGui_Marmalade_PointerButtonEventCallback(void* system_data, void* user_data); -IMGUI_IMPL_API int32 ImGui_Marmalade_KeyCallback(void* system_data, void* user_data); -IMGUI_IMPL_API int32 ImGui_Marmalade_CharCallback(void* system_data, void* user_data); diff --git a/third_party/imgui/backends/imgui_impl_metal.h b/third_party/imgui/backends/imgui_impl_metal.h deleted file mode 100644 index 1db7d873..00000000 --- a/third_party/imgui/backends/imgui_impl_metal.h +++ /dev/null @@ -1,28 +0,0 @@ -// dear imgui: Renderer Backend for Metal -// This needs to be used along with a Platform Backend (e.g. OSX) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'MTLTexture' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" // IMGUI_IMPL_API - -@class MTLRenderPassDescriptor; -@protocol MTLDevice, MTLCommandBuffer, MTLRenderCommandEncoder; - -IMGUI_IMPL_API bool ImGui_ImplMetal_Init(id device); -IMGUI_IMPL_API void ImGui_ImplMetal_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor* renderPassDescriptor); -IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data, - id commandBuffer, - id commandEncoder); - -// Called by Init/NewFrame/Shutdown -IMGUI_IMPL_API bool ImGui_ImplMetal_CreateFontsTexture(id device); -IMGUI_IMPL_API void ImGui_ImplMetal_DestroyFontsTexture(); -IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(id device); -IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects(); diff --git a/third_party/imgui/backends/imgui_impl_metal.mm b/third_party/imgui/backends/imgui_impl_metal.mm deleted file mode 100644 index cb57c123..00000000 --- a/third_party/imgui/backends/imgui_impl_metal.mm +++ /dev/null @@ -1,552 +0,0 @@ -// dear imgui: Renderer Backend for Metal -// This needs to be used along with a Platform Backend (e.g. OSX) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'MTLTexture' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: Metal: Change blending equation to preserve alpha in output buffer. -// 2021-01-25: Metal: Fixed texture storage mode when building on Mac Catalyst. -// 2019-05-29: Metal: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. -// 2019-04-30: Metal: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2019-02-11: Metal: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. -// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. -// 2018-07-05: Metal: Added new Metal backend implementation. - -#include "imgui.h" -#include "imgui_impl_metal.h" - -#import -// #import // Not supported in XCode 9.2. Maybe a macro to detect the SDK version can be used (something like #if MACOS_SDK >= 10.13 ...) -#import - -#pragma mark - Support classes - -// A wrapper around a MTLBuffer object that knows the last time it was reused -@interface MetalBuffer : NSObject -@property (nonatomic, strong) id buffer; -@property (nonatomic, assign) NSTimeInterval lastReuseTime; -- (instancetype)initWithBuffer:(id)buffer; -@end - -// An object that encapsulates the data necessary to uniquely identify a -// render pipeline state. These are used as cache keys. -@interface FramebufferDescriptor : NSObject -@property (nonatomic, assign) unsigned long sampleCount; -@property (nonatomic, assign) MTLPixelFormat colorPixelFormat; -@property (nonatomic, assign) MTLPixelFormat depthPixelFormat; -@property (nonatomic, assign) MTLPixelFormat stencilPixelFormat; -- (instancetype)initWithRenderPassDescriptor:(MTLRenderPassDescriptor *)renderPassDescriptor; -@end - -// A singleton that stores long-lived objects that are needed by the Metal -// renderer backend. Stores the render pipeline state cache and the default -// font texture, and manages the reusable buffer cache. -@interface MetalContext : NSObject -@property (nonatomic, strong) id depthStencilState; -@property (nonatomic, strong) FramebufferDescriptor *framebufferDescriptor; // framebuffer descriptor for current frame; transient -@property (nonatomic, strong) NSMutableDictionary *renderPipelineStateCache; // pipeline cache; keyed on framebuffer descriptors -@property (nonatomic, strong, nullable) id fontTexture; -@property (nonatomic, strong) NSMutableArray *bufferCache; -@property (nonatomic, assign) NSTimeInterval lastBufferCachePurge; -- (void)makeDeviceObjectsWithDevice:(id)device; -- (void)makeFontTextureWithDevice:(id)device; -- (MetalBuffer *)dequeueReusableBufferOfLength:(NSUInteger)length device:(id)device; -- (void)enqueueReusableBuffer:(MetalBuffer *)buffer; -- (id)renderPipelineStateForFrameAndDevice:(id)device; -- (void)emptyRenderPipelineStateCache; -- (void)setupRenderState:(ImDrawData *)drawData - commandBuffer:(id)commandBuffer - commandEncoder:(id)commandEncoder - renderPipelineState:(id)renderPipelineState - vertexBuffer:(MetalBuffer *)vertexBuffer - vertexBufferOffset:(size_t)vertexBufferOffset; -- (void)renderDrawData:(ImDrawData *)drawData - commandBuffer:(id)commandBuffer - commandEncoder:(id)commandEncoder; -@end - -static MetalContext *g_sharedMetalContext = nil; - -#pragma mark - ImGui API implementation - -bool ImGui_ImplMetal_Init(id device) -{ - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_metal"; - io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. - - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - g_sharedMetalContext = [[MetalContext alloc] init]; - }); - - ImGui_ImplMetal_CreateDeviceObjects(device); - - return true; -} - -void ImGui_ImplMetal_Shutdown() -{ - ImGui_ImplMetal_DestroyDeviceObjects(); -} - -void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor *renderPassDescriptor) -{ - IM_ASSERT(g_sharedMetalContext != nil && "No Metal context. Did you call ImGui_ImplMetal_Init() ?"); - - g_sharedMetalContext.framebufferDescriptor = [[FramebufferDescriptor alloc] initWithRenderPassDescriptor:renderPassDescriptor]; -} - -// Metal Render function. -void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data, id commandBuffer, id commandEncoder) -{ - [g_sharedMetalContext renderDrawData:draw_data commandBuffer:commandBuffer commandEncoder:commandEncoder]; -} - -bool ImGui_ImplMetal_CreateFontsTexture(id device) -{ - [g_sharedMetalContext makeFontTextureWithDevice:device]; - - ImGuiIO& io = ImGui::GetIO(); - io.Fonts->SetTexID((__bridge void *)g_sharedMetalContext.fontTexture); // ImTextureID == void* - - return (g_sharedMetalContext.fontTexture != nil); -} - -void ImGui_ImplMetal_DestroyFontsTexture() -{ - ImGuiIO& io = ImGui::GetIO(); - g_sharedMetalContext.fontTexture = nil; - io.Fonts->SetTexID(nullptr); -} - -bool ImGui_ImplMetal_CreateDeviceObjects(id device) -{ - [g_sharedMetalContext makeDeviceObjectsWithDevice:device]; - - ImGui_ImplMetal_CreateFontsTexture(device); - - return true; -} - -void ImGui_ImplMetal_DestroyDeviceObjects() -{ - ImGui_ImplMetal_DestroyFontsTexture(); - [g_sharedMetalContext emptyRenderPipelineStateCache]; -} - -#pragma mark - MetalBuffer implementation - -@implementation MetalBuffer -- (instancetype)initWithBuffer:(id)buffer -{ - if ((self = [super init])) - { - _buffer = buffer; - _lastReuseTime = [NSDate date].timeIntervalSince1970; - } - return self; -} -@end - -#pragma mark - FramebufferDescriptor implementation - -@implementation FramebufferDescriptor -- (instancetype)initWithRenderPassDescriptor:(MTLRenderPassDescriptor *)renderPassDescriptor -{ - if ((self = [super init])) - { - _sampleCount = renderPassDescriptor.colorAttachments[0].texture.sampleCount; - _colorPixelFormat = renderPassDescriptor.colorAttachments[0].texture.pixelFormat; - _depthPixelFormat = renderPassDescriptor.depthAttachment.texture.pixelFormat; - _stencilPixelFormat = renderPassDescriptor.stencilAttachment.texture.pixelFormat; - } - return self; -} - -- (nonnull id)copyWithZone:(nullable NSZone *)zone -{ - FramebufferDescriptor *copy = [[FramebufferDescriptor allocWithZone:zone] init]; - copy.sampleCount = self.sampleCount; - copy.colorPixelFormat = self.colorPixelFormat; - copy.depthPixelFormat = self.depthPixelFormat; - copy.stencilPixelFormat = self.stencilPixelFormat; - return copy; -} - -- (NSUInteger)hash -{ - NSUInteger sc = _sampleCount & 0x3; - NSUInteger cf = _colorPixelFormat & 0x3FF; - NSUInteger df = _depthPixelFormat & 0x3FF; - NSUInteger sf = _stencilPixelFormat & 0x3FF; - NSUInteger hash = (sf << 22) | (df << 12) | (cf << 2) | sc; - return hash; -} - -- (BOOL)isEqual:(id)object -{ - FramebufferDescriptor *other = object; - if (![other isKindOfClass:[FramebufferDescriptor class]]) - return NO; - return other.sampleCount == self.sampleCount && - other.colorPixelFormat == self.colorPixelFormat && - other.depthPixelFormat == self.depthPixelFormat && - other.stencilPixelFormat == self.stencilPixelFormat; -} - -@end - -#pragma mark - MetalContext implementation - -@implementation MetalContext -- (instancetype)init { - if ((self = [super init])) - { - _renderPipelineStateCache = [NSMutableDictionary dictionary]; - _bufferCache = [NSMutableArray array]; - _lastBufferCachePurge = [NSDate date].timeIntervalSince1970; - } - return self; -} - -- (void)makeDeviceObjectsWithDevice:(id)device -{ - MTLDepthStencilDescriptor *depthStencilDescriptor = [[MTLDepthStencilDescriptor alloc] init]; - depthStencilDescriptor.depthWriteEnabled = NO; - depthStencilDescriptor.depthCompareFunction = MTLCompareFunctionAlways; - self.depthStencilState = [device newDepthStencilStateWithDescriptor:depthStencilDescriptor]; -} - -// We are retrieving and uploading the font atlas as a 4-channels RGBA texture here. -// In theory we could call GetTexDataAsAlpha8() and upload a 1-channel texture to save on memory access bandwidth. -// However, using a shader designed for 1-channel texture would make it less obvious to use the ImTextureID facility to render users own textures. -// You can make that change in your implementation. -- (void)makeFontTextureWithDevice:(id)device -{ - ImGuiIO &io = ImGui::GetIO(); - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - MTLTextureDescriptor *textureDescriptor = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:MTLPixelFormatRGBA8Unorm - width:(NSUInteger)width - height:(NSUInteger)height - mipmapped:NO]; - textureDescriptor.usage = MTLTextureUsageShaderRead; -#if TARGET_OS_OSX || TARGET_OS_MACCATALYST - textureDescriptor.storageMode = MTLStorageModeManaged; -#else - textureDescriptor.storageMode = MTLStorageModeShared; -#endif - id texture = [device newTextureWithDescriptor:textureDescriptor]; - [texture replaceRegion:MTLRegionMake2D(0, 0, (NSUInteger)width, (NSUInteger)height) mipmapLevel:0 withBytes:pixels bytesPerRow:(NSUInteger)width * 4]; - self.fontTexture = texture; -} - -- (MetalBuffer *)dequeueReusableBufferOfLength:(NSUInteger)length device:(id)device -{ - NSTimeInterval now = [NSDate date].timeIntervalSince1970; - - // Purge old buffers that haven't been useful for a while - if (now - self.lastBufferCachePurge > 1.0) - { - NSMutableArray *survivors = [NSMutableArray array]; - for (MetalBuffer *candidate in self.bufferCache) - { - if (candidate.lastReuseTime > self.lastBufferCachePurge) - { - [survivors addObject:candidate]; - } - } - self.bufferCache = [survivors mutableCopy]; - self.lastBufferCachePurge = now; - } - - // See if we have a buffer we can reuse - MetalBuffer *bestCandidate = nil; - for (MetalBuffer *candidate in self.bufferCache) - if (candidate.buffer.length >= length && (bestCandidate == nil || bestCandidate.lastReuseTime > candidate.lastReuseTime)) - bestCandidate = candidate; - - if (bestCandidate != nil) - { - [self.bufferCache removeObject:bestCandidate]; - bestCandidate.lastReuseTime = now; - return bestCandidate; - } - - // No luck; make a new buffer - id backing = [device newBufferWithLength:length options:MTLResourceStorageModeShared]; - return [[MetalBuffer alloc] initWithBuffer:backing]; -} - -- (void)enqueueReusableBuffer:(MetalBuffer *)buffer -{ - [self.bufferCache addObject:buffer]; -} - -- (_Nullable id)renderPipelineStateForFrameAndDevice:(id)device -{ - // Try to retrieve a render pipeline state that is compatible with the framebuffer config for this frame - // The hit rate for this cache should be very near 100%. - id renderPipelineState = self.renderPipelineStateCache[self.framebufferDescriptor]; - - if (renderPipelineState == nil) - { - // No luck; make a new render pipeline state - renderPipelineState = [self _renderPipelineStateForFramebufferDescriptor:self.framebufferDescriptor device:device]; - // Cache render pipeline state for later reuse - self.renderPipelineStateCache[self.framebufferDescriptor] = renderPipelineState; - } - - return renderPipelineState; -} - -- (id)_renderPipelineStateForFramebufferDescriptor:(FramebufferDescriptor *)descriptor device:(id)device -{ - NSError *error = nil; - - NSString *shaderSource = @"" - "#include \n" - "using namespace metal;\n" - "\n" - "struct Uniforms {\n" - " float4x4 projectionMatrix;\n" - "};\n" - "\n" - "struct VertexIn {\n" - " float2 position [[attribute(0)]];\n" - " float2 texCoords [[attribute(1)]];\n" - " uchar4 color [[attribute(2)]];\n" - "};\n" - "\n" - "struct VertexOut {\n" - " float4 position [[position]];\n" - " float2 texCoords;\n" - " float4 color;\n" - "};\n" - "\n" - "vertex VertexOut vertex_main(VertexIn in [[stage_in]],\n" - " constant Uniforms &uniforms [[buffer(1)]]) {\n" - " VertexOut out;\n" - " out.position = uniforms.projectionMatrix * float4(in.position, 0, 1);\n" - " out.texCoords = in.texCoords;\n" - " out.color = float4(in.color) / float4(255.0);\n" - " return out;\n" - "}\n" - "\n" - "fragment half4 fragment_main(VertexOut in [[stage_in]],\n" - " texture2d texture [[texture(0)]]) {\n" - " constexpr sampler linearSampler(coord::normalized, min_filter::linear, mag_filter::linear, mip_filter::linear);\n" - " half4 texColor = texture.sample(linearSampler, in.texCoords);\n" - " return half4(in.color) * texColor;\n" - "}\n"; - - id library = [device newLibraryWithSource:shaderSource options:nil error:&error]; - if (library == nil) - { - NSLog(@"Error: failed to create Metal library: %@", error); - return nil; - } - - id vertexFunction = [library newFunctionWithName:@"vertex_main"]; - id fragmentFunction = [library newFunctionWithName:@"fragment_main"]; - - if (vertexFunction == nil || fragmentFunction == nil) - { - NSLog(@"Error: failed to find Metal shader functions in library: %@", error); - return nil; - } - - MTLVertexDescriptor *vertexDescriptor = [MTLVertexDescriptor vertexDescriptor]; - vertexDescriptor.attributes[0].offset = IM_OFFSETOF(ImDrawVert, pos); - vertexDescriptor.attributes[0].format = MTLVertexFormatFloat2; // position - vertexDescriptor.attributes[0].bufferIndex = 0; - vertexDescriptor.attributes[1].offset = IM_OFFSETOF(ImDrawVert, uv); - vertexDescriptor.attributes[1].format = MTLVertexFormatFloat2; // texCoords - vertexDescriptor.attributes[1].bufferIndex = 0; - vertexDescriptor.attributes[2].offset = IM_OFFSETOF(ImDrawVert, col); - vertexDescriptor.attributes[2].format = MTLVertexFormatUChar4; // color - vertexDescriptor.attributes[2].bufferIndex = 0; - vertexDescriptor.layouts[0].stepRate = 1; - vertexDescriptor.layouts[0].stepFunction = MTLVertexStepFunctionPerVertex; - vertexDescriptor.layouts[0].stride = sizeof(ImDrawVert); - - MTLRenderPipelineDescriptor *pipelineDescriptor = [[MTLRenderPipelineDescriptor alloc] init]; - pipelineDescriptor.vertexFunction = vertexFunction; - pipelineDescriptor.fragmentFunction = fragmentFunction; - pipelineDescriptor.vertexDescriptor = vertexDescriptor; - pipelineDescriptor.sampleCount = self.framebufferDescriptor.sampleCount; - pipelineDescriptor.colorAttachments[0].pixelFormat = self.framebufferDescriptor.colorPixelFormat; - pipelineDescriptor.colorAttachments[0].blendingEnabled = YES; - pipelineDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd; - pipelineDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorSourceAlpha; - pipelineDescriptor.colorAttachments[0].destinationRGBBlendFactor = MTLBlendFactorOneMinusSourceAlpha; - pipelineDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationAdd; - pipelineDescriptor.colorAttachments[0].sourceAlphaBlendFactor = MTLBlendFactorOne; - pipelineDescriptor.colorAttachments[0].destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceAlpha; - pipelineDescriptor.depthAttachmentPixelFormat = self.framebufferDescriptor.depthPixelFormat; - pipelineDescriptor.stencilAttachmentPixelFormat = self.framebufferDescriptor.stencilPixelFormat; - - id renderPipelineState = [device newRenderPipelineStateWithDescriptor:pipelineDescriptor error:&error]; - if (error != nil) - { - NSLog(@"Error: failed to create Metal pipeline state: %@", error); - } - - return renderPipelineState; -} - -- (void)emptyRenderPipelineStateCache -{ - [self.renderPipelineStateCache removeAllObjects]; -} - -- (void)setupRenderState:(ImDrawData *)drawData - commandBuffer:(id)commandBuffer - commandEncoder:(id)commandEncoder - renderPipelineState:(id)renderPipelineState - vertexBuffer:(MetalBuffer *)vertexBuffer - vertexBufferOffset:(size_t)vertexBufferOffset -{ - [commandEncoder setCullMode:MTLCullModeNone]; - [commandEncoder setDepthStencilState:g_sharedMetalContext.depthStencilState]; - - // Setup viewport, orthographic projection matrix - // Our visible imgui space lies from draw_data->DisplayPos (top left) to - // draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayMin is typically (0,0) for single viewport apps. - MTLViewport viewport = - { - .originX = 0.0, - .originY = 0.0, - .width = (double)(drawData->DisplaySize.x * drawData->FramebufferScale.x), - .height = (double)(drawData->DisplaySize.y * drawData->FramebufferScale.y), - .znear = 0.0, - .zfar = 1.0 - }; - [commandEncoder setViewport:viewport]; - - float L = drawData->DisplayPos.x; - float R = drawData->DisplayPos.x + drawData->DisplaySize.x; - float T = drawData->DisplayPos.y; - float B = drawData->DisplayPos.y + drawData->DisplaySize.y; - float N = (float)viewport.znear; - float F = (float)viewport.zfar; - const float ortho_projection[4][4] = - { - { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, - { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, - { 0.0f, 0.0f, 1/(F-N), 0.0f }, - { (R+L)/(L-R), (T+B)/(B-T), N/(F-N), 1.0f }, - }; - [commandEncoder setVertexBytes:&ortho_projection length:sizeof(ortho_projection) atIndex:1]; - - [commandEncoder setRenderPipelineState:renderPipelineState]; - - [commandEncoder setVertexBuffer:vertexBuffer.buffer offset:0 atIndex:0]; - [commandEncoder setVertexBufferOffset:vertexBufferOffset atIndex:0]; -} - -- (void)renderDrawData:(ImDrawData *)drawData - commandBuffer:(id)commandBuffer - commandEncoder:(id)commandEncoder -{ - // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) - int fb_width = (int)(drawData->DisplaySize.x * drawData->FramebufferScale.x); - int fb_height = (int)(drawData->DisplaySize.y * drawData->FramebufferScale.y); - if (fb_width <= 0 || fb_height <= 0 || drawData->CmdListsCount == 0) - return; - - id renderPipelineState = [self renderPipelineStateForFrameAndDevice:commandBuffer.device]; - - size_t vertexBufferLength = (size_t)drawData->TotalVtxCount * sizeof(ImDrawVert); - size_t indexBufferLength = (size_t)drawData->TotalIdxCount * sizeof(ImDrawIdx); - MetalBuffer* vertexBuffer = [self dequeueReusableBufferOfLength:vertexBufferLength device:commandBuffer.device]; - MetalBuffer* indexBuffer = [self dequeueReusableBufferOfLength:indexBufferLength device:commandBuffer.device]; - - [self setupRenderState:drawData commandBuffer:commandBuffer commandEncoder:commandEncoder renderPipelineState:renderPipelineState vertexBuffer:vertexBuffer vertexBufferOffset:0]; - - // Will project scissor/clipping rectangles into framebuffer space - ImVec2 clip_off = drawData->DisplayPos; // (0,0) unless using multi-viewports - ImVec2 clip_scale = drawData->FramebufferScale; // (1,1) unless using retina display which are often (2,2) - - // Render command lists - size_t vertexBufferOffset = 0; - size_t indexBufferOffset = 0; - for (int n = 0; n < drawData->CmdListsCount; n++) - { - const ImDrawList* cmd_list = drawData->CmdLists[n]; - - memcpy((char *)vertexBuffer.buffer.contents + vertexBufferOffset, cmd_list->VtxBuffer.Data, (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); - memcpy((char *)indexBuffer.buffer.contents + indexBufferOffset, cmd_list->IdxBuffer.Data, (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); - - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - [self setupRenderState:drawData commandBuffer:commandBuffer commandEncoder:commandEncoder renderPipelineState:renderPipelineState vertexBuffer:vertexBuffer vertexBufferOffset:vertexBufferOffset]; - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Project scissor/clipping rectangles into framebuffer space - ImVec4 clip_rect; - clip_rect.x = (pcmd->ClipRect.x - clip_off.x) * clip_scale.x; - clip_rect.y = (pcmd->ClipRect.y - clip_off.y) * clip_scale.y; - clip_rect.z = (pcmd->ClipRect.z - clip_off.x) * clip_scale.x; - clip_rect.w = (pcmd->ClipRect.w - clip_off.y) * clip_scale.y; - - if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0f) - { - // Apply scissor/clipping rectangle - MTLScissorRect scissorRect = - { - .x = NSUInteger(clip_rect.x), - .y = NSUInteger(clip_rect.y), - .width = NSUInteger(clip_rect.z - clip_rect.x), - .height = NSUInteger(clip_rect.w - clip_rect.y) - }; - [commandEncoder setScissorRect:scissorRect]; - - - // Bind texture, Draw - if (pcmd->TextureId != NULL) - [commandEncoder setFragmentTexture:(__bridge id)(pcmd->TextureId) atIndex:0]; - - [commandEncoder setVertexBufferOffset:(vertexBufferOffset + pcmd->VtxOffset * sizeof(ImDrawVert)) atIndex:0]; - [commandEncoder drawIndexedPrimitives:MTLPrimitiveTypeTriangle - indexCount:pcmd->ElemCount - indexType:sizeof(ImDrawIdx) == 2 ? MTLIndexTypeUInt16 : MTLIndexTypeUInt32 - indexBuffer:indexBuffer.buffer - indexBufferOffset:indexBufferOffset + pcmd->IdxOffset * sizeof(ImDrawIdx)]; - } - } - } - - vertexBufferOffset += (size_t)cmd_list->VtxBuffer.Size * sizeof(ImDrawVert); - indexBufferOffset += (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx); - } - - __weak id weakSelf = self; - [commandBuffer addCompletedHandler:^(id) - { - dispatch_async(dispatch_get_main_queue(), ^{ - [weakSelf enqueueReusableBuffer:vertexBuffer]; - [weakSelf enqueueReusableBuffer:indexBuffer]; - }); - }]; -} - -@end diff --git a/third_party/imgui/backends/imgui_impl_opengl2.cpp b/third_party/imgui/backends/imgui_impl_opengl2.cpp deleted file mode 100644 index 5771049c..00000000 --- a/third_party/imgui/backends/imgui_impl_opengl2.cpp +++ /dev/null @@ -1,258 +0,0 @@ -// dear imgui: Renderer Backend for OpenGL2 (legacy OpenGL, fixed pipeline) -// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** -// **Prefer using the code in imgui_impl_opengl3.cpp** -// This code is mostly provided as a reference to learn how ImGui integration works, because it is shorter to read. -// If your code is using GL3+ context or any semi modern OpenGL calls, using this is likely to make everything more -// complicated, will require your code to reset every single OpenGL attributes to their initial state, and might -// confuse your GPU driver. -// The GL2 code is unable to reset attributes or even call e.g. "glUseProgram(0)" because they don't exist in that API. - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-01-03: OpenGL: Backup, setup and restore GL_SHADE_MODEL state, disable GL_STENCIL_TEST and disable GL_NORMAL_ARRAY client state to increase compatibility with legacy OpenGL applications. -// 2020-01-23: OpenGL: Backup, setup and restore GL_TEXTURE_ENV to increase compatibility with legacy OpenGL applications. -// 2019-04-30: OpenGL: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2019-02-11: OpenGL: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. -// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. -// 2018-08-03: OpenGL: Disabling/restoring GL_LIGHTING and GL_COLOR_MATERIAL to increase compatibility with legacy OpenGL applications. -// 2018-06-08: Misc: Extracted imgui_impl_opengl2.cpp/.h away from the old combined GLFW/SDL+OpenGL2 examples. -// 2018-06-08: OpenGL: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. -// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplOpenGL2_RenderDrawData() in the .h file so you can call it yourself. -// 2017-09-01: OpenGL: Save and restore current polygon mode. -// 2016-09-10: OpenGL: Uploading font texture as RGBA32 to increase compatibility with users shaders (not ideal). -// 2016-09-05: OpenGL: Fixed save and restore of current scissor rectangle. - -#include "imgui.h" -#include "imgui_impl_opengl2.h" -#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier -#include // intptr_t -#else -#include // intptr_t -#endif - -// Include OpenGL header (without an OpenGL loader) requires a bit of fiddling -#if defined(_WIN32) && !defined(APIENTRY) -#define APIENTRY __stdcall // It is customary to use APIENTRY for OpenGL function pointer declarations on all platforms. Additionally, the Windows OpenGL header needs APIENTRY. -#endif -#if defined(_WIN32) && !defined(WINGDIAPI) -#define WINGDIAPI __declspec(dllimport) // Some Windows OpenGL headers need this -#endif -#if defined(__APPLE__) -#define GL_SILENCE_DEPRECATION -#include -#else -#include -#endif - -// OpenGL Data -static GLuint g_FontTexture = 0; - -// Functions -bool ImGui_ImplOpenGL2_Init() -{ - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_opengl2"; - return true; -} - -void ImGui_ImplOpenGL2_Shutdown() -{ - ImGui_ImplOpenGL2_DestroyDeviceObjects(); -} - -void ImGui_ImplOpenGL2_NewFrame() -{ - if (!g_FontTexture) - ImGui_ImplOpenGL2_CreateDeviceObjects(); -} - -static void ImGui_ImplOpenGL2_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height) -{ - // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, vertex/texcoord/color pointers, polygon fill. - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - //glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); // In order to composite our output buffer we need to preserve alpha - glDisable(GL_CULL_FACE); - glDisable(GL_DEPTH_TEST); - glDisable(GL_STENCIL_TEST); - glDisable(GL_LIGHTING); - glDisable(GL_COLOR_MATERIAL); - glEnable(GL_SCISSOR_TEST); - glEnableClientState(GL_VERTEX_ARRAY); - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - glEnableClientState(GL_COLOR_ARRAY); - glDisableClientState(GL_NORMAL_ARRAY); - glEnable(GL_TEXTURE_2D); - glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); - glShadeModel(GL_SMOOTH); - glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); - - // If you are using this code with non-legacy OpenGL header/contexts (which you should not, prefer using imgui_impl_opengl3.cpp!!), - // you may need to backup/reset/restore other state, e.g. for current shader using the commented lines below. - // (DO NOT MODIFY THIS FILE! Add the code in your calling function) - // GLint last_program; - // glGetIntegerv(GL_CURRENT_PROGRAM, &last_program); - // glUseProgram(0); - // ImGui_ImplOpenGL2_RenderDrawData(...); - // glUseProgram(last_program) - // There are potentially many more states you could need to clear/setup that we can't access from default headers. - // e.g. glBindBuffer(GL_ARRAY_BUFFER, 0), glDisable(GL_TEXTURE_CUBE_MAP). - - // Setup viewport, orthographic projection matrix - // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. - glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); - glMatrixMode(GL_PROJECTION); - glPushMatrix(); - glLoadIdentity(); - glOrtho(draw_data->DisplayPos.x, draw_data->DisplayPos.x + draw_data->DisplaySize.x, draw_data->DisplayPos.y + draw_data->DisplaySize.y, draw_data->DisplayPos.y, -1.0f, +1.0f); - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - glLoadIdentity(); -} - -// OpenGL2 Render function. -// Note that this implementation is little overcomplicated because we are saving/setting up/restoring every OpenGL state explicitly. -// This is in order to be able to run within an OpenGL engine that doesn't do so. -void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data) -{ - // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) - int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); - int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); - if (fb_width == 0 || fb_height == 0) - return; - - // Backup GL state - GLint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); - GLint last_polygon_mode[2]; glGetIntegerv(GL_POLYGON_MODE, last_polygon_mode); - GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport); - GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box); - GLint last_shade_model; glGetIntegerv(GL_SHADE_MODEL, &last_shade_model); - GLint last_tex_env_mode; glGetTexEnviv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, &last_tex_env_mode); - glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT | GL_TRANSFORM_BIT); - - // Setup desired GL state - ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); - - // Will project scissor/clipping rectangles into framebuffer space - ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports - ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are often (2,2) - - // Render command lists - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; - const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; - glVertexPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, pos))); - glTexCoordPointer(2, GL_FLOAT, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, uv))); - glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(ImDrawVert), (const GLvoid*)((const char*)vtx_buffer + IM_OFFSETOF(ImDrawVert, col))); - - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplOpenGL2_SetupRenderState(draw_data, fb_width, fb_height); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Project scissor/clipping rectangles into framebuffer space - ImVec4 clip_rect; - clip_rect.x = (pcmd->ClipRect.x - clip_off.x) * clip_scale.x; - clip_rect.y = (pcmd->ClipRect.y - clip_off.y) * clip_scale.y; - clip_rect.z = (pcmd->ClipRect.z - clip_off.x) * clip_scale.x; - clip_rect.w = (pcmd->ClipRect.w - clip_off.y) * clip_scale.y; - - if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0f) - { - // Apply scissor/clipping rectangle - glScissor((int)clip_rect.x, (int)(fb_height - clip_rect.w), (int)(clip_rect.z - clip_rect.x), (int)(clip_rect.w - clip_rect.y)); - - // Bind texture, Draw - glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId); - glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer); - } - } - idx_buffer += pcmd->ElemCount; - } - } - - // Restore modified GL state - glDisableClientState(GL_COLOR_ARRAY); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); - glDisableClientState(GL_VERTEX_ARRAY); - glBindTexture(GL_TEXTURE_2D, (GLuint)last_texture); - glMatrixMode(GL_MODELVIEW); - glPopMatrix(); - glMatrixMode(GL_PROJECTION); - glPopMatrix(); - glPopAttrib(); - glPolygonMode(GL_FRONT, (GLenum)last_polygon_mode[0]); glPolygonMode(GL_BACK, (GLenum)last_polygon_mode[1]); - glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]); - glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]); - glShadeModel(last_shade_model); - glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, last_tex_env_mode); -} - -bool ImGui_ImplOpenGL2_CreateFontsTexture() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bit (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. - - // Upload texture to graphics system - GLint last_texture; - glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); - glGenTextures(1, &g_FontTexture); - glBindTexture(GL_TEXTURE_2D, g_FontTexture); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); - - // Store our identifier - io.Fonts->SetTexID((ImTextureID)(intptr_t)g_FontTexture); - - // Restore state - glBindTexture(GL_TEXTURE_2D, last_texture); - - return true; -} - -void ImGui_ImplOpenGL2_DestroyFontsTexture() -{ - if (g_FontTexture) - { - ImGuiIO& io = ImGui::GetIO(); - glDeleteTextures(1, &g_FontTexture); - io.Fonts->SetTexID(0); - g_FontTexture = 0; - } -} - -bool ImGui_ImplOpenGL2_CreateDeviceObjects() -{ - return ImGui_ImplOpenGL2_CreateFontsTexture(); -} - -void ImGui_ImplOpenGL2_DestroyDeviceObjects() -{ - ImGui_ImplOpenGL2_DestroyFontsTexture(); -} diff --git a/third_party/imgui/backends/imgui_impl_opengl2.h b/third_party/imgui/backends/imgui_impl_opengl2.h deleted file mode 100644 index c0e29760..00000000 --- a/third_party/imgui/backends/imgui_impl_opengl2.h +++ /dev/null @@ -1,31 +0,0 @@ -// dear imgui: Renderer Backend for OpenGL2 (legacy OpenGL, fixed pipeline) -// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** -// **Prefer using the code in imgui_impl_opengl3.cpp** -// This code is mostly provided as a reference to learn how ImGui integration works, because it is shorter to read. -// If your code is using GL3+ context or any semi modern OpenGL calls, using this is likely to make everything more -// complicated, will require your code to reset every single OpenGL attributes to their initial state, and might -// confuse your GPU driver. -// The GL2 code is unable to reset attributes or even call e.g. "glUseProgram(0)" because they don't exist in that API. - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -IMGUI_IMPL_API bool ImGui_ImplOpenGL2_Init(); -IMGUI_IMPL_API void ImGui_ImplOpenGL2_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplOpenGL2_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); - -// Called by Init/NewFrame/Shutdown -IMGUI_IMPL_API bool ImGui_ImplOpenGL2_CreateFontsTexture(); -IMGUI_IMPL_API void ImGui_ImplOpenGL2_DestroyFontsTexture(); -IMGUI_IMPL_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(); -IMGUI_IMPL_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(); diff --git a/third_party/imgui/backends/imgui_impl_opengl3.cpp b/third_party/imgui/backends/imgui_impl_opengl3.cpp deleted file mode 100644 index b582851e..00000000 --- a/third_party/imgui/backends/imgui_impl_opengl3.cpp +++ /dev/null @@ -1,720 +0,0 @@ -// dear imgui: Renderer Backend for modern OpenGL with shaders / programmatic pipeline -// - Desktop GL: 2.x 3.x 4.x -// - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) -// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! -// [x] Renderer: Desktop GL only: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: OpenGL: Change blending equation to preserve alpha in output buffer. -// 2021-01-03: OpenGL: Backup, setup and restore GL_STENCIL_TEST state. -// 2020-10-23: OpenGL: Backup, setup and restore GL_PRIMITIVE_RESTART state. -// 2020-10-15: OpenGL: Use glGetString(GL_VERSION) instead of glGetIntegerv(GL_MAJOR_VERSION, ...) when the later returns zero (e.g. Desktop GL 2.x) -// 2020-09-17: OpenGL: Fix to avoid compiling/calling glBindSampler() on ES or pre 3.3 context which have the defines set by a loader. -// 2020-07-10: OpenGL: Added support for glad2 OpenGL loader. -// 2020-05-08: OpenGL: Made default GLSL version 150 (instead of 130) on OSX. -// 2020-04-21: OpenGL: Fixed handling of glClipControl(GL_UPPER_LEFT) by inverting projection matrix. -// 2020-04-12: OpenGL: Fixed context version check mistakenly testing for 4.0+ instead of 3.2+ to enable ImGuiBackendFlags_RendererHasVtxOffset. -// 2020-03-24: OpenGL: Added support for glbinding 2.x OpenGL loader. -// 2020-01-07: OpenGL: Added support for glbinding 3.x OpenGL loader. -// 2019-10-25: OpenGL: Using a combination of GL define and runtime GL version to decide whether to use glDrawElementsBaseVertex(). Fix building with pre-3.2 GL loaders. -// 2019-09-22: OpenGL: Detect default GL loader using __has_include compiler facility. -// 2019-09-16: OpenGL: Tweak initialization code to allow application calling ImGui_ImplOpenGL3_CreateFontsTexture() before the first NewFrame() call. -// 2019-05-29: OpenGL: Desktop GL only: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. -// 2019-04-30: OpenGL: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2019-03-29: OpenGL: Not calling glBindBuffer more than necessary in the render loop. -// 2019-03-15: OpenGL: Added a GL call + comments in ImGui_ImplOpenGL3_Init() to detect uninitialized GL function loaders early. -// 2019-03-03: OpenGL: Fix support for ES 2.0 (WebGL 1.0). -// 2019-02-20: OpenGL: Fix for OSX not supporting OpenGL 4.5, we don't try to read GL_CLIP_ORIGIN even if defined by the headers/loader. -// 2019-02-11: OpenGL: Projecting clipping rectangles correctly using draw_data->FramebufferScale to allow multi-viewports for retina display. -// 2019-02-01: OpenGL: Using GLSL 410 shaders for any version over 410 (e.g. 430, 450). -// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. -// 2018-11-13: OpenGL: Support for GL 4.5's glClipControl(GL_UPPER_LEFT) / GL_CLIP_ORIGIN. -// 2018-08-29: OpenGL: Added support for more OpenGL loaders: glew and glad, with comments indicative that any loader can be used. -// 2018-08-09: OpenGL: Default to OpenGL ES 3 on iOS and Android. GLSL version default to "#version 300 ES". -// 2018-07-30: OpenGL: Support for GLSL 300 ES and 410 core. Fixes for Emscripten compilation. -// 2018-07-10: OpenGL: Support for more GLSL versions (based on the GLSL version string). Added error output when shaders fail to compile/link. -// 2018-06-08: Misc: Extracted imgui_impl_opengl3.cpp/.h away from the old combined GLFW/SDL+OpenGL3 examples. -// 2018-06-08: OpenGL: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. -// 2018-05-25: OpenGL: Removed unnecessary backup/restore of GL_ELEMENT_ARRAY_BUFFER_BINDING since this is part of the VAO state. -// 2018-05-14: OpenGL: Making the call to glBindSampler() optional so 3.2 context won't fail if the function is a NULL pointer. -// 2018-03-06: OpenGL: Added const char* glsl_version parameter to ImGui_ImplOpenGL3_Init() so user can override the GLSL version e.g. "#version 150". -// 2018-02-23: OpenGL: Create the VAO in the render function so the setup can more easily be used with multiple shared GL context. -// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback and exposed ImGui_ImplSdlGL3_RenderDrawData() in the .h file so you can call it yourself. -// 2018-01-07: OpenGL: Changed GLSL shader version from 330 to 150. -// 2017-09-01: OpenGL: Save and restore current bound sampler. Save and restore current polygon mode. -// 2017-05-01: OpenGL: Fixed save and restore of current blend func state. -// 2017-05-01: OpenGL: Fixed save and restore of current GL_ACTIVE_TEXTURE. -// 2016-09-05: OpenGL: Fixed save and restore of current scissor rectangle. -// 2016-07-29: OpenGL: Explicitly setting GL_UNPACK_ROW_LENGTH to reduce issues because SDL changes it. (#752) - -//---------------------------------------- -// OpenGL GLSL GLSL -// version version string -//---------------------------------------- -// 2.0 110 "#version 110" -// 2.1 120 "#version 120" -// 3.0 130 "#version 130" -// 3.1 140 "#version 140" -// 3.2 150 "#version 150" -// 3.3 330 "#version 330 core" -// 4.0 400 "#version 400 core" -// 4.1 410 "#version 410 core" -// 4.2 420 "#version 410 core" -// 4.3 430 "#version 430 core" -// ES 2.0 100 "#version 100" = WebGL 1.0 -// ES 3.0 300 "#version 300 es" = WebGL 2.0 -//---------------------------------------- - -#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) -#define _CRT_SECURE_NO_WARNINGS -#endif - -#include "imgui.h" -#include "imgui_impl_opengl3.h" -#include -#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier -#include // intptr_t -#else -#include // intptr_t -#endif - -// GL includes -#if defined(IMGUI_IMPL_OPENGL_ES2) -#include -#elif defined(IMGUI_IMPL_OPENGL_ES3) -#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV)) -#include // Use GL ES 3 -#else -#include // Use GL ES 3 -#endif -#else -// About Desktop OpenGL function loaders: -// Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers. -// Helper libraries are often used for this purpose! Here we are supporting a few common ones (gl3w, glew, glad). -// You may use another loader/header of your choice (glext, glLoadGen, etc.), or chose to manually implement your own. -#if defined(IMGUI_IMPL_OPENGL_LOADER_GL3W) -#include // Needs to be initialized with gl3wInit() in user's code -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) -#include // Needs to be initialized with glewInit() in user's code. -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD) -#include // Needs to be initialized with gladLoadGL() in user's code. -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2) -#include // Needs to be initialized with gladLoadGL(...) or gladLoaderLoadGL() in user's code. -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING2) -#ifndef GLFW_INCLUDE_NONE -#define GLFW_INCLUDE_NONE // GLFW including OpenGL headers causes ambiguity or multiple definition errors. -#endif -#include // Needs to be initialized with glbinding::Binding::initialize() in user's code. -#include -using namespace gl; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING3) -#ifndef GLFW_INCLUDE_NONE -#define GLFW_INCLUDE_NONE // GLFW including OpenGL headers causes ambiguity or multiple definition errors. -#endif -#include // Needs to be initialized with glbinding::initialize() in user's code. -#include -using namespace gl; -#else -#include IMGUI_IMPL_OPENGL_LOADER_CUSTOM -#endif -#endif - -// Desktop GL 3.2+ has glDrawElementsBaseVertex() which GL ES and WebGL don't have. -#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_2) -#define IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET -#endif - -// Desktop GL 3.3+ has glBindSampler() -#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_3) -#define IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER -#endif - -// Desktop GL 3.1+ has GL_PRIMITIVE_RESTART state -#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_1) -#define IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART -#endif - -// OpenGL Data -static GLuint g_GlVersion = 0; // Extracted at runtime using GL_MAJOR_VERSION, GL_MINOR_VERSION queries (e.g. 320 for GL 3.2) -static char g_GlslVersionString[32] = ""; // Specified by user or detected based on compile time GL settings. -static GLuint g_FontTexture = 0; -static GLuint g_ShaderHandle = 0, g_VertHandle = 0, g_FragHandle = 0; -static GLint g_AttribLocationTex = 0, g_AttribLocationProjMtx = 0; // Uniforms location -static GLuint g_AttribLocationVtxPos = 0, g_AttribLocationVtxUV = 0, g_AttribLocationVtxColor = 0; // Vertex attributes location -static unsigned int g_VboHandle = 0, g_ElementsHandle = 0; - -// Functions -bool ImGui_ImplOpenGL3_Init(const char* glsl_version) -{ - // Query for GL version (e.g. 320 for GL 3.2) -#if !defined(IMGUI_IMPL_OPENGL_ES2) - GLint major = 0; - GLint minor = 0; - glGetIntegerv(GL_MAJOR_VERSION, &major); - glGetIntegerv(GL_MINOR_VERSION, &minor); - if (major == 0 && minor == 0) - { - // Query GL_VERSION in desktop GL 2.x, the string will start with "." - const char* gl_version = (const char*)glGetString(GL_VERSION); - sscanf(gl_version, "%d.%d", &major, &minor); - } - g_GlVersion = (GLuint)(major * 100 + minor * 10); -#else - g_GlVersion = 200; // GLES 2 -#endif - - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_opengl3"; -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET - if (g_GlVersion >= 320) - io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. -#endif - - // Store GLSL version string so we can refer to it later in case we recreate shaders. - // Note: GLSL version is NOT the same as GL version. Leave this to NULL if unsure. -#if defined(IMGUI_IMPL_OPENGL_ES2) - if (glsl_version == NULL) - glsl_version = "#version 100"; -#elif defined(IMGUI_IMPL_OPENGL_ES3) - if (glsl_version == NULL) - glsl_version = "#version 300 es"; -#elif defined(__APPLE__) - if (glsl_version == NULL) - glsl_version = "#version 150"; -#else - if (glsl_version == NULL) - glsl_version = "#version 130"; -#endif - IM_ASSERT((int)strlen(glsl_version) + 2 < IM_ARRAYSIZE(g_GlslVersionString)); - strcpy(g_GlslVersionString, glsl_version); - strcat(g_GlslVersionString, "\n"); - - // Debugging construct to make it easily visible in the IDE and debugger which GL loader has been selected. - // The code actually never uses the 'gl_loader' variable! It is only here so you can read it! - // If auto-detection fails or doesn't select the same GL loader file as used by your application, - // you are likely to get a crash below. - // You can explicitly select a loader by using '#define IMGUI_IMPL_OPENGL_LOADER_XXX' in imconfig.h or compiler command-line. - const char* gl_loader = "Unknown"; - IM_UNUSED(gl_loader); -#if defined(IMGUI_IMPL_OPENGL_LOADER_GL3W) - gl_loader = "GL3W"; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) - gl_loader = "GLEW"; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD) - gl_loader = "GLAD"; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2) - gl_loader = "GLAD2"; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING2) - gl_loader = "glbinding2"; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING3) - gl_loader = "glbinding3"; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM) - gl_loader = "custom"; -#else - gl_loader = "none"; -#endif - - // Make an arbitrary GL call (we don't actually need the result) - // IF YOU GET A CRASH HERE: it probably means that you haven't initialized the OpenGL function loader used by this code. - // Desktop OpenGL 3/4 need a function loader. See the IMGUI_IMPL_OPENGL_LOADER_xxx explanation above. - GLint current_texture; - glGetIntegerv(GL_TEXTURE_BINDING_2D, ¤t_texture); - - return true; -} - -void ImGui_ImplOpenGL3_Shutdown() -{ - ImGui_ImplOpenGL3_DestroyDeviceObjects(); -} - -void ImGui_ImplOpenGL3_NewFrame() -{ - if (!g_ShaderHandle) - ImGui_ImplOpenGL3_CreateDeviceObjects(); -} - -static void ImGui_ImplOpenGL3_SetupRenderState(ImDrawData* draw_data, int fb_width, int fb_height, GLuint vertex_array_object) -{ - // Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled, polygon fill - glEnable(GL_BLEND); - glBlendEquation(GL_FUNC_ADD); - glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA); - glDisable(GL_CULL_FACE); - glDisable(GL_DEPTH_TEST); - glDisable(GL_STENCIL_TEST); - glEnable(GL_SCISSOR_TEST); -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART - if (g_GlVersion >= 310) - glDisable(GL_PRIMITIVE_RESTART); -#endif -#ifdef GL_POLYGON_MODE - glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); -#endif - - // Support for GL 4.5 rarely used glClipControl(GL_UPPER_LEFT) -#if defined(GL_CLIP_ORIGIN) && !defined(__APPLE__) - bool clip_origin_lower_left = true; - GLenum current_clip_origin = 0; glGetIntegerv(GL_CLIP_ORIGIN, (GLint*)¤t_clip_origin); - if (current_clip_origin == GL_UPPER_LEFT) - clip_origin_lower_left = false; -#endif - - // Setup viewport, orthographic projection matrix - // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. - glViewport(0, 0, (GLsizei)fb_width, (GLsizei)fb_height); - float L = draw_data->DisplayPos.x; - float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; - float T = draw_data->DisplayPos.y; - float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; -#if defined(GL_CLIP_ORIGIN) && !defined(__APPLE__) - if (!clip_origin_lower_left) { float tmp = T; T = B; B = tmp; } // Swap top and bottom if origin is upper left -#endif - const float ortho_projection[4][4] = - { - { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, - { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, - { 0.0f, 0.0f, -1.0f, 0.0f }, - { (R+L)/(L-R), (T+B)/(B-T), 0.0f, 1.0f }, - }; - glUseProgram(g_ShaderHandle); - glUniform1i(g_AttribLocationTex, 0); - glUniformMatrix4fv(g_AttribLocationProjMtx, 1, GL_FALSE, &ortho_projection[0][0]); - -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER - if (g_GlVersion >= 330) - glBindSampler(0, 0); // We use combined texture/sampler state. Applications using GL 3.3 may set that otherwise. -#endif - - (void)vertex_array_object; -#ifndef IMGUI_IMPL_OPENGL_ES2 - glBindVertexArray(vertex_array_object); -#endif - - // Bind vertex/index buffers and setup attributes for ImDrawVert - glBindBuffer(GL_ARRAY_BUFFER, g_VboHandle); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, g_ElementsHandle); - glEnableVertexAttribArray(g_AttribLocationVtxPos); - glEnableVertexAttribArray(g_AttribLocationVtxUV); - glEnableVertexAttribArray(g_AttribLocationVtxColor); - glVertexAttribPointer(g_AttribLocationVtxPos, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, pos)); - glVertexAttribPointer(g_AttribLocationVtxUV, 2, GL_FLOAT, GL_FALSE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, uv)); - glVertexAttribPointer(g_AttribLocationVtxColor, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(ImDrawVert), (GLvoid*)IM_OFFSETOF(ImDrawVert, col)); -} - -// OpenGL3 Render function. -// Note that this implementation is little overcomplicated because we are saving/setting up/restoring every OpenGL state explicitly. -// This is in order to be able to run within an OpenGL engine that doesn't do so. -void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data) -{ - // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) - int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); - int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); - if (fb_width <= 0 || fb_height <= 0) - return; - - // Backup GL state - GLenum last_active_texture; glGetIntegerv(GL_ACTIVE_TEXTURE, (GLint*)&last_active_texture); - glActiveTexture(GL_TEXTURE0); - GLuint last_program; glGetIntegerv(GL_CURRENT_PROGRAM, (GLint*)&last_program); - GLuint last_texture; glGetIntegerv(GL_TEXTURE_BINDING_2D, (GLint*)&last_texture); -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER - GLuint last_sampler; if (g_GlVersion >= 330) { glGetIntegerv(GL_SAMPLER_BINDING, (GLint*)&last_sampler); } else { last_sampler = 0; } -#endif - GLuint last_array_buffer; glGetIntegerv(GL_ARRAY_BUFFER_BINDING, (GLint*)&last_array_buffer); -#ifndef IMGUI_IMPL_OPENGL_ES2 - GLuint last_vertex_array_object; glGetIntegerv(GL_VERTEX_ARRAY_BINDING, (GLint*)&last_vertex_array_object); -#endif -#ifdef GL_POLYGON_MODE - GLint last_polygon_mode[2]; glGetIntegerv(GL_POLYGON_MODE, last_polygon_mode); -#endif - GLint last_viewport[4]; glGetIntegerv(GL_VIEWPORT, last_viewport); - GLint last_scissor_box[4]; glGetIntegerv(GL_SCISSOR_BOX, last_scissor_box); - GLenum last_blend_src_rgb; glGetIntegerv(GL_BLEND_SRC_RGB, (GLint*)&last_blend_src_rgb); - GLenum last_blend_dst_rgb; glGetIntegerv(GL_BLEND_DST_RGB, (GLint*)&last_blend_dst_rgb); - GLenum last_blend_src_alpha; glGetIntegerv(GL_BLEND_SRC_ALPHA, (GLint*)&last_blend_src_alpha); - GLenum last_blend_dst_alpha; glGetIntegerv(GL_BLEND_DST_ALPHA, (GLint*)&last_blend_dst_alpha); - GLenum last_blend_equation_rgb; glGetIntegerv(GL_BLEND_EQUATION_RGB, (GLint*)&last_blend_equation_rgb); - GLenum last_blend_equation_alpha; glGetIntegerv(GL_BLEND_EQUATION_ALPHA, (GLint*)&last_blend_equation_alpha); - GLboolean last_enable_blend = glIsEnabled(GL_BLEND); - GLboolean last_enable_cull_face = glIsEnabled(GL_CULL_FACE); - GLboolean last_enable_depth_test = glIsEnabled(GL_DEPTH_TEST); - GLboolean last_enable_stencil_test = glIsEnabled(GL_STENCIL_TEST); - GLboolean last_enable_scissor_test = glIsEnabled(GL_SCISSOR_TEST); -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART - GLboolean last_enable_primitive_restart = (g_GlVersion >= 310) ? glIsEnabled(GL_PRIMITIVE_RESTART) : GL_FALSE; -#endif - - // Setup desired GL state - // Recreate the VAO every time (this is to easily allow multiple GL contexts to be rendered to. VAO are not shared among GL contexts) - // The renderer would actually work without any VAO bound, but then our VertexAttrib calls would overwrite the default one currently bound. - GLuint vertex_array_object = 0; -#ifndef IMGUI_IMPL_OPENGL_ES2 - glGenVertexArrays(1, &vertex_array_object); -#endif - ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); - - // Will project scissor/clipping rectangles into framebuffer space - ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports - ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are often (2,2) - - // Render command lists - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - - // Upload vertex/index buffers - glBufferData(GL_ARRAY_BUFFER, (GLsizeiptr)cmd_list->VtxBuffer.Size * (int)sizeof(ImDrawVert), (const GLvoid*)cmd_list->VtxBuffer.Data, GL_STREAM_DRAW); - glBufferData(GL_ELEMENT_ARRAY_BUFFER, (GLsizeiptr)cmd_list->IdxBuffer.Size * (int)sizeof(ImDrawIdx), (const GLvoid*)cmd_list->IdxBuffer.Data, GL_STREAM_DRAW); - - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback != NULL) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplOpenGL3_SetupRenderState(draw_data, fb_width, fb_height, vertex_array_object); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Project scissor/clipping rectangles into framebuffer space - ImVec4 clip_rect; - clip_rect.x = (pcmd->ClipRect.x - clip_off.x) * clip_scale.x; - clip_rect.y = (pcmd->ClipRect.y - clip_off.y) * clip_scale.y; - clip_rect.z = (pcmd->ClipRect.z - clip_off.x) * clip_scale.x; - clip_rect.w = (pcmd->ClipRect.w - clip_off.y) * clip_scale.y; - - if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0f) - { - // Apply scissor/clipping rectangle - glScissor((int)clip_rect.x, (int)(fb_height - clip_rect.w), (int)(clip_rect.z - clip_rect.x), (int)(clip_rect.w - clip_rect.y)); - - // Bind texture, Draw - glBindTexture(GL_TEXTURE_2D, (GLuint)(intptr_t)pcmd->TextureId); -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_VTX_OFFSET - if (g_GlVersion >= 320) - glDrawElementsBaseVertex(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, (void*)(intptr_t)(pcmd->IdxOffset * sizeof(ImDrawIdx)), (GLint)pcmd->VtxOffset); - else -#endif - glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, (void*)(intptr_t)(pcmd->IdxOffset * sizeof(ImDrawIdx))); - } - } - } - } - - // Destroy the temporary VAO -#ifndef IMGUI_IMPL_OPENGL_ES2 - glDeleteVertexArrays(1, &vertex_array_object); -#endif - - // Restore modified GL state - glUseProgram(last_program); - glBindTexture(GL_TEXTURE_2D, last_texture); -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER - if (g_GlVersion >= 330) - glBindSampler(0, last_sampler); -#endif - glActiveTexture(last_active_texture); -#ifndef IMGUI_IMPL_OPENGL_ES2 - glBindVertexArray(last_vertex_array_object); -#endif - glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer); - glBlendEquationSeparate(last_blend_equation_rgb, last_blend_equation_alpha); - glBlendFuncSeparate(last_blend_src_rgb, last_blend_dst_rgb, last_blend_src_alpha, last_blend_dst_alpha); - if (last_enable_blend) glEnable(GL_BLEND); else glDisable(GL_BLEND); - if (last_enable_cull_face) glEnable(GL_CULL_FACE); else glDisable(GL_CULL_FACE); - if (last_enable_depth_test) glEnable(GL_DEPTH_TEST); else glDisable(GL_DEPTH_TEST); - if (last_enable_stencil_test) glEnable(GL_STENCIL_TEST); else glDisable(GL_STENCIL_TEST); - if (last_enable_scissor_test) glEnable(GL_SCISSOR_TEST); else glDisable(GL_SCISSOR_TEST); -#ifdef IMGUI_IMPL_OPENGL_MAY_HAVE_PRIMITIVE_RESTART - if (g_GlVersion >= 310) { if (last_enable_primitive_restart) glEnable(GL_PRIMITIVE_RESTART); else glDisable(GL_PRIMITIVE_RESTART); } -#endif - -#ifdef GL_POLYGON_MODE - glPolygonMode(GL_FRONT_AND_BACK, (GLenum)last_polygon_mode[0]); -#endif - glViewport(last_viewport[0], last_viewport[1], (GLsizei)last_viewport[2], (GLsizei)last_viewport[3]); - glScissor(last_scissor_box[0], last_scissor_box[1], (GLsizei)last_scissor_box[2], (GLsizei)last_scissor_box[3]); -} - -bool ImGui_ImplOpenGL3_CreateFontsTexture() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); // Load as RGBA 32-bit (75% of the memory is wasted, but default font is so small) because it is more likely to be compatible with user's existing shaders. If your ImTextureId represent a higher-level concept than just a GL texture id, consider calling GetTexDataAsAlpha8() instead to save on GPU memory. - - // Upload texture to graphics system - GLint last_texture; - glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); - glGenTextures(1, &g_FontTexture); - glBindTexture(GL_TEXTURE_2D, g_FontTexture); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); -#ifdef GL_UNPACK_ROW_LENGTH - glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); -#endif - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); - - // Store our identifier - io.Fonts->SetTexID((ImTextureID)(intptr_t)g_FontTexture); - - // Restore state - glBindTexture(GL_TEXTURE_2D, last_texture); - - return true; -} - -void ImGui_ImplOpenGL3_DestroyFontsTexture() -{ - if (g_FontTexture) - { - ImGuiIO& io = ImGui::GetIO(); - glDeleteTextures(1, &g_FontTexture); - io.Fonts->SetTexID(0); - g_FontTexture = 0; - } -} - -// If you get an error please report on github. You may try different GL context version or GLSL version. See GL<>GLSL version table at the top of this file. -static bool CheckShader(GLuint handle, const char* desc) -{ - GLint status = 0, log_length = 0; - glGetShaderiv(handle, GL_COMPILE_STATUS, &status); - glGetShaderiv(handle, GL_INFO_LOG_LENGTH, &log_length); - if ((GLboolean)status == GL_FALSE) - fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile %s!\n", desc); - if (log_length > 1) - { - ImVector buf; - buf.resize((int)(log_length + 1)); - glGetShaderInfoLog(handle, log_length, NULL, (GLchar*)buf.begin()); - fprintf(stderr, "%s\n", buf.begin()); - } - return (GLboolean)status == GL_TRUE; -} - -// If you get an error please report on GitHub. You may try different GL context version or GLSL version. -static bool CheckProgram(GLuint handle, const char* desc) -{ - GLint status = 0, log_length = 0; - glGetProgramiv(handle, GL_LINK_STATUS, &status); - glGetProgramiv(handle, GL_INFO_LOG_LENGTH, &log_length); - if ((GLboolean)status == GL_FALSE) - fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to link %s! (with GLSL '%s')\n", desc, g_GlslVersionString); - if (log_length > 1) - { - ImVector buf; - buf.resize((int)(log_length + 1)); - glGetProgramInfoLog(handle, log_length, NULL, (GLchar*)buf.begin()); - fprintf(stderr, "%s\n", buf.begin()); - } - return (GLboolean)status == GL_TRUE; -} - -bool ImGui_ImplOpenGL3_CreateDeviceObjects() -{ - // Backup GL state - GLint last_texture, last_array_buffer; - glGetIntegerv(GL_TEXTURE_BINDING_2D, &last_texture); - glGetIntegerv(GL_ARRAY_BUFFER_BINDING, &last_array_buffer); -#ifndef IMGUI_IMPL_OPENGL_ES2 - GLint last_vertex_array; - glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array); -#endif - - // Parse GLSL version string - int glsl_version = 130; - sscanf(g_GlslVersionString, "#version %d", &glsl_version); - - const GLchar* vertex_shader_glsl_120 = - "uniform mat4 ProjMtx;\n" - "attribute vec2 Position;\n" - "attribute vec2 UV;\n" - "attribute vec4 Color;\n" - "varying vec2 Frag_UV;\n" - "varying vec4 Frag_Color;\n" - "void main()\n" - "{\n" - " Frag_UV = UV;\n" - " Frag_Color = Color;\n" - " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" - "}\n"; - - const GLchar* vertex_shader_glsl_130 = - "uniform mat4 ProjMtx;\n" - "in vec2 Position;\n" - "in vec2 UV;\n" - "in vec4 Color;\n" - "out vec2 Frag_UV;\n" - "out vec4 Frag_Color;\n" - "void main()\n" - "{\n" - " Frag_UV = UV;\n" - " Frag_Color = Color;\n" - " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" - "}\n"; - - const GLchar* vertex_shader_glsl_300_es = - "precision mediump float;\n" - "layout (location = 0) in vec2 Position;\n" - "layout (location = 1) in vec2 UV;\n" - "layout (location = 2) in vec4 Color;\n" - "uniform mat4 ProjMtx;\n" - "out vec2 Frag_UV;\n" - "out vec4 Frag_Color;\n" - "void main()\n" - "{\n" - " Frag_UV = UV;\n" - " Frag_Color = Color;\n" - " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" - "}\n"; - - const GLchar* vertex_shader_glsl_410_core = - "layout (location = 0) in vec2 Position;\n" - "layout (location = 1) in vec2 UV;\n" - "layout (location = 2) in vec4 Color;\n" - "uniform mat4 ProjMtx;\n" - "out vec2 Frag_UV;\n" - "out vec4 Frag_Color;\n" - "void main()\n" - "{\n" - " Frag_UV = UV;\n" - " Frag_Color = Color;\n" - " gl_Position = ProjMtx * vec4(Position.xy,0,1);\n" - "}\n"; - - const GLchar* fragment_shader_glsl_120 = - "#ifdef GL_ES\n" - " precision mediump float;\n" - "#endif\n" - "uniform sampler2D Texture;\n" - "varying vec2 Frag_UV;\n" - "varying vec4 Frag_Color;\n" - "void main()\n" - "{\n" - " gl_FragColor = Frag_Color * texture2D(Texture, Frag_UV.st);\n" - "}\n"; - - const GLchar* fragment_shader_glsl_130 = - "uniform sampler2D Texture;\n" - "in vec2 Frag_UV;\n" - "in vec4 Frag_Color;\n" - "out vec4 Out_Color;\n" - "void main()\n" - "{\n" - " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" - "}\n"; - - const GLchar* fragment_shader_glsl_300_es = - "precision mediump float;\n" - "uniform sampler2D Texture;\n" - "in vec2 Frag_UV;\n" - "in vec4 Frag_Color;\n" - "layout (location = 0) out vec4 Out_Color;\n" - "void main()\n" - "{\n" - " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" - "}\n"; - - const GLchar* fragment_shader_glsl_410_core = - "in vec2 Frag_UV;\n" - "in vec4 Frag_Color;\n" - "uniform sampler2D Texture;\n" - "layout (location = 0) out vec4 Out_Color;\n" - "void main()\n" - "{\n" - " Out_Color = Frag_Color * texture(Texture, Frag_UV.st);\n" - "}\n"; - - // Select shaders matching our GLSL versions - const GLchar* vertex_shader = NULL; - const GLchar* fragment_shader = NULL; - if (glsl_version < 130) - { - vertex_shader = vertex_shader_glsl_120; - fragment_shader = fragment_shader_glsl_120; - } - else if (glsl_version >= 410) - { - vertex_shader = vertex_shader_glsl_410_core; - fragment_shader = fragment_shader_glsl_410_core; - } - else if (glsl_version == 300) - { - vertex_shader = vertex_shader_glsl_300_es; - fragment_shader = fragment_shader_glsl_300_es; - } - else - { - vertex_shader = vertex_shader_glsl_130; - fragment_shader = fragment_shader_glsl_130; - } - - // Create shaders - const GLchar* vertex_shader_with_version[2] = { g_GlslVersionString, vertex_shader }; - g_VertHandle = glCreateShader(GL_VERTEX_SHADER); - glShaderSource(g_VertHandle, 2, vertex_shader_with_version, NULL); - glCompileShader(g_VertHandle); - CheckShader(g_VertHandle, "vertex shader"); - - const GLchar* fragment_shader_with_version[2] = { g_GlslVersionString, fragment_shader }; - g_FragHandle = glCreateShader(GL_FRAGMENT_SHADER); - glShaderSource(g_FragHandle, 2, fragment_shader_with_version, NULL); - glCompileShader(g_FragHandle); - CheckShader(g_FragHandle, "fragment shader"); - - g_ShaderHandle = glCreateProgram(); - glAttachShader(g_ShaderHandle, g_VertHandle); - glAttachShader(g_ShaderHandle, g_FragHandle); - glLinkProgram(g_ShaderHandle); - CheckProgram(g_ShaderHandle, "shader program"); - - g_AttribLocationTex = glGetUniformLocation(g_ShaderHandle, "Texture"); - g_AttribLocationProjMtx = glGetUniformLocation(g_ShaderHandle, "ProjMtx"); - g_AttribLocationVtxPos = (GLuint)glGetAttribLocation(g_ShaderHandle, "Position"); - g_AttribLocationVtxUV = (GLuint)glGetAttribLocation(g_ShaderHandle, "UV"); - g_AttribLocationVtxColor = (GLuint)glGetAttribLocation(g_ShaderHandle, "Color"); - - // Create buffers - glGenBuffers(1, &g_VboHandle); - glGenBuffers(1, &g_ElementsHandle); - - ImGui_ImplOpenGL3_CreateFontsTexture(); - - // Restore modified GL state - glBindTexture(GL_TEXTURE_2D, last_texture); - glBindBuffer(GL_ARRAY_BUFFER, last_array_buffer); -#ifndef IMGUI_IMPL_OPENGL_ES2 - glBindVertexArray(last_vertex_array); -#endif - - return true; -} - -void ImGui_ImplOpenGL3_DestroyDeviceObjects() -{ - if (g_VboHandle) { glDeleteBuffers(1, &g_VboHandle); g_VboHandle = 0; } - if (g_ElementsHandle) { glDeleteBuffers(1, &g_ElementsHandle); g_ElementsHandle = 0; } - if (g_ShaderHandle && g_VertHandle) { glDetachShader(g_ShaderHandle, g_VertHandle); } - if (g_ShaderHandle && g_FragHandle) { glDetachShader(g_ShaderHandle, g_FragHandle); } - if (g_VertHandle) { glDeleteShader(g_VertHandle); g_VertHandle = 0; } - if (g_FragHandle) { glDeleteShader(g_FragHandle); g_FragHandle = 0; } - if (g_ShaderHandle) { glDeleteProgram(g_ShaderHandle); g_ShaderHandle = 0; } - - ImGui_ImplOpenGL3_DestroyFontsTexture(); -} diff --git a/third_party/imgui/backends/imgui_impl_opengl3.h b/third_party/imgui/backends/imgui_impl_opengl3.h deleted file mode 100644 index 8c0126d8..00000000 --- a/third_party/imgui/backends/imgui_impl_opengl3.h +++ /dev/null @@ -1,87 +0,0 @@ -// dear imgui: Renderer Backend for modern OpenGL with shaders / programmatic pipeline -// - Desktop GL: 2.x 3.x 4.x -// - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) -// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID! -// [x] Renderer: Desktop GL only: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// About Desktop OpenGL function loaders: -// Modern Desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers. -// Helper libraries are often used for this purpose! Here we are supporting a few common ones (gl3w, glew, glad). -// You may use another loader/header of your choice (glext, glLoadGen, etc.), or chose to manually implement your own. - -// About GLSL version: -// The 'glsl_version' initialization parameter should be NULL (default) or a "#version XXX" string. -// On computer platform the GLSL version default to "#version 130". On OpenGL ES 3 platform it defaults to "#version 300 es" -// Only override if your GL version doesn't handle this GLSL version. See GLSL version table at the top of imgui_impl_opengl3.cpp. - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -// Backend API -IMGUI_IMPL_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version = NULL); -IMGUI_IMPL_API void ImGui_ImplOpenGL3_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplOpenGL3_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); - -// (Optional) Called by Init/NewFrame/Shutdown -IMGUI_IMPL_API bool ImGui_ImplOpenGL3_CreateFontsTexture(); -IMGUI_IMPL_API void ImGui_ImplOpenGL3_DestroyFontsTexture(); -IMGUI_IMPL_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(); -IMGUI_IMPL_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(); - -// Specific OpenGL ES versions -//#define IMGUI_IMPL_OPENGL_ES2 // Auto-detected on Emscripten -//#define IMGUI_IMPL_OPENGL_ES3 // Auto-detected on iOS/Android - -// Attempt to auto-detect the default Desktop GL loader based on available header files. -// If auto-detection fails or doesn't select the same GL loader file as used by your application, -// you are likely to get a crash in ImGui_ImplOpenGL3_Init(). -// You can explicitly select a loader by using one of the '#define IMGUI_IMPL_OPENGL_LOADER_XXX' in imconfig.h or compiler command-line. -#if !defined(IMGUI_IMPL_OPENGL_ES2) \ - && !defined(IMGUI_IMPL_OPENGL_ES3) \ - && !defined(IMGUI_IMPL_OPENGL_LOADER_GL3W) \ - && !defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) \ - && !defined(IMGUI_IMPL_OPENGL_LOADER_GLAD) \ - && !defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2) \ - && !defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING2) \ - && !defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING3) \ - && !defined(IMGUI_IMPL_OPENGL_LOADER_CUSTOM) - -// Try to detect GLES on matching platforms -#if defined(__APPLE__) -#include "TargetConditionals.h" -#endif -#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV)) || (defined(__ANDROID__)) -#define IMGUI_IMPL_OPENGL_ES3 // iOS, Android -> GL ES 3, "#version 300 es" -#elif defined(__EMSCRIPTEN__) -#define IMGUI_IMPL_OPENGL_ES2 // Emscripten -> GL ES 2, "#version 100" - -// Otherwise try to detect supported Desktop OpenGL loaders.. -#elif defined(__has_include) -#if __has_include() - #define IMGUI_IMPL_OPENGL_LOADER_GLEW -#elif __has_include() - #define IMGUI_IMPL_OPENGL_LOADER_GLAD -#elif __has_include() - #define IMGUI_IMPL_OPENGL_LOADER_GLAD2 -#elif __has_include() - #define IMGUI_IMPL_OPENGL_LOADER_GL3W -#elif __has_include() - #define IMGUI_IMPL_OPENGL_LOADER_GLBINDING3 -#elif __has_include() - #define IMGUI_IMPL_OPENGL_LOADER_GLBINDING2 -#else - #error "Cannot detect OpenGL loader!" -#endif -#else - #define IMGUI_IMPL_OPENGL_LOADER_GL3W // Default to GL3W embedded in our repository -#endif - -#endif diff --git a/third_party/imgui/backends/imgui_impl_osx.h b/third_party/imgui/backends/imgui_impl_osx.h deleted file mode 100644 index 789ee18d..00000000 --- a/third_party/imgui/backends/imgui_impl_osx.h +++ /dev/null @@ -1,23 +0,0 @@ -// dear imgui: Platform Backend for OSX / Cocoa -// This needs to be used along with a Renderer (e.g. OpenGL2, OpenGL3, Vulkan, Metal..) -// [ALPHA] Early backend, not well tested. If you want a portable application, prefer using the GLFW or SDL platform Backends on Mac. - -// Implemented features: -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. -// [X] Platform: OSX clipboard is supported within core Dear ImGui (no specific code in this backend). -// Issues: -// [ ] Platform: Keys are all generally very broken. Best using [event keycode] and not [event characters].. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" // IMGUI_IMPL_API - -@class NSEvent; -@class NSView; - -IMGUI_IMPL_API bool ImGui_ImplOSX_Init(); -IMGUI_IMPL_API void ImGui_ImplOSX_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplOSX_NewFrame(NSView* _Nullable view); -IMGUI_IMPL_API bool ImGui_ImplOSX_HandleEvent(NSEvent* _Nonnull event, NSView* _Nullable view); diff --git a/third_party/imgui/backends/imgui_impl_osx.mm b/third_party/imgui/backends/imgui_impl_osx.mm deleted file mode 100644 index 62bba023..00000000 --- a/third_party/imgui/backends/imgui_impl_osx.mm +++ /dev/null @@ -1,323 +0,0 @@ -// dear imgui: Platform Backend for OSX / Cocoa -// This needs to be used along with a Renderer (e.g. OpenGL2, OpenGL3, Vulkan, Metal..) -// [ALPHA] Early backend, not well tested. If you want a portable application, prefer using the GLFW or SDL platform Backends on Mac. - -// Implemented features: -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. -// [X] Platform: OSX clipboard is supported within core Dear ImGui (no specific code in this backend). -// Issues: -// [ ] Platform: Keys are all generally very broken. Best using [event keycode] and not [event characters].. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_osx.h" -#import - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-01-27: Inputs: Added a fix for mouse position not being reported when mouse buttons other than left one are down. -// 2020-10-28: Inputs: Added a fix for handling keypad-enter key. -// 2020-05-25: Inputs: Added a fix for missing trackpad clicks when done with "soft tap". -// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. -// 2019-10-11: Inputs: Fix using Backspace key. -// 2019-07-21: Re-added clipboard handlers as they are not enabled by default in core imgui.cpp (reverted 2019-05-18 change). -// 2019-05-28: Inputs: Added mouse cursor shape and visibility support. -// 2019-05-18: Misc: Removed clipboard handlers as they are now supported by core imgui.cpp. -// 2019-05-11: Inputs: Don't filter character values before calling AddInputCharacter() apart from 0xF700..0xFFFF range. -// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. -// 2018-07-07: Initial version. - -// Data -static CFAbsoluteTime g_Time = 0.0; -static NSCursor* g_MouseCursors[ImGuiMouseCursor_COUNT] = {}; -static bool g_MouseCursorHidden = false; -static bool g_MouseJustPressed[ImGuiMouseButton_COUNT] = {}; -static bool g_MouseDown[ImGuiMouseButton_COUNT] = {}; - -// Undocumented methods for creating cursors. -@interface NSCursor() -+ (id)_windowResizeNorthWestSouthEastCursor; -+ (id)_windowResizeNorthEastSouthWestCursor; -+ (id)_windowResizeNorthSouthCursor; -+ (id)_windowResizeEastWestCursor; -@end - -// Functions -bool ImGui_ImplOSX_Init() -{ - ImGuiIO& io = ImGui::GetIO(); - - // Setup backend capabilities flags - io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) - //io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) - //io.BackendFlags |= ImGuiBackendFlags_PlatformHasViewports; // We can create multi-viewports on the Platform side (optional) - //io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport; // We can set io.MouseHoveredViewport correctly (optional, not easy) - io.BackendPlatformName = "imgui_impl_osx"; - - // Keyboard mapping. Dear ImGui will use those indices to peek into the io.KeyDown[] array. - const int offset_for_function_keys = 256 - 0xF700; - io.KeyMap[ImGuiKey_Tab] = '\t'; - io.KeyMap[ImGuiKey_LeftArrow] = NSLeftArrowFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_RightArrow] = NSRightArrowFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_UpArrow] = NSUpArrowFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_DownArrow] = NSDownArrowFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_PageUp] = NSPageUpFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_PageDown] = NSPageDownFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_Home] = NSHomeFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_End] = NSEndFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_Insert] = NSInsertFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_Delete] = NSDeleteFunctionKey + offset_for_function_keys; - io.KeyMap[ImGuiKey_Backspace] = 127; - io.KeyMap[ImGuiKey_Space] = 32; - io.KeyMap[ImGuiKey_Enter] = 13; - io.KeyMap[ImGuiKey_Escape] = 27; - io.KeyMap[ImGuiKey_KeyPadEnter] = 3; - io.KeyMap[ImGuiKey_A] = 'A'; - io.KeyMap[ImGuiKey_C] = 'C'; - io.KeyMap[ImGuiKey_V] = 'V'; - io.KeyMap[ImGuiKey_X] = 'X'; - io.KeyMap[ImGuiKey_Y] = 'Y'; - io.KeyMap[ImGuiKey_Z] = 'Z'; - - // Load cursors. Some of them are undocumented. - g_MouseCursorHidden = false; - g_MouseCursors[ImGuiMouseCursor_Arrow] = [NSCursor arrowCursor]; - g_MouseCursors[ImGuiMouseCursor_TextInput] = [NSCursor IBeamCursor]; - g_MouseCursors[ImGuiMouseCursor_ResizeAll] = [NSCursor closedHandCursor]; - g_MouseCursors[ImGuiMouseCursor_Hand] = [NSCursor pointingHandCursor]; - g_MouseCursors[ImGuiMouseCursor_NotAllowed] = [NSCursor operationNotAllowedCursor]; - g_MouseCursors[ImGuiMouseCursor_ResizeNS] = [NSCursor respondsToSelector:@selector(_windowResizeNorthSouthCursor)] ? [NSCursor _windowResizeNorthSouthCursor] : [NSCursor resizeUpDownCursor]; - g_MouseCursors[ImGuiMouseCursor_ResizeEW] = [NSCursor respondsToSelector:@selector(_windowResizeEastWestCursor)] ? [NSCursor _windowResizeEastWestCursor] : [NSCursor resizeLeftRightCursor]; - g_MouseCursors[ImGuiMouseCursor_ResizeNESW] = [NSCursor respondsToSelector:@selector(_windowResizeNorthEastSouthWestCursor)] ? [NSCursor _windowResizeNorthEastSouthWestCursor] : [NSCursor closedHandCursor]; - g_MouseCursors[ImGuiMouseCursor_ResizeNWSE] = [NSCursor respondsToSelector:@selector(_windowResizeNorthWestSouthEastCursor)] ? [NSCursor _windowResizeNorthWestSouthEastCursor] : [NSCursor closedHandCursor]; - - // Note that imgui.cpp also include default OSX clipboard handlers which can be enabled - // by adding '#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS' in imconfig.h and adding '-framework ApplicationServices' to your linker command-line. - // Since we are already in ObjC land here, it is easy for us to add a clipboard handler using the NSPasteboard api. - io.SetClipboardTextFn = [](void*, const char* str) -> void - { - NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; - [pasteboard declareTypes:[NSArray arrayWithObject:NSPasteboardTypeString] owner:nil]; - [pasteboard setString:[NSString stringWithUTF8String:str] forType:NSPasteboardTypeString]; - }; - - io.GetClipboardTextFn = [](void*) -> const char* - { - NSPasteboard* pasteboard = [NSPasteboard generalPasteboard]; - NSString* available = [pasteboard availableTypeFromArray: [NSArray arrayWithObject:NSPasteboardTypeString]]; - if (![available isEqualToString:NSPasteboardTypeString]) - return NULL; - - NSString* string = [pasteboard stringForType:NSPasteboardTypeString]; - if (string == nil) - return NULL; - - const char* string_c = (const char*)[string UTF8String]; - size_t string_len = strlen(string_c); - static ImVector s_clipboard; - s_clipboard.resize((int)string_len + 1); - strcpy(s_clipboard.Data, string_c); - return s_clipboard.Data; - }; - - return true; -} - -void ImGui_ImplOSX_Shutdown() -{ -} - -static void ImGui_ImplOSX_UpdateMouseCursorAndButtons() -{ - // Update buttons - ImGuiIO& io = ImGui::GetIO(); - for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) - { - // If a mouse press event came, always pass it as "mouse held this frame", so we don't miss click-release events that are shorter than 1 frame. - io.MouseDown[i] = g_MouseJustPressed[i] || g_MouseDown[i]; - g_MouseJustPressed[i] = false; - } - - if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) - return; - - ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); - if (io.MouseDrawCursor || imgui_cursor == ImGuiMouseCursor_None) - { - // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor - if (!g_MouseCursorHidden) - { - g_MouseCursorHidden = true; - [NSCursor hide]; - } - } - else - { - // Show OS mouse cursor - [g_MouseCursors[g_MouseCursors[imgui_cursor] ? imgui_cursor : ImGuiMouseCursor_Arrow] set]; - if (g_MouseCursorHidden) - { - g_MouseCursorHidden = false; - [NSCursor unhide]; - } - } -} - -void ImGui_ImplOSX_NewFrame(NSView* view) -{ - // Setup display size - ImGuiIO& io = ImGui::GetIO(); - if (view) - { - const float dpi = (float)[view.window backingScaleFactor]; - io.DisplaySize = ImVec2((float)view.bounds.size.width, (float)view.bounds.size.height); - io.DisplayFramebufferScale = ImVec2(dpi, dpi); - } - - // Setup time step - if (g_Time == 0.0) - g_Time = CFAbsoluteTimeGetCurrent(); - CFAbsoluteTime current_time = CFAbsoluteTimeGetCurrent(); - io.DeltaTime = (float)(current_time - g_Time); - g_Time = current_time; - - ImGui_ImplOSX_UpdateMouseCursorAndButtons(); -} - -static int mapCharacterToKey(int c) -{ - if (c >= 'a' && c <= 'z') - return c - 'a' + 'A'; - if (c == 25) // SHIFT+TAB -> TAB - return 9; - if (c >= 0 && c < 256) - return c; - if (c >= 0xF700 && c < 0xF700 + 256) - return c - 0xF700 + 256; - return -1; -} - -static void resetKeys() -{ - ImGuiIO& io = ImGui::GetIO(); - for (int n = 0; n < IM_ARRAYSIZE(io.KeysDown); n++) - io.KeysDown[n] = false; -} - -bool ImGui_ImplOSX_HandleEvent(NSEvent* event, NSView* view) -{ - ImGuiIO& io = ImGui::GetIO(); - - if (event.type == NSEventTypeLeftMouseDown || event.type == NSEventTypeRightMouseDown || event.type == NSEventTypeOtherMouseDown) - { - int button = (int)[event buttonNumber]; - if (button >= 0 && button < IM_ARRAYSIZE(g_MouseDown)) - g_MouseDown[button] = g_MouseJustPressed[button] = true; - return io.WantCaptureMouse; - } - - if (event.type == NSEventTypeLeftMouseUp || event.type == NSEventTypeRightMouseUp || event.type == NSEventTypeOtherMouseUp) - { - int button = (int)[event buttonNumber]; - if (button >= 0 && button < IM_ARRAYSIZE(g_MouseDown)) - g_MouseDown[button] = false; - return io.WantCaptureMouse; - } - - if (event.type == NSEventTypeMouseMoved || event.type == NSEventTypeLeftMouseDragged || event.type == NSEventTypeRightMouseDragged || event.type == NSEventTypeOtherMouseDragged) - { - NSPoint mousePoint = event.locationInWindow; - mousePoint = [view convertPoint:mousePoint fromView:nil]; - mousePoint = NSMakePoint(mousePoint.x, view.bounds.size.height - mousePoint.y); - io.MousePos = ImVec2((float)mousePoint.x, (float)mousePoint.y); - } - - if (event.type == NSEventTypeScrollWheel) - { - double wheel_dx = 0.0; - double wheel_dy = 0.0; - - #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) - { - wheel_dx = [event scrollingDeltaX]; - wheel_dy = [event scrollingDeltaY]; - if ([event hasPreciseScrollingDeltas]) - { - wheel_dx *= 0.1; - wheel_dy *= 0.1; - } - } - else - #endif // MAC_OS_X_VERSION_MAX_ALLOWED - { - wheel_dx = [event deltaX]; - wheel_dy = [event deltaY]; - } - - if (fabs(wheel_dx) > 0.0) - io.MouseWheelH += (float)wheel_dx * 0.1f; - if (fabs(wheel_dy) > 0.0) - io.MouseWheel += (float)wheel_dy * 0.1f; - return io.WantCaptureMouse; - } - - // FIXME: All the key handling is wrong and broken. Refer to GLFW's cocoa_init.mm and cocoa_window.mm. - if (event.type == NSEventTypeKeyDown) - { - NSString* str = [event characters]; - NSUInteger len = [str length]; - for (NSUInteger i = 0; i < len; i++) - { - int c = [str characterAtIndex:i]; - if (!io.KeyCtrl && !(c >= 0xF700 && c <= 0xFFFF) && c != 127) - io.AddInputCharacter((unsigned int)c); - - // We must reset in case we're pressing a sequence of special keys while keeping the command pressed - int key = mapCharacterToKey(c); - if (key != -1 && key < 256 && !io.KeyCtrl) - resetKeys(); - if (key != -1) - io.KeysDown[key] = true; - } - return io.WantCaptureKeyboard; - } - - if (event.type == NSEventTypeKeyUp) - { - NSString* str = [event characters]; - NSUInteger len = [str length]; - for (NSUInteger i = 0; i < len; i++) - { - int c = [str characterAtIndex:i]; - int key = mapCharacterToKey(c); - if (key != -1) - io.KeysDown[key] = false; - } - return io.WantCaptureKeyboard; - } - - if (event.type == NSEventTypeFlagsChanged) - { - unsigned int flags = [event modifierFlags] & NSEventModifierFlagDeviceIndependentFlagsMask; - - bool oldKeyCtrl = io.KeyCtrl; - bool oldKeyShift = io.KeyShift; - bool oldKeyAlt = io.KeyAlt; - bool oldKeySuper = io.KeySuper; - io.KeyCtrl = flags & NSEventModifierFlagControl; - io.KeyShift = flags & NSEventModifierFlagShift; - io.KeyAlt = flags & NSEventModifierFlagOption; - io.KeySuper = flags & NSEventModifierFlagCommand; - - // We must reset them as we will not receive any keyUp event if they where pressed with a modifier - if ((oldKeyShift && !io.KeyShift) || (oldKeyCtrl && !io.KeyCtrl) || (oldKeyAlt && !io.KeyAlt) || (oldKeySuper && !io.KeySuper)) - resetKeys(); - return io.WantCaptureKeyboard; - } - - return false; -} diff --git a/third_party/imgui/backends/imgui_impl_sdl.cpp b/third_party/imgui/backends/imgui_impl_sdl.cpp deleted file mode 100644 index 7ab70c57..00000000 --- a/third_party/imgui/backends/imgui_impl_sdl.cpp +++ /dev/null @@ -1,370 +0,0 @@ -// dear imgui: Platform Backend for SDL2 -// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) -// (Info: SDL2 is a cross-platform general purpose library for handling windows, inputs, graphics context creation, etc.) -// (Requires: SDL 2.0. Prefer SDL 2.0.4+ for full feature support.) - -// Implemented features: -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. -// [X] Platform: Clipboard support. -// [X] Platform: Keyboard arrays indexed using SDL_SCANCODE_* codes, e.g. ImGui::IsKeyPressed(SDL_SCANCODE_SPACE). -// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. -// Missing features: -// [ ] Platform: SDL2 handling of IME under Windows appears to be broken and it explicitly disable the regular Windows IME. You can restore Windows IME by compiling SDL with SDL_DISABLE_WINDOWS_IME. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2020-05-25: Misc: Report a zero display-size when window is minimized, to be consistent with other backends. -// 2020-02-20: Inputs: Fixed mapping for ImGuiKey_KeyPadEnter (using SDL_SCANCODE_KP_ENTER instead of SDL_SCANCODE_RETURN2). -// 2019-12-17: Inputs: On Wayland, use SDL_GetMouseState (because there is no global mouse state). -// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. -// 2019-07-21: Inputs: Added mapping for ImGuiKey_KeyPadEnter. -// 2019-04-23: Inputs: Added support for SDL_GameController (if ImGuiConfigFlags_NavEnableGamepad is set by user application). -// 2019-03-12: Misc: Preserve DisplayFramebufferScale when main window is minimized. -// 2018-12-21: Inputs: Workaround for Android/iOS which don't seem to handle focus related calls. -// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. -// 2018-11-14: Changed the signature of ImGui_ImplSDL2_ProcessEvent() to take a 'const SDL_Event*'. -// 2018-08-01: Inputs: Workaround for Emscripten which doesn't seem to handle focus related calls. -// 2018-06-29: Inputs: Added support for the ImGuiMouseCursor_Hand cursor. -// 2018-06-08: Misc: Extracted imgui_impl_sdl.cpp/.h away from the old combined SDL2+OpenGL/Vulkan examples. -// 2018-06-08: Misc: ImGui_ImplSDL2_InitForOpenGL() now takes a SDL_GLContext parameter. -// 2018-05-09: Misc: Fixed clipboard paste memory leak (we didn't call SDL_FreeMemory on the data returned by SDL_GetClipboardText). -// 2018-03-20: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors flag + honor ImGuiConfigFlags_NoMouseCursorChange flag. -// 2018-02-16: Inputs: Added support for mouse cursors, honoring ImGui::GetMouseCursor() value. -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. -// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. -// 2018-02-05: Misc: Using SDL_GetPerformanceCounter() instead of SDL_GetTicks() to be able to handle very high framerate (1000+ FPS). -// 2018-02-05: Inputs: Keyboard mapping is using scancodes everywhere instead of a confusing mixture of keycodes and scancodes. -// 2018-01-20: Inputs: Added Horizontal Mouse Wheel support. -// 2018-01-19: Inputs: When available (SDL 2.0.4+) using SDL_CaptureMouse() to retrieve coordinates outside of client area when dragging. Otherwise (SDL 2.0.3 and before) testing for SDL_WINDOW_INPUT_FOCUS instead of SDL_WINDOW_MOUSE_FOCUS. -// 2018-01-18: Inputs: Added mapping for ImGuiKey_Insert. -// 2017-08-25: Inputs: MousePos set to -FLT_MAX,-FLT_MAX when mouse is unavailable/missing (instead of -1,-1). -// 2016-10-15: Misc: Added a void* user_data parameter to Clipboard function handlers. - -#include "imgui.h" -#include "imgui_impl_sdl.h" - -// SDL -#include -#include -#if defined(__APPLE__) -#include "TargetConditionals.h" -#endif - -#define SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE SDL_VERSION_ATLEAST(2,0,4) -#define SDL_HAS_VULKAN SDL_VERSION_ATLEAST(2,0,6) - -// Data -static SDL_Window* g_Window = NULL; -static Uint64 g_Time = 0; -static bool g_MousePressed[3] = { false, false, false }; -static SDL_Cursor* g_MouseCursors[ImGuiMouseCursor_COUNT] = {}; -static char* g_ClipboardTextData = NULL; -static bool g_MouseCanUseGlobalState = true; - -static const char* ImGui_ImplSDL2_GetClipboardText(void*) -{ - if (g_ClipboardTextData) - SDL_free(g_ClipboardTextData); - g_ClipboardTextData = SDL_GetClipboardText(); - return g_ClipboardTextData; -} - -static void ImGui_ImplSDL2_SetClipboardText(void*, const char* text) -{ - SDL_SetClipboardText(text); -} - -// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. -// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. -// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. -// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. -// If you have multiple SDL events and some of them are not meant to be used by dear imgui, you may need to filter events based on their windowID field. -bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event) -{ - ImGuiIO& io = ImGui::GetIO(); - switch (event->type) - { - case SDL_MOUSEWHEEL: - { - if (event->wheel.x > 0) io.MouseWheelH += 1; - if (event->wheel.x < 0) io.MouseWheelH -= 1; - if (event->wheel.y > 0) io.MouseWheel += 1; - if (event->wheel.y < 0) io.MouseWheel -= 1; - return true; - } - case SDL_MOUSEBUTTONDOWN: - { - if (event->button.button == SDL_BUTTON_LEFT) g_MousePressed[0] = true; - if (event->button.button == SDL_BUTTON_RIGHT) g_MousePressed[1] = true; - if (event->button.button == SDL_BUTTON_MIDDLE) g_MousePressed[2] = true; - return true; - } - case SDL_TEXTINPUT: - { - io.AddInputCharactersUTF8(event->text.text); - return true; - } - case SDL_KEYDOWN: - case SDL_KEYUP: - { - int key = event->key.keysym.scancode; - IM_ASSERT(key >= 0 && key < IM_ARRAYSIZE(io.KeysDown)); - io.KeysDown[key] = (event->type == SDL_KEYDOWN); - io.KeyShift = ((SDL_GetModState() & KMOD_SHIFT) != 0); - io.KeyCtrl = ((SDL_GetModState() & KMOD_CTRL) != 0); - io.KeyAlt = ((SDL_GetModState() & KMOD_ALT) != 0); -#ifdef _WIN32 - io.KeySuper = false; -#else - io.KeySuper = ((SDL_GetModState() & KMOD_GUI) != 0); -#endif - return true; - } - } - return false; -} - -static bool ImGui_ImplSDL2_Init(SDL_Window* window) -{ - g_Window = window; - - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) - io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) - io.BackendPlatformName = "imgui_impl_sdl"; - - // Keyboard mapping. Dear ImGui will use those indices to peek into the io.KeysDown[] array. - io.KeyMap[ImGuiKey_Tab] = SDL_SCANCODE_TAB; - io.KeyMap[ImGuiKey_LeftArrow] = SDL_SCANCODE_LEFT; - io.KeyMap[ImGuiKey_RightArrow] = SDL_SCANCODE_RIGHT; - io.KeyMap[ImGuiKey_UpArrow] = SDL_SCANCODE_UP; - io.KeyMap[ImGuiKey_DownArrow] = SDL_SCANCODE_DOWN; - io.KeyMap[ImGuiKey_PageUp] = SDL_SCANCODE_PAGEUP; - io.KeyMap[ImGuiKey_PageDown] = SDL_SCANCODE_PAGEDOWN; - io.KeyMap[ImGuiKey_Home] = SDL_SCANCODE_HOME; - io.KeyMap[ImGuiKey_End] = SDL_SCANCODE_END; - io.KeyMap[ImGuiKey_Insert] = SDL_SCANCODE_INSERT; - io.KeyMap[ImGuiKey_Delete] = SDL_SCANCODE_DELETE; - io.KeyMap[ImGuiKey_Backspace] = SDL_SCANCODE_BACKSPACE; - io.KeyMap[ImGuiKey_Space] = SDL_SCANCODE_SPACE; - io.KeyMap[ImGuiKey_Enter] = SDL_SCANCODE_RETURN; - io.KeyMap[ImGuiKey_Escape] = SDL_SCANCODE_ESCAPE; - io.KeyMap[ImGuiKey_KeyPadEnter] = SDL_SCANCODE_KP_ENTER; - io.KeyMap[ImGuiKey_A] = SDL_SCANCODE_A; - io.KeyMap[ImGuiKey_C] = SDL_SCANCODE_C; - io.KeyMap[ImGuiKey_V] = SDL_SCANCODE_V; - io.KeyMap[ImGuiKey_X] = SDL_SCANCODE_X; - io.KeyMap[ImGuiKey_Y] = SDL_SCANCODE_Y; - io.KeyMap[ImGuiKey_Z] = SDL_SCANCODE_Z; - - io.SetClipboardTextFn = ImGui_ImplSDL2_SetClipboardText; - io.GetClipboardTextFn = ImGui_ImplSDL2_GetClipboardText; - io.ClipboardUserData = NULL; - - // Load mouse cursors - g_MouseCursors[ImGuiMouseCursor_Arrow] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW); - g_MouseCursors[ImGuiMouseCursor_TextInput] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_IBEAM); - g_MouseCursors[ImGuiMouseCursor_ResizeAll] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEALL); - g_MouseCursors[ImGuiMouseCursor_ResizeNS] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENS); - g_MouseCursors[ImGuiMouseCursor_ResizeEW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEWE); - g_MouseCursors[ImGuiMouseCursor_ResizeNESW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENESW); - g_MouseCursors[ImGuiMouseCursor_ResizeNWSE] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENWSE); - g_MouseCursors[ImGuiMouseCursor_Hand] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND); - g_MouseCursors[ImGuiMouseCursor_NotAllowed] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NO); - - // Check and store if we are on Wayland - g_MouseCanUseGlobalState = strncmp(SDL_GetCurrentVideoDriver(), "wayland", 7) != 0; - -#ifdef _WIN32 - SDL_SysWMinfo wmInfo; - SDL_VERSION(&wmInfo.version); - SDL_GetWindowWMInfo(window, &wmInfo); - io.ImeWindowHandle = wmInfo.info.win.window; -#else - (void)window; -#endif - - return true; -} - -bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window, void* sdl_gl_context) -{ - (void)sdl_gl_context; // Viewport branch will need this. - return ImGui_ImplSDL2_Init(window); -} - -bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window) -{ -#if !SDL_HAS_VULKAN - IM_ASSERT(0 && "Unsupported"); -#endif - return ImGui_ImplSDL2_Init(window); -} - -bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window) -{ -#if !defined(_WIN32) - IM_ASSERT(0 && "Unsupported"); -#endif - return ImGui_ImplSDL2_Init(window); -} - -bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window) -{ - return ImGui_ImplSDL2_Init(window); -} - -void ImGui_ImplSDL2_Shutdown() -{ - g_Window = NULL; - - // Destroy last known clipboard data - if (g_ClipboardTextData) - SDL_free(g_ClipboardTextData); - g_ClipboardTextData = NULL; - - // Destroy SDL mouse cursors - for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_COUNT; cursor_n++) - SDL_FreeCursor(g_MouseCursors[cursor_n]); - memset(g_MouseCursors, 0, sizeof(g_MouseCursors)); -} - -static void ImGui_ImplSDL2_UpdateMousePosAndButtons() -{ - ImGuiIO& io = ImGui::GetIO(); - - // Set OS mouse position if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) - if (io.WantSetMousePos) - SDL_WarpMouseInWindow(g_Window, (int)io.MousePos.x, (int)io.MousePos.y); - else - io.MousePos = ImVec2(-FLT_MAX, -FLT_MAX); - - int mx, my; - Uint32 mouse_buttons = SDL_GetMouseState(&mx, &my); - io.MouseDown[0] = g_MousePressed[0] || (mouse_buttons & SDL_BUTTON(SDL_BUTTON_LEFT)) != 0; // If a mouse press event came, always pass it as "mouse held this frame", so we don't miss click-release events that are shorter than 1 frame. - io.MouseDown[1] = g_MousePressed[1] || (mouse_buttons & SDL_BUTTON(SDL_BUTTON_RIGHT)) != 0; - io.MouseDown[2] = g_MousePressed[2] || (mouse_buttons & SDL_BUTTON(SDL_BUTTON_MIDDLE)) != 0; - g_MousePressed[0] = g_MousePressed[1] = g_MousePressed[2] = false; - -#if SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE && !defined(__EMSCRIPTEN__) && !defined(__ANDROID__) && !(defined(__APPLE__) && TARGET_OS_IOS) - SDL_Window* focused_window = SDL_GetKeyboardFocus(); - if (g_Window == focused_window) - { - if (g_MouseCanUseGlobalState) - { - // SDL_GetMouseState() gives mouse position seemingly based on the last window entered/focused(?) - // The creation of a new windows at runtime and SDL_CaptureMouse both seems to severely mess up with that, so we retrieve that position globally. - // Won't use this workaround when on Wayland, as there is no global mouse position. - int wx, wy; - SDL_GetWindowPosition(focused_window, &wx, &wy); - SDL_GetGlobalMouseState(&mx, &my); - mx -= wx; - my -= wy; - } - io.MousePos = ImVec2((float)mx, (float)my); - } - - // SDL_CaptureMouse() let the OS know e.g. that our imgui drag outside the SDL window boundaries shouldn't e.g. trigger the OS window resize cursor. - // The function is only supported from SDL 2.0.4 (released Jan 2016) - bool any_mouse_button_down = ImGui::IsAnyMouseDown(); - SDL_CaptureMouse(any_mouse_button_down ? SDL_TRUE : SDL_FALSE); -#else - if (SDL_GetWindowFlags(g_Window) & SDL_WINDOW_INPUT_FOCUS) - io.MousePos = ImVec2((float)mx, (float)my); -#endif -} - -static void ImGui_ImplSDL2_UpdateMouseCursor() -{ - ImGuiIO& io = ImGui::GetIO(); - if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) - return; - - ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); - if (io.MouseDrawCursor || imgui_cursor == ImGuiMouseCursor_None) - { - // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor - SDL_ShowCursor(SDL_FALSE); - } - else - { - // Show OS mouse cursor - SDL_SetCursor(g_MouseCursors[imgui_cursor] ? g_MouseCursors[imgui_cursor] : g_MouseCursors[ImGuiMouseCursor_Arrow]); - SDL_ShowCursor(SDL_TRUE); - } -} - -static void ImGui_ImplSDL2_UpdateGamepads() -{ - ImGuiIO& io = ImGui::GetIO(); - memset(io.NavInputs, 0, sizeof(io.NavInputs)); - if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) - return; - - // Get gamepad - SDL_GameController* game_controller = SDL_GameControllerOpen(0); - if (!game_controller) - { - io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; - return; - } - - // Update gamepad inputs - #define MAP_BUTTON(NAV_NO, BUTTON_NO) { io.NavInputs[NAV_NO] = (SDL_GameControllerGetButton(game_controller, BUTTON_NO) != 0) ? 1.0f : 0.0f; } - #define MAP_ANALOG(NAV_NO, AXIS_NO, V0, V1) { float vn = (float)(SDL_GameControllerGetAxis(game_controller, AXIS_NO) - V0) / (float)(V1 - V0); if (vn > 1.0f) vn = 1.0f; if (vn > 0.0f && io.NavInputs[NAV_NO] < vn) io.NavInputs[NAV_NO] = vn; } - const int thumb_dead_zone = 8000; // SDL_gamecontroller.h suggests using this value. - MAP_BUTTON(ImGuiNavInput_Activate, SDL_CONTROLLER_BUTTON_A); // Cross / A - MAP_BUTTON(ImGuiNavInput_Cancel, SDL_CONTROLLER_BUTTON_B); // Circle / B - MAP_BUTTON(ImGuiNavInput_Menu, SDL_CONTROLLER_BUTTON_X); // Square / X - MAP_BUTTON(ImGuiNavInput_Input, SDL_CONTROLLER_BUTTON_Y); // Triangle / Y - MAP_BUTTON(ImGuiNavInput_DpadLeft, SDL_CONTROLLER_BUTTON_DPAD_LEFT); // D-Pad Left - MAP_BUTTON(ImGuiNavInput_DpadRight, SDL_CONTROLLER_BUTTON_DPAD_RIGHT); // D-Pad Right - MAP_BUTTON(ImGuiNavInput_DpadUp, SDL_CONTROLLER_BUTTON_DPAD_UP); // D-Pad Up - MAP_BUTTON(ImGuiNavInput_DpadDown, SDL_CONTROLLER_BUTTON_DPAD_DOWN); // D-Pad Down - MAP_BUTTON(ImGuiNavInput_FocusPrev, SDL_CONTROLLER_BUTTON_LEFTSHOULDER); // L1 / LB - MAP_BUTTON(ImGuiNavInput_FocusNext, SDL_CONTROLLER_BUTTON_RIGHTSHOULDER); // R1 / RB - MAP_BUTTON(ImGuiNavInput_TweakSlow, SDL_CONTROLLER_BUTTON_LEFTSHOULDER); // L1 / LB - MAP_BUTTON(ImGuiNavInput_TweakFast, SDL_CONTROLLER_BUTTON_RIGHTSHOULDER); // R1 / RB - MAP_ANALOG(ImGuiNavInput_LStickLeft, SDL_CONTROLLER_AXIS_LEFTX, -thumb_dead_zone, -32768); - MAP_ANALOG(ImGuiNavInput_LStickRight, SDL_CONTROLLER_AXIS_LEFTX, +thumb_dead_zone, +32767); - MAP_ANALOG(ImGuiNavInput_LStickUp, SDL_CONTROLLER_AXIS_LEFTY, -thumb_dead_zone, -32767); - MAP_ANALOG(ImGuiNavInput_LStickDown, SDL_CONTROLLER_AXIS_LEFTY, +thumb_dead_zone, +32767); - - io.BackendFlags |= ImGuiBackendFlags_HasGamepad; - #undef MAP_BUTTON - #undef MAP_ANALOG -} - -void ImGui_ImplSDL2_NewFrame(SDL_Window* window) -{ - ImGuiIO& io = ImGui::GetIO(); - IM_ASSERT(io.Fonts->IsBuilt() && "Font atlas not built! It is generally built by the renderer backend. Missing call to renderer _NewFrame() function? e.g. ImGui_ImplOpenGL3_NewFrame()."); - - // Setup display size (every frame to accommodate for window resizing) - int w, h; - int display_w, display_h; - SDL_GetWindowSize(window, &w, &h); - if (SDL_GetWindowFlags(window) & SDL_WINDOW_MINIMIZED) - w = h = 0; - SDL_GL_GetDrawableSize(window, &display_w, &display_h); - io.DisplaySize = ImVec2((float)w, (float)h); - if (w > 0 && h > 0) - io.DisplayFramebufferScale = ImVec2((float)display_w / w, (float)display_h / h); - - // Setup time step (we don't use SDL_GetTicks() because it is using millisecond resolution) - static Uint64 frequency = SDL_GetPerformanceFrequency(); - Uint64 current_time = SDL_GetPerformanceCounter(); - io.DeltaTime = g_Time > 0 ? (float)((double)(current_time - g_Time) / frequency) : (float)(1.0f / 60.0f); - g_Time = current_time; - - ImGui_ImplSDL2_UpdateMousePosAndButtons(); - ImGui_ImplSDL2_UpdateMouseCursor(); - - // Update game controllers (if enabled and available) - ImGui_ImplSDL2_UpdateGamepads(); -} diff --git a/third_party/imgui/backends/imgui_impl_sdl.h b/third_party/imgui/backends/imgui_impl_sdl.h deleted file mode 100644 index 03e518b3..00000000 --- a/third_party/imgui/backends/imgui_impl_sdl.h +++ /dev/null @@ -1,29 +0,0 @@ -// dear imgui: Platform Backend for SDL2 -// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) -// (Info: SDL2 is a cross-platform general purpose library for handling windows, inputs, graphics context creation, etc.) - -// Implemented features: -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. -// [X] Platform: Clipboard support. -// [X] Platform: Keyboard arrays indexed using SDL_SCANCODE_* codes, e.g. ImGui::IsKeyPressed(SDL_SCANCODE_SPACE). -// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. -// Missing features: -// [ ] Platform: SDL2 handling of IME under Windows appears to be broken and it explicitly disable the regular Windows IME. You can restore Windows IME by compiling SDL with SDL_DISABLE_WINDOWS_IME. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -struct SDL_Window; -typedef union SDL_Event SDL_Event; - -IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window, void* sdl_gl_context); -IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); -IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window); -IMGUI_IMPL_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window); -IMGUI_IMPL_API void ImGui_ImplSDL2_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplSDL2_NewFrame(SDL_Window* window); -IMGUI_IMPL_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event); diff --git a/third_party/imgui/backends/imgui_impl_vulkan.cpp b/third_party/imgui/backends/imgui_impl_vulkan.cpp deleted file mode 100644 index d8c00e9b..00000000 --- a/third_party/imgui/backends/imgui_impl_vulkan.cpp +++ /dev/null @@ -1,1415 +0,0 @@ -// dear imgui: Renderer Backend for Vulkan -// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) - -// Implemented features: -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. -// Missing features: -// [ ] Renderer: User texture binding. Changes of ImTextureID aren't supported by this backend! See https://github.com/ocornut/imgui/pull/914 - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// The aim of imgui_impl_vulkan.h/.cpp is to be usable in your engine without any modification. -// IF YOU FEEL YOU NEED TO MAKE ANY CHANGE TO THIS CODE, please share them and your feedback at https://github.com/ocornut/imgui/ - -// Important note to the reader who wish to integrate imgui_impl_vulkan.cpp/.h in their own engine/app. -// - Common ImGui_ImplVulkan_XXX functions and structures are used to interface with imgui_impl_vulkan.cpp/.h. -// You will use those if you want to use this rendering backend in your engine/app. -// - Helper ImGui_ImplVulkanH_XXX functions and structures are only used by this example (main.cpp) and by -// the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. -// Read comments in imgui_impl_vulkan.h. - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: Vulkan: Change blending equation to preserve alpha in output buffer. -// 2021-01-27: Vulkan: Added support for custom function load and IMGUI_IMPL_VULKAN_NO_PROTOTYPES by using ImGui_ImplVulkan_LoadFunctions(). -// 2020-11-11: Vulkan: Added support for specifying which subpass to reference during VkPipeline creation. -// 2020-09-07: Vulkan: Added VkPipeline parameter to ImGui_ImplVulkan_RenderDrawData (default to one passed to ImGui_ImplVulkan_Init). -// 2020-05-04: Vulkan: Fixed crash if initial frame has no vertices. -// 2020-04-26: Vulkan: Fixed edge case where render callbacks wouldn't be called if the ImDrawData didn't have vertices. -// 2019-08-01: Vulkan: Added support for specifying multisample count. Set ImGui_ImplVulkan_InitInfo::MSAASamples to one of the VkSampleCountFlagBits values to use, default is non-multisampled as before. -// 2019-05-29: Vulkan: Added support for large mesh (64K+ vertices), enable ImGuiBackendFlags_RendererHasVtxOffset flag. -// 2019-04-30: Vulkan: Added support for special ImDrawCallback_ResetRenderState callback to reset render state. -// 2019-04-04: *BREAKING CHANGE*: Vulkan: Added ImageCount/MinImageCount fields in ImGui_ImplVulkan_InitInfo, required for initialization (was previously a hard #define IMGUI_VK_QUEUED_FRAMES 2). Added ImGui_ImplVulkan_SetMinImageCount(). -// 2019-04-04: Vulkan: Added VkInstance argument to ImGui_ImplVulkanH_CreateWindow() optional helper. -// 2019-04-04: Vulkan: Avoid passing negative coordinates to vkCmdSetScissor, which debug validation layers do not like. -// 2019-04-01: Vulkan: Support for 32-bit index buffer (#define ImDrawIdx unsigned int). -// 2019-02-16: Vulkan: Viewport and clipping rectangles correctly using draw_data->FramebufferScale to allow retina display. -// 2018-11-30: Misc: Setting up io.BackendRendererName so it can be displayed in the About Window. -// 2018-08-25: Vulkan: Fixed mishandled VkSurfaceCapabilitiesKHR::maxImageCount=0 case. -// 2018-06-22: Inverted the parameters to ImGui_ImplVulkan_RenderDrawData() to be consistent with other backends. -// 2018-06-08: Misc: Extracted imgui_impl_vulkan.cpp/.h away from the old combined GLFW+Vulkan example. -// 2018-06-08: Vulkan: Use draw_data->DisplayPos and draw_data->DisplaySize to setup projection matrix and clipping rectangle. -// 2018-03-03: Vulkan: Various refactor, created a couple of ImGui_ImplVulkanH_XXX helper that the example can use and that viewport support will use. -// 2018-03-01: Vulkan: Renamed ImGui_ImplVulkan_Init_Info to ImGui_ImplVulkan_InitInfo and fields to match more closely Vulkan terminology. -// 2018-02-16: Misc: Obsoleted the io.RenderDrawListsFn callback, ImGui_ImplVulkan_Render() calls ImGui_ImplVulkan_RenderDrawData() itself. -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. -// 2017-05-15: Vulkan: Fix scissor offset being negative. Fix new Vulkan validation warnings. Set required depth member for buffer image copy. -// 2016-11-13: Vulkan: Fix validation layer warnings and errors and redeclare gl_PerVertex. -// 2016-10-18: Vulkan: Add location decorators & change to use structs as in/out in glsl, update embedded spv (produced with glslangValidator -x). Null the released resources. -// 2016-08-27: Vulkan: Fix Vulkan example for use when a depth buffer is active. - -#include "imgui_impl_vulkan.h" -#include - -// Reusable buffers used for rendering 1 current in-flight frame, for ImGui_ImplVulkan_RenderDrawData() -// [Please zero-clear before use!] -struct ImGui_ImplVulkanH_FrameRenderBuffers -{ - VkDeviceMemory VertexBufferMemory; - VkDeviceMemory IndexBufferMemory; - VkDeviceSize VertexBufferSize; - VkDeviceSize IndexBufferSize; - VkBuffer VertexBuffer; - VkBuffer IndexBuffer; -}; - -// Each viewport will hold 1 ImGui_ImplVulkanH_WindowRenderBuffers -// [Please zero-clear before use!] -struct ImGui_ImplVulkanH_WindowRenderBuffers -{ - uint32_t Index; - uint32_t Count; - ImGui_ImplVulkanH_FrameRenderBuffers* FrameRenderBuffers; -}; - -// Vulkan data -static ImGui_ImplVulkan_InitInfo g_VulkanInitInfo = {}; -static VkRenderPass g_RenderPass = VK_NULL_HANDLE; -static VkDeviceSize g_BufferMemoryAlignment = 256; -static VkPipelineCreateFlags g_PipelineCreateFlags = 0x00; -static VkDescriptorSetLayout g_DescriptorSetLayout = VK_NULL_HANDLE; -static VkPipelineLayout g_PipelineLayout = VK_NULL_HANDLE; -static VkDescriptorSet g_DescriptorSet = VK_NULL_HANDLE; -static VkPipeline g_Pipeline = VK_NULL_HANDLE; -static uint32_t g_Subpass = 0; -static VkShaderModule g_ShaderModuleVert; -static VkShaderModule g_ShaderModuleFrag; -#ifdef VK_NO_PROTOTYPES -static bool g_FunctionsLoaded = false; -#else -static bool g_FunctionsLoaded = true; -#endif - -// Font data -static VkSampler g_FontSampler = VK_NULL_HANDLE; -static VkDeviceMemory g_FontMemory = VK_NULL_HANDLE; -static VkImage g_FontImage = VK_NULL_HANDLE; -static VkImageView g_FontView = VK_NULL_HANDLE; -static VkDeviceMemory g_UploadBufferMemory = VK_NULL_HANDLE; -static VkBuffer g_UploadBuffer = VK_NULL_HANDLE; - -// Render buffers -static ImGui_ImplVulkanH_WindowRenderBuffers g_MainWindowRenderBuffers; - -// Forward Declarations -bool ImGui_ImplVulkan_CreateDeviceObjects(); -void ImGui_ImplVulkan_DestroyDeviceObjects(); -void ImGui_ImplVulkanH_DestroyFrame(VkDevice device, ImGui_ImplVulkanH_Frame* fd, const VkAllocationCallbacks* allocator); -void ImGui_ImplVulkanH_DestroyFrameSemaphores(VkDevice device, ImGui_ImplVulkanH_FrameSemaphores* fsd, const VkAllocationCallbacks* allocator); -void ImGui_ImplVulkanH_DestroyFrameRenderBuffers(VkDevice device, ImGui_ImplVulkanH_FrameRenderBuffers* buffers, const VkAllocationCallbacks* allocator); -void ImGui_ImplVulkanH_DestroyWindowRenderBuffers(VkDevice device, ImGui_ImplVulkanH_WindowRenderBuffers* buffers, const VkAllocationCallbacks* allocator); -void ImGui_ImplVulkanH_CreateWindowSwapChain(VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, const VkAllocationCallbacks* allocator, int w, int h, uint32_t min_image_count); -void ImGui_ImplVulkanH_CreateWindowCommandBuffers(VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, uint32_t queue_family, const VkAllocationCallbacks* allocator); - -// Vulkan prototypes for use with custom loaders -// (see description of IMGUI_IMPL_VULKAN_NO_PROTOTYPES in imgui_impl_vulkan.h -#ifdef VK_NO_PROTOTYPES -#define IMGUI_VULKAN_FUNC_MAP(IMGUI_VULKAN_FUNC_MAP_MACRO) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkAllocateCommandBuffers) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkAllocateDescriptorSets) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkAllocateMemory) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkBindBufferMemory) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkBindImageMemory) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBindDescriptorSets) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBindIndexBuffer) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBindPipeline) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdBindVertexBuffers) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdCopyBufferToImage) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdDrawIndexed) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdPipelineBarrier) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdPushConstants) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdSetScissor) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCmdSetViewport) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateBuffer) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateCommandPool) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateDescriptorSetLayout) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateFence) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateFramebuffer) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateGraphicsPipelines) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateImage) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateImageView) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreatePipelineLayout) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateRenderPass) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateSampler) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateSemaphore) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateShaderModule) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkCreateSwapchainKHR) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyBuffer) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyCommandPool) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyDescriptorSetLayout) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyFence) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyFramebuffer) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyImage) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyImageView) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyPipeline) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyPipelineLayout) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyRenderPass) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroySampler) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroySemaphore) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroyShaderModule) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroySurfaceKHR) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDestroySwapchainKHR) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkDeviceWaitIdle) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkFlushMappedMemoryRanges) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkFreeCommandBuffers) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkFreeMemory) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetBufferMemoryRequirements) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetImageMemoryRequirements) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceMemoryProperties) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceSurfaceCapabilitiesKHR) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceSurfaceFormatsKHR) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetPhysicalDeviceSurfacePresentModesKHR) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkGetSwapchainImagesKHR) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkMapMemory) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkUnmapMemory) \ - IMGUI_VULKAN_FUNC_MAP_MACRO(vkUpdateDescriptorSets) - -// Define function pointers -#define IMGUI_VULKAN_FUNC_DEF(func) static PFN_##func func; -IMGUI_VULKAN_FUNC_MAP(IMGUI_VULKAN_FUNC_DEF) -#undef IMGUI_VULKAN_FUNC_DEF -#endif // VK_NO_PROTOTYPES - -//----------------------------------------------------------------------------- -// SHADERS -//----------------------------------------------------------------------------- - -// glsl_shader.vert, compiled with: -// # glslangValidator -V -x -o glsl_shader.vert.u32 glsl_shader.vert -/* -#version 450 core -layout(location = 0) in vec2 aPos; -layout(location = 1) in vec2 aUV; -layout(location = 2) in vec4 aColor; -layout(push_constant) uniform uPushConstant { vec2 uScale; vec2 uTranslate; } pc; - -out gl_PerVertex { vec4 gl_Position; }; -layout(location = 0) out struct { vec4 Color; vec2 UV; } Out; - -void main() -{ - Out.Color = aColor; - Out.UV = aUV; - gl_Position = vec4(aPos * pc.uScale + pc.uTranslate, 0, 1); -} -*/ -static uint32_t __glsl_shader_vert_spv[] = -{ - 0x07230203,0x00010000,0x00080001,0x0000002e,0x00000000,0x00020011,0x00000001,0x0006000b, - 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, - 0x000a000f,0x00000000,0x00000004,0x6e69616d,0x00000000,0x0000000b,0x0000000f,0x00000015, - 0x0000001b,0x0000001c,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, - 0x00000000,0x00030005,0x00000009,0x00000000,0x00050006,0x00000009,0x00000000,0x6f6c6f43, - 0x00000072,0x00040006,0x00000009,0x00000001,0x00005655,0x00030005,0x0000000b,0x0074754f, - 0x00040005,0x0000000f,0x6c6f4361,0x0000726f,0x00030005,0x00000015,0x00565561,0x00060005, - 0x00000019,0x505f6c67,0x65567265,0x78657472,0x00000000,0x00060006,0x00000019,0x00000000, - 0x505f6c67,0x7469736f,0x006e6f69,0x00030005,0x0000001b,0x00000000,0x00040005,0x0000001c, - 0x736f5061,0x00000000,0x00060005,0x0000001e,0x73755075,0x6e6f4368,0x6e617473,0x00000074, - 0x00050006,0x0000001e,0x00000000,0x61635375,0x0000656c,0x00060006,0x0000001e,0x00000001, - 0x61725475,0x616c736e,0x00006574,0x00030005,0x00000020,0x00006370,0x00040047,0x0000000b, - 0x0000001e,0x00000000,0x00040047,0x0000000f,0x0000001e,0x00000002,0x00040047,0x00000015, - 0x0000001e,0x00000001,0x00050048,0x00000019,0x00000000,0x0000000b,0x00000000,0x00030047, - 0x00000019,0x00000002,0x00040047,0x0000001c,0x0000001e,0x00000000,0x00050048,0x0000001e, - 0x00000000,0x00000023,0x00000000,0x00050048,0x0000001e,0x00000001,0x00000023,0x00000008, - 0x00030047,0x0000001e,0x00000002,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002, - 0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,0x00040017, - 0x00000008,0x00000006,0x00000002,0x0004001e,0x00000009,0x00000007,0x00000008,0x00040020, - 0x0000000a,0x00000003,0x00000009,0x0004003b,0x0000000a,0x0000000b,0x00000003,0x00040015, - 0x0000000c,0x00000020,0x00000001,0x0004002b,0x0000000c,0x0000000d,0x00000000,0x00040020, - 0x0000000e,0x00000001,0x00000007,0x0004003b,0x0000000e,0x0000000f,0x00000001,0x00040020, - 0x00000011,0x00000003,0x00000007,0x0004002b,0x0000000c,0x00000013,0x00000001,0x00040020, - 0x00000014,0x00000001,0x00000008,0x0004003b,0x00000014,0x00000015,0x00000001,0x00040020, - 0x00000017,0x00000003,0x00000008,0x0003001e,0x00000019,0x00000007,0x00040020,0x0000001a, - 0x00000003,0x00000019,0x0004003b,0x0000001a,0x0000001b,0x00000003,0x0004003b,0x00000014, - 0x0000001c,0x00000001,0x0004001e,0x0000001e,0x00000008,0x00000008,0x00040020,0x0000001f, - 0x00000009,0x0000001e,0x0004003b,0x0000001f,0x00000020,0x00000009,0x00040020,0x00000021, - 0x00000009,0x00000008,0x0004002b,0x00000006,0x00000028,0x00000000,0x0004002b,0x00000006, - 0x00000029,0x3f800000,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8, - 0x00000005,0x0004003d,0x00000007,0x00000010,0x0000000f,0x00050041,0x00000011,0x00000012, - 0x0000000b,0x0000000d,0x0003003e,0x00000012,0x00000010,0x0004003d,0x00000008,0x00000016, - 0x00000015,0x00050041,0x00000017,0x00000018,0x0000000b,0x00000013,0x0003003e,0x00000018, - 0x00000016,0x0004003d,0x00000008,0x0000001d,0x0000001c,0x00050041,0x00000021,0x00000022, - 0x00000020,0x0000000d,0x0004003d,0x00000008,0x00000023,0x00000022,0x00050085,0x00000008, - 0x00000024,0x0000001d,0x00000023,0x00050041,0x00000021,0x00000025,0x00000020,0x00000013, - 0x0004003d,0x00000008,0x00000026,0x00000025,0x00050081,0x00000008,0x00000027,0x00000024, - 0x00000026,0x00050051,0x00000006,0x0000002a,0x00000027,0x00000000,0x00050051,0x00000006, - 0x0000002b,0x00000027,0x00000001,0x00070050,0x00000007,0x0000002c,0x0000002a,0x0000002b, - 0x00000028,0x00000029,0x00050041,0x00000011,0x0000002d,0x0000001b,0x0000000d,0x0003003e, - 0x0000002d,0x0000002c,0x000100fd,0x00010038 -}; - -// glsl_shader.frag, compiled with: -// # glslangValidator -V -x -o glsl_shader.frag.u32 glsl_shader.frag -/* -#version 450 core -layout(location = 0) out vec4 fColor; -layout(set=0, binding=0) uniform sampler2D sTexture; -layout(location = 0) in struct { vec4 Color; vec2 UV; } In; -void main() -{ - fColor = In.Color * texture(sTexture, In.UV.st); -} -*/ -static uint32_t __glsl_shader_frag_spv[] = -{ - 0x07230203,0x00010000,0x00080001,0x0000001e,0x00000000,0x00020011,0x00000001,0x0006000b, - 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, - 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000009,0x0000000d,0x00030010, - 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, - 0x00000000,0x00040005,0x00000009,0x6c6f4366,0x0000726f,0x00030005,0x0000000b,0x00000000, - 0x00050006,0x0000000b,0x00000000,0x6f6c6f43,0x00000072,0x00040006,0x0000000b,0x00000001, - 0x00005655,0x00030005,0x0000000d,0x00006e49,0x00050005,0x00000016,0x78655473,0x65727574, - 0x00000000,0x00040047,0x00000009,0x0000001e,0x00000000,0x00040047,0x0000000d,0x0000001e, - 0x00000000,0x00040047,0x00000016,0x00000022,0x00000000,0x00040047,0x00000016,0x00000021, - 0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006, - 0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,0x00040020,0x00000008,0x00000003, - 0x00000007,0x0004003b,0x00000008,0x00000009,0x00000003,0x00040017,0x0000000a,0x00000006, - 0x00000002,0x0004001e,0x0000000b,0x00000007,0x0000000a,0x00040020,0x0000000c,0x00000001, - 0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000001,0x00040015,0x0000000e,0x00000020, - 0x00000001,0x0004002b,0x0000000e,0x0000000f,0x00000000,0x00040020,0x00000010,0x00000001, - 0x00000007,0x00090019,0x00000013,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000, - 0x00000001,0x00000000,0x0003001b,0x00000014,0x00000013,0x00040020,0x00000015,0x00000000, - 0x00000014,0x0004003b,0x00000015,0x00000016,0x00000000,0x0004002b,0x0000000e,0x00000018, - 0x00000001,0x00040020,0x00000019,0x00000001,0x0000000a,0x00050036,0x00000002,0x00000004, - 0x00000000,0x00000003,0x000200f8,0x00000005,0x00050041,0x00000010,0x00000011,0x0000000d, - 0x0000000f,0x0004003d,0x00000007,0x00000012,0x00000011,0x0004003d,0x00000014,0x00000017, - 0x00000016,0x00050041,0x00000019,0x0000001a,0x0000000d,0x00000018,0x0004003d,0x0000000a, - 0x0000001b,0x0000001a,0x00050057,0x00000007,0x0000001c,0x00000017,0x0000001b,0x00050085, - 0x00000007,0x0000001d,0x00000012,0x0000001c,0x0003003e,0x00000009,0x0000001d,0x000100fd, - 0x00010038 -}; - -//----------------------------------------------------------------------------- -// FUNCTIONS -//----------------------------------------------------------------------------- - -static uint32_t ImGui_ImplVulkan_MemoryType(VkMemoryPropertyFlags properties, uint32_t type_bits) -{ - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - VkPhysicalDeviceMemoryProperties prop; - vkGetPhysicalDeviceMemoryProperties(v->PhysicalDevice, &prop); - for (uint32_t i = 0; i < prop.memoryTypeCount; i++) - if ((prop.memoryTypes[i].propertyFlags & properties) == properties && type_bits & (1 << i)) - return i; - return 0xFFFFFFFF; // Unable to find memoryType -} - -static void check_vk_result(VkResult err) -{ - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - if (v->CheckVkResultFn) - v->CheckVkResultFn(err); -} - -static void CreateOrResizeBuffer(VkBuffer& buffer, VkDeviceMemory& buffer_memory, VkDeviceSize& p_buffer_size, size_t new_size, VkBufferUsageFlagBits usage) -{ - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - VkResult err; - if (buffer != VK_NULL_HANDLE) - vkDestroyBuffer(v->Device, buffer, v->Allocator); - if (buffer_memory != VK_NULL_HANDLE) - vkFreeMemory(v->Device, buffer_memory, v->Allocator); - - VkDeviceSize vertex_buffer_size_aligned = ((new_size - 1) / g_BufferMemoryAlignment + 1) * g_BufferMemoryAlignment; - VkBufferCreateInfo buffer_info = {}; - buffer_info.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; - buffer_info.size = vertex_buffer_size_aligned; - buffer_info.usage = usage; - buffer_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; - err = vkCreateBuffer(v->Device, &buffer_info, v->Allocator, &buffer); - check_vk_result(err); - - VkMemoryRequirements req; - vkGetBufferMemoryRequirements(v->Device, buffer, &req); - g_BufferMemoryAlignment = (g_BufferMemoryAlignment > req.alignment) ? g_BufferMemoryAlignment : req.alignment; - VkMemoryAllocateInfo alloc_info = {}; - alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; - alloc_info.allocationSize = req.size; - alloc_info.memoryTypeIndex = ImGui_ImplVulkan_MemoryType(VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT, req.memoryTypeBits); - err = vkAllocateMemory(v->Device, &alloc_info, v->Allocator, &buffer_memory); - check_vk_result(err); - - err = vkBindBufferMemory(v->Device, buffer, buffer_memory, 0); - check_vk_result(err); - p_buffer_size = new_size; -} - -static void ImGui_ImplVulkan_SetupRenderState(ImDrawData* draw_data, VkPipeline pipeline, VkCommandBuffer command_buffer, ImGui_ImplVulkanH_FrameRenderBuffers* rb, int fb_width, int fb_height) -{ - // Bind pipeline and descriptor sets: - { - vkCmdBindPipeline(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline); - VkDescriptorSet desc_set[1] = { g_DescriptorSet }; - vkCmdBindDescriptorSets(command_buffer, VK_PIPELINE_BIND_POINT_GRAPHICS, g_PipelineLayout, 0, 1, desc_set, 0, NULL); - } - - // Bind Vertex And Index Buffer: - if (draw_data->TotalVtxCount > 0) - { - VkBuffer vertex_buffers[1] = { rb->VertexBuffer }; - VkDeviceSize vertex_offset[1] = { 0 }; - vkCmdBindVertexBuffers(command_buffer, 0, 1, vertex_buffers, vertex_offset); - vkCmdBindIndexBuffer(command_buffer, rb->IndexBuffer, 0, sizeof(ImDrawIdx) == 2 ? VK_INDEX_TYPE_UINT16 : VK_INDEX_TYPE_UINT32); - } - - // Setup viewport: - { - VkViewport viewport; - viewport.x = 0; - viewport.y = 0; - viewport.width = (float)fb_width; - viewport.height = (float)fb_height; - viewport.minDepth = 0.0f; - viewport.maxDepth = 1.0f; - vkCmdSetViewport(command_buffer, 0, 1, &viewport); - } - - // Setup scale and translation: - // Our visible imgui space lies from draw_data->DisplayPps (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). DisplayPos is (0,0) for single viewport apps. - { - float scale[2]; - scale[0] = 2.0f / draw_data->DisplaySize.x; - scale[1] = 2.0f / draw_data->DisplaySize.y; - float translate[2]; - translate[0] = -1.0f - draw_data->DisplayPos.x * scale[0]; - translate[1] = -1.0f - draw_data->DisplayPos.y * scale[1]; - vkCmdPushConstants(command_buffer, g_PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) * 0, sizeof(float) * 2, scale); - vkCmdPushConstants(command_buffer, g_PipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, sizeof(float) * 2, sizeof(float) * 2, translate); - } -} - -// Render function -void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipeline pipeline) -{ - // Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates) - int fb_width = (int)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); - int fb_height = (int)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); - if (fb_width <= 0 || fb_height <= 0) - return; - - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - if (pipeline == VK_NULL_HANDLE) - pipeline = g_Pipeline; - - // Allocate array to store enough vertex/index buffers - ImGui_ImplVulkanH_WindowRenderBuffers* wrb = &g_MainWindowRenderBuffers; - if (wrb->FrameRenderBuffers == NULL) - { - wrb->Index = 0; - wrb->Count = v->ImageCount; - wrb->FrameRenderBuffers = (ImGui_ImplVulkanH_FrameRenderBuffers*)IM_ALLOC(sizeof(ImGui_ImplVulkanH_FrameRenderBuffers) * wrb->Count); - memset(wrb->FrameRenderBuffers, 0, sizeof(ImGui_ImplVulkanH_FrameRenderBuffers) * wrb->Count); - } - IM_ASSERT(wrb->Count == v->ImageCount); - wrb->Index = (wrb->Index + 1) % wrb->Count; - ImGui_ImplVulkanH_FrameRenderBuffers* rb = &wrb->FrameRenderBuffers[wrb->Index]; - - if (draw_data->TotalVtxCount > 0) - { - // Create or resize the vertex/index buffers - size_t vertex_size = draw_data->TotalVtxCount * sizeof(ImDrawVert); - size_t index_size = draw_data->TotalIdxCount * sizeof(ImDrawIdx); - if (rb->VertexBuffer == VK_NULL_HANDLE || rb->VertexBufferSize < vertex_size) - CreateOrResizeBuffer(rb->VertexBuffer, rb->VertexBufferMemory, rb->VertexBufferSize, vertex_size, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT); - if (rb->IndexBuffer == VK_NULL_HANDLE || rb->IndexBufferSize < index_size) - CreateOrResizeBuffer(rb->IndexBuffer, rb->IndexBufferMemory, rb->IndexBufferSize, index_size, VK_BUFFER_USAGE_INDEX_BUFFER_BIT); - - // Upload vertex/index data into a single contiguous GPU buffer - ImDrawVert* vtx_dst = NULL; - ImDrawIdx* idx_dst = NULL; - VkResult err = vkMapMemory(v->Device, rb->VertexBufferMemory, 0, vertex_size, 0, (void**)(&vtx_dst)); - check_vk_result(err); - err = vkMapMemory(v->Device, rb->IndexBufferMemory, 0, index_size, 0, (void**)(&idx_dst)); - check_vk_result(err); - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); - memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); - vtx_dst += cmd_list->VtxBuffer.Size; - idx_dst += cmd_list->IdxBuffer.Size; - } - VkMappedMemoryRange range[2] = {}; - range[0].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; - range[0].memory = rb->VertexBufferMemory; - range[0].size = VK_WHOLE_SIZE; - range[1].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; - range[1].memory = rb->IndexBufferMemory; - range[1].size = VK_WHOLE_SIZE; - err = vkFlushMappedMemoryRanges(v->Device, 2, range); - check_vk_result(err); - vkUnmapMemory(v->Device, rb->VertexBufferMemory); - vkUnmapMemory(v->Device, rb->IndexBufferMemory); - } - - // Setup desired Vulkan state - ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); - - // Will project scissor/clipping rectangles into framebuffer space - ImVec2 clip_off = draw_data->DisplayPos; // (0,0) unless using multi-viewports - ImVec2 clip_scale = draw_data->FramebufferScale; // (1,1) unless using retina display which are often (2,2) - - // Render command lists - // (Because we merged all buffers into a single one, we maintain our own offset into them) - int global_vtx_offset = 0; - int global_idx_offset = 0; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback != NULL) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplVulkan_SetupRenderState(draw_data, pipeline, command_buffer, rb, fb_width, fb_height); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Project scissor/clipping rectangles into framebuffer space - ImVec4 clip_rect; - clip_rect.x = (pcmd->ClipRect.x - clip_off.x) * clip_scale.x; - clip_rect.y = (pcmd->ClipRect.y - clip_off.y) * clip_scale.y; - clip_rect.z = (pcmd->ClipRect.z - clip_off.x) * clip_scale.x; - clip_rect.w = (pcmd->ClipRect.w - clip_off.y) * clip_scale.y; - - if (clip_rect.x < fb_width && clip_rect.y < fb_height && clip_rect.z >= 0.0f && clip_rect.w >= 0.0f) - { - // Negative offsets are illegal for vkCmdSetScissor - if (clip_rect.x < 0.0f) - clip_rect.x = 0.0f; - if (clip_rect.y < 0.0f) - clip_rect.y = 0.0f; - - // Apply scissor/clipping rectangle - VkRect2D scissor; - scissor.offset.x = (int32_t)(clip_rect.x); - scissor.offset.y = (int32_t)(clip_rect.y); - scissor.extent.width = (uint32_t)(clip_rect.z - clip_rect.x); - scissor.extent.height = (uint32_t)(clip_rect.w - clip_rect.y); - vkCmdSetScissor(command_buffer, 0, 1, &scissor); - - // Draw - vkCmdDrawIndexed(command_buffer, pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset, 0); - } - } - } - global_idx_offset += cmd_list->IdxBuffer.Size; - global_vtx_offset += cmd_list->VtxBuffer.Size; - } -} - -bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer) -{ - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - ImGuiIO& io = ImGui::GetIO(); - - unsigned char* pixels; - int width, height; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - size_t upload_size = width * height * 4 * sizeof(char); - - VkResult err; - - // Create the Image: - { - VkImageCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; - info.imageType = VK_IMAGE_TYPE_2D; - info.format = VK_FORMAT_R8G8B8A8_UNORM; - info.extent.width = width; - info.extent.height = height; - info.extent.depth = 1; - info.mipLevels = 1; - info.arrayLayers = 1; - info.samples = VK_SAMPLE_COUNT_1_BIT; - info.tiling = VK_IMAGE_TILING_OPTIMAL; - info.usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; - info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; - info.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; - err = vkCreateImage(v->Device, &info, v->Allocator, &g_FontImage); - check_vk_result(err); - VkMemoryRequirements req; - vkGetImageMemoryRequirements(v->Device, g_FontImage, &req); - VkMemoryAllocateInfo alloc_info = {}; - alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; - alloc_info.allocationSize = req.size; - alloc_info.memoryTypeIndex = ImGui_ImplVulkan_MemoryType(VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, req.memoryTypeBits); - err = vkAllocateMemory(v->Device, &alloc_info, v->Allocator, &g_FontMemory); - check_vk_result(err); - err = vkBindImageMemory(v->Device, g_FontImage, g_FontMemory, 0); - check_vk_result(err); - } - - // Create the Image View: - { - VkImageViewCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO; - info.image = g_FontImage; - info.viewType = VK_IMAGE_VIEW_TYPE_2D; - info.format = VK_FORMAT_R8G8B8A8_UNORM; - info.subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; - info.subresourceRange.levelCount = 1; - info.subresourceRange.layerCount = 1; - err = vkCreateImageView(v->Device, &info, v->Allocator, &g_FontView); - check_vk_result(err); - } - - // Update the Descriptor Set: - { - VkDescriptorImageInfo desc_image[1] = {}; - desc_image[0].sampler = g_FontSampler; - desc_image[0].imageView = g_FontView; - desc_image[0].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; - VkWriteDescriptorSet write_desc[1] = {}; - write_desc[0].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; - write_desc[0].dstSet = g_DescriptorSet; - write_desc[0].descriptorCount = 1; - write_desc[0].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; - write_desc[0].pImageInfo = desc_image; - vkUpdateDescriptorSets(v->Device, 1, write_desc, 0, NULL); - } - - // Create the Upload Buffer: - { - VkBufferCreateInfo buffer_info = {}; - buffer_info.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO; - buffer_info.size = upload_size; - buffer_info.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT; - buffer_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE; - err = vkCreateBuffer(v->Device, &buffer_info, v->Allocator, &g_UploadBuffer); - check_vk_result(err); - VkMemoryRequirements req; - vkGetBufferMemoryRequirements(v->Device, g_UploadBuffer, &req); - g_BufferMemoryAlignment = (g_BufferMemoryAlignment > req.alignment) ? g_BufferMemoryAlignment : req.alignment; - VkMemoryAllocateInfo alloc_info = {}; - alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; - alloc_info.allocationSize = req.size; - alloc_info.memoryTypeIndex = ImGui_ImplVulkan_MemoryType(VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT, req.memoryTypeBits); - err = vkAllocateMemory(v->Device, &alloc_info, v->Allocator, &g_UploadBufferMemory); - check_vk_result(err); - err = vkBindBufferMemory(v->Device, g_UploadBuffer, g_UploadBufferMemory, 0); - check_vk_result(err); - } - - // Upload to Buffer: - { - char* map = NULL; - err = vkMapMemory(v->Device, g_UploadBufferMemory, 0, upload_size, 0, (void**)(&map)); - check_vk_result(err); - memcpy(map, pixels, upload_size); - VkMappedMemoryRange range[1] = {}; - range[0].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; - range[0].memory = g_UploadBufferMemory; - range[0].size = upload_size; - err = vkFlushMappedMemoryRanges(v->Device, 1, range); - check_vk_result(err); - vkUnmapMemory(v->Device, g_UploadBufferMemory); - } - - // Copy to Image: - { - VkImageMemoryBarrier copy_barrier[1] = {}; - copy_barrier[0].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; - copy_barrier[0].dstAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; - copy_barrier[0].oldLayout = VK_IMAGE_LAYOUT_UNDEFINED; - copy_barrier[0].newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; - copy_barrier[0].srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; - copy_barrier[0].dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; - copy_barrier[0].image = g_FontImage; - copy_barrier[0].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; - copy_barrier[0].subresourceRange.levelCount = 1; - copy_barrier[0].subresourceRange.layerCount = 1; - vkCmdPipelineBarrier(command_buffer, VK_PIPELINE_STAGE_HOST_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, NULL, 0, NULL, 1, copy_barrier); - - VkBufferImageCopy region = {}; - region.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; - region.imageSubresource.layerCount = 1; - region.imageExtent.width = width; - region.imageExtent.height = height; - region.imageExtent.depth = 1; - vkCmdCopyBufferToImage(command_buffer, g_UploadBuffer, g_FontImage, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, ®ion); - - VkImageMemoryBarrier use_barrier[1] = {}; - use_barrier[0].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; - use_barrier[0].srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; - use_barrier[0].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; - use_barrier[0].oldLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; - use_barrier[0].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; - use_barrier[0].srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; - use_barrier[0].dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; - use_barrier[0].image = g_FontImage; - use_barrier[0].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; - use_barrier[0].subresourceRange.levelCount = 1; - use_barrier[0].subresourceRange.layerCount = 1; - vkCmdPipelineBarrier(command_buffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, 0, 0, NULL, 0, NULL, 1, use_barrier); - } - - // Store our identifier - io.Fonts->SetTexID((ImTextureID)(intptr_t)g_FontImage); - - return true; -} - -static void ImGui_ImplVulkan_CreateShaderModules(VkDevice device, const VkAllocationCallbacks* allocator) -{ - // Create the shader modules - if (g_ShaderModuleVert == NULL) - { - VkShaderModuleCreateInfo vert_info = {}; - vert_info.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; - vert_info.codeSize = sizeof(__glsl_shader_vert_spv); - vert_info.pCode = (uint32_t*)__glsl_shader_vert_spv; - VkResult err = vkCreateShaderModule(device, &vert_info, allocator, &g_ShaderModuleVert); - check_vk_result(err); - } - if (g_ShaderModuleFrag == NULL) - { - VkShaderModuleCreateInfo frag_info = {}; - frag_info.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; - frag_info.codeSize = sizeof(__glsl_shader_frag_spv); - frag_info.pCode = (uint32_t*)__glsl_shader_frag_spv; - VkResult err = vkCreateShaderModule(device, &frag_info, allocator, &g_ShaderModuleFrag); - check_vk_result(err); - } -} - -static void ImGui_ImplVulkan_CreateFontSampler(VkDevice device, const VkAllocationCallbacks* allocator) -{ - if (g_FontSampler) - return; - - VkSamplerCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; - info.magFilter = VK_FILTER_LINEAR; - info.minFilter = VK_FILTER_LINEAR; - info.mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR; - info.addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT; - info.addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT; - info.addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT; - info.minLod = -1000; - info.maxLod = 1000; - info.maxAnisotropy = 1.0f; - VkResult err = vkCreateSampler(device, &info, allocator, &g_FontSampler); - check_vk_result(err); -} - -static void ImGui_ImplVulkan_CreateDescriptorSetLayout(VkDevice device, const VkAllocationCallbacks* allocator) -{ - if (g_DescriptorSetLayout) - return; - - ImGui_ImplVulkan_CreateFontSampler(device, allocator); - VkSampler sampler[1] = { g_FontSampler }; - VkDescriptorSetLayoutBinding binding[1] = {}; - binding[0].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; - binding[0].descriptorCount = 1; - binding[0].stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT; - binding[0].pImmutableSamplers = sampler; - VkDescriptorSetLayoutCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO; - info.bindingCount = 1; - info.pBindings = binding; - VkResult err = vkCreateDescriptorSetLayout(device, &info, allocator, &g_DescriptorSetLayout); - check_vk_result(err); -} - -static void ImGui_ImplVulkan_CreatePipelineLayout(VkDevice device, const VkAllocationCallbacks* allocator) -{ - if (g_PipelineLayout) - return; - - // Constants: we are using 'vec2 offset' and 'vec2 scale' instead of a full 3d projection matrix - ImGui_ImplVulkan_CreateDescriptorSetLayout(device, allocator); - VkPushConstantRange push_constants[1] = {}; - push_constants[0].stageFlags = VK_SHADER_STAGE_VERTEX_BIT; - push_constants[0].offset = sizeof(float) * 0; - push_constants[0].size = sizeof(float) * 4; - VkDescriptorSetLayout set_layout[1] = { g_DescriptorSetLayout }; - VkPipelineLayoutCreateInfo layout_info = {}; - layout_info.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO; - layout_info.setLayoutCount = 1; - layout_info.pSetLayouts = set_layout; - layout_info.pushConstantRangeCount = 1; - layout_info.pPushConstantRanges = push_constants; - VkResult err = vkCreatePipelineLayout(device, &layout_info, allocator, &g_PipelineLayout); - check_vk_result(err); -} - -static void ImGui_ImplVulkan_CreatePipeline(VkDevice device, const VkAllocationCallbacks* allocator, VkPipelineCache pipelineCache, VkRenderPass renderPass, VkSampleCountFlagBits MSAASamples, VkPipeline* pipeline, uint32_t subpass) -{ - ImGui_ImplVulkan_CreateShaderModules(device, allocator); - - VkPipelineShaderStageCreateInfo stage[2] = {}; - stage[0].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; - stage[0].stage = VK_SHADER_STAGE_VERTEX_BIT; - stage[0].module = g_ShaderModuleVert; - stage[0].pName = "main"; - stage[1].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; - stage[1].stage = VK_SHADER_STAGE_FRAGMENT_BIT; - stage[1].module = g_ShaderModuleFrag; - stage[1].pName = "main"; - - VkVertexInputBindingDescription binding_desc[1] = {}; - binding_desc[0].stride = sizeof(ImDrawVert); - binding_desc[0].inputRate = VK_VERTEX_INPUT_RATE_VERTEX; - - VkVertexInputAttributeDescription attribute_desc[3] = {}; - attribute_desc[0].location = 0; - attribute_desc[0].binding = binding_desc[0].binding; - attribute_desc[0].format = VK_FORMAT_R32G32_SFLOAT; - attribute_desc[0].offset = IM_OFFSETOF(ImDrawVert, pos); - attribute_desc[1].location = 1; - attribute_desc[1].binding = binding_desc[0].binding; - attribute_desc[1].format = VK_FORMAT_R32G32_SFLOAT; - attribute_desc[1].offset = IM_OFFSETOF(ImDrawVert, uv); - attribute_desc[2].location = 2; - attribute_desc[2].binding = binding_desc[0].binding; - attribute_desc[2].format = VK_FORMAT_R8G8B8A8_UNORM; - attribute_desc[2].offset = IM_OFFSETOF(ImDrawVert, col); - - VkPipelineVertexInputStateCreateInfo vertex_info = {}; - vertex_info.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO; - vertex_info.vertexBindingDescriptionCount = 1; - vertex_info.pVertexBindingDescriptions = binding_desc; - vertex_info.vertexAttributeDescriptionCount = 3; - vertex_info.pVertexAttributeDescriptions = attribute_desc; - - VkPipelineInputAssemblyStateCreateInfo ia_info = {}; - ia_info.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO; - ia_info.topology = VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; - - VkPipelineViewportStateCreateInfo viewport_info = {}; - viewport_info.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO; - viewport_info.viewportCount = 1; - viewport_info.scissorCount = 1; - - VkPipelineRasterizationStateCreateInfo raster_info = {}; - raster_info.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; - raster_info.polygonMode = VK_POLYGON_MODE_FILL; - raster_info.cullMode = VK_CULL_MODE_NONE; - raster_info.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE; - raster_info.lineWidth = 1.0f; - - VkPipelineMultisampleStateCreateInfo ms_info = {}; - ms_info.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO; - ms_info.rasterizationSamples = (MSAASamples != 0) ? MSAASamples : VK_SAMPLE_COUNT_1_BIT; - - VkPipelineColorBlendAttachmentState color_attachment[1] = {}; - color_attachment[0].blendEnable = VK_TRUE; - color_attachment[0].srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA; - color_attachment[0].dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; - color_attachment[0].colorBlendOp = VK_BLEND_OP_ADD; - color_attachment[0].srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE; - color_attachment[0].dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; - color_attachment[0].alphaBlendOp = VK_BLEND_OP_ADD; - color_attachment[0].colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT; - - VkPipelineDepthStencilStateCreateInfo depth_info = {}; - depth_info.sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO; - - VkPipelineColorBlendStateCreateInfo blend_info = {}; - blend_info.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO; - blend_info.attachmentCount = 1; - blend_info.pAttachments = color_attachment; - - VkDynamicState dynamic_states[2] = { VK_DYNAMIC_STATE_VIEWPORT, VK_DYNAMIC_STATE_SCISSOR }; - VkPipelineDynamicStateCreateInfo dynamic_state = {}; - dynamic_state.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO; - dynamic_state.dynamicStateCount = (uint32_t)IM_ARRAYSIZE(dynamic_states); - dynamic_state.pDynamicStates = dynamic_states; - - ImGui_ImplVulkan_CreatePipelineLayout(device, allocator); - - VkGraphicsPipelineCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO; - info.flags = g_PipelineCreateFlags; - info.stageCount = 2; - info.pStages = stage; - info.pVertexInputState = &vertex_info; - info.pInputAssemblyState = &ia_info; - info.pViewportState = &viewport_info; - info.pRasterizationState = &raster_info; - info.pMultisampleState = &ms_info; - info.pDepthStencilState = &depth_info; - info.pColorBlendState = &blend_info; - info.pDynamicState = &dynamic_state; - info.layout = g_PipelineLayout; - info.renderPass = renderPass; - info.subpass = subpass; - VkResult err = vkCreateGraphicsPipelines(device, pipelineCache, 1, &info, allocator, pipeline); - check_vk_result(err); -} - -bool ImGui_ImplVulkan_CreateDeviceObjects() -{ - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - VkResult err; - - if (!g_FontSampler) - { - VkSamplerCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; - info.magFilter = VK_FILTER_LINEAR; - info.minFilter = VK_FILTER_LINEAR; - info.mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR; - info.addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT; - info.addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT; - info.addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT; - info.minLod = -1000; - info.maxLod = 1000; - info.maxAnisotropy = 1.0f; - err = vkCreateSampler(v->Device, &info, v->Allocator, &g_FontSampler); - check_vk_result(err); - } - - if (!g_DescriptorSetLayout) - { - VkSampler sampler[1] = {g_FontSampler}; - VkDescriptorSetLayoutBinding binding[1] = {}; - binding[0].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; - binding[0].descriptorCount = 1; - binding[0].stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT; - binding[0].pImmutableSamplers = sampler; - VkDescriptorSetLayoutCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO; - info.bindingCount = 1; - info.pBindings = binding; - err = vkCreateDescriptorSetLayout(v->Device, &info, v->Allocator, &g_DescriptorSetLayout); - check_vk_result(err); - } - - // Create Descriptor Set: - { - VkDescriptorSetAllocateInfo alloc_info = {}; - alloc_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; - alloc_info.descriptorPool = v->DescriptorPool; - alloc_info.descriptorSetCount = 1; - alloc_info.pSetLayouts = &g_DescriptorSetLayout; - err = vkAllocateDescriptorSets(v->Device, &alloc_info, &g_DescriptorSet); - check_vk_result(err); - } - - if (!g_PipelineLayout) - { - // Constants: we are using 'vec2 offset' and 'vec2 scale' instead of a full 3d projection matrix - VkPushConstantRange push_constants[1] = {}; - push_constants[0].stageFlags = VK_SHADER_STAGE_VERTEX_BIT; - push_constants[0].offset = sizeof(float) * 0; - push_constants[0].size = sizeof(float) * 4; - VkDescriptorSetLayout set_layout[1] = { g_DescriptorSetLayout }; - VkPipelineLayoutCreateInfo layout_info = {}; - layout_info.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO; - layout_info.setLayoutCount = 1; - layout_info.pSetLayouts = set_layout; - layout_info.pushConstantRangeCount = 1; - layout_info.pPushConstantRanges = push_constants; - err = vkCreatePipelineLayout(v->Device, &layout_info, v->Allocator, &g_PipelineLayout); - check_vk_result(err); - } - - ImGui_ImplVulkan_CreatePipeline(v->Device, v->Allocator, v->PipelineCache, g_RenderPass, v->MSAASamples, &g_Pipeline, g_Subpass); - - return true; -} - -void ImGui_ImplVulkan_DestroyFontUploadObjects() -{ - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - if (g_UploadBuffer) - { - vkDestroyBuffer(v->Device, g_UploadBuffer, v->Allocator); - g_UploadBuffer = VK_NULL_HANDLE; - } - if (g_UploadBufferMemory) - { - vkFreeMemory(v->Device, g_UploadBufferMemory, v->Allocator); - g_UploadBufferMemory = VK_NULL_HANDLE; - } -} - -void ImGui_ImplVulkan_DestroyDeviceObjects() -{ - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - ImGui_ImplVulkanH_DestroyWindowRenderBuffers(v->Device, &g_MainWindowRenderBuffers, v->Allocator); - ImGui_ImplVulkan_DestroyFontUploadObjects(); - - if (g_ShaderModuleVert) { vkDestroyShaderModule(v->Device, g_ShaderModuleVert, v->Allocator); g_ShaderModuleVert = VK_NULL_HANDLE; } - if (g_ShaderModuleFrag) { vkDestroyShaderModule(v->Device, g_ShaderModuleFrag, v->Allocator); g_ShaderModuleFrag = VK_NULL_HANDLE; } - if (g_FontView) { vkDestroyImageView(v->Device, g_FontView, v->Allocator); g_FontView = VK_NULL_HANDLE; } - if (g_FontImage) { vkDestroyImage(v->Device, g_FontImage, v->Allocator); g_FontImage = VK_NULL_HANDLE; } - if (g_FontMemory) { vkFreeMemory(v->Device, g_FontMemory, v->Allocator); g_FontMemory = VK_NULL_HANDLE; } - if (g_FontSampler) { vkDestroySampler(v->Device, g_FontSampler, v->Allocator); g_FontSampler = VK_NULL_HANDLE; } - if (g_DescriptorSetLayout) { vkDestroyDescriptorSetLayout(v->Device, g_DescriptorSetLayout, v->Allocator); g_DescriptorSetLayout = VK_NULL_HANDLE; } - if (g_PipelineLayout) { vkDestroyPipelineLayout(v->Device, g_PipelineLayout, v->Allocator); g_PipelineLayout = VK_NULL_HANDLE; } - if (g_Pipeline) { vkDestroyPipeline(v->Device, g_Pipeline, v->Allocator); g_Pipeline = VK_NULL_HANDLE; } -} - -bool ImGui_ImplVulkan_LoadFunctions(PFN_vkVoidFunction(*loader_func)(const char* function_name, void* user_data), void* user_data) -{ - // Load function pointers - // You can use the default Vulkan loader using: - // ImGui_ImplVulkan_LoadFunctions([](const char* function_name, void*) { return vkGetInstanceProcAddr(your_vk_isntance, function_name); }); - // But this would be equivalent to not setting VK_NO_PROTOTYPES. -#ifdef VK_NO_PROTOTYPES -#define IMGUI_VULKAN_FUNC_LOAD(func) \ - func = reinterpret_cast(loader_func(#func, user_data)); \ - if (func == NULL) \ - return false; - IMGUI_VULKAN_FUNC_MAP(IMGUI_VULKAN_FUNC_LOAD) -#undef IMGUI_VULKAN_FUNC_LOAD -#else - IM_UNUSED(loader_func); - IM_UNUSED(user_data); -#endif - g_FunctionsLoaded = true; - return true; -} - -bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info, VkRenderPass render_pass) -{ - IM_ASSERT(g_FunctionsLoaded && "Need to call ImGui_ImplVulkan_LoadFunctions() if IMGUI_IMPL_VULKAN_NO_PROTOTYPES or VK_NO_PROTOTYPES are set!"); - - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_vulkan"; - io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. - - IM_ASSERT(info->Instance != VK_NULL_HANDLE); - IM_ASSERT(info->PhysicalDevice != VK_NULL_HANDLE); - IM_ASSERT(info->Device != VK_NULL_HANDLE); - IM_ASSERT(info->Queue != VK_NULL_HANDLE); - IM_ASSERT(info->DescriptorPool != VK_NULL_HANDLE); - IM_ASSERT(info->MinImageCount >= 2); - IM_ASSERT(info->ImageCount >= info->MinImageCount); - IM_ASSERT(render_pass != VK_NULL_HANDLE); - - g_VulkanInitInfo = *info; - g_RenderPass = render_pass; - g_Subpass = info->Subpass; - - ImGui_ImplVulkan_CreateDeviceObjects(); - - return true; -} - -void ImGui_ImplVulkan_Shutdown() -{ - ImGui_ImplVulkan_DestroyDeviceObjects(); -} - -void ImGui_ImplVulkan_NewFrame() -{ -} - -void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count) -{ - IM_ASSERT(min_image_count >= 2); - if (g_VulkanInitInfo.MinImageCount == min_image_count) - return; - - ImGui_ImplVulkan_InitInfo* v = &g_VulkanInitInfo; - VkResult err = vkDeviceWaitIdle(v->Device); - check_vk_result(err); - ImGui_ImplVulkanH_DestroyWindowRenderBuffers(v->Device, &g_MainWindowRenderBuffers, v->Allocator); - g_VulkanInitInfo.MinImageCount = min_image_count; -} - - -//------------------------------------------------------------------------- -// Internal / Miscellaneous Vulkan Helpers -// (Used by example's main.cpp. Used by multi-viewport features. PROBABLY NOT used by your own app.) -//------------------------------------------------------------------------- -// You probably do NOT need to use or care about those functions. -// Those functions only exist because: -// 1) they facilitate the readability and maintenance of the multiple main.cpp examples files. -// 2) the upcoming multi-viewport feature will need them internally. -// Generally we avoid exposing any kind of superfluous high-level helpers in the backends, -// but it is too much code to duplicate everywhere so we exceptionally expose them. -// -// Your engine/app will likely _already_ have code to setup all that stuff (swap chain, render pass, frame buffers, etc.). -// You may read this code to learn about Vulkan, but it is recommended you use you own custom tailored code to do equivalent work. -// (The ImGui_ImplVulkanH_XXX functions do not interact with any of the state used by the regular ImGui_ImplVulkan_XXX functions) -//------------------------------------------------------------------------- - -VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkFormat* request_formats, int request_formats_count, VkColorSpaceKHR request_color_space) -{ - IM_ASSERT(g_FunctionsLoaded && "Need to call ImGui_ImplVulkan_LoadFunctions() if IMGUI_IMPL_VULKAN_NO_PROTOTYPES or VK_NO_PROTOTYPES are set!"); - IM_ASSERT(request_formats != NULL); - IM_ASSERT(request_formats_count > 0); - - // Per Spec Format and View Format are expected to be the same unless VK_IMAGE_CREATE_MUTABLE_BIT was set at image creation - // Assuming that the default behavior is without setting this bit, there is no need for separate Swapchain image and image view format - // Additionally several new color spaces were introduced with Vulkan Spec v1.0.40, - // hence we must make sure that a format with the mostly available color space, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR, is found and used. - uint32_t avail_count; - vkGetPhysicalDeviceSurfaceFormatsKHR(physical_device, surface, &avail_count, NULL); - ImVector avail_format; - avail_format.resize((int)avail_count); - vkGetPhysicalDeviceSurfaceFormatsKHR(physical_device, surface, &avail_count, avail_format.Data); - - // First check if only one format, VK_FORMAT_UNDEFINED, is available, which would imply that any format is available - if (avail_count == 1) - { - if (avail_format[0].format == VK_FORMAT_UNDEFINED) - { - VkSurfaceFormatKHR ret; - ret.format = request_formats[0]; - ret.colorSpace = request_color_space; - return ret; - } - else - { - // No point in searching another format - return avail_format[0]; - } - } - else - { - // Request several formats, the first found will be used - for (int request_i = 0; request_i < request_formats_count; request_i++) - for (uint32_t avail_i = 0; avail_i < avail_count; avail_i++) - if (avail_format[avail_i].format == request_formats[request_i] && avail_format[avail_i].colorSpace == request_color_space) - return avail_format[avail_i]; - - // If none of the requested image formats could be found, use the first available - return avail_format[0]; - } -} - -VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkPresentModeKHR* request_modes, int request_modes_count) -{ - IM_ASSERT(g_FunctionsLoaded && "Need to call ImGui_ImplVulkan_LoadFunctions() if IMGUI_IMPL_VULKAN_NO_PROTOTYPES or VK_NO_PROTOTYPES are set!"); - IM_ASSERT(request_modes != NULL); - IM_ASSERT(request_modes_count > 0); - - // Request a certain mode and confirm that it is available. If not use VK_PRESENT_MODE_FIFO_KHR which is mandatory - uint32_t avail_count = 0; - vkGetPhysicalDeviceSurfacePresentModesKHR(physical_device, surface, &avail_count, NULL); - ImVector avail_modes; - avail_modes.resize((int)avail_count); - vkGetPhysicalDeviceSurfacePresentModesKHR(physical_device, surface, &avail_count, avail_modes.Data); - //for (uint32_t avail_i = 0; avail_i < avail_count; avail_i++) - // printf("[vulkan] avail_modes[%d] = %d\n", avail_i, avail_modes[avail_i]); - - for (int request_i = 0; request_i < request_modes_count; request_i++) - for (uint32_t avail_i = 0; avail_i < avail_count; avail_i++) - if (request_modes[request_i] == avail_modes[avail_i]) - return request_modes[request_i]; - - return VK_PRESENT_MODE_FIFO_KHR; // Always available -} - -void ImGui_ImplVulkanH_CreateWindowCommandBuffers(VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, uint32_t queue_family, const VkAllocationCallbacks* allocator) -{ - IM_ASSERT(physical_device != VK_NULL_HANDLE && device != VK_NULL_HANDLE); - (void)physical_device; - (void)allocator; - - // Create Command Buffers - VkResult err; - for (uint32_t i = 0; i < wd->ImageCount; i++) - { - ImGui_ImplVulkanH_Frame* fd = &wd->Frames[i]; - ImGui_ImplVulkanH_FrameSemaphores* fsd = &wd->FrameSemaphores[i]; - { - VkCommandPoolCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO; - info.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT; - info.queueFamilyIndex = queue_family; - err = vkCreateCommandPool(device, &info, allocator, &fd->CommandPool); - check_vk_result(err); - } - { - VkCommandBufferAllocateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO; - info.commandPool = fd->CommandPool; - info.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY; - info.commandBufferCount = 1; - err = vkAllocateCommandBuffers(device, &info, &fd->CommandBuffer); - check_vk_result(err); - } - { - VkFenceCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO; - info.flags = VK_FENCE_CREATE_SIGNALED_BIT; - err = vkCreateFence(device, &info, allocator, &fd->Fence); - check_vk_result(err); - } - { - VkSemaphoreCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO; - err = vkCreateSemaphore(device, &info, allocator, &fsd->ImageAcquiredSemaphore); - check_vk_result(err); - err = vkCreateSemaphore(device, &info, allocator, &fsd->RenderCompleteSemaphore); - check_vk_result(err); - } - } -} - -int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode) -{ - if (present_mode == VK_PRESENT_MODE_MAILBOX_KHR) - return 3; - if (present_mode == VK_PRESENT_MODE_FIFO_KHR || present_mode == VK_PRESENT_MODE_FIFO_RELAXED_KHR) - return 2; - if (present_mode == VK_PRESENT_MODE_IMMEDIATE_KHR) - return 1; - IM_ASSERT(0); - return 1; -} - -// Also destroy old swap chain and in-flight frames data, if any. -void ImGui_ImplVulkanH_CreateWindowSwapChain(VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, const VkAllocationCallbacks* allocator, int w, int h, uint32_t min_image_count) -{ - VkResult err; - VkSwapchainKHR old_swapchain = wd->Swapchain; - wd->Swapchain = NULL; - err = vkDeviceWaitIdle(device); - check_vk_result(err); - - // We don't use ImGui_ImplVulkanH_DestroyWindow() because we want to preserve the old swapchain to create the new one. - // Destroy old Framebuffer - for (uint32_t i = 0; i < wd->ImageCount; i++) - { - ImGui_ImplVulkanH_DestroyFrame(device, &wd->Frames[i], allocator); - ImGui_ImplVulkanH_DestroyFrameSemaphores(device, &wd->FrameSemaphores[i], allocator); - } - IM_FREE(wd->Frames); - IM_FREE(wd->FrameSemaphores); - wd->Frames = NULL; - wd->FrameSemaphores = NULL; - wd->ImageCount = 0; - if (wd->RenderPass) - vkDestroyRenderPass(device, wd->RenderPass, allocator); - if (wd->Pipeline) - vkDestroyPipeline(device, wd->Pipeline, allocator); - - // If min image count was not specified, request different count of images dependent on selected present mode - if (min_image_count == 0) - min_image_count = ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(wd->PresentMode); - - // Create Swapchain - { - VkSwapchainCreateInfoKHR info = {}; - info.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; - info.surface = wd->Surface; - info.minImageCount = min_image_count; - info.imageFormat = wd->SurfaceFormat.format; - info.imageColorSpace = wd->SurfaceFormat.colorSpace; - info.imageArrayLayers = 1; - info.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; - info.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE; // Assume that graphics family == present family - info.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; - info.compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR; - info.presentMode = wd->PresentMode; - info.clipped = VK_TRUE; - info.oldSwapchain = old_swapchain; - VkSurfaceCapabilitiesKHR cap; - err = vkGetPhysicalDeviceSurfaceCapabilitiesKHR(physical_device, wd->Surface, &cap); - check_vk_result(err); - if (info.minImageCount < cap.minImageCount) - info.minImageCount = cap.minImageCount; - else if (cap.maxImageCount != 0 && info.minImageCount > cap.maxImageCount) - info.minImageCount = cap.maxImageCount; - - if (cap.currentExtent.width == 0xffffffff) - { - info.imageExtent.width = wd->Width = w; - info.imageExtent.height = wd->Height = h; - } - else - { - info.imageExtent.width = wd->Width = cap.currentExtent.width; - info.imageExtent.height = wd->Height = cap.currentExtent.height; - } - err = vkCreateSwapchainKHR(device, &info, allocator, &wd->Swapchain); - check_vk_result(err); - err = vkGetSwapchainImagesKHR(device, wd->Swapchain, &wd->ImageCount, NULL); - check_vk_result(err); - VkImage backbuffers[16] = {}; - IM_ASSERT(wd->ImageCount >= min_image_count); - IM_ASSERT(wd->ImageCount < IM_ARRAYSIZE(backbuffers)); - err = vkGetSwapchainImagesKHR(device, wd->Swapchain, &wd->ImageCount, backbuffers); - check_vk_result(err); - - IM_ASSERT(wd->Frames == NULL); - wd->Frames = (ImGui_ImplVulkanH_Frame*)IM_ALLOC(sizeof(ImGui_ImplVulkanH_Frame) * wd->ImageCount); - wd->FrameSemaphores = (ImGui_ImplVulkanH_FrameSemaphores*)IM_ALLOC(sizeof(ImGui_ImplVulkanH_FrameSemaphores) * wd->ImageCount); - memset(wd->Frames, 0, sizeof(wd->Frames[0]) * wd->ImageCount); - memset(wd->FrameSemaphores, 0, sizeof(wd->FrameSemaphores[0]) * wd->ImageCount); - for (uint32_t i = 0; i < wd->ImageCount; i++) - wd->Frames[i].Backbuffer = backbuffers[i]; - } - if (old_swapchain) - vkDestroySwapchainKHR(device, old_swapchain, allocator); - - // Create the Render Pass - { - VkAttachmentDescription attachment = {}; - attachment.format = wd->SurfaceFormat.format; - attachment.samples = VK_SAMPLE_COUNT_1_BIT; - attachment.loadOp = wd->ClearEnable ? VK_ATTACHMENT_LOAD_OP_CLEAR : VK_ATTACHMENT_LOAD_OP_DONT_CARE; - attachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; - attachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; - attachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; - attachment.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; - attachment.finalLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; - VkAttachmentReference color_attachment = {}; - color_attachment.attachment = 0; - color_attachment.layout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; - VkSubpassDescription subpass = {}; - subpass.pipelineBindPoint = VK_PIPELINE_BIND_POINT_GRAPHICS; - subpass.colorAttachmentCount = 1; - subpass.pColorAttachments = &color_attachment; - VkSubpassDependency dependency = {}; - dependency.srcSubpass = VK_SUBPASS_EXTERNAL; - dependency.dstSubpass = 0; - dependency.srcStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; - dependency.dstStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; - dependency.srcAccessMask = 0; - dependency.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; - VkRenderPassCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO; - info.attachmentCount = 1; - info.pAttachments = &attachment; - info.subpassCount = 1; - info.pSubpasses = &subpass; - info.dependencyCount = 1; - info.pDependencies = &dependency; - err = vkCreateRenderPass(device, &info, allocator, &wd->RenderPass); - check_vk_result(err); - - // We do not create a pipeline by default as this is also used by examples' main.cpp, - // but secondary viewport in multi-viewport mode may want to create one with: - //ImGui_ImplVulkan_CreatePipeline(device, allocator, VK_NULL_HANDLE, wd->RenderPass, VK_SAMPLE_COUNT_1_BIT, &wd->Pipeline, g_Subpass); - } - - // Create The Image Views - { - VkImageViewCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO; - info.viewType = VK_IMAGE_VIEW_TYPE_2D; - info.format = wd->SurfaceFormat.format; - info.components.r = VK_COMPONENT_SWIZZLE_R; - info.components.g = VK_COMPONENT_SWIZZLE_G; - info.components.b = VK_COMPONENT_SWIZZLE_B; - info.components.a = VK_COMPONENT_SWIZZLE_A; - VkImageSubresourceRange image_range = { VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, 1 }; - info.subresourceRange = image_range; - for (uint32_t i = 0; i < wd->ImageCount; i++) - { - ImGui_ImplVulkanH_Frame* fd = &wd->Frames[i]; - info.image = fd->Backbuffer; - err = vkCreateImageView(device, &info, allocator, &fd->BackbufferView); - check_vk_result(err); - } - } - - // Create Framebuffer - { - VkImageView attachment[1]; - VkFramebufferCreateInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO; - info.renderPass = wd->RenderPass; - info.attachmentCount = 1; - info.pAttachments = attachment; - info.width = wd->Width; - info.height = wd->Height; - info.layers = 1; - for (uint32_t i = 0; i < wd->ImageCount; i++) - { - ImGui_ImplVulkanH_Frame* fd = &wd->Frames[i]; - attachment[0] = fd->BackbufferView; - err = vkCreateFramebuffer(device, &info, allocator, &fd->Framebuffer); - check_vk_result(err); - } - } -} - -// Create or resize window -void ImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance instance, VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wd, uint32_t queue_family, const VkAllocationCallbacks* allocator, int width, int height, uint32_t min_image_count) -{ - IM_ASSERT(g_FunctionsLoaded && "Need to call ImGui_ImplVulkan_LoadFunctions() if IMGUI_IMPL_VULKAN_NO_PROTOTYPES or VK_NO_PROTOTYPES are set!"); - (void)instance; - ImGui_ImplVulkanH_CreateWindowSwapChain(physical_device, device, wd, allocator, width, height, min_image_count); - ImGui_ImplVulkanH_CreateWindowCommandBuffers(physical_device, device, wd, queue_family, allocator); -} - -void ImGui_ImplVulkanH_DestroyWindow(VkInstance instance, VkDevice device, ImGui_ImplVulkanH_Window* wd, const VkAllocationCallbacks* allocator) -{ - vkDeviceWaitIdle(device); // FIXME: We could wait on the Queue if we had the queue in wd-> (otherwise VulkanH functions can't use globals) - //vkQueueWaitIdle(g_Queue); - - for (uint32_t i = 0; i < wd->ImageCount; i++) - { - ImGui_ImplVulkanH_DestroyFrame(device, &wd->Frames[i], allocator); - ImGui_ImplVulkanH_DestroyFrameSemaphores(device, &wd->FrameSemaphores[i], allocator); - } - IM_FREE(wd->Frames); - IM_FREE(wd->FrameSemaphores); - wd->Frames = NULL; - wd->FrameSemaphores = NULL; - vkDestroyPipeline(device, wd->Pipeline, allocator); - vkDestroyRenderPass(device, wd->RenderPass, allocator); - vkDestroySwapchainKHR(device, wd->Swapchain, allocator); - vkDestroySurfaceKHR(instance, wd->Surface, allocator); - - *wd = ImGui_ImplVulkanH_Window(); -} - -void ImGui_ImplVulkanH_DestroyFrame(VkDevice device, ImGui_ImplVulkanH_Frame* fd, const VkAllocationCallbacks* allocator) -{ - vkDestroyFence(device, fd->Fence, allocator); - vkFreeCommandBuffers(device, fd->CommandPool, 1, &fd->CommandBuffer); - vkDestroyCommandPool(device, fd->CommandPool, allocator); - fd->Fence = VK_NULL_HANDLE; - fd->CommandBuffer = VK_NULL_HANDLE; - fd->CommandPool = VK_NULL_HANDLE; - - vkDestroyImageView(device, fd->BackbufferView, allocator); - vkDestroyFramebuffer(device, fd->Framebuffer, allocator); -} - -void ImGui_ImplVulkanH_DestroyFrameSemaphores(VkDevice device, ImGui_ImplVulkanH_FrameSemaphores* fsd, const VkAllocationCallbacks* allocator) -{ - vkDestroySemaphore(device, fsd->ImageAcquiredSemaphore, allocator); - vkDestroySemaphore(device, fsd->RenderCompleteSemaphore, allocator); - fsd->ImageAcquiredSemaphore = fsd->RenderCompleteSemaphore = VK_NULL_HANDLE; -} - -void ImGui_ImplVulkanH_DestroyFrameRenderBuffers(VkDevice device, ImGui_ImplVulkanH_FrameRenderBuffers* buffers, const VkAllocationCallbacks* allocator) -{ - if (buffers->VertexBuffer) { vkDestroyBuffer(device, buffers->VertexBuffer, allocator); buffers->VertexBuffer = VK_NULL_HANDLE; } - if (buffers->VertexBufferMemory) { vkFreeMemory(device, buffers->VertexBufferMemory, allocator); buffers->VertexBufferMemory = VK_NULL_HANDLE; } - if (buffers->IndexBuffer) { vkDestroyBuffer(device, buffers->IndexBuffer, allocator); buffers->IndexBuffer = VK_NULL_HANDLE; } - if (buffers->IndexBufferMemory) { vkFreeMemory(device, buffers->IndexBufferMemory, allocator); buffers->IndexBufferMemory = VK_NULL_HANDLE; } - buffers->VertexBufferSize = 0; - buffers->IndexBufferSize = 0; -} - -void ImGui_ImplVulkanH_DestroyWindowRenderBuffers(VkDevice device, ImGui_ImplVulkanH_WindowRenderBuffers* buffers, const VkAllocationCallbacks* allocator) -{ - for (uint32_t n = 0; n < buffers->Count; n++) - ImGui_ImplVulkanH_DestroyFrameRenderBuffers(device, &buffers->FrameRenderBuffers[n], allocator); - IM_FREE(buffers->FrameRenderBuffers); - buffers->FrameRenderBuffers = NULL; - buffers->Index = 0; - buffers->Count = 0; -} diff --git a/third_party/imgui/backends/imgui_impl_vulkan.h b/third_party/imgui/backends/imgui_impl_vulkan.h deleted file mode 100644 index 9f9010e5..00000000 --- a/third_party/imgui/backends/imgui_impl_vulkan.h +++ /dev/null @@ -1,148 +0,0 @@ -// dear imgui: Renderer Backend for Vulkan -// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) - -// Implemented features: -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. -// Missing features: -// [ ] Renderer: User texture binding. Changes of ImTextureID aren't supported by this backend! See https://github.com/ocornut/imgui/pull/914 - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// The aim of imgui_impl_vulkan.h/.cpp is to be usable in your engine without any modification. -// IF YOU FEEL YOU NEED TO MAKE ANY CHANGE TO THIS CODE, please share them and your feedback at https://github.com/ocornut/imgui/ - -// Important note to the reader who wish to integrate imgui_impl_vulkan.cpp/.h in their own engine/app. -// - Common ImGui_ImplVulkan_XXX functions and structures are used to interface with imgui_impl_vulkan.cpp/.h. -// You will use those if you want to use this rendering backend in your engine/app. -// - Helper ImGui_ImplVulkanH_XXX functions and structures are only used by this example (main.cpp) and by -// the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. -// Read comments in imgui_impl_vulkan.h. - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -// [Configuration] in order to use a custom Vulkan function loader: -// (1) You'll need to disable default Vulkan function prototypes. -// We provide a '#define IMGUI_IMPL_VULKAN_NO_PROTOTYPES' convenience configuration flag. -// In order to make sure this is visible from the imgui_impl_vulkan.cpp compilation unit: -// - Add '#define IMGUI_IMPL_VULKAN_NO_PROTOTYPES' in your imconfig.h file -// - Or as a compilation flag in your build system -// - Or uncomment here (not recommended because you'd be modifying imgui sources!) -// - Do not simply add it in a .cpp file! -// (2) Call ImGui_ImplVulkan_LoadFunctions() before ImGui_ImplVulkan_Init() with your custom function. -// If you have no idea what this is, leave it alone! -//#define IMGUI_IMPL_VULKAN_NO_PROTOTYPES - -// Vulkan includes -#if defined(IMGUI_IMPL_VULKAN_NO_PROTOTYPES) && !defined(VK_NO_PROTOTYPES) -#define VK_NO_PROTOTYPES -#endif -#include - -// Initialization data, for ImGui_ImplVulkan_Init() -// [Please zero-clear before use!] -struct ImGui_ImplVulkan_InitInfo -{ - VkInstance Instance; - VkPhysicalDevice PhysicalDevice; - VkDevice Device; - uint32_t QueueFamily; - VkQueue Queue; - VkPipelineCache PipelineCache; - VkDescriptorPool DescriptorPool; - uint32_t Subpass; - uint32_t MinImageCount; // >= 2 - uint32_t ImageCount; // >= MinImageCount - VkSampleCountFlagBits MSAASamples; // >= VK_SAMPLE_COUNT_1_BIT - const VkAllocationCallbacks* Allocator; - void (*CheckVkResultFn)(VkResult err); -}; - -// Called by user code -IMGUI_IMPL_API bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info, VkRenderPass render_pass); -IMGUI_IMPL_API void ImGui_ImplVulkan_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplVulkan_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipeline pipeline = VK_NULL_HANDLE); -IMGUI_IMPL_API bool ImGui_ImplVulkan_CreateFontsTexture(VkCommandBuffer command_buffer); -IMGUI_IMPL_API void ImGui_ImplVulkan_DestroyFontUploadObjects(); -IMGUI_IMPL_API void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count); // To override MinImageCount after initialization (e.g. if swap chain is recreated) - -// Optional: load Vulkan functions with a custom function loader -// This is only useful with IMGUI_IMPL_VULKAN_NO_PROTOTYPES / VK_NO_PROTOTYPES -IMGUI_IMPL_API bool ImGui_ImplVulkan_LoadFunctions(PFN_vkVoidFunction(*loader_func)(const char* function_name, void* user_data), void* user_data = NULL); - -//------------------------------------------------------------------------- -// Internal / Miscellaneous Vulkan Helpers -// (Used by example's main.cpp. Used by multi-viewport features. PROBABLY NOT used by your own engine/app.) -//------------------------------------------------------------------------- -// You probably do NOT need to use or care about those functions. -// Those functions only exist because: -// 1) they facilitate the readability and maintenance of the multiple main.cpp examples files. -// 2) the upcoming multi-viewport feature will need them internally. -// Generally we avoid exposing any kind of superfluous high-level helpers in the backends, -// but it is too much code to duplicate everywhere so we exceptionally expose them. -// -// Your engine/app will likely _already_ have code to setup all that stuff (swap chain, render pass, frame buffers, etc.). -// You may read this code to learn about Vulkan, but it is recommended you use you own custom tailored code to do equivalent work. -// (The ImGui_ImplVulkanH_XXX functions do not interact with any of the state used by the regular ImGui_ImplVulkan_XXX functions) -//------------------------------------------------------------------------- - -struct ImGui_ImplVulkanH_Frame; -struct ImGui_ImplVulkanH_Window; - -// Helpers -IMGUI_IMPL_API void ImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance instance, VkPhysicalDevice physical_device, VkDevice device, ImGui_ImplVulkanH_Window* wnd, uint32_t queue_family, const VkAllocationCallbacks* allocator, int w, int h, uint32_t min_image_count); -IMGUI_IMPL_API void ImGui_ImplVulkanH_DestroyWindow(VkInstance instance, VkDevice device, ImGui_ImplVulkanH_Window* wnd, const VkAllocationCallbacks* allocator); -IMGUI_IMPL_API VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkFormat* request_formats, int request_formats_count, VkColorSpaceKHR request_color_space); -IMGUI_IMPL_API VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkPresentModeKHR* request_modes, int request_modes_count); -IMGUI_IMPL_API int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode); - -// Helper structure to hold the data needed by one rendering frame -// (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.) -// [Please zero-clear before use!] -struct ImGui_ImplVulkanH_Frame -{ - VkCommandPool CommandPool; - VkCommandBuffer CommandBuffer; - VkFence Fence; - VkImage Backbuffer; - VkImageView BackbufferView; - VkFramebuffer Framebuffer; -}; - -struct ImGui_ImplVulkanH_FrameSemaphores -{ - VkSemaphore ImageAcquiredSemaphore; - VkSemaphore RenderCompleteSemaphore; -}; - -// Helper structure to hold the data needed by one rendering context into one OS window -// (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.) -struct ImGui_ImplVulkanH_Window -{ - int Width; - int Height; - VkSwapchainKHR Swapchain; - VkSurfaceKHR Surface; - VkSurfaceFormatKHR SurfaceFormat; - VkPresentModeKHR PresentMode; - VkRenderPass RenderPass; - VkPipeline Pipeline; // The window pipeline may uses a different VkRenderPass than the one passed in ImGui_ImplVulkan_InitInfo - bool ClearEnable; - VkClearValue ClearValue; - uint32_t FrameIndex; // Current frame being rendered to (0 <= FrameIndex < FrameInFlightCount) - uint32_t ImageCount; // Number of simultaneous in-flight frames (returned by vkGetSwapchainImagesKHR, usually derived from min_image_count) - uint32_t SemaphoreIndex; // Current set of swapchain wait semaphores we're using (needs to be distinct from per frame data) - ImGui_ImplVulkanH_Frame* Frames; - ImGui_ImplVulkanH_FrameSemaphores* FrameSemaphores; - - ImGui_ImplVulkanH_Window() - { - memset(this, 0, sizeof(*this)); - PresentMode = VK_PRESENT_MODE_MAX_ENUM_KHR; - ClearEnable = true; - } -}; - diff --git a/third_party/imgui/backends/imgui_impl_wgpu.cpp b/third_party/imgui/backends/imgui_impl_wgpu.cpp deleted file mode 100644 index 34881878..00000000 --- a/third_party/imgui/backends/imgui_impl_wgpu.cpp +++ /dev/null @@ -1,783 +0,0 @@ -// dear imgui: Renderer for WebGPU -// This needs to be used along with a Platform Binding (e.g. GLFW) -// (Please note that WebGPU is currently experimental, will not run on non-beta browsers, and may break.) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'WGPUTextureView' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: Change blending equation to preserve alpha in output buffer. -// 2021-01-28: Initial version. - -#include "imgui.h" -#include "imgui_impl_wgpu.h" -#include -#include - -#define HAS_EMSCRIPTEN_VERSION(major, minor, tiny) (__EMSCRIPTEN_major__ > (major) || (__EMSCRIPTEN_major__ == (major) && __EMSCRIPTEN_minor__ > (minor)) || (__EMSCRIPTEN_major__ == (major) && __EMSCRIPTEN_minor__ == (minor) && __EMSCRIPTEN_tiny__ >= (tiny))) - -// Dear ImGui prototypes from imgui_internal.h -extern ImGuiID ImHashData(const void* data_p, size_t data_size, ImU32 seed = 0); - -// WebGPU data -static WGPUDevice g_wgpuDevice = NULL; -static WGPUTextureFormat g_renderTargetFormat = WGPUTextureFormat_Undefined; -static WGPURenderPipeline g_pipelineState = NULL; - -struct RenderResources -{ - WGPUTexture FontTexture; // Font texture - WGPUTextureView FontTextureView; // Texture view for font texture - WGPUSampler Sampler; // Sampler for the font texture - WGPUBuffer Uniforms; // Shader uniforms - WGPUBindGroup CommonBindGroup; // Resources bind-group to bind the common resources to pipeline - WGPUBindGroupLayout ImageBindGroupLayout; // Bind group layout for image textures - ImGuiStorage ImageBindGroups; // Resources bind-group to bind the font/image resources to pipeline (this is a key->value map) - WGPUBindGroup ImageBindGroup; // Default font-resource of Dear ImGui -}; -static RenderResources g_resources; - -struct FrameResources -{ - WGPUBuffer IndexBuffer; - WGPUBuffer VertexBuffer; - ImDrawIdx* IndexBufferHost; - ImDrawVert* VertexBufferHost; - int IndexBufferSize; - int VertexBufferSize; -}; -static FrameResources* g_pFrameResources = NULL; -static unsigned int g_numFramesInFlight = 0; -static unsigned int g_frameIndex = UINT_MAX; - -struct Uniforms -{ - float MVP[4][4]; -}; - -//----------------------------------------------------------------------------- -// SHADERS -//----------------------------------------------------------------------------- - -// glsl_shader.vert, compiled with: -// # glslangValidator -V -x -o glsl_shader.vert.u32 glsl_shader.vert -/* -#version 450 core -layout(location = 0) in vec2 aPos; -layout(location = 1) in vec2 aUV; -layout(location = 2) in vec4 aColor; -layout(set=0, binding = 0) uniform transform { mat4 mvp; }; - -out gl_PerVertex { vec4 gl_Position; }; -layout(location = 0) out struct { vec4 Color; vec2 UV; } Out; - -void main() -{ - Out.Color = aColor; - Out.UV = aUV; - gl_Position = mvp * vec4(aPos, 0, 1); -} -*/ -static uint32_t __glsl_shader_vert_spv[] = -{ - 0x07230203,0x00010000,0x00080007,0x0000002c,0x00000000,0x00020011,0x00000001,0x0006000b, - 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, - 0x000a000f,0x00000000,0x00000004,0x6e69616d,0x00000000,0x0000000b,0x0000000f,0x00000015, - 0x0000001b,0x00000023,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, - 0x00000000,0x00030005,0x00000009,0x00000000,0x00050006,0x00000009,0x00000000,0x6f6c6f43, - 0x00000072,0x00040006,0x00000009,0x00000001,0x00005655,0x00030005,0x0000000b,0x0074754f, - 0x00040005,0x0000000f,0x6c6f4361,0x0000726f,0x00030005,0x00000015,0x00565561,0x00060005, - 0x00000019,0x505f6c67,0x65567265,0x78657472,0x00000000,0x00060006,0x00000019,0x00000000, - 0x505f6c67,0x7469736f,0x006e6f69,0x00030005,0x0000001b,0x00000000,0x00050005,0x0000001d, - 0x6e617274,0x726f6673,0x0000006d,0x00040006,0x0000001d,0x00000000,0x0070766d,0x00030005, - 0x0000001f,0x00000000,0x00040005,0x00000023,0x736f5061,0x00000000,0x00040047,0x0000000b, - 0x0000001e,0x00000000,0x00040047,0x0000000f,0x0000001e,0x00000002,0x00040047,0x00000015, - 0x0000001e,0x00000001,0x00050048,0x00000019,0x00000000,0x0000000b,0x00000000,0x00030047, - 0x00000019,0x00000002,0x00040048,0x0000001d,0x00000000,0x00000005,0x00050048,0x0000001d, - 0x00000000,0x00000023,0x00000000,0x00050048,0x0000001d,0x00000000,0x00000007,0x00000010, - 0x00030047,0x0000001d,0x00000002,0x00040047,0x0000001f,0x00000022,0x00000000,0x00040047, - 0x0000001f,0x00000021,0x00000000,0x00040047,0x00000023,0x0000001e,0x00000000,0x00020013, - 0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040017, - 0x00000007,0x00000006,0x00000004,0x00040017,0x00000008,0x00000006,0x00000002,0x0004001e, - 0x00000009,0x00000007,0x00000008,0x00040020,0x0000000a,0x00000003,0x00000009,0x0004003b, - 0x0000000a,0x0000000b,0x00000003,0x00040015,0x0000000c,0x00000020,0x00000001,0x0004002b, - 0x0000000c,0x0000000d,0x00000000,0x00040020,0x0000000e,0x00000001,0x00000007,0x0004003b, - 0x0000000e,0x0000000f,0x00000001,0x00040020,0x00000011,0x00000003,0x00000007,0x0004002b, - 0x0000000c,0x00000013,0x00000001,0x00040020,0x00000014,0x00000001,0x00000008,0x0004003b, - 0x00000014,0x00000015,0x00000001,0x00040020,0x00000017,0x00000003,0x00000008,0x0003001e, - 0x00000019,0x00000007,0x00040020,0x0000001a,0x00000003,0x00000019,0x0004003b,0x0000001a, - 0x0000001b,0x00000003,0x00040018,0x0000001c,0x00000007,0x00000004,0x0003001e,0x0000001d, - 0x0000001c,0x00040020,0x0000001e,0x00000002,0x0000001d,0x0004003b,0x0000001e,0x0000001f, - 0x00000002,0x00040020,0x00000020,0x00000002,0x0000001c,0x0004003b,0x00000014,0x00000023, - 0x00000001,0x0004002b,0x00000006,0x00000025,0x00000000,0x0004002b,0x00000006,0x00000026, - 0x3f800000,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005, - 0x0004003d,0x00000007,0x00000010,0x0000000f,0x00050041,0x00000011,0x00000012,0x0000000b, - 0x0000000d,0x0003003e,0x00000012,0x00000010,0x0004003d,0x00000008,0x00000016,0x00000015, - 0x00050041,0x00000017,0x00000018,0x0000000b,0x00000013,0x0003003e,0x00000018,0x00000016, - 0x00050041,0x00000020,0x00000021,0x0000001f,0x0000000d,0x0004003d,0x0000001c,0x00000022, - 0x00000021,0x0004003d,0x00000008,0x00000024,0x00000023,0x00050051,0x00000006,0x00000027, - 0x00000024,0x00000000,0x00050051,0x00000006,0x00000028,0x00000024,0x00000001,0x00070050, - 0x00000007,0x00000029,0x00000027,0x00000028,0x00000025,0x00000026,0x00050091,0x00000007, - 0x0000002a,0x00000022,0x00000029,0x00050041,0x00000011,0x0000002b,0x0000001b,0x0000000d, - 0x0003003e,0x0000002b,0x0000002a,0x000100fd,0x00010038 -}; - -// glsl_shader.frag, compiled with: -// # glslangValidator -V -x -o glsl_shader.frag.u32 glsl_shader.frag -/* -#version 450 core -layout(location = 0) out vec4 fColor; -layout(set=0, binding=1) uniform sampler s; -layout(set=1, binding=0) uniform texture2D t; -layout(location = 0) in struct { vec4 Color; vec2 UV; } In; -void main() -{ - fColor = In.Color * texture(sampler2D(t, s), In.UV.st); -} -*/ -static uint32_t __glsl_shader_frag_spv[] = -{ - 0x07230203,0x00010000,0x00080007,0x00000023,0x00000000,0x00020011,0x00000001,0x0006000b, - 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, - 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000009,0x0000000d,0x00030010, - 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, - 0x00000000,0x00040005,0x00000009,0x6c6f4366,0x0000726f,0x00030005,0x0000000b,0x00000000, - 0x00050006,0x0000000b,0x00000000,0x6f6c6f43,0x00000072,0x00040006,0x0000000b,0x00000001, - 0x00005655,0x00030005,0x0000000d,0x00006e49,0x00030005,0x00000015,0x00000074,0x00030005, - 0x00000019,0x00000073,0x00040047,0x00000009,0x0000001e,0x00000000,0x00040047,0x0000000d, - 0x0000001e,0x00000000,0x00040047,0x00000015,0x00000022,0x00000001,0x00040047,0x00000015, - 0x00000021,0x00000000,0x00040047,0x00000019,0x00000022,0x00000000,0x00040047,0x00000019, - 0x00000021,0x00000001,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016, - 0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000004,0x00040020,0x00000008, - 0x00000003,0x00000007,0x0004003b,0x00000008,0x00000009,0x00000003,0x00040017,0x0000000a, - 0x00000006,0x00000002,0x0004001e,0x0000000b,0x00000007,0x0000000a,0x00040020,0x0000000c, - 0x00000001,0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000001,0x00040015,0x0000000e, - 0x00000020,0x00000001,0x0004002b,0x0000000e,0x0000000f,0x00000000,0x00040020,0x00000010, - 0x00000001,0x00000007,0x00090019,0x00000013,0x00000006,0x00000001,0x00000000,0x00000000, - 0x00000000,0x00000001,0x00000000,0x00040020,0x00000014,0x00000000,0x00000013,0x0004003b, - 0x00000014,0x00000015,0x00000000,0x0002001a,0x00000017,0x00040020,0x00000018,0x00000000, - 0x00000017,0x0004003b,0x00000018,0x00000019,0x00000000,0x0003001b,0x0000001b,0x00000013, - 0x0004002b,0x0000000e,0x0000001d,0x00000001,0x00040020,0x0000001e,0x00000001,0x0000000a, - 0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x00050041, - 0x00000010,0x00000011,0x0000000d,0x0000000f,0x0004003d,0x00000007,0x00000012,0x00000011, - 0x0004003d,0x00000013,0x00000016,0x00000015,0x0004003d,0x00000017,0x0000001a,0x00000019, - 0x00050056,0x0000001b,0x0000001c,0x00000016,0x0000001a,0x00050041,0x0000001e,0x0000001f, - 0x0000000d,0x0000001d,0x0004003d,0x0000000a,0x00000020,0x0000001f,0x00050057,0x00000007, - 0x00000021,0x0000001c,0x00000020,0x00050085,0x00000007,0x00000022,0x00000012,0x00000021, - 0x0003003e,0x00000009,0x00000022,0x000100fd,0x00010038 -}; - -static void SafeRelease(ImDrawIdx*& res) -{ - if (res) - delete[] res; - res = NULL; -} -static void SafeRelease(ImDrawVert*& res) -{ - if (res) - delete[] res; - res = NULL; -} -static void SafeRelease(WGPUBindGroupLayout& res) -{ - if (res) - wgpuBindGroupLayoutRelease(res); - res = NULL; -} -static void SafeRelease(WGPUBindGroup& res) -{ - if (res) - wgpuBindGroupRelease(res); - res = NULL; -} -static void SafeRelease(WGPUBuffer& res) -{ - if (res) - wgpuBufferRelease(res); - res = NULL; -} -static void SafeRelease(WGPURenderPipeline& res) -{ - if (res) - wgpuRenderPipelineRelease(res); - res = NULL; -} -static void SafeRelease(WGPUSampler& res) -{ - if (res) - wgpuSamplerRelease(res); - res = NULL; -} -static void SafeRelease(WGPUShaderModule& res) -{ - if (res) - wgpuShaderModuleRelease(res); - res = NULL; -} -static void SafeRelease(WGPUTextureView& res) -{ - if (res) - wgpuTextureViewRelease(res); - res = NULL; -} -static void SafeRelease(WGPUTexture& res) -{ - if (res) - wgpuTextureRelease(res); - res = NULL; -} - -static void SafeRelease(RenderResources& res) -{ - SafeRelease(res.FontTexture); - SafeRelease(res.FontTextureView); - SafeRelease(res.Sampler); - SafeRelease(res.Uniforms); - SafeRelease(res.CommonBindGroup); - SafeRelease(res.ImageBindGroupLayout); - SafeRelease(res.ImageBindGroup); -}; - -static void SafeRelease(FrameResources& res) -{ - SafeRelease(res.IndexBuffer); - SafeRelease(res.VertexBuffer); - SafeRelease(res.IndexBufferHost); - SafeRelease(res.VertexBufferHost); -} - -static WGPUProgrammableStageDescriptor ImGui_ImplWGPU_CreateShaderModule(uint32_t* binary_data, uint32_t binary_data_size) -{ - WGPUShaderModuleSPIRVDescriptor spirv_desc = {}; - spirv_desc.chain.sType = WGPUSType_ShaderModuleSPIRVDescriptor; - spirv_desc.codeSize = binary_data_size; - spirv_desc.code = binary_data; - - WGPUShaderModuleDescriptor desc; - desc.nextInChain = reinterpret_cast(&spirv_desc); - - WGPUProgrammableStageDescriptor stage_desc = {}; - stage_desc.module = wgpuDeviceCreateShaderModule(g_wgpuDevice, &desc); - stage_desc.entryPoint = "main"; - return stage_desc; -} - -static WGPUBindGroup ImGui_ImplWGPU_CreateImageBindGroup(WGPUBindGroupLayout layout, WGPUTextureView texture) -{ - WGPUBindGroupEntry image_bg_entries[] = { { 0, 0, 0, 0, 0, texture } }; - - WGPUBindGroupDescriptor image_bg_descriptor = {}; - image_bg_descriptor.layout = layout; - image_bg_descriptor.entryCount = sizeof(image_bg_entries) / sizeof(WGPUBindGroupEntry); - image_bg_descriptor.entries = image_bg_entries; - return wgpuDeviceCreateBindGroup(g_wgpuDevice, &image_bg_descriptor); -} - -static void ImGui_ImplWGPU_SetupRenderState(ImDrawData* draw_data, WGPURenderPassEncoder ctx, FrameResources* fr) -{ - // Setup orthographic projection matrix into our constant buffer - // Our visible imgui space lies from draw_data->DisplayPos (top left) to draw_data->DisplayPos+data_data->DisplaySize (bottom right). - { - float L = draw_data->DisplayPos.x; - float R = draw_data->DisplayPos.x + draw_data->DisplaySize.x; - float T = draw_data->DisplayPos.y; - float B = draw_data->DisplayPos.y + draw_data->DisplaySize.y; - float mvp[4][4] = - { - { 2.0f/(R-L), 0.0f, 0.0f, 0.0f }, - { 0.0f, 2.0f/(T-B), 0.0f, 0.0f }, - { 0.0f, 0.0f, 0.5f, 0.0f }, - { (R+L)/(L-R), (T+B)/(B-T), 0.5f, 1.0f }, - }; - wgpuQueueWriteBuffer(wgpuDeviceGetDefaultQueue(g_wgpuDevice), g_resources.Uniforms, 0, mvp, sizeof(mvp)); - } - - // Setup viewport - wgpuRenderPassEncoderSetViewport(ctx, 0, 0, draw_data->DisplaySize.x, draw_data->DisplaySize.y, 0, 1); - - // Bind shader and vertex buffers - unsigned int stride = sizeof(ImDrawVert); - unsigned int offset = 0; - wgpuRenderPassEncoderSetVertexBuffer(ctx, 0, fr->VertexBuffer, offset, fr->VertexBufferSize * stride); - wgpuRenderPassEncoderSetIndexBuffer(ctx, fr->IndexBuffer, sizeof(ImDrawIdx) == 2 ? WGPUIndexFormat_Uint16 : WGPUIndexFormat_Uint32, 0, fr->IndexBufferSize * sizeof(ImDrawIdx)); - wgpuRenderPassEncoderSetPipeline(ctx, g_pipelineState); - wgpuRenderPassEncoderSetBindGroup(ctx, 0, g_resources.CommonBindGroup, 0, NULL); - - // Setup blend factor - WGPUColor blend_color = { 0.f, 0.f, 0.f, 0.f }; - wgpuRenderPassEncoderSetBlendColor(ctx, &blend_color); -} - -// Render function -// (this used to be set in io.RenderDrawListsFn and called by ImGui::Render(), but you can now call this directly from your main loop) -void ImGui_ImplWGPU_RenderDrawData(ImDrawData* draw_data, WGPURenderPassEncoder pass_encoder) -{ - // Avoid rendering when minimized - if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) - return; - - // FIXME: Assuming that this only gets called once per frame! - // If not, we can't just re-allocate the IB or VB, we'll have to do a proper allocator. - g_frameIndex = g_frameIndex + 1; - FrameResources* fr = &g_pFrameResources[g_frameIndex % g_numFramesInFlight]; - - // Create and grow vertex/index buffers if needed - if (fr->VertexBuffer == NULL || fr->VertexBufferSize < draw_data->TotalVtxCount) - { - SafeRelease(fr->VertexBuffer); - SafeRelease(fr->VertexBufferHost); - fr->VertexBufferSize = draw_data->TotalVtxCount + 5000; - - WGPUBufferDescriptor vb_desc = - { - NULL, - "Dear ImGui Vertex buffer", - WGPUBufferUsage_CopyDst | WGPUBufferUsage_Vertex, - fr->VertexBufferSize * sizeof(ImDrawVert), - false - }; - fr->VertexBuffer = wgpuDeviceCreateBuffer(g_wgpuDevice, &vb_desc); - if (!fr->VertexBuffer) - return; - - fr->VertexBufferHost = new ImDrawVert[fr->VertexBufferSize]; - } - if (fr->IndexBuffer == NULL || fr->IndexBufferSize < draw_data->TotalIdxCount) - { - SafeRelease(fr->IndexBuffer); - SafeRelease(fr->IndexBufferHost); - fr->IndexBufferSize = draw_data->TotalIdxCount + 10000; - - WGPUBufferDescriptor ib_desc = - { - NULL, - "Dear ImGui Index buffer", - WGPUBufferUsage_CopyDst | WGPUBufferUsage_Index, - fr->IndexBufferSize * sizeof(ImDrawIdx), - false - }; - fr->IndexBuffer = wgpuDeviceCreateBuffer(g_wgpuDevice, &ib_desc); - if (!fr->IndexBuffer) - return; - - fr->IndexBufferHost = new ImDrawIdx[fr->IndexBufferSize]; - } - - // Upload vertex/index data into a single contiguous GPU buffer - ImDrawVert* vtx_dst = (ImDrawVert*)fr->VertexBufferHost; - ImDrawIdx* idx_dst = (ImDrawIdx*)fr->IndexBufferHost; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - memcpy(vtx_dst, cmd_list->VtxBuffer.Data, cmd_list->VtxBuffer.Size * sizeof(ImDrawVert)); - memcpy(idx_dst, cmd_list->IdxBuffer.Data, cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx)); - vtx_dst += cmd_list->VtxBuffer.Size; - idx_dst += cmd_list->IdxBuffer.Size; - } - int64_t vb_write_size = ((char*)vtx_dst - (char*)fr->VertexBufferHost + 3) & ~3; - int64_t ib_write_size = ((char*)idx_dst - (char*)fr->IndexBufferHost + 3) & ~3; - wgpuQueueWriteBuffer(wgpuDeviceGetDefaultQueue(g_wgpuDevice), fr->VertexBuffer, 0, fr->VertexBufferHost, vb_write_size); - wgpuQueueWriteBuffer(wgpuDeviceGetDefaultQueue(g_wgpuDevice), fr->IndexBuffer, 0, fr->IndexBufferHost, ib_write_size); - - // Setup desired render state - ImGui_ImplWGPU_SetupRenderState(draw_data, pass_encoder, fr); - - // Render command lists - // (Because we merged all buffers into a single one, we maintain our own offset into them) - int global_vtx_offset = 0; - int global_idx_offset = 0; - ImVec2 clip_off = draw_data->DisplayPos; - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback != NULL) - { - // User callback, registered via ImDrawList::AddCallback() - // (ImDrawCallback_ResetRenderState is a special callback value used by the user to request the renderer to reset render state.) - if (pcmd->UserCallback == ImDrawCallback_ResetRenderState) - ImGui_ImplWGPU_SetupRenderState(draw_data, pass_encoder, fr); - else - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // Bind custom texture - auto bind_group = g_resources.ImageBindGroups.GetVoidPtr(ImHashData(&pcmd->TextureId, sizeof(ImTextureID))); - if (bind_group) - { - wgpuRenderPassEncoderSetBindGroup(pass_encoder, 1, (WGPUBindGroup)bind_group, 0, NULL); - } - else - { - WGPUBindGroup image_bind_group = ImGui_ImplWGPU_CreateImageBindGroup(g_resources.ImageBindGroupLayout, (WGPUTextureView)pcmd->TextureId); - g_resources.ImageBindGroups.SetVoidPtr(ImHashData(&pcmd->TextureId, sizeof(ImTextureID)), image_bind_group); - wgpuRenderPassEncoderSetBindGroup(pass_encoder, 1, image_bind_group, 0, NULL); - } - - // Apply Scissor, Bind texture, Draw - uint32_t clip_rect[4]; - clip_rect[0] = static_cast(pcmd->ClipRect.x - clip_off.x); - clip_rect[1] = static_cast(pcmd->ClipRect.y - clip_off.y); - clip_rect[2] = static_cast(pcmd->ClipRect.z - clip_off.x); - clip_rect[3] = static_cast(pcmd->ClipRect.w - clip_off.y); - wgpuRenderPassEncoderSetScissorRect(pass_encoder, clip_rect[0], clip_rect[1], clip_rect[2] - clip_rect[0], clip_rect[3] - clip_rect[1]); - wgpuRenderPassEncoderDrawIndexed(pass_encoder, pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset, 0); - } - } - global_idx_offset += cmd_list->IdxBuffer.Size; - global_vtx_offset += cmd_list->VtxBuffer.Size; - } -} - -static WGPUBuffer ImGui_ImplWGPU_CreateBufferFromData(const WGPUDevice& device, const void* data, uint64_t size, WGPUBufferUsage usage) -{ - WGPUBufferDescriptor descriptor = {}; - descriptor.size = size; - descriptor.usage = usage | WGPUBufferUsage_CopyDst; - WGPUBuffer buffer = wgpuDeviceCreateBuffer(device, &descriptor); - - WGPUQueue queue = wgpuDeviceGetDefaultQueue(g_wgpuDevice); - wgpuQueueWriteBuffer(queue, buffer, 0, data, size); - return buffer; -} - -static void ImGui_ImplWGPU_CreateFontsTexture() -{ - // Build texture atlas - ImGuiIO& io = ImGui::GetIO(); - unsigned char* pixels; - int width, height, size_pp; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height, &size_pp); - - // Upload texture to graphics system - { - WGPUTextureDescriptor tex_desc = {}; - tex_desc.label = "Dear ImGui Font Texture"; - tex_desc.dimension = WGPUTextureDimension_2D; - tex_desc.size.width = width; - tex_desc.size.height = height; - tex_desc.size.depth = 1; - tex_desc.sampleCount = 1; - tex_desc.format = WGPUTextureFormat_RGBA8Unorm; - tex_desc.mipLevelCount = 1; - tex_desc.usage = WGPUTextureUsage_CopyDst | WGPUTextureUsage_Sampled; - g_resources.FontTexture = wgpuDeviceCreateTexture(g_wgpuDevice, &tex_desc); - - WGPUTextureViewDescriptor tex_view_desc = {}; - tex_view_desc.format = WGPUTextureFormat_RGBA8Unorm; - tex_view_desc.dimension = WGPUTextureViewDimension_2D; - tex_view_desc.baseMipLevel = 0; - tex_view_desc.mipLevelCount = 1; - tex_view_desc.baseArrayLayer = 0; - tex_view_desc.arrayLayerCount = 1; - tex_view_desc.aspect = WGPUTextureAspect_All; - g_resources.FontTextureView = wgpuTextureCreateView(g_resources.FontTexture, &tex_view_desc); - } - - // Upload texture data - { - WGPUBuffer staging_buffer = ImGui_ImplWGPU_CreateBufferFromData(g_wgpuDevice, pixels, (uint32_t)(width * size_pp * height), WGPUBufferUsage_CopySrc); - - WGPUBufferCopyView bufferCopyView = {}; - bufferCopyView.buffer = staging_buffer; - bufferCopyView.layout.offset = 0; - bufferCopyView.layout.bytesPerRow = width * size_pp; - bufferCopyView.layout.rowsPerImage = height; - - WGPUTextureCopyView textureCopyView = {}; - textureCopyView.texture = g_resources.FontTexture; - textureCopyView.mipLevel = 0; - textureCopyView.origin = { 0, 0, 0 }; -#if !defined(__EMSCRIPTEN__) || HAS_EMSCRIPTEN_VERSION(2, 0, 14) - textureCopyView.aspect = WGPUTextureAspect_All; -#endif - - WGPUExtent3D copySize = { (uint32_t)width, (uint32_t)height, 1 }; - - WGPUCommandEncoderDescriptor enc_desc = {}; - WGPUCommandEncoder encoder = wgpuDeviceCreateCommandEncoder(g_wgpuDevice, &enc_desc); - wgpuCommandEncoderCopyBufferToTexture(encoder, &bufferCopyView, &textureCopyView, ©Size); - WGPUCommandBufferDescriptor cmd_buf_desc = {}; - WGPUCommandBuffer copy = wgpuCommandEncoderFinish(encoder, &cmd_buf_desc); - WGPUQueue queue = wgpuDeviceGetDefaultQueue(g_wgpuDevice); - wgpuQueueSubmit(queue, 1, ©); - - wgpuCommandEncoderRelease(encoder); - wgpuBufferRelease(staging_buffer); - } - - // Create the associated sampler - { - WGPUSamplerDescriptor sampler_desc = {}; - sampler_desc.minFilter = WGPUFilterMode_Linear; - sampler_desc.magFilter = WGPUFilterMode_Linear; - sampler_desc.mipmapFilter = WGPUFilterMode_Linear; - sampler_desc.addressModeU = WGPUAddressMode_Repeat; - sampler_desc.addressModeV = WGPUAddressMode_Repeat; - sampler_desc.addressModeW = WGPUAddressMode_Repeat; -#if !defined(__EMSCRIPTEN__) || HAS_EMSCRIPTEN_VERSION(2, 0, 14) - sampler_desc.maxAnisotropy = 1; -#endif - g_resources.Sampler = wgpuDeviceCreateSampler(g_wgpuDevice, &sampler_desc); - } - - // Store our identifier - static_assert(sizeof(ImTextureID) >= sizeof(g_resources.FontTexture), "Can't pack descriptor handle into TexID, 32-bit not supported yet."); - io.Fonts->SetTexID((ImTextureID)g_resources.FontTextureView); -} - -static void ImGui_ImplWGPU_CreateUniformBuffer() -{ - WGPUBufferDescriptor ub_desc = - { - NULL, - "Dear ImGui Uniform buffer", - WGPUBufferUsage_CopyDst | WGPUBufferUsage_Uniform, - sizeof(Uniforms), - false - }; - g_resources.Uniforms = wgpuDeviceCreateBuffer(g_wgpuDevice, &ub_desc); -} - -bool ImGui_ImplWGPU_CreateDeviceObjects() -{ - if (!g_wgpuDevice) - return false; - if (g_pipelineState) - ImGui_ImplWGPU_InvalidateDeviceObjects(); - - // Create render pipeline - WGPURenderPipelineDescriptor graphics_pipeline_desc = {}; - graphics_pipeline_desc.primitiveTopology = WGPUPrimitiveTopology_TriangleList; - graphics_pipeline_desc.sampleCount = 1; - graphics_pipeline_desc.sampleMask = UINT_MAX; - - WGPUBindGroupLayoutEntry common_bg_layout_entries[2] = {}; - common_bg_layout_entries[0].binding = 0; - common_bg_layout_entries[0].visibility = WGPUShaderStage_Vertex; -#if !defined(__EMSCRIPTEN__) || HAS_EMSCRIPTEN_VERSION(2, 0, 14) - common_bg_layout_entries[0].buffer.type = WGPUBufferBindingType_Uniform; -#else - common_bg_layout_entries[0].type = WGPUBindingType_UniformBuffer; -#endif - common_bg_layout_entries[1].binding = 1; - common_bg_layout_entries[1].visibility = WGPUShaderStage_Fragment; -#if !defined(__EMSCRIPTEN__) || HAS_EMSCRIPTEN_VERSION(2, 0, 14) - common_bg_layout_entries[1].sampler.type = WGPUSamplerBindingType_Filtering; -#else - common_bg_layout_entries[1].type = WGPUBindingType_Sampler; -#endif - - WGPUBindGroupLayoutEntry image_bg_layout_entries[1] = {}; - image_bg_layout_entries[0].binding = 0; - image_bg_layout_entries[0].visibility = WGPUShaderStage_Fragment; -#if !defined(__EMSCRIPTEN__) || HAS_EMSCRIPTEN_VERSION(2, 0, 14) - image_bg_layout_entries[0].texture.sampleType = WGPUTextureSampleType_Float; - image_bg_layout_entries[0].texture.viewDimension = WGPUTextureViewDimension_2D; -#else - image_bg_layout_entries[0].type = WGPUBindingType_SampledTexture; -#endif - - WGPUBindGroupLayoutDescriptor common_bg_layout_desc = {}; - common_bg_layout_desc.entryCount = 2; - common_bg_layout_desc.entries = common_bg_layout_entries; - - WGPUBindGroupLayoutDescriptor image_bg_layout_desc = {}; - image_bg_layout_desc.entryCount = 1; - image_bg_layout_desc.entries = image_bg_layout_entries; - - WGPUBindGroupLayout bg_layouts[2]; - bg_layouts[0] = wgpuDeviceCreateBindGroupLayout(g_wgpuDevice, &common_bg_layout_desc); - bg_layouts[1] = wgpuDeviceCreateBindGroupLayout(g_wgpuDevice, &image_bg_layout_desc); - - WGPUPipelineLayoutDescriptor layout_desc = {}; - layout_desc.bindGroupLayoutCount = 2; - layout_desc.bindGroupLayouts = bg_layouts; - graphics_pipeline_desc.layout = wgpuDeviceCreatePipelineLayout(g_wgpuDevice, &layout_desc); - - // Create the vertex shader - WGPUProgrammableStageDescriptor vertex_shader_desc = ImGui_ImplWGPU_CreateShaderModule(__glsl_shader_vert_spv, sizeof(__glsl_shader_vert_spv) / sizeof(uint32_t)); - graphics_pipeline_desc.vertexStage = vertex_shader_desc; - - // Vertex input configuration - WGPUVertexAttributeDescriptor attribute_binding_desc[] = - { - { WGPUVertexFormat_Float2, (uint64_t)IM_OFFSETOF(ImDrawVert, pos), 0 }, - { WGPUVertexFormat_Float2, (uint64_t)IM_OFFSETOF(ImDrawVert, uv), 1 }, - { WGPUVertexFormat_UChar4Norm, (uint64_t)IM_OFFSETOF(ImDrawVert, col), 2 }, - }; - - WGPUVertexBufferLayoutDescriptor buffer_binding_desc; - buffer_binding_desc.arrayStride = sizeof(ImDrawVert); - buffer_binding_desc.stepMode = WGPUInputStepMode_Vertex; - buffer_binding_desc.attributeCount = 3; - buffer_binding_desc.attributes = attribute_binding_desc; - - WGPUVertexStateDescriptor vertex_state_desc = {}; - vertex_state_desc.indexFormat = WGPUIndexFormat_Undefined; - vertex_state_desc.vertexBufferCount = 1; - vertex_state_desc.vertexBuffers = &buffer_binding_desc; - - graphics_pipeline_desc.vertexState = &vertex_state_desc; - - // Create the pixel shader - WGPUProgrammableStageDescriptor pixel_shader_desc = ImGui_ImplWGPU_CreateShaderModule(__glsl_shader_frag_spv, sizeof(__glsl_shader_frag_spv) / sizeof(uint32_t)); - graphics_pipeline_desc.fragmentStage = &pixel_shader_desc; - - // Create the blending setup - WGPUColorStateDescriptor color_state = {}; - { - color_state.format = g_renderTargetFormat; - color_state.alphaBlend.operation = WGPUBlendOperation_Add; - color_state.alphaBlend.srcFactor = WGPUBlendFactor_One; - color_state.alphaBlend.dstFactor = WGPUBlendFactor_OneMinusSrcAlpha; - color_state.colorBlend.operation = WGPUBlendOperation_Add; - color_state.colorBlend.srcFactor = WGPUBlendFactor_SrcAlpha; - color_state.colorBlend.dstFactor = WGPUBlendFactor_OneMinusSrcAlpha; - color_state.writeMask = WGPUColorWriteMask_All; - - graphics_pipeline_desc.colorStateCount = 1; - graphics_pipeline_desc.colorStates = &color_state; - graphics_pipeline_desc.alphaToCoverageEnabled = false; - } - - // Create the rasterizer state - WGPURasterizationStateDescriptor raster_desc = {}; - { - raster_desc.cullMode = WGPUCullMode_None; - raster_desc.frontFace = WGPUFrontFace_CW; - raster_desc.depthBias = 0; - raster_desc.depthBiasClamp = 0; - raster_desc.depthBiasSlopeScale = 0; - graphics_pipeline_desc.rasterizationState = &raster_desc; - } - - // Create depth-stencil State - WGPUDepthStencilStateDescriptor depth_desc = {}; - { - // Configure disabled state - depth_desc.format = WGPUTextureFormat_Undefined; - depth_desc.depthWriteEnabled = true; - depth_desc.depthCompare = WGPUCompareFunction_Always; - depth_desc.stencilReadMask = 0; - depth_desc.stencilWriteMask = 0; - depth_desc.stencilBack.compare = WGPUCompareFunction_Always; - depth_desc.stencilBack.failOp = WGPUStencilOperation_Keep; - depth_desc.stencilBack.depthFailOp = WGPUStencilOperation_Keep; - depth_desc.stencilBack.passOp = WGPUStencilOperation_Keep; - depth_desc.stencilFront.compare = WGPUCompareFunction_Always; - depth_desc.stencilFront.failOp = WGPUStencilOperation_Keep; - depth_desc.stencilFront.depthFailOp = WGPUStencilOperation_Keep; - depth_desc.stencilFront.passOp = WGPUStencilOperation_Keep; - - // No depth buffer corresponds to no configuration - graphics_pipeline_desc.depthStencilState = NULL; - } - - g_pipelineState = wgpuDeviceCreateRenderPipeline(g_wgpuDevice, &graphics_pipeline_desc); - - ImGui_ImplWGPU_CreateFontsTexture(); - ImGui_ImplWGPU_CreateUniformBuffer(); - - // Create resource bind group - WGPUBindGroupEntry common_bg_entries[] = - { - { 0, g_resources.Uniforms, 0, sizeof(Uniforms), 0, 0 }, - { 1, 0, 0, 0, g_resources.Sampler, 0 }, - }; - - WGPUBindGroupDescriptor common_bg_descriptor = {}; - common_bg_descriptor.layout = bg_layouts[0]; - common_bg_descriptor.entryCount = sizeof(common_bg_entries) / sizeof(WGPUBindGroupEntry); - common_bg_descriptor.entries = common_bg_entries; - g_resources.CommonBindGroup = wgpuDeviceCreateBindGroup(g_wgpuDevice, &common_bg_descriptor); - g_resources.ImageBindGroupLayout = bg_layouts[1]; - - WGPUBindGroup image_bind_group = ImGui_ImplWGPU_CreateImageBindGroup(bg_layouts[1], g_resources.FontTextureView); - g_resources.ImageBindGroup = image_bind_group; - g_resources.ImageBindGroups.SetVoidPtr(ImHashData(&g_resources.FontTextureView, sizeof(ImTextureID)), image_bind_group); - - SafeRelease(vertex_shader_desc.module); - SafeRelease(pixel_shader_desc.module); - SafeRelease(bg_layouts[0]); - - return true; -} - -void ImGui_ImplWGPU_InvalidateDeviceObjects() -{ - if (!g_wgpuDevice) - return; - - SafeRelease(g_pipelineState); - SafeRelease(g_resources); - - ImGuiIO& io = ImGui::GetIO(); - io.Fonts->SetTexID(NULL); // We copied g_pFontTextureView to io.Fonts->TexID so let's clear that as well. - - for (unsigned int i = 0; i < g_numFramesInFlight; i++) - SafeRelease(g_pFrameResources[i]); -} - -bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight, WGPUTextureFormat rt_format) -{ - // Setup backend capabilities flags - ImGuiIO& io = ImGui::GetIO(); - io.BackendRendererName = "imgui_impl_webgpu"; - io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset; // We can honor the ImDrawCmd::VtxOffset field, allowing for large meshes. - - g_wgpuDevice = device; - g_renderTargetFormat = rt_format; - g_pFrameResources = new FrameResources[num_frames_in_flight]; - g_numFramesInFlight = num_frames_in_flight; - g_frameIndex = UINT_MAX; - - g_resources.FontTexture = NULL; - g_resources.FontTextureView = NULL; - g_resources.Sampler = NULL; - g_resources.Uniforms = NULL; - g_resources.CommonBindGroup = NULL; - g_resources.ImageBindGroupLayout = NULL; - g_resources.ImageBindGroups.Data.reserve(100); - g_resources.ImageBindGroup = NULL; - - // Create buffers with a default size (they will later be grown as needed) - for (int i = 0; i < num_frames_in_flight; i++) - { - FrameResources* fr = &g_pFrameResources[i]; - fr->IndexBuffer = NULL; - fr->VertexBuffer = NULL; - fr->IndexBufferHost = NULL; - fr->VertexBufferHost = NULL; - fr->IndexBufferSize = 10000; - fr->VertexBufferSize = 5000; - } - - return true; -} - -void ImGui_ImplWGPU_Shutdown() -{ - ImGui_ImplWGPU_InvalidateDeviceObjects(); - delete[] g_pFrameResources; - g_pFrameResources = NULL; - g_wgpuDevice = NULL; - g_numFramesInFlight = 0; - g_frameIndex = UINT_MAX; -} - -void ImGui_ImplWGPU_NewFrame() -{ - if (!g_pipelineState) - ImGui_ImplWGPU_CreateDeviceObjects(); -} diff --git a/third_party/imgui/backends/imgui_impl_wgpu.h b/third_party/imgui/backends/imgui_impl_wgpu.h deleted file mode 100644 index f6c61528..00000000 --- a/third_party/imgui/backends/imgui_impl_wgpu.h +++ /dev/null @@ -1,24 +0,0 @@ -// dear imgui: Renderer for WebGPU -// This needs to be used along with a Platform Binding (e.g. GLFW) -// (Please note that WebGPU is currently experimental, will not run on non-beta browsers, and may break.) - -// Implemented features: -// [X] Renderer: User texture binding. Use 'WGPUTextureView' as ImTextureID. Read the FAQ about ImTextureID! -// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API -#include - -IMGUI_IMPL_API bool ImGui_ImplWGPU_Init(WGPUDevice device, int num_frames_in_flight, WGPUTextureFormat rt_format); -IMGUI_IMPL_API void ImGui_ImplWGPU_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplWGPU_NewFrame(); -IMGUI_IMPL_API void ImGui_ImplWGPU_RenderDrawData(ImDrawData* draw_data, WGPURenderPassEncoder pass_encoder); - -// Use if you want to reset your rendering device without losing Dear ImGui state. -IMGUI_IMPL_API void ImGui_ImplWGPU_InvalidateDeviceObjects(); -IMGUI_IMPL_API bool ImGui_ImplWGPU_CreateDeviceObjects(); diff --git a/third_party/imgui/backends/imgui_impl_win32.cpp b/third_party/imgui/backends/imgui_impl_win32.cpp deleted file mode 100644 index 04e462ce..00000000 --- a/third_party/imgui/backends/imgui_impl_win32.cpp +++ /dev/null @@ -1,537 +0,0 @@ -// dear imgui: Platform Backend for Windows (standard windows API for 32 and 64 bits applications) -// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) - -// Implemented features: -// [X] Platform: Clipboard support (for Win32 this is actually part of core dear imgui) -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. -// [X] Platform: Keyboard arrays indexed using VK_* Virtual Key Codes, e.g. ImGui::IsKeyPressed(VK_SPACE). -// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_win32.h" -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN -#endif -#include -#include -#include - -// Configuration flags to add in your imconfig.h file: -//#define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD // Disable gamepad support (this used to be meaningful before <1.81) but we know load XInput dynamically so the option is less relevant now. - -// Using XInput for gamepad (will load DLL dynamically) -#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD -#include -typedef DWORD (WINAPI *PFN_XInputGetCapabilities)(DWORD, DWORD, XINPUT_CAPABILITIES*); -typedef DWORD (WINAPI *PFN_XInputGetState)(DWORD, XINPUT_STATE*); -#endif - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021-02-18: Added ImGui_ImplWin32_EnableAlphaCompositing(). Non Visual Studio users will need to link with dwmapi.lib (MinGW/gcc: use -ldwmapi). -// 2021-02-17: Fixed ImGui_ImplWin32_EnableDpiAwareness() attempting to get SetProcessDpiAwareness from shcore.dll on Windows 8 whereas it is only supported on Windows 8.1. -// 2021-01-25: Inputs: Dynamically loading XInput DLL. -// 2020-12-04: Misc: Fixed setting of io.DisplaySize to invalid/uninitialized data when after hwnd has been closed. -// 2020-03-03: Inputs: Calling AddInputCharacterUTF16() to support surrogate pairs leading to codepoint >= 0x10000 (for more complete CJK inputs) -// 2020-02-17: Added ImGui_ImplWin32_EnableDpiAwareness(), ImGui_ImplWin32_GetDpiScaleForHwnd(), ImGui_ImplWin32_GetDpiScaleForMonitor() helper functions. -// 2020-01-14: Inputs: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD/IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT. -// 2019-12-05: Inputs: Added support for ImGuiMouseCursor_NotAllowed mouse cursor. -// 2019-05-11: Inputs: Don't filter value from WM_CHAR before calling AddInputCharacter(). -// 2019-01-17: Misc: Using GetForegroundWindow()+IsChild() instead of GetActiveWindow() to be compatible with windows created in a different thread or parent. -// 2019-01-17: Inputs: Added support for mouse buttons 4 and 5 via WM_XBUTTON* messages. -// 2019-01-15: Inputs: Added support for XInput gamepads (if ImGuiConfigFlags_NavEnableGamepad is set by user application). -// 2018-11-30: Misc: Setting up io.BackendPlatformName so it can be displayed in the About Window. -// 2018-06-29: Inputs: Added support for the ImGuiMouseCursor_Hand cursor. -// 2018-06-10: Inputs: Fixed handling of mouse wheel messages to support fine position messages (typically sent by track-pads). -// 2018-06-08: Misc: Extracted imgui_impl_win32.cpp/.h away from the old combined DX9/DX10/DX11/DX12 examples. -// 2018-03-20: Misc: Setup io.BackendFlags ImGuiBackendFlags_HasMouseCursors and ImGuiBackendFlags_HasSetMousePos flags + honor ImGuiConfigFlags_NoMouseCursorChange flag. -// 2018-02-20: Inputs: Added support for mouse cursors (ImGui::GetMouseCursor() value and WM_SETCURSOR message handling). -// 2018-02-06: Inputs: Added mapping for ImGuiKey_Space. -// 2018-02-06: Inputs: Honoring the io.WantSetMousePos by repositioning the mouse (when using navigation and ImGuiConfigFlags_NavMoveMouse is set). -// 2018-02-06: Misc: Removed call to ImGui::Shutdown() which is not available from 1.60 WIP, user needs to call CreateContext/DestroyContext themselves. -// 2018-01-20: Inputs: Added Horizontal Mouse Wheel support. -// 2018-01-08: Inputs: Added mapping for ImGuiKey_Insert. -// 2018-01-05: Inputs: Added WM_LBUTTONDBLCLK double-click handlers for window classes with the CS_DBLCLKS flag. -// 2017-10-23: Inputs: Added WM_SYSKEYDOWN / WM_SYSKEYUP handlers so e.g. the VK_MENU key can be read. -// 2017-10-23: Inputs: Using Win32 ::SetCapture/::GetCapture() to retrieve mouse positions outside the client area when dragging. -// 2016-11-12: Inputs: Only call Win32 ::SetCursor(NULL) when io.MouseDrawCursor is set. - -// Win32 Data -static HWND g_hWnd = NULL; -static INT64 g_Time = 0; -static INT64 g_TicksPerSecond = 0; -static ImGuiMouseCursor g_LastMouseCursor = ImGuiMouseCursor_COUNT; -static bool g_HasGamepad = false; -static bool g_WantUpdateHasGamepad = true; - -// XInput DLL and functions -#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD -static HMODULE g_XInputDLL = NULL; -static PFN_XInputGetCapabilities g_XInputGetCapabilities = NULL; -static PFN_XInputGetState g_XInputGetState = NULL; -#endif - -// Functions -bool ImGui_ImplWin32_Init(void* hwnd) -{ - if (!::QueryPerformanceFrequency((LARGE_INTEGER*)&g_TicksPerSecond)) - return false; - if (!::QueryPerformanceCounter((LARGE_INTEGER*)&g_Time)) - return false; - - // Setup backend capabilities flags - g_hWnd = (HWND)hwnd; - ImGuiIO& io = ImGui::GetIO(); - io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional) - io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos; // We can honor io.WantSetMousePos requests (optional, rarely used) - io.BackendPlatformName = "imgui_impl_win32"; - io.ImeWindowHandle = hwnd; - - // Keyboard mapping. Dear ImGui will use those indices to peek into the io.KeysDown[] array that we will update during the application lifetime. - io.KeyMap[ImGuiKey_Tab] = VK_TAB; - io.KeyMap[ImGuiKey_LeftArrow] = VK_LEFT; - io.KeyMap[ImGuiKey_RightArrow] = VK_RIGHT; - io.KeyMap[ImGuiKey_UpArrow] = VK_UP; - io.KeyMap[ImGuiKey_DownArrow] = VK_DOWN; - io.KeyMap[ImGuiKey_PageUp] = VK_PRIOR; - io.KeyMap[ImGuiKey_PageDown] = VK_NEXT; - io.KeyMap[ImGuiKey_Home] = VK_HOME; - io.KeyMap[ImGuiKey_End] = VK_END; - io.KeyMap[ImGuiKey_Insert] = VK_INSERT; - io.KeyMap[ImGuiKey_Delete] = VK_DELETE; - io.KeyMap[ImGuiKey_Backspace] = VK_BACK; - io.KeyMap[ImGuiKey_Space] = VK_SPACE; - io.KeyMap[ImGuiKey_Enter] = VK_RETURN; - io.KeyMap[ImGuiKey_Escape] = VK_ESCAPE; - io.KeyMap[ImGuiKey_KeyPadEnter] = VK_RETURN; - io.KeyMap[ImGuiKey_A] = 'A'; - io.KeyMap[ImGuiKey_C] = 'C'; - io.KeyMap[ImGuiKey_V] = 'V'; - io.KeyMap[ImGuiKey_X] = 'X'; - io.KeyMap[ImGuiKey_Y] = 'Y'; - io.KeyMap[ImGuiKey_Z] = 'Z'; - - // Dynamically load XInput library -#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD - const char* xinput_dll_names[] = - { - "xinput1_4.dll", // Windows 8+ - "xinput1_3.dll", // DirectX SDK - "xinput9_1_0.dll", // Windows Vista, Windows 7 - "xinput1_2.dll", // DirectX SDK - "xinput1_1.dll" // DirectX SDK - }; - for (int n = 0; n < IM_ARRAYSIZE(xinput_dll_names); n++) - if (HMODULE dll = ::LoadLibraryA(xinput_dll_names[n])) - { - g_XInputDLL = dll; - g_XInputGetCapabilities = (PFN_XInputGetCapabilities)::GetProcAddress(dll, "XInputGetCapabilities"); - g_XInputGetState = (PFN_XInputGetState)::GetProcAddress(dll, "XInputGetState"); - break; - } -#endif // IMGUI_IMPL_WIN32_DISABLE_GAMEPAD - - return true; -} - -void ImGui_ImplWin32_Shutdown() -{ - // Unload XInput library -#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD - if (g_XInputDLL) - ::FreeLibrary(g_XInputDLL); - g_XInputDLL = NULL; - g_XInputGetCapabilities = NULL; - g_XInputGetState = NULL; -#endif // IMGUI_IMPL_WIN32_DISABLE_GAMEPAD - - g_hWnd = NULL; - g_Time = 0; - g_TicksPerSecond = 0; - g_LastMouseCursor = ImGuiMouseCursor_COUNT; - g_HasGamepad = false; - g_WantUpdateHasGamepad = true; -} - -static bool ImGui_ImplWin32_UpdateMouseCursor() -{ - ImGuiIO& io = ImGui::GetIO(); - if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) - return false; - - ImGuiMouseCursor imgui_cursor = ImGui::GetMouseCursor(); - if (imgui_cursor == ImGuiMouseCursor_None || io.MouseDrawCursor) - { - // Hide OS mouse cursor if imgui is drawing it or if it wants no cursor - ::SetCursor(NULL); - } - else - { - // Show OS mouse cursor - LPTSTR win32_cursor = IDC_ARROW; - switch (imgui_cursor) - { - case ImGuiMouseCursor_Arrow: win32_cursor = IDC_ARROW; break; - case ImGuiMouseCursor_TextInput: win32_cursor = IDC_IBEAM; break; - case ImGuiMouseCursor_ResizeAll: win32_cursor = IDC_SIZEALL; break; - case ImGuiMouseCursor_ResizeEW: win32_cursor = IDC_SIZEWE; break; - case ImGuiMouseCursor_ResizeNS: win32_cursor = IDC_SIZENS; break; - case ImGuiMouseCursor_ResizeNESW: win32_cursor = IDC_SIZENESW; break; - case ImGuiMouseCursor_ResizeNWSE: win32_cursor = IDC_SIZENWSE; break; - case ImGuiMouseCursor_Hand: win32_cursor = IDC_HAND; break; - case ImGuiMouseCursor_NotAllowed: win32_cursor = IDC_NO; break; - } - ::SetCursor(::LoadCursor(NULL, win32_cursor)); - } - return true; -} - -static void ImGui_ImplWin32_UpdateMousePos() -{ - ImGuiIO& io = ImGui::GetIO(); - - // Set OS mouse position if requested (rarely used, only when ImGuiConfigFlags_NavEnableSetMousePos is enabled by user) - if (io.WantSetMousePos) - { - POINT pos = { (int)io.MousePos.x, (int)io.MousePos.y }; - if (::ClientToScreen(g_hWnd, &pos)) - ::SetCursorPos(pos.x, pos.y); - } - - // Set mouse position - io.MousePos = ImVec2(-FLT_MAX, -FLT_MAX); - POINT pos; - if (HWND active_window = ::GetForegroundWindow()) - if (active_window == g_hWnd || ::IsChild(active_window, g_hWnd)) - if (::GetCursorPos(&pos) && ::ScreenToClient(g_hWnd, &pos)) - io.MousePos = ImVec2((float)pos.x, (float)pos.y); -} - -// Gamepad navigation mapping -static void ImGui_ImplWin32_UpdateGamepads() -{ -#ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD - ImGuiIO& io = ImGui::GetIO(); - memset(io.NavInputs, 0, sizeof(io.NavInputs)); - if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) - return; - - // Calling XInputGetState() every frame on disconnected gamepads is unfortunately too slow. - // Instead we refresh gamepad availability by calling XInputGetCapabilities() _only_ after receiving WM_DEVICECHANGE. - if (g_WantUpdateHasGamepad) - { - XINPUT_CAPABILITIES caps; - g_HasGamepad = g_XInputGetCapabilities ? (g_XInputGetCapabilities(0, XINPUT_FLAG_GAMEPAD, &caps) == ERROR_SUCCESS) : false; - g_WantUpdateHasGamepad = false; - } - - io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; - XINPUT_STATE xinput_state; - if (g_HasGamepad && g_XInputGetState && g_XInputGetState(0, &xinput_state) == ERROR_SUCCESS) - { - const XINPUT_GAMEPAD& gamepad = xinput_state.Gamepad; - io.BackendFlags |= ImGuiBackendFlags_HasGamepad; - - #define MAP_BUTTON(NAV_NO, BUTTON_ENUM) { io.NavInputs[NAV_NO] = (gamepad.wButtons & BUTTON_ENUM) ? 1.0f : 0.0f; } - #define MAP_ANALOG(NAV_NO, VALUE, V0, V1) { float vn = (float)(VALUE - V0) / (float)(V1 - V0); if (vn > 1.0f) vn = 1.0f; if (vn > 0.0f && io.NavInputs[NAV_NO] < vn) io.NavInputs[NAV_NO] = vn; } - MAP_BUTTON(ImGuiNavInput_Activate, XINPUT_GAMEPAD_A); // Cross / A - MAP_BUTTON(ImGuiNavInput_Cancel, XINPUT_GAMEPAD_B); // Circle / B - MAP_BUTTON(ImGuiNavInput_Menu, XINPUT_GAMEPAD_X); // Square / X - MAP_BUTTON(ImGuiNavInput_Input, XINPUT_GAMEPAD_Y); // Triangle / Y - MAP_BUTTON(ImGuiNavInput_DpadLeft, XINPUT_GAMEPAD_DPAD_LEFT); // D-Pad Left - MAP_BUTTON(ImGuiNavInput_DpadRight, XINPUT_GAMEPAD_DPAD_RIGHT); // D-Pad Right - MAP_BUTTON(ImGuiNavInput_DpadUp, XINPUT_GAMEPAD_DPAD_UP); // D-Pad Up - MAP_BUTTON(ImGuiNavInput_DpadDown, XINPUT_GAMEPAD_DPAD_DOWN); // D-Pad Down - MAP_BUTTON(ImGuiNavInput_FocusPrev, XINPUT_GAMEPAD_LEFT_SHOULDER); // L1 / LB - MAP_BUTTON(ImGuiNavInput_FocusNext, XINPUT_GAMEPAD_RIGHT_SHOULDER); // R1 / RB - MAP_BUTTON(ImGuiNavInput_TweakSlow, XINPUT_GAMEPAD_LEFT_SHOULDER); // L1 / LB - MAP_BUTTON(ImGuiNavInput_TweakFast, XINPUT_GAMEPAD_RIGHT_SHOULDER); // R1 / RB - MAP_ANALOG(ImGuiNavInput_LStickLeft, gamepad.sThumbLX, -XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, -32768); - MAP_ANALOG(ImGuiNavInput_LStickRight, gamepad.sThumbLX, +XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, +32767); - MAP_ANALOG(ImGuiNavInput_LStickUp, gamepad.sThumbLY, +XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, +32767); - MAP_ANALOG(ImGuiNavInput_LStickDown, gamepad.sThumbLY, -XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE, -32767); - #undef MAP_BUTTON - #undef MAP_ANALOG - } -#endif // #ifndef IMGUI_IMPL_WIN32_DISABLE_GAMEPAD -} - -void ImGui_ImplWin32_NewFrame() -{ - ImGuiIO& io = ImGui::GetIO(); - IM_ASSERT(io.Fonts->IsBuilt() && "Font atlas not built! It is generally built by the renderer backend. Missing call to renderer _NewFrame() function? e.g. ImGui_ImplOpenGL3_NewFrame()."); - - // Setup display size (every frame to accommodate for window resizing) - RECT rect = { 0, 0, 0, 0 }; - ::GetClientRect(g_hWnd, &rect); - io.DisplaySize = ImVec2((float)(rect.right - rect.left), (float)(rect.bottom - rect.top)); - - // Setup time step - INT64 current_time = 0; - ::QueryPerformanceCounter((LARGE_INTEGER*)¤t_time); - io.DeltaTime = (float)(current_time - g_Time) / g_TicksPerSecond; - g_Time = current_time; - - // Read keyboard modifiers inputs - io.KeyCtrl = (::GetKeyState(VK_CONTROL) & 0x8000) != 0; - io.KeyShift = (::GetKeyState(VK_SHIFT) & 0x8000) != 0; - io.KeyAlt = (::GetKeyState(VK_MENU) & 0x8000) != 0; - io.KeySuper = false; - // io.KeysDown[], io.MousePos, io.MouseDown[], io.MouseWheel: filled by the WndProc handler below. - - // Update OS mouse position - ImGui_ImplWin32_UpdateMousePos(); - - // Update OS mouse cursor with the cursor requested by imgui - ImGuiMouseCursor mouse_cursor = io.MouseDrawCursor ? ImGuiMouseCursor_None : ImGui::GetMouseCursor(); - if (g_LastMouseCursor != mouse_cursor) - { - g_LastMouseCursor = mouse_cursor; - ImGui_ImplWin32_UpdateMouseCursor(); - } - - // Update game controllers (if enabled and available) - ImGui_ImplWin32_UpdateGamepads(); -} - -// Allow compilation with old Windows SDK. MinGW doesn't have default _WIN32_WINNT/WINVER versions. -#ifndef WM_MOUSEHWHEEL -#define WM_MOUSEHWHEEL 0x020E -#endif -#ifndef DBT_DEVNODES_CHANGED -#define DBT_DEVNODES_CHANGED 0x0007 -#endif - -// Win32 message handler (process Win32 mouse/keyboard inputs, etc.) -// Call from your application's message handler. -// When implementing your own backend, you can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if Dear ImGui wants to use your inputs. -// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. -// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. -// Generally you may always pass all inputs to Dear ImGui, and hide them from your application based on those two flags. -// PS: In this Win32 handler, we use the capture API (GetCapture/SetCapture/ReleaseCapture) to be able to read mouse coordinates when dragging mouse outside of our window bounds. -// PS: We treat DBLCLK messages as regular mouse down messages, so this code will work on windows classes that have the CS_DBLCLKS flag set. Our own example app code doesn't set this flag. -#if 0 -// Copy this line into your .cpp file to forward declare the function. -extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); -#endif -IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) -{ - if (ImGui::GetCurrentContext() == NULL) - return 0; - - ImGuiIO& io = ImGui::GetIO(); - switch (msg) - { - case WM_LBUTTONDOWN: case WM_LBUTTONDBLCLK: - case WM_RBUTTONDOWN: case WM_RBUTTONDBLCLK: - case WM_MBUTTONDOWN: case WM_MBUTTONDBLCLK: - case WM_XBUTTONDOWN: case WM_XBUTTONDBLCLK: - { - int button = 0; - if (msg == WM_LBUTTONDOWN || msg == WM_LBUTTONDBLCLK) { button = 0; } - if (msg == WM_RBUTTONDOWN || msg == WM_RBUTTONDBLCLK) { button = 1; } - if (msg == WM_MBUTTONDOWN || msg == WM_MBUTTONDBLCLK) { button = 2; } - if (msg == WM_XBUTTONDOWN || msg == WM_XBUTTONDBLCLK) { button = (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) ? 3 : 4; } - if (!ImGui::IsAnyMouseDown() && ::GetCapture() == NULL) - ::SetCapture(hwnd); - io.MouseDown[button] = true; - return 0; - } - case WM_LBUTTONUP: - case WM_RBUTTONUP: - case WM_MBUTTONUP: - case WM_XBUTTONUP: - { - int button = 0; - if (msg == WM_LBUTTONUP) { button = 0; } - if (msg == WM_RBUTTONUP) { button = 1; } - if (msg == WM_MBUTTONUP) { button = 2; } - if (msg == WM_XBUTTONUP) { button = (GET_XBUTTON_WPARAM(wParam) == XBUTTON1) ? 3 : 4; } - io.MouseDown[button] = false; - if (!ImGui::IsAnyMouseDown() && ::GetCapture() == hwnd) - ::ReleaseCapture(); - return 0; - } - case WM_MOUSEWHEEL: - io.MouseWheel += (float)GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA; - return 0; - case WM_MOUSEHWHEEL: - io.MouseWheelH += (float)GET_WHEEL_DELTA_WPARAM(wParam) / (float)WHEEL_DELTA; - return 0; - case WM_KEYDOWN: - case WM_SYSKEYDOWN: - if (wParam < 256) - io.KeysDown[wParam] = 1; - return 0; - case WM_KEYUP: - case WM_SYSKEYUP: - if (wParam < 256) - io.KeysDown[wParam] = 0; - return 0; - case WM_CHAR: - // You can also use ToAscii()+GetKeyboardState() to retrieve characters. - if (wParam > 0 && wParam < 0x10000) - io.AddInputCharacterUTF16((unsigned short)wParam); - return 0; - case WM_SETCURSOR: - if (LOWORD(lParam) == HTCLIENT && ImGui_ImplWin32_UpdateMouseCursor()) - return 1; - return 0; - case WM_DEVICECHANGE: - if ((UINT)wParam == DBT_DEVNODES_CHANGED) - g_WantUpdateHasGamepad = true; - return 0; - } - return 0; -} - - -//-------------------------------------------------------------------------------------------------------- -// DPI-related helpers (optional) -//-------------------------------------------------------------------------------------------------------- -// - Use to enable DPI awareness without having to create an application manifest. -// - Your own app may already do this via a manifest or explicit calls. This is mostly useful for our examples/ apps. -// - In theory we could call simple functions from Windows SDK such as SetProcessDPIAware(), SetProcessDpiAwareness(), etc. -// but most of the functions provided by Microsoft require Windows 8.1/10+ SDK at compile time and Windows 8/10+ at runtime, -// neither we want to require the user to have. So we dynamically select and load those functions to avoid dependencies. -//--------------------------------------------------------------------------------------------------------- -// This is the scheme successfully used by GLFW (from which we borrowed some of the code) and other apps aiming to be highly portable. -// ImGui_ImplWin32_EnableDpiAwareness() is just a helper called by main.cpp, we don't call it automatically. -// If you are trying to implement your own backend for your own engine, you may ignore that noise. -//--------------------------------------------------------------------------------------------------------- - -// Implement some of the functions and types normally declared in recent Windows SDK. -#if !defined(_versionhelpers_H_INCLUDED_) && !defined(_INC_VERSIONHELPERS) -static BOOL IsWindowsVersionOrGreater(WORD major, WORD minor, WORD sp) -{ - OSVERSIONINFOEXW osvi = { sizeof(osvi), major, minor, 0, 0, { 0 }, sp, 0, 0, 0, 0 }; - DWORD mask = VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR; - ULONGLONG cond = ::VerSetConditionMask(0, VER_MAJORVERSION, VER_GREATER_EQUAL); - cond = ::VerSetConditionMask(cond, VER_MINORVERSION, VER_GREATER_EQUAL); - cond = ::VerSetConditionMask(cond, VER_SERVICEPACKMAJOR, VER_GREATER_EQUAL); - return ::VerifyVersionInfoW(&osvi, mask, cond); -} -#define IsWindowsVistaOrGreater() IsWindowsVersionOrGreater(HIBYTE(0x0600), LOBYTE(0x0600), 0) // _WIN32_WINNT_VISTA -#define IsWindows8OrGreater() IsWindowsVersionOrGreater(HIBYTE(0x0602), LOBYTE(0x0602), 0) // _WIN32_WINNT_WIN8 -#define IsWindows8Point1OrGreater() IsWindowsVersionOrGreater(HIBYTE(0x0603), LOBYTE(0x0603), 0) // _WIN32_WINNT_WINBLUE -#endif - -#ifndef DPI_ENUMS_DECLARED -typedef enum { PROCESS_DPI_UNAWARE = 0, PROCESS_SYSTEM_DPI_AWARE = 1, PROCESS_PER_MONITOR_DPI_AWARE = 2 } PROCESS_DPI_AWARENESS; -typedef enum { MDT_EFFECTIVE_DPI = 0, MDT_ANGULAR_DPI = 1, MDT_RAW_DPI = 2, MDT_DEFAULT = MDT_EFFECTIVE_DPI } MONITOR_DPI_TYPE; -#endif -#ifndef _DPI_AWARENESS_CONTEXTS_ -DECLARE_HANDLE(DPI_AWARENESS_CONTEXT); -#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE (DPI_AWARENESS_CONTEXT)-3 -#endif -#ifndef DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 -#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 (DPI_AWARENESS_CONTEXT)-4 -#endif -typedef HRESULT(WINAPI* PFN_SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS); // Shcore.lib + dll, Windows 8.1+ -typedef HRESULT(WINAPI* PFN_GetDpiForMonitor)(HMONITOR, MONITOR_DPI_TYPE, UINT*, UINT*); // Shcore.lib + dll, Windows 8.1+ -typedef DPI_AWARENESS_CONTEXT(WINAPI* PFN_SetThreadDpiAwarenessContext)(DPI_AWARENESS_CONTEXT); // User32.lib + dll, Windows 10 v1607+ (Creators Update) - -// Helper function to enable DPI awareness without setting up a manifest -void ImGui_ImplWin32_EnableDpiAwareness() -{ - // if (IsWindows10OrGreater()) // This needs a manifest to succeed. Instead we try to grab the function pointer! - { - static HINSTANCE user32_dll = ::LoadLibraryA("user32.dll"); // Reference counted per-process - if (PFN_SetThreadDpiAwarenessContext SetThreadDpiAwarenessContextFn = (PFN_SetThreadDpiAwarenessContext)::GetProcAddress(user32_dll, "SetThreadDpiAwarenessContext")) - { - SetThreadDpiAwarenessContextFn(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2); - return; - } - } - if (IsWindows8Point1OrGreater()) - { - static HINSTANCE shcore_dll = ::LoadLibraryA("shcore.dll"); // Reference counted per-process - if (PFN_SetProcessDpiAwareness SetProcessDpiAwarenessFn = (PFN_SetProcessDpiAwareness)::GetProcAddress(shcore_dll, "SetProcessDpiAwareness")) - { - SetProcessDpiAwarenessFn(PROCESS_PER_MONITOR_DPI_AWARE); - return; - } - } -#if _WIN32_WINNT >= 0x0600 - ::SetProcessDPIAware(); -#endif -} - -#if defined(_MSC_VER) && !defined(NOGDI) -#pragma comment(lib, "gdi32") // Link with gdi32.lib for GetDeviceCaps(). MinGW will require linking with '-lgdi32' -#endif - -float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor) -{ - UINT xdpi = 96, ydpi = 96; - static BOOL bIsWindows8Point1OrGreater = IsWindows8Point1OrGreater(); - if (bIsWindows8Point1OrGreater) - { - static HINSTANCE shcore_dll = ::LoadLibraryA("shcore.dll"); // Reference counted per-process - if (PFN_GetDpiForMonitor GetDpiForMonitorFn = (PFN_GetDpiForMonitor)::GetProcAddress(shcore_dll, "GetDpiForMonitor")) - GetDpiForMonitorFn((HMONITOR)monitor, MDT_EFFECTIVE_DPI, &xdpi, &ydpi); - } -#ifndef NOGDI - else - { - const HDC dc = ::GetDC(NULL); - xdpi = ::GetDeviceCaps(dc, LOGPIXELSX); - ydpi = ::GetDeviceCaps(dc, LOGPIXELSY); - ::ReleaseDC(NULL, dc); - } -#endif - IM_ASSERT(xdpi == ydpi); // Please contact me if you hit this assert! - return xdpi / 96.0f; -} - -float ImGui_ImplWin32_GetDpiScaleForHwnd(void* hwnd) -{ - HMONITOR monitor = ::MonitorFromWindow((HWND)hwnd, MONITOR_DEFAULTTONEAREST); - return ImGui_ImplWin32_GetDpiScaleForMonitor(monitor); -} - -//--------------------------------------------------------------------------------------------------------- -// Transparency related helpers (optional) -//-------------------------------------------------------------------------------------------------------- - -#if defined(_MSC_VER) -#pragma comment(lib, "dwmapi") // Link with dwmapi.lib. MinGW will require linking with '-ldwmapi' -#endif - -// [experimental] -// Borrowed from GLFW's function updateFramebufferTransparency() in src/win32_window.c -// (the Dwm* functions are Vista era functions but we are borrowing logic from GLFW) -void ImGui_ImplWin32_EnableAlphaCompositing(void* hwnd) -{ - if (!IsWindowsVistaOrGreater()) - return; - - BOOL composition; - if (FAILED(::DwmIsCompositionEnabled(&composition)) || !composition) - return; - - BOOL opaque; - DWORD color; - if (IsWindows8OrGreater() || (SUCCEEDED(::DwmGetColorizationColor(&color, &opaque)) && !opaque)) - { - HRGN region = ::CreateRectRgn(0, 0, -1, -1); - DWM_BLURBEHIND bb = {}; - bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION; - bb.hRgnBlur = region; - bb.fEnable = TRUE; - ::DwmEnableBlurBehindWindow((HWND)hwnd, &bb); - ::DeleteObject(region); - } - else - { - DWM_BLURBEHIND bb = {}; - bb.dwFlags = DWM_BB_ENABLE; - ::DwmEnableBlurBehindWindow((HWND)hwnd, &bb); - } -} - -//--------------------------------------------------------------------------------------------------------- diff --git a/third_party/imgui/backends/imgui_impl_win32.h b/third_party/imgui/backends/imgui_impl_win32.h deleted file mode 100644 index 5197b7f8..00000000 --- a/third_party/imgui/backends/imgui_impl_win32.h +++ /dev/null @@ -1,41 +0,0 @@ -// dear imgui: Platform Backend for Windows (standard windows API for 32 and 64 bits applications) -// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..) - -// Implemented features: -// [X] Platform: Clipboard support (for Win32 this is actually part of core dear imgui) -// [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. -// [X] Platform: Keyboard arrays indexed using VK_* Virtual Key Codes, e.g. ImGui::IsKeyPressed(VK_SPACE). -// [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. - -// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#pragma once -#include "imgui.h" // IMGUI_IMPL_API - -IMGUI_IMPL_API bool ImGui_ImplWin32_Init(void* hwnd); -IMGUI_IMPL_API void ImGui_ImplWin32_Shutdown(); -IMGUI_IMPL_API void ImGui_ImplWin32_NewFrame(); - -// Win32 message handler your application need to call. -// - Intentionally commented out in a '#if 0' block to avoid dragging dependencies on from this helper. -// - You should COPY the line below into your .cpp code to forward declare the function and then you can call it. -#if 0 -extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); -#endif - -// DPI-related helpers (optional) -// - Use to enable DPI awareness without having to create an application manifest. -// - Your own app may already do this via a manifest or explicit calls. This is mostly useful for our examples/ apps. -// - In theory we could call simple functions from Windows SDK such as SetProcessDPIAware(), SetProcessDpiAwareness(), etc. -// but most of the functions provided by Microsoft require Windows 8.1/10+ SDK at compile time and Windows 8/10+ at runtime, -// neither we want to require the user to have. So we dynamically select and load those functions to avoid dependencies. -IMGUI_IMPL_API void ImGui_ImplWin32_EnableDpiAwareness(); -IMGUI_IMPL_API float ImGui_ImplWin32_GetDpiScaleForHwnd(void* hwnd); // HWND hwnd -IMGUI_IMPL_API float ImGui_ImplWin32_GetDpiScaleForMonitor(void* monitor); // HMONITOR monitor - -// Transparency related helpers (optional) [experimental] -// - Use to enable alpha compositing transparency with the desktop. -// - Use together with e.g. clearing your framebuffer with zero-alpha. -IMGUI_IMPL_API void ImGui_ImplWin32_EnableAlphaCompositing(void* hwnd); // HWND hwnd diff --git a/third_party/imgui/backends/vulkan/generate_spv.sh b/third_party/imgui/backends/vulkan/generate_spv.sh deleted file mode 100644 index 948ef773..00000000 --- a/third_party/imgui/backends/vulkan/generate_spv.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -## -V: create SPIR-V binary -## -x: save binary output as text-based 32-bit hexadecimal numbers -## -o: output file -glslangValidator -V -x -o glsl_shader.frag.u32 glsl_shader.frag -glslangValidator -V -x -o glsl_shader.vert.u32 glsl_shader.vert diff --git a/third_party/imgui/backends/vulkan/glsl_shader.frag b/third_party/imgui/backends/vulkan/glsl_shader.frag deleted file mode 100644 index ce7e6f72..00000000 --- a/third_party/imgui/backends/vulkan/glsl_shader.frag +++ /dev/null @@ -1,14 +0,0 @@ -#version 450 core -layout(location = 0) out vec4 fColor; - -layout(set=0, binding=0) uniform sampler2D sTexture; - -layout(location = 0) in struct { - vec4 Color; - vec2 UV; -} In; - -void main() -{ - fColor = In.Color * texture(sTexture, In.UV.st); -} diff --git a/third_party/imgui/backends/vulkan/glsl_shader.vert b/third_party/imgui/backends/vulkan/glsl_shader.vert deleted file mode 100644 index 9425365a..00000000 --- a/third_party/imgui/backends/vulkan/glsl_shader.vert +++ /dev/null @@ -1,25 +0,0 @@ -#version 450 core -layout(location = 0) in vec2 aPos; -layout(location = 1) in vec2 aUV; -layout(location = 2) in vec4 aColor; - -layout(push_constant) uniform uPushConstant { - vec2 uScale; - vec2 uTranslate; -} pc; - -out gl_PerVertex { - vec4 gl_Position; -}; - -layout(location = 0) out struct { - vec4 Color; - vec2 UV; -} Out; - -void main() -{ - Out.Color = aColor; - Out.UV = aUV; - gl_Position = vec4(aPos * pc.uScale + pc.uTranslate, 0, 1); -} diff --git a/third_party/imgui/docs/BACKENDS.md b/third_party/imgui/docs/BACKENDS.md deleted file mode 100644 index a45fdaa4..00000000 --- a/third_party/imgui/docs/BACKENDS.md +++ /dev/null @@ -1,139 +0,0 @@ -_(You may browse this at https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md or view this file with any Markdown viewer)_ - -## Dear ImGui: Backends - -**The backends/ folder contains backends for popular platforms/graphics API, which you can use in -your application or engine to easily integrate Dear ImGui.** Each backend is typically self-contained in a pair of files: imgui_impl_XXXX.cpp + imgui_impl_XXXX.h. - -- The 'Platform' backends are in charge of: mouse/keyboard/gamepad inputs, cursor shape, timing, windowing.
- e.g. Windows ([imgui_impl_win32.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_win32.cpp)), GLFW ([imgui_impl_glfw.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_glfw.cpp)), SDL2 ([imgui_impl_sdl.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_sdl.cpp)), etc. - -- The 'Renderer' backends are in charge of: creating atlas texture, rendering imgui draw data.
- e.g. DirectX11 ([imgui_impl_dx11.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_dx11.cpp)), OpenGL/WebGL ([imgui_impl_opengl3.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_opengl3.cpp), Vulkan ([imgui_impl_vulkan.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_vulkan.cpp), etc. - -- For some high-level frameworks, a single backend usually handle both 'Platform' and 'Renderer' parts.
- e.g. Allegro 5 ([imgui_impl_allegro5.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_allegro5.cpp)), Marmalade ([imgui_impl_marmalade.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_marmalade.cpp)). If you end up creating a custom backend for your engine, you may want to do the same. - -An application usually combines 1 Platform backend + 1 Renderer backend + main Dear ImGui sources. -For example, the [example_win32_directx11](https://github.com/ocornut/imgui/tree/master/examples/example_win32_directx11) application combines imgui_impl_win32.cpp + imgui_impl_dx11.cpp. There are 20+ examples in the [examples/](https://github.com/ocornut/imgui/blob/master/examples/) folder. See [EXAMPLES.MD](https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md) for details. - - -### What are backends - -Dear ImGui is highly portable and only requires a few things to run and render, typically: - - - Required: providing mouse/keyboard inputs (fed into the `ImGuiIO` structure). - - Required: uploading the font atlas texture into graphics memory. - - Required: rendering indexed textured triangles with a clipping rectangle. - - Extra features are opt-in, our backends try to support as many as possible: - - - Optional: custom texture binding support. - - Optional: clipboard support. - - Optional: gamepad support. - - Optional: mouse cursor shape support. - - Optional: IME support. - - Optional: multi-viewports support. - etc. - -This is essentially what each backends are doing + obligatory portability cruft. Using default backends ensure you can get all those features including the ones that would be harder to implement on your side (e.g. multi-viewports support). - -It is important to understand the difference between the core Dear ImGui library (files in the root folder) -and backends which we are describing here (backends/ folder). - -- Some issues may only be backend or platform specific. -- You should be able to write backends for pretty much any platform and any 3D graphics API. - e.g. you can get creative and use software rendering or render remotely on a different machine. - - -### Integrating a backend - -See "Getting Started" section of [EXAMPLES.MD](https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md) for more details. - - -### List of backends - -In the [backends/](https://github.com/ocornut/imgui/blob/master/backends) folder: - -List of Platforms Backends: - - imgui_impl_android.cpp ; Android native app API - imgui_impl_glfw.cpp ; GLFW (Windows, macOS, Linux, etc.) http://www.glfw.org/ - imgui_impl_osx.mm ; macOS native API (not as feature complete as glfw/sdl backends) - imgui_impl_sdl.cpp ; SDL2 (Windows, macOS, Linux, iOS, Android) https://www.libsdl.org - imgui_impl_win32.cpp ; Win32 native API (Windows) - imgui_impl_glut.cpp ; GLUT/FreeGLUT (this is prehistoric software and absolutely not recommended today!) - -List of Renderer Backends: - - imgui_impl_dx9.cpp ; DirectX9 - imgui_impl_dx10.cpp ; DirectX10 - imgui_impl_dx11.cpp ; DirectX11 - imgui_impl_dx12.cpp ; DirectX12 - imgui_impl_metal.mm ; Metal (with ObjC) - imgui_impl_opengl2.cpp ; OpenGL 2 (legacy, fixed pipeline <- don't use with modern OpenGL context) - imgui_impl_opengl3.cpp ; OpenGL 3/4, OpenGL ES 2, OpenGL ES 3 (modern programmable pipeline) - imgui_impl_vulkan.cpp ; Vulkan - imgui_impl_wgpu.cpp ; WebGPU - -List of high-level Frameworks Backends (combining Platform + Renderer): - - imgui_impl_allegro5.cpp - imgui_impl_marmalade.cpp - -Emscripten is also supported. -The [example_emscripten_opengl3](https://github.com/ocornut/imgui/tree/master/examples/example_emscripten_opengl3) app uses imgui_impl_sdl.cpp + imgui_impl_opengl3.cpp, but other combos are possible. - -### Backends for third-party frameworks, graphics API or other languages - -See https://github.com/ocornut/imgui/wiki/Bindings for the full list. - -### Recommended Backends - -If you are not sure which backend to use, the recommended platform/frameworks for portable applications: - -|Library |Website |Backend |Note | -|--------|--------|--------|-----| -| GLFW | https://github.com/glfw/glfw | imgui_impl_glfw.cpp | | -| SDL2 | https://www.libsdl.org | imgui_impl_sdl.cpp | | -| Sokol | https://github.com/floooh/sokol | [util/sokol_imgui.h](https://github.com/floooh/sokol/blob/master/util/sokol_imgui.h) | Lower-level than GLFW/SDL | - - -### Using a custom engine? - -You will likely be tempted to start by rewrite your own backend using your own custom/high-level facilities...
-Think twice! - -If you are new to Dear ImGui, first try using the existing backends as-is. -You will save lots of time integrating the library. -You can LATER decide to rewrite yourself a custom backend if you really need to. -In most situations, custom backends have less features and more bugs than the standard backends we provide. -If you want portability, you can use multiple backends and choose between them either at compile time -or at runtime. - -**Example A**: your engine is built over Windows + DirectX11 but you have your own high-level rendering -system layered over DirectX11.
-Suggestion: try using imgui_impl_win32.cpp + imgui_impl_dx11.cpp first. -Once it works, if you really need it you can replace the imgui_impl_dx11.cpp code with a -custom renderer using your own rendering functions, and keep using the standard Win32 code etc. - -**Example B**: your engine runs on Windows, Mac, Linux and uses DirectX11, Metal, Vulkan respectively.
-Suggestion: use multiple generic backends! -Once it works, if you really need it you can replace parts of backends with your own abstractions. - -**Example C**: your engine runs on platforms we can't provide public backends for (e.g. PS4/PS5, Switch), -and you have high-level systems everywhere.
-Suggestion: try using a non-portable backend first (e.g. win32 + underlying graphics API) to get -your desktop builds working first. This will get you running faster and get your acquainted with -how Dear ImGui works and is setup. You can then rewrite a custom backend using your own engine API. - -Also: -The [multi-viewports feature](https://github.com/ocornut/imgui/issues/1542) of the 'docking' branch allows -Dear ImGui windows to be seamlessly detached from the main application window. This is achieved using an -extra layer to the Platform and Renderer backends, which allows Dear ImGui to communicate platform-specific -requests such as: "create an additional OS window", "create a render context", "get the OS position of this -window" etc. See 'ImGuiPlatformIO' for details. -Supporting the multi-viewports feature correctly using 100% of your own abstractions is more difficult -than supporting single-viewport. -If you decide to use unmodified imgui_impl_XXXX.cpp files, you can automatically benefit from -improvements and fixes related to viewports and platform windows without extra work on your side. diff --git a/third_party/imgui/docs/CHANGELOG.txt b/third_party/imgui/docs/CHANGELOG.txt deleted file mode 100644 index 2b29ab85..00000000 --- a/third_party/imgui/docs/CHANGELOG.txt +++ /dev/null @@ -1,2935 +0,0 @@ -dear imgui -CHANGELOG - -This document holds the user-facing changelog that we also use in release notes. -We generally fold multiple commits pertaining to the same topic as a single entry. -Changes to backends are also included within the individual .cpp files of each backend. - -RELEASE NOTES: https://github.com/ocornut/imgui/releases -REPORT ISSUES: https://github.com/ocornut/imgui/issues -DISCUSS, ASK QUESTIONS: https://github.com/ocornut/imgui/discussions -FAQ https://www.dearimgui.org/faq/ -WIKI https://github.com/ocornut/imgui/wiki - -WHEN TO UPDATE? - -- Keeping your copy of Dear ImGui updated regularly is recommended. -- It is generally safe to sync to the latest commit in master or docking branches - The library is fairly stable and regressions tends to be fixed fast when reported. - -HOW TO UPDATE? - -- Overwrite every file except imconfig.h (if you have modified it). -- You may also locally branch to modify imconfig.h and merge latest into your branch. -- Read the `Breaking Changes` section (in imgui.cpp or here in the Changelog). -- If you have a problem with a missing function/symbols, search for its name in the code, there will likely be a comment about it. -- If you are dropping this repository in your codebase, please leave the demo and text files in there, they will be useful. -- You may diff your previous Changelog with the one you just copied and read that diff. -- You may enable `IMGUI_DISABLE_OBSOLETE_FUNCTIONS` in imconfig.h to forcefully disable legacy names and symbols. - Doing it every once in a while is a good way to make sure you are not using obsolete symbols. Dear ImGui is in active development, - and API updates have been a little more frequent lately. They are documented below and in imgui.cpp and should not affect all users. -- Please report any issue! - - ------------------------------------------------------------------------ - VERSION 1.82 WIP (In Progresss) ------------------------------------------------------------------------ - -Breaking Changes: - -- Style: renamed rarely used style.CircleSegmentMaxError (old default = 1.60f) - to style.CircleTessellationMaxError (new default = 0.30f) as its meaning changed. (#3808) [@thedmd] -- Win32+MinGW: Re-enabled IME functions by default even under MinGW. In July 2016, issue #738 had me incorrectly - disable those default functions for MinGW. MinGW users should: either link with -limm32, either set their - imconfig file with '#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS'. (#2590, #738) [@actboy168] -- Backends: Win32: Pragma linking with dwmapi.lib (Vista-era, ~9 kb). MinGW users will need to link with -ldwmapi. - -Other Changes: - -- Window: Shrink close button hit-testing region when it covers an abnormally high portion of the window visible - area (e.g. when window is collapsed + moved in a corner) to facilitate moving the window away. (#3825) -- Window, Nav: Fixed crash when calling SetWindowFocus(NULL) as the time a new window appears. (#3865) [@nem0] -- DragScalar: Fixed crash when using DragScalar() directly (not via common wrapper like DragFloat() etc.) - with ImGuiSliderFlags_AlwaysClamp + only one of either p_min or p_max set. (#3824) [@harry75369] -- Drags, Sliders: Fixed a bug where editing value would use wrong number if there were digits right after - format specifier (e.g. using "%f123" as a format string). [@rokups] -- Drags, Sliders: Fixed a bug where using custom formatting flags (',$,_) supported by stb_sprintf.h - would cause incorrect value to be displayed. (#3604) [@rokups] -- Tables: Fixed unaligned accesses when using TableSetBgColor(ImGuiTableBgTarget_CellBg). (#3872) -- IsItemHovered(): fixed return value false positive when used after EndChild(), EndGroup() or widgets using - either of them, when the hovered location is located within a child window, e.g. InputTextMultiline(). - This is intended to have no side effects, but brace yourself for the possible comeback.. (#3851, #1370) -- Added GetAllocatorFunctions() to facilitate sharing allocators accross DLL boundaries. (#3836) -- ImFontAtlas: Added 'bool TexPixelsUseColors' output to help backend decide of underlying texture format. (#3369) - This can currently only ever be set by the Freetype renderer. -- imgui_freetype: Added ImGuiFreeTypeBuilderFlags_Bitmap flag to request Freetype loading bitmap data. - This may have an effect on size and must be called with correct size values. (#3879) [@metarutaiga] -- ImDrawList: AddCircle, AddCircleFilled(): Tweaked default segment count calculation to honor MaxError - with more accuracy. Made default segment count always even for better looking result. (#3808) [@thedmd] -- ImDrawList: AddCircle, AddCircleFilled(): New default for style. -- Backends: Android: Added native Android backend. (#3446) [@duddel] -- Backends: Win32: Added ImGui_ImplWin32_EnableAlphaCompositing() to facilitate experimenting with - alpha compositing and transparent windows. (#2766, #3447 etc.). -- Backends: OpenGL, Vulkan, DX9, DX10, DX11, DX12, Metal, WebGPU, Allegro: Rework blending equation to - preserve alpha in output buffer (using SrcBlendAlpha = ONE, DstBlendAlpha = ONE_MINUS_SRC_ALPHA consistently - accross all backends), facilitating compositing of the output buffer with another buffer. - (#2693, #2764, #2766, #2873, #3447, #3813, #3816) [@ocornut, @thedmd, @ShawnM427, @Ubpa, @aiekick] -- Backends: DX9: Fix to support IMGUI_USE_BGRA_PACKED_COLOR. (#3844) [@Xiliusha] -- Backends: DX9: Fix to support colored glyphs, using newly introduced 'TexPixelsUseColors' info. (#3844) -- Examples: Android: Added Android + GL ES2 example. (#3446) [@duddel] -- Examples: Reworked setup of clear color to be compatible with transparent values. -- CI: Use a dedicated "scheduled" workflow to trigger scheduled builds. Forks may disable this workflow if - scheduled builds builds are not required. [@rokups] -- Log/Capture: Added LogTextV, a va_list variant of LogText. [@PathogenDavid] - - ------------------------------------------------------------------------ - VERSION 1.81 (Released 2021-02-10) ------------------------------------------------------------------------ - -Breaking Changes: - -- ListBox helpers: - - Renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox(). - - Renamed ListBoxFooter() to EndListBox(). - - Removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size. - In the redirection function, made vertical padding consistent regardless of (items_count <= height_in_items) or not. - - Kept inline redirection function for all threes (will obsolete). -- imgui_freetype: - - Removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function. - Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection path available too. - - The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags. - - Renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags. - - Renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. - -Other Changes: - -- Viewports Added ImGui::GetMainViewport() as a way to get the bounds and work area of the host display. (#3789, #1542) - - In 'master' branch or without multi-viewports feature enabled: - - GetMainViewport()->Pos is always == (0,0) - - GetMainViewport()->Size is always == io.DisplaySize - - In 'docking' branch and with the multi-viewports feature enabled: - - GetMainViewport() will return information from your host Platform Window. - - In the future, we will support a "no main viewport" mode and this may return bounds of your main monitor. - - For forward compatibility with multi-viewports/multi-monitors: - - Code using (0,0) as a way to signify "upper-left of the host window" should use GetMainViewport()->Pos. - - Code using io.DisplaySize as a way to signify "size of the host window" should use GetMainViewport()->Size. - - We are also exposing a work area in ImGuiViewport ('WorkPos', 'WorkSize' vs 'Pos', 'Size' for full area): - - For a Platform Window, the work area is generally the full area minus space used by menu-bars. - - For a Platform Monitor, the work area is generally the full area minus space used by task-bars. - - All of this has been the case in 'docking' branch for a long time. What we've done is merely merging - a small chunk of the multi-viewport logic into 'master' to standardize some concepts ahead of time. -- Tables: Fixed PopItemWidth() or multi-components items not restoring per-colum ItemWidth correctly. (#3760) -- Window: Fixed minor title bar text clipping issue when FramePadding is small/zero and there are no - close button in the window. (#3731) -- SliderInt: Fixed click/drag when v_min==v_max from setting the value to zero. (#3774) [@erwincoumans] - Would also repro with DragFloat() when using ImGuiSliderFlags_Logarithmic with v_min==v_max. -- Menus: Fixed an issue with child-menu auto sizing (issue introduced in 1.80 on 2021/01/25) (#3779) -- InputText: Fixed slightly off ScrollX tracking, noticeable with large values of FramePadding.x. (#3781) -- InputText: Multiline: Fixed padding/cliprect not precisely matching single-line version. (#3781) -- InputText: Multiline: Fixed FramePadding.y worth of vertical offset when aiming with mouse. -- ListBox: Tweaked default height calculation. -- Fonts: imgui_freetype: Facilitated using FreeType integration: [@Xipiryon, @ocornut] - - Use '#define IMGUI_ENABLE_FREETYPE' in imconfig.h should make it work with no other modifications - other than compiling misc/freetype/imgui_freetype.cpp and linking with FreeType. - - Use '#define IMGUI_ENABLE_STB_TRUETYPE' if you somehow need the stb_truetype rasterizer to be - compiled in along with the FreeType one, otherwise it is enabled by default. -- Fonts: imgui_freetype: Added support for colored glyphs as supported by Freetype 2.10+ (for .ttf using CPAL/COLR - tables only). Enable the ImGuiFreeTypeBuilderFlags_LoadColor on a given font. Atlas always output directly - as RGBA8 in this situation. Likely to make sense with IMGUI_USE_WCHAR32. (#3369) [@pshurgal] -- Fonts: Fixed CalcTextSize() width rounding so it behaves more like a ceil. This is in order for text wrapping - to have enough space when provided width precisely calculated with CalcTextSize().x. (#3776) - Note that the rounding of either positions and widths are technically undesirable (e.g. #3437, #791) but - variety of code is currently on it so we are first fixing current behavior before we'll eventually change it. -- Log/Capture: Fix various new line/spacing issue when logging widgets. [@Xipiryon, @ocornut] -- Log/Capture: Improved the ASCII look of various widgets, making large dumps more easily human readable. -- ImDrawList: Fixed AddCircle()/AddCircleFilled() with (rad > 0.0f && rad < 1.0f && num_segments == 0). (#3738) - Would lead to a buffer read overflow. -- ImDrawList: Clarified PathArcTo() need for a_min <= a_max with an assert. -- ImDrawList: Fixed PathArcToFast() handling of a_min > a_max. -- Metrics: Back-ported "Viewports" debug visualizer from 'docking' branch. -- Demo: Added 'Examples->Fullscreen Window' demo using GetMainViewport() values. (#3789) -- Demo: 'Simple Overlay' demo now moves under main menu-bar (if any) using GetMainViewport()'s work area. -- Backends: Win32: Dynamically loading XInput DLL instead of linking with it, facilitate compiling with - old WindowSDK versions or running on Windows 7. (#3646, #3645, #3248, #2716) [@Demonese] -- Backends: Vulkan: Add support for custom Vulkan function loader and VK_NO_PROTOTYPES. (#3759, #3227) [@Hossein-Noroozpour] - User needs to call ImGui_ImplVulkan_LoadFunctions() with their custom loader prior to other functions. -- Backends: Metal: Fixed texture storage mode when building on Mac Catalyst. (#3748) [@Belinsky-L-V] -- Backends: OSX: Fixed mouse position not being reported when mouse buttons other than left one are down. (#3762) [@rokups] -- Backends: WebGPU: Added enderer backend for WebGPU support (imgui_impl_wgpu.cpp) (#3632) [@bfierz] - Please note that WebGPU is currently experimental, will not run on non-beta browsers, and may break. -- Examples: WebGPU: Added Emscripten+WebGPU example. (#3632) [@bfierz] -- Backends: GLFW: Added ImGui_ImplGlfw_InitForOther() initialization call to use with non OpenGL API. (#3632) - - ------------------------------------------------------------------------ - VERSION 1.80 (Released 2021-01-21) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.80 - -Breaking Changes: - -- Added imgui_tables.cpp file! Manually constructed project files will need the new file added! (#3740) -- Backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from examples/ to backends/. (#3513) -- Renamed ImDrawList::AddBezierCurve() to ImDrawList::AddBezierCubic(). Kept inline redirection function (will obsolete). -- Renamed ImDrawList::PathBezierCurveTo() to ImDrawList::PathBezierCubicCurveTo(). Kept inline redirection function (will obsolete). -- Removed redirecting functions/enums names that were marked obsolete in 1.60 (April 2018): - - io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value and call the render function of your backend - - ImGui::IsAnyWindowFocused() -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) - - ImGui::IsAnyWindowHovered() -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) - - ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT - - ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT -- Removed redirecting functions/enums names that were marked obsolete in 1.61 (May 2018): - - InputFloat (... int decimal_precision ...) -> use InputFloat (... const char* format ...) with format = "%.Xf" where X was value for decimal_precision. - - same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int decimal_precision` parameter. -- Removed redirecting functions/enums names that were marked obsolete in 1.63 (August 2018): - - ImGui::IsItemDeactivatedAfterChange() -> use ImGui::IsItemDeactivatedAfterEdit(). - - ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg - - ImGuiInputTextCallback -> use ImGuiTextEditCallback - - ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData -- If you were still using the old names, while you are cleaning up, considering enabling - IMGUI_DISABLE_OBSOLETE_FUNCTIONS in imconfig.h even temporarily to have a pass at finding - and removing up old API calls, if any remaining. -- Internals: Columns: renamed undocumented/internals ImGuiColumnsFlags_* to ImGuiOldColumnFlags_* to reduce - confusion with Tables API. Keep redirection enums (will obsolete). (#125, #513, #913, #1204, #1444, #2142, #2707) -- Renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the feature now applies - to other data structures. (#2636) - -Other Changes: - -- Tables: added new Tables Beta API as a replacement for old Columns. (#3740, #2957, #125) - Check out 'Demo->Tables' for many demos. - Read API comments in imgui.h for details. Read extra commentary in imgui_tables.cpp. - - Added 16 functions: - - BeginTable(), EndTable() - - TableNextRow(), TableNextColumn(), TableSetColumnIndex() - - TableSetupColumn(), TableSetupScrollFreeze() - - TableHeadersRow(), TableHeader() - - TableGetRowIndex(), TableGetColumnCount(), TableGetColumnIndex(), TableGetColumnName(), TableGetColumnFlags() - - TableGetSortSpecs(), TableSetBgColor() - - Added 3 flags sets: - - ImGuiTableFlags (29 flags for: features, decorations, sizing policies, padding, clipping, scrolling, sorting etc.) - - ImGuiTableColumnFlags (24 flags for: width policies, default settings, sorting options, indentation options etc.) - - ImGuiTableRowFlags (1 flag for: header row) - - Added 2 structures: ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs - - Added 2 enums: ImGuiSortDirection, ImGuiTableBgTarget - - Added 1 style variable: ImGuiStyleVar_CellPadding - - Added 5 style colors: ImGuiCol_TableHeaderBg, ImGuiCol_TableBorderStrong, ImGuiCol_TableBorderLight, ImGuiCol_TableRowBg, ImGuiCol_TableRowBgAlt. -- Tab Bar: Made it possible to append to an existing tab bar by calling BeginTabBar()/EndTabBar() again. -- Tab Bar: Fixed using more than 128 tabs in a tab bar (scrolling policy recommended). -- Tab Bar: Do not display a tooltip if the name already fits over a given tab. (#3521) -- Tab Bar: Fixed minor/unlikely bug skipping over a button when scrolling left with arrows. -- Tab Bar: Requested ideal content size (for auto-fit) doesn't affect horizontal scrolling. (#3414) -- Drag and Drop: Fix losing drop source ActiveID (and often source tooltip) when opening a TreeNode() - or CollapsingHeader() while dragging. (#1738) -- Drag and Drop: Fix drag and drop to tie same-size drop targets by chosen the later one. Fixes dragging - into a full-window-sized dockspace inside a zero-padded window. (#3519, #2717) [@Black-Cat] -- Checkbox: Added CheckboxFlags() helper with int* type (internals have a template version, not exposed). -- Clipper: Fixed incorrect end-list positioning when using ImGuiListClipper with 1 item (bug in 1.79). (#3663) [@nyorain] -- InputText: Fixed updating cursor/selection position when a callback altered the buffer in a way - where the byte count is unchanged but the decoded character count changes. (#3587) [@gqw] -- InputText: Fixed switching from single to multi-line while preserving same ID. -- Combo: Fixed using IsItemEdited() after Combo() not matching the return value from Combo(). (#2034) -- DragFloat, DragInt: very slightly increased mouse drag threshold + expressing it as a factor of default value. -- DragFloat, DragInt: added experimental io.ConfigDragClickToInputText feature to enable turning DragXXX widgets - into text input with a simple mouse click-release (without moving). (#3737) -- Nav: Fixed IsItemFocused() from returning false when Nav highlight is hidden because mouse has moved. - It's essentially been always the case but it doesn't make much sense. Instead we will aim at exposing - feedback and control of keyboard/gamepad navigation highlight and mouse hover disable flag. (#787, #2048) -- Metrics: Fixed mishandling of ImDrawCmd::VtxOffset in wireframe mesh renderer. -- Metrics: Rebranded as "Dear ImGui Metrics/Debugger" to clarify its purpose. -- ImDrawList: Added ImDrawList::AddQuadBezierCurve(), ImDrawList::PathQuadBezierCurveTo() quadratic bezier - helpers. (#3127, #3664, #3665) [@aiekick] -- Fonts: Updated GetGlyphRangesJapanese() to include a larger 2999 ideograms selection of Joyo/Jinmeiyo - kanjis, from the previous 1946 ideograms selection. This will consume a some more memory but be generally - much more fitting for Japanese display, until we switch to a more dynamic atlas. (#3627) [@vaiorabbit] -- Log/Capture: fix capture to work on clipped child windows. -- Misc: Made the ItemFlags stack shared, so effectively the ButtonRepeat/AllowKeyboardFocus states - (and others exposed in internals such as PushItemFlag) are inherited by stacked Begin/End pairs, - vs previously a non-child stacked Begin() would reset those flags back to zero for the stacked window. -- Misc: Replaced UTF-8 decoder with one based on branchless one by Christopher Wellons. [@rokups] - Super minor fix handling incomplete UTF-8 contents: if input does not contain enough bytes, decoder - returns IM_UNICODE_CODEPOINT_INVALID and consume remaining bytes (vs old decoded consumed only 1 byte). -- Misc: Fix format warnings when using gnu printf extensions in a setup that supports them (gcc/mingw). (#3592) -- Misc: Made EndFrame() assertion for key modifiers being unchanged during the frame (added in 1.76) more - lenient, allowing full mid-frame releases. This is to accommodate the use of mid-frame modal native - windows calls, which leads backends such as GLFW to send key clearing events on focus loss. (#3575) -- Style: Changed default style.WindowRounding value to 0.0f (matches default for multi-viewports). -- Style: Reduced the size of the resizing grip, made alpha less prominent. -- Style: Classic: Increase the default alpha value of WindowBg to be closer to other styles. -- Demo: Clarify usage of right-aligned items in Demo>Layout>Widgets Width. -- Backends: OpenGL3: Use glGetString(GL_VERSION) query instead of glGetIntegerv(GL_MAJOR_VERSION, ...) - when the later returns zero (e.g. Desktop GL 2.x). (#3530) [@xndcn] -- Backends: OpenGL2: Backup and restore GL_SHADE_MODEL and disable GL_NORMAL_ARRAY state to increase - compatibility with legacy code. (#3671) -- Backends: OpenGL3: Backup and restore GL_PRIMITIVE_RESTART state. (#3544) [@Xipiryon] -- Backends: OpenGL2, OpenGL3: Backup and restore GL_STENCIL_TEST enable state. (#3668) -- Backends: Vulkan: Added support for specifying which sub-pass to reference during VkPipeline creation. (@3579) [@bdero] -- Backends: DX12: Improve Windows 7 compatibility (for D3D12On7) by loading d3d12.dll dynamically. (#3696) [@Mattiwatti] -- Backends: Win32: Fix setting of io.DisplaySize to invalid/uninitialized data after hwnd has been closed. -- Backends: OSX: Fix keypad-enter key not working on MacOS. (#3554) [@rokups, @lfnoise] -- Examples: Apple+Metal: Consolidated/simplified to get closer to other examples. (#3543) [@warrenm] -- Examples: Apple+Metal: Forward events down so OS key combination like Cmd+Q can work. (#3554) [@rokups] -- Examples: Emscripten: Renamed example_emscripten/ to example_emscripten_opengl3/. (#3632) -- Examples: Emscripten: Added 'make serve' helper to spawn a web-server on localhost. (#3705) [@Horki] -- Examples: DirectX12: Move ImGui::Render() call above the first barrier to clarify its lack of effect on the graphics pipe. -- CI: Fix testing for Windows DLL builds. (#3603, #3601) [@iboB] -- Docs: Improved the wiki and added a https://github.com/ocornut/imgui/wiki/Useful-Widgets page. [@Xipiryon] -- Docs: Split examples/README.txt into docs/BACKENDS.md and docs/EXAMPLES.md, and improved them. -- Docs: Consistently renamed all occurrences of "binding" and "back-end" to "backend" in comments and docs. - - ------------------------------------------------------------------------ - VERSION 1.79 (Released 2020-10-08) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.79 - -Breaking Changes: - -- Fonts: Removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied - after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. - It was also getting in the way of better font scaling, so let's get rid of it now! - If you used DisplayOffset it was probably in association to rasterizing a font at a specific size, - in which case the corresponding offset may be reported into GlyphOffset. (#1619) - If you scaled this value after calling AddFontDefault(), this is now done automatically. -- ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using - the ImGuiListClipper::Begin() function, with misleading edge cases. Always use ImGuiListClipper::Begin()! - Kept inline redirection function (will obsolete). - (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). -- Style: Renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. -- Renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete). -- Renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), REVERTED CHANGE FROM 1.77. - For variety of reason this is more self-explanatory and less error-prone. Kept inline redirection function. -- Removed return value from OpenPopupOnItemClick() - returned true on mouse release on item - because it - is inconsistent with other popups API and makes others misleading. It's also and unnecessary: you can - use IsWindowAppearing() after BeginPopup() for a similar result. - -Other Changes: - -- Window: Fixed using non-zero pivot in SetNextWindowPos() when the window is collapsed. (#3433) -- Nav: Fixed navigation resuming on first visible item when using gamepad. [@rokups] -- Nav: Fixed using Alt to toggle the Menu layer when inside a Modal window. (#787) -- Scrolling: Fixed SetScrollHere(0) functions edge snapping when called during a frame where - ContentSize is changing (issue introduced in 1.78). (#3452). -- InputText: Added support for Page Up/Down in InputTextMultiline(). (#3430) [@Xipiryon] -- InputText: Added selection helpers in ImGuiInputTextCallbackData(). -- InputText: Added ImGuiInputTextFlags_CallbackEdit to modify internally owned buffer after an edit. - (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the - underlying buffer while focus is active). -- InputText: Fixed using ImGuiInputTextFlags_Password with InputTextMultiline(). (#3427, #3428) - It is a rather unusual or useless combination of features but no reason it shouldn't work! -- InputText: Fixed minor scrolling glitch when erasing trailing lines in InputTextMultiline(). -- InputText: Fixed cursor being partially covered after using Ctrl+End key. -- InputText: Fixed callback's helper DeleteChars() function when cursor is inside the deleted block. (#3454) -- InputText: Made pressing Down arrow on the last line when it doesn't have a carriage return not move to - the end of the line (so it is consistent with Up arrow, and behave same as Notepad and Visual Studio. - Note that some other text editors instead would move the cursor to the end of the line). [@Xipiryon] -- DragFloat, DragScalar: Fixed ImGuiSliderFlags_ClampOnInput not being honored in the special case - where v_min == v_max. (#3361) -- SliderInt, SliderScalar: Fixed reaching of maximum value with inverted integer min/max ranges, both - with signed and unsigned types. Added reverse Sliders to Demo. (#3432, #3449) [@rokups] -- Text: Bypass unnecessary formatting when using the TextColored()/TextWrapped()/TextDisabled() helpers - with a "%s" format string. (#3466) -- CheckboxFlags: Display mixed-value/tristate marker when passed flags that have multiple bits set and - stored value matches neither zero neither the full set. -- BeginMenuBar: Fixed minor bug where CursorPosMax gets pushed to CursorPos prior to calling BeginMenuBar(), - so e.g. calling the function at the end of a window would often add +ItemSpacing.y to scrolling range. -- TreeNode, CollapsingHeader: Made clicking on arrow toggle toggle the open state on the Mouse Down event - rather than the Mouse Down+Up sequence, even if the _OpenOnArrow flag isn't set. This is standard behavior - and amends the change done in 1.76 which only affected cases were _OpenOnArrow flag was set. - (This is also necessary to support full multi/range-select/drag and drop operations.) -- Tab Bar: Added TabItemButton() to submit tab that behave like a button. (#3291) [@Xipiryon] -- Tab Bar: Added ImGuiTabItemFlags_Leading and ImGuiTabItemFlags_Trailing flags to position tabs or button - at either end of the tab bar. Those tabs won't be part of the scrolling region, and when reordering cannot - be moving outside of their section. Most often used with TabItemButton(). (#3291) [@Xipiryon] -- Tab Bar: Added ImGuiTabItemFlags_NoReorder flag to disable reordering a given tab. -- Tab Bar: Keep tab item close button visible while dragging a tab (independent of hovering state). -- Tab Bar: Fixed a small bug where closing a tab that is not selected would leave a tab hole for a frame. -- Tab Bar: Fixed a small bug where scrolling buttons (with ImGuiTabBarFlags_FittingPolicyScroll) would - generate an unnecessary extra draw call. -- Tab Bar: Fixed a small bug where toggling a tab bar from Reorderable to not Reorderable would leave - tabs reordered in the tab list popup. [@Xipiryon] -- Columns: Fix inverted ClipRect being passed to renderer when using certain primitives inside of - a fully clipped column. (#3475) [@szreder] -- Popups, Tooltips: Fix edge cases issues with positioning popups and tooltips when they are larger than - viewport on either or both axises. [@Rokups] -- Fonts: AddFontDefault() adjust its vertical offset based on floor(size/13) instead of always +1. - Was previously done by altering DisplayOffset.y but wouldn't work for DPI scaled font. -- Metrics: Various tweaks, listing windows front-to-back, greying inactive items when possible. -- Demo: Add simple InputText() callbacks demo (aside from the more elaborate ones in 'Examples->Console'). -- Backends: OpenGL3: Fix to avoid compiling/calling glBindSampler() on ES or pre 3.3 contexts which have - the defines set by a loader. (#3467, #1985) [@jjwebb] -- Backends: Vulkan: Some internal refactor aimed at allowing multi-viewport feature to create their - own render pass. (#3455, #3459) [@FunMiles] -- Backends: DX12: Clarified that imgui_impl_dx12 can be compiled on 32-bit systems by redefining - the ImTextureID to be 64-bit (e.g. '#define ImTextureID ImU64' in imconfig.h). (#301) -- Backends: DX12: Fix debug layer warning when scissor rect is zero-sized. (#3472, #3462) [@StoneWolf] -- Examples: Vulkan: Reworked buffer resize handling, fix for Linux/X11. (#3390, #2626) [@RoryO] -- Examples: Vulkan: Switch validation layer to use "VK_LAYER_KHRONOS_validation" instead of - "VK_LAYER_LUNARG_standard_validation" which is deprecated (#3459) [@FunMiles] -- Examples: DX12: Enable breaking on any warning/error when debug interface is enabled. -- Examples: DX12: Added '#define ImTextureID ImU64' in project and build files to also allow building - on 32-bit systems. Added project to default Visual Studio solution file. (#301) - - ------------------------------------------------------------------------ - VERSION 1.78 (Released 2020-08-18) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.78 - -Breaking Changes: - -- Obsoleted use of the trailing 'float power=1.0f' parameter for those functions: [@Shironekoben, @ocornut] - - DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN() - - SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN() - - VSliderFloat(), VSliderScalar() - Replaced the final 'float power=1.0f' argument with ImGuiSliderFlags defaulting to 0 (as with all our flags). - Worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected. - In short, when calling those functions: - - If you omitted the 'power' parameter (likely!), you are not affected. - - If you set the 'power' parameter to 1.0f (same as previous default value): - - Your compiler may warn on float>int conversion. - - Everything else will work (but will assert if IMGUI_DISABLE_OBSOLETE_FUNCTIONS is defined). - - You can replace the 1.0f value with 0 to fix the warning, and be technically correct. - - If you set the 'power' parameter to >1.0f (to enable non-linear editing): - - Your compiler may warn on float>int conversion. - - Code will assert at runtime for IM_ASSERT(power == 1.0f) with the following assert description: - "Call Drag function with ImGuiSliderFlags_Logarithmic instead of using the old 'float power' function!". - - In case asserts are disabled, the code will not crash and enable the _Logarithmic flag. - - You can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert - and get a _similar_ effect as previous uses of power >1.0f. - See https://github.com/ocornut/imgui/issues/3361 for all details. - For shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. - Kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar(). - For those three the 'float power=1.0f' version was removed directly as they were most unlikely ever used. -- DragInt, DragFloat, DragScalar: Obsoleted use of v_min > v_max to lock edits (introduced in 1.73, this was not - demoed nor documented much, will be replaced a more generic ReadOnly feature). - -Other Changes: - -- Nav: Fixed clicking on void (behind any windows) from not clearing the focused window. - This would be problematic e.g. in situation where the application relies on io.WantCaptureKeyboard - flag being cleared accordingly. (bug introduced in 1.77 WIP on 2020/06/16) (#3344, #2880) -- Window: Fixed clicking over an item which hovering has been disabled (e.g inhibited by a popup) - from marking the window as moved. -- Drag, Slider: Added ImGuiSliderFlags parameters. - - For float functions they replace the old trailing 'float power=1.0' parameter. - (See #3361 and the "Breaking Changes" block above for all details). - - Added ImGuiSliderFlags_Logarithmic flag to enable logarithmic editing - (generally more precision around zero), as a replacement to the old 'float power' parameter - which was obsoleted. (#1823, #1316, #642) [@Shironekoben, @AndrewBelt] - - Added ImGuiSliderFlags_ClampOnInput flag to force clamping value when using - CTRL+Click to type in a value manually. (#1829, #3209, #946, #413). - [note: RENAMED to ImGuiSliderFlags_AlwaysClamp in 1.79]. - - Added ImGuiSliderFlags_NoRoundToFormat flag to disable rounding underlying - value to match precision of the display format string. (#642) - - Added ImGuiSliderFlags_NoInput flag to disable turning widget into a text input - with CTRL+Click or Nav Enter. -- Nav, Slider: Fix using keyboard/gamepad controls with certain logarithmic sliders where - pushing a direction near zero values would be cancelled out. [@Shironekoben] -- DragFloatRange2, DragIntRange2: Fixed an issue allowing to drag out of bounds when both - min and max value are on the same value. (#1441) -- InputText, ImDrawList: Fixed assert triggering when drawing single line of text with more - than ~16 KB characters. (Note that current code is going to show corrupted display if after - clipping, more than 16 KB characters are visible in the same low-level ImDrawList::RenderText() - call. ImGui-level functions such as TextUnformatted() are not affected. This is quite rare - but it will be addressed later). (#3349) -- Selectable: Fixed highlight/hit extent when used with horizontal scrolling (in or outside columns). - Also fixed related text clipping when used in a column after the first one. (#3187, #3386) -- Scrolling: Avoid SetScroll, SetScrollFromPos functions from snapping on the edge of scroll - limits when close-enough by (WindowPadding - ItemPadding), which was a tweak with too many - side-effects. The behavior is still present in SetScrollHere functions as they are more explicitly - aiming at making widgets visible. May later be moved to a flag. -- Tab Bar: Allow calling SetTabItemClosed() after a tab has been submitted (will process next frame). -- InvisibleButton: Made public a small selection of ImGuiButtonFlags (previously in imgui_internal.h) - and allowed to pass them to InvisibleButton(): ImGuiButtonFlags_MouseButtonLeft/Right/Middle. - This is a small but rather important change because lots of multi-button behaviors could previously - only be achieved using lower-level/internal API. Now also available via high-level InvisibleButton() - with is a de-facto versatile building block to creating custom widgets with the public API. -- Fonts: Fixed ImFontConfig::GlyphExtraSpacing and ImFontConfig::PixelSnapH settings being pulled - from the merged/target font settings when merging fonts, instead of being pulled from the source - font settings. -- ImDrawList: Thick anti-aliased strokes (> 1.0f) with integer thickness now use a texture-based - path, reducing the amount of vertices/indices and CPU/GPU usage. (#3245) [@Shironekoben] - - This change will facilitate the wider use of thick borders in future style changes. - - Requires an extra bit of texture space (~64x64 by default), relies on GPU bilinear filtering. - - Set `io.AntiAliasedLinesUseTex = false` to disable rendering using this method. - - Clear `ImFontAtlasFlags_NoBakedLines` in ImFontAtlas::Flags to disable baking data in texture. -- ImDrawList: changed AddCircle(), AddCircleFilled() default num_segments from 12 to 0, effectively - enabling auto-tessellation by default. Tweak tessellation in Style Editor->Rendering section, or - by modifying the 'style.CircleSegmentMaxError' value. [@ShironekoBen] -- ImDrawList: Fixed minor bug introduced in 1.75 where AddCircle() with 12 segments would generate - an extra vertex. (This bug was mistakenly marked as fixed in earlier 1.77 release). [@ShironekoBen] -- Demo: Improved "Custom Rendering"->"Canvas" demo with a grid, scrolling and context menu. - Also showcase using InvisibleButton() with multiple mouse buttons flags. -- Demo: Improved "Layout & Scrolling" -> "Clipping" section. -- Demo: Improved "Layout & Scrolling" -> "Child Windows" section. -- Style Editor: Added preview of circle auto-tessellation when editing the corresponding value. -- Backends: OpenGL3: Added support for glad2 loader. (#3330) [@moritz-h] -- Backends: Allegro 5: Fixed horizontal scrolling direction with mouse wheel / touch pads (it seems - like Allegro 5 reports it differently from GLFW and SDL). (#3394, #2424, #1463) [@nobody-special666] -- Examples: Vulkan: Fixed GLFW+Vulkan and SDL+Vulkan clear color not being set. (#3390) [@RoryO] -- CI: Emscripten has stopped their support for their fastcomp backend, switching to latest sdk [@Xipiryon] - - ------------------------------------------------------------------------ - VERSION 1.77 (Released 2020-06-29) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.77 - -Breaking Changes: - -- Removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular() function. Please - note that this is a Beta api and will likely be reworked in order to support multi-DPI across - multiple monitors. -- Renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). - [NOTE: THIS WAS REVERTED IN 1.79] -- Removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor - of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. - Kept inline redirection function (will obsolete). -- Removed obsoleted CalcItemRectClosestPoint() entry point (has been asserting since December 2017). - -Other Changes: - -- TreeNode: Fixed bug where BeginDragDropSource() failed when the _OpenOnDoubleClick flag is - enabled (bug introduced in 1.76, but pre-1.76 it would also fail unless the _OpenOnArrow - flag was also set, and _OpenOnArrow is frequently set along with _OpenOnDoubleClick). -- TreeNode: Fixed bug where dragging a payload over a TreeNode() with either _OpenOnDoubleClick - or _OpenOnArrow would open the node. (#143) -- Windows: Fix unintended feedback loops when resizing windows close to main viewport edges. [@rokups] -- Tabs: Added style.TabMinWidthForUnselectedCloseButton settings: - - Set to 0.0f (default) to always make a close button appear on hover (same as Chrome, VS). - - Set to FLT_MAX to only display a close button when selected (merely hovering is not enough). - - Set to an intermediary value to toggle behavior based on width (same as Firefox). -- Tabs: Added a ImGuiTabItemFlags_NoTooltip flag to disable the tooltip for individual tab item - (vs ImGuiTabBarFlags_NoTooltip for entire tab bar). [@Xipiryon] -- Popups: All functions capable of opening popups (OpenPopup*, BeginPopupContext*) now take a new - ImGuiPopupFlags sets of flags instead of a mouse button index. The API is automatically backward - compatible as ImGuiPopupFlags is guaranteed to hold mouse button index in the lower bits. -- Popups: Added ImGuiPopupFlags_NoOpenOverExistingPopup for OpenPopup*/BeginPopupContext* functions - to first test for the presence of another popup at the same level. -- Popups: Added ImGuiPopupFlags_NoOpenOverItems for BeginPopupContextWindow() - similar to testing - for !IsAnyItemHovered() prior to doing an OpenPopup(). -- Popups: Added ImGuiPopupFlags_AnyPopupId and ImGuiPopupFlags_AnyPopupLevel flags for IsPopupOpen(), - allowing to check if any popup is open at the current level, if a given popup is open at any popup - level, if any popup is open at all. -- Popups: Fix an edge case where programmatically closing a popup while clicking on its empty space - would attempt to focus it and close other popups. (#2880) -- Popups: Fix BeginPopupContextVoid() when clicking over the area made unavailable by a modal. (#1636) -- Popups: Clarified some of the comments and function prototypes. -- Modals: BeginPopupModal() doesn't set the ImGuiWindowFlags_NoSavedSettings flag anymore, and will - not always be auto-centered. Note that modals are more similar to regular windows than they are to - popups, so api and behavior may evolve further toward embracing this. (#915, #3091) - Enforce centering using e.g. SetNextWindowPos(io.DisplaySize * 0.5f, ImGuiCond_Appearing, ImVec2(0.5f,0.5f)). -- Metrics: Added a "Settings" section with some details about persistent ini settings. -- Nav, Menus: Fix vertical wrap-around in menus or popups created with multiple appending calls to - BeginMenu()/EndMenu() or BeginPopup(0/EndPopup(). (#3223, #1207) [@rokups] -- Drag and Drop: Fixed unintended fallback "..." tooltip display during drag operation when - drag source uses _SourceNoPreviewTooltip flags. (#3160) [@rokups] -- Columns: Lower overhead on column switches and switching to background channel. - Benefits Columns but was primarily made with Tables in mind! -- Fonts: Fix GetGlyphRangesKorean() end-range to end at 0xD7A3 (instead of 0xD79D). (#348, #3217) [@marukrap] -- ImDrawList: Fixed an issue where draw command merging or primitive unreserve while crossing the - VtxOffset boundary would lead to draw commands with wrong VtxOffset. (#3129, #3163, #3232, #2591) - [@thedmd, @Shironekoben, @sergeyn, @ocornut] -- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where changing channels with different - TextureId, VtxOffset would incorrectly apply new settings to draw channels. (#3129, #3163) - [@ocornut, @thedmd, @Shironekoben] -- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split when current - VtxOffset was not zero would lead to draw commands with wrong VtxOffset. (#2591) -- ImDrawList, ImDrawListSplitter, Columns: Fixed an issue where starting a split right after - a callback draw command would incorrectly override the callback draw command. -- Misc, Freetype: Fix for rare case where FT_Get_Char_Index() succeeds but FT_Load_Glyph() fails. -- Docs: Improved and moved font documentation to docs/FONTS.md so it can be readable on the web. - Updated various links/wiki accordingly. Added FAQ entry about DPI. (#2861) [@ButternCream, @ocornut] -- CI: Added CI test to verify we're never accidentally dragging libstdc++ (on some compiler setups, - static constructors for non-pod data seems to drag in libstdc++ due to thread-safety concerns). - Fixed a static constructor which led to this dependency on some compiler setups. [@rokups] -- Backends: Win32: Support for #define NOGDI, won't try to call GetDeviceCaps(). (#3137, #2327) -- Backends: Win32: Fix _WIN32_WINNT < 0x0600 (MinGW defaults to 0x502 == Windows 2003). (#3183) -- Backends: SDL: Report a zero display-size when window is minimized, consistent with other backends, - making more render/clipping code use an early out path. -- Backends: OpenGL: Fixed handling of GL 4.5+ glClipControl(GL_UPPER_LEFT) by inverting the - projection matrix top and bottom values. (#3143, #3146) [@u3shit] -- Backends: OpenGL: On OSX, if unspecified by app, made default GLSL version 150. (#3199) [@albertvaka] -- Backends: OpenGL: Fixed loader auto-detection to not interfere with ES2/ES3 defines. (#3246) [@funchal] -- Backends: Vulkan: Fixed error in if initial frame has no vertices. (#3177) -- Backends: Vulkan: Fixed edge case where render callbacks wouldn't be called if the ImDrawData - structure didn't have any vertices. (#2697) [@kudaba] -- Backends: OSX: Added workaround to avoid fast mouse clicks. (#3261, #1992, #2525) [@nburrus] -- Examples: GLFW+Vulkan, SDL+Vulkan: Fix for handling of minimized windows. (#3259) -- Examples: Apple: Fixed example_apple_metal and example_apple_opengl2 using imgui_impl_osx.mm - not forwarding right and center mouse clicks. (#3260) [@nburrus] - - ------------------------------------------------------------------------ - VERSION 1.76 (Released 2020-04-12) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.76 - -Other Changes: - -- Drag and Drop, Nav: Disabling navigation arrow keys when drag and drop is active. In the docking - branch pressing arrow keys while dragging a window from a tab could trigger an assert. (#3025) -- BeginMenu: Using same ID multiple times appends content to a menu. (#1207) [@rokups] -- BeginMenu: Fixed a bug where SetNextWindowXXX data before a BeginMenu() would not be cleared - when the menu is not open. (#3030) -- InputText: Fixed password fields displaying ASCII spaces as blanks instead of using the '*' - glyph. (#2149, #515) -- Selectable: Fixed honoring style.SelectableTextAlign with unspecified size. (#2347, #2601) -- Selectable: Allow using ImGuiSelectableFlags_SpanAllColumns in other columns than first. (#125) -- TreeNode: Made clicking on arrow with _OpenOnArrow toggle the open state on the Mouse Down - event rather than the Mouse Down+Up sequence (this is rather standard behavior). -- ColorButton: Added ImGuiColorEditFlags_NoBorder flag to remove the border normally enforced - by default for standalone ColorButton. -- Nav: Fixed interactions with ImGuiListClipper, so e.g. Home/End result would not clip the - landing item on the landing frame. (#787) -- Nav: Fixed currently focused item from ever being clipped by ItemAdd(). (#787) -- Scrolling: Fixed scrolling centering API leading to non-integer scrolling values and initial - cursor position. This would often get fixed after the fix item submission, but using the - ImGuiListClipper as the first thing after Begin() could largely break size calculations. (#3073) -- Added optional support for Unicode plane 1-16 (#2538, #2541, #2815) [@cloudwu, @samhocevar] - - Compile-time enable with '#define IMGUI_USE_WCHAR32' in imconfig.h. - - More onsistent handling of unsupported code points (0xFFFD). - - Surrogate pairs are supported when submitting UTF-16 data via io.AddInputCharacterUTF16(), - allowing for more complete CJK input. - - sizeof(ImWchar) goes from 2 to 4. IM_UNICODE_CODEPOINT_MAX goes from 0xFFFF to 0x10FFFF. - - Various structures such as ImFont, ImFontGlyphRangesBuilder will use more memory, this - is currently not particularly efficient. -- Columns: undid the change in 1.75 were Columns()/BeginColumns() were preemptively limited - to 64 columns with an assert. (#3037, #125) -- Window: Fixed a bug with child window inheriting ItemFlags from their parent when the child - window also manipulate the ItemFlags stack. (#3024) [@Stanbroek] -- Font: Fixed non-ASCII space occasionally creating unnecessary empty looking polygons. -- Misc: Added an explicit compile-time test for non-scoped IM_ASSERT() macros to redirect users - to a solution rather than encourage people to add braces in the codebase. -- Misc: Added additional checks in EndFrame() to verify that io.KeyXXX values have not been - tampered with between NewFrame() and EndFrame(). -- Misc: Made default clipboard handlers for Win32 and OSX use a buffer inside the main context - instead of a static buffer, so it can be freed properly on Shutdown. (#3110) -- Misc, Freetype: Fixed support for IMGUI_STB_RECT_PACK_FILENAME compile time directive - in imgui_freetype.cpp (matching support in the regular code path). (#3062) [@DonKult] -- Metrics: Made Tools section more prominent. Showing wire-frame mesh directly hovering the ImDrawCmd - instead of requiring to open it. Added options to disable bounding box and mesh display. - Added notes on inactive/gc-ed windows. -- Demo: Added black and white and color gradients to Demo>Examples>Custom Rendering. -- CI: Added more tests on the continuous-integration server: extra warnings for Clang/GCC, building - SDL+Metal example, building imgui_freetype.cpp, more compile-time imconfig.h settings: disabling - obsolete functions, enabling 32-bit ImDrawIdx, enabling 32-bit ImWchar, disabling demo. [@rokups] -- Backends: OpenGL3: Fixed version check mistakenly testing for GL 4.0+ instead of 3.2+ to enable - ImGuiBackendFlags_RendererHasVtxOffset, leaving 3.2 contexts without it. (#3119, #2866) [@wolfpld] -- Backends: OpenGL3: Added include support for older glbinding 2.x loader. (#3061) [@DonKult] -- Backends: Win32: Added ImGui_ImplWin32_EnableDpiAwareness(), ImGui_ImplWin32_GetDpiScaleForHwnd(), - ImGui_ImplWin32_GetDpiScaleForMonitor() helpers functions (backported from the docking branch). - Those functions makes it easier for example apps to support hi-dpi features without setting up - a manifest. -- Backends: Win32: Calling AddInputCharacterUTF16() from WM_CHAR message handler in order to support - high-plane surrogate pairs. (#2815) [@cloudwu, @samhocevar] -- Backends: SDL: Added ImGui_ImplSDL2_InitForMetal() for API consistency (even though the function - currently does nothing). -- Backends: SDL: Fixed mapping for ImGuiKey_KeyPadEnter. (#3031) [@Davido71] -- Examples: Win32+DX12: Fixed resizing main window, enabled debug layer. (#3087, #3115) [@sergeyn] -- Examples: SDL+DX11: Fixed resizing main window. (#3057) [@joeslay] -- Examples: Added SDL+Metal example application. (#3017) [@coding-jackalope] - - ------------------------------------------------------------------------ - VERSION 1.75 (Released 2020-02-10) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.75 - -Breaking Changes: - -- Removed redirecting functions/enums names that were marked obsolete in 1.53 (December 2017): - - ShowTestWindow() -> use ShowDemoWindow() - - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow) - - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) - - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f) - - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing() - - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg - - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding - - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap - - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS - If you were still using the old names, while you are cleaning up, considering enabling - IMGUI_DISABLE_OBSOLETE_FUNCTIONS in imconfig.h even temporarily to have a pass at finding - and removing up old API calls, if any remaining. -- Removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent - with other mouse functions (none of the other functions have it). -- Obsoleted calling ImDrawList::PrimReserve() with a negative count (which was vaguely - documented and rarely if ever used). Instead we added an explicit PrimUnreserve() API - which can be implemented faster. Also clarified pre-existing constraints which weren't - documented (can only unreserve from the last reserve call). If you suspect you ever - used that feature before (very unlikely, but grep for call to PrimReserve in your code), - you can #define IMGUI_DEBUG_PARANOID in imconfig.h to catch existing calls. [@ShironekoBen] -- ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius. -- Limiting Columns()/BeginColumns() api to 64 columns with an assert. While the current code - technically supports it, future code may not so we're putting the restriction ahead. - [Undid that change in 1.76] -- imgui_internal.h: changed ImRect() default constructor initializes all fields to 0.0f instead - of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by - adding points into it without explicit initialization, you may need to fix your initial value. - -Other Changes: - -- Inputs: Added ImGuiMouseButton enum for convenience (e.g. ImGuiMouseButton_Right=1). - We forever guarantee that the existing value will not changes so existing code is free to use 0/1/2. -- Nav: Fixed a bug where the initial CTRL-Tab press while in a child window sometimes selected - the current root window instead of always selecting the previous root window. (#787) -- ColorEdit: Fix label alignment when using ImGuiColorEditFlags_NoInputs. (#2955) [@rokups] -- ColorEdit: In HSV display of a RGB stored value, attempt to locally preserve Saturation - when Value==0.0 (similar to changes done in 1.73 for Hue). Removed Hue editing lock since - those improvements in 1.73 makes them unnecessary. (#2722, #2770). [@rokups] -- ColorEdit: "Copy As" context-menu tool shows hex values with a '#' prefix instead of '0x'. -- ColorEdit: "Copy As" content-menu tool shows hex values both with/without alpha when available. -- InputText: Fix corruption or crash when executing undo after clearing input with ESC, as a - byproduct we are allowing to later undo the revert with a CTRL+Z. (#3008). -- InputText: Fix using a combination of _CallbackResize (e.g. for std::string binding), along with the - _EnterReturnsTrue flag along with the rarely used property of using an InputText without persisting - user-side storage. Previously if you had e.g. a local unsaved std::string and reading result back - from the widget, the user string object wouldn't be resized when Enter key was pressed. (#3009) -- MenuBar: Fix minor clipping issue where occasionally a menu text can overlap the right-most border. -- Window: Fix SetNextWindowBgAlpha(1.0f) failing to override alpha component. (#3007) [@Albog] -- Window: When testing for the presence of the ImGuiWindowFlags_NoBringToFrontOnFocus flag we - test both the focused/clicked window (which could be a child window) and the root window. -- ImDrawList: AddCircle(), AddCircleFilled() API can now auto-tessellate when provided a segment - count of zero. Alter tessellation quality with 'style.CircleSegmentMaxError'. [@ShironekoBen] -- ImDrawList: Add AddNgon(), AddNgonFilled() API with a guarantee on the explicit segment count. - In the current branch they are essentially the same as AddCircle(), AddCircleFilled() but as - we will rework the circle rendering functions to use textures and automatic segment count - selection, those new api can fill a gap. [@ShironekoBen] -- Columns: ImDrawList::Channels* functions now work inside columns. Added extra comments to - suggest using user-owned ImDrawListSplitter instead of ImDrawList functions. [@rokups] -- Misc: Added ImGuiMouseCursor_NotAllowed enum so it can be used by more shared widgets. [@rokups] -- Misc: Added IMGUI_DISABLE compile-time definition to make all headers and sources empty. -- Misc: Disable format checks when using stb_printf, to allow using extra formats. - Made IMGUI_USE_STB_SPRINTF a properly documented imconfig.h flag. (#2954) [@loicmolinari] -- Misc: Added misc/single_file/imgui_single_file.h, We use this to validate compiling all *.cpp - files in a same compilation unit. Actual users of that technique (also called "Unity builds") - can generally provide this themselves, so we don't really recommend you use this. [@rokups] -- CI: Added PVS-Studio static analysis on the continuous-integration server. [@rokups] -- Backends: GLFW, SDL, Win32, OSX, Allegro: Added support for ImGuiMouseCursor_NotAllowed. [@rokups] -- Backends: GLFW: Added support for the missing mouse cursors newly added in GLFW 3.4+. [@rokups] -- Backends: SDL: Wayland: use SDL_GetMouseState (because there is no global mouse state available - on Wayland). (#2800, #2802) [@NeroBurner] -- Backends: GLFW, SDL: report Windows key (io.KeySuper) as always released. Neither GLFW nor SDL can - correctly report the key release in every cases (e.g. when using Win+V) causing problems with some - widgets. The next release of GLFW (3.4+) will have a fix for it. However since it is both difficult - and discouraged to make use of this key for Windows application anyway, we just hide it. (#2976) -- Backends: Win32: Added support for #define IMGUI_IMPL_WIN32_DISABLE_GAMEPAD to disable all - XInput using code, and IMGUI_IMPL_WIN32_DISABLE_LINKING_XINPUT to disable linking with XInput, - the later may be problematic if compiling with recent Windows SDK and you want your app to run - on Windows 7. You can instead try linking with Xinput9_1_0.lib instead. (#2716) -- Backends: Glut: Improved FreeGLUT support for MinGW. (#3004) [@podsvirov] -- Backends: Emscripten: Avoid forcefully setting IMGUI_DISABLE_FILE_FUNCTIONS. (#3005) [@podsvirov] -- Examples: OpenGL: Explicitly adding -DIMGUI_IMPL_OPENGL_LOADER_GL3W to Makefile to match linking - settings (otherwise if another loader such as Glew is accessible, the OpenGL3 backend might - automatically use it). (#2919, #2798) -- Examples: OpenGL: Added support for glbinding OpenGL loader. (#2870) [@rokups] -- Examples: Emscripten: Demonstrating embedding fonts in Makefile and code. (#2953) [@Oipo] -- Examples: Metal: Wrapped main loop in @autoreleasepool block to ensure allocations get freed - even if underlying system event loop gets paused due to app nap. (#2910, #2917) [@bear24rw] - - ------------------------------------------------------------------------ - VERSION 1.74 (Released 2019-11-25) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.74 - -Breaking Changes: - -- Removed redirecting functions/enums names that were marked obsolete in 1.52 (October 2017): - - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed - - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) - - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding() - - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) - - ImFont::Glyph -> use ImFontGlyph - If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out - the new names or equivalent features, or see how they were implemented until 1.73. -- Inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used - by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. - If you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can - add +io.KeyRepeatDelay to it to compensate for the fix. - The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). - Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). - Fixed the code and altered default io.KeyRepeatRate,Delay from 0.250,0.050 to 0.300,0.050 to compensate. - If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you. -- Misc: Renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS. (#1038) -- Misc: Renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS. -- Fonts: ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to - conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert. -- Backends: DX12: Added extra ID3D12DescriptorHeap parameter to ImGui_ImplDX12_Init() function. - The value is unused in master branch but will be used by the multi-viewport feature. (#2851) [@obfuscate] - -Other Changes: - -- InputText, Nav: Fixed Home/End key broken when activating Keyboard Navigation. (#787) -- InputText: Filter out ASCII 127 (DEL) emitted by low-level OSX layer, as we are using the Key value. (#2578) -- Layout: Fixed a couple of subtle bounding box vertical positioning issues relating to the handling of text - baseline alignment. The issue would generally manifest when laying out multiple items on a same line, - with varying heights and text baseline offsets. - Some specific examples, e.g. a button with regular frame padding followed by another item with a - multi-line label and no frame padding, such as: multi-line text, small button, tree node item, etc. - The second item was correctly offset to match text baseline, and would interact/display correctly, - but it wouldn't push the contents area boundary low enough. -- Scrollbar: Fixed an issue where scrollbars wouldn't display on the frame following a frame where - all child window contents would be culled. -- ColorPicker: Fixed SV triangle gradient to block (broken in 1.73). (#2864, #2711). [@lewa-j] -- TreeNode: Fixed combination of ImGuiTreeNodeFlags_SpanFullWidth and ImGuiTreeNodeFlags_OpenOnArrow - incorrectly locating the arrow hit position to the left of the frame. (#2451, #2438, #1897) -- TreeNode: The collapsing arrow accepts click even if modifier keys are being held, facilitating - interactions with custom multi-selections patterns. (#2886, #1896, #1861) -- TreeNode: Added IsItemToggledOpen() to explicitly query if item was just open/closed, facilitating - interactions with custom multi-selections patterns. (#1896, #1861) -- DragScalar, SliderScalar, InputScalar: Added p_ prefix to parameter that are pointers to the data - to clarify how they are used, and more comments redirecting to the demo code. (#2844) -- Error handling: Assert if user mistakenly calls End() instead of EndChild() on a child window. (#1651) -- Misc: Optimized storage of window settings data (reducing allocation count). -- Misc: Windows: Do not use _wfopen() if IMGUI_DISABLE_WIN32_FUNCTIONS is defined. (#2815) -- Misc: Windows: Disabled win32 function by default when building with UWP. (#2892, #2895) -- Misc: Using static_assert() when using C++11, instead of our own construct (avoid zealous Clang warnings). -- Misc: Added IMGUI_DISABLE_FILE_FUNCTIONS/IMGUI_DISABLE_DEFAULT_FILE_FUNCTION to nullify or disable - default implementation of ImFileXXX functions linking with fopen/fclose/fread/fwrite. (#2734) -- Docs: Improved and moved FAQ to docs/FAQ.md so it can be readable on the web. [@ButternCream, @ocornut] -- Docs: Moved misc/fonts/README.txt to docs/FONTS.txt. -- Docs: Added permanent redirect from https://www.dearimgui.org/faq to FAQ page. -- Demo: Added simple item reordering demo in Widgets -> Drag and Drop section. (#2823, #143) [@rokups] -- Metrics: Show wire-frame mesh and approximate surface area when hovering ImDrawCmd. [@ShironekoBen] -- Metrics: Expose basic details of each window key/value state storage. -- Examples: DX12: Using IDXGIDebug1::ReportLiveObjects() when DX12_ENABLE_DEBUG_LAYER is enabled. -- Examples: Emscripten: Removed BINARYEN_TRAP_MODE=clamp from Makefile which was removed in Emscripten 1.39.0 - but required prior to 1.39.0, making life easier for absolutely no-one. (#2877, #2878) [@podsvirov] -- Backends: OpenGL2: Explicitly backup, setup and restore GL_TEXTURE_ENV to increase compatibility with - legacy OpenGL applications. (#3000) -- Backends: OpenGL3: Fix building with pre-3.2 GL loaders which do not expose glDrawElementsBaseVertex(), - using runtime GL version to decide if we set ImGuiBackendFlags_RendererHasVtxOffset. (#2866, #2852) [@dpilawa] -- Backends: OSX: Fix using Backspace key. (#2578, #2817, #2818) [@DiligentGraphics] -- Backends: GLFW: Previously installed user callbacks are now restored on shutdown. (#2836) [@malte-v] -- CI: Set up a bunch of continuous-integration tests using GitHub Actions. We now compile many of the example - applications on Windows, Linux, MacOS, iOS, Emscripten. Removed Travis integration. (#2865) [@rokups] - - ------------------------------------------------------------------------ - VERSION 1.73 (Released 2019-09-24) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.73 - -Other Changes: - -- Nav, Scrolling: Added support for Home/End key. (#787) -- ColorEdit: Disable Hue edit when Saturation==0 instead of letting Hue values jump around. -- ColorEdit, ColorPicker: In HSV display of a RGB stored value, attempt to locally preserve Hue - when Saturation==0, which reduces accidentally lossy interactions. (#2722, #2770) [@rokups] -- ColorPicker: Made rendering aware of global style alpha of the picker can be faded out. (#2711) - Note that some elements won't accurately fade down with the same intensity, and the color wheel - when enabled will have small overlap glitches with (style.Alpha < 1.0). -- TabBar: Fixed single-tab not shrinking their width down. -- TabBar: Fixed clicking on a tab larger than tab-bar width creating a bouncing feedback loop. -- TabBar: Feed desired width (sum of unclipped tabs width) into layout system to allow for auto-resize. (#2768) - (before 1.71 tab bars fed the sum of current width which created feedback loops in certain situations). -- TabBar: Improved shrinking for large number of tabs to avoid leaving extraneous space on the right side. - Individuals tabs are given integer-rounded width and remainder is spread between tabs left-to-right. -- Columns, Separator: Fixed a bug where non-visible separators within columns would alter the next row position - differently than visible ones. -- SliderScalar: Improved assert when using U32 or U64 types with a large v_max value. (#2765) [@loicmouton] -- DragInt, DragFloat, DragScalar: Using (v_min > v_max) allows locking any edits to the value. -- DragScalar: Fixed dragging of unsigned values on ARM cpu (float to uint cast is undefined). (#2780) [@dBagrat] -- TreeNode: Added ImGuiTreeNodeFlags_SpanAvailWidth flag. (#2451, #2438, #1897) [@Melix19, @PathogenDavid] - This extends the hit-box to the right-most edge, even if the node is not framed. - (Note: this is not the default in order to allow adding other items on the same line. In the future we will - aim toward refactoring the hit-system to be front-to-back, allowing more natural overlapping of items, - and then we will be able to make this the default.) -- TreeNode: Added ImGuiTreeNodeFlags_SpanFullWidth flag. This extends the hit-box to both the left-most and - right-most edge of the working area, bypassing indentation. -- CollapsingHeader: Added support for ImGuiTreeNodeFlags_Bullet and ImGuiTreeNodeFlags_Leaf on framed nodes, - mostly for consistency. (#2159, #2160) [@goran-w] -- Selectable: Added ImGuiSelectableFlags_AllowItemOverlap flag in public api (was previously internal only). -- Style: Allow style.WindowMenuButtonPosition to be set to ImGuiDir_None to hide the collapse button. (#2634, #2639) -- Font: Better ellipsis ("...") drawing implementation. Instead of drawing three pixel-ey dots (which was glaringly - unfitting with many types of fonts) we first attempt to find a standard ellipsis glyphs within the loaded set. - Otherwise we render ellipsis using '.' from the font from where we trim excessive spacing to make it as narrow - as possible. (#2775) [@rokups] -- ImDrawList: Clarified the name of many parameters so reading the code is a little easier. (#2740) -- ImDrawListSplitter: Fixed merging channels if the last submitted draw command used a different texture. (#2506) -- Using offsetof() when available in C++11. Avoids Clang sanitizer complaining about old-style macros. (#94) -- ImVector: Added find(), find_erase(), find_erase_unsorted() helpers. -- Added a mechanism to compact/free the larger allocations of unused windows (buffers are compacted when - a window is unused for 60 seconds, as per io.ConfigWindowsMemoryCompactTimer = 60.0f). Note that memory - usage has never been reported as a problem, so this is merely a touch of overzealous luxury. (#2636) -- Documentation: Various tweaks and improvements to the README page. [@ker0chan] -- Backends: OpenGL3: Tweaked initialization code allow application calling ImGui_ImplOpenGL3_CreateFontsTexture() - before ImGui_ImplOpenGL3_NewFrame(), which sometimes can be convenient. -- Backends: OpenGL3: Attempt to automatically detect default GL loader by using __has_include. (#2798) [@o-micron] -- Backends: DX11: Fixed GSGetShader() call not passing an initialized instance count, which would - generally make the DX11 debug layer complain (bug added in 1.72). -- Backends: Vulkan: Added support for specifying multisample count. Set 'ImGui_ImplVulkan_InitInfo::MSAASamples' to - one of the VkSampleCountFlagBits values to use, default is non-multisampled as before. (#2705, #2706) [@vilya] -- Examples: OSX: Fix example_apple_opengl2/main.mm not forwarding mouse clicks and drags correctly. (#1961, #2710) - [@intonarumori, @ElectricMagic] -- Misc: Updated stb_rect_pack.h from 0.99 to 1.00 (fixes by @rygorous: off-by-1 bug in best-fit heuristic, - fix handling of rectangles too large to fit inside texture). (#2762) [@tido64] - - ------------------------------------------------------------------------ - VERSION 1.72b (Released 2019-07-31) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.72b - -Other Changes: - -- Nav, Scrolling: Fixed programmatic scroll leading to a slightly incorrect scroll offset when - the window has decorations or a menu-bar (broken in 1.71). This was mostly noticeable when - a keyboard/gamepad movement led to scrolling the view, or using e.g. SetScrollHereY() function. -- Nav: Made hovering non-MenuItem Selectable not re-assign the source item for keyboard navigation. -- Nav: Fixed an issue with NavFlattened window flag (beta) where widgets not entirely fitting - in child window (often selectables because of their protruding sides) would be not considered - as entry points to to navigate toward the child window. (#787) - - ------------------------------------------------------------------------ - VERSION 1.72 (Released 2019-07-27) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.72 - -Breaking Changes: - -- Removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017): - - ImGuiCol_Column*, ImGuiSetCond_* enums. - - IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow() functions. - - IMGUI_ONCE_UPON_A_FRAME macro. - If you were still using the old names, read "API Breaking Changes" section of imgui.cpp to find out - the new names or equivalent features. -- Renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete). -- Removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()). - Kept redirection function (will obsolete). (#581, #324) - -Other Changes: - -- Scrolling: Made mouse-wheel scrolling lock the underlying window until the mouse is moved again or - until a short delay expires (~2 seconds). This allow uninterrupted scroll even if child windows are - passing under the mouse cursor. (#2604) -- Scrolling: Made it possible for mouse wheel and navigation-triggered scrolling to override a call to - SetScrollX()/SetScrollY(), making it possible to use a simpler stateless pattern for auto-scrolling: - // (Submit items..) - if (ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) // If scrolling at the already at the bottom.. - ImGui::SetScrollHereY(1.0f); // ..make last item fully visible -- Scrolling: Added SetScrollHereX(), SetScrollFromPosX() for completeness. (#1580) [@kevreco] -- Scrolling: Mouse wheel scrolling while hovering a child window is automatically forwarded to parent window - if ScrollMax is zero on the scrolling axis. - Also still the case if ImGuiWindowFlags_NoScrollWithMouse is set (not new), but previously the forwarding - would be disabled if ImGuiWindowFlags_NoScrollbar was set on the child window, which is not the case - any more. Forwarding can still be disabled by setting ImGuiWindowFlags_NoInputs. (amend #1502, #1380). -- Window: Fixed InnerClipRect right-most coordinates using wrong padding setting (introduced in 1.71). -- Window: Fixed old SetWindowFontScale() api value from not being inherited by child window. Added - comments about the right way to scale your UI (load a font at the right side, rebuild atlas, scale style). -- Scrollbar: Avoid overlapping the opposite side when window (often a child window) is forcibly too small. -- Combo: Hide arrow when there's not enough space even for the square button. -- InputText: Testing for newly added ImGuiKey_KeyPadEnter key. (#2677, #2005) [@amc522] -- TabBar: Fixed unfocused tab bar separator color (was using ImGuiCol_Tab, should use ImGuiCol_TabUnfocusedActive). -- Columns: Fixed a regression from 1.71 where the right-side of the contents rectangle within each column - would wrongly use a WindowPadding.x instead of ItemSpacing.x like it always did. (#125, #2666) -- Columns: Made the right-most edge reaches up to the clipping rectangle (removing half of WindowPadding.x - worth of asymmetrical/extraneous padding, note that there's another half that conservatively has to offset - the right-most column, otherwise it's clipping width won't match the other columns). (#125, #2666) -- Columns: Improved honoring alignment with various values of ItemSpacing.x and WindowPadding.x. (#125, #2666) -- Columns: Made GetColumnOffset() and GetColumnWidth() behave when there's no column set, consistently with - other column functions. (#2683) -- InputTextMultiline: Fixed vertical scrolling tracking glitch. -- Word-wrapping: Fixed overzealous word-wrapping when glyph edge lands exactly on the limit. Because - of this, auto-fitting exactly unwrapped text would make it wrap. (fixes initial 1.15 commit, 78645a7d). -- Style: Attenuated default opacity of ImGuiCol_Separator in Classic and Light styles. -- Style: Added style.ColorButtonPosition (left/right, defaults to ImGuiDir_Right) to move the color button - of ColorEdit3/ColorEdit4 functions to either side of the inputs. -- IO: Added ImGuiKey_KeyPadEnter and support in various backends (previously backends would need to - specifically redirect key-pad keys to their regular counterpart). This is a temporary attenuating measure - until we actually refactor and add whole sets of keys into the ImGuiKey enum. (#2677, #2005) [@amc522] -- Misc: Made Button(), ColorButton() not trigger an "edited" event leading to IsItemDeactivatedAfterEdit() - returning true. This also effectively make ColorEdit4() not incorrect trigger IsItemDeactivatedAfterEdit() - when clicking the color button to open the picker popup. (#1875) -- Misc: Added IMGUI_DISABLE_METRICS_WINDOW imconfig.h setting to explicitly compile out ShowMetricsWindow(). -- Debug, Metrics: Added "Tools->Item Picker" tool which allow clicking on a widget to break in the debugger - within the item code. The tool calls IM_DEBUG_BREAK() which can be redefined in imconfig.h if needed. -- ImDrawList: Fixed CloneOutput() helper crashing. (#1860) [@gviot] -- ImDrawList::ChannelsSplit(), ImDrawListSplitter: Fixed an issue with merging draw commands between - channel 0 and 1. (#2624) -- ImDrawListSplitter: Fixed memory leak when using low-level split api (was not affecting ImDrawList api, - also this type was added in 1.71 and not advertised as a public-facing feature). -- Fonts: binary_to_compressed_c.cpp: Display an error message if failing to open/read the input font file. -- Demo: Log, Console: Using a simpler stateless pattern for auto-scrolling. -- Demo: Widgets: Showing how to use the format parameter of Slider/Drag functions to display the name - of an enum value instead of the underlying integer value. -- Demo: Renamed the "Help" menu to "Tools" (more accurate). -- Backends: DX10/DX11: Backup, clear and restore Geometry Shader is any is bound when calling renderer. -- Backends: DX11: Clear Hull Shader, Domain Shader, Compute Shader before rendering. Not backing/restoring them. -- Backends: OSX: Disabled default native Mac clipboard copy/paste implementation in core library (added in 1.71), - because it needs application to be linked with '-framework ApplicationServices'. It can be explicitly - enabled back by using '#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS' in imconfig.h. Re-added - equivalent using NSPasteboard api in the imgui_impl_osx.mm experimental backend. (#2546) -- Backends: SDL2: Added ImGui_ImplSDL2_InitForD3D() function to make D3D support more visible. - (#2482, #2632) [@josiahmanson] -- Examples: Added SDL2+DirectX11 example application. (#2632, #2612, #2482) [@vincenthamm] - - ------------------------------------------------------------------------ - VERSION 1.71 (Released 2019-06-12) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.71 - -Breaking Changes: - -- IO: changed AddInputCharacter(unsigned short c) signature to AddInputCharacter(unsigned int c). -- Renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete). -- Window: rendering of child windows outer decorations (e.g. bg color, border, scrollbars) is now - performed as part of their parent window, avoiding the creation of an extraneous draw commands. - If you have overlapping child windows with decorations, and relied on their relative z-order to be - mapped to submission their order, this will affect your rendering. The optimization is disabled - if the parent window has no visual output because it appears to be the most common situation leading - to the creation of overlapping child windows. Please reach out if you are affected by this change! - -Other Changes: - -- Window: clarified behavior of SetNextWindowContentSize(). Content size is defined as the size available - after removal of WindowPadding on each sides. So SetNextWindowContentSize(ImVec2(100,100)) + auto-resize - will always allow submitting a 100x100 item without creating a scrollbar, regarding of WindowPadding. - The exact meaning of ContentSize for decorated windows was previously ill-defined. -- Window: Fixed auto-resize with AlwaysVerticalScrollbar or AlwaysHorizontalScrollbar flags. -- Window: Fixed one case where auto-resize by double-clicking the resize grip would make either scrollbar - appear for a single frame after the resize. -- Separator: Revert 1.70 "Declare its thickness (1.0f) to the layout" change. It's not incorrect - but it breaks existing some layout patterns. Will return back to it when we expose Separator flags. -- Fixed InputScalar, InputScalarN, SliderScalarN, DragScalarN with non-visible label from inserting - style.ItemInnerSpacing.x worth of trailing spacing. -- Fixed InputFloatX, SliderFloatX, DragFloatX functions erroneously reporting IsItemEdited() multiple - times when the text input doesn't match the formatted output value (e.g. input "1" shows "1.000"). - It wasn't much of a problem because we typically use the return value instead of IsItemEdited() here. -- Fixed uses of IsItemDeactivated(), IsItemDeactivatedAfterEdit() on multi-components widgets and - after EndGroup(). (#2550, #1875) -- Fixed crash when appending with BeginMainMenuBar() more than once and no other window are showing. (#2567) -- ColorEdit: Fixed the color picker popup only displaying inputs as HSV instead of showing multiple - options. (#2587, broken in 1.69 by #2384). -- CollapsingHeader: Better clipping when a close button is enabled and it overlaps the label. (#600) -- Scrollbar: Minor bounding box adjustment to cope with various border size. -- Scrollbar, Style: Changed default style.ScrollbarSize from 16 to 14. -- Combo: Fixed rounding not applying with the ImGuiComboFlags_NoArrowButton flag. (#2607) [@DucaRii] -- Nav: Fixed gamepad/keyboard moving of window affecting contents size incorrectly, sometimes leading - to scrollbars appearing during the movement. -- Nav: Fixed rare crash when e.g. releasing Alt-key while focusing a window with a menu at the same - frame as clearing the focus. This was in most noticeable in backends such as Glfw and SDL which - emits key release events when focusing another viewport, leading to Alt+clicking on void on another - viewport triggering the issue. (#2609) -- TreeNode, CollapsingHeader: Fixed highlight frame not covering horizontal area fully when using - horizontal scrolling. (#2211, #2579) -- TabBar: Fixed BeginTabBar() within a window with horizontal scrolling from creating a feedback - loop with the horizontal contents size. -- Columns: Fixed Columns() within a window with horizontal scrolling from not covering the full - horizontal area (previously only worked with an explicit contents size). (#125) -- Columns: Fixed Separator from creating an extraneous draw command. (#125) -- Columns: Fixed Selectable with SpanAllColumns flag from creating an extraneous draw command. (#125) -- Style: Added style.WindowMenuButtonPosition (left/right, defaults to ImGuiDir_Left) to move the - collapsing/docking button to the other side of the title bar. -- Style: Made window close button cross slightly smaller. -- Log/Capture: Fixed BeginTabItem() label not being included in a text log/capture. -- ImDrawList: Added ImDrawCmd::VtxOffset value to support large meshes (64k+ vertices) using 16-bit indices. - The renderer backend needs to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' to enable - this, and honor the ImDrawCmd::VtxOffset field. Otherwise the value will always be zero. (#2591) - This has the advantage of preserving smaller index buffers and allowing to execute on hardware that do not - support 32-bit indices. Most examples backends have been modified to support the VtxOffset field. -- ImDrawList: Added ImDrawCmd::IdxOffset value, equivalent to summing element count for each draw command. - This is provided for convenience and consistency with VtxOffset. (#2591) -- ImDrawCallback: Allow to override the signature of ImDrawCallback by #define-ing it. This is meant to - facilitate custom rendering backends passing local render-specific data to the draw callback. -- ImFontAtlas: FreeType: Added RasterizerFlags::Monochrome flag to disable font anti-aliasing. Combine - with RasterizerFlags::MonoHinting for best results. (#2545) [@HolyBlackCat] -- ImFontGlyphRangesBuilder: Fixed unnecessarily over-sized buffer, which incidentally was also not - fully cleared. Fixed edge-case overflow when adding character 0xFFFF. (#2568). [@NIKE3500] -- Demo: Added full "Dear ImGui" prefix to the title of "Dear ImGui Demo" and "Dear ImGui Metrics" windows. -- Backends: Add native Mac clipboard copy/paste default implementation in core library to match what we are - dealing with Win32, and to facilitate integration in custom engines. (#2546) [@andrewwillmott] -- Backends: OSX: imgui_impl_osx: Added mouse cursor support. (#2585, #1873) [@actboy168] -- Examples/Backends: DirectX9/10/11/12, Metal, Vulkan, OpenGL3 (Desktop GL only): Added support for large meshes - (64k+ vertices) with 16-bit indices, enable 'ImGuiBackendFlags_RendererHasVtxOffset' in those backends. (#2591) -- Examples/Backends: Don't filter characters under 0x10000 before calling io.AddInputCharacter(), - the filtering is done in io.AddInputCharacter() itself. This is in prevision for fuller Unicode - support. (#2538, #2541) - - ------------------------------------------------------------------------ - VERSION 1.70 (Released 2019-05-06) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.70 - -Breaking Changes: - -- ImDrawList: Improved algorithm for mitre joints on thick lines, preserving correct thickness - up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines, - they will appear a little thicker now. (#2518) [@rmitton] -- Obsoleted GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. - Kept inline redirection function. -- Examples: Vulkan: Added MinImageCount/ImageCount fields in ImGui_ImplVulkan_InitInfo, required - during initialization to specify the number of in-flight image requested by swap chains. - (was previously a hard #define IMGUI_VK_QUEUED_FRAMES 2). (#2071, #1677) [@nathanvoglsam] -- Examples: Vulkan: Tidying up the demo/internals helpers (most engine/app should not rely - on them but it is possible you have!). - -Other Changes: - -- ImDrawList: Added ImDrawCallback_ResetRenderState, a special ImDrawList::AddCallback() value - to request the renderer backend to reset its render state. (#2037, #1639, #2452) - Examples: Added support for ImDrawCallback_ResetRenderState in all renderer backends. Each - renderer code setting up initial render state has been moved to a function so it could be - called at the start of rendering and when a ResetRenderState is requested. [@ocornut, @bear24rw] -- InputText: Fixed selection background rendering one frame after the cursor movement when - first transitioning from no-selection to has-selection. (Bug in 1.69) (#2436) [@Nazg-Gul] -- InputText: Work-around for buggy standard libraries where isprint('\t') returns true. (#2467, #1336) -- InputText: Fixed ImGuiInputTextFlags_AllowTabInput leading to two tabs characters being inserted - if the backend provided both Key and Character input. (#2467, #1336) -- Layout: Added SetNextItemWidth() helper to avoid using PushItemWidth/PopItemWidth() for single items. - Note that SetNextItemWidth() currently only affect the same subset of items as PushItemWidth(), - generally referred to as the large framed+labeled items. Because the new SetNextItemWidth() - function is explicit we may later extend its effect to more items. -- Layout: Fixed PushItemWidth(-width) for right-side alignment laying out some items (button, listbox, etc.) - with negative sizes if the 'width' argument was smaller than the available width at the time of item - submission. -- Window: Fixed window with the AlwaysAutoResize flag unnecessarily extending their hovering boundaries - by a few pixels (this is used to facilitate resizing from borders when available for a given window). - One of the noticeable minor side effect was that navigating menus would have had a tendency to disable - highlight from parent menu items earlier than necessary while approaching the child menu. -- Window: Close button is horizontally aligned with style.FramePadding.x. -- Window: Fixed contents region being off by WindowBorderSize amount on the right when scrollbar is active. -- Window: Fixed SetNextWindowSizeConstraints() with non-rounded positions making windows drift. (#2067, #2530) -- Popups: Closing a popup restores the focused/nav window in place at the time of the popup opening, - instead of restoring the window that was in the window stack at the time of the OpenPopup call. (#2517) - Among other things, this allows opening a popup while no window are focused, and pressing Escape to - clear the focus again. -- Popups: Fixed right-click from closing all popups instead of aiming at the hovered popup level - (regression in 1.67). -- Selectable: With ImGuiSelectableFlags_AllowDoubleClick doesn't return true on the mouse button release - following the double-click. Only first mouse release + second mouse down (double-click) returns true. - Likewise for internal ButtonBehavior() with both _PressedOnClickRelease | _PressedOnDoubleClick. (#2503) -- GetMouseDragDelta(): also returns the delta on the mouse button released frame. (#2419) -- GetMouseDragDelta(): verify that mouse positions are valid otherwise returns zero. -- Inputs: Also add support for horizontal scroll with Shift+Mouse Wheel. (#2424, #1463) [@LucaRood] -- PlotLines, PlotHistogram: Ignore NaN values when calculating min/max bounds. (#2485) -- Columns: Fixed boundary of clipping being off by 1 pixel within the left column. (#125) -- Separator: Declare its thickness (1.0f) to the layout, making items around separator more symmetrical. -- Combo, Slider, Scrollbar: Improve rendering in situation when there's only a few pixels available (<3 pixels). -- Nav: Fixed Drag/Slider functions going into text input mode when keyboard CTRL is held while pressing NavActivate. -- Drag and Drop: Fixed drag source with ImGuiDragDropFlags_SourceAllowNullID and null ID from receiving click - regardless of being covered by another window (it didn't honor correct hovering rules). (#2521) -- ImDrawList: Improved algorithm for mitre joints on thick lines, preserving correct thickness up to 90 degrees - angles, also faster to output. (#2518) [@rmitton] -- Misc: Added IM_MALLOC/IM_FREE macros mimicking IM_NEW/IM_DELETE so user doesn't need to revert - to using the ImGui::MemAlloc()/MemFree() calls directly. -- Misc: Made IMGUI_CHECKVERSION() macro also check for matching size of ImDrawIdx. -- Metrics: Added "Show windows rectangles" tool to visualize the different rectangles. -- Demo: Improved trees in columns demo. -- Examples: OpenGL: Added a test GL call + comments in ImGui_ImplOpenGL3_Init() to detect uninitialized - GL function loaders early, and help users understand what they are missing. (#2421) -- Examples: SDL: Added support for SDL_GameController gamepads (enable with ImGuiConfigFlags_NavEnableGamepad). (#2509) [@DJLink] -- Examples: Emscripten: Added Emscripten+SDL+GLES2 example. (#2494, #2492, #2351, #336) [@nicolasnoble, @redblobgames] -- Examples: Metal: Added Glfw+Metal example. (#2527) [@bear24rw] -- Examples: OpenGL3: Minor tweaks + not calling glBindBuffer more than necessary in the render loop. -- Examples: Vulkan: Fixed in-flight buffers issues when using multi-viewports. (#2461, #2348, #2378, #2097) -- Examples: Vulkan: Added missing support for 32-bit indices (#define ImDrawIdx unsigned int). -- Examples: Vulkan: Avoid passing negative coordinates to vkCmdSetScissor, which debug validation layers do not like. -- Examples: Vulkan: Added ImGui_ImplVulkan_SetMinImageCount() to change min image count at runtime. (#2071) [@nathanvoglsam] -- Examples: DirectX9: Fixed erroneous assert in ImGui_ImplDX9_InvalidateDeviceObjects(). (#2454) -- Examples: DirectX10/11/12, Allegro, Marmalade: Render functions early out when display size is zero (minimized). (#2496) -- Examples: GLUT: Fixed existing FreeGLUT example to work with regular GLUT. (#2465) [@andrewwillmott] -- Examples: GLUT: Renamed imgui_impl_freeglut.cpp/.h to imgui_impl_glut.cpp/.h. (#2465) [@andrewwillmott] -- Examples: GLUT: Made io.DeltaTime always > 0. (#2430) -- Examples: Visual Studio: Updated default platform toolset+sdk in vcproj files from v100+sdk7 (vs2010) - to v110+sdk8 (vs2012). This is mostly so we can remove reliance on DXSDK_DIR for the DX10/DX11 example, - which if existing and when switching to recent SDK ends up conflicting and creating warnings. - - ------------------------------------------------------------------------ - VERSION 1.69 (Released 2019-03-13) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.69 - -Breaking Changes: - -- Renamed ColorEdit/ColorPicker's ImGuiColorEditFlags_RGB/_HSV/_HEX flags to respectively - ImGuiColorEditFlags_DisplayRGB/_DisplayHSV/_DisplayHex. This is because the addition of - new flag ImGuiColorEditFlags_InputHSV makes the earlier one ambiguous. - Kept redirection enum values (will obsolete). (#2384) [@haldean] -- Renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). (#2391) - -Other Changes: - -- Added GetBackgroundDrawList() helper to quickly get access to a ImDrawList that will be rendered - behind every other windows. (#2391, #545) -- DragScalar, InputScalar, SliderScalar: Added support for u8/s8/u16/s16 data types (ImGuiDataType_S8, etc.) - We are reusing function instances of larger types to reduce code size. (#643, #320, #708, #1011) -- Added InputTextWithHint() to display a description/hint in the text box when no text - has been entered. (#2400) [@Organic-Code, @ocornut] -- Nav: Fixed a tap on AltGR (e.g. German keyboard) from navigating to the menu layer. -- Nav: Fixed Ctrl+Tab keeping active InputText() of a previous window active after the switch. (#2380) -- Fixed IsItemDeactivated()/IsItemDeactivatedAfterEdit() from not correctly returning true - when tabbing out of a focusable widget (Input/Slider/Drag) in most situations. (#2215, #1875) -- InputInt, InputFloat, InputScalar: Fix to keep the label of the +/- buttons centered when - style.FramePadding.x is abnormally larger than style.FramePadding.y. Since the buttons are - meant to be square (to align with e.g. color button) we always use FramePadding.y. (#2367) -- InputInt, InputScalar: +/- buttons now respects the natural type limits instead of - overflowing or underflowing the value. -- InputText: Fixed an edge case crash that would happen if another widget sharing the same ID - is being swapped with an InputText that has yet to be activated. -- InputText: Fixed various display corruption related to swapping the underlying buffer while - a input widget is active (both for writable and read-only paths). Often they would manifest - when manipulating the scrollbar of a multi-line input text. -- ColorEdit, ColorPicker, ColorButton: Added ImGuiColorEditFlags_InputHSV to manipulate color - values encoded as HSV (in order to avoid HSV<>RGB round trips and associated singularities). - (#2383, #2384) [@haldean] -- ColorPicker: Fixed a bug/assertion when displaying a color picker in a collapsed window - while dragging its title bar. (#2389) -- ColorEdit: Fixed tooltip not honoring the ImGuiColorEditFlags_NoAlpha contract of never - reading the 4th float in the array (value was read and discarded). (#2384) [@haldean] -- MenuItem, Selectable: Fixed disabled widget interfering with navigation (fix c2db7f63 in 1.67). -- TabBar: Fixed a crash when using many BeginTabBar() recursively (didn't affect docking). (#2371) -- TabBar: Added extra mis-usage error recovery. Past the assert, common mis-usage don't lead to - hard crashes any more, facilitating integration with scripting languages. (#1651) -- TabBar: Fixed ImGuiTabItemFlags_SetSelected being ignored if the tab is not visible (with - scrolling policy enabled) or if is currently appearing. -- TabBar: Fixed Tab tooltip code making drag and drop tooltip disappear during the frame where - the drag payload activate a tab. -- TabBar: Reworked scrolling policy (when ImGuiTabBarFlags_FittingPolicyScroll is set) to - teleport the view when aiming at a tab far away the visible section, and otherwise accelerate - the scrolling speed to cap the scrolling time to 0.3 seconds. -- Text: Fixed large Text/TextUnformatted calls not feeding their size into layout when starting - below the lower point of the current clipping rectangle. This bug has been there since v1.0! - It was hardly noticeable but would affect the scrolling range, which in turn would affect - some scrolling request functions when called during the appearing frame of a window. -- Plot: Fixed divide-by-zero in PlotLines() when passing a count of 1. (#2387) [@Lectem] -- Log/Capture: Fixed LogXXX functions emitting extraneous leading carriage return. -- Log/Capture: Fixed an issue when empty string on a new line would not emit a carriage return. -- Log/Capture: Fixed LogXXX functions 'auto_open_depth' parameter being treated as an absolute - tree depth instead of a relative one. -- Log/Capture: Fixed CollapsingHeader trailing ascii representation being "#" instead of "##". -- ImFont: Added GetGlyphRangesVietnamese() helper. (#2403) -- Misc: Asserting in NewFrame() if style.WindowMinSize is zero or smaller than (1.0f,1.0f). -- Demo: Using GetBackgroundDrawList() and GetForegroundDrawList() in "Custom Rendering" demo. -- Demo: InputText: Demonstrating use of ImGuiInputTextFlags_CallbackResize. (#2006, #1443, #1008). -- Examples: GLFW, SDL: Preserve DisplayFramebufferScale when main viewport is minimized. - (This is particularly useful for the viewport branch because we are not supporting per-viewport - frame-buffer scale. It fixes windows not refreshing when main viewport is minimized.) (#2416) -- Examples: OpenGL: Fix to be able to run on ES 2.0 / WebGL 1.0. [@rmitton, @gabrielcuvillier] -- Examples: OpenGL: Fix for OSX not supporting OpenGL 4.5, we don't try to read GL_CLIP_ORIGIN - even if the OpenGL headers/loader happens to define the value. (#2366, #2186) -- Examples: Allegro: Added support for touch events (emulating mouse). (#2219) [@dos1] -- Examples: DirectX9: Minor changes to match the other DirectX examples more closely. (#2394) - - ------------------------------------------------------------------------ - VERSION 1.68 (Released 2019-02-19) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.68 - -Breaking Changes: - -- Removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already). -- Made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). - If for some reason your time step calculation gives you a zero value, replace it with a arbitrary small value! - -Other Changes: - -- Added .editorconfig file for text editors to standardize using spaces. (#2038) [@kudaba] -- ImDrawData: Added FramebufferScale field (currently a copy of the value from io.DisplayFramebufferScale). - This is to allow render functions being written without pulling any data from ImGuiIO, allowing incoming - multi-viewport feature to behave on Retina display and with multiple displays. - If you are not using a custom backend, please update your render function code ahead of time, - and use draw_data->FramebufferScale instead of io.DisplayFramebufferScale. (#2306, #1676) -- Added IsItemActivated() as an extension to the IsItemDeactivated/IsItemDeactivatedAfterEdit functions - which are useful to implement variety of undo patterns. (#820, #956, #1875) -- InputText: Fixed a bug where ESCAPE would not restore the initial value in all situations. (#2321) [@relick] -- InputText: Fixed a bug where ESCAPE would be first captured by the Keyboard Navigation code. (#2321, #787) -- InputText: Fixed redo buffer exhaustion handling (rare) which could corrupt the undo character buffer. (#2333) - The way the redo/undo buffers work would have made it generally unnoticeable to the user. -- Fixed range-version of PushID() and GetID() not honoring the ### operator to restart from the seed value. -- Fixed CloseCurrentPopup() on a child-menu of a modal incorrectly closing the modal. (#2308) -- Tabs: Added ImGuiTabBarFlags_TabListPopupButton flag to show a popup button on manual tab bars. (#261, #351) -- Tabs: Removed ImGuiTabBarFlags_NoTabListPopupButton which was available in 1.67 but actually had zero use. -- Tabs: Fixed a minor clipping glitch when changing style's FramePadding from frame to frame. -- Tabs: Fixed border (when enabled) so it is aligned correctly mid-pixel and appears as bright as other borders. -- Style, Selectable: Added ImGuiStyle::SelectableTextAlign and ImGuiStyleVar_SelectableTextAlign. (#2347) [@haldean] -- Menus: Tweaked horizontal overlap between parent and child menu (to help convey relative depth) - from using style.ItemSpacing.x to style.ItemInnerSpacing.x, the later being expected to be smaller. (#1086) -- RadioButton: Fixed label horizontal alignment to precisely match Checkbox(). -- Window: When resizing from an edge, the border is more visible and better follow the rounded corners. -- Window: Fixed initial width of collapsed windows not taking account of contents width (broken in 1.67). (#2336, #176) -- Scrollbar: Fade out and disable interaction when too small, in order to facilitate using the resize grab on very - small window, as well as reducing visual noise/overlap. -- ListBox: Better optimized when clipped / non-visible. -- InputTextMultiline: Better optimized when clipped / non-visible. -- Font: Fixed high-level ImGui::CalcTextSize() used by most widgets from erroneously subtracting 1.0f*scale to - calculated text width. Among noticeable side-effects, it would make sequences of repeated Text/SameLine calls - not align the same as a single call, and create mismatch between high-level size calculation and those performed - with the lower-level ImDrawList api. (#792) [@SlNPacifist] -- Font: Fixed building atlas when specifying duplicate/overlapping ranges within a same font. (#2353, #2233) -- ImDrawList: Fixed AddCircle(), AddCircleFilled() angle step being off, which was visible when drawing a "circle" - with a small number of segments (e.g. an hexagon). (#2287) [@baktery] -- ImGuiTextBuffer: Added append() function (unformatted). -- ImFontAtlas: Added 0x2000-0x206F general punctuation range to default ChineseFull/ChineseSimplifiedCommon ranges. (#2093) -- ImFontAtlas: FreeType: Added support for imgui allocators + custom FreeType only SetAllocatorFunctions. (#2285) [@Vuhdo] -- ImFontAtlas: FreeType: Fixed using imgui_freetype.cpp in unity builds. (#2302) -- Demo: Fixed "Log" demo not initializing properly, leading to the first line not showing before a Clear. (#2318) [@bluescan] -- Demo: Added "Auto-scroll" option in Log/Console demos. (#2300) [@nicolasnoble, @ocornut] -- Examples: Metal, OpenGL2, OpenGL3, Vulkan: Fixed offsetting of clipping rectangle with ImDrawData::DisplayPos != (0,0) - when the display frame-buffer scale scale is not (1,1). While this doesn't make a difference when using master branch, - this is effectively fixing support for multi-viewport with Mac Retina Displays on those examples. (#2306) [@rasky, @ocornut] - Also using ImDrawData::FramebufferScale instead of io.DisplayFramebufferScale. -- Examples: Clarified the use the ImDrawData::DisplayPos to offset clipping rectangles. -- Examples: Win32: Using GetForegroundWindow()+IsChild() instead of GetActiveWindow() to be compatible with windows created - in a different thread or parent. (#1951, #2087, #2156, #2232) [many people] -- Examples: SDL: Using the SDL_WINDOW_ALLOW_HIGHDPI flag. (#2306, #1676) [@rasky] -- Examples: Win32: Added support for XInput gamepads (if ImGuiConfigFlags_NavEnableGamepad is enabled). -- Examples: Win32: Added support for mouse buttons 4 and 5 via WM_XBUTTON* messages. (#2264) -- Examples: DirectX9: Explicitly disable fog (D3DRS_FOGENABLE) before drawing in case user state has it set. (#2288, #2230) -- Examples: OpenGL2: Added #define GL_SILENCE_DEPRECATION to cope with newer XCode warnings. -- Examples: OpenGL3: Using GLSL 4.10 shaders for any GLSL version over 410 (e.g. 430, 450). (#2329) [@BrutPitt] - - ------------------------------------------------------------------------ - VERSION 1.67 (Released 2019-01-14) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.67 - -Breaking Changes: - -- Made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable - side-effect because the window would have ID zero. In particular it is causing problems in viewport/docking branches. -- Renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges and removed its [Beta] mark. - The addition of new configuration options in the Docking branch is pushing for a little reorganization of those names. -- Renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete). - -Other Changes: -- Added BETA api for Tab Bar/Tabs widgets: (#261, #351) - - Added BeginTabBar(), EndTabBar(), BeginTabItem(), EndTabItem(), SetTabItemClosed() API. - - Added ImGuiTabBarFlags flags for BeginTabBar(). - - Added ImGuiTabItemFlags flags for BeginTabItem(). - - Style: Added ImGuiCol_Tab, ImGuiCol_TabHovered, ImGuiCol_TabActive, ImGuiCol_TabUnfocused, ImGuiCol_TabUnfocusedActive colors. - - Demo: Added Layout->Tabs demo code. - - Demo: Added "Documents" example app showcasing possible use for tabs. - This feature was merged from the Docking branch in order to allow the use of regular tabs in your code. - (It does not provide the docking/splitting/merging of windows available in the Docking branch) -- Added ImGuiWindowFlags_UnsavedDocument window flag to append '*' to title without altering the ID, as a convenience - to avoid using the ### operator. In the Docking branch this also has an effect on tab closing behavior. -- Window, Focus, Popup: Fixed an issue where closing a popup by clicking another window with the _NoMove flag would refocus - the parent window of the popup instead of the newly clicked window. -- Window: Contents size is preserved while a window collapsed. Fix auto-resizing window losing their size for one frame when uncollapsed. -- Window: Contents size is preserved while a window contents is hidden (unless it is hidden for resizing purpose). -- Window: Resizing windows from edge is now enabled by default (io.ConfigWindowsResizeFromEdges=true). Note that - it only works _if_ the backend sets ImGuiBackendFlags_HasMouseCursors, which the standard backends do. -- Window: Added io.ConfigWindowsMoveFromTitleBarOnly option. This is ignored by window with no title bars (often popups). - This affects clamping window within the visible area: with this option enabled title bars need to be visible. (#899) -- Window: Fixed using SetNextWindowPos() on a child window (which wasn't really documented) position the cursor as expected - in the parent window, so there is no mismatch between the layout in parent and the position of the child window. -- InputFloat: When using ImGuiInputTextFlags_ReadOnly the step buttons are disabled. (#2257) -- DragFloat: Fixed broken mouse direction change with power!=1.0. (#2174, #2206) [@Joshhua5] -- Nav: Fixed an keyboard issue where holding Activate/Space for longer than two frames on a button would unnecessary - keep the focus on the parent window, which could steal it from newly appearing windows. (#787) -- Nav: Fixed animated window titles from being updated when displayed in the CTRL+Tab list. (#787) -- Error recovery: Extraneous/undesired calls to End() are now being caught by an assert in the End() function closer - to the user call site (instead of being reported in EndFrame). Past the assert, they don't lead to crashes any more. (#1651) - Missing calls to End(), past the assert, should not lead to crashes or to the fallback Debug window appearing on screen. - Those changes makes it easier to integrate dear imgui with a scripting language allowing, given asserts are redirected - into e.g. an error log and stopping the script execution. -- ImFontAtlas: Stb and FreeType: Atlas width is now properly based on total surface rather than glyph count (unless overridden with TexDesiredWidth). -- ImFontAtlas: Stb and FreeType: Fixed atlas builder so missing glyphs won't influence the atlas texture width. (#2233) -- ImFontAtlas: Stb and FreeType: Fixed atlas builder so duplicate glyphs (when merging fonts) won't be included in the rasterized atlas. -- ImFontAtlas: FreeType: Fixed abnormally high atlas height. -- ImFontAtlas: FreeType: Fixed support for any values of TexGlyphPadding (not just only 1). -- ImDrawList: Optimized some of the functions for performance of debug builds where non-inline function call cost are non-negligible. - (Our test UI scene on VS2015 Debug Win64 with /RTC1 went ~5.9 ms -> ~4.9 ms. In Release same scene stays at ~0.3 ms.) -- IO: Added BackendPlatformUserData, BackendRendererUserData, BackendLanguageUserData void* for storage use by backends. -- IO: Renamed InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead! -- IO: AddInputCharacter() goes into a queue which can receive as many characters as needed during the frame. This is useful - for automation to not have an upper limit on typing speed. Will later transition key/mouse to use the event queue later. -- Style: Tweaked default value of style.DisplayWindowPadding from (20,20) to (19,19) so the default style as a value - which is the same as the title bar height. -- Demo: "Simple Layout" and "Style Editor" are now using tabs. -- Demo: Added a few more things under "Child windows" (changing ImGuiCol_ChildBg, positioning child, using IsItemHovered after a child). -- Examples: DirectX10/11/12: Made imgui_impl_dx10/dx11/dx12.cpp link d3dcompiler.lib from the .cpp file to ease integration. -- Examples: Allegro 5: Properly destroy globals on shutdown to allow for restart. (#2262) [@DomRe] - - ------------------------------------------------------------------------ - VERSION 1.66b (Released 2018-12-01) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.66b - -Other Changes: - -- Fixed a text rendering/clipping bug introduced in 1.66 (on 2018-10-12, commit ede3a3b9) that affect single ImDrawList::AddText() - calls with single strings larger than 10k. Text/TextUnformatted() calls were not affected, but e.g. InputText() was. [@pdoane] -- When the focused window become inactive don't restore focus to a window with the ImGuiWindowFlags_NoInputs flag. (#2213) [@zzzyap] -- Separator: Fixed Separator() outputting an extraneous empty line when captured into clipboard/text/file. -- Demo: Added ShowAboutWindow() call, previously was only accessible from the demo window. -- Demo: ShowAboutWindow() now display various Build/Config Information (compiler, os, etc.) that can easily be copied into bug reports. -- Fixed build issue with osxcross and macOS. (#2218) [@dos1] -- Examples: Setting up 'io.BackendPlatformName'/'io.BackendRendererName' fields to the current backend can be displayed in the About window. -- Examples: SDL: changed the signature of ImGui_ImplSDL2_ProcessEvent() to use a const SDL_Event*. (#2187) - - ------------------------------------------------------------------------ - VERSION 1.66 (Released 2018-11-22) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.66 - -Breaking Changes: - -- Renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete). -- Renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. (#2035, #2096) - -Other Changes: - -- Fixed calling SetNextWindowSize()/SetWindowSize() with non-integer values leading to - accidental alteration of window position. We now round the provided size. (#2067) -- Fixed calling DestroyContext() always saving .ini data with the current context instead - of the supplied context pointer. (#2066) -- Nav, Focus: Fixed ImGuiWindowFlags_NoBringToFrontOnFocus windows not being restoring focus - properly after the main menu bar or last focused window is deactivated. -- Nav: Fixed an assert in certain circumstance (mostly when using popups) when mouse positions stop being valid. (#2168) -- Nav: Fixed explicit directional input not re-highlighting current nav item if there is a single item in the window - and highlight has been previously disabled by the mouse. (#787) -- DragFloat: Fixed a situation where dragging with value rounding enabled or with a power curve - erroneously wrapped the value to one of the min/max edge. (#2024, #708, #320, #2075). -- DragFloat: Disabled using power curve when one edge is FLT_MAX (broken in 1.61). (#2024) -- DragFloat: Disabled setting a default drag speed when one edge is FLT_MAX. (#2024) -- SliderAngle: Added optional format argument to alter precision or localize the string. (#2150) [@podsvirov] -- Window: Resizing from edges (with io.ConfigResizeWindowsFromEdges Beta flag) extends the hit region - of root floating windows outside the window, making it easier to resize windows. Resize grips are also - extended accordingly so there are no discontinuity when hovering between borders and corners. (#1495, #822) -- Window: Added ImGuiWindowFlags_NoBackground flag to avoid rendering window background. This is mostly to allow - the creation of new flag combinations, as we could already use SetNextWindowBgAlpha(0.0f). (#1660) [@biojppm, @ocornut] -- Window: Added ImGuiWindowFlags_NoDecoration helper flag which is essentially NoTitleBar+NoResize+NoScrollbar+NoCollapse. -- Window: Added ImGuiWindowFlags_NoMouseInputs which is basically the old ImGuiWindowFlags_NoInputs (essentially - we have renamed ImGuiWindowFlags_NoInputs to ImGuiWindowFlags_NoMouseInputs). Made the new ImGuiWindowFlags_NoInputs - encompass both NoMouseInputs+NoNav, which is consistent with its description. (#1660, #787) -- Window, Inputs: Fixed resizing from edges when io.MousePos is not pixel-rounded by rounding mouse position input. (#2110) -- BeginChild(): Fixed BeginChild(const char*, ...) variation erroneously not applying the ID stack - to the provided string to uniquely identify the child window. This was undoing an intentional change - introduced in 1.50 and broken in 1.60. (#1698, #894, #713). -- TextUnformatted(): Fixed a case where large-text path would read bytes past the text_end marker depending - on the position of new lines in the buffer (it wasn't affecting the output but still not the right thing to do!) -- ListBox(): Fixed frame sizing when items_count==1 unnecessarily showing a scrollbar. (#2173) [@luk1337, @ocornut] -- ListBox(): Tweaked frame sizing so list boxes will look more consistent when FramePadding is far from ItemSpacing. -- RenderText(): Some optimization for very large text buffers, useful for non-optimized builds. -- BeginMenu(): Fixed menu popup horizontal offset being off the item in the menu bar when WindowPadding=0.0f. -- ArrowButton(): Fixed arrow shape being horizontally misaligned by (FramePadding.y-FramePadding.x) if they are different. -- Demo: Split the contents of ShowDemoWindow() into smaller functions as it appears to speed up link time with VS. (#2152) -- Drag and Drop: Added GetDragDropPayload() to peek directly into the payload (if any) from anywhere. (#143) -- ImGuiTextBuffer: Avoid heap allocation when empty. -- ImDrawList: Fixed AddConvexPolyFilled() undefined behavior when passing points_count smaller than 3, - in particular, points_count==0 could lead to a memory stomp if the draw list was previously empty. -- Examples: DirectX10, DirectX11: Removed seemingly unnecessary calls to invalidate and recreate device objects - in the WM_SIZE handler. (#2088) [@ice1000] -- Examples: GLFW: User previously installed GLFW callbacks are now saved and chain-called by the default callbacks. (#1759) -- Examples: OpenGL3: Added support for GL 4.5's glClipControl(GL_UPPER_LEFT). (#2186) -- Examples: OpenGL3+GLFW: Fixed error condition when using the GLAD loader. (#2157) [@blackball] -- Examples: OpenGL3+GLFW/SDL: Made main.cpp compile with IMGUI_IMPL_OPENGL_LOADER_CUSTOM (may be missing init). (#2178) [@doug-moen] -- Examples: SDL2+Vulkan: Fixed application shutdown which could deadlock on Linux + Xorg. (#2181) [@eRabbit0] - - ------------------------------------------------------------------------ - VERSION 1.65 (Released 2018-09-06) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.65 - -Breaking Changes: - -- Renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and - stb_rect_pack.h to imstb_rectpack.h. If you were conveniently using the imgui copy of those - STB headers in your project, you will have to update your include paths. (#1718, #2036) - The reason for this change is to avoid conflicts for projects that may also be importing - their own copy of the STB libraries. Note that imgui's copy of stb_textedit.h is modified. -- Renamed io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427) - -Other Changes: - -- This is a minor release following the 1.64 refactor, with a little more shuffling of code. -- Clarified and improved the source code sectioning in all files (easier to search or browse sections). -- Nav: Removed the [Beta] tag from various descriptions of the gamepad/keyboard navigation system. - Although it is not perfect and will keep being improved, it is fairly functional and used by many. (#787) -- Fixed a build issue with non-Cygwin GCC under Windows. -- Demo: Added a "Configuration" block to make io.ConfigFlags/io.BackendFlags more prominent. -- Examples: OpenGL3+SDL2: Fixed error condition when using the GLAD loader. (#2059, #2002) [@jiri] - - ------------------------------------------------------------------------ - VERSION 1.64 (Released 2018-08-31) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.64 - -Changes: - -- Moved README, CHANGELOG and TODO files to the docs/ folder. - If you are updating dear imgui by copying files, take the chance to delete the old files. -- Added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp. - Re-ordered some of the code remaining in imgui.cpp. - NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTIONS HAS BEEN MOVED. - Because of this, any local modifications to imgui.cpp will likely conflict when you update. - If you have any modifications to imgui.cpp, it is suggested that you first update to 1.63, then - isolate your patches. You can peak at imgui_widgets.cpp from 1.64 to get a sense of what is included in it, - then separate your changes into several patches that can more easily be applied to 1.64 on a per-file basis. - What I found worked nicely for me, was to open the diff of the old patches in an interactive merge/diff tool, - search for the corresponding function in the new code and apply the chunks manually. -- As a reminder, if you have any change to imgui.cpp it is a good habit to discuss them on the github, - so a solution applicable on the Master branch can be found. If your company has changes that you cannot - disclose you may also contact me privately. - - ------------------------------------------------------------------------ - VERSION 1.63 (Released 2018-08-29) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.63 - -Breaking Changes: - -- Style: Renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features. - Kept redirection enum (will obsolete). -- Changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecision over time. -- Removed per-window ImGuiWindowFlags_ResizeFromAnySide Beta flag in favor `io.ConfigResizeWindowsFromEdges=true` to - enable the feature globally. (#1495) - The feature is not currently enabled by default because it is not satisfying enough, but will eventually be. -- InputText: Renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData - for consistency. Kept redirection types (will obsolete). -- InputText: Removed ImGuiTextEditCallbackData::ReadOnly because it is a duplication of (::Flags & ImGuiInputTextFlags_ReadOnly). -- Renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. - Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent). -- Renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to - io.ConfigMacOSXBehaviors for consistency. (#1427, #473) -- Removed obsolete redirection functions: CollapsingHeader() variation with 2 bools - marked obsolete in v1.49, May 2016. - -Other Changes: - -- ArrowButton: Fixed to honor PushButtonRepeat() setting (and internals' ImGuiItemFlags_ButtonRepeat). -- ArrowButton: Setup current line text baseline so that ArrowButton() + SameLine() + Text() are aligned properly. -- Nav: Added a CTRL+TAB window list and changed the highlight system accordingly. The change is motivated by upcoming - Docking features. (#787) -- Nav: Made CTRL+TAB skip menus + skip the current navigation window if is has the ImGuiWindow_NoNavFocus set. (#787) - While it was previously possible, you won't be able to CTRL-TAB out and immediately back in a window with the - ImGuiWindow_NoNavFocus flag. -- Window: Allow menu and popups windows from ignoring the style.WindowMinSize values so short menus/popups are not padded. (#1909) -- Window: Added global io.ConfigResizeWindowsFromEdges option to enable resizing windows from their edges and from - the lower-left corner. (#1495) -- Window: Collapse button shows hovering highlight + clicking and dragging on it allows to drag the window as well. -- Added IsItemEdited() to query if the last item modified its value (or was pressed). This is equivalent to the bool - returned by most widgets. - It is useful in some situation e.g. using InputText() with ImGuiInputTextFlags_EnterReturnsTrue. (#2034) -- InputText: Added support for buffer size/capacity changes via the ImGuiInputTextFlags_CallbackResize flag. (#2006, #1443, #1008). -- InputText: Fixed not tracking the cursor horizontally when modifying the text buffer through a callback. -- InputText: Fixed minor off-by-one issue when submitting a buffer size smaller than the initial zero-terminated buffer contents. -- InputText: Fixed a few pathological crash cases on single-line InputText widget with multiple millions characters worth of contents. - Because the current text drawing function reserve for a worst-case amount of vertices and how we handle horizontal clipping, - we currently just avoid displaying those single-line widgets when they are over a threshold of 2 millions characters, - until a better solution is found. -- Drag and Drop: Fixed an incorrect assert when dropping a source that is submitted after the target (bug introduced with 1.62 changes - related to the addition of IsItemDeactivated()). (#1875, #143) -- Drag and Drop: Fixed ImGuiDragDropFlags_SourceNoDisableHover to affect hovering state prior to calling IsItemHovered() + fixed description. (#143) -- Drag and Drop: Calling BeginTooltip() between a BeginDragSource()/EndDragSource() or BeginDropTarget()/EndDropTarget() uses adjusted tooltip - settings matching the one created when calling BeginDragSource() without the ImGuiDragDropFlags_SourceNoPreviewTooltip flag. (#143) -- Drag and Drop: Payload stays available and under the mouse if the source stops being submitted, however the tooltip is replaced by "...". (#1725) -- Drag and Drop: Added ImGuiDragDropFlags_SourceAutoExpirePayload flag to force payload to expire if the source stops being submitted. (#1725, #143). -- IsItemHovered(): Added ImGuiHoveredFlags_AllowWhenDisabled flag to query hovered status on disabled items. (#1940, #211) -- Selectable: Added ImGuiSelectableFlags_Disabled flag in the public API. (#211) -- ColorEdit4: Fixed a bug when text input or drag and drop leading to unsaturated HSV values would erroneously alter the resulting color. (#2050) -- Misc: Added optional misc/stl/imgui_stl.h wrapper to use with STL types (e.g. InputText with std::string). (#2006, #1443, #1008) - [*EDIT* renamed to misc/std/imgui_stdlib.h in 1.66] -- Misc: Added IMGUI_VERSION_NUM for easy compile-time testing. (#2025) -- Misc: Added ImGuiMouseCursor_Hand cursor enum + corresponding software cursor. (#1913, 1914) [@aiekick, @ocornut] -- Misc: Tweaked software mouse cursor offset to match the offset of the corresponding Windows 10 cursors. -- Made assertion more clear when trying to call Begin() outside of the NewFrame()..EndFrame() scope. (#1987) -- Fixed assertion when transitioning from an active ID to another within a group, affecting ColorPicker (broken in 1.62). (#2023, #820, #956, #1875). -- Fixed PushID() from keeping alive the new ID Stack top value (if a previously active widget shared the ID it would be erroneously kept alive). -- Fixed horizontal mouse wheel not forwarding the request to the parent window if ImGuiWindowFlags_NoScrollWithMouse is set. (#1463, #1380, #1502) -- Fixed a include build issue for Cygwin in non-POSIX (Win32) mode. (#1917, #1319, #276) -- ImDrawList: Improved handling for worst-case vertices reservation policy when large amount of text (e.g. 1+ million character strings) - are being submitted in a single call. It would typically have crashed InputTextMultiline(). (#200) -- OS/Windows: Fixed missing ImmReleaseContext() call in the default Win32 IME handler. (#1932) [@vby] -- Metrics: Changed io.MetricsActiveWindows to reflect the number of active windows (!= from visible windows), which is useful - for lazy/idle render mechanisms as new windows are typically not visible for one frame. -- Metrics: Added io.MetricsRenderWindow to reflect the number of visible windows. -- Metrics: Added io.MetricsActiveAllocations, moving away from the cross-context global counters than we previously used. (#1565, #1599, #586) -- Demo: Added basic Drag and Drop demo. (#143) -- Demo: Modified the Console example to use InsertChars() in the input text callback instead of poking directly into the buffer. - Although this won't make a difference in the example itself, using InsertChars() will honor the resizing callback properly. (#2006, #1443, #1008). -- Demo: Clarified the use of IsItemHovered()/IsItemActive() right after being in the "Active, Focused, Hovered & Focused Tests" section. -- Examples: Tweaked the main.cpp of each example. -- Examples: Metal: Added Metal rendering backend. (#1929, #1873) [@warrenm] -- Examples: OSX: Added early raw OSX platform backend. (#1873) [@pagghiu, @itamago, @ocornut] -- Examples: Added mac OSX & iOS + Metal example in example_apple_metal/. (#1929, #1873) [@warrenm] -- Examples: Added mac OSX + OpenGL2 example in example_apple_opengl2/. (#1873) -- Examples: OpenGL3: Added shaders more versions of GLSL. (#1938, #1941, #1900, #1513, #1466, etc.) -- Examples: OpenGL3: Tweaked the imgui_impl_opengl3.cpp to work as-is with Emscripten + WebGL 2.0. (#1941). [@o-micron] -- Examples: OpenGL3: Made the example app default to GL 3.0 + GLSL 130 (instead of GL 3.2 + GLSL 150) unless on Mac. -- Examples: OpenGL3: Added error output when shaders fail to compile/link. -- Examples: OpenGL3: Added support for glew and glad OpenGL loaders out of the box. (#2001, #2002) [@jdumas] -- Examples: OpenGL2: Disabling/restoring GL_LIGHTING and GL_COLOR_MATERIAL to increase compatibility with legacy OpenGL applications. (#1996) -- Examples: DirectX10, DirectX11: Fixed unreleased resources in Init and Shutdown functions. (#1944) -- Examples: DirectX11: Querying for IDXGIFactory instead of IDXGIFactory1 to increase compatibility. (#1989) [@matt77hias] -- Examples: Vulkan: Fixed handling of VkSurfaceCapabilitiesKHR::maxImageCount = 0 case. Tweaked present mode selections. -- Examples: Win32, Glfw, SDL: Added support for the ImGuiMouseCursor_Hand cursor. - - ------------------------------------------------------------------------ - VERSION 1.62 (Released 2018-06-22) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.62 - -Breaking Changes: - -- TreeNodeEx(): The helper ImGuiTreeNodeFlags_CollapsingHeader flag now include ImGuiTreeNodeFlags_NoTreePushOnOpen. - The flag was already set by CollapsingHeader(). - The only difference is if you were using TreeNodeEx() manually with ImGuiTreeNodeFlags_CollapsingHeader and without - ImGuiTreeNodeFlags_NoTreePushOnOpen. In this case you can remove the ImGuiTreeNodeFlags_NoTreePushOnOpen flag from - your call (ImGuiTreeNodeFlags_CollapsingHeader & ~ImGuiTreeNodeFlags_NoTreePushOnOpen). (#1864) - This also apply if you were using internal's TreeNodeBehavior() with the ImGuiTreeNodeFlags_CollapsingHeader flag directly. -- ImFontAtlas: Renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish new smaller variants and - discourage using the full set. (#1859) - -Other Changes: - -- Examples backends have been refactored to separate the platform code (e.g. Win32, Glfw, SDL2) from the renderer code (e.g. DirectX11, OpenGL3, Vulkan). - The "Platform" backends are in charge of: mouse/keyboard/gamepad inputs, cursor shape, timing, etc. - The "Renderer" backends are in charge of: creating the main font texture, rendering imgui draw data. - before: imgui_impl_dx11.cpp --> after: imgui_impl_win32.cpp + imgui_impl_dx11.cpp - before: imgui_impl_dx12.cpp --> after: imgui_impl_win32.cpp + imgui_impl_dx12.cpp - before: imgui_impl_glfw_gl3.cpp --> after: imgui_impl_glfw.cpp + imgui_impl_opengl2.cpp - before: imgui_impl_glfw_vulkan.cpp --> after: imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp - before: imgui_impl_sdl_gl3.cpp --> after: imgui_impl_sdl2.cpp + imgui_impl_opengl2.cpp - before: imgui_impl_sdl_gl3.cpp --> after: imgui_impl_sdl2.cpp + imgui_impl_opengl3.cpp etc. - - The idea is what we can now easily combine and maintain backends and reduce code redundancy. Individual files are - smaller and more reusable. Integration of imgui into a new/custom engine may also be easier as there is less overlap - between "windowing / inputs" and "rendering" code, so you may study or grab one half of the code and not the other. - - This change was motivated by the fact that adding support for the upcoming multi-viewport feature requires more work - from the Platform and Renderer backends, and the amount of redundancy across files was becoming too difficult to - maintain. If you use default backends, you'll benefit from an easy update path to support multi-viewports later - (for future ImGui 1.7x). - - This is not strictly a breaking change if you keep your old backends, but when you'll want to fully update your backends, - expect to have to reshuffle a few things. - - Each example still has its own main.cpp which you may refer you to understand how to initialize and glue everything together. - - Some frameworks (such as the Allegro, Marmalade) handle both the "platform" and "rendering" part, and your custom engine may as well. - - Read examples/README.txt for details. -- Added IsItemDeactivated() to query if the last item was active previously and isn't anymore. Useful for Undo/Redo patterns. (#820, #956, #1875) -- Added IsItemDeactivatedAfterChange() [*EDIT* renamed to IsItemDeactivatedAfterEdit() in 1.63] if the last item was active previously, - is not anymore, and during its active state modified a value. Note that you may still get false positive (e.g. drag value and while - holding return on the same value). (#820, #956, #1875) -- Nav: Added support for PageUp/PageDown (explorer-style: first aim at bottom/top most item, when scroll a page worth of contents). (#787) -- Nav: To keep the navigated item in view we also attempt to scroll the parent window as well as the current window. (#787) -- ColorEdit3, ColorEdit4, ColorButton: Added ImGuiColorEditFlags_NoDragDrop flag to disable ColorEditX as drag target and ColorButton as drag source. (#1826) -- BeginDragDropSource(): Offset tooltip position so it is off the mouse cursor, but also closer to it than regular tooltips, - and not clamped by viewport. (#1739) -- BeginDragDropTarget(): Added ImGuiDragDropFlags_AcceptNoPreviewTooltip flag to request hiding the drag source tooltip - from the target site. (#143) -- BeginCombo(), BeginMainMenuBar(), BeginChildFrame(): Temporary style modification are restored at the end of BeginXXX - instead of EndXXX, to not affect tooltips and child windows. -- Popup: Improved handling of (erroneously) repeating calls to OpenPopup() to not close the popup's child popups. (#1497, #1533, #1865). -- InputTextMultiline(): Fixed double navigation highlight when scrollbar is active. (#787) -- InputText(): Fixed Undo corruption after pasting large amount of text (Redo will still fail when undo buffers are exhausted, - but text won't be corrupted). -- SliderFloat(): When using keyboard/gamepad and a zero precision format string (e.g. "%.0f"), always step in integer units. (#1866) -- ImFontConfig: Added GlyphMinAdvanceX/GlyphMaxAdvanceX settings useful to make a font appears monospaced, particularly useful - for icon fonts. (#1869) -- ImFontAtlas: Added GetGlyphRangesChineseSimplifiedCommon() helper that returns a list of ~2500 most common Simplified Chinese - characters. (#1859) [@JX-Master, @ocornut] -- Examples: OSX: Added imgui_impl_osx.mm backend to be used along with e.g. imgui_impl_opengl2.cpp. (#281, #1870) [@pagghiu, @itamago, @ocornut] -- Examples: GLFW: Made it possible to Shutdown/Init the backend again (by resetting the time storage properly). (#1827) [@ice1000] -- Examples: Win32: Fixed handling of mouse wheel messages to support sub-unit scrolling messages (typically sent by track-pads). (#1874) [@zx64] -- Examples: SDL+Vulkan: Added SDL+Vulkan example. -- Examples: Allegro5: Added support for ImGuiConfigFlags_NoMouseCursorChange flag. Added clipboard support. -- Examples: Allegro5: Unindexing buffers ourselves as Allegro indexed drawing primitives are buggy in the DirectX9 backend - (will be fixed in Allegro 5.2.5+). -- Examples: DirectX12: Moved the ID3D12GraphicsCommandList* parameter from ImGui_ImplDX12_NewFrame() to ImGui_ImplDX12_RenderDrawData() which makes a lots more sense. (#301) -- Examples: Vulkan: Reordered parameters ImGui_ImplVulkan_RenderDrawData() to be consistent with other backends, - a good occasion since we refactored the code. -- Examples: FreeGLUT: Added FreeGLUT backends. Added FreeGLUT+OpenGL2 example. (#801) -- Examples: The functions in imgui_impl_xxx.cpp are prefixed with IMGUI_IMPL_API (which defaults to IMGUI_API) to facilitate - some uses. (#1888) -- Examples: Fixed backends to use ImGuiMouseCursor_COUNT instead of old name ImGuiMouseCursor_Count_ so they can compile - with IMGUI_DISABLE_OBSOLETE_FUNCTIONS. (#1887) -- Misc: Updated stb_textedit from 1.09 + patches to 1.12 + minor patches. -- Internals: PushItemFlag() flags are inherited by BeginChild(). - - ------------------------------------------------------------------------ - VERSION 1.61 (Released 2018-05-14) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.61 - -Breaking Changes: - -- DragInt(): The default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally - any more. If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format. - To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d, - giving time to users to upgrade their code. - If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your - codebase for e.g. "DragInt.*%f" to you find them. -- InputFloat(): Obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more - flexible "const char* format", consistent with other functions. Kept redirection functions (will obsolete). -- Misc: IM_DELETE() helper function added in 1.60 doesn't set the input pointer to NULL, more consistent with standard - expectation and allows passing r-values. - -Other Changes: - -- Added DragScalar, DragScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011) -- Added InputScalar, InputScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011) -- Added SliderScalar, SliderScalarN: supports signed/unsigned, 32/64 bits, float/double data types. (#643, #320, #708, #1011) -- Window: Fixed pop-ups/tooltips/menus not honoring style.DisplaySafeAreaPadding as well as it should have (part of menus - displayed outside the safe area, etc.). -- Window: Fixed windows using the ImGuiWindowFlags_NoSavedSettings flag from not using the same default position as other windows. (#1760) -- Window: Relaxed the internal stack size checker to allow Push/Begin/Pop/.../End patterns to be used with PushStyleColor, PushStyleVar, PushFont without causing a false positive assert. (#1767) -- Window: Fixed the default proportional item width lagging by one frame on resize. -- Columns: Fixed a bug introduced in 1.51 where columns would affect the contents size of their container, often creating - feedback loops when ImGuiWindowFlags_AlwaysAutoResize was used. (#1760) -- Settings: Fixed saving an empty .ini file if CreateContext/DestroyContext are called without a single call to NewFrame(). (#1741) -- Settings: Added LoadIniSettingsFromDisk(), LoadIniSettingsFromMemory(), SaveIniSettingsToDisk(), SaveIniSettingsToMemory() - to manually load/save .ini settings. (#923, #993) -- Settings: Added io.WantSaveIniSettings flag, which is set to notify the application that e.g. SaveIniSettingsToMemory() - should be called. (#923, #993) -- Scrolling: Fixed a case where using SetScrollHere(1.0f) at the bottom of a window on the same frame the window height - has been growing would have the scroll clamped using the previous height. (#1804) -- MenuBar: Made BeginMainMenuBar() honor style.DisplaySafeAreaPadding so the text can be made visible on TV settings that - don't display all pixels. (#1439) [@dougbinks] -- InputText: On Mac OS X, filter out characters when the CMD modifier is held. (#1747) [@sivu] -- InputText: On Mac OS X, support CMD+SHIFT+Z for Redo. CMD+Y is also supported as major apps seems to default to support both. (#1765) [@lfnoise] -- InputText: Fixed returning true when edition is cancelled with ESC and the current buffer matches the initial value. -- InputFloat,InputFloat2,InputFloat3,InputFloat4: Added variations taking a more flexible and consistent optional - "const char* format" parameter instead of "int decimal_precision". This allow using custom formats to display values - in scientific notation, and is generally more consistent with other API. - Obsoleted functions using the optional "int decimal_precision" parameter. (#648, #712) -- DragFloat, DragInt: Cancel mouse tweak when current value is initially past the min/max boundaries and mouse is pushing - in the same direction (keyboard/gamepad version already did this). -- DragFloat, DragInt: Honor natural type limits (e.g. INT_MAX, FLT_MAX) instead of wrapping around. (#708, #320) -- DragFloat, SliderFloat: Fixes to allow input of scientific notation numbers when using CTRL+Click to input the value. (~#648, #1011) -- DragFloat, SliderFloat: Rounding-on-write uses the provided format string instead of parsing the precision from the string, - which allows for finer uses of %e %g etc. (#648, #642) -- DragFloat: Improved computation when using the power curve. Improved lost of input precision with very small steps. - Added an assert than power-curve requires a min/max range. (~#642) -- DragFloat: The 'power' parameter is only honored if the min/max parameter are also setup. -- DragInt, SliderInt: Fixed handling of large integers (we previously passed data around internally as float, which reduced - the range of valid integers). -- ColorEdit: Fixed not being able to pass the ImGuiColorEditFlags_NoAlpha or ImGuiColorEditFlags_HDR flags to SetColorEditOptions(). -- Nav: Fixed hovering a Selectable() with the mouse so that it update the navigation cursor (as it happened in the pre-1.60 navigation branch). (#787) -- Style: Changed default style.DisplaySafeAreaPadding values from (4,4) to (3,3) so it is smaller than FramePadding and has no effect on main menu bar on a computer. (#1439) -- Fonts: When building font atlas, glyphs that are missing in the fonts are not using the glyph slot to render the default glyph. Saves space and allow merging fonts with - overlapping font ranges such as FontAwesome5 which split out the Brands separately from the Solid fonts. (#1703, #1671) -- Misc: Added IMGUI_CHECKVERSION() macro to compare version string and data structure sizes in order to catch issues with mismatching compilation unit settings. (#1695, #1769) -- Misc: Added IMGUI_DISABLE_MATH_FUNCTIONS in imconfig.h to make it easier to redefine wrappers for std/crt math functions. -- Misc: Fix to allow compiling in unity builds where stb_rectpack/stb_truetype may be already included in the same compilation unit. -- Demo: Simple Overlay: Added a context menu item to enable freely moving the window. -- Demo: Added demo for DragScalar(), InputScalar(), SliderScalar(). (#643) -- Examples: Calling IMGUI_CHECKVERSION() in the main.cpp of every example application. -- Examples: Allegro 5: Added support for 32-bit indices setup via defining ImDrawIdx, to avoid an unnecessary conversion (Allegro 5 doesn't support 16-bit indices). -- Examples: Allegro 5: Renamed backend from imgui_impl_a5.cpp to imgui_impl_allegro5.cpp. -- Examples: DirectX 9: Saving/restoring Transform because they don't seem to be included in the StateBlock. Setting shading mode to Gouraud. (#1790, #1687) [@sr-tream] -- Examples: SDL: Fixed clipboard paste memory leak in the SDL backend code. (#1803) [@eliasdaler] -- Various minor fixes, tweaks, refactoring, comments. - - ------------------------------------------------------------------------ - VERSION 1.60 (Released 2018-04-07) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.60 - -The gamepad/keyboard navigation branch (which has been in the work since July 2016) has been merged. -Gamepad/keyboard navigation is still marked as Beta and has to be enabled explicitly. -Various internal refactoring have also been done, as part of the navigation work and as part of the upcoming viewport/docking work. - -Breaking Changes: - -- Obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render(). - e.g. with example backends, call ImDrawData* draw_data = ImGui::GetDrawData(); ImGui_ImplXXXX_RenderDrawData(draw_data). -- Reorganized context handling to be more explicit: (#1599) - - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. - - removed Shutdown() function, as DestroyContext() serve this purpose. If you are using an old backend from the examples/ folder, remove the line that calls Shutdown(). - - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance. - - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts. - - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts. -- Renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums. -- Fonts: Moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths. -- Fonts: Changed ImFont::DisplayOffset.y to defaults to 0 instead of +1. Fixed vertical rounding of Ascent/Descent to match TrueType renderer. - If you were adding or subtracting (not assigning) to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. (#1619) -- BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. -- Obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete). -- Obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete). -- Renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, not used by core, and honored by some backend ahead of merging the Nav branch). -- Removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered style colors as the closing cross uses regular button colors now. -- Renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. -- Removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it should be easy to replicate on your side (you can find the code in 1.53). -- [EDITED] Window: BeginChild() with an explicit name doesn't include the hash within the internal window name. (#1698) - This change was erroneously introduced, undoing the change done for #894, #713, and not documented properly in the original - 1.60 release Changelog. It was fixed on 2018-09-28 (1.66) and I wrote this paragraph the same day. - -Other Changes: - -- Doc: Added a Changelog file in the repository to ease comparing versions (it goes back to dear imgui 1.48), until now it was only on GitHub. -- Navigation: merged in the gamepad/keyboard navigation (about a million changes!). (#787, #323) - The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. -- To use Gamepad Navigation: - - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. - - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + fill the io.NavInputs[] fields before calling NewFrame(). Read imgui.cpp for more details. - - See https://github.com/ocornut/imgui/issues/1599 for recommended gamepad mapping or download PNG/PSD at http://goo.gl/9LgVZW - - See 'enum ImGuiNavInput_' in imgui.h for a description of inputs. Read imgui.cpp for more details. -- To use Keyboard Navigation: - - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. - - Basic controls: arrows to navigate, Alt to enter menus, Space to activate item, Enter to edit text, Escape to cancel/close, Ctrl-Tab to focus windows, etc. - - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), the io.WantCaptureKeyboard flag will be set. - For more advanced uses, you may want to read from io.NavActive or io.NavVisible. Read imgui.cpp for more details. -- Navigation: SetItemDefaultFocus() sets the navigation position in addition to scrolling. (#787) -- Navigation: Added IsItemFocused(), added IsAnyItemFocused(). (#787) -- Navigation: Added window flags: ImGuiWindowFlags_NoNav (== ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus). -- Navigation: Style: Added ImGuiCol_NavHighlight, ImGuiCol_NavWindowingHighlight colors. (#787) -- Navigation: TreeNode: Added ImGuiTreeNodeFlags_NavLeftJumpsBackHere flag to allow Nav Left direction to jump back to parent tree node from any of its child. (#1079) -- Navigation: IO: Added io.ConfigFlags (input), io.NavActive (output), io.NavVisible (output). (#787) -- Context: Removed the default global context and font atlas instances, which caused various problems to users of multiple contexts and DLL users. (#1565, #1599) - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. Existing apps will assert/crash without it. -- Context: Added SetAllocatorFunctions() to rewire memory allocators (as a replacement to previous parameters to CreateContext()). Allocators are shared by all contexts and imgui helpers. (#1565, #586, #992, #1007, #1558) -- Context: You may pass a ImFontAtlas to CreateContext() to specify a font atlas to share. Shared font atlas are not owned by the context and not destroyed along with it. (#1599) -- Context: Added IMGUI_DISABLE_DEFAULT_ALLOCATORS to disable linking with malloc/free. (#1565, #586, #992, #1007, #1558) -- IO: Added io.ConfigFlags for user application to store settings for imgui and for the backend: - - ImGuiConfigFlags_NavEnableKeyboard: Enable keyboard navigation. - - ImGuiConfigFlags_NavEnableGamepad: Enable gamepad navigation (provided ImGuiBackendFlags_HasGamepad is also set by backend). - - ImGuiConfigFlags_NavEnableSetMousePos: Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. - - ImGuiConfigFlags_NoMouseCursorChange: Instruct backend to not alter mouse cursor shape and visibility (by default the example backend use mouse cursor API of the platform when available) - - ImGuiConfigFlags_NoMouse: Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information passed by the backend. - - ImGuiConfigFlags_IsSRGB, ImGuiConfigFlags_IsTouchScreen: Flags for general application use. -- IO: Added io.BackendFlags for backend to store its capabilities (currently: _HasGamepad, _HasMouseCursors, _HasSetMousePos). This will be used more in the next version. -- IO: Added ImGuiKey_Insert, ImGuiKey_Space keys. Setup in all example backends. (#1541) -- IO: Added Horizontal Mouse Wheel support for horizontal scrolling. (#1463) [@tseeker] -- IO: Added IsAnyMouseDown() helper which is helpful for backends to handle mouse capturing. -- Window: Clicking on a window with the ImGuiWIndowFlags_NoMove flags takes an ActiveId so we can't hover something else when dragging afterwards. (#1381, #1337) -- Window: IsWindowHovered(): Added ImGuiHoveredFlags_AnyWindow, ImGuiFocusedFlags_AnyWindow flags (See Breaking Changes). Added to demo. (#1382) -- Window: Added SetNextWindowBgAlpha() helper. Particularly helpful since the legacy 5-parameters version of Begin() has been marked as obsolete in 1.53. (#1567) -- Window: Fixed SetNextWindowContentSize() with 0.0f on Y axis (or SetNextWindowContentWidth()) overwriting the contents size. Got broken on Dec 10 (1.53). (#1363) -- ArrowButton: Added ArrowButton() given a cardinal direction (e.g. ImGuiDir_Left). -- InputText: Added alternative clipboard shortcuts: Shift+Delete (cut), CTRL+Insert (copy), Shift+Insert (paste). (#1541) -- InputText: Fixed losing Cursor X position when clicking outside on an item that's submitted after the InputText(). It was only noticeable when restoring focus programmatically. (#1418, #1554) -- InputText: Added ImGuiInputTextFlags_CharsScientific flag to also allow 'e'/'E' for input of values using scientific notation. Automatically used by InputFloat. -- Style: Default style is now StyleColorsDark(), instead of the old StyleColorsClassic(). (#707) -- Style: Enable window border by default. (#707) -- Style: Exposed ImGuiStyleVar_WindowTitleAlign, ImGuiStyleVar_ScrollbarSize, ImGuiStyleVar_ScrollbarRounding, ImGuiStyleVar_GrabRounding + added an assert to reduce accidental breakage. (#1181) -- Style: Added style.MouseCursorScale help when using the software mouse cursor facility. (#939). -- Style: Close button nows display a cross before hovering. Fixed cross positioning being a little off. Uses button colors for highlight when hovering. (#707) -- Popup: OpenPopup() Always reopen existing pop-ups. (Removed imgui_internal.h's OpenPopupEx() which was used for this.) (#1497, #1533). -- Popup: BeginPopupContextItem(), BeginPopupContextWindow(), BeginPopupContextVoid(), OpenPopupOnItemClick() all react on mouse release instead of mouse press. (~#439) -- Popup: Better handling of user mistakenly calling OpenPopup() every frame (with reopen_existing option). The error will now be more visible and easier to understand. (#1497) -- Popup: BeginPopup(): Exposed extra_flags parameter that are passed through to Begin(). (#1533) -- Popup: BeginPopupModal: fixed the conditional test for SetNextWindowPos() which was polling the wrong window, which in practice made the test succeed all the time. -- Tooltip: BeginTooltip() sets ImGuiWindowFlags_NoInputs flag. -- Scrollbar: Fixed ScrollbarY enable test after ScrollbarX has been enabled being a little off (small regression from Nov 2017). (#1574) -- Scrollbar: Fixed ScrollbarX enable test subtracting WindowPadding.x (this has been there since the addition of horizontal scroll bar!). -- Columns: Clear offsets data when columns count changed. (#1525) -- Columns: Fixed a memory leak of ImGuiColumnsSet's Columns vector. (#1529) [@unprompted] -- Columns: Fixed resizing a window very small breaking some columns positioning (broken in 1.53). -- Columns: The available column extent takes consideration of the right-most clipped pixel, so the right-most column may look a little wider but will contain the same amount of visible contents. -- MenuBar: Fixed menu bar pushing a clipping rect outside of its allocated bound (usually unnoticeable). -- TreeNode: nodes with the ImGuiTreeNodeFlags_Leaf flag correctly disable highlight when DragDrop is active. (#143, #581) -- Drag and Drop: Increased payload type string to 32 characters instead of 8. (#143) -- Drag and Drop: TreeNode as drop target displays rectangle over full frame. (#1597, #143) -- DragFloat: Fix/workaround for backends which do not preserve a valid mouse position when dragged out of bounds. (#1559) -- InputFloat: Allow inputing value using scientific notation e.g. "1e+10". -- InputDouble: Added InputDouble() function. We use a format string instead of a decimal_precision parameter to also for "%e" and variants. (#1011) -- Slider, Combo: Use ImGuiCol_FrameBgHovered color when hovered. (#1456) [@stfx] -- Combo: BeginCombo(): Added ImGuiComboFlags_NoArrowButton to disable the arrow button and only display the wide value preview box. -- Combo: BeginCombo(): Added ImGuiComboFlags_NoPreview to disable the preview and only display a square arrow button. -- Combo: Arrow button isn't displayed over frame background so its blended color matches other buttons. Left side of the button isn't rounded. -- PlotLines: plot a flat line if scale_min==scale_max. (#1621) -- Fonts: Changed DisplayOffset.y to defaults to 0 instead of +1. Fixed rounding of Ascent/Descent to match TrueType renderer. - If you were adding or subtracting (not assigning) to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. (#1619) -- Fonts: Updated stb_truetype from 1.14 to stb_truetype 1.19. (w/ include fix from some platforms #1622) -- Fonts: Added optional FreeType rasterizer in misc/freetype. Moved from imgui_club repo. (#618) [@Vuhdo, @mikesart, @ocornut] -- Fonts: Moved extra_fonts/ to misc/fonts/. -- ImFontAtlas: Fixed cfg.MergeMode not reusing existing glyphs if available (always overwrote). -- ImFontAtlas: Handle stb_truetype stbtt_InitFont() and stbtt_PackBegin() possible failures more gracefully, GetTexDataAsRGBA32() won't crash during conversion. (#1527) -- ImFontAtlas: Moved mouse cursor data out of ImGuiContext, fix drawing them with multiple contexts. Also remove the last remaining undesirable dependency on ImGui in imgui_draw.cpp. (#939) -- ImFontAtlas: Added ImFontAtlasFlags_NoPowerOfTwoHeight flag to disable padding font height to nearest power of two. (#1613) -- ImFontAtlas: Added ImFontAtlasFlags_NoMouseCursors flag to disable baking software mouse cursors, mostly to save texture memory on very low end hardware. (#1613) -- ImDrawList: Fixed AddRect() with anti-aliasing disabled (lower-right corner pixel was often missing, rounding looks a little better.) (#1646) -- ImDrawList: Added CloneOutput() helper to facilitate the cloning of ImDrawData or ImDrawList for multi-threaded rendering. -- Misc: Functions passed to libc qsort are explicitly marked cdecl to support compiling with vectorcall as the default calling convention. (#1230, #1611) [@RandyGaul] -- Misc: ImVec2: added [] operator. This is becoming desirable for some code working of either axes independently. Better adding it sooner than later. -- Misc: NewFrame(): Added an assert to detect incorrect filling of the io.KeyMap[] array earlier. (#1555) -- Misc: Added IM_OFFSETOF() helper in imgui.h (previously was in imgui_internal.h) -- Misc: Added IM_NEW(), IM_DELETE() helpers in imgui.h (previously were in imgui_internal.h) -- Misc: Added obsolete redirection function GetItemsLineHeightWithSpacing() (which redirects to GetFrameHeightWithSpacing()), as intended and stated in docs of 1.53. -- Misc: Added misc/natvis/imgui.natvis for visual studio debugger users to easily visualize imgui internal types. Added to examples projects. -- Misc: Added IMGUI_USER_CONFIG to define a custom configuration filename. (#255, #1573, #1144, #41) -- Misc: Added IMGUI_STB_TRUETYPE_FILENAME and IMGUI_STB_RECT_PACK_FILENAME compile time directives to use another version of the stb_ files. -- Misc: Updated stb_rect_pack from 0.10 to 0.11 (minor changes). - (Those flags are not used by ImGui itself, they only exists to make it easy for the engine/backend to pass information to the application in a standard manner.) -- Metrics: Added display of Columns state. -- Demo: Improved Selectable() examples. (#1528) -- Demo: Tweaked the Child demos, added a menu bar to the second child to test some navigation functions. -- Demo: Console: Using ImGuiCol_Text to be more friendly to color changes. -- Demo: Using IM_COL32() instead of ImColor() in ImDrawList centric contexts. Trying to phase out use of the ImColor helper whenever possible. -- Examples: Files in examples/ now include their own changelog so it is easier to occasionally update your backends if needed. -- Examples: Using Dark theme by default. (#707). Tweaked demo code. -- Examples: Added support for horizontal mouse wheel for API that allows it. (#1463) [@tseeker] -- Examples: All examples now setup the io.BackendFlags to signify they can honor mouse cursors, gamepad, etc. -- Examples: DirectX10: Fixed erroneous call to io.Fonts->ClearInputData() + ClearTexData() that was left in DX10 example but removed in 1.47 (Nov 2015) in every other backends. (#1733) -- Examples: DirectX12: Added DirectX 12 example. (#301) [@jdm3] -- Examples: OpenGL3+GLFW,SDL: Changed GLSL shader version from 330 to 150. (#1466, #1504) -- Examples: OpenGL3+GLFW,SDL: Added a way to override the GLSL version string in the Init function. (#1466, #1504). -- Examples: OpenGL3+GLFW,SDL: Creating VAO in the render function so it can be more easily used by multiple shared OpenGL contexts. (#1217) -- Examples: OpenGL3+GLFW: Using 3.2 context instead of 3.3. (#1466) -- Examples: OpenGL: Setting up glPixelStorei() explicitly before uploading texture. -- Examples: OpenGL: Calls to glPolygonMode() are casting parameters as GLEnum to not fail with more strict backends. (#1628) [@ilia-glushchenko] -- Examples: Win32 (DirectX9,10,11,12): Added support for mouse cursor shapes. (#1495) -- Examples: Win32 (DirectX9,10,11,12: Support for windows using the CS_DBLCLKS class flag by handling the double-click messages (WM_LBUTTONDBLCLK etc.). (#1538, #754) [@ndandoulakis] -- Examples: Win32 (DirectX9,10,11,12): Made the Win32 proc handlers not assert if there is no active context yet, to be more flexible with creation order. (#1565) -- Examples: GLFW: Added support for mouse cursor shapes (the diagonal resize cursors are unfortunately not supported by GLFW at the moment. (#1495) -- Examples: GLFW: Don't attempt to change the mouse cursor input mode if it is set to GLFW_CURSOR_DISABLED by the application. (#1202) [@PhilCK] -- Examples: SDL: Added support for mouse cursor shapes. (#1626) [@olls] -- Examples: SDL: Using SDL_CaptureMouse() to retrieve coordinates outside of client area when dragging (SDL 2.0.4+ only, otherwise using SDL_WINDOW_INPUT_FOCUS instead of previously SDL_WINDOW_MOUSE_FOCUS). (#1559) -- Examples: SDL: Enabled vsync by default so people don't come at us when the examples are running at 2000 FPS and burning a CPU core. -- Examples: SDL: Using SDL_GetPerformanceCounter() / SDL_GetPerformanceFrequency() to handle frame-rate over 1000 FPS properly. (#996) -- Examples: SDL: Using scan-code exclusively instead of a confusing mixture of scan-codes and key-codes. -- Examples: SDL: Visual Studio: Added .vcxproj file. Using %SDL2_DIR% in the default .vcxproj and build files instead of %SDL_DIR%, the earlier being more standard. -- Examples: Vulkan: Visual Studio: Added .vcxproj file. -- Examples: Apple: Fixed filenames in OSX xcode project. Various other Mac friendly fixes. [@gerryhernandez etc.] -- Examples: Visual Studio: Disabled extraneous function-level check in Release build. -- Various fixes, tweaks, internal refactoring, optimizations, comments. - - ------------------------------------------------------------------------ - VERSION 1.53 (Released 2017-12-25) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.53 - -Breaking Changes: - -- Renamed the emblematic `ShowTestWindow()` function to `ShowDemoWindow()`. Kept redirection function (will obsolete). -- Renamed `GetItemsLineHeightWithSpacing()` to `GetFrameHeightWithSpacing()` for consistency. Kept redirection function (will obsolete). -- Renamed `ImGuiTreeNodeFlags_AllowOverlapMode` flag to `ImGuiTreeNodeFlags_AllowItemOverlap`. Kept redirection enum (will obsolete). -- Obsoleted `IsRootWindowFocused()` in favor of using `IsWindowFocused(ImGuiFocusedFlags_RootWindow)`. Kept redirection function (will obsolete). (#1382) -- Obsoleted `IsRootWindowOrAnyChildFocused()` in favor of using `IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows)`. Kept redirection function (will obsolete). (#1382) -- Obsoleted `IsRootWindowOrAnyChildHovered()` in favor of using `IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows)`. Kept redirection function (will obsolete). (#1382) -- Obsoleted `SetNextWindowContentWidth() in favor of using `SetNextWindowContentSize()`. Kept redirection function (will obsolete). -- Renamed `ImGuiTextBuffer::append()` helper to `appendf()`, and `appendv()` to `appendfv()` for consistency. If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed. -- ImDrawList: Removed 'bool anti_aliased = true' final parameter of `ImDrawList::AddPolyline()` and `ImDrawList::AddConvexPolyFilled()`. Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame. -- Style, ImDrawList: Renamed `style.AntiAliasedShapes` to `style.AntiAliasedFill` for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags. -- Style, Begin: Removed `ImGuiWindowFlags_ShowBorders` window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. `style.FrameBorderSize`, `style.WindowBorderSize`, `style.PopupBorderSize`). - Use `ImGui::ShowStyleEditor()` to look them up. - Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time. - It is recommended that you use the `StyleColorsClassic()`, `StyleColorsDark()`, `StyleColorsLight()` functions. Also see `ShowStyleSelector()`. -- Style: Removed `ImGuiCol_ComboBg` in favor of combo boxes using `ImGuiCol_PopupBg` for consistency. Combo are normal pop-ups. -- Style: Renamed `ImGuiCol_ChildWindowBg` to `ImGuiCol_ChildBg`. -- Style: Renamed `style.ChildWindowRounding` to `style.ChildRounding`, `ImGuiStyleVar_ChildWindowRounding` to `ImGuiStyleVar_ChildRounding`. -- Removed obsolete redirection functions: SetScrollPosHere() - marked obsolete in v1.42, July 2015. -- Removed obsolete redirection functions: GetWindowFont(), GetWindowFontSize() - marked obsolete in v1.48, March 2016. - -Other Changes: - -- Added `io.OptCursorBlink` option to allow disabling cursor blinking. (#1427) [renamed to io.ConfigCursorBlink in 1.63] -- Added `GetOverlayDrawList()` helper to quickly get access to a ImDrawList that will be rendered in front of every windows. -- Added `GetFrameHeight()` helper which returns `(FontSize + style.FramePadding.y * 2)`. -- Drag and Drop: Added Beta API to easily use drag and drop patterns between imgui widgets. - - Setup a source on a widget with `BeginDragDropSource()`, `SetDragDropPayload()`, `EndDragDropSource()` functions. - - Receive data with `BeginDragDropTarget()`, `AcceptDragDropPayload()`, `EndDragDropTarget()`. - - See ImGuiDragDropFlags for various options. - - The ColorEdit4() and ColorButton() widgets now support Drag and Drop. - - The API is tagged as Beta as it still may be subject to small changes. -- Drag and Drop: When drag and drop is active, tree nodes and collapsing header can be opened by hovering on them for 0.7 seconds. -- Renamed io.OSXBehaviors to io.OptMacOSXBehaviors. Should not affect users as the compile-time default is usually enough. (#473, #650) -- Style: Added StyleColorsDark() style. (#707) [@dougbinks] -- Style: Added StyleColorsLight() style. Best used with frame borders + thicker font than the default font. (#707) -- Style: Added style.PopupRounding setting. (#1112) -- Style: Added style.FrameBorderSize, style.WindowBorderSize, style.PopupBorderSize. Removed ImGuiWindowFlags_ShowBorders window flag! - Borders are now fully set up in the ImGuiStyle structure. Use ImGui::ShowStyleEditor() to look them up. (#707, fix #819, #1031) -- Style: Various small changes to the classic style (most noticeably, buttons are now using blue shades). (#707) -- Style: Renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg. -- Style: Renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. -- Style: Removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. (#707) -- Style: Made the ScaleAllSizes() helper rounds down every values so they are aligned on integers. -- Focus: Added SetItemDefaultFocus(), which in the current (master) branch behave the same as doing `if (IsWindowAppearing()) SetScrollHere()`. - In the navigation branch this will also set the default focus. Prefer using this when creating combo boxes with `BeginCombo()` so your code will be forward-compatible with gamepad/keyboard navigation features. (#787) -- Combo: Pop-up grows horizontally to accommodate for contents that is larger then the parent combo button. -- Combo: Added BeginCombo()/EndCombo() API which allows use to submit content of any form and manage your selection state without relying on indices. -- Combo: Added ImGuiComboFlags_PopupAlignLeft flag to BeginCombo() to prioritize keeping the pop-up on the left side (for small-button-looking combos). -- Combo: Added ImGuiComboFlags_HeightSmall, ImGuiComboFlags_HeightLarge, ImGuiComboFlags_HeightLargest to easily provide desired pop-up height. -- Combo: You can use SetNextWindowSizeConstraints() before BeginCombo() to specify specific pop-up width/height constraints. -- Combo: Offset popup position by border size so that a double border isn't so visible. (#707) -- Combo: Recycling windows by using a stack number instead of a unique id, wasting less memory (like menus do). -- InputText: Added ImGuiInputTextFlags_NoUndoRedo flag. (#1506, #1508) [@ibachar] -- Window: Fixed auto-resize allocating too much space for scrollbar when SizeContents is bigger than maximum window size (fixes c0547d3). (#1417) -- Window: Child windows with MenuBar use regular WindowPadding.y so layout look consistent as child or as a regular window. -- Window: Begin(): Fixed appending into a child window with a second Begin() from a different window stack querying the wrong window for the window->Collapsed test. -- Window: Calling IsItemActive(), IsItemHovered() etc. after a call to Begin() provides item data for the title bar, so you can easily test if the title bar is being hovered, etc. (#823) -- Window: Made it possible to use SetNextWindowPos() on a child window. -- Window: Fixed a one frame glitch. When an appearing window claimed the focus themselves, the title bar wouldn't use the focused color for one frame. -- Window: Added ImGuiWindowFlags_ResizeFromAnySide flag to resize from any borders or from the lower-left corner of a window. This requires your backend to honor GetMouseCursor() requests for full usability. (#822) -- Window: Sizing fixes when using SetNextWindowSize() on individual axises. -- Window: Hide new window for one frame until they calculate their size. Also fixes SetNextWindowPos() given a non-zero pivot. (#1694) -- Window: Made mouse wheel scrolling accommodate better to windows that are smaller than the scroll step. -- Window: SetNextWindowContentSize() adjust for the size of decorations (title bar/menu bar), but _not_ for borders are we consistently make borders not affect layout. - If you need a non-child window of an exact size with border enabled but zero window padding, you'll need to accommodate for the border size yourself. -- Window: Using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set. (#1380, #1502) -- Window: Active Modal window always set the WantCaptureKeyboard flag. (#744) -- Window: Moving window doesn't use accumulating MouseDelta so straying out of imgui boundaries keeps moved imgui window at the same cursor-relative position. -- IsWindowFocused(): Added ImGuiFocusedFlags_ChildWindows flag to include child windows in the focused test. (#1382). -- IsWindowFocused(): Added ImGuiFocusedFlags_RootWindow flag to start focused test from the root (top-most) window. Obsolete IsRootWindowFocused(). (#1382) -- IsWindowHovered(): Added ImGuiHoveredFlags_ChildWindows flag to include child windows in the hovered test. (#1382). -- IsWindowHovered(): Added ImGuiHoveredFlags_RootWindow flag to start hovered test from the root (top-most) window. The combination of both flags obsoletes IsRootWindowOrAnyChildHovered(). (#1382) -- IsWindowHovered(): Fixed return value when an item is active to use the same logic as IsItemHovered(). (#1382, #1404) -- IsWindowHovered(): Always return true when current window is being moved. (#1382) -- Scrollbar: Fixed issues with vertical scrollbar flickering/appearing, typically when manually resizing and using a pattern of filling available height (e.g. full sized BeginChild). -- Scrollbar: Minor graphical fix for when scrollbar don't have enough visible space to display the full grab. -- Scrolling: Fixed padding and scrolling asymmetry where lower/right sides of a window wouldn't use WindowPadding properly + causing minor scrolling glitches. -- Tree: TreePush with zero arguments was ambiguous. Resolved by making it call TreePush(const void*). [@JasonWilkins] -- Tree: Renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. (#600, #1330) -- MenuBar: Fixed minor rendering issues on the right size when resizing a window very small and using rounded window corners. -- MenuBar: better software clipping to handle small windows, in particular child window don't have minimum constraints so we need to render clipped menus better. -- BeginMenu(): Tweaked the Arrow/Triangle displayed on child menu items. -- Columns: Clipping columns borders on Y axis on CPU because some Linux GPU drivers appears to be unhappy with triangle spanning large regions. (#125) -- Columns: Added ImGuiColumnsFlags_GrowParentContentsSize to internal API to restore old content sizes behavior (may be obsolete). (#1444, #125) -- Columns: Columns width is no longer lost when dragging a column to the right side of the window, until releasing the mouse button you have a chance to save them. (#1499, #125). [@ggtucker] -- Columns: Fixed dragging when using a same of columns multiple times in the frame. (#125) -- Indent(), Unindent(): Allow passing negative values. -- ColorEdit4(): Made IsItemActive() return true when picker pop-up is active. (#1489) -- ColorEdit4(): Tweaked tooltip so that the color button aligns more correctly with text. -- ColorEdit4(): Support drag and drop. Color buttons can be used as drag sources, and ColorEdit widgets as drag targets. (#143) -- ColorPicker4(): Fixed continuously returning true when holding mouse button on the sat/value/alpha locations. We only return true on value change. (#1489) -- NewFrame(): using literal strings in the most-frequently firing IM_ASSERT expressions to increase the odd of programmers seeing them (especially those who don't use a debugger). -- NewFrame() now asserts if neither Render or EndFrame have been called. Exposed EndFrame(). Made it legal to call EndFrame() more than one. (#1423) -- ImGuiStorage: Added BuildSortByKey() helper to rebuild storage from scratch. -- ImFont: Added GetDebugName() helper. -- ImFontAtlas: Added missing Thai punctuation in the GetGlyphRangesThai() ranges. (#1396) [@nProtect] -- ImDrawList: Removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Anti-aliasing is controlled via the regular style.AntiAliased flags. -- ImDrawList: Added ImDrawList::AddImageRounded() helper. (#845) [@thedmd] -- ImDrawList: Refactored to make ImDrawList independent of ImGui. Removed static variable in PathArcToFast() which caused linking issues to some. -- ImDrawList: Exposed ImDrawCornerFlags, replaced occurrences of ~0 with an explicit ImDrawCornerFlags_All. NB: Inversed BotLeft (prev 1<<3, now 1<<2) and BotRight (prev 1<<2, now 1<<3). -- ImVector: Added ImVector::push_front() helper. -- ImVector: Added ImVector::contains() helper. -- ImVector: insert() uses grow_capacity() instead of using grow policy inconsistent with push_back(). -- Internals: Remove requirement to define IMGUI_DEFINE_PLACEMENT_NEW to use the IM_PLACEMENT_NEW macro. (#1103) -- Internals: ButtonBehavior: Fixed ImGuiButtonFlags_NoHoldingActiveID flag from incorrectly setting the ActiveIdClickOffset field. - This had no known effect within imgui code but could have affected custom drag and drop patterns. And it is more correct this way! (#1418) -- Internals: ButtonBehavior: Fixed ImGuiButtonFlags_AllowOverlapMode to avoid temporarily activating widgets on click before they have been correctly double-hovered. (#319, #600) -- Internals: Added SplitterBehavior() helper. (#319) -- Internals: Added IM_NEW(), IM_DELETE() helpers. (#484, #504, #1517) -- Internals: Basic refactor of the settings API which now allows external elements to be loaded/saved. -- Demo: Added ShowFontSelector() showing loaded fonts. -- Demo: Added ShowStyleSelector() to select among default styles. (#707) -- Demo: Renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). -- Demo: Style Editor: Added a "Simplified settings" sections with check-boxes for border size and frame rounding. (#707, #1019) -- Demo: Style Editor: Added combo box to select stock styles and select current font when multiple are loaded. (#707) -- Demo: Style Editor: Using local storage so Save/Revert button makes more sense without code passing its storage. Added horizontal scroll bar. Fixed Save/Revert button to be always accessible. (#1211) -- Demo: Console: Fixed context menu issue. (#1404) -- Demo: Console: Fixed incorrect positioning which was hidden by a minor scroll issue (this would affect people who copied the Console code as is). -- Demo: Constrained Resize: Added more test cases. (#1417) -- Demo: Custom Rendering: Fixed clipping rectangle extruding out of parent window. -- Demo: Layout: Removed unnecessary and misleading BeginChild/EndChild calls. -- Demo: The "Color Picker with Palette" demo supports drag and drop. (#143) -- Demo: Display better mouse cursor info for debugging backends. -- Demo: Stopped using rand() function in demo code. -- Examples: Added a handful of extra comments (about fonts, third-party libraries used in the examples, etc.). -- Examples: DirectX9: Handle loss of D3D9 device (D3DERR_DEVICELOST). (#1464) -- Examples: Added null_example/ which is helpful for quick testing on multiple compilers/settings without relying on graphics library. -- Fix for using alloca() in "Clang with Microsoft Codechain" mode. -- Various fixes, optimizations, comments. - - ------------------------------------------------------------------------ - VERSION 1.52 (2017-10-27) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.52 - -Breaking Changes: - -- IO: `io.MousePos` needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing, instead of ImVec2(-1,-1) as previously) This is needed so we can clear `io.MouseDelta` field when the mouse is made available again. -- Renamed `AlignFirstTextHeightToWidgets()` to `AlignTextToFramePadding()`. Kept inline redirection function (will obsolete). -- Obsoleted the legacy 5 parameters version of Begin(). Please avoid using it. If you need a transparent window background, uses `PushStyleColor()`. The old size parameter there was also misleading and equivalent to calling `SetNextWindowSize(size, ImGuiCond_FirstTimeEver)`. Kept inline redirection function (will obsolete). -- Obsoleted `IsItemHoveredRect()`, `IsMouseHoveringWindow()` in favor of using the newly introduced flags of `IsItemHovered()` and `IsWindowHovered()`. Kept inline redirection function (will obsolete). (#1382) -- Obsoleted 'SetNextWindowPosCenter()' in favor of using 1SetNextWindowPos()` with a pivot value which allows to do the same and more. Keep inline redirection function. -- Removed `IsItemRectHovered()`, `IsWindowRectHovered()` recently introduced in 1.51 which were merely the more consistent/correct names for the above functions which are now obsolete anyway. (#1382) -- Changed `IsWindowHovered()` default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. (#1382) -- Renamed imconfig.h's `IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS`/`IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS` to `IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS`/`IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS` for consistency. -- Renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete). - -Other Changes: - -- ProgressBar: fixed rendering when straddling rounded area. (#1296) -- SliderFloat, DragFloat: Using scientific notation e.g. "%.1e" in the displayed format string doesn't mistakenly trigger rounding of the value. [@MomentsInGraphics] -- Combo, InputFloat, InputInt: Made the small button on the right side align properly with the equivalent colored button of ColorEdit4(). -- IO: Tweaked logic for `io.WantCaptureMouse` so it now outputs false when e.g. hovering over void while an InputText() is active. (#621) [@pdoane] -- IO: Fixed `io.WantTextInput` from mistakenly outputting true when an activated Drag or Slider was previously turned into an InputText(). (#1317) -- Misc: Added flags to `IsItemHovered()`, `IsWindowHovered()` to access advanced hovering-test behavior. Generally useful for pop-ups and drag and drop behaviors: (relates to ~#439, #1013, #143, #925) - - `ImGuiHoveredFlags_AllowWhenBlockedByPopup` - - `ImGuiHoveredFlags_AllowWhenBlockedByActiveItem` - - `ImGuiHoveredFlags_AllowWhenOverlapped` - - `ImGuiHoveredFlags_RectOnly` -- Input: Added `IsMousePosValid()` helper. -- Input: Added `GetKeyPressedAmount()` to easily measure press count when the repeat rate is faster than the frame rate. -- Input/Focus: Disabled TAB and Shift+TAB when CTRL key is held. -- CheckBox: Now rendering a tick mark instead of a full square. -- ColorEdit4: Added "Copy as..." option in context menu. (#346) -- ColorPicker: Improved ColorPicker hue wheel color interpolation. (#1313) [@thevaber] -- ColorButton: Reduced bordering artifact that would be particularly visible with an opaque Col_FrameBg and FrameRounding enabled. -- ColorButton: Fixed rendering color button with a checkerboard if the transparency comes from the global style.Alpha and not from the actual source color. -- TreeNode: Added `ImGuiTreeNodeFlags_FramePadding` flag to conveniently create a tree node with full padding at the beginning of a line, without having to call `AlignTextToFramePadding()`. -- Trees: Fixed calling `SetNextTreeNodeOpen()` on a collapsed window leaking to the first tree node item of the next frame. -- Layout: Horizontal layout is automatically enforced in a menu bar, so you can use non-MenuItem elements without calling SameLine(). -- Separator: Output a vertical separator when used inside a menu bar (or in general when horizontal layout is active, but that isn't exposed yet!). -- Window: Added `IsWindowAppearing()` helper (helpful e.g. as a condition before initializing some of your own things.). -- Window: Added pivot parameter to `SetNextWindowPos()`, making it possible to center or right align a window. Obsoleted `SetNextWindowPosCenter()`. -- Window: Fixed title bar color of top-most window under a modal window. -- Window: Fixed not being able to move a window by clicking on one of its child window. (#1337, #635) -- Window: Fixed `Begin()` auto-fit calculation code that predict the presence of a scrollbar so it works better when window size constraints are used. -- Window: Fixed calling `Begin()` more than once per frame setting `window_just_activated_by_user` which in turn would set enable the Appearing condition for that frame. -- Window: The implicit "Debug" window now uses a "Debug##Default" identifier instead of "Debug" to allow user creating a window called "Debug" without losing their custom flags. -- Window: Made the `ImGuiWindowFlags_NoMove` flag properly inherited from parent to child. In a setup with ParentWindow (no flag) -> Child (NoMove) -> SubChild (no flag), the user won't be able to move the parent window by clicking on SubChild. (#1381) -- Popups: Pop-ups can be closed with a right-click anywhere, without altering focus under the pop-up. (~#439) -- Popups: `BeginPopupContextItem()`, `BeginPopupContextWindow()` are now setup to allow reopening a context menu by right-clicking again. (~#439) -- Popups: `BeginPopupContextItem()` now supports a NULL string identifier and uses the last item ID if available. -- Popups: Added `OpenPopupOnItemClick()` helper which mimic `BeginPopupContextItem()` but doesn't do the BeginPopup(). -- MenuItem: Only activating on mouse release. [@Urmeli0815] (was already fixed in nav branch). -- MenuItem: Made tick mark thicker (thick mark?). -- MenuItem: Tweaks to be usable inside a menu bar (nb: it looks like a regular menu and thus is misleading, prefer using Button() and regular widgets in menu bar if you need to). (#1387) -- ImDrawList: Fixed a rare draw call merging bug which could lead to undisplayed triangles. (#1172, #1368) -- ImDrawList: Fixed a rare bug in `ChannelsMerge()` when all contents has been clipped, leading to an extraneous draw call being created. (#1172, #1368) -- ImFont: Added `AddGlyph()` building helper for use by custom atlas builders. -- ImFontAtlas: Added support for CustomRect API to submit custom rectangles to be packed into the atlas. You can map them as font glyphs, or use them for custom purposes. - After the atlas is built you can query the position of your rectangles in the texture and then copy your data there. You can use this features to create e.g. full color font-mapped icons. -- ImFontAtlas: Fixed fall-back handling when merging fonts, if a glyph was missing from the second font input it could have used a glyph from the first one. (#1349) [@inolen] -- ImFontAtlas: Fixed memory leak on build failure case when stbtt_InitFont failed (generally due to incorrect or supported font type). (#1391) (@Moka42) -- ImFontConfig: Added `RasterizerMultiply` option to alter the brightness of individual fonts at rasterization time, which may help increasing readability for some. -- ImFontConfig: Added `RasterizerFlags` to pass options to custom rasterizer (e.g. the [imgui_freetype](https://github.com/ocornut/imgui_club/tree/master/imgui_freetype) rasterizer in imgui_club has such options). -- ImVector: added resize() variant with initialization value. -- Misc: Changed the internal name formatting of child windows identifier to use slashes (instead of dots) as separator, more readable. -- Misc: Fixed compilation with `IMGUI_DISABLE_OBSOLETE_FUNCTIONS` defined. -- Misc: Marked all format+va_list functions with format attribute so GCC/Clang can warn about misuses. -- Misc: Fixed compilation on NetBSD due to missing alloca.h (#1319) [@RyuKojiro] -- Misc: Improved warnings compilation for newer versions of Clang. (#1324) (@waywardmonkeys) -- Misc: Added `io.WantMoveMouse flags` (from Nav branch) and honored in Examples applications. Currently unused but trying to spread Examples applications code that supports it. -- Misc: Added `IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS` support in imconfig.h to allow user reimplementing the `ImFormatString()` functions e.g. to use stb_printf(). (#1038) -- Misc: [Windows] Fixed default Win32 `SetClipboardText()` handler leaving the Win32 clipboard handler unclosed on failure. [@pdoane] -- Style: Added `ImGuiStyle::ScaleAllSizes(float)` helper to make it easier to have application transition e.g. from low to high DPI with a matching style. -- Metrics: Draw window bounding boxes when hovering Pos/Size; List all draw layers; Trimming empty commands like Render() does. -- Examples: OpenGL3: Save and restore sampler state. (#1145) [@nlguillemot] -- Examples: OpenGL2, OpenGL3: Save and restore polygon mode. (#1307) [@JJscott] -- Examples: DirectX11: Allow creating device with feature level 10 since we don't really need much for that example. (#1333) -- Examples: DirectX9/10/12: Using the Win32 SetCapture/ReleaseCapture API to read mouse coordinates when they are out of bounds. (#1375) [@Gargaj, @ocornut] -- Tools: Fixed binary_to_compressed_c tool to return 0 when successful. (#1350) [@benvanik] -- Internals: Exposed more helpers and unfinished features in imgui_internal.h. (use at your own risk!). -- Internals: A bunch of internal refactoring, hopefully haven't broken anything! Merged a bunch of internal changes from the upcoming Navigation branch. -- Various tweaks, fixes and documentation changes. - -Beta Navigation Branch: -(Lots of work has been done toward merging the Beta Gamepad/Keyboard Navigation branch (#787) in master.) -(Please note that this branch is always kept up to date with master. If you are using the navigation branch, some of the changes include:) -- Nav: Added `#define IMGUI_HAS_NAV` in imgui.h to ease sharing code between both branches. (#787) -- Nav: MainMenuBar now releases focus when user gets out of the menu layer. (#787) -- Nav: When applying focus to a window with only menus, the menu layer is automatically activated. (#787) -- Nav: Added `ImGuiNavInput_KeyMenu` (~Alt key) aside from ImGuiNavInput_PadMenu input as it is one differentiator of pad vs keyboard that was detrimental to the keyboard experience. Although isn't officially supported, it makes the current experience better. (#787) -- Nav: Move requests now wrap vertically inside Menus and Pop-ups. (#787) -- Nav: Allow to collapse tree nodes with NavLeft and open them with NavRight. (#787, #1079). -- Nav: It's now possible to navigate sibling of a menu-bar while navigating inside one of their child. If a Left<>Right navigation request fails to find a match we forward the request to the root menu. (#787, #126) -- Nav: Fixed `SetItemDefaultFocus` from stealing default focus when we are initializing default focus for a menu bar layer. (#787) -- Nav: Support for fall-back horizontal scrolling with PadLeft/PadRight (nb: fall-back scrolling is only used to navigate windows that have no interactive items). (#787) -- Nav: Fixed tool-tip from being selectable in the window selection list. (#787) -- Nav: `CollapsingHeader(bool*)` variant: fixed for `IsItemHovered()` not working properly in the nav branch. (#600, #787) -- Nav: InputText: Fixed using Up/Down history callback feature when Nav is enabled. (#787) -- Nav: InputTextMultiline: Fixed navigation/selection. Disabled selecting all when activating a multi-line text editor. (#787) -- Nav: More consistently drawing a (thin) navigation rectangle hover filled frames such as tree nodes, collapsing header, menus. (#787) -- Nav: Various internal refactoring. - - ------------------------------------------------------------------------ - VERSION 1.51 (2017-08-24) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.51 - -Breaking Changes: - -Work on dear imgui has been gradually resuming. It means that fixes and new features should be tackled at a faster rate than last year. However, in order to move forward with the library and get rid of some cruft, I have taken the liberty to be a little bit more aggressive than usual with API breaking changes. Read the details below and search for those names in your code! In the grand scheme of things, those changes are small and should not affect everyone, but this is technically our most aggressive release so far in term of API breakage. If you want to be extra forward-facing, you can enable `#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS` in your imconfig.h to disable the obsolete names/redirection. - -- Renamed `IsItemHoveredRect()` to `IsItemRectHovered()`. Kept inline redirection function (will obsolete). -- Renamed `IsMouseHoveringWindow()` to `IsWindowRectHovered()` for consistency. Kept inline redirection function (will obsolete). -- Renamed `IsMouseHoveringAnyWindow()` to `IsAnyWindowHovered()` for consistency. Kept inline redirection function (will obsolete). -- Renamed `ImGuiCol_Columns***` enums to `ImGuiCol_Separator***`. Kept redirection enums (will obsolete). -- Renamed `ImGuiSetCond***` types and enums to `ImGuiCond***`. Kept redirection enums (will obsolete). -- Renamed `GetStyleColName()` to `GetStyleColorName()` for consistency. Unlikely to be used by end-user! -- Added `PushStyleColor(ImGuiCol idx, ImU32 col)` overload, which _might_ cause an "ambiguous call" compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicitly to fix. -- Marked the weird `IMGUI_ONCE_UPON_A_FRAME` helper macro as obsolete. Prefer using the more explicit `ImGuiOnceUponAFrame`. -- Changed `ColorEdit4(const char* label, float col[4], bool show_alpha = true)` signature to `ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)`, where flags 0x01 is a safe no-op (hello dodgy backward compatibility!). The new `ColorEdit4`/`ColorPicker4` functions have lots of available flags! Check and run the demo window, under "Color/Picker Widgets", to understand the various new options. -- Changed signature of `ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)` to `ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0,0))`. This function was rarely used and was very dodgy (no explicit ID!). -- Changed `BeginPopupContextWindow(bool also_over_items=true, const char* str_id=NULL, int mouse_button=1)` signature to `(const char* str_id=NULL, int mouse_button=1, bool also_over_items=true)`. This is perhaps the most aggressive change in this update, but note that the majority of users relied on default parameters completely, so this will affect only a fraction of users of this already rarely used function. -- Removed `IsPosHoveringAnyWindow()`, which was partly broken and misleading. In the vast majority of cases, people using that function wanted to use `io.WantCaptureMouse` flag. Replaced with IM_ASSERT + comment redirecting user to `io.WantCaptureMouse`. (#1237) -- Removed the old `ValueColor()` helpers, they are equivalent to calling `Text(label)` + `SameLine()` + `ColorButton()`. -- Removed `ColorEditMode()` and `ImGuiColorEditMode` type in favor of `ImGuiColorEditFlags` and parameters to the various Color*() functions. The `SetColorEditOptions()` function allows to initialize default but the user can still change them with right-click context menu. Commenting out your old call to `ColorEditMode()` may just be fine! - -Other Changes: - -- Added flags to `ColorEdit3()`, `ColorEdit4()`. The color edit widget now has a context-menu and access to the color picker. (#346) -- Added flags to `ColorButton()`. (#346) -- Added `ColorPicker3()`, `ColorPicker4()`. The API along with those of the updated `ColorEdit4()` was designed so you may use them in various situation and hopefully compose your own picker if required. There are a bunch of available flags, check the Demo window and comment for `ImGuiColorEditFlags_`. Some of the options it supports are: two color picker types (hue bar + sat/val rectangle, hue wheel + rotating sat/val triangle), display as u8 or float, lifting 0.0..1.0 constraints (currently rgba only), context menus, alpha bar, background checkerboard options, preview tooltip, basic revert. For simple use, calling the existing `ColorEdit4()` function as you did before will be enough, as you can now open the color picker from there. (#346) [@r-lyeh, @nem0, @thennequin, @dariomanesku and @ocornut] -- Added `SetColorEditOptions()` to set default color options (e.g. if you want HSV over RGBA, float over u8, select a default picker mode etc. at startup time without a user intervention. Note that the user can still change options with the context menu unless disabled with `ImGuiColorFlags_NoOptions` or explicitly enforcing a display type/picker mode etc.). -- Added user-facing `IsPopupOpen()` function. (#891) [@mkeeter] -- Added `GetColorU32(u32)` variant that perform the style alpha multiply without a floating-point round trip, and helps makes code more consistent when using ImDrawList APIs. -- Added `PushStyleColor(ImGuiCol idx, ImU32 col)` overload. -- Added `GetStyleColorVec4(ImGuiCol idx)` which is equivalent to accessing `ImGui::GetStyle().Colors[idx]` (aka return the raw style color without alpha alteration). -- ImFontAtlas: Added `GlyphRangesBuilder` helper class, which makes it easier to build custom glyph ranges from your app/game localization data, or add into existing glyph ranges. -- ImFontAtlas: Added `TexGlyphPadding` option. (#1282) [@jadwallis] -- ImFontAtlas: Made it possible to override size of AddFontDefault() (even if it isn't really recommended!). -- ImDrawList: Added `GetClipRectMin()`, `GetClipRectMax()` helpers. -- Fixed Ini saving crash if the ImGuiWindowFlags_NoSavedSettings gets removed from a window after its creation (unlikely!). (#1000) -- Fixed `PushID()`/`PopID()` from marking parent window as Accessed (which needlessly woke up the root "Debug" window when used outside of a regular window). (#747) -- Fixed an assert when calling `CloseCurrentPopup()` twice in a row. [@nem0] -- Window size can be loaded from .ini data even if ImGuiWindowFlags_NoResize flag is set. (#1048, #1056) -- Columns: Added `SetColumnWidth()`. (#913) [@ggtucker] -- Columns: Dragging a column preserve its width by default. (#913) [@ggtucker] -- Columns: Fixed first column appearing wider than others. (#1266) -- Columns: Fixed allocating space on the right-most side with the assumption of a vertical scrollbar. The space is only allocated when needed. (#125, #913, #893, #1138) -- Columns: Fixed the right-most column from registering its content width to the parent window, which led to various issues when using auto-resizing window or e.g. horizontal scrolling. (#519, #125, #913) -- Columns: Refactored some of the columns code internally toward a better API (not yet exposed) + minor optimizations. (#913) [@ggtucker, @ocornut] -- Popups: Most pop-ups windows can be moved by the user after appearing (if they don't have explicit positions provided by caller, or e.g. sub-menu pop-up). The previous restriction was totally arbitrary. (#1252) -- Tooltip: `SetTooltip()` is expanded immediately into a window, honoring current font / styling setting. Add internal mechanism to override tooltips. (#862) -- PlotHistogram: bars are drawn based on zero-line, so negative values are going under. (#828) -- Scrolling: Fixed return values of `GetScrollMaxX()`, `GetScrollMaxY()` when both scrollbars were enabled. Tweak demo to display more data. (#1271) [@degracode] -- Scrolling: Fixes for Vertical Scrollbar not automatically getting enabled if enabled Horizontal Scrollbar straddle the vertical limit. (#1271, #246) -- Scrolling: `SetScrollHere()`, `SetScrollFromPosY()`: Fixed Y scroll aiming when Horizontal Scrollbar is enabled. (#665). -- [Windows] Clipboard: Fixed not closing Win32 clipboard on early open failure path. (#1264) -- Removed an unnecessary dependency on int64_t which failed on some older compilers. -- Demo: Rearranged everything under Widgets in a more consistent way. -- Demo: Columns: Added Horizontal Scrolling demo. Tweaked another Columns demo. (#519, #125, #913) -- Examples: OpenGL: Various makefiles for MINGW, Linux. (#1209, #1229, #1209) [@fr500, @acda] -- Examples: Enabled vsync by default in example applications, so it doesn't confuse people that the sample run at 2000+ fps and waste an entire CPU. (#1213, #1151). -- Various other small fixes, tweaks, comments, optimizations. - - ------------------------------------------------------------------------ - VERSION 1.50 (2017-06-02) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.50 - -Breaking Changes: - -- Added a void* user_data parameter to Clipboard function handlers. (#875) -- SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully breakage should be minimal. -- Renamed ImDrawList::PathFill() - rarely used directly - to ImDrawList::PathFillConvex() for clarity and consistency. -- Removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. -- Style: style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f) for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc. -- BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple times to a same child from different locations of the stack id. If that's the case, generate an id with GetId() and use it instead of passing string to BeginChild(). - -Other Changes: - -- InputText(): Added support for CTRL+Backspace (delete word). -- InputText(): OSX uses Super+Arrows for home/end. Add Shortcut+Backspace support. (#650) [@michaelbartnett] -- InputText(): Got rid of individual OSX-specific options in ImGuiIO, added a single io.OSXBehaviors flag. (#473, #650) -- InputText(): Fixed pressing home key on last character when it isn't a trailing \n (#588, #815) -- InputText(): Fixed state corruption/crash bug in stb_textedit.h redo logic when exhausting undo/redo char buffer. (#715. #681) -- InputTextMultiline(): Fixed CTRL+DownArrow moving scrolling out of bounds. -- InputTextMultiline(): Scrollbar fix for when input and latched internal buffers differs in a way that affects vertical scrollbar existence. (#725) -- ImFormatString(): Fixed an overflow handling bug with implementation of vsnprintf() that do not return -1. (#793) -- BeginChild(const char*) now applies stack id to provided label, consistent with other widgets. (#894, #713) -- SameLine() with explicit X position is relative to left of group/columns. (ref #746, #125, #630) -- SliderInt(), SliderFloat() supports reverse direction (where v_min > v_max). (#854) -- SliderInt(), SliderFloat() better support for when v_min==v_max. (#919) -- SliderInt(), SliderFloat() enforces writing back value when interacting, to be consistent with other widgets. (#919) -- SliderInt, SliderFloat(): Fixed edge case where style.GrabMinSize being bigger than slider width can lead to a division by zero. (#919) -- Added IsRectVisible() variation with explicit start-end positions. (#768) [@thedmd] -- Fixed TextUnformatted() clipping bug in the large-text path when horizontal scroll has been applied. (#692, #246) -- Fixed minor text clipping issue in window title when using font straying above usual line. (#699) -- Fixed SetCursorScreenPos() fixed not adjusting CursorMaxPos as well. -- Fixed scrolling offset when using SetScrollY(), SetScrollFromPosY(), SetScrollHere() with menu bar. -- Fixed using IsItemActive() after EndGroup() or any widget using groups. (#840, #479) -- Fixed IsItemActive() lagging by one frame on initial widget activation. (#840) -- Fixed Separator() zero-height bounding box resulting in clipping when laying exactly on top line of clipping rectangle (#860) -- Fixed PlotLines() PlotHistogram() calling with values_count == 0. -- Fixed clicking on a window's void while staying still overzealously marking .ini settings as dirty. (#923) -- Fixed assert triggering when a window has zero rendering but has a callback. (#810) -- Scrollbar: Fixed rendering when sizes are negative to reduce glitches (which can happen with certain style settings and zero WindowMinSize). -- EndGroup(): Made IsItemHovered() work when an item was activated within the group. (#849) -- BulletText(): Fixed stopping to display formatted string after the '##' mark. -- Closing the focused window restore focus to the first active root window in descending z-order .(part of #727) -- Word-wrapping: Fixed a bug where we never wrapped after a 1 character word. [@sronsse] -- Word-wrapping: Fixed TextWrapped() overriding wrap position if one is already set. (#690) -- Word-wrapping: Fixed incorrect testing for negative wrap coordinates, they are perfectly legal. (#706) -- ImGuiListClipper: Fixed automatic-height calc path dumbly having user display element 0 twice. (#661, #716) -- ImGuiListClipper: Fix to behave within column. (#661, #662, #716) -- ImDrawList: Renamed ImDrawList::PathFill() to ImDrawList::PathFillConvex() for clarity. (BREAKING API) -- Columns: End() avoid calling Columns(1) if no columns set is open, not sure why it wasn't the case already (pros: faster, cons: exercise less code). -- ColorButton(): Fix ColorButton showing wrong hex value for alpha. (#1068) [@codecat] -- ColorEdit4(): better preserve inputting value out of 0..255 range, display then clamped in Hexadecimal form. -- Shutdown() clear out some remaining pointers for sanity. (#836) -- Added IMGUI_USE_BGRA_PACKED_COLOR option in imconfig.h (#767, #844) [@thedmd] -- Style: Removed the inconsistent shadow under RenderCollapseTriangle() (~#707) -- Style: Added ButtonTextAlign, ImGuiStyleVar_ButtonTextAlign. (#842) -- ImFont: Allowing to use up to 0xFFFE glyphs in same font (increased from previous 0x8000). -- ImFont: Added GetGlyphRangesThai() helper. [@nProtect] -- ImFont: CalcWordWrapPositionA() fixed font scaling with fallback character. -- ImFont: Calculate and store the approximate texture surface to get an idea of how costly each source font is. -- ImFontConfig: Added GlyphOffset to explicitly offset glyphs at font build time, useful for merged fonts. Removed MergeGlyphCenterV. (BREAKING API) -- Clarified asserts in CheckStacksSize() when there is a stack mismatch. -- Context: Support for #define-ing GImGui and IMGUI_SET_CURRENT_CONTEXT_FUNC to enable custom thread-based hackery (#586) -- Updated stb_truetype.h to 1.14 (added OTF support, removed warnings). (#883, #976) -- Updated stb_rect_pack.h to 0.10 (removed warnings). (#883) -- Added ImGuiMouseCursor_None enum value for convenient usage by app/backends. -- Clipboard: Added a void* user_data parameter to Clipboard function handlers. (#875) (BREAKING API) -- Internals: Refactor internal text alignment options to use ImVec2, removed ImGuiAlign. (#842, #222) -- Internals: Renamed ImLoadFileToMemory to ImFileLoadToMemory to be consistent with ImFileOpen + fix mismatching .h name. (#917) -- OS/Windows: Fixed Windows default clipboard handler leaving its buffer unfreed on application's exit. (#714) -- OS/Windows: No default IME handler when compiling for Windows using GCC. (#738) -- OS/Windows: Now using _wfopen() instead of fopen() to allow passing in paths/filenames with UTF-8 characters. (#917) -- Tools: binary_to_compressed_c: Avoid ?? trigraphs sequences in string outputs which break some older compilers. (#839) -- Demo: Added an extra 3-way columns demo. -- Demo: ShowStyleEditor: show font character map / grid in more details. -- Demo: Console: Fixed a completion bug when multiple candidates are equals and match until the end. -- Demo: Fixed 1-byte off overflow in the ShowStyleEditor() combo usage. (#783) [@bear24rw] -- Examples: Accessing ImVector fields directly, feel less stl-ey. (#810) -- Examples: OpenGL*: Saving/restoring existing scissor rectangle for completeness. (#807) -- Examples: OpenGL*: Saving/restoring active texture number (the value modified by glActiveTexture). (#1087, #1088, #1116) -- Examples: OpenGL*: Saving/restoring separate color/alpha blend functions correctly. (#1120) [@greggman] -- Examples: OpenGL2: Uploading font texture as RGBA32 to increase compatibility with users shaders for beginners. (#824) -- Examples: Vulkan: Countless fixes and improvements. (#785, #804, #910, #1017, #1039, #1041, #1042, #1043, #1080) [@martty, @Loftilus, @ParticlePeter, @SaschaWillems] -- Examples: DirectX9/10/10: Only call SetCursor(NULL) is io.MouseDrawCursor is set. (#585, #909) -- Examples: DirectX9: Explicitly setting viewport to match that other examples are doing. (#937) -- Examples: GLFW+OpenGL3: Fixed Shutdown() calling GL functions with NULL parameters if NewFrame was never called. (#800) -- Examples: GLFW+OpenGL2: Renaming opengl_example/ to opengl2_example/ for clarity. -- Examples: SDL+OpenGL: explicitly setting GL_UNPACK_ROW_LENGTH to reduce issues because SDL changes it. (#752) -- Examples: SDL2: Added build .bat files for Win32. -- Added various links to language/engine bindings. -- Various other minor fixes, tweaks, comments, optimizations. - - ------------------------------------------------------------------------ - VERSION 1.49 (2016-05-09) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.49 - -Breaking Changes: - -- Renamed `SetNextTreeNodeOpened()` to `SetNextTreeNodeOpen()` for consistency, no redirection. -- Removed confusing set of `GetInternalState()`, `GetInternalStateSize()`, `SetInternalState()` functions. Now using `CreateContext()`, `DestroyContext()`, `GetCurrentContext()`, `SetCurrentContext()`. If you were using multiple contexts the change should be obvious and trivial. -- Obsoleted old signature of `CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false)`, as extra parameters were badly designed and rarely used. Most uses were using 1 parameter and shouldn't affect you. You can replace the "default_open = true" flag in new API with `CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen)`. -- Changed `ImDrawList::PushClipRect(ImVec4 rect)` to `ImDraw::PushClipRect(ImVec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false)`. Note that higher-level `ImGui::PushClipRect()` is preferable because it will clip at logic/widget level, whereas `ImDrawList::PushClipRect()` only affect your renderer. -- Title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore (see #655). If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you. However if your TitleBg/TitleBgActive alpha was <1.0f you need to tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar. - This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color. (Or If this is confusing, just pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color.) - - ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) - { - float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)); - float k = title_bg_col.w / new_a; - return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); - } - -Other changes: - -- New version of ImGuiListClipper helper calculates item height automatically. See comments and demo code. (#662, #661, #660) -- Added SetNextWindowSizeConstraints() to enable basic min/max and programmatic size constraints on window. Added demo. (#668) -- Added PushClipRect()/PopClipRect() (previously part of imgui_internal.h). Changed ImDrawList::PushClipRect() prototype. (#610) -- Added IsRootWindowOrAnyChildHovered() helper. (#615) -- Added TreeNodeEx() functions. (#581, #600, #190) -- Added ImGuiTreeNodeFlags_Selected flag to display TreeNode as "selected". (#581, #190) -- Added ImGuiTreeNodeFlags_AllowOverlapMode flag. (#600) -- Added ImGuiTreeNodeFlags_NoTreePushOnOpen flag (#590). -- Added ImGuiTreeNodeFlags_NoAutoOpenOnLog flag (previously private). -- Added ImGuiTreeNodeFlags_DefaultOpen flag (previously private). -- Added ImGuiTreeNodeFlags_OpenOnDoubleClick flag. -- Added ImGuiTreeNodeFlags_OpenOnArrow flag. -- Added ImGuiTreeNodeFlags_Leaf flag, always opened, no arrow, for convenience. For simple use case prefer using TreeAdvanceToLabelPos()+Text(). -- Added ImGuiTreeNodeFlags_Bullet flag, to add a bullet to Leaf node or replace Arrow with a bullet. -- Added TreeAdvanceToLabelPos(), GetTreeNodeToLabelSpacing() helpers. (#581, #324) -- Added CreateContext()/DestroyContext()/GetCurrentContext()/SetCurrentContext(). Obsoleted nearly identical GetInternalState()/SetInternalState() functions. (#586, #269) -- Added NewLine() to undo a SameLine() and as a shy reminder that horizontal layout support hasn't been implemented yet. -- Added IsItemClicked() helper. (#581) -- Added CollapsingHeader() variant with close button. (#600) -- Fixed MenuBar missing lower border when borders are enabled. -- InputText(): Fixed clipping of cursor rendering in case it gets out of the box (which can be forced w/ ImGuiInputTextFlags_NoHorizontalScroll. (#601) -- Style: Changed default IndentSpacing from 22 to 21. (#581, #324) -- Style: Fixed TitleBg/TitleBgActive color being rendered above WindowBg color, which was inconsistent and causing visual artifact. (#655) - This broke the meaning of TitleBg and TitleBgActive. Only affect values where Alpha<1.0f. Fixed default theme. Read comments in "API BREAKING CHANGES" section to convert. -- Relative rendering of order of Child windows creation is preserved, to allow more control with overlapping children. (#595) -- Fixed GetWindowContentRegionMax() being off by ScrollbarSize amount when explicit SizeContents is set. -- Indent(), Unindent(): optional non-default indenting width. (#324, #581) -- Bullet(), BulletText(): Slightly bigger. Less polygons. -- ButtonBehavior(): fixed subtle old bug when a repeating button would also return true on mouse release (barely noticeable unless RepeatRate is set to be very slow). (#656) -- BeginMenu(): a menu that becomes disabled while open gets closed down, facilitate user's code. (#126) -- BeginGroup(): fixed using within Columns set. (#630) -- Fixed a lag in reading the currently hovered window when dragging a window. (#635) -- Obsoleted 4 parameters version of CollapsingHeader(). Refactored code into TreeNodeBehavior. (#600, #579) -- Scrollbar: minor fix for top-right rounding of scrollbar background when window has menu bar but no title bar. -- MenuItem(): the check mark renders in disabled color when menu item is disabled. -- Fixed clipping rectangle floating point representation to ensure renderer-side float point operations yield correct results in typical DirectX/GL settings. (#582, 597) -- Fixed GetFrontMostModalRootWindow(), fixing missing fade-out when a combo pop was used stacked over a modal window. (#604) -- ImDrawList: Added AddQuad(), AddQuadFilled() helpers. -- ImDrawList: AddText() refactor, moving some code to ImFont, reserving less unused vertices when large vertical clipping occurs. -- ImFont: Added RenderChar() helper. -- ImFont: Added AddRemapChar() helper. (#609) -- ImFontConfig: Clarified persistence requirement of GlyphRanges array. (#651) -- ImGuiStorage: Added bool helper functions for completeness. -- AddFontFromMemoryCompressedTTF(): Fix ImFontConfig propagation. (#587) -- Renamed majority of use of the word "opened" to "open" for clarity. Renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(). (#625, #579) -- Examples: OpenGL3: Saving/restoring glActiveTexture() state. (#602) -- Examples: DirectX9: save/restore all device state. -- Examples: DirectX9: Removed dependency on d3dx9.h, d3dx9.lib, dxguid.lib so it can be used in a DirectXMath.h only environment. (#611) -- Examples: DirectX10/X11: Apply depth-stencil state (no use of depth buffer). (#640, #636) -- Examples: DirectX11/X11: Added comments on removing dependency on D3DCompiler. (#638) -- Examples: SDL: Initialize video+timer subsystem only. -- Examples: Apple/iOS: lowered XCode project deployment target from 10.7 to 10.11. (#598, #575) - - ------------------------------------------------------------------------ - VERSION 1.48 (2016-04-09) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.48 - -Breaking Changes: - -- Consistently honoring exact width passed to PushItemWidth() (when positive), previously it would add extra FramePadding.x*2 over that width. Some hand-tuned layout may be affected slightly. (#346) -- Style: removed `style.WindowFillAlphaDefault` which was confusing and redundant, baked alpha into `ImGuiCol_WindowBg` color. If you had a custom WindowBg color but didn't change WindowFillAlphaDefault, multiply WindowBg alpha component by 0.7. Renamed `ImGuiCol_TooltipBg` to `ImGuiCol_PopupBG`, applies to other types of pop-ups. `bg_alpha` parameter of 5-parameters version of Begin() is an override. (#337) -- InputText(): Added BufTextLen field in ImGuiTextEditCallbackData. Requesting user to update it if the buffer is modified in the callback. Added a temporary length-check assert to minimize panic for the 3 people using the callback. (#541) -- Renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize(). Kept inline redirection function (will obsolete). (#340) - -Other Changes: - -- Consistently honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. Some hand-tuned layout may be affected slightly. (#346) -- Fixed clipping of child windows within parent not taking account of child outer clipping boundaries (including scrollbar, etc.). (#506) -- TextUnformatted(): Fixed rare crash bug with large blurb of text (2k+) not finished with a '\n' and fully above the clipping Y line. (#535) -- IO: Added 'KeySuper' field to hold CMD keyboard modifiers for OS X. Updated all examples accordingly. (#473) -- Added ImGuiWindowFlags_ForceVerticalScrollbar, ImGuiWindowFlags_ForceHorizontalScrollbar flags. (#476) -- Added IM_COL32 macros to generate a U32 packed color, convenient for direct use of ImDrawList api. (#346) -- Added GetFontTexUvWhitePixel() helper, convenient for direct use of ImDrawList api. -- Selectable(): Added ImGuiSelectableFlags_AllowDoubleClick flag to allow user reacting on double-click. (@zapolnov) (#516) -- Begin(): made the close button explicitly set the boolean to false instead of toggling it. (#499) -- BeginChild()/EndChild(): fixed incorrect layout to allow widgets submitted after an auto-fitted child window. (#540) -- BeginChild(): Added ImGuiWindowFlags_AlwaysUseWindowPadding flag to ensure non-bordered child window uses window padding. (#462) -- Fixed InputTextMultiLine(), ListBox(), BeginChildFrame(), ProgressBar(): outer frame not honoring bordering. (#462, #503) -- Fixed Image(), ImageButtion() rendering a rectangle 1 px too large on each axis. (#457) -- SetItemAllowOverlap(): Promoted from imgui_internal.h to public imgui.h api. (#517) -- Combo(): Right-most button stays highlighted when pop-up is open. -- Combo(): Display pop-up above if there's isn't enough space below / or select largest side. (#505) -- DragFloat(), SliderFloat(), InputFloat(): fixed cases of erroneously returning true repeatedly after a text input modification (e.g. "0.0" --> "0.000" would keep returning true). (#564) -- DragFloat(): Always apply value when mouse is held/widget active, so that an always-resetting variable (e.g. non saved local) can be passed. -- InputText(): OS X friendly behaviors: Word movement uses ALT key; Shortcuts uses CMD key; Double-clicking text select a single word; Jumping to next word sets cursor to end of current word instead of beginning of current word. (@zhiayang), (#473) -- InputText(): Added BufTextLen in ImGuiTextEditCallbackData. Requesting user to maintain it if buffer is modified. Zero-ing structure properly before use. (#541) -- CheckboxFlags(): Added support for testing/setting multiple flags at the same time. (@DMartinek) (#555) -- TreeNode(), CollapsingHeader() fixed not being able to use "##" sequence in a formatted label. -- ColorEdit4(): Empty label doesn't add InnerSpacing.x, matching behavior of other widgets. (#346) -- ColorEdit4(): Removed unnecessary calls to scanf() when idle in hexadecimal edit mode. -- BeginPopupContextItem(), BeginPopupContextWindow(): added early out optimization. -- CaptureKeyboardFromApp() / CaptureMouseFromApp(): added argument to allow clearing the capture flag. (#533) -- ImDrawList: Fixed index-overflow check broken by AddText() casting current index back to ImDrawIdx. (#514) -- ImDrawList: Fixed incorrect removal of trailing draw command if it is a callback command. -- ImDrawList: Allow windows with only a callback only to be functional. (#524) -- ImDrawList: Fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. (#457) -- ImDrawList: Fixed ImDrawList::AddCircle() to fit precisely within bounding box like AddCircleFilled() and AddRectFilled(). (#457) -- ImDrawList: AddCircle(), AddRect() takes optional thickness parameter. -- ImDrawList: Added AddTriangle(). -- ImDrawList: Added PrimQuadUV() helper to ease custom rendering of textured quads (require primitive reserve). -- ImDrawList: Allow AddText(ImFont\* font, float font_size, ...) variant to take NULL/0.0f as default. -- ImFontAtlas: heuristic increase default texture width up for large number of glyphs. (#491) -- ImTextBuffer: Fixed empty() helper which was utterly broken. -- Metrics: allow to inspect individual triangles in draw calls. -- Demo: added more draw primitives in the Custom Rendering example. (#457) -- Demo: extra comments and example for PushItemWidth(-1) patterns. -- Demo: InputText password demo filters out blanks. (#515) -- Demo: Fixed malloc/free mismatch and leak when destructing demo console, if it has been used. (@fungos) (#536) -- Demo: plot code doesn't use ImVector to avoid heap allocation and be more friendly to custom allocator users. (#538) -- Fixed compilation on DragonFly BSD (@mneumann) (#563) -- Examples: Vulkan: Added a Vulkan example (@Loftilus) (#549) -- Examples: DX10, DX11: Saving/restoring most device state so dropping render function in your codebase shouldn't have DX device side-effects. (#570) -- Examples: DX10, DX11: Fixed ImGui_ImplDX??_NewFrame() from recreating device objects if render isn't called (g_pVB not set). -- Examples: OpenGL3: Fix BindVertexArray/BindBuffer order. (@nlguillemot) (#527) -- Examples: OpenGL: skip rendering and calling glViewport() if we have zero-fixed buffer. (#486) -- Examples: SDL2+OpenGL3: Fix context creation options. Made ImGui_ImplSdlGL3_NewFrame() signature match GL2 one. (#468, #463) -- Examples: SDL2+OpenGL2/3: Fix for high-dpi displays. (@nickgravelyn) -- Various extra comments and clarification in the code. -- Various other fixes and optimizations. - - ------------------------------------------------------------------------ - VERSION 1.47 (2015-12-25) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.47 - -Changes: - -- Rebranding "ImGui" -> "dear imgui" as an optional first name to reduce ambiguity with IMGUI term. (#21) -- Added ProgressBar(). (#333) -- InputText(): Added ImGuiInputTextFlags_Password mode: hide display, disable logging/copying to clipboard. (#237, #363, #374) -- Added GetColorU32() helper to retrieve color given enum with global alpha and extra applied. -- Added ImGuiIO::ClearInputCharacters() superfluous helper. -- Fixed ImDrawList draw command merging bug where using PopClipRect() along with PushTextureID()/PopTextureID() functions - would occasionally restore an incorrect clipping rectangle. -- Fixed ImDrawList draw command merging so PushTextureID(XXX)/PopTextureID()/PushTextureID(XXX) sequence are now properly merged. -- Fixed large popups positioning issues when their contents on either axis is larger than DisplaySize, - and WindowPadding < DisplaySafeAreaPadding. -- Fixed border rendering in various situations when using non-pixel aligned glyphs. -- Fixed border rendering of windows to always contain the border within the window. -- Fixed Shutdown() leaking font atlas data if NewFrame() was never called. (#396, #303) -- Fixed int>void\* warnings for 64-bit architectures with fancy warnings enabled. -- Renamed the dubious Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete. -- InputText(): Fixed and better handling of using keyboard while mouse button if being held and dragging. (#429) -- InputText(): Replace OS IME (Input Method Editor) cursor on top-left when we are not text editing. -- TreeNode(), CollapsingHeader(), Bullet(), BulletText(): various sizing and layout fixes to better support laying out - multiple item with different height on same line. (#414, #282) -- Begin(): Initial window creation with ImGuiWindowFlags_NoBringToFrontOnFocus flag pushes it at the front of global window list. -- BeginPopupContextWindow() and BeginPopupContextVoid() reopen window on subsequent click. (#439) -- ColorEdit4(): Fixed broken tooltip on hovering the color button. (actually fixes #373, #380) -- ImageButton(): uses FrameRounding up to a maximum of available framing size. (#394) -- Columns: Fixed bug with indentation within columns, also making code a bit shorter/faster. (#414, #125) -- Columns: Columns set with no implicit id include the columns count within the id to reduce collisions. (#125) -- Columns: Removed one unnecessary allocation when columns are not used by a window. (#125) -- ImFontAtlas: Tweaked GetGlyphRangesJapanese() so it is easier to modify. -- ImFontAtlas: Updated stb_rect_pack.h to 0.08. -- Metrics: Fixed computing ImDrawCmd bounding box when the draw buffer have been unindexed. -- Demo: Added a simple "Property Editor" demo applet. (#125, #414) -- Demo: Fixed assertion in "Custom Rendering" demo when holding both mouse buttons. (#393) -- Demo: Lots of extra comments, fixes. -- Demo: Tweaks to Style Editor. -- Examples: Not clearing input data/tex data in atlas (will be required for dynamic atlas anyway). -- Examples: Added /Zi (output debug information) to Win32 batch files. -- Examples: Various fixes for resizing window and recreating graphic context. -- Examples: OpenGL2/3: Save/restore viewport as part of default render function. (#392, #441). -- Examples; OpenGL3: Fixed gl3w.c for Linux when compiled with a C++ compiler. (#411) -- Examples: DirectX: Removed assumption about Unicode build in example main.cpp. (#399) -- Examples: DirectX10: Added DirectX10 example. (#424) -- Examples: DirectX11: Downgraded requirement from shader model 5.0 to 4.0. (#420) -- Examples: DirectX11: Removed Debug flag from graphics context. (#415) -- Examples: Added SDL+OpenGL3 example. (#356) - - ------------------------------------------------------------------------ - VERSION 1.46 (2015-10-18) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.46 - -Changes: - -- Begin*(): added ImGuiWindowFlags_NoFocusOnAppearing flag. (#314) -- Begin*(): added ImGuiWindowFlags_NoBringToFrontOnFocus flag. -- Added GetDrawData() alternative to setting a Render function pointer in ImGuiIO structure. -- Added SetClipboardText(), GetClipboardText() helper shortcuts that user code can call directly without reading - from the ImGuiIO structure (to match MemAlloc/MemFree) -- Fixed handling of malformed UTF-8 at the end of a non-zero terminated string range. -- Fixed mouse click detection when passing DeltaTime 0.0. (#338) -- Fixed IsKeyReleased() and IsMouseReleased() returning true on the first frame. -- Fixed using SetNextWindow\* functions on Modal windows with a ImGuiSetCond_Appearing condition. (#377) -- IsMouseHoveringRect(): Added 'bool clip' parameter to disable clipping provided rectangle. (#316) -- InputText(): added ImGuiInputTextFlags_ReadOnly flag. (#211) -- InputText(): lose cursor/undo-stack when reactivating focus is buffer has changed size. -- InputText(): fixed ignoring text inputs when ALT or ALTGR are pressed. (#334) -- InputText(): fixed mouse-dragging not tracking the cursor when text doesn't fit. (#339) -- InputText(): fixed cursor pixel-perfect alignment when horizontally scrolling. -- InputText(): fixed crash when passing a buf_size==0 (which can be of use for read-only selectable text boxes). (#360) -- InputFloat() fixed explicit precision modifier, both display and input were broken. -- PlotHistogram(): improved rendering of histogram with a lot of values. -- Dummy(): creates an item so functions such as IsItemHovered() can be used. -- BeginChildFrame() helper: added the extra_flags parameter. -- Scrollbar: fixed rounding of background + child window consistenly have ChildWindowBg color under ScrollbarBg fill. (#355). -- Scrollbar: background color less translucent in default style so it works better when changing background color. -- Scrollbar: fixed minor rendering offset when borders are enabled. (#365) -- ImDrawList: fixed 1 leak per ImDrawList using the ChannelsSplit() API (via Columns). (#318) -- ImDrawList: fixed rectangle rendering glitches with width/height <= 1/2 and rounding enabled. -- ImDrawList: AddImage() uv parameters default to (0,0) and (1,1). -- ImFontAtlas: Added TexDesiredWidth and tweaked default cheapo best-width choice. (#327) -- ImFontAtlas: Added GetGlyphRangesKorean() helper to retrieve unicode ranges for Korean. (#348) -- ImGuiTextFilter::Draw() helper return bool and build when filter is modified. -- ImGuiTextBuffer: added c_str() helper. -- ColorEdit4(): fixed hovering the color button always showing 1.0 alpha. (#373) -- ColorConvertFloat4ToU32() round the floats instead of truncating them. -- Window: Fixed window lower-right clipping limit so it plays more friendly with both OpenGL and DirectX coordinates. -- Internal: Extracted a EndFrame() function out of Render() but kept it internal/private + clarified some asserts. (#335) -- Internal: Added missing IMGUI_API definitions in imgui_internal.h (#326) -- Internal: ImLoadFileToMemory() return void\* instead of taking void*\* + allow optional int\* file_size. -- Demo: Horizontal scrollbar demo allows to enable simultanaeous scrollbars on both axises. -- Tools: binary_to_compressed_c.cpp: added -nocompress option. -- Examples: Added example for the Marmalade platform. -- Examples: Added batch files to build Windows examples with VS. -- Examples: OpenGL3: Saving/restoring more GL state correctly. (#347) -- Examples: OpenGL2/3: Added msys2/mingw64 target to Makefiles. - - ------------------------------------------------------------------------ - VERSION 1.45 (2015-09-01) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.45 - -Breaking Changes: - -- With the addition of better horizontal scrolling primitives I had to make some consistency fixes. - `GetCursorPos()` `SetCursorPos()` `GetContentRegionMax()` `GetWindowContentRegionMin()` `GetWindowContentRegionMax()` - are now incorporating the scrolling amount. They were incorrectly not incorporating this amount previously. - It PROBABLY shouldn't break anything, but that depends on how you used them. Namely: - - If you always used SetCursorPos() with values relative to GetCursorPos() there shouldn't be a problem. - However if you used absolute coordinates, note that SetCursorPosY(100.0f) will put you at +100 from the initial Y position (which may be scrolled out of the view), NOT at +100 from the window top border. Since there wasn't any official scrolling value on X axis (past just manually moving the cursor) this can only affect you if you used to set absolute coordinates on the Y axis which is hopefully rare/unlikely, and trivial to fix. - - The value of GetWindowContentRegionMax() isn't necessarily close to GetWindowWidth() if horizontally scrolling. - Previously they were roughly interchangeable (roughly because the content region exclude window padding). - -Other Changes: - -- Added Horizontal Scrollbar via ImGuiWindowFlags_HorizontalScroll (#246). -- Added GetScrollX(), GetScrollX(), GetScrollMaxX() apis (#246). -- Added SetNextWindowContentSize(), SetNextWindowContentWidth() to explicitly set the content size of a window, which - define the range of scrollbar. When set explicitly it also define the base value from which widget width are derived. -- Added IO.WantTextInput telling when ImGui is expecting text input, so that e.g. OS on-screen keyboard can be enabled. -- Added printf attribute to printf-like text formatting functions (Clang/GCC). -- Added GetMousePosOnOpeningCurrentPopup() helper. -- Added GetContentRegionAvailWidth() helper. -- Malformed UTF-8 data don't terminate string, output 0xFFFD instead (#307). -- ImDrawList: Added AddBezierCurve(), PathBezierCurveTo() API for cubic bezier curves (#311). -- ImDrawList: Allow to override ImDrawIdx type (#292). -- ImDrawList: Added an assert on overflowing index value (#292). -- ImDrawList: Fixed issues with channels split/merge. Now functional without manually adding a draw cmd. Added comments. -- ImDrawData: Added ScaleClipRects() helper useful when rendering scaled. (#287). -- Fixed Bullet() inconsistent layout behaviour when clipped. -- Fixed IsWindowHovered() not taking account of window hoverability (may be disabled because of a popup). -- Fixed InvisibleButton() not honoring negative size consistently with other widgets that do so. -- Fixed OpenPopup() accessing current window, effectively opening "Debug" when called from an empty window stack. -- TreeNode(): Fixed IsItemHovered() result being inconsistent with interaction visuals (#282). -- TreeNode(): Fixed mouse interaction padding past the node label being accounted for in layout (#282). -- BeginChild(): Passing a ImGuiWindowFlags_NoMove inhibits moving parent window from this child. -- BeginChild() fixed missing rounding for child sizes which leaked into layout and have items misaligned. -- Begin(): Removed default name = "Debug" parameter. We already have a "Debug" window pushed to the stack in the first place so it's not really a useful default. -- Begin(): Minor fixes with windows main clipping rectangle (e.g. child window with border). -- Begin(): Window flags are only read on the first call of the frame. Subsequent calls ignore flags, which allows appending to a window without worryin about flags. -- InputText(): ignore character input when ctrl/alt are held. (Normally those text input are ignored by most wrappers.) (#279). -- Demo: Fixed incorrectly formed string passed to Combo (#298). -- Demo: Added simple Log demo. -- Demo: Added horizontal scrolling example + enabled in console, log and child examples (#246). -- Style: made scrollbars rounded by default. Because nice. Minor menu bar background alpha tweak. (#246) -- Metrics: display indices along with triangles count (#299) and some internal state. -- ImGuiTextFilter::PassFilter() supports string range. Added [] helper to ImGuiTextBuffer. -- ImGuiTextFilter::Draw() default parameter width=0.0f for no override, allow override with negative values. -- Examples: OpenGL2/OpenGL3: fix for retina displays. Default font current lack crispness. -- Examples: OpenGL2/OpenGL3: save/restore more GL state correctly. -- Examples: DirectX9/DirectX11: resizing buffers dynamically (#299). -- Examples: DirectX9/DirectX11: added missing middle mouse button to Windows event handler. -- Examples: DirectX11: fix for Visual Studio 2015 presumably shipping with an updated version of DX11. -- Examples: iOS: fixed missing files in project. - - ------------------------------------------------------------------------ - VERSION 1.44 (2015-08-08) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.44 - -Breaking Changes: - -- imgui.cpp has been split intro extra files: imgui_demo.cpp, imgui_draw.cpp, imgui_internal.h. - Add the two extra .cpp to your project or #include them from another .cpp file. (#219) - -Other Changes: - -- Internal data structure and several useful functions are now exposed in imgui_internal.h. This should make it easier - and more natural to extend ImGui. However please note that none of the content in imgui_internal.h is guaranteed - for forward-compatibility and code using those types/functions may occasionally break. (#219) -- All sample code is in imgui_demo.cpp. Please keep this file in your project and consider allowing your code to call - the ShowTestWindow() function as de-facto guide to ImGui features. It will be stripped out by the linker when unused. -- Added GetContentRegionAvail() helper (basically GetContentRegionMax() - GetCursorPos()). -- Added ImGuiWindowFlags_NoInputs for totally input-passthru window. -- Button(): honor negative size consistently with other widgets that do so (width -100 to align the button 100 pixels - before the right-most position of the contents region). -- InputTextMultiline(): honor negative size consistently with other widgets that do so. -- Combo() clamp popup to lower edge of visible area. -- InputInt(): value doesn't pass through an int>float>int casting chain, fix handling lost of precision with "large" integer. -- InputInt() allow hexadecimal input (awkwardly via ImGuiInputTextFlags_CharsHexadecimal but we will allow format - string in InputInt* later). -- Checkbox(), RadioButton(): fixed scaling of checkbox and radio button for the filling of "active" visual. -- Columns: never assume horizontal space for scrollbar if NoScrollbar flag is explicitly set. -- Slider: fixed using FramePadding between frame and grab visual. Scaling that spacing would look odd. -- Fixed lower-right resize grip hit box not scaling along with its rendered size (#287) -- ImDrawList: Fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (v1.43) being off by an extra PI for no reason. -- ImDrawList: Added ImDrawList::AddText() shorthand helper. -- ImDrawList: Add missing support for anti-aliased thick-lines (#133, also ref #288) -- ImFontAtlas: Added AddFontFromMemoryCompressedBase85TTF() to load base85 encoded font string. Default font encoded - as base85 saves ~100 lines / 26 KB of source code. Added base85 output to the binary_to_compressed_c tool. -- Build fix for MinGW (#276). -- Examples: OpenGL3: Fixed running on script core profiles for OSX (#277). -- Examples: OpenGL3: Simplified code using glBufferData for vertices as well (#277, #278) -- Examples: DirectX11: Clear font texture view to ensure Release() doesn't get called twice (#290). -- Updated to stb_truetype 1.07 (back to vanilla version as our minor changes are now in master & fix unlikely assert - with odd fonts (#280) - - ------------------------------------------------------------------------ - VERSION 1.43 (2015-07-17) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.43 - -Breaking Changes: - -- This is a rather important release and we unfortunately had to break the rendering API. - ImGui now requires you to render indexed vertices instead of non-indexed ones. The fix should be very easy. - Sorry for that! This change is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost. - Each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles - using indices from the index buffer. -- If you are using a vanilla copy of one of the imgui_impl_XXXX.cpp provided in the example, you just need to update - your copy and you can ignore the rest. -- The signature of the io.RenderDrawListsFn handler has changed - From: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count) - To: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data) - With: argument 'cmd_lists' -> 'draw_data->CmdLists' - argument 'cmd_lists_count' -> 'draw_data->CmdListsCount' - ImDrawList 'commands' -> 'CmdBuffer' - ImDrawList 'vtx_buffer' -> 'VtxBuffer' - ImDrawList n/a -> 'IdxBuffer' (new) - ImDrawCmd 'vtx_count' -> 'ElemCount' - ImDrawCmd 'clip_rect' -> 'ClipRect' - ImDrawCmd 'user_callback' -> 'UserCallback' - ImDrawCmd 'texture_id' -> 'TextureId' -- If you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index - the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering! - Refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. Please upgrade! - -Other Changes: - -- Added anti-aliasing on lines and shapes based on primitives by @MikkoMononen (#133). - Between the use of indexed-rendering and the fact that the entire rendering codebase has been optimized and massaged - enough, with anti-aliasing enabled ImGui 1.43 is now running FASTER than 1.41. - Made some extra effort in making the code run faster in your typical Debug build. -- Anti-aliasing can be disabled in the ImGuiStyle structure via the AntiAliasedLines/AntiAliasedShapes fields for further gains. -- ImDrawList: Added AddPolyline(), AddConvexPolyFilled() with optional anti-aliasing. -- ImDrawList: Added stateful path building and stroking API. PathLineTo(), PathArcTo(), PathRect(), PathFill(), PathStroke() - with optional anti-aliasing. -- ImDrawList: Added AddRectFilledMultiColor() helper. -- ImDrawList: Added multi-channel rendering so out of order elements can be rendered in separate channels and then merged - back together (used by columns). -- ImDrawList: Fixed merging draw commands when equal clip rectangles are in the two first commands. -- ImDrawList: Fixed window draw lists not destructed properly on Shutdown(). -- ImDrawData: Added DeIndexAllBuffers() helper. -- Added lots of new font options ImFontAtlas::AddFont() and the new ImFontConfig structure. - - Added support for oversampling (ImFontConfig: OversampleH, OversampleV) and sub-pixel positioning (ImFontConfig: PixelSnapH). - Oversampling allows sub-pixel positioning but can also be used as a way to get some leeway with scaling fonts without re-rasterizing. - - Added GlyphExtraSpacing option to add extra horizontal spacing between characters (#242). - - Added MergeMode option to merge glyphs from different font inputs into a same font (#182, #232). - - Added FontDataOwnedByAtlas option to keep ownership from the TTF data buffer and request the atlas to make a copy (#220). -- Updated to stb_truetype 1.06 (+ minor mods) with better font rasterization. -- InputText: Added ImGuiInputTextFlags_NoHorizontalScroll flag. -- InputText: Added ImGuiInputTextFlags_AlwaysInsertMode flag. -- InputText: Added HasSelection() helper in ImGuiTextEditCallbackData as a clarification. -- InputText: Fix for using END key on a multi-line text editor (#275) -- Columns: Dispatch render of each column in a sub-draw list and merge on closure, saving a lot of draw calls! (#125) -- Popups: Fixed Combo boxes inside menus. (#272) -- Style: Added GrabRounding setting to make the sliders etc. grabs rounded. -- Changed SameLine() parameters from int to float. -- Fixed incorrect assert triggering when code stole ActiveID from user moving a window by calling e.g. SetKeyboardFocusHere(). -- Fixed CollapsingHeader() label rendering outside its frame in columns context where ClipRect max isn't aligned with the - right-side of the header. -- Metrics window: calculate bounding box of actual vertices when hovering a draw list. -- Examples: Showing more information in the Fonts section. -- Examples: Added a gratuitous About window. -- Examples: Updated all examples code (OpenGL/DX9/DX11/SDL/Allegro/iOS) to use indexed rendering. -- Examples: Fixed the SDL2 example to support Unicode text input (#274). - - ------------------------------------------------------------------------ - VERSION 1.42 (2015-07-08) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.42 - -Breaking Changes: - -- Renamed SetScrollPosHere() to SetScrollHere(). Kept inline redirection function (will obsolete). -- Renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion and make scrolling API consistent, - because positions (e.g. cursor position) are not equivalent to scrolling amount. -- Removed obsolete GetDefaultFontData() function that would assert anyway. - If you are updating from <1.30 you'll get a compile error instead of an assertion. (obsoleted 2015/01/11) - -Other Changes: - -- Added SDL2 example application (courtesy of @CedricGuillemet) -- Added iOS example application (courtesy of @joeld42) -- Added Allegro 5 example application (courtesy of @bggd) -- Added TitleBgActive color in style so focused window is made visible. (#253) -- Added CaptureKeyboardFromApp() / CaptureMouseFromApp() to manually enforce inputs capturing. -- Added DragFloatRange2() DragIntRange2() helpers. (#76) -- Added a Y centering ratio to SetScrollFromCursorPos() which can be used to aim the top or bottom of the window. (#150) -- Added SetScrollY(), SetScrollFromPos(), GetCursorStartPos() for manual scrolling manipulations. (#150). -- Added GetKeyIndex() helper for converting from ImGuiKey_\* enum to user's keycodes. Basically pulls from io.KeysMap[]. -- Added missing ImGuiKey_PageUp, ImGuiKey_PageDown so more UI code can be written without referring to implementation-side keycodes. -- MenuItem() can be activated on release. (#245) -- Allowing NewFrame() with DeltaTime==0.0f to not assert. -- Fixed IsMouseDragging(). (#260) -- Fixed PlotLines(), PlotHistogram() using incorrect hovering test so they would show their tooltip even when there is - a popup between mouse and the graph. -- Fixed window padding being reported incorrectly for child windows with borders when parent have no borders. -- Fixed a bug with TextUnformatted() clipping of long text blob when clipping y1 line sits on the first line of text. (#257) -- Fixed text baseline alignment of small button (no padding) after regular buttons. -- Fixed ListBoxHeader() not honoring negative sizes the same way as BeginChild() or BeginChildFrame(). (#263) -- Fixed warnings for more pedantic compiler settings (#258). -- ImVector<> cannot be re-defined anymore, cannot be replaced with std::vector<>. Allowed us to clean up and optimize - lots of code. Yeah! (#262) -- ImDrawList: store pointer to their owner name for easier auditing/debugging. -- Examples: added scroll tracking example with SetScrollFromCursorPos(). -- Examples: metrics windows render clip rectangle when hovering over a draw call. -- Lots of small optimization (particularly to run faster on unoptimized builds) and tidying up. -- Added font links in extra_fonts/ + instructions for using compressed fonts in C array. - - ------------------------------------------------------------------------ - VERSION 1.41 (2015-06-26) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.41 - -Breaking Changes: - -- Changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent). - Only makes a difference when texture have transparency. -- Changed Selectable() API from (label, selected, size) to (label, selected, flags, size). - Size override should be used very rarely so hopefully it doesn't affect many people. Sorry! - -Other Changes: - -- Added InputTextMultiline() multi-line text editor, vertical scrolling, selection, optimized enough to handle rather - big chunks of text in stateless context (thousands of lines are ok), option for allowing Tab to be input, option - for validating with Return or Ctrl+Return (#200). -- Added modal window API, BeginPopupModal(), follows the popup api scheme. Modal windows can be closed by clicking - outside. By default the rest of the screen is dimmed (using ImGuiCol_ModalWindowDarkening). Modal windows can be stacked. -- Added GetGlyphRangesCyrillic() helper (#237). -- Added SetNextWindowPosCenter() to center a window prior to knowing its size. (#249) -- Added IsWindowHovered() helper. -- Added IsMouseReleased(), IsKeyReleased() helpers to allow to user to avoid tracking them. (#248) -- Allow Set*WindowSize() calls to be used with popups. -- Window: AutoFit can be triggered on each axis separately via SetNextWindowSize(), etc. -- Window: fixed scrolling with mouse wheel while window was collapsed. -- Window: fixed mouse wheel scroll issues. -- DragFloat(), SliderFloat(): Fixed rounding of negative numbers which sometime made the negative lower bound unreachable. -- InputText(): lifted character count limit. -- InputText(): fixes in case of using per-window font scaling. -- Selectable(), MenuItem(): do not use frame rounding for hovering/selection. -- Selectable(): Added flag ImGuiSelectableFlags_DontClosePopups. -- Selectable(): Added flag ImGuiSelectableFlags_SpanAllColumns (#125). -- Combo(): Fixed issue with activating a Combo() not taking active id (#241). -- ColorButton(), ColorEdit4(): fix to ensure that the colored square stays square when non-default padding settings are used. -- BeginChildFrame(): returns bool like BeginChild() for clipping. -- SetScrollPosHere(): takes account of item height + more accurate centering + fixed precision issue. -- ImFont: ignoring '\r'. -- ImFont: added GetCharAdvance() helper. Exposed font Ascent and font Descent. -- ImFont: additional rendering optimizations. -- Metrics windows display storage size. - - ------------------------------------------------------------------------ - VERSION 1.40 (2015-05-31) ------------------------------------------------------------------------ - -Decorated log: https://github.com/ocornut/imgui/releases/tag/v1.40 - -Breaking Changes: - -- The BeginPopup() API (introduced in 1.37) had to be changed to allow for stacked popups and menus. - Use OpenPopup() to toggle the opened state and BeginPopup() to append.** -- The third parameter of Button(), 'repeat_if_held' has been removed. While it's been very rarely used, - some code will possibly break if you didn't rely on the default parameter. - Use PushButtonRepeat()/PopButtonRepeat() to configure repeat. -- Renamed IsRectClipped() to !IsRectVisible() for consistency (opposite return value!). Kept inline redirection function (will obsolete) -- Renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline indirection function (will obsolete). - -Other Changes: - -- Menus: Added a menu system! Menus are typically populated with menu items and sub-menus, but you can add any sort of - widgets in them (buttons, text inputs, sliders, etc.). (#126) -- Menus: Added MenuItem() to append a menu item. Optional shortcut display, acts a button & toggle with checked/unchecked state, - disabled mode. Menu items can be used in any window. -- Menus: Added BeginMenu() to append a sub-menu. Note that you generally want to add sub-menu inside a popup or a menu-bar. - They will work inside a normal window but it will be a bit unusual. -- Menus: Added BeginMenuBar() to append to window menu-bar (set ImGuiWindowFlags_MenuBar to enable). -- Menus: Added BeginMainMenuBar() helper to append to a fullscreen main menu-bar. -- Popups: Support for stacked popups. Each popup level inhibit inputs to lower levels. The menus system is based on this. (#126). -- Popups: Added BeginPopupContextItem(), BeginPopupContextWindow(), BeginPopupContextVoid() to create a popup window on mouse-click. -- Popups: Popups have borders by default (#197), attenuated border alpha in default theme. -- Popups & Tooltip: Fit within display. Handling various positioning/sizing/scrolling edge cases. Better hysteresis when moving - in corners. Tooltip always tries to stay away from mouse-cursor. -- Added ImGuiStorage::GetVoidPtrRef() for manipulating stored void*. -- Added IsKeyDown() IsMouseDown() as convenience and for consistency with existing functions (instead of reading them from IO structures). -- Added Dummy() helper to advance layout by a given size. Unlike InvisibleButton() this doesn't catch any click. -- Added configurable io.KeyRepeatDelay, io.KeyRepeatRate keyboard and mouse repeat rate. -- Added PushButtonRepeat() / PopButtonRepeat() to enable hold-button-to-repeat press on any button. -- Removed the third 'repeat' parameter of Button(). -- Added IsAnyItemHovered() helper. -- Added GetItemsLineHeightWithSpacing() helper. -- Added ImGuiListClipper helper for clipping large list of evenly sized items, to avoid using CalcListClipping() directly. -- Separator: within group start on group horizontal offset. (#205) -- InputText: Fixed incorrect edit state after text buffer is appended to by user via the callback. (#206) -- InputText: CTRL+letter-key shortcuts (e.g. CTRL+C/V/X) makes sure only CTRL is pressed. (#214) -- InputText: Fixed cursor generating a zero-width wire-frame rectangle turning into a division by zero (would go unnoticed - unless you trapped exceptions). -- InputFloatN/InputIntN: Flags parameter added to match scalar versions. (#218) -- Selectable: Horizontal filling not declared to ItemSize() so Selectable(),SameLine() works and we can better auto-fit the window. -- Selectable: Handling text baseline alignment for line that aren't of text height. -- Combo: Empty label doesn't add ItemInnerSpacing alignment, matching other widgets. -- EndGroup: Carries the text base offset from the last line of the group (sort of incorrect but better than nothing, - should use the first line of the group, will implement in the future). -- Columns: distinguish columns-set ID from other widgets as a convenience, added asserts and sailors. -- ListBox: ListBox() function only use public API to encourage creating custom versions. ListBoxHeader() can return false. -- ListBox: Uses ImGuiListClipper and assume items of matching height, so large lists can be handled. -- Plot: overlay label clipped within frame when not fitting. -- Window: Added ImGuiSetCond_Appearing to test the hidden->visible transition in SetWindow***/SetNextWindow*** functions. -- Window: Auto-fitting cancel out one worth of vertical spacing for vertical symmetry (like what group and tooltip do). -- Window: Default item width for auto-resizing windows expressed as a factor of font height, scales better with different font. -- Window: Fixed auto-fit calculation mismatch of whether a scrollbar will be added by maximum height clamping. Also honor NoScrollBar in the case of height clamping, not adding extra horizontal space. -- Window: Hovering require to hover same child window. Reverted 860cf57 (December 3). Might break something if you have - child overlapping items in parent window. -- Window: Fixed appending multiple times to an existing child via multiple BeginChild/EndChild calls to same child name. - Allows a simple form of out-of-order appending. -- Window: Fixed auto-filling child window using WindowMinSize at their minimum size, irrelevant. -- Metrics: Added io.MetricsActiveWindows counter. (#213. -- Metrics: Added io.MetricsAllocs counter (number of active memory allocations). -- Metrics: ShowMetricsWindow() shows popups stack, allocations. -- Style: Added style.DisplayWindowPadding to prevent windows from reaching edges of display (similar to style.DisplaySafeAreaPadding which is still in effect and also affect popups/tooltips). -- Style: Removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same). -- Style: Added style.ScrollbarRounding. (#212) -- Style: Added ImGuiCol_TextDisabled for disabled text. Added TextDisabled() helper. -- Style: Added style.WindowTitleAlign alignment options, to e.g. center title on windows. (#222) -- ImVector: tweak growth strategy, matches vector from VS2010. -- ImFontAtlas: Added ClearFonts(), making the different clear funcs more explicit. (#224) -- ImFontAtlas: Fixed appending new fonts without clearing existing fonts. Clearing input data left to application. (#224) -- ImDrawList: Merge draw command better, cases of multiple Begin/End gets merged properly. -- Store common stacked settings contiguously in memory to avoid heap allocation for unused features, and reduce cache misses. -- Shutdown() tests for g.IO.Fonts not being NULL to ease use of multiple ImGui contexts. (#207) -- Added IMGUI_DISABLE_OBSOLETE_FUNCTIONS define to disable the functions that are meant to be removed. -- Examples: Added ? marks with tooltips next to various widgets. Added more comments in the demo window. -- Examples: Added Menu-bar example. -- Examples: Added Simple Layout example. -- Examples: AutoResize demo doesn't use TextWrapped(). -- Examples: Console example uses standard malloc/free, makes more sense as a copy & pastable example. -- Examples: DirectX9/11: Fixed key mapping for down arrow. -- Examples: DirectX9/11: hide OS cursor if ImGui is drawing it. (#155) -- Examples: DirectX11: explicitly set rasterizer state. -- Examples: OpenGL3: Add conditional compilation of forward compat as required by glfw on OSX. (#229) -- Fixed build with Visual Studio 2008 (possibly earlier versions as well). -- Other fixes, comments, tweaks. - - ------------------------------------------------------------------------ - -For older version, see https://github.com/ocornut/imgui/releases - diff --git a/third_party/imgui/docs/EXAMPLES.md b/third_party/imgui/docs/EXAMPLES.md deleted file mode 100644 index 34261edb..00000000 --- a/third_party/imgui/docs/EXAMPLES.md +++ /dev/null @@ -1,243 +0,0 @@ -_(You may browse this at https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md or view this file with any Markdown viewer)_ - -## Dear ImGui: Examples - -**The [examples/](https://github.com/ocornut/imgui/blob/master/examples) folder example applications (standalone, ready-to-build) for variety of -platforms and graphics APIs.** They all use standard backends from the [backends/](https://github.com/ocornut/imgui/blob/master/backends) folder. - -You can find Windows binaries for some of those example applications at: - http://www.dearimgui.org/binaries - - -### Getting Started - -Integration in a typical existing application, should take <20 lines when using standard backends. - - At initialization: - call ImGui::CreateContext() - call ImGui_ImplXXXX_Init() for each backend. - - At the beginning of your frame: - call ImGui_ImplXXXX_NewFrame() for each backend. - call ImGui::NewFrame() - - At the end of your frame: - call ImGui::Render() - call ImGui_ImplXXXX_RenderDrawData() for your Renderer backend. - - At shutdown: - call ImGui_ImplXXXX_Shutdown() for each backend. - call ImGui::DestroyContext() - -Example (using [backends/imgui_impl_win32.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_win32.cpp) + [backends/imgui_impl_dx11.cpp](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_dx11.cpp)): - - // Create a Dear ImGui context, setup some options - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); - io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable some options - - // Initialize Platform + Renderer backends (here: using imgui_impl_win32.cpp + imgui_impl_dx11.cpp) - ImGui_ImplWin32_Init(my_hwnd); - ImGui_ImplDX11_Init(my_d3d_device, my_d3d_device_context); - - // Application main loop - while (true) - { - // Beginning of frame: update Renderer + Platform backend, start Dear ImGui frame - ImGui_ImplDX11_NewFrame(); - ImGui_ImplWin32_NewFrame(); - ImGui::NewFrame(); - - // Any application code here - ImGui::Text("Hello, world!"); - - // End of frame: render Dear ImGui - ImGui::Render(); - ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); - - // Swap - g_pSwapChain->Present(1, 0); - } - - // Shutdown - ImGui_ImplDX11_Shutdown(); - ImGui_ImplWin32_Shutdown(); - ImGui::DestroyContext(); - -Please read 'PROGRAMMER GUIDE' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. -Please read the comments and instruction at the top of each file. -Please read FAQ at http://www.dearimgui.org/faq - -If you are using of the backend provided here, you can add the backends/imgui_impl_xxxx(.cpp,.h) -files to your project and use as-in. Each imgui_impl_xxxx.cpp file comes with its own individual -Changelog, so if you want to update them later it will be easier to catch up with what changed. - - -### Examples Applications - -[example_allegro5/](https://github.com/ocornut/imgui/blob/master/examples/example_allegro5/)
-Allegro 5 example.
-= main.cpp + imgui_impl_allegro5.cpp - -[example_android_opengl3/](https://github.com/ocornut/imgui/blob/master/examples/example_android_opengl3/)
-Android + OpenGL3 (ES) example.
-= main.cpp + imgui_impl_android.cpp + imgui_impl_opengl3.cpp - -[example_apple_metal/](https://github.com/ocornut/imgui/blob/master/examples/example_metal/)
-OSX & iOS + Metal example.
-= main.m + imgui_impl_osx.mm + imgui_impl_metal.mm
-It is based on the "cross-platform" game template provided with Xcode as of Xcode 9. -(NB: imgui_impl_osx.mm is currently not as feature complete as other platforms backends. -You may prefer to use the GLFW Or SDL backends, which will also support Windows and Linux.) - -[example_apple_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_apple_opengl2/)
-OSX + OpenGL2 example.
-= main.mm + imgui_impl_osx.mm + imgui_impl_opengl2.cpp
-(NB: imgui_impl_osx.mm is currently not as feature complete as other platforms backends. - You may prefer to use the GLFW Or SDL backends, which will also support Windows and Linux.) - -[example_emscripten_opengl3/](https://github.com/ocornut/imgui/blob/master/examples/example_emscripten_opengl3/)
-Emcripten + SDL2 + OpenGL3+/ES2/ES3 example.
-= main.cpp + imgui_impl_sdl.cpp + imgui_impl_opengl3.cpp
-Note that other examples based on SDL or GLFW + OpenGL could easily be modified to work with Emscripten. -We provide this to make the Emscripten differences obvious, and have them not pollute all other examples. - -[example_emscripten_wgpu/](https://github.com/ocornut/imgui/blob/master/examples/example_emscripten_wgpu/)
-Emcripten + GLFW + WebGPU example.
-= main.cpp + imgui_impl_glfw.cpp + imgui_impl_wgpu.cpp - -[example_glfw_metal/](https://github.com/ocornut/imgui/blob/master/examples/example_glfw_metal/)
-GLFW (Mac) + Metal example.
-= main.mm + imgui_impl_glfw.cpp + imgui_impl_metal.mm - -[example_glfw_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_glfw_opengl2/)
-GLFW + OpenGL2 example (legacy, fixed pipeline).
-= main.cpp + imgui_impl_glfw.cpp + imgui_impl_opengl2.cpp
-**DO NOT USE OPENGL2 CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)**
-**Prefer using OPENGL3 code (with gl3w/glew/glad/glad2/glbinding, you can replace the OpenGL function loader)**
-This code is mostly provided as a reference to learn about Dear ImGui integration, because it is shorter. -If your code is using GL3+ context or any semi modern OpenGL calls, using this renderer is likely to -make things more complicated, will require your code to reset many OpenGL attributes to their initial -state, and might confuse your GPU driver. One star, not recommended. - -[example_glfw_opengl3/](https://github.com/ocornut/imgui/blob/master/examples/example_glfw_opengl3/)
-GLFW (Win32, Mac, Linux) + OpenGL3+/ES2/ES3 example (programmable pipeline).
-= main.cpp + imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
-This uses more modern OpenGL calls and custom shaders.
-Prefer using that if you are using modern OpenGL in your application (anything with shaders). -(Please be mindful that accessing OpenGL3+ functions requires a function loader, which are a frequent -source for confusion for new users. We use a loader in imgui_impl_opengl3.cpp which may be different -from the one your app normally use. Read imgui_impl_opengl3.h for details and how to change it.) - -[example_glfw_vulkan/](https://github.com/ocornut/imgui/blob/master/examples/example_glfw_vulkan/)
-GLFW (Win32, Mac, Linux) + Vulkan example.
-= main.cpp + imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp
-This is quite long and tedious, because: Vulkan. -For this example, the main.cpp file exceptionally use helpers function from imgui_impl_vulkan.h/cpp. - -[example_glut_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_glut_opengl2/)
-GLUT (e.g., FreeGLUT on Linux/Windows, GLUT framework on OSX) + OpenGL2 example.
-= main.cpp + imgui_impl_glut.cpp + imgui_impl_opengl2.cpp
-Note that GLUT/FreeGLUT is largely obsolete software, prefer using GLFW or SDL. - -[example_marmalade/](https://github.com/ocornut/imgui/blob/master/examples/example_marmalade/)
-Marmalade example using IwGx.
-= main.cpp + imgui_impl_marmalade.cpp - -[example_null/](https://github.com/ocornut/imgui/blob/master/examples/example_null/)
-Null example, compile and link imgui, create context, run headless with no inputs and no graphics output.
-= main.cpp
-This is used to quickly test compilation of core imgui files in as many setups as possible. -Because this application doesn't create a window nor a graphic context, there's no graphics output. - -[example_sdl_directx11/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl_directx11/)
-SDL2 + DirectX11 example, Windows only.
-= main.cpp + imgui_impl_sdl.cpp + imgui_impl_dx11.cpp
-This to demonstrate usage of DirectX with SDL. - -[example_sdl_metal/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl_metal/)
-SDL2 (Mac) + Metal example.
-= main.mm + imgui_impl_sdl.cpp + imgui_impl_metal.mm - -[example_sdl_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl_opengl2/)
-SDL2 (Win32, Mac, Linux etc.) + OpenGL example (legacy, fixed pipeline).
-= main.cpp + imgui_impl_sdl.cpp + imgui_impl_opengl2.cpp
-**DO NOT USE OPENGL2 CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)**
-**Prefer using OPENGL3 code (with gl3w/glew/glad/glad2/glbinding, you can replace the OpenGL function loader)**
-This code is mostly provided as a reference to learn about Dear ImGui integration, because it is shorter. -If your code is using GL3+ context or any semi modern OpenGL calls, using this renderer is likely to -make things more complicated, will require your code to reset many OpenGL attributes to their initial -state, and might confuse your GPU driver. One star, not recommended. - -[example_sdl_opengl3/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl_opengl3/)
-SDL2 (Win32, Mac, Linux, etc.) + OpenGL3+/ES2/ES3 example.
-= main.cpp + imgui_impl_sdl.cpp + imgui_impl_opengl3.cpp
-This uses more modern OpenGL calls and custom shaders.
-Prefer using that if you are using modern OpenGL in your application (anything with shaders). -(Please be mindful that accessing OpenGL3+ functions requires a function loader, which are a frequent -source for confusion for new users. We use a loader in imgui_impl_opengl3.cpp which may be different -from the one your app normally use. Read imgui_impl_opengl3.h for details and how to change it.) - -[example_sdl_vulkan/](https://github.com/ocornut/imgui/blob/master/examples/example_sdl_vulkan/)
-SDL2 (Win32, Mac, Linux, etc.) + Vulkan example.
-= main.cpp + imgui_impl_sdl.cpp + imgui_impl_vulkan.cpp
-This is quite long and tedious, because: Vulkan.
-For this example, the main.cpp file exceptionally use helpers function from imgui_impl_vulkan.h/cpp. - -[example_win32_directx9/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_directx9/)
-DirectX9 example, Windows only.
-= main.cpp + imgui_impl_win32.cpp + imgui_impl_dx9.cpp - -[example_win32_directx10/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_directx10/)
-DirectX10 example, Windows only.
-= main.cpp + imgui_impl_win32.cpp + imgui_impl_dx10.cpp - -[example_win32_directx11/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_directx11/)
-DirectX11 example, Windows only.
-= main.cpp + imgui_impl_win32.cpp + imgui_impl_dx11.cpp - -[example_win32_directx12/](https://github.com/ocornut/imgui/blob/master/examples/example_win32_directx12/)
-DirectX12 example, Windows only.
-= main.cpp + imgui_impl_win32.cpp + imgui_impl_dx12.cpp
-This is quite long and tedious, because: DirectX12. - - -### Miscallaneous - -**Building** - -Unfortunately nowadays it is still tedious to create and maintain portable build files using external -libraries (the kind we're using here to create a window and render 3D triangles) without relying on -third party software and build systems. For most examples here we choose to provide: - - Makefiles for Linux/OSX - - Batch files for Visual Studio 2008+ - - A .sln project file for Visual Studio 2012+ - - Xcode project files for the Apple examples -Please let us know if they don't work with your setup! -You can probably just import the imgui_impl_xxx.cpp/.h files into your own codebase or compile those -directly with a command-line compiler. - -If you are interested in using Cmake to build and links examples, see: - https://github.com/ocornut/imgui/pull/1713 and https://github.com/ocornut/imgui/pull/3027 - -**About mouse cursor latency** - -Dear ImGui has no particular extra lag for most behaviors, -e.g. the value of 'io.MousePos' provided at the time of NewFrame() will result in windows being moved -to the right spot at the time of EndFrame()/Render(). At 60 FPS your experience should be pleasant. - -However, consider that OS mouse cursors are typically drawn through a very specific hardware accelerated -path and will feel smoother than the majority of contents rendered via regular graphics API (including, -but not limited to Dear ImGui windows). Because UI rendering and interaction happens on the same plane -as the mouse, that disconnect may be jarring to particularly sensitive users. -You may experiment with enabling the io.MouseDrawCursor flag to request Dear ImGui to draw a mouse cursor -using the regular graphics API, to help you visualize the difference between a "hardware" cursor and a -regularly rendered software cursor. -However, rendering a mouse cursor at 60 FPS will feel sluggish so you likely won't want to enable that at -all times. It might be beneficial for the user experience to switch to a software rendered cursor _only_ -when an interactive drag is in progress. - -Note that some setup or GPU drivers are likely to be causing extra display lag depending on their settings. -If you feel that dragging windows feels laggy and you are not sure what the cause is: try to build a simple -drawing a flat 2D shape directly under the mouse cursor! - diff --git a/third_party/imgui/docs/FAQ.md b/third_party/imgui/docs/FAQ.md deleted file mode 100644 index 2939edf6..00000000 --- a/third_party/imgui/docs/FAQ.md +++ /dev/null @@ -1,665 +0,0 @@ -# FAQ (Frequenty Asked Questions) - -You may link to this document using short form: - https://www.dearimgui.org/faq -or its real address: - https://github.com/ocornut/imgui/blob/master/docs/FAQ.md -or view this file with any Markdown viewer. - - -## Index - -| **Q&A: Basics** | -:---------------------------------------------------------- | -| [Where is the documentation?](#q-where-is-the-documentation) | -| [What is this library called?](#q-what-is-this-library-called) | -| [Which version should I get?](#q-which-version-should-i-get) | -| **Q&A: Integration** | -| **[How to get started?](#q-how-to-get-started)** | -| **[How can I tell whether to dispatch mouse/keyboard to Dear ImGui or to my application?](#q-how-can-i-tell-whether-to-dispatch-mousekeyboard-to-dear-imgui-or-to-my-application)** | -| [How can I enable keyboard or gamepad controls?](#q-how-can-i-enable-keyboard-or-gamepad-controls) | -| [How can I use this on a machine without mouse, keyboard or screen? (input share, remote display)](#q-how-can-i-use-this-on-a-machine-without-mouse-keyboard-or-screen-input-share-remote-display) | -| [I integrated Dear ImGui in my engine and little squares are showing instead of text..](#q-i-integrated-dear-imgui-in-my-engine-and-little-squares-are-showing-instead-of-text) | -| [I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around..](#q-i-integrated-dear-imgui-in-my-engine-and-some-elements-are-clipping-or-disappearing-when-i-move-windows-around) | -| [I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries..](#q-i-integrated-dear-imgui-in-my-engine-and-some-elements-are-displaying-outside-their-expected-windows-boundaries) | -| **Q&A: Usage** | -| **[Why is my widget not reacting when I click on it?
How can I have widgets with an empty label?
How can I have multiple widgets with the same label?](#q-why-is-my-widget-not-reacting-when-i-click-on-it)** | -| [How can I display an image? What is ImTextureID, how does it work?](#q-how-can-i-display-an-image-what-is-imtextureid-how-does-it-work)| -| [How can I use my own math types instead of ImVec2/ImVec4?](#q-how-can-i-use-my-own-math-types-instead-of-imvec2imvec4) | -| [How can I interact with standard C++ types (such as std::string and std::vector)?](#q-how-can-i-interact-with-standard-c-types-such-as-stdstring-and-stdvector) | -| [How can I display custom shapes? (using low-level ImDrawList API)](#q-how-can-i-display-custom-shapes-using-low-level-imdrawlist-api) | -| **Q&A: Fonts, Text** | -| [How should I handle DPI in my application?](#q-how-should-i-handle-dpi-in-my-application) | -| [How can I load a different font than the default?](#q-how-can-i-load-a-different-font-than-the-default) | -| [How can I easily use icons in my application?](#q-how-can-i-easily-use-icons-in-my-application) | -| [How can I load multiple fonts?](#q-how-can-i-load-multiple-fonts) | -| [How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic?](#q-how-can-i-display-and-input-non-latin-characters-such-as-chinese-japanese-korean-cyrillic) | -| **Q&A: Concerns** | -| [Who uses Dear ImGui?](#q-who-uses-dear-imgui) | -| [Can you create elaborate/serious tools with Dear ImGui?](#q-can-you-create-elaborateserious-tools-with-dear-imgui) | -| [Can you reskin the look of Dear ImGui?](#q-can-you-reskin-the-look-of-dear-imgui) | -| [Why using C++ (as opposed to C)?](#q-why-using-c-as-opposed-to-c) | -| **Q&A: Community** | -| [How can I help?](#q-how-can-i-help) | - - -# Q&A: Basics - -### Q: Where is the documentation? - -**This library is poorly documented at the moment and expects of the user to be acquainted with C/C++.** -- The [Wiki](https://github.com/ocornut/imgui/wiki) is a hub to many resources and links. -- Dozens of standalone example applications using e.g. OpenGL/DirectX are provided in the [examples/](https://github.com/ocornut/imgui/blob/master/examples/) folder to explain how to integrate Dear ImGui with your own engine/application. You can run those applications and explore them. -- See demo code in [imgui_demo.cpp](https://github.com/ocornut/imgui/blob/master/imgui_demo.cpp) and particularly the `ImGui::ShowDemoWindow()` function. The demo covers most features of Dear ImGui, so you can read the code and see its output. -- See documentation: [Backends](https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md), [Examples](https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md), [Fonts](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md). -- See documentation and comments at the top of [imgui.cpp](https://github.com/ocornut/imgui/blob/master/imgui.cpp) + general API comments in [imgui.h](https://github.com/ocornut/imgui/blob/master/imgui.h). -- The [Glossary](https://github.com/ocornut/imgui/wiki/Glossary) page may be useful. -- The [Issues](https://github.com/ocornut/imgui/issues) and [Discussions](https://github.com/ocornut/imgui/discussions) sections can be searched for past questions and issues. -- Your programming IDE is your friend, find the type or function declaration to find comments associated to it. -- The `ImGui::ShowMetricsWindow()` function exposes lots of internal information and tools. Although it is primary designed as a debugging tool, having access to that information tends to help understands concepts. - -##### [Return to Index](#index) - ---- - -### Q. What is this library called? - -**This library is called Dear ImGui**. Please refer to it as Dear ImGui (not ImGui, not IMGUI). - -(The library misleadingly started its life in 2014 as "ImGui" due to the fact that I didn't give it a proper name when when I released 1.0, and had no particular expectation that it would take off. However, the term IMGUI (immediate-mode graphical user interface) was coined before and is being used in variety of other situations e.g. Unity uses it own implementation of the IMGUI paradigm. To reduce the ambiguity without affecting existing code bases, I have decided in December 2015 a fully qualified name "Dear ImGui" for this library. - -##### [Return to Index](#index) - ---- - -### Q: Which version should I get? -I occasionally tag [Releases](https://github.com/ocornut/imgui/releases) but it is generally safe and recommended to sync to master/latest. The library is fairly stable and regressions tend to be fixed fast when reported. - -You may use the [docking](https://github.com/ocornut/imgui/tree/docking) branch which includes: -- [Docking features](https://github.com/ocornut/imgui/issues/2109) -- [Multi-viewport features](https://github.com/ocornut/imgui/issues/1542) - -Many projects are using this branch and it is kept in sync with master regularly. - -You may merge in the [tables](https://github.com/ocornut/imgui/tree/tables) branch which includes: -- [Table features](https://github.com/ocornut/imgui/issues/2957) - -##### [Return to Index](#index) - ----- - -# Q&A: Integration - -### Q: How to get started? - -Read [EXAMPLES.md](https://github.com/ocornut/imgui/blob/master/docs/EXAMPLES.md).
-Read [BACKENDS.md](https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md).
-Read `PROGRAMMER GUIDE` section of [imgui.cpp](https://github.com/ocornut/imgui/blob/master/imgui.cpp).
-The [Wiki](https://github.com/ocornut/imgui/wiki) is a hub to many resources and links. - -##### [Return to Index](#index) - ---- - -### Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or to my application? - -You can read the `io.WantCaptureMouse`, `io.WantCaptureKeyboard` and `io.WantTextInput` flags from the ImGuiIO structure. -- When `io.WantCaptureMouse` is set, you need to discard/hide the mouse inputs from your underlying application. -- When `io.WantCaptureKeyboard` is set, you need to discard/hide the keyboard inputs from your underlying application. -- When `io.WantTextInput` is set, you can notify your OS/engine to popup an on-screen keyboard, if available (e.g. on a mobile phone, or console OS). - -Important: you should always pass your mouse/keyboard inputs to Dear ImGui, regardless of the value `io.WantCaptureMouse`/`io.WantCaptureKeyboard`. This is because e.g. we need to detect that you clicked in the void to unfocus its own windows, and other reasons. - -```cpp -void MyLowLevelMouseButtonHandler(int button, bool down) -{ - // (1) ALWAYS forward mouse data to ImGui! This is automatic with default backends. With your own backend: - ImGuiIO& io = ImGui::GetIO(); - io.MouseDown[button] = down; - - // (2) ONLY forward mouse data to your underlying app/game. - if (!io.WantCaptureMouse) - my_game->HandleMouseData(...); -} -``` - - -**Note:** The `io.WantCaptureMouse` is more correct that any manual attempt to "check if the mouse is hovering a window" (don't do that!). It handle mouse dragging correctly (both dragging that started over your application or over a Dear ImGui window) and handle e.g. popup and modal windows blocking inputs. - -**Note:** Those flags are updated by `ImGui::NewFrame()`. However it is generally more correct and easier that you poll flags from the previous frame, then submit your inputs, then call `NewFrame()`. If you attempt to do the opposite (which is generally harder) you are likely going to submit your inputs after `NewFrame()`, and therefore too late. - -**Note:** If you are using a touch device, you may find use for an early call to `UpdateHoveredWindowAndCaptureFlags()` to correctly dispatch your initial touch. We will work on better out-of-the-box touch support in the future. - -**Note:** Text input widget releases focus on the "KeyDown" event of the Return key, so the subsequent "KeyUp" event that your application receive will typically have `io.WantCaptureKeyboard == false`. Depending on your application logic it may or not be inconvenient to receive that KeyUp event. You might want to track which key-downs were targeted for Dear ImGui, e.g. with an array of bool, and filter out the corresponding key-ups.) - -##### [Return to Index](#index) - ---- - -### Q: How can I enable keyboard or gamepad controls? -- The gamepad/keyboard navigation is fairly functional and keeps being improved. The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. Gamepad support is particularly useful to use Dear ImGui on a game console (e.g. PS4, Switch, XB1) without a mouse connected! -- Keyboard: set `io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard` to enable. -- Gamepad: set `io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad` to enable (with a supporting backend). -- See [Control Sheets for Gamepads](http://www.dearimgui.org/controls_sheets) (reference PNG/PSD for for PS4, XB1, Switch gamepads). -- See `USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS` section of [imgui.cpp](https://github.com/ocornut/imgui/blob/master/imgui.cpp) for more details. - -##### [Return to Index](#index) - ---- - -### Q: How can I use this on a machine without mouse, keyboard or screen? (input share, remote display) -- You can share your computer mouse seamlessly with your console/tablet/phone using solutions such as [Synergy](https://symless.com/synergy) -This is the preferred solution for developer productivity. -In particular, the [micro-synergy-client repository](https://github.com/symless/micro-synergy-client) has simple -and portable source code (uSynergy.c/.h) for a small embeddable client that you can use on any platform to connect -to your host computer, based on the Synergy 1.x protocol. Make sure you download the Synergy 1 server on your computer. -Console SDK also sometimes provide equivalent tooling or wrapper for Synergy-like protocols. -- Game console users: consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. -- You may also use a third party solution such as [netImgui](https://github.com/sammyfreg/netImgui), [Remote ImGui](https://github.com/JordiRos/remoteimgui) or [imgui-ws](https://github.com/ggerganov/imgui-ws) which sends the vertices to render over the local network, allowing you to use Dear ImGui even on a screen-less machine. See [Wiki](https://github.com/ocornut/imgui/wiki) index for most details. -- For touch inputs, you can increase the hit box of widgets (via the `style.TouchPadding` setting) to accommodate for the lack of precision of touch inputs, but it is recommended you use a mouse or gamepad to allow optimizing for screen real-estate and precision. - -##### [Return to Index](#index) - ---- - -### Q: I integrated Dear ImGui in my engine and little squares are showing instead of text.. -This usually means that: your font texture wasn't uploaded into GPU, or your shader or other rendering state are not reading from the right texture (e.g. texture wasn't bound). -If this happens using the standard backends it is probably that the texture failed to upload, which could happens if for some reason your texture is too big. Also see [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md). - -##### [Return to Index](#index) - ---- - -### Q: I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around.. -### Q: I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries.. -You are probably mishandling the clipping rectangles in your render function. -Each draw command needs the triangle rendered using the clipping rectangle provided in the ImDrawCmd structure (`ImDrawCmd->CllipRect`). -Rectangles provided by Dear ImGui are defined as -`(x1=left,y1=top,x2=right,y2=bottom)` -and **NOT** as -`(x1,y1,width,height)` -Refer to rendering backends in the [examples/](https://github.com/ocornut/imgui/tree/master/examples) folder for references of how to handle the `ClipRect` field. - -##### [Return to Index](#index) - ---- - -# Q&A: Usage - -### Q: Why is my widget not reacting when I click on it? -### Q: How can I have widgets with an empty label? -### Q: How can I have multiple widgets with the same label? - -A primer on labels and the ID Stack... - -Dear ImGui internally need to uniquely identify UI elements. -Elements that are typically not clickable (such as calls to the Text functions) don't need an ID. -Interactive widgets (such as calls to Button buttons) need a unique ID. -Unique ID are used internally to track active widgets and occasionally associate state to widgets. -Unique ID are implicitly built from the hash of multiple elements that identify the "path" to the UI element. - -- Unique ID are often derived from a string label and at minimum scoped within their host window: -```cpp -Begin("MyWindow"); -Button("OK"); // Label = "OK", ID = hash of ("MyWindow", "OK") -Button("Cancel"); // Label = "Cancel", ID = hash of ("MyWindow", "Cancel") -End(); -``` -- Other elements such as tree nodes, etc. also pushes to the ID stack: -```cpp -Begin("MyWindow"); -if (TreeNode("MyTreeNode")) -{ - Button("OK"); // Label = "OK", ID = hash of ("MyWindow", "MyTreeNode", "OK") - TreePop(); -} -End(); -``` -- Two items labeled "OK" in different windows or different tree locations won't collide: -```cpp -Begin("MyFirstWindow"); -Button("OK"); // Label = "OK", ID = hash of ("MyFirstWindow", "OK") -End(); -Begin("MyOtherWindow"); -Button("OK"); // Label = "OK", ID = hash of ("MyOtherWindow", "OK") -End(); -``` - -- If you have a same ID twice in the same location, you'll have a conflict: -```cpp -Button("OK"); -Button("OK"); // ID collision! Interacting with either button will trigger the first one. -``` -Fear not! this is easy to solve and there are many ways to solve it! - -- Solving ID conflict in a simple/local context: -When passing a label you can optionally specify extra ID information within string itself. -Use "##" to pass a complement to the ID that won't be visible to the end-user. -This helps solving the simple collision cases when you know e.g. at compilation time which items -are going to be created: -```cpp -Begin("MyWindow"); -Button("Play"); // Label = "Play", ID = hash of ("MyWindow", "Play") -Button("Play##foo1"); // Label = "Play", ID = hash of ("MyWindow", "Play##foo1") // Different from above -Button("Play##foo2"); // Label = "Play", ID = hash of ("MyWindow", "Play##foo2") // Different from above -End(); -``` -- If you want to completely hide the label, but still need an ID: -```cpp -Checkbox("##On", &b); // Label = "", ID = hash of (..., "##On") // No visible label, just a checkbox! -``` -- Occasionally/rarely you might want change a label while preserving a constant ID. This allows -you to animate labels. For example you may want to include varying information in a window title bar, -but windows are uniquely identified by their ID. Use "###" to pass a label that isn't part of ID: -```cpp -Button("Hello###ID"); // Label = "Hello", ID = hash of (..., "###ID") -Button("World###ID"); // Label = "World", ID = hash of (..., "###ID") // Same ID, different label - -sprintf(buf, "My game (%f FPS)###MyGame", fps); -Begin(buf); // Variable title, ID = hash of "MyGame" -``` -- Solving ID conflict in a more general manner: -Use PushID() / PopID() to create scopes and manipulate the ID stack, as to avoid ID conflicts -within the same window. This is the most convenient way of distinguishing ID when iterating and -creating many UI elements programmatically. -You can push a pointer, a string or an integer value into the ID stack. -Remember that ID are formed from the concatenation of _everything_ pushed into the ID stack. -At each level of the stack we store the seed used for items at this level of the ID stack. -```cpp -Begin("Window"); -for (int i = 0; i < 100; i++) -{ - PushID(i); // Push i to the id tack - Button("Click"); // Label = "Click", ID = hash of ("Window", i, "Click") - PopID(); -} -for (int i = 0; i < 100; i++) -{ - MyObject* obj = Objects[i]; - PushID(obj); - Button("Click"); // Label = "Click", ID = hash of ("Window", obj pointer, "Click") - PopID(); -} -for (int i = 0; i < 100; i++) -{ - MyObject* obj = Objects[i]; - PushID(obj->Name); - Button("Click"); // Label = "Click", ID = hash of ("Window", obj->Name, "Click") - PopID(); -} -End(); -``` -- You can stack multiple prefixes into the ID stack: -```cpp -Button("Click"); // Label = "Click", ID = hash of (..., "Click") -PushID("node"); - Button("Click"); // Label = "Click", ID = hash of (..., "node", "Click") - PushID(my_ptr); - Button("Click"); // Label = "Click", ID = hash of (..., "node", my_ptr, "Click") - PopID(); -PopID(); -``` -- Tree nodes implicitly creates a scope for you by calling PushID(). -```cpp -Button("Click"); // Label = "Click", ID = hash of (..., "Click") -if (TreeNode("node")) // <-- this function call will do a PushID() for you (unless instructed not to, with a special flag) -{ - Button("Click"); // Label = "Click", ID = hash of (..., "node", "Click") - TreePop(); -} -``` - -When working with trees, ID are used to preserve the open/close state of each tree node. -Depending on your use cases you may want to use strings, indices or pointers as ID. -- e.g. when following a single pointer that may change over time, using a static string as ID -will preserve your node open/closed state when the targeted object change. -- e.g. when displaying a list of objects, using indices or pointers as ID will preserve the -node open/closed state differently. See what makes more sense in your situation! - -##### [Return to Index](#index) - ---- - -### Q: How can I display an image? What is ImTextureID, how does it work? - -Short explanation: -- Refer to [Image Loading and Displaying Examples](https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples) on the [Wiki](https://github.com/ocornut/imgui/wiki). -- You may use functions such as `ImGui::Image()`, `ImGui::ImageButton()` or lower-level `ImDrawList::AddImage()` to emit draw calls that will use your own textures. -- Actual textures are identified in a way that is up to the user/engine. Those identifiers are stored and passed as ImTextureID (void*) value. -- Loading image files from the disk and turning them into a texture is not within the scope of Dear ImGui (for a good reason). - -**Please read documentations or tutorials on your graphics API to understand how to display textures on the screen before moving onward.** - -Long explanation: -- Dear ImGui's job is to create "meshes", defined in a renderer-agnostic format made of draw commands and vertices. At the end of the frame those meshes (ImDrawList) will be displayed by your rendering function. They are made up of textured polygons and the code to render them is generally fairly short (a few dozen lines). In the examples/ folder we provide functions for popular graphics API (OpenGL, DirectX, etc.). -- Each rendering function decides on a data type to represent "textures". The concept of what is a "texture" is entirely tied to your underlying engine/graphics API. - We carry the information to identify a "texture" in the ImTextureID type. -ImTextureID is nothing more that a void*, aka 4/8 bytes worth of data: just enough to store 1 pointer or 1 integer of your choice. -Dear ImGui doesn't know or understand what you are storing in ImTextureID, it merely pass ImTextureID values until they reach your rendering function. -- In the [examples/](https://github.com/ocornut/imgui/tree/master/examples) backends, for each graphics API we decided on a type that is likely to be a good representation for specifying an image from the end-user perspective. This is what the _examples_ rendering functions are using: -```cpp -OpenGL: -- ImTextureID = GLuint -- See ImGui_ImplOpenGL3_RenderDrawData() function in imgui_impl_opengl3.cpp -``` -```cpp -DirectX9: -- ImTextureID = LPDIRECT3DTEXTURE9 -- See ImGui_ImplDX9_RenderDrawData() function in imgui_impl_dx9.cpp -``` -```cpp -DirectX11: -- ImTextureID = ID3D11ShaderResourceView* -- See ImGui_ImplDX11_RenderDrawData() function in imgui_impl_dx11.cpp -``` -```cpp -DirectX12: -- ImTextureID = D3D12_GPU_DESCRIPTOR_HANDLE -- See ImGui_ImplDX12_RenderDrawData() function in imgui_impl_dx12.cpp -``` -For example, in the OpenGL example backend we store raw OpenGL texture identifier (GLuint) inside ImTextureID. -Whereas in the DirectX11 example backend we store a pointer to ID3D11ShaderResourceView inside ImTextureID, which is a higher-level structure tying together both the texture and information about its format and how to read it. - -- If you have a custom engine built over e.g. OpenGL, instead of passing GLuint around you may decide to use a high-level data type to carry information about the texture as well as how to display it (shaders, etc.). The decision of what to use as ImTextureID can always be made better knowing how your codebase is designed. If your engine has high-level data types for "textures" and "material" then you may want to use them. -If you are starting with OpenGL or DirectX or Vulkan and haven't built much of a rendering engine over them, keeping the default ImTextureID representation suggested by the example backends is probably the best choice. -(Advanced users may also decide to keep a low-level type in ImTextureID, and use ImDrawList callback and pass information to their renderer) - -User code may do: -```cpp -// Cast our texture type to ImTextureID / void* -MyTexture* texture = g_CoffeeTableTexture; -ImGui::Image((void*)texture, ImVec2(texture->Width, texture->Height)); -``` -The renderer function called after ImGui::Render() will receive that same value that the user code passed: -```cpp -// Cast ImTextureID / void* stored in the draw command as our texture type -MyTexture* texture = (MyTexture*)pcmd->TextureId; -MyEngineBindTexture2D(texture); -``` -Once you understand this design you will understand that loading image files and turning them into displayable textures is not within the scope of Dear ImGui. -This is by design and is actually a good thing, because it means your code has full control over your data types and how you display them. -If you want to display an image file (e.g. PNG file) into the screen, please refer to documentation and tutorials for the graphics API you are using. - -Refer to [Image Loading and Displaying Examples](https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples) on the [Wiki](https://github.com/ocornut/imgui/wiki) to find simplified examples for loading textures with OpenGL, DirectX9 and DirectX11. - -C/C++ tip: a void* is pointer-sized storage. You may safely store any pointer or integer into it by casting your value to ImTextureID / void*, and vice-versa. -Because both end-points (user code and rendering function) are under your control, you know exactly what is stored inside the ImTextureID / void*. -Examples: -```cpp -GLuint my_tex = XXX; -void* my_void_ptr; -my_void_ptr = (void*)(intptr_t)my_tex; // cast a GLuint into a void* (we don't take its address! we literally store the value inside the pointer) -my_tex = (GLuint)(intptr_t)my_void_ptr; // cast a void* into a GLuint - -ID3D11ShaderResourceView* my_dx11_srv = XXX; -void* my_void_ptr; -my_void_ptr = (void*)my_dx11_srv; // cast a ID3D11ShaderResourceView* into an opaque void* -my_dx11_srv = (ID3D11ShaderResourceView*)my_void_ptr; // cast a void* into a ID3D11ShaderResourceView* -``` -Finally, you may call `ImGui::ShowMetricsWindow()` to explore/visualize/understand how the ImDrawList are generated. - -##### [Return to Index](#index) - ---- - -### Q: How can I use my own math types instead of ImVec2/ImVec4? - -You can edit [imconfig.h](https://github.com/ocornut/imgui/blob/master/imconfig.h) and setup the `IM_VEC2_CLASS_EXTRA`/`IM_VEC4_CLASS_EXTRA` macros to add implicit type conversions. -This way you'll be able to use your own types everywhere, e.g. passing `MyVector2` or `glm::vec2` to ImGui functions instead of `ImVec2`. - -##### [Return to Index](#index) - ---- - -### Q: How can I interact with standard C++ types (such as std::string and std::vector)? -- Being highly portable (backends/bindings for several languages, frameworks, programming style, obscure or older platforms/compilers), and aiming for compatibility & performance suitable for every modern real-time game engines, dear imgui does not use any of std C++ types. We use raw types (e.g. char* instead of std::string) because they adapt to more use cases. -- To use ImGui::InputText() with a std::string or any resizable string class, see [misc/cpp/imgui_stdlib.h](https://github.com/ocornut/imgui/blob/master/misc/cpp/imgui_stdlib.h). -- To use combo boxes and list boxes with `std::vector` or any other data structure: the `BeginCombo()/EndCombo()` API -lets you iterate and submit items yourself, so does the `ListBoxHeader()/ListBoxFooter()` API. -Prefer using them over the old and awkward `Combo()/ListBox()` api. -- Generally for most high-level types you should be able to access the underlying data type. -You may write your own one-liner wrappers to facilitate user code (tip: add new functions in ImGui:: namespace from your code). -- Dear ImGui applications often need to make intensive use of strings. It is expected that many of the strings you will pass -to the API are raw literals (free in C/C++) or allocated in a manner that won't incur a large cost on your application. -Please bear in mind that using `std::string` on applications with large amount of UI may incur unsatisfactory performances. -Modern implementations of `std::string` often include small-string optimization (which is often a local buffer) but those -are not configurable and not the same across implementations. -- If you are finding your UI traversal cost to be too large, make sure your string usage is not leading to excessive amount -of heap allocations. Consider using literals, statically sized buffers and your own helper functions. A common pattern -is that you will need to build lots of strings on the fly, and their maximum length can be easily be scoped ahead. -One possible implementation of a helper to facilitate printf-style building of strings: https://github.com/ocornut/Str -This is a small helper where you can instance strings with configurable local buffers length. Many game engines will -provide similar or better string helpers. - -##### [Return to Index](#index) - ---- - -### Q: How can I display custom shapes? (using low-level ImDrawList API) - -- You can use the low-level `ImDrawList` api to render shapes within a window. -```cpp -ImGui::Begin("My shapes"); - -ImDrawList* draw_list = ImGui::GetWindowDrawList(); - -// Get the current ImGui cursor position -ImVec2 p = ImGui::GetCursorScreenPos(); - -// Draw a red circle -draw_list->AddCircleFilled(ImVec2(p.x + 50, p.y + 50), 30.0f, IM_COL32(255, 0, 0, 255), 16); - -// Draw a 3 pixel thick yellow line -draw_list->AddLine(ImVec2(p.x, p.y), ImVec2(p.x + 100.0f, p.y + 100.0f), IM_COL32(255, 255, 0, 255), 3.0f); - -// Advance the ImGui cursor to claim space in the window (otherwise the window will appears small and needs to be resized) -ImGui::Dummy(ImVec2(200, 200)); - -ImGui::End(); -``` -![ImDrawList usage](https://raw.githubusercontent.com/wiki/ocornut/imgui/tutorials/CustomRendering01.png) - -- Refer to "Demo > Examples > Custom Rendering" in the demo window and read the code of `ShowExampleAppCustomRendering()` in `imgui_demo.cpp` from more examples. -- To generate colors: you can use the macro `IM_COL32(255,255,255,255)` to generate them at compile time, or use `ImGui::GetColorU32(IM_COL32(255,255,255,255))` or `ImGui::GetColorU32(ImVec4(1.0f,1.0f,1.0f,1.0f))` to generate a color that is multiplied by the current value of `style.Alpha`. -- Math operators: if you have setup `IM_VEC2_CLASS_EXTRA` in `imconfig.h` to bind your own math types, you can use your own math types and their natural operators instead of ImVec2. ImVec2 by default doesn't export any math operators in the public API. You may use `#define IMGUI_DEFINE_MATH_OPERATORS` `#include "imgui_internal.h"` to use the internally defined math operators, but instead prefer using your own math library and set it up in `imconfig.h`. -- You can use `ImGui::GetBackgroundDrawList()` or `ImGui::GetForegroundDrawList()` to access draw lists which will be displayed behind and over every other dear imgui windows (one bg/fg drawlist per viewport). This is very convenient if you need to quickly display something on the screen that is not associated to a dear imgui window. -- You can also create your own empty window and draw inside it. Call Begin() with the NoBackground | NoDecoration | NoSavedSettings | NoInputs flags (The `ImGuiWindowFlags_NoDecoration` flag itself is a shortcut for NoTitleBar | NoResize | NoScrollbar | NoCollapse). Then you can retrieve the ImDrawList* via `GetWindowDrawList()` and draw to it in any way you like. -`- You can create your own ImDrawList instance. You'll need to initialize them with `ImGui::GetDrawListSharedData()`, or create your own instancing ImDrawListSharedData`, and then call your renderer function with your own ImDrawList or ImDrawData data. -- Looking for fun? The [ImDrawList coding party 2020](https://github.com/ocornut/imgui/issues/3606) thread is full of "don't do this at home" extreme uses of the ImDrawList API. - -##### [Return to Index](#index) - ---- - -# Q&A: Fonts, Text - -### Q: How should I handle DPI in my application? - -The short answer is: obtain the desired DPI scale, load your fonts resized with that scale (always round down fonts size to nearest integer), and scale your Style structure accordingly using `style.ScaleAllSizes()`. - -Your application may want to detect DPI change and reload the fonts and reset style between frames. - -Your ui code should avoid using hardcoded constants for size and positioning. Prefer to express values as multiple of reference values such as `ImGui::GetFontSize()` or `ImGui::GetFrameHeight()`. So e.g. instead of seeing a hardcoded height of 500 for a given item/window, you may want to use `30*ImGui::GetFontSize()` instead. - -Down the line Dear ImGui will provide a variety of standardized reference values to facilitate using this. - -Applications in the `examples/` folder are not DPI aware partly because they are unable to load a custom font from the file-system (may change that in the future). - -The reason DPI is not auto-magically solved in stock examples is that we don't yet have a satisfying solution for the "multi-dpi" problem (using the `docking` branch: when multiple viewport windows are over multiple monitors using different DPI scale). The current way to handle this on the application side is: -- Create and maintain one font atlas per active DPI scale (e.g. by iterating `platform_io.Monitors[]` before `NewFrame()`). -- Hook `platform_io.OnChangedViewport()` to detect when a `Begin()` call makes a Dear ImGui window change monitor (and therefore DPI). -- In the hook: swap atlas, swap style with correctly sized one, remap the current font from one atlas to the other (may need to maintain a remapping table of your fonts at variying DPI scale). - -This approach is relatively easy and functional but come with two issues: -- It's not possibly to reliably size or position a window ahead of `Begin()` without knowing on which monitor it'll land. -- Style override may be lost during the `Begin()` call crossing monitor boundaries. You may need to do some custom scaling mumbo-jumbo if you want your `OnChangedViewport()` handler to preserve style overrides. - -Please note that if you are not using multi-viewports with multi-monitors using different DPI scale, you can ignore all of this and use the simpler technique recommended at the top. - -### Q: How can I load a different font than the default? -Use the font atlas to load the TTF/OTF file you want: - -```cpp -ImGuiIO& io = ImGui::GetIO(); -io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels); -io.Fonts->GetTexDataAsRGBA32() or GetTexDataAsAlpha8() -``` - -Default is ProggyClean.ttf, monospace, rendered at size 13, embedded in dear imgui's source code. - -(Tip: monospace fonts are convenient because they allow to facilitate horizontal alignment directly at the string level.) - -(Read the [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md) file for more details about font loading.) - -New programmers: remember that in C/C++ and most programming languages if you want to use a -backslash \ within a string literal, you need to write it double backslash "\\": - -```cpp -io.Fonts->AddFontFromFileTTF("MyFolder\MyFont.ttf", size); // WRONG (you are escaping the M here!) -io.Fonts->AddFontFromFileTTF("MyFolder\\MyFont.ttf", size; // CORRECT (Windows only) -io.Fonts->AddFontFromFileTTF("MyFolder/MyFont.ttf", size); // ALSO CORRECT -``` - -##### [Return to Index](#index) - ---- - -### Q: How can I easily use icons in my application? -The most convenient and practical way is to merge an icon font such as FontAwesome inside you -main font. Then you can refer to icons within your strings. -You may want to see `ImFontConfig::GlyphMinAdvanceX` to make your icon look monospace to facilitate alignment. -(Read the [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md) file for more details about icons font loading.) -With some extra effort, you may use colorful icon by registering custom rectangle space inside the font atlas, -and copying your own graphics data into it. See docs/FONTS.md about using the AddCustomRectFontGlyph API. - -##### [Return to Index](#index) - ---- - -### Q: How can I load multiple fonts? -Use the font atlas to pack them into a single texture: -(Read the [docs/FONTS.md](https://github.com/ocornut/imgui/blob/master/docs/FONTS.md) file and the code in ImFontAtlas for more details.) - -```cpp -ImGuiIO& io = ImGui::GetIO(); -ImFont* font0 = io.Fonts->AddFontDefault(); -ImFont* font1 = io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels); -ImFont* font2 = io.Fonts->AddFontFromFileTTF("myfontfile2.ttf", size_in_pixels); -io.Fonts->GetTexDataAsRGBA32() or GetTexDataAsAlpha8() -// the first loaded font gets used by default -// use ImGui::PushFont()/ImGui::PopFont() to change the font at runtime - -// Options -ImFontConfig config; -config.OversampleH = 2; -config.OversampleV = 1; -config.GlyphOffset.y -= 1.0f; // Move everything by 1 pixels up -config.GlyphExtraSpacing.x = 1.0f; // Increase spacing between characters -io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_pixels, &config); - -// Combine multiple fonts into one (e.g. for icon fonts) -static ImWchar ranges[] = { 0xf000, 0xf3ff, 0 }; -ImFontConfig config; -config.MergeMode = true; -io.Fonts->AddFontDefault(); -io.Fonts->AddFontFromFileTTF("fontawesome-webfont.ttf", 16.0f, &config, ranges); // Merge icon font -io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_pixels, NULL, &config, io.Fonts->GetGlyphRangesJapanese()); // Merge japanese glyphs -``` - -##### [Return to Index](#index) - ---- - -### Q: How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic? -When loading a font, pass custom Unicode ranges to specify the glyphs to load. - -```cpp -// Add default Japanese ranges -io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels, NULL, io.Fonts->GetGlyphRangesJapanese()); - -// Or create your own custom ranges (e.g. for a game you can feed your entire game script and only build the characters the game need) -ImVector ranges; -ImFontGlyphRangesBuilder builder; -builder.AddText("Hello world"); // Add a string (here "Hello world" contains 7 unique characters) -builder.AddChar(0x7262); // Add a specific character -builder.AddRanges(io.Fonts->GetGlyphRangesJapanese()); // Add one of the default ranges -builder.BuildRanges(&ranges); // Build the final result (ordered ranges with all the unique characters submitted) -io.Fonts->AddFontFromFileTTF("myfontfile.ttf", 16.0f, NULL, ranges.Data); -``` - -All your strings needs to use UTF-8 encoding. In C++11 you can encode a string literal in UTF-8 -by using the u8"hello" syntax. Specifying literal in your source code using a local code page -(such as CP-923 for Japanese or CP-1251 for Cyrillic) will NOT work! -Otherwise you can convert yourself to UTF-8 or load text data from file already saved as UTF-8. - -Text input: it is up to your application to pass the right character code by calling `io.AddInputCharacter()`. -The applications in examples/ are doing that. -Windows: you can use the WM_CHAR or WM_UNICHAR or WM_IME_CHAR message (depending if your app is built using Unicode or MultiByte mode). -You may also use MultiByteToWideChar() or ToUnicode() to retrieve Unicode codepoints from MultiByte characters or keyboard state. -Windows: if your language is relying on an Input Method Editor (IME), you copy the HWND of your window to io.ImeWindowHandle in order for -the default implementation of io.ImeSetInputScreenPosFn() to set your Microsoft IME position correctly. - -##### [Return to Index](#index) - ---- - -# Q&A: Concerns - -### Q: Who uses Dear ImGui? - -You may take a look at: - -- [Quotes](https://github.com/ocornut/imgui/wiki/Quotes) -- [Software using Dear ImGui](https://github.com/ocornut/imgui/wiki/Software-using-dear-imgui) -- [Sponsors](https://github.com/ocornut/imgui/wiki/Sponsors) -- [Gallery](https://github.com/ocornut/imgui/issues/3488) - -##### [Return to Index](#index) - ---- - -### Q: Can you create elaborate/serious tools with Dear ImGui? - -Yes. People have written game editors, data browsers, debuggers, profilers and all sort of non-trivial tools with the library. In my experience the simplicity of the API is very empowering. Your UI runs close to your live data. Make the tools always-on and everybody in the team will be inclined to create new tools (as opposed to more "offline" UI toolkits where only a fraction of your team effectively creates tools). The list of sponsors below is also an indicator that serious game teams have been using the library. - -Dear ImGui is very programmer centric and the immediate-mode GUI paradigm might require you to readjust some habits before you can realize its full potential. Dear ImGui is about making things that are simple, efficient and powerful. - -Dear ImGui is built to be efficient and scalable toward the needs for AAA-quality applications running all day. The IMGUI paradigm offers different opportunities for optimization that the more typical RMGUI paradigm. - -##### [Return to Index](#index) - ---- - -### Q: Can you reskin the look of Dear ImGui? - -Somehow. You can alter the look of the interface to some degree: changing colors, sizes, padding, rounding, fonts. However, as Dear ImGui is designed and optimized to create debug tools, the amount of skinning you can apply is limited. There is only so much you can stray away from the default look and feel of the interface. Dear ImGui is NOT designed to create user interface for games, although with ingenious use of the low-level API you can do it. - -A reasonably skinned application may look like (screenshot from [#2529](https://github.com/ocornut/imgui/issues/2529#issuecomment-524281119)) -![minipars](https://user-images.githubusercontent.com/314805/63589441-d9794f00-c5b1-11e9-8d96-cfc1b93702f7.png) - -##### [Return to Index](#index) - ---- - -### Q: Why using C++ (as opposed to C)? - -Dear ImGui takes advantage of a few C++ languages features for convenience but nothing anywhere Boost insanity/quagmire. Dear ImGui does NOT require C++11 so it can be used with most old C++ compilers. Dear ImGui doesn't use any C++ header file. Language-wise, function overloading and default parameters are used to make the API easier to use and code more terse. Doing so I believe the API is sitting on a sweet spot and giving up on those features would make the API more cumbersome. Other features such as namespace, constructors and templates (in the case of the ImVector<> class) are also relied on as a convenience. - -There is an auto-generated [c-api for Dear ImGui (cimgui)](https://github.com/cimgui/cimgui) by Sonoro1234 and Stephan Dilly. It is designed for creating bindings to other languages. If possible, I would suggest using your target language functionalities to try replicating the function overloading and default parameters used in C++ else the API may be harder to use. Also see [Bindings](https://github.com/ocornut/imgui/wiki/Bindings) for various third-party bindings. - -##### [Return to Index](#index) - ---- - -# Q&A: Community - -### Q: How can I help? -- Businesses: please reach out to `contact AT dearimgui.com` if you work in a place using Dear ImGui! We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts. This is among the most useful thing you can do for Dear ImGui. With increased funding we can hire more people working on this project. -- Individuals: you can support continued maintenance and development via PayPal donations. See [README](https://github.com/ocornut/imgui/blob/master/docs/README.md). -- If you are experienced with Dear ImGui and C++, look at [GitHub Issues](https://github.com/ocornut/imgui/issues), [GitHub Discussions](https://github.com/ocornut/imgui/discussions), the [Wiki](https://github.com/ocornut/imgui/wiki), read [docs/TODO.txt](https://github.com/ocornut/imgui/blob/master/docs/TODO.txt) and see how you want to help and can help! -- Disclose your usage of Dear ImGui via a dev blog post, a tweet, a screenshot, a mention somewhere etc. -You may post screenshot or links in the [gallery threads](https://github.com/ocornut/imgui/issues/3488). Visuals are ideal as they inspire other programmers. Disclosing your use of dear imgui help the library grow credibility, and help other teams and programmers with taking decisions. -- If you have issues or if you need to hack into the library, even if you don't expect any support it is useful that you share your issues or sometimes incomplete PR. - -##### [Return to Index](#index) - diff --git a/third_party/imgui/docs/FONTS.md b/third_party/imgui/docs/FONTS.md deleted file mode 100644 index 2aa651d9..00000000 --- a/third_party/imgui/docs/FONTS.md +++ /dev/null @@ -1,374 +0,0 @@ -_(You may browse this at https://github.com/ocornut/imgui/blob/master/docs/FONTS.md or view this file with any Markdown viewer)_ - -## Dear ImGui: Using Fonts - -The code in imgui.cpp embeds a copy of 'ProggyClean.ttf' (by Tristan Grimmer), -a 13 pixels high, pixel-perfect font used by default. We embed it in the source code so you can use Dear ImGui without any file system access. ProggyClean does not scale smoothly, therefore it is recommended that you load your own file when using Dear ImGui in an application aiming to look nice and wanting to support multiple resolutions. - -You may also load external .TTF/.OTF files. -In the [misc/fonts/](https://github.com/ocornut/imgui/tree/master/misc/fonts) folder you can find a few suggested fonts, provided as a convenience. - -**Also read the FAQ:** https://www.dearimgui.org/faq (there is a Fonts section!) - -## Index -- [Readme First](#readme-first) -- [How should I handle DPI in my application?](#how-should-i-handle-dpi-in-my-application) -- [Fonts Loading Instructions](#font-loading-instructions) -- [Using Icons](#using-icons) -- [Using FreeType Rasterizer](#using-freetype-rasterizer) -- [Using Custom Glyph Ranges](#using-custom-glyph-ranges) -- [Using Custom Colorful Icons](#using-custom-colorful-icons) -- [Using Font Data Embedded In Source Code](#using-font-data-embedded-in-source-code) -- [About filenames](#about-filenames) -- [Credits/Licenses For Fonts Included In Repository](#creditslicenses-for-fonts-included-in-repository) -- [Font Links](#font-links) - ---------------------------------------- - ## Readme First - -- All loaded fonts glyphs are rendered into a single texture atlas ahead of time. Calling either of `io.Fonts->GetTexDataAsAlpha8()`, `io.Fonts->GetTexDataAsRGBA32()` or `io.Fonts->Build()` will build the atlas. - -- You can use the style editor `ImGui::ShowStyleEditor()` in the "Fonts" section to browse your fonts and understand what's going on if you have an issue. You can also reach it in `Demo->Tools->Style Editor->Fonts`: - -![imgui_capture_0008](https://user-images.githubusercontent.com/8225057/84162822-1a731f00-aa71-11ea-9b6b-89c2332aa161.png) - -- Make sure your font ranges data are persistent (available during the calls to `GetTexDataAsAlpha8()`/`GetTexDataAsRGBA32()/`Build()`. - -- Use C++11 u8"my text" syntax to encode literal strings as UTF-8. e.g.: -```cpp -u8"hello" -u8"こんにちは" // this will be encoded as UTF-8 -``` - -##### [Return to Index](#index) - -## How should I handle DPI in my application? - -See [FAQ entry](https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-how-should-i-handle-dpi-in-my-application). - -##### [Return to Index](#index) - - -## Font Loading Instructions - -**Load default font:** -```cpp -ImGuiIO& io = ImGui::GetIO(); -io.Fonts->AddFontDefault(); -``` - - -**Load .TTF/.OTF file with:** -```cpp -ImGuiIO& io = ImGui::GetIO(); -io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels); -``` -If you get an assert stating "Could not load font file!", your font filename is likely incorrect. Read "[About filenames](#about-filenames)" carefully. - - -**Load multiple fonts:** -```cpp -// Init -ImGuiIO& io = ImGui::GetIO(); -ImFont* font1 = io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels); -ImFont* font2 = io.Fonts->AddFontFromFileTTF("anotherfont.otf", size_pixels); -``` -```cpp -// In application loop: select font at runtime -ImGui::Text("Hello"); // use the default font (which is the first loaded font) -ImGui::PushFont(font2); -ImGui::Text("Hello with another font"); -ImGui::PopFont(); -``` - - -**For advanced options create a ImFontConfig structure and pass it to the AddFont() function (it will be copied internally):** -```cpp -ImFontConfig config; -config.OversampleH = 2; -config.OversampleV = 1; -config.GlyphExtraSpacing.x = 1.0f; -ImFont* font = io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, &config); -``` - - -**Combine multiple fonts into one:** -```cpp -// Load a first font -ImFont* font = io.Fonts->AddFontDefault(); - -// Add character ranges and merge into the previous font -// The ranges array is not copied by the AddFont* functions and is used lazily -// so ensure it is available at the time of building or calling GetTexDataAsRGBA32(). -static const ImWchar icons_ranges[] = { 0xf000, 0xf3ff, 0 }; // Will not be copied by AddFont* so keep in scope. -ImFontConfig config; -config.MergeMode = true; -io.Fonts->AddFontFromFileTTF("DroidSans.ttf", 18.0f, &config, io.Fonts->GetGlyphRangesJapanese()); // Merge into first font -io.Fonts->AddFontFromFileTTF("fontawesome-webfont.ttf", 18.0f, &config, icons_ranges); // Merge into first font -io.Fonts->Build(); -``` - -**Add a fourth parameter to bake specific font ranges only:** - -```cpp -// Basic Latin, Extended Latin -io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, NULL, io.Fonts->GetGlyphRangesDefault()); - -// Default + Selection of 2500 Ideographs used by Simplified Chinese -io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, NULL, io.Fonts->GetGlyphRangesChineseSimplifiedCommon()); - -// Default + Hiragana, Katakana, Half-Width, Selection of 1946 Ideographs -io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels, NULL, io.Fonts->GetGlyphRangesJapanese()); -``` -See [Using Custom Glyph Ranges](#using-custom-glyph-ranges) section to create your own ranges. - - -**Example loading and using a Japanese font:** - -```cpp -ImGuiIO& io = ImGui::GetIO(); -io.Fonts->AddFontFromFileTTF("NotoSansCJKjp-Medium.otf", 20.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); -``` -```cpp -ImGui::Text(u8"こんにちは!テスト %d", 123); -if (ImGui::Button(u8"ロード")) -{ - // do stuff -} -ImGui::InputText("string", buf, IM_ARRAYSIZE(buf)); -ImGui::SliderFloat("float", &f, 0.0f, 1.0f); -``` - -![sample code output](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v160/code_sample_02_jp.png) -
_(settings: Dark style (left), Light style (right) / Font: NotoSansCJKjp-Medium, 20px / Rounding: 5)_ - -**Font Atlas too large?** - -- If you have very large number of glyphs or multiple fonts, the texture may become too big for your graphics API. The typical result of failing to upload a texture is if every glyphs appears as white rectangles. -- Mind the fact that some graphics drivers have texture size limitation. If you are building a PC application, mind the fact that your users may use hardware with lower limitations than yours. - -Some solutions: - -1. Reduce glyphs ranges by calculating them from source localization data. - You can use the `ImFontGlyphRangesBuilder` for this purpose and rebuilding your atlas between frames when new characters are needed. This will be the biggest win! -2. You may reduce oversampling, e.g. `font_config.OversampleH = 2`, this will largely reduce your texture size. - Note that while OversampleH = 2 looks visibly very close to 3 in most situations, with OversampleH = 1 the quality drop will be noticeable. -3. Set `io.Fonts.TexDesiredWidth` to specify a texture width to minimize texture height (see comment in `ImFontAtlas::Build()` function). -4. Set `io.Fonts.Flags |= ImFontAtlasFlags_NoPowerOfTwoHeight;` to disable rounding the texture height to the next power of two. -5. Read about oversampling [here](https://github.com/nothings/stb/blob/master/tests/oversample). -6. To support the extended range of unicode beyond 0xFFFF (e.g. emoticons, dingbats, symbols, shapes, ancient languages, etc...) add `#define IMGUI_USE_WCHAR32`in your `imconfig.h`. - -##### [Return to Index](#index) - -## Using Icons - -Using an icon font (such as [FontAwesome](http://fontawesome.io) or [OpenFontIcons](https://github.com/traverseda/OpenFontIcons)) is an easy and practical way to use icons in your Dear ImGui application. -A common pattern is to merge the icon font within your main font, so you can embed icons directly from your strings without having to change fonts back and forth. - -To refer to the icon UTF-8 codepoints from your C++ code, you may use those headers files created by Juliette Foucaut: https://github.com/juliettef/IconFontCppHeaders. - -So you can use `ICON_FA_SEARCH` as a string that will render as a "Search" icon. - -Example Setup: -```cpp -// Merge icons into default tool font -#include "IconsFontAwesome.h" -ImGuiIO& io = ImGui::GetIO(); -io.Fonts->AddFontDefault(); - -ImFontConfig config; -config.MergeMode = true; -config.GlyphMinAdvanceX = 13.0f; // Use if you want to make the icon monospaced -static const ImWchar icon_ranges[] = { ICON_MIN_FA, ICON_MAX_FA, 0 }; -io.Fonts->AddFontFromFileTTF("fonts/fontawesome-webfont.ttf", 13.0f, &config, icon_ranges); -``` -Example Usage: -```cpp -// Usage, e.g. -ImGui::Text("%s among %d items", ICON_FA_SEARCH, count); -ImGui::Button(ICON_FA_SEARCH " Search"); -// C string _literals_ can be concatenated at compilation time, e.g. "hello" " world" -// ICON_FA_SEARCH is defined as a string literal so this is the same as "A" "B" becoming "AB" -``` -See Links below for other icons fonts and related tools. - -Here's an application using icons ("Avoyd", https://www.avoyd.com): -![avoyd](https://user-images.githubusercontent.com/8225057/81696852-c15d9e80-9464-11ea-9cab-2a4d4fc84396.jpg) - -##### [Return to Index](#index) - -## Using FreeType Rasterizer - -- Dear ImGui uses imstb\_truetype.h to rasterize fonts (with optional oversampling). This technique and its implementation are not ideal for fonts rendered at small sizes, which may appear a little blurry or hard to read. -- There is an implementation of the ImFontAtlas builder using FreeType that you can use in the [misc/freetype/](https://github.com/ocornut/imgui/tree/master/misc/freetype) folder. -- FreeType supports auto-hinting which tends to improve the readability of small fonts. -- Read documentation in the [misc/freetype/](https://github.com/ocornut/imgui/tree/master/misc/freetype) folder. -- Correct sRGB space blending will have an important effect on your font rendering quality. - -##### [Return to Index](#index) - -## Using Custom Glyph Ranges - -You can use the `ImFontGlyphRangesBuilder` helper to create glyph ranges based on text input. For example: for a game where your script is known, if you can feed your entire script to it and only build the characters the game needs. -```cpp -ImVector ranges; -ImFontGlyphRangesBuilder builder; -builder.AddText("Hello world"); // Add a string (here "Hello world" contains 7 unique characters) -builder.AddChar(0x7262); // Add a specific character -builder.AddRanges(io.Fonts->GetGlyphRangesJapanese()); // Add one of the default ranges -builder.BuildRanges(&ranges); // Build the final result (ordered ranges with all the unique characters submitted) - -io.Fonts->AddFontFromFileTTF("myfontfile.ttf", size_in_pixels, NULL, ranges.Data); -io.Fonts->Build(); // Build the atlas while 'ranges' is still in scope and not deleted. -``` - -##### [Return to Index](#index) - -## Using Custom Colorful Icons - -**(This is a BETA api, use if you are familiar with dear imgui and with your rendering backend)** - -- You can use the `ImFontAtlas::AddCustomRect()` and `ImFontAtlas::AddCustomRectFontGlyph()` api to register rectangles that will be packed into the font atlas texture. Register them before building the atlas, then call Build()`. -- You can then use `ImFontAtlas::GetCustomRectByIndex(int)` to query the position/size of your rectangle within the texture, and blit/copy any graphics data of your choice into those rectangles. -- This API is beta because it is likely to change in order to support multi-dpi (multiple viewports on multiple monitors with varying DPI scale). - -#### Pseudo-code: -```cpp -// Add font, then register two custom 13x13 rectangles mapped to glyph 'a' and 'b' of this font -ImFont* font = io.Fonts->AddFontDefault(); -int rect_ids[2]; -rect_ids[0] = io.Fonts->AddCustomRectFontGlyph(font, 'a', 13, 13, 13+1); -rect_ids[1] = io.Fonts->AddCustomRectFontGlyph(font, 'b', 13, 13, 13+1); - -// Build atlas -io.Fonts->Build(); - -// Retrieve texture in RGBA format -unsigned char* tex_pixels = NULL; -int tex_width, tex_height; -io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_width, &tex_height); - -for (int rect_n = 0; rect_n < IM_ARRAYSIZE(rect_ids); rect_n++) -{ - int rect_id = rects_ids[rect_n]; - if (const ImFontAtlas::CustomRect* rect = io.Fonts->GetCustomRectByIndex(rect_id)) - { - // Fill the custom rectangle with red pixels (in reality you would draw/copy your bitmap data here!) - for (int y = 0; y < rect->Height; y++) - { - ImU32* p = (ImU32*)tex_pixels + (rect->Y + y) * tex_width + (rect->X); - for (int x = rect->Width; x > 0; x--) - *p++ = IM_COL32(255, 0, 0, 255); - } - } -} -``` - -##### [Return to Index](#index) - -## Using Font Data Embedded In Source Code - -- Compile and use [binary_to_compressed_c.cpp](https://github.com/ocornut/imgui/blob/master/misc/fonts/binary_to_compressed_c.cpp) to create a compressed C style array that you can embed in source code. -- See the documentation in [binary_to_compressed_c.cpp](https://github.com/ocornut/imgui/blob/master/misc/fonts/binary_to_compressed_c.cpp) for instruction on how to use the tool. -- You may find a precompiled version binary_to_compressed_c.exe for Windows instead of demo binaries package (see [README](https://github.com/ocornut/imgui/blob/master/docs/README.md)). -- The tool can optionally output Base85 encoding to reduce the size of _source code_ but the read-only arrays in the actual binary will be about 20% bigger. - -Then load the font with: -```cpp -ImFont* font = io.Fonts->AddFontFromMemoryCompressedTTF(compressed_data, compressed_data_size, size_pixels, ...); -``` -or -```cpp -ImFont* font = io.Fonts->AddFontFromMemoryCompressedBase85TTF(compressed_data_base85, size_pixels, ...); -``` - -##### [Return to Index](#index) - -## About filenames - -**Please note that many new C/C++ users have issues their files _because the filename they provide is wrong_.** - -Two things to watch for: -- Make sure your IDE/debugger settings starts your executable from the right working directory. In Visual Studio you can change your working directory in project `Properties > General > Debugging > Working Directory`. People assume that their execution will start from the root folder of the project, where by default it oftens start from the folder where object or executable files are stored. -```cpp -// Relative filename depends on your Working Directory when running your program! -io.Fonts->AddFontFromFileTTF("MyImage01.jpg", ...); - -// Load from the parent folder of your Working Directory -io.Fonts->AddFontFromFileTTF("../MyImage01.jpg", ...); -``` -- In C/C++ and most programming languages if you want to use a backslash `\` within a string literal, you need to write it double backslash `\\`. At it happens, Windows uses backslashes as a path separator, so be mindful. -```cpp -io.Fonts->AddFontFromFileTTF("MyFiles\MyImage01.jpg", ...); // This is INCORRECT!! -io.Fonts->AddFontFromFileTTF("MyFiles\\MyImage01.jpg", ...); // This is CORRECT -``` -In some situations, you may also use `/` path separator under Windows. - -##### [Return to Index](#index) - -## Credits/Licenses For Fonts Included In Repository - -Some fonts files are available in the `misc/fonts/` folder: - -**Roboto-Medium.ttf**, by Christian Robetson -
Apache License 2.0 -
https://fonts.google.com/specimen/Roboto - -**Cousine-Regular.ttf**, by Steve Matteson -
Digitized data copyright (c) 2010 Google Corporation. -
Licensed under the SIL Open Font License, Version 1.1 -
https://fonts.google.com/specimen/Cousine - -**DroidSans.ttf**, by Steve Matteson -
Apache License 2.0 -
https://www.fontsquirrel.com/fonts/droid-sans - -**ProggyClean.ttf**, by Tristan Grimmer -
MIT License -
(recommended loading setting: Size = 13.0, GlyphOffset.y = +1) -
http://www.proggyfonts.net/ - -**ProggyTiny.ttf**, by Tristan Grimmer -
MIT License -
(recommended loading setting: Size = 10.0, GlyphOffset.y = +1) -
http://www.proggyfonts.net/ - -**Karla-Regular.ttf**, by Jonathan Pinhorn -
SIL OPEN FONT LICENSE Version 1.1 - -##### [Return to Index](#index) - -## Font Links - -#### ICON FONTS - -- C/C++ header for icon fonts (#define with code points to use in source code string literals) https://github.com/juliettef/IconFontCppHeaders -- FontAwesome https://fortawesome.github.io/Font-Awesome -- OpenFontIcons https://github.com/traverseda/OpenFontIcons -- Google Icon Fonts https://design.google.com/icons/ -- Kenney Icon Font (Game Controller Icons) https://github.com/nicodinh/kenney-icon-font -- IcoMoon - Custom Icon font builder https://icomoon.io/app - -#### REGULAR FONTS - -- Google Noto Fonts (worldwide languages) https://www.google.com/get/noto/ -- Open Sans Fonts https://fonts.google.com/specimen/Open+Sans -- (Japanese) M+ fonts by Coji Morishita http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/index-en.html - -#### MONOSPACE FONTS - -Pixel Perfect: -- Proggy Fonts, by Tristan Grimmer http://www.proggyfonts.net or http://upperbounds.net -- Sweet16, Sweet16 Mono, by Martin Sedlak (Latin + Supplemental + Extended A) https://github.com/kmar/Sweet16Font (also include an .inl file to use directly in dear imgui.) - -Regular: -- Google Noto Mono Fonts https://www.google.com/get/noto/ -- Typefaces for source code beautification https://github.com/chrissimpkins/codeface -- Programmation fonts http://s9w.github.io/font_compare/ -- Inconsolata http://www.levien.com/type/myfonts/inconsolata.html -- Adobe Source Code Pro: Monospaced font family for ui & coding environments https://github.com/adobe-fonts/source-code-pro -- Monospace/Fixed Width Programmer's Fonts http://www.lowing.org/fonts/ - -Or use Arial Unicode or other Unicode fonts provided with Windows for full characters coverage (not sure of their licensing). - -##### [Return to Index](#index) diff --git a/third_party/imgui/docs/README.md b/third_party/imgui/docs/README.md deleted file mode 100644 index e47a235a..00000000 --- a/third_party/imgui/docs/README.md +++ /dev/null @@ -1,233 +0,0 @@ -Dear ImGui -===== -[![Build Status](https://github.com/ocornut/imgui/workflows/build/badge.svg)](https://github.com/ocornut/imgui/actions?workflow=build) [![Static Analysis Status](https://github.com/ocornut/imgui/workflows/static-analysis/badge.svg)](https://github.com/ocornut/imgui/actions?workflow=static-analysis) - - -(This library is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added. If your company is using Dear ImGui, please consider reaching out.) - -Businesses: support continued development and maintenance via invoiced technical support, maintenance, sponsoring contracts: -
  _E-mail: contact @ dearimgui dot com_ - -Individuals: support continued development and maintenance [here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WGHNC6MBFLZ2S). - -Also see [Sponsors](https://github.com/ocornut/imgui/wiki/Sponsors) page. - ----- - -Dear ImGui is a **bloat-free graphical user interface library for C++**. It outputs optimized vertex buffers that you can render anytime in your 3D-pipeline enabled application. It is fast, portable, renderer agnostic and self-contained (no external dependencies). - -Dear ImGui is designed to **enable fast iterations** and to **empower programmers** to create **content creation tools and visualization / debug tools** (as opposed to UI for the average end-user). It favors simplicity and productivity toward this goal, and lacks certain features normally found in more high-level libraries. - -Dear ImGui is particularly suited to integration in games engine (for tooling), real-time 3D applications, fullscreen applications, embedded applications, or any applications on consoles platforms where operating system features are non-standard. - -| [Usage](#usage) - [How it works](#how-it-works) - [Releases & Changelogs](#releases--changelogs) - [Demo](#demo) - [Integration](#integration) | -:----------------------------------------------------------: | -| [Upcoming changes](#upcoming-changes) - [Gallery](#gallery) - [Support, FAQ](#support-frequently-asked-questions-faq) - [How to help](#how-to-help) - [Sponsors](#sponsors) - [Credits](#credits) - [License](#license) | -| [Wiki](https://github.com/ocornut/imgui/wiki) - [Languages & frameworks backends/bindings](https://github.com/ocornut/imgui/wiki/Bindings) - [Software using Dear ImGui](https://github.com/ocornut/imgui/wiki/Software-using-dear-imgui) - [User quotes](https://github.com/ocornut/imgui/wiki/Quotes) | - -### Usage - -**The core of Dear ImGui is self-contained within a few platform-agnostic files** which you can easily compile in your application/engine. They are all the files in the root folder of the repository (imgui.cpp, imgui.h, imgui_demo.cpp, imgui_draw.cpp etc.). - -**No specific build process is required**. You can add the .cpp files to your existing project. - -You will need a backend to integrate Dear ImGui in your app. The backend passes mouse/keyboard/gamepad inputs and variety of settings to Dear ImGui, and is in charge of rendering the resulting vertices. - -**Backends for a variety of graphics api and rendering platforms** are provided in the [backends/](https://github.com/ocornut/imgui/tree/master/backends) folder, along with example applications in the [examples/](https://github.com/ocornut/imgui/tree/master/examples) folder. See the [Integration](#integration) section of this document for details. You may also create your own backend. Anywhere where you can render textured triangles, you can render Dear ImGui. - -After Dear ImGui is setup in your application, you can use it from \_anywhere\_ in your program loop: - -Code: -```cpp -ImGui::Text("Hello, world %d", 123); -if (ImGui::Button("Save")) - MySaveFunction(); -ImGui::InputText("string", buf, IM_ARRAYSIZE(buf)); -ImGui::SliderFloat("float", &f, 0.0f, 1.0f); -``` -Result: -
![sample code output (dark)](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v175/capture_readme_styles_0001.png) ![sample code output (light)](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v175/capture_readme_styles_0002.png) -
_(settings: Dark style (left), Light style (right) / Font: Roboto-Medium, 16px)_ - -Code: -```cpp -// Create a window called "My First Tool", with a menu bar. -ImGui::Begin("My First Tool", &my_tool_active, ImGuiWindowFlags_MenuBar); -if (ImGui::BeginMenuBar()) -{ - if (ImGui::BeginMenu("File")) - { - if (ImGui::MenuItem("Open..", "Ctrl+O")) { /* Do stuff */ } - if (ImGui::MenuItem("Save", "Ctrl+S")) { /* Do stuff */ } - if (ImGui::MenuItem("Close", "Ctrl+W")) { my_tool_active = false; } - ImGui::EndMenu(); - } - ImGui::EndMenuBar(); -} - -// Edit a color (stored as ~4 floats) -ImGui::ColorEdit4("Color", my_color); - -// Plot some values -const float my_values[] = { 0.2f, 0.1f, 1.0f, 0.5f, 0.9f, 2.2f }; -ImGui::PlotLines("Frame Times", my_values, IM_ARRAYSIZE(my_values)); - -// Display contents in a scrolling region -ImGui::TextColored(ImVec4(1,1,0,1), "Important Stuff"); -ImGui::BeginChild("Scrolling"); -for (int n = 0; n < 50; n++) - ImGui::Text("%04d: Some text", n); -ImGui::EndChild(); -ImGui::End(); -``` -Result: -
![sample code output](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v180/code_sample_04_color.gif) - -Dear ImGui allows you to **create elaborate tools** as well as very short-lived ones. On the extreme side of short-livedness: using the Edit&Continue (hot code reload) feature of modern compilers you can add a few widgets to tweaks variables while your application is running, and remove the code a minute later! Dear ImGui is not just for tweaking values. You can use it to trace a running algorithm by just emitting text commands. You can use it along with your own reflection data to browse your dataset live. You can use it to expose the internals of a subsystem in your engine, to create a logger, an inspection tool, a profiler, a debugger, an entire game making editor/framework, etc. - -### How it works - -Check out the Wiki's [About the IMGUI paradigm](https://github.com/ocornut/imgui/wiki#about-the-imgui-paradigm) section if you want to understand the core principles behind the IMGUI paradigm. An IMGUI tries to minimize superfluous state duplication, state synchronization and state retention from the user's point of view. It is less error prone (less code and less bugs) than traditional retained-mode interfaces, and lends itself to create dynamic user interfaces. - -Dear ImGui outputs vertex buffers and command lists that you can easily render in your application. The number of draw calls and state changes required to render them is fairly small. Because Dear ImGui doesn't know or touch graphics state directly, you can call its functions anywhere in your code (e.g. in the middle of a running algorithm, or in the middle of your own rendering process). Refer to the sample applications in the examples/ folder for instructions on how to integrate Dear ImGui with your existing codebase. - -_A common misunderstanding is to mistake immediate mode gui for immediate mode rendering, which usually implies hammering your driver/GPU with a bunch of inefficient draw calls and state changes as the gui functions are called. This is NOT what Dear ImGui does. Dear ImGui outputs vertex buffers and a small list of draw calls batches. It never touches your GPU directly. The draw call batches are decently optimal and you can render them later, in your app or even remotely._ - -### Releases & Changelogs - -See [Releases](https://github.com/ocornut/imgui/releases) page. -Reading the changelogs is a good way to keep up to date with the things Dear ImGui has to offer, and maybe will give you ideas of some features that you've been ignoring until now! - -### Demo - -Calling the `ImGui::ShowDemoWindow()` function will create a demo window showcasing variety of features and examples. The code is always available for reference in `imgui_demo.cpp`. - -![screenshot demo](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v167/v167-misc.png) - -You should be able to build the examples from sources (tested on Windows/Mac/Linux). If you don't, let us know! If you want to have a quick look at some Dear ImGui features, you can download Windows binaries of the demo app here: -- [imgui-demo-binaries-20200918.zip](https://www.dearimgui.org/binaries/imgui-demo-binaries-20200918.zip) (Windows, 1.78 WIP, built 2020/09/18, master branch) or [older demo binaries](https://www.dearimgui.org/binaries). - -The demo applications are not DPI aware so expect some blurriness on a 4K screen. For DPI awareness in your application, you can load/reload your font at different scale, and scale your style with `style.ScaleAllSizes()` (see [FAQ](https://www.dearimgui.org/faq)). - -### Integration - -On most platforms and when using C++, **you should be able to use a combination of the [imgui_impl_xxxx](https://github.com/ocornut/imgui/tree/master/backends) backends without modification** (e.g. `imgui_impl_win32.cpp` + `imgui_impl_dx11.cpp`). If your engine supports multiple platforms, consider using more of the imgui_impl_xxxx files instead of rewriting them: this will be less work for you and you can get Dear ImGui running immediately. You can _later_ decide to rewrite a custom backend using your custom engine functions if you wish so. - -Integrating Dear ImGui within your custom engine is a matter of 1) wiring mouse/keyboard/gamepad inputs 2) uploading one texture to your GPU/render engine 3) providing a render function that can bind textures and render textured triangles. The [examples/](https://github.com/ocornut/imgui/tree/master/examples) folder is populated with applications doing just that. If you are an experienced programmer at ease with those concepts, it should take you less than two hours to integrate Dear ImGui in your custom engine. **Make sure to spend time reading the [FAQ](https://www.dearimgui.org/faq), comments, and some of the examples/ application!** - -Officially maintained backends/bindings (in repository): -- Renderers: DirectX9, DirectX10, DirectX11, DirectX12, Metal, OpenGL/ES/ES2, Vulkan, WebGPU. -- Platforms: GLFW, SDL2, Win32, Glut, OSX, Android. -- Frameworks: Emscripten, Allegro5, Marmalade. - -[Third-party backends/bindings](https://github.com/ocornut/imgui/wiki/Bindings) wiki page: -- Languages: C, C# and: Beef, ChaiScript, Crystal, D, Go, Haskell, Haxe/hxcpp, Java, JavaScript, Julia, Kotlin, Lobster, Lua, Odin, Pascal, PureBasic, Python, Ruby, Rust, Swift... -- Frameworks: AGS/Adventure Game Studio, Amethyst, Blender, bsf, Cinder, Cocos2d-x, Diligent Engine, Flexium, GML/Game Maker Studio2, GLEQ, Godot, GTK3+OpenGL3, Irrlicht Engine, LÖVE+LUA, Magnum, Monogame, NanoRT, nCine, Nim Game Lib, Nintendo 3DS & Switch (homebrew), Ogre, openFrameworks, OSG/OpenSceneGraph, Orx, Photoshop, px_render, Qt/QtDirect3D, SDL_Renderer, SFML, Sokol, Unity, Unreal Engine 4, vtk, VulkanHpp, VulkanSceneGraph, Win32 GDI, WxWidgets. -- Note that C bindings ([cimgui](https://github.com/cimgui/cimgui)) are auto-generated, you can use its json/lua output to generate bindings for other languages. - -[Useful widgets and extensions](https://github.com/ocornut/imgui/wiki/Useful-Widgets) wiki page: -- Text editors, node editors, timeline editors, plotting, software renderers, remote network access, memory editors, gizmos etc. - -Also see [Wiki](https://github.com/ocornut/imgui/wiki) for more links and ideas. - -### Upcoming Changes - -Some of the goals for 2021 are: -- Work on Docking (see [#2109](https://github.com/ocornut/imgui/issues/2109), in public [docking](https://github.com/ocornut/imgui/tree/docking) branch) -- Work on Multi-Viewport / Multiple OS windows. (see [#1542](https://github.com/ocornut/imgui/issues/1542), in public [docking](https://github.com/ocornut/imgui/tree/docking) branch looking for feedback) -- Work on gamepad/keyboard controls. (see [#787](https://github.com/ocornut/imgui/issues/787)) -- Work on automation and testing system, both to test the library and end-user apps. (see [#435](https://github.com/ocornut/imgui/issues/435)) -- Make the examples look better, improve styles, improve font support, make the examples hi-DPI and multi-DPI aware. - -### Gallery - -For more user-submitted screenshots of projects using Dear ImGui, check out the [Gallery Threads](https://github.com/ocornut/imgui/issues/3488)! - -For a list of third-party widgets and extensions, check out the [Useful Widgets](https://github.com/ocornut/imgui/wiki/Useful-Widgets) wiki page. - -Custom engine -[![screenshot game](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v149/gallery_TheDragonsTrap-01-thumb.jpg)](https://cloud.githubusercontent.com/assets/8225057/20628927/33e14cac-b329-11e6-80f6-9524e93b048a.png) - -Custom engine -[![screenshot tool](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v160/editor_white_preview.jpg)](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v160/editor_white.png) - -[Tracy Profiler](https://github.com/wolfpld/tracy) -![tracy profiler](https://raw.githubusercontent.com/wiki/ocornut/imgui/web/v176/tracy_profiler.png) - -### Support, Frequently Asked Questions (FAQ) - -See: [Frequently Asked Questions (FAQ)](https://github.com/ocornut/imgui/blob/master/docs/FAQ.md) where common questions are answered. - -See: [Wiki](https://github.com/ocornut/imgui/wiki) for many links, references, articles. - -See: [Articles about the IMGUI paradigm](https://github.com/ocornut/imgui/wiki#about-the-imgui-paradigm) to read/learn about the Immediate Mode GUI paradigm. - -For questions, bug reports, requests, feedback, you may post on [GitHub Issues](https://github.com/ocornut/imgui/issues) or [GitHub Discussions](https://github.com/ocornut/imgui/discussions). Please read and fill the New Issue template carefully. - -Private support is available for paying business customers (E-mail: _contact @ dearimgui dot com_). - -**Which version should I get?** - -We occasionally tag [Releases](https://github.com/ocornut/imgui/releases) but it is generally safe and recommended to sync to master/latest. The library is fairly stable and regressions tend to be fixed fast when reported. - -Advanced users may want to use the `docking` branch with [Multi-Viewport](https://github.com/ocornut/imgui/issues/1542) and [Docking](https://github.com/ocornut/imgui/issues/2109) features. This branch is kept in sync with master regularly. - -**Who uses Dear ImGui?** - -See the [Quotes](https://github.com/ocornut/imgui/wiki/Quotes), [Sponsors](https://github.com/ocornut/imgui/wiki/Sponsors), [Software using dear imgui](https://github.com/ocornut/imgui/wiki/Software-using-dear-imgui) Wiki pages for an idea of who is using Dear ImGui. Please add your game/software if you can! Also see the [Gallery Threads](https://github.com/ocornut/imgui/issues/3488)! - -How to help ------------ - -**How can I help?** - -- See [GitHub Forum/issues](https://github.com/ocornut/imgui/issues) and [Github Discussions](https://github.com/ocornut/imgui/discussions). -- You may help with development and submit pull requests! Please understand that by submitting a PR you are also submitting a request for the maintainer to review your code and then take over its maintenance forever. PR should be crafted both in the interest in the end-users and also to ease the maintainer into understanding and accepting it. -- See [Help wanted](https://github.com/ocornut/imgui/wiki/Help-Wanted) on the [Wiki](https://github.com/ocornut/imgui/wiki/) for some more ideas. -- Have your company financially support this project (please reach by e-mail) - -**How can I help financing further development of Dear ImGui?** - -See [Sponsors](https://github.com/ocornut/imgui/wiki/Sponsors) page. - -Sponsors --------- - -Ongoing Dear ImGui development is currently financially supported by users and private sponsors: - -*Platinum-chocolate sponsors* -- [Blizzard](https://careers.blizzard.com/en-us/openings/engineering/all/all/all/1), [Google](https://github.com/google/filament), [Nvidia](https://developer.nvidia.com/nvidia-omniverse), [Ubisoft](https://montreal.ubisoft.com/en/ubisoft-sponsors-user-interface-library-for-c-dear-imgui/) - -*Double-chocolate and Salty caramel sponsors* -- [Activision](https://careers.activision.com/c/programmingsoftware-engineering-jobs), [Aras Pranckevičius](https://aras-p.info), [Arkane Studios](https://www.arkane-studios.com), [Framefield](http://framefield.com), [Grinding Gear Games](https://www.grindinggear.com), [Kylotonn](https://www.kylotonn.com), [Next Level Games](https://www.nextlevelgames.com), [RAD Game Tools](http://www.radgametools.com/), [Supercell](http://www.supercell.com) - -Please see [detailed list of Dear ImGui supporters](https://github.com/ocornut/imgui/wiki/Sponsors) for past sponsors. -From November 2014 to December 2019, ongoing development has also been financially supported by its users on Patreon and through individual donations. - -**THANK YOU to all past and present supporters for helping to keep this project alive and thriving!** - -Dear ImGui is using software and services provided free of charge for open source projects: -- [PVS-Studio](https://www.viva64.com/en/b/0570/) for static analysis. -- [GitHub actions](https://github.com/features/actions) for continuous integration systems. -- [OpenCppCoverage](https://github.com/OpenCppCoverage/OpenCppCoverage) for code coverage analysis. - -Credits -------- - -Developed by [Omar Cornut](http://www.miracleworld.net) and every direct or indirect [contributors](https://github.com/ocornut/imgui/graphs/contributors) to the GitHub. The early version of this library was developed with the support of [Media Molecule](http://www.mediamolecule.com) and first used internally on the game [Tearaway](http://tearaway.mediamolecule.com) (PS Vita). - -Recurring contributors (2020): Omar Cornut [@ocornut](https://github.com/ocornut), Rokas Kupstys [@rokups](https://github.com/rokups), Ben Carter [@ShironekoBen](https://github.com/ShironekoBen). -A large portion of work on automation systems, regression tests and other features are currently unpublished. - -Omar: "I first discovered the IMGUI paradigm at [Q-Games](http://www.q-games.com) where Atman Binstock had dropped his own simple implementation in the codebase, which I spent quite some time improving and thinking about. It turned out that Atman was exposed to the concept directly by working with Casey. When I moved to Media Molecule I rewrote a new library trying to overcome the flaws and limitations of the first one I've worked with. It became this library and since then I have spent an unreasonable amount of time iterating and improving it." - -Embeds [ProggyClean.ttf](http://upperbounds.net) font by Tristan Grimmer (MIT license). - -Embeds [stb_textedit.h, stb_truetype.h, stb_rect_pack.h](https://github.com/nothings/stb/) by Sean Barrett (public domain). - -Inspiration, feedback, and testing for early versions: Casey Muratori, Atman Binstock, Mikko Mononen, Emmanuel Briney, Stefan Kamoda, Anton Mikhailov, Matt Willis. Also thank you to everyone posting feedback, questions and patches on GitHub. - -License -------- - -Dear ImGui is licensed under the MIT License, see [LICENSE.txt](https://github.com/ocornut/imgui/blob/master/LICENSE.txt) for more information. diff --git a/third_party/imgui/docs/TODO.txt b/third_party/imgui/docs/TODO.txt deleted file mode 100644 index f964e3a1..00000000 --- a/third_party/imgui/docs/TODO.txt +++ /dev/null @@ -1,405 +0,0 @@ -dear imgui -ISSUES & TODO LIST - -Issue numbers (#) refer to github issues listed at https://github.com/ocornut/imgui/issues/XXXX -The list below consist mostly of ideas noted down before they are requested/discussed by users (at which point they usually exist on the github issue tracker). -It's mostly a bunch of personal notes, probably incomplete. Feel free to query if you have any questions. - - - doc/test: add a proper documentation+regression testing system (#435) - - doc/test: checklist app to verify backends/integration of imgui (test inputs, rendering, callback, etc.). - - doc/tips: tips of the day: website? applet in imgui_club? - - doc/wiki: work on the wiki https://github.com/ocornut/imgui/wiki - - - window: preserve/restore relative focus ordering (persistent or not) (#2304) -> also see docking reference to same #. - - window: calling SetNextWindowSize() every frame with <= 0 doesn't do anything, may be useful to allow (particularly when used for a single axis). (#690) - - window: add a way for very transient windows (non-saved, temporary overlay over hundreds of objects) to "clean" up from the global window list. perhaps a lightweight explicit cleanup pass. - - window: auto-fit feedback loop when user relies on any dynamic layout (window width multiplier, column) appears weird to end-user. clarify. - - window: begin with *p_open == false could return false. - - window: get size/pos helpers given names (see discussion in #249) - - window: a collapsed window can be stuck behind the main menu bar? - - window: when window is very small, prioritize resize button over close button. - - window: detect extra End() call that pop the "Debug" window out and assert at End() call site instead of at end of frame. - - window: increase minimum size of a window with menus or fix the menu rendering so that it doesn't look odd. - - window: double-clicking on title bar to minimize isn't consistent, perhaps move to single-click on left-most collapse icon? - - window: expose contents size. (#1045) - - window: using SetWindowPos() inside Begin() and moving the window with the mouse reacts a very ugly glitch. We should just defer the SetWindowPos() call. - - window: GetWindowSize() returns (0,0) when not calculated? (#1045) - - window: investigate better auto-positioning for new windows. - - window: top most window flag? (#2574) - - window/size: manually triggered auto-fit (double-click on grip) shouldn't resize window down to viewport size? - - window/size: how to allow to e.g. auto-size vertically to fit contents, but be horizontally resizable? Assuming SetNextWindowSize() is modified to treat -1.0f on each axis as "keep as-is" (would be good but might break erroneous code): Problem is UpdateWindowManualResize() and lots of code treat (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) together. - - window/opt: freeze window flag: if not focused/hovered, return false, render with previous ImDrawList. and/or reduce refresh rate. -> this may require enforcing that it is illegal to submit contents if Begin returns false. - - window/child: background options for child windows, border option (disable rounding). - - window/child: allow resizing of child windows (possibly given min/max for each axis?.) - - window/child: the first draw command of a child window could be moved into the current draw command of the parent window (unless child+tooltip?). - - window/child: border could be emitted in parent as well. - - window/child: allow SetNextWindowContentSize() to work on child windows. - - window/clipping: some form of clipping when DisplaySize (or corresponding viewport) is zero. - - window/tabbing: add a way to signify that a window or docked window requires attention (e.g. blinking title bar). - - window/id_stack: add e.g. window->GetIDFromPath() with support for leading / and ../ (#1390, #331) - ! scrolling: exposing horizontal scrolling with Shift+Wheel even when scrollbar is disabled expose lots of issues (#2424, #1463) - - scrolling: while holding down a scrollbar, try to keep the same contents visible (at least while not moving mouse) - - scrolling: allow immediately effective change of scroll after Begin() if we haven't appended items yet. - - scrolling: forward mouse wheel scrolling to parent window when at the edge of scrolling limits? (useful for listbox,tables?) - - scrolling/clipping: separator on the initial position of a window is not visible (cursorpos.y <= clippos.y). (2017-08-20: can't repro) - - scrolling/style: shadows on scrollable areas to denote that there is more contents (see e.g. DaVinci Resolve ui) - - - drawdata: make it easy to clone (or swap?) a full ImDrawData so user can easily save that data if they use threaded rendering. (e.g. #2646) - ! drawlist: add calctextsize func to facilitate consistent code from user pov (currently need to use ImGui or ImFont alternatives!) - - drawlist: end-user probably can't call Clear() directly because we expect a texture to be pushed in the stack. - - drawlist: maintaining bounding box per command would allow to merge draw command when clipping isn't relied on (typical non-scrolling window or non-overflowing column would merge with previous command). - - drawlist: primitives/helpers to manipulate vertices post submission, so e.g. a quad/rect can be resized to fit later submitted content, _without_ using the ChannelSplit api - - drawlist: make it easier to toggle AA per primitive, so we can use e.g. non-AA fill + AA borders more naturally - - drawlist: non-AA strokes have gaps between points (#593, #288), glitch especially on RenderCheckmark() and ColorPicker4(). - - drawlist: would be good to be able to deep copy of ImDrawData (we have a deep copy of ImDrawList now). - - drawlist: rendering: provide a way for imgui to output to a single/global vertex buffer, re-order indices only at the end of the frame (ref: https://gist.github.com/floooh/10388a0afbe08fce9e617d8aefa7d302) - - drawlist: callback: add an extra void* in ImDrawCallback to allow passing render-local data to the callback (would break API). - - drawlist: AddRect vs AddLine position confusing (#2441) - - drawlist: channel splitter should be external helper and not stored in ImDrawList. - - drawlist: Add quadratic bezier curves? (#3127) - - drawlist/opt: store rounded corners in texture to use 1 quad per corner (filled and wireframe) to lower the cost of rounding. (#1962) - - drawlist/opt: AddRect() axis aligned pixel aligned (no-aa) could use 8 triangles instead of 16 and no normal calculation. - - drawlist/opt: thick AA line could be doable in same number of triangles as 1.0 AA line by storing gradient+full color in atlas. - - - main: find a way to preserve relative orders of multiple reappearing windows (so an app toggling between "modes" e.g. fullscreen vs all tools) won't lose relative ordering. - - main: IsItemHovered() make it more consistent for various type of widgets, widgets with multiple components, etc. also effectively IsHovered() region sometimes differs from hot region, e.g tree nodes - - main: IsItemHovered() info stored in a stack? so that 'if TreeNode() { Text; TreePop; } if IsHovered' return the hover state of the TreeNode? - - - widgets: display mode: widget-label, label-widget (aligned on column or using fixed size), label-newline-tab-widget etc. (#395) - - widgets: clean up widgets internal toward exposing everything and stabilizing imgui_internals.h. - - widgets: add visuals for Disabled/ReadOnly mode and expose publicly (#211) - - widgets: add always-allow-overlap mode. This should perhaps be the default? one problem is that highlight after mouse-wheel scrolling gets deferred, makes scrolling more flickery. - - widgets: start exposing PushItemFlag() and ImGuiItemFlags - - widgets: alignment options in style (e.g. center Selectable, Right-Align within Button, etc.) #1260 - - widgets: activate by identifier (trigger button, focus given id) - - widgets: a way to represent "mixed" values, so e.g. all values replaced with *, including check-boxes, colors, etc. with support for multi-components widgets (e.g. SliderFloat3, make only "Y" mixed) (#2644) - - widgets: checkbox: checkbox with custom glyph inside frame. - - widgets: coloredit: keep reporting as active when picker is on? - - widgets: group/scalarn functions: expose more per-component information. e.g. store NextItemData.ComponentIdx set by scalarn function, groups can expose them back somehow. - - selectable: using (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. - - selectable: generic BeginSelectable()/EndSelectable() mechanism. - - selectable: a way to visualize partial/mixed selection (e.g. parent tree node has children with mixed selection) - - - input text: clean up the mess caused by converting UTF-8 <> wchar. the code is rather inefficient right now and super fragile. - - input text: preserve scrolling when unfocused? - - input text: reorganize event handling, allow CharFilter to modify buffers, allow multiple events? (#541) - - input text: expose CursorPos in char filter event (#816) - - input text: try usage idiom of using InputText with data only exposed through get/set accessors, without extraneous copy/alloc. (#3009) - - input text: access public fields via a non-callback API e.g. InputTextGetState("xxx") that may return NULL if not active. - - input text: flag to disable live update of the user buffer (also applies to float/int text input) (#701) - - input text: hover tooltip could show unclamped text - - input text: option to Tab after an Enter validation. - - input text: add ImGuiInputTextFlags_EnterToApply? (off #218) - - input text: easier ways to update buffer (from source char*) while owned. preserve some sort of cursor position for multi-line text. - - input text: add flag (e.g. ImGuiInputTextFlags_EscapeClearsBuffer) to clear instead of revert. what to do with focus? (also see #2890) - - input text: add discard flag (e.g. ImGuiInputTextFlags_DiscardActiveBuffer) or make it easier to clear active focus for text replacement during edition (#725) - - input text: display bug when clicking a drag/slider after an input text in a different window has all-selected text (order dependent). actually a very old bug but no one appears to have noticed it. - - input text: allow centering/positioning text so that ctrl+clicking Drag or Slider keeps the textual value at the same pixel position. - - input text: decorrelate layout from inputs - e.g. what's the easiest way to implement a nice IP/Mac address input editor? - - input text: global callback system so user can plug in an expression evaluator easily. (#1691) - - input text: force scroll to end or scroll to a given line/contents (so user can implement a log or a search feature) - - input text: a way to preview completion (e.g. disabled text completing from the cursor) - - input text: a side bar that could e.g. preview where errors are. probably left to the user to draw but we'd need to give them the info there. - - input text: a way for the user to provide syntax coloring. - - input text: Shift+TAB with ImGuiInputTextFlags_AllowTabInput could eat preceding blanks, up to tab_count. - - input text: facilitate patterns like if (InputText(..., obj.get_string_ref()) { obj.set_string(...); } relying on internally held buffer. - - input text multi-line: don't directly call AddText() which does an unnecessary vertex reserve for character count prior to clipping. and/or more line-based clipping to AddText(). and/or reorganize TextUnformatted/RenderText for more efficiency for large text (e.g TextUnformatted could clip and log separately, etc). - - input text multi-line: support for cut/paste without selection (cut/paste the current line) - - input text multi-line: line numbers? status bar? (follow up on #200) - - input text multi-line: behave better when user changes input buffer while editing is active (even though it is illegal behavior). namely, the change of buffer can create a scrollbar glitch (#725) - - input text multi-line: better horizontal scrolling support (#383, #1224) - - input text multi-line: single call to AddText() should be coarse clipped on InputTextEx() end. - - input number: optional range min/max for Input*() functions - - input number: holding [-]/[+] buttons could increase the step speed non-linearly (or user-controlled) - - input number: use mouse wheel to step up/down - - input number: applying arithmetics ops (+,-,*,/) messes up with text edit undo stack. - - - layout: helper or a way to express ImGui::SameLine(ImGui::GetCursorStartPos().x + ImGui::CalcItemWidth() + ImGui::GetStyle().ItemInnerSpacing.x); in a simpler manner. - - layout, font: horizontal tab support, A) text mode: forward only tabs (e.g. every 4 characters/N pixels from pos x1), B) manual mode: explicit tab stops acting as mini columns, no clipping (for menu items, many kind of uses, also vaguely relate to #267, #395) - - layout: horizontal layout helper (#97) - - layout: horizontal flow until no space left (#404) - - layout: more generic alignment state (left/right/centered) for single items? - - layout: clean up the InputFloatN/SliderFloatN/ColorEdit4 layout code. item width should include frame padding. - - layout: vertical alignment of mixed height items (e.g. buttons) within a same line (#1284) - - layout: null layout mode were items are not rendered but user can query GetItemRectMin()/Max/Size. - - layout: (R&D) local multi-pass layout mode. - - layout: (R&D) bind authored layout data (created by an off-line tool), items fetch their pos/size at submission, self-optimize data structures to stable linear access. - - - group: BeginGroup() needs a border option. (~#1496) - - group: IsHovered() after EndGroup() covers whole aabb rather than the intersection of individual items. Is that desirable? - - group: merge deactivation/activation within same group (fwd WasEdited flag). (#2550) - -!- color: the color conversion helpers/types are a mess and needs sorting out. - - color: (api breaking) ImGui::ColorConvertXXX functions should be loose ImColorConvertXX to match imgui_internals.h - - - plot: full featured plot/graph api w/ scrolling, zooming etc. all bell & whistle. why not! - - plot: PlotLines() should use the polygon-stroke facilities, less vertices (currently issues with averaging normals) - - plot: make it easier for user to draw extra stuff into the graph (e.g: draw basis, highlight certain points, 2d plots, multiple plots) - - plot: "smooth" automatic scale over time, user give an input 0.0(full user scale) 1.0(full derived from value) - - plot: option/feature: draw the zero line - - plot: option/feature: draw grid, vertical markers - - plot: option/feature: draw unit - - plot: add a helper e.g. Plot(char* label, float value, float time_span=2.0f) that stores values and Plot them for you - probably another function name. and/or automatically allow to plot ANY displayed value (more reliance on stable ID) - - - clipper: ability to force display 1 item in the list would be convenient (for patterns where we need to set active id etc.) - - clipper: ability to disable the clipping through a simple flag/bool. - - clipper: ability to run without knowing full count in advance. - - clipper: horizontal clipping support. (#2580) - - - separator: expose flags (#759) - - separator: take indent into consideration (optional) - - separator: width, thickness, centering (#1643) - - splitter: formalize the splitter idiom into an official api (we want to handle n-way split) (#319) - - - dock: merge docking branch (#2109) - - dock: dock out from a collapsing header? would work nicely but need emitting window to keep submitting the code. - - - tabs: "there is currently a problem because TabItem() will try to submit their own tooltip after 0.50 second, and this will have the effect of making your tooltip flicker once." -> tooltip priority work - - tabs: close button tends to overlap unsaved-document star - - tabs: consider showing the star at the same spot as the close button, like VS Code does. - - tabs: make EndTabBar fail if users doesn't respect BeginTabBar return value, for consistency/future-proofing. - - tabs: persistent order/focus in BeginTabBar() api (#261, #351) - - tabs: TabItem could honor SetNextItemWidth()? - - tabs: explicit api (even if internal) to cleanly manipulate tab order. - - tabs: Mouse wheel over tab bar could scroll? (#2702) - - - image/image button: misalignment on padded/bordered button? - - image/image button: parameters are confusing, image() has tint_col,border_col whereas imagebutton() has bg_col/tint_col. Even thou they are different parameters ordering could be more consistent. can we fix that? - - image button: not taking an explicit id can be problematic. (#2464, #1390) - - button: provide a button that looks framed. (?) - - slider/drag: ctrl+click when format doesn't include a % character.. disable? display underlying value in default format? (see TempInputTextScalar) - - slider: allow using the [-]/[+] buttons used by InputFloat()/InputInt() - - slider: initial absolute click is imprecise. change to relative movement slider (same as scrollbar). (#1946) - - slider: add dragging-based widgets to edit values with mouse (on 2 axises), saving screen real-estate. - - slider: tint background based on value (e.g. v_min -> v_max, or use 0.0f either side of the sign) - - slider: relative dragging? + precision dragging - - slider: step option (#1183) - - slider: style: fill % of the bar instead of positioning a drag. - - knob: rotating knob widget (#942) - - drag float: support for reversed drags (min > max) (removed is_locked, also see fdc526e) - - drag float: up/down axis - - drag float: power != 0.0f with current value being outside the range keeps the value stuck. - - drag float: added leeway on edge (e.g. a few invisible steps past the clamp limits) - - - combo: use clipper: make it easier to disable clipper with a single flag. - - combo: flag for BeginCombo to not return true when unchanged (#1182) - - combo: a way/helper to customize the combo preview (#1658) - - combo/listbox: keyboard control. need InputText-like non-active focus + key handling. considering keyboard for custom listbox (pr #203) - - listbox: multiple selection. - - listbox: unselect option (#1208) - - listbox: make it easier/more natural to implement range-select (need some sort of info/ref about the last clicked/focused item that user can translate to an index?) (wip stash) - - listbox: user may want to initial scroll to focus on the one selected value? - - listbox: expose hovered item for a simplified ListBox api - - listbox: keyboard navigation. - - listbox: disable capturing mouse wheel if the listbox has no scrolling. (#1681) - - listbox: scrolling should track modified selection. - - listbox: future api should allow to enable horizontal scrolling (#2510) - -!- popups/menus: clarify usage of popups id, how MenuItem/Selectable closing parent popups affects the ID, etc. this is quite fishy needs improvement! (#331, #402) - - modals: make modal title bar blink when trying to click outside the modal - - modals: technically speaking, we could make Begin() with ImGuiWindowFlags_Modal work without involving popup. May help untangle a few things, as modals are more like regular windows than popups. - - popups: if the popup functions took explicit ImGuiID it would allow the user to manage the scope of those ID. (#331) - - popups: clicking outside (to close popup) and holding shouldn't drag window below. - - popups: add variant using global identifier similar to Begin/End (#402) - - popups: border options. richer api like BeginChild() perhaps? (#197) - - popups: flags could be reworked to allow both mouse buttons as index (0..5 and as flags using higher-bit) allowing to or them. - - popups/modals: although it is sometimes convenient that popups/modals lifetime is owned by imgui, we could also a bool-owned-by-user api as long as Begin() return value testing is enforced. - - - tooltip: drag and drop with tooltip near monitor edges lose/changes its last direction instead of locking one. The drag and drop tooltip should always follow without changing direction. - - tooltip: allow to set the width of a tooltip to allow TextWrapped() etc. while keeping the height automatic. - - tooltip: tooltips with delay timers? or general timer policy? (instantaneous vs timed): IsItemHovered() with timer + implicit aabb-id for items with no ID. (#1485) - - tooltip: drag tooltip hovering over source widget with IsItemHovered/SetTooltip flickers. - - - menus: menu bars inside modal windows are acting weird. - - status-bar: add a per-window status bar helper similar to what menu-bar does. - - shortcuts: local-style shortcut api, e.g. parse "&Save" - - shortcuts,menus: global-style shortcut api e.g. "Save (CTRL+S)" -> explicit flag for recursing into closed menu - - shortcuts: programmatically access shortcuts "Focus("&Save")) - - menus: menu-bar: main menu-bar could affect clamping of windows position (~ akin to modifying DisplayMin) - - menus: hovering from menu to menu on a menu-bar has 1 frame without any menu, which is a little annoying. ideally either 0 either longer. - - menus: could merge draw call in most cases (how about storing an optional aabb in ImDrawCmd to move the burden of merging in a single spot). - - menus: would be nice if the Selectable() supported horizontal alignment (must be given the equivalent of WorkRect.Max.x matching the position of the shortcut column) - - - tree node: add treenode/treepush int variants? not there because (void*) cast from int warns on some platforms/settings? - - tree node: try to apply scrolling at time of TreePop() if node was just opened and end of node is past scrolling limits? - - tree node / selectable render mismatch which is visible if you use them both next to each other (e.g. cf. property viewer) - - tree node: tweak color scheme to distinguish headers from selected tree node (#581) - - tree node: leaf/non-leaf highlight mismatch. - - tree node: flag to disable formatting and/or detect "%s" - - tree node/opt: could avoid formatting when clipped (flag assuming we don't care about width/height, assume single line height? format only %s/%c to be able to count height?) - - - settings: write more decent code to allow saving/loading new fields: columns, selected tree nodes? - - settings: api for per-tool simple persistent data (bool,int,float,columns sizes,etc.) in .ini file (#437) - - settings/persistence: helpers to make TreeNodeBehavior persist (even during dev!) - may need to store some semantic and/or data type in ImGuiStoragePair - - - style: better default styles. (#707) - - style: PushStyleVar: allow direct access to individual float X/Y elements. - - style: add a highlighted text color (for headers, etc.) - - style: border types: out-screen, in-screen, etc. (#447) - - style: add window shadow (fading away from the window. Paint-style calculation of vertices alpha after drawlist would be easier) - - style: a concept of "compact style" that the end-user can easily rely on (e.g. PushStyleCompact()?) that maps to other settings? avoid implementing duplicate helpers such as SmallCheckbox(), etc. - - style: try to make PushStyleVar() more robust to incorrect parameters (to be more friendly to edit & continues situation). - - style: global scale setting. - - style: FramePadding could be different for up vs down (#584) - - style: WindowPadding needs to be EVEN as the 0.5 multiplier used on this value probably have a subtle effect on clip rectangle - - style: have a more global HSV setter (e.g. alter hue on all elements). consider replacing active/hovered by offset in HSV space? (#438, #707, #1223) - - style: gradients fill (#1223) ~ 2 bg colors for each fill? tricky with rounded shapes and using textures for corners. - - style editor: color child window height expressed in multiple of line height. - - - log: improve logging of ArrowButton, ListBox, TabItem - - log: carry on indent / tree depth when opening a child window - - log: enabling log ends up pushing and growing vertices buffers because we don't distinguish layout vs render clipping - - log: have more control over the log scope (e.g. stop logging when leaving current tree node scope) - - log: be able to log anything (e.g. right-click on a window/tree-node, shows context menu? log into tty/file/clipboard) - - log: let user copy any window content to clipboard easily (CTRL+C on windows? while moving it? context menu?). code is commented because it fails with multiple Begin/End pairs. - - log: obsolete LogButtons() all together. - - log: LogButtons() options for specifying depth and/or hiding depth slider - - - filters: set a current filter that tree node can automatically query to hide themselves - - filters: handle wild-cards (with implicit leading/trailing *), reg-exprs - - filters: fuzzy matches (may use code at blog.forrestthewoods.com/4cffeed33fdb) - - - drag and drop: fix/support/options for overlapping drag sources. - - drag and drop: focus drag target window on hold (even without open) - - drag and drop: releasing a drop shows the "..." tooltip for one frame - since e13e598 (#1725) - - drag and drop: drag source on a group object (would need e.g. an invisible button covering group in EndGroup) https://twitter.com/paniq/status/1121446364909535233 - - drag and drop: have some way to know when a drag begin from BeginDragDropSource() pov. (see 2018/01/11 post in #143) - - drag and drop: allow preview tooltip to be submitted from a different place than the drag source. (#1725) - - drag and drop: allow using with other mouse buttons (where activeid won't be set). (#1637) - - drag and drop: make it easier and provide a demo to have tooltip both are source and target site, with a more detailed one on target site (tooltip ordering problem) - - drag and drop: demo with reordering nodes (in a list, or a tree node). (#143) - - drag and drop: test integrating with os drag and drop (make it easy to do a naive WM_DROPFILE integration) - - drag and drop: allow for multiple payload types. (#143) - - drag and drop: make payload optional? payload promise? (see 2018/01/11 post in #143) - - drag and drop: (#143) "both an in-process pointer and a promise to generate a serialized version, for whether the drag ends inside or outside the same process" - - drag and drop: feedback when hovering a region blocked by modal (mouse cursor "NO"?) - - - node/graph editors (#306) (also see https://github.com/ocornut/imgui/wiki#node-editors) - - pie menus patterns (#434) - - markup: simple markup language for color change? (#902) - - - text: selectable text (for copy) as a generic feature (ItemFlags?) - - text: proper alignment options in imgui_internal.h - - text: it's currently impossible to have a window title with "##". perhaps an official workaround would be nice. \ style inhibitor? non-visible ascii code to insert between #? - - text: provided a framed text helper, e.g. https://pastebin.com/1Laxy8bT - - text: refactor TextUnformatted (or underlying function) to more explicitly request if we need width measurement or not - - text/layout/tabs: \t pulling position from base pos + step, or offset array (e.g. could be used in text edit, menus for simple icon+text alignment, etc.) - - text link/url button: underlined. should api expose an ID or use text contents as ID? which colors enum to use? - - text/wrapped: should be a more first-class citizen, e.g. wrapped text within a Selectable with known width. - - text/wrapped: custom separator for text wrapping. (#3002) - - text/wrapped: figure out better way to use TextWrapped() in an always auto-resize context (tooltip, etc.) (#249) - - - font: arbitrary line spacing. (#2945) - - font: MergeMode: flags to select overwriting or not (this is now very easy with refactored ImFontAtlasBuildWithStbTruetype) - - font: free the Alpha buffer if user only requested RGBA. -!- font: better CalcTextSizeA() API, at least for simple use cases. current one is horrible (perhaps have simple vs extended versions). - - font: for the purpose of RenderTextEllipsis(), it might be useful that CalcTextSizeA() can ignore the trailing padding? - - font: a CalcTextHeight() helper could run faster than CalcTextSize().y - - font: enforce monospace through ImFontConfig (for icons?) + create dual ImFont output from same input, reusing rasterized data but with different glyphs/AdvanceX - - font: finish CustomRectRegister() to allow mapping Unicode codepoint to custom texture data - - font: remove ID from CustomRect registration, it seems unnecessary! - - font: make it easier to submit own bitmap font (same texture, another texture?). (#2127, #2575) - - font: PushFontSize API (#1018) - - font: MemoryTTF taking ownership confusing/not obvious, maybe default should be opposite? - - font: storing MinAdvanceX per font would allow us to skip calculating line width (under a threshold of character count) in loops looking for block width - - font/demo: add tools to show glyphs used by a text blob, display U16 value, list missing glyphs. - - font/demo: demonstrate use of ImFontGlyphRangesBuilder. - - font/atlas: add a missing Glyphs.reserve() - - font/atlas: incremental updates - - font/atlas: dynamic font atlas to avoid baking huge ranges into bitmap and make scaling easier. - - font/draw: vertical and/or rotated text renderer (#705) - vertical is easier clipping wise - - font/draw: need to be able to specify wrap start position. - - font/draw: better reserve policy for large horizontal block of text (shouldn't reserve for all clipped lines). also see #3349. - - font/draw: fix for drawing 16k+ visible characters in same call. - - font/draw: underline, squiggle line rendering helpers. - - font: optimization: for monospace font (like the default one) we can trim IndexXAdvance as long as trailing value is == FallbackXAdvance (need to make sure TAB is still correct), would save on cache line. - - font: add support for kerning, probably optional. A) perhaps default to (32..128)^2 matrix ~ 9K entries = 36KB, then hash for non-ascii?. B) or sparse lookup into per-char list? - - font: add a simpler CalcTextSizeA() api? current one ok but not welcome if user needs to call it directly (without going through ImGui::CalcTextSize) - - font: fix AddRemapChar() to work before atlas has been built. - - font: support for unicode codepoints higher than 0xFFFF? (pr #2815) - - font: (api breaking) remove "TTF" from symbol names. also because it now supports OTF. - - font/opt: Considering storing standalone AdvanceX table as 16-bit fixed point integer? - - font/opt: Glyph currently 40 bytes (2+9*4). Consider storing UV as 16 bits integer? (->32 bytes). X0/Y0/X1/Y1 as 16 fixed-point integers? Or X0/Y0 as float and X1/Y1 as fixed8_8? - - - nav: some features such as PageUp/Down/Home/End should probably work without ImGuiConfigFlags_NavEnableKeyboard? (where do we draw the line?) - - nav: configuration flag to disable global shortcuts (currently only CTRL-Tab) ? - ! nav: never clear NavId on some setup (e.g. gamepad centric) - - nav: there's currently no way to completely clear focus with the keyboard. depending on patterns used by the application to dispatch inputs, it may be desirable. - - nav: code to focus child-window on restoring NavId appears to have issue: e.g. when focus change is implicit because of window closure. - - nav: Home/End behavior when navigable item is not fully visible at the edge of scrolling? should be backtrack to keep item into view? - - nav: NavScrollToBringItemIntoView() with item bigger than view should focus top-right? Repro: using Nav in "About Window" - - nav: wrap around logic to allow e.g. grid based layout (pressing NavRight on the right-most element would go to the next row, etc.). see internal's NavMoveRequestTryWrapping(). - - nav: patterns to make it possible for arrows key to update selection (see JustMovedTo in range_select branch) - - nav: restore/find nearest NavId when current one disappear (e.g. pressed a button that disappear, or perhaps auto restoring when current button change name) - - nav: SetItemDefaultFocus() level of priority, so widget like Selectable when inside a popup could claim a low-priority default focus on the first selected iem - - nav: NavFlattened: ESC on a flattened child should select something. - - nav: NavFlattened: broken: in typical usage scenario, the items of a fully clipped child are currently not considered to enter into a NavFlattened child. - - nav: NavFlattened: init request doesn't select items that are part of a NavFlattened child - - nav: NavFlattened: cannot access menu-bar of a flattened child window with Alt/menu key (not a very common use case..). - - nav: simulate right-click or context activation? (SHIFT+F10) - - nav/tabbing: refactor old tabbing system and turn into navigation, should pass through all widgets (in submission order?). - - nav/popup: esc/enter default behavior for popups, e.g. be able to mark an "ok" or "cancel" button that would get triggered by those keys, default validation button, etc. - - nav/treenode: left within a tree node block as a fallback (ImGuiTreeNodeFlags_NavLeftJumpsBackHere by default?) - - nav/menus: pressing left-right on a vertically clipped menu bar tends to jump to the collapse/close buttons. - - nav/menus: allow pressing Menu to leave a sub-menu. - - nav/menus: a way to access the main menu bar with Alt? (currently needs CTRL+TAB) or last focused window menu bar? - - nav/menus: when using the main menu bar, even though we restore focus after, the underlying window loses its title bar highlight during menu manipulation. could we prevent it? - - nav/menus: main menu bar currently cannot restore a NULL focus. Could save NavWindow at the time of being focused, similarly to what popup do? - - nav/menus: Alt,Up could open the first menu (e.g. "File") currently it tends to nav into the window/collapse menu. Do do that we would need custom transition? - - nav/windowing: configure fade-in/fade-out delay on Ctrl+Tab? - - nav/windowing: when CTRL-Tab/windowing is active, the HoveredWindow detection doesn't take account of the window display re-ordering. - - nav/windowing: Resizing window will currently fail with certain types of resizing constraints/callback applied - - focus: preserve ActiveId/focus stack state, e.g. when opening a menu and close it, previously selected InputText() focus gets restored (#622) - - focus: SetKeyboardFocusHere() on with >= 0 offset could be done on same frame (else latch and modulate on beginning of next frame) - - focus: unable to use SetKeyboardFocusHere() on clipped widgets. (#787) - - - inputs: we need an explicit flag about whether the imgui window is focused, to be able to distinguish focused key releases vs alt-tabbing all release behaviors. - - inputs: rework IO system to be able to pass actual ordered/timestamped events. use an event queue? (~#335, #71) - - inputs: support track pad style scrolling & slider edit. - - inputs/io: backspace and arrows in the context of a text input could use system repeat rate. - - inputs/io: clarify/standardize/expose repeat rate and repeat delays (#1808) - - inputs/scrolling: support for smooth scrolling (#2462, #2569) - - - misc: idle: expose "woken up" boolean (set by inputs) and/or animation time (for cursor blink) for backend to be able stop refreshing easily. - - misc: idle: if cursor blink if the _only_ visible animation, core imgui could rewrite vertex alpha to avoid CPU pass on ImGui:: calls. - - misc: idle: if cursor blink if the _only_ visible animation, could even expose a dirty rectangle that optionally can be leverage by some app to render in a smaller viewport, getting rid of much pixel shading cost. - - misc: no way to run a root-most GetID() with ImGui:: api since there's always a Debug window in the stack. (mentioned in #2960) - - misc: make the ImGuiCond values linear (non-power-of-two). internal storage for ImGuiWindow can use integers to combine into flags (Why?) - - misc: PushItemFlag(): add a flag to disable keyboard capture when used with mouse? (#1682) - - misc: use more size_t in public api? - - misc: possible compile-time support for string view/range instead of char* would e.g. facilitate usage with Rust (#683) - - misc: possible compile-time support for wchar_t instead of char*? - - - remote: make a system like RemoteImGui first-class citizen/project (#75) - - - demo: find a way to demonstrate textures in the examples application, as it such a common issue for new users. - - demo: demonstrate using PushStyleVar() in more details. - - demo: add vertical separator demo - - demo: add virtual scrolling example? - - demo: demonstrate Plot offset - - demo: window size constraint: square demo is broken when resizing from edges (#1975), would need to rework the callback system to solve this - - - examples: window minimize, maximize (#583) - - examples: provide a zero frame-rate/idle example. - - examples: dx11/dx12: try to use new swapchain blit models (#2970) - - backends: move to backends/ folder? - - backends: report it better when not able to create texture? - - backends: apple: example_apple should be using modern GL3. - - backends: glfw: could go idle when minimized? if (glfwGetWindowAttrib(window, GLFW_ICONIFIED)) { glfwWaitEvents(); continue; } // issue: DeltaTime will be super high on resume, perhaps provide a way to let impl know (#440) - - backends: opengl: rename imgui_impl_opengl2 to impl_opengl_legacy and imgui_impl_opengl3 to imgui_impl_opengl? (#1900) - - backends: opengl: could use a single vertex buffer and glBufferSubData for uploads? - - backends: opengl: explicitly disable GL_STENCIL_TEST in bindings. - - backends: opengl: consider gl_lite loader https://github.com/ApoorvaJ/Papaya/blob/3808e39b0f45d4ca4972621c847586e4060c042a/src/libs/gl_lite.h - - backends: vulkan: viewport: support for synchronized swapping of multiple swap chains. - - backends: bgfx: https://gist.github.com/RichardGale/6e2b74bc42b3005e08397236e4be0fd0 - - backends: mscriptem: with refactored examples, we could provide a direct imgui_impl_emscripten platform layer (see eg. https://github.com/floooh/sokol-samples/blob/master/html5/imgui-emsc.cc#L42) - - - bindings: ways to use clang ast dump to generate bindings or helpers for bindings? (e.g. clang++ -Xclang -ast-dump=json imgui.h) - - - optimization: replace vsnprintf with stb_printf? using IMGUI_USE_STB_SPRINTF.(#1038) - - optimization: add clipping for multi-component widgets (SliderFloatX, ColorEditX, etc.). one problem is that nav branch can't easily clip parent group when there is a move request. - - optimization: add a flag to disable most of rendering, for the case where the user expect to skip it (#335) - - optimization: fully covered window (covered by another with non-translucent bg + WindowRounding worth of padding) may want to clip rendering. - - optimization: use another hash function than crc32, e.g. FNV1a - - optimization/render: merge command-lists with same clip-rect into one even if they aren't sequential? (as long as in-between clip rectangle don't overlap)? - - optimization: turn some the various stack vectors into statically-sized arrays diff --git a/third_party/imgui/examples/README.txt b/third_party/imgui/examples/README.txt deleted file mode 100644 index ed16dd9f..00000000 --- a/third_party/imgui/examples/README.txt +++ /dev/null @@ -1 +0,0 @@ -See EXAMPLES and BACKENDS files in the docs/ folder. diff --git a/third_party/imgui/examples/example_allegro5/README.md b/third_party/imgui/examples/example_allegro5/README.md deleted file mode 100644 index 0e27f5f6..00000000 --- a/third_party/imgui/examples/example_allegro5/README.md +++ /dev/null @@ -1,35 +0,0 @@ - -# Configuration - -Dear ImGui outputs 16-bit vertex indices by default. -Allegro doesn't support them natively, so we have two solutions: convert the indices manually in imgui_impl_allegro5.cpp, or compile dear imgui with 32-bit indices. -You can either modify imconfig.h that comes with Dear ImGui (easier), or set a C++ preprocessor option IMGUI_USER_CONFIG to find to a filename. -We are providing `imconfig_allegro5.h` that enables 32-bit indices. -Note that the backend supports _BOTH_ 16-bit and 32-bit indices, but 32-bit indices will be slightly faster as they won't require a manual conversion. - -# How to Build - -### On Ubuntu 14.04+ and macOS - -```bash -g++ -DIMGUI_USER_CONFIG=\"examples/example_allegro5/imconfig_allegro5.h\" -I .. -I ../.. main.cpp ../../backends/imgui_impl_allegro5.cpp ../../imgui*.cpp -lallegro -lallegro_main -lallegro_primitives -o allegro5_example -``` - -On macOS, install Allegro with homebrew: `brew install allegro`. - -### On Windows with Visual Studio's CLI - -You may install Allegro using vcpkg: -``` -git clone https://github.com/Microsoft/vcpkg -cd vcpkg -.\bootstrap-vcpkg.bat -.\vcpkg install allegro5 -.\vcpkg integrate install ; optional, automatically register include/libs in Visual Studio -``` - -Build: -``` -set ALLEGRODIR=path_to_your_allegro5_folder -cl /Zi /MD /I %ALLEGRODIR%\include /DIMGUI_USER_CONFIG=\"examples/example_allegro5/imconfig_allegro5.h\" /I .. /I ..\.. main.cpp ..\..\backends\imgui_impl_allegro5.cpp ..\..\imgui*.cpp /link /LIBPATH:%ALLEGRODIR%\lib allegro-5.0.10-monolith-md.lib user32.lib -``` diff --git a/third_party/imgui/examples/example_allegro5/example_allegro5.vcxproj b/third_party/imgui/examples/example_allegro5/example_allegro5.vcxproj deleted file mode 100644 index c6c524aa..00000000 --- a/third_party/imgui/examples/example_allegro5/example_allegro5.vcxproj +++ /dev/null @@ -1,180 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {73F235B5-7D31-4FC6-8682-DDC5A097B9C1} - example_allegro5 - 8.1 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories) - - - true - %(AdditionalLibraryDirectories) - opengl32.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories) - - - true - %(AdditionalLibraryDirectories) - opengl32.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;$(SolutionDir)\libs\gl3w;%(AdditionalIncludeDirectories) - false - - - true - true - true - %(AdditionalLibraryDirectories) - opengl32.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;$(SolutionDir)\libs\gl3w;%(AdditionalIncludeDirectories) - false - - - true - true - true - %(AdditionalLibraryDirectories) - opengl32.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_allegro5/example_allegro5.vcxproj.filters b/third_party/imgui/examples/example_allegro5/example_allegro5.vcxproj.filters deleted file mode 100644 index 00873a22..00000000 --- a/third_party/imgui/examples/example_allegro5/example_allegro5.vcxproj.filters +++ /dev/null @@ -1,58 +0,0 @@ - - - - - {20b90ce4-7fcb-4731-b9a0-075f875de82d} - - - {f18ab499-84e1-499f-8eff-9754361e0e52} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - sources - - - imgui - - - imgui - - - - - imgui - - - imgui - - - imgui - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_allegro5/imconfig_allegro5.h b/third_party/imgui/examples/example_allegro5/imconfig_allegro5.h deleted file mode 100644 index 35afa67f..00000000 --- a/third_party/imgui/examples/example_allegro5/imconfig_allegro5.h +++ /dev/null @@ -1,11 +0,0 @@ -//----------------------------------------------------------------------------- -// COMPILE-TIME OPTIONS FOR DEAR IMGUI ALLEGRO 5 EXAMPLE -// See imconfig.h for the full template -// Because Allegro doesn't support 16-bit vertex indices, we enable the compile-time option of imgui to use 32-bit indices -//----------------------------------------------------------------------------- - -#pragma once - -// Use 32-bit vertex indices because Allegro doesn't support 16-bit ones -// This allows us to avoid converting vertices format at runtime -#define ImDrawIdx int diff --git a/third_party/imgui/examples/example_allegro5/main.cpp b/third_party/imgui/examples/example_allegro5/main.cpp deleted file mode 100644 index c60b1736..00000000 --- a/third_party/imgui/examples/example_allegro5/main.cpp +++ /dev/null @@ -1,136 +0,0 @@ -// Dear ImGui: standalone example application for Allegro 5 -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include -#include -#include -#include "imgui.h" -#include "imgui_impl_allegro5.h" - -int main(int, char**) -{ - // Setup Allegro - al_init(); - al_install_keyboard(); - al_install_mouse(); - al_init_primitives_addon(); - al_set_new_display_flags(ALLEGRO_RESIZABLE); - ALLEGRO_DISPLAY* display = al_create_display(1280, 720); - al_set_window_title(display, "Dear ImGui Allegro 5 example"); - ALLEGRO_EVENT_QUEUE* queue = al_create_event_queue(); - al_register_event_source(queue, al_get_display_event_source(display)); - al_register_event_source(queue, al_get_keyboard_event_source()); - al_register_event_source(queue, al_get_mouse_event_source()); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplAllegro5_Init(display); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - bool running = true; - while (running) - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - ALLEGRO_EVENT ev; - while (al_get_next_event(queue, &ev)) - { - ImGui_ImplAllegro5_ProcessEvent(&ev); - if (ev.type == ALLEGRO_EVENT_DISPLAY_CLOSE) - running = false; - if (ev.type == ALLEGRO_EVENT_DISPLAY_RESIZE) - { - ImGui_ImplAllegro5_InvalidateDeviceObjects(); - al_acknowledge_resize(display); - ImGui_ImplAllegro5_CreateDeviceObjects(); - } - } - - // Start the Dear ImGui frame - ImGui_ImplAllegro5_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - al_clear_to_color(al_map_rgba_f(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w)); - ImGui_ImplAllegro5_RenderDrawData(ImGui::GetDrawData()); - al_flip_display(); - } - - // Cleanup - ImGui_ImplAllegro5_Shutdown(); - ImGui::DestroyContext(); - al_destroy_event_queue(queue); - al_destroy_display(display); - - return 0; -} diff --git a/third_party/imgui/examples/example_android_opengl3/CMakeLists.txt b/third_party/imgui/examples/example_android_opengl3/CMakeLists.txt deleted file mode 100644 index 63531f4d..00000000 --- a/third_party/imgui/examples/example_android_opengl3/CMakeLists.txt +++ /dev/null @@ -1,40 +0,0 @@ -cmake_minimum_required(VERSION 3.6) - -project(ImGuiExample) - -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_CXX_STANDARD_REQUIRED ON) -set(CMAKE_CXX_EXTENSIONS OFF) - -add_library(${CMAKE_PROJECT_NAME} SHARED - ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_demo.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_draw.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_tables.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/../../imgui_widgets.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/../../backends/imgui_impl_android.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/../../backends/imgui_impl_opengl3.cpp - ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c -) - -set(CMAKE_SHARED_LINKER_FLAGS - "${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate" -) - -target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE - IMGUI_IMPL_OPENGL_ES3 -) - -target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE - ${CMAKE_CURRENT_SOURCE_DIR}/../.. - ${CMAKE_CURRENT_SOURCE_DIR}/../../backends - ${ANDROID_NDK}/sources/android/native_app_glue -) - -target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE - android - EGL - GLESv3 - log -) diff --git a/third_party/imgui/examples/example_android_opengl3/android/.gitignore b/third_party/imgui/examples/example_android_opengl3/android/.gitignore deleted file mode 100644 index 3c7a6191..00000000 --- a/third_party/imgui/examples/example_android_opengl3/android/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -.cxx -.externalNativeBuild -build/ -*.iml - -.idea -.gradle -local.properties - -# Android Studio puts a Gradle wrapper here, that we don't want: -gradle/ -gradlew* diff --git a/third_party/imgui/examples/example_android_opengl3/android/app/build.gradle b/third_party/imgui/examples/example_android_opengl3/android/app/build.gradle deleted file mode 100644 index aa7f0ead..00000000 --- a/third_party/imgui/examples/example_android_opengl3/android/app/build.gradle +++ /dev/null @@ -1,34 +0,0 @@ -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' - -android { - compileSdkVersion 29 - buildToolsVersion "30.0.3" - ndkVersion "21.4.7075529" - defaultConfig { - applicationId "imgui.example.android" - minSdkVersion 23 - targetSdkVersion 29 - versionCode 1 - versionName "1.0" - } - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt') - } - } - - externalNativeBuild { - cmake { - path "../../CMakeLists.txt" - } - } -} -repositories { - mavenCentral() -} -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} diff --git a/third_party/imgui/examples/example_android_opengl3/android/app/src/main/AndroidManifest.xml b/third_party/imgui/examples/example_android_opengl3/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index c4009e52..00000000 --- a/third_party/imgui/examples/example_android_opengl3/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_android_opengl3/android/app/src/main/java/MainActivity.kt b/third_party/imgui/examples/example_android_opengl3/android/app/src/main/java/MainActivity.kt deleted file mode 100644 index 896a88c8..00000000 --- a/third_party/imgui/examples/example_android_opengl3/android/app/src/main/java/MainActivity.kt +++ /dev/null @@ -1,40 +0,0 @@ -package imgui.example.android - -import android.app.NativeActivity -import android.os.Bundle -import android.content.Context -import android.view.inputmethod.InputMethodManager -import android.view.KeyEvent -import java.util.concurrent.LinkedBlockingQueue - -class MainActivity : NativeActivity() { - public override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - } - - fun showSoftInput() { - val inputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager - inputMethodManager.showSoftInput(this.window.decorView, 0) - } - - fun hideSoftInput() { - val inputMethodManager = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager - inputMethodManager.hideSoftInputFromWindow(this.window.decorView.windowToken, 0) - } - - // Queue for the Unicode characters to be polled from native code (via pollUnicodeChar()) - private var unicodeCharacterQueue: LinkedBlockingQueue = LinkedBlockingQueue() - - // We assume dispatchKeyEvent() of the NativeActivity is actually called for every - // KeyEvent and not consumed by any View before it reaches here - override fun dispatchKeyEvent(event: KeyEvent): Boolean { - if (event.action == KeyEvent.ACTION_DOWN) { - unicodeCharacterQueue.offer(event.getUnicodeChar(event.metaState)) - } - return super.dispatchKeyEvent(event) - } - - fun pollUnicodeChar(): Int { - return unicodeCharacterQueue.poll() ?: 0 - } -} diff --git a/third_party/imgui/examples/example_android_opengl3/android/build.gradle b/third_party/imgui/examples/example_android_opengl3/android/build.gradle deleted file mode 100644 index 44603ea3..00000000 --- a/third_party/imgui/examples/example_android_opengl3/android/build.gradle +++ /dev/null @@ -1,24 +0,0 @@ -buildscript { - ext.kotlin_version = '1.4.30' - repositories { - google() - jcenter() - - } - dependencies { - classpath 'com.android.tools.build:gradle:4.0.1' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - - } -} - -allprojects { - repositories { - google() - jcenter() - } -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/third_party/imgui/examples/example_android_opengl3/android/settings.gradle b/third_party/imgui/examples/example_android_opengl3/android/settings.gradle deleted file mode 100644 index e7b4def4..00000000 --- a/third_party/imgui/examples/example_android_opengl3/android/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include ':app' diff --git a/third_party/imgui/examples/example_android_opengl3/main.cpp b/third_party/imgui/examples/example_android_opengl3/main.cpp deleted file mode 100644 index 5ab69034..00000000 --- a/third_party/imgui/examples/example_android_opengl3/main.cpp +++ /dev/null @@ -1,369 +0,0 @@ -// dear imgui: standalone example application for Android + OpenGL ES 3 -// If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp. - -#include "imgui.h" -#include "imgui_impl_android.h" -#include "imgui_impl_opengl3.h" -#include -#include -#include -#include -#include - -// Data -static EGLDisplay g_EglDisplay = EGL_NO_DISPLAY; -static EGLSurface g_EglSurface = EGL_NO_SURFACE; -static EGLContext g_EglContext = EGL_NO_CONTEXT; -static struct android_app* g_App = NULL; -static bool g_Initialized = false; -static char g_LogTag[] = "ImGuiExample"; - -// Forward declarations of helper functions -static int ShowSoftKeyboardInput(); -static int PollUnicodeChars(); -static int GetAssetData(const char* filename, void** out_data); - -void init(struct android_app* app) -{ - if (g_Initialized) - return; - - g_App = app; - ANativeWindow_acquire(g_App->window); - - // Initialize EGL - // This is mostly boilerplate code for EGL... - { - g_EglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); - if (g_EglDisplay == EGL_NO_DISPLAY) - __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglGetDisplay(EGL_DEFAULT_DISPLAY) returned EGL_NO_DISPLAY"); - - if (eglInitialize(g_EglDisplay, 0, 0) != EGL_TRUE) - __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglInitialize() returned with an error"); - - const EGLint egl_attributes[] = { EGL_BLUE_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_RED_SIZE, 8, EGL_DEPTH_SIZE, 24, EGL_SURFACE_TYPE, EGL_WINDOW_BIT, EGL_NONE }; - EGLint num_configs = 0; - if (eglChooseConfig(g_EglDisplay, egl_attributes, nullptr, 0, &num_configs) != EGL_TRUE) - __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglChooseConfig() returned with an error"); - if (num_configs == 0) - __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglChooseConfig() returned 0 matching config"); - - // Get the first matching config - EGLConfig egl_config; - eglChooseConfig(g_EglDisplay, egl_attributes, &egl_config, 1, &num_configs); - EGLint egl_format; - eglGetConfigAttrib(g_EglDisplay, egl_config, EGL_NATIVE_VISUAL_ID, &egl_format); - ANativeWindow_setBuffersGeometry(g_App->window, 0, 0, egl_format); - - const EGLint egl_context_attributes[] = { EGL_CONTEXT_CLIENT_VERSION, 3, EGL_NONE }; - g_EglContext = eglCreateContext(g_EglDisplay, egl_config, EGL_NO_CONTEXT, egl_context_attributes); - - if (g_EglContext == EGL_NO_CONTEXT) - __android_log_print(ANDROID_LOG_ERROR, g_LogTag, "%s", "eglCreateContext() returned EGL_NO_CONTEXT"); - - g_EglSurface = eglCreateWindowSurface(g_EglDisplay, egl_config, g_App->window, NULL); - eglMakeCurrent(g_EglDisplay, g_EglSurface, g_EglSurface, g_EglContext); - } - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); - - // Disable loading/saving of .ini file from disk. - // FIXME: Consider using LoadIniSettingsFromMemory() / SaveIniSettingsToMemory() to save in appropriate location for Android. - io.IniFilename = NULL; - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplAndroid_Init(g_App->window); - ImGui_ImplOpenGL3_Init("#version 300 es"); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - // - Android: The TTF files have to be placed into the assets/ directory (android/app/src/main/assets), we use our GetAssetData() helper to retrieve them. - - // We load the default font with increased size to improve readability on many devices with "high" DPI. - // FIXME: Put some effort into DPI awareness. - // Important: when calling AddFontFromMemoryTTF(), ownership of font_data is transfered by Dear ImGui by default (deleted is handled by Dear ImGui), unless we set FontDataOwnedByAtlas=false in ImFontConfig - ImFontConfig font_cfg; - font_cfg.SizePixels = 22.0f; - io.Fonts->AddFontDefault(&font_cfg); - //void* font_data; - //int font_data_size; - //ImFont* font; - //font_data_size = GetAssetData("Roboto-Medium.ttf", &font_data); - //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 16.0f); - //IM_ASSERT(font != NULL); - //font_data_size = GetAssetData("Cousine-Regular.ttf", &font_data); - //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 15.0f); - //IM_ASSERT(font != NULL); - //font_data_size = GetAssetData("DroidSans.ttf", &font_data); - //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 16.0f); - //IM_ASSERT(font != NULL); - //font_data_size = GetAssetData("ProggyTiny.ttf", &font_data); - //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 10.0f); - //IM_ASSERT(font != NULL); - //font_data_size = GetAssetData("ArialUni.ttf", &font_data); - //font = io.Fonts->AddFontFromMemoryTTF(font_data, font_data_size, 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Arbitrary scale-up - // FIXME: Put some effort into DPI awareness - ImGui::GetStyle().ScaleAllSizes(3.0f); - - g_Initialized = true; -} - -void tick() -{ - ImGuiIO& io = ImGui::GetIO(); - if (g_EglDisplay == EGL_NO_DISPLAY) - return; - - // Our state - static bool show_demo_window = true; - static bool show_another_window = false; - static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Poll Unicode characters via JNI - // FIXME: do not call this every frame because of JNI overhead - PollUnicodeChars(); - - // Open on-screen (soft) input if requested by Dear ImGui - static bool WantTextInputLast = false; - if (io.WantTextInput && !WantTextInputLast) - ShowSoftKeyboardInput(); - WantTextInputLast = io.WantTextInput; - - // Start the Dear ImGui frame - ImGui_ImplOpenGL3_NewFrame(); - ImGui_ImplAndroid_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); - glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); - glClear(GL_COLOR_BUFFER_BIT); - ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); - eglSwapBuffers(g_EglDisplay, g_EglSurface); -} - -void shutdown() -{ - if (!g_Initialized) - return; - - // Cleanup - ImGui_ImplOpenGL3_Shutdown(); - ImGui_ImplAndroid_Shutdown(); - ImGui::DestroyContext(); - - if (g_EglDisplay != EGL_NO_DISPLAY) - { - eglMakeCurrent(g_EglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); - - if (g_EglContext != EGL_NO_CONTEXT) - eglDestroyContext(g_EglDisplay, g_EglContext); - - if (g_EglSurface != EGL_NO_SURFACE) - eglDestroySurface(g_EglDisplay, g_EglSurface); - - eglTerminate(g_EglDisplay); - } - - g_EglDisplay = EGL_NO_DISPLAY; - g_EglContext = EGL_NO_CONTEXT; - g_EglSurface = EGL_NO_SURFACE; - ANativeWindow_release(g_App->window); - - g_Initialized = false; -} - -static void handleAppCmd(struct android_app* app, int32_t appCmd) -{ - switch (appCmd) - { - case APP_CMD_SAVE_STATE: - break; - case APP_CMD_INIT_WINDOW: - init(app); - break; - case APP_CMD_TERM_WINDOW: - shutdown(); - break; - case APP_CMD_GAINED_FOCUS: - break; - case APP_CMD_LOST_FOCUS: - break; - } -} - -static int32_t handleInputEvent(struct android_app* app, AInputEvent* inputEvent) -{ - return ImGui_ImplAndroid_HandleInputEvent(inputEvent); -} - -void android_main(struct android_app* app) -{ - app->onAppCmd = handleAppCmd; - app->onInputEvent = handleInputEvent; - - while (true) - { - int out_events; - struct android_poll_source* out_data; - - // Poll all events. If the app is not visible, this loop blocks until g_Initialized == true. - while (ALooper_pollAll(g_Initialized ? 0 : -1, NULL, &out_events, (void**)&out_data) >= 0) - { - // Process one event - if (out_data != NULL) - out_data->process(app, out_data); - - // Exit the app by returning from within the infinite loop - if (app->destroyRequested != 0) - { - // shutdown() should have been called already while processing the - // app command APP_CMD_TERM_WINDOW. But we play save here - if (!g_Initialized) - shutdown(); - - return; - } - } - - // Initiate a new frame - tick(); - } -} - -// Unfortunately, there is no way to show the on-screen input from native code. -// Therefore, we call ShowSoftKeyboardInput() of the main activity implemented in MainActivity.kt via JNI. -static int ShowSoftKeyboardInput() -{ - JavaVM* java_vm = g_App->activity->vm; - JNIEnv* java_env = NULL; - - jint jni_return = java_vm->GetEnv((void**)&java_env, JNI_VERSION_1_6); - if (jni_return == JNI_ERR) - return -1; - - jni_return = java_vm->AttachCurrentThread(&java_env, NULL); - if (jni_return != JNI_OK) - return -2; - - jclass native_activity_clazz = java_env->GetObjectClass(g_App->activity->clazz); - if (native_activity_clazz == NULL) - return -3; - - jmethodID method_id = java_env->GetMethodID(native_activity_clazz, "showSoftInput", "()V"); - if (method_id == NULL) - return -4; - - java_env->CallVoidMethod(g_App->activity->clazz, method_id); - - jni_return = java_vm->DetachCurrentThread(); - if (jni_return != JNI_OK) - return -5; - - return 0; -} - -// Unfortunately, the native KeyEvent implementation has no getUnicodeChar() function. -// Therefore, we implement the processing of KeyEvents in MainActivity.kt and poll -// the resulting Unicode characters here via JNI and send them to Dear ImGui. -static int PollUnicodeChars() -{ - JavaVM* java_vm = g_App->activity->vm; - JNIEnv* java_env = NULL; - - jint jni_return = java_vm->GetEnv((void**)&java_env, JNI_VERSION_1_6); - if (jni_return == JNI_ERR) - return -1; - - jni_return = java_vm->AttachCurrentThread(&java_env, NULL); - if (jni_return != JNI_OK) - return -2; - - jclass native_activity_clazz = java_env->GetObjectClass(g_App->activity->clazz); - if (native_activity_clazz == NULL) - return -3; - - jmethodID method_id = java_env->GetMethodID(native_activity_clazz, "pollUnicodeChar", "()I"); - if (method_id == NULL) - return -4; - - // Send the actual characters to Dear ImGui - ImGuiIO& io = ImGui::GetIO(); - jint unicode_character; - while ((unicode_character = java_env->CallIntMethod(g_App->activity->clazz, method_id)) != 0) - io.AddInputCharacter(unicode_character); - - jni_return = java_vm->DetachCurrentThread(); - if (jni_return != JNI_OK) - return -5; - - return 0; -} - -// Helper to retrieve data placed into the assets/ directory (android/app/src/main/assets) -static int GetAssetData(const char* filename, void** outData) -{ - int num_bytes = 0; - AAsset* asset_descriptor = AAssetManager_open(g_App->activity->assetManager, filename, AASSET_MODE_BUFFER); - if (asset_descriptor) - { - num_bytes = AAsset_getLength(asset_descriptor); - *outData = IM_ALLOC(num_bytes); - int64_t num_bytes_read = AAsset_read(asset_descriptor, *outData, num_bytes); - AAsset_close(asset_descriptor); - IM_ASSERT(num_bytes_read == num_bytes); - } - return num_bytes; -} diff --git a/third_party/imgui/examples/example_apple_metal/README.md b/third_party/imgui/examples/example_apple_metal/README.md deleted file mode 100644 index c13df2f1..00000000 --- a/third_party/imgui/examples/example_apple_metal/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# iOS / OSX Metal example - -## Introduction - -This example shows how to integrate Dear ImGui with Metal. It is based on the "cross-platform" game template provided with Xcode as of Xcode 9. - -Consider basing your work off the example_glfw_metal/ or example_sdl_metal/ examples. They are better supported and will be portable unlike this one. - - - diff --git a/third_party/imgui/examples/example_apple_metal/example_apple_metal.xcodeproj/project.pbxproj b/third_party/imgui/examples/example_apple_metal/example_apple_metal.xcodeproj/project.pbxproj deleted file mode 100644 index 040fcd64..00000000 --- a/third_party/imgui/examples/example_apple_metal/example_apple_metal.xcodeproj/project.pbxproj +++ /dev/null @@ -1,499 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 48; - objects = { - -/* Begin PBXBuildFile section */ - 07A82ED82139413D0078D120 /* imgui_widgets.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07A82ED72139413C0078D120 /* imgui_widgets.cpp */; }; - 07A82ED92139418F0078D120 /* imgui_widgets.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07A82ED72139413C0078D120 /* imgui_widgets.cpp */; }; - 5079822E257677DB0038A28D /* imgui_tables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5079822D257677DB0038A28D /* imgui_tables.cpp */; }; - 8309BD8F253CCAAA0045E2A1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8309BD8E253CCAAA0045E2A1 /* UIKit.framework */; }; - 8309BDA5253CCC070045E2A1 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDA0253CCBC10045E2A1 /* main.mm */; }; - 8309BDA8253CCC080045E2A1 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDA0253CCBC10045E2A1 /* main.mm */; }; - 8309BDBB253CCCAD0045E2A1 /* imgui_impl_metal.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDB5253CCC9D0045E2A1 /* imgui_impl_metal.mm */; }; - 8309BDBE253CCCB60045E2A1 /* imgui_impl_metal.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDB5253CCC9D0045E2A1 /* imgui_impl_metal.mm */; }; - 8309BDBF253CCCB60045E2A1 /* imgui_impl_osx.mm in Sources */ = {isa = PBXBuildFile; fileRef = 8309BDB6253CCC9D0045E2A1 /* imgui_impl_osx.mm */; }; - 8309BDC6253CCCFE0045E2A1 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8309BDC5253CCCFE0045E2A1 /* AppKit.framework */; }; - 8309BDFC253CDAB30045E2A1 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8309BDF7253CDAAE0045E2A1 /* LaunchScreen.storyboard */; }; - 8309BE04253CDAB60045E2A1 /* MainMenu.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8309BDFA253CDAAE0045E2A1 /* MainMenu.storyboard */; }; - 83BBE9E520EB46B900295997 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83BBE9E420EB46B900295997 /* Metal.framework */; }; - 83BBE9E720EB46BD00295997 /* MetalKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83BBE9E620EB46BD00295997 /* MetalKit.framework */; }; - 83BBE9EC20EB471700295997 /* MetalKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83BBE9EA20EB471700295997 /* MetalKit.framework */; }; - 83BBE9ED20EB471700295997 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 83BBE9EB20EB471700295997 /* Metal.framework */; }; - 83BBEA0520EB54E700295997 /* imgui_draw.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0120EB54E700295997 /* imgui_draw.cpp */; }; - 83BBEA0620EB54E700295997 /* imgui_draw.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0120EB54E700295997 /* imgui_draw.cpp */; }; - 83BBEA0720EB54E700295997 /* imgui_demo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0220EB54E700295997 /* imgui_demo.cpp */; }; - 83BBEA0820EB54E700295997 /* imgui_demo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0220EB54E700295997 /* imgui_demo.cpp */; }; - 83BBEA0920EB54E700295997 /* imgui.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0320EB54E700295997 /* imgui.cpp */; }; - 83BBEA0A20EB54E700295997 /* imgui.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83BBEA0320EB54E700295997 /* imgui.cpp */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 07A82ED62139413C0078D120 /* imgui_internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_internal.h; path = ../../imgui_internal.h; sourceTree = ""; }; - 07A82ED72139413C0078D120 /* imgui_widgets.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_widgets.cpp; path = ../../imgui_widgets.cpp; sourceTree = ""; }; - 5079822D257677DB0038A28D /* imgui_tables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_tables.cpp; path = ../../imgui_tables.cpp; sourceTree = ""; }; - 8307E7C420E9F9C900473790 /* example_apple_metal.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example_apple_metal.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 8307E7DA20E9F9C900473790 /* example_apple_metal.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example_apple_metal.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 8309BD8E253CCAAA0045E2A1 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - 8309BDA0253CCBC10045E2A1 /* main.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = main.mm; sourceTree = ""; }; - 8309BDB5253CCC9D0045E2A1 /* imgui_impl_metal.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = imgui_impl_metal.mm; path = ../../backends/imgui_impl_metal.mm; sourceTree = ""; }; - 8309BDB6253CCC9D0045E2A1 /* imgui_impl_osx.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = imgui_impl_osx.mm; path = ../../backends/imgui_impl_osx.mm; sourceTree = ""; }; - 8309BDC5253CCCFE0045E2A1 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 8309BDF7253CDAAE0045E2A1 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = ""; }; - 8309BDF8253CDAAE0045E2A1 /* Info-iOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-iOS.plist"; sourceTree = ""; }; - 8309BDFA253CDAAE0045E2A1 /* MainMenu.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = MainMenu.storyboard; sourceTree = ""; }; - 8309BDFB253CDAAE0045E2A1 /* Info-macOS.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-macOS.plist"; sourceTree = ""; }; - 83BBE9E420EB46B900295997 /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/Metal.framework; sourceTree = DEVELOPER_DIR; }; - 83BBE9E620EB46BD00295997 /* MetalKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MetalKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/MetalKit.framework; sourceTree = DEVELOPER_DIR; }; - 83BBE9E820EB46C100295997 /* ModelIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ModelIO.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/ModelIO.framework; sourceTree = DEVELOPER_DIR; }; - 83BBE9EA20EB471700295997 /* MetalKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MetalKit.framework; path = System/Library/Frameworks/MetalKit.framework; sourceTree = SDKROOT; }; - 83BBE9EB20EB471700295997 /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = System/Library/Frameworks/Metal.framework; sourceTree = SDKROOT; }; - 83BBE9EE20EB471C00295997 /* ModelIO.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ModelIO.framework; path = System/Library/Frameworks/ModelIO.framework; sourceTree = SDKROOT; }; - 83BBEA0020EB54E700295997 /* imgui.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui.h; path = ../../imgui.h; sourceTree = ""; }; - 83BBEA0120EB54E700295997 /* imgui_draw.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_draw.cpp; path = ../../imgui_draw.cpp; sourceTree = ""; }; - 83BBEA0220EB54E700295997 /* imgui_demo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_demo.cpp; path = ../../imgui_demo.cpp; sourceTree = ""; }; - 83BBEA0320EB54E700295997 /* imgui.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui.cpp; path = ../../imgui.cpp; sourceTree = ""; }; - 83BBEA0420EB54E700295997 /* imconfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imconfig.h; path = ../../imconfig.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 8307E7C120E9F9C900473790 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 8309BD8F253CCAAA0045E2A1 /* UIKit.framework in Frameworks */, - 83BBE9E720EB46BD00295997 /* MetalKit.framework in Frameworks */, - 83BBE9E520EB46B900295997 /* Metal.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8307E7D720E9F9C900473790 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 8309BDC6253CCCFE0045E2A1 /* AppKit.framework in Frameworks */, - 83BBE9EC20EB471700295997 /* MetalKit.framework in Frameworks */, - 83BBE9ED20EB471700295997 /* Metal.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 8307E7B520E9F9C700473790 = { - isa = PBXGroup; - children = ( - 83BBE9F020EB544400295997 /* imgui */, - 8309BD9E253CCBA70045E2A1 /* example */, - 8307E7C520E9F9C900473790 /* Products */, - 83BBE9E320EB46B800295997 /* Frameworks */, - ); - sourceTree = ""; - }; - 8307E7C520E9F9C900473790 /* Products */ = { - isa = PBXGroup; - children = ( - 8307E7C420E9F9C900473790 /* example_apple_metal.app */, - 8307E7DA20E9F9C900473790 /* example_apple_metal.app */, - ); - name = Products; - sourceTree = ""; - }; - 8309BD9E253CCBA70045E2A1 /* example */ = { - isa = PBXGroup; - children = ( - 8309BDF6253CDAAE0045E2A1 /* iOS */, - 8309BDF9253CDAAE0045E2A1 /* macOS */, - 8309BDA0253CCBC10045E2A1 /* main.mm */, - ); - name = example; - sourceTree = ""; - }; - 8309BDF6253CDAAE0045E2A1 /* iOS */ = { - isa = PBXGroup; - children = ( - 8309BDF7253CDAAE0045E2A1 /* LaunchScreen.storyboard */, - 8309BDF8253CDAAE0045E2A1 /* Info-iOS.plist */, - ); - path = iOS; - sourceTree = ""; - }; - 8309BDF9253CDAAE0045E2A1 /* macOS */ = { - isa = PBXGroup; - children = ( - 8309BDFA253CDAAE0045E2A1 /* MainMenu.storyboard */, - 8309BDFB253CDAAE0045E2A1 /* Info-macOS.plist */, - ); - path = macOS; - sourceTree = ""; - }; - 83BBE9E320EB46B800295997 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 8309BDC5253CCCFE0045E2A1 /* AppKit.framework */, - 8309BD8E253CCAAA0045E2A1 /* UIKit.framework */, - 83BBE9EE20EB471C00295997 /* ModelIO.framework */, - 83BBE9EB20EB471700295997 /* Metal.framework */, - 83BBE9EA20EB471700295997 /* MetalKit.framework */, - 83BBE9E820EB46C100295997 /* ModelIO.framework */, - 83BBE9E620EB46BD00295997 /* MetalKit.framework */, - 83BBE9E420EB46B900295997 /* Metal.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 83BBE9F020EB544400295997 /* imgui */ = { - isa = PBXGroup; - children = ( - 5079822D257677DB0038A28D /* imgui_tables.cpp */, - 8309BDB5253CCC9D0045E2A1 /* imgui_impl_metal.mm */, - 8309BDB6253CCC9D0045E2A1 /* imgui_impl_osx.mm */, - 83BBEA0420EB54E700295997 /* imconfig.h */, - 83BBEA0320EB54E700295997 /* imgui.cpp */, - 83BBEA0020EB54E700295997 /* imgui.h */, - 83BBEA0220EB54E700295997 /* imgui_demo.cpp */, - 83BBEA0120EB54E700295997 /* imgui_draw.cpp */, - 07A82ED62139413C0078D120 /* imgui_internal.h */, - 07A82ED72139413C0078D120 /* imgui_widgets.cpp */, - ); - name = imgui; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 8307E7C320E9F9C900473790 /* example_apple_metal_ios */ = { - isa = PBXNativeTarget; - buildConfigurationList = 8307E7F020E9F9C900473790 /* Build configuration list for PBXNativeTarget "example_apple_metal_ios" */; - buildPhases = ( - 8307E7C020E9F9C900473790 /* Sources */, - 8307E7C120E9F9C900473790 /* Frameworks */, - 8307E7C220E9F9C900473790 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = example_apple_metal_ios; - productName = "imguiex iOS"; - productReference = 8307E7C420E9F9C900473790 /* example_apple_metal.app */; - productType = "com.apple.product-type.application"; - }; - 8307E7D920E9F9C900473790 /* example_apple_metal_macos */ = { - isa = PBXNativeTarget; - buildConfigurationList = 8307E7F320E9F9C900473790 /* Build configuration list for PBXNativeTarget "example_apple_metal_macos" */; - buildPhases = ( - 8307E7D620E9F9C900473790 /* Sources */, - 8307E7D720E9F9C900473790 /* Frameworks */, - 8307E7D820E9F9C900473790 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = example_apple_metal_macos; - productName = "imguiex macOS"; - productReference = 8307E7DA20E9F9C900473790 /* example_apple_metal.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 8307E7B620E9F9C700473790 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1200; - ORGANIZATIONNAME = "Warren Moore"; - TargetAttributes = { - 8307E7C320E9F9C900473790 = { - CreatedOnToolsVersion = 9.4.1; - ProvisioningStyle = Automatic; - }; - 8307E7D920E9F9C900473790 = { - CreatedOnToolsVersion = 9.4.1; - ProvisioningStyle = Automatic; - }; - }; - }; - buildConfigurationList = 8307E7B920E9F9C700473790 /* Build configuration list for PBXProject "example_apple_metal" */; - compatibilityVersion = "Xcode 8.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 8307E7B520E9F9C700473790; - productRefGroup = 8307E7C520E9F9C900473790 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 8307E7C320E9F9C900473790 /* example_apple_metal_ios */, - 8307E7D920E9F9C900473790 /* example_apple_metal_macos */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 8307E7C220E9F9C900473790 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8309BDFC253CDAB30045E2A1 /* LaunchScreen.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8307E7D820E9F9C900473790 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8309BE04253CDAB60045E2A1 /* MainMenu.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 8307E7C020E9F9C900473790 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8309BDBB253CCCAD0045E2A1 /* imgui_impl_metal.mm in Sources */, - 83BBEA0920EB54E700295997 /* imgui.cpp in Sources */, - 83BBEA0720EB54E700295997 /* imgui_demo.cpp in Sources */, - 83BBEA0520EB54E700295997 /* imgui_draw.cpp in Sources */, - 5079822E257677DB0038A28D /* imgui_tables.cpp in Sources */, - 07A82ED82139413D0078D120 /* imgui_widgets.cpp in Sources */, - 8309BDA5253CCC070045E2A1 /* main.mm in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8307E7D620E9F9C900473790 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8309BDBE253CCCB60045E2A1 /* imgui_impl_metal.mm in Sources */, - 8309BDBF253CCCB60045E2A1 /* imgui_impl_osx.mm in Sources */, - 83BBEA0A20EB54E700295997 /* imgui.cpp in Sources */, - 83BBEA0820EB54E700295997 /* imgui_demo.cpp in Sources */, - 83BBEA0620EB54E700295997 /* imgui_draw.cpp in Sources */, - 5079822E257677DB0038A28D /* imgui_tables.cpp in Sources */, - 07A82ED92139418F0078D120 /* imgui_widgets.cpp in Sources */, - 8309BDA8253CCC080045E2A1 /* main.mm in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 8307E7EE20E9F9C900473790 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - }; - name = Debug; - }; - 8307E7EF20E9F9C900473790 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MTL_ENABLE_DEBUG_INFO = NO; - }; - name = Release; - }; - 8307E7F120E9F9C900473790 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = ""; - INFOPLIST_FILE = "$(SRCROOT)/iOS/Info-iOS.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "org.imgui.example.apple-metal-ios"; - PRODUCT_NAME = example_apple_metal; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../**"; - }; - name = Debug; - }; - 8307E7F220E9F9C900473790 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = ""; - INFOPLIST_FILE = "$(SRCROOT)/iOS/Info-iOS.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "org.imgui.example.apple-metal-ios"; - PRODUCT_NAME = example_apple_metal; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../**"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 8307E7F420E9F9C900473790 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = ""; - INFOPLIST_FILE = "$(SRCROOT)/macOS/Info-macOS.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; - MACOSX_DEPLOYMENT_TARGET = 10.12; - PRODUCT_BUNDLE_IDENTIFIER = "org.imgui.example.apple-metal-macos"; - PRODUCT_NAME = example_apple_metal; - SDKROOT = macosx; - USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../**"; - }; - name = Debug; - }; - 8307E7F520E9F9C900473790 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = ""; - INFOPLIST_FILE = "$(SRCROOT)/macOS/Info-macOS.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; - MACOSX_DEPLOYMENT_TARGET = 10.12; - PRODUCT_BUNDLE_IDENTIFIER = "org.imgui.example.apple-metal-macos"; - PRODUCT_NAME = example_apple_metal; - SDKROOT = macosx; - USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../**"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 8307E7B920E9F9C700473790 /* Build configuration list for PBXProject "example_apple_metal" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 8307E7EE20E9F9C900473790 /* Debug */, - 8307E7EF20E9F9C900473790 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 8307E7F020E9F9C900473790 /* Build configuration list for PBXNativeTarget "example_apple_metal_ios" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 8307E7F120E9F9C900473790 /* Debug */, - 8307E7F220E9F9C900473790 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 8307E7F320E9F9C900473790 /* Build configuration list for PBXNativeTarget "example_apple_metal_macos" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 8307E7F420E9F9C900473790 /* Debug */, - 8307E7F520E9F9C900473790 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 8307E7B620E9F9C700473790 /* Project object */; -} diff --git a/third_party/imgui/examples/example_apple_metal/iOS/Info-iOS.plist b/third_party/imgui/examples/example_apple_metal/iOS/Info-iOS.plist deleted file mode 100644 index 93ef078d..00000000 --- a/third_party/imgui/examples/example_apple_metal/iOS/Info-iOS.plist +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - imgui - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIRequiredDeviceCapabilities - - armv7 - metal - - UIRequiresFullScreen - - UIStatusBarHidden - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - UIInterfaceOrientationPortraitUpsideDown - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/third_party/imgui/examples/example_apple_metal/iOS/LaunchScreen.storyboard b/third_party/imgui/examples/example_apple_metal/iOS/LaunchScreen.storyboard deleted file mode 100644 index 12c52cfb..00000000 --- a/third_party/imgui/examples/example_apple_metal/iOS/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_apple_metal/macOS/Info-macOS.plist b/third_party/imgui/examples/example_apple_metal/macOS/Info-macOS.plist deleted file mode 100644 index 6f4a2b23..00000000 --- a/third_party/imgui/examples/example_apple_metal/macOS/Info-macOS.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIconFile - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - imgui - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) - NSMainStoryboardFile - MainMenu - NSPrincipalClass - NSApplication - - diff --git a/third_party/imgui/examples/example_apple_metal/macOS/MainMenu.storyboard b/third_party/imgui/examples/example_apple_metal/macOS/MainMenu.storyboard deleted file mode 100644 index 38ad432b..00000000 --- a/third_party/imgui/examples/example_apple_metal/macOS/MainMenu.storyboard +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_apple_metal/main.mm b/third_party/imgui/examples/example_apple_metal/main.mm deleted file mode 100644 index 273811d3..00000000 --- a/third_party/imgui/examples/example_apple_metal/main.mm +++ /dev/null @@ -1,394 +0,0 @@ -// Dear ImGui: standalone example application for OSX + Metal. -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#import - -#if TARGET_OS_OSX -#import -#else -#import -#endif - -#import -#import - -#include "imgui.h" -#include "imgui_impl_metal.h" - -#if TARGET_OS_OSX -#include "imgui_impl_osx.h" - -@interface ViewController : NSViewController -@end -#else -@interface ViewController : UIViewController -@end -#endif - -@interface ViewController () -@property (nonatomic, readonly) MTKView *mtkView; -@property (nonatomic, strong) id device; -@property (nonatomic, strong) id commandQueue; -@end - -@implementation ViewController - -- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil -{ - self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; - - _device = MTLCreateSystemDefaultDevice(); - _commandQueue = [_device newCommandQueue]; - - if (!self.device) - { - NSLog(@"Metal is not supported"); - abort(); - } - - // Setup Dear ImGui context - // FIXME: This example doesn't have proper cleanup... - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Renderer backend - ImGui_ImplMetal_Init(_device); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.txt' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - return self; -} - -- (MTKView *)mtkView -{ - return (MTKView *)self.view; -} - -- (void)loadView -{ - self.view = [[MTKView alloc] initWithFrame:CGRectMake(0, 0, 1200, 720)]; -} - -- (void)viewDidLoad -{ - [super viewDidLoad]; - - self.mtkView.device = self.device; - self.mtkView.delegate = self; - -#if TARGET_OS_OSX - // Add a tracking area in order to receive mouse events whenever the mouse is within the bounds of our view - NSTrackingArea *trackingArea = [[NSTrackingArea alloc] initWithRect:NSZeroRect - options:NSTrackingMouseMoved | NSTrackingInVisibleRect | NSTrackingActiveAlways - owner:self - userInfo:nil]; - [self.view addTrackingArea:trackingArea]; - - // If we want to receive key events, we either need to be in the responder chain of the key view, - // or else we can install a local monitor. The consequence of this heavy-handed approach is that - // we receive events for all controls, not just Dear ImGui widgets. If we had native controls in our - // window, we'd want to be much more careful than just ingesting the complete event stream. - // To match the behavior of other backends, we pass every event down to the OS. - NSEventMask eventMask = NSEventMaskKeyDown | NSEventMaskKeyUp | NSEventMaskFlagsChanged | NSEventTypeScrollWheel; - [NSEvent addLocalMonitorForEventsMatchingMask:eventMask handler:^NSEvent * _Nullable(NSEvent *event) - { - ImGui_ImplOSX_HandleEvent(event, self.view); - return event; - }]; - - ImGui_ImplOSX_Init(); - -#endif -} - -#pragma mark - Interaction - -#if TARGET_OS_OSX - -- (void)mouseMoved:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)mouseDown:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)rightMouseDown:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)otherMouseDown:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)mouseUp:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)rightMouseUp:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)otherMouseUp:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)mouseDragged:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)rightMouseDragged:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)otherMouseDragged:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -- (void)scrollWheel:(NSEvent *)event { - ImGui_ImplOSX_HandleEvent(event, self.view); -} - -#else - -// This touch mapping is super cheesy/hacky. We treat any touch on the screen -// as if it were a depressed left mouse button, and we don't bother handling -// multitouch correctly at all. This causes the "cursor" to behave very erratically -// when there are multiple active touches. But for demo purposes, single-touch -// interaction actually works surprisingly well. -- (void)updateIOWithTouchEvent:(UIEvent *)event -{ - UITouch *anyTouch = event.allTouches.anyObject; - CGPoint touchLocation = [anyTouch locationInView:self.view]; - ImGuiIO &io = ImGui::GetIO(); - io.MousePos = ImVec2(touchLocation.x, touchLocation.y); - - BOOL hasActiveTouch = NO; - for (UITouch *touch in event.allTouches) - { - if (touch.phase != UITouchPhaseEnded && touch.phase != UITouchPhaseCancelled) - { - hasActiveTouch = YES; - break; - } - } - io.MouseDown[0] = hasActiveTouch; -} - -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - [self updateIOWithTouchEvent:event]; -} - -- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event -{ - [self updateIOWithTouchEvent:event]; -} - -- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event -{ - [self updateIOWithTouchEvent:event]; -} - -- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event -{ - [self updateIOWithTouchEvent:event]; -} - -#endif - -#pragma mark - MTKViewDelegate - -- (void)drawInMTKView:(MTKView*)view -{ - ImGuiIO& io = ImGui::GetIO(); - io.DisplaySize.x = view.bounds.size.width; - io.DisplaySize.y = view.bounds.size.height; - -#if TARGET_OS_OSX - CGFloat framebufferScale = view.window.screen.backingScaleFactor ?: NSScreen.mainScreen.backingScaleFactor; -#else - CGFloat framebufferScale = view.window.screen.scale ?: UIScreen.mainScreen.scale; -#endif - io.DisplayFramebufferScale = ImVec2(framebufferScale, framebufferScale); - - io.DeltaTime = 1 / float(view.preferredFramesPerSecond ?: 60); - - id commandBuffer = [self.commandQueue commandBuffer]; - - // Our state (make them static = more or less global) as a convenience to keep the example terse. - static bool show_demo_window = true; - static bool show_another_window = false; - static float clear_color[4] = { 0.28f, 0.36f, 0.5f, 1.0f }; - - MTLRenderPassDescriptor* renderPassDescriptor = view.currentRenderPassDescriptor; - if (renderPassDescriptor != nil) - { - renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(clear_color[0] * clear_color[3], clear_color[1] * clear_color[3], clear_color[2] * clear_color[3], clear_color[3]); - - // Here, you could do additional rendering work, including other passes as necessary. - - id renderEncoder = [commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor]; - [renderEncoder pushDebugGroup:@"ImGui demo"]; - - // Start the Dear ImGui frame - ImGui_ImplMetal_NewFrame(renderPassDescriptor); -#if TARGET_OS_OSX - ImGui_ImplOSX_NewFrame(view); -#endif - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - ImDrawData* draw_data = ImGui::GetDrawData(); - ImGui_ImplMetal_RenderDrawData(draw_data, commandBuffer, renderEncoder); - - [renderEncoder popDebugGroup]; - [renderEncoder endEncoding]; - - [commandBuffer presentDrawable:view.currentDrawable]; - } - - [commandBuffer commit]; -} - -- (void)mtkView:(MTKView*)view drawableSizeWillChange:(CGSize)size -{ -} - -@end - -#pragma mark - Application Delegate - -#if TARGET_OS_OSX - -@interface AppDelegate : NSObject -@property (nonatomic, strong) NSWindow *window; -@end - -@implementation AppDelegate - -- (instancetype)init -{ - if (self = [super init]) - { - NSViewController *rootViewController = [[ViewController alloc] initWithNibName:nil bundle:nil]; - self.window = [[NSWindow alloc] initWithContentRect:NSZeroRect - styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable | NSWindowStyleMaskMiniaturizable - backing:NSBackingStoreBuffered - defer:NO]; - self.window.contentViewController = rootViewController; - [self.window orderFront:self]; - [self.window center]; - [self.window becomeKeyWindow]; - } - return self; -} - -- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender -{ - return YES; -} - -@end - -#else - -@interface AppDelegate : UIResponder -@property (strong, nonatomic) UIWindow *window; -@end - -@implementation AppDelegate - -- (BOOL)application:(UIApplication *)application - didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ - UIViewController *rootViewController = [[ViewController alloc] init]; - self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds]; - self.window.rootViewController = rootViewController; - [self.window makeKeyAndVisible]; - return YES; -} - -@end - -#endif - -#pragma mark - main() - -#if TARGET_OS_OSX - -int main(int argc, const char * argv[]) -{ - return NSApplicationMain(argc, argv); -} - -#else - -int main(int argc, char * argv[]) -{ - @autoreleasepool - { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} - -#endif diff --git a/third_party/imgui/examples/example_apple_opengl2/example_apple_opengl2.xcodeproj/project.pbxproj b/third_party/imgui/examples/example_apple_opengl2/example_apple_opengl2.xcodeproj/project.pbxproj deleted file mode 100644 index 42d6095d..00000000 --- a/third_party/imgui/examples/example_apple_opengl2/example_apple_opengl2.xcodeproj/project.pbxproj +++ /dev/null @@ -1,330 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 48; - objects = { - -/* Begin PBXBuildFile section */ - 07A82EDB213941D00078D120 /* imgui_widgets.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07A82EDA213941D00078D120 /* imgui_widgets.cpp */; }; - 4080A99820B02D340036BA46 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4080A98A20B02CD90036BA46 /* main.mm */; }; - 4080A9A220B034280036BA46 /* imgui_impl_opengl2.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4080A99E20B034280036BA46 /* imgui_impl_opengl2.cpp */; }; - 4080A9AD20B0343C0036BA46 /* imgui_demo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4080A9A620B0343C0036BA46 /* imgui_demo.cpp */; }; - 4080A9AE20B0343C0036BA46 /* imgui.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4080A9A720B0343C0036BA46 /* imgui.cpp */; }; - 4080A9AF20B0343C0036BA46 /* imgui_draw.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4080A9AA20B0343C0036BA46 /* imgui_draw.cpp */; }; - 4080A9B020B0347A0036BA46 /* imgui_impl_osx.mm in Sources */ = {isa = PBXBuildFile; fileRef = 4080A99F20B034280036BA46 /* imgui_impl_osx.mm */; }; - 4080A9B320B034E40036BA46 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4080A9B220B034E40036BA46 /* Cocoa.framework */; }; - 4080A9B520B034EA0036BA46 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4080A9B420B034EA0036BA46 /* OpenGL.framework */; }; - 50798230257677FD0038A28D /* imgui_tables.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5079822F257677FC0038A28D /* imgui_tables.cpp */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 4080A96920B029B00036BA46 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = /usr/share/man/man1/; - dstSubfolderSpec = 0; - files = ( - ); - runOnlyForDeploymentPostprocessing = 1; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 07A82EDA213941D00078D120 /* imgui_widgets.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_widgets.cpp; path = ../../imgui_widgets.cpp; sourceTree = ""; }; - 4080A96B20B029B00036BA46 /* example_osx_opengl2 */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = example_osx_opengl2; sourceTree = BUILT_PRODUCTS_DIR; }; - 4080A98A20B02CD90036BA46 /* main.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = main.mm; sourceTree = SOURCE_ROOT; }; - 4080A99E20B034280036BA46 /* imgui_impl_opengl2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_impl_opengl2.cpp; path = ../../backends/imgui_impl_opengl2.cpp; sourceTree = ""; }; - 4080A99F20B034280036BA46 /* imgui_impl_osx.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = imgui_impl_osx.mm; path = ../../backends/imgui_impl_osx.mm; sourceTree = ""; }; - 4080A9A020B034280036BA46 /* imgui_impl_opengl2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_impl_opengl2.h; path = ../../backends/imgui_impl_opengl2.h; sourceTree = ""; }; - 4080A9A120B034280036BA46 /* imgui_impl_osx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_impl_osx.h; path = ../../backends/imgui_impl_osx.h; sourceTree = ""; }; - 4080A9A520B0343C0036BA46 /* imgui_internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui_internal.h; path = ../../imgui_internal.h; sourceTree = ""; }; - 4080A9A620B0343C0036BA46 /* imgui_demo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_demo.cpp; path = ../../imgui_demo.cpp; sourceTree = ""; }; - 4080A9A720B0343C0036BA46 /* imgui.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui.cpp; path = ../../imgui.cpp; sourceTree = ""; }; - 4080A9A820B0343C0036BA46 /* imgui.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imgui.h; path = ../../imgui.h; sourceTree = ""; }; - 4080A9AA20B0343C0036BA46 /* imgui_draw.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_draw.cpp; path = ../../imgui_draw.cpp; sourceTree = ""; }; - 4080A9AC20B0343C0036BA46 /* imconfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = imconfig.h; path = ../../imconfig.h; sourceTree = ""; }; - 4080A9B220B034E40036BA46 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; - 4080A9B420B034EA0036BA46 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; }; - 5079822F257677FC0038A28D /* imgui_tables.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = imgui_tables.cpp; path = ../../imgui_tables.cpp; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 4080A96820B029B00036BA46 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 4080A9B520B034EA0036BA46 /* OpenGL.framework in Frameworks */, - 4080A9B320B034E40036BA46 /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 4080A96220B029B00036BA46 = { - isa = PBXGroup; - children = ( - 5079822F257677FC0038A28D /* imgui_tables.cpp */, - 4080A9AC20B0343C0036BA46 /* imconfig.h */, - 4080A9A720B0343C0036BA46 /* imgui.cpp */, - 4080A9A820B0343C0036BA46 /* imgui.h */, - 07A82EDA213941D00078D120 /* imgui_widgets.cpp */, - 4080A9A620B0343C0036BA46 /* imgui_demo.cpp */, - 4080A9AA20B0343C0036BA46 /* imgui_draw.cpp */, - 4080A9A520B0343C0036BA46 /* imgui_internal.h */, - 4080A99E20B034280036BA46 /* imgui_impl_opengl2.cpp */, - 4080A9A020B034280036BA46 /* imgui_impl_opengl2.h */, - 4080A9A120B034280036BA46 /* imgui_impl_osx.h */, - 4080A99F20B034280036BA46 /* imgui_impl_osx.mm */, - 4080A98A20B02CD90036BA46 /* main.mm */, - 4080A96C20B029B00036BA46 /* Products */, - 4080A9B120B034E40036BA46 /* Frameworks */, - ); - sourceTree = ""; - }; - 4080A96C20B029B00036BA46 /* Products */ = { - isa = PBXGroup; - children = ( - 4080A96B20B029B00036BA46 /* example_osx_opengl2 */, - ); - name = Products; - sourceTree = ""; - }; - 4080A9B120B034E40036BA46 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 4080A9B420B034EA0036BA46 /* OpenGL.framework */, - 4080A9B220B034E40036BA46 /* Cocoa.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 4080A96A20B029B00036BA46 /* example_osx_opengl2 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 4080A97220B029B00036BA46 /* Build configuration list for PBXNativeTarget "example_osx_opengl2" */; - buildPhases = ( - 4080A96720B029B00036BA46 /* Sources */, - 4080A96820B029B00036BA46 /* Frameworks */, - 4080A96920B029B00036BA46 /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = example_osx_opengl2; - productName = example_osx_opengl2; - productReference = 4080A96B20B029B00036BA46 /* example_osx_opengl2 */; - productType = "com.apple.product-type.tool"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 4080A96320B029B00036BA46 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0930; - ORGANIZATIONNAME = ImGui; - TargetAttributes = { - 4080A96A20B029B00036BA46 = { - CreatedOnToolsVersion = 9.3.1; - ProvisioningStyle = Automatic; - }; - }; - }; - buildConfigurationList = 4080A96620B029B00036BA46 /* Build configuration list for PBXProject "example_apple_opengl2" */; - compatibilityVersion = "Xcode 8.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 4080A96220B029B00036BA46; - productRefGroup = 4080A96C20B029B00036BA46 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 4080A96A20B029B00036BA46 /* example_osx_opengl2 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - 4080A96720B029B00036BA46 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 4080A99820B02D340036BA46 /* main.mm in Sources */, - 4080A9AD20B0343C0036BA46 /* imgui_demo.cpp in Sources */, - 4080A9AF20B0343C0036BA46 /* imgui_draw.cpp in Sources */, - 4080A9A220B034280036BA46 /* imgui_impl_opengl2.cpp in Sources */, - 4080A9B020B0347A0036BA46 /* imgui_impl_osx.mm in Sources */, - 4080A9AE20B0343C0036BA46 /* imgui.cpp in Sources */, - 50798230257677FD0038A28D /* imgui_tables.cpp in Sources */, - 07A82EDB213941D00078D120 /* imgui_widgets.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 4080A97020B029B00036BA46 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.13; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - }; - name = Debug; - }; - 4080A97120B029B00036BA46 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = "-"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.13; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; - }; - name = Release; - }; - 4080A97320B029B00036BA46 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - MACOSX_DEPLOYMENT_TARGET = 10.12; - PRODUCT_NAME = "$(TARGET_NAME)"; - SYSTEM_HEADER_SEARCH_PATHS = ../libs/gl3w; - USER_HEADER_SEARCH_PATHS = ../..; - }; - name = Debug; - }; - 4080A97420B029B00036BA46 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - MACOSX_DEPLOYMENT_TARGET = 10.12; - PRODUCT_NAME = "$(TARGET_NAME)"; - SYSTEM_HEADER_SEARCH_PATHS = ../libs/gl3w; - USER_HEADER_SEARCH_PATHS = ../..; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 4080A96620B029B00036BA46 /* Build configuration list for PBXProject "example_apple_opengl2" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4080A97020B029B00036BA46 /* Debug */, - 4080A97120B029B00036BA46 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 4080A97220B029B00036BA46 /* Build configuration list for PBXNativeTarget "example_osx_opengl2" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 4080A97320B029B00036BA46 /* Debug */, - 4080A97420B029B00036BA46 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 4080A96320B029B00036BA46 /* Project object */; -} diff --git a/third_party/imgui/examples/example_apple_opengl2/main.mm b/third_party/imgui/examples/example_apple_opengl2/main.mm deleted file mode 100644 index 9af396b6..00000000 --- a/third_party/imgui/examples/example_apple_opengl2/main.mm +++ /dev/null @@ -1,290 +0,0 @@ -// Dear ImGui: standalone example application for OSX + OpenGL2, using legacy fixed pipeline -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "../../backends/imgui_impl_osx.h" -#include "../../backends/imgui_impl_opengl2.h" -#include -#import -#import -#import - -//----------------------------------------------------------------------------------- -// ImGuiExampleView -//----------------------------------------------------------------------------------- - -@interface ImGuiExampleView : NSOpenGLView -{ - NSTimer* animationTimer; -} -@end - -@implementation ImGuiExampleView - --(void)animationTimerFired:(NSTimer*)timer -{ - [self setNeedsDisplay:YES]; -} - --(void)prepareOpenGL -{ - [super prepareOpenGL]; - -#ifndef DEBUG - GLint swapInterval = 1; - [[self openGLContext] setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval]; - if (swapInterval == 0) - NSLog(@"Error: Cannot set swap interval."); -#endif -} - --(void)updateAndDrawDemoView -{ - // Start the Dear ImGui frame - ImGui_ImplOpenGL2_NewFrame(); - ImGui_ImplOSX_NewFrame(self); - ImGui::NewFrame(); - - // Our state (make them static = more or less global) as a convenience to keep the example terse. - static bool show_demo_window = true; - static bool show_another_window = false; - static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - [[self openGLContext] makeCurrentContext]; - - ImDrawData* draw_data = ImGui::GetDrawData(); - GLsizei width = (GLsizei)(draw_data->DisplaySize.x * draw_data->FramebufferScale.x); - GLsizei height = (GLsizei)(draw_data->DisplaySize.y * draw_data->FramebufferScale.y); - glViewport(0, 0, width, height); - - glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); - glClear(GL_COLOR_BUFFER_BIT); - ImGui_ImplOpenGL2_RenderDrawData(draw_data); - - // Present - [[self openGLContext] flushBuffer]; - - if (!animationTimer) - animationTimer = [NSTimer scheduledTimerWithTimeInterval:0.017 target:self selector:@selector(animationTimerFired:) userInfo:nil repeats:YES]; -} - --(void)reshape -{ - [[self openGLContext] update]; - [self updateAndDrawDemoView]; -} - --(void)drawRect:(NSRect)bounds -{ - [self updateAndDrawDemoView]; -} - --(BOOL)acceptsFirstResponder -{ - return (YES); -} - --(BOOL)becomeFirstResponder -{ - return (YES); -} - --(BOOL)resignFirstResponder -{ - return (YES); -} - --(void)dealloc -{ - animationTimer = nil; -} - -// Forward Mouse/Keyboard events to Dear ImGui OSX backend. --(void)keyUp:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)keyDown:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)flagsChanged:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)mouseDown:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)rightMouseDown:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)otherMouseDown:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)mouseUp:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)rightMouseUp:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)otherMouseUp:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)mouseMoved:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)rightMouseMoved:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)otherMouseMoved:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)mouseDragged:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)rightMouseDragged:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)otherMouseDragged:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } --(void)scrollWheel:(NSEvent *)event { ImGui_ImplOSX_HandleEvent(event, self); } - -@end - -//----------------------------------------------------------------------------------- -// ImGuiExampleAppDelegate -//----------------------------------------------------------------------------------- - -@interface ImGuiExampleAppDelegate : NSObject -@property (nonatomic, readonly) NSWindow* window; -@end - -@implementation ImGuiExampleAppDelegate -@synthesize window = _window; - --(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication -{ - return YES; -} - --(NSWindow*)window -{ - if (_window != nil) - return (_window); - - NSRect viewRect = NSMakeRect(100.0, 100.0, 100.0 + 1280.0, 100 + 720.0); - - _window = [[NSWindow alloc] initWithContentRect:viewRect styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskMiniaturizable|NSWindowStyleMaskResizable|NSWindowStyleMaskClosable backing:NSBackingStoreBuffered defer:YES]; - [_window setTitle:@"Dear ImGui OSX+OpenGL2 Example"]; - [_window setAcceptsMouseMovedEvents:YES]; - [_window setOpaque:YES]; - [_window makeKeyAndOrderFront:NSApp]; - - return (_window); -} - --(void)setupMenu -{ - NSMenu* mainMenuBar = [[NSMenu alloc] init]; - NSMenu* appMenu; - NSMenuItem* menuItem; - - appMenu = [[NSMenu alloc] initWithTitle:@"Dear ImGui OSX+OpenGL2 Example"]; - menuItem = [appMenu addItemWithTitle:@"Quit Dear ImGui OSX+OpenGL2 Example" action:@selector(terminate:) keyEquivalent:@"q"]; - [menuItem setKeyEquivalentModifierMask:NSEventModifierFlagCommand]; - - menuItem = [[NSMenuItem alloc] init]; - [menuItem setSubmenu:appMenu]; - - [mainMenuBar addItem:menuItem]; - - appMenu = nil; - [NSApp setMainMenu:mainMenuBar]; -} - --(void)dealloc -{ - _window = nil; -} - --(void)applicationDidFinishLaunching:(NSNotification *)aNotification -{ - // Make the application a foreground application (else it won't receive keyboard events) - ProcessSerialNumber psn = {0, kCurrentProcess}; - TransformProcessType(&psn, kProcessTransformToForegroundApplication); - - // Menu - [self setupMenu]; - - NSOpenGLPixelFormatAttribute attrs[] = - { - NSOpenGLPFADoubleBuffer, - NSOpenGLPFADepthSize, 32, - 0 - }; - - NSOpenGLPixelFormat* format = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs]; - ImGuiExampleView* view = [[ImGuiExampleView alloc] initWithFrame:self.window.frame pixelFormat:format]; - format = nil; -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) - [view setWantsBestResolutionOpenGLSurface:YES]; -#endif // MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 - [self.window setContentView:view]; - - if ([view openGLContext] == nil) - NSLog(@"No OpenGL Context!"); - - // Setup Dear ImGui context - // FIXME: This example doesn't have proper cleanup... - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplOSX_Init(); - ImGui_ImplOpenGL2_Init(); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.txt' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); -} - -@end - -int main(int argc, const char* argv[]) -{ - @autoreleasepool - { - NSApp = [NSApplication sharedApplication]; - ImGuiExampleAppDelegate* delegate = [[ImGuiExampleAppDelegate alloc] init]; - [[NSApplication sharedApplication] setDelegate:delegate]; - [NSApp run]; - } - return NSApplicationMain(argc, argv); -} diff --git a/third_party/imgui/examples/example_emscripten_opengl3/Makefile b/third_party/imgui/examples/example_emscripten_opengl3/Makefile deleted file mode 100644 index ff28ef5c..00000000 --- a/third_party/imgui/examples/example_emscripten_opengl3/Makefile +++ /dev/null @@ -1,92 +0,0 @@ -# -# Makefile to use with emscripten -# See https://emscripten.org/docs/getting_started/downloads.html -# for installation instructions. -# -# This Makefile assumes you have loaded emscripten's environment. -# (On Windows, you may need to execute emsdk_env.bat or encmdprompt.bat ahead) -# -# Running `make` will produce three files: -# - web/index.html -# - web/index.js -# - web/index.wasm -# -# All three are needed to run the demo. - -CC = emcc -CXX = em++ -WEB_DIR = web -EXE = $(WEB_DIR)/index.html -IMGUI_DIR = ../.. -SOURCES = main.cpp -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) -UNAME_S := $(shell uname -s) - -##--------------------------------------------------------------------- -## EMSCRIPTEN OPTIONS -##--------------------------------------------------------------------- - -EMS += -s USE_SDL=2 -s WASM=1 -EMS += -s ALLOW_MEMORY_GROWTH=1 -EMS += -s DISABLE_EXCEPTION_CATCHING=1 -s NO_EXIT_RUNTIME=0 -EMS += -s ASSERTIONS=1 - -# Uncomment next line to fix possible rendering bugs with Emscripten version older then 1.39.0 (https://github.com/ocornut/imgui/issues/2877) -#EMS += -s BINARYEN_TRAP_MODE=clamp -#EMS += -s SAFE_HEAP=1 ## Adds overhead - -# Emscripten allows preloading a file or folder to be accessible at runtime. -# The Makefile for this example project suggests embedding the misc/fonts/ folder into our application, it will then be accessible as "/fonts" -# See documentation for more details: https://emscripten.org/docs/porting/files/packaging_files.html -# (Default value is 0. Set to 1 to enable file-system and include the misc/fonts/ folder as part of the build.) -USE_FILE_SYSTEM ?= 0 -ifeq ($(USE_FILE_SYSTEM), 0) -EMS += -s NO_FILESYSTEM=1 -DIMGUI_DISABLE_FILE_FUNCTIONS -endif -ifeq ($(USE_FILE_SYSTEM), 1) -LDFLAGS += --no-heap-copy --preload-file ../../misc/fonts@/fonts -endif - -##--------------------------------------------------------------------- -## FINAL BUILD FLAGS -##--------------------------------------------------------------------- - -CPPFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -#CPPFLAGS += -g -CPPFLAGS += -Wall -Wformat -Os -CPPFLAGS += $(EMS) -LIBS += $(EMS) -LDFLAGS += --shell-file shell_minimal.html - -##--------------------------------------------------------------------- -## BUILD RULES -##--------------------------------------------------------------------- - -%.o:%.cpp - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< - -%.o:../libs/gl3w/GL/%.c - $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< - -all: $(EXE) - @echo Build complete for $(EXE) - -$(WEB_DIR): - mkdir $@ - -serve: all - python3 -m http.server -d $(WEB_DIR) - -$(EXE): $(OBJS) $(WEB_DIR) - $(CXX) -o $@ $(OBJS) $(LIBS) $(LDFLAGS) - -clean: - rm -rf $(OBJS) $(WEB_DIR) diff --git a/third_party/imgui/examples/example_emscripten_opengl3/README.md b/third_party/imgui/examples/example_emscripten_opengl3/README.md deleted file mode 100644 index fddd9229..00000000 --- a/third_party/imgui/examples/example_emscripten_opengl3/README.md +++ /dev/null @@ -1,22 +0,0 @@ -## How to Build - -- You need to install Emscripten from https://emscripten.org/docs/getting_started/downloads.html, and have the environment variables set, as described in https://emscripten.org/docs/getting_started/downloads.html#installation-instructions -- You may also refer to our [Continuous Integration setup](https://github.com/ocornut/imgui/tree/master/.github/workflows) for Emscripten setup. -- Depending on your configuration, in Windows you may need to run `emsdk/emsdk_env.bat` in your console to access the Emscripten command-line tools. -- Then build using `make` while in the `example_emscripten_opengl3/` directory. - -## How to Run - -To run on a local machine: -- `make serve` will use Python3 to spawn a local webserver, you can then browse http://localhost:8000 to access your build. -- Otherwise, generally you will need a local webserver: - - Quoting [https://emscripten.org/docs/getting_started](https://emscripten.org/docs/getting_started/Tutorial.html#generating-html):
-_"Unfortunately several browsers (including Chrome, Safari, and Internet Explorer) do not support file:// [XHR](https://emscripten.org/docs/site/glossary.html#term-xhr) requests, and can’t load extra files needed by the HTML (like a .wasm file, or packaged file data as mentioned lower down). For these browsers you’ll need to serve the files using a [local webserver](https://emscripten.org/docs/getting_started/FAQ.html#faq-local-webserver) and then open http://localhost:8000/hello.html."_ - - Emscripten SDK has a handy `emrun` command: `emrun web/example_emscripten_opengl3.html --browser firefox` which will spawn a temporary local webserver (in Firefox). See https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html for details. - - You may use Python 3 builtin webserver: `python -m http.server -d web` (this is what `make serve` uses). - - You may use Python 2 builtin webserver: `cd web && python -m SimpleHTTPServer`. - -## Obsolete features: - -- Emscripten 2.0 (August 2020) obsoleted the fastcomp backend, only llvm is supported. -- Emscripten 1.39.0 (October 2019) obsoleted the `BINARYEN_TRAP_MODE=clamp` compilation flag which was required with version older than 1.39.0 to avoid rendering artefacts. See [#2877](https://github.com/ocornut/imgui/issues/2877) for details. If you use an older version, uncomment this line in the Makefile: `#EMS += -s BINARYEN_TRAP_MODE=clamp` diff --git a/third_party/imgui/examples/example_emscripten_opengl3/main.cpp b/third_party/imgui/examples/example_emscripten_opengl3/main.cpp deleted file mode 100644 index 875ecbb6..00000000 --- a/third_party/imgui/examples/example_emscripten_opengl3/main.cpp +++ /dev/null @@ -1,174 +0,0 @@ -// Dear ImGui: standalone example application for Emscripten, using SDL2 + OpenGL3 -// (Emscripten is a C++-to-javascript compiler, used to publish executables for the web. See https://emscripten.org/) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// This is mostly the same code as the SDL2 + OpenGL3 example, simply with the modifications needed to run on Emscripten. -// It is possible to combine both code into a single source file that will compile properly on Desktop and using Emscripten. -// See https://github.com/ocornut/imgui/pull/2492 as an example on how to do just that. - -#include "imgui.h" -#include "imgui_impl_sdl.h" -#include "imgui_impl_opengl3.h" -#include -#include -#include -#include - -// Emscripten requires to have full control over the main loop. We're going to store our SDL book-keeping variables globally. -// Having a single function that acts as a loop prevents us to store state in the stack of said function. So we need some location for this. -SDL_Window* g_Window = NULL; -SDL_GLContext g_GLContext = NULL; - -// For clarity, our main loop code is declared at the end. -static void main_loop(void*); - -int main(int, char**) -{ - // Setup SDL - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) - { - printf("Error: %s\n", SDL_GetError()); - return -1; - } - - // For the browser using Emscripten, we are going to use WebGL1 with GL ES2. See the Makefile. for requirement details. - // It is very likely the generated file won't work in many browsers. Firefox is the only sure bet, but I have successfully - // run this code on Chrome for Android for example. - const char* glsl_version = "#version 100"; - //const char* glsl_version = "#version 300 es"; - SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); - - // Create window with graphics context - SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); - SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); - SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); - SDL_DisplayMode current; - SDL_GetCurrentDisplayMode(0, ¤t); - SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); - g_Window = SDL_CreateWindow("Dear ImGui Emscripten example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); - g_GLContext = SDL_GL_CreateContext(g_Window); - if (!g_GLContext) - { - fprintf(stderr, "Failed to initialize WebGL context!\n"); - return 1; - } - SDL_GL_SetSwapInterval(1); // Enable vsync - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // For an Emscripten build we are disabling file-system access, so let's not attempt to do a fopen() of the imgui.ini file. - // You may manually call LoadIniSettingsFromMemory() to load settings from your own storage. - io.IniFilename = NULL; - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplSDL2_InitForOpenGL(g_Window, g_GLContext); - ImGui_ImplOpenGL3_Init(glsl_version); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - // - Emscripten allows preloading a file or folder to be accessible at runtime. See Makefile for details. - //io.Fonts->AddFontDefault(); -#ifndef IMGUI_DISABLE_FILE_FUNCTIONS - io.Fonts->AddFontFromFileTTF("fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("fonts/ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); -#endif - - // This function call won't return, and will engage in an infinite loop, processing events from the browser, and dispatching them. - emscripten_set_main_loop_arg(main_loop, NULL, 0, true); -} - -static void main_loop(void* arg) -{ - ImGuiIO& io = ImGui::GetIO(); - IM_UNUSED(arg); // We can pass this argument as the second parameter of emscripten_set_main_loop_arg(), but we don't use that. - - // Our state (make them static = more or less global) as a convenience to keep the example terse. - static bool show_demo_window = true; - static bool show_another_window = false; - static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - SDL_Event event; - while (SDL_PollEvent(&event)) - { - ImGui_ImplSDL2_ProcessEvent(&event); - // Capture events here, based on io.WantCaptureMouse and io.WantCaptureKeyboard - } - - // Start the Dear ImGui frame - ImGui_ImplOpenGL3_NewFrame(); - ImGui_ImplSDL2_NewFrame(g_Window); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - SDL_GL_MakeCurrent(g_Window, g_GLContext); - glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); - glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); - glClear(GL_COLOR_BUFFER_BIT); - ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); - SDL_GL_SwapWindow(g_Window); -} diff --git a/third_party/imgui/examples/example_emscripten_opengl3/shell_minimal.html b/third_party/imgui/examples/example_emscripten_opengl3/shell_minimal.html deleted file mode 100644 index 514385d7..00000000 --- a/third_party/imgui/examples/example_emscripten_opengl3/shell_minimal.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - Dear ImGui Emscripten example - - - - - - {{{ SCRIPT }}} - - diff --git a/third_party/imgui/examples/example_emscripten_wgpu/Makefile b/third_party/imgui/examples/example_emscripten_wgpu/Makefile deleted file mode 100644 index de1792fe..00000000 --- a/third_party/imgui/examples/example_emscripten_wgpu/Makefile +++ /dev/null @@ -1,85 +0,0 @@ -# -# Makefile to use with emscripten -# See https://emscripten.org/docs/getting_started/downloads.html -# for installation instructions. -# -# This Makefile assumes you have loaded emscripten's environment. -# (On Windows, you may need to execute emsdk_env.bat or encmdprompt.bat ahead) -# -# Running `make` will produce three files: -# - web/index.html (current stored in the repository) -# - web/index.js -# - web/index.wasm -# -# All three are needed to run the demo. - -CC = emcc -CXX = em++ -WEB_DIR = web -EXE = $(WEB_DIR)/index.js -IMGUI_DIR = ../.. -SOURCES = main.cpp -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_wgpu.cpp -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) -UNAME_S := $(shell uname -s) - -##--------------------------------------------------------------------- -## EMSCRIPTEN OPTIONS -##--------------------------------------------------------------------- - -EMS += -s USE_GLFW=3 -s USE_WEBGPU=1 -s WASM=1 -EMS += -s ALLOW_MEMORY_GROWTH=1 -EMS += -s DISABLE_EXCEPTION_CATCHING=1 -s NO_EXIT_RUNTIME=0 -EMS += -s ASSERTIONS=1 - -# Emscripten allows preloading a file or folder to be accessible at runtime. -# The Makefile for this example project suggests embedding the misc/fonts/ folder into our application, it will then be accessible as "/fonts" -# See documentation for more details: https://emscripten.org/docs/porting/files/packaging_files.html -# (Default value is 0. Set to 1 to enable file-system and include the misc/fonts/ folder as part of the build.) -USE_FILE_SYSTEM ?= 0 -ifeq ($(USE_FILE_SYSTEM), 0) -EMS += -s NO_FILESYSTEM=1 -DIMGUI_DISABLE_FILE_FUNCTIONS -endif -ifeq ($(USE_FILE_SYSTEM), 1) -LDFLAGS += --no-heap-copy --preload-file ../../misc/fonts@/fonts -endif - -##--------------------------------------------------------------------- -## FINAL BUILD FLAGS -##--------------------------------------------------------------------- - -CPPFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -#CPPFLAGS += -g -CPPFLAGS += -Wall -Wformat -Os -CPPFLAGS += $(EMS) -LIBS += $(EMS) -#LDFLAGS += --shell-file shell_minimal.html - -##--------------------------------------------------------------------- -## BUILD RULES -##--------------------------------------------------------------------- - -%.o:%.cpp - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< - -all: $(EXE) - @echo Build complete for $(EXE) - -$(WEB_DIR): - mkdir $@ - -serve: all - python3 -m http.server -d $(WEB_DIR) - -$(EXE): $(OBJS) $(WEB_DIR) - $(CXX) -o $@ $(OBJS) $(LIBS) $(LDFLAGS) - -clean: - rm -f $(EXE) $(OBJS) $(WEB_DIR)/*.js $(WEB_DIR)/*.wasm $(WEB_DIR)/*.wasm.pre diff --git a/third_party/imgui/examples/example_emscripten_wgpu/README.md b/third_party/imgui/examples/example_emscripten_wgpu/README.md deleted file mode 100644 index 73fabddc..00000000 --- a/third_party/imgui/examples/example_emscripten_wgpu/README.md +++ /dev/null @@ -1,10 +0,0 @@ - -# How to Build - -- You need to install Emscripten from https://emscripten.org/docs/getting_started/downloads.html, and have the environment variables set, as described in https://emscripten.org/docs/getting_started/downloads.html#installation-instructions - -- Depending on your configuration, in Windows you may need to run `emsdk/emsdk_env.bat` in your console to access the Emscripten command-line tools. - -- Then build using `make` while in the `example_emscripten_wgpu/` directory. - -- Requires Emscripten 2.0.10 (December 2020) due to GLFW adaptations diff --git a/third_party/imgui/examples/example_emscripten_wgpu/main.cpp b/third_party/imgui/examples/example_emscripten_wgpu/main.cpp deleted file mode 100644 index a9da9320..00000000 --- a/third_party/imgui/examples/example_emscripten_wgpu/main.cpp +++ /dev/null @@ -1,245 +0,0 @@ -// Dear ImGui: standalone example application for Emscripten, using GLFW + WebGPU -// (Emscripten is a C++-to-javascript compiler, used to publish executables for the web. See https://emscripten.org/) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_glfw.h" -#include "imgui_impl_wgpu.h" -#include -#include -#include -#include -#include -#include -#include - -// Global WebGPU required states -static WGPUDevice wgpu_device = NULL; -static WGPUSurface wgpu_surface = NULL; -static WGPUSwapChain wgpu_swap_chain = NULL; -static int wgpu_swap_chain_width = 0; -static int wgpu_swap_chain_height = 0; - -// States tracked across render frames -static bool show_demo_window = true; -static bool show_another_window = false; -static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - -// Forward declarations -static bool init_wgpu(); -static void main_loop(void* window); -static void print_glfw_error(int error, const char* description); -static void print_wgpu_error(WGPUErrorType error_type, const char* message, void*); - -int main(int, char**) -{ - glfwSetErrorCallback(print_glfw_error); - if (!glfwInit()) - return 1; - - // Make sure GLFW does not initialize any graphics context. - // This needs to be done explicitly later - glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); - - GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+WebGPU example", NULL, NULL); - if (!window) - { - glfwTerminate(); - return 1; - } - - // Initialize the WebGPU environment - if (!init_wgpu()) - { - if (window) - glfwDestroyWindow(window); - glfwTerminate(); - return 1; - } - glfwShowWindow(window); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // For an Emscripten build we are disabling file-system access, so let's not attempt to do a fopen() of the imgui.ini file. - // You may manually call LoadIniSettingsFromMemory() to load settings from your own storage. - io.IniFilename = NULL; - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplGlfw_InitForOther(window, true); - ImGui_ImplWGPU_Init(wgpu_device, 3, WGPUTextureFormat_RGBA8Unorm); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - // - Emscripten allows preloading a file or folder to be accessible at runtime. See Makefile for details. - //io.Fonts->AddFontDefault(); -#ifndef IMGUI_DISABLE_FILE_FUNCTIONS - io.Fonts->AddFontFromFileTTF("fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("fonts/ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); -#endif - - // This function will directly return and exit the main function. - // Make sure that no required objects get cleaned up. - // This way we can use the browsers 'requestAnimationFrame' to control the rendering. - emscripten_set_main_loop_arg(main_loop, window, 0, false); - - return 0; -} - -static bool init_wgpu() -{ - wgpu_device = emscripten_webgpu_get_device(); - if (!wgpu_device) - return false; - - wgpuDeviceSetUncapturedErrorCallback(wgpu_device, print_wgpu_error, NULL); - - // Use C++ wrapper due to misbehavior in Emscripten. - // Some offset computation for wgpuInstanceCreateSurface in JavaScript - // seem to be inline with struct alignments in the C++ structure - wgpu::SurfaceDescriptorFromCanvasHTMLSelector html_surface_desc = {}; - html_surface_desc.selector = "#canvas"; - - wgpu::SurfaceDescriptor surface_desc = {}; - surface_desc.nextInChain = &html_surface_desc; - - // Use 'null' instance - wgpu::Instance instance = {}; - wgpu_surface = instance.CreateSurface(&surface_desc).Release(); - - return true; -} - -static void main_loop(void* window) -{ - glfwPollEvents(); - - int width, height; - glfwGetFramebufferSize((GLFWwindow*) window, &width, &height); - - // React to changes in screen size - if (width != wgpu_swap_chain_width && height != wgpu_swap_chain_height) - { - ImGui_ImplWGPU_InvalidateDeviceObjects(); - - if (wgpu_swap_chain) - wgpuSwapChainRelease(wgpu_swap_chain); - - wgpu_swap_chain_width = width; - wgpu_swap_chain_height = height; - - WGPUSwapChainDescriptor swap_chain_desc = {}; - swap_chain_desc.usage = WGPUTextureUsage_OutputAttachment; - swap_chain_desc.format = WGPUTextureFormat_RGBA8Unorm; - swap_chain_desc.width = width; - swap_chain_desc.height = height; - swap_chain_desc.presentMode = WGPUPresentMode_Fifo; - wgpu_swap_chain = wgpuDeviceCreateSwapChain(wgpu_device, wgpu_surface, &swap_chain_desc); - - ImGui_ImplWGPU_CreateDeviceObjects(); - } - - // Start the Dear ImGui frame - ImGui_ImplWGPU_NewFrame(); - ImGui_ImplGlfw_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - - WGPURenderPassColorAttachmentDescriptor color_attachments = {}; - color_attachments.loadOp = WGPULoadOp_Clear; - color_attachments.storeOp = WGPUStoreOp_Store; - color_attachments.clearColor = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; - color_attachments.attachment = wgpuSwapChainGetCurrentTextureView(wgpu_swap_chain); - WGPURenderPassDescriptor render_pass_desc = {}; - render_pass_desc.colorAttachmentCount = 1; - render_pass_desc.colorAttachments = &color_attachments; - render_pass_desc.depthStencilAttachment = NULL; - - WGPUCommandEncoderDescriptor enc_desc = {}; - WGPUCommandEncoder encoder = wgpuDeviceCreateCommandEncoder(wgpu_device, &enc_desc); - - WGPURenderPassEncoder pass = wgpuCommandEncoderBeginRenderPass(encoder, &render_pass_desc); - ImGui_ImplWGPU_RenderDrawData(ImGui::GetDrawData(), pass); - wgpuRenderPassEncoderEndPass(pass); - - WGPUCommandBufferDescriptor cmd_buffer_desc = {}; - WGPUCommandBuffer cmd_buffer = wgpuCommandEncoderFinish(encoder, &cmd_buffer_desc); - WGPUQueue queue = wgpuDeviceGetDefaultQueue(wgpu_device); - wgpuQueueSubmit(queue, 1, &cmd_buffer); -} - -static void print_glfw_error(int error, const char* description) -{ - printf("Glfw Error %d: %s\n", error, description); -} - -static void print_wgpu_error(WGPUErrorType error_type, const char* message, void*) -{ - const char* error_type_lbl = ""; - switch (error_type) - { - case WGPUErrorType_Validation: error_type_lbl = "Validation"; break; - case WGPUErrorType_OutOfMemory: error_type_lbl = "Out of memory"; break; - case WGPUErrorType_Unknown: error_type_lbl = "Unknown"; break; - case WGPUErrorType_DeviceLost: error_type_lbl = "Device lost"; break; - default: error_type_lbl = "Unknown"; - } - printf("%s error: %s\n", error_type_lbl, message); -} diff --git a/third_party/imgui/examples/example_glfw_metal/Makefile b/third_party/imgui/examples/example_glfw_metal/Makefile deleted file mode 100644 index 8f08b965..00000000 --- a/third_party/imgui/examples/example_glfw_metal/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -# -# You will need GLFW (http://www.glfw.org): -# brew install glfw -# - -#CXX = g++ -#CXX = clang++ - -EXE = example_glfw_metal -IMGUI_DIR = ../.. -SOURCES = main.mm -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_metal.mm -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) - -LIBS = -framework Metal -framework MetalKit -framework Cocoa -framework IOKit -framework CoreVideo -framework QuartzCore -LIBS += -L/usr/local/lib -lglfw - -CXXFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -I/usr/local/include -CXXFLAGS += -Wall -Wformat -CFLAGS = $(CXXFLAGS) - -%.o:%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:%.mm - $(CXX) $(CXXFLAGS) -ObjC++ -fobjc-weak -fobjc-arc -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.mm - $(CXX) $(CXXFLAGS) -ObjC++ -fobjc-weak -fobjc-arc -c -o $@ $< - -all: $(EXE) - @echo Build complete - -$(EXE): $(OBJS) - $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) - -clean: - rm -f $(EXE) $(OBJS) diff --git a/third_party/imgui/examples/example_glfw_metal/main.mm b/third_party/imgui/examples/example_glfw_metal/main.mm deleted file mode 100644 index 2ef6acdf..00000000 --- a/third_party/imgui/examples/example_glfw_metal/main.mm +++ /dev/null @@ -1,172 +0,0 @@ -// Dear ImGui: standalone example application for GLFW + Metal, using programmable pipeline -// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_glfw.h" -#include "imgui_impl_metal.h" -#include - -#define GLFW_INCLUDE_NONE -#define GLFW_EXPOSE_NATIVE_COCOA -#include -#include - -#import -#import - -static void glfw_error_callback(int error, const char* description) -{ - fprintf(stderr, "Glfw Error %d: %s\n", error, description); -} - -int main(int, char**) -{ - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.txt' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Setup window - glfwSetErrorCallback(glfw_error_callback); - if (!glfwInit()) - return 1; - - // Create window with graphics context - glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); - GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+Metal example", NULL, NULL); - if (window == NULL) - return 1; - - id device = MTLCreateSystemDefaultDevice();; - id commandQueue = [device newCommandQueue]; - - // Setup Platform/Renderer backends - ImGui_ImplGlfw_InitForOpenGL(window, true); - ImGui_ImplMetal_Init(device); - - NSWindow *nswin = glfwGetCocoaWindow(window); - CAMetalLayer *layer = [CAMetalLayer layer]; - layer.device = device; - layer.pixelFormat = MTLPixelFormatBGRA8Unorm; - nswin.contentView.layer = layer; - nswin.contentView.wantsLayer = YES; - - MTLRenderPassDescriptor *renderPassDescriptor = [MTLRenderPassDescriptor new]; - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - float clear_color[4] = {0.45f, 0.55f, 0.60f, 1.00f}; - - // Main loop - while (!glfwWindowShouldClose(window)) - { - @autoreleasepool - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - glfwPollEvents(); - - int width, height; - glfwGetFramebufferSize(window, &width, &height); - layer.drawableSize = CGSizeMake(width, height); - id drawable = [layer nextDrawable]; - - id commandBuffer = [commandQueue commandBuffer]; - renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(clear_color[0] * clear_color[3], clear_color[1] * clear_color[3], clear_color[2] * clear_color[3], clear_color[3]); - renderPassDescriptor.colorAttachments[0].texture = drawable.texture; - renderPassDescriptor.colorAttachments[0].loadAction = MTLLoadActionClear; - renderPassDescriptor.colorAttachments[0].storeAction = MTLStoreActionStore; - id renderEncoder = [commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor]; - [renderEncoder pushDebugGroup:@"ImGui demo"]; - - // Start the Dear ImGui frame - ImGui_ImplMetal_NewFrame(renderPassDescriptor); - ImGui_ImplGlfw_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - ImGui_ImplMetal_RenderDrawData(ImGui::GetDrawData(), commandBuffer, renderEncoder); - - [renderEncoder popDebugGroup]; - [renderEncoder endEncoding]; - - [commandBuffer presentDrawable:drawable]; - [commandBuffer commit]; - } - } - - // Cleanup - ImGui_ImplMetal_Shutdown(); - ImGui_ImplGlfw_Shutdown(); - ImGui::DestroyContext(); - - glfwDestroyWindow(window); - glfwTerminate(); - - return 0; -} diff --git a/third_party/imgui/examples/example_glfw_opengl2/Makefile b/third_party/imgui/examples/example_glfw_opengl2/Makefile deleted file mode 100644 index 720a403c..00000000 --- a/third_party/imgui/examples/example_glfw_opengl2/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -# -# Cross Platform Makefile -# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X -# -# You will need GLFW (http://www.glfw.org): -# Linux: -# apt-get install libglfw-dev -# Mac OS X: -# brew install glfw -# MSYS2: -# pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-glfw -# - -#CXX = g++ -#CXX = clang++ - -EXE = example_glfw_opengl2 -IMGUI_DIR = ../.. -SOURCES = main.cpp -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl2.cpp -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) -UNAME_S := $(shell uname -s) - -CXXFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -CXXFLAGS += -g -Wall -Wformat -LIBS = - -##--------------------------------------------------------------------- -## BUILD FLAGS PER PLATFORM -##--------------------------------------------------------------------- - -ifeq ($(UNAME_S), Linux) #LINUX - ECHO_MESSAGE = "Linux" - LIBS += -lGL `pkg-config --static --libs glfw3` - - CXXFLAGS += `pkg-config --cflags glfw3` - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(UNAME_S), Darwin) #APPLE - ECHO_MESSAGE = "Mac OS X" - LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo - LIBS += -L/usr/local/lib -L/opt/local/lib - #LIBS += -lglfw3 - LIBS += -lglfw - - CXXFLAGS += -I/usr/local/include -I/opt/local/include - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(OS), Windows_NT) - ECHO_MESSAGE = "MinGW" - LIBS += -lglfw3 -lgdi32 -lopengl32 -limm32 - - CXXFLAGS += `pkg-config --cflags glfw3` - CFLAGS = $(CXXFLAGS) -endif - -##--------------------------------------------------------------------- -## BUILD RULES -##--------------------------------------------------------------------- - -%.o:%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -all: $(EXE) - @echo Build complete for $(ECHO_MESSAGE) - -$(EXE): $(OBJS) - $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) - -clean: - rm -f $(EXE) $(OBJS) - diff --git a/third_party/imgui/examples/example_glfw_opengl2/build_win32.bat b/third_party/imgui/examples/example_glfw_opengl2/build_win32.bat deleted file mode 100644 index a0a75f90..00000000 --- a/third_party/imgui/examples/example_glfw_opengl2/build_win32.bat +++ /dev/null @@ -1,8 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@set OUT_DIR=Debug -@set OUT_EXE=example_glfw_opengl2 -@set INCLUDES=/I..\.. /I..\..\backends /I..\libs\glfw\include -@set SOURCES=main.cpp ..\..\backends\imgui_impl_opengl2.cpp ..\..\backends\imgui_impl_glfw.cpp ..\..\imgui*.cpp -@set LIBS=/LIBPATH:..\libs\glfw\lib-vc2010-32 glfw3.lib opengl32.lib gdi32.lib shell32.lib -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/third_party/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj b/third_party/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj deleted file mode 100644 index 2322ce25..00000000 --- a/third_party/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj +++ /dev/null @@ -1,181 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {9CDA7840-B7A5-496D-A527-E95571496D18} - example_glfw_opengl2 - 8.1 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) - - - true - ..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) - opengl32.lib;glfw3.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) - - - true - ..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) - opengl32.lib;glfw3.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - ..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) - opengl32.lib;glfw3.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;..\libs\glfw\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - ..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) - opengl32.lib;glfw3.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj.filters b/third_party/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj.filters deleted file mode 100644 index 8327557c..00000000 --- a/third_party/imgui/examples/example_glfw_opengl2/example_glfw_opengl2.vcxproj.filters +++ /dev/null @@ -1,61 +0,0 @@ - - - - - {c336cfe3-f0c4-464c-9ef0-a9e17a7ff222} - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - - - sources - - - imgui - - - imgui - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_glfw_opengl2/main.cpp b/third_party/imgui/examples/example_glfw_opengl2/main.cpp deleted file mode 100644 index ee785b1f..00000000 --- a/third_party/imgui/examples/example_glfw_opengl2/main.cpp +++ /dev/null @@ -1,159 +0,0 @@ -// Dear ImGui: standalone example application for GLFW + OpenGL2, using legacy fixed pipeline -// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** -// **Prefer using the code in the example_glfw_opengl2/ folder** -// See imgui_impl_glfw.cpp for details. - -#include "imgui.h" -#include "imgui_impl_glfw.h" -#include "imgui_impl_opengl2.h" -#include -#ifdef __APPLE__ -#define GL_SILENCE_DEPRECATION -#endif -#include - -// [Win32] Our example includes a copy of glfw3.lib pre-compiled with VS2010 to maximize ease of testing and compatibility with old VS compilers. -// To link with VS2010-era libraries, VS2015+ requires linking with legacy_stdio_definitions.lib, which we do using this pragma. -// Your own project should not be affected, as you are likely to link with a newer binary of GLFW that is adequate for your version of Visual Studio. -#if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) -#pragma comment(lib, "legacy_stdio_definitions") -#endif - -static void glfw_error_callback(int error, const char* description) -{ - fprintf(stderr, "Glfw Error %d: %s\n", error, description); -} - -int main(int, char**) -{ - // Setup window - glfwSetErrorCallback(glfw_error_callback); - if (!glfwInit()) - return 1; - GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+OpenGL2 example", NULL, NULL); - if (window == NULL) - return 1; - glfwMakeContextCurrent(window); - glfwSwapInterval(1); // Enable vsync - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplGlfw_InitForOpenGL(window, true); - ImGui_ImplOpenGL2_Init(); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - while (!glfwWindowShouldClose(window)) - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - glfwPollEvents(); - - // Start the Dear ImGui frame - ImGui_ImplOpenGL2_NewFrame(); - ImGui_ImplGlfw_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - int display_w, display_h; - glfwGetFramebufferSize(window, &display_w, &display_h); - glViewport(0, 0, display_w, display_h); - glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); - glClear(GL_COLOR_BUFFER_BIT); - - // If you are using this code with non-legacy OpenGL header/contexts (which you should not, prefer using imgui_impl_opengl3.cpp!!), - // you may need to backup/reset/restore other state, e.g. for current shader using the commented lines below. - //GLint last_program; - //glGetIntegerv(GL_CURRENT_PROGRAM, &last_program); - //glUseProgram(0); - ImGui_ImplOpenGL2_RenderDrawData(ImGui::GetDrawData()); - //glUseProgram(last_program); - - glfwMakeContextCurrent(window); - glfwSwapBuffers(window); - } - - // Cleanup - ImGui_ImplOpenGL2_Shutdown(); - ImGui_ImplGlfw_Shutdown(); - ImGui::DestroyContext(); - - glfwDestroyWindow(window); - glfwTerminate(); - - return 0; -} diff --git a/third_party/imgui/examples/example_glfw_opengl3/Makefile b/third_party/imgui/examples/example_glfw_opengl3/Makefile deleted file mode 100644 index 83fdcf06..00000000 --- a/third_party/imgui/examples/example_glfw_opengl3/Makefile +++ /dev/null @@ -1,116 +0,0 @@ -# -# Cross Platform Makefile -# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X -# -# You will need GLFW (http://www.glfw.org): -# Linux: -# apt-get install libglfw-dev -# Mac OS X: -# brew install glfw -# MSYS2: -# pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain mingw-w64-x86_64-glfw -# - -#CXX = g++ -#CXX = clang++ - -EXE = example_glfw_opengl3 -IMGUI_DIR = ../.. -SOURCES = main.cpp -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glfw.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) -UNAME_S := $(shell uname -s) - -CXXFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -CXXFLAGS += -g -Wall -Wformat -LIBS = - -##--------------------------------------------------------------------- -## OPENGL LOADER -##--------------------------------------------------------------------- - -## Using OpenGL loader: gl3w [default] -SOURCES += ../libs/gl3w/GL/gl3w.c -CXXFLAGS += -I../libs/gl3w -DIMGUI_IMPL_OPENGL_LOADER_GL3W - -## Using OpenGL loader: glew -## (This assumes a system-wide installation) -# CXXFLAGS += -DIMGUI_IMPL_OPENGL_LOADER_GLEW -# LIBS += -lGLEW - -## Using OpenGL loader: glad -# SOURCES += ../libs/glad/src/glad.c -# CXXFLAGS += -I../libs/glad/include -DIMGUI_IMPL_OPENGL_LOADER_GLAD - -## Using OpenGL loader: glad2 -# SOURCES += ../libs/glad/src/gl.c -# CXXFLAGS += -I../libs/glad/include -DIMGUI_IMPL_OPENGL_LOADER_GLAD2 - -## Using OpenGL loader: glbinding -## This assumes a system-wide installation -## of either version 3.0.0 (or newer) -# CXXFLAGS += -DIMGUI_IMPL_OPENGL_LOADER_GLBINDING3 -# LIBS += -lglbinding -## or the older version 2.x -# CXXFLAGS += -DIMGUI_IMPL_OPENGL_LOADER_GLBINDING2 -# LIBS += -lglbinding - -##--------------------------------------------------------------------- -## BUILD FLAGS PER PLATFORM -##--------------------------------------------------------------------- - -ifeq ($(UNAME_S), Linux) #LINUX - ECHO_MESSAGE = "Linux" - LIBS += -lGL `pkg-config --static --libs glfw3` - - CXXFLAGS += `pkg-config --cflags glfw3` - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(UNAME_S), Darwin) #APPLE - ECHO_MESSAGE = "Mac OS X" - LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo - LIBS += -L/usr/local/lib -L/opt/local/lib - #LIBS += -lglfw3 - LIBS += -lglfw - - CXXFLAGS += -I/usr/local/include -I/opt/local/include - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(OS), Windows_NT) - ECHO_MESSAGE = "MinGW" - LIBS += -lglfw3 -lgdi32 -lopengl32 -limm32 - - CXXFLAGS += `pkg-config --cflags glfw3` - CFLAGS = $(CXXFLAGS) -endif - -##--------------------------------------------------------------------- -## BUILD RULES -##--------------------------------------------------------------------- - -%.o:%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:../libs/gl3w/GL/%.c - $(CC) $(CFLAGS) -c -o $@ $< - -%.o:../libs/glad/src/%.c - $(CC) $(CFLAGS) -c -o $@ $< - -all: $(EXE) - @echo Build complete for $(ECHO_MESSAGE) - -$(EXE): $(OBJS) - $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) - -clean: - rm -f $(EXE) $(OBJS) diff --git a/third_party/imgui/examples/example_glfw_opengl3/build_win32.bat b/third_party/imgui/examples/example_glfw_opengl3/build_win32.bat deleted file mode 100644 index 83a0ef8e..00000000 --- a/third_party/imgui/examples/example_glfw_opengl3/build_win32.bat +++ /dev/null @@ -1,8 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@set OUT_DIR=Debug -@set OUT_EXE=example_glfw_opengl3 -@set INCLUDES=/I..\.. /I..\..\backends /I..\libs\glfw\include /I..\libs\gl3w -@set SOURCES=main.cpp ..\..\backends\imgui_impl_glfw.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp ..\libs\gl3w\GL\gl3w.c -@set LIBS=/LIBPATH:..\libs\glfw\lib-vc2010-32 glfw3.lib opengl32.lib gdi32.lib shell32.lib -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/third_party/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj b/third_party/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj deleted file mode 100644 index 61184d87..00000000 --- a/third_party/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj +++ /dev/null @@ -1,184 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {4a1fb5ea-22f5-42a8-ab92-1d2df5d47fb9} - example_glfw_opengl3 - 8.1 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - ..\..;..\..\backends;..\libs\glfw\include;..\libs\gl3w;%(AdditionalIncludeDirectories) - - - true - ..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) - opengl32.lib;glfw3.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - ..\..;..\..\backends;..\libs\glfw\include;..\libs\gl3w;%(AdditionalIncludeDirectories) - - - true - ..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) - opengl32.lib;glfw3.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;..\libs\glfw\include;..\libs\gl3w;%(AdditionalIncludeDirectories) - false - - - true - true - true - ..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) - opengl32.lib;glfw3.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;..\libs\glfw\include;..\libs\gl3w;%(AdditionalIncludeDirectories) - false - - - true - true - true - ..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) - opengl32.lib;glfw3.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj.filters b/third_party/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj.filters deleted file mode 100644 index 6e3859c1..00000000 --- a/third_party/imgui/examples/example_glfw_opengl3/example_glfw_opengl3.vcxproj.filters +++ /dev/null @@ -1,73 +0,0 @@ - - - - - {20b90ce4-7fcb-4731-b9a0-075f875de82d} - - - {f18ab499-84e1-499f-8eff-9754361e0e52} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {42f99867-3108-43b8-99d0-fabefaf1f2e3} - - - - - sources - - - imgui - - - gl3w - - - imgui - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - imgui - - - gl3w - - - gl3w - - - imgui - - - sources - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_glfw_opengl3/main.cpp b/third_party/imgui/examples/example_glfw_opengl3/main.cpp deleted file mode 100644 index cae62e59..00000000 --- a/third_party/imgui/examples/example_glfw_opengl3/main.cpp +++ /dev/null @@ -1,215 +0,0 @@ -// Dear ImGui: standalone example application for GLFW + OpenGL 3, using programmable pipeline -// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_glfw.h" -#include "imgui_impl_opengl3.h" -#include - -// About Desktop OpenGL function loaders: -// Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers. -// Helper libraries are often used for this purpose! Here we are supporting a few common ones (gl3w, glew, glad). -// You may use another loader/header of your choice (glext, glLoadGen, etc.), or chose to manually implement your own. -#if defined(IMGUI_IMPL_OPENGL_LOADER_GL3W) -#include // Initialize with gl3wInit() -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) -#include // Initialize with glewInit() -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD) -#include // Initialize with gladLoadGL() -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2) -#include // Initialize with gladLoadGL(...) or gladLoaderLoadGL() -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING2) -#define GLFW_INCLUDE_NONE // GLFW including OpenGL headers causes ambiguity or multiple definition errors. -#include // Initialize with glbinding::Binding::initialize() -#include -using namespace gl; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING3) -#define GLFW_INCLUDE_NONE // GLFW including OpenGL headers causes ambiguity or multiple definition errors. -#include // Initialize with glbinding::initialize() -#include -using namespace gl; -#else -#include IMGUI_IMPL_OPENGL_LOADER_CUSTOM -#endif - -// Include glfw3.h after our OpenGL definitions -#include - -// [Win32] Our example includes a copy of glfw3.lib pre-compiled with VS2010 to maximize ease of testing and compatibility with old VS compilers. -// To link with VS2010-era libraries, VS2015+ requires linking with legacy_stdio_definitions.lib, which we do using this pragma. -// Your own project should not be affected, as you are likely to link with a newer binary of GLFW that is adequate for your version of Visual Studio. -#if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) -#pragma comment(lib, "legacy_stdio_definitions") -#endif - -static void glfw_error_callback(int error, const char* description) -{ - fprintf(stderr, "Glfw Error %d: %s\n", error, description); -} - -int main(int, char**) -{ - // Setup window - glfwSetErrorCallback(glfw_error_callback); - if (!glfwInit()) - return 1; - - // Decide GL+GLSL versions -#ifdef __APPLE__ - // GL 3.2 + GLSL 150 - const char* glsl_version = "#version 150"; - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); - glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); - glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only - glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // Required on Mac -#else - // GL 3.0 + GLSL 130 - const char* glsl_version = "#version 130"; - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); - glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); - //glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only - //glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // 3.0+ only -#endif - - // Create window with graphics context - GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+OpenGL3 example", NULL, NULL); - if (window == NULL) - return 1; - glfwMakeContextCurrent(window); - glfwSwapInterval(1); // Enable vsync - - // Initialize OpenGL loader -#if defined(IMGUI_IMPL_OPENGL_LOADER_GL3W) - bool err = gl3wInit() != 0; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) - bool err = glewInit() != GLEW_OK; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD) - bool err = gladLoadGL() == 0; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2) - bool err = gladLoadGL(glfwGetProcAddress) == 0; // glad2 recommend using the windowing library loader instead of the (optionally) bundled one. -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING2) - bool err = false; - glbinding::Binding::initialize(); -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING3) - bool err = false; - glbinding::initialize([](const char* name) { return (glbinding::ProcAddress)glfwGetProcAddress(name); }); -#else - bool err = false; // If you use IMGUI_IMPL_OPENGL_LOADER_CUSTOM, your loader is likely to requires some form of initialization. -#endif - if (err) - { - fprintf(stderr, "Failed to initialize OpenGL loader!\n"); - return 1; - } - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplGlfw_InitForOpenGL(window, true); - ImGui_ImplOpenGL3_Init(glsl_version); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - while (!glfwWindowShouldClose(window)) - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - glfwPollEvents(); - - // Start the Dear ImGui frame - ImGui_ImplOpenGL3_NewFrame(); - ImGui_ImplGlfw_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - int display_w, display_h; - glfwGetFramebufferSize(window, &display_w, &display_h); - glViewport(0, 0, display_w, display_h); - glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); - glClear(GL_COLOR_BUFFER_BIT); - ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); - - glfwSwapBuffers(window); - } - - // Cleanup - ImGui_ImplOpenGL3_Shutdown(); - ImGui_ImplGlfw_Shutdown(); - ImGui::DestroyContext(); - - glfwDestroyWindow(window); - glfwTerminate(); - - return 0; -} diff --git a/third_party/imgui/examples/example_glfw_vulkan/CMakeLists.txt b/third_party/imgui/examples/example_glfw_vulkan/CMakeLists.txt deleted file mode 100644 index 05eab3bc..00000000 --- a/third_party/imgui/examples/example_glfw_vulkan/CMakeLists.txt +++ /dev/null @@ -1,43 +0,0 @@ -# Example usage: -# mkdir build -# cd build -# cmake -g "Visual Studio 14 2015" .. - -cmake_minimum_required(VERSION 2.8) -project(imgui_example_glfw_vulkan C CXX) - -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Debug CACHE STRING "" FORCE) -endif() - -set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVK_PROTOTYPES") -set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_PROTOTYPES") - -# GLFW -set(GLFW_DIR ../../../glfw) # Set this to point to an up-to-date GLFW repo -option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" OFF) -option(GLFW_BUILD_TESTS "Build the GLFW test programs" OFF) -option(GLFW_BUILD_DOCS "Build the GLFW documentation" OFF) -option(GLFW_INSTALL "Generate installation target" OFF) -option(GLFW_DOCUMENT_INTERNALS "Include internals in documentation" OFF) -add_subdirectory(${GLFW_DIR} binary_dir EXCLUDE_FROM_ALL) -include_directories(${GLFW_DIR}/include) - -# Dear ImGui -set(IMGUI_DIR ../../) -include_directories(${IMGUI_DIR} ${IMGUI_DIR}/backends ..) - -# Libraries -find_package(Vulkan REQUIRED) -#find_library(VULKAN_LIBRARY - #NAMES vulkan vulkan-1) -#set(LIBRARIES "glfw;${VULKAN_LIBRARY}") -set(LIBRARIES "glfw;Vulkan::Vulkan") - -# Use vulkan headers from glfw: -include_directories(${GLFW_DIR}/deps) - -file(GLOB sources *.cpp) - -add_executable(example_glfw_vulkan ${sources} ${IMGUI_DIR}/backends/imgui_impl_glfw.cpp ${IMGUI_DIR}/backends/imgui_impl_vulkan.cpp ${IMGUI_DIR}/imgui.cpp ${IMGUI_DIR}/imgui_draw.cpp ${IMGUI_DIR}/imgui_demo.cpp ${IMGUI_DIR}/imgui_tables.cpp ${IMGUI_DIR}/imgui_widgets.cpp) -target_link_libraries(example_glfw_vulkan ${LIBRARIES}) diff --git a/third_party/imgui/examples/example_glfw_vulkan/build_win32.bat b/third_party/imgui/examples/example_glfw_vulkan/build_win32.bat deleted file mode 100644 index f49cbd77..00000000 --- a/third_party/imgui/examples/example_glfw_vulkan/build_win32.bat +++ /dev/null @@ -1,14 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. - -@set OUT_EXE=example_glfw_vulkan -@set INCLUDES=/I..\.. /I..\..\backends /I..\libs\glfw\include /I %VULKAN_SDK%\include -@set SOURCES=main.cpp ..\..\backends\imgui_impl_vulkan.cpp ..\..\backends\imgui_impl_glfw.cpp ..\..\imgui*.cpp -@set LIBS=/LIBPATH:..\libs\glfw\lib-vc2010-32 /libpath:%VULKAN_SDK%\lib32 glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib - -@set OUT_DIR=Debug -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% - -@set OUT_DIR=Release -mkdir %OUT_DIR% -cl /nologo /Zi /MD /Ox /Oi %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/third_party/imgui/examples/example_glfw_vulkan/build_win64.bat b/third_party/imgui/examples/example_glfw_vulkan/build_win64.bat deleted file mode 100644 index 893f296f..00000000 --- a/third_party/imgui/examples/example_glfw_vulkan/build_win64.bat +++ /dev/null @@ -1,13 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of amd64/vcvars32.bat to setup 64-bit command-line compiler. - -@set INCLUDES=/I..\.. /I..\..\backends /I..\libs\glfw\include /I %VULKAN_SDK%\include -@set SOURCES=main.cpp ..\..\backends\imgui_impl_vulkan.cpp ..\..\backends\imgui_impl_glfw.cpp ..\..\imgui*.cpp -@set LIBS=/LIBPATH:..\libs\glfw\lib-vc2010-64 /libpath:%VULKAN_SDK%\lib glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib - -@set OUT_DIR=Debug -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% - -@set OUT_DIR=Release -mkdir %OUT_DIR% -cl /nologo /Zi /MD /Ox /Oi %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/third_party/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj b/third_party/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj deleted file mode 100644 index 1667b5ab..00000000 --- a/third_party/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj +++ /dev/null @@ -1,181 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {57E2DF5A-6FC8-45BB-99DD-91A18C646E80} - example_glfw_vulkan - 8.1 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - ..\..;..\..\backends;%VULKAN_SDK%\include;..\libs\glfw\include;%(AdditionalIncludeDirectories) - - - true - %VULKAN_SDK%\lib32;..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) - vulkan-1.lib;glfw3.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - ..\..;..\..\backends;%VULKAN_SDK%\include;..\libs\glfw\include;%(AdditionalIncludeDirectories) - - - true - %VULKAN_SDK%\lib;..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) - vulkan-1.lib;glfw3.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%VULKAN_SDK%\include;..\libs\glfw\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - %VULKAN_SDK%\lib32;..\libs\glfw\lib-vc2010-32;%(AdditionalLibraryDirectories) - vulkan-1.lib;glfw3.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%VULKAN_SDK%\include;..\libs\glfw\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - %VULKAN_SDK%\lib;..\libs\glfw\lib-vc2010-64;%(AdditionalLibraryDirectories) - vulkan-1.lib;glfw3.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj.filters b/third_party/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj.filters deleted file mode 100644 index 943eb3dd..00000000 --- a/third_party/imgui/examples/example_glfw_vulkan/example_glfw_vulkan.vcxproj.filters +++ /dev/null @@ -1,61 +0,0 @@ - - - - - {20b90ce4-7fcb-4731-b9a0-075f875de82d} - - - {f18ab499-84e1-499f-8eff-9754361e0e52} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - - - sources - - - imgui - - - imgui - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_glfw_vulkan/main.cpp b/third_party/imgui/examples/example_glfw_vulkan/main.cpp deleted file mode 100644 index d2e4004e..00000000 --- a/third_party/imgui/examples/example_glfw_vulkan/main.cpp +++ /dev/null @@ -1,546 +0,0 @@ -// Dear ImGui: standalone example application for Glfw + Vulkan -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// Important note to the reader who wish to integrate imgui_impl_vulkan.cpp/.h in their own engine/app. -// - Common ImGui_ImplVulkan_XXX functions and structures are used to interface with imgui_impl_vulkan.cpp/.h. -// You will use those if you want to use this rendering backend in your engine/app. -// - Helper ImGui_ImplVulkanH_XXX functions and structures are only used by this example (main.cpp) and by -// the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. -// Read comments in imgui_impl_vulkan.h. - -#include "imgui.h" -#include "imgui_impl_glfw.h" -#include "imgui_impl_vulkan.h" -#include // printf, fprintf -#include // abort -#define GLFW_INCLUDE_NONE -#define GLFW_INCLUDE_VULKAN -#include -#include - -// [Win32] Our example includes a copy of glfw3.lib pre-compiled with VS2010 to maximize ease of testing and compatibility with old VS compilers. -// To link with VS2010-era libraries, VS2015+ requires linking with legacy_stdio_definitions.lib, which we do using this pragma. -// Your own project should not be affected, as you are likely to link with a newer binary of GLFW that is adequate for your version of Visual Studio. -#if defined(_MSC_VER) && (_MSC_VER >= 1900) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) -#pragma comment(lib, "legacy_stdio_definitions") -#endif - -//#define IMGUI_UNLIMITED_FRAME_RATE -#ifdef _DEBUG -#define IMGUI_VULKAN_DEBUG_REPORT -#endif - -static VkAllocationCallbacks* g_Allocator = NULL; -static VkInstance g_Instance = VK_NULL_HANDLE; -static VkPhysicalDevice g_PhysicalDevice = VK_NULL_HANDLE; -static VkDevice g_Device = VK_NULL_HANDLE; -static uint32_t g_QueueFamily = (uint32_t)-1; -static VkQueue g_Queue = VK_NULL_HANDLE; -static VkDebugReportCallbackEXT g_DebugReport = VK_NULL_HANDLE; -static VkPipelineCache g_PipelineCache = VK_NULL_HANDLE; -static VkDescriptorPool g_DescriptorPool = VK_NULL_HANDLE; - -static ImGui_ImplVulkanH_Window g_MainWindowData; -static int g_MinImageCount = 2; -static bool g_SwapChainRebuild = false; - -static void check_vk_result(VkResult err) -{ - if (err == 0) - return; - fprintf(stderr, "[vulkan] Error: VkResult = %d\n", err); - if (err < 0) - abort(); -} - -#ifdef IMGUI_VULKAN_DEBUG_REPORT -static VKAPI_ATTR VkBool32 VKAPI_CALL debug_report(VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage, void* pUserData) -{ - (void)flags; (void)object; (void)location; (void)messageCode; (void)pUserData; (void)pLayerPrefix; // Unused arguments - fprintf(stderr, "[vulkan] Debug report from ObjectType: %i\nMessage: %s\n\n", objectType, pMessage); - return VK_FALSE; -} -#endif // IMGUI_VULKAN_DEBUG_REPORT - -static void SetupVulkan(const char** extensions, uint32_t extensions_count) -{ - VkResult err; - - // Create Vulkan Instance - { - VkInstanceCreateInfo create_info = {}; - create_info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; - create_info.enabledExtensionCount = extensions_count; - create_info.ppEnabledExtensionNames = extensions; -#ifdef IMGUI_VULKAN_DEBUG_REPORT - // Enabling validation layers - const char* layers[] = { "VK_LAYER_KHRONOS_validation" }; - create_info.enabledLayerCount = 1; - create_info.ppEnabledLayerNames = layers; - - // Enable debug report extension (we need additional storage, so we duplicate the user array to add our new extension to it) - const char** extensions_ext = (const char**)malloc(sizeof(const char*) * (extensions_count + 1)); - memcpy(extensions_ext, extensions, extensions_count * sizeof(const char*)); - extensions_ext[extensions_count] = "VK_EXT_debug_report"; - create_info.enabledExtensionCount = extensions_count + 1; - create_info.ppEnabledExtensionNames = extensions_ext; - - // Create Vulkan Instance - err = vkCreateInstance(&create_info, g_Allocator, &g_Instance); - check_vk_result(err); - free(extensions_ext); - - // Get the function pointer (required for any extensions) - auto vkCreateDebugReportCallbackEXT = (PFN_vkCreateDebugReportCallbackEXT)vkGetInstanceProcAddr(g_Instance, "vkCreateDebugReportCallbackEXT"); - IM_ASSERT(vkCreateDebugReportCallbackEXT != NULL); - - // Setup the debug report callback - VkDebugReportCallbackCreateInfoEXT debug_report_ci = {}; - debug_report_ci.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; - debug_report_ci.flags = VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT | VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT; - debug_report_ci.pfnCallback = debug_report; - debug_report_ci.pUserData = NULL; - err = vkCreateDebugReportCallbackEXT(g_Instance, &debug_report_ci, g_Allocator, &g_DebugReport); - check_vk_result(err); -#else - // Create Vulkan Instance without any debug feature - err = vkCreateInstance(&create_info, g_Allocator, &g_Instance); - check_vk_result(err); - IM_UNUSED(g_DebugReport); -#endif - } - - // Select GPU - { - uint32_t gpu_count; - err = vkEnumeratePhysicalDevices(g_Instance, &gpu_count, NULL); - check_vk_result(err); - IM_ASSERT(gpu_count > 0); - - VkPhysicalDevice* gpus = (VkPhysicalDevice*)malloc(sizeof(VkPhysicalDevice) * gpu_count); - err = vkEnumeratePhysicalDevices(g_Instance, &gpu_count, gpus); - check_vk_result(err); - - // If a number >1 of GPUs got reported, you should find the best fit GPU for your purpose - // e.g. VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU if available, or with the greatest memory available, etc. - // for sake of simplicity we'll just take the first one, assuming it has a graphics queue family. - g_PhysicalDevice = gpus[0]; - free(gpus); - } - - // Select graphics queue family - { - uint32_t count; - vkGetPhysicalDeviceQueueFamilyProperties(g_PhysicalDevice, &count, NULL); - VkQueueFamilyProperties* queues = (VkQueueFamilyProperties*)malloc(sizeof(VkQueueFamilyProperties) * count); - vkGetPhysicalDeviceQueueFamilyProperties(g_PhysicalDevice, &count, queues); - for (uint32_t i = 0; i < count; i++) - if (queues[i].queueFlags & VK_QUEUE_GRAPHICS_BIT) - { - g_QueueFamily = i; - break; - } - free(queues); - IM_ASSERT(g_QueueFamily != (uint32_t)-1); - } - - // Create Logical Device (with 1 queue) - { - int device_extension_count = 1; - const char* device_extensions[] = { "VK_KHR_swapchain" }; - const float queue_priority[] = { 1.0f }; - VkDeviceQueueCreateInfo queue_info[1] = {}; - queue_info[0].sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; - queue_info[0].queueFamilyIndex = g_QueueFamily; - queue_info[0].queueCount = 1; - queue_info[0].pQueuePriorities = queue_priority; - VkDeviceCreateInfo create_info = {}; - create_info.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; - create_info.queueCreateInfoCount = sizeof(queue_info) / sizeof(queue_info[0]); - create_info.pQueueCreateInfos = queue_info; - create_info.enabledExtensionCount = device_extension_count; - create_info.ppEnabledExtensionNames = device_extensions; - err = vkCreateDevice(g_PhysicalDevice, &create_info, g_Allocator, &g_Device); - check_vk_result(err); - vkGetDeviceQueue(g_Device, g_QueueFamily, 0, &g_Queue); - } - - // Create Descriptor Pool - { - VkDescriptorPoolSize pool_sizes[] = - { - { VK_DESCRIPTOR_TYPE_SAMPLER, 1000 }, - { VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1000 }, - { VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, 1000 }, - { VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, 1000 }, - { VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 1000 }, - { VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, 1000 }, - { VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1000 }, - { VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 1000 }, - { VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 1000 }, - { VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, 1000 }, - { VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, 1000 } - }; - VkDescriptorPoolCreateInfo pool_info = {}; - pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO; - pool_info.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT; - pool_info.maxSets = 1000 * IM_ARRAYSIZE(pool_sizes); - pool_info.poolSizeCount = (uint32_t)IM_ARRAYSIZE(pool_sizes); - pool_info.pPoolSizes = pool_sizes; - err = vkCreateDescriptorPool(g_Device, &pool_info, g_Allocator, &g_DescriptorPool); - check_vk_result(err); - } -} - -// All the ImGui_ImplVulkanH_XXX structures/functions are optional helpers used by the demo. -// Your real engine/app may not use them. -static void SetupVulkanWindow(ImGui_ImplVulkanH_Window* wd, VkSurfaceKHR surface, int width, int height) -{ - wd->Surface = surface; - - // Check for WSI support - VkBool32 res; - vkGetPhysicalDeviceSurfaceSupportKHR(g_PhysicalDevice, g_QueueFamily, wd->Surface, &res); - if (res != VK_TRUE) - { - fprintf(stderr, "Error no WSI support on physical device 0\n"); - exit(-1); - } - - // Select Surface Format - const VkFormat requestSurfaceImageFormat[] = { VK_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_B8G8R8_UNORM, VK_FORMAT_R8G8B8_UNORM }; - const VkColorSpaceKHR requestSurfaceColorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR; - wd->SurfaceFormat = ImGui_ImplVulkanH_SelectSurfaceFormat(g_PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceImageFormat), requestSurfaceColorSpace); - - // Select Present Mode -#ifdef IMGUI_UNLIMITED_FRAME_RATE - VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_FIFO_KHR }; -#else - VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_FIFO_KHR }; -#endif - wd->PresentMode = ImGui_ImplVulkanH_SelectPresentMode(g_PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); - //printf("[vulkan] Selected PresentMode = %d\n", wd->PresentMode); - - // Create SwapChain, RenderPass, Framebuffer, etc. - IM_ASSERT(g_MinImageCount >= 2); - ImGui_ImplVulkanH_CreateOrResizeWindow(g_Instance, g_PhysicalDevice, g_Device, wd, g_QueueFamily, g_Allocator, width, height, g_MinImageCount); -} - -static void CleanupVulkan() -{ - vkDestroyDescriptorPool(g_Device, g_DescriptorPool, g_Allocator); - -#ifdef IMGUI_VULKAN_DEBUG_REPORT - // Remove the debug report callback - auto vkDestroyDebugReportCallbackEXT = (PFN_vkDestroyDebugReportCallbackEXT)vkGetInstanceProcAddr(g_Instance, "vkDestroyDebugReportCallbackEXT"); - vkDestroyDebugReportCallbackEXT(g_Instance, g_DebugReport, g_Allocator); -#endif // IMGUI_VULKAN_DEBUG_REPORT - - vkDestroyDevice(g_Device, g_Allocator); - vkDestroyInstance(g_Instance, g_Allocator); -} - -static void CleanupVulkanWindow() -{ - ImGui_ImplVulkanH_DestroyWindow(g_Instance, g_Device, &g_MainWindowData, g_Allocator); -} - -static void FrameRender(ImGui_ImplVulkanH_Window* wd, ImDrawData* draw_data) -{ - VkResult err; - - VkSemaphore image_acquired_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].ImageAcquiredSemaphore; - VkSemaphore render_complete_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].RenderCompleteSemaphore; - err = vkAcquireNextImageKHR(g_Device, wd->Swapchain, UINT64_MAX, image_acquired_semaphore, VK_NULL_HANDLE, &wd->FrameIndex); - if (err == VK_ERROR_OUT_OF_DATE_KHR) - { - g_SwapChainRebuild = true; - return; - } - check_vk_result(err); - - ImGui_ImplVulkanH_Frame* fd = &wd->Frames[wd->FrameIndex]; - { - err = vkWaitForFences(g_Device, 1, &fd->Fence, VK_TRUE, UINT64_MAX); // wait indefinitely instead of periodically checking - check_vk_result(err); - - err = vkResetFences(g_Device, 1, &fd->Fence); - check_vk_result(err); - } - { - err = vkResetCommandPool(g_Device, fd->CommandPool, 0); - check_vk_result(err); - VkCommandBufferBeginInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; - info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; - err = vkBeginCommandBuffer(fd->CommandBuffer, &info); - check_vk_result(err); - } - { - VkRenderPassBeginInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; - info.renderPass = wd->RenderPass; - info.framebuffer = fd->Framebuffer; - info.renderArea.extent.width = wd->Width; - info.renderArea.extent.height = wd->Height; - info.clearValueCount = 1; - info.pClearValues = &wd->ClearValue; - vkCmdBeginRenderPass(fd->CommandBuffer, &info, VK_SUBPASS_CONTENTS_INLINE); - } - - // Record dear imgui primitives into command buffer - ImGui_ImplVulkan_RenderDrawData(draw_data, fd->CommandBuffer); - - // Submit command buffer - vkCmdEndRenderPass(fd->CommandBuffer); - { - VkPipelineStageFlags wait_stage = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; - VkSubmitInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; - info.waitSemaphoreCount = 1; - info.pWaitSemaphores = &image_acquired_semaphore; - info.pWaitDstStageMask = &wait_stage; - info.commandBufferCount = 1; - info.pCommandBuffers = &fd->CommandBuffer; - info.signalSemaphoreCount = 1; - info.pSignalSemaphores = &render_complete_semaphore; - - err = vkEndCommandBuffer(fd->CommandBuffer); - check_vk_result(err); - err = vkQueueSubmit(g_Queue, 1, &info, fd->Fence); - check_vk_result(err); - } -} - -static void FramePresent(ImGui_ImplVulkanH_Window* wd) -{ - if (g_SwapChainRebuild) - return; - VkSemaphore render_complete_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].RenderCompleteSemaphore; - VkPresentInfoKHR info = {}; - info.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR; - info.waitSemaphoreCount = 1; - info.pWaitSemaphores = &render_complete_semaphore; - info.swapchainCount = 1; - info.pSwapchains = &wd->Swapchain; - info.pImageIndices = &wd->FrameIndex; - VkResult err = vkQueuePresentKHR(g_Queue, &info); - if (err == VK_ERROR_OUT_OF_DATE_KHR) - { - g_SwapChainRebuild = true; - return; - } - check_vk_result(err); - wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->ImageCount; // Now we can use the next set of semaphores -} - -static void glfw_error_callback(int error, const char* description) -{ - fprintf(stderr, "Glfw Error %d: %s\n", error, description); -} - -int main(int, char**) -{ - // Setup GLFW window - glfwSetErrorCallback(glfw_error_callback); - if (!glfwInit()) - return 1; - - glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); - GLFWwindow* window = glfwCreateWindow(1280, 720, "Dear ImGui GLFW+Vulkan example", NULL, NULL); - - // Setup Vulkan - if (!glfwVulkanSupported()) - { - printf("GLFW: Vulkan Not Supported\n"); - return 1; - } - uint32_t extensions_count = 0; - const char** extensions = glfwGetRequiredInstanceExtensions(&extensions_count); - SetupVulkan(extensions, extensions_count); - - // Create Window Surface - VkSurfaceKHR surface; - VkResult err = glfwCreateWindowSurface(g_Instance, window, g_Allocator, &surface); - check_vk_result(err); - - // Create Framebuffers - int w, h; - glfwGetFramebufferSize(window, &w, &h); - ImGui_ImplVulkanH_Window* wd = &g_MainWindowData; - SetupVulkanWindow(wd, surface, w, h); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplGlfw_InitForVulkan(window, true); - ImGui_ImplVulkan_InitInfo init_info = {}; - init_info.Instance = g_Instance; - init_info.PhysicalDevice = g_PhysicalDevice; - init_info.Device = g_Device; - init_info.QueueFamily = g_QueueFamily; - init_info.Queue = g_Queue; - init_info.PipelineCache = g_PipelineCache; - init_info.DescriptorPool = g_DescriptorPool; - init_info.Allocator = g_Allocator; - init_info.MinImageCount = g_MinImageCount; - init_info.ImageCount = wd->ImageCount; - init_info.CheckVkResultFn = check_vk_result; - ImGui_ImplVulkan_Init(&init_info, wd->RenderPass); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Upload Fonts - { - // Use any command queue - VkCommandPool command_pool = wd->Frames[wd->FrameIndex].CommandPool; - VkCommandBuffer command_buffer = wd->Frames[wd->FrameIndex].CommandBuffer; - - err = vkResetCommandPool(g_Device, command_pool, 0); - check_vk_result(err); - VkCommandBufferBeginInfo begin_info = {}; - begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; - begin_info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; - err = vkBeginCommandBuffer(command_buffer, &begin_info); - check_vk_result(err); - - ImGui_ImplVulkan_CreateFontsTexture(command_buffer); - - VkSubmitInfo end_info = {}; - end_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; - end_info.commandBufferCount = 1; - end_info.pCommandBuffers = &command_buffer; - err = vkEndCommandBuffer(command_buffer); - check_vk_result(err); - err = vkQueueSubmit(g_Queue, 1, &end_info, VK_NULL_HANDLE); - check_vk_result(err); - - err = vkDeviceWaitIdle(g_Device); - check_vk_result(err); - ImGui_ImplVulkan_DestroyFontUploadObjects(); - } - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - while (!glfwWindowShouldClose(window)) - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - glfwPollEvents(); - - // Resize swap chain? - if (g_SwapChainRebuild) - { - int width, height; - glfwGetFramebufferSize(window, &width, &height); - if (width > 0 && height > 0) - { - ImGui_ImplVulkan_SetMinImageCount(g_MinImageCount); - ImGui_ImplVulkanH_CreateOrResizeWindow(g_Instance, g_PhysicalDevice, g_Device, &g_MainWindowData, g_QueueFamily, g_Allocator, width, height, g_MinImageCount); - g_MainWindowData.FrameIndex = 0; - g_SwapChainRebuild = false; - } - } - - // Start the Dear ImGui frame - ImGui_ImplVulkan_NewFrame(); - ImGui_ImplGlfw_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - ImDrawData* draw_data = ImGui::GetDrawData(); - const bool is_minimized = (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f); - if (!is_minimized) - { - wd->ClearValue.color.float32[0] = clear_color.x * clear_color.w; - wd->ClearValue.color.float32[1] = clear_color.y * clear_color.w; - wd->ClearValue.color.float32[2] = clear_color.z * clear_color.w; - wd->ClearValue.color.float32[3] = clear_color.w; - FrameRender(wd, draw_data); - FramePresent(wd); - } - } - - // Cleanup - err = vkDeviceWaitIdle(g_Device); - check_vk_result(err); - ImGui_ImplVulkan_Shutdown(); - ImGui_ImplGlfw_Shutdown(); - ImGui::DestroyContext(); - - CleanupVulkanWindow(); - CleanupVulkan(); - - glfwDestroyWindow(window); - glfwTerminate(); - - return 0; -} diff --git a/third_party/imgui/examples/example_glut_opengl2/Makefile b/third_party/imgui/examples/example_glut_opengl2/Makefile deleted file mode 100644 index a980f56f..00000000 --- a/third_party/imgui/examples/example_glut_opengl2/Makefile +++ /dev/null @@ -1,75 +0,0 @@ -# -# Cross Platform Makefile -# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X -# -# Linux: -# apt-get install freeglut3-dev -# - -#CXX = g++ -#CXX = clang++ - -EXE = example_glut_opengl2 -IMGUI_DIR = ../.. -SOURCES = main.cpp -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_glut.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl2.cpp -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) -UNAME_S := $(shell uname -s) - -CXXFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -CXXFLAGS += -g -Wall -Wformat -LIBS = - -##--------------------------------------------------------------------- -## BUILD FLAGS PER PLATFORM -##--------------------------------------------------------------------- - -ifeq ($(UNAME_S), Linux) #LINUX - ECHO_MESSAGE = "Linux" - LIBS += -lGL -lglut - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(UNAME_S), Darwin) #APPLE - ECHO_MESSAGE = "Mac OS X" - LIBS += -framework OpenGL -framework GLUT - LIBS += -L/usr/local/lib -L/opt/local/lib - - CXXFLAGS += -I/usr/local/include -I/opt/local/include - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(OS), Windows_NT) - ECHO_MESSAGE = "MinGW" - LIBS += -lgdi32 -lopengl32 -limm32 -ifeq ($(shell pkg-config freeglut --exists 2> /dev/null && echo yes || echo no),yes) - CXXFLAGS += $(shell pkg-config freeglut --cflags) - LIBS += $(shell pkg-config freeglut --libs) -else - LIBS += -lglut -endif - CFLAGS = $(CXXFLAGS) -endif - -##--------------------------------------------------------------------- -## BUILD RULES -##--------------------------------------------------------------------- - -%.o:%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -all: $(EXE) - @echo Build complete for $(ECHO_MESSAGE) - -$(EXE): $(OBJS) - $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) - -clean: - rm -f $(EXE) $(OBJS) diff --git a/third_party/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj b/third_party/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj deleted file mode 100644 index f14ea156..00000000 --- a/third_party/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj +++ /dev/null @@ -1,181 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {F90D0333-5FB1-440D-918D-DD39A1B5187E} - example_glut_opengl2 - 8.1 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - $(GLUT_INCLUDE_DIR);..\..;%(AdditionalIncludeDirectories) - - - true - $(GLUT_ROOT_PATH)/lib;%(AdditionalLibraryDirectories) - opengl32.lib;freeglut.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - $(GLUT_INCLUDE_DIR);..\..;%(AdditionalIncludeDirectories) - - - true - $(GLUT_ROOT_PATH)/lib/x64;%(AdditionalLibraryDirectories) - opengl32.lib;freeglut.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - $(GLUT_INCLUDE_DIR);..\..;%(AdditionalIncludeDirectories) - false - - - true - true - true - $(GLUT_ROOT_PATH)/lib;%(AdditionalLibraryDirectories) - opengl32.lib;freeglut.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - $(GLUT_INCLUDE_DIR);..\..;%(AdditionalIncludeDirectories) - false - - - true - true - true - $(GLUT_ROOT_PATH)/lib/x64;%(AdditionalLibraryDirectories) - opengl32.lib;freeglut.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj.filters b/third_party/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj.filters deleted file mode 100644 index 69882910..00000000 --- a/third_party/imgui/examples/example_glut_opengl2/example_glut_opengl2.vcxproj.filters +++ /dev/null @@ -1,61 +0,0 @@ - - - - - {c336cfe3-f0c4-464c-9ef0-a9e17a7ff222} - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - - - sources - - - imgui - - - imgui - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_glut_opengl2/main.cpp b/third_party/imgui/examples/example_glut_opengl2/main.cpp deleted file mode 100644 index f45ffe34..00000000 --- a/third_party/imgui/examples/example_glut_opengl2/main.cpp +++ /dev/null @@ -1,147 +0,0 @@ -// Dear ImGui: standalone example application for GLUT/FreeGLUT + OpenGL2, using legacy fixed pipeline -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// !!! GLUT/FreeGLUT IS OBSOLETE PREHISTORIC SOFTWARE. Using GLUT is not recommended unless you really miss the 90's. !!! -// !!! If someone or something is teaching you GLUT today, you are being abused. Please show some resistance. !!! -// !!! Nowadays, prefer using GLFW or SDL instead! - -#include "imgui.h" -#include "imgui_impl_glut.h" -#include "imgui_impl_opengl2.h" -#ifdef __APPLE__ - #include -#else - #include -#endif - -#ifdef _MSC_VER -#pragma warning (disable: 4505) // unreferenced local function has been removed -#endif - -// Our state -static bool show_demo_window = true; -static bool show_another_window = false; -static ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - -void my_display_code() -{ - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } -} - -void glut_display_func() -{ - // Start the Dear ImGui frame - ImGui_ImplOpenGL2_NewFrame(); - ImGui_ImplGLUT_NewFrame(); - - my_display_code(); - - // Rendering - ImGui::Render(); - ImGuiIO& io = ImGui::GetIO(); - glViewport(0, 0, (GLsizei)io.DisplaySize.x, (GLsizei)io.DisplaySize.y); - glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); - glClear(GL_COLOR_BUFFER_BIT); - //glUseProgram(0); // You may want this if using this code in an OpenGL 3+ context where shaders may be bound, but prefer using the GL3+ code. - ImGui_ImplOpenGL2_RenderDrawData(ImGui::GetDrawData()); - - glutSwapBuffers(); - glutPostRedisplay(); -} - -// You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. -// - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. -// - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. -// Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - -int main(int argc, char** argv) -{ - // Create GLUT window - glutInit(&argc, argv); -#ifdef __FREEGLUT_EXT_H__ - glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_GLUTMAINLOOP_RETURNS); -#endif - glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_MULTISAMPLE); - glutInitWindowSize(1280, 720); - glutCreateWindow("Dear ImGui GLUT+OpenGL2 Example"); - - // Setup GLUT display function - // We will also call ImGui_ImplGLUT_InstallFuncs() to get all the other functions installed for us, - // otherwise it is possible to install our own functions and call the imgui_impl_glut.h functions ourselves. - glutDisplayFunc(glut_display_func); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplGLUT_Init(); - ImGui_ImplGLUT_InstallFuncs(); - ImGui_ImplOpenGL2_Init(); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - glutMainLoop(); - - // Cleanup - ImGui_ImplOpenGL2_Shutdown(); - ImGui_ImplGLUT_Shutdown(); - ImGui::DestroyContext(); - - return 0; -} diff --git a/third_party/imgui/examples/example_marmalade/data/app.icf b/third_party/imgui/examples/example_marmalade/data/app.icf deleted file mode 100644 index fcd6585a..00000000 --- a/third_party/imgui/examples/example_marmalade/data/app.icf +++ /dev/null @@ -1,32 +0,0 @@ -# This file is for configuration settings for your -# application. -# -# The syntax is similar to windows .ini files ie -# -# [GroupName] -# Setting = Value -# -# Which can be read by your application using -# e.g s3eConfigGetString("GroupName", "Setting", string) -# -# All settings must be documented in .config.txt files. -# New settings specific to this application should be -# documented in app.config.txt -# -# Some conditional operations are also permitted, see the -# S3E documentation for details. - -[S3E] -MemSize=6000000 -MemSizeDebug=6000000 -DispFixRot=FixedLandscape - -# emulate iphone 5 resolution, change these settings to emulate other display resolution -WinWidth=1136 -WinHeight=640 - -[GX] -DataCacheSize=131070 - -[Util] -#MemoryBreakpoint=1282 diff --git a/third_party/imgui/examples/example_marmalade/main.cpp b/third_party/imgui/examples/example_marmalade/main.cpp deleted file mode 100644 index e97cb534..00000000 --- a/third_party/imgui/examples/example_marmalade/main.cpp +++ /dev/null @@ -1,124 +0,0 @@ -// Dear ImGui: standalone example application for Marmalade -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// Copyright (C) 2015 by Giovanni Zito -// This file is part of Dear ImGui - -#include "imgui.h" -#include "imgui_impl_marmalade.h" -#include - -#include -#include -#include - -int main(int, char**) -{ - IwGxInit(); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_Marmalade_Init(true); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - while (true) - { - if (s3eDeviceCheckQuitRequest()) - break; - - // Poll and handle inputs - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - s3eKeyboardUpdate(); - s3ePointerUpdate(); - - // Start the Dear ImGui frame - ImGui_Marmalade_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - IwGxSetColClear(clear_color.x * 255, clear_color.y * 255, clear_color.z * 255, clear_color.w * 255); - IwGxClear(); - ImGui_Marmalade_RenderDrawData(ImGui::GetDrawData()); - IwGxSwapBuffers(); - - s3eDeviceYield(0); - } - - // Cleanup - ImGui_Marmalade_Shutdown(); - ImGui::DestroyContext(); - IwGxTerminate(); - - return 0; -} diff --git a/third_party/imgui/examples/example_marmalade/marmalade_example.mkb b/third_party/imgui/examples/example_marmalade/marmalade_example.mkb deleted file mode 100644 index 4e765f16..00000000 --- a/third_party/imgui/examples/example_marmalade/marmalade_example.mkb +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env mkb - -# ImGui - standalone example application for Marmalade -# Copyright (C) 2015 by Giovanni Zito -# This file is part of ImGui -# https://github.com/ocornut/imgui - -define IMGUI_DISABLE_INCLUDE_IMCONFIG_H -define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS -define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS -define _snprintf=snprintf - -options -{ - optimise-speed=1 -} - -includepaths -{ - ../.. - ../../backends -} - -subprojects -{ - iwgx -} - -files -{ - (.) - ["imgui"] - ../../imgui.cpp - ../../imgui_demo.cpp - ../../imgui_draw.cpp - ../../imgui_tables.cpp - ../../imgui_widgets.cpp - ../../imconfig.h - ../../imgui.h - ../../imgui_internal.h - - ["imgui","Marmalade backend"] - ../../backends/imgui_impl_marmalade.h - ../../backends/imgui_impl_marmalade.cpp - main.cpp - -} diff --git a/third_party/imgui/examples/example_null/Makefile b/third_party/imgui/examples/example_null/Makefile deleted file mode 100644 index 2197c01c..00000000 --- a/third_party/imgui/examples/example_null/Makefile +++ /dev/null @@ -1,92 +0,0 @@ -# -# Cross Platform Makefile -# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X -# -# Important: This is a "null backend" application, with no visible output or interaction! -# This is used for testing purpose and continuous integration, and has little use for end-user. -# - -# Options -WITH_EXTRA_WARNINGS ?= 0 -WITH_FREETYPE ?= 0 - -EXE = example_null -IMGUI_DIR = ../.. -SOURCES = main.cpp -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) -UNAME_S := $(shell uname -s) - -CXXFLAGS += -I$(IMGUI_DIR) -CXXFLAGS += -g -Wall -Wformat -LIBS = - -# We use the WITH_EXTRA_WARNINGS flag on our CI setup to eagerly catch zealous warnings -ifeq ($(WITH_EXTRA_WARNINGS), 1) - CXXFLAGS += -Wno-zero-as-null-pointer-constant -Wno-double-promotion -Wno-variadic-macros -endif - -# We use the WITH_FREETYPE flag on our CI setup to test compiling misc/freetype/imgui_freetype.cpp -# (only supported on Linux, and note that the imgui_freetype code currently won't be executed) -ifeq ($(WITH_FREETYPE), 1) - SOURCES += $(IMGUI_DIR)/misc/freetype/imgui_freetype.cpp - CXXFLAGS += $(shell pkg-config --cflags freetype2) - LIBS += $(shell pkg-config --libs freetype2) -endif - -##--------------------------------------------------------------------- -## BUILD FLAGS PER PLATFORM -##--------------------------------------------------------------------- - -ifeq ($(UNAME_S), Linux) #LINUX - ECHO_MESSAGE = "Linux" - ifneq ($(WITH_EXTRA_WARNINGS), 0) - CXXFLAGS += -Wextra -Wpedantic - ifeq ($(shell $(CXX) -v 2>&1 | grep -c "clang version"), 1) - CXXFLAGS += -Wshadow -Wsign-conversion - endif - endif - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(UNAME_S), Darwin) #APPLE - ECHO_MESSAGE = "Mac OS X" - ifneq ($(WITH_EXTRA_WARNINGS), 0) - CXXFLAGS += -Weverything -Wno-reserved-id-macro -Wno-c++98-compat-pedantic -Wno-padded -Wno-c++11-long-long - endif - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(OS), Windows_NT) - ECHO_MESSAGE = "MinGW" - ifneq ($(WITH_EXTRA_WARNINGS), 0) - CXXFLAGS += -Wextra -Wpedantic - endif - LIBS += -limm32 - CFLAGS = $(CXXFLAGS) -endif - -##--------------------------------------------------------------------- -## BUILD RULES -##--------------------------------------------------------------------- - -%.o:%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/misc/freetype/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -all: $(EXE) - @echo Build complete for $(ECHO_MESSAGE) - -$(EXE): $(OBJS) - $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) - -clean: - rm -f $(EXE) $(OBJS) diff --git a/third_party/imgui/examples/example_null/build_win32.bat b/third_party/imgui/examples/example_null/build_win32.bat deleted file mode 100644 index 0cdfdc93..00000000 --- a/third_party/imgui/examples/example_null/build_win32.bat +++ /dev/null @@ -1,3 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -mkdir Debug -cl /nologo /Zi /MD /I ..\.. %* *.cpp ..\..\*.cpp /FeDebug/example_null.exe /FoDebug/ /link gdi32.lib shell32.lib imm32.lib diff --git a/third_party/imgui/examples/example_null/main.cpp b/third_party/imgui/examples/example_null/main.cpp deleted file mode 100644 index 72381f0a..00000000 --- a/third_party/imgui/examples/example_null/main.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// dear imgui: "null" example application -// (compile and link imgui, create context, run headless with NO INPUTS, NO GRAPHICS OUTPUT) -// This is useful to test building, but you cannot interact with anything here! -#include "imgui.h" -#include - -int main(int, char**) -{ - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); - - // Build atlas - unsigned char* tex_pixels = NULL; - int tex_w, tex_h; - io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_w, &tex_h); - - for (int n = 0; n < 20; n++) - { - printf("NewFrame() %d\n", n); - io.DisplaySize = ImVec2(1920, 1080); - io.DeltaTime = 1.0f / 60.0f; - ImGui::NewFrame(); - - static float f = 0.0f; - ImGui::Text("Hello, world!"); - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); - ImGui::ShowDemoWindow(NULL); - - ImGui::Render(); - } - - printf("DestroyContext()\n"); - ImGui::DestroyContext(); - return 0; -} diff --git a/third_party/imgui/examples/example_sdl_directx11/build_win32.bat b/third_party/imgui/examples/example_sdl_directx11/build_win32.bat deleted file mode 100644 index 7433c74f..00000000 --- a/third_party/imgui/examples/example_sdl_directx11/build_win32.bat +++ /dev/null @@ -1,8 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@set OUT_DIR=Debug -@set OUT_EXE=example_sdl_directx11 -@set INCLUDES=/I..\.. /I..\..\backends /I%SDL2_DIR%\include /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" /I "%DXSDK_DIR%Include" -@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_dx11.cpp ..\..\imgui*.cpp -@set LIBS=/LIBPATH:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib /LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d11.lib d3dcompiler.lib -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/third_party/imgui/examples/example_sdl_directx11/example_sdl_directx11.vcxproj b/third_party/imgui/examples/example_sdl_directx11/example_sdl_directx11.vcxproj deleted file mode 100644 index 99dd54af..00000000 --- a/third_party/imgui/examples/example_sdl_directx11/example_sdl_directx11.vcxproj +++ /dev/null @@ -1,182 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {9E1987E3-1F19-45CA-B9C9-D31E791836D8} - example_sdl_directx11 - 8.1 - example_sdl_directx11 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - - - true - %SDL2_DIR%\lib\x86;$(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) - SDL2.lib;SDL2main.lib;d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - - - true - %SDL2_DIR%\lib\x64;$(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) - SDL2.lib;SDL2main.lib;d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - %SDL2_DIR%\lib\x86;$(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) - SDL2.lib;SDL2main.lib;d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - %SDL2_DIR%\lib\x64;$(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) - SDL2.lib;SDL2main.lib;d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_sdl_directx11/example_sdl_directx11.vcxproj.filters b/third_party/imgui/examples/example_sdl_directx11/example_sdl_directx11.vcxproj.filters deleted file mode 100644 index 8ebfd6d1..00000000 --- a/third_party/imgui/examples/example_sdl_directx11/example_sdl_directx11.vcxproj.filters +++ /dev/null @@ -1,60 +0,0 @@ - - - - - {0587d7a3-f2ce-4d56-b84f-a0005d3bfce6} - - - {08e36723-ce4f-4cff-9662-c40801cf1acf} - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - sources - - - imgui - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_sdl_directx11/main.cpp b/third_party/imgui/examples/example_sdl_directx11/main.cpp deleted file mode 100644 index 46da1c59..00000000 --- a/third_party/imgui/examples/example_sdl_directx11/main.cpp +++ /dev/null @@ -1,230 +0,0 @@ -// Dear ImGui: standalone example application for SDL2 + DirectX 11 -// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_sdl.h" -#include "imgui_impl_dx11.h" -#include -#include -#include -#include - -// Data -static ID3D11Device* g_pd3dDevice = NULL; -static ID3D11DeviceContext* g_pd3dDeviceContext = NULL; -static IDXGISwapChain* g_pSwapChain = NULL; -static ID3D11RenderTargetView* g_mainRenderTargetView = NULL; - -// Forward declarations of helper functions -bool CreateDeviceD3D(HWND hWnd); -void CleanupDeviceD3D(); -void CreateRenderTarget(); -void CleanupRenderTarget(); - -// Main code -int main(int, char**) -{ - // Setup SDL - // (Some versions of SDL before <2.0.10 appears to have performance/stalling issues on a minority of Windows systems, - // depending on whether SDL_INIT_GAMECONTROLLER is enabled or disabled.. updating to latest version of SDL is recommended!) - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) - { - printf("Error: %s\n", SDL_GetError()); - return -1; - } - - // Setup window - SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); - SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+DirectX11 example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); - SDL_SysWMinfo wmInfo; - SDL_VERSION(&wmInfo.version); - SDL_GetWindowWMInfo(window, &wmInfo); - HWND hwnd = (HWND)wmInfo.info.win.window; - - // Initialize Direct3D - if (!CreateDeviceD3D(hwnd)) - { - CleanupDeviceD3D(); - return 1; - } - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplSDL2_InitForD3D(window); - ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - bool done = false; - while (!done) - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - SDL_Event event; - while (SDL_PollEvent(&event)) - { - ImGui_ImplSDL2_ProcessEvent(&event); - if (event.type == SDL_QUIT) - done = true; - if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) - done = true; - if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_RESIZED && event.window.windowID == SDL_GetWindowID(window)) - { - // Release all outstanding references to the swap chain's buffers before resizing. - CleanupRenderTarget(); - g_pSwapChain->ResizeBuffers(0, 0, 0, DXGI_FORMAT_UNKNOWN, 0); - CreateRenderTarget(); - } - } - - // Start the Dear ImGui frame - ImGui_ImplDX11_NewFrame(); - ImGui_ImplSDL2_NewFrame(window); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - const float clear_color_with_alpha[4] = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; - g_pd3dDeviceContext->OMSetRenderTargets(1, &g_mainRenderTargetView, NULL); - g_pd3dDeviceContext->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha); - ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); - - g_pSwapChain->Present(1, 0); // Present with vsync - //g_pSwapChain->Present(0, 0); // Present without vsync - } - - // Cleanup - ImGui_ImplDX11_Shutdown(); - ImGui_ImplSDL2_Shutdown(); - ImGui::DestroyContext(); - - CleanupDeviceD3D(); - SDL_DestroyWindow(window); - SDL_Quit(); - - return 0; -} - -// Helper functions - -bool CreateDeviceD3D(HWND hWnd) -{ - // Setup swap chain - DXGI_SWAP_CHAIN_DESC sd; - ZeroMemory(&sd, sizeof(sd)); - sd.BufferCount = 2; - sd.BufferDesc.Width = 0; - sd.BufferDesc.Height = 0; - sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - sd.BufferDesc.RefreshRate.Numerator = 60; - sd.BufferDesc.RefreshRate.Denominator = 1; - sd.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; - sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; - sd.OutputWindow = hWnd; - sd.SampleDesc.Count = 1; - sd.SampleDesc.Quality = 0; - sd.Windowed = TRUE; - sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; - - UINT createDeviceFlags = 0; - //createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG; - D3D_FEATURE_LEVEL featureLevel; - const D3D_FEATURE_LEVEL featureLevelArray[2] = { D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_0, }; - if (D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, createDeviceFlags, featureLevelArray, 2, D3D11_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice, &featureLevel, &g_pd3dDeviceContext) != S_OK) - return false; - - CreateRenderTarget(); - return true; -} - -void CleanupDeviceD3D() -{ - CleanupRenderTarget(); - if (g_pSwapChain) { g_pSwapChain->Release(); g_pSwapChain = NULL; } - if (g_pd3dDeviceContext) { g_pd3dDeviceContext->Release(); g_pd3dDeviceContext = NULL; } - if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } -} - -void CreateRenderTarget() -{ - ID3D11Texture2D* pBackBuffer; - g_pSwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); - g_pd3dDevice->CreateRenderTargetView(pBackBuffer, NULL, &g_mainRenderTargetView); - pBackBuffer->Release(); -} - -void CleanupRenderTarget() -{ - if (g_mainRenderTargetView) { g_mainRenderTargetView->Release(); g_mainRenderTargetView = NULL; } -} diff --git a/third_party/imgui/examples/example_sdl_metal/Makefile b/third_party/imgui/examples/example_sdl_metal/Makefile deleted file mode 100644 index 042bb04c..00000000 --- a/third_party/imgui/examples/example_sdl_metal/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# -# You will need SDL2 (http://www.libsdl.org): -# brew install sdl2 -# - -#CXX = g++ -#CXX = clang++ - -EXE = example_sdl_metal -IMGUI_DIR = ../.. -SOURCES = main.mm -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl.cpp $(IMGUI_DIR)/backends/imgui_impl_metal.mm -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) - -LIBS = -framework Metal -framework MetalKit -framework Cocoa -framework IOKit -framework CoreVideo -framework QuartzCore -LIBS += `sdl2-config --libs` -LIBS += -L/usr/local/lib - -CXXFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -I/usr/local/include -CXXFLAGS += `sdl2-config --cflags` -CXXFLAGS += -Wall -Wformat -CFLAGS = $(CXXFLAGS) - -%.o:%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:%.mm - $(CXX) $(CXXFLAGS) -ObjC++ -fobjc-weak -fobjc-arc -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.mm - $(CXX) $(CXXFLAGS) -ObjC++ -fobjc-weak -fobjc-arc -c -o $@ $< - -all: $(EXE) - @echo Build complete - -$(EXE): $(OBJS) - $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) - -clean: - rm -f $(EXE) $(OBJS) diff --git a/third_party/imgui/examples/example_sdl_metal/main.mm b/third_party/imgui/examples/example_sdl_metal/main.mm deleted file mode 100644 index efbccf4c..00000000 --- a/third_party/imgui/examples/example_sdl_metal/main.mm +++ /dev/null @@ -1,181 +0,0 @@ -// Dear ImGui: standalone example application for SDL2 + Metal -// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_sdl.h" -#include "imgui_impl_metal.h" -#include -#include - -#import -#import - -int main(int, char**) -{ - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.txt' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Setup SDL - // (Some versions of SDL before <2.0.10 appears to have performance/stalling issues on a minority of Windows systems, - // depending on whether SDL_INIT_GAMECONTROLLER is enabled or disabled.. updating to latest version of SDL is recommended!) - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) - { - printf("Error: %s\n", SDL_GetError()); - return -1; - } - - // Inform SDL that we will be using metal for rendering. Without this hint initialization of metal renderer may fail. - SDL_SetHint(SDL_HINT_RENDER_DRIVER, "metal"); - - SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL+Metal example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); - if (window == NULL) - { - printf("Error creating window: %s\n", SDL_GetError()); - return -2; - } - - SDL_Renderer* renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); - if (renderer == NULL) - { - printf("Error creating renderer: %s\n", SDL_GetError()); - return -3; - } - - // Setup Platform/Renderer backends - CAMetalLayer* layer = (__bridge CAMetalLayer*)SDL_RenderGetMetalLayer(renderer); - layer.pixelFormat = MTLPixelFormatBGRA8Unorm; - ImGui_ImplMetal_Init(layer.device); - ImGui_ImplSDL2_InitForMetal(window); - - id commandQueue = [layer.device newCommandQueue]; - MTLRenderPassDescriptor* renderPassDescriptor = [MTLRenderPassDescriptor new]; - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - float clear_color[4] = {0.45f, 0.55f, 0.60f, 1.00f}; - - // Main loop - bool done = false; - while (!done) - { - @autoreleasepool - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - SDL_Event event; - while (SDL_PollEvent(&event)) - { - ImGui_ImplSDL2_ProcessEvent(&event); - if (event.type == SDL_QUIT) - done = true; - if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) - done = true; - } - - int width, height; - SDL_GetRendererOutputSize(renderer, &width, &height); - layer.drawableSize = CGSizeMake(width, height); - id drawable = [layer nextDrawable]; - - id commandBuffer = [commandQueue commandBuffer]; - renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(clear_color[0] * clear_color[3], clear_color[1] * clear_color[3], clear_color[2] * clear_color[3], clear_color[3]); - renderPassDescriptor.colorAttachments[0].texture = drawable.texture; - renderPassDescriptor.colorAttachments[0].loadAction = MTLLoadActionClear; - renderPassDescriptor.colorAttachments[0].storeAction = MTLStoreActionStore; - id renderEncoder = [commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor]; - [renderEncoder pushDebugGroup:@"ImGui demo"]; - - // Start the Dear ImGui frame - ImGui_ImplMetal_NewFrame(renderPassDescriptor); - ImGui_ImplSDL2_NewFrame(window); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - ImGui_ImplMetal_RenderDrawData(ImGui::GetDrawData(), commandBuffer, renderEncoder); - - [renderEncoder popDebugGroup]; - [renderEncoder endEncoding]; - - [commandBuffer presentDrawable:drawable]; - [commandBuffer commit]; - } - } - - // Cleanup - ImGui_ImplMetal_Shutdown(); - ImGui_ImplSDL2_Shutdown(); - ImGui::DestroyContext(); - - SDL_DestroyRenderer(renderer); - SDL_DestroyWindow(window); - SDL_Quit(); - - return 0; -} diff --git a/third_party/imgui/examples/example_sdl_opengl2/Makefile b/third_party/imgui/examples/example_sdl_opengl2/Makefile deleted file mode 100644 index 92e0554b..00000000 --- a/third_party/imgui/examples/example_sdl_opengl2/Makefile +++ /dev/null @@ -1,79 +0,0 @@ -# -# Cross Platform Makefile -# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X -# -# You will need SDL2 (http://www.libsdl.org): -# Linux: -# apt-get install libsdl2-dev -# Mac OS X: -# brew install sdl2 -# MSYS2: -# pacman -S mingw-w64-i686-SDL2 -# - -#CXX = g++ -#CXX = clang++ - -EXE = example_sdl_opengl2 -IMGUI_DIR = ../.. -SOURCES = main.cpp -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl2.cpp -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) -UNAME_S := $(shell uname -s) - -CXXFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -CXXFLAGS += -g -Wall -Wformat -LIBS = - -##--------------------------------------------------------------------- -## BUILD FLAGS PER PLATFORM -##--------------------------------------------------------------------- - -ifeq ($(UNAME_S), Linux) #LINUX - ECHO_MESSAGE = "Linux" - LIBS += -lGL -ldl `sdl2-config --libs` - - CXXFLAGS += `sdl2-config --cflags` - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(UNAME_S), Darwin) #APPLE - ECHO_MESSAGE = "Mac OS X" - LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl2-config --libs` - LIBS += -L/usr/local/lib -L/opt/local/lib - - CXXFLAGS += `sdl2-config --cflags` - CXXFLAGS += -I/usr/local/include -I/opt/local/include - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(OS), Windows_NT) - ECHO_MESSAGE = "MinGW" - LIBS += -lgdi32 -lopengl32 -limm32 `pkg-config --static --libs sdl2` - - CXXFLAGS += `pkg-config --cflags sdl2` - CFLAGS = $(CXXFLAGS) -endif - -##--------------------------------------------------------------------- -## BUILD RULES -##--------------------------------------------------------------------- - -%.o:%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -all: $(EXE) - @echo Build complete for $(ECHO_MESSAGE) - -$(EXE): $(OBJS) - $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) - -clean: - rm -f $(EXE) $(OBJS) diff --git a/third_party/imgui/examples/example_sdl_opengl2/README.md b/third_party/imgui/examples/example_sdl_opengl2/README.md deleted file mode 100644 index 00900638..00000000 --- a/third_party/imgui/examples/example_sdl_opengl2/README.md +++ /dev/null @@ -1,25 +0,0 @@ - -# How to Build - -- On Windows with Visual Studio's CLI - -``` -set SDL2_DIR=path_to_your_sdl2_folder -cl /Zi /MD /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_opengl2.cpp ..\..\imgui*.cpp /FeDebug/example_sdl_opengl2.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console -# ^^ include paths ^^ source files ^^ output exe ^^ output dir ^^ libraries -# or for 64-bit: -cl /Zi /MD /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_opengl2.cpp ..\..\imgui*.cpp /FeDebug/example_sdl_opengl2.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x64 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console -``` - -- On Linux and similar Unixes - -``` -c++ `sdl2-config --cflags` -I .. -I ../.. main.cpp ../../backends/imgui_impl_sdl.cpp ../../backends/imgui_impl_opengl2.cpp ../../imgui*.cpp `sdl2-config --libs` -lGL -``` - -- On Mac OS X - -``` -brew install sdl2 -c++ `sdl2-config --cflags` -I .. -I ../.. main.cpp ../../backends/imgui_impl_sdl.cpp ../../backends/imgui_impl_opengl2.cpp ../../imgui*.cpp `sdl2-config --libs` -framework OpenGl -``` diff --git a/third_party/imgui/examples/example_sdl_opengl2/build_win32.bat b/third_party/imgui/examples/example_sdl_opengl2/build_win32.bat deleted file mode 100644 index d7fb003b..00000000 --- a/third_party/imgui/examples/example_sdl_opengl2/build_win32.bat +++ /dev/null @@ -1,8 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@set OUT_DIR=Debug -@set OUT_EXE=example_sdl_opengl2 -@set INCLUDES=/I..\.. /I..\..\backends /I%SDL2_DIR%\include -@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_opengl2.cpp ..\..\imgui*.cpp -@set LIBS=/LIBPATH:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib opengl32.lib -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/third_party/imgui/examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj b/third_party/imgui/examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj deleted file mode 100644 index 6b9e642d..00000000 --- a/third_party/imgui/examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj +++ /dev/null @@ -1,181 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {2AE17FDE-F7F3-4CAC-ADAB-0710EDA4F741} - example_sdl_opengl2 - 8.1 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - - - true - %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - - - true - %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj.filters b/third_party/imgui/examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj.filters deleted file mode 100644 index 643b0ed7..00000000 --- a/third_party/imgui/examples/example_sdl_opengl2/example_sdl_opengl2.vcxproj.filters +++ /dev/null @@ -1,61 +0,0 @@ - - - - - {20b90ce4-7fcb-4731-b9a0-075f875de82d} - - - {f18ab499-84e1-499f-8eff-9754361e0e52} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - - - imgui - - - imgui - - - imgui - - - sources - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_sdl_opengl2/main.cpp b/third_party/imgui/examples/example_sdl_opengl2/main.cpp deleted file mode 100644 index 016b3083..00000000 --- a/third_party/imgui/examples/example_sdl_opengl2/main.cpp +++ /dev/null @@ -1,157 +0,0 @@ -// Dear ImGui: standalone example application for SDL2 + OpenGL -// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)** -// **Prefer using the code in the example_sdl_opengl3/ folder** -// See imgui_impl_sdl.cpp for details. - -#include "imgui.h" -#include "imgui_impl_sdl.h" -#include "imgui_impl_opengl2.h" -#include -#include -#include - -// Main code -int main(int, char**) -{ - // Setup SDL - // (Some versions of SDL before <2.0.10 appears to have performance/stalling issues on a minority of Windows systems, - // depending on whether SDL_INIT_GAMECONTROLLER is enabled or disabled.. updating to latest version of SDL is recommended!) - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) - { - printf("Error: %s\n", SDL_GetError()); - return -1; - } - - // Setup window - SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); - SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); - SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); - SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); - SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+OpenGL example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); - SDL_GLContext gl_context = SDL_GL_CreateContext(window); - SDL_GL_MakeCurrent(window, gl_context); - SDL_GL_SetSwapInterval(1); // Enable vsync - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplSDL2_InitForOpenGL(window, gl_context); - ImGui_ImplOpenGL2_Init(); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - bool done = false; - while (!done) - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - SDL_Event event; - while (SDL_PollEvent(&event)) - { - ImGui_ImplSDL2_ProcessEvent(&event); - if (event.type == SDL_QUIT) - done = true; - if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) - done = true; - } - - // Start the Dear ImGui frame - ImGui_ImplOpenGL2_NewFrame(); - ImGui_ImplSDL2_NewFrame(window); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); - glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); - glClear(GL_COLOR_BUFFER_BIT); - //glUseProgram(0); // You may want this if using this code in an OpenGL 3+ context where shaders may be bound - ImGui_ImplOpenGL2_RenderDrawData(ImGui::GetDrawData()); - SDL_GL_SwapWindow(window); - } - - // Cleanup - ImGui_ImplOpenGL2_Shutdown(); - ImGui_ImplSDL2_Shutdown(); - ImGui::DestroyContext(); - - SDL_GL_DeleteContext(gl_context); - SDL_DestroyWindow(window); - SDL_Quit(); - - return 0; -} diff --git a/third_party/imgui/examples/example_sdl_opengl3/Makefile b/third_party/imgui/examples/example_sdl_opengl3/Makefile deleted file mode 100644 index 7c0e7ea8..00000000 --- a/third_party/imgui/examples/example_sdl_opengl3/Makefile +++ /dev/null @@ -1,115 +0,0 @@ -# -# Cross Platform Makefile -# Compatible with MSYS2/MINGW, Ubuntu 14.04.1 and Mac OS X -# -# You will need SDL2 (http://www.libsdl.org): -# Linux: -# apt-get install libsdl2-dev -# Mac OS X: -# brew install sdl2 -# MSYS2: -# pacman -S mingw-w64-i686-SDL2 -# - -#CXX = g++ -#CXX = clang++ - -EXE = example_sdl_opengl3 -IMGUI_DIR = ../.. -SOURCES = main.cpp -SOURCES += $(IMGUI_DIR)/imgui.cpp $(IMGUI_DIR)/imgui_demo.cpp $(IMGUI_DIR)/imgui_draw.cpp $(IMGUI_DIR)/imgui_tables.cpp $(IMGUI_DIR)/imgui_widgets.cpp -SOURCES += $(IMGUI_DIR)/backends/imgui_impl_sdl.cpp $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp -OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES)))) -UNAME_S := $(shell uname -s) - -CXXFLAGS = -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends -CXXFLAGS += -g -Wall -Wformat -LIBS = - -##--------------------------------------------------------------------- -## OPENGL LOADER -##--------------------------------------------------------------------- - -## Using OpenGL loader: gl3w [default] -SOURCES += ../libs/gl3w/GL/gl3w.c -CXXFLAGS += -I../libs/gl3w -DIMGUI_IMPL_OPENGL_LOADER_GL3W - -## Using OpenGL loader: glew -## (This assumes a system-wide installation) -# CXXFLAGS += -DIMGUI_IMPL_OPENGL_LOADER_GLEW -# LIBS += -lGLEW - -## Using OpenGL loader: glad -# SOURCES += ../libs/glad/src/glad.c -# CXXFLAGS += -I../libs/glad/include -DIMGUI_IMPL_OPENGL_LOADER_GLAD - -## Using OpenGL loader: glad2 -# SOURCES += ../libs/glad/src/gl.c -# CXXFLAGS += -I../libs/glad/include -DIMGUI_IMPL_OPENGL_LOADER_GLAD2 - -## Using OpenGL loader: glbinding -## This assumes a system-wide installation -## of either version 3.0.0 (or newer) -# CXXFLAGS += -DIMGUI_IMPL_OPENGL_LOADER_GLBINDING3 -# LIBS += -lglbinding -## or the older version 2.x -# CXXFLAGS += -DIMGUI_IMPL_OPENGL_LOADER_GLBINDING2 -# LIBS += -lglbinding - -##--------------------------------------------------------------------- -## BUILD FLAGS PER PLATFORM -##--------------------------------------------------------------------- - -ifeq ($(UNAME_S), Linux) #LINUX - ECHO_MESSAGE = "Linux" - LIBS += -lGL -ldl `sdl2-config --libs` - - CXXFLAGS += `sdl2-config --cflags` - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(UNAME_S), Darwin) #APPLE - ECHO_MESSAGE = "Mac OS X" - LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl2-config --libs` - LIBS += -L/usr/local/lib -L/opt/local/lib - - CXXFLAGS += `sdl2-config --cflags` - CXXFLAGS += -I/usr/local/include -I/opt/local/include - CFLAGS = $(CXXFLAGS) -endif - -ifeq ($(OS), Windows_NT) - ECHO_MESSAGE = "MinGW" - LIBS += -lgdi32 -lopengl32 -limm32 `pkg-config --static --libs sdl2` - - CXXFLAGS += `pkg-config --cflags sdl2` - CFLAGS = $(CXXFLAGS) -endif - -##--------------------------------------------------------------------- -## BUILD RULES -##--------------------------------------------------------------------- - -%.o:%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:$(IMGUI_DIR)/backends/%.cpp - $(CXX) $(CXXFLAGS) -c -o $@ $< - -%.o:../libs/gl3w/GL/%.c - $(CC) $(CFLAGS) -c -o $@ $< - -%.o:../libs/glad/src/%.c - $(CC) $(CFLAGS) -c -o $@ $< - -all: $(EXE) - @echo Build complete for $(ECHO_MESSAGE) - -$(EXE): $(OBJS) - $(CXX) -o $@ $^ $(CXXFLAGS) $(LIBS) - -clean: - rm -f $(EXE) $(OBJS) diff --git a/third_party/imgui/examples/example_sdl_opengl3/README.md b/third_party/imgui/examples/example_sdl_opengl3/README.md deleted file mode 100644 index edeafec3..00000000 --- a/third_party/imgui/examples/example_sdl_opengl3/README.md +++ /dev/null @@ -1,25 +0,0 @@ - -# How to Build - -- On Windows with Visual Studio's CLI - -``` -set SDL2_DIR=path_to_your_sdl2_folder -cl /Zi /MD /I.. /I..\.. /I%SDL2_DIR%\include /I..\libs\gl3w main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp ..\libs\gl3w\GL\gl3w.c /FeDebug/example_sdl_opengl3.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console -# ^^ include paths ^^ source files ^^ output exe ^^ output dir ^^ libraries -# or for 64-bit: -cl /Zi /MD /I.. /I..\.. /I%SDL2_DIR%\include /I..\libs\gl3w main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp ..\libs\gl3w\GL\gl3w.c /FeDebug/example_sdl_opengl3.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x64 SDL2.lib SDL2main.lib opengl32.lib /subsystem:console -``` - -- On Linux and similar Unixes - -``` -c++ `sdl2-config --cflags` -I .. -I ../.. -I ../libs/gl3w main.cpp ../../backends/imgui_impl_sdl.cpp ../../backends/imgui_impl_opengl3.cpp ../../imgui*.cpp ../libs/gl3w/GL/gl3w.c `sdl2-config --libs` -lGL -ldl -``` - -- On Mac OS X - -``` -brew install sdl2 -c++ `sdl2-config --cflags` -I .. -I ../.. -I ../libs/gl3w main.cpp ../../backends/imgui_impl_sdl.cpp ../../backends/imgui_impl_opengl3.cpp ../../imgui*.cpp ../libs/gl3w/GL/gl3w.c `sdl2-config --libs` -framework OpenGl -framework CoreFoundation -``` diff --git a/third_party/imgui/examples/example_sdl_opengl3/build_win32.bat b/third_party/imgui/examples/example_sdl_opengl3/build_win32.bat deleted file mode 100644 index 8f549601..00000000 --- a/third_party/imgui/examples/example_sdl_opengl3/build_win32.bat +++ /dev/null @@ -1,8 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@set OUT_DIR=Debug -@set OUT_EXE=example_sdl_opengl3 -@set INCLUDES=/I..\.. /I..\..\backends /I%SDL2_DIR%\include /I..\libs\gl3w -@set SOURCES=main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_opengl3.cpp ..\..\imgui*.cpp ..\libs\gl3w\GL\gl3w.c -@set LIBS=/LIBPATH:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib opengl32.lib -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% /subsystem:console diff --git a/third_party/imgui/examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj b/third_party/imgui/examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj deleted file mode 100644 index 7ef1a792..00000000 --- a/third_party/imgui/examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj +++ /dev/null @@ -1,184 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {BBAEB705-1669-40F3-8567-04CF6A991F4C} - example_sdl_opengl3 - 8.1 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - ..\..;..\..\backends;%SDL2_DIR%\include;..\libs\gl3w;%(AdditionalIncludeDirectories) - - - true - %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - ..\..;..\..\backends;%SDL2_DIR%\include;..\libs\gl3w;%(AdditionalIncludeDirectories) - - - true - %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%SDL2_DIR%\include;..\libs\gl3w;%(AdditionalIncludeDirectories) - false - - - true - true - true - %SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%SDL2_DIR%\include;..\libs\gl3w;%(AdditionalIncludeDirectories) - false - - - true - true - true - %SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj.filters b/third_party/imgui/examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj.filters deleted file mode 100644 index f6e323de..00000000 --- a/third_party/imgui/examples/example_sdl_opengl3/example_sdl_opengl3.vcxproj.filters +++ /dev/null @@ -1,73 +0,0 @@ - - - - - {20b90ce4-7fcb-4731-b9a0-075f875de82d} - - - {f18ab499-84e1-499f-8eff-9754361e0e52} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {f9997b32-5479-4756-9ffc-77793ad3764f} - - - - - imgui - - - imgui - - - imgui - - - sources - - - gl3w - - - sources - - - sources - - - imgui - - - imgui - - - - - imgui - - - imgui - - - imgui - - - gl3w - - - gl3w - - - sources - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_sdl_opengl3/main.cpp b/third_party/imgui/examples/example_sdl_opengl3/main.cpp deleted file mode 100644 index b3a1c482..00000000 --- a/third_party/imgui/examples/example_sdl_opengl3/main.cpp +++ /dev/null @@ -1,217 +0,0 @@ -// Dear ImGui: standalone example application for SDL2 + OpenGL -// (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) -// (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives are GLEW, Glad, etc.) -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_sdl.h" -#include "imgui_impl_opengl3.h" -#include -#include - -// About Desktop OpenGL function loaders: -// Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers. -// Helper libraries are often used for this purpose! Here we are supporting a few common ones (gl3w, glew, glad). -// You may use another loader/header of your choice (glext, glLoadGen, etc.), or chose to manually implement your own. -#if defined(IMGUI_IMPL_OPENGL_LOADER_GL3W) -#include // Initialize with gl3wInit() -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) -#include // Initialize with glewInit() -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD) -#include // Initialize with gladLoadGL() -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2) -#include // Initialize with gladLoadGL(...) or gladLoaderLoadGL() -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING2) -#define GLFW_INCLUDE_NONE // GLFW including OpenGL headers causes ambiguity or multiple definition errors. -#include // Initialize with glbinding::Binding::initialize() -#include -using namespace gl; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING3) -#define GLFW_INCLUDE_NONE // GLFW including OpenGL headers causes ambiguity or multiple definition errors. -#include // Initialize with glbinding::initialize() -#include -using namespace gl; -#else -#include IMGUI_IMPL_OPENGL_LOADER_CUSTOM -#endif - -// Main code -int main(int, char**) -{ - // Setup SDL - // (Some versions of SDL before <2.0.10 appears to have performance/stalling issues on a minority of Windows systems, - // depending on whether SDL_INIT_GAMECONTROLLER is enabled or disabled.. updating to latest version of SDL is recommended!) - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) - { - printf("Error: %s\n", SDL_GetError()); - return -1; - } - - // Decide GL+GLSL versions -#ifdef __APPLE__ - // GL 3.2 Core + GLSL 150 - const char* glsl_version = "#version 150"; - SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG); // Always required on Mac - SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2); -#else - // GL 3.0 + GLSL 130 - const char* glsl_version = "#version 130"; - SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); - SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); -#endif - - // Create window with graphics context - SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); - SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); - SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); - SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); - SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+OpenGL3 example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); - SDL_GLContext gl_context = SDL_GL_CreateContext(window); - SDL_GL_MakeCurrent(window, gl_context); - SDL_GL_SetSwapInterval(1); // Enable vsync - - // Initialize OpenGL loader -#if defined(IMGUI_IMPL_OPENGL_LOADER_GL3W) - bool err = gl3wInit() != 0; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) - bool err = glewInit() != GLEW_OK; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD) - bool err = gladLoadGL() == 0; -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLAD2) - bool err = gladLoadGL((GLADloadfunc)SDL_GL_GetProcAddress) == 0; // glad2 recommend using the windowing library loader instead of the (optionally) bundled one. -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING2) - bool err = false; - glbinding::Binding::initialize(); -#elif defined(IMGUI_IMPL_OPENGL_LOADER_GLBINDING3) - bool err = false; - glbinding::initialize([](const char* name) { return (glbinding::ProcAddress)SDL_GL_GetProcAddress(name); }); -#else - bool err = false; // If you use IMGUI_IMPL_OPENGL_LOADER_CUSTOM, your loader is likely to requires some form of initialization. -#endif - if (err) - { - fprintf(stderr, "Failed to initialize OpenGL loader!\n"); - return 1; - } - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplSDL2_InitForOpenGL(window, gl_context); - ImGui_ImplOpenGL3_Init(glsl_version); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - bool done = false; - while (!done) - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - SDL_Event event; - while (SDL_PollEvent(&event)) - { - ImGui_ImplSDL2_ProcessEvent(&event); - if (event.type == SDL_QUIT) - done = true; - if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) - done = true; - } - - // Start the Dear ImGui frame - ImGui_ImplOpenGL3_NewFrame(); - ImGui_ImplSDL2_NewFrame(window); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); - glClearColor(clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); - glClear(GL_COLOR_BUFFER_BIT); - ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); - SDL_GL_SwapWindow(window); - } - - // Cleanup - ImGui_ImplOpenGL3_Shutdown(); - ImGui_ImplSDL2_Shutdown(); - ImGui::DestroyContext(); - - SDL_GL_DeleteContext(gl_context); - SDL_DestroyWindow(window); - SDL_Quit(); - - return 0; -} diff --git a/third_party/imgui/examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj b/third_party/imgui/examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj deleted file mode 100644 index 8567b790..00000000 --- a/third_party/imgui/examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj +++ /dev/null @@ -1,181 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {BAE3D0B5-9695-4EB1-AD0F-75890EB4A3B3} - example_sdl_vulkan - 8.1 - - - - Application - true - MultiByte - v110 - - - Application - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - Application - false - true - MultiByte - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - $(IncludePath) - - - - Level4 - Disabled - ..\..;..\..\backends;%VULKAN_SDK%\include;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - - - true - %VULKAN_SDK%\lib32;%SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) - vulkan-1.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - Disabled - ..\..;..\..\backends;%VULKAN_SDK%\include;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - - - true - %VULKAN_SDK%\lib;%SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) - vulkan-1.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - msvcrt.lib - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%VULKAN_SDK%\include;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - %VULKAN_SDK%\lib32;%SDL2_DIR%\lib\x86;%(AdditionalLibraryDirectories) - vulkan-1.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - - - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%VULKAN_SDK%\include;%SDL2_DIR%\include;%(AdditionalIncludeDirectories) - false - - - true - true - true - %VULKAN_SDK%\lib;%SDL2_DIR%\lib\x64;%(AdditionalLibraryDirectories) - vulkan-1.lib;SDL2.lib;SDL2main.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj.filters b/third_party/imgui/examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj.filters deleted file mode 100644 index 8a6b48e3..00000000 --- a/third_party/imgui/examples/example_sdl_vulkan/example_sdl_vulkan.vcxproj.filters +++ /dev/null @@ -1,58 +0,0 @@ - - - - - {20b90ce4-7fcb-4731-b9a0-075f875de82d} - - - {f18ab499-84e1-499f-8eff-9754361e0e52} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - sources - - - imgui - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - - sources - - - \ No newline at end of file diff --git a/third_party/imgui/examples/example_sdl_vulkan/main.cpp b/third_party/imgui/examples/example_sdl_vulkan/main.cpp deleted file mode 100644 index ea038bac..00000000 --- a/third_party/imgui/examples/example_sdl_vulkan/main.cpp +++ /dev/null @@ -1,547 +0,0 @@ -// Dear ImGui: standalone example application for SDL2 + Vulkan -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// Important note to the reader who wish to integrate imgui_impl_vulkan.cpp/.h in their own engine/app. -// - Common ImGui_ImplVulkan_XXX functions and structures are used to interface with imgui_impl_vulkan.cpp/.h. -// You will use those if you want to use this rendering backend in your engine/app. -// - Helper ImGui_ImplVulkanH_XXX functions and structures are only used by this example (main.cpp) and by -// the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. -// Read comments in imgui_impl_vulkan.h. - -#include "imgui.h" -#include "imgui_impl_sdl.h" -#include "imgui_impl_vulkan.h" -#include // printf, fprintf -#include // abort -#include -#include -#include - -//#define IMGUI_UNLIMITED_FRAME_RATE -#ifdef _DEBUG -#define IMGUI_VULKAN_DEBUG_REPORT -#endif - -static VkAllocationCallbacks* g_Allocator = NULL; -static VkInstance g_Instance = VK_NULL_HANDLE; -static VkPhysicalDevice g_PhysicalDevice = VK_NULL_HANDLE; -static VkDevice g_Device = VK_NULL_HANDLE; -static uint32_t g_QueueFamily = (uint32_t)-1; -static VkQueue g_Queue = VK_NULL_HANDLE; -static VkDebugReportCallbackEXT g_DebugReport = VK_NULL_HANDLE; -static VkPipelineCache g_PipelineCache = VK_NULL_HANDLE; -static VkDescriptorPool g_DescriptorPool = VK_NULL_HANDLE; - -static ImGui_ImplVulkanH_Window g_MainWindowData; -static uint32_t g_MinImageCount = 2; -static bool g_SwapChainRebuild = false; - -static void check_vk_result(VkResult err) -{ - if (err == 0) - return; - fprintf(stderr, "[vulkan] Error: VkResult = %d\n", err); - if (err < 0) - abort(); -} - -#ifdef IMGUI_VULKAN_DEBUG_REPORT -static VKAPI_ATTR VkBool32 VKAPI_CALL debug_report(VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage, void* pUserData) -{ - (void)flags; (void)object; (void)location; (void)messageCode; (void)pUserData; (void)pLayerPrefix; // Unused arguments - fprintf(stderr, "[vulkan] Debug report from ObjectType: %i\nMessage: %s\n\n", objectType, pMessage); - return VK_FALSE; -} -#endif // IMGUI_VULKAN_DEBUG_REPORT - -static void SetupVulkan(const char** extensions, uint32_t extensions_count) -{ - VkResult err; - - // Create Vulkan Instance - { - VkInstanceCreateInfo create_info = {}; - create_info.sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO; - create_info.enabledExtensionCount = extensions_count; - create_info.ppEnabledExtensionNames = extensions; -#ifdef IMGUI_VULKAN_DEBUG_REPORT - // Enabling validation layers - const char* layers[] = { "VK_LAYER_KHRONOS_validation" }; - create_info.enabledLayerCount = 1; - create_info.ppEnabledLayerNames = layers; - - // Enable debug report extension (we need additional storage, so we duplicate the user array to add our new extension to it) - const char** extensions_ext = (const char**)malloc(sizeof(const char*) * (extensions_count + 1)); - memcpy(extensions_ext, extensions, extensions_count * sizeof(const char*)); - extensions_ext[extensions_count] = "VK_EXT_debug_report"; - create_info.enabledExtensionCount = extensions_count + 1; - create_info.ppEnabledExtensionNames = extensions_ext; - - // Create Vulkan Instance - err = vkCreateInstance(&create_info, g_Allocator, &g_Instance); - check_vk_result(err); - free(extensions_ext); - - // Get the function pointer (required for any extensions) - auto vkCreateDebugReportCallbackEXT = (PFN_vkCreateDebugReportCallbackEXT)vkGetInstanceProcAddr(g_Instance, "vkCreateDebugReportCallbackEXT"); - IM_ASSERT(vkCreateDebugReportCallbackEXT != NULL); - - // Setup the debug report callback - VkDebugReportCallbackCreateInfoEXT debug_report_ci = {}; - debug_report_ci.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; - debug_report_ci.flags = VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT | VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT; - debug_report_ci.pfnCallback = debug_report; - debug_report_ci.pUserData = NULL; - err = vkCreateDebugReportCallbackEXT(g_Instance, &debug_report_ci, g_Allocator, &g_DebugReport); - check_vk_result(err); -#else - // Create Vulkan Instance without any debug feature - err = vkCreateInstance(&create_info, g_Allocator, &g_Instance); - check_vk_result(err); - IM_UNUSED(g_DebugReport); -#endif - } - - // Select GPU - { - uint32_t gpu_count; - err = vkEnumeratePhysicalDevices(g_Instance, &gpu_count, NULL); - check_vk_result(err); - IM_ASSERT(gpu_count > 0); - - VkPhysicalDevice* gpus = (VkPhysicalDevice*)malloc(sizeof(VkPhysicalDevice) * gpu_count); - err = vkEnumeratePhysicalDevices(g_Instance, &gpu_count, gpus); - check_vk_result(err); - - // If a number >1 of GPUs got reported, you should find the best fit GPU for your purpose - // e.g. VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU if available, or with the greatest memory available, etc. - // for sake of simplicity we'll just take the first one, assuming it has a graphics queue family. - g_PhysicalDevice = gpus[0]; - free(gpus); - } - - // Select graphics queue family - { - uint32_t count; - vkGetPhysicalDeviceQueueFamilyProperties(g_PhysicalDevice, &count, NULL); - VkQueueFamilyProperties* queues = (VkQueueFamilyProperties*)malloc(sizeof(VkQueueFamilyProperties) * count); - vkGetPhysicalDeviceQueueFamilyProperties(g_PhysicalDevice, &count, queues); - for (uint32_t i = 0; i < count; i++) - if (queues[i].queueFlags & VK_QUEUE_GRAPHICS_BIT) - { - g_QueueFamily = i; - break; - } - free(queues); - IM_ASSERT(g_QueueFamily != (uint32_t)-1); - } - - // Create Logical Device (with 1 queue) - { - int device_extension_count = 1; - const char* device_extensions[] = { "VK_KHR_swapchain" }; - const float queue_priority[] = { 1.0f }; - VkDeviceQueueCreateInfo queue_info[1] = {}; - queue_info[0].sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; - queue_info[0].queueFamilyIndex = g_QueueFamily; - queue_info[0].queueCount = 1; - queue_info[0].pQueuePriorities = queue_priority; - VkDeviceCreateInfo create_info = {}; - create_info.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; - create_info.queueCreateInfoCount = sizeof(queue_info) / sizeof(queue_info[0]); - create_info.pQueueCreateInfos = queue_info; - create_info.enabledExtensionCount = device_extension_count; - create_info.ppEnabledExtensionNames = device_extensions; - err = vkCreateDevice(g_PhysicalDevice, &create_info, g_Allocator, &g_Device); - check_vk_result(err); - vkGetDeviceQueue(g_Device, g_QueueFamily, 0, &g_Queue); - } - - // Create Descriptor Pool - { - VkDescriptorPoolSize pool_sizes[] = - { - { VK_DESCRIPTOR_TYPE_SAMPLER, 1000 }, - { VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1000 }, - { VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, 1000 }, - { VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, 1000 }, - { VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 1000 }, - { VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER, 1000 }, - { VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1000 }, - { VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 1000 }, - { VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 1000 }, - { VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC, 1000 }, - { VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT, 1000 } - }; - VkDescriptorPoolCreateInfo pool_info = {}; - pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO; - pool_info.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT; - pool_info.maxSets = 1000 * IM_ARRAYSIZE(pool_sizes); - pool_info.poolSizeCount = (uint32_t)IM_ARRAYSIZE(pool_sizes); - pool_info.pPoolSizes = pool_sizes; - err = vkCreateDescriptorPool(g_Device, &pool_info, g_Allocator, &g_DescriptorPool); - check_vk_result(err); - } -} - -// All the ImGui_ImplVulkanH_XXX structures/functions are optional helpers used by the demo. -// Your real engine/app may not use them. -static void SetupVulkanWindow(ImGui_ImplVulkanH_Window* wd, VkSurfaceKHR surface, int width, int height) -{ - wd->Surface = surface; - - // Check for WSI support - VkBool32 res; - vkGetPhysicalDeviceSurfaceSupportKHR(g_PhysicalDevice, g_QueueFamily, wd->Surface, &res); - if (res != VK_TRUE) - { - fprintf(stderr, "Error no WSI support on physical device 0\n"); - exit(-1); - } - - // Select Surface Format - const VkFormat requestSurfaceImageFormat[] = { VK_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_B8G8R8_UNORM, VK_FORMAT_R8G8B8_UNORM }; - const VkColorSpaceKHR requestSurfaceColorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR; - wd->SurfaceFormat = ImGui_ImplVulkanH_SelectSurfaceFormat(g_PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceImageFormat), requestSurfaceColorSpace); - - // Select Present Mode -#ifdef IMGUI_UNLIMITED_FRAME_RATE - VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_FIFO_KHR }; -#else - VkPresentModeKHR present_modes[] = { VK_PRESENT_MODE_FIFO_KHR }; -#endif - wd->PresentMode = ImGui_ImplVulkanH_SelectPresentMode(g_PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); - //printf("[vulkan] Selected PresentMode = %d\n", wd->PresentMode); - - // Create SwapChain, RenderPass, Framebuffer, etc. - IM_ASSERT(g_MinImageCount >= 2); - ImGui_ImplVulkanH_CreateOrResizeWindow(g_Instance, g_PhysicalDevice, g_Device, wd, g_QueueFamily, g_Allocator, width, height, g_MinImageCount); -} - -static void CleanupVulkan() -{ - vkDestroyDescriptorPool(g_Device, g_DescriptorPool, g_Allocator); - -#ifdef IMGUI_VULKAN_DEBUG_REPORT - // Remove the debug report callback - auto vkDestroyDebugReportCallbackEXT = (PFN_vkDestroyDebugReportCallbackEXT)vkGetInstanceProcAddr(g_Instance, "vkDestroyDebugReportCallbackEXT"); - vkDestroyDebugReportCallbackEXT(g_Instance, g_DebugReport, g_Allocator); -#endif // IMGUI_VULKAN_DEBUG_REPORT - - vkDestroyDevice(g_Device, g_Allocator); - vkDestroyInstance(g_Instance, g_Allocator); -} - -static void CleanupVulkanWindow() -{ - ImGui_ImplVulkanH_DestroyWindow(g_Instance, g_Device, &g_MainWindowData, g_Allocator); -} - -static void FrameRender(ImGui_ImplVulkanH_Window* wd, ImDrawData* draw_data) -{ - VkResult err; - - VkSemaphore image_acquired_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].ImageAcquiredSemaphore; - VkSemaphore render_complete_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].RenderCompleteSemaphore; - err = vkAcquireNextImageKHR(g_Device, wd->Swapchain, UINT64_MAX, image_acquired_semaphore, VK_NULL_HANDLE, &wd->FrameIndex); - if (err == VK_ERROR_OUT_OF_DATE_KHR) - { - g_SwapChainRebuild = true; - return; - } - check_vk_result(err); - - ImGui_ImplVulkanH_Frame* fd = &wd->Frames[wd->FrameIndex]; - { - err = vkWaitForFences(g_Device, 1, &fd->Fence, VK_TRUE, UINT64_MAX); // wait indefinitely instead of periodically checking - check_vk_result(err); - - err = vkResetFences(g_Device, 1, &fd->Fence); - check_vk_result(err); - } - { - err = vkResetCommandPool(g_Device, fd->CommandPool, 0); - check_vk_result(err); - VkCommandBufferBeginInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; - info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; - err = vkBeginCommandBuffer(fd->CommandBuffer, &info); - check_vk_result(err); - } - { - VkRenderPassBeginInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; - info.renderPass = wd->RenderPass; - info.framebuffer = fd->Framebuffer; - info.renderArea.extent.width = wd->Width; - info.renderArea.extent.height = wd->Height; - info.clearValueCount = 1; - info.pClearValues = &wd->ClearValue; - vkCmdBeginRenderPass(fd->CommandBuffer, &info, VK_SUBPASS_CONTENTS_INLINE); - } - - // Record dear imgui primitives into command buffer - ImGui_ImplVulkan_RenderDrawData(draw_data, fd->CommandBuffer); - - // Submit command buffer - vkCmdEndRenderPass(fd->CommandBuffer); - { - VkPipelineStageFlags wait_stage = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; - VkSubmitInfo info = {}; - info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; - info.waitSemaphoreCount = 1; - info.pWaitSemaphores = &image_acquired_semaphore; - info.pWaitDstStageMask = &wait_stage; - info.commandBufferCount = 1; - info.pCommandBuffers = &fd->CommandBuffer; - info.signalSemaphoreCount = 1; - info.pSignalSemaphores = &render_complete_semaphore; - - err = vkEndCommandBuffer(fd->CommandBuffer); - check_vk_result(err); - err = vkQueueSubmit(g_Queue, 1, &info, fd->Fence); - check_vk_result(err); - } -} - -static void FramePresent(ImGui_ImplVulkanH_Window* wd) -{ - if (g_SwapChainRebuild) - return; - VkSemaphore render_complete_semaphore = wd->FrameSemaphores[wd->SemaphoreIndex].RenderCompleteSemaphore; - VkPresentInfoKHR info = {}; - info.sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR; - info.waitSemaphoreCount = 1; - info.pWaitSemaphores = &render_complete_semaphore; - info.swapchainCount = 1; - info.pSwapchains = &wd->Swapchain; - info.pImageIndices = &wd->FrameIndex; - VkResult err = vkQueuePresentKHR(g_Queue, &info); - if (err == VK_ERROR_OUT_OF_DATE_KHR) - { - g_SwapChainRebuild = true; - return; - } - check_vk_result(err); - wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->ImageCount; // Now we can use the next set of semaphores -} - -int main(int, char**) -{ - // Setup SDL - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) - { - printf("Error: %s\n", SDL_GetError()); - return -1; - } - - // Setup window - SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI); - SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL2+Vulkan example", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1280, 720, window_flags); - - // Setup Vulkan - uint32_t extensions_count = 0; - SDL_Vulkan_GetInstanceExtensions(window, &extensions_count, NULL); - const char** extensions = new const char*[extensions_count]; - SDL_Vulkan_GetInstanceExtensions(window, &extensions_count, extensions); - SetupVulkan(extensions, extensions_count); - delete[] extensions; - - // Create Window Surface - VkSurfaceKHR surface; - VkResult err; - if (SDL_Vulkan_CreateSurface(window, g_Instance, &surface) == 0) - { - printf("Failed to create Vulkan surface.\n"); - return 1; - } - - // Create Framebuffers - int w, h; - SDL_GetWindowSize(window, &w, &h); - ImGui_ImplVulkanH_Window* wd = &g_MainWindowData; - SetupVulkanWindow(wd, surface, w, h); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplSDL2_InitForVulkan(window); - ImGui_ImplVulkan_InitInfo init_info = {}; - init_info.Instance = g_Instance; - init_info.PhysicalDevice = g_PhysicalDevice; - init_info.Device = g_Device; - init_info.QueueFamily = g_QueueFamily; - init_info.Queue = g_Queue; - init_info.PipelineCache = g_PipelineCache; - init_info.DescriptorPool = g_DescriptorPool; - init_info.Allocator = g_Allocator; - init_info.MinImageCount = g_MinImageCount; - init_info.ImageCount = wd->ImageCount; - init_info.CheckVkResultFn = check_vk_result; - ImGui_ImplVulkan_Init(&init_info, wd->RenderPass); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Upload Fonts - { - // Use any command queue - VkCommandPool command_pool = wd->Frames[wd->FrameIndex].CommandPool; - VkCommandBuffer command_buffer = wd->Frames[wd->FrameIndex].CommandBuffer; - - err = vkResetCommandPool(g_Device, command_pool, 0); - check_vk_result(err); - VkCommandBufferBeginInfo begin_info = {}; - begin_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; - begin_info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; - err = vkBeginCommandBuffer(command_buffer, &begin_info); - check_vk_result(err); - - ImGui_ImplVulkan_CreateFontsTexture(command_buffer); - - VkSubmitInfo end_info = {}; - end_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; - end_info.commandBufferCount = 1; - end_info.pCommandBuffers = &command_buffer; - err = vkEndCommandBuffer(command_buffer); - check_vk_result(err); - err = vkQueueSubmit(g_Queue, 1, &end_info, VK_NULL_HANDLE); - check_vk_result(err); - - err = vkDeviceWaitIdle(g_Device); - check_vk_result(err); - ImGui_ImplVulkan_DestroyFontUploadObjects(); - } - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - bool done = false; - while (!done) - { - // Poll and handle events (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - SDL_Event event; - while (SDL_PollEvent(&event)) - { - ImGui_ImplSDL2_ProcessEvent(&event); - if (event.type == SDL_QUIT) - done = true; - if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) - done = true; - } - - // Resize swap chain? - if (g_SwapChainRebuild) - { - int width, height; - SDL_GetWindowSize(window, &width, &height); - if (width > 0 && height > 0) - { - ImGui_ImplVulkan_SetMinImageCount(g_MinImageCount); - ImGui_ImplVulkanH_CreateOrResizeWindow(g_Instance, g_PhysicalDevice, g_Device, &g_MainWindowData, g_QueueFamily, g_Allocator, width, height, g_MinImageCount); - g_MainWindowData.FrameIndex = 0; - g_SwapChainRebuild = false; - } - } - - // Start the Dear ImGui frame - ImGui_ImplVulkan_NewFrame(); - ImGui_ImplSDL2_NewFrame(window); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - ImDrawData* draw_data = ImGui::GetDrawData(); - const bool is_minimized = (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f); - if (!is_minimized) - { - wd->ClearValue.color.float32[0] = clear_color.x * clear_color.w; - wd->ClearValue.color.float32[1] = clear_color.y * clear_color.w; - wd->ClearValue.color.float32[2] = clear_color.z * clear_color.w; - wd->ClearValue.color.float32[3] = clear_color.w; - FrameRender(wd, draw_data); - FramePresent(wd); - } - } - - // Cleanup - err = vkDeviceWaitIdle(g_Device); - check_vk_result(err); - ImGui_ImplVulkan_Shutdown(); - ImGui_ImplSDL2_Shutdown(); - ImGui::DestroyContext(); - - CleanupVulkanWindow(); - CleanupVulkan(); - - SDL_DestroyWindow(window); - SDL_Quit(); - - return 0; -} diff --git a/third_party/imgui/examples/example_win32_directx10/build_win32.bat b/third_party/imgui/examples/example_win32_directx10/build_win32.bat deleted file mode 100644 index fd742239..00000000 --- a/third_party/imgui/examples/example_win32_directx10/build_win32.bat +++ /dev/null @@ -1,8 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@set OUT_DIR=Debug -@set OUT_EXE=example_win32_directx10 -@set INCLUDES=/I..\.. /I..\..\backends /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" /I "%DXSDK_DIR%Include" -@set SOURCES=main.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\backends\imgui_impl_dx10.cpp ..\..\imgui*.cpp -@set LIBS=/LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d10.lib d3dcompiler.lib -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/third_party/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj b/third_party/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj deleted file mode 100644 index 16e24a37..00000000 --- a/third_party/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj +++ /dev/null @@ -1,171 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {345A953E-A004-4648-B442-DC5F9F11068C} - example_win32_directx10 - 8.1 - - - - Application - true - Unicode - v110 - - - Application - true - Unicode - v110 - - - Application - false - true - Unicode - v110 - - - Application - false - true - Unicode - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories); - - - true - d3d10.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) - Console - - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories); - - - true - d3d10.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) - Console - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%(AdditionalIncludeDirectories); - false - - - true - true - true - d3d10.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) - Console - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%(AdditionalIncludeDirectories); - false - - - true - true - true - d3d10.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj.filters b/third_party/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj.filters deleted file mode 100644 index f76be9d0..00000000 --- a/third_party/imgui/examples/example_win32_directx10/example_win32_directx10.vcxproj.filters +++ /dev/null @@ -1,60 +0,0 @@ - - - - - {0587d7a3-f2ce-4d56-b84f-a0005d3bfce6} - - - {08e36723-ce4f-4cff-9662-c40801cf1acf} - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - sources - - - imgui - - - imgui - - - sources - - - sources - - - imgui - - - imgui - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_win32_directx10/main.cpp b/third_party/imgui/examples/example_win32_directx10/main.cpp deleted file mode 100644 index b1360018..00000000 --- a/third_party/imgui/examples/example_win32_directx10/main.cpp +++ /dev/null @@ -1,239 +0,0 @@ -// Dear ImGui: standalone example application for DirectX 10 -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_win32.h" -#include "imgui_impl_dx10.h" -#include -#include -#include - -// Data -static ID3D10Device* g_pd3dDevice = NULL; -static IDXGISwapChain* g_pSwapChain = NULL; -static ID3D10RenderTargetView* g_mainRenderTargetView = NULL; - -// Forward declarations of helper functions -bool CreateDeviceD3D(HWND hWnd); -void CleanupDeviceD3D(); -void CreateRenderTarget(); -void CleanupRenderTarget(); -LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - -// Main code -int main(int, char**) -{ - // Create application window - //ImGui_ImplWin32_EnableDpiAwareness(); - WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, _T("ImGui Example"), NULL }; - ::RegisterClassEx(&wc); - HWND hwnd = ::CreateWindow(wc.lpszClassName, _T("Dear ImGui DirectX10 Example"), WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, NULL, NULL, wc.hInstance, NULL); - - // Initialize Direct3D - if (!CreateDeviceD3D(hwnd)) - { - CleanupDeviceD3D(); - ::UnregisterClass(wc.lpszClassName, wc.hInstance); - return 1; - } - - // Show the window - ::ShowWindow(hwnd, SW_SHOWDEFAULT); - ::UpdateWindow(hwnd); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplWin32_Init(hwnd); - ImGui_ImplDX10_Init(g_pd3dDevice); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - MSG msg; - ZeroMemory(&msg, sizeof(msg)); - while (msg.message != WM_QUIT) - { - // Poll and handle messages (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - if (::PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE)) - { - ::TranslateMessage(&msg); - ::DispatchMessage(&msg); - continue; - } - - // Start the Dear ImGui frame - ImGui_ImplDX10_NewFrame(); - ImGui_ImplWin32_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - const float clear_color_with_alpha[4] = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; - g_pd3dDevice->OMSetRenderTargets(1, &g_mainRenderTargetView, NULL); - g_pd3dDevice->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha); - ImGui_ImplDX10_RenderDrawData(ImGui::GetDrawData()); - - g_pSwapChain->Present(1, 0); // Present with vsync - //g_pSwapChain->Present(0, 0); // Present without vsync - } - - ImGui_ImplDX10_Shutdown(); - ImGui_ImplWin32_Shutdown(); - ImGui::DestroyContext(); - - CleanupDeviceD3D(); - ::DestroyWindow(hwnd); - ::UnregisterClass(wc.lpszClassName, wc.hInstance); - - return 0; -} - -// Helper functions - -bool CreateDeviceD3D(HWND hWnd) -{ - // Setup swap chain - DXGI_SWAP_CHAIN_DESC sd; - ZeroMemory(&sd, sizeof(sd)); - sd.BufferCount = 2; - sd.BufferDesc.Width = 0; - sd.BufferDesc.Height = 0; - sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - sd.BufferDesc.RefreshRate.Numerator = 60; - sd.BufferDesc.RefreshRate.Denominator = 1; - sd.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; - sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; - sd.OutputWindow = hWnd; - sd.SampleDesc.Count = 1; - sd.SampleDesc.Quality = 0; - sd.Windowed = TRUE; - sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; - - UINT createDeviceFlags = 0; - //createDeviceFlags |= D3D10_CREATE_DEVICE_DEBUG; - if (D3D10CreateDeviceAndSwapChain(NULL, D3D10_DRIVER_TYPE_HARDWARE, NULL, createDeviceFlags, D3D10_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice) != S_OK) - return false; - - CreateRenderTarget(); - return true; -} - -void CleanupDeviceD3D() -{ - CleanupRenderTarget(); - if (g_pSwapChain) { g_pSwapChain->Release(); g_pSwapChain = NULL; } - if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } -} - -void CreateRenderTarget() -{ - ID3D10Texture2D* pBackBuffer; - g_pSwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); - g_pd3dDevice->CreateRenderTargetView(pBackBuffer, NULL, &g_mainRenderTargetView); - pBackBuffer->Release(); -} - -void CleanupRenderTarget() -{ - if (g_mainRenderTargetView) { g_mainRenderTargetView->Release(); g_mainRenderTargetView = NULL; } -} - -// Forward declare message handler from imgui_impl_win32.cpp -extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - -// Win32 message handler -LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) -{ - if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) - return true; - - switch (msg) - { - case WM_SIZE: - if (g_pd3dDevice != NULL && wParam != SIZE_MINIMIZED) - { - CleanupRenderTarget(); - g_pSwapChain->ResizeBuffers(0, (UINT)LOWORD(lParam), (UINT)HIWORD(lParam), DXGI_FORMAT_UNKNOWN, 0); - CreateRenderTarget(); - } - return 0; - case WM_SYSCOMMAND: - if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu - return 0; - break; - case WM_DESTROY: - ::PostQuitMessage(0); - return 0; - } - return ::DefWindowProc(hWnd, msg, wParam, lParam); -} diff --git a/third_party/imgui/examples/example_win32_directx11/build_win32.bat b/third_party/imgui/examples/example_win32_directx11/build_win32.bat deleted file mode 100644 index b1cf7d1c..00000000 --- a/third_party/imgui/examples/example_win32_directx11/build_win32.bat +++ /dev/null @@ -1,9 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@set OUT_DIR=Debug -@set OUT_EXE=example_win32_directx11 -@set INCLUDES=/I..\.. /I..\..\backends /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" /I "%DXSDK_DIR%Include" -@set SOURCES=main.cpp ..\..\backends\imgui_impl_dx11.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\imgui*.cpp -@set LIBS=/LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d11.lib d3dcompiler.lib -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% - diff --git a/third_party/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj b/third_party/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj deleted file mode 100644 index 4982050f..00000000 --- a/third_party/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj +++ /dev/null @@ -1,170 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {9F316E83-5AE5-4939-A723-305A94F48005} - example_win32_directx11 - - - - Application - true - Unicode - v110 - - - Application - true - Unicode - v110 - - - Application - false - true - Unicode - v110 - - - Application - false - true - Unicode - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories); - - - true - d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) - Console - - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories); - - - true - d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) - Console - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%(AdditionalIncludeDirectories); - false - - - true - true - true - d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) - Console - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%(AdditionalIncludeDirectories); - false - - - true - true - true - d3d11.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj.filters b/third_party/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj.filters deleted file mode 100644 index 56defdde..00000000 --- a/third_party/imgui/examples/example_win32_directx11/example_win32_directx11.vcxproj.filters +++ /dev/null @@ -1,60 +0,0 @@ - - - - - {0587d7a3-f2ce-4d56-b84f-a0005d3bfce6} - - - {08e36723-ce4f-4cff-9662-c40801cf1acf} - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - sources - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - imgui - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_win32_directx11/main.cpp b/third_party/imgui/examples/example_win32_directx11/main.cpp deleted file mode 100644 index e882f6a1..00000000 --- a/third_party/imgui/examples/example_win32_directx11/main.cpp +++ /dev/null @@ -1,243 +0,0 @@ -// Dear ImGui: standalone example application for DirectX 11 -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_win32.h" -#include "imgui_impl_dx11.h" -#include -#include - -// Data -static ID3D11Device* g_pd3dDevice = NULL; -static ID3D11DeviceContext* g_pd3dDeviceContext = NULL; -static IDXGISwapChain* g_pSwapChain = NULL; -static ID3D11RenderTargetView* g_mainRenderTargetView = NULL; - -// Forward declarations of helper functions -bool CreateDeviceD3D(HWND hWnd); -void CleanupDeviceD3D(); -void CreateRenderTarget(); -void CleanupRenderTarget(); -LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - -// Main code -int main(int, char**) -{ - // Create application window - //ImGui_ImplWin32_EnableDpiAwareness(); - WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, _T("ImGui Example"), NULL }; - ::RegisterClassEx(&wc); - HWND hwnd = ::CreateWindow(wc.lpszClassName, _T("Dear ImGui DirectX11 Example"), WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, NULL, NULL, wc.hInstance, NULL); - - // Initialize Direct3D - if (!CreateDeviceD3D(hwnd)) - { - CleanupDeviceD3D(); - ::UnregisterClass(wc.lpszClassName, wc.hInstance); - return 1; - } - - // Show the window - ::ShowWindow(hwnd, SW_SHOWDEFAULT); - ::UpdateWindow(hwnd); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplWin32_Init(hwnd); - ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - MSG msg; - ZeroMemory(&msg, sizeof(msg)); - while (msg.message != WM_QUIT) - { - // Poll and handle messages (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - if (::PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE)) - { - ::TranslateMessage(&msg); - ::DispatchMessage(&msg); - continue; - } - - // Start the Dear ImGui frame - ImGui_ImplDX11_NewFrame(); - ImGui_ImplWin32_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - const float clear_color_with_alpha[4] = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; - g_pd3dDeviceContext->OMSetRenderTargets(1, &g_mainRenderTargetView, NULL); - g_pd3dDeviceContext->ClearRenderTargetView(g_mainRenderTargetView, clear_color_with_alpha); - ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); - - g_pSwapChain->Present(1, 0); // Present with vsync - //g_pSwapChain->Present(0, 0); // Present without vsync - } - - // Cleanup - ImGui_ImplDX11_Shutdown(); - ImGui_ImplWin32_Shutdown(); - ImGui::DestroyContext(); - - CleanupDeviceD3D(); - ::DestroyWindow(hwnd); - ::UnregisterClass(wc.lpszClassName, wc.hInstance); - - return 0; -} - -// Helper functions - -bool CreateDeviceD3D(HWND hWnd) -{ - // Setup swap chain - DXGI_SWAP_CHAIN_DESC sd; - ZeroMemory(&sd, sizeof(sd)); - sd.BufferCount = 2; - sd.BufferDesc.Width = 0; - sd.BufferDesc.Height = 0; - sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - sd.BufferDesc.RefreshRate.Numerator = 60; - sd.BufferDesc.RefreshRate.Denominator = 1; - sd.Flags = DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH; - sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; - sd.OutputWindow = hWnd; - sd.SampleDesc.Count = 1; - sd.SampleDesc.Quality = 0; - sd.Windowed = TRUE; - sd.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; - - UINT createDeviceFlags = 0; - //createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG; - D3D_FEATURE_LEVEL featureLevel; - const D3D_FEATURE_LEVEL featureLevelArray[2] = { D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_0, }; - if (D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, createDeviceFlags, featureLevelArray, 2, D3D11_SDK_VERSION, &sd, &g_pSwapChain, &g_pd3dDevice, &featureLevel, &g_pd3dDeviceContext) != S_OK) - return false; - - CreateRenderTarget(); - return true; -} - -void CleanupDeviceD3D() -{ - CleanupRenderTarget(); - if (g_pSwapChain) { g_pSwapChain->Release(); g_pSwapChain = NULL; } - if (g_pd3dDeviceContext) { g_pd3dDeviceContext->Release(); g_pd3dDeviceContext = NULL; } - if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } -} - -void CreateRenderTarget() -{ - ID3D11Texture2D* pBackBuffer; - g_pSwapChain->GetBuffer(0, IID_PPV_ARGS(&pBackBuffer)); - g_pd3dDevice->CreateRenderTargetView(pBackBuffer, NULL, &g_mainRenderTargetView); - pBackBuffer->Release(); -} - -void CleanupRenderTarget() -{ - if (g_mainRenderTargetView) { g_mainRenderTargetView->Release(); g_mainRenderTargetView = NULL; } -} - -// Forward declare message handler from imgui_impl_win32.cpp -extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - -// Win32 message handler -LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) -{ - if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) - return true; - - switch (msg) - { - case WM_SIZE: - if (g_pd3dDevice != NULL && wParam != SIZE_MINIMIZED) - { - CleanupRenderTarget(); - g_pSwapChain->ResizeBuffers(0, (UINT)LOWORD(lParam), (UINT)HIWORD(lParam), DXGI_FORMAT_UNKNOWN, 0); - CreateRenderTarget(); - } - return 0; - case WM_SYSCOMMAND: - if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu - return 0; - break; - case WM_DESTROY: - ::PostQuitMessage(0); - return 0; - } - return ::DefWindowProc(hWnd, msg, wParam, lParam); -} diff --git a/third_party/imgui/examples/example_win32_directx12/build_win32.bat b/third_party/imgui/examples/example_win32_directx12/build_win32.bat deleted file mode 100644 index 48dadb29..00000000 --- a/third_party/imgui/examples/example_win32_directx12/build_win32.bat +++ /dev/null @@ -1,9 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@REM Important: to build on 32-bit systems, the DX12 backends needs '#define ImTextureID ImU64', so we pass it here. -@set OUT_DIR=Debug -@set OUT_EXE=example_win32_directx12 -@set INCLUDES=/I..\.. /I..\..\backends /I "%WindowsSdkDir%Include\um" /I "%WindowsSdkDir%Include\shared" -@set SOURCES=main.cpp ..\..\backends\imgui_impl_dx12.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\imgui*.cpp -@set LIBS=d3d12.lib d3dcompiler.lib dxgi.lib -mkdir Debug -cl /nologo /Zi /MD %INCLUDES% /D ImTextureID=ImU64 /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/third_party/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj b/third_party/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj deleted file mode 100644 index ab8ee013..00000000 --- a/third_party/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj +++ /dev/null @@ -1,172 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {b4cf9797-519d-4afe-a8f4-5141a6b521d3} - example_win32_directx12 - 10.0.14393.0 - - - - Application - true - Unicode - v140 - - - Application - true - Unicode - v140 - - - Application - false - true - Unicode - v140 - - - Application - false - true - Unicode - v140 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories) - ImTextureID=ImU64;_UNICODE;UNICODE;%(PreprocessorDefinitions) - - - true - d3d12.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - %(AdditionalLibraryDirectories) - Console - - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories) - ImTextureID=ImU64;_UNICODE;UNICODE;%(PreprocessorDefinitions) - - - true - d3d12.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - %(AdditionalLibraryDirectories) - Console - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%(AdditionalIncludeDirectories) - ImTextureID=ImU64;_UNICODE;UNICODE;%(PreprocessorDefinitions) - - - true - true - true - d3d12.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - %(AdditionalLibraryDirectories) - Console - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%(AdditionalIncludeDirectories) - ImTextureID=ImU64;_UNICODE;UNICODE;%(PreprocessorDefinitions) - - - true - true - true - d3d12.lib;d3dcompiler.lib;dxgi.lib;%(AdditionalDependencies) - %(AdditionalLibraryDirectories) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj.filters b/third_party/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj.filters deleted file mode 100644 index 91fc7343..00000000 --- a/third_party/imgui/examples/example_win32_directx12/example_win32_directx12.vcxproj.filters +++ /dev/null @@ -1,57 +0,0 @@ - - - - - {fb3d294f-51ec-478e-a627-25831c80fefd} - - - {4f33ddea-9910-456d-b868-4267eb3c2b19} - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - imgui - - - sources - - - imgui - - - imgui - - - sources - - - sources - - - imgui - - - imgui - - - - - - diff --git a/third_party/imgui/examples/example_win32_directx12/main.cpp b/third_party/imgui/examples/example_win32_directx12/main.cpp deleted file mode 100644 index 0ce990a8..00000000 --- a/third_party/imgui/examples/example_win32_directx12/main.cpp +++ /dev/null @@ -1,488 +0,0 @@ -// Dear ImGui: standalone example application for DirectX 12 -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -// Important: to compile on 32-bit systems, the DirectX12 backend requires code to be compiled with '#define ImTextureID ImU64'. -// This is because we need ImTextureID to carry a 64-bit value and by default ImTextureID is defined as void*. -// This define is set in the example .vcxproj file and need to be replicated in your app or by adding it to your imconfig.h file. - -#include "imgui.h" -#include "imgui_impl_win32.h" -#include "imgui_impl_dx12.h" -#include -#include -#include - -#ifdef _DEBUG -#define DX12_ENABLE_DEBUG_LAYER -#endif - -#ifdef DX12_ENABLE_DEBUG_LAYER -#include -#pragma comment(lib, "dxguid.lib") -#endif - -struct FrameContext -{ - ID3D12CommandAllocator* CommandAllocator; - UINT64 FenceValue; -}; - -// Data -static int const NUM_FRAMES_IN_FLIGHT = 3; -static FrameContext g_frameContext[NUM_FRAMES_IN_FLIGHT] = {}; -static UINT g_frameIndex = 0; - -static int const NUM_BACK_BUFFERS = 3; -static ID3D12Device* g_pd3dDevice = NULL; -static ID3D12DescriptorHeap* g_pd3dRtvDescHeap = NULL; -static ID3D12DescriptorHeap* g_pd3dSrvDescHeap = NULL; -static ID3D12CommandQueue* g_pd3dCommandQueue = NULL; -static ID3D12GraphicsCommandList* g_pd3dCommandList = NULL; -static ID3D12Fence* g_fence = NULL; -static HANDLE g_fenceEvent = NULL; -static UINT64 g_fenceLastSignaledValue = 0; -static IDXGISwapChain3* g_pSwapChain = NULL; -static HANDLE g_hSwapChainWaitableObject = NULL; -static ID3D12Resource* g_mainRenderTargetResource[NUM_BACK_BUFFERS] = {}; -static D3D12_CPU_DESCRIPTOR_HANDLE g_mainRenderTargetDescriptor[NUM_BACK_BUFFERS] = {}; - -// Forward declarations of helper functions -bool CreateDeviceD3D(HWND hWnd); -void CleanupDeviceD3D(); -void CreateRenderTarget(); -void CleanupRenderTarget(); -void WaitForLastSubmittedFrame(); -FrameContext* WaitForNextFrameResources(); -void ResizeSwapChain(HWND hWnd, int width, int height); -LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - -// Main code -int main(int, char**) -{ - // Create application window - //ImGui_ImplWin32_EnableDpiAwareness(); - WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, _T("ImGui Example"), NULL }; - ::RegisterClassEx(&wc); - HWND hwnd = ::CreateWindow(wc.lpszClassName, _T("Dear ImGui DirectX12 Example"), WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, NULL, NULL, wc.hInstance, NULL); - - // Initialize Direct3D - if (!CreateDeviceD3D(hwnd)) - { - CleanupDeviceD3D(); - ::UnregisterClass(wc.lpszClassName, wc.hInstance); - return 1; - } - - // Show the window - ::ShowWindow(hwnd, SW_SHOWDEFAULT); - ::UpdateWindow(hwnd); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplWin32_Init(hwnd); - ImGui_ImplDX12_Init(g_pd3dDevice, NUM_FRAMES_IN_FLIGHT, - DXGI_FORMAT_R8G8B8A8_UNORM, g_pd3dSrvDescHeap, - g_pd3dSrvDescHeap->GetCPUDescriptorHandleForHeapStart(), - g_pd3dSrvDescHeap->GetGPUDescriptorHandleForHeapStart()); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - MSG msg; - ZeroMemory(&msg, sizeof(msg)); - while (msg.message != WM_QUIT) - { - // Poll and handle messages (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - if (::PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE)) - { - ::TranslateMessage(&msg); - ::DispatchMessage(&msg); - continue; - } - - // Start the Dear ImGui frame - ImGui_ImplDX12_NewFrame(); - ImGui_ImplWin32_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::Render(); - - FrameContext* frameCtx = WaitForNextFrameResources(); - UINT backBufferIdx = g_pSwapChain->GetCurrentBackBufferIndex(); - frameCtx->CommandAllocator->Reset(); - - D3D12_RESOURCE_BARRIER barrier = {}; - barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION; - barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; - barrier.Transition.pResource = g_mainRenderTargetResource[backBufferIdx]; - barrier.Transition.Subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES; - barrier.Transition.StateBefore = D3D12_RESOURCE_STATE_PRESENT; - barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_RENDER_TARGET; - g_pd3dCommandList->Reset(frameCtx->CommandAllocator, NULL); - g_pd3dCommandList->ResourceBarrier(1, &barrier); - - // Render Dear ImGui graphics - const float clear_color_with_alpha[4] = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; - g_pd3dCommandList->ClearRenderTargetView(g_mainRenderTargetDescriptor[backBufferIdx], clear_color_with_alpha, 0, NULL); - g_pd3dCommandList->OMSetRenderTargets(1, &g_mainRenderTargetDescriptor[backBufferIdx], FALSE, NULL); - g_pd3dCommandList->SetDescriptorHeaps(1, &g_pd3dSrvDescHeap); - ImGui_ImplDX12_RenderDrawData(ImGui::GetDrawData(), g_pd3dCommandList); - barrier.Transition.StateBefore = D3D12_RESOURCE_STATE_RENDER_TARGET; - barrier.Transition.StateAfter = D3D12_RESOURCE_STATE_PRESENT; - g_pd3dCommandList->ResourceBarrier(1, &barrier); - g_pd3dCommandList->Close(); - - g_pd3dCommandQueue->ExecuteCommandLists(1, (ID3D12CommandList* const*)&g_pd3dCommandList); - - g_pSwapChain->Present(1, 0); // Present with vsync - //g_pSwapChain->Present(0, 0); // Present without vsync - - UINT64 fenceValue = g_fenceLastSignaledValue + 1; - g_pd3dCommandQueue->Signal(g_fence, fenceValue); - g_fenceLastSignaledValue = fenceValue; - frameCtx->FenceValue = fenceValue; - } - - WaitForLastSubmittedFrame(); - - // Cleanup - ImGui_ImplDX12_Shutdown(); - ImGui_ImplWin32_Shutdown(); - ImGui::DestroyContext(); - - CleanupDeviceD3D(); - ::DestroyWindow(hwnd); - ::UnregisterClass(wc.lpszClassName, wc.hInstance); - - return 0; -} - -// Helper functions - -bool CreateDeviceD3D(HWND hWnd) -{ - // Setup swap chain - DXGI_SWAP_CHAIN_DESC1 sd; - { - ZeroMemory(&sd, sizeof(sd)); - sd.BufferCount = NUM_BACK_BUFFERS; - sd.Width = 0; - sd.Height = 0; - sd.Format = DXGI_FORMAT_R8G8B8A8_UNORM; - sd.Flags = DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT; - sd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; - sd.SampleDesc.Count = 1; - sd.SampleDesc.Quality = 0; - sd.SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD; - sd.AlphaMode = DXGI_ALPHA_MODE_UNSPECIFIED; - sd.Scaling = DXGI_SCALING_STRETCH; - sd.Stereo = FALSE; - } - - // [DEBUG] Enable debug interface -#ifdef DX12_ENABLE_DEBUG_LAYER - ID3D12Debug* pdx12Debug = NULL; - if (SUCCEEDED(D3D12GetDebugInterface(IID_PPV_ARGS(&pdx12Debug)))) - pdx12Debug->EnableDebugLayer(); -#endif - - // Create device - D3D_FEATURE_LEVEL featureLevel = D3D_FEATURE_LEVEL_11_0; - if (D3D12CreateDevice(NULL, featureLevel, IID_PPV_ARGS(&g_pd3dDevice)) != S_OK) - return false; - - // [DEBUG] Setup debug interface to break on any warnings/errors -#ifdef DX12_ENABLE_DEBUG_LAYER - if (pdx12Debug != NULL) - { - ID3D12InfoQueue* pInfoQueue = NULL; - g_pd3dDevice->QueryInterface(IID_PPV_ARGS(&pInfoQueue)); - pInfoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_ERROR, true); - pInfoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_CORRUPTION, true); - pInfoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_WARNING, true); - pInfoQueue->Release(); - pdx12Debug->Release(); - } -#endif - - { - D3D12_DESCRIPTOR_HEAP_DESC desc = {}; - desc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_RTV; - desc.NumDescriptors = NUM_BACK_BUFFERS; - desc.Flags = D3D12_DESCRIPTOR_HEAP_FLAG_NONE; - desc.NodeMask = 1; - if (g_pd3dDevice->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&g_pd3dRtvDescHeap)) != S_OK) - return false; - - SIZE_T rtvDescriptorSize = g_pd3dDevice->GetDescriptorHandleIncrementSize(D3D12_DESCRIPTOR_HEAP_TYPE_RTV); - D3D12_CPU_DESCRIPTOR_HANDLE rtvHandle = g_pd3dRtvDescHeap->GetCPUDescriptorHandleForHeapStart(); - for (UINT i = 0; i < NUM_BACK_BUFFERS; i++) - { - g_mainRenderTargetDescriptor[i] = rtvHandle; - rtvHandle.ptr += rtvDescriptorSize; - } - } - - { - D3D12_DESCRIPTOR_HEAP_DESC desc = {}; - desc.Type = D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV; - desc.NumDescriptors = 1; - desc.Flags = D3D12_DESCRIPTOR_HEAP_FLAG_SHADER_VISIBLE; - if (g_pd3dDevice->CreateDescriptorHeap(&desc, IID_PPV_ARGS(&g_pd3dSrvDescHeap)) != S_OK) - return false; - } - - { - D3D12_COMMAND_QUEUE_DESC desc = {}; - desc.Type = D3D12_COMMAND_LIST_TYPE_DIRECT; - desc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE; - desc.NodeMask = 1; - if (g_pd3dDevice->CreateCommandQueue(&desc, IID_PPV_ARGS(&g_pd3dCommandQueue)) != S_OK) - return false; - } - - for (UINT i = 0; i < NUM_FRAMES_IN_FLIGHT; i++) - if (g_pd3dDevice->CreateCommandAllocator(D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(&g_frameContext[i].CommandAllocator)) != S_OK) - return false; - - if (g_pd3dDevice->CreateCommandList(0, D3D12_COMMAND_LIST_TYPE_DIRECT, g_frameContext[0].CommandAllocator, NULL, IID_PPV_ARGS(&g_pd3dCommandList)) != S_OK || - g_pd3dCommandList->Close() != S_OK) - return false; - - if (g_pd3dDevice->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&g_fence)) != S_OK) - return false; - - g_fenceEvent = CreateEvent(NULL, FALSE, FALSE, NULL); - if (g_fenceEvent == NULL) - return false; - - { - IDXGIFactory4* dxgiFactory = NULL; - IDXGISwapChain1* swapChain1 = NULL; - if (CreateDXGIFactory1(IID_PPV_ARGS(&dxgiFactory)) != S_OK) - return false; - if (dxgiFactory->CreateSwapChainForHwnd(g_pd3dCommandQueue, hWnd, &sd, NULL, NULL, &swapChain1) != S_OK) - return false; - if (swapChain1->QueryInterface(IID_PPV_ARGS(&g_pSwapChain)) != S_OK) - return false; - swapChain1->Release(); - dxgiFactory->Release(); - g_pSwapChain->SetMaximumFrameLatency(NUM_BACK_BUFFERS); - g_hSwapChainWaitableObject = g_pSwapChain->GetFrameLatencyWaitableObject(); - } - - CreateRenderTarget(); - return true; -} - -void CleanupDeviceD3D() -{ - CleanupRenderTarget(); - if (g_pSwapChain) { g_pSwapChain->Release(); g_pSwapChain = NULL; } - if (g_hSwapChainWaitableObject != NULL) { CloseHandle(g_hSwapChainWaitableObject); } - for (UINT i = 0; i < NUM_FRAMES_IN_FLIGHT; i++) - if (g_frameContext[i].CommandAllocator) { g_frameContext[i].CommandAllocator->Release(); g_frameContext[i].CommandAllocator = NULL; } - if (g_pd3dCommandQueue) { g_pd3dCommandQueue->Release(); g_pd3dCommandQueue = NULL; } - if (g_pd3dCommandList) { g_pd3dCommandList->Release(); g_pd3dCommandList = NULL; } - if (g_pd3dRtvDescHeap) { g_pd3dRtvDescHeap->Release(); g_pd3dRtvDescHeap = NULL; } - if (g_pd3dSrvDescHeap) { g_pd3dSrvDescHeap->Release(); g_pd3dSrvDescHeap = NULL; } - if (g_fence) { g_fence->Release(); g_fence = NULL; } - if (g_fenceEvent) { CloseHandle(g_fenceEvent); g_fenceEvent = NULL; } - if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } - -#ifdef DX12_ENABLE_DEBUG_LAYER - IDXGIDebug1* pDebug = NULL; - if (SUCCEEDED(DXGIGetDebugInterface1(0, IID_PPV_ARGS(&pDebug)))) - { - pDebug->ReportLiveObjects(DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_SUMMARY); - pDebug->Release(); - } -#endif -} - -void CreateRenderTarget() -{ - for (UINT i = 0; i < NUM_BACK_BUFFERS; i++) - { - ID3D12Resource* pBackBuffer = NULL; - g_pSwapChain->GetBuffer(i, IID_PPV_ARGS(&pBackBuffer)); - g_pd3dDevice->CreateRenderTargetView(pBackBuffer, NULL, g_mainRenderTargetDescriptor[i]); - g_mainRenderTargetResource[i] = pBackBuffer; - } -} - -void CleanupRenderTarget() -{ - WaitForLastSubmittedFrame(); - - for (UINT i = 0; i < NUM_BACK_BUFFERS; i++) - if (g_mainRenderTargetResource[i]) { g_mainRenderTargetResource[i]->Release(); g_mainRenderTargetResource[i] = NULL; } -} - -void WaitForLastSubmittedFrame() -{ - FrameContext* frameCtx = &g_frameContext[g_frameIndex % NUM_FRAMES_IN_FLIGHT]; - - UINT64 fenceValue = frameCtx->FenceValue; - if (fenceValue == 0) - return; // No fence was signaled - - frameCtx->FenceValue = 0; - if (g_fence->GetCompletedValue() >= fenceValue) - return; - - g_fence->SetEventOnCompletion(fenceValue, g_fenceEvent); - WaitForSingleObject(g_fenceEvent, INFINITE); -} - -FrameContext* WaitForNextFrameResources() -{ - UINT nextFrameIndex = g_frameIndex + 1; - g_frameIndex = nextFrameIndex; - - HANDLE waitableObjects[] = { g_hSwapChainWaitableObject, NULL }; - DWORD numWaitableObjects = 1; - - FrameContext* frameCtx = &g_frameContext[nextFrameIndex % NUM_FRAMES_IN_FLIGHT]; - UINT64 fenceValue = frameCtx->FenceValue; - if (fenceValue != 0) // means no fence was signaled - { - frameCtx->FenceValue = 0; - g_fence->SetEventOnCompletion(fenceValue, g_fenceEvent); - waitableObjects[1] = g_fenceEvent; - numWaitableObjects = 2; - } - - WaitForMultipleObjects(numWaitableObjects, waitableObjects, TRUE, INFINITE); - - return frameCtx; -} - -void ResizeSwapChain(HWND hWnd, int width, int height) -{ - DXGI_SWAP_CHAIN_DESC1 sd; - g_pSwapChain->GetDesc1(&sd); - sd.Width = width; - sd.Height = height; - - IDXGIFactory4* dxgiFactory = NULL; - g_pSwapChain->GetParent(IID_PPV_ARGS(&dxgiFactory)); - - g_pSwapChain->Release(); - CloseHandle(g_hSwapChainWaitableObject); - - IDXGISwapChain1* swapChain1 = NULL; - dxgiFactory->CreateSwapChainForHwnd(g_pd3dCommandQueue, hWnd, &sd, NULL, NULL, &swapChain1); - swapChain1->QueryInterface(IID_PPV_ARGS(&g_pSwapChain)); - swapChain1->Release(); - dxgiFactory->Release(); - - g_pSwapChain->SetMaximumFrameLatency(NUM_BACK_BUFFERS); - - g_hSwapChainWaitableObject = g_pSwapChain->GetFrameLatencyWaitableObject(); - assert(g_hSwapChainWaitableObject != NULL); -} - -// Forward declare message handler from imgui_impl_win32.cpp -extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - -// Win32 message handler -LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) -{ - if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) - return true; - - switch (msg) - { - case WM_SIZE: - if (g_pd3dDevice != NULL && wParam != SIZE_MINIMIZED) - { - WaitForLastSubmittedFrame(); - ImGui_ImplDX12_InvalidateDeviceObjects(); - CleanupRenderTarget(); - ResizeSwapChain(hWnd, (UINT)LOWORD(lParam), (UINT)HIWORD(lParam)); - CreateRenderTarget(); - ImGui_ImplDX12_CreateDeviceObjects(); - } - return 0; - case WM_SYSCOMMAND: - if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu - return 0; - break; - case WM_DESTROY: - ::PostQuitMessage(0); - return 0; - } - return ::DefWindowProc(hWnd, msg, wParam, lParam); -} diff --git a/third_party/imgui/examples/example_win32_directx9/build_win32.bat b/third_party/imgui/examples/example_win32_directx9/build_win32.bat deleted file mode 100644 index bbd4b13c..00000000 --- a/third_party/imgui/examples/example_win32_directx9/build_win32.bat +++ /dev/null @@ -1,8 +0,0 @@ -@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler. -@set OUT_DIR=Debug -@set OUT_EXE=example_win32_directx9 -@set INCLUDES=/I..\.. /I..\..\backends /I "%DXSDK_DIR%/Include" -@set SOURCES=main.cpp ..\..\backends\imgui_impl_dx9.cpp ..\..\backends\imgui_impl_win32.cpp ..\..\imgui*.cpp -@set LIBS=/LIBPATH:"%DXSDK_DIR%/Lib/x86" d3d9.lib -mkdir %OUT_DIR% -cl /nologo /Zi /MD %INCLUDES% /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% diff --git a/third_party/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj b/third_party/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj deleted file mode 100644 index 747dcebe..00000000 --- a/third_party/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj +++ /dev/null @@ -1,171 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {4165A294-21F2-44CA-9B38-E3F935ABADF5} - example_win32_directx9 - 8.1 - - - - Application - true - Unicode - v110 - - - Application - true - Unicode - v110 - - - Application - false - true - Unicode - v110 - - - Application - false - true - Unicode - v110 - - - - - - - - - - - - - - - - - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories);$(DXSDK_DIR)Include; - - - true - $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) - d3d9.lib;%(AdditionalDependencies) - Console - - - - - Level4 - Disabled - ..\..;..\..\backends;%(AdditionalIncludeDirectories);$(DXSDK_DIR)Include; - - - true - $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) - d3d9.lib;%(AdditionalDependencies) - Console - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%(AdditionalIncludeDirectories);$(DXSDK_DIR)Include; - false - - - true - true - true - $(DXSDK_DIR)/Lib/x86;%(AdditionalLibraryDirectories) - d3d9.lib;%(AdditionalDependencies) - Console - - - - - Level4 - MaxSpeed - true - true - ..\..;..\..\backends;%(AdditionalIncludeDirectories);$(DXSDK_DIR)Include; - false - - - true - true - true - $(DXSDK_DIR)/Lib/x64;%(AdditionalLibraryDirectories) - d3d9.lib;%(AdditionalDependencies) - Console - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/third_party/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj.filters b/third_party/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj.filters deleted file mode 100644 index 5197644e..00000000 --- a/third_party/imgui/examples/example_win32_directx9/example_win32_directx9.vcxproj.filters +++ /dev/null @@ -1,61 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {a82cba23-9de0-45c2-b1e3-2eb1666702de} - - - - - sources - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - imgui - - - imgui - - - - - imgui - - - imgui - - - imgui - - - sources - - - sources - - - - - - sources - - - diff --git a/third_party/imgui/examples/example_win32_directx9/main.cpp b/third_party/imgui/examples/example_win32_directx9/main.cpp deleted file mode 100644 index ce59a9a8..00000000 --- a/third_party/imgui/examples/example_win32_directx9/main.cpp +++ /dev/null @@ -1,233 +0,0 @@ -// Dear ImGui: standalone example application for DirectX 9 -// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp. -// Read online: https://github.com/ocornut/imgui/tree/master/docs - -#include "imgui.h" -#include "imgui_impl_dx9.h" -#include "imgui_impl_win32.h" -#include -#include - -// Data -static LPDIRECT3D9 g_pD3D = NULL; -static LPDIRECT3DDEVICE9 g_pd3dDevice = NULL; -static D3DPRESENT_PARAMETERS g_d3dpp = {}; - -// Forward declarations of helper functions -bool CreateDeviceD3D(HWND hWnd); -void CleanupDeviceD3D(); -void ResetDevice(); -LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - -// Main code -int main(int, char**) -{ - // Create application window - //ImGui_ImplWin32_EnableDpiAwareness(); - WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, WndProc, 0L, 0L, GetModuleHandle(NULL), NULL, NULL, NULL, NULL, _T("ImGui Example"), NULL }; - ::RegisterClassEx(&wc); - HWND hwnd = ::CreateWindow(wc.lpszClassName, _T("Dear ImGui DirectX9 Example"), WS_OVERLAPPEDWINDOW, 100, 100, 1280, 800, NULL, NULL, wc.hInstance, NULL); - - // Initialize Direct3D - if (!CreateDeviceD3D(hwnd)) - { - CleanupDeviceD3D(); - ::UnregisterClass(wc.lpszClassName, wc.hInstance); - return 1; - } - - // Show the window - ::ShowWindow(hwnd, SW_SHOWDEFAULT); - ::UpdateWindow(hwnd); - - // Setup Dear ImGui context - IMGUI_CHECKVERSION(); - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); (void)io; - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls - //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls - - // Setup Dear ImGui style - ImGui::StyleColorsDark(); - //ImGui::StyleColorsClassic(); - - // Setup Platform/Renderer backends - ImGui_ImplWin32_Init(hwnd); - ImGui_ImplDX9_Init(g_pd3dDevice); - - // Load Fonts - // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them. - // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple. - // - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit). - // - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call. - // - Read 'docs/FONTS.md' for more instructions and details. - // - Remember that in C/C++ if you want to include a backslash \ in a string literal you need to write a double backslash \\ ! - //io.Fonts->AddFontDefault(); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Roboto-Medium.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/Cousine-Regular.ttf", 15.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/DroidSans.ttf", 16.0f); - //io.Fonts->AddFontFromFileTTF("../../misc/fonts/ProggyTiny.ttf", 10.0f); - //ImFont* font = io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); - //IM_ASSERT(font != NULL); - - // Our state - bool show_demo_window = true; - bool show_another_window = false; - ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f); - - // Main loop - MSG msg; - ZeroMemory(&msg, sizeof(msg)); - while (msg.message != WM_QUIT) - { - // Poll and handle messages (inputs, window resize, etc.) - // You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs. - // - When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application. - // - When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application. - // Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags. - if (::PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE)) - { - ::TranslateMessage(&msg); - ::DispatchMessage(&msg); - continue; - } - - // Start the Dear ImGui frame - ImGui_ImplDX9_NewFrame(); - ImGui_ImplWin32_NewFrame(); - ImGui::NewFrame(); - - // 1. Show the big demo window (Most of the sample code is in ImGui::ShowDemoWindow()! You can browse its code to learn more about Dear ImGui!). - if (show_demo_window) - ImGui::ShowDemoWindow(&show_demo_window); - - // 2. Show a simple window that we create ourselves. We use a Begin/End pair to created a named window. - { - static float f = 0.0f; - static int counter = 0; - - ImGui::Begin("Hello, world!"); // Create a window called "Hello, world!" and append into it. - - ImGui::Text("This is some useful text."); // Display some text (you can use a format strings too) - ImGui::Checkbox("Demo Window", &show_demo_window); // Edit bools storing our window open/close state - ImGui::Checkbox("Another Window", &show_another_window); - - ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f - ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color - - if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated) - counter++; - ImGui::SameLine(); - ImGui::Text("counter = %d", counter); - - ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate); - ImGui::End(); - } - - // 3. Show another simple window. - if (show_another_window) - { - ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked) - ImGui::Text("Hello from another window!"); - if (ImGui::Button("Close Me")) - show_another_window = false; - ImGui::End(); - } - - // Rendering - ImGui::EndFrame(); - g_pd3dDevice->SetRenderState(D3DRS_ZENABLE, FALSE); - g_pd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE); - g_pd3dDevice->SetRenderState(D3DRS_SCISSORTESTENABLE, FALSE); - D3DCOLOR clear_col_dx = D3DCOLOR_RGBA((int)(clear_color.x*clear_color.w*255.0f), (int)(clear_color.y*clear_color.w*255.0f), (int)(clear_color.z*clear_color.w*255.0f), (int)(clear_color.w*255.0f)); - g_pd3dDevice->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, clear_col_dx, 1.0f, 0); - if (g_pd3dDevice->BeginScene() >= 0) - { - ImGui::Render(); - ImGui_ImplDX9_RenderDrawData(ImGui::GetDrawData()); - g_pd3dDevice->EndScene(); - } - HRESULT result = g_pd3dDevice->Present(NULL, NULL, NULL, NULL); - - // Handle loss of D3D9 device - if (result == D3DERR_DEVICELOST && g_pd3dDevice->TestCooperativeLevel() == D3DERR_DEVICENOTRESET) - ResetDevice(); - } - - ImGui_ImplDX9_Shutdown(); - ImGui_ImplWin32_Shutdown(); - ImGui::DestroyContext(); - - CleanupDeviceD3D(); - ::DestroyWindow(hwnd); - ::UnregisterClass(wc.lpszClassName, wc.hInstance); - - return 0; -} - -// Helper functions - -bool CreateDeviceD3D(HWND hWnd) -{ - if ((g_pD3D = Direct3DCreate9(D3D_SDK_VERSION)) == NULL) - return false; - - // Create the D3DDevice - ZeroMemory(&g_d3dpp, sizeof(g_d3dpp)); - g_d3dpp.Windowed = TRUE; - g_d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; - g_d3dpp.BackBufferFormat = D3DFMT_UNKNOWN; // Need to use an explicit format with alpha if needing per-pixel alpha composition. - g_d3dpp.EnableAutoDepthStencil = TRUE; - g_d3dpp.AutoDepthStencilFormat = D3DFMT_D16; - g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_ONE; // Present with vsync - //g_d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE; // Present without vsync, maximum unthrottled framerate - if (g_pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &g_d3dpp, &g_pd3dDevice) < 0) - return false; - - return true; -} - -void CleanupDeviceD3D() -{ - if (g_pd3dDevice) { g_pd3dDevice->Release(); g_pd3dDevice = NULL; } - if (g_pD3D) { g_pD3D->Release(); g_pD3D = NULL; } -} - -void ResetDevice() -{ - ImGui_ImplDX9_InvalidateDeviceObjects(); - HRESULT hr = g_pd3dDevice->Reset(&g_d3dpp); - if (hr == D3DERR_INVALIDCALL) - IM_ASSERT(0); - ImGui_ImplDX9_CreateDeviceObjects(); -} - -// Forward declare message handler from imgui_impl_win32.cpp -extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); - -// Win32 message handler -LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) -{ - if (ImGui_ImplWin32_WndProcHandler(hWnd, msg, wParam, lParam)) - return true; - - switch (msg) - { - case WM_SIZE: - if (g_pd3dDevice != NULL && wParam != SIZE_MINIMIZED) - { - g_d3dpp.BackBufferWidth = LOWORD(lParam); - g_d3dpp.BackBufferHeight = HIWORD(lParam); - ResetDevice(); - } - return 0; - case WM_SYSCOMMAND: - if ((wParam & 0xfff0) == SC_KEYMENU) // Disable ALT application menu - return 0; - break; - case WM_DESTROY: - ::PostQuitMessage(0); - return 0; - } - return ::DefWindowProc(hWnd, msg, wParam, lParam); -} diff --git a/third_party/imgui/examples/imgui_examples.sln b/third_party/imgui/examples/imgui_examples.sln deleted file mode 100644 index 605b1f57..00000000 --- a/third_party/imgui/examples/imgui_examples.sln +++ /dev/null @@ -1,78 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_directx9", "example_win32_directx9\example_win32_directx9.vcxproj", "{4165A294-21F2-44CA-9B38-E3F935ABADF5}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_directx10", "example_win32_directx10\example_win32_directx10.vcxproj", "{345A953E-A004-4648-B442-DC5F9F11068C}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_directx11", "example_win32_directx11\example_win32_directx11.vcxproj", "{9F316E83-5AE5-4939-A723-305A94F48005}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_glfw_opengl2", "example_glfw_opengl2\example_glfw_opengl2.vcxproj", "{9CDA7840-B7A5-496D-A527-E95571496D18}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_glfw_opengl3", "example_glfw_opengl3\example_glfw_opengl3.vcxproj", "{4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_win32_directx12", "example_win32_directx12\example_win32_directx12.vcxproj", "{B4CF9797-519D-4AFE-A8F4-5141A6B521D3}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Debug|x64 = Debug|x64 - Release|Win32 = Release|Win32 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Debug|Win32.ActiveCfg = Debug|Win32 - {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Debug|Win32.Build.0 = Debug|Win32 - {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Debug|x64.ActiveCfg = Debug|x64 - {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Debug|x64.Build.0 = Debug|x64 - {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Release|Win32.ActiveCfg = Release|Win32 - {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Release|Win32.Build.0 = Release|Win32 - {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Release|x64.ActiveCfg = Release|x64 - {4165A294-21F2-44CA-9B38-E3F935ABADF5}.Release|x64.Build.0 = Release|x64 - {345A953E-A004-4648-B442-DC5F9F11068C}.Debug|Win32.ActiveCfg = Debug|Win32 - {345A953E-A004-4648-B442-DC5F9F11068C}.Debug|Win32.Build.0 = Debug|Win32 - {345A953E-A004-4648-B442-DC5F9F11068C}.Debug|x64.ActiveCfg = Debug|x64 - {345A953E-A004-4648-B442-DC5F9F11068C}.Debug|x64.Build.0 = Debug|x64 - {345A953E-A004-4648-B442-DC5F9F11068C}.Release|Win32.ActiveCfg = Release|Win32 - {345A953E-A004-4648-B442-DC5F9F11068C}.Release|Win32.Build.0 = Release|Win32 - {345A953E-A004-4648-B442-DC5F9F11068C}.Release|x64.ActiveCfg = Release|x64 - {345A953E-A004-4648-B442-DC5F9F11068C}.Release|x64.Build.0 = Release|x64 - {9F316E83-5AE5-4939-A723-305A94F48005}.Debug|Win32.ActiveCfg = Debug|Win32 - {9F316E83-5AE5-4939-A723-305A94F48005}.Debug|Win32.Build.0 = Debug|Win32 - {9F316E83-5AE5-4939-A723-305A94F48005}.Debug|x64.ActiveCfg = Debug|x64 - {9F316E83-5AE5-4939-A723-305A94F48005}.Debug|x64.Build.0 = Debug|x64 - {9F316E83-5AE5-4939-A723-305A94F48005}.Release|Win32.ActiveCfg = Release|Win32 - {9F316E83-5AE5-4939-A723-305A94F48005}.Release|Win32.Build.0 = Release|Win32 - {9F316E83-5AE5-4939-A723-305A94F48005}.Release|x64.ActiveCfg = Release|x64 - {9F316E83-5AE5-4939-A723-305A94F48005}.Release|x64.Build.0 = Release|x64 - {9CDA7840-B7A5-496D-A527-E95571496D18}.Debug|Win32.ActiveCfg = Debug|Win32 - {9CDA7840-B7A5-496D-A527-E95571496D18}.Debug|Win32.Build.0 = Debug|Win32 - {9CDA7840-B7A5-496D-A527-E95571496D18}.Debug|x64.ActiveCfg = Debug|x64 - {9CDA7840-B7A5-496D-A527-E95571496D18}.Debug|x64.Build.0 = Debug|x64 - {9CDA7840-B7A5-496D-A527-E95571496D18}.Release|Win32.ActiveCfg = Release|Win32 - {9CDA7840-B7A5-496D-A527-E95571496D18}.Release|Win32.Build.0 = Release|Win32 - {9CDA7840-B7A5-496D-A527-E95571496D18}.Release|x64.ActiveCfg = Release|x64 - {9CDA7840-B7A5-496D-A527-E95571496D18}.Release|x64.Build.0 = Release|x64 - {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Debug|Win32.ActiveCfg = Debug|Win32 - {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Debug|Win32.Build.0 = Debug|Win32 - {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Debug|x64.ActiveCfg = Debug|x64 - {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Debug|x64.Build.0 = Debug|x64 - {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Release|Win32.ActiveCfg = Release|Win32 - {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Release|Win32.Build.0 = Release|Win32 - {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Release|x64.ActiveCfg = Release|x64 - {4A1FB5EA-22F5-42A8-AB92-1D2DF5D47FB9}.Release|x64.Build.0 = Release|x64 - {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Debug|Win32.ActiveCfg = Debug|Win32 - {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Debug|Win32.Build.0 = Debug|Win32 - {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Debug|x64.ActiveCfg = Debug|x64 - {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Debug|x64.Build.0 = Debug|x64 - {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Release|Win32.ActiveCfg = Release|Win32 - {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Release|Win32.Build.0 = Release|Win32 - {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Release|x64.ActiveCfg = Release|x64 - {B4CF9797-519D-4AFE-A8F4-5141A6B521D3}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/third_party/imgui/examples/libs/gl3w/GL/gl3w.c b/third_party/imgui/examples/libs/gl3w/GL/gl3w.c deleted file mode 100644 index 464e0177..00000000 --- a/third_party/imgui/examples/libs/gl3w/GL/gl3w.c +++ /dev/null @@ -1,1344 +0,0 @@ -#include - -#ifdef _MSC_VER -#pragma warning (disable: 4055) // warning C4055: 'type cast' : from data pointer 'void *' to function pointer -#pragma warning (disable: 4152) // warning C4152: nonstandard extension, function/data pointer conversion in expression -#endif - -#ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN 1 -#include - -static HMODULE libgl; - -static void open_libgl(void) -{ - libgl = LoadLibraryA("opengl32.dll"); -} - -static void close_libgl(void) -{ - FreeLibrary(libgl); -} - -static void *get_proc(const char *proc) -{ - void *res; - - res = wglGetProcAddress(proc); - if (!res) - res = GetProcAddress(libgl, proc); - return res; -} -#elif defined(__APPLE__) || defined(__APPLE_CC__) -#include - -CFBundleRef bundle; -CFURLRef bundleURL; - -static void open_libgl(void) -{ - bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, - CFSTR("/System/Library/Frameworks/OpenGL.framework"), - kCFURLPOSIXPathStyle, true); - - bundle = CFBundleCreate(kCFAllocatorDefault, bundleURL); - assert(bundle != NULL); -} - -static void close_libgl(void) -{ - CFRelease(bundle); - CFRelease(bundleURL); -} - -static void *get_proc(const char *proc) -{ - void *res; - - CFStringRef procname = CFStringCreateWithCString(kCFAllocatorDefault, proc, - kCFStringEncodingASCII); - res = CFBundleGetFunctionPointerForName(bundle, procname); - CFRelease(procname); - return res; -} -#else -#include -#include - -static void *libgl; - -static void open_libgl(void) -{ - libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL); -} - -static void close_libgl(void) -{ - dlclose(libgl); -} - -static void *get_proc(const char *proc) -{ - void *res; - - res = (void*)glXGetProcAddress((const GLubyte *) proc); - if (!res) - res = dlsym(libgl, proc); - return res; -} -#endif - -static struct { - int major, minor; -} version; - -static int parse_version(void) -{ - if (!glGetIntegerv) - return -1; - - glGetIntegerv(GL_MAJOR_VERSION, &version.major); - glGetIntegerv(GL_MINOR_VERSION, &version.minor); - - if (version.major < 3) - return -1; - return 0; -} - -static void load_procs(void); - -int gl3wInit(void) -{ - open_libgl(); - load_procs(); - close_libgl(); - return parse_version(); -} - -int gl3wIsSupported(int major, int minor) -{ - if (major < 3) - return 0; - if (version.major == major) - return version.minor >= minor; - return version.major >= major; -} - -void *gl3wGetProcAddress(const char *proc) -{ - return get_proc(proc); -} - -PFNGLCULLFACEPROC gl3wCullFace; -PFNGLFRONTFACEPROC gl3wFrontFace; -PFNGLHINTPROC gl3wHint; -PFNGLLINEWIDTHPROC gl3wLineWidth; -PFNGLPOINTSIZEPROC gl3wPointSize; -PFNGLPOLYGONMODEPROC gl3wPolygonMode; -PFNGLSCISSORPROC gl3wScissor; -PFNGLTEXPARAMETERFPROC gl3wTexParameterf; -PFNGLTEXPARAMETERFVPROC gl3wTexParameterfv; -PFNGLTEXPARAMETERIPROC gl3wTexParameteri; -PFNGLTEXPARAMETERIVPROC gl3wTexParameteriv; -PFNGLTEXIMAGE1DPROC gl3wTexImage1D; -PFNGLTEXIMAGE2DPROC gl3wTexImage2D; -PFNGLDRAWBUFFERPROC gl3wDrawBuffer; -PFNGLCLEARPROC gl3wClear; -PFNGLCLEARCOLORPROC gl3wClearColor; -PFNGLCLEARSTENCILPROC gl3wClearStencil; -PFNGLCLEARDEPTHPROC gl3wClearDepth; -PFNGLSTENCILMASKPROC gl3wStencilMask; -PFNGLCOLORMASKPROC gl3wColorMask; -PFNGLDEPTHMASKPROC gl3wDepthMask; -PFNGLDISABLEPROC gl3wDisable; -PFNGLENABLEPROC gl3wEnable; -PFNGLFINISHPROC gl3wFinish; -PFNGLFLUSHPROC gl3wFlush; -PFNGLBLENDFUNCPROC gl3wBlendFunc; -PFNGLLOGICOPPROC gl3wLogicOp; -PFNGLSTENCILFUNCPROC gl3wStencilFunc; -PFNGLSTENCILOPPROC gl3wStencilOp; -PFNGLDEPTHFUNCPROC gl3wDepthFunc; -PFNGLPIXELSTOREFPROC gl3wPixelStoref; -PFNGLPIXELSTOREIPROC gl3wPixelStorei; -PFNGLREADBUFFERPROC gl3wReadBuffer; -PFNGLREADPIXELSPROC gl3wReadPixels; -PFNGLGETBOOLEANVPROC gl3wGetBooleanv; -PFNGLGETDOUBLEVPROC gl3wGetDoublev; -PFNGLGETERRORPROC gl3wGetError; -PFNGLGETFLOATVPROC gl3wGetFloatv; -PFNGLGETINTEGERVPROC gl3wGetIntegerv; -PFNGLGETSTRINGPROC gl3wGetString; -PFNGLGETTEXIMAGEPROC gl3wGetTexImage; -PFNGLGETTEXPARAMETERFVPROC gl3wGetTexParameterfv; -PFNGLGETTEXPARAMETERIVPROC gl3wGetTexParameteriv; -PFNGLGETTEXLEVELPARAMETERFVPROC gl3wGetTexLevelParameterfv; -PFNGLGETTEXLEVELPARAMETERIVPROC gl3wGetTexLevelParameteriv; -PFNGLISENABLEDPROC gl3wIsEnabled; -PFNGLDEPTHRANGEPROC gl3wDepthRange; -PFNGLVIEWPORTPROC gl3wViewport; -PFNGLDRAWARRAYSPROC gl3wDrawArrays; -PFNGLDRAWELEMENTSPROC gl3wDrawElements; -PFNGLGETPOINTERVPROC gl3wGetPointerv; -PFNGLPOLYGONOFFSETPROC gl3wPolygonOffset; -PFNGLCOPYTEXIMAGE1DPROC gl3wCopyTexImage1D; -PFNGLCOPYTEXIMAGE2DPROC gl3wCopyTexImage2D; -PFNGLCOPYTEXSUBIMAGE1DPROC gl3wCopyTexSubImage1D; -PFNGLCOPYTEXSUBIMAGE2DPROC gl3wCopyTexSubImage2D; -PFNGLTEXSUBIMAGE1DPROC gl3wTexSubImage1D; -PFNGLTEXSUBIMAGE2DPROC gl3wTexSubImage2D; -PFNGLBINDTEXTUREPROC gl3wBindTexture; -PFNGLDELETETEXTURESPROC gl3wDeleteTextures; -PFNGLGENTEXTURESPROC gl3wGenTextures; -PFNGLISTEXTUREPROC gl3wIsTexture; -PFNGLBLENDCOLORPROC gl3wBlendColor; -PFNGLBLENDEQUATIONPROC gl3wBlendEquation; -PFNGLDRAWRANGEELEMENTSPROC gl3wDrawRangeElements; -PFNGLTEXIMAGE3DPROC gl3wTexImage3D; -PFNGLTEXSUBIMAGE3DPROC gl3wTexSubImage3D; -PFNGLCOPYTEXSUBIMAGE3DPROC gl3wCopyTexSubImage3D; -PFNGLACTIVETEXTUREPROC gl3wActiveTexture; -PFNGLSAMPLECOVERAGEPROC gl3wSampleCoverage; -PFNGLCOMPRESSEDTEXIMAGE3DPROC gl3wCompressedTexImage3D; -PFNGLCOMPRESSEDTEXIMAGE2DPROC gl3wCompressedTexImage2D; -PFNGLCOMPRESSEDTEXIMAGE1DPROC gl3wCompressedTexImage1D; -PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC gl3wCompressedTexSubImage3D; -PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC gl3wCompressedTexSubImage2D; -PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC gl3wCompressedTexSubImage1D; -PFNGLGETCOMPRESSEDTEXIMAGEPROC gl3wGetCompressedTexImage; -PFNGLBLENDFUNCSEPARATEPROC gl3wBlendFuncSeparate; -PFNGLMULTIDRAWARRAYSPROC gl3wMultiDrawArrays; -PFNGLMULTIDRAWELEMENTSPROC gl3wMultiDrawElements; -PFNGLPOINTPARAMETERFPROC gl3wPointParameterf; -PFNGLPOINTPARAMETERFVPROC gl3wPointParameterfv; -PFNGLPOINTPARAMETERIPROC gl3wPointParameteri; -PFNGLPOINTPARAMETERIVPROC gl3wPointParameteriv; -PFNGLGENQUERIESPROC gl3wGenQueries; -PFNGLDELETEQUERIESPROC gl3wDeleteQueries; -PFNGLISQUERYPROC gl3wIsQuery; -PFNGLBEGINQUERYPROC gl3wBeginQuery; -PFNGLENDQUERYPROC gl3wEndQuery; -PFNGLGETQUERYIVPROC gl3wGetQueryiv; -PFNGLGETQUERYOBJECTIVPROC gl3wGetQueryObjectiv; -PFNGLGETQUERYOBJECTUIVPROC gl3wGetQueryObjectuiv; -PFNGLBINDBUFFERPROC gl3wBindBuffer; -PFNGLDELETEBUFFERSPROC gl3wDeleteBuffers; -PFNGLGENBUFFERSPROC gl3wGenBuffers; -PFNGLISBUFFERPROC gl3wIsBuffer; -PFNGLBUFFERDATAPROC gl3wBufferData; -PFNGLBUFFERSUBDATAPROC gl3wBufferSubData; -PFNGLGETBUFFERSUBDATAPROC gl3wGetBufferSubData; -PFNGLMAPBUFFERPROC gl3wMapBuffer; -PFNGLUNMAPBUFFERPROC gl3wUnmapBuffer; -PFNGLGETBUFFERPARAMETERIVPROC gl3wGetBufferParameteriv; -PFNGLGETBUFFERPOINTERVPROC gl3wGetBufferPointerv; -PFNGLBLENDEQUATIONSEPARATEPROC gl3wBlendEquationSeparate; -PFNGLDRAWBUFFERSPROC gl3wDrawBuffers; -PFNGLSTENCILOPSEPARATEPROC gl3wStencilOpSeparate; -PFNGLSTENCILFUNCSEPARATEPROC gl3wStencilFuncSeparate; -PFNGLSTENCILMASKSEPARATEPROC gl3wStencilMaskSeparate; -PFNGLATTACHSHADERPROC gl3wAttachShader; -PFNGLBINDATTRIBLOCATIONPROC gl3wBindAttribLocation; -PFNGLCOMPILESHADERPROC gl3wCompileShader; -PFNGLCREATEPROGRAMPROC gl3wCreateProgram; -PFNGLCREATESHADERPROC gl3wCreateShader; -PFNGLDELETEPROGRAMPROC gl3wDeleteProgram; -PFNGLDELETESHADERPROC gl3wDeleteShader; -PFNGLDETACHSHADERPROC gl3wDetachShader; -PFNGLDISABLEVERTEXATTRIBARRAYPROC gl3wDisableVertexAttribArray; -PFNGLENABLEVERTEXATTRIBARRAYPROC gl3wEnableVertexAttribArray; -PFNGLGETACTIVEATTRIBPROC gl3wGetActiveAttrib; -PFNGLGETACTIVEUNIFORMPROC gl3wGetActiveUniform; -PFNGLGETATTACHEDSHADERSPROC gl3wGetAttachedShaders; -PFNGLGETATTRIBLOCATIONPROC gl3wGetAttribLocation; -PFNGLGETPROGRAMIVPROC gl3wGetProgramiv; -PFNGLGETPROGRAMINFOLOGPROC gl3wGetProgramInfoLog; -PFNGLGETSHADERIVPROC gl3wGetShaderiv; -PFNGLGETSHADERINFOLOGPROC gl3wGetShaderInfoLog; -PFNGLGETSHADERSOURCEPROC gl3wGetShaderSource; -PFNGLGETUNIFORMLOCATIONPROC gl3wGetUniformLocation; -PFNGLGETUNIFORMFVPROC gl3wGetUniformfv; -PFNGLGETUNIFORMIVPROC gl3wGetUniformiv; -PFNGLGETVERTEXATTRIBDVPROC gl3wGetVertexAttribdv; -PFNGLGETVERTEXATTRIBFVPROC gl3wGetVertexAttribfv; -PFNGLGETVERTEXATTRIBIVPROC gl3wGetVertexAttribiv; -PFNGLGETVERTEXATTRIBPOINTERVPROC gl3wGetVertexAttribPointerv; -PFNGLISPROGRAMPROC gl3wIsProgram; -PFNGLISSHADERPROC gl3wIsShader; -PFNGLLINKPROGRAMPROC gl3wLinkProgram; -PFNGLSHADERSOURCEPROC gl3wShaderSource; -PFNGLUSEPROGRAMPROC gl3wUseProgram; -PFNGLUNIFORM1FPROC gl3wUniform1f; -PFNGLUNIFORM2FPROC gl3wUniform2f; -PFNGLUNIFORM3FPROC gl3wUniform3f; -PFNGLUNIFORM4FPROC gl3wUniform4f; -PFNGLUNIFORM1IPROC gl3wUniform1i; -PFNGLUNIFORM2IPROC gl3wUniform2i; -PFNGLUNIFORM3IPROC gl3wUniform3i; -PFNGLUNIFORM4IPROC gl3wUniform4i; -PFNGLUNIFORM1FVPROC gl3wUniform1fv; -PFNGLUNIFORM2FVPROC gl3wUniform2fv; -PFNGLUNIFORM3FVPROC gl3wUniform3fv; -PFNGLUNIFORM4FVPROC gl3wUniform4fv; -PFNGLUNIFORM1IVPROC gl3wUniform1iv; -PFNGLUNIFORM2IVPROC gl3wUniform2iv; -PFNGLUNIFORM3IVPROC gl3wUniform3iv; -PFNGLUNIFORM4IVPROC gl3wUniform4iv; -PFNGLUNIFORMMATRIX2FVPROC gl3wUniformMatrix2fv; -PFNGLUNIFORMMATRIX3FVPROC gl3wUniformMatrix3fv; -PFNGLUNIFORMMATRIX4FVPROC gl3wUniformMatrix4fv; -PFNGLVALIDATEPROGRAMPROC gl3wValidateProgram; -PFNGLVERTEXATTRIB1DPROC gl3wVertexAttrib1d; -PFNGLVERTEXATTRIB1DVPROC gl3wVertexAttrib1dv; -PFNGLVERTEXATTRIB1FPROC gl3wVertexAttrib1f; -PFNGLVERTEXATTRIB1FVPROC gl3wVertexAttrib1fv; -PFNGLVERTEXATTRIB1SPROC gl3wVertexAttrib1s; -PFNGLVERTEXATTRIB1SVPROC gl3wVertexAttrib1sv; -PFNGLVERTEXATTRIB2DPROC gl3wVertexAttrib2d; -PFNGLVERTEXATTRIB2DVPROC gl3wVertexAttrib2dv; -PFNGLVERTEXATTRIB2FPROC gl3wVertexAttrib2f; -PFNGLVERTEXATTRIB2FVPROC gl3wVertexAttrib2fv; -PFNGLVERTEXATTRIB2SPROC gl3wVertexAttrib2s; -PFNGLVERTEXATTRIB2SVPROC gl3wVertexAttrib2sv; -PFNGLVERTEXATTRIB3DPROC gl3wVertexAttrib3d; -PFNGLVERTEXATTRIB3DVPROC gl3wVertexAttrib3dv; -PFNGLVERTEXATTRIB3FPROC gl3wVertexAttrib3f; -PFNGLVERTEXATTRIB3FVPROC gl3wVertexAttrib3fv; -PFNGLVERTEXATTRIB3SPROC gl3wVertexAttrib3s; -PFNGLVERTEXATTRIB3SVPROC gl3wVertexAttrib3sv; -PFNGLVERTEXATTRIB4NBVPROC gl3wVertexAttrib4Nbv; -PFNGLVERTEXATTRIB4NIVPROC gl3wVertexAttrib4Niv; -PFNGLVERTEXATTRIB4NSVPROC gl3wVertexAttrib4Nsv; -PFNGLVERTEXATTRIB4NUBPROC gl3wVertexAttrib4Nub; -PFNGLVERTEXATTRIB4NUBVPROC gl3wVertexAttrib4Nubv; -PFNGLVERTEXATTRIB4NUIVPROC gl3wVertexAttrib4Nuiv; -PFNGLVERTEXATTRIB4NUSVPROC gl3wVertexAttrib4Nusv; -PFNGLVERTEXATTRIB4BVPROC gl3wVertexAttrib4bv; -PFNGLVERTEXATTRIB4DPROC gl3wVertexAttrib4d; -PFNGLVERTEXATTRIB4DVPROC gl3wVertexAttrib4dv; -PFNGLVERTEXATTRIB4FPROC gl3wVertexAttrib4f; -PFNGLVERTEXATTRIB4FVPROC gl3wVertexAttrib4fv; -PFNGLVERTEXATTRIB4IVPROC gl3wVertexAttrib4iv; -PFNGLVERTEXATTRIB4SPROC gl3wVertexAttrib4s; -PFNGLVERTEXATTRIB4SVPROC gl3wVertexAttrib4sv; -PFNGLVERTEXATTRIB4UBVPROC gl3wVertexAttrib4ubv; -PFNGLVERTEXATTRIB4UIVPROC gl3wVertexAttrib4uiv; -PFNGLVERTEXATTRIB4USVPROC gl3wVertexAttrib4usv; -PFNGLVERTEXATTRIBPOINTERPROC gl3wVertexAttribPointer; -PFNGLUNIFORMMATRIX2X3FVPROC gl3wUniformMatrix2x3fv; -PFNGLUNIFORMMATRIX3X2FVPROC gl3wUniformMatrix3x2fv; -PFNGLUNIFORMMATRIX2X4FVPROC gl3wUniformMatrix2x4fv; -PFNGLUNIFORMMATRIX4X2FVPROC gl3wUniformMatrix4x2fv; -PFNGLUNIFORMMATRIX3X4FVPROC gl3wUniformMatrix3x4fv; -PFNGLUNIFORMMATRIX4X3FVPROC gl3wUniformMatrix4x3fv; -PFNGLCOLORMASKIPROC gl3wColorMaski; -PFNGLGETBOOLEANI_VPROC gl3wGetBooleani_v; -PFNGLGETINTEGERI_VPROC gl3wGetIntegeri_v; -PFNGLENABLEIPROC gl3wEnablei; -PFNGLDISABLEIPROC gl3wDisablei; -PFNGLISENABLEDIPROC gl3wIsEnabledi; -PFNGLBEGINTRANSFORMFEEDBACKPROC gl3wBeginTransformFeedback; -PFNGLENDTRANSFORMFEEDBACKPROC gl3wEndTransformFeedback; -PFNGLBINDBUFFERRANGEPROC gl3wBindBufferRange; -PFNGLBINDBUFFERBASEPROC gl3wBindBufferBase; -PFNGLTRANSFORMFEEDBACKVARYINGSPROC gl3wTransformFeedbackVaryings; -PFNGLGETTRANSFORMFEEDBACKVARYINGPROC gl3wGetTransformFeedbackVarying; -PFNGLCLAMPCOLORPROC gl3wClampColor; -PFNGLBEGINCONDITIONALRENDERPROC gl3wBeginConditionalRender; -PFNGLENDCONDITIONALRENDERPROC gl3wEndConditionalRender; -PFNGLVERTEXATTRIBIPOINTERPROC gl3wVertexAttribIPointer; -PFNGLGETVERTEXATTRIBIIVPROC gl3wGetVertexAttribIiv; -PFNGLGETVERTEXATTRIBIUIVPROC gl3wGetVertexAttribIuiv; -PFNGLVERTEXATTRIBI1IPROC gl3wVertexAttribI1i; -PFNGLVERTEXATTRIBI2IPROC gl3wVertexAttribI2i; -PFNGLVERTEXATTRIBI3IPROC gl3wVertexAttribI3i; -PFNGLVERTEXATTRIBI4IPROC gl3wVertexAttribI4i; -PFNGLVERTEXATTRIBI1UIPROC gl3wVertexAttribI1ui; -PFNGLVERTEXATTRIBI2UIPROC gl3wVertexAttribI2ui; -PFNGLVERTEXATTRIBI3UIPROC gl3wVertexAttribI3ui; -PFNGLVERTEXATTRIBI4UIPROC gl3wVertexAttribI4ui; -PFNGLVERTEXATTRIBI1IVPROC gl3wVertexAttribI1iv; -PFNGLVERTEXATTRIBI2IVPROC gl3wVertexAttribI2iv; -PFNGLVERTEXATTRIBI3IVPROC gl3wVertexAttribI3iv; -PFNGLVERTEXATTRIBI4IVPROC gl3wVertexAttribI4iv; -PFNGLVERTEXATTRIBI1UIVPROC gl3wVertexAttribI1uiv; -PFNGLVERTEXATTRIBI2UIVPROC gl3wVertexAttribI2uiv; -PFNGLVERTEXATTRIBI3UIVPROC gl3wVertexAttribI3uiv; -PFNGLVERTEXATTRIBI4UIVPROC gl3wVertexAttribI4uiv; -PFNGLVERTEXATTRIBI4BVPROC gl3wVertexAttribI4bv; -PFNGLVERTEXATTRIBI4SVPROC gl3wVertexAttribI4sv; -PFNGLVERTEXATTRIBI4UBVPROC gl3wVertexAttribI4ubv; -PFNGLVERTEXATTRIBI4USVPROC gl3wVertexAttribI4usv; -PFNGLGETUNIFORMUIVPROC gl3wGetUniformuiv; -PFNGLBINDFRAGDATALOCATIONPROC gl3wBindFragDataLocation; -PFNGLGETFRAGDATALOCATIONPROC gl3wGetFragDataLocation; -PFNGLUNIFORM1UIPROC gl3wUniform1ui; -PFNGLUNIFORM2UIPROC gl3wUniform2ui; -PFNGLUNIFORM3UIPROC gl3wUniform3ui; -PFNGLUNIFORM4UIPROC gl3wUniform4ui; -PFNGLUNIFORM1UIVPROC gl3wUniform1uiv; -PFNGLUNIFORM2UIVPROC gl3wUniform2uiv; -PFNGLUNIFORM3UIVPROC gl3wUniform3uiv; -PFNGLUNIFORM4UIVPROC gl3wUniform4uiv; -PFNGLTEXPARAMETERIIVPROC gl3wTexParameterIiv; -PFNGLTEXPARAMETERIUIVPROC gl3wTexParameterIuiv; -PFNGLGETTEXPARAMETERIIVPROC gl3wGetTexParameterIiv; -PFNGLGETTEXPARAMETERIUIVPROC gl3wGetTexParameterIuiv; -PFNGLCLEARBUFFERIVPROC gl3wClearBufferiv; -PFNGLCLEARBUFFERUIVPROC gl3wClearBufferuiv; -PFNGLCLEARBUFFERFVPROC gl3wClearBufferfv; -PFNGLCLEARBUFFERFIPROC gl3wClearBufferfi; -PFNGLGETSTRINGIPROC gl3wGetStringi; -PFNGLDRAWARRAYSINSTANCEDPROC gl3wDrawArraysInstanced; -PFNGLDRAWELEMENTSINSTANCEDPROC gl3wDrawElementsInstanced; -PFNGLTEXBUFFERPROC gl3wTexBuffer; -PFNGLPRIMITIVERESTARTINDEXPROC gl3wPrimitiveRestartIndex; -PFNGLGETINTEGER64I_VPROC gl3wGetInteger64i_v; -PFNGLGETBUFFERPARAMETERI64VPROC gl3wGetBufferParameteri64v; -PFNGLFRAMEBUFFERTEXTUREPROC gl3wFramebufferTexture; -PFNGLVERTEXATTRIBDIVISORPROC gl3wVertexAttribDivisor; -PFNGLMINSAMPLESHADINGPROC gl3wMinSampleShading; -PFNGLBLENDEQUATIONIPROC gl3wBlendEquationi; -PFNGLBLENDEQUATIONSEPARATEIPROC gl3wBlendEquationSeparatei; -PFNGLBLENDFUNCIPROC gl3wBlendFunci; -PFNGLBLENDFUNCSEPARATEIPROC gl3wBlendFuncSeparatei; -PFNGLISRENDERBUFFERPROC gl3wIsRenderbuffer; -PFNGLBINDRENDERBUFFERPROC gl3wBindRenderbuffer; -PFNGLDELETERENDERBUFFERSPROC gl3wDeleteRenderbuffers; -PFNGLGENRENDERBUFFERSPROC gl3wGenRenderbuffers; -PFNGLRENDERBUFFERSTORAGEPROC gl3wRenderbufferStorage; -PFNGLGETRENDERBUFFERPARAMETERIVPROC gl3wGetRenderbufferParameteriv; -PFNGLISFRAMEBUFFERPROC gl3wIsFramebuffer; -PFNGLBINDFRAMEBUFFERPROC gl3wBindFramebuffer; -PFNGLDELETEFRAMEBUFFERSPROC gl3wDeleteFramebuffers; -PFNGLGENFRAMEBUFFERSPROC gl3wGenFramebuffers; -PFNGLCHECKFRAMEBUFFERSTATUSPROC gl3wCheckFramebufferStatus; -PFNGLFRAMEBUFFERTEXTURE1DPROC gl3wFramebufferTexture1D; -PFNGLFRAMEBUFFERTEXTURE2DPROC gl3wFramebufferTexture2D; -PFNGLFRAMEBUFFERTEXTURE3DPROC gl3wFramebufferTexture3D; -PFNGLFRAMEBUFFERRENDERBUFFERPROC gl3wFramebufferRenderbuffer; -PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC gl3wGetFramebufferAttachmentParameteriv; -PFNGLGENERATEMIPMAPPROC gl3wGenerateMipmap; -PFNGLBLITFRAMEBUFFERPROC gl3wBlitFramebuffer; -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC gl3wRenderbufferStorageMultisample; -PFNGLFRAMEBUFFERTEXTURELAYERPROC gl3wFramebufferTextureLayer; -PFNGLMAPBUFFERRANGEPROC gl3wMapBufferRange; -PFNGLFLUSHMAPPEDBUFFERRANGEPROC gl3wFlushMappedBufferRange; -PFNGLBINDVERTEXARRAYPROC gl3wBindVertexArray; -PFNGLDELETEVERTEXARRAYSPROC gl3wDeleteVertexArrays; -PFNGLGENVERTEXARRAYSPROC gl3wGenVertexArrays; -PFNGLISVERTEXARRAYPROC gl3wIsVertexArray; -PFNGLGETUNIFORMINDICESPROC gl3wGetUniformIndices; -PFNGLGETACTIVEUNIFORMSIVPROC gl3wGetActiveUniformsiv; -PFNGLGETACTIVEUNIFORMNAMEPROC gl3wGetActiveUniformName; -PFNGLGETUNIFORMBLOCKINDEXPROC gl3wGetUniformBlockIndex; -PFNGLGETACTIVEUNIFORMBLOCKIVPROC gl3wGetActiveUniformBlockiv; -PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC gl3wGetActiveUniformBlockName; -PFNGLUNIFORMBLOCKBINDINGPROC gl3wUniformBlockBinding; -PFNGLCOPYBUFFERSUBDATAPROC gl3wCopyBufferSubData; -PFNGLDRAWELEMENTSBASEVERTEXPROC gl3wDrawElementsBaseVertex; -PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC gl3wDrawRangeElementsBaseVertex; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC gl3wDrawElementsInstancedBaseVertex; -PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC gl3wMultiDrawElementsBaseVertex; -PFNGLPROVOKINGVERTEXPROC gl3wProvokingVertex; -PFNGLFENCESYNCPROC gl3wFenceSync; -PFNGLISSYNCPROC gl3wIsSync; -PFNGLDELETESYNCPROC gl3wDeleteSync; -PFNGLCLIENTWAITSYNCPROC gl3wClientWaitSync; -PFNGLWAITSYNCPROC gl3wWaitSync; -PFNGLGETINTEGER64VPROC gl3wGetInteger64v; -PFNGLGETSYNCIVPROC gl3wGetSynciv; -PFNGLTEXIMAGE2DMULTISAMPLEPROC gl3wTexImage2DMultisample; -PFNGLTEXIMAGE3DMULTISAMPLEPROC gl3wTexImage3DMultisample; -PFNGLGETMULTISAMPLEFVPROC gl3wGetMultisamplefv; -PFNGLSAMPLEMASKIPROC gl3wSampleMaski; -PFNGLBLENDEQUATIONIARBPROC gl3wBlendEquationiARB; -PFNGLBLENDEQUATIONSEPARATEIARBPROC gl3wBlendEquationSeparateiARB; -PFNGLBLENDFUNCIARBPROC gl3wBlendFunciARB; -PFNGLBLENDFUNCSEPARATEIARBPROC gl3wBlendFuncSeparateiARB; -PFNGLMINSAMPLESHADINGARBPROC gl3wMinSampleShadingARB; -PFNGLNAMEDSTRINGARBPROC gl3wNamedStringARB; -PFNGLDELETENAMEDSTRINGARBPROC gl3wDeleteNamedStringARB; -PFNGLCOMPILESHADERINCLUDEARBPROC gl3wCompileShaderIncludeARB; -PFNGLISNAMEDSTRINGARBPROC gl3wIsNamedStringARB; -PFNGLGETNAMEDSTRINGARBPROC gl3wGetNamedStringARB; -PFNGLGETNAMEDSTRINGIVARBPROC gl3wGetNamedStringivARB; -PFNGLBINDFRAGDATALOCATIONINDEXEDPROC gl3wBindFragDataLocationIndexed; -PFNGLGETFRAGDATAINDEXPROC gl3wGetFragDataIndex; -PFNGLGENSAMPLERSPROC gl3wGenSamplers; -PFNGLDELETESAMPLERSPROC gl3wDeleteSamplers; -PFNGLISSAMPLERPROC gl3wIsSampler; -PFNGLBINDSAMPLERPROC gl3wBindSampler; -PFNGLSAMPLERPARAMETERIPROC gl3wSamplerParameteri; -PFNGLSAMPLERPARAMETERIVPROC gl3wSamplerParameteriv; -PFNGLSAMPLERPARAMETERFPROC gl3wSamplerParameterf; -PFNGLSAMPLERPARAMETERFVPROC gl3wSamplerParameterfv; -PFNGLSAMPLERPARAMETERIIVPROC gl3wSamplerParameterIiv; -PFNGLSAMPLERPARAMETERIUIVPROC gl3wSamplerParameterIuiv; -PFNGLGETSAMPLERPARAMETERIVPROC gl3wGetSamplerParameteriv; -PFNGLGETSAMPLERPARAMETERIIVPROC gl3wGetSamplerParameterIiv; -PFNGLGETSAMPLERPARAMETERFVPROC gl3wGetSamplerParameterfv; -PFNGLGETSAMPLERPARAMETERIUIVPROC gl3wGetSamplerParameterIuiv; -PFNGLQUERYCOUNTERPROC gl3wQueryCounter; -PFNGLGETQUERYOBJECTI64VPROC gl3wGetQueryObjecti64v; -PFNGLGETQUERYOBJECTUI64VPROC gl3wGetQueryObjectui64v; -PFNGLVERTEXP2UIPROC gl3wVertexP2ui; -PFNGLVERTEXP2UIVPROC gl3wVertexP2uiv; -PFNGLVERTEXP3UIPROC gl3wVertexP3ui; -PFNGLVERTEXP3UIVPROC gl3wVertexP3uiv; -PFNGLVERTEXP4UIPROC gl3wVertexP4ui; -PFNGLVERTEXP4UIVPROC gl3wVertexP4uiv; -PFNGLTEXCOORDP1UIPROC gl3wTexCoordP1ui; -PFNGLTEXCOORDP1UIVPROC gl3wTexCoordP1uiv; -PFNGLTEXCOORDP2UIPROC gl3wTexCoordP2ui; -PFNGLTEXCOORDP2UIVPROC gl3wTexCoordP2uiv; -PFNGLTEXCOORDP3UIPROC gl3wTexCoordP3ui; -PFNGLTEXCOORDP3UIVPROC gl3wTexCoordP3uiv; -PFNGLTEXCOORDP4UIPROC gl3wTexCoordP4ui; -PFNGLTEXCOORDP4UIVPROC gl3wTexCoordP4uiv; -PFNGLMULTITEXCOORDP1UIPROC gl3wMultiTexCoordP1ui; -PFNGLMULTITEXCOORDP1UIVPROC gl3wMultiTexCoordP1uiv; -PFNGLMULTITEXCOORDP2UIPROC gl3wMultiTexCoordP2ui; -PFNGLMULTITEXCOORDP2UIVPROC gl3wMultiTexCoordP2uiv; -PFNGLMULTITEXCOORDP3UIPROC gl3wMultiTexCoordP3ui; -PFNGLMULTITEXCOORDP3UIVPROC gl3wMultiTexCoordP3uiv; -PFNGLMULTITEXCOORDP4UIPROC gl3wMultiTexCoordP4ui; -PFNGLMULTITEXCOORDP4UIVPROC gl3wMultiTexCoordP4uiv; -PFNGLNORMALP3UIPROC gl3wNormalP3ui; -PFNGLNORMALP3UIVPROC gl3wNormalP3uiv; -PFNGLCOLORP3UIPROC gl3wColorP3ui; -PFNGLCOLORP3UIVPROC gl3wColorP3uiv; -PFNGLCOLORP4UIPROC gl3wColorP4ui; -PFNGLCOLORP4UIVPROC gl3wColorP4uiv; -PFNGLSECONDARYCOLORP3UIPROC gl3wSecondaryColorP3ui; -PFNGLSECONDARYCOLORP3UIVPROC gl3wSecondaryColorP3uiv; -PFNGLVERTEXATTRIBP1UIPROC gl3wVertexAttribP1ui; -PFNGLVERTEXATTRIBP1UIVPROC gl3wVertexAttribP1uiv; -PFNGLVERTEXATTRIBP2UIPROC gl3wVertexAttribP2ui; -PFNGLVERTEXATTRIBP2UIVPROC gl3wVertexAttribP2uiv; -PFNGLVERTEXATTRIBP3UIPROC gl3wVertexAttribP3ui; -PFNGLVERTEXATTRIBP3UIVPROC gl3wVertexAttribP3uiv; -PFNGLVERTEXATTRIBP4UIPROC gl3wVertexAttribP4ui; -PFNGLVERTEXATTRIBP4UIVPROC gl3wVertexAttribP4uiv; -PFNGLDRAWARRAYSINDIRECTPROC gl3wDrawArraysIndirect; -PFNGLDRAWELEMENTSINDIRECTPROC gl3wDrawElementsIndirect; -PFNGLUNIFORM1DPROC gl3wUniform1d; -PFNGLUNIFORM2DPROC gl3wUniform2d; -PFNGLUNIFORM3DPROC gl3wUniform3d; -PFNGLUNIFORM4DPROC gl3wUniform4d; -PFNGLUNIFORM1DVPROC gl3wUniform1dv; -PFNGLUNIFORM2DVPROC gl3wUniform2dv; -PFNGLUNIFORM3DVPROC gl3wUniform3dv; -PFNGLUNIFORM4DVPROC gl3wUniform4dv; -PFNGLUNIFORMMATRIX2DVPROC gl3wUniformMatrix2dv; -PFNGLUNIFORMMATRIX3DVPROC gl3wUniformMatrix3dv; -PFNGLUNIFORMMATRIX4DVPROC gl3wUniformMatrix4dv; -PFNGLUNIFORMMATRIX2X3DVPROC gl3wUniformMatrix2x3dv; -PFNGLUNIFORMMATRIX2X4DVPROC gl3wUniformMatrix2x4dv; -PFNGLUNIFORMMATRIX3X2DVPROC gl3wUniformMatrix3x2dv; -PFNGLUNIFORMMATRIX3X4DVPROC gl3wUniformMatrix3x4dv; -PFNGLUNIFORMMATRIX4X2DVPROC gl3wUniformMatrix4x2dv; -PFNGLUNIFORMMATRIX4X3DVPROC gl3wUniformMatrix4x3dv; -PFNGLGETUNIFORMDVPROC gl3wGetUniformdv; -PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC gl3wGetSubroutineUniformLocation; -PFNGLGETSUBROUTINEINDEXPROC gl3wGetSubroutineIndex; -PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC gl3wGetActiveSubroutineUniformiv; -PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC gl3wGetActiveSubroutineUniformName; -PFNGLGETACTIVESUBROUTINENAMEPROC gl3wGetActiveSubroutineName; -PFNGLUNIFORMSUBROUTINESUIVPROC gl3wUniformSubroutinesuiv; -PFNGLGETUNIFORMSUBROUTINEUIVPROC gl3wGetUniformSubroutineuiv; -PFNGLGETPROGRAMSTAGEIVPROC gl3wGetProgramStageiv; -PFNGLPATCHPARAMETERIPROC gl3wPatchParameteri; -PFNGLPATCHPARAMETERFVPROC gl3wPatchParameterfv; -PFNGLBINDTRANSFORMFEEDBACKPROC gl3wBindTransformFeedback; -PFNGLDELETETRANSFORMFEEDBACKSPROC gl3wDeleteTransformFeedbacks; -PFNGLGENTRANSFORMFEEDBACKSPROC gl3wGenTransformFeedbacks; -PFNGLISTRANSFORMFEEDBACKPROC gl3wIsTransformFeedback; -PFNGLPAUSETRANSFORMFEEDBACKPROC gl3wPauseTransformFeedback; -PFNGLRESUMETRANSFORMFEEDBACKPROC gl3wResumeTransformFeedback; -PFNGLDRAWTRANSFORMFEEDBACKPROC gl3wDrawTransformFeedback; -PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC gl3wDrawTransformFeedbackStream; -PFNGLBEGINQUERYINDEXEDPROC gl3wBeginQueryIndexed; -PFNGLENDQUERYINDEXEDPROC gl3wEndQueryIndexed; -PFNGLGETQUERYINDEXEDIVPROC gl3wGetQueryIndexediv; -PFNGLRELEASESHADERCOMPILERPROC gl3wReleaseShaderCompiler; -PFNGLSHADERBINARYPROC gl3wShaderBinary; -PFNGLGETSHADERPRECISIONFORMATPROC gl3wGetShaderPrecisionFormat; -PFNGLDEPTHRANGEFPROC gl3wDepthRangef; -PFNGLCLEARDEPTHFPROC gl3wClearDepthf; -PFNGLGETPROGRAMBINARYPROC gl3wGetProgramBinary; -PFNGLPROGRAMBINARYPROC gl3wProgramBinary; -PFNGLPROGRAMPARAMETERIPROC gl3wProgramParameteri; -PFNGLUSEPROGRAMSTAGESPROC gl3wUseProgramStages; -PFNGLACTIVESHADERPROGRAMPROC gl3wActiveShaderProgram; -PFNGLCREATESHADERPROGRAMVPROC gl3wCreateShaderProgramv; -PFNGLBINDPROGRAMPIPELINEPROC gl3wBindProgramPipeline; -PFNGLDELETEPROGRAMPIPELINESPROC gl3wDeleteProgramPipelines; -PFNGLGENPROGRAMPIPELINESPROC gl3wGenProgramPipelines; -PFNGLISPROGRAMPIPELINEPROC gl3wIsProgramPipeline; -PFNGLGETPROGRAMPIPELINEIVPROC gl3wGetProgramPipelineiv; -PFNGLPROGRAMUNIFORM1IPROC gl3wProgramUniform1i; -PFNGLPROGRAMUNIFORM1IVPROC gl3wProgramUniform1iv; -PFNGLPROGRAMUNIFORM1FPROC gl3wProgramUniform1f; -PFNGLPROGRAMUNIFORM1FVPROC gl3wProgramUniform1fv; -PFNGLPROGRAMUNIFORM1DPROC gl3wProgramUniform1d; -PFNGLPROGRAMUNIFORM1DVPROC gl3wProgramUniform1dv; -PFNGLPROGRAMUNIFORM1UIPROC gl3wProgramUniform1ui; -PFNGLPROGRAMUNIFORM1UIVPROC gl3wProgramUniform1uiv; -PFNGLPROGRAMUNIFORM2IPROC gl3wProgramUniform2i; -PFNGLPROGRAMUNIFORM2IVPROC gl3wProgramUniform2iv; -PFNGLPROGRAMUNIFORM2FPROC gl3wProgramUniform2f; -PFNGLPROGRAMUNIFORM2FVPROC gl3wProgramUniform2fv; -PFNGLPROGRAMUNIFORM2DPROC gl3wProgramUniform2d; -PFNGLPROGRAMUNIFORM2DVPROC gl3wProgramUniform2dv; -PFNGLPROGRAMUNIFORM2UIPROC gl3wProgramUniform2ui; -PFNGLPROGRAMUNIFORM2UIVPROC gl3wProgramUniform2uiv; -PFNGLPROGRAMUNIFORM3IPROC gl3wProgramUniform3i; -PFNGLPROGRAMUNIFORM3IVPROC gl3wProgramUniform3iv; -PFNGLPROGRAMUNIFORM3FPROC gl3wProgramUniform3f; -PFNGLPROGRAMUNIFORM3FVPROC gl3wProgramUniform3fv; -PFNGLPROGRAMUNIFORM3DPROC gl3wProgramUniform3d; -PFNGLPROGRAMUNIFORM3DVPROC gl3wProgramUniform3dv; -PFNGLPROGRAMUNIFORM3UIPROC gl3wProgramUniform3ui; -PFNGLPROGRAMUNIFORM3UIVPROC gl3wProgramUniform3uiv; -PFNGLPROGRAMUNIFORM4IPROC gl3wProgramUniform4i; -PFNGLPROGRAMUNIFORM4IVPROC gl3wProgramUniform4iv; -PFNGLPROGRAMUNIFORM4FPROC gl3wProgramUniform4f; -PFNGLPROGRAMUNIFORM4FVPROC gl3wProgramUniform4fv; -PFNGLPROGRAMUNIFORM4DPROC gl3wProgramUniform4d; -PFNGLPROGRAMUNIFORM4DVPROC gl3wProgramUniform4dv; -PFNGLPROGRAMUNIFORM4UIPROC gl3wProgramUniform4ui; -PFNGLPROGRAMUNIFORM4UIVPROC gl3wProgramUniform4uiv; -PFNGLPROGRAMUNIFORMMATRIX2FVPROC gl3wProgramUniformMatrix2fv; -PFNGLPROGRAMUNIFORMMATRIX3FVPROC gl3wProgramUniformMatrix3fv; -PFNGLPROGRAMUNIFORMMATRIX4FVPROC gl3wProgramUniformMatrix4fv; -PFNGLPROGRAMUNIFORMMATRIX2DVPROC gl3wProgramUniformMatrix2dv; -PFNGLPROGRAMUNIFORMMATRIX3DVPROC gl3wProgramUniformMatrix3dv; -PFNGLPROGRAMUNIFORMMATRIX4DVPROC gl3wProgramUniformMatrix4dv; -PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC gl3wProgramUniformMatrix2x3fv; -PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC gl3wProgramUniformMatrix3x2fv; -PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC gl3wProgramUniformMatrix2x4fv; -PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC gl3wProgramUniformMatrix4x2fv; -PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC gl3wProgramUniformMatrix3x4fv; -PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC gl3wProgramUniformMatrix4x3fv; -PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC gl3wProgramUniformMatrix2x3dv; -PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC gl3wProgramUniformMatrix3x2dv; -PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC gl3wProgramUniformMatrix2x4dv; -PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC gl3wProgramUniformMatrix4x2dv; -PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC gl3wProgramUniformMatrix3x4dv; -PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC gl3wProgramUniformMatrix4x3dv; -PFNGLVALIDATEPROGRAMPIPELINEPROC gl3wValidateProgramPipeline; -PFNGLGETPROGRAMPIPELINEINFOLOGPROC gl3wGetProgramPipelineInfoLog; -PFNGLVERTEXATTRIBL1DPROC gl3wVertexAttribL1d; -PFNGLVERTEXATTRIBL2DPROC gl3wVertexAttribL2d; -PFNGLVERTEXATTRIBL3DPROC gl3wVertexAttribL3d; -PFNGLVERTEXATTRIBL4DPROC gl3wVertexAttribL4d; -PFNGLVERTEXATTRIBL1DVPROC gl3wVertexAttribL1dv; -PFNGLVERTEXATTRIBL2DVPROC gl3wVertexAttribL2dv; -PFNGLVERTEXATTRIBL3DVPROC gl3wVertexAttribL3dv; -PFNGLVERTEXATTRIBL4DVPROC gl3wVertexAttribL4dv; -PFNGLVERTEXATTRIBLPOINTERPROC gl3wVertexAttribLPointer; -PFNGLGETVERTEXATTRIBLDVPROC gl3wGetVertexAttribLdv; -PFNGLVIEWPORTARRAYVPROC gl3wViewportArrayv; -PFNGLVIEWPORTINDEXEDFPROC gl3wViewportIndexedf; -PFNGLVIEWPORTINDEXEDFVPROC gl3wViewportIndexedfv; -PFNGLSCISSORARRAYVPROC gl3wScissorArrayv; -PFNGLSCISSORINDEXEDPROC gl3wScissorIndexed; -PFNGLSCISSORINDEXEDVPROC gl3wScissorIndexedv; -PFNGLDEPTHRANGEARRAYVPROC gl3wDepthRangeArrayv; -PFNGLDEPTHRANGEINDEXEDPROC gl3wDepthRangeIndexed; -PFNGLGETFLOATI_VPROC gl3wGetFloati_v; -PFNGLGETDOUBLEI_VPROC gl3wGetDoublei_v; -PFNGLCREATESYNCFROMCLEVENTARBPROC gl3wCreateSyncFromCLeventARB; -PFNGLDEBUGMESSAGECONTROLARBPROC gl3wDebugMessageControlARB; -PFNGLDEBUGMESSAGEINSERTARBPROC gl3wDebugMessageInsertARB; -PFNGLDEBUGMESSAGECALLBACKARBPROC gl3wDebugMessageCallbackARB; -PFNGLGETDEBUGMESSAGELOGARBPROC gl3wGetDebugMessageLogARB; -PFNGLGETGRAPHICSRESETSTATUSARBPROC gl3wGetGraphicsResetStatusARB; -PFNGLGETNTEXIMAGEARBPROC gl3wGetnTexImageARB; -PFNGLREADNPIXELSARBPROC gl3wReadnPixelsARB; -PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC gl3wGetnCompressedTexImageARB; -PFNGLGETNUNIFORMFVARBPROC gl3wGetnUniformfvARB; -PFNGLGETNUNIFORMIVARBPROC gl3wGetnUniformivARB; -PFNGLGETNUNIFORMUIVARBPROC gl3wGetnUniformuivARB; -PFNGLGETNUNIFORMDVARBPROC gl3wGetnUniformdvARB; -PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC gl3wDrawArraysInstancedBaseInstance; -PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC gl3wDrawElementsInstancedBaseInstance; -PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC gl3wDrawElementsInstancedBaseVertexBaseInstance; -PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC gl3wDrawTransformFeedbackInstanced; -PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC gl3wDrawTransformFeedbackStreamInstanced; -PFNGLGETINTERNALFORMATIVPROC gl3wGetInternalformativ; -PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC gl3wGetActiveAtomicCounterBufferiv; -PFNGLBINDIMAGETEXTUREPROC gl3wBindImageTexture; -PFNGLMEMORYBARRIERPROC gl3wMemoryBarrier; -PFNGLTEXSTORAGE1DPROC gl3wTexStorage1D; -PFNGLTEXSTORAGE2DPROC gl3wTexStorage2D; -PFNGLTEXSTORAGE3DPROC gl3wTexStorage3D; -PFNGLTEXTURESTORAGE1DEXTPROC gl3wTextureStorage1DEXT; -PFNGLTEXTURESTORAGE2DEXTPROC gl3wTextureStorage2DEXT; -PFNGLTEXTURESTORAGE3DEXTPROC gl3wTextureStorage3DEXT; -PFNGLDEBUGMESSAGECONTROLPROC gl3wDebugMessageControl; -PFNGLDEBUGMESSAGEINSERTPROC gl3wDebugMessageInsert; -PFNGLDEBUGMESSAGECALLBACKPROC gl3wDebugMessageCallback; -PFNGLGETDEBUGMESSAGELOGPROC gl3wGetDebugMessageLog; -PFNGLPUSHDEBUGGROUPPROC gl3wPushDebugGroup; -PFNGLPOPDEBUGGROUPPROC gl3wPopDebugGroup; -PFNGLOBJECTLABELPROC gl3wObjectLabel; -PFNGLGETOBJECTLABELPROC gl3wGetObjectLabel; -PFNGLOBJECTPTRLABELPROC gl3wObjectPtrLabel; -PFNGLGETOBJECTPTRLABELPROC gl3wGetObjectPtrLabel; -PFNGLCLEARBUFFERDATAPROC gl3wClearBufferData; -PFNGLCLEARBUFFERSUBDATAPROC gl3wClearBufferSubData; -PFNGLCLEARNAMEDBUFFERDATAEXTPROC gl3wClearNamedBufferDataEXT; -PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC gl3wClearNamedBufferSubDataEXT; -PFNGLDISPATCHCOMPUTEPROC gl3wDispatchCompute; -PFNGLDISPATCHCOMPUTEINDIRECTPROC gl3wDispatchComputeIndirect; -PFNGLCOPYIMAGESUBDATAPROC gl3wCopyImageSubData; -PFNGLTEXTUREVIEWPROC gl3wTextureView; -PFNGLBINDVERTEXBUFFERPROC gl3wBindVertexBuffer; -PFNGLVERTEXATTRIBFORMATPROC gl3wVertexAttribFormat; -PFNGLVERTEXATTRIBIFORMATPROC gl3wVertexAttribIFormat; -PFNGLVERTEXATTRIBLFORMATPROC gl3wVertexAttribLFormat; -PFNGLVERTEXATTRIBBINDINGPROC gl3wVertexAttribBinding; -PFNGLVERTEXBINDINGDIVISORPROC gl3wVertexBindingDivisor; -PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC gl3wVertexArrayBindVertexBufferEXT; -PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC gl3wVertexArrayVertexAttribFormatEXT; -PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC gl3wVertexArrayVertexAttribIFormatEXT; -PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC gl3wVertexArrayVertexAttribLFormatEXT; -PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC gl3wVertexArrayVertexAttribBindingEXT; -PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC gl3wVertexArrayVertexBindingDivisorEXT; -PFNGLFRAMEBUFFERPARAMETERIPROC gl3wFramebufferParameteri; -PFNGLGETFRAMEBUFFERPARAMETERIVPROC gl3wGetFramebufferParameteriv; -PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC gl3wNamedFramebufferParameteriEXT; -PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC gl3wGetNamedFramebufferParameterivEXT; -PFNGLGETINTERNALFORMATI64VPROC gl3wGetInternalformati64v; -PFNGLINVALIDATETEXSUBIMAGEPROC gl3wInvalidateTexSubImage; -PFNGLINVALIDATETEXIMAGEPROC gl3wInvalidateTexImage; -PFNGLINVALIDATEBUFFERSUBDATAPROC gl3wInvalidateBufferSubData; -PFNGLINVALIDATEBUFFERDATAPROC gl3wInvalidateBufferData; -PFNGLINVALIDATEFRAMEBUFFERPROC gl3wInvalidateFramebuffer; -PFNGLINVALIDATESUBFRAMEBUFFERPROC gl3wInvalidateSubFramebuffer; -PFNGLMULTIDRAWARRAYSINDIRECTPROC gl3wMultiDrawArraysIndirect; -PFNGLMULTIDRAWELEMENTSINDIRECTPROC gl3wMultiDrawElementsIndirect; -PFNGLGETPROGRAMINTERFACEIVPROC gl3wGetProgramInterfaceiv; -PFNGLGETPROGRAMRESOURCEINDEXPROC gl3wGetProgramResourceIndex; -PFNGLGETPROGRAMRESOURCENAMEPROC gl3wGetProgramResourceName; -PFNGLGETPROGRAMRESOURCEIVPROC gl3wGetProgramResourceiv; -PFNGLGETPROGRAMRESOURCELOCATIONPROC gl3wGetProgramResourceLocation; -PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC gl3wGetProgramResourceLocationIndex; -PFNGLSHADERSTORAGEBLOCKBINDINGPROC gl3wShaderStorageBlockBinding; -PFNGLTEXBUFFERRANGEPROC gl3wTexBufferRange; -PFNGLTEXTUREBUFFERRANGEEXTPROC gl3wTextureBufferRangeEXT; -PFNGLTEXSTORAGE2DMULTISAMPLEPROC gl3wTexStorage2DMultisample; -PFNGLTEXSTORAGE3DMULTISAMPLEPROC gl3wTexStorage3DMultisample; -PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC gl3wTextureStorage2DMultisampleEXT; -PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC gl3wTextureStorage3DMultisampleEXT; - -static void load_procs(void) -{ - gl3wCullFace = (PFNGLCULLFACEPROC) get_proc("glCullFace"); - gl3wFrontFace = (PFNGLFRONTFACEPROC) get_proc("glFrontFace"); - gl3wHint = (PFNGLHINTPROC) get_proc("glHint"); - gl3wLineWidth = (PFNGLLINEWIDTHPROC) get_proc("glLineWidth"); - gl3wPointSize = (PFNGLPOINTSIZEPROC) get_proc("glPointSize"); - gl3wPolygonMode = (PFNGLPOLYGONMODEPROC) get_proc("glPolygonMode"); - gl3wScissor = (PFNGLSCISSORPROC) get_proc("glScissor"); - gl3wTexParameterf = (PFNGLTEXPARAMETERFPROC) get_proc("glTexParameterf"); - gl3wTexParameterfv = (PFNGLTEXPARAMETERFVPROC) get_proc("glTexParameterfv"); - gl3wTexParameteri = (PFNGLTEXPARAMETERIPROC) get_proc("glTexParameteri"); - gl3wTexParameteriv = (PFNGLTEXPARAMETERIVPROC) get_proc("glTexParameteriv"); - gl3wTexImage1D = (PFNGLTEXIMAGE1DPROC) get_proc("glTexImage1D"); - gl3wTexImage2D = (PFNGLTEXIMAGE2DPROC) get_proc("glTexImage2D"); - gl3wDrawBuffer = (PFNGLDRAWBUFFERPROC) get_proc("glDrawBuffer"); - gl3wClear = (PFNGLCLEARPROC) get_proc("glClear"); - gl3wClearColor = (PFNGLCLEARCOLORPROC) get_proc("glClearColor"); - gl3wClearStencil = (PFNGLCLEARSTENCILPROC) get_proc("glClearStencil"); - gl3wClearDepth = (PFNGLCLEARDEPTHPROC) get_proc("glClearDepth"); - gl3wStencilMask = (PFNGLSTENCILMASKPROC) get_proc("glStencilMask"); - gl3wColorMask = (PFNGLCOLORMASKPROC) get_proc("glColorMask"); - gl3wDepthMask = (PFNGLDEPTHMASKPROC) get_proc("glDepthMask"); - gl3wDisable = (PFNGLDISABLEPROC) get_proc("glDisable"); - gl3wEnable = (PFNGLENABLEPROC) get_proc("glEnable"); - gl3wFinish = (PFNGLFINISHPROC) get_proc("glFinish"); - gl3wFlush = (PFNGLFLUSHPROC) get_proc("glFlush"); - gl3wBlendFunc = (PFNGLBLENDFUNCPROC) get_proc("glBlendFunc"); - gl3wLogicOp = (PFNGLLOGICOPPROC) get_proc("glLogicOp"); - gl3wStencilFunc = (PFNGLSTENCILFUNCPROC) get_proc("glStencilFunc"); - gl3wStencilOp = (PFNGLSTENCILOPPROC) get_proc("glStencilOp"); - gl3wDepthFunc = (PFNGLDEPTHFUNCPROC) get_proc("glDepthFunc"); - gl3wPixelStoref = (PFNGLPIXELSTOREFPROC) get_proc("glPixelStoref"); - gl3wPixelStorei = (PFNGLPIXELSTOREIPROC) get_proc("glPixelStorei"); - gl3wReadBuffer = (PFNGLREADBUFFERPROC) get_proc("glReadBuffer"); - gl3wReadPixels = (PFNGLREADPIXELSPROC) get_proc("glReadPixels"); - gl3wGetBooleanv = (PFNGLGETBOOLEANVPROC) get_proc("glGetBooleanv"); - gl3wGetDoublev = (PFNGLGETDOUBLEVPROC) get_proc("glGetDoublev"); - gl3wGetError = (PFNGLGETERRORPROC) get_proc("glGetError"); - gl3wGetFloatv = (PFNGLGETFLOATVPROC) get_proc("glGetFloatv"); - gl3wGetIntegerv = (PFNGLGETINTEGERVPROC) get_proc("glGetIntegerv"); - gl3wGetString = (PFNGLGETSTRINGPROC) get_proc("glGetString"); - gl3wGetTexImage = (PFNGLGETTEXIMAGEPROC) get_proc("glGetTexImage"); - gl3wGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC) get_proc("glGetTexParameterfv"); - gl3wGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC) get_proc("glGetTexParameteriv"); - gl3wGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC) get_proc("glGetTexLevelParameterfv"); - gl3wGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC) get_proc("glGetTexLevelParameteriv"); - gl3wIsEnabled = (PFNGLISENABLEDPROC) get_proc("glIsEnabled"); - gl3wDepthRange = (PFNGLDEPTHRANGEPROC) get_proc("glDepthRange"); - gl3wViewport = (PFNGLVIEWPORTPROC) get_proc("glViewport"); - gl3wDrawArrays = (PFNGLDRAWARRAYSPROC) get_proc("glDrawArrays"); - gl3wDrawElements = (PFNGLDRAWELEMENTSPROC) get_proc("glDrawElements"); - gl3wGetPointerv = (PFNGLGETPOINTERVPROC) get_proc("glGetPointerv"); - gl3wPolygonOffset = (PFNGLPOLYGONOFFSETPROC) get_proc("glPolygonOffset"); - gl3wCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC) get_proc("glCopyTexImage1D"); - gl3wCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC) get_proc("glCopyTexImage2D"); - gl3wCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC) get_proc("glCopyTexSubImage1D"); - gl3wCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC) get_proc("glCopyTexSubImage2D"); - gl3wTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC) get_proc("glTexSubImage1D"); - gl3wTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC) get_proc("glTexSubImage2D"); - gl3wBindTexture = (PFNGLBINDTEXTUREPROC) get_proc("glBindTexture"); - gl3wDeleteTextures = (PFNGLDELETETEXTURESPROC) get_proc("glDeleteTextures"); - gl3wGenTextures = (PFNGLGENTEXTURESPROC) get_proc("glGenTextures"); - gl3wIsTexture = (PFNGLISTEXTUREPROC) get_proc("glIsTexture"); - gl3wBlendColor = (PFNGLBLENDCOLORPROC) get_proc("glBlendColor"); - gl3wBlendEquation = (PFNGLBLENDEQUATIONPROC) get_proc("glBlendEquation"); - gl3wDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC) get_proc("glDrawRangeElements"); - gl3wTexImage3D = (PFNGLTEXIMAGE3DPROC) get_proc("glTexImage3D"); - gl3wTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC) get_proc("glTexSubImage3D"); - gl3wCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC) get_proc("glCopyTexSubImage3D"); - gl3wActiveTexture = (PFNGLACTIVETEXTUREPROC) get_proc("glActiveTexture"); - gl3wSampleCoverage = (PFNGLSAMPLECOVERAGEPROC) get_proc("glSampleCoverage"); - gl3wCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC) get_proc("glCompressedTexImage3D"); - gl3wCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC) get_proc("glCompressedTexImage2D"); - gl3wCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC) get_proc("glCompressedTexImage1D"); - gl3wCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) get_proc("glCompressedTexSubImage3D"); - gl3wCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) get_proc("glCompressedTexSubImage2D"); - gl3wCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) get_proc("glCompressedTexSubImage1D"); - gl3wGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC) get_proc("glGetCompressedTexImage"); - gl3wBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC) get_proc("glBlendFuncSeparate"); - gl3wMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC) get_proc("glMultiDrawArrays"); - gl3wMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC) get_proc("glMultiDrawElements"); - gl3wPointParameterf = (PFNGLPOINTPARAMETERFPROC) get_proc("glPointParameterf"); - gl3wPointParameterfv = (PFNGLPOINTPARAMETERFVPROC) get_proc("glPointParameterfv"); - gl3wPointParameteri = (PFNGLPOINTPARAMETERIPROC) get_proc("glPointParameteri"); - gl3wPointParameteriv = (PFNGLPOINTPARAMETERIVPROC) get_proc("glPointParameteriv"); - gl3wGenQueries = (PFNGLGENQUERIESPROC) get_proc("glGenQueries"); - gl3wDeleteQueries = (PFNGLDELETEQUERIESPROC) get_proc("glDeleteQueries"); - gl3wIsQuery = (PFNGLISQUERYPROC) get_proc("glIsQuery"); - gl3wBeginQuery = (PFNGLBEGINQUERYPROC) get_proc("glBeginQuery"); - gl3wEndQuery = (PFNGLENDQUERYPROC) get_proc("glEndQuery"); - gl3wGetQueryiv = (PFNGLGETQUERYIVPROC) get_proc("glGetQueryiv"); - gl3wGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC) get_proc("glGetQueryObjectiv"); - gl3wGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC) get_proc("glGetQueryObjectuiv"); - gl3wBindBuffer = (PFNGLBINDBUFFERPROC) get_proc("glBindBuffer"); - gl3wDeleteBuffers = (PFNGLDELETEBUFFERSPROC) get_proc("glDeleteBuffers"); - gl3wGenBuffers = (PFNGLGENBUFFERSPROC) get_proc("glGenBuffers"); - gl3wIsBuffer = (PFNGLISBUFFERPROC) get_proc("glIsBuffer"); - gl3wBufferData = (PFNGLBUFFERDATAPROC) get_proc("glBufferData"); - gl3wBufferSubData = (PFNGLBUFFERSUBDATAPROC) get_proc("glBufferSubData"); - gl3wGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC) get_proc("glGetBufferSubData"); - gl3wMapBuffer = (PFNGLMAPBUFFERPROC) get_proc("glMapBuffer"); - gl3wUnmapBuffer = (PFNGLUNMAPBUFFERPROC) get_proc("glUnmapBuffer"); - gl3wGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC) get_proc("glGetBufferParameteriv"); - gl3wGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC) get_proc("glGetBufferPointerv"); - gl3wBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC) get_proc("glBlendEquationSeparate"); - gl3wDrawBuffers = (PFNGLDRAWBUFFERSPROC) get_proc("glDrawBuffers"); - gl3wStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC) get_proc("glStencilOpSeparate"); - gl3wStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC) get_proc("glStencilFuncSeparate"); - gl3wStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC) get_proc("glStencilMaskSeparate"); - gl3wAttachShader = (PFNGLATTACHSHADERPROC) get_proc("glAttachShader"); - gl3wBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC) get_proc("glBindAttribLocation"); - gl3wCompileShader = (PFNGLCOMPILESHADERPROC) get_proc("glCompileShader"); - gl3wCreateProgram = (PFNGLCREATEPROGRAMPROC) get_proc("glCreateProgram"); - gl3wCreateShader = (PFNGLCREATESHADERPROC) get_proc("glCreateShader"); - gl3wDeleteProgram = (PFNGLDELETEPROGRAMPROC) get_proc("glDeleteProgram"); - gl3wDeleteShader = (PFNGLDELETESHADERPROC) get_proc("glDeleteShader"); - gl3wDetachShader = (PFNGLDETACHSHADERPROC) get_proc("glDetachShader"); - gl3wDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC) get_proc("glDisableVertexAttribArray"); - gl3wEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC) get_proc("glEnableVertexAttribArray"); - gl3wGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC) get_proc("glGetActiveAttrib"); - gl3wGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC) get_proc("glGetActiveUniform"); - gl3wGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC) get_proc("glGetAttachedShaders"); - gl3wGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC) get_proc("glGetAttribLocation"); - gl3wGetProgramiv = (PFNGLGETPROGRAMIVPROC) get_proc("glGetProgramiv"); - gl3wGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC) get_proc("glGetProgramInfoLog"); - gl3wGetShaderiv = (PFNGLGETSHADERIVPROC) get_proc("glGetShaderiv"); - gl3wGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC) get_proc("glGetShaderInfoLog"); - gl3wGetShaderSource = (PFNGLGETSHADERSOURCEPROC) get_proc("glGetShaderSource"); - gl3wGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC) get_proc("glGetUniformLocation"); - gl3wGetUniformfv = (PFNGLGETUNIFORMFVPROC) get_proc("glGetUniformfv"); - gl3wGetUniformiv = (PFNGLGETUNIFORMIVPROC) get_proc("glGetUniformiv"); - gl3wGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC) get_proc("glGetVertexAttribdv"); - gl3wGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC) get_proc("glGetVertexAttribfv"); - gl3wGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC) get_proc("glGetVertexAttribiv"); - gl3wGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC) get_proc("glGetVertexAttribPointerv"); - gl3wIsProgram = (PFNGLISPROGRAMPROC) get_proc("glIsProgram"); - gl3wIsShader = (PFNGLISSHADERPROC) get_proc("glIsShader"); - gl3wLinkProgram = (PFNGLLINKPROGRAMPROC) get_proc("glLinkProgram"); - gl3wShaderSource = (PFNGLSHADERSOURCEPROC) get_proc("glShaderSource"); - gl3wUseProgram = (PFNGLUSEPROGRAMPROC) get_proc("glUseProgram"); - gl3wUniform1f = (PFNGLUNIFORM1FPROC) get_proc("glUniform1f"); - gl3wUniform2f = (PFNGLUNIFORM2FPROC) get_proc("glUniform2f"); - gl3wUniform3f = (PFNGLUNIFORM3FPROC) get_proc("glUniform3f"); - gl3wUniform4f = (PFNGLUNIFORM4FPROC) get_proc("glUniform4f"); - gl3wUniform1i = (PFNGLUNIFORM1IPROC) get_proc("glUniform1i"); - gl3wUniform2i = (PFNGLUNIFORM2IPROC) get_proc("glUniform2i"); - gl3wUniform3i = (PFNGLUNIFORM3IPROC) get_proc("glUniform3i"); - gl3wUniform4i = (PFNGLUNIFORM4IPROC) get_proc("glUniform4i"); - gl3wUniform1fv = (PFNGLUNIFORM1FVPROC) get_proc("glUniform1fv"); - gl3wUniform2fv = (PFNGLUNIFORM2FVPROC) get_proc("glUniform2fv"); - gl3wUniform3fv = (PFNGLUNIFORM3FVPROC) get_proc("glUniform3fv"); - gl3wUniform4fv = (PFNGLUNIFORM4FVPROC) get_proc("glUniform4fv"); - gl3wUniform1iv = (PFNGLUNIFORM1IVPROC) get_proc("glUniform1iv"); - gl3wUniform2iv = (PFNGLUNIFORM2IVPROC) get_proc("glUniform2iv"); - gl3wUniform3iv = (PFNGLUNIFORM3IVPROC) get_proc("glUniform3iv"); - gl3wUniform4iv = (PFNGLUNIFORM4IVPROC) get_proc("glUniform4iv"); - gl3wUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC) get_proc("glUniformMatrix2fv"); - gl3wUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC) get_proc("glUniformMatrix3fv"); - gl3wUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC) get_proc("glUniformMatrix4fv"); - gl3wValidateProgram = (PFNGLVALIDATEPROGRAMPROC) get_proc("glValidateProgram"); - gl3wVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC) get_proc("glVertexAttrib1d"); - gl3wVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC) get_proc("glVertexAttrib1dv"); - gl3wVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC) get_proc("glVertexAttrib1f"); - gl3wVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC) get_proc("glVertexAttrib1fv"); - gl3wVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC) get_proc("glVertexAttrib1s"); - gl3wVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC) get_proc("glVertexAttrib1sv"); - gl3wVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC) get_proc("glVertexAttrib2d"); - gl3wVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC) get_proc("glVertexAttrib2dv"); - gl3wVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC) get_proc("glVertexAttrib2f"); - gl3wVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC) get_proc("glVertexAttrib2fv"); - gl3wVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC) get_proc("glVertexAttrib2s"); - gl3wVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC) get_proc("glVertexAttrib2sv"); - gl3wVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC) get_proc("glVertexAttrib3d"); - gl3wVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC) get_proc("glVertexAttrib3dv"); - gl3wVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC) get_proc("glVertexAttrib3f"); - gl3wVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC) get_proc("glVertexAttrib3fv"); - gl3wVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC) get_proc("glVertexAttrib3s"); - gl3wVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC) get_proc("glVertexAttrib3sv"); - gl3wVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC) get_proc("glVertexAttrib4Nbv"); - gl3wVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC) get_proc("glVertexAttrib4Niv"); - gl3wVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC) get_proc("glVertexAttrib4Nsv"); - gl3wVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC) get_proc("glVertexAttrib4Nub"); - gl3wVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC) get_proc("glVertexAttrib4Nubv"); - gl3wVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC) get_proc("glVertexAttrib4Nuiv"); - gl3wVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC) get_proc("glVertexAttrib4Nusv"); - gl3wVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC) get_proc("glVertexAttrib4bv"); - gl3wVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC) get_proc("glVertexAttrib4d"); - gl3wVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC) get_proc("glVertexAttrib4dv"); - gl3wVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC) get_proc("glVertexAttrib4f"); - gl3wVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC) get_proc("glVertexAttrib4fv"); - gl3wVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC) get_proc("glVertexAttrib4iv"); - gl3wVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC) get_proc("glVertexAttrib4s"); - gl3wVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC) get_proc("glVertexAttrib4sv"); - gl3wVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC) get_proc("glVertexAttrib4ubv"); - gl3wVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC) get_proc("glVertexAttrib4uiv"); - gl3wVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC) get_proc("glVertexAttrib4usv"); - gl3wVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC) get_proc("glVertexAttribPointer"); - gl3wUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC) get_proc("glUniformMatrix2x3fv"); - gl3wUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC) get_proc("glUniformMatrix3x2fv"); - gl3wUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC) get_proc("glUniformMatrix2x4fv"); - gl3wUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC) get_proc("glUniformMatrix4x2fv"); - gl3wUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC) get_proc("glUniformMatrix3x4fv"); - gl3wUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC) get_proc("glUniformMatrix4x3fv"); - gl3wColorMaski = (PFNGLCOLORMASKIPROC) get_proc("glColorMaski"); - gl3wGetBooleani_v = (PFNGLGETBOOLEANI_VPROC) get_proc("glGetBooleani_v"); - gl3wGetIntegeri_v = (PFNGLGETINTEGERI_VPROC) get_proc("glGetIntegeri_v"); - gl3wEnablei = (PFNGLENABLEIPROC) get_proc("glEnablei"); - gl3wDisablei = (PFNGLDISABLEIPROC) get_proc("glDisablei"); - gl3wIsEnabledi = (PFNGLISENABLEDIPROC) get_proc("glIsEnabledi"); - gl3wBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC) get_proc("glBeginTransformFeedback"); - gl3wEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC) get_proc("glEndTransformFeedback"); - gl3wBindBufferRange = (PFNGLBINDBUFFERRANGEPROC) get_proc("glBindBufferRange"); - gl3wBindBufferBase = (PFNGLBINDBUFFERBASEPROC) get_proc("glBindBufferBase"); - gl3wTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC) get_proc("glTransformFeedbackVaryings"); - gl3wGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) get_proc("glGetTransformFeedbackVarying"); - gl3wClampColor = (PFNGLCLAMPCOLORPROC) get_proc("glClampColor"); - gl3wBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC) get_proc("glBeginConditionalRender"); - gl3wEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC) get_proc("glEndConditionalRender"); - gl3wVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC) get_proc("glVertexAttribIPointer"); - gl3wGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC) get_proc("glGetVertexAttribIiv"); - gl3wGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC) get_proc("glGetVertexAttribIuiv"); - gl3wVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC) get_proc("glVertexAttribI1i"); - gl3wVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC) get_proc("glVertexAttribI2i"); - gl3wVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC) get_proc("glVertexAttribI3i"); - gl3wVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC) get_proc("glVertexAttribI4i"); - gl3wVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC) get_proc("glVertexAttribI1ui"); - gl3wVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC) get_proc("glVertexAttribI2ui"); - gl3wVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC) get_proc("glVertexAttribI3ui"); - gl3wVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC) get_proc("glVertexAttribI4ui"); - gl3wVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC) get_proc("glVertexAttribI1iv"); - gl3wVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC) get_proc("glVertexAttribI2iv"); - gl3wVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC) get_proc("glVertexAttribI3iv"); - gl3wVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC) get_proc("glVertexAttribI4iv"); - gl3wVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC) get_proc("glVertexAttribI1uiv"); - gl3wVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC) get_proc("glVertexAttribI2uiv"); - gl3wVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC) get_proc("glVertexAttribI3uiv"); - gl3wVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC) get_proc("glVertexAttribI4uiv"); - gl3wVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC) get_proc("glVertexAttribI4bv"); - gl3wVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC) get_proc("glVertexAttribI4sv"); - gl3wVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC) get_proc("glVertexAttribI4ubv"); - gl3wVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC) get_proc("glVertexAttribI4usv"); - gl3wGetUniformuiv = (PFNGLGETUNIFORMUIVPROC) get_proc("glGetUniformuiv"); - gl3wBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC) get_proc("glBindFragDataLocation"); - gl3wGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC) get_proc("glGetFragDataLocation"); - gl3wUniform1ui = (PFNGLUNIFORM1UIPROC) get_proc("glUniform1ui"); - gl3wUniform2ui = (PFNGLUNIFORM2UIPROC) get_proc("glUniform2ui"); - gl3wUniform3ui = (PFNGLUNIFORM3UIPROC) get_proc("glUniform3ui"); - gl3wUniform4ui = (PFNGLUNIFORM4UIPROC) get_proc("glUniform4ui"); - gl3wUniform1uiv = (PFNGLUNIFORM1UIVPROC) get_proc("glUniform1uiv"); - gl3wUniform2uiv = (PFNGLUNIFORM2UIVPROC) get_proc("glUniform2uiv"); - gl3wUniform3uiv = (PFNGLUNIFORM3UIVPROC) get_proc("glUniform3uiv"); - gl3wUniform4uiv = (PFNGLUNIFORM4UIVPROC) get_proc("glUniform4uiv"); - gl3wTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC) get_proc("glTexParameterIiv"); - gl3wTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC) get_proc("glTexParameterIuiv"); - gl3wGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC) get_proc("glGetTexParameterIiv"); - gl3wGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC) get_proc("glGetTexParameterIuiv"); - gl3wClearBufferiv = (PFNGLCLEARBUFFERIVPROC) get_proc("glClearBufferiv"); - gl3wClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC) get_proc("glClearBufferuiv"); - gl3wClearBufferfv = (PFNGLCLEARBUFFERFVPROC) get_proc("glClearBufferfv"); - gl3wClearBufferfi = (PFNGLCLEARBUFFERFIPROC) get_proc("glClearBufferfi"); - gl3wGetStringi = (PFNGLGETSTRINGIPROC) get_proc("glGetStringi"); - gl3wDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC) get_proc("glDrawArraysInstanced"); - gl3wDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC) get_proc("glDrawElementsInstanced"); - gl3wTexBuffer = (PFNGLTEXBUFFERPROC) get_proc("glTexBuffer"); - gl3wPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC) get_proc("glPrimitiveRestartIndex"); - gl3wGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC) get_proc("glGetInteger64i_v"); - gl3wGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC) get_proc("glGetBufferParameteri64v"); - gl3wFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC) get_proc("glFramebufferTexture"); - gl3wVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC) get_proc("glVertexAttribDivisor"); - gl3wMinSampleShading = (PFNGLMINSAMPLESHADINGPROC) get_proc("glMinSampleShading"); - gl3wBlendEquationi = (PFNGLBLENDEQUATIONIPROC) get_proc("glBlendEquationi"); - gl3wBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC) get_proc("glBlendEquationSeparatei"); - gl3wBlendFunci = (PFNGLBLENDFUNCIPROC) get_proc("glBlendFunci"); - gl3wBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC) get_proc("glBlendFuncSeparatei"); - gl3wIsRenderbuffer = (PFNGLISRENDERBUFFERPROC) get_proc("glIsRenderbuffer"); - gl3wBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC) get_proc("glBindRenderbuffer"); - gl3wDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC) get_proc("glDeleteRenderbuffers"); - gl3wGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC) get_proc("glGenRenderbuffers"); - gl3wRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC) get_proc("glRenderbufferStorage"); - gl3wGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC) get_proc("glGetRenderbufferParameteriv"); - gl3wIsFramebuffer = (PFNGLISFRAMEBUFFERPROC) get_proc("glIsFramebuffer"); - gl3wBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC) get_proc("glBindFramebuffer"); - gl3wDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC) get_proc("glDeleteFramebuffers"); - gl3wGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC) get_proc("glGenFramebuffers"); - gl3wCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC) get_proc("glCheckFramebufferStatus"); - gl3wFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC) get_proc("glFramebufferTexture1D"); - gl3wFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC) get_proc("glFramebufferTexture2D"); - gl3wFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC) get_proc("glFramebufferTexture3D"); - gl3wFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC) get_proc("glFramebufferRenderbuffer"); - gl3wGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) get_proc("glGetFramebufferAttachmentParameteriv"); - gl3wGenerateMipmap = (PFNGLGENERATEMIPMAPPROC) get_proc("glGenerateMipmap"); - gl3wBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC) get_proc("glBlitFramebuffer"); - gl3wRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) get_proc("glRenderbufferStorageMultisample"); - gl3wFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC) get_proc("glFramebufferTextureLayer"); - gl3wMapBufferRange = (PFNGLMAPBUFFERRANGEPROC) get_proc("glMapBufferRange"); - gl3wFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC) get_proc("glFlushMappedBufferRange"); - gl3wBindVertexArray = (PFNGLBINDVERTEXARRAYPROC) get_proc("glBindVertexArray"); - gl3wDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC) get_proc("glDeleteVertexArrays"); - gl3wGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC) get_proc("glGenVertexArrays"); - gl3wIsVertexArray = (PFNGLISVERTEXARRAYPROC) get_proc("glIsVertexArray"); - gl3wGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC) get_proc("glGetUniformIndices"); - gl3wGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC) get_proc("glGetActiveUniformsiv"); - gl3wGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC) get_proc("glGetActiveUniformName"); - gl3wGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC) get_proc("glGetUniformBlockIndex"); - gl3wGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC) get_proc("glGetActiveUniformBlockiv"); - gl3wGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) get_proc("glGetActiveUniformBlockName"); - gl3wUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC) get_proc("glUniformBlockBinding"); - gl3wCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC) get_proc("glCopyBufferSubData"); - gl3wDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC) get_proc("glDrawElementsBaseVertex"); - gl3wDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) get_proc("glDrawRangeElementsBaseVertex"); - gl3wDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) get_proc("glDrawElementsInstancedBaseVertex"); - gl3wMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) get_proc("glMultiDrawElementsBaseVertex"); - gl3wProvokingVertex = (PFNGLPROVOKINGVERTEXPROC) get_proc("glProvokingVertex"); - gl3wFenceSync = (PFNGLFENCESYNCPROC) get_proc("glFenceSync"); - gl3wIsSync = (PFNGLISSYNCPROC) get_proc("glIsSync"); - gl3wDeleteSync = (PFNGLDELETESYNCPROC) get_proc("glDeleteSync"); - gl3wClientWaitSync = (PFNGLCLIENTWAITSYNCPROC) get_proc("glClientWaitSync"); - gl3wWaitSync = (PFNGLWAITSYNCPROC) get_proc("glWaitSync"); - gl3wGetInteger64v = (PFNGLGETINTEGER64VPROC) get_proc("glGetInteger64v"); - gl3wGetSynciv = (PFNGLGETSYNCIVPROC) get_proc("glGetSynciv"); - gl3wTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC) get_proc("glTexImage2DMultisample"); - gl3wTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC) get_proc("glTexImage3DMultisample"); - gl3wGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC) get_proc("glGetMultisamplefv"); - gl3wSampleMaski = (PFNGLSAMPLEMASKIPROC) get_proc("glSampleMaski"); - gl3wBlendEquationiARB = (PFNGLBLENDEQUATIONIARBPROC) get_proc("glBlendEquationiARB"); - gl3wBlendEquationSeparateiARB = (PFNGLBLENDEQUATIONSEPARATEIARBPROC) get_proc("glBlendEquationSeparateiARB"); - gl3wBlendFunciARB = (PFNGLBLENDFUNCIARBPROC) get_proc("glBlendFunciARB"); - gl3wBlendFuncSeparateiARB = (PFNGLBLENDFUNCSEPARATEIARBPROC) get_proc("glBlendFuncSeparateiARB"); - gl3wMinSampleShadingARB = (PFNGLMINSAMPLESHADINGARBPROC) get_proc("glMinSampleShadingARB"); - gl3wNamedStringARB = (PFNGLNAMEDSTRINGARBPROC) get_proc("glNamedStringARB"); - gl3wDeleteNamedStringARB = (PFNGLDELETENAMEDSTRINGARBPROC) get_proc("glDeleteNamedStringARB"); - gl3wCompileShaderIncludeARB = (PFNGLCOMPILESHADERINCLUDEARBPROC) get_proc("glCompileShaderIncludeARB"); - gl3wIsNamedStringARB = (PFNGLISNAMEDSTRINGARBPROC) get_proc("glIsNamedStringARB"); - gl3wGetNamedStringARB = (PFNGLGETNAMEDSTRINGARBPROC) get_proc("glGetNamedStringARB"); - gl3wGetNamedStringivARB = (PFNGLGETNAMEDSTRINGIVARBPROC) get_proc("glGetNamedStringivARB"); - gl3wBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) get_proc("glBindFragDataLocationIndexed"); - gl3wGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC) get_proc("glGetFragDataIndex"); - gl3wGenSamplers = (PFNGLGENSAMPLERSPROC) get_proc("glGenSamplers"); - gl3wDeleteSamplers = (PFNGLDELETESAMPLERSPROC) get_proc("glDeleteSamplers"); - gl3wIsSampler = (PFNGLISSAMPLERPROC) get_proc("glIsSampler"); - gl3wBindSampler = (PFNGLBINDSAMPLERPROC) get_proc("glBindSampler"); - gl3wSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC) get_proc("glSamplerParameteri"); - gl3wSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC) get_proc("glSamplerParameteriv"); - gl3wSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC) get_proc("glSamplerParameterf"); - gl3wSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC) get_proc("glSamplerParameterfv"); - gl3wSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC) get_proc("glSamplerParameterIiv"); - gl3wSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC) get_proc("glSamplerParameterIuiv"); - gl3wGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC) get_proc("glGetSamplerParameteriv"); - gl3wGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC) get_proc("glGetSamplerParameterIiv"); - gl3wGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC) get_proc("glGetSamplerParameterfv"); - gl3wGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC) get_proc("glGetSamplerParameterIuiv"); - gl3wQueryCounter = (PFNGLQUERYCOUNTERPROC) get_proc("glQueryCounter"); - gl3wGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC) get_proc("glGetQueryObjecti64v"); - gl3wGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC) get_proc("glGetQueryObjectui64v"); - gl3wVertexP2ui = (PFNGLVERTEXP2UIPROC) get_proc("glVertexP2ui"); - gl3wVertexP2uiv = (PFNGLVERTEXP2UIVPROC) get_proc("glVertexP2uiv"); - gl3wVertexP3ui = (PFNGLVERTEXP3UIPROC) get_proc("glVertexP3ui"); - gl3wVertexP3uiv = (PFNGLVERTEXP3UIVPROC) get_proc("glVertexP3uiv"); - gl3wVertexP4ui = (PFNGLVERTEXP4UIPROC) get_proc("glVertexP4ui"); - gl3wVertexP4uiv = (PFNGLVERTEXP4UIVPROC) get_proc("glVertexP4uiv"); - gl3wTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC) get_proc("glTexCoordP1ui"); - gl3wTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC) get_proc("glTexCoordP1uiv"); - gl3wTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC) get_proc("glTexCoordP2ui"); - gl3wTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC) get_proc("glTexCoordP2uiv"); - gl3wTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC) get_proc("glTexCoordP3ui"); - gl3wTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC) get_proc("glTexCoordP3uiv"); - gl3wTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC) get_proc("glTexCoordP4ui"); - gl3wTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC) get_proc("glTexCoordP4uiv"); - gl3wMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC) get_proc("glMultiTexCoordP1ui"); - gl3wMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC) get_proc("glMultiTexCoordP1uiv"); - gl3wMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC) get_proc("glMultiTexCoordP2ui"); - gl3wMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC) get_proc("glMultiTexCoordP2uiv"); - gl3wMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC) get_proc("glMultiTexCoordP3ui"); - gl3wMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC) get_proc("glMultiTexCoordP3uiv"); - gl3wMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC) get_proc("glMultiTexCoordP4ui"); - gl3wMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC) get_proc("glMultiTexCoordP4uiv"); - gl3wNormalP3ui = (PFNGLNORMALP3UIPROC) get_proc("glNormalP3ui"); - gl3wNormalP3uiv = (PFNGLNORMALP3UIVPROC) get_proc("glNormalP3uiv"); - gl3wColorP3ui = (PFNGLCOLORP3UIPROC) get_proc("glColorP3ui"); - gl3wColorP3uiv = (PFNGLCOLORP3UIVPROC) get_proc("glColorP3uiv"); - gl3wColorP4ui = (PFNGLCOLORP4UIPROC) get_proc("glColorP4ui"); - gl3wColorP4uiv = (PFNGLCOLORP4UIVPROC) get_proc("glColorP4uiv"); - gl3wSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC) get_proc("glSecondaryColorP3ui"); - gl3wSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC) get_proc("glSecondaryColorP3uiv"); - gl3wVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC) get_proc("glVertexAttribP1ui"); - gl3wVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC) get_proc("glVertexAttribP1uiv"); - gl3wVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC) get_proc("glVertexAttribP2ui"); - gl3wVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC) get_proc("glVertexAttribP2uiv"); - gl3wVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC) get_proc("glVertexAttribP3ui"); - gl3wVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC) get_proc("glVertexAttribP3uiv"); - gl3wVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC) get_proc("glVertexAttribP4ui"); - gl3wVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC) get_proc("glVertexAttribP4uiv"); - gl3wDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC) get_proc("glDrawArraysIndirect"); - gl3wDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC) get_proc("glDrawElementsIndirect"); - gl3wUniform1d = (PFNGLUNIFORM1DPROC) get_proc("glUniform1d"); - gl3wUniform2d = (PFNGLUNIFORM2DPROC) get_proc("glUniform2d"); - gl3wUniform3d = (PFNGLUNIFORM3DPROC) get_proc("glUniform3d"); - gl3wUniform4d = (PFNGLUNIFORM4DPROC) get_proc("glUniform4d"); - gl3wUniform1dv = (PFNGLUNIFORM1DVPROC) get_proc("glUniform1dv"); - gl3wUniform2dv = (PFNGLUNIFORM2DVPROC) get_proc("glUniform2dv"); - gl3wUniform3dv = (PFNGLUNIFORM3DVPROC) get_proc("glUniform3dv"); - gl3wUniform4dv = (PFNGLUNIFORM4DVPROC) get_proc("glUniform4dv"); - gl3wUniformMatrix2dv = (PFNGLUNIFORMMATRIX2DVPROC) get_proc("glUniformMatrix2dv"); - gl3wUniformMatrix3dv = (PFNGLUNIFORMMATRIX3DVPROC) get_proc("glUniformMatrix3dv"); - gl3wUniformMatrix4dv = (PFNGLUNIFORMMATRIX4DVPROC) get_proc("glUniformMatrix4dv"); - gl3wUniformMatrix2x3dv = (PFNGLUNIFORMMATRIX2X3DVPROC) get_proc("glUniformMatrix2x3dv"); - gl3wUniformMatrix2x4dv = (PFNGLUNIFORMMATRIX2X4DVPROC) get_proc("glUniformMatrix2x4dv"); - gl3wUniformMatrix3x2dv = (PFNGLUNIFORMMATRIX3X2DVPROC) get_proc("glUniformMatrix3x2dv"); - gl3wUniformMatrix3x4dv = (PFNGLUNIFORMMATRIX3X4DVPROC) get_proc("glUniformMatrix3x4dv"); - gl3wUniformMatrix4x2dv = (PFNGLUNIFORMMATRIX4X2DVPROC) get_proc("glUniformMatrix4x2dv"); - gl3wUniformMatrix4x3dv = (PFNGLUNIFORMMATRIX4X3DVPROC) get_proc("glUniformMatrix4x3dv"); - gl3wGetUniformdv = (PFNGLGETUNIFORMDVPROC) get_proc("glGetUniformdv"); - gl3wGetSubroutineUniformLocation = (PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) get_proc("glGetSubroutineUniformLocation"); - gl3wGetSubroutineIndex = (PFNGLGETSUBROUTINEINDEXPROC) get_proc("glGetSubroutineIndex"); - gl3wGetActiveSubroutineUniformiv = (PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) get_proc("glGetActiveSubroutineUniformiv"); - gl3wGetActiveSubroutineUniformName = (PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) get_proc("glGetActiveSubroutineUniformName"); - gl3wGetActiveSubroutineName = (PFNGLGETACTIVESUBROUTINENAMEPROC) get_proc("glGetActiveSubroutineName"); - gl3wUniformSubroutinesuiv = (PFNGLUNIFORMSUBROUTINESUIVPROC) get_proc("glUniformSubroutinesuiv"); - gl3wGetUniformSubroutineuiv = (PFNGLGETUNIFORMSUBROUTINEUIVPROC) get_proc("glGetUniformSubroutineuiv"); - gl3wGetProgramStageiv = (PFNGLGETPROGRAMSTAGEIVPROC) get_proc("glGetProgramStageiv"); - gl3wPatchParameteri = (PFNGLPATCHPARAMETERIPROC) get_proc("glPatchParameteri"); - gl3wPatchParameterfv = (PFNGLPATCHPARAMETERFVPROC) get_proc("glPatchParameterfv"); - gl3wBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC) get_proc("glBindTransformFeedback"); - gl3wDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC) get_proc("glDeleteTransformFeedbacks"); - gl3wGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC) get_proc("glGenTransformFeedbacks"); - gl3wIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC) get_proc("glIsTransformFeedback"); - gl3wPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC) get_proc("glPauseTransformFeedback"); - gl3wResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC) get_proc("glResumeTransformFeedback"); - gl3wDrawTransformFeedback = (PFNGLDRAWTRANSFORMFEEDBACKPROC) get_proc("glDrawTransformFeedback"); - gl3wDrawTransformFeedbackStream = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) get_proc("glDrawTransformFeedbackStream"); - gl3wBeginQueryIndexed = (PFNGLBEGINQUERYINDEXEDPROC) get_proc("glBeginQueryIndexed"); - gl3wEndQueryIndexed = (PFNGLENDQUERYINDEXEDPROC) get_proc("glEndQueryIndexed"); - gl3wGetQueryIndexediv = (PFNGLGETQUERYINDEXEDIVPROC) get_proc("glGetQueryIndexediv"); - gl3wReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC) get_proc("glReleaseShaderCompiler"); - gl3wShaderBinary = (PFNGLSHADERBINARYPROC) get_proc("glShaderBinary"); - gl3wGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC) get_proc("glGetShaderPrecisionFormat"); - gl3wDepthRangef = (PFNGLDEPTHRANGEFPROC) get_proc("glDepthRangef"); - gl3wClearDepthf = (PFNGLCLEARDEPTHFPROC) get_proc("glClearDepthf"); - gl3wGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC) get_proc("glGetProgramBinary"); - gl3wProgramBinary = (PFNGLPROGRAMBINARYPROC) get_proc("glProgramBinary"); - gl3wProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC) get_proc("glProgramParameteri"); - gl3wUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC) get_proc("glUseProgramStages"); - gl3wActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC) get_proc("glActiveShaderProgram"); - gl3wCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC) get_proc("glCreateShaderProgramv"); - gl3wBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC) get_proc("glBindProgramPipeline"); - gl3wDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC) get_proc("glDeleteProgramPipelines"); - gl3wGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC) get_proc("glGenProgramPipelines"); - gl3wIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC) get_proc("glIsProgramPipeline"); - gl3wGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC) get_proc("glGetProgramPipelineiv"); - gl3wProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC) get_proc("glProgramUniform1i"); - gl3wProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC) get_proc("glProgramUniform1iv"); - gl3wProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC) get_proc("glProgramUniform1f"); - gl3wProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC) get_proc("glProgramUniform1fv"); - gl3wProgramUniform1d = (PFNGLPROGRAMUNIFORM1DPROC) get_proc("glProgramUniform1d"); - gl3wProgramUniform1dv = (PFNGLPROGRAMUNIFORM1DVPROC) get_proc("glProgramUniform1dv"); - gl3wProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC) get_proc("glProgramUniform1ui"); - gl3wProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC) get_proc("glProgramUniform1uiv"); - gl3wProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC) get_proc("glProgramUniform2i"); - gl3wProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC) get_proc("glProgramUniform2iv"); - gl3wProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC) get_proc("glProgramUniform2f"); - gl3wProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC) get_proc("glProgramUniform2fv"); - gl3wProgramUniform2d = (PFNGLPROGRAMUNIFORM2DPROC) get_proc("glProgramUniform2d"); - gl3wProgramUniform2dv = (PFNGLPROGRAMUNIFORM2DVPROC) get_proc("glProgramUniform2dv"); - gl3wProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC) get_proc("glProgramUniform2ui"); - gl3wProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC) get_proc("glProgramUniform2uiv"); - gl3wProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC) get_proc("glProgramUniform3i"); - gl3wProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC) get_proc("glProgramUniform3iv"); - gl3wProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC) get_proc("glProgramUniform3f"); - gl3wProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC) get_proc("glProgramUniform3fv"); - gl3wProgramUniform3d = (PFNGLPROGRAMUNIFORM3DPROC) get_proc("glProgramUniform3d"); - gl3wProgramUniform3dv = (PFNGLPROGRAMUNIFORM3DVPROC) get_proc("glProgramUniform3dv"); - gl3wProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC) get_proc("glProgramUniform3ui"); - gl3wProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC) get_proc("glProgramUniform3uiv"); - gl3wProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC) get_proc("glProgramUniform4i"); - gl3wProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC) get_proc("glProgramUniform4iv"); - gl3wProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC) get_proc("glProgramUniform4f"); - gl3wProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC) get_proc("glProgramUniform4fv"); - gl3wProgramUniform4d = (PFNGLPROGRAMUNIFORM4DPROC) get_proc("glProgramUniform4d"); - gl3wProgramUniform4dv = (PFNGLPROGRAMUNIFORM4DVPROC) get_proc("glProgramUniform4dv"); - gl3wProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC) get_proc("glProgramUniform4ui"); - gl3wProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC) get_proc("glProgramUniform4uiv"); - gl3wProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC) get_proc("glProgramUniformMatrix2fv"); - gl3wProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC) get_proc("glProgramUniformMatrix3fv"); - gl3wProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC) get_proc("glProgramUniformMatrix4fv"); - gl3wProgramUniformMatrix2dv = (PFNGLPROGRAMUNIFORMMATRIX2DVPROC) get_proc("glProgramUniformMatrix2dv"); - gl3wProgramUniformMatrix3dv = (PFNGLPROGRAMUNIFORMMATRIX3DVPROC) get_proc("glProgramUniformMatrix3dv"); - gl3wProgramUniformMatrix4dv = (PFNGLPROGRAMUNIFORMMATRIX4DVPROC) get_proc("glProgramUniformMatrix4dv"); - gl3wProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) get_proc("glProgramUniformMatrix2x3fv"); - gl3wProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) get_proc("glProgramUniformMatrix3x2fv"); - gl3wProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) get_proc("glProgramUniformMatrix2x4fv"); - gl3wProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) get_proc("glProgramUniformMatrix4x2fv"); - gl3wProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) get_proc("glProgramUniformMatrix3x4fv"); - gl3wProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) get_proc("glProgramUniformMatrix4x3fv"); - gl3wProgramUniformMatrix2x3dv = (PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) get_proc("glProgramUniformMatrix2x3dv"); - gl3wProgramUniformMatrix3x2dv = (PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) get_proc("glProgramUniformMatrix3x2dv"); - gl3wProgramUniformMatrix2x4dv = (PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) get_proc("glProgramUniformMatrix2x4dv"); - gl3wProgramUniformMatrix4x2dv = (PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) get_proc("glProgramUniformMatrix4x2dv"); - gl3wProgramUniformMatrix3x4dv = (PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) get_proc("glProgramUniformMatrix3x4dv"); - gl3wProgramUniformMatrix4x3dv = (PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) get_proc("glProgramUniformMatrix4x3dv"); - gl3wValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC) get_proc("glValidateProgramPipeline"); - gl3wGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC) get_proc("glGetProgramPipelineInfoLog"); - gl3wVertexAttribL1d = (PFNGLVERTEXATTRIBL1DPROC) get_proc("glVertexAttribL1d"); - gl3wVertexAttribL2d = (PFNGLVERTEXATTRIBL2DPROC) get_proc("glVertexAttribL2d"); - gl3wVertexAttribL3d = (PFNGLVERTEXATTRIBL3DPROC) get_proc("glVertexAttribL3d"); - gl3wVertexAttribL4d = (PFNGLVERTEXATTRIBL4DPROC) get_proc("glVertexAttribL4d"); - gl3wVertexAttribL1dv = (PFNGLVERTEXATTRIBL1DVPROC) get_proc("glVertexAttribL1dv"); - gl3wVertexAttribL2dv = (PFNGLVERTEXATTRIBL2DVPROC) get_proc("glVertexAttribL2dv"); - gl3wVertexAttribL3dv = (PFNGLVERTEXATTRIBL3DVPROC) get_proc("glVertexAttribL3dv"); - gl3wVertexAttribL4dv = (PFNGLVERTEXATTRIBL4DVPROC) get_proc("glVertexAttribL4dv"); - gl3wVertexAttribLPointer = (PFNGLVERTEXATTRIBLPOINTERPROC) get_proc("glVertexAttribLPointer"); - gl3wGetVertexAttribLdv = (PFNGLGETVERTEXATTRIBLDVPROC) get_proc("glGetVertexAttribLdv"); - gl3wViewportArrayv = (PFNGLVIEWPORTARRAYVPROC) get_proc("glViewportArrayv"); - gl3wViewportIndexedf = (PFNGLVIEWPORTINDEXEDFPROC) get_proc("glViewportIndexedf"); - gl3wViewportIndexedfv = (PFNGLVIEWPORTINDEXEDFVPROC) get_proc("glViewportIndexedfv"); - gl3wScissorArrayv = (PFNGLSCISSORARRAYVPROC) get_proc("glScissorArrayv"); - gl3wScissorIndexed = (PFNGLSCISSORINDEXEDPROC) get_proc("glScissorIndexed"); - gl3wScissorIndexedv = (PFNGLSCISSORINDEXEDVPROC) get_proc("glScissorIndexedv"); - gl3wDepthRangeArrayv = (PFNGLDEPTHRANGEARRAYVPROC) get_proc("glDepthRangeArrayv"); - gl3wDepthRangeIndexed = (PFNGLDEPTHRANGEINDEXEDPROC) get_proc("glDepthRangeIndexed"); - gl3wGetFloati_v = (PFNGLGETFLOATI_VPROC) get_proc("glGetFloati_v"); - gl3wGetDoublei_v = (PFNGLGETDOUBLEI_VPROC) get_proc("glGetDoublei_v"); - gl3wCreateSyncFromCLeventARB = (PFNGLCREATESYNCFROMCLEVENTARBPROC) get_proc("glCreateSyncFromCLeventARB"); - gl3wDebugMessageControlARB = (PFNGLDEBUGMESSAGECONTROLARBPROC) get_proc("glDebugMessageControlARB"); - gl3wDebugMessageInsertARB = (PFNGLDEBUGMESSAGEINSERTARBPROC) get_proc("glDebugMessageInsertARB"); - gl3wDebugMessageCallbackARB = (PFNGLDEBUGMESSAGECALLBACKARBPROC) get_proc("glDebugMessageCallbackARB"); - gl3wGetDebugMessageLogARB = (PFNGLGETDEBUGMESSAGELOGARBPROC) get_proc("glGetDebugMessageLogARB"); - gl3wGetGraphicsResetStatusARB = (PFNGLGETGRAPHICSRESETSTATUSARBPROC) get_proc("glGetGraphicsResetStatusARB"); - gl3wGetnTexImageARB = (PFNGLGETNTEXIMAGEARBPROC) get_proc("glGetnTexImageARB"); - gl3wReadnPixelsARB = (PFNGLREADNPIXELSARBPROC) get_proc("glReadnPixelsARB"); - gl3wGetnCompressedTexImageARB = (PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) get_proc("glGetnCompressedTexImageARB"); - gl3wGetnUniformfvARB = (PFNGLGETNUNIFORMFVARBPROC) get_proc("glGetnUniformfvARB"); - gl3wGetnUniformivARB = (PFNGLGETNUNIFORMIVARBPROC) get_proc("glGetnUniformivARB"); - gl3wGetnUniformuivARB = (PFNGLGETNUNIFORMUIVARBPROC) get_proc("glGetnUniformuivARB"); - gl3wGetnUniformdvARB = (PFNGLGETNUNIFORMDVARBPROC) get_proc("glGetnUniformdvARB"); - gl3wDrawArraysInstancedBaseInstance = (PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) get_proc("glDrawArraysInstancedBaseInstance"); - gl3wDrawElementsInstancedBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) get_proc("glDrawElementsInstancedBaseInstance"); - gl3wDrawElementsInstancedBaseVertexBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) get_proc("glDrawElementsInstancedBaseVertexBaseInstance"); - gl3wDrawTransformFeedbackInstanced = (PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) get_proc("glDrawTransformFeedbackInstanced"); - gl3wDrawTransformFeedbackStreamInstanced = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) get_proc("glDrawTransformFeedbackStreamInstanced"); - gl3wGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC) get_proc("glGetInternalformativ"); - gl3wGetActiveAtomicCounterBufferiv = (PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) get_proc("glGetActiveAtomicCounterBufferiv"); - gl3wBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC) get_proc("glBindImageTexture"); - gl3wMemoryBarrier = (PFNGLMEMORYBARRIERPROC) get_proc("glMemoryBarrier"); - gl3wTexStorage1D = (PFNGLTEXSTORAGE1DPROC) get_proc("glTexStorage1D"); - gl3wTexStorage2D = (PFNGLTEXSTORAGE2DPROC) get_proc("glTexStorage2D"); - gl3wTexStorage3D = (PFNGLTEXSTORAGE3DPROC) get_proc("glTexStorage3D"); - gl3wTextureStorage1DEXT = (PFNGLTEXTURESTORAGE1DEXTPROC) get_proc("glTextureStorage1DEXT"); - gl3wTextureStorage2DEXT = (PFNGLTEXTURESTORAGE2DEXTPROC) get_proc("glTextureStorage2DEXT"); - gl3wTextureStorage3DEXT = (PFNGLTEXTURESTORAGE3DEXTPROC) get_proc("glTextureStorage3DEXT"); - gl3wDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC) get_proc("glDebugMessageControl"); - gl3wDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC) get_proc("glDebugMessageInsert"); - gl3wDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC) get_proc("glDebugMessageCallback"); - gl3wGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC) get_proc("glGetDebugMessageLog"); - gl3wPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC) get_proc("glPushDebugGroup"); - gl3wPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC) get_proc("glPopDebugGroup"); - gl3wObjectLabel = (PFNGLOBJECTLABELPROC) get_proc("glObjectLabel"); - gl3wGetObjectLabel = (PFNGLGETOBJECTLABELPROC) get_proc("glGetObjectLabel"); - gl3wObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC) get_proc("glObjectPtrLabel"); - gl3wGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC) get_proc("glGetObjectPtrLabel"); - gl3wClearBufferData = (PFNGLCLEARBUFFERDATAPROC) get_proc("glClearBufferData"); - gl3wClearBufferSubData = (PFNGLCLEARBUFFERSUBDATAPROC) get_proc("glClearBufferSubData"); - gl3wClearNamedBufferDataEXT = (PFNGLCLEARNAMEDBUFFERDATAEXTPROC) get_proc("glClearNamedBufferDataEXT"); - gl3wClearNamedBufferSubDataEXT = (PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) get_proc("glClearNamedBufferSubDataEXT"); - gl3wDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC) get_proc("glDispatchCompute"); - gl3wDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC) get_proc("glDispatchComputeIndirect"); - gl3wCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC) get_proc("glCopyImageSubData"); - gl3wTextureView = (PFNGLTEXTUREVIEWPROC) get_proc("glTextureView"); - gl3wBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC) get_proc("glBindVertexBuffer"); - gl3wVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC) get_proc("glVertexAttribFormat"); - gl3wVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC) get_proc("glVertexAttribIFormat"); - gl3wVertexAttribLFormat = (PFNGLVERTEXATTRIBLFORMATPROC) get_proc("glVertexAttribLFormat"); - gl3wVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC) get_proc("glVertexAttribBinding"); - gl3wVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC) get_proc("glVertexBindingDivisor"); - gl3wVertexArrayBindVertexBufferEXT = (PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) get_proc("glVertexArrayBindVertexBufferEXT"); - gl3wVertexArrayVertexAttribFormatEXT = (PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) get_proc("glVertexArrayVertexAttribFormatEXT"); - gl3wVertexArrayVertexAttribIFormatEXT = (PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) get_proc("glVertexArrayVertexAttribIFormatEXT"); - gl3wVertexArrayVertexAttribLFormatEXT = (PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) get_proc("glVertexArrayVertexAttribLFormatEXT"); - gl3wVertexArrayVertexAttribBindingEXT = (PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) get_proc("glVertexArrayVertexAttribBindingEXT"); - gl3wVertexArrayVertexBindingDivisorEXT = (PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) get_proc("glVertexArrayVertexBindingDivisorEXT"); - gl3wFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC) get_proc("glFramebufferParameteri"); - gl3wGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC) get_proc("glGetFramebufferParameteriv"); - gl3wNamedFramebufferParameteriEXT = (PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) get_proc("glNamedFramebufferParameteriEXT"); - gl3wGetNamedFramebufferParameterivEXT = (PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) get_proc("glGetNamedFramebufferParameterivEXT"); - gl3wGetInternalformati64v = (PFNGLGETINTERNALFORMATI64VPROC) get_proc("glGetInternalformati64v"); - gl3wInvalidateTexSubImage = (PFNGLINVALIDATETEXSUBIMAGEPROC) get_proc("glInvalidateTexSubImage"); - gl3wInvalidateTexImage = (PFNGLINVALIDATETEXIMAGEPROC) get_proc("glInvalidateTexImage"); - gl3wInvalidateBufferSubData = (PFNGLINVALIDATEBUFFERSUBDATAPROC) get_proc("glInvalidateBufferSubData"); - gl3wInvalidateBufferData = (PFNGLINVALIDATEBUFFERDATAPROC) get_proc("glInvalidateBufferData"); - gl3wInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC) get_proc("glInvalidateFramebuffer"); - gl3wInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC) get_proc("glInvalidateSubFramebuffer"); - gl3wMultiDrawArraysIndirect = (PFNGLMULTIDRAWARRAYSINDIRECTPROC) get_proc("glMultiDrawArraysIndirect"); - gl3wMultiDrawElementsIndirect = (PFNGLMULTIDRAWELEMENTSINDIRECTPROC) get_proc("glMultiDrawElementsIndirect"); - gl3wGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC) get_proc("glGetProgramInterfaceiv"); - gl3wGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC) get_proc("glGetProgramResourceIndex"); - gl3wGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC) get_proc("glGetProgramResourceName"); - gl3wGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC) get_proc("glGetProgramResourceiv"); - gl3wGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC) get_proc("glGetProgramResourceLocation"); - gl3wGetProgramResourceLocationIndex = (PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) get_proc("glGetProgramResourceLocationIndex"); - gl3wShaderStorageBlockBinding = (PFNGLSHADERSTORAGEBLOCKBINDINGPROC) get_proc("glShaderStorageBlockBinding"); - gl3wTexBufferRange = (PFNGLTEXBUFFERRANGEPROC) get_proc("glTexBufferRange"); - gl3wTextureBufferRangeEXT = (PFNGLTEXTUREBUFFERRANGEEXTPROC) get_proc("glTextureBufferRangeEXT"); - gl3wTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC) get_proc("glTexStorage2DMultisample"); - gl3wTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC) get_proc("glTexStorage3DMultisample"); - gl3wTextureStorage2DMultisampleEXT = (PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) get_proc("glTextureStorage2DMultisampleEXT"); - gl3wTextureStorage3DMultisampleEXT = (PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) get_proc("glTextureStorage3DMultisampleEXT"); -} diff --git a/third_party/imgui/examples/libs/gl3w/GL/gl3w.h b/third_party/imgui/examples/libs/gl3w/GL/gl3w.h deleted file mode 100644 index ee563f8d..00000000 --- a/third_party/imgui/examples/libs/gl3w/GL/gl3w.h +++ /dev/null @@ -1,1234 +0,0 @@ -#ifndef __gl3w_h_ -#define __gl3w_h_ - -#include - -#ifndef __gl_h_ -#define __gl_h_ -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/* gl3w api */ -int gl3wInit(void); -int gl3wIsSupported(int major, int minor); -void *gl3wGetProcAddress(const char *proc); - -/* OpenGL functions */ -extern PFNGLCULLFACEPROC gl3wCullFace; -extern PFNGLFRONTFACEPROC gl3wFrontFace; -extern PFNGLHINTPROC gl3wHint; -extern PFNGLLINEWIDTHPROC gl3wLineWidth; -extern PFNGLPOINTSIZEPROC gl3wPointSize; -extern PFNGLPOLYGONMODEPROC gl3wPolygonMode; -extern PFNGLSCISSORPROC gl3wScissor; -extern PFNGLTEXPARAMETERFPROC gl3wTexParameterf; -extern PFNGLTEXPARAMETERFVPROC gl3wTexParameterfv; -extern PFNGLTEXPARAMETERIPROC gl3wTexParameteri; -extern PFNGLTEXPARAMETERIVPROC gl3wTexParameteriv; -extern PFNGLTEXIMAGE1DPROC gl3wTexImage1D; -extern PFNGLTEXIMAGE2DPROC gl3wTexImage2D; -extern PFNGLDRAWBUFFERPROC gl3wDrawBuffer; -extern PFNGLCLEARPROC gl3wClear; -extern PFNGLCLEARCOLORPROC gl3wClearColor; -extern PFNGLCLEARSTENCILPROC gl3wClearStencil; -extern PFNGLCLEARDEPTHPROC gl3wClearDepth; -extern PFNGLSTENCILMASKPROC gl3wStencilMask; -extern PFNGLCOLORMASKPROC gl3wColorMask; -extern PFNGLDEPTHMASKPROC gl3wDepthMask; -extern PFNGLDISABLEPROC gl3wDisable; -extern PFNGLENABLEPROC gl3wEnable; -extern PFNGLFINISHPROC gl3wFinish; -extern PFNGLFLUSHPROC gl3wFlush; -extern PFNGLBLENDFUNCPROC gl3wBlendFunc; -extern PFNGLLOGICOPPROC gl3wLogicOp; -extern PFNGLSTENCILFUNCPROC gl3wStencilFunc; -extern PFNGLSTENCILOPPROC gl3wStencilOp; -extern PFNGLDEPTHFUNCPROC gl3wDepthFunc; -extern PFNGLPIXELSTOREFPROC gl3wPixelStoref; -extern PFNGLPIXELSTOREIPROC gl3wPixelStorei; -extern PFNGLREADBUFFERPROC gl3wReadBuffer; -extern PFNGLREADPIXELSPROC gl3wReadPixels; -extern PFNGLGETBOOLEANVPROC gl3wGetBooleanv; -extern PFNGLGETDOUBLEVPROC gl3wGetDoublev; -extern PFNGLGETERRORPROC gl3wGetError; -extern PFNGLGETFLOATVPROC gl3wGetFloatv; -extern PFNGLGETINTEGERVPROC gl3wGetIntegerv; -extern PFNGLGETSTRINGPROC gl3wGetString; -extern PFNGLGETTEXIMAGEPROC gl3wGetTexImage; -extern PFNGLGETTEXPARAMETERFVPROC gl3wGetTexParameterfv; -extern PFNGLGETTEXPARAMETERIVPROC gl3wGetTexParameteriv; -extern PFNGLGETTEXLEVELPARAMETERFVPROC gl3wGetTexLevelParameterfv; -extern PFNGLGETTEXLEVELPARAMETERIVPROC gl3wGetTexLevelParameteriv; -extern PFNGLISENABLEDPROC gl3wIsEnabled; -extern PFNGLDEPTHRANGEPROC gl3wDepthRange; -extern PFNGLVIEWPORTPROC gl3wViewport; -extern PFNGLDRAWARRAYSPROC gl3wDrawArrays; -extern PFNGLDRAWELEMENTSPROC gl3wDrawElements; -extern PFNGLGETPOINTERVPROC gl3wGetPointerv; -extern PFNGLPOLYGONOFFSETPROC gl3wPolygonOffset; -extern PFNGLCOPYTEXIMAGE1DPROC gl3wCopyTexImage1D; -extern PFNGLCOPYTEXIMAGE2DPROC gl3wCopyTexImage2D; -extern PFNGLCOPYTEXSUBIMAGE1DPROC gl3wCopyTexSubImage1D; -extern PFNGLCOPYTEXSUBIMAGE2DPROC gl3wCopyTexSubImage2D; -extern PFNGLTEXSUBIMAGE1DPROC gl3wTexSubImage1D; -extern PFNGLTEXSUBIMAGE2DPROC gl3wTexSubImage2D; -extern PFNGLBINDTEXTUREPROC gl3wBindTexture; -extern PFNGLDELETETEXTURESPROC gl3wDeleteTextures; -extern PFNGLGENTEXTURESPROC gl3wGenTextures; -extern PFNGLISTEXTUREPROC gl3wIsTexture; -extern PFNGLBLENDCOLORPROC gl3wBlendColor; -extern PFNGLBLENDEQUATIONPROC gl3wBlendEquation; -extern PFNGLDRAWRANGEELEMENTSPROC gl3wDrawRangeElements; -extern PFNGLTEXIMAGE3DPROC gl3wTexImage3D; -extern PFNGLTEXSUBIMAGE3DPROC gl3wTexSubImage3D; -extern PFNGLCOPYTEXSUBIMAGE3DPROC gl3wCopyTexSubImage3D; -extern PFNGLACTIVETEXTUREPROC gl3wActiveTexture; -extern PFNGLSAMPLECOVERAGEPROC gl3wSampleCoverage; -extern PFNGLCOMPRESSEDTEXIMAGE3DPROC gl3wCompressedTexImage3D; -extern PFNGLCOMPRESSEDTEXIMAGE2DPROC gl3wCompressedTexImage2D; -extern PFNGLCOMPRESSEDTEXIMAGE1DPROC gl3wCompressedTexImage1D; -extern PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC gl3wCompressedTexSubImage3D; -extern PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC gl3wCompressedTexSubImage2D; -extern PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC gl3wCompressedTexSubImage1D; -extern PFNGLGETCOMPRESSEDTEXIMAGEPROC gl3wGetCompressedTexImage; -extern PFNGLBLENDFUNCSEPARATEPROC gl3wBlendFuncSeparate; -extern PFNGLMULTIDRAWARRAYSPROC gl3wMultiDrawArrays; -extern PFNGLMULTIDRAWELEMENTSPROC gl3wMultiDrawElements; -extern PFNGLPOINTPARAMETERFPROC gl3wPointParameterf; -extern PFNGLPOINTPARAMETERFVPROC gl3wPointParameterfv; -extern PFNGLPOINTPARAMETERIPROC gl3wPointParameteri; -extern PFNGLPOINTPARAMETERIVPROC gl3wPointParameteriv; -extern PFNGLGENQUERIESPROC gl3wGenQueries; -extern PFNGLDELETEQUERIESPROC gl3wDeleteQueries; -extern PFNGLISQUERYPROC gl3wIsQuery; -extern PFNGLBEGINQUERYPROC gl3wBeginQuery; -extern PFNGLENDQUERYPROC gl3wEndQuery; -extern PFNGLGETQUERYIVPROC gl3wGetQueryiv; -extern PFNGLGETQUERYOBJECTIVPROC gl3wGetQueryObjectiv; -extern PFNGLGETQUERYOBJECTUIVPROC gl3wGetQueryObjectuiv; -extern PFNGLBINDBUFFERPROC gl3wBindBuffer; -extern PFNGLDELETEBUFFERSPROC gl3wDeleteBuffers; -extern PFNGLGENBUFFERSPROC gl3wGenBuffers; -extern PFNGLISBUFFERPROC gl3wIsBuffer; -extern PFNGLBUFFERDATAPROC gl3wBufferData; -extern PFNGLBUFFERSUBDATAPROC gl3wBufferSubData; -extern PFNGLGETBUFFERSUBDATAPROC gl3wGetBufferSubData; -extern PFNGLMAPBUFFERPROC gl3wMapBuffer; -extern PFNGLUNMAPBUFFERPROC gl3wUnmapBuffer; -extern PFNGLGETBUFFERPARAMETERIVPROC gl3wGetBufferParameteriv; -extern PFNGLGETBUFFERPOINTERVPROC gl3wGetBufferPointerv; -extern PFNGLBLENDEQUATIONSEPARATEPROC gl3wBlendEquationSeparate; -extern PFNGLDRAWBUFFERSPROC gl3wDrawBuffers; -extern PFNGLSTENCILOPSEPARATEPROC gl3wStencilOpSeparate; -extern PFNGLSTENCILFUNCSEPARATEPROC gl3wStencilFuncSeparate; -extern PFNGLSTENCILMASKSEPARATEPROC gl3wStencilMaskSeparate; -extern PFNGLATTACHSHADERPROC gl3wAttachShader; -extern PFNGLBINDATTRIBLOCATIONPROC gl3wBindAttribLocation; -extern PFNGLCOMPILESHADERPROC gl3wCompileShader; -extern PFNGLCREATEPROGRAMPROC gl3wCreateProgram; -extern PFNGLCREATESHADERPROC gl3wCreateShader; -extern PFNGLDELETEPROGRAMPROC gl3wDeleteProgram; -extern PFNGLDELETESHADERPROC gl3wDeleteShader; -extern PFNGLDETACHSHADERPROC gl3wDetachShader; -extern PFNGLDISABLEVERTEXATTRIBARRAYPROC gl3wDisableVertexAttribArray; -extern PFNGLENABLEVERTEXATTRIBARRAYPROC gl3wEnableVertexAttribArray; -extern PFNGLGETACTIVEATTRIBPROC gl3wGetActiveAttrib; -extern PFNGLGETACTIVEUNIFORMPROC gl3wGetActiveUniform; -extern PFNGLGETATTACHEDSHADERSPROC gl3wGetAttachedShaders; -extern PFNGLGETATTRIBLOCATIONPROC gl3wGetAttribLocation; -extern PFNGLGETPROGRAMIVPROC gl3wGetProgramiv; -extern PFNGLGETPROGRAMINFOLOGPROC gl3wGetProgramInfoLog; -extern PFNGLGETSHADERIVPROC gl3wGetShaderiv; -extern PFNGLGETSHADERINFOLOGPROC gl3wGetShaderInfoLog; -extern PFNGLGETSHADERSOURCEPROC gl3wGetShaderSource; -extern PFNGLGETUNIFORMLOCATIONPROC gl3wGetUniformLocation; -extern PFNGLGETUNIFORMFVPROC gl3wGetUniformfv; -extern PFNGLGETUNIFORMIVPROC gl3wGetUniformiv; -extern PFNGLGETVERTEXATTRIBDVPROC gl3wGetVertexAttribdv; -extern PFNGLGETVERTEXATTRIBFVPROC gl3wGetVertexAttribfv; -extern PFNGLGETVERTEXATTRIBIVPROC gl3wGetVertexAttribiv; -extern PFNGLGETVERTEXATTRIBPOINTERVPROC gl3wGetVertexAttribPointerv; -extern PFNGLISPROGRAMPROC gl3wIsProgram; -extern PFNGLISSHADERPROC gl3wIsShader; -extern PFNGLLINKPROGRAMPROC gl3wLinkProgram; -extern PFNGLSHADERSOURCEPROC gl3wShaderSource; -extern PFNGLUSEPROGRAMPROC gl3wUseProgram; -extern PFNGLUNIFORM1FPROC gl3wUniform1f; -extern PFNGLUNIFORM2FPROC gl3wUniform2f; -extern PFNGLUNIFORM3FPROC gl3wUniform3f; -extern PFNGLUNIFORM4FPROC gl3wUniform4f; -extern PFNGLUNIFORM1IPROC gl3wUniform1i; -extern PFNGLUNIFORM2IPROC gl3wUniform2i; -extern PFNGLUNIFORM3IPROC gl3wUniform3i; -extern PFNGLUNIFORM4IPROC gl3wUniform4i; -extern PFNGLUNIFORM1FVPROC gl3wUniform1fv; -extern PFNGLUNIFORM2FVPROC gl3wUniform2fv; -extern PFNGLUNIFORM3FVPROC gl3wUniform3fv; -extern PFNGLUNIFORM4FVPROC gl3wUniform4fv; -extern PFNGLUNIFORM1IVPROC gl3wUniform1iv; -extern PFNGLUNIFORM2IVPROC gl3wUniform2iv; -extern PFNGLUNIFORM3IVPROC gl3wUniform3iv; -extern PFNGLUNIFORM4IVPROC gl3wUniform4iv; -extern PFNGLUNIFORMMATRIX2FVPROC gl3wUniformMatrix2fv; -extern PFNGLUNIFORMMATRIX3FVPROC gl3wUniformMatrix3fv; -extern PFNGLUNIFORMMATRIX4FVPROC gl3wUniformMatrix4fv; -extern PFNGLVALIDATEPROGRAMPROC gl3wValidateProgram; -extern PFNGLVERTEXATTRIB1DPROC gl3wVertexAttrib1d; -extern PFNGLVERTEXATTRIB1DVPROC gl3wVertexAttrib1dv; -extern PFNGLVERTEXATTRIB1FPROC gl3wVertexAttrib1f; -extern PFNGLVERTEXATTRIB1FVPROC gl3wVertexAttrib1fv; -extern PFNGLVERTEXATTRIB1SPROC gl3wVertexAttrib1s; -extern PFNGLVERTEXATTRIB1SVPROC gl3wVertexAttrib1sv; -extern PFNGLVERTEXATTRIB2DPROC gl3wVertexAttrib2d; -extern PFNGLVERTEXATTRIB2DVPROC gl3wVertexAttrib2dv; -extern PFNGLVERTEXATTRIB2FPROC gl3wVertexAttrib2f; -extern PFNGLVERTEXATTRIB2FVPROC gl3wVertexAttrib2fv; -extern PFNGLVERTEXATTRIB2SPROC gl3wVertexAttrib2s; -extern PFNGLVERTEXATTRIB2SVPROC gl3wVertexAttrib2sv; -extern PFNGLVERTEXATTRIB3DPROC gl3wVertexAttrib3d; -extern PFNGLVERTEXATTRIB3DVPROC gl3wVertexAttrib3dv; -extern PFNGLVERTEXATTRIB3FPROC gl3wVertexAttrib3f; -extern PFNGLVERTEXATTRIB3FVPROC gl3wVertexAttrib3fv; -extern PFNGLVERTEXATTRIB3SPROC gl3wVertexAttrib3s; -extern PFNGLVERTEXATTRIB3SVPROC gl3wVertexAttrib3sv; -extern PFNGLVERTEXATTRIB4NBVPROC gl3wVertexAttrib4Nbv; -extern PFNGLVERTEXATTRIB4NIVPROC gl3wVertexAttrib4Niv; -extern PFNGLVERTEXATTRIB4NSVPROC gl3wVertexAttrib4Nsv; -extern PFNGLVERTEXATTRIB4NUBPROC gl3wVertexAttrib4Nub; -extern PFNGLVERTEXATTRIB4NUBVPROC gl3wVertexAttrib4Nubv; -extern PFNGLVERTEXATTRIB4NUIVPROC gl3wVertexAttrib4Nuiv; -extern PFNGLVERTEXATTRIB4NUSVPROC gl3wVertexAttrib4Nusv; -extern PFNGLVERTEXATTRIB4BVPROC gl3wVertexAttrib4bv; -extern PFNGLVERTEXATTRIB4DPROC gl3wVertexAttrib4d; -extern PFNGLVERTEXATTRIB4DVPROC gl3wVertexAttrib4dv; -extern PFNGLVERTEXATTRIB4FPROC gl3wVertexAttrib4f; -extern PFNGLVERTEXATTRIB4FVPROC gl3wVertexAttrib4fv; -extern PFNGLVERTEXATTRIB4IVPROC gl3wVertexAttrib4iv; -extern PFNGLVERTEXATTRIB4SPROC gl3wVertexAttrib4s; -extern PFNGLVERTEXATTRIB4SVPROC gl3wVertexAttrib4sv; -extern PFNGLVERTEXATTRIB4UBVPROC gl3wVertexAttrib4ubv; -extern PFNGLVERTEXATTRIB4UIVPROC gl3wVertexAttrib4uiv; -extern PFNGLVERTEXATTRIB4USVPROC gl3wVertexAttrib4usv; -extern PFNGLVERTEXATTRIBPOINTERPROC gl3wVertexAttribPointer; -extern PFNGLUNIFORMMATRIX2X3FVPROC gl3wUniformMatrix2x3fv; -extern PFNGLUNIFORMMATRIX3X2FVPROC gl3wUniformMatrix3x2fv; -extern PFNGLUNIFORMMATRIX2X4FVPROC gl3wUniformMatrix2x4fv; -extern PFNGLUNIFORMMATRIX4X2FVPROC gl3wUniformMatrix4x2fv; -extern PFNGLUNIFORMMATRIX3X4FVPROC gl3wUniformMatrix3x4fv; -extern PFNGLUNIFORMMATRIX4X3FVPROC gl3wUniformMatrix4x3fv; -extern PFNGLCOLORMASKIPROC gl3wColorMaski; -extern PFNGLGETBOOLEANI_VPROC gl3wGetBooleani_v; -extern PFNGLGETINTEGERI_VPROC gl3wGetIntegeri_v; -extern PFNGLENABLEIPROC gl3wEnablei; -extern PFNGLDISABLEIPROC gl3wDisablei; -extern PFNGLISENABLEDIPROC gl3wIsEnabledi; -extern PFNGLBEGINTRANSFORMFEEDBACKPROC gl3wBeginTransformFeedback; -extern PFNGLENDTRANSFORMFEEDBACKPROC gl3wEndTransformFeedback; -extern PFNGLBINDBUFFERRANGEPROC gl3wBindBufferRange; -extern PFNGLBINDBUFFERBASEPROC gl3wBindBufferBase; -extern PFNGLTRANSFORMFEEDBACKVARYINGSPROC gl3wTransformFeedbackVaryings; -extern PFNGLGETTRANSFORMFEEDBACKVARYINGPROC gl3wGetTransformFeedbackVarying; -extern PFNGLCLAMPCOLORPROC gl3wClampColor; -extern PFNGLBEGINCONDITIONALRENDERPROC gl3wBeginConditionalRender; -extern PFNGLENDCONDITIONALRENDERPROC gl3wEndConditionalRender; -extern PFNGLVERTEXATTRIBIPOINTERPROC gl3wVertexAttribIPointer; -extern PFNGLGETVERTEXATTRIBIIVPROC gl3wGetVertexAttribIiv; -extern PFNGLGETVERTEXATTRIBIUIVPROC gl3wGetVertexAttribIuiv; -extern PFNGLVERTEXATTRIBI1IPROC gl3wVertexAttribI1i; -extern PFNGLVERTEXATTRIBI2IPROC gl3wVertexAttribI2i; -extern PFNGLVERTEXATTRIBI3IPROC gl3wVertexAttribI3i; -extern PFNGLVERTEXATTRIBI4IPROC gl3wVertexAttribI4i; -extern PFNGLVERTEXATTRIBI1UIPROC gl3wVertexAttribI1ui; -extern PFNGLVERTEXATTRIBI2UIPROC gl3wVertexAttribI2ui; -extern PFNGLVERTEXATTRIBI3UIPROC gl3wVertexAttribI3ui; -extern PFNGLVERTEXATTRIBI4UIPROC gl3wVertexAttribI4ui; -extern PFNGLVERTEXATTRIBI1IVPROC gl3wVertexAttribI1iv; -extern PFNGLVERTEXATTRIBI2IVPROC gl3wVertexAttribI2iv; -extern PFNGLVERTEXATTRIBI3IVPROC gl3wVertexAttribI3iv; -extern PFNGLVERTEXATTRIBI4IVPROC gl3wVertexAttribI4iv; -extern PFNGLVERTEXATTRIBI1UIVPROC gl3wVertexAttribI1uiv; -extern PFNGLVERTEXATTRIBI2UIVPROC gl3wVertexAttribI2uiv; -extern PFNGLVERTEXATTRIBI3UIVPROC gl3wVertexAttribI3uiv; -extern PFNGLVERTEXATTRIBI4UIVPROC gl3wVertexAttribI4uiv; -extern PFNGLVERTEXATTRIBI4BVPROC gl3wVertexAttribI4bv; -extern PFNGLVERTEXATTRIBI4SVPROC gl3wVertexAttribI4sv; -extern PFNGLVERTEXATTRIBI4UBVPROC gl3wVertexAttribI4ubv; -extern PFNGLVERTEXATTRIBI4USVPROC gl3wVertexAttribI4usv; -extern PFNGLGETUNIFORMUIVPROC gl3wGetUniformuiv; -extern PFNGLBINDFRAGDATALOCATIONPROC gl3wBindFragDataLocation; -extern PFNGLGETFRAGDATALOCATIONPROC gl3wGetFragDataLocation; -extern PFNGLUNIFORM1UIPROC gl3wUniform1ui; -extern PFNGLUNIFORM2UIPROC gl3wUniform2ui; -extern PFNGLUNIFORM3UIPROC gl3wUniform3ui; -extern PFNGLUNIFORM4UIPROC gl3wUniform4ui; -extern PFNGLUNIFORM1UIVPROC gl3wUniform1uiv; -extern PFNGLUNIFORM2UIVPROC gl3wUniform2uiv; -extern PFNGLUNIFORM3UIVPROC gl3wUniform3uiv; -extern PFNGLUNIFORM4UIVPROC gl3wUniform4uiv; -extern PFNGLTEXPARAMETERIIVPROC gl3wTexParameterIiv; -extern PFNGLTEXPARAMETERIUIVPROC gl3wTexParameterIuiv; -extern PFNGLGETTEXPARAMETERIIVPROC gl3wGetTexParameterIiv; -extern PFNGLGETTEXPARAMETERIUIVPROC gl3wGetTexParameterIuiv; -extern PFNGLCLEARBUFFERIVPROC gl3wClearBufferiv; -extern PFNGLCLEARBUFFERUIVPROC gl3wClearBufferuiv; -extern PFNGLCLEARBUFFERFVPROC gl3wClearBufferfv; -extern PFNGLCLEARBUFFERFIPROC gl3wClearBufferfi; -extern PFNGLGETSTRINGIPROC gl3wGetStringi; -extern PFNGLDRAWARRAYSINSTANCEDPROC gl3wDrawArraysInstanced; -extern PFNGLDRAWELEMENTSINSTANCEDPROC gl3wDrawElementsInstanced; -extern PFNGLTEXBUFFERPROC gl3wTexBuffer; -extern PFNGLPRIMITIVERESTARTINDEXPROC gl3wPrimitiveRestartIndex; -extern PFNGLGETINTEGER64I_VPROC gl3wGetInteger64i_v; -extern PFNGLGETBUFFERPARAMETERI64VPROC gl3wGetBufferParameteri64v; -extern PFNGLFRAMEBUFFERTEXTUREPROC gl3wFramebufferTexture; -extern PFNGLVERTEXATTRIBDIVISORPROC gl3wVertexAttribDivisor; -extern PFNGLMINSAMPLESHADINGPROC gl3wMinSampleShading; -extern PFNGLBLENDEQUATIONIPROC gl3wBlendEquationi; -extern PFNGLBLENDEQUATIONSEPARATEIPROC gl3wBlendEquationSeparatei; -extern PFNGLBLENDFUNCIPROC gl3wBlendFunci; -extern PFNGLBLENDFUNCSEPARATEIPROC gl3wBlendFuncSeparatei; -extern PFNGLISRENDERBUFFERPROC gl3wIsRenderbuffer; -extern PFNGLBINDRENDERBUFFERPROC gl3wBindRenderbuffer; -extern PFNGLDELETERENDERBUFFERSPROC gl3wDeleteRenderbuffers; -extern PFNGLGENRENDERBUFFERSPROC gl3wGenRenderbuffers; -extern PFNGLRENDERBUFFERSTORAGEPROC gl3wRenderbufferStorage; -extern PFNGLGETRENDERBUFFERPARAMETERIVPROC gl3wGetRenderbufferParameteriv; -extern PFNGLISFRAMEBUFFERPROC gl3wIsFramebuffer; -extern PFNGLBINDFRAMEBUFFERPROC gl3wBindFramebuffer; -extern PFNGLDELETEFRAMEBUFFERSPROC gl3wDeleteFramebuffers; -extern PFNGLGENFRAMEBUFFERSPROC gl3wGenFramebuffers; -extern PFNGLCHECKFRAMEBUFFERSTATUSPROC gl3wCheckFramebufferStatus; -extern PFNGLFRAMEBUFFERTEXTURE1DPROC gl3wFramebufferTexture1D; -extern PFNGLFRAMEBUFFERTEXTURE2DPROC gl3wFramebufferTexture2D; -extern PFNGLFRAMEBUFFERTEXTURE3DPROC gl3wFramebufferTexture3D; -extern PFNGLFRAMEBUFFERRENDERBUFFERPROC gl3wFramebufferRenderbuffer; -extern PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC gl3wGetFramebufferAttachmentParameteriv; -extern PFNGLGENERATEMIPMAPPROC gl3wGenerateMipmap; -extern PFNGLBLITFRAMEBUFFERPROC gl3wBlitFramebuffer; -extern PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC gl3wRenderbufferStorageMultisample; -extern PFNGLFRAMEBUFFERTEXTURELAYERPROC gl3wFramebufferTextureLayer; -extern PFNGLMAPBUFFERRANGEPROC gl3wMapBufferRange; -extern PFNGLFLUSHMAPPEDBUFFERRANGEPROC gl3wFlushMappedBufferRange; -extern PFNGLBINDVERTEXARRAYPROC gl3wBindVertexArray; -extern PFNGLDELETEVERTEXARRAYSPROC gl3wDeleteVertexArrays; -extern PFNGLGENVERTEXARRAYSPROC gl3wGenVertexArrays; -extern PFNGLISVERTEXARRAYPROC gl3wIsVertexArray; -extern PFNGLGETUNIFORMINDICESPROC gl3wGetUniformIndices; -extern PFNGLGETACTIVEUNIFORMSIVPROC gl3wGetActiveUniformsiv; -extern PFNGLGETACTIVEUNIFORMNAMEPROC gl3wGetActiveUniformName; -extern PFNGLGETUNIFORMBLOCKINDEXPROC gl3wGetUniformBlockIndex; -extern PFNGLGETACTIVEUNIFORMBLOCKIVPROC gl3wGetActiveUniformBlockiv; -extern PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC gl3wGetActiveUniformBlockName; -extern PFNGLUNIFORMBLOCKBINDINGPROC gl3wUniformBlockBinding; -extern PFNGLCOPYBUFFERSUBDATAPROC gl3wCopyBufferSubData; -extern PFNGLDRAWELEMENTSBASEVERTEXPROC gl3wDrawElementsBaseVertex; -extern PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC gl3wDrawRangeElementsBaseVertex; -extern PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC gl3wDrawElementsInstancedBaseVertex; -extern PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC gl3wMultiDrawElementsBaseVertex; -extern PFNGLPROVOKINGVERTEXPROC gl3wProvokingVertex; -extern PFNGLFENCESYNCPROC gl3wFenceSync; -extern PFNGLISSYNCPROC gl3wIsSync; -extern PFNGLDELETESYNCPROC gl3wDeleteSync; -extern PFNGLCLIENTWAITSYNCPROC gl3wClientWaitSync; -extern PFNGLWAITSYNCPROC gl3wWaitSync; -extern PFNGLGETINTEGER64VPROC gl3wGetInteger64v; -extern PFNGLGETSYNCIVPROC gl3wGetSynciv; -extern PFNGLTEXIMAGE2DMULTISAMPLEPROC gl3wTexImage2DMultisample; -extern PFNGLTEXIMAGE3DMULTISAMPLEPROC gl3wTexImage3DMultisample; -extern PFNGLGETMULTISAMPLEFVPROC gl3wGetMultisamplefv; -extern PFNGLSAMPLEMASKIPROC gl3wSampleMaski; -extern PFNGLBLENDEQUATIONIARBPROC gl3wBlendEquationiARB; -extern PFNGLBLENDEQUATIONSEPARATEIARBPROC gl3wBlendEquationSeparateiARB; -extern PFNGLBLENDFUNCIARBPROC gl3wBlendFunciARB; -extern PFNGLBLENDFUNCSEPARATEIARBPROC gl3wBlendFuncSeparateiARB; -extern PFNGLMINSAMPLESHADINGARBPROC gl3wMinSampleShadingARB; -extern PFNGLNAMEDSTRINGARBPROC gl3wNamedStringARB; -extern PFNGLDELETENAMEDSTRINGARBPROC gl3wDeleteNamedStringARB; -extern PFNGLCOMPILESHADERINCLUDEARBPROC gl3wCompileShaderIncludeARB; -extern PFNGLISNAMEDSTRINGARBPROC gl3wIsNamedStringARB; -extern PFNGLGETNAMEDSTRINGARBPROC gl3wGetNamedStringARB; -extern PFNGLGETNAMEDSTRINGIVARBPROC gl3wGetNamedStringivARB; -extern PFNGLBINDFRAGDATALOCATIONINDEXEDPROC gl3wBindFragDataLocationIndexed; -extern PFNGLGETFRAGDATAINDEXPROC gl3wGetFragDataIndex; -extern PFNGLGENSAMPLERSPROC gl3wGenSamplers; -extern PFNGLDELETESAMPLERSPROC gl3wDeleteSamplers; -extern PFNGLISSAMPLERPROC gl3wIsSampler; -extern PFNGLBINDSAMPLERPROC gl3wBindSampler; -extern PFNGLSAMPLERPARAMETERIPROC gl3wSamplerParameteri; -extern PFNGLSAMPLERPARAMETERIVPROC gl3wSamplerParameteriv; -extern PFNGLSAMPLERPARAMETERFPROC gl3wSamplerParameterf; -extern PFNGLSAMPLERPARAMETERFVPROC gl3wSamplerParameterfv; -extern PFNGLSAMPLERPARAMETERIIVPROC gl3wSamplerParameterIiv; -extern PFNGLSAMPLERPARAMETERIUIVPROC gl3wSamplerParameterIuiv; -extern PFNGLGETSAMPLERPARAMETERIVPROC gl3wGetSamplerParameteriv; -extern PFNGLGETSAMPLERPARAMETERIIVPROC gl3wGetSamplerParameterIiv; -extern PFNGLGETSAMPLERPARAMETERFVPROC gl3wGetSamplerParameterfv; -extern PFNGLGETSAMPLERPARAMETERIUIVPROC gl3wGetSamplerParameterIuiv; -extern PFNGLQUERYCOUNTERPROC gl3wQueryCounter; -extern PFNGLGETQUERYOBJECTI64VPROC gl3wGetQueryObjecti64v; -extern PFNGLGETQUERYOBJECTUI64VPROC gl3wGetQueryObjectui64v; -extern PFNGLVERTEXP2UIPROC gl3wVertexP2ui; -extern PFNGLVERTEXP2UIVPROC gl3wVertexP2uiv; -extern PFNGLVERTEXP3UIPROC gl3wVertexP3ui; -extern PFNGLVERTEXP3UIVPROC gl3wVertexP3uiv; -extern PFNGLVERTEXP4UIPROC gl3wVertexP4ui; -extern PFNGLVERTEXP4UIVPROC gl3wVertexP4uiv; -extern PFNGLTEXCOORDP1UIPROC gl3wTexCoordP1ui; -extern PFNGLTEXCOORDP1UIVPROC gl3wTexCoordP1uiv; -extern PFNGLTEXCOORDP2UIPROC gl3wTexCoordP2ui; -extern PFNGLTEXCOORDP2UIVPROC gl3wTexCoordP2uiv; -extern PFNGLTEXCOORDP3UIPROC gl3wTexCoordP3ui; -extern PFNGLTEXCOORDP3UIVPROC gl3wTexCoordP3uiv; -extern PFNGLTEXCOORDP4UIPROC gl3wTexCoordP4ui; -extern PFNGLTEXCOORDP4UIVPROC gl3wTexCoordP4uiv; -extern PFNGLMULTITEXCOORDP1UIPROC gl3wMultiTexCoordP1ui; -extern PFNGLMULTITEXCOORDP1UIVPROC gl3wMultiTexCoordP1uiv; -extern PFNGLMULTITEXCOORDP2UIPROC gl3wMultiTexCoordP2ui; -extern PFNGLMULTITEXCOORDP2UIVPROC gl3wMultiTexCoordP2uiv; -extern PFNGLMULTITEXCOORDP3UIPROC gl3wMultiTexCoordP3ui; -extern PFNGLMULTITEXCOORDP3UIVPROC gl3wMultiTexCoordP3uiv; -extern PFNGLMULTITEXCOORDP4UIPROC gl3wMultiTexCoordP4ui; -extern PFNGLMULTITEXCOORDP4UIVPROC gl3wMultiTexCoordP4uiv; -extern PFNGLNORMALP3UIPROC gl3wNormalP3ui; -extern PFNGLNORMALP3UIVPROC gl3wNormalP3uiv; -extern PFNGLCOLORP3UIPROC gl3wColorP3ui; -extern PFNGLCOLORP3UIVPROC gl3wColorP3uiv; -extern PFNGLCOLORP4UIPROC gl3wColorP4ui; -extern PFNGLCOLORP4UIVPROC gl3wColorP4uiv; -extern PFNGLSECONDARYCOLORP3UIPROC gl3wSecondaryColorP3ui; -extern PFNGLSECONDARYCOLORP3UIVPROC gl3wSecondaryColorP3uiv; -extern PFNGLVERTEXATTRIBP1UIPROC gl3wVertexAttribP1ui; -extern PFNGLVERTEXATTRIBP1UIVPROC gl3wVertexAttribP1uiv; -extern PFNGLVERTEXATTRIBP2UIPROC gl3wVertexAttribP2ui; -extern PFNGLVERTEXATTRIBP2UIVPROC gl3wVertexAttribP2uiv; -extern PFNGLVERTEXATTRIBP3UIPROC gl3wVertexAttribP3ui; -extern PFNGLVERTEXATTRIBP3UIVPROC gl3wVertexAttribP3uiv; -extern PFNGLVERTEXATTRIBP4UIPROC gl3wVertexAttribP4ui; -extern PFNGLVERTEXATTRIBP4UIVPROC gl3wVertexAttribP4uiv; -extern PFNGLDRAWARRAYSINDIRECTPROC gl3wDrawArraysIndirect; -extern PFNGLDRAWELEMENTSINDIRECTPROC gl3wDrawElementsIndirect; -extern PFNGLUNIFORM1DPROC gl3wUniform1d; -extern PFNGLUNIFORM2DPROC gl3wUniform2d; -extern PFNGLUNIFORM3DPROC gl3wUniform3d; -extern PFNGLUNIFORM4DPROC gl3wUniform4d; -extern PFNGLUNIFORM1DVPROC gl3wUniform1dv; -extern PFNGLUNIFORM2DVPROC gl3wUniform2dv; -extern PFNGLUNIFORM3DVPROC gl3wUniform3dv; -extern PFNGLUNIFORM4DVPROC gl3wUniform4dv; -extern PFNGLUNIFORMMATRIX2DVPROC gl3wUniformMatrix2dv; -extern PFNGLUNIFORMMATRIX3DVPROC gl3wUniformMatrix3dv; -extern PFNGLUNIFORMMATRIX4DVPROC gl3wUniformMatrix4dv; -extern PFNGLUNIFORMMATRIX2X3DVPROC gl3wUniformMatrix2x3dv; -extern PFNGLUNIFORMMATRIX2X4DVPROC gl3wUniformMatrix2x4dv; -extern PFNGLUNIFORMMATRIX3X2DVPROC gl3wUniformMatrix3x2dv; -extern PFNGLUNIFORMMATRIX3X4DVPROC gl3wUniformMatrix3x4dv; -extern PFNGLUNIFORMMATRIX4X2DVPROC gl3wUniformMatrix4x2dv; -extern PFNGLUNIFORMMATRIX4X3DVPROC gl3wUniformMatrix4x3dv; -extern PFNGLGETUNIFORMDVPROC gl3wGetUniformdv; -extern PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC gl3wGetSubroutineUniformLocation; -extern PFNGLGETSUBROUTINEINDEXPROC gl3wGetSubroutineIndex; -extern PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC gl3wGetActiveSubroutineUniformiv; -extern PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC gl3wGetActiveSubroutineUniformName; -extern PFNGLGETACTIVESUBROUTINENAMEPROC gl3wGetActiveSubroutineName; -extern PFNGLUNIFORMSUBROUTINESUIVPROC gl3wUniformSubroutinesuiv; -extern PFNGLGETUNIFORMSUBROUTINEUIVPROC gl3wGetUniformSubroutineuiv; -extern PFNGLGETPROGRAMSTAGEIVPROC gl3wGetProgramStageiv; -extern PFNGLPATCHPARAMETERIPROC gl3wPatchParameteri; -extern PFNGLPATCHPARAMETERFVPROC gl3wPatchParameterfv; -extern PFNGLBINDTRANSFORMFEEDBACKPROC gl3wBindTransformFeedback; -extern PFNGLDELETETRANSFORMFEEDBACKSPROC gl3wDeleteTransformFeedbacks; -extern PFNGLGENTRANSFORMFEEDBACKSPROC gl3wGenTransformFeedbacks; -extern PFNGLISTRANSFORMFEEDBACKPROC gl3wIsTransformFeedback; -extern PFNGLPAUSETRANSFORMFEEDBACKPROC gl3wPauseTransformFeedback; -extern PFNGLRESUMETRANSFORMFEEDBACKPROC gl3wResumeTransformFeedback; -extern PFNGLDRAWTRANSFORMFEEDBACKPROC gl3wDrawTransformFeedback; -extern PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC gl3wDrawTransformFeedbackStream; -extern PFNGLBEGINQUERYINDEXEDPROC gl3wBeginQueryIndexed; -extern PFNGLENDQUERYINDEXEDPROC gl3wEndQueryIndexed; -extern PFNGLGETQUERYINDEXEDIVPROC gl3wGetQueryIndexediv; -extern PFNGLRELEASESHADERCOMPILERPROC gl3wReleaseShaderCompiler; -extern PFNGLSHADERBINARYPROC gl3wShaderBinary; -extern PFNGLGETSHADERPRECISIONFORMATPROC gl3wGetShaderPrecisionFormat; -extern PFNGLDEPTHRANGEFPROC gl3wDepthRangef; -extern PFNGLCLEARDEPTHFPROC gl3wClearDepthf; -extern PFNGLGETPROGRAMBINARYPROC gl3wGetProgramBinary; -extern PFNGLPROGRAMBINARYPROC gl3wProgramBinary; -extern PFNGLPROGRAMPARAMETERIPROC gl3wProgramParameteri; -extern PFNGLUSEPROGRAMSTAGESPROC gl3wUseProgramStages; -extern PFNGLACTIVESHADERPROGRAMPROC gl3wActiveShaderProgram; -extern PFNGLCREATESHADERPROGRAMVPROC gl3wCreateShaderProgramv; -extern PFNGLBINDPROGRAMPIPELINEPROC gl3wBindProgramPipeline; -extern PFNGLDELETEPROGRAMPIPELINESPROC gl3wDeleteProgramPipelines; -extern PFNGLGENPROGRAMPIPELINESPROC gl3wGenProgramPipelines; -extern PFNGLISPROGRAMPIPELINEPROC gl3wIsProgramPipeline; -extern PFNGLGETPROGRAMPIPELINEIVPROC gl3wGetProgramPipelineiv; -extern PFNGLPROGRAMUNIFORM1IPROC gl3wProgramUniform1i; -extern PFNGLPROGRAMUNIFORM1IVPROC gl3wProgramUniform1iv; -extern PFNGLPROGRAMUNIFORM1FPROC gl3wProgramUniform1f; -extern PFNGLPROGRAMUNIFORM1FVPROC gl3wProgramUniform1fv; -extern PFNGLPROGRAMUNIFORM1DPROC gl3wProgramUniform1d; -extern PFNGLPROGRAMUNIFORM1DVPROC gl3wProgramUniform1dv; -extern PFNGLPROGRAMUNIFORM1UIPROC gl3wProgramUniform1ui; -extern PFNGLPROGRAMUNIFORM1UIVPROC gl3wProgramUniform1uiv; -extern PFNGLPROGRAMUNIFORM2IPROC gl3wProgramUniform2i; -extern PFNGLPROGRAMUNIFORM2IVPROC gl3wProgramUniform2iv; -extern PFNGLPROGRAMUNIFORM2FPROC gl3wProgramUniform2f; -extern PFNGLPROGRAMUNIFORM2FVPROC gl3wProgramUniform2fv; -extern PFNGLPROGRAMUNIFORM2DPROC gl3wProgramUniform2d; -extern PFNGLPROGRAMUNIFORM2DVPROC gl3wProgramUniform2dv; -extern PFNGLPROGRAMUNIFORM2UIPROC gl3wProgramUniform2ui; -extern PFNGLPROGRAMUNIFORM2UIVPROC gl3wProgramUniform2uiv; -extern PFNGLPROGRAMUNIFORM3IPROC gl3wProgramUniform3i; -extern PFNGLPROGRAMUNIFORM3IVPROC gl3wProgramUniform3iv; -extern PFNGLPROGRAMUNIFORM3FPROC gl3wProgramUniform3f; -extern PFNGLPROGRAMUNIFORM3FVPROC gl3wProgramUniform3fv; -extern PFNGLPROGRAMUNIFORM3DPROC gl3wProgramUniform3d; -extern PFNGLPROGRAMUNIFORM3DVPROC gl3wProgramUniform3dv; -extern PFNGLPROGRAMUNIFORM3UIPROC gl3wProgramUniform3ui; -extern PFNGLPROGRAMUNIFORM3UIVPROC gl3wProgramUniform3uiv; -extern PFNGLPROGRAMUNIFORM4IPROC gl3wProgramUniform4i; -extern PFNGLPROGRAMUNIFORM4IVPROC gl3wProgramUniform4iv; -extern PFNGLPROGRAMUNIFORM4FPROC gl3wProgramUniform4f; -extern PFNGLPROGRAMUNIFORM4FVPROC gl3wProgramUniform4fv; -extern PFNGLPROGRAMUNIFORM4DPROC gl3wProgramUniform4d; -extern PFNGLPROGRAMUNIFORM4DVPROC gl3wProgramUniform4dv; -extern PFNGLPROGRAMUNIFORM4UIPROC gl3wProgramUniform4ui; -extern PFNGLPROGRAMUNIFORM4UIVPROC gl3wProgramUniform4uiv; -extern PFNGLPROGRAMUNIFORMMATRIX2FVPROC gl3wProgramUniformMatrix2fv; -extern PFNGLPROGRAMUNIFORMMATRIX3FVPROC gl3wProgramUniformMatrix3fv; -extern PFNGLPROGRAMUNIFORMMATRIX4FVPROC gl3wProgramUniformMatrix4fv; -extern PFNGLPROGRAMUNIFORMMATRIX2DVPROC gl3wProgramUniformMatrix2dv; -extern PFNGLPROGRAMUNIFORMMATRIX3DVPROC gl3wProgramUniformMatrix3dv; -extern PFNGLPROGRAMUNIFORMMATRIX4DVPROC gl3wProgramUniformMatrix4dv; -extern PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC gl3wProgramUniformMatrix2x3fv; -extern PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC gl3wProgramUniformMatrix3x2fv; -extern PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC gl3wProgramUniformMatrix2x4fv; -extern PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC gl3wProgramUniformMatrix4x2fv; -extern PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC gl3wProgramUniformMatrix3x4fv; -extern PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC gl3wProgramUniformMatrix4x3fv; -extern PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC gl3wProgramUniformMatrix2x3dv; -extern PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC gl3wProgramUniformMatrix3x2dv; -extern PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC gl3wProgramUniformMatrix2x4dv; -extern PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC gl3wProgramUniformMatrix4x2dv; -extern PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC gl3wProgramUniformMatrix3x4dv; -extern PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC gl3wProgramUniformMatrix4x3dv; -extern PFNGLVALIDATEPROGRAMPIPELINEPROC gl3wValidateProgramPipeline; -extern PFNGLGETPROGRAMPIPELINEINFOLOGPROC gl3wGetProgramPipelineInfoLog; -extern PFNGLVERTEXATTRIBL1DPROC gl3wVertexAttribL1d; -extern PFNGLVERTEXATTRIBL2DPROC gl3wVertexAttribL2d; -extern PFNGLVERTEXATTRIBL3DPROC gl3wVertexAttribL3d; -extern PFNGLVERTEXATTRIBL4DPROC gl3wVertexAttribL4d; -extern PFNGLVERTEXATTRIBL1DVPROC gl3wVertexAttribL1dv; -extern PFNGLVERTEXATTRIBL2DVPROC gl3wVertexAttribL2dv; -extern PFNGLVERTEXATTRIBL3DVPROC gl3wVertexAttribL3dv; -extern PFNGLVERTEXATTRIBL4DVPROC gl3wVertexAttribL4dv; -extern PFNGLVERTEXATTRIBLPOINTERPROC gl3wVertexAttribLPointer; -extern PFNGLGETVERTEXATTRIBLDVPROC gl3wGetVertexAttribLdv; -extern PFNGLVIEWPORTARRAYVPROC gl3wViewportArrayv; -extern PFNGLVIEWPORTINDEXEDFPROC gl3wViewportIndexedf; -extern PFNGLVIEWPORTINDEXEDFVPROC gl3wViewportIndexedfv; -extern PFNGLSCISSORARRAYVPROC gl3wScissorArrayv; -extern PFNGLSCISSORINDEXEDPROC gl3wScissorIndexed; -extern PFNGLSCISSORINDEXEDVPROC gl3wScissorIndexedv; -extern PFNGLDEPTHRANGEARRAYVPROC gl3wDepthRangeArrayv; -extern PFNGLDEPTHRANGEINDEXEDPROC gl3wDepthRangeIndexed; -extern PFNGLGETFLOATI_VPROC gl3wGetFloati_v; -extern PFNGLGETDOUBLEI_VPROC gl3wGetDoublei_v; -extern PFNGLCREATESYNCFROMCLEVENTARBPROC gl3wCreateSyncFromCLeventARB; -extern PFNGLDEBUGMESSAGECONTROLARBPROC gl3wDebugMessageControlARB; -extern PFNGLDEBUGMESSAGEINSERTARBPROC gl3wDebugMessageInsertARB; -extern PFNGLDEBUGMESSAGECALLBACKARBPROC gl3wDebugMessageCallbackARB; -extern PFNGLGETDEBUGMESSAGELOGARBPROC gl3wGetDebugMessageLogARB; -extern PFNGLGETGRAPHICSRESETSTATUSARBPROC gl3wGetGraphicsResetStatusARB; -extern PFNGLGETNTEXIMAGEARBPROC gl3wGetnTexImageARB; -extern PFNGLREADNPIXELSARBPROC gl3wReadnPixelsARB; -extern PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC gl3wGetnCompressedTexImageARB; -extern PFNGLGETNUNIFORMFVARBPROC gl3wGetnUniformfvARB; -extern PFNGLGETNUNIFORMIVARBPROC gl3wGetnUniformivARB; -extern PFNGLGETNUNIFORMUIVARBPROC gl3wGetnUniformuivARB; -extern PFNGLGETNUNIFORMDVARBPROC gl3wGetnUniformdvARB; -extern PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC gl3wDrawArraysInstancedBaseInstance; -extern PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC gl3wDrawElementsInstancedBaseInstance; -extern PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC gl3wDrawElementsInstancedBaseVertexBaseInstance; -extern PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC gl3wDrawTransformFeedbackInstanced; -extern PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC gl3wDrawTransformFeedbackStreamInstanced; -extern PFNGLGETINTERNALFORMATIVPROC gl3wGetInternalformativ; -extern PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC gl3wGetActiveAtomicCounterBufferiv; -extern PFNGLBINDIMAGETEXTUREPROC gl3wBindImageTexture; -extern PFNGLMEMORYBARRIERPROC gl3wMemoryBarrier; -extern PFNGLTEXSTORAGE1DPROC gl3wTexStorage1D; -extern PFNGLTEXSTORAGE2DPROC gl3wTexStorage2D; -extern PFNGLTEXSTORAGE3DPROC gl3wTexStorage3D; -extern PFNGLTEXTURESTORAGE1DEXTPROC gl3wTextureStorage1DEXT; -extern PFNGLTEXTURESTORAGE2DEXTPROC gl3wTextureStorage2DEXT; -extern PFNGLTEXTURESTORAGE3DEXTPROC gl3wTextureStorage3DEXT; -extern PFNGLDEBUGMESSAGECONTROLPROC gl3wDebugMessageControl; -extern PFNGLDEBUGMESSAGEINSERTPROC gl3wDebugMessageInsert; -extern PFNGLDEBUGMESSAGECALLBACKPROC gl3wDebugMessageCallback; -extern PFNGLGETDEBUGMESSAGELOGPROC gl3wGetDebugMessageLog; -extern PFNGLPUSHDEBUGGROUPPROC gl3wPushDebugGroup; -extern PFNGLPOPDEBUGGROUPPROC gl3wPopDebugGroup; -extern PFNGLOBJECTLABELPROC gl3wObjectLabel; -extern PFNGLGETOBJECTLABELPROC gl3wGetObjectLabel; -extern PFNGLOBJECTPTRLABELPROC gl3wObjectPtrLabel; -extern PFNGLGETOBJECTPTRLABELPROC gl3wGetObjectPtrLabel; -extern PFNGLCLEARBUFFERDATAPROC gl3wClearBufferData; -extern PFNGLCLEARBUFFERSUBDATAPROC gl3wClearBufferSubData; -extern PFNGLCLEARNAMEDBUFFERDATAEXTPROC gl3wClearNamedBufferDataEXT; -extern PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC gl3wClearNamedBufferSubDataEXT; -extern PFNGLDISPATCHCOMPUTEPROC gl3wDispatchCompute; -extern PFNGLDISPATCHCOMPUTEINDIRECTPROC gl3wDispatchComputeIndirect; -extern PFNGLCOPYIMAGESUBDATAPROC gl3wCopyImageSubData; -extern PFNGLTEXTUREVIEWPROC gl3wTextureView; -extern PFNGLBINDVERTEXBUFFERPROC gl3wBindVertexBuffer; -extern PFNGLVERTEXATTRIBFORMATPROC gl3wVertexAttribFormat; -extern PFNGLVERTEXATTRIBIFORMATPROC gl3wVertexAttribIFormat; -extern PFNGLVERTEXATTRIBLFORMATPROC gl3wVertexAttribLFormat; -extern PFNGLVERTEXATTRIBBINDINGPROC gl3wVertexAttribBinding; -extern PFNGLVERTEXBINDINGDIVISORPROC gl3wVertexBindingDivisor; -extern PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC gl3wVertexArrayBindVertexBufferEXT; -extern PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC gl3wVertexArrayVertexAttribFormatEXT; -extern PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC gl3wVertexArrayVertexAttribIFormatEXT; -extern PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC gl3wVertexArrayVertexAttribLFormatEXT; -extern PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC gl3wVertexArrayVertexAttribBindingEXT; -extern PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC gl3wVertexArrayVertexBindingDivisorEXT; -extern PFNGLFRAMEBUFFERPARAMETERIPROC gl3wFramebufferParameteri; -extern PFNGLGETFRAMEBUFFERPARAMETERIVPROC gl3wGetFramebufferParameteriv; -extern PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC gl3wNamedFramebufferParameteriEXT; -extern PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC gl3wGetNamedFramebufferParameterivEXT; -extern PFNGLGETINTERNALFORMATI64VPROC gl3wGetInternalformati64v; -extern PFNGLINVALIDATETEXSUBIMAGEPROC gl3wInvalidateTexSubImage; -extern PFNGLINVALIDATETEXIMAGEPROC gl3wInvalidateTexImage; -extern PFNGLINVALIDATEBUFFERSUBDATAPROC gl3wInvalidateBufferSubData; -extern PFNGLINVALIDATEBUFFERDATAPROC gl3wInvalidateBufferData; -extern PFNGLINVALIDATEFRAMEBUFFERPROC gl3wInvalidateFramebuffer; -extern PFNGLINVALIDATESUBFRAMEBUFFERPROC gl3wInvalidateSubFramebuffer; -extern PFNGLMULTIDRAWARRAYSINDIRECTPROC gl3wMultiDrawArraysIndirect; -extern PFNGLMULTIDRAWELEMENTSINDIRECTPROC gl3wMultiDrawElementsIndirect; -extern PFNGLGETPROGRAMINTERFACEIVPROC gl3wGetProgramInterfaceiv; -extern PFNGLGETPROGRAMRESOURCEINDEXPROC gl3wGetProgramResourceIndex; -extern PFNGLGETPROGRAMRESOURCENAMEPROC gl3wGetProgramResourceName; -extern PFNGLGETPROGRAMRESOURCEIVPROC gl3wGetProgramResourceiv; -extern PFNGLGETPROGRAMRESOURCELOCATIONPROC gl3wGetProgramResourceLocation; -extern PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC gl3wGetProgramResourceLocationIndex; -extern PFNGLSHADERSTORAGEBLOCKBINDINGPROC gl3wShaderStorageBlockBinding; -extern PFNGLTEXBUFFERRANGEPROC gl3wTexBufferRange; -extern PFNGLTEXTUREBUFFERRANGEEXTPROC gl3wTextureBufferRangeEXT; -extern PFNGLTEXSTORAGE2DMULTISAMPLEPROC gl3wTexStorage2DMultisample; -extern PFNGLTEXSTORAGE3DMULTISAMPLEPROC gl3wTexStorage3DMultisample; -extern PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC gl3wTextureStorage2DMultisampleEXT; -extern PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC gl3wTextureStorage3DMultisampleEXT; - -#define glCullFace gl3wCullFace -#define glFrontFace gl3wFrontFace -#define glHint gl3wHint -#define glLineWidth gl3wLineWidth -#define glPointSize gl3wPointSize -#define glPolygonMode gl3wPolygonMode -#define glScissor gl3wScissor -#define glTexParameterf gl3wTexParameterf -#define glTexParameterfv gl3wTexParameterfv -#define glTexParameteri gl3wTexParameteri -#define glTexParameteriv gl3wTexParameteriv -#define glTexImage1D gl3wTexImage1D -#define glTexImage2D gl3wTexImage2D -#define glDrawBuffer gl3wDrawBuffer -#define glClear gl3wClear -#define glClearColor gl3wClearColor -#define glClearStencil gl3wClearStencil -#define glClearDepth gl3wClearDepth -#define glStencilMask gl3wStencilMask -#define glColorMask gl3wColorMask -#define glDepthMask gl3wDepthMask -#define glDisable gl3wDisable -#define glEnable gl3wEnable -#define glFinish gl3wFinish -#define glFlush gl3wFlush -#define glBlendFunc gl3wBlendFunc -#define glLogicOp gl3wLogicOp -#define glStencilFunc gl3wStencilFunc -#define glStencilOp gl3wStencilOp -#define glDepthFunc gl3wDepthFunc -#define glPixelStoref gl3wPixelStoref -#define glPixelStorei gl3wPixelStorei -#define glReadBuffer gl3wReadBuffer -#define glReadPixels gl3wReadPixels -#define glGetBooleanv gl3wGetBooleanv -#define glGetDoublev gl3wGetDoublev -#define glGetError gl3wGetError -#define glGetFloatv gl3wGetFloatv -#define glGetIntegerv gl3wGetIntegerv -#define glGetString gl3wGetString -#define glGetTexImage gl3wGetTexImage -#define glGetTexParameterfv gl3wGetTexParameterfv -#define glGetTexParameteriv gl3wGetTexParameteriv -#define glGetTexLevelParameterfv gl3wGetTexLevelParameterfv -#define glGetTexLevelParameteriv gl3wGetTexLevelParameteriv -#define glIsEnabled gl3wIsEnabled -#define glDepthRange gl3wDepthRange -#define glViewport gl3wViewport -#define glDrawArrays gl3wDrawArrays -#define glDrawElements gl3wDrawElements -#define glGetPointerv gl3wGetPointerv -#define glPolygonOffset gl3wPolygonOffset -#define glCopyTexImage1D gl3wCopyTexImage1D -#define glCopyTexImage2D gl3wCopyTexImage2D -#define glCopyTexSubImage1D gl3wCopyTexSubImage1D -#define glCopyTexSubImage2D gl3wCopyTexSubImage2D -#define glTexSubImage1D gl3wTexSubImage1D -#define glTexSubImage2D gl3wTexSubImage2D -#define glBindTexture gl3wBindTexture -#define glDeleteTextures gl3wDeleteTextures -#define glGenTextures gl3wGenTextures -#define glIsTexture gl3wIsTexture -#define glBlendColor gl3wBlendColor -#define glBlendEquation gl3wBlendEquation -#define glDrawRangeElements gl3wDrawRangeElements -#define glTexImage3D gl3wTexImage3D -#define glTexSubImage3D gl3wTexSubImage3D -#define glCopyTexSubImage3D gl3wCopyTexSubImage3D -#define glActiveTexture gl3wActiveTexture -#define glSampleCoverage gl3wSampleCoverage -#define glCompressedTexImage3D gl3wCompressedTexImage3D -#define glCompressedTexImage2D gl3wCompressedTexImage2D -#define glCompressedTexImage1D gl3wCompressedTexImage1D -#define glCompressedTexSubImage3D gl3wCompressedTexSubImage3D -#define glCompressedTexSubImage2D gl3wCompressedTexSubImage2D -#define glCompressedTexSubImage1D gl3wCompressedTexSubImage1D -#define glGetCompressedTexImage gl3wGetCompressedTexImage -#define glBlendFuncSeparate gl3wBlendFuncSeparate -#define glMultiDrawArrays gl3wMultiDrawArrays -#define glMultiDrawElements gl3wMultiDrawElements -#define glPointParameterf gl3wPointParameterf -#define glPointParameterfv gl3wPointParameterfv -#define glPointParameteri gl3wPointParameteri -#define glPointParameteriv gl3wPointParameteriv -#define glGenQueries gl3wGenQueries -#define glDeleteQueries gl3wDeleteQueries -#define glIsQuery gl3wIsQuery -#define glBeginQuery gl3wBeginQuery -#define glEndQuery gl3wEndQuery -#define glGetQueryiv gl3wGetQueryiv -#define glGetQueryObjectiv gl3wGetQueryObjectiv -#define glGetQueryObjectuiv gl3wGetQueryObjectuiv -#define glBindBuffer gl3wBindBuffer -#define glDeleteBuffers gl3wDeleteBuffers -#define glGenBuffers gl3wGenBuffers -#define glIsBuffer gl3wIsBuffer -#define glBufferData gl3wBufferData -#define glBufferSubData gl3wBufferSubData -#define glGetBufferSubData gl3wGetBufferSubData -#define glMapBuffer gl3wMapBuffer -#define glUnmapBuffer gl3wUnmapBuffer -#define glGetBufferParameteriv gl3wGetBufferParameteriv -#define glGetBufferPointerv gl3wGetBufferPointerv -#define glBlendEquationSeparate gl3wBlendEquationSeparate -#define glDrawBuffers gl3wDrawBuffers -#define glStencilOpSeparate gl3wStencilOpSeparate -#define glStencilFuncSeparate gl3wStencilFuncSeparate -#define glStencilMaskSeparate gl3wStencilMaskSeparate -#define glAttachShader gl3wAttachShader -#define glBindAttribLocation gl3wBindAttribLocation -#define glCompileShader gl3wCompileShader -#define glCreateProgram gl3wCreateProgram -#define glCreateShader gl3wCreateShader -#define glDeleteProgram gl3wDeleteProgram -#define glDeleteShader gl3wDeleteShader -#define glDetachShader gl3wDetachShader -#define glDisableVertexAttribArray gl3wDisableVertexAttribArray -#define glEnableVertexAttribArray gl3wEnableVertexAttribArray -#define glGetActiveAttrib gl3wGetActiveAttrib -#define glGetActiveUniform gl3wGetActiveUniform -#define glGetAttachedShaders gl3wGetAttachedShaders -#define glGetAttribLocation gl3wGetAttribLocation -#define glGetProgramiv gl3wGetProgramiv -#define glGetProgramInfoLog gl3wGetProgramInfoLog -#define glGetShaderiv gl3wGetShaderiv -#define glGetShaderInfoLog gl3wGetShaderInfoLog -#define glGetShaderSource gl3wGetShaderSource -#define glGetUniformLocation gl3wGetUniformLocation -#define glGetUniformfv gl3wGetUniformfv -#define glGetUniformiv gl3wGetUniformiv -#define glGetVertexAttribdv gl3wGetVertexAttribdv -#define glGetVertexAttribfv gl3wGetVertexAttribfv -#define glGetVertexAttribiv gl3wGetVertexAttribiv -#define glGetVertexAttribPointerv gl3wGetVertexAttribPointerv -#define glIsProgram gl3wIsProgram -#define glIsShader gl3wIsShader -#define glLinkProgram gl3wLinkProgram -#define glShaderSource gl3wShaderSource -#define glUseProgram gl3wUseProgram -#define glUniform1f gl3wUniform1f -#define glUniform2f gl3wUniform2f -#define glUniform3f gl3wUniform3f -#define glUniform4f gl3wUniform4f -#define glUniform1i gl3wUniform1i -#define glUniform2i gl3wUniform2i -#define glUniform3i gl3wUniform3i -#define glUniform4i gl3wUniform4i -#define glUniform1fv gl3wUniform1fv -#define glUniform2fv gl3wUniform2fv -#define glUniform3fv gl3wUniform3fv -#define glUniform4fv gl3wUniform4fv -#define glUniform1iv gl3wUniform1iv -#define glUniform2iv gl3wUniform2iv -#define glUniform3iv gl3wUniform3iv -#define glUniform4iv gl3wUniform4iv -#define glUniformMatrix2fv gl3wUniformMatrix2fv -#define glUniformMatrix3fv gl3wUniformMatrix3fv -#define glUniformMatrix4fv gl3wUniformMatrix4fv -#define glValidateProgram gl3wValidateProgram -#define glVertexAttrib1d gl3wVertexAttrib1d -#define glVertexAttrib1dv gl3wVertexAttrib1dv -#define glVertexAttrib1f gl3wVertexAttrib1f -#define glVertexAttrib1fv gl3wVertexAttrib1fv -#define glVertexAttrib1s gl3wVertexAttrib1s -#define glVertexAttrib1sv gl3wVertexAttrib1sv -#define glVertexAttrib2d gl3wVertexAttrib2d -#define glVertexAttrib2dv gl3wVertexAttrib2dv -#define glVertexAttrib2f gl3wVertexAttrib2f -#define glVertexAttrib2fv gl3wVertexAttrib2fv -#define glVertexAttrib2s gl3wVertexAttrib2s -#define glVertexAttrib2sv gl3wVertexAttrib2sv -#define glVertexAttrib3d gl3wVertexAttrib3d -#define glVertexAttrib3dv gl3wVertexAttrib3dv -#define glVertexAttrib3f gl3wVertexAttrib3f -#define glVertexAttrib3fv gl3wVertexAttrib3fv -#define glVertexAttrib3s gl3wVertexAttrib3s -#define glVertexAttrib3sv gl3wVertexAttrib3sv -#define glVertexAttrib4Nbv gl3wVertexAttrib4Nbv -#define glVertexAttrib4Niv gl3wVertexAttrib4Niv -#define glVertexAttrib4Nsv gl3wVertexAttrib4Nsv -#define glVertexAttrib4Nub gl3wVertexAttrib4Nub -#define glVertexAttrib4Nubv gl3wVertexAttrib4Nubv -#define glVertexAttrib4Nuiv gl3wVertexAttrib4Nuiv -#define glVertexAttrib4Nusv gl3wVertexAttrib4Nusv -#define glVertexAttrib4bv gl3wVertexAttrib4bv -#define glVertexAttrib4d gl3wVertexAttrib4d -#define glVertexAttrib4dv gl3wVertexAttrib4dv -#define glVertexAttrib4f gl3wVertexAttrib4f -#define glVertexAttrib4fv gl3wVertexAttrib4fv -#define glVertexAttrib4iv gl3wVertexAttrib4iv -#define glVertexAttrib4s gl3wVertexAttrib4s -#define glVertexAttrib4sv gl3wVertexAttrib4sv -#define glVertexAttrib4ubv gl3wVertexAttrib4ubv -#define glVertexAttrib4uiv gl3wVertexAttrib4uiv -#define glVertexAttrib4usv gl3wVertexAttrib4usv -#define glVertexAttribPointer gl3wVertexAttribPointer -#define glUniformMatrix2x3fv gl3wUniformMatrix2x3fv -#define glUniformMatrix3x2fv gl3wUniformMatrix3x2fv -#define glUniformMatrix2x4fv gl3wUniformMatrix2x4fv -#define glUniformMatrix4x2fv gl3wUniformMatrix4x2fv -#define glUniformMatrix3x4fv gl3wUniformMatrix3x4fv -#define glUniformMatrix4x3fv gl3wUniformMatrix4x3fv -#define glColorMaski gl3wColorMaski -#define glGetBooleani_v gl3wGetBooleani_v -#define glGetIntegeri_v gl3wGetIntegeri_v -#define glEnablei gl3wEnablei -#define glDisablei gl3wDisablei -#define glIsEnabledi gl3wIsEnabledi -#define glBeginTransformFeedback gl3wBeginTransformFeedback -#define glEndTransformFeedback gl3wEndTransformFeedback -#define glBindBufferRange gl3wBindBufferRange -#define glBindBufferBase gl3wBindBufferBase -#define glTransformFeedbackVaryings gl3wTransformFeedbackVaryings -#define glGetTransformFeedbackVarying gl3wGetTransformFeedbackVarying -#define glClampColor gl3wClampColor -#define glBeginConditionalRender gl3wBeginConditionalRender -#define glEndConditionalRender gl3wEndConditionalRender -#define glVertexAttribIPointer gl3wVertexAttribIPointer -#define glGetVertexAttribIiv gl3wGetVertexAttribIiv -#define glGetVertexAttribIuiv gl3wGetVertexAttribIuiv -#define glVertexAttribI1i gl3wVertexAttribI1i -#define glVertexAttribI2i gl3wVertexAttribI2i -#define glVertexAttribI3i gl3wVertexAttribI3i -#define glVertexAttribI4i gl3wVertexAttribI4i -#define glVertexAttribI1ui gl3wVertexAttribI1ui -#define glVertexAttribI2ui gl3wVertexAttribI2ui -#define glVertexAttribI3ui gl3wVertexAttribI3ui -#define glVertexAttribI4ui gl3wVertexAttribI4ui -#define glVertexAttribI1iv gl3wVertexAttribI1iv -#define glVertexAttribI2iv gl3wVertexAttribI2iv -#define glVertexAttribI3iv gl3wVertexAttribI3iv -#define glVertexAttribI4iv gl3wVertexAttribI4iv -#define glVertexAttribI1uiv gl3wVertexAttribI1uiv -#define glVertexAttribI2uiv gl3wVertexAttribI2uiv -#define glVertexAttribI3uiv gl3wVertexAttribI3uiv -#define glVertexAttribI4uiv gl3wVertexAttribI4uiv -#define glVertexAttribI4bv gl3wVertexAttribI4bv -#define glVertexAttribI4sv gl3wVertexAttribI4sv -#define glVertexAttribI4ubv gl3wVertexAttribI4ubv -#define glVertexAttribI4usv gl3wVertexAttribI4usv -#define glGetUniformuiv gl3wGetUniformuiv -#define glBindFragDataLocation gl3wBindFragDataLocation -#define glGetFragDataLocation gl3wGetFragDataLocation -#define glUniform1ui gl3wUniform1ui -#define glUniform2ui gl3wUniform2ui -#define glUniform3ui gl3wUniform3ui -#define glUniform4ui gl3wUniform4ui -#define glUniform1uiv gl3wUniform1uiv -#define glUniform2uiv gl3wUniform2uiv -#define glUniform3uiv gl3wUniform3uiv -#define glUniform4uiv gl3wUniform4uiv -#define glTexParameterIiv gl3wTexParameterIiv -#define glTexParameterIuiv gl3wTexParameterIuiv -#define glGetTexParameterIiv gl3wGetTexParameterIiv -#define glGetTexParameterIuiv gl3wGetTexParameterIuiv -#define glClearBufferiv gl3wClearBufferiv -#define glClearBufferuiv gl3wClearBufferuiv -#define glClearBufferfv gl3wClearBufferfv -#define glClearBufferfi gl3wClearBufferfi -#define glGetStringi gl3wGetStringi -#define glDrawArraysInstanced gl3wDrawArraysInstanced -#define glDrawElementsInstanced gl3wDrawElementsInstanced -#define glTexBuffer gl3wTexBuffer -#define glPrimitiveRestartIndex gl3wPrimitiveRestartIndex -#define glGetInteger64i_v gl3wGetInteger64i_v -#define glGetBufferParameteri64v gl3wGetBufferParameteri64v -#define glFramebufferTexture gl3wFramebufferTexture -#define glVertexAttribDivisor gl3wVertexAttribDivisor -#define glMinSampleShading gl3wMinSampleShading -#define glBlendEquationi gl3wBlendEquationi -#define glBlendEquationSeparatei gl3wBlendEquationSeparatei -#define glBlendFunci gl3wBlendFunci -#define glBlendFuncSeparatei gl3wBlendFuncSeparatei -#define glIsRenderbuffer gl3wIsRenderbuffer -#define glBindRenderbuffer gl3wBindRenderbuffer -#define glDeleteRenderbuffers gl3wDeleteRenderbuffers -#define glGenRenderbuffers gl3wGenRenderbuffers -#define glRenderbufferStorage gl3wRenderbufferStorage -#define glGetRenderbufferParameteriv gl3wGetRenderbufferParameteriv -#define glIsFramebuffer gl3wIsFramebuffer -#define glBindFramebuffer gl3wBindFramebuffer -#define glDeleteFramebuffers gl3wDeleteFramebuffers -#define glGenFramebuffers gl3wGenFramebuffers -#define glCheckFramebufferStatus gl3wCheckFramebufferStatus -#define glFramebufferTexture1D gl3wFramebufferTexture1D -#define glFramebufferTexture2D gl3wFramebufferTexture2D -#define glFramebufferTexture3D gl3wFramebufferTexture3D -#define glFramebufferRenderbuffer gl3wFramebufferRenderbuffer -#define glGetFramebufferAttachmentParameteriv gl3wGetFramebufferAttachmentParameteriv -#define glGenerateMipmap gl3wGenerateMipmap -#define glBlitFramebuffer gl3wBlitFramebuffer -#define glRenderbufferStorageMultisample gl3wRenderbufferStorageMultisample -#define glFramebufferTextureLayer gl3wFramebufferTextureLayer -#define glMapBufferRange gl3wMapBufferRange -#define glFlushMappedBufferRange gl3wFlushMappedBufferRange -#define glBindVertexArray gl3wBindVertexArray -#define glDeleteVertexArrays gl3wDeleteVertexArrays -#define glGenVertexArrays gl3wGenVertexArrays -#define glIsVertexArray gl3wIsVertexArray -#define glGetUniformIndices gl3wGetUniformIndices -#define glGetActiveUniformsiv gl3wGetActiveUniformsiv -#define glGetActiveUniformName gl3wGetActiveUniformName -#define glGetUniformBlockIndex gl3wGetUniformBlockIndex -#define glGetActiveUniformBlockiv gl3wGetActiveUniformBlockiv -#define glGetActiveUniformBlockName gl3wGetActiveUniformBlockName -#define glUniformBlockBinding gl3wUniformBlockBinding -#define glCopyBufferSubData gl3wCopyBufferSubData -#define glDrawElementsBaseVertex gl3wDrawElementsBaseVertex -#define glDrawRangeElementsBaseVertex gl3wDrawRangeElementsBaseVertex -#define glDrawElementsInstancedBaseVertex gl3wDrawElementsInstancedBaseVertex -#define glMultiDrawElementsBaseVertex gl3wMultiDrawElementsBaseVertex -#define glProvokingVertex gl3wProvokingVertex -#define glFenceSync gl3wFenceSync -#define glIsSync gl3wIsSync -#define glDeleteSync gl3wDeleteSync -#define glClientWaitSync gl3wClientWaitSync -#define glWaitSync gl3wWaitSync -#define glGetInteger64v gl3wGetInteger64v -#define glGetSynciv gl3wGetSynciv -#define glTexImage2DMultisample gl3wTexImage2DMultisample -#define glTexImage3DMultisample gl3wTexImage3DMultisample -#define glGetMultisamplefv gl3wGetMultisamplefv -#define glSampleMaski gl3wSampleMaski -#define glBlendEquationiARB gl3wBlendEquationiARB -#define glBlendEquationSeparateiARB gl3wBlendEquationSeparateiARB -#define glBlendFunciARB gl3wBlendFunciARB -#define glBlendFuncSeparateiARB gl3wBlendFuncSeparateiARB -#define glMinSampleShadingARB gl3wMinSampleShadingARB -#define glNamedStringARB gl3wNamedStringARB -#define glDeleteNamedStringARB gl3wDeleteNamedStringARB -#define glCompileShaderIncludeARB gl3wCompileShaderIncludeARB -#define glIsNamedStringARB gl3wIsNamedStringARB -#define glGetNamedStringARB gl3wGetNamedStringARB -#define glGetNamedStringivARB gl3wGetNamedStringivARB -#define glBindFragDataLocationIndexed gl3wBindFragDataLocationIndexed -#define glGetFragDataIndex gl3wGetFragDataIndex -#define glGenSamplers gl3wGenSamplers -#define glDeleteSamplers gl3wDeleteSamplers -#define glIsSampler gl3wIsSampler -#define glBindSampler gl3wBindSampler -#define glSamplerParameteri gl3wSamplerParameteri -#define glSamplerParameteriv gl3wSamplerParameteriv -#define glSamplerParameterf gl3wSamplerParameterf -#define glSamplerParameterfv gl3wSamplerParameterfv -#define glSamplerParameterIiv gl3wSamplerParameterIiv -#define glSamplerParameterIuiv gl3wSamplerParameterIuiv -#define glGetSamplerParameteriv gl3wGetSamplerParameteriv -#define glGetSamplerParameterIiv gl3wGetSamplerParameterIiv -#define glGetSamplerParameterfv gl3wGetSamplerParameterfv -#define glGetSamplerParameterIuiv gl3wGetSamplerParameterIuiv -#define glQueryCounter gl3wQueryCounter -#define glGetQueryObjecti64v gl3wGetQueryObjecti64v -#define glGetQueryObjectui64v gl3wGetQueryObjectui64v -#define glVertexP2ui gl3wVertexP2ui -#define glVertexP2uiv gl3wVertexP2uiv -#define glVertexP3ui gl3wVertexP3ui -#define glVertexP3uiv gl3wVertexP3uiv -#define glVertexP4ui gl3wVertexP4ui -#define glVertexP4uiv gl3wVertexP4uiv -#define glTexCoordP1ui gl3wTexCoordP1ui -#define glTexCoordP1uiv gl3wTexCoordP1uiv -#define glTexCoordP2ui gl3wTexCoordP2ui -#define glTexCoordP2uiv gl3wTexCoordP2uiv -#define glTexCoordP3ui gl3wTexCoordP3ui -#define glTexCoordP3uiv gl3wTexCoordP3uiv -#define glTexCoordP4ui gl3wTexCoordP4ui -#define glTexCoordP4uiv gl3wTexCoordP4uiv -#define glMultiTexCoordP1ui gl3wMultiTexCoordP1ui -#define glMultiTexCoordP1uiv gl3wMultiTexCoordP1uiv -#define glMultiTexCoordP2ui gl3wMultiTexCoordP2ui -#define glMultiTexCoordP2uiv gl3wMultiTexCoordP2uiv -#define glMultiTexCoordP3ui gl3wMultiTexCoordP3ui -#define glMultiTexCoordP3uiv gl3wMultiTexCoordP3uiv -#define glMultiTexCoordP4ui gl3wMultiTexCoordP4ui -#define glMultiTexCoordP4uiv gl3wMultiTexCoordP4uiv -#define glNormalP3ui gl3wNormalP3ui -#define glNormalP3uiv gl3wNormalP3uiv -#define glColorP3ui gl3wColorP3ui -#define glColorP3uiv gl3wColorP3uiv -#define glColorP4ui gl3wColorP4ui -#define glColorP4uiv gl3wColorP4uiv -#define glSecondaryColorP3ui gl3wSecondaryColorP3ui -#define glSecondaryColorP3uiv gl3wSecondaryColorP3uiv -#define glVertexAttribP1ui gl3wVertexAttribP1ui -#define glVertexAttribP1uiv gl3wVertexAttribP1uiv -#define glVertexAttribP2ui gl3wVertexAttribP2ui -#define glVertexAttribP2uiv gl3wVertexAttribP2uiv -#define glVertexAttribP3ui gl3wVertexAttribP3ui -#define glVertexAttribP3uiv gl3wVertexAttribP3uiv -#define glVertexAttribP4ui gl3wVertexAttribP4ui -#define glVertexAttribP4uiv gl3wVertexAttribP4uiv -#define glDrawArraysIndirect gl3wDrawArraysIndirect -#define glDrawElementsIndirect gl3wDrawElementsIndirect -#define glUniform1d gl3wUniform1d -#define glUniform2d gl3wUniform2d -#define glUniform3d gl3wUniform3d -#define glUniform4d gl3wUniform4d -#define glUniform1dv gl3wUniform1dv -#define glUniform2dv gl3wUniform2dv -#define glUniform3dv gl3wUniform3dv -#define glUniform4dv gl3wUniform4dv -#define glUniformMatrix2dv gl3wUniformMatrix2dv -#define glUniformMatrix3dv gl3wUniformMatrix3dv -#define glUniformMatrix4dv gl3wUniformMatrix4dv -#define glUniformMatrix2x3dv gl3wUniformMatrix2x3dv -#define glUniformMatrix2x4dv gl3wUniformMatrix2x4dv -#define glUniformMatrix3x2dv gl3wUniformMatrix3x2dv -#define glUniformMatrix3x4dv gl3wUniformMatrix3x4dv -#define glUniformMatrix4x2dv gl3wUniformMatrix4x2dv -#define glUniformMatrix4x3dv gl3wUniformMatrix4x3dv -#define glGetUniformdv gl3wGetUniformdv -#define glGetSubroutineUniformLocation gl3wGetSubroutineUniformLocation -#define glGetSubroutineIndex gl3wGetSubroutineIndex -#define glGetActiveSubroutineUniformiv gl3wGetActiveSubroutineUniformiv -#define glGetActiveSubroutineUniformName gl3wGetActiveSubroutineUniformName -#define glGetActiveSubroutineName gl3wGetActiveSubroutineName -#define glUniformSubroutinesuiv gl3wUniformSubroutinesuiv -#define glGetUniformSubroutineuiv gl3wGetUniformSubroutineuiv -#define glGetProgramStageiv gl3wGetProgramStageiv -#define glPatchParameteri gl3wPatchParameteri -#define glPatchParameterfv gl3wPatchParameterfv -#define glBindTransformFeedback gl3wBindTransformFeedback -#define glDeleteTransformFeedbacks gl3wDeleteTransformFeedbacks -#define glGenTransformFeedbacks gl3wGenTransformFeedbacks -#define glIsTransformFeedback gl3wIsTransformFeedback -#define glPauseTransformFeedback gl3wPauseTransformFeedback -#define glResumeTransformFeedback gl3wResumeTransformFeedback -#define glDrawTransformFeedback gl3wDrawTransformFeedback -#define glDrawTransformFeedbackStream gl3wDrawTransformFeedbackStream -#define glBeginQueryIndexed gl3wBeginQueryIndexed -#define glEndQueryIndexed gl3wEndQueryIndexed -#define glGetQueryIndexediv gl3wGetQueryIndexediv -#define glReleaseShaderCompiler gl3wReleaseShaderCompiler -#define glShaderBinary gl3wShaderBinary -#define glGetShaderPrecisionFormat gl3wGetShaderPrecisionFormat -#define glDepthRangef gl3wDepthRangef -#define glClearDepthf gl3wClearDepthf -#define glGetProgramBinary gl3wGetProgramBinary -#define glProgramBinary gl3wProgramBinary -#define glProgramParameteri gl3wProgramParameteri -#define glUseProgramStages gl3wUseProgramStages -#define glActiveShaderProgram gl3wActiveShaderProgram -#define glCreateShaderProgramv gl3wCreateShaderProgramv -#define glBindProgramPipeline gl3wBindProgramPipeline -#define glDeleteProgramPipelines gl3wDeleteProgramPipelines -#define glGenProgramPipelines gl3wGenProgramPipelines -#define glIsProgramPipeline gl3wIsProgramPipeline -#define glGetProgramPipelineiv gl3wGetProgramPipelineiv -#define glProgramUniform1i gl3wProgramUniform1i -#define glProgramUniform1iv gl3wProgramUniform1iv -#define glProgramUniform1f gl3wProgramUniform1f -#define glProgramUniform1fv gl3wProgramUniform1fv -#define glProgramUniform1d gl3wProgramUniform1d -#define glProgramUniform1dv gl3wProgramUniform1dv -#define glProgramUniform1ui gl3wProgramUniform1ui -#define glProgramUniform1uiv gl3wProgramUniform1uiv -#define glProgramUniform2i gl3wProgramUniform2i -#define glProgramUniform2iv gl3wProgramUniform2iv -#define glProgramUniform2f gl3wProgramUniform2f -#define glProgramUniform2fv gl3wProgramUniform2fv -#define glProgramUniform2d gl3wProgramUniform2d -#define glProgramUniform2dv gl3wProgramUniform2dv -#define glProgramUniform2ui gl3wProgramUniform2ui -#define glProgramUniform2uiv gl3wProgramUniform2uiv -#define glProgramUniform3i gl3wProgramUniform3i -#define glProgramUniform3iv gl3wProgramUniform3iv -#define glProgramUniform3f gl3wProgramUniform3f -#define glProgramUniform3fv gl3wProgramUniform3fv -#define glProgramUniform3d gl3wProgramUniform3d -#define glProgramUniform3dv gl3wProgramUniform3dv -#define glProgramUniform3ui gl3wProgramUniform3ui -#define glProgramUniform3uiv gl3wProgramUniform3uiv -#define glProgramUniform4i gl3wProgramUniform4i -#define glProgramUniform4iv gl3wProgramUniform4iv -#define glProgramUniform4f gl3wProgramUniform4f -#define glProgramUniform4fv gl3wProgramUniform4fv -#define glProgramUniform4d gl3wProgramUniform4d -#define glProgramUniform4dv gl3wProgramUniform4dv -#define glProgramUniform4ui gl3wProgramUniform4ui -#define glProgramUniform4uiv gl3wProgramUniform4uiv -#define glProgramUniformMatrix2fv gl3wProgramUniformMatrix2fv -#define glProgramUniformMatrix3fv gl3wProgramUniformMatrix3fv -#define glProgramUniformMatrix4fv gl3wProgramUniformMatrix4fv -#define glProgramUniformMatrix2dv gl3wProgramUniformMatrix2dv -#define glProgramUniformMatrix3dv gl3wProgramUniformMatrix3dv -#define glProgramUniformMatrix4dv gl3wProgramUniformMatrix4dv -#define glProgramUniformMatrix2x3fv gl3wProgramUniformMatrix2x3fv -#define glProgramUniformMatrix3x2fv gl3wProgramUniformMatrix3x2fv -#define glProgramUniformMatrix2x4fv gl3wProgramUniformMatrix2x4fv -#define glProgramUniformMatrix4x2fv gl3wProgramUniformMatrix4x2fv -#define glProgramUniformMatrix3x4fv gl3wProgramUniformMatrix3x4fv -#define glProgramUniformMatrix4x3fv gl3wProgramUniformMatrix4x3fv -#define glProgramUniformMatrix2x3dv gl3wProgramUniformMatrix2x3dv -#define glProgramUniformMatrix3x2dv gl3wProgramUniformMatrix3x2dv -#define glProgramUniformMatrix2x4dv gl3wProgramUniformMatrix2x4dv -#define glProgramUniformMatrix4x2dv gl3wProgramUniformMatrix4x2dv -#define glProgramUniformMatrix3x4dv gl3wProgramUniformMatrix3x4dv -#define glProgramUniformMatrix4x3dv gl3wProgramUniformMatrix4x3dv -#define glValidateProgramPipeline gl3wValidateProgramPipeline -#define glGetProgramPipelineInfoLog gl3wGetProgramPipelineInfoLog -#define glVertexAttribL1d gl3wVertexAttribL1d -#define glVertexAttribL2d gl3wVertexAttribL2d -#define glVertexAttribL3d gl3wVertexAttribL3d -#define glVertexAttribL4d gl3wVertexAttribL4d -#define glVertexAttribL1dv gl3wVertexAttribL1dv -#define glVertexAttribL2dv gl3wVertexAttribL2dv -#define glVertexAttribL3dv gl3wVertexAttribL3dv -#define glVertexAttribL4dv gl3wVertexAttribL4dv -#define glVertexAttribLPointer gl3wVertexAttribLPointer -#define glGetVertexAttribLdv gl3wGetVertexAttribLdv -#define glViewportArrayv gl3wViewportArrayv -#define glViewportIndexedf gl3wViewportIndexedf -#define glViewportIndexedfv gl3wViewportIndexedfv -#define glScissorArrayv gl3wScissorArrayv -#define glScissorIndexed gl3wScissorIndexed -#define glScissorIndexedv gl3wScissorIndexedv -#define glDepthRangeArrayv gl3wDepthRangeArrayv -#define glDepthRangeIndexed gl3wDepthRangeIndexed -#define glGetFloati_v gl3wGetFloati_v -#define glGetDoublei_v gl3wGetDoublei_v -#define glCreateSyncFromCLeventARB gl3wCreateSyncFromCLeventARB -#define glDebugMessageControlARB gl3wDebugMessageControlARB -#define glDebugMessageInsertARB gl3wDebugMessageInsertARB -#define glDebugMessageCallbackARB gl3wDebugMessageCallbackARB -#define glGetDebugMessageLogARB gl3wGetDebugMessageLogARB -#define glGetGraphicsResetStatusARB gl3wGetGraphicsResetStatusARB -#define glGetnTexImageARB gl3wGetnTexImageARB -#define glReadnPixelsARB gl3wReadnPixelsARB -#define glGetnCompressedTexImageARB gl3wGetnCompressedTexImageARB -#define glGetnUniformfvARB gl3wGetnUniformfvARB -#define glGetnUniformivARB gl3wGetnUniformivARB -#define glGetnUniformuivARB gl3wGetnUniformuivARB -#define glGetnUniformdvARB gl3wGetnUniformdvARB -#define glDrawArraysInstancedBaseInstance gl3wDrawArraysInstancedBaseInstance -#define glDrawElementsInstancedBaseInstance gl3wDrawElementsInstancedBaseInstance -#define glDrawElementsInstancedBaseVertexBaseInstance gl3wDrawElementsInstancedBaseVertexBaseInstance -#define glDrawTransformFeedbackInstanced gl3wDrawTransformFeedbackInstanced -#define glDrawTransformFeedbackStreamInstanced gl3wDrawTransformFeedbackStreamInstanced -#define glGetInternalformativ gl3wGetInternalformativ -#define glGetActiveAtomicCounterBufferiv gl3wGetActiveAtomicCounterBufferiv -#define glBindImageTexture gl3wBindImageTexture -#define glMemoryBarrier gl3wMemoryBarrier -#define glTexStorage1D gl3wTexStorage1D -#define glTexStorage2D gl3wTexStorage2D -#define glTexStorage3D gl3wTexStorage3D -#define glTextureStorage1DEXT gl3wTextureStorage1DEXT -#define glTextureStorage2DEXT gl3wTextureStorage2DEXT -#define glTextureStorage3DEXT gl3wTextureStorage3DEXT -#define glDebugMessageControl gl3wDebugMessageControl -#define glDebugMessageInsert gl3wDebugMessageInsert -#define glDebugMessageCallback gl3wDebugMessageCallback -#define glGetDebugMessageLog gl3wGetDebugMessageLog -#define glPushDebugGroup gl3wPushDebugGroup -#define glPopDebugGroup gl3wPopDebugGroup -#define glObjectLabel gl3wObjectLabel -#define glGetObjectLabel gl3wGetObjectLabel -#define glObjectPtrLabel gl3wObjectPtrLabel -#define glGetObjectPtrLabel gl3wGetObjectPtrLabel -#define glClearBufferData gl3wClearBufferData -#define glClearBufferSubData gl3wClearBufferSubData -#define glClearNamedBufferDataEXT gl3wClearNamedBufferDataEXT -#define glClearNamedBufferSubDataEXT gl3wClearNamedBufferSubDataEXT -#define glDispatchCompute gl3wDispatchCompute -#define glDispatchComputeIndirect gl3wDispatchComputeIndirect -#define glCopyImageSubData gl3wCopyImageSubData -#define glTextureView gl3wTextureView -#define glBindVertexBuffer gl3wBindVertexBuffer -#define glVertexAttribFormat gl3wVertexAttribFormat -#define glVertexAttribIFormat gl3wVertexAttribIFormat -#define glVertexAttribLFormat gl3wVertexAttribLFormat -#define glVertexAttribBinding gl3wVertexAttribBinding -#define glVertexBindingDivisor gl3wVertexBindingDivisor -#define glVertexArrayBindVertexBufferEXT gl3wVertexArrayBindVertexBufferEXT -#define glVertexArrayVertexAttribFormatEXT gl3wVertexArrayVertexAttribFormatEXT -#define glVertexArrayVertexAttribIFormatEXT gl3wVertexArrayVertexAttribIFormatEXT -#define glVertexArrayVertexAttribLFormatEXT gl3wVertexArrayVertexAttribLFormatEXT -#define glVertexArrayVertexAttribBindingEXT gl3wVertexArrayVertexAttribBindingEXT -#define glVertexArrayVertexBindingDivisorEXT gl3wVertexArrayVertexBindingDivisorEXT -#define glFramebufferParameteri gl3wFramebufferParameteri -#define glGetFramebufferParameteriv gl3wGetFramebufferParameteriv -#define glNamedFramebufferParameteriEXT gl3wNamedFramebufferParameteriEXT -#define glGetNamedFramebufferParameterivEXT gl3wGetNamedFramebufferParameterivEXT -#define glGetInternalformati64v gl3wGetInternalformati64v -#define glInvalidateTexSubImage gl3wInvalidateTexSubImage -#define glInvalidateTexImage gl3wInvalidateTexImage -#define glInvalidateBufferSubData gl3wInvalidateBufferSubData -#define glInvalidateBufferData gl3wInvalidateBufferData -#define glInvalidateFramebuffer gl3wInvalidateFramebuffer -#define glInvalidateSubFramebuffer gl3wInvalidateSubFramebuffer -#define glMultiDrawArraysIndirect gl3wMultiDrawArraysIndirect -#define glMultiDrawElementsIndirect gl3wMultiDrawElementsIndirect -#define glGetProgramInterfaceiv gl3wGetProgramInterfaceiv -#define glGetProgramResourceIndex gl3wGetProgramResourceIndex -#define glGetProgramResourceName gl3wGetProgramResourceName -#define glGetProgramResourceiv gl3wGetProgramResourceiv -#define glGetProgramResourceLocation gl3wGetProgramResourceLocation -#define glGetProgramResourceLocationIndex gl3wGetProgramResourceLocationIndex -#define glShaderStorageBlockBinding gl3wShaderStorageBlockBinding -#define glTexBufferRange gl3wTexBufferRange -#define glTextureBufferRangeEXT gl3wTextureBufferRangeEXT -#define glTexStorage2DMultisample gl3wTexStorage2DMultisample -#define glTexStorage3DMultisample gl3wTexStorage3DMultisample -#define glTextureStorage2DMultisampleEXT gl3wTextureStorage2DMultisampleEXT -#define glTextureStorage3DMultisampleEXT gl3wTextureStorage3DMultisampleEXT - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/third_party/imgui/examples/libs/gl3w/GL/glcorearb.h b/third_party/imgui/examples/libs/gl3w/GL/glcorearb.h deleted file mode 100644 index 07cb03e1..00000000 --- a/third_party/imgui/examples/libs/gl3w/GL/glcorearb.h +++ /dev/null @@ -1,4533 +0,0 @@ -#ifndef __glcorearb_h_ -#define __glcorearb_h_ - -#ifdef __cplusplus -extern "C" { -#endif - -/* -** Copyright (c) 2007-2012 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. -*/ - -/* glcorearb.h replaces gl3.h. It is for use with OpenGL core - * profile implementations. - * - * glcorearb.h last updated on $Date: 2012-09-19 19:02:24 -0700 (Wed, 19 Sep 2012) $ - * - * RELEASE NOTES - 2012/09/19 - * - * glcorearb.h should be placed in the same directory as gl.h and - * included as - * ''. - * - * glcorearb.h includes only APIs in the latest OpenGL core profile - * implementation together with APIs in newer ARB extensions which can be - * can be supported by the core profile. It does not, and never will - * include functionality removed from the core profile, such as - * fixed-function vertex and fragment processing. - * - * It is not possible to #include both and either of - * or in the same source file. - * - * Feedback can be given by registering for the Khronos Bugzilla - * (www.khronos.org/bugzilla) and filing issues there under product - * "OpenGL", category "Registry". - */ - -/* Function declaration macros - to move into glplatform.h */ - -#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) -#define WIN32_LEAN_AND_MEAN 1 -#include -#endif - -#ifndef APIENTRY -#define APIENTRY -#endif -#ifndef APIENTRYP -#define APIENTRYP APIENTRY * -#endif -#ifndef GLAPI -#define GLAPI extern -#endif - -/* Base GL types */ - -typedef unsigned int GLenum; -typedef unsigned char GLboolean; -typedef unsigned int GLbitfield; -typedef signed char GLbyte; -typedef short GLshort; -typedef int GLint; -typedef int GLsizei; -typedef unsigned char GLubyte; -typedef unsigned short GLushort; -typedef unsigned int GLuint; -typedef unsigned short GLhalf; -typedef float GLfloat; -typedef float GLclampf; -typedef double GLdouble; -typedef double GLclampd; -typedef void GLvoid; - -/*************************************************************/ - -#ifndef GL_VERSION_1_1 -/* AttribMask */ -#define GL_DEPTH_BUFFER_BIT 0x00000100 -#define GL_STENCIL_BUFFER_BIT 0x00000400 -#define GL_COLOR_BUFFER_BIT 0x00004000 -/* Boolean */ -#define GL_FALSE 0 -#define GL_TRUE 1 -/* BeginMode */ -#define GL_POINTS 0x0000 -#define GL_LINES 0x0001 -#define GL_LINE_LOOP 0x0002 -#define GL_LINE_STRIP 0x0003 -#define GL_TRIANGLES 0x0004 -#define GL_TRIANGLE_STRIP 0x0005 -#define GL_TRIANGLE_FAN 0x0006 -#define GL_QUADS 0x0007 -/* AlphaFunction */ -#define GL_NEVER 0x0200 -#define GL_LESS 0x0201 -#define GL_EQUAL 0x0202 -#define GL_LEQUAL 0x0203 -#define GL_GREATER 0x0204 -#define GL_NOTEQUAL 0x0205 -#define GL_GEQUAL 0x0206 -#define GL_ALWAYS 0x0207 -/* BlendingFactorDest */ -#define GL_ZERO 0 -#define GL_ONE 1 -#define GL_SRC_COLOR 0x0300 -#define GL_ONE_MINUS_SRC_COLOR 0x0301 -#define GL_SRC_ALPHA 0x0302 -#define GL_ONE_MINUS_SRC_ALPHA 0x0303 -#define GL_DST_ALPHA 0x0304 -#define GL_ONE_MINUS_DST_ALPHA 0x0305 -/* BlendingFactorSrc */ -#define GL_DST_COLOR 0x0306 -#define GL_ONE_MINUS_DST_COLOR 0x0307 -#define GL_SRC_ALPHA_SATURATE 0x0308 -/* DrawBufferMode */ -#define GL_NONE 0 -#define GL_FRONT_LEFT 0x0400 -#define GL_FRONT_RIGHT 0x0401 -#define GL_BACK_LEFT 0x0402 -#define GL_BACK_RIGHT 0x0403 -#define GL_FRONT 0x0404 -#define GL_BACK 0x0405 -#define GL_LEFT 0x0406 -#define GL_RIGHT 0x0407 -#define GL_FRONT_AND_BACK 0x0408 -/* ErrorCode */ -#define GL_NO_ERROR 0 -#define GL_INVALID_ENUM 0x0500 -#define GL_INVALID_VALUE 0x0501 -#define GL_INVALID_OPERATION 0x0502 -#define GL_OUT_OF_MEMORY 0x0505 -/* FrontFaceDirection */ -#define GL_CW 0x0900 -#define GL_CCW 0x0901 -/* GetPName */ -#define GL_POINT_SIZE 0x0B11 -#define GL_POINT_SIZE_RANGE 0x0B12 -#define GL_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_LINE_SMOOTH 0x0B20 -#define GL_LINE_WIDTH 0x0B21 -#define GL_LINE_WIDTH_RANGE 0x0B22 -#define GL_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_POLYGON_MODE 0x0B40 -#define GL_POLYGON_SMOOTH 0x0B41 -#define GL_CULL_FACE 0x0B44 -#define GL_CULL_FACE_MODE 0x0B45 -#define GL_FRONT_FACE 0x0B46 -#define GL_DEPTH_RANGE 0x0B70 -#define GL_DEPTH_TEST 0x0B71 -#define GL_DEPTH_WRITEMASK 0x0B72 -#define GL_DEPTH_CLEAR_VALUE 0x0B73 -#define GL_DEPTH_FUNC 0x0B74 -#define GL_STENCIL_TEST 0x0B90 -#define GL_STENCIL_CLEAR_VALUE 0x0B91 -#define GL_STENCIL_FUNC 0x0B92 -#define GL_STENCIL_VALUE_MASK 0x0B93 -#define GL_STENCIL_FAIL 0x0B94 -#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 -#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 -#define GL_STENCIL_REF 0x0B97 -#define GL_STENCIL_WRITEMASK 0x0B98 -#define GL_VIEWPORT 0x0BA2 -#define GL_DITHER 0x0BD0 -#define GL_BLEND_DST 0x0BE0 -#define GL_BLEND_SRC 0x0BE1 -#define GL_BLEND 0x0BE2 -#define GL_LOGIC_OP_MODE 0x0BF0 -#define GL_COLOR_LOGIC_OP 0x0BF2 -#define GL_DRAW_BUFFER 0x0C01 -#define GL_READ_BUFFER 0x0C02 -#define GL_SCISSOR_BOX 0x0C10 -#define GL_SCISSOR_TEST 0x0C11 -#define GL_COLOR_CLEAR_VALUE 0x0C22 -#define GL_COLOR_WRITEMASK 0x0C23 -#define GL_DOUBLEBUFFER 0x0C32 -#define GL_STEREO 0x0C33 -#define GL_LINE_SMOOTH_HINT 0x0C52 -#define GL_POLYGON_SMOOTH_HINT 0x0C53 -#define GL_UNPACK_SWAP_BYTES 0x0CF0 -#define GL_UNPACK_LSB_FIRST 0x0CF1 -#define GL_UNPACK_ROW_LENGTH 0x0CF2 -#define GL_UNPACK_SKIP_ROWS 0x0CF3 -#define GL_UNPACK_SKIP_PIXELS 0x0CF4 -#define GL_UNPACK_ALIGNMENT 0x0CF5 -#define GL_PACK_SWAP_BYTES 0x0D00 -#define GL_PACK_LSB_FIRST 0x0D01 -#define GL_PACK_ROW_LENGTH 0x0D02 -#define GL_PACK_SKIP_ROWS 0x0D03 -#define GL_PACK_SKIP_PIXELS 0x0D04 -#define GL_PACK_ALIGNMENT 0x0D05 -#define GL_MAX_TEXTURE_SIZE 0x0D33 -#define GL_MAX_VIEWPORT_DIMS 0x0D3A -#define GL_SUBPIXEL_BITS 0x0D50 -#define GL_TEXTURE_1D 0x0DE0 -#define GL_TEXTURE_2D 0x0DE1 -#define GL_POLYGON_OFFSET_UNITS 0x2A00 -#define GL_POLYGON_OFFSET_POINT 0x2A01 -#define GL_POLYGON_OFFSET_LINE 0x2A02 -#define GL_POLYGON_OFFSET_FILL 0x8037 -#define GL_POLYGON_OFFSET_FACTOR 0x8038 -#define GL_TEXTURE_BINDING_1D 0x8068 -#define GL_TEXTURE_BINDING_2D 0x8069 -/* GetTextureParameter */ -#define GL_TEXTURE_WIDTH 0x1000 -#define GL_TEXTURE_HEIGHT 0x1001 -#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 -#define GL_TEXTURE_BORDER_COLOR 0x1004 -#define GL_TEXTURE_RED_SIZE 0x805C -#define GL_TEXTURE_GREEN_SIZE 0x805D -#define GL_TEXTURE_BLUE_SIZE 0x805E -#define GL_TEXTURE_ALPHA_SIZE 0x805F -/* HintMode */ -#define GL_DONT_CARE 0x1100 -#define GL_FASTEST 0x1101 -#define GL_NICEST 0x1102 -/* DataType */ -#define GL_BYTE 0x1400 -#define GL_UNSIGNED_BYTE 0x1401 -#define GL_SHORT 0x1402 -#define GL_UNSIGNED_SHORT 0x1403 -#define GL_INT 0x1404 -#define GL_UNSIGNED_INT 0x1405 -#define GL_FLOAT 0x1406 -#define GL_DOUBLE 0x140A -/* ErrorCode */ -#define GL_STACK_OVERFLOW 0x0503 -#define GL_STACK_UNDERFLOW 0x0504 -/* LogicOp */ -#define GL_CLEAR 0x1500 -#define GL_AND 0x1501 -#define GL_AND_REVERSE 0x1502 -#define GL_COPY 0x1503 -#define GL_AND_INVERTED 0x1504 -#define GL_NOOP 0x1505 -#define GL_XOR 0x1506 -#define GL_OR 0x1507 -#define GL_NOR 0x1508 -#define GL_EQUIV 0x1509 -#define GL_INVERT 0x150A -#define GL_OR_REVERSE 0x150B -#define GL_COPY_INVERTED 0x150C -#define GL_OR_INVERTED 0x150D -#define GL_NAND 0x150E -#define GL_SET 0x150F -/* MatrixMode (for gl3.h, FBO attachment type) */ -#define GL_TEXTURE 0x1702 -/* PixelCopyType */ -#define GL_COLOR 0x1800 -#define GL_DEPTH 0x1801 -#define GL_STENCIL 0x1802 -/* PixelFormat */ -#define GL_STENCIL_INDEX 0x1901 -#define GL_DEPTH_COMPONENT 0x1902 -#define GL_RED 0x1903 -#define GL_GREEN 0x1904 -#define GL_BLUE 0x1905 -#define GL_ALPHA 0x1906 -#define GL_RGB 0x1907 -#define GL_RGBA 0x1908 -/* PolygonMode */ -#define GL_POINT 0x1B00 -#define GL_LINE 0x1B01 -#define GL_FILL 0x1B02 -/* StencilOp */ -#define GL_KEEP 0x1E00 -#define GL_REPLACE 0x1E01 -#define GL_INCR 0x1E02 -#define GL_DECR 0x1E03 -/* StringName */ -#define GL_VENDOR 0x1F00 -#define GL_RENDERER 0x1F01 -#define GL_VERSION 0x1F02 -#define GL_EXTENSIONS 0x1F03 -/* TextureMagFilter */ -#define GL_NEAREST 0x2600 -#define GL_LINEAR 0x2601 -/* TextureMinFilter */ -#define GL_NEAREST_MIPMAP_NEAREST 0x2700 -#define GL_LINEAR_MIPMAP_NEAREST 0x2701 -#define GL_NEAREST_MIPMAP_LINEAR 0x2702 -#define GL_LINEAR_MIPMAP_LINEAR 0x2703 -/* TextureParameterName */ -#define GL_TEXTURE_MAG_FILTER 0x2800 -#define GL_TEXTURE_MIN_FILTER 0x2801 -#define GL_TEXTURE_WRAP_S 0x2802 -#define GL_TEXTURE_WRAP_T 0x2803 -/* TextureTarget */ -#define GL_PROXY_TEXTURE_1D 0x8063 -#define GL_PROXY_TEXTURE_2D 0x8064 -/* TextureWrapMode */ -#define GL_REPEAT 0x2901 -/* PixelInternalFormat */ -#define GL_R3_G3_B2 0x2A10 -#define GL_RGB4 0x804F -#define GL_RGB5 0x8050 -#define GL_RGB8 0x8051 -#define GL_RGB10 0x8052 -#define GL_RGB12 0x8053 -#define GL_RGB16 0x8054 -#define GL_RGBA2 0x8055 -#define GL_RGBA4 0x8056 -#define GL_RGB5_A1 0x8057 -#define GL_RGBA8 0x8058 -#define GL_RGB10_A2 0x8059 -#define GL_RGBA12 0x805A -#define GL_RGBA16 0x805B -#endif - -#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_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_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_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 -#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_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_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_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 -#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_FADE_THRESHOLD_SIZE 0x8128 -#define GL_DEPTH_COMPONENT16 0x81A5 -#define GL_DEPTH_COMPONENT24 0x81A6 -#define GL_DEPTH_COMPONENT32 0x81A7 -#define GL_MIRRORED_REPEAT 0x8370 -#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD -#define GL_TEXTURE_LOD_BIAS 0x8501 -#define GL_INCR_WRAP 0x8507 -#define GL_DECR_WRAP 0x8508 -#define GL_TEXTURE_DEPTH_SIZE 0x884A -#define GL_TEXTURE_COMPARE_MODE 0x884C -#define GL_TEXTURE_COMPARE_FUNC 0x884D -#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_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_SRC1_ALPHA 0x8589 -#endif - -#ifndef GL_VERSION_2_0 -#define GL_BLEND_EQUATION_RGB 0x8009 -#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_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_MAX_VERTEX_ATTRIBS 0x8869 -#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A -#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_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_COMPRESSED_SRGB 0x8C48 -#define GL_COMPRESSED_SRGB_ALPHA 0x8C49 -#endif - -#ifndef GL_VERSION_3_0 -#define GL_COMPARE_REF_TO_TEXTURE 0x884E -#define GL_CLIP_DISTANCE0 0x3000 -#define GL_CLIP_DISTANCE1 0x3001 -#define GL_CLIP_DISTANCE2 0x3002 -#define GL_CLIP_DISTANCE3 0x3003 -#define GL_CLIP_DISTANCE4 0x3004 -#define GL_CLIP_DISTANCE5 0x3005 -#define GL_CLIP_DISTANCE6 0x3006 -#define GL_CLIP_DISTANCE7 0x3007 -#define GL_MAX_CLIP_DISTANCES 0x0D32 -#define GL_MAJOR_VERSION 0x821B -#define GL_MINOR_VERSION 0x821C -#define GL_NUM_EXTENSIONS 0x821D -#define GL_CONTEXT_FLAGS 0x821E -#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_READ_COLOR 0x891C -#define GL_FIXED_ONLY 0x891D -#define GL_MAX_VARYING_COMPONENTS 0x8B4B -#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_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 -#define GL_BUFFER_ACCESS_FLAGS 0x911F -#define GL_BUFFER_MAP_LENGTH 0x9120 -#define GL_BUFFER_MAP_OFFSET 0x9121 -/* Reuse tokens from ARB_depth_buffer_float */ -/* reuse GL_DEPTH_COMPONENT32F */ -/* reuse GL_DEPTH32F_STENCIL8 */ -/* reuse GL_FLOAT_32_UNSIGNED_INT_24_8_REV */ -/* Reuse tokens from ARB_framebuffer_object */ -/* reuse GL_INVALID_FRAMEBUFFER_OPERATION */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE */ -/* reuse GL_FRAMEBUFFER_DEFAULT */ -/* reuse GL_FRAMEBUFFER_UNDEFINED */ -/* reuse GL_DEPTH_STENCIL_ATTACHMENT */ -/* reuse GL_INDEX */ -/* reuse GL_MAX_RENDERBUFFER_SIZE */ -/* reuse GL_DEPTH_STENCIL */ -/* reuse GL_UNSIGNED_INT_24_8 */ -/* reuse GL_DEPTH24_STENCIL8 */ -/* reuse GL_TEXTURE_STENCIL_SIZE */ -/* reuse GL_TEXTURE_RED_TYPE */ -/* reuse GL_TEXTURE_GREEN_TYPE */ -/* reuse GL_TEXTURE_BLUE_TYPE */ -/* reuse GL_TEXTURE_ALPHA_TYPE */ -/* reuse GL_TEXTURE_DEPTH_TYPE */ -/* reuse GL_UNSIGNED_NORMALIZED */ -/* reuse GL_FRAMEBUFFER_BINDING */ -/* reuse GL_DRAW_FRAMEBUFFER_BINDING */ -/* reuse GL_RENDERBUFFER_BINDING */ -/* reuse GL_READ_FRAMEBUFFER */ -/* reuse GL_DRAW_FRAMEBUFFER */ -/* reuse GL_READ_FRAMEBUFFER_BINDING */ -/* reuse GL_RENDERBUFFER_SAMPLES */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */ -/* reuse GL_FRAMEBUFFER_COMPLETE */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER */ -/* reuse GL_FRAMEBUFFER_UNSUPPORTED */ -/* reuse GL_MAX_COLOR_ATTACHMENTS */ -/* reuse GL_COLOR_ATTACHMENT0 */ -/* reuse GL_COLOR_ATTACHMENT1 */ -/* reuse GL_COLOR_ATTACHMENT2 */ -/* reuse GL_COLOR_ATTACHMENT3 */ -/* reuse GL_COLOR_ATTACHMENT4 */ -/* reuse GL_COLOR_ATTACHMENT5 */ -/* reuse GL_COLOR_ATTACHMENT6 */ -/* reuse GL_COLOR_ATTACHMENT7 */ -/* reuse GL_COLOR_ATTACHMENT8 */ -/* reuse GL_COLOR_ATTACHMENT9 */ -/* reuse GL_COLOR_ATTACHMENT10 */ -/* reuse GL_COLOR_ATTACHMENT11 */ -/* reuse GL_COLOR_ATTACHMENT12 */ -/* reuse GL_COLOR_ATTACHMENT13 */ -/* reuse GL_COLOR_ATTACHMENT14 */ -/* reuse GL_COLOR_ATTACHMENT15 */ -/* reuse GL_DEPTH_ATTACHMENT */ -/* reuse GL_STENCIL_ATTACHMENT */ -/* reuse GL_FRAMEBUFFER */ -/* reuse GL_RENDERBUFFER */ -/* reuse GL_RENDERBUFFER_WIDTH */ -/* reuse GL_RENDERBUFFER_HEIGHT */ -/* reuse GL_RENDERBUFFER_INTERNAL_FORMAT */ -/* reuse GL_STENCIL_INDEX1 */ -/* reuse GL_STENCIL_INDEX4 */ -/* reuse GL_STENCIL_INDEX8 */ -/* reuse GL_STENCIL_INDEX16 */ -/* reuse GL_RENDERBUFFER_RED_SIZE */ -/* reuse GL_RENDERBUFFER_GREEN_SIZE */ -/* reuse GL_RENDERBUFFER_BLUE_SIZE */ -/* reuse GL_RENDERBUFFER_ALPHA_SIZE */ -/* reuse GL_RENDERBUFFER_DEPTH_SIZE */ -/* reuse GL_RENDERBUFFER_STENCIL_SIZE */ -/* reuse GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE */ -/* reuse GL_MAX_SAMPLES */ -/* Reuse tokens from ARB_framebuffer_sRGB */ -/* reuse GL_FRAMEBUFFER_SRGB */ -/* Reuse tokens from ARB_half_float_vertex */ -/* reuse GL_HALF_FLOAT */ -/* Reuse tokens from ARB_map_buffer_range */ -/* reuse GL_MAP_READ_BIT */ -/* reuse GL_MAP_WRITE_BIT */ -/* reuse GL_MAP_INVALIDATE_RANGE_BIT */ -/* reuse GL_MAP_INVALIDATE_BUFFER_BIT */ -/* reuse GL_MAP_FLUSH_EXPLICIT_BIT */ -/* reuse GL_MAP_UNSYNCHRONIZED_BIT */ -/* Reuse tokens from ARB_texture_compression_rgtc */ -/* reuse GL_COMPRESSED_RED_RGTC1 */ -/* reuse GL_COMPRESSED_SIGNED_RED_RGTC1 */ -/* reuse GL_COMPRESSED_RG_RGTC2 */ -/* reuse GL_COMPRESSED_SIGNED_RG_RGTC2 */ -/* Reuse tokens from ARB_texture_rg */ -/* reuse GL_RG */ -/* reuse GL_RG_INTEGER */ -/* reuse GL_R8 */ -/* reuse GL_R16 */ -/* reuse GL_RG8 */ -/* reuse GL_RG16 */ -/* reuse GL_R16F */ -/* reuse GL_R32F */ -/* reuse GL_RG16F */ -/* reuse GL_RG32F */ -/* reuse GL_R8I */ -/* reuse GL_R8UI */ -/* reuse GL_R16I */ -/* reuse GL_R16UI */ -/* reuse GL_R32I */ -/* reuse GL_R32UI */ -/* reuse GL_RG8I */ -/* reuse GL_RG8UI */ -/* reuse GL_RG16I */ -/* reuse GL_RG16UI */ -/* reuse GL_RG32I */ -/* reuse GL_RG32UI */ -/* Reuse tokens from ARB_vertex_array_object */ -/* reuse GL_VERTEX_ARRAY_BINDING */ -#endif - -#ifndef GL_VERSION_3_1 -#define GL_SAMPLER_2D_RECT 0x8B63 -#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64 -#define GL_SAMPLER_BUFFER 0x8DC2 -#define GL_INT_SAMPLER_2D_RECT 0x8DCD -#define GL_INT_SAMPLER_BUFFER 0x8DD0 -#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5 -#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8 -#define GL_TEXTURE_BUFFER 0x8C2A -#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B -#define GL_TEXTURE_BINDING_BUFFER 0x8C2C -#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D -#define GL_TEXTURE_RECTANGLE 0x84F5 -#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6 -#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7 -#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8 -#define GL_RED_SNORM 0x8F90 -#define GL_RG_SNORM 0x8F91 -#define GL_RGB_SNORM 0x8F92 -#define GL_RGBA_SNORM 0x8F93 -#define GL_R8_SNORM 0x8F94 -#define GL_RG8_SNORM 0x8F95 -#define GL_RGB8_SNORM 0x8F96 -#define GL_RGBA8_SNORM 0x8F97 -#define GL_R16_SNORM 0x8F98 -#define GL_RG16_SNORM 0x8F99 -#define GL_RGB16_SNORM 0x8F9A -#define GL_RGBA16_SNORM 0x8F9B -#define GL_SIGNED_NORMALIZED 0x8F9C -#define GL_PRIMITIVE_RESTART 0x8F9D -#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E -/* Reuse tokens from ARB_copy_buffer */ -/* reuse GL_COPY_READ_BUFFER */ -/* reuse GL_COPY_WRITE_BUFFER */ -/* Reuse tokens from ARB_draw_instanced (none) */ -/* Reuse tokens from ARB_uniform_buffer_object */ -/* reuse GL_UNIFORM_BUFFER */ -/* reuse GL_UNIFORM_BUFFER_BINDING */ -/* reuse GL_UNIFORM_BUFFER_START */ -/* reuse GL_UNIFORM_BUFFER_SIZE */ -/* reuse GL_MAX_VERTEX_UNIFORM_BLOCKS */ -/* reuse GL_MAX_FRAGMENT_UNIFORM_BLOCKS */ -/* reuse GL_MAX_COMBINED_UNIFORM_BLOCKS */ -/* reuse GL_MAX_UNIFORM_BUFFER_BINDINGS */ -/* reuse GL_MAX_UNIFORM_BLOCK_SIZE */ -/* reuse GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS */ -/* reuse GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS */ -/* reuse GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT */ -/* reuse GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */ -/* reuse GL_ACTIVE_UNIFORM_BLOCKS */ -/* reuse GL_UNIFORM_TYPE */ -/* reuse GL_UNIFORM_SIZE */ -/* reuse GL_UNIFORM_NAME_LENGTH */ -/* reuse GL_UNIFORM_BLOCK_INDEX */ -/* reuse GL_UNIFORM_OFFSET */ -/* reuse GL_UNIFORM_ARRAY_STRIDE */ -/* reuse GL_UNIFORM_MATRIX_STRIDE */ -/* reuse GL_UNIFORM_IS_ROW_MAJOR */ -/* reuse GL_UNIFORM_BLOCK_BINDING */ -/* reuse GL_UNIFORM_BLOCK_DATA_SIZE */ -/* reuse GL_UNIFORM_BLOCK_NAME_LENGTH */ -/* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS */ -/* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES */ -/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER */ -/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER */ -/* reuse GL_INVALID_INDEX */ -#endif - -#ifndef GL_VERSION_3_2 -#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 -#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 -#define GL_LINES_ADJACENCY 0x000A -#define GL_LINE_STRIP_ADJACENCY 0x000B -#define GL_TRIANGLES_ADJACENCY 0x000C -#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D -#define GL_PROGRAM_POINT_SIZE 0x8642 -#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29 -#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7 -#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8 -#define GL_GEOMETRY_SHADER 0x8DD9 -#define GL_GEOMETRY_VERTICES_OUT 0x8916 -#define GL_GEOMETRY_INPUT_TYPE 0x8917 -#define GL_GEOMETRY_OUTPUT_TYPE 0x8918 -#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF -#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0 -#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1 -#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122 -#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123 -#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 -#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 -#define GL_CONTEXT_PROFILE_MASK 0x9126 -/* reuse GL_MAX_VARYING_COMPONENTS */ -/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */ -/* Reuse tokens from ARB_depth_clamp */ -/* reuse GL_DEPTH_CLAMP */ -/* Reuse tokens from ARB_draw_elements_base_vertex (none) */ -/* Reuse tokens from ARB_fragment_coord_conventions (none) */ -/* Reuse tokens from ARB_provoking_vertex */ -/* reuse GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION */ -/* reuse GL_FIRST_VERTEX_CONVENTION */ -/* reuse GL_LAST_VERTEX_CONVENTION */ -/* reuse GL_PROVOKING_VERTEX */ -/* Reuse tokens from ARB_seamless_cube_map */ -/* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS */ -/* Reuse tokens from ARB_sync */ -/* reuse GL_MAX_SERVER_WAIT_TIMEOUT */ -/* reuse GL_OBJECT_TYPE */ -/* reuse GL_SYNC_CONDITION */ -/* reuse GL_SYNC_STATUS */ -/* reuse GL_SYNC_FLAGS */ -/* reuse GL_SYNC_FENCE */ -/* reuse GL_SYNC_GPU_COMMANDS_COMPLETE */ -/* reuse GL_UNSIGNALED */ -/* reuse GL_SIGNALED */ -/* reuse GL_ALREADY_SIGNALED */ -/* reuse GL_TIMEOUT_EXPIRED */ -/* reuse GL_CONDITION_SATISFIED */ -/* reuse GL_WAIT_FAILED */ -/* reuse GL_TIMEOUT_IGNORED */ -/* reuse GL_SYNC_FLUSH_COMMANDS_BIT */ -/* reuse GL_TIMEOUT_IGNORED */ -/* Reuse tokens from ARB_texture_multisample */ -/* reuse GL_SAMPLE_POSITION */ -/* reuse GL_SAMPLE_MASK */ -/* reuse GL_SAMPLE_MASK_VALUE */ -/* reuse GL_MAX_SAMPLE_MASK_WORDS */ -/* reuse GL_TEXTURE_2D_MULTISAMPLE */ -/* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE */ -/* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE */ -/* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_TEXTURE_SAMPLES */ -/* reuse GL_TEXTURE_FIXED_SAMPLE_LOCATIONS */ -/* reuse GL_SAMPLER_2D_MULTISAMPLE */ -/* reuse GL_INT_SAMPLER_2D_MULTISAMPLE */ -/* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE */ -/* reuse GL_SAMPLER_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_MAX_COLOR_TEXTURE_SAMPLES */ -/* reuse GL_MAX_DEPTH_TEXTURE_SAMPLES */ -/* reuse GL_MAX_INTEGER_SAMPLES */ -/* Don't need to reuse tokens from ARB_vertex_array_bgra since they're already in 1.2 core */ -#endif - -#ifndef GL_VERSION_3_3 -#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE -/* Reuse tokens from ARB_blend_func_extended */ -/* reuse GL_SRC1_COLOR */ -/* reuse GL_ONE_MINUS_SRC1_COLOR */ -/* reuse GL_ONE_MINUS_SRC1_ALPHA */ -/* reuse GL_MAX_DUAL_SOURCE_DRAW_BUFFERS */ -/* Reuse tokens from ARB_explicit_attrib_location (none) */ -/* Reuse tokens from ARB_occlusion_query2 */ -/* reuse GL_ANY_SAMPLES_PASSED */ -/* Reuse tokens from ARB_sampler_objects */ -/* reuse GL_SAMPLER_BINDING */ -/* Reuse tokens from ARB_shader_bit_encoding (none) */ -/* Reuse tokens from ARB_texture_rgb10_a2ui */ -/* reuse GL_RGB10_A2UI */ -/* Reuse tokens from ARB_texture_swizzle */ -/* reuse GL_TEXTURE_SWIZZLE_R */ -/* reuse GL_TEXTURE_SWIZZLE_G */ -/* reuse GL_TEXTURE_SWIZZLE_B */ -/* reuse GL_TEXTURE_SWIZZLE_A */ -/* reuse GL_TEXTURE_SWIZZLE_RGBA */ -/* Reuse tokens from ARB_timer_query */ -/* reuse GL_TIME_ELAPSED */ -/* reuse GL_TIMESTAMP */ -/* Reuse tokens from ARB_vertex_type_2_10_10_10_rev */ -/* reuse GL_INT_2_10_10_10_REV */ -#endif - -#ifndef GL_VERSION_4_0 -#define GL_SAMPLE_SHADING 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F -#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B -#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F -/* Reuse tokens from ARB_texture_query_lod (none) */ -/* Reuse tokens from ARB_draw_buffers_blend (none) */ -/* Reuse tokens from ARB_draw_indirect */ -/* reuse GL_DRAW_INDIRECT_BUFFER */ -/* reuse GL_DRAW_INDIRECT_BUFFER_BINDING */ -/* Reuse tokens from ARB_gpu_shader5 */ -/* reuse GL_GEOMETRY_SHADER_INVOCATIONS */ -/* reuse GL_MAX_GEOMETRY_SHADER_INVOCATIONS */ -/* reuse GL_MIN_FRAGMENT_INTERPOLATION_OFFSET */ -/* reuse GL_MAX_FRAGMENT_INTERPOLATION_OFFSET */ -/* reuse GL_FRAGMENT_INTERPOLATION_OFFSET_BITS */ -/* reuse GL_MAX_VERTEX_STREAMS */ -/* Reuse tokens from ARB_gpu_shader_fp64 */ -/* reuse GL_DOUBLE_VEC2 */ -/* reuse GL_DOUBLE_VEC3 */ -/* reuse GL_DOUBLE_VEC4 */ -/* reuse GL_DOUBLE_MAT2 */ -/* reuse GL_DOUBLE_MAT3 */ -/* reuse GL_DOUBLE_MAT4 */ -/* reuse GL_DOUBLE_MAT2x3 */ -/* reuse GL_DOUBLE_MAT2x4 */ -/* reuse GL_DOUBLE_MAT3x2 */ -/* reuse GL_DOUBLE_MAT3x4 */ -/* reuse GL_DOUBLE_MAT4x2 */ -/* reuse GL_DOUBLE_MAT4x3 */ -/* Reuse tokens from ARB_shader_subroutine */ -/* reuse GL_ACTIVE_SUBROUTINES */ -/* reuse GL_ACTIVE_SUBROUTINE_UNIFORMS */ -/* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS */ -/* reuse GL_ACTIVE_SUBROUTINE_MAX_LENGTH */ -/* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH */ -/* reuse GL_MAX_SUBROUTINES */ -/* reuse GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS */ -/* reuse GL_NUM_COMPATIBLE_SUBROUTINES */ -/* reuse GL_COMPATIBLE_SUBROUTINES */ -/* Reuse tokens from ARB_tessellation_shader */ -/* reuse GL_PATCHES */ -/* reuse GL_PATCH_VERTICES */ -/* reuse GL_PATCH_DEFAULT_INNER_LEVEL */ -/* reuse GL_PATCH_DEFAULT_OUTER_LEVEL */ -/* reuse GL_TESS_CONTROL_OUTPUT_VERTICES */ -/* reuse GL_TESS_GEN_MODE */ -/* reuse GL_TESS_GEN_SPACING */ -/* reuse GL_TESS_GEN_VERTEX_ORDER */ -/* reuse GL_TESS_GEN_POINT_MODE */ -/* reuse GL_ISOLINES */ -/* reuse GL_FRACTIONAL_ODD */ -/* reuse GL_FRACTIONAL_EVEN */ -/* reuse GL_MAX_PATCH_VERTICES */ -/* reuse GL_MAX_TESS_GEN_LEVEL */ -/* reuse GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS */ -/* reuse GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS */ -/* reuse GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS */ -/* reuse GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS */ -/* reuse GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS */ -/* reuse GL_MAX_TESS_PATCH_COMPONENTS */ -/* reuse GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS */ -/* reuse GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS */ -/* reuse GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS */ -/* reuse GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS */ -/* reuse GL_MAX_TESS_CONTROL_INPUT_COMPONENTS */ -/* reuse GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS */ -/* reuse GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS */ -/* reuse GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS */ -/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER */ -/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER */ -/* reuse GL_TESS_EVALUATION_SHADER */ -/* reuse GL_TESS_CONTROL_SHADER */ -/* Reuse tokens from ARB_texture_buffer_object_rgb32 (none) */ -/* Reuse tokens from ARB_transform_feedback2 */ -/* reuse GL_TRANSFORM_FEEDBACK */ -/* reuse GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED */ -/* reuse GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE */ -/* reuse GL_TRANSFORM_FEEDBACK_BINDING */ -/* Reuse tokens from ARB_transform_feedback3 */ -/* reuse GL_MAX_TRANSFORM_FEEDBACK_BUFFERS */ -/* reuse GL_MAX_VERTEX_STREAMS */ -#endif - -#ifndef GL_VERSION_4_1 -/* Reuse tokens from ARB_ES2_compatibility */ -/* reuse GL_FIXED */ -/* reuse GL_IMPLEMENTATION_COLOR_READ_TYPE */ -/* reuse GL_IMPLEMENTATION_COLOR_READ_FORMAT */ -/* reuse GL_LOW_FLOAT */ -/* reuse GL_MEDIUM_FLOAT */ -/* reuse GL_HIGH_FLOAT */ -/* reuse GL_LOW_INT */ -/* reuse GL_MEDIUM_INT */ -/* reuse GL_HIGH_INT */ -/* reuse GL_SHADER_COMPILER */ -/* reuse GL_SHADER_BINARY_FORMATS */ -/* reuse GL_NUM_SHADER_BINARY_FORMATS */ -/* reuse GL_MAX_VERTEX_UNIFORM_VECTORS */ -/* reuse GL_MAX_VARYING_VECTORS */ -/* reuse GL_MAX_FRAGMENT_UNIFORM_VECTORS */ -/* reuse GL_RGB565 */ -/* Reuse tokens from ARB_get_program_binary */ -/* reuse GL_PROGRAM_BINARY_RETRIEVABLE_HINT */ -/* reuse GL_PROGRAM_BINARY_LENGTH */ -/* reuse GL_NUM_PROGRAM_BINARY_FORMATS */ -/* reuse GL_PROGRAM_BINARY_FORMATS */ -/* Reuse tokens from ARB_separate_shader_objects */ -/* reuse GL_VERTEX_SHADER_BIT */ -/* reuse GL_FRAGMENT_SHADER_BIT */ -/* reuse GL_GEOMETRY_SHADER_BIT */ -/* reuse GL_TESS_CONTROL_SHADER_BIT */ -/* reuse GL_TESS_EVALUATION_SHADER_BIT */ -/* reuse GL_ALL_SHADER_BITS */ -/* reuse GL_PROGRAM_SEPARABLE */ -/* reuse GL_ACTIVE_PROGRAM */ -/* reuse GL_PROGRAM_PIPELINE_BINDING */ -/* Reuse tokens from ARB_shader_precision (none) */ -/* Reuse tokens from ARB_vertex_attrib_64bit - all are in GL 3.0 and 4.0 already */ -/* Reuse tokens from ARB_viewport_array - some are in GL 1.1 and ARB_provoking_vertex already */ -/* reuse GL_MAX_VIEWPORTS */ -/* reuse GL_VIEWPORT_SUBPIXEL_BITS */ -/* reuse GL_VIEWPORT_BOUNDS_RANGE */ -/* reuse GL_LAYER_PROVOKING_VERTEX */ -/* reuse GL_VIEWPORT_INDEX_PROVOKING_VERTEX */ -/* reuse GL_UNDEFINED_VERTEX */ -#endif - -#ifndef GL_VERSION_4_2 -/* Reuse tokens from ARB_base_instance (none) */ -/* Reuse tokens from ARB_shading_language_420pack (none) */ -/* Reuse tokens from ARB_transform_feedback_instanced (none) */ -/* Reuse tokens from ARB_compressed_texture_pixel_storage */ -/* reuse GL_UNPACK_COMPRESSED_BLOCK_WIDTH */ -/* reuse GL_UNPACK_COMPRESSED_BLOCK_HEIGHT */ -/* reuse GL_UNPACK_COMPRESSED_BLOCK_DEPTH */ -/* reuse GL_UNPACK_COMPRESSED_BLOCK_SIZE */ -/* reuse GL_PACK_COMPRESSED_BLOCK_WIDTH */ -/* reuse GL_PACK_COMPRESSED_BLOCK_HEIGHT */ -/* reuse GL_PACK_COMPRESSED_BLOCK_DEPTH */ -/* reuse GL_PACK_COMPRESSED_BLOCK_SIZE */ -/* Reuse tokens from ARB_conservative_depth (none) */ -/* Reuse tokens from ARB_internalformat_query */ -/* reuse GL_NUM_SAMPLE_COUNTS */ -/* Reuse tokens from ARB_map_buffer_alignment */ -/* reuse GL_MIN_MAP_BUFFER_ALIGNMENT */ -/* Reuse tokens from ARB_shader_atomic_counters */ -/* reuse GL_ATOMIC_COUNTER_BUFFER */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_BINDING */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_START */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_SIZE */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER */ -/* reuse GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS */ -/* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS */ -/* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS */ -/* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS */ -/* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS */ -/* reuse GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS */ -/* reuse GL_MAX_VERTEX_ATOMIC_COUNTERS */ -/* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS */ -/* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS */ -/* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTERS */ -/* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTERS */ -/* reuse GL_MAX_COMBINED_ATOMIC_COUNTERS */ -/* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE */ -/* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS */ -/* reuse GL_ACTIVE_ATOMIC_COUNTER_BUFFERS */ -/* reuse GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX */ -/* reuse GL_UNSIGNED_INT_ATOMIC_COUNTER */ -/* Reuse tokens from ARB_shader_image_load_store */ -/* reuse GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT */ -/* reuse GL_ELEMENT_ARRAY_BARRIER_BIT */ -/* reuse GL_UNIFORM_BARRIER_BIT */ -/* reuse GL_TEXTURE_FETCH_BARRIER_BIT */ -/* reuse GL_SHADER_IMAGE_ACCESS_BARRIER_BIT */ -/* reuse GL_COMMAND_BARRIER_BIT */ -/* reuse GL_PIXEL_BUFFER_BARRIER_BIT */ -/* reuse GL_TEXTURE_UPDATE_BARRIER_BIT */ -/* reuse GL_BUFFER_UPDATE_BARRIER_BIT */ -/* reuse GL_FRAMEBUFFER_BARRIER_BIT */ -/* reuse GL_TRANSFORM_FEEDBACK_BARRIER_BIT */ -/* reuse GL_ATOMIC_COUNTER_BARRIER_BIT */ -/* reuse GL_ALL_BARRIER_BITS */ -/* reuse GL_MAX_IMAGE_UNITS */ -/* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */ -/* reuse GL_IMAGE_BINDING_NAME */ -/* reuse GL_IMAGE_BINDING_LEVEL */ -/* reuse GL_IMAGE_BINDING_LAYERED */ -/* reuse GL_IMAGE_BINDING_LAYER */ -/* reuse GL_IMAGE_BINDING_ACCESS */ -/* reuse GL_IMAGE_1D */ -/* reuse GL_IMAGE_2D */ -/* reuse GL_IMAGE_3D */ -/* reuse GL_IMAGE_2D_RECT */ -/* reuse GL_IMAGE_CUBE */ -/* reuse GL_IMAGE_BUFFER */ -/* reuse GL_IMAGE_1D_ARRAY */ -/* reuse GL_IMAGE_2D_ARRAY */ -/* reuse GL_IMAGE_CUBE_MAP_ARRAY */ -/* reuse GL_IMAGE_2D_MULTISAMPLE */ -/* reuse GL_IMAGE_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_INT_IMAGE_1D */ -/* reuse GL_INT_IMAGE_2D */ -/* reuse GL_INT_IMAGE_3D */ -/* reuse GL_INT_IMAGE_2D_RECT */ -/* reuse GL_INT_IMAGE_CUBE */ -/* reuse GL_INT_IMAGE_BUFFER */ -/* reuse GL_INT_IMAGE_1D_ARRAY */ -/* reuse GL_INT_IMAGE_2D_ARRAY */ -/* reuse GL_INT_IMAGE_CUBE_MAP_ARRAY */ -/* reuse GL_INT_IMAGE_2D_MULTISAMPLE */ -/* reuse GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_UNSIGNED_INT_IMAGE_1D */ -/* reuse GL_UNSIGNED_INT_IMAGE_2D */ -/* reuse GL_UNSIGNED_INT_IMAGE_3D */ -/* reuse GL_UNSIGNED_INT_IMAGE_2D_RECT */ -/* reuse GL_UNSIGNED_INT_IMAGE_CUBE */ -/* reuse GL_UNSIGNED_INT_IMAGE_BUFFER */ -/* reuse GL_UNSIGNED_INT_IMAGE_1D_ARRAY */ -/* reuse GL_UNSIGNED_INT_IMAGE_2D_ARRAY */ -/* reuse GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY */ -/* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE */ -/* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_MAX_IMAGE_SAMPLES */ -/* reuse GL_IMAGE_BINDING_FORMAT */ -/* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */ -/* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE */ -/* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS */ -/* reuse GL_MAX_VERTEX_IMAGE_UNIFORMS */ -/* reuse GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS */ -/* reuse GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS */ -/* reuse GL_MAX_GEOMETRY_IMAGE_UNIFORMS */ -/* reuse GL_MAX_FRAGMENT_IMAGE_UNIFORMS */ -/* reuse GL_MAX_COMBINED_IMAGE_UNIFORMS */ -/* Reuse tokens from ARB_shading_language_packing (none) */ -/* Reuse tokens from ARB_texture_storage */ -/* reuse GL_TEXTURE_IMMUTABLE_FORMAT */ -#endif - -#ifndef GL_VERSION_4_3 -#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9 -#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E -/* Reuse tokens from ARB_arrays_of_arrays (none, GLSL only) */ -/* Reuse tokens from ARB_fragment_layer_viewport (none, GLSL only) */ -/* Reuse tokens from ARB_shader_image_size (none, GLSL only) */ -/* Reuse tokens from ARB_ES3_compatibility */ -/* reuse GL_COMPRESSED_RGB8_ETC2 */ -/* reuse GL_COMPRESSED_SRGB8_ETC2 */ -/* reuse GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 */ -/* reuse GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 */ -/* reuse GL_COMPRESSED_RGBA8_ETC2_EAC */ -/* reuse GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC */ -/* reuse GL_COMPRESSED_R11_EAC */ -/* reuse GL_COMPRESSED_SIGNED_R11_EAC */ -/* reuse GL_COMPRESSED_RG11_EAC */ -/* reuse GL_COMPRESSED_SIGNED_RG11_EAC */ -/* reuse GL_PRIMITIVE_RESTART_FIXED_INDEX */ -/* reuse GL_ANY_SAMPLES_PASSED_CONSERVATIVE */ -/* reuse GL_MAX_ELEMENT_INDEX */ -/* Reuse tokens from ARB_clear_buffer_object (none) */ -/* Reuse tokens from ARB_compute_shader */ -/* reuse GL_COMPUTE_SHADER */ -/* reuse GL_MAX_COMPUTE_UNIFORM_BLOCKS */ -/* reuse GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS */ -/* reuse GL_MAX_COMPUTE_IMAGE_UNIFORMS */ -/* reuse GL_MAX_COMPUTE_SHARED_MEMORY_SIZE */ -/* reuse GL_MAX_COMPUTE_UNIFORM_COMPONENTS */ -/* reuse GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS */ -/* reuse GL_MAX_COMPUTE_ATOMIC_COUNTERS */ -/* reuse GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS */ -/* reuse GL_MAX_COMPUTE_LOCAL_INVOCATIONS */ -/* reuse GL_MAX_COMPUTE_WORK_GROUP_COUNT */ -/* reuse GL_MAX_COMPUTE_WORK_GROUP_SIZE */ -/* reuse GL_COMPUTE_LOCAL_WORK_SIZE */ -/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER */ -/* reuse GL_DISPATCH_INDIRECT_BUFFER */ -/* reuse GL_DISPATCH_INDIRECT_BUFFER_BINDING */ -/* Reuse tokens from ARB_copy_image (none) */ -/* Reuse tokens from KHR_debug */ -/* reuse GL_DEBUG_OUTPUT_SYNCHRONOUS */ -/* reuse GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH */ -/* reuse GL_DEBUG_CALLBACK_FUNCTION */ -/* reuse GL_DEBUG_CALLBACK_USER_PARAM */ -/* reuse GL_DEBUG_SOURCE_API */ -/* reuse GL_DEBUG_SOURCE_WINDOW_SYSTEM */ -/* reuse GL_DEBUG_SOURCE_SHADER_COMPILER */ -/* reuse GL_DEBUG_SOURCE_THIRD_PARTY */ -/* reuse GL_DEBUG_SOURCE_APPLICATION */ -/* reuse GL_DEBUG_SOURCE_OTHER */ -/* reuse GL_DEBUG_TYPE_ERROR */ -/* reuse GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR */ -/* reuse GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR */ -/* reuse GL_DEBUG_TYPE_PORTABILITY */ -/* reuse GL_DEBUG_TYPE_PERFORMANCE */ -/* reuse GL_DEBUG_TYPE_OTHER */ -/* reuse GL_MAX_DEBUG_MESSAGE_LENGTH */ -/* reuse GL_MAX_DEBUG_LOGGED_MESSAGES */ -/* reuse GL_DEBUG_LOGGED_MESSAGES */ -/* reuse GL_DEBUG_SEVERITY_HIGH */ -/* reuse GL_DEBUG_SEVERITY_MEDIUM */ -/* reuse GL_DEBUG_SEVERITY_LOW */ -/* reuse GL_DEBUG_TYPE_MARKER */ -/* reuse GL_DEBUG_TYPE_PUSH_GROUP */ -/* reuse GL_DEBUG_TYPE_POP_GROUP */ -/* reuse GL_DEBUG_SEVERITY_NOTIFICATION */ -/* reuse GL_MAX_DEBUG_GROUP_STACK_DEPTH */ -/* reuse GL_DEBUG_GROUP_STACK_DEPTH */ -/* reuse GL_BUFFER */ -/* reuse GL_SHADER */ -/* reuse GL_PROGRAM */ -/* reuse GL_QUERY */ -/* reuse GL_PROGRAM_PIPELINE */ -/* reuse GL_SAMPLER */ -/* reuse GL_DISPLAY_LIST */ -/* reuse GL_MAX_LABEL_LENGTH */ -/* reuse GL_DEBUG_OUTPUT */ -/* reuse GL_CONTEXT_FLAG_DEBUG_BIT */ -/* reuse GL_STACK_UNDERFLOW */ -/* reuse GL_STACK_OVERFLOW */ -/* Reuse tokens from ARB_explicit_uniform_location */ -/* reuse GL_MAX_UNIFORM_LOCATIONS */ -/* Reuse tokens from ARB_framebuffer_no_attachments */ -/* reuse GL_FRAMEBUFFER_DEFAULT_WIDTH */ -/* reuse GL_FRAMEBUFFER_DEFAULT_HEIGHT */ -/* reuse GL_FRAMEBUFFER_DEFAULT_LAYERS */ -/* reuse GL_FRAMEBUFFER_DEFAULT_SAMPLES */ -/* reuse GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS */ -/* reuse GL_MAX_FRAMEBUFFER_WIDTH */ -/* reuse GL_MAX_FRAMEBUFFER_HEIGHT */ -/* reuse GL_MAX_FRAMEBUFFER_LAYERS */ -/* reuse GL_MAX_FRAMEBUFFER_SAMPLES */ -/* Reuse tokens from ARB_internalformat_query2 */ -/* reuse GL_INTERNALFORMAT_SUPPORTED */ -/* reuse GL_INTERNALFORMAT_PREFERRED */ -/* reuse GL_INTERNALFORMAT_RED_SIZE */ -/* reuse GL_INTERNALFORMAT_GREEN_SIZE */ -/* reuse GL_INTERNALFORMAT_BLUE_SIZE */ -/* reuse GL_INTERNALFORMAT_ALPHA_SIZE */ -/* reuse GL_INTERNALFORMAT_DEPTH_SIZE */ -/* reuse GL_INTERNALFORMAT_STENCIL_SIZE */ -/* reuse GL_INTERNALFORMAT_SHARED_SIZE */ -/* reuse GL_INTERNALFORMAT_RED_TYPE */ -/* reuse GL_INTERNALFORMAT_GREEN_TYPE */ -/* reuse GL_INTERNALFORMAT_BLUE_TYPE */ -/* reuse GL_INTERNALFORMAT_ALPHA_TYPE */ -/* reuse GL_INTERNALFORMAT_DEPTH_TYPE */ -/* reuse GL_INTERNALFORMAT_STENCIL_TYPE */ -/* reuse GL_MAX_WIDTH */ -/* reuse GL_MAX_HEIGHT */ -/* reuse GL_MAX_DEPTH */ -/* reuse GL_MAX_LAYERS */ -/* reuse GL_MAX_COMBINED_DIMENSIONS */ -/* reuse GL_COLOR_COMPONENTS */ -/* reuse GL_DEPTH_COMPONENTS */ -/* reuse GL_STENCIL_COMPONENTS */ -/* reuse GL_COLOR_RENDERABLE */ -/* reuse GL_DEPTH_RENDERABLE */ -/* reuse GL_STENCIL_RENDERABLE */ -/* reuse GL_FRAMEBUFFER_RENDERABLE */ -/* reuse GL_FRAMEBUFFER_RENDERABLE_LAYERED */ -/* reuse GL_FRAMEBUFFER_BLEND */ -/* reuse GL_READ_PIXELS */ -/* reuse GL_READ_PIXELS_FORMAT */ -/* reuse GL_READ_PIXELS_TYPE */ -/* reuse GL_TEXTURE_IMAGE_FORMAT */ -/* reuse GL_TEXTURE_IMAGE_TYPE */ -/* reuse GL_GET_TEXTURE_IMAGE_FORMAT */ -/* reuse GL_GET_TEXTURE_IMAGE_TYPE */ -/* reuse GL_MIPMAP */ -/* reuse GL_MANUAL_GENERATE_MIPMAP */ -/* reuse GL_AUTO_GENERATE_MIPMAP */ -/* reuse GL_COLOR_ENCODING */ -/* reuse GL_SRGB_READ */ -/* reuse GL_SRGB_WRITE */ -/* reuse GL_FILTER */ -/* reuse GL_VERTEX_TEXTURE */ -/* reuse GL_TESS_CONTROL_TEXTURE */ -/* reuse GL_TESS_EVALUATION_TEXTURE */ -/* reuse GL_GEOMETRY_TEXTURE */ -/* reuse GL_FRAGMENT_TEXTURE */ -/* reuse GL_COMPUTE_TEXTURE */ -/* reuse GL_TEXTURE_SHADOW */ -/* reuse GL_TEXTURE_GATHER */ -/* reuse GL_TEXTURE_GATHER_SHADOW */ -/* reuse GL_SHADER_IMAGE_LOAD */ -/* reuse GL_SHADER_IMAGE_STORE */ -/* reuse GL_SHADER_IMAGE_ATOMIC */ -/* reuse GL_IMAGE_TEXEL_SIZE */ -/* reuse GL_IMAGE_COMPATIBILITY_CLASS */ -/* reuse GL_IMAGE_PIXEL_FORMAT */ -/* reuse GL_IMAGE_PIXEL_TYPE */ -/* reuse GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST */ -/* reuse GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST */ -/* reuse GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE */ -/* reuse GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE */ -/* reuse GL_TEXTURE_COMPRESSED_BLOCK_WIDTH */ -/* reuse GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT */ -/* reuse GL_TEXTURE_COMPRESSED_BLOCK_SIZE */ -/* reuse GL_CLEAR_BUFFER */ -/* reuse GL_TEXTURE_VIEW */ -/* reuse GL_VIEW_COMPATIBILITY_CLASS */ -/* reuse GL_FULL_SUPPORT */ -/* reuse GL_CAVEAT_SUPPORT */ -/* reuse GL_IMAGE_CLASS_4_X_32 */ -/* reuse GL_IMAGE_CLASS_2_X_32 */ -/* reuse GL_IMAGE_CLASS_1_X_32 */ -/* reuse GL_IMAGE_CLASS_4_X_16 */ -/* reuse GL_IMAGE_CLASS_2_X_16 */ -/* reuse GL_IMAGE_CLASS_1_X_16 */ -/* reuse GL_IMAGE_CLASS_4_X_8 */ -/* reuse GL_IMAGE_CLASS_2_X_8 */ -/* reuse GL_IMAGE_CLASS_1_X_8 */ -/* reuse GL_IMAGE_CLASS_11_11_10 */ -/* reuse GL_IMAGE_CLASS_10_10_10_2 */ -/* reuse GL_VIEW_CLASS_128_BITS */ -/* reuse GL_VIEW_CLASS_96_BITS */ -/* reuse GL_VIEW_CLASS_64_BITS */ -/* reuse GL_VIEW_CLASS_48_BITS */ -/* reuse GL_VIEW_CLASS_32_BITS */ -/* reuse GL_VIEW_CLASS_24_BITS */ -/* reuse GL_VIEW_CLASS_16_BITS */ -/* reuse GL_VIEW_CLASS_8_BITS */ -/* reuse GL_VIEW_CLASS_S3TC_DXT1_RGB */ -/* reuse GL_VIEW_CLASS_S3TC_DXT1_RGBA */ -/* reuse GL_VIEW_CLASS_S3TC_DXT3_RGBA */ -/* reuse GL_VIEW_CLASS_S3TC_DXT5_RGBA */ -/* reuse GL_VIEW_CLASS_RGTC1_RED */ -/* reuse GL_VIEW_CLASS_RGTC2_RG */ -/* reuse GL_VIEW_CLASS_BPTC_UNORM */ -/* reuse GL_VIEW_CLASS_BPTC_FLOAT */ -/* Reuse tokens from ARB_invalidate_subdata (none) */ -/* Reuse tokens from ARB_multi_draw_indirect (none) */ -/* Reuse tokens from ARB_program_interface_query */ -/* reuse GL_UNIFORM */ -/* reuse GL_UNIFORM_BLOCK */ -/* reuse GL_PROGRAM_INPUT */ -/* reuse GL_PROGRAM_OUTPUT */ -/* reuse GL_BUFFER_VARIABLE */ -/* reuse GL_SHADER_STORAGE_BLOCK */ -/* reuse GL_VERTEX_SUBROUTINE */ -/* reuse GL_TESS_CONTROL_SUBROUTINE */ -/* reuse GL_TESS_EVALUATION_SUBROUTINE */ -/* reuse GL_GEOMETRY_SUBROUTINE */ -/* reuse GL_FRAGMENT_SUBROUTINE */ -/* reuse GL_COMPUTE_SUBROUTINE */ -/* reuse GL_VERTEX_SUBROUTINE_UNIFORM */ -/* reuse GL_TESS_CONTROL_SUBROUTINE_UNIFORM */ -/* reuse GL_TESS_EVALUATION_SUBROUTINE_UNIFORM */ -/* reuse GL_GEOMETRY_SUBROUTINE_UNIFORM */ -/* reuse GL_FRAGMENT_SUBROUTINE_UNIFORM */ -/* reuse GL_COMPUTE_SUBROUTINE_UNIFORM */ -/* reuse GL_TRANSFORM_FEEDBACK_VARYING */ -/* reuse GL_ACTIVE_RESOURCES */ -/* reuse GL_MAX_NAME_LENGTH */ -/* reuse GL_MAX_NUM_ACTIVE_VARIABLES */ -/* reuse GL_MAX_NUM_COMPATIBLE_SUBROUTINES */ -/* reuse GL_NAME_LENGTH */ -/* reuse GL_TYPE */ -/* reuse GL_ARRAY_SIZE */ -/* reuse GL_OFFSET */ -/* reuse GL_BLOCK_INDEX */ -/* reuse GL_ARRAY_STRIDE */ -/* reuse GL_MATRIX_STRIDE */ -/* reuse GL_IS_ROW_MAJOR */ -/* reuse GL_ATOMIC_COUNTER_BUFFER_INDEX */ -/* reuse GL_BUFFER_BINDING */ -/* reuse GL_BUFFER_DATA_SIZE */ -/* reuse GL_NUM_ACTIVE_VARIABLES */ -/* reuse GL_ACTIVE_VARIABLES */ -/* reuse GL_REFERENCED_BY_VERTEX_SHADER */ -/* reuse GL_REFERENCED_BY_TESS_CONTROL_SHADER */ -/* reuse GL_REFERENCED_BY_TESS_EVALUATION_SHADER */ -/* reuse GL_REFERENCED_BY_GEOMETRY_SHADER */ -/* reuse GL_REFERENCED_BY_FRAGMENT_SHADER */ -/* reuse GL_REFERENCED_BY_COMPUTE_SHADER */ -/* reuse GL_TOP_LEVEL_ARRAY_SIZE */ -/* reuse GL_TOP_LEVEL_ARRAY_STRIDE */ -/* reuse GL_LOCATION */ -/* reuse GL_LOCATION_INDEX */ -/* reuse GL_IS_PER_PATCH */ -/* Reuse tokens from ARB_robust_buffer_access_behavior (none) */ -/* Reuse tokens from ARB_shader_storage_buffer_object */ -/* reuse GL_SHADER_STORAGE_BUFFER */ -/* reuse GL_SHADER_STORAGE_BUFFER_BINDING */ -/* reuse GL_SHADER_STORAGE_BUFFER_START */ -/* reuse GL_SHADER_STORAGE_BUFFER_SIZE */ -/* reuse GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS */ -/* reuse GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS */ -/* reuse GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS */ -/* reuse GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS */ -/* reuse GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS */ -/* reuse GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS */ -/* reuse GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS */ -/* reuse GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS */ -/* reuse GL_MAX_SHADER_STORAGE_BLOCK_SIZE */ -/* reuse GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT */ -/* reuse GL_SHADER_STORAGE_BARRIER_BIT */ -/* reuse GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES */ -/* Reuse tokens from ARB_stencil_texturing */ -/* reuse GL_DEPTH_STENCIL_TEXTURE_MODE */ -/* Reuse tokens from ARB_texture_buffer_range */ -/* reuse GL_TEXTURE_BUFFER_OFFSET */ -/* reuse GL_TEXTURE_BUFFER_SIZE */ -/* reuse GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT */ -/* Reuse tokens from ARB_texture_query_levels (none) */ -/* Reuse tokens from ARB_texture_storage_multisample (none) */ -/* Reuse tokens from ARB_texture_view */ -/* reuse GL_TEXTURE_VIEW_MIN_LEVEL */ -/* reuse GL_TEXTURE_VIEW_NUM_LEVELS */ -/* reuse GL_TEXTURE_VIEW_MIN_LAYER */ -/* reuse GL_TEXTURE_VIEW_NUM_LAYERS */ -/* reuse GL_TEXTURE_IMMUTABLE_LEVELS */ -/* Reuse tokens from ARB_vertex_attrib_binding */ -/* reuse GL_VERTEX_ATTRIB_BINDING */ -/* reuse GL_VERTEX_ATTRIB_RELATIVE_OFFSET */ -/* reuse GL_VERTEX_BINDING_DIVISOR */ -/* reuse GL_VERTEX_BINDING_OFFSET */ -/* reuse GL_VERTEX_BINDING_STRIDE */ -/* reuse GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET */ -/* reuse GL_MAX_VERTEX_ATTRIB_BINDINGS */ -#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_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_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_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_DEPTH_TYPE 0x8C16 -#define GL_UNSIGNED_NORMALIZED 0x8C17 -#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_half_float_vertex -#define GL_HALF_FLOAT 0x140B -#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_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_ARB_uniform_buffer_object -#define GL_UNIFORM_BUFFER 0x8A11 -#define GL_UNIFORM_BUFFER_BINDING 0x8A28 -#define GL_UNIFORM_BUFFER_START 0x8A29 -#define GL_UNIFORM_BUFFER_SIZE 0x8A2A -#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B -#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C -#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D -#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E -#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F -#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30 -#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31 -#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32 -#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33 -#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34 -#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35 -#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36 -#define GL_UNIFORM_TYPE 0x8A37 -#define GL_UNIFORM_SIZE 0x8A38 -#define GL_UNIFORM_NAME_LENGTH 0x8A39 -#define GL_UNIFORM_BLOCK_INDEX 0x8A3A -#define GL_UNIFORM_OFFSET 0x8A3B -#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C -#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D -#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E -#define GL_UNIFORM_BLOCK_BINDING 0x8A3F -#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40 -#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42 -#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46 -#define GL_INVALID_INDEX 0xFFFFFFFFu -#endif - -#ifndef GL_ARB_copy_buffer -#define GL_COPY_READ_BUFFER_BINDING 0x8F36 -#define GL_COPY_READ_BUFFER GL_COPY_READ_BUFFER_BINDING -#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37 -#define GL_COPY_WRITE_BUFFER GL_COPY_WRITE_BUFFER_BINDING -#endif - -#ifndef GL_ARB_depth_clamp -#define GL_DEPTH_CLAMP 0x864F -#endif - -#ifndef GL_ARB_draw_elements_base_vertex -#endif - -#ifndef GL_ARB_fragment_coord_conventions -#endif - -#ifndef GL_ARB_provoking_vertex -#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C -#define GL_FIRST_VERTEX_CONVENTION 0x8E4D -#define GL_LAST_VERTEX_CONVENTION 0x8E4E -#define GL_PROVOKING_VERTEX 0x8E4F -#endif - -#ifndef GL_ARB_seamless_cube_map -#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F -#endif - -#ifndef GL_ARB_sync -#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111 -#define GL_OBJECT_TYPE 0x9112 -#define GL_SYNC_CONDITION 0x9113 -#define GL_SYNC_STATUS 0x9114 -#define GL_SYNC_FLAGS 0x9115 -#define GL_SYNC_FENCE 0x9116 -#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 -#define GL_UNSIGNALED 0x9118 -#define GL_SIGNALED 0x9119 -#define GL_ALREADY_SIGNALED 0x911A -#define GL_TIMEOUT_EXPIRED 0x911B -#define GL_CONDITION_SATISFIED 0x911C -#define GL_WAIT_FAILED 0x911D -#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 -#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull -#endif - -#ifndef GL_ARB_texture_multisample -#define GL_SAMPLE_POSITION 0x8E50 -#define GL_SAMPLE_MASK 0x8E51 -#define GL_SAMPLE_MASK_VALUE 0x8E52 -#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59 -#define GL_TEXTURE_2D_MULTISAMPLE 0x9100 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101 -#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102 -#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104 -#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105 -#define GL_TEXTURE_SAMPLES 0x9106 -#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107 -#define GL_SAMPLER_2D_MULTISAMPLE 0x9108 -#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109 -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A -#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B -#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C -#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D -#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E -#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F -#define GL_MAX_INTEGER_SAMPLES 0x9110 -#endif - -#ifndef GL_ARB_vertex_array_bgra -/* reuse GL_BGRA */ -#endif - -#ifndef GL_ARB_draw_buffers_blend -#endif - -#ifndef GL_ARB_sample_shading -#define GL_SAMPLE_SHADING_ARB 0x8C36 -#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37 -#endif - -#ifndef GL_ARB_texture_cube_map_array -#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009 -#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A -#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B -#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C -#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D -#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E -#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F -#endif - -#ifndef GL_ARB_texture_gather -#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E -#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F -#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F -#endif - -#ifndef GL_ARB_texture_query_lod -#endif - -#ifndef GL_ARB_shading_language_include -#define GL_SHADER_INCLUDE_ARB 0x8DAE -#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9 -#define GL_NAMED_STRING_TYPE_ARB 0x8DEA -#endif - -#ifndef GL_ARB_texture_compression_bptc -#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C -#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D -#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E -#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F -#endif - -#ifndef GL_ARB_blend_func_extended -#define GL_SRC1_COLOR 0x88F9 -/* reuse GL_SRC1_ALPHA */ -#define GL_ONE_MINUS_SRC1_COLOR 0x88FA -#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB -#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC -#endif - -#ifndef GL_ARB_explicit_attrib_location -#endif - -#ifndef GL_ARB_occlusion_query2 -#define GL_ANY_SAMPLES_PASSED 0x8C2F -#endif - -#ifndef GL_ARB_sampler_objects -#define GL_SAMPLER_BINDING 0x8919 -#endif - -#ifndef GL_ARB_shader_bit_encoding -#endif - -#ifndef GL_ARB_texture_rgb10_a2ui -#define GL_RGB10_A2UI 0x906F -#endif - -#ifndef GL_ARB_texture_swizzle -#define GL_TEXTURE_SWIZZLE_R 0x8E42 -#define GL_TEXTURE_SWIZZLE_G 0x8E43 -#define GL_TEXTURE_SWIZZLE_B 0x8E44 -#define GL_TEXTURE_SWIZZLE_A 0x8E45 -#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 -#endif - -#ifndef GL_ARB_timer_query -#define GL_TIME_ELAPSED 0x88BF -#define GL_TIMESTAMP 0x8E28 -#endif - -#ifndef GL_ARB_vertex_type_2_10_10_10_rev -/* reuse GL_UNSIGNED_INT_2_10_10_10_REV */ -#define GL_INT_2_10_10_10_REV 0x8D9F -#endif - -#ifndef GL_ARB_draw_indirect -#define GL_DRAW_INDIRECT_BUFFER 0x8F3F -#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43 -#endif - -#ifndef GL_ARB_gpu_shader5 -#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F -#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A -#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B -#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C -#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D -/* reuse GL_MAX_VERTEX_STREAMS */ -#endif - -#ifndef GL_ARB_gpu_shader_fp64 -/* reuse GL_DOUBLE */ -#define GL_DOUBLE_VEC2 0x8FFC -#define GL_DOUBLE_VEC3 0x8FFD -#define GL_DOUBLE_VEC4 0x8FFE -#define GL_DOUBLE_MAT2 0x8F46 -#define GL_DOUBLE_MAT3 0x8F47 -#define GL_DOUBLE_MAT4 0x8F48 -#define GL_DOUBLE_MAT2x3 0x8F49 -#define GL_DOUBLE_MAT2x4 0x8F4A -#define GL_DOUBLE_MAT3x2 0x8F4B -#define GL_DOUBLE_MAT3x4 0x8F4C -#define GL_DOUBLE_MAT4x2 0x8F4D -#define GL_DOUBLE_MAT4x3 0x8F4E -#endif - -#ifndef GL_ARB_shader_subroutine -#define GL_ACTIVE_SUBROUTINES 0x8DE5 -#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6 -#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47 -#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48 -#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49 -#define GL_MAX_SUBROUTINES 0x8DE7 -#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8 -#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A -#define GL_COMPATIBLE_SUBROUTINES 0x8E4B -/* reuse GL_UNIFORM_SIZE */ -/* reuse GL_UNIFORM_NAME_LENGTH */ -#endif - -#ifndef GL_ARB_tessellation_shader -#define GL_PATCHES 0x000E -#define GL_PATCH_VERTICES 0x8E72 -#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73 -#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74 -#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75 -#define GL_TESS_GEN_MODE 0x8E76 -#define GL_TESS_GEN_SPACING 0x8E77 -#define GL_TESS_GEN_VERTEX_ORDER 0x8E78 -#define GL_TESS_GEN_POINT_MODE 0x8E79 -/* reuse GL_TRIANGLES */ -/* reuse GL_QUADS */ -#define GL_ISOLINES 0x8E7A -/* reuse GL_EQUAL */ -#define GL_FRACTIONAL_ODD 0x8E7B -#define GL_FRACTIONAL_EVEN 0x8E7C -/* reuse GL_CCW */ -/* reuse GL_CW */ -#define GL_MAX_PATCH_VERTICES 0x8E7D -#define GL_MAX_TESS_GEN_LEVEL 0x8E7E -#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F -#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80 -#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81 -#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82 -#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83 -#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84 -#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85 -#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86 -#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89 -#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A -#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C -#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D -#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E -#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F -#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1 -#define GL_TESS_EVALUATION_SHADER 0x8E87 -#define GL_TESS_CONTROL_SHADER 0x8E88 -#endif - -#ifndef GL_ARB_texture_buffer_object_rgb32 -/* reuse GL_RGB32F */ -/* reuse GL_RGB32UI */ -/* reuse GL_RGB32I */ -#endif - -#ifndef GL_ARB_transform_feedback2 -#define GL_TRANSFORM_FEEDBACK 0x8E22 -#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23 -#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED GL_TRANSFORM_FEEDBACK_PAUSED -#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24 -#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE GL_TRANSFORM_FEEDBACK_ACTIVE -#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25 -#endif - -#ifndef GL_ARB_transform_feedback3 -#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70 -#define GL_MAX_VERTEX_STREAMS 0x8E71 -#endif - -#ifndef GL_ARB_ES2_compatibility -#define GL_FIXED 0x140C -#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B -#define GL_LOW_FLOAT 0x8DF0 -#define GL_MEDIUM_FLOAT 0x8DF1 -#define GL_HIGH_FLOAT 0x8DF2 -#define GL_LOW_INT 0x8DF3 -#define GL_MEDIUM_INT 0x8DF4 -#define GL_HIGH_INT 0x8DF5 -#define GL_SHADER_COMPILER 0x8DFA -#define GL_SHADER_BINARY_FORMATS 0x8DF8 -#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9 -#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB -#define GL_MAX_VARYING_VECTORS 0x8DFC -#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD -#define GL_RGB565 0x8D62 -#endif - -#ifndef GL_ARB_get_program_binary -#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257 -#define GL_PROGRAM_BINARY_LENGTH 0x8741 -#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE -#define GL_PROGRAM_BINARY_FORMATS 0x87FF -#endif - -#ifndef GL_ARB_separate_shader_objects -#define GL_VERTEX_SHADER_BIT 0x00000001 -#define GL_FRAGMENT_SHADER_BIT 0x00000002 -#define GL_GEOMETRY_SHADER_BIT 0x00000004 -#define GL_TESS_CONTROL_SHADER_BIT 0x00000008 -#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010 -#define GL_ALL_SHADER_BITS 0xFFFFFFFF -#define GL_PROGRAM_SEPARABLE 0x8258 -#define GL_ACTIVE_PROGRAM 0x8259 -#define GL_PROGRAM_PIPELINE_BINDING 0x825A -#endif - -#ifndef GL_ARB_shader_precision -#endif - -#ifndef GL_ARB_vertex_attrib_64bit -/* reuse GL_RGB32I */ -/* reuse GL_DOUBLE_VEC2 */ -/* reuse GL_DOUBLE_VEC3 */ -/* reuse GL_DOUBLE_VEC4 */ -/* reuse GL_DOUBLE_MAT2 */ -/* reuse GL_DOUBLE_MAT3 */ -/* reuse GL_DOUBLE_MAT4 */ -/* reuse GL_DOUBLE_MAT2x3 */ -/* reuse GL_DOUBLE_MAT2x4 */ -/* reuse GL_DOUBLE_MAT3x2 */ -/* reuse GL_DOUBLE_MAT3x4 */ -/* reuse GL_DOUBLE_MAT4x2 */ -/* reuse GL_DOUBLE_MAT4x3 */ -#endif - -#ifndef GL_ARB_viewport_array -/* reuse GL_SCISSOR_BOX */ -/* reuse GL_VIEWPORT */ -/* reuse GL_DEPTH_RANGE */ -/* reuse GL_SCISSOR_TEST */ -#define GL_MAX_VIEWPORTS 0x825B -#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C -#define GL_VIEWPORT_BOUNDS_RANGE 0x825D -#define GL_LAYER_PROVOKING_VERTEX 0x825E -#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F -#define GL_UNDEFINED_VERTEX 0x8260 -/* reuse GL_FIRST_VERTEX_CONVENTION */ -/* reuse GL_LAST_VERTEX_CONVENTION */ -/* reuse GL_PROVOKING_VERTEX */ -#endif - -#ifndef GL_ARB_cl_event -#define GL_SYNC_CL_EVENT_ARB 0x8240 -#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241 -#endif - -#ifndef GL_ARB_debug_output -#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242 -#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243 -#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244 -#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245 -#define GL_DEBUG_SOURCE_API_ARB 0x8246 -#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247 -#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248 -#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249 -#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A -#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B -#define GL_DEBUG_TYPE_ERROR_ARB 0x824C -#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D -#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E -#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F -#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250 -#define GL_DEBUG_TYPE_OTHER_ARB 0x8251 -#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145 -#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147 -#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148 -#endif - -#ifndef GL_ARB_robustness -/* reuse GL_NO_ERROR */ -#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004 -#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 -#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253 -#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254 -#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255 -#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 -#define GL_NO_RESET_NOTIFICATION_ARB 0x8261 -#endif - -#ifndef GL_ARB_shader_stencil_export -#endif - -#ifndef GL_ARB_base_instance -#endif - -#ifndef GL_ARB_shading_language_420pack -#endif - -#ifndef GL_ARB_transform_feedback_instanced -#endif - -#ifndef GL_ARB_compressed_texture_pixel_storage -#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127 -#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128 -#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129 -#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A -#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B -#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C -#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D -#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E -#endif - -#ifndef GL_ARB_conservative_depth -#endif - -#ifndef GL_ARB_internalformat_query -#define GL_NUM_SAMPLE_COUNTS 0x9380 -#endif - -#ifndef GL_ARB_map_buffer_alignment -#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC -#endif - -#ifndef GL_ARB_shader_atomic_counters -#define GL_ATOMIC_COUNTER_BUFFER 0x92C0 -#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1 -#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2 -#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3 -#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4 -#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5 -#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9 -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB -#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE -#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF -#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0 -#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1 -#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2 -#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3 -#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4 -#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5 -#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6 -#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7 -#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8 -#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC -#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9 -#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA -#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB -#endif - -#ifndef GL_ARB_shader_image_load_store -#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001 -#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002 -#define GL_UNIFORM_BARRIER_BIT 0x00000004 -#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008 -#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020 -#define GL_COMMAND_BARRIER_BIT 0x00000040 -#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080 -#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100 -#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200 -#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400 -#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800 -#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000 -#define GL_ALL_BARRIER_BITS 0xFFFFFFFF -#define GL_MAX_IMAGE_UNITS 0x8F38 -#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39 -#define GL_IMAGE_BINDING_NAME 0x8F3A -#define GL_IMAGE_BINDING_LEVEL 0x8F3B -#define GL_IMAGE_BINDING_LAYERED 0x8F3C -#define GL_IMAGE_BINDING_LAYER 0x8F3D -#define GL_IMAGE_BINDING_ACCESS 0x8F3E -#define GL_IMAGE_1D 0x904C -#define GL_IMAGE_2D 0x904D -#define GL_IMAGE_3D 0x904E -#define GL_IMAGE_2D_RECT 0x904F -#define GL_IMAGE_CUBE 0x9050 -#define GL_IMAGE_BUFFER 0x9051 -#define GL_IMAGE_1D_ARRAY 0x9052 -#define GL_IMAGE_2D_ARRAY 0x9053 -#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054 -#define GL_IMAGE_2D_MULTISAMPLE 0x9055 -#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056 -#define GL_INT_IMAGE_1D 0x9057 -#define GL_INT_IMAGE_2D 0x9058 -#define GL_INT_IMAGE_3D 0x9059 -#define GL_INT_IMAGE_2D_RECT 0x905A -#define GL_INT_IMAGE_CUBE 0x905B -#define GL_INT_IMAGE_BUFFER 0x905C -#define GL_INT_IMAGE_1D_ARRAY 0x905D -#define GL_INT_IMAGE_2D_ARRAY 0x905E -#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F -#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060 -#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061 -#define GL_UNSIGNED_INT_IMAGE_1D 0x9062 -#define GL_UNSIGNED_INT_IMAGE_2D 0x9063 -#define GL_UNSIGNED_INT_IMAGE_3D 0x9064 -#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065 -#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066 -#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067 -#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068 -#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069 -#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B -#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C -#define GL_MAX_IMAGE_SAMPLES 0x906D -#define GL_IMAGE_BINDING_FORMAT 0x906E -#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7 -#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8 -#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9 -#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA -#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB -#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC -#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD -#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE -#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF -#endif - -#ifndef GL_ARB_shading_language_packing -#endif - -#ifndef GL_ARB_texture_storage -#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F -#endif - -#ifndef GL_KHR_texture_compression_astc_ldr -#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0 -#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1 -#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2 -#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3 -#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4 -#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5 -#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6 -#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7 -#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8 -#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9 -#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA -#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB -#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC -#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9 -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC -#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD -#endif - -#ifndef GL_KHR_debug -#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242 -#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243 -#define GL_DEBUG_CALLBACK_FUNCTION 0x8244 -#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245 -#define GL_DEBUG_SOURCE_API 0x8246 -#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247 -#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248 -#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249 -#define GL_DEBUG_SOURCE_APPLICATION 0x824A -#define GL_DEBUG_SOURCE_OTHER 0x824B -#define GL_DEBUG_TYPE_ERROR 0x824C -#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D -#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E -#define GL_DEBUG_TYPE_PORTABILITY 0x824F -#define GL_DEBUG_TYPE_PERFORMANCE 0x8250 -#define GL_DEBUG_TYPE_OTHER 0x8251 -#define GL_DEBUG_TYPE_MARKER 0x8268 -#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269 -#define GL_DEBUG_TYPE_POP_GROUP 0x826A -#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B -#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C -#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D -#define GL_BUFFER 0x82E0 -#define GL_SHADER 0x82E1 -#define GL_PROGRAM 0x82E2 -#define GL_QUERY 0x82E3 -#define GL_PROGRAM_PIPELINE 0x82E4 -#define GL_SAMPLER 0x82E6 -#define GL_DISPLAY_LIST 0x82E7 -/* DISPLAY_LIST used in compatibility profile only */ -#define GL_MAX_LABEL_LENGTH 0x82E8 -#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143 -#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144 -#define GL_DEBUG_LOGGED_MESSAGES 0x9145 -#define GL_DEBUG_SEVERITY_HIGH 0x9146 -#define GL_DEBUG_SEVERITY_MEDIUM 0x9147 -#define GL_DEBUG_SEVERITY_LOW 0x9148 -#define GL_DEBUG_OUTPUT 0x92E0 -#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 -/* reuse GL_STACK_UNDERFLOW */ -/* reuse GL_STACK_OVERFLOW */ -#endif - -#ifndef GL_ARB_arrays_of_arrays -#endif - -#ifndef GL_ARB_clear_buffer_object -#endif - -#ifndef GL_ARB_compute_shader -#define GL_COMPUTE_SHADER 0x91B9 -#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB -#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC -#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD -#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262 -#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263 -#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264 -#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265 -#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266 -#define GL_MAX_COMPUTE_LOCAL_INVOCATIONS 0x90EB -#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE -#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF -#define GL_COMPUTE_LOCAL_WORK_SIZE 0x8267 -#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC -#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED -#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE -#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF -#define GL_COMPUTE_SHADER_BIT 0x00000020 -#endif - -#ifndef GL_ARB_copy_image -#endif - -#ifndef GL_ARB_texture_view -#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB -#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC -#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD -#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE -#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF -#endif - -#ifndef GL_ARB_vertex_attrib_binding -#define GL_VERTEX_ATTRIB_BINDING 0x82D4 -#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5 -#define GL_VERTEX_BINDING_DIVISOR 0x82D6 -#define GL_VERTEX_BINDING_OFFSET 0x82D7 -#define GL_VERTEX_BINDING_STRIDE 0x82D8 -#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9 -#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA -#endif - -#ifndef GL_ARB_robustness_isolation -#endif - -#ifndef GL_ARB_ES3_compatibility -#define GL_COMPRESSED_RGB8_ETC2 0x9274 -#define GL_COMPRESSED_SRGB8_ETC2 0x9275 -#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276 -#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277 -#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278 -#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279 -#define GL_COMPRESSED_R11_EAC 0x9270 -#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271 -#define GL_COMPRESSED_RG11_EAC 0x9272 -#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273 -#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69 -#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A -#define GL_MAX_ELEMENT_INDEX 0x8D6B -#endif - -#ifndef GL_ARB_explicit_uniform_location -#define GL_MAX_UNIFORM_LOCATIONS 0x826E -#endif - -#ifndef GL_ARB_fragment_layer_viewport -#endif - -#ifndef GL_ARB_framebuffer_no_attachments -#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310 -#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311 -#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312 -#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313 -#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314 -#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315 -#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316 -#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317 -#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318 -#endif - -#ifndef GL_ARB_internalformat_query2 -/* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */ -/* reuse GL_NUM_SAMPLE_COUNTS */ -/* reuse GL_RENDERBUFFER */ -/* reuse GL_SAMPLES */ -/* reuse GL_TEXTURE_1D */ -/* reuse GL_TEXTURE_1D_ARRAY */ -/* reuse GL_TEXTURE_2D */ -/* reuse GL_TEXTURE_2D_ARRAY */ -/* reuse GL_TEXTURE_3D */ -/* reuse GL_TEXTURE_CUBE_MAP */ -/* reuse GL_TEXTURE_CUBE_MAP_ARRAY */ -/* reuse GL_TEXTURE_RECTANGLE */ -/* reuse GL_TEXTURE_BUFFER */ -/* reuse GL_TEXTURE_2D_MULTISAMPLE */ -/* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */ -/* reuse GL_TEXTURE_COMPRESSED */ -#define GL_INTERNALFORMAT_SUPPORTED 0x826F -#define GL_INTERNALFORMAT_PREFERRED 0x8270 -#define GL_INTERNALFORMAT_RED_SIZE 0x8271 -#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272 -#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273 -#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274 -#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275 -#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276 -#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277 -#define GL_INTERNALFORMAT_RED_TYPE 0x8278 -#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279 -#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A -#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B -#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C -#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D -#define GL_MAX_WIDTH 0x827E -#define GL_MAX_HEIGHT 0x827F -#define GL_MAX_DEPTH 0x8280 -#define GL_MAX_LAYERS 0x8281 -#define GL_MAX_COMBINED_DIMENSIONS 0x8282 -#define GL_COLOR_COMPONENTS 0x8283 -#define GL_DEPTH_COMPONENTS 0x8284 -#define GL_STENCIL_COMPONENTS 0x8285 -#define GL_COLOR_RENDERABLE 0x8286 -#define GL_DEPTH_RENDERABLE 0x8287 -#define GL_STENCIL_RENDERABLE 0x8288 -#define GL_FRAMEBUFFER_RENDERABLE 0x8289 -#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A -#define GL_FRAMEBUFFER_BLEND 0x828B -#define GL_READ_PIXELS 0x828C -#define GL_READ_PIXELS_FORMAT 0x828D -#define GL_READ_PIXELS_TYPE 0x828E -#define GL_TEXTURE_IMAGE_FORMAT 0x828F -#define GL_TEXTURE_IMAGE_TYPE 0x8290 -#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291 -#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292 -#define GL_MIPMAP 0x8293 -#define GL_MANUAL_GENERATE_MIPMAP 0x8294 -#define GL_AUTO_GENERATE_MIPMAP 0x8295 -#define GL_COLOR_ENCODING 0x8296 -#define GL_SRGB_READ 0x8297 -#define GL_SRGB_WRITE 0x8298 -#define GL_SRGB_DECODE_ARB 0x8299 -#define GL_FILTER 0x829A -#define GL_VERTEX_TEXTURE 0x829B -#define GL_TESS_CONTROL_TEXTURE 0x829C -#define GL_TESS_EVALUATION_TEXTURE 0x829D -#define GL_GEOMETRY_TEXTURE 0x829E -#define GL_FRAGMENT_TEXTURE 0x829F -#define GL_COMPUTE_TEXTURE 0x82A0 -#define GL_TEXTURE_SHADOW 0x82A1 -#define GL_TEXTURE_GATHER 0x82A2 -#define GL_TEXTURE_GATHER_SHADOW 0x82A3 -#define GL_SHADER_IMAGE_LOAD 0x82A4 -#define GL_SHADER_IMAGE_STORE 0x82A5 -#define GL_SHADER_IMAGE_ATOMIC 0x82A6 -#define GL_IMAGE_TEXEL_SIZE 0x82A7 -#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8 -#define GL_IMAGE_PIXEL_FORMAT 0x82A9 -#define GL_IMAGE_PIXEL_TYPE 0x82AA -#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC -#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD -#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE -#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF -#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1 -#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2 -#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3 -#define GL_CLEAR_BUFFER 0x82B4 -#define GL_TEXTURE_VIEW 0x82B5 -#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6 -#define GL_FULL_SUPPORT 0x82B7 -#define GL_CAVEAT_SUPPORT 0x82B8 -#define GL_IMAGE_CLASS_4_X_32 0x82B9 -#define GL_IMAGE_CLASS_2_X_32 0x82BA -#define GL_IMAGE_CLASS_1_X_32 0x82BB -#define GL_IMAGE_CLASS_4_X_16 0x82BC -#define GL_IMAGE_CLASS_2_X_16 0x82BD -#define GL_IMAGE_CLASS_1_X_16 0x82BE -#define GL_IMAGE_CLASS_4_X_8 0x82BF -#define GL_IMAGE_CLASS_2_X_8 0x82C0 -#define GL_IMAGE_CLASS_1_X_8 0x82C1 -#define GL_IMAGE_CLASS_11_11_10 0x82C2 -#define GL_IMAGE_CLASS_10_10_10_2 0x82C3 -#define GL_VIEW_CLASS_128_BITS 0x82C4 -#define GL_VIEW_CLASS_96_BITS 0x82C5 -#define GL_VIEW_CLASS_64_BITS 0x82C6 -#define GL_VIEW_CLASS_48_BITS 0x82C7 -#define GL_VIEW_CLASS_32_BITS 0x82C8 -#define GL_VIEW_CLASS_24_BITS 0x82C9 -#define GL_VIEW_CLASS_16_BITS 0x82CA -#define GL_VIEW_CLASS_8_BITS 0x82CB -#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC -#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD -#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE -#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF -#define GL_VIEW_CLASS_RGTC1_RED 0x82D0 -#define GL_VIEW_CLASS_RGTC2_RG 0x82D1 -#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2 -#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3 -#endif - -#ifndef GL_ARB_invalidate_subdata -#endif - -#ifndef GL_ARB_multi_draw_indirect -#endif - -#ifndef GL_ARB_program_interface_query -#define GL_UNIFORM 0x92E1 -#define GL_UNIFORM_BLOCK 0x92E2 -#define GL_PROGRAM_INPUT 0x92E3 -#define GL_PROGRAM_OUTPUT 0x92E4 -#define GL_BUFFER_VARIABLE 0x92E5 -#define GL_SHADER_STORAGE_BLOCK 0x92E6 -/* reuse GL_ATOMIC_COUNTER_BUFFER */ -#define GL_VERTEX_SUBROUTINE 0x92E8 -#define GL_TESS_CONTROL_SUBROUTINE 0x92E9 -#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA -#define GL_GEOMETRY_SUBROUTINE 0x92EB -#define GL_FRAGMENT_SUBROUTINE 0x92EC -#define GL_COMPUTE_SUBROUTINE 0x92ED -#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE -#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF -#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0 -#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1 -#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2 -#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3 -#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4 -#define GL_ACTIVE_RESOURCES 0x92F5 -#define GL_MAX_NAME_LENGTH 0x92F6 -#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7 -#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8 -#define GL_NAME_LENGTH 0x92F9 -#define GL_TYPE 0x92FA -#define GL_ARRAY_SIZE 0x92FB -#define GL_OFFSET 0x92FC -#define GL_BLOCK_INDEX 0x92FD -#define GL_ARRAY_STRIDE 0x92FE -#define GL_MATRIX_STRIDE 0x92FF -#define GL_IS_ROW_MAJOR 0x9300 -#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301 -#define GL_BUFFER_BINDING 0x9302 -#define GL_BUFFER_DATA_SIZE 0x9303 -#define GL_NUM_ACTIVE_VARIABLES 0x9304 -#define GL_ACTIVE_VARIABLES 0x9305 -#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306 -#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307 -#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308 -#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309 -#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A -#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B -#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C -#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D -#define GL_LOCATION 0x930E -#define GL_LOCATION_INDEX 0x930F -#define GL_IS_PER_PATCH 0x92E7 -/* reuse GL_NUM_COMPATIBLE_SUBROUTINES */ -/* reuse GL_COMPATIBLE_SUBROUTINES */ -#endif - -#ifndef GL_ARB_robust_buffer_access_behavior -#endif - -#ifndef GL_ARB_shader_image_size -#endif - -#ifndef GL_ARB_shader_storage_buffer_object -#define GL_SHADER_STORAGE_BUFFER 0x90D2 -#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3 -#define GL_SHADER_STORAGE_BUFFER_START 0x90D4 -#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5 -#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6 -#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7 -#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8 -#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9 -#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA -#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB -#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC -#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD -#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE -#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF -#define GL_SHADER_STORAGE_BARRIER_BIT 0x2000 -#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS -/* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */ -#endif - -#ifndef GL_ARB_stencil_texturing -#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA -#endif - -#ifndef GL_ARB_texture_buffer_range -#define GL_TEXTURE_BUFFER_OFFSET 0x919D -#define GL_TEXTURE_BUFFER_SIZE 0x919E -#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F -#endif - -#ifndef GL_ARB_texture_query_levels -#endif - -#ifndef GL_ARB_texture_storage_multisample -#endif - - -/*************************************************************/ - -#include -#ifndef GL_VERSION_2_0 -/* GL type for program/shader text */ -typedef char GLchar; -#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 program/shader text and shader object handles */ -typedef char GLcharARB; -typedef unsigned int GLhandleARB; -#endif - -/* GL type 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 -#elif defined(__sun__) || defined(__digital__) -#include -#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 -#elif defined(__SCO__) || defined(__USLC__) -#include -#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 -#elif defined(_WIN32) -typedef __int32 int32_t; -typedef __int64 int64_t; -typedef unsigned __int64 uint64_t; -#else -/* Fallback if nothing above works */ -#include -#endif -#endif - -#ifndef GL_EXT_timer_query -typedef int64_t GLint64EXT; -typedef uint64_t GLuint64EXT; -#endif - -#ifndef GL_ARB_sync -typedef int64_t GLint64; -typedef uint64_t GLuint64; -typedef struct __GLsync *GLsync; -#endif - -#ifndef GL_ARB_cl_event -/* These incomplete types let us declare types compatible with OpenCL's cl_context and cl_event */ -struct _cl_context; -struct _cl_event; -#endif - -#ifndef GL_ARB_debug_output -typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam); -#endif - -#ifndef GL_AMD_debug_output -typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam); -#endif - -#ifndef GL_KHR_debug -typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam); -#endif - -#ifndef GL_NV_vdpau_interop -typedef GLintptr GLvdpauSurfaceNV; -#endif - -#ifndef GL_VERSION_1_0 -#define GL_VERSION_1_0 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glCullFace (GLenum mode); -GLAPI void APIENTRY glFrontFace (GLenum mode); -GLAPI void APIENTRY glHint (GLenum target, GLenum mode); -GLAPI void APIENTRY glLineWidth (GLfloat width); -GLAPI void APIENTRY glPointSize (GLfloat size); -GLAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode); -GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); -GLAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void APIENTRY glDrawBuffer (GLenum mode); -GLAPI void APIENTRY glClear (GLbitfield mask); -GLAPI void APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI void APIENTRY glClearStencil (GLint s); -GLAPI void APIENTRY glClearDepth (GLdouble depth); -GLAPI void APIENTRY glStencilMask (GLuint mask); -GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -GLAPI void APIENTRY glDepthMask (GLboolean flag); -GLAPI void APIENTRY glDisable (GLenum cap); -GLAPI void APIENTRY glEnable (GLenum cap); -GLAPI void APIENTRY glFinish (void); -GLAPI void APIENTRY glFlush (void); -GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); -GLAPI void APIENTRY glLogicOp (GLenum opcode); -GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); -GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); -GLAPI void APIENTRY glDepthFunc (GLenum func); -GLAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param); -GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param); -GLAPI void APIENTRY glReadBuffer (GLenum mode); -GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); -GLAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *params); -GLAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *params); -GLAPI GLenum APIENTRY glGetError (void); -GLAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params); -GLAPI const GLubyte * APIENTRY glGetString (GLenum name); -GLAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); -GLAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); -GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap); -GLAPI void APIENTRY glDepthRange (GLdouble near, GLdouble far); -GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCULLFACEPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode); -typedef void (APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width); -typedef void (APIENTRYP PFNGLPOINTSIZEPROC) (GLfloat size); -typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode); -typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); -typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLDRAWBUFFERPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask); -typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -typedef void (APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s); -typedef void (APIENTRYP PFNGLCLEARDEPTHPROC) (GLdouble depth); -typedef void (APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask); -typedef void (APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -typedef void (APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag); -typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap); -typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap); -typedef void (APIENTRYP PFNGLFINISHPROC) (void); -typedef void (APIENTRYP PFNGLFLUSHPROC) (void); -typedef void (APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor); -typedef void (APIENTRYP PFNGLLOGICOPPROC) (GLenum opcode); -typedef void (APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask); -typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass); -typedef void (APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func); -typedef void (APIENTRYP PFNGLPIXELSTOREFPROC) (GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLREADBUFFERPROC) (GLenum mode); -typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); -typedef void (APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *params); -typedef void (APIENTRYP PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *params); -typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void); -typedef void (APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params); -typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name); -typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC) (GLenum target, GLint level, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params); -typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC) (GLenum cap); -typedef void (APIENTRYP PFNGLDEPTHRANGEPROC) (GLdouble near, GLdouble far); -typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height); -#endif - -#ifndef GL_VERSION_1_1 -#define GL_VERSION_1_1 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); -GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); -GLAPI void APIENTRY glGetPointerv (GLenum pname, GLvoid* *params); -GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units); -GLAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture); -GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); -GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); -GLAPI GLboolean APIENTRY glIsTexture (GLuint texture); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count); -typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); -typedef void (APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, GLvoid* *params); -typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units); -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture); -typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures); -typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures); -typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture); -#endif - -#ifndef GL_VERSION_1_2 -#define GL_VERSION_1_2 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI void APIENTRY glBlendEquation (GLenum mode); -GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); -GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat 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 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 GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glActiveTexture (GLenum texture); -GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert); -GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); -GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); -GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); -GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); -GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); -GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); -GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, GLvoid *img); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat 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 GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); -GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount); -GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param); -GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params); -GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param); -GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount); -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); -#endif - -#ifndef GL_VERSION_1_5 -#define GL_VERSION_1_5 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids); -GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids); -GLAPI GLboolean APIENTRY glIsQuery (GLuint id); -GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id); -GLAPI void APIENTRY glEndQuery (GLenum target); -GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params); -GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer); -GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers); -GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers); -GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer); -GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage); -GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data); -GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data); -GLAPI GLvoid* APIENTRY glMapBuffer (GLenum target, GLenum access); -GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target); -GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, GLvoid* *params); -#endif /* GLCOREARB_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 GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha); -GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs); -GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); -GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask); -GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask); -GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader); -GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name); -GLAPI void APIENTRY glCompileShader (GLuint shader); -GLAPI GLuint APIENTRY glCreateProgram (void); -GLAPI GLuint APIENTRY glCreateShader (GLenum type); -GLAPI void APIENTRY glDeleteProgram (GLuint program); -GLAPI void APIENTRY glDeleteShader (GLuint shader); -GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader); -GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index); -GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index); -GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name); -GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj); -GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name); -GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); -GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name); -GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params); -GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params); -GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params); -GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid* *pointer); -GLAPI GLboolean APIENTRY glIsProgram (GLuint program); -GLAPI GLboolean APIENTRY glIsShader (GLuint shader); -GLAPI void APIENTRY glLinkProgram (GLuint program); -GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length); -GLAPI void APIENTRY glUseProgram (GLuint program); -GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0); -GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1); -GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI void APIENTRY glUniform1i (GLint location, GLint v0); -GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1); -GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2); -GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glValidateProgram (GLuint program); -GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x); -GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x); -GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x); -GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y); -GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y); -GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y); -GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z); -GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z); -GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v); -GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v); -GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer); -#endif /* GLCOREARB_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 face, GLenum func, 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* const *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 GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -#endif /* GLCOREARB_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 -/* OpenGL 3.0 also reuses entry points from these extensions: */ -/* ARB_framebuffer_object */ -/* ARB_map_buffer_range */ -/* ARB_vertex_array_object */ -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data); -GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data); -GLAPI void APIENTRY glEnablei (GLenum target, GLuint index); -GLAPI void APIENTRY glDisablei (GLenum target, GLuint index); -GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index); -GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode); -GLAPI void APIENTRY glEndTransformFeedback (void); -GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer); -GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode); -GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp); -GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode); -GLAPI void APIENTRY glEndConditionalRender (void); -GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params); -GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x); -GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y); -GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z); -GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w); -GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x); -GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y); -GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z); -GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v); -GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v); -GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v); -GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v); -GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v); -GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v); -GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params); -GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name); -GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name); -GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0); -GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1); -GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params); -GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params); -GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params); -GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value); -GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value); -GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value); -GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); -GLAPI const GLubyte * APIENTRY glGetStringi (GLenum name, GLuint index); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a); -typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data); -typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data); -typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index); -typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode); -typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void); -typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer); -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode); -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name); -typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp); -typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode); -typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void); -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v); -typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params); -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name); -typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params); -typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value); -typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil); -typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index); -#endif - -#ifndef GL_VERSION_3_1 -#define GL_VERSION_3_1 1 -/* OpenGL 3.1 also reuses entry points from these extensions: */ -/* ARB_copy_buffer */ -/* ARB_uniform_buffer_object */ -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); -GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount); -GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer); -GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount); -typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer); -typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index); -#endif - -#ifndef GL_VERSION_3_2 -#define GL_VERSION_3_2 1 -/* OpenGL 3.2 also reuses entry points from these extensions: */ -/* ARB_draw_elements_base_vertex */ -/* ARB_provoking_vertex */ -/* ARB_sync */ -/* ARB_texture_multisample */ -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data); -GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params); -GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data); -typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level); -#endif - -#ifndef GL_VERSION_3_3 -#define GL_VERSION_3_3 1 -/* OpenGL 3.3 also reuses entry points from these extensions: */ -/* ARB_blend_func_extended */ -/* ARB_sampler_objects */ -/* ARB_explicit_attrib_location, but it has none */ -/* ARB_occlusion_query2 (no entry points) */ -/* ARB_shader_bit_encoding (no entry points) */ -/* ARB_texture_rgb10_a2ui (no entry points) */ -/* ARB_texture_swizzle (no entry points) */ -/* ARB_timer_query */ -/* ARB_vertex_type_2_10_10_10_rev */ -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor); -#endif - -#ifndef GL_VERSION_4_0 -#define GL_VERSION_4_0 1 -/* OpenGL 4.0 also reuses entry points from these extensions: */ -/* ARB_texture_query_lod (no entry points) */ -/* ARB_draw_indirect */ -/* ARB_gpu_shader5 (no entry points) */ -/* ARB_gpu_shader_fp64 */ -/* ARB_shader_subroutine */ -/* ARB_tessellation_shader */ -/* ARB_texture_buffer_object_rgb32 (no entry points) */ -/* ARB_texture_cube_map_array (no entry points) */ -/* ARB_texture_gather (no entry points) */ -/* ARB_transform_feedback2 */ -/* ARB_transform_feedback3 */ -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glMinSampleShading (GLfloat value); -GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode); -GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst); -GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value); -typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode); -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst); -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -#endif - -#ifndef GL_VERSION_4_1 -#define GL_VERSION_4_1 1 -/* OpenGL 4.1 reuses entry points from these extensions: */ -/* ARB_ES2_compatibility */ -/* ARB_get_program_binary */ -/* ARB_separate_shader_objects */ -/* ARB_shader_precision (no entry points) */ -/* ARB_vertex_attrib_64bit */ -/* ARB_viewport_array */ -#endif - -#ifndef GL_VERSION_4_2 -#define GL_VERSION_4_2 1 -/* OpenGL 4.2 reuses entry points from these extensions: */ -/* ARB_base_instance */ -/* ARB_shading_language_420pack (no entry points) */ -/* ARB_transform_feedback_instanced */ -/* ARB_compressed_texture_pixel_storage (no entry points) */ -/* ARB_conservative_depth (no entry points) */ -/* ARB_internalformat_query */ -/* ARB_map_buffer_alignment (no entry points) */ -/* ARB_shader_atomic_counters */ -/* ARB_shader_image_load_store */ -/* ARB_shading_language_packing (no entry points) */ -/* ARB_texture_storage */ -#endif - -#ifndef GL_VERSION_4_3 -#define GL_VERSION_4_3 1 -/* OpenGL 4.3 reuses entry points from these extensions: */ -/* ARB_arrays_of_arrays (no entry points, GLSL only) */ -/* ARB_fragment_layer_viewport (no entry points, GLSL only) */ -/* ARB_shader_image_size (no entry points, GLSL only) */ -/* ARB_ES3_compatibility (no entry points) */ -/* ARB_clear_buffer_object */ -/* ARB_compute_shader */ -/* ARB_copy_image */ -/* KHR_debug (includes ARB_debug_output commands promoted to KHR without suffixes) */ -/* ARB_explicit_uniform_location (no entry points) */ -/* ARB_framebuffer_no_attachments */ -/* ARB_internalformat_query2 */ -/* ARB_invalidate_subdata */ -/* ARB_multi_draw_indirect */ -/* ARB_program_interface_query */ -/* ARB_robust_buffer_access_behavior (no entry points) */ -/* ARB_shader_storage_buffer_object */ -/* ARB_stencil_texturing (no entry points) */ -/* ARB_texture_buffer_range */ -/* ARB_texture_query_levels (no entry points) */ -/* ARB_texture_storage_multisample */ -/* ARB_texture_view */ -/* ARB_vertex_attrib_binding */ -#endif - -#ifndef GL_ARB_depth_buffer_float -#define GL_ARB_depth_buffer_float 1 -#endif - -#ifndef GL_ARB_framebuffer_object -#define GL_ARB_framebuffer_object 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer); -GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer); -GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers); -GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers); -GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer); -GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer); -GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers); -GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers); -GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target); -GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params); -GLAPI void APIENTRY glGenerateMipmap (GLenum target); -GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -#endif /* GLCOREARB_PROTOTYPES */ -typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer); -typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers); -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer); -typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer); -typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers); -typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers); -typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); -typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target); -typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); -typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -#endif - -#ifndef GL_ARB_framebuffer_sRGB -#define GL_ARB_framebuffer_sRGB 1 -#endif - -#ifndef GL_ARB_half_float_vertex -#define GL_ARB_half_float_vertex 1 -#endif - -#ifndef GL_ARB_map_buffer_range -#define GL_ARB_map_buffer_range 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI GLvoid* APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length); -#endif /* GLCOREARB_PROTOTYPES */ -typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); -typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length); -#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 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBindVertexArray (GLuint array); -GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays); -GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays); -GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array); -typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays); -typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays); -typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array); -#endif - -#ifndef GL_ARB_uniform_buffer_object -#define GL_ARB_uniform_buffer_object 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices); -GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); -GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName); -GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); -GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName); -typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName); -typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding); -#endif - -#ifndef GL_ARB_copy_buffer -#define GL_ARB_copy_buffer 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); -#endif - -#ifndef GL_ARB_depth_clamp -#define GL_ARB_depth_clamp 1 -#endif - -#ifndef GL_ARB_draw_elements_base_vertex -#define GL_ARB_draw_elements_base_vertex 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); -GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); -GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex); -GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex); -#endif - -#ifndef GL_ARB_fragment_coord_conventions -#define GL_ARB_fragment_coord_conventions 1 -#endif - -#ifndef GL_ARB_provoking_vertex -#define GL_ARB_provoking_vertex 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glProvokingVertex (GLenum mode); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode); -#endif - -#ifndef GL_ARB_seamless_cube_map -#define GL_ARB_seamless_cube_map 1 -#endif - -#ifndef GL_ARB_sync -#define GL_ARB_sync 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags); -GLAPI GLboolean APIENTRY glIsSync (GLsync sync); -GLAPI void APIENTRY glDeleteSync (GLsync sync); -GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout); -GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *params); -GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -#endif /* GLCOREARB_PROTOTYPES */ -typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags); -typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync); -typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync); -typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); -typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout); -typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *params); -typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -#endif - -#ifndef GL_ARB_texture_multisample -#define GL_ARB_texture_multisample 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val); -GLAPI void APIENTRY glSampleMaski (GLuint index, GLbitfield mask); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val); -typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask); -#endif - -#ifndef GL_ARB_vertex_array_bgra -#define GL_ARB_vertex_array_bgra 1 -#endif - -#ifndef GL_ARB_draw_buffers_blend -#define GL_ARB_draw_buffers_blend 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode); -GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst); -GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode); -typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha); -typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst); -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); -#endif - -#ifndef GL_ARB_sample_shading -#define GL_ARB_sample_shading 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value); -#endif - -#ifndef GL_ARB_texture_cube_map_array -#define GL_ARB_texture_cube_map_array 1 -#endif - -#ifndef GL_ARB_texture_gather -#define GL_ARB_texture_gather 1 -#endif - -#ifndef GL_ARB_texture_query_lod -#define GL_ARB_texture_query_lod 1 -#endif - -#ifndef GL_ARB_shading_language_include -#define GL_ARB_shading_language_include 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); -GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name); -GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length); -GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name); -GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); -GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string); -typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); -typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length); -typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name); -typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string); -typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params); -#endif - -#ifndef GL_ARB_texture_compression_bptc -#define GL_ARB_texture_compression_bptc 1 -#endif - -#ifndef GL_ARB_blend_func_extended -#define GL_ARB_blend_func_extended 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); -GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name); -#endif - -#ifndef GL_ARB_explicit_attrib_location -#define GL_ARB_explicit_attrib_location 1 -#endif - -#ifndef GL_ARB_occlusion_query2 -#define GL_ARB_occlusion_query2 1 -#endif - -#ifndef GL_ARB_sampler_objects -#define GL_ARB_sampler_objects 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers); -GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers); -GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler); -GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler); -GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param); -GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param); -GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param); -GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param); -GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param); -GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param); -GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params); -GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params); -GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers); -typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers); -typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler); -typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param); -typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param); -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params); -typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params); -#endif - -#ifndef GL_ARB_shader_bit_encoding -#define GL_ARB_shader_bit_encoding 1 -#endif - -#ifndef GL_ARB_texture_rgb10_a2ui -#define GL_ARB_texture_rgb10_a2ui 1 -#endif - -#ifndef GL_ARB_texture_swizzle -#define GL_ARB_texture_swizzle 1 -#endif - -#ifndef GL_ARB_timer_query -#define GL_ARB_timer_query 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target); -GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params); -GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params); -typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params); -#endif - -#ifndef GL_ARB_vertex_type_2_10_10_10_rev -#define GL_ARB_vertex_type_2_10_10_10_rev 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value); -GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value); -GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value); -GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value); -GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value); -GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value); -GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords); -GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords); -GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords); -GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords); -GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords); -GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords); -GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords); -GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords); -GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords); -GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords); -GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color); -GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color); -GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color); -GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color); -GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color); -GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color); -GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value); -GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value); -typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords); -typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords); -typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color); -typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color); -typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color); -typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color); -typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color); -typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value); -typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value); -#endif - -#ifndef GL_ARB_draw_indirect -#define GL_ARB_draw_indirect 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const GLvoid *indirect); -GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const GLvoid *indirect); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const GLvoid *indirect); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const GLvoid *indirect); -#endif - -#ifndef GL_ARB_gpu_shader5 -#define GL_ARB_gpu_shader5 1 -#endif - -#ifndef GL_ARB_gpu_shader_fp64 -#define GL_ARB_gpu_shader_fp64 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x); -GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y); -GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x); -typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params); -#endif - -#ifndef GL_ARB_shader_subroutine -#define GL_ARB_shader_subroutine 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name); -GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name); -GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); -GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices); -GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params); -GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values); -#endif /* GLCOREARB_PROTOTYPES */ -typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name); -typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name); -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values); -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name); -typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices); -typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params); -typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values); -#endif - -#ifndef GL_ARB_tessellation_shader -#define GL_ARB_tessellation_shader 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value); -GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value); -typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values); -#endif - -#ifndef GL_ARB_texture_buffer_object_rgb32 -#define GL_ARB_texture_buffer_object_rgb32 1 -#endif - -#ifndef GL_ARB_transform_feedback2 -#define GL_ARB_transform_feedback2 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id); -GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids); -GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids); -GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id); -GLAPI void APIENTRY glPauseTransformFeedback (void); -GLAPI void APIENTRY glResumeTransformFeedback (void); -GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id); -typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids); -typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids); -typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id); -typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void); -typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void); -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id); -#endif - -#ifndef GL_ARB_transform_feedback3 -#define GL_ARB_transform_feedback3 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream); -GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id); -GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index); -GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream); -typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id); -typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index); -typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params); -#endif - -#ifndef GL_ARB_ES2_compatibility -#define GL_ARB_ES2_compatibility 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glReleaseShaderCompiler (void); -GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length); -GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); -GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f); -GLAPI void APIENTRY glClearDepthf (GLfloat d); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void); -typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length); -typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision); -typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f); -typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d); -#endif - -#ifndef GL_ARB_get_program_binary -#define GL_ARB_get_program_binary 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary); -GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length); -GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary); -typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length); -typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value); -#endif - -#ifndef GL_ARB_separate_shader_objects -#define GL_ARB_separate_shader_objects 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program); -GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program); -GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar* const *strings); -GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline); -GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines); -GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines); -GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline); -GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params); -GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0); -GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0); -GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0); -GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0); -GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1); -GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1); -GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1); -GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1); -GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); -GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value); -GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value); -GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); -GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value); -GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value); -GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline); -GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program); -typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program); -typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar* const *strings); -typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline); -typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines); -typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines); -typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline); -typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value); -typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline); -typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog); -#endif - -#ifndef GL_ARB_vertex_attrib_64bit -#define GL_ARB_vertex_attrib_64bit 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x); -GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y); -GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z); -GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v); -GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v); -typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params); -#endif - -#ifndef GL_ARB_viewport_array -#define GL_ARB_viewport_array 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v); -GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v); -GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v); -GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v); -GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v); -GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f); -GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data); -GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v); -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h); -typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v); -typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v); -typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v); -typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f); -typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data); -typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data); -#endif - -#ifndef GL_ARB_cl_event -#define GL_ARB_cl_event 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context * context, struct _cl_event * event, GLbitfield flags); -#endif /* GLCOREARB_PROTOTYPES */ -typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context * context, struct _cl_event * event, GLbitfield flags); -#endif - -#ifndef GL_ARB_debug_output -#define GL_ARB_debug_output 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const GLvoid *userParam); -GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const GLvoid *userParam); -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -#endif - -#ifndef GL_ARB_robustness -#define GL_ARB_robustness 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void); -GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img); -GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data); -GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img); -GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params); -GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params); -GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void); -typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img); -typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data); -typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img); -typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params); -typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params); -#endif - -#ifndef GL_ARB_shader_stencil_export -#define GL_ARB_shader_stencil_export 1 -#endif - -#ifndef GL_ARB_base_instance -#define GL_ARB_base_instance 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); -GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); -GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance); -typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance); -#endif - -#ifndef GL_ARB_shading_language_420pack -#define GL_ARB_shading_language_420pack 1 -#endif - -#ifndef GL_ARB_transform_feedback_instanced -#define GL_ARB_transform_feedback_instanced 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount); -GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount); -typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount); -#endif - -#ifndef GL_ARB_compressed_texture_pixel_storage -#define GL_ARB_compressed_texture_pixel_storage 1 -#endif - -#ifndef GL_ARB_conservative_depth -#define GL_ARB_conservative_depth 1 -#endif - -#ifndef GL_ARB_internalformat_query -#define GL_ARB_internalformat_query 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params); -#endif - -#ifndef GL_ARB_map_buffer_alignment -#define GL_ARB_map_buffer_alignment 1 -#endif - -#ifndef GL_ARB_shader_atomic_counters -#define GL_ARB_shader_atomic_counters 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params); -#endif - -#ifndef GL_ARB_shader_image_load_store -#define GL_ARB_shader_image_load_store 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); -GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); -typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers); -#endif - -#ifndef GL_ARB_shading_language_packing -#define GL_ARB_shading_language_packing 1 -#endif - -#ifndef GL_ARB_texture_storage -#define GL_ARB_texture_storage 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth); -#endif - -#ifndef GL_KHR_texture_compression_astc_ldr -#define GL_KHR_texture_compression_astc_ldr 1 -#endif - -#ifndef GL_KHR_debug -#define GL_KHR_debug 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam); -GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message); -GLAPI void APIENTRY glPopDebugGroup (void); -GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label); -GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); -GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label); -GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled); -typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf); -typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam); -typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog); -typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message); -typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void); -typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label); -typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label); -typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label); -typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label); -#endif - -#ifndef GL_ARB_arrays_of_arrays -#define GL_ARB_arrays_of_arrays 1 -#endif - -#ifndef GL_ARB_clear_buffer_object -#define GL_ARB_clear_buffer_object 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); -GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, GLsizeiptr offset, GLsizeiptr size, const void *data); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data); -typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, GLsizeiptr offset, GLsizeiptr size, const void *data); -#endif - -#ifndef GL_ARB_compute_shader -#define GL_ARB_compute_shader 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); -GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); -typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect); -#endif - -#ifndef GL_ARB_copy_image -#define GL_ARB_copy_image 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth); -#endif - -#ifndef GL_ARB_texture_view -#define GL_ARB_texture_view 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers); -#endif - -#ifndef GL_ARB_vertex_attrib_binding -#define GL_ARB_vertex_attrib_binding 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex); -GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor); -GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex); -GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex); -typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor); -typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex); -typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor); -#endif - -#ifndef GL_ARB_robustness_isolation -#define GL_ARB_robustness_isolation 1 -#endif - -#ifndef GL_ARB_ES3_compatibility -#define GL_ARB_ES3_compatibility 1 -#endif - -#ifndef GL_ARB_explicit_uniform_location -#define GL_ARB_explicit_uniform_location 1 -#endif - -#ifndef GL_ARB_fragment_layer_viewport -#define GL_ARB_fragment_layer_viewport 1 -#endif - -#ifndef GL_ARB_framebuffer_no_attachments -#define GL_ARB_framebuffer_no_attachments 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param); -GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param); -GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param); -typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params); -#endif - -#ifndef GL_ARB_internalformat_query2 -#define GL_ARB_internalformat_query2 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params); -#endif - -#ifndef GL_ARB_invalidate_subdata -#define GL_ARB_invalidate_subdata 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); -GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level); -GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length); -GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer); -GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments); -GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth); -typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level); -typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length); -typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer); -typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments); -typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height); -#endif - -#ifndef GL_ARB_multi_draw_indirect -#define GL_ARB_multi_draw_indirect 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); -GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride); -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride); -#endif - -#ifndef GL_ARB_program_interface_query -#define GL_ARB_program_interface_query 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params); -GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name); -GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); -GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params); -GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name); -GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params); -typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name); -typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name); -typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params); -typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name); -typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name); -#endif - -#ifndef GL_ARB_robust_buffer_access_behavior -#define GL_ARB_robust_buffer_access_behavior 1 -#endif - -#ifndef GL_ARB_shader_image_size -#define GL_ARB_shader_image_size 1 -#endif - -#ifndef GL_ARB_shader_storage_buffer_object -#define GL_ARB_shader_storage_buffer_object 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding); -#endif - -#ifndef GL_ARB_stencil_texturing -#define GL_ARB_stencil_texturing 1 -#endif - -#ifndef GL_ARB_texture_buffer_range -#define GL_ARB_texture_buffer_range 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size); -#endif - -#ifndef GL_ARB_texture_query_levels -#define GL_ARB_texture_query_levels 1 -#endif - -#ifndef GL_ARB_texture_storage_multisample -#define GL_ARB_texture_storage_multisample 1 -#ifdef GLCOREARB_PROTOTYPES -GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -#endif /* GLCOREARB_PROTOTYPES */ -typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations); -#endif - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/third_party/imgui/examples/libs/glfw/COPYING.txt b/third_party/imgui/examples/libs/glfw/COPYING.txt deleted file mode 100644 index b30c7015..00000000 --- a/third_party/imgui/examples/libs/glfw/COPYING.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2002-2006 Marcus Geelnard -Copyright (c) 2006-2010 Camilla Berglund - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would - be appreciated but is not required. - -2. Altered source versions must be plainly marked as such, and must not - be misrepresented as being the original software. - -3. This notice may not be removed or altered from any source - distribution. - diff --git a/third_party/imgui/examples/libs/glfw/include/GLFW/glfw3.h b/third_party/imgui/examples/libs/glfw/include/GLFW/glfw3.h deleted file mode 100644 index f8ca3d61..00000000 --- a/third_party/imgui/examples/libs/glfw/include/GLFW/glfw3.h +++ /dev/null @@ -1,4227 +0,0 @@ -/************************************************************************* - * GLFW 3.2 - www.glfw.org - * A library for OpenGL, window and input - *------------------------------------------------------------------------ - * Copyright (c) 2002-2006 Marcus Geelnard - * Copyright (c) 2006-2010 Camilla Berglund - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would - * be appreciated but is not required. - * - * 2. Altered source versions must be plainly marked as such, and must not - * be misrepresented as being the original software. - * - * 3. This notice may not be removed or altered from any source - * distribution. - * - *************************************************************************/ - -#ifndef _glfw3_h_ -#define _glfw3_h_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/************************************************************************* - * Doxygen documentation - *************************************************************************/ - -/*! @file glfw3.h - * @brief The header of the GLFW 3 API. - * - * This is the header file of the GLFW 3 API. It defines all its types and - * declares all its functions. - * - * For more information about how to use this file, see @ref build_include. - */ -/*! @defgroup context Context reference - * - * This is the reference documentation for OpenGL and OpenGL ES context related - * functions. For more task-oriented information, see the @ref context_guide. - */ -/*! @defgroup vulkan Vulkan reference - * - * This is the reference documentation for Vulkan related functions and types. - * For more task-oriented information, see the @ref vulkan_guide. - */ -/*! @defgroup init Initialization, version and error reference - * - * This is the reference documentation for initialization and termination of - * the library, version management and error handling. For more task-oriented - * information, see the @ref intro_guide. - */ -/*! @defgroup input Input reference - * - * This is the reference documentation for input related functions and types. - * For more task-oriented information, see the @ref input_guide. - */ -/*! @defgroup monitor Monitor reference - * - * This is the reference documentation for monitor related functions and types. - * For more task-oriented information, see the @ref monitor_guide. - */ -/*! @defgroup window Window reference - * - * This is the reference documentation for window related functions and types, - * including creation, deletion and event polling. For more task-oriented - * information, see the @ref window_guide. - */ - - -/************************************************************************* - * Compiler- and platform-specific preprocessor work - *************************************************************************/ - -/* If we are we on Windows, we want a single define for it. - */ -#if !defined(_WIN32) && (defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)) - #define _WIN32 -#endif /* _WIN32 */ - -/* It is customary to use APIENTRY for OpenGL function pointer declarations on - * all platforms. Additionally, the Windows OpenGL header needs APIENTRY. - */ -#ifndef APIENTRY - #ifdef _WIN32 - #define APIENTRY __stdcall - #else - #define APIENTRY - #endif -#endif /* APIENTRY */ - -/* Some Windows OpenGL headers need this. - */ -#if !defined(WINGDIAPI) && defined(_WIN32) - #define WINGDIAPI __declspec(dllimport) - #define GLFW_WINGDIAPI_DEFINED -#endif /* WINGDIAPI */ - -/* Some Windows GLU headers need this. - */ -#if !defined(CALLBACK) && defined(_WIN32) - #define CALLBACK __stdcall - #define GLFW_CALLBACK_DEFINED -#endif /* CALLBACK */ - -/* Most Windows GLU headers need wchar_t. - * The OS X OpenGL header blocks the definition of ptrdiff_t by glext.h. - * Include it unconditionally to avoid surprising side-effects. - */ -#include -#include - -/* Include the chosen client API headers. - */ -#if defined(__APPLE__) - #if defined(GLFW_INCLUDE_GLCOREARB) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif !defined(GLFW_INCLUDE_NONE) - #if !defined(GLFW_INCLUDE_GLEXT) - #define GL_GLEXT_LEGACY - #endif - #include - #endif - #if defined(GLFW_INCLUDE_GLU) - #include - #endif -#else - #if defined(GLFW_INCLUDE_GLCOREARB) - #include - #elif defined(GLFW_INCLUDE_ES1) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES2) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES3) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_ES31) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #elif defined(GLFW_INCLUDE_VULKAN) - #include - #elif !defined(GLFW_INCLUDE_NONE) - #include - #if defined(GLFW_INCLUDE_GLEXT) - #include - #endif - #endif - #if defined(GLFW_INCLUDE_GLU) - #include - #endif -#endif - -#if defined(GLFW_DLL) && defined(_GLFW_BUILD_DLL) - /* GLFW_DLL must be defined by applications that are linking against the DLL - * version of the GLFW library. _GLFW_BUILD_DLL is defined by the GLFW - * configuration header when compiling the DLL version of the library. - */ - #error "You must not have both GLFW_DLL and _GLFW_BUILD_DLL defined" -#endif - -/* GLFWAPI is used to declare public API functions for export - * from the DLL / shared library / dynamic library. - */ -#if defined(_WIN32) && defined(_GLFW_BUILD_DLL) - /* We are building GLFW as a Win32 DLL */ - #define GLFWAPI __declspec(dllexport) -#elif defined(_WIN32) && defined(GLFW_DLL) - /* We are calling GLFW as a Win32 DLL */ - #define GLFWAPI __declspec(dllimport) -#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL) - /* We are building GLFW as a shared / dynamic library */ - #define GLFWAPI __attribute__((visibility("default"))) -#else - /* We are building or calling GLFW as a static library */ - #define GLFWAPI -#endif - - -/************************************************************************* - * GLFW API tokens - *************************************************************************/ - -/*! @name GLFW version macros - * @{ */ -/*! @brief The major version number of the GLFW library. - * - * This is incremented when the API is changed in non-compatible ways. - * @ingroup init - */ -#define GLFW_VERSION_MAJOR 3 -/*! @brief The minor version number of the GLFW library. - * - * This is incremented when features are added to the API but it remains - * backward-compatible. - * @ingroup init - */ -#define GLFW_VERSION_MINOR 2 -/*! @brief The revision number of the GLFW library. - * - * This is incremented when a bug fix release is made that does not contain any - * API changes. - * @ingroup init - */ -#define GLFW_VERSION_REVISION 0 -/*! @} */ - -/*! @name Boolean values - * @{ */ -/*! @brief One. - * - * One. Seriously. You don't _need_ to use this symbol in your code. It's - * just semantic sugar for the number 1. You can use `1` or `true` or `_True` - * or `GL_TRUE` or whatever you want. - */ -#define GLFW_TRUE 1 -/*! @brief Zero. - * - * Zero. Seriously. You don't _need_ to use this symbol in your code. It's - * just just semantic sugar for the number 0. You can use `0` or `false` or - * `_False` or `GL_FALSE` or whatever you want. - */ -#define GLFW_FALSE 0 -/*! @} */ - -/*! @name Key and button actions - * @{ */ -/*! @brief The key or mouse button was released. - * - * The key or mouse button was released. - * - * @ingroup input - */ -#define GLFW_RELEASE 0 -/*! @brief The key or mouse button was pressed. - * - * The key or mouse button was pressed. - * - * @ingroup input - */ -#define GLFW_PRESS 1 -/*! @brief The key was held down until it repeated. - * - * The key was held down until it repeated. - * - * @ingroup input - */ -#define GLFW_REPEAT 2 -/*! @} */ - -/*! @defgroup keys Keyboard keys - * - * See [key input](@ref input_key) for how these are used. - * - * These key codes are inspired by the _USB HID Usage Tables v1.12_ (p. 53-60), - * but re-arranged to map to 7-bit ASCII for printable keys (function keys are - * put in the 256+ range). - * - * The naming of the key codes follow these rules: - * - The US keyboard layout is used - * - Names of printable alpha-numeric characters are used (e.g. "A", "R", - * "3", etc.) - * - For non-alphanumeric characters, Unicode:ish names are used (e.g. - * "COMMA", "LEFT_SQUARE_BRACKET", etc.). Note that some names do not - * correspond to the Unicode standard (usually for brevity) - * - Keys that lack a clear US mapping are named "WORLD_x" - * - For non-printable keys, custom names are used (e.g. "F4", - * "BACKSPACE", etc.) - * - * @ingroup input - * @{ - */ - -/* The unknown key */ -#define GLFW_KEY_UNKNOWN -1 - -/* Printable keys */ -#define GLFW_KEY_SPACE 32 -#define GLFW_KEY_APOSTROPHE 39 /* ' */ -#define GLFW_KEY_COMMA 44 /* , */ -#define GLFW_KEY_MINUS 45 /* - */ -#define GLFW_KEY_PERIOD 46 /* . */ -#define GLFW_KEY_SLASH 47 /* / */ -#define GLFW_KEY_0 48 -#define GLFW_KEY_1 49 -#define GLFW_KEY_2 50 -#define GLFW_KEY_3 51 -#define GLFW_KEY_4 52 -#define GLFW_KEY_5 53 -#define GLFW_KEY_6 54 -#define GLFW_KEY_7 55 -#define GLFW_KEY_8 56 -#define GLFW_KEY_9 57 -#define GLFW_KEY_SEMICOLON 59 /* ; */ -#define GLFW_KEY_EQUAL 61 /* = */ -#define GLFW_KEY_A 65 -#define GLFW_KEY_B 66 -#define GLFW_KEY_C 67 -#define GLFW_KEY_D 68 -#define GLFW_KEY_E 69 -#define GLFW_KEY_F 70 -#define GLFW_KEY_G 71 -#define GLFW_KEY_H 72 -#define GLFW_KEY_I 73 -#define GLFW_KEY_J 74 -#define GLFW_KEY_K 75 -#define GLFW_KEY_L 76 -#define GLFW_KEY_M 77 -#define GLFW_KEY_N 78 -#define GLFW_KEY_O 79 -#define GLFW_KEY_P 80 -#define GLFW_KEY_Q 81 -#define GLFW_KEY_R 82 -#define GLFW_KEY_S 83 -#define GLFW_KEY_T 84 -#define GLFW_KEY_U 85 -#define GLFW_KEY_V 86 -#define GLFW_KEY_W 87 -#define GLFW_KEY_X 88 -#define GLFW_KEY_Y 89 -#define GLFW_KEY_Z 90 -#define GLFW_KEY_LEFT_BRACKET 91 /* [ */ -#define GLFW_KEY_BACKSLASH 92 /* \ */ -#define GLFW_KEY_RIGHT_BRACKET 93 /* ] */ -#define GLFW_KEY_GRAVE_ACCENT 96 /* ` */ -#define GLFW_KEY_WORLD_1 161 /* non-US #1 */ -#define GLFW_KEY_WORLD_2 162 /* non-US #2 */ - -/* Function keys */ -#define GLFW_KEY_ESCAPE 256 -#define GLFW_KEY_ENTER 257 -#define GLFW_KEY_TAB 258 -#define GLFW_KEY_BACKSPACE 259 -#define GLFW_KEY_INSERT 260 -#define GLFW_KEY_DELETE 261 -#define GLFW_KEY_RIGHT 262 -#define GLFW_KEY_LEFT 263 -#define GLFW_KEY_DOWN 264 -#define GLFW_KEY_UP 265 -#define GLFW_KEY_PAGE_UP 266 -#define GLFW_KEY_PAGE_DOWN 267 -#define GLFW_KEY_HOME 268 -#define GLFW_KEY_END 269 -#define GLFW_KEY_CAPS_LOCK 280 -#define GLFW_KEY_SCROLL_LOCK 281 -#define GLFW_KEY_NUM_LOCK 282 -#define GLFW_KEY_PRINT_SCREEN 283 -#define GLFW_KEY_PAUSE 284 -#define GLFW_KEY_F1 290 -#define GLFW_KEY_F2 291 -#define GLFW_KEY_F3 292 -#define GLFW_KEY_F4 293 -#define GLFW_KEY_F5 294 -#define GLFW_KEY_F6 295 -#define GLFW_KEY_F7 296 -#define GLFW_KEY_F8 297 -#define GLFW_KEY_F9 298 -#define GLFW_KEY_F10 299 -#define GLFW_KEY_F11 300 -#define GLFW_KEY_F12 301 -#define GLFW_KEY_F13 302 -#define GLFW_KEY_F14 303 -#define GLFW_KEY_F15 304 -#define GLFW_KEY_F16 305 -#define GLFW_KEY_F17 306 -#define GLFW_KEY_F18 307 -#define GLFW_KEY_F19 308 -#define GLFW_KEY_F20 309 -#define GLFW_KEY_F21 310 -#define GLFW_KEY_F22 311 -#define GLFW_KEY_F23 312 -#define GLFW_KEY_F24 313 -#define GLFW_KEY_F25 314 -#define GLFW_KEY_KP_0 320 -#define GLFW_KEY_KP_1 321 -#define GLFW_KEY_KP_2 322 -#define GLFW_KEY_KP_3 323 -#define GLFW_KEY_KP_4 324 -#define GLFW_KEY_KP_5 325 -#define GLFW_KEY_KP_6 326 -#define GLFW_KEY_KP_7 327 -#define GLFW_KEY_KP_8 328 -#define GLFW_KEY_KP_9 329 -#define GLFW_KEY_KP_DECIMAL 330 -#define GLFW_KEY_KP_DIVIDE 331 -#define GLFW_KEY_KP_MULTIPLY 332 -#define GLFW_KEY_KP_SUBTRACT 333 -#define GLFW_KEY_KP_ADD 334 -#define GLFW_KEY_KP_ENTER 335 -#define GLFW_KEY_KP_EQUAL 336 -#define GLFW_KEY_LEFT_SHIFT 340 -#define GLFW_KEY_LEFT_CONTROL 341 -#define GLFW_KEY_LEFT_ALT 342 -#define GLFW_KEY_LEFT_SUPER 343 -#define GLFW_KEY_RIGHT_SHIFT 344 -#define GLFW_KEY_RIGHT_CONTROL 345 -#define GLFW_KEY_RIGHT_ALT 346 -#define GLFW_KEY_RIGHT_SUPER 347 -#define GLFW_KEY_MENU 348 - -#define GLFW_KEY_LAST GLFW_KEY_MENU - -/*! @} */ - -/*! @defgroup mods Modifier key flags - * - * See [key input](@ref input_key) for how these are used. - * - * @ingroup input - * @{ */ - -/*! @brief If this bit is set one or more Shift keys were held down. - */ -#define GLFW_MOD_SHIFT 0x0001 -/*! @brief If this bit is set one or more Control keys were held down. - */ -#define GLFW_MOD_CONTROL 0x0002 -/*! @brief If this bit is set one or more Alt keys were held down. - */ -#define GLFW_MOD_ALT 0x0004 -/*! @brief If this bit is set one or more Super keys were held down. - */ -#define GLFW_MOD_SUPER 0x0008 - -/*! @} */ - -/*! @defgroup buttons Mouse buttons - * - * See [mouse button input](@ref input_mouse_button) for how these are used. - * - * @ingroup input - * @{ */ -#define GLFW_MOUSE_BUTTON_1 0 -#define GLFW_MOUSE_BUTTON_2 1 -#define GLFW_MOUSE_BUTTON_3 2 -#define GLFW_MOUSE_BUTTON_4 3 -#define GLFW_MOUSE_BUTTON_5 4 -#define GLFW_MOUSE_BUTTON_6 5 -#define GLFW_MOUSE_BUTTON_7 6 -#define GLFW_MOUSE_BUTTON_8 7 -#define GLFW_MOUSE_BUTTON_LAST GLFW_MOUSE_BUTTON_8 -#define GLFW_MOUSE_BUTTON_LEFT GLFW_MOUSE_BUTTON_1 -#define GLFW_MOUSE_BUTTON_RIGHT GLFW_MOUSE_BUTTON_2 -#define GLFW_MOUSE_BUTTON_MIDDLE GLFW_MOUSE_BUTTON_3 -/*! @} */ - -/*! @defgroup joysticks Joysticks - * - * See [joystick input](@ref joystick) for how these are used. - * - * @ingroup input - * @{ */ -#define GLFW_JOYSTICK_1 0 -#define GLFW_JOYSTICK_2 1 -#define GLFW_JOYSTICK_3 2 -#define GLFW_JOYSTICK_4 3 -#define GLFW_JOYSTICK_5 4 -#define GLFW_JOYSTICK_6 5 -#define GLFW_JOYSTICK_7 6 -#define GLFW_JOYSTICK_8 7 -#define GLFW_JOYSTICK_9 8 -#define GLFW_JOYSTICK_10 9 -#define GLFW_JOYSTICK_11 10 -#define GLFW_JOYSTICK_12 11 -#define GLFW_JOYSTICK_13 12 -#define GLFW_JOYSTICK_14 13 -#define GLFW_JOYSTICK_15 14 -#define GLFW_JOYSTICK_16 15 -#define GLFW_JOYSTICK_LAST GLFW_JOYSTICK_16 -/*! @} */ - -/*! @defgroup errors Error codes - * - * See [error handling](@ref error_handling) for how these are used. - * - * @ingroup init - * @{ */ -/*! @brief GLFW has not been initialized. - * - * This occurs if a GLFW function was called that must not be called unless the - * library is [initialized](@ref intro_init). - * - * @analysis Application programmer error. Initialize GLFW before calling any - * function that requires initialization. - */ -#define GLFW_NOT_INITIALIZED 0x00010001 -/*! @brief No context is current for this thread. - * - * This occurs if a GLFW function was called that needs and operates on the - * current OpenGL or OpenGL ES context but no context is current on the calling - * thread. One such function is @ref glfwSwapInterval. - * - * @analysis Application programmer error. Ensure a context is current before - * calling functions that require a current context. - */ -#define GLFW_NO_CURRENT_CONTEXT 0x00010002 -/*! @brief One of the arguments to the function was an invalid enum value. - * - * One of the arguments to the function was an invalid enum value, for example - * requesting [GLFW_RED_BITS](@ref window_hints_fb) with @ref - * glfwGetWindowAttrib. - * - * @analysis Application programmer error. Fix the offending call. - */ -#define GLFW_INVALID_ENUM 0x00010003 -/*! @brief One of the arguments to the function was an invalid value. - * - * One of the arguments to the function was an invalid value, for example - * requesting a non-existent OpenGL or OpenGL ES version like 2.7. - * - * Requesting a valid but unavailable OpenGL or OpenGL ES version will instead - * result in a @ref GLFW_VERSION_UNAVAILABLE error. - * - * @analysis Application programmer error. Fix the offending call. - */ -#define GLFW_INVALID_VALUE 0x00010004 -/*! @brief A memory allocation failed. - * - * A memory allocation failed. - * - * @analysis A bug in GLFW or the underlying operating system. Report the bug - * to our [issue tracker](https://github.com/glfw/glfw/issues). - */ -#define GLFW_OUT_OF_MEMORY 0x00010005 -/*! @brief GLFW could not find support for the requested API on the system. - * - * GLFW could not find support for the requested API on the system. - * - * @analysis The installed graphics driver does not support the requested - * API, or does not support it via the chosen context creation backend. - * Below are a few examples. - * - * @par - * Some pre-installed Windows graphics drivers do not support OpenGL. AMD only - * supports OpenGL ES via EGL, while Nvidia and Intel only support it via - * a WGL or GLX extension. OS X does not provide OpenGL ES at all. The Mesa - * EGL, OpenGL and OpenGL ES libraries do not interface with the Nvidia binary - * driver. Older graphics drivers do not support Vulkan. - */ -#define GLFW_API_UNAVAILABLE 0x00010006 -/*! @brief The requested OpenGL or OpenGL ES version is not available. - * - * The requested OpenGL or OpenGL ES version (including any requested context - * or framebuffer hints) is not available on this machine. - * - * @analysis The machine does not support your requirements. If your - * application is sufficiently flexible, downgrade your requirements and try - * again. Otherwise, inform the user that their machine does not match your - * requirements. - * - * @par - * Future invalid OpenGL and OpenGL ES versions, for example OpenGL 4.8 if 5.0 - * comes out before the 4.x series gets that far, also fail with this error and - * not @ref GLFW_INVALID_VALUE, because GLFW cannot know what future versions - * will exist. - */ -#define GLFW_VERSION_UNAVAILABLE 0x00010007 -/*! @brief A platform-specific error occurred that does not match any of the - * more specific categories. - * - * A platform-specific error occurred that does not match any of the more - * specific categories. - * - * @analysis A bug or configuration error in GLFW, the underlying operating - * system or its drivers, or a lack of required resources. Report the issue to - * our [issue tracker](https://github.com/glfw/glfw/issues). - */ -#define GLFW_PLATFORM_ERROR 0x00010008 -/*! @brief The requested format is not supported or available. - * - * If emitted during window creation, the requested pixel format is not - * supported. - * - * If emitted when querying the clipboard, the contents of the clipboard could - * not be converted to the requested format. - * - * @analysis If emitted during window creation, one or more - * [hard constraints](@ref window_hints_hard) did not match any of the - * available pixel formats. If your application is sufficiently flexible, - * downgrade your requirements and try again. Otherwise, inform the user that - * their machine does not match your requirements. - * - * @par - * If emitted when querying the clipboard, ignore the error or report it to - * the user, as appropriate. - */ -#define GLFW_FORMAT_UNAVAILABLE 0x00010009 -/*! @brief The specified window does not have an OpenGL or OpenGL ES context. - * - * A window that does not have an OpenGL or OpenGL ES context was passed to - * a function that requires it to have one. - * - * @analysis Application programmer error. Fix the offending call. - */ -#define GLFW_NO_WINDOW_CONTEXT 0x0001000A -/*! @} */ - -#define GLFW_FOCUSED 0x00020001 -#define GLFW_ICONIFIED 0x00020002 -#define GLFW_RESIZABLE 0x00020003 -#define GLFW_VISIBLE 0x00020004 -#define GLFW_DECORATED 0x00020005 -#define GLFW_AUTO_ICONIFY 0x00020006 -#define GLFW_FLOATING 0x00020007 -#define GLFW_MAXIMIZED 0x00020008 - -#define GLFW_RED_BITS 0x00021001 -#define GLFW_GREEN_BITS 0x00021002 -#define GLFW_BLUE_BITS 0x00021003 -#define GLFW_ALPHA_BITS 0x00021004 -#define GLFW_DEPTH_BITS 0x00021005 -#define GLFW_STENCIL_BITS 0x00021006 -#define GLFW_ACCUM_RED_BITS 0x00021007 -#define GLFW_ACCUM_GREEN_BITS 0x00021008 -#define GLFW_ACCUM_BLUE_BITS 0x00021009 -#define GLFW_ACCUM_ALPHA_BITS 0x0002100A -#define GLFW_AUX_BUFFERS 0x0002100B -#define GLFW_STEREO 0x0002100C -#define GLFW_SAMPLES 0x0002100D -#define GLFW_SRGB_CAPABLE 0x0002100E -#define GLFW_REFRESH_RATE 0x0002100F -#define GLFW_DOUBLEBUFFER 0x00021010 - -#define GLFW_CLIENT_API 0x00022001 -#define GLFW_CONTEXT_VERSION_MAJOR 0x00022002 -#define GLFW_CONTEXT_VERSION_MINOR 0x00022003 -#define GLFW_CONTEXT_REVISION 0x00022004 -#define GLFW_CONTEXT_ROBUSTNESS 0x00022005 -#define GLFW_OPENGL_FORWARD_COMPAT 0x00022006 -#define GLFW_OPENGL_DEBUG_CONTEXT 0x00022007 -#define GLFW_OPENGL_PROFILE 0x00022008 -#define GLFW_CONTEXT_RELEASE_BEHAVIOR 0x00022009 -#define GLFW_CONTEXT_NO_ERROR 0x0002200A - -#define GLFW_NO_API 0 -#define GLFW_OPENGL_API 0x00030001 -#define GLFW_OPENGL_ES_API 0x00030002 - -#define GLFW_NO_ROBUSTNESS 0 -#define GLFW_NO_RESET_NOTIFICATION 0x00031001 -#define GLFW_LOSE_CONTEXT_ON_RESET 0x00031002 - -#define GLFW_OPENGL_ANY_PROFILE 0 -#define GLFW_OPENGL_CORE_PROFILE 0x00032001 -#define GLFW_OPENGL_COMPAT_PROFILE 0x00032002 - -#define GLFW_CURSOR 0x00033001 -#define GLFW_STICKY_KEYS 0x00033002 -#define GLFW_STICKY_MOUSE_BUTTONS 0x00033003 - -#define GLFW_CURSOR_NORMAL 0x00034001 -#define GLFW_CURSOR_HIDDEN 0x00034002 -#define GLFW_CURSOR_DISABLED 0x00034003 - -#define GLFW_ANY_RELEASE_BEHAVIOR 0 -#define GLFW_RELEASE_BEHAVIOR_FLUSH 0x00035001 -#define GLFW_RELEASE_BEHAVIOR_NONE 0x00035002 - -/*! @defgroup shapes Standard cursor shapes - * - * See [standard cursor creation](@ref cursor_standard) for how these are used. - * - * @ingroup input - * @{ */ - -/*! @brief The regular arrow cursor shape. - * - * The regular arrow cursor. - */ -#define GLFW_ARROW_CURSOR 0x00036001 -/*! @brief The text input I-beam cursor shape. - * - * The text input I-beam cursor shape. - */ -#define GLFW_IBEAM_CURSOR 0x00036002 -/*! @brief The crosshair shape. - * - * The crosshair shape. - */ -#define GLFW_CROSSHAIR_CURSOR 0x00036003 -/*! @brief The hand shape. - * - * The hand shape. - */ -#define GLFW_HAND_CURSOR 0x00036004 -/*! @brief The horizontal resize arrow shape. - * - * The horizontal resize arrow shape. - */ -#define GLFW_HRESIZE_CURSOR 0x00036005 -/*! @brief The vertical resize arrow shape. - * - * The vertical resize arrow shape. - */ -#define GLFW_VRESIZE_CURSOR 0x00036006 -/*! @} */ - -#define GLFW_CONNECTED 0x00040001 -#define GLFW_DISCONNECTED 0x00040002 - -#define GLFW_DONT_CARE -1 - - -/************************************************************************* - * GLFW API types - *************************************************************************/ - -/*! @brief Client API function pointer type. - * - * Generic function pointer used for returning client API function pointers - * without forcing a cast from a regular pointer. - * - * @sa @ref context_glext - * @sa glfwGetProcAddress - * - * @since Added in version 3.0. - - * @ingroup context - */ -typedef void (*GLFWglproc)(void); - -/*! @brief Vulkan API function pointer type. - * - * Generic function pointer used for returning Vulkan API function pointers - * without forcing a cast from a regular pointer. - * - * @sa @ref vulkan_proc - * @sa glfwGetInstanceProcAddress - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -typedef void (*GLFWvkproc)(void); - -/*! @brief Opaque monitor object. - * - * Opaque monitor object. - * - * @see @ref monitor_object - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -typedef struct GLFWmonitor GLFWmonitor; - -/*! @brief Opaque window object. - * - * Opaque window object. - * - * @see @ref window_object - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef struct GLFWwindow GLFWwindow; - -/*! @brief Opaque cursor object. - * - * Opaque cursor object. - * - * @see @ref cursor_object - * - * @since Added in version 3.1. - * - * @ingroup cursor - */ -typedef struct GLFWcursor GLFWcursor; - -/*! @brief The function signature for error callbacks. - * - * This is the function signature for error callback functions. - * - * @param[in] error An [error code](@ref errors). - * @param[in] description A UTF-8 encoded string describing the error. - * - * @sa @ref error_handling - * @sa glfwSetErrorCallback - * - * @since Added in version 3.0. - * - * @ingroup init - */ -typedef void (* GLFWerrorfun)(int,const char*); - -/*! @brief The function signature for window position callbacks. - * - * This is the function signature for window position callback functions. - * - * @param[in] window The window that was moved. - * @param[in] xpos The new x-coordinate, in screen coordinates, of the - * upper-left corner of the client area of the window. - * @param[in] ypos The new y-coordinate, in screen coordinates, of the - * upper-left corner of the client area of the window. - * - * @sa @ref window_pos - * @sa glfwSetWindowPosCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef void (* GLFWwindowposfun)(GLFWwindow*,int,int); - -/*! @brief The function signature for window resize callbacks. - * - * This is the function signature for window size callback functions. - * - * @param[in] window The window that was resized. - * @param[in] width The new width, in screen coordinates, of the window. - * @param[in] height The new height, in screen coordinates, of the window. - * - * @sa @ref window_size - * @sa glfwSetWindowSizeCallback - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -typedef void (* GLFWwindowsizefun)(GLFWwindow*,int,int); - -/*! @brief The function signature for window close callbacks. - * - * This is the function signature for window close callback functions. - * - * @param[in] window The window that the user attempted to close. - * - * @sa @ref window_close - * @sa glfwSetWindowCloseCallback - * - * @since Added in version 2.5. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -typedef void (* GLFWwindowclosefun)(GLFWwindow*); - -/*! @brief The function signature for window content refresh callbacks. - * - * This is the function signature for window refresh callback functions. - * - * @param[in] window The window whose content needs to be refreshed. - * - * @sa @ref window_refresh - * @sa glfwSetWindowRefreshCallback - * - * @since Added in version 2.5. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -typedef void (* GLFWwindowrefreshfun)(GLFWwindow*); - -/*! @brief The function signature for window focus/defocus callbacks. - * - * This is the function signature for window focus callback functions. - * - * @param[in] window The window that gained or lost input focus. - * @param[in] focused `GLFW_TRUE` if the window was given input focus, or - * `GLFW_FALSE` if it lost it. - * - * @sa @ref window_focus - * @sa glfwSetWindowFocusCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef void (* GLFWwindowfocusfun)(GLFWwindow*,int); - -/*! @brief The function signature for window iconify/restore callbacks. - * - * This is the function signature for window iconify/restore callback - * functions. - * - * @param[in] window The window that was iconified or restored. - * @param[in] iconified `GLFW_TRUE` if the window was iconified, or - * `GLFW_FALSE` if it was restored. - * - * @sa @ref window_iconify - * @sa glfwSetWindowIconifyCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef void (* GLFWwindowiconifyfun)(GLFWwindow*,int); - -/*! @brief The function signature for framebuffer resize callbacks. - * - * This is the function signature for framebuffer resize callback - * functions. - * - * @param[in] window The window whose framebuffer was resized. - * @param[in] width The new width, in pixels, of the framebuffer. - * @param[in] height The new height, in pixels, of the framebuffer. - * - * @sa @ref window_fbsize - * @sa glfwSetFramebufferSizeCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -typedef void (* GLFWframebuffersizefun)(GLFWwindow*,int,int); - -/*! @brief The function signature for mouse button callbacks. - * - * This is the function signature for mouse button callback functions. - * - * @param[in] window The window that received the event. - * @param[in] button The [mouse button](@ref buttons) that was pressed or - * released. - * @param[in] action One of `GLFW_PRESS` or `GLFW_RELEASE`. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa @ref input_mouse_button - * @sa glfwSetMouseButtonCallback - * - * @since Added in version 1.0. - * @glfw3 Added window handle and modifier mask parameters. - * - * @ingroup input - */ -typedef void (* GLFWmousebuttonfun)(GLFWwindow*,int,int,int); - -/*! @brief The function signature for cursor position callbacks. - * - * This is the function signature for cursor position callback functions. - * - * @param[in] window The window that received the event. - * @param[in] xpos The new cursor x-coordinate, relative to the left edge of - * the client area. - * @param[in] ypos The new cursor y-coordinate, relative to the top edge of the - * client area. - * - * @sa @ref cursor_pos - * @sa glfwSetCursorPosCallback - * - * @since Added in version 3.0. Replaces `GLFWmouseposfun`. - * - * @ingroup input - */ -typedef void (* GLFWcursorposfun)(GLFWwindow*,double,double); - -/*! @brief The function signature for cursor enter/leave callbacks. - * - * This is the function signature for cursor enter/leave callback functions. - * - * @param[in] window The window that received the event. - * @param[in] entered `GLFW_TRUE` if the cursor entered the window's client - * area, or `GLFW_FALSE` if it left it. - * - * @sa @ref cursor_enter - * @sa glfwSetCursorEnterCallback - * - * @since Added in version 3.0. - * - * @ingroup input - */ -typedef void (* GLFWcursorenterfun)(GLFWwindow*,int); - -/*! @brief The function signature for scroll callbacks. - * - * This is the function signature for scroll callback functions. - * - * @param[in] window The window that received the event. - * @param[in] xoffset The scroll offset along the x-axis. - * @param[in] yoffset The scroll offset along the y-axis. - * - * @sa @ref scrolling - * @sa glfwSetScrollCallback - * - * @since Added in version 3.0. Replaces `GLFWmousewheelfun`. - * - * @ingroup input - */ -typedef void (* GLFWscrollfun)(GLFWwindow*,double,double); - -/*! @brief The function signature for keyboard key callbacks. - * - * This is the function signature for keyboard key callback functions. - * - * @param[in] window The window that received the event. - * @param[in] key The [keyboard key](@ref keys) that was pressed or released. - * @param[in] scancode The system-specific scancode of the key. - * @param[in] action `GLFW_PRESS`, `GLFW_RELEASE` or `GLFW_REPEAT`. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa @ref input_key - * @sa glfwSetKeyCallback - * - * @since Added in version 1.0. - * @glfw3 Added window handle, scancode and modifier mask parameters. - * - * @ingroup input - */ -typedef void (* GLFWkeyfun)(GLFWwindow*,int,int,int,int); - -/*! @brief The function signature for Unicode character callbacks. - * - * This is the function signature for Unicode character callback functions. - * - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the character. - * - * @sa @ref input_char - * @sa glfwSetCharCallback - * - * @since Added in version 2.4. - * @glfw3 Added window handle parameter. - * - * @ingroup input - */ -typedef void (* GLFWcharfun)(GLFWwindow*,unsigned int); - -/*! @brief The function signature for Unicode character with modifiers - * callbacks. - * - * This is the function signature for Unicode character with modifiers callback - * functions. It is called for each input character, regardless of what - * modifier keys are held down. - * - * @param[in] window The window that received the event. - * @param[in] codepoint The Unicode code point of the character. - * @param[in] mods Bit field describing which [modifier keys](@ref mods) were - * held down. - * - * @sa @ref input_char - * @sa glfwSetCharModsCallback - * - * @since Added in version 3.1. - * - * @ingroup input - */ -typedef void (* GLFWcharmodsfun)(GLFWwindow*,unsigned int,int); - -/*! @brief The function signature for file drop callbacks. - * - * This is the function signature for file drop callbacks. - * - * @param[in] window The window that received the event. - * @param[in] count The number of dropped files. - * @param[in] paths The UTF-8 encoded file and/or directory path names. - * - * @sa @ref path_drop - * @sa glfwSetDropCallback - * - * @since Added in version 3.1. - * - * @ingroup input - */ -typedef void (* GLFWdropfun)(GLFWwindow*,int,const char**); - -/*! @brief The function signature for monitor configuration callbacks. - * - * This is the function signature for monitor configuration callback functions. - * - * @param[in] monitor The monitor that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. - * - * @sa @ref monitor_event - * @sa glfwSetMonitorCallback - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -typedef void (* GLFWmonitorfun)(GLFWmonitor*,int); - -/*! @brief The function signature for joystick configuration callbacks. - * - * This is the function signature for joystick configuration callback - * functions. - * - * @param[in] joy The joystick that was connected or disconnected. - * @param[in] event One of `GLFW_CONNECTED` or `GLFW_DISCONNECTED`. - * - * @sa @ref joystick_event - * @sa glfwSetJoystickCallback - * - * @since Added in version 3.2. - * - * @ingroup input - */ -typedef void (* GLFWjoystickfun)(int,int); - -/*! @brief Video mode type. - * - * This describes a single video mode. - * - * @sa @ref monitor_modes - * @sa glfwGetVideoMode glfwGetVideoModes - * - * @since Added in version 1.0. - * @glfw3 Added refresh rate member. - * - * @ingroup monitor - */ -typedef struct GLFWvidmode -{ - /*! The width, in screen coordinates, of the video mode. - */ - int width; - /*! The height, in screen coordinates, of the video mode. - */ - int height; - /*! The bit depth of the red channel of the video mode. - */ - int redBits; - /*! The bit depth of the green channel of the video mode. - */ - int greenBits; - /*! The bit depth of the blue channel of the video mode. - */ - int blueBits; - /*! The refresh rate, in Hz, of the video mode. - */ - int refreshRate; -} GLFWvidmode; - -/*! @brief Gamma ramp. - * - * This describes the gamma ramp for a monitor. - * - * @sa @ref monitor_gamma - * @sa glfwGetGammaRamp glfwSetGammaRamp - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -typedef struct GLFWgammaramp -{ - /*! An array of value describing the response of the red channel. - */ - unsigned short* red; - /*! An array of value describing the response of the green channel. - */ - unsigned short* green; - /*! An array of value describing the response of the blue channel. - */ - unsigned short* blue; - /*! The number of elements in each array. - */ - unsigned int size; -} GLFWgammaramp; - -/*! @brief Image data. - * - * @sa @ref cursor_custom - * - * @since Added in version 2.1. - * @glfw3 Removed format and bytes-per-pixel members. - */ -typedef struct GLFWimage -{ - /*! The width, in pixels, of this image. - */ - int width; - /*! The height, in pixels, of this image. - */ - int height; - /*! The pixel data of this image, arranged left-to-right, top-to-bottom. - */ - unsigned char* pixels; -} GLFWimage; - - -/************************************************************************* - * GLFW API functions - *************************************************************************/ - -/*! @brief Initializes the GLFW library. - * - * This function initializes the GLFW library. Before most GLFW functions can - * be used, GLFW must be initialized, and before an application terminates GLFW - * should be terminated in order to free any resources allocated during or - * after initialization. - * - * If this function fails, it calls @ref glfwTerminate before returning. If it - * succeeds, you should call @ref glfwTerminate before the application exits. - * - * Additional calls to this function after successful initialization but before - * termination will return `GLFW_TRUE` immediately. - * - * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. - * - * @remark @osx This function will change the current directory of the - * application to the `Contents/Resources` subdirectory of the application's - * bundle, if present. This can be disabled with a - * [compile-time option](@ref compile_options_osx). - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref intro_init - * @sa glfwTerminate - * - * @since Added in version 1.0. - * - * @ingroup init - */ -GLFWAPI int glfwInit(void); - -/*! @brief Terminates the GLFW library. - * - * This function destroys all remaining windows and cursors, restores any - * modified gamma ramps and frees any other allocated resources. Once this - * function is called, you must again call @ref glfwInit successfully before - * you will be able to use most GLFW functions. - * - * If GLFW has been successfully initialized, this function should be called - * before the application exits. If initialization fails, there is no need to - * call this function, as it is called by @ref glfwInit before it returns - * failure. - * - * @errors Possible errors include @ref GLFW_PLATFORM_ERROR. - * - * @remark This function may be called before @ref glfwInit. - * - * @warning The contexts of any remaining windows must not be current on any - * other thread when this function is called. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref intro_init - * @sa glfwInit - * - * @since Added in version 1.0. - * - * @ingroup init - */ -GLFWAPI void glfwTerminate(void); - -/*! @brief Retrieves the version of the GLFW library. - * - * This function retrieves the major, minor and revision numbers of the GLFW - * library. It is intended for when you are using GLFW as a shared library and - * want to ensure that you are using the minimum required version. - * - * Any or all of the version arguments may be `NULL`. - * - * @param[out] major Where to store the major version number, or `NULL`. - * @param[out] minor Where to store the minor version number, or `NULL`. - * @param[out] rev Where to store the revision number, or `NULL`. - * - * @errors None. - * - * @remark This function may be called before @ref glfwInit. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref intro_version - * @sa glfwGetVersionString - * - * @since Added in version 1.0. - * - * @ingroup init - */ -GLFWAPI void glfwGetVersion(int* major, int* minor, int* rev); - -/*! @brief Returns a string describing the compile-time configuration. - * - * This function returns the compile-time generated - * [version string](@ref intro_version_string) of the GLFW library binary. It - * describes the version, platform, compiler and any platform-specific - * compile-time options. It should not be confused with the OpenGL or OpenGL - * ES version string, queried with `glGetString`. - * - * __Do not use the version string__ to parse the GLFW library version. The - * @ref glfwGetVersion function provides the version of the running library - * binary in numerical format. - * - * @return The ASCII encoded GLFW version string. - * - * @errors None. - * - * @remark This function may be called before @ref glfwInit. - * - * @pointer_lifetime The returned string is static and compile-time generated. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref intro_version - * @sa glfwGetVersion - * - * @since Added in version 3.0. - * - * @ingroup init - */ -GLFWAPI const char* glfwGetVersionString(void); - -/*! @brief Sets the error callback. - * - * This function sets the error callback, which is called with an error code - * and a human-readable description each time a GLFW error occurs. - * - * The error callback is called on the thread where the error occurred. If you - * are using GLFW from multiple threads, your error callback needs to be - * written accordingly. - * - * Because the description string may have been generated specifically for that - * error, it is not guaranteed to be valid after the callback has returned. If - * you wish to use it after the callback returns, you need to make a copy. - * - * Once set, the error callback remains set even after the library has been - * terminated. - * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set. - * - * @errors None. - * - * @remark This function may be called before @ref glfwInit. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref error_handling - * - * @since Added in version 3.0. - * - * @ingroup init - */ -GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun); - -/*! @brief Returns the currently connected monitors. - * - * This function returns an array of handles for all currently connected - * monitors. The primary monitor is always first in the returned array. If no - * monitors were found, this function returns `NULL`. - * - * @param[out] count Where to store the number of monitors in the returned - * array. This is set to zero if an error occurred. - * @return An array of monitor handles, or `NULL` if no monitors were found or - * if an [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is guaranteed to be valid only until the - * monitor configuration changes or the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_monitors - * @sa @ref monitor_event - * @sa glfwGetPrimaryMonitor - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitor** glfwGetMonitors(int* count); - -/*! @brief Returns the primary monitor. - * - * This function returns the primary monitor. This is usually the monitor - * where elements like the task bar or global menu bar are located. - * - * @return The primary monitor, or `NULL` if no monitors were found or if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @remark The primary monitor is always first in the array returned by @ref - * glfwGetMonitors. - * - * @sa @ref monitor_monitors - * @sa glfwGetMonitors - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitor* glfwGetPrimaryMonitor(void); - -/*! @brief Returns the position of the monitor's viewport on the virtual screen. - * - * This function returns the position, in screen coordinates, of the upper-left - * corner of the specified monitor. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] monitor The monitor to query. - * @param[out] xpos Where to store the monitor x-coordinate, or `NULL`. - * @param[out] ypos Where to store the monitor y-coordinate, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwGetMonitorPos(GLFWmonitor* monitor, int* xpos, int* ypos); - -/*! @brief Returns the physical size of the monitor. - * - * This function returns the size, in millimetres, of the display area of the - * specified monitor. - * - * Some systems do not provide accurate monitor size information, either - * because the monitor - * [EDID](https://en.wikipedia.org/wiki/Extended_display_identification_data) - * data is incorrect or because the driver does not report it accurately. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] monitor The monitor to query. - * @param[out] widthMM Where to store the width, in millimetres, of the - * monitor's display area, or `NULL`. - * @param[out] heightMM Where to store the height, in millimetres, of the - * monitor's display area, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @remark @win32 calculates the returned physical size from the - * current resolution and system DPI instead of querying the monitor EDID data. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM); - -/*! @brief Returns the name of the specified monitor. - * - * This function returns a human-readable name, encoded as UTF-8, of the - * specified monitor. The name typically reflects the make and model of the - * monitor and is not guaranteed to be unique among the connected monitors. - * - * @param[in] monitor The monitor to query. - * @return The UTF-8 encoded name of the monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @pointer_lifetime The returned string is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified monitor is - * disconnected or the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_properties - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI const char* glfwGetMonitorName(GLFWmonitor* monitor); - -/*! @brief Sets the monitor configuration callback. - * - * This function sets the monitor configuration callback, or removes the - * currently set callback. This is called when a monitor is connected to or - * disconnected from the system. - * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_event - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun cbfun); - -/*! @brief Returns the available video modes for the specified monitor. - * - * This function returns an array of all video modes supported by the specified - * monitor. The returned array is sorted in ascending order, first by color - * bit depth (the sum of all channel depths) and then by resolution area (the - * product of width and height). - * - * @param[in] monitor The monitor to query. - * @param[out] count Where to store the number of video modes in the returned - * array. This is set to zero if an error occurred. - * @return An array of video modes, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified monitor is - * disconnected, this function is called again for that monitor or the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_modes - * @sa glfwGetVideoMode - * - * @since Added in version 1.0. - * @glfw3 Changed to return an array of modes for a specific monitor. - * - * @ingroup monitor - */ -GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* monitor, int* count); - -/*! @brief Returns the current mode of the specified monitor. - * - * This function returns the current video mode of the specified monitor. If - * you have created a full screen window for that monitor, the return value - * will depend on whether that window is iconified. - * - * @param[in] monitor The monitor to query. - * @return The current mode of the monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified monitor is - * disconnected or the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_modes - * @sa glfwGetVideoModes - * - * @since Added in version 3.0. Replaces `glfwGetDesktopMode`. - * - * @ingroup monitor - */ -GLFWAPI const GLFWvidmode* glfwGetVideoMode(GLFWmonitor* monitor); - -/*! @brief Generates a gamma ramp and sets it for the specified monitor. - * - * This function generates a 256-element gamma ramp from the specified exponent - * and then calls @ref glfwSetGammaRamp with it. The value must be a finite - * number greater than zero. - * - * @param[in] monitor The monitor whose gamma ramp to set. - * @param[in] gamma The desired exponent. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwSetGamma(GLFWmonitor* monitor, float gamma); - -/*! @brief Returns the current gamma ramp for the specified monitor. - * - * This function returns the current gamma ramp of the specified monitor. - * - * @param[in] monitor The monitor to query. - * @return The current gamma ramp, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned structure and its arrays are allocated and - * freed by GLFW. You should not free them yourself. They are valid until the - * specified monitor is disconnected, this function is called again for that - * monitor or the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI const GLFWgammaramp* glfwGetGammaRamp(GLFWmonitor* monitor); - -/*! @brief Sets the current gamma ramp for the specified monitor. - * - * This function sets the current gamma ramp for the specified monitor. The - * original gamma ramp for that monitor is saved by GLFW the first time this - * function is called and is restored by @ref glfwTerminate. - * - * @param[in] monitor The monitor whose gamma ramp to set. - * @param[in] ramp The gamma ramp to use. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @remark Gamma ramp sizes other than 256 are not supported by all platforms - * or graphics hardware. - * - * @remark @win32 The gamma ramp size must be 256. - * - * @pointer_lifetime The specified gamma ramp is copied before this function - * returns. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref monitor_gamma - * - * @since Added in version 3.0. - * - * @ingroup monitor - */ -GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp); - -/*! @brief Resets all window hints to their default values. - * - * This function resets all window hints to their - * [default values](@ref window_hints_values). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_hints - * @sa glfwWindowHint - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwDefaultWindowHints(void); - -/*! @brief Sets the specified window hint to the desired value. - * - * This function sets hints for the next call to @ref glfwCreateWindow. The - * hints, once set, retain their values until changed by a call to @ref - * glfwWindowHint or @ref glfwDefaultWindowHints, or until the library is - * terminated. - * - * This function does not check whether the specified hint values are valid. - * If you set hints to invalid values this will instead be reported by the next - * call to @ref glfwCreateWindow. - * - * @param[in] hint The [window hint](@ref window_hints) to set. - * @param[in] value The new value of the window hint. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_ENUM. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_hints - * @sa glfwDefaultWindowHints - * - * @since Added in version 3.0. Replaces `glfwOpenWindowHint`. - * - * @ingroup window - */ -GLFWAPI void glfwWindowHint(int hint, int value); - -/*! @brief Creates a window and its associated context. - * - * This function creates a window and its associated OpenGL or OpenGL ES - * context. Most of the options controlling how the window and its context - * should be created are specified with [window hints](@ref window_hints). - * - * Successful creation does not change which context is current. Before you - * can use the newly created context, you need to - * [make it current](@ref context_current). For information about the `share` - * parameter, see @ref context_sharing. - * - * The created window, framebuffer and context may differ from what you - * requested, as not all parameters and hints are - * [hard constraints](@ref window_hints_hard). This includes the size of the - * window, especially for full screen windows. To query the actual attributes - * of the created window, framebuffer and context, see @ref - * glfwGetWindowAttrib, @ref glfwGetWindowSize and @ref glfwGetFramebufferSize. - * - * To create a full screen window, you need to specify the monitor the window - * will cover. If no monitor is specified, the window will be windowed mode. - * Unless you have a way for the user to choose a specific monitor, it is - * recommended that you pick the primary monitor. For more information on how - * to query connected monitors, see @ref monitor_monitors. - * - * For full screen windows, the specified size becomes the resolution of the - * window's _desired video mode_. As long as a full screen window is not - * iconified, the supported video mode most closely matching the desired video - * mode is set for the specified monitor. For more information about full - * screen windows, including the creation of so called _windowed full screen_ - * or _borderless full screen_ windows, see @ref window_windowed_full_screen. - * - * By default, newly created windows use the placement recommended by the - * window system. To create the window at a specific position, make it - * initially invisible using the [GLFW_VISIBLE](@ref window_hints_wnd) window - * hint, set its [position](@ref window_pos) and then [show](@ref window_hide) - * it. - * - * As long as at least one full screen window is not iconified, the screensaver - * is prohibited from starting. - * - * Window systems put limits on window sizes. Very large or very small window - * dimensions may be overridden by the window system on creation. Check the - * actual [size](@ref window_size) after creation. - * - * The [swap interval](@ref buffer_swap) is not set during window creation and - * the initial value may vary depending on driver settings and defaults. - * - * @param[in] width The desired width, in screen coordinates, of the window. - * This must be greater than zero. - * @param[in] height The desired height, in screen coordinates, of the window. - * This must be greater than zero. - * @param[in] title The initial, UTF-8 encoded window title. - * @param[in] monitor The monitor to use for full screen mode, or `NULL` for - * windowed mode. - * @param[in] share The window whose context to share resources with, or `NULL` - * to not share resources. - * @return The handle of the created window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM, @ref GLFW_INVALID_VALUE, @ref GLFW_API_UNAVAILABLE, @ref - * GLFW_VERSION_UNAVAILABLE, @ref GLFW_FORMAT_UNAVAILABLE and @ref - * GLFW_PLATFORM_ERROR. - * - * @remark @win32 Window creation will fail if the Microsoft GDI software - * OpenGL implementation is the only one available. - * - * @remark @win32 If the executable has an icon resource named `GLFW_ICON,` - * it will be set as the icon for the window. If no such icon is present, the - * `IDI_WINLOGO` icon will be used instead. - * - * @remark @win32 The context to share resources with must not be current on - * any other thread. - * - * @remark @osx The GLFW window has no icon, as it is not a document - * window, but the dock icon will be the same as the application bundle's icon. - * For more information on bundles, see the - * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) - * in the Mac Developer Library. - * - * @remark @osx The first time a window is created the menu bar is populated - * with common commands like Hide, Quit and About. The About entry opens - * a minimal about dialog with information from the application's bundle. The - * menu bar can be disabled with a - * [compile-time option](@ref compile_options_osx). - * - * @remark @osx On OS X 10.10 and later the window frame will not be rendered - * at full resolution on Retina displays unless the `NSHighResolutionCapable` - * key is enabled in the application bundle's `Info.plist`. For more - * information, see - * [High Resolution Guidelines for OS X](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html) - * in the Mac Developer Library. The GLFW test and example programs use - * a custom `Info.plist` template for this, which can be found as - * `CMake/MacOSXBundleInfo.plist.in` in the source tree. - * - * @remark @x11 There is no mechanism for setting the window icon yet. - * - * @remark @x11 Some window managers will not respect the placement of - * initially hidden windows. - * - * @remark @x11 Due to the asynchronous nature of X11, it may take a moment for - * a window to reach its requested state. This means you may not be able to - * query the final size, position or other attributes directly after window - * creation. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_creation - * @sa glfwDestroyWindow - * - * @since Added in version 3.0. Replaces `glfwOpenWindow`. - * - * @ingroup window - */ -GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share); - -/*! @brief Destroys the specified window and its context. - * - * This function destroys the specified window and its context. On calling - * this function, no further callbacks will be called for that window. - * - * If the context of the specified window is current on the main thread, it is - * detached before being destroyed. - * - * @param[in] window The window to destroy. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @note The context of the specified window must not be current on any other - * thread when this function is called. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_creation - * @sa glfwCreateWindow - * - * @since Added in version 3.0. Replaces `glfwCloseWindow`. - * - * @ingroup window - */ -GLFWAPI void glfwDestroyWindow(GLFWwindow* window); - -/*! @brief Checks the close flag of the specified window. - * - * This function returns the value of the close flag of the specified window. - * - * @param[in] window The window to query. - * @return The value of the close flag. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @sa @ref window_close - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI int glfwWindowShouldClose(GLFWwindow* window); - -/*! @brief Sets the close flag of the specified window. - * - * This function sets the value of the close flag of the specified window. - * This can be used to override the user's attempt to close the window, or - * to signal that it should be closed. - * - * @param[in] window The window whose flag to change. - * @param[in] value The new value. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @sa @ref window_close - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowShouldClose(GLFWwindow* window, int value); - -/*! @brief Sets the title of the specified window. - * - * This function sets the window title, encoded as UTF-8, of the specified - * window. - * - * @param[in] window The window whose title to change. - * @param[in] title The UTF-8 encoded window title. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @remark @osx The window title will not be updated until the next time you - * process events. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_title - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title); - -/*! @brief Sets the icon for the specified window. - * - * This function sets the icon of the specified window. If passed an array of - * candidate images, those of or closest to the sizes desired by the system are - * selected. If no images are specified, the window reverts to its default - * icon. - * - * The desired image sizes varies depending on platform and system settings. - * The selected images will be rescaled as needed. Good sizes include 16x16, - * 32x32 and 48x48. - * - * @param[in] window The window whose icon to set. - * @param[in] count The number of images in the specified array, or zero to - * revert to the default window icon. - * @param[in] images The images to create the icon from. This is ignored if - * count is zero. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The specified image data is copied before this function - * returns. - * - * @remark @osx The GLFW window has no icon, as it is not a document - * window, but the dock icon will be the same as the application bundle's icon. - * For more information on bundles, see the - * [Bundle Programming Guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/) - * in the Mac Developer Library. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_icon - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* images); - -/*! @brief Retrieves the position of the client area of the specified window. - * - * This function retrieves the position, in screen coordinates, of the - * upper-left corner of the client area of the specified window. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] window The window to query. - * @param[out] xpos Where to store the x-coordinate of the upper-left corner of - * the client area, or `NULL`. - * @param[out] ypos Where to store the y-coordinate of the upper-left corner of - * the client area, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_pos - * @sa glfwSetWindowPos - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos); - -/*! @brief Sets the position of the client area of the specified window. - * - * This function sets the position, in screen coordinates, of the upper-left - * corner of the client area of the specified windowed mode window. If the - * window is a full screen window, this function does nothing. - * - * __Do not use this function__ to move an already visible window unless you - * have very good reasons for doing so, as it will confuse and annoy the user. - * - * The window manager may put limits on what positions are allowed. GLFW - * cannot and should not override these limits. - * - * @param[in] window The window to query. - * @param[in] xpos The x-coordinate of the upper-left corner of the client area. - * @param[in] ypos The y-coordinate of the upper-left corner of the client area. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_pos - * @sa glfwGetWindowPos - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowPos(GLFWwindow* window, int xpos, int ypos); - -/*! @brief Retrieves the size of the client area of the specified window. - * - * This function retrieves the size, in screen coordinates, of the client area - * of the specified window. If you wish to retrieve the size of the - * framebuffer of the window in pixels, see @ref glfwGetFramebufferSize. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose size to retrieve. - * @param[out] width Where to store the width, in screen coordinates, of the - * client area, or `NULL`. - * @param[out] height Where to store the height, in screen coordinates, of the - * client area, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_size - * @sa glfwSetWindowSize - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowSize(GLFWwindow* window, int* width, int* height); - -/*! @brief Sets the size limits of the specified window. - * - * This function sets the size limits of the client area of the specified - * window. If the window is full screen, the size limits only take effect if - * once it is made windowed. If the window is not resizable, this function - * does nothing. - * - * The size limits are applied immediately to a windowed mode window and may - * cause it to be resized. - * - * @param[in] window The window to set limits for. - * @param[in] minwidth The minimum width, in screen coordinates, of the client - * area, or `GLFW_DONT_CARE`. - * @param[in] minheight The minimum height, in screen coordinates, of the - * client area, or `GLFW_DONT_CARE`. - * @param[in] maxwidth The maximum width, in screen coordinates, of the client - * area, or `GLFW_DONT_CARE`. - * @param[in] maxheight The maximum height, in screen coordinates, of the - * client area, or `GLFW_DONT_CARE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @remark If you set size limits and an aspect ratio that conflict, the - * results are undefined. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_sizelimits - * @sa glfwSetWindowAspectRatio - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowSizeLimits(GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); - -/*! @brief Sets the aspect ratio of the specified window. - * - * This function sets the required aspect ratio of the client area of the - * specified window. If the window is full screen, the aspect ratio only takes - * effect once it is made windowed. If the window is not resizable, this - * function does nothing. - * - * The aspect ratio is specified as a numerator and a denominator and both - * values must be greater than zero. For example, the common 16:9 aspect ratio - * is specified as 16 and 9, respectively. - * - * If the numerator and denominator is set to `GLFW_DONT_CARE` then the aspect - * ratio limit is disabled. - * - * The aspect ratio is applied immediately to a windowed mode window and may - * cause it to be resized. - * - * @param[in] window The window to set limits for. - * @param[in] numer The numerator of the desired aspect ratio, or - * `GLFW_DONT_CARE`. - * @param[in] denom The denominator of the desired aspect ratio, or - * `GLFW_DONT_CARE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_VALUE and @ref GLFW_PLATFORM_ERROR. - * - * @remark If you set size limits and an aspect ratio that conflict, the - * results are undefined. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_sizelimits - * @sa glfwSetWindowSizeLimits - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowAspectRatio(GLFWwindow* window, int numer, int denom); - -/*! @brief Sets the size of the client area of the specified window. - * - * This function sets the size, in screen coordinates, of the client area of - * the specified window. - * - * For full screen windows, this function updates the resolution of its desired - * video mode and switches to the video mode closest to it, without affecting - * the window's context. As the context is unaffected, the bit depths of the - * framebuffer remain unchanged. - * - * If you wish to update the refresh rate of the desired video mode in addition - * to its resolution, see @ref glfwSetWindowMonitor. - * - * The window manager may put limits on what sizes are allowed. GLFW cannot - * and should not override these limits. - * - * @param[in] window The window to resize. - * @param[in] width The desired width, in screen coordinates, of the window - * client area. - * @param[in] height The desired height, in screen coordinates, of the window - * client area. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_size - * @sa glfwGetWindowSize - * @sa glfwSetWindowMonitor - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowSize(GLFWwindow* window, int width, int height); - -/*! @brief Retrieves the size of the framebuffer of the specified window. - * - * This function retrieves the size, in pixels, of the framebuffer of the - * specified window. If you wish to retrieve the size of the window in screen - * coordinates, see @ref glfwGetWindowSize. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose framebuffer to query. - * @param[out] width Where to store the width, in pixels, of the framebuffer, - * or `NULL`. - * @param[out] height Where to store the height, in pixels, of the framebuffer, - * or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_fbsize - * @sa glfwSetFramebufferSizeCallback - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwGetFramebufferSize(GLFWwindow* window, int* width, int* height); - -/*! @brief Retrieves the size of the frame of the window. - * - * This function retrieves the size, in screen coordinates, of each edge of the - * frame of the specified window. This size includes the title bar, if the - * window has one. The size of the frame may vary depending on the - * [window-related hints](@ref window_hints_wnd) used to create it. - * - * Because this function retrieves the size of each window frame edge and not - * the offset along a particular coordinate axis, the retrieved values will - * always be zero or positive. - * - * Any or all of the size arguments may be `NULL`. If an error occurs, all - * non-`NULL` size arguments will be set to zero. - * - * @param[in] window The window whose frame size to query. - * @param[out] left Where to store the size, in screen coordinates, of the left - * edge of the window frame, or `NULL`. - * @param[out] top Where to store the size, in screen coordinates, of the top - * edge of the window frame, or `NULL`. - * @param[out] right Where to store the size, in screen coordinates, of the - * right edge of the window frame, or `NULL`. - * @param[out] bottom Where to store the size, in screen coordinates, of the - * bottom edge of the window frame, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_size - * - * @since Added in version 3.1. - * - * @ingroup window - */ -GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* window, int* left, int* top, int* right, int* bottom); - -/*! @brief Iconifies the specified window. - * - * This function iconifies (minimizes) the specified window if it was - * previously restored. If the window is already iconified, this function does - * nothing. - * - * If the specified window is a full screen window, the original monitor - * resolution is restored until the window is restored. - * - * @param[in] window The window to iconify. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_iconify - * @sa glfwRestoreWindow - * @sa glfwMaximizeWindow - * - * @since Added in version 2.1. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwIconifyWindow(GLFWwindow* window); - -/*! @brief Restores the specified window. - * - * This function restores the specified window if it was previously iconified - * (minimized) or maximized. If the window is already restored, this function - * does nothing. - * - * If the specified window is a full screen window, the resolution chosen for - * the window is restored on the selected monitor. - * - * @param[in] window The window to restore. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_iconify - * @sa glfwIconifyWindow - * @sa glfwMaximizeWindow - * - * @since Added in version 2.1. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwRestoreWindow(GLFWwindow* window); - -/*! @brief Maximizes the specified window. - * - * This function maximizes the specified window if it was previously not - * maximized. If the window is already maximized, this function does nothing. - * - * If the specified window is a full screen window, this function does nothing. - * - * @param[in] window The window to maximize. - * - * @par Thread Safety - * This function may only be called from the main thread. - * - * @sa @ref window_iconify - * @sa glfwIconifyWindow - * @sa glfwRestoreWindow - * - * @since Added in GLFW 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwMaximizeWindow(GLFWwindow* window); - -/*! @brief Makes the specified window visible. - * - * This function makes the specified window visible if it was previously - * hidden. If the window is already visible or is in full screen mode, this - * function does nothing. - * - * @param[in] window The window to make visible. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_hide - * @sa glfwHideWindow - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwShowWindow(GLFWwindow* window); - -/*! @brief Hides the specified window. - * - * This function hides the specified window if it was previously visible. If - * the window is already hidden or is in full screen mode, this function does - * nothing. - * - * @param[in] window The window to hide. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_hide - * @sa glfwShowWindow - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwHideWindow(GLFWwindow* window); - -/*! @brief Brings the specified window to front and sets input focus. - * - * This function brings the specified window to front and sets input focus. - * The window should already be visible and not iconified. - * - * By default, both windowed and full screen mode windows are focused when - * initially created. Set the [GLFW_FOCUSED](@ref window_hints_wnd) to disable - * this behavior. - * - * __Do not use this function__ to steal focus from other applications unless - * you are certain that is what the user wants. Focus stealing can be - * extremely disruptive. - * - * @param[in] window The window to give input focus. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_focus - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwFocusWindow(GLFWwindow* window); - -/*! @brief Returns the monitor that the window uses for full screen mode. - * - * This function returns the handle of the monitor that the specified window is - * in full screen on. - * - * @param[in] window The window to query. - * @return The monitor, or `NULL` if the window is in windowed mode or an error - * occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_monitor - * @sa glfwSetWindowMonitor - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWmonitor* glfwGetWindowMonitor(GLFWwindow* window); - -/*! @brief Sets the mode, monitor, video mode and placement of a window. - * - * This function sets the monitor that the window uses for full screen mode or, - * if the monitor is `NULL`, makes it windowed mode. - * - * When setting a monitor, this function updates the width, height and refresh - * rate of the desired video mode and switches to the video mode closest to it. - * The window position is ignored when setting a monitor. - * - * When the monitor is `NULL`, the position, width and height are used to - * place the window client area. The refresh rate is ignored when no monitor - * is specified. - * - * If you only wish to update the resolution of a full screen window or the - * size of a windowed mode window, see @ref glfwSetWindowSize. - * - * When a window transitions from full screen to windowed mode, this function - * restores any previous window settings such as whether it is decorated, - * floating, resizable, has size or aspect ratio limits, etc.. - * - * @param[in] window The window whose monitor, size or video mode to set. - * @param[in] monitor The desired monitor, or `NULL` to set windowed mode. - * @param[in] xpos The desired x-coordinate of the upper-left corner of the - * client area. - * @param[in] ypos The desired y-coordinate of the upper-left corner of the - * client area. - * @param[in] width The desired with, in screen coordinates, of the client area - * or video mode. - * @param[in] height The desired height, in screen coordinates, of the client - * area or video mode. - * @param[in] refreshRate The desired refresh rate, in Hz, of the video mode. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_monitor - * @sa @ref window_full_screen - * @sa glfwGetWindowMonitor - * @sa glfwSetWindowSize - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowMonitor(GLFWwindow* window, GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); - -/*! @brief Returns an attribute of the specified window. - * - * This function returns the value of an attribute of the specified window or - * its OpenGL or OpenGL ES context. - * - * @param[in] window The window to query. - * @param[in] attrib The [window attribute](@ref window_attribs) whose value to - * return. - * @return The value of the attribute, or zero if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @remark Framebuffer related hints are not window attributes. See @ref - * window_attribs_fb for more information. - * - * @remark Zero is a valid value for many window and context related - * attributes so you cannot use a return value of zero as an indication of - * errors. However, this function should not fail as long as it is passed - * valid arguments and the library has been [initialized](@ref intro_init). - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_attribs - * - * @since Added in version 3.0. Replaces `glfwGetWindowParam` and - * `glfwGetGLVersion`. - * - * @ingroup window - */ -GLFWAPI int glfwGetWindowAttrib(GLFWwindow* window, int attrib); - -/*! @brief Sets the user pointer of the specified window. - * - * This function sets the user-defined pointer of the specified window. The - * current value is retained until the window is destroyed. The initial value - * is `NULL`. - * - * @param[in] window The window whose pointer to set. - * @param[in] pointer The new value. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @sa @ref window_userptr - * @sa glfwGetWindowUserPointer - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void glfwSetWindowUserPointer(GLFWwindow* window, void* pointer); - -/*! @brief Returns the user pointer of the specified window. - * - * This function returns the current value of the user-defined pointer of the - * specified window. The initial value is `NULL`. - * - * @param[in] window The window whose pointer to return. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @sa @ref window_userptr - * @sa glfwSetWindowUserPointer - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI void* glfwGetWindowUserPointer(GLFWwindow* window); - -/*! @brief Sets the position callback for the specified window. - * - * This function sets the position callback of the specified window, which is - * called when the window is moved. The callback is provided with the screen - * position of the upper-left corner of the client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_pos - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowposfun glfwSetWindowPosCallback(GLFWwindow* window, GLFWwindowposfun cbfun); - -/*! @brief Sets the size callback for the specified window. - * - * This function sets the size callback of the specified window, which is - * called when the window is resized. The callback is provided with the size, - * in screen coordinates, of the client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_size - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup window - */ -GLFWAPI GLFWwindowsizefun glfwSetWindowSizeCallback(GLFWwindow* window, GLFWwindowsizefun cbfun); - -/*! @brief Sets the close callback for the specified window. - * - * This function sets the close callback of the specified window, which is - * called when the user attempts to close the window, for example by clicking - * the close widget in the title bar. - * - * The close flag is set before this callback is called, but you can modify it - * at any time with @ref glfwSetWindowShouldClose. - * - * The close callback is not triggered by @ref glfwDestroyWindow. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @remark @osx Selecting Quit from the application menu will trigger the close - * callback for all windows. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_close - * - * @since Added in version 2.5. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup window - */ -GLFWAPI GLFWwindowclosefun glfwSetWindowCloseCallback(GLFWwindow* window, GLFWwindowclosefun cbfun); - -/*! @brief Sets the refresh callback for the specified window. - * - * This function sets the refresh callback of the specified window, which is - * called when the client area of the window needs to be redrawn, for example - * if the window has been exposed after having been covered by another window. - * - * On compositing window systems such as Aero, Compiz or Aqua, where the window - * contents are saved off-screen, this callback may be called only very - * infrequently or never at all. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_refresh - * - * @since Added in version 2.5. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup window - */ -GLFWAPI GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun cbfun); - -/*! @brief Sets the focus callback for the specified window. - * - * This function sets the focus callback of the specified window, which is - * called when the window gains or loses input focus. - * - * After the focus callback is called for a window that lost input focus, - * synthetic key and mouse button release events will be generated for all such - * that had been pressed. For more information, see @ref glfwSetKeyCallback - * and @ref glfwSetMouseButtonCallback. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_focus - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowfocusfun glfwSetWindowFocusCallback(GLFWwindow* window, GLFWwindowfocusfun cbfun); - -/*! @brief Sets the iconify callback for the specified window. - * - * This function sets the iconification callback of the specified window, which - * is called when the window is iconified or restored. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_iconify - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWwindowiconifyfun glfwSetWindowIconifyCallback(GLFWwindow* window, GLFWwindowiconifyfun cbfun); - -/*! @brief Sets the framebuffer resize callback for the specified window. - * - * This function sets the framebuffer resize callback of the specified window, - * which is called when the framebuffer of the specified window is resized. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref window_fbsize - * - * @since Added in version 3.0. - * - * @ingroup window - */ -GLFWAPI GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun cbfun); - -/*! @brief Processes all pending events. - * - * This function processes only those events that are already in the event - * queue and then returns immediately. Processing events will cause the window - * and input callbacks associated with those events to be called. - * - * On some platforms, a window move, resize or menu operation will cause event - * processing to block. This is due to how event processing is designed on - * those platforms. You can use the - * [window refresh callback](@ref window_refresh) to redraw the contents of - * your window when necessary during such operations. - * - * On some platforms, certain events are sent directly to the application - * without going through the event queue, causing callbacks to be called - * outside of a call to one of the event processing functions. - * - * Event processing is not required for joystick input to work. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref events - * @sa glfwWaitEvents - * @sa glfwWaitEventsTimeout - * - * @since Added in version 1.0. - * - * @ingroup window - */ -GLFWAPI void glfwPollEvents(void); - -/*! @brief Waits until events are queued and processes them. - * - * This function puts the calling thread to sleep until at least one event is - * available in the event queue. Once one or more events are available, - * it behaves exactly like @ref glfwPollEvents, i.e. the events in the queue - * are processed and the function then returns immediately. Processing events - * will cause the window and input callbacks associated with those events to be - * called. - * - * Since not all events are associated with callbacks, this function may return - * without a callback having been called even if you are monitoring all - * callbacks. - * - * On some platforms, a window move, resize or menu operation will cause event - * processing to block. This is due to how event processing is designed on - * those platforms. You can use the - * [window refresh callback](@ref window_refresh) to redraw the contents of - * your window when necessary during such operations. - * - * On some platforms, certain callbacks may be called outside of a call to one - * of the event processing functions. - * - * If no windows exist, this function returns immediately. For synchronization - * of threads in applications that do not create windows, use your threading - * library of choice. - * - * Event processing is not required for joystick input to work. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref events - * @sa glfwPollEvents - * @sa glfwWaitEventsTimeout - * - * @since Added in version 2.5. - * - * @ingroup window - */ -GLFWAPI void glfwWaitEvents(void); - -/*! @brief Waits with timeout until events are queued and processes them. - * - * This function puts the calling thread to sleep until at least one event is - * available in the event queue, or until the specified timeout is reached. If - * one or more events are available, it behaves exactly like @ref - * glfwPollEvents, i.e. the events in the queue are processed and the function - * then returns immediately. Processing events will cause the window and input - * callbacks associated with those events to be called. - * - * The timeout value must be a positive finite number. - * - * Since not all events are associated with callbacks, this function may return - * without a callback having been called even if you are monitoring all - * callbacks. - * - * On some platforms, a window move, resize or menu operation will cause event - * processing to block. This is due to how event processing is designed on - * those platforms. You can use the - * [window refresh callback](@ref window_refresh) to redraw the contents of - * your window when necessary during such operations. - * - * On some platforms, certain callbacks may be called outside of a call to one - * of the event processing functions. - * - * If no windows exist, this function returns immediately. For synchronization - * of threads in applications that do not create windows, use your threading - * library of choice. - * - * Event processing is not required for joystick input to work. - * - * @param[in] timeout The maximum amount of time, in seconds, to wait. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref events - * @sa glfwPollEvents - * @sa glfwWaitEvents - * - * @since Added in version 3.2. - * - * @ingroup window - */ -GLFWAPI void glfwWaitEventsTimeout(double timeout); - -/*! @brief Posts an empty event to the event queue. - * - * This function posts an empty event from the current thread to the event - * queue, causing @ref glfwWaitEvents to return. - * - * If no windows exist, this function returns immediately. For synchronization - * of threads in applications that do not create windows, use your threading - * library of choice. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref events - * @sa glfwWaitEvents - * - * @since Added in version 3.1. - * - * @ingroup window - */ -GLFWAPI void glfwPostEmptyEvent(void); - -/*! @brief Returns the value of an input option for the specified window. - * - * This function returns the value of an input option for the specified window. - * The mode must be one of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * @param[in] window The window to query. - * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_ENUM. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa glfwSetInputMode - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode); - -/*! @brief Sets an input option for the specified window. - * - * This function sets an input mode option for the specified window. The mode - * must be one of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * - * If the mode is `GLFW_CURSOR`, the value must be one of the following cursor - * modes: - * - `GLFW_CURSOR_NORMAL` makes the cursor visible and behaving normally. - * - `GLFW_CURSOR_HIDDEN` makes the cursor invisible when it is over the client - * area of the window but does not restrict the cursor from leaving. - * - `GLFW_CURSOR_DISABLED` hides and grabs the cursor, providing virtual - * and unlimited cursor movement. This is useful for implementing for - * example 3D camera controls. - * - * If the mode is `GLFW_STICKY_KEYS`, the value must be either `GLFW_TRUE` to - * enable sticky keys, or `GLFW_FALSE` to disable it. If sticky keys are - * enabled, a key press will ensure that @ref glfwGetKey returns `GLFW_PRESS` - * the next time it is called even if the key had been released before the - * call. This is useful when you are only interested in whether keys have been - * pressed but not when or in which order. - * - * If the mode is `GLFW_STICKY_MOUSE_BUTTONS`, the value must be either - * `GLFW_TRUE` to enable sticky mouse buttons, or `GLFW_FALSE` to disable it. - * If sticky mouse buttons are enabled, a mouse button press will ensure that - * @ref glfwGetMouseButton returns `GLFW_PRESS` the next time it is called even - * if the mouse button had been released before the call. This is useful when - * you are only interested in whether mouse buttons have been pressed but not - * when or in which order. - * - * @param[in] window The window whose input mode to set. - * @param[in] mode One of `GLFW_CURSOR`, `GLFW_STICKY_KEYS` or - * `GLFW_STICKY_MOUSE_BUTTONS`. - * @param[in] value The new value of the specified input mode. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa glfwGetInputMode - * - * @since Added in version 3.0. Replaces `glfwEnable` and `glfwDisable`. - * - * @ingroup input - */ -GLFWAPI void glfwSetInputMode(GLFWwindow* window, int mode, int value); - -/*! @brief Returns the localized name of the specified printable key. - * - * This function returns the localized name of the specified printable key. - * This is intended for displaying key bindings to the user. - * - * If the key is `GLFW_KEY_UNKNOWN`, the scancode is used instead, otherwise - * the scancode is ignored. If a non-printable key or (if the key is - * `GLFW_KEY_UNKNOWN`) a scancode that maps to a non-printable key is - * specified, this function returns `NULL`. - * - * This behavior allows you to pass in the arguments passed to the - * [key callback](@ref input_key) without modification. - * - * The printable keys are: - * - `GLFW_KEY_APOSTROPHE` - * - `GLFW_KEY_COMMA` - * - `GLFW_KEY_MINUS` - * - `GLFW_KEY_PERIOD` - * - `GLFW_KEY_SLASH` - * - `GLFW_KEY_SEMICOLON` - * - `GLFW_KEY_EQUAL` - * - `GLFW_KEY_LEFT_BRACKET` - * - `GLFW_KEY_RIGHT_BRACKET` - * - `GLFW_KEY_BACKSLASH` - * - `GLFW_KEY_WORLD_1` - * - `GLFW_KEY_WORLD_2` - * - `GLFW_KEY_0` to `GLFW_KEY_9` - * - `GLFW_KEY_A` to `GLFW_KEY_Z` - * - `GLFW_KEY_KP_0` to `GLFW_KEY_KP_9` - * - `GLFW_KEY_KP_DECIMAL` - * - `GLFW_KEY_KP_DIVIDE` - * - `GLFW_KEY_KP_MULTIPLY` - * - `GLFW_KEY_KP_SUBTRACT` - * - `GLFW_KEY_KP_ADD` - * - `GLFW_KEY_KP_EQUAL` - * - * @param[in] key The key to query, or `GLFW_KEY_UNKNOWN`. - * @param[in] scancode The scancode of the key to query. - * @return The localized name of the key, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned string is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the next call to @ref - * glfwGetKeyName, or until the library is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_key_name - * - * @since Added in version 3.2. - * - * @ingroup input - */ -GLFWAPI const char* glfwGetKeyName(int key, int scancode); - -/*! @brief Returns the last reported state of a keyboard key for the specified - * window. - * - * This function returns the last state reported for the specified key to the - * specified window. The returned state is one of `GLFW_PRESS` or - * `GLFW_RELEASE`. The higher-level action `GLFW_REPEAT` is only reported to - * the key callback. - * - * If the `GLFW_STICKY_KEYS` input mode is enabled, this function returns - * `GLFW_PRESS` the first time you call it for a key that was pressed, even if - * that key has already been released. - * - * The key functions deal with physical keys, with [key tokens](@ref keys) - * named after their use on the standard US keyboard layout. If you want to - * input text, use the Unicode character callback instead. - * - * The [modifier key bit masks](@ref mods) are not key tokens and cannot be - * used with this function. - * - * __Do not use this function__ to implement [text input](@ref input_char). - * - * @param[in] window The desired window. - * @param[in] key The desired [keyboard key](@ref keys). `GLFW_KEY_UNKNOWN` is - * not a valid key for this function. - * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_ENUM. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_key - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup input - */ -GLFWAPI int glfwGetKey(GLFWwindow* window, int key); - -/*! @brief Returns the last reported state of a mouse button for the specified - * window. - * - * This function returns the last state reported for the specified mouse button - * to the specified window. The returned state is one of `GLFW_PRESS` or - * `GLFW_RELEASE`. - * - * If the `GLFW_STICKY_MOUSE_BUTTONS` input mode is enabled, this function - * `GLFW_PRESS` the first time you call it for a mouse button that was pressed, - * even if that mouse button has already been released. - * - * @param[in] window The desired window. - * @param[in] button The desired [mouse button](@ref buttons). - * @return One of `GLFW_PRESS` or `GLFW_RELEASE`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_ENUM. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_mouse_button - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup input - */ -GLFWAPI int glfwGetMouseButton(GLFWwindow* window, int button); - -/*! @brief Retrieves the position of the cursor relative to the client area of - * the window. - * - * This function returns the position of the cursor, in screen coordinates, - * relative to the upper-left corner of the client area of the specified - * window. - * - * If the cursor is disabled (with `GLFW_CURSOR_DISABLED`) then the cursor - * position is unbounded and limited only by the minimum and maximum values of - * a `double`. - * - * The coordinate can be converted to their integer equivalents with the - * `floor` function. Casting directly to an integer type works for positive - * coordinates, but fails for negative ones. - * - * Any or all of the position arguments may be `NULL`. If an error occurs, all - * non-`NULL` position arguments will be set to zero. - * - * @param[in] window The desired window. - * @param[out] xpos Where to store the cursor x-coordinate, relative to the - * left edge of the client area, or `NULL`. - * @param[out] ypos Where to store the cursor y-coordinate, relative to the to - * top edge of the client area, or `NULL`. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_pos - * @sa glfwSetCursorPos - * - * @since Added in version 3.0. Replaces `glfwGetMousePos`. - * - * @ingroup input - */ -GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos); - -/*! @brief Sets the position of the cursor, relative to the client area of the - * window. - * - * This function sets the position, in screen coordinates, of the cursor - * relative to the upper-left corner of the client area of the specified - * window. The window must have input focus. If the window does not have - * input focus when this function is called, it fails silently. - * - * __Do not use this function__ to implement things like camera controls. GLFW - * already provides the `GLFW_CURSOR_DISABLED` cursor mode that hides the - * cursor, transparently re-centers it and provides unconstrained cursor - * motion. See @ref glfwSetInputMode for more information. - * - * If the cursor mode is `GLFW_CURSOR_DISABLED` then the cursor position is - * unconstrained and limited only by the minimum and maximum values of - * a `double`. - * - * @param[in] window The desired window. - * @param[in] xpos The desired x-coordinate, relative to the left edge of the - * client area. - * @param[in] ypos The desired y-coordinate, relative to the top edge of the - * client area. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @remark @x11 Due to the asynchronous nature of X11, it may take a moment for - * the window focus event to arrive. This means you may not be able to set the - * cursor position directly after window creation. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_pos - * @sa glfwGetCursorPos - * - * @since Added in version 3.0. Replaces `glfwSetMousePos`. - * - * @ingroup input - */ -GLFWAPI void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos); - -/*! @brief Creates a custom cursor. - * - * Creates a new custom cursor image that can be set for a window with @ref - * glfwSetCursor. The cursor can be destroyed with @ref glfwDestroyCursor. - * Any remaining cursors are destroyed by @ref glfwTerminate. - * - * The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight - * bits per channel. They are arranged canonically as packed sequential rows, - * starting from the top-left corner. - * - * The cursor hotspot is specified in pixels, relative to the upper-left corner - * of the cursor image. Like all other coordinate systems in GLFW, the X-axis - * points to the right and the Y-axis points down. - * - * @param[in] image The desired cursor image. - * @param[in] xhot The desired x-coordinate, in pixels, of the cursor hotspot. - * @param[in] yhot The desired y-coordinate, in pixels, of the cursor hotspot. - * @return The handle of the created cursor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The specified image data is copied before this function - * returns. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwDestroyCursor - * @sa glfwCreateStandardCursor - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot); - -/*! @brief Creates a cursor with a standard shape. - * - * Returns a cursor with a [standard shape](@ref shapes), that can be set for - * a window with @ref glfwSetCursor. - * - * @param[in] shape One of the [standard shapes](@ref shapes). - * @return A new cursor ready to use or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwCreateCursor - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcursor* glfwCreateStandardCursor(int shape); - -/*! @brief Destroys a cursor. - * - * This function destroys a cursor previously created with @ref - * glfwCreateCursor. Any remaining cursors will be destroyed by @ref - * glfwTerminate. - * - * @param[in] cursor The cursor object to destroy. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @reentrancy This function must not be called from a callback. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_object - * @sa glfwCreateCursor - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI void glfwDestroyCursor(GLFWcursor* cursor); - -/*! @brief Sets the cursor for the window. - * - * This function sets the cursor image to be used when the cursor is over the - * client area of the specified window. The set cursor will only be visible - * when the [cursor mode](@ref cursor_mode) of the window is - * `GLFW_CURSOR_NORMAL`. - * - * On some platforms, the set cursor may not be visible unless the window also - * has input focus. - * - * @param[in] window The window to set the cursor for. - * @param[in] cursor The cursor to set, or `NULL` to switch back to the default - * arrow cursor. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_object - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI void glfwSetCursor(GLFWwindow* window, GLFWcursor* cursor); - -/*! @brief Sets the key callback. - * - * This function sets the key callback of the specified window, which is called - * when a key is pressed, repeated or released. - * - * The key functions deal with physical keys, with layout independent - * [key tokens](@ref keys) named after their values in the standard US keyboard - * layout. If you want to input text, use the - * [character callback](@ref glfwSetCharCallback) instead. - * - * When a window loses input focus, it will generate synthetic key release - * events for all pressed keys. You can tell these events from user-generated - * events by the fact that the synthetic ones are generated after the focus - * loss event has been processed, i.e. after the - * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. - * - * The scancode of a key is specific to that platform or sometimes even to that - * machine. Scancodes are intended to allow users to bind keys that don't have - * a GLFW key token. Such keys have `key` set to `GLFW_KEY_UNKNOWN`, their - * state is not saved and so it cannot be queried with @ref glfwGetKey. - * - * Sometimes GLFW needs to generate synthetic key events, in which case the - * scancode may be zero. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new key callback, or `NULL` to remove the currently - * set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_key - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup input - */ -GLFWAPI GLFWkeyfun glfwSetKeyCallback(GLFWwindow* window, GLFWkeyfun cbfun); - -/*! @brief Sets the Unicode character callback. - * - * This function sets the character callback of the specified window, which is - * called when a Unicode character is input. - * - * The character callback is intended for Unicode text input. As it deals with - * characters, it is keyboard layout dependent, whereas the - * [key callback](@ref glfwSetKeyCallback) is not. Characters do not map 1:1 - * to physical keys, as a key may produce zero, one or more characters. If you - * want to know whether a specific physical key was pressed or released, see - * the key callback instead. - * - * The character callback behaves as system text input normally does and will - * not be called if modifier keys are held down that would prevent normal text - * input on that platform, for example a Super (Command) key on OS X or Alt key - * on Windows. There is a - * [character with modifiers callback](@ref glfwSetCharModsCallback) that - * receives these events. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_char - * - * @since Added in version 2.4. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup input - */ -GLFWAPI GLFWcharfun glfwSetCharCallback(GLFWwindow* window, GLFWcharfun cbfun); - -/*! @brief Sets the Unicode character with modifiers callback. - * - * This function sets the character with modifiers callback of the specified - * window, which is called when a Unicode character is input regardless of what - * modifier keys are used. - * - * The character with modifiers callback is intended for implementing custom - * Unicode character input. For regular Unicode text input, see the - * [character callback](@ref glfwSetCharCallback). Like the character - * callback, the character with modifiers callback deals with characters and is - * keyboard layout dependent. Characters do not map 1:1 to physical keys, as - * a key may produce zero, one or more characters. If you want to know whether - * a specific physical key was pressed or released, see the - * [key callback](@ref glfwSetKeyCallback) instead. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or an - * error occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_char - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWcharmodsfun glfwSetCharModsCallback(GLFWwindow* window, GLFWcharmodsfun cbfun); - -/*! @brief Sets the mouse button callback. - * - * This function sets the mouse button callback of the specified window, which - * is called when a mouse button is pressed or released. - * - * When a window loses input focus, it will generate synthetic mouse button - * release events for all pressed mouse buttons. You can tell these events - * from user-generated events by the fact that the synthetic ones are generated - * after the focus loss event has been processed, i.e. after the - * [window focus callback](@ref glfwSetWindowFocusCallback) has been called. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref input_mouse_button - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter and return value. - * - * @ingroup input - */ -GLFWAPI GLFWmousebuttonfun glfwSetMouseButtonCallback(GLFWwindow* window, GLFWmousebuttonfun cbfun); - -/*! @brief Sets the cursor position callback. - * - * This function sets the cursor position callback of the specified window, - * which is called when the cursor is moved. The callback is provided with the - * position, in screen coordinates, relative to the upper-left corner of the - * client area of the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_pos - * - * @since Added in version 3.0. Replaces `glfwSetMousePosCallback`. - * - * @ingroup input - */ -GLFWAPI GLFWcursorposfun glfwSetCursorPosCallback(GLFWwindow* window, GLFWcursorposfun cbfun); - -/*! @brief Sets the cursor enter/exit callback. - * - * This function sets the cursor boundary crossing callback of the specified - * window, which is called when the cursor enters or leaves the client area of - * the window. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref cursor_enter - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI GLFWcursorenterfun glfwSetCursorEnterCallback(GLFWwindow* window, GLFWcursorenterfun cbfun); - -/*! @brief Sets the scroll callback. - * - * This function sets the scroll callback of the specified window, which is - * called when a scrolling device is used, such as a mouse wheel or scrolling - * area of a touchpad. - * - * The scroll callback receives all scrolling input, like that from a mouse - * wheel or a touchpad scrolling area. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new scroll callback, or `NULL` to remove the currently - * set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref scrolling - * - * @since Added in version 3.0. Replaces `glfwSetMouseWheelCallback`. - * - * @ingroup input - */ -GLFWAPI GLFWscrollfun glfwSetScrollCallback(GLFWwindow* window, GLFWscrollfun cbfun); - -/*! @brief Sets the file drop callback. - * - * This function sets the file drop callback of the specified window, which is - * called when one or more dragged files are dropped on the window. - * - * Because the path array and its strings may have been generated specifically - * for that event, they are not guaranteed to be valid after the callback has - * returned. If you wish to use them after the callback returns, you need to - * make a deep copy. - * - * @param[in] window The window whose callback to set. - * @param[in] cbfun The new file drop callback, or `NULL` to remove the - * currently set callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref path_drop - * - * @since Added in version 3.1. - * - * @ingroup input - */ -GLFWAPI GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun cbfun); - -/*! @brief Returns whether the specified joystick is present. - * - * This function returns whether the specified joystick is present. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @return `GLFW_TRUE` if the joystick is present, or `GLFW_FALSE` otherwise. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick - * - * @since Added in version 3.0. Replaces `glfwGetJoystickParam`. - * - * @ingroup input - */ -GLFWAPI int glfwJoystickPresent(int joy); - -/*! @brief Returns the values of all axes of the specified joystick. - * - * This function returns the values of all axes of the specified joystick. - * Each element in the array is a value between -1.0 and 1.0. - * - * Querying a joystick slot with no device present is not an error, but will - * cause this function to return `NULL`. Call @ref glfwJoystickPresent to - * check device presence. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @param[out] count Where to store the number of axis values in the returned - * array. This is set to zero if an error occurred. - * @return An array of axis values, or `NULL` if the joystick is not present. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified joystick is - * disconnected, this function is called again for that joystick or the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick_axis - * - * @since Added in version 3.0. Replaces `glfwGetJoystickPos`. - * - * @ingroup input - */ -GLFWAPI const float* glfwGetJoystickAxes(int joy, int* count); - -/*! @brief Returns the state of all buttons of the specified joystick. - * - * This function returns the state of all buttons of the specified joystick. - * Each element in the array is either `GLFW_PRESS` or `GLFW_RELEASE`. - * - * Querying a joystick slot with no device present is not an error, but will - * cause this function to return `NULL`. Call @ref glfwJoystickPresent to - * check device presence. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @param[out] count Where to store the number of button states in the returned - * array. This is set to zero if an error occurred. - * @return An array of button states, or `NULL` if the joystick is not present. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified joystick is - * disconnected, this function is called again for that joystick or the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick_button - * - * @since Added in version 2.2. - * @glfw3 Changed to return a dynamic array. - * - * @ingroup input - */ -GLFWAPI const unsigned char* glfwGetJoystickButtons(int joy, int* count); - -/*! @brief Returns the name of the specified joystick. - * - * This function returns the name, encoded as UTF-8, of the specified joystick. - * The returned string is allocated and freed by GLFW. You should not free it - * yourself. - * - * Querying a joystick slot with no device present is not an error, but will - * cause this function to return `NULL`. Call @ref glfwJoystickPresent to - * check device presence. - * - * @param[in] joy The [joystick](@ref joysticks) to query. - * @return The UTF-8 encoded name of the joystick, or `NULL` if the joystick - * is not present. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned string is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the specified joystick is - * disconnected, this function is called again for that joystick or the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick_name - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI const char* glfwGetJoystickName(int joy); - -/*! @brief Sets the joystick configuration callback. - * - * This function sets the joystick configuration callback, or removes the - * currently set callback. This is called when a joystick is connected to or - * disconnected from the system. - * - * @param[in] cbfun The new callback, or `NULL` to remove the currently set - * callback. - * @return The previously set callback, or `NULL` if no callback was set or the - * library had not been [initialized](@ref intro_init). - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref joystick_event - * - * @since Added in version 3.2. - * - * @ingroup input - */ -GLFWAPI GLFWjoystickfun glfwSetJoystickCallback(GLFWjoystickfun cbfun); - -/*! @brief Sets the clipboard to the specified string. - * - * This function sets the system clipboard to the specified, UTF-8 encoded - * string. - * - * @param[in] window The window that will own the clipboard contents. - * @param[in] string A UTF-8 encoded string. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The specified string is copied before this function - * returns. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref clipboard - * @sa glfwGetClipboardString - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string); - -/*! @brief Returns the contents of the clipboard as a string. - * - * This function returns the contents of the system clipboard, if it contains - * or is convertible to a UTF-8 encoded string. If the clipboard is empty or - * if its contents cannot be converted, `NULL` is returned and a @ref - * GLFW_FORMAT_UNAVAILABLE error is generated. - * - * @param[in] window The window that will request the clipboard contents. - * @return The contents of the clipboard as a UTF-8 encoded string, or `NULL` - * if an [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_PLATFORM_ERROR. - * - * @pointer_lifetime The returned string is allocated and freed by GLFW. You - * should not free it yourself. It is valid until the next call to @ref - * glfwGetClipboardString or @ref glfwSetClipboardString, or until the library - * is terminated. - * - * @thread_safety This function must only be called from the main thread. - * - * @sa @ref clipboard - * @sa glfwSetClipboardString - * - * @since Added in version 3.0. - * - * @ingroup input - */ -GLFWAPI const char* glfwGetClipboardString(GLFWwindow* window); - -/*! @brief Returns the value of the GLFW timer. - * - * This function returns the value of the GLFW timer. Unless the timer has - * been set using @ref glfwSetTime, the timer measures time elapsed since GLFW - * was initialized. - * - * The resolution of the timer is system dependent, but is usually on the order - * of a few micro- or nanoseconds. It uses the highest-resolution monotonic - * time source on each supported platform. - * - * @return The current value, in seconds, or zero if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. Reading of the - * internal timer offset is not atomic. - * - * @sa @ref time - * - * @since Added in version 1.0. - * - * @ingroup input - */ -GLFWAPI double glfwGetTime(void); - -/*! @brief Sets the GLFW timer. - * - * This function sets the value of the GLFW timer. It then continues to count - * up from that value. The value must be a positive finite number less than - * or equal to 18446744073.0, which is approximately 584.5 years. - * - * @param[in] time The new value, in seconds. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_INVALID_VALUE. - * - * @remark The upper limit of the timer is calculated as - * floor((264 - 1) / 109) and is due to implementations - * storing nanoseconds in 64 bits. The limit may be increased in the future. - * - * @thread_safety This function may be called from any thread. Writing of the - * internal timer offset is not atomic. - * - * @sa @ref time - * - * @since Added in version 2.2. - * - * @ingroup input - */ -GLFWAPI void glfwSetTime(double time); - -/*! @brief Returns the current value of the raw timer. - * - * This function returns the current value of the raw timer, measured in - * 1 / frequency seconds. To get the frequency, call @ref - * glfwGetTimerFrequency. - * - * @return The value of the timer, or zero if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref time - * @sa glfwGetTimerFrequency - * - * @since Added in version 3.2. - * - * @ingroup input - */ -GLFWAPI uint64_t glfwGetTimerValue(void); - -/*! @brief Returns the frequency, in Hz, of the raw timer. - * - * This function returns the frequency, in Hz, of the raw timer. - * - * @return The frequency of the timer, in Hz, or zero if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref time - * @sa glfwGetTimerValue - * - * @since Added in version 3.2. - * - * @ingroup input - */ -GLFWAPI uint64_t glfwGetTimerFrequency(void); - -/*! @brief Makes the context of the specified window current for the calling - * thread. - * - * This function makes the OpenGL or OpenGL ES context of the specified window - * current on the calling thread. A context can only be made current on - * a single thread at a time and each thread can have only a single current - * context at a time. - * - * By default, making a context non-current implicitly forces a pipeline flush. - * On machines that support `GL_KHR_context_flush_control`, you can control - * whether a context performs this flush by setting the - * [GLFW_CONTEXT_RELEASE_BEHAVIOR](@ref window_hints_ctx) window hint. - * - * The specified window must have an OpenGL or OpenGL ES context. Specifying - * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT - * error. - * - * @param[in] window The window whose context to make current, or `NULL` to - * detach the current context. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref context_current - * @sa glfwGetCurrentContext - * - * @since Added in version 3.0. - * - * @ingroup context - */ -GLFWAPI void glfwMakeContextCurrent(GLFWwindow* window); - -/*! @brief Returns the window whose context is current on the calling thread. - * - * This function returns the window whose OpenGL or OpenGL ES context is - * current on the calling thread. - * - * @return The window whose context is current, or `NULL` if no window's - * context is current. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref context_current - * @sa glfwMakeContextCurrent - * - * @since Added in version 3.0. - * - * @ingroup context - */ -GLFWAPI GLFWwindow* glfwGetCurrentContext(void); - -/*! @brief Swaps the front and back buffers of the specified window. - * - * This function swaps the front and back buffers of the specified window when - * rendering with OpenGL or OpenGL ES. If the swap interval is greater than - * zero, the GPU driver waits the specified number of screen updates before - * swapping the buffers. - * - * The specified window must have an OpenGL or OpenGL ES context. Specifying - * a window without a context will generate a @ref GLFW_NO_WINDOW_CONTEXT - * error. - * - * This function does not apply to Vulkan. If you are rendering with Vulkan, - * see `vkQueuePresentKHR` instead. - * - * @param[in] window The window whose buffers to swap. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_WINDOW_CONTEXT and @ref GLFW_PLATFORM_ERROR. - * - * @remark __EGL:__ The context of the specified window must be current on the - * calling thread. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref buffer_swap - * @sa glfwSwapInterval - * - * @since Added in version 1.0. - * @glfw3 Added window handle parameter. - * - * @ingroup window - */ -GLFWAPI void glfwSwapBuffers(GLFWwindow* window); - -/*! @brief Sets the swap interval for the current context. - * - * This function sets the swap interval for the current OpenGL or OpenGL ES - * context, i.e. the number of screen updates to wait from the time @ref - * glfwSwapBuffers was called before swapping the buffers and returning. This - * is sometimes called _vertical synchronization_, _vertical retrace - * synchronization_ or just _vsync_. - * - * Contexts that support either of the `WGL_EXT_swap_control_tear` and - * `GLX_EXT_swap_control_tear` extensions also accept negative swap intervals, - * which allow the driver to swap even if a frame arrives a little bit late. - * You can check for the presence of these extensions using @ref - * glfwExtensionSupported. For more information about swap tearing, see the - * extension specifications. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * This function does not apply to Vulkan. If you are rendering with Vulkan, - * see the present mode of your swapchain instead. - * - * @param[in] interval The minimum number of screen updates to wait for - * until the buffers are swapped by @ref glfwSwapBuffers. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR. - * - * @remark This function is not called during context creation, leaving the - * swap interval set to whatever is the default on that platform. This is done - * because some swap interval extensions used by GLFW do not allow the swap - * interval to be reset to zero once it has been set to a non-zero value. - * - * @remark Some GPU drivers do not honor the requested swap interval, either - * because of a user setting that overrides the application's request or due to - * bugs in the driver. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref buffer_swap - * @sa glfwSwapBuffers - * - * @since Added in version 1.0. - * - * @ingroup context - */ -GLFWAPI void glfwSwapInterval(int interval); - -/*! @brief Returns whether the specified extension is available. - * - * This function returns whether the specified - * [API extension](@ref context_glext) is supported by the current OpenGL or - * OpenGL ES context. It searches both for client API extension and context - * creation API extensions. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * As this functions retrieves and searches one or more extension strings each - * call, it is recommended that you cache its results if it is going to be used - * frequently. The extension strings will not change during the lifetime of - * a context, so there is no danger in doing this. - * - * This function does not apply to Vulkan. If you are using Vulkan, see @ref - * glfwGetRequiredInstanceExtensions, `vkEnumerateInstanceExtensionProperties` - * and `vkEnumerateDeviceExtensionProperties` instead. - * - * @param[in] extension The ASCII encoded name of the extension. - * @return `GLFW_TRUE` if the extension is available, or `GLFW_FALSE` - * otherwise. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_CURRENT_CONTEXT, @ref GLFW_INVALID_VALUE and @ref - * GLFW_PLATFORM_ERROR. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref context_glext - * @sa glfwGetProcAddress - * - * @since Added in version 1.0. - * - * @ingroup context - */ -GLFWAPI int glfwExtensionSupported(const char* extension); - -/*! @brief Returns the address of the specified function for the current - * context. - * - * This function returns the address of the specified OpenGL or OpenGL ES - * [core or extension function](@ref context_glext), if it is supported - * by the current context. - * - * A context must be current on the calling thread. Calling this function - * without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error. - * - * This function does not apply to Vulkan. If you are rendering with Vulkan, - * see @ref glfwGetInstanceProcAddress, `vkGetInstanceProcAddr` and - * `vkGetDeviceProcAddr` instead. - * - * @param[in] procname The ASCII encoded name of the function. - * @return The address of the function, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_NO_CURRENT_CONTEXT and @ref GLFW_PLATFORM_ERROR. - * - * @remark The address of a given function is not guaranteed to be the same - * between contexts. - * - * @remark This function may return a non-`NULL` address despite the - * associated version or extension not being available. Always check the - * context version or extension string first. - * - * @pointer_lifetime The returned function pointer is valid until the context - * is destroyed or the library is terminated. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref context_glext - * @sa glfwExtensionSupported - * - * @since Added in version 1.0. - * - * @ingroup context - */ -GLFWAPI GLFWglproc glfwGetProcAddress(const char* procname); - -/*! @brief Returns whether the Vulkan loader has been found. - * - * This function returns whether the Vulkan loader has been found. This check - * is performed by @ref glfwInit. - * - * The availability of a Vulkan loader does not by itself guarantee that window - * surface creation or even device creation is possible. Call @ref - * glfwGetRequiredInstanceExtensions to check whether the extensions necessary - * for Vulkan surface creation are available and @ref - * glfwGetPhysicalDevicePresentationSupport to check whether a queue family of - * a physical device supports image presentation. - * - * @return `GLFW_TRUE` if Vulkan is available, or `GLFW_FALSE` otherwise. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref vulkan_support - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI int glfwVulkanSupported(void); - -/*! @brief Returns the Vulkan instance extensions required by GLFW. - * - * This function returns an array of names of Vulkan instance extensions required - * by GLFW for creating Vulkan surfaces for GLFW windows. If successful, the - * list will always contains `VK_KHR_surface`, so if you don't require any - * additional extensions you can pass this list directly to the - * `VkInstanceCreateInfo` struct. - * - * If Vulkan is not available on the machine, this function returns `NULL` and - * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported - * to check whether Vulkan is available. - * - * If Vulkan is available but no set of extensions allowing window surface - * creation was found, this function returns `NULL`. You may still use Vulkan - * for off-screen rendering and compute work. - * - * @param[out] count Where to store the number of extensions in the returned - * array. This is set to zero if an error occurred. - * @return An array of ASCII encoded extension names, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_API_UNAVAILABLE. - * - * @remarks Additional extensions may be required by future versions of GLFW. - * You should check if any extensions you wish to enable are already in the - * returned array, as it is an error to specify an extension more than once in - * the `VkInstanceCreateInfo` struct. - * - * @pointer_lifetime The returned array is allocated and freed by GLFW. You - * should not free it yourself. It is guaranteed to be valid only until the - * library is terminated. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref vulkan_ext - * @sa glfwCreateWindowSurface - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI const char** glfwGetRequiredInstanceExtensions(uint32_t* count); - -#if defined(VK_VERSION_1_0) - -/*! @brief Returns the address of the specified Vulkan instance function. - * - * This function returns the address of the specified Vulkan core or extension - * function for the specified instance. If instance is set to `NULL` it can - * return any function exported from the Vulkan loader, including at least the - * following functions: - * - * - `vkEnumerateInstanceExtensionProperties` - * - `vkEnumerateInstanceLayerProperties` - * - `vkCreateInstance` - * - `vkGetInstanceProcAddr` - * - * If Vulkan is not available on the machine, this function returns `NULL` and - * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported - * to check whether Vulkan is available. - * - * This function is equivalent to calling `vkGetInstanceProcAddr` with - * a platform-specific query of the Vulkan loader as a fallback. - * - * @param[in] instance The Vulkan instance to query, or `NULL` to retrieve - * functions related to instance creation. - * @param[in] procname The ASCII encoded name of the function. - * @return The address of the function, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref - * GLFW_API_UNAVAILABLE. - * - * @pointer_lifetime The returned function pointer is valid until the library - * is terminated. - * - * @thread_safety This function may be called from any thread. - * - * @sa @ref vulkan_proc - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI GLFWvkproc glfwGetInstanceProcAddress(VkInstance instance, const char* procname); - -/*! @brief Returns whether the specified queue family can present images. - * - * This function returns whether the specified queue family of the specified - * physical device supports presentation to the platform GLFW was built for. - * - * If Vulkan or the required window surface creation instance extensions are - * not available on the machine, or if the specified instance was not created - * with the required extensions, this function returns `GLFW_FALSE` and - * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref glfwVulkanSupported - * to check whether Vulkan is available and @ref - * glfwGetRequiredInstanceExtensions to check what instance extensions are - * required. - * - * @param[in] instance The instance that the physical device belongs to. - * @param[in] device The physical device that the queue family belongs to. - * @param[in] queuefamily The index of the queue family to query. - * @return `GLFW_TRUE` if the queue family supports presentation, or - * `GLFW_FALSE` otherwise. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. - * - * @thread_safety This function may be called from any thread. For - * synchronization details of Vulkan objects, see the Vulkan specification. - * - * @sa @ref vulkan_present - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); - -/*! @brief Creates a Vulkan surface for the specified window. - * - * This function creates a Vulkan surface for the specified window. - * - * If the Vulkan loader was not found at initialization, this function returns - * `VK_ERROR_INITIALIZATION_FAILED` and generates a @ref GLFW_API_UNAVAILABLE - * error. Call @ref glfwVulkanSupported to check whether the Vulkan loader was - * found. - * - * If the required window surface creation instance extensions are not - * available or if the specified instance was not created with these extensions - * enabled, this function returns `VK_ERROR_EXTENSION_NOT_PRESENT` and - * generates a @ref GLFW_API_UNAVAILABLE error. Call @ref - * glfwGetRequiredInstanceExtensions to check what instance extensions are - * required. - * - * The window surface must be destroyed before the specified Vulkan instance. - * It is the responsibility of the caller to destroy the window surface. GLFW - * does not destroy it for you. Call `vkDestroySurfaceKHR` to destroy the - * surface. - * - * @param[in] instance The Vulkan instance to create the surface in. - * @param[in] window The window to create the surface for. - * @param[in] allocator The allocator to use, or `NULL` to use the default - * allocator. - * @param[out] surface Where to store the handle of the surface. This is set - * to `VK_NULL_HANDLE` if an error occurred. - * @return `VK_SUCCESS` if successful, or a Vulkan error code if an - * [error](@ref error_handling) occurred. - * - * @errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref - * GLFW_API_UNAVAILABLE and @ref GLFW_PLATFORM_ERROR. - * - * @remarks If an error occurs before the creation call is made, GLFW returns - * the Vulkan error code most appropriate for the error. Appropriate use of - * @ref glfwVulkanSupported and @ref glfwGetRequiredInstanceExtensions should - * eliminate almost all occurrences of these errors. - * - * @thread_safety This function may be called from any thread. For - * synchronization details of Vulkan objects, see the Vulkan specification. - * - * @sa @ref vulkan_surface - * @sa glfwGetRequiredInstanceExtensions - * - * @since Added in version 3.2. - * - * @ingroup vulkan - */ -GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* window, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface); - -#endif /*VK_VERSION_1_0*/ - - -/************************************************************************* - * Global definition cleanup - *************************************************************************/ - -/* ------------------- BEGIN SYSTEM/COMPILER SPECIFIC -------------------- */ - -#ifdef GLFW_WINGDIAPI_DEFINED - #undef WINGDIAPI - #undef GLFW_WINGDIAPI_DEFINED -#endif - -#ifdef GLFW_CALLBACK_DEFINED - #undef CALLBACK - #undef GLFW_CALLBACK_DEFINED -#endif - -/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */ - - -#ifdef __cplusplus -} -#endif - -#endif /* _glfw3_h_ */ - diff --git a/third_party/imgui/examples/libs/glfw/include/GLFW/glfw3native.h b/third_party/imgui/examples/libs/glfw/include/GLFW/glfw3native.h deleted file mode 100644 index 9fa955e9..00000000 --- a/third_party/imgui/examples/libs/glfw/include/GLFW/glfw3native.h +++ /dev/null @@ -1,456 +0,0 @@ -/************************************************************************* - * GLFW 3.2 - www.glfw.org - * A library for OpenGL, window and input - *------------------------------------------------------------------------ - * Copyright (c) 2002-2006 Marcus Geelnard - * Copyright (c) 2006-2010 Camilla Berglund - * - * This software is provided 'as-is', without any express or implied - * warranty. In no event will the authors be held liable for any damages - * arising from the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software - * in a product, an acknowledgment in the product documentation would - * be appreciated but is not required. - * - * 2. Altered source versions must be plainly marked as such, and must not - * be misrepresented as being the original software. - * - * 3. This notice may not be removed or altered from any source - * distribution. - * - *************************************************************************/ - -#ifndef _glfw3_native_h_ -#define _glfw3_native_h_ - -#ifdef __cplusplus -extern "C" { -#endif - - -/************************************************************************* - * Doxygen documentation - *************************************************************************/ - -/*! @file glfw3native.h - * @brief The header of the native access functions. - * - * This is the header file of the native access functions. See @ref native for - * more information. - */ -/*! @defgroup native Native access - * - * **By using the native access functions you assert that you know what you're - * doing and how to fix problems caused by using them. If you don't, you - * shouldn't be using them.** - * - * Before the inclusion of @ref glfw3native.h, you may define exactly one - * window system API macro and zero or more context creation API macros. - * - * The chosen backends must match those the library was compiled for. Failure - * to do this will cause a link-time error. - * - * The available window API macros are: - * * `GLFW_EXPOSE_NATIVE_WIN32` - * * `GLFW_EXPOSE_NATIVE_COCOA` - * * `GLFW_EXPOSE_NATIVE_X11` - * * `GLFW_EXPOSE_NATIVE_WAYLAND` - * * `GLFW_EXPOSE_NATIVE_MIR` - * - * The available context API macros are: - * * `GLFW_EXPOSE_NATIVE_WGL` - * * `GLFW_EXPOSE_NATIVE_NSGL` - * * `GLFW_EXPOSE_NATIVE_GLX` - * * `GLFW_EXPOSE_NATIVE_EGL` - * - * These macros select which of the native access functions that are declared - * and which platform-specific headers to include. It is then up your (by - * definition platform-specific) code to handle which of these should be - * defined. - */ - - -/************************************************************************* - * System headers and types - *************************************************************************/ - -#if defined(GLFW_EXPOSE_NATIVE_WIN32) - // This is a workaround for the fact that glfw3.h needs to export APIENTRY (for - // example to allow applications to correctly declare a GL_ARB_debug_output - // callback) but windows.h assumes no one will define APIENTRY before it does - #undef APIENTRY - #include -#elif defined(GLFW_EXPOSE_NATIVE_COCOA) - #include - #if defined(__OBJC__) - #import - #else - typedef void* id; - #endif -#elif defined(GLFW_EXPOSE_NATIVE_X11) - #include - #include -#elif defined(GLFW_EXPOSE_NATIVE_WAYLAND) - #include -#elif defined(GLFW_EXPOSE_NATIVE_MIR) - #include -#endif - -#if defined(GLFW_EXPOSE_NATIVE_WGL) - /* WGL is declared by windows.h */ -#endif -#if defined(GLFW_EXPOSE_NATIVE_NSGL) - /* NSGL is declared by Cocoa.h */ -#endif -#if defined(GLFW_EXPOSE_NATIVE_GLX) - #include -#endif -#if defined(GLFW_EXPOSE_NATIVE_EGL) - #include -#endif - - -/************************************************************************* - * Functions - *************************************************************************/ - -#if defined(GLFW_EXPOSE_NATIVE_WIN32) -/*! @brief Returns the adapter device name of the specified monitor. - * - * @return The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`) - * of the specified monitor, or `NULL` if an [error](@ref error_handling) - * occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor); - -/*! @brief Returns the display device name of the specified monitor. - * - * @return The UTF-8 encoded display device name (for example - * `\\.\DISPLAY1\Monitor0`) of the specified monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor); - -/*! @brief Returns the `HWND` of the specified window. - * - * @return The `HWND` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_WGL) -/*! @brief Returns the `HGLRC` of the specified window. - * - * @return The `HGLRC` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_COCOA) -/*! @brief Returns the `CGDirectDisplayID` of the specified monitor. - * - * @return The `CGDirectDisplayID` of the specified monitor, or - * `kCGNullDirectDisplay` if an [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor); - -/*! @brief Returns the `NSWindow` of the specified window. - * - * @return The `NSWindow` of the specified window, or `nil` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_NSGL) -/*! @brief Returns the `NSOpenGLContext` of the specified window. - * - * @return The `NSOpenGLContext` of the specified window, or `nil` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI id glfwGetNSGLContext(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_X11) -/*! @brief Returns the `Display` used by GLFW. - * - * @return The `Display` used by GLFW, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI Display* glfwGetX11Display(void); - -/*! @brief Returns the `RRCrtc` of the specified monitor. - * - * @return The `RRCrtc` of the specified monitor, or `None` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor); - -/*! @brief Returns the `RROutput` of the specified monitor. - * - * @return The `RROutput` of the specified monitor, or `None` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.1. - * - * @ingroup native - */ -GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor); - -/*! @brief Returns the `Window` of the specified window. - * - * @return The `Window` of the specified window, or `None` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI Window glfwGetX11Window(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_GLX) -/*! @brief Returns the `GLXContext` of the specified window. - * - * @return The `GLXContext` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window); - -/*! @brief Returns the `GLXWindow` of the specified window. - * - * @return The `GLXWindow` of the specified window, or `None` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_WAYLAND) -/*! @brief Returns the `struct wl_display*` used by GLFW. - * - * @return The `struct wl_display*` used by GLFW, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI struct wl_display* glfwGetWaylandDisplay(void); - -/*! @brief Returns the `struct wl_output*` of the specified monitor. - * - * @return The `struct wl_output*` of the specified monitor, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor); - -/*! @brief Returns the main `struct wl_surface*` of the specified window. - * - * @return The main `struct wl_surface*` of the specified window, or `NULL` if - * an [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_MIR) -/*! @brief Returns the `MirConnection*` used by GLFW. - * - * @return The `MirConnection*` used by GLFW, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI MirConnection* glfwGetMirDisplay(void); - -/*! @brief Returns the Mir output ID of the specified monitor. - * - * @return The Mir output ID of the specified monitor, or zero if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI int glfwGetMirMonitor(GLFWmonitor* monitor); - -/*! @brief Returns the `MirSurface*` of the specified window. - * - * @return The `MirSurface*` of the specified window, or `NULL` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.2. - * - * @ingroup native - */ -GLFWAPI MirSurface* glfwGetMirWindow(GLFWwindow* window); -#endif - -#if defined(GLFW_EXPOSE_NATIVE_EGL) -/*! @brief Returns the `EGLDisplay` used by GLFW. - * - * @return The `EGLDisplay` used by GLFW, or `EGL_NO_DISPLAY` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI EGLDisplay glfwGetEGLDisplay(void); - -/*! @brief Returns the `EGLContext` of the specified window. - * - * @return The `EGLContext` of the specified window, or `EGL_NO_CONTEXT` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window); - -/*! @brief Returns the `EGLSurface` of the specified window. - * - * @return The `EGLSurface` of the specified window, or `EGL_NO_SURFACE` if an - * [error](@ref error_handling) occurred. - * - * @thread_safety This function may be called from any thread. Access is not - * synchronized. - * - * @since Added in version 3.0. - * - * @ingroup native - */ -GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window); -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _glfw3_native_h_ */ - diff --git a/third_party/imgui/examples/libs/glfw/lib-vc2010-32/glfw3.lib b/third_party/imgui/examples/libs/glfw/lib-vc2010-32/glfw3.lib deleted file mode 100644 index 348abecf..00000000 Binary files a/third_party/imgui/examples/libs/glfw/lib-vc2010-32/glfw3.lib and /dev/null differ diff --git a/third_party/imgui/examples/libs/glfw/lib-vc2010-64/glfw3.lib b/third_party/imgui/examples/libs/glfw/lib-vc2010-64/glfw3.lib deleted file mode 100644 index 768f3083..00000000 Binary files a/third_party/imgui/examples/libs/glfw/lib-vc2010-64/glfw3.lib and /dev/null differ diff --git a/third_party/imgui/examples/libs/usynergy/README.txt b/third_party/imgui/examples/libs/usynergy/README.txt deleted file mode 100644 index c86b9096..00000000 --- a/third_party/imgui/examples/libs/usynergy/README.txt +++ /dev/null @@ -1,8 +0,0 @@ - -uSynergy client -- Implementation for the embedded Synergy client library -version 1.0.0, July 7th, 2012 -Copyright (c) 2012 Alex Evans - -This is a copy of the files once found at: - https://github.com/symless/synergy-core/tree/790d108a56ada9caad8e56ff777d444485a69da9/src/micro - diff --git a/third_party/imgui/examples/libs/usynergy/uSynergy.c b/third_party/imgui/examples/libs/usynergy/uSynergy.c deleted file mode 100644 index 8dce47b8..00000000 --- a/third_party/imgui/examples/libs/usynergy/uSynergy.c +++ /dev/null @@ -1,636 +0,0 @@ -/* -uSynergy client -- Implementation for the embedded Synergy client library - version 1.0.0, July 7th, 2012 - -Copyright (c) 2012 Alex Evans - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. - - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source - distribution. -*/ -#include "uSynergy.h" -#include -#include - - - -//--------------------------------------------------------------------------------------------------------------------- -// Internal helpers -//--------------------------------------------------------------------------------------------------------------------- - - - -/** -@brief Read 16 bit integer in network byte order and convert to native byte order -**/ -static int16_t sNetToNative16(const unsigned char *value) -{ -#ifdef USYNERGY_LITTLE_ENDIAN - return value[1] | (value[0] << 8); -#else - return value[0] | (value[1] << 8); -#endif -} - - - -/** -@brief Read 32 bit integer in network byte order and convert to native byte order -**/ -static int32_t sNetToNative32(const unsigned char *value) -{ -#ifdef USYNERGY_LITTLE_ENDIAN - return value[3] | (value[2] << 8) | (value[1] << 16) | (value[0] << 24); -#else - return value[0] | (value[1] << 8) | (value[2] << 16) | (value[3] << 24); -#endif -} - - - -/** -@brief Trace text to client -**/ -static void sTrace(uSynergyContext *context, const char* text) -{ - // Don't trace if we don't have a trace function - if (context->m_traceFunc != 0L) - context->m_traceFunc(context->m_cookie, text); -} - - - -/** -@brief Add string to reply packet -**/ -static void sAddString(uSynergyContext *context, const char *string) -{ - size_t len = strlen(string); - memcpy(context->m_replyCur, string, len); - context->m_replyCur += len; -} - - - -/** -@brief Add uint8 to reply packet -**/ -static void sAddUInt8(uSynergyContext *context, uint8_t value) -{ - *context->m_replyCur++ = value; -} - - - -/** -@brief Add uint16 to reply packet -**/ -static void sAddUInt16(uSynergyContext *context, uint16_t value) -{ - uint8_t *reply = context->m_replyCur; - *reply++ = (uint8_t)(value >> 8); - *reply++ = (uint8_t)value; - context->m_replyCur = reply; -} - - - -/** -@brief Add uint32 to reply packet -**/ -static void sAddUInt32(uSynergyContext *context, uint32_t value) -{ - uint8_t *reply = context->m_replyCur; - *reply++ = (uint8_t)(value >> 24); - *reply++ = (uint8_t)(value >> 16); - *reply++ = (uint8_t)(value >> 8); - *reply++ = (uint8_t)value; - context->m_replyCur = reply; -} - - - -/** -@brief Send reply packet -**/ -static uSynergyBool sSendReply(uSynergyContext *context) -{ - // Set header size - uint8_t *reply_buf = context->m_replyBuffer; - uint32_t reply_len = (uint32_t)(context->m_replyCur - reply_buf); /* Total size of reply */ - uint32_t body_len = reply_len - 4; /* Size of body */ - uSynergyBool ret; - reply_buf[0] = (uint8_t)(body_len >> 24); - reply_buf[1] = (uint8_t)(body_len >> 16); - reply_buf[2] = (uint8_t)(body_len >> 8); - reply_buf[3] = (uint8_t)body_len; - - // Send reply - ret = context->m_sendFunc(context->m_cookie, context->m_replyBuffer, reply_len); - - // Reset reply buffer write pointer - context->m_replyCur = context->m_replyBuffer+4; - return ret; -} - - - -/** -@brief Call mouse callback after a mouse event -**/ -static void sSendMouseCallback(uSynergyContext *context) -{ - // Skip if no callback is installed - if (context->m_mouseCallback == 0L) - return; - - // Send callback - context->m_mouseCallback(context->m_cookie, context->m_mouseX, context->m_mouseY, context->m_mouseWheelX, - context->m_mouseWheelY, context->m_mouseButtonLeft, context->m_mouseButtonRight, context->m_mouseButtonMiddle); -} - - - -/** -@brief Send keyboard callback when a key has been pressed or released -**/ -static void sSendKeyboardCallback(uSynergyContext *context, uint16_t key, uint16_t modifiers, uSynergyBool down, uSynergyBool repeat) -{ - // Skip if no callback is installed - if (context->m_keyboardCallback == 0L) - return; - - // Send callback - context->m_keyboardCallback(context->m_cookie, key, modifiers, down, repeat); -} - - - -/** -@brief Send joystick callback -**/ -static void sSendJoystickCallback(uSynergyContext *context, uint8_t joyNum) -{ - int8_t *sticks; - - // Skip if no callback is installed - if (context->m_joystickCallback == 0L) - return; - - // Send callback - sticks = context->m_joystickSticks[joyNum]; - context->m_joystickCallback(context->m_cookie, joyNum, context->m_joystickButtons[joyNum], sticks[0], sticks[1], sticks[2], sticks[3]); -} - - - -/** -@brief Parse a single client message, update state, send callbacks and send replies -**/ -#define USYNERGY_IS_PACKET(pkt_id) memcmp(message+4, pkt_id, 4)==0 -static void sProcessMessage(uSynergyContext *context, const uint8_t *message) -{ - // We have a packet! - if (memcmp(message+4, "Synergy", 7)==0) - { - // Welcome message - // kMsgHello = "Synergy%2i%2i" - // kMsgHelloBack = "Synergy%2i%2i%s" - sAddString(context, "Synergy"); - sAddUInt16(context, USYNERGY_PROTOCOL_MAJOR); - sAddUInt16(context, USYNERGY_PROTOCOL_MINOR); - sAddUInt32(context, (uint32_t)strlen(context->m_clientName)); - sAddString(context, context->m_clientName); - if (!sSendReply(context)) - { - // Send reply failed, let's try to reconnect - sTrace(context, "SendReply failed, trying to reconnect in a second"); - context->m_connected = USYNERGY_FALSE; - context->m_sleepFunc(context->m_cookie, 1000); - } - else - { - // Let's assume we're connected - char buffer[256+1]; - sprintf(buffer, "Connected as client \"%s\"", context->m_clientName); - sTrace(context, buffer); - context->m_hasReceivedHello = USYNERGY_TRUE; - } - return; - } - else if (USYNERGY_IS_PACKET("QINF")) - { - // Screen info. Reply with DINF - // kMsgQInfo = "QINF" - // kMsgDInfo = "DINF%2i%2i%2i%2i%2i%2i%2i" - uint16_t x = 0, y = 0, warp = 0; - sAddString(context, "DINF"); - sAddUInt16(context, x); - sAddUInt16(context, y); - sAddUInt16(context, context->m_clientWidth); - sAddUInt16(context, context->m_clientHeight); - sAddUInt16(context, warp); - sAddUInt16(context, 0); // mx? - sAddUInt16(context, 0); // my? - sSendReply(context); - return; - } - else if (USYNERGY_IS_PACKET("CIAK")) - { - // Do nothing? - // kMsgCInfoAck = "CIAK" - return; - } - else if (USYNERGY_IS_PACKET("CROP")) - { - // Do nothing? - // kMsgCResetOptions = "CROP" - return; - } - else if (USYNERGY_IS_PACKET("CINN")) - { - // Screen enter. Reply with CNOP - // kMsgCEnter = "CINN%2i%2i%4i%2i" - - // Obtain the Synergy sequence number - context->m_sequenceNumber = sNetToNative32(message + 12); - context->m_isCaptured = USYNERGY_TRUE; - - // Call callback - if (context->m_screenActiveCallback != 0L) - context->m_screenActiveCallback(context->m_cookie, USYNERGY_TRUE); - } - else if (USYNERGY_IS_PACKET("COUT")) - { - // Screen leave - // kMsgCLeave = "COUT" - context->m_isCaptured = USYNERGY_FALSE; - - // Call callback - if (context->m_screenActiveCallback != 0L) - context->m_screenActiveCallback(context->m_cookie, USYNERGY_FALSE); - } - else if (USYNERGY_IS_PACKET("DMDN")) - { - // Mouse down - // kMsgDMouseDown = "DMDN%1i" - char btn = message[8]-1; - if (btn==2) - context->m_mouseButtonRight = USYNERGY_TRUE; - else if (btn==1) - context->m_mouseButtonMiddle = USYNERGY_TRUE; - else - context->m_mouseButtonLeft = USYNERGY_TRUE; - sSendMouseCallback(context); - } - else if (USYNERGY_IS_PACKET("DMUP")) - { - // Mouse up - // kMsgDMouseUp = "DMUP%1i" - char btn = message[8]-1; - if (btn==2) - context->m_mouseButtonRight = USYNERGY_FALSE; - else if (btn==1) - context->m_mouseButtonMiddle = USYNERGY_FALSE; - else - context->m_mouseButtonLeft = USYNERGY_FALSE; - sSendMouseCallback(context); - } - else if (USYNERGY_IS_PACKET("DMMV")) - { - // Mouse move. Reply with CNOP - // kMsgDMouseMove = "DMMV%2i%2i" - context->m_mouseX = sNetToNative16(message+8); - context->m_mouseY = sNetToNative16(message+10); - sSendMouseCallback(context); - } - else if (USYNERGY_IS_PACKET("DMWM")) - { - // Mouse wheel - // kMsgDMouseWheel = "DMWM%2i%2i" - // kMsgDMouseWheel1_0 = "DMWM%2i" - context->m_mouseWheelX += sNetToNative16(message+8); - context->m_mouseWheelY += sNetToNative16(message+10); - sSendMouseCallback(context); - } - else if (USYNERGY_IS_PACKET("DKDN")) - { - // Key down - // kMsgDKeyDown = "DKDN%2i%2i%2i" - // kMsgDKeyDown1_0 = "DKDN%2i%2i" - //uint16_t id = sNetToNative16(message+8); - uint16_t mod = sNetToNative16(message+10); - uint16_t key = sNetToNative16(message+12); - sSendKeyboardCallback(context, key, mod, USYNERGY_TRUE, USYNERGY_FALSE); - } - else if (USYNERGY_IS_PACKET("DKRP")) - { - // Key repeat - // kMsgDKeyRepeat = "DKRP%2i%2i%2i%2i" - // kMsgDKeyRepeat1_0 = "DKRP%2i%2i%2i" - uint16_t mod = sNetToNative16(message+10); -// uint16_t count = sNetToNative16(message+12); - uint16_t key = sNetToNative16(message+14); - sSendKeyboardCallback(context, key, mod, USYNERGY_TRUE, USYNERGY_TRUE); - } - else if (USYNERGY_IS_PACKET("DKUP")) - { - // Key up - // kMsgDKeyUp = "DKUP%2i%2i%2i" - // kMsgDKeyUp1_0 = "DKUP%2i%2i" - //uint16 id=Endian::sNetToNative(sbuf[4]); - uint16_t mod = sNetToNative16(message+10); - uint16_t key = sNetToNative16(message+12); - sSendKeyboardCallback(context, key, mod, USYNERGY_FALSE, USYNERGY_FALSE); - } - else if (USYNERGY_IS_PACKET("DGBT")) - { - // Joystick buttons - // kMsgDGameButtons = "DGBT%1i%2i"; - uint8_t joy_num = message[8]; - if (joy_numm_joystickButtons[joy_num] = (message[9] << 8) | message[10]; - sSendJoystickCallback(context, joy_num); - } - } - else if (USYNERGY_IS_PACKET("DGST")) - { - // Joystick sticks - // kMsgDGameSticks = "DGST%1i%1i%1i%1i%1i"; - uint8_t joy_num = message[8]; - if (joy_numm_joystickSticks[joy_num], message+9, 4); - sSendJoystickCallback(context, joy_num); - } - } - else if (USYNERGY_IS_PACKET("DSOP")) - { - // Set options - // kMsgDSetOptions = "DSOP%4I" - } - else if (USYNERGY_IS_PACKET("CALV")) - { - // Keepalive, reply with CALV and then CNOP - // kMsgCKeepAlive = "CALV" - sAddString(context, "CALV"); - sSendReply(context); - // now reply with CNOP - } - else if (USYNERGY_IS_PACKET("DCLP")) - { - // Clipboard message - // kMsgDClipboard = "DCLP%1i%4i%s" - // - // The clipboard message contains: - // 1 uint32: The size of the message - // 4 chars: The identifier ("DCLP") - // 1 uint8: The clipboard index - // 1 uint32: The sequence number. It's zero, because this message is always coming from the server? - // 1 uint32: The total size of the remaining 'string' (as per the Synergy %s string format (which is 1 uint32 for size followed by a char buffer (not necessarily null terminated)). - // 1 uint32: The number of formats present in the message - // And then 'number of formats' times the following: - // 1 uint32: The format of the clipboard data - // 1 uint32: The size n of the clipboard data - // n uint8: The clipboard data - const uint8_t * parse_msg = message+17; - uint32_t num_formats = sNetToNative32(parse_msg); - parse_msg += 4; - for (; num_formats; num_formats--) - { - // Parse clipboard format header - uint32_t format = sNetToNative32(parse_msg); - uint32_t size = sNetToNative32(parse_msg+4); - parse_msg += 8; - - // Call callback - if (context->m_clipboardCallback) - context->m_clipboardCallback(context->m_cookie, format, parse_msg, size); - - parse_msg += size; - } - } - else - { - // Unknown packet, could be any of these - // kMsgCNoop = "CNOP" - // kMsgCClose = "CBYE" - // kMsgCClipboard = "CCLP%1i%4i" - // kMsgCScreenSaver = "CSEC%1i" - // kMsgDKeyRepeat = "DKRP%2i%2i%2i%2i" - // kMsgDKeyRepeat1_0 = "DKRP%2i%2i%2i" - // kMsgDMouseRelMove = "DMRM%2i%2i" - // kMsgEIncompatible = "EICV%2i%2i" - // kMsgEBusy = "EBSY" - // kMsgEUnknown = "EUNK" - // kMsgEBad = "EBAD" - char buffer[64]; - sprintf(buffer, "Unknown packet '%c%c%c%c'", message[4], message[5], message[6], message[7]); - sTrace(context, buffer); - return; - } - - // Reply with CNOP maybe? - sAddString(context, "CNOP"); - sSendReply(context); -} -#undef USYNERGY_IS_PACKET - - - -/** -@brief Mark context as being disconnected -**/ -static void sSetDisconnected(uSynergyContext *context) -{ - context->m_connected = USYNERGY_FALSE; - context->m_hasReceivedHello = USYNERGY_FALSE; - context->m_isCaptured = USYNERGY_FALSE; - context->m_replyCur = context->m_replyBuffer + 4; - context->m_sequenceNumber = 0; -} - - - -/** -@brief Update a connected context -**/ -static void sUpdateContext(uSynergyContext *context) -{ - /* Receive data (blocking) */ - int receive_size = USYNERGY_RECEIVE_BUFFER_SIZE - context->m_receiveOfs; - int num_received = 0; - int packlen = 0; - if (context->m_receiveFunc(context->m_cookie, context->m_receiveBuffer + context->m_receiveOfs, receive_size, &num_received) == USYNERGY_FALSE) - { - /* Receive failed, let's try to reconnect */ - char buffer[128]; - sprintf(buffer, "Receive failed (%d bytes asked, %d bytes received), trying to reconnect in a second", receive_size, num_received); - sTrace(context, buffer); - sSetDisconnected(context); - context->m_sleepFunc(context->m_cookie, 1000); - return; - } - context->m_receiveOfs += num_received; - - /* If we didn't receive any data then we're probably still polling to get connected and - therefore not getting any data back. To avoid overloading the system with a Synergy - thread that would hammer on polling, we let it rest for a bit if there's no data. */ - if (num_received == 0) - context->m_sleepFunc(context->m_cookie, 500); - - /* Check for timeouts */ - if (context->m_hasReceivedHello) - { - uint32_t cur_time = context->m_getTimeFunc(); - if (num_received == 0) - { - /* Timeout after 2 secs of inactivity (we received no CALV) */ - if ((cur_time - context->m_lastMessageTime) > USYNERGY_IDLE_TIMEOUT) - sSetDisconnected(context); - } - else - context->m_lastMessageTime = cur_time; - } - - /* Eat packets */ - for (;;) - { - /* Grab packet length and bail out if the packet goes beyond the end of the buffer */ - packlen = sNetToNative32(context->m_receiveBuffer); - if (packlen+4 > context->m_receiveOfs) - break; - - /* Process message */ - sProcessMessage(context, context->m_receiveBuffer); - - /* Move packet to front of buffer */ - memmove(context->m_receiveBuffer, context->m_receiveBuffer+packlen+4, context->m_receiveOfs-packlen-4); - context->m_receiveOfs -= packlen+4; - } - - /* Throw away over-sized packets */ - if (packlen > USYNERGY_RECEIVE_BUFFER_SIZE) - { - /* Oversized packet, ditch tail end */ - char buffer[128]; - sprintf(buffer, "Oversized packet: '%c%c%c%c' (length %d)", context->m_receiveBuffer[4], context->m_receiveBuffer[5], context->m_receiveBuffer[6], context->m_receiveBuffer[7], packlen); - sTrace(context, buffer); - num_received = context->m_receiveOfs-4; // 4 bytes for the size field - while (num_received != packlen) - { - int buffer_left = packlen - num_received; - int to_receive = buffer_left < USYNERGY_RECEIVE_BUFFER_SIZE ? buffer_left : USYNERGY_RECEIVE_BUFFER_SIZE; - int ditch_received = 0; - if (context->m_receiveFunc(context->m_cookie, context->m_receiveBuffer, to_receive, &ditch_received) == USYNERGY_FALSE) - { - /* Receive failed, let's try to reconnect */ - sTrace(context, "Receive failed, trying to reconnect in a second"); - sSetDisconnected(context); - context->m_sleepFunc(context->m_cookie, 1000); - break; - } - else - { - num_received += ditch_received; - } - } - context->m_receiveOfs = 0; - } -} - - -//--------------------------------------------------------------------------------------------------------------------- -// Public interface -//--------------------------------------------------------------------------------------------------------------------- - - - -/** -@brief Initialize uSynergy context -**/ -void uSynergyInit(uSynergyContext *context) -{ - /* Zero memory */ - memset(context, 0, sizeof(uSynergyContext)); - - /* Initialize to default state */ - sSetDisconnected(context); -} - - -/** -@brief Update uSynergy -**/ -void uSynergyUpdate(uSynergyContext *context) -{ - if (context->m_connected) - { - /* Update context, receive data, call callbacks */ - sUpdateContext(context); - } - else - { - /* Try to connect */ - if (context->m_connectFunc(context->m_cookie)) - context->m_connected = USYNERGY_TRUE; - } -} - - - -/** -@brief Send clipboard data -**/ -void uSynergySendClipboard(uSynergyContext *context, const char *text) -{ - // Calculate maximum size that will fit in a reply packet - uint32_t overhead_size = 4 + /* Message size */ - 4 + /* Message ID */ - 1 + /* Clipboard index */ - 4 + /* Sequence number */ - 4 + /* Rest of message size (because it's a Synergy string from here on) */ - 4 + /* Number of clipboard formats */ - 4 + /* Clipboard format */ - 4; /* Clipboard data length */ - uint32_t max_length = USYNERGY_REPLY_BUFFER_SIZE - overhead_size; - - // Clip text to max length - uint32_t text_length = (uint32_t)strlen(text); - if (text_length > max_length) - { - char buffer[128]; - sprintf(buffer, "Clipboard buffer too small, clipboard truncated at %d characters", max_length); - sTrace(context, buffer); - text_length = max_length; - } - - // Assemble packet - sAddString(context, "DCLP"); - sAddUInt8(context, 0); /* Clipboard index */ - sAddUInt32(context, context->m_sequenceNumber); - sAddUInt32(context, 4+4+4+text_length); /* Rest of message size: numFormats, format, length, data */ - sAddUInt32(context, 1); /* Number of formats (only text for now) */ - sAddUInt32(context, USYNERGY_CLIPBOARD_FORMAT_TEXT); - sAddUInt32(context, text_length); - sAddString(context, text); - sSendReply(context); -} diff --git a/third_party/imgui/examples/libs/usynergy/uSynergy.h b/third_party/imgui/examples/libs/usynergy/uSynergy.h deleted file mode 100644 index cedc3878..00000000 --- a/third_party/imgui/examples/libs/usynergy/uSynergy.h +++ /dev/null @@ -1,420 +0,0 @@ -/* -uSynergy client -- Interface for the embedded Synergy client library - version 1.0.0, July 7th, 2012 - -Copyright (C) 2012 Synergy Si Ltd. -Copyright (c) 2012 Alex Evans - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not - claim that you wrote the original software. If you use this software - in a product, an acknowledgment in the product documentation would be - appreciated but is not required. - - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - - 3. This notice may not be removed or altered from any source - distribution. -*/ -#include - -#ifdef __cplusplus -extern "C" { -#endif - - - -//--------------------------------------------------------------------------------------------------------------------- -// Configuration -//--------------------------------------------------------------------------------------------------------------------- - - - -/** -@brief Determine endianness -**/ -#if defined(USYNERGY_LITTLE_ENDIAN) && defined(USYNERGY_BIG_ENDIAN) - /* Ambiguous: both endians specified */ - #error "Can't define both USYNERGY_LITTLE_ENDIAN and USYNERGY_BIG_ENDIAN" -#elif !defined(USYNERGY_LITTLE_ENDIAN) && !defined(USYNERGY_BIG_ENDIAN) - /* Attempt to auto detect */ - #if defined(__LITTLE_ENDIAN__) || defined(LITTLE_ENDIAN) || (_BYTE_ORDER == _LITTLE_ENDIAN) - #define USYNERGY_LITTLE_ENDIAN - #elif defined(__BIG_ENDIAN__) || defined(BIG_ENDIAN) || (_BYTE_ORDER == _BIG_ENDIAN) - #define USYNERGY_BIG_ENDIAN - #else - #error "Can't detect endian-nes, please defined either USYNERGY_LITTLE_ENDIAN or USYNERGY_BIG_ENDIAN"; - #endif -#else - /* User-specified endian-nes, nothing to do for us */ -#endif - - - -//--------------------------------------------------------------------------------------------------------------------- -// Types and Constants -//--------------------------------------------------------------------------------------------------------------------- - - - -/** -@brief Boolean type -**/ -typedef int uSynergyBool; -#define USYNERGY_FALSE 0 /* False value */ -#define USYNERGY_TRUE 1 /* True value */ - - -/** -@brief User context type - -The uSynergyCookie type is an opaque type that is used by uSynergy to communicate to the client. It is passed along to -callback functions as context. -**/ -typedef struct { int ignored; } * uSynergyCookie; - - - -/** -@brief Clipboard types -**/ -enum uSynergyClipboardFormat -{ - USYNERGY_CLIPBOARD_FORMAT_TEXT = 0, /* Text format, UTF-8, newline is LF */ - USYNERGY_CLIPBOARD_FORMAT_BITMAP = 1, /* Bitmap format, BMP 24/32bpp, BI_RGB */ - USYNERGY_CLIPBOARD_FORMAT_HTML = 2, /* HTML format, HTML fragment, UTF-8, newline is LF */ -}; - - - -/** -@brief Constants and limits -**/ -#define USYNERGY_NUM_JOYSTICKS 4 /* Maximum number of supported joysticks */ - -#define USYNERGY_PROTOCOL_MAJOR 1 /* Major protocol version */ -#define USYNERGY_PROTOCOL_MINOR 4 /* Minor protocol version */ - -#define USYNERGY_IDLE_TIMEOUT 2000 /* Timeout in milliseconds before reconnecting */ - -#define USYNERGY_TRACE_BUFFER_SIZE 1024 /* Maximum length of traced message */ -#define USYNERGY_REPLY_BUFFER_SIZE 1024 /* Maximum size of a reply packet */ -#define USYNERGY_RECEIVE_BUFFER_SIZE 4096 /* Maximum size of an incoming packet */ - - - -/** -@brief Keyboard constants -**/ -#define USYNERGY_MODIFIER_SHIFT 0x0001 /* Shift key modifier */ -#define USYNERGY_MODIFIER_CTRL 0x0002 /* Ctrl key modifier */ -#define USYNERGY_MODIFIER_ALT 0x0004 /* Alt key modifier */ -#define USYNERGY_MODIFIER_META 0x0008 /* Meta key modifier */ -#define USYNERGY_MODIFIER_WIN 0x0010 /* Windows key modifier */ -#define USYNERGY_MODIFIER_ALT_GR 0x0020 /* AltGr key modifier */ -#define USYNERGY_MODIFIER_LEVEL5LOCK 0x0040 /* Level5Lock key modifier */ -#define USYNERGY_MODIFIER_CAPSLOCK 0x1000 /* CapsLock key modifier */ -#define USYNERGY_MODIFIER_NUMLOCK 0x2000 /* NumLock key modifier */ -#define USYNERGY_MODIFIER_SCROLLOCK 0x4000 /* ScrollLock key modifier */ - - - - -//--------------------------------------------------------------------------------------------------------------------- -// Functions and Callbacks -//--------------------------------------------------------------------------------------------------------------------- - - - -/** -@brief Connect function - -This function is called when uSynergy needs to connect to the host. It doesn't imply a network implementation or -destination address, that must all be handled on the user side. The function should return USYNERGY_TRUE if a -connection was established or USYNERGY_FALSE if it could not connect. - -When network errors occur (e.g. uSynergySend or uSynergyReceive fail) then the connect call will be called again -so the implementation of the function must close any old connections and clean up resources before retrying. - -@param cookie Cookie supplied in the Synergy context -**/ -typedef uSynergyBool (*uSynergyConnectFunc)(uSynergyCookie cookie); - - - -/** -@brief Send function - -This function is called when uSynergy needs to send something over the default connection. It should return -USYNERGY_TRUE if sending succeeded and USYNERGY_FALSE otherwise. This function should block until the send -operation is completed. - -@param cookie Cookie supplied in the Synergy context -@param buffer Address of buffer to send -@param length Length of buffer to send -**/ -typedef uSynergyBool (*uSynergySendFunc)(uSynergyCookie cookie, const uint8_t *buffer, int length); - - - -/** -@brief Receive function - -This function is called when uSynergy needs to receive data from the default connection. It should return -USYNERGY_TRUE if receiving data succeeded and USYNERGY_FALSE otherwise. This function should block until data -has been received and wait for data to become available. If @a outLength is set to 0 upon completion it is -assumed that the connection is alive, but still in a connecting state and needs time to settle. - -@param cookie Cookie supplied in the Synergy context -@param buffer Address of buffer to receive data into -@param maxLength Maximum amount of bytes to write into the receive buffer -@param outLength Address of integer that receives the actual amount of bytes written into @a buffer -**/ -typedef uSynergyBool (*uSynergyReceiveFunc)(uSynergyCookie cookie, uint8_t *buffer, int maxLength, int* outLength); - - - -/** -@brief Thread sleep function - -This function is called when uSynergy wants to suspend operation for a while before retrying an operation. It -is mostly used when a socket times out or disconnect occurs to prevent uSynergy from continuously hammering a -network connection in case the network is down. - -@param cookie Cookie supplied in the Synergy context -@param timeMs Time to sleep the current thread (in milliseconds) -**/ -typedef void (*uSynergySleepFunc)(uSynergyCookie cookie, int timeMs); - - - -/** -@brief Get time function - -This function is called when uSynergy needs to know the current time. This is used to determine when timeouts -have occured. The time base should be a cyclic millisecond time value. - -@returns Time value in milliseconds -**/ -typedef uint32_t (*uSynergyGetTimeFunc)(); - - - -/** -@brief Trace function - -This function is called when uSynergy wants to trace something. It is optional to show these messages, but they -are often useful when debugging. uSynergy only traces major events like connecting and disconnecting. Usually -only a single trace is shown when the connection is established and no more trace are called. - -@param cookie Cookie supplied in the Synergy context -@param text Text to be traced -**/ -typedef void (*uSynergyTraceFunc)(uSynergyCookie cookie, const char *text); - - - -/** -@brief Screen active callback - -This callback is called when Synergy makes the screen active or inactive. This -callback is usually sent when the mouse enters or leaves the screen. - -@param cookie Cookie supplied in the Synergy context -@param active Activation flag, 1 if the screen has become active, 0 if the screen has become inactive -**/ -typedef void (*uSynergyScreenActiveCallback)(uSynergyCookie cookie, uSynergyBool active); - - - -/** -@brief Mouse callback - -This callback is called when a mouse events happens. The mouse X and Y position, -wheel and button state is communicated in the message. It's up to the user to -interpret if this is a mouse up, down, double-click or other message. - -@param cookie Cookie supplied in the Synergy context -@param x Mouse X position -@param y Mouse Y position -@param wheelX Mouse wheel X position -@param wheelY Mouse wheel Y position -@param buttonLeft Left button pressed status, 0 for released, 1 for pressed -@param buttonMiddle Middle button pressed status, 0 for released, 1 for pressed -@param buttonRight Right button pressed status, 0 for released, 1 for pressed -**/ -typedef void (*uSynergyMouseCallback)(uSynergyCookie cookie, uint16_t x, uint16_t y, int16_t wheelX, int16_t wheelY, uSynergyBool buttonLeft, uSynergyBool buttonRight, uSynergyBool buttonMiddle); - - - -/** -@brief Key event callback - -This callback is called when a key is pressed or released. - -@param cookie Cookie supplied in the Synergy context -@param key Key code of key that was pressed or released -@param modifiers Status of modifier keys (alt, shift, etc.) -@param down Down or up status, 1 is key is pressed down, 0 if key is released (up) -@param repeat Repeat flag, 1 if the key is down because the key is repeating, 0 if the key is initially pressed by the user -**/ -typedef void (*uSynergyKeyboardCallback)(uSynergyCookie cookie, uint16_t key, uint16_t modifiers, uSynergyBool down, uSynergyBool repeat); - - - -/** -@brief Joystick event callback - -This callback is called when a joystick stick or button changes. It is possible that multiple callbacks are -fired when different sticks or buttons change as these are individual messages in the packet stream. Each -callback will contain all the valid state for the different axes and buttons. The last callback received will -represent the most current joystick state. - -@param cookie Cookie supplied in the Synergy context -@param joyNum Joystick number, always in the range [0 ... USYNERGY_NUM_JOYSTICKS> -@param buttons Button pressed mask -@param leftStickX Left stick X position, in range [-127 ... 127] -@param leftStickY Left stick Y position, in range [-127 ... 127] -@param rightStickX Right stick X position, in range [-127 ... 127] -@param rightStickY Right stick Y position, in range [-127 ... 127] -**/ -typedef void (*uSynergyJoystickCallback)(uSynergyCookie cookie, uint8_t joyNum, uint16_t buttons, int8_t leftStickX, int8_t leftStickY, int8_t rightStickX, int8_t rightStickY); - - - -/** -@brief Clipboard event callback - -This callback is called when something is placed on the clipboard. Multiple callbacks may be fired for -multiple clipboard formats if they are supported. The data provided is read-only and may not be modified -by the application. - -@param cookie Cookie supplied in the Synergy context -@param format Clipboard format -@param data Memory area containing the clipboard raw data -@param size Size of clipboard data -**/ -typedef void (*uSynergyClipboardCallback)(uSynergyCookie cookie, enum uSynergyClipboardFormat format, const uint8_t *data, uint32_t size); - - - -//--------------------------------------------------------------------------------------------------------------------- -// Context -//--------------------------------------------------------------------------------------------------------------------- - - - -/** -@brief uSynergy context -**/ -typedef struct -{ - /* Mandatory configuration data, filled in by client */ - uSynergyConnectFunc m_connectFunc; /* Connect function */ - uSynergySendFunc m_sendFunc; /* Send data function */ - uSynergyReceiveFunc m_receiveFunc; /* Receive data function */ - uSynergySleepFunc m_sleepFunc; /* Thread sleep function */ - uSynergyGetTimeFunc m_getTimeFunc; /* Get current time function */ - const char* m_clientName; /* Name of Synergy Screen / Client */ - uint16_t m_clientWidth; /* Width of screen */ - uint16_t m_clientHeight; /* Height of screen */ - - /* Optional configuration data, filled in by client */ - uSynergyCookie m_cookie; /* Cookie pointer passed to callback functions (can be NULL) */ - uSynergyTraceFunc m_traceFunc; /* Function for tracing status (can be NULL) */ - uSynergyScreenActiveCallback m_screenActiveCallback; /* Callback for entering and leaving screen */ - uSynergyMouseCallback m_mouseCallback; /* Callback for mouse events */ - uSynergyKeyboardCallback m_keyboardCallback; /* Callback for keyboard events */ - uSynergyJoystickCallback m_joystickCallback; /* Callback for joystick events */ - uSynergyClipboardCallback m_clipboardCallback; /* Callback for clipboard events */ - - /* State data, used internall by client, initialized by uSynergyInit() */ - uSynergyBool m_connected; /* Is our socket connected? */ - uSynergyBool m_hasReceivedHello; /* Have we received a 'Hello' from the server? */ - uSynergyBool m_isCaptured; /* Is Synergy active (i.e. this client is receiving input messages?) */ - uint32_t m_lastMessageTime; /* Time at which last message was received */ - uint32_t m_sequenceNumber; /* Packet sequence number */ - uint8_t m_receiveBuffer[USYNERGY_RECEIVE_BUFFER_SIZE]; /* Receive buffer */ - int m_receiveOfs; /* Receive buffer offset */ - uint8_t m_replyBuffer[USYNERGY_REPLY_BUFFER_SIZE]; /* Reply buffer */ - uint8_t* m_replyCur; /* Write offset into reply buffer */ - uint16_t m_mouseX; /* Mouse X position */ - uint16_t m_mouseY; /* Mouse Y position */ - int16_t m_mouseWheelX; /* Mouse wheel X position */ - int16_t m_mouseWheelY; /* Mouse wheel Y position */ - uSynergyBool m_mouseButtonLeft; /* Mouse left button */ - uSynergyBool m_mouseButtonRight; /* Mouse right button */ - uSynergyBool m_mouseButtonMiddle; /* Mouse middle button */ - int8_t m_joystickSticks[USYNERGY_NUM_JOYSTICKS][4]; /* Joystick stick position in 2 axes for 2 sticks */ - uint16_t m_joystickButtons[USYNERGY_NUM_JOYSTICKS]; /* Joystick button state */ -} uSynergyContext; - - - -//--------------------------------------------------------------------------------------------------------------------- -// Interface -//--------------------------------------------------------------------------------------------------------------------- - - - -/** -@brief Initialize uSynergy context - -This function initializes @a context for use. Call this function directly after -creating the context, before filling in any configuration data in it. Not calling -this function will cause undefined behavior. - -@param context Context to be initialized -**/ -extern void uSynergyInit(uSynergyContext *context); - - - -/** -@brief Update uSynergy - -This function updates uSynergy and does the bulk of the work. It does connection management, -receiving data, reconnecting after errors or timeouts and so on. It assumes that networking -operations are blocking and it can suspend the current thread if it needs to wait. It is -best practice to call uSynergyUpdate from a background thread so it is responsive. - -Because uSynergy relies mostly on blocking calls it will mostly stay in thread sleep state -waiting for system mutexes and won't eat much memory. - -uSynergyUpdate doesn't do any memory allocations or have any side effects beyond those of -the callbacks it calls. - -@param context Context to be updated -**/ -extern void uSynergyUpdate(uSynergyContext *context); - - - -/** -@brief Send clipboard data - -This function sets new clipboard data and sends it to the server. Use this function if -your client cuts or copies data onto the clipboard that it needs to share with the -server. - -Currently there is only support for plaintext, but HTML and image data could be -supported with some effort. - -@param context Context to send clipboard data to -@param text Text to set to the clipboard -**/ -extern void uSynergySendClipboard(uSynergyContext *context, const char *text); - - - -#ifdef __cplusplus -}; -#endif diff --git a/third_party/imgui/imconfig.h b/third_party/imgui/imconfig.h deleted file mode 100644 index 39de21c6..00000000 --- a/third_party/imgui/imconfig.h +++ /dev/null @@ -1,120 +0,0 @@ -//----------------------------------------------------------------------------- -// COMPILE-TIME OPTIONS FOR DEAR IMGUI -// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure. -// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateContext() to rewire memory allocation functions. -//----------------------------------------------------------------------------- -// A) You may edit imconfig.h (and not overwrite it when updating Dear ImGui, or maintain a patch/rebased branch with your modifications to it) -// B) or '#define IMGUI_USER_CONFIG "my_imgui_config.h"' in your project and then add directives in your own file without touching this template. -//----------------------------------------------------------------------------- -// You need to make sure that configuration settings are defined consistently _everywhere_ Dear ImGui is used, which include the imgui*.cpp -// files but also _any_ of your code that uses Dear ImGui. This is because some compile-time options have an affect on data structures. -// Defining those options in imconfig.h will ensure every compilation unit gets to see the same data structure layouts. -// Call IMGUI_CHECKVERSION() from your .cpp files to verify that the data structures your files are using are matching the ones imgui.cpp is using. -//----------------------------------------------------------------------------- - -#pragma once - -//---- Define assertion handler. Defaults to calling assert(). -// If your macro uses multiple statements, make sure is enclosed in a 'do { .. } while (0)' block so it can be used as a single statement. -//#define IM_ASSERT(_EXPR) MyAssert(_EXPR) -//#define IM_ASSERT(_EXPR) ((void)(_EXPR)) // Disable asserts - -//---- Define attributes of all API symbols declarations, e.g. for DLL under Windows -// Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. -// DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() -// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. -//#define IMGUI_API __declspec( dllexport ) -//#define IMGUI_API __declspec( dllimport ) - -//---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to avoid using soon-to-be obsolete function/names. -//#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -//---- Disable all of Dear ImGui or don't implement standard windows. -// It is very strongly recommended to NOT disable the demo windows during development. Please read comments in imgui_demo.cpp. -//#define IMGUI_DISABLE // Disable everything: all headers and source files will be empty. -//#define IMGUI_DISABLE_DEMO_WINDOWS // Disable demo windows: ShowDemoWindow()/ShowStyleEditor() will be empty. Not recommended. -//#define IMGUI_DISABLE_METRICS_WINDOW // Disable metrics/debugger window: ShowMetricsWindow() will be empty. - -//---- Don't implement some functions to reduce linkage requirements. -//#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS // [Win32] Don't implement default clipboard handler. Won't use and link with OpenClipboard/GetClipboardData/CloseClipboard etc. (user32.lib/.a, kernel32.lib/.a) -//#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] Don't implement default IME handler. Won't use and link with ImmGetContext/ImmSetCompositionWindow. (imm32.lib/.a) -//#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, ime). -//#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS // [OSX] Implement default OSX clipboard handler (need to link with '-framework ApplicationServices', this is why this is not the default). -//#define IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself (e.g. if you don't want to link with vsnprintf) -//#define IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 so you can implement them yourself. -//#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite so you can implement them yourself if you don't want to link with fopen/fclose/fread/fwrite. This will also disable the LogToTTY() function. -//#define IMGUI_DISABLE_DEFAULT_ALLOCATORS // Don't implement default allocators calling malloc()/free() to avoid linking with them. You will need to call ImGui::SetAllocatorFunctions(). - -//---- Include imgui_user.h at the end of imgui.h as a convenience -//#define IMGUI_INCLUDE_IMGUI_USER_H - -//---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another) -//#define IMGUI_USE_BGRA_PACKED_COLOR - -//---- Use 32-bit for ImWchar (default is 16-bit) to support unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...) -//#define IMGUI_USE_WCHAR32 - -//---- Avoid multiple STB libraries implementations, or redefine path/filenames to prioritize another version -// By default the embedded implementations are declared static and not available outside of Dear ImGui sources files. -//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" -//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" -//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION -//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION - -//---- Use stb_printf's faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined) -// Requires 'stb_sprintf.h' to be available in the include path. Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by STB sprintf. -// #define IMGUI_USE_STB_SPRINTF - -//---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui) -// Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided). -// On Windows you may use vcpkg with 'vcpkg install freetype' + 'vcpkg integrate install'. -//#define IMGUI_ENABLE_FREETYPE - -//---- Use stb_truetype to build and rasterize the font atlas (default) -// The only purpose of this define is if you want force compilation of the stb_truetype backend ALONG with the FreeType backend. -//#define IMGUI_ENABLE_STB_TRUETYPE - -//---- Define constructor and implicit cast operators to convert back<>forth between your math types and ImVec2/ImVec4. -// This will be inlined as part of ImVec2 and ImVec4 class declarations. -/* -#define IM_VEC2_CLASS_EXTRA \ - ImVec2(const MyVec2& f) { x = f.x; y = f.y; } \ - operator MyVec2() const { return MyVec2(x,y); } - -#define IM_VEC4_CLASS_EXTRA \ - ImVec4(const MyVec4& f) { x = f.x; y = f.y; z = f.z; w = f.w; } \ - operator MyVec4() const { return MyVec4(x,y,z,w); } -*/ - -//---- Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices. -// Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices). -// Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer. -// Read about ImGuiBackendFlags_RendererHasVtxOffset for details. -//#define ImDrawIdx unsigned int - -//---- Override ImDrawCallback signature (will need to modify renderer backends accordingly) -//struct ImDrawList; -//struct ImDrawCmd; -//typedef void (*MyImDrawCallback)(const ImDrawList* draw_list, const ImDrawCmd* cmd, void* my_renderer_user_data); -//#define ImDrawCallback MyImDrawCallback - -//---- Debug Tools: Macro to break in Debugger -// (use 'Metrics->Tools->Item Picker' to pick widgets with the mouse and break into them for easy debugging.) -//#define IM_DEBUG_BREAK IM_ASSERT(0) -//#define IM_DEBUG_BREAK __debugbreak() - -//---- Debug Tools: Have the Item Picker break in the ItemAdd() function instead of ItemHoverable(), -// (which comes earlier in the code, will catch a few extra items, allow picking items other than Hovered one.) -// This adds a small runtime cost which is why it is not enabled by default. -//#define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX - -//---- Debug Tools: Enable slower asserts -//#define IMGUI_DEBUG_PARANOID - -//---- Tip: You can add extra functions within the ImGui:: namespace, here or in your own headers files. -/* -namespace ImGui -{ - void MyFunction(const char* name, const MyMatrix44& v); -} -*/ diff --git a/third_party/imgui/imgui.cpp b/third_party/imgui/imgui.cpp deleted file mode 100644 index 67a82b9b..00000000 --- a/third_party/imgui/imgui.cpp +++ /dev/null @@ -1,11438 +0,0 @@ -// dear imgui, v1.82 WIP -// (main code and documentation) - -// Help: -// - Read FAQ at http://dearimgui.org/faq -// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase. -// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. -// Read imgui.cpp for details, links and comments. - -// Resources: -// - FAQ http://dearimgui.org/faq -// - Homepage & latest https://github.com/ocornut/imgui -// - Releases & changelog https://github.com/ocornut/imgui/releases -// - Gallery https://github.com/ocornut/imgui/issues/3488 (please post your screenshots/video there!) -// - Glossary https://github.com/ocornut/imgui/wiki/Glossary -// - Wiki https://github.com/ocornut/imgui/wiki -// - Issues & support https://github.com/ocornut/imgui/issues -// - Discussions https://github.com/ocornut/imgui/discussions - -// Developed by Omar Cornut and every direct or indirect contributors to the GitHub. -// See LICENSE.txt for copyright and licensing details (standard MIT License). -// This library is free but needs your support to sustain development and maintenance. -// Businesses: you can support continued development via invoiced technical support, maintenance and sponsoring contracts. Please reach out to "contact AT dearimgui.org". -// Individuals: you can support continued development via donations. See docs/README or web page. - -// It is recommended that you don't modify imgui.cpp! It will become difficult for you to update the library. -// Note that 'ImGui::' being a namespace, you can add functions into the namespace from your own source files, without -// modifying imgui.h or imgui.cpp. You may include imgui_internal.h to access internal data structures, but it doesn't -// come with any guarantee of forward compatibility. Discussing your changes on the GitHub Issue Tracker may lead you -// to a better solution or official support for them. - -/* - -Index of this file: - -DOCUMENTATION - -- MISSION STATEMENT -- END-USER GUIDE -- PROGRAMMER GUIDE - - READ FIRST - - HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI - - GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE - - HOW A SIMPLE APPLICATION MAY LOOK LIKE - - HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE - - USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS -- API BREAKING CHANGES (read me when you update!) -- FREQUENTLY ASKED QUESTIONS (FAQ) - - Read all answers online: https://www.dearimgui.org/faq, or in docs/FAQ.md (with a Markdown viewer) - -CODE -(search for "[SECTION]" in the code to find them) - -// [SECTION] INCLUDES -// [SECTION] FORWARD DECLARATIONS -// [SECTION] CONTEXT AND MEMORY ALLOCATORS -// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) -// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) -// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) -// [SECTION] MISC HELPERS/UTILITIES (File functions) -// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) -// [SECTION] MISC HELPERS/UTILITIES (Color functions) -// [SECTION] ImGuiStorage -// [SECTION] ImGuiTextFilter -// [SECTION] ImGuiTextBuffer -// [SECTION] ImGuiListClipper -// [SECTION] STYLING -// [SECTION] RENDER HELPERS -// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) -// [SECTION] ERROR CHECKING -// [SECTION] LAYOUT -// [SECTION] SCROLLING -// [SECTION] TOOLTIPS -// [SECTION] POPUPS -// [SECTION] KEYBOARD/GAMEPAD NAVIGATION -// [SECTION] DRAG AND DROP -// [SECTION] LOGGING/CAPTURING -// [SECTION] SETTINGS -// [SECTION] VIEWPORTS -// [SECTION] PLATFORM DEPENDENT HELPERS -// [SECTION] METRICS/DEBUGGER WINDOW - -*/ - -//----------------------------------------------------------------------------- -// DOCUMENTATION -//----------------------------------------------------------------------------- - -/* - - MISSION STATEMENT - ================= - - - Easy to use to create code-driven and data-driven tools. - - Easy to use to create ad hoc short-lived tools and long-lived, more elaborate tools. - - Easy to hack and improve. - - Minimize setup and maintenance. - - Minimize state storage on user side. - - Portable, minimize dependencies, run on target (consoles, phones, etc.). - - Efficient runtime and memory consumption. - - Designed for developers and content-creators, not the typical end-user! Some of the current weaknesses includes: - - - Doesn't look fancy, doesn't animate. - - Limited layout features, intricate layouts are typically crafted in code. - - - END-USER GUIDE - ============== - - - Double-click on title bar to collapse window. - - Click upper right corner to close a window, available when 'bool* p_open' is passed to ImGui::Begin(). - - Click and drag on lower right corner to resize window (double-click to auto fit window to its contents). - - Click and drag on any empty space to move window. - - TAB/SHIFT+TAB to cycle through keyboard editable fields. - - CTRL+Click on a slider or drag box to input value as text. - - Use mouse wheel to scroll. - - Text editor: - - Hold SHIFT or use mouse to select text. - - CTRL+Left/Right to word jump. - - CTRL+Shift+Left/Right to select words. - - CTRL+A our Double-Click to select all. - - CTRL+X,CTRL+C,CTRL+V to use OS clipboard/ - - CTRL+Z,CTRL+Y to undo/redo. - - ESCAPE to revert text to its original value. - - You can apply arithmetic operators +,*,/ on numerical values. Use +- to subtract (because - would set a negative value!) - - Controls are automatically adjusted for OSX to match standard OSX text editing operations. - - General Keyboard controls: enable with ImGuiConfigFlags_NavEnableKeyboard. - - General Gamepad controls: enable with ImGuiConfigFlags_NavEnableGamepad. See suggested mappings in imgui.h ImGuiNavInput_ + download PNG/PSD at http://dearimgui.org/controls_sheets - - - PROGRAMMER GUIDE - ================ - - READ FIRST - ---------- - - Remember to read the FAQ (https://www.dearimgui.org/faq) - - Your code creates the UI, if your code doesn't run the UI is gone! The UI can be highly dynamic, there are no construction - or destruction steps, less superfluous data retention on your side, less state duplication, less state synchronization, less bugs. - - Call and read ImGui::ShowDemoWindow() for demo code demonstrating most features. - - The library is designed to be built from sources. Avoid pre-compiled binaries and packaged versions. See imconfig.h to configure your build. - - Dear ImGui is an implementation of the IMGUI paradigm (immediate-mode graphical user interface, a term coined by Casey Muratori). - You can learn about IMGUI principles at http://www.johno.se/book/imgui.html, http://mollyrocket.com/861 & more links in the FAQ. - - Dear ImGui is a "single pass" rasterizing implementation of the IMGUI paradigm, aimed at ease of use and high-performances. - For every application frame your UI code will be called only once. This is in contrast to e.g. Unity's own implementation of an IMGUI, - where the UI code is called multiple times ("multiple passes") from a single entry point. There are pros and cons to both approaches. - - Our origin are on the top-left. In axis aligned bounding boxes, Min = top-left, Max = bottom-right. - - This codebase is also optimized to yield decent performances with typical "Debug" builds settings. - - Please make sure you have asserts enabled (IM_ASSERT redirects to assert() by default, but can be redirected). - If you get an assert, read the messages and comments around the assert. - - C++: this is a very C-ish codebase: we don't rely on C++11, we don't include any C++ headers, and ImGui:: is a namespace. - - C++: ImVec2/ImVec4 do not expose math operators by default, because it is expected that you use your own math types. - See FAQ "How can I use my own math types instead of ImVec2/ImVec4?" for details about setting up imconfig.h for that. - However, imgui_internal.h can optionally export math operators for ImVec2/ImVec4, which we use in this codebase. - - C++: pay attention that ImVector<> manipulates plain-old-data and does not honor construction/destruction (avoid using it in your code!). - - - HOW TO UPDATE TO A NEWER VERSION OF DEAR IMGUI - ---------------------------------------------- - - Overwrite all the sources files except for imconfig.h (if you have made modification to your copy of imconfig.h) - - Or maintain your own branch where you have imconfig.h modified as a top-most commit which you can regularly rebase over master. - - You can also use '#define IMGUI_USER_CONFIG "my_config_file.h" to redirect configuration to your own file. - - Read the "API BREAKING CHANGES" section (below). This is where we list occasional API breaking changes. - If a function/type has been renamed / or marked obsolete, try to fix the name in your code before it is permanently removed - from the public API. If you have a problem with a missing function/symbols, search for its name in the code, there will - likely be a comment about it. Please report any issue to the GitHub page! - - To find out usage of old API, you can add '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in your configuration file. - - Try to keep your copy of Dear ImGui reasonably up to date. - - - GETTING STARTED WITH INTEGRATING DEAR IMGUI IN YOUR CODE/ENGINE - --------------------------------------------------------------- - - Run and study the examples and demo in imgui_demo.cpp to get acquainted with the library. - - In the majority of cases you should be able to use unmodified backends files available in the backends/ folder. - - Add the Dear ImGui source files + selected backend source files to your projects or using your preferred build system. - It is recommended you build and statically link the .cpp files as part of your project and NOT as shared library (DLL). - - You can later customize the imconfig.h file to tweak some compile-time behavior, such as integrating Dear ImGui types with your own maths types. - - When using Dear ImGui, your programming IDE is your friend: follow the declaration of variables, functions and types to find comments about them. - - Dear ImGui never touches or knows about your GPU state. The only function that knows about GPU is the draw function that you provide. - Effectively it means you can create widgets at any time in your code, regardless of considerations of being in "update" vs "render" - phases of your own application. All rendering information are stored into command-lists that you will retrieve after calling ImGui::Render(). - - Refer to the backends and demo applications in the examples/ folder for instruction on how to setup your code. - - If you are running over a standard OS with a common graphics API, you should be able to use unmodified imgui_impl_*** files from the examples/ folder. - - - HOW A SIMPLE APPLICATION MAY LOOK LIKE - -------------------------------------- - EXHIBIT 1: USING THE EXAMPLE BACKENDS (= imgui_impl_XXX.cpp files from the backends/ folder). - The sub-folders in examples/ contains examples applications following this structure. - - // Application init: create a dear imgui context, setup some options, load fonts - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); - // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. - // TODO: Fill optional fields of the io structure later. - // TODO: Load TTF/OTF fonts if you don't want to use the default font. - - // Initialize helper Platform and Renderer backends (here we are using imgui_impl_win32.cpp and imgui_impl_dx11.cpp) - ImGui_ImplWin32_Init(hwnd); - ImGui_ImplDX11_Init(g_pd3dDevice, g_pd3dDeviceContext); - - // Application main loop - while (true) - { - // Feed inputs to dear imgui, start new frame - ImGui_ImplDX11_NewFrame(); - ImGui_ImplWin32_NewFrame(); - ImGui::NewFrame(); - - // Any application code here - ImGui::Text("Hello, world!"); - - // Render dear imgui into screen - ImGui::Render(); - ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData()); - g_pSwapChain->Present(1, 0); - } - - // Shutdown - ImGui_ImplDX11_Shutdown(); - ImGui_ImplWin32_Shutdown(); - ImGui::DestroyContext(); - - EXHIBIT 2: IMPLEMENTING CUSTOM BACKEND / CUSTOM ENGINE - - // Application init: create a dear imgui context, setup some options, load fonts - ImGui::CreateContext(); - ImGuiIO& io = ImGui::GetIO(); - // TODO: Set optional io.ConfigFlags values, e.g. 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard' to enable keyboard controls. - // TODO: Fill optional fields of the io structure later. - // TODO: Load TTF/OTF fonts if you don't want to use the default font. - - // Build and load the texture atlas into a texture - // (In the examples/ app this is usually done within the ImGui_ImplXXX_Init() function from one of the demo Renderer) - int width, height; - unsigned char* pixels = NULL; - io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); - - // At this point you've got the texture data and you need to upload that your your graphic system: - // After we have created the texture, store its pointer/identifier (_in whichever format your engine uses_) in 'io.Fonts->TexID'. - // This will be passed back to your via the renderer. Basically ImTextureID == void*. Read FAQ for details about ImTextureID. - MyTexture* texture = MyEngine::CreateTextureFromMemoryPixels(pixels, width, height, TEXTURE_TYPE_RGBA32) - io.Fonts->SetTexID((void*)texture); - - // Application main loop - while (true) - { - // Setup low-level inputs, e.g. on Win32: calling GetKeyboardState(), or write to those fields from your Windows message handlers, etc. - // (In the examples/ app this is usually done within the ImGui_ImplXXX_NewFrame() function from one of the demo Platform Backends) - io.DeltaTime = 1.0f/60.0f; // set the time elapsed since the previous frame (in seconds) - io.DisplaySize.x = 1920.0f; // set the current display width - io.DisplaySize.y = 1280.0f; // set the current display height here - io.MousePos = my_mouse_pos; // set the mouse position - io.MouseDown[0] = my_mouse_buttons[0]; // set the mouse button states - io.MouseDown[1] = my_mouse_buttons[1]; - - // Call NewFrame(), after this point you can use ImGui::* functions anytime - // (So you want to try calling NewFrame() as early as you can in your mainloop to be able to use Dear ImGui everywhere) - ImGui::NewFrame(); - - // Most of your application code here - ImGui::Text("Hello, world!"); - MyGameUpdate(); // may use any Dear ImGui functions, e.g. ImGui::Begin("My window"); ImGui::Text("Hello, world!"); ImGui::End(); - MyGameRender(); // may use any Dear ImGui functions as well! - - // Render dear imgui, swap buffers - // (You want to try calling EndFrame/Render as late as you can, to be able to use Dear ImGui in your own game rendering code) - ImGui::EndFrame(); - ImGui::Render(); - ImDrawData* draw_data = ImGui::GetDrawData(); - MyImGuiRenderFunction(draw_data); - SwapBuffers(); - } - - // Shutdown - ImGui::DestroyContext(); - - To decide whether to dispatch mouse/keyboard inputs to Dear ImGui to the rest your application, - you should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! - Please read the FAQ and example applications for details about this! - - - HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE - --------------------------------------------- - The backends in impl_impl_XXX.cpp files contains many working implementations of a rendering function. - - void void MyImGuiRenderFunction(ImDrawData* draw_data) - { - // TODO: Setup render state: alpha-blending enabled, no face culling, no depth testing, scissor enabled - // TODO: Setup viewport covering draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize - // TODO: Setup orthographic projection matrix cover draw_data->DisplayPos to draw_data->DisplayPos + draw_data->DisplaySize - // TODO: Setup shader: vertex { float2 pos, float2 uv, u32 color }, fragment shader sample color from 1 texture, multiply by vertex color. - for (int n = 0; n < draw_data->CmdListsCount; n++) - { - const ImDrawList* cmd_list = draw_data->CmdLists[n]; - const ImDrawVert* vtx_buffer = cmd_list->VtxBuffer.Data; // vertex buffer generated by Dear ImGui - const ImDrawIdx* idx_buffer = cmd_list->IdxBuffer.Data; // index buffer generated by Dear ImGui - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - const ImDrawCmd* pcmd = &cmd_list->CmdBuffer[cmd_i]; - if (pcmd->UserCallback) - { - pcmd->UserCallback(cmd_list, pcmd); - } - else - { - // The texture for the draw call is specified by pcmd->TextureId. - // The vast majority of draw calls will use the Dear ImGui texture atlas, which value you have set yourself during initialization. - MyEngineBindTexture((MyTexture*)pcmd->TextureId); - - // We are using scissoring to clip some objects. All low-level graphics API should supports it. - // - If your engine doesn't support scissoring yet, you may ignore this at first. You will get some small glitches - // (some elements visible outside their bounds) but you can fix that once everything else works! - // - Clipping coordinates are provided in imgui coordinates space: - // - For a given viewport, draw_data->DisplayPos == viewport->Pos and draw_data->DisplaySize == viewport->Size - // - In a single viewport application, draw_data->DisplayPos == (0,0) and draw_data->DisplaySize == io.DisplaySize, but always use GetMainViewport()->Pos/Size instead of hardcoding those values. - // - In the interest of supporting multi-viewport applications (see 'docking' branch on github), - // always subtract draw_data->DisplayPos from clipping bounds to convert them to your viewport space. - // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) - ImVec2 pos = draw_data->DisplayPos; - MyEngineScissor((int)(pcmd->ClipRect.x - pos.x), (int)(pcmd->ClipRect.y - pos.y), (int)(pcmd->ClipRect.z - pos.x), (int)(pcmd->ClipRect.w - pos.y)); - - // Render 'pcmd->ElemCount/3' indexed triangles. - // By default the indices ImDrawIdx are 16-bit, you can change them to 32-bit in imconfig.h if your engine doesn't support 16-bit indices. - MyEngineDrawIndexedTriangles(pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer, vtx_buffer); - } - idx_buffer += pcmd->ElemCount; - } - } - } - - - USING GAMEPAD/KEYBOARD NAVIGATION CONTROLS - ------------------------------------------ - - The gamepad/keyboard navigation is fairly functional and keeps being improved. - - Gamepad support is particularly useful to use Dear ImGui on a console system (e.g. PS4, Switch, XB1) without a mouse! - - You can ask questions and report issues at https://github.com/ocornut/imgui/issues/787 - - The initial focus was to support game controllers, but keyboard is becoming increasingly and decently usable. - - Keyboard: - - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. - NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. - - When keyboard navigation is active (io.NavActive + ImGuiConfigFlags_NavEnableKeyboard), the io.WantCaptureKeyboard flag - will be set. For more advanced uses, you may want to read from: - - io.NavActive: true when a window is focused and it doesn't have the ImGuiWindowFlags_NoNavInputs flag set. - - io.NavVisible: true when the navigation cursor is visible (and usually goes false when mouse is used). - - or query focus information with e.g. IsWindowFocused(ImGuiFocusedFlags_AnyWindow), IsItemFocused() etc. functions. - Please reach out if you think the game vs navigation input sharing could be improved. - - Gamepad: - - Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. - - Backend: Set io.BackendFlags |= ImGuiBackendFlags_HasGamepad + fill the io.NavInputs[] fields before calling NewFrame(). - Note that io.NavInputs[] is cleared by EndFrame(). - - See 'enum ImGuiNavInput_' in imgui.h for a description of inputs. For each entry of io.NavInputs[], set the following values: - 0.0f= not held. 1.0f= fully held. Pass intermediate 0.0f..1.0f values for analog triggers/sticks. - - We uses a simple >0.0f test for activation testing, and won't attempt to test for a dead-zone. - Your code will probably need to transform your raw inputs (such as e.g. remapping your 0.2..0.9 raw input range to 0.0..1.0 imgui range, etc.). - - You can download PNG/PSD files depicting the gamepad controls for common controllers at: http://dearimgui.org/controls_sheets - - If you need to share inputs between your game and the imgui parts, the easiest approach is to go all-or-nothing, with a buttons combo - to toggle the target. Please reach out if you think the game vs navigation input sharing could be improved. - - Mouse: - - PS4 users: Consider emulating a mouse cursor with DualShock4 touch pad or a spare analog stick as a mouse-emulation fallback. - - Consoles/Tablet/Phone users: Consider using a Synergy 1.x server (on your PC) + uSynergy.c (on your console/tablet/phone app) to share your PC mouse/keyboard. - - On a TV/console system where readability may be lower or mouse inputs may be awkward, you may want to set the ImGuiConfigFlags_NavEnableSetMousePos flag. - Enabling ImGuiConfigFlags_NavEnableSetMousePos + ImGuiBackendFlags_HasSetMousePos instructs dear imgui to move your mouse cursor along with navigation movements. - When enabled, the NewFrame() function may alter 'io.MousePos' and set 'io.WantSetMousePos' to notify you that it wants the mouse cursor to be moved. - When that happens your backend NEEDS to move the OS or underlying mouse cursor on the next frame. Some of the backends in examples/ do that. - (If you set the NavEnableSetMousePos flag but don't honor 'io.WantSetMousePos' properly, imgui will misbehave as it will see your mouse as moving back and forth!) - (In a setup when you may not have easy control over the mouse cursor, e.g. uSynergy.c doesn't expose moving remote mouse cursor, you may want - to set a boolean to ignore your other external mouse positions until the external source is moved again.) - - - API BREAKING CHANGES - ==================== - - Occasionally introducing changes that are breaking the API. We try to make the breakage minor and easy to fix. - Below is a change-log of API breaking changes only. If you are using one of the functions listed, expect to have to fix some code. - When you are not sure about a old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. - You can read releases logs https://github.com/ocornut/imgui/releases for more details. - - - 2021/02/22 (1.82) - win32+mingw: Re-enabled IME functions by default even under MinGW. In July 2016, issue #738 had me incorrectly disable those default functions for MinGW. MinGW users should: either link with -limm32, either set their imconfig file with '#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS'. - - 2021/02/17 (1.82) - renamed rarely used style.CircleSegmentMaxError (old default = 1.60f) to style.CircleTessellationMaxError (new default = 0.30f) as the meaning of the value changed. - - 2021/02/03 (1.81) - renamed ListBoxHeader(const char* label, ImVec2 size) to BeginListBox(). Kept inline redirection function (will obsolete). - - removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size. Kept inline redirection function (will obsolete). - - renamed ListBoxFooter() to EndListBox(). Kept inline redirection function (will obsolete). - - 2021/01/26 (1.81) - removed ImGuiFreeType::BuildFontAtlas(). Kept inline redirection function. Prefer using '#define IMGUI_ENABLE_FREETYPE', but there's a runtime selection path available too. The shared extra flags parameters (very rarely used) are now stored in ImFontAtlas::FontBuilderFlags. - - renamed ImFontConfig::RasterizerFlags (used by FreeType) to ImFontConfig::FontBuilderFlags. - - renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. - - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.63 (August 2018): - - ImGui::IsItemDeactivatedAfterChange() -> use ImGui::IsItemDeactivatedAfterEdit(). - - ImGuiCol_ModalWindowDarkening -> use ImGuiCol_ModalWindowDimBg - - ImGuiInputTextCallback -> use ImGuiTextEditCallback - - ImGuiInputTextCallbackData -> use ImGuiTextEditCallbackData - - 2020/12/21 (1.80) - renamed ImDrawList::AddBezierCurve() to AddBezierCubic(), and PathBezierCurveTo() to PathBezierCubicCurveTo(). Kept inline redirection function (will obsolete). - - 2020/12/04 (1.80) - added imgui_tables.cpp file! Manually constructed project files will need the new file added! - - 2020/11/18 (1.80) - renamed undocumented/internals ImGuiColumnsFlags_* to ImGuiOldColumnFlags_* in prevision of incoming Tables API. - - 2020/11/03 (1.80) - renamed io.ConfigWindowsMemoryCompactTimer to io.ConfigMemoryCompactTimer as the feature will apply to other data structures - - 2020/10/14 (1.80) - backends: moved all backends files (imgui_impl_XXXX.cpp, imgui_impl_XXXX.h) from examples/ to backends/. - - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.60 (April 2018): - - io.RenderDrawListsFn pointer -> use ImGui::GetDrawData() value and call the render function of your backend - - ImGui::IsAnyWindowFocused() -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) - - ImGui::IsAnyWindowHovered() -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) - - ImGuiStyleVar_Count_ -> use ImGuiStyleVar_COUNT - - ImGuiMouseCursor_Count_ -> use ImGuiMouseCursor_COUNT - - removed redirecting functions names that were marked obsolete in 1.61 (May 2018): - - InputFloat (... int decimal_precision ...) -> use InputFloat (... const char* format ...) with format = "%.Xf" where X is your value for decimal_precision. - - same for InputFloat2()/InputFloat3()/InputFloat4() variants taking a `int decimal_precision` parameter. - - 2020/10/05 (1.79) - removed ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using the ImGuiListClipper::Begin() function, with misleading edge cases (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). - - 2020/09/25 (1.79) - renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete sooner because previous name was added recently). - - 2020/09/25 (1.79) - renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. - - 2020/09/21 (1.79) - renamed OpenPopupContextItem() back to OpenPopupOnItemClick(), reverting the change from 1.77. For varieties of reason this is more self-explanatory. - - 2020/09/21 (1.79) - removed return value from OpenPopupOnItemClick() - returned true on mouse release on item - because it is inconsistent with other popup APIs and makes others misleading. It's also and unnecessary: you can use IsWindowAppearing() after BeginPopup() for a similar result. - - 2020/09/17 (1.79) - removed ImFont::DisplayOffset in favor of ImFontConfig::GlyphOffset. DisplayOffset was applied after scaling and not very meaningful/useful outside of being needed by the default ProggyClean font. If you scaled this value after calling AddFontDefault(), this is now done automatically. It was also getting in the way of better font scaling, so let's get rid of it now! - - 2020/08/17 (1.78) - obsoleted use of the trailing 'float power=1.0f' parameter for DragFloat(), DragFloat2(), DragFloat3(), DragFloat4(), DragFloatRange2(), DragScalar(), DragScalarN(), SliderFloat(), SliderFloat2(), SliderFloat3(), SliderFloat4(), SliderScalar(), SliderScalarN(), VSliderFloat() and VSliderScalar(). - replaced the 'float power=1.0f' argument with integer-based flags defaulting to 0 (as with all our flags). - worked out a backward-compatibility scheme so hopefully most C++ codebase should not be affected. in short, when calling those functions: - - if you omitted the 'power' parameter (likely!), you are not affected. - - if you set the 'power' parameter to 1.0f (same as previous default value): 1/ your compiler may warn on float>int conversion, 2/ everything else will work. 3/ you can replace the 1.0f value with 0 to fix the warning, and be technically correct. - - if you set the 'power' parameter to >1.0f (to enable non-linear editing): 1/ your compiler may warn on float>int conversion, 2/ code will assert at runtime, 3/ in case asserts are disabled, the code will not crash and enable the _Logarithmic flag. 4/ you can replace the >1.0f value with ImGuiSliderFlags_Logarithmic to fix the warning/assert and get a _similar_ effect as previous uses of power >1.0f. - see https://github.com/ocornut/imgui/issues/3361 for all details. - kept inline redirection functions (will obsolete) apart for: DragFloatRange2(), VSliderFloat(), VSliderScalar(). For those three the 'float power=1.0f' version were removed directly as they were most unlikely ever used. - for shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. - - obsoleted use of v_min > v_max in DragInt, DragFloat, DragScalar to lock edits (introduced in 1.73, was not demoed nor documented very), will be replaced by a more generic ReadOnly feature. You may use the ImGuiSliderFlags_ReadOnly internal flag in the meantime. - - 2020/06/23 (1.77) - removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. - - 2020/06/15 (1.77) - renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). [NOTE: THIS WAS REVERTED IN 1.79] - - 2020/06/15 (1.77) - removed CalcItemRectClosestPoint() entry point which was made obsolete and asserting in December 2017. - - 2020/04/23 (1.77) - removed unnecessary ID (first arg) of ImFontAtlas::AddCustomRectRegular(). - - 2020/01/22 (1.75) - ImDrawList::AddCircle()/AddCircleFilled() functions don't accept negative radius any more. - - 2019/12/17 (1.75) - [undid this change in 1.76] made Columns() limited to 64 columns by asserting above that limit. While the current code technically supports it, future code may not so we're putting the restriction ahead. - - 2019/12/13 (1.75) - [imgui_internal.h] changed ImRect() default constructor initializes all fields to 0.0f instead of (FLT_MAX,FLT_MAX,-FLT_MAX,-FLT_MAX). If you used ImRect::Add() to create bounding boxes by adding multiple points into it, you may need to fix your initial value. - - 2019/12/08 (1.75) - removed redirecting functions/enums that were marked obsolete in 1.53 (December 2017): - - ShowTestWindow() -> use ShowDemoWindow() - - IsRootWindowFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootWindow) - - IsRootWindowOrAnyChildFocused() -> use IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) - - SetNextWindowContentWidth(w) -> use SetNextWindowContentSize(ImVec2(w, 0.0f) - - GetItemsLineHeightWithSpacing() -> use GetFrameHeightWithSpacing() - - ImGuiCol_ChildWindowBg -> use ImGuiCol_ChildBg - - ImGuiStyleVar_ChildWindowRounding -> use ImGuiStyleVar_ChildRounding - - ImGuiTreeNodeFlags_AllowOverlapMode -> use ImGuiTreeNodeFlags_AllowItemOverlap - - IMGUI_DISABLE_TEST_WINDOWS -> use IMGUI_DISABLE_DEMO_WINDOWS - - 2019/12/08 (1.75) - obsoleted calling ImDrawList::PrimReserve() with a negative count (which was the vaguely documented and rarely if ever used). Instead we added an explicit PrimUnreserve() API. - - 2019/12/06 (1.75) - removed implicit default parameter to IsMouseDragging(int button = 0) to be consistent with other mouse functions (none of the other functions have it). - - 2019/11/21 (1.74) - ImFontAtlas::AddCustomRectRegular() now requires an ID larger than 0x110000 (instead of 0x10000) to conform with supporting Unicode planes 1-16 in a future update. ID below 0x110000 will now assert. - - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS to IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS for consistency. - - 2019/11/19 (1.74) - renamed IMGUI_DISABLE_MATH_FUNCTIONS to IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS for consistency. - - 2019/10/22 (1.74) - removed redirecting functions/enums that were marked obsolete in 1.52 (October 2017): - - Begin() [old 5 args version] -> use Begin() [3 args], use SetNextWindowSize() SetNextWindowBgAlpha() if needed - - IsRootWindowOrAnyChildHovered() -> use IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) - - AlignFirstTextHeightToWidgets() -> use AlignTextToFramePadding() - - SetNextWindowPosCenter() -> use SetNextWindowPos() with a pivot of (0.5f, 0.5f) - - ImFont::Glyph -> use ImFontGlyph - - 2019/10/14 (1.74) - inputs: Fixed a miscalculation in the keyboard/mouse "typematic" repeat delay/rate calculation, used by keys and e.g. repeating mouse buttons as well as the GetKeyPressedAmount() function. - if you were using a non-default value for io.KeyRepeatRate (previous default was 0.250), you can add +io.KeyRepeatDelay to it to compensate for the fix. - The function was triggering on: 0.0 and (delay+rate*N) where (N>=1). Fixed formula responds to (N>=0). Effectively it made io.KeyRepeatRate behave like it was set to (io.KeyRepeatRate + io.KeyRepeatDelay). - If you never altered io.KeyRepeatRate nor used GetKeyPressedAmount() this won't affect you. - - 2019/07/15 (1.72) - removed TreeAdvanceToLabelPos() which is rarely used and only does SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()). Kept redirection function (will obsolete). - - 2019/07/12 (1.72) - renamed ImFontAtlas::CustomRect to ImFontAtlasCustomRect. Kept redirection typedef (will obsolete). - - 2019/06/14 (1.72) - removed redirecting functions/enums names that were marked obsolete in 1.51 (June 2017): ImGuiCol_Column*, ImGuiSetCond_*, IsItemHoveredRect(), IsPosHoveringAnyWindow(), IsMouseHoveringAnyWindow(), IsMouseHoveringWindow(), IMGUI_ONCE_UPON_A_FRAME. Grep this log for details and new names, or see how they were implemented until 1.71. - - 2019/06/07 (1.71) - rendering of child window outer decorations (bg color, border, scrollbars) is now performed as part of the parent window. If you have - overlapping child windows in a same parent, and relied on their relative z-order to be mapped to their submission order, this will affect your rendering. - This optimization is disabled if the parent window has no visual output, because it appears to be the most common situation leading to the creation of overlapping child windows. - Please reach out if you are affected. - - 2019/05/13 (1.71) - renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Kept inline redirection function (will obsolete). - - 2019/05/11 (1.71) - changed io.AddInputCharacter(unsigned short c) signature to io.AddInputCharacter(unsigned int c). - - 2019/04/29 (1.70) - improved ImDrawList thick strokes (>1.0f) preserving correct thickness up to 90 degrees angles (e.g. rectangles). If you have custom rendering using thick lines, they will appear thicker now. - - 2019/04/29 (1.70) - removed GetContentRegionAvailWidth(), use GetContentRegionAvail().x instead. Kept inline redirection function (will obsolete). - - 2019/03/04 (1.69) - renamed GetOverlayDrawList() to GetForegroundDrawList(). Kept redirection function (will obsolete). - - 2019/02/26 (1.69) - renamed ImGuiColorEditFlags_RGB/ImGuiColorEditFlags_HSV/ImGuiColorEditFlags_HEX to ImGuiColorEditFlags_DisplayRGB/ImGuiColorEditFlags_DisplayHSV/ImGuiColorEditFlags_DisplayHex. Kept redirection enums (will obsolete). - - 2019/02/14 (1.68) - made it illegal/assert when io.DisplayTime == 0.0f (with an exception for the first frame). If for some reason your time step calculation gives you a zero value, replace it with an arbitrary small value! - - 2019/02/01 (1.68) - removed io.DisplayVisibleMin/DisplayVisibleMax (which were marked obsolete and removed from viewport/docking branch already). - - 2019/01/06 (1.67) - renamed io.InputCharacters[], marked internal as was always intended. Please don't access directly, and use AddInputCharacter() instead! - - 2019/01/06 (1.67) - renamed ImFontAtlas::GlyphRangesBuilder to ImFontGlyphRangesBuilder. Kept redirection typedef (will obsolete). - - 2018/12/20 (1.67) - made it illegal to call Begin("") with an empty string. This somehow half-worked before but had various undesirable side-effects. - - 2018/12/10 (1.67) - renamed io.ConfigResizeWindowsFromEdges to io.ConfigWindowsResizeFromEdges as we are doing a large pass on configuration flags. - - 2018/10/12 (1.66) - renamed misc/stl/imgui_stl.* to misc/cpp/imgui_stdlib.* in prevision for other C++ helper files. - - 2018/09/28 (1.66) - renamed SetScrollHere() to SetScrollHereY(). Kept redirection function (will obsolete). - - 2018/09/06 (1.65) - renamed stb_truetype.h to imstb_truetype.h, stb_textedit.h to imstb_textedit.h, and stb_rect_pack.h to imstb_rectpack.h. - If you were conveniently using the imgui copy of those STB headers in your project you will have to update your include paths. - - 2018/09/05 (1.65) - renamed io.OptCursorBlink/io.ConfigCursorBlink to io.ConfigInputTextCursorBlink. (#1427) - - 2018/08/31 (1.64) - added imgui_widgets.cpp file, extracted and moved widgets code out of imgui.cpp into imgui_widgets.cpp. Re-ordered some of the code remaining in imgui.cpp. - NONE OF THE FUNCTIONS HAVE CHANGED. THE CODE IS SEMANTICALLY 100% IDENTICAL, BUT _EVERY_ FUNCTION HAS BEEN MOVED. - Because of this, any local modifications to imgui.cpp will likely conflict when you update. Read docs/CHANGELOG.txt for suggestions. - - 2018/08/22 (1.63) - renamed IsItemDeactivatedAfterChange() to IsItemDeactivatedAfterEdit() for consistency with new IsItemEdited() API. Kept redirection function (will obsolete soonish as IsItemDeactivatedAfterChange() is very recent). - - 2018/08/21 (1.63) - renamed ImGuiTextEditCallback to ImGuiInputTextCallback, ImGuiTextEditCallbackData to ImGuiInputTextCallbackData for consistency. Kept redirection types (will obsolete). - - 2018/08/21 (1.63) - removed ImGuiInputTextCallbackData::ReadOnly since it is a duplication of (ImGuiInputTextCallbackData::Flags & ImGuiInputTextFlags_ReadOnly). - - 2018/08/01 (1.63) - removed per-window ImGuiWindowFlags_ResizeFromAnySide beta flag in favor of a global io.ConfigResizeWindowsFromEdges [update 1.67 renamed to ConfigWindowsResizeFromEdges] to enable the feature. - - 2018/08/01 (1.63) - renamed io.OptCursorBlink to io.ConfigCursorBlink [-> io.ConfigInputTextCursorBlink in 1.65], io.OptMacOSXBehaviors to ConfigMacOSXBehaviors for consistency. - - 2018/07/22 (1.63) - changed ImGui::GetTime() return value from float to double to avoid accumulating floating point imprecisions over time. - - 2018/07/08 (1.63) - style: renamed ImGuiCol_ModalWindowDarkening to ImGuiCol_ModalWindowDimBg for consistency with other features. Kept redirection enum (will obsolete). - - 2018/06/08 (1.62) - examples: the imgui_impl_XXX files have been split to separate platform (Win32, GLFW, SDL2, etc.) from renderer (DX11, OpenGL, Vulkan, etc.). - old backends will still work as is, however prefer using the separated backends as they will be updated to support multi-viewports. - when adopting new backends follow the main.cpp code of your preferred examples/ folder to know which functions to call. - in particular, note that old backends called ImGui::NewFrame() at the end of their ImGui_ImplXXXX_NewFrame() function. - - 2018/06/06 (1.62) - renamed GetGlyphRangesChinese() to GetGlyphRangesChineseFull() to distinguish other variants and discourage using the full set. - - 2018/06/06 (1.62) - TreeNodeEx()/TreeNodeBehavior(): the ImGuiTreeNodeFlags_CollapsingHeader helper now include the ImGuiTreeNodeFlags_NoTreePushOnOpen flag. See Changelog for details. - - 2018/05/03 (1.61) - DragInt(): the default compile-time format string has been changed from "%.0f" to "%d", as we are not using integers internally any more. - If you used DragInt() with custom format strings, make sure you change them to use %d or an integer-compatible format. - To honor backward-compatibility, the DragInt() code will currently parse and modify format strings to replace %*f with %d, giving time to users to upgrade their code. - If you have IMGUI_DISABLE_OBSOLETE_FUNCTIONS enabled, the code will instead assert! You may run a reg-exp search on your codebase for e.g. "DragInt.*%f" to help you find them. - - 2018/04/28 (1.61) - obsoleted InputFloat() functions taking an optional "int decimal_precision" in favor of an equivalent and more flexible "const char* format", - consistent with other functions. Kept redirection functions (will obsolete). - - 2018/04/09 (1.61) - IM_DELETE() helper function added in 1.60 doesn't clear the input _pointer_ reference, more consistent with expectation and allows passing r-value. - - 2018/03/20 (1.60) - renamed io.WantMoveMouse to io.WantSetMousePos for consistency and ease of understanding (was added in 1.52, _not_ used by core and only honored by some backend ahead of merging the Nav branch). - - 2018/03/12 (1.60) - removed ImGuiCol_CloseButton, ImGuiCol_CloseButtonActive, ImGuiCol_CloseButtonHovered as the closing cross uses regular button colors now. - - 2018/03/08 (1.60) - changed ImFont::DisplayOffset.y to default to 0 instead of +1. Fixed rounding of Ascent/Descent to match TrueType renderer. If you were adding or subtracting to ImFont::DisplayOffset check if your fonts are correctly aligned vertically. - - 2018/03/03 (1.60) - renamed ImGuiStyleVar_Count_ to ImGuiStyleVar_COUNT and ImGuiMouseCursor_Count_ to ImGuiMouseCursor_COUNT for consistency with other public enums. - - 2018/02/18 (1.60) - BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. - - 2018/02/16 (1.60) - obsoleted the io.RenderDrawListsFn callback, you can call your graphics engine render function after ImGui::Render(). Use ImGui::GetDrawData() to retrieve the ImDrawData* to display. - - 2018/02/07 (1.60) - reorganized context handling to be more explicit, - - YOU NOW NEED TO CALL ImGui::CreateContext() AT THE BEGINNING OF YOUR APP, AND CALL ImGui::DestroyContext() AT THE END. - - removed Shutdown() function, as DestroyContext() serve this purpose. - - you may pass a ImFontAtlas* pointer to CreateContext() to share a font atlas between contexts. Otherwise CreateContext() will create its own font atlas instance. - - removed allocator parameters from CreateContext(), they are now setup with SetAllocatorFunctions(), and shared by all contexts. - - removed the default global context and font atlas instance, which were confusing for users of DLL reloading and users of multiple contexts. - - 2018/01/31 (1.60) - moved sample TTF files from extra_fonts/ to misc/fonts/. If you loaded files directly from the imgui repo you may need to update your paths. - - 2018/01/11 (1.60) - obsoleted IsAnyWindowHovered() in favor of IsWindowHovered(ImGuiHoveredFlags_AnyWindow). Kept redirection function (will obsolete). - - 2018/01/11 (1.60) - obsoleted IsAnyWindowFocused() in favor of IsWindowFocused(ImGuiFocusedFlags_AnyWindow). Kept redirection function (will obsolete). - - 2018/01/03 (1.60) - renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. - - 2017/12/29 (1.60) - removed CalcItemRectClosestPoint() which was weird and not really used by anyone except demo code. If you need it it's easy to replicate on your side. - - 2017/12/24 (1.53) - renamed the emblematic ShowTestWindow() function to ShowDemoWindow(). Kept redirection function (will obsolete). - - 2017/12/21 (1.53) - ImDrawList: renamed style.AntiAliasedShapes to style.AntiAliasedFill for consistency and as a way to explicitly break code that manipulate those flag at runtime. You can now manipulate ImDrawList::Flags - - 2017/12/21 (1.53) - ImDrawList: removed 'bool anti_aliased = true' final parameter of ImDrawList::AddPolyline() and ImDrawList::AddConvexPolyFilled(). Prefer manipulating ImDrawList::Flags if you need to toggle them during the frame. - - 2017/12/14 (1.53) - using the ImGuiWindowFlags_NoScrollWithMouse flag on a child window forwards the mouse wheel event to the parent window, unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set. - - 2017/12/13 (1.53) - renamed GetItemsLineHeightWithSpacing() to GetFrameHeightWithSpacing(). Kept redirection function (will obsolete). - - 2017/12/13 (1.53) - obsoleted IsRootWindowFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootWindow). Kept redirection function (will obsolete). - - obsoleted IsRootWindowOrAnyChildFocused() in favor of using IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows). Kept redirection function (will obsolete). - - 2017/12/12 (1.53) - renamed ImGuiTreeNodeFlags_AllowOverlapMode to ImGuiTreeNodeFlags_AllowItemOverlap. Kept redirection enum (will obsolete). - - 2017/12/10 (1.53) - removed SetNextWindowContentWidth(), prefer using SetNextWindowContentSize(). Kept redirection function (will obsolete). - - 2017/11/27 (1.53) - renamed ImGuiTextBuffer::append() helper to appendf(), appendv() to appendfv(). If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed. - - 2017/11/18 (1.53) - Style, Begin: removed ImGuiWindowFlags_ShowBorders window flag. Borders are now fully set up in the ImGuiStyle structure (see e.g. style.FrameBorderSize, style.WindowBorderSize). Use ImGui::ShowStyleEditor() to look them up. - Please note that the style system will keep evolving (hopefully stabilizing in Q1 2018), and so custom styles will probably subtly break over time. It is recommended you use the StyleColorsClassic(), StyleColorsDark(), StyleColorsLight() functions. - - 2017/11/18 (1.53) - Style: removed ImGuiCol_ComboBg in favor of combo boxes using ImGuiCol_PopupBg for consistency. - - 2017/11/18 (1.53) - Style: renamed ImGuiCol_ChildWindowBg to ImGuiCol_ChildBg. - - 2017/11/18 (1.53) - Style: renamed style.ChildWindowRounding to style.ChildRounding, ImGuiStyleVar_ChildWindowRounding to ImGuiStyleVar_ChildRounding. - - 2017/11/02 (1.53) - obsoleted IsRootWindowOrAnyChildHovered() in favor of using IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows); - - 2017/10/24 (1.52) - renamed IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS to IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS/IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS for consistency. - - 2017/10/20 (1.52) - changed IsWindowHovered() default parameters behavior to return false if an item is active in another window (e.g. click-dragging item from another window to this window). You can use the newly introduced IsWindowHovered() flags to requests this specific behavior if you need it. - - 2017/10/20 (1.52) - marked IsItemHoveredRect()/IsMouseHoveringWindow() as obsolete, in favor of using the newly introduced flags for IsItemHovered() and IsWindowHovered(). See https://github.com/ocornut/imgui/issues/1382 for details. - removed the IsItemRectHovered()/IsWindowRectHovered() names introduced in 1.51 since they were merely more consistent names for the two functions we are now obsoleting. - IsItemHoveredRect() --> IsItemHovered(ImGuiHoveredFlags_RectOnly) - IsMouseHoveringAnyWindow() --> IsWindowHovered(ImGuiHoveredFlags_AnyWindow) - IsMouseHoveringWindow() --> IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) [weird, old behavior] - - 2017/10/17 (1.52) - marked the old 5-parameters version of Begin() as obsolete (still available). Use SetNextWindowSize()+Begin() instead! - - 2017/10/11 (1.52) - renamed AlignFirstTextHeightToWidgets() to AlignTextToFramePadding(). Kept inline redirection function (will obsolete). - - 2017/09/26 (1.52) - renamed ImFont::Glyph to ImFontGlyph. Kept redirection typedef (will obsolete). - - 2017/09/25 (1.52) - removed SetNextWindowPosCenter() because SetNextWindowPos() now has the optional pivot information to do the same and more. Kept redirection function (will obsolete). - - 2017/08/25 (1.52) - io.MousePos needs to be set to ImVec2(-FLT_MAX,-FLT_MAX) when mouse is unavailable/missing. Previously ImVec2(-1,-1) was enough but we now accept negative mouse coordinates. In your backend if you need to support unavailable mouse, make sure to replace "io.MousePos = ImVec2(-1,-1)" with "io.MousePos = ImVec2(-FLT_MAX,-FLT_MAX)". - - 2017/08/22 (1.51) - renamed IsItemHoveredRect() to IsItemRectHovered(). Kept inline redirection function (will obsolete). -> (1.52) use IsItemHovered(ImGuiHoveredFlags_RectOnly)! - - renamed IsMouseHoveringAnyWindow() to IsAnyWindowHovered() for consistency. Kept inline redirection function (will obsolete). - - renamed IsMouseHoveringWindow() to IsWindowRectHovered() for consistency. Kept inline redirection function (will obsolete). - - 2017/08/20 (1.51) - renamed GetStyleColName() to GetStyleColorName() for consistency. - - 2017/08/20 (1.51) - added PushStyleColor(ImGuiCol idx, ImU32 col) overload, which _might_ cause an "ambiguous call" compilation error if you are using ImColor() with implicit cast. Cast to ImU32 or ImVec4 explicily to fix. - - 2017/08/15 (1.51) - marked the weird IMGUI_ONCE_UPON_A_FRAME helper macro as obsolete. prefer using the more explicit ImGuiOnceUponAFrame type. - - 2017/08/15 (1.51) - changed parameter order for BeginPopupContextWindow() from (const char*,int buttons,bool also_over_items) to (const char*,int buttons,bool also_over_items). Note that most calls relied on default parameters completely. - - 2017/08/13 (1.51) - renamed ImGuiCol_Column to ImGuiCol_Separator, ImGuiCol_ColumnHovered to ImGuiCol_SeparatorHovered, ImGuiCol_ColumnActive to ImGuiCol_SeparatorActive. Kept redirection enums (will obsolete). - - 2017/08/11 (1.51) - renamed ImGuiSetCond_Always to ImGuiCond_Always, ImGuiSetCond_Once to ImGuiCond_Once, ImGuiSetCond_FirstUseEver to ImGuiCond_FirstUseEver, ImGuiSetCond_Appearing to ImGuiCond_Appearing. Kept redirection enums (will obsolete). - - 2017/08/09 (1.51) - removed ValueColor() helpers, they are equivalent to calling Text(label) + SameLine() + ColorButton(). - - 2017/08/08 (1.51) - removed ColorEditMode() and ImGuiColorEditMode in favor of ImGuiColorEditFlags and parameters to the various Color*() functions. The SetColorEditOptions() allows to initialize default but the user can still change them with right-click context menu. - - changed prototype of 'ColorEdit4(const char* label, float col[4], bool show_alpha = true)' to 'ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0)', where passing flags = 0x01 is a safe no-op (hello dodgy backward compatibility!). - check and run the demo window, under "Color/Picker Widgets", to understand the various new options. - - changed prototype of rarely used 'ColorButton(ImVec4 col, bool small_height = false, bool outline_border = true)' to 'ColorButton(const char* desc_id, ImVec4 col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0))' - - 2017/07/20 (1.51) - removed IsPosHoveringAnyWindow(ImVec2), which was partly broken and misleading. ASSERT + redirect user to io.WantCaptureMouse - - 2017/05/26 (1.50) - removed ImFontConfig::MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. - - 2017/05/01 (1.50) - renamed ImDrawList::PathFill() (rarely used directly) to ImDrawList::PathFillConvex() for clarity. - - 2016/11/06 (1.50) - BeginChild(const char*) now applies the stack id to the provided label, consistently with other functions as it should always have been. It shouldn't affect you unless (extremely unlikely) you were appending multiple times to a same child from different locations of the stack id. If that's the case, generate an id with GetId() and use it instead of passing string to BeginChild(). - - 2016/10/15 (1.50) - avoid 'void* user_data' parameter to io.SetClipboardTextFn/io.GetClipboardTextFn pointers. We pass io.ClipboardUserData to it. - - 2016/09/25 (1.50) - style.WindowTitleAlign is now a ImVec2 (ImGuiAlign enum was removed). set to (0.5f,0.5f) for horizontal+vertical centering, (0.0f,0.0f) for upper-left, etc. - - 2016/07/30 (1.50) - SameLine(x) with x>0.0f is now relative to left of column/group if any, and not always to left of window. This was sort of always the intent and hopefully breakage should be minimal. - - 2016/05/12 (1.49) - title bar (using ImGuiCol_TitleBg/ImGuiCol_TitleBgActive colors) isn't rendered over a window background (ImGuiCol_WindowBg color) anymore. - If your TitleBg/TitleBgActive alpha was 1.0f or you are using the default theme it will not affect you, otherwise if <1.0f you need tweak your custom theme to readjust for the fact that we don't draw a WindowBg background behind the title bar. - This helper function will convert an old TitleBg/TitleBgActive color into a new one with the same visual output, given the OLD color and the OLD WindowBg color: - ImVec4 ConvertTitleBgCol(const ImVec4& win_bg_col, const ImVec4& title_bg_col) { float new_a = 1.0f - ((1.0f - win_bg_col.w) * (1.0f - title_bg_col.w)), k = title_bg_col.w / new_a; return ImVec4((win_bg_col.x * win_bg_col.w + title_bg_col.x) * k, (win_bg_col.y * win_bg_col.w + title_bg_col.y) * k, (win_bg_col.z * win_bg_col.w + title_bg_col.z) * k, new_a); } - If this is confusing, pick the RGB value from title bar from an old screenshot and apply this as TitleBg/TitleBgActive. Or you may just create TitleBgActive from a tweaked TitleBg color. - - 2016/05/07 (1.49) - removed confusing set of GetInternalState(), GetInternalStateSize(), SetInternalState() functions. Now using CreateContext(), DestroyContext(), GetCurrentContext(), SetCurrentContext(). - - 2016/05/02 (1.49) - renamed SetNextTreeNodeOpened() to SetNextTreeNodeOpen(), no redirection. - - 2016/05/01 (1.49) - obsoleted old signature of CollapsingHeader(const char* label, const char* str_id = NULL, bool display_frame = true, bool default_open = false) as extra parameters were badly designed and rarely used. You can replace the "default_open = true" flag in new API with CollapsingHeader(label, ImGuiTreeNodeFlags_DefaultOpen). - - 2016/04/26 (1.49) - changed ImDrawList::PushClipRect(ImVec4 rect) to ImDrawList::PushClipRect(Imvec2 min,ImVec2 max,bool intersect_with_current_clip_rect=false). Note that higher-level ImGui::PushClipRect() is preferable because it will clip at logic/widget level, whereas ImDrawList::PushClipRect() only affect your renderer. - - 2016/04/03 (1.48) - removed style.WindowFillAlphaDefault setting which was redundant. Bake default BG alpha inside style.Colors[ImGuiCol_WindowBg] and all other Bg color values. (ref github issue #337). - - 2016/04/03 (1.48) - renamed ImGuiCol_TooltipBg to ImGuiCol_PopupBg, used by popups/menus and tooltips. popups/menus were previously using ImGuiCol_WindowBg. (ref github issue #337) - - 2016/03/21 (1.48) - renamed GetWindowFont() to GetFont(), GetWindowFontSize() to GetFontSize(). Kept inline redirection function (will obsolete). - - 2016/03/02 (1.48) - InputText() completion/history/always callbacks: if you modify the text buffer manually (without using DeleteChars()/InsertChars() helper) you need to maintain the BufTextLen field. added an assert. - - 2016/01/23 (1.48) - fixed not honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. if you had manual pixel-perfect alignment in place it might affect you. - - 2015/12/27 (1.48) - fixed ImDrawList::AddRect() which used to render a rectangle 1 px too large on each axis. - - 2015/12/04 (1.47) - renamed Color() helpers to ValueColor() - dangerously named, rarely used and probably to be made obsolete. - - 2015/08/29 (1.45) - with the addition of horizontal scrollbar we made various fixes to inconsistencies with dealing with cursor position. - GetCursorPos()/SetCursorPos() functions now include the scrolled amount. It shouldn't affect the majority of users, but take note that SetCursorPosX(100.0f) puts you at +100 from the starting x position which may include scrolling, not at +100 from the window left side. - GetContentRegionMax()/GetWindowContentRegionMin()/GetWindowContentRegionMax() functions allow include the scrolled amount. Typically those were used in cases where no scrolling would happen so it may not be a problem, but watch out! - - 2015/08/29 (1.45) - renamed style.ScrollbarWidth to style.ScrollbarSize - - 2015/08/05 (1.44) - split imgui.cpp into extra files: imgui_demo.cpp imgui_draw.cpp imgui_internal.h that you need to add to your project. - - 2015/07/18 (1.44) - fixed angles in ImDrawList::PathArcTo(), PathArcToFast() (introduced in 1.43) being off by an extra PI for no justifiable reason - - 2015/07/14 (1.43) - add new ImFontAtlas::AddFont() API. For the old AddFont***, moved the 'font_no' parameter of ImFontAtlas::AddFont** functions to the ImFontConfig structure. - you need to render your textured triangles with bilinear filtering to benefit from sub-pixel positioning of text. - - 2015/07/08 (1.43) - switched rendering data to use indexed rendering. this is saving a fair amount of CPU/GPU and enables us to get anti-aliasing for a marginal cost. - this necessary change will break your rendering function! the fix should be very easy. sorry for that :( - - if you are using a vanilla copy of one of the imgui_impl_XXX.cpp provided in the example, you just need to update your copy and you can ignore the rest. - - the signature of the io.RenderDrawListsFn handler has changed! - old: ImGui_XXXX_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_lists_count) - new: ImGui_XXXX_RenderDrawLists(ImDrawData* draw_data). - parameters: 'cmd_lists' becomes 'draw_data->CmdLists', 'cmd_lists_count' becomes 'draw_data->CmdListsCount' - ImDrawList: 'commands' becomes 'CmdBuffer', 'vtx_buffer' becomes 'VtxBuffer', 'IdxBuffer' is new. - ImDrawCmd: 'vtx_count' becomes 'ElemCount', 'clip_rect' becomes 'ClipRect', 'user_callback' becomes 'UserCallback', 'texture_id' becomes 'TextureId'. - - each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles using indices from the index buffer. - - if you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index the buffers. This is slow and a waste of CPU/GPU. Prefer using indexed rendering! - - refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. please upgrade! - - 2015/07/10 (1.43) - changed SameLine() parameters from int to float. - - 2015/07/02 (1.42) - renamed SetScrollPosHere() to SetScrollFromCursorPos(). Kept inline redirection function (will obsolete). - - 2015/07/02 (1.42) - renamed GetScrollPosY() to GetScrollY(). Necessary to reduce confusion along with other scrolling functions, because positions (e.g. cursor position) are not equivalent to scrolling amount. - - 2015/06/14 (1.41) - changed ImageButton() default bg_col parameter from (0,0,0,1) (black) to (0,0,0,0) (transparent) - makes a difference when texture have transparence - - 2015/06/14 (1.41) - changed Selectable() API from (label, selected, size) to (label, selected, flags, size). Size override should have been rarely be used. Sorry! - - 2015/05/31 (1.40) - renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline redirection function (will obsolete). - - 2015/05/31 (1.40) - renamed IsRectClipped() to IsRectVisible() for consistency. Note that return value is opposite! Kept inline redirection function (will obsolete). - - 2015/05/27 (1.40) - removed the third 'repeat_if_held' parameter from Button() - sorry! it was rarely used and inconsistent. Use PushButtonRepeat(true) / PopButtonRepeat() to enable repeat on desired buttons. - - 2015/05/11 (1.40) - changed BeginPopup() API, takes a string identifier instead of a bool. ImGui needs to manage the open/closed state of popups. Call OpenPopup() to actually set the "open" state of a popup. BeginPopup() returns true if the popup is opened. - - 2015/05/03 (1.40) - removed style.AutoFitPadding, using style.WindowPadding makes more sense (the default values were already the same). - - 2015/04/13 (1.38) - renamed IsClipped() to IsRectClipped(). Kept inline redirection function until 1.50. - - 2015/04/09 (1.38) - renamed ImDrawList::AddArc() to ImDrawList::AddArcFast() for compatibility with future API - - 2015/04/03 (1.38) - removed ImGuiCol_CheckHovered, ImGuiCol_CheckActive, replaced with the more general ImGuiCol_FrameBgHovered, ImGuiCol_FrameBgActive. - - 2014/04/03 (1.38) - removed support for passing -FLT_MAX..+FLT_MAX as the range for a SliderFloat(). Use DragFloat() or Inputfloat() instead. - - 2015/03/17 (1.36) - renamed GetItemBoxMin()/GetItemBoxMax()/IsMouseHoveringBox() to GetItemRectMin()/GetItemRectMax()/IsMouseHoveringRect(). Kept inline redirection function until 1.50. - - 2015/03/15 (1.36) - renamed style.TreeNodeSpacing to style.IndentSpacing, ImGuiStyleVar_TreeNodeSpacing to ImGuiStyleVar_IndentSpacing - - 2015/03/13 (1.36) - renamed GetWindowIsFocused() to IsWindowFocused(). Kept inline redirection function until 1.50. - - 2015/03/08 (1.35) - renamed style.ScrollBarWidth to style.ScrollbarWidth (casing) - - 2015/02/27 (1.34) - renamed OpenNextNode(bool) to SetNextTreeNodeOpened(bool, ImGuiSetCond). Kept inline redirection function until 1.50. - - 2015/02/27 (1.34) - renamed ImGuiSetCondition_*** to ImGuiSetCond_***, and _FirstUseThisSession becomes _Once. - - 2015/02/11 (1.32) - changed text input callback ImGuiTextEditCallback return type from void-->int. reserved for future use, return 0 for now. - - 2015/02/10 (1.32) - renamed GetItemWidth() to CalcItemWidth() to clarify its evolving behavior - - 2015/02/08 (1.31) - renamed GetTextLineSpacing() to GetTextLineHeightWithSpacing() - - 2015/02/01 (1.31) - removed IO.MemReallocFn (unused) - - 2015/01/19 (1.30) - renamed ImGuiStorage::GetIntPtr()/GetFloatPtr() to GetIntRef()/GetIntRef() because Ptr was conflicting with actual pointer storage functions. - - 2015/01/11 (1.30) - big font/image API change! now loads TTF file. allow for multiple fonts. no need for a PNG loader. - - 2015/01/11 (1.30) - removed GetDefaultFontData(). uses io.Fonts->GetTextureData*() API to retrieve uncompressed pixels. - - old: const void* png_data; unsigned int png_size; ImGui::GetDefaultFontData(NULL, NULL, &png_data, &png_size); [..Upload texture to GPU..]; - - new: unsigned char* pixels; int width, height; io.Fonts->GetTexDataAsRGBA32(&pixels, &width, &height); [..Upload texture to GPU..]; io.Fonts->SetTexID(YourTexIdentifier); - you now have more flexibility to load multiple TTF fonts and manage the texture buffer for internal needs. It is now recommended that you sample the font texture with bilinear interpolation. - - 2015/01/11 (1.30) - added texture identifier in ImDrawCmd passed to your render function (we can now render images). make sure to call io.Fonts->SetTexID() - - 2015/01/11 (1.30) - removed IO.PixelCenterOffset (unnecessary, can be handled in user projection matrix) - - 2015/01/11 (1.30) - removed ImGui::IsItemFocused() in favor of ImGui::IsItemActive() which handles all widgets - - 2014/12/10 (1.18) - removed SetNewWindowDefaultPos() in favor of new generic API SetNextWindowPos(pos, ImGuiSetCondition_FirstUseEver) - - 2014/11/28 (1.17) - moved IO.Font*** options to inside the IO.Font-> structure (FontYOffset, FontTexUvForWhite, FontBaseScale, FontFallbackGlyph) - - 2014/11/26 (1.17) - reworked syntax of IMGUI_ONCE_UPON_A_FRAME helper macro to increase compiler compatibility - - 2014/11/07 (1.15) - renamed IsHovered() to IsItemHovered() - - 2014/10/02 (1.14) - renamed IMGUI_INCLUDE_IMGUI_USER_CPP to IMGUI_INCLUDE_IMGUI_USER_INL and imgui_user.cpp to imgui_user.inl (more IDE friendly) - - 2014/09/25 (1.13) - removed 'text_end' parameter from IO.SetClipboardTextFn (the string is now always zero-terminated for simplicity) - - 2014/09/24 (1.12) - renamed SetFontScale() to SetWindowFontScale() - - 2014/09/24 (1.12) - moved IM_MALLOC/IM_REALLOC/IM_FREE preprocessor defines to IO.MemAllocFn/IO.MemReallocFn/IO.MemFreeFn - - 2014/08/30 (1.09) - removed IO.FontHeight (now computed automatically) - - 2014/08/30 (1.09) - moved IMGUI_FONT_TEX_UV_FOR_WHITE preprocessor define to IO.FontTexUvForWhite - - 2014/08/28 (1.09) - changed the behavior of IO.PixelCenterOffset following various rendering fixes - - - FREQUENTLY ASKED QUESTIONS (FAQ) - ================================ - - Read all answers online: - https://www.dearimgui.org/faq or https://github.com/ocornut/imgui/blob/master/docs/FAQ.md (same url) - Read all answers locally (with a text editor or ideally a Markdown viewer): - docs/FAQ.md - Some answers are copied down here to facilitate searching in code. - - Q&A: Basics - =========== - - Q: Where is the documentation? - A: This library is poorly documented at the moment and expects of the user to be acquainted with C/C++. - - Run the examples/ and explore them. - - See demo code in imgui_demo.cpp and particularly the ImGui::ShowDemoWindow() function. - - The demo covers most features of Dear ImGui, so you can read the code and see its output. - - See documentation and comments at the top of imgui.cpp + effectively imgui.h. - - Dozens of standalone example applications using e.g. OpenGL/DirectX are provided in the - examples/ folder to explain how to integrate Dear ImGui with your own engine/application. - - The Wiki (https://github.com/ocornut/imgui/wiki) has many resources and links. - - The Glossary (https://github.com/ocornut/imgui/wiki/Glossary) page also may be useful. - - Your programming IDE is your friend, find the type or function declaration to find comments - associated to it. - - Q: What is this library called? - Q: Which version should I get? - >> This library is called "Dear ImGui", please don't call it "ImGui" :) - >> See https://www.dearimgui.org/faq for details. - - Q&A: Integration - ================ - - Q: How to get started? - A: Read 'PROGRAMMER GUIDE' above. Read examples/README.txt. - - Q: How can I tell whether to dispatch mouse/keyboard to Dear ImGui or to my application? - A: You should read the 'io.WantCaptureMouse', 'io.WantCaptureKeyboard' and 'io.WantTextInput' flags! - >> See https://www.dearimgui.org/faq for fully detailed answer. You really want to read this. - - Q. How can I enable keyboard controls? - Q: How can I use this without a mouse, without a keyboard or without a screen? (gamepad, input share, remote display) - Q: I integrated Dear ImGui in my engine and little squares are showing instead of text.. - Q: I integrated Dear ImGui in my engine and some elements are clipping or disappearing when I move windows around.. - Q: I integrated Dear ImGui in my engine and some elements are displaying outside their expected windows boundaries.. - >> See https://www.dearimgui.org/faq - - Q&A: Usage - ---------- - - Q: Why is my widget not reacting when I click on it? - Q: How can I have widgets with an empty label? - Q: How can I have multiple widgets with the same label? - Q: How can I display an image? What is ImTextureID, how does it works? - Q: How can I use my own math types instead of ImVec2/ImVec4? - Q: How can I interact with standard C++ types (such as std::string and std::vector)? - Q: How can I display custom shapes? (using low-level ImDrawList API) - >> See https://www.dearimgui.org/faq - - Q&A: Fonts, Text - ================ - - Q: How should I handle DPI in my application? - Q: How can I load a different font than the default? - Q: How can I easily use icons in my application? - Q: How can I load multiple fonts? - Q: How can I display and input non-Latin characters such as Chinese, Japanese, Korean, Cyrillic? - >> See https://www.dearimgui.org/faq and https://github.com/ocornut/imgui/edit/master/docs/FONTS.md - - Q&A: Concerns - ============= - - Q: Who uses Dear ImGui? - Q: Can you create elaborate/serious tools with Dear ImGui? - Q: Can you reskin the look of Dear ImGui? - Q: Why using C++ (as opposed to C)? - >> See https://www.dearimgui.org/faq - - Q&A: Community - ============== - - Q: How can I help? - A: - Businesses: please reach out to "contact AT dearimgui.org" if you work in a place using Dear ImGui! - We can discuss ways for your company to fund development via invoiced technical support, maintenance or sponsoring contacts. - This is among the most useful thing you can do for Dear ImGui. With increased funding we can hire more people working on this project. - - Individuals: you can support continued development via PayPal donations. See README. - - If you are experienced with Dear ImGui and C++, look at the github issues, look at the Wiki, read docs/TODO.txt - and see how you want to help and can help! - - Disclose your usage of Dear ImGui via a dev blog post, a tweet, a screenshot, a mention somewhere etc. - You may post screenshot or links in the gallery threads (github.com/ocornut/imgui/issues/3488). Visuals are ideal as they inspire other programmers. - But even without visuals, disclosing your use of dear imgui help the library grow credibility, and help other teams and programmers with taking decisions. - - If you have issues or if you need to hack into the library, even if you don't expect any support it is useful that you share your issues (on github or privately). - -*/ - -//------------------------------------------------------------------------- -// [SECTION] INCLUDES -//------------------------------------------------------------------------- - -#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) -#define _CRT_SECURE_NO_WARNINGS -#endif - -#include "imgui.h" -#ifndef IMGUI_DISABLE - -#ifndef IMGUI_DEFINE_MATH_OPERATORS -#define IMGUI_DEFINE_MATH_OPERATORS -#endif -#include "imgui_internal.h" - -// System includes -#include // toupper -#include // vsnprintf, sscanf, printf -#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier -#include // intptr_t -#else -#include // intptr_t -#endif - -// [Windows] OS specific includes (optional) -#if defined(_WIN32) && defined(IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) && defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) -#define IMGUI_DISABLE_WIN32_FUNCTIONS -#endif -#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) -#ifndef WIN32_LEAN_AND_MEAN -#define WIN32_LEAN_AND_MEAN -#endif -#ifndef NOMINMAX -#define NOMINMAX -#endif -#ifndef __MINGW32__ -#include // _wfopen, OpenClipboard -#else -#include -#endif -#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) // UWP doesn't have all Win32 functions -#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS -#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS -#endif -#endif - -// [Apple] OS specific includes -#if defined(__APPLE__) -#include -#endif - -// Visual Studio warnings -#ifdef _MSC_VER -#pragma warning (disable: 4127) // condition expression is constant -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later -#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types -#endif -#endif - -// Clang/GCC warnings with -Weverything -#if defined(__clang__) -#if __has_warning("-Wunknown-warning-option") -#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' -#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. -#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. -#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. -#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. -#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. -#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness -#pragma clang diagnostic ignored "-Wformat-pedantic" // warning: format specifies type 'void *' but the argument has type 'xxxx *' // unreasonable, would lead to casting every %p arg to void*. probably enabled by -pedantic. -#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type 'int' -#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 -#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. -#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision -#elif defined(__GNUC__) -// We disable -Wpragmas because GCC doesn't provide an has_warning equivalent and some forks/patches may not following the warning/version association. -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used -#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size -#pragma GCC diagnostic ignored "-Wformat" // warning: format '%p' expects argument of type 'void*', but argument 6 has type 'ImGuiWindow*' -#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function -#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value -#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked -#pragma GCC diagnostic ignored "-Wstrict-overflow" // warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false -#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead -#endif - -// Debug options -#define IMGUI_DEBUG_NAV_SCORING 0 // Display navigation scoring preview when hovering items. Display last moving direction matches when holding CTRL -#define IMGUI_DEBUG_NAV_RECTS 0 // Display the reference navigation rectangle for each window -#define IMGUI_DEBUG_INI_SETTINGS 0 // Save additional comments in .ini file (particularly helps for Docking, but makes saving slower) - -// When using CTRL+TAB (or Gamepad Square+L/R) we delay the visual a little in order to reduce visual noise doing a fast switch. -static const float NAV_WINDOWING_HIGHLIGHT_DELAY = 0.20f; // Time before the highlight and screen dimming starts fading in -static const float NAV_WINDOWING_LIST_APPEAR_DELAY = 0.15f; // Time before the window list starts to appear - -// Window resizing from edges (when io.ConfigWindowsResizeFromEdges = true and ImGuiBackendFlags_HasMouseCursors is set in io.BackendFlags by backend) -static const float WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS = 4.0f; // Extend outside and inside windows. Affect FindHoveredWindow(). -static const float WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER = 0.04f; // Reduce visual noise by only highlighting the border after a certain time. -static const float WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER = 2.00f; // Lock scrolled window (so it doesn't pick child windows that are scrolling through) for a certain time, unless mouse moved. - -//------------------------------------------------------------------------- -// [SECTION] FORWARD DECLARATIONS -//------------------------------------------------------------------------- - -static void SetCurrentWindow(ImGuiWindow* window); -static void FindHoveredWindow(); -static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags); -static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window); - -static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list); -static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window); - -// Settings -static void WindowSettingsHandler_ClearAll(ImGuiContext*, ImGuiSettingsHandler*); -static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name); -static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line); -static void WindowSettingsHandler_ApplyAll(ImGuiContext*, ImGuiSettingsHandler*); -static void WindowSettingsHandler_WriteAll(ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer* buf); - -// Platform Dependents default implementation for IO functions -static const char* GetClipboardTextFn_DefaultImpl(void* user_data); -static void SetClipboardTextFn_DefaultImpl(void* user_data, const char* text); -static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y); - -namespace ImGui -{ -// Navigation -static void NavUpdate(); -static void NavUpdateWindowing(); -static void NavUpdateWindowingOverlay(); -static void NavUpdateMoveResult(); -static void NavUpdateInitResult(); -static float NavUpdatePageUpPageDown(); -static inline void NavUpdateAnyRequestFlag(); -static void NavEndFrame(); -static bool NavScoreItem(ImGuiNavMoveResult* result, ImRect cand); -static void NavApplyItemToResult(ImGuiNavMoveResult* result, ImGuiWindow* window, ImGuiID id, const ImRect& nav_bb_rel); -static void NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, ImGuiID id); -static ImVec2 NavCalcPreferredRefPos(); -static void NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window); -static ImGuiWindow* NavRestoreLastChildNavWindow(ImGuiWindow* window); -static int FindWindowFocusIndex(ImGuiWindow* window); - -// Error Checking -static void ErrorCheckNewFrameSanityChecks(); -static void ErrorCheckEndFrameSanityChecks(); - -// Misc -static void UpdateSettings(); -static void UpdateMouseInputs(); -static void UpdateMouseWheel(); -static void UpdateTabFocus(); -static void UpdateDebugToolItemPicker(); -static bool UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect); -static void RenderWindowOuterBorders(ImGuiWindow* window); -static void RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size); -static void RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open); - -// Viewports -static void UpdateViewportsNewFrame(); - -} - -//----------------------------------------------------------------------------- -// [SECTION] CONTEXT AND MEMORY ALLOCATORS -//----------------------------------------------------------------------------- - -// DLL users: -// - Heaps and globals are not shared across DLL boundaries! -// - You will need to call SetCurrentContext() + SetAllocatorFunctions() for each static/DLL boundary you are calling from. -// - Same apply for hot-reloading mechanisms that are reliant on reloading DLL (note that many hot-reloading mechanism works without DLL). -// - Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility. -// - Confused? In a debugger: add GImGui to your watch window and notice how its value changes depending on your current location (which DLL boundary you are in). - -// Current context pointer. Implicitly used by all Dear ImGui functions. Always assumed to be != NULL. -// - ImGui::CreateContext() will automatically set this pointer if it is NULL. -// Change to a different context by calling ImGui::SetCurrentContext(). -// - Important: Dear ImGui functions are not thread-safe because of this pointer. -// If you want thread-safety to allow N threads to access N different contexts: -// - Change this variable to use thread local storage so each thread can refer to a different context, in your imconfig.h: -// struct ImGuiContext; -// extern thread_local ImGuiContext* MyImGuiTLS; -// #define GImGui MyImGuiTLS -// And then define MyImGuiTLS in one of your cpp file. Note that thread_local is a C++11 keyword, earlier C++ uses compiler-specific keyword. -// - Future development aim to make this context pointer explicit to all calls. Also read https://github.com/ocornut/imgui/issues/586 -// - If you need a finite number of contexts, you may compile and use multiple instances of the ImGui code from different namespace. -// - DLL users: read comments above. -#ifndef GImGui -ImGuiContext* GImGui = NULL; -#endif - -// Memory Allocator functions. Use SetAllocatorFunctions() to change them. -// - You probably don't want to modify those mid-program, and if you use global/static e.g. ImVector<> instances you may need to keep them accessible during program destruction. -// - DLL users: read comments above. -#ifndef IMGUI_DISABLE_DEFAULT_ALLOCATORS -static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); return malloc(size); } -static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); free(ptr); } -#else -static void* MallocWrapper(size_t size, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(size); IM_ASSERT(0); return NULL; } -static void FreeWrapper(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_UNUSED(ptr); IM_ASSERT(0); } -#endif -static ImGuiMemAllocFunc GImAllocatorAllocFunc = MallocWrapper; -static ImGuiMemFreeFunc GImAllocatorFreeFunc = FreeWrapper; -static void* GImAllocatorUserData = NULL; - -//----------------------------------------------------------------------------- -// [SECTION] USER FACING STRUCTURES (ImGuiStyle, ImGuiIO) -//----------------------------------------------------------------------------- - -ImGuiStyle::ImGuiStyle() -{ - Alpha = 1.0f; // Global alpha applies to everything in ImGui - WindowPadding = ImVec2(8,8); // Padding within a window - WindowRounding = 0.0f; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. - WindowBorderSize = 1.0f; // Thickness of border around windows. Generally set to 0.0f or 1.0f. Other values not well tested. - WindowMinSize = ImVec2(32,32); // Minimum window size - WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text - WindowMenuButtonPosition= ImGuiDir_Left; // Position of the collapsing/docking button in the title bar (left/right). Defaults to ImGuiDir_Left. - ChildRounding = 0.0f; // Radius of child window corners rounding. Set to 0.0f to have rectangular child windows - ChildBorderSize = 1.0f; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. Other values not well tested. - PopupRounding = 0.0f; // Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows - PopupBorderSize = 1.0f; // Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested. - FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets) - FrameRounding = 0.0f; // Radius of frame corners rounding. Set to 0.0f to have rectangular frames (used by most widgets). - FrameBorderSize = 0.0f; // Thickness of border around frames. Generally set to 0.0f or 1.0f. Other values not well tested. - ItemSpacing = ImVec2(8,4); // Horizontal and vertical spacing between widgets/lines - ItemInnerSpacing = ImVec2(4,4); // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label) - CellPadding = ImVec2(4,2); // Padding within a table cell - TouchExtraPadding = ImVec2(0,0); // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! - IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). - ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). - ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar - ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar - GrabMinSize = 10.0f; // Minimum width/height of a grab box for slider/scrollbar - GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. - LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. - TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. - TabBorderSize = 0.0f; // Thickness of border around tabs. - TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. - ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. - ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text. - SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. - DisplayWindowPadding = ImVec2(19,19); // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. - DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows. - MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. - AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. - AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering. - AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.). - CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. - CircleTessellationMaxError = 0.30f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. - - // Default theme - ImGui::StyleColorsDark(this); -} - -// To scale your entire UI (e.g. if you want your app to use High DPI or generally be DPI aware) you may use this helper function. Scaling the fonts is done separately and is up to you. -// Important: This operation is lossy because we round all sizes to integer. If you need to change your scale multiples, call this over a freshly initialized ImGuiStyle structure rather than scaling multiple times. -void ImGuiStyle::ScaleAllSizes(float scale_factor) -{ - WindowPadding = ImFloor(WindowPadding * scale_factor); - WindowRounding = ImFloor(WindowRounding * scale_factor); - WindowMinSize = ImFloor(WindowMinSize * scale_factor); - ChildRounding = ImFloor(ChildRounding * scale_factor); - PopupRounding = ImFloor(PopupRounding * scale_factor); - FramePadding = ImFloor(FramePadding * scale_factor); - FrameRounding = ImFloor(FrameRounding * scale_factor); - ItemSpacing = ImFloor(ItemSpacing * scale_factor); - ItemInnerSpacing = ImFloor(ItemInnerSpacing * scale_factor); - CellPadding = ImFloor(CellPadding * scale_factor); - TouchExtraPadding = ImFloor(TouchExtraPadding * scale_factor); - IndentSpacing = ImFloor(IndentSpacing * scale_factor); - ColumnsMinSpacing = ImFloor(ColumnsMinSpacing * scale_factor); - ScrollbarSize = ImFloor(ScrollbarSize * scale_factor); - ScrollbarRounding = ImFloor(ScrollbarRounding * scale_factor); - GrabMinSize = ImFloor(GrabMinSize * scale_factor); - GrabRounding = ImFloor(GrabRounding * scale_factor); - LogSliderDeadzone = ImFloor(LogSliderDeadzone * scale_factor); - TabRounding = ImFloor(TabRounding * scale_factor); - TabMinWidthForCloseButton = (TabMinWidthForCloseButton != FLT_MAX) ? ImFloor(TabMinWidthForCloseButton * scale_factor) : FLT_MAX; - DisplayWindowPadding = ImFloor(DisplayWindowPadding * scale_factor); - DisplaySafeAreaPadding = ImFloor(DisplaySafeAreaPadding * scale_factor); - MouseCursorScale = ImFloor(MouseCursorScale * scale_factor); -} - -ImGuiIO::ImGuiIO() -{ - // Most fields are initialized with zero - memset(this, 0, sizeof(*this)); - IM_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); // Our pre-C++11 IM_STATIC_ASSERT() macros triggers warning on modern compilers so we don't use it here. - - // Settings - ConfigFlags = ImGuiConfigFlags_None; - BackendFlags = ImGuiBackendFlags_None; - DisplaySize = ImVec2(-1.0f, -1.0f); - DeltaTime = 1.0f / 60.0f; - IniSavingRate = 5.0f; - IniFilename = "imgui.ini"; - LogFilename = "imgui_log.txt"; - MouseDoubleClickTime = 0.30f; - MouseDoubleClickMaxDist = 6.0f; - for (int i = 0; i < ImGuiKey_COUNT; i++) - KeyMap[i] = -1; - KeyRepeatDelay = 0.275f; - KeyRepeatRate = 0.050f; - UserData = NULL; - - Fonts = NULL; - FontGlobalScale = 1.0f; - FontDefault = NULL; - FontAllowUserScaling = false; - DisplayFramebufferScale = ImVec2(1.0f, 1.0f); - - // Miscellaneous options - MouseDrawCursor = false; -#ifdef __APPLE__ - ConfigMacOSXBehaviors = true; // Set Mac OS X style defaults based on __APPLE__ compile time flag -#else - ConfigMacOSXBehaviors = false; -#endif - ConfigInputTextCursorBlink = true; - ConfigWindowsResizeFromEdges = true; - ConfigWindowsMoveFromTitleBarOnly = false; - ConfigMemoryCompactTimer = 60.0f; - - // Platform Functions - BackendPlatformName = BackendRendererName = NULL; - BackendPlatformUserData = BackendRendererUserData = BackendLanguageUserData = NULL; - GetClipboardTextFn = GetClipboardTextFn_DefaultImpl; // Platform dependent default implementations - SetClipboardTextFn = SetClipboardTextFn_DefaultImpl; - ClipboardUserData = NULL; - ImeSetInputScreenPosFn = ImeSetInputScreenPosFn_DefaultImpl; - ImeWindowHandle = NULL; - - // Input (NB: we already have memset zero the entire structure!) - MousePos = ImVec2(-FLT_MAX, -FLT_MAX); - MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); - MouseDragThreshold = 6.0f; - for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDurationPrev[i] = -1.0f; - for (int i = 0; i < IM_ARRAYSIZE(KeysDownDuration); i++) KeysDownDuration[i] = KeysDownDurationPrev[i] = -1.0f; - for (int i = 0; i < IM_ARRAYSIZE(NavInputsDownDuration); i++) NavInputsDownDuration[i] = -1.0f; -} - -// Pass in translated ASCII characters for text input. -// - with glfw you can get those from the callback set in glfwSetCharCallback() -// - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message -void ImGuiIO::AddInputCharacter(unsigned int c) -{ - if (c != 0) - InputQueueCharacters.push_back(c <= IM_UNICODE_CODEPOINT_MAX ? (ImWchar)c : IM_UNICODE_CODEPOINT_INVALID); -} - -// UTF16 strings use surrogate pairs to encode codepoints >= 0x10000, so -// we should save the high surrogate. -void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c) -{ - if (c == 0 && InputQueueSurrogate == 0) - return; - - if ((c & 0xFC00) == 0xD800) // High surrogate, must save - { - if (InputQueueSurrogate != 0) - InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID); - InputQueueSurrogate = c; - return; - } - - ImWchar cp = c; - if (InputQueueSurrogate != 0) - { - if ((c & 0xFC00) != 0xDC00) // Invalid low surrogate - InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID); - else if (IM_UNICODE_CODEPOINT_MAX == (0xFFFF)) // Codepoint will not fit in ImWchar (extra parenthesis around 0xFFFF somehow fixes -Wunreachable-code with Clang) - cp = IM_UNICODE_CODEPOINT_INVALID; - else - cp = (ImWchar)(((InputQueueSurrogate - 0xD800) << 10) + (c - 0xDC00) + 0x10000); - InputQueueSurrogate = 0; - } - InputQueueCharacters.push_back(cp); -} - -void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) -{ - while (*utf8_chars != 0) - { - unsigned int c = 0; - utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); - if (c != 0) - InputQueueCharacters.push_back((ImWchar)c); - } -} - -void ImGuiIO::ClearInputCharacters() -{ - InputQueueCharacters.resize(0); -} - -//----------------------------------------------------------------------------- -// [SECTION] MISC HELPERS/UTILITIES (Geometry functions) -//----------------------------------------------------------------------------- - -ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments) -{ - IM_ASSERT(num_segments > 0); // Use ImBezierCubicClosestPointCasteljau() - ImVec2 p_last = p1; - ImVec2 p_closest; - float p_closest_dist2 = FLT_MAX; - float t_step = 1.0f / (float)num_segments; - for (int i_step = 1; i_step <= num_segments; i_step++) - { - ImVec2 p_current = ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step); - ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); - float dist2 = ImLengthSqr(p - p_line); - if (dist2 < p_closest_dist2) - { - p_closest = p_line; - p_closest_dist2 = dist2; - } - p_last = p_current; - } - return p_closest; -} - -// Closely mimics PathBezierToCasteljau() in imgui_draw.cpp -static void ImBezierCubicClosestPointCasteljauStep(const ImVec2& p, ImVec2& p_closest, ImVec2& p_last, float& p_closest_dist2, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) -{ - float dx = x4 - x1; - float dy = y4 - y1; - float d2 = ((x2 - x4) * dy - (y2 - y4) * dx); - float d3 = ((x3 - x4) * dy - (y3 - y4) * dx); - d2 = (d2 >= 0) ? d2 : -d2; - d3 = (d3 >= 0) ? d3 : -d3; - if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) - { - ImVec2 p_current(x4, y4); - ImVec2 p_line = ImLineClosestPoint(p_last, p_current, p); - float dist2 = ImLengthSqr(p - p_line); - if (dist2 < p_closest_dist2) - { - p_closest = p_line; - p_closest_dist2 = dist2; - } - p_last = p_current; - } - else if (level < 10) - { - float x12 = (x1 + x2)*0.5f, y12 = (y1 + y2)*0.5f; - float x23 = (x2 + x3)*0.5f, y23 = (y2 + y3)*0.5f; - float x34 = (x3 + x4)*0.5f, y34 = (y3 + y4)*0.5f; - float x123 = (x12 + x23)*0.5f, y123 = (y12 + y23)*0.5f; - float x234 = (x23 + x34)*0.5f, y234 = (y23 + y34)*0.5f; - float x1234 = (x123 + x234)*0.5f, y1234 = (y123 + y234)*0.5f; - ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); - ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); - } -} - -// tess_tol is generally the same value you would find in ImGui::GetStyle().CurveTessellationTol -// Because those ImXXX functions are lower-level than ImGui:: we cannot access this value automatically. -ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol) -{ - IM_ASSERT(tess_tol > 0.0f); - ImVec2 p_last = p1; - ImVec2 p_closest; - float p_closest_dist2 = FLT_MAX; - ImBezierCubicClosestPointCasteljauStep(p, p_closest, p_last, p_closest_dist2, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, tess_tol, 0); - return p_closest; -} - -ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p) -{ - ImVec2 ap = p - a; - ImVec2 ab_dir = b - a; - float dot = ap.x * ab_dir.x + ap.y * ab_dir.y; - if (dot < 0.0f) - return a; - float ab_len_sqr = ab_dir.x * ab_dir.x + ab_dir.y * ab_dir.y; - if (dot > ab_len_sqr) - return b; - return a + ab_dir * dot / ab_len_sqr; -} - -bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) -{ - bool b1 = ((p.x - b.x) * (a.y - b.y) - (p.y - b.y) * (a.x - b.x)) < 0.0f; - bool b2 = ((p.x - c.x) * (b.y - c.y) - (p.y - c.y) * (b.x - c.x)) < 0.0f; - bool b3 = ((p.x - a.x) * (c.y - a.y) - (p.y - a.y) * (c.x - a.x)) < 0.0f; - return ((b1 == b2) && (b2 == b3)); -} - -void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w) -{ - ImVec2 v0 = b - a; - ImVec2 v1 = c - a; - ImVec2 v2 = p - a; - const float denom = v0.x * v1.y - v1.x * v0.y; - out_v = (v2.x * v1.y - v1.x * v2.y) / denom; - out_w = (v0.x * v2.y - v2.x * v0.y) / denom; - out_u = 1.0f - out_v - out_w; -} - -ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p) -{ - ImVec2 proj_ab = ImLineClosestPoint(a, b, p); - ImVec2 proj_bc = ImLineClosestPoint(b, c, p); - ImVec2 proj_ca = ImLineClosestPoint(c, a, p); - float dist2_ab = ImLengthSqr(p - proj_ab); - float dist2_bc = ImLengthSqr(p - proj_bc); - float dist2_ca = ImLengthSqr(p - proj_ca); - float m = ImMin(dist2_ab, ImMin(dist2_bc, dist2_ca)); - if (m == dist2_ab) - return proj_ab; - if (m == dist2_bc) - return proj_bc; - return proj_ca; -} - -//----------------------------------------------------------------------------- -// [SECTION] MISC HELPERS/UTILITIES (String, Format, Hash functions) -//----------------------------------------------------------------------------- - -// Consider using _stricmp/_strnicmp under Windows or strcasecmp/strncasecmp. We don't actually use either ImStricmp/ImStrnicmp in the codebase any more. -int ImStricmp(const char* str1, const char* str2) -{ - int d; - while ((d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; } - return d; -} - -int ImStrnicmp(const char* str1, const char* str2, size_t count) -{ - int d = 0; - while (count > 0 && (d = toupper(*str2) - toupper(*str1)) == 0 && *str1) { str1++; str2++; count--; } - return d; -} - -void ImStrncpy(char* dst, const char* src, size_t count) -{ - if (count < 1) - return; - if (count > 1) - strncpy(dst, src, count - 1); - dst[count - 1] = 0; -} - -char* ImStrdup(const char* str) -{ - size_t len = strlen(str); - void* buf = IM_ALLOC(len + 1); - return (char*)memcpy(buf, (const void*)str, len + 1); -} - -char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* src) -{ - size_t dst_buf_size = p_dst_size ? *p_dst_size : strlen(dst) + 1; - size_t src_size = strlen(src) + 1; - if (dst_buf_size < src_size) - { - IM_FREE(dst); - dst = (char*)IM_ALLOC(src_size); - if (p_dst_size) - *p_dst_size = src_size; - } - return (char*)memcpy(dst, (const void*)src, src_size); -} - -const char* ImStrchrRange(const char* str, const char* str_end, char c) -{ - const char* p = (const char*)memchr(str, (int)c, str_end - str); - return p; -} - -int ImStrlenW(const ImWchar* str) -{ - //return (int)wcslen((const wchar_t*)str); // FIXME-OPT: Could use this when wchar_t are 16-bit - int n = 0; - while (*str++) n++; - return n; -} - -// Find end-of-line. Return pointer will point to either first \n, either str_end. -const char* ImStreolRange(const char* str, const char* str_end) -{ - const char* p = (const char*)memchr(str, '\n', str_end - str); - return p ? p : str_end; -} - -const ImWchar* ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin) // find beginning-of-line -{ - while (buf_mid_line > buf_begin && buf_mid_line[-1] != '\n') - buf_mid_line--; - return buf_mid_line; -} - -const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end) -{ - if (!needle_end) - needle_end = needle + strlen(needle); - - const char un0 = (char)toupper(*needle); - while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end)) - { - if (toupper(*haystack) == un0) - { - const char* b = needle + 1; - for (const char* a = haystack + 1; b < needle_end; a++, b++) - if (toupper(*a) != toupper(*b)) - break; - if (b == needle_end) - return haystack; - } - haystack++; - } - return NULL; -} - -// Trim str by offsetting contents when there's leading data + writing a \0 at the trailing position. We use this in situation where the cost is negligible. -void ImStrTrimBlanks(char* buf) -{ - char* p = buf; - while (p[0] == ' ' || p[0] == '\t') // Leading blanks - p++; - char* p_start = p; - while (*p != 0) // Find end of string - p++; - while (p > p_start && (p[-1] == ' ' || p[-1] == '\t')) // Trailing blanks - p--; - if (p_start != buf) // Copy memory if we had leading blanks - memmove(buf, p_start, p - p_start); - buf[p - p_start] = 0; // Zero terminate -} - -const char* ImStrSkipBlank(const char* str) -{ - while (str[0] == ' ' || str[0] == '\t') - str++; - return str; -} - -// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size). -// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm. -// B) When buf==NULL vsnprintf() will return the output size. -#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS - -// We support stb_sprintf which is much faster (see: https://github.com/nothings/stb/blob/master/stb_sprintf.h) -// You may set IMGUI_USE_STB_SPRINTF to use our default wrapper, or set IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS -// and setup the wrapper yourself. (FIXME-OPT: Some of our high-level operations such as ImGuiTextBuffer::appendfv() are -// designed using two-passes worst case, which probably could be improved using the stbsp_vsprintfcb() function.) -#ifdef IMGUI_USE_STB_SPRINTF -#define STB_SPRINTF_IMPLEMENTATION -#include "stb_sprintf.h" -#endif - -#if defined(_MSC_VER) && !defined(vsnprintf) -#define vsnprintf _vsnprintf -#endif - -int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); -#ifdef IMGUI_USE_STB_SPRINTF - int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); -#else - int w = vsnprintf(buf, buf_size, fmt, args); -#endif - va_end(args); - if (buf == NULL) - return w; - if (w == -1 || w >= (int)buf_size) - w = (int)buf_size - 1; - buf[w] = 0; - return w; -} - -int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) -{ -#ifdef IMGUI_USE_STB_SPRINTF - int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args); -#else - int w = vsnprintf(buf, buf_size, fmt, args); -#endif - if (buf == NULL) - return w; - if (w == -1 || w >= (int)buf_size) - w = (int)buf_size - 1; - buf[w] = 0; - return w; -} -#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS - -// CRC32 needs a 1KB lookup table (not cache friendly) -// Although the code to generate the table is simple and shorter than the table itself, using a const table allows us to easily: -// - avoid an unnecessary branch/memory tap, - keep the ImHashXXX functions usable by static constructors, - make it thread-safe. -static const ImU32 GCrc32LookupTable[256] = -{ - 0x00000000,0x77073096,0xEE0E612C,0x990951BA,0x076DC419,0x706AF48F,0xE963A535,0x9E6495A3,0x0EDB8832,0x79DCB8A4,0xE0D5E91E,0x97D2D988,0x09B64C2B,0x7EB17CBD,0xE7B82D07,0x90BF1D91, - 0x1DB71064,0x6AB020F2,0xF3B97148,0x84BE41DE,0x1ADAD47D,0x6DDDE4EB,0xF4D4B551,0x83D385C7,0x136C9856,0x646BA8C0,0xFD62F97A,0x8A65C9EC,0x14015C4F,0x63066CD9,0xFA0F3D63,0x8D080DF5, - 0x3B6E20C8,0x4C69105E,0xD56041E4,0xA2677172,0x3C03E4D1,0x4B04D447,0xD20D85FD,0xA50AB56B,0x35B5A8FA,0x42B2986C,0xDBBBC9D6,0xACBCF940,0x32D86CE3,0x45DF5C75,0xDCD60DCF,0xABD13D59, - 0x26D930AC,0x51DE003A,0xC8D75180,0xBFD06116,0x21B4F4B5,0x56B3C423,0xCFBA9599,0xB8BDA50F,0x2802B89E,0x5F058808,0xC60CD9B2,0xB10BE924,0x2F6F7C87,0x58684C11,0xC1611DAB,0xB6662D3D, - 0x76DC4190,0x01DB7106,0x98D220BC,0xEFD5102A,0x71B18589,0x06B6B51F,0x9FBFE4A5,0xE8B8D433,0x7807C9A2,0x0F00F934,0x9609A88E,0xE10E9818,0x7F6A0DBB,0x086D3D2D,0x91646C97,0xE6635C01, - 0x6B6B51F4,0x1C6C6162,0x856530D8,0xF262004E,0x6C0695ED,0x1B01A57B,0x8208F4C1,0xF50FC457,0x65B0D9C6,0x12B7E950,0x8BBEB8EA,0xFCB9887C,0x62DD1DDF,0x15DA2D49,0x8CD37CF3,0xFBD44C65, - 0x4DB26158,0x3AB551CE,0xA3BC0074,0xD4BB30E2,0x4ADFA541,0x3DD895D7,0xA4D1C46D,0xD3D6F4FB,0x4369E96A,0x346ED9FC,0xAD678846,0xDA60B8D0,0x44042D73,0x33031DE5,0xAA0A4C5F,0xDD0D7CC9, - 0x5005713C,0x270241AA,0xBE0B1010,0xC90C2086,0x5768B525,0x206F85B3,0xB966D409,0xCE61E49F,0x5EDEF90E,0x29D9C998,0xB0D09822,0xC7D7A8B4,0x59B33D17,0x2EB40D81,0xB7BD5C3B,0xC0BA6CAD, - 0xEDB88320,0x9ABFB3B6,0x03B6E20C,0x74B1D29A,0xEAD54739,0x9DD277AF,0x04DB2615,0x73DC1683,0xE3630B12,0x94643B84,0x0D6D6A3E,0x7A6A5AA8,0xE40ECF0B,0x9309FF9D,0x0A00AE27,0x7D079EB1, - 0xF00F9344,0x8708A3D2,0x1E01F268,0x6906C2FE,0xF762575D,0x806567CB,0x196C3671,0x6E6B06E7,0xFED41B76,0x89D32BE0,0x10DA7A5A,0x67DD4ACC,0xF9B9DF6F,0x8EBEEFF9,0x17B7BE43,0x60B08ED5, - 0xD6D6A3E8,0xA1D1937E,0x38D8C2C4,0x4FDFF252,0xD1BB67F1,0xA6BC5767,0x3FB506DD,0x48B2364B,0xD80D2BDA,0xAF0A1B4C,0x36034AF6,0x41047A60,0xDF60EFC3,0xA867DF55,0x316E8EEF,0x4669BE79, - 0xCB61B38C,0xBC66831A,0x256FD2A0,0x5268E236,0xCC0C7795,0xBB0B4703,0x220216B9,0x5505262F,0xC5BA3BBE,0xB2BD0B28,0x2BB45A92,0x5CB36A04,0xC2D7FFA7,0xB5D0CF31,0x2CD99E8B,0x5BDEAE1D, - 0x9B64C2B0,0xEC63F226,0x756AA39C,0x026D930A,0x9C0906A9,0xEB0E363F,0x72076785,0x05005713,0x95BF4A82,0xE2B87A14,0x7BB12BAE,0x0CB61B38,0x92D28E9B,0xE5D5BE0D,0x7CDCEFB7,0x0BDBDF21, - 0x86D3D2D4,0xF1D4E242,0x68DDB3F8,0x1FDA836E,0x81BE16CD,0xF6B9265B,0x6FB077E1,0x18B74777,0x88085AE6,0xFF0F6A70,0x66063BCA,0x11010B5C,0x8F659EFF,0xF862AE69,0x616BFFD3,0x166CCF45, - 0xA00AE278,0xD70DD2EE,0x4E048354,0x3903B3C2,0xA7672661,0xD06016F7,0x4969474D,0x3E6E77DB,0xAED16A4A,0xD9D65ADC,0x40DF0B66,0x37D83BF0,0xA9BCAE53,0xDEBB9EC5,0x47B2CF7F,0x30B5FFE9, - 0xBDBDF21C,0xCABAC28A,0x53B39330,0x24B4A3A6,0xBAD03605,0xCDD70693,0x54DE5729,0x23D967BF,0xB3667A2E,0xC4614AB8,0x5D681B02,0x2A6F2B94,0xB40BBE37,0xC30C8EA1,0x5A05DF1B,0x2D02EF8D, -}; - -// Known size hash -// It is ok to call ImHashData on a string with known length but the ### operator won't be supported. -// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. -ImGuiID ImHashData(const void* data_p, size_t data_size, ImU32 seed) -{ - ImU32 crc = ~seed; - const unsigned char* data = (const unsigned char*)data_p; - const ImU32* crc32_lut = GCrc32LookupTable; - while (data_size-- != 0) - crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ *data++]; - return ~crc; -} - -// Zero-terminated string hash, with support for ### to reset back to seed value -// We support a syntax of "label###id" where only "###id" is included in the hash, and only "label" gets displayed. -// Because this syntax is rarely used we are optimizing for the common case. -// - If we reach ### in the string we discard the hash so far and reset to the seed. -// - We don't do 'current += 2; continue;' after handling ### to keep the code smaller/faster (measured ~10% diff in Debug build) -// FIXME-OPT: Replace with e.g. FNV1a hash? CRC32 pretty much randomly access 1KB. Need to do proper measurements. -ImGuiID ImHashStr(const char* data_p, size_t data_size, ImU32 seed) -{ - seed = ~seed; - ImU32 crc = seed; - const unsigned char* data = (const unsigned char*)data_p; - const ImU32* crc32_lut = GCrc32LookupTable; - if (data_size != 0) - { - while (data_size-- != 0) - { - unsigned char c = *data++; - if (c == '#' && data_size >= 2 && data[0] == '#' && data[1] == '#') - crc = seed; - crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; - } - } - else - { - while (unsigned char c = *data++) - { - if (c == '#' && data[0] == '#' && data[1] == '#') - crc = seed; - crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ c]; - } - } - return ~crc; -} - -//----------------------------------------------------------------------------- -// [SECTION] MISC HELPERS/UTILITIES (File functions) -//----------------------------------------------------------------------------- - -// Default file functions -#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS - -ImFileHandle ImFileOpen(const char* filename, const char* mode) -{ -#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__) - // We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames. - // Previously we used ImTextCountCharsFromUtf8/ImTextStrFromUtf8 here but we now need to support ImWchar16 and ImWchar32! - const int filename_wsize = ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0); - const int mode_wsize = ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, NULL, 0); - ImVector buf; - buf.resize(filename_wsize + mode_wsize); - ::MultiByteToWideChar(CP_UTF8, 0, filename, -1, (wchar_t*)&buf[0], filename_wsize); - ::MultiByteToWideChar(CP_UTF8, 0, mode, -1, (wchar_t*)&buf[filename_wsize], mode_wsize); - return ::_wfopen((const wchar_t*)&buf[0], (const wchar_t*)&buf[filename_wsize]); -#else - return fopen(filename, mode); -#endif -} - -// We should in theory be using fseeko()/ftello() with off_t and _fseeki64()/_ftelli64() with __int64, waiting for the PR that does that in a very portable pre-C++11 zero-warnings way. -bool ImFileClose(ImFileHandle f) { return fclose(f) == 0; } -ImU64 ImFileGetSize(ImFileHandle f) { long off = 0, sz = 0; return ((off = ftell(f)) != -1 && !fseek(f, 0, SEEK_END) && (sz = ftell(f)) != -1 && !fseek(f, off, SEEK_SET)) ? (ImU64)sz : (ImU64)-1; } -ImU64 ImFileRead(void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fread(data, (size_t)sz, (size_t)count, f); } -ImU64 ImFileWrite(const void* data, ImU64 sz, ImU64 count, ImFileHandle f) { return fwrite(data, (size_t)sz, (size_t)count, f); } -#endif // #ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS - -// Helper: Load file content into memory -// Memory allocated with IM_ALLOC(), must be freed by user using IM_FREE() == ImGui::MemFree() -// This can't really be used with "rt" because fseek size won't match read size. -void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes) -{ - IM_ASSERT(filename && mode); - if (out_file_size) - *out_file_size = 0; - - ImFileHandle f; - if ((f = ImFileOpen(filename, mode)) == NULL) - return NULL; - - size_t file_size = (size_t)ImFileGetSize(f); - if (file_size == (size_t)-1) - { - ImFileClose(f); - return NULL; - } - - void* file_data = IM_ALLOC(file_size + padding_bytes); - if (file_data == NULL) - { - ImFileClose(f); - return NULL; - } - if (ImFileRead(file_data, 1, file_size, f) != file_size) - { - ImFileClose(f); - IM_FREE(file_data); - return NULL; - } - if (padding_bytes > 0) - memset((void*)(((char*)file_data) + file_size), 0, (size_t)padding_bytes); - - ImFileClose(f); - if (out_file_size) - *out_file_size = file_size; - - return file_data; -} - -//----------------------------------------------------------------------------- -// [SECTION] MISC HELPERS/UTILITIES (ImText* functions) -//----------------------------------------------------------------------------- - -// Convert UTF-8 to 32-bit character, process single character input. -// A nearly-branchless UTF-8 decoder, based on work of Christopher Wellons (https://github.com/skeeto/branchless-utf8). -// We handle UTF-8 decoding error by skipping forward. -int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end) -{ - static const char lengths[32] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 3, 3, 4, 0 }; - static const int masks[] = { 0x00, 0x7f, 0x1f, 0x0f, 0x07 }; - static const uint32_t mins[] = { 0x400000, 0, 0x80, 0x800, 0x10000 }; - static const int shiftc[] = { 0, 18, 12, 6, 0 }; - static const int shifte[] = { 0, 6, 4, 2, 0 }; - int len = lengths[*(const unsigned char*)in_text >> 3]; - int wanted = len + !len; - - if (in_text_end == NULL) - in_text_end = in_text + wanted; // Max length, nulls will be taken into account. - - // Copy at most 'len' bytes, stop copying at 0 or past in_text_end. Branch predictor does a good job here, - // so it is fast even with excessive branching. - unsigned char s[4]; - s[0] = in_text + 0 < in_text_end ? in_text[0] : 0; - s[1] = in_text + 1 < in_text_end ? in_text[1] : 0; - s[2] = in_text + 2 < in_text_end ? in_text[2] : 0; - s[3] = in_text + 3 < in_text_end ? in_text[3] : 0; - - // Assume a four-byte character and load four bytes. Unused bits are shifted out. - *out_char = (uint32_t)(s[0] & masks[len]) << 18; - *out_char |= (uint32_t)(s[1] & 0x3f) << 12; - *out_char |= (uint32_t)(s[2] & 0x3f) << 6; - *out_char |= (uint32_t)(s[3] & 0x3f) << 0; - *out_char >>= shiftc[len]; - - // Accumulate the various error conditions. - int e = 0; - e = (*out_char < mins[len]) << 6; // non-canonical encoding - e |= ((*out_char >> 11) == 0x1b) << 7; // surrogate half? - e |= (*out_char > IM_UNICODE_CODEPOINT_MAX) << 8; // out of range? - e |= (s[1] & 0xc0) >> 2; - e |= (s[2] & 0xc0) >> 4; - e |= (s[3] ) >> 6; - e ^= 0x2a; // top two bits of each tail byte correct? - e >>= shifte[len]; - - if (e) - { - // No bytes are consumed when *in_text == 0 || in_text == in_text_end. - // One byte is consumed in case of invalid first byte of in_text. - // All available bytes (at most `len` bytes) are consumed on incomplete/invalid second to last bytes. - // Invalid or incomplete input may consume less bytes than wanted, therefore every byte has to be inspected in s. - wanted = ImMin(wanted, !!s[0] + !!s[1] + !!s[2] + !!s[3]); - *out_char = IM_UNICODE_CODEPOINT_INVALID; - } - - return wanted; -} - -int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining) -{ - ImWchar* buf_out = buf; - ImWchar* buf_end = buf + buf_size; - while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) - { - unsigned int c; - in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); - if (c == 0) - break; - *buf_out++ = (ImWchar)c; - } - *buf_out = 0; - if (in_text_remaining) - *in_text_remaining = in_text; - return (int)(buf_out - buf); -} - -int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end) -{ - int char_count = 0; - while ((!in_text_end || in_text < in_text_end) && *in_text) - { - unsigned int c; - in_text += ImTextCharFromUtf8(&c, in_text, in_text_end); - if (c == 0) - break; - char_count++; - } - return char_count; -} - -// Based on stb_to_utf8() from github.com/nothings/stb/ -static inline int ImTextCharToUtf8(char* buf, int buf_size, unsigned int c) -{ - if (c < 0x80) - { - buf[0] = (char)c; - return 1; - } - if (c < 0x800) - { - if (buf_size < 2) return 0; - buf[0] = (char)(0xc0 + (c >> 6)); - buf[1] = (char)(0x80 + (c & 0x3f)); - return 2; - } - if (c < 0x10000) - { - if (buf_size < 3) return 0; - buf[0] = (char)(0xe0 + (c >> 12)); - buf[1] = (char)(0x80 + ((c >> 6) & 0x3f)); - buf[2] = (char)(0x80 + ((c ) & 0x3f)); - return 3; - } - if (c <= 0x10FFFF) - { - if (buf_size < 4) return 0; - buf[0] = (char)(0xf0 + (c >> 18)); - buf[1] = (char)(0x80 + ((c >> 12) & 0x3f)); - buf[2] = (char)(0x80 + ((c >> 6) & 0x3f)); - buf[3] = (char)(0x80 + ((c ) & 0x3f)); - return 4; - } - // Invalid code point, the max unicode is 0x10FFFF - return 0; -} - -// Not optimal but we very rarely use this function. -int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end) -{ - unsigned int unused = 0; - return ImTextCharFromUtf8(&unused, in_text, in_text_end); -} - -static inline int ImTextCountUtf8BytesFromChar(unsigned int c) -{ - if (c < 0x80) return 1; - if (c < 0x800) return 2; - if (c < 0x10000) return 3; - if (c <= 0x10FFFF) return 4; - return 3; -} - -int ImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end) -{ - char* buf_out = buf; - const char* buf_end = buf + buf_size; - while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text) - { - unsigned int c = (unsigned int)(*in_text++); - if (c < 0x80) - *buf_out++ = (char)c; - else - buf_out += ImTextCharToUtf8(buf_out, (int)(buf_end - buf_out - 1), c); - } - *buf_out = 0; - return (int)(buf_out - buf); -} - -int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end) -{ - int bytes_count = 0; - while ((!in_text_end || in_text < in_text_end) && *in_text) - { - unsigned int c = (unsigned int)(*in_text++); - if (c < 0x80) - bytes_count++; - else - bytes_count += ImTextCountUtf8BytesFromChar(c); - } - return bytes_count; -} - -//----------------------------------------------------------------------------- -// [SECTION] MISC HELPERS/UTILITIES (Color functions) -// Note: The Convert functions are early design which are not consistent with other API. -//----------------------------------------------------------------------------- - -IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b) -{ - float t = ((col_b >> IM_COL32_A_SHIFT) & 0xFF) / 255.f; - int r = ImLerp((int)(col_a >> IM_COL32_R_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_R_SHIFT) & 0xFF, t); - int g = ImLerp((int)(col_a >> IM_COL32_G_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_G_SHIFT) & 0xFF, t); - int b = ImLerp((int)(col_a >> IM_COL32_B_SHIFT) & 0xFF, (int)(col_b >> IM_COL32_B_SHIFT) & 0xFF, t); - return IM_COL32(r, g, b, 0xFF); -} - -ImVec4 ImGui::ColorConvertU32ToFloat4(ImU32 in) -{ - float s = 1.0f / 255.0f; - return ImVec4( - ((in >> IM_COL32_R_SHIFT) & 0xFF) * s, - ((in >> IM_COL32_G_SHIFT) & 0xFF) * s, - ((in >> IM_COL32_B_SHIFT) & 0xFF) * s, - ((in >> IM_COL32_A_SHIFT) & 0xFF) * s); -} - -ImU32 ImGui::ColorConvertFloat4ToU32(const ImVec4& in) -{ - ImU32 out; - out = ((ImU32)IM_F32_TO_INT8_SAT(in.x)) << IM_COL32_R_SHIFT; - out |= ((ImU32)IM_F32_TO_INT8_SAT(in.y)) << IM_COL32_G_SHIFT; - out |= ((ImU32)IM_F32_TO_INT8_SAT(in.z)) << IM_COL32_B_SHIFT; - out |= ((ImU32)IM_F32_TO_INT8_SAT(in.w)) << IM_COL32_A_SHIFT; - return out; -} - -// Convert rgb floats ([0-1],[0-1],[0-1]) to hsv floats ([0-1],[0-1],[0-1]), from Foley & van Dam p592 -// Optimized http://lolengine.net/blog/2013/01/13/fast-rgb-to-hsv -void ImGui::ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v) -{ - float K = 0.f; - if (g < b) - { - ImSwap(g, b); - K = -1.f; - } - if (r < g) - { - ImSwap(r, g); - K = -2.f / 6.f - K; - } - - const float chroma = r - (g < b ? g : b); - out_h = ImFabs(K + (g - b) / (6.f * chroma + 1e-20f)); - out_s = chroma / (r + 1e-20f); - out_v = r; -} - -// Convert hsv floats ([0-1],[0-1],[0-1]) to rgb floats ([0-1],[0-1],[0-1]), from Foley & van Dam p593 -// also http://en.wikipedia.org/wiki/HSL_and_HSV -void ImGui::ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b) -{ - if (s == 0.0f) - { - // gray - out_r = out_g = out_b = v; - return; - } - - h = ImFmod(h, 1.0f) / (60.0f / 360.0f); - int i = (int)h; - float f = h - (float)i; - float p = v * (1.0f - s); - float q = v * (1.0f - s * f); - float t = v * (1.0f - s * (1.0f - f)); - - switch (i) - { - case 0: out_r = v; out_g = t; out_b = p; break; - case 1: out_r = q; out_g = v; out_b = p; break; - case 2: out_r = p; out_g = v; out_b = t; break; - case 3: out_r = p; out_g = q; out_b = v; break; - case 4: out_r = t; out_g = p; out_b = v; break; - case 5: default: out_r = v; out_g = p; out_b = q; break; - } -} - -//----------------------------------------------------------------------------- -// [SECTION] ImGuiStorage -// Helper: Key->value storage -//----------------------------------------------------------------------------- - -// std::lower_bound but without the bullshit -static ImGuiStorage::ImGuiStoragePair* LowerBound(ImVector& data, ImGuiID key) -{ - ImGuiStorage::ImGuiStoragePair* first = data.Data; - ImGuiStorage::ImGuiStoragePair* last = data.Data + data.Size; - size_t count = (size_t)(last - first); - while (count > 0) - { - size_t count2 = count >> 1; - ImGuiStorage::ImGuiStoragePair* mid = first + count2; - if (mid->key < key) - { - first = ++mid; - count -= count2 + 1; - } - else - { - count = count2; - } - } - return first; -} - -// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. -void ImGuiStorage::BuildSortByKey() -{ - struct StaticFunc - { - static int IMGUI_CDECL PairCompareByID(const void* lhs, const void* rhs) - { - // We can't just do a subtraction because qsort uses signed integers and subtracting our ID doesn't play well with that. - if (((const ImGuiStoragePair*)lhs)->key > ((const ImGuiStoragePair*)rhs)->key) return +1; - if (((const ImGuiStoragePair*)lhs)->key < ((const ImGuiStoragePair*)rhs)->key) return -1; - return 0; - } - }; - if (Data.Size > 1) - ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), StaticFunc::PairCompareByID); -} - -int ImGuiStorage::GetInt(ImGuiID key, int default_val) const -{ - ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); - if (it == Data.end() || it->key != key) - return default_val; - return it->val_i; -} - -bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const -{ - return GetInt(key, default_val ? 1 : 0) != 0; -} - -float ImGuiStorage::GetFloat(ImGuiID key, float default_val) const -{ - ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); - if (it == Data.end() || it->key != key) - return default_val; - return it->val_f; -} - -void* ImGuiStorage::GetVoidPtr(ImGuiID key) const -{ - ImGuiStoragePair* it = LowerBound(const_cast&>(Data), key); - if (it == Data.end() || it->key != key) - return NULL; - return it->val_p; -} - -// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. -int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) -{ - ImGuiStoragePair* it = LowerBound(Data, key); - if (it == Data.end() || it->key != key) - it = Data.insert(it, ImGuiStoragePair(key, default_val)); - return &it->val_i; -} - -bool* ImGuiStorage::GetBoolRef(ImGuiID key, bool default_val) -{ - return (bool*)GetIntRef(key, default_val ? 1 : 0); -} - -float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val) -{ - ImGuiStoragePair* it = LowerBound(Data, key); - if (it == Data.end() || it->key != key) - it = Data.insert(it, ImGuiStoragePair(key, default_val)); - return &it->val_f; -} - -void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val) -{ - ImGuiStoragePair* it = LowerBound(Data, key); - if (it == Data.end() || it->key != key) - it = Data.insert(it, ImGuiStoragePair(key, default_val)); - return &it->val_p; -} - -// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame) -void ImGuiStorage::SetInt(ImGuiID key, int val) -{ - ImGuiStoragePair* it = LowerBound(Data, key); - if (it == Data.end() || it->key != key) - { - Data.insert(it, ImGuiStoragePair(key, val)); - return; - } - it->val_i = val; -} - -void ImGuiStorage::SetBool(ImGuiID key, bool val) -{ - SetInt(key, val ? 1 : 0); -} - -void ImGuiStorage::SetFloat(ImGuiID key, float val) -{ - ImGuiStoragePair* it = LowerBound(Data, key); - if (it == Data.end() || it->key != key) - { - Data.insert(it, ImGuiStoragePair(key, val)); - return; - } - it->val_f = val; -} - -void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val) -{ - ImGuiStoragePair* it = LowerBound(Data, key); - if (it == Data.end() || it->key != key) - { - Data.insert(it, ImGuiStoragePair(key, val)); - return; - } - it->val_p = val; -} - -void ImGuiStorage::SetAllInt(int v) -{ - for (int i = 0; i < Data.Size; i++) - Data[i].val_i = v; -} - -//----------------------------------------------------------------------------- -// [SECTION] ImGuiTextFilter -//----------------------------------------------------------------------------- - -// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" -ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) -{ - if (default_filter) - { - ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); - Build(); - } - else - { - InputBuf[0] = 0; - CountGrep = 0; - } -} - -bool ImGuiTextFilter::Draw(const char* label, float width) -{ - if (width != 0.0f) - ImGui::SetNextItemWidth(width); - bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); - if (value_changed) - Build(); - return value_changed; -} - -void ImGuiTextFilter::ImGuiTextRange::split(char separator, ImVector* out) const -{ - out->resize(0); - const char* wb = b; - const char* we = wb; - while (we < e) - { - if (*we == separator) - { - out->push_back(ImGuiTextRange(wb, we)); - wb = we + 1; - } - we++; - } - if (wb != we) - out->push_back(ImGuiTextRange(wb, we)); -} - -void ImGuiTextFilter::Build() -{ - Filters.resize(0); - ImGuiTextRange input_range(InputBuf, InputBuf + strlen(InputBuf)); - input_range.split(',', &Filters); - - CountGrep = 0; - for (int i = 0; i != Filters.Size; i++) - { - ImGuiTextRange& f = Filters[i]; - while (f.b < f.e && ImCharIsBlankA(f.b[0])) - f.b++; - while (f.e > f.b && ImCharIsBlankA(f.e[-1])) - f.e--; - if (f.empty()) - continue; - if (Filters[i].b[0] != '-') - CountGrep += 1; - } -} - -bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const -{ - if (Filters.empty()) - return true; - - if (text == NULL) - text = ""; - - for (int i = 0; i != Filters.Size; i++) - { - const ImGuiTextRange& f = Filters[i]; - if (f.empty()) - continue; - if (f.b[0] == '-') - { - // Subtract - if (ImStristr(text, text_end, f.b + 1, f.e) != NULL) - return false; - } - else - { - // Grep - if (ImStristr(text, text_end, f.b, f.e) != NULL) - return true; - } - } - - // Implicit * grep - if (CountGrep == 0) - return true; - - return false; -} - -//----------------------------------------------------------------------------- -// [SECTION] ImGuiTextBuffer -//----------------------------------------------------------------------------- - -// On some platform vsnprintf() takes va_list by reference and modifies it. -// va_copy is the 'correct' way to copy a va_list but Visual Studio prior to 2013 doesn't have it. -#ifndef va_copy -#if defined(__GNUC__) || defined(__clang__) -#define va_copy(dest, src) __builtin_va_copy(dest, src) -#else -#define va_copy(dest, src) (dest = src) -#endif -#endif - -char ImGuiTextBuffer::EmptyString[1] = { 0 }; - -void ImGuiTextBuffer::append(const char* str, const char* str_end) -{ - int len = str_end ? (int)(str_end - str) : (int)strlen(str); - - // Add zero-terminator the first time - const int write_off = (Buf.Size != 0) ? Buf.Size : 1; - const int needed_sz = write_off + len; - if (write_off + len >= Buf.Capacity) - { - int new_capacity = Buf.Capacity * 2; - Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); - } - - Buf.resize(needed_sz); - memcpy(&Buf[write_off - 1], str, (size_t)len); - Buf[write_off - 1 + len] = 0; -} - -void ImGuiTextBuffer::appendf(const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - appendfv(fmt, args); - va_end(args); -} - -// Helper: Text buffer for logging/accumulating text -void ImGuiTextBuffer::appendfv(const char* fmt, va_list args) -{ - va_list args_copy; - va_copy(args_copy, args); - - int len = ImFormatStringV(NULL, 0, fmt, args); // FIXME-OPT: could do a first pass write attempt, likely successful on first pass. - if (len <= 0) - { - va_end(args_copy); - return; - } - - // Add zero-terminator the first time - const int write_off = (Buf.Size != 0) ? Buf.Size : 1; - const int needed_sz = write_off + len; - if (write_off + len >= Buf.Capacity) - { - int new_capacity = Buf.Capacity * 2; - Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); - } - - Buf.resize(needed_sz); - ImFormatStringV(&Buf[write_off - 1], (size_t)len + 1, fmt, args_copy); - va_end(args_copy); -} - -//----------------------------------------------------------------------------- -// [SECTION] ImGuiListClipper -// This is currently not as flexible/powerful as it should be and really confusing/spaghetti, mostly because we changed -// the API mid-way through development and support two ways to using the clipper, needs some rework (see TODO) -//----------------------------------------------------------------------------- - -// FIXME-TABLE: This prevents us from using ImGuiListClipper _inside_ a table cell. -// The problem we have is that without a Begin/End scheme for rows using the clipper is ambiguous. -static bool GetSkipItemForListClipping() -{ - ImGuiContext& g = *GImGui; - return (g.CurrentTable ? g.CurrentTable->HostSkipItems : g.CurrentWindow->SkipItems); -} - -// Helper to calculate coarse clipping of large list of evenly sized items. -// NB: Prefer using the ImGuiListClipper higher-level helper if you can! Read comments and instructions there on how those use this sort of pattern. -// NB: 'items_count' is only used to clamp the result, if you don't know your count you can use INT_MAX -void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (g.LogEnabled) - { - // If logging is active, do not perform any clipping - *out_items_display_start = 0; - *out_items_display_end = items_count; - return; - } - if (GetSkipItemForListClipping()) - { - *out_items_display_start = *out_items_display_end = 0; - return; - } - - // We create the union of the ClipRect and the NavScoringRect which at worst should be 1 page away from ClipRect - ImRect unclipped_rect = window->ClipRect; - if (g.NavMoveRequest) - unclipped_rect.Add(g.NavScoringRect); - if (g.NavJustMovedToId && window->NavLastIds[0] == g.NavJustMovedToId) - unclipped_rect.Add(ImRect(window->Pos + window->NavRectRel[0].Min, window->Pos + window->NavRectRel[0].Max)); - - const ImVec2 pos = window->DC.CursorPos; - int start = (int)((unclipped_rect.Min.y - pos.y) / items_height); - int end = (int)((unclipped_rect.Max.y - pos.y) / items_height); - - // When performing a navigation request, ensure we have one item extra in the direction we are moving to - if (g.NavMoveRequest && g.NavMoveClipDir == ImGuiDir_Up) - start--; - if (g.NavMoveRequest && g.NavMoveClipDir == ImGuiDir_Down) - end++; - - start = ImClamp(start, 0, items_count); - end = ImClamp(end + 1, start, items_count); - *out_items_display_start = start; - *out_items_display_end = end; -} - -static void SetCursorPosYAndSetupForPrevLine(float pos_y, float line_height) -{ - // Set cursor position and a few other things so that SetScrollHereY() and Columns() can work when seeking cursor. - // FIXME: It is problematic that we have to do that here, because custom/equivalent end-user code would stumble on the same issue. - // The clipper should probably have a 4th step to display the last item in a regular manner. - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - float off_y = pos_y - window->DC.CursorPos.y; - window->DC.CursorPos.y = pos_y; - window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, pos_y); - window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so that SetScrollHereY() can properly function after the end of our clipper usage. - window->DC.PrevLineSize.y = (line_height - g.Style.ItemSpacing.y); // If we end up needing more accurate data (to e.g. use SameLine) we may as well make the clipper have a fourth step to let user process and display the last item in their list. - if (ImGuiOldColumns* columns = window->DC.CurrentColumns) - columns->LineMinY = window->DC.CursorPos.y; // Setting this so that cell Y position are set properly - if (ImGuiTable* table = g.CurrentTable) - { - if (table->IsInsideRow) - ImGui::TableEndRow(table); - table->RowPosY2 = window->DC.CursorPos.y; - const int row_increase = (int)((off_y / line_height) + 0.5f); - //table->CurrentRow += row_increase; // Can't do without fixing TableEndRow() - table->RowBgColorCounter += row_increase; - } -} - -ImGuiListClipper::ImGuiListClipper() -{ - memset(this, 0, sizeof(*this)); - ItemsCount = -1; -} - -ImGuiListClipper::~ImGuiListClipper() -{ - IM_ASSERT(ItemsCount == -1 && "Forgot to call End(), or to Step() until false?"); -} - -// Use case A: Begin() called from constructor with items_height<0, then called again from Step() in StepNo 1 -// Use case B: Begin() called from constructor with items_height>0 -// FIXME-LEGACY: Ideally we should remove the Begin/End functions but they are part of the legacy API we still support. This is why some of the code in Step() calling Begin() and reassign some fields, spaghetti style. -void ImGuiListClipper::Begin(int items_count, float items_height) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - if (ImGuiTable* table = g.CurrentTable) - if (table->IsInsideRow) - ImGui::TableEndRow(table); - - StartPosY = window->DC.CursorPos.y; - ItemsHeight = items_height; - ItemsCount = items_count; - ItemsFrozen = 0; - StepNo = 0; - DisplayStart = -1; - DisplayEnd = 0; -} - -void ImGuiListClipper::End() -{ - if (ItemsCount < 0) // Already ended - return; - - // In theory here we should assert that ImGui::GetCursorPosY() == StartPosY + DisplayEnd * ItemsHeight, but it feels saner to just seek at the end and not assert/crash the user. - if (ItemsCount < INT_MAX && DisplayStart >= 0) - SetCursorPosYAndSetupForPrevLine(StartPosY + (ItemsCount - ItemsFrozen) * ItemsHeight, ItemsHeight); - ItemsCount = -1; - StepNo = 3; -} - -bool ImGuiListClipper::Step() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - ImGuiTable* table = g.CurrentTable; - if (table && table->IsInsideRow) - ImGui::TableEndRow(table); - - // No items - if (ItemsCount == 0 || GetSkipItemForListClipping()) - { - End(); - return false; - } - - // Step 0: Let you process the first element (regardless of it being visible or not, so we can measure the element height) - if (StepNo == 0) - { - // While we are in frozen row state, keep displaying items one by one, unclipped - // FIXME: Could be stored as a table-agnostic state. - if (table != NULL && !table->IsUnfrozenRows) - { - DisplayStart = ItemsFrozen; - DisplayEnd = ItemsFrozen + 1; - ItemsFrozen++; - return true; - } - - StartPosY = window->DC.CursorPos.y; - if (ItemsHeight <= 0.0f) - { - // Submit the first item so we can measure its height (generally it is 0..1) - DisplayStart = ItemsFrozen; - DisplayEnd = ItemsFrozen + 1; - StepNo = 1; - return true; - } - - // Already has item height (given by user in Begin): skip to calculating step - DisplayStart = DisplayEnd; - StepNo = 2; - } - - // Step 1: the clipper infer height from first element - if (StepNo == 1) - { - IM_ASSERT(ItemsHeight <= 0.0f); - if (table) - { - const float pos_y1 = table->RowPosY1; // Using this instead of StartPosY to handle clipper straddling the frozen row - const float pos_y2 = table->RowPosY2; // Using this instead of CursorPos.y to take account of tallest cell. - ItemsHeight = pos_y2 - pos_y1; - window->DC.CursorPos.y = pos_y2; - } - else - { - ItemsHeight = window->DC.CursorPos.y - StartPosY; - } - IM_ASSERT(ItemsHeight > 0.0f && "Unable to calculate item height! First item hasn't moved the cursor vertically!"); - StepNo = 2; - } - - // Reached end of list - if (DisplayEnd >= ItemsCount) - { - End(); - return false; - } - - // Step 2: calculate the actual range of elements to display, and position the cursor before the first element - if (StepNo == 2) - { - IM_ASSERT(ItemsHeight > 0.0f); - - int already_submitted = DisplayEnd; - ImGui::CalcListClipping(ItemsCount - already_submitted, ItemsHeight, &DisplayStart, &DisplayEnd); - DisplayStart += already_submitted; - DisplayEnd += already_submitted; - - // Seek cursor - if (DisplayStart > already_submitted) - SetCursorPosYAndSetupForPrevLine(StartPosY + (DisplayStart - ItemsFrozen) * ItemsHeight, ItemsHeight); - - StepNo = 3; - return true; - } - - // Step 3: the clipper validate that we have reached the expected Y position (corresponding to element DisplayEnd), - // Advance the cursor to the end of the list and then returns 'false' to end the loop. - if (StepNo == 3) - { - // Seek cursor - if (ItemsCount < INT_MAX) - SetCursorPosYAndSetupForPrevLine(StartPosY + (ItemsCount - ItemsFrozen) * ItemsHeight, ItemsHeight); // advance cursor - ItemsCount = -1; - return false; - } - - IM_ASSERT(0); - return false; -} - -//----------------------------------------------------------------------------- -// [SECTION] STYLING -//----------------------------------------------------------------------------- - -ImGuiStyle& ImGui::GetStyle() -{ - IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); - return GImGui->Style; -} - -ImU32 ImGui::GetColorU32(ImGuiCol idx, float alpha_mul) -{ - ImGuiStyle& style = GImGui->Style; - ImVec4 c = style.Colors[idx]; - c.w *= style.Alpha * alpha_mul; - return ColorConvertFloat4ToU32(c); -} - -ImU32 ImGui::GetColorU32(const ImVec4& col) -{ - ImGuiStyle& style = GImGui->Style; - ImVec4 c = col; - c.w *= style.Alpha; - return ColorConvertFloat4ToU32(c); -} - -const ImVec4& ImGui::GetStyleColorVec4(ImGuiCol idx) -{ - ImGuiStyle& style = GImGui->Style; - return style.Colors[idx]; -} - -ImU32 ImGui::GetColorU32(ImU32 col) -{ - ImGuiStyle& style = GImGui->Style; - if (style.Alpha >= 1.0f) - return col; - ImU32 a = (col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT; - a = (ImU32)(a * style.Alpha); // We don't need to clamp 0..255 because Style.Alpha is in 0..1 range. - return (col & ~IM_COL32_A_MASK) | (a << IM_COL32_A_SHIFT); -} - -// FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32 -void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col) -{ - ImGuiContext& g = *GImGui; - ImGuiColorMod backup; - backup.Col = idx; - backup.BackupValue = g.Style.Colors[idx]; - g.ColorStack.push_back(backup); - g.Style.Colors[idx] = ColorConvertU32ToFloat4(col); -} - -void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col) -{ - ImGuiContext& g = *GImGui; - ImGuiColorMod backup; - backup.Col = idx; - backup.BackupValue = g.Style.Colors[idx]; - g.ColorStack.push_back(backup); - g.Style.Colors[idx] = col; -} - -void ImGui::PopStyleColor(int count) -{ - ImGuiContext& g = *GImGui; - while (count > 0) - { - ImGuiColorMod& backup = g.ColorStack.back(); - g.Style.Colors[backup.Col] = backup.BackupValue; - g.ColorStack.pop_back(); - count--; - } -} - -struct ImGuiStyleVarInfo -{ - ImGuiDataType Type; - ImU32 Count; - ImU32 Offset; - void* GetVarPtr(ImGuiStyle* style) const { return (void*)((unsigned char*)style + Offset); } -}; - -static const ImGuiStyleVarInfo GStyleVarInfo[] = -{ - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, Alpha) }, // ImGuiStyleVar_Alpha - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowPadding) }, // ImGuiStyleVar_WindowPadding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowRounding) }, // ImGuiStyleVar_WindowRounding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowBorderSize) }, // ImGuiStyleVar_WindowBorderSize - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowMinSize) }, // ImGuiStyleVar_WindowMinSize - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, WindowTitleAlign) }, // ImGuiStyleVar_WindowTitleAlign - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildRounding) }, // ImGuiStyleVar_ChildRounding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ChildBorderSize) }, // ImGuiStyleVar_ChildBorderSize - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupRounding) }, // ImGuiStyleVar_PopupRounding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, PopupBorderSize) }, // ImGuiStyleVar_PopupBorderSize - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, FramePadding) }, // ImGuiStyleVar_FramePadding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameRounding) }, // ImGuiStyleVar_FrameRounding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, FrameBorderSize) }, // ImGuiStyleVar_FrameBorderSize - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemSpacing) }, // ImGuiStyleVar_ItemSpacing - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ItemInnerSpacing) }, // ImGuiStyleVar_ItemInnerSpacing - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, IndentSpacing) }, // ImGuiStyleVar_IndentSpacing - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, CellPadding) }, // ImGuiStyleVar_CellPadding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarSize) }, // ImGuiStyleVar_ScrollbarSize - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, ScrollbarRounding) }, // ImGuiStyleVar_ScrollbarRounding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabMinSize) }, // ImGuiStyleVar_GrabMinSize - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, GrabRounding) }, // ImGuiStyleVar_GrabRounding - { ImGuiDataType_Float, 1, (ImU32)IM_OFFSETOF(ImGuiStyle, TabRounding) }, // ImGuiStyleVar_TabRounding - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, ButtonTextAlign) }, // ImGuiStyleVar_ButtonTextAlign - { ImGuiDataType_Float, 2, (ImU32)IM_OFFSETOF(ImGuiStyle, SelectableTextAlign) }, // ImGuiStyleVar_SelectableTextAlign -}; - -static const ImGuiStyleVarInfo* GetStyleVarInfo(ImGuiStyleVar idx) -{ - IM_ASSERT(idx >= 0 && idx < ImGuiStyleVar_COUNT); - IM_ASSERT(IM_ARRAYSIZE(GStyleVarInfo) == ImGuiStyleVar_COUNT); - return &GStyleVarInfo[idx]; -} - -void ImGui::PushStyleVar(ImGuiStyleVar idx, float val) -{ - const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx); - if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1) - { - ImGuiContext& g = *GImGui; - float* pvar = (float*)var_info->GetVarPtr(&g.Style); - g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); - *pvar = val; - return; - } - IM_ASSERT(0 && "Called PushStyleVar() float variant but variable is not a float!"); -} - -void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val) -{ - const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx); - if (var_info->Type == ImGuiDataType_Float && var_info->Count == 2) - { - ImGuiContext& g = *GImGui; - ImVec2* pvar = (ImVec2*)var_info->GetVarPtr(&g.Style); - g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar)); - *pvar = val; - return; - } - IM_ASSERT(0 && "Called PushStyleVar() ImVec2 variant but variable is not a ImVec2!"); -} - -void ImGui::PopStyleVar(int count) -{ - ImGuiContext& g = *GImGui; - while (count > 0) - { - // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it. - ImGuiStyleMod& backup = g.StyleVarStack.back(); - const ImGuiStyleVarInfo* info = GetStyleVarInfo(backup.VarIdx); - void* data = info->GetVarPtr(&g.Style); - if (info->Type == ImGuiDataType_Float && info->Count == 1) { ((float*)data)[0] = backup.BackupFloat[0]; } - else if (info->Type == ImGuiDataType_Float && info->Count == 2) { ((float*)data)[0] = backup.BackupFloat[0]; ((float*)data)[1] = backup.BackupFloat[1]; } - g.StyleVarStack.pop_back(); - count--; - } -} - -const char* ImGui::GetStyleColorName(ImGuiCol idx) -{ - // Create switch-case from enum with regexp: ImGuiCol_{.*}, --> case ImGuiCol_\1: return "\1"; - switch (idx) - { - case ImGuiCol_Text: return "Text"; - case ImGuiCol_TextDisabled: return "TextDisabled"; - case ImGuiCol_WindowBg: return "WindowBg"; - case ImGuiCol_ChildBg: return "ChildBg"; - case ImGuiCol_PopupBg: return "PopupBg"; - case ImGuiCol_Border: return "Border"; - case ImGuiCol_BorderShadow: return "BorderShadow"; - case ImGuiCol_FrameBg: return "FrameBg"; - case ImGuiCol_FrameBgHovered: return "FrameBgHovered"; - case ImGuiCol_FrameBgActive: return "FrameBgActive"; - case ImGuiCol_TitleBg: return "TitleBg"; - case ImGuiCol_TitleBgActive: return "TitleBgActive"; - case ImGuiCol_TitleBgCollapsed: return "TitleBgCollapsed"; - case ImGuiCol_MenuBarBg: return "MenuBarBg"; - case ImGuiCol_ScrollbarBg: return "ScrollbarBg"; - case ImGuiCol_ScrollbarGrab: return "ScrollbarGrab"; - case ImGuiCol_ScrollbarGrabHovered: return "ScrollbarGrabHovered"; - case ImGuiCol_ScrollbarGrabActive: return "ScrollbarGrabActive"; - case ImGuiCol_CheckMark: return "CheckMark"; - case ImGuiCol_SliderGrab: return "SliderGrab"; - case ImGuiCol_SliderGrabActive: return "SliderGrabActive"; - case ImGuiCol_Button: return "Button"; - case ImGuiCol_ButtonHovered: return "ButtonHovered"; - case ImGuiCol_ButtonActive: return "ButtonActive"; - case ImGuiCol_Header: return "Header"; - case ImGuiCol_HeaderHovered: return "HeaderHovered"; - case ImGuiCol_HeaderActive: return "HeaderActive"; - case ImGuiCol_Separator: return "Separator"; - case ImGuiCol_SeparatorHovered: return "SeparatorHovered"; - case ImGuiCol_SeparatorActive: return "SeparatorActive"; - case ImGuiCol_ResizeGrip: return "ResizeGrip"; - case ImGuiCol_ResizeGripHovered: return "ResizeGripHovered"; - case ImGuiCol_ResizeGripActive: return "ResizeGripActive"; - case ImGuiCol_Tab: return "Tab"; - case ImGuiCol_TabHovered: return "TabHovered"; - case ImGuiCol_TabActive: return "TabActive"; - case ImGuiCol_TabUnfocused: return "TabUnfocused"; - case ImGuiCol_TabUnfocusedActive: return "TabUnfocusedActive"; - case ImGuiCol_PlotLines: return "PlotLines"; - case ImGuiCol_PlotLinesHovered: return "PlotLinesHovered"; - case ImGuiCol_PlotHistogram: return "PlotHistogram"; - case ImGuiCol_PlotHistogramHovered: return "PlotHistogramHovered"; - case ImGuiCol_TableHeaderBg: return "TableHeaderBg"; - case ImGuiCol_TableBorderStrong: return "TableBorderStrong"; - case ImGuiCol_TableBorderLight: return "TableBorderLight"; - case ImGuiCol_TableRowBg: return "TableRowBg"; - case ImGuiCol_TableRowBgAlt: return "TableRowBgAlt"; - case ImGuiCol_TextSelectedBg: return "TextSelectedBg"; - case ImGuiCol_DragDropTarget: return "DragDropTarget"; - case ImGuiCol_NavHighlight: return "NavHighlight"; - case ImGuiCol_NavWindowingHighlight: return "NavWindowingHighlight"; - case ImGuiCol_NavWindowingDimBg: return "NavWindowingDimBg"; - case ImGuiCol_ModalWindowDimBg: return "ModalWindowDimBg"; - } - IM_ASSERT(0); - return "Unknown"; -} - - -//----------------------------------------------------------------------------- -// [SECTION] RENDER HELPERS -// Some of those (internal) functions are currently quite a legacy mess - their signature and behavior will change, -// we need a nicer separation between low-level functions and high-level functions relying on the ImGui context. -// Also see imgui_draw.cpp for some more which have been reworked to not rely on ImGui:: context. -//----------------------------------------------------------------------------- - -const char* ImGui::FindRenderedTextEnd(const char* text, const char* text_end) -{ - const char* text_display_end = text; - if (!text_end) - text_end = (const char*)-1; - - while (text_display_end < text_end && *text_display_end != '\0' && (text_display_end[0] != '#' || text_display_end[1] != '#')) - text_display_end++; - return text_display_end; -} - -// Internal ImGui functions to render text -// RenderText***() functions calls ImDrawList::AddText() calls ImBitmapFont::RenderText() -void ImGui::RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - // Hide anything after a '##' string - const char* text_display_end; - if (hide_text_after_hash) - { - text_display_end = FindRenderedTextEnd(text, text_end); - } - else - { - if (!text_end) - text_end = text + strlen(text); // FIXME-OPT - text_display_end = text_end; - } - - if (text != text_display_end) - { - window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_display_end); - if (g.LogEnabled) - LogRenderedText(&pos, text, text_display_end); - } -} - -void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - if (!text_end) - text_end = text + strlen(text); // FIXME-OPT - - if (text != text_end) - { - window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width); - if (g.LogEnabled) - LogRenderedText(&pos, text, text_end); - } -} - -// Default clip_rect uses (pos_min,pos_max) -// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges) -void ImGui::RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) -{ - // Perform CPU side clipping for single clipped element to avoid using scissor state - ImVec2 pos = pos_min; - const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_display_end, false, 0.0f); - - const ImVec2* clip_min = clip_rect ? &clip_rect->Min : &pos_min; - const ImVec2* clip_max = clip_rect ? &clip_rect->Max : &pos_max; - bool need_clipping = (pos.x + text_size.x >= clip_max->x) || (pos.y + text_size.y >= clip_max->y); - if (clip_rect) // If we had no explicit clipping rectangle then pos==clip_min - need_clipping |= (pos.x < clip_min->x) || (pos.y < clip_min->y); - - // Align whole block. We should defer that to the better rendering function when we'll have support for individual line alignment. - if (align.x > 0.0f) pos.x = ImMax(pos.x, pos.x + (pos_max.x - pos.x - text_size.x) * align.x); - if (align.y > 0.0f) pos.y = ImMax(pos.y, pos.y + (pos_max.y - pos.y - text_size.y) * align.y); - - // Render - if (need_clipping) - { - ImVec4 fine_clip_rect(clip_min->x, clip_min->y, clip_max->x, clip_max->y); - draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, &fine_clip_rect); - } - else - { - draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, NULL); - } -} - -void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect) -{ - // Hide anything after a '##' string - const char* text_display_end = FindRenderedTextEnd(text, text_end); - const int text_len = (int)(text_display_end - text); - if (text_len == 0) - return; - - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - RenderTextClippedEx(window->DrawList, pos_min, pos_max, text, text_display_end, text_size_if_known, align, clip_rect); - if (g.LogEnabled) - LogRenderedText(&pos_min, text, text_display_end); -} - - -// Another overly complex function until we reorganize everything into a nice all-in-one helper. -// This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) which define _where_ the ellipsis is, from actual clipping of text and limit of the ellipsis display. -// This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but we don't want the ellipsis to move. -void ImGui::RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end_full, const ImVec2* text_size_if_known) -{ - ImGuiContext& g = *GImGui; - if (text_end_full == NULL) - text_end_full = FindRenderedTextEnd(text); - const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_end_full, false, 0.0f); - - //draw_list->AddLine(ImVec2(pos_max.x, pos_min.y - 4), ImVec2(pos_max.x, pos_max.y + 4), IM_COL32(0, 0, 255, 255)); - //draw_list->AddLine(ImVec2(ellipsis_max_x, pos_min.y-2), ImVec2(ellipsis_max_x, pos_max.y+2), IM_COL32(0, 255, 0, 255)); - //draw_list->AddLine(ImVec2(clip_max_x, pos_min.y), ImVec2(clip_max_x, pos_max.y), IM_COL32(255, 0, 0, 255)); - // FIXME: We could technically remove (last_glyph->AdvanceX - last_glyph->X1) from text_size.x here and save a few pixels. - if (text_size.x > pos_max.x - pos_min.x) - { - // Hello wo... - // | | | - // min max ellipsis_max - // <-> this is generally some padding value - - const ImFont* font = draw_list->_Data->Font; - const float font_size = draw_list->_Data->FontSize; - const char* text_end_ellipsis = NULL; - - ImWchar ellipsis_char = font->EllipsisChar; - int ellipsis_char_count = 1; - if (ellipsis_char == (ImWchar)-1) - { - ellipsis_char = (ImWchar)'.'; - ellipsis_char_count = 3; - } - const ImFontGlyph* glyph = font->FindGlyph(ellipsis_char); - - float ellipsis_glyph_width = glyph->X1; // Width of the glyph with no padding on either side - float ellipsis_total_width = ellipsis_glyph_width; // Full width of entire ellipsis - - if (ellipsis_char_count > 1) - { - // Full ellipsis size without free spacing after it. - const float spacing_between_dots = 1.0f * (draw_list->_Data->FontSize / font->FontSize); - ellipsis_glyph_width = glyph->X1 - glyph->X0 + spacing_between_dots; - ellipsis_total_width = ellipsis_glyph_width * (float)ellipsis_char_count - spacing_between_dots; - } - - // We can now claim the space between pos_max.x and ellipsis_max.x - const float text_avail_width = ImMax((ImMax(pos_max.x, ellipsis_max_x) - ellipsis_total_width) - pos_min.x, 1.0f); - float text_size_clipped_x = font->CalcTextSizeA(font_size, text_avail_width, 0.0f, text, text_end_full, &text_end_ellipsis).x; - if (text == text_end_ellipsis && text_end_ellipsis < text_end_full) - { - // Always display at least 1 character if there's no room for character + ellipsis - text_end_ellipsis = text + ImTextCountUtf8BytesFromChar(text, text_end_full); - text_size_clipped_x = font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text, text_end_ellipsis).x; - } - while (text_end_ellipsis > text && ImCharIsBlankA(text_end_ellipsis[-1])) - { - // Trim trailing space before ellipsis (FIXME: Supporting non-ascii blanks would be nice, for this we need a function to backtrack in UTF-8 text) - text_end_ellipsis--; - text_size_clipped_x -= font->CalcTextSizeA(font_size, FLT_MAX, 0.0f, text_end_ellipsis, text_end_ellipsis + 1).x; // Ascii blanks are always 1 byte - } - - // Render text, render ellipsis - RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_ellipsis, &text_size, ImVec2(0.0f, 0.0f)); - float ellipsis_x = pos_min.x + text_size_clipped_x; - if (ellipsis_x + ellipsis_total_width <= ellipsis_max_x) - for (int i = 0; i < ellipsis_char_count; i++) - { - font->RenderChar(draw_list, font_size, ImVec2(ellipsis_x, pos_min.y), GetColorU32(ImGuiCol_Text), ellipsis_char); - ellipsis_x += ellipsis_glyph_width; - } - } - else - { - RenderTextClippedEx(draw_list, pos_min, ImVec2(clip_max_x, pos_max.y), text, text_end_full, &text_size, ImVec2(0.0f, 0.0f)); - } - - if (g.LogEnabled) - LogRenderedText(&pos_min, text, text_end_full); -} - -// Render a rectangle shaped with optional rounding and borders -void ImGui::RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding); - const float border_size = g.Style.FrameBorderSize; - if (border && border_size > 0.0f) - { - window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, ImDrawCornerFlags_All, border_size); - window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, ImDrawCornerFlags_All, border_size); - } -} - -void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - const float border_size = g.Style.FrameBorderSize; - if (border_size > 0.0f) - { - window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, ImDrawCornerFlags_All, border_size); - window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, ImDrawCornerFlags_All, border_size); - } -} - -void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags) -{ - ImGuiContext& g = *GImGui; - if (id != g.NavId) - return; - if (g.NavDisableHighlight && !(flags & ImGuiNavHighlightFlags_AlwaysDraw)) - return; - ImGuiWindow* window = g.CurrentWindow; - if (window->DC.NavHideHighlightOneFrame) - return; - - float rounding = (flags & ImGuiNavHighlightFlags_NoRounding) ? 0.0f : g.Style.FrameRounding; - ImRect display_rect = bb; - display_rect.ClipWith(window->ClipRect); - if (flags & ImGuiNavHighlightFlags_TypeDefault) - { - const float THICKNESS = 2.0f; - const float DISTANCE = 3.0f + THICKNESS * 0.5f; - display_rect.Expand(ImVec2(DISTANCE, DISTANCE)); - bool fully_visible = window->ClipRect.Contains(display_rect); - if (!fully_visible) - window->DrawList->PushClipRect(display_rect.Min, display_rect.Max); - window->DrawList->AddRect(display_rect.Min + ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), display_rect.Max - ImVec2(THICKNESS * 0.5f, THICKNESS * 0.5f), GetColorU32(ImGuiCol_NavHighlight), rounding, ImDrawCornerFlags_All, THICKNESS); - if (!fully_visible) - window->DrawList->PopClipRect(); - } - if (flags & ImGuiNavHighlightFlags_TypeThin) - { - window->DrawList->AddRect(display_rect.Min, display_rect.Max, GetColorU32(ImGuiCol_NavHighlight), rounding, ~0, 1.0f); - } -} - -//----------------------------------------------------------------------------- -// [SECTION] MAIN CODE (most of the code! lots of stuff, needs tidying up!) -//----------------------------------------------------------------------------- - -// ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods -ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name) : DrawListInst(NULL) -{ - memset(this, 0, sizeof(*this)); - Name = ImStrdup(name); - NameBufLen = (int)strlen(name) + 1; - ID = ImHashStr(name); - IDStack.push_back(ID); - MoveId = GetID("#MOVE"); - ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); - ScrollTargetCenterRatio = ImVec2(0.5f, 0.5f); - AutoFitFramesX = AutoFitFramesY = -1; - AutoPosLastDirection = ImGuiDir_None; - SetWindowPosAllowFlags = SetWindowSizeAllowFlags = SetWindowCollapsedAllowFlags = ImGuiCond_Always | ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing; - SetWindowPosVal = SetWindowPosPivot = ImVec2(FLT_MAX, FLT_MAX); - LastFrameActive = -1; - LastTimeActive = -1.0f; - FontWindowScale = 1.0f; - SettingsOffset = -1; - DrawList = &DrawListInst; - DrawList->_Data = &context->DrawListSharedData; - DrawList->_OwnerName = Name; -} - -ImGuiWindow::~ImGuiWindow() -{ - IM_ASSERT(DrawList == &DrawListInst); - IM_DELETE(Name); - for (int i = 0; i != ColumnsStorage.Size; i++) - ColumnsStorage[i].~ImGuiOldColumns(); -} - -ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); - ImGui::KeepAliveID(id); -#ifdef IMGUI_ENABLE_TEST_ENGINE - ImGuiContext& g = *GImGui; - IMGUI_TEST_ENGINE_ID_INFO2(id, ImGuiDataType_String, str, str_end); -#endif - return id; -} - -ImGuiID ImGuiWindow::GetID(const void* ptr) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); - ImGui::KeepAliveID(id); -#ifdef IMGUI_ENABLE_TEST_ENGINE - ImGuiContext& g = *GImGui; - IMGUI_TEST_ENGINE_ID_INFO(id, ImGuiDataType_Pointer, ptr); -#endif - return id; -} - -ImGuiID ImGuiWindow::GetID(int n) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashData(&n, sizeof(n), seed); - ImGui::KeepAliveID(id); -#ifdef IMGUI_ENABLE_TEST_ENGINE - ImGuiContext& g = *GImGui; - IMGUI_TEST_ENGINE_ID_INFO(id, ImGuiDataType_S32, (intptr_t)n); -#endif - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(const char* str, const char* str_end) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); -#ifdef IMGUI_ENABLE_TEST_ENGINE - ImGuiContext& g = *GImGui; - IMGUI_TEST_ENGINE_ID_INFO2(id, ImGuiDataType_String, str, str_end); -#endif - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(const void* ptr) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashData(&ptr, sizeof(void*), seed); -#ifdef IMGUI_ENABLE_TEST_ENGINE - ImGuiContext& g = *GImGui; - IMGUI_TEST_ENGINE_ID_INFO(id, ImGuiDataType_Pointer, ptr); -#endif - return id; -} - -ImGuiID ImGuiWindow::GetIDNoKeepAlive(int n) -{ - ImGuiID seed = IDStack.back(); - ImGuiID id = ImHashData(&n, sizeof(n), seed); -#ifdef IMGUI_ENABLE_TEST_ENGINE - ImGuiContext& g = *GImGui; - IMGUI_TEST_ENGINE_ID_INFO(id, ImGuiDataType_S32, (intptr_t)n); -#endif - return id; -} - -// This is only used in rare/specific situations to manufacture an ID out of nowhere. -ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs) -{ - ImGuiID seed = IDStack.back(); - const int r_rel[4] = { (int)(r_abs.Min.x - Pos.x), (int)(r_abs.Min.y - Pos.y), (int)(r_abs.Max.x - Pos.x), (int)(r_abs.Max.y - Pos.y) }; - ImGuiID id = ImHashData(&r_rel, sizeof(r_rel), seed); - ImGui::KeepAliveID(id); - return id; -} - -static void SetCurrentWindow(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - g.CurrentWindow = window; - g.CurrentTable = window && window->DC.CurrentTableIdx != -1 ? g.Tables.GetByIndex(window->DC.CurrentTableIdx) : NULL; - if (window) - g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); -} - -void ImGui::GcCompactTransientMiscBuffers() -{ - ImGuiContext& g = *GImGui; - g.ItemFlagsStack.clear(); - g.GroupStack.clear(); - TableGcCompactSettings(); -} - -// Free up/compact internal window buffers, we can use this when a window becomes unused. -// Not freed: -// - ImGuiWindow, ImGuiWindowSettings, Name, StateStorage, ColumnsStorage (may hold useful data) -// This should have no noticeable visual effect. When the window reappear however, expect new allocation/buffer growth/copy cost. -void ImGui::GcCompactTransientWindowBuffers(ImGuiWindow* window) -{ - window->MemoryCompacted = true; - window->MemoryDrawListIdxCapacity = window->DrawList->IdxBuffer.Capacity; - window->MemoryDrawListVtxCapacity = window->DrawList->VtxBuffer.Capacity; - window->IDStack.clear(); - window->DrawList->_ClearFreeMemory(); - window->DC.ChildWindows.clear(); - window->DC.ItemWidthStack.clear(); - window->DC.TextWrapPosStack.clear(); -} - -void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window) -{ - // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening. - // The other buffers tends to amortize much faster. - window->MemoryCompacted = false; - window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity); - window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity); - window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0; -} - -void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - g.ActiveIdIsJustActivated = (g.ActiveId != id); - if (g.ActiveIdIsJustActivated) - { - g.ActiveIdTimer = 0.0f; - g.ActiveIdHasBeenPressedBefore = false; - g.ActiveIdHasBeenEditedBefore = false; - if (id != 0) - { - g.LastActiveId = id; - g.LastActiveIdTimer = 0.0f; - } - } - g.ActiveId = id; - g.ActiveIdAllowOverlap = false; - g.ActiveIdNoClearOnFocusLoss = false; - g.ActiveIdWindow = window; - g.ActiveIdHasBeenEditedThisFrame = false; - if (id) - { - g.ActiveIdIsAlive = id; - g.ActiveIdSource = (g.NavActivateId == id || g.NavInputId == id || g.NavJustTabbedId == id || g.NavJustMovedToId == id) ? ImGuiInputSource_Nav : ImGuiInputSource_Mouse; - } - - // Clear declaration of inputs claimed by the widget - // (Please note that this is WIP and not all keys/inputs are thoroughly declared by all widgets yet) - g.ActiveIdUsingMouseWheel = false; - g.ActiveIdUsingNavDirMask = 0x00; - g.ActiveIdUsingNavInputMask = 0x00; - g.ActiveIdUsingKeyInputMask = 0x00; -} - -void ImGui::ClearActiveID() -{ - SetActiveID(0, NULL); // g.ActiveId = 0; -} - -void ImGui::SetHoveredID(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - g.HoveredId = id; - g.HoveredIdAllowOverlap = false; - g.HoveredIdUsingMouseWheel = false; - if (id != 0 && g.HoveredIdPreviousFrame != id) - g.HoveredIdTimer = g.HoveredIdNotActiveTimer = 0.0f; -} - -ImGuiID ImGui::GetHoveredID() -{ - ImGuiContext& g = *GImGui; - return g.HoveredId ? g.HoveredId : g.HoveredIdPreviousFrame; -} - -void ImGui::KeepAliveID(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - if (g.ActiveId == id) - g.ActiveIdIsAlive = id; - if (g.ActiveIdPreviousFrame == id) - g.ActiveIdPreviousFrameIsAlive = true; -} - -void ImGui::MarkItemEdited(ImGuiID id) -{ - // This marking is solely to be able to provide info for IsItemDeactivatedAfterEdit(). - // ActiveId might have been released by the time we call this (as in the typical press/release button behavior) but still need need to fill the data. - ImGuiContext& g = *GImGui; - IM_ASSERT(g.ActiveId == id || g.ActiveId == 0 || g.DragDropActive); - IM_UNUSED(id); // Avoid unused variable warnings when asserts are compiled out. - //IM_ASSERT(g.CurrentWindow->DC.LastItemId == id); - g.ActiveIdHasBeenEditedThisFrame = true; - g.ActiveIdHasBeenEditedBefore = true; - g.CurrentWindow->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_Edited; -} - -static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags) -{ - // An active popup disable hovering on other windows (apart from its own children) - // FIXME-OPT: This could be cached/stored within the window. - ImGuiContext& g = *GImGui; - if (g.NavWindow) - if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindow) - if (focused_root_window->WasActive && focused_root_window != window->RootWindow) - { - // For the purpose of those flags we differentiate "standard popup" from "modal popup" - // NB: The order of those two tests is important because Modal windows are also Popups. - if (focused_root_window->Flags & ImGuiWindowFlags_Modal) - return false; - if ((focused_root_window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiHoveredFlags_AllowWhenBlockedByPopup)) - return false; - } - return true; -} - -// This is roughly matching the behavior of internal-facing ItemHoverable() -// - we allow hovering to be true when ActiveId==window->MoveID, so that clicking on non-interactive items such as a Text() item still returns true with IsItemHovered() -// - this should work even for non-interactive items that have no ID, so we cannot use LastItemId -bool ImGui::IsItemHovered(ImGuiHoveredFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (g.NavDisableMouseHover && !g.NavDisableHighlight) - return IsItemFocused(); - - // Test for bounding box overlap, as updated as ItemAdd() - ImGuiItemStatusFlags status_flags = window->DC.LastItemStatusFlags; - if (!(status_flags & ImGuiItemStatusFlags_HoveredRect)) - return false; - IM_ASSERT((flags & (ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows)) == 0); // Flags not supported by this function - - // Test if we are hovering the right window (our window could be behind another window) - // [2021/03/02] Reworked / reverted the revert, finally. Note we want e.g. BeginGroup/ItemAdd/EndGroup to work as well. (#3851) - // [2017/10/16] Reverted commit 344d48be3 and testing RootWindow instead. I believe it is correct to NOT test for RootWindow but this leaves us unable - // to use IsItemHovered() after EndChild() itself. Until a solution is found I believe reverting to the test from 2017/09/27 is safe since this was - // the test that has been running for a long while. - if (g.HoveredWindow != window && (status_flags & ImGuiItemStatusFlags_HoveredWindow) == 0) - if ((flags & ImGuiHoveredFlags_AllowWhenOverlapped) == 0) - return false; - - // Test if another item is active (e.g. being dragged) - if ((flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem) == 0) - if (g.ActiveId != 0 && g.ActiveId != window->DC.LastItemId && !g.ActiveIdAllowOverlap && g.ActiveId != window->MoveId) - return false; - - // Test if interactions on this window are blocked by an active popup or modal. - // The ImGuiHoveredFlags_AllowWhenBlockedByPopup flag will be tested here. - if (!IsWindowContentHoverable(window, flags)) - return false; - - // Test if the item is disabled - if ((window->DC.ItemFlags & ImGuiItemFlags_Disabled) && !(flags & ImGuiHoveredFlags_AllowWhenDisabled)) - return false; - - // Special handling for calling after Begin() which represent the title bar or tab. - // When the window is collapsed (SkipItems==true) that last item will never be overwritten so we need to detect the case. - if (window->DC.LastItemId == window->MoveId && window->WriteAccessed) - return false; - return true; -} - -// Internal facing ItemHoverable() used when submitting widgets. Differs slightly from IsItemHovered(). -bool ImGui::ItemHoverable(const ImRect& bb, ImGuiID id) -{ - ImGuiContext& g = *GImGui; - if (g.HoveredId != 0 && g.HoveredId != id && !g.HoveredIdAllowOverlap) - return false; - - ImGuiWindow* window = g.CurrentWindow; - if (g.HoveredWindow != window) - return false; - if (g.ActiveId != 0 && g.ActiveId != id && !g.ActiveIdAllowOverlap) - return false; - if (!IsMouseHoveringRect(bb.Min, bb.Max)) - return false; - if (g.NavDisableMouseHover) - return false; - if (!IsWindowContentHoverable(window, ImGuiHoveredFlags_None) || (window->DC.ItemFlags & ImGuiItemFlags_Disabled)) - { - g.HoveredIdDisabled = true; - return false; - } - - // We exceptionally allow this function to be called with id==0 to allow using it for easy high-level - // hover test in widgets code. We could also decide to split this function is two. - if (id != 0) - { - SetHoveredID(id); - - // [DEBUG] Item Picker tool! - // We perform the check here because SetHoveredID() is not frequently called (1~ time a frame), making - // the cost of this tool near-zero. We can get slightly better call-stack and support picking non-hovered - // items if we perform the test in ItemAdd(), but that would incur a small runtime cost. - // #define IMGUI_DEBUG_TOOL_ITEM_PICKER_EX in imconfig.h if you want this check to also be performed in ItemAdd(). - if (g.DebugItemPickerActive && g.HoveredIdPreviousFrame == id) - GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 255, 0, 255)); - if (g.DebugItemPickerBreakId == id) - IM_DEBUG_BREAK(); - } - - return true; -} - -bool ImGui::IsClippedEx(const ImRect& bb, ImGuiID id, bool clip_even_when_logged) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (!bb.Overlaps(window->ClipRect)) - if (id == 0 || (id != g.ActiveId && id != g.NavId)) - if (clip_even_when_logged || !g.LogEnabled) - return true; - return false; -} - -// This is also inlined in ItemAdd() -// Note: if ImGuiItemStatusFlags_HasDisplayRect is set, user needs to set window->DC.LastItemDisplayRect! -void ImGui::SetLastItemData(ImGuiWindow* window, ImGuiID item_id, ImGuiItemStatusFlags item_flags, const ImRect& item_rect) -{ - window->DC.LastItemId = item_id; - window->DC.LastItemStatusFlags = item_flags; - window->DC.LastItemRect = item_rect; -} - -// Process TAB/Shift+TAB. Be mindful that this function may _clear_ the ActiveID when tabbing out. -bool ImGui::FocusableItemRegister(ImGuiWindow* window, ImGuiID id) -{ - ImGuiContext& g = *GImGui; - - // Increment counters - const bool is_tab_stop = (window->DC.ItemFlags & (ImGuiItemFlags_NoTabStop | ImGuiItemFlags_Disabled)) == 0; - window->DC.FocusCounterRegular++; - if (is_tab_stop) - window->DC.FocusCounterTabStop++; - - // Process TAB/Shift-TAB to tab *OUT* of the currently focused item. - // (Note that we can always TAB out of a widget that doesn't allow tabbing in) - if (g.ActiveId == id && g.FocusTabPressed && !IsActiveIdUsingKey(ImGuiKey_Tab) && g.FocusRequestNextWindow == NULL) - { - g.FocusRequestNextWindow = window; - g.FocusRequestNextCounterTabStop = window->DC.FocusCounterTabStop + (g.IO.KeyShift ? (is_tab_stop ? -1 : 0) : +1); // Modulo on index will be applied at the end of frame once we've got the total counter of items. - } - - // Handle focus requests - if (g.FocusRequestCurrWindow == window) - { - if (window->DC.FocusCounterRegular == g.FocusRequestCurrCounterRegular) - return true; - if (is_tab_stop && window->DC.FocusCounterTabStop == g.FocusRequestCurrCounterTabStop) - { - g.NavJustTabbedId = id; - return true; - } - - // If another item is about to be focused, we clear our own active id - if (g.ActiveId == id) - ClearActiveID(); - } - - return false; -} - -void ImGui::FocusableItemUnregister(ImGuiWindow* window) -{ - window->DC.FocusCounterRegular--; - window->DC.FocusCounterTabStop--; -} - -float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) -{ - if (wrap_pos_x < 0.0f) - return 0.0f; - - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (wrap_pos_x == 0.0f) - { - // We could decide to setup a default wrapping max point for auto-resizing windows, - // or have auto-wrap (with unspecified wrapping pos) behave as a ContentSize extending function? - //if (window->Hidden && (window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) - // wrap_pos_x = ImMax(window->WorkRect.Min.x + g.FontSize * 10.0f, window->WorkRect.Max.x); - //else - wrap_pos_x = window->WorkRect.Max.x; - } - else if (wrap_pos_x > 0.0f) - { - wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space - } - - return ImMax(wrap_pos_x - pos.x, 1.0f); -} - -// IM_ALLOC() == ImGui::MemAlloc() -void* ImGui::MemAlloc(size_t size) -{ - if (ImGuiContext* ctx = GImGui) - ctx->IO.MetricsActiveAllocations++; - return (*GImAllocatorAllocFunc)(size, GImAllocatorUserData); -} - -// IM_FREE() == ImGui::MemFree() -void ImGui::MemFree(void* ptr) -{ - if (ptr) - if (ImGuiContext* ctx = GImGui) - ctx->IO.MetricsActiveAllocations--; - return (*GImAllocatorFreeFunc)(ptr, GImAllocatorUserData); -} - -const char* ImGui::GetClipboardText() -{ - ImGuiContext& g = *GImGui; - return g.IO.GetClipboardTextFn ? g.IO.GetClipboardTextFn(g.IO.ClipboardUserData) : ""; -} - -void ImGui::SetClipboardText(const char* text) -{ - ImGuiContext& g = *GImGui; - if (g.IO.SetClipboardTextFn) - g.IO.SetClipboardTextFn(g.IO.ClipboardUserData, text); -} - -const char* ImGui::GetVersion() -{ - return IMGUI_VERSION; -} - -// Internal state access - if you want to share Dear ImGui state between modules (e.g. DLL) or allocate it yourself -// Note that we still point to some static data and members (such as GFontAtlas), so the state instance you end up using will point to the static data within its module -ImGuiContext* ImGui::GetCurrentContext() -{ - return GImGui; -} - -void ImGui::SetCurrentContext(ImGuiContext* ctx) -{ -#ifdef IMGUI_SET_CURRENT_CONTEXT_FUNC - IMGUI_SET_CURRENT_CONTEXT_FUNC(ctx); // For custom thread-based hackery you may want to have control over this. -#else - GImGui = ctx; -#endif -} - -void ImGui::SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data) -{ - GImAllocatorAllocFunc = alloc_func; - GImAllocatorFreeFunc = free_func; - GImAllocatorUserData = user_data; -} - -// This is provided to facilitate copying allocators from one static/DLL boundary to another (e.g. retrieve default allocator of your executable address space) -void ImGui::GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data) -{ - *p_alloc_func = GImAllocatorAllocFunc; - *p_free_func = GImAllocatorFreeFunc; - *p_user_data = GImAllocatorUserData; -} - -ImGuiContext* ImGui::CreateContext(ImFontAtlas* shared_font_atlas) -{ - ImGuiContext* ctx = IM_NEW(ImGuiContext)(shared_font_atlas); - if (GImGui == NULL) - SetCurrentContext(ctx); - Initialize(ctx); - return ctx; -} - -void ImGui::DestroyContext(ImGuiContext* ctx) -{ - if (ctx == NULL) - ctx = GImGui; - Shutdown(ctx); - if (GImGui == ctx) - SetCurrentContext(NULL); - IM_DELETE(ctx); -} - -// No specific ordering/dependency support, will see as needed -ImGuiID ImGui::AddContextHook(ImGuiContext* ctx, const ImGuiContextHook* hook) -{ - ImGuiContext& g = *ctx; - IM_ASSERT(hook->Callback != NULL && hook->HookId == 0 && hook->Type != ImGuiContextHookType_PendingRemoval_); - g.Hooks.push_back(*hook); - g.Hooks.back().HookId = ++g.HookIdNext; - return g.HookIdNext; -} - -// Deferred removal, avoiding issue with changing vector while iterating it -void ImGui::RemoveContextHook(ImGuiContext* ctx, ImGuiID hook_id) -{ - ImGuiContext& g = *ctx; - IM_ASSERT(hook_id != 0); - for (int n = 0; n < g.Hooks.Size; n++) - if (g.Hooks[n].HookId == hook_id) - g.Hooks[n].Type = ImGuiContextHookType_PendingRemoval_; -} - -// Call context hooks (used by e.g. test engine) -// We assume a small number of hooks so all stored in same array -void ImGui::CallContextHooks(ImGuiContext* ctx, ImGuiContextHookType hook_type) -{ - ImGuiContext& g = *ctx; - for (int n = 0; n < g.Hooks.Size; n++) - if (g.Hooks[n].Type == hook_type) - g.Hooks[n].Callback(&g, &g.Hooks[n]); -} - -ImGuiIO& ImGui::GetIO() -{ - IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); - return GImGui->IO; -} - -// Pass this to your backend rendering function! Valid after Render() and until the next call to NewFrame() -ImDrawData* ImGui::GetDrawData() -{ - ImGuiContext& g = *GImGui; - ImGuiViewportP* viewport = g.Viewports[0]; - return viewport->DrawDataP.Valid ? &viewport->DrawDataP : NULL; -} - -double ImGui::GetTime() -{ - return GImGui->Time; -} - -int ImGui::GetFrameCount() -{ - return GImGui->FrameCount; -} - -static ImDrawList* GetViewportDrawList(ImGuiViewportP* viewport, size_t drawlist_no, const char* drawlist_name) -{ - // Create the draw list on demand, because they are not frequently used for all viewports - ImGuiContext& g = *GImGui; - IM_ASSERT(drawlist_no < IM_ARRAYSIZE(viewport->DrawLists)); - ImDrawList* draw_list = viewport->DrawLists[drawlist_no]; - if (draw_list == NULL) - { - draw_list = IM_NEW(ImDrawList)(&g.DrawListSharedData); - draw_list->_OwnerName = drawlist_name; - viewport->DrawLists[drawlist_no] = draw_list; - } - - // Our ImDrawList system requires that there is always a command - if (viewport->DrawListsLastFrame[drawlist_no] != g.FrameCount) - { - draw_list->_ResetForNewFrame(); - draw_list->PushTextureID(g.IO.Fonts->TexID); - draw_list->PushClipRect(viewport->Pos, viewport->Pos + viewport->Size, false); - viewport->DrawListsLastFrame[drawlist_no] = g.FrameCount; - } - return draw_list; -} - -ImDrawList* ImGui::GetBackgroundDrawList(ImGuiViewport* viewport) -{ - return GetViewportDrawList((ImGuiViewportP*)viewport, 0, "##Background"); -} - -ImDrawList* ImGui::GetBackgroundDrawList() -{ - ImGuiContext& g = *GImGui; - return GetBackgroundDrawList(g.Viewports[0]); -} - -ImDrawList* ImGui::GetForegroundDrawList(ImGuiViewport* viewport) -{ - return GetViewportDrawList((ImGuiViewportP*)viewport, 1, "##Foreground"); -} - -ImDrawList* ImGui::GetForegroundDrawList() -{ - ImGuiContext& g = *GImGui; - return GetForegroundDrawList(g.Viewports[0]); -} - -ImDrawListSharedData* ImGui::GetDrawListSharedData() -{ - return &GImGui->DrawListSharedData; -} - -void ImGui::StartMouseMovingWindow(ImGuiWindow* window) -{ - // Set ActiveId even if the _NoMove flag is set. Without it, dragging away from a window with _NoMove would activate hover on other windows. - // We _also_ call this when clicking in a window empty space when io.ConfigWindowsMoveFromTitleBarOnly is set, but clear g.MovingWindow afterward. - // This is because we want ActiveId to be set even when the window is not permitted to move. - ImGuiContext& g = *GImGui; - FocusWindow(window); - SetActiveID(window->MoveId, window); - g.NavDisableHighlight = true; - g.ActiveIdNoClearOnFocusLoss = true; - g.ActiveIdClickOffset = g.IO.MousePos - window->RootWindow->Pos; - - bool can_move_window = true; - if ((window->Flags & ImGuiWindowFlags_NoMove) || (window->RootWindow->Flags & ImGuiWindowFlags_NoMove)) - can_move_window = false; - if (can_move_window) - g.MovingWindow = window; -} - -// Handle mouse moving window -// Note: moving window with the navigation keys (Square + d-pad / CTRL+TAB + Arrows) are processed in NavUpdateWindowing() -// FIXME: We don't have strong guarantee that g.MovingWindow stay synched with g.ActiveId == g.MovingWindow->MoveId. -// This is currently enforced by the fact that BeginDragDropSource() is setting all g.ActiveIdUsingXXXX flags to inhibit navigation inputs, -// but if we should more thoroughly test cases where g.ActiveId or g.MovingWindow gets changed and not the other. -void ImGui::UpdateMouseMovingWindowNewFrame() -{ - ImGuiContext& g = *GImGui; - if (g.MovingWindow != NULL) - { - // We actually want to move the root window. g.MovingWindow == window we clicked on (could be a child window). - // We track it to preserve Focus and so that generally ActiveIdWindow == MovingWindow and ActiveId == MovingWindow->MoveId for consistency. - KeepAliveID(g.ActiveId); - IM_ASSERT(g.MovingWindow && g.MovingWindow->RootWindow); - ImGuiWindow* moving_window = g.MovingWindow->RootWindow; - if (g.IO.MouseDown[0] && IsMousePosValid(&g.IO.MousePos)) - { - ImVec2 pos = g.IO.MousePos - g.ActiveIdClickOffset; - if (moving_window->Pos.x != pos.x || moving_window->Pos.y != pos.y) - { - MarkIniSettingsDirty(moving_window); - SetWindowPos(moving_window, pos, ImGuiCond_Always); - } - FocusWindow(g.MovingWindow); - } - else - { - ClearActiveID(); - g.MovingWindow = NULL; - } - } - else - { - // When clicking/dragging from a window that has the _NoMove flag, we still set the ActiveId in order to prevent hovering others. - if (g.ActiveIdWindow && g.ActiveIdWindow->MoveId == g.ActiveId) - { - KeepAliveID(g.ActiveId); - if (!g.IO.MouseDown[0]) - ClearActiveID(); - } - } -} - -// Initiate moving window when clicking on empty space or title bar. -// Handle left-click and right-click focus. -void ImGui::UpdateMouseMovingWindowEndFrame() -{ - ImGuiContext& g = *GImGui; - if (g.ActiveId != 0 || g.HoveredId != 0) - return; - - // Unless we just made a window/popup appear - if (g.NavWindow && g.NavWindow->Appearing) - return; - - // Click on empty space to focus window and start moving - // (after we're done with all our widgets) - if (g.IO.MouseClicked[0]) - { - // Handle the edge case of a popup being closed while clicking in its empty space. - // If we try to focus it, FocusWindow() > ClosePopupsOverWindow() will accidentally close any parent popups because they are not linked together any more. - ImGuiWindow* root_window = g.HoveredWindow ? g.HoveredWindow->RootWindow : NULL; - const bool is_closed_popup = root_window && (root_window->Flags & ImGuiWindowFlags_Popup) && !IsPopupOpen(root_window->PopupId, ImGuiPopupFlags_AnyPopupLevel); - - if (root_window != NULL && !is_closed_popup) - { - StartMouseMovingWindow(g.HoveredWindow); //-V595 - - // Cancel moving if clicked outside of title bar - if (g.IO.ConfigWindowsMoveFromTitleBarOnly && !(root_window->Flags & ImGuiWindowFlags_NoTitleBar)) - if (!root_window->TitleBarRect().Contains(g.IO.MouseClickedPos[0])) - g.MovingWindow = NULL; - - // Cancel moving if clicked over an item which was disabled or inhibited by popups (note that we know HoveredId == 0 already) - if (g.HoveredIdDisabled) - g.MovingWindow = NULL; - } - else if (root_window == NULL && g.NavWindow != NULL && GetTopMostPopupModal() == NULL) - { - // Clicking on void disable focus - FocusWindow(NULL); - } - } - - // With right mouse button we close popups without changing focus based on where the mouse is aimed - // Instead, focus will be restored to the window under the bottom-most closed popup. - // (The left mouse button path calls FocusWindow on the hovered window, which will lead NewFrame->ClosePopupsOverWindow to trigger) - if (g.IO.MouseClicked[1]) - { - // Find the top-most window between HoveredWindow and the top-most Modal Window. - // This is where we can trim the popup stack. - ImGuiWindow* modal = GetTopMostPopupModal(); - bool hovered_window_above_modal = g.HoveredWindow && IsWindowAbove(g.HoveredWindow, modal); - ClosePopupsOverWindow(hovered_window_above_modal ? g.HoveredWindow : modal, true); - } -} - -static bool IsWindowActiveAndVisible(ImGuiWindow* window) -{ - return (window->Active) && (!window->Hidden); -} - -static void ImGui::UpdateMouseInputs() -{ - ImGuiContext& g = *GImGui; - - // Round mouse position to avoid spreading non-rounded position (e.g. UpdateManualResize doesn't support them well) - if (IsMousePosValid(&g.IO.MousePos)) - g.IO.MousePos = g.LastValidMousePos = ImFloor(g.IO.MousePos); - - // If mouse just appeared or disappeared (usually denoted by -FLT_MAX components) we cancel out movement in MouseDelta - if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MousePosPrev)) - g.IO.MouseDelta = g.IO.MousePos - g.IO.MousePosPrev; - else - g.IO.MouseDelta = ImVec2(0.0f, 0.0f); - if (g.IO.MouseDelta.x != 0.0f || g.IO.MouseDelta.y != 0.0f) - g.NavDisableMouseHover = false; - - g.IO.MousePosPrev = g.IO.MousePos; - for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) - { - g.IO.MouseClicked[i] = g.IO.MouseDown[i] && g.IO.MouseDownDuration[i] < 0.0f; - g.IO.MouseReleased[i] = !g.IO.MouseDown[i] && g.IO.MouseDownDuration[i] >= 0.0f; - g.IO.MouseDownDurationPrev[i] = g.IO.MouseDownDuration[i]; - g.IO.MouseDownDuration[i] = g.IO.MouseDown[i] ? (g.IO.MouseDownDuration[i] < 0.0f ? 0.0f : g.IO.MouseDownDuration[i] + g.IO.DeltaTime) : -1.0f; - g.IO.MouseDoubleClicked[i] = false; - if (g.IO.MouseClicked[i]) - { - if ((float)(g.Time - g.IO.MouseClickedTime[i]) < g.IO.MouseDoubleClickTime) - { - ImVec2 delta_from_click_pos = IsMousePosValid(&g.IO.MousePos) ? (g.IO.MousePos - g.IO.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); - if (ImLengthSqr(delta_from_click_pos) < g.IO.MouseDoubleClickMaxDist * g.IO.MouseDoubleClickMaxDist) - g.IO.MouseDoubleClicked[i] = true; - g.IO.MouseClickedTime[i] = -g.IO.MouseDoubleClickTime * 2.0f; // Mark as "old enough" so the third click isn't turned into a double-click - } - else - { - g.IO.MouseClickedTime[i] = g.Time; - } - g.IO.MouseClickedPos[i] = g.IO.MousePos; - g.IO.MouseDownWasDoubleClick[i] = g.IO.MouseDoubleClicked[i]; - g.IO.MouseDragMaxDistanceAbs[i] = ImVec2(0.0f, 0.0f); - g.IO.MouseDragMaxDistanceSqr[i] = 0.0f; - } - else if (g.IO.MouseDown[i]) - { - // Maintain the maximum distance we reaching from the initial click position, which is used with dragging threshold - ImVec2 delta_from_click_pos = IsMousePosValid(&g.IO.MousePos) ? (g.IO.MousePos - g.IO.MouseClickedPos[i]) : ImVec2(0.0f, 0.0f); - g.IO.MouseDragMaxDistanceSqr[i] = ImMax(g.IO.MouseDragMaxDistanceSqr[i], ImLengthSqr(delta_from_click_pos)); - g.IO.MouseDragMaxDistanceAbs[i].x = ImMax(g.IO.MouseDragMaxDistanceAbs[i].x, delta_from_click_pos.x < 0.0f ? -delta_from_click_pos.x : delta_from_click_pos.x); - g.IO.MouseDragMaxDistanceAbs[i].y = ImMax(g.IO.MouseDragMaxDistanceAbs[i].y, delta_from_click_pos.y < 0.0f ? -delta_from_click_pos.y : delta_from_click_pos.y); - } - if (!g.IO.MouseDown[i] && !g.IO.MouseReleased[i]) - g.IO.MouseDownWasDoubleClick[i] = false; - if (g.IO.MouseClicked[i]) // Clicking any mouse button reactivate mouse hovering which may have been deactivated by gamepad/keyboard navigation - g.NavDisableMouseHover = false; - } -} - -static void StartLockWheelingWindow(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - if (g.WheelingWindow == window) - return; - g.WheelingWindow = window; - g.WheelingWindowRefMousePos = g.IO.MousePos; - g.WheelingWindowTimer = WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER; -} - -void ImGui::UpdateMouseWheel() -{ - ImGuiContext& g = *GImGui; - - // Reset the locked window if we move the mouse or after the timer elapses - if (g.WheelingWindow != NULL) - { - g.WheelingWindowTimer -= g.IO.DeltaTime; - if (IsMousePosValid() && ImLengthSqr(g.IO.MousePos - g.WheelingWindowRefMousePos) > g.IO.MouseDragThreshold * g.IO.MouseDragThreshold) - g.WheelingWindowTimer = 0.0f; - if (g.WheelingWindowTimer <= 0.0f) - { - g.WheelingWindow = NULL; - g.WheelingWindowTimer = 0.0f; - } - } - - if (g.IO.MouseWheel == 0.0f && g.IO.MouseWheelH == 0.0f) - return; - - if ((g.ActiveId != 0 && g.ActiveIdUsingMouseWheel) || (g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrameUsingMouseWheel)) - return; - - ImGuiWindow* window = g.WheelingWindow ? g.WheelingWindow : g.HoveredWindow; - if (!window || window->Collapsed) - return; - - // Zoom / Scale window - // FIXME-OBSOLETE: This is an old feature, it still works but pretty much nobody is using it and may be best redesigned. - if (g.IO.MouseWheel != 0.0f && g.IO.KeyCtrl && g.IO.FontAllowUserScaling) - { - StartLockWheelingWindow(window); - const float new_font_scale = ImClamp(window->FontWindowScale + g.IO.MouseWheel * 0.10f, 0.50f, 2.50f); - const float scale = new_font_scale / window->FontWindowScale; - window->FontWindowScale = new_font_scale; - if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) - { - const ImVec2 offset = window->Size * (1.0f - scale) * (g.IO.MousePos - window->Pos) / window->Size; - SetWindowPos(window, window->Pos + offset, 0); - window->Size = ImFloor(window->Size * scale); - window->SizeFull = ImFloor(window->SizeFull * scale); - } - return; - } - - // Mouse wheel scrolling - // If a child window has the ImGuiWindowFlags_NoScrollWithMouse flag, we give a chance to scroll its parent - - // Vertical Mouse Wheel scrolling - const float wheel_y = (g.IO.MouseWheel != 0.0f && !g.IO.KeyShift) ? g.IO.MouseWheel : 0.0f; - if (wheel_y != 0.0f && !g.IO.KeyCtrl) - { - StartLockWheelingWindow(window); - while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.y == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) - window = window->ParentWindow; - if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) - { - float max_step = window->InnerRect.GetHeight() * 0.67f; - float scroll_step = ImFloor(ImMin(5 * window->CalcFontSize(), max_step)); - SetScrollY(window, window->Scroll.y - wheel_y * scroll_step); - } - } - - // Horizontal Mouse Wheel scrolling, or Vertical Mouse Wheel w/ Shift held - const float wheel_x = (g.IO.MouseWheelH != 0.0f && !g.IO.KeyShift) ? g.IO.MouseWheelH : (g.IO.MouseWheel != 0.0f && g.IO.KeyShift) ? g.IO.MouseWheel : 0.0f; - if (wheel_x != 0.0f && !g.IO.KeyCtrl) - { - StartLockWheelingWindow(window); - while ((window->Flags & ImGuiWindowFlags_ChildWindow) && ((window->ScrollMax.x == 0.0f) || ((window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)))) - window = window->ParentWindow; - if (!(window->Flags & ImGuiWindowFlags_NoScrollWithMouse) && !(window->Flags & ImGuiWindowFlags_NoMouseInputs)) - { - float max_step = window->InnerRect.GetWidth() * 0.67f; - float scroll_step = ImFloor(ImMin(2 * window->CalcFontSize(), max_step)); - SetScrollX(window, window->Scroll.x - wheel_x * scroll_step); - } - } -} - -void ImGui::UpdateTabFocus() -{ - ImGuiContext& g = *GImGui; - - // Pressing TAB activate widget focus - g.FocusTabPressed = (g.NavWindow && g.NavWindow->Active && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) && !g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_Tab)); - if (g.ActiveId == 0 && g.FocusTabPressed) - { - // Note that SetKeyboardFocusHere() sets the Next fields mid-frame. To be consistent we also - // manipulate the Next fields even, even though they will be turned into Curr fields by the code below. - g.FocusRequestNextWindow = g.NavWindow; - g.FocusRequestNextCounterRegular = INT_MAX; - if (g.NavId != 0 && g.NavIdTabCounter != INT_MAX) - g.FocusRequestNextCounterTabStop = g.NavIdTabCounter + 1 + (g.IO.KeyShift ? -1 : 1); - else - g.FocusRequestNextCounterTabStop = g.IO.KeyShift ? -1 : 0; - } - - // Turn queued focus request into current one - g.FocusRequestCurrWindow = NULL; - g.FocusRequestCurrCounterRegular = g.FocusRequestCurrCounterTabStop = INT_MAX; - if (g.FocusRequestNextWindow != NULL) - { - ImGuiWindow* window = g.FocusRequestNextWindow; - g.FocusRequestCurrWindow = window; - if (g.FocusRequestNextCounterRegular != INT_MAX && window->DC.FocusCounterRegular != -1) - g.FocusRequestCurrCounterRegular = ImModPositive(g.FocusRequestNextCounterRegular, window->DC.FocusCounterRegular + 1); - if (g.FocusRequestNextCounterTabStop != INT_MAX && window->DC.FocusCounterTabStop != -1) - g.FocusRequestCurrCounterTabStop = ImModPositive(g.FocusRequestNextCounterTabStop, window->DC.FocusCounterTabStop + 1); - g.FocusRequestNextWindow = NULL; - g.FocusRequestNextCounterRegular = g.FocusRequestNextCounterTabStop = INT_MAX; - } - - g.NavIdTabCounter = INT_MAX; -} - -// The reason this is exposed in imgui_internal.h is: on touch-based system that don't have hovering, we want to dispatch inputs to the right target (imgui vs imgui+app) -void ImGui::UpdateHoveredWindowAndCaptureFlags() -{ - ImGuiContext& g = *GImGui; - - // Find the window hovered by mouse: - // - Child windows can extend beyond the limit of their parent so we need to derive HoveredRootWindow from HoveredWindow. - // - When moving a window we can skip the search, which also conveniently bypasses the fact that window->WindowRectClipped is lagging as this point of the frame. - // - We also support the moved window toggling the NoInputs flag after moving has started in order to be able to detect windows below it, which is useful for e.g. docking mechanisms. - bool clear_hovered_windows = false; - FindHoveredWindow(); - - // Modal windows prevents mouse from hovering behind them. - ImGuiWindow* modal_window = GetTopMostPopupModal(); - if (modal_window && g.HoveredWindow && !IsWindowChildOf(g.HoveredWindow->RootWindow, modal_window)) - clear_hovered_windows = true; - - // Disabled mouse? - if (g.IO.ConfigFlags & ImGuiConfigFlags_NoMouse) - clear_hovered_windows = true; - - // We track click ownership. When clicked outside of a window the click is owned by the application and won't report hovering nor request capture even while dragging over our windows afterward. - int mouse_earliest_button_down = -1; - bool mouse_any_down = false; - for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) - { - if (g.IO.MouseClicked[i]) - g.IO.MouseDownOwned[i] = (g.HoveredWindow != NULL) || (g.OpenPopupStack.Size > 0); - mouse_any_down |= g.IO.MouseDown[i]; - if (g.IO.MouseDown[i]) - if (mouse_earliest_button_down == -1 || g.IO.MouseClickedTime[i] < g.IO.MouseClickedTime[mouse_earliest_button_down]) - mouse_earliest_button_down = i; - } - const bool mouse_avail_to_imgui = (mouse_earliest_button_down == -1) || g.IO.MouseDownOwned[mouse_earliest_button_down]; - - // If mouse was first clicked outside of ImGui bounds we also cancel out hovering. - // FIXME: For patterns of drag and drop across OS windows, we may need to rework/remove this test (first committed 311c0ca9 on 2015/02) - const bool mouse_dragging_extern_payload = g.DragDropActive && (g.DragDropSourceFlags & ImGuiDragDropFlags_SourceExtern) != 0; - if (!mouse_avail_to_imgui && !mouse_dragging_extern_payload) - clear_hovered_windows = true; - - if (clear_hovered_windows) - g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; - - // Update io.WantCaptureMouse for the user application (true = dispatch mouse info to imgui, false = dispatch mouse info to Dear ImGui + app) - if (g.WantCaptureMouseNextFrame != -1) - g.IO.WantCaptureMouse = (g.WantCaptureMouseNextFrame != 0); - else - g.IO.WantCaptureMouse = (mouse_avail_to_imgui && (g.HoveredWindow != NULL || mouse_any_down)) || (g.OpenPopupStack.Size > 0); - - // Update io.WantCaptureKeyboard for the user application (true = dispatch keyboard info to imgui, false = dispatch keyboard info to Dear ImGui + app) - if (g.WantCaptureKeyboardNextFrame != -1) - g.IO.WantCaptureKeyboard = (g.WantCaptureKeyboardNextFrame != 0); - else - g.IO.WantCaptureKeyboard = (g.ActiveId != 0) || (modal_window != NULL); - if (g.IO.NavActive && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) && !(g.IO.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard)) - g.IO.WantCaptureKeyboard = true; - - // Update io.WantTextInput flag, this is to allow systems without a keyboard (e.g. mobile, hand-held) to show a software keyboard if possible - g.IO.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : false; -} - -ImGuiKeyModFlags ImGui::GetMergedKeyModFlags() -{ - ImGuiContext& g = *GImGui; - ImGuiKeyModFlags key_mod_flags = ImGuiKeyModFlags_None; - if (g.IO.KeyCtrl) { key_mod_flags |= ImGuiKeyModFlags_Ctrl; } - if (g.IO.KeyShift) { key_mod_flags |= ImGuiKeyModFlags_Shift; } - if (g.IO.KeyAlt) { key_mod_flags |= ImGuiKeyModFlags_Alt; } - if (g.IO.KeySuper) { key_mod_flags |= ImGuiKeyModFlags_Super; } - return key_mod_flags; -} - -void ImGui::NewFrame() -{ - IM_ASSERT(GImGui != NULL && "No current context. Did you call ImGui::CreateContext() and ImGui::SetCurrentContext() ?"); - ImGuiContext& g = *GImGui; - - // Remove pending delete hooks before frame start. - // This deferred removal avoid issues of removal while iterating the hook vector - for (int n = g.Hooks.Size - 1; n >= 0; n--) - if (g.Hooks[n].Type == ImGuiContextHookType_PendingRemoval_) - g.Hooks.erase(&g.Hooks[n]); - - CallContextHooks(&g, ImGuiContextHookType_NewFramePre); - - // Check and assert for various common IO and Configuration mistakes - ErrorCheckNewFrameSanityChecks(); - - // Load settings on first frame, save settings when modified (after a delay) - UpdateSettings(); - - g.Time += g.IO.DeltaTime; - g.WithinFrameScope = true; - g.FrameCount += 1; - g.TooltipOverrideCount = 0; - g.WindowsActiveCount = 0; - g.MenusIdSubmittedThisFrame.resize(0); - - // Calculate frame-rate for the user, as a purely luxurious feature - g.FramerateSecPerFrameAccum += g.IO.DeltaTime - g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx]; - g.FramerateSecPerFrame[g.FramerateSecPerFrameIdx] = g.IO.DeltaTime; - g.FramerateSecPerFrameIdx = (g.FramerateSecPerFrameIdx + 1) % IM_ARRAYSIZE(g.FramerateSecPerFrame); - g.IO.Framerate = (g.FramerateSecPerFrameAccum > 0.0f) ? (1.0f / (g.FramerateSecPerFrameAccum / (float)IM_ARRAYSIZE(g.FramerateSecPerFrame))) : FLT_MAX; - - UpdateViewportsNewFrame(); - - // Setup current font and draw list shared data - g.IO.Fonts->Locked = true; - SetCurrentFont(GetDefaultFont()); - IM_ASSERT(g.Font->IsLoaded()); - ImRect virtual_space(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); - for (int n = 0; n < g.Viewports.Size; n++) - virtual_space.Add(g.Viewports[n]->GetMainRect()); - g.DrawListSharedData.ClipRectFullscreen = virtual_space.ToVec4(); - g.DrawListSharedData.CurveTessellationTol = g.Style.CurveTessellationTol; - g.DrawListSharedData.SetCircleTessellationMaxError(g.Style.CircleTessellationMaxError); - g.DrawListSharedData.InitialFlags = ImDrawListFlags_None; - if (g.Style.AntiAliasedLines) - g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLines; - if (g.Style.AntiAliasedLinesUseTex && !(g.Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)) - g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedLinesUseTex; - if (g.Style.AntiAliasedFill) - g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AntiAliasedFill; - if (g.IO.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) - g.DrawListSharedData.InitialFlags |= ImDrawListFlags_AllowVtxOffset; - - // Mark rendering data as invalid to prevent user who may have a handle on it to use it. - for (int n = 0; n < g.Viewports.Size; n++) - { - ImGuiViewportP* viewport = g.Viewports[n]; - viewport->DrawDataP.Clear(); - } - - // Drag and drop keep the source ID alive so even if the source disappear our state is consistent - if (g.DragDropActive && g.DragDropPayload.SourceId == g.ActiveId) - KeepAliveID(g.DragDropPayload.SourceId); - - // Update HoveredId data - if (!g.HoveredIdPreviousFrame) - g.HoveredIdTimer = 0.0f; - if (!g.HoveredIdPreviousFrame || (g.HoveredId && g.ActiveId == g.HoveredId)) - g.HoveredIdNotActiveTimer = 0.0f; - if (g.HoveredId) - g.HoveredIdTimer += g.IO.DeltaTime; - if (g.HoveredId && g.ActiveId != g.HoveredId) - g.HoveredIdNotActiveTimer += g.IO.DeltaTime; - g.HoveredIdPreviousFrame = g.HoveredId; - g.HoveredIdPreviousFrameUsingMouseWheel = g.HoveredIdUsingMouseWheel; - g.HoveredId = 0; - g.HoveredIdAllowOverlap = false; - g.HoveredIdUsingMouseWheel = false; - g.HoveredIdDisabled = false; - - // Update ActiveId data (clear reference to active widget if the widget isn't alive anymore) - if (g.ActiveIdIsAlive != g.ActiveId && g.ActiveIdPreviousFrame == g.ActiveId && g.ActiveId != 0) - ClearActiveID(); - if (g.ActiveId) - g.ActiveIdTimer += g.IO.DeltaTime; - g.LastActiveIdTimer += g.IO.DeltaTime; - g.ActiveIdPreviousFrame = g.ActiveId; - g.ActiveIdPreviousFrameWindow = g.ActiveIdWindow; - g.ActiveIdPreviousFrameHasBeenEditedBefore = g.ActiveIdHasBeenEditedBefore; - g.ActiveIdIsAlive = 0; - g.ActiveIdHasBeenEditedThisFrame = false; - g.ActiveIdPreviousFrameIsAlive = false; - g.ActiveIdIsJustActivated = false; - if (g.TempInputId != 0 && g.ActiveId != g.TempInputId) - g.TempInputId = 0; - if (g.ActiveId == 0) - { - g.ActiveIdUsingNavDirMask = 0x00; - g.ActiveIdUsingNavInputMask = 0x00; - g.ActiveIdUsingKeyInputMask = 0x00; - } - - // Drag and drop - g.DragDropAcceptIdPrev = g.DragDropAcceptIdCurr; - g.DragDropAcceptIdCurr = 0; - g.DragDropAcceptIdCurrRectSurface = FLT_MAX; - g.DragDropWithinSource = false; - g.DragDropWithinTarget = false; - g.DragDropHoldJustPressedId = 0; - - // Update keyboard input state - // Synchronize io.KeyMods with individual modifiers io.KeyXXX bools - g.IO.KeyMods = GetMergedKeyModFlags(); - memcpy(g.IO.KeysDownDurationPrev, g.IO.KeysDownDuration, sizeof(g.IO.KeysDownDuration)); - for (int i = 0; i < IM_ARRAYSIZE(g.IO.KeysDown); i++) - g.IO.KeysDownDuration[i] = g.IO.KeysDown[i] ? (g.IO.KeysDownDuration[i] < 0.0f ? 0.0f : g.IO.KeysDownDuration[i] + g.IO.DeltaTime) : -1.0f; - - // Update gamepad/keyboard navigation - NavUpdate(); - - // Update mouse input state - UpdateMouseInputs(); - - // Find hovered window - // (needs to be before UpdateMouseMovingWindowNewFrame so we fill g.HoveredWindowUnderMovingWindow on the mouse release frame) - UpdateHoveredWindowAndCaptureFlags(); - - // Handle user moving window with mouse (at the beginning of the frame to avoid input lag or sheering) - UpdateMouseMovingWindowNewFrame(); - - // Background darkening/whitening - if (GetTopMostPopupModal() != NULL || (g.NavWindowingTarget != NULL && g.NavWindowingHighlightAlpha > 0.0f)) - g.DimBgRatio = ImMin(g.DimBgRatio + g.IO.DeltaTime * 6.0f, 1.0f); - else - g.DimBgRatio = ImMax(g.DimBgRatio - g.IO.DeltaTime * 10.0f, 0.0f); - - g.MouseCursor = ImGuiMouseCursor_Arrow; - g.WantCaptureMouseNextFrame = g.WantCaptureKeyboardNextFrame = g.WantTextInputNextFrame = -1; - g.PlatformImePos = ImVec2(1.0f, 1.0f); // OS Input Method Editor showing on top-left of our window by default - - // Mouse wheel scrolling, scale - UpdateMouseWheel(); - - // Update legacy TAB focus - UpdateTabFocus(); - - // Mark all windows as not visible and compact unused memory. - IM_ASSERT(g.WindowsFocusOrder.Size == g.Windows.Size); - const float memory_compact_start_time = (g.GcCompactAll || g.IO.ConfigMemoryCompactTimer < 0.0f) ? FLT_MAX : (float)g.Time - g.IO.ConfigMemoryCompactTimer; - for (int i = 0; i != g.Windows.Size; i++) - { - ImGuiWindow* window = g.Windows[i]; - window->WasActive = window->Active; - window->BeginCount = 0; - window->Active = false; - window->WriteAccessed = false; - - // Garbage collect transient buffers of recently unused windows - if (!window->WasActive && !window->MemoryCompacted && window->LastTimeActive < memory_compact_start_time) - GcCompactTransientWindowBuffers(window); - } - - // Garbage collect transient buffers of recently unused tables - for (int i = 0; i < g.TablesLastTimeActive.Size; i++) - if (g.TablesLastTimeActive[i] >= 0.0f && g.TablesLastTimeActive[i] < memory_compact_start_time) - TableGcCompactTransientBuffers(g.Tables.GetByIndex(i)); - if (g.GcCompactAll) - GcCompactTransientMiscBuffers(); - g.GcCompactAll = false; - - // Closing the focused window restore focus to the first active root window in descending z-order - if (g.NavWindow && !g.NavWindow->WasActive) - FocusTopMostWindowUnderOne(NULL, NULL); - - // No window should be open at the beginning of the frame. - // But in order to allow the user to call NewFrame() multiple times without calling Render(), we are doing an explicit clear. - g.CurrentWindowStack.resize(0); - g.BeginPopupStack.resize(0); - g.ItemFlagsStack.resize(0); - g.ItemFlagsStack.push_back(ImGuiItemFlags_Default_); - g.GroupStack.resize(0); - ClosePopupsOverWindow(g.NavWindow, false); - - // [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. - UpdateDebugToolItemPicker(); - - // Create implicit/fallback window - which we will only render it if the user has added something to it. - // We don't use "Debug" to avoid colliding with user trying to create a "Debug" window with custom flags. - // This fallback is particularly important as it avoid ImGui:: calls from crashing. - g.WithinFrameScopeWithImplicitWindow = true; - SetNextWindowSize(ImVec2(400, 400), ImGuiCond_FirstUseEver); - Begin("Debug##Default"); - IM_ASSERT(g.CurrentWindow->IsFallbackWindow == true); - - CallContextHooks(&g, ImGuiContextHookType_NewFramePost); -} - -// [DEBUG] Item picker tool - start with DebugStartItemPicker() - useful to visually select an item and break into its call-stack. -void ImGui::UpdateDebugToolItemPicker() -{ - ImGuiContext& g = *GImGui; - g.DebugItemPickerBreakId = 0; - if (g.DebugItemPickerActive) - { - const ImGuiID hovered_id = g.HoveredIdPreviousFrame; - ImGui::SetMouseCursor(ImGuiMouseCursor_Hand); - if (ImGui::IsKeyPressedMap(ImGuiKey_Escape)) - g.DebugItemPickerActive = false; - if (ImGui::IsMouseClicked(0) && hovered_id) - { - g.DebugItemPickerBreakId = hovered_id; - g.DebugItemPickerActive = false; - } - ImGui::SetNextWindowBgAlpha(0.60f); - ImGui::BeginTooltip(); - ImGui::Text("HoveredId: 0x%08X", hovered_id); - ImGui::Text("Press ESC to abort picking."); - ImGui::TextColored(GetStyleColorVec4(hovered_id ? ImGuiCol_Text : ImGuiCol_TextDisabled), "Click to break in debugger!"); - ImGui::EndTooltip(); - } -} - -void ImGui::Initialize(ImGuiContext* context) -{ - ImGuiContext& g = *context; - IM_ASSERT(!g.Initialized && !g.SettingsLoaded); - - // Add .ini handle for ImGuiWindow type - { - ImGuiSettingsHandler ini_handler; - ini_handler.TypeName = "Window"; - ini_handler.TypeHash = ImHashStr("Window"); - ini_handler.ClearAllFn = WindowSettingsHandler_ClearAll; - ini_handler.ReadOpenFn = WindowSettingsHandler_ReadOpen; - ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine; - ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll; - ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll; - g.SettingsHandlers.push_back(ini_handler); - } - -#ifdef IMGUI_HAS_TABLE - // Add .ini handle for ImGuiTable type - TableSettingsInstallHandler(context); -#endif // #ifdef IMGUI_HAS_TABLE - - // Create default viewport - ImGuiViewportP* viewport = IM_NEW(ImGuiViewportP)(); - g.Viewports.push_back(viewport); - -#ifdef IMGUI_HAS_DOCK -#endif // #ifdef IMGUI_HAS_DOCK - - g.Initialized = true; -} - -// This function is merely here to free heap allocations. -void ImGui::Shutdown(ImGuiContext* context) -{ - // The fonts atlas can be used prior to calling NewFrame(), so we clear it even if g.Initialized is FALSE (which would happen if we never called NewFrame) - ImGuiContext& g = *context; - if (g.IO.Fonts && g.FontAtlasOwnedByContext) - { - g.IO.Fonts->Locked = false; - IM_DELETE(g.IO.Fonts); - } - g.IO.Fonts = NULL; - - // Cleanup of other data are conditional on actually having initialized Dear ImGui. - if (!g.Initialized) - return; - - // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file) - if (g.SettingsLoaded && g.IO.IniFilename != NULL) - { - ImGuiContext* backup_context = GImGui; - SetCurrentContext(&g); - SaveIniSettingsToDisk(g.IO.IniFilename); - SetCurrentContext(backup_context); - } - - CallContextHooks(&g, ImGuiContextHookType_Shutdown); - - // Clear everything else - for (int i = 0; i < g.Windows.Size; i++) - IM_DELETE(g.Windows[i]); - g.Windows.clear(); - g.WindowsFocusOrder.clear(); - g.WindowsTempSortBuffer.clear(); - g.CurrentWindow = NULL; - g.CurrentWindowStack.clear(); - g.WindowsById.Clear(); - g.NavWindow = NULL; - g.HoveredWindow = g.HoveredWindowUnderMovingWindow = NULL; - g.ActiveIdWindow = g.ActiveIdPreviousFrameWindow = NULL; - g.MovingWindow = NULL; - g.ColorStack.clear(); - g.StyleVarStack.clear(); - g.FontStack.clear(); - g.OpenPopupStack.clear(); - g.BeginPopupStack.clear(); - - for (int i = 0; i < g.Viewports.Size; i++) - IM_DELETE(g.Viewports[i]); - g.Viewports.clear(); - - g.TabBars.Clear(); - g.CurrentTabBarStack.clear(); - g.ShrinkWidthBuffer.clear(); - - g.Tables.Clear(); - g.CurrentTableStack.clear(); - g.DrawChannelsTempMergeBuffer.clear(); - - g.ClipboardHandlerData.clear(); - g.MenusIdSubmittedThisFrame.clear(); - g.InputTextState.ClearFreeMemory(); - - g.SettingsWindows.clear(); - g.SettingsHandlers.clear(); - - if (g.LogFile) - { -#ifndef IMGUI_DISABLE_TTY_FUNCTIONS - if (g.LogFile != stdout) -#endif - ImFileClose(g.LogFile); - g.LogFile = NULL; - } - g.LogBuffer.clear(); - - g.Initialized = false; -} - -// FIXME: Add a more explicit sort order in the window structure. -static int IMGUI_CDECL ChildWindowComparer(const void* lhs, const void* rhs) -{ - const ImGuiWindow* const a = *(const ImGuiWindow* const *)lhs; - const ImGuiWindow* const b = *(const ImGuiWindow* const *)rhs; - if (int d = (a->Flags & ImGuiWindowFlags_Popup) - (b->Flags & ImGuiWindowFlags_Popup)) - return d; - if (int d = (a->Flags & ImGuiWindowFlags_Tooltip) - (b->Flags & ImGuiWindowFlags_Tooltip)) - return d; - return (a->BeginOrderWithinParent - b->BeginOrderWithinParent); -} - -static void AddWindowToSortBuffer(ImVector* out_sorted_windows, ImGuiWindow* window) -{ - out_sorted_windows->push_back(window); - if (window->Active) - { - int count = window->DC.ChildWindows.Size; - if (count > 1) - ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer); - for (int i = 0; i < count; i++) - { - ImGuiWindow* child = window->DC.ChildWindows[i]; - if (child->Active) - AddWindowToSortBuffer(out_sorted_windows, child); - } - } -} - -static void AddDrawListToDrawData(ImVector* out_list, ImDrawList* draw_list) -{ - // Remove trailing command if unused. - // Technically we could return directly instead of popping, but this make things looks neat in Metrics/Debugger window as well. - draw_list->_PopUnusedDrawCmd(); - if (draw_list->CmdBuffer.Size == 0) - return; - - // Draw list sanity check. Detect mismatch between PrimReserve() calls and incrementing _VtxCurrentIdx, _VtxWritePtr etc. - // May trigger for you if you are using PrimXXX functions incorrectly. - IM_ASSERT(draw_list->VtxBuffer.Size == 0 || draw_list->_VtxWritePtr == draw_list->VtxBuffer.Data + draw_list->VtxBuffer.Size); - IM_ASSERT(draw_list->IdxBuffer.Size == 0 || draw_list->_IdxWritePtr == draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size); - if (!(draw_list->Flags & ImDrawListFlags_AllowVtxOffset)) - IM_ASSERT((int)draw_list->_VtxCurrentIdx == draw_list->VtxBuffer.Size); - - // Check that draw_list doesn't use more vertices than indexable (default ImDrawIdx = unsigned short = 2 bytes = 64K vertices per ImDrawList = per window) - // If this assert triggers because you are drawing lots of stuff manually: - // - First, make sure you are coarse clipping yourself and not trying to draw many things outside visible bounds. - // Be mindful that the ImDrawList API doesn't filter vertices. Use the Metrics/Debugger window to inspect draw list contents. - // - If you want large meshes with more than 64K vertices, you can either: - // (A) Handle the ImDrawCmd::VtxOffset value in your renderer backend, and set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset'. - // Most example backends already support this from 1.71. Pre-1.71 backends won't. - // Some graphics API such as GL ES 1/2 don't have a way to offset the starting vertex so it is not supported for them. - // (B) Or handle 32-bit indices in your renderer backend, and uncomment '#define ImDrawIdx unsigned int' line in imconfig.h. - // Most example backends already support this. For example, the OpenGL example code detect index size at compile-time: - // glDrawElements(GL_TRIANGLES, (GLsizei)pcmd->ElemCount, sizeof(ImDrawIdx) == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT, idx_buffer_offset); - // Your own engine or render API may use different parameters or function calls to specify index sizes. - // 2 and 4 bytes indices are generally supported by most graphics API. - // - If for some reason neither of those solutions works for you, a workaround is to call BeginChild()/EndChild() before reaching - // the 64K limit to split your draw commands in multiple draw lists. - if (sizeof(ImDrawIdx) == 2) - IM_ASSERT(draw_list->_VtxCurrentIdx < (1 << 16) && "Too many vertices in ImDrawList using 16-bit indices. Read comment above"); - - out_list->push_back(draw_list); -} - -static void AddWindowToDrawData(ImGuiWindow* window, int layer) -{ - ImGuiContext& g = *GImGui; - ImGuiViewportP* viewport = g.Viewports[0]; - g.IO.MetricsRenderWindows++; - AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[layer], window->DrawList); - for (int i = 0; i < window->DC.ChildWindows.Size; i++) - { - ImGuiWindow* child = window->DC.ChildWindows[i]; - if (IsWindowActiveAndVisible(child)) // Clipped children may have been marked not active - AddWindowToDrawData(child, layer); - } -} - -// Layer is locked for the root window, however child windows may use a different viewport (e.g. extruding menu) -static void AddRootWindowToDrawData(ImGuiWindow* window) -{ - int layer = (window->Flags & ImGuiWindowFlags_Tooltip) ? 1 : 0; - AddWindowToDrawData(window, layer); -} - -void ImDrawDataBuilder::FlattenIntoSingleLayer() -{ - int n = Layers[0].Size; - int size = n; - for (int i = 1; i < IM_ARRAYSIZE(Layers); i++) - size += Layers[i].Size; - Layers[0].resize(size); - for (int layer_n = 1; layer_n < IM_ARRAYSIZE(Layers); layer_n++) - { - ImVector& layer = Layers[layer_n]; - if (layer.empty()) - continue; - memcpy(&Layers[0][n], &layer[0], layer.Size * sizeof(ImDrawList*)); - n += layer.Size; - layer.resize(0); - } -} - -static void SetupViewportDrawData(ImGuiViewportP* viewport, ImVector* draw_lists) -{ - ImGuiIO& io = ImGui::GetIO(); - ImDrawData* draw_data = &viewport->DrawDataP; - draw_data->Valid = true; - draw_data->CmdLists = (draw_lists->Size > 0) ? draw_lists->Data : NULL; - draw_data->CmdListsCount = draw_lists->Size; - draw_data->TotalVtxCount = draw_data->TotalIdxCount = 0; - draw_data->DisplayPos = viewport->Pos; - draw_data->DisplaySize = viewport->Size; - draw_data->FramebufferScale = io.DisplayFramebufferScale; - for (int n = 0; n < draw_lists->Size; n++) - { - draw_data->TotalVtxCount += draw_lists->Data[n]->VtxBuffer.Size; - draw_data->TotalIdxCount += draw_lists->Data[n]->IdxBuffer.Size; - } -} - -// Push a clipping rectangle for both ImGui logic (hit-testing etc.) and low-level ImDrawList rendering. -// - When using this function it is sane to ensure that float are perfectly rounded to integer values, -// so that e.g. (int)(max.x-min.x) in user's render produce correct result. -// - If the code here changes, may need to update code of functions like NextColumn() and PushColumnClipRect(): -// some frequently called functions which to modify both channels and clipping simultaneously tend to use the -// more specialized SetWindowClipRectBeforeSetChannel() to avoid extraneous updates of underlying ImDrawCmds. -void ImGui::PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect) -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DrawList->PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect); - window->ClipRect = window->DrawList->_ClipRectStack.back(); -} - -void ImGui::PopClipRect() -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DrawList->PopClipRect(); - window->ClipRect = window->DrawList->_ClipRectStack.back(); -} - -// This is normally called by Render(). You may want to call it directly if you want to avoid calling Render() but the gain will be very minimal. -void ImGui::EndFrame() -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.Initialized); - - // Don't process EndFrame() multiple times. - if (g.FrameCountEnded == g.FrameCount) - return; - IM_ASSERT(g.WithinFrameScope && "Forgot to call ImGui::NewFrame()?"); - - CallContextHooks(&g, ImGuiContextHookType_EndFramePre); - - ErrorCheckEndFrameSanityChecks(); - - // Notify OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME) - if (g.IO.ImeSetInputScreenPosFn && (g.PlatformImeLastPos.x == FLT_MAX || ImLengthSqr(g.PlatformImeLastPos - g.PlatformImePos) > 0.0001f)) - { - g.IO.ImeSetInputScreenPosFn((int)g.PlatformImePos.x, (int)g.PlatformImePos.y); - g.PlatformImeLastPos = g.PlatformImePos; - } - - // Hide implicit/fallback "Debug" window if it hasn't been used - g.WithinFrameScopeWithImplicitWindow = false; - if (g.CurrentWindow && !g.CurrentWindow->WriteAccessed) - g.CurrentWindow->Active = false; - End(); - - // Update navigation: CTRL+Tab, wrap-around requests - NavEndFrame(); - - // Drag and Drop: Elapse payload (if delivered, or if source stops being submitted) - if (g.DragDropActive) - { - bool is_delivered = g.DragDropPayload.Delivery; - bool is_elapsed = (g.DragDropPayload.DataFrameCount + 1 < g.FrameCount) && ((g.DragDropSourceFlags & ImGuiDragDropFlags_SourceAutoExpirePayload) || !IsMouseDown(g.DragDropMouseButton)); - if (is_delivered || is_elapsed) - ClearDragDrop(); - } - - // Drag and Drop: Fallback for source tooltip. This is not ideal but better than nothing. - if (g.DragDropActive && g.DragDropSourceFrameCount < g.FrameCount && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) - { - g.DragDropWithinSource = true; - SetTooltip("..."); - g.DragDropWithinSource = false; - } - - // End frame - g.WithinFrameScope = false; - g.FrameCountEnded = g.FrameCount; - - // Initiate moving window + handle left-click and right-click focus - UpdateMouseMovingWindowEndFrame(); - - // Sort the window list so that all child windows are after their parent - // We cannot do that on FocusWindow() because children may not exist yet - g.WindowsTempSortBuffer.resize(0); - g.WindowsTempSortBuffer.reserve(g.Windows.Size); - for (int i = 0; i != g.Windows.Size; i++) - { - ImGuiWindow* window = g.Windows[i]; - if (window->Active && (window->Flags & ImGuiWindowFlags_ChildWindow)) // if a child is active its parent will add it - continue; - AddWindowToSortBuffer(&g.WindowsTempSortBuffer, window); - } - - // This usually assert if there is a mismatch between the ImGuiWindowFlags_ChildWindow / ParentWindow values and DC.ChildWindows[] in parents, aka we've done something wrong. - IM_ASSERT(g.Windows.Size == g.WindowsTempSortBuffer.Size); - g.Windows.swap(g.WindowsTempSortBuffer); - g.IO.MetricsActiveWindows = g.WindowsActiveCount; - - // Unlock font atlas - g.IO.Fonts->Locked = false; - - // Clear Input data for next frame - g.IO.MouseWheel = g.IO.MouseWheelH = 0.0f; - g.IO.InputQueueCharacters.resize(0); - memset(g.IO.NavInputs, 0, sizeof(g.IO.NavInputs)); - - CallContextHooks(&g, ImGuiContextHookType_EndFramePost); -} - -void ImGui::Render() -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.Initialized); - - if (g.FrameCountEnded != g.FrameCount) - EndFrame(); - g.FrameCountRendered = g.FrameCount; - g.IO.MetricsRenderWindows = 0; - - CallContextHooks(&g, ImGuiContextHookType_RenderPre); - - // Add background ImDrawList (for each active viewport) - for (int n = 0; n != g.Viewports.Size; n++) - { - ImGuiViewportP* viewport = g.Viewports[n]; - viewport->DrawDataBuilder.Clear(); - if (viewport->DrawLists[0] != NULL) - AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[0], GetBackgroundDrawList(viewport)); - } - - // Add ImDrawList to render - ImGuiWindow* windows_to_render_top_most[2]; - windows_to_render_top_most[0] = (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus)) ? g.NavWindowingTarget->RootWindow : NULL; - windows_to_render_top_most[1] = (g.NavWindowingTarget ? g.NavWindowingListWindow : NULL); - for (int n = 0; n != g.Windows.Size; n++) - { - ImGuiWindow* window = g.Windows[n]; - if (IsWindowActiveAndVisible(window) && (window->Flags & ImGuiWindowFlags_ChildWindow) == 0 && window != windows_to_render_top_most[0] && window != windows_to_render_top_most[1]) - AddRootWindowToDrawData(window); - } - for (int n = 0; n < IM_ARRAYSIZE(windows_to_render_top_most); n++) - if (windows_to_render_top_most[n] && IsWindowActiveAndVisible(windows_to_render_top_most[n])) // NavWindowingTarget is always temporarily displayed as the top-most window - AddRootWindowToDrawData(windows_to_render_top_most[n]); - - // Setup ImDrawData structures for end-user - g.IO.MetricsRenderVertices = g.IO.MetricsRenderIndices = 0; - for (int n = 0; n < g.Viewports.Size; n++) - { - ImGuiViewportP* viewport = g.Viewports[n]; - viewport->DrawDataBuilder.FlattenIntoSingleLayer(); - - // Draw software mouse cursor if requested by io.MouseDrawCursor flag - if (g.IO.MouseDrawCursor) - RenderMouseCursor(GetForegroundDrawList(viewport), g.IO.MousePos, g.Style.MouseCursorScale, g.MouseCursor, IM_COL32_WHITE, IM_COL32_BLACK, IM_COL32(0, 0, 0, 48)); - - // Add foreground ImDrawList (for each active viewport) - if (viewport->DrawLists[1] != NULL) - AddDrawListToDrawData(&viewport->DrawDataBuilder.Layers[0], GetForegroundDrawList(viewport)); - - SetupViewportDrawData(viewport, &viewport->DrawDataBuilder.Layers[0]); - ImDrawData* draw_data = &viewport->DrawDataP; - g.IO.MetricsRenderVertices += draw_data->TotalVtxCount; - g.IO.MetricsRenderIndices += draw_data->TotalIdxCount; - } - - CallContextHooks(&g, ImGuiContextHookType_RenderPost); -} - -// Calculate text size. Text can be multi-line. Optionally ignore text after a ## marker. -// CalcTextSize("") should return ImVec2(0.0f, g.FontSize) -ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width) -{ - ImGuiContext& g = *GImGui; - - const char* text_display_end; - if (hide_text_after_double_hash) - text_display_end = FindRenderedTextEnd(text, text_end); // Hide anything after a '##' string - else - text_display_end = text_end; - - ImFont* font = g.Font; - const float font_size = g.FontSize; - if (text == text_display_end) - return ImVec2(0.0f, font_size); - ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL); - - // Round - // FIXME: This has been here since Dec 2015 (7b0bf230) but down the line we want this out. - // FIXME: Investigate using ceilf or e.g. - // - https://git.musl-libc.org/cgit/musl/tree/src/math/ceilf.c - // - https://embarkstudios.github.io/rust-gpu/api/src/libm/math/ceilf.rs.html - text_size.x = IM_FLOOR(text_size.x + 0.99999f); - - return text_size; -} - -// Find window given position, search front-to-back -// FIXME: Note that we have an inconsequential lag here: OuterRectClipped is updated in Begin(), so windows moved programmatically -// with SetWindowPos() and not SetNextWindowPos() will have that rectangle lagging by a frame at the time FindHoveredWindow() is -// called, aka before the next Begin(). Moving window isn't affected. -static void FindHoveredWindow() -{ - ImGuiContext& g = *GImGui; - - ImGuiWindow* hovered_window = NULL; - ImGuiWindow* hovered_window_ignoring_moving_window = NULL; - if (g.MovingWindow && !(g.MovingWindow->Flags & ImGuiWindowFlags_NoMouseInputs)) - hovered_window = g.MovingWindow; - - ImVec2 padding_regular = g.Style.TouchExtraPadding; - ImVec2 padding_for_resize_from_edges = g.IO.ConfigWindowsResizeFromEdges ? ImMax(g.Style.TouchExtraPadding, ImVec2(WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS, WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS)) : padding_regular; - for (int i = g.Windows.Size - 1; i >= 0; i--) - { - ImGuiWindow* window = g.Windows[i]; - if (!window->Active || window->Hidden) - continue; - if (window->Flags & ImGuiWindowFlags_NoMouseInputs) - continue; - - // Using the clipped AABB, a child window will typically be clipped by its parent (not always) - ImRect bb(window->OuterRectClipped); - if (window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize)) - bb.Expand(padding_regular); - else - bb.Expand(padding_for_resize_from_edges); - if (!bb.Contains(g.IO.MousePos)) - continue; - - // Support for one rectangular hole in any given window - // FIXME: Consider generalizing hit-testing override (with more generic data, callback, etc.) (#1512) - if (window->HitTestHoleSize.x != 0) - { - ImVec2 hole_pos(window->Pos.x + (float)window->HitTestHoleOffset.x, window->Pos.y + (float)window->HitTestHoleOffset.y); - ImVec2 hole_size((float)window->HitTestHoleSize.x, (float)window->HitTestHoleSize.y); - if (ImRect(hole_pos, hole_pos + hole_size).Contains(g.IO.MousePos)) - continue; - } - - if (hovered_window == NULL) - hovered_window = window; - if (hovered_window_ignoring_moving_window == NULL && (!g.MovingWindow || window->RootWindow != g.MovingWindow->RootWindow)) - hovered_window_ignoring_moving_window = window; - if (hovered_window && hovered_window_ignoring_moving_window) - break; - } - - g.HoveredWindow = hovered_window; - g.HoveredWindowUnderMovingWindow = hovered_window_ignoring_moving_window; -} - -// Test if mouse cursor is hovering given rectangle -// NB- Rectangle is clipped by our current clip setting -// NB- Expand the rectangle to be generous on imprecise inputs systems (g.Style.TouchExtraPadding) -bool ImGui::IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip) -{ - ImGuiContext& g = *GImGui; - - // Clip - ImRect rect_clipped(r_min, r_max); - if (clip) - rect_clipped.ClipWith(g.CurrentWindow->ClipRect); - - // Expand for touch input - const ImRect rect_for_touch(rect_clipped.Min - g.Style.TouchExtraPadding, rect_clipped.Max + g.Style.TouchExtraPadding); - if (!rect_for_touch.Contains(g.IO.MousePos)) - return false; - return true; -} - -int ImGui::GetKeyIndex(ImGuiKey imgui_key) -{ - IM_ASSERT(imgui_key >= 0 && imgui_key < ImGuiKey_COUNT); - ImGuiContext& g = *GImGui; - return g.IO.KeyMap[imgui_key]; -} - -// Note that dear imgui doesn't know the semantic of each entry of io.KeysDown[]! -// Use your own indices/enums according to how your backend/engine stored them into io.KeysDown[]! -bool ImGui::IsKeyDown(int user_key_index) -{ - if (user_key_index < 0) - return false; - ImGuiContext& g = *GImGui; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - return g.IO.KeysDown[user_key_index]; -} - -// t0 = previous time (e.g.: g.Time - g.IO.DeltaTime) -// t1 = current time (e.g.: g.Time) -// An event is triggered at: -// t = 0.0f t = repeat_delay, t = repeat_delay + repeat_rate*N -int ImGui::CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate) -{ - if (t1 == 0.0f) - return 1; - if (t0 >= t1) - return 0; - if (repeat_rate <= 0.0f) - return (t0 < repeat_delay) && (t1 >= repeat_delay); - const int count_t0 = (t0 < repeat_delay) ? -1 : (int)((t0 - repeat_delay) / repeat_rate); - const int count_t1 = (t1 < repeat_delay) ? -1 : (int)((t1 - repeat_delay) / repeat_rate); - const int count = count_t1 - count_t0; - return count; -} - -int ImGui::GetKeyPressedAmount(int key_index, float repeat_delay, float repeat_rate) -{ - ImGuiContext& g = *GImGui; - if (key_index < 0) - return 0; - IM_ASSERT(key_index >= 0 && key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - const float t = g.IO.KeysDownDuration[key_index]; - return CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, repeat_delay, repeat_rate); -} - -bool ImGui::IsKeyPressed(int user_key_index, bool repeat) -{ - ImGuiContext& g = *GImGui; - if (user_key_index < 0) - return false; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - const float t = g.IO.KeysDownDuration[user_key_index]; - if (t == 0.0f) - return true; - if (repeat && t > g.IO.KeyRepeatDelay) - return GetKeyPressedAmount(user_key_index, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate) > 0; - return false; -} - -bool ImGui::IsKeyReleased(int user_key_index) -{ - ImGuiContext& g = *GImGui; - if (user_key_index < 0) return false; - IM_ASSERT(user_key_index >= 0 && user_key_index < IM_ARRAYSIZE(g.IO.KeysDown)); - return g.IO.KeysDownDurationPrev[user_key_index] >= 0.0f && !g.IO.KeysDown[user_key_index]; -} - -bool ImGui::IsMouseDown(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseDown[button]; -} - -bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - const float t = g.IO.MouseDownDuration[button]; - if (t == 0.0f) - return true; - - if (repeat && t > g.IO.KeyRepeatDelay) - { - // FIXME: 2019/05/03: Our old repeat code was wrong here and led to doubling the repeat rate, which made it an ok rate for repeat on mouse hold. - int amount = CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay, g.IO.KeyRepeatRate * 0.50f); - if (amount > 0) - return true; - } - return false; -} - -bool ImGui::IsMouseReleased(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseReleased[button]; -} - -bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - return g.IO.MouseDoubleClicked[button]; -} - -// Return if a mouse click/drag went past the given threshold. Valid to call during the MouseReleased frame. -// [Internal] This doesn't test if the button is pressed -bool ImGui::IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (lock_threshold < 0.0f) - lock_threshold = g.IO.MouseDragThreshold; - return g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold; -} - -bool ImGui::IsMouseDragging(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (!g.IO.MouseDown[button]) - return false; - return IsMouseDragPastThreshold(button, lock_threshold); -} - -ImVec2 ImGui::GetMousePos() -{ - ImGuiContext& g = *GImGui; - return g.IO.MousePos; -} - -// NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed! -ImVec2 ImGui::GetMousePosOnOpeningCurrentPopup() -{ - ImGuiContext& g = *GImGui; - if (g.BeginPopupStack.Size > 0) - return g.OpenPopupStack[g.BeginPopupStack.Size - 1].OpenMousePos; - return g.IO.MousePos; -} - -// We typically use ImVec2(-FLT_MAX,-FLT_MAX) to denote an invalid mouse position. -bool ImGui::IsMousePosValid(const ImVec2* mouse_pos) -{ - // The assert is only to silence a false-positive in XCode Static Analysis. - // Because GImGui is not dereferenced in every code path, the static analyzer assume that it may be NULL (which it doesn't for other functions). - IM_ASSERT(GImGui != NULL); - const float MOUSE_INVALID = -256000.0f; - ImVec2 p = mouse_pos ? *mouse_pos : GImGui->IO.MousePos; - return p.x >= MOUSE_INVALID && p.y >= MOUSE_INVALID; -} - -bool ImGui::IsAnyMouseDown() -{ - ImGuiContext& g = *GImGui; - for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) - if (g.IO.MouseDown[n]) - return true; - return false; -} - -// Return the delta from the initial clicking position while the mouse button is clicked or was just released. -// This is locked and return 0.0f until the mouse moves past a distance threshold at least once. -// NB: This is only valid if IsMousePosValid(). backends in theory should always keep mouse position valid when dragging even outside the client window. -ImVec2 ImGui::GetMouseDragDelta(ImGuiMouseButton button, float lock_threshold) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - if (lock_threshold < 0.0f) - lock_threshold = g.IO.MouseDragThreshold; - if (g.IO.MouseDown[button] || g.IO.MouseReleased[button]) - if (g.IO.MouseDragMaxDistanceSqr[button] >= lock_threshold * lock_threshold) - if (IsMousePosValid(&g.IO.MousePos) && IsMousePosValid(&g.IO.MouseClickedPos[button])) - return g.IO.MousePos - g.IO.MouseClickedPos[button]; - return ImVec2(0.0f, 0.0f); -} - -void ImGui::ResetMouseDragDelta(ImGuiMouseButton button) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown)); - // NB: We don't need to reset g.IO.MouseDragMaxDistanceSqr - g.IO.MouseClickedPos[button] = g.IO.MousePos; -} - -ImGuiMouseCursor ImGui::GetMouseCursor() -{ - return GImGui->MouseCursor; -} - -void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type) -{ - GImGui->MouseCursor = cursor_type; -} - -void ImGui::CaptureKeyboardFromApp(bool capture) -{ - GImGui->WantCaptureKeyboardNextFrame = capture ? 1 : 0; -} - -void ImGui::CaptureMouseFromApp(bool capture) -{ - GImGui->WantCaptureMouseNextFrame = capture ? 1 : 0; -} - -bool ImGui::IsItemActive() -{ - ImGuiContext& g = *GImGui; - if (g.ActiveId) - { - ImGuiWindow* window = g.CurrentWindow; - return g.ActiveId == window->DC.LastItemId; - } - return false; -} - -bool ImGui::IsItemActivated() -{ - ImGuiContext& g = *GImGui; - if (g.ActiveId) - { - ImGuiWindow* window = g.CurrentWindow; - if (g.ActiveId == window->DC.LastItemId && g.ActiveIdPreviousFrame != window->DC.LastItemId) - return true; - } - return false; -} - -bool ImGui::IsItemDeactivated() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HasDeactivated) - return (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_Deactivated) != 0; - return (g.ActiveIdPreviousFrame == window->DC.LastItemId && g.ActiveIdPreviousFrame != 0 && g.ActiveId != window->DC.LastItemId); -} - -bool ImGui::IsItemDeactivatedAfterEdit() -{ - ImGuiContext& g = *GImGui; - return IsItemDeactivated() && (g.ActiveIdPreviousFrameHasBeenEditedBefore || (g.ActiveId == 0 && g.ActiveIdHasBeenEditedBefore)); -} - -// == GetItemID() == GetFocusID() -bool ImGui::IsItemFocused() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - if (g.NavId != window->DC.LastItemId || g.NavId == 0) - return false; - return true; -} - -bool ImGui::IsItemClicked(ImGuiMouseButton mouse_button) -{ - return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); -} - -bool ImGui::IsItemToggledOpen() -{ - ImGuiContext& g = *GImGui; - return (g.CurrentWindow->DC.LastItemStatusFlags & ImGuiItemStatusFlags_ToggledOpen) ? true : false; -} - -bool ImGui::IsItemToggledSelection() -{ - ImGuiContext& g = *GImGui; - return (g.CurrentWindow->DC.LastItemStatusFlags & ImGuiItemStatusFlags_ToggledSelection) ? true : false; -} - -bool ImGui::IsAnyItemHovered() -{ - ImGuiContext& g = *GImGui; - return g.HoveredId != 0 || g.HoveredIdPreviousFrame != 0; -} - -bool ImGui::IsAnyItemActive() -{ - ImGuiContext& g = *GImGui; - return g.ActiveId != 0; -} - -bool ImGui::IsAnyItemFocused() -{ - ImGuiContext& g = *GImGui; - return g.NavId != 0 && !g.NavDisableHighlight; -} - -bool ImGui::IsItemVisible() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->ClipRect.Overlaps(window->DC.LastItemRect); -} - -bool ImGui::IsItemEdited() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_Edited) != 0; -} - -// Allow last item to be overlapped by a subsequent item. Both may be activated during the same frame before the later one takes priority. -// FIXME: Although this is exposed, its interaction and ideal idiom with using ImGuiButtonFlags_AllowItemOverlap flag are extremely confusing, need rework. -void ImGui::SetItemAllowOverlap() -{ - ImGuiContext& g = *GImGui; - ImGuiID id = g.CurrentWindow->DC.LastItemId; - if (g.HoveredId == id) - g.HoveredIdAllowOverlap = true; - if (g.ActiveId == id) - g.ActiveIdAllowOverlap = true; -} - -void ImGui::SetItemUsingMouseWheel() -{ - ImGuiContext& g = *GImGui; - ImGuiID id = g.CurrentWindow->DC.LastItemId; - if (g.HoveredId == id) - g.HoveredIdUsingMouseWheel = true; - if (g.ActiveId == id) - g.ActiveIdUsingMouseWheel = true; -} - -ImVec2 ImGui::GetItemRectMin() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.LastItemRect.Min; -} - -ImVec2 ImGui::GetItemRectMax() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.LastItemRect.Max; -} - -ImVec2 ImGui::GetItemRectSize() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.LastItemRect.GetSize(); -} - -bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* parent_window = g.CurrentWindow; - - flags |= ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_ChildWindow; - flags |= (parent_window->Flags & ImGuiWindowFlags_NoMove); // Inherit the NoMove flag - - // Size - const ImVec2 content_avail = GetContentRegionAvail(); - ImVec2 size = ImFloor(size_arg); - const int auto_fit_axises = ((size.x == 0.0f) ? (1 << ImGuiAxis_X) : 0x00) | ((size.y == 0.0f) ? (1 << ImGuiAxis_Y) : 0x00); - if (size.x <= 0.0f) - size.x = ImMax(content_avail.x + size.x, 4.0f); // Arbitrary minimum child size (0.0f causing too much issues) - if (size.y <= 0.0f) - size.y = ImMax(content_avail.y + size.y, 4.0f); - SetNextWindowSize(size); - - // Build up name. If you need to append to a same child from multiple location in the ID stack, use BeginChild(ImGuiID id) with a stable value. - if (name) - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%s/%s_%08X", parent_window->Name, name, id); - else - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%s/%08X", parent_window->Name, id); - - const float backup_border_size = g.Style.ChildBorderSize; - if (!border) - g.Style.ChildBorderSize = 0.0f; - bool ret = Begin(g.TempBuffer, NULL, flags); - g.Style.ChildBorderSize = backup_border_size; - - ImGuiWindow* child_window = g.CurrentWindow; - child_window->ChildId = id; - child_window->AutoFitChildAxises = (ImS8)auto_fit_axises; - - // Set the cursor to handle case where the user called SetNextWindowPos()+BeginChild() manually. - // While this is not really documented/defined, it seems that the expected thing to do. - if (child_window->BeginCount == 1) - parent_window->DC.CursorPos = child_window->Pos; - - // Process navigation-in immediately so NavInit can run on first frame - if (g.NavActivateId == id && !(flags & ImGuiWindowFlags_NavFlattened) && (child_window->DC.NavLayerActiveMask != 0 || child_window->DC.NavHasScroll)) - { - FocusWindow(child_window); - NavInitWindow(child_window, false); - SetActiveID(id + 1, child_window); // Steal ActiveId with another arbitrary id so that key-press won't activate child item - g.ActiveIdSource = ImGuiInputSource_Nav; - } - return ret; -} - -bool ImGui::BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - return BeginChildEx(str_id, window->GetID(str_id), size_arg, border, extra_flags); -} - -bool ImGui::BeginChild(ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags) -{ - IM_ASSERT(id != 0); - return BeginChildEx(NULL, id, size_arg, border, extra_flags); -} - -void ImGui::EndChild() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - IM_ASSERT(g.WithinEndChild == false); - IM_ASSERT(window->Flags & ImGuiWindowFlags_ChildWindow); // Mismatched BeginChild()/EndChild() calls - - g.WithinEndChild = true; - if (window->BeginCount > 1) - { - End(); - } - else - { - ImVec2 sz = window->Size; - if (window->AutoFitChildAxises & (1 << ImGuiAxis_X)) // Arbitrary minimum zero-ish child size of 4.0f causes less trouble than a 0.0f - sz.x = ImMax(4.0f, sz.x); - if (window->AutoFitChildAxises & (1 << ImGuiAxis_Y)) - sz.y = ImMax(4.0f, sz.y); - End(); - - ImGuiWindow* parent_window = g.CurrentWindow; - ImRect bb(parent_window->DC.CursorPos, parent_window->DC.CursorPos + sz); - ItemSize(sz); - if ((window->DC.NavLayerActiveMask != 0 || window->DC.NavHasScroll) && !(window->Flags & ImGuiWindowFlags_NavFlattened)) - { - ItemAdd(bb, window->ChildId); - RenderNavHighlight(bb, window->ChildId); - - // When browsing a window that has no activable items (scroll only) we keep a highlight on the child - if (window->DC.NavLayerActiveMask == 0 && window == g.NavWindow) - RenderNavHighlight(ImRect(bb.Min - ImVec2(2, 2), bb.Max + ImVec2(2, 2)), g.NavId, ImGuiNavHighlightFlags_TypeThin); - } - else - { - // Not navigable into - ItemAdd(bb, 0); - } - if (g.HoveredWindow == window) - parent_window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HoveredWindow; - } - g.WithinEndChild = false; - g.LogLinePosY = -FLT_MAX; // To enforce a carriage return -} - -// Helper to create a child window / scrolling region that looks like a normal widget frame. -bool ImGui::BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags extra_flags) -{ - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); - PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); - PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); - PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding); - bool ret = BeginChild(id, size, true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysUseWindowPadding | extra_flags); - PopStyleVar(3); - PopStyleColor(); - return ret; -} - -void ImGui::EndChildFrame() -{ - EndChild(); -} - -static void SetWindowConditionAllowFlags(ImGuiWindow* window, ImGuiCond flags, bool enabled) -{ - window->SetWindowPosAllowFlags = enabled ? (window->SetWindowPosAllowFlags | flags) : (window->SetWindowPosAllowFlags & ~flags); - window->SetWindowSizeAllowFlags = enabled ? (window->SetWindowSizeAllowFlags | flags) : (window->SetWindowSizeAllowFlags & ~flags); - window->SetWindowCollapsedAllowFlags = enabled ? (window->SetWindowCollapsedAllowFlags | flags) : (window->SetWindowCollapsedAllowFlags & ~flags); -} - -ImGuiWindow* ImGui::FindWindowByID(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - return (ImGuiWindow*)g.WindowsById.GetVoidPtr(id); -} - -ImGuiWindow* ImGui::FindWindowByName(const char* name) -{ - ImGuiID id = ImHashStr(name); - return FindWindowByID(id); -} - -static void ApplyWindowSettings(ImGuiWindow* window, ImGuiWindowSettings* settings) -{ - window->Pos = ImFloor(ImVec2(settings->Pos.x, settings->Pos.y)); - if (settings->Size.x > 0 && settings->Size.y > 0) - window->Size = window->SizeFull = ImFloor(ImVec2(settings->Size.x, settings->Size.y)); - window->Collapsed = settings->Collapsed; -} - -static ImGuiWindow* CreateNewWindow(const char* name, ImGuiWindowFlags flags) -{ - ImGuiContext& g = *GImGui; - //IMGUI_DEBUG_LOG("CreateNewWindow '%s', flags = 0x%08X\n", name, flags); - - // Create window the first time - ImGuiWindow* window = IM_NEW(ImGuiWindow)(&g, name); - window->Flags = flags; - g.WindowsById.SetVoidPtr(window->ID, window); - - // Default/arbitrary window position. Use SetNextWindowPos() with the appropriate condition flag to change the initial position of a window. - const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); - window->Pos = main_viewport->Pos + ImVec2(60, 60); - - // User can disable loading and saving of settings. Tooltip and child windows also don't store settings. - if (!(flags & ImGuiWindowFlags_NoSavedSettings)) - if (ImGuiWindowSettings* settings = ImGui::FindWindowSettings(window->ID)) - { - // Retrieve settings from .ini file - window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); - SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); - ApplyWindowSettings(window, settings); - } - window->DC.CursorStartPos = window->DC.CursorMaxPos = window->Pos; // So first call to CalcContentSize() doesn't return crazy values - - if ((flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) - { - window->AutoFitFramesX = window->AutoFitFramesY = 2; - window->AutoFitOnlyGrows = false; - } - else - { - if (window->Size.x <= 0.0f) - window->AutoFitFramesX = 2; - if (window->Size.y <= 0.0f) - window->AutoFitFramesY = 2; - window->AutoFitOnlyGrows = (window->AutoFitFramesX > 0) || (window->AutoFitFramesY > 0); - } - - g.WindowsFocusOrder.push_back(window); - if (flags & ImGuiWindowFlags_NoBringToFrontOnFocus) - g.Windows.push_front(window); // Quite slow but rare and only once - else - g.Windows.push_back(window); - return window; -} - -static ImVec2 CalcWindowSizeAfterConstraint(ImGuiWindow* window, const ImVec2& size_desired) -{ - ImGuiContext& g = *GImGui; - ImVec2 new_size = size_desired; - if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) - { - // Using -1,-1 on either X/Y axis to preserve the current size. - ImRect cr = g.NextWindowData.SizeConstraintRect; - new_size.x = (cr.Min.x >= 0 && cr.Max.x >= 0) ? ImClamp(new_size.x, cr.Min.x, cr.Max.x) : window->SizeFull.x; - new_size.y = (cr.Min.y >= 0 && cr.Max.y >= 0) ? ImClamp(new_size.y, cr.Min.y, cr.Max.y) : window->SizeFull.y; - if (g.NextWindowData.SizeCallback) - { - ImGuiSizeCallbackData data; - data.UserData = g.NextWindowData.SizeCallbackUserData; - data.Pos = window->Pos; - data.CurrentSize = window->SizeFull; - data.DesiredSize = new_size; - g.NextWindowData.SizeCallback(&data); - new_size = data.DesiredSize; - } - new_size.x = IM_FLOOR(new_size.x); - new_size.y = IM_FLOOR(new_size.y); - } - - // Minimum size - if (!(window->Flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysAutoResize))) - { - ImGuiWindow* window_for_height = window; - new_size = ImMax(new_size, g.Style.WindowMinSize); - new_size.y = ImMax(new_size.y, window_for_height->TitleBarHeight() + window_for_height->MenuBarHeight() + ImMax(0.0f, g.Style.WindowRounding - 1.0f)); // Reduce artifacts with very small windows - } - return new_size; -} - -static void CalcWindowContentSizes(ImGuiWindow* window, ImVec2* content_size_current, ImVec2* content_size_ideal) -{ - bool preserve_old_content_sizes = false; - if (window->Collapsed && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) - preserve_old_content_sizes = true; - else if (window->Hidden && window->HiddenFramesCannotSkipItems == 0 && window->HiddenFramesCanSkipItems > 0) - preserve_old_content_sizes = true; - if (preserve_old_content_sizes) - { - *content_size_current = window->ContentSize; - *content_size_ideal = window->ContentSizeIdeal; - return; - } - - content_size_current->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_FLOOR(window->DC.CursorMaxPos.x - window->DC.CursorStartPos.x); - content_size_current->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_FLOOR(window->DC.CursorMaxPos.y - window->DC.CursorStartPos.y); - content_size_ideal->x = (window->ContentSizeExplicit.x != 0.0f) ? window->ContentSizeExplicit.x : IM_FLOOR(ImMax(window->DC.CursorMaxPos.x, window->DC.IdealMaxPos.x) - window->DC.CursorStartPos.x); - content_size_ideal->y = (window->ContentSizeExplicit.y != 0.0f) ? window->ContentSizeExplicit.y : IM_FLOOR(ImMax(window->DC.CursorMaxPos.y, window->DC.IdealMaxPos.y) - window->DC.CursorStartPos.y); -} - -static ImVec2 CalcWindowAutoFitSize(ImGuiWindow* window, const ImVec2& size_contents) -{ - ImGuiContext& g = *GImGui; - ImGuiStyle& style = g.Style; - ImVec2 size_decorations = ImVec2(0.0f, window->TitleBarHeight() + window->MenuBarHeight()); - ImVec2 size_pad = window->WindowPadding * 2.0f; - ImVec2 size_desired = size_contents + size_pad + size_decorations; - if (window->Flags & ImGuiWindowFlags_Tooltip) - { - // Tooltip always resize - return size_desired; - } - else - { - // Maximum window size is determined by the viewport size or monitor size - const bool is_popup = (window->Flags & ImGuiWindowFlags_Popup) != 0; - const bool is_menu = (window->Flags & ImGuiWindowFlags_ChildMenu) != 0; - ImVec2 size_min = style.WindowMinSize; - if (is_popup || is_menu) // Popups and menus bypass style.WindowMinSize by default, but we give then a non-zero minimum size to facilitate understanding problematic cases (e.g. empty popups) - size_min = ImMin(size_min, ImVec2(4.0f, 4.0f)); - - // FIXME-VIEWPORT-WORKAREA: May want to use GetWorkSize() instead of Size depending on the type of windows? - ImVec2 avail_size = ImGui::GetMainViewport()->Size; - ImVec2 size_auto_fit = ImClamp(size_desired, size_min, ImMax(size_min, avail_size - style.DisplaySafeAreaPadding * 2.0f)); - - // When the window cannot fit all contents (either because of constraints, either because screen is too small), - // we are growing the size on the other axis to compensate for expected scrollbar. FIXME: Might turn bigger than ViewportSize-WindowPadding. - ImVec2 size_auto_fit_after_constraint = CalcWindowSizeAfterConstraint(window, size_auto_fit); - bool will_have_scrollbar_x = (size_auto_fit_after_constraint.x - size_pad.x - size_decorations.x < size_contents.x && !(window->Flags & ImGuiWindowFlags_NoScrollbar) && (window->Flags & ImGuiWindowFlags_HorizontalScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar); - bool will_have_scrollbar_y = (size_auto_fit_after_constraint.y - size_pad.y - size_decorations.y < size_contents.y && !(window->Flags & ImGuiWindowFlags_NoScrollbar)) || (window->Flags & ImGuiWindowFlags_AlwaysVerticalScrollbar); - if (will_have_scrollbar_x) - size_auto_fit.y += style.ScrollbarSize; - if (will_have_scrollbar_y) - size_auto_fit.x += style.ScrollbarSize; - return size_auto_fit; - } -} - -ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window) -{ - ImVec2 size_contents_current; - ImVec2 size_contents_ideal; - CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal); - ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal); - ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit); - return size_final; -} - -static ImGuiCol GetWindowBgColorIdxFromFlags(ImGuiWindowFlags flags) -{ - if (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup)) - return ImGuiCol_PopupBg; - if (flags & ImGuiWindowFlags_ChildWindow) - return ImGuiCol_ChildBg; - return ImGuiCol_WindowBg; -} - -static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size) -{ - ImVec2 pos_min = ImLerp(corner_target, window->Pos, corner_norm); // Expected window upper-left - ImVec2 pos_max = ImLerp(window->Pos + window->Size, corner_target, corner_norm); // Expected window lower-right - ImVec2 size_expected = pos_max - pos_min; - ImVec2 size_constrained = CalcWindowSizeAfterConstraint(window, size_expected); - *out_pos = pos_min; - if (corner_norm.x == 0.0f) - out_pos->x -= (size_constrained.x - size_expected.x); - if (corner_norm.y == 0.0f) - out_pos->y -= (size_constrained.y - size_expected.y); - *out_size = size_constrained; -} - -struct ImGuiResizeGripDef -{ - ImVec2 CornerPosN; - ImVec2 InnerDir; - int AngleMin12, AngleMax12; -}; - -static const ImGuiResizeGripDef resize_grip_def[4] = -{ - { ImVec2(1, 1), ImVec2(-1, -1), 0, 3 }, // Lower-right - { ImVec2(0, 1), ImVec2(+1, -1), 3, 6 }, // Lower-left - { ImVec2(0, 0), ImVec2(+1, +1), 6, 9 }, // Upper-left (Unused) - { ImVec2(1, 0), ImVec2(-1, +1), 9, 12 }, // Upper-right (Unused) -}; - -struct ImGuiResizeBorderDef -{ - ImVec2 InnerDir; - ImVec2 CornerPosN1, CornerPosN2; - float OuterAngle; -}; - -static const ImGuiResizeBorderDef resize_border_def[4] = -{ - { ImVec2(0, +1), ImVec2(0, 0), ImVec2(1, 0), IM_PI * 1.50f }, // Top - { ImVec2(-1, 0), ImVec2(1, 0), ImVec2(1, 1), IM_PI * 0.00f }, // Right - { ImVec2(0, -1), ImVec2(1, 1), ImVec2(0, 1), IM_PI * 0.50f }, // Bottom - { ImVec2(+1, 0), ImVec2(0, 1), ImVec2(0, 0), IM_PI * 1.00f } // Left -}; - -static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness) -{ - ImRect rect = window->Rect(); - if (thickness == 0.0f) rect.Max -= ImVec2(1, 1); - if (border_n == 0) { return ImRect(rect.Min.x + perp_padding, rect.Min.y - thickness, rect.Max.x - perp_padding, rect.Min.y + thickness); } // Top - if (border_n == 1) { return ImRect(rect.Max.x - thickness, rect.Min.y + perp_padding, rect.Max.x + thickness, rect.Max.y - perp_padding); } // Right - if (border_n == 2) { return ImRect(rect.Min.x + perp_padding, rect.Max.y - thickness, rect.Max.x - perp_padding, rect.Max.y + thickness); } // Bottom - if (border_n == 3) { return ImRect(rect.Min.x - thickness, rect.Min.y + perp_padding, rect.Min.x + thickness, rect.Max.y - perp_padding); } // Left - IM_ASSERT(0); - return ImRect(); -} - -// 0..3: corners (Lower-right, Lower-left, Unused, Unused) -// 4..7: borders (Top, Right, Bottom, Left) -ImGuiID ImGui::GetWindowResizeID(ImGuiWindow* window, int n) -{ - IM_ASSERT(n >= 0 && n <= 7); - ImGuiID id = window->ID; - id = ImHashStr("#RESIZE", 0, id); - id = ImHashData(&n, sizeof(int), id); - return id; -} - -// Handle resize for: Resize Grips, Borders, Gamepad -// Return true when using auto-fit (double click on resize grip) -static bool ImGui::UpdateWindowManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4], const ImRect& visibility_rect) -{ - ImGuiContext& g = *GImGui; - ImGuiWindowFlags flags = window->Flags; - - if ((flags & ImGuiWindowFlags_NoResize) || (flags & ImGuiWindowFlags_AlwaysAutoResize) || window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) - return false; - if (window->WasActive == false) // Early out to avoid running this code for e.g. an hidden implicit/fallback Debug window. - return false; - - bool ret_auto_fit = false; - const int resize_border_count = g.IO.ConfigWindowsResizeFromEdges ? 4 : 0; - const float grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.35f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); - const float grip_hover_inner_size = IM_FLOOR(grip_draw_size * 0.75f); - const float grip_hover_outer_size = g.IO.ConfigWindowsResizeFromEdges ? WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS : 0.0f; - - ImVec2 pos_target(FLT_MAX, FLT_MAX); - ImVec2 size_target(FLT_MAX, FLT_MAX); - - // Resize grips and borders are on layer 1 - window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; - - // Manual resize grips - PushID("#RESIZE"); - for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) - { - const ImGuiResizeGripDef& grip = resize_grip_def[resize_grip_n]; - const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, grip.CornerPosN); - - // Using the FlattenChilds button flag we make the resize button accessible even if we are hovering over a child window - ImRect resize_rect(corner - grip.InnerDir * grip_hover_outer_size, corner + grip.InnerDir * grip_hover_inner_size); - if (resize_rect.Min.x > resize_rect.Max.x) ImSwap(resize_rect.Min.x, resize_rect.Max.x); - if (resize_rect.Min.y > resize_rect.Max.y) ImSwap(resize_rect.Min.y, resize_rect.Max.y); - bool hovered, held; - ButtonBehavior(resize_rect, window->GetID(resize_grip_n), &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_NoNavFocus); - //GetForegroundDrawList(window)->AddRect(resize_rect.Min, resize_rect.Max, IM_COL32(255, 255, 0, 255)); - if (hovered || held) - g.MouseCursor = (resize_grip_n & 1) ? ImGuiMouseCursor_ResizeNESW : ImGuiMouseCursor_ResizeNWSE; - - if (held && g.IO.MouseDoubleClicked[0] && resize_grip_n == 0) - { - // Manual auto-fit when double-clicking - size_target = CalcWindowSizeAfterConstraint(window, size_auto_fit); - ret_auto_fit = true; - ClearActiveID(); - } - else if (held) - { - // Resize from any of the four corners - // We don't use an incremental MouseDelta but rather compute an absolute target size based on mouse position - ImVec2 corner_target = g.IO.MousePos - g.ActiveIdClickOffset + ImLerp(grip.InnerDir * grip_hover_outer_size, grip.InnerDir * -grip_hover_inner_size, grip.CornerPosN); // Corner of the window corresponding to our corner grip - ImVec2 clamp_min = ImVec2(grip.CornerPosN.x == 1.0f ? visibility_rect.Min.x : -FLT_MAX, grip.CornerPosN.y == 1.0f ? visibility_rect.Min.y : -FLT_MAX); - ImVec2 clamp_max = ImVec2(grip.CornerPosN.x == 0.0f ? visibility_rect.Max.x : +FLT_MAX, grip.CornerPosN.y == 0.0f ? visibility_rect.Max.y : +FLT_MAX); - corner_target = ImClamp(corner_target, clamp_min, clamp_max); - CalcResizePosSizeFromAnyCorner(window, corner_target, grip.CornerPosN, &pos_target, &size_target); - } - if (resize_grip_n == 0 || held || hovered) - resize_grip_col[resize_grip_n] = GetColorU32(held ? ImGuiCol_ResizeGripActive : hovered ? ImGuiCol_ResizeGripHovered : ImGuiCol_ResizeGrip); - } - for (int border_n = 0; border_n < resize_border_count; border_n++) - { - bool hovered, held; - ImRect border_rect = GetResizeBorderRect(window, border_n, grip_hover_inner_size, WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); - ButtonBehavior(border_rect, window->GetID(border_n + 4), &hovered, &held, ImGuiButtonFlags_FlattenChildren); - //GetForegroundDrawLists(window)->AddRect(border_rect.Min, border_rect.Max, IM_COL32(255, 255, 0, 255)); - if ((hovered && g.HoveredIdTimer > WINDOWS_RESIZE_FROM_EDGES_FEEDBACK_TIMER) || held) - { - g.MouseCursor = (border_n & 1) ? ImGuiMouseCursor_ResizeEW : ImGuiMouseCursor_ResizeNS; - if (held) - *border_held = border_n; - } - if (held) - { - ImVec2 border_target = window->Pos; - ImVec2 border_posn; - if (border_n == 0) { border_posn = ImVec2(0, 0); border_target.y = (g.IO.MousePos.y - g.ActiveIdClickOffset.y + WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); } // Top - if (border_n == 1) { border_posn = ImVec2(1, 0); border_target.x = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); } // Right - if (border_n == 2) { border_posn = ImVec2(0, 1); border_target.y = (g.IO.MousePos.y - g.ActiveIdClickOffset.y + WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); } // Bottom - if (border_n == 3) { border_posn = ImVec2(0, 0); border_target.x = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + WINDOWS_RESIZE_FROM_EDGES_HALF_THICKNESS); } // Left - ImVec2 clamp_min = ImVec2(border_n == 1 ? visibility_rect.Min.x : -FLT_MAX, border_n == 2 ? visibility_rect.Min.y : -FLT_MAX); - ImVec2 clamp_max = ImVec2(border_n == 3 ? visibility_rect.Max.x : +FLT_MAX, border_n == 0 ? visibility_rect.Max.y : +FLT_MAX); - border_target = ImClamp(border_target, clamp_min, clamp_max); - CalcResizePosSizeFromAnyCorner(window, border_target, border_posn, &pos_target, &size_target); - } - } - PopID(); - - // Restore nav layer - window->DC.NavLayerCurrent = ImGuiNavLayer_Main; - - // Navigation resize (keyboard/gamepad) - if (g.NavWindowingTarget && g.NavWindowingTarget->RootWindow == window) - { - ImVec2 nav_resize_delta; - if (g.NavInputSource == ImGuiInputSource_NavKeyboard && g.IO.KeyShift) - nav_resize_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard, ImGuiInputReadMode_Down); - if (g.NavInputSource == ImGuiInputSource_NavGamepad) - nav_resize_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_Down); - if (nav_resize_delta.x != 0.0f || nav_resize_delta.y != 0.0f) - { - const float NAV_RESIZE_SPEED = 600.0f; - nav_resize_delta *= ImFloor(NAV_RESIZE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y)); - nav_resize_delta = ImMax(nav_resize_delta, visibility_rect.Min - window->Pos - window->Size); - g.NavWindowingToggleLayer = false; - g.NavDisableMouseHover = true; - resize_grip_col[0] = GetColorU32(ImGuiCol_ResizeGripActive); - // FIXME-NAV: Should store and accumulate into a separate size buffer to handle sizing constraints properly, right now a constraint will make us stuck. - size_target = CalcWindowSizeAfterConstraint(window, window->SizeFull + nav_resize_delta); - } - } - - // Apply back modified position/size to window - if (size_target.x != FLT_MAX) - { - window->SizeFull = size_target; - MarkIniSettingsDirty(window); - } - if (pos_target.x != FLT_MAX) - { - window->Pos = ImFloor(pos_target); - MarkIniSettingsDirty(window); - } - - window->Size = window->SizeFull; - return ret_auto_fit; -} - -static inline void ClampWindowRect(ImGuiWindow* window, const ImRect& visibility_rect) -{ - ImGuiContext& g = *GImGui; - ImVec2 size_for_clamping = window->Size; - if (g.IO.ConfigWindowsMoveFromTitleBarOnly && !(window->Flags & ImGuiWindowFlags_NoTitleBar)) - size_for_clamping.y = window->TitleBarHeight(); - window->Pos = ImClamp(window->Pos, visibility_rect.Min - size_for_clamping, visibility_rect.Max); -} - -static void ImGui::RenderWindowOuterBorders(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - float rounding = window->WindowRounding; - float border_size = window->WindowBorderSize; - if (border_size > 0.0f && !(window->Flags & ImGuiWindowFlags_NoBackground)) - window->DrawList->AddRect(window->Pos, window->Pos + window->Size, GetColorU32(ImGuiCol_Border), rounding, ImDrawCornerFlags_All, border_size); - - int border_held = window->ResizeBorderHeld; - if (border_held != -1) - { - const ImGuiResizeBorderDef& def = resize_border_def[border_held]; - ImRect border_r = GetResizeBorderRect(window, border_held, rounding, 0.0f); - window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.CornerPosN1) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle - IM_PI * 0.25f, def.OuterAngle); - window->DrawList->PathArcTo(ImLerp(border_r.Min, border_r.Max, def.CornerPosN2) + ImVec2(0.5f, 0.5f) + def.InnerDir * rounding, rounding, def.OuterAngle, def.OuterAngle + IM_PI * 0.25f); - window->DrawList->PathStroke(GetColorU32(ImGuiCol_SeparatorActive), false, ImMax(2.0f, border_size)); // Thicker than usual - } - if (g.Style.FrameBorderSize > 0 && !(window->Flags & ImGuiWindowFlags_NoTitleBar)) - { - float y = window->Pos.y + window->TitleBarHeight() - 1; - window->DrawList->AddLine(ImVec2(window->Pos.x + border_size, y), ImVec2(window->Pos.x + window->Size.x - border_size, y), GetColorU32(ImGuiCol_Border), g.Style.FrameBorderSize); - } -} - -// Draw background and borders -// Draw and handle scrollbars -void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size) -{ - ImGuiContext& g = *GImGui; - ImGuiStyle& style = g.Style; - ImGuiWindowFlags flags = window->Flags; - - // Ensure that ScrollBar doesn't read last frame's SkipItems - IM_ASSERT(window->BeginCount == 0); - window->SkipItems = false; - - // Draw window + handle manual resize - // As we highlight the title bar when want_focus is set, multiple reappearing windows will have have their title bar highlighted on their reappearing frame. - const float window_rounding = window->WindowRounding; - const float window_border_size = window->WindowBorderSize; - if (window->Collapsed) - { - // Title bar only - float backup_border_size = style.FrameBorderSize; - g.Style.FrameBorderSize = window->WindowBorderSize; - ImU32 title_bar_col = GetColorU32((title_bar_is_highlight && !g.NavDisableHighlight) ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBgCollapsed); - RenderFrame(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, true, window_rounding); - g.Style.FrameBorderSize = backup_border_size; - } - else - { - // Window background - if (!(flags & ImGuiWindowFlags_NoBackground)) - { - ImU32 bg_col = GetColorU32(GetWindowBgColorIdxFromFlags(flags)); - bool override_alpha = false; - float alpha = 1.0f; - if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasBgAlpha) - { - alpha = g.NextWindowData.BgAlphaVal; - override_alpha = true; - } - if (override_alpha) - bg_col = (bg_col & ~IM_COL32_A_MASK) | (IM_F32_TO_INT8_SAT(alpha) << IM_COL32_A_SHIFT); - window->DrawList->AddRectFilled(window->Pos + ImVec2(0, window->TitleBarHeight()), window->Pos + window->Size, bg_col, window_rounding, (flags & ImGuiWindowFlags_NoTitleBar) ? ImDrawCornerFlags_All : ImDrawCornerFlags_Bot); - } - - // Title bar - if (!(flags & ImGuiWindowFlags_NoTitleBar)) - { - ImU32 title_bar_col = GetColorU32(title_bar_is_highlight ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg); - window->DrawList->AddRectFilled(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, window_rounding, ImDrawCornerFlags_Top); - } - - // Menu bar - if (flags & ImGuiWindowFlags_MenuBar) - { - ImRect menu_bar_rect = window->MenuBarRect(); - menu_bar_rect.ClipWith(window->Rect()); // Soft clipping, in particular child window don't have minimum size covering the menu bar so this is useful for them. - window->DrawList->AddRectFilled(menu_bar_rect.Min + ImVec2(window_border_size, 0), menu_bar_rect.Max - ImVec2(window_border_size, 0), GetColorU32(ImGuiCol_MenuBarBg), (flags & ImGuiWindowFlags_NoTitleBar) ? window_rounding : 0.0f, ImDrawCornerFlags_Top); - if (style.FrameBorderSize > 0.0f && menu_bar_rect.Max.y < window->Pos.y + window->Size.y) - window->DrawList->AddLine(menu_bar_rect.GetBL(), menu_bar_rect.GetBR(), GetColorU32(ImGuiCol_Border), style.FrameBorderSize); - } - - // Scrollbars - if (window->ScrollbarX) - Scrollbar(ImGuiAxis_X); - if (window->ScrollbarY) - Scrollbar(ImGuiAxis_Y); - - // Render resize grips (after their input handling so we don't have a frame of latency) - if (!(flags & ImGuiWindowFlags_NoResize)) - { - for (int resize_grip_n = 0; resize_grip_n < resize_grip_count; resize_grip_n++) - { - const ImGuiResizeGripDef& grip = resize_grip_def[resize_grip_n]; - const ImVec2 corner = ImLerp(window->Pos, window->Pos + window->Size, grip.CornerPosN); - window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(window_border_size, resize_grip_draw_size) : ImVec2(resize_grip_draw_size, window_border_size))); - window->DrawList->PathLineTo(corner + grip.InnerDir * ((resize_grip_n & 1) ? ImVec2(resize_grip_draw_size, window_border_size) : ImVec2(window_border_size, resize_grip_draw_size))); - window->DrawList->PathArcToFast(ImVec2(corner.x + grip.InnerDir.x * (window_rounding + window_border_size), corner.y + grip.InnerDir.y * (window_rounding + window_border_size)), window_rounding, grip.AngleMin12, grip.AngleMax12); - window->DrawList->PathFillConvex(resize_grip_col[resize_grip_n]); - } - } - - // Borders - RenderWindowOuterBorders(window); - } -} - -// Render title text, collapse button, close button -void ImGui::RenderWindowTitleBarContents(ImGuiWindow* window, const ImRect& title_bar_rect, const char* name, bool* p_open) -{ - ImGuiContext& g = *GImGui; - ImGuiStyle& style = g.Style; - ImGuiWindowFlags flags = window->Flags; - - const bool has_close_button = (p_open != NULL); - const bool has_collapse_button = !(flags & ImGuiWindowFlags_NoCollapse) && (style.WindowMenuButtonPosition != ImGuiDir_None); - - // Close & Collapse button are on the Menu NavLayer and don't default focus (unless there's nothing else on that layer) - const ImGuiItemFlags item_flags_backup = window->DC.ItemFlags; - window->DC.ItemFlags |= ImGuiItemFlags_NoNavDefaultFocus; - window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; - - // Layout buttons - // FIXME: Would be nice to generalize the subtleties expressed here into reusable code. - float pad_l = style.FramePadding.x; - float pad_r = style.FramePadding.x; - float button_sz = g.FontSize; - ImVec2 close_button_pos; - ImVec2 collapse_button_pos; - if (has_close_button) - { - pad_r += button_sz; - close_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - style.FramePadding.x, title_bar_rect.Min.y); - } - if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Right) - { - pad_r += button_sz; - collapse_button_pos = ImVec2(title_bar_rect.Max.x - pad_r - style.FramePadding.x, title_bar_rect.Min.y); - } - if (has_collapse_button && style.WindowMenuButtonPosition == ImGuiDir_Left) - { - collapse_button_pos = ImVec2(title_bar_rect.Min.x + pad_l - style.FramePadding.x, title_bar_rect.Min.y); - pad_l += button_sz; - } - - // Collapse button (submitting first so it gets priority when choosing a navigation init fallback) - if (has_collapse_button) - if (CollapseButton(window->GetID("#COLLAPSE"), collapse_button_pos)) - window->WantCollapseToggle = true; // Defer actual collapsing to next frame as we are too far in the Begin() function - - // Close button - if (has_close_button) - if (CloseButton(window->GetID("#CLOSE"), close_button_pos)) - *p_open = false; - - window->DC.NavLayerCurrent = ImGuiNavLayer_Main; - window->DC.ItemFlags = item_flags_backup; - - // Title bar text (with: horizontal alignment, avoiding collapse/close button, optional "unsaved document" marker) - // FIXME: Refactor text alignment facilities along with RenderText helpers, this is WAY too much messy code.. - const char* UNSAVED_DOCUMENT_MARKER = "*"; - const float marker_size_x = (flags & ImGuiWindowFlags_UnsavedDocument) ? CalcTextSize(UNSAVED_DOCUMENT_MARKER, NULL, false).x : 0.0f; - const ImVec2 text_size = CalcTextSize(name, NULL, true) + ImVec2(marker_size_x, 0.0f); - - // As a nice touch we try to ensure that centered title text doesn't get affected by visibility of Close/Collapse button, - // while uncentered title text will still reach edges correctly. - if (pad_l > style.FramePadding.x) - pad_l += g.Style.ItemInnerSpacing.x; - if (pad_r > style.FramePadding.x) - pad_r += g.Style.ItemInnerSpacing.x; - if (style.WindowTitleAlign.x > 0.0f && style.WindowTitleAlign.x < 1.0f) - { - float centerness = ImSaturate(1.0f - ImFabs(style.WindowTitleAlign.x - 0.5f) * 2.0f); // 0.0f on either edges, 1.0f on center - float pad_extend = ImMin(ImMax(pad_l, pad_r), title_bar_rect.GetWidth() - pad_l - pad_r - text_size.x); - pad_l = ImMax(pad_l, pad_extend * centerness); - pad_r = ImMax(pad_r, pad_extend * centerness); - } - - ImRect layout_r(title_bar_rect.Min.x + pad_l, title_bar_rect.Min.y, title_bar_rect.Max.x - pad_r, title_bar_rect.Max.y); - ImRect clip_r(layout_r.Min.x, layout_r.Min.y, ImMin(layout_r.Max.x + g.Style.ItemInnerSpacing.x, title_bar_rect.Max.x), layout_r.Max.y); - //if (g.IO.KeyShift) window->DrawList->AddRect(layout_r.Min, layout_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] - //if (g.IO.KeyCtrl) window->DrawList->AddRect(clip_r.Min, clip_r.Max, IM_COL32(255, 128, 0, 255)); // [DEBUG] - RenderTextClipped(layout_r.Min, layout_r.Max, name, NULL, &text_size, style.WindowTitleAlign, &clip_r); - if (flags & ImGuiWindowFlags_UnsavedDocument) - { - ImVec2 marker_pos = ImVec2(ImMax(layout_r.Min.x, layout_r.Min.x + (layout_r.GetWidth() - text_size.x) * style.WindowTitleAlign.x) + text_size.x, layout_r.Min.y) + ImVec2(2 - marker_size_x, 0.0f); - ImVec2 off = ImVec2(0.0f, IM_FLOOR(-g.FontSize * 0.25f)); - RenderTextClipped(marker_pos + off, layout_r.Max + off, UNSAVED_DOCUMENT_MARKER, NULL, NULL, ImVec2(0, style.WindowTitleAlign.y), &clip_r); - } -} - -void ImGui::UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window) -{ - window->ParentWindow = parent_window; - window->RootWindow = window->RootWindowForTitleBarHighlight = window->RootWindowForNav = window; - if (parent_window && (flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Tooltip)) - window->RootWindow = parent_window->RootWindow; - if (parent_window && !(flags & ImGuiWindowFlags_Modal) && (flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup))) - window->RootWindowForTitleBarHighlight = parent_window->RootWindowForTitleBarHighlight; - while (window->RootWindowForNav->Flags & ImGuiWindowFlags_NavFlattened) - { - IM_ASSERT(window->RootWindowForNav->ParentWindow != NULL); - window->RootWindowForNav = window->RootWindowForNav->ParentWindow; - } -} - -// Push a new Dear ImGui window to add widgets to. -// - A default window called "Debug" is automatically stacked at the beginning of every frame so you can use widgets without explicitly calling a Begin/End pair. -// - Begin/End can be called multiple times during the frame with the same window name to append content. -// - The window name is used as a unique identifier to preserve window information across frames (and save rudimentary information to the .ini file). -// You can use the "##" or "###" markers to use the same label with different id, or same id with different label. See documentation at the top of this file. -// - Return false when window is collapsed, so you can early out in your code. You always need to call ImGui::End() even if false is returned. -// - Passing 'bool* p_open' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed. -bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags) -{ - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - IM_ASSERT(name != NULL && name[0] != '\0'); // Window name required - IM_ASSERT(g.WithinFrameScope); // Forgot to call ImGui::NewFrame() - IM_ASSERT(g.FrameCountEnded != g.FrameCount); // Called ImGui::Render() or ImGui::EndFrame() and haven't called ImGui::NewFrame() again yet - - // Find or create - ImGuiWindow* window = FindWindowByName(name); - const bool window_just_created = (window == NULL); - if (window_just_created) - window = CreateNewWindow(name, flags); - - // Automatically disable manual moving/resizing when NoInputs is set - if ((flags & ImGuiWindowFlags_NoInputs) == ImGuiWindowFlags_NoInputs) - flags |= ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize; - - if (flags & ImGuiWindowFlags_NavFlattened) - IM_ASSERT(flags & ImGuiWindowFlags_ChildWindow); - - const int current_frame = g.FrameCount; - const bool first_begin_of_the_frame = (window->LastFrameActive != current_frame); - window->IsFallbackWindow = (g.CurrentWindowStack.Size == 0 && g.WithinFrameScopeWithImplicitWindow); - - // Update the Appearing flag - bool window_just_activated_by_user = (window->LastFrameActive < current_frame - 1); // Not using !WasActive because the implicit "Debug" window would always toggle off->on - const bool window_just_appearing_after_hidden_for_resize = (window->HiddenFramesCannotSkipItems > 0); - if (flags & ImGuiWindowFlags_Popup) - { - ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; - window_just_activated_by_user |= (window->PopupId != popup_ref.PopupId); // We recycle popups so treat window as activated if popup id changed - window_just_activated_by_user |= (window != popup_ref.Window); - } - window->Appearing = (window_just_activated_by_user || window_just_appearing_after_hidden_for_resize); - if (window->Appearing) - SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, true); - - // Update Flags, LastFrameActive, BeginOrderXXX fields - if (first_begin_of_the_frame) - { - window->Flags = (ImGuiWindowFlags)flags; - window->LastFrameActive = current_frame; - window->LastTimeActive = (float)g.Time; - window->BeginOrderWithinParent = 0; - window->BeginOrderWithinContext = (short)(g.WindowsActiveCount++); - } - else - { - flags = window->Flags; - } - - // Parent window is latched only on the first call to Begin() of the frame, so further append-calls can be done from a different window stack - ImGuiWindow* parent_window_in_stack = g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back(); - ImGuiWindow* parent_window = first_begin_of_the_frame ? ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup)) ? parent_window_in_stack : NULL) : window->ParentWindow; - IM_ASSERT(parent_window != NULL || !(flags & ImGuiWindowFlags_ChildWindow)); - - // We allow window memory to be compacted so recreate the base stack when needed. - if (window->IDStack.Size == 0) - window->IDStack.push_back(window->ID); - - // Add to stack - // We intentionally set g.CurrentWindow to NULL to prevent usage until when the viewport is set, then will call SetCurrentWindow() - g.CurrentWindowStack.push_back(window); - g.CurrentWindow = window; - window->DC.StackSizesOnBegin.SetToCurrentState(); - g.CurrentWindow = NULL; - - if (flags & ImGuiWindowFlags_Popup) - { - ImGuiPopupData& popup_ref = g.OpenPopupStack[g.BeginPopupStack.Size]; - popup_ref.Window = window; - g.BeginPopupStack.push_back(popup_ref); - window->PopupId = popup_ref.PopupId; - } - - if (window_just_appearing_after_hidden_for_resize && !(flags & ImGuiWindowFlags_ChildWindow)) - window->NavLastIds[0] = 0; - - // Update ->RootWindow and others pointers (before any possible call to FocusWindow) - if (first_begin_of_the_frame) - UpdateWindowParentAndRootLinks(window, flags, parent_window); - - // Process SetNextWindow***() calls - // (FIXME: Consider splitting the HasXXX flags into X/Y components - bool window_pos_set_by_api = false; - bool window_size_x_set_by_api = false, window_size_y_set_by_api = false; - if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) - { - window_pos_set_by_api = (window->SetWindowPosAllowFlags & g.NextWindowData.PosCond) != 0; - if (window_pos_set_by_api && ImLengthSqr(g.NextWindowData.PosPivotVal) > 0.00001f) - { - // May be processed on the next frame if this is our first frame and we are measuring size - // FIXME: Look into removing the branch so everything can go through this same code path for consistency. - window->SetWindowPosVal = g.NextWindowData.PosVal; - window->SetWindowPosPivot = g.NextWindowData.PosPivotVal; - window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); - } - else - { - SetWindowPos(window, g.NextWindowData.PosVal, g.NextWindowData.PosCond); - } - } - if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSize) - { - window_size_x_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.x > 0.0f); - window_size_y_set_by_api = (window->SetWindowSizeAllowFlags & g.NextWindowData.SizeCond) != 0 && (g.NextWindowData.SizeVal.y > 0.0f); - SetWindowSize(window, g.NextWindowData.SizeVal, g.NextWindowData.SizeCond); - } - if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasScroll) - { - if (g.NextWindowData.ScrollVal.x >= 0.0f) - { - window->ScrollTarget.x = g.NextWindowData.ScrollVal.x; - window->ScrollTargetCenterRatio.x = 0.0f; - } - if (g.NextWindowData.ScrollVal.y >= 0.0f) - { - window->ScrollTarget.y = g.NextWindowData.ScrollVal.y; - window->ScrollTargetCenterRatio.y = 0.0f; - } - } - if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasContentSize) - window->ContentSizeExplicit = g.NextWindowData.ContentSizeVal; - else if (first_begin_of_the_frame) - window->ContentSizeExplicit = ImVec2(0.0f, 0.0f); - if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasCollapsed) - SetWindowCollapsed(window, g.NextWindowData.CollapsedVal, g.NextWindowData.CollapsedCond); - if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasFocus) - FocusWindow(window); - if (window->Appearing) - SetWindowConditionAllowFlags(window, ImGuiCond_Appearing, false); - - // When reusing window again multiple times a frame, just append content (don't need to setup again) - if (first_begin_of_the_frame) - { - // Initialize - const bool window_is_child_tooltip = (flags & ImGuiWindowFlags_ChildWindow) && (flags & ImGuiWindowFlags_Tooltip); // FIXME-WIP: Undocumented behavior of Child+Tooltip for pinned tooltip (#1345) - window->Active = true; - window->HasCloseButton = (p_open != NULL); - window->ClipRect = ImVec4(-FLT_MAX, -FLT_MAX, +FLT_MAX, +FLT_MAX); - window->IDStack.resize(1); - window->DrawList->_ResetForNewFrame(); - window->DC.CurrentTableIdx = -1; - - // Restore buffer capacity when woken from a compacted state, to avoid - if (window->MemoryCompacted) - GcAwakeTransientWindowBuffers(window); - - // Update stored window name when it changes (which can _only_ happen with the "###" operator, so the ID would stay unchanged). - // The title bar always display the 'name' parameter, so we only update the string storage if it needs to be visible to the end-user elsewhere. - bool window_title_visible_elsewhere = false; - if (g.NavWindowingListWindow != NULL && (window->Flags & ImGuiWindowFlags_NoNavFocus) == 0) // Window titles visible when using CTRL+TAB - window_title_visible_elsewhere = true; - if (window_title_visible_elsewhere && !window_just_created && strcmp(name, window->Name) != 0) - { - size_t buf_len = (size_t)window->NameBufLen; - window->Name = ImStrdupcpy(window->Name, &buf_len, name); - window->NameBufLen = (int)buf_len; - } - - // UPDATE CONTENTS SIZE, UPDATE HIDDEN STATUS - - // Update contents size from last frame for auto-fitting (or use explicit size) - CalcWindowContentSizes(window, &window->ContentSize, &window->ContentSizeIdeal); - if (window->HiddenFramesCanSkipItems > 0) - window->HiddenFramesCanSkipItems--; - if (window->HiddenFramesCannotSkipItems > 0) - window->HiddenFramesCannotSkipItems--; - if (window->HiddenFramesForRenderOnly > 0) - window->HiddenFramesForRenderOnly--; - - // Hide new windows for one frame until they calculate their size - if (window_just_created && (!window_size_x_set_by_api || !window_size_y_set_by_api)) - window->HiddenFramesCannotSkipItems = 1; - - // Hide popup/tooltip window when re-opening while we measure size (because we recycle the windows) - // We reset Size/ContentSize for reappearing popups/tooltips early in this function, so further code won't be tempted to use the old size. - if (window_just_activated_by_user && (flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) != 0) - { - window->HiddenFramesCannotSkipItems = 1; - if (flags & ImGuiWindowFlags_AlwaysAutoResize) - { - if (!window_size_x_set_by_api) - window->Size.x = window->SizeFull.x = 0.f; - if (!window_size_y_set_by_api) - window->Size.y = window->SizeFull.y = 0.f; - window->ContentSize = window->ContentSizeIdeal = ImVec2(0.f, 0.f); - } - } - - // SELECT VIEWPORT - // FIXME-VIEWPORT: In the docking/viewport branch, this is the point where we select the current viewport (which may affect the style) - SetCurrentWindow(window); - - // LOCK BORDER SIZE AND PADDING FOR THE FRAME (so that altering them doesn't cause inconsistencies) - - if (flags & ImGuiWindowFlags_ChildWindow) - window->WindowBorderSize = style.ChildBorderSize; - else - window->WindowBorderSize = ((flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_Tooltip)) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupBorderSize : style.WindowBorderSize; - window->WindowPadding = style.WindowPadding; - if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & (ImGuiWindowFlags_AlwaysUseWindowPadding | ImGuiWindowFlags_Popup)) && window->WindowBorderSize == 0.0f) - window->WindowPadding = ImVec2(0.0f, (flags & ImGuiWindowFlags_MenuBar) ? style.WindowPadding.y : 0.0f); - - // Lock menu offset so size calculation can use it as menu-bar windows need a minimum size. - window->DC.MenuBarOffset.x = ImMax(ImMax(window->WindowPadding.x, style.ItemSpacing.x), g.NextWindowData.MenuBarOffsetMinVal.x); - window->DC.MenuBarOffset.y = g.NextWindowData.MenuBarOffsetMinVal.y; - - // Collapse window by double-clicking on title bar - // At this point we don't have a clipping rectangle setup yet, so we can use the title bar area for hit detection and drawing - if (!(flags & ImGuiWindowFlags_NoTitleBar) && !(flags & ImGuiWindowFlags_NoCollapse)) - { - // We don't use a regular button+id to test for double-click on title bar (mostly due to legacy reason, could be fixed), so verify that we don't have items over the title bar. - ImRect title_bar_rect = window->TitleBarRect(); - if (g.HoveredWindow == window && g.HoveredId == 0 && g.HoveredIdPreviousFrame == 0 && IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max) && g.IO.MouseDoubleClicked[0]) - window->WantCollapseToggle = true; - if (window->WantCollapseToggle) - { - window->Collapsed = !window->Collapsed; - MarkIniSettingsDirty(window); - FocusWindow(window); - } - } - else - { - window->Collapsed = false; - } - window->WantCollapseToggle = false; - - // SIZE - - // Calculate auto-fit size, handle automatic resize - const ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, window->ContentSizeIdeal); - bool use_current_size_for_scrollbar_x = window_just_created; - bool use_current_size_for_scrollbar_y = window_just_created; - if ((flags & ImGuiWindowFlags_AlwaysAutoResize) && !window->Collapsed) - { - // Using SetNextWindowSize() overrides ImGuiWindowFlags_AlwaysAutoResize, so it can be used on tooltips/popups, etc. - if (!window_size_x_set_by_api) - { - window->SizeFull.x = size_auto_fit.x; - use_current_size_for_scrollbar_x = true; - } - if (!window_size_y_set_by_api) - { - window->SizeFull.y = size_auto_fit.y; - use_current_size_for_scrollbar_y = true; - } - } - else if (window->AutoFitFramesX > 0 || window->AutoFitFramesY > 0) - { - // Auto-fit may only grow window during the first few frames - // We still process initial auto-fit on collapsed windows to get a window width, but otherwise don't honor ImGuiWindowFlags_AlwaysAutoResize when collapsed. - if (!window_size_x_set_by_api && window->AutoFitFramesX > 0) - { - window->SizeFull.x = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.x, size_auto_fit.x) : size_auto_fit.x; - use_current_size_for_scrollbar_x = true; - } - if (!window_size_y_set_by_api && window->AutoFitFramesY > 0) - { - window->SizeFull.y = window->AutoFitOnlyGrows ? ImMax(window->SizeFull.y, size_auto_fit.y) : size_auto_fit.y; - use_current_size_for_scrollbar_y = true; - } - if (!window->Collapsed) - MarkIniSettingsDirty(window); - } - - // Apply minimum/maximum window size constraints and final size - window->SizeFull = CalcWindowSizeAfterConstraint(window, window->SizeFull); - window->Size = window->Collapsed && !(flags & ImGuiWindowFlags_ChildWindow) ? window->TitleBarRect().GetSize() : window->SizeFull; - - // Decoration size - const float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); - - // POSITION - - // Popup latch its initial position, will position itself when it appears next frame - if (window_just_activated_by_user) - { - window->AutoPosLastDirection = ImGuiDir_None; - if ((flags & ImGuiWindowFlags_Popup) != 0 && !(flags & ImGuiWindowFlags_Modal) && !window_pos_set_by_api) // FIXME: BeginPopup() could use SetNextWindowPos() - window->Pos = g.BeginPopupStack.back().OpenPopupPos; - } - - // Position child window - if (flags & ImGuiWindowFlags_ChildWindow) - { - IM_ASSERT(parent_window && parent_window->Active); - window->BeginOrderWithinParent = (short)parent_window->DC.ChildWindows.Size; - parent_window->DC.ChildWindows.push_back(window); - if (!(flags & ImGuiWindowFlags_Popup) && !window_pos_set_by_api && !window_is_child_tooltip) - window->Pos = parent_window->DC.CursorPos; - } - - const bool window_pos_with_pivot = (window->SetWindowPosVal.x != FLT_MAX && window->HiddenFramesCannotSkipItems == 0); - if (window_pos_with_pivot) - SetWindowPos(window, window->SetWindowPosVal - window->Size * window->SetWindowPosPivot, 0); // Position given a pivot (e.g. for centering) - else if ((flags & ImGuiWindowFlags_ChildMenu) != 0) - window->Pos = FindBestWindowPosForPopup(window); - else if ((flags & ImGuiWindowFlags_Popup) != 0 && !window_pos_set_by_api && window_just_appearing_after_hidden_for_resize) - window->Pos = FindBestWindowPosForPopup(window); - else if ((flags & ImGuiWindowFlags_Tooltip) != 0 && !window_pos_set_by_api && !window_is_child_tooltip) - window->Pos = FindBestWindowPosForPopup(window); - - // Calculate the range of allowed position for that window (to be movable and visible past safe area padding) - // When clamping to stay visible, we will enforce that window->Pos stays inside of visibility_rect. - ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); - ImRect viewport_rect(viewport->GetMainRect()); - ImRect viewport_work_rect(viewport->GetWorkRect()); - ImVec2 visibility_padding = ImMax(style.DisplayWindowPadding, style.DisplaySafeAreaPadding); - ImRect visibility_rect(viewport_work_rect.Min + visibility_padding, viewport_work_rect.Max - visibility_padding); - - // Clamp position/size so window stays visible within its viewport or monitor - // Ignore zero-sized display explicitly to avoid losing positions if a window manager reports zero-sized window when initializing or minimizing. - if (!window_pos_set_by_api && !(flags & ImGuiWindowFlags_ChildWindow) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) - if (viewport_rect.GetWidth() > 0.0f && viewport_rect.GetHeight() > 0.0f) - ClampWindowRect(window, visibility_rect); - window->Pos = ImFloor(window->Pos); - - // Lock window rounding for the frame (so that altering them doesn't cause inconsistencies) - // Large values tend to lead to variety of artifacts and are not recommended. - window->WindowRounding = (flags & ImGuiWindowFlags_ChildWindow) ? style.ChildRounding : ((flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiWindowFlags_Modal)) ? style.PopupRounding : style.WindowRounding; - - // For windows with title bar or menu bar, we clamp to FrameHeight(FontSize + FramePadding.y * 2.0f) to completely hide artifacts. - //if ((window->Flags & ImGuiWindowFlags_MenuBar) || !(window->Flags & ImGuiWindowFlags_NoTitleBar)) - // window->WindowRounding = ImMin(window->WindowRounding, g.FontSize + style.FramePadding.y * 2.0f); - - // Apply window focus (new and reactivated windows are moved to front) - bool want_focus = false; - if (window_just_activated_by_user && !(flags & ImGuiWindowFlags_NoFocusOnAppearing)) - { - if (flags & ImGuiWindowFlags_Popup) - want_focus = true; - else if ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Tooltip)) == 0) - want_focus = true; - } - - // Handle manual resize: Resize Grips, Borders, Gamepad - int border_held = -1; - ImU32 resize_grip_col[4] = {}; - const int resize_grip_count = g.IO.ConfigWindowsResizeFromEdges ? 2 : 1; // Allow resize from lower-left if we have the mouse cursor feedback for it. - const float resize_grip_draw_size = IM_FLOOR(ImMax(g.FontSize * 1.10f, window->WindowRounding + 1.0f + g.FontSize * 0.2f)); - if (!window->Collapsed) - if (UpdateWindowManualResize(window, size_auto_fit, &border_held, resize_grip_count, &resize_grip_col[0], visibility_rect)) - use_current_size_for_scrollbar_x = use_current_size_for_scrollbar_y = true; - window->ResizeBorderHeld = (signed char)border_held; - - // SCROLLBAR VISIBILITY - - // Update scrollbar visibility (based on the Size that was effective during last frame or the auto-resized Size). - if (!window->Collapsed) - { - // When reading the current size we need to read it after size constraints have been applied. - // When we use InnerRect here we are intentionally reading last frame size, same for ScrollbarSizes values before we set them again. - ImVec2 avail_size_from_current_frame = ImVec2(window->SizeFull.x, window->SizeFull.y - decoration_up_height); - ImVec2 avail_size_from_last_frame = window->InnerRect.GetSize() + window->ScrollbarSizes; - ImVec2 needed_size_from_last_frame = window_just_created ? ImVec2(0, 0) : window->ContentSize + window->WindowPadding * 2.0f; - float size_x_for_scrollbars = use_current_size_for_scrollbar_x ? avail_size_from_current_frame.x : avail_size_from_last_frame.x; - float size_y_for_scrollbars = use_current_size_for_scrollbar_y ? avail_size_from_current_frame.y : avail_size_from_last_frame.y; - //bool scrollbar_y_from_last_frame = window->ScrollbarY; // FIXME: May want to use that in the ScrollbarX expression? How many pros vs cons? - window->ScrollbarY = (flags & ImGuiWindowFlags_AlwaysVerticalScrollbar) || ((needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar)); - window->ScrollbarX = (flags & ImGuiWindowFlags_AlwaysHorizontalScrollbar) || ((needed_size_from_last_frame.x > size_x_for_scrollbars - (window->ScrollbarY ? style.ScrollbarSize : 0.0f)) && !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar)); - if (window->ScrollbarX && !window->ScrollbarY) - window->ScrollbarY = (needed_size_from_last_frame.y > size_y_for_scrollbars) && !(flags & ImGuiWindowFlags_NoScrollbar); - window->ScrollbarSizes = ImVec2(window->ScrollbarY ? style.ScrollbarSize : 0.0f, window->ScrollbarX ? style.ScrollbarSize : 0.0f); - } - - // UPDATE RECTANGLES (1- THOSE NOT AFFECTED BY SCROLLING) - // Update various regions. Variables they depends on should be set above in this function. - // We set this up after processing the resize grip so that our rectangles doesn't lag by a frame. - - // Outer rectangle - // Not affected by window border size. Used by: - // - FindHoveredWindow() (w/ extra padding when border resize is enabled) - // - Begin() initial clipping rect for drawing window background and borders. - // - Begin() clipping whole child - const ImRect host_rect = ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) ? parent_window->ClipRect : viewport_rect; - const ImRect outer_rect = window->Rect(); - const ImRect title_bar_rect = window->TitleBarRect(); - window->OuterRectClipped = outer_rect; - window->OuterRectClipped.ClipWith(host_rect); - - // Inner rectangle - // Not affected by window border size. Used by: - // - InnerClipRect - // - ScrollToBringRectIntoView() - // - NavUpdatePageUpPageDown() - // - Scrollbar() - window->InnerRect.Min.x = window->Pos.x; - window->InnerRect.Min.y = window->Pos.y + decoration_up_height; - window->InnerRect.Max.x = window->Pos.x + window->Size.x - window->ScrollbarSizes.x; - window->InnerRect.Max.y = window->Pos.y + window->Size.y - window->ScrollbarSizes.y; - - // Inner clipping rectangle. - // Will extend a little bit outside the normal work region. - // This is to allow e.g. Selectable or CollapsingHeader or some separators to cover that space. - // Force round operator last to ensure that e.g. (int)(max.x-min.x) in user's render code produce correct result. - // Note that if our window is collapsed we will end up with an inverted (~null) clipping rectangle which is the correct behavior. - // Affected by window/frame border size. Used by: - // - Begin() initial clip rect - float top_border_size = (((flags & ImGuiWindowFlags_MenuBar) || !(flags & ImGuiWindowFlags_NoTitleBar)) ? style.FrameBorderSize : window->WindowBorderSize); - window->InnerClipRect.Min.x = ImFloor(0.5f + window->InnerRect.Min.x + ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); - window->InnerClipRect.Min.y = ImFloor(0.5f + window->InnerRect.Min.y + top_border_size); - window->InnerClipRect.Max.x = ImFloor(0.5f + window->InnerRect.Max.x - ImMax(ImFloor(window->WindowPadding.x * 0.5f), window->WindowBorderSize)); - window->InnerClipRect.Max.y = ImFloor(0.5f + window->InnerRect.Max.y - window->WindowBorderSize); - window->InnerClipRect.ClipWithFull(host_rect); - - // Default item width. Make it proportional to window size if window manually resizes - if (window->Size.x > 0.0f && !(flags & ImGuiWindowFlags_Tooltip) && !(flags & ImGuiWindowFlags_AlwaysAutoResize)) - window->ItemWidthDefault = ImFloor(window->Size.x * 0.65f); - else - window->ItemWidthDefault = ImFloor(g.FontSize * 16.0f); - - // SCROLLING - - // Lock down maximum scrolling - // The value of ScrollMax are ahead from ScrollbarX/ScrollbarY which is intentionally using InnerRect from previous rect in order to accommodate - // for right/bottom aligned items without creating a scrollbar. - window->ScrollMax.x = ImMax(0.0f, window->ContentSize.x + window->WindowPadding.x * 2.0f - window->InnerRect.GetWidth()); - window->ScrollMax.y = ImMax(0.0f, window->ContentSize.y + window->WindowPadding.y * 2.0f - window->InnerRect.GetHeight()); - - // Apply scrolling - window->Scroll = CalcNextScrollFromScrollTargetAndClamp(window); - window->ScrollTarget = ImVec2(FLT_MAX, FLT_MAX); - - // DRAWING - - // Setup draw list and outer clipping rectangle - IM_ASSERT(window->DrawList->CmdBuffer.Size == 1 && window->DrawList->CmdBuffer[0].ElemCount == 0); - window->DrawList->PushTextureID(g.Font->ContainerAtlas->TexID); - PushClipRect(host_rect.Min, host_rect.Max, false); - - // Draw modal window background (darkens what is behind them, all viewports) - const bool dim_bg_for_modal = (flags & ImGuiWindowFlags_Modal) && window == GetTopMostPopupModal() && window->HiddenFramesCannotSkipItems <= 0; - const bool dim_bg_for_window_list = g.NavWindowingTargetAnim && (window == g.NavWindowingTargetAnim->RootWindow); - if (dim_bg_for_modal || dim_bg_for_window_list) - { - const ImU32 dim_bg_col = GetColorU32(dim_bg_for_modal ? ImGuiCol_ModalWindowDimBg : ImGuiCol_NavWindowingDimBg, g.DimBgRatio); - window->DrawList->AddRectFilled(viewport_rect.Min, viewport_rect.Max, dim_bg_col); - } - - // Draw navigation selection/windowing rectangle background - if (dim_bg_for_window_list && window == g.NavWindowingTargetAnim) - { - ImRect bb = window->Rect(); - bb.Expand(g.FontSize); - if (!bb.Contains(viewport_rect)) // Avoid drawing if the window covers all the viewport anyway - window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_NavWindowingHighlight, g.NavWindowingHighlightAlpha * 0.25f), g.Style.WindowRounding); - } - - // Since 1.71, child window can render their decoration (bg color, border, scrollbars, etc.) within their parent to save a draw call. - // When using overlapping child windows, this will break the assumption that child z-order is mapped to submission order. - // We disable this when the parent window has zero vertices, which is a common pattern leading to laying out multiple overlapping child. - // We also disabled this when we have dimming overlay behind this specific one child. - // FIXME: More code may rely on explicit sorting of overlapping child window and would need to disable this somehow. Please get in contact if you are affected. - { - bool render_decorations_in_parent = false; - if ((flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Popup) && !window_is_child_tooltip) - if (window->DrawList->CmdBuffer.back().ElemCount == 0 && parent_window->DrawList->VtxBuffer.Size > 0) - render_decorations_in_parent = true; - if (render_decorations_in_parent) - window->DrawList = parent_window->DrawList; - - // Handle title bar, scrollbar, resize grips and resize borders - const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow; - const bool title_bar_is_highlight = want_focus || (window_to_highlight && window->RootWindowForTitleBarHighlight == window_to_highlight->RootWindowForTitleBarHighlight); - RenderWindowDecorations(window, title_bar_rect, title_bar_is_highlight, resize_grip_count, resize_grip_col, resize_grip_draw_size); - - if (render_decorations_in_parent) - window->DrawList = &window->DrawListInst; - } - - // Draw navigation selection/windowing rectangle border - if (g.NavWindowingTargetAnim == window) - { - float rounding = ImMax(window->WindowRounding, g.Style.WindowRounding); - ImRect bb = window->Rect(); - bb.Expand(g.FontSize); - if (bb.Contains(viewport_rect)) // If a window fits the entire viewport, adjust its highlight inward - { - bb.Expand(-g.FontSize - 1.0f); - rounding = window->WindowRounding; - } - window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_NavWindowingHighlight, g.NavWindowingHighlightAlpha), rounding, ~0, 3.0f); - } - - // UPDATE RECTANGLES (2- THOSE AFFECTED BY SCROLLING) - - // Work rectangle. - // Affected by window padding and border size. Used by: - // - Columns() for right-most edge - // - TreeNode(), CollapsingHeader() for right-most edge - // - BeginTabBar() for right-most edge - const bool allow_scrollbar_x = !(flags & ImGuiWindowFlags_NoScrollbar) && (flags & ImGuiWindowFlags_HorizontalScrollbar); - const bool allow_scrollbar_y = !(flags & ImGuiWindowFlags_NoScrollbar); - const float work_rect_size_x = (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : ImMax(allow_scrollbar_x ? window->ContentSize.x : 0.0f, window->Size.x - window->WindowPadding.x * 2.0f - window->ScrollbarSizes.x)); - const float work_rect_size_y = (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : ImMax(allow_scrollbar_y ? window->ContentSize.y : 0.0f, window->Size.y - window->WindowPadding.y * 2.0f - decoration_up_height - window->ScrollbarSizes.y)); - window->WorkRect.Min.x = ImFloor(window->InnerRect.Min.x - window->Scroll.x + ImMax(window->WindowPadding.x, window->WindowBorderSize)); - window->WorkRect.Min.y = ImFloor(window->InnerRect.Min.y - window->Scroll.y + ImMax(window->WindowPadding.y, window->WindowBorderSize)); - window->WorkRect.Max.x = window->WorkRect.Min.x + work_rect_size_x; - window->WorkRect.Max.y = window->WorkRect.Min.y + work_rect_size_y; - window->ParentWorkRect = window->WorkRect; - - // [LEGACY] Content Region - // FIXME-OBSOLETE: window->ContentRegionRect.Max is currently very misleading / partly faulty, but some BeginChild() patterns relies on it. - // Used by: - // - Mouse wheel scrolling + many other things - window->ContentRegionRect.Min.x = window->Pos.x - window->Scroll.x + window->WindowPadding.x; - window->ContentRegionRect.Min.y = window->Pos.y - window->Scroll.y + window->WindowPadding.y + decoration_up_height; - window->ContentRegionRect.Max.x = window->ContentRegionRect.Min.x + (window->ContentSizeExplicit.x != 0.0f ? window->ContentSizeExplicit.x : (window->Size.x - window->WindowPadding.x * 2.0f - window->ScrollbarSizes.x)); - window->ContentRegionRect.Max.y = window->ContentRegionRect.Min.y + (window->ContentSizeExplicit.y != 0.0f ? window->ContentSizeExplicit.y : (window->Size.y - window->WindowPadding.y * 2.0f - decoration_up_height - window->ScrollbarSizes.y)); - - // Setup drawing context - // (NB: That term "drawing context / DC" lost its meaning a long time ago. Initially was meant to hold transient data only. Nowadays difference between window-> and window->DC-> is dubious.) - window->DC.Indent.x = 0.0f + window->WindowPadding.x - window->Scroll.x; - window->DC.GroupOffset.x = 0.0f; - window->DC.ColumnsOffset.x = 0.0f; - window->DC.CursorStartPos = window->Pos + ImVec2(window->DC.Indent.x + window->DC.ColumnsOffset.x, decoration_up_height + window->WindowPadding.y - window->Scroll.y); - window->DC.CursorPos = window->DC.CursorStartPos; - window->DC.CursorPosPrevLine = window->DC.CursorPos; - window->DC.CursorMaxPos = window->DC.CursorStartPos; - window->DC.IdealMaxPos = window->DC.CursorStartPos; - window->DC.CurrLineSize = window->DC.PrevLineSize = ImVec2(0.0f, 0.0f); - window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset = 0.0f; - - window->DC.NavLayerCurrent = ImGuiNavLayer_Main; - window->DC.NavLayerActiveMask = window->DC.NavLayerActiveMaskNext; - window->DC.NavLayerActiveMaskNext = 0x00; - window->DC.NavHideHighlightOneFrame = false; - window->DC.NavHasScroll = (window->ScrollMax.y > 0.0f); - - window->DC.MenuBarAppending = false; - window->DC.MenuColumns.Update(3, style.ItemSpacing.x, window_just_activated_by_user); - window->DC.TreeDepth = 0; - window->DC.TreeJumpToParentOnPopMask = 0x00; - window->DC.ChildWindows.resize(0); - window->DC.StateStorage = &window->StateStorage; - window->DC.CurrentColumns = NULL; - window->DC.LayoutType = ImGuiLayoutType_Vertical; - window->DC.ParentLayoutType = parent_window ? parent_window->DC.LayoutType : ImGuiLayoutType_Vertical; - window->DC.FocusCounterRegular = window->DC.FocusCounterTabStop = -1; - - window->DC.ItemWidth = window->ItemWidthDefault; - window->DC.TextWrapPos = -1.0f; // disabled - window->DC.ItemWidthStack.resize(0); - window->DC.TextWrapPosStack.resize(0); - - if (window->AutoFitFramesX > 0) - window->AutoFitFramesX--; - if (window->AutoFitFramesY > 0) - window->AutoFitFramesY--; - - // Apply focus (we need to call FocusWindow() AFTER setting DC.CursorStartPos so our initial navigation reference rectangle can start around there) - if (want_focus) - { - FocusWindow(window); - NavInitWindow(window, false); - } - - // Title bar - if (!(flags & ImGuiWindowFlags_NoTitleBar)) - RenderWindowTitleBarContents(window, ImRect(title_bar_rect.Min.x + window->WindowBorderSize, title_bar_rect.Min.y, title_bar_rect.Max.x - window->WindowBorderSize, title_bar_rect.Max.y), name, p_open); - - // Clear hit test shape every frame - window->HitTestHoleSize.x = window->HitTestHoleSize.y = 0; - - // Pressing CTRL+C while holding on a window copy its content to the clipboard - // This works but 1. doesn't handle multiple Begin/End pairs, 2. recursing into another Begin/End pair - so we need to work that out and add better logging scope. - // Maybe we can support CTRL+C on every element? - /* - //if (g.NavWindow == window && g.ActiveId == 0) - if (g.ActiveId == window->MoveId) - if (g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_C)) - LogToClipboard(); - */ - - // We fill last item data based on Title Bar/Tab, in order for IsItemHovered() and IsItemActive() to be usable after Begin(). - // This is useful to allow creating context menus on title bar only, etc. - SetLastItemData(window, window->MoveId, IsMouseHoveringRect(title_bar_rect.Min, title_bar_rect.Max, false) ? ImGuiItemStatusFlags_HoveredRect : 0, title_bar_rect); - -#ifdef IMGUI_ENABLE_TEST_ENGINE - if (!(window->Flags & ImGuiWindowFlags_NoTitleBar)) - IMGUI_TEST_ENGINE_ITEM_ADD(window->DC.LastItemRect, window->DC.LastItemId); -#endif - } - else - { - // Append - SetCurrentWindow(window); - } - - // Pull/inherit current state - window->DC.ItemFlags = g.ItemFlagsStack.back(); // Inherit from shared stack - window->DC.NavFocusScopeIdCurrent = (flags & ImGuiWindowFlags_ChildWindow) ? parent_window->DC.NavFocusScopeIdCurrent : 0; // Inherit from parent only // -V595 - - PushClipRect(window->InnerClipRect.Min, window->InnerClipRect.Max, true); - - // Clear 'accessed' flag last thing (After PushClipRect which will set the flag. We want the flag to stay false when the default "Debug" window is unused) - window->WriteAccessed = false; - window->BeginCount++; - g.NextWindowData.ClearFlags(); - - // Update visibility - if (first_begin_of_the_frame) - { - if (flags & ImGuiWindowFlags_ChildWindow) - { - // Child window can be out of sight and have "negative" clip windows. - // Mark them as collapsed so commands are skipped earlier (we can't manually collapse them because they have no title bar). - IM_ASSERT((flags & ImGuiWindowFlags_NoTitleBar) != 0); - if (!(flags & ImGuiWindowFlags_AlwaysAutoResize) && window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0) // FIXME: Doesn't make sense for ChildWindow?? - if (!g.LogEnabled) - if (window->OuterRectClipped.Min.x >= window->OuterRectClipped.Max.x || window->OuterRectClipped.Min.y >= window->OuterRectClipped.Max.y) - window->HiddenFramesCanSkipItems = 1; - - // Hide along with parent or if parent is collapsed - if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCanSkipItems > 0)) - window->HiddenFramesCanSkipItems = 1; - if (parent_window && (parent_window->Collapsed || parent_window->HiddenFramesCannotSkipItems > 0)) - window->HiddenFramesCannotSkipItems = 1; - } - - // Don't render if style alpha is 0.0 at the time of Begin(). This is arbitrary and inconsistent but has been there for a long while (may remove at some point) - if (style.Alpha <= 0.0f) - window->HiddenFramesCanSkipItems = 1; - - // Update the Hidden flag - window->Hidden = (window->HiddenFramesCanSkipItems > 0) || (window->HiddenFramesCannotSkipItems > 0) || (window->HiddenFramesForRenderOnly > 0); - - // Update the SkipItems flag, used to early out of all items functions (no layout required) - bool skip_items = false; - if (window->Collapsed || !window->Active || window->Hidden) - if (window->AutoFitFramesX <= 0 && window->AutoFitFramesY <= 0 && window->HiddenFramesCannotSkipItems <= 0) - skip_items = true; - window->SkipItems = skip_items; - } - - return !window->SkipItems; -} - -void ImGui::End() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - // Error checking: verify that user hasn't called End() too many times! - if (g.CurrentWindowStack.Size <= 1 && g.WithinFrameScopeWithImplicitWindow) - { - IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size > 1, "Calling End() too many times!"); - return; - } - IM_ASSERT(g.CurrentWindowStack.Size > 0); - - // Error checking: verify that user doesn't directly call End() on a child window. - if (window->Flags & ImGuiWindowFlags_ChildWindow) - IM_ASSERT_USER_ERROR(g.WithinEndChild, "Must call EndChild() and not End()!"); - - // Close anything that is open - if (window->DC.CurrentColumns) - EndColumns(); - PopClipRect(); // Inner window clip rectangle - - // Stop logging - if (!(window->Flags & ImGuiWindowFlags_ChildWindow)) // FIXME: add more options for scope of logging - LogFinish(); - - // Pop from window stack - g.CurrentWindowStack.pop_back(); - if (window->Flags & ImGuiWindowFlags_Popup) - g.BeginPopupStack.pop_back(); - window->DC.StackSizesOnBegin.CompareWithCurrentState(); - SetCurrentWindow(g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back()); -} - -void ImGui::BringWindowToFocusFront(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - if (g.WindowsFocusOrder.back() == window) - return; - for (int i = g.WindowsFocusOrder.Size - 2; i >= 0; i--) // We can ignore the top-most window - if (g.WindowsFocusOrder[i] == window) - { - memmove(&g.WindowsFocusOrder[i], &g.WindowsFocusOrder[i + 1], (size_t)(g.WindowsFocusOrder.Size - i - 1) * sizeof(ImGuiWindow*)); - g.WindowsFocusOrder[g.WindowsFocusOrder.Size - 1] = window; - break; - } -} - -void ImGui::BringWindowToDisplayFront(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* current_front_window = g.Windows.back(); - if (current_front_window == window || current_front_window->RootWindow == window) // Cheap early out (could be better) - return; - for (int i = g.Windows.Size - 2; i >= 0; i--) // We can ignore the top-most window - if (g.Windows[i] == window) - { - memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*)); - g.Windows[g.Windows.Size - 1] = window; - break; - } -} - -void ImGui::BringWindowToDisplayBack(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - if (g.Windows[0] == window) - return; - for (int i = 0; i < g.Windows.Size; i++) - if (g.Windows[i] == window) - { - memmove(&g.Windows[1], &g.Windows[0], (size_t)i * sizeof(ImGuiWindow*)); - g.Windows[0] = window; - break; - } -} - -// Moving window to front of display and set focus (which happens to be back of our sorted list) -void ImGui::FocusWindow(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - - if (g.NavWindow != window) - { - g.NavWindow = window; - if (window && g.NavDisableMouseHover) - g.NavMousePosDirty = true; - g.NavId = window ? window->NavLastIds[0] : 0; // Restore NavId - g.NavFocusScopeId = 0; - g.NavIdIsAlive = false; - g.NavLayer = ImGuiNavLayer_Main; - g.NavInitRequest = g.NavMoveRequest = false; - NavUpdateAnyRequestFlag(); - //IMGUI_DEBUG_LOG("FocusWindow(\"%s\")\n", window ? window->Name : NULL); - } - - // Close popups if any - ClosePopupsOverWindow(window, false); - - // Move the root window to the top of the pile - IM_ASSERT(window == NULL || window->RootWindow != NULL); - ImGuiWindow* focus_front_window = window ? window->RootWindow : NULL; // NB: In docking branch this is window->RootWindowDockStop - ImGuiWindow* display_front_window = window ? window->RootWindow : NULL; - - // Steal active widgets. Some of the cases it triggers includes: - // - Focus a window while an InputText in another window is active, if focus happens before the old InputText can run. - // - When using Nav to activate menu items (due to timing of activating on press->new window appears->losing ActiveId) - if (g.ActiveId != 0 && g.ActiveIdWindow && g.ActiveIdWindow->RootWindow != focus_front_window) - if (!g.ActiveIdNoClearOnFocusLoss) - ClearActiveID(); - - // Passing NULL allow to disable keyboard focus - if (!window) - return; - - // Bring to front - BringWindowToFocusFront(focus_front_window); - if (((window->Flags | display_front_window->Flags) & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0) - BringWindowToDisplayFront(display_front_window); -} - -void ImGui::FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window) -{ - ImGuiContext& g = *GImGui; - - int start_idx = g.WindowsFocusOrder.Size - 1; - if (under_this_window != NULL) - { - int under_this_window_idx = FindWindowFocusIndex(under_this_window); - if (under_this_window_idx != -1) - start_idx = under_this_window_idx - 1; - } - for (int i = start_idx; i >= 0; i--) - { - // We may later decide to test for different NoXXXInputs based on the active navigation input (mouse vs nav) but that may feel more confusing to the user. - ImGuiWindow* window = g.WindowsFocusOrder[i]; - if (window != ignore_window && window->WasActive && !(window->Flags & ImGuiWindowFlags_ChildWindow)) - if ((window->Flags & (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) != (ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs)) - { - ImGuiWindow* focus_window = NavRestoreLastChildNavWindow(window); - FocusWindow(focus_window); - return; - } - } - FocusWindow(NULL); -} - -// Important: this alone doesn't alter current ImDrawList state. This is called by PushFont/PopFont only. -void ImGui::SetCurrentFont(ImFont* font) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(font && font->IsLoaded()); // Font Atlas not created. Did you call io.Fonts->GetTexDataAsRGBA32 / GetTexDataAsAlpha8 ? - IM_ASSERT(font->Scale > 0.0f); - g.Font = font; - g.FontBaseSize = ImMax(1.0f, g.IO.FontGlobalScale * g.Font->FontSize * g.Font->Scale); - g.FontSize = g.CurrentWindow ? g.CurrentWindow->CalcFontSize() : 0.0f; - - ImFontAtlas* atlas = g.Font->ContainerAtlas; - g.DrawListSharedData.TexUvWhitePixel = atlas->TexUvWhitePixel; - g.DrawListSharedData.TexUvLines = atlas->TexUvLines; - g.DrawListSharedData.Font = g.Font; - g.DrawListSharedData.FontSize = g.FontSize; -} - -void ImGui::PushFont(ImFont* font) -{ - ImGuiContext& g = *GImGui; - if (!font) - font = GetDefaultFont(); - SetCurrentFont(font); - g.FontStack.push_back(font); - g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID); -} - -void ImGui::PopFont() -{ - ImGuiContext& g = *GImGui; - g.CurrentWindow->DrawList->PopTextureID(); - g.FontStack.pop_back(); - SetCurrentFont(g.FontStack.empty() ? GetDefaultFont() : g.FontStack.back()); -} - -void ImGui::PushItemFlag(ImGuiItemFlags option, bool enabled) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiItemFlags item_flags = window->DC.ItemFlags; - IM_ASSERT(item_flags == g.ItemFlagsStack.back()); - if (enabled) - item_flags |= option; - else - item_flags &= ~option; - window->DC.ItemFlags = item_flags; - g.ItemFlagsStack.push_back(item_flags); -} - -void ImGui::PopItemFlag() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT(g.ItemFlagsStack.Size > 1); // Too many calls to PopItemFlag() - we always leave a 0 at the bottom of the stack. - g.ItemFlagsStack.pop_back(); - window->DC.ItemFlags = g.ItemFlagsStack.back(); -} - -// FIXME: Look into renaming this once we have settled the new Focus/Activation/TabStop system. -void ImGui::PushAllowKeyboardFocus(bool allow_keyboard_focus) -{ - PushItemFlag(ImGuiItemFlags_NoTabStop, !allow_keyboard_focus); -} - -void ImGui::PopAllowKeyboardFocus() -{ - PopItemFlag(); -} - -void ImGui::PushButtonRepeat(bool repeat) -{ - PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); -} - -void ImGui::PopButtonRepeat() -{ - PopItemFlag(); -} - -void ImGui::PushTextWrapPos(float wrap_pos_x) -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DC.TextWrapPosStack.push_back(window->DC.TextWrapPos); - window->DC.TextWrapPos = wrap_pos_x; -} - -void ImGui::PopTextWrapPos() -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DC.TextWrapPos = window->DC.TextWrapPosStack.back(); - window->DC.TextWrapPosStack.pop_back(); -} - -bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent) -{ - if (window->RootWindow == potential_parent) - return true; - while (window != NULL) - { - if (window == potential_parent) - return true; - window = window->ParentWindow; - } - return false; -} - -bool ImGui::IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below) -{ - ImGuiContext& g = *GImGui; - for (int i = g.Windows.Size - 1; i >= 0; i--) - { - ImGuiWindow* candidate_window = g.Windows[i]; - if (candidate_window == potential_above) - return true; - if (candidate_window == potential_below) - return false; - } - return false; -} - -bool ImGui::IsWindowHovered(ImGuiHoveredFlags flags) -{ - IM_ASSERT((flags & ImGuiHoveredFlags_AllowWhenOverlapped) == 0); // Flags not supported by this function - ImGuiContext& g = *GImGui; - if (g.HoveredWindow == NULL) - return false; - - if ((flags & ImGuiHoveredFlags_AnyWindow) == 0) - { - ImGuiWindow* window = g.CurrentWindow; - switch (flags & (ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows)) - { - case ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows: - if (g.HoveredWindow->RootWindow != window->RootWindow) - return false; - break; - case ImGuiHoveredFlags_RootWindow: - if (g.HoveredWindow != window->RootWindow) - return false; - break; - case ImGuiHoveredFlags_ChildWindows: - if (!IsWindowChildOf(g.HoveredWindow, window)) - return false; - break; - default: - if (g.HoveredWindow != window) - return false; - break; - } - } - - if (!IsWindowContentHoverable(g.HoveredWindow, flags)) - return false; - if (!(flags & ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) - if (g.ActiveId != 0 && !g.ActiveIdAllowOverlap && g.ActiveId != g.HoveredWindow->MoveId) - return false; - return true; -} - -bool ImGui::IsWindowFocused(ImGuiFocusedFlags flags) -{ - ImGuiContext& g = *GImGui; - - if (flags & ImGuiFocusedFlags_AnyWindow) - return g.NavWindow != NULL; - - IM_ASSERT(g.CurrentWindow); // Not inside a Begin()/End() - switch (flags & (ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows)) - { - case ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows: - return g.NavWindow && g.NavWindow->RootWindow == g.CurrentWindow->RootWindow; - case ImGuiFocusedFlags_RootWindow: - return g.NavWindow == g.CurrentWindow->RootWindow; - case ImGuiFocusedFlags_ChildWindows: - return g.NavWindow && IsWindowChildOf(g.NavWindow, g.CurrentWindow); - default: - return g.NavWindow == g.CurrentWindow; - } -} - -// Can we focus this window with CTRL+TAB (or PadMenu + PadFocusPrev/PadFocusNext) -// Note that NoNavFocus makes the window not reachable with CTRL+TAB but it can still be focused with mouse or programmatically. -// If you want a window to never be focused, you may use the e.g. NoInputs flag. -bool ImGui::IsWindowNavFocusable(ImGuiWindow* window) -{ - return window->WasActive && window == window->RootWindow && !(window->Flags & ImGuiWindowFlags_NoNavFocus); -} - -float ImGui::GetWindowWidth() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->Size.x; -} - -float ImGui::GetWindowHeight() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->Size.y; -} - -ImVec2 ImGui::GetWindowPos() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - return window->Pos; -} - -void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond) -{ - // Test condition (NB: bit 0 is always true) and clear flags for next time - if (cond && (window->SetWindowPosAllowFlags & cond) == 0) - return; - - IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. - window->SetWindowPosAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); - window->SetWindowPosVal = ImVec2(FLT_MAX, FLT_MAX); - - // Set - const ImVec2 old_pos = window->Pos; - window->Pos = ImFloor(pos); - ImVec2 offset = window->Pos - old_pos; - window->DC.CursorPos += offset; // As we happen to move the window while it is being appended to (which is a bad idea - will smear) let's at least offset the cursor - window->DC.CursorMaxPos += offset; // And more importantly we need to offset CursorMaxPos/CursorStartPos this so ContentSize calculation doesn't get affected. - window->DC.IdealMaxPos += offset; - window->DC.CursorStartPos += offset; -} - -void ImGui::SetWindowPos(const ImVec2& pos, ImGuiCond cond) -{ - ImGuiWindow* window = GetCurrentWindowRead(); - SetWindowPos(window, pos, cond); -} - -void ImGui::SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond) -{ - if (ImGuiWindow* window = FindWindowByName(name)) - SetWindowPos(window, pos, cond); -} - -ImVec2 ImGui::GetWindowSize() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->Size; -} - -void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond) -{ - // Test condition (NB: bit 0 is always true) and clear flags for next time - if (cond && (window->SetWindowSizeAllowFlags & cond) == 0) - return; - - IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. - window->SetWindowSizeAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); - - // Set - if (size.x > 0.0f) - { - window->AutoFitFramesX = 0; - window->SizeFull.x = IM_FLOOR(size.x); - } - else - { - window->AutoFitFramesX = 2; - window->AutoFitOnlyGrows = false; - } - if (size.y > 0.0f) - { - window->AutoFitFramesY = 0; - window->SizeFull.y = IM_FLOOR(size.y); - } - else - { - window->AutoFitFramesY = 2; - window->AutoFitOnlyGrows = false; - } -} - -void ImGui::SetWindowSize(const ImVec2& size, ImGuiCond cond) -{ - SetWindowSize(GImGui->CurrentWindow, size, cond); -} - -void ImGui::SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond) -{ - if (ImGuiWindow* window = FindWindowByName(name)) - SetWindowSize(window, size, cond); -} - -void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond) -{ - // Test condition (NB: bit 0 is always true) and clear flags for next time - if (cond && (window->SetWindowCollapsedAllowFlags & cond) == 0) - return; - window->SetWindowCollapsedAllowFlags &= ~(ImGuiCond_Once | ImGuiCond_FirstUseEver | ImGuiCond_Appearing); - - // Set - window->Collapsed = collapsed; -} - -void ImGui::SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size) -{ - IM_ASSERT(window->HitTestHoleSize.x == 0); // We don't support multiple holes/hit test filters - window->HitTestHoleSize = ImVec2ih(size); - window->HitTestHoleOffset = ImVec2ih(pos - window->Pos); -} - -void ImGui::SetWindowCollapsed(bool collapsed, ImGuiCond cond) -{ - SetWindowCollapsed(GImGui->CurrentWindow, collapsed, cond); -} - -bool ImGui::IsWindowCollapsed() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->Collapsed; -} - -bool ImGui::IsWindowAppearing() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->Appearing; -} - -void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond) -{ - if (ImGuiWindow* window = FindWindowByName(name)) - SetWindowCollapsed(window, collapsed, cond); -} - -void ImGui::SetWindowFocus() -{ - FocusWindow(GImGui->CurrentWindow); -} - -void ImGui::SetWindowFocus(const char* name) -{ - if (name) - { - if (ImGuiWindow* window = FindWindowByName(name)) - FocusWindow(window); - } - else - { - FocusWindow(NULL); - } -} - -void ImGui::SetNextWindowPos(const ImVec2& pos, ImGuiCond cond, const ImVec2& pivot) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasPos; - g.NextWindowData.PosVal = pos; - g.NextWindowData.PosPivotVal = pivot; - g.NextWindowData.PosCond = cond ? cond : ImGuiCond_Always; -} - -void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSize; - g.NextWindowData.SizeVal = size; - g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always; -} - -void ImGui::SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback, void* custom_callback_user_data) -{ - ImGuiContext& g = *GImGui; - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint; - g.NextWindowData.SizeConstraintRect = ImRect(size_min, size_max); - g.NextWindowData.SizeCallback = custom_callback; - g.NextWindowData.SizeCallbackUserData = custom_callback_user_data; -} - -// Content size = inner scrollable rectangle, padded with WindowPadding. -// SetNextWindowContentSize(ImVec2(100,100) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item. -void ImGui::SetNextWindowContentSize(const ImVec2& size) -{ - ImGuiContext& g = *GImGui; - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasContentSize; - g.NextWindowData.ContentSizeVal = ImFloor(size); -} - -void ImGui::SetNextWindowScroll(const ImVec2& scroll) -{ - ImGuiContext& g = *GImGui; - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasScroll; - g.NextWindowData.ScrollVal = scroll; -} - -void ImGui::SetNextWindowCollapsed(bool collapsed, ImGuiCond cond) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasCollapsed; - g.NextWindowData.CollapsedVal = collapsed; - g.NextWindowData.CollapsedCond = cond ? cond : ImGuiCond_Always; -} - -void ImGui::SetNextWindowFocus() -{ - ImGuiContext& g = *GImGui; - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasFocus; -} - -void ImGui::SetNextWindowBgAlpha(float alpha) -{ - ImGuiContext& g = *GImGui; - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasBgAlpha; - g.NextWindowData.BgAlphaVal = alpha; -} - -ImDrawList* ImGui::GetWindowDrawList() -{ - ImGuiWindow* window = GetCurrentWindow(); - return window->DrawList; -} - -ImFont* ImGui::GetFont() -{ - return GImGui->Font; -} - -float ImGui::GetFontSize() -{ - return GImGui->FontSize; -} - -ImVec2 ImGui::GetFontTexUvWhitePixel() -{ - return GImGui->DrawListSharedData.TexUvWhitePixel; -} - -void ImGui::SetWindowFontScale(float scale) -{ - IM_ASSERT(scale > 0.0f); - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - window->FontWindowScale = scale; - g.FontSize = g.DrawListSharedData.FontSize = window->CalcFontSize(); -} - -void ImGui::ActivateItem(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - g.NavNextActivateId = id; -} - -void ImGui::PushFocusScope(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - g.FocusScopeStack.push_back(window->DC.NavFocusScopeIdCurrent); - window->DC.NavFocusScopeIdCurrent = id; -} - -void ImGui::PopFocusScope() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT(g.FocusScopeStack.Size > 0); // Too many PopFocusScope() ? - window->DC.NavFocusScopeIdCurrent = g.FocusScopeStack.back(); - g.FocusScopeStack.pop_back(); -} - -void ImGui::SetKeyboardFocusHere(int offset) -{ - IM_ASSERT(offset >= -1); // -1 is allowed but not below - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - g.FocusRequestNextWindow = window; - g.FocusRequestNextCounterRegular = window->DC.FocusCounterRegular + 1 + offset; - g.FocusRequestNextCounterTabStop = INT_MAX; -} - -void ImGui::SetItemDefaultFocus() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (!window->Appearing) - return; - if (g.NavWindow == window->RootWindowForNav && (g.NavInitRequest || g.NavInitResultId != 0) && g.NavLayer == g.NavWindow->DC.NavLayerCurrent) - { - g.NavInitRequest = false; - g.NavInitResultId = g.NavWindow->DC.LastItemId; - g.NavInitResultRectRel = ImRect(g.NavWindow->DC.LastItemRect.Min - g.NavWindow->Pos, g.NavWindow->DC.LastItemRect.Max - g.NavWindow->Pos); - NavUpdateAnyRequestFlag(); - if (!IsItemVisible()) - SetScrollHereY(); - } -} - -void ImGui::SetStateStorage(ImGuiStorage* tree) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - window->DC.StateStorage = tree ? tree : &window->StateStorage; -} - -ImGuiStorage* ImGui::GetStateStorage() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->DC.StateStorage; -} - -void ImGui::PushID(const char* str_id) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(str_id); - window->IDStack.push_back(id); -} - -void ImGui::PushID(const char* str_id_begin, const char* str_id_end) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(str_id_begin, str_id_end); - window->IDStack.push_back(id); -} - -void ImGui::PushID(const void* ptr_id) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(ptr_id); - window->IDStack.push_back(id); -} - -void ImGui::PushID(int int_id) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiID id = window->GetIDNoKeepAlive(int_id); - window->IDStack.push_back(id); -} - -// Push a given id value ignoring the ID stack as a seed. -void ImGui::PushOverrideID(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - window->IDStack.push_back(id); -} - -// Helper to avoid a common series of PushOverrideID -> GetID() -> PopID() call -// (note that when using this pattern, TestEngine's "Stack Tool" will tend to not display the intermediate stack level. -// for that to work we would need to do PushOverrideID() -> ItemAdd() -> PopID() which would alter widget code a little more) -ImGuiID ImGui::GetIDWithSeed(const char* str, const char* str_end, ImGuiID seed) -{ - ImGuiID id = ImHashStr(str, str_end ? (str_end - str) : 0, seed); - ImGui::KeepAliveID(id); -#ifdef IMGUI_ENABLE_TEST_ENGINE - ImGuiContext& g = *GImGui; - IMGUI_TEST_ENGINE_ID_INFO2(id, ImGuiDataType_String, str, str_end); -#endif - return id; -} - -void ImGui::PopID() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - IM_ASSERT(window->IDStack.Size > 1); // Too many PopID(), or could be popping in a wrong/different window? - window->IDStack.pop_back(); -} - -ImGuiID ImGui::GetID(const char* str_id) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->GetID(str_id); -} - -ImGuiID ImGui::GetID(const char* str_id_begin, const char* str_id_end) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->GetID(str_id_begin, str_id_end); -} - -ImGuiID ImGui::GetID(const void* ptr_id) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->GetID(ptr_id); -} - -bool ImGui::IsRectVisible(const ImVec2& size) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ClipRect.Overlaps(ImRect(window->DC.CursorPos, window->DC.CursorPos + size)); -} - -bool ImGui::IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ClipRect.Overlaps(ImRect(rect_min, rect_max)); -} - - -//----------------------------------------------------------------------------- -// [SECTION] ERROR CHECKING -//----------------------------------------------------------------------------- - -// Helper function to verify ABI compatibility between caller code and compiled version of Dear ImGui. -// Verify that the type sizes are matching between the calling file's compilation unit and imgui.cpp's compilation unit -// If the user has inconsistent compilation settings, imgui configuration #define, packing pragma, etc. your user code -// may see different structures than what imgui.cpp sees, which is problematic. -// We usually require settings to be in imconfig.h to make sure that they are accessible to all compilation units involved with Dear ImGui. -bool ImGui::DebugCheckVersionAndDataLayout(const char* version, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_vert, size_t sz_idx) -{ - bool error = false; - if (strcmp(version, IMGUI_VERSION) != 0) { error = true; IM_ASSERT(strcmp(version, IMGUI_VERSION) == 0 && "Mismatched version string!"); } - if (sz_io != sizeof(ImGuiIO)) { error = true; IM_ASSERT(sz_io == sizeof(ImGuiIO) && "Mismatched struct layout!"); } - if (sz_style != sizeof(ImGuiStyle)) { error = true; IM_ASSERT(sz_style == sizeof(ImGuiStyle) && "Mismatched struct layout!"); } - if (sz_vec2 != sizeof(ImVec2)) { error = true; IM_ASSERT(sz_vec2 == sizeof(ImVec2) && "Mismatched struct layout!"); } - if (sz_vec4 != sizeof(ImVec4)) { error = true; IM_ASSERT(sz_vec4 == sizeof(ImVec4) && "Mismatched struct layout!"); } - if (sz_vert != sizeof(ImDrawVert)) { error = true; IM_ASSERT(sz_vert == sizeof(ImDrawVert) && "Mismatched struct layout!"); } - if (sz_idx != sizeof(ImDrawIdx)) { error = true; IM_ASSERT(sz_idx == sizeof(ImDrawIdx) && "Mismatched struct layout!"); } - return !error; -} - -static void ImGui::ErrorCheckNewFrameSanityChecks() -{ - ImGuiContext& g = *GImGui; - - // Check user IM_ASSERT macro - // (IF YOU GET A WARNING OR COMPILE ERROR HERE: it means you assert macro is incorrectly defined! - // If your macro uses multiple statements, it NEEDS to be surrounded by a 'do { ... } while (0)' block. - // This is a common C/C++ idiom to allow multiple statements macros to be used in control flow blocks.) - // #define IM_ASSERT(EXPR) if (SomeCode(EXPR)) SomeMoreCode(); // Wrong! - // #define IM_ASSERT(EXPR) do { if (SomeCode(EXPR)) SomeMoreCode(); } while (0) // Correct! - if (true) IM_ASSERT(1); else IM_ASSERT(0); - - // Check user data - // (We pass an error message in the assert expression to make it visible to programmers who are not using a debugger, as most assert handlers display their argument) - IM_ASSERT(g.Initialized); - IM_ASSERT((g.IO.DeltaTime > 0.0f || g.FrameCount == 0) && "Need a positive DeltaTime!"); - IM_ASSERT((g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?"); - IM_ASSERT(g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value!"); - IM_ASSERT(g.IO.Fonts->Fonts.Size > 0 && "Font Atlas not built. Did you call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()?"); - IM_ASSERT(g.IO.Fonts->Fonts[0]->IsLoaded() && "Font Atlas not built. Did you call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()?"); - IM_ASSERT(g.Style.CurveTessellationTol > 0.0f && "Invalid style setting!"); - IM_ASSERT(g.Style.CircleTessellationMaxError > 0.0f && "Invalid style setting!"); - IM_ASSERT(g.Style.Alpha >= 0.0f && g.Style.Alpha <= 1.0f && "Invalid style setting!"); // Allows us to avoid a few clamps in color computations - IM_ASSERT(g.Style.WindowMinSize.x >= 1.0f && g.Style.WindowMinSize.y >= 1.0f && "Invalid style setting."); - IM_ASSERT(g.Style.WindowMenuButtonPosition == ImGuiDir_None || g.Style.WindowMenuButtonPosition == ImGuiDir_Left || g.Style.WindowMenuButtonPosition == ImGuiDir_Right); - for (int n = 0; n < ImGuiKey_COUNT; n++) - IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < IM_ARRAYSIZE(g.IO.KeysDown) && "io.KeyMap[] contains an out of bound value (need to be 0..512, or -1 for unmapped key)"); - - // Check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only added in 1.60 WIP) - if (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) - IM_ASSERT(g.IO.KeyMap[ImGuiKey_Space] != -1 && "ImGuiKey_Space is not mapped, required for keyboard navigation."); - - // Check: the io.ConfigWindowsResizeFromEdges option requires backend to honor mouse cursor changes and set the ImGuiBackendFlags_HasMouseCursors flag accordingly. - if (g.IO.ConfigWindowsResizeFromEdges && !(g.IO.BackendFlags & ImGuiBackendFlags_HasMouseCursors)) - g.IO.ConfigWindowsResizeFromEdges = false; -} - -static void ImGui::ErrorCheckEndFrameSanityChecks() -{ - ImGuiContext& g = *GImGui; - - // Verify that io.KeyXXX fields haven't been tampered with. Key mods should not be modified between NewFrame() and EndFrame() - // One possible reason leading to this assert is that your backends update inputs _AFTER_ NewFrame(). - // It is known that when some modal native windows called mid-frame takes focus away, some backends such as GLFW will - // send key release events mid-frame. This would normally trigger this assertion and lead to sheared inputs. - // We silently accommodate for this case by ignoring/ the case where all io.KeyXXX modifiers were released (aka key_mod_flags == 0), - // while still correctly asserting on mid-frame key press events. - const ImGuiKeyModFlags key_mod_flags = GetMergedKeyModFlags(); - IM_ASSERT((key_mod_flags == 0 || g.IO.KeyMods == key_mod_flags) && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); - IM_UNUSED(key_mod_flags); - - // Recover from errors - //ErrorCheckEndFrameRecover(); - - // Report when there is a mismatch of Begin/BeginChild vs End/EndChild calls. Important: Remember that the Begin/BeginChild API requires you - // to always call End/EndChild even if Begin/BeginChild returns false! (this is unfortunately inconsistent with most other Begin* API). - if (g.CurrentWindowStack.Size != 1) - { - if (g.CurrentWindowStack.Size > 1) - { - IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?"); - while (g.CurrentWindowStack.Size > 1) - End(); - } - else - { - IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you call End/EndChild too much?"); - } - } - - IM_ASSERT_USER_ERROR(g.GroupStack.Size == 0, "Missing EndGroup call!"); -} - -// Experimental recovery from incorrect usage of BeginXXX/EndXXX/PushXXX/PopXXX calls. -// Must be called during or before EndFrame(). -// This is generally flawed as we are not necessarily End/Popping things in the right order. -// FIXME: Can't recover from inside BeginTabItem/EndTabItem yet. -// FIXME: Can't recover from interleaved BeginTabBar/Begin -void ImGui::ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data) -{ - // PVS-Studio V1044 is "Loop break conditions do not depend on the number of iterations" - ImGuiContext& g = *GImGui; - while (g.CurrentWindowStack.Size > 0) - { -#ifdef IMGUI_HAS_TABLE - while (g.CurrentTable && (g.CurrentTable->OuterWindow == g.CurrentWindow || g.CurrentTable->InnerWindow == g.CurrentWindow)) - { - if (log_callback) log_callback(user_data, "Recovered from missing EndTable() in '%s'", g.CurrentTable->OuterWindow->Name); - EndTable(); - } -#endif - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT(window != NULL); - while (g.CurrentTabBar != NULL) //-V1044 - { - if (log_callback) log_callback(user_data, "Recovered from missing EndTabBar() in '%s'", window->Name); - EndTabBar(); - } - while (window->DC.TreeDepth > 0) - { - if (log_callback) log_callback(user_data, "Recovered from missing TreePop() in '%s'", window->Name); - TreePop(); - } - while (g.GroupStack.Size > window->DC.StackSizesOnBegin.SizeOfGroupStack) - { - if (log_callback) log_callback(user_data, "Recovered from missing EndGroup() in '%s'", window->Name); - EndGroup(); - } - while (window->IDStack.Size > 1) - { - if (log_callback) log_callback(user_data, "Recovered from missing PopID() in '%s'", window->Name); - PopID(); - } - while (g.ColorStack.Size > window->DC.StackSizesOnBegin.SizeOfColorStack) - { - if (log_callback) log_callback(user_data, "Recovered from missing PopStyleColor() in '%s' for ImGuiCol_%s", window->Name, GetStyleColorName(g.ColorStack.back().Col)); - PopStyleColor(); - } - while (g.StyleVarStack.Size > window->DC.StackSizesOnBegin.SizeOfStyleVarStack) - { - if (log_callback) log_callback(user_data, "Recovered from missing PopStyleVar() in '%s'", window->Name); - PopStyleVar(); - } - while (g.FocusScopeStack.Size > window->DC.StackSizesOnBegin.SizeOfFocusScopeStack) - { - if (log_callback) log_callback(user_data, "Recovered from missing PopFocusScope() in '%s'", window->Name); - PopFocusScope(); - } - if (g.CurrentWindowStack.Size == 1) - { - IM_ASSERT(g.CurrentWindow->IsFallbackWindow); - break; - } - IM_ASSERT(window == g.CurrentWindow); - if (window->Flags & ImGuiWindowFlags_ChildWindow) - { - if (log_callback) log_callback(user_data, "Recovered from missing EndChild() for '%s'", window->Name); - EndChild(); - } - else - { - if (log_callback) log_callback(user_data, "Recovered from missing End() for '%s'", window->Name); - End(); - } - } -} - -// Save current stack sizes for later compare -void ImGuiStackSizes::SetToCurrentState() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - SizeOfIDStack = (short)window->IDStack.Size; - SizeOfColorStack = (short)g.ColorStack.Size; - SizeOfStyleVarStack = (short)g.StyleVarStack.Size; - SizeOfFontStack = (short)g.FontStack.Size; - SizeOfFocusScopeStack = (short)g.FocusScopeStack.Size; - SizeOfGroupStack = (short)g.GroupStack.Size; - SizeOfBeginPopupStack = (short)g.BeginPopupStack.Size; -} - -// Compare to detect usage errors -void ImGuiStackSizes::CompareWithCurrentState() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_UNUSED(window); - - // Window stacks - // NOT checking: DC.ItemWidth, DC.TextWrapPos (per window) to allow user to conveniently push once and not pop (they are cleared on Begin) - IM_ASSERT(SizeOfIDStack == window->IDStack.Size && "PushID/PopID or TreeNode/TreePop Mismatch!"); - - // Global stacks - // For color, style and font stacks there is an incentive to use Push/Begin/Pop/.../End patterns, so we relax our checks a little to allow them. - IM_ASSERT(SizeOfGroupStack == g.GroupStack.Size && "BeginGroup/EndGroup Mismatch!"); - IM_ASSERT(SizeOfBeginPopupStack == g.BeginPopupStack.Size && "BeginPopup/EndPopup or BeginMenu/EndMenu Mismatch!"); - IM_ASSERT(SizeOfColorStack >= g.ColorStack.Size && "PushStyleColor/PopStyleColor Mismatch!"); - IM_ASSERT(SizeOfStyleVarStack >= g.StyleVarStack.Size && "PushStyleVar/PopStyleVar Mismatch!"); - IM_ASSERT(SizeOfFontStack >= g.FontStack.Size && "PushFont/PopFont Mismatch!"); - IM_ASSERT(SizeOfFocusScopeStack == g.FocusScopeStack.Size && "PushFocusScope/PopFocusScope Mismatch!"); -} - - -//----------------------------------------------------------------------------- -// [SECTION] LAYOUT -//----------------------------------------------------------------------------- -// - ItemSize() -// - ItemAdd() -// - SameLine() -// - GetCursorScreenPos() -// - SetCursorScreenPos() -// - GetCursorPos(), GetCursorPosX(), GetCursorPosY() -// - SetCursorPos(), SetCursorPosX(), SetCursorPosY() -// - GetCursorStartPos() -// - Indent() -// - Unindent() -// - SetNextItemWidth() -// - PushItemWidth() -// - PushMultiItemsWidths() -// - PopItemWidth() -// - CalcItemWidth() -// - CalcItemSize() -// - GetTextLineHeight() -// - GetTextLineHeightWithSpacing() -// - GetFrameHeight() -// - GetFrameHeightWithSpacing() -// - GetContentRegionMax() -// - GetContentRegionMaxAbs() [Internal] -// - GetContentRegionAvail(), -// - GetWindowContentRegionMin(), GetWindowContentRegionMax() -// - GetWindowContentRegionWidth() -// - BeginGroup() -// - EndGroup() -// Also see in imgui_widgets: tab bars, columns. -//----------------------------------------------------------------------------- - -// Advance cursor given item size for layout. -// Register minimum needed size so it can extend the bounding box used for auto-fit calculation. -// See comments in ItemAdd() about how/why the size provided to ItemSize() vs ItemAdd() may often different. -void ImGui::ItemSize(const ImVec2& size, float text_baseline_y) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return; - - // We increase the height in this function to accommodate for baseline offset. - // In theory we should be offsetting the starting position (window->DC.CursorPos), that will be the topic of a larger refactor, - // but since ItemSize() is not yet an API that moves the cursor (to handle e.g. wrapping) enlarging the height has the same effect. - const float offset_to_match_baseline_y = (text_baseline_y >= 0) ? ImMax(0.0f, window->DC.CurrLineTextBaseOffset - text_baseline_y) : 0.0f; - const float line_height = ImMax(window->DC.CurrLineSize.y, size.y + offset_to_match_baseline_y); - - // Always align ourselves on pixel boundaries - //if (g.IO.KeyAlt) window->DrawList->AddRect(window->DC.CursorPos, window->DC.CursorPos + ImVec2(size.x, line_height), IM_COL32(255,0,0,200)); // [DEBUG] - window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x + size.x; - window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y; - window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); // Next line - window->DC.CursorPos.y = IM_FLOOR(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y); // Next line - window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPosPrevLine.x); - window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y - g.Style.ItemSpacing.y); - //if (g.IO.KeyAlt) window->DrawList->AddCircle(window->DC.CursorMaxPos, 3.0f, IM_COL32(255,0,0,255), 4); // [DEBUG] - - window->DC.PrevLineSize.y = line_height; - window->DC.CurrLineSize.y = 0.0f; - window->DC.PrevLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, text_baseline_y); - window->DC.CurrLineTextBaseOffset = 0.0f; - - // Horizontal layout mode - if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) - SameLine(); -} - -void ImGui::ItemSize(const ImRect& bb, float text_baseline_y) -{ - ItemSize(bb.GetSize(), text_baseline_y); -} - -// Declare item bounding box for clipping and interaction. -// Note that the size can be different than the one provided to ItemSize(). Typically, widgets that spread over available surface -// declare their minimum size requirement to ItemSize() and provide a larger region to ItemAdd() which is used drawing/interaction. -bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - if (id != 0) - { - // Navigation processing runs prior to clipping early-out - // (a) So that NavInitRequest can be honored, for newly opened windows to select a default widget - // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests - // unfortunately, but it is still limited to one window. It may not scale very well for windows with ten of - // thousands of item, but at least NavMoveRequest is only set on user interaction, aka maximum once a frame. - // We could early out with "if (is_clipped && !g.NavInitRequest) return false;" but when we wouldn't be able - // to reach unclipped widgets. This would work if user had explicit scrolling control (e.g. mapped on a stick). - // We intentionally don't check if g.NavWindow != NULL because g.NavAnyRequest should only be set when it is non null. - // If we crash on a NULL g.NavWindow we need to fix the bug elsewhere. - window->DC.NavLayerActiveMaskNext |= (1 << window->DC.NavLayerCurrent); - if (g.NavId == id || g.NavAnyRequest) - if (g.NavWindow->RootWindowForNav == window->RootWindowForNav) - if (window == g.NavWindow || ((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened)) - NavProcessItem(window, nav_bb_arg ? *nav_bb_arg : bb, id); - - // [DEBUG] Item Picker tool, when enabling the "extended" version we perform the check in ItemAdd() -#ifdef IMGUI_DEBUG_TOOL_ITEM_PICKER_EX - if (id == g.DebugItemPickerBreakId) - { - IM_DEBUG_BREAK(); - g.DebugItemPickerBreakId = 0; - } -#endif - } - - // Equivalent to calling SetLastItemData() - window->DC.LastItemId = id; - window->DC.LastItemRect = bb; - window->DC.LastItemStatusFlags = ImGuiItemStatusFlags_None; - g.NextItemData.Flags = ImGuiNextItemDataFlags_None; - -#ifdef IMGUI_ENABLE_TEST_ENGINE - if (id != 0) - IMGUI_TEST_ENGINE_ITEM_ADD(nav_bb_arg ? *nav_bb_arg : bb, id); -#endif - - // Clipping test - const bool is_clipped = IsClippedEx(bb, id, false); - if (is_clipped) - return false; - //if (g.IO.KeyAlt) window->DrawList->AddRect(bb.Min, bb.Max, IM_COL32(255,255,0,120)); // [DEBUG] - - // We need to calculate this now to take account of the current clipping rectangle (as items like Selectable may change them) - if (IsMouseHoveringRect(bb.Min, bb.Max)) - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HoveredRect; - return true; -} - -// Gets back to previous line and continue with horizontal layout -// offset_from_start_x == 0 : follow right after previous item -// offset_from_start_x != 0 : align to specified x position (relative to window/group left) -// spacing_w < 0 : use default spacing if pos_x == 0, no spacing if pos_x != 0 -// spacing_w >= 0 : enforce spacing amount -void ImGui::SameLine(float offset_from_start_x, float spacing_w) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - if (offset_from_start_x != 0.0f) - { - if (spacing_w < 0.0f) spacing_w = 0.0f; - window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + offset_from_start_x + spacing_w + window->DC.GroupOffset.x + window->DC.ColumnsOffset.x; - window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; - } - else - { - if (spacing_w < 0.0f) spacing_w = g.Style.ItemSpacing.x; - window->DC.CursorPos.x = window->DC.CursorPosPrevLine.x + spacing_w; - window->DC.CursorPos.y = window->DC.CursorPosPrevLine.y; - } - window->DC.CurrLineSize = window->DC.PrevLineSize; - window->DC.CurrLineTextBaseOffset = window->DC.PrevLineTextBaseOffset; -} - -ImVec2 ImGui::GetCursorScreenPos() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.CursorPos; -} - -void ImGui::SetCursorScreenPos(const ImVec2& pos) -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DC.CursorPos = pos; - window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); -} - -// User generally sees positions in window coordinates. Internally we store CursorPos in absolute screen coordinates because it is more convenient. -// Conversion happens as we pass the value to user, but it makes our naming convention confusing because GetCursorPos() == (DC.CursorPos - window.Pos). May want to rename 'DC.CursorPos'. -ImVec2 ImGui::GetCursorPos() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.CursorPos - window->Pos + window->Scroll; -} - -float ImGui::GetCursorPosX() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.CursorPos.x - window->Pos.x + window->Scroll.x; -} - -float ImGui::GetCursorPosY() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.CursorPos.y - window->Pos.y + window->Scroll.y; -} - -void ImGui::SetCursorPos(const ImVec2& local_pos) -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DC.CursorPos = window->Pos - window->Scroll + local_pos; - window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, window->DC.CursorPos); -} - -void ImGui::SetCursorPosX(float x) -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DC.CursorPos.x = window->Pos.x - window->Scroll.x + x; - window->DC.CursorMaxPos.x = ImMax(window->DC.CursorMaxPos.x, window->DC.CursorPos.x); -} - -void ImGui::SetCursorPosY(float y) -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DC.CursorPos.y = window->Pos.y - window->Scroll.y + y; - window->DC.CursorMaxPos.y = ImMax(window->DC.CursorMaxPos.y, window->DC.CursorPos.y); -} - -ImVec2 ImGui::GetCursorStartPos() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.CursorStartPos - window->Pos; -} - -void ImGui::Indent(float indent_w) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - window->DC.Indent.x += (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; - window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; -} - -void ImGui::Unindent(float indent_w) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - window->DC.Indent.x -= (indent_w != 0.0f) ? indent_w : g.Style.IndentSpacing; - window->DC.CursorPos.x = window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x; -} - -// Affect large frame+labels widgets only. -void ImGui::SetNextItemWidth(float item_width) -{ - ImGuiContext& g = *GImGui; - g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasWidth; - g.NextItemData.Width = item_width; -} - -// FIXME: Remove the == 0.0f behavior? -void ImGui::PushItemWidth(float item_width) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width - window->DC.ItemWidth = (item_width == 0.0f ? window->ItemWidthDefault : item_width); - g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; -} - -void ImGui::PushMultiItemsWidths(int components, float w_full) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - const ImGuiStyle& style = g.Style; - const float w_item_one = ImMax(1.0f, IM_FLOOR((w_full - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); - const float w_item_last = ImMax(1.0f, IM_FLOOR(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); - window->DC.ItemWidthStack.push_back(window->DC.ItemWidth); // Backup current width - window->DC.ItemWidthStack.push_back(w_item_last); - for (int i = 0; i < components - 2; i++) - window->DC.ItemWidthStack.push_back(w_item_one); - window->DC.ItemWidth = (components == 1) ? w_item_last : w_item_one; - g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth; -} - -void ImGui::PopItemWidth() -{ - ImGuiWindow* window = GetCurrentWindow(); - window->DC.ItemWidth = window->DC.ItemWidthStack.back(); - window->DC.ItemWidthStack.pop_back(); -} - -// Calculate default item width given value passed to PushItemWidth() or SetNextItemWidth(). -// The SetNextItemWidth() data is generally cleared/consumed by ItemAdd() or NextItemData.ClearFlags() -float ImGui::CalcItemWidth() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - float w; - if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasWidth) - w = g.NextItemData.Width; - else - w = window->DC.ItemWidth; - if (w < 0.0f) - { - float region_max_x = GetContentRegionMaxAbs().x; - w = ImMax(1.0f, region_max_x - window->DC.CursorPos.x + w); - } - w = IM_FLOOR(w); - return w; -} - -// [Internal] Calculate full item size given user provided 'size' parameter and default width/height. Default width is often == CalcItemWidth(). -// Those two functions CalcItemWidth vs CalcItemSize are awkwardly named because they are not fully symmetrical. -// Note that only CalcItemWidth() is publicly exposed. -// The 4.0f here may be changed to match CalcItemWidth() and/or BeginChild() (right now we have a mismatch which is harmless but undesirable) -ImVec2 ImGui::CalcItemSize(ImVec2 size, float default_w, float default_h) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - - ImVec2 region_max; - if (size.x < 0.0f || size.y < 0.0f) - region_max = GetContentRegionMaxAbs(); - - if (size.x == 0.0f) - size.x = default_w; - else if (size.x < 0.0f) - size.x = ImMax(4.0f, region_max.x - window->DC.CursorPos.x + size.x); - - if (size.y == 0.0f) - size.y = default_h; - else if (size.y < 0.0f) - size.y = ImMax(4.0f, region_max.y - window->DC.CursorPos.y + size.y); - - return size; -} - -float ImGui::GetTextLineHeight() -{ - ImGuiContext& g = *GImGui; - return g.FontSize; -} - -float ImGui::GetTextLineHeightWithSpacing() -{ - ImGuiContext& g = *GImGui; - return g.FontSize + g.Style.ItemSpacing.y; -} - -float ImGui::GetFrameHeight() -{ - ImGuiContext& g = *GImGui; - return g.FontSize + g.Style.FramePadding.y * 2.0f; -} - -float ImGui::GetFrameHeightWithSpacing() -{ - ImGuiContext& g = *GImGui; - return g.FontSize + g.Style.FramePadding.y * 2.0f + g.Style.ItemSpacing.y; -} - -// FIXME: All the Contents Region function are messy or misleading. WE WILL AIM TO OBSOLETE ALL OF THEM WITH A NEW "WORK RECT" API. Thanks for your patience! - -// FIXME: This is in window space (not screen space!). -ImVec2 ImGui::GetContentRegionMax() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImVec2 mx = window->ContentRegionRect.Max - window->Pos; - if (window->DC.CurrentColumns || g.CurrentTable) - mx.x = window->WorkRect.Max.x - window->Pos.x; - return mx; -} - -// [Internal] Absolute coordinate. Saner. This is not exposed until we finishing refactoring work rect features. -ImVec2 ImGui::GetContentRegionMaxAbs() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImVec2 mx = window->ContentRegionRect.Max; - if (window->DC.CurrentColumns || g.CurrentTable) - mx.x = window->WorkRect.Max.x; - return mx; -} - -ImVec2 ImGui::GetContentRegionAvail() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return GetContentRegionMaxAbs() - window->DC.CursorPos; -} - -// In window space (not screen space!) -ImVec2 ImGui::GetWindowContentRegionMin() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ContentRegionRect.Min - window->Pos; -} - -ImVec2 ImGui::GetWindowContentRegionMax() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ContentRegionRect.Max - window->Pos; -} - -float ImGui::GetWindowContentRegionWidth() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ContentRegionRect.GetWidth(); -} - -// Lock horizontal starting position + capture group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) -// Groups are currently a mishmash of functionalities which should perhaps be clarified and separated. -void ImGui::BeginGroup() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - g.GroupStack.resize(g.GroupStack.Size + 1); - ImGuiGroupData& group_data = g.GroupStack.back(); - group_data.WindowID = window->ID; - group_data.BackupCursorPos = window->DC.CursorPos; - group_data.BackupCursorMaxPos = window->DC.CursorMaxPos; - group_data.BackupIndent = window->DC.Indent; - group_data.BackupGroupOffset = window->DC.GroupOffset; - group_data.BackupCurrLineSize = window->DC.CurrLineSize; - group_data.BackupCurrLineTextBaseOffset = window->DC.CurrLineTextBaseOffset; - group_data.BackupActiveIdIsAlive = g.ActiveIdIsAlive; - group_data.BackupHoveredIdIsAlive = g.HoveredId != 0; - group_data.BackupActiveIdPreviousFrameIsAlive = g.ActiveIdPreviousFrameIsAlive; - group_data.EmitItem = true; - - window->DC.GroupOffset.x = window->DC.CursorPos.x - window->Pos.x - window->DC.ColumnsOffset.x; - window->DC.Indent = window->DC.GroupOffset; - window->DC.CursorMaxPos = window->DC.CursorPos; - window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); - if (g.LogEnabled) - g.LogLinePosY = -FLT_MAX; // To enforce a carriage return -} - -void ImGui::EndGroup() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT(g.GroupStack.Size > 0); // Mismatched BeginGroup()/EndGroup() calls - - ImGuiGroupData& group_data = g.GroupStack.back(); - IM_ASSERT(group_data.WindowID == window->ID); // EndGroup() in wrong window? - - ImRect group_bb(group_data.BackupCursorPos, ImMax(window->DC.CursorMaxPos, group_data.BackupCursorPos)); - - window->DC.CursorPos = group_data.BackupCursorPos; - window->DC.CursorMaxPos = ImMax(group_data.BackupCursorMaxPos, window->DC.CursorMaxPos); - window->DC.Indent = group_data.BackupIndent; - window->DC.GroupOffset = group_data.BackupGroupOffset; - window->DC.CurrLineSize = group_data.BackupCurrLineSize; - window->DC.CurrLineTextBaseOffset = group_data.BackupCurrLineTextBaseOffset; - if (g.LogEnabled) - g.LogLinePosY = -FLT_MAX; // To enforce a carriage return - - if (!group_data.EmitItem) - { - g.GroupStack.pop_back(); - return; - } - - window->DC.CurrLineTextBaseOffset = ImMax(window->DC.PrevLineTextBaseOffset, group_data.BackupCurrLineTextBaseOffset); // FIXME: Incorrect, we should grab the base offset from the *first line* of the group but it is hard to obtain now. - ItemSize(group_bb.GetSize()); - ItemAdd(group_bb, 0); - - // If the current ActiveId was declared within the boundary of our group, we copy it to LastItemId so IsItemActive(), IsItemDeactivated() etc. will be functional on the entire group. - // It would be be neater if we replaced window.DC.LastItemId by e.g. 'bool LastItemIsActive', but would put a little more burden on individual widgets. - // Also if you grep for LastItemId you'll notice it is only used in that context. - // (The two tests not the same because ActiveIdIsAlive is an ID itself, in order to be able to handle ActiveId being overwritten during the frame.) - const bool group_contains_curr_active_id = (group_data.BackupActiveIdIsAlive != g.ActiveId) && (g.ActiveIdIsAlive == g.ActiveId) && g.ActiveId; - const bool group_contains_prev_active_id = (group_data.BackupActiveIdPreviousFrameIsAlive == false) && (g.ActiveIdPreviousFrameIsAlive == true); - if (group_contains_curr_active_id) - window->DC.LastItemId = g.ActiveId; - else if (group_contains_prev_active_id) - window->DC.LastItemId = g.ActiveIdPreviousFrame; - window->DC.LastItemRect = group_bb; - - // Forward Hovered flag - const bool group_contains_curr_hovered_id = (group_data.BackupHoveredIdIsAlive == false) && g.HoveredId != 0; - if (group_contains_curr_hovered_id) - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HoveredWindow; - - // Forward Edited flag - if (group_contains_curr_active_id && g.ActiveIdHasBeenEditedThisFrame) - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_Edited; - - // Forward Deactivated flag - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HasDeactivated; - if (group_contains_prev_active_id && g.ActiveId != g.ActiveIdPreviousFrame) - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_Deactivated; - - g.GroupStack.pop_back(); - //window->DrawList->AddRect(group_bb.Min, group_bb.Max, IM_COL32(255,0,255,255)); // [Debug] -} - - -//----------------------------------------------------------------------------- -// [SECTION] SCROLLING -//----------------------------------------------------------------------------- - -// Helper to snap on edges when aiming at an item very close to the edge, -// So the difference between WindowPadding and ItemSpacing will be in the visible area after scrolling. -// When we refactor the scrolling API this may be configurable with a flag? -// Note that the effect for this won't be visible on X axis with default Style settings as WindowPadding.x == ItemSpacing.x by default. -static float CalcScrollEdgeSnap(float target, float snap_min, float snap_max, float snap_threshold, float center_ratio) -{ - if (target <= snap_min + snap_threshold) - return ImLerp(snap_min, target, center_ratio); - if (target >= snap_max - snap_threshold) - return ImLerp(target, snap_max, center_ratio); - return target; -} - -static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window) -{ - ImVec2 scroll = window->Scroll; - if (window->ScrollTarget.x < FLT_MAX) - { - float center_x_ratio = window->ScrollTargetCenterRatio.x; - float scroll_target_x = window->ScrollTarget.x; - float snap_x_min = 0.0f; - float snap_x_max = window->ScrollMax.x + window->Size.x; - if (window->ScrollTargetEdgeSnapDist.x > 0.0f) - scroll_target_x = CalcScrollEdgeSnap(scroll_target_x, snap_x_min, snap_x_max, window->ScrollTargetEdgeSnapDist.x, center_x_ratio); - scroll.x = scroll_target_x - center_x_ratio * (window->SizeFull.x - window->ScrollbarSizes.x); - } - if (window->ScrollTarget.y < FLT_MAX) - { - float decoration_up_height = window->TitleBarHeight() + window->MenuBarHeight(); - float center_y_ratio = window->ScrollTargetCenterRatio.y; - float scroll_target_y = window->ScrollTarget.y; - float snap_y_min = 0.0f; - float snap_y_max = window->ScrollMax.y + window->Size.y - decoration_up_height; - if (window->ScrollTargetEdgeSnapDist.y > 0.0f) - scroll_target_y = CalcScrollEdgeSnap(scroll_target_y, snap_y_min, snap_y_max, window->ScrollTargetEdgeSnapDist.y, center_y_ratio); - scroll.y = scroll_target_y - center_y_ratio * (window->SizeFull.y - window->ScrollbarSizes.y - decoration_up_height); - } - scroll.x = IM_FLOOR(ImMax(scroll.x, 0.0f)); - scroll.y = IM_FLOOR(ImMax(scroll.y, 0.0f)); - if (!window->Collapsed && !window->SkipItems) - { - scroll.x = ImMin(scroll.x, window->ScrollMax.x); - scroll.y = ImMin(scroll.y, window->ScrollMax.y); - } - return scroll; -} - -// Scroll to keep newly navigated item fully into view -ImVec2 ImGui::ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& item_rect) -{ - ImGuiContext& g = *GImGui; - ImRect window_rect(window->InnerRect.Min - ImVec2(1, 1), window->InnerRect.Max + ImVec2(1, 1)); - //GetForegroundDrawList(window)->AddRect(window_rect.Min, window_rect.Max, IM_COL32_WHITE); // [DEBUG] - - ImVec2 delta_scroll; - if (!window_rect.Contains(item_rect)) - { - if (window->ScrollbarX && item_rect.Min.x < window_rect.Min.x) - SetScrollFromPosX(window, item_rect.Min.x - window->Pos.x - g.Style.ItemSpacing.x, 0.0f); - else if (window->ScrollbarX && item_rect.Max.x >= window_rect.Max.x) - SetScrollFromPosX(window, item_rect.Max.x - window->Pos.x + g.Style.ItemSpacing.x, 1.0f); - if (item_rect.Min.y < window_rect.Min.y) - SetScrollFromPosY(window, item_rect.Min.y - window->Pos.y - g.Style.ItemSpacing.y, 0.0f); - else if (item_rect.Max.y >= window_rect.Max.y) - SetScrollFromPosY(window, item_rect.Max.y - window->Pos.y + g.Style.ItemSpacing.y, 1.0f); - - ImVec2 next_scroll = CalcNextScrollFromScrollTargetAndClamp(window); - delta_scroll = next_scroll - window->Scroll; - } - - // Also scroll parent window to keep us into view if necessary - if (window->Flags & ImGuiWindowFlags_ChildWindow) - delta_scroll += ScrollToBringRectIntoView(window->ParentWindow, ImRect(item_rect.Min - delta_scroll, item_rect.Max - delta_scroll)); - - return delta_scroll; -} - -float ImGui::GetScrollX() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->Scroll.x; -} - -float ImGui::GetScrollY() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->Scroll.y; -} - -float ImGui::GetScrollMaxX() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ScrollMax.x; -} - -float ImGui::GetScrollMaxY() -{ - ImGuiWindow* window = GImGui->CurrentWindow; - return window->ScrollMax.y; -} - -void ImGui::SetScrollX(ImGuiWindow* window, float scroll_x) -{ - window->ScrollTarget.x = scroll_x; - window->ScrollTargetCenterRatio.x = 0.0f; - window->ScrollTargetEdgeSnapDist.x = 0.0f; -} - -void ImGui::SetScrollY(ImGuiWindow* window, float scroll_y) -{ - window->ScrollTarget.y = scroll_y; - window->ScrollTargetCenterRatio.y = 0.0f; - window->ScrollTargetEdgeSnapDist.y = 0.0f; -} - -void ImGui::SetScrollX(float scroll_x) -{ - ImGuiContext& g = *GImGui; - SetScrollX(g.CurrentWindow, scroll_x); -} - -void ImGui::SetScrollY(float scroll_y) -{ - ImGuiContext& g = *GImGui; - SetScrollY(g.CurrentWindow, scroll_y); -} - -// Note that a local position will vary depending on initial scroll value, -// This is a little bit confusing so bear with us: -// - local_pos = (absolution_pos - window->Pos) -// - So local_x/local_y are 0.0f for a position at the upper-left corner of a window, -// and generally local_x/local_y are >(padding+decoration) && <(size-padding-decoration) when in the visible area. -// - They mostly exists because of legacy API. -// Following the rules above, when trying to work with scrolling code, consider that: -// - SetScrollFromPosY(0.0f) == SetScrollY(0.0f + scroll.y) == has no effect! -// - SetScrollFromPosY(-scroll.y) == SetScrollY(-scroll.y + scroll.y) == SetScrollY(0.0f) == reset scroll. Of course writing SetScrollY(0.0f) directly then makes more sense -// We store a target position so centering and clamping can occur on the next frame when we are guaranteed to have a known window size -void ImGui::SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio) -{ - IM_ASSERT(center_x_ratio >= 0.0f && center_x_ratio <= 1.0f); - window->ScrollTarget.x = IM_FLOOR(local_x + window->Scroll.x); // Convert local position to scroll offset - window->ScrollTargetCenterRatio.x = center_x_ratio; - window->ScrollTargetEdgeSnapDist.x = 0.0f; -} - -void ImGui::SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio) -{ - IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); - local_y -= window->TitleBarHeight() + window->MenuBarHeight(); // FIXME: Would be nice to have a more standardized access to our scrollable/client rect - window->ScrollTarget.y = IM_FLOOR(local_y + window->Scroll.y); // Convert local position to scroll offset - window->ScrollTargetCenterRatio.y = center_y_ratio; - window->ScrollTargetEdgeSnapDist.y = 0.0f; -} - -void ImGui::SetScrollFromPosX(float local_x, float center_x_ratio) -{ - ImGuiContext& g = *GImGui; - SetScrollFromPosX(g.CurrentWindow, local_x, center_x_ratio); -} - -void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) -{ - ImGuiContext& g = *GImGui; - SetScrollFromPosY(g.CurrentWindow, local_y, center_y_ratio); -} - -// center_x_ratio: 0.0f left of last item, 0.5f horizontal center of last item, 1.0f right of last item. -void ImGui::SetScrollHereX(float center_x_ratio) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - float spacing_x = g.Style.ItemSpacing.x; - float target_pos_x = ImLerp(window->DC.LastItemRect.Min.x - spacing_x, window->DC.LastItemRect.Max.x + spacing_x, center_x_ratio); - SetScrollFromPosX(window, target_pos_x - window->Pos.x, center_x_ratio); // Convert from absolute to local pos - - // Tweak: snap on edges when aiming at an item very close to the edge - window->ScrollTargetEdgeSnapDist.x = ImMax(0.0f, window->WindowPadding.x - spacing_x); -} - -// center_y_ratio: 0.0f top of last item, 0.5f vertical center of last item, 1.0f bottom of last item. -void ImGui::SetScrollHereY(float center_y_ratio) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - float spacing_y = g.Style.ItemSpacing.y; - float target_pos_y = ImLerp(window->DC.CursorPosPrevLine.y - spacing_y, window->DC.CursorPosPrevLine.y + window->DC.PrevLineSize.y + spacing_y, center_y_ratio); - SetScrollFromPosY(window, target_pos_y - window->Pos.y, center_y_ratio); // Convert from absolute to local pos - - // Tweak: snap on edges when aiming at an item very close to the edge - window->ScrollTargetEdgeSnapDist.y = ImMax(0.0f, window->WindowPadding.y - spacing_y); -} - -//----------------------------------------------------------------------------- -// [SECTION] TOOLTIPS -//----------------------------------------------------------------------------- - -void ImGui::BeginTooltip() -{ - BeginTooltipEx(ImGuiWindowFlags_None, ImGuiTooltipFlags_None); -} - -void ImGui::BeginTooltipEx(ImGuiWindowFlags extra_flags, ImGuiTooltipFlags tooltip_flags) -{ - ImGuiContext& g = *GImGui; - - if (g.DragDropWithinSource || g.DragDropWithinTarget) - { - // The default tooltip position is a little offset to give space to see the context menu (it's also clamped within the current viewport/monitor) - // In the context of a dragging tooltip we try to reduce that offset and we enforce following the cursor. - // Whatever we do we want to call SetNextWindowPos() to enforce a tooltip position and disable clipping the tooltip without our display area, like regular tooltip do. - //ImVec2 tooltip_pos = g.IO.MousePos - g.ActiveIdClickOffset - g.Style.WindowPadding; - ImVec2 tooltip_pos = g.IO.MousePos + ImVec2(16 * g.Style.MouseCursorScale, 8 * g.Style.MouseCursorScale); - SetNextWindowPos(tooltip_pos); - SetNextWindowBgAlpha(g.Style.Colors[ImGuiCol_PopupBg].w * 0.60f); - //PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * 0.60f); // This would be nice but e.g ColorButton with checkboard has issue with transparent colors :( - tooltip_flags |= ImGuiTooltipFlags_OverridePreviousTooltip; - } - - char window_name[16]; - ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", g.TooltipOverrideCount); - if (tooltip_flags & ImGuiTooltipFlags_OverridePreviousTooltip) - if (ImGuiWindow* window = FindWindowByName(window_name)) - if (window->Active) - { - // Hide previous tooltip from being displayed. We can't easily "reset" the content of a window so we create a new one. - window->Hidden = true; - window->HiddenFramesCanSkipItems = 1; // FIXME: This may not be necessary? - ImFormatString(window_name, IM_ARRAYSIZE(window_name), "##Tooltip_%02d", ++g.TooltipOverrideCount); - } - ImGuiWindowFlags flags = ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize; - Begin(window_name, NULL, flags | extra_flags); -} - -void ImGui::EndTooltip() -{ - IM_ASSERT(GetCurrentWindowRead()->Flags & ImGuiWindowFlags_Tooltip); // Mismatched BeginTooltip()/EndTooltip() calls - End(); -} - -void ImGui::SetTooltipV(const char* fmt, va_list args) -{ - BeginTooltipEx(0, ImGuiTooltipFlags_OverridePreviousTooltip); - TextV(fmt, args); - EndTooltip(); -} - -void ImGui::SetTooltip(const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - SetTooltipV(fmt, args); - va_end(args); -} - -//----------------------------------------------------------------------------- -// [SECTION] POPUPS -//----------------------------------------------------------------------------- - -// Supported flags: ImGuiPopupFlags_AnyPopupId, ImGuiPopupFlags_AnyPopupLevel -bool ImGui::IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags) -{ - ImGuiContext& g = *GImGui; - if (popup_flags & ImGuiPopupFlags_AnyPopupId) - { - // Return true if any popup is open at the current BeginPopup() level of the popup stack - // This may be used to e.g. test for another popups already opened to handle popups priorities at the same level. - IM_ASSERT(id == 0); - if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) - return g.OpenPopupStack.Size > 0; - else - return g.OpenPopupStack.Size > g.BeginPopupStack.Size; - } - else - { - if (popup_flags & ImGuiPopupFlags_AnyPopupLevel) - { - // Return true if the popup is open anywhere in the popup stack - for (int n = 0; n < g.OpenPopupStack.Size; n++) - if (g.OpenPopupStack[n].PopupId == id) - return true; - return false; - } - else - { - // Return true if the popup is open at the current BeginPopup() level of the popup stack (this is the most-common query) - return g.OpenPopupStack.Size > g.BeginPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].PopupId == id; - } - } -} - -bool ImGui::IsPopupOpen(const char* str_id, ImGuiPopupFlags popup_flags) -{ - ImGuiContext& g = *GImGui; - ImGuiID id = (popup_flags & ImGuiPopupFlags_AnyPopupId) ? 0 : g.CurrentWindow->GetID(str_id); - if ((popup_flags & ImGuiPopupFlags_AnyPopupLevel) && id != 0) - IM_ASSERT(0 && "Cannot use IsPopupOpen() with a string id and ImGuiPopupFlags_AnyPopupLevel."); // But non-string version is legal and used internally - return IsPopupOpen(id, popup_flags); -} - -ImGuiWindow* ImGui::GetTopMostPopupModal() -{ - ImGuiContext& g = *GImGui; - for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--) - if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window) - if (popup->Flags & ImGuiWindowFlags_Modal) - return popup; - return NULL; -} - -void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) -{ - ImGuiContext& g = *GImGui; - OpenPopupEx(g.CurrentWindow->GetID(str_id), popup_flags); -} - -// Mark popup as open (toggle toward open state). -// Popups are closed when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block. -// Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). -// One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL) -void ImGui::OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* parent_window = g.CurrentWindow; - const int current_stack_size = g.BeginPopupStack.Size; - - if (popup_flags & ImGuiPopupFlags_NoOpenOverExistingPopup) - if (IsPopupOpen(0u, ImGuiPopupFlags_AnyPopupId)) - return; - - ImGuiPopupData popup_ref; // Tagged as new ref as Window will be set back to NULL if we write this into OpenPopupStack. - popup_ref.PopupId = id; - popup_ref.Window = NULL; - popup_ref.SourceWindow = g.NavWindow; - popup_ref.OpenFrameCount = g.FrameCount; - popup_ref.OpenParentId = parent_window->IDStack.back(); - popup_ref.OpenPopupPos = NavCalcPreferredRefPos(); - popup_ref.OpenMousePos = IsMousePosValid(&g.IO.MousePos) ? g.IO.MousePos : popup_ref.OpenPopupPos; - - IMGUI_DEBUG_LOG_POPUP("OpenPopupEx(0x%08X)\n", id); - if (g.OpenPopupStack.Size < current_stack_size + 1) - { - g.OpenPopupStack.push_back(popup_ref); - } - else - { - // Gently handle the user mistakenly calling OpenPopup() every frame. It is a programming mistake! However, if we were to run the regular code path, the ui - // would become completely unusable because the popup will always be in hidden-while-calculating-size state _while_ claiming focus. Which would be a very confusing - // situation for the programmer. Instead, we silently allow the popup to proceed, it will keep reappearing and the programming error will be more obvious to understand. - if (g.OpenPopupStack[current_stack_size].PopupId == id && g.OpenPopupStack[current_stack_size].OpenFrameCount == g.FrameCount - 1) - { - g.OpenPopupStack[current_stack_size].OpenFrameCount = popup_ref.OpenFrameCount; - } - else - { - // Close child popups if any, then flag popup for open/reopen - ClosePopupToLevel(current_stack_size, false); - g.OpenPopupStack.push_back(popup_ref); - } - - // When reopening a popup we first refocus its parent, otherwise if its parent is itself a popup it would get closed by ClosePopupsOverWindow(). - // This is equivalent to what ClosePopupToLevel() does. - //if (g.OpenPopupStack[current_stack_size].PopupId == id) - // FocusWindow(parent_window); - } -} - -// When popups are stacked, clicking on a lower level popups puts focus back to it and close popups above it. -// This function closes any popups that are over 'ref_window'. -void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup) -{ - ImGuiContext& g = *GImGui; - if (g.OpenPopupStack.Size == 0) - return; - - // Don't close our own child popup windows. - int popup_count_to_keep = 0; - if (ref_window) - { - // Find the highest popup which is a descendant of the reference window (generally reference window = NavWindow) - for (; popup_count_to_keep < g.OpenPopupStack.Size; popup_count_to_keep++) - { - ImGuiPopupData& popup = g.OpenPopupStack[popup_count_to_keep]; - if (!popup.Window) - continue; - IM_ASSERT((popup.Window->Flags & ImGuiWindowFlags_Popup) != 0); - if (popup.Window->Flags & ImGuiWindowFlags_ChildWindow) - continue; - - // Trim the stack unless the popup is a direct parent of the reference window (the reference window is often the NavWindow) - // - With this stack of window, clicking/focusing Popup1 will close Popup2 and Popup3: - // Window -> Popup1 -> Popup2 -> Popup3 - // - Each popups may contain child windows, which is why we compare ->RootWindow! - // Window -> Popup1 -> Popup1_Child -> Popup2 -> Popup2_Child - bool ref_window_is_descendent_of_popup = false; - for (int n = popup_count_to_keep; n < g.OpenPopupStack.Size; n++) - if (ImGuiWindow* popup_window = g.OpenPopupStack[n].Window) - if (popup_window->RootWindow == ref_window->RootWindow) - { - ref_window_is_descendent_of_popup = true; - break; - } - if (!ref_window_is_descendent_of_popup) - break; - } - } - if (popup_count_to_keep < g.OpenPopupStack.Size) // This test is not required but it allows to set a convenient breakpoint on the statement below - { - IMGUI_DEBUG_LOG_POPUP("ClosePopupsOverWindow(\"%s\") -> ClosePopupToLevel(%d)\n", ref_window->Name, popup_count_to_keep); - ClosePopupToLevel(popup_count_to_keep, restore_focus_to_window_under_popup); - } -} - -void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup) -{ - ImGuiContext& g = *GImGui; - IMGUI_DEBUG_LOG_POPUP("ClosePopupToLevel(%d), restore_focus_to_window_under_popup=%d\n", remaining, restore_focus_to_window_under_popup); - IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size); - - // Trim open popup stack - ImGuiWindow* focus_window = g.OpenPopupStack[remaining].SourceWindow; - ImGuiWindow* popup_window = g.OpenPopupStack[remaining].Window; - g.OpenPopupStack.resize(remaining); - - if (restore_focus_to_window_under_popup) - { - if (focus_window && !focus_window->WasActive && popup_window) - { - // Fallback - FocusTopMostWindowUnderOne(popup_window, NULL); - } - else - { - if (g.NavLayer == ImGuiNavLayer_Main && focus_window) - focus_window = NavRestoreLastChildNavWindow(focus_window); - FocusWindow(focus_window); - } - } -} - -// Close the popup we have begin-ed into. -void ImGui::CloseCurrentPopup() -{ - ImGuiContext& g = *GImGui; - int popup_idx = g.BeginPopupStack.Size - 1; - if (popup_idx < 0 || popup_idx >= g.OpenPopupStack.Size || g.BeginPopupStack[popup_idx].PopupId != g.OpenPopupStack[popup_idx].PopupId) - return; - - // Closing a menu closes its top-most parent popup (unless a modal) - while (popup_idx > 0) - { - ImGuiWindow* popup_window = g.OpenPopupStack[popup_idx].Window; - ImGuiWindow* parent_popup_window = g.OpenPopupStack[popup_idx - 1].Window; - bool close_parent = false; - if (popup_window && (popup_window->Flags & ImGuiWindowFlags_ChildMenu)) - if (parent_popup_window == NULL || !(parent_popup_window->Flags & ImGuiWindowFlags_Modal)) - close_parent = true; - if (!close_parent) - break; - popup_idx--; - } - IMGUI_DEBUG_LOG_POPUP("CloseCurrentPopup %d -> %d\n", g.BeginPopupStack.Size - 1, popup_idx); - ClosePopupToLevel(popup_idx, true); - - // A common pattern is to close a popup when selecting a menu item/selectable that will open another window. - // To improve this usage pattern, we avoid nav highlight for a single frame in the parent window. - // Similarly, we could avoid mouse hover highlight in this window but it is less visually problematic. - if (ImGuiWindow* window = g.NavWindow) - window->DC.NavHideHighlightOneFrame = true; -} - -// Attention! BeginPopup() adds default flags which BeginPopupEx()! -bool ImGui::BeginPopupEx(ImGuiID id, ImGuiWindowFlags flags) -{ - ImGuiContext& g = *GImGui; - if (!IsPopupOpen(id, ImGuiPopupFlags_None)) - { - g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values - return false; - } - - char name[20]; - if (flags & ImGuiWindowFlags_ChildMenu) - ImFormatString(name, IM_ARRAYSIZE(name), "##Menu_%02d", g.BeginPopupStack.Size); // Recycle windows based on depth - else - ImFormatString(name, IM_ARRAYSIZE(name), "##Popup_%08x", id); // Not recycling, so we can close/open during the same frame - - flags |= ImGuiWindowFlags_Popup; - bool is_open = Begin(name, NULL, flags); - if (!is_open) // NB: Begin can return false when the popup is completely clipped (e.g. zero size display) - EndPopup(); - - return is_open; -} - -bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) -{ - ImGuiContext& g = *GImGui; - if (g.OpenPopupStack.Size <= g.BeginPopupStack.Size) // Early out for performance - { - g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values - return false; - } - flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; - return BeginPopupEx(g.CurrentWindow->GetID(str_id), flags); -} - -// If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. -// Note that popup visibility status is owned by Dear ImGui (and manipulated with e.g. OpenPopup) so the actual value of *p_open is meaningless here. -bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - const ImGuiID id = window->GetID(name); - if (!IsPopupOpen(id, ImGuiPopupFlags_None)) - { - g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values - return false; - } - - // Center modal windows by default for increased visibility - // (this won't really last as settings will kick in, and is mostly for backward compatibility. user may do the same themselves) - // FIXME: Should test for (PosCond & window->SetWindowPosAllowFlags) with the upcoming window. - if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasPos) == 0) - { - const ImGuiViewport* viewport = GetMainViewport(); - SetNextWindowPos(viewport->GetCenter(), ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f)); - } - - flags |= ImGuiWindowFlags_Popup | ImGuiWindowFlags_Modal | ImGuiWindowFlags_NoCollapse; - const bool is_open = Begin(name, p_open, flags); - if (!is_open || (p_open && !*p_open)) // NB: is_open can be 'false' when the popup is completely clipped (e.g. zero size display) - { - EndPopup(); - if (is_open) - ClosePopupToLevel(g.BeginPopupStack.Size, true); - return false; - } - return is_open; -} - -void ImGui::EndPopup() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT(window->Flags & ImGuiWindowFlags_Popup); // Mismatched BeginPopup()/EndPopup() calls - IM_ASSERT(g.BeginPopupStack.Size > 0); - - // Make all menus and popups wrap around for now, may need to expose that policy. - if (g.NavWindow == window) - NavMoveRequestTryWrapping(window, ImGuiNavMoveFlags_LoopY); - - // Child-popups don't need to be laid out - IM_ASSERT(g.WithinEndChild == false); - if (window->Flags & ImGuiWindowFlags_ChildWindow) - g.WithinEndChild = true; - End(); - g.WithinEndChild = false; -} - -// Helper to open a popup if mouse button is released over the item -// - This is essentially the same as BeginPopupContextItem() but without the trailing BeginPopup() -void ImGui::OpenPopupOnItemClick(const char* str_id, ImGuiPopupFlags popup_flags) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); - if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) - { - ImGuiID id = str_id ? window->GetID(str_id) : window->DC.LastItemId; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! - IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) - OpenPopupEx(id, popup_flags); - } -} - -// This is a helper to handle the simplest case of associating one named popup to one given widget. -// - You can pass a NULL str_id to use the identifier of the last item. -// - You may want to handle this on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters). -// - This is essentially the same as calling OpenPopupOnItemClick() + BeginPopup() but written to avoid -// computing the ID twice because BeginPopupContextXXX functions may be called very frequently. -bool ImGui::BeginPopupContextItem(const char* str_id, ImGuiPopupFlags popup_flags) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - if (window->SkipItems) - return false; - ImGuiID id = str_id ? window->GetID(str_id) : window->DC.LastItemId; // If user hasn't passed an ID, we can use the LastItemID. Using LastItemID as a Popup ID won't conflict! - IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item) - int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); - if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) - OpenPopupEx(id, popup_flags); - return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); -} - -bool ImGui::BeginPopupContextWindow(const char* str_id, ImGuiPopupFlags popup_flags) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - if (!str_id) - str_id = "window_context"; - ImGuiID id = window->GetID(str_id); - int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); - if (IsMouseReleased(mouse_button) && IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) - if (!(popup_flags & ImGuiPopupFlags_NoOpenOverItems) || !IsAnyItemHovered()) - OpenPopupEx(id, popup_flags); - return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); -} - -bool ImGui::BeginPopupContextVoid(const char* str_id, ImGuiPopupFlags popup_flags) -{ - ImGuiWindow* window = GImGui->CurrentWindow; - if (!str_id) - str_id = "void_context"; - ImGuiID id = window->GetID(str_id); - int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); - if (IsMouseReleased(mouse_button) && !IsWindowHovered(ImGuiHoveredFlags_AnyWindow)) - if (GetTopMostPopupModal() == NULL) - OpenPopupEx(id, popup_flags); - return BeginPopupEx(id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings); -} - -// r_avoid = the rectangle to avoid (e.g. for tooltip it is a rectangle around the mouse cursor which we want to avoid. for popups it's a small point around the cursor.) -// r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it. -// (r_outer is usually equivalent to the viewport rectangle minus padding, but when multi-viewports are enabled and monitor -// information are available, it may represent the entire platform monitor from the frame of reference of the current viewport. -// this allows us to have tooltips/popups displayed out of the parent viewport.) -ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy) -{ - ImVec2 base_pos_clamped = ImClamp(ref_pos, r_outer.Min, r_outer.Max - size); - //GetForegroundDrawList()->AddRect(r_avoid.Min, r_avoid.Max, IM_COL32(255,0,0,255)); - //GetForegroundDrawList()->AddRect(r_outer.Min, r_outer.Max, IM_COL32(0,255,0,255)); - - // Combo Box policy (we want a connecting edge) - if (policy == ImGuiPopupPositionPolicy_ComboBox) - { - const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Down, ImGuiDir_Right, ImGuiDir_Left, ImGuiDir_Up }; - for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) - { - const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; - if (n != -1 && dir == *last_dir) // Already tried this direction? - continue; - ImVec2 pos; - if (dir == ImGuiDir_Down) pos = ImVec2(r_avoid.Min.x, r_avoid.Max.y); // Below, Toward Right (default) - if (dir == ImGuiDir_Right) pos = ImVec2(r_avoid.Min.x, r_avoid.Min.y - size.y); // Above, Toward Right - if (dir == ImGuiDir_Left) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Max.y); // Below, Toward Left - if (dir == ImGuiDir_Up) pos = ImVec2(r_avoid.Max.x - size.x, r_avoid.Min.y - size.y); // Above, Toward Left - if (!r_outer.Contains(ImRect(pos, pos + size))) - continue; - *last_dir = dir; - return pos; - } - } - - // Tooltip and Default popup policy - // (Always first try the direction we used on the last frame, if any) - if (policy == ImGuiPopupPositionPolicy_Tooltip || policy == ImGuiPopupPositionPolicy_Default) - { - const ImGuiDir dir_prefered_order[ImGuiDir_COUNT] = { ImGuiDir_Right, ImGuiDir_Down, ImGuiDir_Up, ImGuiDir_Left }; - for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++) - { - const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n]; - if (n != -1 && dir == *last_dir) // Already tried this direction? - continue; - - const float avail_w = (dir == ImGuiDir_Left ? r_avoid.Min.x : r_outer.Max.x) - (dir == ImGuiDir_Right ? r_avoid.Max.x : r_outer.Min.x); - const float avail_h = (dir == ImGuiDir_Up ? r_avoid.Min.y : r_outer.Max.y) - (dir == ImGuiDir_Down ? r_avoid.Max.y : r_outer.Min.y); - - // If there not enough room on one axis, there's no point in positioning on a side on this axis (e.g. when not enough width, use a top/bottom position to maximize available width) - if (avail_w < size.x && (dir == ImGuiDir_Left || dir == ImGuiDir_Right)) - continue; - if (avail_h < size.y && (dir == ImGuiDir_Up || dir == ImGuiDir_Down)) - continue; - - ImVec2 pos; - pos.x = (dir == ImGuiDir_Left) ? r_avoid.Min.x - size.x : (dir == ImGuiDir_Right) ? r_avoid.Max.x : base_pos_clamped.x; - pos.y = (dir == ImGuiDir_Up) ? r_avoid.Min.y - size.y : (dir == ImGuiDir_Down) ? r_avoid.Max.y : base_pos_clamped.y; - - // Clamp top-left corner of popup - pos.x = ImMax(pos.x, r_outer.Min.x); - pos.y = ImMax(pos.y, r_outer.Min.y); - - *last_dir = dir; - return pos; - } - } - - // Fallback when not enough room: - *last_dir = ImGuiDir_None; - - // For tooltip we prefer avoiding the cursor at all cost even if it means that part of the tooltip won't be visible. - if (policy == ImGuiPopupPositionPolicy_Tooltip) - return ref_pos + ImVec2(2, 2); - - // Otherwise try to keep within display - ImVec2 pos = ref_pos; - pos.x = ImMax(ImMin(pos.x + size.x, r_outer.Max.x) - size.x, r_outer.Min.x); - pos.y = ImMax(ImMin(pos.y + size.y, r_outer.Max.y) - size.y, r_outer.Min.y); - return pos; -} - -// Note that this is used for popups, which can overlap the non work-area of individual viewports. -ImRect ImGui::GetWindowAllowedExtentRect(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - IM_UNUSED(window); - ImRect r_screen = ((ImGuiViewportP*)(void*)GetMainViewport())->GetMainRect(); - ImVec2 padding = g.Style.DisplaySafeAreaPadding; - r_screen.Expand(ImVec2((r_screen.GetWidth() > padding.x * 2) ? -padding.x : 0.0f, (r_screen.GetHeight() > padding.y * 2) ? -padding.y : 0.0f)); - return r_screen; -} - -ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - - ImRect r_outer = GetWindowAllowedExtentRect(window); - if (window->Flags & ImGuiWindowFlags_ChildMenu) - { - // Child menus typically request _any_ position within the parent menu item, and then we move the new menu outside the parent bounds. - // This is how we end up with child menus appearing (most-commonly) on the right of the parent menu. - IM_ASSERT(g.CurrentWindow == window); - ImGuiWindow* parent_window = g.CurrentWindowStack[g.CurrentWindowStack.Size - 2]; - float horizontal_overlap = g.Style.ItemInnerSpacing.x; // We want some overlap to convey the relative depth of each menu (currently the amount of overlap is hard-coded to style.ItemSpacing.x). - ImRect r_avoid; - if (parent_window->DC.MenuBarAppending) - r_avoid = ImRect(-FLT_MAX, parent_window->ClipRect.Min.y, FLT_MAX, parent_window->ClipRect.Max.y); // Avoid parent menu-bar. If we wanted multi-line menu-bar, we may instead want to have the calling window setup e.g. a NextWindowData.PosConstraintAvoidRect field - else - r_avoid = ImRect(parent_window->Pos.x + horizontal_overlap, -FLT_MAX, parent_window->Pos.x + parent_window->Size.x - horizontal_overlap - parent_window->ScrollbarSizes.x, FLT_MAX); - return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); - } - if (window->Flags & ImGuiWindowFlags_Popup) - { - ImRect r_avoid = ImRect(window->Pos.x - 1, window->Pos.y - 1, window->Pos.x + 1, window->Pos.y + 1); - return FindBestWindowPosForPopupEx(window->Pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Default); - } - if (window->Flags & ImGuiWindowFlags_Tooltip) - { - // Position tooltip (always follows mouse) - float sc = g.Style.MouseCursorScale; - ImVec2 ref_pos = NavCalcPreferredRefPos(); - ImRect r_avoid; - if (!g.NavDisableHighlight && g.NavDisableMouseHover && !(g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos)) - r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 16, ref_pos.y + 8); - else - r_avoid = ImRect(ref_pos.x - 16, ref_pos.y - 8, ref_pos.x + 24 * sc, ref_pos.y + 24 * sc); // FIXME: Hard-coded based on mouse cursor shape expectation. Exact dimension not very important. - return FindBestWindowPosForPopupEx(ref_pos, window->Size, &window->AutoPosLastDirection, r_outer, r_avoid, ImGuiPopupPositionPolicy_Tooltip); - } - IM_ASSERT(0); - return window->Pos; -} - -//----------------------------------------------------------------------------- -// [SECTION] KEYBOARD/GAMEPAD NAVIGATION -//----------------------------------------------------------------------------- - -// FIXME-NAV: The existence of SetNavID vs SetNavIDWithRectRel vs SetFocusID is incredibly messy and confusing, -// and needs some explanation or serious refactoring. -void ImGui::SetNavID(ImGuiID id, int nav_layer, ImGuiID focus_scope_id) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.NavWindow); - IM_ASSERT(nav_layer == 0 || nav_layer == 1); - g.NavId = id; - g.NavFocusScopeId = focus_scope_id; - g.NavWindow->NavLastIds[nav_layer] = id; -} - -void ImGui::SetNavIDWithRectRel(ImGuiID id, int nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel) -{ - ImGuiContext& g = *GImGui; - SetNavID(id, nav_layer, focus_scope_id); - g.NavWindow->NavRectRel[nav_layer] = rect_rel; - g.NavMousePosDirty = true; - g.NavDisableHighlight = false; - g.NavDisableMouseHover = true; -} - -void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(id != 0); - - // Assume that SetFocusID() is called in the context where its window->DC.NavLayerCurrent and window->DC.NavFocusScopeIdCurrent are valid. - // Note that window may be != g.CurrentWindow (e.g. SetFocusID call in InputTextEx for multi-line text) - const ImGuiNavLayer nav_layer = window->DC.NavLayerCurrent; - if (g.NavWindow != window) - g.NavInitRequest = false; - g.NavWindow = window; - g.NavId = id; - g.NavLayer = nav_layer; - g.NavFocusScopeId = window->DC.NavFocusScopeIdCurrent; - window->NavLastIds[nav_layer] = id; - if (window->DC.LastItemId == id) - window->NavRectRel[nav_layer] = ImRect(window->DC.LastItemRect.Min - window->Pos, window->DC.LastItemRect.Max - window->Pos); - - if (g.ActiveIdSource == ImGuiInputSource_Nav) - g.NavDisableMouseHover = true; - else - g.NavDisableHighlight = true; -} - -ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy) -{ - if (ImFabs(dx) > ImFabs(dy)) - return (dx > 0.0f) ? ImGuiDir_Right : ImGuiDir_Left; - return (dy > 0.0f) ? ImGuiDir_Down : ImGuiDir_Up; -} - -static float inline NavScoreItemDistInterval(float a0, float a1, float b0, float b1) -{ - if (a1 < b0) - return a1 - b0; - if (b1 < a0) - return a0 - b1; - return 0.0f; -} - -static void inline NavClampRectToVisibleAreaForMoveDir(ImGuiDir move_dir, ImRect& r, const ImRect& clip_rect) -{ - if (move_dir == ImGuiDir_Left || move_dir == ImGuiDir_Right) - { - r.Min.y = ImClamp(r.Min.y, clip_rect.Min.y, clip_rect.Max.y); - r.Max.y = ImClamp(r.Max.y, clip_rect.Min.y, clip_rect.Max.y); - } - else - { - r.Min.x = ImClamp(r.Min.x, clip_rect.Min.x, clip_rect.Max.x); - r.Max.x = ImClamp(r.Max.x, clip_rect.Min.x, clip_rect.Max.x); - } -} - -// Scoring function for gamepad/keyboard directional navigation. Based on https://gist.github.com/rygorous/6981057 -static bool ImGui::NavScoreItem(ImGuiNavMoveResult* result, ImRect cand) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (g.NavLayer != window->DC.NavLayerCurrent) - return false; - - const ImRect& curr = g.NavScoringRect; // Current modified source rect (NB: we've applied Max.x = Min.x in NavUpdate() to inhibit the effect of having varied item width) - g.NavScoringCount++; - - // When entering through a NavFlattened border, we consider child window items as fully clipped for scoring - if (window->ParentWindow == g.NavWindow) - { - IM_ASSERT((window->Flags | g.NavWindow->Flags) & ImGuiWindowFlags_NavFlattened); - if (!window->ClipRect.Overlaps(cand)) - return false; - cand.ClipWithFull(window->ClipRect); // This allows the scored item to not overlap other candidates in the parent window - } - - // We perform scoring on items bounding box clipped by the current clipping rectangle on the other axis (clipping on our movement axis would give us equal scores for all clipped items) - // For example, this ensure that items in one column are not reached when moving vertically from items in another column. - NavClampRectToVisibleAreaForMoveDir(g.NavMoveClipDir, cand, window->ClipRect); - - // Compute distance between boxes - // FIXME-NAV: Introducing biases for vertical navigation, needs to be removed. - float dbx = NavScoreItemDistInterval(cand.Min.x, cand.Max.x, curr.Min.x, curr.Max.x); - float dby = NavScoreItemDistInterval(ImLerp(cand.Min.y, cand.Max.y, 0.2f), ImLerp(cand.Min.y, cand.Max.y, 0.8f), ImLerp(curr.Min.y, curr.Max.y, 0.2f), ImLerp(curr.Min.y, curr.Max.y, 0.8f)); // Scale down on Y to keep using box-distance for vertically touching items - if (dby != 0.0f && dbx != 0.0f) - dbx = (dbx / 1000.0f) + ((dbx > 0.0f) ? +1.0f : -1.0f); - float dist_box = ImFabs(dbx) + ImFabs(dby); - - // Compute distance between centers (this is off by a factor of 2, but we only compare center distances with each other so it doesn't matter) - float dcx = (cand.Min.x + cand.Max.x) - (curr.Min.x + curr.Max.x); - float dcy = (cand.Min.y + cand.Max.y) - (curr.Min.y + curr.Max.y); - float dist_center = ImFabs(dcx) + ImFabs(dcy); // L1 metric (need this for our connectedness guarantee) - - // Determine which quadrant of 'curr' our candidate item 'cand' lies in based on distance - ImGuiDir quadrant; - float dax = 0.0f, day = 0.0f, dist_axial = 0.0f; - if (dbx != 0.0f || dby != 0.0f) - { - // For non-overlapping boxes, use distance between boxes - dax = dbx; - day = dby; - dist_axial = dist_box; - quadrant = ImGetDirQuadrantFromDelta(dbx, dby); - } - else if (dcx != 0.0f || dcy != 0.0f) - { - // For overlapping boxes with different centers, use distance between centers - dax = dcx; - day = dcy; - dist_axial = dist_center; - quadrant = ImGetDirQuadrantFromDelta(dcx, dcy); - } - else - { - // Degenerate case: two overlapping buttons with same center, break ties arbitrarily (note that LastItemId here is really the _previous_ item order, but it doesn't matter) - quadrant = (window->DC.LastItemId < g.NavId) ? ImGuiDir_Left : ImGuiDir_Right; - } - -#if IMGUI_DEBUG_NAV_SCORING - char buf[128]; - if (IsMouseHoveringRect(cand.Min, cand.Max)) - { - ImFormatString(buf, IM_ARRAYSIZE(buf), "dbox (%.2f,%.2f->%.4f)\ndcen (%.2f,%.2f->%.4f)\nd (%.2f,%.2f->%.4f)\nnav %c, quadrant %c", dbx, dby, dist_box, dcx, dcy, dist_center, dax, day, dist_axial, "WENS"[g.NavMoveDir], "WENS"[quadrant]); - ImDrawList* draw_list = GetForegroundDrawList(window); - draw_list->AddRect(curr.Min, curr.Max, IM_COL32(255,200,0,100)); - draw_list->AddRect(cand.Min, cand.Max, IM_COL32(255,255,0,200)); - draw_list->AddRectFilled(cand.Max - ImVec2(4, 4), cand.Max + CalcTextSize(buf) + ImVec2(4, 4), IM_COL32(40,0,0,150)); - draw_list->AddText(g.IO.FontDefault, 13.0f, cand.Max, ~0U, buf); - } - else if (g.IO.KeyCtrl) // Hold to preview score in matching quadrant. Press C to rotate. - { - if (IsKeyPressedMap(ImGuiKey_C)) { g.NavMoveDirLast = (ImGuiDir)((g.NavMoveDirLast + 1) & 3); g.IO.KeysDownDuration[g.IO.KeyMap[ImGuiKey_C]] = 0.01f; } - if (quadrant == g.NavMoveDir) - { - ImFormatString(buf, IM_ARRAYSIZE(buf), "%.0f/%.0f", dist_box, dist_center); - ImDrawList* draw_list = GetForegroundDrawList(window); - draw_list->AddRectFilled(cand.Min, cand.Max, IM_COL32(255, 0, 0, 200)); - draw_list->AddText(g.IO.FontDefault, 13.0f, cand.Min, IM_COL32(255, 255, 255, 255), buf); - } - } -#endif - - // Is it in the quadrant we're interesting in moving to? - bool new_best = false; - if (quadrant == g.NavMoveDir) - { - // Does it beat the current best candidate? - if (dist_box < result->DistBox) - { - result->DistBox = dist_box; - result->DistCenter = dist_center; - return true; - } - if (dist_box == result->DistBox) - { - // Try using distance between center points to break ties - if (dist_center < result->DistCenter) - { - result->DistCenter = dist_center; - new_best = true; - } - else if (dist_center == result->DistCenter) - { - // Still tied! we need to be extra-careful to make sure everything gets linked properly. We consistently break ties by symbolically moving "later" items - // (with higher index) to the right/downwards by an infinitesimal amount since we the current "best" button already (so it must have a lower index), - // this is fairly easy. This rule ensures that all buttons with dx==dy==0 will end up being linked in order of appearance along the x axis. - if (((g.NavMoveDir == ImGuiDir_Up || g.NavMoveDir == ImGuiDir_Down) ? dby : dbx) < 0.0f) // moving bj to the right/down decreases distance - new_best = true; - } - } - } - - // Axial check: if 'curr' has no link at all in some direction and 'cand' lies roughly in that direction, add a tentative link. This will only be kept if no "real" matches - // are found, so it only augments the graph produced by the above method using extra links. (important, since it doesn't guarantee strong connectedness) - // This is just to avoid buttons having no links in a particular direction when there's a suitable neighbor. you get good graphs without this too. - // 2017/09/29: FIXME: This now currently only enabled inside menu bars, ideally we'd disable it everywhere. Menus in particular need to catch failure. For general navigation it feels awkward. - // Disabling it may lead to disconnected graphs when nodes are very spaced out on different axis. Perhaps consider offering this as an option? - if (result->DistBox == FLT_MAX && dist_axial < result->DistAxial) // Check axial match - if (g.NavLayer == ImGuiNavLayer_Menu && !(g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) - if ((g.NavMoveDir == ImGuiDir_Left && dax < 0.0f) || (g.NavMoveDir == ImGuiDir_Right && dax > 0.0f) || (g.NavMoveDir == ImGuiDir_Up && day < 0.0f) || (g.NavMoveDir == ImGuiDir_Down && day > 0.0f)) - { - result->DistAxial = dist_axial; - new_best = true; - } - - return new_best; -} - -static void ImGui::NavApplyItemToResult(ImGuiNavMoveResult* result, ImGuiWindow* window, ImGuiID id, const ImRect& nav_bb_rel) -{ - result->Window = window; - result->ID = id; - result->FocusScopeId = window->DC.NavFocusScopeIdCurrent; - result->RectRel = nav_bb_rel; -} - -// We get there when either NavId == id, or when g.NavAnyRequest is set (which is updated by NavUpdateAnyRequestFlag above) -static void ImGui::NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, const ImGuiID id) -{ - ImGuiContext& g = *GImGui; - //if (!g.IO.NavActive) // [2017/10/06] Removed this possibly redundant test but I am not sure of all the side-effects yet. Some of the feature here will need to work regardless of using a _NoNavInputs flag. - // return; - - const ImGuiItemFlags item_flags = window->DC.ItemFlags; - const ImRect nav_bb_rel(nav_bb.Min - window->Pos, nav_bb.Max - window->Pos); - - // Process Init Request - if (g.NavInitRequest && g.NavLayer == window->DC.NavLayerCurrent) - { - // Even if 'ImGuiItemFlags_NoNavDefaultFocus' is on (typically collapse/close button) we record the first ResultId so they can be used as a fallback - if (!(item_flags & ImGuiItemFlags_NoNavDefaultFocus) || g.NavInitResultId == 0) - { - g.NavInitResultId = id; - g.NavInitResultRectRel = nav_bb_rel; - } - if (!(item_flags & ImGuiItemFlags_NoNavDefaultFocus)) - { - g.NavInitRequest = false; // Found a match, clear request - NavUpdateAnyRequestFlag(); - } - } - - // Process Move Request (scoring for navigation) - // FIXME-NAV: Consider policy for double scoring (scoring from NavScoringRectScreen + scoring from a rect wrapped according to current wrapping policy) - if ((g.NavId != id || (g.NavMoveRequestFlags & ImGuiNavMoveFlags_AllowCurrentNavId)) && !(item_flags & (ImGuiItemFlags_Disabled | ImGuiItemFlags_NoNav))) - { - ImGuiNavMoveResult* result = (window == g.NavWindow) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; -#if IMGUI_DEBUG_NAV_SCORING - // [DEBUG] Score all items in NavWindow at all times - if (!g.NavMoveRequest) - g.NavMoveDir = g.NavMoveDirLast; - bool new_best = NavScoreItem(result, nav_bb) && g.NavMoveRequest; -#else - bool new_best = g.NavMoveRequest && NavScoreItem(result, nav_bb); -#endif - if (new_best) - NavApplyItemToResult(result, window, id, nav_bb_rel); - - // Features like PageUp/PageDown need to maintain a separate score for the visible set of items. - const float VISIBLE_RATIO = 0.70f; - if ((g.NavMoveRequestFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) && window->ClipRect.Overlaps(nav_bb)) - if (ImClamp(nav_bb.Max.y, window->ClipRect.Min.y, window->ClipRect.Max.y) - ImClamp(nav_bb.Min.y, window->ClipRect.Min.y, window->ClipRect.Max.y) >= (nav_bb.Max.y - nav_bb.Min.y) * VISIBLE_RATIO) - if (NavScoreItem(&g.NavMoveResultLocalVisibleSet, nav_bb)) - NavApplyItemToResult(&g.NavMoveResultLocalVisibleSet, window, id, nav_bb_rel); - } - - // Update window-relative bounding box of navigated item - if (g.NavId == id) - { - g.NavWindow = window; // Always refresh g.NavWindow, because some operations such as FocusItem() don't have a window. - g.NavLayer = window->DC.NavLayerCurrent; - g.NavFocusScopeId = window->DC.NavFocusScopeIdCurrent; - g.NavIdIsAlive = true; - g.NavIdTabCounter = window->DC.FocusCounterTabStop; - window->NavRectRel[window->DC.NavLayerCurrent] = nav_bb_rel; // Store item bounding box (relative to window position) - } -} - -bool ImGui::NavMoveRequestButNoResultYet() -{ - ImGuiContext& g = *GImGui; - return g.NavMoveRequest && g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0; -} - -void ImGui::NavMoveRequestCancel() -{ - ImGuiContext& g = *GImGui; - g.NavMoveRequest = false; - NavUpdateAnyRequestFlag(); -} - -void ImGui::NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, const ImRect& bb_rel, ImGuiNavMoveFlags move_flags) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.NavMoveRequestForward == ImGuiNavForward_None); - NavMoveRequestCancel(); - g.NavMoveDir = move_dir; - g.NavMoveClipDir = clip_dir; - g.NavMoveRequestForward = ImGuiNavForward_ForwardQueued; - g.NavMoveRequestFlags = move_flags; - g.NavWindow->NavRectRel[g.NavLayer] = bb_rel; -} - -void ImGui::NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags) -{ - ImGuiContext& g = *GImGui; - - // Navigation wrap-around logic is delayed to the end of the frame because this operation is only valid after entire - // popup is assembled and in case of appended popups it is not clear which EndPopup() call is final. - g.NavWrapRequestWindow = window; - g.NavWrapRequestFlags = move_flags; -} - -// FIXME: This could be replaced by updating a frame number in each window when (window == NavWindow) and (NavLayer == 0). -// This way we could find the last focused window among our children. It would be much less confusing this way? -static void ImGui::NavSaveLastChildNavWindowIntoParent(ImGuiWindow* nav_window) -{ - ImGuiWindow* parent = nav_window; - while (parent && (parent->Flags & ImGuiWindowFlags_ChildWindow) != 0 && (parent->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) - parent = parent->ParentWindow; - if (parent && parent != nav_window) - parent->NavLastChildNavWindow = nav_window; -} - -// Restore the last focused child. -// Call when we are expected to land on the Main Layer (0) after FocusWindow() -static ImGuiWindow* ImGui::NavRestoreLastChildNavWindow(ImGuiWindow* window) -{ - if (window->NavLastChildNavWindow && window->NavLastChildNavWindow->WasActive) - return window->NavLastChildNavWindow; - return window; -} - -static void NavRestoreLayer(ImGuiNavLayer layer) -{ - ImGuiContext& g = *GImGui; - g.NavLayer = layer; - if (layer == 0) - g.NavWindow = ImGui::NavRestoreLastChildNavWindow(g.NavWindow); - ImGuiWindow* window = g.NavWindow; - if (layer == 0 && window->NavLastIds[0] != 0) - ImGui::SetNavIDWithRectRel(window->NavLastIds[0], layer, 0, window->NavRectRel[0]); - else - ImGui::NavInitWindow(window, true); -} - -static inline void ImGui::NavUpdateAnyRequestFlag() -{ - ImGuiContext& g = *GImGui; - g.NavAnyRequest = g.NavMoveRequest || g.NavInitRequest || (IMGUI_DEBUG_NAV_SCORING && g.NavWindow != NULL); - if (g.NavAnyRequest) - IM_ASSERT(g.NavWindow != NULL); -} - -// This needs to be called before we submit any widget (aka in or before Begin) -void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(window == g.NavWindow); - bool init_for_nav = false; - if (!(window->Flags & ImGuiWindowFlags_NoNavInputs)) - if (!(window->Flags & ImGuiWindowFlags_ChildWindow) || (window->Flags & ImGuiWindowFlags_Popup) || (window->NavLastIds[0] == 0) || force_reinit) - init_for_nav = true; - IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from NavInitWindow(), init_for_nav=%d, window=\"%s\", layer=%d\n", init_for_nav, window->Name, g.NavLayer); - if (init_for_nav) - { - SetNavID(0, g.NavLayer, 0); - g.NavInitRequest = true; - g.NavInitRequestFromMove = false; - g.NavInitResultId = 0; - g.NavInitResultRectRel = ImRect(); - NavUpdateAnyRequestFlag(); - } - else - { - g.NavId = window->NavLastIds[0]; - g.NavFocusScopeId = 0; - } -} - -static ImVec2 ImGui::NavCalcPreferredRefPos() -{ - ImGuiContext& g = *GImGui; - if (g.NavDisableHighlight || !g.NavDisableMouseHover || !g.NavWindow) - { - // Mouse (we need a fallback in case the mouse becomes invalid after being used) - if (IsMousePosValid(&g.IO.MousePos)) - return g.IO.MousePos; - return g.LastValidMousePos; - } - else - { - // When navigation is active and mouse is disabled, decide on an arbitrary position around the bottom left of the currently navigated item. - const ImRect& rect_rel = g.NavWindow->NavRectRel[g.NavLayer]; - ImVec2 pos = g.NavWindow->Pos + ImVec2(rect_rel.Min.x + ImMin(g.Style.FramePadding.x * 4, rect_rel.GetWidth()), rect_rel.Max.y - ImMin(g.Style.FramePadding.y, rect_rel.GetHeight())); - ImGuiViewport* viewport = GetMainViewport(); - return ImFloor(ImClamp(pos, viewport->Pos, viewport->Pos + viewport->Size)); // ImFloor() is important because non-integer mouse position application in backend might be lossy and result in undesirable non-zero delta. - } -} - -float ImGui::GetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode) -{ - ImGuiContext& g = *GImGui; - if (mode == ImGuiInputReadMode_Down) - return g.IO.NavInputs[n]; // Instant, read analog input (0.0f..1.0f, as provided by user) - - const float t = g.IO.NavInputsDownDuration[n]; - if (t < 0.0f && mode == ImGuiInputReadMode_Released) // Return 1.0f when just released, no repeat, ignore analog input. - return (g.IO.NavInputsDownDurationPrev[n] >= 0.0f ? 1.0f : 0.0f); - if (t < 0.0f) - return 0.0f; - if (mode == ImGuiInputReadMode_Pressed) // Return 1.0f when just pressed, no repeat, ignore analog input. - return (t == 0.0f) ? 1.0f : 0.0f; - if (mode == ImGuiInputReadMode_Repeat) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 0.72f, g.IO.KeyRepeatRate * 0.80f); - if (mode == ImGuiInputReadMode_RepeatSlow) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 1.25f, g.IO.KeyRepeatRate * 2.00f); - if (mode == ImGuiInputReadMode_RepeatFast) - return (float)CalcTypematicRepeatAmount(t - g.IO.DeltaTime, t, g.IO.KeyRepeatDelay * 0.72f, g.IO.KeyRepeatRate * 0.30f); - return 0.0f; -} - -ImVec2 ImGui::GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor, float fast_factor) -{ - ImVec2 delta(0.0f, 0.0f); - if (dir_sources & ImGuiNavDirSourceFlags_Keyboard) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_KeyRight_, mode) - GetNavInputAmount(ImGuiNavInput_KeyLeft_, mode), GetNavInputAmount(ImGuiNavInput_KeyDown_, mode) - GetNavInputAmount(ImGuiNavInput_KeyUp_, mode)); - if (dir_sources & ImGuiNavDirSourceFlags_PadDPad) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_DpadRight, mode) - GetNavInputAmount(ImGuiNavInput_DpadLeft, mode), GetNavInputAmount(ImGuiNavInput_DpadDown, mode) - GetNavInputAmount(ImGuiNavInput_DpadUp, mode)); - if (dir_sources & ImGuiNavDirSourceFlags_PadLStick) - delta += ImVec2(GetNavInputAmount(ImGuiNavInput_LStickRight, mode) - GetNavInputAmount(ImGuiNavInput_LStickLeft, mode), GetNavInputAmount(ImGuiNavInput_LStickDown, mode) - GetNavInputAmount(ImGuiNavInput_LStickUp, mode)); - if (slow_factor != 0.0f && IsNavInputDown(ImGuiNavInput_TweakSlow)) - delta *= slow_factor; - if (fast_factor != 0.0f && IsNavInputDown(ImGuiNavInput_TweakFast)) - delta *= fast_factor; - return delta; -} - -static void ImGui::NavUpdate() -{ - ImGuiContext& g = *GImGui; - ImGuiIO& io = g.IO; - - io.WantSetMousePos = false; - g.NavWrapRequestWindow = NULL; - g.NavWrapRequestFlags = ImGuiNavMoveFlags_None; -#if 0 - if (g.NavScoringCount > 0) IMGUI_DEBUG_LOG("NavScoringCount %d for '%s' layer %d (Init:%d, Move:%d)\n", g.FrameCount, g.NavScoringCount, g.NavWindow ? g.NavWindow->Name : "NULL", g.NavLayer, g.NavInitRequest || g.NavInitResultId != 0, g.NavMoveRequest); -#endif - - // Set input source as Gamepad when buttons are pressed (as some features differs when used with Gamepad vs Keyboard) - // (do it before we map Keyboard input!) - bool nav_keyboard_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) != 0; - bool nav_gamepad_active = (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) != 0 && (io.BackendFlags & ImGuiBackendFlags_HasGamepad) != 0; - if (nav_gamepad_active && g.NavInputSource != ImGuiInputSource_NavGamepad) - { - if (io.NavInputs[ImGuiNavInput_Activate] > 0.0f || io.NavInputs[ImGuiNavInput_Input] > 0.0f || io.NavInputs[ImGuiNavInput_Cancel] > 0.0f || io.NavInputs[ImGuiNavInput_Menu] > 0.0f - || io.NavInputs[ImGuiNavInput_DpadLeft] > 0.0f || io.NavInputs[ImGuiNavInput_DpadRight] > 0.0f || io.NavInputs[ImGuiNavInput_DpadUp] > 0.0f || io.NavInputs[ImGuiNavInput_DpadDown] > 0.0f) - g.NavInputSource = ImGuiInputSource_NavGamepad; - } - - // Update Keyboard->Nav inputs mapping - if (nav_keyboard_active) - { - #define NAV_MAP_KEY(_KEY, _NAV_INPUT) do { if (IsKeyDown(io.KeyMap[_KEY])) { io.NavInputs[_NAV_INPUT] = 1.0f; g.NavInputSource = ImGuiInputSource_NavKeyboard; } } while (0) - NAV_MAP_KEY(ImGuiKey_Space, ImGuiNavInput_Activate ); - NAV_MAP_KEY(ImGuiKey_Enter, ImGuiNavInput_Input ); - NAV_MAP_KEY(ImGuiKey_Escape, ImGuiNavInput_Cancel ); - NAV_MAP_KEY(ImGuiKey_LeftArrow, ImGuiNavInput_KeyLeft_ ); - NAV_MAP_KEY(ImGuiKey_RightArrow,ImGuiNavInput_KeyRight_); - NAV_MAP_KEY(ImGuiKey_UpArrow, ImGuiNavInput_KeyUp_ ); - NAV_MAP_KEY(ImGuiKey_DownArrow, ImGuiNavInput_KeyDown_ ); - if (io.KeyCtrl) - io.NavInputs[ImGuiNavInput_TweakSlow] = 1.0f; - if (io.KeyShift) - io.NavInputs[ImGuiNavInput_TweakFast] = 1.0f; - if (io.KeyAlt && !io.KeyCtrl) // AltGR is Alt+Ctrl, also even on keyboards without AltGR we don't want Alt+Ctrl to open menu. - io.NavInputs[ImGuiNavInput_KeyMenu_] = 1.0f; - #undef NAV_MAP_KEY - } - memcpy(io.NavInputsDownDurationPrev, io.NavInputsDownDuration, sizeof(io.NavInputsDownDuration)); - for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) - io.NavInputsDownDuration[i] = (io.NavInputs[i] > 0.0f) ? (io.NavInputsDownDuration[i] < 0.0f ? 0.0f : io.NavInputsDownDuration[i] + io.DeltaTime) : -1.0f; - - // Process navigation init request (select first/default focus) - if (g.NavInitResultId != 0 && (!g.NavDisableHighlight || g.NavInitRequestFromMove)) - NavUpdateInitResult(); - g.NavInitRequest = false; - g.NavInitRequestFromMove = false; - g.NavInitResultId = 0; - g.NavJustMovedToId = 0; - - // Process navigation move request - if (g.NavMoveRequest) - NavUpdateMoveResult(); - - // When a forwarded move request failed, we restore the highlight that we disabled during the forward frame - if (g.NavMoveRequestForward == ImGuiNavForward_ForwardActive) - { - IM_ASSERT(g.NavMoveRequest); - if (g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0) - g.NavDisableHighlight = false; - g.NavMoveRequestForward = ImGuiNavForward_None; - } - - // Apply application mouse position movement, after we had a chance to process move request result. - if (g.NavMousePosDirty && g.NavIdIsAlive) - { - // Set mouse position given our knowledge of the navigated item position from last frame - if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos)) - { - if (!g.NavDisableHighlight && g.NavDisableMouseHover && g.NavWindow) - { - io.MousePos = io.MousePosPrev = NavCalcPreferredRefPos(); - io.WantSetMousePos = true; - } - } - g.NavMousePosDirty = false; - } - g.NavIdIsAlive = false; - g.NavJustTabbedId = 0; - IM_ASSERT(g.NavLayer == 0 || g.NavLayer == 1); - - // Store our return window (for returning from Layer 1 to Layer 0) and clear it as soon as we step back in our own Layer 0 - if (g.NavWindow) - NavSaveLastChildNavWindowIntoParent(g.NavWindow); - if (g.NavWindow && g.NavWindow->NavLastChildNavWindow != NULL && g.NavLayer == ImGuiNavLayer_Main) - g.NavWindow->NavLastChildNavWindow = NULL; - - // Update CTRL+TAB and Windowing features (hold Square to move/resize/etc.) - NavUpdateWindowing(); - - // Set output flags for user application - io.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs); - io.NavVisible = (io.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL); - - // Process NavCancel input (to close a popup, get back to parent, clear focus) - if (IsNavInputTest(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed)) - { - IMGUI_DEBUG_LOG_NAV("[nav] ImGuiNavInput_Cancel\n"); - if (g.ActiveId != 0) - { - if (!IsActiveIdUsingNavInput(ImGuiNavInput_Cancel)) - ClearActiveID(); - } - else if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow) && !(g.NavWindow->Flags & ImGuiWindowFlags_Popup) && g.NavWindow->ParentWindow) - { - // Exit child window - ImGuiWindow* child_window = g.NavWindow; - ImGuiWindow* parent_window = g.NavWindow->ParentWindow; - IM_ASSERT(child_window->ChildId != 0); - FocusWindow(parent_window); - SetNavID(child_window->ChildId, 0, 0); - // Reassigning with same value, we're being explicit here. - g.NavIdIsAlive = false; // -V1048 - if (g.NavDisableMouseHover) - g.NavMousePosDirty = true; - } - else if (g.OpenPopupStack.Size > 0) - { - // Close open popup/menu - if (!(g.OpenPopupStack.back().Window->Flags & ImGuiWindowFlags_Modal)) - ClosePopupToLevel(g.OpenPopupStack.Size - 1, true); - } - else if (g.NavLayer != ImGuiNavLayer_Main) - { - // Leave the "menu" layer - NavRestoreLayer(ImGuiNavLayer_Main); - } - else - { - // Clear NavLastId for popups but keep it for regular child window so we can leave one and come back where we were - if (g.NavWindow && ((g.NavWindow->Flags & ImGuiWindowFlags_Popup) || !(g.NavWindow->Flags & ImGuiWindowFlags_ChildWindow))) - g.NavWindow->NavLastIds[0] = 0; - g.NavId = g.NavFocusScopeId = 0; - } - } - - // Process manual activation request - g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavInputId = 0; - if (g.NavId != 0 && !g.NavDisableHighlight && !g.NavWindowingTarget && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) - { - bool activate_down = IsNavInputDown(ImGuiNavInput_Activate); - bool activate_pressed = activate_down && IsNavInputTest(ImGuiNavInput_Activate, ImGuiInputReadMode_Pressed); - if (g.ActiveId == 0 && activate_pressed) - g.NavActivateId = g.NavId; - if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && activate_down) - g.NavActivateDownId = g.NavId; - if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && activate_pressed) - g.NavActivatePressedId = g.NavId; - if ((g.ActiveId == 0 || g.ActiveId == g.NavId) && IsNavInputTest(ImGuiNavInput_Input, ImGuiInputReadMode_Pressed)) - g.NavInputId = g.NavId; - } - if (g.NavWindow && (g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) - g.NavDisableHighlight = true; - if (g.NavActivateId != 0) - IM_ASSERT(g.NavActivateDownId == g.NavActivateId); - g.NavMoveRequest = false; - - // Process programmatic activation request - if (g.NavNextActivateId != 0) - g.NavActivateId = g.NavActivateDownId = g.NavActivatePressedId = g.NavInputId = g.NavNextActivateId; - g.NavNextActivateId = 0; - - // Initiate directional inputs request - if (g.NavMoveRequestForward == ImGuiNavForward_None) - { - g.NavMoveDir = ImGuiDir_None; - g.NavMoveRequestFlags = ImGuiNavMoveFlags_None; - if (g.NavWindow && !g.NavWindowingTarget && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs)) - { - const ImGuiInputReadMode read_mode = ImGuiInputReadMode_Repeat; - if (!IsActiveIdUsingNavDir(ImGuiDir_Left) && (IsNavInputTest(ImGuiNavInput_DpadLeft, read_mode) || IsNavInputTest(ImGuiNavInput_KeyLeft_, read_mode))) { g.NavMoveDir = ImGuiDir_Left; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Right) && (IsNavInputTest(ImGuiNavInput_DpadRight, read_mode) || IsNavInputTest(ImGuiNavInput_KeyRight_, read_mode))) { g.NavMoveDir = ImGuiDir_Right; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Up) && (IsNavInputTest(ImGuiNavInput_DpadUp, read_mode) || IsNavInputTest(ImGuiNavInput_KeyUp_, read_mode))) { g.NavMoveDir = ImGuiDir_Up; } - if (!IsActiveIdUsingNavDir(ImGuiDir_Down) && (IsNavInputTest(ImGuiNavInput_DpadDown, read_mode) || IsNavInputTest(ImGuiNavInput_KeyDown_, read_mode))) { g.NavMoveDir = ImGuiDir_Down; } - } - g.NavMoveClipDir = g.NavMoveDir; - } - else - { - // Forwarding previous request (which has been modified, e.g. wrap around menus rewrite the requests with a starting rectangle at the other side of the window) - // (Preserve g.NavMoveRequestFlags, g.NavMoveClipDir which were set by the NavMoveRequestForward() function) - IM_ASSERT(g.NavMoveDir != ImGuiDir_None && g.NavMoveClipDir != ImGuiDir_None); - IM_ASSERT(g.NavMoveRequestForward == ImGuiNavForward_ForwardQueued); - IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequestForward %d\n", g.NavMoveDir); - g.NavMoveRequestForward = ImGuiNavForward_ForwardActive; - } - - // Update PageUp/PageDown/Home/End scroll - // FIXME-NAV: Consider enabling those keys even without the master ImGuiConfigFlags_NavEnableKeyboard flag? - float nav_scoring_rect_offset_y = 0.0f; - if (nav_keyboard_active) - nav_scoring_rect_offset_y = NavUpdatePageUpPageDown(); - - // If we initiate a movement request and have no current NavId, we initiate a InitDefautRequest that will be used as a fallback if the direction fails to find a match - if (g.NavMoveDir != ImGuiDir_None) - { - g.NavMoveRequest = true; - g.NavMoveRequestKeyMods = io.KeyMods; - g.NavMoveDirLast = g.NavMoveDir; - } - if (g.NavMoveRequest && g.NavId == 0) - { - IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: from move, window \"%s\", layer=%d\n", g.NavWindow->Name, g.NavLayer); - g.NavInitRequest = g.NavInitRequestFromMove = true; - // Reassigning with same value, we're being explicit here. - g.NavInitResultId = 0; // -V1048 - g.NavDisableHighlight = false; - } - NavUpdateAnyRequestFlag(); - - // Scrolling - if (g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) && !g.NavWindowingTarget) - { - // *Fallback* manual-scroll with Nav directional keys when window has no navigable item - ImGuiWindow* window = g.NavWindow; - const float scroll_speed = IM_ROUND(window->CalcFontSize() * 100 * io.DeltaTime); // We need round the scrolling speed because sub-pixel scroll isn't reliably supported. - if (window->DC.NavLayerActiveMask == 0x00 && window->DC.NavHasScroll && g.NavMoveRequest) - { - if (g.NavMoveDir == ImGuiDir_Left || g.NavMoveDir == ImGuiDir_Right) - SetScrollX(window, ImFloor(window->Scroll.x + ((g.NavMoveDir == ImGuiDir_Left) ? -1.0f : +1.0f) * scroll_speed)); - if (g.NavMoveDir == ImGuiDir_Up || g.NavMoveDir == ImGuiDir_Down) - SetScrollY(window, ImFloor(window->Scroll.y + ((g.NavMoveDir == ImGuiDir_Up) ? -1.0f : +1.0f) * scroll_speed)); - } - - // *Normal* Manual scroll with NavScrollXXX keys - // Next movement request will clamp the NavId reference rectangle to the visible area, so navigation will resume within those bounds. - ImVec2 scroll_dir = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadLStick, ImGuiInputReadMode_Down, 1.0f / 10.0f, 10.0f); - if (scroll_dir.x != 0.0f && window->ScrollbarX) - SetScrollX(window, ImFloor(window->Scroll.x + scroll_dir.x * scroll_speed)); - if (scroll_dir.y != 0.0f) - SetScrollY(window, ImFloor(window->Scroll.y + scroll_dir.y * scroll_speed)); - } - - // Reset search results - g.NavMoveResultLocal.Clear(); - g.NavMoveResultLocalVisibleSet.Clear(); - g.NavMoveResultOther.Clear(); - - // When using gamepad, we project the reference nav bounding box into window visible area. - // This is to allow resuming navigation inside the visible area after doing a large amount of scrolling, since with gamepad every movements are relative - // (can't focus a visible object like we can with the mouse). - if (g.NavMoveRequest && g.NavInputSource == ImGuiInputSource_NavGamepad && g.NavLayer == ImGuiNavLayer_Main) - { - ImGuiWindow* window = g.NavWindow; - ImRect window_rect_rel(window->InnerRect.Min - window->Pos - ImVec2(1, 1), window->InnerRect.Max - window->Pos + ImVec2(1, 1)); - if (!window_rect_rel.Contains(window->NavRectRel[g.NavLayer])) - { - IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: clamp NavRectRel\n"); - float pad = window->CalcFontSize() * 0.5f; - window_rect_rel.Expand(ImVec2(-ImMin(window_rect_rel.GetWidth(), pad), -ImMin(window_rect_rel.GetHeight(), pad))); // Terrible approximation for the intent of starting navigation from first fully visible item - window->NavRectRel[g.NavLayer].ClipWithFull(window_rect_rel); - g.NavId = g.NavFocusScopeId = 0; - } - } - - // For scoring we use a single segment on the left side our current item bounding box (not touching the edge to avoid box overlap with zero-spaced items) - ImRect nav_rect_rel = g.NavWindow ? g.NavWindow->NavRectRel[g.NavLayer] : ImRect(0, 0, 0, 0); - g.NavScoringRect = g.NavWindow ? ImRect(g.NavWindow->Pos + nav_rect_rel.Min, g.NavWindow->Pos + nav_rect_rel.Max) : ImRect(0, 0, 0, 0); - g.NavScoringRect.TranslateY(nav_scoring_rect_offset_y); - g.NavScoringRect.Min.x = ImMin(g.NavScoringRect.Min.x + 1.0f, g.NavScoringRect.Max.x); - g.NavScoringRect.Max.x = g.NavScoringRect.Min.x; - IM_ASSERT(!g.NavScoringRect.IsInverted()); // Ensure if we have a finite, non-inverted bounding box here will allows us to remove extraneous ImFabs() calls in NavScoreItem(). - //GetForegroundDrawList()->AddRect(g.NavScoringRectScreen.Min, g.NavScoringRectScreen.Max, IM_COL32(255,200,0,255)); // [DEBUG] - g.NavScoringCount = 0; -#if IMGUI_DEBUG_NAV_RECTS - if (g.NavWindow) - { - ImDrawList* draw_list = GetForegroundDrawList(g.NavWindow); - if (1) { for (int layer = 0; layer < 2; layer++) draw_list->AddRect(g.NavWindow->Pos + g.NavWindow->NavRectRel[layer].Min, g.NavWindow->Pos + g.NavWindow->NavRectRel[layer].Max, IM_COL32(255,200,0,255)); } // [DEBUG] - if (1) { ImU32 col = (!g.NavWindow->Hidden) ? IM_COL32(255,0,255,255) : IM_COL32(255,0,0,255); ImVec2 p = NavCalcPreferredRefPos(); char buf[32]; ImFormatString(buf, 32, "%d", g.NavLayer); draw_list->AddCircleFilled(p, 3.0f, col); draw_list->AddText(NULL, 13.0f, p + ImVec2(8,-4), col, buf); } - } -#endif -} - -static void ImGui::NavUpdateInitResult() -{ - // In very rare cases g.NavWindow may be null (e.g. clearing focus after requesting an init request, which does happen when releasing Alt while clicking on void) - ImGuiContext& g = *GImGui; - if (!g.NavWindow) - return; - - // Apply result from previous navigation init request (will typically select the first item, unless SetItemDefaultFocus() has been called) - IMGUI_DEBUG_LOG_NAV("[nav] NavInitRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", g.NavInitResultId, g.NavLayer, g.NavWindow->Name); - if (g.NavInitRequestFromMove) - SetNavIDWithRectRel(g.NavInitResultId, g.NavLayer, 0, g.NavInitResultRectRel); - else - SetNavID(g.NavInitResultId, g.NavLayer, 0); - g.NavWindow->NavRectRel[g.NavLayer] = g.NavInitResultRectRel; -} - -// Apply result from previous frame navigation directional move request -static void ImGui::NavUpdateMoveResult() -{ - ImGuiContext& g = *GImGui; - if (g.NavMoveResultLocal.ID == 0 && g.NavMoveResultOther.ID == 0) - { - // In a situation when there is no results but NavId != 0, re-enable the Navigation highlight (because g.NavId is not considered as a possible result) - if (g.NavId != 0) - { - g.NavDisableHighlight = false; - g.NavDisableMouseHover = true; - } - return; - } - - // Select which result to use - ImGuiNavMoveResult* result = (g.NavMoveResultLocal.ID != 0) ? &g.NavMoveResultLocal : &g.NavMoveResultOther; - - // PageUp/PageDown behavior first jumps to the bottom/top mostly visible item, _otherwise_ use the result from the previous/next page. - if (g.NavMoveRequestFlags & ImGuiNavMoveFlags_AlsoScoreVisibleSet) - if (g.NavMoveResultLocalVisibleSet.ID != 0 && g.NavMoveResultLocalVisibleSet.ID != g.NavId) - result = &g.NavMoveResultLocalVisibleSet; - - // Maybe entering a flattened child from the outside? In this case solve the tie using the regular scoring rules. - if (result != &g.NavMoveResultOther && g.NavMoveResultOther.ID != 0 && g.NavMoveResultOther.Window->ParentWindow == g.NavWindow) - if ((g.NavMoveResultOther.DistBox < result->DistBox) || (g.NavMoveResultOther.DistBox == result->DistBox && g.NavMoveResultOther.DistCenter < result->DistCenter)) - result = &g.NavMoveResultOther; - IM_ASSERT(g.NavWindow && result->Window); - - // Scroll to keep newly navigated item fully into view. - if (g.NavLayer == ImGuiNavLayer_Main) - { - ImVec2 delta_scroll; - if (g.NavMoveRequestFlags & ImGuiNavMoveFlags_ScrollToEdge) - { - float scroll_target = (g.NavMoveDir == ImGuiDir_Up) ? result->Window->ScrollMax.y : 0.0f; - delta_scroll.y = result->Window->Scroll.y - scroll_target; - SetScrollY(result->Window, scroll_target); - } - else - { - ImRect rect_abs = ImRect(result->RectRel.Min + result->Window->Pos, result->RectRel.Max + result->Window->Pos); - delta_scroll = ScrollToBringRectIntoView(result->Window, rect_abs); - } - - // Offset our result position so mouse position can be applied immediately after in NavUpdate() - result->RectRel.TranslateX(-delta_scroll.x); - result->RectRel.TranslateY(-delta_scroll.y); - } - - ClearActiveID(); - g.NavWindow = result->Window; - if (g.NavId != result->ID) - { - // Don't set NavJustMovedToId if just landed on the same spot (which may happen with ImGuiNavMoveFlags_AllowCurrentNavId) - g.NavJustMovedToId = result->ID; - g.NavJustMovedToFocusScopeId = result->FocusScopeId; - g.NavJustMovedToKeyMods = g.NavMoveRequestKeyMods; - } - IMGUI_DEBUG_LOG_NAV("[nav] NavMoveRequest: result NavID 0x%08X in Layer %d Window \"%s\"\n", result->ID, g.NavLayer, g.NavWindow->Name); - SetNavIDWithRectRel(result->ID, g.NavLayer, result->FocusScopeId, result->RectRel); -} - -// Handle PageUp/PageDown/Home/End keys -static float ImGui::NavUpdatePageUpPageDown() -{ - ImGuiContext& g = *GImGui; - ImGuiIO& io = g.IO; - - if (g.NavMoveDir != ImGuiDir_None || g.NavWindow == NULL) - return 0.0f; - if ((g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs) || g.NavWindowingTarget != NULL || g.NavLayer != ImGuiNavLayer_Main) - return 0.0f; - - ImGuiWindow* window = g.NavWindow; - const bool page_up_held = IsKeyDown(io.KeyMap[ImGuiKey_PageUp]) && !IsActiveIdUsingKey(ImGuiKey_PageUp); - const bool page_down_held = IsKeyDown(io.KeyMap[ImGuiKey_PageDown]) && !IsActiveIdUsingKey(ImGuiKey_PageDown); - const bool home_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_Home]) && !IsActiveIdUsingKey(ImGuiKey_Home); - const bool end_pressed = IsKeyPressed(io.KeyMap[ImGuiKey_End]) && !IsActiveIdUsingKey(ImGuiKey_End); - if (page_up_held != page_down_held || home_pressed != end_pressed) // If either (not both) are pressed - { - if (window->DC.NavLayerActiveMask == 0x00 && window->DC.NavHasScroll) - { - // Fallback manual-scroll when window has no navigable item - if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) - SetScrollY(window, window->Scroll.y - window->InnerRect.GetHeight()); - else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) - SetScrollY(window, window->Scroll.y + window->InnerRect.GetHeight()); - else if (home_pressed) - SetScrollY(window, 0.0f); - else if (end_pressed) - SetScrollY(window, window->ScrollMax.y); - } - else - { - ImRect& nav_rect_rel = window->NavRectRel[g.NavLayer]; - const float page_offset_y = ImMax(0.0f, window->InnerRect.GetHeight() - window->CalcFontSize() * 1.0f + nav_rect_rel.GetHeight()); - float nav_scoring_rect_offset_y = 0.0f; - if (IsKeyPressed(io.KeyMap[ImGuiKey_PageUp], true)) - { - nav_scoring_rect_offset_y = -page_offset_y; - g.NavMoveDir = ImGuiDir_Down; // Because our scoring rect is offset up, we request the down direction (so we can always land on the last item) - g.NavMoveClipDir = ImGuiDir_Up; - g.NavMoveRequestFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; - } - else if (IsKeyPressed(io.KeyMap[ImGuiKey_PageDown], true)) - { - nav_scoring_rect_offset_y = +page_offset_y; - g.NavMoveDir = ImGuiDir_Up; // Because our scoring rect is offset down, we request the up direction (so we can always land on the last item) - g.NavMoveClipDir = ImGuiDir_Down; - g.NavMoveRequestFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_AlsoScoreVisibleSet; - } - else if (home_pressed) - { - // FIXME-NAV: handling of Home/End is assuming that the top/bottom most item will be visible with Scroll.y == 0/ScrollMax.y - // Scrolling will be handled via the ImGuiNavMoveFlags_ScrollToEdge flag, we don't scroll immediately to avoid scrolling happening before nav result. - // Preserve current horizontal position if we have any. - nav_rect_rel.Min.y = nav_rect_rel.Max.y = -window->Scroll.y; - if (nav_rect_rel.IsInverted()) - nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; - g.NavMoveDir = ImGuiDir_Down; - g.NavMoveRequestFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdge; - } - else if (end_pressed) - { - nav_rect_rel.Min.y = nav_rect_rel.Max.y = window->ScrollMax.y + window->SizeFull.y - window->Scroll.y; - if (nav_rect_rel.IsInverted()) - nav_rect_rel.Min.x = nav_rect_rel.Max.x = 0.0f; - g.NavMoveDir = ImGuiDir_Up; - g.NavMoveRequestFlags = ImGuiNavMoveFlags_AllowCurrentNavId | ImGuiNavMoveFlags_ScrollToEdge; - } - return nav_scoring_rect_offset_y; - } - } - return 0.0f; -} - -static void ImGui::NavEndFrame() -{ - ImGuiContext& g = *GImGui; - - // Show CTRL+TAB list window - if (g.NavWindowingTarget != NULL) - NavUpdateWindowingOverlay(); - - // Perform wrap-around in menus - ImGuiWindow* window = g.NavWrapRequestWindow; - ImGuiNavMoveFlags move_flags = g.NavWrapRequestFlags; - if (window != NULL && g.NavWindow == window && NavMoveRequestButNoResultYet() && g.NavMoveRequestForward == ImGuiNavForward_None && g.NavLayer == ImGuiNavLayer_Main) - { - IM_ASSERT(move_flags != 0); // No points calling this with no wrapping - ImRect bb_rel = window->NavRectRel[0]; - - ImGuiDir clip_dir = g.NavMoveDir; - if (g.NavMoveDir == ImGuiDir_Left && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) - { - bb_rel.Min.x = bb_rel.Max.x = - ImMax(window->SizeFull.x, window->ContentSize.x + window->WindowPadding.x * 2.0f) - window->Scroll.x; - if (move_flags & ImGuiNavMoveFlags_WrapX) - { - bb_rel.TranslateY(-bb_rel.GetHeight()); - clip_dir = ImGuiDir_Up; - } - NavMoveRequestForward(g.NavMoveDir, clip_dir, bb_rel, move_flags); - } - if (g.NavMoveDir == ImGuiDir_Right && (move_flags & (ImGuiNavMoveFlags_WrapX | ImGuiNavMoveFlags_LoopX))) - { - bb_rel.Min.x = bb_rel.Max.x = -window->Scroll.x; - if (move_flags & ImGuiNavMoveFlags_WrapX) - { - bb_rel.TranslateY(+bb_rel.GetHeight()); - clip_dir = ImGuiDir_Down; - } - NavMoveRequestForward(g.NavMoveDir, clip_dir, bb_rel, move_flags); - } - if (g.NavMoveDir == ImGuiDir_Up && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) - { - bb_rel.Min.y = bb_rel.Max.y = - ImMax(window->SizeFull.y, window->ContentSize.y + window->WindowPadding.y * 2.0f) - window->Scroll.y; - if (move_flags & ImGuiNavMoveFlags_WrapY) - { - bb_rel.TranslateX(-bb_rel.GetWidth()); - clip_dir = ImGuiDir_Left; - } - NavMoveRequestForward(g.NavMoveDir, clip_dir, bb_rel, move_flags); - } - if (g.NavMoveDir == ImGuiDir_Down && (move_flags & (ImGuiNavMoveFlags_WrapY | ImGuiNavMoveFlags_LoopY))) - { - bb_rel.Min.y = bb_rel.Max.y = -window->Scroll.y; - if (move_flags & ImGuiNavMoveFlags_WrapY) - { - bb_rel.TranslateX(+bb_rel.GetWidth()); - clip_dir = ImGuiDir_Right; - } - NavMoveRequestForward(g.NavMoveDir, clip_dir, bb_rel, move_flags); - } - } -} - -static int ImGui::FindWindowFocusIndex(ImGuiWindow* window) // FIXME-OPT O(N) -{ - ImGuiContext& g = *GImGui; - for (int i = g.WindowsFocusOrder.Size - 1; i >= 0; i--) - if (g.WindowsFocusOrder[i] == window) - return i; - return -1; -} - -static ImGuiWindow* FindWindowNavFocusable(int i_start, int i_stop, int dir) // FIXME-OPT O(N) -{ - ImGuiContext& g = *GImGui; - for (int i = i_start; i >= 0 && i < g.WindowsFocusOrder.Size && i != i_stop; i += dir) - if (ImGui::IsWindowNavFocusable(g.WindowsFocusOrder[i])) - return g.WindowsFocusOrder[i]; - return NULL; -} - -static void NavUpdateWindowingHighlightWindow(int focus_change_dir) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.NavWindowingTarget); - if (g.NavWindowingTarget->Flags & ImGuiWindowFlags_Modal) - return; - - const int i_current = ImGui::FindWindowFocusIndex(g.NavWindowingTarget); - ImGuiWindow* window_target = FindWindowNavFocusable(i_current + focus_change_dir, -INT_MAX, focus_change_dir); - if (!window_target) - window_target = FindWindowNavFocusable((focus_change_dir < 0) ? (g.WindowsFocusOrder.Size - 1) : 0, i_current, focus_change_dir); - if (window_target) // Don't reset windowing target if there's a single window in the list - g.NavWindowingTarget = g.NavWindowingTargetAnim = window_target; - g.NavWindowingToggleLayer = false; -} - -// Windowing management mode -// Keyboard: CTRL+Tab (change focus/move/resize), Alt (toggle menu layer) -// Gamepad: Hold Menu/Square (change focus/move/resize), Tap Menu/Square (toggle menu layer) -static void ImGui::NavUpdateWindowing() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* apply_focus_window = NULL; - bool apply_toggle_layer = false; - - ImGuiWindow* modal_window = GetTopMostPopupModal(); - bool allow_windowing = (modal_window == NULL); - if (!allow_windowing) - g.NavWindowingTarget = NULL; - - // Fade out - if (g.NavWindowingTargetAnim && g.NavWindowingTarget == NULL) - { - g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha - g.IO.DeltaTime * 10.0f, 0.0f); - if (g.DimBgRatio <= 0.0f && g.NavWindowingHighlightAlpha <= 0.0f) - g.NavWindowingTargetAnim = NULL; - } - - // Start CTRL-TAB or Square+L/R window selection - bool start_windowing_with_gamepad = allow_windowing && !g.NavWindowingTarget && IsNavInputTest(ImGuiNavInput_Menu, ImGuiInputReadMode_Pressed); - bool start_windowing_with_keyboard = allow_windowing && !g.NavWindowingTarget && g.IO.KeyCtrl && IsKeyPressedMap(ImGuiKey_Tab) && (g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard); - if (start_windowing_with_gamepad || start_windowing_with_keyboard) - if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1)) - { - g.NavWindowingTarget = g.NavWindowingTargetAnim = window->RootWindow; // FIXME-DOCK: Will need to use RootWindowDockStop - g.NavWindowingTimer = g.NavWindowingHighlightAlpha = 0.0f; - g.NavWindowingToggleLayer = start_windowing_with_keyboard ? false : true; - g.NavInputSource = start_windowing_with_keyboard ? ImGuiInputSource_NavKeyboard : ImGuiInputSource_NavGamepad; - } - - // Gamepad update - g.NavWindowingTimer += g.IO.DeltaTime; - if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_NavGamepad) - { - // Highlight only appears after a brief time holding the button, so that a fast tap on PadMenu (to toggle NavLayer) doesn't add visual noise - g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); - - // Select window to focus - const int focus_change_dir = (int)IsNavInputTest(ImGuiNavInput_FocusPrev, ImGuiInputReadMode_RepeatSlow) - (int)IsNavInputTest(ImGuiNavInput_FocusNext, ImGuiInputReadMode_RepeatSlow); - if (focus_change_dir != 0) - { - NavUpdateWindowingHighlightWindow(focus_change_dir); - g.NavWindowingHighlightAlpha = 1.0f; - } - - // Single press toggles NavLayer, long press with L/R apply actual focus on release (until then the window was merely rendered top-most) - if (!IsNavInputDown(ImGuiNavInput_Menu)) - { - g.NavWindowingToggleLayer &= (g.NavWindowingHighlightAlpha < 1.0f); // Once button was held long enough we don't consider it a tap-to-toggle-layer press anymore. - if (g.NavWindowingToggleLayer && g.NavWindow) - apply_toggle_layer = true; - else if (!g.NavWindowingToggleLayer) - apply_focus_window = g.NavWindowingTarget; - g.NavWindowingTarget = NULL; - } - } - - // Keyboard: Focus - if (g.NavWindowingTarget && g.NavInputSource == ImGuiInputSource_NavKeyboard) - { - // Visuals only appears after a brief time after pressing TAB the first time, so that a fast CTRL+TAB doesn't add visual noise - g.NavWindowingHighlightAlpha = ImMax(g.NavWindowingHighlightAlpha, ImSaturate((g.NavWindowingTimer - NAV_WINDOWING_HIGHLIGHT_DELAY) / 0.05f)); // 1.0f - if (IsKeyPressedMap(ImGuiKey_Tab, true)) - NavUpdateWindowingHighlightWindow(g.IO.KeyShift ? +1 : -1); - if (!g.IO.KeyCtrl) - apply_focus_window = g.NavWindowingTarget; - } - - // Keyboard: Press and Release ALT to toggle menu layer - // FIXME: We lack an explicit IO variable for "is the imgui window focused", so compare mouse validity to detect the common case of backend clearing releases all keys on ALT-TAB - if (IsNavInputTest(ImGuiNavInput_KeyMenu_, ImGuiInputReadMode_Pressed)) - g.NavWindowingToggleLayer = true; - if ((g.ActiveId == 0 || g.ActiveIdAllowOverlap) && g.NavWindowingToggleLayer && IsNavInputTest(ImGuiNavInput_KeyMenu_, ImGuiInputReadMode_Released)) - if (IsMousePosValid(&g.IO.MousePos) == IsMousePosValid(&g.IO.MousePosPrev)) - apply_toggle_layer = true; - - // Move window - if (g.NavWindowingTarget && !(g.NavWindowingTarget->Flags & ImGuiWindowFlags_NoMove)) - { - ImVec2 move_delta; - if (g.NavInputSource == ImGuiInputSource_NavKeyboard && !g.IO.KeyShift) - move_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard, ImGuiInputReadMode_Down); - if (g.NavInputSource == ImGuiInputSource_NavGamepad) - move_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_PadLStick, ImGuiInputReadMode_Down); - if (move_delta.x != 0.0f || move_delta.y != 0.0f) - { - const float NAV_MOVE_SPEED = 800.0f; - const float move_speed = ImFloor(NAV_MOVE_SPEED * g.IO.DeltaTime * ImMin(g.IO.DisplayFramebufferScale.x, g.IO.DisplayFramebufferScale.y)); // FIXME: Doesn't handle variable framerate very well - ImGuiWindow* moving_window = g.NavWindowingTarget->RootWindow; - SetWindowPos(moving_window, moving_window->Pos + move_delta * move_speed, ImGuiCond_Always); - MarkIniSettingsDirty(moving_window); - g.NavDisableMouseHover = true; - } - } - - // Apply final focus - if (apply_focus_window && (g.NavWindow == NULL || apply_focus_window != g.NavWindow->RootWindow)) - { - ClearActiveID(); - g.NavDisableHighlight = false; - g.NavDisableMouseHover = true; - apply_focus_window = NavRestoreLastChildNavWindow(apply_focus_window); - ClosePopupsOverWindow(apply_focus_window, false); - FocusWindow(apply_focus_window); - if (apply_focus_window->NavLastIds[0] == 0) - NavInitWindow(apply_focus_window, false); - - // If the window only has a menu layer, select it directly - if (apply_focus_window->DC.NavLayerActiveMask == (1 << ImGuiNavLayer_Menu)) - g.NavLayer = ImGuiNavLayer_Menu; - } - if (apply_focus_window) - g.NavWindowingTarget = NULL; - - // Apply menu/layer toggle - if (apply_toggle_layer && g.NavWindow) - { - // Move to parent menu if necessary - ImGuiWindow* new_nav_window = g.NavWindow; - while (new_nav_window->ParentWindow - && (new_nav_window->DC.NavLayerActiveMask & (1 << ImGuiNavLayer_Menu)) == 0 - && (new_nav_window->Flags & ImGuiWindowFlags_ChildWindow) != 0 - && (new_nav_window->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) == 0) - new_nav_window = new_nav_window->ParentWindow; - if (new_nav_window != g.NavWindow) - { - ImGuiWindow* old_nav_window = g.NavWindow; - FocusWindow(new_nav_window); - new_nav_window->NavLastChildNavWindow = old_nav_window; - } - g.NavDisableHighlight = false; - g.NavDisableMouseHover = true; - - // When entering a regular menu bar with the Alt key, we always reinitialize the navigation ID. - const ImGuiNavLayer new_nav_layer = (g.NavWindow->DC.NavLayerActiveMask & (1 << ImGuiNavLayer_Menu)) ? (ImGuiNavLayer)((int)g.NavLayer ^ 1) : ImGuiNavLayer_Main; - NavRestoreLayer(new_nav_layer); - } -} - -// Window has already passed the IsWindowNavFocusable() -static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window) -{ - if (window->Flags & ImGuiWindowFlags_Popup) - return "(Popup)"; - if ((window->Flags & ImGuiWindowFlags_MenuBar) && strcmp(window->Name, "##MainMenuBar") == 0) - return "(Main menu bar)"; - return "(Untitled)"; -} - -// Overlay displayed when using CTRL+TAB. Called by EndFrame(). -void ImGui::NavUpdateWindowingOverlay() -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.NavWindowingTarget != NULL); - - if (g.NavWindowingTimer < NAV_WINDOWING_LIST_APPEAR_DELAY) - return; - - if (g.NavWindowingListWindow == NULL) - g.NavWindowingListWindow = FindWindowByName("###NavWindowingList"); - const ImGuiViewport* viewport = GetMainViewport(); - SetNextWindowSizeConstraints(ImVec2(viewport->Size.x * 0.20f, viewport->Size.y * 0.20f), ImVec2(FLT_MAX, FLT_MAX)); - SetNextWindowPos(viewport->GetCenter(), ImGuiCond_Always, ImVec2(0.5f, 0.5f)); - PushStyleVar(ImGuiStyleVar_WindowPadding, g.Style.WindowPadding * 2.0f); - Begin("###NavWindowingList", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings); - for (int n = g.WindowsFocusOrder.Size - 1; n >= 0; n--) - { - ImGuiWindow* window = g.WindowsFocusOrder[n]; - if (!IsWindowNavFocusable(window)) - continue; - const char* label = window->Name; - if (label == FindRenderedTextEnd(label)) - label = GetFallbackWindowNameForWindowingList(window); - Selectable(label, g.NavWindowingTarget == window); - } - End(); - PopStyleVar(); -} - - -//----------------------------------------------------------------------------- -// [SECTION] DRAG AND DROP -//----------------------------------------------------------------------------- - -void ImGui::ClearDragDrop() -{ - ImGuiContext& g = *GImGui; - g.DragDropActive = false; - g.DragDropPayload.Clear(); - g.DragDropAcceptFlags = ImGuiDragDropFlags_None; - g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; - g.DragDropAcceptIdCurrRectSurface = FLT_MAX; - g.DragDropAcceptFrameCount = -1; - - g.DragDropPayloadBufHeap.clear(); - memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); -} - -// Call when current ID is active. -// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() -bool ImGui::BeginDragDropSource(ImGuiDragDropFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - bool source_drag_active = false; - ImGuiID source_id = 0; - ImGuiID source_parent_id = 0; - ImGuiMouseButton mouse_button = ImGuiMouseButton_Left; - if (!(flags & ImGuiDragDropFlags_SourceExtern)) - { - source_id = window->DC.LastItemId; - if (source_id != 0 && g.ActiveId != source_id) // Early out for most common case - return false; - if (g.IO.MouseDown[mouse_button] == false) - return false; - - if (source_id == 0) - { - // If you want to use BeginDragDropSource() on an item with no unique identifier for interaction, such as Text() or Image(), you need to: - // A) Read the explanation below, B) Use the ImGuiDragDropFlags_SourceAllowNullID flag, C) Swallow your programmer pride. - if (!(flags & ImGuiDragDropFlags_SourceAllowNullID)) - { - IM_ASSERT(0); - return false; - } - - // Early out - if ((window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HoveredRect) == 0 && (g.ActiveId == 0 || g.ActiveIdWindow != window)) - return false; - - // Magic fallback (=somehow reprehensible) to handle items with no assigned ID, e.g. Text(), Image() - // We build a throwaway ID based on current ID stack + relative AABB of items in window. - // THE IDENTIFIER WON'T SURVIVE ANY REPOSITIONING OF THE WIDGET, so if your widget moves your dragging operation will be canceled. - // We don't need to maintain/call ClearActiveID() as releasing the button will early out this function and trigger !ActiveIdIsAlive. - source_id = window->DC.LastItemId = window->GetIDFromRectangle(window->DC.LastItemRect); - bool is_hovered = ItemHoverable(window->DC.LastItemRect, source_id); - if (is_hovered && g.IO.MouseClicked[mouse_button]) - { - SetActiveID(source_id, window); - FocusWindow(window); - } - if (g.ActiveId == source_id) // Allow the underlying widget to display/return hovered during the mouse release frame, else we would get a flicker. - g.ActiveIdAllowOverlap = is_hovered; - } - else - { - g.ActiveIdAllowOverlap = false; - } - if (g.ActiveId != source_id) - return false; - source_parent_id = window->IDStack.back(); - source_drag_active = IsMouseDragging(mouse_button); - - // Disable navigation and key inputs while dragging - g.ActiveIdUsingNavDirMask = ~(ImU32)0; - g.ActiveIdUsingNavInputMask = ~(ImU32)0; - g.ActiveIdUsingKeyInputMask = ~(ImU64)0; - } - else - { - window = NULL; - source_id = ImHashStr("#SourceExtern"); - source_drag_active = true; - } - - if (source_drag_active) - { - if (!g.DragDropActive) - { - IM_ASSERT(source_id != 0); - ClearDragDrop(); - ImGuiPayload& payload = g.DragDropPayload; - payload.SourceId = source_id; - payload.SourceParentId = source_parent_id; - g.DragDropActive = true; - g.DragDropSourceFlags = flags; - g.DragDropMouseButton = mouse_button; - if (payload.SourceId == g.ActiveId) - g.ActiveIdNoClearOnFocusLoss = true; - } - g.DragDropSourceFrameCount = g.FrameCount; - g.DragDropWithinSource = true; - - if (!(flags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) - { - // Target can request the Source to not display its tooltip (we use a dedicated flag to make this request explicit) - // We unfortunately can't just modify the source flags and skip the call to BeginTooltip, as caller may be emitting contents. - BeginTooltip(); - if (g.DragDropAcceptIdPrev && (g.DragDropAcceptFlags & ImGuiDragDropFlags_AcceptNoPreviewTooltip)) - { - ImGuiWindow* tooltip_window = g.CurrentWindow; - tooltip_window->SkipItems = true; - tooltip_window->HiddenFramesCanSkipItems = 1; - } - } - - if (!(flags & ImGuiDragDropFlags_SourceNoDisableHover) && !(flags & ImGuiDragDropFlags_SourceExtern)) - window->DC.LastItemStatusFlags &= ~ImGuiItemStatusFlags_HoveredRect; - - return true; - } - return false; -} - -void ImGui::EndDragDropSource() -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.DragDropActive); - IM_ASSERT(g.DragDropWithinSource && "Not after a BeginDragDropSource()?"); - - if (!(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip)) - EndTooltip(); - - // Discard the drag if have not called SetDragDropPayload() - if (g.DragDropPayload.DataFrameCount == -1) - ClearDragDrop(); - g.DragDropWithinSource = false; -} - -// Use 'cond' to choose to submit payload on drag start or every frame -bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond) -{ - ImGuiContext& g = *GImGui; - ImGuiPayload& payload = g.DragDropPayload; - if (cond == 0) - cond = ImGuiCond_Always; - - IM_ASSERT(type != NULL); - IM_ASSERT(strlen(type) < IM_ARRAYSIZE(payload.DataType) && "Payload type can be at most 32 characters long"); - IM_ASSERT((data != NULL && data_size > 0) || (data == NULL && data_size == 0)); - IM_ASSERT(cond == ImGuiCond_Always || cond == ImGuiCond_Once); - IM_ASSERT(payload.SourceId != 0); // Not called between BeginDragDropSource() and EndDragDropSource() - - if (cond == ImGuiCond_Always || payload.DataFrameCount == -1) - { - // Copy payload - ImStrncpy(payload.DataType, type, IM_ARRAYSIZE(payload.DataType)); - g.DragDropPayloadBufHeap.resize(0); - if (data_size > sizeof(g.DragDropPayloadBufLocal)) - { - // Store in heap - g.DragDropPayloadBufHeap.resize((int)data_size); - payload.Data = g.DragDropPayloadBufHeap.Data; - memcpy(payload.Data, data, data_size); - } - else if (data_size > 0) - { - // Store locally - memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); - payload.Data = g.DragDropPayloadBufLocal; - memcpy(payload.Data, data, data_size); - } - else - { - payload.Data = NULL; - } - payload.DataSize = (int)data_size; - } - payload.DataFrameCount = g.FrameCount; - - return (g.DragDropAcceptFrameCount == g.FrameCount) || (g.DragDropAcceptFrameCount == g.FrameCount - 1); -} - -bool ImGui::BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id) -{ - ImGuiContext& g = *GImGui; - if (!g.DragDropActive) - return false; - - ImGuiWindow* window = g.CurrentWindow; - ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; - if (hovered_window == NULL || window->RootWindow != hovered_window->RootWindow) - return false; - IM_ASSERT(id != 0); - if (!IsMouseHoveringRect(bb.Min, bb.Max) || (id == g.DragDropPayload.SourceId)) - return false; - if (window->SkipItems) - return false; - - IM_ASSERT(g.DragDropWithinTarget == false); - g.DragDropTargetRect = bb; - g.DragDropTargetId = id; - g.DragDropWithinTarget = true; - return true; -} - -// We don't use BeginDragDropTargetCustom() and duplicate its code because: -// 1) we use LastItemRectHoveredRect which handles items that pushes a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. -// 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. -// Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) -bool ImGui::BeginDragDropTarget() -{ - ImGuiContext& g = *GImGui; - if (!g.DragDropActive) - return false; - - ImGuiWindow* window = g.CurrentWindow; - if (!(window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HoveredRect)) - return false; - ImGuiWindow* hovered_window = g.HoveredWindowUnderMovingWindow; - if (hovered_window == NULL || window->RootWindow != hovered_window->RootWindow) - return false; - - const ImRect& display_rect = (window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HasDisplayRect) ? window->DC.LastItemDisplayRect : window->DC.LastItemRect; - ImGuiID id = window->DC.LastItemId; - if (id == 0) - id = window->GetIDFromRectangle(display_rect); - if (g.DragDropPayload.SourceId == id) - return false; - - IM_ASSERT(g.DragDropWithinTarget == false); - g.DragDropTargetRect = display_rect; - g.DragDropTargetId = id; - g.DragDropWithinTarget = true; - return true; -} - -bool ImGui::IsDragDropPayloadBeingAccepted() -{ - ImGuiContext& g = *GImGui; - return g.DragDropActive && g.DragDropAcceptIdPrev != 0; -} - -const ImGuiPayload* ImGui::AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiPayload& payload = g.DragDropPayload; - IM_ASSERT(g.DragDropActive); // Not called between BeginDragDropTarget() and EndDragDropTarget() ? - IM_ASSERT(payload.DataFrameCount != -1); // Forgot to call EndDragDropTarget() ? - if (type != NULL && !payload.IsDataType(type)) - return NULL; - - // Accept smallest drag target bounding box, this allows us to nest drag targets conveniently without ordering constraints. - // NB: We currently accept NULL id as target. However, overlapping targets requires a unique ID to function! - const bool was_accepted_previously = (g.DragDropAcceptIdPrev == g.DragDropTargetId); - ImRect r = g.DragDropTargetRect; - float r_surface = r.GetWidth() * r.GetHeight(); - if (r_surface <= g.DragDropAcceptIdCurrRectSurface) - { - g.DragDropAcceptFlags = flags; - g.DragDropAcceptIdCurr = g.DragDropTargetId; - g.DragDropAcceptIdCurrRectSurface = r_surface; - } - - // Render default drop visuals - payload.Preview = was_accepted_previously; - flags |= (g.DragDropSourceFlags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect); // Source can also inhibit the preview (useful for external sources that lives for 1 frame) - if (!(flags & ImGuiDragDropFlags_AcceptNoDrawDefaultRect) && payload.Preview) - { - // FIXME-DRAG: Settle on a proper default visuals for drop target. - r.Expand(3.5f); - bool push_clip_rect = !window->ClipRect.Contains(r); - if (push_clip_rect) window->DrawList->PushClipRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1)); - window->DrawList->AddRect(r.Min, r.Max, GetColorU32(ImGuiCol_DragDropTarget), 0.0f, ~0, 2.0f); - if (push_clip_rect) window->DrawList->PopClipRect(); - } - - g.DragDropAcceptFrameCount = g.FrameCount; - payload.Delivery = was_accepted_previously && !IsMouseDown(g.DragDropMouseButton); // For extern drag sources affecting os window focus, it's easier to just test !IsMouseDown() instead of IsMouseReleased() - if (!payload.Delivery && !(flags & ImGuiDragDropFlags_AcceptBeforeDelivery)) - return NULL; - - return &payload; -} - -const ImGuiPayload* ImGui::GetDragDropPayload() -{ - ImGuiContext& g = *GImGui; - return g.DragDropActive ? &g.DragDropPayload : NULL; -} - -// We don't really use/need this now, but added it for the sake of consistency and because we might need it later. -void ImGui::EndDragDropTarget() -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.DragDropActive); - IM_ASSERT(g.DragDropWithinTarget); - g.DragDropWithinTarget = false; -} - -//----------------------------------------------------------------------------- -// [SECTION] LOGGING/CAPTURING -//----------------------------------------------------------------------------- -// All text output from the interface can be captured into tty/file/clipboard. -// By default, tree nodes are automatically opened during logging. -//----------------------------------------------------------------------------- - -// Pass text data straight to log (without being displayed) -static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) -{ - if (g.LogFile) - { - g.LogBuffer.Buf.resize(0); - g.LogBuffer.appendfv(fmt, args); - ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); - } - else - { - g.LogBuffer.appendfv(fmt, args); - } -} - -void ImGui::LogText(const char* fmt, ...) -{ - ImGuiContext& g = *GImGui; - if (!g.LogEnabled) - return; - - va_list args; - va_start(args, fmt); - LogTextV(g, fmt, args); - va_end(args); -} - -void ImGui::LogTextV(const char* fmt, va_list args) -{ - ImGuiContext& g = *GImGui; - if (!g.LogEnabled) - return; - - LogTextV(g, fmt, args); -} - -// Internal version that takes a position to decide on newline placement and pad items according to their depth. -// We split text into individual lines to add current tree level padding -// FIXME: This code is a little complicated perhaps, considering simplifying the whole system. -void ImGui::LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - const char* prefix = g.LogNextPrefix; - const char* suffix = g.LogNextSuffix; - g.LogNextPrefix = g.LogNextSuffix = NULL; - - if (!text_end) - text_end = FindRenderedTextEnd(text, text_end); - - const bool log_new_line = ref_pos && (ref_pos->y > g.LogLinePosY + g.Style.FramePadding.y + 1); - if (ref_pos) - g.LogLinePosY = ref_pos->y; - if (log_new_line) - { - LogText(IM_NEWLINE); - g.LogLineFirstItem = true; - } - - if (prefix) - LogRenderedText(ref_pos, prefix, prefix + strlen(prefix)); // Calculate end ourself to ensure "##" are included here. - - // Re-adjust padding if we have popped out of our starting depth - if (g.LogDepthRef > window->DC.TreeDepth) - g.LogDepthRef = window->DC.TreeDepth; - const int tree_depth = (window->DC.TreeDepth - g.LogDepthRef); - - const char* text_remaining = text; - for (;;) - { - // Split the string. Each new line (after a '\n') is followed by indentation corresponding to the current depth of our log entry. - // We don't add a trailing \n yet to allow a subsequent item on the same line to be captured. - const char* line_start = text_remaining; - const char* line_end = ImStreolRange(line_start, text_end); - const bool is_last_line = (line_end == text_end); - if (line_start != line_end || !is_last_line) - { - const int line_length = (int)(line_end - line_start); - const int indentation = g.LogLineFirstItem ? tree_depth * 4 : 1; - LogText("%*s%.*s", indentation, "", line_length, line_start); - g.LogLineFirstItem = false; - if (*line_end == '\n') - { - LogText(IM_NEWLINE); - g.LogLineFirstItem = true; - } - } - if (is_last_line) - break; - text_remaining = line_end + 1; - } - - if (suffix) - LogRenderedText(ref_pos, suffix, suffix + strlen(suffix)); -} - -// Start logging/capturing text output -void ImGui::LogBegin(ImGuiLogType type, int auto_open_depth) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT(g.LogEnabled == false); - IM_ASSERT(g.LogFile == NULL); - IM_ASSERT(g.LogBuffer.empty()); - g.LogEnabled = true; - g.LogType = type; - g.LogNextPrefix = g.LogNextSuffix = NULL; - g.LogDepthRef = window->DC.TreeDepth; - g.LogDepthToExpand = ((auto_open_depth >= 0) ? auto_open_depth : g.LogDepthToExpandDefault); - g.LogLinePosY = FLT_MAX; - g.LogLineFirstItem = true; -} - -// Important: doesn't copy underlying data, use carefully (prefix/suffix must be in scope at the time of the next LogRenderedText) -void ImGui::LogSetNextTextDecoration(const char* prefix, const char* suffix) -{ - ImGuiContext& g = *GImGui; - g.LogNextPrefix = prefix; - g.LogNextSuffix = suffix; -} - -void ImGui::LogToTTY(int auto_open_depth) -{ - ImGuiContext& g = *GImGui; - if (g.LogEnabled) - return; - IM_UNUSED(auto_open_depth); -#ifndef IMGUI_DISABLE_TTY_FUNCTIONS - LogBegin(ImGuiLogType_TTY, auto_open_depth); - g.LogFile = stdout; -#endif -} - -// Start logging/capturing text output to given file -void ImGui::LogToFile(int auto_open_depth, const char* filename) -{ - ImGuiContext& g = *GImGui; - if (g.LogEnabled) - return; - - // FIXME: We could probably open the file in text mode "at", however note that clipboard/buffer logging will still - // be subject to outputting OS-incompatible carriage return if within strings the user doesn't use IM_NEWLINE. - // By opening the file in binary mode "ab" we have consistent output everywhere. - if (!filename) - filename = g.IO.LogFilename; - if (!filename || !filename[0]) - return; - ImFileHandle f = ImFileOpen(filename, "ab"); - if (!f) - { - IM_ASSERT(0); - return; - } - - LogBegin(ImGuiLogType_File, auto_open_depth); - g.LogFile = f; -} - -// Start logging/capturing text output to clipboard -void ImGui::LogToClipboard(int auto_open_depth) -{ - ImGuiContext& g = *GImGui; - if (g.LogEnabled) - return; - LogBegin(ImGuiLogType_Clipboard, auto_open_depth); -} - -void ImGui::LogToBuffer(int auto_open_depth) -{ - ImGuiContext& g = *GImGui; - if (g.LogEnabled) - return; - LogBegin(ImGuiLogType_Buffer, auto_open_depth); -} - -void ImGui::LogFinish() -{ - ImGuiContext& g = *GImGui; - if (!g.LogEnabled) - return; - - LogText(IM_NEWLINE); - switch (g.LogType) - { - case ImGuiLogType_TTY: -#ifndef IMGUI_DISABLE_TTY_FUNCTIONS - fflush(g.LogFile); -#endif - break; - case ImGuiLogType_File: - ImFileClose(g.LogFile); - break; - case ImGuiLogType_Buffer: - break; - case ImGuiLogType_Clipboard: - if (!g.LogBuffer.empty()) - SetClipboardText(g.LogBuffer.begin()); - break; - case ImGuiLogType_None: - IM_ASSERT(0); - break; - } - - g.LogEnabled = false; - g.LogType = ImGuiLogType_None; - g.LogFile = NULL; - g.LogBuffer.clear(); -} - -// Helper to display logging buttons -// FIXME-OBSOLETE: We should probably obsolete this and let the user have their own helper (this is one of the oldest function alive!) -void ImGui::LogButtons() -{ - ImGuiContext& g = *GImGui; - - PushID("LogButtons"); -#ifndef IMGUI_DISABLE_TTY_FUNCTIONS - const bool log_to_tty = Button("Log To TTY"); SameLine(); -#else - const bool log_to_tty = false; -#endif - const bool log_to_file = Button("Log To File"); SameLine(); - const bool log_to_clipboard = Button("Log To Clipboard"); SameLine(); - PushAllowKeyboardFocus(false); - SetNextItemWidth(80.0f); - SliderInt("Default Depth", &g.LogDepthToExpandDefault, 0, 9, NULL); - PopAllowKeyboardFocus(); - PopID(); - - // Start logging at the end of the function so that the buttons don't appear in the log - if (log_to_tty) - LogToTTY(); - if (log_to_file) - LogToFile(); - if (log_to_clipboard) - LogToClipboard(); -} - - -//----------------------------------------------------------------------------- -// [SECTION] SETTINGS -//----------------------------------------------------------------------------- -// - UpdateSettings() [Internal] -// - MarkIniSettingsDirty() [Internal] -// - CreateNewWindowSettings() [Internal] -// - FindWindowSettings() [Internal] -// - FindOrCreateWindowSettings() [Internal] -// - FindSettingsHandler() [Internal] -// - ClearIniSettings() [Internal] -// - LoadIniSettingsFromDisk() -// - LoadIniSettingsFromMemory() -// - SaveIniSettingsToDisk() -// - SaveIniSettingsToMemory() -// - WindowSettingsHandler_***() [Internal] -//----------------------------------------------------------------------------- - -// Called by NewFrame() -void ImGui::UpdateSettings() -{ - // Load settings on first frame (if not explicitly loaded manually before) - ImGuiContext& g = *GImGui; - if (!g.SettingsLoaded) - { - IM_ASSERT(g.SettingsWindows.empty()); - if (g.IO.IniFilename) - LoadIniSettingsFromDisk(g.IO.IniFilename); - g.SettingsLoaded = true; - } - - // Save settings (with a delay after the last modification, so we don't spam disk too much) - if (g.SettingsDirtyTimer > 0.0f) - { - g.SettingsDirtyTimer -= g.IO.DeltaTime; - if (g.SettingsDirtyTimer <= 0.0f) - { - if (g.IO.IniFilename != NULL) - SaveIniSettingsToDisk(g.IO.IniFilename); - else - g.IO.WantSaveIniSettings = true; // Let user know they can call SaveIniSettingsToMemory(). user will need to clear io.WantSaveIniSettings themselves. - g.SettingsDirtyTimer = 0.0f; - } - } -} - -void ImGui::MarkIniSettingsDirty() -{ - ImGuiContext& g = *GImGui; - if (g.SettingsDirtyTimer <= 0.0f) - g.SettingsDirtyTimer = g.IO.IniSavingRate; -} - -void ImGui::MarkIniSettingsDirty(ImGuiWindow* window) -{ - ImGuiContext& g = *GImGui; - if (!(window->Flags & ImGuiWindowFlags_NoSavedSettings)) - if (g.SettingsDirtyTimer <= 0.0f) - g.SettingsDirtyTimer = g.IO.IniSavingRate; -} - -ImGuiWindowSettings* ImGui::CreateNewWindowSettings(const char* name) -{ - ImGuiContext& g = *GImGui; - -#if !IMGUI_DEBUG_INI_SETTINGS - // Skip to the "###" marker if any. We don't skip past to match the behavior of GetID() - // Preserve the full string when IMGUI_DEBUG_INI_SETTINGS is set to make .ini inspection easier. - if (const char* p = strstr(name, "###")) - name = p; -#endif - const size_t name_len = strlen(name); - - // Allocate chunk - const size_t chunk_size = sizeof(ImGuiWindowSettings) + name_len + 1; - ImGuiWindowSettings* settings = g.SettingsWindows.alloc_chunk(chunk_size); - IM_PLACEMENT_NEW(settings) ImGuiWindowSettings(); - settings->ID = ImHashStr(name, name_len); - memcpy(settings->GetName(), name, name_len + 1); // Store with zero terminator - - return settings; -} - -ImGuiWindowSettings* ImGui::FindWindowSettings(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) - if (settings->ID == id) - return settings; - return NULL; -} - -ImGuiWindowSettings* ImGui::FindOrCreateWindowSettings(const char* name) -{ - if (ImGuiWindowSettings* settings = FindWindowSettings(ImHashStr(name))) - return settings; - return CreateNewWindowSettings(name); -} - -ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name) -{ - ImGuiContext& g = *GImGui; - const ImGuiID type_hash = ImHashStr(type_name); - for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) - if (g.SettingsHandlers[handler_n].TypeHash == type_hash) - return &g.SettingsHandlers[handler_n]; - return NULL; -} - -void ImGui::ClearIniSettings() -{ - ImGuiContext& g = *GImGui; - g.SettingsIniData.clear(); - for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) - if (g.SettingsHandlers[handler_n].ClearAllFn) - g.SettingsHandlers[handler_n].ClearAllFn(&g, &g.SettingsHandlers[handler_n]); -} - -void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) -{ - size_t file_data_size = 0; - char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); - if (!file_data) - return; - LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); - IM_FREE(file_data); -} - -// Zero-tolerance, no error reporting, cheap .ini parsing -void ImGui::LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.Initialized); - //IM_ASSERT(!g.WithinFrameScope && "Cannot be called between NewFrame() and EndFrame()"); - //IM_ASSERT(g.SettingsLoaded == false && g.FrameCount == 0); - - // For user convenience, we allow passing a non zero-terminated string (hence the ini_size parameter). - // For our convenience and to make the code simpler, we'll also write zero-terminators within the buffer. So let's create a writable copy.. - if (ini_size == 0) - ini_size = strlen(ini_data); - g.SettingsIniData.Buf.resize((int)ini_size + 1); - char* const buf = g.SettingsIniData.Buf.Data; - char* const buf_end = buf + ini_size; - memcpy(buf, ini_data, ini_size); - buf_end[0] = 0; - - // Call pre-read handlers - // Some types will clear their data (e.g. dock information) some types will allow merge/override (window) - for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) - if (g.SettingsHandlers[handler_n].ReadInitFn) - g.SettingsHandlers[handler_n].ReadInitFn(&g, &g.SettingsHandlers[handler_n]); - - void* entry_data = NULL; - ImGuiSettingsHandler* entry_handler = NULL; - - char* line_end = NULL; - for (char* line = buf; line < buf_end; line = line_end + 1) - { - // Skip new lines markers, then find end of the line - while (*line == '\n' || *line == '\r') - line++; - line_end = line; - while (line_end < buf_end && *line_end != '\n' && *line_end != '\r') - line_end++; - line_end[0] = 0; - if (line[0] == ';') - continue; - if (line[0] == '[' && line_end > line && line_end[-1] == ']') - { - // Parse "[Type][Name]". Note that 'Name' can itself contains [] characters, which is acceptable with the current format and parsing code. - line_end[-1] = 0; - const char* name_end = line_end - 1; - const char* type_start = line + 1; - char* type_end = (char*)(void*)ImStrchrRange(type_start, name_end, ']'); - const char* name_start = type_end ? ImStrchrRange(type_end + 1, name_end, '[') : NULL; - if (!type_end || !name_start) - continue; - *type_end = 0; // Overwrite first ']' - name_start++; // Skip second '[' - entry_handler = FindSettingsHandler(type_start); - entry_data = entry_handler ? entry_handler->ReadOpenFn(&g, entry_handler, name_start) : NULL; - } - else if (entry_handler != NULL && entry_data != NULL) - { - // Let type handler parse the line - entry_handler->ReadLineFn(&g, entry_handler, entry_data, line); - } - } - g.SettingsLoaded = true; - - // [DEBUG] Restore untouched copy so it can be browsed in Metrics (not strictly necessary) - memcpy(buf, ini_data, ini_size); - - // Call post-read handlers - for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) - if (g.SettingsHandlers[handler_n].ApplyAllFn) - g.SettingsHandlers[handler_n].ApplyAllFn(&g, &g.SettingsHandlers[handler_n]); -} - -void ImGui::SaveIniSettingsToDisk(const char* ini_filename) -{ - ImGuiContext& g = *GImGui; - g.SettingsDirtyTimer = 0.0f; - if (!ini_filename) - return; - - size_t ini_data_size = 0; - const char* ini_data = SaveIniSettingsToMemory(&ini_data_size); - ImFileHandle f = ImFileOpen(ini_filename, "wt"); - if (!f) - return; - ImFileWrite(ini_data, sizeof(char), ini_data_size, f); - ImFileClose(f); -} - -// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer -const char* ImGui::SaveIniSettingsToMemory(size_t* out_size) -{ - ImGuiContext& g = *GImGui; - g.SettingsDirtyTimer = 0.0f; - g.SettingsIniData.Buf.resize(0); - g.SettingsIniData.Buf.push_back(0); - for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++) - { - ImGuiSettingsHandler* handler = &g.SettingsHandlers[handler_n]; - handler->WriteAllFn(&g, handler, &g.SettingsIniData); - } - if (out_size) - *out_size = (size_t)g.SettingsIniData.size(); - return g.SettingsIniData.c_str(); -} - -static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) -{ - ImGuiContext& g = *ctx; - for (int i = 0; i != g.Windows.Size; i++) - g.Windows[i]->SettingsOffset = -1; - g.SettingsWindows.clear(); -} - -static void* WindowSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) -{ - ImGuiWindowSettings* settings = ImGui::FindOrCreateWindowSettings(name); - ImGuiID id = settings->ID; - *settings = ImGuiWindowSettings(); // Clear existing if recycling previous entry - settings->ID = id; - settings->WantApply = true; - return (void*)settings; -} - -static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) -{ - ImGuiWindowSettings* settings = (ImGuiWindowSettings*)entry; - int x, y; - int i; - if (sscanf(line, "Pos=%i,%i", &x, &y) == 2) { settings->Pos = ImVec2ih((short)x, (short)y); } - else if (sscanf(line, "Size=%i,%i", &x, &y) == 2) { settings->Size = ImVec2ih((short)x, (short)y); } - else if (sscanf(line, "Collapsed=%d", &i) == 1) { settings->Collapsed = (i != 0); } -} - -// Apply to existing windows (if any) -static void WindowSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) -{ - ImGuiContext& g = *ctx; - for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) - if (settings->WantApply) - { - if (ImGuiWindow* window = ImGui::FindWindowByID(settings->ID)) - ApplyWindowSettings(window, settings); - settings->WantApply = false; - } -} - -static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) -{ - // Gather data from windows that were active during this session - // (if a window wasn't opened in this session we preserve its settings) - ImGuiContext& g = *ctx; - for (int i = 0; i != g.Windows.Size; i++) - { - ImGuiWindow* window = g.Windows[i]; - if (window->Flags & ImGuiWindowFlags_NoSavedSettings) - continue; - - ImGuiWindowSettings* settings = (window->SettingsOffset != -1) ? g.SettingsWindows.ptr_from_offset(window->SettingsOffset) : ImGui::FindWindowSettings(window->ID); - if (!settings) - { - settings = ImGui::CreateNewWindowSettings(window->Name); - window->SettingsOffset = g.SettingsWindows.offset_from_ptr(settings); - } - IM_ASSERT(settings->ID == window->ID); - settings->Pos = ImVec2ih((short)window->Pos.x, (short)window->Pos.y); - settings->Size = ImVec2ih((short)window->SizeFull.x, (short)window->SizeFull.y); - settings->Collapsed = window->Collapsed; - } - - // Write to text buffer - buf->reserve(buf->size() + g.SettingsWindows.size() * 6); // ballpark reserve - for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) - { - const char* settings_name = settings->GetName(); - buf->appendf("[%s][%s]\n", handler->TypeName, settings_name); - buf->appendf("Pos=%d,%d\n", settings->Pos.x, settings->Pos.y); - buf->appendf("Size=%d,%d\n", settings->Size.x, settings->Size.y); - buf->appendf("Collapsed=%d\n", settings->Collapsed); - buf->append("\n"); - } -} - - -//----------------------------------------------------------------------------- -// [SECTION] VIEWPORTS, PLATFORM WINDOWS -//----------------------------------------------------------------------------- -// - GetMainViewport() -// - UpdateViewportsNewFrame() [Internal] -// (this section is more complete in the 'docking' branch) -//----------------------------------------------------------------------------- - -ImGuiViewport* ImGui::GetMainViewport() -{ - ImGuiContext& g = *GImGui; - return g.Viewports[0]; -} - -// Update viewports and monitor infos -static void ImGui::UpdateViewportsNewFrame() -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(g.Viewports.Size == 1); - - // Update main viewport with current platform position. - // FIXME-VIEWPORT: Size is driven by backend/user code for backward-compatibility but we should aim to make this more consistent. - ImGuiViewportP* main_viewport = g.Viewports[0]; - main_viewport->Flags = ImGuiViewportFlags_IsPlatformWindow | ImGuiViewportFlags_OwnedByApp; - main_viewport->Pos = ImVec2(0.0f, 0.0f); - main_viewport->Size = g.IO.DisplaySize; - - for (int n = 0; n < g.Viewports.Size; n++) - { - ImGuiViewportP* viewport = g.Viewports[n]; - - // Lock down space taken by menu bars and status bars, reset the offset for fucntions like BeginMainMenuBar() to alter them again. - viewport->WorkOffsetMin = viewport->CurrWorkOffsetMin; - viewport->WorkOffsetMax = viewport->CurrWorkOffsetMax; - viewport->CurrWorkOffsetMin = viewport->CurrWorkOffsetMax = ImVec2(0.0f, 0.0f); - viewport->UpdateWorkRect(); - } -} - -//----------------------------------------------------------------------------- -// [SECTION] DOCKING -//----------------------------------------------------------------------------- - -// (this section is filled in the 'docking' branch) - - -//----------------------------------------------------------------------------- -// [SECTION] PLATFORM DEPENDENT HELPERS -//----------------------------------------------------------------------------- - -#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS) - -#ifdef _MSC_VER -#pragma comment(lib, "user32") -#pragma comment(lib, "kernel32") -#endif - -// Win32 clipboard implementation -// We use g.ClipboardHandlerData for temporary storage to ensure it is freed on Shutdown() -static const char* GetClipboardTextFn_DefaultImpl(void*) -{ - ImGuiContext& g = *GImGui; - g.ClipboardHandlerData.clear(); - if (!::OpenClipboard(NULL)) - return NULL; - HANDLE wbuf_handle = ::GetClipboardData(CF_UNICODETEXT); - if (wbuf_handle == NULL) - { - ::CloseClipboard(); - return NULL; - } - if (const WCHAR* wbuf_global = (const WCHAR*)::GlobalLock(wbuf_handle)) - { - int buf_len = ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, NULL, 0, NULL, NULL); - g.ClipboardHandlerData.resize(buf_len); - ::WideCharToMultiByte(CP_UTF8, 0, wbuf_global, -1, g.ClipboardHandlerData.Data, buf_len, NULL, NULL); - } - ::GlobalUnlock(wbuf_handle); - ::CloseClipboard(); - return g.ClipboardHandlerData.Data; -} - -static void SetClipboardTextFn_DefaultImpl(void*, const char* text) -{ - if (!::OpenClipboard(NULL)) - return; - const int wbuf_length = ::MultiByteToWideChar(CP_UTF8, 0, text, -1, NULL, 0); - HGLOBAL wbuf_handle = ::GlobalAlloc(GMEM_MOVEABLE, (SIZE_T)wbuf_length * sizeof(WCHAR)); - if (wbuf_handle == NULL) - { - ::CloseClipboard(); - return; - } - WCHAR* wbuf_global = (WCHAR*)::GlobalLock(wbuf_handle); - ::MultiByteToWideChar(CP_UTF8, 0, text, -1, wbuf_global, wbuf_length); - ::GlobalUnlock(wbuf_handle); - ::EmptyClipboard(); - if (::SetClipboardData(CF_UNICODETEXT, wbuf_handle) == NULL) - ::GlobalFree(wbuf_handle); - ::CloseClipboard(); -} - -#elif defined(__APPLE__) && TARGET_OS_OSX && defined(IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS) - -#include // Use old API to avoid need for separate .mm file -static PasteboardRef main_clipboard = 0; - -// OSX clipboard implementation -// If you enable this you will need to add '-framework ApplicationServices' to your linker command-line! -static void SetClipboardTextFn_DefaultImpl(void*, const char* text) -{ - if (!main_clipboard) - PasteboardCreate(kPasteboardClipboard, &main_clipboard); - PasteboardClear(main_clipboard); - CFDataRef cf_data = CFDataCreate(kCFAllocatorDefault, (const UInt8*)text, strlen(text)); - if (cf_data) - { - PasteboardPutItemFlavor(main_clipboard, (PasteboardItemID)1, CFSTR("public.utf8-plain-text"), cf_data, 0); - CFRelease(cf_data); - } -} - -static const char* GetClipboardTextFn_DefaultImpl(void*) -{ - if (!main_clipboard) - PasteboardCreate(kPasteboardClipboard, &main_clipboard); - PasteboardSynchronize(main_clipboard); - - ItemCount item_count = 0; - PasteboardGetItemCount(main_clipboard, &item_count); - for (ItemCount i = 0; i < item_count; i++) - { - PasteboardItemID item_id = 0; - PasteboardGetItemIdentifier(main_clipboard, i + 1, &item_id); - CFArrayRef flavor_type_array = 0; - PasteboardCopyItemFlavors(main_clipboard, item_id, &flavor_type_array); - for (CFIndex j = 0, nj = CFArrayGetCount(flavor_type_array); j < nj; j++) - { - CFDataRef cf_data; - if (PasteboardCopyItemFlavorData(main_clipboard, item_id, CFSTR("public.utf8-plain-text"), &cf_data) == noErr) - { - ImGuiContext& g = *GImGui; - g.ClipboardHandlerData.clear(); - int length = (int)CFDataGetLength(cf_data); - g.ClipboardHandlerData.resize(length + 1); - CFDataGetBytes(cf_data, CFRangeMake(0, length), (UInt8*)g.ClipboardHandlerData.Data); - g.ClipboardHandlerData[length] = 0; - CFRelease(cf_data); - return g.ClipboardHandlerData.Data; - } - } - } - return NULL; -} - -#else - -// Local Dear ImGui-only clipboard implementation, if user hasn't defined better clipboard handlers. -static const char* GetClipboardTextFn_DefaultImpl(void*) -{ - ImGuiContext& g = *GImGui; - return g.ClipboardHandlerData.empty() ? NULL : g.ClipboardHandlerData.begin(); -} - -static void SetClipboardTextFn_DefaultImpl(void*, const char* text) -{ - ImGuiContext& g = *GImGui; - g.ClipboardHandlerData.clear(); - const char* text_end = text + strlen(text); - g.ClipboardHandlerData.resize((int)(text_end - text) + 1); - memcpy(&g.ClipboardHandlerData[0], text, (size_t)(text_end - text)); - g.ClipboardHandlerData[(int)(text_end - text)] = 0; -} - -#endif - -// Win32 API IME support (for Asian languages, etc.) -#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS) - -#include -#ifdef _MSC_VER -#pragma comment(lib, "imm32") -#endif - -static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y) -{ - // Notify OS Input Method Editor of text input position - ImGuiIO& io = ImGui::GetIO(); - if (HWND hwnd = (HWND)io.ImeWindowHandle) - if (HIMC himc = ::ImmGetContext(hwnd)) - { - COMPOSITIONFORM cf; - cf.ptCurrentPos.x = x; - cf.ptCurrentPos.y = y; - cf.dwStyle = CFS_FORCE_POSITION; - ::ImmSetCompositionWindow(himc, &cf); - ::ImmReleaseContext(hwnd, himc); - } -} - -#else - -static void ImeSetInputScreenPosFn_DefaultImpl(int, int) {} - -#endif - -//----------------------------------------------------------------------------- -// [SECTION] METRICS/DEBUGGER WINDOW -//----------------------------------------------------------------------------- -// - RenderViewportThumbnail() [Internal] -// - RenderViewportsThumbnails() [Internal] -// - MetricsHelpMarker() [Internal] -// - ShowMetricsWindow() -// - DebugNodeColumns() [Internal] -// - DebugNodeDrawList() [Internal] -// - DebugNodeDrawCmdShowMeshAndBoundingBox() [Internal] -// - DebugNodeStorage() [Internal] -// - DebugNodeTabBar() [Internal] -// - DebugNodeViewport() [Internal] -// - DebugNodeWindow() [Internal] -// - DebugNodeWindowSettings() [Internal] -// - DebugNodeWindowsList() [Internal] -//----------------------------------------------------------------------------- - -#ifndef IMGUI_DISABLE_METRICS_WINDOW - -void ImGui::DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - ImVec2 scale = bb.GetSize() / viewport->Size; - ImVec2 off = bb.Min - viewport->Pos * scale; - float alpha_mul = 1.0f; - window->DrawList->AddRectFilled(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul * 0.40f)); - for (int i = 0; i != g.Windows.Size; i++) - { - ImGuiWindow* thumb_window = g.Windows[i]; - if (!thumb_window->WasActive || (thumb_window->Flags & ImGuiWindowFlags_ChildWindow)) - continue; - - ImRect thumb_r = thumb_window->Rect(); - ImRect title_r = thumb_window->TitleBarRect(); - thumb_r = ImRect(ImFloor(off + thumb_r.Min * scale), ImFloor(off + thumb_r.Max * scale)); - title_r = ImRect(ImFloor(off + title_r.Min * scale), ImFloor(off + ImVec2(title_r.Max.x, title_r.Min.y) * scale) + ImVec2(0,5)); // Exaggerate title bar height - thumb_r.ClipWithFull(bb); - title_r.ClipWithFull(bb); - const bool window_is_focused = (g.NavWindow && thumb_window->RootWindowForTitleBarHighlight == g.NavWindow->RootWindowForTitleBarHighlight); - window->DrawList->AddRectFilled(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_WindowBg, alpha_mul)); - window->DrawList->AddRectFilled(title_r.Min, title_r.Max, GetColorU32(window_is_focused ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBg, alpha_mul)); - window->DrawList->AddRect(thumb_r.Min, thumb_r.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); - window->DrawList->AddText(g.Font, g.FontSize * 1.0f, title_r.Min, GetColorU32(ImGuiCol_Text, alpha_mul), thumb_window->Name, FindRenderedTextEnd(thumb_window->Name)); - } - draw_list->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_Border, alpha_mul)); -} - -static void RenderViewportsThumbnails() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - // We don't display full monitor bounds (we could, but it often looks awkward), instead we display just enough to cover all of our viewports. - float SCALE = 1.0f / 8.0f; - ImRect bb_full(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); - for (int n = 0; n < g.Viewports.Size; n++) - bb_full.Add(g.Viewports[n]->GetMainRect()); - ImVec2 p = window->DC.CursorPos; - ImVec2 off = p - bb_full.Min * SCALE; - for (int n = 0; n < g.Viewports.Size; n++) - { - ImGuiViewportP* viewport = g.Viewports[n]; - ImRect viewport_draw_bb(off + (viewport->Pos) * SCALE, off + (viewport->Pos + viewport->Size) * SCALE); - ImGui::DebugRenderViewportThumbnail(window->DrawList, viewport, viewport_draw_bb); - } - ImGui::Dummy(bb_full.GetSize() * SCALE); -} - -// Avoid naming collision with imgui_demo.cpp's HelpMarker() for unity builds. -static void MetricsHelpMarker(const char* desc) -{ - ImGui::TextDisabled("(?)"); - if (ImGui::IsItemHovered()) - { - ImGui::BeginTooltip(); - ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); - ImGui::TextUnformatted(desc); - ImGui::PopTextWrapPos(); - ImGui::EndTooltip(); - } -} - -void ImGui::ShowMetricsWindow(bool* p_open) -{ - if (!Begin("Dear ImGui Metrics/Debugger", p_open)) - { - End(); - return; - } - - ImGuiContext& g = *GImGui; - ImGuiIO& io = g.IO; - ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; - - // Basic info - Text("Dear ImGui %s", GetVersion()); - Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); - Text("%d vertices, %d indices (%d triangles)", io.MetricsRenderVertices, io.MetricsRenderIndices, io.MetricsRenderIndices / 3); - Text("%d active windows (%d visible)", io.MetricsActiveWindows, io.MetricsRenderWindows); - Text("%d active allocations", io.MetricsActiveAllocations); - //SameLine(); if (SmallButton("GC")) { g.GcCompactAll = true; } - - Separator(); - - // Debugging enums - enum { WRT_OuterRect, WRT_OuterRectClipped, WRT_InnerRect, WRT_InnerClipRect, WRT_WorkRect, WRT_Content, WRT_ContentIdeal, WRT_ContentRegionRect, WRT_Count }; // Windows Rect Type - const char* wrt_rects_names[WRT_Count] = { "OuterRect", "OuterRectClipped", "InnerRect", "InnerClipRect", "WorkRect", "Content", "ContentIdeal", "ContentRegionRect" }; - enum { TRT_OuterRect, TRT_InnerRect, TRT_WorkRect, TRT_HostClipRect, TRT_InnerClipRect, TRT_BackgroundClipRect, TRT_ColumnsRect, TRT_ColumnsWorkRect, TRT_ColumnsClipRect, TRT_ColumnsContentHeadersUsed, TRT_ColumnsContentHeadersIdeal, TRT_ColumnsContentFrozen, TRT_ColumnsContentUnfrozen, TRT_Count }; // Tables Rect Type - const char* trt_rects_names[TRT_Count] = { "OuterRect", "InnerRect", "WorkRect", "HostClipRect", "InnerClipRect", "BackgroundClipRect", "ColumnsRect", "ColumnsWorkRect", "ColumnsClipRect", "ColumnsContentHeadersUsed", "ColumnsContentHeadersIdeal", "ColumnsContentFrozen", "ColumnsContentUnfrozen" }; - if (cfg->ShowWindowsRectsType < 0) - cfg->ShowWindowsRectsType = WRT_WorkRect; - if (cfg->ShowTablesRectsType < 0) - cfg->ShowTablesRectsType = TRT_WorkRect; - - struct Funcs - { - static ImRect GetTableRect(ImGuiTable* table, int rect_type, int n) - { - if (rect_type == TRT_OuterRect) { return table->OuterRect; } - else if (rect_type == TRT_InnerRect) { return table->InnerRect; } - else if (rect_type == TRT_WorkRect) { return table->WorkRect; } - else if (rect_type == TRT_HostClipRect) { return table->HostClipRect; } - else if (rect_type == TRT_InnerClipRect) { return table->InnerClipRect; } - else if (rect_type == TRT_BackgroundClipRect) { return table->BgClipRect; } - else if (rect_type == TRT_ColumnsRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->MinX, table->InnerClipRect.Min.y, c->MaxX, table->InnerClipRect.Min.y + table->LastOuterHeight); } - else if (rect_type == TRT_ColumnsWorkRect) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->WorkRect.Min.y, c->WorkMaxX, table->WorkRect.Max.y); } - else if (rect_type == TRT_ColumnsClipRect) { ImGuiTableColumn* c = &table->Columns[n]; return c->ClipRect; } - else if (rect_type == TRT_ColumnsContentHeadersUsed){ ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersUsed, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } // Note: y1/y2 not always accurate - else if (rect_type == TRT_ColumnsContentHeadersIdeal){ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXHeadersIdeal, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } - else if (rect_type == TRT_ColumnsContentFrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y, c->ContentMaxXFrozen, table->InnerClipRect.Min.y + table->LastFirstRowHeight); } - else if (rect_type == TRT_ColumnsContentUnfrozen) { ImGuiTableColumn* c = &table->Columns[n]; return ImRect(c->WorkMinX, table->InnerClipRect.Min.y + table->LastFirstRowHeight, c->ContentMaxXUnfrozen, table->InnerClipRect.Max.y); } - IM_ASSERT(0); - return ImRect(); - } - - static ImRect GetWindowRect(ImGuiWindow* window, int rect_type) - { - if (rect_type == WRT_OuterRect) { return window->Rect(); } - else if (rect_type == WRT_OuterRectClipped) { return window->OuterRectClipped; } - else if (rect_type == WRT_InnerRect) { return window->InnerRect; } - else if (rect_type == WRT_InnerClipRect) { return window->InnerClipRect; } - else if (rect_type == WRT_WorkRect) { return window->WorkRect; } - else if (rect_type == WRT_Content) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSize); } - else if (rect_type == WRT_ContentIdeal) { ImVec2 min = window->InnerRect.Min - window->Scroll + window->WindowPadding; return ImRect(min, min + window->ContentSizeIdeal); } - else if (rect_type == WRT_ContentRegionRect) { return window->ContentRegionRect; } - IM_ASSERT(0); - return ImRect(); - } - }; - - // Tools - if (TreeNode("Tools")) - { - // The Item Picker tool is super useful to visually select an item and break into the call-stack of where it was submitted. - if (Button("Item Picker..")) - DebugStartItemPicker(); - SameLine(); - MetricsHelpMarker("Will call the IM_DEBUG_BREAK() macro to break in debugger.\nWarning: If you don't have a debugger attached, this will probably crash."); - - Checkbox("Show windows begin order", &cfg->ShowWindowsBeginOrder); - Checkbox("Show windows rectangles", &cfg->ShowWindowsRects); - SameLine(); - SetNextItemWidth(GetFontSize() * 12); - cfg->ShowWindowsRects |= Combo("##show_windows_rect_type", &cfg->ShowWindowsRectsType, wrt_rects_names, WRT_Count, WRT_Count); - if (cfg->ShowWindowsRects && g.NavWindow != NULL) - { - BulletText("'%s':", g.NavWindow->Name); - Indent(); - for (int rect_n = 0; rect_n < WRT_Count; rect_n++) - { - ImRect r = Funcs::GetWindowRect(g.NavWindow, rect_n); - Text("(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), wrt_rects_names[rect_n]); - } - Unindent(); - } - Checkbox("Show ImDrawCmd mesh when hovering", &cfg->ShowDrawCmdMesh); - Checkbox("Show ImDrawCmd bounding boxes when hovering", &cfg->ShowDrawCmdBoundingBoxes); - - Checkbox("Show tables rectangles", &cfg->ShowTablesRects); - SameLine(); - SetNextItemWidth(GetFontSize() * 12); - cfg->ShowTablesRects |= Combo("##show_table_rects_type", &cfg->ShowTablesRectsType, trt_rects_names, TRT_Count, TRT_Count); - if (cfg->ShowTablesRects && g.NavWindow != NULL) - { - for (int table_n = 0; table_n < g.Tables.GetSize(); table_n++) - { - ImGuiTable* table = g.Tables.GetByIndex(table_n); - if (table->LastFrameActive < g.FrameCount - 1 || (table->OuterWindow != g.NavWindow && table->InnerWindow != g.NavWindow)) - continue; - - BulletText("Table 0x%08X (%d columns, in '%s')", table->ID, table->ColumnsCount, table->OuterWindow->Name); - if (IsItemHovered()) - GetForegroundDrawList()->AddRect(table->OuterRect.Min - ImVec2(1, 1), table->OuterRect.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, ~0, 2.0f); - Indent(); - char buf[128]; - for (int rect_n = 0; rect_n < TRT_Count; rect_n++) - { - if (rect_n >= TRT_ColumnsRect) - { - if (rect_n != TRT_ColumnsRect && rect_n != TRT_ColumnsClipRect) - continue; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImRect r = Funcs::GetTableRect(table, rect_n, column_n); - ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) Col %d %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), column_n, trt_rects_names[rect_n]); - Selectable(buf); - if (IsItemHovered()) - GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, ~0, 2.0f); - } - } - else - { - ImRect r = Funcs::GetTableRect(table, rect_n, -1); - ImFormatString(buf, IM_ARRAYSIZE(buf), "(%6.1f,%6.1f) (%6.1f,%6.1f) Size (%6.1f,%6.1f) %s", r.Min.x, r.Min.y, r.Max.x, r.Max.y, r.GetWidth(), r.GetHeight(), trt_rects_names[rect_n]); - Selectable(buf); - if (IsItemHovered()) - GetForegroundDrawList()->AddRect(r.Min - ImVec2(1, 1), r.Max + ImVec2(1, 1), IM_COL32(255, 255, 0, 255), 0.0f, ~0, 2.0f); - } - } - Unindent(); - } - } - - TreePop(); - } - - // Windows - DebugNodeWindowsList(&g.Windows, "Windows"); - //DebugNodeWindowsList(&g.WindowsFocusOrder, "WindowsFocusOrder"); - - // DrawLists - int drawlist_count = 0; - for (int viewport_i = 0; viewport_i < g.Viewports.Size; viewport_i++) - drawlist_count += g.Viewports[viewport_i]->DrawDataBuilder.GetDrawListCount(); - if (TreeNode("DrawLists", "DrawLists (%d)", drawlist_count)) - { - for (int viewport_i = 0; viewport_i < g.Viewports.Size; viewport_i++) - { - ImGuiViewportP* viewport = g.Viewports[viewport_i]; - for (int layer_i = 0; layer_i < IM_ARRAYSIZE(viewport->DrawDataBuilder.Layers); layer_i++) - for (int draw_list_i = 0; draw_list_i < viewport->DrawDataBuilder.Layers[layer_i].Size; draw_list_i++) - DebugNodeDrawList(NULL, viewport->DrawDataBuilder.Layers[layer_i][draw_list_i], "DrawList"); - } - TreePop(); - } - - // Viewports - if (TreeNode("Viewports", "Viewports (%d)", g.Viewports.Size)) - { - Indent(GetTreeNodeToLabelSpacing()); - RenderViewportsThumbnails(); - Unindent(GetTreeNodeToLabelSpacing()); - for (int i = 0; i < g.Viewports.Size; i++) - DebugNodeViewport(g.Viewports[i]); - TreePop(); - } - - // Details for Popups - if (TreeNode("Popups", "Popups (%d)", g.OpenPopupStack.Size)) - { - for (int i = 0; i < g.OpenPopupStack.Size; i++) - { - ImGuiWindow* window = g.OpenPopupStack[i].Window; - BulletText("PopupID: %08x, Window: '%s'%s%s", g.OpenPopupStack[i].PopupId, window ? window->Name : "NULL", window && (window->Flags & ImGuiWindowFlags_ChildWindow) ? " ChildWindow" : "", window && (window->Flags & ImGuiWindowFlags_ChildMenu) ? " ChildMenu" : ""); - } - TreePop(); - } - - // Details for TabBars - if (TreeNode("TabBars", "Tab Bars (%d)", g.TabBars.GetSize())) - { - for (int n = 0; n < g.TabBars.GetSize(); n++) - DebugNodeTabBar(g.TabBars.GetByIndex(n), "TabBar"); - TreePop(); - } - - // Details for Tables -#ifdef IMGUI_HAS_TABLE - if (TreeNode("Tables", "Tables (%d)", g.Tables.GetSize())) - { - for (int n = 0; n < g.Tables.GetSize(); n++) - DebugNodeTable(g.Tables.GetByIndex(n)); - TreePop(); - } -#endif // #ifdef IMGUI_HAS_TABLE - - // Details for Docking -#ifdef IMGUI_HAS_DOCK - if (TreeNode("Docking")) - { - TreePop(); - } -#endif // #ifdef IMGUI_HAS_DOCK - - // Settings - if (TreeNode("Settings")) - { - if (SmallButton("Clear")) - ClearIniSettings(); - SameLine(); - if (SmallButton("Save to memory")) - SaveIniSettingsToMemory(); - SameLine(); - if (SmallButton("Save to disk")) - SaveIniSettingsToDisk(g.IO.IniFilename); - SameLine(); - if (g.IO.IniFilename) - Text("\"%s\"", g.IO.IniFilename); - else - TextUnformatted(""); - Text("SettingsDirtyTimer %.2f", g.SettingsDirtyTimer); - if (TreeNode("SettingsHandlers", "Settings handlers: (%d)", g.SettingsHandlers.Size)) - { - for (int n = 0; n < g.SettingsHandlers.Size; n++) - BulletText("%s", g.SettingsHandlers[n].TypeName); - TreePop(); - } - if (TreeNode("SettingsWindows", "Settings packed data: Windows: %d bytes", g.SettingsWindows.size())) - { - for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) - DebugNodeWindowSettings(settings); - TreePop(); - } - -#ifdef IMGUI_HAS_TABLE - if (TreeNode("SettingsTables", "Settings packed data: Tables: %d bytes", g.SettingsTables.size())) - { - for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) - DebugNodeTableSettings(settings); - TreePop(); - } -#endif // #ifdef IMGUI_HAS_TABLE - -#ifdef IMGUI_HAS_DOCK -#endif // #ifdef IMGUI_HAS_DOCK - - if (TreeNode("SettingsIniData", "Settings unpacked data (.ini): %d bytes", g.SettingsIniData.size())) - { - InputTextMultiline("##Ini", (char*)(void*)g.SettingsIniData.c_str(), g.SettingsIniData.Buf.Size, ImVec2(-FLT_MIN, GetTextLineHeight() * 20), ImGuiInputTextFlags_ReadOnly); - TreePop(); - } - TreePop(); - } - - // Misc Details - if (TreeNode("Internal state")) - { - const char* input_source_names[] = { "None", "Mouse", "Nav", "NavKeyboard", "NavGamepad" }; IM_ASSERT(IM_ARRAYSIZE(input_source_names) == ImGuiInputSource_COUNT); - - Text("WINDOWING"); - Indent(); - Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL"); - Text("HoveredWindow->Root: '%s'", g.HoveredWindow ? g.HoveredWindow->RootWindow->Name : "NULL"); - Text("HoveredWindowUnderMovingWindow: '%s'", g.HoveredWindowUnderMovingWindow ? g.HoveredWindowUnderMovingWindow->Name : "NULL"); - Text("MovingWindow: '%s'", g.MovingWindow ? g.MovingWindow->Name : "NULL"); - Unindent(); - - Text("ITEMS"); - Indent(); - Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, input_source_names[g.ActiveIdSource]); - Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL"); - Text("HoveredId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredId, g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Data is "in-flight" so depending on when the Metrics window is called we may see current frame information or not - Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize); - Unindent(); - - Text("NAV,FOCUS"); - Indent(); - Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL"); - Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer); - Text("NavInputSource: %s", input_source_names[g.NavInputSource]); - Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible); - Text("NavActivateId: 0x%08X, NavInputId: 0x%08X", g.NavActivateId, g.NavInputId); - Text("NavDisableHighlight: %d, NavDisableMouseHover: %d", g.NavDisableHighlight, g.NavDisableMouseHover); - Text("NavFocusScopeId = 0x%08X", g.NavFocusScopeId); - Text("NavWindowingTarget: '%s'", g.NavWindowingTarget ? g.NavWindowingTarget->Name : "NULL"); - Unindent(); - - TreePop(); - } - - // Overlay: Display windows Rectangles and Begin Order - if (cfg->ShowWindowsRects || cfg->ShowWindowsBeginOrder) - { - for (int n = 0; n < g.Windows.Size; n++) - { - ImGuiWindow* window = g.Windows[n]; - if (!window->WasActive) - continue; - ImDrawList* draw_list = GetForegroundDrawList(window); - if (cfg->ShowWindowsRects) - { - ImRect r = Funcs::GetWindowRect(window, cfg->ShowWindowsRectsType); - draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); - } - if (cfg->ShowWindowsBeginOrder && !(window->Flags & ImGuiWindowFlags_ChildWindow)) - { - char buf[32]; - ImFormatString(buf, IM_ARRAYSIZE(buf), "%d", window->BeginOrderWithinContext); - float font_size = GetFontSize(); - draw_list->AddRectFilled(window->Pos, window->Pos + ImVec2(font_size, font_size), IM_COL32(200, 100, 100, 255)); - draw_list->AddText(window->Pos, IM_COL32(255, 255, 255, 255), buf); - } - } - } - -#ifdef IMGUI_HAS_TABLE - // Overlay: Display Tables Rectangles - if (cfg->ShowTablesRects) - { - for (int table_n = 0; table_n < g.Tables.GetSize(); table_n++) - { - ImGuiTable* table = g.Tables.GetByIndex(table_n); - if (table->LastFrameActive < g.FrameCount - 1) - continue; - ImDrawList* draw_list = GetForegroundDrawList(table->OuterWindow); - if (cfg->ShowTablesRectsType >= TRT_ColumnsRect) - { - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, column_n); - ImU32 col = (table->HoveredColumnBody == column_n) ? IM_COL32(255, 255, 128, 255) : IM_COL32(255, 0, 128, 255); - float thickness = (table->HoveredColumnBody == column_n) ? 3.0f : 1.0f; - draw_list->AddRect(r.Min, r.Max, col, 0.0f, ~0, thickness); - } - } - else - { - ImRect r = Funcs::GetTableRect(table, cfg->ShowTablesRectsType, -1); - draw_list->AddRect(r.Min, r.Max, IM_COL32(255, 0, 128, 255)); - } - } - } -#endif // #ifdef IMGUI_HAS_TABLE - -#ifdef IMGUI_HAS_DOCK - // Overlay: Display Docking info - if (show_docking_nodes && g.IO.KeyCtrl) - { - } -#endif // #ifdef IMGUI_HAS_DOCK - - End(); -} - -// [DEBUG] Display contents of Columns -void ImGui::DebugNodeColumns(ImGuiOldColumns* columns) -{ - if (!TreeNode((void*)(uintptr_t)columns->ID, "Columns Id: 0x%08X, Count: %d, Flags: 0x%04X", columns->ID, columns->Count, columns->Flags)) - return; - BulletText("Width: %.1f (MinX: %.1f, MaxX: %.1f)", columns->OffMaxX - columns->OffMinX, columns->OffMinX, columns->OffMaxX); - for (int column_n = 0; column_n < columns->Columns.Size; column_n++) - BulletText("Column %02d: OffsetNorm %.3f (= %.1f px)", column_n, columns->Columns[column_n].OffsetNorm, GetColumnOffsetFromNorm(columns, columns->Columns[column_n].OffsetNorm)); - TreePop(); -} - -// [DEBUG] Display contents of ImDrawList -void ImGui::DebugNodeDrawList(ImGuiWindow* window, const ImDrawList* draw_list, const char* label) -{ - ImGuiContext& g = *GImGui; - ImGuiMetricsConfig* cfg = &g.DebugMetricsConfig; - int cmd_count = draw_list->CmdBuffer.Size; - if (cmd_count > 0 && draw_list->CmdBuffer.back().ElemCount == 0 && draw_list->CmdBuffer.back().UserCallback == NULL) - cmd_count--; - bool node_open = TreeNode(draw_list, "%s: '%s' %d vtx, %d indices, %d cmds", label, draw_list->_OwnerName ? draw_list->_OwnerName : "", draw_list->VtxBuffer.Size, draw_list->IdxBuffer.Size, cmd_count); - if (draw_list == GetWindowDrawList()) - { - SameLine(); - TextColored(ImVec4(1.0f, 0.4f, 0.4f, 1.0f), "CURRENTLY APPENDING"); // Can't display stats for active draw list! (we don't have the data double-buffered) - if (node_open) - TreePop(); - return; - } - - ImDrawList* fg_draw_list = GetForegroundDrawList(window); // Render additional visuals into the top-most draw list - if (window && IsItemHovered()) - fg_draw_list->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); - if (!node_open) - return; - - if (window && !window->WasActive) - TextDisabled("Warning: owning Window is inactive. This DrawList is not being rendered!"); - - for (const ImDrawCmd* pcmd = draw_list->CmdBuffer.Data; pcmd < draw_list->CmdBuffer.Data + cmd_count; pcmd++) - { - if (pcmd->UserCallback) - { - BulletText("Callback %p, user_data %p", pcmd->UserCallback, pcmd->UserCallbackData); - continue; - } - - char buf[300]; - ImFormatString(buf, IM_ARRAYSIZE(buf), "DrawCmd:%5d tris, Tex 0x%p, ClipRect (%4.0f,%4.0f)-(%4.0f,%4.0f)", - pcmd->ElemCount / 3, (void*)(intptr_t)pcmd->TextureId, - pcmd->ClipRect.x, pcmd->ClipRect.y, pcmd->ClipRect.z, pcmd->ClipRect.w); - bool pcmd_node_open = TreeNode((void*)(pcmd - draw_list->CmdBuffer.begin()), "%s", buf); - if (IsItemHovered() && (cfg->ShowDrawCmdMesh || cfg->ShowDrawCmdBoundingBoxes) && fg_draw_list) - DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, cfg->ShowDrawCmdMesh, cfg->ShowDrawCmdBoundingBoxes); - if (!pcmd_node_open) - continue; - - // Calculate approximate coverage area (touched pixel count) - // This will be in pixels squared as long there's no post-scaling happening to the renderer output. - const ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; - const ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + pcmd->VtxOffset; - float total_area = 0.0f; - for (unsigned int idx_n = pcmd->IdxOffset; idx_n < pcmd->IdxOffset + pcmd->ElemCount; ) - { - ImVec2 triangle[3]; - for (int n = 0; n < 3; n++, idx_n++) - triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos; - total_area += ImTriangleArea(triangle[0], triangle[1], triangle[2]); - } - - // Display vertex information summary. Hover to get all triangles drawn in wire-frame - ImFormatString(buf, IM_ARRAYSIZE(buf), "Mesh: ElemCount: %d, VtxOffset: +%d, IdxOffset: +%d, Area: ~%0.f px", pcmd->ElemCount, pcmd->VtxOffset, pcmd->IdxOffset, total_area); - Selectable(buf); - if (IsItemHovered() && fg_draw_list) - DebugNodeDrawCmdShowMeshAndBoundingBox(fg_draw_list, draw_list, pcmd, true, false); - - // Display individual triangles/vertices. Hover on to get the corresponding triangle highlighted. - ImGuiListClipper clipper; - clipper.Begin(pcmd->ElemCount / 3); // Manually coarse clip our print out of individual vertices to save CPU, only items that may be visible. - while (clipper.Step()) - for (int prim = clipper.DisplayStart, idx_i = pcmd->IdxOffset + clipper.DisplayStart * 3; prim < clipper.DisplayEnd; prim++) - { - char* buf_p = buf, * buf_end = buf + IM_ARRAYSIZE(buf); - ImVec2 triangle[3]; - for (int n = 0; n < 3; n++, idx_i++) - { - const ImDrawVert& v = vtx_buffer[idx_buffer ? idx_buffer[idx_i] : idx_i]; - triangle[n] = v.pos; - buf_p += ImFormatString(buf_p, buf_end - buf_p, "%s %04d: pos (%8.2f,%8.2f), uv (%.6f,%.6f), col %08X\n", - (n == 0) ? "Vert:" : " ", idx_i, v.pos.x, v.pos.y, v.uv.x, v.uv.y, v.col); - } - - Selectable(buf, false); - if (fg_draw_list && IsItemHovered()) - { - ImDrawListFlags backup_flags = fg_draw_list->Flags; - fg_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. - fg_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), true, 1.0f); - fg_draw_list->Flags = backup_flags; - } - } - TreePop(); - } - TreePop(); -} - -// [DEBUG] Display mesh/aabb of a ImDrawCmd -void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb) -{ - IM_ASSERT(show_mesh || show_aabb); - ImDrawIdx* idx_buffer = (draw_list->IdxBuffer.Size > 0) ? draw_list->IdxBuffer.Data : NULL; - ImDrawVert* vtx_buffer = draw_list->VtxBuffer.Data + draw_cmd->VtxOffset; - - // Draw wire-frame version of all triangles - ImRect clip_rect = draw_cmd->ClipRect; - ImRect vtxs_rect(FLT_MAX, FLT_MAX, -FLT_MAX, -FLT_MAX); - ImDrawListFlags backup_flags = out_draw_list->Flags; - out_draw_list->Flags &= ~ImDrawListFlags_AntiAliasedLines; // Disable AA on triangle outlines is more readable for very large and thin triangles. - for (unsigned int idx_n = draw_cmd->IdxOffset; idx_n < draw_cmd->IdxOffset + draw_cmd->ElemCount; ) - { - ImVec2 triangle[3]; - for (int n = 0; n < 3; n++, idx_n++) - vtxs_rect.Add((triangle[n] = vtx_buffer[idx_buffer ? idx_buffer[idx_n] : idx_n].pos)); - if (show_mesh) - out_draw_list->AddPolyline(triangle, 3, IM_COL32(255, 255, 0, 255), true, 1.0f); // In yellow: mesh triangles - } - // Draw bounding boxes - if (show_aabb) - { - out_draw_list->AddRect(ImFloor(clip_rect.Min), ImFloor(clip_rect.Max), IM_COL32(255, 0, 255, 255)); // In pink: clipping rectangle submitted to GPU - out_draw_list->AddRect(ImFloor(vtxs_rect.Min), ImFloor(vtxs_rect.Max), IM_COL32(0, 255, 255, 255)); // In cyan: bounding box of triangles - } - out_draw_list->Flags = backup_flags; -} - -// [DEBUG] Display contents of ImGuiStorage -void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label) -{ - if (!TreeNode(label, "%s: %d entries, %d bytes", label, storage->Data.Size, storage->Data.size_in_bytes())) - return; - for (int n = 0; n < storage->Data.Size; n++) - { - const ImGuiStorage::ImGuiStoragePair& p = storage->Data[n]; - BulletText("Key 0x%08X Value { i: %d }", p.key, p.val_i); // Important: we currently don't store a type, real value may not be integer. - } - TreePop(); -} - -// [DEBUG] Display contents of ImGuiTabBar -void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label) -{ - // Standalone tab bars (not associated to docking/windows functionality) currently hold no discernible strings. - char buf[256]; - char* p = buf; - const char* buf_end = buf + IM_ARRAYSIZE(buf); - const bool is_active = (tab_bar->PrevFrameVisible >= GetFrameCount() - 2); - p += ImFormatString(p, buf_end - p, "%s 0x%08X (%d tabs)%s", label, tab_bar->ID, tab_bar->Tabs.Size, is_active ? "" : " *Inactive*"); - IM_UNUSED(p); - if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } - bool open = TreeNode(tab_bar, "%s", buf); - if (!is_active) { PopStyleColor(); } - if (is_active && IsItemHovered()) - { - ImDrawList* draw_list = GetForegroundDrawList(); - draw_list->AddRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max, IM_COL32(255, 255, 0, 255)); - draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMinX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); - draw_list->AddLine(ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Min.y), ImVec2(tab_bar->ScrollingRectMaxX, tab_bar->BarRect.Max.y), IM_COL32(0, 255, 0, 255)); - } - if (open) - { - for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) - { - const ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; - PushID(tab); - if (SmallButton("<")) { TabBarQueueReorder(tab_bar, tab, -1); } SameLine(0, 2); - if (SmallButton(">")) { TabBarQueueReorder(tab_bar, tab, +1); } SameLine(); - Text("%02d%c Tab 0x%08X '%s' Offset: %.1f, Width: %.1f/%.1f", - tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID, (tab->NameOffset != -1) ? tab_bar->GetTabName(tab) : "", tab->Offset, tab->Width, tab->ContentWidth); - PopID(); - } - TreePop(); - } -} - -void ImGui::DebugNodeViewport(ImGuiViewportP* viewport) -{ - SetNextItemOpen(true, ImGuiCond_Once); - if (TreeNode("viewport0", "Viewport #%d", 0)) - { - ImGuiWindowFlags flags = viewport->Flags; - BulletText("Main Pos: (%.0f,%.0f), Size: (%.0f,%.0f)\nWorkArea Offset Left: %.0f Top: %.0f, Right: %.0f, Bottom: %.0f", - viewport->Pos.x, viewport->Pos.y, viewport->Size.x, viewport->Size.y, - viewport->WorkOffsetMin.x, viewport->WorkOffsetMin.y, viewport->WorkOffsetMax.x, viewport->WorkOffsetMax.y); - BulletText("Flags: 0x%04X =%s%s%s", viewport->Flags, - (flags & ImGuiViewportFlags_IsPlatformWindow) ? " IsPlatformWindow" : "", - (flags & ImGuiViewportFlags_IsPlatformMonitor) ? " IsPlatformMonitor" : "", - (flags & ImGuiViewportFlags_OwnedByApp) ? " OwnedByApp" : ""); - for (int layer_i = 0; layer_i < IM_ARRAYSIZE(viewport->DrawDataBuilder.Layers); layer_i++) - for (int draw_list_i = 0; draw_list_i < viewport->DrawDataBuilder.Layers[layer_i].Size; draw_list_i++) - DebugNodeDrawList(NULL, viewport->DrawDataBuilder.Layers[layer_i][draw_list_i], "DrawList"); - TreePop(); - } -} - -void ImGui::DebugNodeWindow(ImGuiWindow* window, const char* label) -{ - if (window == NULL) - { - BulletText("%s: NULL", label); - return; - } - - ImGuiContext& g = *GImGui; - const bool is_active = window->WasActive; - ImGuiTreeNodeFlags tree_node_flags = (window == g.NavWindow) ? ImGuiTreeNodeFlags_Selected : ImGuiTreeNodeFlags_None; - if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } - const bool open = TreeNodeEx(label, tree_node_flags, "%s '%s'%s", label, window->Name, is_active ? "" : " *Inactive*"); - if (!is_active) { PopStyleColor(); } - if (IsItemHovered() && is_active) - GetForegroundDrawList(window)->AddRect(window->Pos, window->Pos + window->Size, IM_COL32(255, 255, 0, 255)); - if (!open) - return; - - if (window->MemoryCompacted) - TextDisabled("Note: some memory buffers have been compacted/freed."); - - ImGuiWindowFlags flags = window->Flags; - DebugNodeDrawList(window, window->DrawList, "DrawList"); - BulletText("Pos: (%.1f,%.1f), Size: (%.1f,%.1f), ContentSize (%.1f,%.1f) Ideal (%.1f,%.1f)", window->Pos.x, window->Pos.y, window->Size.x, window->Size.y, window->ContentSize.x, window->ContentSize.y, window->ContentSizeIdeal.x, window->ContentSizeIdeal.y); - BulletText("Flags: 0x%08X (%s%s%s%s%s%s%s%s%s..)", flags, - (flags & ImGuiWindowFlags_ChildWindow) ? "Child " : "", (flags & ImGuiWindowFlags_Tooltip) ? "Tooltip " : "", (flags & ImGuiWindowFlags_Popup) ? "Popup " : "", - (flags & ImGuiWindowFlags_Modal) ? "Modal " : "", (flags & ImGuiWindowFlags_ChildMenu) ? "ChildMenu " : "", (flags & ImGuiWindowFlags_NoSavedSettings) ? "NoSavedSettings " : "", - (flags & ImGuiWindowFlags_NoMouseInputs)? "NoMouseInputs":"", (flags & ImGuiWindowFlags_NoNavInputs) ? "NoNavInputs" : "", (flags & ImGuiWindowFlags_AlwaysAutoResize) ? "AlwaysAutoResize" : ""); - BulletText("Scroll: (%.2f/%.2f,%.2f/%.2f) Scrollbar:%s%s", window->Scroll.x, window->ScrollMax.x, window->Scroll.y, window->ScrollMax.y, window->ScrollbarX ? "X" : "", window->ScrollbarY ? "Y" : ""); - BulletText("Active: %d/%d, WriteAccessed: %d, BeginOrderWithinContext: %d", window->Active, window->WasActive, window->WriteAccessed, (window->Active || window->WasActive) ? window->BeginOrderWithinContext : -1); - BulletText("Appearing: %d, Hidden: %d (CanSkip %d Cannot %d), SkipItems: %d", window->Appearing, window->Hidden, window->HiddenFramesCanSkipItems, window->HiddenFramesCannotSkipItems, window->SkipItems); - BulletText("NavLastIds: 0x%08X,0x%08X, NavLayerActiveMask: %X", window->NavLastIds[0], window->NavLastIds[1], window->DC.NavLayerActiveMask); - BulletText("NavLastChildNavWindow: %s", window->NavLastChildNavWindow ? window->NavLastChildNavWindow->Name : "NULL"); - if (!window->NavRectRel[0].IsInverted()) - BulletText("NavRectRel[0]: (%.1f,%.1f)(%.1f,%.1f)", window->NavRectRel[0].Min.x, window->NavRectRel[0].Min.y, window->NavRectRel[0].Max.x, window->NavRectRel[0].Max.y); - else - BulletText("NavRectRel[0]: "); - if (window->RootWindow != window) { DebugNodeWindow(window->RootWindow, "RootWindow"); } - if (window->ParentWindow != NULL) { DebugNodeWindow(window->ParentWindow, "ParentWindow"); } - if (window->DC.ChildWindows.Size > 0) { DebugNodeWindowsList(&window->DC.ChildWindows, "ChildWindows"); } - if (window->ColumnsStorage.Size > 0 && TreeNode("Columns", "Columns sets (%d)", window->ColumnsStorage.Size)) - { - for (int n = 0; n < window->ColumnsStorage.Size; n++) - DebugNodeColumns(&window->ColumnsStorage[n]); - TreePop(); - } - DebugNodeStorage(&window->StateStorage, "Storage"); - TreePop(); -} - -void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings* settings) -{ - Text("0x%08X \"%s\" Pos (%d,%d) Size (%d,%d) Collapsed=%d", - settings->ID, settings->GetName(), settings->Pos.x, settings->Pos.y, settings->Size.x, settings->Size.y, settings->Collapsed); -} - -void ImGui::DebugNodeWindowsList(ImVector* windows, const char* label) -{ - if (!TreeNode(label, "%s (%d)", label, windows->Size)) - return; - Text("(In front-to-back order:)"); - for (int i = windows->Size - 1; i >= 0; i--) // Iterate front to back - { - PushID((*windows)[i]); - DebugNodeWindow((*windows)[i], "Window"); - PopID(); - } - TreePop(); -} - -#else - -void ImGui::ShowMetricsWindow(bool*) {} -void ImGui::DebugNodeColumns(ImGuiOldColumns*) {} -void ImGui::DebugNodeDrawList(ImGuiWindow*, const ImDrawList*, const char*) {} -void ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList*, const ImDrawList*, const ImDrawCmd*, bool, bool) {} -void ImGui::DebugNodeStorage(ImGuiStorage*, const char*) {} -void ImGui::DebugNodeTabBar(ImGuiTabBar*, const char*) {} -void ImGui::DebugNodeWindow(ImGuiWindow*, const char*) {} -void ImGui::DebugNodeWindowSettings(ImGuiWindowSettings*) {} -void ImGui::DebugNodeWindowsList(ImVector*, const char*) {} -void ImGui::DebugNodeViewport(ImGuiViewportP*) {} - -#endif - -//----------------------------------------------------------------------------- - -// Include imgui_user.inl at the end of imgui.cpp to access private data/functions that aren't exposed. -// Prefer just including imgui_internal.h from your code rather than using this define. If a declaration is missing from imgui_internal.h add it or request it on the github. -#ifdef IMGUI_INCLUDE_IMGUI_USER_INL -#include "imgui_user.inl" -#endif - -//----------------------------------------------------------------------------- - -#endif // #ifndef IMGUI_DISABLE diff --git a/third_party/imgui/imgui.h b/third_party/imgui/imgui.h deleted file mode 100644 index 7e6489ed..00000000 --- a/third_party/imgui/imgui.h +++ /dev/null @@ -1,2795 +0,0 @@ -// dear imgui, v1.82 WIP -// (headers) - -// Help: -// - Read FAQ at http://dearimgui.org/faq -// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. -// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. -// Read imgui.cpp for details, links and comments. - -// Resources: -// - FAQ http://dearimgui.org/faq -// - Homepage & latest https://github.com/ocornut/imgui -// - Releases & changelog https://github.com/ocornut/imgui/releases -// - Gallery https://github.com/ocornut/imgui/issues/3488 (please post your screenshots/video there!) -// - Glossary https://github.com/ocornut/imgui/wiki/Glossary -// - Wiki https://github.com/ocornut/imgui/wiki -// - Issues & support https://github.com/ocornut/imgui/issues -// - Discussions https://github.com/ocornut/imgui/discussions - -/* - -Index of this file: -// [SECTION] Header mess -// [SECTION] Forward declarations and basic types -// [SECTION] Dear ImGui end-user API functions -// [SECTION] Flags & Enumerations -// [SECTION] Helpers: Memory allocations macros, ImVector<> -// [SECTION] ImGuiStyle -// [SECTION] ImGuiIO -// [SECTION] Misc data structures (ImGuiInputTextCallbackData, ImGuiSizeCallbackData, ImGuiPayload, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs) -// [SECTION] Obsolete functions -// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, ImColor) -// [SECTION] Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData) -// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) -// [SECTION] Viewports (ImGuiViewportFlags, ImGuiViewport) - -*/ - -#pragma once - -// Configuration file with compile-time options (edit imconfig.h or '#define IMGUI_USER_CONFIG "myfilename.h" from your build system') -#ifdef IMGUI_USER_CONFIG -#include IMGUI_USER_CONFIG -#endif -#if !defined(IMGUI_DISABLE_INCLUDE_IMCONFIG_H) || defined(IMGUI_INCLUDE_IMCONFIG_H) -#include "imconfig.h" -#endif - -#ifndef IMGUI_DISABLE - -//----------------------------------------------------------------------------- -// [SECTION] Header mess -//----------------------------------------------------------------------------- - -// Includes -#include // FLT_MIN, FLT_MAX -#include // va_list, va_start, va_end -#include // ptrdiff_t, NULL -#include // memset, memmove, memcpy, strlen, strchr, strcpy, strcmp - -// Version -// (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens) -#define IMGUI_VERSION "1.82 WIP" -#define IMGUI_VERSION_NUM 18101 -#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) -#define IMGUI_HAS_TABLE - -// Define attributes of all API symbols declarations (e.g. for DLL under Windows) -// IMGUI_API is used for core imgui functions, IMGUI_IMPL_API is used for the default backends files (imgui_impl_xxx.h) -// Using dear imgui via a shared library is not recommended, because we don't guarantee backward nor forward ABI compatibility (also function call overhead, as dear imgui is a call-heavy API) -#ifndef IMGUI_API -#define IMGUI_API -#endif -#ifndef IMGUI_IMPL_API -#define IMGUI_IMPL_API IMGUI_API -#endif - -// Helper Macros -#ifndef IM_ASSERT -#include -#define IM_ASSERT(_EXPR) assert(_EXPR) // You can override the default assert handler by editing imconfig.h -#endif -#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! -#define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. -#if (__cplusplus >= 201100) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201100) -#define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // Offset of _MEMBER within _TYPE. Standardized as offsetof() in C++11 -#else -#define IM_OFFSETOF(_TYPE,_MEMBER) ((size_t)&(((_TYPE*)0)->_MEMBER)) // Offset of _MEMBER within _TYPE. Old style macro. -#endif - -// Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions. -#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__clang__) -#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) -#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0))) -#elif !defined(IMGUI_USE_STB_SPRINTF) && defined(__GNUC__) && defined(__MINGW32__) -#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1))) -#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0))) -#else -#define IM_FMTARGS(FMT) -#define IM_FMTLIST(FMT) -#endif - -// Warnings -#if defined(__clang__) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wold-style-cast" -#if __has_warning("-Wzero-as-null-pointer-constant") -#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" -#endif -#elif defined(__GNUC__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead -#endif - -//----------------------------------------------------------------------------- -// [SECTION] Forward declarations and basic types -//----------------------------------------------------------------------------- - -// Forward declarations -struct ImDrawChannel; // Temporary storage to output draw commands out of order, used by ImDrawListSplitter and ImDrawList::ChannelsSplit() -struct ImDrawCmd; // A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a callback) -struct ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. -struct ImDrawList; // A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" builder) -struct ImDrawListSharedData; // Data shared among multiple draw lists (typically owned by parent ImGui context, but you may create one yourself) -struct ImDrawListSplitter; // Helper to split a draw list into different layers which can be drawn into out of order, then flattened back. -struct ImDrawVert; // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) -struct ImFont; // Runtime data for a single font within a parent ImFontAtlas -struct ImFontAtlas; // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader -struct ImFontBuilderIO; // Opaque interface to a font builder (stb_truetype or FreeType). -struct ImFontConfig; // Configuration data when adding a font or merging fonts -struct ImFontGlyph; // A single font glyph (code point + coordinates within in ImFontAtlas + offset) -struct ImFontGlyphRangesBuilder; // Helper to build glyph ranges from text/string data -struct ImColor; // Helper functions to create a color that can be converted to either u32 or float4 (*OBSOLETE* please avoid using) -struct ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) -struct ImGuiIO; // Main configuration and I/O between your application and ImGui -struct ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) -struct ImGuiListClipper; // Helper to manually clip large list of items -struct ImGuiOnceUponAFrame; // Helper for running a block of code not more than once a frame, used by IMGUI_ONCE_UPON_A_FRAME macro -struct ImGuiPayload; // User data payload for drag and drop operations -struct ImGuiSizeCallbackData; // Callback data when using SetNextWindowSizeConstraints() (rare/advanced use) -struct ImGuiStorage; // Helper for key->value storage -struct ImGuiStyle; // Runtime data for styling/colors -struct ImGuiTableSortSpecs; // Sorting specifications for a table (often handling sort specs for a single column, occasionally more) -struct ImGuiTableColumnSortSpecs; // Sorting specification for one column of a table -struct ImGuiTextBuffer; // Helper to hold and append into a text buffer (~string builder) -struct ImGuiTextFilter; // Helper to parse and apply text filters (e.g. "aaaaa[,bbbbb][,ccccc]") -struct ImGuiViewport; // A Platform Window (always only one in 'master' branch), in the future may represent Platform Monitor - -// Enums/Flags (declared as int for compatibility with old C++, to allow using as flags and to not pollute the top of this file) -// - Tip: Use your programming IDE navigation facilities on the names in the _central column_ below to find the actual flags/enum lists! -// In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. -// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. -typedef int ImGuiCol; // -> enum ImGuiCol_ // Enum: A color identifier for styling -typedef int ImGuiCond; // -> enum ImGuiCond_ // Enum: A condition for many Set*() functions -typedef int ImGuiDataType; // -> enum ImGuiDataType_ // Enum: A primary data type -typedef int ImGuiDir; // -> enum ImGuiDir_ // Enum: A cardinal direction -typedef int ImGuiKey; // -> enum ImGuiKey_ // Enum: A key identifier (ImGui-side enum) -typedef int ImGuiNavInput; // -> enum ImGuiNavInput_ // Enum: An input identifier for navigation -typedef int ImGuiMouseButton; // -> enum ImGuiMouseButton_ // Enum: A mouse button identifier (0=left, 1=right, 2=middle) -typedef int ImGuiMouseCursor; // -> enum ImGuiMouseCursor_ // Enum: A mouse cursor identifier -typedef int ImGuiSortDirection; // -> enum ImGuiSortDirection_ // Enum: A sorting direction (ascending or descending) -typedef int ImGuiStyleVar; // -> enum ImGuiStyleVar_ // Enum: A variable identifier for styling -typedef int ImGuiTableBgTarget; // -> enum ImGuiTableBgTarget_ // Enum: A color target for TableSetBgColor() -typedef int ImDrawCornerFlags; // -> enum ImDrawCornerFlags_ // Flags: for ImDrawList::AddRect(), AddRectFilled() etc. -typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList -typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build -typedef int ImGuiBackendFlags; // -> enum ImGuiBackendFlags_ // Flags: for io.BackendFlags -typedef int ImGuiButtonFlags; // -> enum ImGuiButtonFlags_ // Flags: for InvisibleButton() -typedef int ImGuiColorEditFlags; // -> enum ImGuiColorEditFlags_ // Flags: for ColorEdit4(), ColorPicker4() etc. -typedef int ImGuiConfigFlags; // -> enum ImGuiConfigFlags_ // Flags: for io.ConfigFlags -typedef int ImGuiComboFlags; // -> enum ImGuiComboFlags_ // Flags: for BeginCombo() -typedef int ImGuiDragDropFlags; // -> enum ImGuiDragDropFlags_ // Flags: for BeginDragDropSource(), AcceptDragDropPayload() -typedef int ImGuiFocusedFlags; // -> enum ImGuiFocusedFlags_ // Flags: for IsWindowFocused() -typedef int ImGuiHoveredFlags; // -> enum ImGuiHoveredFlags_ // Flags: for IsItemHovered(), IsWindowHovered() etc. -typedef int ImGuiInputTextFlags; // -> enum ImGuiInputTextFlags_ // Flags: for InputText(), InputTextMultiline() -typedef int ImGuiKeyModFlags; // -> enum ImGuiKeyModFlags_ // Flags: for io.KeyMods (Ctrl/Shift/Alt/Super) -typedef int ImGuiPopupFlags; // -> enum ImGuiPopupFlags_ // Flags: for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() -typedef int ImGuiSelectableFlags; // -> enum ImGuiSelectableFlags_ // Flags: for Selectable() -typedef int ImGuiSliderFlags; // -> enum ImGuiSliderFlags_ // Flags: for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. -typedef int ImGuiTabBarFlags; // -> enum ImGuiTabBarFlags_ // Flags: for BeginTabBar() -typedef int ImGuiTabItemFlags; // -> enum ImGuiTabItemFlags_ // Flags: for BeginTabItem() -typedef int ImGuiTableFlags; // -> enum ImGuiTableFlags_ // Flags: For BeginTable() -typedef int ImGuiTableColumnFlags; // -> enum ImGuiTableColumnFlags_// Flags: For TableSetupColumn() -typedef int ImGuiTableRowFlags; // -> enum ImGuiTableRowFlags_ // Flags: For TableNextRow() -typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: for TreeNode(), TreeNodeEx(), CollapsingHeader() -typedef int ImGuiViewportFlags; // -> enum ImGuiViewportFlags_ // Flags: for ImGuiViewport -typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild() - -// Other types -#ifndef ImTextureID // ImTextureID [configurable type: override in imconfig.h with '#define ImTextureID xxx'] -typedef void* ImTextureID; // User data for rendering backend to identify a texture. This is whatever to you want it to be! read the FAQ about ImTextureID for details. -#endif -typedef unsigned int ImGuiID; // A unique ID used by widgets, typically hashed from a stack of string. -typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data); // Callback function for ImGui::InputText() -typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data); // Callback function for ImGui::SetNextWindowSizeConstraints() -typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() -typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() - -// Character types -// (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) -typedef unsigned short ImWchar16; // A single decoded U16 character/code point. We encode them as multi bytes UTF-8 when used in strings. -typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings. -#ifdef IMGUI_USE_WCHAR32 // ImWchar [configurable type: override in imconfig.h with '#define IMGUI_USE_WCHAR32' to support Unicode planes 1-16] -typedef ImWchar32 ImWchar; -#else -typedef ImWchar16 ImWchar; -#endif - -// Basic scalar data types -typedef signed char ImS8; // 8-bit signed integer -typedef unsigned char ImU8; // 8-bit unsigned integer -typedef signed short ImS16; // 16-bit signed integer -typedef unsigned short ImU16; // 16-bit unsigned integer -typedef signed int ImS32; // 32-bit signed integer == int -typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors) -#if defined(_MSC_VER) && !defined(__clang__) -typedef signed __int64 ImS64; // 64-bit signed integer (pre and post C++11 with Visual Studio) -typedef unsigned __int64 ImU64; // 64-bit unsigned integer (pre and post C++11 with Visual Studio) -#elif (defined(__clang__) || defined(__GNUC__)) && (__cplusplus < 201100) -#include -typedef int64_t ImS64; // 64-bit signed integer (pre C++11) -typedef uint64_t ImU64; // 64-bit unsigned integer (pre C++11) -#else -typedef signed long long ImS64; // 64-bit signed integer (post C++11) -typedef unsigned long long ImU64; // 64-bit unsigned integer (post C++11) -#endif - -// 2D vector (often used to store positions or sizes) -struct ImVec2 -{ - float x, y; - ImVec2() { x = y = 0.0f; } - ImVec2(float _x, float _y) { x = _x; y = _y; } - float operator[] (size_t idx) const { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. - float& operator[] (size_t idx) { IM_ASSERT(idx <= 1); return (&x)[idx]; } // We very rarely use this [] operator, the assert overhead is fine. -#ifdef IM_VEC2_CLASS_EXTRA - IM_VEC2_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec2. -#endif -}; - -// 4D vector (often used to store floating-point colors) -struct ImVec4 -{ - float x, y, z, w; - ImVec4() { x = y = z = w = 0.0f; } - ImVec4(float _x, float _y, float _z, float _w) { x = _x; y = _y; z = _z; w = _w; } -#ifdef IM_VEC4_CLASS_EXTRA - IM_VEC4_CLASS_EXTRA // Define additional constructors and implicit cast operators in imconfig.h to convert back and forth between your math types and ImVec4. -#endif -}; - -//----------------------------------------------------------------------------- -// [SECTION] Dear ImGui end-user API functions -// (Note that ImGui:: being a namespace, you can add extra ImGui:: functions in your own separate file. Please don't modify imgui source files!) -//----------------------------------------------------------------------------- - -namespace ImGui -{ - // Context creation and access - // - Each context create its own ImFontAtlas by default. You may instance one yourself and pass it to CreateContext() to share a font atlas between contexts. - // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() - // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for details. - IMGUI_API ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas = NULL); - IMGUI_API void DestroyContext(ImGuiContext* ctx = NULL); // NULL = destroy current context - IMGUI_API ImGuiContext* GetCurrentContext(); - IMGUI_API void SetCurrentContext(ImGuiContext* ctx); - - // Main - IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) - IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame! - IMGUI_API void NewFrame(); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). - IMGUI_API void EndFrame(); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! - IMGUI_API void Render(); // ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData(). - IMGUI_API ImDrawData* GetDrawData(); // valid after Render() and until the next call to NewFrame(). this is what you have to render. - - // Demo, Debug, Information - IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! - IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc. - IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create About window. display Dear ImGui version, credits and build/system information. - IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style) - IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (not a window), essentially a combo listing the default styles. - IMGUI_API void ShowFontSelector(const char* label); // add font selector block (not a window), essentially a combo listing the loaded fonts. - IMGUI_API void ShowUserGuide(); // add basic help/info block (not a window): how to manipulate ImGui as a end-user (mouse/keyboard controls). - IMGUI_API const char* GetVersion(); // get the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp) - - // Styles - IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); // new, recommended style (default) - IMGUI_API void StyleColorsLight(ImGuiStyle* dst = NULL); // best used with borders and a custom, thicker font - IMGUI_API void StyleColorsClassic(ImGuiStyle* dst = NULL); // classic imgui style - - // Windows - // - Begin() = push window to the stack and start appending to it. End() = pop window from the stack. - // - Passing 'bool* p_open != NULL' shows a window-closing widget in the upper-right corner of the window, - // which clicking will set the boolean to false when clicked. - // - You may append multiple times to the same window during the same frame by calling Begin()/End() pairs multiple times. - // Some information such as 'flags' or 'p_open' will only be considered by the first call to Begin(). - // - Begin() return false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting - // anything to the window. Always call a matching End() for each Begin() call, regardless of its return value! - // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, - // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function - // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] - // - Note that the bottom of window stack always contains a window called "Debug". - IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); - IMGUI_API void End(); - - // Child Windows - // - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child. - // - For each independent axis of 'size': ==0.0f: use remaining host window size / >0.0f: fixed size / <0.0f: use remaining window size minus abs(size) / Each axis can use a different mode, e.g. ImVec2(0,400). - // - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting anything to the window. - // Always call a matching EndChild() for each BeginChild() call, regardless of its return value. - // [Important: due to legacy reason, this is inconsistent with most other functions such as BeginMenu/EndMenu, - // BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding BeginXXX function - // returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.] - IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); - IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0, 0), bool border = false, ImGuiWindowFlags flags = 0); - IMGUI_API void EndChild(); - - // Windows Utilities - // - 'current window' = the window we are appending into while inside a Begin()/End() block. 'next window' = next window we will Begin() into. - IMGUI_API bool IsWindowAppearing(); - IMGUI_API bool IsWindowCollapsed(); - IMGUI_API bool IsWindowFocused(ImGuiFocusedFlags flags=0); // is current window focused? or its root/child, depending on flags. see flags for options. - IMGUI_API bool IsWindowHovered(ImGuiHoveredFlags flags=0); // is current window hovered (and typically: not blocked by a popup/modal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! - IMGUI_API ImDrawList* GetWindowDrawList(); // get draw list associated to the current window, to append your own drawing primitives - IMGUI_API ImVec2 GetWindowPos(); // get current window position in screen space (useful if you want to do your own drawing via the DrawList API) - IMGUI_API ImVec2 GetWindowSize(); // get current window size - IMGUI_API float GetWindowWidth(); // get current window width (shortcut for GetWindowSize().x) - IMGUI_API float GetWindowHeight(); // get current window height (shortcut for GetWindowSize().y) - - // Prefer using SetNextXXX functions (before Begin) rather that SetXXX functions (after Begin). - IMGUI_API void SetNextWindowPos(const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivot = ImVec2(0, 0)); // set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. - IMGUI_API void SetNextWindowSize(const ImVec2& size, ImGuiCond cond = 0); // set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() - IMGUI_API void SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL, void* custom_callback_data = NULL); // set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. Use callback to apply non-trivial programmatic constraints. - IMGUI_API void SetNextWindowContentSize(const ImVec2& size); // set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin() - IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // set next window collapsed state. call before Begin() - IMGUI_API void SetNextWindowFocus(); // set next window to be focused / top-most. call before Begin() - IMGUI_API void SetNextWindowBgAlpha(float alpha); // set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground. - IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); // (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects. - IMGUI_API void SetWindowSize(const ImVec2& size, ImGuiCond cond = 0); // (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. - IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond = 0); // (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). - IMGUI_API void SetWindowFocus(); // (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). - IMGUI_API void SetWindowFontScale(float scale); // set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). - IMGUI_API void SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0); // set named window position. - IMGUI_API void SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond = 0); // set named window size. set axis to 0.0f to force an auto-fit on this axis. - IMGUI_API void SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond = 0); // set named window collapsed state - IMGUI_API void SetWindowFocus(const char* name); // set named window to be focused / top-most. use NULL to remove focus. - - // Content region - // - Retrieve available space from a given point. GetContentRegionAvail() is frequently useful. - // - Those functions are bound to be redesigned (they are confusing, incomplete and the Min/Max return values are in local window coordinates which increases confusion) - IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - GetCursorPos() - IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates - IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min (roughly (0,0)-Scroll), in window coordinates - IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max (roughly (0,0)+Size-Scroll) where Size can be override with SetNextWindowContentSize(), in window coordinates - IMGUI_API float GetWindowContentRegionWidth(); // - - // Windows Scrolling - IMGUI_API float GetScrollX(); // get scrolling amount [0 .. GetScrollMaxX()] - IMGUI_API float GetScrollY(); // get scrolling amount [0 .. GetScrollMaxY()] - IMGUI_API void SetScrollX(float scroll_x); // set scrolling amount [0 .. GetScrollMaxX()] - IMGUI_API void SetScrollY(float scroll_y); // set scrolling amount [0 .. GetScrollMaxY()] - IMGUI_API float GetScrollMaxX(); // get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x - IMGUI_API float GetScrollMaxY(); // get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y - IMGUI_API void SetScrollHereX(float center_x_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. - IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead. - IMGUI_API void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. - IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. - - // Parameters stacks (shared) - IMGUI_API void PushFont(ImFont* font); // use NULL as a shortcut to push default font - IMGUI_API void PopFont(); - IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col); // modify a style color. always use this if you modify the style after NewFrame(). - IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col); - IMGUI_API void PopStyleColor(int count = 1); - IMGUI_API void PushStyleVar(ImGuiStyleVar idx, float val); // modify a style float variable. always use this if you modify the style after NewFrame(). - IMGUI_API void PushStyleVar(ImGuiStyleVar idx, const ImVec2& val); // modify a style ImVec2 variable. always use this if you modify the style after NewFrame(). - IMGUI_API void PopStyleVar(int count = 1); - IMGUI_API void PushAllowKeyboardFocus(bool allow_keyboard_focus); // allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets - IMGUI_API void PopAllowKeyboardFocus(); - IMGUI_API void PushButtonRepeat(bool repeat); // in 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. - IMGUI_API void PopButtonRepeat(); - - // Parameters stacks (current window) - IMGUI_API void PushItemWidth(float item_width); // push width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side). - IMGUI_API void PopItemWidth(); - IMGUI_API void SetNextItemWidth(float item_width); // set width of the _next_ common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side) - IMGUI_API float CalcItemWidth(); // width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. - IMGUI_API void PushTextWrapPos(float wrap_local_pos_x = 0.0f); // push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space - IMGUI_API void PopTextWrapPos(); - - // Style read access - IMGUI_API ImFont* GetFont(); // get current font - IMGUI_API float GetFontSize(); // get current font size (= height in pixels) of current font with current scale applied - IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API - IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); // retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList - IMGUI_API ImU32 GetColorU32(const ImVec4& col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList - IMGUI_API ImU32 GetColorU32(ImU32 col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList - IMGUI_API const ImVec4& GetStyleColorVec4(ImGuiCol idx); // retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in. - - // Cursor / Layout - // - By "cursor" we mean the current output position. - // - The typical widget behavior is to output themselves at the current cursor position, then move the cursor one line down. - // - You can call SameLine() between widgets to undo the last carriage return and output at the right of the preceding widget. - // - Attention! We currently have inconsistencies between window-local and absolute positions we will aim to fix with future API: - // Window-local coordinates: SameLine(), GetCursorPos(), SetCursorPos(), GetCursorStartPos(), GetContentRegionMax(), GetWindowContentRegion*(), PushTextWrapPos() - // Absolute coordinate: GetCursorScreenPos(), SetCursorScreenPos(), all ImDrawList:: functions. - IMGUI_API void Separator(); // separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. - IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); // call between widgets or groups to layout them horizontally. X position given in window coordinates. - IMGUI_API void NewLine(); // undo a SameLine() or force a new line when in an horizontal-layout context. - IMGUI_API void Spacing(); // add vertical spacing. - IMGUI_API void Dummy(const ImVec2& size); // add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. - IMGUI_API void Indent(float indent_w = 0.0f); // move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0 - IMGUI_API void Unindent(float indent_w = 0.0f); // move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0 - IMGUI_API void BeginGroup(); // lock horizontal starting position - IMGUI_API void EndGroup(); // unlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.) - IMGUI_API ImVec2 GetCursorPos(); // cursor position in window coordinates (relative to window position) - IMGUI_API float GetCursorPosX(); // (some functions are using window-relative coordinates, such as: GetCursorPos, GetCursorStartPos, GetContentRegionMax, GetWindowContentRegion* etc. - IMGUI_API float GetCursorPosY(); // other functions such as GetCursorScreenPos or everything in ImDrawList:: - IMGUI_API void SetCursorPos(const ImVec2& local_pos); // are using the main, absolute coordinate system. - IMGUI_API void SetCursorPosX(float local_x); // GetWindowPos() + GetCursorPos() == GetCursorScreenPos() etc.) - IMGUI_API void SetCursorPosY(float local_y); // - IMGUI_API ImVec2 GetCursorStartPos(); // initial cursor position in window coordinates - IMGUI_API ImVec2 GetCursorScreenPos(); // cursor position in absolute coordinates (useful to work with ImDrawList API). generally top-left == GetMainViewport()->Pos == (0,0) in single viewport mode, and bottom-right == GetMainViewport()->Pos+Size == io.DisplaySize in single-viewport mode. - IMGUI_API void SetCursorScreenPos(const ImVec2& pos); // cursor position in absolute coordinates - IMGUI_API void AlignTextToFramePadding(); // vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item) - IMGUI_API float GetTextLineHeight(); // ~ FontSize - IMGUI_API float GetTextLineHeightWithSpacing(); // ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) - IMGUI_API float GetFrameHeight(); // ~ FontSize + style.FramePadding.y * 2 - IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) - - // ID stack/scopes - // - Read the FAQ for more details about how ID are handled in dear imgui. If you are creating widgets in a loop you most - // likely want to push a unique identifier (e.g. object pointer, loop index) to uniquely differentiate them. - // - The resulting ID are hashes of the entire stack. - // - You can also use the "Label##foobar" syntax within widget label to distinguish them from each others. - // - In this header file we use the "label"/"name" terminology to denote a string that will be displayed and used as an ID, - // whereas "str_id" denote a string that is only used as an ID and not normally displayed. - IMGUI_API void PushID(const char* str_id); // push string into the ID stack (will hash string). - IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); // push string into the ID stack (will hash string). - IMGUI_API void PushID(const void* ptr_id); // push pointer into the ID stack (will hash pointer). - IMGUI_API void PushID(int int_id); // push integer into the ID stack (will hash integer). - IMGUI_API void PopID(); // pop from the ID stack. - IMGUI_API ImGuiID GetID(const char* str_id); // calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself - IMGUI_API ImGuiID GetID(const char* str_id_begin, const char* str_id_end); - IMGUI_API ImGuiID GetID(const void* ptr_id); - - // Widgets: Text - IMGUI_API void TextUnformatted(const char* text, const char* text_end = NULL); // raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. - IMGUI_API void Text(const char* fmt, ...) IM_FMTARGS(1); // formatted text - IMGUI_API void TextV(const char* fmt, va_list args) IM_FMTLIST(1); - IMGUI_API void TextColored(const ImVec4& col, const char* fmt, ...) IM_FMTARGS(2); // shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); - IMGUI_API void TextColoredV(const ImVec4& col, const char* fmt, va_list args) IM_FMTLIST(2); - IMGUI_API void TextDisabled(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); - IMGUI_API void TextDisabledV(const char* fmt, va_list args) IM_FMTLIST(1); - IMGUI_API void TextWrapped(const char* fmt, ...) IM_FMTARGS(1); // shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize(). - IMGUI_API void TextWrappedV(const char* fmt, va_list args) IM_FMTLIST(1); - IMGUI_API void LabelText(const char* label, const char* fmt, ...) IM_FMTARGS(2); // display text+label aligned the same way as value+label widgets - IMGUI_API void LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST(2); - IMGUI_API void BulletText(const char* fmt, ...) IM_FMTARGS(1); // shortcut for Bullet()+Text() - IMGUI_API void BulletTextV(const char* fmt, va_list args) IM_FMTLIST(1); - - // Widgets: Main - // - Most widgets return true when the value has been changed or when pressed/selected - // - You may also use one of the many IsItemXXX functions (e.g. IsItemActive, IsItemHovered, etc.) to query widget state. - IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0, 0)); // button - IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text - IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); // flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) - IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square button with an arrow shape - IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1,1), const ImVec4& tint_col = ImVec4(1,1,1,1), const ImVec4& border_col = ImVec4(0,0,0,0)); - IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1,1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0,0,0,0), const ImVec4& tint_col = ImVec4(1,1,1,1)); // <0 frame_padding uses default frame padding settings. 0 for no padding - IMGUI_API bool Checkbox(const char* label, bool* v); - IMGUI_API bool CheckboxFlags(const char* label, int* flags, int flags_value); - IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); - IMGUI_API bool RadioButton(const char* label, bool active); // use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; } - IMGUI_API bool RadioButton(const char* label, int* v, int v_button); // shortcut to handle the above pattern when value is an integer - IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-FLT_MIN, 0), const char* overlay = NULL); - IMGUI_API void Bullet(); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses - - // Widgets: Combo Box - // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. - // - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created. - IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); - IMGUI_API void EndCombo(); // only call EndCombo() if BeginCombo() returns true! - IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1); - IMGUI_API bool Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items = -1); // Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" - IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items = -1); - - // Widgets: Drag Sliders - // - CTRL+Click on any drag box to turn them into an input box. Manually input values aren't clamped and can go off-bounds. - // - For all the Float2/Float3/Float4/Int2/Int3/Int4 versions of every functions, note that a 'float v[X]' function argument is the same as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x - // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. - // - Format string may also be set to NULL or use the default format ("%f" or "%d"). - // - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). - // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits. - // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. - // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. - // - Legacy: Pre-1.78 there are DragXXX() function signatures that takes a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. - // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 - IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound - IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); - IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); - IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", ImGuiSliderFlags flags = 0); - IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* format = "%.3f", const char* format_max = NULL, ImGuiSliderFlags flags = 0); - IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); // If v_min >= v_max we have no bound - IMGUI_API bool DragInt2(const char* label, int v[2], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); - IMGUI_API bool DragInt3(const char* label, int v[3], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); - IMGUI_API bool DragInt4(const char* label, int v[4], float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", ImGuiSliderFlags flags = 0); - IMGUI_API bool DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed = 1.0f, int v_min = 0, int v_max = 0, const char* format = "%d", const char* format_max = NULL, ImGuiSliderFlags flags = 0); - IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); - IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min = NULL, const void* p_max = NULL, const char* format = NULL, ImGuiSliderFlags flags = 0); - - // Widgets: Regular Sliders - // - CTRL+Click on any slider to turn them into an input box. Manually input values aren't clamped and can go off-bounds. - // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. - // - Format string may also be set to NULL or use the default format ("%f" or "%d"). - // - Legacy: Pre-1.78 there are SliderXXX() function signatures that takes a final `float power=1.0f' argument instead of the `ImGuiSliderFlags flags=0' argument. - // If you get a warning converting a float to ImGuiSliderFlags, read https://github.com/ocornut/imgui/issues/3361 - IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); // adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. - IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderAngle(const char* label, float* v_rad, float v_degrees_min = -360.0f, float v_degrees_max = +360.0f, const char* format = "%.0f deg", ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderInt(const char* label, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); - IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); - IMGUI_API bool VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); - IMGUI_API bool VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); - IMGUI_API bool VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format = NULL, ImGuiSliderFlags flags = 0); - - // Widgets: Input with Keyboard - // - If you want to use InputText() with std::string or any custom dynamic string type, see misc/cpp/imgui_stdlib.h and comments in imgui_demo.cpp. - // - Most of the ImGuiInputTextFlags flags are only useful for InputText() and not for InputFloatX, InputIntX, InputDouble etc. - IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); - IMGUI_API bool InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); - IMGUI_API bool InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); - IMGUI_API bool InputFloat(const char* label, float* v, float step = 0.0f, float step_fast = 0.0f, const char* format = "%.3f", ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputFloat2(const char* label, float v[2], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputFloat3(const char* label, float v[3], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputFloat4(const char* label, float v[4], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputInt(const char* label, int* v, int step = 1, int step_fast = 100, ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputDouble(const char* label, double* v, double step = 0.0, double step_fast = 0.0, const char* format = "%.6f", ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); - IMGUI_API bool InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step = NULL, const void* p_step_fast = NULL, const char* format = NULL, ImGuiInputTextFlags flags = 0); - - // Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu.) - // - Note that in C++ a 'float v[X]' function argument is the _same_ as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible. - // - You can pass the address of a first float element out of a contiguous structure, e.g. &myvector.x - IMGUI_API bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); - IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); - IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); - IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); - IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, ImVec2 size = ImVec2(0, 0)); // display a color square/button, hover for details, return true when pressed. - IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls. - - // Widgets: Trees - // - TreeNode functions return true when the node is open, in which case you need to also call TreePop() when you are finished displaying the tree node contents. - IMGUI_API bool TreeNode(const char* label); - IMGUI_API bool TreeNode(const char* str_id, const char* fmt, ...) IM_FMTARGS(2); // helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet(). - IMGUI_API bool TreeNode(const void* ptr_id, const char* fmt, ...) IM_FMTARGS(2); // " - IMGUI_API bool TreeNodeV(const char* str_id, const char* fmt, va_list args) IM_FMTLIST(2); - IMGUI_API bool TreeNodeV(const void* ptr_id, const char* fmt, va_list args) IM_FMTLIST(2); - IMGUI_API bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0); - IMGUI_API bool TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); - IMGUI_API bool TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); - IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); - IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); - IMGUI_API void TreePush(const char* str_id); // ~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. - IMGUI_API void TreePush(const void* ptr_id = NULL); // " - IMGUI_API void TreePop(); // ~ Unindent()+PopId() - IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode - IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). - IMGUI_API bool CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags = 0); // when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header. - IMGUI_API void SetNextItemOpen(bool is_open, ImGuiCond cond = 0); // set next TreeNode/CollapsingHeader open state. - - // Widgets: Selectables - // - A selectable highlights when hovered, and can display another color when selected. - // - Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous. - IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height - IMGUI_API bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); // "bool* p_selected" point to the selection state (read-write), as a convenient helper. - - // Widgets: List Boxes - // - This is essentially a thin wrapper to using BeginChild/EndChild with some stylistic changes. - // - The BeginListBox()/EndListBox() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() or any items. - // - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analoguous to how Combos are created. - // - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth - // - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items - IMGUI_API bool BeginListBox(const char* label, const ImVec2& size = ImVec2(0, 0)); // open a framed scrolling region - IMGUI_API void EndListBox(); // only call EndListBox() if BeginListBox() returned true! - IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1); - IMGUI_API bool ListBox(const char* label, int* current_item, bool (*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int height_in_items = -1); - - // Widgets: Data Plotting - // - Consider using ImPlot (https://github.com/epezent/implot) - IMGUI_API void PlotLines(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); - IMGUI_API void PlotLines(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); - IMGUI_API void PlotHistogram(const char* label, const float* values, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0), int stride = sizeof(float)); - IMGUI_API void PlotHistogram(const char* label, float(*values_getter)(void* data, int idx), void* data, int values_count, int values_offset = 0, const char* overlay_text = NULL, float scale_min = FLT_MAX, float scale_max = FLT_MAX, ImVec2 graph_size = ImVec2(0, 0)); - - // Widgets: Value() Helpers. - // - Those are merely shortcut to calling Text() with a format string. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace) - IMGUI_API void Value(const char* prefix, bool b); - IMGUI_API void Value(const char* prefix, int v); - IMGUI_API void Value(const char* prefix, unsigned int v); - IMGUI_API void Value(const char* prefix, float v, const char* float_format = NULL); - - // Widgets: Menus - // - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar. - // - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it. - // - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it. - IMGUI_API bool BeginMenuBar(); // append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). - IMGUI_API void EndMenuBar(); // only call EndMenuBar() if BeginMenuBar() returns true! - IMGUI_API bool BeginMainMenuBar(); // create and append to a full screen menu-bar. - IMGUI_API void EndMainMenuBar(); // only call EndMainMenuBar() if BeginMainMenuBar() returns true! - IMGUI_API bool BeginMenu(const char* label, bool enabled = true); // create a sub-menu entry. only call EndMenu() if this returns true! - IMGUI_API void EndMenu(); // only call EndMenu() if BeginMenu() returns true! - IMGUI_API bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true); // return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment - IMGUI_API bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true); // return true when activated + toggle (*p_selected) if p_selected != NULL - - // Tooltips - // - Tooltip are windows following the mouse. They do not take focus away. - IMGUI_API void BeginTooltip(); // begin/append a tooltip window. to create full-featured tooltip (with any kind of items). - IMGUI_API void EndTooltip(); - IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); // set a text-only tooltip, typically use with ImGui::IsItemHovered(). override any previous call to SetTooltip(). - IMGUI_API void SetTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); - - // Popups, Modals - // - They block normal mouse hovering detection (and therefore most mouse interactions) behind them. - // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. - // - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to with regular Begin*() calls. - // - The 3 properties above are related: we need to retain popup visibility state in the library because popups may be closed as any time. - // - You can bypass the hovering restriction by using ImGuiHoveredFlags_AllowWhenBlockedByPopup when calling IsItemHovered() or IsWindowHovered(). - // - IMPORTANT: Popup identifiers are relative to the current ID stack, so OpenPopup and BeginPopup generally needs to be at the same level of the stack. - // This is sometimes leading to confusing mistakes. May rework this in the future. - // Popups: begin/end functions - // - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards. ImGuiWindowFlags are forwarded to the window. - // - BeginPopupModal(): block every interactions behind the window, cannot be closed by user, add a dimming background, has a title bar. - IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); // return true if the popup is open, and you can start outputting to it. - IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // return true if the modal is open, and you can start outputting to it. - IMGUI_API void EndPopup(); // only call EndPopup() if BeginPopupXXX() returns true! - // Popups: open/close functions - // - OpenPopup(): set popup state to open. ImGuiPopupFlags are available for opening options. - // - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. - // - CloseCurrentPopup(): use inside the BeginPopup()/EndPopup() scope to close manually. - // - CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). - // - Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). - IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); // call to mark popup as open (don't call every frame!). - IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // helper to open popup when clicked on last item. return true when just opened. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) - IMGUI_API void CloseCurrentPopup(); // manually close the popup we have begin-ed into. - // Popups: open+begin combined functions helpers - // - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking. - // - They are convenient to easily create context menus, hence the name. - // - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future. - // - IMPORTANT: we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. - IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked on last item. if you can pass a NULL str_id only if the previous item had an id. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! - IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);// open+begin popup when clicked on current window. - IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1); // open+begin popup when clicked in void (where there are no windows). - // Popups: test function - // - IsPopupOpen(): return true if the popup is open at the current BeginPopup() level of the popup stack. - // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId: return true if any popup is open at the current BeginPopup() level of the popup stack. - // - IsPopupOpen() with ImGuiPopupFlags_AnyPopupId + ImGuiPopupFlags_AnyPopupLevel: return true if any popup is open. - IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); // return true if the popup is open. - - // Tables - // [BETA API] API may evolve slightly! If you use this, please update to the next version when it comes out! - // - Full-featured replacement for old Columns API. - // - See Demo->Tables for demo code. - // - See top of imgui_tables.cpp for general commentary. - // - See ImGuiTableFlags_ and ImGuiTableColumnFlags_ enums for a description of available flags. - // The typical call flow is: - // - 1. Call BeginTable(). - // - 2. Optionally call TableSetupColumn() to submit column name/flags/defaults. - // - 3. Optionally call TableSetupScrollFreeze() to request scroll freezing of columns/rows. - // - 4. Optionally call TableHeadersRow() to submit a header row. Names are pulled from TableSetupColumn() data. - // - 5. Populate contents: - // - In most situations you can use TableNextRow() + TableSetColumnIndex(N) to start appending into a column. - // - If you are using tables as a sort of grid, where every columns is holding the same type of contents, - // you may prefer using TableNextColumn() instead of TableNextRow() + TableSetColumnIndex(). - // TableNextColumn() will automatically wrap-around into the next row if needed. - // - IMPORTANT: Comparatively to the old Columns() API, we need to call TableNextColumn() for the first column! - // - Summary of possible call flow: - // -------------------------------------------------------------------------------------------------------- - // TableNextRow() -> TableSetColumnIndex(0) -> Text("Hello 0") -> TableSetColumnIndex(1) -> Text("Hello 1") // OK - // TableNextRow() -> TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK - // TableNextColumn() -> Text("Hello 0") -> TableNextColumn() -> Text("Hello 1") // OK: TableNextColumn() automatically gets to next row! - // TableNextRow() -> Text("Hello 0") // Not OK! Missing TableSetColumnIndex() or TableNextColumn()! Text will not appear! - // -------------------------------------------------------------------------------------------------------- - // - 5. Call EndTable() - IMGUI_API bool BeginTable(const char* str_id, int column, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0.0f, 0.0f), float inner_width = 0.0f); - IMGUI_API void EndTable(); // only call EndTable() if BeginTable() returns true! - IMGUI_API void TableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); // append into the first cell of a new row. - IMGUI_API bool TableNextColumn(); // append into the next column (or first column of next row if currently in last column). Return true when column is visible. - IMGUI_API bool TableSetColumnIndex(int column_n); // append into the specified column. Return true when column is visible. - // Tables: Headers & Columns declaration - // - Use TableSetupColumn() to specify label, resizing policy, default width/weight, id, various other flags etc. - // - Use TableHeadersRow() to create a header row and automatically submit a TableHeader() for each column. - // Headers are required to perform: reordering, sorting, and opening the context menu. - // The context menu can also be made available in columns body using ImGuiTableFlags_ContextMenuInBody. - // - You may manually submit headers using TableNextRow() + TableHeader() calls, but this is only useful in - // some advanced use cases (e.g. adding custom widgets in header row). - // - Use TableSetupScrollFreeze() to lock columns/rows so they stay visible when scrolled. - IMGUI_API void TableSetupColumn(const char* label, ImGuiTableColumnFlags flags = 0, float init_width_or_weight = 0.0f, ImGuiID user_id = 0); - IMGUI_API void TableSetupScrollFreeze(int cols, int rows); // lock columns/rows so they stay visible when scrolled. - IMGUI_API void TableHeadersRow(); // submit all headers cells based on data provided to TableSetupColumn() + submit context menu - IMGUI_API void TableHeader(const char* label); // submit one header cell manually (rarely used) - // Tables: Sorting - // - Call TableGetSortSpecs() to retrieve latest sort specs for the table. NULL when not sorting. - // - When 'SpecsDirty == true' you should sort your data. It will be true when sorting specs have changed - // since last call, or the first time. Make sure to set 'SpecsDirty = false' after sorting, else you may - // wastefully sort your data every frame! - // - Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). - IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); // get latest sort specs for the table (NULL if not sorting). - // Tables: Miscellaneous functions - // - Functions args 'int column_n' treat the default value of -1 as the same as passing the current column index. - IMGUI_API int TableGetColumnCount(); // return number of columns (value passed to BeginTable) - IMGUI_API int TableGetColumnIndex(); // return current column index. - IMGUI_API int TableGetRowIndex(); // return current row index. - IMGUI_API const char* TableGetColumnName(int column_n = -1); // return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. - IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(int column_n = -1); // return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column. - IMGUI_API void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n = -1); // change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details. - - // Legacy Columns API (2020: prefer using Tables!) - // - You can also use SameLine(pos_x) to mimic simplified columns. - IMGUI_API void Columns(int count = 1, const char* id = NULL, bool border = true); - IMGUI_API void NextColumn(); // next column, defaults to current row or next row if the current row is finished - IMGUI_API int GetColumnIndex(); // get current column index - IMGUI_API float GetColumnWidth(int column_index = -1); // get column width (in pixels). pass -1 to use current column - IMGUI_API void SetColumnWidth(int column_index, float width); // set column width (in pixels). pass -1 to use current column - IMGUI_API float GetColumnOffset(int column_index = -1); // get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f - IMGUI_API void SetColumnOffset(int column_index, float offset_x); // set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column - IMGUI_API int GetColumnsCount(); - - // Tab Bars, Tabs - IMGUI_API bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0); // create and append into a TabBar - IMGUI_API void EndTabBar(); // only call EndTabBar() if BeginTabBar() returns true! - IMGUI_API bool BeginTabItem(const char* label, bool* p_open = NULL, ImGuiTabItemFlags flags = 0); // create a Tab. Returns true if the Tab is selected. - IMGUI_API void EndTabItem(); // only call EndTabItem() if BeginTabItem() returns true! - IMGUI_API bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0); // create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar. - IMGUI_API void SetTabItemClosed(const char* tab_or_docked_window_label); // notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name. - - // Logging/Capture - // - All text output from the interface can be captured into tty/file/clipboard. By default, tree nodes are automatically opened during logging. - IMGUI_API void LogToTTY(int auto_open_depth = -1); // start logging to tty (stdout) - IMGUI_API void LogToFile(int auto_open_depth = -1, const char* filename = NULL); // start logging to file - IMGUI_API void LogToClipboard(int auto_open_depth = -1); // start logging to OS clipboard - IMGUI_API void LogFinish(); // stop logging (close file, etc.) - IMGUI_API void LogButtons(); // helper to display buttons for logging to tty/file/clipboard - IMGUI_API void LogText(const char* fmt, ...) IM_FMTARGS(1); // pass text data straight to log (without being displayed) - IMGUI_API void LogTextV(const char* fmt, va_list args) IM_FMTLIST(1); - - // Drag and Drop - // - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip as replacement) - IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); // call when the current item is active. If this return true, you can call SetDragDropPayload() + EndDragDropSource() - IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. - IMGUI_API void EndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true! - IMGUI_API bool BeginDragDropTarget(); // call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() - IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); // accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. - IMGUI_API void EndDragDropTarget(); // only call EndDragDropTarget() if BeginDragDropTarget() returns true! - IMGUI_API const ImGuiPayload* GetDragDropPayload(); // peek directly into the current payload from anywhere. may return NULL. use ImGuiPayload::IsDataType() to test for the payload type. - - // Clipping - // - Mouse hovering is affected by ImGui::PushClipRect() calls, unlike direct calls to ImDrawList::PushClipRect() which are render only. - IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect); - IMGUI_API void PopClipRect(); - - // Focus, Activation - // - Prefer using "SetItemDefaultFocus()" over "if (IsWindowAppearing()) SetScrollHereY()" when applicable to signify "this is the default item" - IMGUI_API void SetItemDefaultFocus(); // make last item the default focused item of a window. - IMGUI_API void SetKeyboardFocusHere(int offset = 0); // focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. - - // Item/Widgets Utilities - // - Most of the functions are referring to the last/previous item we submitted. - // - See Demo Window under "Widgets->Querying Status" for an interactive visualization of most of those functions. - IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. - IMGUI_API bool IsItemActive(); // is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false) - IMGUI_API bool IsItemFocused(); // is the last item focused for keyboard/gamepad navigation? - IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item clicked? (e.g. button/node just clicked on) == IsMouseClicked(mouse_button) && IsItemHovered() - IMGUI_API bool IsItemVisible(); // is the last item visible? (items may be out of sight because of clipping/scrolling) - IMGUI_API bool IsItemEdited(); // did the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets. - IMGUI_API bool IsItemActivated(); // was the last item just made active (item was previously inactive). - IMGUI_API bool IsItemDeactivated(); // was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that requires continuous editing. - IMGUI_API bool IsItemDeactivatedAfterEdit(); // was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that requires continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item). - IMGUI_API bool IsItemToggledOpen(); // was the last item open state toggled? set by TreeNode(). - IMGUI_API bool IsAnyItemHovered(); // is any item hovered? - IMGUI_API bool IsAnyItemActive(); // is any item active? - IMGUI_API bool IsAnyItemFocused(); // is any item focused? - IMGUI_API ImVec2 GetItemRectMin(); // get upper-left bounding rectangle of the last item (screen space) - IMGUI_API ImVec2 GetItemRectMax(); // get lower-right bounding rectangle of the last item (screen space) - IMGUI_API ImVec2 GetItemRectSize(); // get size of last item - IMGUI_API void SetItemAllowOverlap(); // allow last item to be overlapped by a subsequent item. sometimes useful with invisible buttons, selectables, etc. to catch unused area. - - // Viewports - // - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. - // - In 'docking' branch with multi-viewport enabled, we extend this concept to have multiple active viewports. - // - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. - IMGUI_API ImGuiViewport* GetMainViewport(); // return primary/default viewport. - - // Miscellaneous Utilities - IMGUI_API bool IsRectVisible(const ImVec2& size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped. - IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. - IMGUI_API double GetTime(); // get global imgui time. incremented by io.DeltaTime every frame. - IMGUI_API int GetFrameCount(); // get global imgui frame count. incremented by 1 every frame. - IMGUI_API ImDrawList* GetBackgroundDrawList(); // this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. - IMGUI_API ImDrawList* GetForegroundDrawList(); // this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. - IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you may use this when creating your own ImDrawList instances. - IMGUI_API const char* GetStyleColorName(ImGuiCol idx); // get a string corresponding to the enum value (for display, saving, etc.). - IMGUI_API void SetStateStorage(ImGuiStorage* storage); // replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it) - IMGUI_API ImGuiStorage* GetStateStorage(); - IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // calculate coarse clipping for large list of evenly sized items. Prefer using the ImGuiListClipper higher-level helper if you can. - IMGUI_API bool BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags flags = 0); // helper to create a child window / scrolling region that looks like a normal widget frame - IMGUI_API void EndChildFrame(); // always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window) - - // Text Utilities - IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); - - // Color Utilities - IMGUI_API ImVec4 ColorConvertU32ToFloat4(ImU32 in); - IMGUI_API ImU32 ColorConvertFloat4ToU32(const ImVec4& in); - IMGUI_API void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v); - IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); - - // Inputs Utilities: Keyboard - // - For 'int user_key_index' you can use your own indices/enums according to how your backend/engine stored them in io.KeysDown[]. - // - We don't know the meaning of those value. You can use GetKeyIndex() to map a ImGuiKey_ value into the user index. - IMGUI_API int GetKeyIndex(ImGuiKey imgui_key); // map ImGuiKey_* values into user's key index. == io.KeyMap[key] - IMGUI_API bool IsKeyDown(int user_key_index); // is key being held. == io.KeysDown[user_key_index]. - IMGUI_API bool IsKeyPressed(int user_key_index, bool repeat = true); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate - IMGUI_API bool IsKeyReleased(int user_key_index); // was key released (went from Down to !Down)? - IMGUI_API int GetKeyPressedAmount(int key_index, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate - IMGUI_API void CaptureKeyboardFromApp(bool want_capture_keyboard_value = true); // attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard_value"; after the next NewFrame() call. - - // Inputs Utilities: Mouse - // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. - // - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle. - // - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold') - IMGUI_API bool IsMouseDown(ImGuiMouseButton button); // is mouse button held? - IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat = false); // did mouse button clicked? (went from !Down to Down) - IMGUI_API bool IsMouseReleased(ImGuiMouseButton button); // did mouse button released? (went from Down to !Down) - IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button); // did mouse button double-clicked? (note that a double-click will also report IsMouseClicked() == true) - IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true);// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. - IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); // by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available - IMGUI_API bool IsAnyMouseDown(); // is any mouse button held? - IMGUI_API ImVec2 GetMousePos(); // shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls - IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves) - IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); // is mouse dragging? (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) - IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); // return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (if lock_threshold < -1.0f, uses io.MouseDraggingThreshold) - IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); // - IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get desired cursor type, reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you - IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired cursor type - IMGUI_API void CaptureMouseFromApp(bool want_capture_mouse_value = true); // attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse_value;" after the next NewFrame() call. - - // Clipboard Utilities - // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. - IMGUI_API const char* GetClipboardText(); - IMGUI_API void SetClipboardText(const char* text); - - // Settings/.Ini Utilities - // - The disk functions are automatically called if io.IniFilename != NULL (default is "imgui.ini"). - // - Set io.IniFilename to NULL to load/save manually. Read io.WantSaveIniSettings description about handling .ini saving manually. - IMGUI_API void LoadIniSettingsFromDisk(const char* ini_filename); // call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). - IMGUI_API void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0); // call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. - IMGUI_API void SaveIniSettingsToDisk(const char* ini_filename); // this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext). - IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings. - - // Debug Utilities - IMGUI_API bool DebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx); // This is called by IMGUI_CHECKVERSION() macro. - - // Memory Allocators - // - Those functions are not reliant on the current context. - // - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() - // for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details. - IMGUI_API void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data = NULL); - IMGUI_API void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data); - IMGUI_API void* MemAlloc(size_t size); - IMGUI_API void MemFree(void* ptr); - -} // namespace ImGui - -//----------------------------------------------------------------------------- -// [SECTION] Flags & Enumerations -//----------------------------------------------------------------------------- - -// Flags for ImGui::Begin() -enum ImGuiWindowFlags_ -{ - ImGuiWindowFlags_None = 0, - ImGuiWindowFlags_NoTitleBar = 1 << 0, // Disable title-bar - ImGuiWindowFlags_NoResize = 1 << 1, // Disable user resizing with the lower-right grip - ImGuiWindowFlags_NoMove = 1 << 2, // Disable user moving the window - ImGuiWindowFlags_NoScrollbar = 1 << 3, // Disable scrollbars (window can still scroll with mouse or programmatically) - ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, // Disable user vertically scrolling with mouse wheel. On child window, mouse wheel will be forwarded to the parent unless NoScrollbar is also set. - ImGuiWindowFlags_NoCollapse = 1 << 5, // Disable user collapsing window by double-clicking on it - ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, // Resize every window to its content every frame - ImGuiWindowFlags_NoBackground = 1 << 7, // Disable drawing background color (WindowBg, etc.) and outside border. Similar as using SetNextWindowBgAlpha(0.0f). - ImGuiWindowFlags_NoSavedSettings = 1 << 8, // Never load/save settings in .ini file - ImGuiWindowFlags_NoMouseInputs = 1 << 9, // Disable catching mouse, hovering test with pass through. - ImGuiWindowFlags_MenuBar = 1 << 10, // Has a menu-bar - ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, // Allow horizontal scrollbar to appear (off by default). You may use SetNextWindowContentSize(ImVec2(width,0.0f)); prior to calling Begin() to specify width. Read code in imgui_demo in the "Horizontal Scrolling" section. - ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, // Disable taking focus when transitioning from hidden to visible state - ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus) - ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, // Always show vertical scrollbar (even if ContentSize.y < Size.y) - ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, // Always show horizontal scrollbar (even if ContentSize.x < Size.x) - ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16, // Ensure child windows without border uses style.WindowPadding (ignored by default for non-bordered child windows, because more convenient) - ImGuiWindowFlags_NoNavInputs = 1 << 18, // No gamepad/keyboard navigation within the window - ImGuiWindowFlags_NoNavFocus = 1 << 19, // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB) - ImGuiWindowFlags_UnsavedDocument = 1 << 20, // Append '*' to title without affecting the ID, as a convenience to avoid using the ### operator. When used in a tab/docking context, tab is selected on closure and closure is deferred by one frame to allow code to cancel the closure (with a confirmation popup, etc.) without flicker. - ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, - ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, - ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, - - // [Internal] - ImGuiWindowFlags_NavFlattened = 1 << 23, // [BETA] Allow gamepad/keyboard navigation to cross over parent border to this child (only use on child that have no scrolling!) - ImGuiWindowFlags_ChildWindow = 1 << 24, // Don't use! For internal use by BeginChild() - ImGuiWindowFlags_Tooltip = 1 << 25, // Don't use! For internal use by BeginTooltip() - ImGuiWindowFlags_Popup = 1 << 26, // Don't use! For internal use by BeginPopup() - ImGuiWindowFlags_Modal = 1 << 27, // Don't use! For internal use by BeginPopupModal() - ImGuiWindowFlags_ChildMenu = 1 << 28 // Don't use! For internal use by BeginMenu() - - // [Obsolete] - //ImGuiWindowFlags_ResizeFromAnySide = 1 << 17, // --> Set io.ConfigWindowsResizeFromEdges=true and make sure mouse cursors are supported by backend (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) -}; - -// Flags for ImGui::InputText() -enum ImGuiInputTextFlags_ -{ - ImGuiInputTextFlags_None = 0, - ImGuiInputTextFlags_CharsDecimal = 1 << 0, // Allow 0123456789.+-*/ - ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, // Allow 0123456789ABCDEFabcdef - ImGuiInputTextFlags_CharsUppercase = 1 << 2, // Turn a..z into A..Z - ImGuiInputTextFlags_CharsNoBlank = 1 << 3, // Filter out spaces, tabs - ImGuiInputTextFlags_AutoSelectAll = 1 << 4, // Select entire text when first taking mouse focus - ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5, // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function. - ImGuiInputTextFlags_CallbackCompletion = 1 << 6, // Callback on pressing TAB (for completion handling) - ImGuiInputTextFlags_CallbackHistory = 1 << 7, // Callback on pressing Up/Down arrows (for history handling) - ImGuiInputTextFlags_CallbackAlways = 1 << 8, // Callback on each iteration. User code may query cursor position, modify text buffer. - ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. - ImGuiInputTextFlags_AllowTabInput = 1 << 10, // Pressing TAB input a '\t' character into the text field - ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter). - ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, // Disable following the cursor horizontally - ImGuiInputTextFlags_AlwaysInsertMode = 1 << 13, // Insert mode - ImGuiInputTextFlags_ReadOnly = 1 << 14, // Read-only mode - ImGuiInputTextFlags_Password = 1 << 15, // Password mode, display all characters as '*' - ImGuiInputTextFlags_NoUndoRedo = 1 << 16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). - ImGuiInputTextFlags_CharsScientific = 1 << 17, // Allow 0123456789.+-*/eE (Scientific notation input) - ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) - ImGuiInputTextFlags_CallbackEdit = 1 << 19, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) - // [Internal] - ImGuiInputTextFlags_Multiline = 1 << 20, // For internal use by InputTextMultiline() - ImGuiInputTextFlags_NoMarkEdited = 1 << 21 // For internal use by functions using InputText() before reformatting data -}; - -// Flags for ImGui::TreeNodeEx(), ImGui::CollapsingHeader*() -enum ImGuiTreeNodeFlags_ -{ - ImGuiTreeNodeFlags_None = 0, - ImGuiTreeNodeFlags_Selected = 1 << 0, // Draw as selected - ImGuiTreeNodeFlags_Framed = 1 << 1, // Draw frame with background (e.g. for CollapsingHeader) - ImGuiTreeNodeFlags_AllowItemOverlap = 1 << 2, // Hit testing to allow subsequent widgets to overlap this one - ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, // Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack - ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, // Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes) - ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, // Default node to be open - ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, // Need double-click to open node - ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, // Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open. - ImGuiTreeNodeFlags_Leaf = 1 << 8, // No collapsing, no arrow (use as a convenience for leaf nodes). - ImGuiTreeNodeFlags_Bullet = 1 << 9, // Display a bullet instead of arrow - ImGuiTreeNodeFlags_FramePadding = 1 << 10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding(). - ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, // Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line. In the future we may refactor the hit system to be front-to-back, allowing natural overlaps and then this can become the default. - ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, // Extend hit box to the left-most and right-most edges (bypass the indented area). - ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) - //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 14, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible - ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog -}; - -// Flags for OpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions. -// - To be backward compatible with older API which took an 'int mouse_button = 1' argument, we need to treat -// small flags values as a mouse button index, so we encode the mouse button in the first few bits of the flags. -// It is therefore guaranteed to be legal to pass a mouse button index in ImGuiPopupFlags. -// - For the same reason, we exceptionally default the ImGuiPopupFlags argument of BeginPopupContextXXX functions to 1 instead of 0. -// IMPORTANT: because the default parameter is 1 (==ImGuiPopupFlags_MouseButtonRight), if you rely on the default parameter -// and want to another another flag, you need to pass in the ImGuiPopupFlags_MouseButtonRight flag. -// - Multiple buttons currently cannot be combined/or-ed in those functions (we could allow it later). -enum ImGuiPopupFlags_ -{ - ImGuiPopupFlags_None = 0, - ImGuiPopupFlags_MouseButtonLeft = 0, // For BeginPopupContext*(): open on Left Mouse release. Guaranteed to always be == 0 (same as ImGuiMouseButton_Left) - ImGuiPopupFlags_MouseButtonRight = 1, // For BeginPopupContext*(): open on Right Mouse release. Guaranteed to always be == 1 (same as ImGuiMouseButton_Right) - ImGuiPopupFlags_MouseButtonMiddle = 2, // For BeginPopupContext*(): open on Middle Mouse release. Guaranteed to always be == 2 (same as ImGuiMouseButton_Middle) - ImGuiPopupFlags_MouseButtonMask_ = 0x1F, - ImGuiPopupFlags_MouseButtonDefault_ = 1, - ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5, // For OpenPopup*(), BeginPopupContext*(): don't open if there's already a popup at the same level of the popup stack - ImGuiPopupFlags_NoOpenOverItems = 1 << 6, // For BeginPopupContextWindow(): don't return true when hovering items, only when hovering empty space - ImGuiPopupFlags_AnyPopupId = 1 << 7, // For IsPopupOpen(): ignore the ImGuiID parameter and test for any popup. - ImGuiPopupFlags_AnyPopupLevel = 1 << 8, // For IsPopupOpen(): search/test at any level of the popup stack (default test in the current level) - ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel -}; - -// Flags for ImGui::Selectable() -enum ImGuiSelectableFlags_ -{ - ImGuiSelectableFlags_None = 0, - ImGuiSelectableFlags_DontClosePopups = 1 << 0, // Clicking this don't close parent popup window - ImGuiSelectableFlags_SpanAllColumns = 1 << 1, // Selectable frame can span all columns (text will still fit in current column) - ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, // Generate press events on double clicks too - ImGuiSelectableFlags_Disabled = 1 << 3, // Cannot be selected, display grayed out text - ImGuiSelectableFlags_AllowItemOverlap = 1 << 4 // (WIP) Hit testing to allow subsequent widgets to overlap this one -}; - -// Flags for ImGui::BeginCombo() -enum ImGuiComboFlags_ -{ - ImGuiComboFlags_None = 0, - ImGuiComboFlags_PopupAlignLeft = 1 << 0, // Align the popup toward the left by default - ImGuiComboFlags_HeightSmall = 1 << 1, // Max ~4 items visible. Tip: If you want your combo popup to be a specific size you can use SetNextWindowSizeConstraints() prior to calling BeginCombo() - ImGuiComboFlags_HeightRegular = 1 << 2, // Max ~8 items visible (default) - ImGuiComboFlags_HeightLarge = 1 << 3, // Max ~20 items visible - ImGuiComboFlags_HeightLargest = 1 << 4, // As many fitting items as possible - ImGuiComboFlags_NoArrowButton = 1 << 5, // Display on the preview box without the square arrow button - ImGuiComboFlags_NoPreview = 1 << 6, // Display only a square arrow button - ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest -}; - -// Flags for ImGui::BeginTabBar() -enum ImGuiTabBarFlags_ -{ - ImGuiTabBarFlags_None = 0, - ImGuiTabBarFlags_Reorderable = 1 << 0, // Allow manually dragging tabs to re-order them + New tabs are appended at the end of list - ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, // Automatically select new tabs when they appear - ImGuiTabBarFlags_TabListPopupButton = 1 << 2, // Disable buttons to open the tab list popup - ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. - ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, // Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll) - ImGuiTabBarFlags_NoTooltip = 1 << 5, // Disable tooltips when hovering a tab - ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6, // Resize tabs when they don't fit - ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7, // Add scroll buttons when tabs don't fit - ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, - ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown -}; - -// Flags for ImGui::BeginTabItem() -enum ImGuiTabItemFlags_ -{ - ImGuiTabItemFlags_None = 0, - ImGuiTabItemFlags_UnsavedDocument = 1 << 0, // Append '*' to title without affecting the ID, as a convenience to avoid using the ### operator. Also: tab is selected on closure and closure is deferred by one frame to allow code to undo it without flicker. - ImGuiTabItemFlags_SetSelected = 1 << 1, // Trigger flag to programmatically make the tab selected when calling BeginTabItem() - ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. - ImGuiTabItemFlags_NoPushId = 1 << 3, // Don't call PushID(tab->ID)/PopID() on BeginTabItem()/EndTabItem() - ImGuiTabItemFlags_NoTooltip = 1 << 4, // Disable tooltip for the given tab - ImGuiTabItemFlags_NoReorder = 1 << 5, // Disable reordering this tab or having another tab cross over this tab - ImGuiTabItemFlags_Leading = 1 << 6, // Enforce the tab position to the left of the tab bar (after the tab list popup button) - ImGuiTabItemFlags_Trailing = 1 << 7 // Enforce the tab position to the right of the tab bar (before the scrolling buttons) -}; - -// Flags for ImGui::BeginTable() -// [BETA API] API may evolve slightly! If you use this, please update to the next version when it comes out! -// - Important! Sizing policies have complex and subtle side effects, more so than you would expect. -// Read comments/demos carefully + experiment with live demos to get acquainted with them. -// - The DEFAULT sizing policies are: -// - Default to ImGuiTableFlags_SizingFixedFit if ScrollX is on, or if host window has ImGuiWindowFlags_AlwaysAutoResize. -// - Default to ImGuiTableFlags_SizingStretchSame if ScrollX is off. -// - When ScrollX is off: -// - Table defaults to ImGuiTableFlags_SizingStretchSame -> all Columns defaults to ImGuiTableColumnFlags_WidthStretch with same weight. -// - Columns sizing policy allowed: Stretch (default), Fixed/Auto. -// - Fixed Columns will generally obtain their requested width (unless the table cannot fit them all). -// - Stretch Columns will share the remaining width. -// - Mixed Fixed/Stretch columns is possible but has various side-effects on resizing behaviors. -// The typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. -// (this is because the visible order of columns have subtle but necessary effects on how they react to manual resizing). -// - When ScrollX is on: -// - Table defaults to ImGuiTableFlags_SizingFixedFit -> all Columns defaults to ImGuiTableColumnFlags_WidthFixed -// - Columns sizing policy allowed: Fixed/Auto mostly. -// - Fixed Columns can be enlarged as needed. Table will show an horizontal scrollbar if needed. -// - When using auto-resizing (non-resizable) fixed columns, querying the content width to use item right-alignment e.g. SetNextItemWidth(-FLT_MIN) doesn't make sense, would create a feedback loop. -// - Using Stretch columns OFTEN DOES NOT MAKE SENSE if ScrollX is on, UNLESS you have specified a value for 'inner_width' in BeginTable(). -// If you specify a value for 'inner_width' then effectively the scrolling space is known and Stretch or mixed Fixed/Stretch columns become meaningful again. -// - Read on documentation at the top of imgui_tables.cpp for details. -enum ImGuiTableFlags_ -{ - // Features - ImGuiTableFlags_None = 0, - ImGuiTableFlags_Resizable = 1 << 0, // Enable resizing columns. - ImGuiTableFlags_Reorderable = 1 << 1, // Enable reordering columns in header row (need calling TableSetupColumn() + TableHeadersRow() to display headers) - ImGuiTableFlags_Hideable = 1 << 2, // Enable hiding/disabling columns in context menu. - ImGuiTableFlags_Sortable = 1 << 3, // Enable sorting. Call TableGetSortSpecs() to obtain sort specs. Also see ImGuiTableFlags_SortMulti and ImGuiTableFlags_SortTristate. - ImGuiTableFlags_NoSavedSettings = 1 << 4, // Disable persisting columns order, width and sort settings in the .ini file. - ImGuiTableFlags_ContextMenuInBody = 1 << 5, // Right-click on columns body/contents will display table context menu. By default it is available in TableHeadersRow(). - // Decorations - ImGuiTableFlags_RowBg = 1 << 6, // Set each RowBg color with ImGuiCol_TableRowBg or ImGuiCol_TableRowBgAlt (equivalent of calling TableSetBgColor with ImGuiTableBgFlags_RowBg0 on each row manually) - ImGuiTableFlags_BordersInnerH = 1 << 7, // Draw horizontal borders between rows. - ImGuiTableFlags_BordersOuterH = 1 << 8, // Draw horizontal borders at the top and bottom. - ImGuiTableFlags_BordersInnerV = 1 << 9, // Draw vertical borders between columns. - ImGuiTableFlags_BordersOuterV = 1 << 10, // Draw vertical borders on the left and right sides. - ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, // Draw horizontal borders. - ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, // Draw vertical borders. - ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, // Draw inner borders. - ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, // Draw outer borders. - ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, // Draw all borders. - ImGuiTableFlags_NoBordersInBody = 1 << 11, // [ALPHA] Disable vertical borders in columns Body (borders will always appears in Headers). -> May move to style - ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, // [ALPHA] Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers). -> May move to style - // Sizing Policy (read above for defaults) - ImGuiTableFlags_SizingFixedFit = 1 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching contents width. - ImGuiTableFlags_SizingFixedSame = 2 << 13, // Columns default to _WidthFixed or _WidthAuto (if resizable or not resizable), matching the maximum contents width of all columns. Implicitly enable ImGuiTableFlags_NoKeepColumnsVisible. - ImGuiTableFlags_SizingStretchProp = 3 << 13, // Columns default to _WidthStretch with default weights proportional to each columns contents widths. - ImGuiTableFlags_SizingStretchSame = 4 << 13, // Columns default to _WidthStretch with default weights all equal, unless overridden by TableSetupColumn(). - // Sizing Extra Options - ImGuiTableFlags_NoHostExtendX = 1 << 16, // Make outer width auto-fit to columns, overriding outer_size.x value. Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. - ImGuiTableFlags_NoHostExtendY = 1 << 17, // Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible. - ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, // Disable keeping column always minimally visible when ScrollX is off and table gets too small. Not recommended if columns are resizable. - ImGuiTableFlags_PreciseWidths = 1 << 19, // Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth. - // Clipping - ImGuiTableFlags_NoClip = 1 << 20, // Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with TableSetupScrollFreeze(). - // Padding - ImGuiTableFlags_PadOuterX = 1 << 21, // Default if BordersOuterV is on. Enable outer-most padding. Generally desirable if you have headers. - ImGuiTableFlags_NoPadOuterX = 1 << 22, // Default if BordersOuterV is off. Disable outer-most padding. - ImGuiTableFlags_NoPadInnerX = 1 << 23, // Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off). - // Scrolling - ImGuiTableFlags_ScrollX = 1 << 24, // Enable horizontal scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. Changes default sizing policy. Because this create a child window, ScrollY is currently generally recommended when using ScrollX. - ImGuiTableFlags_ScrollY = 1 << 25, // Enable vertical scrolling. Require 'outer_size' parameter of BeginTable() to specify the container size. - // Sorting - ImGuiTableFlags_SortMulti = 1 << 26, // Hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1). - ImGuiTableFlags_SortTristate = 1 << 27, // Allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0). - - // [Internal] Combinations and masks - ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame - - // Obsolete names (will be removed soon) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //, ImGuiTableFlags_ColumnsWidthFixed = ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_ColumnsWidthStretch = ImGuiTableFlags_SizingStretchSame // WIP Tables 2020/12 - //, ImGuiTableFlags_SizingPolicyFixed = ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_SizingPolicyStretch = ImGuiTableFlags_SizingStretchSame // WIP Tables 2021/01 -#endif -}; - -// Flags for ImGui::TableSetupColumn() -enum ImGuiTableColumnFlags_ -{ - // Input configuration flags - ImGuiTableColumnFlags_None = 0, - ImGuiTableColumnFlags_DefaultHide = 1 << 0, // Default as a hidden/disabled column. - ImGuiTableColumnFlags_DefaultSort = 1 << 1, // Default as a sorting column. - ImGuiTableColumnFlags_WidthStretch = 1 << 2, // Column will stretch. Preferable with horizontal scrolling disabled (default if table sizing policy is _SizingStretchSame or _SizingStretchProp). - ImGuiTableColumnFlags_WidthFixed = 1 << 3, // Column will not stretch. Preferable with horizontal scrolling enabled (default if table sizing policy is _SizingFixedFit and table is resizable). - ImGuiTableColumnFlags_NoResize = 1 << 4, // Disable manual resizing. - ImGuiTableColumnFlags_NoReorder = 1 << 5, // Disable manual reordering this column, this will also prevent other columns from crossing over this column. - ImGuiTableColumnFlags_NoHide = 1 << 6, // Disable ability to hide/disable this column. - ImGuiTableColumnFlags_NoClip = 1 << 7, // Disable clipping for this column (all NoClip columns will render in a same draw command). - ImGuiTableColumnFlags_NoSort = 1 << 8, // Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table). - ImGuiTableColumnFlags_NoSortAscending = 1 << 9, // Disable ability to sort in the ascending direction. - ImGuiTableColumnFlags_NoSortDescending = 1 << 10, // Disable ability to sort in the descending direction. - ImGuiTableColumnFlags_NoHeaderWidth = 1 << 11, // Disable header text width contribution to automatic column width. - ImGuiTableColumnFlags_PreferSortAscending = 1 << 12, // Make the initial sort direction Ascending when first sorting on this column (default). - ImGuiTableColumnFlags_PreferSortDescending = 1 << 13, // Make the initial sort direction Descending when first sorting on this column. - ImGuiTableColumnFlags_IndentEnable = 1 << 14, // Use current Indent value when entering cell (default for column 0). - ImGuiTableColumnFlags_IndentDisable = 1 << 15, // Ignore current Indent value when entering cell (default for columns > 0). Indentation changes _within_ the cell will still be honored. - - // Output status flags, read-only via TableGetColumnFlags() - ImGuiTableColumnFlags_IsEnabled = 1 << 20, // Status: is enabled == not hidden by user/api (referred to as "Hide" in _DefaultHide and _NoHide) flags. - ImGuiTableColumnFlags_IsVisible = 1 << 21, // Status: is visible == is enabled AND not clipped by scrolling. - ImGuiTableColumnFlags_IsSorted = 1 << 22, // Status: is currently part of the sort specs - ImGuiTableColumnFlags_IsHovered = 1 << 23, // Status: is hovered by mouse - - // [Internal] Combinations and masks - ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, - ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, - ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, - ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30 // [Internal] Disable user resizing this column directly (it may however we resized indirectly from its left edge) - - // Obsolete names (will be removed soon) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - //ImGuiTableColumnFlags_WidthAuto = ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoResize, // Column will not stretch and keep resizing based on submitted contents. -#endif -}; - -// Flags for ImGui::TableNextRow() -enum ImGuiTableRowFlags_ -{ - ImGuiTableRowFlags_None = 0, - ImGuiTableRowFlags_Headers = 1 << 0 // Identify header row (set default background color + width of its contents accounted different for auto column width) -}; - -// Enum for ImGui::TableSetBgColor() -// Background colors are rendering in 3 layers: -// - Layer 0: draw with RowBg0 color if set, otherwise draw with ColumnBg0 if set. -// - Layer 1: draw with RowBg1 color if set, otherwise draw with ColumnBg1 if set. -// - Layer 2: draw with CellBg color if set. -// The purpose of the two row/columns layers is to let you decide if a background color changes should override or blend with the existing color. -// When using ImGuiTableFlags_RowBg on the table, each row has the RowBg0 color automatically set for odd/even rows. -// If you set the color of RowBg0 target, your color will override the existing RowBg0 color. -// If you set the color of RowBg1 or ColumnBg1 target, your color will blend over the RowBg0 color. -enum ImGuiTableBgTarget_ -{ - ImGuiTableBgTarget_None = 0, - ImGuiTableBgTarget_RowBg0 = 1, // Set row background color 0 (generally used for background, automatically set when ImGuiTableFlags_RowBg is used) - ImGuiTableBgTarget_RowBg1 = 2, // Set row background color 1 (generally used for selection marking) - ImGuiTableBgTarget_CellBg = 3 // Set cell background color (top-most color) -}; - -// Flags for ImGui::IsWindowFocused() -enum ImGuiFocusedFlags_ -{ - ImGuiFocusedFlags_None = 0, - ImGuiFocusedFlags_ChildWindows = 1 << 0, // IsWindowFocused(): Return true if any children of the window is focused - ImGuiFocusedFlags_RootWindow = 1 << 1, // IsWindowFocused(): Test from root window (top most parent of the current hierarchy) - ImGuiFocusedFlags_AnyWindow = 1 << 2, // IsWindowFocused(): Return true if any window is focused. Important: If you are trying to tell how to dispatch your low-level inputs, do NOT use this. Use 'io.WantCaptureMouse' instead! Please read the FAQ! - ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows -}; - -// Flags for ImGui::IsItemHovered(), ImGui::IsWindowHovered() -// Note: if you are trying to check whether your mouse should be dispatched to Dear ImGui or to your app, you should use 'io.WantCaptureMouse' instead! Please read the FAQ! -// Note: windows with the ImGuiWindowFlags_NoInputs flag are ignored by IsWindowHovered() calls. -enum ImGuiHoveredFlags_ -{ - ImGuiHoveredFlags_None = 0, // Return true if directly over the item/window, not obstructed by another window, not obstructed by an active popup or modal blocking inputs under them. - ImGuiHoveredFlags_ChildWindows = 1 << 0, // IsWindowHovered() only: Return true if any children of the window is hovered - ImGuiHoveredFlags_RootWindow = 1 << 1, // IsWindowHovered() only: Test from root window (top most parent of the current hierarchy) - ImGuiHoveredFlags_AnyWindow = 1 << 2, // IsWindowHovered() only: Return true if any window is hovered - ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 3, // Return true even if a popup window is normally blocking access to this item/window - //ImGuiHoveredFlags_AllowWhenBlockedByModal = 1 << 4, // Return true even if a modal popup window is normally blocking access to this item/window. FIXME-TODO: Unavailable yet. - ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 5, // Return true even if an active item is blocking access to this item/window. Useful for Drag and Drop patterns. - ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 6, // Return true even if the position is obstructed or overlapped by another window - ImGuiHoveredFlags_AllowWhenDisabled = 1 << 7, // Return true even if the item is disabled - ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, - ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows -}; - -// Flags for ImGui::BeginDragDropSource(), ImGui::AcceptDragDropPayload() -enum ImGuiDragDropFlags_ -{ - ImGuiDragDropFlags_None = 0, - // BeginDragDropSource() flags - ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, // By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disable this behavior. - ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, // By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disable this behavior so you can still call IsItemHovered() on the source item. - ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, // Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item. - ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, // Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit. - ImGuiDragDropFlags_SourceExtern = 1 << 4, // External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously. - ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5, // Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged) - // AcceptDragDropPayload() flags - ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, // AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered. - ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, // Do not draw the default highlight rectangle when hovering over target. - ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, // Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site. - ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect // For peeking ahead and inspecting the payload before delivery. -}; - -// Standard Drag and Drop payload types. You can define you own payload types using short strings. Types starting with '_' are defined by Dear ImGui. -#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F" // float[3]: Standard type for colors, without alpha. User code may use this type. -#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F" // float[4]: Standard type for colors. User code may use this type. - -// A primary data type -enum ImGuiDataType_ -{ - ImGuiDataType_S8, // signed char / char (with sensible compilers) - ImGuiDataType_U8, // unsigned char - ImGuiDataType_S16, // short - ImGuiDataType_U16, // unsigned short - ImGuiDataType_S32, // int - ImGuiDataType_U32, // unsigned int - ImGuiDataType_S64, // long long / __int64 - ImGuiDataType_U64, // unsigned long long / unsigned __int64 - ImGuiDataType_Float, // float - ImGuiDataType_Double, // double - ImGuiDataType_COUNT -}; - -// A cardinal direction -enum ImGuiDir_ -{ - ImGuiDir_None = -1, - ImGuiDir_Left = 0, - ImGuiDir_Right = 1, - ImGuiDir_Up = 2, - ImGuiDir_Down = 3, - ImGuiDir_COUNT -}; - -// A sorting direction -enum ImGuiSortDirection_ -{ - ImGuiSortDirection_None = 0, - ImGuiSortDirection_Ascending = 1, // Ascending = 0->9, A->Z etc. - ImGuiSortDirection_Descending = 2 // Descending = 9->0, Z->A etc. -}; - -// User fill ImGuiIO.KeyMap[] array with indices into the ImGuiIO.KeysDown[512] array -enum ImGuiKey_ -{ - ImGuiKey_Tab, - ImGuiKey_LeftArrow, - ImGuiKey_RightArrow, - ImGuiKey_UpArrow, - ImGuiKey_DownArrow, - ImGuiKey_PageUp, - ImGuiKey_PageDown, - ImGuiKey_Home, - ImGuiKey_End, - ImGuiKey_Insert, - ImGuiKey_Delete, - ImGuiKey_Backspace, - ImGuiKey_Space, - ImGuiKey_Enter, - ImGuiKey_Escape, - ImGuiKey_KeyPadEnter, - ImGuiKey_A, // for text edit CTRL+A: select all - ImGuiKey_C, // for text edit CTRL+C: copy - ImGuiKey_V, // for text edit CTRL+V: paste - ImGuiKey_X, // for text edit CTRL+X: cut - ImGuiKey_Y, // for text edit CTRL+Y: redo - ImGuiKey_Z, // for text edit CTRL+Z: undo - ImGuiKey_COUNT -}; - -// To test io.KeyMods (which is a combination of individual fields io.KeyCtrl, io.KeyShift, io.KeyAlt set by user/backend) -enum ImGuiKeyModFlags_ -{ - ImGuiKeyModFlags_None = 0, - ImGuiKeyModFlags_Ctrl = 1 << 0, - ImGuiKeyModFlags_Shift = 1 << 1, - ImGuiKeyModFlags_Alt = 1 << 2, - ImGuiKeyModFlags_Super = 1 << 3 -}; - -// Gamepad/Keyboard navigation -// Keyboard: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard to enable. NewFrame() will automatically fill io.NavInputs[] based on your io.KeysDown[] + io.KeyMap[] arrays. -// Gamepad: Set io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad to enable. Backend: set ImGuiBackendFlags_HasGamepad and fill the io.NavInputs[] fields before calling NewFrame(). Note that io.NavInputs[] is cleared by EndFrame(). -// Read instructions in imgui.cpp for more details. Download PNG/PSD at http://dearimgui.org/controls_sheets. -enum ImGuiNavInput_ -{ - // Gamepad Mapping - ImGuiNavInput_Activate, // activate / open / toggle / tweak value // e.g. Cross (PS4), A (Xbox), A (Switch), Space (Keyboard) - ImGuiNavInput_Cancel, // cancel / close / exit // e.g. Circle (PS4), B (Xbox), B (Switch), Escape (Keyboard) - ImGuiNavInput_Input, // text input / on-screen keyboard // e.g. Triang.(PS4), Y (Xbox), X (Switch), Return (Keyboard) - ImGuiNavInput_Menu, // tap: toggle menu / hold: focus, move, resize // e.g. Square (PS4), X (Xbox), Y (Switch), Alt (Keyboard) - ImGuiNavInput_DpadLeft, // move / tweak / resize window (w/ PadMenu) // e.g. D-pad Left/Right/Up/Down (Gamepads), Arrow keys (Keyboard) - ImGuiNavInput_DpadRight, // - ImGuiNavInput_DpadUp, // - ImGuiNavInput_DpadDown, // - ImGuiNavInput_LStickLeft, // scroll / move window (w/ PadMenu) // e.g. Left Analog Stick Left/Right/Up/Down - ImGuiNavInput_LStickRight, // - ImGuiNavInput_LStickUp, // - ImGuiNavInput_LStickDown, // - ImGuiNavInput_FocusPrev, // next window (w/ PadMenu) // e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch) - ImGuiNavInput_FocusNext, // prev window (w/ PadMenu) // e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch) - ImGuiNavInput_TweakSlow, // slower tweaks // e.g. L1 or L2 (PS4), LB or LT (Xbox), L or ZL (Switch) - ImGuiNavInput_TweakFast, // faster tweaks // e.g. R1 or R2 (PS4), RB or RT (Xbox), R or ZL (Switch) - - // [Internal] Don't use directly! This is used internally to differentiate keyboard from gamepad inputs for behaviors that require to differentiate them. - // Keyboard behavior that have no corresponding gamepad mapping (e.g. CTRL+TAB) will be directly reading from io.KeysDown[] instead of io.NavInputs[]. - ImGuiNavInput_KeyMenu_, // toggle menu // = io.KeyAlt - ImGuiNavInput_KeyLeft_, // move left // = Arrow keys - ImGuiNavInput_KeyRight_, // move right - ImGuiNavInput_KeyUp_, // move up - ImGuiNavInput_KeyDown_, // move down - ImGuiNavInput_COUNT, - ImGuiNavInput_InternalStart_ = ImGuiNavInput_KeyMenu_ -}; - -// Configuration flags stored in io.ConfigFlags. Set by user/application. -enum ImGuiConfigFlags_ -{ - ImGuiConfigFlags_None = 0, - ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, // Master keyboard navigation enable flag. NewFrame() will automatically fill io.NavInputs[] based on io.KeysDown[]. - ImGuiConfigFlags_NavEnableGamepad = 1 << 1, // Master gamepad navigation enable flag. This is mostly to instruct your imgui backend to fill io.NavInputs[]. Backend also needs to set ImGuiBackendFlags_HasGamepad. - ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth. - ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. - ImGuiConfigFlags_NoMouse = 1 << 4, // Instruct imgui to clear mouse position/buttons in NewFrame(). This allows ignoring the mouse information set by the backend. - ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, // Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead. - - // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are not used by core Dear ImGui) - ImGuiConfigFlags_IsSRGB = 1 << 20, // Application is SRGB-aware. - ImGuiConfigFlags_IsTouchScreen = 1 << 21 // Application is using a touch screen instead of a mouse. -}; - -// Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. -enum ImGuiBackendFlags_ -{ - ImGuiBackendFlags_None = 0, - ImGuiBackendFlags_HasGamepad = 1 << 0, // Backend Platform supports gamepad and currently has one connected. - ImGuiBackendFlags_HasMouseCursors = 1 << 1, // Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape. - ImGuiBackendFlags_HasSetMousePos = 1 << 2, // Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set). - ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3 // Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. -}; - -// Enumeration for PushStyleColor() / PopStyleColor() -enum ImGuiCol_ -{ - ImGuiCol_Text, - ImGuiCol_TextDisabled, - ImGuiCol_WindowBg, // Background of normal windows - ImGuiCol_ChildBg, // Background of child windows - ImGuiCol_PopupBg, // Background of popups, menus, tooltips windows - ImGuiCol_Border, - ImGuiCol_BorderShadow, - ImGuiCol_FrameBg, // Background of checkbox, radio button, plot, slider, text input - ImGuiCol_FrameBgHovered, - ImGuiCol_FrameBgActive, - ImGuiCol_TitleBg, - ImGuiCol_TitleBgActive, - ImGuiCol_TitleBgCollapsed, - ImGuiCol_MenuBarBg, - ImGuiCol_ScrollbarBg, - ImGuiCol_ScrollbarGrab, - ImGuiCol_ScrollbarGrabHovered, - ImGuiCol_ScrollbarGrabActive, - ImGuiCol_CheckMark, - ImGuiCol_SliderGrab, - ImGuiCol_SliderGrabActive, - ImGuiCol_Button, - ImGuiCol_ButtonHovered, - ImGuiCol_ButtonActive, - ImGuiCol_Header, // Header* colors are used for CollapsingHeader, TreeNode, Selectable, MenuItem - ImGuiCol_HeaderHovered, - ImGuiCol_HeaderActive, - ImGuiCol_Separator, - ImGuiCol_SeparatorHovered, - ImGuiCol_SeparatorActive, - ImGuiCol_ResizeGrip, - ImGuiCol_ResizeGripHovered, - ImGuiCol_ResizeGripActive, - ImGuiCol_Tab, - ImGuiCol_TabHovered, - ImGuiCol_TabActive, - ImGuiCol_TabUnfocused, - ImGuiCol_TabUnfocusedActive, - ImGuiCol_PlotLines, - ImGuiCol_PlotLinesHovered, - ImGuiCol_PlotHistogram, - ImGuiCol_PlotHistogramHovered, - ImGuiCol_TableHeaderBg, // Table header background - ImGuiCol_TableBorderStrong, // Table outer and header borders (prefer using Alpha=1.0 here) - ImGuiCol_TableBorderLight, // Table inner borders (prefer using Alpha=1.0 here) - ImGuiCol_TableRowBg, // Table row background (even rows) - ImGuiCol_TableRowBgAlt, // Table row background (odd rows) - ImGuiCol_TextSelectedBg, - ImGuiCol_DragDropTarget, - ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item - ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB - ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active - ImGuiCol_ModalWindowDimBg, // Darken/colorize entire screen behind a modal window, when one is active - ImGuiCol_COUNT -}; - -// Enumeration for PushStyleVar() / PopStyleVar() to temporarily modify the ImGuiStyle structure. -// - The enum only refers to fields of ImGuiStyle which makes sense to be pushed/popped inside UI code. -// During initialization or between frames, feel free to just poke into ImGuiStyle directly. -// - Tip: Use your programming IDE navigation facilities on the names in the _second column_ below to find the actual members and their description. -// In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. -// With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. -// - When changing this enum, you need to update the associated internal table GStyleVarInfo[] accordingly. This is where we link enum values to members offset/type. -enum ImGuiStyleVar_ -{ - // Enum name --------------------- // Member in ImGuiStyle structure (see ImGuiStyle for descriptions) - ImGuiStyleVar_Alpha, // float Alpha - ImGuiStyleVar_WindowPadding, // ImVec2 WindowPadding - ImGuiStyleVar_WindowRounding, // float WindowRounding - ImGuiStyleVar_WindowBorderSize, // float WindowBorderSize - ImGuiStyleVar_WindowMinSize, // ImVec2 WindowMinSize - ImGuiStyleVar_WindowTitleAlign, // ImVec2 WindowTitleAlign - ImGuiStyleVar_ChildRounding, // float ChildRounding - ImGuiStyleVar_ChildBorderSize, // float ChildBorderSize - ImGuiStyleVar_PopupRounding, // float PopupRounding - ImGuiStyleVar_PopupBorderSize, // float PopupBorderSize - ImGuiStyleVar_FramePadding, // ImVec2 FramePadding - ImGuiStyleVar_FrameRounding, // float FrameRounding - ImGuiStyleVar_FrameBorderSize, // float FrameBorderSize - ImGuiStyleVar_ItemSpacing, // ImVec2 ItemSpacing - ImGuiStyleVar_ItemInnerSpacing, // ImVec2 ItemInnerSpacing - ImGuiStyleVar_IndentSpacing, // float IndentSpacing - ImGuiStyleVar_CellPadding, // ImVec2 CellPadding - ImGuiStyleVar_ScrollbarSize, // float ScrollbarSize - ImGuiStyleVar_ScrollbarRounding, // float ScrollbarRounding - ImGuiStyleVar_GrabMinSize, // float GrabMinSize - ImGuiStyleVar_GrabRounding, // float GrabRounding - ImGuiStyleVar_TabRounding, // float TabRounding - ImGuiStyleVar_ButtonTextAlign, // ImVec2 ButtonTextAlign - ImGuiStyleVar_SelectableTextAlign, // ImVec2 SelectableTextAlign - ImGuiStyleVar_COUNT -}; - -// Flags for InvisibleButton() [extended in imgui_internal.h] -enum ImGuiButtonFlags_ -{ - ImGuiButtonFlags_None = 0, - ImGuiButtonFlags_MouseButtonLeft = 1 << 0, // React on left mouse button (default) - ImGuiButtonFlags_MouseButtonRight = 1 << 1, // React on right mouse button - ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, // React on center mouse button - - // [Internal] - ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, - ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft -}; - -// Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() -enum ImGuiColorEditFlags_ -{ - ImGuiColorEditFlags_None = 0, - ImGuiColorEditFlags_NoAlpha = 1 << 1, // // ColorEdit, ColorPicker, ColorButton: ignore Alpha component (will only read 3 components from the input pointer). - ImGuiColorEditFlags_NoPicker = 1 << 2, // // ColorEdit: disable picker when clicking on color square. - ImGuiColorEditFlags_NoOptions = 1 << 3, // // ColorEdit: disable toggling options menu when right-clicking on inputs/small preview. - ImGuiColorEditFlags_NoSmallPreview = 1 << 4, // // ColorEdit, ColorPicker: disable color square preview next to the inputs. (e.g. to show only the inputs) - ImGuiColorEditFlags_NoInputs = 1 << 5, // // ColorEdit, ColorPicker: disable inputs sliders/text widgets (e.g. to show only the small preview color square). - ImGuiColorEditFlags_NoTooltip = 1 << 6, // // ColorEdit, ColorPicker, ColorButton: disable tooltip when hovering the preview. - ImGuiColorEditFlags_NoLabel = 1 << 7, // // ColorEdit, ColorPicker: disable display of inline text label (the label is still forwarded to the tooltip and picker). - ImGuiColorEditFlags_NoSidePreview = 1 << 8, // // ColorPicker: disable bigger color preview on right side of the picker, use small color square preview instead. - ImGuiColorEditFlags_NoDragDrop = 1 << 9, // // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source. - ImGuiColorEditFlags_NoBorder = 1 << 10, // // ColorButton: disable border (which is enforced by default) - - // User Options (right-click on widget to change some of them). - ImGuiColorEditFlags_AlphaBar = 1 << 16, // // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker. - ImGuiColorEditFlags_AlphaPreview = 1 << 17, // // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque. - ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18, // // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque. - ImGuiColorEditFlags_HDR = 1 << 19, // // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well). - ImGuiColorEditFlags_DisplayRGB = 1 << 20, // [Display] // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex. - ImGuiColorEditFlags_DisplayHSV = 1 << 21, // [Display] // " - ImGuiColorEditFlags_DisplayHex = 1 << 22, // [Display] // " - ImGuiColorEditFlags_Uint8 = 1 << 23, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0..255. - ImGuiColorEditFlags_Float = 1 << 24, // [DataType] // ColorEdit, ColorPicker, ColorButton: _display_ values formatted as 0.0f..1.0f floats instead of 0..255 integers. No round-trip of value via integers. - ImGuiColorEditFlags_PickerHueBar = 1 << 25, // [Picker] // ColorPicker: bar for Hue, rectangle for Sat/Value. - ImGuiColorEditFlags_PickerHueWheel = 1 << 26, // [Picker] // ColorPicker: wheel for Hue, triangle for Sat/Value. - ImGuiColorEditFlags_InputRGB = 1 << 27, // [Input] // ColorEdit, ColorPicker: input and output data in RGB format. - ImGuiColorEditFlags_InputHSV = 1 << 28, // [Input] // ColorEdit, ColorPicker: input and output data in HSV format. - - // Defaults Options. You can set application defaults using SetColorEditOptions(). The intent is that you probably don't want to - // override them in most of your calls. Let the user choose via the option menu and/or call SetColorEditOptions() once during startup. - ImGuiColorEditFlags__OptionsDefault = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, - - // [Internal] Masks - ImGuiColorEditFlags__DisplayMask = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, - ImGuiColorEditFlags__DataTypeMask = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, - ImGuiColorEditFlags__PickerMask = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, - ImGuiColorEditFlags__InputMask = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV - - // Obsolete names (will be removed) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] -#endif -}; - -// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. -// We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. -enum ImGuiSliderFlags_ -{ - ImGuiSliderFlags_None = 0, - ImGuiSliderFlags_AlwaysClamp = 1 << 4, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. - ImGuiSliderFlags_Logarithmic = 1 << 5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. - ImGuiSliderFlags_NoRoundToFormat = 1 << 6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits) - ImGuiSliderFlags_NoInput = 1 << 7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget - ImGuiSliderFlags_InvalidMask_ = 0x7000000F // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. - - // Obsolete names (will be removed) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp // [renamed in 1.79] -#endif -}; - -// Identify a mouse button. -// Those values are guaranteed to be stable and we frequently use 0/1 directly. Named enums provided for convenience. -enum ImGuiMouseButton_ -{ - ImGuiMouseButton_Left = 0, - ImGuiMouseButton_Right = 1, - ImGuiMouseButton_Middle = 2, - ImGuiMouseButton_COUNT = 5 -}; - -// Enumeration for GetMouseCursor() -// User code may request backend to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here -enum ImGuiMouseCursor_ -{ - ImGuiMouseCursor_None = -1, - ImGuiMouseCursor_Arrow = 0, - ImGuiMouseCursor_TextInput, // When hovering over InputText, etc. - ImGuiMouseCursor_ResizeAll, // (Unused by Dear ImGui functions) - ImGuiMouseCursor_ResizeNS, // When hovering over an horizontal border - ImGuiMouseCursor_ResizeEW, // When hovering over a vertical border or a column - ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window - ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window - ImGuiMouseCursor_Hand, // (Unused by Dear ImGui functions. Use for e.g. hyperlinks) - ImGuiMouseCursor_NotAllowed, // When hovering something with disallowed interaction. Usually a crossed circle. - ImGuiMouseCursor_COUNT -}; - -// Enumeration for ImGui::SetWindow***(), SetNextWindow***(), SetNextItem***() functions -// Represent a condition. -// Important: Treat as a regular enum! Do NOT combine multiple values using binary operators! All the functions above treat 0 as a shortcut to ImGuiCond_Always. -enum ImGuiCond_ -{ - ImGuiCond_None = 0, // No condition (always set the variable), same as _Always - ImGuiCond_Always = 1 << 0, // No condition (always set the variable) - ImGuiCond_Once = 1 << 1, // Set the variable once per runtime session (only the first call will succeed) - ImGuiCond_FirstUseEver = 1 << 2, // Set the variable if the object/window has no persistently saved data (no entry in .ini file) - ImGuiCond_Appearing = 1 << 3 // Set the variable if the object/window is appearing after being hidden/inactive (or the first time) -}; - -//----------------------------------------------------------------------------- -// [SECTION] Helpers: Memory allocations macros, ImVector<> -//----------------------------------------------------------------------------- - -//----------------------------------------------------------------------------- -// IM_MALLOC(), IM_FREE(), IM_NEW(), IM_PLACEMENT_NEW(), IM_DELETE() -// We call C++ constructor on own allocated memory via the placement "new(ptr) Type()" syntax. -// Defining a custom placement new() with a custom parameter allows us to bypass including which on some platforms complains when user has disabled exceptions. -//----------------------------------------------------------------------------- - -struct ImNewWrapper {}; -inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; } -inline void operator delete(void*, ImNewWrapper, void*) {} // This is only required so we can use the symmetrical new() -#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE) -#define IM_FREE(_PTR) ImGui::MemFree(_PTR) -#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) -#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE -template void IM_DELETE(T* p) { if (p) { p->~T(); ImGui::MemFree(p); } } - -//----------------------------------------------------------------------------- -// ImVector<> -// Lightweight std::vector<>-like class to avoid dragging dependencies (also, some implementations of STL with debug enabled are absurdly slow, we bypass it so our code runs fast in debug). -//----------------------------------------------------------------------------- -// - You generally do NOT need to care or use this ever. But we need to make it available in imgui.h because some of our public structures are relying on it. -// - We use std-like naming convention here, which is a little unusual for this codebase. -// - Important: clear() frees memory, resize(0) keep the allocated buffer. We use resize(0) a lot to intentionally recycle allocated buffers across frames and amortize our costs. -// - Important: our implementation does NOT call C++ constructors/destructors, we treat everything as raw data! This is intentional but be extra mindful of that, -// Do NOT use this class as a std::vector replacement in your own code! Many of the structures used by dear imgui can be safely initialized by a zero-memset. -//----------------------------------------------------------------------------- - -template -struct ImVector -{ - int Size; - int Capacity; - T* Data; - - // Provide standard typedefs but we don't use them ourselves. - typedef T value_type; - typedef value_type* iterator; - typedef const value_type* const_iterator; - - // Constructors, destructor - inline ImVector() { Size = Capacity = 0; Data = NULL; } - inline ImVector(const ImVector& src) { Size = Capacity = 0; Data = NULL; operator=(src); } - inline ImVector& operator=(const ImVector& src) { clear(); resize(src.Size); memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } - inline ~ImVector() { if (Data) IM_FREE(Data); } - - inline bool empty() const { return Size == 0; } - inline int size() const { return Size; } - inline int size_in_bytes() const { return Size * (int)sizeof(T); } - inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); } - inline int capacity() const { return Capacity; } - inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } - inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } - - inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } - inline T* begin() { return Data; } - inline const T* begin() const { return Data; } - inline T* end() { return Data + Size; } - inline const T* end() const { return Data + Size; } - inline T& front() { IM_ASSERT(Size > 0); return Data[0]; } - inline const T& front() const { IM_ASSERT(Size > 0); return Data[0]; } - inline T& back() { IM_ASSERT(Size > 0); return Data[Size - 1]; } - inline const T& back() const { IM_ASSERT(Size > 0); return Data[Size - 1]; } - inline void swap(ImVector& rhs) { int rhs_size = rhs.Size; rhs.Size = Size; Size = rhs_size; int rhs_cap = rhs.Capacity; rhs.Capacity = Capacity; Capacity = rhs_cap; T* rhs_data = rhs.Data; rhs.Data = Data; Data = rhs_data; } - - inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8; return new_capacity > sz ? new_capacity : sz; } - inline void resize(int new_size) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; } - inline void resize(int new_size, const T& v) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; } - inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } // Resize a vector to a smaller size, guaranteed not to cause a reallocation - inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)IM_ALLOC((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; } - - // NB: It is illegal to call push_back/push_front/insert with a reference pointing inside the ImVector data itself! e.g. v.push_back(v[10]) is forbidden. - inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } - inline void pop_back() { IM_ASSERT(Size > 0); Size--; } - inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } - inline T* erase(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((size_t)Size - (size_t)off - 1) * sizeof(T)); Size--; return Data + off; } - inline T* erase(const T* it, const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last > it && it_last <= Data + Size); const ptrdiff_t count = it_last - it; const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((size_t)Size - (size_t)off - count) * sizeof(T)); Size -= (int)count; return Data + off; } - inline T* erase_unsorted(const T* it) { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1, sizeof(T)); Size--; return Data + off; } - inline T* insert(const T* it, const T& v) { IM_ASSERT(it >= Data && it <= Data + Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(T)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; } - inline bool contains(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data++ == v) return true; return false; } - inline T* find(const T& v) { T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } - inline const T* find(const T& v) const { const T* data = Data; const T* data_end = Data + Size; while (data < data_end) if (*data == v) break; else ++data; return data; } - inline bool find_erase(const T& v) { const T* it = find(v); if (it < Data + Size) { erase(it); return true; } return false; } - inline bool find_erase_unsorted(const T& v) { const T* it = find(v); if (it < Data + Size) { erase_unsorted(it); return true; } return false; } - inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < Data + Size); const ptrdiff_t off = it - Data; return (int)off; } -}; - -//----------------------------------------------------------------------------- -// [SECTION] ImGuiStyle -//----------------------------------------------------------------------------- -// You may modify the ImGui::GetStyle() main instance during initialization and before NewFrame(). -// During the frame, use ImGui::PushStyleVar(ImGuiStyleVar_XXXX)/PopStyleVar() to alter the main style values, -// and ImGui::PushStyleColor(ImGuiCol_XXX)/PopStyleColor() for colors. -//----------------------------------------------------------------------------- - -struct ImGuiStyle -{ - float Alpha; // Global alpha applies to everything in Dear ImGui. - ImVec2 WindowPadding; // Padding within a window. - float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. - float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constraint individual windows, use SetNextWindowSizeConstraints(). - ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. - ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. - float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. - float ChildBorderSize; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - float PopupRounding; // Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) - float PopupBorderSize; // Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). - float FrameRounding; // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). - float FrameBorderSize; // Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines. - ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). - ImVec2 CellPadding; // Padding within a table cell - ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! - float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). - float ColumnsMinSpacing; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). - float ScrollbarSize; // Width of the vertical scrollbar, Height of the horizontal scrollbar. - float ScrollbarRounding; // Radius of grab corners for scrollbar. - float GrabMinSize; // Minimum width/height of a grab box for slider/scrollbar. - float GrabRounding; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. - float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. - float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. - float TabBorderSize; // Thickness of border around tabs. - float TabMinWidthForCloseButton; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. - ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. - ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). - ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. - ImVec2 DisplayWindowPadding; // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows. - ImVec2 DisplaySafeAreaPadding; // If you cannot see the edges of your screen (e.g. on a TV) increase the safe area padding. Apply to popups/tooltips as well regular windows. NB: Prefer configuring your TV sets correctly! - float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later. - bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). - bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering. Latched at the beginning of the frame (copied to ImDrawList). - bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). - float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. - float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. - ImVec4 Colors[ImGuiCol_COUNT]; - - IMGUI_API ImGuiStyle(); - IMGUI_API void ScaleAllSizes(float scale_factor); -}; - -//----------------------------------------------------------------------------- -// [SECTION] ImGuiIO -//----------------------------------------------------------------------------- -// Communicate most settings and inputs/outputs to Dear ImGui using this structure. -// Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. -//----------------------------------------------------------------------------- - -struct ImGuiIO -{ - //------------------------------------------------------------------ - // Configuration (fill once) // Default value - //------------------------------------------------------------------ - - ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. - ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. - ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size) - float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. - float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. - const char* IniFilename; // = "imgui.ini" // Path to .ini file. Set NULL to disable automatic .ini loading/saving, if e.g. you want to manually load/save from memory. - const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). - float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. - float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. - float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. - int KeyMap[ImGuiKey_COUNT]; // // Map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. - float KeyRepeatDelay; // = 0.250f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). - float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. - void* UserData; // = NULL // Store your own data for retrieval by callbacks. - - ImFontAtlas*Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. - float FontGlobalScale; // = 1.0f // Global scale all fonts - bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel. - ImFont* FontDefault; // = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0]. - ImVec2 DisplayFramebufferScale; // = (1, 1) // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale. - - // Miscellaneous options - bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. - bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // OS X style: Text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. - bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). - bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. - bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) - bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. - float ConfigMemoryCompactTimer; // = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set to -1.0f to disable. - - //------------------------------------------------------------------ - // Platform Functions - // (the imgui_impl_xxxx backend files are setting those up for you) - //------------------------------------------------------------------ - - // Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff. - const char* BackendPlatformName; // = NULL - const char* BackendRendererName; // = NULL - void* BackendPlatformUserData; // = NULL // User data for platform backend - void* BackendRendererUserData; // = NULL // User data for renderer backend - void* BackendLanguageUserData; // = NULL // User data for non C++ programming language backend - - // Optional: Access OS clipboard - // (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures) - const char* (*GetClipboardTextFn)(void* user_data); - void (*SetClipboardTextFn)(void* user_data, const char* text); - void* ClipboardUserData; - - // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) - // (default to use native imm32 api on Windows) - void (*ImeSetInputScreenPosFn)(int x, int y); - void* ImeWindowHandle; // = NULL // (Windows) Set this to your HWND to get automatic IME cursor positioning. - - //------------------------------------------------------------------ - // Input - Fill before calling NewFrame() - //------------------------------------------------------------------ - - ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) - bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Others buttons allows us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. - float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. - float MouseWheelH; // Mouse wheel Horizontal. Most users don't have a mouse with an horizontal wheel, may not be filled by all backends. - bool KeyCtrl; // Keyboard modifier pressed: Control - bool KeyShift; // Keyboard modifier pressed: Shift - bool KeyAlt; // Keyboard modifier pressed: Alt - bool KeySuper; // Keyboard modifier pressed: Cmd/Super/Windows - bool KeysDown[512]; // Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). - float NavInputs[ImGuiNavInput_COUNT]; // Gamepad inputs. Cleared back to zero by EndFrame(). Keyboard keys will be auto-mapped and be written here by NewFrame(). - - // Functions - IMGUI_API void AddInputCharacter(unsigned int c); // Queue new character input - IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); // Queue new character input from an UTF-16 character, it can be a surrogate - IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue new characters input from an UTF-8 string - IMGUI_API void ClearInputCharacters(); // Clear the text input buffer manually - - //------------------------------------------------------------------ - // Output - Updated by NewFrame() or EndFrame()/Render() - // (when reading from the io.WantCaptureMouse, io.WantCaptureKeyboard flags to dispatch your inputs, it is - // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) - //------------------------------------------------------------------ - - bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). - bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). - bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). - bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. - bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! - bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. - bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). - float Framerate; // Application framerate estimate, in frame per second. Solely for convenience. Rolling average estimation based on io.DeltaTime over 120 frames. - int MetricsRenderVertices; // Vertices output during last call to Render() - int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 - int MetricsRenderWindows; // Number of visible windows - int MetricsActiveWindows; // Number of active windows - int MetricsActiveAllocations; // Number of active allocations, updated by MemAlloc/MemFree based on current context. May be off if you have multiple imgui contexts. - ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. - - //------------------------------------------------------------------ - // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! - //------------------------------------------------------------------ - - ImGuiKeyModFlags KeyMods; // Key mods flags (same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags), updated by NewFrame() - ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) - ImVec2 MouseClickedPos[5]; // Position at time of clicking - double MouseClickedTime[5]; // Time of last click (used to figure out double-click) - bool MouseClicked[5]; // Mouse button went from !Down to Down - bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? - bool MouseReleased[5]; // Mouse button went from Down to !Down - bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window. We don't request mouse capture from the application if click started outside ImGui bounds. - bool MouseDownWasDoubleClick[5]; // Track if button down was a double-click - float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) - float MouseDownDurationPrev[5]; // Previous time the mouse button has been down - ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point - float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point - float KeysDownDuration[512]; // Duration the keyboard key has been down (0.0f == just pressed) - float KeysDownDurationPrev[512]; // Previous duration the key has been down - float NavInputsDownDuration[ImGuiNavInput_COUNT]; - float NavInputsDownDurationPrev[ImGuiNavInput_COUNT]; - float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. - ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16 - ImVector InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. - - IMGUI_API ImGuiIO(); -}; - -//----------------------------------------------------------------------------- -// [SECTION] Misc data structures -//----------------------------------------------------------------------------- - -// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used. -// The callback function should return 0 by default. -// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details) -// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) -// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration -// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB -// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows -// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. -// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. -struct ImGuiInputTextCallbackData -{ - ImGuiInputTextFlags EventFlag; // One ImGuiInputTextFlags_Callback* // Read-only - ImGuiInputTextFlags Flags; // What user passed to InputText() // Read-only - void* UserData; // What user passed to InputText() // Read-only - - // Arguments for the different callback events - // - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary. - // - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state. - ImWchar EventChar; // Character input // Read-write // [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0; - ImGuiKey EventKey; // Key pressed (Up/Down/TAB) // Read-only // [Completion,History] - char* Buf; // Text buffer // Read-write // [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer! - int BufTextLen; // Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length() - int BufSize; // Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1 - bool BufDirty; // Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always] - int CursorPos; // // Read-write // [Completion,History,Always] - int SelectionStart; // // Read-write // [Completion,History,Always] == to SelectionEnd when no selection) - int SelectionEnd; // // Read-write // [Completion,History,Always] - - // Helper functions for text manipulation. - // Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection. - IMGUI_API ImGuiInputTextCallbackData(); - IMGUI_API void DeleteChars(int pos, int bytes_count); - IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL); - void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; } - void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } - bool HasSelection() const { return SelectionStart != SelectionEnd; } -}; - -// Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). -// NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. -struct ImGuiSizeCallbackData -{ - void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints() - ImVec2 Pos; // Read-only. Window position, for reference. - ImVec2 CurrentSize; // Read-only. Current window size. - ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. -}; - -// Data payload for Drag and Drop operations: AcceptDragDropPayload(), GetDragDropPayload() -struct ImGuiPayload -{ - // Members - void* Data; // Data (copied and owned by dear imgui) - int DataSize; // Data size - - // [Internal] - ImGuiID SourceId; // Source item id - ImGuiID SourceParentId; // Source parent id (if available) - int DataFrameCount; // Data timestamp - char DataType[32 + 1]; // Data type tag (short user-supplied string, 32 characters max) - bool Preview; // Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle overlapping drag targets) - bool Delivery; // Set when AcceptDragDropPayload() was called and mouse button is released over the target item. - - ImGuiPayload() { Clear(); } - void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0, sizeof(DataType)); DataFrameCount = -1; Preview = Delivery = false; } - bool IsDataType(const char* type) const { return DataFrameCount != -1 && strcmp(type, DataType) == 0; } - bool IsPreview() const { return Preview; } - bool IsDelivery() const { return Delivery; } -}; - -// Sorting specification for one column of a table (sizeof == 12 bytes) -struct ImGuiTableColumnSortSpecs -{ - ImGuiID ColumnUserID; // User id of the column (if specified by a TableSetupColumn() call) - ImS16 ColumnIndex; // Index of the column - ImS16 SortOrder; // Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here) - ImGuiSortDirection SortDirection : 8; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending (you can use this or SortSign, whichever is more convenient for your sort function) - - ImGuiTableColumnSortSpecs() { memset(this, 0, sizeof(*this)); } -}; - -// Sorting specifications for a table (often handling sort specs for a single column, occasionally more) -// Obtained by calling TableGetSortSpecs(). -// When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time. -// Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame! -struct ImGuiTableSortSpecs -{ - const ImGuiTableColumnSortSpecs* Specs; // Pointer to sort spec array. - int SpecsCount; // Sort spec count. Most often 1. May be > 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when ImGuiTableFlags_SortTristate is enabled. - bool SpecsDirty; // Set to true when specs have changed since last time! Use this to sort again, then clear the flag. - - ImGuiTableSortSpecs() { memset(this, 0, sizeof(*this)); } -}; - -//----------------------------------------------------------------------------- -// [SECTION] Obsolete functions -// (Will be removed! Read 'API BREAKING CHANGES' section in imgui.cpp for details) -// Please keep your copy of dear imgui up to date! Occasionally set '#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS' in imconfig.h to stay ahead. -//----------------------------------------------------------------------------- - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS -namespace ImGui -{ - // OBSOLETED in 1.81 (from February 2021) - IMGUI_API bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1); // Helper to calculate size from items_count and height_in_items - static inline bool ListBoxHeader(const char* label, const ImVec2& size = ImVec2(0, 0)) { return BeginListBox(label, size); } - static inline void ListBoxFooter() { EndListBox(); } - // OBSOLETED in 1.79 (from August 2020) - static inline void OpenPopupContextItem(const char* str_id = NULL, ImGuiMouseButton mb = 1) { OpenPopupOnItemClick(str_id, mb); } // Bool return value removed. Use IsWindowAppearing() in BeginPopup() instead. Renamed in 1.77, renamed back in 1.79. Sorry! - // OBSOLETED in 1.78 (from June 2020) - // Old drag/sliders functions that took a 'float power = 1.0' argument instead of flags. - // For shared code, you can version check at compile-time with `#if IMGUI_VERSION_NUM >= 17704`. - IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power); - IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, float power); - static inline bool DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, power); } - static inline bool DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power) { return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, power); } - IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power); - IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_min, const void* p_max, const char* format, float power); - static inline bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power) { return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, power); } - static inline bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, power); } - static inline bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, power); } - static inline bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power) { return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, power); } - // OBSOLETED in 1.77 (from June 2020) - static inline bool BeginPopupContextWindow(const char* str_id, ImGuiMouseButton mb, bool over_items) { return BeginPopupContextWindow(str_id, mb | (over_items ? 0 : ImGuiPopupFlags_NoOpenOverItems)); } - // OBSOLETED in 1.72 (from April 2019) - static inline void TreeAdvanceToLabelPos() { SetCursorPosX(GetCursorPosX() + GetTreeNodeToLabelSpacing()); } - // OBSOLETED in 1.71 (from June 2019) - static inline void SetNextTreeNodeOpen(bool open, ImGuiCond cond = 0) { SetNextItemOpen(open, cond); } - // OBSOLETED in 1.70 (from May 2019) - static inline float GetContentRegionAvailWidth() { return GetContentRegionAvail().x; } - // OBSOLETED in 1.69 (from Mar 2019) - static inline ImDrawList* GetOverlayDrawList() { return GetForegroundDrawList(); } - // OBSOLETED in 1.66 (from Sep 2018) - static inline void SetScrollHere(float center_ratio=0.5f){ SetScrollHereY(center_ratio); } -} -#endif - -//----------------------------------------------------------------------------- -// [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, ImColor) -//----------------------------------------------------------------------------- - -// Helper: Unicode defines -#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD // Invalid Unicode code point (standard value). -#ifdef IMGUI_USE_WCHAR32 -#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF // Maximum Unicode code point supported by this build. -#else -#define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. -#endif - -// Helper: Execute a block of code at maximum once a frame. Convenient if you want to quickly create an UI within deep-nested code that runs multiple times every frame. -// Usage: static ImGuiOnceUponAFrame oaf; if (oaf) ImGui::Text("This will be called only once per frame"); -struct ImGuiOnceUponAFrame -{ - ImGuiOnceUponAFrame() { RefFrame = -1; } - mutable int RefFrame; - operator bool() const { int current_frame = ImGui::GetFrameCount(); if (RefFrame == current_frame) return false; RefFrame = current_frame; return true; } -}; - -// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" -struct ImGuiTextFilter -{ - IMGUI_API ImGuiTextFilter(const char* default_filter = ""); - IMGUI_API bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper calling InputText+Build - IMGUI_API bool PassFilter(const char* text, const char* text_end = NULL) const; - IMGUI_API void Build(); - void Clear() { InputBuf[0] = 0; Build(); } - bool IsActive() const { return !Filters.empty(); } - - // [Internal] - struct ImGuiTextRange - { - const char* b; - const char* e; - - ImGuiTextRange() { b = e = NULL; } - ImGuiTextRange(const char* _b, const char* _e) { b = _b; e = _e; } - bool empty() const { return b == e; } - IMGUI_API void split(char separator, ImVector* out) const; - }; - char InputBuf[256]; - ImVectorFilters; - int CountGrep; -}; - -// Helper: Growable text buffer for logging/accumulating text -// (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder') -struct ImGuiTextBuffer -{ - ImVector Buf; - IMGUI_API static char EmptyString[1]; - - ImGuiTextBuffer() { } - inline char operator[](int i) const { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; } - const char* begin() const { return Buf.Data ? &Buf.front() : EmptyString; } - const char* end() const { return Buf.Data ? &Buf.back() : EmptyString; } // Buf is zero-terminated, so end() will point on the zero-terminator - int size() const { return Buf.Size ? Buf.Size - 1 : 0; } - bool empty() const { return Buf.Size <= 1; } - void clear() { Buf.clear(); } - void reserve(int capacity) { Buf.reserve(capacity); } - const char* c_str() const { return Buf.Data ? Buf.Data : EmptyString; } - IMGUI_API void append(const char* str, const char* str_end = NULL); - IMGUI_API void appendf(const char* fmt, ...) IM_FMTARGS(2); - IMGUI_API void appendfv(const char* fmt, va_list args) IM_FMTLIST(2); -}; - -// Helper: Key->Value storage -// Typically you don't have to worry about this since a storage is held within each Window. -// We use it to e.g. store collapse state for a tree (Int 0/1) -// This is optimized for efficient lookup (dichotomy into a contiguous buffer) and rare insertion (typically tied to user interactions aka max once a frame) -// You can use it as custom user storage for temporary values. Declare your own storage if, for example: -// - You want to manipulate the open/close state of a particular sub-tree in your interface (tree node uses Int 0/1 to store their state). -// - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient) -// Types are NOT stored, so it is up to you to make sure your Key don't collide with different types. -struct ImGuiStorage -{ - // [Internal] - struct ImGuiStoragePair - { - ImGuiID key; - union { int val_i; float val_f; void* val_p; }; - ImGuiStoragePair(ImGuiID _key, int _val_i) { key = _key; val_i = _val_i; } - ImGuiStoragePair(ImGuiID _key, float _val_f) { key = _key; val_f = _val_f; } - ImGuiStoragePair(ImGuiID _key, void* _val_p) { key = _key; val_p = _val_p; } - }; - - ImVector Data; - - // - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N) - // - Set***() functions find pair, insertion on demand if missing. - // - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair. - void Clear() { Data.clear(); } - IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const; - IMGUI_API void SetInt(ImGuiID key, int val); - IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const; - IMGUI_API void SetBool(ImGuiID key, bool val); - IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const; - IMGUI_API void SetFloat(ImGuiID key, float val); - IMGUI_API void* GetVoidPtr(ImGuiID key) const; // default_val is NULL - IMGUI_API void SetVoidPtr(ImGuiID key, void* val); - - // - Get***Ref() functions finds pair, insert on demand if missing, return pointer. Useful if you intend to do Get+Set. - // - References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer. - // - A typical use case where this is convenient for quick hacking (e.g. add storage during a live Edit&Continue session if you can't modify existing struct) - // float* pvar = ImGui::GetFloatRef(key); ImGui::SliderFloat("var", pvar, 0, 100.0f); some_var += *pvar; - IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0); - IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false); - IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f); - IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL); - - // Use on your own storage if you know only integer are being stored (open/close all tree nodes) - IMGUI_API void SetAllInt(int val); - - // For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. - IMGUI_API void BuildSortByKey(); -}; - -// Helper: Manually clip large list of items. -// If you are submitting lots of evenly spaced items and you have a random access to the list, you can perform coarse -// clipping based on visibility to save yourself from processing those items at all. -// The clipper calculates the range of visible items and advance the cursor to compensate for the non-visible items we have skipped. -// (Dear ImGui already clip items based on their bounds but it needs to measure text size to do so, whereas manual coarse clipping before submission makes this cost and your own data fetching/submission cost almost null) -// Usage: -// ImGuiListClipper clipper; -// clipper.Begin(1000); // We have 1000 elements, evenly spaced. -// while (clipper.Step()) -// for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) -// ImGui::Text("line number %d", i); -// Generally what happens is: -// - Clipper lets you process the first element (DisplayStart = 0, DisplayEnd = 1) regardless of it being visible or not. -// - User code submit one element. -// - Clipper can measure the height of the first element -// - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element. -// - User code submit visible elements. -struct ImGuiListClipper -{ - int DisplayStart; - int DisplayEnd; - - // [Internal] - int ItemsCount; - int StepNo; - int ItemsFrozen; - float ItemsHeight; - float StartPosY; - - IMGUI_API ImGuiListClipper(); - IMGUI_API ~ImGuiListClipper(); - - // items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step) - // items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing(). - IMGUI_API void Begin(int items_count, float items_height = -1.0f); // Automatically called by constructor if you passed 'items_count' or by Step() in Step 1. - IMGUI_API void End(); // Automatically called on the last call of Step() that returns false. - IMGUI_API bool Step(); // Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items. - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - inline ImGuiListClipper(int items_count, float items_height = -1.0f) { memset(this, 0, sizeof(*this)); ItemsCount = -1; Begin(items_count, items_height); } // [removed in 1.79] -#endif -}; - -// Helpers macros to generate 32-bit encoded colors -#ifdef IMGUI_USE_BGRA_PACKED_COLOR -#define IM_COL32_R_SHIFT 16 -#define IM_COL32_G_SHIFT 8 -#define IM_COL32_B_SHIFT 0 -#define IM_COL32_A_SHIFT 24 -#define IM_COL32_A_MASK 0xFF000000 -#else -#define IM_COL32_R_SHIFT 0 -#define IM_COL32_G_SHIFT 8 -#define IM_COL32_B_SHIFT 16 -#define IM_COL32_A_SHIFT 24 -#define IM_COL32_A_MASK 0xFF000000 -#endif -#define IM_COL32(R,G,B,A) (((ImU32)(A)<> IM_COL32_R_SHIFT) & 0xFF) * sc; Value.y = (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * sc; Value.z = (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * sc; Value.w = (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * sc; } - ImColor(float r, float g, float b, float a = 1.0f) { Value.x = r; Value.y = g; Value.z = b; Value.w = a; } - ImColor(const ImVec4& col) { Value = col; } - inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } - inline operator ImVec4() const { return Value; } - - // FIXME-OBSOLETE: May need to obsolete/cleanup those helpers. - inline void SetHSV(float h, float s, float v, float a = 1.0f){ ImGui::ColorConvertHSVtoRGB(h, s, v, Value.x, Value.y, Value.z); Value.w = a; } - static ImColor HSV(float h, float s, float v, float a = 1.0f) { float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b); return ImColor(r, g, b, a); } -}; - -//----------------------------------------------------------------------------- -// [SECTION] Drawing API (ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawListFlags, ImDrawList, ImDrawData) -// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList. -//----------------------------------------------------------------------------- - -// The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking. -#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX -#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63) -#endif - -// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h] -// NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering, -// you can poke into the draw list for that! Draw callback may be useful for example to: -// A) Change your GPU render state, -// B) render a complex 3D scene inside a UI element without an intermediate texture/render target, etc. -// The expected behavior from your rendering function is 'if (cmd.UserCallback != NULL) { cmd.UserCallback(parent_list, cmd); } else { RenderTriangles() }' -// If you want to override the signature of ImDrawCallback, you can simply use e.g. '#define ImDrawCallback MyDrawCallback' (in imconfig.h) + update rendering backend accordingly. -#ifndef ImDrawCallback -typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); -#endif - -// Special Draw callback value to request renderer backend to reset the graphics/render state. -// The renderer backend needs to handle this special value, otherwise it will crash trying to call a function at this address. -// This is useful for example if you submitted callbacks which you know have altered the render state and you want it to be restored. -// It is not done by default because they are many perfectly useful way of altering render state for imgui contents (e.g. changing shader/blending settings before an Image call). -#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1) - -// Typically, 1 command = 1 GPU draw call (unless command is a callback) -// - VtxOffset/IdxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, -// those fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. -// Pre-1.71 backends will typically ignore the VtxOffset/IdxOffset fields. -// - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). -struct ImDrawCmd -{ - ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates - ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. - unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. - unsigned int IdxOffset; // 4 // Start offset in index buffer. Always equal to sum of ElemCount drawn so far. - unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. - ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. - void* UserCallbackData; // 4-8 // The draw callback code can access this. - - ImDrawCmd() { memset(this, 0, sizeof(*this)); } // Also ensure our padding fields are zeroed -}; - -// Vertex index, default to 16-bit -// To allow large meshes with 16-bit indices: set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset in the renderer backend (recommended). -// To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in imconfig.h. -#ifndef ImDrawIdx -typedef unsigned short ImDrawIdx; -#endif - -// Vertex layout -#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT -struct ImDrawVert -{ - ImVec2 pos; - ImVec2 uv; - ImU32 col; -}; -#else -// You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h -// The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. -// The type has to be described within the macro (you can either declare the struct or use a typedef). This is because ImVec2/ImU32 are likely not declared a the time you'd want to set your type up. -// NOTE: IMGUI DOESN'T CLEAR THE STRUCTURE AND DOESN'T CALL A CONSTRUCTOR SO ANY CUSTOM FIELD WILL BE UNINITIALIZED. IF YOU ADD EXTRA FIELDS (SUCH AS A 'Z' COORDINATES) YOU WILL NEED TO CLEAR THEM DURING RENDER OR TO IGNORE THEM. -IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; -#endif - -// [Internal] For use by ImDrawList -struct ImDrawCmdHeader -{ - ImVec4 ClipRect; - ImTextureID TextureId; - unsigned int VtxOffset; -}; - -// [Internal] For use by ImDrawListSplitter -struct ImDrawChannel -{ - ImVector _CmdBuffer; - ImVector _IdxBuffer; -}; - - -// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order. -// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call. -struct ImDrawListSplitter -{ - int _Current; // Current channel number (0) - int _Count; // Number of active channels (1+) - ImVector _Channels; // Draw channels (not resized down so _Count might be < Channels.Size) - - inline ImDrawListSplitter() { memset(this, 0, sizeof(*this)); } - inline ~ImDrawListSplitter() { ClearFreeMemory(); } - inline void Clear() { _Current = 0; _Count = 1; } // Do not clear Channels[] so our allocations are reused next frame - IMGUI_API void ClearFreeMemory(); - IMGUI_API void Split(ImDrawList* draw_list, int count); - IMGUI_API void Merge(ImDrawList* draw_list); - IMGUI_API void SetCurrentChannel(ImDrawList* draw_list, int channel_idx); -}; - -enum ImDrawCornerFlags_ -{ - ImDrawCornerFlags_None = 0, - ImDrawCornerFlags_TopLeft = 1 << 0, // 0x1 - ImDrawCornerFlags_TopRight = 1 << 1, // 0x2 - ImDrawCornerFlags_BotLeft = 1 << 2, // 0x4 - ImDrawCornerFlags_BotRight = 1 << 3, // 0x8 - ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight, // 0x3 - ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight, // 0xC - ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft, // 0x5 - ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight, // 0xA - ImDrawCornerFlags_All = 0xF // In your function calls you may use ~0 (= all bits sets) instead of ImDrawCornerFlags_All, as a convenience -}; - -// Flags for ImDrawList. Those are set automatically by ImGui:: functions from ImGuiIO settings, and generally not manipulated directly. -// It is however possible to temporarily alter flags between calls to ImDrawList:: functions. -enum ImDrawListFlags_ -{ - ImDrawListFlags_None = 0, - ImDrawListFlags_AntiAliasedLines = 1 << 0, // Enable anti-aliased lines/borders (*2 the number of triangles for 1.0f wide line or lines thin enough to be drawn using textures, otherwise *3 the number of triangles) - ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, // Enable anti-aliased lines/borders using textures when possible. Require backend to render with bilinear filtering. - ImDrawListFlags_AntiAliasedFill = 1 << 2, // Enable anti-aliased edge around filled shapes (rounded rectangles, circles). - ImDrawListFlags_AllowVtxOffset = 1 << 3 // Can emit 'VtxOffset > 0' to allow large meshes. Set when 'ImGuiBackendFlags_RendererHasVtxOffset' is enabled. -}; - -// Draw command list -// This is the low-level list of polygons that ImGui:: functions are filling. At the end of the frame, -// all command lists are passed to your ImGuiIO::RenderDrawListFn function for rendering. -// Each dear imgui window contains its own ImDrawList. You can use ImGui::GetWindowDrawList() to -// access the current window draw list and draw custom primitives. -// You can interleave normal ImGui:: calls and adding primitives to the current draw list. -// In single viewport mode, top-left is == GetMainViewport()->Pos (generally 0,0), bottom-right is == GetMainViewport()->Pos+Size (generally io.DisplaySize). -// You are totally free to apply whatever transformation matrix to want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!) -// Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects. -struct ImDrawList -{ - // This is what you have to render - ImVector CmdBuffer; // Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. - ImVector IdxBuffer; // Index buffer. Each command consume ImDrawCmd::ElemCount of those - ImVector VtxBuffer; // Vertex buffer. - ImDrawListFlags Flags; // Flags, you may poke into these to adjust anti-aliasing settings per-primitive. - - // [Internal, used while building lists] - unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. - const ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) - const char* _OwnerName; // Pointer to owner window's name for debugging - ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) - ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) - ImVector _ClipRectStack; // [Internal] - ImVector _TextureIdStack; // [Internal] - ImVector _Path; // [Internal] current path building - ImDrawCmdHeader _CmdHeader; // [Internal] template of active commands. Fields should match those of CmdBuffer.back(). - ImDrawListSplitter _Splitter; // [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) - float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content - - // If you want to create ImDrawList instances, pass them ImGui::GetDrawListSharedData() or create and use your own ImDrawListSharedData (so you can use ImDrawList without ImGui) - ImDrawList(const ImDrawListSharedData* shared_data) { memset(this, 0, sizeof(*this)); _Data = shared_data; } - - ~ImDrawList() { _ClearFreeMemory(); } - IMGUI_API void PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect = false); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) - IMGUI_API void PushClipRectFullScreen(); - IMGUI_API void PopClipRect(); - IMGUI_API void PushTextureID(ImTextureID texture_id); - IMGUI_API void PopTextureID(); - inline ImVec2 GetClipRectMin() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.x, cr.y); } - inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } - - // Primitives - // - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners. - // - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred). - // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. - // In future versions we will use textures to provide cheaper and higher-quality circles. - // Use AddNgon() and AddNgonFilled() functions if you need to guaranteed a specific number of sides. - IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); - IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All, float thickness = 1.0f); // a: upper-left, b: lower-right (== upper-left + size), rounding_corners_flags: 4 bits corresponding to which corner to round - IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All); // a: upper-left, b: lower-right (== upper-left + size) - IMGUI_API void AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); - IMGUI_API void AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness = 1.0f); - IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col); - IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f); - IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col); - IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f); - IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0); - IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f); - IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments); - IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); - IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec4* cpu_fine_clip_rect = NULL); - IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, bool closed, float thickness); - IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); // Note: Anti-aliased filling requires points to be in clockwise order. - IMGUI_API void AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); // Cubic Bezier (4 control points) - IMGUI_API void AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments = 0); // Quadratic Bezier (3 control points) - - // Image primitives - // - Read FAQ to understand what ImTextureID is. - // - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle. - // - "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. - IMGUI_API void AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min = ImVec2(0, 0), const ImVec2& uv_max = ImVec2(1, 1), ImU32 col = IM_COL32_WHITE); - IMGUI_API void AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1 = ImVec2(0, 0), const ImVec2& uv2 = ImVec2(1, 0), const ImVec2& uv3 = ImVec2(1, 1), const ImVec2& uv4 = ImVec2(0, 1), ImU32 col = IM_COL32_WHITE); - IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All); - - // Stateful path API, add points then finish with PathFillConvex() or PathStroke() - inline void PathClear() { _Path.Size = 0; } - inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } - inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } - inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } // Note: Anti-aliased filling requires points to be in clockwise order. - inline void PathStroke(ImU32 col, bool closed, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, closed, thickness); _Path.Size = 0; } - IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 10); - IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle - IMGUI_API void PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); // Cubic Bezier (4 control points) - IMGUI_API void PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments = 0); // Quadratic Bezier (3 control points) - IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All); - - // Advanced - IMGUI_API void AddCallback(ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. - IMGUI_API void AddDrawCmd(); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible - IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. - - // Advanced: Channels - // - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) - // - Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end) - // - FIXME-OBSOLETE: This API shouldn't have been in ImDrawList in the first place! - // Prefer using your own persistent instance of ImDrawListSplitter as you can stack them. - // Using the ImDrawList::ChannelsXXXX you cannot stack a split over another. - inline void ChannelsSplit(int count) { _Splitter.Split(this, count); } - inline void ChannelsMerge() { _Splitter.Merge(this); } - inline void ChannelsSetCurrent(int n) { _Splitter.SetCurrentChannel(this, n); } - - // Advanced: Primitives allocations - // - We render triangles (three vertices) - // - All primitives needs to be reserved via PrimReserve() beforehand. - IMGUI_API void PrimReserve(int idx_count, int vtx_count); - IMGUI_API void PrimUnreserve(int idx_count, int vtx_count); - IMGUI_API void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col); // Axis aligned rectangle (composed of two triangles) - IMGUI_API void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col); - IMGUI_API void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col); - inline void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; } - inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; } - inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } // Write vertex with unique index - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } - inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } -#endif - - // [Internal helpers] - IMGUI_API void _ResetForNewFrame(); - IMGUI_API void _ClearFreeMemory(); - IMGUI_API void _PopUnusedDrawCmd(); - IMGUI_API void _OnChangedClipRect(); - IMGUI_API void _OnChangedTextureID(); - IMGUI_API void _OnChangedVtxOffset(); - IMGUI_API int _CalcCircleAutoSegmentCount(float radius) const; -}; - -// All draw data to render a Dear ImGui frame -// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose, -// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList) -struct ImDrawData -{ - bool Valid; // Only valid after Render() is called and before the next NewFrame() is called. - int CmdListsCount; // Number of ImDrawList* to render - int TotalIdxCount; // For convenience, sum of all ImDrawList's IdxBuffer.Size - int TotalVtxCount; // For convenience, sum of all ImDrawList's VtxBuffer.Size - ImDrawList** CmdLists; // Array of ImDrawList* to render. The ImDrawList are owned by ImGuiContext and only pointed to from here. - ImVec2 DisplayPos; // Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications) - ImVec2 DisplaySize; // Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications) - ImVec2 FramebufferScale; // Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display. - - // Functions - ImDrawData() { Clear(); } - void Clear() { memset(this, 0, sizeof(*this)); } // The ImDrawList are owned by ImGuiContext! - IMGUI_API void DeIndexAllBuffers(); // Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! - IMGUI_API void ScaleClipRects(const ImVec2& fb_scale); // Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. -}; - -//----------------------------------------------------------------------------- -// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontAtlasFlags, ImFontAtlas, ImFontGlyphRangesBuilder, ImFont) -//----------------------------------------------------------------------------- - -struct ImFontConfig -{ - void* FontData; // // TTF/OTF data - int FontDataSize; // // TTF/OTF data size - bool FontDataOwnedByAtlas; // true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself). - int FontNo; // 0 // Index of font within TTF/OTF file - float SizePixels; // // Size in pixels for rasterizer (more or less maps to the resulting font height). - int OversampleH; // 3 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal so you can reduce this to 2 to save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details. - int OversampleV; // 1 // Rasterize at higher quality for sub-pixel positioning. This is not really useful as we don't use sub-pixel positions on the Y axis. - bool PixelSnapH; // false // Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1. - ImVec2 GlyphExtraSpacing; // 0, 0 // Extra spacing (in pixels) between glyphs. Only X axis is supported for now. - ImVec2 GlyphOffset; // 0, 0 // Offset all glyphs from this font input. - const ImWchar* GlyphRanges; // NULL // Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list). THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. - float GlyphMinAdvanceX; // 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font - float GlyphMaxAdvanceX; // FLT_MAX // Maximum AdvanceX for glyphs - bool MergeMode; // false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. - unsigned int FontBuilderFlags; // 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if unsure. - float RasterizerMultiply; // 1.0f // Brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. - ImWchar EllipsisChar; // -1 // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. - - // [Internal] - char Name[40]; // Name (strictly to ease debugging) - ImFont* DstFont; - - IMGUI_API ImFontConfig(); -}; - -// Hold rendering data for one glyph. -// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this) -struct ImFontGlyph -{ - unsigned int Colored : 1; // Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops) - unsigned int Visible : 1; // Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering. - unsigned int Codepoint : 30; // 0x0000..0x10FFFF - float AdvanceX; // Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in) - float X0, Y0, X1, Y1; // Glyph corners - float U0, V0, U1, V1; // Texture coordinates -}; - -// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges(). -// This is essentially a tightly packed of vector of 64k booleans = 8KB storage. -struct ImFontGlyphRangesBuilder -{ - ImVector UsedChars; // Store 1-bit per Unicode code point (0=unused, 1=used) - - ImFontGlyphRangesBuilder() { Clear(); } - inline void Clear() { int size_in_bytes = (IM_UNICODE_CODEPOINT_MAX + 1) / 8; UsedChars.resize(size_in_bytes / (int)sizeof(ImU32)); memset(UsedChars.Data, 0, (size_t)size_in_bytes); } - inline bool GetBit(size_t n) const { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); return (UsedChars[off] & mask) != 0; } // Get bit n in the array - inline void SetBit(size_t n) { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; } // Set bit n in the array - inline void AddChar(ImWchar c) { SetBit(c); } // Add character - IMGUI_API void AddText(const char* text, const char* text_end = NULL); // Add string (each character of the UTF-8 string are added) - IMGUI_API void AddRanges(const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext - IMGUI_API void BuildRanges(ImVector* out_ranges); // Output new ranges -}; - -// See ImFontAtlas::AddCustomRectXXX functions. -struct ImFontAtlasCustomRect -{ - unsigned short Width, Height; // Input // Desired rectangle dimension - unsigned short X, Y; // Output // Packed position in Atlas - unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000) - float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance - ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset - ImFont* Font; // Input // For custom font glyphs only: target font - ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; } - bool IsPacked() const { return X != 0xFFFF; } -}; - -// Flags for ImFontAtlas build -enum ImFontAtlasFlags_ -{ - ImFontAtlasFlags_None = 0, - ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, // Don't round the height to next power of two - ImFontAtlasFlags_NoMouseCursors = 1 << 1, // Don't build software mouse cursors into the atlas (save a little texture memory) - ImFontAtlasFlags_NoBakedLines = 1 << 2 // Don't build thick line textures into the atlas (save a little texture memory). The AntiAliasedLinesUseTex features uses them, otherwise they will be rendered using polygons (more expensive for CPU/GPU). -}; - -// Load and rasterize multiple TTF/OTF fonts into a same texture. The font atlas will build a single texture holding: -// - One or more fonts. -// - Custom graphics data needed to render the shapes needed by Dear ImGui. -// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas). -// It is the user-code responsibility to setup/build the atlas, then upload the pixel data into a texture accessible by your graphics api. -// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you. -// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data. -// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples) -// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API. -// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details. -// Common pitfalls: -// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the -// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data. -// - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction. -// You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, -// - Even though many functions are suffixed with "TTF", OTF data is supported just as well. -// - This is an old API and it is currently awkward for those and and various other reasons! We will address them in the future! -struct ImFontAtlas -{ - IMGUI_API ImFontAtlas(); - IMGUI_API ~ImFontAtlas(); - IMGUI_API ImFont* AddFont(const ImFontConfig* font_cfg); - IMGUI_API ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL); - IMGUI_API ImFont* AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); - IMGUI_API ImFont* AddFontFromMemoryTTF(void* font_data, int font_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. - IMGUI_API ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. - IMGUI_API ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); // 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. - IMGUI_API void ClearInputData(); // Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. - IMGUI_API void ClearTexData(); // Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. - IMGUI_API void ClearFonts(); // Clear output font data (glyphs storage, UV coordinates). - IMGUI_API void Clear(); // Clear all input and output. - - // Build atlas, retrieve pixel data. - // User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID(). - // The pitch is always = Width * BytesPerPixels (1 or 4) - // Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into - // the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste. - IMGUI_API bool Build(); // Build pixels data. This is called automatically for you by the GetTexData*** functions. - IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 1 byte per-pixel - IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); // 4 bytes-per-pixel - bool IsBuilt() const { return Fonts.Size > 0 && (TexPixelsAlpha8 != NULL || TexPixelsRGBA32 != NULL); } - void SetTexID(ImTextureID id) { TexID = id; } - - //------------------------------------------- - // Glyph Ranges - //------------------------------------------- - - // Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list) - // NB: Make sure that your string are UTF-8 and NOT in your local code page. In C++11, you can create UTF-8 string literal using the u8"Hello world" syntax. See FAQ for details. - // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. - IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin - IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters - IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs - IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs - IMGUI_API const ImWchar* GetGlyphRangesChineseSimplifiedCommon();// Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese - IMGUI_API const ImWchar* GetGlyphRangesCyrillic(); // Default + about 400 Cyrillic characters - IMGUI_API const ImWchar* GetGlyphRangesThai(); // Default + Thai characters - IMGUI_API const ImWchar* GetGlyphRangesVietnamese(); // Default + Vietnamese characters - - //------------------------------------------- - // [BETA] Custom Rectangles/Glyphs API - //------------------------------------------- - - // You can request arbitrary rectangles to be packed into the atlas, for your own purposes. - // - After calling Build(), you can query the rectangle position and render your pixels. - // - If you render colored output, set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of prefered texture format. - // - You can also request your rectangles to be mapped as font glyph (given a font + Unicode point), - // so you can render e.g. custom colorful icons and use them as regular glyphs. - // - Read docs/FONTS.md for more details about using colorful icons. - // - Note: this API may be redesigned later in order to support multi-monitor varying DPI settings. - IMGUI_API int AddCustomRectRegular(int width, int height); - IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset = ImVec2(0, 0)); - ImFontAtlasCustomRect* GetCustomRectByIndex(int index) { IM_ASSERT(index >= 0); return &CustomRects[index]; } - - // [Internal] - IMGUI_API void CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const; - IMGUI_API bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]); - - //------------------------------------------- - // Members - //------------------------------------------- - - ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) - ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. - int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. - int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0. - bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. - - // [Internal] - // NB: Access texture data via GetTexData*() calls! Which will setup a default font for you. - bool TexPixelsUseColors; // Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format. - unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight - unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 - int TexWidth; // Texture width calculated during Build(). - int TexHeight; // Texture height calculated during Build(). - ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight) - ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel - ImVector Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font. - ImVector CustomRects; // Rectangles for packing custom texture data into the atlas. - ImVector ConfigData; // Configuration data - ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]; // UVs for baked anti-aliased lines - - // [Internal] Font builder - const ImFontBuilderIO* FontBuilderIO; // Opaque interface to a font builder (default to stb_truetype, can be changed to use FreeType by defining IMGUI_ENABLE_FREETYPE). - unsigned int FontBuilderFlags; // Shared flags (for all fonts) for custom font builder. THIS IS BUILD IMPLEMENTATION DEPENDENT. Per-font override is also available in ImFontConfig. - - // [Internal] Packing data - int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors - int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ - typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ -#endif -}; - -// Font runtime data and rendering -// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32(). -struct ImFont -{ - // Members: Hot ~20/24 bytes (for CalcTextSize) - ImVector IndexAdvanceX; // 12-16 // out // // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this this info, and are often bottleneck in large UI). - float FallbackAdvanceX; // 4 // out // = FallbackGlyph->AdvanceX - float FontSize; // 4 // in // // Height of characters/line, set during loading (don't change after loading) - - // Members: Hot ~28/40 bytes (for CalcTextSize + render loop) - ImVector IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point. - ImVector Glyphs; // 12-16 // out // // All glyphs. - const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar) - - // Members: Cold ~32/40 bytes - ImFontAtlas* ContainerAtlas; // 4-8 // out // // What we has been loaded into - const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData - short ConfigDataCount; // 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont. - ImWchar FallbackChar; // 2 // in // = '?' // Replacement character if a glyph isn't found. Only set via SetFallbackChar() - ImWchar EllipsisChar; // 2 // out // = -1 // Character used for ellipsis rendering. - bool DirtyLookupTables; // 1 // out // - float Scale; // 4 // in // = 1.f // Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale() - float Ascent, Descent; // 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] - int MetricsTotalSurface;// 4 // out // // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs) - ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8]; // 2 bytes if ImWchar=ImWchar16, 34 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints. - - // Methods - IMGUI_API ImFont(); - IMGUI_API ~ImFont(); - IMGUI_API const ImFontGlyph*FindGlyph(ImWchar c) const; - IMGUI_API const ImFontGlyph*FindGlyphNoFallback(ImWchar c) const; - float GetCharAdvance(ImWchar c) const { return ((int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; } - bool IsLoaded() const { return ContainerAtlas != NULL; } - const char* GetDebugName() const { return ConfigData ? ConfigData->Name : ""; } - - // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. - // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. - IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** remaining = NULL) const; // utf8 - IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const; - IMGUI_API void RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const; - IMGUI_API void RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width = 0.0f, bool cpu_fine_clip = false) const; - - // [Internal] Don't use! - IMGUI_API void BuildLookupTable(); - IMGUI_API void ClearOutputData(); - IMGUI_API void GrowIndex(int new_size); - IMGUI_API void AddGlyph(const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); - IMGUI_API void AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst = true); // Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built. - IMGUI_API void SetGlyphVisible(ImWchar c, bool visible); - IMGUI_API void SetFallbackChar(ImWchar c); - IMGUI_API bool IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last); -}; - -//----------------------------------------------------------------------------- -// [SECTION] Viewports -//----------------------------------------------------------------------------- - -// Flags stored in ImGuiViewport::Flags -enum ImGuiViewportFlags_ -{ - ImGuiViewportFlags_None = 0, - ImGuiViewportFlags_IsPlatformWindow = 1 << 0, // Represent a Platform Window - ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, // Represent a Platform Monitor (unused yet) - ImGuiViewportFlags_OwnedByApp = 1 << 2 // Platform Window: is created/managed by the application (rather than a dear imgui backend) -}; - -// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows. -// - In 'docking' branch with multi-viewport enabled, we extend this concept to have multiple active viewports. -// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode. -// - About Main Area vs Work Area: -// - Main Area = entire viewport. -// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor). -// - Windows are generally trying to stay within the Work Area of their host viewport. -struct ImGuiViewport -{ - ImGuiViewportFlags Flags; // See ImGuiViewportFlags_ - ImVec2 Pos; // Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates) - ImVec2 Size; // Main Area: Size of the viewport. - ImVec2 WorkPos; // Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos) - ImVec2 WorkSize; // Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size) - - ImGuiViewport() { memset(this, 0, sizeof(*this)); } - - // Helpers - ImVec2 GetCenter() const { return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); } - ImVec2 GetWorkCenter() const { return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); } -}; - -//----------------------------------------------------------------------------- - -#if defined(__clang__) -#pragma clang diagnostic pop -#elif defined(__GNUC__) -#pragma GCC diagnostic pop -#endif - -// Include imgui_user.h at the end of imgui.h (convenient for user to only explicitly include vanilla imgui.h) -#ifdef IMGUI_INCLUDE_IMGUI_USER_H -#include "imgui_user.h" -#endif - -#endif // #ifndef IMGUI_DISABLE diff --git a/third_party/imgui/imgui_demo.cpp b/third_party/imgui/imgui_demo.cpp deleted file mode 100644 index b7689ed0..00000000 --- a/third_party/imgui/imgui_demo.cpp +++ /dev/null @@ -1,7665 +0,0 @@ -// dear imgui, v1.82 WIP -// (demo code) - -// Help: -// - Read FAQ at http://dearimgui.org/faq -// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase. -// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. -// Read imgui.cpp for more details, documentation and comments. -// Get latest version at https://github.com/ocornut/imgui - -// Message to the person tempted to delete this file when integrating Dear ImGui into their code base: -// Do NOT remove this file from your project! Think again! It is the most useful reference code that you and other -// coders will want to refer to and call. Have the ImGui::ShowDemoWindow() function wired in an always-available -// debug menu of your game/app! Removing this file from your project is hindering access to documentation for everyone -// in your team, likely leading you to poorer usage of the library. -// Everything in this file will be stripped out by the linker if you don't call ImGui::ShowDemoWindow(). -// If you want to link core Dear ImGui in your shipped builds but want a thorough guarantee that the demo will not be -// linked, you can setup your imconfig.h with #define IMGUI_DISABLE_DEMO_WINDOWS and those functions will be empty. -// In other situation, whenever you have Dear ImGui available you probably want this to be available for reference. -// Thank you, -// -Your beloved friend, imgui_demo.cpp (which you won't delete) - -// Message to beginner C/C++ programmers about the meaning of the 'static' keyword: -// In this demo code, we frequently we use 'static' variables inside functions. A static variable persist across calls, -// so it is essentially like a global variable but declared inside the scope of the function. We do this as a way to -// gather code and data in the same place, to make the demo source code faster to read, faster to write, and smaller -// in size. It also happens to be a convenient way of storing simple UI related information as long as your function -// doesn't need to be reentrant or used in multiple threads. This might be a pattern you will want to use in your code, -// but most of the real data you would be editing is likely going to be stored outside your functions. - -// The Demo code in this file is designed to be easy to copy-and-paste in into your application! -// Because of this: -// - We never omit the ImGui:: prefix when calling functions, even though most code here is in the same namespace. -// - We try to declare static variables in the local scope, as close as possible to the code using them. -// - We never use any of the helpers/facilities used internally by Dear ImGui, unless available in the public API. -// - We never use maths operators on ImVec2/ImVec4. For our other sources files we use them, and they are provided -// by imgui_internal.h using the IMGUI_DEFINE_MATH_OPERATORS define. For your own sources file they are optional -// and require you either enable those, either provide your own via IM_VEC2_CLASS_EXTRA in imconfig.h. -// Because we can't assume anything about your support of maths operators, we cannot use them in imgui_demo.cpp. - -// Navigating this file: -// - In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. -// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. - -/* - -Index of this file: - -// [SECTION] Forward Declarations, Helpers -// [SECTION] Demo Window / ShowDemoWindow() -// - sub section: ShowDemoWindowWidgets() -// - sub section: ShowDemoWindowLayout() -// - sub section: ShowDemoWindowPopups() -// - sub section: ShowDemoWindowTables() -// - sub section: ShowDemoWindowMisc() -// [SECTION] About Window / ShowAboutWindow() -// [SECTION] Style Editor / ShowStyleEditor() -// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() -// [SECTION] Example App: Debug Console / ShowExampleAppConsole() -// [SECTION] Example App: Debug Log / ShowExampleAppLog() -// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() -// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() -// [SECTION] Example App: Long Text / ShowExampleAppLongText() -// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() -// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() -// [SECTION] Example App: Simple overlay / ShowExampleAppSimpleOverlay() -// [SECTION] Example App: Fullscreen window / ShowExampleAppFullscreen() -// [SECTION] Example App: Manipulating window titles / ShowExampleAppWindowTitles() -// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() -// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() - -*/ - -#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) -#define _CRT_SECURE_NO_WARNINGS -#endif - -#include "imgui.h" -#ifndef IMGUI_DISABLE - -// System includes -#include // toupper -#include // INT_MIN, INT_MAX -#include // sqrtf, powf, cosf, sinf, floorf, ceilf -#include // vsnprintf, sscanf, printf -#include // NULL, malloc, free, atoi -#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier -#include // intptr_t -#else -#include // intptr_t -#endif - -// Visual Studio warnings -#ifdef _MSC_VER -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#endif - -// Clang/GCC warnings with -Weverything -#if defined(__clang__) -#if __has_warning("-Wunknown-warning-option") -#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' -#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. -#pragma clang diagnostic ignored "-Wdeprecated-declarations" // warning: 'xx' is deprecated: The POSIX name for this.. // for strdup used in demo code (so user can copy & paste the code) -#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast" // warning: cast to 'void *' from smaller integer type -#pragma clang diagnostic ignored "-Wformat-security" // warning: format string is not a string literal -#pragma clang diagnostic ignored "-Wexit-time-destructors" // warning: declaration requires an exit-time destructor // exit-time destruction order is undefined. if MemFree() leads to users code that has been disabled before exit it might cause problems. ImGui coding style welcomes static/globals. -#pragma clang diagnostic ignored "-Wunused-macros" // warning: macro is not used // we define snprintf/vsnprintf on Windows so they are available, but not always used. -#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 -#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. -#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier -#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision -#elif defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wint-to-pointer-cast" // warning: cast to pointer from integer of different size -#pragma GCC diagnostic ignored "-Wformat-security" // warning: format string is not a string literal (potentially insecure) -#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function -#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value -#pragma GCC diagnostic ignored "-Wmisleading-indentation" // [__GNUC__ >= 6] warning: this 'if' clause does not guard this statement // GCC 6.0+ only. See #883 on GitHub. -#endif - -// Play it nice with Windows users (Update: May 2018, Notepad now supports Unix-style carriage returns!) -#ifdef _WIN32 -#define IM_NEWLINE "\r\n" -#else -#define IM_NEWLINE "\n" -#endif - -// Helpers -#if defined(_MSC_VER) && !defined(snprintf) -#define snprintf _snprintf -#endif -#if defined(_MSC_VER) && !defined(vsnprintf) -#define vsnprintf _vsnprintf -#endif - -// Format specifiers, printing 64-bit hasn't been decently standardized... -// In a real application you should be using PRId64 and PRIu64 from (non-windows) and on Windows define them yourself. -#ifdef _MSC_VER -#define IM_PRId64 "I64d" -#define IM_PRIu64 "I64u" -#else -#define IM_PRId64 "lld" -#define IM_PRIu64 "llu" -#endif - -// Helpers macros -// We normally try to not use many helpers in imgui_demo.cpp in order to make code easier to copy and paste, -// but making an exception here as those are largely simplifying code... -// In other imgui sources we can use nicer internal functions from imgui_internal.h (ImMin/ImMax) but not in the demo. -#define IM_MIN(A, B) (((A) < (B)) ? (A) : (B)) -#define IM_MAX(A, B) (((A) >= (B)) ? (A) : (B)) -#define IM_CLAMP(V, MN, MX) ((V) < (MN) ? (MN) : (V) > (MX) ? (MX) : (V)) - -// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall -#ifndef IMGUI_CDECL -#ifdef _MSC_VER -#define IMGUI_CDECL __cdecl -#else -#define IMGUI_CDECL -#endif -#endif - -//----------------------------------------------------------------------------- -// [SECTION] Forward Declarations, Helpers -//----------------------------------------------------------------------------- - -#if !defined(IMGUI_DISABLE_DEMO_WINDOWS) - -// Forward Declarations -static void ShowExampleAppDocuments(bool* p_open); -static void ShowExampleAppMainMenuBar(); -static void ShowExampleAppConsole(bool* p_open); -static void ShowExampleAppLog(bool* p_open); -static void ShowExampleAppLayout(bool* p_open); -static void ShowExampleAppPropertyEditor(bool* p_open); -static void ShowExampleAppLongText(bool* p_open); -static void ShowExampleAppAutoResize(bool* p_open); -static void ShowExampleAppConstrainedResize(bool* p_open); -static void ShowExampleAppSimpleOverlay(bool* p_open); -static void ShowExampleAppFullscreen(bool* p_open); -static void ShowExampleAppWindowTitles(bool* p_open); -static void ShowExampleAppCustomRendering(bool* p_open); -static void ShowExampleMenuFile(); - -// Helper to display a little (?) mark which shows a tooltip when hovered. -// In your own code you may want to display an actual icon if you are using a merged icon fonts (see docs/FONTS.md) -static void HelpMarker(const char* desc) -{ - ImGui::TextDisabled("(?)"); - if (ImGui::IsItemHovered()) - { - ImGui::BeginTooltip(); - ImGui::PushTextWrapPos(ImGui::GetFontSize() * 35.0f); - ImGui::TextUnformatted(desc); - ImGui::PopTextWrapPos(); - ImGui::EndTooltip(); - } -} - -// Helper to display basic user controls. -void ImGui::ShowUserGuide() -{ - ImGuiIO& io = ImGui::GetIO(); - ImGui::BulletText("Double-click on title bar to collapse window."); - ImGui::BulletText( - "Click and drag on lower corner to resize window\n" - "(double-click to auto fit window to its contents)."); - ImGui::BulletText("CTRL+Click on a slider or drag box to input value as text."); - ImGui::BulletText("TAB/SHIFT+TAB to cycle through keyboard editable fields."); - if (io.FontAllowUserScaling) - ImGui::BulletText("CTRL+Mouse Wheel to zoom window contents."); - ImGui::BulletText("While inputing text:\n"); - ImGui::Indent(); - ImGui::BulletText("CTRL+Left/Right to word jump."); - ImGui::BulletText("CTRL+A or double-click to select all."); - ImGui::BulletText("CTRL+X/C/V to use clipboard cut/copy/paste."); - ImGui::BulletText("CTRL+Z,CTRL+Y to undo/redo."); - ImGui::BulletText("ESCAPE to revert."); - ImGui::BulletText("You can apply arithmetic operators +,*,/ on numerical values.\nUse +- to subtract."); - ImGui::Unindent(); - ImGui::BulletText("With keyboard navigation enabled:"); - ImGui::Indent(); - ImGui::BulletText("Arrow keys to navigate."); - ImGui::BulletText("Space to activate a widget."); - ImGui::BulletText("Return to input text into a widget."); - ImGui::BulletText("Escape to deactivate a widget, close popup, exit child window."); - ImGui::BulletText("Alt to jump to the menu layer of a window."); - ImGui::BulletText("CTRL+Tab to select a window."); - ImGui::Unindent(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Demo Window / ShowDemoWindow() -//----------------------------------------------------------------------------- -// - ShowDemoWindowWidgets() -// - ShowDemoWindowLayout() -// - ShowDemoWindowPopups() -// - ShowDemoWindowTables() -// - ShowDemoWindowColumns() -// - ShowDemoWindowMisc() -//----------------------------------------------------------------------------- - -// We split the contents of the big ShowDemoWindow() function into smaller functions -// (because the link time of very large functions grow non-linearly) -static void ShowDemoWindowWidgets(); -static void ShowDemoWindowLayout(); -static void ShowDemoWindowPopups(); -static void ShowDemoWindowTables(); -static void ShowDemoWindowColumns(); -static void ShowDemoWindowMisc(); - -// Demonstrate most Dear ImGui features (this is big function!) -// You may execute this function to experiment with the UI and understand what it does. -// You may then search for keywords in the code when you are interested by a specific feature. -void ImGui::ShowDemoWindow(bool* p_open) -{ - // Exceptionally add an extra assert here for people confused about initial Dear ImGui setup - // Most ImGui functions would normally just crash if the context is missing. - IM_ASSERT(ImGui::GetCurrentContext() != NULL && "Missing dear imgui context. Refer to examples app!"); - - // Examples Apps (accessible from the "Examples" menu) - static bool show_app_main_menu_bar = false; - static bool show_app_documents = false; - - static bool show_app_console = false; - static bool show_app_log = false; - static bool show_app_layout = false; - static bool show_app_property_editor = false; - static bool show_app_long_text = false; - static bool show_app_auto_resize = false; - static bool show_app_constrained_resize = false; - static bool show_app_simple_overlay = false; - static bool show_app_fullscreen = false; - static bool show_app_window_titles = false; - static bool show_app_custom_rendering = false; - - if (show_app_main_menu_bar) ShowExampleAppMainMenuBar(); - if (show_app_documents) ShowExampleAppDocuments(&show_app_documents); - - if (show_app_console) ShowExampleAppConsole(&show_app_console); - if (show_app_log) ShowExampleAppLog(&show_app_log); - if (show_app_layout) ShowExampleAppLayout(&show_app_layout); - if (show_app_property_editor) ShowExampleAppPropertyEditor(&show_app_property_editor); - if (show_app_long_text) ShowExampleAppLongText(&show_app_long_text); - if (show_app_auto_resize) ShowExampleAppAutoResize(&show_app_auto_resize); - if (show_app_constrained_resize) ShowExampleAppConstrainedResize(&show_app_constrained_resize); - if (show_app_simple_overlay) ShowExampleAppSimpleOverlay(&show_app_simple_overlay); - if (show_app_fullscreen) ShowExampleAppFullscreen(&show_app_fullscreen); - if (show_app_window_titles) ShowExampleAppWindowTitles(&show_app_window_titles); - if (show_app_custom_rendering) ShowExampleAppCustomRendering(&show_app_custom_rendering); - - // Dear ImGui Apps (accessible from the "Tools" menu) - static bool show_app_metrics = false; - static bool show_app_style_editor = false; - static bool show_app_about = false; - - if (show_app_metrics) { ImGui::ShowMetricsWindow(&show_app_metrics); } - if (show_app_about) { ImGui::ShowAboutWindow(&show_app_about); } - if (show_app_style_editor) - { - ImGui::Begin("Dear ImGui Style Editor", &show_app_style_editor); - ImGui::ShowStyleEditor(); - ImGui::End(); - } - - // Demonstrate the various window flags. Typically you would just use the default! - static bool no_titlebar = false; - static bool no_scrollbar = false; - static bool no_menu = false; - static bool no_move = false; - static bool no_resize = false; - static bool no_collapse = false; - static bool no_close = false; - static bool no_nav = false; - static bool no_background = false; - static bool no_bring_to_front = false; - - ImGuiWindowFlags window_flags = 0; - if (no_titlebar) window_flags |= ImGuiWindowFlags_NoTitleBar; - if (no_scrollbar) window_flags |= ImGuiWindowFlags_NoScrollbar; - if (!no_menu) window_flags |= ImGuiWindowFlags_MenuBar; - if (no_move) window_flags |= ImGuiWindowFlags_NoMove; - if (no_resize) window_flags |= ImGuiWindowFlags_NoResize; - if (no_collapse) window_flags |= ImGuiWindowFlags_NoCollapse; - if (no_nav) window_flags |= ImGuiWindowFlags_NoNav; - if (no_background) window_flags |= ImGuiWindowFlags_NoBackground; - if (no_bring_to_front) window_flags |= ImGuiWindowFlags_NoBringToFrontOnFocus; - if (no_close) p_open = NULL; // Don't pass our bool* to Begin - - // We specify a default position/size in case there's no data in the .ini file. - // We only do it to make the demo applications a little more welcoming, but typically this isn't required. - const ImGuiViewport* main_viewport = ImGui::GetMainViewport(); - ImGui::SetNextWindowPos(ImVec2(main_viewport->WorkPos.x + 650, main_viewport->WorkPos.y + 20), ImGuiCond_FirstUseEver); - ImGui::SetNextWindowSize(ImVec2(550, 680), ImGuiCond_FirstUseEver); - - // Main body of the Demo window starts here. - if (!ImGui::Begin("Dear ImGui Demo", p_open, window_flags)) - { - // Early out if the window is collapsed, as an optimization. - ImGui::End(); - return; - } - - // Most "big" widgets share a common width settings by default. See 'Demo->Layout->Widgets Width' for details. - - // e.g. Use 2/3 of the space for widgets and 1/3 for labels (right align) - //ImGui::PushItemWidth(-ImGui::GetWindowWidth() * 0.35f); - - // e.g. Leave a fixed amount of width for labels (by passing a negative value), the rest goes to widgets. - ImGui::PushItemWidth(ImGui::GetFontSize() * -12); - - // Menu Bar - if (ImGui::BeginMenuBar()) - { - if (ImGui::BeginMenu("Menu")) - { - ShowExampleMenuFile(); - ImGui::EndMenu(); - } - if (ImGui::BeginMenu("Examples")) - { - ImGui::MenuItem("Main menu bar", NULL, &show_app_main_menu_bar); - ImGui::MenuItem("Console", NULL, &show_app_console); - ImGui::MenuItem("Log", NULL, &show_app_log); - ImGui::MenuItem("Simple layout", NULL, &show_app_layout); - ImGui::MenuItem("Property editor", NULL, &show_app_property_editor); - ImGui::MenuItem("Long text display", NULL, &show_app_long_text); - ImGui::MenuItem("Auto-resizing window", NULL, &show_app_auto_resize); - ImGui::MenuItem("Constrained-resizing window", NULL, &show_app_constrained_resize); - ImGui::MenuItem("Simple overlay", NULL, &show_app_simple_overlay); - ImGui::MenuItem("Fullscreen window", NULL, &show_app_fullscreen); - ImGui::MenuItem("Manipulating window titles", NULL, &show_app_window_titles); - ImGui::MenuItem("Custom rendering", NULL, &show_app_custom_rendering); - ImGui::MenuItem("Documents", NULL, &show_app_documents); - ImGui::EndMenu(); - } - if (ImGui::BeginMenu("Tools")) - { - ImGui::MenuItem("Metrics/Debugger", NULL, &show_app_metrics); - ImGui::MenuItem("Style Editor", NULL, &show_app_style_editor); - ImGui::MenuItem("About Dear ImGui", NULL, &show_app_about); - ImGui::EndMenu(); - } - ImGui::EndMenuBar(); - } - - ImGui::Text("dear imgui says hello. (%s)", IMGUI_VERSION); - ImGui::Spacing(); - - if (ImGui::CollapsingHeader("Help")) - { - ImGui::Text("ABOUT THIS DEMO:"); - ImGui::BulletText("Sections below are demonstrating many aspects of the library."); - ImGui::BulletText("The \"Examples\" menu above leads to more demo contents."); - ImGui::BulletText("The \"Tools\" menu above gives access to: About Box, Style Editor,\n" - "and Metrics/Debugger (general purpose Dear ImGui debugging tool)."); - ImGui::Separator(); - - ImGui::Text("PROGRAMMER GUIDE:"); - ImGui::BulletText("See the ShowDemoWindow() code in imgui_demo.cpp. <- you are here!"); - ImGui::BulletText("See comments in imgui.cpp."); - ImGui::BulletText("See example applications in the examples/ folder."); - ImGui::BulletText("Read the FAQ at http://www.dearimgui.org/faq/"); - ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableKeyboard' for keyboard controls."); - ImGui::BulletText("Set 'io.ConfigFlags |= NavEnableGamepad' for gamepad controls."); - ImGui::Separator(); - - ImGui::Text("USER GUIDE:"); - ImGui::ShowUserGuide(); - } - - if (ImGui::CollapsingHeader("Configuration")) - { - ImGuiIO& io = ImGui::GetIO(); - - if (ImGui::TreeNode("Configuration##2")) - { - ImGui::CheckboxFlags("io.ConfigFlags: NavEnableKeyboard", &io.ConfigFlags, ImGuiConfigFlags_NavEnableKeyboard); - ImGui::SameLine(); HelpMarker("Enable keyboard controls."); - ImGui::CheckboxFlags("io.ConfigFlags: NavEnableGamepad", &io.ConfigFlags, ImGuiConfigFlags_NavEnableGamepad); - ImGui::SameLine(); HelpMarker("Enable gamepad controls. Require backend to set io.BackendFlags |= ImGuiBackendFlags_HasGamepad.\n\nRead instructions in imgui.cpp for details."); - ImGui::CheckboxFlags("io.ConfigFlags: NavEnableSetMousePos", &io.ConfigFlags, ImGuiConfigFlags_NavEnableSetMousePos); - ImGui::SameLine(); HelpMarker("Instruct navigation to move the mouse cursor. See comment for ImGuiConfigFlags_NavEnableSetMousePos."); - ImGui::CheckboxFlags("io.ConfigFlags: NoMouse", &io.ConfigFlags, ImGuiConfigFlags_NoMouse); - if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) - { - // The "NoMouse" option can get us stuck with a disabled mouse! Let's provide an alternative way to fix it: - if (fmodf((float)ImGui::GetTime(), 0.40f) < 0.20f) - { - ImGui::SameLine(); - ImGui::Text("<>"); - } - if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Space))) - io.ConfigFlags &= ~ImGuiConfigFlags_NoMouse; - } - ImGui::CheckboxFlags("io.ConfigFlags: NoMouseCursorChange", &io.ConfigFlags, ImGuiConfigFlags_NoMouseCursorChange); - ImGui::SameLine(); HelpMarker("Instruct backend to not alter mouse cursor shape and visibility."); - ImGui::Checkbox("io.ConfigInputTextCursorBlink", &io.ConfigInputTextCursorBlink); - ImGui::SameLine(); HelpMarker("Enable blinking cursor (optional as some users consider it to be distracting)"); - ImGui::Checkbox("io.ConfigDragClickToInputText", &io.ConfigDragClickToInputText); - ImGui::SameLine(); HelpMarker("Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving)."); - ImGui::Checkbox("io.ConfigWindowsResizeFromEdges", &io.ConfigWindowsResizeFromEdges); - ImGui::SameLine(); HelpMarker("Enable resizing of windows from their edges and from the lower-left corner.\nThis requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback."); - ImGui::Checkbox("io.ConfigWindowsMoveFromTitleBarOnly", &io.ConfigWindowsMoveFromTitleBarOnly); - ImGui::Checkbox("io.MouseDrawCursor", &io.MouseDrawCursor); - ImGui::SameLine(); HelpMarker("Instruct Dear ImGui to render a mouse cursor itself. Note that a mouse cursor rendered via your application GPU rendering path will feel more laggy than hardware cursor, but will be more in sync with your other visuals.\n\nSome desktop applications may use both kinds of cursors (e.g. enable software cursor only when resizing/dragging something)."); - ImGui::Text("Also see Style->Rendering for rendering options."); - ImGui::TreePop(); - ImGui::Separator(); - } - - if (ImGui::TreeNode("Backend Flags")) - { - HelpMarker( - "Those flags are set by the backends (imgui_impl_xxx files) to specify their capabilities.\n" - "Here we expose then as read-only fields to avoid breaking interactions with your backend."); - - // Make a local copy to avoid modifying actual backend flags. - ImGuiBackendFlags backend_flags = io.BackendFlags; - ImGui::CheckboxFlags("io.BackendFlags: HasGamepad", &backend_flags, ImGuiBackendFlags_HasGamepad); - ImGui::CheckboxFlags("io.BackendFlags: HasMouseCursors", &backend_flags, ImGuiBackendFlags_HasMouseCursors); - ImGui::CheckboxFlags("io.BackendFlags: HasSetMousePos", &backend_flags, ImGuiBackendFlags_HasSetMousePos); - ImGui::CheckboxFlags("io.BackendFlags: RendererHasVtxOffset", &backend_flags, ImGuiBackendFlags_RendererHasVtxOffset); - ImGui::TreePop(); - ImGui::Separator(); - } - - if (ImGui::TreeNode("Style")) - { - HelpMarker("The same contents can be accessed in 'Tools->Style Editor' or by calling the ShowStyleEditor() function."); - ImGui::ShowStyleEditor(); - ImGui::TreePop(); - ImGui::Separator(); - } - - if (ImGui::TreeNode("Capture/Logging")) - { - HelpMarker( - "The logging API redirects all text output so you can easily capture the content of " - "a window or a block. Tree nodes can be automatically expanded.\n" - "Try opening any of the contents below in this window and then click one of the \"Log To\" button."); - ImGui::LogButtons(); - - HelpMarker("You can also call ImGui::LogText() to output directly to the log without a visual output."); - if (ImGui::Button("Copy \"Hello, world!\" to clipboard")) - { - ImGui::LogToClipboard(); - ImGui::LogText("Hello, world!"); - ImGui::LogFinish(); - } - ImGui::TreePop(); - } - } - - if (ImGui::CollapsingHeader("Window options")) - { - if (ImGui::BeginTable("split", 3)) - { - ImGui::TableNextColumn(); ImGui::Checkbox("No titlebar", &no_titlebar); - ImGui::TableNextColumn(); ImGui::Checkbox("No scrollbar", &no_scrollbar); - ImGui::TableNextColumn(); ImGui::Checkbox("No menu", &no_menu); - ImGui::TableNextColumn(); ImGui::Checkbox("No move", &no_move); - ImGui::TableNextColumn(); ImGui::Checkbox("No resize", &no_resize); - ImGui::TableNextColumn(); ImGui::Checkbox("No collapse", &no_collapse); - ImGui::TableNextColumn(); ImGui::Checkbox("No close", &no_close); - ImGui::TableNextColumn(); ImGui::Checkbox("No nav", &no_nav); - ImGui::TableNextColumn(); ImGui::Checkbox("No background", &no_background); - ImGui::TableNextColumn(); ImGui::Checkbox("No bring to front", &no_bring_to_front); - ImGui::EndTable(); - } - } - - // All demo contents - ShowDemoWindowWidgets(); - ShowDemoWindowLayout(); - ShowDemoWindowPopups(); - ShowDemoWindowTables(); - ShowDemoWindowMisc(); - - // End of ShowDemoWindow() - ImGui::PopItemWidth(); - ImGui::End(); -} - -static void ShowDemoWindowWidgets() -{ - if (!ImGui::CollapsingHeader("Widgets")) - return; - - if (ImGui::TreeNode("Basic")) - { - static int clicked = 0; - if (ImGui::Button("Button")) - clicked++; - if (clicked & 1) - { - ImGui::SameLine(); - ImGui::Text("Thanks for clicking me!"); - } - - static bool check = true; - ImGui::Checkbox("checkbox", &check); - - static int e = 0; - ImGui::RadioButton("radio a", &e, 0); ImGui::SameLine(); - ImGui::RadioButton("radio b", &e, 1); ImGui::SameLine(); - ImGui::RadioButton("radio c", &e, 2); - - // Color buttons, demonstrate using PushID() to add unique identifier in the ID stack, and changing style. - for (int i = 0; i < 7; i++) - { - if (i > 0) - ImGui::SameLine(); - ImGui::PushID(i); - ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.6f)); - ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.7f)); - ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.8f, 0.8f)); - ImGui::Button("Click"); - ImGui::PopStyleColor(3); - ImGui::PopID(); - } - - // Use AlignTextToFramePadding() to align text baseline to the baseline of framed widgets elements - // (otherwise a Text+SameLine+Button sequence will have the text a little too high by default!) - // See 'Demo->Layout->Text Baseline Alignment' for details. - ImGui::AlignTextToFramePadding(); - ImGui::Text("Hold to repeat:"); - ImGui::SameLine(); - - // Arrow buttons with Repeater - static int counter = 0; - float spacing = ImGui::GetStyle().ItemInnerSpacing.x; - ImGui::PushButtonRepeat(true); - if (ImGui::ArrowButton("##left", ImGuiDir_Left)) { counter--; } - ImGui::SameLine(0.0f, spacing); - if (ImGui::ArrowButton("##right", ImGuiDir_Right)) { counter++; } - ImGui::PopButtonRepeat(); - ImGui::SameLine(); - ImGui::Text("%d", counter); - - ImGui::Text("Hover over me"); - if (ImGui::IsItemHovered()) - ImGui::SetTooltip("I am a tooltip"); - - ImGui::SameLine(); - ImGui::Text("- or me"); - if (ImGui::IsItemHovered()) - { - ImGui::BeginTooltip(); - ImGui::Text("I am a fancy tooltip"); - static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; - ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); - ImGui::EndTooltip(); - } - - ImGui::Separator(); - - ImGui::LabelText("label", "Value"); - - { - // Using the _simplified_ one-liner Combo() api here - // See "Combo" section for examples of how to use the more flexible BeginCombo()/EndCombo() api. - const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIIIIII", "JJJJ", "KKKKKKK" }; - static int item_current = 0; - ImGui::Combo("combo", &item_current, items, IM_ARRAYSIZE(items)); - ImGui::SameLine(); HelpMarker( - "Using the simplified one-liner Combo API here.\nRefer to the \"Combo\" section below for an explanation of how to use the more flexible and general BeginCombo/EndCombo API."); - } - - { - // To wire InputText() with std::string or any other custom string type, - // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. - static char str0[128] = "Hello, world!"; - ImGui::InputText("input text", str0, IM_ARRAYSIZE(str0)); - ImGui::SameLine(); HelpMarker( - "USER:\n" - "Hold SHIFT or use mouse to select text.\n" - "CTRL+Left/Right to word jump.\n" - "CTRL+A or double-click to select all.\n" - "CTRL+X,CTRL+C,CTRL+V clipboard.\n" - "CTRL+Z,CTRL+Y undo/redo.\n" - "ESCAPE to revert.\n\n" - "PROGRAMMER:\n" - "You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputText() " - "to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example (this is not demonstrated " - "in imgui_demo.cpp)."); - - static char str1[128] = ""; - ImGui::InputTextWithHint("input text (w/ hint)", "enter text here", str1, IM_ARRAYSIZE(str1)); - - static int i0 = 123; - ImGui::InputInt("input int", &i0); - ImGui::SameLine(); HelpMarker( - "You can apply arithmetic operators +,*,/ on numerical values.\n" - " e.g. [ 100 ], input \'*2\', result becomes [ 200 ]\n" - "Use +- to subtract."); - - static float f0 = 0.001f; - ImGui::InputFloat("input float", &f0, 0.01f, 1.0f, "%.3f"); - - static double d0 = 999999.00000001; - ImGui::InputDouble("input double", &d0, 0.01f, 1.0f, "%.8f"); - - static float f1 = 1.e10f; - ImGui::InputFloat("input scientific", &f1, 0.0f, 0.0f, "%e"); - ImGui::SameLine(); HelpMarker( - "You can input value using the scientific notation,\n" - " e.g. \"1e+8\" becomes \"100000000\"."); - - static float vec4a[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; - ImGui::InputFloat3("input float3", vec4a); - } - - { - static int i1 = 50, i2 = 42; - ImGui::DragInt("drag int", &i1, 1); - ImGui::SameLine(); HelpMarker( - "Click and drag to edit value.\n" - "Hold SHIFT/ALT for faster/slower edit.\n" - "Double-click or CTRL+click to input value."); - - ImGui::DragInt("drag int 0..100", &i2, 1, 0, 100, "%d%%", ImGuiSliderFlags_AlwaysClamp); - - static float f1 = 1.00f, f2 = 0.0067f; - ImGui::DragFloat("drag float", &f1, 0.005f); - ImGui::DragFloat("drag small float", &f2, 0.0001f, 0.0f, 0.0f, "%.06f ns"); - } - - { - static int i1 = 0; - ImGui::SliderInt("slider int", &i1, -1, 3); - ImGui::SameLine(); HelpMarker("CTRL+click to input value."); - - static float f1 = 0.123f, f2 = 0.0f; - ImGui::SliderFloat("slider float", &f1, 0.0f, 1.0f, "ratio = %.3f"); - ImGui::SliderFloat("slider float (log)", &f2, -10.0f, 10.0f, "%.4f", ImGuiSliderFlags_Logarithmic); - - static float angle = 0.0f; - ImGui::SliderAngle("slider angle", &angle); - - // Using the format string to display a name instead of an integer. - // Here we completely omit '%d' from the format string, so it'll only display a name. - // This technique can also be used with DragInt(). - enum Element { Element_Fire, Element_Earth, Element_Air, Element_Water, Element_COUNT }; - static int elem = Element_Fire; - const char* elems_names[Element_COUNT] = { "Fire", "Earth", "Air", "Water" }; - const char* elem_name = (elem >= 0 && elem < Element_COUNT) ? elems_names[elem] : "Unknown"; - ImGui::SliderInt("slider enum", &elem, 0, Element_COUNT - 1, elem_name); - ImGui::SameLine(); HelpMarker("Using the format string parameter to display a name instead of the underlying integer."); - } - - { - static float col1[3] = { 1.0f, 0.0f, 0.2f }; - static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; - ImGui::ColorEdit3("color 1", col1); - ImGui::SameLine(); HelpMarker( - "Click on the color square to open a color picker.\n" - "Click and hold to use drag and drop.\n" - "Right-click on the color square to show options.\n" - "CTRL+click on individual component to input value.\n"); - - ImGui::ColorEdit4("color 2", col2); - } - - { - // Using the _simplified_ one-liner ListBox() api here - // See "List boxes" section for examples of how to use the more flexible BeginListBox()/EndListBox() api. - const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pineapple", "Strawberry", "Watermelon" }; - static int item_current = 1; - ImGui::ListBox("listbox", &item_current, items, IM_ARRAYSIZE(items), 4); - ImGui::SameLine(); HelpMarker( - "Using the simplified one-liner ListBox API here.\nRefer to the \"List boxes\" section below for an explanation of how to use the more flexible and general BeginListBox/EndListBox API."); - } - - ImGui::TreePop(); - } - - // Testing ImGuiOnceUponAFrame helper. - //static ImGuiOnceUponAFrame once; - //for (int i = 0; i < 5; i++) - // if (once) - // ImGui::Text("This will be displayed only once."); - - if (ImGui::TreeNode("Trees")) - { - if (ImGui::TreeNode("Basic trees")) - { - for (int i = 0; i < 5; i++) - { - // Use SetNextItemOpen() so set the default state of a node to be open. We could - // also use TreeNodeEx() with the ImGuiTreeNodeFlags_DefaultOpen flag to achieve the same thing! - if (i == 0) - ImGui::SetNextItemOpen(true, ImGuiCond_Once); - - if (ImGui::TreeNode((void*)(intptr_t)i, "Child %d", i)) - { - ImGui::Text("blah blah"); - ImGui::SameLine(); - if (ImGui::SmallButton("button")) {} - ImGui::TreePop(); - } - } - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Advanced, with Selectable nodes")) - { - HelpMarker( - "This is a more typical looking tree with selectable nodes.\n" - "Click to select, CTRL+Click to toggle, click on arrows or double-click to open."); - static ImGuiTreeNodeFlags base_flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_SpanAvailWidth; - static bool align_label_with_current_x_position = false; - static bool test_drag_and_drop = false; - ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnArrow", &base_flags, ImGuiTreeNodeFlags_OpenOnArrow); - ImGui::CheckboxFlags("ImGuiTreeNodeFlags_OpenOnDoubleClick", &base_flags, ImGuiTreeNodeFlags_OpenOnDoubleClick); - ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanAvailWidth", &base_flags, ImGuiTreeNodeFlags_SpanAvailWidth); ImGui::SameLine(); HelpMarker("Extend hit area to all available width instead of allowing more items to be laid out after the node."); - ImGui::CheckboxFlags("ImGuiTreeNodeFlags_SpanFullWidth", &base_flags, ImGuiTreeNodeFlags_SpanFullWidth); - ImGui::Checkbox("Align label with current X position", &align_label_with_current_x_position); - ImGui::Checkbox("Test tree node as drag source", &test_drag_and_drop); - ImGui::Text("Hello!"); - if (align_label_with_current_x_position) - ImGui::Unindent(ImGui::GetTreeNodeToLabelSpacing()); - - // 'selection_mask' is dumb representation of what may be user-side selection state. - // You may retain selection state inside or outside your objects in whatever format you see fit. - // 'node_clicked' is temporary storage of what node we have clicked to process selection at the end - /// of the loop. May be a pointer to your own node type, etc. - static int selection_mask = (1 << 2); - int node_clicked = -1; - for (int i = 0; i < 6; i++) - { - // Disable the default "open on single-click behavior" + set Selected flag according to our selection. - ImGuiTreeNodeFlags node_flags = base_flags; - const bool is_selected = (selection_mask & (1 << i)) != 0; - if (is_selected) - node_flags |= ImGuiTreeNodeFlags_Selected; - if (i < 3) - { - // Items 0..2 are Tree Node - bool node_open = ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Node %d", i); - if (ImGui::IsItemClicked()) - node_clicked = i; - if (test_drag_and_drop && ImGui::BeginDragDropSource()) - { - ImGui::SetDragDropPayload("_TREENODE", NULL, 0); - ImGui::Text("This is a drag and drop source"); - ImGui::EndDragDropSource(); - } - if (node_open) - { - ImGui::BulletText("Blah blah\nBlah Blah"); - ImGui::TreePop(); - } - } - else - { - // Items 3..5 are Tree Leaves - // The only reason we use TreeNode at all is to allow selection of the leaf. Otherwise we can - // use BulletText() or advance the cursor by GetTreeNodeToLabelSpacing() and call Text(). - node_flags |= ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen; // ImGuiTreeNodeFlags_Bullet - ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Leaf %d", i); - if (ImGui::IsItemClicked()) - node_clicked = i; - if (test_drag_and_drop && ImGui::BeginDragDropSource()) - { - ImGui::SetDragDropPayload("_TREENODE", NULL, 0); - ImGui::Text("This is a drag and drop source"); - ImGui::EndDragDropSource(); - } - } - } - if (node_clicked != -1) - { - // Update selection state - // (process outside of tree loop to avoid visual inconsistencies during the clicking frame) - if (ImGui::GetIO().KeyCtrl) - selection_mask ^= (1 << node_clicked); // CTRL+click to toggle - else //if (!(selection_mask & (1 << node_clicked))) // Depending on selection behavior you want, may want to preserve selection when clicking on item that is part of the selection - selection_mask = (1 << node_clicked); // Click to single-select - } - if (align_label_with_current_x_position) - ImGui::Indent(ImGui::GetTreeNodeToLabelSpacing()); - ImGui::TreePop(); - } - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Collapsing Headers")) - { - static bool closable_group = true; - ImGui::Checkbox("Show 2nd header", &closable_group); - if (ImGui::CollapsingHeader("Header", ImGuiTreeNodeFlags_None)) - { - ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); - for (int i = 0; i < 5; i++) - ImGui::Text("Some content %d", i); - } - if (ImGui::CollapsingHeader("Header with a close button", &closable_group)) - { - ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); - for (int i = 0; i < 5; i++) - ImGui::Text("More content %d", i); - } - /* - if (ImGui::CollapsingHeader("Header with a bullet", ImGuiTreeNodeFlags_Bullet)) - ImGui::Text("IsItemHovered: %d", ImGui::IsItemHovered()); - */ - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Bullets")) - { - ImGui::BulletText("Bullet point 1"); - ImGui::BulletText("Bullet point 2\nOn multiple lines"); - if (ImGui::TreeNode("Tree node")) - { - ImGui::BulletText("Another bullet point"); - ImGui::TreePop(); - } - ImGui::Bullet(); ImGui::Text("Bullet point 3 (two calls)"); - ImGui::Bullet(); ImGui::SmallButton("Button"); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Text")) - { - if (ImGui::TreeNode("Colorful Text")) - { - // Using shortcut. You can use PushStyleColor()/PopStyleColor() for more flexibility. - ImGui::TextColored(ImVec4(1.0f, 0.0f, 1.0f, 1.0f), "Pink"); - ImGui::TextColored(ImVec4(1.0f, 1.0f, 0.0f, 1.0f), "Yellow"); - ImGui::TextDisabled("Disabled"); - ImGui::SameLine(); HelpMarker("The TextDisabled color is stored in ImGuiStyle."); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Word Wrapping")) - { - // Using shortcut. You can use PushTextWrapPos()/PopTextWrapPos() for more flexibility. - ImGui::TextWrapped( - "This text should automatically wrap on the edge of the window. The current implementation " - "for text wrapping follows simple rules suitable for English and possibly other languages."); - ImGui::Spacing(); - - static float wrap_width = 200.0f; - ImGui::SliderFloat("Wrap width", &wrap_width, -20, 600, "%.0f"); - - ImDrawList* draw_list = ImGui::GetWindowDrawList(); - for (int n = 0; n < 2; n++) - { - ImGui::Text("Test paragraph %d:", n); - ImVec2 pos = ImGui::GetCursorScreenPos(); - ImVec2 marker_min = ImVec2(pos.x + wrap_width, pos.y); - ImVec2 marker_max = ImVec2(pos.x + wrap_width + 10, pos.y + ImGui::GetTextLineHeight()); - ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + wrap_width); - if (n == 0) - ImGui::Text("The lazy dog is a good dog. This paragraph should fit within %.0f pixels. Testing a 1 character word. The quick brown fox jumps over the lazy dog.", wrap_width); - else - ImGui::Text("aaaaaaaa bbbbbbbb, c cccccccc,dddddddd. d eeeeeeee ffffffff. gggggggg!hhhhhhhh"); - - // Draw actual text bounding box, following by marker of our expected limit (should not overlap!) - draw_list->AddRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax(), IM_COL32(255, 255, 0, 255)); - draw_list->AddRectFilled(marker_min, marker_max, IM_COL32(255, 0, 255, 255)); - ImGui::PopTextWrapPos(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("UTF-8 Text")) - { - // UTF-8 test with Japanese characters - // (Needs a suitable font? Try "Google Noto" or "Arial Unicode". See docs/FONTS.md for details.) - // - From C++11 you can use the u8"my text" syntax to encode literal strings as UTF-8 - // - For earlier compiler, you may be able to encode your sources as UTF-8 (e.g. in Visual Studio, you - // can save your source files as 'UTF-8 without signature'). - // - FOR THIS DEMO FILE ONLY, BECAUSE WE WANT TO SUPPORT OLD COMPILERS, WE ARE *NOT* INCLUDING RAW UTF-8 - // CHARACTERS IN THIS SOURCE FILE. Instead we are encoding a few strings with hexadecimal constants. - // Don't do this in your application! Please use u8"text in any language" in your application! - // Note that characters values are preserved even by InputText() if the font cannot be displayed, - // so you can safely copy & paste garbled characters into another application. - ImGui::TextWrapped( - "CJK text will only appears if the font was loaded with the appropriate CJK character ranges. " - "Call io.Fonts->AddFontFromFileTTF() manually to load extra character ranges. " - "Read docs/FONTS.md for details."); - ImGui::Text("Hiragana: \xe3\x81\x8b\xe3\x81\x8d\xe3\x81\x8f\xe3\x81\x91\xe3\x81\x93 (kakikukeko)"); // Normally we would use u8"blah blah" with the proper characters directly in the string. - ImGui::Text("Kanjis: \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e (nihongo)"); - static char buf[32] = "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e"; - //static char buf[32] = u8"NIHONGO"; // <- this is how you would write it with C++11, using real kanjis - ImGui::InputText("UTF-8 input", buf, IM_ARRAYSIZE(buf)); - ImGui::TreePop(); - } - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Images")) - { - ImGuiIO& io = ImGui::GetIO(); - ImGui::TextWrapped( - "Below we are displaying the font texture (which is the only texture we have access to in this demo). " - "Use the 'ImTextureID' type as storage to pass pointers or identifier to your own texture data. " - "Hover the texture for a zoomed view!"); - - // Below we are displaying the font texture because it is the only texture we have access to inside the demo! - // Remember that ImTextureID is just storage for whatever you want it to be. It is essentially a value that - // will be passed to the rendering backend via the ImDrawCmd structure. - // If you use one of the default imgui_impl_XXXX.cpp rendering backend, they all have comments at the top - // of their respective source file to specify what they expect to be stored in ImTextureID, for example: - // - The imgui_impl_dx11.cpp renderer expect a 'ID3D11ShaderResourceView*' pointer - // - The imgui_impl_opengl3.cpp renderer expect a GLuint OpenGL texture identifier, etc. - // More: - // - If you decided that ImTextureID = MyEngineTexture*, then you can pass your MyEngineTexture* pointers - // to ImGui::Image(), and gather width/height through your own functions, etc. - // - You can use ShowMetricsWindow() to inspect the draw data that are being passed to your renderer, - // it will help you debug issues if you are confused about it. - // - Consider using the lower-level ImDrawList::AddImage() API, via ImGui::GetWindowDrawList()->AddImage(). - // - Read https://github.com/ocornut/imgui/blob/master/docs/FAQ.md - // - Read https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples - ImTextureID my_tex_id = io.Fonts->TexID; - float my_tex_w = (float)io.Fonts->TexWidth; - float my_tex_h = (float)io.Fonts->TexHeight; - { - ImGui::Text("%.0fx%.0f", my_tex_w, my_tex_h); - ImVec2 pos = ImGui::GetCursorScreenPos(); - ImVec2 uv_min = ImVec2(0.0f, 0.0f); // Top-left - ImVec2 uv_max = ImVec2(1.0f, 1.0f); // Lower-right - ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint - ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); // 50% opaque white - ImGui::Image(my_tex_id, ImVec2(my_tex_w, my_tex_h), uv_min, uv_max, tint_col, border_col); - if (ImGui::IsItemHovered()) - { - ImGui::BeginTooltip(); - float region_sz = 32.0f; - float region_x = io.MousePos.x - pos.x - region_sz * 0.5f; - float region_y = io.MousePos.y - pos.y - region_sz * 0.5f; - float zoom = 4.0f; - if (region_x < 0.0f) { region_x = 0.0f; } - else if (region_x > my_tex_w - region_sz) { region_x = my_tex_w - region_sz; } - if (region_y < 0.0f) { region_y = 0.0f; } - else if (region_y > my_tex_h - region_sz) { region_y = my_tex_h - region_sz; } - ImGui::Text("Min: (%.2f, %.2f)", region_x, region_y); - ImGui::Text("Max: (%.2f, %.2f)", region_x + region_sz, region_y + region_sz); - ImVec2 uv0 = ImVec2((region_x) / my_tex_w, (region_y) / my_tex_h); - ImVec2 uv1 = ImVec2((region_x + region_sz) / my_tex_w, (region_y + region_sz) / my_tex_h); - ImGui::Image(my_tex_id, ImVec2(region_sz * zoom, region_sz * zoom), uv0, uv1, tint_col, border_col); - ImGui::EndTooltip(); - } - } - ImGui::TextWrapped("And now some textured buttons.."); - static int pressed_count = 0; - for (int i = 0; i < 8; i++) - { - ImGui::PushID(i); - int frame_padding = -1 + i; // -1 == uses default padding (style.FramePadding) - ImVec2 size = ImVec2(32.0f, 32.0f); // Size of the image we want to make visible - ImVec2 uv0 = ImVec2(0.0f, 0.0f); // UV coordinates for lower-left - ImVec2 uv1 = ImVec2(32.0f / my_tex_w, 32.0f / my_tex_h);// UV coordinates for (32,32) in our texture - ImVec4 bg_col = ImVec4(0.0f, 0.0f, 0.0f, 1.0f); // Black background - ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); // No tint - if (ImGui::ImageButton(my_tex_id, size, uv0, uv1, frame_padding, bg_col, tint_col)) - pressed_count += 1; - ImGui::PopID(); - ImGui::SameLine(); - } - ImGui::NewLine(); - ImGui::Text("Pressed %d times.", pressed_count); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Combo")) - { - // Expose flags as checkbox for the demo - static ImGuiComboFlags flags = 0; - ImGui::CheckboxFlags("ImGuiComboFlags_PopupAlignLeft", &flags, ImGuiComboFlags_PopupAlignLeft); - ImGui::SameLine(); HelpMarker("Only makes a difference if the popup is larger than the combo"); - if (ImGui::CheckboxFlags("ImGuiComboFlags_NoArrowButton", &flags, ImGuiComboFlags_NoArrowButton)) - flags &= ~ImGuiComboFlags_NoPreview; // Clear the other flag, as we cannot combine both - if (ImGui::CheckboxFlags("ImGuiComboFlags_NoPreview", &flags, ImGuiComboFlags_NoPreview)) - flags &= ~ImGuiComboFlags_NoArrowButton; // Clear the other flag, as we cannot combine both - - // Using the generic BeginCombo() API, you have full control over how to display the combo contents. - // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively - // stored in the object itself, etc.) - const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; - static int item_current_idx = 0; // Here we store our selection data as an index. - const char* combo_label = items[item_current_idx]; // Label to preview before opening the combo (technically it could be anything) - if (ImGui::BeginCombo("combo 1", combo_label, flags)) - { - for (int n = 0; n < IM_ARRAYSIZE(items); n++) - { - const bool is_selected = (item_current_idx == n); - if (ImGui::Selectable(items[n], is_selected)) - item_current_idx = n; - - // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) - if (is_selected) - ImGui::SetItemDefaultFocus(); - } - ImGui::EndCombo(); - } - - // Simplified one-liner Combo() API, using values packed in a single constant string - static int item_current_2 = 0; - ImGui::Combo("combo 2 (one-liner)", &item_current_2, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); - - // Simplified one-liner Combo() using an array of const char* - static int item_current_3 = -1; // If the selection isn't within 0..count, Combo won't display a preview - ImGui::Combo("combo 3 (array)", &item_current_3, items, IM_ARRAYSIZE(items)); - - // Simplified one-liner Combo() using an accessor function - struct Funcs { static bool ItemGetter(void* data, int n, const char** out_str) { *out_str = ((const char**)data)[n]; return true; } }; - static int item_current_4 = 0; - ImGui::Combo("combo 4 (function)", &item_current_4, &Funcs::ItemGetter, items, IM_ARRAYSIZE(items)); - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("List boxes")) - { - // Using the generic BeginListBox() API, you have full control over how to display the combo contents. - // (your selection data could be an index, a pointer to the object, an id for the object, a flag intrusively - // stored in the object itself, etc.) - const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD", "EEEE", "FFFF", "GGGG", "HHHH", "IIII", "JJJJ", "KKKK", "LLLLLLL", "MMMM", "OOOOOOO" }; - static int item_current_idx = 0; // Here we store our selection data as an index. - if (ImGui::BeginListBox("listbox 1")) - { - for (int n = 0; n < IM_ARRAYSIZE(items); n++) - { - const bool is_selected = (item_current_idx == n); - if (ImGui::Selectable(items[n], is_selected)) - item_current_idx = n; - - // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) - if (is_selected) - ImGui::SetItemDefaultFocus(); - } - ImGui::EndListBox(); - } - - // Custom size: use all width, 5 items tall - ImGui::Text("Full-width:"); - if (ImGui::BeginListBox("##listbox 2", ImVec2(-FLT_MIN, 5 * ImGui::GetTextLineHeightWithSpacing()))) - { - for (int n = 0; n < IM_ARRAYSIZE(items); n++) - { - const bool is_selected = (item_current_idx == n); - if (ImGui::Selectable(items[n], is_selected)) - item_current_idx = n; - - // Set the initial focus when opening the combo (scrolling + keyboard navigation focus) - if (is_selected) - ImGui::SetItemDefaultFocus(); - } - ImGui::EndListBox(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Selectables")) - { - // Selectable() has 2 overloads: - // - The one taking "bool selected" as a read-only selection information. - // When Selectable() has been clicked it returns true and you can alter selection state accordingly. - // - The one taking "bool* p_selected" as a read-write selection information (convenient in some cases) - // The earlier is more flexible, as in real application your selection may be stored in many different ways - // and not necessarily inside a bool value (e.g. in flags within objects, as an external list, etc). - if (ImGui::TreeNode("Basic")) - { - static bool selection[5] = { false, true, false, false, false }; - ImGui::Selectable("1. I am selectable", &selection[0]); - ImGui::Selectable("2. I am selectable", &selection[1]); - ImGui::Text("3. I am not selectable"); - ImGui::Selectable("4. I am selectable", &selection[3]); - if (ImGui::Selectable("5. I am double clickable", selection[4], ImGuiSelectableFlags_AllowDoubleClick)) - if (ImGui::IsMouseDoubleClicked(0)) - selection[4] = !selection[4]; - ImGui::TreePop(); - } - if (ImGui::TreeNode("Selection State: Single Selection")) - { - static int selected = -1; - for (int n = 0; n < 5; n++) - { - char buf[32]; - sprintf(buf, "Object %d", n); - if (ImGui::Selectable(buf, selected == n)) - selected = n; - } - ImGui::TreePop(); - } - if (ImGui::TreeNode("Selection State: Multiple Selection")) - { - HelpMarker("Hold CTRL and click to select multiple items."); - static bool selection[5] = { false, false, false, false, false }; - for (int n = 0; n < 5; n++) - { - char buf[32]; - sprintf(buf, "Object %d", n); - if (ImGui::Selectable(buf, selection[n])) - { - if (!ImGui::GetIO().KeyCtrl) // Clear selection when CTRL is not held - memset(selection, 0, sizeof(selection)); - selection[n] ^= 1; - } - } - ImGui::TreePop(); - } - if (ImGui::TreeNode("Rendering more text into the same line")) - { - // Using the Selectable() override that takes "bool* p_selected" parameter, - // this function toggle your bool value automatically. - static bool selected[3] = { false, false, false }; - ImGui::Selectable("main.c", &selected[0]); ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); - ImGui::Selectable("Hello.cpp", &selected[1]); ImGui::SameLine(300); ImGui::Text("12,345 bytes"); - ImGui::Selectable("Hello.h", &selected[2]); ImGui::SameLine(300); ImGui::Text(" 2,345 bytes"); - ImGui::TreePop(); - } - if (ImGui::TreeNode("In columns")) - { - static bool selected[10] = {}; - - if (ImGui::BeginTable("split1", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings)) - { - for (int i = 0; i < 10; i++) - { - char label[32]; - sprintf(label, "Item %d", i); - ImGui::TableNextColumn(); - ImGui::Selectable(label, &selected[i]); // FIXME-TABLE: Selection overlap - } - ImGui::EndTable(); - } - ImGui::Separator(); - if (ImGui::BeginTable("split2", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings)) - { - for (int i = 0; i < 10; i++) - { - char label[32]; - sprintf(label, "Item %d", i); - ImGui::TableNextRow(); - ImGui::TableNextColumn(); - ImGui::Selectable(label, &selected[i], ImGuiSelectableFlags_SpanAllColumns); - ImGui::TableNextColumn(); - ImGui::Text("Some other contents"); - ImGui::TableNextColumn(); - ImGui::Text("123456"); - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - if (ImGui::TreeNode("Grid")) - { - static char selected[4][4] = { { 1, 0, 0, 0 }, { 0, 1, 0, 0 }, { 0, 0, 1, 0 }, { 0, 0, 0, 1 } }; - - // Add in a bit of silly fun... - const float time = (float)ImGui::GetTime(); - const bool winning_state = memchr(selected, 0, sizeof(selected)) == NULL; // If all cells are selected... - if (winning_state) - ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, ImVec2(0.5f + 0.5f * cosf(time * 2.0f), 0.5f + 0.5f * sinf(time * 3.0f))); - - for (int y = 0; y < 4; y++) - for (int x = 0; x < 4; x++) - { - if (x > 0) - ImGui::SameLine(); - ImGui::PushID(y * 4 + x); - if (ImGui::Selectable("Sailor", selected[y][x] != 0, 0, ImVec2(50, 50))) - { - // Toggle clicked cell + toggle neighbors - selected[y][x] ^= 1; - if (x > 0) { selected[y][x - 1] ^= 1; } - if (x < 3) { selected[y][x + 1] ^= 1; } - if (y > 0) { selected[y - 1][x] ^= 1; } - if (y < 3) { selected[y + 1][x] ^= 1; } - } - ImGui::PopID(); - } - - if (winning_state) - ImGui::PopStyleVar(); - ImGui::TreePop(); - } - if (ImGui::TreeNode("Alignment")) - { - HelpMarker( - "By default, Selectables uses style.SelectableTextAlign but it can be overridden on a per-item " - "basis using PushStyleVar(). You'll probably want to always keep your default situation to " - "left-align otherwise it becomes difficult to layout multiple items on a same line"); - static bool selected[3 * 3] = { true, false, true, false, true, false, true, false, true }; - for (int y = 0; y < 3; y++) - { - for (int x = 0; x < 3; x++) - { - ImVec2 alignment = ImVec2((float)x / 2.0f, (float)y / 2.0f); - char name[32]; - sprintf(name, "(%.1f,%.1f)", alignment.x, alignment.y); - if (x > 0) ImGui::SameLine(); - ImGui::PushStyleVar(ImGuiStyleVar_SelectableTextAlign, alignment); - ImGui::Selectable(name, &selected[3 * y + x], ImGuiSelectableFlags_None, ImVec2(80, 80)); - ImGui::PopStyleVar(); - } - } - ImGui::TreePop(); - } - ImGui::TreePop(); - } - - // To wire InputText() with std::string or any other custom string type, - // see the "Text Input > Resize Callback" section of this demo, and the misc/cpp/imgui_stdlib.h file. - if (ImGui::TreeNode("Text Input")) - { - if (ImGui::TreeNode("Multi-line Text Input")) - { - // Note: we are using a fixed-sized buffer for simplicity here. See ImGuiInputTextFlags_CallbackResize - // and the code in misc/cpp/imgui_stdlib.h for how to setup InputText() for dynamically resizing strings. - static char text[1024 * 16] = - "/*\n" - " The Pentium F00F bug, shorthand for F0 0F C7 C8,\n" - " the hexadecimal encoding of one offending instruction,\n" - " more formally, the invalid operand with locked CMPXCHG8B\n" - " instruction bug, is a design flaw in the majority of\n" - " Intel Pentium, Pentium MMX, and Pentium OverDrive\n" - " processors (all in the P5 microarchitecture).\n" - "*/\n\n" - "label:\n" - "\tlock cmpxchg8b eax\n"; - - static ImGuiInputTextFlags flags = ImGuiInputTextFlags_AllowTabInput; - HelpMarker("You can use the ImGuiInputTextFlags_CallbackResize facility if you need to wire InputTextMultiline() to a dynamic string type. See misc/cpp/imgui_stdlib.h for an example. (This is not demonstrated in imgui_demo.cpp because we don't want to include in here)"); - ImGui::CheckboxFlags("ImGuiInputTextFlags_ReadOnly", &flags, ImGuiInputTextFlags_ReadOnly); - ImGui::CheckboxFlags("ImGuiInputTextFlags_AllowTabInput", &flags, ImGuiInputTextFlags_AllowTabInput); - ImGui::CheckboxFlags("ImGuiInputTextFlags_CtrlEnterForNewLine", &flags, ImGuiInputTextFlags_CtrlEnterForNewLine); - ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16), flags); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Filtered Text Input")) - { - struct TextFilters - { - // Return 0 (pass) if the character is 'i' or 'm' or 'g' or 'u' or 'i' - static int FilterImGuiLetters(ImGuiInputTextCallbackData* data) - { - if (data->EventChar < 256 && strchr("imgui", (char)data->EventChar)) - return 0; - return 1; - } - }; - - static char buf1[64] = ""; ImGui::InputText("default", buf1, 64); - static char buf2[64] = ""; ImGui::InputText("decimal", buf2, 64, ImGuiInputTextFlags_CharsDecimal); - static char buf3[64] = ""; ImGui::InputText("hexadecimal", buf3, 64, ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase); - static char buf4[64] = ""; ImGui::InputText("uppercase", buf4, 64, ImGuiInputTextFlags_CharsUppercase); - static char buf5[64] = ""; ImGui::InputText("no blank", buf5, 64, ImGuiInputTextFlags_CharsNoBlank); - static char buf6[64] = ""; ImGui::InputText("\"imgui\" letters", buf6, 64, ImGuiInputTextFlags_CallbackCharFilter, TextFilters::FilterImGuiLetters); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Password Input")) - { - static char password[64] = "password123"; - ImGui::InputText("password", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); - ImGui::SameLine(); HelpMarker("Display all characters as '*'.\nDisable clipboard cut and copy.\nDisable logging.\n"); - ImGui::InputTextWithHint("password (w/ hint)", "", password, IM_ARRAYSIZE(password), ImGuiInputTextFlags_Password); - ImGui::InputText("password (clear)", password, IM_ARRAYSIZE(password)); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Completion, History, Edit Callbacks")) - { - struct Funcs - { - static int MyCallback(ImGuiInputTextCallbackData* data) - { - if (data->EventFlag == ImGuiInputTextFlags_CallbackCompletion) - { - data->InsertChars(data->CursorPos, ".."); - } - else if (data->EventFlag == ImGuiInputTextFlags_CallbackHistory) - { - if (data->EventKey == ImGuiKey_UpArrow) - { - data->DeleteChars(0, data->BufTextLen); - data->InsertChars(0, "Pressed Up!"); - data->SelectAll(); - } - else if (data->EventKey == ImGuiKey_DownArrow) - { - data->DeleteChars(0, data->BufTextLen); - data->InsertChars(0, "Pressed Down!"); - data->SelectAll(); - } - } - else if (data->EventFlag == ImGuiInputTextFlags_CallbackEdit) - { - // Toggle casing of first character - char c = data->Buf[0]; - if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) data->Buf[0] ^= 32; - data->BufDirty = true; - - // Increment a counter - int* p_int = (int*)data->UserData; - *p_int = *p_int + 1; - } - return 0; - } - }; - static char buf1[64]; - ImGui::InputText("Completion", buf1, 64, ImGuiInputTextFlags_CallbackCompletion, Funcs::MyCallback); - ImGui::SameLine(); HelpMarker("Here we append \"..\" each time Tab is pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); - - static char buf2[64]; - ImGui::InputText("History", buf2, 64, ImGuiInputTextFlags_CallbackHistory, Funcs::MyCallback); - ImGui::SameLine(); HelpMarker("Here we replace and select text each time Up/Down are pressed. See 'Examples>Console' for a more meaningful demonstration of using this callback."); - - static char buf3[64]; - static int edit_count = 0; - ImGui::InputText("Edit", buf3, 64, ImGuiInputTextFlags_CallbackEdit, Funcs::MyCallback, (void*)&edit_count); - ImGui::SameLine(); HelpMarker("Here we toggle the casing of the first character on every edits + count edits."); - ImGui::SameLine(); ImGui::Text("(%d)", edit_count); - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Resize Callback")) - { - // To wire InputText() with std::string or any other custom string type, - // you can use the ImGuiInputTextFlags_CallbackResize flag + create a custom ImGui::InputText() wrapper - // using your preferred type. See misc/cpp/imgui_stdlib.h for an implementation of this using std::string. - HelpMarker( - "Using ImGuiInputTextFlags_CallbackResize to wire your custom string type to InputText().\n\n" - "See misc/cpp/imgui_stdlib.h for an implementation of this for std::string."); - struct Funcs - { - static int MyResizeCallback(ImGuiInputTextCallbackData* data) - { - if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) - { - ImVector* my_str = (ImVector*)data->UserData; - IM_ASSERT(my_str->begin() == data->Buf); - my_str->resize(data->BufSize); // NB: On resizing calls, generally data->BufSize == data->BufTextLen + 1 - data->Buf = my_str->begin(); - } - return 0; - } - - // Note: Because ImGui:: is a namespace you would typically add your own function into the namespace. - // For example, you code may declare a function 'ImGui::InputText(const char* label, MyString* my_str)' - static bool MyInputTextMultiline(const char* label, ImVector* my_str, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0) - { - IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); - return ImGui::InputTextMultiline(label, my_str->begin(), (size_t)my_str->size(), size, flags | ImGuiInputTextFlags_CallbackResize, Funcs::MyResizeCallback, (void*)my_str); - } - }; - - // For this demo we are using ImVector as a string container. - // Note that because we need to store a terminating zero character, our size/capacity are 1 more - // than usually reported by a typical string class. - static ImVector my_str; - if (my_str.empty()) - my_str.push_back(0); - Funcs::MyInputTextMultiline("##MyStr", &my_str, ImVec2(-FLT_MIN, ImGui::GetTextLineHeight() * 16)); - ImGui::Text("Data: %p\nSize: %d\nCapacity: %d", (void*)my_str.begin(), my_str.size(), my_str.capacity()); - ImGui::TreePop(); - } - - ImGui::TreePop(); - } - - // Tabs - if (ImGui::TreeNode("Tabs")) - { - if (ImGui::TreeNode("Basic")) - { - ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_None; - if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) - { - if (ImGui::BeginTabItem("Avocado")) - { - ImGui::Text("This is the Avocado tab!\nblah blah blah blah blah"); - ImGui::EndTabItem(); - } - if (ImGui::BeginTabItem("Broccoli")) - { - ImGui::Text("This is the Broccoli tab!\nblah blah blah blah blah"); - ImGui::EndTabItem(); - } - if (ImGui::BeginTabItem("Cucumber")) - { - ImGui::Text("This is the Cucumber tab!\nblah blah blah blah blah"); - ImGui::EndTabItem(); - } - ImGui::EndTabBar(); - } - ImGui::Separator(); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Advanced & Close Button")) - { - // Expose a couple of the available flags. In most cases you may just call BeginTabBar() with no flags (0). - static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_Reorderable; - ImGui::CheckboxFlags("ImGuiTabBarFlags_Reorderable", &tab_bar_flags, ImGuiTabBarFlags_Reorderable); - ImGui::CheckboxFlags("ImGuiTabBarFlags_AutoSelectNewTabs", &tab_bar_flags, ImGuiTabBarFlags_AutoSelectNewTabs); - ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", &tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); - ImGui::CheckboxFlags("ImGuiTabBarFlags_NoCloseWithMiddleMouseButton", &tab_bar_flags, ImGuiTabBarFlags_NoCloseWithMiddleMouseButton); - if ((tab_bar_flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) - tab_bar_flags |= ImGuiTabBarFlags_FittingPolicyDefault_; - if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) - tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); - if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) - tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); - - // Tab Bar - const char* names[4] = { "Artichoke", "Beetroot", "Celery", "Daikon" }; - static bool opened[4] = { true, true, true, true }; // Persistent user state - for (int n = 0; n < IM_ARRAYSIZE(opened); n++) - { - if (n > 0) { ImGui::SameLine(); } - ImGui::Checkbox(names[n], &opened[n]); - } - - // Passing a bool* to BeginTabItem() is similar to passing one to Begin(): - // the underlying bool will be set to false when the tab is closed. - if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) - { - for (int n = 0; n < IM_ARRAYSIZE(opened); n++) - if (opened[n] && ImGui::BeginTabItem(names[n], &opened[n], ImGuiTabItemFlags_None)) - { - ImGui::Text("This is the %s tab!", names[n]); - if (n & 1) - ImGui::Text("I am an odd tab."); - ImGui::EndTabItem(); - } - ImGui::EndTabBar(); - } - ImGui::Separator(); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("TabItemButton & Leading/Trailing flags")) - { - static ImVector active_tabs; - static int next_tab_id = 0; - if (next_tab_id == 0) // Initialize with some default tabs - for (int i = 0; i < 3; i++) - active_tabs.push_back(next_tab_id++); - - // TabItemButton() and Leading/Trailing flags are distinct features which we will demo together. - // (It is possible to submit regular tabs with Leading/Trailing flags, or TabItemButton tabs without Leading/Trailing flags... - // but they tend to make more sense together) - static bool show_leading_button = true; - static bool show_trailing_button = true; - ImGui::Checkbox("Show Leading TabItemButton()", &show_leading_button); - ImGui::Checkbox("Show Trailing TabItemButton()", &show_trailing_button); - - // Expose some other flags which are useful to showcase how they interact with Leading/Trailing tabs - static ImGuiTabBarFlags tab_bar_flags = ImGuiTabBarFlags_AutoSelectNewTabs | ImGuiTabBarFlags_Reorderable | ImGuiTabBarFlags_FittingPolicyResizeDown; - ImGui::CheckboxFlags("ImGuiTabBarFlags_TabListPopupButton", &tab_bar_flags, ImGuiTabBarFlags_TabListPopupButton); - if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyResizeDown", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyResizeDown)) - tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyResizeDown); - if (ImGui::CheckboxFlags("ImGuiTabBarFlags_FittingPolicyScroll", &tab_bar_flags, ImGuiTabBarFlags_FittingPolicyScroll)) - tab_bar_flags &= ~(ImGuiTabBarFlags_FittingPolicyMask_ ^ ImGuiTabBarFlags_FittingPolicyScroll); - - if (ImGui::BeginTabBar("MyTabBar", tab_bar_flags)) - { - // Demo a Leading TabItemButton(): click the "?" button to open a menu - if (show_leading_button) - if (ImGui::TabItemButton("?", ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_NoTooltip)) - ImGui::OpenPopup("MyHelpMenu"); - if (ImGui::BeginPopup("MyHelpMenu")) - { - ImGui::Selectable("Hello!"); - ImGui::EndPopup(); - } - - // Demo Trailing Tabs: click the "+" button to add a new tab (in your app you may want to use a font icon instead of the "+") - // Note that we submit it before the regular tabs, but because of the ImGuiTabItemFlags_Trailing flag it will always appear at the end. - if (show_trailing_button) - if (ImGui::TabItemButton("+", ImGuiTabItemFlags_Trailing | ImGuiTabItemFlags_NoTooltip)) - active_tabs.push_back(next_tab_id++); // Add new tab - - // Submit our regular tabs - for (int n = 0; n < active_tabs.Size; ) - { - bool open = true; - char name[16]; - snprintf(name, IM_ARRAYSIZE(name), "%04d", active_tabs[n]); - if (ImGui::BeginTabItem(name, &open, ImGuiTabItemFlags_None)) - { - ImGui::Text("This is the %s tab!", name); - ImGui::EndTabItem(); - } - - if (!open) - active_tabs.erase(active_tabs.Data + n); - else - n++; - } - - ImGui::EndTabBar(); - } - ImGui::Separator(); - ImGui::TreePop(); - } - ImGui::TreePop(); - } - - // Plot/Graph widgets are not very good. - // Consider writing your own, or using a third-party one, see: - // - ImPlot https://github.com/epezent/implot - // - others https://github.com/ocornut/imgui/wiki/Useful-Widgets - if (ImGui::TreeNode("Plots Widgets")) - { - static bool animate = true; - ImGui::Checkbox("Animate", &animate); - - static float arr[] = { 0.6f, 0.1f, 1.0f, 0.5f, 0.92f, 0.1f, 0.2f }; - ImGui::PlotLines("Frame Times", arr, IM_ARRAYSIZE(arr)); - - // Fill an array of contiguous float values to plot - // Tip: If your float aren't contiguous but part of a structure, you can pass a pointer to your first float - // and the sizeof() of your structure in the "stride" parameter. - static float values[90] = {}; - static int values_offset = 0; - static double refresh_time = 0.0; - if (!animate || refresh_time == 0.0) - refresh_time = ImGui::GetTime(); - while (refresh_time < ImGui::GetTime()) // Create data at fixed 60 Hz rate for the demo - { - static float phase = 0.0f; - values[values_offset] = cosf(phase); - values_offset = (values_offset + 1) % IM_ARRAYSIZE(values); - phase += 0.10f * values_offset; - refresh_time += 1.0f / 60.0f; - } - - // Plots can display overlay texts - // (in this example, we will display an average value) - { - float average = 0.0f; - for (int n = 0; n < IM_ARRAYSIZE(values); n++) - average += values[n]; - average /= (float)IM_ARRAYSIZE(values); - char overlay[32]; - sprintf(overlay, "avg %f", average); - ImGui::PlotLines("Lines", values, IM_ARRAYSIZE(values), values_offset, overlay, -1.0f, 1.0f, ImVec2(0, 80.0f)); - } - ImGui::PlotHistogram("Histogram", arr, IM_ARRAYSIZE(arr), 0, NULL, 0.0f, 1.0f, ImVec2(0, 80.0f)); - - // Use functions to generate output - // FIXME: This is rather awkward because current plot API only pass in indices. - // We probably want an API passing floats and user provide sample rate/count. - struct Funcs - { - static float Sin(void*, int i) { return sinf(i * 0.1f); } - static float Saw(void*, int i) { return (i & 1) ? 1.0f : -1.0f; } - }; - static int func_type = 0, display_count = 70; - ImGui::Separator(); - ImGui::SetNextItemWidth(100); - ImGui::Combo("func", &func_type, "Sin\0Saw\0"); - ImGui::SameLine(); - ImGui::SliderInt("Sample count", &display_count, 1, 400); - float (*func)(void*, int) = (func_type == 0) ? Funcs::Sin : Funcs::Saw; - ImGui::PlotLines("Lines", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); - ImGui::PlotHistogram("Histogram", func, NULL, display_count, 0, NULL, -1.0f, 1.0f, ImVec2(0, 80)); - ImGui::Separator(); - - // Animate a simple progress bar - static float progress = 0.0f, progress_dir = 1.0f; - if (animate) - { - progress += progress_dir * 0.4f * ImGui::GetIO().DeltaTime; - if (progress >= +1.1f) { progress = +1.1f; progress_dir *= -1.0f; } - if (progress <= -0.1f) { progress = -0.1f; progress_dir *= -1.0f; } - } - - // Typically we would use ImVec2(-1.0f,0.0f) or ImVec2(-FLT_MIN,0.0f) to use all available width, - // or ImVec2(width,0.0f) for a specified width. ImVec2(0.0f,0.0f) uses ItemWidth. - ImGui::ProgressBar(progress, ImVec2(0.0f, 0.0f)); - ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); - ImGui::Text("Progress Bar"); - - float progress_saturated = IM_CLAMP(progress, 0.0f, 1.0f); - char buf[32]; - sprintf(buf, "%d/%d", (int)(progress_saturated * 1753), 1753); - ImGui::ProgressBar(progress, ImVec2(0.f, 0.f), buf); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Color/Picker Widgets")) - { - static ImVec4 color = ImVec4(114.0f / 255.0f, 144.0f / 255.0f, 154.0f / 255.0f, 200.0f / 255.0f); - - static bool alpha_preview = true; - static bool alpha_half_preview = false; - static bool drag_and_drop = true; - static bool options_menu = true; - static bool hdr = false; - ImGui::Checkbox("With Alpha Preview", &alpha_preview); - ImGui::Checkbox("With Half Alpha Preview", &alpha_half_preview); - ImGui::Checkbox("With Drag and Drop", &drag_and_drop); - ImGui::Checkbox("With Options Menu", &options_menu); ImGui::SameLine(); HelpMarker("Right-click on the individual color widget to show options."); - ImGui::Checkbox("With HDR", &hdr); ImGui::SameLine(); HelpMarker("Currently all this does is to lift the 0..1 limits on dragging widgets."); - ImGuiColorEditFlags misc_flags = (hdr ? ImGuiColorEditFlags_HDR : 0) | (drag_and_drop ? 0 : ImGuiColorEditFlags_NoDragDrop) | (alpha_half_preview ? ImGuiColorEditFlags_AlphaPreviewHalf : (alpha_preview ? ImGuiColorEditFlags_AlphaPreview : 0)) | (options_menu ? 0 : ImGuiColorEditFlags_NoOptions); - - ImGui::Text("Color widget:"); - ImGui::SameLine(); HelpMarker( - "Click on the color square to open a color picker.\n" - "CTRL+click on individual component to input value.\n"); - ImGui::ColorEdit3("MyColor##1", (float*)&color, misc_flags); - - ImGui::Text("Color widget HSV with Alpha:"); - ImGui::ColorEdit4("MyColor##2", (float*)&color, ImGuiColorEditFlags_DisplayHSV | misc_flags); - - ImGui::Text("Color widget with Float Display:"); - ImGui::ColorEdit4("MyColor##2f", (float*)&color, ImGuiColorEditFlags_Float | misc_flags); - - ImGui::Text("Color button with Picker:"); - ImGui::SameLine(); HelpMarker( - "With the ImGuiColorEditFlags_NoInputs flag you can hide all the slider/text inputs.\n" - "With the ImGuiColorEditFlags_NoLabel flag you can pass a non-empty label which will only " - "be used for the tooltip and picker popup."); - ImGui::ColorEdit4("MyColor##3", (float*)&color, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoLabel | misc_flags); - - ImGui::Text("Color button with Custom Picker Popup:"); - - // Generate a default palette. The palette will persist and can be edited. - static bool saved_palette_init = true; - static ImVec4 saved_palette[32] = {}; - if (saved_palette_init) - { - for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) - { - ImGui::ColorConvertHSVtoRGB(n / 31.0f, 0.8f, 0.8f, - saved_palette[n].x, saved_palette[n].y, saved_palette[n].z); - saved_palette[n].w = 1.0f; // Alpha - } - saved_palette_init = false; - } - - static ImVec4 backup_color; - bool open_popup = ImGui::ColorButton("MyColor##3b", color, misc_flags); - ImGui::SameLine(0, ImGui::GetStyle().ItemInnerSpacing.x); - open_popup |= ImGui::Button("Palette"); - if (open_popup) - { - ImGui::OpenPopup("mypicker"); - backup_color = color; - } - if (ImGui::BeginPopup("mypicker")) - { - ImGui::Text("MY CUSTOM COLOR PICKER WITH AN AMAZING PALETTE!"); - ImGui::Separator(); - ImGui::ColorPicker4("##picker", (float*)&color, misc_flags | ImGuiColorEditFlags_NoSidePreview | ImGuiColorEditFlags_NoSmallPreview); - ImGui::SameLine(); - - ImGui::BeginGroup(); // Lock X position - ImGui::Text("Current"); - ImGui::ColorButton("##current", color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40)); - ImGui::Text("Previous"); - if (ImGui::ColorButton("##previous", backup_color, ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_AlphaPreviewHalf, ImVec2(60, 40))) - color = backup_color; - ImGui::Separator(); - ImGui::Text("Palette"); - for (int n = 0; n < IM_ARRAYSIZE(saved_palette); n++) - { - ImGui::PushID(n); - if ((n % 8) != 0) - ImGui::SameLine(0.0f, ImGui::GetStyle().ItemSpacing.y); - - ImGuiColorEditFlags palette_button_flags = ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoPicker | ImGuiColorEditFlags_NoTooltip; - if (ImGui::ColorButton("##palette", saved_palette[n], palette_button_flags, ImVec2(20, 20))) - color = ImVec4(saved_palette[n].x, saved_palette[n].y, saved_palette[n].z, color.w); // Preserve alpha! - - // Allow user to drop colors into each palette entry. Note that ColorButton() is already a - // drag source by default, unless specifying the ImGuiColorEditFlags_NoDragDrop flag. - if (ImGui::BeginDragDropTarget()) - { - if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) - memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 3); - if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) - memcpy((float*)&saved_palette[n], payload->Data, sizeof(float) * 4); - ImGui::EndDragDropTarget(); - } - - ImGui::PopID(); - } - ImGui::EndGroup(); - ImGui::EndPopup(); - } - - ImGui::Text("Color button only:"); - static bool no_border = false; - ImGui::Checkbox("ImGuiColorEditFlags_NoBorder", &no_border); - ImGui::ColorButton("MyColor##3c", *(ImVec4*)&color, misc_flags | (no_border ? ImGuiColorEditFlags_NoBorder : 0), ImVec2(80, 80)); - - ImGui::Text("Color picker:"); - static bool alpha = true; - static bool alpha_bar = true; - static bool side_preview = true; - static bool ref_color = false; - static ImVec4 ref_color_v(1.0f, 0.0f, 1.0f, 0.5f); - static int display_mode = 0; - static int picker_mode = 0; - ImGui::Checkbox("With Alpha", &alpha); - ImGui::Checkbox("With Alpha Bar", &alpha_bar); - ImGui::Checkbox("With Side Preview", &side_preview); - if (side_preview) - { - ImGui::SameLine(); - ImGui::Checkbox("With Ref Color", &ref_color); - if (ref_color) - { - ImGui::SameLine(); - ImGui::ColorEdit4("##RefColor", &ref_color_v.x, ImGuiColorEditFlags_NoInputs | misc_flags); - } - } - ImGui::Combo("Display Mode", &display_mode, "Auto/Current\0None\0RGB Only\0HSV Only\0Hex Only\0"); - ImGui::SameLine(); HelpMarker( - "ColorEdit defaults to displaying RGB inputs if you don't specify a display mode, " - "but the user can change it with a right-click.\n\nColorPicker defaults to displaying RGB+HSV+Hex " - "if you don't specify a display mode.\n\nYou can change the defaults using SetColorEditOptions()."); - ImGui::Combo("Picker Mode", &picker_mode, "Auto/Current\0Hue bar + SV rect\0Hue wheel + SV triangle\0"); - ImGui::SameLine(); HelpMarker("User can right-click the picker to change mode."); - ImGuiColorEditFlags flags = misc_flags; - if (!alpha) flags |= ImGuiColorEditFlags_NoAlpha; // This is by default if you call ColorPicker3() instead of ColorPicker4() - if (alpha_bar) flags |= ImGuiColorEditFlags_AlphaBar; - if (!side_preview) flags |= ImGuiColorEditFlags_NoSidePreview; - if (picker_mode == 1) flags |= ImGuiColorEditFlags_PickerHueBar; - if (picker_mode == 2) flags |= ImGuiColorEditFlags_PickerHueWheel; - if (display_mode == 1) flags |= ImGuiColorEditFlags_NoInputs; // Disable all RGB/HSV/Hex displays - if (display_mode == 2) flags |= ImGuiColorEditFlags_DisplayRGB; // Override display mode - if (display_mode == 3) flags |= ImGuiColorEditFlags_DisplayHSV; - if (display_mode == 4) flags |= ImGuiColorEditFlags_DisplayHex; - ImGui::ColorPicker4("MyColor##4", (float*)&color, flags, ref_color ? &ref_color_v.x : NULL); - - ImGui::Text("Set defaults in code:"); - ImGui::SameLine(); HelpMarker( - "SetColorEditOptions() is designed to allow you to set boot-time default.\n" - "We don't have Push/Pop functions because you can force options on a per-widget basis if needed," - "and the user can change non-forced ones with the options menu.\nWe don't have a getter to avoid" - "encouraging you to persistently save values that aren't forward-compatible."); - if (ImGui::Button("Default: Uint8 + HSV + Hue Bar")) - ImGui::SetColorEditOptions(ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_PickerHueBar); - if (ImGui::Button("Default: Float + HDR + Hue Wheel")) - ImGui::SetColorEditOptions(ImGuiColorEditFlags_Float | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_PickerHueWheel); - - // HSV encoded support (to avoid RGB<>HSV round trips and singularities when S==0 or V==0) - static ImVec4 color_hsv(0.23f, 1.0f, 1.0f, 1.0f); // Stored as HSV! - ImGui::Spacing(); - ImGui::Text("HSV encoded colors"); - ImGui::SameLine(); HelpMarker( - "By default, colors are given to ColorEdit and ColorPicker in RGB, but ImGuiColorEditFlags_InputHSV" - "allows you to store colors as HSV and pass them to ColorEdit and ColorPicker as HSV. This comes with the" - "added benefit that you can manipulate hue values with the picker even when saturation or value are zero."); - ImGui::Text("Color widget with InputHSV:"); - ImGui::ColorEdit4("HSV shown as RGB##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); - ImGui::ColorEdit4("HSV shown as HSV##1", (float*)&color_hsv, ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_InputHSV | ImGuiColorEditFlags_Float); - ImGui::DragFloat4("Raw HSV values", (float*)&color_hsv, 0.01f, 0.0f, 1.0f); - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Drag/Slider Flags")) - { - // Demonstrate using advanced flags for DragXXX and SliderXXX functions. Note that the flags are the same! - static ImGuiSliderFlags flags = ImGuiSliderFlags_None; - ImGui::CheckboxFlags("ImGuiSliderFlags_AlwaysClamp", &flags, ImGuiSliderFlags_AlwaysClamp); - ImGui::SameLine(); HelpMarker("Always clamp value to min/max bounds (if any) when input manually with CTRL+Click."); - ImGui::CheckboxFlags("ImGuiSliderFlags_Logarithmic", &flags, ImGuiSliderFlags_Logarithmic); - ImGui::SameLine(); HelpMarker("Enable logarithmic editing (more precision for small values)."); - ImGui::CheckboxFlags("ImGuiSliderFlags_NoRoundToFormat", &flags, ImGuiSliderFlags_NoRoundToFormat); - ImGui::SameLine(); HelpMarker("Disable rounding underlying value to match precision of the format string (e.g. %.3f values are rounded to those 3 digits)."); - ImGui::CheckboxFlags("ImGuiSliderFlags_NoInput", &flags, ImGuiSliderFlags_NoInput); - ImGui::SameLine(); HelpMarker("Disable CTRL+Click or Enter key allowing to input text directly into the widget."); - - // Drags - static float drag_f = 0.5f; - static int drag_i = 50; - ImGui::Text("Underlying float value: %f", drag_f); - ImGui::DragFloat("DragFloat (0 -> 1)", &drag_f, 0.005f, 0.0f, 1.0f, "%.3f", flags); - ImGui::DragFloat("DragFloat (0 -> +inf)", &drag_f, 0.005f, 0.0f, FLT_MAX, "%.3f", flags); - ImGui::DragFloat("DragFloat (-inf -> 1)", &drag_f, 0.005f, -FLT_MAX, 1.0f, "%.3f", flags); - ImGui::DragFloat("DragFloat (-inf -> +inf)", &drag_f, 0.005f, -FLT_MAX, +FLT_MAX, "%.3f", flags); - ImGui::DragInt("DragInt (0 -> 100)", &drag_i, 0.5f, 0, 100, "%d", flags); - - // Sliders - static float slider_f = 0.5f; - static int slider_i = 50; - ImGui::Text("Underlying float value: %f", slider_f); - ImGui::SliderFloat("SliderFloat (0 -> 1)", &slider_f, 0.0f, 1.0f, "%.3f", flags); - ImGui::SliderInt("SliderInt (0 -> 100)", &slider_i, 0, 100, "%d", flags); - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Range Widgets")) - { - static float begin = 10, end = 90; - static int begin_i = 100, end_i = 1000; - ImGui::DragFloatRange2("range float", &begin, &end, 0.25f, 0.0f, 100.0f, "Min: %.1f %%", "Max: %.1f %%", ImGuiSliderFlags_AlwaysClamp); - ImGui::DragIntRange2("range int", &begin_i, &end_i, 5, 0, 1000, "Min: %d units", "Max: %d units"); - ImGui::DragIntRange2("range int (no bounds)", &begin_i, &end_i, 5, 0, 0, "Min: %d units", "Max: %d units"); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Data Types")) - { - // DragScalar/InputScalar/SliderScalar functions allow various data types - // - signed/unsigned - // - 8/16/32/64-bits - // - integer/float/double - // To avoid polluting the public API with all possible combinations, we use the ImGuiDataType enum - // to pass the type, and passing all arguments by pointer. - // This is the reason the test code below creates local variables to hold "zero" "one" etc. for each types. - // In practice, if you frequently use a given type that is not covered by the normal API entry points, - // you can wrap it yourself inside a 1 line function which can take typed argument as value instead of void*, - // and then pass their address to the generic function. For example: - // bool MySliderU64(const char *label, u64* value, u64 min = 0, u64 max = 0, const char* format = "%lld") - // { - // return SliderScalar(label, ImGuiDataType_U64, value, &min, &max, format); - // } - - // Setup limits (as helper variables so we can take their address, as explained above) - // Note: SliderScalar() functions have a maximum usable range of half the natural type maximum, hence the /2. - #ifndef LLONG_MIN - ImS64 LLONG_MIN = -9223372036854775807LL - 1; - ImS64 LLONG_MAX = 9223372036854775807LL; - ImU64 ULLONG_MAX = (2ULL * 9223372036854775807LL + 1); - #endif - const char s8_zero = 0, s8_one = 1, s8_fifty = 50, s8_min = -128, s8_max = 127; - const ImU8 u8_zero = 0, u8_one = 1, u8_fifty = 50, u8_min = 0, u8_max = 255; - const short s16_zero = 0, s16_one = 1, s16_fifty = 50, s16_min = -32768, s16_max = 32767; - const ImU16 u16_zero = 0, u16_one = 1, u16_fifty = 50, u16_min = 0, u16_max = 65535; - const ImS32 s32_zero = 0, s32_one = 1, s32_fifty = 50, s32_min = INT_MIN/2, s32_max = INT_MAX/2, s32_hi_a = INT_MAX/2 - 100, s32_hi_b = INT_MAX/2; - const ImU32 u32_zero = 0, u32_one = 1, u32_fifty = 50, u32_min = 0, u32_max = UINT_MAX/2, u32_hi_a = UINT_MAX/2 - 100, u32_hi_b = UINT_MAX/2; - const ImS64 s64_zero = 0, s64_one = 1, s64_fifty = 50, s64_min = LLONG_MIN/2, s64_max = LLONG_MAX/2, s64_hi_a = LLONG_MAX/2 - 100, s64_hi_b = LLONG_MAX/2; - const ImU64 u64_zero = 0, u64_one = 1, u64_fifty = 50, u64_min = 0, u64_max = ULLONG_MAX/2, u64_hi_a = ULLONG_MAX/2 - 100, u64_hi_b = ULLONG_MAX/2; - const float f32_zero = 0.f, f32_one = 1.f, f32_lo_a = -10000000000.0f, f32_hi_a = +10000000000.0f; - const double f64_zero = 0., f64_one = 1., f64_lo_a = -1000000000000000.0, f64_hi_a = +1000000000000000.0; - - // State - static char s8_v = 127; - static ImU8 u8_v = 255; - static short s16_v = 32767; - static ImU16 u16_v = 65535; - static ImS32 s32_v = -1; - static ImU32 u32_v = (ImU32)-1; - static ImS64 s64_v = -1; - static ImU64 u64_v = (ImU64)-1; - static float f32_v = 0.123f; - static double f64_v = 90000.01234567890123456789; - - const float drag_speed = 0.2f; - static bool drag_clamp = false; - ImGui::Text("Drags:"); - ImGui::Checkbox("Clamp integers to 0..50", &drag_clamp); - ImGui::SameLine(); HelpMarker( - "As with every widgets in dear imgui, we never modify values unless there is a user interaction.\n" - "You can override the clamping limits by using CTRL+Click to input a value."); - ImGui::DragScalar("drag s8", ImGuiDataType_S8, &s8_v, drag_speed, drag_clamp ? &s8_zero : NULL, drag_clamp ? &s8_fifty : NULL); - ImGui::DragScalar("drag u8", ImGuiDataType_U8, &u8_v, drag_speed, drag_clamp ? &u8_zero : NULL, drag_clamp ? &u8_fifty : NULL, "%u ms"); - ImGui::DragScalar("drag s16", ImGuiDataType_S16, &s16_v, drag_speed, drag_clamp ? &s16_zero : NULL, drag_clamp ? &s16_fifty : NULL); - ImGui::DragScalar("drag u16", ImGuiDataType_U16, &u16_v, drag_speed, drag_clamp ? &u16_zero : NULL, drag_clamp ? &u16_fifty : NULL, "%u ms"); - ImGui::DragScalar("drag s32", ImGuiDataType_S32, &s32_v, drag_speed, drag_clamp ? &s32_zero : NULL, drag_clamp ? &s32_fifty : NULL); - ImGui::DragScalar("drag u32", ImGuiDataType_U32, &u32_v, drag_speed, drag_clamp ? &u32_zero : NULL, drag_clamp ? &u32_fifty : NULL, "%u ms"); - ImGui::DragScalar("drag s64", ImGuiDataType_S64, &s64_v, drag_speed, drag_clamp ? &s64_zero : NULL, drag_clamp ? &s64_fifty : NULL); - ImGui::DragScalar("drag u64", ImGuiDataType_U64, &u64_v, drag_speed, drag_clamp ? &u64_zero : NULL, drag_clamp ? &u64_fifty : NULL); - ImGui::DragScalar("drag float", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f"); - ImGui::DragScalar("drag float log", ImGuiDataType_Float, &f32_v, 0.005f, &f32_zero, &f32_one, "%f", ImGuiSliderFlags_Logarithmic); - ImGui::DragScalar("drag double", ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, NULL, "%.10f grams"); - ImGui::DragScalar("drag double log",ImGuiDataType_Double, &f64_v, 0.0005f, &f64_zero, &f64_one, "0 < %.10f < 1", ImGuiSliderFlags_Logarithmic); - - ImGui::Text("Sliders"); - ImGui::SliderScalar("slider s8 full", ImGuiDataType_S8, &s8_v, &s8_min, &s8_max, "%d"); - ImGui::SliderScalar("slider u8 full", ImGuiDataType_U8, &u8_v, &u8_min, &u8_max, "%u"); - ImGui::SliderScalar("slider s16 full", ImGuiDataType_S16, &s16_v, &s16_min, &s16_max, "%d"); - ImGui::SliderScalar("slider u16 full", ImGuiDataType_U16, &u16_v, &u16_min, &u16_max, "%u"); - ImGui::SliderScalar("slider s32 low", ImGuiDataType_S32, &s32_v, &s32_zero, &s32_fifty,"%d"); - ImGui::SliderScalar("slider s32 high", ImGuiDataType_S32, &s32_v, &s32_hi_a, &s32_hi_b, "%d"); - ImGui::SliderScalar("slider s32 full", ImGuiDataType_S32, &s32_v, &s32_min, &s32_max, "%d"); - ImGui::SliderScalar("slider u32 low", ImGuiDataType_U32, &u32_v, &u32_zero, &u32_fifty,"%u"); - ImGui::SliderScalar("slider u32 high", ImGuiDataType_U32, &u32_v, &u32_hi_a, &u32_hi_b, "%u"); - ImGui::SliderScalar("slider u32 full", ImGuiDataType_U32, &u32_v, &u32_min, &u32_max, "%u"); - ImGui::SliderScalar("slider s64 low", ImGuiDataType_S64, &s64_v, &s64_zero, &s64_fifty,"%" IM_PRId64); - ImGui::SliderScalar("slider s64 high", ImGuiDataType_S64, &s64_v, &s64_hi_a, &s64_hi_b, "%" IM_PRId64); - ImGui::SliderScalar("slider s64 full", ImGuiDataType_S64, &s64_v, &s64_min, &s64_max, "%" IM_PRId64); - ImGui::SliderScalar("slider u64 low", ImGuiDataType_U64, &u64_v, &u64_zero, &u64_fifty,"%" IM_PRIu64 " ms"); - ImGui::SliderScalar("slider u64 high", ImGuiDataType_U64, &u64_v, &u64_hi_a, &u64_hi_b, "%" IM_PRIu64 " ms"); - ImGui::SliderScalar("slider u64 full", ImGuiDataType_U64, &u64_v, &u64_min, &u64_max, "%" IM_PRIu64 " ms"); - ImGui::SliderScalar("slider float low", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one); - ImGui::SliderScalar("slider float low log", ImGuiDataType_Float, &f32_v, &f32_zero, &f32_one, "%.10f", ImGuiSliderFlags_Logarithmic); - ImGui::SliderScalar("slider float high", ImGuiDataType_Float, &f32_v, &f32_lo_a, &f32_hi_a, "%e"); - ImGui::SliderScalar("slider double low", ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f grams"); - ImGui::SliderScalar("slider double low log",ImGuiDataType_Double, &f64_v, &f64_zero, &f64_one, "%.10f", ImGuiSliderFlags_Logarithmic); - ImGui::SliderScalar("slider double high", ImGuiDataType_Double, &f64_v, &f64_lo_a, &f64_hi_a, "%e grams"); - - ImGui::Text("Sliders (reverse)"); - ImGui::SliderScalar("slider s8 reverse", ImGuiDataType_S8, &s8_v, &s8_max, &s8_min, "%d"); - ImGui::SliderScalar("slider u8 reverse", ImGuiDataType_U8, &u8_v, &u8_max, &u8_min, "%u"); - ImGui::SliderScalar("slider s32 reverse", ImGuiDataType_S32, &s32_v, &s32_fifty, &s32_zero, "%d"); - ImGui::SliderScalar("slider u32 reverse", ImGuiDataType_U32, &u32_v, &u32_fifty, &u32_zero, "%u"); - ImGui::SliderScalar("slider s64 reverse", ImGuiDataType_S64, &s64_v, &s64_fifty, &s64_zero, "%" IM_PRId64); - ImGui::SliderScalar("slider u64 reverse", ImGuiDataType_U64, &u64_v, &u64_fifty, &u64_zero, "%" IM_PRIu64 " ms"); - - static bool inputs_step = true; - ImGui::Text("Inputs"); - ImGui::Checkbox("Show step buttons", &inputs_step); - ImGui::InputScalar("input s8", ImGuiDataType_S8, &s8_v, inputs_step ? &s8_one : NULL, NULL, "%d"); - ImGui::InputScalar("input u8", ImGuiDataType_U8, &u8_v, inputs_step ? &u8_one : NULL, NULL, "%u"); - ImGui::InputScalar("input s16", ImGuiDataType_S16, &s16_v, inputs_step ? &s16_one : NULL, NULL, "%d"); - ImGui::InputScalar("input u16", ImGuiDataType_U16, &u16_v, inputs_step ? &u16_one : NULL, NULL, "%u"); - ImGui::InputScalar("input s32", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%d"); - ImGui::InputScalar("input s32 hex", ImGuiDataType_S32, &s32_v, inputs_step ? &s32_one : NULL, NULL, "%08X", ImGuiInputTextFlags_CharsHexadecimal); - ImGui::InputScalar("input u32", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%u"); - ImGui::InputScalar("input u32 hex", ImGuiDataType_U32, &u32_v, inputs_step ? &u32_one : NULL, NULL, "%08X", ImGuiInputTextFlags_CharsHexadecimal); - ImGui::InputScalar("input s64", ImGuiDataType_S64, &s64_v, inputs_step ? &s64_one : NULL); - ImGui::InputScalar("input u64", ImGuiDataType_U64, &u64_v, inputs_step ? &u64_one : NULL); - ImGui::InputScalar("input float", ImGuiDataType_Float, &f32_v, inputs_step ? &f32_one : NULL); - ImGui::InputScalar("input double", ImGuiDataType_Double, &f64_v, inputs_step ? &f64_one : NULL); - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Multi-component Widgets")) - { - static float vec4f[4] = { 0.10f, 0.20f, 0.30f, 0.44f }; - static int vec4i[4] = { 1, 5, 100, 255 }; - - ImGui::InputFloat2("input float2", vec4f); - ImGui::DragFloat2("drag float2", vec4f, 0.01f, 0.0f, 1.0f); - ImGui::SliderFloat2("slider float2", vec4f, 0.0f, 1.0f); - ImGui::InputInt2("input int2", vec4i); - ImGui::DragInt2("drag int2", vec4i, 1, 0, 255); - ImGui::SliderInt2("slider int2", vec4i, 0, 255); - ImGui::Spacing(); - - ImGui::InputFloat3("input float3", vec4f); - ImGui::DragFloat3("drag float3", vec4f, 0.01f, 0.0f, 1.0f); - ImGui::SliderFloat3("slider float3", vec4f, 0.0f, 1.0f); - ImGui::InputInt3("input int3", vec4i); - ImGui::DragInt3("drag int3", vec4i, 1, 0, 255); - ImGui::SliderInt3("slider int3", vec4i, 0, 255); - ImGui::Spacing(); - - ImGui::InputFloat4("input float4", vec4f); - ImGui::DragFloat4("drag float4", vec4f, 0.01f, 0.0f, 1.0f); - ImGui::SliderFloat4("slider float4", vec4f, 0.0f, 1.0f); - ImGui::InputInt4("input int4", vec4i); - ImGui::DragInt4("drag int4", vec4i, 1, 0, 255); - ImGui::SliderInt4("slider int4", vec4i, 0, 255); - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Vertical Sliders")) - { - const float spacing = 4; - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(spacing, spacing)); - - static int int_value = 0; - ImGui::VSliderInt("##int", ImVec2(18, 160), &int_value, 0, 5); - ImGui::SameLine(); - - static float values[7] = { 0.0f, 0.60f, 0.35f, 0.9f, 0.70f, 0.20f, 0.0f }; - ImGui::PushID("set1"); - for (int i = 0; i < 7; i++) - { - if (i > 0) ImGui::SameLine(); - ImGui::PushID(i); - ImGui::PushStyleColor(ImGuiCol_FrameBg, (ImVec4)ImColor::HSV(i / 7.0f, 0.5f, 0.5f)); - ImGui::PushStyleColor(ImGuiCol_FrameBgHovered, (ImVec4)ImColor::HSV(i / 7.0f, 0.6f, 0.5f)); - ImGui::PushStyleColor(ImGuiCol_FrameBgActive, (ImVec4)ImColor::HSV(i / 7.0f, 0.7f, 0.5f)); - ImGui::PushStyleColor(ImGuiCol_SliderGrab, (ImVec4)ImColor::HSV(i / 7.0f, 0.9f, 0.9f)); - ImGui::VSliderFloat("##v", ImVec2(18, 160), &values[i], 0.0f, 1.0f, ""); - if (ImGui::IsItemActive() || ImGui::IsItemHovered()) - ImGui::SetTooltip("%.3f", values[i]); - ImGui::PopStyleColor(4); - ImGui::PopID(); - } - ImGui::PopID(); - - ImGui::SameLine(); - ImGui::PushID("set2"); - static float values2[4] = { 0.20f, 0.80f, 0.40f, 0.25f }; - const int rows = 3; - const ImVec2 small_slider_size(18, (float)(int)((160.0f - (rows - 1) * spacing) / rows)); - for (int nx = 0; nx < 4; nx++) - { - if (nx > 0) ImGui::SameLine(); - ImGui::BeginGroup(); - for (int ny = 0; ny < rows; ny++) - { - ImGui::PushID(nx * rows + ny); - ImGui::VSliderFloat("##v", small_slider_size, &values2[nx], 0.0f, 1.0f, ""); - if (ImGui::IsItemActive() || ImGui::IsItemHovered()) - ImGui::SetTooltip("%.3f", values2[nx]); - ImGui::PopID(); - } - ImGui::EndGroup(); - } - ImGui::PopID(); - - ImGui::SameLine(); - ImGui::PushID("set3"); - for (int i = 0; i < 4; i++) - { - if (i > 0) ImGui::SameLine(); - ImGui::PushID(i); - ImGui::PushStyleVar(ImGuiStyleVar_GrabMinSize, 40); - ImGui::VSliderFloat("##v", ImVec2(40, 160), &values[i], 0.0f, 1.0f, "%.2f\nsec"); - ImGui::PopStyleVar(); - ImGui::PopID(); - } - ImGui::PopID(); - ImGui::PopStyleVar(); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Drag and Drop")) - { - if (ImGui::TreeNode("Drag and drop in standard widgets")) - { - // ColorEdit widgets automatically act as drag source and drag target. - // They are using standardized payload strings IMGUI_PAYLOAD_TYPE_COLOR_3F and IMGUI_PAYLOAD_TYPE_COLOR_4F - // to allow your own widgets to use colors in their drag and drop interaction. - // Also see 'Demo->Widgets->Color/Picker Widgets->Palette' demo. - HelpMarker("You can drag from the color squares."); - static float col1[3] = { 1.0f, 0.0f, 0.2f }; - static float col2[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; - ImGui::ColorEdit3("color 1", col1); - ImGui::ColorEdit4("color 2", col2); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Drag and drop to copy/swap items")) - { - enum Mode - { - Mode_Copy, - Mode_Move, - Mode_Swap - }; - static int mode = 0; - if (ImGui::RadioButton("Copy", mode == Mode_Copy)) { mode = Mode_Copy; } ImGui::SameLine(); - if (ImGui::RadioButton("Move", mode == Mode_Move)) { mode = Mode_Move; } ImGui::SameLine(); - if (ImGui::RadioButton("Swap", mode == Mode_Swap)) { mode = Mode_Swap; } - static const char* names[9] = - { - "Bobby", "Beatrice", "Betty", - "Brianna", "Barry", "Bernard", - "Bibi", "Blaine", "Bryn" - }; - for (int n = 0; n < IM_ARRAYSIZE(names); n++) - { - ImGui::PushID(n); - if ((n % 3) != 0) - ImGui::SameLine(); - ImGui::Button(names[n], ImVec2(60, 60)); - - // Our buttons are both drag sources and drag targets here! - if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_None)) - { - // Set payload to carry the index of our item (could be anything) - ImGui::SetDragDropPayload("DND_DEMO_CELL", &n, sizeof(int)); - - // Display preview (could be anything, e.g. when dragging an image we could decide to display - // the filename and a small preview of the image, etc.) - if (mode == Mode_Copy) { ImGui::Text("Copy %s", names[n]); } - if (mode == Mode_Move) { ImGui::Text("Move %s", names[n]); } - if (mode == Mode_Swap) { ImGui::Text("Swap %s", names[n]); } - ImGui::EndDragDropSource(); - } - if (ImGui::BeginDragDropTarget()) - { - if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload("DND_DEMO_CELL")) - { - IM_ASSERT(payload->DataSize == sizeof(int)); - int payload_n = *(const int*)payload->Data; - if (mode == Mode_Copy) - { - names[n] = names[payload_n]; - } - if (mode == Mode_Move) - { - names[n] = names[payload_n]; - names[payload_n] = ""; - } - if (mode == Mode_Swap) - { - const char* tmp = names[n]; - names[n] = names[payload_n]; - names[payload_n] = tmp; - } - } - ImGui::EndDragDropTarget(); - } - ImGui::PopID(); - } - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Drag to reorder items (simple)")) - { - // Simple reordering - HelpMarker( - "We don't use the drag and drop api at all here! " - "Instead we query when the item is held but not hovered, and order items accordingly."); - static const char* item_names[] = { "Item One", "Item Two", "Item Three", "Item Four", "Item Five" }; - for (int n = 0; n < IM_ARRAYSIZE(item_names); n++) - { - const char* item = item_names[n]; - ImGui::Selectable(item); - - if (ImGui::IsItemActive() && !ImGui::IsItemHovered()) - { - int n_next = n + (ImGui::GetMouseDragDelta(0).y < 0.f ? -1 : 1); - if (n_next >= 0 && n_next < IM_ARRAYSIZE(item_names)) - { - item_names[n] = item_names[n_next]; - item_names[n_next] = item; - ImGui::ResetMouseDragDelta(); - } - } - } - ImGui::TreePop(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Querying Status (Edited/Active/Focused/Hovered etc.)")) - { - // Select an item type - const char* item_names[] = - { - "Text", "Button", "Button (w/ repeat)", "Checkbox", "SliderFloat", "InputText", "InputFloat", - "InputFloat3", "ColorEdit4", "MenuItem", "TreeNode", "TreeNode (w/ double-click)", "Combo", "ListBox" - }; - static int item_type = 1; - ImGui::Combo("Item Type", &item_type, item_names, IM_ARRAYSIZE(item_names), IM_ARRAYSIZE(item_names)); - ImGui::SameLine(); - HelpMarker("Testing how various types of items are interacting with the IsItemXXX functions. Note that the bool return value of most ImGui function is generally equivalent to calling ImGui::IsItemHovered()."); - - // Submit selected item item so we can query their status in the code following it. - bool ret = false; - static bool b = false; - static float col4f[4] = { 1.0f, 0.5, 0.0f, 1.0f }; - static char str[16] = {}; - if (item_type == 0) { ImGui::Text("ITEM: Text"); } // Testing text items with no identifier/interaction - if (item_type == 1) { ret = ImGui::Button("ITEM: Button"); } // Testing button - if (item_type == 2) { ImGui::PushButtonRepeat(true); ret = ImGui::Button("ITEM: Button"); ImGui::PopButtonRepeat(); } // Testing button (with repeater) - if (item_type == 3) { ret = ImGui::Checkbox("ITEM: Checkbox", &b); } // Testing checkbox - if (item_type == 4) { ret = ImGui::SliderFloat("ITEM: SliderFloat", &col4f[0], 0.0f, 1.0f); } // Testing basic item - if (item_type == 5) { ret = ImGui::InputText("ITEM: InputText", &str[0], IM_ARRAYSIZE(str)); } // Testing input text (which handles tabbing) - if (item_type == 6) { ret = ImGui::InputFloat("ITEM: InputFloat", col4f, 1.0f); } // Testing +/- buttons on scalar input - if (item_type == 7) { ret = ImGui::InputFloat3("ITEM: InputFloat3", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) - if (item_type == 8) { ret = ImGui::ColorEdit4("ITEM: ColorEdit4", col4f); } // Testing multi-component items (IsItemXXX flags are reported merged) - if (item_type == 9) { ret = ImGui::MenuItem("ITEM: MenuItem"); } // Testing menu item (they use ImGuiButtonFlags_PressedOnRelease button policy) - if (item_type == 10){ ret = ImGui::TreeNode("ITEM: TreeNode"); if (ret) ImGui::TreePop(); } // Testing tree node - if (item_type == 11){ ret = ImGui::TreeNodeEx("ITEM: TreeNode w/ ImGuiTreeNodeFlags_OpenOnDoubleClick", ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_NoTreePushOnOpen); } // Testing tree node with ImGuiButtonFlags_PressedOnDoubleClick button policy. - if (item_type == 12){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::Combo("ITEM: Combo", ¤t, items, IM_ARRAYSIZE(items)); } - if (item_type == 13){ const char* items[] = { "Apple", "Banana", "Cherry", "Kiwi" }; static int current = 1; ret = ImGui::ListBox("ITEM: ListBox", ¤t, items, IM_ARRAYSIZE(items), IM_ARRAYSIZE(items)); } - - // Display the values of IsItemHovered() and other common item state functions. - // Note that the ImGuiHoveredFlags_XXX flags can be combined. - // Because BulletText is an item itself and that would affect the output of IsItemXXX functions, - // we query every state in a single call to avoid storing them and to simplify the code. - ImGui::BulletText( - "Return value = %d\n" - "IsItemFocused() = %d\n" - "IsItemHovered() = %d\n" - "IsItemHovered(_AllowWhenBlockedByPopup) = %d\n" - "IsItemHovered(_AllowWhenBlockedByActiveItem) = %d\n" - "IsItemHovered(_AllowWhenOverlapped) = %d\n" - "IsItemHovered(_RectOnly) = %d\n" - "IsItemActive() = %d\n" - "IsItemEdited() = %d\n" - "IsItemActivated() = %d\n" - "IsItemDeactivated() = %d\n" - "IsItemDeactivatedAfterEdit() = %d\n" - "IsItemVisible() = %d\n" - "IsItemClicked() = %d\n" - "IsItemToggledOpen() = %d\n" - "GetItemRectMin() = (%.1f, %.1f)\n" - "GetItemRectMax() = (%.1f, %.1f)\n" - "GetItemRectSize() = (%.1f, %.1f)", - ret, - ImGui::IsItemFocused(), - ImGui::IsItemHovered(), - ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), - ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), - ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenOverlapped), - ImGui::IsItemHovered(ImGuiHoveredFlags_RectOnly), - ImGui::IsItemActive(), - ImGui::IsItemEdited(), - ImGui::IsItemActivated(), - ImGui::IsItemDeactivated(), - ImGui::IsItemDeactivatedAfterEdit(), - ImGui::IsItemVisible(), - ImGui::IsItemClicked(), - ImGui::IsItemToggledOpen(), - ImGui::GetItemRectMin().x, ImGui::GetItemRectMin().y, - ImGui::GetItemRectMax().x, ImGui::GetItemRectMax().y, - ImGui::GetItemRectSize().x, ImGui::GetItemRectSize().y - ); - - static bool embed_all_inside_a_child_window = false; - ImGui::Checkbox("Embed everything inside a child window (for additional testing)", &embed_all_inside_a_child_window); - if (embed_all_inside_a_child_window) - ImGui::BeginChild("outer_child", ImVec2(0, ImGui::GetFontSize() * 20.0f), true); - - // Testing IsWindowFocused() function with its various flags. - // Note that the ImGuiFocusedFlags_XXX flags can be combined. - ImGui::BulletText( - "IsWindowFocused() = %d\n" - "IsWindowFocused(_ChildWindows) = %d\n" - "IsWindowFocused(_ChildWindows|_RootWindow) = %d\n" - "IsWindowFocused(_RootWindow) = %d\n" - "IsWindowFocused(_AnyWindow) = %d\n", - ImGui::IsWindowFocused(), - ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows), - ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_RootWindow), - ImGui::IsWindowFocused(ImGuiFocusedFlags_RootWindow), - ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow)); - - // Testing IsWindowHovered() function with its various flags. - // Note that the ImGuiHoveredFlags_XXX flags can be combined. - ImGui::BulletText( - "IsWindowHovered() = %d\n" - "IsWindowHovered(_AllowWhenBlockedByPopup) = %d\n" - "IsWindowHovered(_AllowWhenBlockedByActiveItem) = %d\n" - "IsWindowHovered(_ChildWindows) = %d\n" - "IsWindowHovered(_ChildWindows|_RootWindow) = %d\n" - "IsWindowHovered(_ChildWindows|_AllowWhenBlockedByPopup) = %d\n" - "IsWindowHovered(_RootWindow) = %d\n" - "IsWindowHovered(_AnyWindow) = %d\n", - ImGui::IsWindowHovered(), - ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup), - ImGui::IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem), - ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows), - ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_RootWindow), - ImGui::IsWindowHovered(ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByPopup), - ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow), - ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow)); - - ImGui::BeginChild("child", ImVec2(0, 50), true); - ImGui::Text("This is another child window for testing the _ChildWindows flag."); - ImGui::EndChild(); - if (embed_all_inside_a_child_window) - ImGui::EndChild(); - - static char unused_str[] = "This widget is only here to be able to tab-out of the widgets above."; - ImGui::InputText("unused", unused_str, IM_ARRAYSIZE(unused_str), ImGuiInputTextFlags_ReadOnly); - - // Calling IsItemHovered() after begin returns the hovered status of the title bar. - // This is useful in particular if you want to create a context menu associated to the title bar of a window. - static bool test_window = false; - ImGui::Checkbox("Hovered/Active tests after Begin() for title bar testing", &test_window); - if (test_window) - { - ImGui::Begin("Title bar Hovered/Active tests", &test_window); - if (ImGui::BeginPopupContextItem()) // <-- This is using IsItemHovered() - { - if (ImGui::MenuItem("Close")) { test_window = false; } - ImGui::EndPopup(); - } - ImGui::Text( - "IsItemHovered() after begin = %d (== is title bar hovered)\n" - "IsItemActive() after begin = %d (== is window being clicked/moved)\n", - ImGui::IsItemHovered(), ImGui::IsItemActive()); - ImGui::End(); - } - - ImGui::TreePop(); - } -} - -static void ShowDemoWindowLayout() -{ - if (!ImGui::CollapsingHeader("Layout & Scrolling")) - return; - - if (ImGui::TreeNode("Child windows")) - { - HelpMarker("Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window."); - static bool disable_mouse_wheel = false; - static bool disable_menu = false; - ImGui::Checkbox("Disable Mouse Wheel", &disable_mouse_wheel); - ImGui::Checkbox("Disable Menu", &disable_menu); - - // Child 1: no border, enable horizontal scrollbar - { - ImGuiWindowFlags window_flags = ImGuiWindowFlags_HorizontalScrollbar; - if (disable_mouse_wheel) - window_flags |= ImGuiWindowFlags_NoScrollWithMouse; - ImGui::BeginChild("ChildL", ImVec2(ImGui::GetWindowContentRegionWidth() * 0.5f, 260), false, window_flags); - for (int i = 0; i < 100; i++) - ImGui::Text("%04d: scrollable region", i); - ImGui::EndChild(); - } - - ImGui::SameLine(); - - // Child 2: rounded border - { - ImGuiWindowFlags window_flags = ImGuiWindowFlags_None; - if (disable_mouse_wheel) - window_flags |= ImGuiWindowFlags_NoScrollWithMouse; - if (!disable_menu) - window_flags |= ImGuiWindowFlags_MenuBar; - ImGui::PushStyleVar(ImGuiStyleVar_ChildRounding, 5.0f); - ImGui::BeginChild("ChildR", ImVec2(0, 260), true, window_flags); - if (!disable_menu && ImGui::BeginMenuBar()) - { - if (ImGui::BeginMenu("Menu")) - { - ShowExampleMenuFile(); - ImGui::EndMenu(); - } - ImGui::EndMenuBar(); - } - if (ImGui::BeginTable("split", 2, ImGuiTableFlags_Resizable | ImGuiTableFlags_NoSavedSettings)) - { - for (int i = 0; i < 100; i++) - { - char buf[32]; - sprintf(buf, "%03d", i); - ImGui::TableNextColumn(); - ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); - } - ImGui::EndTable(); - } - ImGui::EndChild(); - ImGui::PopStyleVar(); - } - - ImGui::Separator(); - - // Demonstrate a few extra things - // - Changing ImGuiCol_ChildBg (which is transparent black in default styles) - // - Using SetCursorPos() to position child window (the child window is an item from the POV of parent window) - // You can also call SetNextWindowPos() to position the child window. The parent window will effectively - // layout from this position. - // - Using ImGui::GetItemRectMin/Max() to query the "item" state (because the child window is an item from - // the POV of the parent window). See 'Demo->Querying Status (Active/Focused/Hovered etc.)' for details. - { - static int offset_x = 0; - ImGui::SetNextItemWidth(100); - ImGui::DragInt("Offset X", &offset_x, 1.0f, -1000, 1000); - - ImGui::SetCursorPosX(ImGui::GetCursorPosX() + (float)offset_x); - ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(255, 0, 0, 100)); - ImGui::BeginChild("Red", ImVec2(200, 100), true, ImGuiWindowFlags_None); - for (int n = 0; n < 50; n++) - ImGui::Text("Some test %d", n); - ImGui::EndChild(); - bool child_is_hovered = ImGui::IsItemHovered(); - ImVec2 child_rect_min = ImGui::GetItemRectMin(); - ImVec2 child_rect_max = ImGui::GetItemRectMax(); - ImGui::PopStyleColor(); - ImGui::Text("Hovered: %d", child_is_hovered); - ImGui::Text("Rect of child window is: (%.0f,%.0f) (%.0f,%.0f)", child_rect_min.x, child_rect_min.y, child_rect_max.x, child_rect_max.y); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Widgets Width")) - { - // Use SetNextItemWidth() to set the width of a single upcoming item. - // Use PushItemWidth()/PopItemWidth() to set the width of a group of items. - // In real code use you'll probably want to choose width values that are proportional to your font size - // e.g. Using '20.0f * GetFontSize()' as width instead of '200.0f', etc. - - static float f = 0.0f; - static bool show_indented_items = true; - ImGui::Checkbox("Show indented items", &show_indented_items); - - ImGui::Text("SetNextItemWidth/PushItemWidth(100)"); - ImGui::SameLine(); HelpMarker("Fixed width."); - ImGui::PushItemWidth(100); - ImGui::DragFloat("float##1b", &f); - if (show_indented_items) - { - ImGui::Indent(); - ImGui::DragFloat("float (indented)##1b", &f); - ImGui::Unindent(); - } - ImGui::PopItemWidth(); - - ImGui::Text("SetNextItemWidth/PushItemWidth(-100)"); - ImGui::SameLine(); HelpMarker("Align to right edge minus 100"); - ImGui::PushItemWidth(-100); - ImGui::DragFloat("float##2a", &f); - if (show_indented_items) - { - ImGui::Indent(); - ImGui::DragFloat("float (indented)##2b", &f); - ImGui::Unindent(); - } - ImGui::PopItemWidth(); - - ImGui::Text("SetNextItemWidth/PushItemWidth(GetContentRegionAvail().x * 0.5f)"); - ImGui::SameLine(); HelpMarker("Half of available width.\n(~ right-cursor_pos)\n(works within a column set)"); - ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x * 0.5f); - ImGui::DragFloat("float##3a", &f); - if (show_indented_items) - { - ImGui::Indent(); - ImGui::DragFloat("float (indented)##3b", &f); - ImGui::Unindent(); - } - ImGui::PopItemWidth(); - - ImGui::Text("SetNextItemWidth/PushItemWidth(-GetContentRegionAvail().x * 0.5f)"); - ImGui::SameLine(); HelpMarker("Align to right edge minus half"); - ImGui::PushItemWidth(-ImGui::GetContentRegionAvail().x * 0.5f); - ImGui::DragFloat("float##4a", &f); - if (show_indented_items) - { - ImGui::Indent(); - ImGui::DragFloat("float (indented)##4b", &f); - ImGui::Unindent(); - } - ImGui::PopItemWidth(); - - // Demonstrate using PushItemWidth to surround three items. - // Calling SetNextItemWidth() before each of them would have the same effect. - ImGui::Text("SetNextItemWidth/PushItemWidth(-FLT_MIN)"); - ImGui::SameLine(); HelpMarker("Align to right edge"); - ImGui::PushItemWidth(-FLT_MIN); - ImGui::DragFloat("##float5a", &f); - if (show_indented_items) - { - ImGui::Indent(); - ImGui::DragFloat("float (indented)##5b", &f); - ImGui::Unindent(); - } - ImGui::PopItemWidth(); - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Basic Horizontal Layout")) - { - ImGui::TextWrapped("(Use ImGui::SameLine() to keep adding items to the right of the preceding item)"); - - // Text - ImGui::Text("Two items: Hello"); ImGui::SameLine(); - ImGui::TextColored(ImVec4(1,1,0,1), "Sailor"); - - // Adjust spacing - ImGui::Text("More spacing: Hello"); ImGui::SameLine(0, 20); - ImGui::TextColored(ImVec4(1,1,0,1), "Sailor"); - - // Button - ImGui::AlignTextToFramePadding(); - ImGui::Text("Normal buttons"); ImGui::SameLine(); - ImGui::Button("Banana"); ImGui::SameLine(); - ImGui::Button("Apple"); ImGui::SameLine(); - ImGui::Button("Corniflower"); - - // Button - ImGui::Text("Small buttons"); ImGui::SameLine(); - ImGui::SmallButton("Like this one"); ImGui::SameLine(); - ImGui::Text("can fit within a text block."); - - // Aligned to arbitrary position. Easy/cheap column. - ImGui::Text("Aligned"); - ImGui::SameLine(150); ImGui::Text("x=150"); - ImGui::SameLine(300); ImGui::Text("x=300"); - ImGui::Text("Aligned"); - ImGui::SameLine(150); ImGui::SmallButton("x=150"); - ImGui::SameLine(300); ImGui::SmallButton("x=300"); - - // Checkbox - static bool c1 = false, c2 = false, c3 = false, c4 = false; - ImGui::Checkbox("My", &c1); ImGui::SameLine(); - ImGui::Checkbox("Tailor", &c2); ImGui::SameLine(); - ImGui::Checkbox("Is", &c3); ImGui::SameLine(); - ImGui::Checkbox("Rich", &c4); - - // Various - static float f0 = 1.0f, f1 = 2.0f, f2 = 3.0f; - ImGui::PushItemWidth(80); - const char* items[] = { "AAAA", "BBBB", "CCCC", "DDDD" }; - static int item = -1; - ImGui::Combo("Combo", &item, items, IM_ARRAYSIZE(items)); ImGui::SameLine(); - ImGui::SliderFloat("X", &f0, 0.0f, 5.0f); ImGui::SameLine(); - ImGui::SliderFloat("Y", &f1, 0.0f, 5.0f); ImGui::SameLine(); - ImGui::SliderFloat("Z", &f2, 0.0f, 5.0f); - ImGui::PopItemWidth(); - - ImGui::PushItemWidth(80); - ImGui::Text("Lists:"); - static int selection[4] = { 0, 1, 2, 3 }; - for (int i = 0; i < 4; i++) - { - if (i > 0) ImGui::SameLine(); - ImGui::PushID(i); - ImGui::ListBox("", &selection[i], items, IM_ARRAYSIZE(items)); - ImGui::PopID(); - //if (ImGui::IsItemHovered()) ImGui::SetTooltip("ListBox %d hovered", i); - } - ImGui::PopItemWidth(); - - // Dummy - ImVec2 button_sz(40, 40); - ImGui::Button("A", button_sz); ImGui::SameLine(); - ImGui::Dummy(button_sz); ImGui::SameLine(); - ImGui::Button("B", button_sz); - - // Manually wrapping - // (we should eventually provide this as an automatic layout feature, but for now you can do it manually) - ImGui::Text("Manually wrapping:"); - ImGuiStyle& style = ImGui::GetStyle(); - int buttons_count = 20; - float window_visible_x2 = ImGui::GetWindowPos().x + ImGui::GetWindowContentRegionMax().x; - for (int n = 0; n < buttons_count; n++) - { - ImGui::PushID(n); - ImGui::Button("Box", button_sz); - float last_button_x2 = ImGui::GetItemRectMax().x; - float next_button_x2 = last_button_x2 + style.ItemSpacing.x + button_sz.x; // Expected position if next button was on same line - if (n + 1 < buttons_count && next_button_x2 < window_visible_x2) - ImGui::SameLine(); - ImGui::PopID(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Groups")) - { - HelpMarker( - "BeginGroup() basically locks the horizontal position for new line. " - "EndGroup() bundles the whole group so that you can use \"item\" functions such as " - "IsItemHovered()/IsItemActive() or SameLine() etc. on the whole group."); - ImGui::BeginGroup(); - { - ImGui::BeginGroup(); - ImGui::Button("AAA"); - ImGui::SameLine(); - ImGui::Button("BBB"); - ImGui::SameLine(); - ImGui::BeginGroup(); - ImGui::Button("CCC"); - ImGui::Button("DDD"); - ImGui::EndGroup(); - ImGui::SameLine(); - ImGui::Button("EEE"); - ImGui::EndGroup(); - if (ImGui::IsItemHovered()) - ImGui::SetTooltip("First group hovered"); - } - // Capture the group size and create widgets using the same size - ImVec2 size = ImGui::GetItemRectSize(); - const float values[5] = { 0.5f, 0.20f, 0.80f, 0.60f, 0.25f }; - ImGui::PlotHistogram("##values", values, IM_ARRAYSIZE(values), 0, NULL, 0.0f, 1.0f, size); - - ImGui::Button("ACTION", ImVec2((size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, size.y)); - ImGui::SameLine(); - ImGui::Button("REACTION", ImVec2((size.x - ImGui::GetStyle().ItemSpacing.x) * 0.5f, size.y)); - ImGui::EndGroup(); - ImGui::SameLine(); - - ImGui::Button("LEVERAGE\nBUZZWORD", size); - ImGui::SameLine(); - - if (ImGui::BeginListBox("List", size)) - { - ImGui::Selectable("Selected", true); - ImGui::Selectable("Not Selected", false); - ImGui::EndListBox(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Text Baseline Alignment")) - { - { - ImGui::BulletText("Text baseline:"); - ImGui::SameLine(); HelpMarker( - "This is testing the vertical alignment that gets applied on text to keep it aligned with widgets. " - "Lines only composed of text or \"small\" widgets use less vertical space than lines with framed widgets."); - ImGui::Indent(); - - ImGui::Text("KO Blahblah"); ImGui::SameLine(); - ImGui::Button("Some framed item"); ImGui::SameLine(); - HelpMarker("Baseline of button will look misaligned with text.."); - - // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. - // (because we don't know what's coming after the Text() statement, we need to move the text baseline - // down by FramePadding.y ahead of time) - ImGui::AlignTextToFramePadding(); - ImGui::Text("OK Blahblah"); ImGui::SameLine(); - ImGui::Button("Some framed item"); ImGui::SameLine(); - HelpMarker("We call AlignTextToFramePadding() to vertically align the text baseline by +FramePadding.y"); - - // SmallButton() uses the same vertical padding as Text - ImGui::Button("TEST##1"); ImGui::SameLine(); - ImGui::Text("TEST"); ImGui::SameLine(); - ImGui::SmallButton("TEST##2"); - - // If your line starts with text, call AlignTextToFramePadding() to align text to upcoming widgets. - ImGui::AlignTextToFramePadding(); - ImGui::Text("Text aligned to framed item"); ImGui::SameLine(); - ImGui::Button("Item##1"); ImGui::SameLine(); - ImGui::Text("Item"); ImGui::SameLine(); - ImGui::SmallButton("Item##2"); ImGui::SameLine(); - ImGui::Button("Item##3"); - - ImGui::Unindent(); - } - - ImGui::Spacing(); - - { - ImGui::BulletText("Multi-line text:"); - ImGui::Indent(); - ImGui::Text("One\nTwo\nThree"); ImGui::SameLine(); - ImGui::Text("Hello\nWorld"); ImGui::SameLine(); - ImGui::Text("Banana"); - - ImGui::Text("Banana"); ImGui::SameLine(); - ImGui::Text("Hello\nWorld"); ImGui::SameLine(); - ImGui::Text("One\nTwo\nThree"); - - ImGui::Button("HOP##1"); ImGui::SameLine(); - ImGui::Text("Banana"); ImGui::SameLine(); - ImGui::Text("Hello\nWorld"); ImGui::SameLine(); - ImGui::Text("Banana"); - - ImGui::Button("HOP##2"); ImGui::SameLine(); - ImGui::Text("Hello\nWorld"); ImGui::SameLine(); - ImGui::Text("Banana"); - ImGui::Unindent(); - } - - ImGui::Spacing(); - - { - ImGui::BulletText("Misc items:"); - ImGui::Indent(); - - // SmallButton() sets FramePadding to zero. Text baseline is aligned to match baseline of previous Button. - ImGui::Button("80x80", ImVec2(80, 80)); - ImGui::SameLine(); - ImGui::Button("50x50", ImVec2(50, 50)); - ImGui::SameLine(); - ImGui::Button("Button()"); - ImGui::SameLine(); - ImGui::SmallButton("SmallButton()"); - - // Tree - const float spacing = ImGui::GetStyle().ItemInnerSpacing.x; - ImGui::Button("Button##1"); - ImGui::SameLine(0.0f, spacing); - if (ImGui::TreeNode("Node##1")) - { - // Placeholder tree data - for (int i = 0; i < 6; i++) - ImGui::BulletText("Item %d..", i); - ImGui::TreePop(); - } - - // Vertically align text node a bit lower so it'll be vertically centered with upcoming widget. - // Otherwise you can use SmallButton() (smaller fit). - ImGui::AlignTextToFramePadding(); - - // Common mistake to avoid: if we want to SameLine after TreeNode we need to do it before we add - // other contents below the node. - bool node_open = ImGui::TreeNode("Node##2"); - ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##2"); - if (node_open) - { - // Placeholder tree data - for (int i = 0; i < 6; i++) - ImGui::BulletText("Item %d..", i); - ImGui::TreePop(); - } - - // Bullet - ImGui::Button("Button##3"); - ImGui::SameLine(0.0f, spacing); - ImGui::BulletText("Bullet text"); - - ImGui::AlignTextToFramePadding(); - ImGui::BulletText("Node"); - ImGui::SameLine(0.0f, spacing); ImGui::Button("Button##4"); - ImGui::Unindent(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Scrolling")) - { - // Vertical scroll functions - HelpMarker("Use SetScrollHereY() or SetScrollFromPosY() to scroll to a given vertical position."); - - static int track_item = 50; - static bool enable_track = true; - static bool enable_extra_decorations = false; - static float scroll_to_off_px = 0.0f; - static float scroll_to_pos_px = 200.0f; - - ImGui::Checkbox("Decoration", &enable_extra_decorations); - - ImGui::Checkbox("Track", &enable_track); - ImGui::PushItemWidth(100); - ImGui::SameLine(140); enable_track |= ImGui::DragInt("##item", &track_item, 0.25f, 0, 99, "Item = %d"); - - bool scroll_to_off = ImGui::Button("Scroll Offset"); - ImGui::SameLine(140); scroll_to_off |= ImGui::DragFloat("##off", &scroll_to_off_px, 1.00f, 0, FLT_MAX, "+%.0f px"); - - bool scroll_to_pos = ImGui::Button("Scroll To Pos"); - ImGui::SameLine(140); scroll_to_pos |= ImGui::DragFloat("##pos", &scroll_to_pos_px, 1.00f, -10, FLT_MAX, "X/Y = %.0f px"); - ImGui::PopItemWidth(); - - if (scroll_to_off || scroll_to_pos) - enable_track = false; - - ImGuiStyle& style = ImGui::GetStyle(); - float child_w = (ImGui::GetContentRegionAvail().x - 4 * style.ItemSpacing.x) / 5; - if (child_w < 1.0f) - child_w = 1.0f; - ImGui::PushID("##VerticalScrolling"); - for (int i = 0; i < 5; i++) - { - if (i > 0) ImGui::SameLine(); - ImGui::BeginGroup(); - const char* names[] = { "Top", "25%", "Center", "75%", "Bottom" }; - ImGui::TextUnformatted(names[i]); - - const ImGuiWindowFlags child_flags = enable_extra_decorations ? ImGuiWindowFlags_MenuBar : 0; - const ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); - const bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(child_w, 200.0f), true, child_flags); - if (ImGui::BeginMenuBar()) - { - ImGui::TextUnformatted("abc"); - ImGui::EndMenuBar(); - } - if (scroll_to_off) - ImGui::SetScrollY(scroll_to_off_px); - if (scroll_to_pos) - ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + scroll_to_pos_px, i * 0.25f); - if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items - { - for (int item = 0; item < 100; item++) - { - if (enable_track && item == track_item) - { - ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); - ImGui::SetScrollHereY(i * 0.25f); // 0.0f:top, 0.5f:center, 1.0f:bottom - } - else - { - ImGui::Text("Item %d", item); - } - } - } - float scroll_y = ImGui::GetScrollY(); - float scroll_max_y = ImGui::GetScrollMaxY(); - ImGui::EndChild(); - ImGui::Text("%.0f/%.0f", scroll_y, scroll_max_y); - ImGui::EndGroup(); - } - ImGui::PopID(); - - // Horizontal scroll functions - ImGui::Spacing(); - HelpMarker( - "Use SetScrollHereX() or SetScrollFromPosX() to scroll to a given horizontal position.\n\n" - "Because the clipping rectangle of most window hides half worth of WindowPadding on the " - "left/right, using SetScrollFromPosX(+1) will usually result in clipped text whereas the " - "equivalent SetScrollFromPosY(+1) wouldn't."); - ImGui::PushID("##HorizontalScrolling"); - for (int i = 0; i < 5; i++) - { - float child_height = ImGui::GetTextLineHeight() + style.ScrollbarSize + style.WindowPadding.y * 2.0f; - ImGuiWindowFlags child_flags = ImGuiWindowFlags_HorizontalScrollbar | (enable_extra_decorations ? ImGuiWindowFlags_AlwaysVerticalScrollbar : 0); - ImGuiID child_id = ImGui::GetID((void*)(intptr_t)i); - bool child_is_visible = ImGui::BeginChild(child_id, ImVec2(-100, child_height), true, child_flags); - if (scroll_to_off) - ImGui::SetScrollX(scroll_to_off_px); - if (scroll_to_pos) - ImGui::SetScrollFromPosX(ImGui::GetCursorStartPos().x + scroll_to_pos_px, i * 0.25f); - if (child_is_visible) // Avoid calling SetScrollHereY when running with culled items - { - for (int item = 0; item < 100; item++) - { - if (enable_track && item == track_item) - { - ImGui::TextColored(ImVec4(1, 1, 0, 1), "Item %d", item); - ImGui::SetScrollHereX(i * 0.25f); // 0.0f:left, 0.5f:center, 1.0f:right - } - else - { - ImGui::Text("Item %d", item); - } - ImGui::SameLine(); - } - } - float scroll_x = ImGui::GetScrollX(); - float scroll_max_x = ImGui::GetScrollMaxX(); - ImGui::EndChild(); - ImGui::SameLine(); - const char* names[] = { "Left", "25%", "Center", "75%", "Right" }; - ImGui::Text("%s\n%.0f/%.0f", names[i], scroll_x, scroll_max_x); - ImGui::Spacing(); - } - ImGui::PopID(); - - // Miscellaneous Horizontal Scrolling Demo - HelpMarker( - "Horizontal scrolling for a window is enabled via the ImGuiWindowFlags_HorizontalScrollbar flag.\n\n" - "You may want to also explicitly specify content width by using SetNextWindowContentWidth() before Begin()."); - static int lines = 7; - ImGui::SliderInt("Lines", &lines, 1, 15); - ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 3.0f); - ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2.0f, 1.0f)); - ImVec2 scrolling_child_size = ImVec2(0, ImGui::GetFrameHeightWithSpacing() * 7 + 30); - ImGui::BeginChild("scrolling", scrolling_child_size, true, ImGuiWindowFlags_HorizontalScrollbar); - for (int line = 0; line < lines; line++) - { - // Display random stuff. For the sake of this trivial demo we are using basic Button() + SameLine() - // If you want to create your own time line for a real application you may be better off manipulating - // the cursor position yourself, aka using SetCursorPos/SetCursorScreenPos to position the widgets - // yourself. You may also want to use the lower-level ImDrawList API. - int num_buttons = 10 + ((line & 1) ? line * 9 : line * 3); - for (int n = 0; n < num_buttons; n++) - { - if (n > 0) ImGui::SameLine(); - ImGui::PushID(n + line * 1000); - char num_buf[16]; - sprintf(num_buf, "%d", n); - const char* label = (!(n % 15)) ? "FizzBuzz" : (!(n % 3)) ? "Fizz" : (!(n % 5)) ? "Buzz" : num_buf; - float hue = n * 0.05f; - ImGui::PushStyleColor(ImGuiCol_Button, (ImVec4)ImColor::HSV(hue, 0.6f, 0.6f)); - ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV(hue, 0.7f, 0.7f)); - ImGui::PushStyleColor(ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV(hue, 0.8f, 0.8f)); - ImGui::Button(label, ImVec2(40.0f + sinf((float)(line + n)) * 20.0f, 0.0f)); - ImGui::PopStyleColor(3); - ImGui::PopID(); - } - } - float scroll_x = ImGui::GetScrollX(); - float scroll_max_x = ImGui::GetScrollMaxX(); - ImGui::EndChild(); - ImGui::PopStyleVar(2); - float scroll_x_delta = 0.0f; - ImGui::SmallButton("<<"); - if (ImGui::IsItemActive()) - scroll_x_delta = -ImGui::GetIO().DeltaTime * 1000.0f; - ImGui::SameLine(); - ImGui::Text("Scroll from code"); ImGui::SameLine(); - ImGui::SmallButton(">>"); - if (ImGui::IsItemActive()) - scroll_x_delta = +ImGui::GetIO().DeltaTime * 1000.0f; - ImGui::SameLine(); - ImGui::Text("%.0f/%.0f", scroll_x, scroll_max_x); - if (scroll_x_delta != 0.0f) - { - // Demonstrate a trick: you can use Begin to set yourself in the context of another window - // (here we are already out of your child window) - ImGui::BeginChild("scrolling"); - ImGui::SetScrollX(ImGui::GetScrollX() + scroll_x_delta); - ImGui::EndChild(); - } - ImGui::Spacing(); - - static bool show_horizontal_contents_size_demo_window = false; - ImGui::Checkbox("Show Horizontal contents size demo window", &show_horizontal_contents_size_demo_window); - - if (show_horizontal_contents_size_demo_window) - { - static bool show_h_scrollbar = true; - static bool show_button = true; - static bool show_tree_nodes = true; - static bool show_text_wrapped = false; - static bool show_columns = true; - static bool show_tab_bar = true; - static bool show_child = false; - static bool explicit_content_size = false; - static float contents_size_x = 300.0f; - if (explicit_content_size) - ImGui::SetNextWindowContentSize(ImVec2(contents_size_x, 0.0f)); - ImGui::Begin("Horizontal contents size demo window", &show_horizontal_contents_size_demo_window, show_h_scrollbar ? ImGuiWindowFlags_HorizontalScrollbar : 0); - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(2, 0)); - ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 0)); - HelpMarker("Test of different widgets react and impact the work rectangle growing when horizontal scrolling is enabled.\n\nUse 'Metrics->Tools->Show windows rectangles' to visualize rectangles."); - ImGui::Checkbox("H-scrollbar", &show_h_scrollbar); - ImGui::Checkbox("Button", &show_button); // Will grow contents size (unless explicitly overwritten) - ImGui::Checkbox("Tree nodes", &show_tree_nodes); // Will grow contents size and display highlight over full width - ImGui::Checkbox("Text wrapped", &show_text_wrapped);// Will grow and use contents size - ImGui::Checkbox("Columns", &show_columns); // Will use contents size - ImGui::Checkbox("Tab bar", &show_tab_bar); // Will use contents size - ImGui::Checkbox("Child", &show_child); // Will grow and use contents size - ImGui::Checkbox("Explicit content size", &explicit_content_size); - ImGui::Text("Scroll %.1f/%.1f %.1f/%.1f", ImGui::GetScrollX(), ImGui::GetScrollMaxX(), ImGui::GetScrollY(), ImGui::GetScrollMaxY()); - if (explicit_content_size) - { - ImGui::SameLine(); - ImGui::SetNextItemWidth(100); - ImGui::DragFloat("##csx", &contents_size_x); - ImVec2 p = ImGui::GetCursorScreenPos(); - ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + 10, p.y + 10), IM_COL32_WHITE); - ImGui::GetWindowDrawList()->AddRectFilled(ImVec2(p.x + contents_size_x - 10, p.y), ImVec2(p.x + contents_size_x, p.y + 10), IM_COL32_WHITE); - ImGui::Dummy(ImVec2(0, 10)); - } - ImGui::PopStyleVar(2); - ImGui::Separator(); - if (show_button) - { - ImGui::Button("this is a 300-wide button", ImVec2(300, 0)); - } - if (show_tree_nodes) - { - bool open = true; - if (ImGui::TreeNode("this is a tree node")) - { - if (ImGui::TreeNode("another one of those tree node...")) - { - ImGui::Text("Some tree contents"); - ImGui::TreePop(); - } - ImGui::TreePop(); - } - ImGui::CollapsingHeader("CollapsingHeader", &open); - } - if (show_text_wrapped) - { - ImGui::TextWrapped("This text should automatically wrap on the edge of the work rectangle."); - } - if (show_columns) - { - ImGui::Text("Tables:"); - if (ImGui::BeginTable("table", 4, ImGuiTableFlags_Borders)) - { - for (int n = 0; n < 4; n++) - { - ImGui::TableNextColumn(); - ImGui::Text("Width %.2f", ImGui::GetContentRegionAvail().x); - } - ImGui::EndTable(); - } - ImGui::Text("Columns:"); - ImGui::Columns(4); - for (int n = 0; n < 4; n++) - { - ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); - ImGui::NextColumn(); - } - ImGui::Columns(1); - } - if (show_tab_bar && ImGui::BeginTabBar("Hello")) - { - if (ImGui::BeginTabItem("OneOneOne")) { ImGui::EndTabItem(); } - if (ImGui::BeginTabItem("TwoTwoTwo")) { ImGui::EndTabItem(); } - if (ImGui::BeginTabItem("ThreeThreeThree")) { ImGui::EndTabItem(); } - if (ImGui::BeginTabItem("FourFourFour")) { ImGui::EndTabItem(); } - ImGui::EndTabBar(); - } - if (show_child) - { - ImGui::BeginChild("child", ImVec2(0, 0), true); - ImGui::EndChild(); - } - ImGui::End(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Clipping")) - { - static ImVec2 size(100.0f, 100.0f); - static ImVec2 offset(30.0f, 30.0f); - ImGui::DragFloat2("size", (float*)&size, 0.5f, 1.0f, 200.0f, "%.0f"); - ImGui::TextWrapped("(Click and drag to scroll)"); - - for (int n = 0; n < 3; n++) - { - if (n > 0) - ImGui::SameLine(); - ImGui::PushID(n); - ImGui::BeginGroup(); // Lock X position - - ImGui::InvisibleButton("##empty", size); - if (ImGui::IsItemActive() && ImGui::IsMouseDragging(ImGuiMouseButton_Left)) - { - offset.x += ImGui::GetIO().MouseDelta.x; - offset.y += ImGui::GetIO().MouseDelta.y; - } - const ImVec2 p0 = ImGui::GetItemRectMin(); - const ImVec2 p1 = ImGui::GetItemRectMax(); - const char* text_str = "Line 1 hello\nLine 2 clip me!"; - const ImVec2 text_pos = ImVec2(p0.x + offset.x, p0.y + offset.y); - ImDrawList* draw_list = ImGui::GetWindowDrawList(); - - switch (n) - { - case 0: - HelpMarker( - "Using ImGui::PushClipRect():\n" - "Will alter ImGui hit-testing logic + ImDrawList rendering.\n" - "(use this if you want your clipping rectangle to affect interactions)"); - ImGui::PushClipRect(p0, p1, true); - draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); - draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); - ImGui::PopClipRect(); - break; - case 1: - HelpMarker( - "Using ImDrawList::PushClipRect():\n" - "Will alter ImDrawList rendering only.\n" - "(use this as a shortcut if you are only using ImDrawList calls)"); - draw_list->PushClipRect(p0, p1, true); - draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); - draw_list->AddText(text_pos, IM_COL32_WHITE, text_str); - draw_list->PopClipRect(); - break; - case 2: - HelpMarker( - "Using ImDrawList::AddText() with a fine ClipRect:\n" - "Will alter only this specific ImDrawList::AddText() rendering.\n" - "(this is often used internally to avoid altering the clipping rectangle and minimize draw calls)"); - ImVec4 clip_rect(p0.x, p0.y, p1.x, p1.y); // AddText() takes a ImVec4* here so let's convert. - draw_list->AddRectFilled(p0, p1, IM_COL32(90, 90, 120, 255)); - draw_list->AddText(ImGui::GetFont(), ImGui::GetFontSize(), text_pos, IM_COL32_WHITE, text_str, NULL, 0.0f, &clip_rect); - break; - } - ImGui::EndGroup(); - ImGui::PopID(); - } - - ImGui::TreePop(); - } -} - -static void ShowDemoWindowPopups() -{ - if (!ImGui::CollapsingHeader("Popups & Modal windows")) - return; - - // The properties of popups windows are: - // - They block normal mouse hovering detection outside them. (*) - // - Unless modal, they can be closed by clicking anywhere outside them, or by pressing ESCAPE. - // - Their visibility state (~bool) is held internally by Dear ImGui instead of being held by the programmer as - // we are used to with regular Begin() calls. User can manipulate the visibility state by calling OpenPopup(). - // (*) One can use IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup) to bypass it and detect hovering even - // when normally blocked by a popup. - // Those three properties are connected. The library needs to hold their visibility state BECAUSE it can close - // popups at any time. - - // Typical use for regular windows: - // bool my_tool_is_active = false; if (ImGui::Button("Open")) my_tool_is_active = true; [...] if (my_tool_is_active) Begin("My Tool", &my_tool_is_active) { [...] } End(); - // Typical use for popups: - // if (ImGui::Button("Open")) ImGui::OpenPopup("MyPopup"); if (ImGui::BeginPopup("MyPopup") { [...] EndPopup(); } - - // With popups we have to go through a library call (here OpenPopup) to manipulate the visibility state. - // This may be a bit confusing at first but it should quickly make sense. Follow on the examples below. - - if (ImGui::TreeNode("Popups")) - { - ImGui::TextWrapped( - "When a popup is active, it inhibits interacting with windows that are behind the popup. " - "Clicking outside the popup closes it."); - - static int selected_fish = -1; - const char* names[] = { "Bream", "Haddock", "Mackerel", "Pollock", "Tilefish" }; - static bool toggles[] = { true, false, false, false, false }; - - // Simple selection popup (if you want to show the current selection inside the Button itself, - // you may want to build a string using the "###" operator to preserve a constant ID with a variable label) - if (ImGui::Button("Select..")) - ImGui::OpenPopup("my_select_popup"); - ImGui::SameLine(); - ImGui::TextUnformatted(selected_fish == -1 ? "" : names[selected_fish]); - if (ImGui::BeginPopup("my_select_popup")) - { - ImGui::Text("Aquarium"); - ImGui::Separator(); - for (int i = 0; i < IM_ARRAYSIZE(names); i++) - if (ImGui::Selectable(names[i])) - selected_fish = i; - ImGui::EndPopup(); - } - - // Showing a menu with toggles - if (ImGui::Button("Toggle..")) - ImGui::OpenPopup("my_toggle_popup"); - if (ImGui::BeginPopup("my_toggle_popup")) - { - for (int i = 0; i < IM_ARRAYSIZE(names); i++) - ImGui::MenuItem(names[i], "", &toggles[i]); - if (ImGui::BeginMenu("Sub-menu")) - { - ImGui::MenuItem("Click me"); - ImGui::EndMenu(); - } - - ImGui::Separator(); - ImGui::Text("Tooltip here"); - if (ImGui::IsItemHovered()) - ImGui::SetTooltip("I am a tooltip over a popup"); - - if (ImGui::Button("Stacked Popup")) - ImGui::OpenPopup("another popup"); - if (ImGui::BeginPopup("another popup")) - { - for (int i = 0; i < IM_ARRAYSIZE(names); i++) - ImGui::MenuItem(names[i], "", &toggles[i]); - if (ImGui::BeginMenu("Sub-menu")) - { - ImGui::MenuItem("Click me"); - if (ImGui::Button("Stacked Popup")) - ImGui::OpenPopup("another popup"); - if (ImGui::BeginPopup("another popup")) - { - ImGui::Text("I am the last one here."); - ImGui::EndPopup(); - } - ImGui::EndMenu(); - } - ImGui::EndPopup(); - } - ImGui::EndPopup(); - } - - // Call the more complete ShowExampleMenuFile which we use in various places of this demo - if (ImGui::Button("File Menu..")) - ImGui::OpenPopup("my_file_popup"); - if (ImGui::BeginPopup("my_file_popup")) - { - ShowExampleMenuFile(); - ImGui::EndPopup(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Context menus")) - { - // BeginPopupContextItem() is a helper to provide common/simple popup behavior of essentially doing: - // if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) - // OpenPopup(id); - // return BeginPopup(id); - // For more advanced uses you may want to replicate and customize this code. - // See details in BeginPopupContextItem(). - static float value = 0.5f; - ImGui::Text("Value = %.3f (<-- right-click here)", value); - if (ImGui::BeginPopupContextItem("item context menu")) - { - if (ImGui::Selectable("Set to zero")) value = 0.0f; - if (ImGui::Selectable("Set to PI")) value = 3.1415f; - ImGui::SetNextItemWidth(-FLT_MIN); - ImGui::DragFloat("##Value", &value, 0.1f, 0.0f, 0.0f); - ImGui::EndPopup(); - } - - // We can also use OpenPopupOnItemClick() which is the same as BeginPopupContextItem() but without the - // Begin() call. So here we will make it that clicking on the text field with the right mouse button (1) - // will toggle the visibility of the popup above. - ImGui::Text("(You can also right-click me to open the same popup as above.)"); - ImGui::OpenPopupOnItemClick("item context menu", 1); - - // When used after an item that has an ID (e.g.Button), we can skip providing an ID to BeginPopupContextItem(). - // BeginPopupContextItem() will use the last item ID as the popup ID. - // In addition here, we want to include your editable label inside the button label. - // We use the ### operator to override the ID (read FAQ about ID for details) - static char name[32] = "Label1"; - char buf[64]; - sprintf(buf, "Button: %s###Button", name); // ### operator override ID ignoring the preceding label - ImGui::Button(buf); - if (ImGui::BeginPopupContextItem()) - { - ImGui::Text("Edit name:"); - ImGui::InputText("##edit", name, IM_ARRAYSIZE(name)); - if (ImGui::Button("Close")) - ImGui::CloseCurrentPopup(); - ImGui::EndPopup(); - } - ImGui::SameLine(); ImGui::Text("(<-- right-click here)"); - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Modals")) - { - ImGui::TextWrapped("Modal windows are like popups but the user cannot close them by clicking outside."); - - if (ImGui::Button("Delete..")) - ImGui::OpenPopup("Delete?"); - - // Always center this window when appearing - ImVec2 center = ImGui::GetMainViewport()->GetCenter(); - ImGui::SetNextWindowPos(center, ImGuiCond_Appearing, ImVec2(0.5f, 0.5f)); - - if (ImGui::BeginPopupModal("Delete?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) - { - ImGui::Text("All those beautiful files will be deleted.\nThis operation cannot be undone!\n\n"); - ImGui::Separator(); - - //static int unused_i = 0; - //ImGui::Combo("Combo", &unused_i, "Delete\0Delete harder\0"); - - static bool dont_ask_me_next_time = false; - ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); - ImGui::Checkbox("Don't ask me next time", &dont_ask_me_next_time); - ImGui::PopStyleVar(); - - if (ImGui::Button("OK", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } - ImGui::SetItemDefaultFocus(); - ImGui::SameLine(); - if (ImGui::Button("Cancel", ImVec2(120, 0))) { ImGui::CloseCurrentPopup(); } - ImGui::EndPopup(); - } - - if (ImGui::Button("Stacked modals..")) - ImGui::OpenPopup("Stacked 1"); - if (ImGui::BeginPopupModal("Stacked 1", NULL, ImGuiWindowFlags_MenuBar)) - { - if (ImGui::BeginMenuBar()) - { - if (ImGui::BeginMenu("File")) - { - if (ImGui::MenuItem("Some menu item")) {} - ImGui::EndMenu(); - } - ImGui::EndMenuBar(); - } - ImGui::Text("Hello from Stacked The First\nUsing style.Colors[ImGuiCol_ModalWindowDimBg] behind it."); - - // Testing behavior of widgets stacking their own regular popups over the modal. - static int item = 1; - static float color[4] = { 0.4f, 0.7f, 0.0f, 0.5f }; - ImGui::Combo("Combo", &item, "aaaa\0bbbb\0cccc\0dddd\0eeee\0\0"); - ImGui::ColorEdit4("color", color); - - if (ImGui::Button("Add another modal..")) - ImGui::OpenPopup("Stacked 2"); - - // Also demonstrate passing a bool* to BeginPopupModal(), this will create a regular close button which - // will close the popup. Note that the visibility state of popups is owned by imgui, so the input value - // of the bool actually doesn't matter here. - bool unused_open = true; - if (ImGui::BeginPopupModal("Stacked 2", &unused_open)) - { - ImGui::Text("Hello from Stacked The Second!"); - if (ImGui::Button("Close")) - ImGui::CloseCurrentPopup(); - ImGui::EndPopup(); - } - - if (ImGui::Button("Close")) - ImGui::CloseCurrentPopup(); - ImGui::EndPopup(); - } - - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Menus inside a regular window")) - { - ImGui::TextWrapped("Below we are testing adding menu items to a regular window. It's rather unusual but should work!"); - ImGui::Separator(); - - // Note: As a quirk in this very specific example, we want to differentiate the parent of this menu from the - // parent of the various popup menus above. To do so we are encloding the items in a PushID()/PopID() block - // to make them two different menusets. If we don't, opening any popup above and hovering our menu here would - // open it. This is because once a menu is active, we allow to switch to a sibling menu by just hovering on it, - // which is the desired behavior for regular menus. - ImGui::PushID("foo"); - ImGui::MenuItem("Menu item", "CTRL+M"); - if (ImGui::BeginMenu("Menu inside a regular window")) - { - ShowExampleMenuFile(); - ImGui::EndMenu(); - } - ImGui::PopID(); - ImGui::Separator(); - ImGui::TreePop(); - } -} - -// Dummy data structure that we use for the Table demo. -// (pre-C++11 doesn't allow us to instantiate ImVector template if this structure if defined inside the demo function) -namespace -{ -// We are passing our own identifier to TableSetupColumn() to facilitate identifying columns in the sorting code. -// This identifier will be passed down into ImGuiTableSortSpec::ColumnUserID. -// But it is possible to omit the user id parameter of TableSetupColumn() and just use the column index instead! (ImGuiTableSortSpec::ColumnIndex) -// If you don't use sorting, you will generally never care about giving column an ID! -enum MyItemColumnID -{ - MyItemColumnID_ID, - MyItemColumnID_Name, - MyItemColumnID_Action, - MyItemColumnID_Quantity, - MyItemColumnID_Description -}; - -struct MyItem -{ - int ID; - const char* Name; - int Quantity; - - // We have a problem which is affecting _only this demo_ and should not affect your code: - // As we don't rely on std:: or other third-party library to compile dear imgui, we only have reliable access to qsort(), - // however qsort doesn't allow passing user data to comparing function. - // As a workaround, we are storing the sort specs in a static/global for the comparing function to access. - // In your own use case you would probably pass the sort specs to your sorting/comparing functions directly and not use a global. - // We could technically call ImGui::TableGetSortSpecs() in CompareWithSortSpecs(), but considering that this function is called - // very often by the sorting algorithm it would be a little wasteful. - static const ImGuiTableSortSpecs* s_current_sort_specs; - - // Compare function to be used by qsort() - static int IMGUI_CDECL CompareWithSortSpecs(const void* lhs, const void* rhs) - { - const MyItem* a = (const MyItem*)lhs; - const MyItem* b = (const MyItem*)rhs; - for (int n = 0; n < s_current_sort_specs->SpecsCount; n++) - { - // Here we identify columns using the ColumnUserID value that we ourselves passed to TableSetupColumn() - // We could also choose to identify columns based on their index (sort_spec->ColumnIndex), which is simpler! - const ImGuiTableColumnSortSpecs* sort_spec = &s_current_sort_specs->Specs[n]; - int delta = 0; - switch (sort_spec->ColumnUserID) - { - case MyItemColumnID_ID: delta = (a->ID - b->ID); break; - case MyItemColumnID_Name: delta = (strcmp(a->Name, b->Name)); break; - case MyItemColumnID_Quantity: delta = (a->Quantity - b->Quantity); break; - case MyItemColumnID_Description: delta = (strcmp(a->Name, b->Name)); break; - default: IM_ASSERT(0); break; - } - if (delta > 0) - return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? +1 : -1; - if (delta < 0) - return (sort_spec->SortDirection == ImGuiSortDirection_Ascending) ? -1 : +1; - } - - // qsort() is instable so always return a way to differenciate items. - // Your own compare function may want to avoid fallback on implicit sort specs e.g. a Name compare if it wasn't already part of the sort specs. - return (a->ID - b->ID); - } -}; -const ImGuiTableSortSpecs* MyItem::s_current_sort_specs = NULL; -} - -// Make the UI compact because there are so many fields -static void PushStyleCompact() -{ - ImGuiStyle& style = ImGui::GetStyle(); - ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(style.FramePadding.x, (float)(int)(style.FramePadding.y * 0.60f))); - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x, (float)(int)(style.ItemSpacing.y * 0.60f))); -} - -static void PopStyleCompact() -{ - ImGui::PopStyleVar(2); -} - -// Show a combo box with a choice of sizing policies -static void EditTableSizingFlags(ImGuiTableFlags* p_flags) -{ - struct EnumDesc { ImGuiTableFlags Value; const char* Name; const char* Tooltip; }; - static const EnumDesc policies[] = - { - { ImGuiTableFlags_None, "Default", "Use default sizing policy:\n- ImGuiTableFlags_SizingFixedFit if ScrollX is on or if host window has ImGuiWindowFlags_AlwaysAutoResize.\n- ImGuiTableFlags_SizingStretchSame otherwise." }, - { ImGuiTableFlags_SizingFixedFit, "ImGuiTableFlags_SizingFixedFit", "Columns default to _WidthFixed (if resizable) or _WidthAuto (if not resizable), matching contents width." }, - { ImGuiTableFlags_SizingFixedSame, "ImGuiTableFlags_SizingFixedSame", "Columns are all the same width, matching the maximum contents width.\nImplicitly disable ImGuiTableFlags_Resizable and enable ImGuiTableFlags_NoKeepColumnsVisible." }, - { ImGuiTableFlags_SizingStretchProp, "ImGuiTableFlags_SizingStretchProp", "Columns default to _WidthStretch with weights proportional to their widths." }, - { ImGuiTableFlags_SizingStretchSame, "ImGuiTableFlags_SizingStretchSame", "Columns default to _WidthStretch with same weights." } - }; - int idx; - for (idx = 0; idx < IM_ARRAYSIZE(policies); idx++) - if (policies[idx].Value == (*p_flags & ImGuiTableFlags_SizingMask_)) - break; - const char* preview_text = (idx < IM_ARRAYSIZE(policies)) ? policies[idx].Name + (idx > 0 ? strlen("ImGuiTableFlags") : 0) : ""; - if (ImGui::BeginCombo("Sizing Policy", preview_text)) - { - for (int n = 0; n < IM_ARRAYSIZE(policies); n++) - if (ImGui::Selectable(policies[n].Name, idx == n)) - *p_flags = (*p_flags & ~ImGuiTableFlags_SizingMask_) | policies[n].Value; - ImGui::EndCombo(); - } - ImGui::SameLine(); - ImGui::TextDisabled("(?)"); - if (ImGui::IsItemHovered()) - { - ImGui::BeginTooltip(); - ImGui::PushTextWrapPos(ImGui::GetFontSize() * 50.0f); - for (int m = 0; m < IM_ARRAYSIZE(policies); m++) - { - ImGui::Separator(); - ImGui::Text("%s:", policies[m].Name); - ImGui::Separator(); - ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetStyle().IndentSpacing * 0.5f); - ImGui::TextUnformatted(policies[m].Tooltip); - } - ImGui::PopTextWrapPos(); - ImGui::EndTooltip(); - } -} - -static void EditTableColumnsFlags(ImGuiTableColumnFlags* p_flags) -{ - ImGui::CheckboxFlags("_DefaultHide", p_flags, ImGuiTableColumnFlags_DefaultHide); - ImGui::CheckboxFlags("_DefaultSort", p_flags, ImGuiTableColumnFlags_DefaultSort); - if (ImGui::CheckboxFlags("_WidthStretch", p_flags, ImGuiTableColumnFlags_WidthStretch)) - *p_flags &= ~(ImGuiTableColumnFlags_WidthMask_ ^ ImGuiTableColumnFlags_WidthStretch); - if (ImGui::CheckboxFlags("_WidthFixed", p_flags, ImGuiTableColumnFlags_WidthFixed)) - *p_flags &= ~(ImGuiTableColumnFlags_WidthMask_ ^ ImGuiTableColumnFlags_WidthFixed); - ImGui::CheckboxFlags("_NoResize", p_flags, ImGuiTableColumnFlags_NoResize); - ImGui::CheckboxFlags("_NoReorder", p_flags, ImGuiTableColumnFlags_NoReorder); - ImGui::CheckboxFlags("_NoHide", p_flags, ImGuiTableColumnFlags_NoHide); - ImGui::CheckboxFlags("_NoClip", p_flags, ImGuiTableColumnFlags_NoClip); - ImGui::CheckboxFlags("_NoSort", p_flags, ImGuiTableColumnFlags_NoSort); - ImGui::CheckboxFlags("_NoSortAscending", p_flags, ImGuiTableColumnFlags_NoSortAscending); - ImGui::CheckboxFlags("_NoSortDescending", p_flags, ImGuiTableColumnFlags_NoSortDescending); - ImGui::CheckboxFlags("_NoHeaderWidth", p_flags, ImGuiTableColumnFlags_NoHeaderWidth); - ImGui::CheckboxFlags("_PreferSortAscending", p_flags, ImGuiTableColumnFlags_PreferSortAscending); - ImGui::CheckboxFlags("_PreferSortDescending", p_flags, ImGuiTableColumnFlags_PreferSortDescending); - ImGui::CheckboxFlags("_IndentEnable", p_flags, ImGuiTableColumnFlags_IndentEnable); ImGui::SameLine(); HelpMarker("Default for column 0"); - ImGui::CheckboxFlags("_IndentDisable", p_flags, ImGuiTableColumnFlags_IndentDisable); ImGui::SameLine(); HelpMarker("Default for column >0"); -} - -static void ShowTableColumnsStatusFlags(ImGuiTableColumnFlags flags) -{ - ImGui::CheckboxFlags("_IsEnabled", &flags, ImGuiTableColumnFlags_IsEnabled); - ImGui::CheckboxFlags("_IsVisible", &flags, ImGuiTableColumnFlags_IsVisible); - ImGui::CheckboxFlags("_IsSorted", &flags, ImGuiTableColumnFlags_IsSorted); - ImGui::CheckboxFlags("_IsHovered", &flags, ImGuiTableColumnFlags_IsHovered); -} - -static void ShowDemoWindowTables() -{ - //ImGui::SetNextItemOpen(true, ImGuiCond_Once); - if (!ImGui::CollapsingHeader("Tables & Columns")) - return; - - // Using those as a base value to create width/height that are factor of the size of our font - const float TEXT_BASE_WIDTH = ImGui::CalcTextSize("A").x; - const float TEXT_BASE_HEIGHT = ImGui::GetTextLineHeightWithSpacing(); - - ImGui::PushID("Tables"); - - int open_action = -1; - if (ImGui::Button("Open all")) - open_action = 1; - ImGui::SameLine(); - if (ImGui::Button("Close all")) - open_action = 0; - ImGui::SameLine(); - - // Options - static bool disable_indent = false; - ImGui::Checkbox("Disable tree indentation", &disable_indent); - ImGui::SameLine(); - HelpMarker("Disable the indenting of tree nodes so demo tables can use the full window width."); - ImGui::Separator(); - if (disable_indent) - ImGui::PushStyleVar(ImGuiStyleVar_IndentSpacing, 0.0f); - - // About Styling of tables - // Most settings are configured on a per-table basis via the flags passed to BeginTable() and TableSetupColumns APIs. - // There are however a few settings that a shared and part of the ImGuiStyle structure: - // style.CellPadding // Padding within each cell - // style.Colors[ImGuiCol_TableHeaderBg] // Table header background - // style.Colors[ImGuiCol_TableBorderStrong] // Table outer and header borders - // style.Colors[ImGuiCol_TableBorderLight] // Table inner borders - // style.Colors[ImGuiCol_TableRowBg] // Table row background when ImGuiTableFlags_RowBg is enabled (even rows) - // style.Colors[ImGuiCol_TableRowBgAlt] // Table row background when ImGuiTableFlags_RowBg is enabled (odds rows) - - // Demos - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Basic")) - { - // Here we will showcase three different ways to output a table. - // They are very simple variations of a same thing! - - // [Method 1] Using TableNextRow() to create a new row, and TableSetColumnIndex() to select the column. - // In many situations, this is the most flexible and easy to use pattern. - HelpMarker("Using TableNextRow() + calling TableSetColumnIndex() _before_ each cell, in a loop."); - if (ImGui::BeginTable("table1", 3)) - { - for (int row = 0; row < 4; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("Row %d Column %d", row, column); - } - } - ImGui::EndTable(); - } - - // [Method 2] Using TableNextColumn() called multiple times, instead of using a for loop + TableSetColumnIndex(). - // This is generally more convenient when you have code manually submitting the contents of each columns. - HelpMarker("Using TableNextRow() + calling TableNextColumn() _before_ each cell, manually."); - if (ImGui::BeginTable("table2", 3)) - { - for (int row = 0; row < 4; row++) - { - ImGui::TableNextRow(); - ImGui::TableNextColumn(); - ImGui::Text("Row %d", row); - ImGui::TableNextColumn(); - ImGui::Text("Some contents"); - ImGui::TableNextColumn(); - ImGui::Text("123.456"); - } - ImGui::EndTable(); - } - - // [Method 3] We call TableNextColumn() _before_ each cell. We never call TableNextRow(), - // as TableNextColumn() will automatically wrap around and create new roes as needed. - // This is generally more convenient when your cells all contains the same type of data. - HelpMarker( - "Only using TableNextColumn(), which tends to be convenient for tables where every cells contains the same type of contents.\n" - "This is also more similar to the old NextColumn() function of the Columns API, and provided to facilitate the Columns->Tables API transition."); - if (ImGui::BeginTable("table3", 3)) - { - for (int item = 0; item < 14; item++) - { - ImGui::TableNextColumn(); - ImGui::Text("Item %d", item); - } - ImGui::EndTable(); - } - - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Borders, background")) - { - // Expose a few Borders related flags interactively - enum ContentsType { CT_Text, CT_FillButton }; - static ImGuiTableFlags flags = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg; - static bool display_headers = false; - static int contents_type = CT_Text; - - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); - ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags, ImGuiTableFlags_Borders); - ImGui::SameLine(); HelpMarker("ImGuiTableFlags_Borders\n = ImGuiTableFlags_BordersInnerV\n | ImGuiTableFlags_BordersOuterV\n | ImGuiTableFlags_BordersInnerV\n | ImGuiTableFlags_BordersOuterH"); - ImGui::Indent(); - - ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); - ImGui::Indent(); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); - ImGui::Unindent(); - - ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); - ImGui::Indent(); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags, ImGuiTableFlags_BordersOuterV); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags, ImGuiTableFlags_BordersInnerV); - ImGui::Unindent(); - - ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuter", &flags, ImGuiTableFlags_BordersOuter); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersInner", &flags, ImGuiTableFlags_BordersInner); - ImGui::Unindent(); - - ImGui::AlignTextToFramePadding(); ImGui::Text("Cell contents:"); - ImGui::SameLine(); ImGui::RadioButton("Text", &contents_type, CT_Text); - ImGui::SameLine(); ImGui::RadioButton("FillButton", &contents_type, CT_FillButton); - ImGui::Checkbox("Display headers", &display_headers); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appears in Headers"); - PopStyleCompact(); - - if (ImGui::BeginTable("table1", 3, flags)) - { - // Display headers so we can inspect their interaction with borders. - // (Headers are not the main purpose of this section of the demo, so we are not elaborating on them too much. See other sections for details) - if (display_headers) - { - ImGui::TableSetupColumn("One"); - ImGui::TableSetupColumn("Two"); - ImGui::TableSetupColumn("Three"); - ImGui::TableHeadersRow(); - } - - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - char buf[32]; - sprintf(buf, "Hello %d,%d", column, row); - if (contents_type == CT_Text) - ImGui::TextUnformatted(buf); - else if (contents_type) - ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Resizable, stretch")) - { - // By default, if we don't enable ScrollX the sizing policy for each columns is "Stretch" - // Each columns maintain a sizing weight, and they will occupy all available width. - static ImGuiTableFlags flags = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); - ImGui::SameLine(); HelpMarker("Using the _Resizable flag automatically enables the _BordersInnerV flag as well, this is why the resize borders are still showing when unchecking this."); - PopStyleCompact(); - - if (ImGui::BeginTable("table1", 3, flags)) - { - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("Hello %d,%d", column, row); - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Resizable, fixed")) - { - // Here we use ImGuiTableFlags_SizingFixedFit (even though _ScrollX is not set) - // So columns will adopt the "Fixed" policy and will maintain a fixed width regardless of the whole available width (unless table is small) - // If there is not enough available width to fit all columns, they will however be resized down. - // FIXME-TABLE: Providing a stretch-on-init would make sense especially for tables which don't have saved settings - HelpMarker( - "Using _Resizable + _SizingFixedFit flags.\n" - "Fixed-width columns generally makes more sense if you want to use horizontal scrolling.\n\n" - "Double-click a column border to auto-fit the column to its contents."); - PushStyleCompact(); - static ImGuiTableFlags flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Resizable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; - ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); - PopStyleCompact(); - - if (ImGui::BeginTable("table1", 3, flags)) - { - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("Hello %d,%d", column, row); - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Resizable, mixed")) - { - HelpMarker( - "Using TableSetupColumn() to alter resizing policy on a per-column basis.\n\n" - "When combining Fixed and Stretch columns, generally you only want one, maybe two trailing columns to use _WidthStretch."); - static ImGuiTableFlags flags = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_RowBg | ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; - - if (ImGui::BeginTable("table1", 3, flags)) - { - ImGui::TableSetupColumn("AAA", ImGuiTableColumnFlags_WidthFixed); - ImGui::TableSetupColumn("BBB", ImGuiTableColumnFlags_WidthFixed); - ImGui::TableSetupColumn("CCC", ImGuiTableColumnFlags_WidthStretch); - ImGui::TableHeadersRow(); - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("%s %d,%d", (column == 2) ? "Stretch" : "Fixed", column, row); - } - } - ImGui::EndTable(); - } - if (ImGui::BeginTable("table2", 6, flags)) - { - ImGui::TableSetupColumn("AAA", ImGuiTableColumnFlags_WidthFixed); - ImGui::TableSetupColumn("BBB", ImGuiTableColumnFlags_WidthFixed); - ImGui::TableSetupColumn("CCC", ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_DefaultHide); - ImGui::TableSetupColumn("DDD", ImGuiTableColumnFlags_WidthStretch); - ImGui::TableSetupColumn("EEE", ImGuiTableColumnFlags_WidthStretch); - ImGui::TableSetupColumn("FFF", ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_DefaultHide); - ImGui::TableHeadersRow(); - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 6; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("%s %d,%d", (column >= 3) ? "Stretch" : "Fixed", column, row); - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Reorderable, hideable, with headers")) - { - HelpMarker( - "Click and drag column headers to reorder columns.\n\n" - "Right-click on a header to open a context menu."); - static ImGuiTableFlags flags = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV; - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); - ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); - ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers)"); - PopStyleCompact(); - - if (ImGui::BeginTable("table1", 3, flags)) - { - // Submit columns name with TableSetupColumn() and call TableHeadersRow() to create a row with a header in each column. - // (Later we will show how TableSetupColumn() has other uses, optional flags, sizing weight etc.) - ImGui::TableSetupColumn("One"); - ImGui::TableSetupColumn("Two"); - ImGui::TableSetupColumn("Three"); - ImGui::TableHeadersRow(); - for (int row = 0; row < 6; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("Hello %d,%d", column, row); - } - } - ImGui::EndTable(); - } - - // Use outer_size.x == 0.0f instead of default to make the table as tight as possible (only valid when no scrolling and no stretch column) - if (ImGui::BeginTable("table2", 3, flags | ImGuiTableFlags_SizingFixedFit, ImVec2(0.0f, 0.0f))) - { - ImGui::TableSetupColumn("One"); - ImGui::TableSetupColumn("Two"); - ImGui::TableSetupColumn("Three"); - ImGui::TableHeadersRow(); - for (int row = 0; row < 6; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("Fixed %d,%d", column, row); - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Padding")) - { - // First example: showcase use of padding flags and effect of BorderOuterV/BorderInnerV on X padding. - // We don't expose BorderOuterH/BorderInnerH here because they have no effect on X padding. - HelpMarker( - "We often want outer padding activated when any using features which makes the edges of a column visible:\n" - "e.g.:\n" - "- BorderOuterV\n" - "- any form of row selection\n" - "Because of this, activating BorderOuterV sets the default to PadOuterX. Using PadOuterX or NoPadOuterX you can override the default.\n\n" - "Actual padding values are using style.CellPadding.\n\n" - "In this demo we don't show horizontal borders to emphasis how they don't affect default horizontal padding."); - - static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV; - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_PadOuterX", &flags1, ImGuiTableFlags_PadOuterX); - ImGui::SameLine(); HelpMarker("Enable outer-most padding (default if ImGuiTableFlags_BordersOuterV is set)"); - ImGui::CheckboxFlags("ImGuiTableFlags_NoPadOuterX", &flags1, ImGuiTableFlags_NoPadOuterX); - ImGui::SameLine(); HelpMarker("Disable outer-most padding (default if ImGuiTableFlags_BordersOuterV is not set)"); - ImGui::CheckboxFlags("ImGuiTableFlags_NoPadInnerX", &flags1, ImGuiTableFlags_NoPadInnerX); - ImGui::SameLine(); HelpMarker("Disable inner padding between columns (double inner padding if BordersOuterV is on, single inner padding if BordersOuterV is off)"); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags1, ImGuiTableFlags_BordersOuterV); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags1, ImGuiTableFlags_BordersInnerV); - static bool show_headers = false; - ImGui::Checkbox("show_headers", &show_headers); - PopStyleCompact(); - - if (ImGui::BeginTable("table_padding", 3, flags1)) - { - if (show_headers) - { - ImGui::TableSetupColumn("One"); - ImGui::TableSetupColumn("Two"); - ImGui::TableSetupColumn("Three"); - ImGui::TableHeadersRow(); - } - - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - if (row == 0) - { - ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); - } - else - { - char buf[32]; - sprintf(buf, "Hello %d,%d", column, row); - ImGui::Button(buf, ImVec2(-FLT_MIN, 0.0f)); - } - //if (ImGui::TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) - // ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, IM_COL32(0, 100, 0, 255)); - } - } - ImGui::EndTable(); - } - - // Second example: set style.CellPadding to (0.0) or a custom value. - // FIXME-TABLE: Vertical border effectively not displayed the same way as horizontal one... - HelpMarker("Setting style.CellPadding to (0,0) or a custom value."); - static ImGuiTableFlags flags2 = ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg; - static ImVec2 cell_padding(0.0f, 0.0f); - static bool show_widget_frame_bg = true; - - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags2, ImGuiTableFlags_Borders); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags2, ImGuiTableFlags_BordersH); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags2, ImGuiTableFlags_BordersV); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersInner", &flags2, ImGuiTableFlags_BordersInner); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuter", &flags2, ImGuiTableFlags_BordersOuter); - ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags2, ImGuiTableFlags_RowBg); - ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags2, ImGuiTableFlags_Resizable); - ImGui::Checkbox("show_widget_frame_bg", &show_widget_frame_bg); - ImGui::SliderFloat2("CellPadding", &cell_padding.x, 0.0f, 10.0f, "%.0f"); - PopStyleCompact(); - - ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, cell_padding); - if (ImGui::BeginTable("table_padding_2", 3, flags2)) - { - static char text_bufs[3 * 5][16]; // Mini text storage for 3x5 cells - static bool init = true; - if (!show_widget_frame_bg) - ImGui::PushStyleColor(ImGuiCol_FrameBg, 0); - for (int cell = 0; cell < 3 * 5; cell++) - { - ImGui::TableNextColumn(); - if (init) - strcpy(text_bufs[cell], "edit me"); - ImGui::SetNextItemWidth(-FLT_MIN); - ImGui::PushID(cell); - ImGui::InputText("##cell", text_bufs[cell], IM_ARRAYSIZE(text_bufs[cell])); - ImGui::PopID(); - } - if (!show_widget_frame_bg) - ImGui::PopStyleColor(); - init = false; - ImGui::EndTable(); - } - ImGui::PopStyleVar(); - - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Sizing policies")) - { - static ImGuiTableFlags flags1 = ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_RowBg | ImGuiTableFlags_ContextMenuInBody; - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags1, ImGuiTableFlags_Resizable); - ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags1, ImGuiTableFlags_NoHostExtendX); - PopStyleCompact(); - - static ImGuiTableFlags sizing_policy_flags[4] = { ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_SizingFixedSame, ImGuiTableFlags_SizingStretchProp, ImGuiTableFlags_SizingStretchSame }; - for (int table_n = 0; table_n < 4; table_n++) - { - ImGui::PushID(table_n); - ImGui::SetNextItemWidth(TEXT_BASE_WIDTH * 30); - EditTableSizingFlags(&sizing_policy_flags[table_n]); - - // To make it easier to understand the different sizing policy, - // For each policy: we display one table where the columns have equal contents width, and one where the columns have different contents width. - if (ImGui::BeginTable("table1", 3, sizing_policy_flags[table_n] | flags1)) - { - for (int row = 0; row < 3; row++) - { - ImGui::TableNextRow(); - ImGui::TableNextColumn(); ImGui::Text("Oh dear"); - ImGui::TableNextColumn(); ImGui::Text("Oh dear"); - ImGui::TableNextColumn(); ImGui::Text("Oh dear"); - } - ImGui::EndTable(); - } - if (ImGui::BeginTable("table2", 3, sizing_policy_flags[table_n] | flags1)) - { - for (int row = 0; row < 3; row++) - { - ImGui::TableNextRow(); - ImGui::TableNextColumn(); ImGui::Text("AAAA"); - ImGui::TableNextColumn(); ImGui::Text("BBBBBBBB"); - ImGui::TableNextColumn(); ImGui::Text("CCCCCCCCCCCC"); - } - ImGui::EndTable(); - } - ImGui::PopID(); - } - - ImGui::Spacing(); - ImGui::TextUnformatted("Advanced"); - ImGui::SameLine(); - HelpMarker("This section allows you to interact and see the effect of various sizing policies depending on whether Scroll is enabled and the contents of your columns."); - - enum ContentsType { CT_ShowWidth, CT_ShortText, CT_LongText, CT_Button, CT_FillButton, CT_InputText }; - static ImGuiTableFlags flags = ImGuiTableFlags_ScrollY | ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_Resizable; - static int contents_type = CT_ShowWidth; - static int column_count = 3; - - PushStyleCompact(); - ImGui::PushID("Advanced"); - ImGui::PushItemWidth(TEXT_BASE_WIDTH * 30); - EditTableSizingFlags(&flags); - ImGui::Combo("Contents", &contents_type, "Show width\0Short Text\0Long Text\0Button\0Fill Button\0InputText\0"); - if (contents_type == CT_FillButton) - { - ImGui::SameLine(); - HelpMarker("Be mindful that using right-alignment (e.g. size.x = -FLT_MIN) creates a feedback loop where contents width can feed into auto-column width can feed into contents width."); - } - ImGui::DragInt("Columns", &column_count, 0.1f, 1, 64, "%d", ImGuiSliderFlags_AlwaysClamp); - ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); - ImGui::CheckboxFlags("ImGuiTableFlags_PreciseWidths", &flags, ImGuiTableFlags_PreciseWidths); - ImGui::SameLine(); HelpMarker("Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth."); - ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); - ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); - ImGui::CheckboxFlags("ImGuiTableFlags_NoClip", &flags, ImGuiTableFlags_NoClip); - ImGui::PopItemWidth(); - ImGui::PopID(); - PopStyleCompact(); - - if (ImGui::BeginTable("table2", column_count, flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 7))) - { - for (int cell = 0; cell < 10 * column_count; cell++) - { - ImGui::TableNextColumn(); - int column = ImGui::TableGetColumnIndex(); - int row = ImGui::TableGetRowIndex(); - - ImGui::PushID(cell); - char label[32]; - static char text_buf[32] = ""; - sprintf(label, "Hello %d,%d", column, row); - switch (contents_type) - { - case CT_ShortText: ImGui::TextUnformatted(label); break; - case CT_LongText: ImGui::Text("Some %s text %d,%d\nOver two lines..", column == 0 ? "long" : "longeeer", column, row); break; - case CT_ShowWidth: ImGui::Text("W: %.1f", ImGui::GetContentRegionAvail().x); break; - case CT_Button: ImGui::Button(label); break; - case CT_FillButton: ImGui::Button(label, ImVec2(-FLT_MIN, 0.0f)); break; - case CT_InputText: ImGui::SetNextItemWidth(-FLT_MIN); ImGui::InputText("##", text_buf, IM_ARRAYSIZE(text_buf)); break; - } - ImGui::PopID(); - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Vertical scrolling, with clipping")) - { - HelpMarker("Here we activate ScrollY, which will create a child window container to allow hosting scrollable contents.\n\nWe also demonstrate using ImGuiListClipper to virtualize the submission of many items."); - static ImGuiTableFlags flags = ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; - - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); - PopStyleCompact(); - - // When using ScrollX or ScrollY we need to specify a size for our table container! - // Otherwise by default the table will fit all available space, like a BeginChild() call. - ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 8); - if (ImGui::BeginTable("table_scrolly", 3, flags, outer_size)) - { - ImGui::TableSetupScrollFreeze(0, 1); // Make top row always visible - ImGui::TableSetupColumn("One", ImGuiTableColumnFlags_None); - ImGui::TableSetupColumn("Two", ImGuiTableColumnFlags_None); - ImGui::TableSetupColumn("Three", ImGuiTableColumnFlags_None); - ImGui::TableHeadersRow(); - - // Demonstrate using clipper for large vertical lists - ImGuiListClipper clipper; - clipper.Begin(1000); - while (clipper.Step()) - { - for (int row = clipper.DisplayStart; row < clipper.DisplayEnd; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("Hello %d,%d", column, row); - } - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Horizontal scrolling")) - { - HelpMarker( - "When ScrollX is enabled, the default sizing policy becomes ImGuiTableFlags_SizingFixedFit, " - "as automatically stretching columns doesn't make much sense with horizontal scrolling.\n\n" - "Also note that as of the current version, you will almost always want to enable ScrollY along with ScrollX," - "because the container window won't automatically extend vertically to fix contents (this may be improved in future versions)."); - static ImGuiTableFlags flags = ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable; - static int freeze_cols = 1; - static int freeze_rows = 1; - - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); - ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); - ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); - ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); - ImGui::DragInt("freeze_cols", &freeze_cols, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); - ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); - ImGui::DragInt("freeze_rows", &freeze_rows, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); - PopStyleCompact(); - - // When using ScrollX or ScrollY we need to specify a size for our table container! - // Otherwise by default the table will fit all available space, like a BeginChild() call. - ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 8); - if (ImGui::BeginTable("table_scrollx", 7, flags, outer_size)) - { - ImGui::TableSetupScrollFreeze(freeze_cols, freeze_rows); - ImGui::TableSetupColumn("Line #", ImGuiTableColumnFlags_NoHide); // Make the first column not hideable to match our use of TableSetupScrollFreeze() - ImGui::TableSetupColumn("One"); - ImGui::TableSetupColumn("Two"); - ImGui::TableSetupColumn("Three"); - ImGui::TableSetupColumn("Four"); - ImGui::TableSetupColumn("Five"); - ImGui::TableSetupColumn("Six"); - ImGui::TableHeadersRow(); - for (int row = 0; row < 20; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 7; column++) - { - // Both TableNextColumn() and TableSetColumnIndex() return true when a column is visible or performing width measurement. - // Because here we know that: - // - A) all our columns are contributing the same to row height - // - B) column 0 is always visible, - // We only always submit this one column and can skip others. - // More advanced per-column clipping behaviors may benefit from polling the status flags via TableGetColumnFlags(). - if (!ImGui::TableSetColumnIndex(column) && column > 0) - continue; - if (column == 0) - ImGui::Text("Line %d", row); - else - ImGui::Text("Hello world %d,%d", column, row); - } - } - ImGui::EndTable(); - } - - ImGui::Spacing(); - ImGui::TextUnformatted("Stretch + ScrollX"); - ImGui::SameLine(); - HelpMarker( - "Showcase using Stretch columns + ScrollX together: " - "this is rather unusual and only makes sense when specifying an 'inner_width' for the table!\n" - "Without an explicit value, inner_width is == outer_size.x and therefore using Stretch columns + ScrollX together doesn't make sense."); - static ImGuiTableFlags flags2 = ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_RowBg | ImGuiTableFlags_ContextMenuInBody; - static float inner_width = 1000.0f; - PushStyleCompact(); - ImGui::PushID("flags3"); - ImGui::PushItemWidth(TEXT_BASE_WIDTH * 30); - ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags2, ImGuiTableFlags_ScrollX); - ImGui::DragFloat("inner_width", &inner_width, 1.0f, 0.0f, FLT_MAX, "%.1f"); - ImGui::PopItemWidth(); - ImGui::PopID(); - PopStyleCompact(); - if (ImGui::BeginTable("table2", 7, flags2, outer_size, inner_width)) - { - for (int cell = 0; cell < 20 * 7; cell++) - { - ImGui::TableNextColumn(); - ImGui::Text("Hello world %d,%d", ImGui::TableGetColumnIndex(), ImGui::TableGetRowIndex()); - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Columns flags")) - { - // Create a first table just to show all the options/flags we want to make visible in our example! - const int column_count = 3; - const char* column_names[column_count] = { "One", "Two", "Three" }; - static ImGuiTableColumnFlags column_flags[column_count] = { ImGuiTableColumnFlags_DefaultSort, ImGuiTableColumnFlags_None, ImGuiTableColumnFlags_DefaultHide }; - static ImGuiTableColumnFlags column_flags_out[column_count] = { 0, 0, 0 }; // Output from TableGetColumnFlags() - - if (ImGui::BeginTable("table_columns_flags_checkboxes", column_count, ImGuiTableFlags_None)) - { - PushStyleCompact(); - for (int column = 0; column < column_count; column++) - { - ImGui::TableNextColumn(); - ImGui::PushID(column); - ImGui::AlignTextToFramePadding(); // FIXME-TABLE: Workaround for wrong text baseline propagation - ImGui::Text("'%s'", column_names[column]); - ImGui::Spacing(); - ImGui::Text("Input flags:"); - EditTableColumnsFlags(&column_flags[column]); - ImGui::Spacing(); - ImGui::Text("Output flags:"); - ShowTableColumnsStatusFlags(column_flags_out[column]); - ImGui::PopID(); - } - PopStyleCompact(); - ImGui::EndTable(); - } - - // Create the real table we care about for the example! - // We use a scrolling table to be able to showcase the difference between the _IsEnabled and _IsVisible flags above, otherwise in - // a non-scrolling table columns are always visible (unless using ImGuiTableFlags_NoKeepColumnsVisible + resizing the parent window down) - const ImGuiTableFlags flags - = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY - | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV - | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable; - ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 9); - if (ImGui::BeginTable("table_columns_flags", column_count, flags, outer_size)) - { - for (int column = 0; column < column_count; column++) - ImGui::TableSetupColumn(column_names[column], column_flags[column]); - ImGui::TableHeadersRow(); - for (int column = 0; column < column_count; column++) - column_flags_out[column] = ImGui::TableGetColumnFlags(column); - float indent_step = (float)((int)TEXT_BASE_WIDTH / 2); - for (int row = 0; row < 8; row++) - { - ImGui::Indent(indent_step); // Add some indentation to demonstrate usage of per-column IndentEnable/IndentDisable flags. - ImGui::TableNextRow(); - for (int column = 0; column < column_count; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("%s %s", (column == 0) ? "Indented" : "Hello", ImGui::TableGetColumnName(column)); - } - } - ImGui::Unindent(indent_step * 8.0f); - - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Columns widths")) - { - HelpMarker("Using TableSetupColumn() to setup default width."); - - static ImGuiTableFlags flags1 = ImGuiTableFlags_Borders | ImGuiTableFlags_NoBordersInBodyUntilResize; - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags1, ImGuiTableFlags_Resizable); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags1, ImGuiTableFlags_NoBordersInBodyUntilResize); - PopStyleCompact(); - if (ImGui::BeginTable("table1", 3, flags1)) - { - // We could also set ImGuiTableFlags_SizingFixedFit on the table and all columns will default to ImGuiTableColumnFlags_WidthFixed. - ImGui::TableSetupColumn("one", ImGuiTableColumnFlags_WidthFixed, 100.0f); // Default to 100.0f - ImGui::TableSetupColumn("two", ImGuiTableColumnFlags_WidthFixed, 200.0f); // Default to 200.0f - ImGui::TableSetupColumn("three", ImGuiTableColumnFlags_WidthFixed); // Default to auto - ImGui::TableHeadersRow(); - for (int row = 0; row < 4; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableSetColumnIndex(column); - if (row == 0) - ImGui::Text("(w: %5.1f)", ImGui::GetContentRegionAvail().x); - else - ImGui::Text("Hello %d,%d", column, row); - } - } - ImGui::EndTable(); - } - - HelpMarker("Using TableSetupColumn() to setup explicit width.\n\nUnless _NoKeepColumnsVisible is set, fixed columns with set width may still be shrunk down if there's not enough space in the host."); - - static ImGuiTableFlags flags2 = ImGuiTableFlags_None; - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_NoKeepColumnsVisible", &flags2, ImGuiTableFlags_NoKeepColumnsVisible); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags2, ImGuiTableFlags_BordersInnerV); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags2, ImGuiTableFlags_BordersOuterV); - PopStyleCompact(); - if (ImGui::BeginTable("table2", 4, flags2)) - { - // We could also set ImGuiTableFlags_SizingFixedFit on the table and all columns will default to ImGuiTableColumnFlags_WidthFixed. - ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, 100.0f); - ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 15.0f); - ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 30.0f); - ImGui::TableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 15.0f); - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 4; column++) - { - ImGui::TableSetColumnIndex(column); - if (row == 0) - ImGui::Text("(w: %5.1f)", ImGui::GetContentRegionAvail().x); - else - ImGui::Text("Hello %d,%d", column, row); - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Nested tables")) - { - HelpMarker("This demonstrate embedding a table into another table cell."); - - if (ImGui::BeginTable("table_nested1", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) - { - ImGui::TableSetupColumn("A0"); - ImGui::TableSetupColumn("A1"); - ImGui::TableHeadersRow(); - - ImGui::TableNextColumn(); - ImGui::Text("A0 Row 0"); - { - float rows_height = TEXT_BASE_HEIGHT * 2; - if (ImGui::BeginTable("table_nested2", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) - { - ImGui::TableSetupColumn("B0"); - ImGui::TableSetupColumn("B1"); - ImGui::TableHeadersRow(); - - ImGui::TableNextRow(ImGuiTableRowFlags_None, rows_height); - ImGui::TableNextColumn(); - ImGui::Text("B0 Row 0"); - ImGui::TableNextColumn(); - ImGui::Text("B1 Row 0"); - ImGui::TableNextRow(ImGuiTableRowFlags_None, rows_height); - ImGui::TableNextColumn(); - ImGui::Text("B0 Row 1"); - ImGui::TableNextColumn(); - ImGui::Text("B1 Row 1"); - - ImGui::EndTable(); - } - } - ImGui::TableNextColumn(); ImGui::Text("A1 Row 0"); - ImGui::TableNextColumn(); ImGui::Text("A0 Row 1"); - ImGui::TableNextColumn(); ImGui::Text("A1 Row 1"); - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Row height")) - { - HelpMarker("You can pass a 'min_row_height' to TableNextRow().\n\nRows are padded with 'style.CellPadding.y' on top and bottom, so effectively the minimum row height will always be >= 'style.CellPadding.y * 2.0f'.\n\nWe cannot honor a _maximum_ row height as that would requires a unique clipping rectangle per row."); - if (ImGui::BeginTable("table_row_height", 1, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersInnerV)) - { - for (int row = 0; row < 10; row++) - { - float min_row_height = (float)(int)(TEXT_BASE_HEIGHT * 0.30f * row); - ImGui::TableNextRow(ImGuiTableRowFlags_None, min_row_height); - ImGui::TableNextColumn(); - ImGui::Text("min_row_height = %.2f", min_row_height); - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Outer size")) - { - // Showcasing use of ImGuiTableFlags_NoHostExtendX and ImGuiTableFlags_NoHostExtendY - // Important to that note how the two flags have slightly different behaviors! - ImGui::Text("Using NoHostExtendX and NoHostExtendY:"); - PushStyleCompact(); - static ImGuiTableFlags flags = ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_ContextMenuInBody | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoHostExtendX; - ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); - ImGui::SameLine(); HelpMarker("Make outer width auto-fit to columns, overriding outer_size.x value.\n\nOnly available when ScrollX/ScrollY are disabled and Stretch columns are not used."); - ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendY", &flags, ImGuiTableFlags_NoHostExtendY); - ImGui::SameLine(); HelpMarker("Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit).\n\nOnly available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible."); - PopStyleCompact(); - - ImVec2 outer_size = ImVec2(0.0f, TEXT_BASE_HEIGHT * 5.5f); - if (ImGui::BeginTable("table1", 3, flags, outer_size)) - { - for (int row = 0; row < 10; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableNextColumn(); - ImGui::Text("Cell %d,%d", column, row); - } - } - ImGui::EndTable(); - } - ImGui::SameLine(); - ImGui::Text("Hello!"); - - ImGui::Spacing(); - - ImGui::Text("Using explicit size:"); - if (ImGui::BeginTable("table2", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg, ImVec2(TEXT_BASE_WIDTH * 30, 0.0f))) - { - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - ImGui::TableNextColumn(); - ImGui::Text("Cell %d,%d", column, row); - } - } - ImGui::EndTable(); - } - ImGui::SameLine(); - if (ImGui::BeginTable("table3", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg, ImVec2(TEXT_BASE_WIDTH * 30, 0.0f))) - { - for (int row = 0; row < 3; row++) - { - ImGui::TableNextRow(0, TEXT_BASE_HEIGHT * 1.5f); - for (int column = 0; column < 3; column++) - { - ImGui::TableNextColumn(); - ImGui::Text("Cell %d,%d", column, row); - } - } - ImGui::EndTable(); - } - - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Background color")) - { - static ImGuiTableFlags flags = ImGuiTableFlags_RowBg; - static int row_bg_type = 1; - static int row_bg_target = 1; - static int cell_bg_type = 1; - - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_Borders", &flags, ImGuiTableFlags_Borders); - ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); - ImGui::SameLine(); HelpMarker("ImGuiTableFlags_RowBg automatically sets RowBg0 to alternative colors pulled from the Style."); - ImGui::Combo("row bg type", (int*)&row_bg_type, "None\0Red\0Gradient\0"); - ImGui::Combo("row bg target", (int*)&row_bg_target, "RowBg0\0RowBg1\0"); ImGui::SameLine(); HelpMarker("Target RowBg0 to override the alternating odd/even colors,\nTarget RowBg1 to blend with them."); - ImGui::Combo("cell bg type", (int*)&cell_bg_type, "None\0Blue\0"); ImGui::SameLine(); HelpMarker("We are colorizing cells to B1->C2 here."); - IM_ASSERT(row_bg_type >= 0 && row_bg_type <= 2); - IM_ASSERT(row_bg_target >= 0 && row_bg_target <= 1); - IM_ASSERT(cell_bg_type >= 0 && cell_bg_type <= 1); - PopStyleCompact(); - - if (ImGui::BeginTable("table1", 5, flags)) - { - for (int row = 0; row < 6; row++) - { - ImGui::TableNextRow(); - - // Demonstrate setting a row background color with 'ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBgX, ...)' - // We use a transparent color so we can see the one behind in case our target is RowBg1 and RowBg0 was already targeted by the ImGuiTableFlags_RowBg flag. - if (row_bg_type != 0) - { - ImU32 row_bg_color = ImGui::GetColorU32(row_bg_type == 1 ? ImVec4(0.7f, 0.3f, 0.3f, 0.65f) : ImVec4(0.2f + row * 0.1f, 0.2f, 0.2f, 0.65f)); // Flat or Gradient? - ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0 + row_bg_target, row_bg_color); - } - - // Fill cells - for (int column = 0; column < 5; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("%c%c", 'A' + row, '0' + column); - - // Change background of Cells B1->C2 - // Demonstrate setting a cell background color with 'ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, ...)' - // (the CellBg color will be blended over the RowBg and ColumnBg colors) - // We can also pass a column number as a third parameter to TableSetBgColor() and do this outside the column loop. - if (row >= 1 && row <= 2 && column >= 1 && column <= 2 && cell_bg_type == 1) - { - ImU32 cell_bg_color = ImGui::GetColorU32(ImVec4(0.3f, 0.3f, 0.7f, 0.65f)); - ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, cell_bg_color); - } - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Tree view")) - { - static ImGuiTableFlags flags = ImGuiTableFlags_BordersV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_Resizable | ImGuiTableFlags_RowBg | ImGuiTableFlags_NoBordersInBody; - - if (ImGui::BeginTable("3ways", 3, flags)) - { - // The first column will use the default _WidthStretch when ScrollX is Off and _WidthFixed when ScrollX is On - ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_NoHide); - ImGui::TableSetupColumn("Size", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 12.0f); - ImGui::TableSetupColumn("Type", ImGuiTableColumnFlags_WidthFixed, TEXT_BASE_WIDTH * 18.0f); - ImGui::TableHeadersRow(); - - // Simple storage to output a dummy file-system. - struct MyTreeNode - { - const char* Name; - const char* Type; - int Size; - int ChildIdx; - int ChildCount; - static void DisplayNode(const MyTreeNode* node, const MyTreeNode* all_nodes) - { - ImGui::TableNextRow(); - ImGui::TableNextColumn(); - const bool is_folder = (node->ChildCount > 0); - if (is_folder) - { - bool open = ImGui::TreeNodeEx(node->Name, ImGuiTreeNodeFlags_SpanFullWidth); - ImGui::TableNextColumn(); - ImGui::TextDisabled("--"); - ImGui::TableNextColumn(); - ImGui::TextUnformatted(node->Type); - if (open) - { - for (int child_n = 0; child_n < node->ChildCount; child_n++) - DisplayNode(&all_nodes[node->ChildIdx + child_n], all_nodes); - ImGui::TreePop(); - } - } - else - { - ImGui::TreeNodeEx(node->Name, ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_SpanFullWidth); - ImGui::TableNextColumn(); - ImGui::Text("%d", node->Size); - ImGui::TableNextColumn(); - ImGui::TextUnformatted(node->Type); - } - } - }; - static const MyTreeNode nodes[] = - { - { "Root", "Folder", -1, 1, 3 }, // 0 - { "Music", "Folder", -1, 4, 2 }, // 1 - { "Textures", "Folder", -1, 6, 3 }, // 2 - { "desktop.ini", "System file", 1024, -1,-1 }, // 3 - { "File1_a.wav", "Audio file", 123000, -1,-1 }, // 4 - { "File1_b.wav", "Audio file", 456000, -1,-1 }, // 5 - { "Image001.png", "Image file", 203128, -1,-1 }, // 6 - { "Copy of Image001.png", "Image file", 203256, -1,-1 }, // 7 - { "Copy of Image001 (Final2).png","Image file", 203512, -1,-1 }, // 8 - }; - - MyTreeNode::DisplayNode(&nodes[0], nodes); - - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Item width")) - { - HelpMarker( - "Showcase using PushItemWidth() and how it is preserved on a per-column basis.\n\n" - "Note that on auto-resizing non-resizable fixed columns, querying the content width for e.g. right-alignment doesn't make sense."); - if (ImGui::BeginTable("table_item_width", 3, ImGuiTableFlags_Borders)) - { - ImGui::TableSetupColumn("small"); - ImGui::TableSetupColumn("half"); - ImGui::TableSetupColumn("right-align"); - ImGui::TableHeadersRow(); - - for (int row = 0; row < 3; row++) - { - ImGui::TableNextRow(); - if (row == 0) - { - // Setup ItemWidth once (instead of setting up every time, which is also possible but less efficient) - ImGui::TableSetColumnIndex(0); - ImGui::PushItemWidth(TEXT_BASE_WIDTH * 3.0f); // Small - ImGui::TableSetColumnIndex(1); - ImGui::PushItemWidth(-ImGui::GetContentRegionAvail().x * 0.5f); - ImGui::TableSetColumnIndex(2); - ImGui::PushItemWidth(-FLT_MIN); // Right-aligned - } - - // Draw our contents - static float dummy_f = 0.0f; - ImGui::PushID(row); - ImGui::TableSetColumnIndex(0); - ImGui::SliderFloat("float0", &dummy_f, 0.0f, 1.0f); - ImGui::TableSetColumnIndex(1); - ImGui::SliderFloat("float1", &dummy_f, 0.0f, 1.0f); - ImGui::TableSetColumnIndex(2); - ImGui::SliderFloat("float2", &dummy_f, 0.0f, 1.0f); - ImGui::PopID(); - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - // Demonstrate using TableHeader() calls instead of TableHeadersRow() - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Custom headers")) - { - const int COLUMNS_COUNT = 3; - if (ImGui::BeginTable("table_custom_headers", COLUMNS_COUNT, ImGuiTableFlags_Borders | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) - { - ImGui::TableSetupColumn("Apricot"); - ImGui::TableSetupColumn("Banana"); - ImGui::TableSetupColumn("Cherry"); - - // Dummy entire-column selection storage - // FIXME: It would be nice to actually demonstrate full-featured selection using those checkbox. - static bool column_selected[3] = {}; - - // Instead of calling TableHeadersRow() we'll submit custom headers ourselves - ImGui::TableNextRow(ImGuiTableRowFlags_Headers); - for (int column = 0; column < COLUMNS_COUNT; column++) - { - ImGui::TableSetColumnIndex(column); - const char* column_name = ImGui::TableGetColumnName(column); // Retrieve name passed to TableSetupColumn() - ImGui::PushID(column); - ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); - ImGui::Checkbox("##checkall", &column_selected[column]); - ImGui::PopStyleVar(); - ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); - ImGui::TableHeader(column_name); - ImGui::PopID(); - } - - for (int row = 0; row < 5; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < 3; column++) - { - char buf[32]; - sprintf(buf, "Cell %d,%d", column, row); - ImGui::TableSetColumnIndex(column); - ImGui::Selectable(buf, column_selected[column]); - } - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - // Demonstrate creating custom context menus inside columns, while playing it nice with context menus provided by TableHeadersRow()/TableHeader() - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Context menus")) - { - HelpMarker("By default, right-clicking over a TableHeadersRow()/TableHeader() line will open the default context-menu.\nUsing ImGuiTableFlags_ContextMenuInBody we also allow right-clicking over columns body."); - static ImGuiTableFlags flags1 = ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_ContextMenuInBody; - - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_ContextMenuInBody", &flags1, ImGuiTableFlags_ContextMenuInBody); - PopStyleCompact(); - - // Context Menus: first example - // [1.1] Right-click on the TableHeadersRow() line to open the default table context menu. - // [1.2] Right-click in columns also open the default table context menu (if ImGuiTableFlags_ContextMenuInBody is set) - const int COLUMNS_COUNT = 3; - if (ImGui::BeginTable("table_context_menu", COLUMNS_COUNT, flags1)) - { - ImGui::TableSetupColumn("One"); - ImGui::TableSetupColumn("Two"); - ImGui::TableSetupColumn("Three"); - - // [1.1]] Right-click on the TableHeadersRow() line to open the default table context menu. - ImGui::TableHeadersRow(); - - // Submit dummy contents - for (int row = 0; row < 4; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < COLUMNS_COUNT; column++) - { - ImGui::TableSetColumnIndex(column); - ImGui::Text("Cell %d,%d", column, row); - } - } - ImGui::EndTable(); - } - - // Context Menus: second example - // [2.1] Right-click on the TableHeadersRow() line to open the default table context menu. - // [2.2] Right-click on the ".." to open a custom popup - // [2.3] Right-click in columns to open another custom popup - HelpMarker("Demonstrate mixing table context menu (over header), item context button (over button) and custom per-colum context menu (over column body)."); - ImGuiTableFlags flags2 = ImGuiTableFlags_Resizable | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders; - if (ImGui::BeginTable("table_context_menu_2", COLUMNS_COUNT, flags2)) - { - ImGui::TableSetupColumn("One"); - ImGui::TableSetupColumn("Two"); - ImGui::TableSetupColumn("Three"); - - // [2.1] Right-click on the TableHeadersRow() line to open the default table context menu. - ImGui::TableHeadersRow(); - for (int row = 0; row < 4; row++) - { - ImGui::TableNextRow(); - for (int column = 0; column < COLUMNS_COUNT; column++) - { - // Submit dummy contents - ImGui::TableSetColumnIndex(column); - ImGui::Text("Cell %d,%d", column, row); - ImGui::SameLine(); - - // [2.2] Right-click on the ".." to open a custom popup - ImGui::PushID(row * COLUMNS_COUNT + column); - ImGui::SmallButton(".."); - if (ImGui::BeginPopupContextItem()) - { - ImGui::Text("This is the popup for Button(\"..\") in Cell %d,%d", column, row); - if (ImGui::Button("Close")) - ImGui::CloseCurrentPopup(); - ImGui::EndPopup(); - } - ImGui::PopID(); - } - } - - // [2.3] Right-click anywhere in columns to open another custom popup - // (instead of testing for !IsAnyItemHovered() we could also call OpenPopup() with ImGuiPopupFlags_NoOpenOverExistingPopup - // to manage popup priority as the popups triggers, here "are we hovering a column" are overlapping) - int hovered_column = -1; - for (int column = 0; column < COLUMNS_COUNT + 1; column++) - { - ImGui::PushID(column); - if (ImGui::TableGetColumnFlags(column) & ImGuiTableColumnFlags_IsHovered) - hovered_column = column; - if (hovered_column == column && !ImGui::IsAnyItemHovered() && ImGui::IsMouseReleased(1)) - ImGui::OpenPopup("MyPopup"); - if (ImGui::BeginPopup("MyPopup")) - { - if (column == COLUMNS_COUNT) - ImGui::Text("This is a custom popup for unused space after the last column."); - else - ImGui::Text("This is a custom popup for Column %d", column); - if (ImGui::Button("Close")) - ImGui::CloseCurrentPopup(); - ImGui::EndPopup(); - } - ImGui::PopID(); - } - - ImGui::EndTable(); - ImGui::Text("Hovered column: %d", hovered_column); - } - ImGui::TreePop(); - } - - // Demonstrate creating multiple tables with the same ID - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Synced instances")) - { - HelpMarker("Multiple tables with the same identifier will share their settings, width, visibility, order etc."); - for (int n = 0; n < 3; n++) - { - char buf[32]; - sprintf(buf, "Synced Table %d", n); - bool open = ImGui::CollapsingHeader(buf, ImGuiTreeNodeFlags_DefaultOpen); - if (open && ImGui::BeginTable("Table", 3, ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Borders | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_NoSavedSettings)) - { - ImGui::TableSetupColumn("One"); - ImGui::TableSetupColumn("Two"); - ImGui::TableSetupColumn("Three"); - ImGui::TableHeadersRow(); - for (int cell = 0; cell < 9; cell++) - { - ImGui::TableNextColumn(); - ImGui::Text("this cell %d", cell); - } - ImGui::EndTable(); - } - } - ImGui::TreePop(); - } - - // Demonstrate using Sorting facilities - // This is a simplified version of the "Advanced" example, where we mostly focus on the code necessary to handle sorting. - // Note that the "Advanced" example also showcase manually triggering a sort (e.g. if item quantities have been modified) - static const char* template_items_names[] = - { - "Banana", "Apple", "Cherry", "Watermelon", "Grapefruit", "Strawberry", "Mango", - "Kiwi", "Orange", "Pineapple", "Blueberry", "Plum", "Coconut", "Pear", "Apricot" - }; - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Sorting")) - { - // Create item list - static ImVector items; - if (items.Size == 0) - { - items.resize(50, MyItem()); - for (int n = 0; n < items.Size; n++) - { - const int template_n = n % IM_ARRAYSIZE(template_items_names); - MyItem& item = items[n]; - item.ID = n; - item.Name = template_items_names[template_n]; - item.Quantity = (n * n - n) % 20; // Assign default quantities - } - } - - // Options - static ImGuiTableFlags flags = - ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Sortable | ImGuiTableFlags_SortMulti - | ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_NoBordersInBody - | ImGuiTableFlags_ScrollY; - PushStyleCompact(); - ImGui::CheckboxFlags("ImGuiTableFlags_SortMulti", &flags, ImGuiTableFlags_SortMulti); - ImGui::SameLine(); HelpMarker("When sorting is enabled: hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1)."); - ImGui::CheckboxFlags("ImGuiTableFlags_SortTristate", &flags, ImGuiTableFlags_SortTristate); - ImGui::SameLine(); HelpMarker("When sorting is enabled: allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0)."); - PopStyleCompact(); - - if (ImGui::BeginTable("table_sorting", 4, flags, ImVec2(0.0f, TEXT_BASE_HEIGHT * 15), 0.0f)) - { - // Declare columns - // We use the "user_id" parameter of TableSetupColumn() to specify a user id that will be stored in the sort specifications. - // This is so our sort function can identify a column given our own identifier. We could also identify them based on their index! - // Demonstrate using a mixture of flags among available sort-related flags: - // - ImGuiTableColumnFlags_DefaultSort - // - ImGuiTableColumnFlags_NoSort / ImGuiTableColumnFlags_NoSortAscending / ImGuiTableColumnFlags_NoSortDescending - // - ImGuiTableColumnFlags_PreferSortAscending / ImGuiTableColumnFlags_PreferSortDescending - ImGui::TableSetupColumn("ID", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_ID); - ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Name); - ImGui::TableSetupColumn("Action", ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Action); - ImGui::TableSetupColumn("Quantity", ImGuiTableColumnFlags_PreferSortDescending | ImGuiTableColumnFlags_WidthStretch, 0.0f, MyItemColumnID_Quantity); - ImGui::TableSetupScrollFreeze(0, 1); // Make row always visible - ImGui::TableHeadersRow(); - - // Sort our data if sort specs have been changed! - if (ImGuiTableSortSpecs* sorts_specs = ImGui::TableGetSortSpecs()) - if (sorts_specs->SpecsDirty) - { - MyItem::s_current_sort_specs = sorts_specs; // Store in variable accessible by the sort function. - if (items.Size > 1) - qsort(&items[0], (size_t)items.Size, sizeof(items[0]), MyItem::CompareWithSortSpecs); - MyItem::s_current_sort_specs = NULL; - sorts_specs->SpecsDirty = false; - } - - // Demonstrate using clipper for large vertical lists - ImGuiListClipper clipper; - clipper.Begin(items.Size); - while (clipper.Step()) - for (int row_n = clipper.DisplayStart; row_n < clipper.DisplayEnd; row_n++) - { - // Display a data item - MyItem* item = &items[row_n]; - ImGui::PushID(item->ID); - ImGui::TableNextRow(); - ImGui::TableNextColumn(); - ImGui::Text("%04d", item->ID); - ImGui::TableNextColumn(); - ImGui::TextUnformatted(item->Name); - ImGui::TableNextColumn(); - ImGui::SmallButton("None"); - ImGui::TableNextColumn(); - ImGui::Text("%d", item->Quantity); - ImGui::PopID(); - } - ImGui::EndTable(); - } - ImGui::TreePop(); - } - - // In this example we'll expose most table flags and settings. - // For specific flags and settings refer to the corresponding section for more detailed explanation. - // This section is mostly useful to experiment with combining certain flags or settings with each others. - //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // [DEBUG] - if (open_action != -1) - ImGui::SetNextItemOpen(open_action != 0); - if (ImGui::TreeNode("Advanced")) - { - static ImGuiTableFlags flags = - ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable - | ImGuiTableFlags_Sortable | ImGuiTableFlags_SortMulti - | ImGuiTableFlags_RowBg | ImGuiTableFlags_Borders | ImGuiTableFlags_NoBordersInBody - | ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY - | ImGuiTableFlags_SizingFixedFit; - - enum ContentsType { CT_Text, CT_Button, CT_SmallButton, CT_FillButton, CT_Selectable, CT_SelectableSpanRow }; - static int contents_type = CT_SelectableSpanRow; - const char* contents_type_names[] = { "Text", "Button", "SmallButton", "FillButton", "Selectable", "Selectable (span row)" }; - static int freeze_cols = 1; - static int freeze_rows = 1; - static int items_count = IM_ARRAYSIZE(template_items_names) * 2; - static ImVec2 outer_size_value = ImVec2(0.0f, TEXT_BASE_HEIGHT * 12); - static float row_min_height = 0.0f; // Auto - static float inner_width_with_scroll = 0.0f; // Auto-extend - static bool outer_size_enabled = true; - static bool show_headers = true; - static bool show_wrapped_text = false; - //static ImGuiTextFilter filter; - //ImGui::SetNextItemOpen(true, ImGuiCond_Once); // FIXME-TABLE: Enabling this results in initial clipped first pass on table which tend to affects column sizing - if (ImGui::TreeNode("Options")) - { - // Make the UI compact because there are so many fields - PushStyleCompact(); - ImGui::PushItemWidth(TEXT_BASE_WIDTH * 28.0f); - - if (ImGui::TreeNodeEx("Features:", ImGuiTreeNodeFlags_DefaultOpen)) - { - ImGui::CheckboxFlags("ImGuiTableFlags_Resizable", &flags, ImGuiTableFlags_Resizable); - ImGui::CheckboxFlags("ImGuiTableFlags_Reorderable", &flags, ImGuiTableFlags_Reorderable); - ImGui::CheckboxFlags("ImGuiTableFlags_Hideable", &flags, ImGuiTableFlags_Hideable); - ImGui::CheckboxFlags("ImGuiTableFlags_Sortable", &flags, ImGuiTableFlags_Sortable); - ImGui::CheckboxFlags("ImGuiTableFlags_NoSavedSettings", &flags, ImGuiTableFlags_NoSavedSettings); - ImGui::CheckboxFlags("ImGuiTableFlags_ContextMenuInBody", &flags, ImGuiTableFlags_ContextMenuInBody); - ImGui::TreePop(); - } - - if (ImGui::TreeNodeEx("Decorations:", ImGuiTreeNodeFlags_DefaultOpen)) - { - ImGui::CheckboxFlags("ImGuiTableFlags_RowBg", &flags, ImGuiTableFlags_RowBg); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersV", &flags, ImGuiTableFlags_BordersV); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterV", &flags, ImGuiTableFlags_BordersOuterV); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerV", &flags, ImGuiTableFlags_BordersInnerV); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersH", &flags, ImGuiTableFlags_BordersH); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersOuterH", &flags, ImGuiTableFlags_BordersOuterH); - ImGui::CheckboxFlags("ImGuiTableFlags_BordersInnerH", &flags, ImGuiTableFlags_BordersInnerH); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBody", &flags, ImGuiTableFlags_NoBordersInBody); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body (borders will always appears in Headers"); - ImGui::CheckboxFlags("ImGuiTableFlags_NoBordersInBodyUntilResize", &flags, ImGuiTableFlags_NoBordersInBodyUntilResize); ImGui::SameLine(); HelpMarker("Disable vertical borders in columns Body until hovered for resize (borders will always appears in Headers)"); - ImGui::TreePop(); - } - - if (ImGui::TreeNodeEx("Sizing:", ImGuiTreeNodeFlags_DefaultOpen)) - { - EditTableSizingFlags(&flags); - ImGui::SameLine(); HelpMarker("In the Advanced demo we override the policy of each column so those table-wide settings have less effect that typical."); - ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendX", &flags, ImGuiTableFlags_NoHostExtendX); - ImGui::SameLine(); HelpMarker("Make outer width auto-fit to columns, overriding outer_size.x value.\n\nOnly available when ScrollX/ScrollY are disabled and Stretch columns are not used."); - ImGui::CheckboxFlags("ImGuiTableFlags_NoHostExtendY", &flags, ImGuiTableFlags_NoHostExtendY); - ImGui::SameLine(); HelpMarker("Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit).\n\nOnly available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible."); - ImGui::CheckboxFlags("ImGuiTableFlags_NoKeepColumnsVisible", &flags, ImGuiTableFlags_NoKeepColumnsVisible); - ImGui::SameLine(); HelpMarker("Only available if ScrollX is disabled."); - ImGui::CheckboxFlags("ImGuiTableFlags_PreciseWidths", &flags, ImGuiTableFlags_PreciseWidths); - ImGui::SameLine(); HelpMarker("Disable distributing remainder width to stretched columns (width allocation on a 100-wide table with 3 columns: Without this flag: 33,33,34. With this flag: 33,33,33). With larger number of columns, resizing will appear to be less smooth."); - ImGui::CheckboxFlags("ImGuiTableFlags_NoClip", &flags, ImGuiTableFlags_NoClip); - ImGui::SameLine(); HelpMarker("Disable clipping rectangle for every individual columns (reduce draw command count, items will be able to overflow into other columns). Generally incompatible with ScrollFreeze options."); - ImGui::TreePop(); - } - - if (ImGui::TreeNodeEx("Padding:", ImGuiTreeNodeFlags_DefaultOpen)) - { - ImGui::CheckboxFlags("ImGuiTableFlags_PadOuterX", &flags, ImGuiTableFlags_PadOuterX); - ImGui::CheckboxFlags("ImGuiTableFlags_NoPadOuterX", &flags, ImGuiTableFlags_NoPadOuterX); - ImGui::CheckboxFlags("ImGuiTableFlags_NoPadInnerX", &flags, ImGuiTableFlags_NoPadInnerX); - ImGui::TreePop(); - } - - if (ImGui::TreeNodeEx("Scrolling:", ImGuiTreeNodeFlags_DefaultOpen)) - { - ImGui::CheckboxFlags("ImGuiTableFlags_ScrollX", &flags, ImGuiTableFlags_ScrollX); - ImGui::SameLine(); - ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); - ImGui::DragInt("freeze_cols", &freeze_cols, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); - ImGui::CheckboxFlags("ImGuiTableFlags_ScrollY", &flags, ImGuiTableFlags_ScrollY); - ImGui::SameLine(); - ImGui::SetNextItemWidth(ImGui::GetFrameHeight()); - ImGui::DragInt("freeze_rows", &freeze_rows, 0.2f, 0, 9, NULL, ImGuiSliderFlags_NoInput); - ImGui::TreePop(); - } - - if (ImGui::TreeNodeEx("Sorting:", ImGuiTreeNodeFlags_DefaultOpen)) - { - ImGui::CheckboxFlags("ImGuiTableFlags_SortMulti", &flags, ImGuiTableFlags_SortMulti); - ImGui::SameLine(); HelpMarker("When sorting is enabled: hold shift when clicking headers to sort on multiple column. TableGetSortSpecs() may return specs where (SpecsCount > 1)."); - ImGui::CheckboxFlags("ImGuiTableFlags_SortTristate", &flags, ImGuiTableFlags_SortTristate); - ImGui::SameLine(); HelpMarker("When sorting is enabled: allow no sorting, disable default sorting. TableGetSortSpecs() may return specs where (SpecsCount == 0)."); - ImGui::TreePop(); - } - - if (ImGui::TreeNodeEx("Other:", ImGuiTreeNodeFlags_DefaultOpen)) - { - ImGui::Checkbox("show_headers", &show_headers); - ImGui::Checkbox("show_wrapped_text", &show_wrapped_text); - - ImGui::DragFloat2("##OuterSize", &outer_size_value.x); - ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); - ImGui::Checkbox("outer_size", &outer_size_enabled); - ImGui::SameLine(); - HelpMarker("If scrolling is disabled (ScrollX and ScrollY not set):\n" - "- The table is output directly in the parent window.\n" - "- OuterSize.x < 0.0f will right-align the table.\n" - "- OuterSize.x = 0.0f will narrow fit the table unless there are any Stretch column.\n" - "- OuterSize.y then becomes the minimum size for the table, which will extend vertically if there are more rows (unless NoHostExtendY is set)."); - - // From a user point of view we will tend to use 'inner_width' differently depending on whether our table is embedding scrolling. - // To facilitate toying with this demo we will actually pass 0.0f to the BeginTable() when ScrollX is disabled. - ImGui::DragFloat("inner_width (when ScrollX active)", &inner_width_with_scroll, 1.0f, 0.0f, FLT_MAX); - - ImGui::DragFloat("row_min_height", &row_min_height, 1.0f, 0.0f, FLT_MAX); - ImGui::SameLine(); HelpMarker("Specify height of the Selectable item."); - - ImGui::DragInt("items_count", &items_count, 0.1f, 0, 9999); - ImGui::Combo("items_type (first column)", &contents_type, contents_type_names, IM_ARRAYSIZE(contents_type_names)); - //filter.Draw("filter"); - ImGui::TreePop(); - } - - ImGui::PopItemWidth(); - PopStyleCompact(); - ImGui::Spacing(); - ImGui::TreePop(); - } - - // Update item list if we changed the number of items - static ImVector items; - static ImVector selection; - static bool items_need_sort = false; - if (items.Size != items_count) - { - items.resize(items_count, MyItem()); - for (int n = 0; n < items_count; n++) - { - const int template_n = n % IM_ARRAYSIZE(template_items_names); - MyItem& item = items[n]; - item.ID = n; - item.Name = template_items_names[template_n]; - item.Quantity = (template_n == 3) ? 10 : (template_n == 4) ? 20 : 0; // Assign default quantities - } - } - - const ImDrawList* parent_draw_list = ImGui::GetWindowDrawList(); - const int parent_draw_list_draw_cmd_count = parent_draw_list->CmdBuffer.Size; - ImVec2 table_scroll_cur, table_scroll_max; // For debug display - const ImDrawList* table_draw_list = NULL; // " - - // Submit table - const float inner_width_to_use = (flags & ImGuiTableFlags_ScrollX) ? inner_width_with_scroll : 0.0f; - if (ImGui::BeginTable("table_advanced", 6, flags, outer_size_enabled ? outer_size_value : ImVec2(0, 0), inner_width_to_use)) - { - // Declare columns - // We use the "user_id" parameter of TableSetupColumn() to specify a user id that will be stored in the sort specifications. - // This is so our sort function can identify a column given our own identifier. We could also identify them based on their index! - ImGui::TableSetupColumn("ID", ImGuiTableColumnFlags_DefaultSort | ImGuiTableColumnFlags_WidthFixed | ImGuiTableColumnFlags_NoHide, 0.0f, MyItemColumnID_ID); - ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Name); - ImGui::TableSetupColumn("Action", ImGuiTableColumnFlags_NoSort | ImGuiTableColumnFlags_WidthFixed, 0.0f, MyItemColumnID_Action); - ImGui::TableSetupColumn("Quantity", ImGuiTableColumnFlags_PreferSortDescending, 0.0f, MyItemColumnID_Quantity); - ImGui::TableSetupColumn("Description", (flags & ImGuiTableFlags_NoHostExtendX) ? 0 : ImGuiTableColumnFlags_WidthStretch, 0.0f, MyItemColumnID_Description); - ImGui::TableSetupColumn("Hidden", ImGuiTableColumnFlags_DefaultHide | ImGuiTableColumnFlags_NoSort); - ImGui::TableSetupScrollFreeze(freeze_cols, freeze_rows); - - // Sort our data if sort specs have been changed! - ImGuiTableSortSpecs* sorts_specs = ImGui::TableGetSortSpecs(); - if (sorts_specs && sorts_specs->SpecsDirty) - items_need_sort = true; - if (sorts_specs && items_need_sort && items.Size > 1) - { - MyItem::s_current_sort_specs = sorts_specs; // Store in variable accessible by the sort function. - qsort(&items[0], (size_t)items.Size, sizeof(items[0]), MyItem::CompareWithSortSpecs); - MyItem::s_current_sort_specs = NULL; - sorts_specs->SpecsDirty = false; - } - items_need_sort = false; - - // Take note of whether we are currently sorting based on the Quantity field, - // we will use this to trigger sorting when we know the data of this column has been modified. - const bool sorts_specs_using_quantity = (ImGui::TableGetColumnFlags(3) & ImGuiTableColumnFlags_IsSorted) != 0; - - // Show headers - if (show_headers) - ImGui::TableHeadersRow(); - - // Show data - // FIXME-TABLE FIXME-NAV: How we can get decent up/down even though we have the buttons here? - ImGui::PushButtonRepeat(true); -#if 1 - // Demonstrate using clipper for large vertical lists - ImGuiListClipper clipper; - clipper.Begin(items.Size); - while (clipper.Step()) - { - for (int row_n = clipper.DisplayStart; row_n < clipper.DisplayEnd; row_n++) -#else - // Without clipper - { - for (int row_n = 0; row_n < items.Size; row_n++) -#endif - { - MyItem* item = &items[row_n]; - //if (!filter.PassFilter(item->Name)) - // continue; - - const bool item_is_selected = selection.contains(item->ID); - ImGui::PushID(item->ID); - ImGui::TableNextRow(ImGuiTableRowFlags_None, row_min_height); - - // For the demo purpose we can select among different type of items submitted in the first column - ImGui::TableSetColumnIndex(0); - char label[32]; - sprintf(label, "%04d", item->ID); - if (contents_type == CT_Text) - ImGui::TextUnformatted(label); - else if (contents_type == CT_Button) - ImGui::Button(label); - else if (contents_type == CT_SmallButton) - ImGui::SmallButton(label); - else if (contents_type == CT_FillButton) - ImGui::Button(label, ImVec2(-FLT_MIN, 0.0f)); - else if (contents_type == CT_Selectable || contents_type == CT_SelectableSpanRow) - { - ImGuiSelectableFlags selectable_flags = (contents_type == CT_SelectableSpanRow) ? ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap : ImGuiSelectableFlags_None; - if (ImGui::Selectable(label, item_is_selected, selectable_flags, ImVec2(0, row_min_height))) - { - if (ImGui::GetIO().KeyCtrl) - { - if (item_is_selected) - selection.find_erase_unsorted(item->ID); - else - selection.push_back(item->ID); - } - else - { - selection.clear(); - selection.push_back(item->ID); - } - } - } - - if (ImGui::TableSetColumnIndex(1)) - ImGui::TextUnformatted(item->Name); - - // Here we demonstrate marking our data set as needing to be sorted again if we modified a quantity, - // and we are currently sorting on the column showing the Quantity. - // To avoid triggering a sort while holding the button, we only trigger it when the button has been released. - // You will probably need a more advanced system in your code if you want to automatically sort when a specific entry changes. - if (ImGui::TableSetColumnIndex(2)) - { - if (ImGui::SmallButton("Chop")) { item->Quantity += 1; } - if (sorts_specs_using_quantity && ImGui::IsItemDeactivated()) { items_need_sort = true; } - ImGui::SameLine(); - if (ImGui::SmallButton("Eat")) { item->Quantity -= 1; } - if (sorts_specs_using_quantity && ImGui::IsItemDeactivated()) { items_need_sort = true; } - } - - if (ImGui::TableSetColumnIndex(3)) - ImGui::Text("%d", item->Quantity); - - ImGui::TableSetColumnIndex(4); - if (show_wrapped_text) - ImGui::TextWrapped("Lorem ipsum dolor sit amet"); - else - ImGui::Text("Lorem ipsum dolor sit amet"); - - if (ImGui::TableSetColumnIndex(5)) - ImGui::Text("1234"); - - ImGui::PopID(); - } - } - ImGui::PopButtonRepeat(); - - // Store some info to display debug details below - table_scroll_cur = ImVec2(ImGui::GetScrollX(), ImGui::GetScrollY()); - table_scroll_max = ImVec2(ImGui::GetScrollMaxX(), ImGui::GetScrollMaxY()); - table_draw_list = ImGui::GetWindowDrawList(); - ImGui::EndTable(); - } - static bool show_debug_details = false; - ImGui::Checkbox("Debug details", &show_debug_details); - if (show_debug_details && table_draw_list) - { - ImGui::SameLine(0.0f, 0.0f); - const int table_draw_list_draw_cmd_count = table_draw_list->CmdBuffer.Size; - if (table_draw_list == parent_draw_list) - ImGui::Text(": DrawCmd: +%d (in same window)", - table_draw_list_draw_cmd_count - parent_draw_list_draw_cmd_count); - else - ImGui::Text(": DrawCmd: +%d (in child window), Scroll: (%.f/%.f) (%.f/%.f)", - table_draw_list_draw_cmd_count - 1, table_scroll_cur.x, table_scroll_max.x, table_scroll_cur.y, table_scroll_max.y); - } - ImGui::TreePop(); - } - - ImGui::PopID(); - - ShowDemoWindowColumns(); - - if (disable_indent) - ImGui::PopStyleVar(); -} - -// Demonstrate old/legacy Columns API! -// [2020: Columns are under-featured and not maintained. Prefer using the more flexible and powerful BeginTable() API!] -static void ShowDemoWindowColumns() -{ - bool open = ImGui::TreeNode("Legacy Columns API"); - ImGui::SameLine(); - HelpMarker("Columns() is an old API! Prefer using the more flexible and powerful BeginTable() API!"); - if (!open) - return; - - // Basic columns - if (ImGui::TreeNode("Basic")) - { - ImGui::Text("Without border:"); - ImGui::Columns(3, "mycolumns3", false); // 3-ways, no border - ImGui::Separator(); - for (int n = 0; n < 14; n++) - { - char label[32]; - sprintf(label, "Item %d", n); - if (ImGui::Selectable(label)) {} - //if (ImGui::Button(label, ImVec2(-FLT_MIN,0.0f))) {} - ImGui::NextColumn(); - } - ImGui::Columns(1); - ImGui::Separator(); - - ImGui::Text("With border:"); - ImGui::Columns(4, "mycolumns"); // 4-ways, with border - ImGui::Separator(); - ImGui::Text("ID"); ImGui::NextColumn(); - ImGui::Text("Name"); ImGui::NextColumn(); - ImGui::Text("Path"); ImGui::NextColumn(); - ImGui::Text("Hovered"); ImGui::NextColumn(); - ImGui::Separator(); - const char* names[3] = { "One", "Two", "Three" }; - const char* paths[3] = { "/path/one", "/path/two", "/path/three" }; - static int selected = -1; - for (int i = 0; i < 3; i++) - { - char label[32]; - sprintf(label, "%04d", i); - if (ImGui::Selectable(label, selected == i, ImGuiSelectableFlags_SpanAllColumns)) - selected = i; - bool hovered = ImGui::IsItemHovered(); - ImGui::NextColumn(); - ImGui::Text(names[i]); ImGui::NextColumn(); - ImGui::Text(paths[i]); ImGui::NextColumn(); - ImGui::Text("%d", hovered); ImGui::NextColumn(); - } - ImGui::Columns(1); - ImGui::Separator(); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Borders")) - { - // NB: Future columns API should allow automatic horizontal borders. - static bool h_borders = true; - static bool v_borders = true; - static int columns_count = 4; - const int lines_count = 3; - ImGui::SetNextItemWidth(ImGui::GetFontSize() * 8); - ImGui::DragInt("##columns_count", &columns_count, 0.1f, 2, 10, "%d columns"); - if (columns_count < 2) - columns_count = 2; - ImGui::SameLine(); - ImGui::Checkbox("horizontal", &h_borders); - ImGui::SameLine(); - ImGui::Checkbox("vertical", &v_borders); - ImGui::Columns(columns_count, NULL, v_borders); - for (int i = 0; i < columns_count * lines_count; i++) - { - if (h_borders && ImGui::GetColumnIndex() == 0) - ImGui::Separator(); - ImGui::Text("%c%c%c", 'a' + i, 'a' + i, 'a' + i); - ImGui::Text("Width %.2f", ImGui::GetColumnWidth()); - ImGui::Text("Avail %.2f", ImGui::GetContentRegionAvail().x); - ImGui::Text("Offset %.2f", ImGui::GetColumnOffset()); - ImGui::Text("Long text that is likely to clip"); - ImGui::Button("Button", ImVec2(-FLT_MIN, 0.0f)); - ImGui::NextColumn(); - } - ImGui::Columns(1); - if (h_borders) - ImGui::Separator(); - ImGui::TreePop(); - } - - // Create multiple items in a same cell before switching to next column - if (ImGui::TreeNode("Mixed items")) - { - ImGui::Columns(3, "mixed"); - ImGui::Separator(); - - ImGui::Text("Hello"); - ImGui::Button("Banana"); - ImGui::NextColumn(); - - ImGui::Text("ImGui"); - ImGui::Button("Apple"); - static float foo = 1.0f; - ImGui::InputFloat("red", &foo, 0.05f, 0, "%.3f"); - ImGui::Text("An extra line here."); - ImGui::NextColumn(); - - ImGui::Text("Sailor"); - ImGui::Button("Corniflower"); - static float bar = 1.0f; - ImGui::InputFloat("blue", &bar, 0.05f, 0, "%.3f"); - ImGui::NextColumn(); - - if (ImGui::CollapsingHeader("Category A")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); - if (ImGui::CollapsingHeader("Category B")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); - if (ImGui::CollapsingHeader("Category C")) { ImGui::Text("Blah blah blah"); } ImGui::NextColumn(); - ImGui::Columns(1); - ImGui::Separator(); - ImGui::TreePop(); - } - - // Word wrapping - if (ImGui::TreeNode("Word-wrapping")) - { - ImGui::Columns(2, "word-wrapping"); - ImGui::Separator(); - ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); - ImGui::TextWrapped("Hello Left"); - ImGui::NextColumn(); - ImGui::TextWrapped("The quick brown fox jumps over the lazy dog."); - ImGui::TextWrapped("Hello Right"); - ImGui::Columns(1); - ImGui::Separator(); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Horizontal Scrolling")) - { - ImGui::SetNextWindowContentSize(ImVec2(1500.0f, 0.0f)); - ImVec2 child_size = ImVec2(0, ImGui::GetFontSize() * 20.0f); - ImGui::BeginChild("##ScrollingRegion", child_size, false, ImGuiWindowFlags_HorizontalScrollbar); - ImGui::Columns(10); - - // Also demonstrate using clipper for large vertical lists - int ITEMS_COUNT = 2000; - ImGuiListClipper clipper; - clipper.Begin(ITEMS_COUNT); - while (clipper.Step()) - { - for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) - for (int j = 0; j < 10; j++) - { - ImGui::Text("Line %d Column %d...", i, j); - ImGui::NextColumn(); - } - } - ImGui::Columns(1); - ImGui::EndChild(); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Tree")) - { - ImGui::Columns(2, "tree", true); - for (int x = 0; x < 3; x++) - { - bool open1 = ImGui::TreeNode((void*)(intptr_t)x, "Node%d", x); - ImGui::NextColumn(); - ImGui::Text("Node contents"); - ImGui::NextColumn(); - if (open1) - { - for (int y = 0; y < 3; y++) - { - bool open2 = ImGui::TreeNode((void*)(intptr_t)y, "Node%d.%d", x, y); - ImGui::NextColumn(); - ImGui::Text("Node contents"); - if (open2) - { - ImGui::Text("Even more contents"); - if (ImGui::TreeNode("Tree in column")) - { - ImGui::Text("The quick brown fox jumps over the lazy dog"); - ImGui::TreePop(); - } - } - ImGui::NextColumn(); - if (open2) - ImGui::TreePop(); - } - ImGui::TreePop(); - } - } - ImGui::Columns(1); - ImGui::TreePop(); - } - - ImGui::TreePop(); -} - -static void ShowDemoWindowMisc() -{ - if (ImGui::CollapsingHeader("Filtering")) - { - // Helper class to easy setup a text filter. - // You may want to implement a more feature-full filtering scheme in your own application. - static ImGuiTextFilter filter; - ImGui::Text("Filter usage:\n" - " \"\" display all lines\n" - " \"xxx\" display lines containing \"xxx\"\n" - " \"xxx,yyy\" display lines containing \"xxx\" or \"yyy\"\n" - " \"-xxx\" hide lines containing \"xxx\""); - filter.Draw(); - const char* lines[] = { "aaa1.c", "bbb1.c", "ccc1.c", "aaa2.cpp", "bbb2.cpp", "ccc2.cpp", "abc.h", "hello, world" }; - for (int i = 0; i < IM_ARRAYSIZE(lines); i++) - if (filter.PassFilter(lines[i])) - ImGui::BulletText("%s", lines[i]); - } - - if (ImGui::CollapsingHeader("Inputs, Navigation & Focus")) - { - ImGuiIO& io = ImGui::GetIO(); - - // Display ImGuiIO output flags - ImGui::Text("WantCaptureMouse: %d", io.WantCaptureMouse); - ImGui::Text("WantCaptureKeyboard: %d", io.WantCaptureKeyboard); - ImGui::Text("WantTextInput: %d", io.WantTextInput); - ImGui::Text("WantSetMousePos: %d", io.WantSetMousePos); - ImGui::Text("NavActive: %d, NavVisible: %d", io.NavActive, io.NavVisible); - - // Display Mouse state - if (ImGui::TreeNode("Mouse State")) - { - if (ImGui::IsMousePosValid()) - ImGui::Text("Mouse pos: (%g, %g)", io.MousePos.x, io.MousePos.y); - else - ImGui::Text("Mouse pos: "); - ImGui::Text("Mouse delta: (%g, %g)", io.MouseDelta.x, io.MouseDelta.y); - ImGui::Text("Mouse down:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseDown(i)) { ImGui::SameLine(); ImGui::Text("b%d (%.02f secs)", i, io.MouseDownDuration[i]); } - ImGui::Text("Mouse clicked:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseClicked(i)) { ImGui::SameLine(); ImGui::Text("b%d", i); } - ImGui::Text("Mouse dblclick:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseDoubleClicked(i)){ ImGui::SameLine(); ImGui::Text("b%d", i); } - ImGui::Text("Mouse released:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseReleased(i)) { ImGui::SameLine(); ImGui::Text("b%d", i); } - ImGui::Text("Mouse wheel: %.1f", io.MouseWheel); - ImGui::Text("Pen Pressure: %.1f", io.PenPressure); // Note: currently unused - ImGui::TreePop(); - } - - // Display Keyboard/Mouse state - if (ImGui::TreeNode("Keyboard & Navigation State")) - { - ImGui::Text("Keys down:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyDown(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X) (%.02f secs)", i, i, io.KeysDownDuration[i]); } - ImGui::Text("Keys pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyPressed(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); } - ImGui::Text("Keys release:"); for (int i = 0; i < IM_ARRAYSIZE(io.KeysDown); i++) if (ImGui::IsKeyReleased(i)) { ImGui::SameLine(); ImGui::Text("%d (0x%X)", i, i); } - ImGui::Text("Keys mods: %s%s%s%s", io.KeyCtrl ? "CTRL " : "", io.KeyShift ? "SHIFT " : "", io.KeyAlt ? "ALT " : "", io.KeySuper ? "SUPER " : ""); - ImGui::Text("Chars queue:"); for (int i = 0; i < io.InputQueueCharacters.Size; i++) { ImWchar c = io.InputQueueCharacters[i]; ImGui::SameLine(); ImGui::Text("\'%c\' (0x%04X)", (c > ' ' && c <= 255) ? (char)c : '?', c); } // FIXME: We should convert 'c' to UTF-8 here but the functions are not public. - - ImGui::Text("NavInputs down:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputs[i] > 0.0f) { ImGui::SameLine(); ImGui::Text("[%d] %.2f (%.02f secs)", i, io.NavInputs[i], io.NavInputsDownDuration[i]); } - ImGui::Text("NavInputs pressed:"); for (int i = 0; i < IM_ARRAYSIZE(io.NavInputs); i++) if (io.NavInputsDownDuration[i] == 0.0f) { ImGui::SameLine(); ImGui::Text("[%d]", i); } - - ImGui::Button("Hovering me sets the\nkeyboard capture flag"); - if (ImGui::IsItemHovered()) - ImGui::CaptureKeyboardFromApp(true); - ImGui::SameLine(); - ImGui::Button("Holding me clears the\nthe keyboard capture flag"); - if (ImGui::IsItemActive()) - ImGui::CaptureKeyboardFromApp(false); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Tabbing")) - { - ImGui::Text("Use TAB/SHIFT+TAB to cycle through keyboard editable fields."); - static char buf[32] = "hello"; - ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); - ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); - ImGui::InputText("3", buf, IM_ARRAYSIZE(buf)); - ImGui::PushAllowKeyboardFocus(false); - ImGui::InputText("4 (tab skip)", buf, IM_ARRAYSIZE(buf)); - //ImGui::SameLine(); HelpMarker("Use ImGui::PushAllowKeyboardFocus(bool) to disable tabbing through certain widgets."); - ImGui::PopAllowKeyboardFocus(); - ImGui::InputText("5", buf, IM_ARRAYSIZE(buf)); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Focus from code")) - { - bool focus_1 = ImGui::Button("Focus on 1"); ImGui::SameLine(); - bool focus_2 = ImGui::Button("Focus on 2"); ImGui::SameLine(); - bool focus_3 = ImGui::Button("Focus on 3"); - int has_focus = 0; - static char buf[128] = "click on a button to set focus"; - - if (focus_1) ImGui::SetKeyboardFocusHere(); - ImGui::InputText("1", buf, IM_ARRAYSIZE(buf)); - if (ImGui::IsItemActive()) has_focus = 1; - - if (focus_2) ImGui::SetKeyboardFocusHere(); - ImGui::InputText("2", buf, IM_ARRAYSIZE(buf)); - if (ImGui::IsItemActive()) has_focus = 2; - - ImGui::PushAllowKeyboardFocus(false); - if (focus_3) ImGui::SetKeyboardFocusHere(); - ImGui::InputText("3 (tab skip)", buf, IM_ARRAYSIZE(buf)); - if (ImGui::IsItemActive()) has_focus = 3; - ImGui::PopAllowKeyboardFocus(); - - if (has_focus) - ImGui::Text("Item with focus: %d", has_focus); - else - ImGui::Text("Item with focus: "); - - // Use >= 0 parameter to SetKeyboardFocusHere() to focus an upcoming item - static float f3[3] = { 0.0f, 0.0f, 0.0f }; - int focus_ahead = -1; - if (ImGui::Button("Focus on X")) { focus_ahead = 0; } ImGui::SameLine(); - if (ImGui::Button("Focus on Y")) { focus_ahead = 1; } ImGui::SameLine(); - if (ImGui::Button("Focus on Z")) { focus_ahead = 2; } - if (focus_ahead != -1) ImGui::SetKeyboardFocusHere(focus_ahead); - ImGui::SliderFloat3("Float3", &f3[0], 0.0f, 1.0f); - - ImGui::TextWrapped("NB: Cursor & selection are preserved when refocusing last used item in code."); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Dragging")) - { - ImGui::TextWrapped("You can use ImGui::GetMouseDragDelta(0) to query for the dragged amount on any widget."); - for (int button = 0; button < 3; button++) - { - ImGui::Text("IsMouseDragging(%d):", button); - ImGui::Text(" w/ default threshold: %d,", ImGui::IsMouseDragging(button)); - ImGui::Text(" w/ zero threshold: %d,", ImGui::IsMouseDragging(button, 0.0f)); - ImGui::Text(" w/ large threshold: %d,", ImGui::IsMouseDragging(button, 20.0f)); - } - - ImGui::Button("Drag Me"); - if (ImGui::IsItemActive()) - ImGui::GetForegroundDrawList()->AddLine(io.MouseClickedPos[0], io.MousePos, ImGui::GetColorU32(ImGuiCol_Button), 4.0f); // Draw a line between the button and the mouse cursor - - // Drag operations gets "unlocked" when the mouse has moved past a certain threshold - // (the default threshold is stored in io.MouseDragThreshold). You can request a lower or higher - // threshold using the second parameter of IsMouseDragging() and GetMouseDragDelta(). - ImVec2 value_raw = ImGui::GetMouseDragDelta(0, 0.0f); - ImVec2 value_with_lock_threshold = ImGui::GetMouseDragDelta(0); - ImVec2 mouse_delta = io.MouseDelta; - ImGui::Text("GetMouseDragDelta(0):"); - ImGui::Text(" w/ default threshold: (%.1f, %.1f)", value_with_lock_threshold.x, value_with_lock_threshold.y); - ImGui::Text(" w/ zero threshold: (%.1f, %.1f)", value_raw.x, value_raw.y); - ImGui::Text("io.MouseDelta: (%.1f, %.1f)", mouse_delta.x, mouse_delta.y); - ImGui::TreePop(); - } - - if (ImGui::TreeNode("Mouse cursors")) - { - const char* mouse_cursors_names[] = { "Arrow", "TextInput", "ResizeAll", "ResizeNS", "ResizeEW", "ResizeNESW", "ResizeNWSE", "Hand", "NotAllowed" }; - IM_ASSERT(IM_ARRAYSIZE(mouse_cursors_names) == ImGuiMouseCursor_COUNT); - - ImGuiMouseCursor current = ImGui::GetMouseCursor(); - ImGui::Text("Current mouse cursor = %d: %s", current, mouse_cursors_names[current]); - ImGui::Text("Hover to see mouse cursors:"); - ImGui::SameLine(); HelpMarker( - "Your application can render a different mouse cursor based on what ImGui::GetMouseCursor() returns. " - "If software cursor rendering (io.MouseDrawCursor) is set ImGui will draw the right cursor for you, " - "otherwise your backend needs to handle it."); - for (int i = 0; i < ImGuiMouseCursor_COUNT; i++) - { - char label[32]; - sprintf(label, "Mouse cursor %d: %s", i, mouse_cursors_names[i]); - ImGui::Bullet(); ImGui::Selectable(label, false); - if (ImGui::IsItemHovered()) - ImGui::SetMouseCursor(i); - } - ImGui::TreePop(); - } - } -} - -//----------------------------------------------------------------------------- -// [SECTION] About Window / ShowAboutWindow() -// Access from Dear ImGui Demo -> Tools -> About -//----------------------------------------------------------------------------- - -void ImGui::ShowAboutWindow(bool* p_open) -{ - if (!ImGui::Begin("About Dear ImGui", p_open, ImGuiWindowFlags_AlwaysAutoResize)) - { - ImGui::End(); - return; - } - ImGui::Text("Dear ImGui %s", ImGui::GetVersion()); - ImGui::Separator(); - ImGui::Text("By Omar Cornut and all Dear ImGui contributors."); - ImGui::Text("Dear ImGui is licensed under the MIT License, see LICENSE for more information."); - - static bool show_config_info = false; - ImGui::Checkbox("Config/Build Information", &show_config_info); - if (show_config_info) - { - ImGuiIO& io = ImGui::GetIO(); - ImGuiStyle& style = ImGui::GetStyle(); - - bool copy_to_clipboard = ImGui::Button("Copy to clipboard"); - ImVec2 child_size = ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 18); - ImGui::BeginChildFrame(ImGui::GetID("cfg_infos"), child_size, ImGuiWindowFlags_NoMove); - if (copy_to_clipboard) - { - ImGui::LogToClipboard(); - ImGui::LogText("```\n"); // Back quotes will make text appears without formatting when pasting on GitHub - } - - ImGui::Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); - ImGui::Separator(); - ImGui::Text("sizeof(size_t): %d, sizeof(ImDrawIdx): %d, sizeof(ImDrawVert): %d", (int)sizeof(size_t), (int)sizeof(ImDrawIdx), (int)sizeof(ImDrawVert)); - ImGui::Text("define: __cplusplus=%d", (int)__cplusplus); -#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - ImGui::Text("define: IMGUI_DISABLE_OBSOLETE_FUNCTIONS"); -#endif -#ifdef IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS - ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS"); -#endif -#ifdef IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS - ImGui::Text("define: IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS"); -#endif -#ifdef IMGUI_DISABLE_WIN32_FUNCTIONS - ImGui::Text("define: IMGUI_DISABLE_WIN32_FUNCTIONS"); -#endif -#ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS - ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS"); -#endif -#ifdef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS - ImGui::Text("define: IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS"); -#endif -#ifdef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS - ImGui::Text("define: IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS"); -#endif -#ifdef IMGUI_DISABLE_FILE_FUNCTIONS - ImGui::Text("define: IMGUI_DISABLE_FILE_FUNCTIONS"); -#endif -#ifdef IMGUI_DISABLE_DEFAULT_ALLOCATORS - ImGui::Text("define: IMGUI_DISABLE_DEFAULT_ALLOCATORS"); -#endif -#ifdef IMGUI_USE_BGRA_PACKED_COLOR - ImGui::Text("define: IMGUI_USE_BGRA_PACKED_COLOR"); -#endif -#ifdef _WIN32 - ImGui::Text("define: _WIN32"); -#endif -#ifdef _WIN64 - ImGui::Text("define: _WIN64"); -#endif -#ifdef __linux__ - ImGui::Text("define: __linux__"); -#endif -#ifdef __APPLE__ - ImGui::Text("define: __APPLE__"); -#endif -#ifdef _MSC_VER - ImGui::Text("define: _MSC_VER=%d", _MSC_VER); -#endif -#ifdef _MSVC_LANG - ImGui::Text("define: _MSVC_LANG=%d", (int)_MSVC_LANG); -#endif -#ifdef __MINGW32__ - ImGui::Text("define: __MINGW32__"); -#endif -#ifdef __MINGW64__ - ImGui::Text("define: __MINGW64__"); -#endif -#ifdef __GNUC__ - ImGui::Text("define: __GNUC__=%d", (int)__GNUC__); -#endif -#ifdef __clang_version__ - ImGui::Text("define: __clang_version__=%s", __clang_version__); -#endif - ImGui::Separator(); - ImGui::Text("io.BackendPlatformName: %s", io.BackendPlatformName ? io.BackendPlatformName : "NULL"); - ImGui::Text("io.BackendRendererName: %s", io.BackendRendererName ? io.BackendRendererName : "NULL"); - ImGui::Text("io.ConfigFlags: 0x%08X", io.ConfigFlags); - if (io.ConfigFlags & ImGuiConfigFlags_NavEnableKeyboard) ImGui::Text(" NavEnableKeyboard"); - if (io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) ImGui::Text(" NavEnableGamepad"); - if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) ImGui::Text(" NavEnableSetMousePos"); - if (io.ConfigFlags & ImGuiConfigFlags_NavNoCaptureKeyboard) ImGui::Text(" NavNoCaptureKeyboard"); - if (io.ConfigFlags & ImGuiConfigFlags_NoMouse) ImGui::Text(" NoMouse"); - if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) ImGui::Text(" NoMouseCursorChange"); - if (io.MouseDrawCursor) ImGui::Text("io.MouseDrawCursor"); - if (io.ConfigMacOSXBehaviors) ImGui::Text("io.ConfigMacOSXBehaviors"); - if (io.ConfigInputTextCursorBlink) ImGui::Text("io.ConfigInputTextCursorBlink"); - if (io.ConfigWindowsResizeFromEdges) ImGui::Text("io.ConfigWindowsResizeFromEdges"); - if (io.ConfigWindowsMoveFromTitleBarOnly) ImGui::Text("io.ConfigWindowsMoveFromTitleBarOnly"); - if (io.ConfigMemoryCompactTimer >= 0.0f) ImGui::Text("io.ConfigMemoryCompactTimer = %.1f", io.ConfigMemoryCompactTimer); - ImGui::Text("io.BackendFlags: 0x%08X", io.BackendFlags); - if (io.BackendFlags & ImGuiBackendFlags_HasGamepad) ImGui::Text(" HasGamepad"); - if (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) ImGui::Text(" HasMouseCursors"); - if (io.BackendFlags & ImGuiBackendFlags_HasSetMousePos) ImGui::Text(" HasSetMousePos"); - if (io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) ImGui::Text(" RendererHasVtxOffset"); - ImGui::Separator(); - ImGui::Text("io.Fonts: %d fonts, Flags: 0x%08X, TexSize: %d,%d", io.Fonts->Fonts.Size, io.Fonts->Flags, io.Fonts->TexWidth, io.Fonts->TexHeight); - ImGui::Text("io.DisplaySize: %.2f,%.2f", io.DisplaySize.x, io.DisplaySize.y); - ImGui::Text("io.DisplayFramebufferScale: %.2f,%.2f", io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y); - ImGui::Separator(); - ImGui::Text("style.WindowPadding: %.2f,%.2f", style.WindowPadding.x, style.WindowPadding.y); - ImGui::Text("style.WindowBorderSize: %.2f", style.WindowBorderSize); - ImGui::Text("style.FramePadding: %.2f,%.2f", style.FramePadding.x, style.FramePadding.y); - ImGui::Text("style.FrameRounding: %.2f", style.FrameRounding); - ImGui::Text("style.FrameBorderSize: %.2f", style.FrameBorderSize); - ImGui::Text("style.ItemSpacing: %.2f,%.2f", style.ItemSpacing.x, style.ItemSpacing.y); - ImGui::Text("style.ItemInnerSpacing: %.2f,%.2f", style.ItemInnerSpacing.x, style.ItemInnerSpacing.y); - - if (copy_to_clipboard) - { - ImGui::LogText("\n```\n"); - ImGui::LogFinish(); - } - ImGui::EndChildFrame(); - } - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Style Editor / ShowStyleEditor() -//----------------------------------------------------------------------------- -// - ShowStyleSelector() -// - ShowFontSelector() -// - ShowStyleEditor() -//----------------------------------------------------------------------------- - -// Demo helper function to select among default colors. See ShowStyleEditor() for more advanced options. -// Here we use the simplified Combo() api that packs items into a single literal string. -// Useful for quick combo boxes where the choices are known locally. -bool ImGui::ShowStyleSelector(const char* label) -{ - static int style_idx = -1; - if (ImGui::Combo(label, &style_idx, "Dark\0Light\0Classic\0")) - { - switch (style_idx) - { - case 0: ImGui::StyleColorsDark(); break; - case 1: ImGui::StyleColorsLight(); break; - case 2: ImGui::StyleColorsClassic(); break; - } - return true; - } - return false; -} - -// Demo helper function to select among loaded fonts. -// Here we use the regular BeginCombo()/EndCombo() api which is more the more flexible one. -void ImGui::ShowFontSelector(const char* label) -{ - ImGuiIO& io = ImGui::GetIO(); - ImFont* font_current = ImGui::GetFont(); - if (ImGui::BeginCombo(label, font_current->GetDebugName())) - { - for (int n = 0; n < io.Fonts->Fonts.Size; n++) - { - ImFont* font = io.Fonts->Fonts[n]; - ImGui::PushID((void*)font); - if (ImGui::Selectable(font->GetDebugName(), font == font_current)) - io.FontDefault = font; - ImGui::PopID(); - } - ImGui::EndCombo(); - } - ImGui::SameLine(); - HelpMarker( - "- Load additional fonts with io.Fonts->AddFontFromFileTTF().\n" - "- The font atlas is built when calling io.Fonts->GetTexDataAsXXXX() or io.Fonts->Build().\n" - "- Read FAQ and docs/FONTS.md for more details.\n" - "- If you need to add/remove fonts at runtime (e.g. for DPI change), do it before calling NewFrame()."); -} - -// [Internal] Display details for a single font, called by ShowStyleEditor(). -static void NodeFont(ImFont* font) -{ - ImGuiIO& io = ImGui::GetIO(); - ImGuiStyle& style = ImGui::GetStyle(); - bool font_details_opened = ImGui::TreeNode(font, "Font: \"%s\"\n%.2f px, %d glyphs, %d file(s)", - font->ConfigData ? font->ConfigData[0].Name : "", font->FontSize, font->Glyphs.Size, font->ConfigDataCount); - ImGui::SameLine(); if (ImGui::SmallButton("Set as default")) { io.FontDefault = font; } - if (!font_details_opened) - return; - - ImGui::PushFont(font); - ImGui::Text("The quick brown fox jumps over the lazy dog"); - ImGui::PopFont(); - ImGui::DragFloat("Font scale", &font->Scale, 0.005f, 0.3f, 2.0f, "%.1f"); // Scale only this font - ImGui::SameLine(); HelpMarker( - "Note than the default embedded font is NOT meant to be scaled.\n\n" - "Font are currently rendered into bitmaps at a given size at the time of building the atlas. " - "You may oversample them to get some flexibility with scaling. " - "You can also render at multiple sizes and select which one to use at runtime.\n\n" - "(Glimmer of hope: the atlas system will be rewritten in the future to make scaling more flexible.)"); - ImGui::Text("Ascent: %f, Descent: %f, Height: %f", font->Ascent, font->Descent, font->Ascent - font->Descent); - ImGui::Text("Fallback character: '%c' (U+%04X)", font->FallbackChar, font->FallbackChar); - ImGui::Text("Ellipsis character: '%c' (U+%04X)", font->EllipsisChar, font->EllipsisChar); - const int surface_sqrt = (int)sqrtf((float)font->MetricsTotalSurface); - ImGui::Text("Texture Area: about %d px ~%dx%d px", font->MetricsTotalSurface, surface_sqrt, surface_sqrt); - for (int config_i = 0; config_i < font->ConfigDataCount; config_i++) - if (font->ConfigData) - if (const ImFontConfig* cfg = &font->ConfigData[config_i]) - ImGui::BulletText("Input %d: \'%s\', Oversample: (%d,%d), PixelSnapH: %d, Offset: (%.1f,%.1f)", - config_i, cfg->Name, cfg->OversampleH, cfg->OversampleV, cfg->PixelSnapH, cfg->GlyphOffset.x, cfg->GlyphOffset.y); - if (ImGui::TreeNode("Glyphs", "Glyphs (%d)", font->Glyphs.Size)) - { - // Display all glyphs of the fonts in separate pages of 256 characters - const ImU32 glyph_col = ImGui::GetColorU32(ImGuiCol_Text); - for (unsigned int base = 0; base <= IM_UNICODE_CODEPOINT_MAX; base += 256) - { - // Skip ahead if a large bunch of glyphs are not present in the font (test in chunks of 4k) - // This is only a small optimization to reduce the number of iterations when IM_UNICODE_MAX_CODEPOINT - // is large // (if ImWchar==ImWchar32 we will do at least about 272 queries here) - if (!(base & 4095) && font->IsGlyphRangeUnused(base, base + 4095)) - { - base += 4096 - 256; - continue; - } - - int count = 0; - for (unsigned int n = 0; n < 256; n++) - if (font->FindGlyphNoFallback((ImWchar)(base + n))) - count++; - if (count <= 0) - continue; - if (!ImGui::TreeNode((void*)(intptr_t)base, "U+%04X..U+%04X (%d %s)", base, base + 255, count, count > 1 ? "glyphs" : "glyph")) - continue; - float cell_size = font->FontSize * 1; - float cell_spacing = style.ItemSpacing.y; - ImVec2 base_pos = ImGui::GetCursorScreenPos(); - ImDrawList* draw_list = ImGui::GetWindowDrawList(); - for (unsigned int n = 0; n < 256; n++) - { - // We use ImFont::RenderChar as a shortcut because we don't have UTF-8 conversion functions - // available here and thus cannot easily generate a zero-terminated UTF-8 encoded string. - ImVec2 cell_p1(base_pos.x + (n % 16) * (cell_size + cell_spacing), base_pos.y + (n / 16) * (cell_size + cell_spacing)); - ImVec2 cell_p2(cell_p1.x + cell_size, cell_p1.y + cell_size); - const ImFontGlyph* glyph = font->FindGlyphNoFallback((ImWchar)(base + n)); - draw_list->AddRect(cell_p1, cell_p2, glyph ? IM_COL32(255, 255, 255, 100) : IM_COL32(255, 255, 255, 50)); - if (glyph) - font->RenderChar(draw_list, cell_size, cell_p1, glyph_col, (ImWchar)(base + n)); - if (glyph && ImGui::IsMouseHoveringRect(cell_p1, cell_p2)) - { - ImGui::BeginTooltip(); - ImGui::Text("Codepoint: U+%04X", base + n); - ImGui::Separator(); - ImGui::Text("Visible: %d", glyph->Visible); - ImGui::Text("AdvanceX: %.1f", glyph->AdvanceX); - ImGui::Text("Pos: (%.2f,%.2f)->(%.2f,%.2f)", glyph->X0, glyph->Y0, glyph->X1, glyph->Y1); - ImGui::Text("UV: (%.3f,%.3f)->(%.3f,%.3f)", glyph->U0, glyph->V0, glyph->U1, glyph->V1); - ImGui::EndTooltip(); - } - } - ImGui::Dummy(ImVec2((cell_size + cell_spacing) * 16, (cell_size + cell_spacing) * 16)); - ImGui::TreePop(); - } - ImGui::TreePop(); - } - ImGui::TreePop(); -} - -void ImGui::ShowStyleEditor(ImGuiStyle* ref) -{ - // You can pass in a reference ImGuiStyle structure to compare to, revert to and save to - // (without a reference style pointer, we will use one compared locally as a reference) - ImGuiStyle& style = ImGui::GetStyle(); - static ImGuiStyle ref_saved_style; - - // Default to using internal storage as reference - static bool init = true; - if (init && ref == NULL) - ref_saved_style = style; - init = false; - if (ref == NULL) - ref = &ref_saved_style; - - ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.50f); - - if (ImGui::ShowStyleSelector("Colors##Selector")) - ref_saved_style = style; - ImGui::ShowFontSelector("Fonts##Selector"); - - // Simplified Settings (expose floating-pointer border sizes as boolean representing 0.0f or 1.0f) - if (ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f")) - style.GrabRounding = style.FrameRounding; // Make GrabRounding always the same value as FrameRounding - { bool border = (style.WindowBorderSize > 0.0f); if (ImGui::Checkbox("WindowBorder", &border)) { style.WindowBorderSize = border ? 1.0f : 0.0f; } } - ImGui::SameLine(); - { bool border = (style.FrameBorderSize > 0.0f); if (ImGui::Checkbox("FrameBorder", &border)) { style.FrameBorderSize = border ? 1.0f : 0.0f; } } - ImGui::SameLine(); - { bool border = (style.PopupBorderSize > 0.0f); if (ImGui::Checkbox("PopupBorder", &border)) { style.PopupBorderSize = border ? 1.0f : 0.0f; } } - - // Save/Revert button - if (ImGui::Button("Save Ref")) - *ref = ref_saved_style = style; - ImGui::SameLine(); - if (ImGui::Button("Revert Ref")) - style = *ref; - ImGui::SameLine(); - HelpMarker( - "Save/Revert in local non-persistent storage. Default Colors definition are not affected. " - "Use \"Export\" below to save them somewhere."); - - ImGui::Separator(); - - if (ImGui::BeginTabBar("##tabs", ImGuiTabBarFlags_None)) - { - if (ImGui::BeginTabItem("Sizes")) - { - ImGui::Text("Main"); - ImGui::SliderFloat2("WindowPadding", (float*)&style.WindowPadding, 0.0f, 20.0f, "%.0f"); - ImGui::SliderFloat2("FramePadding", (float*)&style.FramePadding, 0.0f, 20.0f, "%.0f"); - ImGui::SliderFloat2("CellPadding", (float*)&style.CellPadding, 0.0f, 20.0f, "%.0f"); - ImGui::SliderFloat2("ItemSpacing", (float*)&style.ItemSpacing, 0.0f, 20.0f, "%.0f"); - ImGui::SliderFloat2("ItemInnerSpacing", (float*)&style.ItemInnerSpacing, 0.0f, 20.0f, "%.0f"); - ImGui::SliderFloat2("TouchExtraPadding", (float*)&style.TouchExtraPadding, 0.0f, 10.0f, "%.0f"); - ImGui::SliderFloat("IndentSpacing", &style.IndentSpacing, 0.0f, 30.0f, "%.0f"); - ImGui::SliderFloat("ScrollbarSize", &style.ScrollbarSize, 1.0f, 20.0f, "%.0f"); - ImGui::SliderFloat("GrabMinSize", &style.GrabMinSize, 1.0f, 20.0f, "%.0f"); - ImGui::Text("Borders"); - ImGui::SliderFloat("WindowBorderSize", &style.WindowBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui::SliderFloat("ChildBorderSize", &style.ChildBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui::SliderFloat("PopupBorderSize", &style.PopupBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui::SliderFloat("FrameBorderSize", &style.FrameBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui::SliderFloat("TabBorderSize", &style.TabBorderSize, 0.0f, 1.0f, "%.0f"); - ImGui::Text("Rounding"); - ImGui::SliderFloat("WindowRounding", &style.WindowRounding, 0.0f, 12.0f, "%.0f"); - ImGui::SliderFloat("ChildRounding", &style.ChildRounding, 0.0f, 12.0f, "%.0f"); - ImGui::SliderFloat("FrameRounding", &style.FrameRounding, 0.0f, 12.0f, "%.0f"); - ImGui::SliderFloat("PopupRounding", &style.PopupRounding, 0.0f, 12.0f, "%.0f"); - ImGui::SliderFloat("ScrollbarRounding", &style.ScrollbarRounding, 0.0f, 12.0f, "%.0f"); - ImGui::SliderFloat("GrabRounding", &style.GrabRounding, 0.0f, 12.0f, "%.0f"); - ImGui::SliderFloat("LogSliderDeadzone", &style.LogSliderDeadzone, 0.0f, 12.0f, "%.0f"); - ImGui::SliderFloat("TabRounding", &style.TabRounding, 0.0f, 12.0f, "%.0f"); - ImGui::Text("Alignment"); - ImGui::SliderFloat2("WindowTitleAlign", (float*)&style.WindowTitleAlign, 0.0f, 1.0f, "%.2f"); - int window_menu_button_position = style.WindowMenuButtonPosition + 1; - if (ImGui::Combo("WindowMenuButtonPosition", (int*)&window_menu_button_position, "None\0Left\0Right\0")) - style.WindowMenuButtonPosition = window_menu_button_position - 1; - ImGui::Combo("ColorButtonPosition", (int*)&style.ColorButtonPosition, "Left\0Right\0"); - ImGui::SliderFloat2("ButtonTextAlign", (float*)&style.ButtonTextAlign, 0.0f, 1.0f, "%.2f"); - ImGui::SameLine(); HelpMarker("Alignment applies when a button is larger than its text content."); - ImGui::SliderFloat2("SelectableTextAlign", (float*)&style.SelectableTextAlign, 0.0f, 1.0f, "%.2f"); - ImGui::SameLine(); HelpMarker("Alignment applies when a selectable is larger than its text content."); - ImGui::Text("Safe Area Padding"); - ImGui::SameLine(); HelpMarker("Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured)."); - ImGui::SliderFloat2("DisplaySafeAreaPadding", (float*)&style.DisplaySafeAreaPadding, 0.0f, 30.0f, "%.0f"); - ImGui::EndTabItem(); - } - - if (ImGui::BeginTabItem("Colors")) - { - static int output_dest = 0; - static bool output_only_modified = true; - if (ImGui::Button("Export")) - { - if (output_dest == 0) - ImGui::LogToClipboard(); - else - ImGui::LogToTTY(); - ImGui::LogText("ImVec4* colors = ImGui::GetStyle().Colors;" IM_NEWLINE); - for (int i = 0; i < ImGuiCol_COUNT; i++) - { - const ImVec4& col = style.Colors[i]; - const char* name = ImGui::GetStyleColorName(i); - if (!output_only_modified || memcmp(&col, &ref->Colors[i], sizeof(ImVec4)) != 0) - ImGui::LogText("colors[ImGuiCol_%s]%*s= ImVec4(%.2ff, %.2ff, %.2ff, %.2ff);" IM_NEWLINE, - name, 23 - (int)strlen(name), "", col.x, col.y, col.z, col.w); - } - ImGui::LogFinish(); - } - ImGui::SameLine(); ImGui::SetNextItemWidth(120); ImGui::Combo("##output_type", &output_dest, "To Clipboard\0To TTY\0"); - ImGui::SameLine(); ImGui::Checkbox("Only Modified Colors", &output_only_modified); - - static ImGuiTextFilter filter; - filter.Draw("Filter colors", ImGui::GetFontSize() * 16); - - static ImGuiColorEditFlags alpha_flags = 0; - if (ImGui::RadioButton("Opaque", alpha_flags == ImGuiColorEditFlags_None)) { alpha_flags = ImGuiColorEditFlags_None; } ImGui::SameLine(); - if (ImGui::RadioButton("Alpha", alpha_flags == ImGuiColorEditFlags_AlphaPreview)) { alpha_flags = ImGuiColorEditFlags_AlphaPreview; } ImGui::SameLine(); - if (ImGui::RadioButton("Both", alpha_flags == ImGuiColorEditFlags_AlphaPreviewHalf)) { alpha_flags = ImGuiColorEditFlags_AlphaPreviewHalf; } ImGui::SameLine(); - HelpMarker( - "In the color list:\n" - "Left-click on color square to open color picker,\n" - "Right-click to open edit options menu."); - - ImGui::BeginChild("##colors", ImVec2(0, 0), true, ImGuiWindowFlags_AlwaysVerticalScrollbar | ImGuiWindowFlags_AlwaysHorizontalScrollbar | ImGuiWindowFlags_NavFlattened); - ImGui::PushItemWidth(-160); - for (int i = 0; i < ImGuiCol_COUNT; i++) - { - const char* name = ImGui::GetStyleColorName(i); - if (!filter.PassFilter(name)) - continue; - ImGui::PushID(i); - ImGui::ColorEdit4("##color", (float*)&style.Colors[i], ImGuiColorEditFlags_AlphaBar | alpha_flags); - if (memcmp(&style.Colors[i], &ref->Colors[i], sizeof(ImVec4)) != 0) - { - // Tips: in a real user application, you may want to merge and use an icon font into the main font, - // so instead of "Save"/"Revert" you'd use icons! - // Read the FAQ and docs/FONTS.md about using icon fonts. It's really easy and super convenient! - ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Save")) { ref->Colors[i] = style.Colors[i]; } - ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); if (ImGui::Button("Revert")) { style.Colors[i] = ref->Colors[i]; } - } - ImGui::SameLine(0.0f, style.ItemInnerSpacing.x); - ImGui::TextUnformatted(name); - ImGui::PopID(); - } - ImGui::PopItemWidth(); - ImGui::EndChild(); - - ImGui::EndTabItem(); - } - - if (ImGui::BeginTabItem("Fonts")) - { - ImGuiIO& io = ImGui::GetIO(); - ImFontAtlas* atlas = io.Fonts; - HelpMarker("Read FAQ and docs/FONTS.md for details on font loading."); - ImGui::PushItemWidth(120); - for (int i = 0; i < atlas->Fonts.Size; i++) - { - ImFont* font = atlas->Fonts[i]; - ImGui::PushID(font); - NodeFont(font); - ImGui::PopID(); - } - if (ImGui::TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) - { - ImVec4 tint_col = ImVec4(1.0f, 1.0f, 1.0f, 1.0f); - ImVec4 border_col = ImVec4(1.0f, 1.0f, 1.0f, 0.5f); - ImGui::Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0, 0), ImVec2(1, 1), tint_col, border_col); - ImGui::TreePop(); - } - - // Post-baking font scaling. Note that this is NOT the nice way of scaling fonts, read below. - // (we enforce hard clamping manually as by default DragFloat/SliderFloat allows CTRL+Click text to get out of bounds). - const float MIN_SCALE = 0.3f; - const float MAX_SCALE = 2.0f; - HelpMarker( - "Those are old settings provided for convenience.\n" - "However, the _correct_ way of scaling your UI is currently to reload your font at the designed size, " - "rebuild the font atlas, and call style.ScaleAllSizes() on a reference ImGuiStyle structure.\n" - "Using those settings here will give you poor quality results."); - static float window_scale = 1.0f; - if (ImGui::DragFloat("window scale", &window_scale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp)) // Scale only this window - ImGui::SetWindowFontScale(window_scale); - ImGui::DragFloat("global scale", &io.FontGlobalScale, 0.005f, MIN_SCALE, MAX_SCALE, "%.2f", ImGuiSliderFlags_AlwaysClamp); // Scale everything - ImGui::PopItemWidth(); - - ImGui::EndTabItem(); - } - - if (ImGui::BeginTabItem("Rendering")) - { - ImGui::Checkbox("Anti-aliased lines", &style.AntiAliasedLines); - ImGui::SameLine(); - HelpMarker("When disabling anti-aliasing lines, you'll probably want to disable borders in your style as well."); - - ImGui::Checkbox("Anti-aliased lines use texture", &style.AntiAliasedLinesUseTex); - ImGui::SameLine(); - HelpMarker("Faster lines using texture data. Require backend to render with bilinear filtering (not point/nearest filtering)."); - - ImGui::Checkbox("Anti-aliased fill", &style.AntiAliasedFill); - ImGui::PushItemWidth(100); - ImGui::DragFloat("Curve Tessellation Tolerance", &style.CurveTessellationTol, 0.02f, 0.10f, 10.0f, "%.2f"); - if (style.CurveTessellationTol < 0.10f) style.CurveTessellationTol = 0.10f; - - // When editing the "Circle Segment Max Error" value, draw a preview of its effect on auto-tessellated circles. - ImGui::DragFloat("Circle Tessellation Max Error", &style.CircleTessellationMaxError , 0.005f, 0.10f, 5.0f, "%.2f", ImGuiSliderFlags_AlwaysClamp); - if (ImGui::IsItemActive()) - { - ImGui::SetNextWindowPos(ImGui::GetCursorScreenPos()); - ImGui::BeginTooltip(); - ImGui::TextUnformatted("(R = radius, N = number of segments)"); - ImGui::Spacing(); - ImDrawList* draw_list = ImGui::GetWindowDrawList(); - const float min_widget_width = ImGui::CalcTextSize("N: MMM\nR: MMM").x; - for (int n = 0; n < 8; n++) - { - const float RAD_MIN = 5.0f; - const float RAD_MAX = 70.0f; - const float rad = RAD_MIN + (RAD_MAX - RAD_MIN) * (float)n / (8.0f - 1.0f); - - ImGui::BeginGroup(); - - ImGui::Text("R: %.f\nN: %d", rad, draw_list->_CalcCircleAutoSegmentCount(rad)); - - const float canvas_width = IM_MAX(min_widget_width, rad * 2.0f); - const float offset_x = floorf(canvas_width * 0.5f); - const float offset_y = floorf(RAD_MAX); - - const ImVec2 p1 = ImGui::GetCursorScreenPos(); - draw_list->AddCircle(ImVec2(p1.x + offset_x, p1.y + offset_y), rad, ImGui::GetColorU32(ImGuiCol_Text)); - ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2)); - - /* - const ImVec2 p2 = ImGui::GetCursorScreenPos(); - draw_list->AddCircleFilled(ImVec2(p2.x + offset_x, p2.y + offset_y), rad, ImGui::GetColorU32(ImGuiCol_Text)); - ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2)); - */ - - ImGui::EndGroup(); - ImGui::SameLine(); - } - ImGui::EndTooltip(); - } - ImGui::SameLine(); - HelpMarker("When drawing circle primitives with \"num_segments == 0\" tesselation will be calculated automatically."); - - ImGui::DragFloat("Global Alpha", &style.Alpha, 0.005f, 0.20f, 1.0f, "%.2f"); // Not exposing zero here so user doesn't "lose" the UI (zero alpha clips all widgets). But application code could have a toggle to switch between zero and non-zero. - ImGui::PopItemWidth(); - - ImGui::EndTabItem(); - } - - ImGui::EndTabBar(); - } - - ImGui::PopItemWidth(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Main Menu Bar / ShowExampleAppMainMenuBar() -//----------------------------------------------------------------------------- -// - ShowExampleAppMainMenuBar() -// - ShowExampleMenuFile() -//----------------------------------------------------------------------------- - -// Demonstrate creating a "main" fullscreen menu bar and populating it. -// Note the difference between BeginMainMenuBar() and BeginMenuBar(): -// - BeginMenuBar() = menu-bar inside current window (which needs the ImGuiWindowFlags_MenuBar flag!) -// - BeginMainMenuBar() = helper to create menu-bar-sized window at the top of the main viewport + call BeginMenuBar() into it. -static void ShowExampleAppMainMenuBar() -{ - if (ImGui::BeginMainMenuBar()) - { - if (ImGui::BeginMenu("File")) - { - ShowExampleMenuFile(); - ImGui::EndMenu(); - } - if (ImGui::BeginMenu("Edit")) - { - if (ImGui::MenuItem("Undo", "CTRL+Z")) {} - if (ImGui::MenuItem("Redo", "CTRL+Y", false, false)) {} // Disabled item - ImGui::Separator(); - if (ImGui::MenuItem("Cut", "CTRL+X")) {} - if (ImGui::MenuItem("Copy", "CTRL+C")) {} - if (ImGui::MenuItem("Paste", "CTRL+V")) {} - ImGui::EndMenu(); - } - ImGui::EndMainMenuBar(); - } -} - -// Note that shortcuts are currently provided for display only -// (future version will add explicit flags to BeginMenu() to request processing shortcuts) -static void ShowExampleMenuFile() -{ - ImGui::MenuItem("(demo menu)", NULL, false, false); - if (ImGui::MenuItem("New")) {} - if (ImGui::MenuItem("Open", "Ctrl+O")) {} - if (ImGui::BeginMenu("Open Recent")) - { - ImGui::MenuItem("fish_hat.c"); - ImGui::MenuItem("fish_hat.inl"); - ImGui::MenuItem("fish_hat.h"); - if (ImGui::BeginMenu("More..")) - { - ImGui::MenuItem("Hello"); - ImGui::MenuItem("Sailor"); - if (ImGui::BeginMenu("Recurse..")) - { - ShowExampleMenuFile(); - ImGui::EndMenu(); - } - ImGui::EndMenu(); - } - ImGui::EndMenu(); - } - if (ImGui::MenuItem("Save", "Ctrl+S")) {} - if (ImGui::MenuItem("Save As..")) {} - - ImGui::Separator(); - if (ImGui::BeginMenu("Options")) - { - static bool enabled = true; - ImGui::MenuItem("Enabled", "", &enabled); - ImGui::BeginChild("child", ImVec2(0, 60), true); - for (int i = 0; i < 10; i++) - ImGui::Text("Scrolling Text %d", i); - ImGui::EndChild(); - static float f = 0.5f; - static int n = 0; - ImGui::SliderFloat("Value", &f, 0.0f, 1.0f); - ImGui::InputFloat("Input", &f, 0.1f); - ImGui::Combo("Combo", &n, "Yes\0No\0Maybe\0\0"); - ImGui::EndMenu(); - } - - if (ImGui::BeginMenu("Colors")) - { - float sz = ImGui::GetTextLineHeight(); - for (int i = 0; i < ImGuiCol_COUNT; i++) - { - const char* name = ImGui::GetStyleColorName((ImGuiCol)i); - ImVec2 p = ImGui::GetCursorScreenPos(); - ImGui::GetWindowDrawList()->AddRectFilled(p, ImVec2(p.x + sz, p.y + sz), ImGui::GetColorU32((ImGuiCol)i)); - ImGui::Dummy(ImVec2(sz, sz)); - ImGui::SameLine(); - ImGui::MenuItem(name); - } - ImGui::EndMenu(); - } - - // Here we demonstrate appending again to the "Options" menu (which we already created above) - // Of course in this demo it is a little bit silly that this function calls BeginMenu("Options") twice. - // In a real code-base using it would make senses to use this feature from very different code locations. - if (ImGui::BeginMenu("Options")) // <-- Append! - { - static bool b = true; - ImGui::Checkbox("SomeOption", &b); - ImGui::EndMenu(); - } - - if (ImGui::BeginMenu("Disabled", false)) // Disabled - { - IM_ASSERT(0); - } - if (ImGui::MenuItem("Checked", NULL, true)) {} - if (ImGui::MenuItem("Quit", "Alt+F4")) {} -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Debug Console / ShowExampleAppConsole() -//----------------------------------------------------------------------------- - -// Demonstrate creating a simple console window, with scrolling, filtering, completion and history. -// For the console example, we are using a more C++ like approach of declaring a class to hold both data and functions. -struct ExampleAppConsole -{ - char InputBuf[256]; - ImVector Items; - ImVector Commands; - ImVector History; - int HistoryPos; // -1: new line, 0..History.Size-1 browsing history. - ImGuiTextFilter Filter; - bool AutoScroll; - bool ScrollToBottom; - - ExampleAppConsole() - { - ClearLog(); - memset(InputBuf, 0, sizeof(InputBuf)); - HistoryPos = -1; - - // "CLASSIFY" is here to provide the test case where "C"+[tab] completes to "CL" and display multiple matches. - Commands.push_back("HELP"); - Commands.push_back("HISTORY"); - Commands.push_back("CLEAR"); - Commands.push_back("CLASSIFY"); - AutoScroll = true; - ScrollToBottom = false; - AddLog("Welcome to Dear ImGui!"); - } - ~ExampleAppConsole() - { - ClearLog(); - for (int i = 0; i < History.Size; i++) - free(History[i]); - } - - // Portable helpers - static int Stricmp(const char* s1, const char* s2) { int d; while ((d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; } return d; } - static int Strnicmp(const char* s1, const char* s2, int n) { int d = 0; while (n > 0 && (d = toupper(*s2) - toupper(*s1)) == 0 && *s1) { s1++; s2++; n--; } return d; } - static char* Strdup(const char* s) { IM_ASSERT(s); size_t len = strlen(s) + 1; void* buf = malloc(len); IM_ASSERT(buf); return (char*)memcpy(buf, (const void*)s, len); } - static void Strtrim(char* s) { char* str_end = s + strlen(s); while (str_end > s && str_end[-1] == ' ') str_end--; *str_end = 0; } - - void ClearLog() - { - for (int i = 0; i < Items.Size; i++) - free(Items[i]); - Items.clear(); - } - - void AddLog(const char* fmt, ...) IM_FMTARGS(2) - { - // FIXME-OPT - char buf[1024]; - va_list args; - va_start(args, fmt); - vsnprintf(buf, IM_ARRAYSIZE(buf), fmt, args); - buf[IM_ARRAYSIZE(buf)-1] = 0; - va_end(args); - Items.push_back(Strdup(buf)); - } - - void Draw(const char* title, bool* p_open) - { - ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); - if (!ImGui::Begin(title, p_open)) - { - ImGui::End(); - return; - } - - // As a specific feature guaranteed by the library, after calling Begin() the last Item represent the title bar. - // So e.g. IsItemHovered() will return true when hovering the title bar. - // Here we create a context menu only available from the title bar. - if (ImGui::BeginPopupContextItem()) - { - if (ImGui::MenuItem("Close Console")) - *p_open = false; - ImGui::EndPopup(); - } - - ImGui::TextWrapped( - "This example implements a console with basic coloring, completion (TAB key) and history (Up/Down keys). A more elaborate " - "implementation may want to store entries along with extra data such as timestamp, emitter, etc."); - ImGui::TextWrapped("Enter 'HELP' for help."); - - // TODO: display items starting from the bottom - - if (ImGui::SmallButton("Add Debug Text")) { AddLog("%d some text", Items.Size); AddLog("some more text"); AddLog("display very important message here!"); } - ImGui::SameLine(); - if (ImGui::SmallButton("Add Debug Error")) { AddLog("[error] something went wrong"); } - ImGui::SameLine(); - if (ImGui::SmallButton("Clear")) { ClearLog(); } - ImGui::SameLine(); - bool copy_to_clipboard = ImGui::SmallButton("Copy"); - //static float t = 0.0f; if (ImGui::GetTime() - t > 0.02f) { t = ImGui::GetTime(); AddLog("Spam %f", t); } - - ImGui::Separator(); - - // Options menu - if (ImGui::BeginPopup("Options")) - { - ImGui::Checkbox("Auto-scroll", &AutoScroll); - ImGui::EndPopup(); - } - - // Options, Filter - if (ImGui::Button("Options")) - ImGui::OpenPopup("Options"); - ImGui::SameLine(); - Filter.Draw("Filter (\"incl,-excl\") (\"error\")", 180); - ImGui::Separator(); - - // Reserve enough left-over height for 1 separator + 1 input text - const float footer_height_to_reserve = ImGui::GetStyle().ItemSpacing.y + ImGui::GetFrameHeightWithSpacing(); - ImGui::BeginChild("ScrollingRegion", ImVec2(0, -footer_height_to_reserve), false, ImGuiWindowFlags_HorizontalScrollbar); - if (ImGui::BeginPopupContextWindow()) - { - if (ImGui::Selectable("Clear")) ClearLog(); - ImGui::EndPopup(); - } - - // Display every line as a separate entry so we can change their color or add custom widgets. - // If you only want raw text you can use ImGui::TextUnformatted(log.begin(), log.end()); - // NB- if you have thousands of entries this approach may be too inefficient and may require user-side clipping - // to only process visible items. The clipper will automatically measure the height of your first item and then - // "seek" to display only items in the visible area. - // To use the clipper we can replace your standard loop: - // for (int i = 0; i < Items.Size; i++) - // With: - // ImGuiListClipper clipper; - // clipper.Begin(Items.Size); - // while (clipper.Step()) - // for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) - // - That your items are evenly spaced (same height) - // - That you have cheap random access to your elements (you can access them given their index, - // without processing all the ones before) - // You cannot this code as-is if a filter is active because it breaks the 'cheap random-access' property. - // We would need random-access on the post-filtered list. - // A typical application wanting coarse clipping and filtering may want to pre-compute an array of indices - // or offsets of items that passed the filtering test, recomputing this array when user changes the filter, - // and appending newly elements as they are inserted. This is left as a task to the user until we can manage - // to improve this example code! - // If your items are of variable height: - // - Split them into same height items would be simpler and facilitate random-seeking into your list. - // - Consider using manual call to IsRectVisible() and skipping extraneous decoration from your items. - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 1)); // Tighten spacing - if (copy_to_clipboard) - ImGui::LogToClipboard(); - for (int i = 0; i < Items.Size; i++) - { - const char* item = Items[i]; - if (!Filter.PassFilter(item)) - continue; - - // Normally you would store more information in your item than just a string. - // (e.g. make Items[] an array of structure, store color/type etc.) - ImVec4 color; - bool has_color = false; - if (strstr(item, "[error]")) { color = ImVec4(1.0f, 0.4f, 0.4f, 1.0f); has_color = true; } - else if (strncmp(item, "# ", 2) == 0) { color = ImVec4(1.0f, 0.8f, 0.6f, 1.0f); has_color = true; } - if (has_color) - ImGui::PushStyleColor(ImGuiCol_Text, color); - ImGui::TextUnformatted(item); - if (has_color) - ImGui::PopStyleColor(); - } - if (copy_to_clipboard) - ImGui::LogFinish(); - - if (ScrollToBottom || (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY())) - ImGui::SetScrollHereY(1.0f); - ScrollToBottom = false; - - ImGui::PopStyleVar(); - ImGui::EndChild(); - ImGui::Separator(); - - // Command-line - bool reclaim_focus = false; - ImGuiInputTextFlags input_text_flags = ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory; - if (ImGui::InputText("Input", InputBuf, IM_ARRAYSIZE(InputBuf), input_text_flags, &TextEditCallbackStub, (void*)this)) - { - char* s = InputBuf; - Strtrim(s); - if (s[0]) - ExecCommand(s); - strcpy(s, ""); - reclaim_focus = true; - } - - // Auto-focus on window apparition - ImGui::SetItemDefaultFocus(); - if (reclaim_focus) - ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget - - ImGui::End(); - } - - void ExecCommand(const char* command_line) - { - AddLog("# %s\n", command_line); - - // Insert into history. First find match and delete it so it can be pushed to the back. - // This isn't trying to be smart or optimal. - HistoryPos = -1; - for (int i = History.Size - 1; i >= 0; i--) - if (Stricmp(History[i], command_line) == 0) - { - free(History[i]); - History.erase(History.begin() + i); - break; - } - History.push_back(Strdup(command_line)); - - // Process command - if (Stricmp(command_line, "CLEAR") == 0) - { - ClearLog(); - } - else if (Stricmp(command_line, "HELP") == 0) - { - AddLog("Commands:"); - for (int i = 0; i < Commands.Size; i++) - AddLog("- %s", Commands[i]); - } - else if (Stricmp(command_line, "HISTORY") == 0) - { - int first = History.Size - 10; - for (int i = first > 0 ? first : 0; i < History.Size; i++) - AddLog("%3d: %s\n", i, History[i]); - } - else - { - AddLog("Unknown command: '%s'\n", command_line); - } - - // On command input, we scroll to bottom even if AutoScroll==false - ScrollToBottom = true; - } - - // In C++11 you'd be better off using lambdas for this sort of forwarding callbacks - static int TextEditCallbackStub(ImGuiInputTextCallbackData* data) - { - ExampleAppConsole* console = (ExampleAppConsole*)data->UserData; - return console->TextEditCallback(data); - } - - int TextEditCallback(ImGuiInputTextCallbackData* data) - { - //AddLog("cursor: %d, selection: %d-%d", data->CursorPos, data->SelectionStart, data->SelectionEnd); - switch (data->EventFlag) - { - case ImGuiInputTextFlags_CallbackCompletion: - { - // Example of TEXT COMPLETION - - // Locate beginning of current word - const char* word_end = data->Buf + data->CursorPos; - const char* word_start = word_end; - while (word_start > data->Buf) - { - const char c = word_start[-1]; - if (c == ' ' || c == '\t' || c == ',' || c == ';') - break; - word_start--; - } - - // Build a list of candidates - ImVector candidates; - for (int i = 0; i < Commands.Size; i++) - if (Strnicmp(Commands[i], word_start, (int)(word_end - word_start)) == 0) - candidates.push_back(Commands[i]); - - if (candidates.Size == 0) - { - // No match - AddLog("No match for \"%.*s\"!\n", (int)(word_end - word_start), word_start); - } - else if (candidates.Size == 1) - { - // Single match. Delete the beginning of the word and replace it entirely so we've got nice casing. - data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); - data->InsertChars(data->CursorPos, candidates[0]); - data->InsertChars(data->CursorPos, " "); - } - else - { - // Multiple matches. Complete as much as we can.. - // So inputing "C"+Tab will complete to "CL" then display "CLEAR" and "CLASSIFY" as matches. - int match_len = (int)(word_end - word_start); - for (;;) - { - int c = 0; - bool all_candidates_matches = true; - for (int i = 0; i < candidates.Size && all_candidates_matches; i++) - if (i == 0) - c = toupper(candidates[i][match_len]); - else if (c == 0 || c != toupper(candidates[i][match_len])) - all_candidates_matches = false; - if (!all_candidates_matches) - break; - match_len++; - } - - if (match_len > 0) - { - data->DeleteChars((int)(word_start - data->Buf), (int)(word_end - word_start)); - data->InsertChars(data->CursorPos, candidates[0], candidates[0] + match_len); - } - - // List matches - AddLog("Possible matches:\n"); - for (int i = 0; i < candidates.Size; i++) - AddLog("- %s\n", candidates[i]); - } - - break; - } - case ImGuiInputTextFlags_CallbackHistory: - { - // Example of HISTORY - const int prev_history_pos = HistoryPos; - if (data->EventKey == ImGuiKey_UpArrow) - { - if (HistoryPos == -1) - HistoryPos = History.Size - 1; - else if (HistoryPos > 0) - HistoryPos--; - } - else if (data->EventKey == ImGuiKey_DownArrow) - { - if (HistoryPos != -1) - if (++HistoryPos >= History.Size) - HistoryPos = -1; - } - - // A better implementation would preserve the data on the current input line along with cursor position. - if (prev_history_pos != HistoryPos) - { - const char* history_str = (HistoryPos >= 0) ? History[HistoryPos] : ""; - data->DeleteChars(0, data->BufTextLen); - data->InsertChars(0, history_str); - } - } - } - return 0; - } -}; - -static void ShowExampleAppConsole(bool* p_open) -{ - static ExampleAppConsole console; - console.Draw("Example: Console", p_open); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Debug Log / ShowExampleAppLog() -//----------------------------------------------------------------------------- - -// Usage: -// static ExampleAppLog my_log; -// my_log.AddLog("Hello %d world\n", 123); -// my_log.Draw("title"); -struct ExampleAppLog -{ - ImGuiTextBuffer Buf; - ImGuiTextFilter Filter; - ImVector LineOffsets; // Index to lines offset. We maintain this with AddLog() calls. - bool AutoScroll; // Keep scrolling if already at the bottom. - - ExampleAppLog() - { - AutoScroll = true; - Clear(); - } - - void Clear() - { - Buf.clear(); - LineOffsets.clear(); - LineOffsets.push_back(0); - } - - void AddLog(const char* fmt, ...) IM_FMTARGS(2) - { - int old_size = Buf.size(); - va_list args; - va_start(args, fmt); - Buf.appendfv(fmt, args); - va_end(args); - for (int new_size = Buf.size(); old_size < new_size; old_size++) - if (Buf[old_size] == '\n') - LineOffsets.push_back(old_size + 1); - } - - void Draw(const char* title, bool* p_open = NULL) - { - if (!ImGui::Begin(title, p_open)) - { - ImGui::End(); - return; - } - - // Options menu - if (ImGui::BeginPopup("Options")) - { - ImGui::Checkbox("Auto-scroll", &AutoScroll); - ImGui::EndPopup(); - } - - // Main window - if (ImGui::Button("Options")) - ImGui::OpenPopup("Options"); - ImGui::SameLine(); - bool clear = ImGui::Button("Clear"); - ImGui::SameLine(); - bool copy = ImGui::Button("Copy"); - ImGui::SameLine(); - Filter.Draw("Filter", -100.0f); - - ImGui::Separator(); - ImGui::BeginChild("scrolling", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar); - - if (clear) - Clear(); - if (copy) - ImGui::LogToClipboard(); - - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); - const char* buf = Buf.begin(); - const char* buf_end = Buf.end(); - if (Filter.IsActive()) - { - // In this example we don't use the clipper when Filter is enabled. - // This is because we don't have a random access on the result on our filter. - // A real application processing logs with ten of thousands of entries may want to store the result of - // search/filter.. especially if the filtering function is not trivial (e.g. reg-exp). - for (int line_no = 0; line_no < LineOffsets.Size; line_no++) - { - const char* line_start = buf + LineOffsets[line_no]; - const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; - if (Filter.PassFilter(line_start, line_end)) - ImGui::TextUnformatted(line_start, line_end); - } - } - else - { - // The simplest and easy way to display the entire buffer: - // ImGui::TextUnformatted(buf_begin, buf_end); - // And it'll just work. TextUnformatted() has specialization for large blob of text and will fast-forward - // to skip non-visible lines. Here we instead demonstrate using the clipper to only process lines that are - // within the visible area. - // If you have tens of thousands of items and their processing cost is non-negligible, coarse clipping them - // on your side is recommended. Using ImGuiListClipper requires - // - A) random access into your data - // - B) items all being the same height, - // both of which we can handle since we an array pointing to the beginning of each line of text. - // When using the filter (in the block of code above) we don't have random access into the data to display - // anymore, which is why we don't use the clipper. Storing or skimming through the search result would make - // it possible (and would be recommended if you want to search through tens of thousands of entries). - ImGuiListClipper clipper; - clipper.Begin(LineOffsets.Size); - while (clipper.Step()) - { - for (int line_no = clipper.DisplayStart; line_no < clipper.DisplayEnd; line_no++) - { - const char* line_start = buf + LineOffsets[line_no]; - const char* line_end = (line_no + 1 < LineOffsets.Size) ? (buf + LineOffsets[line_no + 1] - 1) : buf_end; - ImGui::TextUnformatted(line_start, line_end); - } - } - clipper.End(); - } - ImGui::PopStyleVar(); - - if (AutoScroll && ImGui::GetScrollY() >= ImGui::GetScrollMaxY()) - ImGui::SetScrollHereY(1.0f); - - ImGui::EndChild(); - ImGui::End(); - } -}; - -// Demonstrate creating a simple log window with basic filtering. -static void ShowExampleAppLog(bool* p_open) -{ - static ExampleAppLog log; - - // For the demo: add a debug button _BEFORE_ the normal log window contents - // We take advantage of a rarely used feature: multiple calls to Begin()/End() are appending to the _same_ window. - // Most of the contents of the window will be added by the log.Draw() call. - ImGui::SetNextWindowSize(ImVec2(500, 400), ImGuiCond_FirstUseEver); - ImGui::Begin("Example: Log", p_open); - if (ImGui::SmallButton("[Debug] Add 5 entries")) - { - static int counter = 0; - const char* categories[3] = { "info", "warn", "error" }; - const char* words[] = { "Bumfuzzled", "Cattywampus", "Snickersnee", "Abibliophobia", "Absquatulate", "Nincompoop", "Pauciloquent" }; - for (int n = 0; n < 5; n++) - { - const char* category = categories[counter % IM_ARRAYSIZE(categories)]; - const char* word = words[counter % IM_ARRAYSIZE(words)]; - log.AddLog("[%05d] [%s] Hello, current time is %.1f, here's a word: '%s'\n", - ImGui::GetFrameCount(), category, ImGui::GetTime(), word); - counter++; - } - } - ImGui::End(); - - // Actually call in the regular Log helper (which will Begin() into the same window as we just did) - log.Draw("Example: Log", p_open); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Simple Layout / ShowExampleAppLayout() -//----------------------------------------------------------------------------- - -// Demonstrate create a window with multiple child windows. -static void ShowExampleAppLayout(bool* p_open) -{ - ImGui::SetNextWindowSize(ImVec2(500, 440), ImGuiCond_FirstUseEver); - if (ImGui::Begin("Example: Simple layout", p_open, ImGuiWindowFlags_MenuBar)) - { - if (ImGui::BeginMenuBar()) - { - if (ImGui::BeginMenu("File")) - { - if (ImGui::MenuItem("Close")) *p_open = false; - ImGui::EndMenu(); - } - ImGui::EndMenuBar(); - } - - // Left - static int selected = 0; - { - ImGui::BeginChild("left pane", ImVec2(150, 0), true); - for (int i = 0; i < 100; i++) - { - char label[128]; - sprintf(label, "MyObject %d", i); - if (ImGui::Selectable(label, selected == i)) - selected = i; - } - ImGui::EndChild(); - } - ImGui::SameLine(); - - // Right - { - ImGui::BeginGroup(); - ImGui::BeginChild("item view", ImVec2(0, -ImGui::GetFrameHeightWithSpacing())); // Leave room for 1 line below us - ImGui::Text("MyObject: %d", selected); - ImGui::Separator(); - if (ImGui::BeginTabBar("##Tabs", ImGuiTabBarFlags_None)) - { - if (ImGui::BeginTabItem("Description")) - { - ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "); - ImGui::EndTabItem(); - } - if (ImGui::BeginTabItem("Details")) - { - ImGui::Text("ID: 0123456789"); - ImGui::EndTabItem(); - } - ImGui::EndTabBar(); - } - ImGui::EndChild(); - if (ImGui::Button("Revert")) {} - ImGui::SameLine(); - if (ImGui::Button("Save")) {} - ImGui::EndGroup(); - } - } - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Property Editor / ShowExampleAppPropertyEditor() -//----------------------------------------------------------------------------- - -static void ShowPlaceholderObject(const char* prefix, int uid) -{ - // Use object uid as identifier. Most commonly you could also use the object pointer as a base ID. - ImGui::PushID(uid); - - // Text and Tree nodes are less high than framed widgets, using AlignTextToFramePadding() we add vertical spacing to make the tree lines equal high. - ImGui::TableNextRow(); - ImGui::TableSetColumnIndex(0); - ImGui::AlignTextToFramePadding(); - bool node_open = ImGui::TreeNode("Object", "%s_%u", prefix, uid); - ImGui::TableSetColumnIndex(1); - ImGui::Text("my sailor is rich"); - - if (node_open) - { - static float placeholder_members[8] = { 0.0f, 0.0f, 1.0f, 3.1416f, 100.0f, 999.0f }; - for (int i = 0; i < 8; i++) - { - ImGui::PushID(i); // Use field index as identifier. - if (i < 2) - { - ShowPlaceholderObject("Child", 424242); - } - else - { - // Here we use a TreeNode to highlight on hover (we could use e.g. Selectable as well) - ImGui::TableNextRow(); - ImGui::TableSetColumnIndex(0); - ImGui::AlignTextToFramePadding(); - ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_Bullet; - ImGui::TreeNodeEx("Field", flags, "Field_%d", i); - - ImGui::TableSetColumnIndex(1); - ImGui::SetNextItemWidth(-FLT_MIN); - if (i >= 5) - ImGui::InputFloat("##value", &placeholder_members[i], 1.0f); - else - ImGui::DragFloat("##value", &placeholder_members[i], 0.01f); - ImGui::NextColumn(); - } - ImGui::PopID(); - } - ImGui::TreePop(); - } - ImGui::PopID(); -} - -// Demonstrate create a simple property editor. -static void ShowExampleAppPropertyEditor(bool* p_open) -{ - ImGui::SetNextWindowSize(ImVec2(430, 450), ImGuiCond_FirstUseEver); - if (!ImGui::Begin("Example: Property editor", p_open)) - { - ImGui::End(); - return; - } - - HelpMarker( - "This example shows how you may implement a property editor using two columns.\n" - "All objects/fields data are dummies here.\n" - "Remember that in many simple cases, you can use ImGui::SameLine(xxx) to position\n" - "your cursor horizontally instead of using the Columns() API."); - - ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2)); - if (ImGui::BeginTable("split", 2, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_Resizable)) - { - // Iterate placeholder objects (all the same data) - for (int obj_i = 0; obj_i < 4; obj_i++) - { - ShowPlaceholderObject("Object", obj_i); - //ImGui::Separator(); - } - ImGui::EndTable(); - } - ImGui::PopStyleVar(); - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Long Text / ShowExampleAppLongText() -//----------------------------------------------------------------------------- - -// Demonstrate/test rendering huge amount of text, and the incidence of clipping. -static void ShowExampleAppLongText(bool* p_open) -{ - ImGui::SetNextWindowSize(ImVec2(520, 600), ImGuiCond_FirstUseEver); - if (!ImGui::Begin("Example: Long text display", p_open)) - { - ImGui::End(); - return; - } - - static int test_type = 0; - static ImGuiTextBuffer log; - static int lines = 0; - ImGui::Text("Printing unusually long amount of text."); - ImGui::Combo("Test type", &test_type, - "Single call to TextUnformatted()\0" - "Multiple calls to Text(), clipped\0" - "Multiple calls to Text(), not clipped (slow)\0"); - ImGui::Text("Buffer contents: %d lines, %d bytes", lines, log.size()); - if (ImGui::Button("Clear")) { log.clear(); lines = 0; } - ImGui::SameLine(); - if (ImGui::Button("Add 1000 lines")) - { - for (int i = 0; i < 1000; i++) - log.appendf("%i The quick brown fox jumps over the lazy dog\n", lines + i); - lines += 1000; - } - ImGui::BeginChild("Log"); - switch (test_type) - { - case 0: - // Single call to TextUnformatted() with a big buffer - ImGui::TextUnformatted(log.begin(), log.end()); - break; - case 1: - { - // Multiple calls to Text(), manually coarsely clipped - demonstrate how to use the ImGuiListClipper helper. - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); - ImGuiListClipper clipper; - clipper.Begin(lines); - while (clipper.Step()) - for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) - ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); - ImGui::PopStyleVar(); - break; - } - case 2: - // Multiple calls to Text(), not clipped (slow) - ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0, 0)); - for (int i = 0; i < lines; i++) - ImGui::Text("%i The quick brown fox jumps over the lazy dog", i); - ImGui::PopStyleVar(); - break; - } - ImGui::EndChild(); - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Auto Resize / ShowExampleAppAutoResize() -//----------------------------------------------------------------------------- - -// Demonstrate creating a window which gets auto-resized according to its content. -static void ShowExampleAppAutoResize(bool* p_open) -{ - if (!ImGui::Begin("Example: Auto-resizing window", p_open, ImGuiWindowFlags_AlwaysAutoResize)) - { - ImGui::End(); - return; - } - - static int lines = 10; - ImGui::TextUnformatted( - "Window will resize every-frame to the size of its content.\n" - "Note that you probably don't want to query the window size to\n" - "output your content because that would create a feedback loop."); - ImGui::SliderInt("Number of lines", &lines, 1, 20); - for (int i = 0; i < lines; i++) - ImGui::Text("%*sThis is line %d", i * 4, "", i); // Pad with space to extend size horizontally - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Constrained Resize / ShowExampleAppConstrainedResize() -//----------------------------------------------------------------------------- - -// Demonstrate creating a window with custom resize constraints. -static void ShowExampleAppConstrainedResize(bool* p_open) -{ - struct CustomConstraints - { - // Helper functions to demonstrate programmatic constraints - static void Square(ImGuiSizeCallbackData* data) { data->DesiredSize.x = data->DesiredSize.y = IM_MAX(data->DesiredSize.x, data->DesiredSize.y); } - static void Step(ImGuiSizeCallbackData* data) { float step = (float)(int)(intptr_t)data->UserData; data->DesiredSize = ImVec2((int)(data->DesiredSize.x / step + 0.5f) * step, (int)(data->DesiredSize.y / step + 0.5f) * step); } - }; - - const char* test_desc[] = - { - "Resize vertical only", - "Resize horizontal only", - "Width > 100, Height > 100", - "Width 400-500", - "Height 400-500", - "Custom: Always Square", - "Custom: Fixed Steps (100)", - }; - - static bool auto_resize = false; - static int type = 0; - static int display_lines = 10; - if (type == 0) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 0), ImVec2(-1, FLT_MAX)); // Vertical only - if (type == 1) ImGui::SetNextWindowSizeConstraints(ImVec2(0, -1), ImVec2(FLT_MAX, -1)); // Horizontal only - if (type == 2) ImGui::SetNextWindowSizeConstraints(ImVec2(100, 100), ImVec2(FLT_MAX, FLT_MAX)); // Width > 100, Height > 100 - if (type == 3) ImGui::SetNextWindowSizeConstraints(ImVec2(400, -1), ImVec2(500, -1)); // Width 400-500 - if (type == 4) ImGui::SetNextWindowSizeConstraints(ImVec2(-1, 400), ImVec2(-1, 500)); // Height 400-500 - if (type == 5) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Square); // Always Square - if (type == 6) ImGui::SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, FLT_MAX), CustomConstraints::Step, (void*)(intptr_t)100); // Fixed Step - - ImGuiWindowFlags flags = auto_resize ? ImGuiWindowFlags_AlwaysAutoResize : 0; - if (ImGui::Begin("Example: Constrained Resize", p_open, flags)) - { - if (ImGui::Button("200x200")) { ImGui::SetWindowSize(ImVec2(200, 200)); } ImGui::SameLine(); - if (ImGui::Button("500x500")) { ImGui::SetWindowSize(ImVec2(500, 500)); } ImGui::SameLine(); - if (ImGui::Button("800x200")) { ImGui::SetWindowSize(ImVec2(800, 200)); } - ImGui::SetNextItemWidth(200); - ImGui::Combo("Constraint", &type, test_desc, IM_ARRAYSIZE(test_desc)); - ImGui::SetNextItemWidth(200); - ImGui::DragInt("Lines", &display_lines, 0.2f, 1, 100); - ImGui::Checkbox("Auto-resize", &auto_resize); - for (int i = 0; i < display_lines; i++) - ImGui::Text("%*sHello, sailor! Making this line long enough for the example.", i * 4, ""); - } - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Simple overlay / ShowExampleAppSimpleOverlay() -//----------------------------------------------------------------------------- - -// Demonstrate creating a simple static window with no decoration -// + a context-menu to choose which corner of the screen to use. -static void ShowExampleAppSimpleOverlay(bool* p_open) -{ - const float PAD = 10.0f; - static int corner = 0; - ImGuiIO& io = ImGui::GetIO(); - ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav; - if (corner != -1) - { - const ImGuiViewport* viewport = ImGui::GetMainViewport(); - ImVec2 work_pos = viewport->WorkPos; // Use work area to avoid menu-bar/task-bar, if any! - ImVec2 work_size = viewport->WorkSize; - ImVec2 window_pos, window_pos_pivot; - window_pos.x = (corner & 1) ? (work_pos.x + work_size.x - PAD) : (work_pos.x + PAD); - window_pos.y = (corner & 2) ? (work_pos.y + work_size.y - PAD) : (work_pos.y + PAD); - window_pos_pivot.x = (corner & 1) ? 1.0f : 0.0f; - window_pos_pivot.y = (corner & 2) ? 1.0f : 0.0f; - ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always, window_pos_pivot); - window_flags |= ImGuiWindowFlags_NoMove; - } - ImGui::SetNextWindowBgAlpha(0.35f); // Transparent background - if (ImGui::Begin("Example: Simple overlay", p_open, window_flags)) - { - ImGui::Text("Simple overlay\n" "in the corner of the screen.\n" "(right-click to change position)"); - ImGui::Separator(); - if (ImGui::IsMousePosValid()) - ImGui::Text("Mouse Position: (%.1f,%.1f)", io.MousePos.x, io.MousePos.y); - else - ImGui::Text("Mouse Position: "); - if (ImGui::BeginPopupContextWindow()) - { - if (ImGui::MenuItem("Custom", NULL, corner == -1)) corner = -1; - if (ImGui::MenuItem("Top-left", NULL, corner == 0)) corner = 0; - if (ImGui::MenuItem("Top-right", NULL, corner == 1)) corner = 1; - if (ImGui::MenuItem("Bottom-left", NULL, corner == 2)) corner = 2; - if (ImGui::MenuItem("Bottom-right", NULL, corner == 3)) corner = 3; - if (p_open && ImGui::MenuItem("Close")) *p_open = false; - ImGui::EndPopup(); - } - } - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Fullscreen window / ShowExampleAppFullscreen() -//----------------------------------------------------------------------------- - -// Demonstrate creating a window covering the entire screen/viewport -static void ShowExampleAppFullscreen(bool* p_open) -{ - static bool use_work_area = true; - static ImGuiWindowFlags flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings; - - // We demonstrate using the full viewport area or the work area (without menu-bars, task-bars etc.) - // Based on your use case you may want one of the other. - const ImGuiViewport* viewport = ImGui::GetMainViewport(); - ImGui::SetNextWindowPos(use_work_area ? viewport->WorkPos : viewport->Pos); - ImGui::SetNextWindowSize(use_work_area ? viewport->WorkSize : viewport->Size); - - if (ImGui::Begin("Example: Fullscreen window", p_open, flags)) - { - ImGui::Checkbox("Use work area instead of main area", &use_work_area); - ImGui::SameLine(); - HelpMarker("Main Area = entire viewport,\nWork Area = entire viewport minus sections used by the main menu bars, task bars etc.\n\nEnable the main-menu bar in Examples menu to see the difference."); - - ImGui::CheckboxFlags("ImGuiWindowFlags_NoBackground", &flags, ImGuiWindowFlags_NoBackground); - ImGui::CheckboxFlags("ImGuiWindowFlags_NoDecoration", &flags, ImGuiWindowFlags_NoDecoration); - ImGui::Indent(); - ImGui::CheckboxFlags("ImGuiWindowFlags_NoTitleBar", &flags, ImGuiWindowFlags_NoTitleBar); - ImGui::CheckboxFlags("ImGuiWindowFlags_NoCollapse", &flags, ImGuiWindowFlags_NoCollapse); - ImGui::CheckboxFlags("ImGuiWindowFlags_NoScrollbar", &flags, ImGuiWindowFlags_NoScrollbar); - ImGui::Unindent(); - - if (p_open && ImGui::Button("Close this window")) - *p_open = false; - } - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Manipulating Window Titles / ShowExampleAppWindowTitles() -//----------------------------------------------------------------------------- - -// Demonstrate using "##" and "###" in identifiers to manipulate ID generation. -// This apply to all regular items as well. -// Read FAQ section "How can I have multiple widgets with the same label?" for details. -static void ShowExampleAppWindowTitles(bool*) -{ - const ImGuiViewport* viewport = ImGui::GetMainViewport(); - const ImVec2 base_pos = viewport->Pos; - - // By default, Windows are uniquely identified by their title. - // You can use the "##" and "###" markers to manipulate the display/ID. - - // Using "##" to display same title but have unique identifier. - ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 100), ImGuiCond_FirstUseEver); - ImGui::Begin("Same title as another window##1"); - ImGui::Text("This is window 1.\nMy title is the same as window 2, but my identifier is unique."); - ImGui::End(); - - ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 200), ImGuiCond_FirstUseEver); - ImGui::Begin("Same title as another window##2"); - ImGui::Text("This is window 2.\nMy title is the same as window 1, but my identifier is unique."); - ImGui::End(); - - // Using "###" to display a changing title but keep a static identifier "AnimatedTitle" - char buf[128]; - sprintf(buf, "Animated title %c %d###AnimatedTitle", "|/-\\"[(int)(ImGui::GetTime() / 0.25f) & 3], ImGui::GetFrameCount()); - ImGui::SetNextWindowPos(ImVec2(base_pos.x + 100, base_pos.y + 300), ImGuiCond_FirstUseEver); - ImGui::Begin(buf); - ImGui::Text("This window has a changing title."); - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Custom Rendering using ImDrawList API / ShowExampleAppCustomRendering() -//----------------------------------------------------------------------------- - -// Demonstrate using the low-level ImDrawList to draw custom shapes. -static void ShowExampleAppCustomRendering(bool* p_open) -{ - if (!ImGui::Begin("Example: Custom rendering", p_open)) - { - ImGui::End(); - return; - } - - // Tip: If you do a lot of custom rendering, you probably want to use your own geometrical types and benefit of - // overloaded operators, etc. Define IM_VEC2_CLASS_EXTRA in imconfig.h to create implicit conversions between your - // types and ImVec2/ImVec4. Dear ImGui defines overloaded operators but they are internal to imgui.cpp and not - // exposed outside (to avoid messing with your types) In this example we are not using the maths operators! - - if (ImGui::BeginTabBar("##TabBar")) - { - if (ImGui::BeginTabItem("Primitives")) - { - ImGui::PushItemWidth(-ImGui::GetFontSize() * 15); - ImDrawList* draw_list = ImGui::GetWindowDrawList(); - - // Draw gradients - // (note that those are currently exacerbating our sRGB/Linear issues) - // Calling ImGui::GetColorU32() multiplies the given colors by the current Style Alpha, but you may pass the IM_COL32() directly as well.. - ImGui::Text("Gradients"); - ImVec2 gradient_size = ImVec2(ImGui::CalcItemWidth(), ImGui::GetFrameHeight()); - { - ImVec2 p0 = ImGui::GetCursorScreenPos(); - ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); - ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 0, 0, 255)); - ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 255, 255, 255)); - draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); - ImGui::InvisibleButton("##gradient1", gradient_size); - } - { - ImVec2 p0 = ImGui::GetCursorScreenPos(); - ImVec2 p1 = ImVec2(p0.x + gradient_size.x, p0.y + gradient_size.y); - ImU32 col_a = ImGui::GetColorU32(IM_COL32(0, 255, 0, 255)); - ImU32 col_b = ImGui::GetColorU32(IM_COL32(255, 0, 0, 255)); - draw_list->AddRectFilledMultiColor(p0, p1, col_a, col_b, col_b, col_a); - ImGui::InvisibleButton("##gradient2", gradient_size); - } - - // Draw a bunch of primitives - ImGui::Text("All primitives"); - static float sz = 36.0f; - static float thickness = 3.0f; - static int ngon_sides = 6; - static bool circle_segments_override = false; - static int circle_segments_override_v = 12; - static bool curve_segments_override = false; - static int curve_segments_override_v = 8; - static ImVec4 colf = ImVec4(1.0f, 1.0f, 0.4f, 1.0f); - ImGui::DragFloat("Size", &sz, 0.2f, 2.0f, 100.0f, "%.0f"); - ImGui::DragFloat("Thickness", &thickness, 0.05f, 1.0f, 8.0f, "%.02f"); - ImGui::SliderInt("N-gon sides", &ngon_sides, 3, 12); - ImGui::Checkbox("##circlesegmentoverride", &circle_segments_override); - ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); - circle_segments_override |= ImGui::SliderInt("Circle segments override", &circle_segments_override_v, 3, 40); - ImGui::Checkbox("##curvessegmentoverride", &curve_segments_override); - ImGui::SameLine(0.0f, ImGui::GetStyle().ItemInnerSpacing.x); - curve_segments_override |= ImGui::SliderInt("Curves segments override", &curve_segments_override_v, 3, 40); - ImGui::ColorEdit4("Color", &colf.x); - - const ImVec2 p = ImGui::GetCursorScreenPos(); - const ImU32 col = ImColor(colf); - const float spacing = 10.0f; - const ImDrawCornerFlags corners_none = 0; - const ImDrawCornerFlags corners_all = ImDrawCornerFlags_All; - const ImDrawCornerFlags corners_tl_br = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotRight; - const float rounding = sz / 5.0f; - const int circle_segments = circle_segments_override ? circle_segments_override_v : 0; - const int curve_segments = curve_segments_override ? curve_segments_override_v : 0; - float x = p.x + 4.0f; - float y = p.y + 4.0f; - for (int n = 0; n < 2; n++) - { - // First line uses a thickness of 1.0f, second line uses the configurable thickness - float th = (n == 0) ? 1.0f : thickness; - draw_list->AddNgon(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, ngon_sides, th); x += sz + spacing; // N-gon - draw_list->AddCircle(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments, th); x += sz + spacing; // Circle - draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 0.0f, corners_none, th); x += sz + spacing; // Square - draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, corners_all, th); x += sz + spacing; // Square with all rounded corners - draw_list->AddRect(ImVec2(x, y), ImVec2(x + sz, y + sz), col, rounding, corners_tl_br, th); x += sz + spacing; // Square with two rounded corners - draw_list->AddTriangle(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col, th);x += sz + spacing; // Triangle - //draw_list->AddTriangle(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col, th);x+= sz*0.4f + spacing; // Thin triangle - draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y), col, th); x += sz + spacing; // Horizontal line (note: drawing a filled rectangle will be faster!) - draw_list->AddLine(ImVec2(x, y), ImVec2(x, y + sz), col, th); x += spacing; // Vertical line (note: drawing a filled rectangle will be faster!) - draw_list->AddLine(ImVec2(x, y), ImVec2(x + sz, y + sz), col, th); x += sz + spacing; // Diagonal line - - // Quadratic Bezier Curve (3 control points) - ImVec2 cp3[3] = { ImVec2(x, y + sz * 0.6f), ImVec2(x + sz * 0.5f, y - sz * 0.4f), ImVec2(x + sz, y + sz) }; - draw_list->AddBezierQuadratic(cp3[0], cp3[1], cp3[2], col, th, curve_segments); x += sz + spacing; - - // Cubic Bezier Curve (4 control points) - ImVec2 cp4[4] = { ImVec2(x, y), ImVec2(x + sz * 1.3f, y + sz * 0.3f), ImVec2(x + sz - sz * 1.3f, y + sz - sz * 0.3f), ImVec2(x + sz, y + sz) }; - draw_list->AddBezierCubic(cp4[0], cp4[1], cp4[2], cp4[3], col, th, curve_segments); - - x = p.x + 4; - y += sz + spacing; - } - draw_list->AddNgonFilled(ImVec2(x + sz * 0.5f, y + sz * 0.5f), sz*0.5f, col, ngon_sides); x += sz + spacing; // N-gon - draw_list->AddCircleFilled(ImVec2(x + sz*0.5f, y + sz*0.5f), sz*0.5f, col, circle_segments); x += sz + spacing; // Circle - draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col); x += sz + spacing; // Square - draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f); x += sz + spacing; // Square with all rounded corners - draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + sz), col, 10.0f, corners_tl_br); x += sz + spacing; // Square with two rounded corners - draw_list->AddTriangleFilled(ImVec2(x+sz*0.5f,y), ImVec2(x+sz, y+sz-0.5f), ImVec2(x, y+sz-0.5f), col); x += sz + spacing; // Triangle - //draw_list->AddTriangleFilled(ImVec2(x+sz*0.2f,y), ImVec2(x, y+sz-0.5f), ImVec2(x+sz*0.4f, y+sz-0.5f), col); x += sz*0.4f + spacing; // Thin triangle - draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + sz, y + thickness), col); x += sz + spacing; // Horizontal line (faster than AddLine, but only handle integer thickness) - draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + thickness, y + sz), col); x += spacing * 2.0f;// Vertical line (faster than AddLine, but only handle integer thickness) - draw_list->AddRectFilled(ImVec2(x, y), ImVec2(x + 1, y + 1), col); x += sz; // Pixel (faster than AddLine) - draw_list->AddRectFilledMultiColor(ImVec2(x, y), ImVec2(x + sz, y + sz), IM_COL32(0, 0, 0, 255), IM_COL32(255, 0, 0, 255), IM_COL32(255, 255, 0, 255), IM_COL32(0, 255, 0, 255)); - - ImGui::Dummy(ImVec2((sz + spacing) * 10.2f, (sz + spacing) * 3.0f)); - ImGui::PopItemWidth(); - ImGui::EndTabItem(); - } - - if (ImGui::BeginTabItem("Canvas")) - { - static ImVector points; - static ImVec2 scrolling(0.0f, 0.0f); - static bool opt_enable_grid = true; - static bool opt_enable_context_menu = true; - static bool adding_line = false; - - ImGui::Checkbox("Enable grid", &opt_enable_grid); - ImGui::Checkbox("Enable context menu", &opt_enable_context_menu); - ImGui::Text("Mouse Left: drag to add lines,\nMouse Right: drag to scroll, click for context menu."); - - // Typically you would use a BeginChild()/EndChild() pair to benefit from a clipping region + own scrolling. - // Here we demonstrate that this can be replaced by simple offsetting + custom drawing + PushClipRect/PopClipRect() calls. - // To use a child window instead we could use, e.g: - // ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0)); // Disable padding - // ImGui::PushStyleColor(ImGuiCol_ChildBg, IM_COL32(50, 50, 50, 255)); // Set a background color - // ImGui::BeginChild("canvas", ImVec2(0.0f, 0.0f), true, ImGuiWindowFlags_NoMove); - // ImGui::PopStyleColor(); - // ImGui::PopStyleVar(); - // [...] - // ImGui::EndChild(); - - // Using InvisibleButton() as a convenience 1) it will advance the layout cursor and 2) allows us to use IsItemHovered()/IsItemActive() - ImVec2 canvas_p0 = ImGui::GetCursorScreenPos(); // ImDrawList API uses screen coordinates! - ImVec2 canvas_sz = ImGui::GetContentRegionAvail(); // Resize canvas to what's available - if (canvas_sz.x < 50.0f) canvas_sz.x = 50.0f; - if (canvas_sz.y < 50.0f) canvas_sz.y = 50.0f; - ImVec2 canvas_p1 = ImVec2(canvas_p0.x + canvas_sz.x, canvas_p0.y + canvas_sz.y); - - // Draw border and background color - ImGuiIO& io = ImGui::GetIO(); - ImDrawList* draw_list = ImGui::GetWindowDrawList(); - draw_list->AddRectFilled(canvas_p0, canvas_p1, IM_COL32(50, 50, 50, 255)); - draw_list->AddRect(canvas_p0, canvas_p1, IM_COL32(255, 255, 255, 255)); - - // This will catch our interactions - ImGui::InvisibleButton("canvas", canvas_sz, ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight); - const bool is_hovered = ImGui::IsItemHovered(); // Hovered - const bool is_active = ImGui::IsItemActive(); // Held - const ImVec2 origin(canvas_p0.x + scrolling.x, canvas_p0.y + scrolling.y); // Lock scrolled origin - const ImVec2 mouse_pos_in_canvas(io.MousePos.x - origin.x, io.MousePos.y - origin.y); - - // Add first and second point - if (is_hovered && !adding_line && ImGui::IsMouseClicked(ImGuiMouseButton_Left)) - { - points.push_back(mouse_pos_in_canvas); - points.push_back(mouse_pos_in_canvas); - adding_line = true; - } - if (adding_line) - { - points.back() = mouse_pos_in_canvas; - if (!ImGui::IsMouseDown(ImGuiMouseButton_Left)) - adding_line = false; - } - - // Pan (we use a zero mouse threshold when there's no context menu) - // You may decide to make that threshold dynamic based on whether the mouse is hovering something etc. - const float mouse_threshold_for_pan = opt_enable_context_menu ? -1.0f : 0.0f; - if (is_active && ImGui::IsMouseDragging(ImGuiMouseButton_Right, mouse_threshold_for_pan)) - { - scrolling.x += io.MouseDelta.x; - scrolling.y += io.MouseDelta.y; - } - - // Context menu (under default mouse threshold) - ImVec2 drag_delta = ImGui::GetMouseDragDelta(ImGuiMouseButton_Right); - if (opt_enable_context_menu && ImGui::IsMouseReleased(ImGuiMouseButton_Right) && drag_delta.x == 0.0f && drag_delta.y == 0.0f) - ImGui::OpenPopupOnItemClick("context"); - if (ImGui::BeginPopup("context")) - { - if (adding_line) - points.resize(points.size() - 2); - adding_line = false; - if (ImGui::MenuItem("Remove one", NULL, false, points.Size > 0)) { points.resize(points.size() - 2); } - if (ImGui::MenuItem("Remove all", NULL, false, points.Size > 0)) { points.clear(); } - ImGui::EndPopup(); - } - - // Draw grid + all lines in the canvas - draw_list->PushClipRect(canvas_p0, canvas_p1, true); - if (opt_enable_grid) - { - const float GRID_STEP = 64.0f; - for (float x = fmodf(scrolling.x, GRID_STEP); x < canvas_sz.x; x += GRID_STEP) - draw_list->AddLine(ImVec2(canvas_p0.x + x, canvas_p0.y), ImVec2(canvas_p0.x + x, canvas_p1.y), IM_COL32(200, 200, 200, 40)); - for (float y = fmodf(scrolling.y, GRID_STEP); y < canvas_sz.y; y += GRID_STEP) - draw_list->AddLine(ImVec2(canvas_p0.x, canvas_p0.y + y), ImVec2(canvas_p1.x, canvas_p0.y + y), IM_COL32(200, 200, 200, 40)); - } - for (int n = 0; n < points.Size; n += 2) - draw_list->AddLine(ImVec2(origin.x + points[n].x, origin.y + points[n].y), ImVec2(origin.x + points[n + 1].x, origin.y + points[n + 1].y), IM_COL32(255, 255, 0, 255), 2.0f); - draw_list->PopClipRect(); - - ImGui::EndTabItem(); - } - - if (ImGui::BeginTabItem("BG/FG draw lists")) - { - static bool draw_bg = true; - static bool draw_fg = true; - ImGui::Checkbox("Draw in Background draw list", &draw_bg); - ImGui::SameLine(); HelpMarker("The Background draw list will be rendered below every Dear ImGui windows."); - ImGui::Checkbox("Draw in Foreground draw list", &draw_fg); - ImGui::SameLine(); HelpMarker("The Foreground draw list will be rendered over every Dear ImGui windows."); - ImVec2 window_pos = ImGui::GetWindowPos(); - ImVec2 window_size = ImGui::GetWindowSize(); - ImVec2 window_center = ImVec2(window_pos.x + window_size.x * 0.5f, window_pos.y + window_size.y * 0.5f); - if (draw_bg) - ImGui::GetBackgroundDrawList()->AddCircle(window_center, window_size.x * 0.6f, IM_COL32(255, 0, 0, 200), 0, 10 + 4); - if (draw_fg) - ImGui::GetForegroundDrawList()->AddCircle(window_center, window_size.y * 0.6f, IM_COL32(0, 255, 0, 200), 0, 10); - ImGui::EndTabItem(); - } - - ImGui::EndTabBar(); - } - - ImGui::End(); -} - -//----------------------------------------------------------------------------- -// [SECTION] Example App: Documents Handling / ShowExampleAppDocuments() -//----------------------------------------------------------------------------- - -// Simplified structure to mimic a Document model -struct MyDocument -{ - const char* Name; // Document title - bool Open; // Set when open (we keep an array of all available documents to simplify demo code!) - bool OpenPrev; // Copy of Open from last update. - bool Dirty; // Set when the document has been modified - bool WantClose; // Set when the document - ImVec4 Color; // An arbitrary variable associated to the document - - MyDocument(const char* name, bool open = true, const ImVec4& color = ImVec4(1.0f, 1.0f, 1.0f, 1.0f)) - { - Name = name; - Open = OpenPrev = open; - Dirty = false; - WantClose = false; - Color = color; - } - void DoOpen() { Open = true; } - void DoQueueClose() { WantClose = true; } - void DoForceClose() { Open = false; Dirty = false; } - void DoSave() { Dirty = false; } - - // Display placeholder contents for the Document - static void DisplayContents(MyDocument* doc) - { - ImGui::PushID(doc); - ImGui::Text("Document \"%s\"", doc->Name); - ImGui::PushStyleColor(ImGuiCol_Text, doc->Color); - ImGui::TextWrapped("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."); - ImGui::PopStyleColor(); - if (ImGui::Button("Modify", ImVec2(100, 0))) - doc->Dirty = true; - ImGui::SameLine(); - if (ImGui::Button("Save", ImVec2(100, 0))) - doc->DoSave(); - ImGui::ColorEdit3("color", &doc->Color.x); // Useful to test drag and drop and hold-dragged-to-open-tab behavior. - ImGui::PopID(); - } - - // Display context menu for the Document - static void DisplayContextMenu(MyDocument* doc) - { - if (!ImGui::BeginPopupContextItem()) - return; - - char buf[256]; - sprintf(buf, "Save %s", doc->Name); - if (ImGui::MenuItem(buf, "CTRL+S", false, doc->Open)) - doc->DoSave(); - if (ImGui::MenuItem("Close", "CTRL+W", false, doc->Open)) - doc->DoQueueClose(); - ImGui::EndPopup(); - } -}; - -struct ExampleAppDocuments -{ - ImVector Documents; - - ExampleAppDocuments() - { - Documents.push_back(MyDocument("Lettuce", true, ImVec4(0.4f, 0.8f, 0.4f, 1.0f))); - Documents.push_back(MyDocument("Eggplant", true, ImVec4(0.8f, 0.5f, 1.0f, 1.0f))); - Documents.push_back(MyDocument("Carrot", true, ImVec4(1.0f, 0.8f, 0.5f, 1.0f))); - Documents.push_back(MyDocument("Tomato", false, ImVec4(1.0f, 0.3f, 0.4f, 1.0f))); - Documents.push_back(MyDocument("A Rather Long Title", false)); - Documents.push_back(MyDocument("Some Document", false)); - } -}; - -// [Optional] Notify the system of Tabs/Windows closure that happened outside the regular tab interface. -// If a tab has been closed programmatically (aka closed from another source such as the Checkbox() in the demo, -// as opposed to clicking on the regular tab closing button) and stops being submitted, it will take a frame for -// the tab bar to notice its absence. During this frame there will be a gap in the tab bar, and if the tab that has -// disappeared was the selected one, the tab bar will report no selected tab during the frame. This will effectively -// give the impression of a flicker for one frame. -// We call SetTabItemClosed() to manually notify the Tab Bar or Docking system of removed tabs to avoid this glitch. -// Note that this completely optional, and only affect tab bars with the ImGuiTabBarFlags_Reorderable flag. -static void NotifyOfDocumentsClosedElsewhere(ExampleAppDocuments& app) -{ - for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) - { - MyDocument* doc = &app.Documents[doc_n]; - if (!doc->Open && doc->OpenPrev) - ImGui::SetTabItemClosed(doc->Name); - doc->OpenPrev = doc->Open; - } -} - -void ShowExampleAppDocuments(bool* p_open) -{ - static ExampleAppDocuments app; - - // Options - static bool opt_reorderable = true; - static ImGuiTabBarFlags opt_fitting_flags = ImGuiTabBarFlags_FittingPolicyDefault_; - - bool window_contents_visible = ImGui::Begin("Example: Documents", p_open, ImGuiWindowFlags_MenuBar); - if (!window_contents_visible) - { - ImGui::End(); - return; - } - - // Menu - if (ImGui::BeginMenuBar()) - { - if (ImGui::BeginMenu("File")) - { - int open_count = 0; - for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) - open_count += app.Documents[doc_n].Open ? 1 : 0; - - if (ImGui::BeginMenu("Open", open_count < app.Documents.Size)) - { - for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) - { - MyDocument* doc = &app.Documents[doc_n]; - if (!doc->Open) - if (ImGui::MenuItem(doc->Name)) - doc->DoOpen(); - } - ImGui::EndMenu(); - } - if (ImGui::MenuItem("Close All Documents", NULL, false, open_count > 0)) - for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) - app.Documents[doc_n].DoQueueClose(); - if (ImGui::MenuItem("Exit", "Alt+F4")) {} - ImGui::EndMenu(); - } - ImGui::EndMenuBar(); - } - - // [Debug] List documents with one checkbox for each - for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) - { - MyDocument* doc = &app.Documents[doc_n]; - if (doc_n > 0) - ImGui::SameLine(); - ImGui::PushID(doc); - if (ImGui::Checkbox(doc->Name, &doc->Open)) - if (!doc->Open) - doc->DoForceClose(); - ImGui::PopID(); - } - - ImGui::Separator(); - - // Submit Tab Bar and Tabs - { - ImGuiTabBarFlags tab_bar_flags = (opt_fitting_flags) | (opt_reorderable ? ImGuiTabBarFlags_Reorderable : 0); - if (ImGui::BeginTabBar("##tabs", tab_bar_flags)) - { - if (opt_reorderable) - NotifyOfDocumentsClosedElsewhere(app); - - // [DEBUG] Stress tests - //if ((ImGui::GetFrameCount() % 30) == 0) docs[1].Open ^= 1; // [DEBUG] Automatically show/hide a tab. Test various interactions e.g. dragging with this on. - //if (ImGui::GetIO().KeyCtrl) ImGui::SetTabItemSelected(docs[1].Name); // [DEBUG] Test SetTabItemSelected(), probably not very useful as-is anyway.. - - // Submit Tabs - for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) - { - MyDocument* doc = &app.Documents[doc_n]; - if (!doc->Open) - continue; - - ImGuiTabItemFlags tab_flags = (doc->Dirty ? ImGuiTabItemFlags_UnsavedDocument : 0); - bool visible = ImGui::BeginTabItem(doc->Name, &doc->Open, tab_flags); - - // Cancel attempt to close when unsaved add to save queue so we can display a popup. - if (!doc->Open && doc->Dirty) - { - doc->Open = true; - doc->DoQueueClose(); - } - - MyDocument::DisplayContextMenu(doc); - if (visible) - { - MyDocument::DisplayContents(doc); - ImGui::EndTabItem(); - } - } - - ImGui::EndTabBar(); - } - } - - // Update closing queue - static ImVector close_queue; - if (close_queue.empty()) - { - // Close queue is locked once we started a popup - for (int doc_n = 0; doc_n < app.Documents.Size; doc_n++) - { - MyDocument* doc = &app.Documents[doc_n]; - if (doc->WantClose) - { - doc->WantClose = false; - close_queue.push_back(doc); - } - } - } - - // Display closing confirmation UI - if (!close_queue.empty()) - { - int close_queue_unsaved_documents = 0; - for (int n = 0; n < close_queue.Size; n++) - if (close_queue[n]->Dirty) - close_queue_unsaved_documents++; - - if (close_queue_unsaved_documents == 0) - { - // Close documents when all are unsaved - for (int n = 0; n < close_queue.Size; n++) - close_queue[n]->DoForceClose(); - close_queue.clear(); - } - else - { - if (!ImGui::IsPopupOpen("Save?")) - ImGui::OpenPopup("Save?"); - if (ImGui::BeginPopupModal("Save?", NULL, ImGuiWindowFlags_AlwaysAutoResize)) - { - ImGui::Text("Save change to the following items?"); - float item_height = ImGui::GetTextLineHeightWithSpacing(); - if (ImGui::BeginChildFrame(ImGui::GetID("frame"), ImVec2(-FLT_MIN, 6.25f * item_height))) - { - for (int n = 0; n < close_queue.Size; n++) - if (close_queue[n]->Dirty) - ImGui::Text("%s", close_queue[n]->Name); - ImGui::EndChildFrame(); - } - - ImVec2 button_size(ImGui::GetFontSize() * 7.0f, 0.0f); - if (ImGui::Button("Yes", button_size)) - { - for (int n = 0; n < close_queue.Size; n++) - { - if (close_queue[n]->Dirty) - close_queue[n]->DoSave(); - close_queue[n]->DoForceClose(); - } - close_queue.clear(); - ImGui::CloseCurrentPopup(); - } - ImGui::SameLine(); - if (ImGui::Button("No", button_size)) - { - for (int n = 0; n < close_queue.Size; n++) - close_queue[n]->DoForceClose(); - close_queue.clear(); - ImGui::CloseCurrentPopup(); - } - ImGui::SameLine(); - if (ImGui::Button("Cancel", button_size)) - { - close_queue.clear(); - ImGui::CloseCurrentPopup(); - } - ImGui::EndPopup(); - } - } - } - - ImGui::End(); -} - -// End of Demo code -#else - -void ImGui::ShowAboutWindow(bool*) {} -void ImGui::ShowDemoWindow(bool*) {} -void ImGui::ShowUserGuide() {} -void ImGui::ShowStyleEditor(ImGuiStyle*) {} - -#endif - -#endif // #ifndef IMGUI_DISABLE diff --git a/third_party/imgui/imgui_draw.cpp b/third_party/imgui/imgui_draw.cpp deleted file mode 100644 index 30cb78e9..00000000 --- a/third_party/imgui/imgui_draw.cpp +++ /dev/null @@ -1,3970 +0,0 @@ -// dear imgui, v1.82 WIP -// (drawing and font code) - -/* - -Index of this file: - -// [SECTION] STB libraries implementation -// [SECTION] Style functions -// [SECTION] ImDrawList -// [SECTION] ImDrawListSplitter -// [SECTION] ImDrawData -// [SECTION] Helpers ShadeVertsXXX functions -// [SECTION] ImFontConfig -// [SECTION] ImFontAtlas -// [SECTION] ImFontAtlas glyph ranges helpers -// [SECTION] ImFontGlyphRangesBuilder -// [SECTION] ImFont -// [SECTION] ImGui Internal Render Helpers -// [SECTION] Decompression code -// [SECTION] Default font data (ProggyClean.ttf) - -*/ - -#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) -#define _CRT_SECURE_NO_WARNINGS -#endif - -#include "imgui.h" -#ifndef IMGUI_DISABLE - -#ifndef IMGUI_DEFINE_MATH_OPERATORS -#define IMGUI_DEFINE_MATH_OPERATORS -#endif - -#include "imgui_internal.h" -#ifdef IMGUI_ENABLE_FREETYPE -#include "misc/freetype/imgui_freetype.h" -#endif - -#include // vsnprintf, sscanf, printf -#if !defined(alloca) -#if defined(__GLIBC__) || defined(__sun) || defined(__APPLE__) || defined(__NEWLIB__) -#include // alloca (glibc uses . Note that Cygwin may have _WIN32 defined, so the order matters here) -#elif defined(_WIN32) -#include // alloca -#if !defined(alloca) -#define alloca _alloca // for clang with MS Codegen -#endif -#else -#include // alloca -#endif -#endif - -// Visual Studio warnings -#ifdef _MSC_VER -#pragma warning (disable: 4127) // condition expression is constant -#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#endif - -// Clang/GCC warnings with -Weverything -#if defined(__clang__) -#if __has_warning("-Wunknown-warning-option") -#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! -#endif -#if __has_warning("-Walloca") -#pragma clang diagnostic ignored "-Walloca" // warning: use of function '__builtin_alloca' is discouraged -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' -#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. -#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok. -#pragma clang diagnostic ignored "-Wglobal-constructors" // warning: declaration requires a global destructor // similar to above, not sure what the exact difference is. -#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness -#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 -#pragma clang diagnostic ignored "-Wcomma" // warning: possible misuse of comma operator here -#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning: macro name is a reserved identifier -#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. -#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision -#elif defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used -#pragma GCC diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function -#pragma GCC diagnostic ignored "-Wconversion" // warning: conversion to 'xxxx' from 'xxxx' may alter its value -#pragma GCC diagnostic ignored "-Wstack-protector" // warning: stack protector not protecting local variables: variable length buffer -#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead -#endif - -//------------------------------------------------------------------------- -// [SECTION] STB libraries implementation -//------------------------------------------------------------------------- - -// Compile time options: -//#define IMGUI_STB_NAMESPACE ImStb -//#define IMGUI_STB_TRUETYPE_FILENAME "my_folder/stb_truetype.h" -//#define IMGUI_STB_RECT_PACK_FILENAME "my_folder/stb_rect_pack.h" -//#define IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION -//#define IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION - -#ifdef IMGUI_STB_NAMESPACE -namespace IMGUI_STB_NAMESPACE -{ -#endif - -#ifdef _MSC_VER -#pragma warning (push) -#pragma warning (disable: 4456) // declaration of 'xx' hides previous local declaration -#endif - -#if defined(__clang__) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wunused-function" -#pragma clang diagnostic ignored "-Wmissing-prototypes" -#pragma clang diagnostic ignored "-Wimplicit-fallthrough" -#pragma clang diagnostic ignored "-Wcast-qual" // warning: cast from 'const xxxx *' to 'xxx *' drops const qualifier -#endif - -#if defined(__GNUC__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wtype-limits" // warning: comparison is always true due to limited range of data type [-Wtype-limits] -#pragma GCC diagnostic ignored "-Wcast-qual" // warning: cast from type 'const xxxx *' to type 'xxxx *' casts away qualifiers -#endif - -#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) -#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in another compilation unit -#define STBRP_STATIC -#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) -#define STBRP_SORT ImQsort -#define STB_RECT_PACK_IMPLEMENTATION -#endif -#ifdef IMGUI_STB_RECT_PACK_FILENAME -#include IMGUI_STB_RECT_PACK_FILENAME -#else -#include "imstb_rectpack.h" -#endif -#endif - -#ifdef IMGUI_ENABLE_STB_TRUETYPE -#ifndef STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) -#ifndef IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATION // in case the user already have an implementation in another compilation unit -#define STBTT_malloc(x,u) ((void)(u), IM_ALLOC(x)) -#define STBTT_free(x,u) ((void)(u), IM_FREE(x)) -#define STBTT_assert(x) do { IM_ASSERT(x); } while(0) -#define STBTT_fmod(x,y) ImFmod(x,y) -#define STBTT_sqrt(x) ImSqrt(x) -#define STBTT_pow(x,y) ImPow(x,y) -#define STBTT_fabs(x) ImFabs(x) -#define STBTT_ifloor(x) ((int)ImFloorStd(x)) -#define STBTT_iceil(x) ((int)ImCeil(x)) -#define STBTT_STATIC -#define STB_TRUETYPE_IMPLEMENTATION -#else -#define STBTT_DEF extern -#endif -#ifdef IMGUI_STB_TRUETYPE_FILENAME -#include IMGUI_STB_TRUETYPE_FILENAME -#else -#include "imstb_truetype.h" -#endif -#endif -#endif // IMGUI_ENABLE_STB_TRUETYPE - -#if defined(__GNUC__) -#pragma GCC diagnostic pop -#endif - -#if defined(__clang__) -#pragma clang diagnostic pop -#endif - -#if defined(_MSC_VER) -#pragma warning (pop) -#endif - -#ifdef IMGUI_STB_NAMESPACE -} // namespace ImStb -using namespace IMGUI_STB_NAMESPACE; -#endif - -//----------------------------------------------------------------------------- -// [SECTION] Style functions -//----------------------------------------------------------------------------- - -void ImGui::StyleColorsDark(ImGuiStyle* dst) -{ - ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); - ImVec4* colors = style->Colors; - - colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); - colors[ImGuiCol_TextDisabled] = ImVec4(0.50f, 0.50f, 0.50f, 1.00f); - colors[ImGuiCol_WindowBg] = ImVec4(0.06f, 0.06f, 0.06f, 0.94f); - colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_PopupBg] = ImVec4(0.08f, 0.08f, 0.08f, 0.94f); - colors[ImGuiCol_Border] = ImVec4(0.43f, 0.43f, 0.50f, 0.50f); - colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_FrameBg] = ImVec4(0.16f, 0.29f, 0.48f, 0.54f); - colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); - colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); - colors[ImGuiCol_TitleBg] = ImVec4(0.04f, 0.04f, 0.04f, 1.00f); - colors[ImGuiCol_TitleBgActive] = ImVec4(0.16f, 0.29f, 0.48f, 1.00f); - colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.00f, 0.00f, 0.00f, 0.51f); - colors[ImGuiCol_MenuBarBg] = ImVec4(0.14f, 0.14f, 0.14f, 1.00f); - colors[ImGuiCol_ScrollbarBg] = ImVec4(0.02f, 0.02f, 0.02f, 0.53f); - colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.31f, 0.31f, 0.31f, 1.00f); - colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.41f, 0.41f, 0.41f, 1.00f); - colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.51f, 0.51f, 0.51f, 1.00f); - colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); - colors[ImGuiCol_SliderGrab] = ImVec4(0.24f, 0.52f, 0.88f, 1.00f); - colors[ImGuiCol_SliderGrabActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); - colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); - colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); - colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); - colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); - colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); - colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); - colors[ImGuiCol_Separator] = colors[ImGuiCol_Border]; - colors[ImGuiCol_SeparatorHovered] = ImVec4(0.10f, 0.40f, 0.75f, 0.78f); - colors[ImGuiCol_SeparatorActive] = ImVec4(0.10f, 0.40f, 0.75f, 1.00f); - colors[ImGuiCol_ResizeGrip] = ImVec4(0.26f, 0.59f, 0.98f, 0.20f); - colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); - colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); - colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); - colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; - colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); - colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); - colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); - colors[ImGuiCol_PlotLines] = ImVec4(0.61f, 0.61f, 0.61f, 1.00f); - colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); - colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); - colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); - colors[ImGuiCol_TableHeaderBg] = ImVec4(0.19f, 0.19f, 0.20f, 1.00f); - colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.35f, 1.00f); // Prefer using Alpha=1.0 here - colors[ImGuiCol_TableBorderLight] = ImVec4(0.23f, 0.23f, 0.25f, 1.00f); // Prefer using Alpha=1.0 here - colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.06f); - colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); - colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); - colors[ImGuiCol_NavHighlight] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); - colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); - colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); - colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f); -} - -void ImGui::StyleColorsClassic(ImGuiStyle* dst) -{ - ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); - ImVec4* colors = style->Colors; - - colors[ImGuiCol_Text] = ImVec4(0.90f, 0.90f, 0.90f, 1.00f); - colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); - colors[ImGuiCol_WindowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.85f); - colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_PopupBg] = ImVec4(0.11f, 0.11f, 0.14f, 0.92f); - colors[ImGuiCol_Border] = ImVec4(0.50f, 0.50f, 0.50f, 0.50f); - colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_FrameBg] = ImVec4(0.43f, 0.43f, 0.43f, 0.39f); - colors[ImGuiCol_FrameBgHovered] = ImVec4(0.47f, 0.47f, 0.69f, 0.40f); - colors[ImGuiCol_FrameBgActive] = ImVec4(0.42f, 0.41f, 0.64f, 0.69f); - colors[ImGuiCol_TitleBg] = ImVec4(0.27f, 0.27f, 0.54f, 0.83f); - colors[ImGuiCol_TitleBgActive] = ImVec4(0.32f, 0.32f, 0.63f, 0.87f); - colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.40f, 0.40f, 0.80f, 0.20f); - colors[ImGuiCol_MenuBarBg] = ImVec4(0.40f, 0.40f, 0.55f, 0.80f); - colors[ImGuiCol_ScrollbarBg] = ImVec4(0.20f, 0.25f, 0.30f, 0.60f); - colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.40f, 0.40f, 0.80f, 0.30f); - colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.40f, 0.40f, 0.80f, 0.40f); - colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); - colors[ImGuiCol_CheckMark] = ImVec4(0.90f, 0.90f, 0.90f, 0.50f); - colors[ImGuiCol_SliderGrab] = ImVec4(1.00f, 1.00f, 1.00f, 0.30f); - colors[ImGuiCol_SliderGrabActive] = ImVec4(0.41f, 0.39f, 0.80f, 0.60f); - colors[ImGuiCol_Button] = ImVec4(0.35f, 0.40f, 0.61f, 0.62f); - colors[ImGuiCol_ButtonHovered] = ImVec4(0.40f, 0.48f, 0.71f, 0.79f); - colors[ImGuiCol_ButtonActive] = ImVec4(0.46f, 0.54f, 0.80f, 1.00f); - colors[ImGuiCol_Header] = ImVec4(0.40f, 0.40f, 0.90f, 0.45f); - colors[ImGuiCol_HeaderHovered] = ImVec4(0.45f, 0.45f, 0.90f, 0.80f); - colors[ImGuiCol_HeaderActive] = ImVec4(0.53f, 0.53f, 0.87f, 0.80f); - colors[ImGuiCol_Separator] = ImVec4(0.50f, 0.50f, 0.50f, 0.60f); - colors[ImGuiCol_SeparatorHovered] = ImVec4(0.60f, 0.60f, 0.70f, 1.00f); - colors[ImGuiCol_SeparatorActive] = ImVec4(0.70f, 0.70f, 0.90f, 1.00f); - colors[ImGuiCol_ResizeGrip] = ImVec4(1.00f, 1.00f, 1.00f, 0.10f); - colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.78f, 0.82f, 1.00f, 0.60f); - colors[ImGuiCol_ResizeGripActive] = ImVec4(0.78f, 0.82f, 1.00f, 0.90f); - colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.80f); - colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; - colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); - colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); - colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); - colors[ImGuiCol_PlotLines] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); - colors[ImGuiCol_PlotLinesHovered] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); - colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); - colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.60f, 0.00f, 1.00f); - colors[ImGuiCol_TableHeaderBg] = ImVec4(0.27f, 0.27f, 0.38f, 1.00f); - colors[ImGuiCol_TableBorderStrong] = ImVec4(0.31f, 0.31f, 0.45f, 1.00f); // Prefer using Alpha=1.0 here - colors[ImGuiCol_TableBorderLight] = ImVec4(0.26f, 0.26f, 0.28f, 1.00f); // Prefer using Alpha=1.0 here - colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_TableRowBgAlt] = ImVec4(1.00f, 1.00f, 1.00f, 0.07f); - colors[ImGuiCol_TextSelectedBg] = ImVec4(0.00f, 0.00f, 1.00f, 0.35f); - colors[ImGuiCol_DragDropTarget] = ImVec4(1.00f, 1.00f, 0.00f, 0.90f); - colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; - colors[ImGuiCol_NavWindowingHighlight] = ImVec4(1.00f, 1.00f, 1.00f, 0.70f); - colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f); - colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); -} - -// Those light colors are better suited with a thicker font than the default one + FrameBorder -void ImGui::StyleColorsLight(ImGuiStyle* dst) -{ - ImGuiStyle* style = dst ? dst : &ImGui::GetStyle(); - ImVec4* colors = style->Colors; - - colors[ImGuiCol_Text] = ImVec4(0.00f, 0.00f, 0.00f, 1.00f); - colors[ImGuiCol_TextDisabled] = ImVec4(0.60f, 0.60f, 0.60f, 1.00f); - colors[ImGuiCol_WindowBg] = ImVec4(0.94f, 0.94f, 0.94f, 1.00f); - colors[ImGuiCol_ChildBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_PopupBg] = ImVec4(1.00f, 1.00f, 1.00f, 0.98f); - colors[ImGuiCol_Border] = ImVec4(0.00f, 0.00f, 0.00f, 0.30f); - colors[ImGuiCol_BorderShadow] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_FrameBg] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f); - colors[ImGuiCol_FrameBgHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); - colors[ImGuiCol_FrameBgActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); - colors[ImGuiCol_TitleBg] = ImVec4(0.96f, 0.96f, 0.96f, 1.00f); - colors[ImGuiCol_TitleBgActive] = ImVec4(0.82f, 0.82f, 0.82f, 1.00f); - colors[ImGuiCol_TitleBgCollapsed] = ImVec4(1.00f, 1.00f, 1.00f, 0.51f); - colors[ImGuiCol_MenuBarBg] = ImVec4(0.86f, 0.86f, 0.86f, 1.00f); - colors[ImGuiCol_ScrollbarBg] = ImVec4(0.98f, 0.98f, 0.98f, 0.53f); - colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.69f, 0.69f, 0.69f, 0.80f); - colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.49f, 0.49f, 0.49f, 0.80f); - colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.49f, 0.49f, 0.49f, 1.00f); - colors[ImGuiCol_CheckMark] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); - colors[ImGuiCol_SliderGrab] = ImVec4(0.26f, 0.59f, 0.98f, 0.78f); - colors[ImGuiCol_SliderGrabActive] = ImVec4(0.46f, 0.54f, 0.80f, 0.60f); - colors[ImGuiCol_Button] = ImVec4(0.26f, 0.59f, 0.98f, 0.40f); - colors[ImGuiCol_ButtonHovered] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); - colors[ImGuiCol_ButtonActive] = ImVec4(0.06f, 0.53f, 0.98f, 1.00f); - colors[ImGuiCol_Header] = ImVec4(0.26f, 0.59f, 0.98f, 0.31f); - colors[ImGuiCol_HeaderHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.80f); - colors[ImGuiCol_HeaderActive] = ImVec4(0.26f, 0.59f, 0.98f, 1.00f); - colors[ImGuiCol_Separator] = ImVec4(0.39f, 0.39f, 0.39f, 0.62f); - colors[ImGuiCol_SeparatorHovered] = ImVec4(0.14f, 0.44f, 0.80f, 0.78f); - colors[ImGuiCol_SeparatorActive] = ImVec4(0.14f, 0.44f, 0.80f, 1.00f); - colors[ImGuiCol_ResizeGrip] = ImVec4(0.35f, 0.35f, 0.35f, 0.17f); - colors[ImGuiCol_ResizeGripHovered] = ImVec4(0.26f, 0.59f, 0.98f, 0.67f); - colors[ImGuiCol_ResizeGripActive] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); - colors[ImGuiCol_Tab] = ImLerp(colors[ImGuiCol_Header], colors[ImGuiCol_TitleBgActive], 0.90f); - colors[ImGuiCol_TabHovered] = colors[ImGuiCol_HeaderHovered]; - colors[ImGuiCol_TabActive] = ImLerp(colors[ImGuiCol_HeaderActive], colors[ImGuiCol_TitleBgActive], 0.60f); - colors[ImGuiCol_TabUnfocused] = ImLerp(colors[ImGuiCol_Tab], colors[ImGuiCol_TitleBg], 0.80f); - colors[ImGuiCol_TabUnfocusedActive] = ImLerp(colors[ImGuiCol_TabActive], colors[ImGuiCol_TitleBg], 0.40f); - colors[ImGuiCol_PlotLines] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f); - colors[ImGuiCol_PlotLinesHovered] = ImVec4(1.00f, 0.43f, 0.35f, 1.00f); - colors[ImGuiCol_PlotHistogram] = ImVec4(0.90f, 0.70f, 0.00f, 1.00f); - colors[ImGuiCol_PlotHistogramHovered] = ImVec4(1.00f, 0.45f, 0.00f, 1.00f); - colors[ImGuiCol_TableHeaderBg] = ImVec4(0.78f, 0.87f, 0.98f, 1.00f); - colors[ImGuiCol_TableBorderStrong] = ImVec4(0.57f, 0.57f, 0.64f, 1.00f); // Prefer using Alpha=1.0 here - colors[ImGuiCol_TableBorderLight] = ImVec4(0.68f, 0.68f, 0.74f, 1.00f); // Prefer using Alpha=1.0 here - colors[ImGuiCol_TableRowBg] = ImVec4(0.00f, 0.00f, 0.00f, 0.00f); - colors[ImGuiCol_TableRowBgAlt] = ImVec4(0.30f, 0.30f, 0.30f, 0.09f); - colors[ImGuiCol_TextSelectedBg] = ImVec4(0.26f, 0.59f, 0.98f, 0.35f); - colors[ImGuiCol_DragDropTarget] = ImVec4(0.26f, 0.59f, 0.98f, 0.95f); - colors[ImGuiCol_NavHighlight] = colors[ImGuiCol_HeaderHovered]; - colors[ImGuiCol_NavWindowingHighlight] = ImVec4(0.70f, 0.70f, 0.70f, 0.70f); - colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.20f); - colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f); -} - -//----------------------------------------------------------------------------- -// [SECTION] ImDrawList -//----------------------------------------------------------------------------- - -ImDrawListSharedData::ImDrawListSharedData() -{ - memset(this, 0, sizeof(*this)); - for (int i = 0; i < IM_ARRAYSIZE(ArcFastVtx); i++) - { - const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(ArcFastVtx); - ArcFastVtx[i] = ImVec2(ImCos(a), ImSin(a)); - } -} - -void ImDrawListSharedData::SetCircleTessellationMaxError(float max_error) -{ - if (CircleSegmentMaxError == max_error) - return; - CircleSegmentMaxError = max_error; - for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) - { - const float radius = (float)i; - CircleSegmentCounts[i] = (ImU8)((i > 0) ? IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, CircleSegmentMaxError) : 0); - } -} - -// Initialize before use in a new frame. We always have a command ready in the buffer. -void ImDrawList::_ResetForNewFrame() -{ - // Verify that the ImDrawCmd fields we want to memcmp() are contiguous in memory. - // (those should be IM_STATIC_ASSERT() in theory but with our pre C++11 setup the whole check doesn't compile with GCC) - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, TextureId) == sizeof(ImVec4)); - IM_ASSERT(IM_OFFSETOF(ImDrawCmd, VtxOffset) == sizeof(ImVec4) + sizeof(ImTextureID)); - - CmdBuffer.resize(0); - IdxBuffer.resize(0); - VtxBuffer.resize(0); - Flags = _Data->InitialFlags; - memset(&_CmdHeader, 0, sizeof(_CmdHeader)); - _VtxCurrentIdx = 0; - _VtxWritePtr = NULL; - _IdxWritePtr = NULL; - _ClipRectStack.resize(0); - _TextureIdStack.resize(0); - _Path.resize(0); - _Splitter.Clear(); - CmdBuffer.push_back(ImDrawCmd()); - _FringeScale = 1.0f; -} - -void ImDrawList::_ClearFreeMemory() -{ - CmdBuffer.clear(); - IdxBuffer.clear(); - VtxBuffer.clear(); - Flags = ImDrawListFlags_None; - _VtxCurrentIdx = 0; - _VtxWritePtr = NULL; - _IdxWritePtr = NULL; - _ClipRectStack.clear(); - _TextureIdStack.clear(); - _Path.clear(); - _Splitter.ClearFreeMemory(); -} - -ImDrawList* ImDrawList::CloneOutput() const -{ - ImDrawList* dst = IM_NEW(ImDrawList(_Data)); - dst->CmdBuffer = CmdBuffer; - dst->IdxBuffer = IdxBuffer; - dst->VtxBuffer = VtxBuffer; - dst->Flags = Flags; - return dst; -} - -void ImDrawList::AddDrawCmd() -{ - ImDrawCmd draw_cmd; - draw_cmd.ClipRect = _CmdHeader.ClipRect; // Same as calling ImDrawCmd_HeaderCopy() - draw_cmd.TextureId = _CmdHeader.TextureId; - draw_cmd.VtxOffset = _CmdHeader.VtxOffset; - draw_cmd.IdxOffset = IdxBuffer.Size; - - IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w); - CmdBuffer.push_back(draw_cmd); -} - -// Pop trailing draw command (used before merging or presenting to user) -// Note that this leaves the ImDrawList in a state unfit for further commands, as most code assume that CmdBuffer.Size > 0 && CmdBuffer.back().UserCallback == NULL -void ImDrawList::_PopUnusedDrawCmd() -{ - if (CmdBuffer.Size == 0) - return; - ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; - if (curr_cmd->ElemCount == 0 && curr_cmd->UserCallback == NULL) - CmdBuffer.pop_back(); -} - -void ImDrawList::AddCallback(ImDrawCallback callback, void* callback_data) -{ - ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; - IM_ASSERT(curr_cmd->UserCallback == NULL); - if (curr_cmd->ElemCount != 0) - { - AddDrawCmd(); - curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; - } - curr_cmd->UserCallback = callback; - curr_cmd->UserCallbackData = callback_data; - - AddDrawCmd(); // Force a new command after us (see comment below) -} - -// Compare ClipRect, TextureId and VtxOffset with a single memcmp() -#define ImDrawCmd_HeaderSize (IM_OFFSETOF(ImDrawCmd, VtxOffset) + sizeof(unsigned int)) -#define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset -#define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureId, VtxOffset - -// Our scheme may appears a bit unusual, basically we want the most-common calls AddLine AddRect etc. to not have to perform any check so we always have a command ready in the stack. -// The cost of figuring out if a new command has to be added or if we can merge is paid in those Update** functions only. -void ImDrawList::_OnChangedClipRect() -{ - // If current command is used with different settings we need to add a new command - ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; - if (curr_cmd->ElemCount != 0 && memcmp(&curr_cmd->ClipRect, &_CmdHeader.ClipRect, sizeof(ImVec4)) != 0) - { - AddDrawCmd(); - return; - } - IM_ASSERT(curr_cmd->UserCallback == NULL); - - // Try to merge with previous command if it matches, else use current command - ImDrawCmd* prev_cmd = curr_cmd - 1; - if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && prev_cmd->UserCallback == NULL) - { - CmdBuffer.pop_back(); - return; - } - - curr_cmd->ClipRect = _CmdHeader.ClipRect; -} - -void ImDrawList::_OnChangedTextureID() -{ - // If current command is used with different settings we need to add a new command - ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; - if (curr_cmd->ElemCount != 0 && curr_cmd->TextureId != _CmdHeader.TextureId) - { - AddDrawCmd(); - return; - } - IM_ASSERT(curr_cmd->UserCallback == NULL); - - // Try to merge with previous command if it matches, else use current command - ImDrawCmd* prev_cmd = curr_cmd - 1; - if (curr_cmd->ElemCount == 0 && CmdBuffer.Size > 1 && ImDrawCmd_HeaderCompare(&_CmdHeader, prev_cmd) == 0 && prev_cmd->UserCallback == NULL) - { - CmdBuffer.pop_back(); - return; - } - - curr_cmd->TextureId = _CmdHeader.TextureId; -} - -void ImDrawList::_OnChangedVtxOffset() -{ - // We don't need to compare curr_cmd->VtxOffset != _CmdHeader.VtxOffset because we know it'll be different at the time we call this. - _VtxCurrentIdx = 0; - ImDrawCmd* curr_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; - //IM_ASSERT(curr_cmd->VtxOffset != _CmdHeader.VtxOffset); // See #3349 - if (curr_cmd->ElemCount != 0) - { - AddDrawCmd(); - return; - } - IM_ASSERT(curr_cmd->UserCallback == NULL); - curr_cmd->VtxOffset = _CmdHeader.VtxOffset; -} - -int ImDrawList::_CalcCircleAutoSegmentCount(float radius) const -{ - // Automatic segment count - const int radius_idx = (int)(radius + 0.999f); // ceil to never reduce accuracy - if (radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts)) - return _Data->CircleSegmentCounts[radius_idx]; // Use cached value - else - return IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(radius, _Data->CircleSegmentMaxError); -} - -// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) -void ImDrawList::PushClipRect(ImVec2 cr_min, ImVec2 cr_max, bool intersect_with_current_clip_rect) -{ - ImVec4 cr(cr_min.x, cr_min.y, cr_max.x, cr_max.y); - if (intersect_with_current_clip_rect) - { - ImVec4 current = _CmdHeader.ClipRect; - if (cr.x < current.x) cr.x = current.x; - if (cr.y < current.y) cr.y = current.y; - if (cr.z > current.z) cr.z = current.z; - if (cr.w > current.w) cr.w = current.w; - } - cr.z = ImMax(cr.x, cr.z); - cr.w = ImMax(cr.y, cr.w); - - _ClipRectStack.push_back(cr); - _CmdHeader.ClipRect = cr; - _OnChangedClipRect(); -} - -void ImDrawList::PushClipRectFullScreen() -{ - PushClipRect(ImVec2(_Data->ClipRectFullscreen.x, _Data->ClipRectFullscreen.y), ImVec2(_Data->ClipRectFullscreen.z, _Data->ClipRectFullscreen.w)); -} - -void ImDrawList::PopClipRect() -{ - _ClipRectStack.pop_back(); - _CmdHeader.ClipRect = (_ClipRectStack.Size == 0) ? _Data->ClipRectFullscreen : _ClipRectStack.Data[_ClipRectStack.Size - 1]; - _OnChangedClipRect(); -} - -void ImDrawList::PushTextureID(ImTextureID texture_id) -{ - _TextureIdStack.push_back(texture_id); - _CmdHeader.TextureId = texture_id; - _OnChangedTextureID(); -} - -void ImDrawList::PopTextureID() -{ - _TextureIdStack.pop_back(); - _CmdHeader.TextureId = (_TextureIdStack.Size == 0) ? (ImTextureID)NULL : _TextureIdStack.Data[_TextureIdStack.Size - 1]; - _OnChangedTextureID(); -} - -// Reserve space for a number of vertices and indices. -// You must finish filling your reserved data before calling PrimReserve() again, as it may reallocate or -// submit the intermediate results. PrimUnreserve() can be used to release unused allocations. -void ImDrawList::PrimReserve(int idx_count, int vtx_count) -{ - // Large mesh support (when enabled) - IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); - if (sizeof(ImDrawIdx) == 2 && (_VtxCurrentIdx + vtx_count >= (1 << 16)) && (Flags & ImDrawListFlags_AllowVtxOffset)) - { - // FIXME: In theory we should be testing that vtx_count <64k here. - // In practice, RenderText() relies on reserving ahead for a worst case scenario so it is currently useful for us - // to not make that check until we rework the text functions to handle clipping and large horizontal lines better. - _CmdHeader.VtxOffset = VtxBuffer.Size; - _OnChangedVtxOffset(); - } - - ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; - draw_cmd->ElemCount += idx_count; - - int vtx_buffer_old_size = VtxBuffer.Size; - VtxBuffer.resize(vtx_buffer_old_size + vtx_count); - _VtxWritePtr = VtxBuffer.Data + vtx_buffer_old_size; - - int idx_buffer_old_size = IdxBuffer.Size; - IdxBuffer.resize(idx_buffer_old_size + idx_count); - _IdxWritePtr = IdxBuffer.Data + idx_buffer_old_size; -} - -// Release the a number of reserved vertices/indices from the end of the last reservation made with PrimReserve(). -void ImDrawList::PrimUnreserve(int idx_count, int vtx_count) -{ - IM_ASSERT_PARANOID(idx_count >= 0 && vtx_count >= 0); - - ImDrawCmd* draw_cmd = &CmdBuffer.Data[CmdBuffer.Size - 1]; - draw_cmd->ElemCount -= idx_count; - VtxBuffer.shrink(VtxBuffer.Size - vtx_count); - IdxBuffer.shrink(IdxBuffer.Size - idx_count); -} - -// Fully unrolled with inline call to keep our debug builds decently fast. -void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col) -{ - ImVec2 b(c.x, a.y), d(a.x, c.y), uv(_Data->TexUvWhitePixel); - ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; - _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); - _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); - _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; - _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col; - _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv; _VtxWritePtr[2].col = col; - _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv; _VtxWritePtr[3].col = col; - _VtxWritePtr += 4; - _VtxCurrentIdx += 4; - _IdxWritePtr += 6; -} - -void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_c, ImU32 col) -{ - ImVec2 b(c.x, a.y), d(a.x, c.y), uv_b(uv_c.x, uv_a.y), uv_d(uv_a.x, uv_c.y); - ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; - _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); - _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); - _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; - _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; - _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; - _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; - _VtxWritePtr += 4; - _VtxCurrentIdx += 4; - _IdxWritePtr += 6; -} - -void ImDrawList::PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col) -{ - ImDrawIdx idx = (ImDrawIdx)_VtxCurrentIdx; - _IdxWritePtr[0] = idx; _IdxWritePtr[1] = (ImDrawIdx)(idx+1); _IdxWritePtr[2] = (ImDrawIdx)(idx+2); - _IdxWritePtr[3] = idx; _IdxWritePtr[4] = (ImDrawIdx)(idx+2); _IdxWritePtr[5] = (ImDrawIdx)(idx+3); - _VtxWritePtr[0].pos = a; _VtxWritePtr[0].uv = uv_a; _VtxWritePtr[0].col = col; - _VtxWritePtr[1].pos = b; _VtxWritePtr[1].uv = uv_b; _VtxWritePtr[1].col = col; - _VtxWritePtr[2].pos = c; _VtxWritePtr[2].uv = uv_c; _VtxWritePtr[2].col = col; - _VtxWritePtr[3].pos = d; _VtxWritePtr[3].uv = uv_d; _VtxWritePtr[3].col = col; - _VtxWritePtr += 4; - _VtxCurrentIdx += 4; - _IdxWritePtr += 6; -} - -// On AddPolyline() and AddConvexPolyFilled() we intentionally avoid using ImVec2 and superfluous function calls to optimize debug/non-inlined builds. -// Those macros expects l-values. -#define IM_NORMALIZE2F_OVER_ZERO(VX,VY) do { float d2 = VX*VX + VY*VY; if (d2 > 0.0f) { float inv_len = 1.0f / ImSqrt(d2); VX *= inv_len; VY *= inv_len; } } while (0) -#define IM_FIXNORMAL2F(VX,VY) do { float d2 = VX*VX + VY*VY; if (d2 < 0.5f) d2 = 0.5f; float inv_lensq = 1.0f / d2; VX *= inv_lensq; VY *= inv_lensq; } while (0) - -// TODO: Thickness anti-aliased lines cap are missing their AA fringe. -// We avoid using the ImVec2 math operators here to reduce cost to a minimum for debug/non-inlined builds. -void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, bool closed, float thickness) -{ - if (points_count < 2) - return; - - const ImVec2 opaque_uv = _Data->TexUvWhitePixel; - const int count = closed ? points_count : points_count - 1; // The number of line segments we need to draw - const bool thick_line = (thickness > _FringeScale); - - if (Flags & ImDrawListFlags_AntiAliasedLines) - { - // Anti-aliased stroke - const float AA_SIZE = _FringeScale; - const ImU32 col_trans = col & ~IM_COL32_A_MASK; - - // Thicknesses <1.0 should behave like thickness 1.0 - thickness = ImMax(thickness, 1.0f); - const int integer_thickness = (int)thickness; - const float fractional_thickness = thickness - integer_thickness; - - // Do we want to draw this line using a texture? - // - For now, only draw integer-width lines using textures to avoid issues with the way scaling occurs, could be improved. - // - If AA_SIZE is not 1.0f we cannot use the texture path. - const bool use_texture = (Flags & ImDrawListFlags_AntiAliasedLinesUseTex) && (integer_thickness < IM_DRAWLIST_TEX_LINES_WIDTH_MAX) && (fractional_thickness <= 0.00001f) && (AA_SIZE == 1.0f); - - // We should never hit this, because NewFrame() doesn't set ImDrawListFlags_AntiAliasedLinesUseTex unless ImFontAtlasFlags_NoBakedLines is off - IM_ASSERT_PARANOID(!use_texture || !(_Data->Font->ContainerAtlas->Flags & ImFontAtlasFlags_NoBakedLines)); - - const int idx_count = use_texture ? (count * 6) : (thick_line ? count * 18 : count * 12); - const int vtx_count = use_texture ? (points_count * 2) : (thick_line ? points_count * 4 : points_count * 3); - PrimReserve(idx_count, vtx_count); - - // Temporary buffer - // The first items are normals at each line point, then after that there are either 2 or 4 temp points for each line point - ImVec2* temp_normals = (ImVec2*)alloca(points_count * ((use_texture || !thick_line) ? 3 : 5) * sizeof(ImVec2)); //-V630 - ImVec2* temp_points = temp_normals + points_count; - - // Calculate normals (tangents) for each line segment - for (int i1 = 0; i1 < count; i1++) - { - const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; - float dx = points[i2].x - points[i1].x; - float dy = points[i2].y - points[i1].y; - IM_NORMALIZE2F_OVER_ZERO(dx, dy); - temp_normals[i1].x = dy; - temp_normals[i1].y = -dx; - } - if (!closed) - temp_normals[points_count - 1] = temp_normals[points_count - 2]; - - // If we are drawing a one-pixel-wide line without a texture, or a textured line of any width, we only need 2 or 3 vertices per point - if (use_texture || !thick_line) - { - // [PATH 1] Texture-based lines (thick or non-thick) - // [PATH 2] Non texture-based lines (non-thick) - - // The width of the geometry we need to draw - this is essentially pixels for the line itself, plus "one pixel" for AA. - // - In the texture-based path, we don't use AA_SIZE here because the +1 is tied to the generated texture - // (see ImFontAtlasBuildRenderLinesTexData() function), and so alternate values won't work without changes to that code. - // - In the non texture-based paths, we would allow AA_SIZE to potentially be != 1.0f with a patch (e.g. fringe_scale patch to - // allow scaling geometry while preserving one-screen-pixel AA fringe). - const float half_draw_size = use_texture ? ((thickness * 0.5f) + 1) : AA_SIZE; - - // If line is not closed, the first and last points need to be generated differently as there are no normals to blend - if (!closed) - { - temp_points[0] = points[0] + temp_normals[0] * half_draw_size; - temp_points[1] = points[0] - temp_normals[0] * half_draw_size; - temp_points[(points_count-1)*2+0] = points[points_count-1] + temp_normals[points_count-1] * half_draw_size; - temp_points[(points_count-1)*2+1] = points[points_count-1] - temp_normals[points_count-1] * half_draw_size; - } - - // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges - // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) - // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. - unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment - for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment - { - const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; // i2 is the second point of the line segment - const unsigned int idx2 = ((i1 + 1) == points_count) ? _VtxCurrentIdx : (idx1 + (use_texture ? 2 : 3)); // Vertex index for end of segment - - // Average normals - float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; - float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; - IM_FIXNORMAL2F(dm_x, dm_y); - dm_x *= half_draw_size; // dm_x, dm_y are offset to the outer edge of the AA area - dm_y *= half_draw_size; - - // Add temporary vertexes for the outer edges - ImVec2* out_vtx = &temp_points[i2 * 2]; - out_vtx[0].x = points[i2].x + dm_x; - out_vtx[0].y = points[i2].y + dm_y; - out_vtx[1].x = points[i2].x - dm_x; - out_vtx[1].y = points[i2].y - dm_y; - - if (use_texture) - { - // Add indices for two triangles - _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 1); // Right tri - _IdxWritePtr[3] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[4] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Left tri - _IdxWritePtr += 6; - } - else - { - // Add indexes for four triangles - _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); // Right tri 1 - _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 0); // Right tri 2 - _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); // Left tri 1 - _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); // Left tri 2 - _IdxWritePtr += 12; - } - - idx1 = idx2; - } - - // Add vertexes for each point on the line - if (use_texture) - { - // If we're using textures we only need to emit the left/right edge vertices - ImVec4 tex_uvs = _Data->TexUvLines[integer_thickness]; - /*if (fractional_thickness != 0.0f) // Currently always zero when use_texture==false! - { - const ImVec4 tex_uvs_1 = _Data->TexUvLines[integer_thickness + 1]; - tex_uvs.x = tex_uvs.x + (tex_uvs_1.x - tex_uvs.x) * fractional_thickness; // inlined ImLerp() - tex_uvs.y = tex_uvs.y + (tex_uvs_1.y - tex_uvs.y) * fractional_thickness; - tex_uvs.z = tex_uvs.z + (tex_uvs_1.z - tex_uvs.z) * fractional_thickness; - tex_uvs.w = tex_uvs.w + (tex_uvs_1.w - tex_uvs.w) * fractional_thickness; - }*/ - ImVec2 tex_uv0(tex_uvs.x, tex_uvs.y); - ImVec2 tex_uv1(tex_uvs.z, tex_uvs.w); - for (int i = 0; i < points_count; i++) - { - _VtxWritePtr[0].pos = temp_points[i * 2 + 0]; _VtxWritePtr[0].uv = tex_uv0; _VtxWritePtr[0].col = col; // Left-side outer edge - _VtxWritePtr[1].pos = temp_points[i * 2 + 1]; _VtxWritePtr[1].uv = tex_uv1; _VtxWritePtr[1].col = col; // Right-side outer edge - _VtxWritePtr += 2; - } - } - else - { - // If we're not using a texture, we need the center vertex as well - for (int i = 0; i < points_count; i++) - { - _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; // Center of line - _VtxWritePtr[1].pos = temp_points[i * 2 + 0]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col_trans; // Left-side outer edge - _VtxWritePtr[2].pos = temp_points[i * 2 + 1]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col_trans; // Right-side outer edge - _VtxWritePtr += 3; - } - } - } - else - { - // [PATH 2] Non texture-based lines (thick): we need to draw the solid line core and thus require four vertices per point - const float half_inner_thickness = (thickness - AA_SIZE) * 0.5f; - - // If line is not closed, the first and last points need to be generated differently as there are no normals to blend - if (!closed) - { - const int points_last = points_count - 1; - temp_points[0] = points[0] + temp_normals[0] * (half_inner_thickness + AA_SIZE); - temp_points[1] = points[0] + temp_normals[0] * (half_inner_thickness); - temp_points[2] = points[0] - temp_normals[0] * (half_inner_thickness); - temp_points[3] = points[0] - temp_normals[0] * (half_inner_thickness + AA_SIZE); - temp_points[points_last * 4 + 0] = points[points_last] + temp_normals[points_last] * (half_inner_thickness + AA_SIZE); - temp_points[points_last * 4 + 1] = points[points_last] + temp_normals[points_last] * (half_inner_thickness); - temp_points[points_last * 4 + 2] = points[points_last] - temp_normals[points_last] * (half_inner_thickness); - temp_points[points_last * 4 + 3] = points[points_last] - temp_normals[points_last] * (half_inner_thickness + AA_SIZE); - } - - // Generate the indices to form a number of triangles for each line segment, and the vertices for the line edges - // This takes points n and n+1 and writes into n+1, with the first point in a closed line being generated from the final one (as n+1 wraps) - // FIXME-OPT: Merge the different loops, possibly remove the temporary buffer. - unsigned int idx1 = _VtxCurrentIdx; // Vertex index for start of line segment - for (int i1 = 0; i1 < count; i1++) // i1 is the first point of the line segment - { - const int i2 = (i1 + 1) == points_count ? 0 : (i1 + 1); // i2 is the second point of the line segment - const unsigned int idx2 = (i1 + 1) == points_count ? _VtxCurrentIdx : (idx1 + 4); // Vertex index for end of segment - - // Average normals - float dm_x = (temp_normals[i1].x + temp_normals[i2].x) * 0.5f; - float dm_y = (temp_normals[i1].y + temp_normals[i2].y) * 0.5f; - IM_FIXNORMAL2F(dm_x, dm_y); - float dm_out_x = dm_x * (half_inner_thickness + AA_SIZE); - float dm_out_y = dm_y * (half_inner_thickness + AA_SIZE); - float dm_in_x = dm_x * half_inner_thickness; - float dm_in_y = dm_y * half_inner_thickness; - - // Add temporary vertices - ImVec2* out_vtx = &temp_points[i2 * 4]; - out_vtx[0].x = points[i2].x + dm_out_x; - out_vtx[0].y = points[i2].y + dm_out_y; - out_vtx[1].x = points[i2].x + dm_in_x; - out_vtx[1].y = points[i2].y + dm_in_y; - out_vtx[2].x = points[i2].x - dm_in_x; - out_vtx[2].y = points[i2].y - dm_in_y; - out_vtx[3].x = points[i2].x - dm_out_x; - out_vtx[3].y = points[i2].y - dm_out_y; - - // Add indexes - _IdxWritePtr[0] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[1] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[2] = (ImDrawIdx)(idx1 + 2); - _IdxWritePtr[3] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[4] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[5] = (ImDrawIdx)(idx2 + 1); - _IdxWritePtr[6] = (ImDrawIdx)(idx2 + 1); _IdxWritePtr[7] = (ImDrawIdx)(idx1 + 1); _IdxWritePtr[8] = (ImDrawIdx)(idx1 + 0); - _IdxWritePtr[9] = (ImDrawIdx)(idx1 + 0); _IdxWritePtr[10] = (ImDrawIdx)(idx2 + 0); _IdxWritePtr[11] = (ImDrawIdx)(idx2 + 1); - _IdxWritePtr[12] = (ImDrawIdx)(idx2 + 2); _IdxWritePtr[13] = (ImDrawIdx)(idx1 + 2); _IdxWritePtr[14] = (ImDrawIdx)(idx1 + 3); - _IdxWritePtr[15] = (ImDrawIdx)(idx1 + 3); _IdxWritePtr[16] = (ImDrawIdx)(idx2 + 3); _IdxWritePtr[17] = (ImDrawIdx)(idx2 + 2); - _IdxWritePtr += 18; - - idx1 = idx2; - } - - // Add vertices - for (int i = 0; i < points_count; i++) - { - _VtxWritePtr[0].pos = temp_points[i * 4 + 0]; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col_trans; - _VtxWritePtr[1].pos = temp_points[i * 4 + 1]; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; - _VtxWritePtr[2].pos = temp_points[i * 4 + 2]; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; - _VtxWritePtr[3].pos = temp_points[i * 4 + 3]; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col_trans; - _VtxWritePtr += 4; - } - } - _VtxCurrentIdx += (ImDrawIdx)vtx_count; - } - else - { - // [PATH 4] Non texture-based, Non anti-aliased lines - const int idx_count = count * 6; - const int vtx_count = count * 4; // FIXME-OPT: Not sharing edges - PrimReserve(idx_count, vtx_count); - - for (int i1 = 0; i1 < count; i1++) - { - const int i2 = (i1 + 1) == points_count ? 0 : i1 + 1; - const ImVec2& p1 = points[i1]; - const ImVec2& p2 = points[i2]; - - float dx = p2.x - p1.x; - float dy = p2.y - p1.y; - IM_NORMALIZE2F_OVER_ZERO(dx, dy); - dx *= (thickness * 0.5f); - dy *= (thickness * 0.5f); - - _VtxWritePtr[0].pos.x = p1.x + dy; _VtxWritePtr[0].pos.y = p1.y - dx; _VtxWritePtr[0].uv = opaque_uv; _VtxWritePtr[0].col = col; - _VtxWritePtr[1].pos.x = p2.x + dy; _VtxWritePtr[1].pos.y = p2.y - dx; _VtxWritePtr[1].uv = opaque_uv; _VtxWritePtr[1].col = col; - _VtxWritePtr[2].pos.x = p2.x - dy; _VtxWritePtr[2].pos.y = p2.y + dx; _VtxWritePtr[2].uv = opaque_uv; _VtxWritePtr[2].col = col; - _VtxWritePtr[3].pos.x = p1.x - dy; _VtxWritePtr[3].pos.y = p1.y + dx; _VtxWritePtr[3].uv = opaque_uv; _VtxWritePtr[3].col = col; - _VtxWritePtr += 4; - - _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + 2); - _IdxWritePtr[3] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[4] = (ImDrawIdx)(_VtxCurrentIdx + 2); _IdxWritePtr[5] = (ImDrawIdx)(_VtxCurrentIdx + 3); - _IdxWritePtr += 6; - _VtxCurrentIdx += 4; - } - } -} - -// We intentionally avoid using ImVec2 and its math operators here to reduce cost to a minimum for debug/non-inlined builds. -void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) -{ - if (points_count < 3) - return; - - const ImVec2 uv = _Data->TexUvWhitePixel; - - if (Flags & ImDrawListFlags_AntiAliasedFill) - { - // Anti-aliased Fill - const float AA_SIZE = _FringeScale; - const ImU32 col_trans = col & ~IM_COL32_A_MASK; - const int idx_count = (points_count - 2)*3 + points_count * 6; - const int vtx_count = (points_count * 2); - PrimReserve(idx_count, vtx_count); - - // Add indexes for fill - unsigned int vtx_inner_idx = _VtxCurrentIdx; - unsigned int vtx_outer_idx = _VtxCurrentIdx + 1; - for (int i = 2; i < points_count; i++) - { - _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + ((i - 1) << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_inner_idx + (i << 1)); - _IdxWritePtr += 3; - } - - // Compute normals - ImVec2* temp_normals = (ImVec2*)alloca(points_count * sizeof(ImVec2)); //-V630 - for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) - { - const ImVec2& p0 = points[i0]; - const ImVec2& p1 = points[i1]; - float dx = p1.x - p0.x; - float dy = p1.y - p0.y; - IM_NORMALIZE2F_OVER_ZERO(dx, dy); - temp_normals[i0].x = dy; - temp_normals[i0].y = -dx; - } - - for (int i0 = points_count - 1, i1 = 0; i1 < points_count; i0 = i1++) - { - // Average normals - const ImVec2& n0 = temp_normals[i0]; - const ImVec2& n1 = temp_normals[i1]; - float dm_x = (n0.x + n1.x) * 0.5f; - float dm_y = (n0.y + n1.y) * 0.5f; - IM_FIXNORMAL2F(dm_x, dm_y); - dm_x *= AA_SIZE * 0.5f; - dm_y *= AA_SIZE * 0.5f; - - // Add vertices - _VtxWritePtr[0].pos.x = (points[i1].x - dm_x); _VtxWritePtr[0].pos.y = (points[i1].y - dm_y); _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; // Inner - _VtxWritePtr[1].pos.x = (points[i1].x + dm_x); _VtxWritePtr[1].pos.y = (points[i1].y + dm_y); _VtxWritePtr[1].uv = uv; _VtxWritePtr[1].col = col_trans; // Outer - _VtxWritePtr += 2; - - // Add indexes for fringes - _IdxWritePtr[0] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); _IdxWritePtr[1] = (ImDrawIdx)(vtx_inner_idx + (i0 << 1)); _IdxWritePtr[2] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); - _IdxWritePtr[3] = (ImDrawIdx)(vtx_outer_idx + (i0 << 1)); _IdxWritePtr[4] = (ImDrawIdx)(vtx_outer_idx + (i1 << 1)); _IdxWritePtr[5] = (ImDrawIdx)(vtx_inner_idx + (i1 << 1)); - _IdxWritePtr += 6; - } - _VtxCurrentIdx += (ImDrawIdx)vtx_count; - } - else - { - // Non Anti-aliased Fill - const int idx_count = (points_count - 2)*3; - const int vtx_count = points_count; - PrimReserve(idx_count, vtx_count); - for (int i = 0; i < vtx_count; i++) - { - _VtxWritePtr[0].pos = points[i]; _VtxWritePtr[0].uv = uv; _VtxWritePtr[0].col = col; - _VtxWritePtr++; - } - for (int i = 2; i < points_count; i++) - { - _IdxWritePtr[0] = (ImDrawIdx)(_VtxCurrentIdx); _IdxWritePtr[1] = (ImDrawIdx)(_VtxCurrentIdx + i - 1); _IdxWritePtr[2] = (ImDrawIdx)(_VtxCurrentIdx + i); - _IdxWritePtr += 3; - } - _VtxCurrentIdx += (ImDrawIdx)vtx_count; - } -} - -void ImDrawList::PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12) -{ - if (radius == 0.0f) - { - _Path.push_back(center); - return; - } - IM_ASSERT(a_min_of_12 <= a_max_of_12); - - // For legacy reason the PathArcToFast() always takes angles where 2*PI is represented by 12, - // but it is possible to set IM_DRAWLIST_ARCFAST_TESSELATION_MULTIPLIER to a higher value. This should compile to a no-op otherwise. -#if IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER != 1 - a_min_of_12 *= IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER; - a_max_of_12 *= IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER; -#endif - - _Path.reserve(_Path.Size + (a_max_of_12 - a_min_of_12 + 1)); - for (int a = a_min_of_12; a <= a_max_of_12; a++) - { - const ImVec2& c = _Data->ArcFastVtx[a % IM_ARRAYSIZE(_Data->ArcFastVtx)]; - _Path.push_back(ImVec2(center.x + c.x * radius, center.y + c.y * radius)); - } -} - -void ImDrawList::PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments) -{ - if (radius == 0.0f) - { - _Path.push_back(center); - return; - } - IM_ASSERT(a_min <= a_max); - - // Note that we are adding a point at both a_min and a_max. - // If you are trying to draw a full closed circle you don't want the overlapping points! - _Path.reserve(_Path.Size + (num_segments + 1)); - for (int i = 0; i <= num_segments; i++) - { - const float a = a_min + ((float)i / (float)num_segments) * (a_max - a_min); - _Path.push_back(ImVec2(center.x + ImCos(a) * radius, center.y + ImSin(a) * radius)); - } -} - -ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t) -{ - float u = 1.0f - t; - float w1 = u * u * u; - float w2 = 3 * u * u * t; - float w3 = 3 * u * t * t; - float w4 = t * t * t; - return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x + w4 * p4.x, w1 * p1.y + w2 * p2.y + w3 * p3.y + w4 * p4.y); -} - -ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t) -{ - float u = 1.0f - t; - float w1 = u * u; - float w2 = 2 * u * t; - float w3 = t * t; - return ImVec2(w1 * p1.x + w2 * p2.x + w3 * p3.x, w1 * p1.y + w2 * p2.y + w3 * p3.y); -} - -// Closely mimics ImBezierCubicClosestPointCasteljau() in imgui.cpp -static void PathBezierCubicCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level) -{ - float dx = x4 - x1; - float dy = y4 - y1; - float d2 = (x2 - x4) * dy - (y2 - y4) * dx; - float d3 = (x3 - x4) * dy - (y3 - y4) * dx; - d2 = (d2 >= 0) ? d2 : -d2; - d3 = (d3 >= 0) ? d3 : -d3; - if ((d2 + d3) * (d2 + d3) < tess_tol * (dx * dx + dy * dy)) - { - path->push_back(ImVec2(x4, y4)); - } - else if (level < 10) - { - float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; - float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; - float x34 = (x3 + x4) * 0.5f, y34 = (y3 + y4) * 0.5f; - float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; - float x234 = (x23 + x34) * 0.5f, y234 = (y23 + y34) * 0.5f; - float x1234 = (x123 + x234) * 0.5f, y1234 = (y123 + y234) * 0.5f; - PathBezierCubicCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, x1234, y1234, tess_tol, level + 1); - PathBezierCubicCurveToCasteljau(path, x1234, y1234, x234, y234, x34, y34, x4, y4, tess_tol, level + 1); - } -} - -static void PathBezierQuadraticCurveToCasteljau(ImVector* path, float x1, float y1, float x2, float y2, float x3, float y3, float tess_tol, int level) -{ - float dx = x3 - x1, dy = y3 - y1; - float det = (x2 - x3) * dy - (y2 - y3) * dx; - if (det * det * 4.0f < tess_tol * (dx * dx + dy * dy)) - { - path->push_back(ImVec2(x3, y3)); - } - else if (level < 10) - { - float x12 = (x1 + x2) * 0.5f, y12 = (y1 + y2) * 0.5f; - float x23 = (x2 + x3) * 0.5f, y23 = (y2 + y3) * 0.5f; - float x123 = (x12 + x23) * 0.5f, y123 = (y12 + y23) * 0.5f; - PathBezierQuadraticCurveToCasteljau(path, x1, y1, x12, y12, x123, y123, tess_tol, level + 1); - PathBezierQuadraticCurveToCasteljau(path, x123, y123, x23, y23, x3, y3, tess_tol, level + 1); - } -} - -void ImDrawList::PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments) -{ - ImVec2 p1 = _Path.back(); - if (num_segments == 0) - { - PathBezierCubicCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, p4.x, p4.y, _Data->CurveTessellationTol, 0); // Auto-tessellated - } - else - { - float t_step = 1.0f / (float)num_segments; - for (int i_step = 1; i_step <= num_segments; i_step++) - _Path.push_back(ImBezierCubicCalc(p1, p2, p3, p4, t_step * i_step)); - } -} - -void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments) -{ - ImVec2 p1 = _Path.back(); - if (num_segments == 0) - { - PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated - } - else - { - float t_step = 1.0f / (float)num_segments; - for (int i_step = 1; i_step <= num_segments; i_step++) - _Path.push_back(ImBezierQuadraticCalc(p1, p2, p3, t_step * i_step)); - } -} - -void ImDrawList::PathRect(const ImVec2& a, const ImVec2& b, float rounding, ImDrawCornerFlags rounding_corners) -{ - rounding = ImMin(rounding, ImFabs(b.x - a.x) * ( ((rounding_corners & ImDrawCornerFlags_Top) == ImDrawCornerFlags_Top) || ((rounding_corners & ImDrawCornerFlags_Bot) == ImDrawCornerFlags_Bot) ? 0.5f : 1.0f ) - 1.0f); - rounding = ImMin(rounding, ImFabs(b.y - a.y) * ( ((rounding_corners & ImDrawCornerFlags_Left) == ImDrawCornerFlags_Left) || ((rounding_corners & ImDrawCornerFlags_Right) == ImDrawCornerFlags_Right) ? 0.5f : 1.0f ) - 1.0f); - - if (rounding <= 0.0f || rounding_corners == 0) - { - PathLineTo(a); - PathLineTo(ImVec2(b.x, a.y)); - PathLineTo(b); - PathLineTo(ImVec2(a.x, b.y)); - } - else - { - const float rounding_tl = (rounding_corners & ImDrawCornerFlags_TopLeft) ? rounding : 0.0f; - const float rounding_tr = (rounding_corners & ImDrawCornerFlags_TopRight) ? rounding : 0.0f; - const float rounding_br = (rounding_corners & ImDrawCornerFlags_BotRight) ? rounding : 0.0f; - const float rounding_bl = (rounding_corners & ImDrawCornerFlags_BotLeft) ? rounding : 0.0f; - PathArcToFast(ImVec2(a.x + rounding_tl, a.y + rounding_tl), rounding_tl, 6, 9); - PathArcToFast(ImVec2(b.x - rounding_tr, a.y + rounding_tr), rounding_tr, 9, 12); - PathArcToFast(ImVec2(b.x - rounding_br, b.y - rounding_br), rounding_br, 0, 3); - PathArcToFast(ImVec2(a.x + rounding_bl, b.y - rounding_bl), rounding_bl, 3, 6); - } -} - -void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - PathLineTo(p1 + ImVec2(0.5f, 0.5f)); - PathLineTo(p2 + ImVec2(0.5f, 0.5f)); - PathStroke(col, false, thickness); -} - -// p_min = upper-left, p_max = lower-right -// Note we don't render 1 pixels sized rectangles properly. -void ImDrawList::AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners, float thickness) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - if (Flags & ImDrawListFlags_AntiAliasedLines) - PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.50f, 0.50f), rounding, rounding_corners); - else - PathRect(p_min + ImVec2(0.50f, 0.50f), p_max - ImVec2(0.49f, 0.49f), rounding, rounding_corners); // Better looking lower-right corner and rounded non-AA shapes. - PathStroke(col, true, thickness); -} - -void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - if (rounding > 0.0f) - { - PathRect(p_min, p_max, rounding, rounding_corners); - PathFillConvex(col); - } - else - { - PrimReserve(6, 4); - PrimRect(p_min, p_max, col); - } -} - -// p_min = upper-left, p_max = lower-right -void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left) -{ - if (((col_upr_left | col_upr_right | col_bot_right | col_bot_left) & IM_COL32_A_MASK) == 0) - return; - - const ImVec2 uv = _Data->TexUvWhitePixel; - PrimReserve(6, 4); - PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 1)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); - PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 3)); - PrimWriteVtx(p_min, uv, col_upr_left); - PrimWriteVtx(ImVec2(p_max.x, p_min.y), uv, col_upr_right); - PrimWriteVtx(p_max, uv, col_bot_right); - PrimWriteVtx(ImVec2(p_min.x, p_max.y), uv, col_bot_left); -} - -void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - PathLineTo(p1); - PathLineTo(p2); - PathLineTo(p3); - PathLineTo(p4); - PathStroke(col, true, thickness); -} - -void ImDrawList::AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - PathLineTo(p1); - PathLineTo(p2); - PathLineTo(p3); - PathLineTo(p4); - PathFillConvex(col); -} - -void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - PathLineTo(p1); - PathLineTo(p2); - PathLineTo(p3); - PathStroke(col, true, thickness); -} - -void ImDrawList::AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - PathLineTo(p1); - PathLineTo(p2); - PathLineTo(p3); - PathFillConvex(col); -} - -void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) -{ - if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) - return; - - // Obtain segment count - if (num_segments <= 0) - { - // Automatic segment count - num_segments = _CalcCircleAutoSegmentCount(radius); - } - else - { - // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) - num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); - } - - // Because we are filling a closed shape we remove 1 from the count of segments/points - const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; - if (num_segments == 12) - PathArcToFast(center, radius - 0.5f, 0, 12 - 1); - else - PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); - PathStroke(col, true, thickness); -} - -void ImDrawList::AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) -{ - if ((col & IM_COL32_A_MASK) == 0 || radius <= 0.0f) - return; - - // Obtain segment count - if (num_segments <= 0) - { - // Automatic segment count - num_segments = _CalcCircleAutoSegmentCount(radius); - } - else - { - // Explicit segment count (still clamp to avoid drawing insanely tessellated shapes) - num_segments = ImClamp(num_segments, 3, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX); - } - - // Because we are filling a closed shape we remove 1 from the count of segments/points - const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; - if (num_segments == 12) - PathArcToFast(center, radius, 0, 12 - 1); - else - PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); - PathFillConvex(col); -} - -// Guaranteed to honor 'num_segments' -void ImDrawList::AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness) -{ - if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) - return; - - // Because we are filling a closed shape we remove 1 from the count of segments/points - const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; - PathArcTo(center, radius - 0.5f, 0.0f, a_max, num_segments - 1); - PathStroke(col, true, thickness); -} - -// Guaranteed to honor 'num_segments' -void ImDrawList::AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments) -{ - if ((col & IM_COL32_A_MASK) == 0 || num_segments <= 2) - return; - - // Because we are filling a closed shape we remove 1 from the count of segments/points - const float a_max = (IM_PI * 2.0f) * ((float)num_segments - 1.0f) / (float)num_segments; - PathArcTo(center, radius, 0.0f, a_max, num_segments - 1); - PathFillConvex(col); -} - -// Cubic Bezier takes 4 controls points -void ImDrawList::AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - PathLineTo(p1); - PathBezierCubicCurveTo(p2, p3, p4, num_segments); - PathStroke(col, false, thickness); -} - -// Quadratic Bezier takes 3 controls points -void ImDrawList::AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - PathLineTo(p1); - PathBezierQuadraticCurveTo(p2, p3, num_segments); - PathStroke(col, false, thickness); -} - -void ImDrawList::AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const ImVec4* cpu_fine_clip_rect) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - if (text_end == NULL) - text_end = text_begin + strlen(text_begin); - if (text_begin == text_end) - return; - - // Pull default font/size from the shared ImDrawListSharedData instance - if (font == NULL) - font = _Data->Font; - if (font_size == 0.0f) - font_size = _Data->FontSize; - - IM_ASSERT(font->ContainerAtlas->TexID == _CmdHeader.TextureId); // Use high-level ImGui::PushFont() or low-level ImDrawList::PushTextureId() to change font. - - ImVec4 clip_rect = _CmdHeader.ClipRect; - if (cpu_fine_clip_rect) - { - clip_rect.x = ImMax(clip_rect.x, cpu_fine_clip_rect->x); - clip_rect.y = ImMax(clip_rect.y, cpu_fine_clip_rect->y); - clip_rect.z = ImMin(clip_rect.z, cpu_fine_clip_rect->z); - clip_rect.w = ImMin(clip_rect.w, cpu_fine_clip_rect->w); - } - font->RenderText(this, font_size, pos, col, clip_rect, text_begin, text_end, wrap_width, cpu_fine_clip_rect != NULL); -} - -void ImDrawList::AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end) -{ - AddText(NULL, 0.0f, pos, col, text_begin, text_end); -} - -void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; - if (push_texture_id) - PushTextureID(user_texture_id); - - PrimReserve(6, 4); - PrimRectUV(p_min, p_max, uv_min, uv_max, col); - - if (push_texture_id) - PopTextureID(); -} - -void ImDrawList::AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, const ImVec2& uv4, ImU32 col) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; - if (push_texture_id) - PushTextureID(user_texture_id); - - PrimReserve(6, 4); - PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); - - if (push_texture_id) - PopTextureID(); -} - -void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawCornerFlags rounding_corners) -{ - if ((col & IM_COL32_A_MASK) == 0) - return; - - if (rounding <= 0.0f || (rounding_corners & ImDrawCornerFlags_All) == 0) - { - AddImage(user_texture_id, p_min, p_max, uv_min, uv_max, col); - return; - } - - const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; - if (push_texture_id) - PushTextureID(user_texture_id); - - int vert_start_idx = VtxBuffer.Size; - PathRect(p_min, p_max, rounding, rounding_corners); - PathFillConvex(col); - int vert_end_idx = VtxBuffer.Size; - ImGui::ShadeVertsLinearUV(this, vert_start_idx, vert_end_idx, p_min, p_max, uv_min, uv_max, true); - - if (push_texture_id) - PopTextureID(); -} - - -//----------------------------------------------------------------------------- -// [SECTION] ImDrawListSplitter -//----------------------------------------------------------------------------- -// FIXME: This may be a little confusing, trying to be a little too low-level/optimal instead of just doing vector swap.. -//----------------------------------------------------------------------------- - -void ImDrawListSplitter::ClearFreeMemory() -{ - for (int i = 0; i < _Channels.Size; i++) - { - if (i == _Current) - memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again - _Channels[i]._CmdBuffer.clear(); - _Channels[i]._IdxBuffer.clear(); - } - _Current = 0; - _Count = 1; - _Channels.clear(); -} - -void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) -{ - IM_UNUSED(draw_list); - IM_ASSERT(_Current == 0 && _Count <= 1 && "Nested channel splitting is not supported. Please use separate instances of ImDrawListSplitter."); - int old_channels_count = _Channels.Size; - if (old_channels_count < channels_count) - { - _Channels.reserve(channels_count); // Avoid over reserving since this is likely to stay stable - _Channels.resize(channels_count); - } - _Count = channels_count; - - // Channels[] (24/32 bytes each) hold storage that we'll swap with draw_list->_CmdBuffer/_IdxBuffer - // The content of Channels[0] at this point doesn't matter. We clear it to make state tidy in a debugger but we don't strictly need to. - // When we switch to the next channel, we'll copy draw_list->_CmdBuffer/_IdxBuffer into Channels[0] and then Channels[1] into draw_list->CmdBuffer/_IdxBuffer - memset(&_Channels[0], 0, sizeof(ImDrawChannel)); - for (int i = 1; i < channels_count; i++) - { - if (i >= old_channels_count) - { - IM_PLACEMENT_NEW(&_Channels[i]) ImDrawChannel(); - } - else - { - _Channels[i]._CmdBuffer.resize(0); - _Channels[i]._IdxBuffer.resize(0); - } - } -} - -void ImDrawListSplitter::Merge(ImDrawList* draw_list) -{ - // Note that we never use or rely on _Channels.Size because it is merely a buffer that we never shrink back to 0 to keep all sub-buffers ready for use. - if (_Count <= 1) - return; - - SetCurrentChannel(draw_list, 0); - draw_list->_PopUnusedDrawCmd(); - - // Calculate our final buffer sizes. Also fix the incorrect IdxOffset values in each command. - int new_cmd_buffer_count = 0; - int new_idx_buffer_count = 0; - ImDrawCmd* last_cmd = (_Count > 0 && draw_list->CmdBuffer.Size > 0) ? &draw_list->CmdBuffer.back() : NULL; - int idx_offset = last_cmd ? last_cmd->IdxOffset + last_cmd->ElemCount : 0; - for (int i = 1; i < _Count; i++) - { - ImDrawChannel& ch = _Channels[i]; - - // Equivalent of PopUnusedDrawCmd() for this channel's cmdbuffer and except we don't need to test for UserCallback. - if (ch._CmdBuffer.Size > 0 && ch._CmdBuffer.back().ElemCount == 0) - ch._CmdBuffer.pop_back(); - - if (ch._CmdBuffer.Size > 0 && last_cmd != NULL) - { - ImDrawCmd* next_cmd = &ch._CmdBuffer[0]; - if (ImDrawCmd_HeaderCompare(last_cmd, next_cmd) == 0 && last_cmd->UserCallback == NULL && next_cmd->UserCallback == NULL) - { - // Merge previous channel last draw command with current channel first draw command if matching. - last_cmd->ElemCount += next_cmd->ElemCount; - idx_offset += next_cmd->ElemCount; - ch._CmdBuffer.erase(ch._CmdBuffer.Data); // FIXME-OPT: Improve for multiple merges. - } - } - if (ch._CmdBuffer.Size > 0) - last_cmd = &ch._CmdBuffer.back(); - new_cmd_buffer_count += ch._CmdBuffer.Size; - new_idx_buffer_count += ch._IdxBuffer.Size; - for (int cmd_n = 0; cmd_n < ch._CmdBuffer.Size; cmd_n++) - { - ch._CmdBuffer.Data[cmd_n].IdxOffset = idx_offset; - idx_offset += ch._CmdBuffer.Data[cmd_n].ElemCount; - } - } - draw_list->CmdBuffer.resize(draw_list->CmdBuffer.Size + new_cmd_buffer_count); - draw_list->IdxBuffer.resize(draw_list->IdxBuffer.Size + new_idx_buffer_count); - - // Write commands and indices in order (they are fairly small structures, we don't copy vertices only indices) - ImDrawCmd* cmd_write = draw_list->CmdBuffer.Data + draw_list->CmdBuffer.Size - new_cmd_buffer_count; - ImDrawIdx* idx_write = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size - new_idx_buffer_count; - for (int i = 1; i < _Count; i++) - { - ImDrawChannel& ch = _Channels[i]; - if (int sz = ch._CmdBuffer.Size) { memcpy(cmd_write, ch._CmdBuffer.Data, sz * sizeof(ImDrawCmd)); cmd_write += sz; } - if (int sz = ch._IdxBuffer.Size) { memcpy(idx_write, ch._IdxBuffer.Data, sz * sizeof(ImDrawIdx)); idx_write += sz; } - } - draw_list->_IdxWritePtr = idx_write; - - // Ensure there's always a non-callback draw command trailing the command-buffer - if (draw_list->CmdBuffer.Size == 0 || draw_list->CmdBuffer.back().UserCallback != NULL) - draw_list->AddDrawCmd(); - - // If current command is used with different settings we need to add a new command - ImDrawCmd* curr_cmd = &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; - if (curr_cmd->ElemCount == 0) - ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset - else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) - draw_list->AddDrawCmd(); - - _Count = 1; -} - -void ImDrawListSplitter::SetCurrentChannel(ImDrawList* draw_list, int idx) -{ - IM_ASSERT(idx >= 0 && idx < _Count); - if (_Current == idx) - return; - - // Overwrite ImVector (12/16 bytes), four times. This is merely a silly optimization instead of doing .swap() - memcpy(&_Channels.Data[_Current]._CmdBuffer, &draw_list->CmdBuffer, sizeof(draw_list->CmdBuffer)); - memcpy(&_Channels.Data[_Current]._IdxBuffer, &draw_list->IdxBuffer, sizeof(draw_list->IdxBuffer)); - _Current = idx; - memcpy(&draw_list->CmdBuffer, &_Channels.Data[idx]._CmdBuffer, sizeof(draw_list->CmdBuffer)); - memcpy(&draw_list->IdxBuffer, &_Channels.Data[idx]._IdxBuffer, sizeof(draw_list->IdxBuffer)); - draw_list->_IdxWritePtr = draw_list->IdxBuffer.Data + draw_list->IdxBuffer.Size; - - // If current command is used with different settings we need to add a new command - ImDrawCmd* curr_cmd = (draw_list->CmdBuffer.Size == 0) ? NULL : &draw_list->CmdBuffer.Data[draw_list->CmdBuffer.Size - 1]; - if (curr_cmd == NULL) - draw_list->AddDrawCmd(); - else if (curr_cmd->ElemCount == 0) - ImDrawCmd_HeaderCopy(curr_cmd, &draw_list->_CmdHeader); // Copy ClipRect, TextureId, VtxOffset - else if (ImDrawCmd_HeaderCompare(curr_cmd, &draw_list->_CmdHeader) != 0) - draw_list->AddDrawCmd(); -} - -//----------------------------------------------------------------------------- -// [SECTION] ImDrawData -//----------------------------------------------------------------------------- - -// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! -void ImDrawData::DeIndexAllBuffers() -{ - ImVector new_vtx_buffer; - TotalVtxCount = TotalIdxCount = 0; - for (int i = 0; i < CmdListsCount; i++) - { - ImDrawList* cmd_list = CmdLists[i]; - if (cmd_list->IdxBuffer.empty()) - continue; - new_vtx_buffer.resize(cmd_list->IdxBuffer.Size); - for (int j = 0; j < cmd_list->IdxBuffer.Size; j++) - new_vtx_buffer[j] = cmd_list->VtxBuffer[cmd_list->IdxBuffer[j]]; - cmd_list->VtxBuffer.swap(new_vtx_buffer); - cmd_list->IdxBuffer.resize(0); - TotalVtxCount += cmd_list->VtxBuffer.Size; - } -} - -// Helper to scale the ClipRect field of each ImDrawCmd. -// Use if your final output buffer is at a different scale than draw_data->DisplaySize, -// or if there is a difference between your window resolution and framebuffer resolution. -void ImDrawData::ScaleClipRects(const ImVec2& fb_scale) -{ - for (int i = 0; i < CmdListsCount; i++) - { - ImDrawList* cmd_list = CmdLists[i]; - for (int cmd_i = 0; cmd_i < cmd_list->CmdBuffer.Size; cmd_i++) - { - ImDrawCmd* cmd = &cmd_list->CmdBuffer[cmd_i]; - cmd->ClipRect = ImVec4(cmd->ClipRect.x * fb_scale.x, cmd->ClipRect.y * fb_scale.y, cmd->ClipRect.z * fb_scale.x, cmd->ClipRect.w * fb_scale.y); - } - } -} - -//----------------------------------------------------------------------------- -// [SECTION] Helpers ShadeVertsXXX functions -//----------------------------------------------------------------------------- - -// Generic linear color gradient, write to RGB fields, leave A untouched. -void ImGui::ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1) -{ - ImVec2 gradient_extent = gradient_p1 - gradient_p0; - float gradient_inv_length2 = 1.0f / ImLengthSqr(gradient_extent); - ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; - ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; - const int col0_r = (int)(col0 >> IM_COL32_R_SHIFT) & 0xFF; - const int col0_g = (int)(col0 >> IM_COL32_G_SHIFT) & 0xFF; - const int col0_b = (int)(col0 >> IM_COL32_B_SHIFT) & 0xFF; - const int col_delta_r = ((int)(col1 >> IM_COL32_R_SHIFT) & 0xFF) - col0_r; - const int col_delta_g = ((int)(col1 >> IM_COL32_G_SHIFT) & 0xFF) - col0_g; - const int col_delta_b = ((int)(col1 >> IM_COL32_B_SHIFT) & 0xFF) - col0_b; - for (ImDrawVert* vert = vert_start; vert < vert_end; vert++) - { - float d = ImDot(vert->pos - gradient_p0, gradient_extent); - float t = ImClamp(d * gradient_inv_length2, 0.0f, 1.0f); - int r = (int)(col0_r + col_delta_r * t); - int g = (int)(col0_g + col_delta_g * t); - int b = (int)(col0_b + col_delta_b * t); - vert->col = (r << IM_COL32_R_SHIFT) | (g << IM_COL32_G_SHIFT) | (b << IM_COL32_B_SHIFT) | (vert->col & IM_COL32_A_MASK); - } -} - -// Distribute UV over (a, b) rectangle -void ImGui::ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp) -{ - const ImVec2 size = b - a; - const ImVec2 uv_size = uv_b - uv_a; - const ImVec2 scale = ImVec2( - size.x != 0.0f ? (uv_size.x / size.x) : 0.0f, - size.y != 0.0f ? (uv_size.y / size.y) : 0.0f); - - ImDrawVert* vert_start = draw_list->VtxBuffer.Data + vert_start_idx; - ImDrawVert* vert_end = draw_list->VtxBuffer.Data + vert_end_idx; - if (clamp) - { - const ImVec2 min = ImMin(uv_a, uv_b); - const ImVec2 max = ImMax(uv_a, uv_b); - for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) - vertex->uv = ImClamp(uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale), min, max); - } - else - { - for (ImDrawVert* vertex = vert_start; vertex < vert_end; ++vertex) - vertex->uv = uv_a + ImMul(ImVec2(vertex->pos.x, vertex->pos.y) - a, scale); - } -} - -//----------------------------------------------------------------------------- -// [SECTION] ImFontConfig -//----------------------------------------------------------------------------- - -ImFontConfig::ImFontConfig() -{ - memset(this, 0, sizeof(*this)); - FontDataOwnedByAtlas = true; - OversampleH = 3; // FIXME: 2 may be a better default? - OversampleV = 1; - GlyphMaxAdvanceX = FLT_MAX; - RasterizerMultiply = 1.0f; - EllipsisChar = (ImWchar)-1; -} - -//----------------------------------------------------------------------------- -// [SECTION] ImFontAtlas -//----------------------------------------------------------------------------- - -// A work of art lies ahead! (. = white layer, X = black layer, others are blank) -// The 2x2 white texels on the top left are the ones we'll use everywhere in Dear ImGui to render filled shapes. -const int FONT_ATLAS_DEFAULT_TEX_DATA_W = 108; // Actual texture will be 2 times that + 1 spacing. -const int FONT_ATLAS_DEFAULT_TEX_DATA_H = 27; -static const char FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS[FONT_ATLAS_DEFAULT_TEX_DATA_W * FONT_ATLAS_DEFAULT_TEX_DATA_H + 1] = -{ - "..- -XXXXXXX- X - X -XXXXXXX - XXXXXXX- XX " - "..- -X.....X- X.X - X.X -X.....X - X.....X- X..X " - "--- -XXX.XXX- X...X - X...X -X....X - X....X- X..X " - "X - X.X - X.....X - X.....X -X...X - X...X- X..X " - "XX - X.X -X.......X- X.......X -X..X.X - X.X..X- X..X " - "X.X - X.X -XXXX.XXXX- XXXX.XXXX -X.X X.X - X.X X.X- X..XXX " - "X..X - X.X - X.X - X.X -XX X.X - X.X XX- X..X..XXX " - "X...X - X.X - X.X - XX X.X XX - X.X - X.X - X..X..X..XX " - "X....X - X.X - X.X - X.X X.X X.X - X.X - X.X - X..X..X..X.X " - "X.....X - X.X - X.X - X..X X.X X..X - X.X - X.X -XXX X..X..X..X..X" - "X......X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X XX-XX X.X -X..XX........X..X" - "X.......X - X.X - X.X -X.....................X- X.X X.X-X.X X.X -X...X...........X" - "X........X - X.X - X.X - X...XXXXXX.XXXXXX...X - X.X..X-X..X.X - X..............X" - "X.........X -XXX.XXX- X.X - X..X X.X X..X - X...X-X...X - X.............X" - "X..........X-X.....X- X.X - X.X X.X X.X - X....X-X....X - X.............X" - "X......XXXXX-XXXXXXX- X.X - XX X.X XX - X.....X-X.....X - X............X" - "X...X..X --------- X.X - X.X - XXXXXXX-XXXXXXX - X...........X " - "X..X X..X - -XXXX.XXXX- XXXX.XXXX ------------------------------------- X..........X " - "X.X X..X - -X.......X- X.......X - XX XX - - X..........X " - "XX X..X - - X.....X - X.....X - X.X X.X - - X........X " - " X..X - X...X - X...X - X..X X..X - - X........X " - " XX - X.X - X.X - X...XXXXXXXXXXXXX...X - - XXXXXXXXXX " - "------------ - X - X -X.....................X- ------------------" - " ----------------------------------- X...XXXXXXXXXXXXX...X - " - " - X..X X..X - " - " - X.X X.X - " - " - XX XX - " -}; - -static const ImVec2 FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[ImGuiMouseCursor_COUNT][3] = -{ - // Pos ........ Size ......... Offset ...... - { ImVec2( 0,3), ImVec2(12,19), ImVec2( 0, 0) }, // ImGuiMouseCursor_Arrow - { ImVec2(13,0), ImVec2( 7,16), ImVec2( 1, 8) }, // ImGuiMouseCursor_TextInput - { ImVec2(31,0), ImVec2(23,23), ImVec2(11,11) }, // ImGuiMouseCursor_ResizeAll - { ImVec2(21,0), ImVec2( 9,23), ImVec2( 4,11) }, // ImGuiMouseCursor_ResizeNS - { ImVec2(55,18),ImVec2(23, 9), ImVec2(11, 4) }, // ImGuiMouseCursor_ResizeEW - { ImVec2(73,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNESW - { ImVec2(55,0), ImVec2(17,17), ImVec2( 8, 8) }, // ImGuiMouseCursor_ResizeNWSE - { ImVec2(91,0), ImVec2(17,22), ImVec2( 5, 0) }, // ImGuiMouseCursor_Hand -}; - -ImFontAtlas::ImFontAtlas() -{ - memset(this, 0, sizeof(*this)); - TexGlyphPadding = 1; - PackIdMouseCursors = PackIdLines = -1; -} - -ImFontAtlas::~ImFontAtlas() -{ - IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); - Clear(); -} - -void ImFontAtlas::ClearInputData() -{ - IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); - for (int i = 0; i < ConfigData.Size; i++) - if (ConfigData[i].FontData && ConfigData[i].FontDataOwnedByAtlas) - { - IM_FREE(ConfigData[i].FontData); - ConfigData[i].FontData = NULL; - } - - // When clearing this we lose access to the font name and other information used to build the font. - for (int i = 0; i < Fonts.Size; i++) - if (Fonts[i]->ConfigData >= ConfigData.Data && Fonts[i]->ConfigData < ConfigData.Data + ConfigData.Size) - { - Fonts[i]->ConfigData = NULL; - Fonts[i]->ConfigDataCount = 0; - } - ConfigData.clear(); - CustomRects.clear(); - PackIdMouseCursors = PackIdLines = -1; -} - -void ImFontAtlas::ClearTexData() -{ - IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); - if (TexPixelsAlpha8) - IM_FREE(TexPixelsAlpha8); - if (TexPixelsRGBA32) - IM_FREE(TexPixelsRGBA32); - TexPixelsAlpha8 = NULL; - TexPixelsRGBA32 = NULL; - TexPixelsUseColors = false; -} - -void ImFontAtlas::ClearFonts() -{ - IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); - for (int i = 0; i < Fonts.Size; i++) - IM_DELETE(Fonts[i]); - Fonts.clear(); -} - -void ImFontAtlas::Clear() -{ - ClearInputData(); - ClearTexData(); - ClearFonts(); -} - -void ImFontAtlas::GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) -{ - // Build atlas on demand - if (TexPixelsAlpha8 == NULL) - { - if (ConfigData.empty()) - AddFontDefault(); - Build(); - } - - *out_pixels = TexPixelsAlpha8; - if (out_width) *out_width = TexWidth; - if (out_height) *out_height = TexHeight; - if (out_bytes_per_pixel) *out_bytes_per_pixel = 1; -} - -void ImFontAtlas::GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) -{ - // Convert to RGBA32 format on demand - // Although it is likely to be the most commonly used format, our font rendering is 1 channel / 8 bpp - if (!TexPixelsRGBA32) - { - unsigned char* pixels = NULL; - GetTexDataAsAlpha8(&pixels, NULL, NULL); - if (pixels) - { - TexPixelsRGBA32 = (unsigned int*)IM_ALLOC((size_t)TexWidth * (size_t)TexHeight * 4); - const unsigned char* src = pixels; - unsigned int* dst = TexPixelsRGBA32; - for (int n = TexWidth * TexHeight; n > 0; n--) - *dst++ = IM_COL32(255, 255, 255, (unsigned int)(*src++)); - } - } - - *out_pixels = (unsigned char*)TexPixelsRGBA32; - if (out_width) *out_width = TexWidth; - if (out_height) *out_height = TexHeight; - if (out_bytes_per_pixel) *out_bytes_per_pixel = 4; -} - -ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg) -{ - IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); - IM_ASSERT(font_cfg->FontData != NULL && font_cfg->FontDataSize > 0); - IM_ASSERT(font_cfg->SizePixels > 0.0f); - - // Create new font - if (!font_cfg->MergeMode) - Fonts.push_back(IM_NEW(ImFont)); - else - IM_ASSERT(!Fonts.empty() && "Cannot use MergeMode for the first font"); // When using MergeMode make sure that a font has already been added before. You can use ImGui::GetIO().Fonts->AddFontDefault() to add the default imgui font. - - ConfigData.push_back(*font_cfg); - ImFontConfig& new_font_cfg = ConfigData.back(); - if (new_font_cfg.DstFont == NULL) - new_font_cfg.DstFont = Fonts.back(); - if (!new_font_cfg.FontDataOwnedByAtlas) - { - new_font_cfg.FontData = IM_ALLOC(new_font_cfg.FontDataSize); - new_font_cfg.FontDataOwnedByAtlas = true; - memcpy(new_font_cfg.FontData, font_cfg->FontData, (size_t)new_font_cfg.FontDataSize); - } - - if (new_font_cfg.DstFont->EllipsisChar == (ImWchar)-1) - new_font_cfg.DstFont->EllipsisChar = font_cfg->EllipsisChar; - - // Invalidate texture - ClearTexData(); - return new_font_cfg.DstFont; -} - -// Default font TTF is compressed with stb_compress then base85 encoded (see misc/fonts/binary_to_compressed_c.cpp for encoder) -static unsigned int stb_decompress_length(const unsigned char* input); -static unsigned int stb_decompress(unsigned char* output, const unsigned char* input, unsigned int length); -static const char* GetDefaultCompressedFontDataTTFBase85(); -static unsigned int Decode85Byte(char c) { return c >= '\\' ? c-36 : c-35; } -static void Decode85(const unsigned char* src, unsigned char* dst) -{ - while (*src) - { - unsigned int tmp = Decode85Byte(src[0]) + 85 * (Decode85Byte(src[1]) + 85 * (Decode85Byte(src[2]) + 85 * (Decode85Byte(src[3]) + 85 * Decode85Byte(src[4])))); - dst[0] = ((tmp >> 0) & 0xFF); dst[1] = ((tmp >> 8) & 0xFF); dst[2] = ((tmp >> 16) & 0xFF); dst[3] = ((tmp >> 24) & 0xFF); // We can't assume little-endianness. - src += 5; - dst += 4; - } -} - -// Load embedded ProggyClean.ttf at size 13, disable oversampling -ImFont* ImFontAtlas::AddFontDefault(const ImFontConfig* font_cfg_template) -{ - ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); - if (!font_cfg_template) - { - font_cfg.OversampleH = font_cfg.OversampleV = 1; - font_cfg.PixelSnapH = true; - } - if (font_cfg.SizePixels <= 0.0f) - font_cfg.SizePixels = 13.0f * 1.0f; - if (font_cfg.Name[0] == '\0') - ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.SizePixels); - font_cfg.EllipsisChar = (ImWchar)0x0085; - font_cfg.GlyphOffset.y = 1.0f * IM_FLOOR(font_cfg.SizePixels / 13.0f); // Add +1 offset per 13 units - - const char* ttf_compressed_base85 = GetDefaultCompressedFontDataTTFBase85(); - const ImWchar* glyph_ranges = font_cfg.GlyphRanges != NULL ? font_cfg.GlyphRanges : GetGlyphRangesDefault(); - ImFont* font = AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_cfg.SizePixels, &font_cfg, glyph_ranges); - return font; -} - -ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) -{ - IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); - size_t data_size = 0; - void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0); - if (!data) - { - IM_ASSERT_USER_ERROR(0, "Could not load font file!"); - return NULL; - } - ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); - if (font_cfg.Name[0] == '\0') - { - // Store a short copy of filename into into the font name for convenience - const char* p; - for (p = filename + strlen(filename); p > filename && p[-1] != '/' && p[-1] != '\\'; p--) {} - ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); - } - return AddFontFromMemoryTTF(data, (int)data_size, size_pixels, &font_cfg, glyph_ranges); -} - -// NB: Transfer ownership of 'ttf_data' to ImFontAtlas, unless font_cfg_template->FontDataOwnedByAtlas == false. Owned TTF buffer will be deleted after Build(). -ImFont* ImFontAtlas::AddFontFromMemoryTTF(void* ttf_data, int ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) -{ - IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); - ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); - IM_ASSERT(font_cfg.FontData == NULL); - font_cfg.FontData = ttf_data; - font_cfg.FontDataSize = ttf_size; - font_cfg.SizePixels = size_pixels; - if (glyph_ranges) - font_cfg.GlyphRanges = glyph_ranges; - return AddFont(&font_cfg); -} - -ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges) -{ - const unsigned int buf_decompressed_size = stb_decompress_length((const unsigned char*)compressed_ttf_data); - unsigned char* buf_decompressed_data = (unsigned char*)IM_ALLOC(buf_decompressed_size); - stb_decompress(buf_decompressed_data, (const unsigned char*)compressed_ttf_data, (unsigned int)compressed_ttf_size); - - ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig(); - IM_ASSERT(font_cfg.FontData == NULL); - font_cfg.FontDataOwnedByAtlas = true; - return AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, size_pixels, &font_cfg, glyph_ranges); -} - -ImFont* ImFontAtlas::AddFontFromMemoryCompressedBase85TTF(const char* compressed_ttf_data_base85, float size_pixels, const ImFontConfig* font_cfg, const ImWchar* glyph_ranges) -{ - int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4; - void* compressed_ttf = IM_ALLOC((size_t)compressed_ttf_size); - Decode85((const unsigned char*)compressed_ttf_data_base85, (unsigned char*)compressed_ttf); - ImFont* font = AddFontFromMemoryCompressedTTF(compressed_ttf, compressed_ttf_size, size_pixels, font_cfg, glyph_ranges); - IM_FREE(compressed_ttf); - return font; -} - -int ImFontAtlas::AddCustomRectRegular(int width, int height) -{ - IM_ASSERT(width > 0 && width <= 0xFFFF); - IM_ASSERT(height > 0 && height <= 0xFFFF); - ImFontAtlasCustomRect r; - r.Width = (unsigned short)width; - r.Height = (unsigned short)height; - CustomRects.push_back(r); - return CustomRects.Size - 1; // Return index -} - -int ImFontAtlas::AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float advance_x, const ImVec2& offset) -{ -#ifdef IMGUI_USE_WCHAR32 - IM_ASSERT(id <= IM_UNICODE_CODEPOINT_MAX); -#endif - IM_ASSERT(font != NULL); - IM_ASSERT(width > 0 && width <= 0xFFFF); - IM_ASSERT(height > 0 && height <= 0xFFFF); - ImFontAtlasCustomRect r; - r.Width = (unsigned short)width; - r.Height = (unsigned short)height; - r.GlyphID = id; - r.GlyphAdvanceX = advance_x; - r.GlyphOffset = offset; - r.Font = font; - CustomRects.push_back(r); - return CustomRects.Size - 1; // Return index -} - -void ImFontAtlas::CalcCustomRectUV(const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max) const -{ - IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates - IM_ASSERT(rect->IsPacked()); // Make sure the rectangle has been packed - *out_uv_min = ImVec2((float)rect->X * TexUvScale.x, (float)rect->Y * TexUvScale.y); - *out_uv_max = ImVec2((float)(rect->X + rect->Width) * TexUvScale.x, (float)(rect->Y + rect->Height) * TexUvScale.y); -} - -bool ImFontAtlas::GetMouseCursorTexData(ImGuiMouseCursor cursor_type, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]) -{ - if (cursor_type <= ImGuiMouseCursor_None || cursor_type >= ImGuiMouseCursor_COUNT) - return false; - if (Flags & ImFontAtlasFlags_NoMouseCursors) - return false; - - IM_ASSERT(PackIdMouseCursors != -1); - ImFontAtlasCustomRect* r = GetCustomRectByIndex(PackIdMouseCursors); - ImVec2 pos = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][0] + ImVec2((float)r->X, (float)r->Y); - ImVec2 size = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][1]; - *out_size = size; - *out_offset = FONT_ATLAS_DEFAULT_TEX_CURSOR_DATA[cursor_type][2]; - out_uv_border[0] = (pos) * TexUvScale; - out_uv_border[1] = (pos + size) * TexUvScale; - pos.x += FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; - out_uv_fill[0] = (pos) * TexUvScale; - out_uv_fill[1] = (pos + size) * TexUvScale; - return true; -} - -bool ImFontAtlas::Build() -{ - IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas between NewFrame() and EndFrame/Render()!"); - - // Select builder - // - Note that we do not reassign to atlas->FontBuilderIO, since it is likely to point to static data which - // may mess with some hot-reloading schemes. If you need to assign to this (for dynamic selection) AND are - // using a hot-reloading scheme that messes up static data, store your own instance of ImFontBuilderIO somewhere - // and point to it instead of pointing directly to return value of the GetBuilderXXX functions. - const ImFontBuilderIO* builder_io = FontBuilderIO; - if (builder_io == NULL) - { -#ifdef IMGUI_ENABLE_FREETYPE - builder_io = ImGuiFreeType::GetBuilderForFreeType(); -#elif defined(IMGUI_ENABLE_STB_TRUETYPE) - builder_io = ImFontAtlasGetBuilderForStbTruetype(); -#else - IM_ASSERT(0); // Invalid Build function -#endif - } - - // Build - return builder_io->FontBuilder_Build(this); -} - -void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor) -{ - for (unsigned int i = 0; i < 256; i++) - { - unsigned int value = (unsigned int)(i * in_brighten_factor); - out_table[i] = value > 255 ? 255 : (value & 0xFF); - } -} - -void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) -{ - unsigned char* data = pixels + x + y * stride; - for (int j = h; j > 0; j--, data += stride) - for (int i = 0; i < w; i++) - data[i] = table[data[i]]; -} - -#ifdef IMGUI_ENABLE_STB_TRUETYPE -// Temporary data for one source font (multiple source fonts can be merged into one destination ImFont) -// (C++03 doesn't allow instancing ImVector<> with function-local types so we declare the type here.) -struct ImFontBuildSrcData -{ - stbtt_fontinfo FontInfo; - stbtt_pack_range PackRange; // Hold the list of codepoints to pack (essentially points to Codepoints.Data) - stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. - stbtt_packedchar* PackedChars; // Output glyphs - const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) - int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] - int GlyphsHighest; // Highest requested codepoint - int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) - ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) - ImVector GlyphsList; // Glyph codepoints list (flattened version of GlyphsMap) -}; - -// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) -struct ImFontBuildDstData -{ - int SrcCount; // Number of source fonts targeting this destination font. - int GlyphsHighest; - int GlyphsCount; - ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. -}; - -static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector* out) -{ - IM_ASSERT(sizeof(in->Storage.Data[0]) == sizeof(int)); - const ImU32* it_begin = in->Storage.begin(); - const ImU32* it_end = in->Storage.end(); - for (const ImU32* it = it_begin; it < it_end; it++) - if (ImU32 entries_32 = *it) - for (ImU32 bit_n = 0; bit_n < 32; bit_n++) - if (entries_32 & ((ImU32)1 << bit_n)) - out->push_back((int)(((it - it_begin) << 5) + bit_n)); -} - -static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) -{ - IM_ASSERT(atlas->ConfigData.Size > 0); - - ImFontAtlasBuildInit(atlas); - - // Clear atlas - atlas->TexID = (ImTextureID)NULL; - atlas->TexWidth = atlas->TexHeight = 0; - atlas->TexUvScale = ImVec2(0.0f, 0.0f); - atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); - atlas->ClearTexData(); - - // Temporary storage for building - ImVector src_tmp_array; - ImVector dst_tmp_array; - src_tmp_array.resize(atlas->ConfigData.Size); - dst_tmp_array.resize(atlas->Fonts.Size); - memset(src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); - memset(dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); - - // 1. Initialize font loading structure, check font data validity - for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) - { - ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; - ImFontConfig& cfg = atlas->ConfigData[src_i]; - IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); - - // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) - src_tmp.DstIndex = -1; - for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) - if (cfg.DstFont == atlas->Fonts[output_i]) - src_tmp.DstIndex = output_i; - if (src_tmp.DstIndex == -1) - { - IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? - return false; - } - // Initialize helper structure for font loading and verify that the TTF/OTF data is correct - const int font_offset = stbtt_GetFontOffsetForIndex((unsigned char*)cfg.FontData, cfg.FontNo); - IM_ASSERT(font_offset >= 0 && "FontData is incorrect, or FontNo cannot be found."); - if (!stbtt_InitFont(&src_tmp.FontInfo, (unsigned char*)cfg.FontData, font_offset)) - return false; - - // Measure highest codepoints - ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; - src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); - for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) - src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); - dst_tmp.SrcCount++; - dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); - } - - // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. - int total_glyphs_count = 0; - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; - ImFontBuildDstData& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; - src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); - if (dst_tmp.GlyphsSet.Storage.empty()) - dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); - - for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) - for (unsigned int codepoint = src_range[0]; codepoint <= src_range[1]; codepoint++) - { - if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option for MergeMode (e.g. MergeOverwrite==true) - continue; - if (!stbtt_FindGlyphIndex(&src_tmp.FontInfo, codepoint)) // It is actually in the font? - continue; - - // Add to avail set/counters - src_tmp.GlyphsCount++; - dst_tmp.GlyphsCount++; - src_tmp.GlyphsSet.SetBit(codepoint); - dst_tmp.GlyphsSet.SetBit(codepoint); - total_glyphs_count++; - } - } - - // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; - src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); - UnpackBitVectorToFlatIndexList(&src_tmp.GlyphsSet, &src_tmp.GlyphsList); - src_tmp.GlyphsSet.Clear(); - IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); - } - for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) - dst_tmp_array[dst_i].GlyphsSet.Clear(); - dst_tmp_array.clear(); - - // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) - // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) - ImVector buf_rects; - ImVector buf_packedchars; - buf_rects.resize(total_glyphs_count); - buf_packedchars.resize(total_glyphs_count); - memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); - memset(buf_packedchars.Data, 0, (size_t)buf_packedchars.size_in_bytes()); - - // 4. Gather glyphs sizes so we can pack them in our virtual canvas. - int total_surface = 0; - int buf_rects_out_n = 0; - int buf_packedchars_out_n = 0; - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; - if (src_tmp.GlyphsCount == 0) - continue; - - src_tmp.Rects = &buf_rects[buf_rects_out_n]; - src_tmp.PackedChars = &buf_packedchars[buf_packedchars_out_n]; - buf_rects_out_n += src_tmp.GlyphsCount; - buf_packedchars_out_n += src_tmp.GlyphsCount; - - // Convert our ranges in the format stb_truetype wants - ImFontConfig& cfg = atlas->ConfigData[src_i]; - src_tmp.PackRange.font_size = cfg.SizePixels; - src_tmp.PackRange.first_unicode_codepoint_in_range = 0; - src_tmp.PackRange.array_of_unicode_codepoints = src_tmp.GlyphsList.Data; - src_tmp.PackRange.num_chars = src_tmp.GlyphsList.Size; - src_tmp.PackRange.chardata_for_range = src_tmp.PackedChars; - src_tmp.PackRange.h_oversample = (unsigned char)cfg.OversampleH; - src_tmp.PackRange.v_oversample = (unsigned char)cfg.OversampleV; - - // Gather the sizes of all rectangles we will need to pack (this loop is based on stbtt_PackFontRangesGatherRects) - const float scale = (cfg.SizePixels > 0) ? stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels) : stbtt_ScaleForMappingEmToPixels(&src_tmp.FontInfo, -cfg.SizePixels); - const int padding = atlas->TexGlyphPadding; - for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) - { - int x0, y0, x1, y1; - const int glyph_index_in_font = stbtt_FindGlyphIndex(&src_tmp.FontInfo, src_tmp.GlyphsList[glyph_i]); - IM_ASSERT(glyph_index_in_font != 0); - stbtt_GetGlyphBitmapBoxSubpixel(&src_tmp.FontInfo, glyph_index_in_font, scale * cfg.OversampleH, scale * cfg.OversampleV, 0, 0, &x0, &y0, &x1, &y1); - src_tmp.Rects[glyph_i].w = (stbrp_coord)(x1 - x0 + padding + cfg.OversampleH - 1); - src_tmp.Rects[glyph_i].h = (stbrp_coord)(y1 - y0 + padding + cfg.OversampleV - 1); - total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; - } - } - - // We need a width for the skyline algorithm, any width! - // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. - // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. - const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; - atlas->TexHeight = 0; - if (atlas->TexDesiredWidth > 0) - atlas->TexWidth = atlas->TexDesiredWidth; - else - atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; - - // 5. Start packing - // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). - const int TEX_HEIGHT_MAX = 1024 * 32; - stbtt_pack_context spc = {}; - stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MAX, 0, atlas->TexGlyphPadding, NULL); - ImFontAtlasBuildPackCustomRects(atlas, spc.pack_info); - - // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; - if (src_tmp.GlyphsCount == 0) - continue; - - stbrp_pack_rects((stbrp_context*)spc.pack_info, src_tmp.Rects, src_tmp.GlyphsCount); - - // Extend texture height and mark missing glyphs as non-packed so we won't render them. - // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) - for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) - if (src_tmp.Rects[glyph_i].was_packed) - atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); - } - - // 7. Allocate texture - atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); - atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); - atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight); - memset(atlas->TexPixelsAlpha8, 0, atlas->TexWidth * atlas->TexHeight); - spc.pixels = atlas->TexPixelsAlpha8; - spc.height = atlas->TexHeight; - - // 8. Render/rasterize font characters into the texture - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontConfig& cfg = atlas->ConfigData[src_i]; - ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; - if (src_tmp.GlyphsCount == 0) - continue; - - stbtt_PackFontRangesRenderIntoRects(&spc, &src_tmp.FontInfo, &src_tmp.PackRange, 1, src_tmp.Rects); - - // Apply multiply operator - if (cfg.RasterizerMultiply != 1.0f) - { - unsigned char multiply_table[256]; - ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); - stbrp_rect* r = &src_tmp.Rects[0]; - for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++, r++) - if (r->was_packed) - ImFontAtlasBuildMultiplyRectAlpha8(multiply_table, atlas->TexPixelsAlpha8, r->x, r->y, r->w, r->h, atlas->TexWidth * 1); - } - src_tmp.Rects = NULL; - } - - // End packing - stbtt_PackEnd(&spc); - buf_rects.clear(); - - // 9. Setup ImFont and glyphs for runtime - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcData& src_tmp = src_tmp_array[src_i]; - if (src_tmp.GlyphsCount == 0) - continue; - - // When merging fonts with MergeMode=true: - // - We can have multiple input fonts writing into a same destination font. - // - dst_font->ConfigData is != from cfg which is our source configuration. - ImFontConfig& cfg = atlas->ConfigData[src_i]; - ImFont* dst_font = cfg.DstFont; - - const float font_scale = stbtt_ScaleForPixelHeight(&src_tmp.FontInfo, cfg.SizePixels); - int unscaled_ascent, unscaled_descent, unscaled_line_gap; - stbtt_GetFontVMetrics(&src_tmp.FontInfo, &unscaled_ascent, &unscaled_descent, &unscaled_line_gap); - - const float ascent = ImFloor(unscaled_ascent * font_scale + ((unscaled_ascent > 0.0f) ? +1 : -1)); - const float descent = ImFloor(unscaled_descent * font_scale + ((unscaled_descent > 0.0f) ? +1 : -1)); - ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); - const float font_off_x = cfg.GlyphOffset.x; - const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); - - for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) - { - // Register glyph - const int codepoint = src_tmp.GlyphsList[glyph_i]; - const stbtt_packedchar& pc = src_tmp.PackedChars[glyph_i]; - stbtt_aligned_quad q; - float unused_x = 0.0f, unused_y = 0.0f; - stbtt_GetPackedQuad(src_tmp.PackedChars, atlas->TexWidth, atlas->TexHeight, glyph_i, &unused_x, &unused_y, &q, 0); - dst_font->AddGlyph(&cfg, (ImWchar)codepoint, q.x0 + font_off_x, q.y0 + font_off_y, q.x1 + font_off_x, q.y1 + font_off_y, q.s0, q.t0, q.s1, q.t1, pc.xadvance); - } - } - - // Cleanup temporary (ImVector doesn't honor destructor) - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - src_tmp_array[src_i].~ImFontBuildSrcData(); - - ImFontAtlasBuildFinish(atlas); - return true; -} - -const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype() -{ - static ImFontBuilderIO io; - io.FontBuilder_Build = ImFontAtlasBuildWithStbTruetype; - return &io; -} - -#endif // IMGUI_ENABLE_STB_TRUETYPE - -void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent) -{ - if (!font_config->MergeMode) - { - font->ClearOutputData(); - font->FontSize = font_config->SizePixels; - font->ConfigData = font_config; - font->ConfigDataCount = 0; - font->ContainerAtlas = atlas; - font->Ascent = ascent; - font->Descent = descent; - } - font->ConfigDataCount++; -} - -void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque) -{ - stbrp_context* pack_context = (stbrp_context*)stbrp_context_opaque; - IM_ASSERT(pack_context != NULL); - - ImVector& user_rects = atlas->CustomRects; - IM_ASSERT(user_rects.Size >= 1); // We expect at least the default custom rects to be registered, else something went wrong. - - ImVector pack_rects; - pack_rects.resize(user_rects.Size); - memset(pack_rects.Data, 0, (size_t)pack_rects.size_in_bytes()); - for (int i = 0; i < user_rects.Size; i++) - { - pack_rects[i].w = user_rects[i].Width; - pack_rects[i].h = user_rects[i].Height; - } - stbrp_pack_rects(pack_context, &pack_rects[0], pack_rects.Size); - for (int i = 0; i < pack_rects.Size; i++) - if (pack_rects[i].was_packed) - { - user_rects[i].X = pack_rects[i].x; - user_rects[i].Y = pack_rects[i].y; - IM_ASSERT(pack_rects[i].w == user_rects[i].Width && pack_rects[i].h == user_rects[i].Height); - atlas->TexHeight = ImMax(atlas->TexHeight, pack_rects[i].y + pack_rects[i].h); - } -} - -void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value) -{ - IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); - IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); - unsigned char* out_pixel = atlas->TexPixelsAlpha8 + x + (y * atlas->TexWidth); - for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) - for (int off_x = 0; off_x < w; off_x++) - out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : 0x00; -} - -void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value) -{ - IM_ASSERT(x >= 0 && x + w <= atlas->TexWidth); - IM_ASSERT(y >= 0 && y + h <= atlas->TexHeight); - unsigned int* out_pixel = atlas->TexPixelsRGBA32 + x + (y * atlas->TexWidth); - for (int off_y = 0; off_y < h; off_y++, out_pixel += atlas->TexWidth, in_str += w) - for (int off_x = 0; off_x < w; off_x++) - out_pixel[off_x] = (in_str[off_x] == in_marker_char) ? in_marker_pixel_value : IM_COL32_BLACK_TRANS; -} - -static void ImFontAtlasBuildRenderDefaultTexData(ImFontAtlas* atlas) -{ - ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdMouseCursors); - IM_ASSERT(r->IsPacked()); - - const int w = atlas->TexWidth; - if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) - { - // Render/copy pixels - IM_ASSERT(r->Width == FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1 && r->Height == FONT_ATLAS_DEFAULT_TEX_DATA_H); - const int x_for_white = r->X; - const int x_for_black = r->X + FONT_ATLAS_DEFAULT_TEX_DATA_W + 1; - if (atlas->TexPixelsAlpha8 != NULL) - { - ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', 0xFF); - ImFontAtlasBuildRender8bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', 0xFF); - } - else - { - ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_white, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, '.', IM_COL32_WHITE); - ImFontAtlasBuildRender32bppRectFromString(atlas, x_for_black, r->Y, FONT_ATLAS_DEFAULT_TEX_DATA_W, FONT_ATLAS_DEFAULT_TEX_DATA_H, FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS, 'X', IM_COL32_WHITE); - } - } - else - { - // Render 4 white pixels - IM_ASSERT(r->Width == 2 && r->Height == 2); - const int offset = (int)r->X + (int)r->Y * w; - if (atlas->TexPixelsAlpha8 != NULL) - { - atlas->TexPixelsAlpha8[offset] = atlas->TexPixelsAlpha8[offset + 1] = atlas->TexPixelsAlpha8[offset + w] = atlas->TexPixelsAlpha8[offset + w + 1] = 0xFF; - } - else - { - atlas->TexPixelsRGBA32[offset] = atlas->TexPixelsRGBA32[offset + 1] = atlas->TexPixelsRGBA32[offset + w] = atlas->TexPixelsRGBA32[offset + w + 1] = IM_COL32_WHITE; - } - } - atlas->TexUvWhitePixel = ImVec2((r->X + 0.5f) * atlas->TexUvScale.x, (r->Y + 0.5f) * atlas->TexUvScale.y); -} - -static void ImFontAtlasBuildRenderLinesTexData(ImFontAtlas* atlas) -{ - if (atlas->Flags & ImFontAtlasFlags_NoBakedLines) - return; - - // This generates a triangular shape in the texture, with the various line widths stacked on top of each other to allow interpolation between them - ImFontAtlasCustomRect* r = atlas->GetCustomRectByIndex(atlas->PackIdLines); - IM_ASSERT(r->IsPacked()); - for (unsigned int n = 0; n < IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1; n++) // +1 because of the zero-width row - { - // Each line consists of at least two empty pixels at the ends, with a line of solid pixels in the middle - unsigned int y = n; - unsigned int line_width = n; - unsigned int pad_left = (r->Width - line_width) / 2; - unsigned int pad_right = r->Width - (pad_left + line_width); - - // Write each slice - IM_ASSERT(pad_left + line_width + pad_right == r->Width && y < r->Height); // Make sure we're inside the texture bounds before we start writing pixels - if (atlas->TexPixelsAlpha8 != NULL) - { - unsigned char* write_ptr = &atlas->TexPixelsAlpha8[r->X + ((r->Y + y) * atlas->TexWidth)]; - for (unsigned int i = 0; i < pad_left; i++) - *(write_ptr + i) = 0x00; - - for (unsigned int i = 0; i < line_width; i++) - *(write_ptr + pad_left + i) = 0xFF; - - for (unsigned int i = 0; i < pad_right; i++) - *(write_ptr + pad_left + line_width + i) = 0x00; - } - else - { - unsigned int* write_ptr = &atlas->TexPixelsRGBA32[r->X + ((r->Y + y) * atlas->TexWidth)]; - for (unsigned int i = 0; i < pad_left; i++) - *(write_ptr + i) = IM_COL32_BLACK_TRANS; - - for (unsigned int i = 0; i < line_width; i++) - *(write_ptr + pad_left + i) = IM_COL32_WHITE; - - for (unsigned int i = 0; i < pad_right; i++) - *(write_ptr + pad_left + line_width + i) = IM_COL32_BLACK_TRANS; - } - - // Calculate UVs for this line - ImVec2 uv0 = ImVec2((float)(r->X + pad_left - 1), (float)(r->Y + y)) * atlas->TexUvScale; - ImVec2 uv1 = ImVec2((float)(r->X + pad_left + line_width + 1), (float)(r->Y + y + 1)) * atlas->TexUvScale; - float half_v = (uv0.y + uv1.y) * 0.5f; // Calculate a constant V in the middle of the row to avoid sampling artifacts - atlas->TexUvLines[n] = ImVec4(uv0.x, half_v, uv1.x, half_v); - } -} - -// Note: this is called / shared by both the stb_truetype and the FreeType builder -void ImFontAtlasBuildInit(ImFontAtlas* atlas) -{ - // Register texture region for mouse cursors or standard white pixels - if (atlas->PackIdMouseCursors < 0) - { - if (!(atlas->Flags & ImFontAtlasFlags_NoMouseCursors)) - atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(FONT_ATLAS_DEFAULT_TEX_DATA_W * 2 + 1, FONT_ATLAS_DEFAULT_TEX_DATA_H); - else - atlas->PackIdMouseCursors = atlas->AddCustomRectRegular(2, 2); - } - - // Register texture region for thick lines - // The +2 here is to give space for the end caps, whilst height +1 is to accommodate the fact we have a zero-width row - if (atlas->PackIdLines < 0) - { - if (!(atlas->Flags & ImFontAtlasFlags_NoBakedLines)) - atlas->PackIdLines = atlas->AddCustomRectRegular(IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 2, IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1); - } -} - -// This is called/shared by both the stb_truetype and the FreeType builder. -void ImFontAtlasBuildFinish(ImFontAtlas* atlas) -{ - // Render into our custom data blocks - IM_ASSERT(atlas->TexPixelsAlpha8 != NULL || atlas->TexPixelsRGBA32 != NULL); - ImFontAtlasBuildRenderDefaultTexData(atlas); - ImFontAtlasBuildRenderLinesTexData(atlas); - - // Register custom rectangle glyphs - for (int i = 0; i < atlas->CustomRects.Size; i++) - { - const ImFontAtlasCustomRect* r = &atlas->CustomRects[i]; - if (r->Font == NULL || r->GlyphID == 0) - continue; - - // Will ignore ImFontConfig settings: GlyphMinAdvanceX, GlyphMinAdvanceY, GlyphExtraSpacing, PixelSnapH - IM_ASSERT(r->Font->ContainerAtlas == atlas); - ImVec2 uv0, uv1; - atlas->CalcCustomRectUV(r, &uv0, &uv1); - r->Font->AddGlyph(NULL, (ImWchar)r->GlyphID, r->GlyphOffset.x, r->GlyphOffset.y, r->GlyphOffset.x + r->Width, r->GlyphOffset.y + r->Height, uv0.x, uv0.y, uv1.x, uv1.y, r->GlyphAdvanceX); - } - - // Build all fonts lookup tables - for (int i = 0; i < atlas->Fonts.Size; i++) - if (atlas->Fonts[i]->DirtyLookupTables) - atlas->Fonts[i]->BuildLookupTable(); - - // Ellipsis character is required for rendering elided text. We prefer using U+2026 (horizontal ellipsis). - // However some old fonts may contain ellipsis at U+0085. Here we auto-detect most suitable ellipsis character. - // FIXME: Also note that 0x2026 is currently seldom included in our font ranges. Because of this we are more likely to use three individual dots. - for (int i = 0; i < atlas->Fonts.size(); i++) - { - ImFont* font = atlas->Fonts[i]; - if (font->EllipsisChar != (ImWchar)-1) - continue; - const ImWchar ellipsis_variants[] = { (ImWchar)0x2026, (ImWchar)0x0085 }; - for (int j = 0; j < IM_ARRAYSIZE(ellipsis_variants); j++) - if (font->FindGlyphNoFallback(ellipsis_variants[j]) != NULL) // Verify glyph exists - { - font->EllipsisChar = ellipsis_variants[j]; - break; - } - } -} - -// Retrieve list of range (2 int per range, values are inclusive) -const ImWchar* ImFontAtlas::GetGlyphRangesDefault() -{ - static const ImWchar ranges[] = - { - 0x0020, 0x00FF, // Basic Latin + Latin Supplement - 0, - }; - return &ranges[0]; -} - -const ImWchar* ImFontAtlas::GetGlyphRangesKorean() -{ - static const ImWchar ranges[] = - { - 0x0020, 0x00FF, // Basic Latin + Latin Supplement - 0x3131, 0x3163, // Korean alphabets - 0xAC00, 0xD7A3, // Korean characters - 0, - }; - return &ranges[0]; -} - -const ImWchar* ImFontAtlas::GetGlyphRangesChineseFull() -{ - static const ImWchar ranges[] = - { - 0x0020, 0x00FF, // Basic Latin + Latin Supplement - 0x2000, 0x206F, // General Punctuation - 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana - 0x31F0, 0x31FF, // Katakana Phonetic Extensions - 0xFF00, 0xFFEF, // Half-width characters - 0x4e00, 0x9FAF, // CJK Ideograms - 0, - }; - return &ranges[0]; -} - -static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges) -{ - for (int n = 0; n < accumulative_offsets_count; n++, out_ranges += 2) - { - out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]); - base_codepoint += accumulative_offsets[n]; - } - out_ranges[0] = 0; -} - -//------------------------------------------------------------------------- -// [SECTION] ImFontAtlas glyph ranges helpers -//------------------------------------------------------------------------- - -const ImWchar* ImFontAtlas::GetGlyphRangesChineseSimplifiedCommon() -{ - // Store 2500 regularly used characters for Simplified Chinese. - // Sourced from https://zh.wiktionary.org/wiki/%E9%99%84%E5%BD%95:%E7%8E%B0%E4%BB%A3%E6%B1%89%E8%AF%AD%E5%B8%B8%E7%94%A8%E5%AD%97%E8%A1%A8 - // This table covers 97.97% of all characters used during the month in July, 1987. - // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. - // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) - static const short accumulative_offsets_from_0x4E00[] = - { - 0,1,2,4,1,1,1,1,2,1,3,2,1,2,2,1,1,1,1,1,5,2,1,2,3,3,3,2,2,4,1,1,1,2,1,5,2,3,1,2,1,2,1,1,2,1,1,2,2,1,4,1,1,1,1,5,10,1,2,19,2,1,2,1,2,1,2,1,2, - 1,5,1,6,3,2,1,2,2,1,1,1,4,8,5,1,1,4,1,1,3,1,2,1,5,1,2,1,1,1,10,1,1,5,2,4,6,1,4,2,2,2,12,2,1,1,6,1,1,1,4,1,1,4,6,5,1,4,2,2,4,10,7,1,1,4,2,4, - 2,1,4,3,6,10,12,5,7,2,14,2,9,1,1,6,7,10,4,7,13,1,5,4,8,4,1,1,2,28,5,6,1,1,5,2,5,20,2,2,9,8,11,2,9,17,1,8,6,8,27,4,6,9,20,11,27,6,68,2,2,1,1, - 1,2,1,2,2,7,6,11,3,3,1,1,3,1,2,1,1,1,1,1,3,1,1,8,3,4,1,5,7,2,1,4,4,8,4,2,1,2,1,1,4,5,6,3,6,2,12,3,1,3,9,2,4,3,4,1,5,3,3,1,3,7,1,5,1,1,1,1,2, - 3,4,5,2,3,2,6,1,1,2,1,7,1,7,3,4,5,15,2,2,1,5,3,22,19,2,1,1,1,1,2,5,1,1,1,6,1,1,12,8,2,9,18,22,4,1,1,5,1,16,1,2,7,10,15,1,1,6,2,4,1,2,4,1,6, - 1,1,3,2,4,1,6,4,5,1,2,1,1,2,1,10,3,1,3,2,1,9,3,2,5,7,2,19,4,3,6,1,1,1,1,1,4,3,2,1,1,1,2,5,3,1,1,1,2,2,1,1,2,1,1,2,1,3,1,1,1,3,7,1,4,1,1,2,1, - 1,2,1,2,4,4,3,8,1,1,1,2,1,3,5,1,3,1,3,4,6,2,2,14,4,6,6,11,9,1,15,3,1,28,5,2,5,5,3,1,3,4,5,4,6,14,3,2,3,5,21,2,7,20,10,1,2,19,2,4,28,28,2,3, - 2,1,14,4,1,26,28,42,12,40,3,52,79,5,14,17,3,2,2,11,3,4,6,3,1,8,2,23,4,5,8,10,4,2,7,3,5,1,1,6,3,1,2,2,2,5,28,1,1,7,7,20,5,3,29,3,17,26,1,8,4, - 27,3,6,11,23,5,3,4,6,13,24,16,6,5,10,25,35,7,3,2,3,3,14,3,6,2,6,1,4,2,3,8,2,1,1,3,3,3,4,1,1,13,2,2,4,5,2,1,14,14,1,2,2,1,4,5,2,3,1,14,3,12, - 3,17,2,16,5,1,2,1,8,9,3,19,4,2,2,4,17,25,21,20,28,75,1,10,29,103,4,1,2,1,1,4,2,4,1,2,3,24,2,2,2,1,1,2,1,3,8,1,1,1,2,1,1,3,1,1,1,6,1,5,3,1,1, - 1,3,4,1,1,5,2,1,5,6,13,9,16,1,1,1,1,3,2,3,2,4,5,2,5,2,2,3,7,13,7,2,2,1,1,1,1,2,3,3,2,1,6,4,9,2,1,14,2,14,2,1,18,3,4,14,4,11,41,15,23,15,23, - 176,1,3,4,1,1,1,1,5,3,1,2,3,7,3,1,1,2,1,2,4,4,6,2,4,1,9,7,1,10,5,8,16,29,1,1,2,2,3,1,3,5,2,4,5,4,1,1,2,2,3,3,7,1,6,10,1,17,1,44,4,6,2,1,1,6, - 5,4,2,10,1,6,9,2,8,1,24,1,2,13,7,8,8,2,1,4,1,3,1,3,3,5,2,5,10,9,4,9,12,2,1,6,1,10,1,1,7,7,4,10,8,3,1,13,4,3,1,6,1,3,5,2,1,2,17,16,5,2,16,6, - 1,4,2,1,3,3,6,8,5,11,11,1,3,3,2,4,6,10,9,5,7,4,7,4,7,1,1,4,2,1,3,6,8,7,1,6,11,5,5,3,24,9,4,2,7,13,5,1,8,82,16,61,1,1,1,4,2,2,16,10,3,8,1,1, - 6,4,2,1,3,1,1,1,4,3,8,4,2,2,1,1,1,1,1,6,3,5,1,1,4,6,9,2,1,1,1,2,1,7,2,1,6,1,5,4,4,3,1,8,1,3,3,1,3,2,2,2,2,3,1,6,1,2,1,2,1,3,7,1,8,2,1,2,1,5, - 2,5,3,5,10,1,2,1,1,3,2,5,11,3,9,3,5,1,1,5,9,1,2,1,5,7,9,9,8,1,3,3,3,6,8,2,3,2,1,1,32,6,1,2,15,9,3,7,13,1,3,10,13,2,14,1,13,10,2,1,3,10,4,15, - 2,15,15,10,1,3,9,6,9,32,25,26,47,7,3,2,3,1,6,3,4,3,2,8,5,4,1,9,4,2,2,19,10,6,2,3,8,1,2,2,4,2,1,9,4,4,4,6,4,8,9,2,3,1,1,1,1,3,5,5,1,3,8,4,6, - 2,1,4,12,1,5,3,7,13,2,5,8,1,6,1,2,5,14,6,1,5,2,4,8,15,5,1,23,6,62,2,10,1,1,8,1,2,2,10,4,2,2,9,2,1,1,3,2,3,1,5,3,3,2,1,3,8,1,1,1,11,3,1,1,4, - 3,7,1,14,1,2,3,12,5,2,5,1,6,7,5,7,14,11,1,3,1,8,9,12,2,1,11,8,4,4,2,6,10,9,13,1,1,3,1,5,1,3,2,4,4,1,18,2,3,14,11,4,29,4,2,7,1,3,13,9,2,2,5, - 3,5,20,7,16,8,5,72,34,6,4,22,12,12,28,45,36,9,7,39,9,191,1,1,1,4,11,8,4,9,2,3,22,1,1,1,1,4,17,1,7,7,1,11,31,10,2,4,8,2,3,2,1,4,2,16,4,32,2, - 3,19,13,4,9,1,5,2,14,8,1,1,3,6,19,6,5,1,16,6,2,10,8,5,1,2,3,1,5,5,1,11,6,6,1,3,3,2,6,3,8,1,1,4,10,7,5,7,7,5,8,9,2,1,3,4,1,1,3,1,3,3,2,6,16, - 1,4,6,3,1,10,6,1,3,15,2,9,2,10,25,13,9,16,6,2,2,10,11,4,3,9,1,2,6,6,5,4,30,40,1,10,7,12,14,33,6,3,6,7,3,1,3,1,11,14,4,9,5,12,11,49,18,51,31, - 140,31,2,2,1,5,1,8,1,10,1,4,4,3,24,1,10,1,3,6,6,16,3,4,5,2,1,4,2,57,10,6,22,2,22,3,7,22,6,10,11,36,18,16,33,36,2,5,5,1,1,1,4,10,1,4,13,2,7, - 5,2,9,3,4,1,7,43,3,7,3,9,14,7,9,1,11,1,1,3,7,4,18,13,1,14,1,3,6,10,73,2,2,30,6,1,11,18,19,13,22,3,46,42,37,89,7,3,16,34,2,2,3,9,1,7,1,1,1,2, - 2,4,10,7,3,10,3,9,5,28,9,2,6,13,7,3,1,3,10,2,7,2,11,3,6,21,54,85,2,1,4,2,2,1,39,3,21,2,2,5,1,1,1,4,1,1,3,4,15,1,3,2,4,4,2,3,8,2,20,1,8,7,13, - 4,1,26,6,2,9,34,4,21,52,10,4,4,1,5,12,2,11,1,7,2,30,12,44,2,30,1,1,3,6,16,9,17,39,82,2,2,24,7,1,7,3,16,9,14,44,2,1,2,1,2,3,5,2,4,1,6,7,5,3, - 2,6,1,11,5,11,2,1,18,19,8,1,3,24,29,2,1,3,5,2,2,1,13,6,5,1,46,11,3,5,1,1,5,8,2,10,6,12,6,3,7,11,2,4,16,13,2,5,1,1,2,2,5,2,28,5,2,23,10,8,4, - 4,22,39,95,38,8,14,9,5,1,13,5,4,3,13,12,11,1,9,1,27,37,2,5,4,4,63,211,95,2,2,2,1,3,5,2,1,1,2,2,1,1,1,3,2,4,1,2,1,1,5,2,2,1,1,2,3,1,3,1,1,1, - 3,1,4,2,1,3,6,1,1,3,7,15,5,3,2,5,3,9,11,4,2,22,1,6,3,8,7,1,4,28,4,16,3,3,25,4,4,27,27,1,4,1,2,2,7,1,3,5,2,28,8,2,14,1,8,6,16,25,3,3,3,14,3, - 3,1,1,2,1,4,6,3,8,4,1,1,1,2,3,6,10,6,2,3,18,3,2,5,5,4,3,1,5,2,5,4,23,7,6,12,6,4,17,11,9,5,1,1,10,5,12,1,1,11,26,33,7,3,6,1,17,7,1,5,12,1,11, - 2,4,1,8,14,17,23,1,2,1,7,8,16,11,9,6,5,2,6,4,16,2,8,14,1,11,8,9,1,1,1,9,25,4,11,19,7,2,15,2,12,8,52,7,5,19,2,16,4,36,8,1,16,8,24,26,4,6,2,9, - 5,4,36,3,28,12,25,15,37,27,17,12,59,38,5,32,127,1,2,9,17,14,4,1,2,1,1,8,11,50,4,14,2,19,16,4,17,5,4,5,26,12,45,2,23,45,104,30,12,8,3,10,2,2, - 3,3,1,4,20,7,2,9,6,15,2,20,1,3,16,4,11,15,6,134,2,5,59,1,2,2,2,1,9,17,3,26,137,10,211,59,1,2,4,1,4,1,1,1,2,6,2,3,1,1,2,3,2,3,1,3,4,4,2,3,3, - 1,4,3,1,7,2,2,3,1,2,1,3,3,3,2,2,3,2,1,3,14,6,1,3,2,9,6,15,27,9,34,145,1,1,2,1,1,1,1,2,1,1,1,1,2,2,2,3,1,2,1,1,1,2,3,5,8,3,5,2,4,1,3,2,2,2,12, - 4,1,1,1,10,4,5,1,20,4,16,1,15,9,5,12,2,9,2,5,4,2,26,19,7,1,26,4,30,12,15,42,1,6,8,172,1,1,4,2,1,1,11,2,2,4,2,1,2,1,10,8,1,2,1,4,5,1,2,5,1,8, - 4,1,3,4,2,1,6,2,1,3,4,1,2,1,1,1,1,12,5,7,2,4,3,1,1,1,3,3,6,1,2,2,3,3,3,2,1,2,12,14,11,6,6,4,12,2,8,1,7,10,1,35,7,4,13,15,4,3,23,21,28,52,5, - 26,5,6,1,7,10,2,7,53,3,2,1,1,1,2,163,532,1,10,11,1,3,3,4,8,2,8,6,2,2,23,22,4,2,2,4,2,1,3,1,3,3,5,9,8,2,1,2,8,1,10,2,12,21,20,15,105,2,3,1,1, - 3,2,3,1,1,2,5,1,4,15,11,19,1,1,1,1,5,4,5,1,1,2,5,3,5,12,1,2,5,1,11,1,1,15,9,1,4,5,3,26,8,2,1,3,1,1,15,19,2,12,1,2,5,2,7,2,19,2,20,6,26,7,5, - 2,2,7,34,21,13,70,2,128,1,1,2,1,1,2,1,1,3,2,2,2,15,1,4,1,3,4,42,10,6,1,49,85,8,1,2,1,1,4,4,2,3,6,1,5,7,4,3,211,4,1,2,1,2,5,1,2,4,2,2,6,5,6, - 10,3,4,48,100,6,2,16,296,5,27,387,2,2,3,7,16,8,5,38,15,39,21,9,10,3,7,59,13,27,21,47,5,21,6 - }; - static ImWchar base_ranges[] = // not zero-terminated - { - 0x0020, 0x00FF, // Basic Latin + Latin Supplement - 0x2000, 0x206F, // General Punctuation - 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana - 0x31F0, 0x31FF, // Katakana Phonetic Extensions - 0xFF00, 0xFFEF // Half-width characters - }; - static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00) * 2 + 1] = { 0 }; - if (!full_ranges[0]) - { - memcpy(full_ranges, base_ranges, sizeof(base_ranges)); - UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); - } - return &full_ranges[0]; -} - -const ImWchar* ImFontAtlas::GetGlyphRangesJapanese() -{ - // 2999 ideograms code points for Japanese - // - 2136 Joyo (meaning "for regular use" or "for common use") Kanji code points - // - 863 Jinmeiyo (meaning "for personal name") Kanji code points - // - Sourced from the character information database of the Information-technology Promotion Agency, Japan - // - https://mojikiban.ipa.go.jp/mji/ - // - Available under the terms of the Creative Commons Attribution-ShareAlike 2.1 Japan (CC BY-SA 2.1 JP). - // - https://creativecommons.org/licenses/by-sa/2.1/jp/deed.en - // - https://creativecommons.org/licenses/by-sa/2.1/jp/legalcode - // - You can generate this code by the script at: - // - https://github.com/vaiorabbit/everyday_use_kanji - // - References: - // - List of Joyo Kanji - // - (Official list by the Agency for Cultural Affairs) https://www.bunka.go.jp/kokugo_nihongo/sisaku/joho/joho/kakuki/14/tosin02/index.html - // - (Wikipedia) https://en.wikipedia.org/wiki/List_of_j%C5%8Dy%C5%8D_kanji - // - List of Jinmeiyo Kanji - // - (Official list by the Ministry of Justice) http://www.moj.go.jp/MINJI/minji86.html - // - (Wikipedia) https://en.wikipedia.org/wiki/Jinmeiy%C5%8D_kanji - // - Missing 1 Joyo Kanji: U+20B9F (Kun'yomi: Shikaru, On'yomi: Shitsu,shichi), see https://github.com/ocornut/imgui/pull/3627 for details. - // You can use ImFontGlyphRangesBuilder to create your own ranges derived from this, by merging existing ranges or adding new characters. - // (Stored as accumulative offsets from the initial unicode codepoint 0x4E00. This encoding is designed to helps us compact the source code size.) - static const short accumulative_offsets_from_0x4E00[] = - { - 0,1,2,4,1,1,1,1,2,1,3,3,2,2,1,5,3,5,7,5,6,1,2,1,7,2,6,3,1,8,1,1,4,1,1,18,2,11,2,6,2,1,2,1,5,1,2,1,3,1,2,1,2,3,3,1,1,2,3,1,1,1,12,7,9,1,4,5,1, - 1,2,1,10,1,1,9,2,2,4,5,6,9,3,1,1,1,1,9,3,18,5,2,2,2,2,1,6,3,7,1,1,1,1,2,2,4,2,1,23,2,10,4,3,5,2,4,10,2,4,13,1,6,1,9,3,1,1,6,6,7,6,3,1,2,11,3, - 2,2,3,2,15,2,2,5,4,3,6,4,1,2,5,2,12,16,6,13,9,13,2,1,1,7,16,4,7,1,19,1,5,1,2,2,7,7,8,2,6,5,4,9,18,7,4,5,9,13,11,8,15,2,1,1,1,2,1,2,2,1,2,2,8, - 2,9,3,3,1,1,4,4,1,1,1,4,9,1,4,3,5,5,2,7,5,3,4,8,2,1,13,2,3,3,1,14,1,1,4,5,1,3,6,1,5,2,1,1,3,3,3,3,1,1,2,7,6,6,7,1,4,7,6,1,1,1,1,1,12,3,3,9,5, - 2,6,1,5,6,1,2,3,18,2,4,14,4,1,3,6,1,1,6,3,5,5,3,2,2,2,2,12,3,1,4,2,3,2,3,11,1,7,4,1,2,1,3,17,1,9,1,24,1,1,4,2,2,4,1,2,7,1,1,1,3,1,2,2,4,15,1, - 1,2,1,1,2,1,5,2,5,20,2,5,9,1,10,8,7,6,1,1,1,1,1,1,6,2,1,2,8,1,1,1,1,5,1,1,3,1,1,1,1,3,1,1,12,4,1,3,1,1,1,1,1,10,3,1,7,5,13,1,2,3,4,6,1,1,30, - 2,9,9,1,15,38,11,3,1,8,24,7,1,9,8,10,2,1,9,31,2,13,6,2,9,4,49,5,2,15,2,1,10,2,1,1,1,2,2,6,15,30,35,3,14,18,8,1,16,10,28,12,19,45,38,1,3,2,3, - 13,2,1,7,3,6,5,3,4,3,1,5,7,8,1,5,3,18,5,3,6,1,21,4,24,9,24,40,3,14,3,21,3,2,1,2,4,2,3,1,15,15,6,5,1,1,3,1,5,6,1,9,7,3,3,2,1,4,3,8,21,5,16,4, - 5,2,10,11,11,3,6,3,2,9,3,6,13,1,2,1,1,1,1,11,12,6,6,1,4,2,6,5,2,1,1,3,3,6,13,3,1,1,5,1,2,3,3,14,2,1,2,2,2,5,1,9,5,1,1,6,12,3,12,3,4,13,2,14, - 2,8,1,17,5,1,16,4,2,2,21,8,9,6,23,20,12,25,19,9,38,8,3,21,40,25,33,13,4,3,1,4,1,2,4,1,2,5,26,2,1,1,2,1,3,6,2,1,1,1,1,1,1,2,3,1,1,1,9,2,3,1,1, - 1,3,6,3,2,1,1,6,6,1,8,2,2,2,1,4,1,2,3,2,7,3,2,4,1,2,1,2,2,1,1,1,1,1,3,1,2,5,4,10,9,4,9,1,1,1,1,1,1,5,3,2,1,6,4,9,6,1,10,2,31,17,8,3,7,5,40,1, - 7,7,1,6,5,2,10,7,8,4,15,39,25,6,28,47,18,10,7,1,3,1,1,2,1,1,1,3,3,3,1,1,1,3,4,2,1,4,1,3,6,10,7,8,6,2,2,1,3,3,2,5,8,7,9,12,2,15,1,1,4,1,2,1,1, - 1,3,2,1,3,3,5,6,2,3,2,10,1,4,2,8,1,1,1,11,6,1,21,4,16,3,1,3,1,4,2,3,6,5,1,3,1,1,3,3,4,6,1,1,10,4,2,7,10,4,7,4,2,9,4,3,1,1,1,4,1,8,3,4,1,3,1, - 6,1,4,2,1,4,7,2,1,8,1,4,5,1,1,2,2,4,6,2,7,1,10,1,1,3,4,11,10,8,21,4,6,1,3,5,2,1,2,28,5,5,2,3,13,1,2,3,1,4,2,1,5,20,3,8,11,1,3,3,3,1,8,10,9,2, - 10,9,2,3,1,1,2,4,1,8,3,6,1,7,8,6,11,1,4,29,8,4,3,1,2,7,13,1,4,1,6,2,6,12,12,2,20,3,2,3,6,4,8,9,2,7,34,5,1,18,6,1,1,4,4,5,7,9,1,2,2,4,3,4,1,7, - 2,2,2,6,2,3,25,5,3,6,1,4,6,7,4,2,1,4,2,13,6,4,4,3,1,5,3,4,4,3,2,1,1,4,1,2,1,1,3,1,11,1,6,3,1,7,3,6,2,8,8,6,9,3,4,11,3,2,10,12,2,5,11,1,6,4,5, - 3,1,8,5,4,6,6,3,5,1,1,3,2,1,2,2,6,17,12,1,10,1,6,12,1,6,6,19,9,6,16,1,13,4,4,15,7,17,6,11,9,15,12,6,7,2,1,2,2,15,9,3,21,4,6,49,18,7,3,2,3,1, - 6,8,2,2,6,2,9,1,3,6,4,4,1,2,16,2,5,2,1,6,2,3,5,3,1,2,5,1,2,1,9,3,1,8,6,4,8,11,3,1,1,1,1,3,1,13,8,4,1,3,2,2,1,4,1,11,1,5,2,1,5,2,5,8,6,1,1,7, - 4,3,8,3,2,7,2,1,5,1,5,2,4,7,6,2,8,5,1,11,4,5,3,6,18,1,2,13,3,3,1,21,1,1,4,1,4,1,1,1,8,1,2,2,7,1,2,4,2,2,9,2,1,1,1,4,3,6,3,12,5,1,1,1,5,6,3,2, - 4,8,2,2,4,2,7,1,8,9,5,2,3,2,1,3,2,13,7,14,6,5,1,1,2,1,4,2,23,2,1,1,6,3,1,4,1,15,3,1,7,3,9,14,1,3,1,4,1,1,5,8,1,3,8,3,8,15,11,4,14,4,4,2,5,5, - 1,7,1,6,14,7,7,8,5,15,4,8,6,5,6,2,1,13,1,20,15,11,9,2,5,6,2,11,2,6,2,5,1,5,8,4,13,19,25,4,1,1,11,1,34,2,5,9,14,6,2,2,6,1,1,14,1,3,14,13,1,6, - 12,21,14,14,6,32,17,8,32,9,28,1,2,4,11,8,3,1,14,2,5,15,1,1,1,1,3,6,4,1,3,4,11,3,1,1,11,30,1,5,1,4,1,5,8,1,1,3,2,4,3,17,35,2,6,12,17,3,1,6,2, - 1,1,12,2,7,3,3,2,1,16,2,8,3,6,5,4,7,3,3,8,1,9,8,5,1,2,1,3,2,8,1,2,9,12,1,1,2,3,8,3,24,12,4,3,7,5,8,3,3,3,3,3,3,1,23,10,3,1,2,2,6,3,1,16,1,16, - 22,3,10,4,11,6,9,7,7,3,6,2,2,2,4,10,2,1,1,2,8,7,1,6,4,1,3,3,3,5,10,12,12,2,3,12,8,15,1,1,16,6,6,1,5,9,11,4,11,4,2,6,12,1,17,5,13,1,4,9,5,1,11, - 2,1,8,1,5,7,28,8,3,5,10,2,17,3,38,22,1,2,18,12,10,4,38,18,1,4,44,19,4,1,8,4,1,12,1,4,31,12,1,14,7,75,7,5,10,6,6,13,3,2,11,11,3,2,5,28,15,6,18, - 18,5,6,4,3,16,1,7,18,7,36,3,5,3,1,7,1,9,1,10,7,2,4,2,6,2,9,7,4,3,32,12,3,7,10,2,23,16,3,1,12,3,31,4,11,1,3,8,9,5,1,30,15,6,12,3,2,2,11,19,9, - 14,2,6,2,3,19,13,17,5,3,3,25,3,14,1,1,1,36,1,3,2,19,3,13,36,9,13,31,6,4,16,34,2,5,4,2,3,3,5,1,1,1,4,3,1,17,3,2,3,5,3,1,3,2,3,5,6,3,12,11,1,3, - 1,2,26,7,12,7,2,14,3,3,7,7,11,25,25,28,16,4,36,1,2,1,6,2,1,9,3,27,17,4,3,4,13,4,1,3,2,2,1,10,4,2,4,6,3,8,2,1,18,1,1,24,2,2,4,33,2,3,63,7,1,6, - 40,7,3,4,4,2,4,15,18,1,16,1,1,11,2,41,14,1,3,18,13,3,2,4,16,2,17,7,15,24,7,18,13,44,2,2,3,6,1,1,7,5,1,7,1,4,3,3,5,10,8,2,3,1,8,1,1,27,4,2,1, - 12,1,2,1,10,6,1,6,7,5,2,3,7,11,5,11,3,6,6,2,3,15,4,9,1,1,2,1,2,11,2,8,12,8,5,4,2,3,1,5,2,2,1,14,1,12,11,4,1,11,17,17,4,3,2,5,5,7,3,1,5,9,9,8, - 2,5,6,6,13,13,2,1,2,6,1,2,2,49,4,9,1,2,10,16,7,8,4,3,2,23,4,58,3,29,1,14,19,19,11,11,2,7,5,1,3,4,6,2,18,5,12,12,17,17,3,3,2,4,1,6,2,3,4,3,1, - 1,1,1,5,1,1,9,1,3,1,3,6,1,8,1,1,2,6,4,14,3,1,4,11,4,1,3,32,1,2,4,13,4,1,2,4,2,1,3,1,11,1,4,2,1,4,4,6,3,5,1,6,5,7,6,3,23,3,5,3,5,3,3,13,3,9,10, - 1,12,10,2,3,18,13,7,160,52,4,2,2,3,2,14,5,4,12,4,6,4,1,20,4,11,6,2,12,27,1,4,1,2,2,7,4,5,2,28,3,7,25,8,3,19,3,6,10,2,2,1,10,2,5,4,1,3,4,1,5, - 3,2,6,9,3,6,2,16,3,3,16,4,5,5,3,2,1,2,16,15,8,2,6,21,2,4,1,22,5,8,1,1,21,11,2,1,11,11,19,13,12,4,2,3,2,3,6,1,8,11,1,4,2,9,5,2,1,11,2,9,1,1,2, - 14,31,9,3,4,21,14,4,8,1,7,2,2,2,5,1,4,20,3,3,4,10,1,11,9,8,2,1,4,5,14,12,14,2,17,9,6,31,4,14,1,20,13,26,5,2,7,3,6,13,2,4,2,19,6,2,2,18,9,3,5, - 12,12,14,4,6,2,3,6,9,5,22,4,5,25,6,4,8,5,2,6,27,2,35,2,16,3,7,8,8,6,6,5,9,17,2,20,6,19,2,13,3,1,1,1,4,17,12,2,14,7,1,4,18,12,38,33,2,10,1,1, - 2,13,14,17,11,50,6,33,20,26,74,16,23,45,50,13,38,33,6,6,7,4,4,2,1,3,2,5,8,7,8,9,3,11,21,9,13,1,3,10,6,7,1,2,2,18,5,5,1,9,9,2,68,9,19,13,2,5, - 1,4,4,7,4,13,3,9,10,21,17,3,26,2,1,5,2,4,5,4,1,7,4,7,3,4,2,1,6,1,1,20,4,1,9,2,2,1,3,3,2,3,2,1,1,1,20,2,3,1,6,2,3,6,2,4,8,1,3,2,10,3,5,3,4,4, - 3,4,16,1,6,1,10,2,4,2,1,1,2,10,11,2,2,3,1,24,31,4,10,10,2,5,12,16,164,15,4,16,7,9,15,19,17,1,2,1,1,5,1,1,1,1,1,3,1,4,3,1,3,1,3,1,2,1,1,3,3,7, - 2,8,1,2,2,2,1,3,4,3,7,8,12,92,2,10,3,1,3,14,5,25,16,42,4,7,7,4,2,21,5,27,26,27,21,25,30,31,2,1,5,13,3,22,5,6,6,11,9,12,1,5,9,7,5,5,22,60,3,5, - 13,1,1,8,1,1,3,3,2,1,9,3,3,18,4,1,2,3,7,6,3,1,2,3,9,1,3,1,3,2,1,3,1,1,1,2,1,11,3,1,6,9,1,3,2,3,1,2,1,5,1,1,4,3,4,1,2,2,4,4,1,7,2,1,2,2,3,5,13, - 18,3,4,14,9,9,4,16,3,7,5,8,2,6,48,28,3,1,1,4,2,14,8,2,9,2,1,15,2,4,3,2,10,16,12,8,7,1,1,3,1,1,1,2,7,4,1,6,4,38,39,16,23,7,15,15,3,2,12,7,21, - 37,27,6,5,4,8,2,10,8,8,6,5,1,2,1,3,24,1,16,17,9,23,10,17,6,1,51,55,44,13,294,9,3,6,2,4,2,2,15,1,1,1,13,21,17,68,14,8,9,4,1,4,9,3,11,7,1,1,1, - 5,6,3,2,1,1,1,2,3,8,1,2,2,4,1,5,5,2,1,4,3,7,13,4,1,4,1,3,1,1,1,5,5,10,1,6,1,5,2,1,5,2,4,1,4,5,7,3,18,2,9,11,32,4,3,3,2,4,7,11,16,9,11,8,13,38, - 32,8,4,2,1,1,2,1,2,4,4,1,1,1,4,1,21,3,11,1,16,1,1,6,1,3,2,4,9,8,57,7,44,1,3,3,13,3,10,1,1,7,5,2,7,21,47,63,3,15,4,7,1,16,1,1,2,8,2,3,42,15,4, - 1,29,7,22,10,3,78,16,12,20,18,4,67,11,5,1,3,15,6,21,31,32,27,18,13,71,35,5,142,4,10,1,2,50,19,33,16,35,37,16,19,27,7,1,133,19,1,4,8,7,20,1,4, - 4,1,10,3,1,6,1,2,51,5,40,15,24,43,22928,11,1,13,154,70,3,1,1,7,4,10,1,2,1,1,2,1,2,1,2,2,1,1,2,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1, - 3,2,1,1,1,1,2,1,1, - }; - static ImWchar base_ranges[] = // not zero-terminated - { - 0x0020, 0x00FF, // Basic Latin + Latin Supplement - 0x3000, 0x30FF, // CJK Symbols and Punctuations, Hiragana, Katakana - 0x31F0, 0x31FF, // Katakana Phonetic Extensions - 0xFF00, 0xFFEF // Half-width characters - }; - static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E00)*2 + 1] = { 0 }; - if (!full_ranges[0]) - { - memcpy(full_ranges, base_ranges, sizeof(base_ranges)); - UnpackAccumulativeOffsetsIntoRanges(0x4E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges + IM_ARRAYSIZE(base_ranges)); - } - return &full_ranges[0]; -} - -const ImWchar* ImFontAtlas::GetGlyphRangesCyrillic() -{ - static const ImWchar ranges[] = - { - 0x0020, 0x00FF, // Basic Latin + Latin Supplement - 0x0400, 0x052F, // Cyrillic + Cyrillic Supplement - 0x2DE0, 0x2DFF, // Cyrillic Extended-A - 0xA640, 0xA69F, // Cyrillic Extended-B - 0, - }; - return &ranges[0]; -} - -const ImWchar* ImFontAtlas::GetGlyphRangesThai() -{ - static const ImWchar ranges[] = - { - 0x0020, 0x00FF, // Basic Latin - 0x2010, 0x205E, // Punctuations - 0x0E00, 0x0E7F, // Thai - 0, - }; - return &ranges[0]; -} - -const ImWchar* ImFontAtlas::GetGlyphRangesVietnamese() -{ - static const ImWchar ranges[] = - { - 0x0020, 0x00FF, // Basic Latin - 0x0102, 0x0103, - 0x0110, 0x0111, - 0x0128, 0x0129, - 0x0168, 0x0169, - 0x01A0, 0x01A1, - 0x01AF, 0x01B0, - 0x1EA0, 0x1EF9, - 0, - }; - return &ranges[0]; -} - -//----------------------------------------------------------------------------- -// [SECTION] ImFontGlyphRangesBuilder -//----------------------------------------------------------------------------- - -void ImFontGlyphRangesBuilder::AddText(const char* text, const char* text_end) -{ - while (text_end ? (text < text_end) : *text) - { - unsigned int c = 0; - int c_len = ImTextCharFromUtf8(&c, text, text_end); - text += c_len; - if (c_len == 0) - break; - AddChar((ImWchar)c); - } -} - -void ImFontGlyphRangesBuilder::AddRanges(const ImWchar* ranges) -{ - for (; ranges[0]; ranges += 2) - for (ImWchar c = ranges[0]; c <= ranges[1]; c++) - AddChar(c); -} - -void ImFontGlyphRangesBuilder::BuildRanges(ImVector* out_ranges) -{ - const int max_codepoint = IM_UNICODE_CODEPOINT_MAX; - for (int n = 0; n <= max_codepoint; n++) - if (GetBit(n)) - { - out_ranges->push_back((ImWchar)n); - while (n < max_codepoint && GetBit(n + 1)) - n++; - out_ranges->push_back((ImWchar)n); - } - out_ranges->push_back(0); -} - -//----------------------------------------------------------------------------- -// [SECTION] ImFont -//----------------------------------------------------------------------------- - -ImFont::ImFont() -{ - FontSize = 0.0f; - FallbackAdvanceX = 0.0f; - FallbackChar = (ImWchar)'?'; - EllipsisChar = (ImWchar)-1; - FallbackGlyph = NULL; - ContainerAtlas = NULL; - ConfigData = NULL; - ConfigDataCount = 0; - DirtyLookupTables = false; - Scale = 1.0f; - Ascent = Descent = 0.0f; - MetricsTotalSurface = 0; - memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); -} - -ImFont::~ImFont() -{ - ClearOutputData(); -} - -void ImFont::ClearOutputData() -{ - FontSize = 0.0f; - FallbackAdvanceX = 0.0f; - Glyphs.clear(); - IndexAdvanceX.clear(); - IndexLookup.clear(); - FallbackGlyph = NULL; - ContainerAtlas = NULL; - DirtyLookupTables = true; - Ascent = Descent = 0.0f; - MetricsTotalSurface = 0; -} - -void ImFont::BuildLookupTable() -{ - int max_codepoint = 0; - for (int i = 0; i != Glyphs.Size; i++) - max_codepoint = ImMax(max_codepoint, (int)Glyphs[i].Codepoint); - - // Build lookup table - IM_ASSERT(Glyphs.Size < 0xFFFF); // -1 is reserved - IndexAdvanceX.clear(); - IndexLookup.clear(); - DirtyLookupTables = false; - memset(Used4kPagesMap, 0, sizeof(Used4kPagesMap)); - GrowIndex(max_codepoint + 1); - for (int i = 0; i < Glyphs.Size; i++) - { - int codepoint = (int)Glyphs[i].Codepoint; - IndexAdvanceX[codepoint] = Glyphs[i].AdvanceX; - IndexLookup[codepoint] = (ImWchar)i; - - // Mark 4K page as used - const int page_n = codepoint / 4096; - Used4kPagesMap[page_n >> 3] |= 1 << (page_n & 7); - } - - // Create a glyph to handle TAB - // FIXME: Needs proper TAB handling but it needs to be contextualized (or we could arbitrary say that each string starts at "column 0" ?) - if (FindGlyph((ImWchar)' ')) - { - if (Glyphs.back().Codepoint != '\t') // So we can call this function multiple times (FIXME: Flaky) - Glyphs.resize(Glyphs.Size + 1); - ImFontGlyph& tab_glyph = Glyphs.back(); - tab_glyph = *FindGlyph((ImWchar)' '); - tab_glyph.Codepoint = '\t'; - tab_glyph.AdvanceX *= IM_TABSIZE; - IndexAdvanceX[(int)tab_glyph.Codepoint] = (float)tab_glyph.AdvanceX; - IndexLookup[(int)tab_glyph.Codepoint] = (ImWchar)(Glyphs.Size - 1); - } - - // Mark special glyphs as not visible (note that AddGlyph already mark as non-visible glyphs with zero-size polygons) - SetGlyphVisible((ImWchar)' ', false); - SetGlyphVisible((ImWchar)'\t', false); - - // Setup fall-backs - FallbackGlyph = FindGlyphNoFallback(FallbackChar); - FallbackAdvanceX = FallbackGlyph ? FallbackGlyph->AdvanceX : 0.0f; - for (int i = 0; i < max_codepoint + 1; i++) - if (IndexAdvanceX[i] < 0.0f) - IndexAdvanceX[i] = FallbackAdvanceX; -} - -// API is designed this way to avoid exposing the 4K page size -// e.g. use with IsGlyphRangeUnused(0, 255) -bool ImFont::IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last) -{ - unsigned int page_begin = (c_begin / 4096); - unsigned int page_last = (c_last / 4096); - for (unsigned int page_n = page_begin; page_n <= page_last; page_n++) - if ((page_n >> 3) < sizeof(Used4kPagesMap)) - if (Used4kPagesMap[page_n >> 3] & (1 << (page_n & 7))) - return false; - return true; -} - -void ImFont::SetGlyphVisible(ImWchar c, bool visible) -{ - if (ImFontGlyph* glyph = (ImFontGlyph*)(void*)FindGlyph((ImWchar)c)) - glyph->Visible = visible ? 1 : 0; -} - -void ImFont::SetFallbackChar(ImWchar c) -{ - FallbackChar = c; - BuildLookupTable(); -} - -void ImFont::GrowIndex(int new_size) -{ - IM_ASSERT(IndexAdvanceX.Size == IndexLookup.Size); - if (new_size <= IndexLookup.Size) - return; - IndexAdvanceX.resize(new_size, -1.0f); - IndexLookup.resize(new_size, (ImWchar)-1); -} - -// x0/y0/x1/y1 are offset from the character upper-left layout position, in pixels. Therefore x0/y0 are often fairly close to zero. -// Not to be mistaken with texture coordinates, which are held by u0/v0/u1/v1 in normalized format (0.0..1.0 on each texture axis). -// 'cfg' is not necessarily == 'this->ConfigData' because multiple source fonts+configs can be used to build one target font. -void ImFont::AddGlyph(const ImFontConfig* cfg, ImWchar codepoint, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x) -{ - if (cfg != NULL) - { - // Clamp & recenter if needed - const float advance_x_original = advance_x; - advance_x = ImClamp(advance_x, cfg->GlyphMinAdvanceX, cfg->GlyphMaxAdvanceX); - if (advance_x != advance_x_original) - { - float char_off_x = cfg->PixelSnapH ? ImFloor((advance_x - advance_x_original) * 0.5f) : (advance_x - advance_x_original) * 0.5f; - x0 += char_off_x; - x1 += char_off_x; - } - - // Snap to pixel - if (cfg->PixelSnapH) - advance_x = IM_ROUND(advance_x); - - // Bake spacing - advance_x += cfg->GlyphExtraSpacing.x; - } - - Glyphs.resize(Glyphs.Size + 1); - ImFontGlyph& glyph = Glyphs.back(); - glyph.Codepoint = (unsigned int)codepoint; - glyph.Visible = (x0 != x1) && (y0 != y1); - glyph.Colored = false; - glyph.X0 = x0; - glyph.Y0 = y0; - glyph.X1 = x1; - glyph.Y1 = y1; - glyph.U0 = u0; - glyph.V0 = v0; - glyph.U1 = u1; - glyph.V1 = v1; - glyph.AdvanceX = advance_x; - - // Compute rough surface usage metrics (+1 to account for average padding, +0.99 to round) - // We use (U1-U0)*TexWidth instead of X1-X0 to account for oversampling. - float pad = ContainerAtlas->TexGlyphPadding + 0.99f; - DirtyLookupTables = true; - MetricsTotalSurface += (int)((glyph.U1 - glyph.U0) * ContainerAtlas->TexWidth + pad) * (int)((glyph.V1 - glyph.V0) * ContainerAtlas->TexHeight + pad); -} - -void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst) -{ - IM_ASSERT(IndexLookup.Size > 0); // Currently this can only be called AFTER the font has been built, aka after calling ImFontAtlas::GetTexDataAs*() function. - unsigned int index_size = (unsigned int)IndexLookup.Size; - - if (dst < index_size && IndexLookup.Data[dst] == (ImWchar)-1 && !overwrite_dst) // 'dst' already exists - return; - if (src >= index_size && dst >= index_size) // both 'dst' and 'src' don't exist -> no-op - return; - - GrowIndex(dst + 1); - IndexLookup[dst] = (src < index_size) ? IndexLookup.Data[src] : (ImWchar)-1; - IndexAdvanceX[dst] = (src < index_size) ? IndexAdvanceX.Data[src] : 1.0f; -} - -const ImFontGlyph* ImFont::FindGlyph(ImWchar c) const -{ - if (c >= (size_t)IndexLookup.Size) - return FallbackGlyph; - const ImWchar i = IndexLookup.Data[c]; - if (i == (ImWchar)-1) - return FallbackGlyph; - return &Glyphs.Data[i]; -} - -const ImFontGlyph* ImFont::FindGlyphNoFallback(ImWchar c) const -{ - if (c >= (size_t)IndexLookup.Size) - return NULL; - const ImWchar i = IndexLookup.Data[c]; - if (i == (ImWchar)-1) - return NULL; - return &Glyphs.Data[i]; -} - -const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) const -{ - // Simple word-wrapping for English, not full-featured. Please submit failing cases! - // FIXME: Much possible improvements (don't cut things like "word !", "word!!!" but cut within "word,,,,", more sensible support for punctuations, support for Unicode punctuations, etc.) - - // For references, possible wrap point marked with ^ - // "aaa bbb, ccc,ddd. eee fff. ggg!" - // ^ ^ ^ ^ ^__ ^ ^ - - // List of hardcoded separators: .,;!?'" - - // Skip extra blanks after a line returns (that includes not counting them in width computation) - // e.g. "Hello world" --> "Hello" "World" - - // Cut words that cannot possibly fit within one line. - // e.g.: "The tropical fish" with ~5 characters worth of width --> "The tr" "opical" "fish" - - float line_width = 0.0f; - float word_width = 0.0f; - float blank_width = 0.0f; - wrap_width /= scale; // We work with unscaled widths to avoid scaling every characters - - const char* word_end = text; - const char* prev_word_end = NULL; - bool inside_word = true; - - const char* s = text; - while (s < text_end) - { - unsigned int c = (unsigned int)*s; - const char* next_s; - if (c < 0x80) - next_s = s + 1; - else - next_s = s + ImTextCharFromUtf8(&c, s, text_end); - if (c == 0) - break; - - if (c < 32) - { - if (c == '\n') - { - line_width = word_width = blank_width = 0.0f; - inside_word = true; - s = next_s; - continue; - } - if (c == '\r') - { - s = next_s; - continue; - } - } - - const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX); - if (ImCharIsBlankW(c)) - { - if (inside_word) - { - line_width += blank_width; - blank_width = 0.0f; - word_end = s; - } - blank_width += char_width; - inside_word = false; - } - else - { - word_width += char_width; - if (inside_word) - { - word_end = next_s; - } - else - { - prev_word_end = word_end; - line_width += word_width + blank_width; - word_width = blank_width = 0.0f; - } - - // Allow wrapping after punctuation. - inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"'); - } - - // We ignore blank width at the end of the line (they can be skipped) - if (line_width + word_width > wrap_width) - { - // Words that cannot possibly fit within an entire line will be cut anywhere. - if (word_width < wrap_width) - s = prev_word_end ? prev_word_end : word_end; - break; - } - - s = next_s; - } - - return s; -} - -ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) const -{ - if (!text_end) - text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this. - - const float line_height = size; - const float scale = size / FontSize; - - ImVec2 text_size = ImVec2(0, 0); - float line_width = 0.0f; - - const bool word_wrap_enabled = (wrap_width > 0.0f); - const char* word_wrap_eol = NULL; - - const char* s = text_begin; - while (s < text_end) - { - if (word_wrap_enabled) - { - // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. - if (!word_wrap_eol) - { - word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - line_width); - if (word_wrap_eol == s) // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. - word_wrap_eol++; // +1 may not be a character start point in UTF-8 but it's ok because we use s >= word_wrap_eol below - } - - if (s >= word_wrap_eol) - { - if (text_size.x < line_width) - text_size.x = line_width; - text_size.y += line_height; - line_width = 0.0f; - word_wrap_eol = NULL; - - // Wrapping skips upcoming blanks - while (s < text_end) - { - const char c = *s; - if (ImCharIsBlankA(c)) { s++; } else if (c == '\n') { s++; break; } else { break; } - } - continue; - } - } - - // Decode and advance source - const char* prev_s = s; - unsigned int c = (unsigned int)*s; - if (c < 0x80) - { - s += 1; - } - else - { - s += ImTextCharFromUtf8(&c, s, text_end); - if (c == 0) // Malformed UTF-8? - break; - } - - if (c < 32) - { - if (c == '\n') - { - text_size.x = ImMax(text_size.x, line_width); - text_size.y += line_height; - line_width = 0.0f; - continue; - } - if (c == '\r') - continue; - } - - const float char_width = ((int)c < IndexAdvanceX.Size ? IndexAdvanceX.Data[c] : FallbackAdvanceX) * scale; - if (line_width + char_width >= max_width) - { - s = prev_s; - break; - } - - line_width += char_width; - } - - if (text_size.x < line_width) - text_size.x = line_width; - - if (line_width > 0 || text_size.y == 0.0f) - text_size.y += line_height; - - if (remaining) - *remaining = s; - - return text_size; -} - -void ImFont::RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c) const -{ - const ImFontGlyph* glyph = FindGlyph(c); - if (!glyph || !glyph->Visible) - return; - if (glyph->Colored) - col |= ~IM_COL32_A_MASK; - float scale = (size >= 0.0f) ? (size / FontSize) : 1.0f; - pos.x = IM_FLOOR(pos.x); - pos.y = IM_FLOOR(pos.y); - draw_list->PrimReserve(6, 4); - draw_list->PrimRectUV(ImVec2(pos.x + glyph->X0 * scale, pos.y + glyph->Y0 * scale), ImVec2(pos.x + glyph->X1 * scale, pos.y + glyph->Y1 * scale), ImVec2(glyph->U0, glyph->V0), ImVec2(glyph->U1, glyph->V1), col); -} - -void ImFont::RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, const ImVec4& clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) const -{ - if (!text_end) - text_end = text_begin + strlen(text_begin); // ImGui:: functions generally already provides a valid text_end, so this is merely to handle direct calls. - - // Align to be pixel perfect - pos.x = IM_FLOOR(pos.x); - pos.y = IM_FLOOR(pos.y); - float x = pos.x; - float y = pos.y; - if (y > clip_rect.w) - return; - - const float scale = size / FontSize; - const float line_height = FontSize * scale; - const bool word_wrap_enabled = (wrap_width > 0.0f); - const char* word_wrap_eol = NULL; - - // Fast-forward to first visible line - const char* s = text_begin; - if (y + line_height < clip_rect.y && !word_wrap_enabled) - while (y + line_height < clip_rect.y && s < text_end) - { - s = (const char*)memchr(s, '\n', text_end - s); - s = s ? s + 1 : text_end; - y += line_height; - } - - // For large text, scan for the last visible line in order to avoid over-reserving in the call to PrimReserve() - // Note that very large horizontal line will still be affected by the issue (e.g. a one megabyte string buffer without a newline will likely crash atm) - if (text_end - s > 10000 && !word_wrap_enabled) - { - const char* s_end = s; - float y_end = y; - while (y_end < clip_rect.w && s_end < text_end) - { - s_end = (const char*)memchr(s_end, '\n', text_end - s_end); - s_end = s_end ? s_end + 1 : text_end; - y_end += line_height; - } - text_end = s_end; - } - if (s == text_end) - return; - - // Reserve vertices for remaining worse case (over-reserving is useful and easily amortized) - const int vtx_count_max = (int)(text_end - s) * 4; - const int idx_count_max = (int)(text_end - s) * 6; - const int idx_expected_size = draw_list->IdxBuffer.Size + idx_count_max; - draw_list->PrimReserve(idx_count_max, vtx_count_max); - - ImDrawVert* vtx_write = draw_list->_VtxWritePtr; - ImDrawIdx* idx_write = draw_list->_IdxWritePtr; - unsigned int vtx_current_idx = draw_list->_VtxCurrentIdx; - - const ImU32 col_untinted = col | ~IM_COL32_A_MASK; - - while (s < text_end) - { - if (word_wrap_enabled) - { - // Calculate how far we can render. Requires two passes on the string data but keeps the code simple and not intrusive for what's essentially an uncommon feature. - if (!word_wrap_eol) - { - word_wrap_eol = CalcWordWrapPositionA(scale, s, text_end, wrap_width - (x - pos.x)); - if (word_wrap_eol == s) // Wrap_width is too small to fit anything. Force displaying 1 character to minimize the height discontinuity. - word_wrap_eol++; // +1 may not be a character start point in UTF-8 but it's ok because we use s >= word_wrap_eol below - } - - if (s >= word_wrap_eol) - { - x = pos.x; - y += line_height; - word_wrap_eol = NULL; - - // Wrapping skips upcoming blanks - while (s < text_end) - { - const char c = *s; - if (ImCharIsBlankA(c)) { s++; } else if (c == '\n') { s++; break; } else { break; } - } - continue; - } - } - - // Decode and advance source - unsigned int c = (unsigned int)*s; - if (c < 0x80) - { - s += 1; - } - else - { - s += ImTextCharFromUtf8(&c, s, text_end); - if (c == 0) // Malformed UTF-8? - break; - } - - if (c < 32) - { - if (c == '\n') - { - x = pos.x; - y += line_height; - if (y > clip_rect.w) - break; // break out of main loop - continue; - } - if (c == '\r') - continue; - } - - const ImFontGlyph* glyph = FindGlyph((ImWchar)c); - if (glyph == NULL) - continue; - - float char_width = glyph->AdvanceX * scale; - if (glyph->Visible) - { - // We don't do a second finer clipping test on the Y axis as we've already skipped anything before clip_rect.y and exit once we pass clip_rect.w - float x1 = x + glyph->X0 * scale; - float x2 = x + glyph->X1 * scale; - float y1 = y + glyph->Y0 * scale; - float y2 = y + glyph->Y1 * scale; - if (x1 <= clip_rect.z && x2 >= clip_rect.x) - { - // Render a character - float u1 = glyph->U0; - float v1 = glyph->V0; - float u2 = glyph->U1; - float v2 = glyph->V1; - - // CPU side clipping used to fit text in their frame when the frame is too small. Only does clipping for axis aligned quads. - if (cpu_fine_clip) - { - if (x1 < clip_rect.x) - { - u1 = u1 + (1.0f - (x2 - clip_rect.x) / (x2 - x1)) * (u2 - u1); - x1 = clip_rect.x; - } - if (y1 < clip_rect.y) - { - v1 = v1 + (1.0f - (y2 - clip_rect.y) / (y2 - y1)) * (v2 - v1); - y1 = clip_rect.y; - } - if (x2 > clip_rect.z) - { - u2 = u1 + ((clip_rect.z - x1) / (x2 - x1)) * (u2 - u1); - x2 = clip_rect.z; - } - if (y2 > clip_rect.w) - { - v2 = v1 + ((clip_rect.w - y1) / (y2 - y1)) * (v2 - v1); - y2 = clip_rect.w; - } - if (y1 >= y2) - { - x += char_width; - continue; - } - } - - // Support for untinted glyphs - ImU32 glyph_col = glyph->Colored ? col_untinted : col; - - // We are NOT calling PrimRectUV() here because non-inlined causes too much overhead in a debug builds. Inlined here: - { - idx_write[0] = (ImDrawIdx)(vtx_current_idx); idx_write[1] = (ImDrawIdx)(vtx_current_idx+1); idx_write[2] = (ImDrawIdx)(vtx_current_idx+2); - idx_write[3] = (ImDrawIdx)(vtx_current_idx); idx_write[4] = (ImDrawIdx)(vtx_current_idx+2); idx_write[5] = (ImDrawIdx)(vtx_current_idx+3); - vtx_write[0].pos.x = x1; vtx_write[0].pos.y = y1; vtx_write[0].col = glyph_col; vtx_write[0].uv.x = u1; vtx_write[0].uv.y = v1; - vtx_write[1].pos.x = x2; vtx_write[1].pos.y = y1; vtx_write[1].col = glyph_col; vtx_write[1].uv.x = u2; vtx_write[1].uv.y = v1; - vtx_write[2].pos.x = x2; vtx_write[2].pos.y = y2; vtx_write[2].col = glyph_col; vtx_write[2].uv.x = u2; vtx_write[2].uv.y = v2; - vtx_write[3].pos.x = x1; vtx_write[3].pos.y = y2; vtx_write[3].col = glyph_col; vtx_write[3].uv.x = u1; vtx_write[3].uv.y = v2; - vtx_write += 4; - vtx_current_idx += 4; - idx_write += 6; - } - } - } - x += char_width; - } - - // Give back unused vertices (clipped ones, blanks) ~ this is essentially a PrimUnreserve() action. - draw_list->VtxBuffer.Size = (int)(vtx_write - draw_list->VtxBuffer.Data); // Same as calling shrink() - draw_list->IdxBuffer.Size = (int)(idx_write - draw_list->IdxBuffer.Data); - draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount -= (idx_expected_size - draw_list->IdxBuffer.Size); - draw_list->_VtxWritePtr = vtx_write; - draw_list->_IdxWritePtr = idx_write; - draw_list->_VtxCurrentIdx = vtx_current_idx; -} - -//----------------------------------------------------------------------------- -// [SECTION] ImGui Internal Render Helpers -//----------------------------------------------------------------------------- -// Vaguely redesigned to stop accessing ImGui global state: -// - RenderArrow() -// - RenderBullet() -// - RenderCheckMark() -// - RenderMouseCursor() -// - RenderArrowPointingAt() -// - RenderRectFilledRangeH() -//----------------------------------------------------------------------------- -// Function in need of a redesign (legacy mess) -// - RenderColorRectWithAlphaCheckerboard() -//----------------------------------------------------------------------------- - -// Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be positioned). To e.g. denote expanded/collapsed state -void ImGui::RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale) -{ - const float h = draw_list->_Data->FontSize * 1.00f; - float r = h * 0.40f * scale; - ImVec2 center = pos + ImVec2(h * 0.50f, h * 0.50f * scale); - - ImVec2 a, b, c; - switch (dir) - { - case ImGuiDir_Up: - case ImGuiDir_Down: - if (dir == ImGuiDir_Up) r = -r; - a = ImVec2(+0.000f, +0.750f) * r; - b = ImVec2(-0.866f, -0.750f) * r; - c = ImVec2(+0.866f, -0.750f) * r; - break; - case ImGuiDir_Left: - case ImGuiDir_Right: - if (dir == ImGuiDir_Left) r = -r; - a = ImVec2(+0.750f, +0.000f) * r; - b = ImVec2(-0.750f, +0.866f) * r; - c = ImVec2(-0.750f, -0.866f) * r; - break; - case ImGuiDir_None: - case ImGuiDir_COUNT: - IM_ASSERT(0); - break; - } - draw_list->AddTriangleFilled(center + a, center + b, center + c, col); -} - -void ImGui::RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col) -{ - draw_list->AddCircleFilled(pos, draw_list->_Data->FontSize * 0.20f, col, 8); -} - -void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) -{ - float thickness = ImMax(sz / 5.0f, 1.0f); - sz -= thickness * 0.5f; - pos += ImVec2(thickness * 0.25f, thickness * 0.25f); - - float third = sz / 3.0f; - float bx = pos.x + third; - float by = pos.y + sz - third * 0.5f; - draw_list->PathLineTo(ImVec2(bx - third, by - third)); - draw_list->PathLineTo(ImVec2(bx, by)); - draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f)); - draw_list->PathStroke(col, false, thickness); -} - -void ImGui::RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow) -{ - if (mouse_cursor == ImGuiMouseCursor_None) - return; - IM_ASSERT(mouse_cursor > ImGuiMouseCursor_None && mouse_cursor < ImGuiMouseCursor_COUNT); - - ImFontAtlas* font_atlas = draw_list->_Data->Font->ContainerAtlas; - ImVec2 offset, size, uv[4]; - if (font_atlas->GetMouseCursorTexData(mouse_cursor, &offset, &size, &uv[0], &uv[2])) - { - pos -= offset; - const ImTextureID tex_id = font_atlas->TexID; - draw_list->PushTextureID(tex_id); - draw_list->AddImage(tex_id, pos + ImVec2(1, 0) * scale, pos + (ImVec2(1, 0) + size) * scale, uv[2], uv[3], col_shadow); - draw_list->AddImage(tex_id, pos + ImVec2(2, 0) * scale, pos + (ImVec2(2, 0) + size) * scale, uv[2], uv[3], col_shadow); - draw_list->AddImage(tex_id, pos, pos + size * scale, uv[2], uv[3], col_border); - draw_list->AddImage(tex_id, pos, pos + size * scale, uv[0], uv[1], col_fill); - draw_list->PopTextureID(); - } -} - -// Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. -void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) -{ - switch (direction) - { - case ImGuiDir_Left: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), pos, col); return; - case ImGuiDir_Right: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), pos, col); return; - case ImGuiDir_Up: draw_list->AddTriangleFilled(ImVec2(pos.x + half_sz.x, pos.y + half_sz.y), ImVec2(pos.x - half_sz.x, pos.y + half_sz.y), pos, col); return; - case ImGuiDir_Down: draw_list->AddTriangleFilled(ImVec2(pos.x - half_sz.x, pos.y - half_sz.y), ImVec2(pos.x + half_sz.x, pos.y - half_sz.y), pos, col); return; - case ImGuiDir_None: case ImGuiDir_COUNT: break; // Fix warnings - } -} - -static inline float ImAcos01(float x) -{ - if (x <= 0.0f) return IM_PI * 0.5f; - if (x >= 1.0f) return 0.0f; - return ImAcos(x); - //return (-0.69813170079773212f * x * x - 0.87266462599716477f) * x + 1.5707963267948966f; // Cheap approximation, may be enough for what we do. -} - -// FIXME: Cleanup and move code to ImDrawList. -void ImGui::RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding) -{ - if (x_end_norm == x_start_norm) - return; - if (x_start_norm > x_end_norm) - ImSwap(x_start_norm, x_end_norm); - - ImVec2 p0 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_start_norm), rect.Min.y); - ImVec2 p1 = ImVec2(ImLerp(rect.Min.x, rect.Max.x, x_end_norm), rect.Max.y); - if (rounding == 0.0f) - { - draw_list->AddRectFilled(p0, p1, col, 0.0f); - return; - } - - rounding = ImClamp(ImMin((rect.Max.x - rect.Min.x) * 0.5f, (rect.Max.y - rect.Min.y) * 0.5f) - 1.0f, 0.0f, rounding); - const float inv_rounding = 1.0f / rounding; - const float arc0_b = ImAcos01(1.0f - (p0.x - rect.Min.x) * inv_rounding); - const float arc0_e = ImAcos01(1.0f - (p1.x - rect.Min.x) * inv_rounding); - const float half_pi = IM_PI * 0.5f; // We will == compare to this because we know this is the exact value ImAcos01 can return. - const float x0 = ImMax(p0.x, rect.Min.x + rounding); - if (arc0_b == arc0_e) - { - draw_list->PathLineTo(ImVec2(x0, p1.y)); - draw_list->PathLineTo(ImVec2(x0, p0.y)); - } - else if (arc0_b == 0.0f && arc0_e == half_pi) - { - draw_list->PathArcToFast(ImVec2(x0, p1.y - rounding), rounding, 3, 6); // BL - draw_list->PathArcToFast(ImVec2(x0, p0.y + rounding), rounding, 6, 9); // TR - } - else - { - draw_list->PathArcTo(ImVec2(x0, p1.y - rounding), rounding, IM_PI - arc0_e, IM_PI - arc0_b, 3); // BL - draw_list->PathArcTo(ImVec2(x0, p0.y + rounding), rounding, IM_PI + arc0_b, IM_PI + arc0_e, 3); // TR - } - if (p1.x > rect.Min.x + rounding) - { - const float arc1_b = ImAcos01(1.0f - (rect.Max.x - p1.x) * inv_rounding); - const float arc1_e = ImAcos01(1.0f - (rect.Max.x - p0.x) * inv_rounding); - const float x1 = ImMin(p1.x, rect.Max.x - rounding); - if (arc1_b == arc1_e) - { - draw_list->PathLineTo(ImVec2(x1, p0.y)); - draw_list->PathLineTo(ImVec2(x1, p1.y)); - } - else if (arc1_b == 0.0f && arc1_e == half_pi) - { - draw_list->PathArcToFast(ImVec2(x1, p0.y + rounding), rounding, 9, 12); // TR - draw_list->PathArcToFast(ImVec2(x1, p1.y - rounding), rounding, 0, 3); // BR - } - else - { - draw_list->PathArcTo(ImVec2(x1, p0.y + rounding), rounding, -arc1_e, -arc1_b, 3); // TR - draw_list->PathArcTo(ImVec2(x1, p1.y - rounding), rounding, +arc1_b, +arc1_e, 3); // BR - } - } - draw_list->PathFillConvex(col); -} - -void ImGui::RenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding) -{ - const bool fill_L = (inner.Min.x > outer.Min.x); - const bool fill_R = (inner.Max.x < outer.Max.x); - const bool fill_U = (inner.Min.y > outer.Min.y); - const bool fill_D = (inner.Max.y < outer.Max.y); - if (fill_L) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Min.y), ImVec2(inner.Min.x, inner.Max.y), col, rounding, (fill_U ? 0 : ImDrawCornerFlags_TopLeft) | (fill_D ? 0 : ImDrawCornerFlags_BotLeft)); - if (fill_R) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Min.y), ImVec2(outer.Max.x, inner.Max.y), col, rounding, (fill_U ? 0 : ImDrawCornerFlags_TopRight) | (fill_D ? 0 : ImDrawCornerFlags_BotRight)); - if (fill_U) draw_list->AddRectFilled(ImVec2(inner.Min.x, outer.Min.y), ImVec2(inner.Max.x, inner.Min.y), col, rounding, (fill_L ? 0 : ImDrawCornerFlags_TopLeft) | (fill_R ? 0 : ImDrawCornerFlags_TopRight)); - if (fill_D) draw_list->AddRectFilled(ImVec2(inner.Min.x, inner.Max.y), ImVec2(inner.Max.x, outer.Max.y), col, rounding, (fill_L ? 0 : ImDrawCornerFlags_BotLeft) | (fill_R ? 0 : ImDrawCornerFlags_BotRight)); - if (fill_L && fill_U) draw_list->AddRectFilled(ImVec2(outer.Min.x, outer.Min.y), ImVec2(inner.Min.x, inner.Min.y), col, rounding, ImDrawCornerFlags_TopLeft); - if (fill_R && fill_U) draw_list->AddRectFilled(ImVec2(inner.Max.x, outer.Min.y), ImVec2(outer.Max.x, inner.Min.y), col, rounding, ImDrawCornerFlags_TopRight); - if (fill_L && fill_D) draw_list->AddRectFilled(ImVec2(outer.Min.x, inner.Max.y), ImVec2(inner.Min.x, outer.Max.y), col, rounding, ImDrawCornerFlags_BotLeft); - if (fill_R && fill_D) draw_list->AddRectFilled(ImVec2(inner.Max.x, inner.Max.y), ImVec2(outer.Max.x, outer.Max.y), col, rounding, ImDrawCornerFlags_BotRight); -} - -// Helper for ColorPicker4() -// NB: This is rather brittle and will show artifact when rounding this enabled if rounded corners overlap multiple cells. Caller currently responsible for avoiding that. -// Spent a non reasonable amount of time trying to getting this right for ColorButton with rounding+anti-aliasing+ImGuiColorEditFlags_HalfAlphaPreview flag + various grid sizes and offsets, and eventually gave up... probably more reasonable to disable rounding altogether. -// FIXME: uses ImGui::GetColorU32 -void ImGui::RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 col, float grid_step, ImVec2 grid_off, float rounding, int rounding_corners_flags) -{ - if (((col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT) < 0xFF) - { - ImU32 col_bg1 = ImGui::GetColorU32(ImAlphaBlendColors(IM_COL32(204, 204, 204, 255), col)); - ImU32 col_bg2 = ImGui::GetColorU32(ImAlphaBlendColors(IM_COL32(128, 128, 128, 255), col)); - draw_list->AddRectFilled(p_min, p_max, col_bg1, rounding, rounding_corners_flags); - - int yi = 0; - for (float y = p_min.y + grid_off.y; y < p_max.y; y += grid_step, yi++) - { - float y1 = ImClamp(y, p_min.y, p_max.y), y2 = ImMin(y + grid_step, p_max.y); - if (y2 <= y1) - continue; - for (float x = p_min.x + grid_off.x + (yi & 1) * grid_step; x < p_max.x; x += grid_step * 2.0f) - { - float x1 = ImClamp(x, p_min.x, p_max.x), x2 = ImMin(x + grid_step, p_max.x); - if (x2 <= x1) - continue; - int rounding_corners_flags_cell = 0; - if (y1 <= p_min.y) { if (x1 <= p_min.x) rounding_corners_flags_cell |= ImDrawCornerFlags_TopLeft; if (x2 >= p_max.x) rounding_corners_flags_cell |= ImDrawCornerFlags_TopRight; } - if (y2 >= p_max.y) { if (x1 <= p_min.x) rounding_corners_flags_cell |= ImDrawCornerFlags_BotLeft; if (x2 >= p_max.x) rounding_corners_flags_cell |= ImDrawCornerFlags_BotRight; } - rounding_corners_flags_cell &= rounding_corners_flags; - draw_list->AddRectFilled(ImVec2(x1, y1), ImVec2(x2, y2), col_bg2, rounding_corners_flags_cell ? rounding : 0.0f, rounding_corners_flags_cell); - } - } - } - else - { - draw_list->AddRectFilled(p_min, p_max, col, rounding, rounding_corners_flags); - } -} - -//----------------------------------------------------------------------------- -// [SECTION] Decompression code -//----------------------------------------------------------------------------- -// Compressed with stb_compress() then converted to a C array and encoded as base85. -// Use the program in misc/fonts/binary_to_compressed_c.cpp to create the array from a TTF file. -// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. -// Decompression from stb.h (public domain) by Sean Barrett https://github.com/nothings/stb/blob/master/stb.h -//----------------------------------------------------------------------------- - -static unsigned int stb_decompress_length(const unsigned char *input) -{ - return (input[8] << 24) + (input[9] << 16) + (input[10] << 8) + input[11]; -} - -static unsigned char *stb__barrier_out_e, *stb__barrier_out_b; -static const unsigned char *stb__barrier_in_b; -static unsigned char *stb__dout; -static void stb__match(const unsigned char *data, unsigned int length) -{ - // INVERSE of memmove... write each byte before copying the next... - IM_ASSERT(stb__dout + length <= stb__barrier_out_e); - if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } - if (data < stb__barrier_out_b) { stb__dout = stb__barrier_out_e+1; return; } - while (length--) *stb__dout++ = *data++; -} - -static void stb__lit(const unsigned char *data, unsigned int length) -{ - IM_ASSERT(stb__dout + length <= stb__barrier_out_e); - if (stb__dout + length > stb__barrier_out_e) { stb__dout += length; return; } - if (data < stb__barrier_in_b) { stb__dout = stb__barrier_out_e+1; return; } - memcpy(stb__dout, data, length); - stb__dout += length; -} - -#define stb__in2(x) ((i[x] << 8) + i[(x)+1]) -#define stb__in3(x) ((i[x] << 16) + stb__in2((x)+1)) -#define stb__in4(x) ((i[x] << 24) + stb__in3((x)+1)) - -static const unsigned char *stb_decompress_token(const unsigned char *i) -{ - if (*i >= 0x20) { // use fewer if's for cases that expand small - if (*i >= 0x80) stb__match(stb__dout-i[1]-1, i[0] - 0x80 + 1), i += 2; - else if (*i >= 0x40) stb__match(stb__dout-(stb__in2(0) - 0x4000 + 1), i[2]+1), i += 3; - else /* *i >= 0x20 */ stb__lit(i+1, i[0] - 0x20 + 1), i += 1 + (i[0] - 0x20 + 1); - } else { // more ifs for cases that expand large, since overhead is amortized - if (*i >= 0x18) stb__match(stb__dout-(stb__in3(0) - 0x180000 + 1), i[3]+1), i += 4; - else if (*i >= 0x10) stb__match(stb__dout-(stb__in3(0) - 0x100000 + 1), stb__in2(3)+1), i += 5; - else if (*i >= 0x08) stb__lit(i+2, stb__in2(0) - 0x0800 + 1), i += 2 + (stb__in2(0) - 0x0800 + 1); - else if (*i == 0x07) stb__lit(i+3, stb__in2(1) + 1), i += 3 + (stb__in2(1) + 1); - else if (*i == 0x06) stb__match(stb__dout-(stb__in3(1)+1), i[4]+1), i += 5; - else if (*i == 0x04) stb__match(stb__dout-(stb__in3(1)+1), stb__in2(4)+1), i += 6; - } - return i; -} - -static unsigned int stb_adler32(unsigned int adler32, unsigned char *buffer, unsigned int buflen) -{ - const unsigned long ADLER_MOD = 65521; - unsigned long s1 = adler32 & 0xffff, s2 = adler32 >> 16; - unsigned long blocklen = buflen % 5552; - - unsigned long i; - while (buflen) { - for (i=0; i + 7 < blocklen; i += 8) { - s1 += buffer[0], s2 += s1; - s1 += buffer[1], s2 += s1; - s1 += buffer[2], s2 += s1; - s1 += buffer[3], s2 += s1; - s1 += buffer[4], s2 += s1; - s1 += buffer[5], s2 += s1; - s1 += buffer[6], s2 += s1; - s1 += buffer[7], s2 += s1; - - buffer += 8; - } - - for (; i < blocklen; ++i) - s1 += *buffer++, s2 += s1; - - s1 %= ADLER_MOD, s2 %= ADLER_MOD; - buflen -= blocklen; - blocklen = 5552; - } - return (unsigned int)(s2 << 16) + (unsigned int)s1; -} - -static unsigned int stb_decompress(unsigned char *output, const unsigned char *i, unsigned int /*length*/) -{ - if (stb__in4(0) != 0x57bC0000) return 0; - if (stb__in4(4) != 0) return 0; // error! stream is > 4GB - const unsigned int olen = stb_decompress_length(i); - stb__barrier_in_b = i; - stb__barrier_out_e = output + olen; - stb__barrier_out_b = output; - i += 16; - - stb__dout = output; - for (;;) { - const unsigned char *old_i = i; - i = stb_decompress_token(i); - if (i == old_i) { - if (*i == 0x05 && i[1] == 0xfa) { - IM_ASSERT(stb__dout == output + olen); - if (stb__dout != output + olen) return 0; - if (stb_adler32(1, output, olen) != (unsigned int) stb__in4(2)) - return 0; - return olen; - } else { - IM_ASSERT(0); /* NOTREACHED */ - return 0; - } - } - IM_ASSERT(stb__dout <= output + olen); - if (stb__dout > output + olen) - return 0; - } -} - -//----------------------------------------------------------------------------- -// [SECTION] Default font data (ProggyClean.ttf) -//----------------------------------------------------------------------------- -// ProggyClean.ttf -// Copyright (c) 2004, 2005 Tristan Grimmer -// MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip) -// Download and more information at http://upperbounds.net -//----------------------------------------------------------------------------- -// File: 'ProggyClean.ttf' (41208 bytes) -// Exported using misc/fonts/binary_to_compressed_c.cpp (with compression + base85 string encoding). -// The purpose of encoding as base85 instead of "0x00,0x01,..." style is only save on _source code_ size. -//----------------------------------------------------------------------------- -static const char proggy_clean_ttf_compressed_data_base85[11980 + 1] = - "7])#######hV0qs'/###[),##/l:$#Q6>##5[n42>c-TH`->>#/e>11NNV=Bv(*:.F?uu#(gRU.o0XGH`$vhLG1hxt9?W`#,5LsCp#-i>.r$<$6pD>Lb';9Crc6tgXmKVeU2cD4Eo3R/" - "2*>]b(MC;$jPfY.;h^`IWM9Qo#t'X#(v#Y9w0#1D$CIf;W'#pWUPXOuxXuU(H9M(1=Ke$$'5F%)]0^#0X@U.a$FBjVQTSDgEKnIS7EM9>ZY9w0#L;>>#Mx&4Mvt//L[MkA#W@lK.N'[0#7RL_&#w+F%HtG9M#XL`N&.,GM4Pg;--VsM.M0rJfLH2eTM`*oJMHRC`N" - "kfimM2J,W-jXS:)r0wK#@Fge$U>`w'N7G#$#fB#$E^$#:9:hk+eOe--6x)F7*E%?76%^GMHePW-Z5l'&GiF#$956:rS?dA#fiK:)Yr+`�j@'DbG&#^$PG.Ll+DNa&VZ>1i%h1S9u5o@YaaW$e+bROPOpxTO7Stwi1::iB1q)C_=dV26J;2,]7op$]uQr@_V7$q^%lQwtuHY]=DX,n3L#0PHDO4f9>dC@O>HBuKPpP*E,N+b3L#lpR/MrTEH.IAQk.a>D[.e;mc." - "x]Ip.PH^'/aqUO/$1WxLoW0[iLAw=4h(9.`G" - "CRUxHPeR`5Mjol(dUWxZa(>STrPkrJiWx`5U7F#.g*jrohGg`cg:lSTvEY/EV_7H4Q9[Z%cnv;JQYZ5q.l7Zeas:HOIZOB?Ggv:[7MI2k).'2($5FNP&EQ(,)" - "U]W]+fh18.vsai00);D3@4ku5P?DP8aJt+;qUM]=+b'8@;mViBKx0DE[-auGl8:PJ&Dj+M6OC]O^((##]`0i)drT;-7X`=-H3[igUnPG-NZlo.#k@h#=Ork$m>a>$-?Tm$UV(?#P6YY#" - "'/###xe7q.73rI3*pP/$1>s9)W,JrM7SN]'/4C#v$U`0#V.[0>xQsH$fEmPMgY2u7Kh(G%siIfLSoS+MK2eTM$=5,M8p`A.;_R%#u[K#$x4AG8.kK/HSB==-'Ie/QTtG?-.*^N-4B/ZM" - "_3YlQC7(p7q)&](`6_c)$/*JL(L-^(]$wIM`dPtOdGA,U3:w2M-0+WomX2u7lqM2iEumMTcsF?-aT=Z-97UEnXglEn1K-bnEO`gu" - "Ft(c%=;Am_Qs@jLooI&NX;]0#j4#F14;gl8-GQpgwhrq8'=l_f-b49'UOqkLu7-##oDY2L(te+Mch&gLYtJ,MEtJfLh'x'M=$CS-ZZ%P]8bZ>#S?YY#%Q&q'3^Fw&?D)UDNrocM3A76/" - "/oL?#h7gl85[qW/NDOk%16ij;+:1a'iNIdb-ou8.P*w,v5#EI$TWS>Pot-R*H'-SEpA:g)f+O$%%`kA#G=8RMmG1&O`>to8bC]T&$,n.LoO>29sp3dt-52U%VM#q7'DHpg+#Z9%H[Ket`e;)f#Km8&+DC$I46>#Kr]]u-[=99tts1.qb#q72g1WJO81q+eN'03'eM>&1XxY-caEnO" - "j%2n8)),?ILR5^.Ibn<-X-Mq7[a82Lq:F&#ce+S9wsCK*x`569E8ew'He]h:sI[2LM$[guka3ZRd6:t%IG:;$%YiJ:Nq=?eAw;/:nnDq0(CYcMpG)qLN4$##&J-XTt,%OVU4)S1+R-#dg0/Nn?Ku1^0f$B*P:Rowwm-`0PKjYDDM'3]d39VZHEl4,.j']Pk-M.h^&:0FACm$maq-&sgw0t7/6(^xtk%" - "LuH88Fj-ekm>GA#_>568x6(OFRl-IZp`&b,_P'$MhLbxfc$mj`,O;&%W2m`Zh:/)Uetw:aJ%]K9h:TcF]u_-Sj9,VK3M.*'&0D[Ca]J9gp8,kAW]" - "%(?A%R$f<->Zts'^kn=-^@c4%-pY6qI%J%1IGxfLU9CP8cbPlXv);C=b),<2mOvP8up,UVf3839acAWAW-W?#ao/^#%KYo8fRULNd2.>%m]UK:n%r$'sw]J;5pAoO_#2mO3n,'=H5(et" - "Hg*`+RLgv>=4U8guD$I%D:W>-r5V*%j*W:Kvej.Lp$'?;++O'>()jLR-^u68PHm8ZFWe+ej8h:9r6L*0//c&iH&R8pRbA#Kjm%upV1g:" - "a_#Ur7FuA#(tRh#.Y5K+@?3<-8m0$PEn;J:rh6?I6uG<-`wMU'ircp0LaE_OtlMb&1#6T.#FDKu#1Lw%u%+GM+X'e?YLfjM[VO0MbuFp7;>Q&#WIo)0@F%q7c#4XAXN-U&VBpqB>0ie&jhZ[?iLR@@_AvA-iQC(=ksRZRVp7`.=+NpBC%rh&3]R:8XDmE5^V8O(x<-+k?'(^](H.aREZSi,#1:[IXaZFOm<-ui#qUq2$##Ri;u75OK#(RtaW-K-F`S+cF]uN`-KMQ%rP/Xri.LRcB##=YL3BgM/3M" - "D?@f&1'BW-)Ju#bmmWCMkk&#TR`C,5d>g)F;t,4:@_l8G/5h4vUd%&%950:VXD'QdWoY-F$BtUwmfe$YqL'8(PWX(" - "P?^@Po3$##`MSs?DWBZ/S>+4%>fX,VWv/w'KD`LP5IbH;rTV>n3cEK8U#bX]l-/V+^lj3;vlMb&[5YQ8#pekX9JP3XUC72L,,?+Ni&co7ApnO*5NK,((W-i:$,kp'UDAO(G0Sq7MVjJs" - "bIu)'Z,*[>br5fX^:FPAWr-m2KgLQ_nN6'8uTGT5g)uLv:873UpTLgH+#FgpH'_o1780Ph8KmxQJ8#H72L4@768@Tm&Q" - "h4CB/5OvmA&,Q&QbUoi$a_%3M01H)4x7I^&KQVgtFnV+;[Pc>[m4k//,]1?#`VY[Jr*3&&slRfLiVZJ:]?=K3Sw=[$=uRB?3xk48@aege0jT6'N#(q%.O=?2S]u*(m<-" - "V8J'(1)G][68hW$5'q[GC&5j`TE?m'esFGNRM)j,ffZ?-qx8;->g4t*:CIP/[Qap7/9'#(1sao7w-.qNUdkJ)tCF&#B^;xGvn2r9FEPFFFcL@.iFNkTve$m%#QvQS8U@)2Z+3K:AKM5i" - "sZ88+dKQ)W6>J%CL`.d*(B`-n8D9oK-XV1q['-5k'cAZ69e;D_?$ZPP&s^+7])$*$#@QYi9,5P r+$%CE=68>K8r0=dSC%%(@p7" - ".m7jilQ02'0-VWAgTlGW'b)Tq7VT9q^*^$$.:&N@@" - "$&)WHtPm*5_rO0&e%K&#-30j(E4#'Zb.o/(Tpm$>K'f@[PvFl,hfINTNU6u'0pao7%XUp9]5.>%h`8_=VYbxuel.NTSsJfLacFu3B'lQSu/m6-Oqem8T+oE--$0a/k]uj9EwsG>%veR*" - "hv^BFpQj:K'#SJ,sB-'#](j.Lg92rTw-*n%@/;39rrJF,l#qV%OrtBeC6/,;qB3ebNW[?,Hqj2L.1NP&GjUR=1D8QaS3Up&@*9wP?+lo7b?@%'k4`p0Z$22%K3+iCZj?XJN4Nm&+YF]u" - "@-W$U%VEQ/,,>>#)D#%8cY#YZ?=,`Wdxu/ae&#" - "w6)R89tI#6@s'(6Bf7a&?S=^ZI_kS&ai`&=tE72L_D,;^R)7[$so8lKN%5/$(vdfq7+ebA#" - "u1p]ovUKW&Y%q]'>$1@-[xfn$7ZTp7mM,G,Ko7a&Gu%G[RMxJs[0MM%wci.LFDK)(%:_i2B5CsR8&9Z&#=mPEnm0f`<&c)QL5uJ#%u%lJj+D-r;BoFDoS97h5g)E#o:&S4weDF,9^Hoe`h*L+_a*NrLW-1pG_&2UdB8" - "6e%B/:=>)N4xeW.*wft-;$'58-ESqr#U`'6AQ]m&6/`Z>#S?YY#Vc;r7U2&326d=w&H####?TZ`*4?&.MK?LP8Vxg>$[QXc%QJv92.(Db*B)gb*BM9dM*hJMAo*c&#" - "b0v=Pjer]$gG&JXDf->'StvU7505l9$AFvgYRI^&<^b68?j#q9QX4SM'RO#&sL1IM.rJfLUAj221]d##DW=m83u5;'bYx,*Sl0hL(W;;$doB&O/TQ:(Z^xBdLjLV#*8U_72Lh+2Q8Cj0i:6hp&$C/:p(HK>T8Y[gHQ4`4)'$Ab(Nof%V'8hL&#SfD07&6D@M.*J:;$-rv29'M]8qMv-tLp,'886iaC=Hb*YJoKJ,(j%K=H`K.v9HggqBIiZu'QvBT.#=)0ukruV&.)3=(^1`o*Pj4<-#MJ+gLq9-##@HuZPN0]u:h7.T..G:;$/Usj(T7`Q8tT72LnYl<-qx8;-HV7Q-&Xdx%1a,hC=0u+HlsV>nuIQL-5" - "_>@kXQtMacfD.m-VAb8;IReM3$wf0''hra*so568'Ip&vRs849'MRYSp%:t:h5qSgwpEr$B>Q,;s(C#$)`svQuF$##-D,##,g68@2[T;.XSdN9Qe)rpt._K-#5wF)sP'##p#C0c%-Gb%" - "hd+<-j'Ai*x&&HMkT]C'OSl##5RG[JXaHN;d'uA#x._U;.`PU@(Z3dt4r152@:v,'R.Sj'w#0<-;kPI)FfJ&#AYJ&#//)>-k=m=*XnK$>=)72L]0I%>.G690a:$##<,);?;72#?x9+d;" - "^V'9;jY@;)br#q^YQpx:X#Te$Z^'=-=bGhLf:D6&bNwZ9-ZD#n^9HhLMr5G;']d&6'wYmTFmLq9wI>P(9mI[>kC-ekLC/R&CH+s'B;K-M6$EB%is00:" - "+A4[7xks.LrNk0&E)wILYF@2L'0Nb$+pv<(2.768/FrY&h$^3i&@+G%JT'<-,v`3;_)I9M^AE]CN?Cl2AZg+%4iTpT3$U4O]GKx'm9)b@p7YsvK3w^YR-" - "CdQ*:Ir<($u&)#(&?L9Rg3H)4fiEp^iI9O8KnTj,]H?D*r7'M;PwZ9K0E^k&-cpI;.p/6_vwoFMV<->#%Xi.LxVnrU(4&8/P+:hLSKj$#U%]49t'I:rgMi'FL@a:0Y-uA[39',(vbma*" - "hU%<-SRF`Tt:542R_VV$p@[p8DV[A,?1839FWdFTi1O*H&#(AL8[_P%.M>v^-))qOT*F5Cq0`Ye%+$B6i:7@0IXSsDiWP,##P`%/L-" - "S(qw%sf/@%#B6;/U7K]uZbi^Oc^2n%t<)'mEVE''n`WnJra$^TKvX5B>;_aSEK',(hwa0:i4G?.Bci.(X[?b*($,=-n<.Q%`(X=?+@Am*Js0&=3bh8K]mL69=Lb,OcZV/);TTm8VI;?%OtJ<(b4mq7M6:u?KRdFl*:xP?Yb.5)%w_I?7uk5JC+FS(m#i'k.'a0i)9<7b'fs'59hq$*5Uhv##pi^8+hIEBF`nvo`;'l0.^S1<-wUK2/Coh58KKhLj" - "M=SO*rfO`+qC`W-On.=AJ56>>i2@2LH6A:&5q`?9I3@@'04&p2/LVa*T-4<-i3;M9UvZd+N7>b*eIwg:CC)c<>nO&#$(>.Z-I&J(Q0Hd5Q%7Co-b`-cP)hI;*_F]u`Rb[.j8_Q/<&>uu+VsH$sM9TA%?)(vmJ80),P7E>)tjD%2L=-t#fK[%`v=Q8WlA2);Sa" - ">gXm8YB`1d@K#n]76-a$U,mF%Ul:#/'xoFM9QX-$.QN'>" - "[%$Z$uF6pA6Ki2O5:8w*vP1<-1`[G,)-m#>0`P&#eb#.3i)rtB61(o'$?X3B2Qft^ae_5tKL9MUe9b*sLEQ95C&`=G?@Mj=wh*'3E>=-<)Gt*Iw)'QG:`@I" - "wOf7&]1i'S01B+Ev/Nac#9S;=;YQpg_6U`*kVY39xK,[/6Aj7:'1Bm-_1EYfa1+o&o4hp7KN_Q(OlIo@S%;jVdn0'1h19w,WQhLI)3S#f$2(eb,jr*b;3Vw]*7NH%$c4Vs,eD9>XW8?N]o+(*pgC%/72LV-uW%iewS8W6m2rtCpo'RS1R84=@paTKt)>=%&1[)*vp'u+x,VrwN;&]kuO9JDbg=pO$J*.jVe;u'm0dr9l,<*wMK*Oe=g8lV_KEBFkO'oU]^=[-792#ok,)" - "i]lR8qQ2oA8wcRCZ^7w/Njh;?.stX?Q1>S1q4Bn$)K1<-rGdO'$Wr.Lc.CG)$/*JL4tNR/,SVO3,aUw'DJN:)Ss;wGn9A32ijw%FL+Z0Fn.U9;reSq)bmI32U==5ALuG&#Vf1398/pVo" - "1*c-(aY168o<`JsSbk-,1N;$>0:OUas(3:8Z972LSfF8eb=c-;>SPw7.6hn3m`9^Xkn(r.qS[0;T%&Qc=+STRxX'q1BNk3&*eu2;&8q$&x>Q#Q7^Tf+6<(d%ZVmj2bDi%.3L2n+4W'$P" - "iDDG)g,r%+?,$@?uou5tSe2aN_AQU*'IAO" - "URQ##V^Fv-XFbGM7Fl(N<3DhLGF%q.1rC$#:T__&Pi68%0xi_&[qFJ(77j_&JWoF.V735&T,[R*:xFR*K5>>#`bW-?4Ne_&6Ne_&6Ne_&n`kr-#GJcM6X;uM6X;uM(.a..^2TkL%oR(#" - ";u.T%fAr%4tJ8&><1=GHZ_+m9/#H1F^R#SC#*N=BA9(D?v[UiFY>>^8p,KKF.W]L29uLkLlu/+4T" - "w$)F./^n3+rlo+DB;5sIYGNk+i1t-69Jg--0pao7Sm#K)pdHW&;LuDNH@H>#/X-TI(;P>#,Gc>#0Su>#4`1?#8lC?#xL$#B.`$#F:r$#JF.%#NR@%#R_R%#Vke%#Zww%#_-4^Rh%Sflr-k'MS.o?.5/sWel/wpEM0%3'/1)K^f1-d>G21&v(35>V`39V7A4=onx4" - "A1OY5EI0;6Ibgr6M$HS7Q<)58C5w,;WoA*#[%T*#`1g*#d=#+#hI5+#lUG+#pbY+#tnl+#x$),#&1;,#*=M,#.I`,#2Ur,#6b.-#;w[H#iQtA#m^0B#qjBB#uvTB##-hB#'9$C#+E6C#" - "/QHC#3^ZC#7jmC#;v)D#?,)4kMYD4lVu`4m`:&5niUA5@(A5BA1]PBB:xlBCC=2CDLXMCEUtiCf&0g2'tN?PGT4CPGT4CPGT4CPGT4CPGT4CPGT4CPGT4CP" - "GT4CPGT4CPGT4CPGT4CPGT4CPGT4CP-qekC`.9kEg^+F$kwViFJTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5KTB&5o,^<-28ZI'O?;xp" - "O?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xpO?;xp;7q-#lLYI:xvD=#"; - -static const char* GetDefaultCompressedFontDataTTFBase85() -{ - return proggy_clean_ttf_compressed_data_base85; -} - -#endif // #ifndef IMGUI_DISABLE diff --git a/third_party/imgui/imgui_internal.h b/third_party/imgui/imgui_internal.h deleted file mode 100644 index f17229ab..00000000 --- a/third_party/imgui/imgui_internal.h +++ /dev/null @@ -1,2592 +0,0 @@ -// dear imgui, v1.82 WIP -// (internal structures/api) - -// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility! -// Set: -// #define IMGUI_DEFINE_MATH_OPERATORS -// To implement maths operators for ImVec2 (disabled by default to not collide with using IM_VEC2_CLASS_EXTRA along with your own math types+operators) - -/* - -Index of this file: - -// [SECTION] Header mess -// [SECTION] Forward declarations -// [SECTION] Context pointer -// [SECTION] STB libraries includes -// [SECTION] Macros -// [SECTION] Generic helpers -// [SECTION] ImDrawList support -// [SECTION] Widgets support: flags, enums, data structures -// [SECTION] Columns support -// [SECTION] Multi-select support -// [SECTION] Docking support -// [SECTION] Viewport support -// [SECTION] Settings support -// [SECTION] Metrics, Debug -// [SECTION] Generic context hooks -// [SECTION] ImGuiContext (main imgui context) -// [SECTION] ImGuiWindowTempData, ImGuiWindow -// [SECTION] Tab bar, Tab item support -// [SECTION] Table support -// [SECTION] ImGui internal API -// [SECTION] ImFontAtlas internal API -// [SECTION] Test Engine specific hooks (imgui_test_engine) - -*/ - -#pragma once -#ifndef IMGUI_DISABLE - -//----------------------------------------------------------------------------- -// [SECTION] Header mess -//----------------------------------------------------------------------------- - -#ifndef IMGUI_VERSION -#error Must include imgui.h before imgui_internal.h -#endif - -#include // FILE*, sscanf -#include // NULL, malloc, free, qsort, atoi, atof -#include // sqrtf, fabsf, fmodf, powf, floorf, ceilf, cosf, sinf -#include // INT_MIN, INT_MAX - -// Visual Studio warnings -#ifdef _MSC_VER -#pragma warning (push) -#pragma warning (disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of struct 'xxx' // when IMGUI_API is set to__declspec(dllexport) -#endif - -// Clang/GCC warnings with -Weverything -#if defined(__clang__) -#pragma clang diagnostic push -#if __has_warning("-Wunknown-warning-option") -#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' -#pragma clang diagnostic ignored "-Wunused-function" // for stb_textedit.h -#pragma clang diagnostic ignored "-Wmissing-prototypes" // for stb_textedit.h -#pragma clang diagnostic ignored "-Wold-style-cast" -#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" -#pragma clang diagnostic ignored "-Wdouble-promotion" -#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision -#elif defined(__GNUC__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead -#endif - -// Legacy defines -#ifdef IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS // Renamed in 1.74 -#error Use IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS -#endif -#ifdef IMGUI_DISABLE_MATH_FUNCTIONS // Renamed in 1.74 -#error Use IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS -#endif - -// Enable stb_truetype by default unless FreeType is enabled. -// You can compile with both by defining both IMGUI_ENABLE_FREETYPE and IMGUI_ENABLE_STB_TRUETYPE together. -#ifndef IMGUI_ENABLE_FREETYPE -#define IMGUI_ENABLE_STB_TRUETYPE -#endif - -//----------------------------------------------------------------------------- -// [SECTION] Forward declarations -//----------------------------------------------------------------------------- - -struct ImBitVector; // Store 1-bit per value -struct ImRect; // An axis-aligned rectangle (2 points) -struct ImDrawDataBuilder; // Helper to build a ImDrawData instance -struct ImDrawListSharedData; // Data shared between all ImDrawList instances -struct ImGuiColorMod; // Stacked color modifier, backup of modified data so we can restore it -struct ImGuiContext; // Main Dear ImGui context -struct ImGuiContextHook; // Hook for extensions like ImGuiTestEngine -struct ImGuiDataTypeInfo; // Type information associated to a ImGuiDataType enum -struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup() -struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box -struct ImGuiLastItemDataBackup; // Backup and restore IsItemHovered() internal data -struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only -struct ImGuiNavMoveResult; // Result of a gamepad/keyboard directional navigation move query result -struct ImGuiMetricsConfig; // Storage for ShowMetricsWindow() and DebugNodeXXX() functions -struct ImGuiNextWindowData; // Storage for SetNextWindow** functions -struct ImGuiNextItemData; // Storage for SetNextItem** functions -struct ImGuiOldColumnData; // Storage data for a single column for legacy Columns() api -struct ImGuiOldColumns; // Storage data for a columns set for legacy Columns() api -struct ImGuiPopupData; // Storage for current popup stack -struct ImGuiSettingsHandler; // Storage for one type registered in the .ini file -struct ImGuiStackSizes; // Storage of stack sizes for debugging/asserting -struct ImGuiStyleMod; // Stacked style modifier, backup of modified data so we can restore it -struct ImGuiTabBar; // Storage for a tab bar -struct ImGuiTabItem; // Storage for a tab item (within a tab bar) -struct ImGuiTable; // Storage for a table -struct ImGuiTableColumn; // Storage for one column of a table -struct ImGuiTableSettings; // Storage for a table .ini settings -struct ImGuiTableColumnsSettings; // Storage for a column .ini settings -struct ImGuiWindow; // Storage for one window -struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame) -struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session) - -// Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists. -typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical -typedef int ImGuiItemFlags; // -> enum ImGuiItemFlags_ // Flags: for PushItemFlag() -typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for DC.LastItemStatusFlags -typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns() -typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight() -typedef int ImGuiNavDirSourceFlags; // -> enum ImGuiNavDirSourceFlags_ // Flags: for GetNavInputAmount2d() -typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests -typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions -typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions -typedef int ImGuiSeparatorFlags; // -> enum ImGuiSeparatorFlags_ // Flags: for SeparatorEx() -typedef int ImGuiTextFlags; // -> enum ImGuiTextFlags_ // Flags: for TextEx() -typedef int ImGuiTooltipFlags; // -> enum ImGuiTooltipFlags_ // Flags: for BeginTooltipEx() - -typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...); - -//----------------------------------------------------------------------------- -// [SECTION] Context pointer -// See implementation of this variable in imgui.cpp for comments and details. -//----------------------------------------------------------------------------- - -#ifndef GImGui -extern IMGUI_API ImGuiContext* GImGui; // Current implicit context pointer -#endif - -//------------------------------------------------------------------------- -// [SECTION] STB libraries includes -//------------------------------------------------------------------------- - -namespace ImStb -{ - -#undef STB_TEXTEDIT_STRING -#undef STB_TEXTEDIT_CHARTYPE -#define STB_TEXTEDIT_STRING ImGuiInputTextState -#define STB_TEXTEDIT_CHARTYPE ImWchar -#define STB_TEXTEDIT_GETWIDTH_NEWLINE (-1.0f) -#define STB_TEXTEDIT_UNDOSTATECOUNT 99 -#define STB_TEXTEDIT_UNDOCHARCOUNT 999 -#include "imstb_textedit.h" - -} // namespace ImStb - -//----------------------------------------------------------------------------- -// [SECTION] Macros -//----------------------------------------------------------------------------- - -// Debug Logging -#ifndef IMGUI_DEBUG_LOG -#define IMGUI_DEBUG_LOG(_FMT,...) printf("[%05d] " _FMT, GImGui->FrameCount, __VA_ARGS__) -#endif - -// Debug Logging for selected systems. Remove the '((void)0) //' to enable. -//#define IMGUI_DEBUG_LOG_POPUP IMGUI_DEBUG_LOG // Enable log -//#define IMGUI_DEBUG_LOG_NAV IMGUI_DEBUG_LOG // Enable log -#define IMGUI_DEBUG_LOG_POPUP(...) ((void)0) // Disable log -#define IMGUI_DEBUG_LOG_NAV(...) ((void)0) // Disable log - -// Static Asserts -#if (__cplusplus >= 201100) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201100) -#define IM_STATIC_ASSERT(_COND) static_assert(_COND, "") -#else -#define IM_STATIC_ASSERT(_COND) typedef char static_assertion_##__line__[(_COND)?1:-1] -#endif - -// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much. -// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code. -//#define IMGUI_DEBUG_PARANOID -#ifdef IMGUI_DEBUG_PARANOID -#define IM_ASSERT_PARANOID(_EXPR) IM_ASSERT(_EXPR) -#else -#define IM_ASSERT_PARANOID(_EXPR) -#endif - -// Error handling -// Down the line in some frameworks/languages we would like to have a way to redirect those to the programmer and recover from more faults. -#ifndef IM_ASSERT_USER_ERROR -#define IM_ASSERT_USER_ERROR(_EXP,_MSG) IM_ASSERT((_EXP) && _MSG) // Recoverable User Error -#endif - -// Misc Macros -#define IM_PI 3.14159265358979323846f -#ifdef _WIN32 -#define IM_NEWLINE "\r\n" // Play it nice with Windows users (Update: since 2018-05, Notepad finally appears to support Unix-style carriage returns!) -#else -#define IM_NEWLINE "\n" -#endif -#define IM_TABSIZE (4) -#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + (_ALIGN - 1)) & ~(_ALIGN - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8 -#define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose -#define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255 -#define IM_FLOOR(_VAL) ((float)(int)(_VAL)) // ImFloor() is not inlined in MSVC debug builds -#define IM_ROUND(_VAL) ((float)(int)((_VAL) + 0.5f)) // - -// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall -#ifdef _MSC_VER -#define IMGUI_CDECL __cdecl -#else -#define IMGUI_CDECL -#endif - -// Debug Tools -// Use 'Metrics->Tools->Item Picker' to break into the call-stack of a specific item. -#ifndef IM_DEBUG_BREAK -#if defined(__clang__) -#define IM_DEBUG_BREAK() __builtin_debugtrap() -#elif defined (_MSC_VER) -#define IM_DEBUG_BREAK() __debugbreak() -#else -#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger! -#endif -#endif // #ifndef IM_DEBUG_BREAK - -//----------------------------------------------------------------------------- -// [SECTION] Generic helpers -// Note that the ImXXX helpers functions are lower-level than ImGui functions. -// ImGui functions or the ImGui context are never called/used from other ImXXX functions. -//----------------------------------------------------------------------------- -// - Helpers: Hashing -// - Helpers: Sorting -// - Helpers: Bit manipulation -// - Helpers: String, Formatting -// - Helpers: UTF-8 <> wchar conversions -// - Helpers: ImVec2/ImVec4 operators -// - Helpers: Maths -// - Helpers: Geometry -// - Helper: ImVec1 -// - Helper: ImVec2ih -// - Helper: ImRect -// - Helper: ImBitArray -// - Helper: ImBitVector -// - Helper: ImSpan<>, ImSpanAllocator<> -// - Helper: ImPool<> -// - Helper: ImChunkStream<> -//----------------------------------------------------------------------------- - -// Helpers: Hashing -IMGUI_API ImGuiID ImHashData(const void* data, size_t data_size, ImU32 seed = 0); -IMGUI_API ImGuiID ImHashStr(const char* data, size_t data_size = 0, ImU32 seed = 0); -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS -static inline ImGuiID ImHash(const void* data, int size, ImU32 seed = 0) { return size ? ImHashData(data, (size_t)size, seed) : ImHashStr((const char*)data, 0, seed); } // [moved to ImHashStr/ImHashData in 1.68] -#endif - -// Helpers: Sorting -#define ImQsort qsort - -// Helpers: Color Blending -IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b); - -// Helpers: Bit manipulation -static inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & (v - 1)) == 0; } -static inline bool ImIsPowerOfTwo(ImU64 v) { return v != 0 && (v & (v - 1)) == 0; } -static inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } - -// Helpers: String, Formatting -IMGUI_API int ImStricmp(const char* str1, const char* str2); -IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); -IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); -IMGUI_API char* ImStrdup(const char* str); -IMGUI_API char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); -IMGUI_API const char* ImStrchrRange(const char* str_begin, const char* str_end, char c); -IMGUI_API int ImStrlenW(const ImWchar* str); -IMGUI_API const char* ImStreolRange(const char* str, const char* str_end); // End end-of-line -IMGUI_API const ImWchar*ImStrbolW(const ImWchar* buf_mid_line, const ImWchar* buf_begin); // Find beginning-of-line -IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); -IMGUI_API void ImStrTrimBlanks(char* str); -IMGUI_API const char* ImStrSkipBlank(const char* str); -IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3); -IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3); -IMGUI_API const char* ImParseFormatFindStart(const char* format); -IMGUI_API const char* ImParseFormatFindEnd(const char* format); -IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size); -IMGUI_API int ImParseFormatPrecision(const char* format, int default_value); -static inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; } -static inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; } - -// Helpers: UTF-8 <> wchar conversions -IMGUI_API int ImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count -IMGUI_API int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // read one character. return input UTF-8 bytes count -IMGUI_API int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL); // return input UTF-8 bytes count -IMGUI_API int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); // return number of UTF-8 code-points (NOT bytes count) -IMGUI_API int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); // return number of bytes to express one char in UTF-8 -IMGUI_API int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); // return number of bytes to express string in UTF-8 - -// Helpers: ImVec2/ImVec4 operators -// We are keeping those disabled by default so they don't leak in user space, to allow user enabling implicit cast operators between ImVec2 and their own types (using IM_VEC2_CLASS_EXTRA etc.) -// We unfortunately don't have a unary- operator for ImVec2 because this would needs to be defined inside the class itself. -#ifdef IMGUI_DEFINE_MATH_OPERATORS -static inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x * rhs, lhs.y * rhs); } -static inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x / rhs, lhs.y / rhs); } -static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); } -static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); } -static inline ImVec2 operator*(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } -static inline ImVec2 operator/(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); } -static inline ImVec2& operator*=(ImVec2& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } -static inline ImVec2& operator/=(ImVec2& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; } -static inline ImVec2& operator+=(ImVec2& lhs, const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } -static inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } -static inline ImVec2& operator*=(ImVec2& lhs, const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; return lhs; } -static inline ImVec2& operator/=(ImVec2& lhs, const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; return lhs; } -static inline ImVec4 operator+(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); } -static inline ImVec4 operator-(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); } -static inline ImVec4 operator*(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); } -#endif - -// Helpers: File System -#ifdef IMGUI_DISABLE_FILE_FUNCTIONS -#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS -typedef void* ImFileHandle; -static inline ImFileHandle ImFileOpen(const char*, const char*) { return NULL; } -static inline bool ImFileClose(ImFileHandle) { return false; } -static inline ImU64 ImFileGetSize(ImFileHandle) { return (ImU64)-1; } -static inline ImU64 ImFileRead(void*, ImU64, ImU64, ImFileHandle) { return 0; } -static inline ImU64 ImFileWrite(const void*, ImU64, ImU64, ImFileHandle) { return 0; } -#endif -#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS -typedef FILE* ImFileHandle; -IMGUI_API ImFileHandle ImFileOpen(const char* filename, const char* mode); -IMGUI_API bool ImFileClose(ImFileHandle file); -IMGUI_API ImU64 ImFileGetSize(ImFileHandle file); -IMGUI_API ImU64 ImFileRead(void* data, ImU64 size, ImU64 count, ImFileHandle file); -IMGUI_API ImU64 ImFileWrite(const void* data, ImU64 size, ImU64 count, ImFileHandle file); -#else -#define IMGUI_DISABLE_TTY_FUNCTIONS // Can't use stdout, fflush if we are not using default file functions -#endif -IMGUI_API void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size = NULL, int padding_bytes = 0); - -// Helpers: Maths -// - Wrapper for standard libs functions. (Note that imgui_demo.cpp does _not_ use them to keep the code easy to copy) -#ifndef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS -#define ImFabs(X) fabsf(X) -#define ImSqrt(X) sqrtf(X) -#define ImFmod(X, Y) fmodf((X), (Y)) -#define ImCos(X) cosf(X) -#define ImSin(X) sinf(X) -#define ImAcos(X) acosf(X) -#define ImAtan2(Y, X) atan2f((Y), (X)) -#define ImAtof(STR) atof(STR) -#define ImFloorStd(X) floorf(X) // We already uses our own ImFloor() { return (float)(int)v } internally so the standard one wrapper is named differently (it's used by e.g. stb_truetype) -#define ImCeil(X) ceilf(X) -static inline float ImPow(float x, float y) { return powf(x, y); } // DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision -static inline double ImPow(double x, double y) { return pow(x, y); } -static inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision -static inline double ImLog(double x) { return log(x); } -static inline float ImAbs(float x) { return fabsf(x); } -static inline double ImAbs(double x) { return fabs(x); } -static inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : ((x > 0.0f) ? 1.0f : 0.0f); } // Sign operator - returns -1, 0 or 1 based on sign of argument -static inline double ImSign(double x) { return (x < 0.0) ? -1.0 : ((x > 0.0) ? 1.0 : 0.0); } -#endif -// - ImMin/ImMax/ImClamp/ImLerp/ImSwap are used by widgets which support variety of types: signed/unsigned int/long long float/double -// (Exceptionally using templates here but we could also redefine them for those types) -template static inline T ImMin(T lhs, T rhs) { return lhs < rhs ? lhs : rhs; } -template static inline T ImMax(T lhs, T rhs) { return lhs >= rhs ? lhs : rhs; } -template static inline T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; } -template static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); } -template static inline void ImSwap(T& a, T& b) { T tmp = a; a = b; b = tmp; } -template static inline T ImAddClampOverflow(T a, T b, T mn, T mx) { if (b < 0 && (a < mn - b)) return mn; if (b > 0 && (a > mx - b)) return mx; return a + b; } -template static inline T ImSubClampOverflow(T a, T b, T mn, T mx) { if (b > 0 && (a < mn + b)) return mn; if (b < 0 && (a > mx + b)) return mx; return a - b; } -// - Misc maths helpers -static inline ImVec2 ImMin(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x < rhs.x ? lhs.x : rhs.x, lhs.y < rhs.y ? lhs.y : rhs.y); } -static inline ImVec2 ImMax(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x >= rhs.x ? lhs.x : rhs.x, lhs.y >= rhs.y ? lhs.y : rhs.y); } -static inline ImVec2 ImClamp(const ImVec2& v, const ImVec2& mn, ImVec2 mx) { return ImVec2((v.x < mn.x) ? mn.x : (v.x > mx.x) ? mx.x : v.x, (v.y < mn.y) ? mn.y : (v.y > mx.y) ? mx.y : v.y); } -static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, float t) { return ImVec2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t); } -static inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, const ImVec2& t) { return ImVec2(a.x + (b.x - a.x) * t.x, a.y + (b.y - a.y) * t.y); } -static inline ImVec4 ImLerp(const ImVec4& a, const ImVec4& b, float t) { return ImVec4(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t, a.z + (b.z - a.z) * t, a.w + (b.w - a.w) * t); } -static inline float ImSaturate(float f) { return (f < 0.0f) ? 0.0f : (f > 1.0f) ? 1.0f : f; } -static inline float ImLengthSqr(const ImVec2& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y); } -static inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); } -static inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return 1.0f / ImSqrt(d); return fail_value; } -static inline float ImFloor(float f) { return (float)(int)(f); } -static inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); } -static inline int ImModPositive(int a, int b) { return (a + b) % b; } -static inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; } -static inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); } -static inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; } -static inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } - -// Helpers: Geometry -IMGUI_API ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t); -IMGUI_API ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments); // For curves with explicit number of segments -IMGUI_API ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol);// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol -IMGUI_API ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t); -IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p); -IMGUI_API bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); -IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p); -IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w); -inline float ImTriangleArea(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ImFabs((a.x * (b.y - c.y)) + (b.x * (c.y - a.y)) + (c.x * (a.y - b.y))) * 0.5f; } -IMGUI_API ImGuiDir ImGetDirQuadrantFromDelta(float dx, float dy); - -// Helper: ImVec1 (1D vector) -// (this odd construct is used to facilitate the transition between 1D and 2D, and the maintenance of some branches/patches) -struct ImVec1 -{ - float x; - ImVec1() { x = 0.0f; } - ImVec1(float _x) { x = _x; } -}; - -// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage) -struct ImVec2ih -{ - short x, y; - ImVec2ih() { x = y = 0; } - ImVec2ih(short _x, short _y) { x = _x; y = _y; } - explicit ImVec2ih(const ImVec2& rhs) { x = (short)rhs.x; y = (short)rhs.y; } -}; - -// Helper: ImRect (2D axis aligned bounding-box) -// NB: we can't rely on ImVec2 math operators being available here! -struct IMGUI_API ImRect -{ - ImVec2 Min; // Upper-left - ImVec2 Max; // Lower-right - - ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {} - ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} - ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} - ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} - - ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); } - ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } - float GetWidth() const { return Max.x - Min.x; } - float GetHeight() const { return Max.y - Min.y; } - float GetArea() const { return (Max.x - Min.x) * (Max.y - Min.y); } - ImVec2 GetTL() const { return Min; } // Top-left - ImVec2 GetTR() const { return ImVec2(Max.x, Min.y); } // Top-right - ImVec2 GetBL() const { return ImVec2(Min.x, Max.y); } // Bottom-left - ImVec2 GetBR() const { return Max; } // Bottom-right - bool Contains(const ImVec2& p) const { return p.x >= Min.x && p.y >= Min.y && p.x < Max.x && p.y < Max.y; } - bool Contains(const ImRect& r) const { return r.Min.x >= Min.x && r.Min.y >= Min.y && r.Max.x <= Max.x && r.Max.y <= Max.y; } - bool Overlaps(const ImRect& r) const { return r.Min.y < Max.y && r.Max.y > Min.y && r.Min.x < Max.x && r.Max.x > Min.x; } - void Add(const ImVec2& p) { if (Min.x > p.x) Min.x = p.x; if (Min.y > p.y) Min.y = p.y; if (Max.x < p.x) Max.x = p.x; if (Max.y < p.y) Max.y = p.y; } - void Add(const ImRect& r) { if (Min.x > r.Min.x) Min.x = r.Min.x; if (Min.y > r.Min.y) Min.y = r.Min.y; if (Max.x < r.Max.x) Max.x = r.Max.x; if (Max.y < r.Max.y) Max.y = r.Max.y; } - void Expand(const float amount) { Min.x -= amount; Min.y -= amount; Max.x += amount; Max.y += amount; } - void Expand(const ImVec2& amount) { Min.x -= amount.x; Min.y -= amount.y; Max.x += amount.x; Max.y += amount.y; } - void Translate(const ImVec2& d) { Min.x += d.x; Min.y += d.y; Max.x += d.x; Max.y += d.y; } - void TranslateX(float dx) { Min.x += dx; Max.x += dx; } - void TranslateY(float dy) { Min.y += dy; Max.y += dy; } - void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max); } // Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display. - void ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max, r.Min, r.Max); } // Full version, ensure both points are fully clipped. - void Floor() { Min.x = IM_FLOOR(Min.x); Min.y = IM_FLOOR(Min.y); Max.x = IM_FLOOR(Max.x); Max.y = IM_FLOOR(Max.y); } - bool IsInverted() const { return Min.x > Max.x || Min.y > Max.y; } - ImVec4 ToVec4() const { return ImVec4(Min.x, Min.y, Max.x, Max.y); } -}; - -// Helper: ImBitArray -inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; } -inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; } -inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; } -inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2) -{ - n2--; - while (n <= n2) - { - int a_mod = (n & 31); - int b_mod = (n2 > (n | 31) ? 31 : (n2 & 31)) + 1; - ImU32 mask = (ImU32)(((ImU64)1 << b_mod) - 1) & ~(ImU32)(((ImU64)1 << a_mod) - 1); - arr[n >> 5] |= mask; - n = (n + 32) & ~31; - } -} - -// Helper: ImBitArray class (wrapper over ImBitArray functions) -// Store 1-bit per value. NOT CLEARED by constructor. -template -struct IMGUI_API ImBitArray -{ - ImU32 Storage[(BITCOUNT + 31) >> 5]; - ImBitArray() { } - void ClearAllBits() { memset(Storage, 0, sizeof(Storage)); } - void SetAllBits() { memset(Storage, 255, sizeof(Storage)); } - bool TestBit(int n) const { IM_ASSERT(n < BITCOUNT); return ImBitArrayTestBit(Storage, n); } - void SetBit(int n) { IM_ASSERT(n < BITCOUNT); ImBitArraySetBit(Storage, n); } - void ClearBit(int n) { IM_ASSERT(n < BITCOUNT); ImBitArrayClearBit(Storage, n); } - void SetBitRange(int n, int n2) { ImBitArraySetBitRange(Storage, n, n2); } // Works on range [n..n2) -}; - -// Helper: ImBitVector -// Store 1-bit per value. -struct IMGUI_API ImBitVector -{ - ImVector Storage; - void Create(int sz) { Storage.resize((sz + 31) >> 5); memset(Storage.Data, 0, (size_t)Storage.Size * sizeof(Storage.Data[0])); } - void Clear() { Storage.clear(); } - bool TestBit(int n) const { IM_ASSERT(n < (Storage.Size << 5)); return ImBitArrayTestBit(Storage.Data, n); } - void SetBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArraySetBit(Storage.Data, n); } - void ClearBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArrayClearBit(Storage.Data, n); } -}; - -// Helper: ImSpan<> -// Pointing to a span of data we don't own. -template -struct ImSpan -{ - T* Data; - T* DataEnd; - - // Constructors, destructor - inline ImSpan() { Data = DataEnd = NULL; } - inline ImSpan(T* data, int size) { Data = data; DataEnd = data + size; } - inline ImSpan(T* data, T* data_end) { Data = data; DataEnd = data_end; } - - inline void set(T* data, int size) { Data = data; DataEnd = data + size; } - inline void set(T* data, T* data_end) { Data = data; DataEnd = data_end; } - inline int size() const { return (int)(ptrdiff_t)(DataEnd - Data); } - inline int size_in_bytes() const { return (int)(ptrdiff_t)(DataEnd - Data) * (int)sizeof(T); } - inline T& operator[](int i) { T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } - inline const T& operator[](int i) const { const T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; } - - inline T* begin() { return Data; } - inline const T* begin() const { return Data; } - inline T* end() { return DataEnd; } - inline const T* end() const { return DataEnd; } - - // Utilities - inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < DataEnd); const ptrdiff_t off = it - Data; return (int)off; } -}; - -// Helper: ImSpanAllocator<> -// Facilitate storing multiple chunks into a single large block (the "arena") -// - Usage: call Reserve() N times, allocate GetArenaSizeInBytes() worth, pass it to SetArenaBasePtr(), call GetSpan() N times to retrieve the aligned ranges. -template -struct ImSpanAllocator -{ - char* BasePtr; - int CurrOff; - int CurrIdx; - int Offsets[CHUNKS]; - int Sizes[CHUNKS]; - - ImSpanAllocator() { memset(this, 0, sizeof(*this)); } - inline void Reserve(int n, size_t sz, int a=4) { IM_ASSERT(n == CurrIdx && n < CHUNKS); CurrOff = IM_MEMALIGN(CurrOff, a); Offsets[n] = CurrOff; Sizes[n] = (int)sz; CurrIdx++; CurrOff += (int)sz; } - inline int GetArenaSizeInBytes() { return CurrOff; } - inline void SetArenaBasePtr(void* base_ptr) { BasePtr = (char*)base_ptr; } - inline void* GetSpanPtrBegin(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n]); } - inline void* GetSpanPtrEnd(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n] + Sizes[n]); } - template - inline void GetSpan(int n, ImSpan* span) { span->set((T*)GetSpanPtrBegin(n), (T*)GetSpanPtrEnd(n)); } -}; - -// Helper: ImPool<> -// Basic keyed storage for contiguous instances, slow/amortized insertion, O(1) indexable, O(Log N) queries by ID over a dense/hot buffer, -// Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object. -typedef int ImPoolIdx; -template -struct IMGUI_API ImPool -{ - ImVector Buf; // Contiguous data - ImGuiStorage Map; // ID->Index - ImPoolIdx FreeIdx; // Next free idx to use - - ImPool() { FreeIdx = 0; } - ~ImPool() { Clear(); } - T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Buf[idx] : NULL; } - T* GetByIndex(ImPoolIdx n) { return &Buf[n]; } - ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Buf.Data && p < Buf.Data + Buf.Size); return (ImPoolIdx)(p - Buf.Data); } - T* GetOrAddByKey(ImGuiID key) { int* p_idx = Map.GetIntRef(key, -1); if (*p_idx != -1) return &Buf[*p_idx]; *p_idx = FreeIdx; return Add(); } - bool Contains(const T* p) const { return (p >= Buf.Data && p < Buf.Data + Buf.Size); } - void Clear() { for (int n = 0; n < Map.Data.Size; n++) { int idx = Map.Data[n].val_i; if (idx != -1) Buf[idx].~T(); } Map.Clear(); Buf.clear(); FreeIdx = 0; } - T* Add() { int idx = FreeIdx; if (idx == Buf.Size) { Buf.resize(Buf.Size + 1); FreeIdx++; } else { FreeIdx = *(int*)&Buf[idx]; } IM_PLACEMENT_NEW(&Buf[idx]) T(); return &Buf[idx]; } - void Remove(ImGuiID key, const T* p) { Remove(key, GetIndex(p)); } - void Remove(ImGuiID key, ImPoolIdx idx) { Buf[idx].~T(); *(int*)&Buf[idx] = FreeIdx; FreeIdx = idx; Map.SetInt(key, -1); } - void Reserve(int capacity) { Buf.reserve(capacity); Map.Data.reserve(capacity); } - int GetSize() const { return Buf.Size; } -}; - -// Helper: ImChunkStream<> -// Build and iterate a contiguous stream of variable-sized structures. -// This is used by Settings to store persistent data while reducing allocation count. -// We store the chunk size first, and align the final size on 4 bytes boundaries. -// The tedious/zealous amount of casting is to avoid -Wcast-align warnings. -template -struct IMGUI_API ImChunkStream -{ - ImVector Buf; - - void clear() { Buf.clear(); } - bool empty() const { return Buf.Size == 0; } - int size() const { return Buf.Size; } - T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = IM_MEMALIGN(HDR_SZ + sz, 4u); int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); } - T* begin() { size_t HDR_SZ = 4; if (!Buf.Data) return NULL; return (T*)(void*)(Buf.Data + HDR_SZ); } - T* next_chunk(T* p) { size_t HDR_SZ = 4; IM_ASSERT(p >= begin() && p < end()); p = (T*)(void*)((char*)(void*)p + chunk_size(p)); if (p == (T*)(void*)((char*)end() + HDR_SZ)) return (T*)0; IM_ASSERT(p < end()); return p; } - int chunk_size(const T* p) { return ((const int*)p)[-1]; } - T* end() { return (T*)(void*)(Buf.Data + Buf.Size); } - int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; } - T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); } - void swap(ImChunkStream& rhs) { rhs.Buf.swap(Buf); } - -}; - -//----------------------------------------------------------------------------- -// [SECTION] ImDrawList support -//----------------------------------------------------------------------------- - -// ImDrawList: Helper function to calculate a circle's segment count given its radius and a "maximum error" value. -// Estimation of number of circle segment based on error is derived using method described in https://stackoverflow.com/a/2244088/15194693 -// Number of segments (N) is calculated using equation: -// N = ceil ( pi / acos(1 - error / r) ) where r > 0, error <= r -// Our equation is significantly simpler that one in the post thanks for choosing segment that is -// perpendicular to X axis. Follow steps in the article from this starting condition and you will -// will get this result. -// -// Rendering circles with an odd number of segments, while mathematically correct will produce -// asymmetrical results on the raster grid. Therefore we're rounding N to next even number (7->8, 8->8, 9->10 etc.) -// -#define IM_ROUNDUP_TO_EVEN(_V) ((((_V) + 1) / 2) * 2) -#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 4 -#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512 -#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(_RAD,_MAXERROR) ImClamp(IM_ROUNDUP_TO_EVEN((int)ImCeil(IM_PI / ImAcos(1 - ImMin((_MAXERROR), (_RAD)) / (_RAD)))), IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX) - -// ImDrawList: You may set this to higher values (e.g. 2 or 3) to increase tessellation of fast rounded corners path. -#ifndef IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER -#define IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER 1 -#endif - -// Data shared between all ImDrawList instances -// You may want to create your own instance of this if you want to use ImDrawList completely without ImGui. In that case, watch out for future changes to this structure. -struct IMGUI_API ImDrawListSharedData -{ - ImVec2 TexUvWhitePixel; // UV of white pixel in the atlas - ImFont* Font; // Current/default font (optional, for simplified AddText overload) - float FontSize; // Current/default font size (optional, for simplified AddText overload) - float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() - float CircleSegmentMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc - ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen() - ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards) - - // [Internal] Lookup tables - ImVec2 ArcFastVtx[12 * IM_DRAWLIST_ARCFAST_TESSELLATION_MULTIPLIER]; // FIXME: Bake rounded corners fill/borders in atlas - ImU8 CircleSegmentCounts[64]; // Precomputed segment count for given radius before we calculate it dynamically (to avoid calculation overhead) - const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas - - ImDrawListSharedData(); - void SetCircleTessellationMaxError(float max_error); -}; - -struct ImDrawDataBuilder -{ - ImVector Layers[2]; // Global layers for: regular, tooltip - - void Clear() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].resize(0); } - void ClearFreeMemory() { for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) Layers[n].clear(); } - int GetDrawListCount() const { int count = 0; for (int n = 0; n < IM_ARRAYSIZE(Layers); n++) count += Layers[n].Size; return count; } - IMGUI_API void FlattenIntoSingleLayer(); -}; - -//----------------------------------------------------------------------------- -// [SECTION] Widgets support: flags, enums, data structures -//----------------------------------------------------------------------------- - -// Transient per-window flags, reset at the beginning of the frame. For child window, inherited from parent on first Begin(). -// This is going to be exposed in imgui.h when stabilized enough. -enum ImGuiItemFlags_ -{ - ImGuiItemFlags_None = 0, - ImGuiItemFlags_NoTabStop = 1 << 0, // false - ImGuiItemFlags_ButtonRepeat = 1 << 1, // false // Button() will return true multiple times based on io.KeyRepeatDelay and io.KeyRepeatRate settings. - ImGuiItemFlags_Disabled = 1 << 2, // false // [BETA] Disable interactions but doesn't affect visuals yet. See github.com/ocornut/imgui/issues/211 - ImGuiItemFlags_NoNav = 1 << 3, // false - ImGuiItemFlags_NoNavDefaultFocus = 1 << 4, // false - ImGuiItemFlags_SelectableDontClosePopup = 1 << 5, // false // MenuItem/Selectable() automatically closes current Popup window - ImGuiItemFlags_MixedValue = 1 << 6, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets) - ImGuiItemFlags_ReadOnly = 1 << 7, // false // [ALPHA] Allow hovering interactions but underlying value is not changed. - ImGuiItemFlags_Default_ = 0 -}; - -// Storage for LastItem data -enum ImGuiItemStatusFlags_ -{ - ImGuiItemStatusFlags_None = 0, - ImGuiItemStatusFlags_HoveredRect = 1 << 0, - ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, // LastItemDisplayRect is valid - ImGuiItemStatusFlags_Edited = 1 << 2, // Value exposed by item was edited in the current frame (should match the bool return value of most widgets) - ImGuiItemStatusFlags_ToggledSelection = 1 << 3, // Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected" because reporting the change allows us to handle clipping with less issues. - ImGuiItemStatusFlags_ToggledOpen = 1 << 4, // Set when TreeNode() reports toggling their open state. - ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag. - ImGuiItemStatusFlags_Deactivated = 1 << 6, // Only valid if ImGuiItemStatusFlags_HasDeactivated is set. - ImGuiItemStatusFlags_HoveredWindow = 1 << 7 // Override the HoveredWindow test to allow cross-window hover testing. - -#ifdef IMGUI_ENABLE_TEST_ENGINE - , // [imgui_tests only] - ImGuiItemStatusFlags_Openable = 1 << 10, // - ImGuiItemStatusFlags_Opened = 1 << 11, // - ImGuiItemStatusFlags_Checkable = 1 << 12, // - ImGuiItemStatusFlags_Checked = 1 << 13 // -#endif -}; - -// Extend ImGuiButtonFlags_ -enum ImGuiButtonFlagsPrivate_ -{ - ImGuiButtonFlags_PressedOnClick = 1 << 4, // return true on click (mouse down event) - ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, // [Default] return true on click + release on same item <-- this is what the majority of Button are using - ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, // return true on click + release even if the release event is not done while hovering the item - ImGuiButtonFlags_PressedOnRelease = 1 << 7, // return true on release (default requires click+release) - ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, // return true on double-click (default requires click+release) - ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, // return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers) - ImGuiButtonFlags_Repeat = 1 << 10, // hold to repeat - ImGuiButtonFlags_FlattenChildren = 1 << 11, // allow interactions even if a child window is overlapping - ImGuiButtonFlags_AllowItemOverlap = 1 << 12, // require previous frame HoveredId to either match id or be null before being usable, use along with SetItemAllowOverlap() - ImGuiButtonFlags_DontClosePopups = 1 << 13, // disable automatically closing parent popup on press // [UNUSED] - ImGuiButtonFlags_Disabled = 1 << 14, // disable interactions - ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine - ImGuiButtonFlags_NoKeyModifiers = 1 << 16, // disable mouse interaction if a key modifier is held - ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only) - ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated - ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item - ImGuiButtonFlags_PressedOnMask_ = ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold, - ImGuiButtonFlags_PressedOnDefault_ = ImGuiButtonFlags_PressedOnClickRelease -}; - -// Extend ImGuiSliderFlags_ -enum ImGuiSliderFlagsPrivate_ -{ - ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically? - ImGuiSliderFlags_ReadOnly = 1 << 21 -}; - -// Extend ImGuiSelectableFlags_ -enum ImGuiSelectableFlagsPrivate_ -{ - // NB: need to be in sync with last value of ImGuiSelectableFlags_ - ImGuiSelectableFlags_NoHoldingActiveID = 1 << 20, - ImGuiSelectableFlags_SelectOnClick = 1 << 21, // Override button behavior to react on Click (default is Click+Release) - ImGuiSelectableFlags_SelectOnRelease = 1 << 22, // Override button behavior to react on Release (default is Click+Release) - ImGuiSelectableFlags_SpanAvailWidth = 1 << 23, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus) - ImGuiSelectableFlags_DrawHoveredWhenHeld = 1 << 24, // Always show active when held, even is not hovered. This concept could probably be renamed/formalized somehow. - ImGuiSelectableFlags_SetNavIdOnHover = 1 << 25, // Set Nav/Focus ID on mouse hover (used by MenuItem) - ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 26 // Disable padding each side with ItemSpacing * 0.5f -}; - -// Extend ImGuiTreeNodeFlags_ -enum ImGuiTreeNodeFlagsPrivate_ -{ - ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1 << 20 -}; - -enum ImGuiSeparatorFlags_ -{ - ImGuiSeparatorFlags_None = 0, - ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar - ImGuiSeparatorFlags_Vertical = 1 << 1, - ImGuiSeparatorFlags_SpanAllColumns = 1 << 2 -}; - -enum ImGuiTextFlags_ -{ - ImGuiTextFlags_None = 0, - ImGuiTextFlags_NoWidthForLargeClippedText = 1 << 0 -}; - -enum ImGuiTooltipFlags_ -{ - ImGuiTooltipFlags_None = 0, - ImGuiTooltipFlags_OverridePreviousTooltip = 1 << 0 // Override will clear/ignore previously submitted tooltip (defaults to append) -}; - -// FIXME: this is in development, not exposed/functional as a generic feature yet. -// Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2 -enum ImGuiLayoutType_ -{ - ImGuiLayoutType_Horizontal = 0, - ImGuiLayoutType_Vertical = 1 -}; - -enum ImGuiLogType -{ - ImGuiLogType_None = 0, - ImGuiLogType_TTY, - ImGuiLogType_File, - ImGuiLogType_Buffer, - ImGuiLogType_Clipboard -}; - -// X/Y enums are fixed to 0/1 so they may be used to index ImVec2 -enum ImGuiAxis -{ - ImGuiAxis_None = -1, - ImGuiAxis_X = 0, - ImGuiAxis_Y = 1 -}; - -enum ImGuiPlotType -{ - ImGuiPlotType_Lines, - ImGuiPlotType_Histogram -}; - -enum ImGuiInputSource -{ - ImGuiInputSource_None = 0, - ImGuiInputSource_Mouse, - ImGuiInputSource_Nav, - ImGuiInputSource_NavKeyboard, // Only used occasionally for storage, not tested/handled by most code - ImGuiInputSource_NavGamepad, // " - ImGuiInputSource_COUNT -}; - -// FIXME-NAV: Clarify/expose various repeat delay/rate -enum ImGuiInputReadMode -{ - ImGuiInputReadMode_Down, - ImGuiInputReadMode_Pressed, - ImGuiInputReadMode_Released, - ImGuiInputReadMode_Repeat, - ImGuiInputReadMode_RepeatSlow, - ImGuiInputReadMode_RepeatFast -}; - -enum ImGuiNavHighlightFlags_ -{ - ImGuiNavHighlightFlags_None = 0, - ImGuiNavHighlightFlags_TypeDefault = 1 << 0, - ImGuiNavHighlightFlags_TypeThin = 1 << 1, - ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse. - ImGuiNavHighlightFlags_NoRounding = 1 << 3 -}; - -enum ImGuiNavDirSourceFlags_ -{ - ImGuiNavDirSourceFlags_None = 0, - ImGuiNavDirSourceFlags_Keyboard = 1 << 0, - ImGuiNavDirSourceFlags_PadDPad = 1 << 1, - ImGuiNavDirSourceFlags_PadLStick = 1 << 2 -}; - -enum ImGuiNavMoveFlags_ -{ - ImGuiNavMoveFlags_None = 0, - ImGuiNavMoveFlags_LoopX = 1 << 0, // On failed request, restart from opposite side - ImGuiNavMoveFlags_LoopY = 1 << 1, - ImGuiNavMoveFlags_WrapX = 1 << 2, // On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left) - ImGuiNavMoveFlags_WrapY = 1 << 3, // This is not super useful for provided for completeness - ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, // Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place) - ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, // Store alternate result in NavMoveResultLocalVisibleSet that only comprise elements that are already fully visible. - ImGuiNavMoveFlags_ScrollToEdge = 1 << 6 -}; - -enum ImGuiNavForward -{ - ImGuiNavForward_None, - ImGuiNavForward_ForwardQueued, - ImGuiNavForward_ForwardActive -}; - -enum ImGuiNavLayer -{ - ImGuiNavLayer_Main = 0, // Main scrolling layer - ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt/ImGuiNavInput_Menu) - ImGuiNavLayer_COUNT -}; - -enum ImGuiPopupPositionPolicy -{ - ImGuiPopupPositionPolicy_Default, - ImGuiPopupPositionPolicy_ComboBox, - ImGuiPopupPositionPolicy_Tooltip -}; - -struct ImGuiDataTypeTempStorage -{ - ImU8 Data[8]; // Can fit any data up to ImGuiDataType_COUNT -}; - -// Type information associated to one ImGuiDataType. Retrieve with DataTypeGetInfo(). -struct ImGuiDataTypeInfo -{ - size_t Size; // Size in bytes - const char* Name; // Short descriptive name for the type, for debugging - const char* PrintFmt; // Default printf format for the type - const char* ScanFmt; // Default scanf format for the type -}; - -// Extend ImGuiDataType_ -enum ImGuiDataTypePrivate_ -{ - ImGuiDataType_String = ImGuiDataType_COUNT + 1, - ImGuiDataType_Pointer, - ImGuiDataType_ID -}; - -// Stacked color modifier, backup of modified data so we can restore it -struct ImGuiColorMod -{ - ImGuiCol Col; - ImVec4 BackupValue; -}; - -// Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable. -struct ImGuiStyleMod -{ - ImGuiStyleVar VarIdx; - union { int BackupInt[2]; float BackupFloat[2]; }; - ImGuiStyleMod(ImGuiStyleVar idx, int v) { VarIdx = idx; BackupInt[0] = v; } - ImGuiStyleMod(ImGuiStyleVar idx, float v) { VarIdx = idx; BackupFloat[0] = v; } - ImGuiStyleMod(ImGuiStyleVar idx, ImVec2 v) { VarIdx = idx; BackupFloat[0] = v.x; BackupFloat[1] = v.y; } -}; - -// Stacked storage data for BeginGroup()/EndGroup() -struct IMGUI_API ImGuiGroupData -{ - ImGuiID WindowID; - ImVec2 BackupCursorPos; - ImVec2 BackupCursorMaxPos; - ImVec1 BackupIndent; - ImVec1 BackupGroupOffset; - ImVec2 BackupCurrLineSize; - float BackupCurrLineTextBaseOffset; - ImGuiID BackupActiveIdIsAlive; - bool BackupActiveIdPreviousFrameIsAlive; - bool BackupHoveredIdIsAlive; - bool EmitItem; -}; - -// Simple column measurement, currently used for MenuItem() only.. This is very short-sighted/throw-away code and NOT a generic helper. -struct IMGUI_API ImGuiMenuColumns -{ - float Spacing; - float Width, NextWidth; - float Pos[3], NextWidths[3]; - - ImGuiMenuColumns() { memset(this, 0, sizeof(*this)); } - void Update(int count, float spacing, bool clear); - float DeclColumns(float w0, float w1, float w2); - float CalcExtraSpace(float avail_w) const; -}; - -// Internal state of the currently focused/edited text input box -// For a given item ID, access with ImGui::GetInputTextState() -struct IMGUI_API ImGuiInputTextState -{ - ImGuiID ID; // widget id owning the text state - int CurLenW, CurLenA; // we need to maintain our buffer length in both UTF-8 and wchar format. UTF-8 length is valid even if TextA is not. - ImVector TextW; // edit buffer, we need to persist but can't guarantee the persistence of the user-provided buffer. so we copy into own buffer. - ImVector TextA; // temporary UTF8 buffer for callbacks and other operations. this is not updated in every code-path! size=capacity. - ImVector InitialTextA; // backup of end-user buffer at the time of focus (in UTF-8, unaltered) - bool TextAIsValid; // temporary UTF8 buffer is not initially valid before we make the widget active (until then we pull the data from user argument) - int BufCapacityA; // end-user buffer capacity - float ScrollX; // horizontal scrolling/offset - ImStb::STB_TexteditState Stb; // state for stb_textedit.h - float CursorAnim; // timer for cursor blink, reset on every user action so the cursor reappears immediately - bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!) - bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection - bool Edited; // edited this frame - ImGuiInputTextFlags UserFlags; // Temporarily set while we call user's callback - ImGuiInputTextCallback UserCallback; // " - void* UserCallbackData; // " - - ImGuiInputTextState() { memset(this, 0, sizeof(*this)); } - void ClearText() { CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); } - void ClearFreeMemory() { TextW.clear(); TextA.clear(); InitialTextA.clear(); } - int GetUndoAvailCount() const { return Stb.undostate.undo_point; } - int GetRedoAvailCount() const { return STB_TEXTEDIT_UNDOSTATECOUNT - Stb.undostate.redo_point; } - void OnKeyPressed(int key); // Cannot be inline because we call in code in stb_textedit.h implementation - - // Cursor & Selection - void CursorAnimReset() { CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking - void CursorClamp() { Stb.cursor = ImMin(Stb.cursor, CurLenW); Stb.select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); } - bool HasSelection() const { return Stb.select_start != Stb.select_end; } - void ClearSelection() { Stb.select_start = Stb.select_end = Stb.cursor; } - void SelectAll() { Stb.select_start = 0; Stb.cursor = Stb.select_end = CurLenW; Stb.has_preferred_x = 0; } -}; - -// Storage for current popup stack -struct ImGuiPopupData -{ - ImGuiID PopupId; // Set on OpenPopup() - ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup() - ImGuiWindow* SourceWindow; // Set on OpenPopup() copy of NavWindow at the time of opening the popup - int OpenFrameCount; // Set on OpenPopup() - ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items) - ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse) - ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup - - ImGuiPopupData() { memset(this, 0, sizeof(*this)); OpenFrameCount = -1; } -}; - -struct ImGuiNavMoveResult -{ - ImGuiWindow* Window; // Best candidate window - ImGuiID ID; // Best candidate ID - ImGuiID FocusScopeId; // Best candidate focus scope ID - float DistBox; // Best candidate box distance to current NavId - float DistCenter; // Best candidate center distance to current NavId - float DistAxial; - ImRect RectRel; // Best candidate bounding box in window relative space - - ImGuiNavMoveResult() { Clear(); } - void Clear() { Window = NULL; ID = FocusScopeId = 0; DistBox = DistCenter = DistAxial = FLT_MAX; RectRel = ImRect(); } -}; - -enum ImGuiNextWindowDataFlags_ -{ - ImGuiNextWindowDataFlags_None = 0, - ImGuiNextWindowDataFlags_HasPos = 1 << 0, - ImGuiNextWindowDataFlags_HasSize = 1 << 1, - ImGuiNextWindowDataFlags_HasContentSize = 1 << 2, - ImGuiNextWindowDataFlags_HasCollapsed = 1 << 3, - ImGuiNextWindowDataFlags_HasSizeConstraint = 1 << 4, - ImGuiNextWindowDataFlags_HasFocus = 1 << 5, - ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, - ImGuiNextWindowDataFlags_HasScroll = 1 << 7 -}; - -// Storage for SetNexWindow** functions -struct ImGuiNextWindowData -{ - ImGuiNextWindowDataFlags Flags; - ImGuiCond PosCond; - ImGuiCond SizeCond; - ImGuiCond CollapsedCond; - ImVec2 PosVal; - ImVec2 PosPivotVal; - ImVec2 SizeVal; - ImVec2 ContentSizeVal; - ImVec2 ScrollVal; - bool CollapsedVal; - ImRect SizeConstraintRect; - ImGuiSizeCallback SizeCallback; - void* SizeCallbackUserData; - float BgAlphaVal; // Override background alpha - ImVec2 MenuBarOffsetMinVal; // *Always on* This is not exposed publicly, so we don't clear it. - - ImGuiNextWindowData() { memset(this, 0, sizeof(*this)); } - inline void ClearFlags() { Flags = ImGuiNextWindowDataFlags_None; } -}; - -enum ImGuiNextItemDataFlags_ -{ - ImGuiNextItemDataFlags_None = 0, - ImGuiNextItemDataFlags_HasWidth = 1 << 0, - ImGuiNextItemDataFlags_HasOpen = 1 << 1 -}; - -struct ImGuiNextItemData -{ - ImGuiNextItemDataFlags Flags; - float Width; // Set by SetNextItemWidth() - ImGuiID FocusScopeId; // Set by SetNextItemMultiSelectData() (!= 0 signify value has been set, so it's an alternate version of HasSelectionData, we don't use Flags for this because they are cleared too early. This is mostly used for debugging) - ImGuiCond OpenCond; - bool OpenVal; // Set by SetNextItemOpen() - - ImGuiNextItemData() { memset(this, 0, sizeof(*this)); } - inline void ClearFlags() { Flags = ImGuiNextItemDataFlags_None; } // Also cleared manually by ItemAdd()! -}; - -struct ImGuiShrinkWidthItem -{ - int Index; - float Width; -}; - -struct ImGuiPtrOrIndex -{ - void* Ptr; // Either field can be set, not both. e.g. Dock node tab bars are loose while BeginTabBar() ones are in a pool. - int Index; // Usually index in a main pool. - - ImGuiPtrOrIndex(void* ptr) { Ptr = ptr; Index = -1; } - ImGuiPtrOrIndex(int index) { Ptr = NULL; Index = index; } -}; - -//----------------------------------------------------------------------------- -// [SECTION] Columns support -//----------------------------------------------------------------------------- - -// Flags for internal's BeginColumns(). Prefix using BeginTable() nowadays! -enum ImGuiOldColumnFlags_ -{ - ImGuiOldColumnFlags_None = 0, - ImGuiOldColumnFlags_NoBorder = 1 << 0, // Disable column dividers - ImGuiOldColumnFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers - ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns - ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window - ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4 // (WIP) Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove. - - // Obsolete names (will be removed) -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - , ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None, - ImGuiColumnsFlags_NoBorder = ImGuiOldColumnFlags_NoBorder, - ImGuiColumnsFlags_NoResize = ImGuiOldColumnFlags_NoResize, - ImGuiColumnsFlags_NoPreserveWidths = ImGuiOldColumnFlags_NoPreserveWidths, - ImGuiColumnsFlags_NoForceWithinWindow = ImGuiOldColumnFlags_NoForceWithinWindow, - ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize -#endif -}; - -struct ImGuiOldColumnData -{ - float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right) - float OffsetNormBeforeResize; - ImGuiOldColumnFlags Flags; // Not exposed - ImRect ClipRect; - - ImGuiOldColumnData() { memset(this, 0, sizeof(*this)); } -}; - -struct ImGuiOldColumns -{ - ImGuiID ID; - ImGuiOldColumnFlags Flags; - bool IsFirstFrame; - bool IsBeingResized; - int Current; - int Count; - float OffMinX, OffMaxX; // Offsets from HostWorkRect.Min.x - float LineMinY, LineMaxY; - float HostCursorPosY; // Backup of CursorPos at the time of BeginColumns() - float HostCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns() - ImRect HostInitialClipRect; // Backup of ClipRect at the time of BeginColumns() - ImRect HostBackupClipRect; // Backup of ClipRect during PushColumnsBackground()/PopColumnsBackground() - ImRect HostBackupParentWorkRect;//Backup of WorkRect at the time of BeginColumns() - ImVector Columns; - ImDrawListSplitter Splitter; - - ImGuiOldColumns() { memset(this, 0, sizeof(*this)); } -}; - -//----------------------------------------------------------------------------- -// [SECTION] Multi-select support -//----------------------------------------------------------------------------- - -#ifdef IMGUI_HAS_MULTI_SELECT -// -#endif // #ifdef IMGUI_HAS_MULTI_SELECT - -//----------------------------------------------------------------------------- -// [SECTION] Docking support -//----------------------------------------------------------------------------- - -#ifdef IMGUI_HAS_DOCK -// -#endif // #ifdef IMGUI_HAS_DOCK - -//----------------------------------------------------------------------------- -// [SECTION] Viewport support -//----------------------------------------------------------------------------- - -// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!) -// Every instance of ImGuiViewport is in fact a ImGuiViewportP. -struct ImGuiViewportP : public ImGuiViewport -{ - int DrawListsLastFrame[2]; // Last frame number the background (0) and foreground (1) draw lists were used - ImDrawList* DrawLists[2]; // Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor when io.MouseDrawCursor is set and to draw most debug overlays. - ImDrawData DrawDataP; - ImDrawDataBuilder DrawDataBuilder; - - ImVec2 WorkOffsetMin; // Work Area: Offset from Pos to top-left corner of Work Area. Generally (0,0) or (0,+main_menu_bar_height). Work Area is Full Area but without menu-bars/status-bars (so WorkArea always fit inside Pos/Size!) - ImVec2 WorkOffsetMax; // Work Area: Offset from Pos+Size to bottom-right corner of Work Area. Generally (0,0) or (0,-status_bar_height). - ImVec2 CurrWorkOffsetMin; // Work Area: Offset being built/increased during current frame - ImVec2 CurrWorkOffsetMax; // Work Area: Offset being built/decreased during current frame - - ImGuiViewportP() { DrawListsLastFrame[0] = DrawListsLastFrame[1] = -1; DrawLists[0] = DrawLists[1] = NULL; } - ~ImGuiViewportP() { if (DrawLists[0]) IM_DELETE(DrawLists[0]); if (DrawLists[1]) IM_DELETE(DrawLists[1]); } - ImRect GetMainRect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } - ImRect GetWorkRect() const { return ImRect(WorkPos.x, WorkPos.y, WorkPos.x + WorkSize.x, WorkPos.y + WorkSize.y); } - void UpdateWorkRect() { WorkPos = ImVec2(Pos.x + WorkOffsetMin.x, Pos.y + WorkOffsetMin.y); WorkSize = ImVec2(ImMax(0.0f, Size.x - WorkOffsetMin.x + WorkOffsetMax.x), ImMax(0.0f, Size.y - WorkOffsetMin.y + WorkOffsetMax.y)); } -}; - -//----------------------------------------------------------------------------- -// [SECTION] Settings support -//----------------------------------------------------------------------------- - -// Windows data saved in imgui.ini file -// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily. -// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure) -struct ImGuiWindowSettings -{ - ImGuiID ID; - ImVec2ih Pos; - ImVec2ih Size; - bool Collapsed; - bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) - - ImGuiWindowSettings() { memset(this, 0, sizeof(*this)); } - char* GetName() { return (char*)(this + 1); } -}; - -struct ImGuiSettingsHandler -{ - const char* TypeName; // Short description stored in .ini file. Disallowed characters: '[' ']' - ImGuiID TypeHash; // == ImHashStr(TypeName) - void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Clear all settings data - void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called before reading (in registration order) - void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); // Read: Called when entering into a new ini entry e.g. "[Window][Name]" - void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); // Read: Called for every line of text within an ini entry - void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called after reading (in registration order) - void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); // Write: Output every entries into 'out_buf' - void* UserData; - - ImGuiSettingsHandler() { memset(this, 0, sizeof(*this)); } -}; - -//----------------------------------------------------------------------------- -// [SECTION] Metrics, Debug -//----------------------------------------------------------------------------- - -struct ImGuiMetricsConfig -{ - bool ShowWindowsRects; - bool ShowWindowsBeginOrder; - bool ShowTablesRects; - bool ShowDrawCmdMesh; - bool ShowDrawCmdBoundingBoxes; - int ShowWindowsRectsType; - int ShowTablesRectsType; - - ImGuiMetricsConfig() - { - ShowWindowsRects = false; - ShowWindowsBeginOrder = false; - ShowTablesRects = false; - ShowDrawCmdMesh = true; - ShowDrawCmdBoundingBoxes = true; - ShowWindowsRectsType = -1; - ShowTablesRectsType = -1; - } -}; - -struct IMGUI_API ImGuiStackSizes -{ - short SizeOfIDStack; - short SizeOfColorStack; - short SizeOfStyleVarStack; - short SizeOfFontStack; - short SizeOfFocusScopeStack; - short SizeOfGroupStack; - short SizeOfBeginPopupStack; - - ImGuiStackSizes() { memset(this, 0, sizeof(*this)); } - void SetToCurrentState(); - void CompareWithCurrentState(); -}; - -//----------------------------------------------------------------------------- -// [SECTION] Generic context hooks -//----------------------------------------------------------------------------- - -typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); -enum ImGuiContextHookType { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }; - -struct ImGuiContextHook -{ - ImGuiID HookId; // A unique ID assigned by AddContextHook() - ImGuiContextHookType Type; - ImGuiID Owner; - ImGuiContextHookCallback Callback; - void* UserData; - - ImGuiContextHook() { memset(this, 0, sizeof(*this)); } -}; - -//----------------------------------------------------------------------------- -// [SECTION] ImGuiContext (main imgui context) -//----------------------------------------------------------------------------- - -struct ImGuiContext -{ - bool Initialized; - bool FontAtlasOwnedByContext; // IO.Fonts-> is owned by the ImGuiContext and will be destructed along with it. - ImGuiIO IO; - ImGuiStyle Style; - ImFont* Font; // (Shortcut) == FontStack.empty() ? IO.Font : FontStack.back() - float FontSize; // (Shortcut) == FontBaseSize * g.CurrentWindow->FontWindowScale == window->FontSize(). Text height for current window. - float FontBaseSize; // (Shortcut) == IO.FontGlobalScale * Font->Scale * Font->FontSize. Base text height. - ImDrawListSharedData DrawListSharedData; - double Time; - int FrameCount; - int FrameCountEnded; - int FrameCountRendered; - bool WithinFrameScope; // Set by NewFrame(), cleared by EndFrame() - bool WithinFrameScopeWithImplicitWindow; // Set by NewFrame(), cleared by EndFrame() when the implicit debug window has been pushed - bool WithinEndChild; // Set within EndChild() - bool GcCompactAll; // Request full GC - bool TestEngineHookItems; // Will call test engine hooks: ImGuiTestEngineHook_ItemAdd(), ImGuiTestEngineHook_ItemInfo(), ImGuiTestEngineHook_Log() - ImGuiID TestEngineHookIdInfo; // Will call test engine hooks: ImGuiTestEngineHook_IdInfo() from GetID() - void* TestEngine; // Test engine user data - - // Windows state - ImVector Windows; // Windows, sorted in display order, back to front - ImVector WindowsFocusOrder; // Windows, sorted in focus order, back to front. (FIXME: We could only store root windows here! Need to sort out the Docking equivalent which is RootWindowDockStop and is unfortunately a little more dynamic) - ImVector WindowsTempSortBuffer; // Temporary buffer used in EndFrame() to reorder windows so parents are kept before their child - ImVector CurrentWindowStack; - ImGuiStorage WindowsById; // Map window's ImGuiID to ImGuiWindow* - int WindowsActiveCount; // Number of unique windows submitted by frame - ImGuiWindow* CurrentWindow; // Window being drawn into - ImGuiWindow* HoveredWindow; // Window the mouse is hovering. Will typically catch mouse inputs. - ImGuiWindow* HoveredWindowUnderMovingWindow; // Hovered window ignoring MovingWindow. Only set if MovingWindow is set. - ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindow. - ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window. - ImVec2 WheelingWindowRefMousePos; - float WheelingWindowTimer; - - // Item/widgets state and tracking information - ImGuiID HoveredId; // Hovered widget, filled during the frame - ImGuiID HoveredIdPreviousFrame; - bool HoveredIdAllowOverlap; - bool HoveredIdUsingMouseWheel; // Hovered widget will use mouse wheel. Blocks scrolling the underlying window. - bool HoveredIdPreviousFrameUsingMouseWheel; - bool HoveredIdDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0. - float HoveredIdTimer; // Measure contiguous hovering time - float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active - ImGuiID ActiveId; // Active widget - ImGuiID ActiveIdIsAlive; // Active widget has been seen this frame (we can't use a bool as the ActiveId may change within the frame) - float ActiveIdTimer; - bool ActiveIdIsJustActivated; // Set at the time of activation for one frame - bool ActiveIdAllowOverlap; // Active widget allows another widget to steal active id (generally for overlapping widgets, but not always) - bool ActiveIdNoClearOnFocusLoss; // Disable losing active id if the active id window gets unfocused. - bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch. - bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state. - bool ActiveIdHasBeenEditedThisFrame; - bool ActiveIdUsingMouseWheel; // Active widget will want to read mouse wheel. Blocks scrolling the underlying window. - ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it) - ImU32 ActiveIdUsingNavInputMask; // Active widget will want to read those nav inputs. - ImU64 ActiveIdUsingKeyInputMask; // Active widget will want to read those key inputs. When we grow the ImGuiKey enum we'll need to either to order the enum to make useful keys come first, either redesign this into e.g. a small array. - ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior) - ImGuiWindow* ActiveIdWindow; - ImGuiInputSource ActiveIdSource; // Activating with mouse or nav (gamepad/keyboard) - int ActiveIdMouseButton; - ImGuiID ActiveIdPreviousFrame; - bool ActiveIdPreviousFrameIsAlive; - bool ActiveIdPreviousFrameHasBeenEditedBefore; - ImGuiWindow* ActiveIdPreviousFrameWindow; - ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation. - float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation. - - // Next window/item data - ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions - ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions - - // Shared stacks - ImVector ColorStack; // Stack for PushStyleColor()/PopStyleColor() - inherited by Begin() - ImVector StyleVarStack; // Stack for PushStyleVar()/PopStyleVar() - inherited by Begin() - ImVector FontStack; // Stack for PushFont()/PopFont() - inherited by Begin() - ImVector FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - not inherited by Begin(), unless child window - ImVectorItemFlagsStack; // Stack for PushItemFlag()/PopItemFlag() - inherited by Begin() - ImVectorGroupStack; // Stack for BeginGroup()/EndGroup() - not inherited by Begin() - ImVectorOpenPopupStack; // Which popups are open (persistent) - ImVectorBeginPopupStack; // Which level of BeginPopup() we are in (reset every frame) - - // Viewports - ImVector Viewports; // Active viewports (Size==1 in 'master' branch). Each viewports hold their copy of ImDrawData. - - // Gamepad/keyboard Navigation - ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusWindow' - ImGuiID NavId; // Focused item for navigation - ImGuiID NavFocusScopeId; // Identify a selection scope (selection code often wants to "clear other items" when landing on an item of the selection set) - ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0, also set when calling ActivateItem() - ImGuiID NavActivateDownId; // ~~ IsNavInputDown(ImGuiNavInput_Activate) ? NavId : 0 - ImGuiID NavActivatePressedId; // ~~ IsNavInputPressed(ImGuiNavInput_Activate) ? NavId : 0 - ImGuiID NavInputId; // ~~ IsNavInputPressed(ImGuiNavInput_Input) ? NavId : 0 - ImGuiID NavJustTabbedId; // Just tabbed to this id. - ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest). - ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest). - ImGuiKeyModFlags NavJustMovedToKeyMods; - ImGuiID NavNextActivateId; // Set by ActivateItem(), queued until next frame. - ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS WILL ONLY BE None or NavGamepad or NavKeyboard. - ImRect NavScoringRect; // Rectangle used for scoring, in screen space. Based of window->NavRectRel[], modified for directional navigation scoring. - int NavScoringCount; // Metrics for debugging - ImGuiNavLayer NavLayer; // Layer we are navigating on. For now the system is hard-coded for 0=main contents and 1=menu/title bar, may expose layers later. - int NavIdTabCounter; // == NavWindow->DC.FocusIdxTabCounter at time of NavId processing - bool NavIdIsAlive; // Nav widget has been seen this frame ~~ NavRectRel is valid - bool NavMousePosDirty; // When set we will update mouse position if (io.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) if set (NB: this not enabled by default) - bool NavDisableHighlight; // When user starts using mouse, we hide gamepad/keyboard highlight (NB: but they are still available, which is why NavDisableHighlight isn't always != NavDisableMouseHover) - bool NavDisableMouseHover; // When user starts using gamepad/keyboard, we hide mouse hovering highlight until mouse is touched again. - bool NavAnyRequest; // ~~ NavMoveRequest || NavInitRequest - bool NavInitRequest; // Init request for appearing window to select first item - bool NavInitRequestFromMove; - ImGuiID NavInitResultId; // Init request result (first item of the window, or one for which SetItemDefaultFocus() was called) - ImRect NavInitResultRectRel; // Init request result rectangle (relative to parent window) - bool NavMoveRequest; // Move request for this frame - ImGuiNavMoveFlags NavMoveRequestFlags; - ImGuiNavForward NavMoveRequestForward; // None / ForwardQueued / ForwardActive (this is used to navigate sibling parent menus from a child menu) - ImGuiKeyModFlags NavMoveRequestKeyMods; - ImGuiDir NavMoveDir, NavMoveDirLast; // Direction of the move request (left/right/up/down), direction of the previous move request - ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename? - ImGuiNavMoveResult NavMoveResultLocal; // Best move request candidate within NavWindow - ImGuiNavMoveResult NavMoveResultLocalVisibleSet; // Best move request candidate within NavWindow that are mostly visible (when using ImGuiNavMoveFlags_AlsoScoreVisibleSet flag) - ImGuiNavMoveResult NavMoveResultOther; // Best move request candidate within NavWindow's flattened hierarchy (when using ImGuiWindowFlags_NavFlattened flag) - ImGuiWindow* NavWrapRequestWindow; // Window which requested trying nav wrap-around. - ImGuiNavMoveFlags NavWrapRequestFlags; // Wrap-around operation flags. - - // Navigation: Windowing (CTRL+TAB for list, or Menu button + keys or directional pads to move/resize) - ImGuiWindow* NavWindowingTarget; // Target window when doing CTRL+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most! - ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it. - ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the CTRL+Tab contents - float NavWindowingTimer; - float NavWindowingHighlightAlpha; - bool NavWindowingToggleLayer; - - // Legacy Focus/Tabbing system (older than Nav, active even if Nav is disabled, misnamed. FIXME-NAV: This needs a redesign!) - ImGuiWindow* FocusRequestCurrWindow; // - ImGuiWindow* FocusRequestNextWindow; // - int FocusRequestCurrCounterRegular; // Any item being requested for focus, stored as an index (we on layout to be stable between the frame pressing TAB and the next frame, semi-ouch) - int FocusRequestCurrCounterTabStop; // Tab item being requested for focus, stored as an index - int FocusRequestNextCounterRegular; // Stored for next frame - int FocusRequestNextCounterTabStop; // " - bool FocusTabPressed; // - - // Render - float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and CTRL+TAB list) - ImGuiMouseCursor MouseCursor; - - // Drag and Drop - bool DragDropActive; - bool DragDropWithinSource; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag source. - bool DragDropWithinTarget; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag target. - ImGuiDragDropFlags DragDropSourceFlags; - int DragDropSourceFrameCount; - int DragDropMouseButton; - ImGuiPayload DragDropPayload; - ImRect DragDropTargetRect; // Store rectangle of current target candidate (we favor small targets when overlapping) - ImGuiID DragDropTargetId; - ImGuiDragDropFlags DragDropAcceptFlags; - float DragDropAcceptIdCurrRectSurface; // Target item surface (we resolve overlapping targets by prioritizing the smaller surface) - ImGuiID DragDropAcceptIdCurr; // Target item id (set at the time of accepting the payload) - ImGuiID DragDropAcceptIdPrev; // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets) - int DragDropAcceptFrameCount; // Last time a target expressed a desire to accept the source - ImGuiID DragDropHoldJustPressedId; // Set when holding a payload just made ButtonBehavior() return a press. - ImVector DragDropPayloadBufHeap; // We don't expose the ImVector<> directly, ImGuiPayload only holds pointer+size - unsigned char DragDropPayloadBufLocal[16]; // Local buffer for small payloads - - // Table - ImGuiTable* CurrentTable; - ImPool Tables; - ImVector CurrentTableStack; - ImVector TablesLastTimeActive; // Last used timestamp of each tables (SOA, for efficient GC) - ImVector DrawChannelsTempMergeBuffer; - - // Tab bars - ImGuiTabBar* CurrentTabBar; - ImPool TabBars; - ImVector CurrentTabBarStack; - ImVector ShrinkWidthBuffer; - - // Widget state - ImVec2 LastValidMousePos; - ImGuiInputTextState InputTextState; - ImFont InputTextPasswordFont; - ImGuiID TempInputId; // Temporary text input when CTRL+clicking on a slider, etc. - ImGuiColorEditFlags ColorEditOptions; // Store user options for color edit widgets - float ColorEditLastHue; // Backup of last Hue associated to LastColor[3], so we can restore Hue in lossy RGB<>HSV round trips - float ColorEditLastSat; // Backup of last Saturation associated to LastColor[3], so we can restore Saturation in lossy RGB<>HSV round trips - float ColorEditLastColor[3]; - ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker. - float SliderCurrentAccum; // Accumulated slider delta when using navigation controls. - bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it? - bool DragCurrentAccumDirty; - float DragCurrentAccum; // Accumulator for dragging modification. Always high-precision, not rounded by end-user precision settings - float DragSpeedDefaultRatio; // If speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio - float ScrollbarClickDeltaToGrabCenter; // Distance between mouse and center of grab box, normalized in parent space. Use storage? - int TooltipOverrideCount; - float TooltipSlowDelay; // Time before slow tooltips appears (FIXME: This is temporary until we merge in tooltip timer+priority work) - ImVector ClipboardHandlerData; // If no custom clipboard handler is defined - ImVector MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once - - // Platform support - ImVec2 PlatformImePos; // Cursor position request & last passed to the OS Input Method Editor - ImVec2 PlatformImeLastPos; - char PlatformLocaleDecimalPoint; // '.' or *localeconv()->decimal_point - - // Settings - bool SettingsLoaded; - float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero - ImGuiTextBuffer SettingsIniData; // In memory .ini settings - ImVector SettingsHandlers; // List of .ini settings handlers - ImChunkStream SettingsWindows; // ImGuiWindow .ini settings entries - ImChunkStream SettingsTables; // ImGuiTable .ini settings entries - ImVector Hooks; // Hooks for extensions (e.g. test engine) - ImGuiID HookIdNext; // Next available HookId - - // Capture/Logging - bool LogEnabled; // Currently capturing - ImGuiLogType LogType; // Capture target - ImFileHandle LogFile; // If != NULL log to stdout/ file - ImGuiTextBuffer LogBuffer; // Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators. - const char* LogNextPrefix; - const char* LogNextSuffix; - float LogLinePosY; - bool LogLineFirstItem; - int LogDepthRef; - int LogDepthToExpand; - int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call. - - // Debug Tools - bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker()) - ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this id - ImGuiMetricsConfig DebugMetricsConfig; - - // Misc - float FramerateSecPerFrame[120]; // Calculate estimate of framerate for user over the last 2 seconds. - int FramerateSecPerFrameIdx; - float FramerateSecPerFrameAccum; - int WantCaptureMouseNextFrame; // Explicit capture via CaptureKeyboardFromApp()/CaptureMouseFromApp() sets those flags - int WantCaptureKeyboardNextFrame; - int WantTextInputNextFrame; - char TempBuffer[1024 * 3 + 1]; // Temporary text buffer - - ImGuiContext(ImFontAtlas* shared_font_atlas) - { - Initialized = false; - FontAtlasOwnedByContext = shared_font_atlas ? false : true; - Font = NULL; - FontSize = FontBaseSize = 0.0f; - IO.Fonts = shared_font_atlas ? shared_font_atlas : IM_NEW(ImFontAtlas)(); - Time = 0.0f; - FrameCount = 0; - FrameCountEnded = FrameCountRendered = -1; - WithinFrameScope = WithinFrameScopeWithImplicitWindow = WithinEndChild = false; - GcCompactAll = false; - TestEngineHookItems = false; - TestEngineHookIdInfo = 0; - TestEngine = NULL; - - WindowsActiveCount = 0; - CurrentWindow = NULL; - HoveredWindow = NULL; - HoveredWindowUnderMovingWindow = NULL; - MovingWindow = NULL; - WheelingWindow = NULL; - WheelingWindowTimer = 0.0f; - - HoveredId = HoveredIdPreviousFrame = 0; - HoveredIdAllowOverlap = false; - HoveredIdUsingMouseWheel = HoveredIdPreviousFrameUsingMouseWheel = false; - HoveredIdDisabled = false; - HoveredIdTimer = HoveredIdNotActiveTimer = 0.0f; - ActiveId = 0; - ActiveIdIsAlive = 0; - ActiveIdTimer = 0.0f; - ActiveIdIsJustActivated = false; - ActiveIdAllowOverlap = false; - ActiveIdNoClearOnFocusLoss = false; - ActiveIdHasBeenPressedBefore = false; - ActiveIdHasBeenEditedBefore = false; - ActiveIdHasBeenEditedThisFrame = false; - ActiveIdUsingMouseWheel = false; - ActiveIdUsingNavDirMask = 0x00; - ActiveIdUsingNavInputMask = 0x00; - ActiveIdUsingKeyInputMask = 0x00; - ActiveIdClickOffset = ImVec2(-1, -1); - ActiveIdWindow = NULL; - ActiveIdSource = ImGuiInputSource_None; - ActiveIdMouseButton = 0; - ActiveIdPreviousFrame = 0; - ActiveIdPreviousFrameIsAlive = false; - ActiveIdPreviousFrameHasBeenEditedBefore = false; - ActiveIdPreviousFrameWindow = NULL; - LastActiveId = 0; - LastActiveIdTimer = 0.0f; - - NavWindow = NULL; - NavId = NavFocusScopeId = NavActivateId = NavActivateDownId = NavActivatePressedId = NavInputId = 0; - NavJustTabbedId = NavJustMovedToId = NavJustMovedToFocusScopeId = NavNextActivateId = 0; - NavJustMovedToKeyMods = ImGuiKeyModFlags_None; - NavInputSource = ImGuiInputSource_None; - NavScoringRect = ImRect(); - NavScoringCount = 0; - NavLayer = ImGuiNavLayer_Main; - NavIdTabCounter = INT_MAX; - NavIdIsAlive = false; - NavMousePosDirty = false; - NavDisableHighlight = true; - NavDisableMouseHover = false; - NavAnyRequest = false; - NavInitRequest = false; - NavInitRequestFromMove = false; - NavInitResultId = 0; - NavMoveRequest = false; - NavMoveRequestFlags = ImGuiNavMoveFlags_None; - NavMoveRequestForward = ImGuiNavForward_None; - NavMoveRequestKeyMods = ImGuiKeyModFlags_None; - NavMoveDir = NavMoveDirLast = NavMoveClipDir = ImGuiDir_None; - NavWrapRequestWindow = NULL; - NavWrapRequestFlags = ImGuiNavMoveFlags_None; - - NavWindowingTarget = NavWindowingTargetAnim = NavWindowingListWindow = NULL; - NavWindowingTimer = NavWindowingHighlightAlpha = 0.0f; - NavWindowingToggleLayer = false; - - FocusRequestCurrWindow = FocusRequestNextWindow = NULL; - FocusRequestCurrCounterRegular = FocusRequestCurrCounterTabStop = INT_MAX; - FocusRequestNextCounterRegular = FocusRequestNextCounterTabStop = INT_MAX; - FocusTabPressed = false; - - DimBgRatio = 0.0f; - MouseCursor = ImGuiMouseCursor_Arrow; - - DragDropActive = DragDropWithinSource = DragDropWithinTarget = false; - DragDropSourceFlags = ImGuiDragDropFlags_None; - DragDropSourceFrameCount = -1; - DragDropMouseButton = -1; - DragDropTargetId = 0; - DragDropAcceptFlags = ImGuiDragDropFlags_None; - DragDropAcceptIdCurrRectSurface = 0.0f; - DragDropAcceptIdPrev = DragDropAcceptIdCurr = 0; - DragDropAcceptFrameCount = -1; - DragDropHoldJustPressedId = 0; - memset(DragDropPayloadBufLocal, 0, sizeof(DragDropPayloadBufLocal)); - - CurrentTable = NULL; - CurrentTabBar = NULL; - - LastValidMousePos = ImVec2(0.0f, 0.0f); - TempInputId = 0; - ColorEditOptions = ImGuiColorEditFlags__OptionsDefault; - ColorEditLastHue = ColorEditLastSat = 0.0f; - ColorEditLastColor[0] = ColorEditLastColor[1] = ColorEditLastColor[2] = FLT_MAX; - SliderCurrentAccum = 0.0f; - SliderCurrentAccumDirty = false; - DragCurrentAccumDirty = false; - DragCurrentAccum = 0.0f; - DragSpeedDefaultRatio = 1.0f / 100.0f; - ScrollbarClickDeltaToGrabCenter = 0.0f; - TooltipOverrideCount = 0; - TooltipSlowDelay = 0.50f; - - PlatformImePos = PlatformImeLastPos = ImVec2(FLT_MAX, FLT_MAX); - PlatformLocaleDecimalPoint = '.'; - - SettingsLoaded = false; - SettingsDirtyTimer = 0.0f; - HookIdNext = 0; - - LogEnabled = false; - LogType = ImGuiLogType_None; - LogNextPrefix = LogNextSuffix = NULL; - LogFile = NULL; - LogLinePosY = FLT_MAX; - LogLineFirstItem = false; - LogDepthRef = 0; - LogDepthToExpand = LogDepthToExpandDefault = 2; - - DebugItemPickerActive = false; - DebugItemPickerBreakId = 0; - - memset(FramerateSecPerFrame, 0, sizeof(FramerateSecPerFrame)); - FramerateSecPerFrameIdx = 0; - FramerateSecPerFrameAccum = 0.0f; - WantCaptureMouseNextFrame = WantCaptureKeyboardNextFrame = WantTextInputNextFrame = -1; - memset(TempBuffer, 0, sizeof(TempBuffer)); - } -}; - -//----------------------------------------------------------------------------- -// [SECTION] ImGuiWindowTempData, ImGuiWindow -//----------------------------------------------------------------------------- - -// Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow. -// (That's theory, in practice the delimitation between ImGuiWindow and ImGuiWindowTempData is quite tenuous and could be reconsidered..) -// (This doesn't need a constructor because we zero-clear it as part of ImGuiWindow and all frame-temporary data are setup on Begin) -struct IMGUI_API ImGuiWindowTempData -{ - // Layout - ImVec2 CursorPos; // Current emitting position, in absolute coordinates. - ImVec2 CursorPosPrevLine; - ImVec2 CursorStartPos; // Initial position after Begin(), generally ~ window position + WindowPadding. - ImVec2 CursorMaxPos; // Used to implicitly calculate ContentSize at the beginning of next frame, for scrolling range and auto-resize. Always growing during the frame. - ImVec2 IdealMaxPos; // Used to implicitly calculate ContentSizeIdeal at the beginning of next frame, for auto-resize only. Always growing during the frame. - ImVec2 CurrLineSize; - ImVec2 PrevLineSize; - float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added). - float PrevLineTextBaseOffset; - ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.) - ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API. - ImVec1 GroupOffset; - - // Last item status - ImGuiID LastItemId; // ID for last item - ImGuiItemStatusFlags LastItemStatusFlags; // Status flags for last item (see ImGuiItemStatusFlags_) - ImRect LastItemRect; // Interaction rect for last item - ImRect LastItemDisplayRect; // End-user display rect for last item (only valid if LastItemStatusFlags & ImGuiItemStatusFlags_HasDisplayRect) - - // Keyboard/Gamepad navigation - ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1) - int NavLayerActiveMask; // Which layers have been written to (result from previous frame) - int NavLayerActiveMaskNext; // Which layers have been written to (accumulator for current frame) - ImGuiID NavFocusScopeIdCurrent; // Current focus scope ID while appending - bool NavHideHighlightOneFrame; - bool NavHasScroll; // Set when scrolling can be used (ScrollMax > 0.0f) - - // Miscellaneous - bool MenuBarAppending; // FIXME: Remove this - ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs. - ImGuiMenuColumns MenuColumns; // Simplified columns storage for menu items measurement - int TreeDepth; // Current tree depth. - ImU32 TreeJumpToParentOnPopMask; // Store a copy of !g.NavIdIsAlive for TreeDepth 0..31.. Could be turned into a ImU64 if necessary. - ImVector ChildWindows; - ImGuiStorage* StateStorage; // Current persistent per-window storage (store e.g. tree node open/close state) - ImGuiOldColumns* CurrentColumns; // Current columns set - int CurrentTableIdx; // Current table index (into g.Tables) - ImGuiLayoutType LayoutType; - ImGuiLayoutType ParentLayoutType; // Layout type of parent window at the time of Begin() - int FocusCounterRegular; // (Legacy Focus/Tabbing system) Sequential counter, start at -1 and increase as assigned via FocusableItemRegister() (FIXME-NAV: Needs redesign) - int FocusCounterTabStop; // (Legacy Focus/Tabbing system) Same, but only count widgets which you can Tab through. - - // Local parameters stacks - // We store the current settings outside of the vectors to increase memory locality (reduce cache misses). The vectors are rarely modified. Also it allows us to not heap allocate for short-lived windows which are not using those settings. - ImGuiItemFlags ItemFlags; // == g.ItemFlagsStack.back() - float ItemWidth; // Current item width (>0.0: width in pixels, <0.0: align xx pixels to the right of window). - float TextWrapPos; // Current text wrap pos. - ImVector ItemWidthStack; // Store item widths to restore (attention: .back() is not == ItemWidth) - ImVector TextWrapPosStack; // Store text wrap pos to restore (attention: .back() is not == TextWrapPos) - ImGuiStackSizes StackSizesOnBegin; // Store size of various stacks for asserting -}; - -// Storage for one window -struct IMGUI_API ImGuiWindow -{ - char* Name; // Window name, owned by the window. - ImGuiID ID; // == ImHashStr(Name) - ImGuiWindowFlags Flags; // See enum ImGuiWindowFlags_ - ImVec2 Pos; // Position (always rounded-up to nearest pixel) - ImVec2 Size; // Current size (==SizeFull or collapsed title bar size) - ImVec2 SizeFull; // Size when non collapsed - ImVec2 ContentSize; // Size of contents/scrollable client area (calculated from the extents reach of the cursor) from previous frame. Does not include window decoration or window padding. - ImVec2 ContentSizeIdeal; - ImVec2 ContentSizeExplicit; // Size of contents/scrollable client area explicitly request by the user via SetNextWindowContentSize(). - ImVec2 WindowPadding; // Window padding at the time of Begin(). - float WindowRounding; // Window rounding at the time of Begin(). May be clamped lower to avoid rendering artifacts with title bar, menu bar etc. - float WindowBorderSize; // Window border size at the time of Begin(). - int NameBufLen; // Size of buffer storing Name. May be larger than strlen(Name)! - ImGuiID MoveId; // == window->GetID("#MOVE") - ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window) - ImVec2 Scroll; - ImVec2 ScrollMax; - ImVec2 ScrollTarget; // target scroll position. stored as cursor position with scrolling canceled out, so the highest point is always 0.0f. (FLT_MAX for no change) - ImVec2 ScrollTargetCenterRatio; // 0.0f = scroll so that target position is at top, 0.5f = scroll so that target position is centered - ImVec2 ScrollTargetEdgeSnapDist; // 0.0f = no snapping, >0.0f snapping threshold - ImVec2 ScrollbarSizes; // Size taken by each scrollbars on their smaller axis. Pay attention! ScrollbarSizes.x == width of the vertical scrollbar, ScrollbarSizes.y = height of the horizontal scrollbar. - bool ScrollbarX, ScrollbarY; // Are scrollbars visible? - bool Active; // Set to true on Begin(), unless Collapsed - bool WasActive; - bool WriteAccessed; // Set to true when any widget access the current window - bool Collapsed; // Set when collapsing window to become only title-bar - bool WantCollapseToggle; - bool SkipItems; // Set when items can safely be all clipped (e.g. window not visible or collapsed) - bool Appearing; // Set during the frame where the window is appearing (or re-appearing) - bool Hidden; // Do not display (== HiddenFrames*** > 0) - bool IsFallbackWindow; // Set on the "Debug##Default" window. - bool HasCloseButton; // Set when the window has a close button (p_open != NULL) - signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3) - short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs) - short BeginOrderWithinParent; // Order within immediate parent window, if we are a child window. Otherwise 0. - short BeginOrderWithinContext; // Order within entire imgui context. This is mostly used for debugging submission order related issues. - ImGuiID PopupId; // ID in the popup stack when this window is used as a popup/menu (because we use generic Name/ID for recycling) - ImS8 AutoFitFramesX, AutoFitFramesY; - ImS8 AutoFitChildAxises; - bool AutoFitOnlyGrows; - ImGuiDir AutoPosLastDirection; - ImS8 HiddenFramesCanSkipItems; // Hide the window for N frames - ImS8 HiddenFramesCannotSkipItems; // Hide the window for N frames while allowing items to be submitted so we can measure their size - ImS8 HiddenFramesForRenderOnly; // Hide the window until frame N at Render() time only - ImGuiCond SetWindowPosAllowFlags : 8; // store acceptable condition flags for SetNextWindowPos() use. - ImGuiCond SetWindowSizeAllowFlags : 8; // store acceptable condition flags for SetNextWindowSize() use. - ImGuiCond SetWindowCollapsedAllowFlags : 8; // store acceptable condition flags for SetNextWindowCollapsed() use. - ImVec2 SetWindowPosVal; // store window position when using a non-zero Pivot (position set needs to be processed when we know the window size) - ImVec2 SetWindowPosPivot; // store window pivot for positioning. ImVec2(0, 0) when positioning from top-left corner; ImVec2(0.5f, 0.5f) for centering; ImVec2(1, 1) for bottom right. - - ImVector IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack. (In theory this should be in the TempData structure) - ImGuiWindowTempData DC; // Temporary per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the "DC" variable name. - - // The best way to understand what those rectangles are is to use the 'Metrics->Tools->Show Windows Rectangles' viewer. - // The main 'OuterRect', omitted as a field, is window->Rect(). - ImRect OuterRectClipped; // == Window->Rect() just after setup in Begin(). == window->Rect() for root window. - ImRect InnerRect; // Inner rectangle (omit title bar, menu bar, scroll bar) - ImRect InnerClipRect; // == InnerRect shrunk by WindowPadding*0.5f on each side, clipped within viewport or parent clip rect. - ImRect WorkRect; // Initially covers the whole scrolling region. Reduced by containers e.g columns/tables when active. Shrunk by WindowPadding*1.0f on each side. This is meant to replace ContentRegionRect over time (from 1.71+ onward). - ImRect ParentWorkRect; // Backup of WorkRect before entering a container such as columns/tables. Used by e.g. SpanAllColumns functions to easily access. Stacked containers are responsible for maintaining this. // FIXME-WORKRECT: Could be a stack? - ImRect ClipRect; // Current clipping/scissoring rectangle, evolve as we are using PushClipRect(), etc. == DrawList->clip_rect_stack.back(). - ImRect ContentRegionRect; // FIXME: This is currently confusing/misleading. It is essentially WorkRect but not handling of scrolling. We currently rely on it as right/bottom aligned sizing operation need some size to rely on. - ImVec2ih HitTestHoleSize; // Define an optional rectangular hole where mouse will pass-through the window. - ImVec2ih HitTestHoleOffset; - - int LastFrameActive; // Last frame number the window was Active. - float LastTimeActive; // Last timestamp the window was Active (using float as we don't need high precision there) - float ItemWidthDefault; - ImGuiStorage StateStorage; - ImVector ColumnsStorage; - float FontWindowScale; // User scale multiplier per-window, via SetWindowFontScale() - int SettingsOffset; // Offset into SettingsWindows[] (offsets are always valid as we only grow the array from the back) - - ImDrawList* DrawList; // == &DrawListInst (for backward compatibility reason with code using imgui_internal.h we keep this a pointer) - ImDrawList DrawListInst; - ImGuiWindow* ParentWindow; // If we are a child _or_ popup window, this is pointing to our parent. Otherwise NULL. - ImGuiWindow* RootWindow; // Point to ourself or first ancestor that is not a child window == Top-level window. - ImGuiWindow* RootWindowForTitleBarHighlight; // Point to ourself or first ancestor which will display TitleBgActive color when this window is active. - ImGuiWindow* RootWindowForNav; // Point to ourself or first ancestor which doesn't have the NavFlattened flag. - - ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.) - ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1) - ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space - - int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy - int MemoryDrawListVtxCapacity; - bool MemoryCompacted; // Set when window extraneous data have been garbage collected - -public: - ImGuiWindow(ImGuiContext* context, const char* name); - ~ImGuiWindow(); - - ImGuiID GetID(const char* str, const char* str_end = NULL); - ImGuiID GetID(const void* ptr); - ImGuiID GetID(int n); - ImGuiID GetIDNoKeepAlive(const char* str, const char* str_end = NULL); - ImGuiID GetIDNoKeepAlive(const void* ptr); - ImGuiID GetIDNoKeepAlive(int n); - ImGuiID GetIDFromRectangle(const ImRect& r_abs); - - // We don't use g.FontSize because the window may be != g.CurrentWidow. - ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); } - float CalcFontSize() const { ImGuiContext& g = *GImGui; float scale = g.FontBaseSize * FontWindowScale; if (ParentWindow) scale *= ParentWindow->FontWindowScale; return scale; } - float TitleBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + g.Style.FramePadding.y * 2.0f; } - ImRect TitleBarRect() const { return ImRect(Pos, ImVec2(Pos.x + SizeFull.x, Pos.y + TitleBarHeight())); } - float MenuBarHeight() const { ImGuiContext& g = *GImGui; return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + g.Style.FramePadding.y * 2.0f : 0.0f; } - ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight(); return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight()); } -}; - -// Backup and restore just enough data to be able to use IsItemHovered() on item A after another B in the same window has overwritten the data. -struct ImGuiLastItemDataBackup -{ - ImGuiID LastItemId; - ImGuiItemStatusFlags LastItemStatusFlags; - ImRect LastItemRect; - ImRect LastItemDisplayRect; - - ImGuiLastItemDataBackup() { Backup(); } - void Backup() { ImGuiWindow* window = GImGui->CurrentWindow; LastItemId = window->DC.LastItemId; LastItemStatusFlags = window->DC.LastItemStatusFlags; LastItemRect = window->DC.LastItemRect; LastItemDisplayRect = window->DC.LastItemDisplayRect; } - void Restore() const { ImGuiWindow* window = GImGui->CurrentWindow; window->DC.LastItemId = LastItemId; window->DC.LastItemStatusFlags = LastItemStatusFlags; window->DC.LastItemRect = LastItemRect; window->DC.LastItemDisplayRect = LastItemDisplayRect; } -}; - -//----------------------------------------------------------------------------- -// [SECTION] Tab bar, Tab item support -//----------------------------------------------------------------------------- - -// Extend ImGuiTabBarFlags_ -enum ImGuiTabBarFlagsPrivate_ -{ - ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around] - ImGuiTabBarFlags_IsFocused = 1 << 21, - ImGuiTabBarFlags_SaveSettings = 1 << 22 // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs -}; - -// Extend ImGuiTabItemFlags_ -enum ImGuiTabItemFlagsPrivate_ -{ - ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout) - ImGuiTabItemFlags_Button = 1 << 21 // Used by TabItemButton, change the tab item behavior to mimic a button -}; - -// Storage for one active tab item (sizeof() 28~32 bytes) -struct ImGuiTabItem -{ - ImGuiID ID; - ImGuiTabItemFlags Flags; - int LastFrameVisible; - int LastFrameSelected; // This allows us to infer an ordered list of the last activated tabs with little maintenance - float Offset; // Position relative to beginning of tab - float Width; // Width currently displayed - float ContentWidth; // Width of label, stored during BeginTabItem() call - ImS16 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames - ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable - ImS16 IndexDuringLayout; // Index only used during TabBarLayout() - bool WantClose; // Marked as closed by SetTabItemClosed() - - ImGuiTabItem() { memset(this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; NameOffset = BeginOrder = IndexDuringLayout = -1; } -}; - -// Storage for a tab bar (sizeof() 152 bytes) -struct ImGuiTabBar -{ - ImVector Tabs; - ImGuiTabBarFlags Flags; - ImGuiID ID; // Zero for tab-bars used by docking - ImGuiID SelectedTabId; // Selected tab/window - ImGuiID NextSelectedTabId; // Next selected tab/window. Will also trigger a scrolling animation - ImGuiID VisibleTabId; // Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview) - int CurrFrameVisible; - int PrevFrameVisible; - ImRect BarRect; - float CurrTabsContentsHeight; - float PrevTabsContentsHeight; // Record the height of contents submitted below the tab bar - float WidthAllTabs; // Actual width of all tabs (locked during layout) - float WidthAllTabsIdeal; // Ideal width if all tabs were visible and not clipped - float ScrollingAnim; - float ScrollingTarget; - float ScrollingTargetDistToVisibility; - float ScrollingSpeed; - float ScrollingRectMinX; - float ScrollingRectMaxX; - ImGuiID ReorderRequestTabId; - ImS8 ReorderRequestDir; - ImS8 BeginCount; - bool WantLayout; - bool VisibleTabWasSubmitted; - bool TabsAddedNew; // Set to true when a new tab item or button has been added to the tab bar during last frame - ImS16 TabsActiveCount; // Number of tabs submitted this frame. - ImS16 LastTabItemIdx; // Index of last BeginTabItem() tab for use by EndTabItem() - float ItemSpacingY; - ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar() - ImVec2 BackupCursorPos; - ImGuiTextBuffer TabsNames; // For non-docking tab bar we re-append names in a contiguous buffer. - - ImGuiTabBar(); - int GetTabOrder(const ImGuiTabItem* tab) const { return Tabs.index_from_ptr(tab); } - const char* GetTabName(const ImGuiTabItem* tab) const - { - IM_ASSERT(tab->NameOffset != -1 && (int)tab->NameOffset < TabsNames.Buf.Size); - return TabsNames.Buf.Data + tab->NameOffset; - } -}; - -//----------------------------------------------------------------------------- -// [SECTION] Table support -//----------------------------------------------------------------------------- - -#ifdef IMGUI_HAS_TABLE - -#define IM_COL32_DISABLE IM_COL32(0,0,0,1) // Special sentinel code which cannot be used as a regular color. -#define IMGUI_TABLE_MAX_COLUMNS 64 // sizeof(ImU64) * 8. This is solely because we frequently encode columns set in a ImU64. -#define IMGUI_TABLE_MAX_DRAW_CHANNELS (4 + 64 * 2) // See TableSetupDrawChannels() - -// Our current column maximum is 64 but we may raise that in the future. -typedef ImS8 ImGuiTableColumnIdx; -typedef ImU8 ImGuiTableDrawChannelIdx; - -// [Internal] sizeof() ~ 104 -// We use the terminology "Enabled" to refer to a column that is not Hidden by user/api. -// We use the terminology "Clipped" to refer to a column that is out of sight because of scrolling/clipping. -// This is in contrast with some user-facing api such as IsItemVisible() / IsRectVisible() which use "Visible" to mean "not clipped". -struct ImGuiTableColumn -{ - ImGuiTableColumnFlags Flags; // Flags after some patching (not directly same as provided by user). See ImGuiTableColumnFlags_ - float WidthGiven; // Final/actual width visible == (MaxX - MinX), locked in TableUpdateLayout(). May be > WidthRequest to honor minimum width, may be < WidthRequest to honor shrinking columns down in tight space. - float MinX; // Absolute positions - float MaxX; - float WidthRequest; // Master width absolute value when !(Flags & _WidthStretch). When Stretch this is derived every frame from StretchWeight in TableUpdateLayout() - float WidthAuto; // Automatic width - float StretchWeight; // Master width weight when (Flags & _WidthStretch). Often around ~1.0f initially. - float InitStretchWeightOrWidth; // Value passed to TableSetupColumn(). For Width it is a content width (_without padding_). - ImRect ClipRect; // Clipping rectangle for the column - ImGuiID UserID; // Optional, value passed to TableSetupColumn() - float WorkMinX; // Contents region min ~(MinX + CellPaddingX + CellSpacingX1) == cursor start position when entering column - float WorkMaxX; // Contents region max ~(MaxX - CellPaddingX - CellSpacingX2) - float ItemWidth; // Current item width for the column, preserved across rows - float ContentMaxXFrozen; // Contents maximum position for frozen rows (apart from headers), from which we can infer content width. - float ContentMaxXUnfrozen; - float ContentMaxXHeadersUsed; // Contents maximum position for headers rows (regardless of freezing). TableHeader() automatically softclip itself + report ideal desired size, to avoid creating extraneous draw calls - float ContentMaxXHeadersIdeal; - ImS16 NameOffset; // Offset into parent ColumnsNames[] - ImGuiTableColumnIdx DisplayOrder; // Index within Table's IndexToDisplayOrder[] (column may be reordered by users) - ImGuiTableColumnIdx IndexWithinEnabledSet; // Index within enabled/visible set (<= IndexToDisplayOrder) - ImGuiTableColumnIdx PrevEnabledColumn; // Index of prev enabled/visible column within Columns[], -1 if first enabled/visible column - ImGuiTableColumnIdx NextEnabledColumn; // Index of next enabled/visible column within Columns[], -1 if last enabled/visible column - ImGuiTableColumnIdx SortOrder; // Index of this column within sort specs, -1 if not sorting on this column, 0 for single-sort, may be >0 on multi-sort - ImGuiTableDrawChannelIdx DrawChannelCurrent; // Index within DrawSplitter.Channels[] - ImGuiTableDrawChannelIdx DrawChannelFrozen; - ImGuiTableDrawChannelIdx DrawChannelUnfrozen; - bool IsEnabled; // Is the column not marked Hidden by the user? (even if off view, e.g. clipped by scrolling). - bool IsEnabledNextFrame; - bool IsVisibleX; // Is actually in view (e.g. overlapping the host window clipping rectangle, not scrolled). - bool IsVisibleY; - bool IsRequestOutput; // Return value for TableSetColumnIndex() / TableNextColumn(): whether we request user to output contents or not. - bool IsSkipItems; // Do we want item submissions to this column to be completely ignored (no layout will happen). - bool IsPreserveWidthAuto; - ImS8 NavLayerCurrent; // ImGuiNavLayer in 1 byte - ImU8 AutoFitQueue; // Queue of 8 values for the next 8 frames to request auto-fit - ImU8 CannotSkipItemsQueue; // Queue of 8 values for the next 8 frames to disable Clipped/SkipItem - ImU8 SortDirection : 2; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending - ImU8 SortDirectionsAvailCount : 2; // Number of available sort directions (0 to 3) - ImU8 SortDirectionsAvailMask : 4; // Mask of available sort directions (1-bit each) - ImU8 SortDirectionsAvailList; // Ordered of available sort directions (2-bits each) - - ImGuiTableColumn() - { - memset(this, 0, sizeof(*this)); - StretchWeight = WidthRequest = -1.0f; - NameOffset = -1; - DisplayOrder = IndexWithinEnabledSet = -1; - PrevEnabledColumn = NextEnabledColumn = -1; - SortOrder = -1; - SortDirection = ImGuiSortDirection_None; - DrawChannelCurrent = DrawChannelFrozen = DrawChannelUnfrozen = (ImU8)-1; - } -}; - -// Transient cell data stored per row. -// sizeof() ~ 6 -struct ImGuiTableCellData -{ - ImU32 BgColor; // Actual color - ImGuiTableColumnIdx Column; // Column number -}; - -// FIXME-TABLE: transient data could be stored in a per-stacked table structure: DrawSplitter, SortSpecs, incoming RowData -struct ImGuiTable -{ - ImGuiID ID; - ImGuiTableFlags Flags; - void* RawData; // Single allocation to hold Columns[], DisplayOrderToIndex[] and RowCellData[] - ImSpan Columns; // Point within RawData[] - ImSpan DisplayOrderToIndex; // Point within RawData[]. Store display order of columns (when not reordered, the values are 0...Count-1) - ImSpan RowCellData; // Point within RawData[]. Store cells background requests for current row. - ImU64 EnabledMaskByDisplayOrder; // Column DisplayOrder -> IsEnabled map - ImU64 EnabledMaskByIndex; // Column Index -> IsEnabled map (== not hidden by user/api) in a format adequate for iterating column without touching cold data - ImU64 VisibleMaskByIndex; // Column Index -> IsVisibleX|IsVisibleY map (== not hidden by user/api && not hidden by scrolling/cliprect) - ImU64 RequestOutputMaskByIndex; // Column Index -> IsVisible || AutoFit (== expect user to submit items) - ImGuiTableFlags SettingsLoadedFlags; // Which data were loaded from the .ini file (e.g. when order is not altered we won't save order) - int SettingsOffset; // Offset in g.SettingsTables - int LastFrameActive; - int ColumnsCount; // Number of columns declared in BeginTable() - int CurrentRow; - int CurrentColumn; - ImS16 InstanceCurrent; // Count of BeginTable() calls with same ID in the same frame (generally 0). This is a little bit similar to BeginCount for a window, but multiple table with same ID look are multiple tables, they are just synched. - ImS16 InstanceInteracted; // Mark which instance (generally 0) of the same ID is being interacted with - float RowPosY1; - float RowPosY2; - float RowMinHeight; // Height submitted to TableNextRow() - float RowTextBaseline; - float RowIndentOffsetX; - ImGuiTableRowFlags RowFlags : 16; // Current row flags, see ImGuiTableRowFlags_ - ImGuiTableRowFlags LastRowFlags : 16; - int RowBgColorCounter; // Counter for alternating background colors (can be fast-forwarded by e.g clipper), not same as CurrentRow because header rows typically don't increase this. - ImU32 RowBgColor[2]; // Background color override for current row. - ImU32 BorderColorStrong; - ImU32 BorderColorLight; - float BorderX1; - float BorderX2; - float HostIndentX; - float MinColumnWidth; - float OuterPaddingX; - float CellPaddingX; // Padding from each borders - float CellPaddingY; - float CellSpacingX1; // Spacing between non-bordered cells - float CellSpacingX2; - float LastOuterHeight; // Outer height from last frame - float LastFirstRowHeight; // Height of first row from last frame - float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details. - float ColumnsGivenWidth; // Sum of current column width - float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window - float ResizedColumnNextWidth; - float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table. - float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. - ImRect OuterRect; // Note: for non-scrolling table, OuterRect.Max.y is often FLT_MAX until EndTable(), unless a height has been specified in BeginTable(). - ImRect InnerRect; // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is - ImRect WorkRect; - ImRect InnerClipRect; - ImRect BgClipRect; // We use this to cpu-clip cell background color fill - ImRect Bg0ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped - ImRect Bg2ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect. - ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window. - ImRect HostBackupWorkRect; // Backup of InnerWindow->WorkRect at the end of BeginTable() - ImRect HostBackupParentWorkRect; // Backup of InnerWindow->ParentWorkRect at the end of BeginTable() - ImRect HostBackupInnerClipRect; // Backup of InnerWindow->ClipRect during PushTableBackground()/PopTableBackground() - ImVec2 HostBackupPrevLineSize; // Backup of InnerWindow->DC.PrevLineSize at the end of BeginTable() - ImVec2 HostBackupCurrLineSize; // Backup of InnerWindow->DC.CurrLineSize at the end of BeginTable() - ImVec2 HostBackupCursorMaxPos; // Backup of InnerWindow->DC.CursorMaxPos at the end of BeginTable() - ImVec2 UserOuterSize; // outer_size.x passed to BeginTable() - ImVec1 HostBackupColumnsOffset; // Backup of OuterWindow->DC.ColumnsOffset at the end of BeginTable() - float HostBackupItemWidth; // Backup of OuterWindow->DC.ItemWidth at the end of BeginTable() - int HostBackupItemWidthStackSize;// Backup of OuterWindow->DC.ItemWidthStack.Size at the end of BeginTable() - ImGuiWindow* OuterWindow; // Parent window for the table - ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window) - ImGuiTextBuffer ColumnsNames; // Contiguous buffer holding columns names - ImDrawListSplitter DrawSplitter; // We carry our own ImDrawList splitter to allow recursion (FIXME: could be stored outside, worst case we need 1 splitter per recursing table) - ImGuiTableColumnSortSpecs SortSpecsSingle; - ImVector SortSpecsMulti; // FIXME-OPT: Using a small-vector pattern would work be good. - ImGuiTableSortSpecs SortSpecs; // Public facing sorts specs, this is what we return in TableGetSortSpecs() - ImGuiTableColumnIdx SortSpecsCount; - ImGuiTableColumnIdx ColumnsEnabledCount; // Number of enabled columns (<= ColumnsCount) - ImGuiTableColumnIdx ColumnsEnabledFixedCount; // Number of enabled columns (<= ColumnsCount) - ImGuiTableColumnIdx DeclColumnsCount; // Count calls to TableSetupColumn() - ImGuiTableColumnIdx HoveredColumnBody; // Index of column whose visible region is being hovered. Important: == ColumnsCount when hovering empty region after the right-most column! - ImGuiTableColumnIdx HoveredColumnBorder; // Index of column whose right-border is being hovered (for resizing). - ImGuiTableColumnIdx AutoFitSingleColumn; // Index of single column requesting auto-fit. - ImGuiTableColumnIdx ResizedColumn; // Index of column being resized. Reset when InstanceCurrent==0. - ImGuiTableColumnIdx LastResizedColumn; // Index of column being resized from previous frame. - ImGuiTableColumnIdx HeldHeaderColumn; // Index of column header being held. - ImGuiTableColumnIdx ReorderColumn; // Index of column being reordered. (not cleared) - ImGuiTableColumnIdx ReorderColumnDir; // -1 or +1 - ImGuiTableColumnIdx LeftMostEnabledColumn; // Index of left-most non-hidden column. - ImGuiTableColumnIdx RightMostEnabledColumn; // Index of right-most non-hidden column. - ImGuiTableColumnIdx LeftMostStretchedColumn; // Index of left-most stretched column. - ImGuiTableColumnIdx RightMostStretchedColumn; // Index of right-most stretched column. - ImGuiTableColumnIdx ContextPopupColumn; // Column right-clicked on, of -1 if opening context menu from a neutral/empty spot - ImGuiTableColumnIdx FreezeRowsRequest; // Requested frozen rows count - ImGuiTableColumnIdx FreezeRowsCount; // Actual frozen row count (== FreezeRowsRequest, or == 0 when no scrolling offset) - ImGuiTableColumnIdx FreezeColumnsRequest; // Requested frozen columns count - ImGuiTableColumnIdx FreezeColumnsCount; // Actual frozen columns count (== FreezeColumnsRequest, or == 0 when no scrolling offset) - ImGuiTableColumnIdx RowCellDataCurrent; // Index of current RowCellData[] entry in current row - ImGuiTableDrawChannelIdx DummyDrawChannel; // Redirect non-visible columns here. - ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; // For Selectable() and other widgets drawing across columns after the freezing line. Index within DrawSplitter.Channels[] - ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; - bool IsLayoutLocked; // Set by TableUpdateLayout() which is called when beginning the first row. - bool IsInsideRow; // Set when inside TableBeginRow()/TableEndRow(). - bool IsInitializing; - bool IsSortSpecsDirty; - bool IsUsingHeaders; // Set when the first row had the ImGuiTableRowFlags_Headers flag. - bool IsContextPopupOpen; // Set when default context menu is open (also see: ContextPopupColumn, InstanceInteracted). - bool IsSettingsRequestLoad; - bool IsSettingsDirty; // Set when table settings have changed and needs to be reported into ImGuiTableSetttings data. - bool IsDefaultDisplayOrder; // Set when display order is unchanged from default (DisplayOrder contains 0...Count-1) - bool IsResetAllRequest; - bool IsResetDisplayOrderRequest; - bool IsUnfrozenRows; // Set when we got past the frozen row. - bool IsDefaultSizingPolicy; // Set if user didn't explicitly set a sizing policy in BeginTable() - bool MemoryCompacted; - bool HostSkipItems; // Backup of InnerWindow->SkipItem at the end of BeginTable(), because we will overwrite InnerWindow->SkipItem on a per-column basis - - IMGUI_API ImGuiTable() { memset(this, 0, sizeof(*this)); LastFrameActive = -1; } - IMGUI_API ~ImGuiTable() { IM_FREE(RawData); } -}; - -// sizeof() ~ 12 -struct ImGuiTableColumnSettings -{ - float WidthOrWeight; - ImGuiID UserID; - ImGuiTableColumnIdx Index; - ImGuiTableColumnIdx DisplayOrder; - ImGuiTableColumnIdx SortOrder; - ImU8 SortDirection : 2; - ImU8 IsEnabled : 1; // "Visible" in ini file - ImU8 IsStretch : 1; - - ImGuiTableColumnSettings() - { - WidthOrWeight = 0.0f; - UserID = 0; - Index = -1; - DisplayOrder = SortOrder = -1; - SortDirection = ImGuiSortDirection_None; - IsEnabled = 1; - IsStretch = 0; - } -}; - -// This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.) -struct ImGuiTableSettings -{ - ImGuiID ID; // Set to 0 to invalidate/delete the setting - ImGuiTableFlags SaveFlags; // Indicate data we want to save using the Resizable/Reorderable/Sortable/Hideable flags (could be using its own flags..) - float RefScale; // Reference scale to be able to rescale columns on font/dpi changes. - ImGuiTableColumnIdx ColumnsCount; - ImGuiTableColumnIdx ColumnsCountMax; // Maximum number of columns this settings instance can store, we can recycle a settings instance with lower number of columns but not higher - bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context) - - ImGuiTableSettings() { memset(this, 0, sizeof(*this)); } - ImGuiTableColumnSettings* GetColumnSettings() { return (ImGuiTableColumnSettings*)(this + 1); } -}; - -#endif // #ifdef IMGUI_HAS_TABLE - -//----------------------------------------------------------------------------- -// [SECTION] ImGui internal API -// No guarantee of forward compatibility here! -//----------------------------------------------------------------------------- - -namespace ImGui -{ - // Windows - // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) - // If this ever crash because g.CurrentWindow is NULL it means that either - // - ImGui::NewFrame() has never been called, which is illegal. - // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. - inline ImGuiWindow* GetCurrentWindowRead() { ImGuiContext& g = *GImGui; return g.CurrentWindow; } - inline ImGuiWindow* GetCurrentWindow() { ImGuiContext& g = *GImGui; g.CurrentWindow->WriteAccessed = true; return g.CurrentWindow; } - IMGUI_API ImGuiWindow* FindWindowByID(ImGuiID id); - IMGUI_API ImGuiWindow* FindWindowByName(const char* name); - IMGUI_API void UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); - IMGUI_API ImVec2 CalcWindowNextAutoFitSize(ImGuiWindow* window); - IMGUI_API bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent); - IMGUI_API bool IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below); - IMGUI_API bool IsWindowNavFocusable(ImGuiWindow* window); - IMGUI_API ImRect GetWindowAllowedExtentRect(ImGuiWindow* window); - IMGUI_API void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0); - IMGUI_API void SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond = 0); - IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0); - IMGUI_API void SetWindowHitTestHole(ImGuiWindow* window, const ImVec2& pos, const ImVec2& size); - - // Windows: Display Order and Focus Order - IMGUI_API void FocusWindow(ImGuiWindow* window); - IMGUI_API void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window); - IMGUI_API void BringWindowToFocusFront(ImGuiWindow* window); - IMGUI_API void BringWindowToDisplayFront(ImGuiWindow* window); - IMGUI_API void BringWindowToDisplayBack(ImGuiWindow* window); - - // Fonts, drawing - IMGUI_API void SetCurrentFont(ImFont* font); - inline ImFont* GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; } - inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) { IM_UNUSED(window); return GetForegroundDrawList(); } // This seemingly unnecessary wrapper simplifies compatibility between the 'master' and 'docking' branches. - IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport); // get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. - IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. - - // Init - IMGUI_API void Initialize(ImGuiContext* context); - IMGUI_API void Shutdown(ImGuiContext* context); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext(). - - // NewFrame - IMGUI_API void UpdateHoveredWindowAndCaptureFlags(); - IMGUI_API void StartMouseMovingWindow(ImGuiWindow* window); - IMGUI_API void UpdateMouseMovingWindowNewFrame(); - IMGUI_API void UpdateMouseMovingWindowEndFrame(); - - // Generic context hooks - IMGUI_API ImGuiID AddContextHook(ImGuiContext* context, const ImGuiContextHook* hook); - IMGUI_API void RemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove); - IMGUI_API void CallContextHooks(ImGuiContext* context, ImGuiContextHookType type); - - // Settings - IMGUI_API void MarkIniSettingsDirty(); - IMGUI_API void MarkIniSettingsDirty(ImGuiWindow* window); - IMGUI_API void ClearIniSettings(); - IMGUI_API ImGuiWindowSettings* CreateNewWindowSettings(const char* name); - IMGUI_API ImGuiWindowSettings* FindWindowSettings(ImGuiID id); - IMGUI_API ImGuiWindowSettings* FindOrCreateWindowSettings(const char* name); - IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name); - - // Scrolling - IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); // Use -1.0f on one axis to leave as-is - IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x); - IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y); - IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio); - IMGUI_API void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio); - IMGUI_API ImVec2 ScrollToBringRectIntoView(ImGuiWindow* window, const ImRect& item_rect); - - // Basic Accessors - inline ImGuiID GetItemID() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.LastItemId; } // Get ID of last item (~~ often same ImGui::GetID(label) beforehand) - inline ImGuiItemStatusFlags GetItemStatusFlags() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.LastItemStatusFlags; } - inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; } - inline ImGuiID GetFocusID() { ImGuiContext& g = *GImGui; return g.NavId; } - inline ImGuiItemFlags GetItemsFlags() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.ItemFlags; } - IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow* window); - IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow* window); - IMGUI_API void ClearActiveID(); - IMGUI_API ImGuiID GetHoveredID(); - IMGUI_API void SetHoveredID(ImGuiID id); - IMGUI_API void KeepAliveID(ImGuiID id); - IMGUI_API void MarkItemEdited(ImGuiID id); // Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function. - IMGUI_API void PushOverrideID(ImGuiID id); // Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes) - IMGUI_API ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed); - - // Basic Helpers for widget code - IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f); - IMGUI_API void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f); - IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL); - IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id); - IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id, bool clip_even_when_logged); - IMGUI_API void SetLastItemData(ImGuiWindow* window, ImGuiID item_id, ImGuiItemStatusFlags status_flags, const ImRect& item_rect); - IMGUI_API bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id); // Return true if focus is requested - IMGUI_API void FocusableItemUnregister(ImGuiWindow* window); - IMGUI_API ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h); - IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x); - IMGUI_API void PushMultiItemsWidths(int components, float width_full); - IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); - IMGUI_API void PopItemFlag(); - IMGUI_API bool IsItemToggledSelection(); // Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly) - IMGUI_API ImVec2 GetContentRegionMaxAbs(); - IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); - - // Logging/Capture - IMGUI_API void LogBegin(ImGuiLogType type, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name. - IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer - IMGUI_API void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL); - IMGUI_API void LogSetNextTextDecoration(const char* prefix, const char* suffix); - - // Popups, Modals, Tooltips - IMGUI_API bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags flags); - IMGUI_API void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags = ImGuiPopupFlags_None); - IMGUI_API void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup); - IMGUI_API void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup); - IMGUI_API bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags); - IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); - IMGUI_API void BeginTooltipEx(ImGuiWindowFlags extra_flags, ImGuiTooltipFlags tooltip_flags); - IMGUI_API ImGuiWindow* GetTopMostPopupModal(); - IMGUI_API ImVec2 FindBestWindowPosForPopup(ImGuiWindow* window); - IMGUI_API ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy); - - // Gamepad/Keyboard Navigation - IMGUI_API void NavInitWindow(ImGuiWindow* window, bool force_reinit); - IMGUI_API bool NavMoveRequestButNoResultYet(); - IMGUI_API void NavMoveRequestCancel(); - IMGUI_API void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, const ImRect& bb_rel, ImGuiNavMoveFlags move_flags); - IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); - IMGUI_API float GetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode); - IMGUI_API ImVec2 GetNavInputAmount2d(ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor = 0.0f, float fast_factor = 0.0f); - IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); - IMGUI_API void ActivateItem(ImGuiID id); // Remotely activate a button, checkbox, tree node etc. given its unique ID. activation is queued and processed on the next frame when the item is encountered again. - IMGUI_API void SetNavID(ImGuiID id, int nav_layer, ImGuiID focus_scope_id); - IMGUI_API void SetNavIDWithRectRel(ImGuiID id, int nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel); - - // Focus Scope (WIP) - // This is generally used to identify a selection set (multiple of which may be in the same window), as selection - // patterns generally need to react (e.g. clear selection) when landing on an item of the set. - IMGUI_API void PushFocusScope(ImGuiID id); - IMGUI_API void PopFocusScope(); - inline ImGuiID GetFocusedFocusScope() { ImGuiContext& g = *GImGui; return g.NavFocusScopeId; } // Focus scope which is actually active - inline ImGuiID GetFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentWindow->DC.NavFocusScopeIdCurrent; } // Focus scope we are outputting into, set by PushFocusScope() - - // Inputs - // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions. - IMGUI_API void SetItemUsingMouseWheel(); - inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; } - inline bool IsActiveIdUsingNavInput(ImGuiNavInput input) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavInputMask & (1 << input)) != 0; } - inline bool IsActiveIdUsingKey(ImGuiKey key) { ImGuiContext& g = *GImGui; IM_ASSERT(key < 64); return (g.ActiveIdUsingKeyInputMask & ((ImU64)1 << key)) != 0; } - IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f); - inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { ImGuiContext& g = *GImGui; const int key_index = g.IO.KeyMap[key]; return (key_index >= 0) ? IsKeyPressed(key_index, repeat) : false; } - inline bool IsNavInputDown(ImGuiNavInput n) { ImGuiContext& g = *GImGui; return g.IO.NavInputs[n] > 0.0f; } - inline bool IsNavInputTest(ImGuiNavInput n, ImGuiInputReadMode rm) { return (GetNavInputAmount(n, rm) > 0.0f); } - IMGUI_API ImGuiKeyModFlags GetMergedKeyModFlags(); - - // Drag and Drop - IMGUI_API bool BeginDragDropTargetCustom(const ImRect& bb, ImGuiID id); - IMGUI_API void ClearDragDrop(); - IMGUI_API bool IsDragDropPayloadBeingAccepted(); - - // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API) - IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect); - IMGUI_API void BeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags = 0); // setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns(). - IMGUI_API void EndColumns(); // close columns - IMGUI_API void PushColumnClipRect(int column_index); - IMGUI_API void PushColumnsBackground(); - IMGUI_API void PopColumnsBackground(); - IMGUI_API ImGuiID GetColumnsID(const char* str_id, int count); - IMGUI_API ImGuiOldColumns* FindOrCreateColumns(ImGuiWindow* window, ImGuiID id); - IMGUI_API float GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm); - IMGUI_API float GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset); - - // Tables: Candidates for public API - IMGUI_API void TableOpenContextMenu(int column_n = -1); - IMGUI_API void TableSetColumnEnabled(int column_n, bool enabled); - IMGUI_API void TableSetColumnWidth(int column_n, float width); - IMGUI_API void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs); - IMGUI_API int TableGetHoveredColumn(); // May use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead. Return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. - IMGUI_API float TableGetHeaderRowHeight(); - IMGUI_API void TablePushBackgroundChannel(); - IMGUI_API void TablePopBackgroundChannel(); - - // Tables: Internals - inline ImGuiTable* GetCurrentTable() { ImGuiContext& g = *GImGui; return g.CurrentTable; } - IMGUI_API ImGuiTable* TableFindByID(ImGuiID id); - IMGUI_API bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f); - IMGUI_API void TableBeginInitMemory(ImGuiTable* table, int columns_count); - IMGUI_API void TableBeginApplyRequests(ImGuiTable* table); - IMGUI_API void TableSetupDrawChannels(ImGuiTable* table); - IMGUI_API void TableUpdateLayout(ImGuiTable* table); - IMGUI_API void TableUpdateBorders(ImGuiTable* table); - IMGUI_API void TableUpdateColumnsWeightFromWidth(ImGuiTable* table); - IMGUI_API void TableDrawBorders(ImGuiTable* table); - IMGUI_API void TableDrawContextMenu(ImGuiTable* table); - IMGUI_API void TableMergeDrawChannels(ImGuiTable* table); - IMGUI_API void TableSortSpecsSanitize(ImGuiTable* table); - IMGUI_API void TableSortSpecsBuild(ImGuiTable* table); - IMGUI_API ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn* column); - IMGUI_API void TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column); - IMGUI_API float TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column); - IMGUI_API void TableBeginRow(ImGuiTable* table); - IMGUI_API void TableEndRow(ImGuiTable* table); - IMGUI_API void TableBeginCell(ImGuiTable* table, int column_n); - IMGUI_API void TableEndCell(ImGuiTable* table); - IMGUI_API ImRect TableGetCellBgRect(const ImGuiTable* table, int column_n); - IMGUI_API const char* TableGetColumnName(const ImGuiTable* table, int column_n); - IMGUI_API ImGuiID TableGetColumnResizeID(const ImGuiTable* table, int column_n, int instance_no = 0); - IMGUI_API float TableGetMaxColumnWidth(const ImGuiTable* table, int column_n); - IMGUI_API void TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n); - IMGUI_API void TableSetColumnWidthAutoAll(ImGuiTable* table); - IMGUI_API void TableRemove(ImGuiTable* table); - IMGUI_API void TableGcCompactTransientBuffers(ImGuiTable* table); - IMGUI_API void TableGcCompactSettings(); - - // Tables: Settings - IMGUI_API void TableLoadSettings(ImGuiTable* table); - IMGUI_API void TableSaveSettings(ImGuiTable* table); - IMGUI_API void TableResetSettings(ImGuiTable* table); - IMGUI_API ImGuiTableSettings* TableGetBoundSettings(ImGuiTable* table); - IMGUI_API void TableSettingsInstallHandler(ImGuiContext* context); - IMGUI_API ImGuiTableSettings* TableSettingsCreate(ImGuiID id, int columns_count); - IMGUI_API ImGuiTableSettings* TableSettingsFindByID(ImGuiID id); - - // Tab Bars - IMGUI_API bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags); - IMGUI_API ImGuiTabItem* TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); - IMGUI_API void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); - IMGUI_API void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); - IMGUI_API void TabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int dir); - IMGUI_API bool TabBarProcessReorder(ImGuiTabBar* tab_bar); - IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags); - IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button); - IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col); - IMGUI_API void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped); - - // Render helpers - // AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. - // NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) - IMGUI_API void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true); - IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width); - IMGUI_API void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); - IMGUI_API void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL); - IMGUI_API void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float clip_max_x, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known); - IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border = true, float rounding = 0.0f); - IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f); - IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, int rounding_corners_flags = ~0); - IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_TypeDefault); // Navigation highlight - IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text. - - // Render helpers (those functions don't access any ImGui state!) - IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f); - IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col); - IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz); - IMGUI_API void RenderMouseCursor(ImDrawList* draw_list, ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow); - IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col); - IMGUI_API void RenderRectFilledRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float x_start_norm, float x_end_norm, float rounding); - IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, ImU32 col, float rounding); - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - // [1.71: 2019/06/07: Updating prototypes of some of the internal functions. Leaving those for reference for a short while] - inline void RenderArrow(ImVec2 pos, ImGuiDir dir, float scale=1.0f) { ImGuiWindow* window = GetCurrentWindow(); RenderArrow(window->DrawList, pos, GetColorU32(ImGuiCol_Text), dir, scale); } - inline void RenderBullet(ImVec2 pos) { ImGuiWindow* window = GetCurrentWindow(); RenderBullet(window->DrawList, pos, GetColorU32(ImGuiCol_Text)); } -#endif - - // Widgets - IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0); - IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0); - IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos); - IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos); - IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0); - IMGUI_API void Scrollbar(ImGuiAxis axis); - IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* p_scroll_v, float avail_v, float contents_v, ImDrawCornerFlags rounding_corners); - IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& padding, const ImVec4& bg_col, const ImVec4& tint_col); - IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis); - IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); - IMGUI_API ImGuiID GetWindowResizeID(ImGuiWindow* window, int n); // 0..3: corners, 4..7: borders - IMGUI_API void SeparatorEx(ImGuiSeparatorFlags flags); - IMGUI_API bool CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value); - IMGUI_API bool CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value); - - // Widgets low-level behaviors - IMGUI_API bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0); - IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags); - IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); - IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f); - IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL); - IMGUI_API bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0); // Consume previous SetNextItemOpen() data, if any. May return true when logging - IMGUI_API void TreePushOverrideID(ImGuiID id); - - // Template functions are instantiated in imgui_widgets.cpp for a finite number of types. - // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036). - // e.g. " extern template IMGUI_API float RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, float v); " - template IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); - template IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_size); - template IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags); - template IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb); - template IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v); - template IMGUI_API bool CheckboxFlagsT(const char* label, T* flags, T flags_value); - - // Data type helpers - IMGUI_API const ImGuiDataTypeInfo* DataTypeGetInfo(ImGuiDataType data_type); - IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format); - IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2); - IMGUI_API bool DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format); - IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2); - IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max); - - // InputText - IMGUI_API bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); - IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags); - IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL); - inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.ActiveId == id && g.TempInputId == id); } - inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active - - // Color - IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags); - IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags); - IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags); - - // Plot - IMGUI_API int PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 frame_size); - - // Shade functions (write over already created vertices) - IMGUI_API void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1); - IMGUI_API void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp); - - // Garbage collection - IMGUI_API void GcCompactTransientMiscBuffers(); - IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow* window); - IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow* window); - - // Debug Tools - IMGUI_API void ErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data = NULL); - inline void DebugDrawItemRect(ImU32 col = IM_COL32(255,0,0,255)) { ImGuiContext& g = *GImGui; ImGuiWindow* window = g.CurrentWindow; GetForegroundDrawList(window)->AddRect(window->DC.LastItemRect.Min, window->DC.LastItemRect.Max, col); } - inline void DebugStartItemPicker() { ImGuiContext& g = *GImGui; g.DebugItemPickerActive = true; } - - IMGUI_API void DebugNodeColumns(ImGuiOldColumns* columns); - IMGUI_API void DebugNodeDrawList(ImGuiWindow* window, const ImDrawList* draw_list, const char* label); - IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb); - IMGUI_API void DebugNodeStorage(ImGuiStorage* storage, const char* label); - IMGUI_API void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label); - IMGUI_API void DebugNodeTable(ImGuiTable* table); - IMGUI_API void DebugNodeTableSettings(ImGuiTableSettings* settings); - IMGUI_API void DebugNodeWindow(ImGuiWindow* window, const char* label); - IMGUI_API void DebugNodeWindowSettings(ImGuiWindowSettings* settings); - IMGUI_API void DebugNodeWindowsList(ImVector* windows, const char* label); - IMGUI_API void DebugNodeViewport(ImGuiViewportP* viewport); - IMGUI_API void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb); - -} // namespace ImGui - - -//----------------------------------------------------------------------------- -// [SECTION] ImFontAtlas internal API -//----------------------------------------------------------------------------- - -// This structure is likely to evolve as we add support for incremental atlas updates -struct ImFontBuilderIO -{ - bool (*FontBuilder_Build)(ImFontAtlas* atlas); -}; - -// Helper for font builder -IMGUI_API const ImFontBuilderIO* ImFontAtlasGetBuilderForStbTruetype(); -IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas* atlas); -IMGUI_API void ImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); -IMGUI_API void ImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); -IMGUI_API void ImFontAtlasBuildFinish(ImFontAtlas* atlas); -IMGUI_API void ImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned char in_marker_pixel_value); -IMGUI_API void ImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char, unsigned int in_marker_pixel_value); -IMGUI_API void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_multiply_factor); -IMGUI_API void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride); - -//----------------------------------------------------------------------------- -// [SECTION] Test Engine specific hooks (imgui_test_engine) -//----------------------------------------------------------------------------- - -#ifdef IMGUI_ENABLE_TEST_ENGINE -extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, const ImRect& bb, ImGuiID id); -extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, ImGuiItemStatusFlags flags); -extern void ImGuiTestEngineHook_IdInfo(ImGuiContext* ctx, ImGuiDataType data_type, ImGuiID id, const void* data_id); -extern void ImGuiTestEngineHook_IdInfo(ImGuiContext* ctx, ImGuiDataType data_type, ImGuiID id, const void* data_id, const void* data_id_end); -extern void ImGuiTestEngineHook_Log(ImGuiContext* ctx, const char* fmt, ...); -#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemAdd(&g, _BB, _ID) // Register item bounding box -#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional) -#define IMGUI_TEST_ENGINE_LOG(_FMT,...) if (g.TestEngineHookItems) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log -#define IMGUI_TEST_ENGINE_ID_INFO(_ID,_TYPE,_DATA) if (g.TestEngineHookIdInfo == id) ImGuiTestEngineHook_IdInfo(&g, _TYPE, _ID, (const void*)(_DATA)); -#define IMGUI_TEST_ENGINE_ID_INFO2(_ID,_TYPE,_DATA,_DATA2) if (g.TestEngineHookIdInfo == id) ImGuiTestEngineHook_IdInfo(&g, _TYPE, _ID, (const void*)(_DATA), (const void*)(_DATA2)); -#else -#define IMGUI_TEST_ENGINE_ITEM_ADD(_BB,_ID) do { } while (0) -#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) do { } while (0) -#define IMGUI_TEST_ENGINE_LOG(_FMT,...) do { } while (0) -#define IMGUI_TEST_ENGINE_ID_INFO(_ID,_TYPE,_DATA) do { } while (0) -#define IMGUI_TEST_ENGINE_ID_INFO2(_ID,_TYPE,_DATA,_DATA2) do { } while (0) -#endif - -//----------------------------------------------------------------------------- - -#if defined(__clang__) -#pragma clang diagnostic pop -#elif defined(__GNUC__) -#pragma GCC diagnostic pop -#endif - -#ifdef _MSC_VER -#pragma warning (pop) -#endif - -#endif // #ifndef IMGUI_DISABLE diff --git a/third_party/imgui/imgui_tables.cpp b/third_party/imgui/imgui_tables.cpp deleted file mode 100644 index 8c7f0682..00000000 --- a/third_party/imgui/imgui_tables.cpp +++ /dev/null @@ -1,3953 +0,0 @@ -// dear imgui, v1.82 WIP -// (tables and columns code) - -/* - -Index of this file: - -// [SECTION] Commentary -// [SECTION] Header mess -// [SECTION] Tables: Main code -// [SECTION] Tables: Row changes -// [SECTION] Tables: Columns changes -// [SECTION] Tables: Columns width management -// [SECTION] Tables: Drawing -// [SECTION] Tables: Sorting -// [SECTION] Tables: Headers -// [SECTION] Tables: Context Menu -// [SECTION] Tables: Settings (.ini data) -// [SECTION] Tables: Garbage Collection -// [SECTION] Tables: Debugging -// [SECTION] Columns, BeginColumns, EndColumns, etc. - -*/ - -// Navigating this file: -// - In Visual Studio IDE: CTRL+comma ("Edit.NavigateTo") can follow symbols in comments, whereas CTRL+F12 ("Edit.GoToImplementation") cannot. -// - With Visual Assist installed: ALT+G ("VAssistX.GoToImplementation") can also follow symbols in comments. - -//----------------------------------------------------------------------------- -// [SECTION] Commentary -//----------------------------------------------------------------------------- - -//----------------------------------------------------------------------------- -// Typical tables call flow: (root level is generally public API): -//----------------------------------------------------------------------------- -// - BeginTable() user begin into a table -// | BeginChild() - (if ScrollX/ScrollY is set) -// | TableBeginInitMemory() - first time table is used -// | TableResetSettings() - on settings reset -// | TableLoadSettings() - on settings load -// | TableBeginApplyRequests() - apply queued resizing/reordering/hiding requests -// | - TableSetColumnWidth() - apply resizing width (for mouse resize, often requested by previous frame) -// | - TableUpdateColumnsWeightFromWidth()- recompute columns weights (of stretch columns) from their respective width -// - TableSetupColumn() user submit columns details (optional) -// - TableSetupScrollFreeze() user submit scroll freeze information (optional) -//----------------------------------------------------------------------------- -// - TableUpdateLayout() [Internal] followup to BeginTable(): setup everything: widths, columns positions, clipping rectangles. Automatically called by the FIRST call to TableNextRow() or TableHeadersRow(). -// | TableSetupDrawChannels() - setup ImDrawList channels -// | TableUpdateBorders() - detect hovering columns for resize, ahead of contents submission -// | TableDrawContextMenu() - draw right-click context menu -//----------------------------------------------------------------------------- -// - TableHeadersRow() or TableHeader() user submit a headers row (optional) -// | TableSortSpecsClickColumn() - when left-clicked: alter sort order and sort direction -// | TableOpenContextMenu() - when right-clicked: trigger opening of the default context menu -// - TableGetSortSpecs() user queries updated sort specs (optional, generally after submitting headers) -// - TableNextRow() user begin into a new row (also automatically called by TableHeadersRow()) -// | TableEndRow() - finish existing row -// | TableBeginRow() - add a new row -// - TableSetColumnIndex() / TableNextColumn() user begin into a cell -// | TableEndCell() - close existing column/cell -// | TableBeginCell() - enter into current column/cell -// - [...] user emit contents -//----------------------------------------------------------------------------- -// - EndTable() user ends the table -// | TableDrawBorders() - draw outer borders, inner vertical borders -// | TableMergeDrawChannels() - merge draw channels if clipping isn't required -// | EndChild() - (if ScrollX/ScrollY is set) -//----------------------------------------------------------------------------- - -//----------------------------------------------------------------------------- -// TABLE SIZING -//----------------------------------------------------------------------------- -// (Read carefully because this is subtle but it does make sense!) -//----------------------------------------------------------------------------- -// About 'outer_size': -// Its meaning needs to differ slightly depending of if we are using ScrollX/ScrollY flags. -// Default value is ImVec2(0.0f, 0.0f). -// X -// - outer_size.x <= 0.0f -> Right-align from window/work-rect right-most edge. With -FLT_MIN or 0.0f will align exactly on right-most edge. -// - outer_size.x > 0.0f -> Set Fixed width. -// Y with ScrollX/ScrollY disabled: we output table directly in current window -// - outer_size.y < 0.0f -> Bottom-align (but will auto extend, unless _NoHostExtendY is set). Not meaningful is parent window can vertically scroll. -// - outer_size.y = 0.0f -> No minimum height (but will auto extend, unless _NoHostExtendY is set) -// - outer_size.y > 0.0f -> Set Minimum height (but will auto extend, unless _NoHostExtenY is set) -// Y with ScrollX/ScrollY enabled: using a child window for scrolling -// - outer_size.y < 0.0f -> Bottom-align. Not meaningful is parent window can vertically scroll. -// - outer_size.y = 0.0f -> Bottom-align, consistent with BeginChild(). Not recommended unless table is last item in parent window. -// - outer_size.y > 0.0f -> Set Exact height. Recommended when using Scrolling on any axis. -//----------------------------------------------------------------------------- -// Outer size is also affected by the NoHostExtendX/NoHostExtendY flags. -// Important to that note how the two flags have slightly different behaviors! -// - ImGuiTableFlags_NoHostExtendX -> Make outer width auto-fit to columns (overriding outer_size.x value). Only available when ScrollX/ScrollY are disabled and Stretch columns are not used. -// - ImGuiTableFlags_NoHostExtendY -> Make outer height stop exactly at outer_size.y (prevent auto-extending table past the limit). Only available when ScrollX/ScrollY are disabled. Data below the limit will be clipped and not visible. -// In theory ImGuiTableFlags_NoHostExtendY could be the default and any non-scrolling tables with outer_size.y != 0.0f would use exact height. -// This would be consistent but perhaps less useful and more confusing (as vertically clipped items are not easily noticeable) -//----------------------------------------------------------------------------- -// About 'inner_width': -// With ScrollX disabled: -// - inner_width -> *ignored* -// With ScrollX enabled: -// - inner_width < 0.0f -> *illegal* fit in known width (right align from outer_size.x) <-- weird -// - inner_width = 0.0f -> fit in outer_width: Fixed size columns will take space they need (if avail, otherwise shrink down), Stretch columns becomes Fixed columns. -// - inner_width > 0.0f -> override scrolling width, generally to be larger than outer_size.x. Fixed column take space they need (if avail, otherwise shrink down), Stretch columns share remaining space! -//----------------------------------------------------------------------------- -// Details: -// - If you want to use Stretch columns with ScrollX, you generally need to specify 'inner_width' otherwise the concept -// of "available space" doesn't make sense. -// - Even if not really useful, we allow 'inner_width < outer_size.x' for consistency and to facilitate understanding -// of what the value does. -//----------------------------------------------------------------------------- - -//----------------------------------------------------------------------------- -// COLUMNS SIZING POLICIES -//----------------------------------------------------------------------------- -// About overriding column sizing policy and width/weight with TableSetupColumn(): -// We use a default parameter of 'init_width_or_weight == -1'. -// - with ImGuiTableColumnFlags_WidthFixed, init_width <= 0 (default) --> width is automatic -// - with ImGuiTableColumnFlags_WidthFixed, init_width > 0 (explicit) --> width is custom -// - with ImGuiTableColumnFlags_WidthStretch, init_weight <= 0 (default) --> weight is 1.0f -// - with ImGuiTableColumnFlags_WidthStretch, init_weight > 0 (explicit) --> weight is custom -// Widths are specified _without_ CellPadding. If you specify a width of 100.0f, the column will be cover (100.0f + Padding * 2.0f) -// and you can fit a 100.0f wide item in it without clipping and with full padding. -//----------------------------------------------------------------------------- -// About default sizing policy (if you don't specify a ImGuiTableColumnFlags_WidthXXXX flag) -// - with Table policy ImGuiTableFlags_SizingFixedFit --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is equal to contents width -// - with Table policy ImGuiTableFlags_SizingFixedSame --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is max of all contents width -// - with Table policy ImGuiTableFlags_SizingStretchSame --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is 1.0f -// - with Table policy ImGuiTableFlags_SizingStretchWeight --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is proportional to contents -// Default Width and default Weight can be overridden when calling TableSetupColumn(). -//----------------------------------------------------------------------------- -// About mixing Fixed/Auto and Stretch columns together: -// - the typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. -// - using mixed policies with ScrollX does not make much sense, as using Stretch columns with ScrollX does not make much sense in the first place! -// that is, unless 'inner_width' is passed to BeginTable() to explicitly provide a total width to layout columns in. -// - when using ImGuiTableFlags_SizingFixedSame with mixed columns, only the Fixed/Auto columns will match their widths to the maximum contents width. -// - when using ImGuiTableFlags_SizingStretchSame with mixed columns, only the Stretch columns will match their weight/widths. -//----------------------------------------------------------------------------- -// About using column width: -// If a column is manual resizable or has a width specified with TableSetupColumn(): -// - you may use GetContentRegionAvail().x to query the width available in a given column. -// - right-side alignment features such as SetNextItemWidth(-x) or PushItemWidth(-x) will rely on this width. -// If the column is not resizable and has no width specified with TableSetupColumn(): -// - its width will be automatic and be the set to the max of items submitted. -// - therefore you generally cannot have ALL items of the columns use e.g. SetNextItemWidth(-FLT_MIN). -// - but if the column has one or more item of known/fixed size, this will become the reference width used by SetNextItemWidth(-FLT_MIN). -//----------------------------------------------------------------------------- - - -//----------------------------------------------------------------------------- -// TABLES CLIPPING/CULLING -//----------------------------------------------------------------------------- -// About clipping/culling of Rows in Tables: -// - For large numbers of rows, it is recommended you use ImGuiListClipper to only submit visible rows. -// ImGuiListClipper is reliant on the fact that rows are of equal height. -// See 'Demo->Tables->Vertical Scrolling' or 'Demo->Tables->Advanced' for a demo of using the clipper. -// - Note that auto-resizing columns don't play well with using the clipper. -// By default a table with _ScrollX but without _Resizable will have column auto-resize. -// So, if you want to use the clipper, make sure to either enable _Resizable, either setup columns width explicitly with _WidthFixed. -//----------------------------------------------------------------------------- -// About clipping/culling of Columns in Tables: -// - Both TableSetColumnIndex() and TableNextColumn() return true when the column is visible or performing -// width measurements. Otherwise, you may skip submitting the contents of a cell/column, BUT ONLY if you know -// it is not going to contribute to row height. -// In many situations, you may skip submitting contents for every columns but one (e.g. the first one). -// - Case A: column is not hidden by user, and at least partially in sight (most common case). -// - Case B: column is clipped / out of sight (because of scrolling or parent ClipRect): TableNextColumn() return false as a hint but we still allow layout output. -// - Case C: column is hidden explicitly by the user (e.g. via the context menu, or _DefaultHide column flag, etc.). -// -// [A] [B] [C] -// TableNextColumn(): true false false -> [userland] when TableNextColumn() / TableSetColumnIndex() return false, user can skip submitting items but only if the column doesn't contribute to row height. -// SkipItems: false false true -> [internal] when SkipItems is true, most widgets will early out if submitted, resulting is no layout output. -// ClipRect: normal zero-width zero-width -> [internal] when ClipRect is zero, ItemAdd() will return false and most widgets will early out mid-way. -// ImDrawList output: normal dummy dummy -> [internal] when using the dummy channel, ImDrawList submissions (if any) will be wasted (because cliprect is zero-width anyway). -// -// - We need distinguish those cases because non-hidden columns that are clipped outside of scrolling bounds should still contribute their height to the row. -// However, in the majority of cases, the contribution to row height is the same for all columns, or the tallest cells are known by the programmer. -//----------------------------------------------------------------------------- -// About clipping/culling of whole Tables: -// - Scrolling tables with a known outer size can be clipped earlier as BeginTable() will return false. -//----------------------------------------------------------------------------- - -//----------------------------------------------------------------------------- -// [SECTION] Header mess -//----------------------------------------------------------------------------- - -#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) -#define _CRT_SECURE_NO_WARNINGS -#endif - -#include "imgui.h" -#ifndef IMGUI_DISABLE - -#ifndef IMGUI_DEFINE_MATH_OPERATORS -#define IMGUI_DEFINE_MATH_OPERATORS -#endif -#include "imgui_internal.h" - -// System includes -#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier -#include // intptr_t -#else -#include // intptr_t -#endif - -// Visual Studio warnings -#ifdef _MSC_VER -#pragma warning (disable: 4127) // condition expression is constant -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later -#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types -#endif -#endif - -// Clang/GCC warnings with -Weverything -#if defined(__clang__) -#if __has_warning("-Wunknown-warning-option") -#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' -#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. -#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. -#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. -#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness -#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 -#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. -#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') -#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated -#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision -#elif defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked -#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead -#endif - -//----------------------------------------------------------------------------- -// [SECTION] Tables: Main code -//----------------------------------------------------------------------------- - -// Configuration -static const int TABLE_DRAW_CHANNEL_BG0 = 0; -static const int TABLE_DRAW_CHANNEL_BG2_FROZEN = 1; -static const int TABLE_DRAW_CHANNEL_NOCLIP = 2; // When using ImGuiTableFlags_NoClip (this becomes the last visible channel) -static const float TABLE_BORDER_SIZE = 1.0f; // FIXME-TABLE: Currently hard-coded because of clipping assumptions with outer borders rendering. -static const float TABLE_RESIZE_SEPARATOR_HALF_THICKNESS = 4.0f; // Extend outside inner borders. -static const float TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER = 0.06f; // Delay/timer before making the hover feedback (color+cursor) visible because tables/columns tends to be more cramped. - -// Helper -inline ImGuiTableFlags TableFixFlags(ImGuiTableFlags flags, ImGuiWindow* outer_window) -{ - // Adjust flags: set default sizing policy - if ((flags & ImGuiTableFlags_SizingMask_) == 0) - flags |= ((flags & ImGuiTableFlags_ScrollX) || (outer_window->Flags & ImGuiWindowFlags_AlwaysAutoResize)) ? ImGuiTableFlags_SizingFixedFit : ImGuiTableFlags_SizingStretchSame; - - // Adjust flags: enable NoKeepColumnsVisible when using ImGuiTableFlags_SizingFixedSame - if ((flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) - flags |= ImGuiTableFlags_NoKeepColumnsVisible; - - // Adjust flags: enforce borders when resizable - if (flags & ImGuiTableFlags_Resizable) - flags |= ImGuiTableFlags_BordersInnerV; - - // Adjust flags: disable NoHostExtendX/NoHostExtendY if we have any scrolling going on - if (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) - flags &= ~(ImGuiTableFlags_NoHostExtendX | ImGuiTableFlags_NoHostExtendY); - - // Adjust flags: NoBordersInBodyUntilResize takes priority over NoBordersInBody - if (flags & ImGuiTableFlags_NoBordersInBodyUntilResize) - flags &= ~ImGuiTableFlags_NoBordersInBody; - - // Adjust flags: disable saved settings if there's nothing to save - if ((flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Hideable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Sortable)) == 0) - flags |= ImGuiTableFlags_NoSavedSettings; - - // Inherit _NoSavedSettings from top-level window (child windows always have _NoSavedSettings set) -#ifdef IMGUI_HAS_DOCK - ImGuiWindow* window_for_settings = outer_window->RootWindowDockStop; -#else - ImGuiWindow* window_for_settings = outer_window->RootWindow; -#endif - if (window_for_settings->Flags & ImGuiWindowFlags_NoSavedSettings) - flags |= ImGuiTableFlags_NoSavedSettings; - - return flags; -} - -ImGuiTable* ImGui::TableFindByID(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - return g.Tables.GetByKey(id); -} - -// Read about "TABLE SIZING" at the top of this file. -bool ImGui::BeginTable(const char* str_id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) -{ - ImGuiID id = GetID(str_id); - return BeginTableEx(str_id, id, columns_count, flags, outer_size, inner_width); -} - -bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags, const ImVec2& outer_size, float inner_width) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* outer_window = GetCurrentWindow(); - if (outer_window->SkipItems) // Consistent with other tables + beneficial side effect that assert on miscalling EndTable() will be more visible. - return false; - - // Sanity checks - IM_ASSERT(columns_count > 0 && columns_count <= IMGUI_TABLE_MAX_COLUMNS && "Only 1..64 columns allowed!"); - if (flags & ImGuiTableFlags_ScrollX) - IM_ASSERT(inner_width >= 0.0f); - - // If an outer size is specified ahead we will be able to early out when not visible. Exact clipping rules may evolve. - const bool use_child_window = (flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) != 0; - const ImVec2 avail_size = GetContentRegionAvail(); - ImVec2 actual_outer_size = CalcItemSize(outer_size, ImMax(avail_size.x, 1.0f), use_child_window ? ImMax(avail_size.y, 1.0f) : 0.0f); - ImRect outer_rect(outer_window->DC.CursorPos, outer_window->DC.CursorPos + actual_outer_size); - if (use_child_window && IsClippedEx(outer_rect, 0, false)) - { - ItemSize(outer_rect); - return false; - } - - // Acquire storage for the table - ImGuiTable* table = g.Tables.GetOrAddByKey(id); - const int instance_no = (table->LastFrameActive != g.FrameCount) ? 0 : table->InstanceCurrent + 1; - const ImGuiID instance_id = id + instance_no; - const ImGuiTableFlags table_last_flags = table->Flags; - if (instance_no > 0) - IM_ASSERT(table->ColumnsCount == columns_count && "BeginTable(): Cannot change columns count mid-frame while preserving same ID"); - - // Fix flags - table->IsDefaultSizingPolicy = (flags & ImGuiTableFlags_SizingMask_) == 0; - flags = TableFixFlags(flags, outer_window); - - // Initialize - table->ID = id; - table->Flags = flags; - table->InstanceCurrent = (ImS16)instance_no; - table->LastFrameActive = g.FrameCount; - table->OuterWindow = table->InnerWindow = outer_window; - table->ColumnsCount = columns_count; - table->IsLayoutLocked = false; - table->InnerWidth = inner_width; - table->UserOuterSize = outer_size; - - // When not using a child window, WorkRect.Max will grow as we append contents. - if (use_child_window) - { - // Ensure no vertical scrollbar appears if we only want horizontal one, to make flag consistent - // (we have no other way to disable vertical scrollbar of a window while keeping the horizontal one showing) - ImVec2 override_content_size(FLT_MAX, FLT_MAX); - if ((flags & ImGuiTableFlags_ScrollX) && !(flags & ImGuiTableFlags_ScrollY)) - override_content_size.y = FLT_MIN; - - // Ensure specified width (when not specified, Stretched columns will act as if the width == OuterWidth and - // never lead to any scrolling). We don't handle inner_width < 0.0f, we could potentially use it to right-align - // based on the right side of the child window work rect, which would require knowing ahead if we are going to - // have decoration taking horizontal spaces (typically a vertical scrollbar). - if ((flags & ImGuiTableFlags_ScrollX) && inner_width > 0.0f) - override_content_size.x = inner_width; - - if (override_content_size.x != FLT_MAX || override_content_size.y != FLT_MAX) - SetNextWindowContentSize(ImVec2(override_content_size.x != FLT_MAX ? override_content_size.x : 0.0f, override_content_size.y != FLT_MAX ? override_content_size.y : 0.0f)); - - // Reset scroll if we are reactivating it - if ((table_last_flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) == 0) - SetNextWindowScroll(ImVec2(0.0f, 0.0f)); - - // Create scrolling region (without border and zero window padding) - ImGuiWindowFlags child_flags = (flags & ImGuiTableFlags_ScrollX) ? ImGuiWindowFlags_HorizontalScrollbar : ImGuiWindowFlags_None; - BeginChildEx(name, instance_id, outer_rect.GetSize(), false, child_flags); - table->InnerWindow = g.CurrentWindow; - table->WorkRect = table->InnerWindow->WorkRect; - table->OuterRect = table->InnerWindow->Rect(); - table->InnerRect = table->InnerWindow->InnerRect; - IM_ASSERT(table->InnerWindow->WindowPadding.x == 0.0f && table->InnerWindow->WindowPadding.y == 0.0f && table->InnerWindow->WindowBorderSize == 0.0f); - } - else - { - // For non-scrolling tables, WorkRect == OuterRect == InnerRect. - // But at this point we do NOT have a correct value for .Max.y (unless a height has been explicitly passed in). It will only be updated in EndTable(). - table->WorkRect = table->OuterRect = table->InnerRect = outer_rect; - } - - // Push a standardized ID for both child-using and not-child-using tables - PushOverrideID(instance_id); - - // Backup a copy of host window members we will modify - ImGuiWindow* inner_window = table->InnerWindow; - table->HostIndentX = inner_window->DC.Indent.x; - table->HostClipRect = inner_window->ClipRect; - table->HostSkipItems = inner_window->SkipItems; - table->HostBackupWorkRect = inner_window->WorkRect; - table->HostBackupParentWorkRect = inner_window->ParentWorkRect; - table->HostBackupColumnsOffset = outer_window->DC.ColumnsOffset; - table->HostBackupPrevLineSize = inner_window->DC.PrevLineSize; - table->HostBackupCurrLineSize = inner_window->DC.CurrLineSize; - table->HostBackupCursorMaxPos = inner_window->DC.CursorMaxPos; - table->HostBackupItemWidth = outer_window->DC.ItemWidth; - table->HostBackupItemWidthStackSize = outer_window->DC.ItemWidthStack.Size; - inner_window->DC.PrevLineSize = inner_window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); - - // Padding and Spacing - // - None ........Content..... Pad .....Content........ - // - PadOuter | Pad ..Content..... Pad .....Content.. Pad | - // - PadInner ........Content.. Pad | Pad ..Content........ - // - PadOuter+PadInner | Pad ..Content.. Pad | Pad ..Content.. Pad | - const bool pad_outer_x = (flags & ImGuiTableFlags_NoPadOuterX) ? false : (flags & ImGuiTableFlags_PadOuterX) ? true : (flags & ImGuiTableFlags_BordersOuterV) != 0; - const bool pad_inner_x = (flags & ImGuiTableFlags_NoPadInnerX) ? false : true; - const float inner_spacing_for_border = (flags & ImGuiTableFlags_BordersInnerV) ? TABLE_BORDER_SIZE : 0.0f; - const float inner_spacing_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) == 0) ? g.Style.CellPadding.x : 0.0f; - const float inner_padding_explicit = (pad_inner_x && (flags & ImGuiTableFlags_BordersInnerV) != 0) ? g.Style.CellPadding.x : 0.0f; - table->CellSpacingX1 = inner_spacing_explicit + inner_spacing_for_border; - table->CellSpacingX2 = inner_spacing_explicit; - table->CellPaddingX = inner_padding_explicit; - table->CellPaddingY = g.Style.CellPadding.y; - - const float outer_padding_for_border = (flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; - const float outer_padding_explicit = pad_outer_x ? g.Style.CellPadding.x : 0.0f; - table->OuterPaddingX = (outer_padding_for_border + outer_padding_explicit) - table->CellPaddingX; - - table->CurrentColumn = -1; - table->CurrentRow = -1; - table->RowBgColorCounter = 0; - table->LastRowFlags = ImGuiTableRowFlags_None; - table->InnerClipRect = (inner_window == outer_window) ? table->WorkRect : inner_window->ClipRect; - table->InnerClipRect.ClipWith(table->WorkRect); // We need this to honor inner_width - table->InnerClipRect.ClipWithFull(table->HostClipRect); - table->InnerClipRect.Max.y = (flags & ImGuiTableFlags_NoHostExtendY) ? ImMin(table->InnerClipRect.Max.y, inner_window->WorkRect.Max.y) : inner_window->ClipRect.Max.y; - - table->RowPosY1 = table->RowPosY2 = table->WorkRect.Min.y; // This is needed somehow - table->RowTextBaseline = 0.0f; // This will be cleared again by TableBeginRow() - table->FreezeRowsRequest = table->FreezeRowsCount = 0; // This will be setup by TableSetupScrollFreeze(), if any - table->FreezeColumnsRequest = table->FreezeColumnsCount = 0; - table->IsUnfrozenRows = true; - table->DeclColumnsCount = 0; - - // Using opaque colors facilitate overlapping elements of the grid - table->BorderColorStrong = GetColorU32(ImGuiCol_TableBorderStrong); - table->BorderColorLight = GetColorU32(ImGuiCol_TableBorderLight); - - // Make table current - const int table_idx = g.Tables.GetIndex(table); - g.CurrentTableStack.push_back(ImGuiPtrOrIndex(table_idx)); - g.CurrentTable = table; - outer_window->DC.CurrentTableIdx = table_idx; - if (inner_window != outer_window) // So EndChild() within the inner window can restore the table properly. - inner_window->DC.CurrentTableIdx = table_idx; - - if ((table_last_flags & ImGuiTableFlags_Reorderable) && (flags & ImGuiTableFlags_Reorderable) == 0) - table->IsResetDisplayOrderRequest = true; - - // Mark as used - if (table_idx >= g.TablesLastTimeActive.Size) - g.TablesLastTimeActive.resize(table_idx + 1, -1.0f); - g.TablesLastTimeActive[table_idx] = (float)g.Time; - table->MemoryCompacted = false; - - // Setup memory buffer (clear data if columns count changed) - const int stored_size = table->Columns.size(); - if (stored_size != 0 && stored_size != columns_count) - { - IM_FREE(table->RawData); - table->RawData = NULL; - } - if (table->RawData == NULL) - { - TableBeginInitMemory(table, columns_count); - table->IsInitializing = table->IsSettingsRequestLoad = true; - } - if (table->IsResetAllRequest) - TableResetSettings(table); - if (table->IsInitializing) - { - // Initialize - table->SettingsOffset = -1; - table->IsSortSpecsDirty = true; - table->InstanceInteracted = -1; - table->ContextPopupColumn = -1; - table->ReorderColumn = table->ResizedColumn = table->LastResizedColumn = -1; - table->AutoFitSingleColumn = -1; - table->HoveredColumnBody = table->HoveredColumnBorder = -1; - for (int n = 0; n < columns_count; n++) - { - ImGuiTableColumn* column = &table->Columns[n]; - float width_auto = column->WidthAuto; - *column = ImGuiTableColumn(); - column->WidthAuto = width_auto; - column->IsPreserveWidthAuto = true; // Preserve WidthAuto when reinitializing a live table: not technically necessary but remove a visible flicker - column->DisplayOrder = table->DisplayOrderToIndex[n] = (ImGuiTableColumnIdx)n; - column->IsEnabled = column->IsEnabledNextFrame = true; - } - } - - // Load settings - if (table->IsSettingsRequestLoad) - TableLoadSettings(table); - - // Handle DPI/font resize - // This is designed to facilitate DPI changes with the assumption that e.g. style.CellPadding has been scaled as well. - // It will also react to changing fonts with mixed results. It doesn't need to be perfect but merely provide a decent transition. - // FIXME-DPI: Provide consistent standards for reference size. Perhaps using g.CurrentDpiScale would be more self explanatory. - // This is will lead us to non-rounded WidthRequest in columns, which should work but is a poorly tested path. - const float new_ref_scale_unit = g.FontSize; // g.Font->GetCharAdvance('A') ? - if (table->RefScale != 0.0f && table->RefScale != new_ref_scale_unit) - { - const float scale_factor = new_ref_scale_unit / table->RefScale; - //IMGUI_DEBUG_LOG("[table] %08X RefScaleUnit %.3f -> %.3f, scaling width by %.3f\n", table->ID, table->RefScaleUnit, new_ref_scale_unit, scale_factor); - for (int n = 0; n < columns_count; n++) - table->Columns[n].WidthRequest = table->Columns[n].WidthRequest * scale_factor; - } - table->RefScale = new_ref_scale_unit; - - // Disable output until user calls TableNextRow() or TableNextColumn() leading to the TableUpdateLayout() call.. - // This is not strictly necessary but will reduce cases were "out of table" output will be misleading to the user. - // Because we cannot safely assert in EndTable() when no rows have been created, this seems like our best option. - inner_window->SkipItems = true; - - // Clear names - // At this point the ->NameOffset field of each column will be invalid until TableUpdateLayout() or the first call to TableSetupColumn() - if (table->ColumnsNames.Buf.Size > 0) - table->ColumnsNames.Buf.resize(0); - - // Apply queued resizing/reordering/hiding requests - TableBeginApplyRequests(table); - - return true; -} - -// For reference, the average total _allocation count_ for a table is: -// + 0 (for ImGuiTable instance, we are pooling allocations in g.Tables) -// + 1 (for table->RawData allocated below) -// + 1 (for table->ColumnsNames, if names are used) -// + 1 (for table->Splitter._Channels) -// + 2 * active_channels_count (for ImDrawCmd and ImDrawIdx buffers inside channels) -// Where active_channels_count is variable but often == columns_count or columns_count + 1, see TableSetupDrawChannels() for details. -// Unused channels don't perform their +2 allocations. -void ImGui::TableBeginInitMemory(ImGuiTable* table, int columns_count) -{ - // Allocate single buffer for our arrays - ImSpanAllocator<3> span_allocator; - span_allocator.Reserve(0, columns_count * sizeof(ImGuiTableColumn)); - span_allocator.Reserve(1, columns_count * sizeof(ImGuiTableColumnIdx)); - span_allocator.Reserve(2, columns_count * sizeof(ImGuiTableCellData), 4); - table->RawData = IM_ALLOC(span_allocator.GetArenaSizeInBytes()); - memset(table->RawData, 0, span_allocator.GetArenaSizeInBytes()); - span_allocator.SetArenaBasePtr(table->RawData); - span_allocator.GetSpan(0, &table->Columns); - span_allocator.GetSpan(1, &table->DisplayOrderToIndex); - span_allocator.GetSpan(2, &table->RowCellData); -} - -// Apply queued resizing/reordering/hiding requests -void ImGui::TableBeginApplyRequests(ImGuiTable* table) -{ - // Handle resizing request - // (We process this at the first TableBegin of the frame) - // FIXME-TABLE: Contains columns if our work area doesn't allow for scrolling? - if (table->InstanceCurrent == 0) - { - if (table->ResizedColumn != -1 && table->ResizedColumnNextWidth != FLT_MAX) - TableSetColumnWidth(table->ResizedColumn, table->ResizedColumnNextWidth); - table->LastResizedColumn = table->ResizedColumn; - table->ResizedColumnNextWidth = FLT_MAX; - table->ResizedColumn = -1; - - // Process auto-fit for single column, which is a special case for stretch columns and fixed columns with FixedSame policy. - // FIXME-TABLE: Would be nice to redistribute available stretch space accordingly to other weights, instead of giving it all to siblings. - if (table->AutoFitSingleColumn != -1) - { - TableSetColumnWidth(table->AutoFitSingleColumn, table->Columns[table->AutoFitSingleColumn].WidthAuto); - table->AutoFitSingleColumn = -1; - } - } - - // Handle reordering request - // Note: we don't clear ReorderColumn after handling the request. - if (table->InstanceCurrent == 0) - { - if (table->HeldHeaderColumn == -1 && table->ReorderColumn != -1) - table->ReorderColumn = -1; - table->HeldHeaderColumn = -1; - if (table->ReorderColumn != -1 && table->ReorderColumnDir != 0) - { - // We need to handle reordering across hidden columns. - // In the configuration below, moving C to the right of E will lead to: - // ... C [D] E ---> ... [D] E C (Column name/index) - // ... 2 3 4 ... 2 3 4 (Display order) - const int reorder_dir = table->ReorderColumnDir; - IM_ASSERT(reorder_dir == -1 || reorder_dir == +1); - IM_ASSERT(table->Flags & ImGuiTableFlags_Reorderable); - ImGuiTableColumn* src_column = &table->Columns[table->ReorderColumn]; - ImGuiTableColumn* dst_column = &table->Columns[(reorder_dir == -1) ? src_column->PrevEnabledColumn : src_column->NextEnabledColumn]; - IM_UNUSED(dst_column); - const int src_order = src_column->DisplayOrder; - const int dst_order = dst_column->DisplayOrder; - src_column->DisplayOrder = (ImGuiTableColumnIdx)dst_order; - for (int order_n = src_order + reorder_dir; order_n != dst_order + reorder_dir; order_n += reorder_dir) - table->Columns[table->DisplayOrderToIndex[order_n]].DisplayOrder -= (ImGuiTableColumnIdx)reorder_dir; - IM_ASSERT(dst_column->DisplayOrder == dst_order - reorder_dir); - - // Display order is stored in both columns->IndexDisplayOrder and table->DisplayOrder[], - // rebuild the later from the former. - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; - table->ReorderColumnDir = 0; - table->IsSettingsDirty = true; - } - } - - // Handle display order reset request - if (table->IsResetDisplayOrderRequest) - { - for (int n = 0; n < table->ColumnsCount; n++) - table->DisplayOrderToIndex[n] = table->Columns[n].DisplayOrder = (ImGuiTableColumnIdx)n; - table->IsResetDisplayOrderRequest = false; - table->IsSettingsDirty = true; - } -} - -// Adjust flags: default width mode + stretch columns are not allowed when auto extending -static void TableSetupColumnFlags(ImGuiTable* table, ImGuiTableColumn* column, ImGuiTableColumnFlags flags_in) -{ - ImGuiTableColumnFlags flags = flags_in; - - // Sizing Policy - if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0) - { - const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); - if (table_sizing_policy == ImGuiTableFlags_SizingFixedFit || table_sizing_policy == ImGuiTableFlags_SizingFixedSame) - flags |= ImGuiTableColumnFlags_WidthFixed; - else - flags |= ImGuiTableColumnFlags_WidthStretch; - } - else - { - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_WidthMask_)); // Check that only 1 of each set is used. - } - - // Resize - if ((table->Flags & ImGuiTableFlags_Resizable) == 0) - flags |= ImGuiTableColumnFlags_NoResize; - - // Sorting - if ((flags & ImGuiTableColumnFlags_NoSortAscending) && (flags & ImGuiTableColumnFlags_NoSortDescending)) - flags |= ImGuiTableColumnFlags_NoSort; - - // Indentation - if ((flags & ImGuiTableColumnFlags_IndentMask_) == 0) - flags |= (table->Columns.index_from_ptr(column) == 0) ? ImGuiTableColumnFlags_IndentEnable : ImGuiTableColumnFlags_IndentDisable; - - // Alignment - //if ((flags & ImGuiTableColumnFlags_AlignMask_) == 0) - // flags |= ImGuiTableColumnFlags_AlignCenter; - //IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiTableColumnFlags_AlignMask_)); // Check that only 1 of each set is used. - - // Preserve status flags - column->Flags = flags | (column->Flags & ImGuiTableColumnFlags_StatusMask_); - - // Build an ordered list of available sort directions - column->SortDirectionsAvailCount = column->SortDirectionsAvailMask = column->SortDirectionsAvailList = 0; - if (table->Flags & ImGuiTableFlags_Sortable) - { - int count = 0, mask = 0, list = 0; - if ((flags & ImGuiTableColumnFlags_PreferSortAscending) != 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } - if ((flags & ImGuiTableColumnFlags_PreferSortDescending) != 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } - if ((flags & ImGuiTableColumnFlags_PreferSortAscending) == 0 && (flags & ImGuiTableColumnFlags_NoSortAscending) == 0) { mask |= 1 << ImGuiSortDirection_Ascending; list |= ImGuiSortDirection_Ascending << (count << 1); count++; } - if ((flags & ImGuiTableColumnFlags_PreferSortDescending) == 0 && (flags & ImGuiTableColumnFlags_NoSortDescending) == 0) { mask |= 1 << ImGuiSortDirection_Descending; list |= ImGuiSortDirection_Descending << (count << 1); count++; } - if ((table->Flags & ImGuiTableFlags_SortTristate) || count == 0) { mask |= 1 << ImGuiSortDirection_None; count++; } - column->SortDirectionsAvailList = (ImU8)list; - column->SortDirectionsAvailMask = (ImU8)mask; - column->SortDirectionsAvailCount = (ImU8)count; - ImGui::TableFixColumnSortDirection(table, column); - } -} - -// Layout columns for the frame. This is in essence the followup to BeginTable(). -// Runs on the first call to TableNextRow(), to give a chance for TableSetupColumn() to be called first. -// FIXME-TABLE: Our width (and therefore our WorkRect) will be minimal in the first frame for _WidthAuto columns. -// Increase feedback side-effect with widgets relying on WorkRect.Max.x... Maybe provide a default distribution for _WidthAuto columns? -void ImGui::TableUpdateLayout(ImGuiTable* table) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(table->IsLayoutLocked == false); - - const ImGuiTableFlags table_sizing_policy = (table->Flags & ImGuiTableFlags_SizingMask_); - table->IsDefaultDisplayOrder = true; - table->ColumnsEnabledCount = 0; - table->EnabledMaskByIndex = 0x00; - table->EnabledMaskByDisplayOrder = 0x00; - table->LeftMostEnabledColumn = -1; - table->MinColumnWidth = ImMax(1.0f, g.Style.FramePadding.x * 1.0f); // g.Style.ColumnsMinSpacing; // FIXME-TABLE - - // [Part 1] Apply/lock Enabled and Order states. Calculate auto/ideal width for columns. Count fixed/stretch columns. - // Process columns in their visible orders as we are building the Prev/Next indices. - int count_fixed = 0; // Number of columns that have fixed sizing policies - int count_stretch = 0; // Number of columns that have stretch sizing policies - int prev_visible_column_idx = -1; - bool has_auto_fit_request = false; - bool has_resizable = false; - float stretch_sum_width_auto = 0.0f; - float fixed_max_width_auto = 0.0f; - for (int order_n = 0; order_n < table->ColumnsCount; order_n++) - { - const int column_n = table->DisplayOrderToIndex[order_n]; - if (column_n != order_n) - table->IsDefaultDisplayOrder = false; - ImGuiTableColumn* column = &table->Columns[column_n]; - - // Clear column setup if not submitted by user. Currently we make it mandatory to call TableSetupColumn() every frame. - // It would easily work without but we're not ready to guarantee it since e.g. names need resubmission anyway. - // We take a slight shortcut but in theory we could be calling TableSetupColumn() here with dummy values, it should yield the same effect. - if (table->DeclColumnsCount <= column_n) - { - TableSetupColumnFlags(table, column, ImGuiTableColumnFlags_None); - column->NameOffset = -1; - column->UserID = 0; - column->InitStretchWeightOrWidth = -1.0f; - } - - // Update Enabled state, mark settings/sortspecs dirty - if (!(table->Flags & ImGuiTableFlags_Hideable) || (column->Flags & ImGuiTableColumnFlags_NoHide)) - column->IsEnabledNextFrame = true; - if (column->IsEnabled != column->IsEnabledNextFrame) - { - column->IsEnabled = column->IsEnabledNextFrame; - table->IsSettingsDirty = true; - if (!column->IsEnabled && column->SortOrder != -1) - table->IsSortSpecsDirty = true; - } - if (column->SortOrder > 0 && !(table->Flags & ImGuiTableFlags_SortMulti)) - table->IsSortSpecsDirty = true; - - // Auto-fit unsized columns - const bool start_auto_fit = (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? (column->WidthRequest < 0.0f) : (column->StretchWeight < 0.0f); - if (start_auto_fit) - column->AutoFitQueue = column->CannotSkipItemsQueue = (1 << 3) - 1; // Fit for three frames - - if (!column->IsEnabled) - { - column->IndexWithinEnabledSet = -1; - continue; - } - - // Mark as enabled and link to previous/next enabled column - column->PrevEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; - column->NextEnabledColumn = -1; - if (prev_visible_column_idx != -1) - table->Columns[prev_visible_column_idx].NextEnabledColumn = (ImGuiTableColumnIdx)column_n; - else - table->LeftMostEnabledColumn = (ImGuiTableColumnIdx)column_n; - column->IndexWithinEnabledSet = table->ColumnsEnabledCount++; - table->EnabledMaskByIndex |= (ImU64)1 << column_n; - table->EnabledMaskByDisplayOrder |= (ImU64)1 << column->DisplayOrder; - prev_visible_column_idx = column_n; - IM_ASSERT(column->IndexWithinEnabledSet <= column->DisplayOrder); - - // Calculate ideal/auto column width (that's the width required for all contents to be visible without clipping) - // Combine width from regular rows + width from headers unless requested not to. - if (!column->IsPreserveWidthAuto) - column->WidthAuto = TableGetColumnWidthAuto(table, column); - - // Non-resizable columns keep their requested width (apply user value regardless of IsPreserveWidthAuto) - const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; - if (column_is_resizable) - has_resizable = true; - if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f && !column_is_resizable) - column->WidthAuto = column->InitStretchWeightOrWidth; - - if (column->AutoFitQueue != 0x00) - has_auto_fit_request = true; - if (column->Flags & ImGuiTableColumnFlags_WidthStretch) - { - stretch_sum_width_auto += column->WidthAuto; - count_stretch++; - } - else - { - fixed_max_width_auto = ImMax(fixed_max_width_auto, column->WidthAuto); - count_fixed++; - } - } - if ((table->Flags & ImGuiTableFlags_Sortable) && table->SortSpecsCount == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) - table->IsSortSpecsDirty = true; - table->RightMostEnabledColumn = (ImGuiTableColumnIdx)prev_visible_column_idx; - IM_ASSERT(table->LeftMostEnabledColumn >= 0 && table->RightMostEnabledColumn >= 0); - - // [Part 2] Disable child window clipping while fitting columns. This is not strictly necessary but makes it possible - // to avoid the column fitting having to wait until the first visible frame of the child container (may or not be a good thing). - // FIXME-TABLE: for always auto-resizing columns may not want to do that all the time. - if (has_auto_fit_request && table->OuterWindow != table->InnerWindow) - table->InnerWindow->SkipItems = false; - if (has_auto_fit_request) - table->IsSettingsDirty = true; - - // [Part 3] Fix column flags and record a few extra information. - float sum_width_requests = 0.0f; // Sum of all width for fixed and auto-resize columns, excluding width contributed by Stretch columns but including spacing/padding. - float stretch_sum_weights = 0.0f; // Sum of all weights for stretch columns. - table->LeftMostStretchedColumn = table->RightMostStretchedColumn = -1; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - if (!(table->EnabledMaskByIndex & ((ImU64)1 << column_n))) - continue; - ImGuiTableColumn* column = &table->Columns[column_n]; - - const bool column_is_resizable = (column->Flags & ImGuiTableColumnFlags_NoResize) == 0; - if (column->Flags & ImGuiTableColumnFlags_WidthFixed) - { - // Apply same widths policy - float width_auto = column->WidthAuto; - if (table_sizing_policy == ImGuiTableFlags_SizingFixedSame && (column->AutoFitQueue != 0x00 || !column_is_resizable)) - width_auto = fixed_max_width_auto; - - // Apply automatic width - // Latch initial size for fixed columns and update it constantly for auto-resizing column (unless clipped!) - if (column->AutoFitQueue != 0x00) - column->WidthRequest = width_auto; - else if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !column_is_resizable && (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n))) - column->WidthRequest = width_auto; - - // FIXME-TABLE: Increase minimum size during init frame to avoid biasing auto-fitting widgets - // (e.g. TextWrapped) too much. Otherwise what tends to happen is that TextWrapped would output a very - // large height (= first frame scrollbar display very off + clipper would skip lots of items). - // This is merely making the side-effect less extreme, but doesn't properly fixes it. - // FIXME: Move this to ->WidthGiven to avoid temporary lossyless? - // FIXME: This break IsPreserveWidthAuto from not flickering if the stored WidthAuto was smaller. - if (column->AutoFitQueue > 0x01 && table->IsInitializing && !column->IsPreserveWidthAuto) - column->WidthRequest = ImMax(column->WidthRequest, table->MinColumnWidth * 4.0f); // FIXME-TABLE: Another constant/scale? - sum_width_requests += column->WidthRequest; - } - else - { - // Initialize stretch weight - if (column->AutoFitQueue != 0x00 || column->StretchWeight < 0.0f || !column_is_resizable) - { - if (column->InitStretchWeightOrWidth > 0.0f) - column->StretchWeight = column->InitStretchWeightOrWidth; - else if (table_sizing_policy == ImGuiTableFlags_SizingStretchProp) - column->StretchWeight = (column->WidthAuto / stretch_sum_width_auto) * count_stretch; - else - column->StretchWeight = 1.0f; - } - - stretch_sum_weights += column->StretchWeight; - if (table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder > column->DisplayOrder) - table->LeftMostStretchedColumn = (ImGuiTableColumnIdx)column_n; - if (table->RightMostStretchedColumn == -1 || table->Columns[table->RightMostStretchedColumn].DisplayOrder < column->DisplayOrder) - table->RightMostStretchedColumn = (ImGuiTableColumnIdx)column_n; - } - column->IsPreserveWidthAuto = false; - sum_width_requests += table->CellPaddingX * 2.0f; - } - table->ColumnsEnabledFixedCount = (ImGuiTableColumnIdx)count_fixed; - - // [Part 4] Apply final widths based on requested widths - const ImRect work_rect = table->WorkRect; - const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); - const float width_avail = ((table->Flags & ImGuiTableFlags_ScrollX) && table->InnerWidth == 0.0f) ? table->InnerClipRect.GetWidth() : work_rect.GetWidth(); - const float width_avail_for_stretched_columns = width_avail - width_spacings - sum_width_requests; - float width_remaining_for_stretched_columns = width_avail_for_stretched_columns; - table->ColumnsGivenWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - if (!(table->EnabledMaskByIndex & ((ImU64)1 << column_n))) - continue; - ImGuiTableColumn* column = &table->Columns[column_n]; - - // Allocate width for stretched/weighted columns (StretchWeight gets converted into WidthRequest) - if (column->Flags & ImGuiTableColumnFlags_WidthStretch) - { - float weight_ratio = column->StretchWeight / stretch_sum_weights; - column->WidthRequest = IM_FLOOR(ImMax(width_avail_for_stretched_columns * weight_ratio, table->MinColumnWidth) + 0.01f); - width_remaining_for_stretched_columns -= column->WidthRequest; - } - - // [Resize Rule 1] The right-most Visible column is not resizable if there is at least one Stretch column - // See additional comments in TableSetColumnWidth(). - if (column->NextEnabledColumn == -1 && table->LeftMostStretchedColumn != -1) - column->Flags |= ImGuiTableColumnFlags_NoDirectResize_; - - // Assign final width, record width in case we will need to shrink - column->WidthGiven = ImFloor(ImMax(column->WidthRequest, table->MinColumnWidth)); - table->ColumnsGivenWidth += column->WidthGiven; - } - - // [Part 5] Redistribute stretch remainder width due to rounding (remainder width is < 1.0f * number of Stretch column). - // Using right-to-left distribution (more likely to match resizing cursor). - if (width_remaining_for_stretched_columns >= 1.0f && !(table->Flags & ImGuiTableFlags_PreciseWidths)) - for (int order_n = table->ColumnsCount - 1; stretch_sum_weights > 0.0f && width_remaining_for_stretched_columns >= 1.0f && order_n >= 0; order_n--) - { - if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) - continue; - ImGuiTableColumn* column = &table->Columns[table->DisplayOrderToIndex[order_n]]; - if (!(column->Flags & ImGuiTableColumnFlags_WidthStretch)) - continue; - column->WidthRequest += 1.0f; - column->WidthGiven += 1.0f; - width_remaining_for_stretched_columns -= 1.0f; - } - - table->HoveredColumnBody = -1; - table->HoveredColumnBorder = -1; - const ImRect mouse_hit_rect(table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.Max.x, ImMax(table->OuterRect.Max.y, table->OuterRect.Min.y + table->LastOuterHeight)); - const bool is_hovering_table = ItemHoverable(mouse_hit_rect, 0); - - // [Part 6] Setup final position, offset, skip/clip states and clipping rectangles, detect hovered column - // Process columns in their visible orders as we are comparing the visible order and adjusting host_clip_rect while looping. - int visible_n = 0; - bool offset_x_frozen = (table->FreezeColumnsCount > 0); - float offset_x = ((table->FreezeColumnsCount > 0) ? table->OuterRect.Min.x : work_rect.Min.x) + table->OuterPaddingX - table->CellSpacingX1; - ImRect host_clip_rect = table->InnerClipRect; - //host_clip_rect.Max.x += table->CellPaddingX + table->CellSpacingX2; - table->VisibleMaskByIndex = 0x00; - table->RequestOutputMaskByIndex = 0x00; - for (int order_n = 0; order_n < table->ColumnsCount; order_n++) - { - const int column_n = table->DisplayOrderToIndex[order_n]; - ImGuiTableColumn* column = &table->Columns[column_n]; - - column->NavLayerCurrent = (ImS8)((table->FreezeRowsCount > 0 || column_n < table->FreezeColumnsCount) ? ImGuiNavLayer_Menu : ImGuiNavLayer_Main); - - if (offset_x_frozen && table->FreezeColumnsCount == visible_n) - { - offset_x += work_rect.Min.x - table->OuterRect.Min.x; - offset_x_frozen = false; - } - - // Clear status flags - column->Flags &= ~ImGuiTableColumnFlags_StatusMask_; - - if ((table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n)) == 0) - { - // Hidden column: clear a few fields and we are done with it for the remainder of the function. - // We set a zero-width clip rect but set Min.y/Max.y properly to not interfere with the clipper. - column->MinX = column->MaxX = column->WorkMinX = column->ClipRect.Min.x = column->ClipRect.Max.x = offset_x; - column->WidthGiven = 0.0f; - column->ClipRect.Min.y = work_rect.Min.y; - column->ClipRect.Max.y = FLT_MAX; - column->ClipRect.ClipWithFull(host_clip_rect); - column->IsVisibleX = column->IsVisibleY = column->IsRequestOutput = false; - column->IsSkipItems = true; - column->ItemWidth = 1.0f; - continue; - } - - // Detect hovered column - if (is_hovering_table && g.IO.MousePos.x >= column->ClipRect.Min.x && g.IO.MousePos.x < column->ClipRect.Max.x) - table->HoveredColumnBody = (ImGuiTableColumnIdx)column_n; - - // Lock start position - column->MinX = offset_x; - - // Lock width based on start position and minimum/maximum width for this position - float max_width = TableGetMaxColumnWidth(table, column_n); - column->WidthGiven = ImMin(column->WidthGiven, max_width); - column->WidthGiven = ImMax(column->WidthGiven, ImMin(column->WidthRequest, table->MinColumnWidth)); - column->MaxX = offset_x + column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; - - // Lock other positions - // - ClipRect.Min.x: Because merging draw commands doesn't compare min boundaries, we make ClipRect.Min.x match left bounds to be consistent regardless of merging. - // - ClipRect.Max.x: using WorkMaxX instead of MaxX (aka including padding) makes things more consistent when resizing down, tho slightly detrimental to visibility in very-small column. - // - ClipRect.Max.x: using MaxX makes it easier for header to receive hover highlight with no discontinuity and display sorting arrow. - // - FIXME-TABLE: We want equal width columns to have equal (ClipRect.Max.x - WorkMinX) width, which means ClipRect.max.x cannot stray off host_clip_rect.Max.x else right-most column may appear shorter. - column->WorkMinX = column->MinX + table->CellPaddingX + table->CellSpacingX1; - column->WorkMaxX = column->MaxX - table->CellPaddingX - table->CellSpacingX2; // Expected max - column->ItemWidth = ImFloor(column->WidthGiven * 0.65f); - column->ClipRect.Min.x = column->MinX; - column->ClipRect.Min.y = work_rect.Min.y; - column->ClipRect.Max.x = column->MaxX; //column->WorkMaxX; - column->ClipRect.Max.y = FLT_MAX; - column->ClipRect.ClipWithFull(host_clip_rect); - - // Mark column as Clipped (not in sight) - // Note that scrolling tables (where inner_window != outer_window) handle Y clipped earlier in BeginTable() so IsVisibleY really only applies to non-scrolling tables. - // FIXME-TABLE: Because InnerClipRect.Max.y is conservatively ==outer_window->ClipRect.Max.y, we never can mark columns _Above_ the scroll line as not IsVisibleY. - // Taking advantage of LastOuterHeight would yield good results there... - // FIXME-TABLE: Y clipping is disabled because it effectively means not submitting will reduce contents width which is fed to outer_window->DC.CursorMaxPos.x, - // and this may be used (e.g. typically by outer_window using AlwaysAutoResize or outer_window's horizontal scrollbar, but could be something else). - // Possible solution to preserve last known content width for clipped column. Test 'table_reported_size' fails when enabling Y clipping and window is resized small. - column->IsVisibleX = (column->ClipRect.Max.x > column->ClipRect.Min.x); - column->IsVisibleY = true; // (column->ClipRect.Max.y > column->ClipRect.Min.y); - const bool is_visible = column->IsVisibleX; //&& column->IsVisibleY; - if (is_visible) - table->VisibleMaskByIndex |= ((ImU64)1 << column_n); - - // Mark column as requesting output from user. Note that fixed + non-resizable sets are auto-fitting at all times and therefore always request output. - column->IsRequestOutput = is_visible || column->AutoFitQueue != 0 || column->CannotSkipItemsQueue != 0; - if (column->IsRequestOutput) - table->RequestOutputMaskByIndex |= ((ImU64)1 << column_n); - - // Mark column as SkipItems (ignoring all items/layout) - column->IsSkipItems = !column->IsEnabled || table->HostSkipItems; - if (column->IsSkipItems) - IM_ASSERT(!is_visible); - - // Update status flags - column->Flags |= ImGuiTableColumnFlags_IsEnabled; - if (is_visible) - column->Flags |= ImGuiTableColumnFlags_IsVisible; - if (column->SortOrder != -1) - column->Flags |= ImGuiTableColumnFlags_IsSorted; - if (table->HoveredColumnBody == column_n) - column->Flags |= ImGuiTableColumnFlags_IsHovered; - - // Alignment - // FIXME-TABLE: This align based on the whole column width, not per-cell, and therefore isn't useful in - // many cases (to be able to honor this we might be able to store a log of cells width, per row, for - // visible rows, but nav/programmatic scroll would have visible artifacts.) - //if (column->Flags & ImGuiTableColumnFlags_AlignRight) - // column->WorkMinX = ImMax(column->WorkMinX, column->MaxX - column->ContentWidthRowsUnfrozen); - //else if (column->Flags & ImGuiTableColumnFlags_AlignCenter) - // column->WorkMinX = ImLerp(column->WorkMinX, ImMax(column->StartX, column->MaxX - column->ContentWidthRowsUnfrozen), 0.5f); - - // Reset content width variables - column->ContentMaxXFrozen = column->ContentMaxXUnfrozen = column->WorkMinX; - column->ContentMaxXHeadersUsed = column->ContentMaxXHeadersIdeal = column->WorkMinX; - - // Don't decrement auto-fit counters until container window got a chance to submit its items - if (table->HostSkipItems == false) - { - column->AutoFitQueue >>= 1; - column->CannotSkipItemsQueue >>= 1; - } - - if (visible_n < table->FreezeColumnsCount) - host_clip_rect.Min.x = ImClamp(column->MaxX + TABLE_BORDER_SIZE, host_clip_rect.Min.x, host_clip_rect.Max.x); - - offset_x += column->WidthGiven + table->CellSpacingX1 + table->CellSpacingX2 + table->CellPaddingX * 2.0f; - visible_n++; - } - - // [Part 7] Detect/store when we are hovering the unused space after the right-most column (so e.g. context menus can react on it) - // Clear Resizable flag if none of our column are actually resizable (either via an explicit _NoResize flag, either - // because of using _WidthAuto/_WidthStretch). This will hide the resizing option from the context menu. - const float unused_x1 = ImMax(table->WorkRect.Min.x, table->Columns[table->RightMostEnabledColumn].ClipRect.Max.x); - if (is_hovering_table && table->HoveredColumnBody == -1) - { - if (g.IO.MousePos.x >= unused_x1) - table->HoveredColumnBody = (ImGuiTableColumnIdx)table->ColumnsCount; - } - if (has_resizable == false && (table->Flags & ImGuiTableFlags_Resizable)) - table->Flags &= ~ImGuiTableFlags_Resizable; - - // [Part 8] Lock actual OuterRect/WorkRect right-most position. - // This is done late to handle the case of fixed-columns tables not claiming more widths that they need. - // Because of this we are careful with uses of WorkRect and InnerClipRect before this point. - if (table->RightMostStretchedColumn != -1) - table->Flags &= ~ImGuiTableFlags_NoHostExtendX; - if (table->Flags & ImGuiTableFlags_NoHostExtendX) - { - table->OuterRect.Max.x = table->WorkRect.Max.x = unused_x1; - table->InnerClipRect.Max.x = ImMin(table->InnerClipRect.Max.x, unused_x1); - } - table->InnerWindow->ParentWorkRect = table->WorkRect; - table->BorderX1 = table->InnerClipRect.Min.x;// +((table->Flags & ImGuiTableFlags_BordersOuter) ? 0.0f : -1.0f); - table->BorderX2 = table->InnerClipRect.Max.x;// +((table->Flags & ImGuiTableFlags_BordersOuter) ? 0.0f : +1.0f); - - // [Part 9] Allocate draw channels and setup background cliprect - TableSetupDrawChannels(table); - - // [Part 10] Hit testing on borders - if (table->Flags & ImGuiTableFlags_Resizable) - TableUpdateBorders(table); - table->LastFirstRowHeight = 0.0f; - table->IsLayoutLocked = true; - table->IsUsingHeaders = false; - - // [Part 11] Context menu - if (table->IsContextPopupOpen && table->InstanceCurrent == table->InstanceInteracted) - { - const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); - if (BeginPopupEx(context_menu_id, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings)) - { - TableDrawContextMenu(table); - EndPopup(); - } - else - { - table->IsContextPopupOpen = false; - } - } - - // [Part 13] Sanitize and build sort specs before we have a change to use them for display. - // This path will only be exercised when sort specs are modified before header rows (e.g. init or visibility change) - if (table->IsSortSpecsDirty && (table->Flags & ImGuiTableFlags_Sortable)) - TableSortSpecsBuild(table); - - // Initial state - ImGuiWindow* inner_window = table->InnerWindow; - if (table->Flags & ImGuiTableFlags_NoClip) - table->DrawSplitter.SetCurrentChannel(inner_window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); - else - inner_window->DrawList->PushClipRect(inner_window->ClipRect.Min, inner_window->ClipRect.Max, false); -} - -// Process hit-testing on resizing borders. Actual size change will be applied in EndTable() -// - Set table->HoveredColumnBorder with a short delay/timer to reduce feedback noise -// - Submit ahead of table contents and header, use ImGuiButtonFlags_AllowItemOverlap to prioritize widgets -// overlapping the same area. -void ImGui::TableUpdateBorders(ImGuiTable* table) -{ - ImGuiContext& g = *GImGui; - IM_ASSERT(table->Flags & ImGuiTableFlags_Resizable); - - // At this point OuterRect height may be zero or under actual final height, so we rely on temporal coherency and - // use the final height from last frame. Because this is only affecting _interaction_ with columns, it is not - // really problematic (whereas the actual visual will be displayed in EndTable() and using the current frame height). - // Actual columns highlight/render will be performed in EndTable() and not be affected. - const float hit_half_width = TABLE_RESIZE_SEPARATOR_HALF_THICKNESS; - const float hit_y1 = table->OuterRect.Min.y; - const float hit_y2_body = ImMax(table->OuterRect.Max.y, hit_y1 + table->LastOuterHeight); - const float hit_y2_head = hit_y1 + table->LastFirstRowHeight; - - for (int order_n = 0; order_n < table->ColumnsCount; order_n++) - { - if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) - continue; - - const int column_n = table->DisplayOrderToIndex[order_n]; - ImGuiTableColumn* column = &table->Columns[column_n]; - if (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) - continue; - - // ImGuiTableFlags_NoBordersInBodyUntilResize will be honored in TableDrawBorders() - const float border_y2_hit = (table->Flags & ImGuiTableFlags_NoBordersInBody) ? hit_y2_head : hit_y2_body; - if ((table->Flags & ImGuiTableFlags_NoBordersInBody) && table->IsUsingHeaders == false) - continue; - - if (table->FreezeColumnsCount > 0) - if (column->MaxX < table->Columns[table->DisplayOrderToIndex[table->FreezeColumnsCount - 1]].MaxX) - continue; - - ImGuiID column_id = TableGetColumnResizeID(table, column_n, table->InstanceCurrent); - ImRect hit_rect(column->MaxX - hit_half_width, hit_y1, column->MaxX + hit_half_width, border_y2_hit); - //GetForegroundDrawList()->AddRect(hit_rect.Min, hit_rect.Max, IM_COL32(255, 0, 0, 100)); - KeepAliveID(column_id); - - bool hovered = false, held = false; - bool pressed = ButtonBehavior(hit_rect, column_id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap | ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnDoubleClick); - if (pressed && IsMouseDoubleClicked(0)) - { - TableSetColumnWidthAutoSingle(table, column_n); - ClearActiveID(); - held = hovered = false; - } - if (held) - { - if (table->LastResizedColumn == -1) - table->ResizeLockMinContentsX2 = table->RightMostEnabledColumn != -1 ? table->Columns[table->RightMostEnabledColumn].MaxX : -FLT_MAX; - table->ResizedColumn = (ImGuiTableColumnIdx)column_n; - table->InstanceInteracted = table->InstanceCurrent; - } - if ((hovered && g.HoveredIdTimer > TABLE_RESIZE_SEPARATOR_FEEDBACK_TIMER) || held) - { - table->HoveredColumnBorder = (ImGuiTableColumnIdx)column_n; - SetMouseCursor(ImGuiMouseCursor_ResizeEW); - } - } -} - -void ImGui::EndTable() -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(table != NULL && "Only call EndTable() if BeginTable() returns true!"); - - // This assert would be very useful to catch a common error... unfortunately it would probably trigger in some - // cases, and for consistency user may sometimes output empty tables (and still benefit from e.g. outer border) - //IM_ASSERT(table->IsLayoutLocked && "Table unused: never called TableNextRow(), is that the intent?"); - - // If the user never got to call TableNextRow() or TableNextColumn(), we call layout ourselves to ensure all our - // code paths are consistent (instead of just hoping that TableBegin/TableEnd will work), get borders drawn, etc. - if (!table->IsLayoutLocked) - TableUpdateLayout(table); - - const ImGuiTableFlags flags = table->Flags; - ImGuiWindow* inner_window = table->InnerWindow; - ImGuiWindow* outer_window = table->OuterWindow; - IM_ASSERT(inner_window == g.CurrentWindow); - IM_ASSERT(outer_window == inner_window || outer_window == inner_window->ParentWindow); - - if (table->IsInsideRow) - TableEndRow(table); - - // Context menu in columns body - if (flags & ImGuiTableFlags_ContextMenuInBody) - if (table->HoveredColumnBody != -1 && !IsAnyItemHovered() && IsMouseReleased(ImGuiMouseButton_Right)) - TableOpenContextMenu((int)table->HoveredColumnBody); - - // Finalize table height - inner_window->DC.PrevLineSize = table->HostBackupPrevLineSize; - inner_window->DC.CurrLineSize = table->HostBackupCurrLineSize; - inner_window->DC.CursorMaxPos = table->HostBackupCursorMaxPos; - const float inner_content_max_y = table->RowPosY2; - IM_ASSERT(table->RowPosY2 == inner_window->DC.CursorPos.y); - if (inner_window != outer_window) - inner_window->DC.CursorMaxPos.y = inner_content_max_y; - else if (!(flags & ImGuiTableFlags_NoHostExtendY)) - table->OuterRect.Max.y = table->InnerRect.Max.y = ImMax(table->OuterRect.Max.y, inner_content_max_y); // Patch OuterRect/InnerRect height - table->WorkRect.Max.y = ImMax(table->WorkRect.Max.y, table->OuterRect.Max.y); - table->LastOuterHeight = table->OuterRect.GetHeight(); - - // Setup inner scrolling range - // FIXME: This ideally should be done earlier, in BeginTable() SetNextWindowContentSize call, just like writing to inner_window->DC.CursorMaxPos.y, - // but since the later is likely to be impossible to do we'd rather update both axises together. - if (table->Flags & ImGuiTableFlags_ScrollX) - { - const float outer_padding_for_border = (table->Flags & ImGuiTableFlags_BordersOuterV) ? TABLE_BORDER_SIZE : 0.0f; - float max_pos_x = table->InnerWindow->DC.CursorMaxPos.x; - if (table->RightMostEnabledColumn != -1) - max_pos_x = ImMax(max_pos_x, table->Columns[table->RightMostEnabledColumn].WorkMaxX + table->CellPaddingX + table->OuterPaddingX - outer_padding_for_border); - if (table->ResizedColumn != -1) - max_pos_x = ImMax(max_pos_x, table->ResizeLockMinContentsX2); - table->InnerWindow->DC.CursorMaxPos.x = max_pos_x; - } - - // Pop clipping rect - if (!(flags & ImGuiTableFlags_NoClip)) - inner_window->DrawList->PopClipRect(); - inner_window->ClipRect = inner_window->DrawList->_ClipRectStack.back(); - - // Draw borders - if ((flags & ImGuiTableFlags_Borders) != 0) - TableDrawBorders(table); - -#if 0 - // Strip out dummy channel draw calls - // We have no way to prevent user submitting direct ImDrawList calls into a hidden column (but ImGui:: calls will be clipped out) - // Pros: remove draw calls which will have no effect. since they'll have zero-size cliprect they may be early out anyway. - // Cons: making it harder for users watching metrics/debugger to spot the wasted vertices. - if (table->DummyDrawChannel != (ImGuiTableColumnIdx)-1) - { - ImDrawChannel* dummy_channel = &table->DrawSplitter._Channels[table->DummyDrawChannel]; - dummy_channel->_CmdBuffer.resize(0); - dummy_channel->_IdxBuffer.resize(0); - } -#endif - - // Flatten channels and merge draw calls - table->DrawSplitter.SetCurrentChannel(inner_window->DrawList, 0); - if ((table->Flags & ImGuiTableFlags_NoClip) == 0) - TableMergeDrawChannels(table); - table->DrawSplitter.Merge(inner_window->DrawList); - - // Update ColumnsAutoFitWidth to get us ahead for host using our size to auto-resize without waiting for next BeginTable() - const float width_spacings = (table->OuterPaddingX * 2.0f) + (table->CellSpacingX1 + table->CellSpacingX2) * (table->ColumnsEnabledCount - 1); - table->ColumnsAutoFitWidth = width_spacings + (table->CellPaddingX * 2.0f) * table->ColumnsEnabledCount; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - if (table->EnabledMaskByIndex & ((ImU64)1 << column_n)) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && !(column->Flags & ImGuiTableColumnFlags_NoResize)) - table->ColumnsAutoFitWidth += column->WidthRequest; - else - table->ColumnsAutoFitWidth += TableGetColumnWidthAuto(table, column); - } - - // Update scroll - if ((table->Flags & ImGuiTableFlags_ScrollX) == 0 && inner_window != outer_window) - { - inner_window->Scroll.x = 0.0f; - } - else if (table->LastResizedColumn != -1 && table->ResizedColumn == -1 && inner_window->ScrollbarX && table->InstanceInteracted == table->InstanceCurrent) - { - // When releasing a column being resized, scroll to keep the resulting column in sight - const float neighbor_width_to_keep_visible = table->MinColumnWidth + table->CellPaddingX * 2.0f; - ImGuiTableColumn* column = &table->Columns[table->LastResizedColumn]; - if (column->MaxX < table->InnerClipRect.Min.x) - SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x - neighbor_width_to_keep_visible, 1.0f); - else if (column->MaxX > table->InnerClipRect.Max.x) - SetScrollFromPosX(inner_window, column->MaxX - inner_window->Pos.x + neighbor_width_to_keep_visible, 1.0f); - } - - // Apply resizing/dragging at the end of the frame - if (table->ResizedColumn != -1 && table->InstanceCurrent == table->InstanceInteracted) - { - ImGuiTableColumn* column = &table->Columns[table->ResizedColumn]; - const float new_x2 = (g.IO.MousePos.x - g.ActiveIdClickOffset.x + TABLE_RESIZE_SEPARATOR_HALF_THICKNESS); - const float new_width = ImFloor(new_x2 - column->MinX - table->CellSpacingX1 - table->CellPaddingX * 2.0f); - table->ResizedColumnNextWidth = new_width; - } - - // Pop from id stack - IM_ASSERT_USER_ERROR(inner_window->IDStack.back() == table->ID + table->InstanceCurrent, "Mismatching PushID/PopID!"); - IM_ASSERT_USER_ERROR(outer_window->DC.ItemWidthStack.Size >= table->HostBackupItemWidthStackSize, "Too many PopItemWidth!"); - PopID(); - - // Restore window data that we modified - const ImVec2 backup_outer_max_pos = outer_window->DC.CursorMaxPos; - inner_window->WorkRect = table->HostBackupWorkRect; - inner_window->ParentWorkRect = table->HostBackupParentWorkRect; - inner_window->SkipItems = table->HostSkipItems; - outer_window->DC.CursorPos = table->OuterRect.Min; - outer_window->DC.ItemWidth = table->HostBackupItemWidth; - outer_window->DC.ItemWidthStack.Size = table->HostBackupItemWidthStackSize; - outer_window->DC.ColumnsOffset = table->HostBackupColumnsOffset; - - // Layout in outer window - // (FIXME: To allow auto-fit and allow desirable effect of SameLine() we dissociate 'used' vs 'ideal' size by overriding - // CursorPosPrevLine and CursorMaxPos manually. That should be a more general layout feature, see same problem e.g. #3414) - if (inner_window != outer_window) - { - EndChild(); - } - else - { - ItemSize(table->OuterRect.GetSize()); - ItemAdd(table->OuterRect, 0); - } - - // Override declared contents width/height to enable auto-resize while not needlessly adding a scrollbar - if (table->Flags & ImGuiTableFlags_NoHostExtendX) - { - // FIXME-TABLE: Could we remove this section? - // ColumnsAutoFitWidth may be one frame ahead here since for Fixed+NoResize is calculated from latest contents - IM_ASSERT((table->Flags & ImGuiTableFlags_ScrollX) == 0); - outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth); - } - else if (table->UserOuterSize.x <= 0.0f) - { - const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollX) ? inner_window->ScrollbarSizes.x : 0.0f; - outer_window->DC.IdealMaxPos.x = ImMax(outer_window->DC.IdealMaxPos.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth + decoration_size - table->UserOuterSize.x); - outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, ImMin(table->OuterRect.Max.x, table->OuterRect.Min.x + table->ColumnsAutoFitWidth)); - } - else - { - outer_window->DC.CursorMaxPos.x = ImMax(backup_outer_max_pos.x, table->OuterRect.Max.x); - } - if (table->UserOuterSize.y <= 0.0f) - { - const float decoration_size = (table->Flags & ImGuiTableFlags_ScrollY) ? inner_window->ScrollbarSizes.y : 0.0f; - outer_window->DC.IdealMaxPos.y = ImMax(outer_window->DC.IdealMaxPos.y, inner_content_max_y + decoration_size - table->UserOuterSize.y); - outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, ImMin(table->OuterRect.Max.y, inner_content_max_y)); - } - else - { - // OuterRect.Max.y may already have been pushed downward from the initial value (unless ImGuiTableFlags_NoHostExtendY is set) - outer_window->DC.CursorMaxPos.y = ImMax(backup_outer_max_pos.y, table->OuterRect.Max.y); - } - - // Save settings - if (table->IsSettingsDirty) - TableSaveSettings(table); - table->IsInitializing = false; - - // Clear or restore current table, if any - IM_ASSERT(g.CurrentWindow == outer_window && g.CurrentTable == table); - g.CurrentTableStack.pop_back(); - g.CurrentTable = g.CurrentTableStack.Size ? g.Tables.GetByIndex(g.CurrentTableStack.back().Index) : NULL; - outer_window->DC.CurrentTableIdx = g.CurrentTable ? g.Tables.GetIndex(g.CurrentTable) : -1; -} - -// See "COLUMN SIZING POLICIES" comments at the top of this file -// If (init_width_or_weight <= 0.0f) it is ignored -void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_id) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); - IM_ASSERT(table->IsLayoutLocked == false && "Need to call call TableSetupColumn() before first row!"); - IM_ASSERT((flags & ImGuiTableColumnFlags_StatusMask_) == 0 && "Illegal to pass StatusMask values to TableSetupColumn()"); - if (table->DeclColumnsCount >= table->ColumnsCount) - { - IM_ASSERT_USER_ERROR(table->DeclColumnsCount < table->ColumnsCount, "Called TableSetupColumn() too many times!"); - return; - } - - ImGuiTableColumn* column = &table->Columns[table->DeclColumnsCount]; - table->DeclColumnsCount++; - - // Assert when passing a width or weight if policy is entirely left to default, to avoid storing width into weight and vice-versa. - // Give a grace to users of ImGuiTableFlags_ScrollX. - if (table->IsDefaultSizingPolicy && (flags & ImGuiTableColumnFlags_WidthMask_) == 0 && (flags & ImGuiTableFlags_ScrollX) == 0) - IM_ASSERT(init_width_or_weight <= 0.0f && "Can only specify width/weight if sizing policy is set explicitly in either Table or Column."); - - // When passing a width automatically enforce WidthFixed policy - // (whereas TableSetupColumnFlags would default to WidthAuto if table is not Resizable) - if ((flags & ImGuiTableColumnFlags_WidthMask_) == 0 && init_width_or_weight > 0.0f) - if ((table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedFit || (table->Flags & ImGuiTableFlags_SizingMask_) == ImGuiTableFlags_SizingFixedSame) - flags |= ImGuiTableColumnFlags_WidthFixed; - - TableSetupColumnFlags(table, column, flags); - column->UserID = user_id; - flags = column->Flags; - - // Initialize defaults - column->InitStretchWeightOrWidth = init_width_or_weight; - if (table->IsInitializing) - { - // Init width or weight - if (column->WidthRequest < 0.0f && column->StretchWeight < 0.0f) - { - if ((flags & ImGuiTableColumnFlags_WidthFixed) && init_width_or_weight > 0.0f) - column->WidthRequest = init_width_or_weight; - if (flags & ImGuiTableColumnFlags_WidthStretch) - column->StretchWeight = (init_width_or_weight > 0.0f) ? init_width_or_weight : -1.0f; - - // Disable auto-fit if an explicit width/weight has been specified - if (init_width_or_weight > 0.0f) - column->AutoFitQueue = 0x00; - } - - // Init default visibility/sort state - if ((flags & ImGuiTableColumnFlags_DefaultHide) && (table->SettingsLoadedFlags & ImGuiTableFlags_Hideable) == 0) - column->IsEnabled = column->IsEnabledNextFrame = false; - if (flags & ImGuiTableColumnFlags_DefaultSort && (table->SettingsLoadedFlags & ImGuiTableFlags_Sortable) == 0) - { - column->SortOrder = 0; // Multiple columns using _DefaultSort will be reassigned unique SortOrder values when building the sort specs. - column->SortDirection = (column->Flags & ImGuiTableColumnFlags_PreferSortDescending) ? (ImS8)ImGuiSortDirection_Descending : (ImU8)(ImGuiSortDirection_Ascending); - } - } - - // Store name (append with zero-terminator in contiguous buffer) - column->NameOffset = -1; - if (label != NULL && label[0] != 0) - { - column->NameOffset = (ImS16)table->ColumnsNames.size(); - table->ColumnsNames.append(label, label + strlen(label) + 1); - } -} - -// [Public] -void ImGui::TableSetupScrollFreeze(int columns, int rows) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(table != NULL && "Need to call TableSetupColumn() after BeginTable()!"); - IM_ASSERT(table->IsLayoutLocked == false && "Need to call TableSetupColumn() before first row!"); - IM_ASSERT(columns >= 0 && columns < IMGUI_TABLE_MAX_COLUMNS); - IM_ASSERT(rows >= 0 && rows < 128); // Arbitrary limit - - table->FreezeColumnsRequest = (table->Flags & ImGuiTableFlags_ScrollX) ? (ImGuiTableColumnIdx)columns : 0; - table->FreezeColumnsCount = (table->InnerWindow->Scroll.x != 0.0f) ? table->FreezeColumnsRequest : 0; - table->FreezeRowsRequest = (table->Flags & ImGuiTableFlags_ScrollY) ? (ImGuiTableColumnIdx)rows : 0; - table->FreezeRowsCount = (table->InnerWindow->Scroll.y != 0.0f) ? table->FreezeRowsRequest : 0; - table->IsUnfrozenRows = (table->FreezeRowsCount == 0); // Make sure this is set before TableUpdateLayout() so ImGuiListClipper can benefit from it.b -} - -int ImGui::TableGetColumnCount() -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - return table ? table->ColumnsCount : 0; -} - -const char* ImGui::TableGetColumnName(int column_n) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - if (!table) - return NULL; - if (column_n < 0) - column_n = table->CurrentColumn; - return TableGetColumnName(table, column_n); -} - -const char* ImGui::TableGetColumnName(const ImGuiTable* table, int column_n) -{ - if (table->IsLayoutLocked == false && column_n >= table->DeclColumnsCount) - return ""; // NameOffset is invalid at this point - const ImGuiTableColumn* column = &table->Columns[column_n]; - if (column->NameOffset == -1) - return ""; - return &table->ColumnsNames.Buf[column->NameOffset]; -} - -// For the getter you can use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsEnabled) -void ImGui::TableSetColumnEnabled(int column_n, bool enabled) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(table != NULL); - if (!table) - return; - if (column_n < 0) - column_n = table->CurrentColumn; - IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); - ImGuiTableColumn* column = &table->Columns[column_n]; - column->IsEnabledNextFrame = enabled; -} - -// We allow querying for an extra column in order to poll the IsHovered state of the right-most section -ImGuiTableColumnFlags ImGui::TableGetColumnFlags(int column_n) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - if (!table) - return ImGuiTableColumnFlags_None; - if (column_n < 0) - column_n = table->CurrentColumn; - if (column_n == table->ColumnsCount) - return (table->HoveredColumnBody == column_n) ? ImGuiTableColumnFlags_IsHovered : ImGuiTableColumnFlags_None; - return table->Columns[column_n].Flags; -} - -// Return the cell rectangle based on currently known height. -// - Important: we generally don't know our row height until the end of the row, so Max.y will be incorrect in many situations. -// The only case where this is correct is if we provided a min_row_height to TableNextRow() and don't go below it. -// - Important: if ImGuiTableFlags_PadOuterX is set but ImGuiTableFlags_PadInnerX is not set, the outer-most left and right -// columns report a small offset so their CellBgRect can extend up to the outer border. -ImRect ImGui::TableGetCellBgRect(const ImGuiTable* table, int column_n) -{ - const ImGuiTableColumn* column = &table->Columns[column_n]; - float x1 = column->MinX; - float x2 = column->MaxX; - if (column->PrevEnabledColumn == -1) - x1 -= table->CellSpacingX1; - if (column->NextEnabledColumn == -1) - x2 += table->CellSpacingX2; - return ImRect(x1, table->RowPosY1, x2, table->RowPosY2); -} - -// Return the resizing ID for the right-side of the given column. -ImGuiID ImGui::TableGetColumnResizeID(const ImGuiTable* table, int column_n, int instance_no) -{ - IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); - ImGuiID id = table->ID + 1 + (instance_no * table->ColumnsCount) + column_n; - return id; -} - -// Return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. -int ImGui::TableGetHoveredColumn() -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - if (!table) - return -1; - return (int)table->HoveredColumnBody; -} - -void ImGui::TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(target != ImGuiTableBgTarget_None); - - if (color == IM_COL32_DISABLE) - color = 0; - - // We cannot draw neither the cell or row background immediately as we don't know the row height at this point in time. - switch (target) - { - case ImGuiTableBgTarget_CellBg: - { - if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard - return; - if (column_n == -1) - column_n = table->CurrentColumn; - if ((table->VisibleMaskByIndex & ((ImU64)1 << column_n)) == 0) - return; - if (table->RowCellDataCurrent < 0 || table->RowCellData[table->RowCellDataCurrent].Column != column_n) - table->RowCellDataCurrent++; - ImGuiTableCellData* cell_data = &table->RowCellData[table->RowCellDataCurrent]; - cell_data->BgColor = color; - cell_data->Column = (ImGuiTableColumnIdx)column_n; - break; - } - case ImGuiTableBgTarget_RowBg0: - case ImGuiTableBgTarget_RowBg1: - { - if (table->RowPosY1 > table->InnerClipRect.Max.y) // Discard - return; - IM_ASSERT(column_n == -1); - int bg_idx = (target == ImGuiTableBgTarget_RowBg1) ? 1 : 0; - table->RowBgColor[bg_idx] = color; - break; - } - default: - IM_ASSERT(0); - } -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Row changes -//------------------------------------------------------------------------- -// - TableGetRowIndex() -// - TableNextRow() -// - TableBeginRow() [Internal] -// - TableEndRow() [Internal] -//------------------------------------------------------------------------- - -// [Public] Note: for row coloring we use ->RowBgColorCounter which is the same value without counting header rows -int ImGui::TableGetRowIndex() -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - if (!table) - return 0; - return table->CurrentRow; -} - -// [Public] Starts into the first cell of a new row -void ImGui::TableNextRow(ImGuiTableRowFlags row_flags, float row_min_height) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - - if (!table->IsLayoutLocked) - TableUpdateLayout(table); - if (table->IsInsideRow) - TableEndRow(table); - - table->LastRowFlags = table->RowFlags; - table->RowFlags = row_flags; - table->RowMinHeight = row_min_height; - TableBeginRow(table); - - // We honor min_row_height requested by user, but cannot guarantee per-row maximum height, - // because that would essentially require a unique clipping rectangle per-cell. - table->RowPosY2 += table->CellPaddingY * 2.0f; - table->RowPosY2 = ImMax(table->RowPosY2, table->RowPosY1 + row_min_height); - - // Disable output until user calls TableNextColumn() - table->InnerWindow->SkipItems = true; -} - -// [Internal] Called by TableNextRow() -void ImGui::TableBeginRow(ImGuiTable* table) -{ - ImGuiWindow* window = table->InnerWindow; - IM_ASSERT(!table->IsInsideRow); - - // New row - table->CurrentRow++; - table->CurrentColumn = -1; - table->RowBgColor[0] = table->RowBgColor[1] = IM_COL32_DISABLE; - table->RowCellDataCurrent = -1; - table->IsInsideRow = true; - - // Begin frozen rows - float next_y1 = table->RowPosY2; - if (table->CurrentRow == 0 && table->FreezeRowsCount > 0) - next_y1 = window->DC.CursorPos.y = table->OuterRect.Min.y; - - table->RowPosY1 = table->RowPosY2 = next_y1; - table->RowTextBaseline = 0.0f; - table->RowIndentOffsetX = window->DC.Indent.x - table->HostIndentX; // Lock indent - window->DC.PrevLineTextBaseOffset = 0.0f; - window->DC.CursorMaxPos.y = next_y1; - - // Making the header BG color non-transparent will allow us to overlay it multiple times when handling smooth dragging. - if (table->RowFlags & ImGuiTableRowFlags_Headers) - { - TableSetBgColor(ImGuiTableBgTarget_RowBg0, GetColorU32(ImGuiCol_TableHeaderBg)); - if (table->CurrentRow == 0) - table->IsUsingHeaders = true; - } -} - -// [Internal] Called by TableNextRow() -void ImGui::TableEndRow(ImGuiTable* table) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT(window == table->InnerWindow); - IM_ASSERT(table->IsInsideRow); - - if (table->CurrentColumn != -1) - TableEndCell(table); - - // Logging - if (g.LogEnabled) - LogRenderedText(NULL, "|"); - - // Position cursor at the bottom of our row so it can be used for e.g. clipping calculation. However it is - // likely that the next call to TableBeginCell() will reposition the cursor to take account of vertical padding. - window->DC.CursorPos.y = table->RowPosY2; - - // Row background fill - const float bg_y1 = table->RowPosY1; - const float bg_y2 = table->RowPosY2; - const bool unfreeze_rows_actual = (table->CurrentRow + 1 == table->FreezeRowsCount); - const bool unfreeze_rows_request = (table->CurrentRow + 1 == table->FreezeRowsRequest); - if (table->CurrentRow == 0) - table->LastFirstRowHeight = bg_y2 - bg_y1; - - const bool is_visible = (bg_y2 >= table->InnerClipRect.Min.y && bg_y1 <= table->InnerClipRect.Max.y); - if (is_visible) - { - // Decide of background color for the row - ImU32 bg_col0 = 0; - ImU32 bg_col1 = 0; - if (table->RowBgColor[0] != IM_COL32_DISABLE) - bg_col0 = table->RowBgColor[0]; - else if (table->Flags & ImGuiTableFlags_RowBg) - bg_col0 = GetColorU32((table->RowBgColorCounter & 1) ? ImGuiCol_TableRowBgAlt : ImGuiCol_TableRowBg); - if (table->RowBgColor[1] != IM_COL32_DISABLE) - bg_col1 = table->RowBgColor[1]; - - // Decide of top border color - ImU32 border_col = 0; - const float border_size = TABLE_BORDER_SIZE; - if (table->CurrentRow > 0 || table->InnerWindow == table->OuterWindow) - if (table->Flags & ImGuiTableFlags_BordersInnerH) - border_col = (table->LastRowFlags & ImGuiTableRowFlags_Headers) ? table->BorderColorStrong : table->BorderColorLight; - - const bool draw_cell_bg_color = table->RowCellDataCurrent >= 0; - const bool draw_strong_bottom_border = unfreeze_rows_actual; - if ((bg_col0 | bg_col1 | border_col) != 0 || draw_strong_bottom_border || draw_cell_bg_color) - { - // In theory we could call SetWindowClipRectBeforeSetChannel() but since we know TableEndRow() is - // always followed by a change of clipping rectangle we perform the smallest overwrite possible here. - if ((table->Flags & ImGuiTableFlags_NoClip) == 0) - window->DrawList->_CmdHeader.ClipRect = table->Bg0ClipRectForDrawCmd.ToVec4(); - table->DrawSplitter.SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_BG0); - } - - // Draw row background - // We soft/cpu clip this so all backgrounds and borders can share the same clipping rectangle - if (bg_col0 || bg_col1) - { - ImRect row_rect(table->WorkRect.Min.x, bg_y1, table->WorkRect.Max.x, bg_y2); - row_rect.ClipWith(table->BgClipRect); - if (bg_col0 != 0 && row_rect.Min.y < row_rect.Max.y) - window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col0); - if (bg_col1 != 0 && row_rect.Min.y < row_rect.Max.y) - window->DrawList->AddRectFilled(row_rect.Min, row_rect.Max, bg_col1); - } - - // Draw cell background color - if (draw_cell_bg_color) - { - ImGuiTableCellData* cell_data_end = &table->RowCellData[table->RowCellDataCurrent]; - for (ImGuiTableCellData* cell_data = &table->RowCellData[0]; cell_data <= cell_data_end; cell_data++) - { - const ImGuiTableColumn* column = &table->Columns[cell_data->Column]; - ImRect cell_bg_rect = TableGetCellBgRect(table, cell_data->Column); - cell_bg_rect.ClipWith(table->BgClipRect); - cell_bg_rect.Min.x = ImMax(cell_bg_rect.Min.x, column->ClipRect.Min.x); // So that first column after frozen one gets clipped - cell_bg_rect.Max.x = ImMin(cell_bg_rect.Max.x, column->MaxX); - window->DrawList->AddRectFilled(cell_bg_rect.Min, cell_bg_rect.Max, cell_data->BgColor); - } - } - - // Draw top border - if (border_col && bg_y1 >= table->BgClipRect.Min.y && bg_y1 < table->BgClipRect.Max.y) - window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y1), ImVec2(table->BorderX2, bg_y1), border_col, border_size); - - // Draw bottom border at the row unfreezing mark (always strong) - if (draw_strong_bottom_border && bg_y2 >= table->BgClipRect.Min.y && bg_y2 < table->BgClipRect.Max.y) - window->DrawList->AddLine(ImVec2(table->BorderX1, bg_y2), ImVec2(table->BorderX2, bg_y2), table->BorderColorStrong, border_size); - } - - // End frozen rows (when we are past the last frozen row line, teleport cursor and alter clipping rectangle) - // We need to do that in TableEndRow() instead of TableBeginRow() so the list clipper can mark end of row and - // get the new cursor position. - if (unfreeze_rows_request) - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - column->NavLayerCurrent = (ImS8)((column_n < table->FreezeColumnsCount) ? ImGuiNavLayer_Menu : ImGuiNavLayer_Main); - } - if (unfreeze_rows_actual) - { - IM_ASSERT(table->IsUnfrozenRows == false); - table->IsUnfrozenRows = true; - - // BgClipRect starts as table->InnerClipRect, reduce it now and make BgClipRectForDrawCmd == BgClipRect - float y0 = ImMax(table->RowPosY2 + 1, window->InnerClipRect.Min.y); - table->BgClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y = ImMin(y0, window->InnerClipRect.Max.y); - table->BgClipRect.Max.y = table->Bg2ClipRectForDrawCmd.Max.y = window->InnerClipRect.Max.y; - table->Bg2DrawChannelCurrent = table->Bg2DrawChannelUnfrozen; - IM_ASSERT(table->Bg2ClipRectForDrawCmd.Min.y <= table->Bg2ClipRectForDrawCmd.Max.y); - - float row_height = table->RowPosY2 - table->RowPosY1; - table->RowPosY2 = window->DC.CursorPos.y = table->WorkRect.Min.y + table->RowPosY2 - table->OuterRect.Min.y; - table->RowPosY1 = table->RowPosY2 - row_height; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - column->DrawChannelCurrent = column->DrawChannelUnfrozen; - column->ClipRect.Min.y = table->Bg2ClipRectForDrawCmd.Min.y; - } - - // Update cliprect ahead of TableBeginCell() so clipper can access to new ClipRect->Min.y - SetWindowClipRectBeforeSetChannel(window, table->Columns[0].ClipRect); - table->DrawSplitter.SetCurrentChannel(window->DrawList, table->Columns[0].DrawChannelCurrent); - } - - if (!(table->RowFlags & ImGuiTableRowFlags_Headers)) - table->RowBgColorCounter++; - table->IsInsideRow = false; -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Columns changes -//------------------------------------------------------------------------- -// - TableGetColumnIndex() -// - TableSetColumnIndex() -// - TableNextColumn() -// - TableBeginCell() [Internal] -// - TableEndCell() [Internal] -//------------------------------------------------------------------------- - -int ImGui::TableGetColumnIndex() -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - if (!table) - return 0; - return table->CurrentColumn; -} - -// [Public] Append into a specific column -bool ImGui::TableSetColumnIndex(int column_n) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - if (!table) - return false; - - if (table->CurrentColumn != column_n) - { - if (table->CurrentColumn != -1) - TableEndCell(table); - IM_ASSERT(column_n >= 0 && table->ColumnsCount); - TableBeginCell(table, column_n); - } - - // Return whether the column is visible. User may choose to skip submitting items based on this return value, - // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. - return (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n)) != 0; -} - -// [Public] Append into the next column, wrap and create a new row when already on last column -bool ImGui::TableNextColumn() -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - if (!table) - return false; - - if (table->IsInsideRow && table->CurrentColumn + 1 < table->ColumnsCount) - { - if (table->CurrentColumn != -1) - TableEndCell(table); - TableBeginCell(table, table->CurrentColumn + 1); - } - else - { - TableNextRow(); - TableBeginCell(table, 0); - } - - // Return whether the column is visible. User may choose to skip submitting items based on this return value, - // however they shouldn't skip submitting for columns that may have the tallest contribution to row height. - int column_n = table->CurrentColumn; - return (table->RequestOutputMaskByIndex & ((ImU64)1 << column_n)) != 0; -} - - -// [Internal] Called by TableSetColumnIndex()/TableNextColumn() -// This is called very frequently, so we need to be mindful of unnecessary overhead. -// FIXME-TABLE FIXME-OPT: Could probably shortcut some things for non-active or clipped columns. -void ImGui::TableBeginCell(ImGuiTable* table, int column_n) -{ - ImGuiTableColumn* column = &table->Columns[column_n]; - ImGuiWindow* window = table->InnerWindow; - table->CurrentColumn = column_n; - - // Start position is roughly ~~ CellRect.Min + CellPadding + Indent - float start_x = column->WorkMinX; - if (column->Flags & ImGuiTableColumnFlags_IndentEnable) - start_x += table->RowIndentOffsetX; // ~~ += window.DC.Indent.x - table->HostIndentX, except we locked it for the row. - - window->DC.CursorPos.x = start_x; - window->DC.CursorPos.y = table->RowPosY1 + table->CellPaddingY; - window->DC.CursorMaxPos.x = window->DC.CursorPos.x; - window->DC.ColumnsOffset.x = start_x - window->Pos.x - window->DC.Indent.x; // FIXME-WORKRECT - window->DC.CurrLineTextBaseOffset = table->RowTextBaseline; - window->DC.NavLayerCurrent = (ImGuiNavLayer)column->NavLayerCurrent; - - window->WorkRect.Min.y = window->DC.CursorPos.y; - window->WorkRect.Min.x = column->WorkMinX; - window->WorkRect.Max.x = column->WorkMaxX; - window->DC.ItemWidth = column->ItemWidth; - - // To allow ImGuiListClipper to function we propagate our row height - if (!column->IsEnabled) - window->DC.CursorPos.y = ImMax(window->DC.CursorPos.y, table->RowPosY2); - - window->SkipItems = column->IsSkipItems; - if (column->IsSkipItems) - { - window->DC.LastItemId = 0; - window->DC.LastItemStatusFlags = 0; - } - - if (table->Flags & ImGuiTableFlags_NoClip) - { - // FIXME: if we end up drawing all borders/bg in EndTable, could remove this and just assert that channel hasn't changed. - table->DrawSplitter.SetCurrentChannel(window->DrawList, TABLE_DRAW_CHANNEL_NOCLIP); - //IM_ASSERT(table->DrawSplitter._Current == TABLE_DRAW_CHANNEL_NOCLIP); - } - else - { - // FIXME-TABLE: Could avoid this if draw channel is dummy channel? - SetWindowClipRectBeforeSetChannel(window, column->ClipRect); - table->DrawSplitter.SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); - } - - // Logging - ImGuiContext& g = *GImGui; - if (g.LogEnabled && !column->IsSkipItems) - { - LogRenderedText(&window->DC.CursorPos, "|"); - g.LogLinePosY = FLT_MAX; - } -} - -// [Internal] Called by TableNextRow()/TableSetColumnIndex()/TableNextColumn() -void ImGui::TableEndCell(ImGuiTable* table) -{ - ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; - ImGuiWindow* window = table->InnerWindow; - - // Report maximum position so we can infer content size per column. - float* p_max_pos_x; - if (table->RowFlags & ImGuiTableRowFlags_Headers) - p_max_pos_x = &column->ContentMaxXHeadersUsed; // Useful in case user submit contents in header row that is not a TableHeader() call - else - p_max_pos_x = table->IsUnfrozenRows ? &column->ContentMaxXUnfrozen : &column->ContentMaxXFrozen; - *p_max_pos_x = ImMax(*p_max_pos_x, window->DC.CursorMaxPos.x); - table->RowPosY2 = ImMax(table->RowPosY2, window->DC.CursorMaxPos.y + table->CellPaddingY); - column->ItemWidth = window->DC.ItemWidth; - - // Propagate text baseline for the entire row - // FIXME-TABLE: Here we propagate text baseline from the last line of the cell.. instead of the first one. - table->RowTextBaseline = ImMax(table->RowTextBaseline, window->DC.PrevLineTextBaseOffset); -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Columns width management -//------------------------------------------------------------------------- -// - TableGetMaxColumnWidth() [Internal] -// - TableGetColumnWidthAuto() [Internal] -// - TableSetColumnWidth() -// - TableSetColumnWidthAutoSingle() [Internal] -// - TableSetColumnWidthAutoAll() [Internal] -// - TableUpdateColumnsWeightFromWidth() [Internal] -//------------------------------------------------------------------------- - -// Maximum column content width given current layout. Use column->MinX so this value on a per-column basis. -float ImGui::TableGetMaxColumnWidth(const ImGuiTable* table, int column_n) -{ - const ImGuiTableColumn* column = &table->Columns[column_n]; - float max_width = FLT_MAX; - const float min_column_distance = table->MinColumnWidth + table->CellPaddingX * 2.0f + table->CellSpacingX1 + table->CellSpacingX2; - if (table->Flags & ImGuiTableFlags_ScrollX) - { - // Frozen columns can't reach beyond visible width else scrolling will naturally break. - if (column->DisplayOrder < table->FreezeColumnsRequest) - { - max_width = (table->InnerClipRect.Max.x - (table->FreezeColumnsRequest - column->DisplayOrder) * min_column_distance) - column->MinX; - max_width = max_width - table->OuterPaddingX - table->CellPaddingX - table->CellSpacingX2; - } - } - else if ((table->Flags & ImGuiTableFlags_NoKeepColumnsVisible) == 0) - { - // If horizontal scrolling if disabled, we apply a final lossless shrinking of columns in order to make - // sure they are all visible. Because of this we also know that all of the columns will always fit in - // table->WorkRect and therefore in table->InnerRect (because ScrollX is off) - // FIXME-TABLE: This is solved incorrectly but also quite a difficult problem to fix as we also want ClipRect width to match. - // See "table_width_distrib" and "table_width_keep_visible" tests - max_width = table->WorkRect.Max.x - (table->ColumnsEnabledCount - column->IndexWithinEnabledSet - 1) * min_column_distance - column->MinX; - //max_width -= table->CellSpacingX1; - max_width -= table->CellSpacingX2; - max_width -= table->CellPaddingX * 2.0f; - max_width -= table->OuterPaddingX; - } - return max_width; -} - -// Note this is meant to be stored in column->WidthAuto, please generally use the WidthAuto field -float ImGui::TableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column) -{ - const float content_width_body = ImMax(column->ContentMaxXFrozen, column->ContentMaxXUnfrozen) - column->WorkMinX; - const float content_width_headers = column->ContentMaxXHeadersIdeal - column->WorkMinX; - float width_auto = content_width_body; - if (!(column->Flags & ImGuiTableColumnFlags_NoHeaderWidth)) - width_auto = ImMax(width_auto, content_width_headers); - - // Non-resizable fixed columns preserve their requested width - if ((column->Flags & ImGuiTableColumnFlags_WidthFixed) && column->InitStretchWeightOrWidth > 0.0f) - if (!(table->Flags & ImGuiTableFlags_Resizable) || (column->Flags & ImGuiTableColumnFlags_NoResize)) - width_auto = column->InitStretchWeightOrWidth; - - return ImMax(width_auto, table->MinColumnWidth); -} - -// 'width' = inner column width, without padding -void ImGui::TableSetColumnWidth(int column_n, float width) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(table != NULL && table->IsLayoutLocked == false); - IM_ASSERT(column_n >= 0 && column_n < table->ColumnsCount); - ImGuiTableColumn* column_0 = &table->Columns[column_n]; - float column_0_width = width; - - // Apply constraints early - // Compare both requested and actual given width to avoid overwriting requested width when column is stuck (minimum size, bounded) - IM_ASSERT(table->MinColumnWidth > 0.0f); - const float min_width = table->MinColumnWidth; - const float max_width = ImMax(min_width, TableGetMaxColumnWidth(table, column_n)); - column_0_width = ImClamp(column_0_width, min_width, max_width); - if (column_0->WidthGiven == column_0_width || column_0->WidthRequest == column_0_width) - return; - - //IMGUI_DEBUG_LOG("TableSetColumnWidth(%d, %.1f->%.1f)\n", column_0_idx, column_0->WidthGiven, column_0_width); - ImGuiTableColumn* column_1 = (column_0->NextEnabledColumn != -1) ? &table->Columns[column_0->NextEnabledColumn] : NULL; - - // In this surprisingly not simple because of how we support mixing Fixed and multiple Stretch columns. - // - All fixed: easy. - // - All stretch: easy. - // - One or more fixed + one stretch: easy. - // - One or more fixed + more than one stretch: tricky. - // Qt when manual resize is enabled only support a single _trailing_ stretch column. - - // When forwarding resize from Wn| to Fn+1| we need to be considerate of the _NoResize flag on Fn+1. - // FIXME-TABLE: Find a way to rewrite all of this so interactions feel more consistent for the user. - // Scenarios: - // - F1 F2 F3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. Subsequent columns will be offset. - // - F1 F2 F3 resize from F3| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered. - // - F1 F2 W3 resize from F1| or F2| --> ok: alter ->WidthRequested of Fixed column. If active, ScrollX extent can be altered, but it doesn't make much sense as the Stretch column will always be minimal size. - // - F1 F2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) - // - W1 W2 W3 resize from W1| or W2| --> ok - // - W1 W2 W3 resize from W3| --> ok: no-op (disabled by Resize Rule 1) - // - W1 F2 F3 resize from F3| --> ok: no-op (disabled by Resize Rule 1) - // - W1 F2 resize from F2| --> ok: no-op (disabled by Resize Rule 1) - // - W1 W2 F3 resize from W1| or W2| --> ok - // - W1 F2 W3 resize from W1| or F2| --> ok - // - F1 W2 F3 resize from W2| --> ok - // - F1 W3 F2 resize from W3| --> ok - // - W1 F2 F3 resize from W1| --> ok: equivalent to resizing |F2. F3 will not move. - // - W1 F2 F3 resize from F2| --> ok - // All resizes from a Wx columns are locking other columns. - - // Possible improvements: - // - W1 W2 W3 resize W1| --> to not be stuck, both W2 and W3 would stretch down. Seems possible to fix. Would be most beneficial to simplify resize of all-weighted columns. - // - W3 F1 F2 resize W3| --> to not be stuck past F1|, both F1 and F2 would need to stretch down, which would be lossy or ambiguous. Seems hard to fix. - - // [Resize Rule 1] Can't resize from right of right-most visible column if there is any Stretch column. Implemented in TableUpdateLayout(). - - // If we have all Fixed columns OR resizing a Fixed column that doesn't come after a Stretch one, we can do an offsetting resize. - // This is the preferred resize path - if (column_0->Flags & ImGuiTableColumnFlags_WidthFixed) - if (!column_1 || table->LeftMostStretchedColumn == -1 || table->Columns[table->LeftMostStretchedColumn].DisplayOrder >= column_0->DisplayOrder) - { - column_0->WidthRequest = column_0_width; - table->IsSettingsDirty = true; - return; - } - - // We can also use previous column if there's no next one (this is used when doing an auto-fit on the right-most stretch column) - if (column_1 == NULL) - column_1 = (column_0->PrevEnabledColumn != -1) ? &table->Columns[column_0->PrevEnabledColumn] : NULL; - if (column_1 == NULL) - return; - - // Resizing from right-side of a Stretch column before a Fixed column forward sizing to left-side of fixed column. - // (old_a + old_b == new_a + new_b) --> (new_a == old_a + old_b - new_b) - float column_1_width = ImMax(column_1->WidthRequest - (column_0_width - column_0->WidthRequest), min_width); - column_0_width = column_0->WidthRequest + column_1->WidthRequest - column_1_width; - IM_ASSERT(column_0_width > 0.0f && column_1_width > 0.0f); - column_0->WidthRequest = column_0_width; - column_1->WidthRequest = column_1_width; - if ((column_0->Flags | column_1->Flags) & ImGuiTableColumnFlags_WidthStretch) - TableUpdateColumnsWeightFromWidth(table); - table->IsSettingsDirty = true; -} - -// Disable clipping then auto-fit, will take 2 frames -// (we don't take a shortcut for unclipped columns to reduce inconsistencies when e.g. resizing multiple columns) -void ImGui::TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n) -{ - // Single auto width uses auto-fit - ImGuiTableColumn* column = &table->Columns[column_n]; - if (!column->IsEnabled) - return; - column->CannotSkipItemsQueue = (1 << 0); - table->AutoFitSingleColumn = (ImGuiTableColumnIdx)column_n; -} - -void ImGui::TableSetColumnWidthAutoAll(ImGuiTable* table) -{ - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - if (!column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) // Cannot reset weight of hidden stretch column - continue; - column->CannotSkipItemsQueue = (1 << 0); - column->AutoFitQueue = (1 << 1); - } -} - -void ImGui::TableUpdateColumnsWeightFromWidth(ImGuiTable* table) -{ - IM_ASSERT(table->LeftMostStretchedColumn != -1 && table->RightMostStretchedColumn != -1); - - // Measure existing quantity - float visible_weight = 0.0f; - float visible_width = 0.0f; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) - continue; - IM_ASSERT(column->StretchWeight > 0.0f); - visible_weight += column->StretchWeight; - visible_width += column->WidthRequest; - } - IM_ASSERT(visible_weight > 0.0f && visible_width > 0.0f); - - // Apply new weights - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - if (!column->IsEnabled || !(column->Flags & ImGuiTableColumnFlags_WidthStretch)) - continue; - column->StretchWeight = (column->WidthRequest / visible_width) * visible_weight; - IM_ASSERT(column->StretchWeight > 0.0f); - } -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Drawing -//------------------------------------------------------------------------- -// - TablePushBackgroundChannel() [Internal] -// - TablePopBackgroundChannel() [Internal] -// - TableSetupDrawChannels() [Internal] -// - TableMergeDrawChannels() [Internal] -// - TableDrawBorders() [Internal] -//------------------------------------------------------------------------- - -// Bg2 is used by Selectable (and possibly other widgets) to render to the background. -// Unlike our Bg0/1 channel which we uses for RowBg/CellBg/Borders and where we guarantee all shapes to be CPU-clipped, the Bg2 channel being widgets-facing will rely on regular ClipRect. -void ImGui::TablePushBackgroundChannel() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiTable* table = g.CurrentTable; - - // Optimization: avoid SetCurrentChannel() + PushClipRect() - table->HostBackupInnerClipRect = window->ClipRect; - SetWindowClipRectBeforeSetChannel(window, table->Bg2ClipRectForDrawCmd); - table->DrawSplitter.SetCurrentChannel(window->DrawList, table->Bg2DrawChannelCurrent); -} - -void ImGui::TablePopBackgroundChannel() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiTable* table = g.CurrentTable; - ImGuiTableColumn* column = &table->Columns[table->CurrentColumn]; - - // Optimization: avoid PopClipRect() + SetCurrentChannel() - SetWindowClipRectBeforeSetChannel(window, table->HostBackupInnerClipRect); - table->DrawSplitter.SetCurrentChannel(window->DrawList, column->DrawChannelCurrent); -} - -// Allocate draw channels. Called by TableUpdateLayout() -// - We allocate them following storage order instead of display order so reordering columns won't needlessly -// increase overall dormant memory cost. -// - We isolate headers draw commands in their own channels instead of just altering clip rects. -// This is in order to facilitate merging of draw commands. -// - After crossing FreezeRowsCount, all columns see their current draw channel changed to a second set of channels. -// - We only use the dummy draw channel so we can push a null clipping rectangle into it without affecting other -// channels, while simplifying per-row/per-cell overhead. It will be empty and discarded when merged. -// - We allocate 1 or 2 background draw channels. This is because we know TablePushBackgroundChannel() is only used for -// horizontal spanning. If we allowed vertical spanning we'd need one background draw channel per merge group (1-4). -// Draw channel allocation (before merging): -// - NoClip --> 2+D+1 channels: bg0/1 + bg2 + foreground (same clip rect == always 1 draw call) -// - Clip --> 2+D+N channels -// - FreezeRows --> 2+D+N*2 (unless scrolling value is zero) -// - FreezeRows || FreezeColunns --> 3+D+N*2 (unless scrolling value is zero) -// Where D is 1 if any column is clipped or hidden (dummy channel) otherwise 0. -void ImGui::TableSetupDrawChannels(ImGuiTable* table) -{ - const int freeze_row_multiplier = (table->FreezeRowsCount > 0) ? 2 : 1; - const int channels_for_row = (table->Flags & ImGuiTableFlags_NoClip) ? 1 : table->ColumnsEnabledCount; - const int channels_for_bg = 1 + 1 * freeze_row_multiplier; - const int channels_for_dummy = (table->ColumnsEnabledCount < table->ColumnsCount || table->VisibleMaskByIndex != table->EnabledMaskByIndex) ? +1 : 0; - const int channels_total = channels_for_bg + (channels_for_row * freeze_row_multiplier) + channels_for_dummy; - table->DrawSplitter.Split(table->InnerWindow->DrawList, channels_total); - table->DummyDrawChannel = (ImGuiTableDrawChannelIdx)((channels_for_dummy > 0) ? channels_total - 1 : -1); - table->Bg2DrawChannelCurrent = TABLE_DRAW_CHANNEL_BG2_FROZEN; - table->Bg2DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)((table->FreezeRowsCount > 0) ? 2 + channels_for_row : TABLE_DRAW_CHANNEL_BG2_FROZEN); - - int draw_channel_current = 2; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - if (column->IsVisibleX && column->IsVisibleY) - { - column->DrawChannelFrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current); - column->DrawChannelUnfrozen = (ImGuiTableDrawChannelIdx)(draw_channel_current + (table->FreezeRowsCount > 0 ? channels_for_row + 1 : 0)); - if (!(table->Flags & ImGuiTableFlags_NoClip)) - draw_channel_current++; - } - else - { - column->DrawChannelFrozen = column->DrawChannelUnfrozen = table->DummyDrawChannel; - } - column->DrawChannelCurrent = column->DrawChannelFrozen; - } - - // Initial draw cmd starts with a BgClipRect that matches the one of its host, to facilitate merge draw commands by default. - // All our cell highlight are manually clipped with BgClipRect. When unfreezing it will be made smaller to fit scrolling rect. - // (This technically isn't part of setting up draw channels, but is reasonably related to be done here) - table->BgClipRect = table->InnerClipRect; - table->Bg0ClipRectForDrawCmd = table->OuterWindow->ClipRect; - table->Bg2ClipRectForDrawCmd = table->HostClipRect; - IM_ASSERT(table->BgClipRect.Min.y <= table->BgClipRect.Max.y); -} - -// This function reorder draw channels based on matching clip rectangle, to facilitate merging them. Called by EndTable(). -// For simplicity we call it TableMergeDrawChannels() but in fact it only reorder channels + overwrite ClipRect, -// actual merging is done by table->DrawSplitter.Merge() which is called right after TableMergeDrawChannels(). -// -// Columns where the contents didn't stray off their local clip rectangle can be merged. To achieve -// this we merge their clip rect and make them contiguous in the channel list, so they can be merged -// by the call to DrawSplitter.Merge() following to the call to this function. -// We reorder draw commands by arranging them into a maximum of 4 distinct groups: -// -// 1 group: 2 groups: 2 groups: 4 groups: -// [ 0. ] no freeze [ 0. ] row freeze [ 01 ] col freeze [ 01 ] row+col freeze -// [ .. ] or no scroll [ 2. ] and v-scroll [ .. ] and h-scroll [ 23 ] and v+h-scroll -// -// Each column itself can use 1 channel (row freeze disabled) or 2 channels (row freeze enabled). -// When the contents of a column didn't stray off its limit, we move its channels into the corresponding group -// based on its position (within frozen rows/columns groups or not). -// At the end of the operation our 1-4 groups will each have a ImDrawCmd using the same ClipRect. -// This function assume that each column are pointing to a distinct draw channel, -// otherwise merge_group->ChannelsCount will not match set bit count of merge_group->ChannelsMask. -// -// Column channels will not be merged into one of the 1-4 groups in the following cases: -// - The contents stray off its clipping rectangle (we only compare the MaxX value, not the MinX value). -// Direct ImDrawList calls won't be taken into account by default, if you use them make sure the ImGui:: bounds -// matches, by e.g. calling SetCursorScreenPos(). -// - The channel uses more than one draw command itself. We drop all our attempt at merging stuff here.. -// we could do better but it's going to be rare and probably not worth the hassle. -// Columns for which the draw channel(s) haven't been merged with other will use their own ImDrawCmd. -// -// This function is particularly tricky to understand.. take a breath. -void ImGui::TableMergeDrawChannels(ImGuiTable* table) -{ - ImGuiContext& g = *GImGui; - ImDrawListSplitter* splitter = &table->DrawSplitter; - const bool has_freeze_v = (table->FreezeRowsCount > 0); - const bool has_freeze_h = (table->FreezeColumnsCount > 0); - IM_ASSERT(splitter->_Current == 0); - - // Track which groups we are going to attempt to merge, and which channels goes into each group. - struct MergeGroup - { - ImRect ClipRect; - int ChannelsCount; - ImBitArray ChannelsMask; - }; - int merge_group_mask = 0x00; - MergeGroup merge_groups[4]; - memset(merge_groups, 0, sizeof(merge_groups)); - - // 1. Scan channels and take note of those which can be merged - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - if ((table->VisibleMaskByIndex & ((ImU64)1 << column_n)) == 0) - continue; - ImGuiTableColumn* column = &table->Columns[column_n]; - - const int merge_group_sub_count = has_freeze_v ? 2 : 1; - for (int merge_group_sub_n = 0; merge_group_sub_n < merge_group_sub_count; merge_group_sub_n++) - { - const int channel_no = (merge_group_sub_n == 0) ? column->DrawChannelFrozen : column->DrawChannelUnfrozen; - - // Don't attempt to merge if there are multiple draw calls within the column - ImDrawChannel* src_channel = &splitter->_Channels[channel_no]; - if (src_channel->_CmdBuffer.Size > 0 && src_channel->_CmdBuffer.back().ElemCount == 0) - src_channel->_CmdBuffer.pop_back(); - if (src_channel->_CmdBuffer.Size != 1) - continue; - - // Find out the width of this merge group and check if it will fit in our column - // (note that we assume that rendering didn't stray on the left direction. we should need a CursorMinPos to detect it) - if (!(column->Flags & ImGuiTableColumnFlags_NoClip)) - { - float content_max_x; - if (!has_freeze_v) - content_max_x = ImMax(column->ContentMaxXUnfrozen, column->ContentMaxXHeadersUsed); // No row freeze - else if (merge_group_sub_n == 0) - content_max_x = ImMax(column->ContentMaxXFrozen, column->ContentMaxXHeadersUsed); // Row freeze: use width before freeze - else - content_max_x = column->ContentMaxXUnfrozen; // Row freeze: use width after freeze - if (content_max_x > column->ClipRect.Max.x) - continue; - } - - const int merge_group_n = (has_freeze_h && column_n < table->FreezeColumnsCount ? 0 : 1) + (has_freeze_v && merge_group_sub_n == 0 ? 0 : 2); - IM_ASSERT(channel_no < IMGUI_TABLE_MAX_DRAW_CHANNELS); - MergeGroup* merge_group = &merge_groups[merge_group_n]; - if (merge_group->ChannelsCount == 0) - merge_group->ClipRect = ImRect(+FLT_MAX, +FLT_MAX, -FLT_MAX, -FLT_MAX); - merge_group->ChannelsMask.SetBit(channel_no); - merge_group->ChannelsCount++; - merge_group->ClipRect.Add(src_channel->_CmdBuffer[0].ClipRect); - merge_group_mask |= (1 << merge_group_n); - } - - // Invalidate current draw channel - // (we don't clear DrawChannelFrozen/DrawChannelUnfrozen solely to facilitate debugging/later inspection of data) - column->DrawChannelCurrent = (ImGuiTableDrawChannelIdx)-1; - } - - // [DEBUG] Display merge groups -#if 0 - if (g.IO.KeyShift) - for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) - { - MergeGroup* merge_group = &merge_groups[merge_group_n]; - if (merge_group->ChannelsCount == 0) - continue; - char buf[32]; - ImFormatString(buf, 32, "MG%d:%d", merge_group_n, merge_group->ChannelsCount); - ImVec2 text_pos = merge_group->ClipRect.Min + ImVec2(4, 4); - ImVec2 text_size = CalcTextSize(buf, NULL); - GetForegroundDrawList()->AddRectFilled(text_pos, text_pos + text_size, IM_COL32(0, 0, 0, 255)); - GetForegroundDrawList()->AddText(text_pos, IM_COL32(255, 255, 0, 255), buf, NULL); - GetForegroundDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 255, 0, 255)); - } -#endif - - // 2. Rewrite channel list in our preferred order - if (merge_group_mask != 0) - { - // We skip channel 0 (Bg0/Bg1) and 1 (Bg2 frozen) from the shuffling since they won't move - see channels allocation in TableSetupDrawChannels(). - const int LEADING_DRAW_CHANNELS = 2; - g.DrawChannelsTempMergeBuffer.resize(splitter->_Count - LEADING_DRAW_CHANNELS); // Use shared temporary storage so the allocation gets amortized - ImDrawChannel* dst_tmp = g.DrawChannelsTempMergeBuffer.Data; - ImBitArray remaining_mask; // We need 132-bit of storage - remaining_mask.ClearAllBits(); - remaining_mask.SetBitRange(LEADING_DRAW_CHANNELS, splitter->_Count); - remaining_mask.ClearBit(table->Bg2DrawChannelUnfrozen); - IM_ASSERT(has_freeze_v == false || table->Bg2DrawChannelUnfrozen != TABLE_DRAW_CHANNEL_BG2_FROZEN); - int remaining_count = splitter->_Count - (has_freeze_v ? LEADING_DRAW_CHANNELS + 1 : LEADING_DRAW_CHANNELS); - //ImRect host_rect = (table->InnerWindow == table->OuterWindow) ? table->InnerClipRect : table->HostClipRect; - ImRect host_rect = table->HostClipRect; - for (int merge_group_n = 0; merge_group_n < IM_ARRAYSIZE(merge_groups); merge_group_n++) - { - if (int merge_channels_count = merge_groups[merge_group_n].ChannelsCount) - { - MergeGroup* merge_group = &merge_groups[merge_group_n]; - ImRect merge_clip_rect = merge_group->ClipRect; - - // Extend outer-most clip limits to match those of host, so draw calls can be merged even if - // outer-most columns have some outer padding offsetting them from their parent ClipRect. - // The principal cases this is dealing with are: - // - On a same-window table (not scrolling = single group), all fitting columns ClipRect -> will extend and match host ClipRect -> will merge - // - Columns can use padding and have left-most ClipRect.Min.x and right-most ClipRect.Max.x != from host ClipRect -> will extend and match host ClipRect -> will merge - // FIXME-TABLE FIXME-WORKRECT: We are wasting a merge opportunity on tables without scrolling if column doesn't fit - // within host clip rect, solely because of the half-padding difference between window->WorkRect and window->InnerClipRect. - if ((merge_group_n & 1) == 0 || !has_freeze_h) - merge_clip_rect.Min.x = ImMin(merge_clip_rect.Min.x, host_rect.Min.x); - if ((merge_group_n & 2) == 0 || !has_freeze_v) - merge_clip_rect.Min.y = ImMin(merge_clip_rect.Min.y, host_rect.Min.y); - if ((merge_group_n & 1) != 0) - merge_clip_rect.Max.x = ImMax(merge_clip_rect.Max.x, host_rect.Max.x); - if ((merge_group_n & 2) != 0 && (table->Flags & ImGuiTableFlags_NoHostExtendY) == 0) - merge_clip_rect.Max.y = ImMax(merge_clip_rect.Max.y, host_rect.Max.y); -#if 0 - GetOverlayDrawList()->AddRect(merge_group->ClipRect.Min, merge_group->ClipRect.Max, IM_COL32(255, 0, 0, 200), 0.0f, ~0, 1.0f); - GetOverlayDrawList()->AddLine(merge_group->ClipRect.Min, merge_clip_rect.Min, IM_COL32(255, 100, 0, 200)); - GetOverlayDrawList()->AddLine(merge_group->ClipRect.Max, merge_clip_rect.Max, IM_COL32(255, 100, 0, 200)); -#endif - remaining_count -= merge_group->ChannelsCount; - for (int n = 0; n < IM_ARRAYSIZE(remaining_mask.Storage); n++) - remaining_mask.Storage[n] &= ~merge_group->ChannelsMask.Storage[n]; - for (int n = 0; n < splitter->_Count && merge_channels_count != 0; n++) - { - // Copy + overwrite new clip rect - if (!merge_group->ChannelsMask.TestBit(n)) - continue; - merge_group->ChannelsMask.ClearBit(n); - merge_channels_count--; - - ImDrawChannel* channel = &splitter->_Channels[n]; - IM_ASSERT(channel->_CmdBuffer.Size == 1 && merge_clip_rect.Contains(ImRect(channel->_CmdBuffer[0].ClipRect))); - channel->_CmdBuffer[0].ClipRect = merge_clip_rect.ToVec4(); - memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); - } - } - - // Make sure Bg2DrawChannelUnfrozen appears in the middle of our groups (whereas Bg0/Bg1 and Bg2 frozen are fixed to 0 and 1) - if (merge_group_n == 1 && has_freeze_v) - memcpy(dst_tmp++, &splitter->_Channels[table->Bg2DrawChannelUnfrozen], sizeof(ImDrawChannel)); - } - - // Append unmergeable channels that we didn't reorder at the end of the list - for (int n = 0; n < splitter->_Count && remaining_count != 0; n++) - { - if (!remaining_mask.TestBit(n)) - continue; - ImDrawChannel* channel = &splitter->_Channels[n]; - memcpy(dst_tmp++, channel, sizeof(ImDrawChannel)); - remaining_count--; - } - IM_ASSERT(dst_tmp == g.DrawChannelsTempMergeBuffer.Data + g.DrawChannelsTempMergeBuffer.Size); - memcpy(splitter->_Channels.Data + LEADING_DRAW_CHANNELS, g.DrawChannelsTempMergeBuffer.Data, (splitter->_Count - LEADING_DRAW_CHANNELS) * sizeof(ImDrawChannel)); - } -} - -// FIXME-TABLE: This is a mess, need to redesign how we render borders (as some are also done in TableEndRow) -void ImGui::TableDrawBorders(ImGuiTable* table) -{ - ImGuiWindow* inner_window = table->InnerWindow; - if (!table->OuterWindow->ClipRect.Overlaps(table->OuterRect)) - return; - - ImDrawList* inner_drawlist = inner_window->DrawList; - table->DrawSplitter.SetCurrentChannel(inner_drawlist, TABLE_DRAW_CHANNEL_BG0); - inner_drawlist->PushClipRect(table->Bg0ClipRectForDrawCmd.Min, table->Bg0ClipRectForDrawCmd.Max, false); - - // Draw inner border and resizing feedback - const float border_size = TABLE_BORDER_SIZE; - const float draw_y1 = table->InnerRect.Min.y; - const float draw_y2_body = table->InnerRect.Max.y; - const float draw_y2_head = table->IsUsingHeaders ? ImMin(table->InnerRect.Max.y, (table->FreezeRowsCount >= 1 ? table->InnerRect.Min.y : table->WorkRect.Min.y) + table->LastFirstRowHeight) : draw_y1; - if (table->Flags & ImGuiTableFlags_BordersInnerV) - { - for (int order_n = 0; order_n < table->ColumnsCount; order_n++) - { - if (!(table->EnabledMaskByDisplayOrder & ((ImU64)1 << order_n))) - continue; - - const int column_n = table->DisplayOrderToIndex[order_n]; - ImGuiTableColumn* column = &table->Columns[column_n]; - const bool is_hovered = (table->HoveredColumnBorder == column_n); - const bool is_resized = (table->ResizedColumn == column_n) && (table->InstanceInteracted == table->InstanceCurrent); - const bool is_resizable = (column->Flags & (ImGuiTableColumnFlags_NoResize | ImGuiTableColumnFlags_NoDirectResize_)) == 0; - const bool is_frozen_separator = (table->FreezeColumnsCount != -1 && table->FreezeColumnsCount == order_n + 1); - if (column->MaxX > table->InnerClipRect.Max.x && !is_resized) - continue; - - // Decide whether right-most column is visible - if (column->NextEnabledColumn == -1 && !is_resizable) - if ((table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame || (table->Flags & ImGuiTableFlags_NoHostExtendX)) - continue; - if (column->MaxX <= column->ClipRect.Min.x) // FIXME-TABLE FIXME-STYLE: Assume BorderSize==1, this is problematic if we want to increase the border size.. - continue; - - // Draw in outer window so right-most column won't be clipped - // Always draw full height border when being resized/hovered, or on the delimitation of frozen column scrolling. - ImU32 col; - float draw_y2; - if (is_hovered || is_resized || is_frozen_separator) - { - draw_y2 = draw_y2_body; - col = is_resized ? GetColorU32(ImGuiCol_SeparatorActive) : is_hovered ? GetColorU32(ImGuiCol_SeparatorHovered) : table->BorderColorStrong; - } - else - { - draw_y2 = (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) ? draw_y2_head : draw_y2_body; - col = (table->Flags & (ImGuiTableFlags_NoBordersInBody | ImGuiTableFlags_NoBordersInBodyUntilResize)) ? table->BorderColorStrong : table->BorderColorLight; - } - - if (draw_y2 > draw_y1) - inner_drawlist->AddLine(ImVec2(column->MaxX, draw_y1), ImVec2(column->MaxX, draw_y2), col, border_size); - } - } - - // Draw outer border - // FIXME: could use AddRect or explicit VLine/HLine helper? - if (table->Flags & ImGuiTableFlags_BordersOuter) - { - // Display outer border offset by 1 which is a simple way to display it without adding an extra draw call - // (Without the offset, in outer_window it would be rendered behind cells, because child windows are above their - // parent. In inner_window, it won't reach out over scrollbars. Another weird solution would be to display part - // of it in inner window, and the part that's over scrollbars in the outer window..) - // Either solution currently won't allow us to use a larger border size: the border would clipped. - const ImRect outer_border = table->OuterRect; - const ImU32 outer_col = table->BorderColorStrong; - if ((table->Flags & ImGuiTableFlags_BordersOuter) == ImGuiTableFlags_BordersOuter) - { - inner_drawlist->AddRect(outer_border.Min, outer_border.Max, outer_col, 0.0f, ~0, border_size); - } - else if (table->Flags & ImGuiTableFlags_BordersOuterV) - { - inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Min.x, outer_border.Max.y), outer_col, border_size); - inner_drawlist->AddLine(ImVec2(outer_border.Max.x, outer_border.Min.y), outer_border.Max, outer_col, border_size); - } - else if (table->Flags & ImGuiTableFlags_BordersOuterH) - { - inner_drawlist->AddLine(outer_border.Min, ImVec2(outer_border.Max.x, outer_border.Min.y), outer_col, border_size); - inner_drawlist->AddLine(ImVec2(outer_border.Min.x, outer_border.Max.y), outer_border.Max, outer_col, border_size); - } - } - if ((table->Flags & ImGuiTableFlags_BordersInnerH) && table->RowPosY2 < table->OuterRect.Max.y) - { - // Draw bottom-most row border - const float border_y = table->RowPosY2; - if (border_y >= table->BgClipRect.Min.y && border_y < table->BgClipRect.Max.y) - inner_drawlist->AddLine(ImVec2(table->BorderX1, border_y), ImVec2(table->BorderX2, border_y), table->BorderColorLight, border_size); - } - - inner_drawlist->PopClipRect(); -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Sorting -//------------------------------------------------------------------------- -// - TableGetSortSpecs() -// - TableFixColumnSortDirection() [Internal] -// - TableGetColumnNextSortDirection() [Internal] -// - TableSetColumnSortDirection() [Internal] -// - TableSortSpecsSanitize() [Internal] -// - TableSortSpecsBuild() [Internal] -//------------------------------------------------------------------------- - -// Return NULL if no sort specs (most often when ImGuiTableFlags_Sortable is not set) -// You can sort your data again when 'SpecsChanged == true'. It will be true with sorting specs have changed since -// last call, or the first time. -// Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable()! -ImGuiTableSortSpecs* ImGui::TableGetSortSpecs() -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(table != NULL); - - if (!(table->Flags & ImGuiTableFlags_Sortable)) - return NULL; - - // Require layout (in case TableHeadersRow() hasn't been called) as it may alter IsSortSpecsDirty in some paths. - if (!table->IsLayoutLocked) - TableUpdateLayout(table); - - if (table->IsSortSpecsDirty) - TableSortSpecsBuild(table); - - return &table->SortSpecs; -} - -static inline ImGuiSortDirection TableGetColumnAvailSortDirection(ImGuiTableColumn* column, int n) -{ - IM_ASSERT(n < column->SortDirectionsAvailCount); - return (column->SortDirectionsAvailList >> (n << 1)) & 0x03; -} - -// Fix sort direction if currently set on a value which is unavailable (e.g. activating NoSortAscending/NoSortDescending) -void ImGui::TableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column) -{ - if (column->SortOrder == -1 || (column->SortDirectionsAvailMask & (1 << column->SortDirection)) != 0) - return; - column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); - table->IsSortSpecsDirty = true; -} - -// Calculate next sort direction that would be set after clicking the column -// - If the PreferSortDescending flag is set, we will default to a Descending direction on the first click. -// - Note that the PreferSortAscending flag is never checked, it is essentially the default and therefore a no-op. -IM_STATIC_ASSERT(ImGuiSortDirection_None == 0 && ImGuiSortDirection_Ascending == 1 && ImGuiSortDirection_Descending == 2); -ImGuiSortDirection ImGui::TableGetColumnNextSortDirection(ImGuiTableColumn* column) -{ - IM_ASSERT(column->SortDirectionsAvailCount > 0); - if (column->SortOrder == -1) - return TableGetColumnAvailSortDirection(column, 0); - for (int n = 0; n < 3; n++) - if (column->SortDirection == TableGetColumnAvailSortDirection(column, n)) - return TableGetColumnAvailSortDirection(column, (n + 1) % column->SortDirectionsAvailCount); - IM_ASSERT(0); - return ImGuiSortDirection_None; -} - -// Note that the NoSortAscending/NoSortDescending flags are processed in TableSortSpecsSanitize(), and they may change/revert -// the value of SortDirection. We could technically also do it here but it would be unnecessary and duplicate code. -void ImGui::TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - - if (!(table->Flags & ImGuiTableFlags_SortMulti)) - append_to_sort_specs = false; - if (!(table->Flags & ImGuiTableFlags_SortTristate)) - IM_ASSERT(sort_direction != ImGuiSortDirection_None); - - ImGuiTableColumnIdx sort_order_max = 0; - if (append_to_sort_specs) - for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) - sort_order_max = ImMax(sort_order_max, table->Columns[other_column_n].SortOrder); - - ImGuiTableColumn* column = &table->Columns[column_n]; - column->SortDirection = (ImU8)sort_direction; - if (column->SortDirection == ImGuiSortDirection_None) - column->SortOrder = -1; - else if (column->SortOrder == -1 || !append_to_sort_specs) - column->SortOrder = append_to_sort_specs ? sort_order_max + 1 : 0; - - for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) - { - ImGuiTableColumn* other_column = &table->Columns[other_column_n]; - if (other_column != column && !append_to_sort_specs) - other_column->SortOrder = -1; - TableFixColumnSortDirection(table, other_column); - } - table->IsSettingsDirty = true; - table->IsSortSpecsDirty = true; -} - -void ImGui::TableSortSpecsSanitize(ImGuiTable* table) -{ - IM_ASSERT(table->Flags & ImGuiTableFlags_Sortable); - - // Clear SortOrder from hidden column and verify that there's no gap or duplicate. - int sort_order_count = 0; - ImU64 sort_order_mask = 0x00; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - if (column->SortOrder != -1 && !column->IsEnabled) - column->SortOrder = -1; - if (column->SortOrder == -1) - continue; - sort_order_count++; - sort_order_mask |= ((ImU64)1 << column->SortOrder); - IM_ASSERT(sort_order_count < (int)sizeof(sort_order_mask) * 8); - } - - const bool need_fix_linearize = ((ImU64)1 << sort_order_count) != (sort_order_mask + 1); - const bool need_fix_single_sort_order = (sort_order_count > 1) && !(table->Flags & ImGuiTableFlags_SortMulti); - if (need_fix_linearize || need_fix_single_sort_order) - { - ImU64 fixed_mask = 0x00; - for (int sort_n = 0; sort_n < sort_order_count; sort_n++) - { - // Fix: Rewrite sort order fields if needed so they have no gap or duplicate. - // (e.g. SortOrder 0 disappeared, SortOrder 1..2 exists --> rewrite then as SortOrder 0..1) - int column_with_smallest_sort_order = -1; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - if ((fixed_mask & ((ImU64)1 << (ImU64)column_n)) == 0 && table->Columns[column_n].SortOrder != -1) - if (column_with_smallest_sort_order == -1 || table->Columns[column_n].SortOrder < table->Columns[column_with_smallest_sort_order].SortOrder) - column_with_smallest_sort_order = column_n; - IM_ASSERT(column_with_smallest_sort_order != -1); - fixed_mask |= ((ImU64)1 << column_with_smallest_sort_order); - table->Columns[column_with_smallest_sort_order].SortOrder = (ImGuiTableColumnIdx)sort_n; - - // Fix: Make sure only one column has a SortOrder if ImGuiTableFlags_MultiSortable is not set. - if (need_fix_single_sort_order) - { - sort_order_count = 1; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - if (column_n != column_with_smallest_sort_order) - table->Columns[column_n].SortOrder = -1; - break; - } - } - } - - // Fallback default sort order (if no column had the ImGuiTableColumnFlags_DefaultSort flag) - if (sort_order_count == 0 && !(table->Flags & ImGuiTableFlags_SortTristate)) - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - if (column->IsEnabled && !(column->Flags & ImGuiTableColumnFlags_NoSort)) - { - sort_order_count = 1; - column->SortOrder = 0; - column->SortDirection = (ImU8)TableGetColumnAvailSortDirection(column, 0); - break; - } - } - - table->SortSpecsCount = (ImGuiTableColumnIdx)sort_order_count; -} - -void ImGui::TableSortSpecsBuild(ImGuiTable* table) -{ - IM_ASSERT(table->IsSortSpecsDirty); - TableSortSpecsSanitize(table); - - // Write output - table->SortSpecsMulti.resize(table->SortSpecsCount <= 1 ? 0 : table->SortSpecsCount); - ImGuiTableColumnSortSpecs* sort_specs = (table->SortSpecsCount == 0) ? NULL : (table->SortSpecsCount == 1) ? &table->SortSpecsSingle : table->SortSpecsMulti.Data; - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - { - ImGuiTableColumn* column = &table->Columns[column_n]; - if (column->SortOrder == -1) - continue; - IM_ASSERT(column->SortOrder < table->SortSpecsCount); - ImGuiTableColumnSortSpecs* sort_spec = &sort_specs[column->SortOrder]; - sort_spec->ColumnUserID = column->UserID; - sort_spec->ColumnIndex = (ImGuiTableColumnIdx)column_n; - sort_spec->SortOrder = (ImGuiTableColumnIdx)column->SortOrder; - sort_spec->SortDirection = column->SortDirection; - } - table->SortSpecs.Specs = sort_specs; - table->SortSpecs.SpecsCount = table->SortSpecsCount; - table->SortSpecs.SpecsDirty = true; // Mark as dirty for user - table->IsSortSpecsDirty = false; // Mark as not dirty for us -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Headers -//------------------------------------------------------------------------- -// - TableGetHeaderRowHeight() [Internal] -// - TableHeadersRow() -// - TableHeader() -//------------------------------------------------------------------------- - -float ImGui::TableGetHeaderRowHeight() -{ - // Caring for a minor edge case: - // Calculate row height, for the unlikely case that some labels may be taller than others. - // If we didn't do that, uneven header height would highlight but smaller one before the tallest wouldn't catch input for all height. - // In your custom header row you may omit this all together and just call TableNextRow() without a height... - float row_height = GetTextLineHeight(); - int columns_count = TableGetColumnCount(); - for (int column_n = 0; column_n < columns_count; column_n++) - if (TableGetColumnFlags(column_n) & ImGuiTableColumnFlags_IsEnabled) - row_height = ImMax(row_height, CalcTextSize(TableGetColumnName(column_n)).y); - row_height += GetStyle().CellPadding.y * 2.0f; - return row_height; -} - -// [Public] This is a helper to output TableHeader() calls based on the column names declared in TableSetupColumn(). -// The intent is that advanced users willing to create customized headers would not need to use this helper -// and can create their own! For example: TableHeader() may be preceeded by Checkbox() or other custom widgets. -// See 'Demo->Tables->Custom headers' for a demonstration of implementing a custom version of this. -// This code is constructed to not make much use of internal functions, as it is intended to be a template to copy. -// FIXME-TABLE: TableOpenContextMenu() and TableGetHeaderRowHeight() are not public. -void ImGui::TableHeadersRow() -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(table != NULL && "Need to call TableHeadersRow() after BeginTable()!"); - - // Layout if not already done (this is automatically done by TableNextRow, we do it here solely to facilitate stepping in debugger as it is frequent to step in TableUpdateLayout) - if (!table->IsLayoutLocked) - TableUpdateLayout(table); - - // Open row - const float row_y1 = GetCursorScreenPos().y; - const float row_height = TableGetHeaderRowHeight(); - TableNextRow(ImGuiTableRowFlags_Headers, row_height); - if (table->HostSkipItems) // Merely an optimization, you may skip in your own code. - return; - - const int columns_count = TableGetColumnCount(); - for (int column_n = 0; column_n < columns_count; column_n++) - { - if (!TableSetColumnIndex(column_n)) - continue; - - // Push an id to allow unnamed labels (generally accidental, but let's behave nicely with them) - // - in your own code you may omit the PushID/PopID all-together, provided you know they won't collide - // - table->InstanceCurrent is only >0 when we use multiple BeginTable/EndTable calls with same identifier. - const char* name = TableGetColumnName(column_n); - PushID(table->InstanceCurrent * table->ColumnsCount + column_n); - TableHeader(name); - PopID(); - } - - // Allow opening popup from the right-most section after the last column. - ImVec2 mouse_pos = ImGui::GetMousePos(); - if (IsMouseReleased(1) && TableGetHoveredColumn() == columns_count) - if (mouse_pos.y >= row_y1 && mouse_pos.y < row_y1 + row_height) - TableOpenContextMenu(-1); // Will open a non-column-specific popup. -} - -// Emit a column header (text + optional sort order) -// We cpu-clip text here so that all columns headers can be merged into a same draw call. -// Note that because of how we cpu-clip and display sorting indicators, you _cannot_ use SameLine() after a TableHeader() -void ImGui::TableHeader(const char* label) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return; - - ImGuiTable* table = g.CurrentTable; - IM_ASSERT(table != NULL && "Need to call TableHeader() after BeginTable()!"); - IM_ASSERT(table->CurrentColumn != -1); - const int column_n = table->CurrentColumn; - ImGuiTableColumn* column = &table->Columns[column_n]; - - // Label - if (label == NULL) - label = ""; - const char* label_end = FindRenderedTextEnd(label); - ImVec2 label_size = CalcTextSize(label, label_end, true); - ImVec2 label_pos = window->DC.CursorPos; - - // If we already got a row height, there's use that. - // FIXME-TABLE: Padding problem if the correct outer-padding CellBgRect strays off our ClipRect? - ImRect cell_r = TableGetCellBgRect(table, column_n); - float label_height = ImMax(label_size.y, table->RowMinHeight - table->CellPaddingY * 2.0f); - - // Calculate ideal size for sort order arrow - float w_arrow = 0.0f; - float w_sort_text = 0.0f; - char sort_order_suf[4] = ""; - const float ARROW_SCALE = 0.65f; - if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) - { - w_arrow = ImFloor(g.FontSize * ARROW_SCALE + g.Style.FramePadding.x); - if (column->SortOrder > 0) - { - ImFormatString(sort_order_suf, IM_ARRAYSIZE(sort_order_suf), "%d", column->SortOrder + 1); - w_sort_text = g.Style.ItemInnerSpacing.x + CalcTextSize(sort_order_suf).x; - } - } - - // We feed our unclipped width to the column without writing on CursorMaxPos, so that column is still considering for merging. - float max_pos_x = label_pos.x + label_size.x + w_sort_text + w_arrow; - column->ContentMaxXHeadersUsed = ImMax(column->ContentMaxXHeadersUsed, column->WorkMaxX); - column->ContentMaxXHeadersIdeal = ImMax(column->ContentMaxXHeadersIdeal, max_pos_x); - - // Keep header highlighted when context menu is open. - const bool selected = (table->IsContextPopupOpen && table->ContextPopupColumn == column_n && table->InstanceInteracted == table->InstanceCurrent); - ImGuiID id = window->GetID(label); - ImRect bb(cell_r.Min.x, cell_r.Min.y, cell_r.Max.x, ImMax(cell_r.Max.y, cell_r.Min.y + label_height + g.Style.CellPadding.y * 2.0f)); - ItemSize(ImVec2(0.0f, label_height)); // Don't declare unclipped width, it'll be fed ContentMaxPosHeadersIdeal - if (!ItemAdd(bb, id)) - return; - - //GetForegroundDrawList()->AddRect(cell_r.Min, cell_r.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] - //GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(255, 0, 0, 255)); // [DEBUG] - - // Using AllowItemOverlap mode because we cover the whole cell, and we want user to be able to submit subsequent items. - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_AllowItemOverlap); - if (g.ActiveId != id) - SetItemAllowOverlap(); - if (held || hovered || selected) - { - const ImU32 col = GetColorU32(held ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); - //RenderFrame(bb.Min, bb.Max, col, false, 0.0f); - TableSetBgColor(ImGuiTableBgTarget_CellBg, col, table->CurrentColumn); - RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); - } - else - { - // Submit single cell bg color in the case we didn't submit a full header row - if ((table->RowFlags & ImGuiTableRowFlags_Headers) == 0) - TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_TableHeaderBg), table->CurrentColumn); - } - if (held) - table->HeldHeaderColumn = (ImGuiTableColumnIdx)column_n; - window->DC.CursorPos.y -= g.Style.ItemSpacing.y * 0.5f; - - // Drag and drop to re-order columns. - // FIXME-TABLE: Scroll request while reordering a column and it lands out of the scrolling zone. - if (held && (table->Flags & ImGuiTableFlags_Reorderable) && IsMouseDragging(0) && !g.DragDropActive) - { - // While moving a column it will jump on the other side of the mouse, so we also test for MouseDelta.x - table->ReorderColumn = (ImGuiTableColumnIdx)column_n; - table->InstanceInteracted = table->InstanceCurrent; - - // We don't reorder: through the frozen<>unfrozen line, or through a column that is marked with ImGuiTableColumnFlags_NoReorder. - if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < cell_r.Min.x) - if (ImGuiTableColumn* prev_column = (column->PrevEnabledColumn != -1) ? &table->Columns[column->PrevEnabledColumn] : NULL) - if (!((column->Flags | prev_column->Flags) & ImGuiTableColumnFlags_NoReorder)) - if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (prev_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) - table->ReorderColumnDir = -1; - if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > cell_r.Max.x) - if (ImGuiTableColumn* next_column = (column->NextEnabledColumn != -1) ? &table->Columns[column->NextEnabledColumn] : NULL) - if (!((column->Flags | next_column->Flags) & ImGuiTableColumnFlags_NoReorder)) - if ((column->IndexWithinEnabledSet < table->FreezeColumnsRequest) == (next_column->IndexWithinEnabledSet < table->FreezeColumnsRequest)) - table->ReorderColumnDir = +1; - } - - // Sort order arrow - const float ellipsis_max = cell_r.Max.x - w_arrow - w_sort_text; - if ((table->Flags & ImGuiTableFlags_Sortable) && !(column->Flags & ImGuiTableColumnFlags_NoSort)) - { - if (column->SortOrder != -1) - { - float x = ImMax(cell_r.Min.x, cell_r.Max.x - w_arrow - w_sort_text); - float y = label_pos.y; - if (column->SortOrder > 0) - { - PushStyleColor(ImGuiCol_Text, GetColorU32(ImGuiCol_Text, 0.70f)); - RenderText(ImVec2(x + g.Style.ItemInnerSpacing.x, y), sort_order_suf); - PopStyleColor(); - x += w_sort_text; - } - RenderArrow(window->DrawList, ImVec2(x, y), GetColorU32(ImGuiCol_Text), column->SortDirection == ImGuiSortDirection_Ascending ? ImGuiDir_Up : ImGuiDir_Down, ARROW_SCALE); - } - - // Handle clicking on column header to adjust Sort Order - if (pressed && table->ReorderColumn != column_n) - { - ImGuiSortDirection sort_direction = TableGetColumnNextSortDirection(column); - TableSetColumnSortDirection(column_n, sort_direction, g.IO.KeyShift); - } - } - - // Render clipped label. Clipping here ensure that in the majority of situations, all our header cells will - // be merged into a single draw call. - //window->DrawList->AddCircleFilled(ImVec2(ellipsis_max, label_pos.y), 40, IM_COL32_WHITE); - RenderTextEllipsis(window->DrawList, label_pos, ImVec2(ellipsis_max, label_pos.y + label_height + g.Style.FramePadding.y), ellipsis_max, ellipsis_max, label, label_end, &label_size); - - const bool text_clipped = label_size.x > (ellipsis_max - label_pos.x); - if (text_clipped && hovered && g.HoveredIdNotActiveTimer > g.TooltipSlowDelay) - SetTooltip("%.*s", (int)(label_end - label), label); - - // We don't use BeginPopupContextItem() because we want the popup to stay up even after the column is hidden - if (IsMouseReleased(1) && IsItemHovered()) - TableOpenContextMenu(column_n); -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Context Menu -//------------------------------------------------------------------------- -// - TableOpenContextMenu() [Internal] -// - TableDrawContextMenu() [Internal] -//------------------------------------------------------------------------- - -// Use -1 to open menu not specific to a given column. -void ImGui::TableOpenContextMenu(int column_n) -{ - ImGuiContext& g = *GImGui; - ImGuiTable* table = g.CurrentTable; - if (column_n == -1 && table->CurrentColumn != -1) // When called within a column automatically use this one (for consistency) - column_n = table->CurrentColumn; - if (column_n == table->ColumnsCount) // To facilitate using with TableGetHoveredColumn() - column_n = -1; - IM_ASSERT(column_n >= -1 && column_n < table->ColumnsCount); - if (table->Flags & (ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) - { - table->IsContextPopupOpen = true; - table->ContextPopupColumn = (ImGuiTableColumnIdx)column_n; - table->InstanceInteracted = table->InstanceCurrent; - const ImGuiID context_menu_id = ImHashStr("##ContextMenu", 0, table->ID); - OpenPopupEx(context_menu_id, ImGuiPopupFlags_None); - } -} - -// Output context menu into current window (generally a popup) -// FIXME-TABLE: Ideally this should be writable by the user. Full programmatic access to that data? -void ImGui::TableDrawContextMenu(ImGuiTable* table) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return; - - bool want_separator = false; - const int column_n = (table->ContextPopupColumn >= 0 && table->ContextPopupColumn < table->ColumnsCount) ? table->ContextPopupColumn : -1; - ImGuiTableColumn* column = (column_n != -1) ? &table->Columns[column_n] : NULL; - - // Sizing - if (table->Flags & ImGuiTableFlags_Resizable) - { - if (column != NULL) - { - const bool can_resize = !(column->Flags & ImGuiTableColumnFlags_NoResize) && column->IsEnabled; - if (MenuItem("Size column to fit###SizeOne", NULL, false, can_resize)) - TableSetColumnWidthAutoSingle(table, column_n); - } - - const char* size_all_desc; - if (table->ColumnsEnabledFixedCount == table->ColumnsEnabledCount && (table->Flags & ImGuiTableFlags_SizingMask_) != ImGuiTableFlags_SizingFixedSame) - size_all_desc = "Size all columns to fit###SizeAll"; // All fixed - else - size_all_desc = "Size all columns to default###SizeAll"; // All stretch or mixed - if (MenuItem(size_all_desc, NULL)) - TableSetColumnWidthAutoAll(table); - want_separator = true; - } - - // Ordering - if (table->Flags & ImGuiTableFlags_Reorderable) - { - if (MenuItem("Reset order", NULL, false, !table->IsDefaultDisplayOrder)) - table->IsResetDisplayOrderRequest = true; - want_separator = true; - } - - // Reset all (should work but seems unnecessary/noisy to expose?) - //if (MenuItem("Reset all")) - // table->IsResetAllRequest = true; - - // Sorting - // (modify TableOpenContextMenu() to add _Sortable flag if enabling this) -#if 0 - if ((table->Flags & ImGuiTableFlags_Sortable) && column != NULL && (column->Flags & ImGuiTableColumnFlags_NoSort) == 0) - { - if (want_separator) - Separator(); - want_separator = true; - - bool append_to_sort_specs = g.IO.KeyShift; - if (MenuItem("Sort in Ascending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Ascending, (column->Flags & ImGuiTableColumnFlags_NoSortAscending) == 0)) - TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Ascending, append_to_sort_specs); - if (MenuItem("Sort in Descending Order", NULL, column->SortOrder != -1 && column->SortDirection == ImGuiSortDirection_Descending, (column->Flags & ImGuiTableColumnFlags_NoSortDescending) == 0)) - TableSetColumnSortDirection(table, column_n, ImGuiSortDirection_Descending, append_to_sort_specs); - } -#endif - - // Hiding / Visibility - if (table->Flags & ImGuiTableFlags_Hideable) - { - if (want_separator) - Separator(); - want_separator = true; - - PushItemFlag(ImGuiItemFlags_SelectableDontClosePopup, true); - for (int other_column_n = 0; other_column_n < table->ColumnsCount; other_column_n++) - { - ImGuiTableColumn* other_column = &table->Columns[other_column_n]; - const char* name = TableGetColumnName(table, other_column_n); - if (name == NULL || name[0] == 0) - name = ""; - - // Make sure we can't hide the last active column - bool menu_item_active = (other_column->Flags & ImGuiTableColumnFlags_NoHide) ? false : true; - if (other_column->IsEnabled && table->ColumnsEnabledCount <= 1) - menu_item_active = false; - if (MenuItem(name, NULL, other_column->IsEnabled, menu_item_active)) - other_column->IsEnabledNextFrame = !other_column->IsEnabled; - } - PopItemFlag(); - } -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Settings (.ini data) -//------------------------------------------------------------------------- -// FIXME: The binding/finding/creating flow are too confusing. -//------------------------------------------------------------------------- -// - TableSettingsInit() [Internal] -// - TableSettingsCalcChunkSize() [Internal] -// - TableSettingsCreate() [Internal] -// - TableSettingsFindByID() [Internal] -// - TableGetBoundSettings() [Internal] -// - TableResetSettings() -// - TableSaveSettings() [Internal] -// - TableLoadSettings() [Internal] -// - TableSettingsHandler_ClearAll() [Internal] -// - TableSettingsHandler_ApplyAll() [Internal] -// - TableSettingsHandler_ReadOpen() [Internal] -// - TableSettingsHandler_ReadLine() [Internal] -// - TableSettingsHandler_WriteAll() [Internal] -// - TableSettingsInstallHandler() [Internal] -//------------------------------------------------------------------------- -// [Init] 1: TableSettingsHandler_ReadXXXX() Load and parse .ini file into TableSettings. -// [Main] 2: TableLoadSettings() When table is created, bind Table to TableSettings, serialize TableSettings data into Table. -// [Main] 3: TableSaveSettings() When table properties are modified, serialize Table data into bound or new TableSettings, mark .ini as dirty. -// [Main] 4: TableSettingsHandler_WriteAll() When .ini file is dirty (which can come from other source), save TableSettings into .ini file. -//------------------------------------------------------------------------- - -// Clear and initialize empty settings instance -static void TableSettingsInit(ImGuiTableSettings* settings, ImGuiID id, int columns_count, int columns_count_max) -{ - IM_PLACEMENT_NEW(settings) ImGuiTableSettings(); - ImGuiTableColumnSettings* settings_column = settings->GetColumnSettings(); - for (int n = 0; n < columns_count_max; n++, settings_column++) - IM_PLACEMENT_NEW(settings_column) ImGuiTableColumnSettings(); - settings->ID = id; - settings->ColumnsCount = (ImGuiTableColumnIdx)columns_count; - settings->ColumnsCountMax = (ImGuiTableColumnIdx)columns_count_max; - settings->WantApply = true; -} - -static size_t TableSettingsCalcChunkSize(int columns_count) -{ - return sizeof(ImGuiTableSettings) + (size_t)columns_count * sizeof(ImGuiTableColumnSettings); -} - -ImGuiTableSettings* ImGui::TableSettingsCreate(ImGuiID id, int columns_count) -{ - ImGuiContext& g = *GImGui; - ImGuiTableSettings* settings = g.SettingsTables.alloc_chunk(TableSettingsCalcChunkSize(columns_count)); - TableSettingsInit(settings, id, columns_count, columns_count); - return settings; -} - -// Find existing settings -ImGuiTableSettings* ImGui::TableSettingsFindByID(ImGuiID id) -{ - // FIXME-OPT: Might want to store a lookup map for this? - ImGuiContext& g = *GImGui; - for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) - if (settings->ID == id) - return settings; - return NULL; -} - -// Get settings for a given table, NULL if none -ImGuiTableSettings* ImGui::TableGetBoundSettings(ImGuiTable* table) -{ - if (table->SettingsOffset != -1) - { - ImGuiContext& g = *GImGui; - ImGuiTableSettings* settings = g.SettingsTables.ptr_from_offset(table->SettingsOffset); - IM_ASSERT(settings->ID == table->ID); - if (settings->ColumnsCountMax >= table->ColumnsCount) - return settings; // OK - settings->ID = 0; // Invalidate storage, we won't fit because of a count change - } - return NULL; -} - -// Restore initial state of table (with or without saved settings) -void ImGui::TableResetSettings(ImGuiTable* table) -{ - table->IsInitializing = table->IsSettingsDirty = true; - table->IsResetAllRequest = false; - table->IsSettingsRequestLoad = false; // Don't reload from ini - table->SettingsLoadedFlags = ImGuiTableFlags_None; // Mark as nothing loaded so our initialized data becomes authoritative -} - -void ImGui::TableSaveSettings(ImGuiTable* table) -{ - table->IsSettingsDirty = false; - if (table->Flags & ImGuiTableFlags_NoSavedSettings) - return; - - // Bind or create settings data - ImGuiContext& g = *GImGui; - ImGuiTableSettings* settings = TableGetBoundSettings(table); - if (settings == NULL) - { - settings = TableSettingsCreate(table->ID, table->ColumnsCount); - table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); - } - settings->ColumnsCount = (ImGuiTableColumnIdx)table->ColumnsCount; - - // Serialize ImGuiTable/ImGuiTableColumn into ImGuiTableSettings/ImGuiTableColumnSettings - IM_ASSERT(settings->ID == table->ID); - IM_ASSERT(settings->ColumnsCount == table->ColumnsCount && settings->ColumnsCountMax >= settings->ColumnsCount); - ImGuiTableColumn* column = table->Columns.Data; - ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); - - bool save_ref_scale = false; - settings->SaveFlags = ImGuiTableFlags_None; - for (int n = 0; n < table->ColumnsCount; n++, column++, column_settings++) - { - const float width_or_weight = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? column->StretchWeight : column->WidthRequest; - column_settings->WidthOrWeight = width_or_weight; - column_settings->Index = (ImGuiTableColumnIdx)n; - column_settings->DisplayOrder = column->DisplayOrder; - column_settings->SortOrder = column->SortOrder; - column_settings->SortDirection = column->SortDirection; - column_settings->IsEnabled = column->IsEnabled; - column_settings->IsStretch = (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? 1 : 0; - if ((column->Flags & ImGuiTableColumnFlags_WidthStretch) == 0) - save_ref_scale = true; - - // We skip saving some data in the .ini file when they are unnecessary to restore our state. - // Note that fixed width where initial width was derived from auto-fit will always be saved as InitStretchWeightOrWidth will be 0.0f. - // FIXME-TABLE: We don't have logic to easily compare SortOrder to DefaultSortOrder yet so it's always saved when present. - if (width_or_weight != column->InitStretchWeightOrWidth) - settings->SaveFlags |= ImGuiTableFlags_Resizable; - if (column->DisplayOrder != n) - settings->SaveFlags |= ImGuiTableFlags_Reorderable; - if (column->SortOrder != -1) - settings->SaveFlags |= ImGuiTableFlags_Sortable; - if (column->IsEnabled != ((column->Flags & ImGuiTableColumnFlags_DefaultHide) == 0)) - settings->SaveFlags |= ImGuiTableFlags_Hideable; - } - settings->SaveFlags &= table->Flags; - settings->RefScale = save_ref_scale ? table->RefScale : 0.0f; - - MarkIniSettingsDirty(); -} - -void ImGui::TableLoadSettings(ImGuiTable* table) -{ - ImGuiContext& g = *GImGui; - table->IsSettingsRequestLoad = false; - if (table->Flags & ImGuiTableFlags_NoSavedSettings) - return; - - // Bind settings - ImGuiTableSettings* settings; - if (table->SettingsOffset == -1) - { - settings = TableSettingsFindByID(table->ID); - if (settings == NULL) - return; - if (settings->ColumnsCount != table->ColumnsCount) // Allow settings if columns count changed. We could otherwise decide to return... - table->IsSettingsDirty = true; - table->SettingsOffset = g.SettingsTables.offset_from_ptr(settings); - } - else - { - settings = TableGetBoundSettings(table); - } - - table->SettingsLoadedFlags = settings->SaveFlags; - table->RefScale = settings->RefScale; - - // Serialize ImGuiTableSettings/ImGuiTableColumnSettings into ImGuiTable/ImGuiTableColumn - ImGuiTableColumnSettings* column_settings = settings->GetColumnSettings(); - ImU64 display_order_mask = 0; - for (int data_n = 0; data_n < settings->ColumnsCount; data_n++, column_settings++) - { - int column_n = column_settings->Index; - if (column_n < 0 || column_n >= table->ColumnsCount) - continue; - - ImGuiTableColumn* column = &table->Columns[column_n]; - if (settings->SaveFlags & ImGuiTableFlags_Resizable) - { - if (column_settings->IsStretch) - column->StretchWeight = column_settings->WidthOrWeight; - else - column->WidthRequest = column_settings->WidthOrWeight; - column->AutoFitQueue = 0x00; - } - if (settings->SaveFlags & ImGuiTableFlags_Reorderable) - column->DisplayOrder = column_settings->DisplayOrder; - else - column->DisplayOrder = (ImGuiTableColumnIdx)column_n; - display_order_mask |= (ImU64)1 << column->DisplayOrder; - column->IsEnabled = column->IsEnabledNextFrame = column_settings->IsEnabled; - column->SortOrder = column_settings->SortOrder; - column->SortDirection = column_settings->SortDirection; - } - - // Validate and fix invalid display order data - const ImU64 expected_display_order_mask = (settings->ColumnsCount == 64) ? ~0 : ((ImU64)1 << settings->ColumnsCount) - 1; - if (display_order_mask != expected_display_order_mask) - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - table->Columns[column_n].DisplayOrder = (ImGuiTableColumnIdx)column_n; - - // Rebuild index - for (int column_n = 0; column_n < table->ColumnsCount; column_n++) - table->DisplayOrderToIndex[table->Columns[column_n].DisplayOrder] = (ImGuiTableColumnIdx)column_n; -} - -static void TableSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) -{ - ImGuiContext& g = *ctx; - for (int i = 0; i != g.Tables.GetSize(); i++) - g.Tables.GetByIndex(i)->SettingsOffset = -1; - g.SettingsTables.clear(); -} - -// Apply to existing windows (if any) -static void TableSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*) -{ - ImGuiContext& g = *ctx; - for (int i = 0; i != g.Tables.GetSize(); i++) - { - ImGuiTable* table = g.Tables.GetByIndex(i); - table->IsSettingsRequestLoad = true; - table->SettingsOffset = -1; - } -} - -static void* TableSettingsHandler_ReadOpen(ImGuiContext*, ImGuiSettingsHandler*, const char* name) -{ - ImGuiID id = 0; - int columns_count = 0; - if (sscanf(name, "0x%08X,%d", &id, &columns_count) < 2) - return NULL; - - if (ImGuiTableSettings* settings = ImGui::TableSettingsFindByID(id)) - { - if (settings->ColumnsCountMax >= columns_count) - { - TableSettingsInit(settings, id, columns_count, settings->ColumnsCountMax); // Recycle - return settings; - } - settings->ID = 0; // Invalidate storage, we won't fit because of a count change - } - return ImGui::TableSettingsCreate(id, columns_count); -} - -static void TableSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line) -{ - // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" - ImGuiTableSettings* settings = (ImGuiTableSettings*)entry; - float f = 0.0f; - int column_n = 0, r = 0, n = 0; - - if (sscanf(line, "RefScale=%f", &f) == 1) { settings->RefScale = f; return; } - - if (sscanf(line, "Column %d%n", &column_n, &r) == 1) - { - if (column_n < 0 || column_n >= settings->ColumnsCount) - return; - line = ImStrSkipBlank(line + r); - char c = 0; - ImGuiTableColumnSettings* column = settings->GetColumnSettings() + column_n; - column->Index = (ImGuiTableColumnIdx)column_n; - if (sscanf(line, "UserID=0x%08X%n", (ImU32*)&n, &r)==1) { line = ImStrSkipBlank(line + r); column->UserID = (ImGuiID)n; } - if (sscanf(line, "Width=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = (float)n; column->IsStretch = 0; settings->SaveFlags |= ImGuiTableFlags_Resizable; } - if (sscanf(line, "Weight=%f%n", &f, &r) == 1) { line = ImStrSkipBlank(line + r); column->WidthOrWeight = f; column->IsStretch = 1; settings->SaveFlags |= ImGuiTableFlags_Resizable; } - if (sscanf(line, "Visible=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->IsEnabled = (ImU8)n; settings->SaveFlags |= ImGuiTableFlags_Hideable; } - if (sscanf(line, "Order=%d%n", &n, &r) == 1) { line = ImStrSkipBlank(line + r); column->DisplayOrder = (ImGuiTableColumnIdx)n; settings->SaveFlags |= ImGuiTableFlags_Reorderable; } - if (sscanf(line, "Sort=%d%c%n", &n, &c, &r) == 2) { line = ImStrSkipBlank(line + r); column->SortOrder = (ImGuiTableColumnIdx)n; column->SortDirection = (c == '^') ? ImGuiSortDirection_Descending : ImGuiSortDirection_Ascending; settings->SaveFlags |= ImGuiTableFlags_Sortable; } - } -} - -static void TableSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* buf) -{ - ImGuiContext& g = *ctx; - for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) - { - if (settings->ID == 0) // Skip ditched settings - continue; - - // TableSaveSettings() may clear some of those flags when we establish that the data can be stripped - // (e.g. Order was unchanged) - const bool save_size = (settings->SaveFlags & ImGuiTableFlags_Resizable) != 0; - const bool save_visible = (settings->SaveFlags & ImGuiTableFlags_Hideable) != 0; - const bool save_order = (settings->SaveFlags & ImGuiTableFlags_Reorderable) != 0; - const bool save_sort = (settings->SaveFlags & ImGuiTableFlags_Sortable) != 0; - if (!save_size && !save_visible && !save_order && !save_sort) - continue; - - buf->reserve(buf->size() + 30 + settings->ColumnsCount * 50); // ballpark reserve - buf->appendf("[%s][0x%08X,%d]\n", handler->TypeName, settings->ID, settings->ColumnsCount); - if (settings->RefScale != 0.0f) - buf->appendf("RefScale=%g\n", settings->RefScale); - ImGuiTableColumnSettings* column = settings->GetColumnSettings(); - for (int column_n = 0; column_n < settings->ColumnsCount; column_n++, column++) - { - // "Column 0 UserID=0x42AD2D21 Width=100 Visible=1 Order=0 Sort=0v" - buf->appendf("Column %-2d", column_n); - if (column->UserID != 0) buf->appendf(" UserID=%08X", column->UserID); - if (save_size && column->IsStretch) buf->appendf(" Weight=%.4f", column->WidthOrWeight); - if (save_size && !column->IsStretch) buf->appendf(" Width=%d", (int)column->WidthOrWeight); - if (save_visible) buf->appendf(" Visible=%d", column->IsEnabled); - if (save_order) buf->appendf(" Order=%d", column->DisplayOrder); - if (save_sort && column->SortOrder != -1) buf->appendf(" Sort=%d%c", column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? 'v' : '^'); - buf->append("\n"); - } - buf->append("\n"); - } -} - -void ImGui::TableSettingsInstallHandler(ImGuiContext* context) -{ - ImGuiContext& g = *context; - ImGuiSettingsHandler ini_handler; - ini_handler.TypeName = "Table"; - ini_handler.TypeHash = ImHashStr("Table"); - ini_handler.ClearAllFn = TableSettingsHandler_ClearAll; - ini_handler.ReadOpenFn = TableSettingsHandler_ReadOpen; - ini_handler.ReadLineFn = TableSettingsHandler_ReadLine; - ini_handler.ApplyAllFn = TableSettingsHandler_ApplyAll; - ini_handler.WriteAllFn = TableSettingsHandler_WriteAll; - g.SettingsHandlers.push_back(ini_handler); -} - -//------------------------------------------------------------------------- -// [SECTION] Tables: Garbage Collection -//------------------------------------------------------------------------- -// - TableRemove() [Internal] -// - TableGcCompactTransientBuffers() [Internal] -// - TableGcCompactSettings() [Internal] -//------------------------------------------------------------------------- - -// Remove Table (currently only used by TestEngine) -void ImGui::TableRemove(ImGuiTable* table) -{ - //IMGUI_DEBUG_LOG("TableRemove() id=0x%08X\n", table->ID); - ImGuiContext& g = *GImGui; - int table_idx = g.Tables.GetIndex(table); - //memset(table->RawData.Data, 0, table->RawData.size_in_bytes()); - //memset(table, 0, sizeof(ImGuiTable)); - g.Tables.Remove(table->ID, table); - g.TablesLastTimeActive[table_idx] = -1.0f; -} - -// Free up/compact internal Table buffers for when it gets unused -void ImGui::TableGcCompactTransientBuffers(ImGuiTable* table) -{ - //IMGUI_DEBUG_LOG("TableGcCompactTransientBuffers() id=0x%08X\n", table->ID); - ImGuiContext& g = *GImGui; - IM_ASSERT(table->MemoryCompacted == false); - table->DrawSplitter.ClearFreeMemory(); - table->SortSpecsMulti.clear(); - table->SortSpecs.Specs = NULL; - table->IsSortSpecsDirty = true; - table->ColumnsNames.clear(); - table->MemoryCompacted = true; - for (int n = 0; n < table->ColumnsCount; n++) - table->Columns[n].NameOffset = -1; - g.TablesLastTimeActive[g.Tables.GetIndex(table)] = -1.0f; -} - -// Compact and remove unused settings data (currently only used by TestEngine) -void ImGui::TableGcCompactSettings() -{ - ImGuiContext& g = *GImGui; - int required_memory = 0; - for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) - if (settings->ID != 0) - required_memory += (int)TableSettingsCalcChunkSize(settings->ColumnsCount); - if (required_memory == g.SettingsTables.Buf.Size) - return; - ImChunkStream new_chunk_stream; - new_chunk_stream.Buf.reserve(required_memory); - for (ImGuiTableSettings* settings = g.SettingsTables.begin(); settings != NULL; settings = g.SettingsTables.next_chunk(settings)) - if (settings->ID != 0) - memcpy(new_chunk_stream.alloc_chunk(TableSettingsCalcChunkSize(settings->ColumnsCount)), settings, TableSettingsCalcChunkSize(settings->ColumnsCount)); - g.SettingsTables.swap(new_chunk_stream); -} - - -//------------------------------------------------------------------------- -// [SECTION] Tables: Debugging -//------------------------------------------------------------------------- -// - DebugNodeTable() [Internal] -//------------------------------------------------------------------------- - -#ifndef IMGUI_DISABLE_METRICS_WINDOW - -static const char* DebugNodeTableGetSizingPolicyDesc(ImGuiTableFlags sizing_policy) -{ - sizing_policy &= ImGuiTableFlags_SizingMask_; - if (sizing_policy == ImGuiTableFlags_SizingFixedFit) { return "FixedFit"; } - if (sizing_policy == ImGuiTableFlags_SizingFixedSame) { return "FixedSame"; } - if (sizing_policy == ImGuiTableFlags_SizingStretchProp) { return "StretchProp"; } - if (sizing_policy == ImGuiTableFlags_SizingStretchSame) { return "StretchSame"; } - return "N/A"; -} - -void ImGui::DebugNodeTable(ImGuiTable* table) -{ - char buf[512]; - char* p = buf; - const char* buf_end = buf + IM_ARRAYSIZE(buf); - const bool is_active = (table->LastFrameActive >= ImGui::GetFrameCount() - 2); // Note that fully clipped early out scrolling tables will appear as inactive here. - ImFormatString(p, buf_end - p, "Table 0x%08X (%d columns, in '%s')%s", table->ID, table->ColumnsCount, table->OuterWindow->Name, is_active ? "" : " *Inactive*"); - if (!is_active) { PushStyleColor(ImGuiCol_Text, GetStyleColorVec4(ImGuiCol_TextDisabled)); } - bool open = TreeNode(table, "%s", buf); - if (!is_active) { PopStyleColor(); } - if (IsItemHovered()) - GetForegroundDrawList()->AddRect(table->OuterRect.Min, table->OuterRect.Max, IM_COL32(255, 255, 0, 255)); - if (IsItemVisible() && table->HoveredColumnBody != -1) - GetForegroundDrawList()->AddRect(GetItemRectMin(), GetItemRectMax(), IM_COL32(255, 255, 0, 255)); - if (!open) - return; - bool clear_settings = SmallButton("Clear settings"); - BulletText("OuterRect: Pos: (%.1f,%.1f) Size: (%.1f,%.1f) Sizing: '%s'", table->OuterRect.Min.x, table->OuterRect.Min.y, table->OuterRect.GetWidth(), table->OuterRect.GetHeight(), DebugNodeTableGetSizingPolicyDesc(table->Flags)); - BulletText("ColumnsGivenWidth: %.1f, ColumnsAutoFitWidth: %.1f, InnerWidth: %.1f%s", table->ColumnsGivenWidth, table->ColumnsAutoFitWidth, table->InnerWidth, table->InnerWidth == 0.0f ? " (auto)" : ""); - BulletText("CellPaddingX: %.1f, CellSpacingX: %.1f/%.1f, OuterPaddingX: %.1f", table->CellPaddingX, table->CellSpacingX1, table->CellSpacingX2, table->OuterPaddingX); - BulletText("HoveredColumnBody: %d, HoveredColumnBorder: %d", table->HoveredColumnBody, table->HoveredColumnBorder); - BulletText("ResizedColumn: %d, ReorderColumn: %d, HeldHeaderColumn: %d", table->ResizedColumn, table->ReorderColumn, table->HeldHeaderColumn); - //BulletText("BgDrawChannels: %d/%d", 0, table->BgDrawChannelUnfrozen); - float sum_weights = 0.0f; - for (int n = 0; n < table->ColumnsCount; n++) - if (table->Columns[n].Flags & ImGuiTableColumnFlags_WidthStretch) - sum_weights += table->Columns[n].StretchWeight; - for (int n = 0; n < table->ColumnsCount; n++) - { - ImGuiTableColumn* column = &table->Columns[n]; - const char* name = TableGetColumnName(table, n); - ImFormatString(buf, IM_ARRAYSIZE(buf), - "Column %d order %d '%s': offset %+.2f to %+.2f%s\n" - "Enabled: %d, VisibleX/Y: %d/%d, RequestOutput: %d, SkipItems: %d, DrawChannels: %d,%d\n" - "WidthGiven: %.1f, Request/Auto: %.1f/%.1f, StretchWeight: %.3f (%.1f%%)\n" - "MinX: %.1f, MaxX: %.1f (%+.1f), ClipRect: %.1f to %.1f (+%.1f)\n" - "ContentWidth: %.1f,%.1f, HeadersUsed/Ideal %.1f/%.1f\n" - "Sort: %d%s, UserID: 0x%08X, Flags: 0x%04X: %s%s%s..", - n, column->DisplayOrder, name, column->MinX - table->WorkRect.Min.x, column->MaxX - table->WorkRect.Min.x, (n < table->FreezeColumnsRequest) ? " (Frozen)" : "", - column->IsEnabled, column->IsVisibleX, column->IsVisibleY, column->IsRequestOutput, column->IsSkipItems, column->DrawChannelFrozen, column->DrawChannelUnfrozen, - column->WidthGiven, column->WidthRequest, column->WidthAuto, column->StretchWeight, column->StretchWeight > 0.0f ? (column->StretchWeight / sum_weights) * 100.0f : 0.0f, - column->MinX, column->MaxX, column->MaxX - column->MinX, column->ClipRect.Min.x, column->ClipRect.Max.x, column->ClipRect.Max.x - column->ClipRect.Min.x, - column->ContentMaxXFrozen - column->WorkMinX, column->ContentMaxXUnfrozen - column->WorkMinX, column->ContentMaxXHeadersUsed - column->WorkMinX, column->ContentMaxXHeadersIdeal - column->WorkMinX, - column->SortOrder, (column->SortDirection == ImGuiSortDirection_Ascending) ? " (Asc)" : (column->SortDirection == ImGuiSortDirection_Descending) ? " (Des)" : "", column->UserID, column->Flags, - (column->Flags & ImGuiTableColumnFlags_WidthStretch) ? "WidthStretch " : "", - (column->Flags & ImGuiTableColumnFlags_WidthFixed) ? "WidthFixed " : "", - (column->Flags & ImGuiTableColumnFlags_NoResize) ? "NoResize " : ""); - Bullet(); - Selectable(buf); - if (IsItemHovered()) - { - ImRect r(column->MinX, table->OuterRect.Min.y, column->MaxX, table->OuterRect.Max.y); - GetForegroundDrawList()->AddRect(r.Min, r.Max, IM_COL32(255, 255, 0, 255)); - } - } - if (ImGuiTableSettings* settings = TableGetBoundSettings(table)) - DebugNodeTableSettings(settings); - if (clear_settings) - table->IsResetAllRequest = true; - TreePop(); -} - -void ImGui::DebugNodeTableSettings(ImGuiTableSettings* settings) -{ - if (!TreeNode((void*)(intptr_t)settings->ID, "Settings 0x%08X (%d columns)", settings->ID, settings->ColumnsCount)) - return; - BulletText("SaveFlags: 0x%08X", settings->SaveFlags); - BulletText("ColumnsCount: %d (max %d)", settings->ColumnsCount, settings->ColumnsCountMax); - for (int n = 0; n < settings->ColumnsCount; n++) - { - ImGuiTableColumnSettings* column_settings = &settings->GetColumnSettings()[n]; - ImGuiSortDirection sort_dir = (column_settings->SortOrder != -1) ? (ImGuiSortDirection)column_settings->SortDirection : ImGuiSortDirection_None; - BulletText("Column %d Order %d SortOrder %d %s Vis %d %s %7.3f UserID 0x%08X", - n, column_settings->DisplayOrder, column_settings->SortOrder, - (sort_dir == ImGuiSortDirection_Ascending) ? "Asc" : (sort_dir == ImGuiSortDirection_Descending) ? "Des" : "---", - column_settings->IsEnabled, column_settings->IsStretch ? "Weight" : "Width ", column_settings->WidthOrWeight, column_settings->UserID); - } - TreePop(); -} - -#else // #ifndef IMGUI_DISABLE_METRICS_WINDOW - -void ImGui::DebugNodeTable(ImGuiTable*) {} -void ImGui::DebugNodeTableSettings(ImGuiTableSettings*) {} - -#endif - - -//------------------------------------------------------------------------- -// [SECTION] Columns, BeginColumns, EndColumns, etc. -// (This is a legacy API, prefer using BeginTable/EndTable!) -//------------------------------------------------------------------------- -// FIXME: sizing is lossy when columns width is very small (default width may turn negative etc.) -//------------------------------------------------------------------------- -// - SetWindowClipRectBeforeSetChannel() [Internal] -// - GetColumnIndex() -// - GetColumnsCount() -// - GetColumnOffset() -// - GetColumnWidth() -// - SetColumnOffset() -// - SetColumnWidth() -// - PushColumnClipRect() [Internal] -// - PushColumnsBackground() [Internal] -// - PopColumnsBackground() [Internal] -// - FindOrCreateColumns() [Internal] -// - GetColumnsID() [Internal] -// - BeginColumns() -// - NextColumn() -// - EndColumns() -// - Columns() -//------------------------------------------------------------------------- - -// [Internal] Small optimization to avoid calls to PopClipRect/SetCurrentChannel/PushClipRect in sequences, -// they would meddle many times with the underlying ImDrawCmd. -// Instead, we do a preemptive overwrite of clipping rectangle _without_ altering the command-buffer and let -// the subsequent single call to SetCurrentChannel() does it things once. -void ImGui::SetWindowClipRectBeforeSetChannel(ImGuiWindow* window, const ImRect& clip_rect) -{ - ImVec4 clip_rect_vec4 = clip_rect.ToVec4(); - window->ClipRect = clip_rect; - window->DrawList->_CmdHeader.ClipRect = clip_rect_vec4; - window->DrawList->_ClipRectStack.Data[window->DrawList->_ClipRectStack.Size - 1] = clip_rect_vec4; -} - -int ImGui::GetColumnIndex() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.CurrentColumns ? window->DC.CurrentColumns->Current : 0; -} - -int ImGui::GetColumnsCount() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - return window->DC.CurrentColumns ? window->DC.CurrentColumns->Count : 1; -} - -float ImGui::GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm) -{ - return offset_norm * (columns->OffMaxX - columns->OffMinX); -} - -float ImGui::GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset) -{ - return offset / (columns->OffMaxX - columns->OffMinX); -} - -static const float COLUMNS_HIT_RECT_HALF_WIDTH = 4.0f; - -static float GetDraggedColumnOffset(ImGuiOldColumns* columns, int column_index) -{ - // Active (dragged) column always follow mouse. The reason we need this is that dragging a column to the right edge of an auto-resizing - // window creates a feedback loop because we store normalized positions. So while dragging we enforce absolute positioning. - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT(column_index > 0); // We are not supposed to drag column 0. - IM_ASSERT(g.ActiveId == columns->ID + ImGuiID(column_index)); - - float x = g.IO.MousePos.x - g.ActiveIdClickOffset.x + COLUMNS_HIT_RECT_HALF_WIDTH - window->Pos.x; - x = ImMax(x, ImGui::GetColumnOffset(column_index - 1) + g.Style.ColumnsMinSpacing); - if ((columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths)) - x = ImMin(x, ImGui::GetColumnOffset(column_index + 1) - g.Style.ColumnsMinSpacing); - - return x; -} - -float ImGui::GetColumnOffset(int column_index) -{ - ImGuiWindow* window = GetCurrentWindowRead(); - ImGuiOldColumns* columns = window->DC.CurrentColumns; - if (columns == NULL) - return 0.0f; - - if (column_index < 0) - column_index = columns->Current; - IM_ASSERT(column_index < columns->Columns.Size); - - const float t = columns->Columns[column_index].OffsetNorm; - const float x_offset = ImLerp(columns->OffMinX, columns->OffMaxX, t); - return x_offset; -} - -static float GetColumnWidthEx(ImGuiOldColumns* columns, int column_index, bool before_resize = false) -{ - if (column_index < 0) - column_index = columns->Current; - - float offset_norm; - if (before_resize) - offset_norm = columns->Columns[column_index + 1].OffsetNormBeforeResize - columns->Columns[column_index].OffsetNormBeforeResize; - else - offset_norm = columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm; - return ImGui::GetColumnOffsetFromNorm(columns, offset_norm); -} - -float ImGui::GetColumnWidth(int column_index) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiOldColumns* columns = window->DC.CurrentColumns; - if (columns == NULL) - return GetContentRegionAvail().x; - - if (column_index < 0) - column_index = columns->Current; - return GetColumnOffsetFromNorm(columns, columns->Columns[column_index + 1].OffsetNorm - columns->Columns[column_index].OffsetNorm); -} - -void ImGui::SetColumnOffset(int column_index, float offset) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiOldColumns* columns = window->DC.CurrentColumns; - IM_ASSERT(columns != NULL); - - if (column_index < 0) - column_index = columns->Current; - IM_ASSERT(column_index < columns->Columns.Size); - - const bool preserve_width = !(columns->Flags & ImGuiOldColumnFlags_NoPreserveWidths) && (column_index < columns->Count - 1); - const float width = preserve_width ? GetColumnWidthEx(columns, column_index, columns->IsBeingResized) : 0.0f; - - if (!(columns->Flags & ImGuiOldColumnFlags_NoForceWithinWindow)) - offset = ImMin(offset, columns->OffMaxX - g.Style.ColumnsMinSpacing * (columns->Count - column_index)); - columns->Columns[column_index].OffsetNorm = GetColumnNormFromOffset(columns, offset - columns->OffMinX); - - if (preserve_width) - SetColumnOffset(column_index + 1, offset + ImMax(g.Style.ColumnsMinSpacing, width)); -} - -void ImGui::SetColumnWidth(int column_index, float width) -{ - ImGuiWindow* window = GetCurrentWindowRead(); - ImGuiOldColumns* columns = window->DC.CurrentColumns; - IM_ASSERT(columns != NULL); - - if (column_index < 0) - column_index = columns->Current; - SetColumnOffset(column_index + 1, GetColumnOffset(column_index) + width); -} - -void ImGui::PushColumnClipRect(int column_index) -{ - ImGuiWindow* window = GetCurrentWindowRead(); - ImGuiOldColumns* columns = window->DC.CurrentColumns; - if (column_index < 0) - column_index = columns->Current; - - ImGuiOldColumnData* column = &columns->Columns[column_index]; - PushClipRect(column->ClipRect.Min, column->ClipRect.Max, false); -} - -// Get into the columns background draw command (which is generally the same draw command as before we called BeginColumns) -void ImGui::PushColumnsBackground() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - ImGuiOldColumns* columns = window->DC.CurrentColumns; - if (columns->Count == 1) - return; - - // Optimization: avoid SetCurrentChannel() + PushClipRect() - columns->HostBackupClipRect = window->ClipRect; - SetWindowClipRectBeforeSetChannel(window, columns->HostInitialClipRect); - columns->Splitter.SetCurrentChannel(window->DrawList, 0); -} - -void ImGui::PopColumnsBackground() -{ - ImGuiWindow* window = GetCurrentWindowRead(); - ImGuiOldColumns* columns = window->DC.CurrentColumns; - if (columns->Count == 1) - return; - - // Optimization: avoid PopClipRect() + SetCurrentChannel() - SetWindowClipRectBeforeSetChannel(window, columns->HostBackupClipRect); - columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); -} - -ImGuiOldColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id) -{ - // We have few columns per window so for now we don't need bother much with turning this into a faster lookup. - for (int n = 0; n < window->ColumnsStorage.Size; n++) - if (window->ColumnsStorage[n].ID == id) - return &window->ColumnsStorage[n]; - - window->ColumnsStorage.push_back(ImGuiOldColumns()); - ImGuiOldColumns* columns = &window->ColumnsStorage.back(); - columns->ID = id; - return columns; -} - -ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count) -{ - ImGuiWindow* window = GetCurrentWindow(); - - // Differentiate column ID with an arbitrary prefix for cases where users name their columns set the same as another widget. - // In addition, when an identifier isn't explicitly provided we include the number of columns in the hash to make it uniquer. - PushID(0x11223347 + (str_id ? 0 : columns_count)); - ImGuiID id = window->GetID(str_id ? str_id : "columns"); - PopID(); - - return id; -} - -void ImGui::BeginColumns(const char* str_id, int columns_count, ImGuiOldColumnFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - - IM_ASSERT(columns_count >= 1); - IM_ASSERT(window->DC.CurrentColumns == NULL); // Nested columns are currently not supported - - // Acquire storage for the columns set - ImGuiID id = GetColumnsID(str_id, columns_count); - ImGuiOldColumns* columns = FindOrCreateColumns(window, id); - IM_ASSERT(columns->ID == id); - columns->Current = 0; - columns->Count = columns_count; - columns->Flags = flags; - window->DC.CurrentColumns = columns; - - columns->HostCursorPosY = window->DC.CursorPos.y; - columns->HostCursorMaxPosX = window->DC.CursorMaxPos.x; - columns->HostInitialClipRect = window->ClipRect; - columns->HostBackupParentWorkRect = window->ParentWorkRect; - window->ParentWorkRect = window->WorkRect; - - // Set state for first column - // We aim so that the right-most column will have the same clipping width as other after being clipped by parent ClipRect - const float column_padding = g.Style.ItemSpacing.x; - const float half_clip_extend_x = ImFloor(ImMax(window->WindowPadding.x * 0.5f, window->WindowBorderSize)); - const float max_1 = window->WorkRect.Max.x + column_padding - ImMax(column_padding - window->WindowPadding.x, 0.0f); - const float max_2 = window->WorkRect.Max.x + half_clip_extend_x; - columns->OffMinX = window->DC.Indent.x - column_padding + ImMax(column_padding - window->WindowPadding.x, 0.0f); - columns->OffMaxX = ImMax(ImMin(max_1, max_2) - window->Pos.x, columns->OffMinX + 1.0f); - columns->LineMinY = columns->LineMaxY = window->DC.CursorPos.y; - - // Clear data if columns count changed - if (columns->Columns.Size != 0 && columns->Columns.Size != columns_count + 1) - columns->Columns.resize(0); - - // Initialize default widths - columns->IsFirstFrame = (columns->Columns.Size == 0); - if (columns->Columns.Size == 0) - { - columns->Columns.reserve(columns_count + 1); - for (int n = 0; n < columns_count + 1; n++) - { - ImGuiOldColumnData column; - column.OffsetNorm = n / (float)columns_count; - columns->Columns.push_back(column); - } - } - - for (int n = 0; n < columns_count; n++) - { - // Compute clipping rectangle - ImGuiOldColumnData* column = &columns->Columns[n]; - float clip_x1 = IM_ROUND(window->Pos.x + GetColumnOffset(n)); - float clip_x2 = IM_ROUND(window->Pos.x + GetColumnOffset(n + 1) - 1.0f); - column->ClipRect = ImRect(clip_x1, -FLT_MAX, clip_x2, +FLT_MAX); - column->ClipRect.ClipWithFull(window->ClipRect); - } - - if (columns->Count > 1) - { - columns->Splitter.Split(window->DrawList, 1 + columns->Count); - columns->Splitter.SetCurrentChannel(window->DrawList, 1); - PushColumnClipRect(0); - } - - // We don't generally store Indent.x inside ColumnsOffset because it may be manipulated by the user. - float offset_0 = GetColumnOffset(columns->Current); - float offset_1 = GetColumnOffset(columns->Current + 1); - float width = offset_1 - offset_0; - PushItemWidth(width * 0.65f); - window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); - window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); - window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; -} - -void ImGui::NextColumn() -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems || window->DC.CurrentColumns == NULL) - return; - - ImGuiContext& g = *GImGui; - ImGuiOldColumns* columns = window->DC.CurrentColumns; - - if (columns->Count == 1) - { - window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); - IM_ASSERT(columns->Current == 0); - return; - } - - // Next column - if (++columns->Current == columns->Count) - columns->Current = 0; - - PopItemWidth(); - - // Optimization: avoid PopClipRect() + SetCurrentChannel() + PushClipRect() - // (which would needlessly attempt to update commands in the wrong channel, then pop or overwrite them), - ImGuiOldColumnData* column = &columns->Columns[columns->Current]; - SetWindowClipRectBeforeSetChannel(window, column->ClipRect); - columns->Splitter.SetCurrentChannel(window->DrawList, columns->Current + 1); - - const float column_padding = g.Style.ItemSpacing.x; - columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); - if (columns->Current > 0) - { - // Columns 1+ ignore IndentX (by canceling it out) - // FIXME-COLUMNS: Unnecessary, could be locked? - window->DC.ColumnsOffset.x = GetColumnOffset(columns->Current) - window->DC.Indent.x + column_padding; - } - else - { - // New row/line: column 0 honor IndentX. - window->DC.ColumnsOffset.x = ImMax(column_padding - window->WindowPadding.x, 0.0f); - columns->LineMinY = columns->LineMaxY; - } - window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); - window->DC.CursorPos.y = columns->LineMinY; - window->DC.CurrLineSize = ImVec2(0.0f, 0.0f); - window->DC.CurrLineTextBaseOffset = 0.0f; - - // FIXME-COLUMNS: Share code with BeginColumns() - move code on columns setup. - float offset_0 = GetColumnOffset(columns->Current); - float offset_1 = GetColumnOffset(columns->Current + 1); - float width = offset_1 - offset_0; - PushItemWidth(width * 0.65f); - window->WorkRect.Max.x = window->Pos.x + offset_1 - column_padding; -} - -void ImGui::EndColumns() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - ImGuiOldColumns* columns = window->DC.CurrentColumns; - IM_ASSERT(columns != NULL); - - PopItemWidth(); - if (columns->Count > 1) - { - PopClipRect(); - columns->Splitter.Merge(window->DrawList); - } - - const ImGuiOldColumnFlags flags = columns->Flags; - columns->LineMaxY = ImMax(columns->LineMaxY, window->DC.CursorPos.y); - window->DC.CursorPos.y = columns->LineMaxY; - if (!(flags & ImGuiOldColumnFlags_GrowParentContentsSize)) - window->DC.CursorMaxPos.x = columns->HostCursorMaxPosX; // Restore cursor max pos, as columns don't grow parent - - // Draw columns borders and handle resize - // The IsBeingResized flag ensure we preserve pre-resize columns width so back-and-forth are not lossy - bool is_being_resized = false; - if (!(flags & ImGuiOldColumnFlags_NoBorder) && !window->SkipItems) - { - // We clip Y boundaries CPU side because very long triangles are mishandled by some GPU drivers. - const float y1 = ImMax(columns->HostCursorPosY, window->ClipRect.Min.y); - const float y2 = ImMin(window->DC.CursorPos.y, window->ClipRect.Max.y); - int dragging_column = -1; - for (int n = 1; n < columns->Count; n++) - { - ImGuiOldColumnData* column = &columns->Columns[n]; - float x = window->Pos.x + GetColumnOffset(n); - const ImGuiID column_id = columns->ID + ImGuiID(n); - const float column_hit_hw = COLUMNS_HIT_RECT_HALF_WIDTH; - const ImRect column_hit_rect(ImVec2(x - column_hit_hw, y1), ImVec2(x + column_hit_hw, y2)); - KeepAliveID(column_id); - if (IsClippedEx(column_hit_rect, column_id, false)) - continue; - - bool hovered = false, held = false; - if (!(flags & ImGuiOldColumnFlags_NoResize)) - { - ButtonBehavior(column_hit_rect, column_id, &hovered, &held); - if (hovered || held) - g.MouseCursor = ImGuiMouseCursor_ResizeEW; - if (held && !(column->Flags & ImGuiOldColumnFlags_NoResize)) - dragging_column = n; - } - - // Draw column - const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : hovered ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); - const float xi = IM_FLOOR(x); - window->DrawList->AddLine(ImVec2(xi, y1 + 1.0f), ImVec2(xi, y2), col); - } - - // Apply dragging after drawing the column lines, so our rendered lines are in sync with how items were displayed during the frame. - if (dragging_column != -1) - { - if (!columns->IsBeingResized) - for (int n = 0; n < columns->Count + 1; n++) - columns->Columns[n].OffsetNormBeforeResize = columns->Columns[n].OffsetNorm; - columns->IsBeingResized = is_being_resized = true; - float x = GetDraggedColumnOffset(columns, dragging_column); - SetColumnOffset(dragging_column, x); - } - } - columns->IsBeingResized = is_being_resized; - - window->WorkRect = window->ParentWorkRect; - window->ParentWorkRect = columns->HostBackupParentWorkRect; - window->DC.CurrentColumns = NULL; - window->DC.ColumnsOffset.x = 0.0f; - window->DC.CursorPos.x = IM_FLOOR(window->Pos.x + window->DC.Indent.x + window->DC.ColumnsOffset.x); -} - -void ImGui::Columns(int columns_count, const char* id, bool border) -{ - ImGuiWindow* window = GetCurrentWindow(); - IM_ASSERT(columns_count >= 1); - - ImGuiOldColumnFlags flags = (border ? 0 : ImGuiOldColumnFlags_NoBorder); - //flags |= ImGuiOldColumnFlags_NoPreserveWidths; // NB: Legacy behavior - ImGuiOldColumns* columns = window->DC.CurrentColumns; - if (columns != NULL && columns->Count == columns_count && columns->Flags == flags) - return; - - if (columns != NULL) - EndColumns(); - - if (columns_count != 1) - BeginColumns(id, columns_count, flags); -} - -//------------------------------------------------------------------------- - -#endif // #ifndef IMGUI_DISABLE diff --git a/third_party/imgui/imgui_widgets.cpp b/third_party/imgui/imgui_widgets.cpp deleted file mode 100644 index 380bb2a4..00000000 --- a/third_party/imgui/imgui_widgets.cpp +++ /dev/null @@ -1,7980 +0,0 @@ -// dear imgui, v1.82 WIP -// (widgets code) - -/* - -Index of this file: - -// [SECTION] Forward Declarations -// [SECTION] Widgets: Text, etc. -// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.) -// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.) -// [SECTION] Widgets: ComboBox -// [SECTION] Data Type and Data Formatting Helpers -// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. -// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. -// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. -// [SECTION] Widgets: InputText, InputTextMultiline -// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. -// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. -// [SECTION] Widgets: Selectable -// [SECTION] Widgets: ListBox -// [SECTION] Widgets: PlotLines, PlotHistogram -// [SECTION] Widgets: Value helpers -// [SECTION] Widgets: MenuItem, BeginMenu, EndMenu, etc. -// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. -// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. -// [SECTION] Widgets: Columns, BeginColumns, EndColumns, etc. - -*/ - -#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) -#define _CRT_SECURE_NO_WARNINGS -#endif - -#include "imgui.h" -#ifndef IMGUI_DISABLE - -#ifndef IMGUI_DEFINE_MATH_OPERATORS -#define IMGUI_DEFINE_MATH_OPERATORS -#endif -#include "imgui_internal.h" - -// System includes -#include // toupper -#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier -#include // intptr_t -#else -#include // intptr_t -#endif - -//------------------------------------------------------------------------- -// Warnings -//------------------------------------------------------------------------- - -// Visual Studio warnings -#ifdef _MSC_VER -#pragma warning (disable: 4127) // condition expression is constant -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later -#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types -#endif -#endif - -// Clang/GCC warnings with -Weverything -#if defined(__clang__) -#if __has_warning("-Wunknown-warning-option") -#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' // not all warnings are known by all Clang versions and they tend to be rename-happy.. so ignoring warnings triggers new warnings on some configuration. Great! -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' -#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast // yes, they are more terse. -#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants (typically 0.0f) is ok. -#pragma clang diagnostic ignored "-Wformat-nonliteral" // warning: format string is not a string literal // passing non-literal to vsnformat(). yes, user passing incorrect format strings can crash the code. -#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness -#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant // some standard header variations use #define NULL 0 -#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function // using printf() is a misery with this as C++ va_arg ellipsis changes float to double. -#pragma clang diagnostic ignored "-Wenum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') -#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated -#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision -#elif defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wformat-nonliteral" // warning: format not a string literal, format string not checked -#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead -#endif - -//------------------------------------------------------------------------- -// Data -//------------------------------------------------------------------------- - -// Widgets -static const float DRAGDROP_HOLD_TO_OPEN_TIMER = 0.70f; // Time for drag-hold to activate items accepting the ImGuiButtonFlags_PressedOnDragDropHold button behavior. -static const float DRAG_MOUSE_THRESHOLD_FACTOR = 0.50f; // Multiplier for the default value of io.MouseDragThreshold to make DragFloat/DragInt react faster to mouse drags. - -// Those MIN/MAX values are not define because we need to point to them -static const signed char IM_S8_MIN = -128; -static const signed char IM_S8_MAX = 127; -static const unsigned char IM_U8_MIN = 0; -static const unsigned char IM_U8_MAX = 0xFF; -static const signed short IM_S16_MIN = -32768; -static const signed short IM_S16_MAX = 32767; -static const unsigned short IM_U16_MIN = 0; -static const unsigned short IM_U16_MAX = 0xFFFF; -static const ImS32 IM_S32_MIN = INT_MIN; // (-2147483647 - 1), (0x80000000); -static const ImS32 IM_S32_MAX = INT_MAX; // (2147483647), (0x7FFFFFFF) -static const ImU32 IM_U32_MIN = 0; -static const ImU32 IM_U32_MAX = UINT_MAX; // (0xFFFFFFFF) -#ifdef LLONG_MIN -static const ImS64 IM_S64_MIN = LLONG_MIN; // (-9223372036854775807ll - 1ll); -static const ImS64 IM_S64_MAX = LLONG_MAX; // (9223372036854775807ll); -#else -static const ImS64 IM_S64_MIN = -9223372036854775807LL - 1; -static const ImS64 IM_S64_MAX = 9223372036854775807LL; -#endif -static const ImU64 IM_U64_MIN = 0; -#ifdef ULLONG_MAX -static const ImU64 IM_U64_MAX = ULLONG_MAX; // (0xFFFFFFFFFFFFFFFFull); -#else -static const ImU64 IM_U64_MAX = (2ULL * 9223372036854775807LL + 1); -#endif - -//------------------------------------------------------------------------- -// [SECTION] Forward Declarations -//------------------------------------------------------------------------- - -// For InputTextEx() -static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); -static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end); -static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false); - -//------------------------------------------------------------------------- -// [SECTION] Widgets: Text, etc. -//------------------------------------------------------------------------- -// - TextEx() [Internal] -// - TextUnformatted() -// - Text() -// - TextV() -// - TextColored() -// - TextColoredV() -// - TextDisabled() -// - TextDisabledV() -// - TextWrapped() -// - TextWrappedV() -// - LabelText() -// - LabelTextV() -// - BulletText() -// - BulletTextV() -//------------------------------------------------------------------------- - -void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - IM_ASSERT(text != NULL); - const char* text_begin = text; - if (text_end == NULL) - text_end = text + strlen(text); // FIXME-OPT - - const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); - const float wrap_pos_x = window->DC.TextWrapPos; - const bool wrap_enabled = (wrap_pos_x >= 0.0f); - if (text_end - text > 2000 && !wrap_enabled) - { - // Long text! - // Perform manual coarse clipping to optimize for long multi-line text - // - From this point we will only compute the width of lines that are visible. Optimization only available when word-wrapping is disabled. - // - We also don't vertically center the text within the line full height, which is unlikely to matter because we are likely the biggest and only item on the line. - // - We use memchr(), pay attention that well optimized versions of those str/mem functions are much faster than a casually written loop. - const char* line = text; - const float line_height = GetTextLineHeight(); - ImVec2 text_size(0, 0); - - // Lines to skip (can't skip when logging text) - ImVec2 pos = text_pos; - if (!g.LogEnabled) - { - int lines_skippable = (int)((window->ClipRect.Min.y - text_pos.y) / line_height); - if (lines_skippable > 0) - { - int lines_skipped = 0; - while (line < text_end && lines_skipped < lines_skippable) - { - const char* line_end = (const char*)memchr(line, '\n', text_end - line); - if (!line_end) - line_end = text_end; - if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) - text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); - line = line_end + 1; - lines_skipped++; - } - pos.y += lines_skipped * line_height; - } - } - - // Lines to render - if (line < text_end) - { - ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); - while (line < text_end) - { - if (IsClippedEx(line_rect, 0, false)) - break; - - const char* line_end = (const char*)memchr(line, '\n', text_end - line); - if (!line_end) - line_end = text_end; - text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); - RenderText(pos, line, line_end, false); - line = line_end + 1; - line_rect.Min.y += line_height; - line_rect.Max.y += line_height; - pos.y += line_height; - } - - // Count remaining lines - int lines_skipped = 0; - while (line < text_end) - { - const char* line_end = (const char*)memchr(line, '\n', text_end - line); - if (!line_end) - line_end = text_end; - if ((flags & ImGuiTextFlags_NoWidthForLargeClippedText) == 0) - text_size.x = ImMax(text_size.x, CalcTextSize(line, line_end).x); - line = line_end + 1; - lines_skipped++; - } - pos.y += lines_skipped * line_height; - } - text_size.y = (pos - text_pos).y; - - ImRect bb(text_pos, text_pos + text_size); - ItemSize(text_size, 0.0f); - ItemAdd(bb, 0); - } - else - { - const float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; - const ImVec2 text_size = CalcTextSize(text_begin, text_end, false, wrap_width); - - ImRect bb(text_pos, text_pos + text_size); - ItemSize(text_size, 0.0f); - if (!ItemAdd(bb, 0)) - return; - - // Render (we don't hide text after ## in this end-user function) - RenderTextWrapped(bb.Min, text_begin, text_end, wrap_width); - } -} - -void ImGui::TextUnformatted(const char* text, const char* text_end) -{ - TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); -} - -void ImGui::Text(const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - TextV(fmt, args); - va_end(args); -} - -void ImGui::TextV(const char* fmt, va_list args) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - TextEx(g.TempBuffer, text_end, ImGuiTextFlags_NoWidthForLargeClippedText); -} - -void ImGui::TextColored(const ImVec4& col, const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - TextColoredV(col, fmt, args); - va_end(args); -} - -void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args) -{ - PushStyleColor(ImGuiCol_Text, col); - if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) - TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting - else - TextV(fmt, args); - PopStyleColor(); -} - -void ImGui::TextDisabled(const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - TextDisabledV(fmt, args); - va_end(args); -} - -void ImGui::TextDisabledV(const char* fmt, va_list args) -{ - ImGuiContext& g = *GImGui; - PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]); - if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) - TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting - else - TextV(fmt, args); - PopStyleColor(); -} - -void ImGui::TextWrapped(const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - TextWrappedV(fmt, args); - va_end(args); -} - -void ImGui::TextWrappedV(const char* fmt, va_list args) -{ - ImGuiContext& g = *GImGui; - bool need_backup = (g.CurrentWindow->DC.TextWrapPos < 0.0f); // Keep existing wrap position if one is already set - if (need_backup) - PushTextWrapPos(0.0f); - if (fmt[0] == '%' && fmt[1] == 's' && fmt[2] == 0) - TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting - else - TextV(fmt, args); - if (need_backup) - PopTextWrapPos(); -} - -void ImGui::LabelText(const char* label, const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - LabelTextV(label, fmt, args); - va_end(args); -} - -// Add a label+text combo aligned to other label+value widgets -void ImGui::LabelTextV(const char* label, const char* fmt, va_list args) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const float w = CalcItemWidth(); - - const ImVec2 label_size = CalcTextSize(label, NULL, true); - const ImRect value_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2)); - const ImRect total_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x : 0.0f), style.FramePadding.y * 2) + label_size); - ItemSize(total_bb, style.FramePadding.y); - if (!ItemAdd(total_bb, 0)) - return; - - // Render - const char* value_text_begin = &g.TempBuffer[0]; - const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - RenderTextClipped(value_bb.Min, value_bb.Max, value_text_begin, value_text_end, NULL, ImVec2(0.0f, 0.5f)); - if (label_size.x > 0.0f) - RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label); -} - -void ImGui::BulletText(const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - BulletTextV(fmt, args); - va_end(args); -} - -// Text with a little bullet aligned to the typical tree node. -void ImGui::BulletTextV(const char* fmt, va_list args) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - - const char* text_begin = g.TempBuffer; - const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - const ImVec2 label_size = CalcTextSize(text_begin, text_end, false); - const ImVec2 total_size = ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x * 2) : 0.0f), label_size.y); // Empty text doesn't add padding - ImVec2 pos = window->DC.CursorPos; - pos.y += window->DC.CurrLineTextBaseOffset; - ItemSize(total_size, 0.0f); - const ImRect bb(pos, pos + total_size); - if (!ItemAdd(bb, 0)) - return; - - // Render - ImU32 text_col = GetColorU32(ImGuiCol_Text); - RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, g.FontSize * 0.5f), text_col); - RenderText(bb.Min + ImVec2(g.FontSize + style.FramePadding.x * 2, 0.0f), text_begin, text_end, false); -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: Main -//------------------------------------------------------------------------- -// - ButtonBehavior() [Internal] -// - Button() -// - SmallButton() -// - InvisibleButton() -// - ArrowButton() -// - CloseButton() [Internal] -// - CollapseButton() [Internal] -// - GetWindowScrollbarID() [Internal] -// - GetWindowScrollbarRect() [Internal] -// - Scrollbar() [Internal] -// - ScrollbarEx() [Internal] -// - Image() -// - ImageButton() -// - Checkbox() -// - CheckboxFlagsT() [Internal] -// - CheckboxFlags() -// - RadioButton() -// - ProgressBar() -// - Bullet() -//------------------------------------------------------------------------- - -// The ButtonBehavior() function is key to many interactions and used by many/most widgets. -// Because we handle so many cases (keyboard/gamepad navigation, drag and drop) and many specific behavior (via ImGuiButtonFlags_), -// this code is a little complex. -// By far the most common path is interacting with the Mouse using the default ImGuiButtonFlags_PressedOnClickRelease button behavior. -// See the series of events below and the corresponding state reported by dear imgui: -//------------------------------------------------------------------------------------------------------------------------------------------------ -// with PressedOnClickRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() -// Frame N+0 (mouse is outside bb) - - - - - - -// Frame N+1 (mouse moves inside bb) - true - - - - -// Frame N+2 (mouse button is down) - true true true - true -// Frame N+3 (mouse button is down) - true true - - - -// Frame N+4 (mouse moves outside bb) - - true - - - -// Frame N+5 (mouse moves inside bb) - true true - - - -// Frame N+6 (mouse button is released) true true - - true - -// Frame N+7 (mouse button is released) - true - - - - -// Frame N+8 (mouse moves outside bb) - - - - - - -//------------------------------------------------------------------------------------------------------------------------------------------------ -// with PressedOnClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() -// Frame N+2 (mouse button is down) true true true true - true -// Frame N+3 (mouse button is down) - true true - - - -// Frame N+6 (mouse button is released) - true - - true - -// Frame N+7 (mouse button is released) - true - - - - -//------------------------------------------------------------------------------------------------------------------------------------------------ -// with PressedOnRelease: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() -// Frame N+2 (mouse button is down) - true - - - true -// Frame N+3 (mouse button is down) - true - - - - -// Frame N+6 (mouse button is released) true true - - - - -// Frame N+7 (mouse button is released) - true - - - - -//------------------------------------------------------------------------------------------------------------------------------------------------ -// with PressedOnDoubleClick: return-value IsItemHovered() IsItemActive() IsItemActivated() IsItemDeactivated() IsItemClicked() -// Frame N+0 (mouse button is down) - true - - - true -// Frame N+1 (mouse button is down) - true - - - - -// Frame N+2 (mouse button is released) - true - - - - -// Frame N+3 (mouse button is released) - true - - - - -// Frame N+4 (mouse button is down) true true true true - true -// Frame N+5 (mouse button is down) - true true - - - -// Frame N+6 (mouse button is released) - true - - true - -// Frame N+7 (mouse button is released) - true - - - - -//------------------------------------------------------------------------------------------------------------------------------------------------ -// Note that some combinations are supported, -// - PressedOnDragDropHold can generally be associated with any flag. -// - PressedOnDoubleClick can be associated by PressedOnClickRelease/PressedOnRelease, in which case the second release event won't be reported. -//------------------------------------------------------------------------------------------------------------------------------------------------ -// The behavior of the return-value changes when ImGuiButtonFlags_Repeat is set: -// Repeat+ Repeat+ Repeat+ Repeat+ -// PressedOnClickRelease PressedOnClick PressedOnRelease PressedOnDoubleClick -//------------------------------------------------------------------------------------------------------------------------------------------------- -// Frame N+0 (mouse button is down) - true - true -// ... - - - - -// Frame N + RepeatDelay true true - true -// ... - - - - -// Frame N + RepeatDelay + RepeatRate*N true true - true -//------------------------------------------------------------------------------------------------------------------------------------------------- - -bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - - if (flags & ImGuiButtonFlags_Disabled) - { - if (out_hovered) *out_hovered = false; - if (out_held) *out_held = false; - if (g.ActiveId == id) ClearActiveID(); - return false; - } - - // Default only reacts to left mouse button - if ((flags & ImGuiButtonFlags_MouseButtonMask_) == 0) - flags |= ImGuiButtonFlags_MouseButtonDefault_; - - // Default behavior requires click + release inside bounding box - if ((flags & ImGuiButtonFlags_PressedOnMask_) == 0) - flags |= ImGuiButtonFlags_PressedOnDefault_; - - ImGuiWindow* backup_hovered_window = g.HoveredWindow; - const bool flatten_hovered_children = (flags & ImGuiButtonFlags_FlattenChildren) && g.HoveredWindow && g.HoveredWindow->RootWindow == window; - if (flatten_hovered_children) - g.HoveredWindow = window; - -#ifdef IMGUI_ENABLE_TEST_ENGINE - if (id != 0 && window->DC.LastItemId != id) - IMGUI_TEST_ENGINE_ITEM_ADD(bb, id); -#endif - - bool pressed = false; - bool hovered = ItemHoverable(bb, id); - - // Drag source doesn't report as hovered - if (hovered && g.DragDropActive && g.DragDropPayload.SourceId == id && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoDisableHover)) - hovered = false; - - // Special mode for Drag and Drop where holding button pressed for a long time while dragging another item triggers the button - if (g.DragDropActive && (flags & ImGuiButtonFlags_PressedOnDragDropHold) && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoHoldToOpenOthers)) - if (IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem)) - { - hovered = true; - SetHoveredID(id); - if (CalcTypematicRepeatAmount(g.HoveredIdTimer + 0.0001f - g.IO.DeltaTime, g.HoveredIdTimer + 0.0001f, DRAGDROP_HOLD_TO_OPEN_TIMER, 0.00f)) - { - pressed = true; - g.DragDropHoldJustPressedId = id; - FocusWindow(window); - } - } - - if (flatten_hovered_children) - g.HoveredWindow = backup_hovered_window; - - // AllowOverlap mode (rarely used) requires previous frame HoveredId to be null or to match. This allows using patterns where a later submitted widget overlaps a previous one. - if (hovered && (flags & ImGuiButtonFlags_AllowItemOverlap) && (g.HoveredIdPreviousFrame != id && g.HoveredIdPreviousFrame != 0)) - hovered = false; - - // Mouse handling - if (hovered) - { - if (!(flags & ImGuiButtonFlags_NoKeyModifiers) || (!g.IO.KeyCtrl && !g.IO.KeyShift && !g.IO.KeyAlt)) - { - // Poll buttons - int mouse_button_clicked = -1; - int mouse_button_released = -1; - if ((flags & ImGuiButtonFlags_MouseButtonLeft) && g.IO.MouseClicked[0]) { mouse_button_clicked = 0; } - else if ((flags & ImGuiButtonFlags_MouseButtonRight) && g.IO.MouseClicked[1]) { mouse_button_clicked = 1; } - else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && g.IO.MouseClicked[2]) { mouse_button_clicked = 2; } - if ((flags & ImGuiButtonFlags_MouseButtonLeft) && g.IO.MouseReleased[0]) { mouse_button_released = 0; } - else if ((flags & ImGuiButtonFlags_MouseButtonRight) && g.IO.MouseReleased[1]) { mouse_button_released = 1; } - else if ((flags & ImGuiButtonFlags_MouseButtonMiddle) && g.IO.MouseReleased[2]) { mouse_button_released = 2; } - - if (mouse_button_clicked != -1 && g.ActiveId != id) - { - if (flags & (ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere)) - { - SetActiveID(id, window); - g.ActiveIdMouseButton = mouse_button_clicked; - if (!(flags & ImGuiButtonFlags_NoNavFocus)) - SetFocusID(id, window); - FocusWindow(window); - } - if ((flags & ImGuiButtonFlags_PressedOnClick) || ((flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseDoubleClicked[mouse_button_clicked])) - { - pressed = true; - if (flags & ImGuiButtonFlags_NoHoldingActiveId) - ClearActiveID(); - else - SetActiveID(id, window); // Hold on ID - g.ActiveIdMouseButton = mouse_button_clicked; - FocusWindow(window); - } - } - if ((flags & ImGuiButtonFlags_PressedOnRelease) && mouse_button_released != -1) - { - // Repeat mode trumps on release behavior - const bool has_repeated_at_least_once = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button_released] >= g.IO.KeyRepeatDelay; - if (!has_repeated_at_least_once) - pressed = true; - ClearActiveID(); - } - - // 'Repeat' mode acts when held regardless of _PressedOn flags (see table above). - // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. - if (g.ActiveId == id && (flags & ImGuiButtonFlags_Repeat)) - if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, true)) - pressed = true; - } - - if (pressed) - g.NavDisableHighlight = true; - } - - // Gamepad/Keyboard navigation - // We report navigated item as hovered but we don't set g.HoveredId to not interfere with mouse. - if (g.NavId == id && !g.NavDisableHighlight && g.NavDisableMouseHover && (g.ActiveId == 0 || g.ActiveId == id || g.ActiveId == window->MoveId)) - if (!(flags & ImGuiButtonFlags_NoHoveredOnFocus)) - hovered = true; - if (g.NavActivateDownId == id) - { - bool nav_activated_by_code = (g.NavActivateId == id); - bool nav_activated_by_inputs = IsNavInputTest(ImGuiNavInput_Activate, (flags & ImGuiButtonFlags_Repeat) ? ImGuiInputReadMode_Repeat : ImGuiInputReadMode_Pressed); - if (nav_activated_by_code || nav_activated_by_inputs) - pressed = true; - if (nav_activated_by_code || nav_activated_by_inputs || g.ActiveId == id) - { - // Set active id so it can be queried by user via IsItemActive(), equivalent of holding the mouse button. - g.NavActivateId = id; // This is so SetActiveId assign a Nav source - SetActiveID(id, window); - if ((nav_activated_by_code || nav_activated_by_inputs) && !(flags & ImGuiButtonFlags_NoNavFocus)) - SetFocusID(id, window); - } - } - - // Process while held - bool held = false; - if (g.ActiveId == id) - { - if (g.ActiveIdSource == ImGuiInputSource_Mouse) - { - if (g.ActiveIdIsJustActivated) - g.ActiveIdClickOffset = g.IO.MousePos - bb.Min; - - const int mouse_button = g.ActiveIdMouseButton; - IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); - if (g.IO.MouseDown[mouse_button]) - { - held = true; - } - else - { - bool release_in = hovered && (flags & ImGuiButtonFlags_PressedOnClickRelease) != 0; - bool release_anywhere = (flags & ImGuiButtonFlags_PressedOnClickReleaseAnywhere) != 0; - if ((release_in || release_anywhere) && !g.DragDropActive) - { - // Report as pressed when releasing the mouse (this is the most common path) - bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseDownWasDoubleClick[mouse_button]; - bool is_repeating_already = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps - if (!is_double_click_release && !is_repeating_already) - pressed = true; - } - ClearActiveID(); - } - if (!(flags & ImGuiButtonFlags_NoNavFocus)) - g.NavDisableHighlight = true; - } - else if (g.ActiveIdSource == ImGuiInputSource_Nav) - { - // When activated using Nav, we hold on the ActiveID until activation button is released - if (g.NavActivateDownId != id) - ClearActiveID(); - } - if (pressed) - g.ActiveIdHasBeenPressedBefore = true; - } - - if (out_hovered) *out_hovered = hovered; - if (out_held) *out_held = held; - - return pressed; -} - -bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - const ImVec2 label_size = CalcTextSize(label, NULL, true); - - ImVec2 pos = window->DC.CursorPos; - if ((flags & ImGuiButtonFlags_AlignTextBaseLine) && style.FramePadding.y < window->DC.CurrLineTextBaseOffset) // Try to vertically align buttons that are smaller/have no padding so that text baseline matches (bit hacky, since it shouldn't be a flag) - pos.y += window->DC.CurrLineTextBaseOffset - style.FramePadding.y; - ImVec2 size = CalcItemSize(size_arg, label_size.x + style.FramePadding.x * 2.0f, label_size.y + style.FramePadding.y * 2.0f); - - const ImRect bb(pos, pos + size); - ItemSize(size, style.FramePadding.y); - if (!ItemAdd(bb, id)) - return false; - - if (window->DC.ItemFlags & ImGuiItemFlags_ButtonRepeat) - flags |= ImGuiButtonFlags_Repeat; - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); - - // Render - const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); - RenderNavHighlight(bb, id); - RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding); - - if (g.LogEnabled) - LogSetNextTextDecoration("[", "]"); - RenderTextClipped(bb.Min + style.FramePadding, bb.Max - style.FramePadding, label, NULL, &label_size, style.ButtonTextAlign, &bb); - - // Automatically close popups - //if (pressed && !(flags & ImGuiButtonFlags_DontClosePopups) && (window->Flags & ImGuiWindowFlags_Popup)) - // CloseCurrentPopup(); - - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.LastItemStatusFlags); - return pressed; -} - -bool ImGui::Button(const char* label, const ImVec2& size_arg) -{ - return ButtonEx(label, size_arg, ImGuiButtonFlags_None); -} - -// Small buttons fits within text without additional vertical spacing. -bool ImGui::SmallButton(const char* label) -{ - ImGuiContext& g = *GImGui; - float backup_padding_y = g.Style.FramePadding.y; - g.Style.FramePadding.y = 0.0f; - bool pressed = ButtonEx(label, ImVec2(0, 0), ImGuiButtonFlags_AlignTextBaseLine); - g.Style.FramePadding.y = backup_padding_y; - return pressed; -} - -// Tip: use ImGui::PushID()/PopID() to push indices or pointers in the ID stack. -// Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id) -bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - // Cannot use zero-size for InvisibleButton(). Unlike Button() there is not way to fallback using the label size. - IM_ASSERT(size_arg.x != 0.0f && size_arg.y != 0.0f); - - const ImGuiID id = window->GetID(str_id); - ImVec2 size = CalcItemSize(size_arg, 0.0f, 0.0f); - const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); - ItemSize(size); - if (!ItemAdd(bb, id)) - return false; - - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); - - return pressed; -} - -bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiID id = window->GetID(str_id); - const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); - const float default_size = GetFrameHeight(); - ItemSize(size, (size.y >= default_size) ? g.Style.FramePadding.y : -1.0f); - if (!ItemAdd(bb, id)) - return false; - - if (window->DC.ItemFlags & ImGuiItemFlags_ButtonRepeat) - flags |= ImGuiButtonFlags_Repeat; - - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags); - - // Render - const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); - const ImU32 text_col = GetColorU32(ImGuiCol_Text); - RenderNavHighlight(bb, id); - RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding); - RenderArrow(window->DrawList, bb.Min + ImVec2(ImMax(0.0f, (size.x - g.FontSize) * 0.5f), ImMax(0.0f, (size.y - g.FontSize) * 0.5f)), text_col, dir); - - return pressed; -} - -bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir) -{ - float sz = GetFrameHeight(); - return ArrowButtonEx(str_id, dir, ImVec2(sz, sz), ImGuiButtonFlags_None); -} - -// Button to close a window -bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - // Tweak 1: Shrink hit-testing area if button covers an abnormally large proportion of the visible region. That's in order to facilitate moving the window away. (#3825) - // This may better be applied as a general hit-rect reduction mechanism for all widgets to ensure the area to move window is always accessible? - const ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f); - ImRect bb_interact = bb; - const float area_to_visible_ratio = window->OuterRectClipped.GetArea() / bb.GetArea(); - if (area_to_visible_ratio < 1.5f) - bb_interact.Expand(ImFloor(bb_interact.GetSize() * -0.25f)); - - // Tweak 2: We intentionally allow interaction when clipped so that a mechanical Alt,Right,Activate sequence can always close a window. - // (this isn't the regular behavior of buttons, but it doesn't affect the user much because navigation tends to keep items visible). - bool is_clipped = !ItemAdd(bb_interact, id); - - bool hovered, held; - bool pressed = ButtonBehavior(bb_interact, id, &hovered, &held); - if (is_clipped) - return pressed; - - // Render - // FIXME: Clarify this mess - ImU32 col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered); - ImVec2 center = bb.GetCenter(); - if (hovered) - window->DrawList->AddCircleFilled(center, ImMax(2.0f, g.FontSize * 0.5f + 1.0f), col, 12); - - float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f; - ImU32 cross_col = GetColorU32(ImGuiCol_Text); - center -= ImVec2(0.5f, 0.5f); - window->DrawList->AddLine(center + ImVec2(+cross_extent, +cross_extent), center + ImVec2(-cross_extent, -cross_extent), cross_col, 1.0f); - window->DrawList->AddLine(center + ImVec2(+cross_extent, -cross_extent), center + ImVec2(-cross_extent, +cross_extent), cross_col, 1.0f); - - return pressed; -} - -bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f); - ItemAdd(bb, id); - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_None); - - // Render - ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); - ImU32 text_col = GetColorU32(ImGuiCol_Text); - ImVec2 center = bb.GetCenter(); - if (hovered || held) - window->DrawList->AddCircleFilled(center/*+ ImVec2(0.0f, -0.5f)*/, g.FontSize * 0.5f + 1.0f, bg_col, 12); - RenderArrow(window->DrawList, bb.Min + g.Style.FramePadding, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f); - - // Switch to moving the window after mouse is moved beyond the initial drag threshold - if (IsItemActive() && IsMouseDragging(0)) - StartMouseMovingWindow(window); - - return pressed; -} - -ImGuiID ImGui::GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis) -{ - return window->GetIDNoKeepAlive(axis == ImGuiAxis_X ? "#SCROLLX" : "#SCROLLY"); -} - -// Return scrollbar rectangle, must only be called for corresponding axis if window->ScrollbarX/Y is set. -ImRect ImGui::GetWindowScrollbarRect(ImGuiWindow* window, ImGuiAxis axis) -{ - const ImRect outer_rect = window->Rect(); - const ImRect inner_rect = window->InnerRect; - const float border_size = window->WindowBorderSize; - const float scrollbar_size = window->ScrollbarSizes[axis ^ 1]; // (ScrollbarSizes.x = width of Y scrollbar; ScrollbarSizes.y = height of X scrollbar) - IM_ASSERT(scrollbar_size > 0.0f); - if (axis == ImGuiAxis_X) - return ImRect(inner_rect.Min.x, ImMax(outer_rect.Min.y, outer_rect.Max.y - border_size - scrollbar_size), inner_rect.Max.x, outer_rect.Max.y); - else - return ImRect(ImMax(outer_rect.Min.x, outer_rect.Max.x - border_size - scrollbar_size), inner_rect.Min.y, outer_rect.Max.x, inner_rect.Max.y); -} - -void ImGui::Scrollbar(ImGuiAxis axis) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - const ImGuiID id = GetWindowScrollbarID(window, axis); - KeepAliveID(id); - - // Calculate scrollbar bounding box - ImRect bb = GetWindowScrollbarRect(window, axis); - ImDrawCornerFlags rounding_corners = 0; - if (axis == ImGuiAxis_X) - { - rounding_corners |= ImDrawCornerFlags_BotLeft; - if (!window->ScrollbarY) - rounding_corners |= ImDrawCornerFlags_BotRight; - } - else - { - if ((window->Flags & ImGuiWindowFlags_NoTitleBar) && !(window->Flags & ImGuiWindowFlags_MenuBar)) - rounding_corners |= ImDrawCornerFlags_TopRight; - if (!window->ScrollbarX) - rounding_corners |= ImDrawCornerFlags_BotRight; - } - float size_avail = window->InnerRect.Max[axis] - window->InnerRect.Min[axis]; - float size_contents = window->ContentSize[axis] + window->WindowPadding[axis] * 2.0f; - ScrollbarEx(bb, id, axis, &window->Scroll[axis], size_avail, size_contents, rounding_corners); -} - -// Vertical/Horizontal scrollbar -// The entire piece of code below is rather confusing because: -// - We handle absolute seeking (when first clicking outside the grab) and relative manipulation (afterward or when clicking inside the grab) -// - We store values as normalized ratio and in a form that allows the window content to change while we are holding on a scrollbar -// - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal. -// Still, the code should probably be made simpler.. -bool ImGui::ScrollbarEx(const ImRect& bb_frame, ImGuiID id, ImGuiAxis axis, float* p_scroll_v, float size_avail_v, float size_contents_v, ImDrawCornerFlags rounding_corners) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return false; - - const float bb_frame_width = bb_frame.GetWidth(); - const float bb_frame_height = bb_frame.GetHeight(); - if (bb_frame_width <= 0.0f || bb_frame_height <= 0.0f) - return false; - - // When we are too small, start hiding and disabling the grab (this reduce visual noise on very small window and facilitate using the window resize grab) - float alpha = 1.0f; - if ((axis == ImGuiAxis_Y) && bb_frame_height < g.FontSize + g.Style.FramePadding.y * 2.0f) - alpha = ImSaturate((bb_frame_height - g.FontSize) / (g.Style.FramePadding.y * 2.0f)); - if (alpha <= 0.0f) - return false; - - const ImGuiStyle& style = g.Style; - const bool allow_interaction = (alpha >= 1.0f); - - ImRect bb = bb_frame; - bb.Expand(ImVec2(-ImClamp(IM_FLOOR((bb_frame_width - 2.0f) * 0.5f), 0.0f, 3.0f), -ImClamp(IM_FLOOR((bb_frame_height - 2.0f) * 0.5f), 0.0f, 3.0f))); - - // V denote the main, longer axis of the scrollbar (= height for a vertical scrollbar) - const float scrollbar_size_v = (axis == ImGuiAxis_X) ? bb.GetWidth() : bb.GetHeight(); - - // Calculate the height of our grabbable box. It generally represent the amount visible (vs the total scrollable amount) - // But we maintain a minimum size in pixel to allow for the user to still aim inside. - IM_ASSERT(ImMax(size_contents_v, size_avail_v) > 0.0f); // Adding this assert to check if the ImMax(XXX,1.0f) is still needed. PLEASE CONTACT ME if this triggers. - const float win_size_v = ImMax(ImMax(size_contents_v, size_avail_v), 1.0f); - const float grab_h_pixels = ImClamp(scrollbar_size_v * (size_avail_v / win_size_v), style.GrabMinSize, scrollbar_size_v); - const float grab_h_norm = grab_h_pixels / scrollbar_size_v; - - // Handle input right away. None of the code of Begin() is relying on scrolling position before calling Scrollbar(). - bool held = false; - bool hovered = false; - ButtonBehavior(bb, id, &hovered, &held, ImGuiButtonFlags_NoNavFocus); - - float scroll_max = ImMax(1.0f, size_contents_v - size_avail_v); - float scroll_ratio = ImSaturate(*p_scroll_v / scroll_max); - float grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; // Grab position in normalized space - if (held && allow_interaction && grab_h_norm < 1.0f) - { - float scrollbar_pos_v = bb.Min[axis]; - float mouse_pos_v = g.IO.MousePos[axis]; - - // Click position in scrollbar normalized space (0.0f->1.0f) - const float clicked_v_norm = ImSaturate((mouse_pos_v - scrollbar_pos_v) / scrollbar_size_v); - SetHoveredID(id); - - bool seek_absolute = false; - if (g.ActiveIdIsJustActivated) - { - // On initial click calculate the distance between mouse and the center of the grab - seek_absolute = (clicked_v_norm < grab_v_norm || clicked_v_norm > grab_v_norm + grab_h_norm); - if (seek_absolute) - g.ScrollbarClickDeltaToGrabCenter = 0.0f; - else - g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; - } - - // Apply scroll (p_scroll_v will generally point on one member of window->Scroll) - // It is ok to modify Scroll here because we are being called in Begin() after the calculation of ContentSize and before setting up our starting position - const float scroll_v_norm = ImSaturate((clicked_v_norm - g.ScrollbarClickDeltaToGrabCenter - grab_h_norm * 0.5f) / (1.0f - grab_h_norm)); - *p_scroll_v = IM_ROUND(scroll_v_norm * scroll_max);//(win_size_contents_v - win_size_v)); - - // Update values for rendering - scroll_ratio = ImSaturate(*p_scroll_v / scroll_max); - grab_v_norm = scroll_ratio * (scrollbar_size_v - grab_h_pixels) / scrollbar_size_v; - - // Update distance to grab now that we have seeked and saturated - if (seek_absolute) - g.ScrollbarClickDeltaToGrabCenter = clicked_v_norm - grab_v_norm - grab_h_norm * 0.5f; - } - - // Render - const ImU32 bg_col = GetColorU32(ImGuiCol_ScrollbarBg); - const ImU32 grab_col = GetColorU32(held ? ImGuiCol_ScrollbarGrabActive : hovered ? ImGuiCol_ScrollbarGrabHovered : ImGuiCol_ScrollbarGrab, alpha); - window->DrawList->AddRectFilled(bb_frame.Min, bb_frame.Max, bg_col, window->WindowRounding, rounding_corners); - ImRect grab_rect; - if (axis == ImGuiAxis_X) - grab_rect = ImRect(ImLerp(bb.Min.x, bb.Max.x, grab_v_norm), bb.Min.y, ImLerp(bb.Min.x, bb.Max.x, grab_v_norm) + grab_h_pixels, bb.Max.y); - else - grab_rect = ImRect(bb.Min.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm), bb.Max.x, ImLerp(bb.Min.y, bb.Max.y, grab_v_norm) + grab_h_pixels); - window->DrawList->AddRectFilled(grab_rect.Min, grab_rect.Max, grab_col, style.ScrollbarRounding); - - return held; -} - -void ImGui::Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); - if (border_col.w > 0.0f) - bb.Max += ImVec2(2, 2); - ItemSize(bb); - if (!ItemAdd(bb, 0)) - return; - - if (border_col.w > 0.0f) - { - window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(border_col), 0.0f); - window->DrawList->AddImage(user_texture_id, bb.Min + ImVec2(1, 1), bb.Max - ImVec2(1, 1), uv0, uv1, GetColorU32(tint_col)); - } - else - { - window->DrawList->AddImage(user_texture_id, bb.Min, bb.Max, uv0, uv1, GetColorU32(tint_col)); - } -} - -// ImageButton() is flawed as 'id' is always derived from 'texture_id' (see #2464 #1390) -// We provide this internal helper to write your own variant while we figure out how to redesign the public ImageButton() API. -bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& padding, const ImVec4& bg_col, const ImVec4& tint_col) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size + padding * 2); - ItemSize(bb); - if (!ItemAdd(bb, id)) - return false; - - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held); - - // Render - const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button); - RenderNavHighlight(bb, id); - RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, g.Style.FrameRounding)); - if (bg_col.w > 0.0f) - window->DrawList->AddRectFilled(bb.Min + padding, bb.Max - padding, GetColorU32(bg_col)); - window->DrawList->AddImage(texture_id, bb.Min + padding, bb.Max - padding, uv0, uv1, GetColorU32(tint_col)); - - return pressed; -} - -// frame_padding < 0: uses FramePadding from style (default) -// frame_padding = 0: no framing -// frame_padding > 0: set framing size -bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0, const ImVec2& uv1, int frame_padding, const ImVec4& bg_col, const ImVec4& tint_col) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return false; - - // Default to using texture ID as ID. User can still push string/integer prefixes. - PushID((void*)(intptr_t)user_texture_id); - const ImGuiID id = window->GetID("#image"); - PopID(); - - const ImVec2 padding = (frame_padding >= 0) ? ImVec2((float)frame_padding, (float)frame_padding) : g.Style.FramePadding; - return ImageButtonEx(id, user_texture_id, size, uv0, uv1, padding, bg_col, tint_col); -} - -bool ImGui::Checkbox(const char* label, bool* v) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - const ImVec2 label_size = CalcTextSize(label, NULL, true); - - const float square_sz = GetFrameHeight(); - const ImVec2 pos = window->DC.CursorPos; - const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); - ItemSize(total_bb, style.FramePadding.y); - if (!ItemAdd(total_bb, id)) - { - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); - return false; - } - - bool hovered, held; - bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); - if (pressed) - { - *v = !(*v); - MarkItemEdited(id); - } - - const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); - RenderNavHighlight(total_bb, id); - RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding); - ImU32 check_col = GetColorU32(ImGuiCol_CheckMark); - bool mixed_value = (window->DC.ItemFlags & ImGuiItemFlags_MixedValue) != 0; - if (mixed_value) - { - // Undocumented tristate/mixed/indeterminate checkbox (#2644) - // This may seem awkwardly designed because the aim is to make ImGuiItemFlags_MixedValue supported by all widgets (not just checkbox) - ImVec2 pad(ImMax(1.0f, IM_FLOOR(square_sz / 3.6f)), ImMax(1.0f, IM_FLOOR(square_sz / 3.6f))); - window->DrawList->AddRectFilled(check_bb.Min + pad, check_bb.Max - pad, check_col, style.FrameRounding); - } - else if (*v) - { - const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); - RenderCheckMark(window->DrawList, check_bb.Min + ImVec2(pad, pad), check_col, square_sz - pad * 2.0f); - } - - ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); - if (g.LogEnabled) - LogRenderedText(&label_pos, mixed_value ? "[~]" : *v ? "[x]" : "[ ]"); - if (label_size.x > 0.0f) - RenderText(label_pos, label); - - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags | ImGuiItemStatusFlags_Checkable | (*v ? ImGuiItemStatusFlags_Checked : 0)); - return pressed; -} - -template -bool ImGui::CheckboxFlagsT(const char* label, T* flags, T flags_value) -{ - bool all_on = (*flags & flags_value) == flags_value; - bool any_on = (*flags & flags_value) != 0; - bool pressed; - if (!all_on && any_on) - { - ImGuiWindow* window = GetCurrentWindow(); - ImGuiItemFlags backup_item_flags = window->DC.ItemFlags; - window->DC.ItemFlags |= ImGuiItemFlags_MixedValue; - pressed = Checkbox(label, &all_on); - window->DC.ItemFlags = backup_item_flags; - } - else - { - pressed = Checkbox(label, &all_on); - - } - if (pressed) - { - if (all_on) - *flags |= flags_value; - else - *flags &= ~flags_value; - } - return pressed; -} - -bool ImGui::CheckboxFlags(const char* label, int* flags, int flags_value) -{ - return CheckboxFlagsT(label, flags, flags_value); -} - -bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value) -{ - return CheckboxFlagsT(label, flags, flags_value); -} - -bool ImGui::CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value) -{ - return CheckboxFlagsT(label, flags, flags_value); -} - -bool ImGui::CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value) -{ - return CheckboxFlagsT(label, flags, flags_value); -} - -bool ImGui::RadioButton(const char* label, bool active) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - const ImVec2 label_size = CalcTextSize(label, NULL, true); - - const float square_sz = GetFrameHeight(); - const ImVec2 pos = window->DC.CursorPos; - const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); - const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); - ItemSize(total_bb, style.FramePadding.y); - if (!ItemAdd(total_bb, id)) - return false; - - ImVec2 center = check_bb.GetCenter(); - center.x = IM_ROUND(center.x); - center.y = IM_ROUND(center.y); - const float radius = (square_sz - 1.0f) * 0.5f; - - bool hovered, held; - bool pressed = ButtonBehavior(total_bb, id, &hovered, &held); - if (pressed) - MarkItemEdited(id); - - RenderNavHighlight(total_bb, id); - window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), 16); - if (active) - { - const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); - window->DrawList->AddCircleFilled(center, radius - pad, GetColorU32(ImGuiCol_CheckMark), 16); - } - - if (style.FrameBorderSize > 0.0f) - { - window->DrawList->AddCircle(center + ImVec2(1, 1), radius, GetColorU32(ImGuiCol_BorderShadow), 16, style.FrameBorderSize); - window->DrawList->AddCircle(center, radius, GetColorU32(ImGuiCol_Border), 16, style.FrameBorderSize); - } - - ImVec2 label_pos = ImVec2(check_bb.Max.x + style.ItemInnerSpacing.x, check_bb.Min.y + style.FramePadding.y); - if (g.LogEnabled) - LogRenderedText(&label_pos, active ? "(x)" : "( )"); - if (label_size.x > 0.0f) - RenderText(label_pos, label); - - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); - return pressed; -} - -// FIXME: This would work nicely if it was a public template, e.g. 'template RadioButton(const char* label, T* v, T v_button)', but I'm not sure how we would expose it.. -bool ImGui::RadioButton(const char* label, int* v, int v_button) -{ - const bool pressed = RadioButton(label, *v == v_button); - if (pressed) - *v = v_button; - return pressed; -} - -// size_arg (for each axis) < 0.0f: align to end, 0.0f: auto, > 0.0f: specified size -void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - - ImVec2 pos = window->DC.CursorPos; - ImVec2 size = CalcItemSize(size_arg, CalcItemWidth(), g.FontSize + style.FramePadding.y * 2.0f); - ImRect bb(pos, pos + size); - ItemSize(size, style.FramePadding.y); - if (!ItemAdd(bb, 0)) - return; - - // Render - fraction = ImSaturate(fraction); - RenderFrame(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); - bb.Expand(ImVec2(-style.FrameBorderSize, -style.FrameBorderSize)); - const ImVec2 fill_br = ImVec2(ImLerp(bb.Min.x, bb.Max.x, fraction), bb.Max.y); - RenderRectFilledRangeH(window->DrawList, bb, GetColorU32(ImGuiCol_PlotHistogram), 0.0f, fraction, style.FrameRounding); - - // Default displaying the fraction as percentage string, but user can override it - char overlay_buf[32]; - if (!overlay) - { - ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction * 100 + 0.01f); - overlay = overlay_buf; - } - - ImVec2 overlay_size = CalcTextSize(overlay, NULL); - if (overlay_size.x > 0.0f) - RenderTextClipped(ImVec2(ImClamp(fill_br.x + style.ItemSpacing.x, bb.Min.x, bb.Max.x - overlay_size.x - style.ItemInnerSpacing.x), bb.Min.y), bb.Max, overlay, NULL, &overlay_size, ImVec2(0.0f, 0.5f), &bb); -} - -void ImGui::Bullet() -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2), g.FontSize); - const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); - ItemSize(bb); - if (!ItemAdd(bb, 0)) - { - SameLine(0, style.FramePadding.x * 2); - return; - } - - // Render and stay on same line - ImU32 text_col = GetColorU32(ImGuiCol_Text); - RenderBullet(window->DrawList, bb.Min + ImVec2(style.FramePadding.x + g.FontSize * 0.5f, line_height * 0.5f), text_col); - SameLine(0, style.FramePadding.x * 2.0f); -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: Low-level Layout helpers -//------------------------------------------------------------------------- -// - Spacing() -// - Dummy() -// - NewLine() -// - AlignTextToFramePadding() -// - SeparatorEx() [Internal] -// - Separator() -// - SplitterBehavior() [Internal] -// - ShrinkWidths() [Internal] -//------------------------------------------------------------------------- - -void ImGui::Spacing() -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - ItemSize(ImVec2(0, 0)); -} - -void ImGui::Dummy(const ImVec2& size) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); - ItemSize(size); - ItemAdd(bb, 0); -} - -void ImGui::NewLine() -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - const ImGuiLayoutType backup_layout_type = window->DC.LayoutType; - window->DC.LayoutType = ImGuiLayoutType_Vertical; - if (window->DC.CurrLineSize.y > 0.0f) // In the event that we are on a line with items that is smaller that FontSize high, we will preserve its height. - ItemSize(ImVec2(0, 0)); - else - ItemSize(ImVec2(0.0f, g.FontSize)); - window->DC.LayoutType = backup_layout_type; -} - -void ImGui::AlignTextToFramePadding() -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - window->DC.CurrLineSize.y = ImMax(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding.y * 2); - window->DC.CurrLineTextBaseOffset = ImMax(window->DC.CurrLineTextBaseOffset, g.Style.FramePadding.y); -} - -// Horizontal/vertical separating line -void ImGui::SeparatorEx(ImGuiSeparatorFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - - ImGuiContext& g = *GImGui; - IM_ASSERT(ImIsPowerOfTwo(flags & (ImGuiSeparatorFlags_Horizontal | ImGuiSeparatorFlags_Vertical))); // Check that only 1 option is selected - - float thickness_draw = 1.0f; - float thickness_layout = 0.0f; - if (flags & ImGuiSeparatorFlags_Vertical) - { - // Vertical separator, for menu bars (use current line height). Not exposed because it is misleading and it doesn't have an effect on regular layout. - float y1 = window->DC.CursorPos.y; - float y2 = window->DC.CursorPos.y + window->DC.CurrLineSize.y; - const ImRect bb(ImVec2(window->DC.CursorPos.x, y1), ImVec2(window->DC.CursorPos.x + thickness_draw, y2)); - ItemSize(ImVec2(thickness_layout, 0.0f)); - if (!ItemAdd(bb, 0)) - return; - - // Draw - window->DrawList->AddLine(ImVec2(bb.Min.x, bb.Min.y), ImVec2(bb.Min.x, bb.Max.y), GetColorU32(ImGuiCol_Separator)); - if (g.LogEnabled) - LogText(" |"); - } - else if (flags & ImGuiSeparatorFlags_Horizontal) - { - // Horizontal Separator - float x1 = window->Pos.x; - float x2 = window->Pos.x + window->Size.x; - - // FIXME-WORKRECT: old hack (#205) until we decide of consistent behavior with WorkRect/Indent and Separator - if (g.GroupStack.Size > 0 && g.GroupStack.back().WindowID == window->ID) - x1 += window->DC.Indent.x; - - ImGuiOldColumns* columns = (flags & ImGuiSeparatorFlags_SpanAllColumns) ? window->DC.CurrentColumns : NULL; - if (columns) - PushColumnsBackground(); - - // We don't provide our width to the layout so that it doesn't get feed back into AutoFit - const ImRect bb(ImVec2(x1, window->DC.CursorPos.y), ImVec2(x2, window->DC.CursorPos.y + thickness_draw)); - ItemSize(ImVec2(0.0f, thickness_layout)); - const bool item_visible = ItemAdd(bb, 0); - if (item_visible) - { - // Draw - window->DrawList->AddLine(bb.Min, ImVec2(bb.Max.x, bb.Min.y), GetColorU32(ImGuiCol_Separator)); - if (g.LogEnabled) - LogRenderedText(&bb.Min, "--------------------------------\n"); - - } - if (columns) - { - PopColumnsBackground(); - columns->LineMinY = window->DC.CursorPos.y; - } - } -} - -void ImGui::Separator() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return; - - // Those flags should eventually be overridable by the user - ImGuiSeparatorFlags flags = (window->DC.LayoutType == ImGuiLayoutType_Horizontal) ? ImGuiSeparatorFlags_Vertical : ImGuiSeparatorFlags_Horizontal; - flags |= ImGuiSeparatorFlags_SpanAllColumns; - SeparatorEx(flags); -} - -// Using 'hover_visibility_delay' allows us to hide the highlight and mouse cursor for a short time, which can be convenient to reduce visual noise. -bool ImGui::SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - const ImGuiItemFlags item_flags_backup = window->DC.ItemFlags; - window->DC.ItemFlags |= ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus; - bool item_add = ItemAdd(bb, id); - window->DC.ItemFlags = item_flags_backup; - if (!item_add) - return false; - - bool hovered, held; - ImRect bb_interact = bb; - bb_interact.Expand(axis == ImGuiAxis_Y ? ImVec2(0.0f, hover_extend) : ImVec2(hover_extend, 0.0f)); - ButtonBehavior(bb_interact, id, &hovered, &held, ImGuiButtonFlags_FlattenChildren | ImGuiButtonFlags_AllowItemOverlap); - if (g.ActiveId != id) - SetItemAllowOverlap(); - - if (held || (g.HoveredId == id && g.HoveredIdPreviousFrame == id && g.HoveredIdTimer >= hover_visibility_delay)) - SetMouseCursor(axis == ImGuiAxis_Y ? ImGuiMouseCursor_ResizeNS : ImGuiMouseCursor_ResizeEW); - - ImRect bb_render = bb; - if (held) - { - ImVec2 mouse_delta_2d = g.IO.MousePos - g.ActiveIdClickOffset - bb_interact.Min; - float mouse_delta = (axis == ImGuiAxis_Y) ? mouse_delta_2d.y : mouse_delta_2d.x; - - // Minimum pane size - float size_1_maximum_delta = ImMax(0.0f, *size1 - min_size1); - float size_2_maximum_delta = ImMax(0.0f, *size2 - min_size2); - if (mouse_delta < -size_1_maximum_delta) - mouse_delta = -size_1_maximum_delta; - if (mouse_delta > size_2_maximum_delta) - mouse_delta = size_2_maximum_delta; - - // Apply resize - if (mouse_delta != 0.0f) - { - if (mouse_delta < 0.0f) - IM_ASSERT(*size1 + mouse_delta >= min_size1); - if (mouse_delta > 0.0f) - IM_ASSERT(*size2 - mouse_delta >= min_size2); - *size1 += mouse_delta; - *size2 -= mouse_delta; - bb_render.Translate((axis == ImGuiAxis_X) ? ImVec2(mouse_delta, 0.0f) : ImVec2(0.0f, mouse_delta)); - MarkItemEdited(id); - } - } - - // Render - const ImU32 col = GetColorU32(held ? ImGuiCol_SeparatorActive : (hovered && g.HoveredIdTimer >= hover_visibility_delay) ? ImGuiCol_SeparatorHovered : ImGuiCol_Separator); - window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, col, 0.0f); - - return held; -} - -static int IMGUI_CDECL ShrinkWidthItemComparer(const void* lhs, const void* rhs) -{ - const ImGuiShrinkWidthItem* a = (const ImGuiShrinkWidthItem*)lhs; - const ImGuiShrinkWidthItem* b = (const ImGuiShrinkWidthItem*)rhs; - if (int d = (int)(b->Width - a->Width)) - return d; - return (b->Index - a->Index); -} - -// Shrink excess width from a set of item, by removing width from the larger items first. -// Set items Width to -1.0f to disable shrinking this item. -void ImGui::ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess) -{ - if (count == 1) - { - if (items[0].Width >= 0.0f) - items[0].Width = ImMax(items[0].Width - width_excess, 1.0f); - return; - } - ImQsort(items, (size_t)count, sizeof(ImGuiShrinkWidthItem), ShrinkWidthItemComparer); - int count_same_width = 1; - while (width_excess > 0.0f && count_same_width < count) - { - while (count_same_width < count && items[0].Width <= items[count_same_width].Width) - count_same_width++; - float max_width_to_remove_per_item = (count_same_width < count && items[count_same_width].Width >= 0.0f) ? (items[0].Width - items[count_same_width].Width) : (items[0].Width - 1.0f); - if (max_width_to_remove_per_item <= 0.0f) - break; - float width_to_remove_per_item = ImMin(width_excess / count_same_width, max_width_to_remove_per_item); - for (int item_n = 0; item_n < count_same_width; item_n++) - items[item_n].Width -= width_to_remove_per_item; - width_excess -= width_to_remove_per_item * count_same_width; - } - - // Round width and redistribute remainder left-to-right (could make it an option of the function?) - // Ensure that e.g. the right-most tab of a shrunk tab-bar always reaches exactly at the same distance from the right-most edge of the tab bar separator. - width_excess = 0.0f; - for (int n = 0; n < count; n++) - { - float width_rounded = ImFloor(items[n].Width); - width_excess += items[n].Width - width_rounded; - items[n].Width = width_rounded; - } - if (width_excess > 0.0f) - for (int n = 0; n < count; n++) - if (items[n].Index < (int)(width_excess + 0.01f)) - items[n].Width += 1.0f; -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: ComboBox -//------------------------------------------------------------------------- -// - BeginCombo() -// - EndCombo() -// - Combo() -//------------------------------------------------------------------------- - -static float CalcMaxPopupHeightFromItemCount(int items_count) -{ - ImGuiContext& g = *GImGui; - if (items_count <= 0) - return FLT_MAX; - return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2); -} - -bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags) -{ - // Always consume the SetNextWindowSizeConstraint() call in our early return paths - ImGuiContext& g = *GImGui; - bool has_window_size_constraint = (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint) != 0; - g.NextWindowData.Flags &= ~ImGuiNextWindowDataFlags_HasSizeConstraint; - - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - IM_ASSERT((flags & (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)) != (ImGuiComboFlags_NoArrowButton | ImGuiComboFlags_NoPreview)); // Can't use both flags together - - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - - const float arrow_size = (flags & ImGuiComboFlags_NoArrowButton) ? 0.0f : GetFrameHeight(); - const ImVec2 label_size = CalcTextSize(label, NULL, true); - const float expected_w = CalcItemWidth(); - const float w = (flags & ImGuiComboFlags_NoPreview) ? arrow_size : expected_w; - const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); - const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); - ItemSize(total_bb, style.FramePadding.y); - if (!ItemAdd(total_bb, id, &frame_bb)) - return false; - - bool hovered, held; - bool pressed = ButtonBehavior(frame_bb, id, &hovered, &held); - bool popup_open = IsPopupOpen(id, ImGuiPopupFlags_None); - - const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); - const float value_x2 = ImMax(frame_bb.Min.x, frame_bb.Max.x - arrow_size); - RenderNavHighlight(frame_bb, id); - if (!(flags & ImGuiComboFlags_NoPreview)) - window->DrawList->AddRectFilled(frame_bb.Min, ImVec2(value_x2, frame_bb.Max.y), frame_col, style.FrameRounding, (flags & ImGuiComboFlags_NoArrowButton) ? ImDrawCornerFlags_All : ImDrawCornerFlags_Left); - if (!(flags & ImGuiComboFlags_NoArrowButton)) - { - ImU32 bg_col = GetColorU32((popup_open || hovered) ? ImGuiCol_ButtonHovered : ImGuiCol_Button); - ImU32 text_col = GetColorU32(ImGuiCol_Text); - window->DrawList->AddRectFilled(ImVec2(value_x2, frame_bb.Min.y), frame_bb.Max, bg_col, style.FrameRounding, (w <= arrow_size) ? ImDrawCornerFlags_All : ImDrawCornerFlags_Right); - if (value_x2 + arrow_size - style.FramePadding.x <= frame_bb.Max.x) - RenderArrow(window->DrawList, ImVec2(value_x2 + style.FramePadding.y, frame_bb.Min.y + style.FramePadding.y), text_col, ImGuiDir_Down, 1.0f); - } - RenderFrameBorder(frame_bb.Min, frame_bb.Max, style.FrameRounding); - if (preview_value != NULL && !(flags & ImGuiComboFlags_NoPreview)) - { - ImVec2 preview_pos = frame_bb.Min + style.FramePadding; - if (g.LogEnabled) - LogSetNextTextDecoration("{", "}"); - RenderTextClipped(preview_pos, ImVec2(value_x2, frame_bb.Max.y), preview_value, NULL, NULL, ImVec2(0.0f, 0.0f)); - } - if (label_size.x > 0) - RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); - - if ((pressed || g.NavActivateId == id) && !popup_open) - { - if (window->DC.NavLayerCurrent == 0) - window->NavLastIds[0] = id; - OpenPopupEx(id, ImGuiPopupFlags_None); - popup_open = true; - } - - if (!popup_open) - return false; - - if (has_window_size_constraint) - { - g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint; - g.NextWindowData.SizeConstraintRect.Min.x = ImMax(g.NextWindowData.SizeConstraintRect.Min.x, w); - } - else - { - if ((flags & ImGuiComboFlags_HeightMask_) == 0) - flags |= ImGuiComboFlags_HeightRegular; - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiComboFlags_HeightMask_)); // Only one - int popup_max_height_in_items = -1; - if (flags & ImGuiComboFlags_HeightRegular) popup_max_height_in_items = 8; - else if (flags & ImGuiComboFlags_HeightSmall) popup_max_height_in_items = 4; - else if (flags & ImGuiComboFlags_HeightLarge) popup_max_height_in_items = 20; - SetNextWindowSizeConstraints(ImVec2(w, 0.0f), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); - } - - char name[16]; - ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windows based on depth - - // Position the window given a custom constraint (peak into expected window size so we can position it) - // This might be easier to express with an hypothetical SetNextWindowPosConstraints() function. - if (ImGuiWindow* popup_window = FindWindowByName(name)) - if (popup_window->WasActive) - { - // Always override 'AutoPosLastDirection' to not leave a chance for a past value to affect us. - ImVec2 size_expected = CalcWindowNextAutoFitSize(popup_window); - if (flags & ImGuiComboFlags_PopupAlignLeft) - popup_window->AutoPosLastDirection = ImGuiDir_Left; // "Below, Toward Left" - else - popup_window->AutoPosLastDirection = ImGuiDir_Down; // "Below, Toward Right (default)" - ImRect r_outer = GetWindowAllowedExtentRect(popup_window); - ImVec2 pos = FindBestWindowPosForPopupEx(frame_bb.GetBL(), size_expected, &popup_window->AutoPosLastDirection, r_outer, frame_bb, ImGuiPopupPositionPolicy_ComboBox); - SetNextWindowPos(pos); - } - - // We don't use BeginPopupEx() solely because we have a custom name string, which we could make an argument to BeginPopupEx() - ImGuiWindowFlags window_flags = ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoMove; - - // Horizontally align ourselves with the framed text - PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(style.FramePadding.x, style.WindowPadding.y)); - bool ret = Begin(name, NULL, window_flags); - PopStyleVar(); - if (!ret) - { - EndPopup(); - IM_ASSERT(0); // This should never happen as we tested for IsPopupOpen() above - return false; - } - return true; -} - -void ImGui::EndCombo() -{ - EndPopup(); -} - -// Getter for the old Combo() API: const char*[] -static bool Items_ArrayGetter(void* data, int idx, const char** out_text) -{ - const char* const* items = (const char* const*)data; - if (out_text) - *out_text = items[idx]; - return true; -} - -// Getter for the old Combo() API: "item1\0item2\0item3\0" -static bool Items_SingleStringGetter(void* data, int idx, const char** out_text) -{ - // FIXME-OPT: we could pre-compute the indices to fasten this. But only 1 active combo means the waste is limited. - const char* items_separated_by_zeros = (const char*)data; - int items_count = 0; - const char* p = items_separated_by_zeros; - while (*p) - { - if (idx == items_count) - break; - p += strlen(p) + 1; - items_count++; - } - if (!*p) - return false; - if (out_text) - *out_text = p; - return true; -} - -// Old API, prefer using BeginCombo() nowadays if you can. -bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int popup_max_height_in_items) -{ - ImGuiContext& g = *GImGui; - - // Call the getter to obtain the preview string which is a parameter to BeginCombo() - const char* preview_value = NULL; - if (*current_item >= 0 && *current_item < items_count) - items_getter(data, *current_item, &preview_value); - - // The old Combo() API exposed "popup_max_height_in_items". The new more general BeginCombo() API doesn't have/need it, but we emulate it here. - if (popup_max_height_in_items != -1 && !(g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasSizeConstraint)) - SetNextWindowSizeConstraints(ImVec2(0, 0), ImVec2(FLT_MAX, CalcMaxPopupHeightFromItemCount(popup_max_height_in_items))); - - if (!BeginCombo(label, preview_value, ImGuiComboFlags_None)) - return false; - - // Display items - // FIXME-OPT: Use clipper (but we need to disable it on the appearing frame to make sure our call to SetItemDefaultFocus() is processed) - bool value_changed = false; - for (int i = 0; i < items_count; i++) - { - PushID((void*)(intptr_t)i); - const bool item_selected = (i == *current_item); - const char* item_text; - if (!items_getter(data, i, &item_text)) - item_text = "*Unknown item*"; - if (Selectable(item_text, item_selected)) - { - value_changed = true; - *current_item = i; - } - if (item_selected) - SetItemDefaultFocus(); - PopID(); - } - - EndCombo(); - if (value_changed) - MarkItemEdited(g.CurrentWindow->DC.LastItemId); - - return value_changed; -} - -// Combo box helper allowing to pass an array of strings. -bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items) -{ - const bool value_changed = Combo(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_in_items); - return value_changed; -} - -// Combo box helper allowing to pass all items in a single string literal holding multiple zero-terminated items "item1\0item2\0" -bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items) -{ - int items_count = 0; - const char* p = items_separated_by_zeros; // FIXME-OPT: Avoid computing this, or at least only when combo is open - while (*p) - { - p += strlen(p) + 1; - items_count++; - } - bool value_changed = Combo(label, current_item, Items_SingleStringGetter, (void*)items_separated_by_zeros, items_count, height_in_items); - return value_changed; -} - -//------------------------------------------------------------------------- -// [SECTION] Data Type and Data Formatting Helpers [Internal] -//------------------------------------------------------------------------- -// - PatchFormatStringFloatToInt() -// - DataTypeGetInfo() -// - DataTypeFormatString() -// - DataTypeApplyOp() -// - DataTypeApplyOpFromText() -// - DataTypeClamp() -// - GetMinimumStepAtDecimalPrecision -// - RoundScalarWithFormat<>() -//------------------------------------------------------------------------- - -static const ImGuiDataTypeInfo GDataTypeInfo[] = -{ - { sizeof(char), "S8", "%d", "%d" }, // ImGuiDataType_S8 - { sizeof(unsigned char), "U8", "%u", "%u" }, - { sizeof(short), "S16", "%d", "%d" }, // ImGuiDataType_S16 - { sizeof(unsigned short), "U16", "%u", "%u" }, - { sizeof(int), "S32", "%d", "%d" }, // ImGuiDataType_S32 - { sizeof(unsigned int), "U32", "%u", "%u" }, -#ifdef _MSC_VER - { sizeof(ImS64), "S64", "%I64d","%I64d" }, // ImGuiDataType_S64 - { sizeof(ImU64), "U64", "%I64u","%I64u" }, -#else - { sizeof(ImS64), "S64", "%lld", "%lld" }, // ImGuiDataType_S64 - { sizeof(ImU64), "U64", "%llu", "%llu" }, -#endif - { sizeof(float), "float", "%f", "%f" }, // ImGuiDataType_Float (float are promoted to double in va_arg) - { sizeof(double), "double","%f", "%lf" }, // ImGuiDataType_Double -}; -IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT); - -// FIXME-LEGACY: Prior to 1.61 our DragInt() function internally used floats and because of this the compile-time default value for format was "%.0f". -// Even though we changed the compile-time default, we expect users to have carried %f around, which would break the display of DragInt() calls. -// To honor backward compatibility we are rewriting the format string, unless IMGUI_DISABLE_OBSOLETE_FUNCTIONS is enabled. What could possibly go wrong?! -static const char* PatchFormatStringFloatToInt(const char* fmt) -{ - if (fmt[0] == '%' && fmt[1] == '.' && fmt[2] == '0' && fmt[3] == 'f' && fmt[4] == 0) // Fast legacy path for "%.0f" which is expected to be the most common case. - return "%d"; - const char* fmt_start = ImParseFormatFindStart(fmt); // Find % (if any, and ignore %%) - const char* fmt_end = ImParseFormatFindEnd(fmt_start); // Find end of format specifier, which itself is an exercise of confidence/recklessness (because snprintf is dependent on libc or user). - if (fmt_end > fmt_start && fmt_end[-1] == 'f') - { -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - if (fmt_start == fmt && fmt_end[0] == 0) - return "%d"; - ImGuiContext& g = *GImGui; - ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%.*s%%d%s", (int)(fmt_start - fmt), fmt, fmt_end); // Honor leading and trailing decorations, but lose alignment/precision. - return g.TempBuffer; -#else - IM_ASSERT(0 && "DragInt(): Invalid format string!"); // Old versions used a default parameter of "%.0f", please replace with e.g. "%d" -#endif - } - return fmt; -} - -const ImGuiDataTypeInfo* ImGui::DataTypeGetInfo(ImGuiDataType data_type) -{ - IM_ASSERT(data_type >= 0 && data_type < ImGuiDataType_COUNT); - return &GDataTypeInfo[data_type]; -} - -int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format) -{ - // Signedness doesn't matter when pushing integer arguments - if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32) - return ImFormatString(buf, buf_size, format, *(const ImU32*)p_data); - if (data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) - return ImFormatString(buf, buf_size, format, *(const ImU64*)p_data); - if (data_type == ImGuiDataType_Float) - return ImFormatString(buf, buf_size, format, *(const float*)p_data); - if (data_type == ImGuiDataType_Double) - return ImFormatString(buf, buf_size, format, *(const double*)p_data); - if (data_type == ImGuiDataType_S8) - return ImFormatString(buf, buf_size, format, *(const ImS8*)p_data); - if (data_type == ImGuiDataType_U8) - return ImFormatString(buf, buf_size, format, *(const ImU8*)p_data); - if (data_type == ImGuiDataType_S16) - return ImFormatString(buf, buf_size, format, *(const ImS16*)p_data); - if (data_type == ImGuiDataType_U16) - return ImFormatString(buf, buf_size, format, *(const ImU16*)p_data); - IM_ASSERT(0); - return 0; -} - -void ImGui::DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg1, const void* arg2) -{ - IM_ASSERT(op == '+' || op == '-'); - switch (data_type) - { - case ImGuiDataType_S8: - if (op == '+') { *(ImS8*)output = ImAddClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } - if (op == '-') { *(ImS8*)output = ImSubClampOverflow(*(const ImS8*)arg1, *(const ImS8*)arg2, IM_S8_MIN, IM_S8_MAX); } - return; - case ImGuiDataType_U8: - if (op == '+') { *(ImU8*)output = ImAddClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } - if (op == '-') { *(ImU8*)output = ImSubClampOverflow(*(const ImU8*)arg1, *(const ImU8*)arg2, IM_U8_MIN, IM_U8_MAX); } - return; - case ImGuiDataType_S16: - if (op == '+') { *(ImS16*)output = ImAddClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } - if (op == '-') { *(ImS16*)output = ImSubClampOverflow(*(const ImS16*)arg1, *(const ImS16*)arg2, IM_S16_MIN, IM_S16_MAX); } - return; - case ImGuiDataType_U16: - if (op == '+') { *(ImU16*)output = ImAddClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } - if (op == '-') { *(ImU16*)output = ImSubClampOverflow(*(const ImU16*)arg1, *(const ImU16*)arg2, IM_U16_MIN, IM_U16_MAX); } - return; - case ImGuiDataType_S32: - if (op == '+') { *(ImS32*)output = ImAddClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } - if (op == '-') { *(ImS32*)output = ImSubClampOverflow(*(const ImS32*)arg1, *(const ImS32*)arg2, IM_S32_MIN, IM_S32_MAX); } - return; - case ImGuiDataType_U32: - if (op == '+') { *(ImU32*)output = ImAddClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } - if (op == '-') { *(ImU32*)output = ImSubClampOverflow(*(const ImU32*)arg1, *(const ImU32*)arg2, IM_U32_MIN, IM_U32_MAX); } - return; - case ImGuiDataType_S64: - if (op == '+') { *(ImS64*)output = ImAddClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } - if (op == '-') { *(ImS64*)output = ImSubClampOverflow(*(const ImS64*)arg1, *(const ImS64*)arg2, IM_S64_MIN, IM_S64_MAX); } - return; - case ImGuiDataType_U64: - if (op == '+') { *(ImU64*)output = ImAddClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } - if (op == '-') { *(ImU64*)output = ImSubClampOverflow(*(const ImU64*)arg1, *(const ImU64*)arg2, IM_U64_MIN, IM_U64_MAX); } - return; - case ImGuiDataType_Float: - if (op == '+') { *(float*)output = *(const float*)arg1 + *(const float*)arg2; } - if (op == '-') { *(float*)output = *(const float*)arg1 - *(const float*)arg2; } - return; - case ImGuiDataType_Double: - if (op == '+') { *(double*)output = *(const double*)arg1 + *(const double*)arg2; } - if (op == '-') { *(double*)output = *(const double*)arg1 - *(const double*)arg2; } - return; - case ImGuiDataType_COUNT: break; - } - IM_ASSERT(0); -} - -// User can input math operators (e.g. +100) to edit a numerical values. -// NB: This is _not_ a full expression evaluator. We should probably add one and replace this dumb mess.. -bool ImGui::DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format) -{ - while (ImCharIsBlankA(*buf)) - buf++; - - // We don't support '-' op because it would conflict with inputing negative value. - // Instead you can use +-100 to subtract from an existing value - char op = buf[0]; - if (op == '+' || op == '*' || op == '/') - { - buf++; - while (ImCharIsBlankA(*buf)) - buf++; - } - else - { - op = 0; - } - if (!buf[0]) - return false; - - // Copy the value in an opaque buffer so we can compare at the end of the function if it changed at all. - const ImGuiDataTypeInfo* type_info = DataTypeGetInfo(data_type); - ImGuiDataTypeTempStorage data_backup; - memcpy(&data_backup, p_data, type_info->Size); - - if (format == NULL) - format = type_info->ScanFmt; - - // FIXME-LEGACY: The aim is to remove those operators and write a proper expression evaluator at some point.. - int arg1i = 0; - if (data_type == ImGuiDataType_S32) - { - int* v = (int*)p_data; - int arg0i = *v; - float arg1f = 0.0f; - if (op && sscanf(initial_value_buf, format, &arg0i) < 1) - return false; - // Store operand in a float so we can use fractional value for multipliers (*1.1), but constant always parsed as integer so we can fit big integers (e.g. 2000000003) past float precision - if (op == '+') { if (sscanf(buf, "%d", &arg1i)) *v = (int)(arg0i + arg1i); } // Add (use "+-" to subtract) - else if (op == '*') { if (sscanf(buf, "%f", &arg1f)) *v = (int)(arg0i * arg1f); } // Multiply - else if (op == '/') { if (sscanf(buf, "%f", &arg1f) && arg1f != 0.0f) *v = (int)(arg0i / arg1f); } // Divide - else { if (sscanf(buf, format, &arg1i) == 1) *v = arg1i; } // Assign constant - } - else if (data_type == ImGuiDataType_Float) - { - // For floats we have to ignore format with precision (e.g. "%.2f") because sscanf doesn't take them in - format = "%f"; - float* v = (float*)p_data; - float arg0f = *v, arg1f = 0.0f; - if (op && sscanf(initial_value_buf, format, &arg0f) < 1) - return false; - if (sscanf(buf, format, &arg1f) < 1) - return false; - if (op == '+') { *v = arg0f + arg1f; } // Add (use "+-" to subtract) - else if (op == '*') { *v = arg0f * arg1f; } // Multiply - else if (op == '/') { if (arg1f != 0.0f) *v = arg0f / arg1f; } // Divide - else { *v = arg1f; } // Assign constant - } - else if (data_type == ImGuiDataType_Double) - { - format = "%lf"; // scanf differentiate float/double unlike printf which forces everything to double because of ellipsis - double* v = (double*)p_data; - double arg0f = *v, arg1f = 0.0; - if (op && sscanf(initial_value_buf, format, &arg0f) < 1) - return false; - if (sscanf(buf, format, &arg1f) < 1) - return false; - if (op == '+') { *v = arg0f + arg1f; } // Add (use "+-" to subtract) - else if (op == '*') { *v = arg0f * arg1f; } // Multiply - else if (op == '/') { if (arg1f != 0.0f) *v = arg0f / arg1f; } // Divide - else { *v = arg1f; } // Assign constant - } - else if (data_type == ImGuiDataType_U32 || data_type == ImGuiDataType_S64 || data_type == ImGuiDataType_U64) - { - // All other types assign constant - // We don't bother handling support for legacy operators since they are a little too crappy. Instead we will later implement a proper expression evaluator in the future. - sscanf(buf, format, p_data); - } - else - { - // Small types need a 32-bit buffer to receive the result from scanf() - int v32; - sscanf(buf, format, &v32); - if (data_type == ImGuiDataType_S8) - *(ImS8*)p_data = (ImS8)ImClamp(v32, (int)IM_S8_MIN, (int)IM_S8_MAX); - else if (data_type == ImGuiDataType_U8) - *(ImU8*)p_data = (ImU8)ImClamp(v32, (int)IM_U8_MIN, (int)IM_U8_MAX); - else if (data_type == ImGuiDataType_S16) - *(ImS16*)p_data = (ImS16)ImClamp(v32, (int)IM_S16_MIN, (int)IM_S16_MAX); - else if (data_type == ImGuiDataType_U16) - *(ImU16*)p_data = (ImU16)ImClamp(v32, (int)IM_U16_MIN, (int)IM_U16_MAX); - else - IM_ASSERT(0); - } - - return memcmp(&data_backup, p_data, type_info->Size) != 0; -} - -template -static int DataTypeCompareT(const T* lhs, const T* rhs) -{ - if (*lhs < *rhs) return -1; - if (*lhs > *rhs) return +1; - return 0; -} - -int ImGui::DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2) -{ - switch (data_type) - { - case ImGuiDataType_S8: return DataTypeCompareT((const ImS8* )arg_1, (const ImS8* )arg_2); - case ImGuiDataType_U8: return DataTypeCompareT((const ImU8* )arg_1, (const ImU8* )arg_2); - case ImGuiDataType_S16: return DataTypeCompareT((const ImS16* )arg_1, (const ImS16* )arg_2); - case ImGuiDataType_U16: return DataTypeCompareT((const ImU16* )arg_1, (const ImU16* )arg_2); - case ImGuiDataType_S32: return DataTypeCompareT((const ImS32* )arg_1, (const ImS32* )arg_2); - case ImGuiDataType_U32: return DataTypeCompareT((const ImU32* )arg_1, (const ImU32* )arg_2); - case ImGuiDataType_S64: return DataTypeCompareT((const ImS64* )arg_1, (const ImS64* )arg_2); - case ImGuiDataType_U64: return DataTypeCompareT((const ImU64* )arg_1, (const ImU64* )arg_2); - case ImGuiDataType_Float: return DataTypeCompareT((const float* )arg_1, (const float* )arg_2); - case ImGuiDataType_Double: return DataTypeCompareT((const double*)arg_1, (const double*)arg_2); - case ImGuiDataType_COUNT: break; - } - IM_ASSERT(0); - return 0; -} - -template -static bool DataTypeClampT(T* v, const T* v_min, const T* v_max) -{ - // Clamp, both sides are optional, return true if modified - if (v_min && *v < *v_min) { *v = *v_min; return true; } - if (v_max && *v > *v_max) { *v = *v_max; return true; } - return false; -} - -bool ImGui::DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max) -{ - switch (data_type) - { - case ImGuiDataType_S8: return DataTypeClampT((ImS8* )p_data, (const ImS8* )p_min, (const ImS8* )p_max); - case ImGuiDataType_U8: return DataTypeClampT((ImU8* )p_data, (const ImU8* )p_min, (const ImU8* )p_max); - case ImGuiDataType_S16: return DataTypeClampT((ImS16* )p_data, (const ImS16* )p_min, (const ImS16* )p_max); - case ImGuiDataType_U16: return DataTypeClampT((ImU16* )p_data, (const ImU16* )p_min, (const ImU16* )p_max); - case ImGuiDataType_S32: return DataTypeClampT((ImS32* )p_data, (const ImS32* )p_min, (const ImS32* )p_max); - case ImGuiDataType_U32: return DataTypeClampT((ImU32* )p_data, (const ImU32* )p_min, (const ImU32* )p_max); - case ImGuiDataType_S64: return DataTypeClampT((ImS64* )p_data, (const ImS64* )p_min, (const ImS64* )p_max); - case ImGuiDataType_U64: return DataTypeClampT((ImU64* )p_data, (const ImU64* )p_min, (const ImU64* )p_max); - case ImGuiDataType_Float: return DataTypeClampT((float* )p_data, (const float* )p_min, (const float* )p_max); - case ImGuiDataType_Double: return DataTypeClampT((double*)p_data, (const double*)p_min, (const double*)p_max); - case ImGuiDataType_COUNT: break; - } - IM_ASSERT(0); - return false; -} - -static float GetMinimumStepAtDecimalPrecision(int decimal_precision) -{ - static const float min_steps[10] = { 1.0f, 0.1f, 0.01f, 0.001f, 0.0001f, 0.00001f, 0.000001f, 0.0000001f, 0.00000001f, 0.000000001f }; - if (decimal_precision < 0) - return FLT_MIN; - return (decimal_precision < IM_ARRAYSIZE(min_steps)) ? min_steps[decimal_precision] : ImPow(10.0f, (float)-decimal_precision); -} - -template -static const char* ImAtoi(const char* src, TYPE* output) -{ - int negative = 0; - if (*src == '-') { negative = 1; src++; } - if (*src == '+') { src++; } - TYPE v = 0; - while (*src >= '0' && *src <= '9') - v = (v * 10) + (*src++ - '0'); - *output = negative ? -v : v; - return src; -} - -// Sanitize format -// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi -// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi. -static void SanitizeFormatString(const char* fmt, char* fmt_out, size_t fmt_out_size) -{ - const char* fmt_end = ImParseFormatFindEnd(fmt); - IM_ASSERT((size_t)(fmt_end - fmt + 1) < fmt_out_size); // Format is too long, let us know if this happens to you! - while (fmt < fmt_end) - { - char c = *(fmt++); - if (c != '\'' && c != '$' && c != '_') // Custom flags provided by stb_sprintf.h. POSIX 2008 also supports '. - *(fmt_out++) = c; - } - *fmt_out = 0; // Zero-terminate -} - -template -TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v) -{ - const char* fmt_start = ImParseFormatFindStart(format); - if (fmt_start[0] != '%' || fmt_start[1] == '%') // Don't apply if the value is not visible in the format string - return v; - - // Sanitize format - char fmt_sanitized[32]; - SanitizeFormatString(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); - fmt_start = fmt_sanitized; - - // Format value with our rounding, and read back - char v_str[64]; - ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); - const char* p = v_str; - while (*p == ' ') - p++; - if (data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) - v = (TYPE)ImAtof(p); - else - ImAtoi(p, (SIGNEDTYPE*)&v); - return v; -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: DragScalar, DragFloat, DragInt, etc. -//------------------------------------------------------------------------- -// - DragBehaviorT<>() [Internal] -// - DragBehavior() [Internal] -// - DragScalar() -// - DragScalarN() -// - DragFloat() -// - DragFloat2() -// - DragFloat3() -// - DragFloat4() -// - DragFloatRange2() -// - DragInt() -// - DragInt2() -// - DragInt3() -// - DragInt4() -// - DragIntRange2() -//------------------------------------------------------------------------- - -// This is called by DragBehavior() when the widget is active (held by mouse or being manipulated with Nav controls) -template -bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags) -{ - ImGuiContext& g = *GImGui; - const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; - const bool is_decimal = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); - const bool is_clamped = (v_min < v_max); - const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) && is_decimal; - - // Default tweak speed - if (v_speed == 0.0f && is_clamped && (v_max - v_min < FLT_MAX)) - v_speed = (float)((v_max - v_min) * g.DragSpeedDefaultRatio); - - // Inputs accumulates into g.DragCurrentAccum, which is flushed into the current value as soon as it makes a difference with our precision settings - float adjust_delta = 0.0f; - if (g.ActiveIdSource == ImGuiInputSource_Mouse && IsMousePosValid() && IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) - { - adjust_delta = g.IO.MouseDelta[axis]; - if (g.IO.KeyAlt) - adjust_delta *= 1.0f / 100.0f; - if (g.IO.KeyShift) - adjust_delta *= 10.0f; - } - else if (g.ActiveIdSource == ImGuiInputSource_Nav) - { - int decimal_precision = is_decimal ? ImParseFormatPrecision(format, 3) : 0; - adjust_delta = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard | ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_RepeatFast, 1.0f / 10.0f, 10.0f)[axis]; - v_speed = ImMax(v_speed, GetMinimumStepAtDecimalPrecision(decimal_precision)); - } - adjust_delta *= v_speed; - - // For vertical drag we currently assume that Up=higher value (like we do with vertical sliders). This may become a parameter. - if (axis == ImGuiAxis_Y) - adjust_delta = -adjust_delta; - - // For logarithmic use our range is effectively 0..1 so scale the delta into that range - if (is_logarithmic && (v_max - v_min < FLT_MAX) && ((v_max - v_min) > 0.000001f)) // Epsilon to avoid /0 - adjust_delta /= (float)(v_max - v_min); - - // Clear current value on activation - // Avoid altering values and clamping when we are _already_ past the limits and heading in the same direction, so e.g. if range is 0..255, current value is 300 and we are pushing to the right side, keep the 300. - bool is_just_activated = g.ActiveIdIsJustActivated; - bool is_already_past_limits_and_pushing_outward = is_clamped && ((*v >= v_max && adjust_delta > 0.0f) || (*v <= v_min && adjust_delta < 0.0f)); - if (is_just_activated || is_already_past_limits_and_pushing_outward) - { - g.DragCurrentAccum = 0.0f; - g.DragCurrentAccumDirty = false; - } - else if (adjust_delta != 0.0f) - { - g.DragCurrentAccum += adjust_delta; - g.DragCurrentAccumDirty = true; - } - - if (!g.DragCurrentAccumDirty) - return false; - - TYPE v_cur = *v; - FLOATTYPE v_old_ref_for_accum_remainder = (FLOATTYPE)0.0f; - - float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true - const float zero_deadzone_halfsize = 0.0f; // Drag widgets have no deadzone (as it doesn't make sense) - if (is_logarithmic) - { - // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. - const int decimal_precision = is_decimal ? ImParseFormatPrecision(format, 3) : 1; - logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); - - // Convert to parametric space, apply delta, convert back - float v_old_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - float v_new_parametric = v_old_parametric + g.DragCurrentAccum; - v_cur = ScaleValueFromRatioT(data_type, v_new_parametric, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - v_old_ref_for_accum_remainder = v_old_parametric; - } - else - { - v_cur += (SIGNEDTYPE)g.DragCurrentAccum; - } - - // Round to user desired precision based on format string - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_cur = RoundScalarWithFormatT(format, data_type, v_cur); - - // Preserve remainder after rounding has been applied. This also allow slow tweaking of values. - g.DragCurrentAccumDirty = false; - if (is_logarithmic) - { - // Convert to parametric space, apply delta, convert back - float v_new_parametric = ScaleRatioFromValueT(data_type, v_cur, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - g.DragCurrentAccum -= (float)(v_new_parametric - v_old_ref_for_accum_remainder); - } - else - { - g.DragCurrentAccum -= (float)((SIGNEDTYPE)v_cur - (SIGNEDTYPE)*v); - } - - // Lose zero sign for float/double - if (v_cur == (TYPE)-0) - v_cur = (TYPE)0; - - // Clamp values (+ handle overflow/wrap-around for integer types) - if (*v != v_cur && is_clamped) - { - if (v_cur < v_min || (v_cur > *v && adjust_delta < 0.0f && !is_decimal)) - v_cur = v_min; - if (v_cur > v_max || (v_cur < *v && adjust_delta > 0.0f && !is_decimal)) - v_cur = v_max; - } - - // Apply result - if (*v == v_cur) - return false; - *v = v_cur; - return true; -} - -bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) -{ - // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. - IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flags! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); - - ImGuiContext& g = *GImGui; - if (g.ActiveId == id) - { - if (g.ActiveIdSource == ImGuiInputSource_Mouse && !g.IO.MouseDown[0]) - ClearActiveID(); - else if (g.ActiveIdSource == ImGuiInputSource_Nav && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) - ClearActiveID(); - } - if (g.ActiveId != id) - return false; - if ((g.CurrentWindow->DC.ItemFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) - return false; - - switch (data_type) - { - case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS8*) p_min : IM_S8_MIN, p_max ? *(const ImS8*)p_max : IM_S8_MAX, format, flags); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } - case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU8*) p_min : IM_U8_MIN, p_max ? *(const ImU8*)p_max : IM_U8_MAX, format, flags); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } - case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = DragBehaviorT(ImGuiDataType_S32, &v32, v_speed, p_min ? *(const ImS16*)p_min : IM_S16_MIN, p_max ? *(const ImS16*)p_max : IM_S16_MAX, format, flags); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } - case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = DragBehaviorT(ImGuiDataType_U32, &v32, v_speed, p_min ? *(const ImU16*)p_min : IM_U16_MIN, p_max ? *(const ImU16*)p_max : IM_U16_MAX, format, flags); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } - case ImGuiDataType_S32: return DragBehaviorT(data_type, (ImS32*)p_v, v_speed, p_min ? *(const ImS32* )p_min : IM_S32_MIN, p_max ? *(const ImS32* )p_max : IM_S32_MAX, format, flags); - case ImGuiDataType_U32: return DragBehaviorT(data_type, (ImU32*)p_v, v_speed, p_min ? *(const ImU32* )p_min : IM_U32_MIN, p_max ? *(const ImU32* )p_max : IM_U32_MAX, format, flags); - case ImGuiDataType_S64: return DragBehaviorT(data_type, (ImS64*)p_v, v_speed, p_min ? *(const ImS64* )p_min : IM_S64_MIN, p_max ? *(const ImS64* )p_max : IM_S64_MAX, format, flags); - case ImGuiDataType_U64: return DragBehaviorT(data_type, (ImU64*)p_v, v_speed, p_min ? *(const ImU64* )p_min : IM_U64_MIN, p_max ? *(const ImU64* )p_max : IM_U64_MAX, format, flags); - case ImGuiDataType_Float: return DragBehaviorT(data_type, (float*)p_v, v_speed, p_min ? *(const float* )p_min : -FLT_MAX, p_max ? *(const float* )p_max : FLT_MAX, format, flags); - case ImGuiDataType_Double: return DragBehaviorT(data_type, (double*)p_v, v_speed, p_min ? *(const double*)p_min : -DBL_MAX, p_max ? *(const double*)p_max : DBL_MAX, format, flags); - case ImGuiDataType_COUNT: break; - } - IM_ASSERT(0); - return false; -} - -// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a Drag widget, p_min and p_max are optional. -// Read code of e.g. DragFloat(), DragInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. -bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - const float w = CalcItemWidth(); - const ImVec2 label_size = CalcTextSize(label, NULL, true); - const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); - const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); - - ItemSize(total_bb, style.FramePadding.y); - if (!ItemAdd(total_bb, id, &frame_bb)) - return false; - - // Default format string when passing NULL - if (format == NULL) - format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); - - // Tabbing or CTRL-clicking on Drag turns it into an InputText - const bool hovered = ItemHoverable(frame_bb, id); - const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; - bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); - if (!temp_input_is_active) - { - const bool focus_requested = temp_input_allowed && FocusableItemRegister(window, id); - const bool clicked = (hovered && g.IO.MouseClicked[0]); - const bool double_clicked = (hovered && g.IO.MouseDoubleClicked[0]); - if (focus_requested || clicked || double_clicked || g.NavActivateId == id || g.NavInputId == id) - { - SetActiveID(id, window); - SetFocusID(id, window); - FocusWindow(window); - g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); - if (temp_input_allowed && (focus_requested || (clicked && g.IO.KeyCtrl) || double_clicked || g.NavInputId == id)) - { - temp_input_is_active = true; - FocusableItemUnregister(window); - } - } - // Experimental: simple click (without moving) turns Drag into an InputText - // FIXME: Currently polling ImGuiConfigFlags_IsTouchScreen, may either poll an hypothetical ImGuiBackendFlags_HasKeyboard and/or an explicit drag settings. - if (g.IO.ConfigDragClickToInputText && temp_input_allowed && !temp_input_is_active) - if (g.ActiveId == id && hovered && g.IO.MouseReleased[0] && !IsMouseDragPastThreshold(0, g.IO.MouseDragThreshold * DRAG_MOUSE_THRESHOLD_FACTOR)) - { - g.NavInputId = id; - temp_input_is_active = true; - FocusableItemUnregister(window); - } - } - - if (temp_input_is_active) - { - // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set - const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0 && (p_min == NULL || p_max == NULL || DataTypeCompare(data_type, p_min, p_max) < 0); - return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); - } - - // Draw frame - const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : g.HoveredId == id ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); - RenderNavHighlight(frame_bb, id); - RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, style.FrameRounding); - - // Drag behavior - const bool value_changed = DragBehavior(id, data_type, p_data, v_speed, p_min, p_max, format, flags); - if (value_changed) - MarkItemEdited(id); - - // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. - char value_buf[64]; - const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); - if (g.LogEnabled) - LogSetNextTextDecoration("{", "}"); - RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); - - if (label_size.x > 0.0f) - RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); - - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); - return value_changed; -} - -bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - bool value_changed = false; - BeginGroup(); - PushID(label); - PushMultiItemsWidths(components, CalcItemWidth()); - size_t type_size = GDataTypeInfo[data_type].Size; - for (int i = 0; i < components; i++) - { - PushID(i); - if (i > 0) - SameLine(0, g.Style.ItemInnerSpacing.x); - value_changed |= DragScalar("", data_type, p_data, v_speed, p_min, p_max, format, flags); - PopID(); - PopItemWidth(); - p_data = (void*)((char*)p_data + type_size); - } - PopID(); - - const char* label_end = FindRenderedTextEnd(label); - if (label != label_end) - { - SameLine(0, g.Style.ItemInnerSpacing.x); - TextEx(label, label_end); - } - - EndGroup(); - return value_changed; -} - -bool ImGui::DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return DragScalar(label, ImGuiDataType_Float, v, v_speed, &v_min, &v_max, format, flags); -} - -bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return DragScalarN(label, ImGuiDataType_Float, v, 2, v_speed, &v_min, &v_max, format, flags); -} - -bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return DragScalarN(label, ImGuiDataType_Float, v, 3, v_speed, &v_min, &v_max, format, flags); -} - -bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return DragScalarN(label, ImGuiDataType_Float, v, 4, v_speed, &v_min, &v_max, format, flags); -} - -// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. -bool ImGui::DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - PushID(label); - BeginGroup(); - PushMultiItemsWidths(2, CalcItemWidth()); - - float min_min = (v_min >= v_max) ? -FLT_MAX : v_min; - float min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); - ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); - bool value_changed = DragScalar("##min", ImGuiDataType_Float, v_current_min, v_speed, &min_min, &min_max, format, min_flags); - PopItemWidth(); - SameLine(0, g.Style.ItemInnerSpacing.x); - - float max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); - float max_max = (v_min >= v_max) ? FLT_MAX : v_max; - ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); - value_changed |= DragScalar("##max", ImGuiDataType_Float, v_current_max, v_speed, &max_min, &max_max, format_max ? format_max : format, max_flags); - PopItemWidth(); - SameLine(0, g.Style.ItemInnerSpacing.x); - - TextEx(label, FindRenderedTextEnd(label)); - EndGroup(); - PopID(); - return value_changed; -} - -// NB: v_speed is float to allow adjusting the drag speed with more precision -bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return DragScalar(label, ImGuiDataType_S32, v, v_speed, &v_min, &v_max, format, flags); -} - -bool ImGui::DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return DragScalarN(label, ImGuiDataType_S32, v, 2, v_speed, &v_min, &v_max, format, flags); -} - -bool ImGui::DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return DragScalarN(label, ImGuiDataType_S32, v, 3, v_speed, &v_min, &v_max, format, flags); -} - -bool ImGui::DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return DragScalarN(label, ImGuiDataType_S32, v, 4, v_speed, &v_min, &v_max, format, flags); -} - -// NB: You likely want to specify the ImGuiSliderFlags_AlwaysClamp when using this. -bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - PushID(label); - BeginGroup(); - PushMultiItemsWidths(2, CalcItemWidth()); - - int min_min = (v_min >= v_max) ? INT_MIN : v_min; - int min_max = (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max); - ImGuiSliderFlags min_flags = flags | ((min_min == min_max) ? ImGuiSliderFlags_ReadOnly : 0); - bool value_changed = DragInt("##min", v_current_min, v_speed, min_min, min_max, format, min_flags); - PopItemWidth(); - SameLine(0, g.Style.ItemInnerSpacing.x); - - int max_min = (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min); - int max_max = (v_min >= v_max) ? INT_MAX : v_max; - ImGuiSliderFlags max_flags = flags | ((max_min == max_max) ? ImGuiSliderFlags_ReadOnly : 0); - value_changed |= DragInt("##max", v_current_max, v_speed, max_min, max_max, format_max ? format_max : format, max_flags); - PopItemWidth(); - SameLine(0, g.Style.ItemInnerSpacing.x); - - TextEx(label, FindRenderedTextEnd(label)); - EndGroup(); - PopID(); - - return value_changed; -} - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -// Obsolete versions with power parameter. See https://github.com/ocornut/imgui/issues/3361 for details. -bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power) -{ - ImGuiSliderFlags drag_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - IM_ASSERT(p_min != NULL && p_max != NULL); // When using a power curve the drag needs to have known bounds - drag_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return DragScalar(label, data_type, p_data, v_speed, p_min, p_max, format, drag_flags); -} - -bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, float power) -{ - ImGuiSliderFlags drag_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - IM_ASSERT(p_min != NULL && p_max != NULL); // When using a power curve the drag needs to have known bounds - drag_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return DragScalarN(label, data_type, p_data, components, v_speed, p_min, p_max, format, drag_flags); -} - -#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -//------------------------------------------------------------------------- -// [SECTION] Widgets: SliderScalar, SliderFloat, SliderInt, etc. -//------------------------------------------------------------------------- -// - ScaleRatioFromValueT<> [Internal] -// - ScaleValueFromRatioT<> [Internal] -// - SliderBehaviorT<>() [Internal] -// - SliderBehavior() [Internal] -// - SliderScalar() -// - SliderScalarN() -// - SliderFloat() -// - SliderFloat2() -// - SliderFloat3() -// - SliderFloat4() -// - SliderAngle() -// - SliderInt() -// - SliderInt2() -// - SliderInt3() -// - SliderInt4() -// - VSliderScalar() -// - VSliderFloat() -// - VSliderInt() -//------------------------------------------------------------------------- - -// Convert a value v in the output space of a slider into a parametric position on the slider itself (the logical opposite of ScaleValueFromRatioT) -template -float ImGui::ScaleRatioFromValueT(ImGuiDataType data_type, TYPE v, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) -{ - if (v_min == v_max) - return 0.0f; - IM_UNUSED(data_type); - - const TYPE v_clamped = (v_min < v_max) ? ImClamp(v, v_min, v_max) : ImClamp(v, v_max, v_min); - if (is_logarithmic) - { - bool flipped = v_max < v_min; - - if (flipped) // Handle the case where the range is backwards - ImSwap(v_min, v_max); - - // Fudge min/max to avoid getting close to log(0) - FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; - FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; - - // Awkward special cases - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) - if ((v_min == 0.0f) && (v_max < 0.0f)) - v_min_fudged = -logarithmic_zero_epsilon; - else if ((v_max == 0.0f) && (v_min < 0.0f)) - v_max_fudged = -logarithmic_zero_epsilon; - - float result; - - if (v_clamped <= v_min_fudged) - result = 0.0f; // Workaround for values that are in-range but below our fudge - else if (v_clamped >= v_max_fudged) - result = 1.0f; // Workaround for values that are in-range but above our fudge - else if ((v_min * v_max) < 0.0f) // Range crosses zero, so split into two portions - { - float zero_point_center = (-(float)v_min) / ((float)v_max - (float)v_min); // The zero point in parametric space. There's an argument we should take the logarithmic nature into account when calculating this, but for now this should do (and the most common case of a symmetrical range works fine) - float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; - float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; - if (v == 0.0f) - result = zero_point_center; // Special case for exactly zero - else if (v < 0.0f) - result = (1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(-v_min_fudged / logarithmic_zero_epsilon))) * zero_point_snap_L; - else - result = zero_point_snap_R + ((float)(ImLog((FLOATTYPE)v_clamped / logarithmic_zero_epsilon) / ImLog(v_max_fudged / logarithmic_zero_epsilon)) * (1.0f - zero_point_snap_R)); - } - else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider - result = 1.0f - (float)(ImLog(-(FLOATTYPE)v_clamped / -v_max_fudged) / ImLog(-v_min_fudged / -v_max_fudged)); - else - result = (float)(ImLog((FLOATTYPE)v_clamped / v_min_fudged) / ImLog(v_max_fudged / v_min_fudged)); - - return flipped ? (1.0f - result) : result; - } - - // Linear slider - return (float)((FLOATTYPE)(SIGNEDTYPE)(v_clamped - v_min) / (FLOATTYPE)(SIGNEDTYPE)(v_max - v_min)); -} - -// Convert a parametric position on a slider into a value v in the output space (the logical opposite of ScaleRatioFromValueT) -template -TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize) -{ - if (v_min == v_max) - return v_min; - const bool is_decimal = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); - - TYPE result; - if (is_logarithmic) - { - // We special-case the extents because otherwise our fudging can lead to "mathematically correct" but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value - if (t <= 0.0f) - result = v_min; - else if (t >= 1.0f) - result = v_max; - else - { - bool flipped = v_max < v_min; // Check if range is "backwards" - - // Fudge min/max to avoid getting silly results close to zero - FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min; - FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max; - - if (flipped) - ImSwap(v_min_fudged, v_max_fudged); - - // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon) - if ((v_max == 0.0f) && (v_min < 0.0f)) - v_max_fudged = -logarithmic_zero_epsilon; - - float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range - - if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts - { - float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space - float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize; - float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize; - if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R) - result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise) - else if (t_with_flip < zero_point_center) - result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L)))); - else - result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R)))); - } - else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider - result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip))); - else - result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip)); - } - } - else - { - // Linear slider - if (is_decimal) - { - result = ImLerp(v_min, v_max, t); - } - else - { - // - For integer values we want the clicking position to match the grab box so we round above - // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property.. - // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64 - // range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits. - if (t < 1.0) - { - FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t; - result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5))); - } - else - { - result = v_max; - } - } - } - - return result; -} - -// FIXME: Move more of the code into SliderBehavior() -template -bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) -{ - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - - const ImGuiAxis axis = (flags & ImGuiSliderFlags_Vertical) ? ImGuiAxis_Y : ImGuiAxis_X; - const bool is_decimal = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double); - const bool is_logarithmic = (flags & ImGuiSliderFlags_Logarithmic) && is_decimal; - - const float grab_padding = 2.0f; - const float slider_sz = (bb.Max[axis] - bb.Min[axis]) - grab_padding * 2.0f; - float grab_sz = style.GrabMinSize; - SIGNEDTYPE v_range = (v_min < v_max ? v_max - v_min : v_min - v_max); - if (!is_decimal && v_range >= 0) // v_range < 0 may happen on integer overflows - grab_sz = ImMax((float)(slider_sz / (v_range + 1)), style.GrabMinSize); // For integer sliders: if possible have the grab size represent 1 unit - grab_sz = ImMin(grab_sz, slider_sz); - const float slider_usable_sz = slider_sz - grab_sz; - const float slider_usable_pos_min = bb.Min[axis] + grab_padding + grab_sz * 0.5f; - const float slider_usable_pos_max = bb.Max[axis] - grab_padding - grab_sz * 0.5f; - - float logarithmic_zero_epsilon = 0.0f; // Only valid when is_logarithmic is true - float zero_deadzone_halfsize = 0.0f; // Only valid when is_logarithmic is true - if (is_logarithmic) - { - // When using logarithmic sliders, we need to clamp to avoid hitting zero, but our choice of clamp value greatly affects slider precision. We attempt to use the specified precision to estimate a good lower bound. - const int decimal_precision = is_decimal ? ImParseFormatPrecision(format, 3) : 1; - logarithmic_zero_epsilon = ImPow(0.1f, (float)decimal_precision); - zero_deadzone_halfsize = (style.LogSliderDeadzone * 0.5f) / ImMax(slider_usable_sz, 1.0f); - } - - // Process interacting with the slider - bool value_changed = false; - if (g.ActiveId == id) - { - bool set_new_value = false; - float clicked_t = 0.0f; - if (g.ActiveIdSource == ImGuiInputSource_Mouse) - { - if (!g.IO.MouseDown[0]) - { - ClearActiveID(); - } - else - { - const float mouse_abs_pos = g.IO.MousePos[axis]; - clicked_t = (slider_usable_sz > 0.0f) ? ImClamp((mouse_abs_pos - slider_usable_pos_min) / slider_usable_sz, 0.0f, 1.0f) : 0.0f; - if (axis == ImGuiAxis_Y) - clicked_t = 1.0f - clicked_t; - set_new_value = true; - } - } - else if (g.ActiveIdSource == ImGuiInputSource_Nav) - { - if (g.ActiveIdIsJustActivated) - { - g.SliderCurrentAccum = 0.0f; // Reset any stored nav delta upon activation - g.SliderCurrentAccumDirty = false; - } - - const ImVec2 input_delta2 = GetNavInputAmount2d(ImGuiNavDirSourceFlags_Keyboard | ImGuiNavDirSourceFlags_PadDPad, ImGuiInputReadMode_RepeatFast, 0.0f, 0.0f); - float input_delta = (axis == ImGuiAxis_X) ? input_delta2.x : -input_delta2.y; - if (input_delta != 0.0f) - { - const int decimal_precision = is_decimal ? ImParseFormatPrecision(format, 3) : 0; - if (decimal_precision > 0) - { - input_delta /= 100.0f; // Gamepad/keyboard tweak speeds in % of slider bounds - if (IsNavInputDown(ImGuiNavInput_TweakSlow)) - input_delta /= 10.0f; - } - else - { - if ((v_range >= -100.0f && v_range <= 100.0f) || IsNavInputDown(ImGuiNavInput_TweakSlow)) - input_delta = ((input_delta < 0.0f) ? -1.0f : +1.0f) / (float)v_range; // Gamepad/keyboard tweak speeds in integer steps - else - input_delta /= 100.0f; - } - if (IsNavInputDown(ImGuiNavInput_TweakFast)) - input_delta *= 10.0f; - - g.SliderCurrentAccum += input_delta; - g.SliderCurrentAccumDirty = true; - } - - float delta = g.SliderCurrentAccum; - if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated) - { - ClearActiveID(); - } - else if (g.SliderCurrentAccumDirty) - { - clicked_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - - if ((clicked_t >= 1.0f && delta > 0.0f) || (clicked_t <= 0.0f && delta < 0.0f)) // This is to avoid applying the saturation when already past the limits - { - set_new_value = false; - g.SliderCurrentAccum = 0.0f; // If pushing up against the limits, don't continue to accumulate - } - else - { - set_new_value = true; - float old_clicked_t = clicked_t; - clicked_t = ImSaturate(clicked_t + delta); - - // Calculate what our "new" clicked_t will be, and thus how far we actually moved the slider, and subtract this from the accumulator - TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_new = RoundScalarWithFormatT(format, data_type, v_new); - float new_clicked_t = ScaleRatioFromValueT(data_type, v_new, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - - if (delta > 0) - g.SliderCurrentAccum -= ImMin(new_clicked_t - old_clicked_t, delta); - else - g.SliderCurrentAccum -= ImMax(new_clicked_t - old_clicked_t, delta); - } - - g.SliderCurrentAccumDirty = false; - } - } - - if (set_new_value) - { - TYPE v_new = ScaleValueFromRatioT(data_type, clicked_t, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - - // Round to user desired precision based on format string - if (!(flags & ImGuiSliderFlags_NoRoundToFormat)) - v_new = RoundScalarWithFormatT(format, data_type, v_new); - - // Apply result - if (*v != v_new) - { - *v = v_new; - value_changed = true; - } - } - } - - if (slider_sz < 1.0f) - { - *out_grab_bb = ImRect(bb.Min, bb.Min); - } - else - { - // Output grab position so it can be displayed by the caller - float grab_t = ScaleRatioFromValueT(data_type, *v, v_min, v_max, is_logarithmic, logarithmic_zero_epsilon, zero_deadzone_halfsize); - if (axis == ImGuiAxis_Y) - grab_t = 1.0f - grab_t; - const float grab_pos = ImLerp(slider_usable_pos_min, slider_usable_pos_max, grab_t); - if (axis == ImGuiAxis_X) - *out_grab_bb = ImRect(grab_pos - grab_sz * 0.5f, bb.Min.y + grab_padding, grab_pos + grab_sz * 0.5f, bb.Max.y - grab_padding); - else - *out_grab_bb = ImRect(bb.Min.x + grab_padding, grab_pos - grab_sz * 0.5f, bb.Max.x - grab_padding, grab_pos + grab_sz * 0.5f); - } - - return value_changed; -} - -// For 32-bit and larger types, slider bounds are limited to half the natural type range. -// So e.g. an integer Slider between INT_MAX-10 and INT_MAX will fail, but an integer Slider between INT_MAX/2-10 and INT_MAX/2 will be ok. -// It would be possible to lift that limitation with some work but it doesn't seem to be worth it for sliders. -bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb) -{ - // Read imgui.cpp "API BREAKING CHANGES" section for 1.78 if you hit this assert. - IM_ASSERT((flags == 1 || (flags & ImGuiSliderFlags_InvalidMask_) == 0) && "Invalid ImGuiSliderFlags flag! Has the 'float power' argument been mistakenly cast to flags? Call function with ImGuiSliderFlags_Logarithmic flags instead."); - - ImGuiContext& g = *GImGui; - if ((g.CurrentWindow->DC.ItemFlags & ImGuiItemFlags_ReadOnly) || (flags & ImGuiSliderFlags_ReadOnly)) - return false; - - switch (data_type) - { - case ImGuiDataType_S8: { ImS32 v32 = (ImS32)*(ImS8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS8*)p_min, *(const ImS8*)p_max, format, flags, out_grab_bb); if (r) *(ImS8*)p_v = (ImS8)v32; return r; } - case ImGuiDataType_U8: { ImU32 v32 = (ImU32)*(ImU8*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU8*)p_min, *(const ImU8*)p_max, format, flags, out_grab_bb); if (r) *(ImU8*)p_v = (ImU8)v32; return r; } - case ImGuiDataType_S16: { ImS32 v32 = (ImS32)*(ImS16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_S32, &v32, *(const ImS16*)p_min, *(const ImS16*)p_max, format, flags, out_grab_bb); if (r) *(ImS16*)p_v = (ImS16)v32; return r; } - case ImGuiDataType_U16: { ImU32 v32 = (ImU32)*(ImU16*)p_v; bool r = SliderBehaviorT(bb, id, ImGuiDataType_U32, &v32, *(const ImU16*)p_min, *(const ImU16*)p_max, format, flags, out_grab_bb); if (r) *(ImU16*)p_v = (ImU16)v32; return r; } - case ImGuiDataType_S32: - IM_ASSERT(*(const ImS32*)p_min >= IM_S32_MIN / 2 && *(const ImS32*)p_max <= IM_S32_MAX / 2); - return SliderBehaviorT(bb, id, data_type, (ImS32*)p_v, *(const ImS32*)p_min, *(const ImS32*)p_max, format, flags, out_grab_bb); - case ImGuiDataType_U32: - IM_ASSERT(*(const ImU32*)p_max <= IM_U32_MAX / 2); - return SliderBehaviorT(bb, id, data_type, (ImU32*)p_v, *(const ImU32*)p_min, *(const ImU32*)p_max, format, flags, out_grab_bb); - case ImGuiDataType_S64: - IM_ASSERT(*(const ImS64*)p_min >= IM_S64_MIN / 2 && *(const ImS64*)p_max <= IM_S64_MAX / 2); - return SliderBehaviorT(bb, id, data_type, (ImS64*)p_v, *(const ImS64*)p_min, *(const ImS64*)p_max, format, flags, out_grab_bb); - case ImGuiDataType_U64: - IM_ASSERT(*(const ImU64*)p_max <= IM_U64_MAX / 2); - return SliderBehaviorT(bb, id, data_type, (ImU64*)p_v, *(const ImU64*)p_min, *(const ImU64*)p_max, format, flags, out_grab_bb); - case ImGuiDataType_Float: - IM_ASSERT(*(const float*)p_min >= -FLT_MAX / 2.0f && *(const float*)p_max <= FLT_MAX / 2.0f); - return SliderBehaviorT(bb, id, data_type, (float*)p_v, *(const float*)p_min, *(const float*)p_max, format, flags, out_grab_bb); - case ImGuiDataType_Double: - IM_ASSERT(*(const double*)p_min >= -DBL_MAX / 2.0f && *(const double*)p_max <= DBL_MAX / 2.0f); - return SliderBehaviorT(bb, id, data_type, (double*)p_v, *(const double*)p_min, *(const double*)p_max, format, flags, out_grab_bb); - case ImGuiDataType_COUNT: break; - } - IM_ASSERT(0); - return false; -} - -// Note: p_data, p_min and p_max are _pointers_ to a memory address holding the data. For a slider, they are all required. -// Read code of e.g. SliderFloat(), SliderInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. -bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - const float w = CalcItemWidth(); - - const ImVec2 label_size = CalcTextSize(label, NULL, true); - const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y * 2.0f)); - const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); - - ItemSize(total_bb, style.FramePadding.y); - if (!ItemAdd(total_bb, id, &frame_bb)) - return false; - - // Default format string when passing NULL - if (format == NULL) - format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); - - // Tabbing or CTRL-clicking on Slider turns it into an input box - const bool hovered = ItemHoverable(frame_bb, id); - const bool temp_input_allowed = (flags & ImGuiSliderFlags_NoInput) == 0; - bool temp_input_is_active = temp_input_allowed && TempInputIsActive(id); - if (!temp_input_is_active) - { - const bool focus_requested = temp_input_allowed && FocusableItemRegister(window, id); - const bool clicked = (hovered && g.IO.MouseClicked[0]); - if (focus_requested || clicked || g.NavActivateId == id || g.NavInputId == id) - { - SetActiveID(id, window); - SetFocusID(id, window); - FocusWindow(window); - g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); - if (temp_input_allowed && (focus_requested || (clicked && g.IO.KeyCtrl) || g.NavInputId == id)) - { - temp_input_is_active = true; - FocusableItemUnregister(window); - } - } - } - - if (temp_input_is_active) - { - // Only clamp CTRL+Click input when ImGuiSliderFlags_AlwaysClamp is set - const bool is_clamp_input = (flags & ImGuiSliderFlags_AlwaysClamp) != 0; - return TempInputScalar(frame_bb, id, label, data_type, p_data, format, is_clamp_input ? p_min : NULL, is_clamp_input ? p_max : NULL); - } - - // Draw frame - const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : g.HoveredId == id ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); - RenderNavHighlight(frame_bb, id); - RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); - - // Slider behavior - ImRect grab_bb; - const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags, &grab_bb); - if (value_changed) - MarkItemEdited(id); - - // Render grab - if (grab_bb.Max.x > grab_bb.Min.x) - window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); - - // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. - char value_buf[64]; - const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); - if (g.LogEnabled) - LogSetNextTextDecoration("{", "}"); - RenderTextClipped(frame_bb.Min, frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.5f)); - - if (label_size.x > 0.0f) - RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); - - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); - return value_changed; -} - -// Add multiple sliders on 1 line for compact edition of multiple components -bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, ImGuiSliderFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - bool value_changed = false; - BeginGroup(); - PushID(label); - PushMultiItemsWidths(components, CalcItemWidth()); - size_t type_size = GDataTypeInfo[data_type].Size; - for (int i = 0; i < components; i++) - { - PushID(i); - if (i > 0) - SameLine(0, g.Style.ItemInnerSpacing.x); - value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, flags); - PopID(); - PopItemWidth(); - v = (void*)((char*)v + type_size); - } - PopID(); - - const char* label_end = FindRenderedTextEnd(label); - if (label != label_end) - { - SameLine(0, g.Style.ItemInnerSpacing.x); - TextEx(label, label_end); - } - - EndGroup(); - return value_changed; -} - -bool ImGui::SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return SliderScalar(label, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); -} - -bool ImGui::SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return SliderScalarN(label, ImGuiDataType_Float, v, 2, &v_min, &v_max, format, flags); -} - -bool ImGui::SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return SliderScalarN(label, ImGuiDataType_Float, v, 3, &v_min, &v_max, format, flags); -} - -bool ImGui::SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return SliderScalarN(label, ImGuiDataType_Float, v, 4, &v_min, &v_max, format, flags); -} - -bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags) -{ - if (format == NULL) - format = "%.0f deg"; - float v_deg = (*v_rad) * 360.0f / (2 * IM_PI); - bool value_changed = SliderFloat(label, &v_deg, v_degrees_min, v_degrees_max, format, flags); - *v_rad = v_deg * (2 * IM_PI) / 360.0f; - return value_changed; -} - -bool ImGui::SliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return SliderScalar(label, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); -} - -bool ImGui::SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return SliderScalarN(label, ImGuiDataType_S32, v, 2, &v_min, &v_max, format, flags); -} - -bool ImGui::SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return SliderScalarN(label, ImGuiDataType_S32, v, 3, &v_min, &v_max, format, flags); -} - -bool ImGui::SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return SliderScalarN(label, ImGuiDataType_S32, v, 4, &v_min, &v_max, format, flags); -} - -bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - - const ImVec2 label_size = CalcTextSize(label, NULL, true); - const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + size); - const ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); - - ItemSize(bb, style.FramePadding.y); - if (!ItemAdd(frame_bb, id)) - return false; - - // Default format string when passing NULL - if (format == NULL) - format = DataTypeGetInfo(data_type)->PrintFmt; - else if (data_type == ImGuiDataType_S32 && strcmp(format, "%d") != 0) // (FIXME-LEGACY: Patch old "%.0f" format string to use "%d", read function more details.) - format = PatchFormatStringFloatToInt(format); - - const bool hovered = ItemHoverable(frame_bb, id); - if ((hovered && g.IO.MouseClicked[0]) || g.NavActivateId == id || g.NavInputId == id) - { - SetActiveID(id, window); - SetFocusID(id, window); - FocusWindow(window); - g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); - } - - // Draw frame - const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : g.HoveredId == id ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg); - RenderNavHighlight(frame_bb, id); - RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding); - - // Slider behavior - ImRect grab_bb; - const bool value_changed = SliderBehavior(frame_bb, id, data_type, p_data, p_min, p_max, format, flags | ImGuiSliderFlags_Vertical, &grab_bb); - if (value_changed) - MarkItemEdited(id); - - // Render grab - if (grab_bb.Max.y > grab_bb.Min.y) - window->DrawList->AddRectFilled(grab_bb.Min, grab_bb.Max, GetColorU32(g.ActiveId == id ? ImGuiCol_SliderGrabActive : ImGuiCol_SliderGrab), style.GrabRounding); - - // Display value using user-provided display format so user can add prefix/suffix/decorations to the value. - // For the vertical slider we allow centered text to overlap the frame padding - char value_buf[64]; - const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format); - RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, value_buf, value_buf_end, NULL, ImVec2(0.5f, 0.0f)); - if (label_size.x > 0.0f) - RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); - - return value_changed; -} - -bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags) -{ - return VSliderScalar(label, size, ImGuiDataType_Float, v, &v_min, &v_max, format, flags); -} - -bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags) -{ - return VSliderScalar(label, size, ImGuiDataType_S32, v, &v_min, &v_max, format, flags); -} - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -// Obsolete versions with power parameter. See https://github.com/ocornut/imgui/issues/3361 for details. -bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power) -{ - ImGuiSliderFlags slider_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - slider_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return SliderScalar(label, data_type, p_data, p_min, p_max, format, slider_flags); -} - -bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, float power) -{ - ImGuiSliderFlags slider_flags = ImGuiSliderFlags_None; - if (power != 1.0f) - { - IM_ASSERT(power == 1.0f && "Call function with ImGuiSliderFlags_Logarithmic flags instead of using the old 'float power' function!"); - slider_flags |= ImGuiSliderFlags_Logarithmic; // Fallback for non-asserting paths - } - return SliderScalarN(label, data_type, v, components, v_min, v_max, format, slider_flags); -} - -#endif // IMGUI_DISABLE_OBSOLETE_FUNCTIONS - -//------------------------------------------------------------------------- -// [SECTION] Widgets: InputScalar, InputFloat, InputInt, etc. -//------------------------------------------------------------------------- -// - ImParseFormatFindStart() [Internal] -// - ImParseFormatFindEnd() [Internal] -// - ImParseFormatTrimDecorations() [Internal] -// - ImParseFormatPrecision() [Internal] -// - TempInputTextScalar() [Internal] -// - InputScalar() -// - InputScalarN() -// - InputFloat() -// - InputFloat2() -// - InputFloat3() -// - InputFloat4() -// - InputInt() -// - InputInt2() -// - InputInt3() -// - InputInt4() -// - InputDouble() -//------------------------------------------------------------------------- - -// We don't use strchr() because our strings are usually very short and often start with '%' -const char* ImParseFormatFindStart(const char* fmt) -{ - while (char c = fmt[0]) - { - if (c == '%' && fmt[1] != '%') - return fmt; - else if (c == '%') - fmt++; - fmt++; - } - return fmt; -} - -const char* ImParseFormatFindEnd(const char* fmt) -{ - // Printf/scanf types modifiers: I/L/h/j/l/t/w/z. Other uppercase letters qualify as types aka end of the format. - if (fmt[0] != '%') - return fmt; - const unsigned int ignored_uppercase_mask = (1 << ('I'-'A')) | (1 << ('L'-'A')); - const unsigned int ignored_lowercase_mask = (1 << ('h'-'a')) | (1 << ('j'-'a')) | (1 << ('l'-'a')) | (1 << ('t'-'a')) | (1 << ('w'-'a')) | (1 << ('z'-'a')); - for (char c; (c = *fmt) != 0; fmt++) - { - if (c >= 'A' && c <= 'Z' && ((1 << (c - 'A')) & ignored_uppercase_mask) == 0) - return fmt + 1; - if (c >= 'a' && c <= 'z' && ((1 << (c - 'a')) & ignored_lowercase_mask) == 0) - return fmt + 1; - } - return fmt; -} - -// Extract the format out of a format string with leading or trailing decorations -// fmt = "blah blah" -> return fmt -// fmt = "%.3f" -> return fmt -// fmt = "hello %.3f" -> return fmt + 6 -// fmt = "%.3f hello" -> return buf written with "%.3f" -const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size) -{ - const char* fmt_start = ImParseFormatFindStart(fmt); - if (fmt_start[0] != '%') - return fmt; - const char* fmt_end = ImParseFormatFindEnd(fmt_start); - if (fmt_end[0] == 0) // If we only have leading decoration, we don't need to copy the data. - return fmt_start; - ImStrncpy(buf, fmt_start, ImMin((size_t)(fmt_end - fmt_start) + 1, buf_size)); - return buf; -} - -// Parse display precision back from the display format string -// FIXME: This is still used by some navigation code path to infer a minimum tweak step, but we should aim to rework widgets so it isn't needed. -int ImParseFormatPrecision(const char* fmt, int default_precision) -{ - fmt = ImParseFormatFindStart(fmt); - if (fmt[0] != '%') - return default_precision; - fmt++; - while (*fmt >= '0' && *fmt <= '9') - fmt++; - int precision = INT_MAX; - if (*fmt == '.') - { - fmt = ImAtoi(fmt + 1, &precision); - if (precision < 0 || precision > 99) - precision = default_precision; - } - if (*fmt == 'e' || *fmt == 'E') // Maximum precision with scientific notation - precision = -1; - if ((*fmt == 'g' || *fmt == 'G') && precision == INT_MAX) - precision = -1; - return (precision == INT_MAX) ? default_precision : precision; -} - -// Create text input in place of another active widget (e.g. used when doing a CTRL+Click on drag/slider widgets) -// FIXME: Facilitate using this in variety of other situations. -bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags) -{ - // On the first frame, g.TempInputTextId == 0, then on subsequent frames it becomes == id. - // We clear ActiveID on the first frame to allow the InputText() taking it back. - ImGuiContext& g = *GImGui; - const bool init = (g.TempInputId != id); - if (init) - ClearActiveID(); - - g.CurrentWindow->DC.CursorPos = bb.Min; - bool value_changed = InputTextEx(label, NULL, buf, buf_size, bb.GetSize(), flags); - if (init) - { - // First frame we started displaying the InputText widget, we expect it to take the active id. - IM_ASSERT(g.ActiveId == id); - g.TempInputId = g.ActiveId; - } - return value_changed; -} - -// Note that Drag/Slider functions are only forwarding the min/max values clamping values if the ImGuiSliderFlags_AlwaysClamp flag is set! -// This is intended: this way we allow CTRL+Click manual input to set a value out of bounds, for maximum flexibility. -// However this may not be ideal for all uses, as some user code may break on out of bound values. -bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max) -{ - ImGuiContext& g = *GImGui; - - char fmt_buf[32]; - char data_buf[32]; - format = ImParseFormatTrimDecorations(format, fmt_buf, IM_ARRAYSIZE(fmt_buf)); - DataTypeFormatString(data_buf, IM_ARRAYSIZE(data_buf), data_type, p_data, format); - ImStrTrimBlanks(data_buf); - - ImGuiInputTextFlags flags = ImGuiInputTextFlags_AutoSelectAll | ImGuiInputTextFlags_NoMarkEdited; - flags |= ((data_type == ImGuiDataType_Float || data_type == ImGuiDataType_Double) ? ImGuiInputTextFlags_CharsScientific : ImGuiInputTextFlags_CharsDecimal); - bool value_changed = false; - if (TempInputText(bb, id, label, data_buf, IM_ARRAYSIZE(data_buf), flags)) - { - // Backup old value - size_t data_type_size = DataTypeGetInfo(data_type)->Size; - ImGuiDataTypeTempStorage data_backup; - memcpy(&data_backup, p_data, data_type_size); - - // Apply new value (or operations) then clamp - DataTypeApplyOpFromText(data_buf, g.InputTextState.InitialTextA.Data, data_type, p_data, NULL); - if (p_clamp_min || p_clamp_max) - { - if (p_clamp_min && p_clamp_max && DataTypeCompare(data_type, p_clamp_min, p_clamp_max) > 0) - ImSwap(p_clamp_min, p_clamp_max); - DataTypeClamp(data_type, p_data, p_clamp_min, p_clamp_max); - } - - // Only mark as edited if new value is different - value_changed = memcmp(&data_backup, p_data, data_type_size) != 0; - if (value_changed) - MarkItemEdited(id); - } - return value_changed; -} - -// Note: p_data, p_step, p_step_fast are _pointers_ to a memory address holding the data. For an Input widget, p_step and p_step_fast are optional. -// Read code of e.g. InputFloat(), InputInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly. -bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - ImGuiStyle& style = g.Style; - - if (format == NULL) - format = DataTypeGetInfo(data_type)->PrintFmt; - - char buf[64]; - DataTypeFormatString(buf, IM_ARRAYSIZE(buf), data_type, p_data, format); - - bool value_changed = false; - if ((flags & (ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsScientific)) == 0) - flags |= ImGuiInputTextFlags_CharsDecimal; - flags |= ImGuiInputTextFlags_AutoSelectAll; - flags |= ImGuiInputTextFlags_NoMarkEdited; // We call MarkItemEdited() ourselves by comparing the actual data rather than the string. - - if (p_step != NULL) - { - const float button_size = GetFrameHeight(); - - BeginGroup(); // The only purpose of the group here is to allow the caller to query item data e.g. IsItemActive() - PushID(label); - SetNextItemWidth(ImMax(1.0f, CalcItemWidth() - (button_size + style.ItemInnerSpacing.x) * 2)); - if (InputText("", buf, IM_ARRAYSIZE(buf), flags)) // PushId(label) + "" gives us the expected ID from outside point of view - value_changed = DataTypeApplyOpFromText(buf, g.InputTextState.InitialTextA.Data, data_type, p_data, format); - - // Step buttons - const ImVec2 backup_frame_padding = style.FramePadding; - style.FramePadding.x = style.FramePadding.y; - ImGuiButtonFlags button_flags = ImGuiButtonFlags_Repeat | ImGuiButtonFlags_DontClosePopups; - if (flags & ImGuiInputTextFlags_ReadOnly) - button_flags |= ImGuiButtonFlags_Disabled; - SameLine(0, style.ItemInnerSpacing.x); - if (ButtonEx("-", ImVec2(button_size, button_size), button_flags)) - { - DataTypeApplyOp(data_type, '-', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); - value_changed = true; - } - SameLine(0, style.ItemInnerSpacing.x); - if (ButtonEx("+", ImVec2(button_size, button_size), button_flags)) - { - DataTypeApplyOp(data_type, '+', p_data, p_data, g.IO.KeyCtrl && p_step_fast ? p_step_fast : p_step); - value_changed = true; - } - - const char* label_end = FindRenderedTextEnd(label); - if (label != label_end) - { - SameLine(0, style.ItemInnerSpacing.x); - TextEx(label, label_end); - } - style.FramePadding = backup_frame_padding; - - PopID(); - EndGroup(); - } - else - { - if (InputText(label, buf, IM_ARRAYSIZE(buf), flags)) - value_changed = DataTypeApplyOpFromText(buf, g.InputTextState.InitialTextA.Data, data_type, p_data, format); - } - if (value_changed) - MarkItemEdited(window->DC.LastItemId); - - return value_changed; -} - -bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - bool value_changed = false; - BeginGroup(); - PushID(label); - PushMultiItemsWidths(components, CalcItemWidth()); - size_t type_size = GDataTypeInfo[data_type].Size; - for (int i = 0; i < components; i++) - { - PushID(i); - if (i > 0) - SameLine(0, g.Style.ItemInnerSpacing.x); - value_changed |= InputScalar("", data_type, p_data, p_step, p_step_fast, format, flags); - PopID(); - PopItemWidth(); - p_data = (void*)((char*)p_data + type_size); - } - PopID(); - - const char* label_end = FindRenderedTextEnd(label); - if (label != label_end) - { - SameLine(0.0f, g.Style.ItemInnerSpacing.x); - TextEx(label, label_end); - } - - EndGroup(); - return value_changed; -} - -bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags) -{ - flags |= ImGuiInputTextFlags_CharsScientific; - return InputScalar(label, ImGuiDataType_Float, (void*)v, (void*)(step > 0.0f ? &step : NULL), (void*)(step_fast > 0.0f ? &step_fast : NULL), format, flags); -} - -bool ImGui::InputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags) -{ - return InputScalarN(label, ImGuiDataType_Float, v, 2, NULL, NULL, format, flags); -} - -bool ImGui::InputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags) -{ - return InputScalarN(label, ImGuiDataType_Float, v, 3, NULL, NULL, format, flags); -} - -bool ImGui::InputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags) -{ - return InputScalarN(label, ImGuiDataType_Float, v, 4, NULL, NULL, format, flags); -} - -bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags) -{ - // Hexadecimal input provided as a convenience but the flag name is awkward. Typically you'd use InputText() to parse your own data, if you want to handle prefixes. - const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d"; - return InputScalar(label, ImGuiDataType_S32, (void*)v, (void*)(step > 0 ? &step : NULL), (void*)(step_fast > 0 ? &step_fast : NULL), format, flags); -} - -bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags) -{ - return InputScalarN(label, ImGuiDataType_S32, v, 2, NULL, NULL, "%d", flags); -} - -bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags) -{ - return InputScalarN(label, ImGuiDataType_S32, v, 3, NULL, NULL, "%d", flags); -} - -bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags) -{ - return InputScalarN(label, ImGuiDataType_S32, v, 4, NULL, NULL, "%d", flags); -} - -bool ImGui::InputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags) -{ - flags |= ImGuiInputTextFlags_CharsScientific; - return InputScalar(label, ImGuiDataType_Double, (void*)v, (void*)(step > 0.0 ? &step : NULL), (void*)(step_fast > 0.0 ? &step_fast : NULL), format, flags); -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: InputText, InputTextMultiline, InputTextWithHint -//------------------------------------------------------------------------- -// - InputText() -// - InputTextWithHint() -// - InputTextMultiline() -// - InputTextEx() [Internal] -//------------------------------------------------------------------------- - -bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() - return InputTextEx(label, NULL, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); -} - -bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - return InputTextEx(label, NULL, buf, (int)buf_size, size, flags | ImGuiInputTextFlags_Multiline, callback, user_data); -} - -bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - IM_ASSERT(!(flags & ImGuiInputTextFlags_Multiline)); // call InputTextMultiline() - return InputTextEx(label, hint, buf, (int)buf_size, ImVec2(0, 0), flags, callback, user_data); -} - -static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end) -{ - int line_count = 0; - const char* s = text_begin; - while (char c = *s++) // We are only matching for \n so we can ignore UTF-8 decoding - if (c == '\n') - line_count++; - s--; - if (s[0] != '\n' && s[0] != '\r') - line_count++; - *out_text_end = s; - return line_count; -} - -static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining, ImVec2* out_offset, bool stop_on_new_line) -{ - ImGuiContext& g = *GImGui; - ImFont* font = g.Font; - const float line_height = g.FontSize; - const float scale = line_height / font->FontSize; - - ImVec2 text_size = ImVec2(0, 0); - float line_width = 0.0f; - - const ImWchar* s = text_begin; - while (s < text_end) - { - unsigned int c = (unsigned int)(*s++); - if (c == '\n') - { - text_size.x = ImMax(text_size.x, line_width); - text_size.y += line_height; - line_width = 0.0f; - if (stop_on_new_line) - break; - continue; - } - if (c == '\r') - continue; - - const float char_width = font->GetCharAdvance((ImWchar)c) * scale; - line_width += char_width; - } - - if (text_size.x < line_width) - text_size.x = line_width; - - if (out_offset) - *out_offset = ImVec2(line_width, text_size.y + line_height); // offset allow for the possibility of sitting after a trailing \n - - if (line_width > 0 || text_size.y == 0.0f) // whereas size.y will ignore the trailing \n - text_size.y += line_height; - - if (remaining) - *remaining = s; - - return text_size; -} - -// Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, wchar characters. InputText converts between UTF-8 and wchar) -namespace ImStb -{ - -static int STB_TEXTEDIT_STRINGLEN(const STB_TEXTEDIT_STRING* obj) { return obj->CurLenW; } -static ImWchar STB_TEXTEDIT_GETCHAR(const STB_TEXTEDIT_STRING* obj, int idx) { return obj->TextW[idx]; } -static float STB_TEXTEDIT_GETWIDTH(STB_TEXTEDIT_STRING* obj, int line_start_idx, int char_idx) { ImWchar c = obj->TextW[line_start_idx + char_idx]; if (c == '\n') return STB_TEXTEDIT_GETWIDTH_NEWLINE; ImGuiContext& g = *GImGui; return g.Font->GetCharAdvance(c) * (g.FontSize / g.Font->FontSize); } -static int STB_TEXTEDIT_KEYTOTEXT(int key) { return key >= 0x200000 ? 0 : key; } -static ImWchar STB_TEXTEDIT_NEWLINE = '\n'; -static void STB_TEXTEDIT_LAYOUTROW(StbTexteditRow* r, STB_TEXTEDIT_STRING* obj, int line_start_idx) -{ - const ImWchar* text = obj->TextW.Data; - const ImWchar* text_remaining = NULL; - const ImVec2 size = InputTextCalcTextSizeW(text + line_start_idx, text + obj->CurLenW, &text_remaining, NULL, true); - r->x0 = 0.0f; - r->x1 = size.x; - r->baseline_y_delta = size.y; - r->ymin = 0.0f; - r->ymax = size.y; - r->num_chars = (int)(text_remaining - (text + line_start_idx)); -} - -static bool is_separator(unsigned int c) { return ImCharIsBlankW(c) || c==',' || c==';' || c=='(' || c==')' || c=='{' || c=='}' || c=='[' || c==']' || c=='|'; } -static int is_word_boundary_from_right(STB_TEXTEDIT_STRING* obj, int idx) { return idx > 0 ? (is_separator(obj->TextW[idx - 1]) && !is_separator(obj->TextW[idx]) ) : 1; } -static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL(STB_TEXTEDIT_STRING* obj, int idx) { idx--; while (idx >= 0 && !is_word_boundary_from_right(obj, idx)) idx--; return idx < 0 ? 0 : idx; } -#ifdef __APPLE__ // FIXME: Move setting to IO structure -static int is_word_boundary_from_left(STB_TEXTEDIT_STRING* obj, int idx) { return idx > 0 ? (!is_separator(obj->TextW[idx - 1]) && is_separator(obj->TextW[idx]) ) : 1; } -static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(STB_TEXTEDIT_STRING* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_left(obj, idx)) idx++; return idx > len ? len : idx; } -#else -static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL(STB_TEXTEDIT_STRING* obj, int idx) { idx++; int len = obj->CurLenW; while (idx < len && !is_word_boundary_from_right(obj, idx)) idx++; return idx > len ? len : idx; } -#endif -#define STB_TEXTEDIT_MOVEWORDLEFT STB_TEXTEDIT_MOVEWORDLEFT_IMPL // They need to be #define for stb_textedit.h -#define STB_TEXTEDIT_MOVEWORDRIGHT STB_TEXTEDIT_MOVEWORDRIGHT_IMPL - -static void STB_TEXTEDIT_DELETECHARS(STB_TEXTEDIT_STRING* obj, int pos, int n) -{ - ImWchar* dst = obj->TextW.Data + pos; - - // We maintain our buffer length in both UTF-8 and wchar formats - obj->Edited = true; - obj->CurLenA -= ImTextCountUtf8BytesFromStr(dst, dst + n); - obj->CurLenW -= n; - - // Offset remaining text (FIXME-OPT: Use memmove) - const ImWchar* src = obj->TextW.Data + pos + n; - while (ImWchar c = *src++) - *dst++ = c; - *dst = '\0'; -} - -static bool STB_TEXTEDIT_INSERTCHARS(STB_TEXTEDIT_STRING* obj, int pos, const ImWchar* new_text, int new_text_len) -{ - const bool is_resizable = (obj->UserFlags & ImGuiInputTextFlags_CallbackResize) != 0; - const int text_len = obj->CurLenW; - IM_ASSERT(pos <= text_len); - - const int new_text_len_utf8 = ImTextCountUtf8BytesFromStr(new_text, new_text + new_text_len); - if (!is_resizable && (new_text_len_utf8 + obj->CurLenA + 1 > obj->BufCapacityA)) - return false; - - // Grow internal buffer if needed - if (new_text_len + text_len + 1 > obj->TextW.Size) - { - if (!is_resizable) - return false; - IM_ASSERT(text_len < obj->TextW.Size); - obj->TextW.resize(text_len + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1); - } - - ImWchar* text = obj->TextW.Data; - if (pos != text_len) - memmove(text + pos + new_text_len, text + pos, (size_t)(text_len - pos) * sizeof(ImWchar)); - memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar)); - - obj->Edited = true; - obj->CurLenW += new_text_len; - obj->CurLenA += new_text_len_utf8; - obj->TextW[obj->CurLenW] = '\0'; - - return true; -} - -// We don't use an enum so we can build even with conflicting symbols (if another user of stb_textedit.h leak their STB_TEXTEDIT_K_* symbols) -#define STB_TEXTEDIT_K_LEFT 0x200000 // keyboard input to move cursor left -#define STB_TEXTEDIT_K_RIGHT 0x200001 // keyboard input to move cursor right -#define STB_TEXTEDIT_K_UP 0x200002 // keyboard input to move cursor up -#define STB_TEXTEDIT_K_DOWN 0x200003 // keyboard input to move cursor down -#define STB_TEXTEDIT_K_LINESTART 0x200004 // keyboard input to move cursor to start of line -#define STB_TEXTEDIT_K_LINEEND 0x200005 // keyboard input to move cursor to end of line -#define STB_TEXTEDIT_K_TEXTSTART 0x200006 // keyboard input to move cursor to start of text -#define STB_TEXTEDIT_K_TEXTEND 0x200007 // keyboard input to move cursor to end of text -#define STB_TEXTEDIT_K_DELETE 0x200008 // keyboard input to delete selection or character under cursor -#define STB_TEXTEDIT_K_BACKSPACE 0x200009 // keyboard input to delete selection or character left of cursor -#define STB_TEXTEDIT_K_UNDO 0x20000A // keyboard input to perform undo -#define STB_TEXTEDIT_K_REDO 0x20000B // keyboard input to perform redo -#define STB_TEXTEDIT_K_WORDLEFT 0x20000C // keyboard input to move cursor left one word -#define STB_TEXTEDIT_K_WORDRIGHT 0x20000D // keyboard input to move cursor right one word -#define STB_TEXTEDIT_K_PGUP 0x20000E // keyboard input to move cursor up a page -#define STB_TEXTEDIT_K_PGDOWN 0x20000F // keyboard input to move cursor down a page -#define STB_TEXTEDIT_K_SHIFT 0x400000 - -#define STB_TEXTEDIT_IMPLEMENTATION -#include "imstb_textedit.h" - -// stb_textedit internally allows for a single undo record to do addition and deletion, but somehow, calling -// the stb_textedit_paste() function creates two separate records, so we perform it manually. (FIXME: Report to nothings/stb?) -static void stb_textedit_replace(STB_TEXTEDIT_STRING* str, STB_TexteditState* state, const STB_TEXTEDIT_CHARTYPE* text, int text_len) -{ - stb_text_makeundo_replace(str, state, 0, str->CurLenW, text_len); - ImStb::STB_TEXTEDIT_DELETECHARS(str, 0, str->CurLenW); - if (text_len <= 0) - return; - if (ImStb::STB_TEXTEDIT_INSERTCHARS(str, 0, text, text_len)) - { - state->cursor = text_len; - state->has_preferred_x = 0; - return; - } - IM_ASSERT(0); // Failed to insert character, normally shouldn't happen because of how we currently use stb_textedit_replace() -} - -} // namespace ImStb - -void ImGuiInputTextState::OnKeyPressed(int key) -{ - stb_textedit_key(this, &Stb, key); - CursorFollow = true; - CursorAnimReset(); -} - -ImGuiInputTextCallbackData::ImGuiInputTextCallbackData() -{ - memset(this, 0, sizeof(*this)); -} - -// Public API to manipulate UTF-8 text -// We expose UTF-8 to the user (unlike the STB_TEXTEDIT_* functions which are manipulating wchar) -// FIXME: The existence of this rarely exercised code path is a bit of a nuisance. -void ImGuiInputTextCallbackData::DeleteChars(int pos, int bytes_count) -{ - IM_ASSERT(pos + bytes_count <= BufTextLen); - char* dst = Buf + pos; - const char* src = Buf + pos + bytes_count; - while (char c = *src++) - *dst++ = c; - *dst = '\0'; - - if (CursorPos >= pos + bytes_count) - CursorPos -= bytes_count; - else if (CursorPos >= pos) - CursorPos = pos; - SelectionStart = SelectionEnd = CursorPos; - BufDirty = true; - BufTextLen -= bytes_count; -} - -void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end) -{ - const bool is_resizable = (Flags & ImGuiInputTextFlags_CallbackResize) != 0; - const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text); - if (new_text_len + BufTextLen >= BufSize) - { - if (!is_resizable) - return; - - // Contrary to STB_TEXTEDIT_INSERTCHARS() this is working in the UTF8 buffer, hence the mildly similar code (until we remove the U16 buffer altogether!) - ImGuiContext& g = *GImGui; - ImGuiInputTextState* edit_state = &g.InputTextState; - IM_ASSERT(edit_state->ID != 0 && g.ActiveId == edit_state->ID); - IM_ASSERT(Buf == edit_state->TextA.Data); - int new_buf_size = BufTextLen + ImClamp(new_text_len * 4, 32, ImMax(256, new_text_len)) + 1; - edit_state->TextA.reserve(new_buf_size + 1); - Buf = edit_state->TextA.Data; - BufSize = edit_state->BufCapacityA = new_buf_size; - } - - if (BufTextLen != pos) - memmove(Buf + pos + new_text_len, Buf + pos, (size_t)(BufTextLen - pos)); - memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char)); - Buf[BufTextLen + new_text_len] = '\0'; - - if (CursorPos >= pos) - CursorPos += new_text_len; - SelectionStart = SelectionEnd = CursorPos; - BufDirty = true; - BufTextLen += new_text_len; -} - -// Return false to discard a character. -static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - unsigned int c = *p_char; - - // Filter non-printable (NB: isprint is unreliable! see #2467) - if (c < 0x20) - { - bool pass = false; - pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline)); - pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput)); - if (!pass) - return false; - } - - // We ignore Ascii representation of delete (emitted from Backspace on OSX, see #2578, #2817) - if (c == 127) - return false; - - // Filter private Unicode range. GLFW on OSX seems to send private characters for special keys like arrow keys (FIXME) - if (c >= 0xE000 && c <= 0xF8FF) - return false; - - // Filter Unicode ranges we are not handling in this build. - if (c > IM_UNICODE_CODEPOINT_MAX) - return false; - - // Generic named filters - if (flags & (ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase | ImGuiInputTextFlags_CharsNoBlank | ImGuiInputTextFlags_CharsScientific)) - { - // The libc allows overriding locale, with e.g. 'setlocale(LC_NUMERIC, "de_DE.UTF-8");' which affect the output/input of printf/scanf. - // The standard mandate that programs starts in the "C" locale where the decimal point is '.'. - // We don't really intend to provide widespread support for it, but out of empathy for people stuck with using odd API, we support the bare minimum aka overriding the decimal point. - // Change the default decimal_point with: - // ImGui::GetCurrentContext()->PlatformLocaleDecimalPoint = *localeconv()->decimal_point; - ImGuiContext& g = *GImGui; - const unsigned c_decimal_point = (unsigned int)g.PlatformLocaleDecimalPoint; - - // Allow 0-9 . - + * / - if (flags & ImGuiInputTextFlags_CharsDecimal) - if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/')) - return false; - - // Allow 0-9 . - + * / e E - if (flags & ImGuiInputTextFlags_CharsScientific) - if (!(c >= '0' && c <= '9') && (c != c_decimal_point) && (c != '-') && (c != '+') && (c != '*') && (c != '/') && (c != 'e') && (c != 'E')) - return false; - - // Allow 0-9 a-F A-F - if (flags & ImGuiInputTextFlags_CharsHexadecimal) - if (!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f') && !(c >= 'A' && c <= 'F')) - return false; - - // Turn a-z into A-Z - if (flags & ImGuiInputTextFlags_CharsUppercase) - if (c >= 'a' && c <= 'z') - *p_char = (c += (unsigned int)('A' - 'a')); - - if (flags & ImGuiInputTextFlags_CharsNoBlank) - if (ImCharIsBlankW(c)) - return false; - } - - // Custom callback filter - if (flags & ImGuiInputTextFlags_CallbackCharFilter) - { - ImGuiInputTextCallbackData callback_data; - memset(&callback_data, 0, sizeof(ImGuiInputTextCallbackData)); - callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter; - callback_data.EventChar = (ImWchar)c; - callback_data.Flags = flags; - callback_data.UserData = user_data; - if (callback(&callback_data) != 0) - return false; - *p_char = callback_data.EventChar; - if (!callback_data.EventChar) - return false; - } - - return true; -} - -// Edit a string of text -// - buf_size account for the zero-terminator, so a buf_size of 6 can hold "Hello" but not "Hello!". -// This is so we can easily call InputText() on static arrays using ARRAYSIZE() and to match -// Note that in std::string world, capacity() would omit 1 byte used by the zero-terminator. -// - When active, hold on a privately held copy of the text (and apply back to 'buf'). So changing 'buf' while the InputText is active has no effect. -// - If you want to use ImGui::InputText() with std::string, see misc/cpp/imgui_stdlib.h -// (FIXME: Rather confusing and messy function, among the worse part of our codebase, expecting to rewrite a V2 at some point.. Partly because we are -// doing UTF8 > U16 > UTF8 conversions on the go to easily interface with stb_textedit. Ideally should stay in UTF-8 all the time. See https://github.com/nothings/stb/issues/188) -bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* callback_user_data) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - IM_ASSERT(buf != NULL && buf_size >= 0); - IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackHistory) && (flags & ImGuiInputTextFlags_Multiline))); // Can't use both together (they both use up/down keys) - IM_ASSERT(!((flags & ImGuiInputTextFlags_CallbackCompletion) && (flags & ImGuiInputTextFlags_AllowTabInput))); // Can't use both together (they both use tab key) - - ImGuiContext& g = *GImGui; - ImGuiIO& io = g.IO; - const ImGuiStyle& style = g.Style; - - const bool RENDER_SELECTION_WHEN_INACTIVE = false; - const bool is_multiline = (flags & ImGuiInputTextFlags_Multiline) != 0; - const bool is_readonly = (flags & ImGuiInputTextFlags_ReadOnly) != 0; - const bool is_password = (flags & ImGuiInputTextFlags_Password) != 0; - const bool is_undoable = (flags & ImGuiInputTextFlags_NoUndoRedo) == 0; - const bool is_resizable = (flags & ImGuiInputTextFlags_CallbackResize) != 0; - if (is_resizable) - IM_ASSERT(callback != NULL); // Must provide a callback if you set the ImGuiInputTextFlags_CallbackResize flag! - - if (is_multiline) // Open group before calling GetID() because groups tracks id created within their scope, - BeginGroup(); - const ImGuiID id = window->GetID(label); - const ImVec2 label_size = CalcTextSize(label, NULL, true); - const ImVec2 frame_size = CalcItemSize(size_arg, CalcItemWidth(), (is_multiline ? g.FontSize * 8.0f : label_size.y) + style.FramePadding.y * 2.0f); // Arbitrary default of 8 lines high for multi-line - const ImVec2 total_size = ImVec2(frame_size.x + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), frame_size.y); - - const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); - const ImRect total_bb(frame_bb.Min, frame_bb.Min + total_size); - - ImGuiWindow* draw_window = window; - ImVec2 inner_size = frame_size; - if (is_multiline) - { - if (!ItemAdd(total_bb, id, &frame_bb)) - { - ItemSize(total_bb, style.FramePadding.y); - EndGroup(); - return false; - } - - // We reproduce the contents of BeginChildFrame() in order to provide 'label' so our window internal data are easier to read/debug. - PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]); - PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding); - PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize); - bool child_visible = BeginChildEx(label, id, frame_bb.GetSize(), true, ImGuiWindowFlags_NoMove); - PopStyleVar(2); - PopStyleColor(); - if (!child_visible) - { - EndChild(); - EndGroup(); - return false; - } - draw_window = g.CurrentWindow; // Child window - draw_window->DC.NavLayerActiveMaskNext |= (1 << draw_window->DC.NavLayerCurrent); // This is to ensure that EndChild() will display a navigation highlight so we can "enter" into it. - draw_window->DC.CursorPos += style.FramePadding; - inner_size.x -= draw_window->ScrollbarSizes.x; - } - else - { - ItemSize(total_bb, style.FramePadding.y); - if (!ItemAdd(total_bb, id, &frame_bb)) - return false; - } - const bool hovered = ItemHoverable(frame_bb, id); - if (hovered) - g.MouseCursor = ImGuiMouseCursor_TextInput; - - // We are only allowed to access the state if we are already the active widget. - ImGuiInputTextState* state = GetInputTextState(id); - - const bool focus_requested = FocusableItemRegister(window, id); - const bool focus_requested_by_code = focus_requested && (g.FocusRequestCurrWindow == window && g.FocusRequestCurrCounterRegular == window->DC.FocusCounterRegular); - const bool focus_requested_by_tab = focus_requested && !focus_requested_by_code; - - const bool user_clicked = hovered && io.MouseClicked[0]; - const bool user_nav_input_start = (g.ActiveId != id) && ((g.NavInputId == id) || (g.NavActivateId == id && g.NavInputSource == ImGuiInputSource_NavKeyboard)); - const bool user_scroll_finish = is_multiline && state != NULL && g.ActiveId == 0 && g.ActiveIdPreviousFrame == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); - const bool user_scroll_active = is_multiline && state != NULL && g.ActiveId == GetWindowScrollbarID(draw_window, ImGuiAxis_Y); - - bool clear_active_id = false; - bool select_all = (g.ActiveId != id) && ((flags & ImGuiInputTextFlags_AutoSelectAll) != 0 || user_nav_input_start) && (!is_multiline); - - float scroll_y = is_multiline ? draw_window->Scroll.y : FLT_MAX; - - const bool init_changed_specs = (state != NULL && state->Stb.single_line != !is_multiline); - const bool init_make_active = (focus_requested || user_clicked || user_scroll_finish || user_nav_input_start); - const bool init_state = (init_make_active || user_scroll_active); - if ((init_state && g.ActiveId != id) || init_changed_specs) - { - // Access state even if we don't own it yet. - state = &g.InputTextState; - state->CursorAnimReset(); - - // Take a copy of the initial buffer value (both in original UTF-8 format and converted to wchar) - // From the moment we focused we are ignoring the content of 'buf' (unless we are in read-only mode) - const int buf_len = (int)strlen(buf); - state->InitialTextA.resize(buf_len + 1); // UTF-8. we use +1 to make sure that .Data is always pointing to at least an empty string. - memcpy(state->InitialTextA.Data, buf, buf_len + 1); - - // Start edition - const char* buf_end = NULL; - state->TextW.resize(buf_size + 1); // wchar count <= UTF-8 count. we use +1 to make sure that .Data is always pointing to at least an empty string. - state->TextA.resize(0); - state->TextAIsValid = false; // TextA is not valid yet (we will display buf until then) - state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, buf_size, buf, NULL, &buf_end); - state->CurLenA = (int)(buf_end - buf); // We can't get the result from ImStrncpy() above because it is not UTF-8 aware. Here we'll cut off malformed UTF-8. - - // Preserve cursor position and undo/redo stack if we come back to same widget - // FIXME: For non-readonly widgets we might be able to require that TextAIsValid && TextA == buf ? (untested) and discard undo stack if user buffer has changed. - const bool recycle_state = (state->ID == id && !init_changed_specs); - if (recycle_state) - { - // Recycle existing cursor/selection/undo stack but clamp position - // Note a single mouse click will override the cursor/position immediately by calling stb_textedit_click handler. - state->CursorClamp(); - } - else - { - state->ID = id; - state->ScrollX = 0.0f; - stb_textedit_initialize_state(&state->Stb, !is_multiline); - if (!is_multiline && focus_requested_by_code) - select_all = true; - } - if (flags & ImGuiInputTextFlags_AlwaysInsertMode) - state->Stb.insert_mode = 1; - if (!is_multiline && (focus_requested_by_tab || (user_clicked && io.KeyCtrl))) - select_all = true; - } - - if (g.ActiveId != id && init_make_active) - { - IM_ASSERT(state && state->ID == id); - SetActiveID(id, window); - SetFocusID(id, window); - FocusWindow(window); - - // Declare our inputs - IM_ASSERT(ImGuiNavInput_COUNT < 32); - g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Left) | (1 << ImGuiDir_Right); - if (is_multiline || (flags & ImGuiInputTextFlags_CallbackHistory)) - g.ActiveIdUsingNavDirMask |= (1 << ImGuiDir_Up) | (1 << ImGuiDir_Down); - g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel); - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_Home) | ((ImU64)1 << ImGuiKey_End); - if (is_multiline) - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_PageUp) | ((ImU64)1 << ImGuiKey_PageDown); - if (flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_AllowTabInput)) // Disable keyboard tabbing out as we will use the \t character. - g.ActiveIdUsingKeyInputMask |= ((ImU64)1 << ImGuiKey_Tab); - } - - // We have an edge case if ActiveId was set through another widget (e.g. widget being swapped), clear id immediately (don't wait until the end of the function) - if (g.ActiveId == id && state == NULL) - ClearActiveID(); - - // Release focus when we click outside - if (g.ActiveId == id && io.MouseClicked[0] && !init_state && !init_make_active) //-V560 - clear_active_id = true; - - // Lock the decision of whether we are going to take the path displaying the cursor or selection - const bool render_cursor = (g.ActiveId == id) || (state && user_scroll_active); - bool render_selection = state && state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); - bool value_changed = false; - bool enter_pressed = false; - - // When read-only we always use the live data passed to the function - // FIXME-OPT: Because our selection/cursor code currently needs the wide text we need to convert it when active, which is not ideal :( - if (is_readonly && state != NULL && (render_cursor || render_selection)) - { - const char* buf_end = NULL; - state->TextW.resize(buf_size + 1); - state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, buf, NULL, &buf_end); - state->CurLenA = (int)(buf_end - buf); - state->CursorClamp(); - render_selection &= state->HasSelection(); - } - - // Select the buffer to render. - const bool buf_display_from_state = (render_cursor || render_selection || g.ActiveId == id) && !is_readonly && state && state->TextAIsValid; - const bool is_displaying_hint = (hint != NULL && (buf_display_from_state ? state->TextA.Data : buf)[0] == 0); - - // Password pushes a temporary font with only a fallback glyph - if (is_password && !is_displaying_hint) - { - const ImFontGlyph* glyph = g.Font->FindGlyph('*'); - ImFont* password_font = &g.InputTextPasswordFont; - password_font->FontSize = g.Font->FontSize; - password_font->Scale = g.Font->Scale; - password_font->Ascent = g.Font->Ascent; - password_font->Descent = g.Font->Descent; - password_font->ContainerAtlas = g.Font->ContainerAtlas; - password_font->FallbackGlyph = glyph; - password_font->FallbackAdvanceX = glyph->AdvanceX; - IM_ASSERT(password_font->Glyphs.empty() && password_font->IndexAdvanceX.empty() && password_font->IndexLookup.empty()); - PushFont(password_font); - } - - // Process mouse inputs and character inputs - int backup_current_text_length = 0; - if (g.ActiveId == id) - { - IM_ASSERT(state != NULL); - backup_current_text_length = state->CurLenA; - state->Edited = false; - state->BufCapacityA = buf_size; - state->UserFlags = flags; - state->UserCallback = callback; - state->UserCallbackData = callback_user_data; - - // Although we are active we don't prevent mouse from hovering other elements unless we are interacting right now with the widget. - // Down the line we should have a cleaner library-wide concept of Selected vs Active. - g.ActiveIdAllowOverlap = !io.MouseDown[0]; - g.WantTextInputNextFrame = 1; - - // Edit in progress - const float mouse_x = (io.MousePos.x - frame_bb.Min.x - style.FramePadding.x) + state->ScrollX; - const float mouse_y = (is_multiline ? (io.MousePos.y - draw_window->DC.CursorPos.y) : (g.FontSize * 0.5f)); - - const bool is_osx = io.ConfigMacOSXBehaviors; - if (select_all || (hovered && !is_osx && io.MouseDoubleClicked[0])) - { - state->SelectAll(); - state->SelectedAllMouseLock = true; - } - else if (hovered && is_osx && io.MouseDoubleClicked[0]) - { - // Double-click select a word only, OS X style (by simulating keystrokes) - state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT); - state->OnKeyPressed(STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT); - } - else if (io.MouseClicked[0] && !state->SelectedAllMouseLock) - { - if (hovered) - { - stb_textedit_click(state, &state->Stb, mouse_x, mouse_y); - state->CursorAnimReset(); - } - } - else if (io.MouseDown[0] && !state->SelectedAllMouseLock && (io.MouseDelta.x != 0.0f || io.MouseDelta.y != 0.0f)) - { - stb_textedit_drag(state, &state->Stb, mouse_x, mouse_y); - state->CursorAnimReset(); - state->CursorFollow = true; - } - if (state->SelectedAllMouseLock && !io.MouseDown[0]) - state->SelectedAllMouseLock = false; - - // It is ill-defined whether the backend needs to send a \t character when pressing the TAB keys. - // Win32 and GLFW naturally do it but not SDL. - const bool ignore_char_inputs = (io.KeyCtrl && !io.KeyAlt) || (is_osx && io.KeySuper); - if ((flags & ImGuiInputTextFlags_AllowTabInput) && IsKeyPressedMap(ImGuiKey_Tab) && !ignore_char_inputs && !io.KeyShift && !is_readonly) - if (!io.InputQueueCharacters.contains('\t')) - { - unsigned int c = '\t'; // Insert TAB - if (InputTextFilterCharacter(&c, flags, callback, callback_user_data)) - state->OnKeyPressed((int)c); - } - - // Process regular text input (before we check for Return because using some IME will effectively send a Return?) - // We ignore CTRL inputs, but need to allow ALT+CTRL as some keyboards (e.g. German) use AltGR (which _is_ Alt+Ctrl) to input certain characters. - if (io.InputQueueCharacters.Size > 0) - { - if (!ignore_char_inputs && !is_readonly && !user_nav_input_start) - for (int n = 0; n < io.InputQueueCharacters.Size; n++) - { - // Insert character if they pass filtering - unsigned int c = (unsigned int)io.InputQueueCharacters[n]; - if (c == '\t' && io.KeyShift) - continue; - if (InputTextFilterCharacter(&c, flags, callback, callback_user_data)) - state->OnKeyPressed((int)c); - } - - // Consume characters - io.InputQueueCharacters.resize(0); - } - } - - // Process other shortcuts/key-presses - bool cancel_edit = false; - if (g.ActiveId == id && !g.ActiveIdIsJustActivated && !clear_active_id) - { - IM_ASSERT(state != NULL); - IM_ASSERT(io.KeyMods == GetMergedKeyModFlags() && "Mismatching io.KeyCtrl/io.KeyShift/io.KeyAlt/io.KeySuper vs io.KeyMods"); // We rarely do this check, but if anything let's do it here. - - const int row_count_per_page = ImMax((int)((inner_size.y - style.FramePadding.y) / g.FontSize), 1); - state->Stb.row_count_per_page = row_count_per_page; - - const int k_mask = (io.KeyShift ? STB_TEXTEDIT_K_SHIFT : 0); - const bool is_osx = io.ConfigMacOSXBehaviors; - const bool is_osx_shift_shortcut = is_osx && (io.KeyMods == (ImGuiKeyModFlags_Super | ImGuiKeyModFlags_Shift)); - const bool is_wordmove_key_down = is_osx ? io.KeyAlt : io.KeyCtrl; // OS X style: Text editing cursor movement using Alt instead of Ctrl - const bool is_startend_key_down = is_osx && io.KeySuper && !io.KeyCtrl && !io.KeyAlt; // OS X style: Line/Text Start and End using Cmd+Arrows instead of Home/End - const bool is_ctrl_key_only = (io.KeyMods == ImGuiKeyModFlags_Ctrl); - const bool is_shift_key_only = (io.KeyMods == ImGuiKeyModFlags_Shift); - const bool is_shortcut_key = g.IO.ConfigMacOSXBehaviors ? (io.KeyMods == ImGuiKeyModFlags_Super) : (io.KeyMods == ImGuiKeyModFlags_Ctrl); - - const bool is_cut = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_X)) || (is_shift_key_only && IsKeyPressedMap(ImGuiKey_Delete))) && !is_readonly && !is_password && (!is_multiline || state->HasSelection()); - const bool is_copy = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_C)) || (is_ctrl_key_only && IsKeyPressedMap(ImGuiKey_Insert))) && !is_password && (!is_multiline || state->HasSelection()); - const bool is_paste = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_V)) || (is_shift_key_only && IsKeyPressedMap(ImGuiKey_Insert))) && !is_readonly; - const bool is_undo = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_Z)) && !is_readonly && is_undoable); - const bool is_redo = ((is_shortcut_key && IsKeyPressedMap(ImGuiKey_Y)) || (is_osx_shift_shortcut && IsKeyPressedMap(ImGuiKey_Z))) && !is_readonly && is_undoable; - - if (IsKeyPressedMap(ImGuiKey_LeftArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINESTART : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDLEFT : STB_TEXTEDIT_K_LEFT) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_RightArrow)) { state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_LINEEND : is_wordmove_key_down ? STB_TEXTEDIT_K_WORDRIGHT : STB_TEXTEDIT_K_RIGHT) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_UpArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMax(draw_window->Scroll.y - g.FontSize, 0.0f)); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTSTART : STB_TEXTEDIT_K_UP) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_DownArrow) && is_multiline) { if (io.KeyCtrl) SetScrollY(draw_window, ImMin(draw_window->Scroll.y + g.FontSize, GetScrollMaxY())); else state->OnKeyPressed((is_startend_key_down ? STB_TEXTEDIT_K_TEXTEND : STB_TEXTEDIT_K_DOWN) | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_PageUp) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGUP | k_mask); scroll_y -= row_count_per_page * g.FontSize; } - else if (IsKeyPressedMap(ImGuiKey_PageDown) && is_multiline) { state->OnKeyPressed(STB_TEXTEDIT_K_PGDOWN | k_mask); scroll_y += row_count_per_page * g.FontSize; } - else if (IsKeyPressedMap(ImGuiKey_Home)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTSTART | k_mask : STB_TEXTEDIT_K_LINESTART | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_End)) { state->OnKeyPressed(io.KeyCtrl ? STB_TEXTEDIT_K_TEXTEND | k_mask : STB_TEXTEDIT_K_LINEEND | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_Delete) && !is_readonly) { state->OnKeyPressed(STB_TEXTEDIT_K_DELETE | k_mask); } - else if (IsKeyPressedMap(ImGuiKey_Backspace) && !is_readonly) - { - if (!state->HasSelection()) - { - if (is_wordmove_key_down) - state->OnKeyPressed(STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT); - else if (is_osx && io.KeySuper && !io.KeyAlt && !io.KeyCtrl) - state->OnKeyPressed(STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT); - } - state->OnKeyPressed(STB_TEXTEDIT_K_BACKSPACE | k_mask); - } - else if (IsKeyPressedMap(ImGuiKey_Enter) || IsKeyPressedMap(ImGuiKey_KeyPadEnter)) - { - bool ctrl_enter_for_new_line = (flags & ImGuiInputTextFlags_CtrlEnterForNewLine) != 0; - if (!is_multiline || (ctrl_enter_for_new_line && !io.KeyCtrl) || (!ctrl_enter_for_new_line && io.KeyCtrl)) - { - enter_pressed = clear_active_id = true; - } - else if (!is_readonly) - { - unsigned int c = '\n'; // Insert new line - if (InputTextFilterCharacter(&c, flags, callback, callback_user_data)) - state->OnKeyPressed((int)c); - } - } - else if (IsKeyPressedMap(ImGuiKey_Escape)) - { - clear_active_id = cancel_edit = true; - } - else if (is_undo || is_redo) - { - state->OnKeyPressed(is_undo ? STB_TEXTEDIT_K_UNDO : STB_TEXTEDIT_K_REDO); - state->ClearSelection(); - } - else if (is_shortcut_key && IsKeyPressedMap(ImGuiKey_A)) - { - state->SelectAll(); - state->CursorFollow = true; - } - else if (is_cut || is_copy) - { - // Cut, Copy - if (io.SetClipboardTextFn) - { - const int ib = state->HasSelection() ? ImMin(state->Stb.select_start, state->Stb.select_end) : 0; - const int ie = state->HasSelection() ? ImMax(state->Stb.select_start, state->Stb.select_end) : state->CurLenW; - const int clipboard_data_len = ImTextCountUtf8BytesFromStr(state->TextW.Data + ib, state->TextW.Data + ie) + 1; - char* clipboard_data = (char*)IM_ALLOC(clipboard_data_len * sizeof(char)); - ImTextStrToUtf8(clipboard_data, clipboard_data_len, state->TextW.Data + ib, state->TextW.Data + ie); - SetClipboardText(clipboard_data); - MemFree(clipboard_data); - } - if (is_cut) - { - if (!state->HasSelection()) - state->SelectAll(); - state->CursorFollow = true; - stb_textedit_cut(state, &state->Stb); - } - } - else if (is_paste) - { - if (const char* clipboard = GetClipboardText()) - { - // Filter pasted buffer - const int clipboard_len = (int)strlen(clipboard); - ImWchar* clipboard_filtered = (ImWchar*)IM_ALLOC((clipboard_len + 1) * sizeof(ImWchar)); - int clipboard_filtered_len = 0; - for (const char* s = clipboard; *s; ) - { - unsigned int c; - s += ImTextCharFromUtf8(&c, s, NULL); - if (c == 0) - break; - if (!InputTextFilterCharacter(&c, flags, callback, callback_user_data)) - continue; - clipboard_filtered[clipboard_filtered_len++] = (ImWchar)c; - } - clipboard_filtered[clipboard_filtered_len] = 0; - if (clipboard_filtered_len > 0) // If everything was filtered, ignore the pasting operation - { - stb_textedit_paste(state, &state->Stb, clipboard_filtered, clipboard_filtered_len); - state->CursorFollow = true; - } - MemFree(clipboard_filtered); - } - } - - // Update render selection flag after events have been handled, so selection highlight can be displayed during the same frame. - render_selection |= state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); - } - - // Process callbacks and apply result back to user's buffer. - if (g.ActiveId == id) - { - IM_ASSERT(state != NULL); - const char* apply_new_text = NULL; - int apply_new_text_length = 0; - if (cancel_edit) - { - // Restore initial value. Only return true if restoring to the initial value changes the current buffer contents. - if (!is_readonly && strcmp(buf, state->InitialTextA.Data) != 0) - { - // Push records into the undo stack so we can CTRL+Z the revert operation itself - apply_new_text = state->InitialTextA.Data; - apply_new_text_length = state->InitialTextA.Size - 1; - ImVector w_text; - if (apply_new_text_length > 0) - { - w_text.resize(ImTextCountCharsFromUtf8(apply_new_text, apply_new_text + apply_new_text_length) + 1); - ImTextStrFromUtf8(w_text.Data, w_text.Size, apply_new_text, apply_new_text + apply_new_text_length); - } - stb_textedit_replace(state, &state->Stb, w_text.Data, (apply_new_text_length > 0) ? (w_text.Size - 1) : 0); - } - } - - // When using 'ImGuiInputTextFlags_EnterReturnsTrue' as a special case we reapply the live buffer back to the input buffer before clearing ActiveId, even though strictly speaking it wasn't modified on this frame. - // If we didn't do that, code like InputInt() with ImGuiInputTextFlags_EnterReturnsTrue would fail. - // This also allows the user to use InputText() with ImGuiInputTextFlags_EnterReturnsTrue without maintaining any user-side storage (please note that if you use this property along ImGuiInputTextFlags_CallbackResize you can end up with your temporary string object unnecessarily allocating once a frame, either store your string data, either if you don't then don't use ImGuiInputTextFlags_CallbackResize). - bool apply_edit_back_to_user_buffer = !cancel_edit || (enter_pressed && (flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0); - if (apply_edit_back_to_user_buffer) - { - // Apply new value immediately - copy modified buffer back - // Note that as soon as the input box is active, the in-widget value gets priority over any underlying modification of the input buffer - // FIXME: We actually always render 'buf' when calling DrawList->AddText, making the comment above incorrect. - // FIXME-OPT: CPU waste to do this every time the widget is active, should mark dirty state from the stb_textedit callbacks. - if (!is_readonly) - { - state->TextAIsValid = true; - state->TextA.resize(state->TextW.Size * 4 + 1); - ImTextStrToUtf8(state->TextA.Data, state->TextA.Size, state->TextW.Data, NULL); - } - - // User callback - if ((flags & (ImGuiInputTextFlags_CallbackCompletion | ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackEdit | ImGuiInputTextFlags_CallbackAlways)) != 0) - { - IM_ASSERT(callback != NULL); - - // The reason we specify the usage semantic (Completion/History) is that Completion needs to disable keyboard TABBING at the moment. - ImGuiInputTextFlags event_flag = 0; - ImGuiKey event_key = ImGuiKey_COUNT; - if ((flags & ImGuiInputTextFlags_CallbackCompletion) != 0 && IsKeyPressedMap(ImGuiKey_Tab)) - { - event_flag = ImGuiInputTextFlags_CallbackCompletion; - event_key = ImGuiKey_Tab; - } - else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressedMap(ImGuiKey_UpArrow)) - { - event_flag = ImGuiInputTextFlags_CallbackHistory; - event_key = ImGuiKey_UpArrow; - } - else if ((flags & ImGuiInputTextFlags_CallbackHistory) != 0 && IsKeyPressedMap(ImGuiKey_DownArrow)) - { - event_flag = ImGuiInputTextFlags_CallbackHistory; - event_key = ImGuiKey_DownArrow; - } - else if ((flags & ImGuiInputTextFlags_CallbackEdit) && state->Edited) - { - event_flag = ImGuiInputTextFlags_CallbackEdit; - } - else if (flags & ImGuiInputTextFlags_CallbackAlways) - { - event_flag = ImGuiInputTextFlags_CallbackAlways; - } - - if (event_flag) - { - ImGuiInputTextCallbackData callback_data; - memset(&callback_data, 0, sizeof(ImGuiInputTextCallbackData)); - callback_data.EventFlag = event_flag; - callback_data.Flags = flags; - callback_data.UserData = callback_user_data; - - callback_data.EventKey = event_key; - callback_data.Buf = state->TextA.Data; - callback_data.BufTextLen = state->CurLenA; - callback_data.BufSize = state->BufCapacityA; - callback_data.BufDirty = false; - - // We have to convert from wchar-positions to UTF-8-positions, which can be pretty slow (an incentive to ditch the ImWchar buffer, see https://github.com/nothings/stb/issues/188) - ImWchar* text = state->TextW.Data; - const int utf8_cursor_pos = callback_data.CursorPos = ImTextCountUtf8BytesFromStr(text, text + state->Stb.cursor); - const int utf8_selection_start = callback_data.SelectionStart = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_start); - const int utf8_selection_end = callback_data.SelectionEnd = ImTextCountUtf8BytesFromStr(text, text + state->Stb.select_end); - - // Call user code - callback(&callback_data); - - // Read back what user may have modified - IM_ASSERT(callback_data.Buf == state->TextA.Data); // Invalid to modify those fields - IM_ASSERT(callback_data.BufSize == state->BufCapacityA); - IM_ASSERT(callback_data.Flags == flags); - const bool buf_dirty = callback_data.BufDirty; - if (callback_data.CursorPos != utf8_cursor_pos || buf_dirty) { state->Stb.cursor = ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.CursorPos); state->CursorFollow = true; } - if (callback_data.SelectionStart != utf8_selection_start || buf_dirty) { state->Stb.select_start = (callback_data.SelectionStart == callback_data.CursorPos) ? state->Stb.cursor : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionStart); } - if (callback_data.SelectionEnd != utf8_selection_end || buf_dirty) { state->Stb.select_end = (callback_data.SelectionEnd == callback_data.SelectionStart) ? state->Stb.select_start : ImTextCountCharsFromUtf8(callback_data.Buf, callback_data.Buf + callback_data.SelectionEnd); } - if (buf_dirty) - { - IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text! - if (callback_data.BufTextLen > backup_current_text_length && is_resizable) - state->TextW.resize(state->TextW.Size + (callback_data.BufTextLen - backup_current_text_length)); - state->CurLenW = ImTextStrFromUtf8(state->TextW.Data, state->TextW.Size, callback_data.Buf, NULL); - state->CurLenA = callback_data.BufTextLen; // Assume correct length and valid UTF-8 from user, saves us an extra strlen() - state->CursorAnimReset(); - } - } - } - - // Will copy result string if modified - if (!is_readonly && strcmp(state->TextA.Data, buf) != 0) - { - apply_new_text = state->TextA.Data; - apply_new_text_length = state->CurLenA; - } - } - - // Copy result to user buffer - if (apply_new_text) - { - // We cannot test for 'backup_current_text_length != apply_new_text_length' here because we have no guarantee that the size - // of our owned buffer matches the size of the string object held by the user, and by design we allow InputText() to be used - // without any storage on user's side. - IM_ASSERT(apply_new_text_length >= 0); - if (is_resizable) - { - ImGuiInputTextCallbackData callback_data; - callback_data.EventFlag = ImGuiInputTextFlags_CallbackResize; - callback_data.Flags = flags; - callback_data.Buf = buf; - callback_data.BufTextLen = apply_new_text_length; - callback_data.BufSize = ImMax(buf_size, apply_new_text_length + 1); - callback_data.UserData = callback_user_data; - callback(&callback_data); - buf = callback_data.Buf; - buf_size = callback_data.BufSize; - apply_new_text_length = ImMin(callback_data.BufTextLen, buf_size - 1); - IM_ASSERT(apply_new_text_length <= buf_size); - } - //IMGUI_DEBUG_LOG("InputText(\"%s\"): apply_new_text length %d\n", label, apply_new_text_length); - - // If the underlying buffer resize was denied or not carried to the next frame, apply_new_text_length+1 may be >= buf_size. - ImStrncpy(buf, apply_new_text, ImMin(apply_new_text_length + 1, buf_size)); - value_changed = true; - } - - // Clear temporary user storage - state->UserFlags = 0; - state->UserCallback = NULL; - state->UserCallbackData = NULL; - } - - // Release active ID at the end of the function (so e.g. pressing Return still does a final application of the value) - if (clear_active_id && g.ActiveId == id) - ClearActiveID(); - - // Render frame - if (!is_multiline) - { - RenderNavHighlight(frame_bb, id); - RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); - } - - const ImVec4 clip_rect(frame_bb.Min.x, frame_bb.Min.y, frame_bb.Min.x + inner_size.x, frame_bb.Min.y + inner_size.y); // Not using frame_bb.Max because we have adjusted size - ImVec2 draw_pos = is_multiline ? draw_window->DC.CursorPos : frame_bb.Min + style.FramePadding; - ImVec2 text_size(0.0f, 0.0f); - - // Set upper limit of single-line InputTextEx() at 2 million characters strings. The current pathological worst case is a long line - // without any carriage return, which would makes ImFont::RenderText() reserve too many vertices and probably crash. Avoid it altogether. - // Note that we only use this limit on single-line InputText(), so a pathologically large line on a InputTextMultiline() would still crash. - const int buf_display_max_length = 2 * 1024 * 1024; - const char* buf_display = buf_display_from_state ? state->TextA.Data : buf; //-V595 - const char* buf_display_end = NULL; // We have specialized paths below for setting the length - if (is_displaying_hint) - { - buf_display = hint; - buf_display_end = hint + strlen(hint); - } - - // Render text. We currently only render selection when the widget is active or while scrolling. - // FIXME: We could remove the '&& render_cursor' to keep rendering selection when inactive. - if (render_cursor || render_selection) - { - IM_ASSERT(state != NULL); - if (!is_displaying_hint) - buf_display_end = buf_display + state->CurLenA; - - // Render text (with cursor and selection) - // This is going to be messy. We need to: - // - Display the text (this alone can be more easily clipped) - // - Handle scrolling, highlight selection, display cursor (those all requires some form of 1d->2d cursor position calculation) - // - Measure text height (for scrollbar) - // We are attempting to do most of that in **one main pass** to minimize the computation cost (non-negligible for large amount of text) + 2nd pass for selection rendering (we could merge them by an extra refactoring effort) - // FIXME: This should occur on buf_display but we'd need to maintain cursor/select_start/select_end for UTF-8. - const ImWchar* text_begin = state->TextW.Data; - ImVec2 cursor_offset, select_start_offset; - - { - // Find lines numbers straddling 'cursor' (slot 0) and 'select_start' (slot 1) positions. - const ImWchar* searches_input_ptr[2] = { NULL, NULL }; - int searches_result_line_no[2] = { -1000, -1000 }; - int searches_remaining = 0; - if (render_cursor) - { - searches_input_ptr[0] = text_begin + state->Stb.cursor; - searches_result_line_no[0] = -1; - searches_remaining++; - } - if (render_selection) - { - searches_input_ptr[1] = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); - searches_result_line_no[1] = -1; - searches_remaining++; - } - - // Iterate all lines to find our line numbers - // In multi-line mode, we never exit the loop until all lines are counted, so add one extra to the searches_remaining counter. - searches_remaining += is_multiline ? 1 : 0; - int line_count = 0; - //for (const ImWchar* s = text_begin; (s = (const ImWchar*)wcschr((const wchar_t*)s, (wchar_t)'\n')) != NULL; s++) // FIXME-OPT: Could use this when wchar_t are 16-bit - for (const ImWchar* s = text_begin; *s != 0; s++) - if (*s == '\n') - { - line_count++; - if (searches_result_line_no[0] == -1 && s >= searches_input_ptr[0]) { searches_result_line_no[0] = line_count; if (--searches_remaining <= 0) break; } - if (searches_result_line_no[1] == -1 && s >= searches_input_ptr[1]) { searches_result_line_no[1] = line_count; if (--searches_remaining <= 0) break; } - } - line_count++; - if (searches_result_line_no[0] == -1) - searches_result_line_no[0] = line_count; - if (searches_result_line_no[1] == -1) - searches_result_line_no[1] = line_count; - - // Calculate 2d position by finding the beginning of the line and measuring distance - cursor_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[0], text_begin), searches_input_ptr[0]).x; - cursor_offset.y = searches_result_line_no[0] * g.FontSize; - if (searches_result_line_no[1] >= 0) - { - select_start_offset.x = InputTextCalcTextSizeW(ImStrbolW(searches_input_ptr[1], text_begin), searches_input_ptr[1]).x; - select_start_offset.y = searches_result_line_no[1] * g.FontSize; - } - - // Store text height (note that we haven't calculated text width at all, see GitHub issues #383, #1224) - if (is_multiline) - text_size = ImVec2(inner_size.x, line_count * g.FontSize); - } - - // Scroll - if (render_cursor && state->CursorFollow) - { - // Horizontal scroll in chunks of quarter width - if (!(flags & ImGuiInputTextFlags_NoHorizontalScroll)) - { - const float scroll_increment_x = inner_size.x * 0.25f; - const float visible_width = inner_size.x - style.FramePadding.x; - if (cursor_offset.x < state->ScrollX) - state->ScrollX = IM_FLOOR(ImMax(0.0f, cursor_offset.x - scroll_increment_x)); - else if (cursor_offset.x - visible_width >= state->ScrollX) - state->ScrollX = IM_FLOOR(cursor_offset.x - visible_width + scroll_increment_x); - } - else - { - state->ScrollX = 0.0f; - } - - // Vertical scroll - if (is_multiline) - { - // Test if cursor is vertically visible - if (cursor_offset.y - g.FontSize < scroll_y) - scroll_y = ImMax(0.0f, cursor_offset.y - g.FontSize); - else if (cursor_offset.y - inner_size.y >= scroll_y) - scroll_y = cursor_offset.y - inner_size.y + style.FramePadding.y * 2.0f; - const float scroll_max_y = ImMax((text_size.y + style.FramePadding.y * 2.0f) - inner_size.y, 0.0f); - scroll_y = ImClamp(scroll_y, 0.0f, scroll_max_y); - draw_pos.y += (draw_window->Scroll.y - scroll_y); // Manipulate cursor pos immediately avoid a frame of lag - draw_window->Scroll.y = scroll_y; - } - - state->CursorFollow = false; - } - - // Draw selection - const ImVec2 draw_scroll = ImVec2(state->ScrollX, 0.0f); - if (render_selection) - { - const ImWchar* text_selected_begin = text_begin + ImMin(state->Stb.select_start, state->Stb.select_end); - const ImWchar* text_selected_end = text_begin + ImMax(state->Stb.select_start, state->Stb.select_end); - - ImU32 bg_color = GetColorU32(ImGuiCol_TextSelectedBg, render_cursor ? 1.0f : 0.6f); // FIXME: current code flow mandate that render_cursor is always true here, we are leaving the transparent one for tests. - float bg_offy_up = is_multiline ? 0.0f : -1.0f; // FIXME: those offsets should be part of the style? they don't play so well with multi-line selection. - float bg_offy_dn = is_multiline ? 0.0f : 2.0f; - ImVec2 rect_pos = draw_pos + select_start_offset - draw_scroll; - for (const ImWchar* p = text_selected_begin; p < text_selected_end; ) - { - if (rect_pos.y > clip_rect.w + g.FontSize) - break; - if (rect_pos.y < clip_rect.y) - { - //p = (const ImWchar*)wmemchr((const wchar_t*)p, '\n', text_selected_end - p); // FIXME-OPT: Could use this when wchar_t are 16-bit - //p = p ? p + 1 : text_selected_end; - while (p < text_selected_end) - if (*p++ == '\n') - break; - } - else - { - ImVec2 rect_size = InputTextCalcTextSizeW(p, text_selected_end, &p, NULL, true); - if (rect_size.x <= 0.0f) rect_size.x = IM_FLOOR(g.Font->GetCharAdvance((ImWchar)' ') * 0.50f); // So we can see selected empty lines - ImRect rect(rect_pos + ImVec2(0.0f, bg_offy_up - g.FontSize), rect_pos + ImVec2(rect_size.x, bg_offy_dn)); - rect.ClipWith(clip_rect); - if (rect.Overlaps(clip_rect)) - draw_window->DrawList->AddRectFilled(rect.Min, rect.Max, bg_color); - } - rect_pos.x = draw_pos.x - draw_scroll.x; - rect_pos.y += g.FontSize; - } - } - - // We test for 'buf_display_max_length' as a way to avoid some pathological cases (e.g. single-line 1 MB string) which would make ImDrawList crash. - if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) - { - ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); - draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos - draw_scroll, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); - } - - // Draw blinking cursor - if (render_cursor) - { - state->CursorAnim += io.DeltaTime; - bool cursor_is_visible = (!g.IO.ConfigInputTextCursorBlink) || (state->CursorAnim <= 0.0f) || ImFmod(state->CursorAnim, 1.20f) <= 0.80f; - ImVec2 cursor_screen_pos = draw_pos + cursor_offset - draw_scroll; - ImRect cursor_screen_rect(cursor_screen_pos.x, cursor_screen_pos.y - g.FontSize + 0.5f, cursor_screen_pos.x + 1.0f, cursor_screen_pos.y - 1.5f); - if (cursor_is_visible && cursor_screen_rect.Overlaps(clip_rect)) - draw_window->DrawList->AddLine(cursor_screen_rect.Min, cursor_screen_rect.GetBL(), GetColorU32(ImGuiCol_Text)); - - // Notify OS of text input position for advanced IME (-1 x offset so that Windows IME can cover our cursor. Bit of an extra nicety.) - if (!is_readonly) - g.PlatformImePos = ImVec2(cursor_screen_pos.x - 1.0f, cursor_screen_pos.y - g.FontSize); - } - } - else - { - // Render text only (no selection, no cursor) - if (is_multiline) - text_size = ImVec2(inner_size.x, InputTextCalcTextLenAndLineCount(buf_display, &buf_display_end) * g.FontSize); // We don't need width - else if (!is_displaying_hint && g.ActiveId == id) - buf_display_end = buf_display + state->CurLenA; - else if (!is_displaying_hint) - buf_display_end = buf_display + strlen(buf_display); - - if (is_multiline || (buf_display_end - buf_display) < buf_display_max_length) - { - ImU32 col = GetColorU32(is_displaying_hint ? ImGuiCol_TextDisabled : ImGuiCol_Text); - draw_window->DrawList->AddText(g.Font, g.FontSize, draw_pos, col, buf_display, buf_display_end, 0.0f, is_multiline ? NULL : &clip_rect); - } - } - - if (is_password && !is_displaying_hint) - PopFont(); - - if (is_multiline) - { - Dummy(ImVec2(text_size.x, text_size.y + style.FramePadding.y)); - EndChild(); - EndGroup(); - } - - // Log as text - if (g.LogEnabled && (!is_password || is_displaying_hint)) - { - LogSetNextTextDecoration("{", "}"); - LogRenderedText(&draw_pos, buf_display, buf_display_end); - } - - if (label_size.x > 0) - RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label); - - if (value_changed && !(flags & ImGuiInputTextFlags_NoMarkEdited)) - MarkItemEdited(id); - - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); - if ((flags & ImGuiInputTextFlags_EnterReturnsTrue) != 0) - return enter_pressed; - else - return value_changed; -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: ColorEdit, ColorPicker, ColorButton, etc. -//------------------------------------------------------------------------- -// - ColorEdit3() -// - ColorEdit4() -// - ColorPicker3() -// - RenderColorRectWithAlphaCheckerboard() [Internal] -// - ColorPicker4() -// - ColorButton() -// - SetColorEditOptions() -// - ColorTooltip() [Internal] -// - ColorEditOptionsPopup() [Internal] -// - ColorPickerOptionsPopup() [Internal] -//------------------------------------------------------------------------- - -bool ImGui::ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags) -{ - return ColorEdit4(label, col, flags | ImGuiColorEditFlags_NoAlpha); -} - -// Edit colors components (each component in 0.0f..1.0f range). -// See enum ImGuiColorEditFlags_ for available options. e.g. Only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. -// With typical options: Left-click on color square to open color picker. Right-click to open option menu. CTRL-Click over input fields to edit them and TAB to go to next item. -bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const float square_sz = GetFrameHeight(); - const float w_full = CalcItemWidth(); - const float w_button = (flags & ImGuiColorEditFlags_NoSmallPreview) ? 0.0f : (square_sz + style.ItemInnerSpacing.x); - const float w_inputs = w_full - w_button; - const char* label_display_end = FindRenderedTextEnd(label); - g.NextItemData.ClearFlags(); - - BeginGroup(); - PushID(label); - - // If we're not showing any slider there's no point in doing any HSV conversions - const ImGuiColorEditFlags flags_untouched = flags; - if (flags & ImGuiColorEditFlags_NoInputs) - flags = (flags & (~ImGuiColorEditFlags__DisplayMask)) | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_NoOptions; - - // Context menu: display and modify options (before defaults are applied) - if (!(flags & ImGuiColorEditFlags_NoOptions)) - ColorEditOptionsPopup(col, flags); - - // Read stored options - if (!(flags & ImGuiColorEditFlags__DisplayMask)) - flags |= (g.ColorEditOptions & ImGuiColorEditFlags__DisplayMask); - if (!(flags & ImGuiColorEditFlags__DataTypeMask)) - flags |= (g.ColorEditOptions & ImGuiColorEditFlags__DataTypeMask); - if (!(flags & ImGuiColorEditFlags__PickerMask)) - flags |= (g.ColorEditOptions & ImGuiColorEditFlags__PickerMask); - if (!(flags & ImGuiColorEditFlags__InputMask)) - flags |= (g.ColorEditOptions & ImGuiColorEditFlags__InputMask); - flags |= (g.ColorEditOptions & ~(ImGuiColorEditFlags__DisplayMask | ImGuiColorEditFlags__DataTypeMask | ImGuiColorEditFlags__PickerMask | ImGuiColorEditFlags__InputMask)); - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__DisplayMask)); // Check that only 1 is selected - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__InputMask)); // Check that only 1 is selected - - const bool alpha = (flags & ImGuiColorEditFlags_NoAlpha) == 0; - const bool hdr = (flags & ImGuiColorEditFlags_HDR) != 0; - const int components = alpha ? 4 : 3; - - // Convert to the formats we need - float f[4] = { col[0], col[1], col[2], alpha ? col[3] : 1.0f }; - if ((flags & ImGuiColorEditFlags_InputHSV) && (flags & ImGuiColorEditFlags_DisplayRGB)) - ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); - else if ((flags & ImGuiColorEditFlags_InputRGB) && (flags & ImGuiColorEditFlags_DisplayHSV)) - { - // Hue is lost when converting from greyscale rgb (saturation=0). Restore it. - ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); - if (memcmp(g.ColorEditLastColor, col, sizeof(float) * 3) == 0) - { - if (f[1] == 0) - f[0] = g.ColorEditLastHue; - if (f[2] == 0) - f[1] = g.ColorEditLastSat; - } - } - int i[4] = { IM_F32_TO_INT8_UNBOUND(f[0]), IM_F32_TO_INT8_UNBOUND(f[1]), IM_F32_TO_INT8_UNBOUND(f[2]), IM_F32_TO_INT8_UNBOUND(f[3]) }; - - bool value_changed = false; - bool value_changed_as_float = false; - - const ImVec2 pos = window->DC.CursorPos; - const float inputs_offset_x = (style.ColorButtonPosition == ImGuiDir_Left) ? w_button : 0.0f; - window->DC.CursorPos.x = pos.x + inputs_offset_x; - - if ((flags & (ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV)) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) - { - // RGB/HSV 0..255 Sliders - const float w_item_one = ImMax(1.0f, IM_FLOOR((w_inputs - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components)); - const float w_item_last = ImMax(1.0f, IM_FLOOR(w_inputs - (w_item_one + style.ItemInnerSpacing.x) * (components - 1))); - - const bool hide_prefix = (w_item_one <= CalcTextSize((flags & ImGuiColorEditFlags_Float) ? "M:0.000" : "M:000").x); - static const char* ids[4] = { "##X", "##Y", "##Z", "##W" }; - static const char* fmt_table_int[3][4] = - { - { "%3d", "%3d", "%3d", "%3d" }, // Short display - { "R:%3d", "G:%3d", "B:%3d", "A:%3d" }, // Long display for RGBA - { "H:%3d", "S:%3d", "V:%3d", "A:%3d" } // Long display for HSVA - }; - static const char* fmt_table_float[3][4] = - { - { "%0.3f", "%0.3f", "%0.3f", "%0.3f" }, // Short display - { "R:%0.3f", "G:%0.3f", "B:%0.3f", "A:%0.3f" }, // Long display for RGBA - { "H:%0.3f", "S:%0.3f", "V:%0.3f", "A:%0.3f" } // Long display for HSVA - }; - const int fmt_idx = hide_prefix ? 0 : (flags & ImGuiColorEditFlags_DisplayHSV) ? 2 : 1; - - for (int n = 0; n < components; n++) - { - if (n > 0) - SameLine(0, style.ItemInnerSpacing.x); - SetNextItemWidth((n + 1 < components) ? w_item_one : w_item_last); - - // FIXME: When ImGuiColorEditFlags_HDR flag is passed HS values snap in weird ways when SV values go below 0. - if (flags & ImGuiColorEditFlags_Float) - { - value_changed |= DragFloat(ids[n], &f[n], 1.0f / 255.0f, 0.0f, hdr ? 0.0f : 1.0f, fmt_table_float[fmt_idx][n]); - value_changed_as_float |= value_changed; - } - else - { - value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]); - } - if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); - } - } - else if ((flags & ImGuiColorEditFlags_DisplayHex) != 0 && (flags & ImGuiColorEditFlags_NoInputs) == 0) - { - // RGB Hexadecimal Input - char buf[64]; - if (alpha) - ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255), ImClamp(i[3], 0, 255)); - else - ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", ImClamp(i[0], 0, 255), ImClamp(i[1], 0, 255), ImClamp(i[2], 0, 255)); - SetNextItemWidth(w_inputs); - if (InputText("##Text", buf, IM_ARRAYSIZE(buf), ImGuiInputTextFlags_CharsHexadecimal | ImGuiInputTextFlags_CharsUppercase)) - { - value_changed = true; - char* p = buf; - while (*p == '#' || ImCharIsBlankA(*p)) - p++; - i[0] = i[1] = i[2] = i[3] = 0; - if (alpha) - sscanf(p, "%02X%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2], (unsigned int*)&i[3]); // Treat at unsigned (%X is unsigned) - else - sscanf(p, "%02X%02X%02X", (unsigned int*)&i[0], (unsigned int*)&i[1], (unsigned int*)&i[2]); - } - if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); - } - - ImGuiWindow* picker_active_window = NULL; - if (!(flags & ImGuiColorEditFlags_NoSmallPreview)) - { - const float button_offset_x = ((flags & ImGuiColorEditFlags_NoInputs) || (style.ColorButtonPosition == ImGuiDir_Left)) ? 0.0f : w_inputs + style.ItemInnerSpacing.x; - window->DC.CursorPos = ImVec2(pos.x + button_offset_x, pos.y); - - const ImVec4 col_v4(col[0], col[1], col[2], alpha ? col[3] : 1.0f); - if (ColorButton("##ColorButton", col_v4, flags)) - { - if (!(flags & ImGuiColorEditFlags_NoPicker)) - { - // Store current color and open a picker - g.ColorPickerRef = col_v4; - OpenPopup("picker"); - SetNextWindowPos(window->DC.LastItemRect.GetBL() + ImVec2(-1, style.ItemSpacing.y)); - } - } - if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); - - if (BeginPopup("picker")) - { - picker_active_window = g.CurrentWindow; - if (label != label_display_end) - { - TextEx(label, label_display_end); - Spacing(); - } - ImGuiColorEditFlags picker_flags_to_forward = ImGuiColorEditFlags__DataTypeMask | ImGuiColorEditFlags__PickerMask | ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaBar; - ImGuiColorEditFlags picker_flags = (flags_untouched & picker_flags_to_forward) | ImGuiColorEditFlags__DisplayMask | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaPreviewHalf; - SetNextItemWidth(square_sz * 12.0f); // Use 256 + bar sizes? - value_changed |= ColorPicker4("##picker", col, picker_flags, &g.ColorPickerRef.x); - EndPopup(); - } - } - - if (label != label_display_end && !(flags & ImGuiColorEditFlags_NoLabel)) - { - const float text_offset_x = (flags & ImGuiColorEditFlags_NoInputs) ? w_button : w_full + style.ItemInnerSpacing.x; - window->DC.CursorPos = ImVec2(pos.x + text_offset_x, pos.y + style.FramePadding.y); - TextEx(label, label_display_end); - } - - // Convert back - if (value_changed && picker_active_window == NULL) - { - if (!value_changed_as_float) - for (int n = 0; n < 4; n++) - f[n] = i[n] / 255.0f; - if ((flags & ImGuiColorEditFlags_DisplayHSV) && (flags & ImGuiColorEditFlags_InputRGB)) - { - g.ColorEditLastHue = f[0]; - g.ColorEditLastSat = f[1]; - ColorConvertHSVtoRGB(f[0], f[1], f[2], f[0], f[1], f[2]); - memcpy(g.ColorEditLastColor, f, sizeof(float) * 3); - } - if ((flags & ImGuiColorEditFlags_DisplayRGB) && (flags & ImGuiColorEditFlags_InputHSV)) - ColorConvertRGBtoHSV(f[0], f[1], f[2], f[0], f[1], f[2]); - - col[0] = f[0]; - col[1] = f[1]; - col[2] = f[2]; - if (alpha) - col[3] = f[3]; - } - - PopID(); - EndGroup(); - - // Drag and Drop Target - // NB: The flag test is merely an optional micro-optimization, BeginDragDropTarget() does the same test. - if ((window->DC.LastItemStatusFlags & ImGuiItemStatusFlags_HoveredRect) && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropTarget()) - { - bool accepted_drag_drop = false; - if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F)) - { - memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 - value_changed = accepted_drag_drop = true; - } - if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F)) - { - memcpy((float*)col, payload->Data, sizeof(float) * components); - value_changed = accepted_drag_drop = true; - } - - // Drag-drop payloads are always RGB - if (accepted_drag_drop && (flags & ImGuiColorEditFlags_InputHSV)) - ColorConvertRGBtoHSV(col[0], col[1], col[2], col[0], col[1], col[2]); - EndDragDropTarget(); - } - - // When picker is being actively used, use its active id so IsItemActive() will function on ColorEdit4(). - if (picker_active_window && g.ActiveId != 0 && g.ActiveIdWindow == picker_active_window) - window->DC.LastItemId = g.ActiveId; - - if (value_changed) - MarkItemEdited(window->DC.LastItemId); - - return value_changed; -} - -bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags) -{ - float col4[4] = { col[0], col[1], col[2], 1.0f }; - if (!ColorPicker4(label, col4, flags | ImGuiColorEditFlags_NoAlpha)) - return false; - col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2]; - return true; -} - -// Helper for ColorPicker4() -static void RenderArrowsForVerticalBar(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, float bar_w, float alpha) -{ - ImU32 alpha8 = IM_F32_TO_INT8_SAT(alpha); - ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x + 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Right, IM_COL32(0,0,0,alpha8)); - ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x, pos.y), half_sz, ImGuiDir_Right, IM_COL32(255,255,255,alpha8)); - ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x - 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Left, IM_COL32(0,0,0,alpha8)); - ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x, pos.y), half_sz, ImGuiDir_Left, IM_COL32(255,255,255,alpha8)); -} - -// Note: ColorPicker4() only accesses 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. -// (In C++ the 'float col[4]' notation for a function argument is equivalent to 'float* col', we only specify a size to facilitate understanding of the code.) -// FIXME: we adjust the big color square height based on item width, which may cause a flickering feedback loop (if automatic height makes a vertical scrollbar appears, affecting automatic width..) -// FIXME: this is trying to be aware of style.Alpha but not fully correct. Also, the color wheel will have overlapping glitches with (style.Alpha < 1.0) -bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImDrawList* draw_list = window->DrawList; - ImGuiStyle& style = g.Style; - ImGuiIO& io = g.IO; - - const float width = CalcItemWidth(); - g.NextItemData.ClearFlags(); - - PushID(label); - BeginGroup(); - - if (!(flags & ImGuiColorEditFlags_NoSidePreview)) - flags |= ImGuiColorEditFlags_NoSmallPreview; - - // Context menu: display and store options. - if (!(flags & ImGuiColorEditFlags_NoOptions)) - ColorPickerOptionsPopup(col, flags); - - // Read stored options - if (!(flags & ImGuiColorEditFlags__PickerMask)) - flags |= ((g.ColorEditOptions & ImGuiColorEditFlags__PickerMask) ? g.ColorEditOptions : ImGuiColorEditFlags__OptionsDefault) & ImGuiColorEditFlags__PickerMask; - if (!(flags & ImGuiColorEditFlags__InputMask)) - flags |= ((g.ColorEditOptions & ImGuiColorEditFlags__InputMask) ? g.ColorEditOptions : ImGuiColorEditFlags__OptionsDefault) & ImGuiColorEditFlags__InputMask; - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__PickerMask)); // Check that only 1 is selected - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__InputMask)); // Check that only 1 is selected - if (!(flags & ImGuiColorEditFlags_NoOptions)) - flags |= (g.ColorEditOptions & ImGuiColorEditFlags_AlphaBar); - - // Setup - int components = (flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4; - bool alpha_bar = (flags & ImGuiColorEditFlags_AlphaBar) && !(flags & ImGuiColorEditFlags_NoAlpha); - ImVec2 picker_pos = window->DC.CursorPos; - float square_sz = GetFrameHeight(); - float bars_width = square_sz; // Arbitrary smallish width of Hue/Alpha picking bars - float sv_picker_size = ImMax(bars_width * 1, width - (alpha_bar ? 2 : 1) * (bars_width + style.ItemInnerSpacing.x)); // Saturation/Value picking box - float bar0_pos_x = picker_pos.x + sv_picker_size + style.ItemInnerSpacing.x; - float bar1_pos_x = bar0_pos_x + bars_width + style.ItemInnerSpacing.x; - float bars_triangles_half_sz = IM_FLOOR(bars_width * 0.20f); - - float backup_initial_col[4]; - memcpy(backup_initial_col, col, components * sizeof(float)); - - float wheel_thickness = sv_picker_size * 0.08f; - float wheel_r_outer = sv_picker_size * 0.50f; - float wheel_r_inner = wheel_r_outer - wheel_thickness; - ImVec2 wheel_center(picker_pos.x + (sv_picker_size + bars_width)*0.5f, picker_pos.y + sv_picker_size * 0.5f); - - // Note: the triangle is displayed rotated with triangle_pa pointing to Hue, but most coordinates stays unrotated for logic. - float triangle_r = wheel_r_inner - (int)(sv_picker_size * 0.027f); - ImVec2 triangle_pa = ImVec2(triangle_r, 0.0f); // Hue point. - ImVec2 triangle_pb = ImVec2(triangle_r * -0.5f, triangle_r * -0.866025f); // Black point. - ImVec2 triangle_pc = ImVec2(triangle_r * -0.5f, triangle_r * +0.866025f); // White point. - - float H = col[0], S = col[1], V = col[2]; - float R = col[0], G = col[1], B = col[2]; - if (flags & ImGuiColorEditFlags_InputRGB) - { - // Hue is lost when converting from greyscale rgb (saturation=0). Restore it. - ColorConvertRGBtoHSV(R, G, B, H, S, V); - if (memcmp(g.ColorEditLastColor, col, sizeof(float) * 3) == 0) - { - if (S == 0) - H = g.ColorEditLastHue; - if (V == 0) - S = g.ColorEditLastSat; - } - } - else if (flags & ImGuiColorEditFlags_InputHSV) - { - ColorConvertHSVtoRGB(H, S, V, R, G, B); - } - - bool value_changed = false, value_changed_h = false, value_changed_sv = false; - - PushItemFlag(ImGuiItemFlags_NoNav, true); - if (flags & ImGuiColorEditFlags_PickerHueWheel) - { - // Hue wheel + SV triangle logic - InvisibleButton("hsv", ImVec2(sv_picker_size + style.ItemInnerSpacing.x + bars_width, sv_picker_size)); - if (IsItemActive()) - { - ImVec2 initial_off = g.IO.MouseClickedPos[0] - wheel_center; - ImVec2 current_off = g.IO.MousePos - wheel_center; - float initial_dist2 = ImLengthSqr(initial_off); - if (initial_dist2 >= (wheel_r_inner - 1) * (wheel_r_inner - 1) && initial_dist2 <= (wheel_r_outer + 1) * (wheel_r_outer + 1)) - { - // Interactive with Hue wheel - H = ImAtan2(current_off.y, current_off.x) / IM_PI * 0.5f; - if (H < 0.0f) - H += 1.0f; - value_changed = value_changed_h = true; - } - float cos_hue_angle = ImCos(-H * 2.0f * IM_PI); - float sin_hue_angle = ImSin(-H * 2.0f * IM_PI); - if (ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, ImRotate(initial_off, cos_hue_angle, sin_hue_angle))) - { - // Interacting with SV triangle - ImVec2 current_off_unrotated = ImRotate(current_off, cos_hue_angle, sin_hue_angle); - if (!ImTriangleContainsPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated)) - current_off_unrotated = ImTriangleClosestPoint(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated); - float uu, vv, ww; - ImTriangleBarycentricCoords(triangle_pa, triangle_pb, triangle_pc, current_off_unrotated, uu, vv, ww); - V = ImClamp(1.0f - vv, 0.0001f, 1.0f); - S = ImClamp(uu / V, 0.0001f, 1.0f); - value_changed = value_changed_sv = true; - } - } - if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); - } - else if (flags & ImGuiColorEditFlags_PickerHueBar) - { - // SV rectangle logic - InvisibleButton("sv", ImVec2(sv_picker_size, sv_picker_size)); - if (IsItemActive()) - { - S = ImSaturate((io.MousePos.x - picker_pos.x) / (sv_picker_size - 1)); - V = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); - value_changed = value_changed_sv = true; - } - if (!(flags & ImGuiColorEditFlags_NoOptions)) - OpenPopupOnItemClick("context"); - - // Hue bar logic - SetCursorScreenPos(ImVec2(bar0_pos_x, picker_pos.y)); - InvisibleButton("hue", ImVec2(bars_width, sv_picker_size)); - if (IsItemActive()) - { - H = ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); - value_changed = value_changed_h = true; - } - } - - // Alpha bar logic - if (alpha_bar) - { - SetCursorScreenPos(ImVec2(bar1_pos_x, picker_pos.y)); - InvisibleButton("alpha", ImVec2(bars_width, sv_picker_size)); - if (IsItemActive()) - { - col[3] = 1.0f - ImSaturate((io.MousePos.y - picker_pos.y) / (sv_picker_size - 1)); - value_changed = true; - } - } - PopItemFlag(); // ImGuiItemFlags_NoNav - - if (!(flags & ImGuiColorEditFlags_NoSidePreview)) - { - SameLine(0, style.ItemInnerSpacing.x); - BeginGroup(); - } - - if (!(flags & ImGuiColorEditFlags_NoLabel)) - { - const char* label_display_end = FindRenderedTextEnd(label); - if (label != label_display_end) - { - if ((flags & ImGuiColorEditFlags_NoSidePreview)) - SameLine(0, style.ItemInnerSpacing.x); - TextEx(label, label_display_end); - } - } - - if (!(flags & ImGuiColorEditFlags_NoSidePreview)) - { - PushItemFlag(ImGuiItemFlags_NoNavDefaultFocus, true); - ImVec4 col_v4(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); - if ((flags & ImGuiColorEditFlags_NoLabel)) - Text("Current"); - - ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_NoTooltip; - ColorButton("##current", col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2)); - if (ref_col != NULL) - { - Text("Original"); - ImVec4 ref_col_v4(ref_col[0], ref_col[1], ref_col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : ref_col[3]); - if (ColorButton("##original", ref_col_v4, (flags & sub_flags_to_forward), ImVec2(square_sz * 3, square_sz * 2))) - { - memcpy(col, ref_col, components * sizeof(float)); - value_changed = true; - } - } - PopItemFlag(); - EndGroup(); - } - - // Convert back color to RGB - if (value_changed_h || value_changed_sv) - { - if (flags & ImGuiColorEditFlags_InputRGB) - { - ColorConvertHSVtoRGB(H >= 1.0f ? H - 10 * 1e-6f : H, S > 0.0f ? S : 10 * 1e-6f, V > 0.0f ? V : 1e-6f, col[0], col[1], col[2]); - g.ColorEditLastHue = H; - g.ColorEditLastSat = S; - memcpy(g.ColorEditLastColor, col, sizeof(float) * 3); - } - else if (flags & ImGuiColorEditFlags_InputHSV) - { - col[0] = H; - col[1] = S; - col[2] = V; - } - } - - // R,G,B and H,S,V slider color editor - bool value_changed_fix_hue_wrap = false; - if ((flags & ImGuiColorEditFlags_NoInputs) == 0) - { - PushItemWidth((alpha_bar ? bar1_pos_x : bar0_pos_x) + bars_width - picker_pos.x); - ImGuiColorEditFlags sub_flags_to_forward = ImGuiColorEditFlags__DataTypeMask | ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_HDR | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoSmallPreview | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf; - ImGuiColorEditFlags sub_flags = (flags & sub_flags_to_forward) | ImGuiColorEditFlags_NoPicker; - if (flags & ImGuiColorEditFlags_DisplayRGB || (flags & ImGuiColorEditFlags__DisplayMask) == 0) - if (ColorEdit4("##rgb", col, sub_flags | ImGuiColorEditFlags_DisplayRGB)) - { - // FIXME: Hackily differentiating using the DragInt (ActiveId != 0 && !ActiveIdAllowOverlap) vs. using the InputText or DropTarget. - // For the later we don't want to run the hue-wrap canceling code. If you are well versed in HSV picker please provide your input! (See #2050) - value_changed_fix_hue_wrap = (g.ActiveId != 0 && !g.ActiveIdAllowOverlap); - value_changed = true; - } - if (flags & ImGuiColorEditFlags_DisplayHSV || (flags & ImGuiColorEditFlags__DisplayMask) == 0) - value_changed |= ColorEdit4("##hsv", col, sub_flags | ImGuiColorEditFlags_DisplayHSV); - if (flags & ImGuiColorEditFlags_DisplayHex || (flags & ImGuiColorEditFlags__DisplayMask) == 0) - value_changed |= ColorEdit4("##hex", col, sub_flags | ImGuiColorEditFlags_DisplayHex); - PopItemWidth(); - } - - // Try to cancel hue wrap (after ColorEdit4 call), if any - if (value_changed_fix_hue_wrap && (flags & ImGuiColorEditFlags_InputRGB)) - { - float new_H, new_S, new_V; - ColorConvertRGBtoHSV(col[0], col[1], col[2], new_H, new_S, new_V); - if (new_H <= 0 && H > 0) - { - if (new_V <= 0 && V != new_V) - ColorConvertHSVtoRGB(H, S, new_V <= 0 ? V * 0.5f : new_V, col[0], col[1], col[2]); - else if (new_S <= 0) - ColorConvertHSVtoRGB(H, new_S <= 0 ? S * 0.5f : new_S, new_V, col[0], col[1], col[2]); - } - } - - if (value_changed) - { - if (flags & ImGuiColorEditFlags_InputRGB) - { - R = col[0]; - G = col[1]; - B = col[2]; - ColorConvertRGBtoHSV(R, G, B, H, S, V); - if (memcmp(g.ColorEditLastColor, col, sizeof(float) * 3) == 0) // Fix local Hue as display below will use it immediately. - { - if (S == 0) - H = g.ColorEditLastHue; - if (V == 0) - S = g.ColorEditLastSat; - } - } - else if (flags & ImGuiColorEditFlags_InputHSV) - { - H = col[0]; - S = col[1]; - V = col[2]; - ColorConvertHSVtoRGB(H, S, V, R, G, B); - } - } - - const int style_alpha8 = IM_F32_TO_INT8_SAT(style.Alpha); - const ImU32 col_black = IM_COL32(0,0,0,style_alpha8); - const ImU32 col_white = IM_COL32(255,255,255,style_alpha8); - const ImU32 col_midgrey = IM_COL32(128,128,128,style_alpha8); - const ImU32 col_hues[6 + 1] = { IM_COL32(255,0,0,style_alpha8), IM_COL32(255,255,0,style_alpha8), IM_COL32(0,255,0,style_alpha8), IM_COL32(0,255,255,style_alpha8), IM_COL32(0,0,255,style_alpha8), IM_COL32(255,0,255,style_alpha8), IM_COL32(255,0,0,style_alpha8) }; - - ImVec4 hue_color_f(1, 1, 1, style.Alpha); ColorConvertHSVtoRGB(H, 1, 1, hue_color_f.x, hue_color_f.y, hue_color_f.z); - ImU32 hue_color32 = ColorConvertFloat4ToU32(hue_color_f); - ImU32 user_col32_striped_of_alpha = ColorConvertFloat4ToU32(ImVec4(R, G, B, style.Alpha)); // Important: this is still including the main rendering/style alpha!! - - ImVec2 sv_cursor_pos; - - if (flags & ImGuiColorEditFlags_PickerHueWheel) - { - // Render Hue Wheel - const float aeps = 0.5f / wheel_r_outer; // Half a pixel arc length in radians (2pi cancels out). - const int segment_per_arc = ImMax(4, (int)wheel_r_outer / 12); - for (int n = 0; n < 6; n++) - { - const float a0 = (n) /6.0f * 2.0f * IM_PI - aeps; - const float a1 = (n+1.0f)/6.0f * 2.0f * IM_PI + aeps; - const int vert_start_idx = draw_list->VtxBuffer.Size; - draw_list->PathArcTo(wheel_center, (wheel_r_inner + wheel_r_outer)*0.5f, a0, a1, segment_per_arc); - draw_list->PathStroke(col_white, false, wheel_thickness); - const int vert_end_idx = draw_list->VtxBuffer.Size; - - // Paint colors over existing vertices - ImVec2 gradient_p0(wheel_center.x + ImCos(a0) * wheel_r_inner, wheel_center.y + ImSin(a0) * wheel_r_inner); - ImVec2 gradient_p1(wheel_center.x + ImCos(a1) * wheel_r_inner, wheel_center.y + ImSin(a1) * wheel_r_inner); - ShadeVertsLinearColorGradientKeepAlpha(draw_list, vert_start_idx, vert_end_idx, gradient_p0, gradient_p1, col_hues[n], col_hues[n + 1]); - } - - // Render Cursor + preview on Hue Wheel - float cos_hue_angle = ImCos(H * 2.0f * IM_PI); - float sin_hue_angle = ImSin(H * 2.0f * IM_PI); - ImVec2 hue_cursor_pos(wheel_center.x + cos_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f, wheel_center.y + sin_hue_angle * (wheel_r_inner + wheel_r_outer) * 0.5f); - float hue_cursor_rad = value_changed_h ? wheel_thickness * 0.65f : wheel_thickness * 0.55f; - int hue_cursor_segments = ImClamp((int)(hue_cursor_rad / 1.4f), 9, 32); - draw_list->AddCircleFilled(hue_cursor_pos, hue_cursor_rad, hue_color32, hue_cursor_segments); - draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad + 1, col_midgrey, hue_cursor_segments); - draw_list->AddCircle(hue_cursor_pos, hue_cursor_rad, col_white, hue_cursor_segments); - - // Render SV triangle (rotated according to hue) - ImVec2 tra = wheel_center + ImRotate(triangle_pa, cos_hue_angle, sin_hue_angle); - ImVec2 trb = wheel_center + ImRotate(triangle_pb, cos_hue_angle, sin_hue_angle); - ImVec2 trc = wheel_center + ImRotate(triangle_pc, cos_hue_angle, sin_hue_angle); - ImVec2 uv_white = GetFontTexUvWhitePixel(); - draw_list->PrimReserve(6, 6); - draw_list->PrimVtx(tra, uv_white, hue_color32); - draw_list->PrimVtx(trb, uv_white, hue_color32); - draw_list->PrimVtx(trc, uv_white, col_white); - draw_list->PrimVtx(tra, uv_white, 0); - draw_list->PrimVtx(trb, uv_white, col_black); - draw_list->PrimVtx(trc, uv_white, 0); - draw_list->AddTriangle(tra, trb, trc, col_midgrey, 1.5f); - sv_cursor_pos = ImLerp(ImLerp(trc, tra, ImSaturate(S)), trb, ImSaturate(1 - V)); - } - else if (flags & ImGuiColorEditFlags_PickerHueBar) - { - // Render SV Square - draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), col_white, hue_color32, hue_color32, col_white); - draw_list->AddRectFilledMultiColor(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0, 0, col_black, col_black); - RenderFrameBorder(picker_pos, picker_pos + ImVec2(sv_picker_size, sv_picker_size), 0.0f); - sv_cursor_pos.x = ImClamp(IM_ROUND(picker_pos.x + ImSaturate(S) * sv_picker_size), picker_pos.x + 2, picker_pos.x + sv_picker_size - 2); // Sneakily prevent the circle to stick out too much - sv_cursor_pos.y = ImClamp(IM_ROUND(picker_pos.y + ImSaturate(1 - V) * sv_picker_size), picker_pos.y + 2, picker_pos.y + sv_picker_size - 2); - - // Render Hue Bar - for (int i = 0; i < 6; ++i) - draw_list->AddRectFilledMultiColor(ImVec2(bar0_pos_x, picker_pos.y + i * (sv_picker_size / 6)), ImVec2(bar0_pos_x + bars_width, picker_pos.y + (i + 1) * (sv_picker_size / 6)), col_hues[i], col_hues[i], col_hues[i + 1], col_hues[i + 1]); - float bar0_line_y = IM_ROUND(picker_pos.y + H * sv_picker_size); - RenderFrameBorder(ImVec2(bar0_pos_x, picker_pos.y), ImVec2(bar0_pos_x + bars_width, picker_pos.y + sv_picker_size), 0.0f); - RenderArrowsForVerticalBar(draw_list, ImVec2(bar0_pos_x - 1, bar0_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); - } - - // Render cursor/preview circle (clamp S/V within 0..1 range because floating points colors may lead HSV values to be out of range) - float sv_cursor_rad = value_changed_sv ? 10.0f : 6.0f; - draw_list->AddCircleFilled(sv_cursor_pos, sv_cursor_rad, user_col32_striped_of_alpha, 12); - draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad + 1, col_midgrey, 12); - draw_list->AddCircle(sv_cursor_pos, sv_cursor_rad, col_white, 12); - - // Render alpha bar - if (alpha_bar) - { - float alpha = ImSaturate(col[3]); - ImRect bar1_bb(bar1_pos_x, picker_pos.y, bar1_pos_x + bars_width, picker_pos.y + sv_picker_size); - RenderColorRectWithAlphaCheckerboard(draw_list, bar1_bb.Min, bar1_bb.Max, 0, bar1_bb.GetWidth() / 2.0f, ImVec2(0.0f, 0.0f)); - draw_list->AddRectFilledMultiColor(bar1_bb.Min, bar1_bb.Max, user_col32_striped_of_alpha, user_col32_striped_of_alpha, user_col32_striped_of_alpha & ~IM_COL32_A_MASK, user_col32_striped_of_alpha & ~IM_COL32_A_MASK); - float bar1_line_y = IM_ROUND(picker_pos.y + (1.0f - alpha) * sv_picker_size); - RenderFrameBorder(bar1_bb.Min, bar1_bb.Max, 0.0f); - RenderArrowsForVerticalBar(draw_list, ImVec2(bar1_pos_x - 1, bar1_line_y), ImVec2(bars_triangles_half_sz + 1, bars_triangles_half_sz), bars_width + 2.0f, style.Alpha); - } - - EndGroup(); - - if (value_changed && memcmp(backup_initial_col, col, components * sizeof(float)) == 0) - value_changed = false; - if (value_changed) - MarkItemEdited(window->DC.LastItemId); - - PopID(); - - return value_changed; -} - -// A little color square. Return true when clicked. -// FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip. -// 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip. -// Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set. -bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, ImVec2 size) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiID id = window->GetID(desc_id); - float default_size = GetFrameHeight(); - if (size.x == 0.0f) - size.x = default_size; - if (size.y == 0.0f) - size.y = default_size; - const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + size); - ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f); - if (!ItemAdd(bb, id)) - return false; - - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held); - - if (flags & ImGuiColorEditFlags_NoAlpha) - flags &= ~(ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf); - - ImVec4 col_rgb = col; - if (flags & ImGuiColorEditFlags_InputHSV) - ColorConvertHSVtoRGB(col_rgb.x, col_rgb.y, col_rgb.z, col_rgb.x, col_rgb.y, col_rgb.z); - - ImVec4 col_rgb_without_alpha(col_rgb.x, col_rgb.y, col_rgb.z, 1.0f); - float grid_step = ImMin(size.x, size.y) / 2.99f; - float rounding = ImMin(g.Style.FrameRounding, grid_step * 0.5f); - ImRect bb_inner = bb; - float off = 0.0f; - if ((flags & ImGuiColorEditFlags_NoBorder) == 0) - { - off = -0.75f; // The border (using Col_FrameBg) tends to look off when color is near-opaque and rounding is enabled. This offset seemed like a good middle ground to reduce those artifacts. - bb_inner.Expand(off); - } - if ((flags & ImGuiColorEditFlags_AlphaPreviewHalf) && col_rgb.w < 1.0f) - { - float mid_x = IM_ROUND((bb_inner.Min.x + bb_inner.Max.x) * 0.5f); - RenderColorRectWithAlphaCheckerboard(window->DrawList, ImVec2(bb_inner.Min.x + grid_step, bb_inner.Min.y), bb_inner.Max, GetColorU32(col_rgb), grid_step, ImVec2(-grid_step + off, off), rounding, ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight); - window->DrawList->AddRectFilled(bb_inner.Min, ImVec2(mid_x, bb_inner.Max.y), GetColorU32(col_rgb_without_alpha), rounding, ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft); - } - else - { - // Because GetColorU32() multiplies by the global style Alpha and we don't want to display a checkerboard if the source code had no alpha - ImVec4 col_source = (flags & ImGuiColorEditFlags_AlphaPreview) ? col_rgb : col_rgb_without_alpha; - if (col_source.w < 1.0f) - RenderColorRectWithAlphaCheckerboard(window->DrawList, bb_inner.Min, bb_inner.Max, GetColorU32(col_source), grid_step, ImVec2(off, off), rounding); - else - window->DrawList->AddRectFilled(bb_inner.Min, bb_inner.Max, GetColorU32(col_source), rounding, ImDrawCornerFlags_All); - } - RenderNavHighlight(bb, id); - if ((flags & ImGuiColorEditFlags_NoBorder) == 0) - { - if (g.Style.FrameBorderSize > 0.0f) - RenderFrameBorder(bb.Min, bb.Max, rounding); - else - window->DrawList->AddRect(bb.Min, bb.Max, GetColorU32(ImGuiCol_FrameBg), rounding); // Color button are often in need of some sort of border - } - - // Drag and Drop Source - // NB: The ActiveId test is merely an optional micro-optimization, BeginDragDropSource() does the same test. - if (g.ActiveId == id && !(flags & ImGuiColorEditFlags_NoDragDrop) && BeginDragDropSource()) - { - if (flags & ImGuiColorEditFlags_NoAlpha) - SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F, &col_rgb, sizeof(float) * 3, ImGuiCond_Once); - else - SetDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F, &col_rgb, sizeof(float) * 4, ImGuiCond_Once); - ColorButton(desc_id, col, flags); - SameLine(); - TextEx("Color"); - EndDragDropSource(); - } - - // Tooltip - if (!(flags & ImGuiColorEditFlags_NoTooltip) && hovered) - ColorTooltip(desc_id, &col.x, flags & (ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)); - - return pressed; -} - -// Initialize/override default color options -void ImGui::SetColorEditOptions(ImGuiColorEditFlags flags) -{ - ImGuiContext& g = *GImGui; - if ((flags & ImGuiColorEditFlags__DisplayMask) == 0) - flags |= ImGuiColorEditFlags__OptionsDefault & ImGuiColorEditFlags__DisplayMask; - if ((flags & ImGuiColorEditFlags__DataTypeMask) == 0) - flags |= ImGuiColorEditFlags__OptionsDefault & ImGuiColorEditFlags__DataTypeMask; - if ((flags & ImGuiColorEditFlags__PickerMask) == 0) - flags |= ImGuiColorEditFlags__OptionsDefault & ImGuiColorEditFlags__PickerMask; - if ((flags & ImGuiColorEditFlags__InputMask) == 0) - flags |= ImGuiColorEditFlags__OptionsDefault & ImGuiColorEditFlags__InputMask; - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__DisplayMask)); // Check only 1 option is selected - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__DataTypeMask)); // Check only 1 option is selected - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__PickerMask)); // Check only 1 option is selected - IM_ASSERT(ImIsPowerOfTwo(flags & ImGuiColorEditFlags__InputMask)); // Check only 1 option is selected - g.ColorEditOptions = flags; -} - -// Note: only access 3 floats if ImGuiColorEditFlags_NoAlpha flag is set. -void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags) -{ - ImGuiContext& g = *GImGui; - - BeginTooltipEx(0, ImGuiTooltipFlags_OverridePreviousTooltip); - const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text; - if (text_end > text) - { - TextEx(text, text_end); - Separator(); - } - - ImVec2 sz(g.FontSize * 3 + g.Style.FramePadding.y * 2, g.FontSize * 3 + g.Style.FramePadding.y * 2); - ImVec4 cf(col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); - int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); - ColorButton("##preview", cf, (flags & (ImGuiColorEditFlags__InputMask | ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_AlphaPreviewHalf)) | ImGuiColorEditFlags_NoTooltip, sz); - SameLine(); - if ((flags & ImGuiColorEditFlags_InputRGB) || !(flags & ImGuiColorEditFlags__InputMask)) - { - if (flags & ImGuiColorEditFlags_NoAlpha) - Text("#%02X%02X%02X\nR: %d, G: %d, B: %d\n(%.3f, %.3f, %.3f)", cr, cg, cb, cr, cg, cb, col[0], col[1], col[2]); - else - Text("#%02X%02X%02X%02X\nR:%d, G:%d, B:%d, A:%d\n(%.3f, %.3f, %.3f, %.3f)", cr, cg, cb, ca, cr, cg, cb, ca, col[0], col[1], col[2], col[3]); - } - else if (flags & ImGuiColorEditFlags_InputHSV) - { - if (flags & ImGuiColorEditFlags_NoAlpha) - Text("H: %.3f, S: %.3f, V: %.3f", col[0], col[1], col[2]); - else - Text("H: %.3f, S: %.3f, V: %.3f, A: %.3f", col[0], col[1], col[2], col[3]); - } - EndTooltip(); -} - -void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags) -{ - bool allow_opt_inputs = !(flags & ImGuiColorEditFlags__DisplayMask); - bool allow_opt_datatype = !(flags & ImGuiColorEditFlags__DataTypeMask); - if ((!allow_opt_inputs && !allow_opt_datatype) || !BeginPopup("context")) - return; - ImGuiContext& g = *GImGui; - ImGuiColorEditFlags opts = g.ColorEditOptions; - if (allow_opt_inputs) - { - if (RadioButton("RGB", (opts & ImGuiColorEditFlags_DisplayRGB) != 0)) opts = (opts & ~ImGuiColorEditFlags__DisplayMask) | ImGuiColorEditFlags_DisplayRGB; - if (RadioButton("HSV", (opts & ImGuiColorEditFlags_DisplayHSV) != 0)) opts = (opts & ~ImGuiColorEditFlags__DisplayMask) | ImGuiColorEditFlags_DisplayHSV; - if (RadioButton("Hex", (opts & ImGuiColorEditFlags_DisplayHex) != 0)) opts = (opts & ~ImGuiColorEditFlags__DisplayMask) | ImGuiColorEditFlags_DisplayHex; - } - if (allow_opt_datatype) - { - if (allow_opt_inputs) Separator(); - if (RadioButton("0..255", (opts & ImGuiColorEditFlags_Uint8) != 0)) opts = (opts & ~ImGuiColorEditFlags__DataTypeMask) | ImGuiColorEditFlags_Uint8; - if (RadioButton("0.00..1.00", (opts & ImGuiColorEditFlags_Float) != 0)) opts = (opts & ~ImGuiColorEditFlags__DataTypeMask) | ImGuiColorEditFlags_Float; - } - - if (allow_opt_inputs || allow_opt_datatype) - Separator(); - if (Button("Copy as..", ImVec2(-1, 0))) - OpenPopup("Copy"); - if (BeginPopup("Copy")) - { - int cr = IM_F32_TO_INT8_SAT(col[0]), cg = IM_F32_TO_INT8_SAT(col[1]), cb = IM_F32_TO_INT8_SAT(col[2]), ca = (flags & ImGuiColorEditFlags_NoAlpha) ? 255 : IM_F32_TO_INT8_SAT(col[3]); - char buf[64]; - ImFormatString(buf, IM_ARRAYSIZE(buf), "(%.3ff, %.3ff, %.3ff, %.3ff)", col[0], col[1], col[2], (flags & ImGuiColorEditFlags_NoAlpha) ? 1.0f : col[3]); - if (Selectable(buf)) - SetClipboardText(buf); - ImFormatString(buf, IM_ARRAYSIZE(buf), "(%d,%d,%d,%d)", cr, cg, cb, ca); - if (Selectable(buf)) - SetClipboardText(buf); - ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X", cr, cg, cb); - if (Selectable(buf)) - SetClipboardText(buf); - if (!(flags & ImGuiColorEditFlags_NoAlpha)) - { - ImFormatString(buf, IM_ARRAYSIZE(buf), "#%02X%02X%02X%02X", cr, cg, cb, ca); - if (Selectable(buf)) - SetClipboardText(buf); - } - EndPopup(); - } - - g.ColorEditOptions = opts; - EndPopup(); -} - -void ImGui::ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags) -{ - bool allow_opt_picker = !(flags & ImGuiColorEditFlags__PickerMask); - bool allow_opt_alpha_bar = !(flags & ImGuiColorEditFlags_NoAlpha) && !(flags & ImGuiColorEditFlags_AlphaBar); - if ((!allow_opt_picker && !allow_opt_alpha_bar) || !BeginPopup("context")) - return; - ImGuiContext& g = *GImGui; - if (allow_opt_picker) - { - ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpacing.x), 1.0f)); // FIXME: Picker size copied from main picker function - PushItemWidth(picker_size.x); - for (int picker_type = 0; picker_type < 2; picker_type++) - { - // Draw small/thumbnail version of each picker type (over an invisible button for selection) - if (picker_type > 0) Separator(); - PushID(picker_type); - ImGuiColorEditFlags picker_flags = ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_NoSidePreview | (flags & ImGuiColorEditFlags_NoAlpha); - if (picker_type == 0) picker_flags |= ImGuiColorEditFlags_PickerHueBar; - if (picker_type == 1) picker_flags |= ImGuiColorEditFlags_PickerHueWheel; - ImVec2 backup_pos = GetCursorScreenPos(); - if (Selectable("##selectable", false, 0, picker_size)) // By default, Selectable() is closing popup - g.ColorEditOptions = (g.ColorEditOptions & ~ImGuiColorEditFlags__PickerMask) | (picker_flags & ImGuiColorEditFlags__PickerMask); - SetCursorScreenPos(backup_pos); - ImVec4 previewing_ref_col; - memcpy(&previewing_ref_col, ref_col, sizeof(float) * ((picker_flags & ImGuiColorEditFlags_NoAlpha) ? 3 : 4)); - ColorPicker4("##previewing_picker", &previewing_ref_col.x, picker_flags); - PopID(); - } - PopItemWidth(); - } - if (allow_opt_alpha_bar) - { - if (allow_opt_picker) Separator(); - CheckboxFlags("Alpha Bar", &g.ColorEditOptions, ImGuiColorEditFlags_AlphaBar); - } - EndPopup(); -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: TreeNode, CollapsingHeader, etc. -//------------------------------------------------------------------------- -// - TreeNode() -// - TreeNodeV() -// - TreeNodeEx() -// - TreeNodeExV() -// - TreeNodeBehavior() [Internal] -// - TreePush() -// - TreePop() -// - GetTreeNodeToLabelSpacing() -// - SetNextItemOpen() -// - CollapsingHeader() -//------------------------------------------------------------------------- - -bool ImGui::TreeNode(const char* str_id, const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - bool is_open = TreeNodeExV(str_id, 0, fmt, args); - va_end(args); - return is_open; -} - -bool ImGui::TreeNode(const void* ptr_id, const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - bool is_open = TreeNodeExV(ptr_id, 0, fmt, args); - va_end(args); - return is_open; -} - -bool ImGui::TreeNode(const char* label) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - return TreeNodeBehavior(window->GetID(label), 0, label, NULL); -} - -bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args) -{ - return TreeNodeExV(str_id, 0, fmt, args); -} - -bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args) -{ - return TreeNodeExV(ptr_id, 0, fmt, args); -} - -bool ImGui::TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - return TreeNodeBehavior(window->GetID(label), flags, label, NULL); -} - -bool ImGui::TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - bool is_open = TreeNodeExV(str_id, flags, fmt, args); - va_end(args); - return is_open; -} - -bool ImGui::TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) -{ - va_list args; - va_start(args, fmt); - bool is_open = TreeNodeExV(ptr_id, flags, fmt, args); - va_end(args); - return is_open; -} - -bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - return TreeNodeBehavior(window->GetID(str_id), flags, g.TempBuffer, label_end); -} - -bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args); - return TreeNodeBehavior(window->GetID(ptr_id), flags, g.TempBuffer, label_end); -} - -bool ImGui::TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags) -{ - if (flags & ImGuiTreeNodeFlags_Leaf) - return true; - - // We only write to the tree storage if the user clicks (or explicitly use the SetNextItemOpen function) - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - ImGuiStorage* storage = window->DC.StateStorage; - - bool is_open; - if (g.NextItemData.Flags & ImGuiNextItemDataFlags_HasOpen) - { - if (g.NextItemData.OpenCond & ImGuiCond_Always) - { - is_open = g.NextItemData.OpenVal; - storage->SetInt(id, is_open); - } - else - { - // We treat ImGuiCond_Once and ImGuiCond_FirstUseEver the same because tree node state are not saved persistently. - const int stored_value = storage->GetInt(id, -1); - if (stored_value == -1) - { - is_open = g.NextItemData.OpenVal; - storage->SetInt(id, is_open); - } - else - { - is_open = stored_value != 0; - } - } - } - else - { - is_open = storage->GetInt(id, (flags & ImGuiTreeNodeFlags_DefaultOpen) ? 1 : 0) != 0; - } - - // When logging is enabled, we automatically expand tree nodes (but *NOT* collapsing headers.. seems like sensible behavior). - // NB- If we are above max depth we still allow manually opened nodes to be logged. - if (g.LogEnabled && !(flags & ImGuiTreeNodeFlags_NoAutoOpenOnLog) && (window->DC.TreeDepth - g.LogDepthRef) < g.LogDepthToExpand) - is_open = true; - - return is_open; -} - -bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const bool display_frame = (flags & ImGuiTreeNodeFlags_Framed) != 0; - const ImVec2 padding = (display_frame || (flags & ImGuiTreeNodeFlags_FramePadding)) ? style.FramePadding : ImVec2(style.FramePadding.x, ImMin(window->DC.CurrLineTextBaseOffset, style.FramePadding.y)); - - if (!label_end) - label_end = FindRenderedTextEnd(label); - const ImVec2 label_size = CalcTextSize(label, label_end, false); - - // We vertically grow up to current line height up the typical widget height. - const float frame_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + style.FramePadding.y * 2), label_size.y + padding.y * 2); - ImRect frame_bb; - frame_bb.Min.x = (flags & ImGuiTreeNodeFlags_SpanFullWidth) ? window->WorkRect.Min.x : window->DC.CursorPos.x; - frame_bb.Min.y = window->DC.CursorPos.y; - frame_bb.Max.x = window->WorkRect.Max.x; - frame_bb.Max.y = window->DC.CursorPos.y + frame_height; - if (display_frame) - { - // Framed header expand a little outside the default padding, to the edge of InnerClipRect - // (FIXME: May remove this at some point and make InnerClipRect align with WindowPadding.x instead of WindowPadding.x*0.5f) - frame_bb.Min.x -= IM_FLOOR(window->WindowPadding.x * 0.5f - 1.0f); - frame_bb.Max.x += IM_FLOOR(window->WindowPadding.x * 0.5f); - } - - const float text_offset_x = g.FontSize + (display_frame ? padding.x * 3 : padding.x * 2); // Collapser arrow width + Spacing - const float text_offset_y = ImMax(padding.y, window->DC.CurrLineTextBaseOffset); // Latch before ItemSize changes it - const float text_width = g.FontSize + (label_size.x > 0.0f ? label_size.x + padding.x * 2 : 0.0f); // Include collapser - ImVec2 text_pos(window->DC.CursorPos.x + text_offset_x, window->DC.CursorPos.y + text_offset_y); - ItemSize(ImVec2(text_width, frame_height), padding.y); - - // For regular tree nodes, we arbitrary allow to click past 2 worth of ItemSpacing - ImRect interact_bb = frame_bb; - if (!display_frame && (flags & (ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth)) == 0) - interact_bb.Max.x = frame_bb.Min.x + text_width + style.ItemSpacing.x * 2.0f; - - // Store a flag for the current depth to tell if we will allow closing this node when navigating one of its child. - // For this purpose we essentially compare if g.NavIdIsAlive went from 0 to 1 between TreeNode() and TreePop(). - // This is currently only support 32 level deep and we are fine with (1 << Depth) overflowing into a zero. - const bool is_leaf = (flags & ImGuiTreeNodeFlags_Leaf) != 0; - bool is_open = TreeNodeBehaviorIsOpen(id, flags); - if (is_open && !g.NavIdIsAlive && (flags & ImGuiTreeNodeFlags_NavLeftJumpsBackHere) && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) - window->DC.TreeJumpToParentOnPopMask |= (1 << window->DC.TreeDepth); - - bool item_add = ItemAdd(interact_bb, id); - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_HasDisplayRect; - window->DC.LastItemDisplayRect = frame_bb; - - if (!item_add) - { - if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) - TreePushOverrideID(id); - IMGUI_TEST_ENGINE_ITEM_INFO(window->DC.LastItemId, label, window->DC.ItemFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); - return is_open; - } - - ImGuiButtonFlags button_flags = ImGuiTreeNodeFlags_None; - if (flags & ImGuiTreeNodeFlags_AllowItemOverlap) - button_flags |= ImGuiButtonFlags_AllowItemOverlap; - if (!is_leaf) - button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; - - // We allow clicking on the arrow section with keyboard modifiers held, in order to easily - // allow browsing a tree while preserving selection with code implementing multi-selection patterns. - // When clicking on the rest of the tree node we always disallow keyboard modifiers. - const float arrow_hit_x1 = (text_pos.x - text_offset_x) - style.TouchExtraPadding.x; - const float arrow_hit_x2 = (text_pos.x - text_offset_x) + (g.FontSize + padding.x * 2.0f) + style.TouchExtraPadding.x; - const bool is_mouse_x_over_arrow = (g.IO.MousePos.x >= arrow_hit_x1 && g.IO.MousePos.x < arrow_hit_x2); - if (window != g.HoveredWindow || !is_mouse_x_over_arrow) - button_flags |= ImGuiButtonFlags_NoKeyModifiers; - - // Open behaviors can be altered with the _OpenOnArrow and _OnOnDoubleClick flags. - // Some alteration have subtle effects (e.g. toggle on MouseUp vs MouseDown events) due to requirements for multi-selection and drag and drop support. - // - Single-click on label = Toggle on MouseUp (default, when _OpenOnArrow=0) - // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=0) - // - Single-click on arrow = Toggle on MouseDown (when _OpenOnArrow=1) - // - Double-click on label = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1) - // - Double-click on arrow = Toggle on MouseDoubleClick (when _OpenOnDoubleClick=1 and _OpenOnArrow=0) - // It is rather standard that arrow click react on Down rather than Up. - // We set ImGuiButtonFlags_PressedOnClickRelease on OpenOnDoubleClick because we want the item to be active on the initial MouseDown in order for drag and drop to work. - if (is_mouse_x_over_arrow) - button_flags |= ImGuiButtonFlags_PressedOnClick; - else if (flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) - button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; - else - button_flags |= ImGuiButtonFlags_PressedOnClickRelease; - - bool selected = (flags & ImGuiTreeNodeFlags_Selected) != 0; - const bool was_selected = selected; - - bool hovered, held; - bool pressed = ButtonBehavior(interact_bb, id, &hovered, &held, button_flags); - bool toggled = false; - if (!is_leaf) - { - if (pressed && g.DragDropHoldJustPressedId != id) - { - if ((flags & (ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick)) == 0 || (g.NavActivateId == id)) - toggled = true; - if (flags & ImGuiTreeNodeFlags_OpenOnArrow) - toggled |= is_mouse_x_over_arrow && !g.NavDisableMouseHover; // Lightweight equivalent of IsMouseHoveringRect() since ButtonBehavior() already did the job - if ((flags & ImGuiTreeNodeFlags_OpenOnDoubleClick) && g.IO.MouseDoubleClicked[0]) - toggled = true; - } - else if (pressed && g.DragDropHoldJustPressedId == id) - { - IM_ASSERT(button_flags & ImGuiButtonFlags_PressedOnDragDropHold); - if (!is_open) // When using Drag and Drop "hold to open" we keep the node highlighted after opening, but never close it again. - toggled = true; - } - - if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Left && is_open) - { - toggled = true; - NavMoveRequestCancel(); - } - if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Right && !is_open) // If there's something upcoming on the line we may want to give it the priority? - { - toggled = true; - NavMoveRequestCancel(); - } - - if (toggled) - { - is_open = !is_open; - window->DC.StateStorage->SetInt(id, is_open); - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledOpen; - } - } - if (flags & ImGuiTreeNodeFlags_AllowItemOverlap) - SetItemAllowOverlap(); - - // In this branch, TreeNodeBehavior() cannot toggle the selection so this will never trigger. - if (selected != was_selected) //-V547 - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection; - - // Render - const ImU32 text_col = GetColorU32(ImGuiCol_Text); - ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_TypeThin; - if (display_frame) - { - // Framed type - const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); - RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding); - RenderNavHighlight(frame_bb, id, nav_highlight_flags); - if (flags & ImGuiTreeNodeFlags_Bullet) - RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col); - else if (!is_leaf) - RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 1.0f); - else // Leaf without bullet, left-adjusted text - text_pos.x -= text_offset_x; - if (flags & ImGuiTreeNodeFlags_ClipLabelForTrailingButton) - frame_bb.Max.x -= g.FontSize + style.FramePadding.x; - - if (g.LogEnabled) - LogSetNextTextDecoration("###", "###"); - RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size); - } - else - { - // Unframed typed for tree nodes - if (hovered || selected) - { - const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); - RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false); - RenderNavHighlight(frame_bb, id, nav_highlight_flags); - } - if (flags & ImGuiTreeNodeFlags_Bullet) - RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col); - else if (!is_leaf) - RenderArrow(window->DrawList, ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y + g.FontSize * 0.15f), text_col, is_open ? ImGuiDir_Down : ImGuiDir_Right, 0.70f); - if (g.LogEnabled) - LogSetNextTextDecoration(">", NULL); - RenderText(text_pos, label, label_end, false); - } - - if (is_open && !(flags & ImGuiTreeNodeFlags_NoTreePushOnOpen)) - TreePushOverrideID(id); - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags | (is_leaf ? 0 : ImGuiItemStatusFlags_Openable) | (is_open ? ImGuiItemStatusFlags_Opened : 0)); - return is_open; -} - -void ImGui::TreePush(const char* str_id) -{ - ImGuiWindow* window = GetCurrentWindow(); - Indent(); - window->DC.TreeDepth++; - PushID(str_id ? str_id : "#TreePush"); -} - -void ImGui::TreePush(const void* ptr_id) -{ - ImGuiWindow* window = GetCurrentWindow(); - Indent(); - window->DC.TreeDepth++; - PushID(ptr_id ? ptr_id : (const void*)"#TreePush"); -} - -void ImGui::TreePushOverrideID(ImGuiID id) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - Indent(); - window->DC.TreeDepth++; - window->IDStack.push_back(id); -} - -void ImGui::TreePop() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - Unindent(); - - window->DC.TreeDepth--; - ImU32 tree_depth_mask = (1 << window->DC.TreeDepth); - - // Handle Left arrow to move to parent tree node (when ImGuiTreeNodeFlags_NavLeftJumpsBackHere is enabled) - if (g.NavMoveDir == ImGuiDir_Left && g.NavWindow == window && NavMoveRequestButNoResultYet()) - if (g.NavIdIsAlive && (window->DC.TreeJumpToParentOnPopMask & tree_depth_mask)) - { - SetNavID(window->IDStack.back(), g.NavLayer, 0); - NavMoveRequestCancel(); - } - window->DC.TreeJumpToParentOnPopMask &= tree_depth_mask - 1; - - IM_ASSERT(window->IDStack.Size > 1); // There should always be 1 element in the IDStack (pushed during window creation). If this triggers you called TreePop/PopID too much. - PopID(); -} - -// Horizontal distance preceding label when using TreeNode() or Bullet() -float ImGui::GetTreeNodeToLabelSpacing() -{ - ImGuiContext& g = *GImGui; - return g.FontSize + (g.Style.FramePadding.x * 2.0f); -} - -// Set next TreeNode/CollapsingHeader open state. -void ImGui::SetNextItemOpen(bool is_open, ImGuiCond cond) -{ - ImGuiContext& g = *GImGui; - if (g.CurrentWindow->SkipItems) - return; - g.NextItemData.Flags |= ImGuiNextItemDataFlags_HasOpen; - g.NextItemData.OpenVal = is_open; - g.NextItemData.OpenCond = cond ? cond : ImGuiCond_Always; -} - -// CollapsingHeader returns true when opened but do not indent nor push into the ID stack (because of the ImGuiTreeNodeFlags_NoTreePushOnOpen flag). -// This is basically the same as calling TreeNodeEx(label, ImGuiTreeNodeFlags_CollapsingHeader). You can remove the _NoTreePushOnOpen flag if you want behavior closer to normal TreeNode(). -bool ImGui::CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - return TreeNodeBehavior(window->GetID(label), flags | ImGuiTreeNodeFlags_CollapsingHeader, label); -} - -// p_visible == NULL : regular collapsing header -// p_visible != NULL && *p_visible == true : show a small close button on the corner of the header, clicking the button will set *p_visible = false -// p_visible != NULL && *p_visible == false : do not show the header at all -// Do not mistake this with the Open state of the header itself, which you can adjust with SetNextItemOpen() or ImGuiTreeNodeFlags_DefaultOpen. -bool ImGui::CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - if (p_visible && !*p_visible) - return false; - - ImGuiID id = window->GetID(label); - flags |= ImGuiTreeNodeFlags_CollapsingHeader; - if (p_visible) - flags |= ImGuiTreeNodeFlags_AllowItemOverlap | ImGuiTreeNodeFlags_ClipLabelForTrailingButton; - bool is_open = TreeNodeBehavior(id, flags, label); - if (p_visible != NULL) - { - // Create a small overlapping close button - // FIXME: We can evolve this into user accessible helpers to add extra buttons on title bars, headers, etc. - // FIXME: CloseButton can overlap into text, need find a way to clip the text somehow. - ImGuiContext& g = *GImGui; - ImGuiLastItemDataBackup last_item_backup; - float button_size = g.FontSize; - float button_x = ImMax(window->DC.LastItemRect.Min.x, window->DC.LastItemRect.Max.x - g.Style.FramePadding.x * 2.0f - button_size); - float button_y = window->DC.LastItemRect.Min.y; - ImGuiID close_button_id = GetIDWithSeed("#CLOSE", NULL, id); - if (CloseButton(close_button_id, ImVec2(button_x, button_y))) - *p_visible = false; - last_item_backup.Restore(); - } - - return is_open; -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: Selectable -//------------------------------------------------------------------------- -// - Selectable() -//------------------------------------------------------------------------- - -// Tip: pass a non-visible label (e.g. "##hello") then you can use the space to draw other text or image. -// But you need to make sure the ID is unique, e.g. enclose calls in PushID/PopID or use ##unique_id. -// With this scheme, ImGuiSelectableFlags_SpanAllColumns and ImGuiSelectableFlags_AllowItemOverlap are also frequently used flags. -// FIXME: Selectable() with (size.x == 0.0f) and (SelectableTextAlign.x > 0.0f) followed by SameLine() is currently not supported. -bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - - // Submit label or explicit size to ItemSize(), whereas ItemAdd() will submit a larger/spanning rectangle. - ImGuiID id = window->GetID(label); - ImVec2 label_size = CalcTextSize(label, NULL, true); - ImVec2 size(size_arg.x != 0.0f ? size_arg.x : label_size.x, size_arg.y != 0.0f ? size_arg.y : label_size.y); - ImVec2 pos = window->DC.CursorPos; - pos.y += window->DC.CurrLineTextBaseOffset; - ItemSize(size, 0.0f); - - // Fill horizontal space - // We don't support (size < 0.0f) in Selectable() because the ItemSpacing extension would make explicitly right-aligned sizes not visibly match other widgets. - const bool span_all_columns = (flags & ImGuiSelectableFlags_SpanAllColumns) != 0; - const float min_x = span_all_columns ? window->ParentWorkRect.Min.x : pos.x; - const float max_x = span_all_columns ? window->ParentWorkRect.Max.x : window->WorkRect.Max.x; - if (size_arg.x == 0.0f || (flags & ImGuiSelectableFlags_SpanAvailWidth)) - size.x = ImMax(label_size.x, max_x - min_x); - - // Text stays at the submission position, but bounding box may be extended on both sides - const ImVec2 text_min = pos; - const ImVec2 text_max(min_x + size.x, pos.y + size.y); - - // Selectables are meant to be tightly packed together with no click-gap, so we extend their box to cover spacing between selectable. - ImRect bb(min_x, pos.y, text_max.x, text_max.y); - if ((flags & ImGuiSelectableFlags_NoPadWithHalfSpacing) == 0) - { - const float spacing_x = span_all_columns ? 0.0f : style.ItemSpacing.x; - const float spacing_y = style.ItemSpacing.y; - const float spacing_L = IM_FLOOR(spacing_x * 0.50f); - const float spacing_U = IM_FLOOR(spacing_y * 0.50f); - bb.Min.x -= spacing_L; - bb.Min.y -= spacing_U; - bb.Max.x += (spacing_x - spacing_L); - bb.Max.y += (spacing_y - spacing_U); - } - //if (g.IO.KeyCtrl) { GetForegroundDrawList()->AddRect(bb.Min, bb.Max, IM_COL32(0, 255, 0, 255)); } - - // Modify ClipRect for the ItemAdd(), faster than doing a PushColumnsBackground/PushTableBackground for every Selectable.. - const float backup_clip_rect_min_x = window->ClipRect.Min.x; - const float backup_clip_rect_max_x = window->ClipRect.Max.x; - if (span_all_columns) - { - window->ClipRect.Min.x = window->ParentWorkRect.Min.x; - window->ClipRect.Max.x = window->ParentWorkRect.Max.x; - } - - bool item_add; - if (flags & ImGuiSelectableFlags_Disabled) - { - ImGuiItemFlags backup_item_flags = window->DC.ItemFlags; - window->DC.ItemFlags |= ImGuiItemFlags_Disabled | ImGuiItemFlags_NoNavDefaultFocus; - item_add = ItemAdd(bb, id); - window->DC.ItemFlags = backup_item_flags; - } - else - { - item_add = ItemAdd(bb, id); - } - - if (span_all_columns) - { - window->ClipRect.Min.x = backup_clip_rect_min_x; - window->ClipRect.Max.x = backup_clip_rect_max_x; - } - - if (!item_add) - return false; - - // FIXME: We can standardize the behavior of those two, we could also keep the fast path of override ClipRect + full push on render only, - // which would be advantageous since most selectable are not selected. - if (span_all_columns && window->DC.CurrentColumns) - PushColumnsBackground(); - else if (span_all_columns && g.CurrentTable) - TablePushBackgroundChannel(); - - // We use NoHoldingActiveID on menus so user can click and _hold_ on a menu then drag to browse child entries - ImGuiButtonFlags button_flags = 0; - if (flags & ImGuiSelectableFlags_NoHoldingActiveID) { button_flags |= ImGuiButtonFlags_NoHoldingActiveId; } - if (flags & ImGuiSelectableFlags_SelectOnClick) { button_flags |= ImGuiButtonFlags_PressedOnClick; } - if (flags & ImGuiSelectableFlags_SelectOnRelease) { button_flags |= ImGuiButtonFlags_PressedOnRelease; } - if (flags & ImGuiSelectableFlags_Disabled) { button_flags |= ImGuiButtonFlags_Disabled; } - if (flags & ImGuiSelectableFlags_AllowDoubleClick) { button_flags |= ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnDoubleClick; } - if (flags & ImGuiSelectableFlags_AllowItemOverlap) { button_flags |= ImGuiButtonFlags_AllowItemOverlap; } - - if (flags & ImGuiSelectableFlags_Disabled) - selected = false; - - const bool was_selected = selected; - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); - - // Update NavId when clicking or when Hovering (this doesn't happen on most widgets), so navigation can be resumed with gamepad/keyboard - if (pressed || (hovered && (flags & ImGuiSelectableFlags_SetNavIdOnHover))) - { - if (!g.NavDisableMouseHover && g.NavWindow == window && g.NavLayer == window->DC.NavLayerCurrent) - { - g.NavDisableHighlight = true; - SetNavID(id, window->DC.NavLayerCurrent, window->DC.NavFocusScopeIdCurrent); - } - } - if (pressed) - MarkItemEdited(id); - - if (flags & ImGuiSelectableFlags_AllowItemOverlap) - SetItemAllowOverlap(); - - // In this branch, Selectable() cannot toggle the selection so this will never trigger. - if (selected != was_selected) //-V547 - window->DC.LastItemStatusFlags |= ImGuiItemStatusFlags_ToggledSelection; - - // Render - if (held && (flags & ImGuiSelectableFlags_DrawHoveredWhenHeld)) - hovered = true; - if (hovered || selected) - { - const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header); - RenderFrame(bb.Min, bb.Max, col, false, 0.0f); - RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_TypeThin | ImGuiNavHighlightFlags_NoRounding); - } - - if (span_all_columns && window->DC.CurrentColumns) - PopColumnsBackground(); - else if (span_all_columns && g.CurrentTable) - TablePopBackgroundChannel(); - - if (flags & ImGuiSelectableFlags_Disabled) PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); - RenderTextClipped(text_min, text_max, label, NULL, &label_size, style.SelectableTextAlign, &bb); - if (flags & ImGuiSelectableFlags_Disabled) PopStyleColor(); - - // Automatically close popups - if (pressed && (window->Flags & ImGuiWindowFlags_Popup) && !(flags & ImGuiSelectableFlags_DontClosePopups) && !(window->DC.ItemFlags & ImGuiItemFlags_SelectableDontClosePopup)) - CloseCurrentPopup(); - - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags); - return pressed; -} - -bool ImGui::Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2& size_arg) -{ - if (Selectable(label, *p_selected, flags, size_arg)) - { - *p_selected = !*p_selected; - return true; - } - return false; -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: ListBox -//------------------------------------------------------------------------- -// - BeginListBox() -// - EndListBox() -// - ListBox() -//------------------------------------------------------------------------- - -// Tip: To have a list filling the entire window width, use size.x = -FLT_MIN and pass an non-visible label e.g. "##empty" -// Tip: If your vertical size is calculated from an item count (e.g. 10 * item_height) consider adding a fractional part to facilitate seeing scrolling boundaries (e.g. 10.25 * item_height). -bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - const ImGuiStyle& style = g.Style; - const ImGuiID id = GetID(label); - const ImVec2 label_size = CalcTextSize(label, NULL, true); - - // Size default to hold ~7.25 items. - // Fractional number of items helps seeing that we can scroll down/up without looking at scrollbar. - ImVec2 size = ImFloor(CalcItemSize(size_arg, CalcItemWidth(), GetTextLineHeightWithSpacing() * 7.25f + style.FramePadding.y * 2.0f)); - ImVec2 frame_size = ImVec2(size.x, ImMax(size.y, label_size.y)); - ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); - ImRect bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0.0f)); - g.NextItemData.ClearFlags(); - - if (!IsRectVisible(bb.Min, bb.Max)) - { - ItemSize(bb.GetSize(), style.FramePadding.y); - ItemAdd(bb, 0, &frame_bb); - return false; - } - - // FIXME-OPT: We could omit the BeginGroup() if label_size.x but would need to omit the EndGroup() as well. - BeginGroup(); - if (label_size.x > 0.0f) - { - ImVec2 label_pos = ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y); - RenderText(label_pos, label); - window->DC.CursorMaxPos = ImMax(window->DC.CursorMaxPos, label_pos + label_size); - } - - BeginChildFrame(id, frame_bb.GetSize()); - return true; -} - -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS -// OBSOLETED in 1.81 (from February 2021) -bool ImGui::ListBoxHeader(const char* label, int items_count, int height_in_items) -{ - // If height_in_items == -1, default height is maximum 7. - ImGuiContext& g = *GImGui; - float height_in_items_f = (height_in_items < 0 ? ImMin(items_count, 7) : height_in_items) + 0.25f; - ImVec2 size; - size.x = 0.0f; - size.y = GetTextLineHeightWithSpacing() * height_in_items_f + g.Style.FramePadding.y * 2.0f; - return BeginListBox(label, size); -} -#endif - -void ImGui::EndListBox() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?"); - - EndChildFrame(); - EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label -} - -bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items) -{ - const bool value_changed = ListBox(label, current_item, Items_ArrayGetter, (void*)items, items_count, height_items); - return value_changed; -} - -// This is merely a helper around BeginListBox(), EndListBox(). -// Considering using those directly to submit custom data or store selection differently. -bool ImGui::ListBox(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int height_in_items) -{ - ImGuiContext& g = *GImGui; - - // Calculate size from "height_in_items" - if (height_in_items < 0) - height_in_items = ImMin(items_count, 7); - float height_in_items_f = height_in_items + 0.25f; - ImVec2 size(0.0f, ImFloor(GetTextLineHeightWithSpacing() * height_in_items_f + g.Style.FramePadding.y * 2.0f)); - - if (!BeginListBox(label, size)) - return false; - - // Assume all items have even height (= 1 line of text). If you need items of different height, - // you can create a custom version of ListBox() in your code without using the clipper. - bool value_changed = false; - ImGuiListClipper clipper; - clipper.Begin(items_count, GetTextLineHeightWithSpacing()); // We know exactly our line height here so we pass it as a minor optimization, but generally you don't need to. - while (clipper.Step()) - for (int i = clipper.DisplayStart; i < clipper.DisplayEnd; i++) - { - const char* item_text; - if (!items_getter(data, i, &item_text)) - item_text = "*Unknown item*"; - - PushID(i); - const bool item_selected = (i == *current_item); - if (Selectable(item_text, item_selected)) - { - *current_item = i; - value_changed = true; - } - if (item_selected) - SetItemDefaultFocus(); - PopID(); - } - EndListBox(); - if (value_changed) - MarkItemEdited(g.CurrentWindow->DC.LastItemId); - - return value_changed; -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: PlotLines, PlotHistogram -//------------------------------------------------------------------------- -// - PlotEx() [Internal] -// - PlotLines() -// - PlotHistogram() -//------------------------------------------------------------------------- -// Plot/Graph widgets are not very good. -// Consider writing your own, or using a third-party one, see: -// - ImPlot https://github.com/epezent/implot -// - others https://github.com/ocornut/imgui/wiki/Useful-Widgets -//------------------------------------------------------------------------- - -int ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 frame_size) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return -1; - - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - - const ImVec2 label_size = CalcTextSize(label, NULL, true); - if (frame_size.x == 0.0f) - frame_size.x = CalcItemWidth(); - if (frame_size.y == 0.0f) - frame_size.y = label_size.y + (style.FramePadding.y * 2); - - const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + frame_size); - const ImRect inner_bb(frame_bb.Min + style.FramePadding, frame_bb.Max - style.FramePadding); - const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0)); - ItemSize(total_bb, style.FramePadding.y); - if (!ItemAdd(total_bb, 0, &frame_bb)) - return -1; - const bool hovered = ItemHoverable(frame_bb, id); - - // Determine scale from values if not specified - if (scale_min == FLT_MAX || scale_max == FLT_MAX) - { - float v_min = FLT_MAX; - float v_max = -FLT_MAX; - for (int i = 0; i < values_count; i++) - { - const float v = values_getter(data, i); - if (v != v) // Ignore NaN values - continue; - v_min = ImMin(v_min, v); - v_max = ImMax(v_max, v); - } - if (scale_min == FLT_MAX) - scale_min = v_min; - if (scale_max == FLT_MAX) - scale_max = v_max; - } - - RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); - - const int values_count_min = (plot_type == ImGuiPlotType_Lines) ? 2 : 1; - int idx_hovered = -1; - if (values_count >= values_count_min) - { - int res_w = ImMin((int)frame_size.x, values_count) + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); - int item_count = values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); - - // Tooltip on hover - if (hovered && inner_bb.Contains(g.IO.MousePos)) - { - const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f); - const int v_idx = (int)(t * item_count); - IM_ASSERT(v_idx >= 0 && v_idx < values_count); - - const float v0 = values_getter(data, (v_idx + values_offset) % values_count); - const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count); - if (plot_type == ImGuiPlotType_Lines) - SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx + 1, v1); - else if (plot_type == ImGuiPlotType_Histogram) - SetTooltip("%d: %8.4g", v_idx, v0); - idx_hovered = v_idx; - } - - const float t_step = 1.0f / (float)res_w; - const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min)); - - float v0 = values_getter(data, (0 + values_offset) % values_count); - float t0 = 0.0f; - ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); // Point in the normalized space of our target rectangle - float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (-scale_min * inv_scale) : (scale_min < 0.0f ? 0.0f : 1.0f); // Where does the zero line stands - - const ImU32 col_base = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram); - const ImU32 col_hovered = GetColorU32((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered); - - for (int n = 0; n < res_w; n++) - { - const float t1 = t0 + t_step; - const int v1_idx = (int)(t0 * item_count + 0.5f); - IM_ASSERT(v1_idx >= 0 && v1_idx < values_count); - const float v1 = values_getter(data, (v1_idx + values_offset + 1) % values_count); - const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) ); - - // NB: Draw calls are merged together by the DrawList system. Still, we should render our batch are lower level to save a bit of CPU. - ImVec2 pos0 = ImLerp(inner_bb.Min, inner_bb.Max, tp0); - ImVec2 pos1 = ImLerp(inner_bb.Min, inner_bb.Max, (plot_type == ImGuiPlotType_Lines) ? tp1 : ImVec2(tp1.x, histogram_zero_line_t)); - if (plot_type == ImGuiPlotType_Lines) - { - window->DrawList->AddLine(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); - } - else if (plot_type == ImGuiPlotType_Histogram) - { - if (pos1.x >= pos0.x + 2.0f) - pos1.x -= 1.0f; - window->DrawList->AddRectFilled(pos0, pos1, idx_hovered == v1_idx ? col_hovered : col_base); - } - - t0 = t1; - tp0 = tp1; - } - } - - // Text overlay - if (overlay_text) - RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, overlay_text, NULL, NULL, ImVec2(0.5f, 0.0f)); - - if (label_size.x > 0.0f) - RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, inner_bb.Min.y), label); - - // Return hovered index or -1 if none are hovered. - // This is currently not exposed in the public API because we need a larger redesign of the whole thing, but in the short-term we are making it available in PlotEx(). - return idx_hovered; -} - -struct ImGuiPlotArrayGetterData -{ - const float* Values; - int Stride; - - ImGuiPlotArrayGetterData(const float* values, int stride) { Values = values; Stride = stride; } -}; - -static float Plot_ArrayGetter(void* data, int idx) -{ - ImGuiPlotArrayGetterData* plot_data = (ImGuiPlotArrayGetterData*)data; - const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride); - return v; -} - -void ImGui::PlotLines(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride) -{ - ImGuiPlotArrayGetterData data(values, stride); - PlotEx(ImGuiPlotType_Lines, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); -} - -void ImGui::PlotLines(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size) -{ - PlotEx(ImGuiPlotType_Lines, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); -} - -void ImGui::PlotHistogram(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride) -{ - ImGuiPlotArrayGetterData data(values, stride); - PlotEx(ImGuiPlotType_Histogram, label, &Plot_ArrayGetter, (void*)&data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); -} - -void ImGui::PlotHistogram(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size) -{ - PlotEx(ImGuiPlotType_Histogram, label, values_getter, data, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size); -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: Value helpers -// Those is not very useful, legacy API. -//------------------------------------------------------------------------- -// - Value() -//------------------------------------------------------------------------- - -void ImGui::Value(const char* prefix, bool b) -{ - Text("%s: %s", prefix, (b ? "true" : "false")); -} - -void ImGui::Value(const char* prefix, int v) -{ - Text("%s: %d", prefix, v); -} - -void ImGui::Value(const char* prefix, unsigned int v) -{ - Text("%s: %d", prefix, v); -} - -void ImGui::Value(const char* prefix, float v, const char* float_format) -{ - if (float_format) - { - char fmt[64]; - ImFormatString(fmt, IM_ARRAYSIZE(fmt), "%%s: %s", float_format); - Text(fmt, prefix, v); - } - else - { - Text("%s: %.3f", prefix, v); - } -} - -//------------------------------------------------------------------------- -// [SECTION] MenuItem, BeginMenu, EndMenu, etc. -//------------------------------------------------------------------------- -// - ImGuiMenuColumns [Internal] -// - BeginMenuBar() -// - EndMenuBar() -// - BeginMainMenuBar() -// - EndMainMenuBar() -// - BeginMenu() -// - EndMenu() -// - MenuItem() -//------------------------------------------------------------------------- - -// Helpers for internal use -void ImGuiMenuColumns::Update(int count, float spacing, bool clear) -{ - IM_ASSERT(count == IM_ARRAYSIZE(Pos)); - IM_UNUSED(count); - Width = NextWidth = 0.0f; - Spacing = spacing; - if (clear) - memset(NextWidths, 0, sizeof(NextWidths)); - for (int i = 0; i < IM_ARRAYSIZE(Pos); i++) - { - if (i > 0 && NextWidths[i] > 0.0f) - Width += Spacing; - Pos[i] = IM_FLOOR(Width); - Width += NextWidths[i]; - NextWidths[i] = 0.0f; - } -} - -float ImGuiMenuColumns::DeclColumns(float w0, float w1, float w2) // not using va_arg because they promote float to double -{ - NextWidth = 0.0f; - NextWidths[0] = ImMax(NextWidths[0], w0); - NextWidths[1] = ImMax(NextWidths[1], w1); - NextWidths[2] = ImMax(NextWidths[2], w2); - for (int i = 0; i < IM_ARRAYSIZE(Pos); i++) - NextWidth += NextWidths[i] + ((i > 0 && NextWidths[i] > 0.0f) ? Spacing : 0.0f); - return ImMax(Width, NextWidth); -} - -float ImGuiMenuColumns::CalcExtraSpace(float avail_w) const -{ - return ImMax(0.0f, avail_w - Width); -} - -// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere.. -// Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer. -// Ideally we also want this to be responsible for claiming space out of the main window scrolling rectangle, in which case ImGuiWindowFlags_MenuBar will become unnecessary. -// Then later the same system could be used for multiple menu-bars, scrollbars, side-bars. -bool ImGui::BeginMenuBar() -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - if (!(window->Flags & ImGuiWindowFlags_MenuBar)) - return false; - - IM_ASSERT(!window->DC.MenuBarAppending); - BeginGroup(); // Backup position on layer 0 // FIXME: Misleading to use a group for that backup/restore - PushID("##menubar"); - - // We don't clip with current window clipping rectangle as it is already set to the area below. However we clip with window full rect. - // We remove 1 worth of rounding to Max.x to that text in long menus and small windows don't tend to display over the lower-right rounded area, which looks particularly glitchy. - ImRect bar_rect = window->MenuBarRect(); - ImRect clip_rect(IM_ROUND(bar_rect.Min.x + window->WindowBorderSize), IM_ROUND(bar_rect.Min.y + window->WindowBorderSize), IM_ROUND(ImMax(bar_rect.Min.x, bar_rect.Max.x - ImMax(window->WindowRounding, window->WindowBorderSize))), IM_ROUND(bar_rect.Max.y)); - clip_rect.ClipWith(window->OuterRectClipped); - PushClipRect(clip_rect.Min, clip_rect.Max, false); - - // We overwrite CursorMaxPos because BeginGroup sets it to CursorPos (essentially the .EmitItem hack in EndMenuBar() would need something analogous here, maybe a BeginGroupEx() with flags). - window->DC.CursorPos = window->DC.CursorMaxPos = ImVec2(bar_rect.Min.x + window->DC.MenuBarOffset.x, bar_rect.Min.y + window->DC.MenuBarOffset.y); - window->DC.LayoutType = ImGuiLayoutType_Horizontal; - window->DC.NavLayerCurrent = ImGuiNavLayer_Menu; - window->DC.MenuBarAppending = true; - AlignTextToFramePadding(); - return true; -} - -void ImGui::EndMenuBar() -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return; - ImGuiContext& g = *GImGui; - - // Nav: When a move request within one of our child menu failed, capture the request to navigate among our siblings. - if (NavMoveRequestButNoResultYet() && (g.NavMoveDir == ImGuiDir_Left || g.NavMoveDir == ImGuiDir_Right) && (g.NavWindow->Flags & ImGuiWindowFlags_ChildMenu)) - { - ImGuiWindow* nav_earliest_child = g.NavWindow; - while (nav_earliest_child->ParentWindow && (nav_earliest_child->ParentWindow->Flags & ImGuiWindowFlags_ChildMenu)) - nav_earliest_child = nav_earliest_child->ParentWindow; - if (nav_earliest_child->ParentWindow == window && nav_earliest_child->DC.ParentLayoutType == ImGuiLayoutType_Horizontal && g.NavMoveRequestForward == ImGuiNavForward_None) - { - // To do so we claim focus back, restore NavId and then process the movement request for yet another frame. - // This involve a one-frame delay which isn't very problematic in this situation. We could remove it by scoring in advance for multiple window (probably not worth the hassle/cost) - const ImGuiNavLayer layer = ImGuiNavLayer_Menu; - IM_ASSERT(window->DC.NavLayerActiveMaskNext & (1 << layer)); // Sanity check - FocusWindow(window); - SetNavIDWithRectRel(window->NavLastIds[layer], layer, 0, window->NavRectRel[layer]); - g.NavLayer = layer; - g.NavDisableHighlight = true; // Hide highlight for the current frame so we don't see the intermediary selection. - g.NavMoveRequestForward = ImGuiNavForward_ForwardQueued; - NavMoveRequestCancel(); - } - } - - IM_ASSERT(window->Flags & ImGuiWindowFlags_MenuBar); - IM_ASSERT(window->DC.MenuBarAppending); - PopClipRect(); - PopID(); - window->DC.MenuBarOffset.x = window->DC.CursorPos.x - window->MenuBarRect().Min.x; // Save horizontal position so next append can reuse it. This is kinda equivalent to a per-layer CursorPos. - g.GroupStack.back().EmitItem = false; - EndGroup(); // Restore position on layer 0 - window->DC.LayoutType = ImGuiLayoutType_Vertical; - window->DC.NavLayerCurrent = ImGuiNavLayer_Main; - window->DC.MenuBarAppending = false; -} - -bool ImGui::BeginMainMenuBar() -{ - ImGuiContext& g = *GImGui; - ImGuiViewportP* viewport = (ImGuiViewportP*)(void*)GetMainViewport(); - ImGuiWindow* menu_bar_window = FindWindowByName("##MainMenuBar"); - - // For the main menu bar, which cannot be moved, we honor g.Style.DisplaySafeAreaPadding to ensure text can be visible on a TV set. - g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.DisplaySafeAreaPadding.y - g.Style.FramePadding.y, 0.0f)); - - // Get our rectangle at the top of the work area - if (menu_bar_window == NULL || menu_bar_window->BeginCount == 0) - { - // Set window position - // We don't attempt to calculate our height ahead, as it depends on the per-viewport font size. - // However menu-bar will affect the minimum window size so we'll get the right height. - ImVec2 menu_bar_pos = viewport->Pos + viewport->CurrWorkOffsetMin; - ImVec2 menu_bar_size = ImVec2(viewport->Size.x - viewport->CurrWorkOffsetMin.x + viewport->CurrWorkOffsetMax.x, 1.0f); - SetNextWindowPos(menu_bar_pos); - SetNextWindowSize(menu_bar_size); - } - - // Create window - PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f); - PushStyleVar(ImGuiStyleVar_WindowMinSize, ImVec2(0, 0)); // Lift normal size constraint, however the presence of a menu-bar will give us the minimum height we want. - ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_MenuBar; - bool is_open = Begin("##MainMenuBar", NULL, window_flags) && BeginMenuBar(); - PopStyleVar(2); - - // Report our size into work area (for next frame) using actual window size - menu_bar_window = GetCurrentWindow(); - if (menu_bar_window->BeginCount == 1) - viewport->CurrWorkOffsetMin.y += menu_bar_window->Size.y; - - g.NextWindowData.MenuBarOffsetMinVal = ImVec2(0.0f, 0.0f); - if (!is_open) - { - End(); - return false; - } - return true; //-V1020 -} - -void ImGui::EndMainMenuBar() -{ - EndMenuBar(); - - // When the user has left the menu layer (typically: closed menus through activation of an item), we restore focus to the previous window - // FIXME: With this strategy we won't be able to restore a NULL focus. - ImGuiContext& g = *GImGui; - if (g.CurrentWindow == g.NavWindow && g.NavLayer == ImGuiNavLayer_Main && !g.NavAnyRequest) - FocusTopMostWindowUnderOne(g.NavWindow, NULL); - - End(); -} - -bool ImGui::BeginMenu(const char* label, bool enabled) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - const ImGuiStyle& style = g.Style; - const ImGuiID id = window->GetID(label); - bool menu_is_open = IsPopupOpen(id, ImGuiPopupFlags_None); - - // Sub-menus are ChildWindow so that mouse can be hovering across them (otherwise top-most popup menu would steal focus and not allow hovering on parent menu) - ImGuiWindowFlags flags = ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoNavFocus; - if (window->Flags & (ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu)) - flags |= ImGuiWindowFlags_ChildWindow; - - // If a menu with same the ID was already submitted, we will append to it, matching the behavior of Begin(). - // We are relying on a O(N) search - so O(N log N) over the frame - which seems like the most efficient for the expected small amount of BeginMenu() calls per frame. - // If somehow this is ever becoming a problem we can switch to use e.g. ImGuiStorage mapping key to last frame used. - if (g.MenusIdSubmittedThisFrame.contains(id)) - { - if (menu_is_open) - menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) - else - g.NextWindowData.ClearFlags(); // we behave like Begin() and need to consume those values - return menu_is_open; - } - - // Tag menu as used. Next time BeginMenu() with same ID is called it will append to existing menu - g.MenusIdSubmittedThisFrame.push_back(id); - - ImVec2 label_size = CalcTextSize(label, NULL, true); - bool pressed; - bool menuset_is_open = !(window->Flags & ImGuiWindowFlags_Popup) && (g.OpenPopupStack.Size > g.BeginPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].OpenParentId == window->IDStack.back()); - ImGuiWindow* backed_nav_window = g.NavWindow; - if (menuset_is_open) - g.NavWindow = window; // Odd hack to allow hovering across menus of a same menu-set (otherwise we wouldn't be able to hover parent) - - // The reference position stored in popup_pos will be used by Begin() to find a suitable position for the child menu, - // However the final position is going to be different! It is chosen by FindBestWindowPosForPopup(). - // e.g. Menus tend to overlap each other horizontally to amplify relative Z-ordering. - ImVec2 popup_pos, pos = window->DC.CursorPos; - if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) - { - // Menu inside an horizontal menu bar - // Selectable extend their highlight by half ItemSpacing in each direction. - // For ChildMenu, the popup position will be overwritten by the call to FindBestWindowPosForPopup() in Begin() - popup_pos = ImVec2(pos.x - 1.0f - IM_FLOOR(style.ItemSpacing.x * 0.5f), pos.y - style.FramePadding.y + window->MenuBarHeight()); - window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); - PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); - float w = label_size.x; - pressed = Selectable(label, menu_is_open, ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups | (!enabled ? ImGuiSelectableFlags_Disabled : 0), ImVec2(w, 0.0f)); - PopStyleVar(); - window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). - } - else - { - // Menu inside a menu - // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. - // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. - popup_pos = ImVec2(pos.x, pos.y - style.WindowPadding.y); - float min_w = window->DC.MenuColumns.DeclColumns(label_size.x, 0.0f, IM_FLOOR(g.FontSize * 1.20f)); // Feedback to next frame - float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); - pressed = Selectable(label, menu_is_open, ImGuiSelectableFlags_NoHoldingActiveID | ImGuiSelectableFlags_SelectOnClick | ImGuiSelectableFlags_DontClosePopups | ImGuiSelectableFlags_SpanAvailWidth | (!enabled ? ImGuiSelectableFlags_Disabled : 0), ImVec2(min_w, 0.0f)); - ImU32 text_col = GetColorU32(enabled ? ImGuiCol_Text : ImGuiCol_TextDisabled); - RenderArrow(window->DrawList, pos + ImVec2(window->DC.MenuColumns.Pos[2] + extra_w + g.FontSize * 0.30f, 0.0f), text_col, ImGuiDir_Right); - } - - const bool hovered = enabled && ItemHoverable(window->DC.LastItemRect, id); - if (menuset_is_open) - g.NavWindow = backed_nav_window; - - bool want_open = false; - bool want_close = false; - if (window->DC.LayoutType == ImGuiLayoutType_Vertical) // (window->Flags & (ImGuiWindowFlags_Popup|ImGuiWindowFlags_ChildMenu)) - { - // Close menu when not hovering it anymore unless we are moving roughly in the direction of the menu - // Implement http://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown to avoid using timers, so menus feels more reactive. - bool moving_toward_other_child_menu = false; - - ImGuiWindow* child_menu_window = (g.BeginPopupStack.Size < g.OpenPopupStack.Size && g.OpenPopupStack[g.BeginPopupStack.Size].SourceWindow == window) ? g.OpenPopupStack[g.BeginPopupStack.Size].Window : NULL; - if (g.HoveredWindow == window && child_menu_window != NULL && !(window->Flags & ImGuiWindowFlags_MenuBar)) - { - // FIXME-DPI: Values should be derived from a master "scale" factor. - ImRect next_window_rect = child_menu_window->Rect(); - ImVec2 ta = g.IO.MousePos - g.IO.MouseDelta; - ImVec2 tb = (window->Pos.x < child_menu_window->Pos.x) ? next_window_rect.GetTL() : next_window_rect.GetTR(); - ImVec2 tc = (window->Pos.x < child_menu_window->Pos.x) ? next_window_rect.GetBL() : next_window_rect.GetBR(); - float extra = ImClamp(ImFabs(ta.x - tb.x) * 0.30f, 5.0f, 30.0f); // add a bit of extra slack. - ta.x += (window->Pos.x < child_menu_window->Pos.x) ? -0.5f : +0.5f; // to avoid numerical issues - tb.y = ta.y + ImMax((tb.y - extra) - ta.y, -100.0f); // triangle is maximum 200 high to limit the slope and the bias toward large sub-menus // FIXME: Multiply by fb_scale? - tc.y = ta.y + ImMin((tc.y + extra) - ta.y, +100.0f); - moving_toward_other_child_menu = ImTriangleContainsPoint(ta, tb, tc, g.IO.MousePos); - //GetForegroundDrawList()->AddTriangleFilled(ta, tb, tc, moving_within_opened_triangle ? IM_COL32(0,128,0,128) : IM_COL32(128,0,0,128)); // [DEBUG] - } - if (menu_is_open && !hovered && g.HoveredWindow == window && g.HoveredIdPreviousFrame != 0 && g.HoveredIdPreviousFrame != id && !moving_toward_other_child_menu) - want_close = true; - - if (!menu_is_open && hovered && pressed) // Click to open - want_open = true; - else if (!menu_is_open && hovered && !moving_toward_other_child_menu) // Hover to open - want_open = true; - - if (g.NavActivateId == id) - { - want_close = menu_is_open; - want_open = !menu_is_open; - } - if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Right) // Nav-Right to open - { - want_open = true; - NavMoveRequestCancel(); - } - } - else - { - // Menu bar - if (menu_is_open && pressed && menuset_is_open) // Click an open menu again to close it - { - want_close = true; - want_open = menu_is_open = false; - } - else if (pressed || (hovered && menuset_is_open && !menu_is_open)) // First click to open, then hover to open others - { - want_open = true; - } - else if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Down) // Nav-Down to open - { - want_open = true; - NavMoveRequestCancel(); - } - } - - if (!enabled) // explicitly close if an open menu becomes disabled, facilitate users code a lot in pattern such as 'if (BeginMenu("options", has_object)) { ..use object.. }' - want_close = true; - if (want_close && IsPopupOpen(id, ImGuiPopupFlags_None)) - ClosePopupToLevel(g.BeginPopupStack.Size, true); - - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.ItemFlags | ImGuiItemStatusFlags_Openable | (menu_is_open ? ImGuiItemStatusFlags_Opened : 0)); - - if (!menu_is_open && want_open && g.OpenPopupStack.Size > g.BeginPopupStack.Size) - { - // Don't recycle same menu level in the same frame, first close the other menu and yield for a frame. - OpenPopup(label); - return false; - } - - menu_is_open |= want_open; - if (want_open) - OpenPopup(label); - - if (menu_is_open) - { - SetNextWindowPos(popup_pos, ImGuiCond_Always); // Note: this is super misleading! The value will serve as reference for FindBestWindowPosForPopup(), not actual pos. - menu_is_open = BeginPopupEx(id, flags); // menu_is_open can be 'false' when the popup is completely clipped (e.g. zero size display) - } - else - { - g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values - } - - return menu_is_open; -} - -void ImGui::EndMenu() -{ - // Nav: When a left move request _within our child menu_ failed, close ourselves (the _parent_ menu). - // A menu doesn't close itself because EndMenuBar() wants the catch the last Left<>Right inputs. - // However, it means that with the current code, a BeginMenu() from outside another menu or a menu-bar won't be closable with the Left direction. - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (g.NavWindow && g.NavWindow->ParentWindow == window && g.NavMoveDir == ImGuiDir_Left && NavMoveRequestButNoResultYet() && window->DC.LayoutType == ImGuiLayoutType_Vertical) - { - ClosePopupToLevel(g.BeginPopupStack.Size, true); - NavMoveRequestCancel(); - } - - EndPopup(); -} - -bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled) -{ - ImGuiWindow* window = GetCurrentWindow(); - if (window->SkipItems) - return false; - - ImGuiContext& g = *GImGui; - ImGuiStyle& style = g.Style; - ImVec2 pos = window->DC.CursorPos; - ImVec2 label_size = CalcTextSize(label, NULL, true); - - // We've been using the equivalent of ImGuiSelectableFlags_SetNavIdOnHover on all Selectable() since early Nav system days (commit 43ee5d73), - // but I am unsure whether this should be kept at all. For now moved it to be an opt-in feature used by menus only. - ImGuiSelectableFlags flags = ImGuiSelectableFlags_SelectOnRelease | ImGuiSelectableFlags_SetNavIdOnHover | (enabled ? 0 : ImGuiSelectableFlags_Disabled); - bool pressed; - if (window->DC.LayoutType == ImGuiLayoutType_Horizontal) - { - // Mimic the exact layout spacing of BeginMenu() to allow MenuItem() inside a menu bar, which is a little misleading but may be useful - // Note that in this situation we render neither the shortcut neither the selected tick mark - float w = label_size.x; - window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * 0.5f); - PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(style.ItemSpacing.x * 2.0f, style.ItemSpacing.y)); - pressed = Selectable(label, false, flags, ImVec2(w, 0.0f)); - PopStyleVar(); - window->DC.CursorPos.x += IM_FLOOR(style.ItemSpacing.x * (-1.0f + 0.5f)); // -1 spacing to compensate the spacing added when Selectable() did a SameLine(). It would also work to call SameLine() ourselves after the PopStyleVar(). - } - else - { - // Menu item inside a vertical menu - // (In a typical menu window where all items are BeginMenu() or MenuItem() calls, extra_w will always be 0.0f. - // Only when they are other items sticking out we're going to add spacing, yet only register minimum width into the layout system. - float shortcut_w = shortcut ? CalcTextSize(shortcut, NULL).x : 0.0f; - float min_w = window->DC.MenuColumns.DeclColumns(label_size.x, shortcut_w, IM_FLOOR(g.FontSize * 1.20f)); // Feedback for next frame - float extra_w = ImMax(0.0f, GetContentRegionAvail().x - min_w); - pressed = Selectable(label, false, flags | ImGuiSelectableFlags_SpanAvailWidth, ImVec2(min_w, 0.0f)); - if (shortcut_w > 0.0f) - { - PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]); - RenderText(pos + ImVec2(window->DC.MenuColumns.Pos[1] + extra_w, 0.0f), shortcut, NULL, false); - PopStyleColor(); - } - if (selected) - RenderCheckMark(window->DrawList, pos + ImVec2(window->DC.MenuColumns.Pos[2] + extra_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(enabled ? ImGuiCol_Text : ImGuiCol_TextDisabled), g.FontSize * 0.866f); - } - - IMGUI_TEST_ENGINE_ITEM_INFO(window->DC.LastItemId, label, window->DC.ItemFlags | ImGuiItemStatusFlags_Checkable | (selected ? ImGuiItemStatusFlags_Checked : 0)); - return pressed; -} - -bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled) -{ - if (MenuItem(label, shortcut, p_selected ? *p_selected : false, enabled)) - { - if (p_selected) - *p_selected = !*p_selected; - return true; - } - return false; -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: BeginTabBar, EndTabBar, etc. -//------------------------------------------------------------------------- -// - BeginTabBar() -// - BeginTabBarEx() [Internal] -// - EndTabBar() -// - TabBarLayout() [Internal] -// - TabBarCalcTabID() [Internal] -// - TabBarCalcMaxTabWidth() [Internal] -// - TabBarFindTabById() [Internal] -// - TabBarRemoveTab() [Internal] -// - TabBarCloseTab() [Internal] -// - TabBarScrollClamp() [Internal] -// - TabBarScrollToTab() [Internal] -// - TabBarQueueChangeTabOrder() [Internal] -// - TabBarScrollingButtons() [Internal] -// - TabBarTabListPopupButton() [Internal] -//------------------------------------------------------------------------- - -struct ImGuiTabBarSection -{ - int TabCount; // Number of tabs in this section. - float Width; // Sum of width of tabs in this section (after shrinking down) - float Spacing; // Horizontal spacing at the end of the section. - - ImGuiTabBarSection() { memset(this, 0, sizeof(*this)); } -}; - -namespace ImGui -{ - static void TabBarLayout(ImGuiTabBar* tab_bar); - static ImU32 TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label); - static float TabBarCalcMaxTabWidth(); - static float TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling); - static void TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections); - static ImGuiTabItem* TabBarScrollingButtons(ImGuiTabBar* tab_bar); - static ImGuiTabItem* TabBarTabListPopupButton(ImGuiTabBar* tab_bar); -} - -ImGuiTabBar::ImGuiTabBar() -{ - memset(this, 0, sizeof(*this)); - CurrFrameVisible = PrevFrameVisible = -1; - LastTabItemIdx = -1; -} - -static int IMGUI_CDECL TabItemComparerBySection(const void* lhs, const void* rhs) -{ - const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; - const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; - const int a_section = (a->Flags & ImGuiTabItemFlags_Leading) ? 0 : (a->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; - const int b_section = (b->Flags & ImGuiTabItemFlags_Leading) ? 0 : (b->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; - if (a_section != b_section) - return a_section - b_section; - return (int)(a->IndexDuringLayout - b->IndexDuringLayout); -} - -static int IMGUI_CDECL TabItemComparerByBeginOrder(const void* lhs, const void* rhs) -{ - const ImGuiTabItem* a = (const ImGuiTabItem*)lhs; - const ImGuiTabItem* b = (const ImGuiTabItem*)rhs; - return (int)(a->BeginOrder - b->BeginOrder); -} - -static ImGuiTabBar* GetTabBarFromTabBarRef(const ImGuiPtrOrIndex& ref) -{ - ImGuiContext& g = *GImGui; - return ref.Ptr ? (ImGuiTabBar*)ref.Ptr : g.TabBars.GetByIndex(ref.Index); -} - -static ImGuiPtrOrIndex GetTabBarRefFromTabBar(ImGuiTabBar* tab_bar) -{ - ImGuiContext& g = *GImGui; - if (g.TabBars.Contains(tab_bar)) - return ImGuiPtrOrIndex(g.TabBars.GetIndex(tab_bar)); - return ImGuiPtrOrIndex(tab_bar); -} - -bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return false; - - ImGuiID id = window->GetID(str_id); - ImGuiTabBar* tab_bar = g.TabBars.GetOrAddByKey(id); - ImRect tab_bar_bb = ImRect(window->DC.CursorPos.x, window->DC.CursorPos.y, window->WorkRect.Max.x, window->DC.CursorPos.y + g.FontSize + g.Style.FramePadding.y * 2); - tab_bar->ID = id; - return BeginTabBarEx(tab_bar, tab_bar_bb, flags | ImGuiTabBarFlags_IsFocused); -} - -bool ImGui::BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& tab_bar_bb, ImGuiTabBarFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return false; - - if ((flags & ImGuiTabBarFlags_DockNode) == 0) - PushOverrideID(tab_bar->ID); - - // Add to stack - g.CurrentTabBarStack.push_back(GetTabBarRefFromTabBar(tab_bar)); - g.CurrentTabBar = tab_bar; - - // Append with multiple BeginTabBar()/EndTabBar() pairs. - tab_bar->BackupCursorPos = window->DC.CursorPos; - if (tab_bar->CurrFrameVisible == g.FrameCount) - { - window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); - tab_bar->BeginCount++; - return true; - } - - // Ensure correct ordering when toggling ImGuiTabBarFlags_Reorderable flag, or when a new tab was added while being not reorderable - if ((flags & ImGuiTabBarFlags_Reorderable) != (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) || (tab_bar->TabsAddedNew && !(flags & ImGuiTabBarFlags_Reorderable))) - if (tab_bar->Tabs.Size > 1) - ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerByBeginOrder); - tab_bar->TabsAddedNew = false; - - // Flags - if ((flags & ImGuiTabBarFlags_FittingPolicyMask_) == 0) - flags |= ImGuiTabBarFlags_FittingPolicyDefault_; - - tab_bar->Flags = flags; - tab_bar->BarRect = tab_bar_bb; - tab_bar->WantLayout = true; // Layout will be done on the first call to ItemTab() - tab_bar->PrevFrameVisible = tab_bar->CurrFrameVisible; - tab_bar->CurrFrameVisible = g.FrameCount; - tab_bar->PrevTabsContentsHeight = tab_bar->CurrTabsContentsHeight; - tab_bar->CurrTabsContentsHeight = 0.0f; - tab_bar->ItemSpacingY = g.Style.ItemSpacing.y; - tab_bar->FramePadding = g.Style.FramePadding; - tab_bar->TabsActiveCount = 0; - tab_bar->BeginCount = 1; - - // Set cursor pos in a way which only be used in the off-chance the user erroneously submits item before BeginTabItem(): items will overlap - window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.y + tab_bar->ItemSpacingY); - - // Draw separator - const ImU32 col = GetColorU32((flags & ImGuiTabBarFlags_IsFocused) ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive); - const float y = tab_bar->BarRect.Max.y - 1.0f; - { - const float separator_min_x = tab_bar->BarRect.Min.x - IM_FLOOR(window->WindowPadding.x * 0.5f); - const float separator_max_x = tab_bar->BarRect.Max.x + IM_FLOOR(window->WindowPadding.x * 0.5f); - window->DrawList->AddLine(ImVec2(separator_min_x, y), ImVec2(separator_max_x, y), col, 1.0f); - } - return true; -} - -void ImGui::EndTabBar() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return; - - ImGuiTabBar* tab_bar = g.CurrentTabBar; - if (tab_bar == NULL) - { - IM_ASSERT_USER_ERROR(tab_bar != NULL, "Mismatched BeginTabBar()/EndTabBar()!"); - return; - } - - // Fallback in case no TabItem have been submitted - if (tab_bar->WantLayout) - TabBarLayout(tab_bar); - - // Restore the last visible height if no tab is visible, this reduce vertical flicker/movement when a tabs gets removed without calling SetTabItemClosed(). - const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); - if (tab_bar->VisibleTabWasSubmitted || tab_bar->VisibleTabId == 0 || tab_bar_appearing) - { - tab_bar->CurrTabsContentsHeight = ImMax(window->DC.CursorPos.y - tab_bar->BarRect.Max.y, tab_bar->CurrTabsContentsHeight); - window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->CurrTabsContentsHeight; - } - else - { - window->DC.CursorPos.y = tab_bar->BarRect.Max.y + tab_bar->PrevTabsContentsHeight; - } - if (tab_bar->BeginCount > 1) - window->DC.CursorPos = tab_bar->BackupCursorPos; - - if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) - PopID(); - - g.CurrentTabBarStack.pop_back(); - g.CurrentTabBar = g.CurrentTabBarStack.empty() ? NULL : GetTabBarFromTabBarRef(g.CurrentTabBarStack.back()); -} - -// This is called only once a frame before by the first call to ItemTab() -// The reason we're not calling it in BeginTabBar() is to leave a chance to the user to call the SetTabItemClosed() functions. -static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar) -{ - ImGuiContext& g = *GImGui; - tab_bar->WantLayout = false; - - // Garbage collect by compacting list - // Detect if we need to sort out tab list (e.g. in rare case where a tab changed section) - int tab_dst_n = 0; - bool need_sort_by_section = false; - ImGuiTabBarSection sections[3]; // Layout sections: Leading, Central, Trailing - for (int tab_src_n = 0; tab_src_n < tab_bar->Tabs.Size; tab_src_n++) - { - ImGuiTabItem* tab = &tab_bar->Tabs[tab_src_n]; - if (tab->LastFrameVisible < tab_bar->PrevFrameVisible || tab->WantClose) - { - // Remove tab - if (tab_bar->VisibleTabId == tab->ID) { tab_bar->VisibleTabId = 0; } - if (tab_bar->SelectedTabId == tab->ID) { tab_bar->SelectedTabId = 0; } - if (tab_bar->NextSelectedTabId == tab->ID) { tab_bar->NextSelectedTabId = 0; } - continue; - } - if (tab_dst_n != tab_src_n) - tab_bar->Tabs[tab_dst_n] = tab_bar->Tabs[tab_src_n]; - - tab = &tab_bar->Tabs[tab_dst_n]; - tab->IndexDuringLayout = (ImS16)tab_dst_n; - - // We will need sorting if tabs have changed section (e.g. moved from one of Leading/Central/Trailing to another) - int curr_tab_section_n = (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; - if (tab_dst_n > 0) - { - ImGuiTabItem* prev_tab = &tab_bar->Tabs[tab_dst_n - 1]; - int prev_tab_section_n = (prev_tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (prev_tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; - if (curr_tab_section_n == 0 && prev_tab_section_n != 0) - need_sort_by_section = true; - if (prev_tab_section_n == 2 && curr_tab_section_n != 2) - need_sort_by_section = true; - } - - sections[curr_tab_section_n].TabCount++; - tab_dst_n++; - } - if (tab_bar->Tabs.Size != tab_dst_n) - tab_bar->Tabs.resize(tab_dst_n); - - if (need_sort_by_section) - ImQsort(tab_bar->Tabs.Data, tab_bar->Tabs.Size, sizeof(ImGuiTabItem), TabItemComparerBySection); - - // Calculate spacing between sections - sections[0].Spacing = sections[0].TabCount > 0 && (sections[1].TabCount + sections[2].TabCount) > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; - sections[1].Spacing = sections[1].TabCount > 0 && sections[2].TabCount > 0 ? g.Style.ItemInnerSpacing.x : 0.0f; - - // Setup next selected tab - ImGuiID scroll_to_tab_id = 0; - if (tab_bar->NextSelectedTabId) - { - tab_bar->SelectedTabId = tab_bar->NextSelectedTabId; - tab_bar->NextSelectedTabId = 0; - scroll_to_tab_id = tab_bar->SelectedTabId; - } - - // Process order change request (we could probably process it when requested but it's just saner to do it in a single spot). - if (tab_bar->ReorderRequestTabId != 0) - { - if (TabBarProcessReorder(tab_bar)) - if (tab_bar->ReorderRequestTabId == tab_bar->SelectedTabId) - scroll_to_tab_id = tab_bar->ReorderRequestTabId; - tab_bar->ReorderRequestTabId = 0; - } - - // Tab List Popup (will alter tab_bar->BarRect and therefore the available width!) - const bool tab_list_popup_button = (tab_bar->Flags & ImGuiTabBarFlags_TabListPopupButton) != 0; - if (tab_list_popup_button) - if (ImGuiTabItem* tab_to_select = TabBarTabListPopupButton(tab_bar)) // NB: Will alter BarRect.Min.x! - scroll_to_tab_id = tab_bar->SelectedTabId = tab_to_select->ID; - - // Leading/Trailing tabs will be shrink only if central one aren't visible anymore, so layout the shrink data as: leading, trailing, central - // (whereas our tabs are stored as: leading, central, trailing) - int shrink_buffer_indexes[3] = { 0, sections[0].TabCount + sections[2].TabCount, sections[0].TabCount }; - g.ShrinkWidthBuffer.resize(tab_bar->Tabs.Size); - - // Compute ideal tabs widths + store them into shrink buffer - ImGuiTabItem* most_recently_selected_tab = NULL; - int curr_section_n = -1; - bool found_selected_tab_id = false; - for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) - { - ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; - IM_ASSERT(tab->LastFrameVisible >= tab_bar->PrevFrameVisible); - - if ((most_recently_selected_tab == NULL || most_recently_selected_tab->LastFrameSelected < tab->LastFrameSelected) && !(tab->Flags & ImGuiTabItemFlags_Button)) - most_recently_selected_tab = tab; - if (tab->ID == tab_bar->SelectedTabId) - found_selected_tab_id = true; - if (scroll_to_tab_id == 0 && g.NavJustMovedToId == tab->ID) - scroll_to_tab_id = tab->ID; - - // Refresh tab width immediately, otherwise changes of style e.g. style.FramePadding.x would noticeably lag in the tab bar. - // Additionally, when using TabBarAddTab() to manipulate tab bar order we occasionally insert new tabs that don't have a width yet, - // and we cannot wait for the next BeginTabItem() call. We cannot compute this width within TabBarAddTab() because font size depends on the active window. - const char* tab_name = tab_bar->GetTabName(tab); - const bool has_close_button = (tab->Flags & ImGuiTabItemFlags_NoCloseButton) ? false : true; - tab->ContentWidth = TabItemCalcSize(tab_name, has_close_button).x; - - int section_n = (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; - ImGuiTabBarSection* section = §ions[section_n]; - section->Width += tab->ContentWidth + (section_n == curr_section_n ? g.Style.ItemInnerSpacing.x : 0.0f); - curr_section_n = section_n; - - // Store data so we can build an array sorted by width if we need to shrink tabs down - int shrink_buffer_index = shrink_buffer_indexes[section_n]++; - g.ShrinkWidthBuffer[shrink_buffer_index].Index = tab_n; - g.ShrinkWidthBuffer[shrink_buffer_index].Width = tab->ContentWidth; - - IM_ASSERT(tab->ContentWidth > 0.0f); - tab->Width = tab->ContentWidth; - } - - // Compute total ideal width (used for e.g. auto-resizing a window) - tab_bar->WidthAllTabsIdeal = 0.0f; - for (int section_n = 0; section_n < 3; section_n++) - tab_bar->WidthAllTabsIdeal += sections[section_n].Width + sections[section_n].Spacing; - - // Horizontal scrolling buttons - // (note that TabBarScrollButtons() will alter BarRect.Max.x) - if ((tab_bar->WidthAllTabsIdeal > tab_bar->BarRect.GetWidth() && tab_bar->Tabs.Size > 1) && !(tab_bar->Flags & ImGuiTabBarFlags_NoTabListScrollingButtons) && (tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyScroll)) - if (ImGuiTabItem* scroll_and_select_tab = TabBarScrollingButtons(tab_bar)) - { - scroll_to_tab_id = scroll_and_select_tab->ID; - if ((scroll_and_select_tab->Flags & ImGuiTabItemFlags_Button) == 0) - tab_bar->SelectedTabId = scroll_to_tab_id; - } - - // Shrink widths if full tabs don't fit in their allocated space - float section_0_w = sections[0].Width + sections[0].Spacing; - float section_1_w = sections[1].Width + sections[1].Spacing; - float section_2_w = sections[2].Width + sections[2].Spacing; - bool central_section_is_visible = (section_0_w + section_2_w) < tab_bar->BarRect.GetWidth(); - float width_excess; - if (central_section_is_visible) - width_excess = ImMax(section_1_w - (tab_bar->BarRect.GetWidth() - section_0_w - section_2_w), 0.0f); // Excess used to shrink central section - else - width_excess = (section_0_w + section_2_w) - tab_bar->BarRect.GetWidth(); // Excess used to shrink leading/trailing section - - // With ImGuiTabBarFlags_FittingPolicyScroll policy, we will only shrink leading/trailing if the central section is not visible anymore - if (width_excess > 0.0f && ((tab_bar->Flags & ImGuiTabBarFlags_FittingPolicyResizeDown) || !central_section_is_visible)) - { - int shrink_data_count = (central_section_is_visible ? sections[1].TabCount : sections[0].TabCount + sections[2].TabCount); - int shrink_data_offset = (central_section_is_visible ? sections[0].TabCount + sections[2].TabCount : 0); - ShrinkWidths(g.ShrinkWidthBuffer.Data + shrink_data_offset, shrink_data_count, width_excess); - - // Apply shrunk values into tabs and sections - for (int tab_n = shrink_data_offset; tab_n < shrink_data_offset + shrink_data_count; tab_n++) - { - ImGuiTabItem* tab = &tab_bar->Tabs[g.ShrinkWidthBuffer[tab_n].Index]; - float shrinked_width = IM_FLOOR(g.ShrinkWidthBuffer[tab_n].Width); - if (shrinked_width < 0.0f) - continue; - - int section_n = (tab->Flags & ImGuiTabItemFlags_Leading) ? 0 : (tab->Flags & ImGuiTabItemFlags_Trailing) ? 2 : 1; - sections[section_n].Width -= (tab->Width - shrinked_width); - tab->Width = shrinked_width; - } - } - - // Layout all active tabs - int section_tab_index = 0; - float tab_offset = 0.0f; - tab_bar->WidthAllTabs = 0.0f; - for (int section_n = 0; section_n < 3; section_n++) - { - ImGuiTabBarSection* section = §ions[section_n]; - if (section_n == 2) - tab_offset = ImMin(ImMax(0.0f, tab_bar->BarRect.GetWidth() - section->Width), tab_offset); - - for (int tab_n = 0; tab_n < section->TabCount; tab_n++) - { - ImGuiTabItem* tab = &tab_bar->Tabs[section_tab_index + tab_n]; - tab->Offset = tab_offset; - tab_offset += tab->Width + (tab_n < section->TabCount - 1 ? g.Style.ItemInnerSpacing.x : 0.0f); - } - tab_bar->WidthAllTabs += ImMax(section->Width + section->Spacing, 0.0f); - tab_offset += section->Spacing; - section_tab_index += section->TabCount; - } - - // If we have lost the selected tab, select the next most recently active one - if (found_selected_tab_id == false) - tab_bar->SelectedTabId = 0; - if (tab_bar->SelectedTabId == 0 && tab_bar->NextSelectedTabId == 0 && most_recently_selected_tab != NULL) - scroll_to_tab_id = tab_bar->SelectedTabId = most_recently_selected_tab->ID; - - // Lock in visible tab - tab_bar->VisibleTabId = tab_bar->SelectedTabId; - tab_bar->VisibleTabWasSubmitted = false; - - // Update scrolling - if (scroll_to_tab_id != 0) - TabBarScrollToTab(tab_bar, scroll_to_tab_id, sections); - tab_bar->ScrollingAnim = TabBarScrollClamp(tab_bar, tab_bar->ScrollingAnim); - tab_bar->ScrollingTarget = TabBarScrollClamp(tab_bar, tab_bar->ScrollingTarget); - if (tab_bar->ScrollingAnim != tab_bar->ScrollingTarget) - { - // Scrolling speed adjust itself so we can always reach our target in 1/3 seconds. - // Teleport if we are aiming far off the visible line - tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, 70.0f * g.FontSize); - tab_bar->ScrollingSpeed = ImMax(tab_bar->ScrollingSpeed, ImFabs(tab_bar->ScrollingTarget - tab_bar->ScrollingAnim) / 0.3f); - const bool teleport = (tab_bar->PrevFrameVisible + 1 < g.FrameCount) || (tab_bar->ScrollingTargetDistToVisibility > 10.0f * g.FontSize); - tab_bar->ScrollingAnim = teleport ? tab_bar->ScrollingTarget : ImLinearSweep(tab_bar->ScrollingAnim, tab_bar->ScrollingTarget, g.IO.DeltaTime * tab_bar->ScrollingSpeed); - } - else - { - tab_bar->ScrollingSpeed = 0.0f; - } - tab_bar->ScrollingRectMinX = tab_bar->BarRect.Min.x + sections[0].Width + sections[0].Spacing; - tab_bar->ScrollingRectMaxX = tab_bar->BarRect.Max.x - sections[2].Width - sections[1].Spacing; - - // Clear name buffers - if ((tab_bar->Flags & ImGuiTabBarFlags_DockNode) == 0) - tab_bar->TabsNames.Buf.resize(0); - - // Actual layout in host window (we don't do it in BeginTabBar() so as not to waste an extra frame) - ImGuiWindow* window = g.CurrentWindow; - window->DC.CursorPos = tab_bar->BarRect.Min; - ItemSize(ImVec2(tab_bar->WidthAllTabs, tab_bar->BarRect.GetHeight()), tab_bar->FramePadding.y); - window->DC.IdealMaxPos.x = ImMax(window->DC.IdealMaxPos.x, tab_bar->BarRect.Min.x + tab_bar->WidthAllTabsIdeal); -} - -// Dockables uses Name/ID in the global namespace. Non-dockable items use the ID stack. -static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label) -{ - if (tab_bar->Flags & ImGuiTabBarFlags_DockNode) - { - ImGuiID id = ImHashStr(label); - KeepAliveID(id); - return id; - } - else - { - ImGuiWindow* window = GImGui->CurrentWindow; - return window->GetID(label); - } -} - -static float ImGui::TabBarCalcMaxTabWidth() -{ - ImGuiContext& g = *GImGui; - return g.FontSize * 20.0f; -} - -ImGuiTabItem* ImGui::TabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id) -{ - if (tab_id != 0) - for (int n = 0; n < tab_bar->Tabs.Size; n++) - if (tab_bar->Tabs[n].ID == tab_id) - return &tab_bar->Tabs[n]; - return NULL; -} - -// The *TabId fields be already set by the docking system _before_ the actual TabItem was created, so we clear them regardless. -void ImGui::TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id) -{ - if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) - tab_bar->Tabs.erase(tab); - if (tab_bar->VisibleTabId == tab_id) { tab_bar->VisibleTabId = 0; } - if (tab_bar->SelectedTabId == tab_id) { tab_bar->SelectedTabId = 0; } - if (tab_bar->NextSelectedTabId == tab_id) { tab_bar->NextSelectedTabId = 0; } -} - -// Called on manual closure attempt -void ImGui::TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) -{ - IM_ASSERT(!(tab->Flags & ImGuiTabItemFlags_Button)); - if (!(tab->Flags & ImGuiTabItemFlags_UnsavedDocument)) - { - // This will remove a frame of lag for selecting another tab on closure. - // However we don't run it in the case where the 'Unsaved' flag is set, so user gets a chance to fully undo the closure - tab->WantClose = true; - if (tab_bar->VisibleTabId == tab->ID) - { - tab->LastFrameVisible = -1; - tab_bar->SelectedTabId = tab_bar->NextSelectedTabId = 0; - } - } - else - { - // Actually select before expecting closure attempt (on an UnsavedDocument tab user is expect to e.g. show a popup) - if (tab_bar->VisibleTabId != tab->ID) - tab_bar->NextSelectedTabId = tab->ID; - } -} - -static float ImGui::TabBarScrollClamp(ImGuiTabBar* tab_bar, float scrolling) -{ - scrolling = ImMin(scrolling, tab_bar->WidthAllTabs - tab_bar->BarRect.GetWidth()); - return ImMax(scrolling, 0.0f); -} - -// Note: we may scroll to tab that are not selected! e.g. using keyboard arrow keys -static void ImGui::TabBarScrollToTab(ImGuiTabBar* tab_bar, ImGuiID tab_id, ImGuiTabBarSection* sections) -{ - ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id); - if (tab == NULL) - return; - if (tab->Flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) - return; - - ImGuiContext& g = *GImGui; - float margin = g.FontSize * 1.0f; // When to scroll to make Tab N+1 visible always make a bit of N visible to suggest more scrolling area (since we don't have a scrollbar) - int order = tab_bar->GetTabOrder(tab); - - // Scrolling happens only in the central section (leading/trailing sections are not scrolling) - // FIXME: This is all confusing. - float scrollable_width = tab_bar->BarRect.GetWidth() - sections[0].Width - sections[2].Width - sections[1].Spacing; - - // We make all tabs positions all relative Sections[0].Width to make code simpler - float tab_x1 = tab->Offset - sections[0].Width + (order > sections[0].TabCount - 1 ? -margin : 0.0f); - float tab_x2 = tab->Offset - sections[0].Width + tab->Width + (order + 1 < tab_bar->Tabs.Size - sections[2].TabCount ? margin : 1.0f); - tab_bar->ScrollingTargetDistToVisibility = 0.0f; - if (tab_bar->ScrollingTarget > tab_x1 || (tab_x2 - tab_x1 >= scrollable_width)) - { - // Scroll to the left - tab_bar->ScrollingTargetDistToVisibility = ImMax(tab_bar->ScrollingAnim - tab_x2, 0.0f); - tab_bar->ScrollingTarget = tab_x1; - } - else if (tab_bar->ScrollingTarget < tab_x2 - scrollable_width) - { - // Scroll to the right - tab_bar->ScrollingTargetDistToVisibility = ImMax((tab_x1 - scrollable_width) - tab_bar->ScrollingAnim, 0.0f); - tab_bar->ScrollingTarget = tab_x2 - scrollable_width; - } -} - -void ImGui::TabBarQueueReorder(ImGuiTabBar* tab_bar, const ImGuiTabItem* tab, int dir) -{ - IM_ASSERT(dir == -1 || dir == +1); - IM_ASSERT(tab_bar->ReorderRequestTabId == 0); - tab_bar->ReorderRequestTabId = tab->ID; - tab_bar->ReorderRequestDir = (ImS8)dir; -} - -bool ImGui::TabBarProcessReorder(ImGuiTabBar* tab_bar) -{ - ImGuiTabItem* tab1 = TabBarFindTabByID(tab_bar, tab_bar->ReorderRequestTabId); - if (tab1 == NULL || (tab1->Flags & ImGuiTabItemFlags_NoReorder)) - return false; - - //IM_ASSERT(tab_bar->Flags & ImGuiTabBarFlags_Reorderable); // <- this may happen when using debug tools - int tab2_order = tab_bar->GetTabOrder(tab1) + tab_bar->ReorderRequestDir; - if (tab2_order < 0 || tab2_order >= tab_bar->Tabs.Size) - return false; - - // Reordered TabItem must share the same position flags than target - ImGuiTabItem* tab2 = &tab_bar->Tabs[tab2_order]; - if (tab2->Flags & ImGuiTabItemFlags_NoReorder) - return false; - if ((tab1->Flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) != (tab2->Flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing))) - return false; - - ImGuiTabItem item_tmp = *tab1; - *tab1 = *tab2; - *tab2 = item_tmp; - - if (tab_bar->Flags & ImGuiTabBarFlags_SaveSettings) - MarkIniSettingsDirty(); - return true; -} - -static ImGuiTabItem* ImGui::TabBarScrollingButtons(ImGuiTabBar* tab_bar) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - const ImVec2 arrow_button_size(g.FontSize - 2.0f, g.FontSize + g.Style.FramePadding.y * 2.0f); - const float scrolling_buttons_width = arrow_button_size.x * 2.0f; - - const ImVec2 backup_cursor_pos = window->DC.CursorPos; - //window->DrawList->AddRect(ImVec2(tab_bar->BarRect.Max.x - scrolling_buttons_width, tab_bar->BarRect.Min.y), ImVec2(tab_bar->BarRect.Max.x, tab_bar->BarRect.Max.y), IM_COL32(255,0,0,255)); - - int select_dir = 0; - ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; - arrow_col.w *= 0.5f; - - PushStyleColor(ImGuiCol_Text, arrow_col); - PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); - const float backup_repeat_delay = g.IO.KeyRepeatDelay; - const float backup_repeat_rate = g.IO.KeyRepeatRate; - g.IO.KeyRepeatDelay = 0.250f; - g.IO.KeyRepeatRate = 0.200f; - float x = ImMax(tab_bar->BarRect.Min.x, tab_bar->BarRect.Max.x - scrolling_buttons_width); - window->DC.CursorPos = ImVec2(x, tab_bar->BarRect.Min.y); - if (ArrowButtonEx("##<", ImGuiDir_Left, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) - select_dir = -1; - window->DC.CursorPos = ImVec2(x + arrow_button_size.x, tab_bar->BarRect.Min.y); - if (ArrowButtonEx("##>", ImGuiDir_Right, arrow_button_size, ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_Repeat)) - select_dir = +1; - PopStyleColor(2); - g.IO.KeyRepeatRate = backup_repeat_rate; - g.IO.KeyRepeatDelay = backup_repeat_delay; - - ImGuiTabItem* tab_to_scroll_to = NULL; - if (select_dir != 0) - if (ImGuiTabItem* tab_item = TabBarFindTabByID(tab_bar, tab_bar->SelectedTabId)) - { - int selected_order = tab_bar->GetTabOrder(tab_item); - int target_order = selected_order + select_dir; - - // Skip tab item buttons until another tab item is found or end is reached - while (tab_to_scroll_to == NULL) - { - // If we are at the end of the list, still scroll to make our tab visible - tab_to_scroll_to = &tab_bar->Tabs[(target_order >= 0 && target_order < tab_bar->Tabs.Size) ? target_order : selected_order]; - - // Cross through buttons - // (even if first/last item is a button, return it so we can update the scroll) - if (tab_to_scroll_to->Flags & ImGuiTabItemFlags_Button) - { - target_order += select_dir; - selected_order += select_dir; - tab_to_scroll_to = (target_order < 0 || target_order >= tab_bar->Tabs.Size) ? tab_to_scroll_to : NULL; - } - } - } - window->DC.CursorPos = backup_cursor_pos; - tab_bar->BarRect.Max.x -= scrolling_buttons_width + 1.0f; - - return tab_to_scroll_to; -} - -static ImGuiTabItem* ImGui::TabBarTabListPopupButton(ImGuiTabBar* tab_bar) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - - // We use g.Style.FramePadding.y to match the square ArrowButton size - const float tab_list_popup_button_width = g.FontSize + g.Style.FramePadding.y; - const ImVec2 backup_cursor_pos = window->DC.CursorPos; - window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x - g.Style.FramePadding.y, tab_bar->BarRect.Min.y); - tab_bar->BarRect.Min.x += tab_list_popup_button_width; - - ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text]; - arrow_col.w *= 0.5f; - PushStyleColor(ImGuiCol_Text, arrow_col); - PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); - bool open = BeginCombo("##v", NULL, ImGuiComboFlags_NoPreview | ImGuiComboFlags_HeightLargest); - PopStyleColor(2); - - ImGuiTabItem* tab_to_select = NULL; - if (open) - { - for (int tab_n = 0; tab_n < tab_bar->Tabs.Size; tab_n++) - { - ImGuiTabItem* tab = &tab_bar->Tabs[tab_n]; - if (tab->Flags & ImGuiTabItemFlags_Button) - continue; - - const char* tab_name = tab_bar->GetTabName(tab); - if (Selectable(tab_name, tab_bar->SelectedTabId == tab->ID)) - tab_to_select = tab; - } - EndCombo(); - } - - window->DC.CursorPos = backup_cursor_pos; - return tab_to_select; -} - -//------------------------------------------------------------------------- -// [SECTION] Widgets: BeginTabItem, EndTabItem, etc. -//------------------------------------------------------------------------- -// - BeginTabItem() -// - EndTabItem() -// - TabItemButton() -// - TabItemEx() [Internal] -// - SetTabItemClosed() -// - TabItemCalcSize() [Internal] -// - TabItemBackground() [Internal] -// - TabItemLabelAndCloseButton() [Internal] -//------------------------------------------------------------------------- - -bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return false; - - ImGuiTabBar* tab_bar = g.CurrentTabBar; - if (tab_bar == NULL) - { - IM_ASSERT_USER_ERROR(tab_bar, "Needs to be called between BeginTabBar() and EndTabBar()!"); - return false; - } - IM_ASSERT(!(flags & ImGuiTabItemFlags_Button)); // BeginTabItem() Can't be used with button flags, use TabItemButton() instead! - - bool ret = TabItemEx(tab_bar, label, p_open, flags); - if (ret && !(flags & ImGuiTabItemFlags_NoPushId)) - { - ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; - PushOverrideID(tab->ID); // We already hashed 'label' so push into the ID stack directly instead of doing another hash through PushID(label) - } - return ret; -} - -void ImGui::EndTabItem() -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return; - - ImGuiTabBar* tab_bar = g.CurrentTabBar; - if (tab_bar == NULL) - { - IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); - return; - } - IM_ASSERT(tab_bar->LastTabItemIdx >= 0); - ImGuiTabItem* tab = &tab_bar->Tabs[tab_bar->LastTabItemIdx]; - if (!(tab->Flags & ImGuiTabItemFlags_NoPushId)) - PopID(); -} - -bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags) -{ - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return false; - - ImGuiTabBar* tab_bar = g.CurrentTabBar; - if (tab_bar == NULL) - { - IM_ASSERT_USER_ERROR(tab_bar != NULL, "Needs to be called between BeginTabBar() and EndTabBar()!"); - return false; - } - return TabItemEx(tab_bar, label, NULL, flags | ImGuiTabItemFlags_Button | ImGuiTabItemFlags_NoReorder); -} - -bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags) -{ - // Layout whole tab bar if not already done - if (tab_bar->WantLayout) - TabBarLayout(tab_bar); - - ImGuiContext& g = *GImGui; - ImGuiWindow* window = g.CurrentWindow; - if (window->SkipItems) - return false; - - const ImGuiStyle& style = g.Style; - const ImGuiID id = TabBarCalcTabID(tab_bar, label); - - // If the user called us with *p_open == false, we early out and don't render. - // We make a call to ItemAdd() so that attempts to use a contextual popup menu with an implicit ID won't use an older ID. - IMGUI_TEST_ENGINE_ITEM_INFO(id, label, window->DC.LastItemStatusFlags); - if (p_open && !*p_open) - { - PushItemFlag(ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus, true); - ItemAdd(ImRect(), id); - PopItemFlag(); - return false; - } - - IM_ASSERT(!p_open || !(flags & ImGuiTabItemFlags_Button)); - IM_ASSERT((flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) != (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)); // Can't use both Leading and Trailing - - // Store into ImGuiTabItemFlags_NoCloseButton, also honor ImGuiTabItemFlags_NoCloseButton passed by user (although not documented) - if (flags & ImGuiTabItemFlags_NoCloseButton) - p_open = NULL; - else if (p_open == NULL) - flags |= ImGuiTabItemFlags_NoCloseButton; - - // Calculate tab contents size - ImVec2 size = TabItemCalcSize(label, p_open != NULL); - - // Acquire tab data - ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, id); - bool tab_is_new = false; - if (tab == NULL) - { - tab_bar->Tabs.push_back(ImGuiTabItem()); - tab = &tab_bar->Tabs.back(); - tab->ID = id; - tab->Width = size.x; - tab_bar->TabsAddedNew = true; - tab_is_new = true; - } - tab_bar->LastTabItemIdx = (ImS16)tab_bar->Tabs.index_from_ptr(tab); - tab->ContentWidth = size.x; - tab->BeginOrder = tab_bar->TabsActiveCount++; - - const bool tab_bar_appearing = (tab_bar->PrevFrameVisible + 1 < g.FrameCount); - const bool tab_bar_focused = (tab_bar->Flags & ImGuiTabBarFlags_IsFocused) != 0; - const bool tab_appearing = (tab->LastFrameVisible + 1 < g.FrameCount); - const bool is_tab_button = (flags & ImGuiTabItemFlags_Button) != 0; - tab->LastFrameVisible = g.FrameCount; - tab->Flags = flags; - - // Append name with zero-terminator - tab->NameOffset = (ImS16)tab_bar->TabsNames.size(); - tab_bar->TabsNames.append(label, label + strlen(label) + 1); - - // Update selected tab - if (tab_appearing && (tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs) && tab_bar->NextSelectedTabId == 0) - if (!tab_bar_appearing || tab_bar->SelectedTabId == 0) - if (!is_tab_button) - tab_bar->NextSelectedTabId = id; // New tabs gets activated - if ((flags & ImGuiTabItemFlags_SetSelected) && (tab_bar->SelectedTabId != id)) // SetSelected can only be passed on explicit tab bar - if (!is_tab_button) - tab_bar->NextSelectedTabId = id; - - // Lock visibility - // (Note: tab_contents_visible != tab_selected... because CTRL+TAB operations may preview some tabs without selecting them!) - bool tab_contents_visible = (tab_bar->VisibleTabId == id); - if (tab_contents_visible) - tab_bar->VisibleTabWasSubmitted = true; - - // On the very first frame of a tab bar we let first tab contents be visible to minimize appearing glitches - if (!tab_contents_visible && tab_bar->SelectedTabId == 0 && tab_bar_appearing) - if (tab_bar->Tabs.Size == 1 && !(tab_bar->Flags & ImGuiTabBarFlags_AutoSelectNewTabs)) - tab_contents_visible = true; - - // Note that tab_is_new is not necessarily the same as tab_appearing! When a tab bar stops being submitted - // and then gets submitted again, the tabs will have 'tab_appearing=true' but 'tab_is_new=false'. - if (tab_appearing && (!tab_bar_appearing || tab_is_new)) - { - PushItemFlag(ImGuiItemFlags_NoNav | ImGuiItemFlags_NoNavDefaultFocus, true); - ItemAdd(ImRect(), id); - PopItemFlag(); - if (is_tab_button) - return false; - return tab_contents_visible; - } - - if (tab_bar->SelectedTabId == id) - tab->LastFrameSelected = g.FrameCount; - - // Backup current layout position - const ImVec2 backup_main_cursor_pos = window->DC.CursorPos; - - // Layout - const bool is_central_section = (tab->Flags & (ImGuiTabItemFlags_Leading | ImGuiTabItemFlags_Trailing)) == 0; - size.x = tab->Width; - if (is_central_section) - window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(IM_FLOOR(tab->Offset - tab_bar->ScrollingAnim), 0.0f); - else - window->DC.CursorPos = tab_bar->BarRect.Min + ImVec2(tab->Offset, 0.0f); - ImVec2 pos = window->DC.CursorPos; - ImRect bb(pos, pos + size); - - // We don't have CPU clipping primitives to clip the CloseButton (until it becomes a texture), so need to add an extra draw call (temporary in the case of vertical animation) - const bool want_clip_rect = is_central_section && (bb.Min.x < tab_bar->ScrollingRectMinX || bb.Max.x > tab_bar->ScrollingRectMaxX); - if (want_clip_rect) - PushClipRect(ImVec2(ImMax(bb.Min.x, tab_bar->ScrollingRectMinX), bb.Min.y - 1), ImVec2(tab_bar->ScrollingRectMaxX, bb.Max.y), true); - - ImVec2 backup_cursor_max_pos = window->DC.CursorMaxPos; - ItemSize(bb.GetSize(), style.FramePadding.y); - window->DC.CursorMaxPos = backup_cursor_max_pos; - - if (!ItemAdd(bb, id)) - { - if (want_clip_rect) - PopClipRect(); - window->DC.CursorPos = backup_main_cursor_pos; - return tab_contents_visible; - } - - // Click to Select a tab - ImGuiButtonFlags button_flags = ((is_tab_button ? ImGuiButtonFlags_PressedOnClickRelease : ImGuiButtonFlags_PressedOnClick) | ImGuiButtonFlags_AllowItemOverlap); - if (g.DragDropActive) - button_flags |= ImGuiButtonFlags_PressedOnDragDropHold; - bool hovered, held; - bool pressed = ButtonBehavior(bb, id, &hovered, &held, button_flags); - if (pressed && !is_tab_button) - tab_bar->NextSelectedTabId = id; - hovered |= (g.HoveredId == id); - - // Allow the close button to overlap unless we are dragging (in which case we don't want any overlapping tabs to be hovered) - if (g.ActiveId != id) - SetItemAllowOverlap(); - - // Drag and drop: re-order tabs - if (held && !tab_appearing && IsMouseDragging(0)) - { - if (!g.DragDropActive && (tab_bar->Flags & ImGuiTabBarFlags_Reorderable)) - { - // While moving a tab it will jump on the other side of the mouse, so we also test for MouseDelta.x - if (g.IO.MouseDelta.x < 0.0f && g.IO.MousePos.x < bb.Min.x) - { - if (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) - TabBarQueueReorder(tab_bar, tab, -1); - } - else if (g.IO.MouseDelta.x > 0.0f && g.IO.MousePos.x > bb.Max.x) - { - if (tab_bar->Flags & ImGuiTabBarFlags_Reorderable) - TabBarQueueReorder(tab_bar, tab, +1); - } - } - } - -#if 0 - if (hovered && g.HoveredIdNotActiveTimer > TOOLTIP_DELAY && bb.GetWidth() < tab->ContentWidth) - { - // Enlarge tab display when hovering - bb.Max.x = bb.Min.x + IM_FLOOR(ImLerp(bb.GetWidth(), tab->ContentWidth, ImSaturate((g.HoveredIdNotActiveTimer - 0.40f) * 6.0f))); - display_draw_list = GetForegroundDrawList(window); - TabItemBackground(display_draw_list, bb, flags, GetColorU32(ImGuiCol_TitleBgActive)); - } -#endif - - // Render tab shape - ImDrawList* display_draw_list = window->DrawList; - const ImU32 tab_col = GetColorU32((held || hovered) ? ImGuiCol_TabHovered : tab_contents_visible ? (tab_bar_focused ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive) : (tab_bar_focused ? ImGuiCol_Tab : ImGuiCol_TabUnfocused)); - TabItemBackground(display_draw_list, bb, flags, tab_col); - RenderNavHighlight(bb, id); - - // Select with right mouse button. This is so the common idiom for context menu automatically highlight the current widget. - const bool hovered_unblocked = IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup); - if (hovered_unblocked && (IsMouseClicked(1) || IsMouseReleased(1))) - if (!is_tab_button) - tab_bar->NextSelectedTabId = id; - - if (tab_bar->Flags & ImGuiTabBarFlags_NoCloseWithMiddleMouseButton) - flags |= ImGuiTabItemFlags_NoCloseWithMiddleMouseButton; - - // Render tab label, process close button - const ImGuiID close_button_id = p_open ? GetIDWithSeed("#CLOSE", NULL, id) : 0; - bool just_closed; - bool text_clipped; - TabItemLabelAndCloseButton(display_draw_list, bb, flags, tab_bar->FramePadding, label, id, close_button_id, tab_contents_visible, &just_closed, &text_clipped); - if (just_closed && p_open != NULL) - { - *p_open = false; - TabBarCloseTab(tab_bar, tab); - } - - // Restore main window position so user can draw there - if (want_clip_rect) - PopClipRect(); - window->DC.CursorPos = backup_main_cursor_pos; - - // Tooltip (FIXME: Won't work over the close button because ItemOverlap systems messes up with HoveredIdTimer) - // We test IsItemHovered() to discard e.g. when another item is active or drag and drop over the tab bar (which g.HoveredId ignores) - if (text_clipped && g.HoveredId == id && !held && g.HoveredIdNotActiveTimer > g.TooltipSlowDelay && IsItemHovered()) - if (!(tab_bar->Flags & ImGuiTabBarFlags_NoTooltip) && !(tab->Flags & ImGuiTabItemFlags_NoTooltip)) - SetTooltip("%.*s", (int)(FindRenderedTextEnd(label) - label), label); - - IM_ASSERT(!is_tab_button || !(tab_bar->SelectedTabId == tab->ID && is_tab_button)); // TabItemButton should not be selected - if (is_tab_button) - return pressed; - return tab_contents_visible; -} - -// [Public] This is call is 100% optional but it allows to remove some one-frame glitches when a tab has been unexpectedly removed. -// To use it to need to call the function SetTabItemClosed() between BeginTabBar() and EndTabBar(). -// Tabs closed by the close button will automatically be flagged to avoid this issue. -void ImGui::SetTabItemClosed(const char* label) -{ - ImGuiContext& g = *GImGui; - bool is_within_manual_tab_bar = g.CurrentTabBar && !(g.CurrentTabBar->Flags & ImGuiTabBarFlags_DockNode); - if (is_within_manual_tab_bar) - { - ImGuiTabBar* tab_bar = g.CurrentTabBar; - ImGuiID tab_id = TabBarCalcTabID(tab_bar, label); - if (ImGuiTabItem* tab = TabBarFindTabByID(tab_bar, tab_id)) - tab->WantClose = true; // Will be processed by next call to TabBarLayout() - } -} - -ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button) -{ - ImGuiContext& g = *GImGui; - ImVec2 label_size = CalcTextSize(label, NULL, true); - ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f); - if (has_close_button) - size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle. - else - size.x += g.Style.FramePadding.x + 1.0f; - return ImVec2(ImMin(size.x, TabBarCalcMaxTabWidth()), size.y); -} - -void ImGui::TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col) -{ - // While rendering tabs, we trim 1 pixel off the top of our bounding box so they can fit within a regular frame height while looking "detached" from it. - ImGuiContext& g = *GImGui; - const float width = bb.GetWidth(); - IM_UNUSED(flags); - IM_ASSERT(width > 0.0f); - const float rounding = ImMax(0.0f, ImMin((flags & ImGuiTabItemFlags_Button) ? g.Style.FrameRounding : g.Style.TabRounding, width * 0.5f - 1.0f)); - const float y1 = bb.Min.y + 1.0f; - const float y2 = bb.Max.y - 1.0f; - draw_list->PathLineTo(ImVec2(bb.Min.x, y2)); - draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding, y1 + rounding), rounding, 6, 9); - draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding, y1 + rounding), rounding, 9, 12); - draw_list->PathLineTo(ImVec2(bb.Max.x, y2)); - draw_list->PathFillConvex(col); - if (g.Style.TabBorderSize > 0.0f) - { - draw_list->PathLineTo(ImVec2(bb.Min.x + 0.5f, y2)); - draw_list->PathArcToFast(ImVec2(bb.Min.x + rounding + 0.5f, y1 + rounding + 0.5f), rounding, 6, 9); - draw_list->PathArcToFast(ImVec2(bb.Max.x - rounding - 0.5f, y1 + rounding + 0.5f), rounding, 9, 12); - draw_list->PathLineTo(ImVec2(bb.Max.x - 0.5f, y2)); - draw_list->PathStroke(GetColorU32(ImGuiCol_Border), false, g.Style.TabBorderSize); - } -} - -// Render text label (with custom clipping) + Unsaved Document marker + Close Button logic -// We tend to lock style.FramePadding for a given tab-bar, hence the 'frame_padding' parameter. -void ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped) -{ - ImGuiContext& g = *GImGui; - ImVec2 label_size = CalcTextSize(label, NULL, true); - - if (out_just_closed) - *out_just_closed = false; - if (out_text_clipped) - *out_text_clipped = false; - - if (bb.GetWidth() <= 1.0f) - return; - - // In Style V2 we'll have full override of all colors per state (e.g. focused, selected) - // But right now if you want to alter text color of tabs this is what you need to do. -#if 0 - const float backup_alpha = g.Style.Alpha; - if (!is_contents_visible) - g.Style.Alpha *= 0.7f; -#endif - - // Render text label (with clipping + alpha gradient) + unsaved marker - const char* TAB_UNSAVED_MARKER = "*"; - ImRect text_pixel_clip_bb(bb.Min.x + frame_padding.x, bb.Min.y + frame_padding.y, bb.Max.x - frame_padding.x, bb.Max.y); - if (flags & ImGuiTabItemFlags_UnsavedDocument) - { - text_pixel_clip_bb.Max.x -= CalcTextSize(TAB_UNSAVED_MARKER, NULL, false).x; - ImVec2 unsaved_marker_pos(ImMin(bb.Min.x + frame_padding.x + label_size.x + 2, text_pixel_clip_bb.Max.x), bb.Min.y + frame_padding.y + IM_FLOOR(-g.FontSize * 0.25f)); - RenderTextClippedEx(draw_list, unsaved_marker_pos, bb.Max - frame_padding, TAB_UNSAVED_MARKER, NULL, NULL); - } - ImRect text_ellipsis_clip_bb = text_pixel_clip_bb; - - // Return clipped state ignoring the close button - if (out_text_clipped) - { - *out_text_clipped = (text_ellipsis_clip_bb.Min.x + label_size.x) > text_pixel_clip_bb.Max.x; - //draw_list->AddCircle(text_ellipsis_clip_bb.Min, 3.0f, *out_text_clipped ? IM_COL32(255, 0, 0, 255) : IM_COL32(0, 255, 0, 255)); - } - - // Close Button - // We are relying on a subtle and confusing distinction between 'hovered' and 'g.HoveredId' which happens because we are using ImGuiButtonFlags_AllowOverlapMode + SetItemAllowOverlap() - // 'hovered' will be true when hovering the Tab but NOT when hovering the close button - // 'g.HoveredId==id' will be true when hovering the Tab including when hovering the close button - // 'g.ActiveId==close_button_id' will be true when we are holding on the close button, in which case both hovered booleans are false - bool close_button_pressed = false; - bool close_button_visible = false; - if (close_button_id != 0) - if (is_contents_visible || bb.GetWidth() >= g.Style.TabMinWidthForCloseButton) - if (g.HoveredId == tab_id || g.HoveredId == close_button_id || g.ActiveId == tab_id || g.ActiveId == close_button_id) - close_button_visible = true; - if (close_button_visible) - { - ImGuiLastItemDataBackup last_item_backup; - const float close_button_sz = g.FontSize; - PushStyleVar(ImGuiStyleVar_FramePadding, frame_padding); - if (CloseButton(close_button_id, ImVec2(bb.Max.x - frame_padding.x * 2.0f - close_button_sz, bb.Min.y))) - close_button_pressed = true; - PopStyleVar(); - last_item_backup.Restore(); - - // Close with middle mouse button - if (!(flags & ImGuiTabItemFlags_NoCloseWithMiddleMouseButton) && IsMouseClicked(2)) - close_button_pressed = true; - - text_pixel_clip_bb.Max.x -= close_button_sz; - } - - // FIXME: if FramePadding is noticeably large, ellipsis_max_x will be wrong here (e.g. #3497), maybe for consistency that parameter of RenderTextEllipsis() shouldn't exist.. - float ellipsis_max_x = close_button_visible ? text_pixel_clip_bb.Max.x : bb.Max.x - 1.0f; - RenderTextEllipsis(draw_list, text_ellipsis_clip_bb.Min, text_ellipsis_clip_bb.Max, text_pixel_clip_bb.Max.x, ellipsis_max_x, label, NULL, &label_size); - -#if 0 - if (!is_contents_visible) - g.Style.Alpha = backup_alpha; -#endif - - if (out_just_closed) - *out_just_closed = close_button_pressed; -} - - -#endif // #ifndef IMGUI_DISABLE diff --git a/third_party/imgui/imstb_rectpack.h b/third_party/imgui/imstb_rectpack.h deleted file mode 100644 index ff2a85df..00000000 --- a/third_party/imgui/imstb_rectpack.h +++ /dev/null @@ -1,639 +0,0 @@ -// [DEAR IMGUI] -// This is a slightly modified version of stb_rect_pack.h 1.00. -// Those changes would need to be pushed into nothings/stb: -// - Added STBRP__CDECL -// Grep for [DEAR IMGUI] to find the changes. - -// stb_rect_pack.h - v1.00 - public domain - rectangle packing -// Sean Barrett 2014 -// -// Useful for e.g. packing rectangular textures into an atlas. -// Does not do rotation. -// -// Not necessarily the awesomest packing method, but better than -// the totally naive one in stb_truetype (which is primarily what -// this is meant to replace). -// -// Has only had a few tests run, may have issues. -// -// More docs to come. -// -// No memory allocations; uses qsort() and assert() from stdlib. -// Can override those by defining STBRP_SORT and STBRP_ASSERT. -// -// This library currently uses the Skyline Bottom-Left algorithm. -// -// Please note: better rectangle packers are welcome! Please -// implement them to the same API, but with a different init -// function. -// -// Credits -// -// Library -// Sean Barrett -// Minor features -// Martins Mozeiko -// github:IntellectualKitty -// -// Bugfixes / warning fixes -// Jeremy Jaussaud -// Fabian Giesen -// -// Version history: -// -// 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles -// 0.99 (2019-02-07) warning fixes -// 0.11 (2017-03-03) return packing success/fail result -// 0.10 (2016-10-25) remove cast-away-const to avoid warnings -// 0.09 (2016-08-27) fix compiler warnings -// 0.08 (2015-09-13) really fix bug with empty rects (w=0 or h=0) -// 0.07 (2015-09-13) fix bug with empty rects (w=0 or h=0) -// 0.06 (2015-04-15) added STBRP_SORT to allow replacing qsort -// 0.05: added STBRP_ASSERT to allow replacing assert -// 0.04: fixed minor bug in STBRP_LARGE_RECTS support -// 0.01: initial release -// -// LICENSE -// -// See end of file for license information. - -////////////////////////////////////////////////////////////////////////////// -// -// INCLUDE SECTION -// - -#ifndef STB_INCLUDE_STB_RECT_PACK_H -#define STB_INCLUDE_STB_RECT_PACK_H - -#define STB_RECT_PACK_VERSION 1 - -#ifdef STBRP_STATIC -#define STBRP_DEF static -#else -#define STBRP_DEF extern -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct stbrp_context stbrp_context; -typedef struct stbrp_node stbrp_node; -typedef struct stbrp_rect stbrp_rect; - -#ifdef STBRP_LARGE_RECTS -typedef int stbrp_coord; -#else -typedef unsigned short stbrp_coord; -#endif - -STBRP_DEF int stbrp_pack_rects (stbrp_context *context, stbrp_rect *rects, int num_rects); -// Assign packed locations to rectangles. The rectangles are of type -// 'stbrp_rect' defined below, stored in the array 'rects', and there -// are 'num_rects' many of them. -// -// Rectangles which are successfully packed have the 'was_packed' flag -// set to a non-zero value and 'x' and 'y' store the minimum location -// on each axis (i.e. bottom-left in cartesian coordinates, top-left -// if you imagine y increasing downwards). Rectangles which do not fit -// have the 'was_packed' flag set to 0. -// -// You should not try to access the 'rects' array from another thread -// while this function is running, as the function temporarily reorders -// the array while it executes. -// -// To pack into another rectangle, you need to call stbrp_init_target -// again. To continue packing into the same rectangle, you can call -// this function again. Calling this multiple times with multiple rect -// arrays will probably produce worse packing results than calling it -// a single time with the full rectangle array, but the option is -// available. -// -// The function returns 1 if all of the rectangles were successfully -// packed and 0 otherwise. - -struct stbrp_rect -{ - // reserved for your use: - int id; - - // input: - stbrp_coord w, h; - - // output: - stbrp_coord x, y; - int was_packed; // non-zero if valid packing - -}; // 16 bytes, nominally - - -STBRP_DEF void stbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes); -// Initialize a rectangle packer to: -// pack a rectangle that is 'width' by 'height' in dimensions -// using temporary storage provided by the array 'nodes', which is 'num_nodes' long -// -// You must call this function every time you start packing into a new target. -// -// There is no "shutdown" function. The 'nodes' memory must stay valid for -// the following stbrp_pack_rects() call (or calls), but can be freed after -// the call (or calls) finish. -// -// Note: to guarantee best results, either: -// 1. make sure 'num_nodes' >= 'width' -// or 2. call stbrp_allow_out_of_mem() defined below with 'allow_out_of_mem = 1' -// -// If you don't do either of the above things, widths will be quantized to multiples -// of small integers to guarantee the algorithm doesn't run out of temporary storage. -// -// If you do #2, then the non-quantized algorithm will be used, but the algorithm -// may run out of temporary storage and be unable to pack some rectangles. - -STBRP_DEF void stbrp_setup_allow_out_of_mem (stbrp_context *context, int allow_out_of_mem); -// Optionally call this function after init but before doing any packing to -// change the handling of the out-of-temp-memory scenario, described above. -// If you call init again, this will be reset to the default (false). - - -STBRP_DEF void stbrp_setup_heuristic (stbrp_context *context, int heuristic); -// Optionally select which packing heuristic the library should use. Different -// heuristics will produce better/worse results for different data sets. -// If you call init again, this will be reset to the default. - -enum -{ - STBRP_HEURISTIC_Skyline_default=0, - STBRP_HEURISTIC_Skyline_BL_sortHeight = STBRP_HEURISTIC_Skyline_default, - STBRP_HEURISTIC_Skyline_BF_sortHeight -}; - - -////////////////////////////////////////////////////////////////////////////// -// -// the details of the following structures don't matter to you, but they must -// be visible so you can handle the memory allocations for them - -struct stbrp_node -{ - stbrp_coord x,y; - stbrp_node *next; -}; - -struct stbrp_context -{ - int width; - int height; - int align; - int init_mode; - int heuristic; - int num_nodes; - stbrp_node *active_head; - stbrp_node *free_head; - stbrp_node extra[2]; // we allocate two extra nodes so optimal user-node-count is 'width' not 'width+2' -}; - -#ifdef __cplusplus -} -#endif - -#endif - -////////////////////////////////////////////////////////////////////////////// -// -// IMPLEMENTATION SECTION -// - -#ifdef STB_RECT_PACK_IMPLEMENTATION -#ifndef STBRP_SORT -#include -#define STBRP_SORT qsort -#endif - -#ifndef STBRP_ASSERT -#include -#define STBRP_ASSERT assert -#endif - -// [DEAR IMGUI] Added STBRP__CDECL -#ifdef _MSC_VER -#define STBRP__NOTUSED(v) (void)(v) -#define STBRP__CDECL __cdecl -#else -#define STBRP__NOTUSED(v) (void)sizeof(v) -#define STBRP__CDECL -#endif - -enum -{ - STBRP__INIT_skyline = 1 -}; - -STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic) -{ - switch (context->init_mode) { - case STBRP__INIT_skyline: - STBRP_ASSERT(heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight || heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight); - context->heuristic = heuristic; - break; - default: - STBRP_ASSERT(0); - } -} - -STBRP_DEF void stbrp_setup_allow_out_of_mem(stbrp_context *context, int allow_out_of_mem) -{ - if (allow_out_of_mem) - // if it's ok to run out of memory, then don't bother aligning them; - // this gives better packing, but may fail due to OOM (even though - // the rectangles easily fit). @TODO a smarter approach would be to only - // quantize once we've hit OOM, then we could get rid of this parameter. - context->align = 1; - else { - // if it's not ok to run out of memory, then quantize the widths - // so that num_nodes is always enough nodes. - // - // I.e. num_nodes * align >= width - // align >= width / num_nodes - // align = ceil(width/num_nodes) - - context->align = (context->width + context->num_nodes-1) / context->num_nodes; - } -} - -STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) -{ - int i; -#ifndef STBRP_LARGE_RECTS - STBRP_ASSERT(width <= 0xffff && height <= 0xffff); -#endif - - for (i=0; i < num_nodes-1; ++i) - nodes[i].next = &nodes[i+1]; - nodes[i].next = NULL; - context->init_mode = STBRP__INIT_skyline; - context->heuristic = STBRP_HEURISTIC_Skyline_default; - context->free_head = &nodes[0]; - context->active_head = &context->extra[0]; - context->width = width; - context->height = height; - context->num_nodes = num_nodes; - stbrp_setup_allow_out_of_mem(context, 0); - - // node 0 is the full width, node 1 is the sentinel (lets us not store width explicitly) - context->extra[0].x = 0; - context->extra[0].y = 0; - context->extra[0].next = &context->extra[1]; - context->extra[1].x = (stbrp_coord) width; -#ifdef STBRP_LARGE_RECTS - context->extra[1].y = (1<<30); -#else - context->extra[1].y = 65535; -#endif - context->extra[1].next = NULL; -} - -// find minimum y position if it starts at x1 -static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste) -{ - stbrp_node *node = first; - int x1 = x0 + width; - int min_y, visited_width, waste_area; - - STBRP__NOTUSED(c); - - STBRP_ASSERT(first->x <= x0); - - #if 0 - // skip in case we're past the node - while (node->next->x <= x0) - ++node; - #else - STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency - #endif - - STBRP_ASSERT(node->x <= x0); - - min_y = 0; - waste_area = 0; - visited_width = 0; - while (node->x < x1) { - if (node->y > min_y) { - // raise min_y higher. - // we've accounted for all waste up to min_y, - // but we'll now add more waste for everything we've visted - waste_area += visited_width * (node->y - min_y); - min_y = node->y; - // the first time through, visited_width might be reduced - if (node->x < x0) - visited_width += node->next->x - x0; - else - visited_width += node->next->x - node->x; - } else { - // add waste area - int under_width = node->next->x - node->x; - if (under_width + visited_width > width) - under_width = width - visited_width; - waste_area += under_width * (min_y - node->y); - visited_width += under_width; - } - node = node->next; - } - - *pwaste = waste_area; - return min_y; -} - -typedef struct -{ - int x,y; - stbrp_node **prev_link; -} stbrp__findresult; - -static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context *c, int width, int height) -{ - int best_waste = (1<<30), best_x, best_y = (1 << 30); - stbrp__findresult fr; - stbrp_node **prev, *node, *tail, **best = NULL; - - // align to multiple of c->align - width = (width + c->align - 1); - width -= width % c->align; - STBRP_ASSERT(width % c->align == 0); - - // if it can't possibly fit, bail immediately - if (width > c->width || height > c->height) { - fr.prev_link = NULL; - fr.x = fr.y = 0; - return fr; - } - - node = c->active_head; - prev = &c->active_head; - while (node->x + width <= c->width) { - int y,waste; - y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); - if (c->heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight) { // actually just want to test BL - // bottom left - if (y < best_y) { - best_y = y; - best = prev; - } - } else { - // best-fit - if (y + height <= c->height) { - // can only use it if it first vertically - if (y < best_y || (y == best_y && waste < best_waste)) { - best_y = y; - best_waste = waste; - best = prev; - } - } - } - prev = &node->next; - node = node->next; - } - - best_x = (best == NULL) ? 0 : (*best)->x; - - // if doing best-fit (BF), we also have to try aligning right edge to each node position - // - // e.g, if fitting - // - // ____________________ - // |____________________| - // - // into - // - // | | - // | ____________| - // |____________| - // - // then right-aligned reduces waste, but bottom-left BL is always chooses left-aligned - // - // This makes BF take about 2x the time - - if (c->heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight) { - tail = c->active_head; - node = c->active_head; - prev = &c->active_head; - // find first node that's admissible - while (tail->x < width) - tail = tail->next; - while (tail) { - int xpos = tail->x - width; - int y,waste; - STBRP_ASSERT(xpos >= 0); - // find the left position that matches this - while (node->next->x <= xpos) { - prev = &node->next; - node = node->next; - } - STBRP_ASSERT(node->next->x > xpos && node->x <= xpos); - y = stbrp__skyline_find_min_y(c, node, xpos, width, &waste); - if (y + height <= c->height) { - if (y <= best_y) { - if (y < best_y || waste < best_waste || (waste==best_waste && xpos < best_x)) { - best_x = xpos; - STBRP_ASSERT(y <= best_y); - best_y = y; - best_waste = waste; - best = prev; - } - } - } - tail = tail->next; - } - } - - fr.prev_link = best; - fr.x = best_x; - fr.y = best_y; - return fr; -} - -static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, int width, int height) -{ - // find best position according to heuristic - stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); - stbrp_node *node, *cur; - - // bail if: - // 1. it failed - // 2. the best node doesn't fit (we don't always check this) - // 3. we're out of memory - if (res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { - res.prev_link = NULL; - return res; - } - - // on success, create new node - node = context->free_head; - node->x = (stbrp_coord) res.x; - node->y = (stbrp_coord) (res.y + height); - - context->free_head = node->next; - - // insert the new node into the right starting point, and - // let 'cur' point to the remaining nodes needing to be - // stiched back in - - cur = *res.prev_link; - if (cur->x < res.x) { - // preserve the existing one, so start testing with the next one - stbrp_node *next = cur->next; - cur->next = node; - cur = next; - } else { - *res.prev_link = node; - } - - // from here, traverse cur and free the nodes, until we get to one - // that shouldn't be freed - while (cur->next && cur->next->x <= res.x + width) { - stbrp_node *next = cur->next; - // move the current node to the free list - cur->next = context->free_head; - context->free_head = cur; - cur = next; - } - - // stitch the list back in - node->next = cur; - - if (cur->x < res.x + width) - cur->x = (stbrp_coord) (res.x + width); - -#ifdef _DEBUG - cur = context->active_head; - while (cur->x < context->width) { - STBRP_ASSERT(cur->x < cur->next->x); - cur = cur->next; - } - STBRP_ASSERT(cur->next == NULL); - - { - int count=0; - cur = context->active_head; - while (cur) { - cur = cur->next; - ++count; - } - cur = context->free_head; - while (cur) { - cur = cur->next; - ++count; - } - STBRP_ASSERT(count == context->num_nodes+2); - } -#endif - - return res; -} - -// [DEAR IMGUI] Added STBRP__CDECL -static int STBRP__CDECL rect_height_compare(const void *a, const void *b) -{ - const stbrp_rect *p = (const stbrp_rect *) a; - const stbrp_rect *q = (const stbrp_rect *) b; - if (p->h > q->h) - return -1; - if (p->h < q->h) - return 1; - return (p->w > q->w) ? -1 : (p->w < q->w); -} - -// [DEAR IMGUI] Added STBRP__CDECL -static int STBRP__CDECL rect_original_order(const void *a, const void *b) -{ - const stbrp_rect *p = (const stbrp_rect *) a; - const stbrp_rect *q = (const stbrp_rect *) b; - return (p->was_packed < q->was_packed) ? -1 : (p->was_packed > q->was_packed); -} - -#ifdef STBRP_LARGE_RECTS -#define STBRP__MAXVAL 0xffffffff -#else -#define STBRP__MAXVAL 0xffff -#endif - -STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int num_rects) -{ - int i, all_rects_packed = 1; - - // we use the 'was_packed' field internally to allow sorting/unsorting - for (i=0; i < num_rects; ++i) { - rects[i].was_packed = i; - } - - // sort according to heuristic - STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); - - for (i=0; i < num_rects; ++i) { - if (rects[i].w == 0 || rects[i].h == 0) { - rects[i].x = rects[i].y = 0; // empty rect needs no space - } else { - stbrp__findresult fr = stbrp__skyline_pack_rectangle(context, rects[i].w, rects[i].h); - if (fr.prev_link) { - rects[i].x = (stbrp_coord) fr.x; - rects[i].y = (stbrp_coord) fr.y; - } else { - rects[i].x = rects[i].y = STBRP__MAXVAL; - } - } - } - - // unsort - STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_original_order); - - // set was_packed flags and all_rects_packed status - for (i=0; i < num_rects; ++i) { - rects[i].was_packed = !(rects[i].x == STBRP__MAXVAL && rects[i].y == STBRP__MAXVAL); - if (!rects[i].was_packed) - all_rects_packed = 0; - } - - // return the all_rects_packed status - return all_rects_packed; -} -#endif - -/* ------------------------------------------------------------------------------- -This software is available under 2 licenses -- choose whichever you prefer. ------------------------------------------------------------------------------- -ALTERNATIVE A - MIT License -Copyright (c) 2017 Sean Barrett -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is 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 Software. -THE SOFTWARE IS 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. ------------------------------------------------------------------------------- -ALTERNATIVE B - Public Domain (www.unlicense.org) -This is free and unencumbered software released into the public domain. -Anyone is free to copy, modify, publish, use, compile, sell, or distribute this -software, either in source code form or as a compiled binary, for any purpose, -commercial or non-commercial, and by any means. -In jurisdictions that recognize copyright laws, the author or authors of this -software dedicate any and all copyright interest in the software to the public -domain. We make this dedication for the benefit of the public at large and to -the detriment of our heirs and successors. We intend this dedication to be an -overt act of relinquishment in perpetuity of all present and future rights to -this software under copyright law. -THE SOFTWARE IS 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 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------- -*/ diff --git a/third_party/imgui/imstb_textedit.h b/third_party/imgui/imstb_textedit.h deleted file mode 100644 index 76446709..00000000 --- a/third_party/imgui/imstb_textedit.h +++ /dev/null @@ -1,1447 +0,0 @@ -// [DEAR IMGUI] -// This is a slightly modified version of stb_textedit.h 1.13. -// Those changes would need to be pushed into nothings/stb: -// - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321) -// Grep for [DEAR IMGUI] to find the changes. - -// stb_textedit.h - v1.13 - public domain - Sean Barrett -// Development of this library was sponsored by RAD Game Tools -// -// This C header file implements the guts of a multi-line text-editing -// widget; you implement display, word-wrapping, and low-level string -// insertion/deletion, and stb_textedit will map user inputs into -// insertions & deletions, plus updates to the cursor position, -// selection state, and undo state. -// -// It is intended for use in games and other systems that need to build -// their own custom widgets and which do not have heavy text-editing -// requirements (this library is not recommended for use for editing large -// texts, as its performance does not scale and it has limited undo). -// -// Non-trivial behaviors are modelled after Windows text controls. -// -// -// LICENSE -// -// See end of file for license information. -// -// -// DEPENDENCIES -// -// Uses the C runtime function 'memmove', which you can override -// by defining STB_TEXTEDIT_memmove before the implementation. -// Uses no other functions. Performs no runtime allocations. -// -// -// VERSION HISTORY -// -// 1.13 (2019-02-07) fix bug in undo size management -// 1.12 (2018-01-29) user can change STB_TEXTEDIT_KEYTYPE, fix redo to avoid crash -// 1.11 (2017-03-03) fix HOME on last line, dragging off single-line textfield -// 1.10 (2016-10-25) supress warnings about casting away const with -Wcast-qual -// 1.9 (2016-08-27) customizable move-by-word -// 1.8 (2016-04-02) better keyboard handling when mouse button is down -// 1.7 (2015-09-13) change y range handling in case baseline is non-0 -// 1.6 (2015-04-15) allow STB_TEXTEDIT_memmove -// 1.5 (2014-09-10) add support for secondary keys for OS X -// 1.4 (2014-08-17) fix signed/unsigned warnings -// 1.3 (2014-06-19) fix mouse clicking to round to nearest char boundary -// 1.2 (2014-05-27) fix some RAD types that had crept into the new code -// 1.1 (2013-12-15) move-by-word (requires STB_TEXTEDIT_IS_SPACE ) -// 1.0 (2012-07-26) improve documentation, initial public release -// 0.3 (2012-02-24) bugfixes, single-line mode; insert mode -// 0.2 (2011-11-28) fixes to undo/redo -// 0.1 (2010-07-08) initial version -// -// ADDITIONAL CONTRIBUTORS -// -// Ulf Winklemann: move-by-word in 1.1 -// Fabian Giesen: secondary key inputs in 1.5 -// Martins Mozeiko: STB_TEXTEDIT_memmove in 1.6 -// -// Bugfixes: -// Scott Graham -// Daniel Keller -// Omar Cornut -// Dan Thompson -// -// USAGE -// -// This file behaves differently depending on what symbols you define -// before including it. -// -// -// Header-file mode: -// -// If you do not define STB_TEXTEDIT_IMPLEMENTATION before including this, -// it will operate in "header file" mode. In this mode, it declares a -// single public symbol, STB_TexteditState, which encapsulates the current -// state of a text widget (except for the string, which you will store -// separately). -// -// To compile in this mode, you must define STB_TEXTEDIT_CHARTYPE to a -// primitive type that defines a single character (e.g. char, wchar_t, etc). -// -// To save space or increase undo-ability, you can optionally define the -// following things that are used by the undo system: -// -// STB_TEXTEDIT_POSITIONTYPE small int type encoding a valid cursor position -// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow -// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer -// -// If you don't define these, they are set to permissive types and -// moderate sizes. The undo system does no memory allocations, so -// it grows STB_TexteditState by the worst-case storage which is (in bytes): -// -// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATE_COUNT -// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHAR_COUNT -// -// -// Implementation mode: -// -// If you define STB_TEXTEDIT_IMPLEMENTATION before including this, it -// will compile the implementation of the text edit widget, depending -// on a large number of symbols which must be defined before the include. -// -// The implementation is defined only as static functions. You will then -// need to provide your own APIs in the same file which will access the -// static functions. -// -// The basic concept is that you provide a "string" object which -// behaves like an array of characters. stb_textedit uses indices to -// refer to positions in the string, implicitly representing positions -// in the displayed textedit. This is true for both plain text and -// rich text; even with rich text stb_truetype interacts with your -// code as if there was an array of all the displayed characters. -// -// Symbols that must be the same in header-file and implementation mode: -// -// STB_TEXTEDIT_CHARTYPE the character type -// STB_TEXTEDIT_POSITIONTYPE small type that is a valid cursor position -// STB_TEXTEDIT_UNDOSTATECOUNT the number of undo states to allow -// STB_TEXTEDIT_UNDOCHARCOUNT the number of characters to store in the undo buffer -// -// Symbols you must define for implementation mode: -// -// STB_TEXTEDIT_STRING the type of object representing a string being edited, -// typically this is a wrapper object with other data you need -// -// STB_TEXTEDIT_STRINGLEN(obj) the length of the string (ideally O(1)) -// STB_TEXTEDIT_LAYOUTROW(&r,obj,n) returns the results of laying out a line of characters -// starting from character #n (see discussion below) -// STB_TEXTEDIT_GETWIDTH(obj,n,i) returns the pixel delta from the xpos of the i'th character -// to the xpos of the i+1'th char for a line of characters -// starting at character #n (i.e. accounts for kerning -// with previous char) -// STB_TEXTEDIT_KEYTOTEXT(k) maps a keyboard input to an insertable character -// (return type is int, -1 means not valid to insert) -// STB_TEXTEDIT_GETCHAR(obj,i) returns the i'th character of obj, 0-based -// STB_TEXTEDIT_NEWLINE the character returned by _GETCHAR() we recognize -// as manually wordwrapping for end-of-line positioning -// -// STB_TEXTEDIT_DELETECHARS(obj,i,n) delete n characters starting at i -// STB_TEXTEDIT_INSERTCHARS(obj,i,c*,n) insert n characters at i (pointed to by STB_TEXTEDIT_CHARTYPE*) -// -// STB_TEXTEDIT_K_SHIFT a power of two that is or'd in to a keyboard input to represent the shift key -// -// STB_TEXTEDIT_K_LEFT keyboard input to move cursor left -// STB_TEXTEDIT_K_RIGHT keyboard input to move cursor right -// STB_TEXTEDIT_K_UP keyboard input to move cursor up -// STB_TEXTEDIT_K_DOWN keyboard input to move cursor down -// STB_TEXTEDIT_K_PGUP keyboard input to move cursor up a page -// STB_TEXTEDIT_K_PGDOWN keyboard input to move cursor down a page -// STB_TEXTEDIT_K_LINESTART keyboard input to move cursor to start of line // e.g. HOME -// STB_TEXTEDIT_K_LINEEND keyboard input to move cursor to end of line // e.g. END -// STB_TEXTEDIT_K_TEXTSTART keyboard input to move cursor to start of text // e.g. ctrl-HOME -// STB_TEXTEDIT_K_TEXTEND keyboard input to move cursor to end of text // e.g. ctrl-END -// STB_TEXTEDIT_K_DELETE keyboard input to delete selection or character under cursor -// STB_TEXTEDIT_K_BACKSPACE keyboard input to delete selection or character left of cursor -// STB_TEXTEDIT_K_UNDO keyboard input to perform undo -// STB_TEXTEDIT_K_REDO keyboard input to perform redo -// -// Optional: -// STB_TEXTEDIT_K_INSERT keyboard input to toggle insert mode -// STB_TEXTEDIT_IS_SPACE(ch) true if character is whitespace (e.g. 'isspace'), -// required for default WORDLEFT/WORDRIGHT handlers -// STB_TEXTEDIT_MOVEWORDLEFT(obj,i) custom handler for WORDLEFT, returns index to move cursor to -// STB_TEXTEDIT_MOVEWORDRIGHT(obj,i) custom handler for WORDRIGHT, returns index to move cursor to -// STB_TEXTEDIT_K_WORDLEFT keyboard input to move cursor left one word // e.g. ctrl-LEFT -// STB_TEXTEDIT_K_WORDRIGHT keyboard input to move cursor right one word // e.g. ctrl-RIGHT -// STB_TEXTEDIT_K_LINESTART2 secondary keyboard input to move cursor to start of line -// STB_TEXTEDIT_K_LINEEND2 secondary keyboard input to move cursor to end of line -// STB_TEXTEDIT_K_TEXTSTART2 secondary keyboard input to move cursor to start of text -// STB_TEXTEDIT_K_TEXTEND2 secondary keyboard input to move cursor to end of text -// -// Keyboard input must be encoded as a single integer value; e.g. a character code -// and some bitflags that represent shift states. to simplify the interface, SHIFT must -// be a bitflag, so we can test the shifted state of cursor movements to allow selection, -// i.e. (STB_TEXTEDIT_K_RIGHT|STB_TEXTEDIT_K_SHIFT) should be shifted right-arrow. -// -// You can encode other things, such as CONTROL or ALT, in additional bits, and -// then test for their presence in e.g. STB_TEXTEDIT_K_WORDLEFT. For example, -// my Windows implementations add an additional CONTROL bit, and an additional KEYDOWN -// bit. Then all of the STB_TEXTEDIT_K_ values bitwise-or in the KEYDOWN bit, -// and I pass both WM_KEYDOWN and WM_CHAR events to the "key" function in the -// API below. The control keys will only match WM_KEYDOWN events because of the -// keydown bit I add, and STB_TEXTEDIT_KEYTOTEXT only tests for the KEYDOWN -// bit so it only decodes WM_CHAR events. -// -// STB_TEXTEDIT_LAYOUTROW returns information about the shape of one displayed -// row of characters assuming they start on the i'th character--the width and -// the height and the number of characters consumed. This allows this library -// to traverse the entire layout incrementally. You need to compute word-wrapping -// here. -// -// Each textfield keeps its own insert mode state, which is not how normal -// applications work. To keep an app-wide insert mode, update/copy the -// "insert_mode" field of STB_TexteditState before/after calling API functions. -// -// API -// -// void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) -// -// void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) -// void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) -// int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) -// int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) -// void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXEDIT_KEYTYPE key) -// -// Each of these functions potentially updates the string and updates the -// state. -// -// initialize_state: -// set the textedit state to a known good default state when initially -// constructing the textedit. -// -// click: -// call this with the mouse x,y on a mouse down; it will update the cursor -// and reset the selection start/end to the cursor point. the x,y must -// be relative to the text widget, with (0,0) being the top left. -// -// drag: -// call this with the mouse x,y on a mouse drag/up; it will update the -// cursor and the selection end point -// -// cut: -// call this to delete the current selection; returns true if there was -// one. you should FIRST copy the current selection to the system paste buffer. -// (To copy, just copy the current selection out of the string yourself.) -// -// paste: -// call this to paste text at the current cursor point or over the current -// selection if there is one. -// -// key: -// call this for keyboard inputs sent to the textfield. you can use it -// for "key down" events or for "translated" key events. if you need to -// do both (as in Win32), or distinguish Unicode characters from control -// inputs, set a high bit to distinguish the two; then you can define the -// various definitions like STB_TEXTEDIT_K_LEFT have the is-key-event bit -// set, and make STB_TEXTEDIT_KEYTOCHAR check that the is-key-event bit is -// clear. STB_TEXTEDIT_KEYTYPE defaults to int, but you can #define it to -// anything other type you wante before including. -// -// -// When rendering, you can read the cursor position and selection state from -// the STB_TexteditState. -// -// -// Notes: -// -// This is designed to be usable in IMGUI, so it allows for the possibility of -// running in an IMGUI that has NOT cached the multi-line layout. For this -// reason, it provides an interface that is compatible with computing the -// layout incrementally--we try to make sure we make as few passes through -// as possible. (For example, to locate the mouse pointer in the text, we -// could define functions that return the X and Y positions of characters -// and binary search Y and then X, but if we're doing dynamic layout this -// will run the layout algorithm many times, so instead we manually search -// forward in one pass. Similar logic applies to e.g. up-arrow and -// down-arrow movement.) -// -// If it's run in a widget that *has* cached the layout, then this is less -// efficient, but it's not horrible on modern computers. But you wouldn't -// want to edit million-line files with it. - - -//////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////// -//// -//// Header-file mode -//// -//// - -#ifndef INCLUDE_STB_TEXTEDIT_H -#define INCLUDE_STB_TEXTEDIT_H - -//////////////////////////////////////////////////////////////////////// -// -// STB_TexteditState -// -// Definition of STB_TexteditState which you should store -// per-textfield; it includes cursor position, selection state, -// and undo state. -// - -#ifndef STB_TEXTEDIT_UNDOSTATECOUNT -#define STB_TEXTEDIT_UNDOSTATECOUNT 99 -#endif -#ifndef STB_TEXTEDIT_UNDOCHARCOUNT -#define STB_TEXTEDIT_UNDOCHARCOUNT 999 -#endif -#ifndef STB_TEXTEDIT_CHARTYPE -#define STB_TEXTEDIT_CHARTYPE int -#endif -#ifndef STB_TEXTEDIT_POSITIONTYPE -#define STB_TEXTEDIT_POSITIONTYPE int -#endif - -typedef struct -{ - // private data - STB_TEXTEDIT_POSITIONTYPE where; - STB_TEXTEDIT_POSITIONTYPE insert_length; - STB_TEXTEDIT_POSITIONTYPE delete_length; - int char_storage; -} StbUndoRecord; - -typedef struct -{ - // private data - StbUndoRecord undo_rec [STB_TEXTEDIT_UNDOSTATECOUNT]; - STB_TEXTEDIT_CHARTYPE undo_char[STB_TEXTEDIT_UNDOCHARCOUNT]; - short undo_point, redo_point; - int undo_char_point, redo_char_point; -} StbUndoState; - -typedef struct -{ - ///////////////////// - // - // public data - // - - int cursor; - // position of the text cursor within the string - - int select_start; // selection start point - int select_end; - // selection start and end point in characters; if equal, no selection. - // note that start may be less than or greater than end (e.g. when - // dragging the mouse, start is where the initial click was, and you - // can drag in either direction) - - unsigned char insert_mode; - // each textfield keeps its own insert mode state. to keep an app-wide - // insert mode, copy this value in/out of the app state - - int row_count_per_page; - // page size in number of row. - // this value MUST be set to >0 for pageup or pagedown in multilines documents. - - ///////////////////// - // - // private data - // - unsigned char cursor_at_end_of_line; // not implemented yet - unsigned char initialized; - unsigned char has_preferred_x; - unsigned char single_line; - unsigned char padding1, padding2, padding3; - float preferred_x; // this determines where the cursor up/down tries to seek to along x - StbUndoState undostate; -} STB_TexteditState; - - -//////////////////////////////////////////////////////////////////////// -// -// StbTexteditRow -// -// Result of layout query, used by stb_textedit to determine where -// the text in each row is. - -// result of layout query -typedef struct -{ - float x0,x1; // starting x location, end x location (allows for align=right, etc) - float baseline_y_delta; // position of baseline relative to previous row's baseline - float ymin,ymax; // height of row above and below baseline - int num_chars; -} StbTexteditRow; -#endif //INCLUDE_STB_TEXTEDIT_H - - -//////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////// -//// -//// Implementation mode -//// -//// - - -// implementation isn't include-guarded, since it might have indirectly -// included just the "header" portion -#ifdef STB_TEXTEDIT_IMPLEMENTATION - -#ifndef STB_TEXTEDIT_memmove -#include -#define STB_TEXTEDIT_memmove memmove -#endif - - -///////////////////////////////////////////////////////////////////////////// -// -// Mouse input handling -// - -// traverse the layout to locate the nearest character to a display position -static int stb_text_locate_coord(STB_TEXTEDIT_STRING *str, float x, float y) -{ - StbTexteditRow r; - int n = STB_TEXTEDIT_STRINGLEN(str); - float base_y = 0, prev_x; - int i=0, k; - - r.x0 = r.x1 = 0; - r.ymin = r.ymax = 0; - r.num_chars = 0; - - // search rows to find one that straddles 'y' - while (i < n) { - STB_TEXTEDIT_LAYOUTROW(&r, str, i); - if (r.num_chars <= 0) - return n; - - if (i==0 && y < base_y + r.ymin) - return 0; - - if (y < base_y + r.ymax) - break; - - i += r.num_chars; - base_y += r.baseline_y_delta; - } - - // below all text, return 'after' last character - if (i >= n) - return n; - - // check if it's before the beginning of the line - if (x < r.x0) - return i; - - // check if it's before the end of the line - if (x < r.x1) { - // search characters in row for one that straddles 'x' - prev_x = r.x0; - for (k=0; k < r.num_chars; ++k) { - float w = STB_TEXTEDIT_GETWIDTH(str, i, k); - if (x < prev_x+w) { - if (x < prev_x+w/2) - return k+i; - else - return k+i+1; - } - prev_x += w; - } - // shouldn't happen, but if it does, fall through to end-of-line case - } - - // if the last character is a newline, return that. otherwise return 'after' the last character - if (STB_TEXTEDIT_GETCHAR(str, i+r.num_chars-1) == STB_TEXTEDIT_NEWLINE) - return i+r.num_chars-1; - else - return i+r.num_chars; -} - -// API click: on mouse down, move the cursor to the clicked location, and reset the selection -static void stb_textedit_click(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) -{ - // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse - // goes off the top or bottom of the text - if( state->single_line ) - { - StbTexteditRow r; - STB_TEXTEDIT_LAYOUTROW(&r, str, 0); - y = r.ymin; - } - - state->cursor = stb_text_locate_coord(str, x, y); - state->select_start = state->cursor; - state->select_end = state->cursor; - state->has_preferred_x = 0; -} - -// API drag: on mouse drag, move the cursor and selection endpoint to the clicked location -static void stb_textedit_drag(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y) -{ - int p = 0; - - // In single-line mode, just always make y = 0. This lets the drag keep working if the mouse - // goes off the top or bottom of the text - if( state->single_line ) - { - StbTexteditRow r; - STB_TEXTEDIT_LAYOUTROW(&r, str, 0); - y = r.ymin; - } - - if (state->select_start == state->select_end) - state->select_start = state->cursor; - - p = stb_text_locate_coord(str, x, y); - state->cursor = state->select_end = p; -} - -///////////////////////////////////////////////////////////////////////////// -// -// Keyboard input handling -// - -// forward declarations -static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); -static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state); -static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length); -static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length); -static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length); - -typedef struct -{ - float x,y; // position of n'th character - float height; // height of line - int first_char, length; // first char of row, and length - int prev_first; // first char of previous row -} StbFindState; - -// find the x/y location of a character, and remember info about the previous row in -// case we get a move-up event (for page up, we'll have to rescan) -static void stb_textedit_find_charpos(StbFindState *find, STB_TEXTEDIT_STRING *str, int n, int single_line) -{ - StbTexteditRow r; - int prev_start = 0; - int z = STB_TEXTEDIT_STRINGLEN(str); - int i=0, first; - - if (n == z) { - // if it's at the end, then find the last line -- simpler than trying to - // explicitly handle this case in the regular code - if (single_line) { - STB_TEXTEDIT_LAYOUTROW(&r, str, 0); - find->y = 0; - find->first_char = 0; - find->length = z; - find->height = r.ymax - r.ymin; - find->x = r.x1; - } else { - find->y = 0; - find->x = 0; - find->height = 1; - while (i < z) { - STB_TEXTEDIT_LAYOUTROW(&r, str, i); - prev_start = i; - i += r.num_chars; - } - find->first_char = i; - find->length = 0; - find->prev_first = prev_start; - } - return; - } - - // search rows to find the one that straddles character n - find->y = 0; - - for(;;) { - STB_TEXTEDIT_LAYOUTROW(&r, str, i); - if (n < i + r.num_chars) - break; - prev_start = i; - i += r.num_chars; - find->y += r.baseline_y_delta; - } - - find->first_char = first = i; - find->length = r.num_chars; - find->height = r.ymax - r.ymin; - find->prev_first = prev_start; - - // now scan to find xpos - find->x = r.x0; - for (i=0; first+i < n; ++i) - find->x += STB_TEXTEDIT_GETWIDTH(str, first, i); -} - -#define STB_TEXT_HAS_SELECTION(s) ((s)->select_start != (s)->select_end) - -// make the selection/cursor state valid if client altered the string -static void stb_textedit_clamp(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) -{ - int n = STB_TEXTEDIT_STRINGLEN(str); - if (STB_TEXT_HAS_SELECTION(state)) { - if (state->select_start > n) state->select_start = n; - if (state->select_end > n) state->select_end = n; - // if clamping forced them to be equal, move the cursor to match - if (state->select_start == state->select_end) - state->cursor = state->select_start; - } - if (state->cursor > n) state->cursor = n; -} - -// delete characters while updating undo -static void stb_textedit_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len) -{ - stb_text_makeundo_delete(str, state, where, len); - STB_TEXTEDIT_DELETECHARS(str, where, len); - state->has_preferred_x = 0; -} - -// delete the section -static void stb_textedit_delete_selection(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) -{ - stb_textedit_clamp(str, state); - if (STB_TEXT_HAS_SELECTION(state)) { - if (state->select_start < state->select_end) { - stb_textedit_delete(str, state, state->select_start, state->select_end - state->select_start); - state->select_end = state->cursor = state->select_start; - } else { - stb_textedit_delete(str, state, state->select_end, state->select_start - state->select_end); - state->select_start = state->cursor = state->select_end; - } - state->has_preferred_x = 0; - } -} - -// canoncialize the selection so start <= end -static void stb_textedit_sortselection(STB_TexteditState *state) -{ - if (state->select_end < state->select_start) { - int temp = state->select_end; - state->select_end = state->select_start; - state->select_start = temp; - } -} - -// move cursor to first character of selection -static void stb_textedit_move_to_first(STB_TexteditState *state) -{ - if (STB_TEXT_HAS_SELECTION(state)) { - stb_textedit_sortselection(state); - state->cursor = state->select_start; - state->select_end = state->select_start; - state->has_preferred_x = 0; - } -} - -// move cursor to last character of selection -static void stb_textedit_move_to_last(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) -{ - if (STB_TEXT_HAS_SELECTION(state)) { - stb_textedit_sortselection(state); - stb_textedit_clamp(str, state); - state->cursor = state->select_end; - state->select_start = state->select_end; - state->has_preferred_x = 0; - } -} - -#ifdef STB_TEXTEDIT_IS_SPACE -static int is_word_boundary( STB_TEXTEDIT_STRING *str, int idx ) -{ - return idx > 0 ? (STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str,idx-1) ) && !STB_TEXTEDIT_IS_SPACE( STB_TEXTEDIT_GETCHAR(str, idx) ) ) : 1; -} - -#ifndef STB_TEXTEDIT_MOVEWORDLEFT -static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c ) -{ - --c; // always move at least one character - while( c >= 0 && !is_word_boundary( str, c ) ) - --c; - - if( c < 0 ) - c = 0; - - return c; -} -#define STB_TEXTEDIT_MOVEWORDLEFT stb_textedit_move_to_word_previous -#endif - -#ifndef STB_TEXTEDIT_MOVEWORDRIGHT -static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c ) -{ - const int len = STB_TEXTEDIT_STRINGLEN(str); - ++c; // always move at least one character - while( c < len && !is_word_boundary( str, c ) ) - ++c; - - if( c > len ) - c = len; - - return c; -} -#define STB_TEXTEDIT_MOVEWORDRIGHT stb_textedit_move_to_word_next -#endif - -#endif - -// update selection and cursor to match each other -static void stb_textedit_prep_selection_at_cursor(STB_TexteditState *state) -{ - if (!STB_TEXT_HAS_SELECTION(state)) - state->select_start = state->select_end = state->cursor; - else - state->cursor = state->select_end; -} - -// API cut: delete selection -static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) -{ - if (STB_TEXT_HAS_SELECTION(state)) { - stb_textedit_delete_selection(str,state); // implicitly clamps - state->has_preferred_x = 0; - return 1; - } - return 0; -} - -// API paste: replace existing selection with passed-in text -static int stb_textedit_paste_internal(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE *text, int len) -{ - // if there's a selection, the paste should delete it - stb_textedit_clamp(str, state); - stb_textedit_delete_selection(str,state); - // try to insert the characters - if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, text, len)) { - stb_text_makeundo_insert(state, state->cursor, len); - state->cursor += len; - state->has_preferred_x = 0; - return 1; - } - // remove the undo since we didn't actually insert the characters - if (state->undostate.undo_point) - --state->undostate.undo_point; - return 0; -} - -#ifndef STB_TEXTEDIT_KEYTYPE -#define STB_TEXTEDIT_KEYTYPE int -#endif - -// API key: process a keyboard input -static void stb_textedit_key(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key) -{ -retry: - switch (key) { - default: { - int c = STB_TEXTEDIT_KEYTOTEXT(key); - if (c > 0) { - STB_TEXTEDIT_CHARTYPE ch = (STB_TEXTEDIT_CHARTYPE) c; - - // can't add newline in single-line mode - if (c == '\n' && state->single_line) - break; - - if (state->insert_mode && !STB_TEXT_HAS_SELECTION(state) && state->cursor < STB_TEXTEDIT_STRINGLEN(str)) { - stb_text_makeundo_replace(str, state, state->cursor, 1, 1); - STB_TEXTEDIT_DELETECHARS(str, state->cursor, 1); - if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { - ++state->cursor; - state->has_preferred_x = 0; - } - } else { - stb_textedit_delete_selection(str,state); // implicitly clamps - if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) { - stb_text_makeundo_insert(state, state->cursor, 1); - ++state->cursor; - state->has_preferred_x = 0; - } - } - } - break; - } - -#ifdef STB_TEXTEDIT_K_INSERT - case STB_TEXTEDIT_K_INSERT: - state->insert_mode = !state->insert_mode; - break; -#endif - - case STB_TEXTEDIT_K_UNDO: - stb_text_undo(str, state); - state->has_preferred_x = 0; - break; - - case STB_TEXTEDIT_K_REDO: - stb_text_redo(str, state); - state->has_preferred_x = 0; - break; - - case STB_TEXTEDIT_K_LEFT: - // if currently there's a selection, move cursor to start of selection - if (STB_TEXT_HAS_SELECTION(state)) - stb_textedit_move_to_first(state); - else - if (state->cursor > 0) - --state->cursor; - state->has_preferred_x = 0; - break; - - case STB_TEXTEDIT_K_RIGHT: - // if currently there's a selection, move cursor to end of selection - if (STB_TEXT_HAS_SELECTION(state)) - stb_textedit_move_to_last(str, state); - else - ++state->cursor; - stb_textedit_clamp(str, state); - state->has_preferred_x = 0; - break; - - case STB_TEXTEDIT_K_LEFT | STB_TEXTEDIT_K_SHIFT: - stb_textedit_clamp(str, state); - stb_textedit_prep_selection_at_cursor(state); - // move selection left - if (state->select_end > 0) - --state->select_end; - state->cursor = state->select_end; - state->has_preferred_x = 0; - break; - -#ifdef STB_TEXTEDIT_MOVEWORDLEFT - case STB_TEXTEDIT_K_WORDLEFT: - if (STB_TEXT_HAS_SELECTION(state)) - stb_textedit_move_to_first(state); - else { - state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); - stb_textedit_clamp( str, state ); - } - break; - - case STB_TEXTEDIT_K_WORDLEFT | STB_TEXTEDIT_K_SHIFT: - if( !STB_TEXT_HAS_SELECTION( state ) ) - stb_textedit_prep_selection_at_cursor(state); - - state->cursor = STB_TEXTEDIT_MOVEWORDLEFT(str, state->cursor); - state->select_end = state->cursor; - - stb_textedit_clamp( str, state ); - break; -#endif - -#ifdef STB_TEXTEDIT_MOVEWORDRIGHT - case STB_TEXTEDIT_K_WORDRIGHT: - if (STB_TEXT_HAS_SELECTION(state)) - stb_textedit_move_to_last(str, state); - else { - state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); - stb_textedit_clamp( str, state ); - } - break; - - case STB_TEXTEDIT_K_WORDRIGHT | STB_TEXTEDIT_K_SHIFT: - if( !STB_TEXT_HAS_SELECTION( state ) ) - stb_textedit_prep_selection_at_cursor(state); - - state->cursor = STB_TEXTEDIT_MOVEWORDRIGHT(str, state->cursor); - state->select_end = state->cursor; - - stb_textedit_clamp( str, state ); - break; -#endif - - case STB_TEXTEDIT_K_RIGHT | STB_TEXTEDIT_K_SHIFT: - stb_textedit_prep_selection_at_cursor(state); - // move selection right - ++state->select_end; - stb_textedit_clamp(str, state); - state->cursor = state->select_end; - state->has_preferred_x = 0; - break; - - case STB_TEXTEDIT_K_DOWN: - case STB_TEXTEDIT_K_DOWN | STB_TEXTEDIT_K_SHIFT: - case STB_TEXTEDIT_K_PGDOWN: - case STB_TEXTEDIT_K_PGDOWN | STB_TEXTEDIT_K_SHIFT: { - StbFindState find; - StbTexteditRow row; - int i, j, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; - int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGDOWN; - int row_count = is_page ? state->row_count_per_page : 1; - - if (!is_page && state->single_line) { - // on windows, up&down in single-line behave like left&right - key = STB_TEXTEDIT_K_RIGHT | (key & STB_TEXTEDIT_K_SHIFT); - goto retry; - } - - if (sel) - stb_textedit_prep_selection_at_cursor(state); - else if (STB_TEXT_HAS_SELECTION(state)) - stb_textedit_move_to_last(str, state); - - // compute current position of cursor point - stb_textedit_clamp(str, state); - stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); - - for (j = 0; j < row_count; ++j) { - float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; - int start = find.first_char + find.length; - - if (find.length == 0) - break; - - // [DEAR IMGUI] - // going down while being on the last line shouldn't bring us to that line end - if (STB_TEXTEDIT_GETCHAR(str, find.first_char + find.length - 1) != STB_TEXTEDIT_NEWLINE) - break; - - // now find character position down a row - state->cursor = start; - STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); - x = row.x0; - for (i=0; i < row.num_chars; ++i) { - float dx = STB_TEXTEDIT_GETWIDTH(str, start, i); - #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE - if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) - break; - #endif - x += dx; - if (x > goal_x) - break; - ++state->cursor; - } - stb_textedit_clamp(str, state); - - state->has_preferred_x = 1; - state->preferred_x = goal_x; - - if (sel) - state->select_end = state->cursor; - - // go to next line - find.first_char = find.first_char + find.length; - find.length = row.num_chars; - } - break; - } - - case STB_TEXTEDIT_K_UP: - case STB_TEXTEDIT_K_UP | STB_TEXTEDIT_K_SHIFT: - case STB_TEXTEDIT_K_PGUP: - case STB_TEXTEDIT_K_PGUP | STB_TEXTEDIT_K_SHIFT: { - StbFindState find; - StbTexteditRow row; - int i, j, prev_scan, sel = (key & STB_TEXTEDIT_K_SHIFT) != 0; - int is_page = (key & ~STB_TEXTEDIT_K_SHIFT) == STB_TEXTEDIT_K_PGUP; - int row_count = is_page ? state->row_count_per_page : 1; - - if (!is_page && state->single_line) { - // on windows, up&down become left&right - key = STB_TEXTEDIT_K_LEFT | (key & STB_TEXTEDIT_K_SHIFT); - goto retry; - } - - if (sel) - stb_textedit_prep_selection_at_cursor(state); - else if (STB_TEXT_HAS_SELECTION(state)) - stb_textedit_move_to_first(state); - - // compute current position of cursor point - stb_textedit_clamp(str, state); - stb_textedit_find_charpos(&find, str, state->cursor, state->single_line); - - for (j = 0; j < row_count; ++j) { - float x, goal_x = state->has_preferred_x ? state->preferred_x : find.x; - - // can only go up if there's a previous row - if (find.prev_first == find.first_char) - break; - - // now find character position up a row - state->cursor = find.prev_first; - STB_TEXTEDIT_LAYOUTROW(&row, str, state->cursor); - x = row.x0; - for (i=0; i < row.num_chars; ++i) { - float dx = STB_TEXTEDIT_GETWIDTH(str, find.prev_first, i); - #ifdef STB_TEXTEDIT_GETWIDTH_NEWLINE - if (dx == STB_TEXTEDIT_GETWIDTH_NEWLINE) - break; - #endif - x += dx; - if (x > goal_x) - break; - ++state->cursor; - } - stb_textedit_clamp(str, state); - - state->has_preferred_x = 1; - state->preferred_x = goal_x; - - if (sel) - state->select_end = state->cursor; - - // go to previous line - // (we need to scan previous line the hard way. maybe we could expose this as a new API function?) - prev_scan = find.prev_first > 0 ? find.prev_first - 1 : 0; - while (prev_scan > 0 && STB_TEXTEDIT_GETCHAR(str, prev_scan - 1) != STB_TEXTEDIT_NEWLINE) - --prev_scan; - find.first_char = find.prev_first; - find.prev_first = prev_scan; - } - break; - } - - case STB_TEXTEDIT_K_DELETE: - case STB_TEXTEDIT_K_DELETE | STB_TEXTEDIT_K_SHIFT: - if (STB_TEXT_HAS_SELECTION(state)) - stb_textedit_delete_selection(str, state); - else { - int n = STB_TEXTEDIT_STRINGLEN(str); - if (state->cursor < n) - stb_textedit_delete(str, state, state->cursor, 1); - } - state->has_preferred_x = 0; - break; - - case STB_TEXTEDIT_K_BACKSPACE: - case STB_TEXTEDIT_K_BACKSPACE | STB_TEXTEDIT_K_SHIFT: - if (STB_TEXT_HAS_SELECTION(state)) - stb_textedit_delete_selection(str, state); - else { - stb_textedit_clamp(str, state); - if (state->cursor > 0) { - stb_textedit_delete(str, state, state->cursor-1, 1); - --state->cursor; - } - } - state->has_preferred_x = 0; - break; - -#ifdef STB_TEXTEDIT_K_TEXTSTART2 - case STB_TEXTEDIT_K_TEXTSTART2: -#endif - case STB_TEXTEDIT_K_TEXTSTART: - state->cursor = state->select_start = state->select_end = 0; - state->has_preferred_x = 0; - break; - -#ifdef STB_TEXTEDIT_K_TEXTEND2 - case STB_TEXTEDIT_K_TEXTEND2: -#endif - case STB_TEXTEDIT_K_TEXTEND: - state->cursor = STB_TEXTEDIT_STRINGLEN(str); - state->select_start = state->select_end = 0; - state->has_preferred_x = 0; - break; - -#ifdef STB_TEXTEDIT_K_TEXTSTART2 - case STB_TEXTEDIT_K_TEXTSTART2 | STB_TEXTEDIT_K_SHIFT: -#endif - case STB_TEXTEDIT_K_TEXTSTART | STB_TEXTEDIT_K_SHIFT: - stb_textedit_prep_selection_at_cursor(state); - state->cursor = state->select_end = 0; - state->has_preferred_x = 0; - break; - -#ifdef STB_TEXTEDIT_K_TEXTEND2 - case STB_TEXTEDIT_K_TEXTEND2 | STB_TEXTEDIT_K_SHIFT: -#endif - case STB_TEXTEDIT_K_TEXTEND | STB_TEXTEDIT_K_SHIFT: - stb_textedit_prep_selection_at_cursor(state); - state->cursor = state->select_end = STB_TEXTEDIT_STRINGLEN(str); - state->has_preferred_x = 0; - break; - - -#ifdef STB_TEXTEDIT_K_LINESTART2 - case STB_TEXTEDIT_K_LINESTART2: -#endif - case STB_TEXTEDIT_K_LINESTART: - stb_textedit_clamp(str, state); - stb_textedit_move_to_first(state); - if (state->single_line) - state->cursor = 0; - else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) - --state->cursor; - state->has_preferred_x = 0; - break; - -#ifdef STB_TEXTEDIT_K_LINEEND2 - case STB_TEXTEDIT_K_LINEEND2: -#endif - case STB_TEXTEDIT_K_LINEEND: { - int n = STB_TEXTEDIT_STRINGLEN(str); - stb_textedit_clamp(str, state); - stb_textedit_move_to_first(state); - if (state->single_line) - state->cursor = n; - else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) - ++state->cursor; - state->has_preferred_x = 0; - break; - } - -#ifdef STB_TEXTEDIT_K_LINESTART2 - case STB_TEXTEDIT_K_LINESTART2 | STB_TEXTEDIT_K_SHIFT: -#endif - case STB_TEXTEDIT_K_LINESTART | STB_TEXTEDIT_K_SHIFT: - stb_textedit_clamp(str, state); - stb_textedit_prep_selection_at_cursor(state); - if (state->single_line) - state->cursor = 0; - else while (state->cursor > 0 && STB_TEXTEDIT_GETCHAR(str, state->cursor-1) != STB_TEXTEDIT_NEWLINE) - --state->cursor; - state->select_end = state->cursor; - state->has_preferred_x = 0; - break; - -#ifdef STB_TEXTEDIT_K_LINEEND2 - case STB_TEXTEDIT_K_LINEEND2 | STB_TEXTEDIT_K_SHIFT: -#endif - case STB_TEXTEDIT_K_LINEEND | STB_TEXTEDIT_K_SHIFT: { - int n = STB_TEXTEDIT_STRINGLEN(str); - stb_textedit_clamp(str, state); - stb_textedit_prep_selection_at_cursor(state); - if (state->single_line) - state->cursor = n; - else while (state->cursor < n && STB_TEXTEDIT_GETCHAR(str, state->cursor) != STB_TEXTEDIT_NEWLINE) - ++state->cursor; - state->select_end = state->cursor; - state->has_preferred_x = 0; - break; - } - } -} - -///////////////////////////////////////////////////////////////////////////// -// -// Undo processing -// -// @OPTIMIZE: the undo/redo buffer should be circular - -static void stb_textedit_flush_redo(StbUndoState *state) -{ - state->redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; - state->redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; -} - -// discard the oldest entry in the undo list -static void stb_textedit_discard_undo(StbUndoState *state) -{ - if (state->undo_point > 0) { - // if the 0th undo state has characters, clean those up - if (state->undo_rec[0].char_storage >= 0) { - int n = state->undo_rec[0].insert_length, i; - // delete n characters from all other records - state->undo_char_point -= n; - STB_TEXTEDIT_memmove(state->undo_char, state->undo_char + n, (size_t) (state->undo_char_point*sizeof(STB_TEXTEDIT_CHARTYPE))); - for (i=0; i < state->undo_point; ++i) - if (state->undo_rec[i].char_storage >= 0) - state->undo_rec[i].char_storage -= n; // @OPTIMIZE: get rid of char_storage and infer it - } - --state->undo_point; - STB_TEXTEDIT_memmove(state->undo_rec, state->undo_rec+1, (size_t) (state->undo_point*sizeof(state->undo_rec[0]))); - } -} - -// discard the oldest entry in the redo list--it's bad if this -// ever happens, but because undo & redo have to store the actual -// characters in different cases, the redo character buffer can -// fill up even though the undo buffer didn't -static void stb_textedit_discard_redo(StbUndoState *state) -{ - int k = STB_TEXTEDIT_UNDOSTATECOUNT-1; - - if (state->redo_point <= k) { - // if the k'th undo state has characters, clean those up - if (state->undo_rec[k].char_storage >= 0) { - int n = state->undo_rec[k].insert_length, i; - // move the remaining redo character data to the end of the buffer - state->redo_char_point += n; - STB_TEXTEDIT_memmove(state->undo_char + state->redo_char_point, state->undo_char + state->redo_char_point-n, (size_t) ((STB_TEXTEDIT_UNDOCHARCOUNT - state->redo_char_point)*sizeof(STB_TEXTEDIT_CHARTYPE))); - // adjust the position of all the other records to account for above memmove - for (i=state->redo_point; i < k; ++i) - if (state->undo_rec[i].char_storage >= 0) - state->undo_rec[i].char_storage += n; - } - // now move all the redo records towards the end of the buffer; the first one is at 'redo_point' - // [DEAR IMGUI] - size_t move_size = (size_t)((STB_TEXTEDIT_UNDOSTATECOUNT - state->redo_point - 1) * sizeof(state->undo_rec[0])); - const char* buf_begin = (char*)state->undo_rec; (void)buf_begin; - const char* buf_end = (char*)state->undo_rec + sizeof(state->undo_rec); (void)buf_end; - IM_ASSERT(((char*)(state->undo_rec + state->redo_point)) >= buf_begin); - IM_ASSERT(((char*)(state->undo_rec + state->redo_point + 1) + move_size) <= buf_end); - STB_TEXTEDIT_memmove(state->undo_rec + state->redo_point+1, state->undo_rec + state->redo_point, move_size); - - // now move redo_point to point to the new one - ++state->redo_point; - } -} - -static StbUndoRecord *stb_text_create_undo_record(StbUndoState *state, int numchars) -{ - // any time we create a new undo record, we discard redo - stb_textedit_flush_redo(state); - - // if we have no free records, we have to make room, by sliding the - // existing records down - if (state->undo_point == STB_TEXTEDIT_UNDOSTATECOUNT) - stb_textedit_discard_undo(state); - - // if the characters to store won't possibly fit in the buffer, we can't undo - if (numchars > STB_TEXTEDIT_UNDOCHARCOUNT) { - state->undo_point = 0; - state->undo_char_point = 0; - return NULL; - } - - // if we don't have enough free characters in the buffer, we have to make room - while (state->undo_char_point + numchars > STB_TEXTEDIT_UNDOCHARCOUNT) - stb_textedit_discard_undo(state); - - return &state->undo_rec[state->undo_point++]; -} - -static STB_TEXTEDIT_CHARTYPE *stb_text_createundo(StbUndoState *state, int pos, int insert_len, int delete_len) -{ - StbUndoRecord *r = stb_text_create_undo_record(state, insert_len); - if (r == NULL) - return NULL; - - r->where = pos; - r->insert_length = (STB_TEXTEDIT_POSITIONTYPE) insert_len; - r->delete_length = (STB_TEXTEDIT_POSITIONTYPE) delete_len; - - if (insert_len == 0) { - r->char_storage = -1; - return NULL; - } else { - r->char_storage = state->undo_char_point; - state->undo_char_point += insert_len; - return &state->undo_char[r->char_storage]; - } -} - -static void stb_text_undo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) -{ - StbUndoState *s = &state->undostate; - StbUndoRecord u, *r; - if (s->undo_point == 0) - return; - - // we need to do two things: apply the undo record, and create a redo record - u = s->undo_rec[s->undo_point-1]; - r = &s->undo_rec[s->redo_point-1]; - r->char_storage = -1; - - r->insert_length = u.delete_length; - r->delete_length = u.insert_length; - r->where = u.where; - - if (u.delete_length) { - // if the undo record says to delete characters, then the redo record will - // need to re-insert the characters that get deleted, so we need to store - // them. - - // there are three cases: - // there's enough room to store the characters - // characters stored for *redoing* don't leave room for redo - // characters stored for *undoing* don't leave room for redo - // if the last is true, we have to bail - - if (s->undo_char_point + u.delete_length >= STB_TEXTEDIT_UNDOCHARCOUNT) { - // the undo records take up too much character space; there's no space to store the redo characters - r->insert_length = 0; - } else { - int i; - - // there's definitely room to store the characters eventually - while (s->undo_char_point + u.delete_length > s->redo_char_point) { - // should never happen: - if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) - return; - // there's currently not enough room, so discard a redo record - stb_textedit_discard_redo(s); - } - r = &s->undo_rec[s->redo_point-1]; - - r->char_storage = s->redo_char_point - u.delete_length; - s->redo_char_point = s->redo_char_point - u.delete_length; - - // now save the characters - for (i=0; i < u.delete_length; ++i) - s->undo_char[r->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u.where + i); - } - - // now we can carry out the deletion - STB_TEXTEDIT_DELETECHARS(str, u.where, u.delete_length); - } - - // check type of recorded action: - if (u.insert_length) { - // easy case: was a deletion, so we need to insert n characters - STB_TEXTEDIT_INSERTCHARS(str, u.where, &s->undo_char[u.char_storage], u.insert_length); - s->undo_char_point -= u.insert_length; - } - - state->cursor = u.where + u.insert_length; - - s->undo_point--; - s->redo_point--; -} - -static void stb_text_redo(STB_TEXTEDIT_STRING *str, STB_TexteditState *state) -{ - StbUndoState *s = &state->undostate; - StbUndoRecord *u, r; - if (s->redo_point == STB_TEXTEDIT_UNDOSTATECOUNT) - return; - - // we need to do two things: apply the redo record, and create an undo record - u = &s->undo_rec[s->undo_point]; - r = s->undo_rec[s->redo_point]; - - // we KNOW there must be room for the undo record, because the redo record - // was derived from an undo record - - u->delete_length = r.insert_length; - u->insert_length = r.delete_length; - u->where = r.where; - u->char_storage = -1; - - if (r.delete_length) { - // the redo record requires us to delete characters, so the undo record - // needs to store the characters - - if (s->undo_char_point + u->insert_length > s->redo_char_point) { - u->insert_length = 0; - u->delete_length = 0; - } else { - int i; - u->char_storage = s->undo_char_point; - s->undo_char_point = s->undo_char_point + u->insert_length; - - // now save the characters - for (i=0; i < u->insert_length; ++i) - s->undo_char[u->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u->where + i); - } - - STB_TEXTEDIT_DELETECHARS(str, r.where, r.delete_length); - } - - if (r.insert_length) { - // easy case: need to insert n characters - STB_TEXTEDIT_INSERTCHARS(str, r.where, &s->undo_char[r.char_storage], r.insert_length); - s->redo_char_point += r.insert_length; - } - - state->cursor = r.where + r.insert_length; - - s->undo_point++; - s->redo_point++; -} - -static void stb_text_makeundo_insert(STB_TexteditState *state, int where, int length) -{ - stb_text_createundo(&state->undostate, where, 0, length); -} - -static void stb_text_makeundo_delete(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length) -{ - int i; - STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, length, 0); - if (p) { - for (i=0; i < length; ++i) - p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); - } -} - -static void stb_text_makeundo_replace(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length) -{ - int i; - STB_TEXTEDIT_CHARTYPE *p = stb_text_createundo(&state->undostate, where, old_length, new_length); - if (p) { - for (i=0; i < old_length; ++i) - p[i] = STB_TEXTEDIT_GETCHAR(str, where+i); - } -} - -// reset the state to default -static void stb_textedit_clear_state(STB_TexteditState *state, int is_single_line) -{ - state->undostate.undo_point = 0; - state->undostate.undo_char_point = 0; - state->undostate.redo_point = STB_TEXTEDIT_UNDOSTATECOUNT; - state->undostate.redo_char_point = STB_TEXTEDIT_UNDOCHARCOUNT; - state->select_end = state->select_start = 0; - state->cursor = 0; - state->has_preferred_x = 0; - state->preferred_x = 0; - state->cursor_at_end_of_line = 0; - state->initialized = 1; - state->single_line = (unsigned char) is_single_line; - state->insert_mode = 0; - state->row_count_per_page = 0; -} - -// API initialize -static void stb_textedit_initialize_state(STB_TexteditState *state, int is_single_line) -{ - stb_textedit_clear_state(state, is_single_line); -} - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wcast-qual" -#endif - -static int stb_textedit_paste(STB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_CHARTYPE const *ctext, int len) -{ - return stb_textedit_paste_internal(str, state, (STB_TEXTEDIT_CHARTYPE *) ctext, len); -} - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif - -#endif//STB_TEXTEDIT_IMPLEMENTATION - -/* ------------------------------------------------------------------------------- -This software is available under 2 licenses -- choose whichever you prefer. ------------------------------------------------------------------------------- -ALTERNATIVE A - MIT License -Copyright (c) 2017 Sean Barrett -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is 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 Software. -THE SOFTWARE IS 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. ------------------------------------------------------------------------------- -ALTERNATIVE B - Public Domain (www.unlicense.org) -This is free and unencumbered software released into the public domain. -Anyone is free to copy, modify, publish, use, compile, sell, or distribute this -software, either in source code form or as a compiled binary, for any purpose, -commercial or non-commercial, and by any means. -In jurisdictions that recognize copyright laws, the author or authors of this -software dedicate any and all copyright interest in the software to the public -domain. We make this dedication for the benefit of the public at large and to -the detriment of our heirs and successors. We intend this dedication to be an -overt act of relinquishment in perpetuity of all present and future rights to -this software under copyright law. -THE SOFTWARE IS 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 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------- -*/ diff --git a/third_party/imgui/imstb_truetype.h b/third_party/imgui/imstb_truetype.h deleted file mode 100644 index fc815d74..00000000 --- a/third_party/imgui/imstb_truetype.h +++ /dev/null @@ -1,4903 +0,0 @@ -// [DEAR IMGUI] -// This is a slightly modified version of stb_truetype.h 1.20. -// Mostly fixing for compiler and static analyzer warnings. -// Grep for [DEAR IMGUI] to find the changes. - -// stb_truetype.h - v1.20 - public domain -// authored from 2009-2016 by Sean Barrett / RAD Game Tools -// -// This library processes TrueType files: -// parse files -// extract glyph metrics -// extract glyph shapes -// render glyphs to one-channel bitmaps with antialiasing (box filter) -// render glyphs to one-channel SDF bitmaps (signed-distance field/function) -// -// Todo: -// non-MS cmaps -// crashproof on bad data -// hinting? (no longer patented) -// cleartype-style AA? -// optimize: use simple memory allocator for intermediates -// optimize: build edge-list directly from curves -// optimize: rasterize directly from curves? -// -// ADDITIONAL CONTRIBUTORS -// -// Mikko Mononen: compound shape support, more cmap formats -// Tor Andersson: kerning, subpixel rendering -// Dougall Johnson: OpenType / Type 2 font handling -// Daniel Ribeiro Maciel: basic GPOS-based kerning -// -// Misc other: -// Ryan Gordon -// Simon Glass -// github:IntellectualKitty -// Imanol Celaya -// Daniel Ribeiro Maciel -// -// Bug/warning reports/fixes: -// "Zer" on mollyrocket Fabian "ryg" Giesen -// Cass Everitt Martins Mozeiko -// stoiko (Haemimont Games) Cap Petschulat -// Brian Hook Omar Cornut -// Walter van Niftrik github:aloucks -// David Gow Peter LaValle -// David Given Sergey Popov -// Ivan-Assen Ivanov Giumo X. Clanjor -// Anthony Pesch Higor Euripedes -// Johan Duparc Thomas Fields -// Hou Qiming Derek Vinyard -// Rob Loach Cort Stratton -// Kenney Phillis Jr. github:oyvindjam -// Brian Costabile github:vassvik -// -// VERSION HISTORY -// -// 1.20 (2019-02-07) PackFontRange skips missing codepoints; GetScaleFontVMetrics() -// 1.19 (2018-02-11) GPOS kerning, STBTT_fmod -// 1.18 (2018-01-29) add missing function -// 1.17 (2017-07-23) make more arguments const; doc fix -// 1.16 (2017-07-12) SDF support -// 1.15 (2017-03-03) make more arguments const -// 1.14 (2017-01-16) num-fonts-in-TTC function -// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts -// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual -// 1.11 (2016-04-02) fix unused-variable warning -// 1.10 (2016-04-02) user-defined fabs(); rare memory leak; remove duplicate typedef -// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use allocation userdata properly -// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges -// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; -// variant PackFontRanges to pack and render in separate phases; -// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); -// fixed an assert() bug in the new rasterizer -// replace assert() with STBTT_assert() in new rasterizer -// -// Full history can be found at the end of this file. -// -// LICENSE -// -// See end of file for license information. -// -// USAGE -// -// Include this file in whatever places need to refer to it. In ONE C/C++ -// file, write: -// #define STB_TRUETYPE_IMPLEMENTATION -// before the #include of this file. This expands out the actual -// implementation into that C/C++ file. -// -// To make the implementation private to the file that generates the implementation, -// #define STBTT_STATIC -// -// Simple 3D API (don't ship this, but it's fine for tools and quick start) -// stbtt_BakeFontBitmap() -- bake a font to a bitmap for use as texture -// stbtt_GetBakedQuad() -- compute quad to draw for a given char -// -// Improved 3D API (more shippable): -// #include "stb_rect_pack.h" -- optional, but you really want it -// stbtt_PackBegin() -// stbtt_PackSetOversampling() -- for improved quality on small fonts -// stbtt_PackFontRanges() -- pack and renders -// stbtt_PackEnd() -// stbtt_GetPackedQuad() -// -// "Load" a font file from a memory buffer (you have to keep the buffer loaded) -// stbtt_InitFont() -// stbtt_GetFontOffsetForIndex() -- indexing for TTC font collections -// stbtt_GetNumberOfFonts() -- number of fonts for TTC font collections -// -// Render a unicode codepoint to a bitmap -// stbtt_GetCodepointBitmap() -- allocates and returns a bitmap -// stbtt_MakeCodepointBitmap() -- renders into bitmap you provide -// stbtt_GetCodepointBitmapBox() -- how big the bitmap must be -// -// Character advance/positioning -// stbtt_GetCodepointHMetrics() -// stbtt_GetFontVMetrics() -// stbtt_GetFontVMetricsOS2() -// stbtt_GetCodepointKernAdvance() -// -// Starting with version 1.06, the rasterizer was replaced with a new, -// faster and generally-more-precise rasterizer. The new rasterizer more -// accurately measures pixel coverage for anti-aliasing, except in the case -// where multiple shapes overlap, in which case it overestimates the AA pixel -// coverage. Thus, anti-aliasing of intersecting shapes may look wrong. If -// this turns out to be a problem, you can re-enable the old rasterizer with -// #define STBTT_RASTERIZER_VERSION 1 -// which will incur about a 15% speed hit. -// -// ADDITIONAL DOCUMENTATION -// -// Immediately after this block comment are a series of sample programs. -// -// After the sample programs is the "header file" section. This section -// includes documentation for each API function. -// -// Some important concepts to understand to use this library: -// -// Codepoint -// Characters are defined by unicode codepoints, e.g. 65 is -// uppercase A, 231 is lowercase c with a cedilla, 0x7e30 is -// the hiragana for "ma". -// -// Glyph -// A visual character shape (every codepoint is rendered as -// some glyph) -// -// Glyph index -// A font-specific integer ID representing a glyph -// -// Baseline -// Glyph shapes are defined relative to a baseline, which is the -// bottom of uppercase characters. Characters extend both above -// and below the baseline. -// -// Current Point -// As you draw text to the screen, you keep track of a "current point" -// which is the origin of each character. The current point's vertical -// position is the baseline. Even "baked fonts" use this model. -// -// Vertical Font Metrics -// The vertical qualities of the font, used to vertically position -// and space the characters. See docs for stbtt_GetFontVMetrics. -// -// Font Size in Pixels or Points -// The preferred interface for specifying font sizes in stb_truetype -// is to specify how tall the font's vertical extent should be in pixels. -// If that sounds good enough, skip the next paragraph. -// -// Most font APIs instead use "points", which are a common typographic -// measurement for describing font size, defined as 72 points per inch. -// stb_truetype provides a point API for compatibility. However, true -// "per inch" conventions don't make much sense on computer displays -// since different monitors have different number of pixels per -// inch. For example, Windows traditionally uses a convention that -// there are 96 pixels per inch, thus making 'inch' measurements have -// nothing to do with inches, and thus effectively defining a point to -// be 1.333 pixels. Additionally, the TrueType font data provides -// an explicit scale factor to scale a given font's glyphs to points, -// but the author has observed that this scale factor is often wrong -// for non-commercial fonts, thus making fonts scaled in points -// according to the TrueType spec incoherently sized in practice. -// -// DETAILED USAGE: -// -// Scale: -// Select how high you want the font to be, in points or pixels. -// Call ScaleForPixelHeight or ScaleForMappingEmToPixels to compute -// a scale factor SF that will be used by all other functions. -// -// Baseline: -// You need to select a y-coordinate that is the baseline of where -// your text will appear. Call GetFontBoundingBox to get the baseline-relative -// bounding box for all characters. SF*-y0 will be the distance in pixels -// that the worst-case character could extend above the baseline, so if -// you want the top edge of characters to appear at the top of the -// screen where y=0, then you would set the baseline to SF*-y0. -// -// Current point: -// Set the current point where the first character will appear. The -// first character could extend left of the current point; this is font -// dependent. You can either choose a current point that is the leftmost -// point and hope, or add some padding, or check the bounding box or -// left-side-bearing of the first character to be displayed and set -// the current point based on that. -// -// Displaying a character: -// Compute the bounding box of the character. It will contain signed values -// relative to . I.e. if it returns x0,y0,x1,y1, -// then the character should be displayed in the rectangle from -// to = 32 && *text < 128) { - stbtt_aligned_quad q; - stbtt_GetBakedQuad(cdata, 512,512, *text-32, &x,&y,&q,1);//1=opengl & d3d10+,0=d3d9 - glTexCoord2f(q.s0,q.t1); glVertex2f(q.x0,q.y0); - glTexCoord2f(q.s1,q.t1); glVertex2f(q.x1,q.y0); - glTexCoord2f(q.s1,q.t0); glVertex2f(q.x1,q.y1); - glTexCoord2f(q.s0,q.t0); glVertex2f(q.x0,q.y1); - } - ++text; - } - glEnd(); -} -#endif -// -// -////////////////////////////////////////////////////////////////////////////// -// -// Complete program (this compiles): get a single bitmap, print as ASCII art -// -#if 0 -#include -#define STB_TRUETYPE_IMPLEMENTATION // force following include to generate implementation -#include "stb_truetype.h" - -char ttf_buffer[1<<25]; - -int main(int argc, char **argv) -{ - stbtt_fontinfo font; - unsigned char *bitmap; - int w,h,i,j,c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20); - - fread(ttf_buffer, 1, 1<<25, fopen(argc > 3 ? argv[3] : "c:/windows/fonts/arialbd.ttf", "rb")); - - stbtt_InitFont(&font, ttf_buffer, stbtt_GetFontOffsetForIndex(ttf_buffer,0)); - bitmap = stbtt_GetCodepointBitmap(&font, 0,stbtt_ScaleForPixelHeight(&font, s), c, &w, &h, 0,0); - - for (j=0; j < h; ++j) { - for (i=0; i < w; ++i) - putchar(" .:ioVM@"[bitmap[j*w+i]>>5]); - putchar('\n'); - } - return 0; -} -#endif -// -// Output: -// -// .ii. -// @@@@@@. -// V@Mio@@o -// :i. V@V -// :oM@@M -// :@@@MM@M -// @@o o@M -// :@@. M@M -// @@@o@@@@ -// :M@@V:@@. -// -////////////////////////////////////////////////////////////////////////////// -// -// Complete program: print "Hello World!" banner, with bugs -// -#if 0 -char buffer[24<<20]; -unsigned char screen[20][79]; - -int main(int arg, char **argv) -{ - stbtt_fontinfo font; - int i,j,ascent,baseline,ch=0; - float scale, xpos=2; // leave a little padding in case the character extends left - char *text = "Heljo World!"; // intentionally misspelled to show 'lj' brokenness - - fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb")); - stbtt_InitFont(&font, buffer, 0); - - scale = stbtt_ScaleForPixelHeight(&font, 15); - stbtt_GetFontVMetrics(&font, &ascent,0,0); - baseline = (int) (ascent*scale); - - while (text[ch]) { - int advance,lsb,x0,y0,x1,y1; - float x_shift = xpos - (float) floor(xpos); - stbtt_GetCodepointHMetrics(&font, text[ch], &advance, &lsb); - stbtt_GetCodepointBitmapBoxSubpixel(&font, text[ch], scale,scale,x_shift,0, &x0,&y0,&x1,&y1); - stbtt_MakeCodepointBitmapSubpixel(&font, &screen[baseline + y0][(int) xpos + x0], x1-x0,y1-y0, 79, scale,scale,x_shift,0, text[ch]); - // note that this stomps the old data, so where character boxes overlap (e.g. 'lj') it's wrong - // because this API is really for baking character bitmaps into textures. if you want to render - // a sequence of characters, you really need to render each bitmap to a temp buffer, then - // "alpha blend" that into the working buffer - xpos += (advance * scale); - if (text[ch+1]) - xpos += scale*stbtt_GetCodepointKernAdvance(&font, text[ch],text[ch+1]); - ++ch; - } - - for (j=0; j < 20; ++j) { - for (i=0; i < 78; ++i) - putchar(" .:ioVM@"[screen[j][i]>>5]); - putchar('\n'); - } - - return 0; -} -#endif - - -////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////// -//// -//// INTEGRATION WITH YOUR CODEBASE -//// -//// The following sections allow you to supply alternate definitions -//// of C library functions used by stb_truetype, e.g. if you don't -//// link with the C runtime library. - -#ifdef STB_TRUETYPE_IMPLEMENTATION - // #define your own (u)stbtt_int8/16/32 before including to override this - #ifndef stbtt_uint8 - typedef unsigned char stbtt_uint8; - typedef signed char stbtt_int8; - typedef unsigned short stbtt_uint16; - typedef signed short stbtt_int16; - typedef unsigned int stbtt_uint32; - typedef signed int stbtt_int32; - #endif - - typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1]; - typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1]; - - // e.g. #define your own STBTT_ifloor/STBTT_iceil() to avoid math.h - #ifndef STBTT_ifloor - #include - #define STBTT_ifloor(x) ((int) floor(x)) - #define STBTT_iceil(x) ((int) ceil(x)) - #endif - - #ifndef STBTT_sqrt - #include - #define STBTT_sqrt(x) sqrt(x) - #define STBTT_pow(x,y) pow(x,y) - #endif - - #ifndef STBTT_fmod - #include - #define STBTT_fmod(x,y) fmod(x,y) - #endif - - #ifndef STBTT_cos - #include - #define STBTT_cos(x) cos(x) - #define STBTT_acos(x) acos(x) - #endif - - #ifndef STBTT_fabs - #include - #define STBTT_fabs(x) fabs(x) - #endif - - // #define your own functions "STBTT_malloc" / "STBTT_free" to avoid malloc.h - #ifndef STBTT_malloc - #include - #define STBTT_malloc(x,u) ((void)(u),malloc(x)) - #define STBTT_free(x,u) ((void)(u),free(x)) - #endif - - #ifndef STBTT_assert - #include - #define STBTT_assert(x) assert(x) - #endif - - #ifndef STBTT_strlen - #include - #define STBTT_strlen(x) strlen(x) - #endif - - #ifndef STBTT_memcpy - #include - #define STBTT_memcpy memcpy - #define STBTT_memset memset - #endif -#endif - -/////////////////////////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////////////////////////// -//// -//// INTERFACE -//// -//// - -#ifndef __STB_INCLUDE_STB_TRUETYPE_H__ -#define __STB_INCLUDE_STB_TRUETYPE_H__ - -#ifdef STBTT_STATIC -#define STBTT_DEF static -#else -#define STBTT_DEF extern -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -// private structure -typedef struct -{ - unsigned char *data; - int cursor; - int size; -} stbtt__buf; - -////////////////////////////////////////////////////////////////////////////// -// -// TEXTURE BAKING API -// -// If you use this API, you only have to call two functions ever. -// - -typedef struct -{ - unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap - float xoff,yoff,xadvance; -} stbtt_bakedchar; - -STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) - float pixel_height, // height of font in pixels - unsigned char *pixels, int pw, int ph, // bitmap to be filled in - int first_char, int num_chars, // characters to bake - stbtt_bakedchar *chardata); // you allocate this, it's num_chars long -// if return is positive, the first unused row of the bitmap -// if return is negative, returns the negative of the number of characters that fit -// if return is 0, no characters fit and no rows were used -// This uses a very crappy packing. - -typedef struct -{ - float x0,y0,s0,t0; // top-left - float x1,y1,s1,t1; // bottom-right -} stbtt_aligned_quad; - -STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, // same data as above - int char_index, // character to display - float *xpos, float *ypos, // pointers to current position in screen pixel space - stbtt_aligned_quad *q, // output: quad to draw - int opengl_fillrule); // true if opengl fill rule; false if DX9 or earlier -// Call GetBakedQuad with char_index = 'character - first_char', and it -// creates the quad you need to draw and advances the current position. -// -// The coordinate system used assumes y increases downwards. -// -// Characters will extend both above and below the current position; -// see discussion of "BASELINE" above. -// -// It's inefficient; you might want to c&p it and optimize it. - -STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap); -// Query the font vertical metrics without having to create a font first. - - -////////////////////////////////////////////////////////////////////////////// -// -// NEW TEXTURE BAKING API -// -// This provides options for packing multiple fonts into one atlas, not -// perfectly but better than nothing. - -typedef struct -{ - unsigned short x0,y0,x1,y1; // coordinates of bbox in bitmap - float xoff,yoff,xadvance; - float xoff2,yoff2; -} stbtt_packedchar; - -typedef struct stbtt_pack_context stbtt_pack_context; -typedef struct stbtt_fontinfo stbtt_fontinfo; -#ifndef STB_RECT_PACK_VERSION -typedef struct stbrp_rect stbrp_rect; -#endif - -STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int height, int stride_in_bytes, int padding, void *alloc_context); -// Initializes a packing context stored in the passed-in stbtt_pack_context. -// Future calls using this context will pack characters into the bitmap passed -// in here: a 1-channel bitmap that is width * height. stride_in_bytes is -// the distance from one row to the next (or 0 to mean they are packed tightly -// together). "padding" is the amount of padding to leave between each -// character (normally you want '1' for bitmaps you'll use as textures with -// bilinear filtering). -// -// Returns 0 on failure, 1 on success. - -STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc); -// Cleans up the packing context and frees all memory. - -#define STBTT_POINT_SIZE(x) (-(x)) - -STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, - int first_unicode_char_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range); -// Creates character bitmaps from the font_index'th font found in fontdata (use -// font_index=0 if you don't know what that is). It creates num_chars_in_range -// bitmaps for characters with unicode values starting at first_unicode_char_in_range -// and increasing. Data for how to render them is stored in chardata_for_range; -// pass these to stbtt_GetPackedQuad to get back renderable quads. -// -// font_size is the full height of the character from ascender to descender, -// as computed by stbtt_ScaleForPixelHeight. To use a point size as computed -// by stbtt_ScaleForMappingEmToPixels, wrap the point size in STBTT_POINT_SIZE() -// and pass that result as 'font_size': -// ..., 20 , ... // font max minus min y is 20 pixels tall -// ..., STBTT_POINT_SIZE(20), ... // 'M' is 20 pixels tall - -typedef struct -{ - float font_size; - int first_unicode_codepoint_in_range; // if non-zero, then the chars are continuous, and this is the first codepoint - int *array_of_unicode_codepoints; // if non-zero, then this is an array of unicode codepoints - int num_chars; - stbtt_packedchar *chardata_for_range; // output - unsigned char h_oversample, v_oversample; // don't set these, they're used internally -} stbtt_pack_range; - -STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges); -// Creates character bitmaps from multiple ranges of characters stored in -// ranges. This will usually create a better-packed bitmap than multiple -// calls to stbtt_PackFontRange. Note that you can call this multiple -// times within a single PackBegin/PackEnd. - -STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample); -// Oversampling a font increases the quality by allowing higher-quality subpixel -// positioning, and is especially valuable at smaller text sizes. -// -// This function sets the amount of oversampling for all following calls to -// stbtt_PackFontRange(s) or stbtt_PackFontRangesGatherRects for a given -// pack context. The default (no oversampling) is achieved by h_oversample=1 -// and v_oversample=1. The total number of pixels required is -// h_oversample*v_oversample larger than the default; for example, 2x2 -// oversampling requires 4x the storage of 1x1. For best results, render -// oversampled textures with bilinear filtering. Look at the readme in -// stb/tests/oversample for information about oversampled fonts -// -// To use with PackFontRangesGather etc., you must set it before calls -// call to PackFontRangesGatherRects. - -STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip); -// If skip != 0, this tells stb_truetype to skip any codepoints for which -// there is no corresponding glyph. If skip=0, which is the default, then -// codepoints without a glyph recived the font's "missing character" glyph, -// typically an empty box by convention. - -STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, // same data as above - int char_index, // character to display - float *xpos, float *ypos, // pointers to current position in screen pixel space - stbtt_aligned_quad *q, // output: quad to draw - int align_to_integer); - -STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); -STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects); -STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects); -// Calling these functions in sequence is roughly equivalent to calling -// stbtt_PackFontRanges(). If you more control over the packing of multiple -// fonts, or if you want to pack custom data into a font texture, take a look -// at the source to of stbtt_PackFontRanges() and create a custom version -// using these functions, e.g. call GatherRects multiple times, -// building up a single array of rects, then call PackRects once, -// then call RenderIntoRects repeatedly. This may result in a -// better packing than calling PackFontRanges multiple times -// (or it may not). - -// this is an opaque structure that you shouldn't mess with which holds -// all the context needed from PackBegin to PackEnd. -struct stbtt_pack_context { - void *user_allocator_context; - void *pack_info; - int width; - int height; - int stride_in_bytes; - int padding; - int skip_missing; - unsigned int h_oversample, v_oversample; - unsigned char *pixels; - void *nodes; -}; - -////////////////////////////////////////////////////////////////////////////// -// -// FONT LOADING -// -// - -STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data); -// This function will determine the number of fonts in a font file. TrueType -// collection (.ttc) files may contain multiple fonts, while TrueType font -// (.ttf) files only contain one font. The number of fonts can be used for -// indexing with the previous function where the index is between zero and one -// less than the total fonts. If an error occurs, -1 is returned. - -STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index); -// Each .ttf/.ttc file may have more than one font. Each font has a sequential -// index number starting from 0. Call this function to get the font offset for -// a given index; it returns -1 if the index is out of range. A regular .ttf -// file will only define one font and it always be at offset 0, so it will -// return '0' for index 0, and -1 for all other indices. - -// The following structure is defined publicly so you can declare one on -// the stack or as a global or etc, but you should treat it as opaque. -struct stbtt_fontinfo -{ - void * userdata; - unsigned char * data; // pointer to .ttf file - int fontstart; // offset of start of font - - int numGlyphs; // number of glyphs, needed for range checking - - int loca,head,glyf,hhea,hmtx,kern,gpos; // table locations as offset from start of .ttf - int index_map; // a cmap mapping for our chosen character encoding - int indexToLocFormat; // format needed to map from glyph index to glyph - - stbtt__buf cff; // cff font data - stbtt__buf charstrings; // the charstring index - stbtt__buf gsubrs; // global charstring subroutines index - stbtt__buf subrs; // private charstring subroutines index - stbtt__buf fontdicts; // array of font dicts - stbtt__buf fdselect; // map from glyph to fontdict -}; - -STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset); -// Given an offset into the file that defines a font, this function builds -// the necessary cached info for the rest of the system. You must allocate -// the stbtt_fontinfo yourself, and stbtt_InitFont will fill it out. You don't -// need to do anything special to free it, because the contents are pure -// value data with no additional data structures. Returns 0 on failure. - - -////////////////////////////////////////////////////////////////////////////// -// -// CHARACTER TO GLYPH-INDEX CONVERSIOn - -STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint); -// If you're going to perform multiple operations on the same character -// and you want a speed-up, call this function with the character you're -// going to process, then use glyph-based functions instead of the -// codepoint-based functions. -// Returns 0 if the character codepoint is not defined in the font. - - -////////////////////////////////////////////////////////////////////////////// -// -// CHARACTER PROPERTIES -// - -STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels); -// computes a scale factor to produce a font whose "height" is 'pixels' tall. -// Height is measured as the distance from the highest ascender to the lowest -// descender; in other words, it's equivalent to calling stbtt_GetFontVMetrics -// and computing: -// scale = pixels / (ascent - descent) -// so if you prefer to measure height by the ascent only, use a similar calculation. - -STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels); -// computes a scale factor to produce a font whose EM size is mapped to -// 'pixels' tall. This is probably what traditional APIs compute, but -// I'm not positive. - -STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap); -// ascent is the coordinate above the baseline the font extends; descent -// is the coordinate below the baseline the font extends (i.e. it is typically negative) -// lineGap is the spacing between one row's descent and the next row's ascent... -// so you should advance the vertical position by "*ascent - *descent + *lineGap" -// these are expressed in unscaled coordinates, so you must multiply by -// the scale factor for a given size - -STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap); -// analogous to GetFontVMetrics, but returns the "typographic" values from the OS/2 -// table (specific to MS/Windows TTF files). -// -// Returns 1 on success (table present), 0 on failure. - -STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1); -// the bounding box around all possible characters - -STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing); -// leftSideBearing is the offset from the current horizontal position to the left edge of the character -// advanceWidth is the offset from the current horizontal position to the next horizontal position -// these are expressed in unscaled coordinates - -STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2); -// an additional amount to add to the 'advance' value between ch1 and ch2 - -STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1); -// Gets the bounding box of the visible part of the glyph, in unscaled coordinates - -STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing); -STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2); -STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); -// as above, but takes one or more glyph indices for greater efficiency - - -////////////////////////////////////////////////////////////////////////////// -// -// GLYPH SHAPES (you probably don't need these, but they have to go before -// the bitmaps for C declaration-order reasons) -// - -#ifndef STBTT_vmove // you can predefine these to use different values (but why?) - enum { - STBTT_vmove=1, - STBTT_vline, - STBTT_vcurve, - STBTT_vcubic - }; -#endif - -#ifndef stbtt_vertex // you can predefine this to use different values - // (we share this with other code at RAD) - #define stbtt_vertex_type short // can't use stbtt_int16 because that's not visible in the header file - typedef struct - { - stbtt_vertex_type x,y,cx,cy,cx1,cy1; - unsigned char type,padding; - } stbtt_vertex; -#endif - -STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index); -// returns non-zero if nothing is drawn for this glyph - -STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices); -STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **vertices); -// returns # of vertices and fills *vertices with the pointer to them -// these are expressed in "unscaled" coordinates -// -// The shape is a series of contours. Each one starts with -// a STBTT_moveto, then consists of a series of mixed -// STBTT_lineto and STBTT_curveto segments. A lineto -// draws a line from previous endpoint to its x,y; a curveto -// draws a quadratic bezier from previous endpoint to -// its x,y, using cx,cy as the bezier control point. - -STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *vertices); -// frees the data allocated above - -////////////////////////////////////////////////////////////////////////////// -// -// BITMAP RENDERING -// - -STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata); -// frees the bitmap allocated below - -STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff); -// allocates a large-enough single-channel 8bpp bitmap and renders the -// specified character/glyph at the specified scale into it, with -// antialiasing. 0 is no coverage (transparent), 255 is fully covered (opaque). -// *width & *height are filled out with the width & height of the bitmap, -// which is stored left-to-right, top-to-bottom. -// -// xoff/yoff are the offset it pixel space from the glyph origin to the top-left of the bitmap - -STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff); -// the same as stbtt_GetCodepoitnBitmap, but you can specify a subpixel -// shift for the character - -STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint); -// the same as stbtt_GetCodepointBitmap, but you pass in storage for the bitmap -// in the form of 'output', with row spacing of 'out_stride' bytes. the bitmap -// is clipped to out_w/out_h bytes. Call stbtt_GetCodepointBitmapBox to get the -// width and height and positioning info for it first. - -STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint); -// same as stbtt_MakeCodepointBitmap, but you can specify a subpixel -// shift for the character - -STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint); -// same as stbtt_MakeCodepointBitmapSubpixel, but prefiltering -// is performed (see stbtt_PackSetOversampling) - -STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); -// get the bbox of the bitmap centered around the glyph origin; so the -// bitmap width is ix1-ix0, height is iy1-iy0, and location to place -// the bitmap top left is (leftSideBearing*scale,iy0). -// (Note that the bitmap uses y-increases-down, but the shape uses -// y-increases-up, so CodepointBitmapBox and CodepointBox are inverted.) - -STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); -// same as stbtt_GetCodepointBitmapBox, but you can specify a subpixel -// shift for the character - -// the following functions are equivalent to the above functions, but operate -// on glyph indices instead of Unicode codepoints (for efficiency) -STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff); -STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff); -STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph); -STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph); -STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int glyph); -STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1); -STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1); - - -// @TODO: don't expose this structure -typedef struct -{ - int w,h,stride; - unsigned char *pixels; -} stbtt__bitmap; - -// rasterize a shape with quadratic beziers into a bitmap -STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, // 1-channel bitmap to draw into - float flatness_in_pixels, // allowable error of curve in pixels - stbtt_vertex *vertices, // array of vertices defining shape - int num_verts, // number of vertices in above array - float scale_x, float scale_y, // scale applied to input vertices - float shift_x, float shift_y, // translation applied to input vertices - int x_off, int y_off, // another translation applied to input - int invert, // if non-zero, vertically flip shape - void *userdata); // context for to STBTT_MALLOC - -////////////////////////////////////////////////////////////////////////////// -// -// Signed Distance Function (or Field) rendering - -STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata); -// frees the SDF bitmap allocated below - -STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); -STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff); -// These functions compute a discretized SDF field for a single character, suitable for storing -// in a single-channel texture, sampling with bilinear filtering, and testing against -// larger than some threshold to produce scalable fonts. -// info -- the font -// scale -- controls the size of the resulting SDF bitmap, same as it would be creating a regular bitmap -// glyph/codepoint -- the character to generate the SDF for -// padding -- extra "pixels" around the character which are filled with the distance to the character (not 0), -// which allows effects like bit outlines -// onedge_value -- value 0-255 to test the SDF against to reconstruct the character (i.e. the isocontour of the character) -// pixel_dist_scale -- what value the SDF should increase by when moving one SDF "pixel" away from the edge (on the 0..255 scale) -// if positive, > onedge_value is inside; if negative, < onedge_value is inside -// width,height -- output height & width of the SDF bitmap (including padding) -// xoff,yoff -- output origin of the character -// return value -- a 2D array of bytes 0..255, width*height in size -// -// pixel_dist_scale & onedge_value are a scale & bias that allows you to make -// optimal use of the limited 0..255 for your application, trading off precision -// and special effects. SDF values outside the range 0..255 are clamped to 0..255. -// -// Example: -// scale = stbtt_ScaleForPixelHeight(22) -// padding = 5 -// onedge_value = 180 -// pixel_dist_scale = 180/5.0 = 36.0 -// -// This will create an SDF bitmap in which the character is about 22 pixels -// high but the whole bitmap is about 22+5+5=32 pixels high. To produce a filled -// shape, sample the SDF at each pixel and fill the pixel if the SDF value -// is greater than or equal to 180/255. (You'll actually want to antialias, -// which is beyond the scope of this example.) Additionally, you can compute -// offset outlines (e.g. to stroke the character border inside & outside, -// or only outside). For example, to fill outside the character up to 3 SDF -// pixels, you would compare against (180-36.0*3)/255 = 72/255. The above -// choice of variables maps a range from 5 pixels outside the shape to -// 2 pixels inside the shape to 0..255; this is intended primarily for apply -// outside effects only (the interior range is needed to allow proper -// antialiasing of the font at *smaller* sizes) -// -// The function computes the SDF analytically at each SDF pixel, not by e.g. -// building a higher-res bitmap and approximating it. In theory the quality -// should be as high as possible for an SDF of this size & representation, but -// unclear if this is true in practice (perhaps building a higher-res bitmap -// and computing from that can allow drop-out prevention). -// -// The algorithm has not been optimized at all, so expect it to be slow -// if computing lots of characters or very large sizes. - - - -////////////////////////////////////////////////////////////////////////////// -// -// Finding the right font... -// -// You should really just solve this offline, keep your own tables -// of what font is what, and don't try to get it out of the .ttf file. -// That's because getting it out of the .ttf file is really hard, because -// the names in the file can appear in many possible encodings, in many -// possible languages, and e.g. if you need a case-insensitive comparison, -// the details of that depend on the encoding & language in a complex way -// (actually underspecified in truetype, but also gigantic). -// -// But you can use the provided functions in two possible ways: -// stbtt_FindMatchingFont() will use *case-sensitive* comparisons on -// unicode-encoded names to try to find the font you want; -// you can run this before calling stbtt_InitFont() -// -// stbtt_GetFontNameString() lets you get any of the various strings -// from the file yourself and do your own comparisons on them. -// You have to have called stbtt_InitFont() first. - - -STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags); -// returns the offset (not index) of the font that matches, or -1 if none -// if you use STBTT_MACSTYLE_DONTCARE, use a font name like "Arial Bold". -// if you use any other flag, use a font name like "Arial"; this checks -// the 'macStyle' header field; i don't know if fonts set this consistently -#define STBTT_MACSTYLE_DONTCARE 0 -#define STBTT_MACSTYLE_BOLD 1 -#define STBTT_MACSTYLE_ITALIC 2 -#define STBTT_MACSTYLE_UNDERSCORE 4 -#define STBTT_MACSTYLE_NONE 8 // <= not same as 0, this makes us check the bitfield is 0 - -STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2); -// returns 1/0 whether the first string interpreted as utf8 is identical to -// the second string interpreted as big-endian utf16... useful for strings from next func - -STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID); -// returns the string (which may be big-endian double byte, e.g. for unicode) -// and puts the length in bytes in *length. -// -// some of the values for the IDs are below; for more see the truetype spec: -// http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6name.html -// http://www.microsoft.com/typography/otspec/name.htm - -enum { // platformID - STBTT_PLATFORM_ID_UNICODE =0, - STBTT_PLATFORM_ID_MAC =1, - STBTT_PLATFORM_ID_ISO =2, - STBTT_PLATFORM_ID_MICROSOFT =3 -}; - -enum { // encodingID for STBTT_PLATFORM_ID_UNICODE - STBTT_UNICODE_EID_UNICODE_1_0 =0, - STBTT_UNICODE_EID_UNICODE_1_1 =1, - STBTT_UNICODE_EID_ISO_10646 =2, - STBTT_UNICODE_EID_UNICODE_2_0_BMP=3, - STBTT_UNICODE_EID_UNICODE_2_0_FULL=4 -}; - -enum { // encodingID for STBTT_PLATFORM_ID_MICROSOFT - STBTT_MS_EID_SYMBOL =0, - STBTT_MS_EID_UNICODE_BMP =1, - STBTT_MS_EID_SHIFTJIS =2, - STBTT_MS_EID_UNICODE_FULL =10 -}; - -enum { // encodingID for STBTT_PLATFORM_ID_MAC; same as Script Manager codes - STBTT_MAC_EID_ROMAN =0, STBTT_MAC_EID_ARABIC =4, - STBTT_MAC_EID_JAPANESE =1, STBTT_MAC_EID_HEBREW =5, - STBTT_MAC_EID_CHINESE_TRAD =2, STBTT_MAC_EID_GREEK =6, - STBTT_MAC_EID_KOREAN =3, STBTT_MAC_EID_RUSSIAN =7 -}; - -enum { // languageID for STBTT_PLATFORM_ID_MICROSOFT; same as LCID... - // problematic because there are e.g. 16 english LCIDs and 16 arabic LCIDs - STBTT_MS_LANG_ENGLISH =0x0409, STBTT_MS_LANG_ITALIAN =0x0410, - STBTT_MS_LANG_CHINESE =0x0804, STBTT_MS_LANG_JAPANESE =0x0411, - STBTT_MS_LANG_DUTCH =0x0413, STBTT_MS_LANG_KOREAN =0x0412, - STBTT_MS_LANG_FRENCH =0x040c, STBTT_MS_LANG_RUSSIAN =0x0419, - STBTT_MS_LANG_GERMAN =0x0407, STBTT_MS_LANG_SPANISH =0x0409, - STBTT_MS_LANG_HEBREW =0x040d, STBTT_MS_LANG_SWEDISH =0x041D -}; - -enum { // languageID for STBTT_PLATFORM_ID_MAC - STBTT_MAC_LANG_ENGLISH =0 , STBTT_MAC_LANG_JAPANESE =11, - STBTT_MAC_LANG_ARABIC =12, STBTT_MAC_LANG_KOREAN =23, - STBTT_MAC_LANG_DUTCH =4 , STBTT_MAC_LANG_RUSSIAN =32, - STBTT_MAC_LANG_FRENCH =1 , STBTT_MAC_LANG_SPANISH =6 , - STBTT_MAC_LANG_GERMAN =2 , STBTT_MAC_LANG_SWEDISH =5 , - STBTT_MAC_LANG_HEBREW =10, STBTT_MAC_LANG_CHINESE_SIMPLIFIED =33, - STBTT_MAC_LANG_ITALIAN =3 , STBTT_MAC_LANG_CHINESE_TRAD =19 -}; - -#ifdef __cplusplus -} -#endif - -#endif // __STB_INCLUDE_STB_TRUETYPE_H__ - -/////////////////////////////////////////////////////////////////////////////// -/////////////////////////////////////////////////////////////////////////////// -//// -//// IMPLEMENTATION -//// -//// - -#ifdef STB_TRUETYPE_IMPLEMENTATION - -#ifndef STBTT_MAX_OVERSAMPLE -#define STBTT_MAX_OVERSAMPLE 8 -#endif - -#if STBTT_MAX_OVERSAMPLE > 255 -#error "STBTT_MAX_OVERSAMPLE cannot be > 255" -#endif - -typedef int stbtt__test_oversample_pow2[(STBTT_MAX_OVERSAMPLE & (STBTT_MAX_OVERSAMPLE-1)) == 0 ? 1 : -1]; - -#ifndef STBTT_RASTERIZER_VERSION -#define STBTT_RASTERIZER_VERSION 2 -#endif - -#ifdef _MSC_VER -#define STBTT__NOTUSED(v) (void)(v) -#else -#define STBTT__NOTUSED(v) (void)sizeof(v) -#endif - -////////////////////////////////////////////////////////////////////////// -// -// stbtt__buf helpers to parse data from file -// - -static stbtt_uint8 stbtt__buf_get8(stbtt__buf *b) -{ - if (b->cursor >= b->size) - return 0; - return b->data[b->cursor++]; -} - -static stbtt_uint8 stbtt__buf_peek8(stbtt__buf *b) -{ - if (b->cursor >= b->size) - return 0; - return b->data[b->cursor]; -} - -static void stbtt__buf_seek(stbtt__buf *b, int o) -{ - STBTT_assert(!(o > b->size || o < 0)); - b->cursor = (o > b->size || o < 0) ? b->size : o; -} - -static void stbtt__buf_skip(stbtt__buf *b, int o) -{ - stbtt__buf_seek(b, b->cursor + o); -} - -static stbtt_uint32 stbtt__buf_get(stbtt__buf *b, int n) -{ - stbtt_uint32 v = 0; - int i; - STBTT_assert(n >= 1 && n <= 4); - for (i = 0; i < n; i++) - v = (v << 8) | stbtt__buf_get8(b); - return v; -} - -static stbtt__buf stbtt__new_buf(const void *p, size_t size) -{ - stbtt__buf r; - STBTT_assert(size < 0x40000000); - r.data = (stbtt_uint8*) p; - r.size = (int) size; - r.cursor = 0; - return r; -} - -#define stbtt__buf_get16(b) stbtt__buf_get((b), 2) -#define stbtt__buf_get32(b) stbtt__buf_get((b), 4) - -static stbtt__buf stbtt__buf_range(const stbtt__buf *b, int o, int s) -{ - stbtt__buf r = stbtt__new_buf(NULL, 0); - if (o < 0 || s < 0 || o > b->size || s > b->size - o) return r; - r.data = b->data + o; - r.size = s; - return r; -} - -static stbtt__buf stbtt__cff_get_index(stbtt__buf *b) -{ - int count, start, offsize; - start = b->cursor; - count = stbtt__buf_get16(b); - if (count) { - offsize = stbtt__buf_get8(b); - STBTT_assert(offsize >= 1 && offsize <= 4); - stbtt__buf_skip(b, offsize * count); - stbtt__buf_skip(b, stbtt__buf_get(b, offsize) - 1); - } - return stbtt__buf_range(b, start, b->cursor - start); -} - -static stbtt_uint32 stbtt__cff_int(stbtt__buf *b) -{ - int b0 = stbtt__buf_get8(b); - if (b0 >= 32 && b0 <= 246) return b0 - 139; - else if (b0 >= 247 && b0 <= 250) return (b0 - 247)*256 + stbtt__buf_get8(b) + 108; - else if (b0 >= 251 && b0 <= 254) return -(b0 - 251)*256 - stbtt__buf_get8(b) - 108; - else if (b0 == 28) return stbtt__buf_get16(b); - else if (b0 == 29) return stbtt__buf_get32(b); - STBTT_assert(0); - return 0; -} - -static void stbtt__cff_skip_operand(stbtt__buf *b) { - int v, b0 = stbtt__buf_peek8(b); - STBTT_assert(b0 >= 28); - if (b0 == 30) { - stbtt__buf_skip(b, 1); - while (b->cursor < b->size) { - v = stbtt__buf_get8(b); - if ((v & 0xF) == 0xF || (v >> 4) == 0xF) - break; - } - } else { - stbtt__cff_int(b); - } -} - -static stbtt__buf stbtt__dict_get(stbtt__buf *b, int key) -{ - stbtt__buf_seek(b, 0); - while (b->cursor < b->size) { - int start = b->cursor, end, op; - while (stbtt__buf_peek8(b) >= 28) - stbtt__cff_skip_operand(b); - end = b->cursor; - op = stbtt__buf_get8(b); - if (op == 12) op = stbtt__buf_get8(b) | 0x100; - if (op == key) return stbtt__buf_range(b, start, end-start); - } - return stbtt__buf_range(b, 0, 0); -} - -static void stbtt__dict_get_ints(stbtt__buf *b, int key, int outcount, stbtt_uint32 *out) -{ - int i; - stbtt__buf operands = stbtt__dict_get(b, key); - for (i = 0; i < outcount && operands.cursor < operands.size; i++) - out[i] = stbtt__cff_int(&operands); -} - -static int stbtt__cff_index_count(stbtt__buf *b) -{ - stbtt__buf_seek(b, 0); - return stbtt__buf_get16(b); -} - -static stbtt__buf stbtt__cff_index_get(stbtt__buf b, int i) -{ - int count, offsize, start, end; - stbtt__buf_seek(&b, 0); - count = stbtt__buf_get16(&b); - offsize = stbtt__buf_get8(&b); - STBTT_assert(i >= 0 && i < count); - STBTT_assert(offsize >= 1 && offsize <= 4); - stbtt__buf_skip(&b, i*offsize); - start = stbtt__buf_get(&b, offsize); - end = stbtt__buf_get(&b, offsize); - return stbtt__buf_range(&b, 2+(count+1)*offsize+start, end - start); -} - -////////////////////////////////////////////////////////////////////////// -// -// accessors to parse data from file -// - -// on platforms that don't allow misaligned reads, if we want to allow -// truetype fonts that aren't padded to alignment, define ALLOW_UNALIGNED_TRUETYPE - -#define ttBYTE(p) (* (stbtt_uint8 *) (p)) -#define ttCHAR(p) (* (stbtt_int8 *) (p)) -#define ttFixed(p) ttLONG(p) - -static stbtt_uint16 ttUSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } -static stbtt_int16 ttSHORT(stbtt_uint8 *p) { return p[0]*256 + p[1]; } -static stbtt_uint32 ttULONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } -static stbtt_int32 ttLONG(stbtt_uint8 *p) { return (p[0]<<24) + (p[1]<<16) + (p[2]<<8) + p[3]; } - -#define stbtt_tag4(p,c0,c1,c2,c3) ((p)[0] == (c0) && (p)[1] == (c1) && (p)[2] == (c2) && (p)[3] == (c3)) -#define stbtt_tag(p,str) stbtt_tag4(p,str[0],str[1],str[2],str[3]) - -static int stbtt__isfont(stbtt_uint8 *font) -{ - // check the version number - if (stbtt_tag4(font, '1',0,0,0)) return 1; // TrueType 1 - if (stbtt_tag(font, "typ1")) return 1; // TrueType with type 1 font -- we don't support this! - if (stbtt_tag(font, "OTTO")) return 1; // OpenType with CFF - if (stbtt_tag4(font, 0,1,0,0)) return 1; // OpenType 1.0 - if (stbtt_tag(font, "true")) return 1; // Apple specification for TrueType fonts - return 0; -} - -// @OPTIMIZE: binary search -static stbtt_uint32 stbtt__find_table(stbtt_uint8 *data, stbtt_uint32 fontstart, const char *tag) -{ - stbtt_int32 num_tables = ttUSHORT(data+fontstart+4); - stbtt_uint32 tabledir = fontstart + 12; - stbtt_int32 i; - for (i=0; i < num_tables; ++i) { - stbtt_uint32 loc = tabledir + 16*i; - if (stbtt_tag(data+loc+0, tag)) - return ttULONG(data+loc+8); - } - return 0; -} - -static int stbtt_GetFontOffsetForIndex_internal(unsigned char *font_collection, int index) -{ - // if it's just a font, there's only one valid index - if (stbtt__isfont(font_collection)) - return index == 0 ? 0 : -1; - - // check if it's a TTC - if (stbtt_tag(font_collection, "ttcf")) { - // version 1? - if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { - stbtt_int32 n = ttLONG(font_collection+8); - if (index >= n) - return -1; - return ttULONG(font_collection+12+index*4); - } - } - return -1; -} - -static int stbtt_GetNumberOfFonts_internal(unsigned char *font_collection) -{ - // if it's just a font, there's only one valid font - if (stbtt__isfont(font_collection)) - return 1; - - // check if it's a TTC - if (stbtt_tag(font_collection, "ttcf")) { - // version 1? - if (ttULONG(font_collection+4) == 0x00010000 || ttULONG(font_collection+4) == 0x00020000) { - return ttLONG(font_collection+8); - } - } - return 0; -} - -static stbtt__buf stbtt__get_subrs(stbtt__buf cff, stbtt__buf fontdict) -{ - stbtt_uint32 subrsoff = 0, private_loc[2] = { 0, 0 }; - stbtt__buf pdict; - stbtt__dict_get_ints(&fontdict, 18, 2, private_loc); - if (!private_loc[1] || !private_loc[0]) return stbtt__new_buf(NULL, 0); - pdict = stbtt__buf_range(&cff, private_loc[1], private_loc[0]); - stbtt__dict_get_ints(&pdict, 19, 1, &subrsoff); - if (!subrsoff) return stbtt__new_buf(NULL, 0); - stbtt__buf_seek(&cff, private_loc[1]+subrsoff); - return stbtt__cff_get_index(&cff); -} - -static int stbtt_InitFont_internal(stbtt_fontinfo *info, unsigned char *data, int fontstart) -{ - stbtt_uint32 cmap, t; - stbtt_int32 i,numTables; - - info->data = data; - info->fontstart = fontstart; - info->cff = stbtt__new_buf(NULL, 0); - - cmap = stbtt__find_table(data, fontstart, "cmap"); // required - info->loca = stbtt__find_table(data, fontstart, "loca"); // required - info->head = stbtt__find_table(data, fontstart, "head"); // required - info->glyf = stbtt__find_table(data, fontstart, "glyf"); // required - info->hhea = stbtt__find_table(data, fontstart, "hhea"); // required - info->hmtx = stbtt__find_table(data, fontstart, "hmtx"); // required - info->kern = stbtt__find_table(data, fontstart, "kern"); // not required - info->gpos = stbtt__find_table(data, fontstart, "GPOS"); // not required - - if (!cmap || !info->head || !info->hhea || !info->hmtx) - return 0; - if (info->glyf) { - // required for truetype - if (!info->loca) return 0; - } else { - // initialization for CFF / Type2 fonts (OTF) - stbtt__buf b, topdict, topdictidx; - stbtt_uint32 cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; - stbtt_uint32 cff; - - cff = stbtt__find_table(data, fontstart, "CFF "); - if (!cff) return 0; - - info->fontdicts = stbtt__new_buf(NULL, 0); - info->fdselect = stbtt__new_buf(NULL, 0); - - // @TODO this should use size from table (not 512MB) - info->cff = stbtt__new_buf(data+cff, 512*1024*1024); - b = info->cff; - - // read the header - stbtt__buf_skip(&b, 2); - stbtt__buf_seek(&b, stbtt__buf_get8(&b)); // hdrsize - - // @TODO the name INDEX could list multiple fonts, - // but we just use the first one. - stbtt__cff_get_index(&b); // name INDEX - topdictidx = stbtt__cff_get_index(&b); - topdict = stbtt__cff_index_get(topdictidx, 0); - stbtt__cff_get_index(&b); // string INDEX - info->gsubrs = stbtt__cff_get_index(&b); - - stbtt__dict_get_ints(&topdict, 17, 1, &charstrings); - stbtt__dict_get_ints(&topdict, 0x100 | 6, 1, &cstype); - stbtt__dict_get_ints(&topdict, 0x100 | 36, 1, &fdarrayoff); - stbtt__dict_get_ints(&topdict, 0x100 | 37, 1, &fdselectoff); - info->subrs = stbtt__get_subrs(b, topdict); - - // we only support Type 2 charstrings - if (cstype != 2) return 0; - if (charstrings == 0) return 0; - - if (fdarrayoff) { - // looks like a CID font - if (!fdselectoff) return 0; - stbtt__buf_seek(&b, fdarrayoff); - info->fontdicts = stbtt__cff_get_index(&b); - info->fdselect = stbtt__buf_range(&b, fdselectoff, b.size-fdselectoff); - } - - stbtt__buf_seek(&b, charstrings); - info->charstrings = stbtt__cff_get_index(&b); - } - - t = stbtt__find_table(data, fontstart, "maxp"); - if (t) - info->numGlyphs = ttUSHORT(data+t+4); - else - info->numGlyphs = 0xffff; - - // find a cmap encoding table we understand *now* to avoid searching - // later. (todo: could make this installable) - // the same regardless of glyph. - numTables = ttUSHORT(data + cmap + 2); - info->index_map = 0; - for (i=0; i < numTables; ++i) { - stbtt_uint32 encoding_record = cmap + 4 + 8 * i; - // find an encoding we understand: - switch(ttUSHORT(data+encoding_record)) { - case STBTT_PLATFORM_ID_MICROSOFT: - switch (ttUSHORT(data+encoding_record+2)) { - case STBTT_MS_EID_UNICODE_BMP: - case STBTT_MS_EID_UNICODE_FULL: - // MS/Unicode - info->index_map = cmap + ttULONG(data+encoding_record+4); - break; - } - break; - case STBTT_PLATFORM_ID_UNICODE: - // Mac/iOS has these - // all the encodingIDs are unicode, so we don't bother to check it - info->index_map = cmap + ttULONG(data+encoding_record+4); - break; - } - } - if (info->index_map == 0) - return 0; - - info->indexToLocFormat = ttUSHORT(data+info->head + 50); - return 1; -} - -STBTT_DEF int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint) -{ - stbtt_uint8 *data = info->data; - stbtt_uint32 index_map = info->index_map; - - stbtt_uint16 format = ttUSHORT(data + index_map + 0); - if (format == 0) { // apple byte encoding - stbtt_int32 bytes = ttUSHORT(data + index_map + 2); - if (unicode_codepoint < bytes-6) - return ttBYTE(data + index_map + 6 + unicode_codepoint); - return 0; - } else if (format == 6) { - stbtt_uint32 first = ttUSHORT(data + index_map + 6); - stbtt_uint32 count = ttUSHORT(data + index_map + 8); - if ((stbtt_uint32) unicode_codepoint >= first && (stbtt_uint32) unicode_codepoint < first+count) - return ttUSHORT(data + index_map + 10 + (unicode_codepoint - first)*2); - return 0; - } else if (format == 2) { - STBTT_assert(0); // @TODO: high-byte mapping for japanese/chinese/korean - return 0; - } else if (format == 4) { // standard mapping for windows fonts: binary search collection of ranges - stbtt_uint16 segcount = ttUSHORT(data+index_map+6) >> 1; - stbtt_uint16 searchRange = ttUSHORT(data+index_map+8) >> 1; - stbtt_uint16 entrySelector = ttUSHORT(data+index_map+10); - stbtt_uint16 rangeShift = ttUSHORT(data+index_map+12) >> 1; - - // do a binary search of the segments - stbtt_uint32 endCount = index_map + 14; - stbtt_uint32 search = endCount; - - if (unicode_codepoint > 0xffff) - return 0; - - // they lie from endCount .. endCount + segCount - // but searchRange is the nearest power of two, so... - if (unicode_codepoint >= ttUSHORT(data + search + rangeShift*2)) - search += rangeShift*2; - - // now decrement to bias correctly to find smallest - search -= 2; - while (entrySelector) { - stbtt_uint16 end; - searchRange >>= 1; - end = ttUSHORT(data + search + searchRange*2); - if (unicode_codepoint > end) - search += searchRange*2; - --entrySelector; - } - search += 2; - - { - stbtt_uint16 offset, start; - stbtt_uint16 item = (stbtt_uint16) ((search - endCount) >> 1); - - STBTT_assert(unicode_codepoint <= ttUSHORT(data + endCount + 2*item)); - start = ttUSHORT(data + index_map + 14 + segcount*2 + 2 + 2*item); - if (unicode_codepoint < start) - return 0; - - offset = ttUSHORT(data + index_map + 14 + segcount*6 + 2 + 2*item); - if (offset == 0) - return (stbtt_uint16) (unicode_codepoint + ttSHORT(data + index_map + 14 + segcount*4 + 2 + 2*item)); - - return ttUSHORT(data + offset + (unicode_codepoint-start)*2 + index_map + 14 + segcount*6 + 2 + 2*item); - } - } else if (format == 12 || format == 13) { - stbtt_uint32 ngroups = ttULONG(data+index_map+12); - stbtt_int32 low,high; - low = 0; high = (stbtt_int32)ngroups; - // Binary search the right group. - while (low < high) { - stbtt_int32 mid = low + ((high-low) >> 1); // rounds down, so low <= mid < high - stbtt_uint32 start_char = ttULONG(data+index_map+16+mid*12); - stbtt_uint32 end_char = ttULONG(data+index_map+16+mid*12+4); - if ((stbtt_uint32) unicode_codepoint < start_char) - high = mid; - else if ((stbtt_uint32) unicode_codepoint > end_char) - low = mid+1; - else { - stbtt_uint32 start_glyph = ttULONG(data+index_map+16+mid*12+8); - if (format == 12) - return start_glyph + unicode_codepoint-start_char; - else // format == 13 - return start_glyph; - } - } - return 0; // not found - } - // @TODO - STBTT_assert(0); - return 0; -} - -STBTT_DEF int stbtt_GetCodepointShape(const stbtt_fontinfo *info, int unicode_codepoint, stbtt_vertex **vertices) -{ - return stbtt_GetGlyphShape(info, stbtt_FindGlyphIndex(info, unicode_codepoint), vertices); -} - -static void stbtt_setvertex(stbtt_vertex *v, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy) -{ - v->type = type; - v->x = (stbtt_int16) x; - v->y = (stbtt_int16) y; - v->cx = (stbtt_int16) cx; - v->cy = (stbtt_int16) cy; -} - -static int stbtt__GetGlyfOffset(const stbtt_fontinfo *info, int glyph_index) -{ - int g1,g2; - - STBTT_assert(!info->cff.size); - - if (glyph_index >= info->numGlyphs) return -1; // glyph index out of range - if (info->indexToLocFormat >= 2) return -1; // unknown index->glyph map format - - if (info->indexToLocFormat == 0) { - g1 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2) * 2; - g2 = info->glyf + ttUSHORT(info->data + info->loca + glyph_index * 2 + 2) * 2; - } else { - g1 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4); - g2 = info->glyf + ttULONG (info->data + info->loca + glyph_index * 4 + 4); - } - - return g1==g2 ? -1 : g1; // if length is 0, return -1 -} - -static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1); - -STBTT_DEF int stbtt_GetGlyphBox(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) -{ - if (info->cff.size) { - stbtt__GetGlyphInfoT2(info, glyph_index, x0, y0, x1, y1); - } else { - int g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) return 0; - - if (x0) *x0 = ttSHORT(info->data + g + 2); - if (y0) *y0 = ttSHORT(info->data + g + 4); - if (x1) *x1 = ttSHORT(info->data + g + 6); - if (y1) *y1 = ttSHORT(info->data + g + 8); - } - return 1; -} - -STBTT_DEF int stbtt_GetCodepointBox(const stbtt_fontinfo *info, int codepoint, int *x0, int *y0, int *x1, int *y1) -{ - return stbtt_GetGlyphBox(info, stbtt_FindGlyphIndex(info,codepoint), x0,y0,x1,y1); -} - -STBTT_DEF int stbtt_IsGlyphEmpty(const stbtt_fontinfo *info, int glyph_index) -{ - stbtt_int16 numberOfContours; - int g; - if (info->cff.size) - return stbtt__GetGlyphInfoT2(info, glyph_index, NULL, NULL, NULL, NULL) == 0; - g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) return 1; - numberOfContours = ttSHORT(info->data + g); - return numberOfContours == 0; -} - -static int stbtt__close_shape(stbtt_vertex *vertices, int num_vertices, int was_off, int start_off, - stbtt_int32 sx, stbtt_int32 sy, stbtt_int32 scx, stbtt_int32 scy, stbtt_int32 cx, stbtt_int32 cy) -{ - if (start_off) { - if (was_off) - stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+scx)>>1, (cy+scy)>>1, cx,cy); - stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, sx,sy,scx,scy); - } else { - if (was_off) - stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve,sx,sy,cx,cy); - else - stbtt_setvertex(&vertices[num_vertices++], STBTT_vline,sx,sy,0,0); - } - return num_vertices; -} - -static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) -{ - stbtt_int16 numberOfContours; - stbtt_uint8 *endPtsOfContours; - stbtt_uint8 *data = info->data; - stbtt_vertex *vertices=0; - int num_vertices=0; - int g = stbtt__GetGlyfOffset(info, glyph_index); - - *pvertices = NULL; - - if (g < 0) return 0; - - numberOfContours = ttSHORT(data + g); - - if (numberOfContours > 0) { - stbtt_uint8 flags=0,flagcount; - stbtt_int32 ins, i,j=0,m,n, next_move, was_off=0, off, start_off=0; - stbtt_int32 x,y,cx,cy,sx,sy, scx,scy; - stbtt_uint8 *points; - endPtsOfContours = (data + g + 10); - ins = ttUSHORT(data + g + 10 + numberOfContours * 2); - points = data + g + 10 + numberOfContours * 2 + 2 + ins; - - n = 1+ttUSHORT(endPtsOfContours + numberOfContours*2-2); - - m = n + 2*numberOfContours; // a loose bound on how many vertices we might need - vertices = (stbtt_vertex *) STBTT_malloc(m * sizeof(vertices[0]), info->userdata); - if (vertices == 0) - return 0; - - next_move = 0; - flagcount=0; - - // in first pass, we load uninterpreted data into the allocated array - // above, shifted to the end of the array so we won't overwrite it when - // we create our final data starting from the front - - off = m - n; // starting offset for uninterpreted data, regardless of how m ends up being calculated - - // first load flags - - for (i=0; i < n; ++i) { - if (flagcount == 0) { - flags = *points++; - if (flags & 8) - flagcount = *points++; - } else - --flagcount; - vertices[off+i].type = flags; - } - - // now load x coordinates - x=0; - for (i=0; i < n; ++i) { - flags = vertices[off+i].type; - if (flags & 2) { - stbtt_int16 dx = *points++; - x += (flags & 16) ? dx : -dx; // ??? - } else { - if (!(flags & 16)) { - x = x + (stbtt_int16) (points[0]*256 + points[1]); - points += 2; - } - } - vertices[off+i].x = (stbtt_int16) x; - } - - // now load y coordinates - y=0; - for (i=0; i < n; ++i) { - flags = vertices[off+i].type; - if (flags & 4) { - stbtt_int16 dy = *points++; - y += (flags & 32) ? dy : -dy; // ??? - } else { - if (!(flags & 32)) { - y = y + (stbtt_int16) (points[0]*256 + points[1]); - points += 2; - } - } - vertices[off+i].y = (stbtt_int16) y; - } - - // now convert them to our format - num_vertices=0; - sx = sy = cx = cy = scx = scy = 0; - for (i=0; i < n; ++i) { - flags = vertices[off+i].type; - x = (stbtt_int16) vertices[off+i].x; - y = (stbtt_int16) vertices[off+i].y; - - if (next_move == i) { - if (i != 0) - num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); - - // now start the new one - start_off = !(flags & 1); - if (start_off) { - // if we start off with an off-curve point, then when we need to find a point on the curve - // where we can start, and we need to save some state for when we wraparound. - scx = x; - scy = y; - if (!(vertices[off+i+1].type & 1)) { - // next point is also a curve point, so interpolate an on-point curve - sx = (x + (stbtt_int32) vertices[off+i+1].x) >> 1; - sy = (y + (stbtt_int32) vertices[off+i+1].y) >> 1; - } else { - // otherwise just use the next point as our start point - sx = (stbtt_int32) vertices[off+i+1].x; - sy = (stbtt_int32) vertices[off+i+1].y; - ++i; // we're using point i+1 as the starting point, so skip it - } - } else { - sx = x; - sy = y; - } - stbtt_setvertex(&vertices[num_vertices++], STBTT_vmove,sx,sy,0,0); - was_off = 0; - next_move = 1 + ttUSHORT(endPtsOfContours+j*2); - ++j; - } else { - if (!(flags & 1)) { // if it's a curve - if (was_off) // two off-curve control points in a row means interpolate an on-curve midpoint - stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, (cx+x)>>1, (cy+y)>>1, cx, cy); - cx = x; - cy = y; - was_off = 1; - } else { - if (was_off) - stbtt_setvertex(&vertices[num_vertices++], STBTT_vcurve, x,y, cx, cy); - else - stbtt_setvertex(&vertices[num_vertices++], STBTT_vline, x,y,0,0); - was_off = 0; - } - } - } - num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx,sy,scx,scy,cx,cy); - } else if (numberOfContours == -1) { - // Compound shapes. - int more = 1; - stbtt_uint8 *comp = data + g + 10; - num_vertices = 0; - vertices = 0; - while (more) { - stbtt_uint16 flags, gidx; - int comp_num_verts = 0, i; - stbtt_vertex *comp_verts = 0, *tmp = 0; - float mtx[6] = {1,0,0,1,0,0}, m, n; - - flags = ttSHORT(comp); comp+=2; - gidx = ttSHORT(comp); comp+=2; - - if (flags & 2) { // XY values - if (flags & 1) { // shorts - mtx[4] = ttSHORT(comp); comp+=2; - mtx[5] = ttSHORT(comp); comp+=2; - } else { - mtx[4] = ttCHAR(comp); comp+=1; - mtx[5] = ttCHAR(comp); comp+=1; - } - } - else { - // @TODO handle matching point - STBTT_assert(0); - } - if (flags & (1<<3)) { // WE_HAVE_A_SCALE - mtx[0] = mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; - mtx[1] = mtx[2] = 0; - } else if (flags & (1<<6)) { // WE_HAVE_AN_X_AND_YSCALE - mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; - mtx[1] = mtx[2] = 0; - mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; - } else if (flags & (1<<7)) { // WE_HAVE_A_TWO_BY_TWO - mtx[0] = ttSHORT(comp)/16384.0f; comp+=2; - mtx[1] = ttSHORT(comp)/16384.0f; comp+=2; - mtx[2] = ttSHORT(comp)/16384.0f; comp+=2; - mtx[3] = ttSHORT(comp)/16384.0f; comp+=2; - } - - // Find transformation scales. - m = (float) STBTT_sqrt(mtx[0]*mtx[0] + mtx[1]*mtx[1]); - n = (float) STBTT_sqrt(mtx[2]*mtx[2] + mtx[3]*mtx[3]); - - // Get indexed glyph. - comp_num_verts = stbtt_GetGlyphShape(info, gidx, &comp_verts); - if (comp_num_verts > 0) { - // Transform vertices. - for (i = 0; i < comp_num_verts; ++i) { - stbtt_vertex* v = &comp_verts[i]; - stbtt_vertex_type x,y; - x=v->x; y=v->y; - v->x = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); - v->y = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); - x=v->cx; y=v->cy; - v->cx = (stbtt_vertex_type)(m * (mtx[0]*x + mtx[2]*y + mtx[4])); - v->cy = (stbtt_vertex_type)(n * (mtx[1]*x + mtx[3]*y + mtx[5])); - } - // Append vertices. - tmp = (stbtt_vertex*)STBTT_malloc((num_vertices+comp_num_verts)*sizeof(stbtt_vertex), info->userdata); - if (!tmp) { - if (vertices) STBTT_free(vertices, info->userdata); - if (comp_verts) STBTT_free(comp_verts, info->userdata); - return 0; - } - if (num_vertices > 0) STBTT_memcpy(tmp, vertices, num_vertices*sizeof(stbtt_vertex)); //-V595 - STBTT_memcpy(tmp+num_vertices, comp_verts, comp_num_verts*sizeof(stbtt_vertex)); - if (vertices) STBTT_free(vertices, info->userdata); - vertices = tmp; - STBTT_free(comp_verts, info->userdata); - num_vertices += comp_num_verts; - } - // More components ? - more = flags & (1<<5); - } - } else if (numberOfContours < 0) { - // @TODO other compound variations? - STBTT_assert(0); - } else { - // numberOfCounters == 0, do nothing - } - - *pvertices = vertices; - return num_vertices; -} - -typedef struct -{ - int bounds; - int started; - float first_x, first_y; - float x, y; - stbtt_int32 min_x, max_x, min_y, max_y; - - stbtt_vertex *pvertices; - int num_vertices; -} stbtt__csctx; - -#define STBTT__CSCTX_INIT(bounds) {bounds,0, 0,0, 0,0, 0,0,0,0, NULL, 0} - -static void stbtt__track_vertex(stbtt__csctx *c, stbtt_int32 x, stbtt_int32 y) -{ - if (x > c->max_x || !c->started) c->max_x = x; - if (y > c->max_y || !c->started) c->max_y = y; - if (x < c->min_x || !c->started) c->min_x = x; - if (y < c->min_y || !c->started) c->min_y = y; - c->started = 1; -} - -static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1) -{ - if (c->bounds) { - stbtt__track_vertex(c, x, y); - if (type == STBTT_vcubic) { - stbtt__track_vertex(c, cx, cy); - stbtt__track_vertex(c, cx1, cy1); - } - } else { - stbtt_setvertex(&c->pvertices[c->num_vertices], type, x, y, cx, cy); - c->pvertices[c->num_vertices].cx1 = (stbtt_int16) cx1; - c->pvertices[c->num_vertices].cy1 = (stbtt_int16) cy1; - } - c->num_vertices++; -} - -static void stbtt__csctx_close_shape(stbtt__csctx *ctx) -{ - if (ctx->first_x != ctx->x || ctx->first_y != ctx->y) - stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->first_x, (int)ctx->first_y, 0, 0, 0, 0); -} - -static void stbtt__csctx_rmove_to(stbtt__csctx *ctx, float dx, float dy) -{ - stbtt__csctx_close_shape(ctx); - ctx->first_x = ctx->x = ctx->x + dx; - ctx->first_y = ctx->y = ctx->y + dy; - stbtt__csctx_v(ctx, STBTT_vmove, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); -} - -static void stbtt__csctx_rline_to(stbtt__csctx *ctx, float dx, float dy) -{ - ctx->x += dx; - ctx->y += dy; - stbtt__csctx_v(ctx, STBTT_vline, (int)ctx->x, (int)ctx->y, 0, 0, 0, 0); -} - -static void stbtt__csctx_rccurve_to(stbtt__csctx *ctx, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3) -{ - float cx1 = ctx->x + dx1; - float cy1 = ctx->y + dy1; - float cx2 = cx1 + dx2; - float cy2 = cy1 + dy2; - ctx->x = cx2 + dx3; - ctx->y = cy2 + dy3; - stbtt__csctx_v(ctx, STBTT_vcubic, (int)ctx->x, (int)ctx->y, (int)cx1, (int)cy1, (int)cx2, (int)cy2); -} - -static stbtt__buf stbtt__get_subr(stbtt__buf idx, int n) -{ - int count = stbtt__cff_index_count(&idx); - int bias = 107; - if (count >= 33900) - bias = 32768; - else if (count >= 1240) - bias = 1131; - n += bias; - if (n < 0 || n >= count) - return stbtt__new_buf(NULL, 0); - return stbtt__cff_index_get(idx, n); -} - -static stbtt__buf stbtt__cid_get_glyph_subrs(const stbtt_fontinfo *info, int glyph_index) -{ - stbtt__buf fdselect = info->fdselect; - int nranges, start, end, v, fmt, fdselector = -1, i; - - stbtt__buf_seek(&fdselect, 0); - fmt = stbtt__buf_get8(&fdselect); - if (fmt == 0) { - // untested - stbtt__buf_skip(&fdselect, glyph_index); - fdselector = stbtt__buf_get8(&fdselect); - } else if (fmt == 3) { - nranges = stbtt__buf_get16(&fdselect); - start = stbtt__buf_get16(&fdselect); - for (i = 0; i < nranges; i++) { - v = stbtt__buf_get8(&fdselect); - end = stbtt__buf_get16(&fdselect); - if (glyph_index >= start && glyph_index < end) { - fdselector = v; - break; - } - start = end; - } - } - if (fdselector == -1) stbtt__new_buf(NULL, 0); - return stbtt__get_subrs(info->cff, stbtt__cff_index_get(info->fontdicts, fdselector)); -} - -static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, stbtt__csctx *c) -{ - int in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0; - int has_subrs = 0, clear_stack; - float s[48]; - stbtt__buf subr_stack[10], subrs = info->subrs, b; - float f; - -#define STBTT__CSERR(s) (0) - - // this currently ignores the initial width value, which isn't needed if we have hmtx - b = stbtt__cff_index_get(info->charstrings, glyph_index); - while (b.cursor < b.size) { - i = 0; - clear_stack = 1; - b0 = stbtt__buf_get8(&b); - switch (b0) { - // @TODO implement hinting - case 0x13: // hintmask - case 0x14: // cntrmask - if (in_header) - maskbits += (sp / 2); // implicit "vstem" - in_header = 0; - stbtt__buf_skip(&b, (maskbits + 7) / 8); - break; - - case 0x01: // hstem - case 0x03: // vstem - case 0x12: // hstemhm - case 0x17: // vstemhm - maskbits += (sp / 2); - break; - - case 0x15: // rmoveto - in_header = 0; - if (sp < 2) return STBTT__CSERR("rmoveto stack"); - stbtt__csctx_rmove_to(c, s[sp-2], s[sp-1]); - break; - case 0x04: // vmoveto - in_header = 0; - if (sp < 1) return STBTT__CSERR("vmoveto stack"); - stbtt__csctx_rmove_to(c, 0, s[sp-1]); - break; - case 0x16: // hmoveto - in_header = 0; - if (sp < 1) return STBTT__CSERR("hmoveto stack"); - stbtt__csctx_rmove_to(c, s[sp-1], 0); - break; - - case 0x05: // rlineto - if (sp < 2) return STBTT__CSERR("rlineto stack"); - for (; i + 1 < sp; i += 2) - stbtt__csctx_rline_to(c, s[i], s[i+1]); - break; - - // hlineto/vlineto and vhcurveto/hvcurveto alternate horizontal and vertical - // starting from a different place. - - case 0x07: // vlineto - if (sp < 1) return STBTT__CSERR("vlineto stack"); - goto vlineto; - case 0x06: // hlineto - if (sp < 1) return STBTT__CSERR("hlineto stack"); - for (;;) { - if (i >= sp) break; - stbtt__csctx_rline_to(c, s[i], 0); - i++; - vlineto: - if (i >= sp) break; - stbtt__csctx_rline_to(c, 0, s[i]); - i++; - } - break; - - case 0x1F: // hvcurveto - if (sp < 4) return STBTT__CSERR("hvcurveto stack"); - goto hvcurveto; - case 0x1E: // vhcurveto - if (sp < 4) return STBTT__CSERR("vhcurveto stack"); - for (;;) { - if (i + 3 >= sp) break; - stbtt__csctx_rccurve_to(c, 0, s[i], s[i+1], s[i+2], s[i+3], (sp - i == 5) ? s[i + 4] : 0.0f); - i += 4; - hvcurveto: - if (i + 3 >= sp) break; - stbtt__csctx_rccurve_to(c, s[i], 0, s[i+1], s[i+2], (sp - i == 5) ? s[i+4] : 0.0f, s[i+3]); - i += 4; - } - break; - - case 0x08: // rrcurveto - if (sp < 6) return STBTT__CSERR("rcurveline stack"); - for (; i + 5 < sp; i += 6) - stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); - break; - - case 0x18: // rcurveline - if (sp < 8) return STBTT__CSERR("rcurveline stack"); - for (; i + 5 < sp - 2; i += 6) - stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); - if (i + 1 >= sp) return STBTT__CSERR("rcurveline stack"); - stbtt__csctx_rline_to(c, s[i], s[i+1]); - break; - - case 0x19: // rlinecurve - if (sp < 8) return STBTT__CSERR("rlinecurve stack"); - for (; i + 1 < sp - 6; i += 2) - stbtt__csctx_rline_to(c, s[i], s[i+1]); - if (i + 5 >= sp) return STBTT__CSERR("rlinecurve stack"); - stbtt__csctx_rccurve_to(c, s[i], s[i+1], s[i+2], s[i+3], s[i+4], s[i+5]); - break; - - case 0x1A: // vvcurveto - case 0x1B: // hhcurveto - if (sp < 4) return STBTT__CSERR("(vv|hh)curveto stack"); - f = 0.0; - if (sp & 1) { f = s[i]; i++; } - for (; i + 3 < sp; i += 4) { - if (b0 == 0x1B) - stbtt__csctx_rccurve_to(c, s[i], f, s[i+1], s[i+2], s[i+3], 0.0); - else - stbtt__csctx_rccurve_to(c, f, s[i], s[i+1], s[i+2], 0.0, s[i+3]); - f = 0.0; - } - break; - - case 0x0A: // callsubr - if (!has_subrs) { - if (info->fdselect.size) - subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); - has_subrs = 1; - } - // fallthrough - case 0x1D: // callgsubr - if (sp < 1) return STBTT__CSERR("call(g|)subr stack"); - v = (int) s[--sp]; - if (subr_stack_height >= 10) return STBTT__CSERR("recursion limit"); - subr_stack[subr_stack_height++] = b; - b = stbtt__get_subr(b0 == 0x0A ? subrs : info->gsubrs, v); - if (b.size == 0) return STBTT__CSERR("subr not found"); - b.cursor = 0; - clear_stack = 0; - break; - - case 0x0B: // return - if (subr_stack_height <= 0) return STBTT__CSERR("return outside subr"); - b = subr_stack[--subr_stack_height]; - clear_stack = 0; - break; - - case 0x0E: // endchar - stbtt__csctx_close_shape(c); - return 1; - - case 0x0C: { // two-byte escape - float dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6; - float dx, dy; - int b1 = stbtt__buf_get8(&b); - switch (b1) { - // @TODO These "flex" implementations ignore the flex-depth and resolution, - // and always draw beziers. - case 0x22: // hflex - if (sp < 7) return STBTT__CSERR("hflex stack"); - dx1 = s[0]; - dx2 = s[1]; - dy2 = s[2]; - dx3 = s[3]; - dx4 = s[4]; - dx5 = s[5]; - dx6 = s[6]; - stbtt__csctx_rccurve_to(c, dx1, 0, dx2, dy2, dx3, 0); - stbtt__csctx_rccurve_to(c, dx4, 0, dx5, -dy2, dx6, 0); - break; - - case 0x23: // flex - if (sp < 13) return STBTT__CSERR("flex stack"); - dx1 = s[0]; - dy1 = s[1]; - dx2 = s[2]; - dy2 = s[3]; - dx3 = s[4]; - dy3 = s[5]; - dx4 = s[6]; - dy4 = s[7]; - dx5 = s[8]; - dy5 = s[9]; - dx6 = s[10]; - dy6 = s[11]; - //fd is s[12] - stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); - stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); - break; - - case 0x24: // hflex1 - if (sp < 9) return STBTT__CSERR("hflex1 stack"); - dx1 = s[0]; - dy1 = s[1]; - dx2 = s[2]; - dy2 = s[3]; - dx3 = s[4]; - dx4 = s[5]; - dx5 = s[6]; - dy5 = s[7]; - dx6 = s[8]; - stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, 0); - stbtt__csctx_rccurve_to(c, dx4, 0, dx5, dy5, dx6, -(dy1+dy2+dy5)); - break; - - case 0x25: // flex1 - if (sp < 11) return STBTT__CSERR("flex1 stack"); - dx1 = s[0]; - dy1 = s[1]; - dx2 = s[2]; - dy2 = s[3]; - dx3 = s[4]; - dy3 = s[5]; - dx4 = s[6]; - dy4 = s[7]; - dx5 = s[8]; - dy5 = s[9]; - dx6 = dy6 = s[10]; - dx = dx1+dx2+dx3+dx4+dx5; - dy = dy1+dy2+dy3+dy4+dy5; - if (STBTT_fabs(dx) > STBTT_fabs(dy)) - dy6 = -dy; - else - dx6 = -dx; - stbtt__csctx_rccurve_to(c, dx1, dy1, dx2, dy2, dx3, dy3); - stbtt__csctx_rccurve_to(c, dx4, dy4, dx5, dy5, dx6, dy6); - break; - - default: - return STBTT__CSERR("unimplemented"); - } - } break; - - default: - if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) //-V560 - return STBTT__CSERR("reserved operator"); - - // push immediate - if (b0 == 255) { - f = (float)(stbtt_int32)stbtt__buf_get32(&b) / 0x10000; - } else { - stbtt__buf_skip(&b, -1); - f = (float)(stbtt_int16)stbtt__cff_int(&b); - } - if (sp >= 48) return STBTT__CSERR("push stack overflow"); - s[sp++] = f; - clear_stack = 0; - break; - } - if (clear_stack) sp = 0; - } - return STBTT__CSERR("no endchar"); - -#undef STBTT__CSERR -} - -static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) -{ - // runs the charstring twice, once to count and once to output (to avoid realloc) - stbtt__csctx count_ctx = STBTT__CSCTX_INIT(1); - stbtt__csctx output_ctx = STBTT__CSCTX_INIT(0); - if (stbtt__run_charstring(info, glyph_index, &count_ctx)) { - *pvertices = (stbtt_vertex*)STBTT_malloc(count_ctx.num_vertices*sizeof(stbtt_vertex), info->userdata); - output_ctx.pvertices = *pvertices; - if (stbtt__run_charstring(info, glyph_index, &output_ctx)) { - STBTT_assert(output_ctx.num_vertices == count_ctx.num_vertices); - return output_ctx.num_vertices; - } - } - *pvertices = NULL; - return 0; -} - -static int stbtt__GetGlyphInfoT2(const stbtt_fontinfo *info, int glyph_index, int *x0, int *y0, int *x1, int *y1) -{ - stbtt__csctx c = STBTT__CSCTX_INIT(1); - int r = stbtt__run_charstring(info, glyph_index, &c); - if (x0) *x0 = r ? c.min_x : 0; - if (y0) *y0 = r ? c.min_y : 0; - if (x1) *x1 = r ? c.max_x : 0; - if (y1) *y1 = r ? c.max_y : 0; - return r ? c.num_vertices : 0; -} - -STBTT_DEF int stbtt_GetGlyphShape(const stbtt_fontinfo *info, int glyph_index, stbtt_vertex **pvertices) -{ - if (!info->cff.size) - return stbtt__GetGlyphShapeTT(info, glyph_index, pvertices); - else - return stbtt__GetGlyphShapeT2(info, glyph_index, pvertices); -} - -STBTT_DEF void stbtt_GetGlyphHMetrics(const stbtt_fontinfo *info, int glyph_index, int *advanceWidth, int *leftSideBearing) -{ - stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); - if (glyph_index < numOfLongHorMetrics) { - if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*glyph_index); - if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*glyph_index + 2); - } else { - if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-1)); - if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics + 2*(glyph_index - numOfLongHorMetrics)); - } -} - -static int stbtt__GetGlyphKernInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) -{ - stbtt_uint8 *data = info->data + info->kern; - stbtt_uint32 needle, straw; - int l, r, m; - - // we only look at the first table. it must be 'horizontal' and format 0. - if (!info->kern) - return 0; - if (ttUSHORT(data+2) < 1) // number of tables, need at least 1 - return 0; - if (ttUSHORT(data+8) != 1) // horizontal flag must be set in format - return 0; - - l = 0; - r = ttUSHORT(data+10) - 1; - needle = glyph1 << 16 | glyph2; - while (l <= r) { - m = (l + r) >> 1; - straw = ttULONG(data+18+(m*6)); // note: unaligned read - if (needle < straw) - r = m - 1; - else if (needle > straw) - l = m + 1; - else - return ttSHORT(data+22+(m*6)); - } - return 0; -} - -static stbtt_int32 stbtt__GetCoverageIndex(stbtt_uint8 *coverageTable, int glyph) -{ - stbtt_uint16 coverageFormat = ttUSHORT(coverageTable); - switch(coverageFormat) { - case 1: { - stbtt_uint16 glyphCount = ttUSHORT(coverageTable + 2); - - // Binary search. - stbtt_int32 l=0, r=glyphCount-1, m; - int straw, needle=glyph; - while (l <= r) { - stbtt_uint8 *glyphArray = coverageTable + 4; - stbtt_uint16 glyphID; - m = (l + r) >> 1; - glyphID = ttUSHORT(glyphArray + 2 * m); - straw = glyphID; - if (needle < straw) - r = m - 1; - else if (needle > straw) - l = m + 1; - else { - return m; - } - } - } break; - - case 2: { - stbtt_uint16 rangeCount = ttUSHORT(coverageTable + 2); - stbtt_uint8 *rangeArray = coverageTable + 4; - - // Binary search. - stbtt_int32 l=0, r=rangeCount-1, m; - int strawStart, strawEnd, needle=glyph; - while (l <= r) { - stbtt_uint8 *rangeRecord; - m = (l + r) >> 1; - rangeRecord = rangeArray + 6 * m; - strawStart = ttUSHORT(rangeRecord); - strawEnd = ttUSHORT(rangeRecord + 2); - if (needle < strawStart) - r = m - 1; - else if (needle > strawEnd) - l = m + 1; - else { - stbtt_uint16 startCoverageIndex = ttUSHORT(rangeRecord + 4); - return startCoverageIndex + glyph - strawStart; - } - } - } break; - - default: { - // There are no other cases. - STBTT_assert(0); - } break; - } - - return -1; -} - -static stbtt_int32 stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph) -{ - stbtt_uint16 classDefFormat = ttUSHORT(classDefTable); - switch(classDefFormat) - { - case 1: { - stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2); - stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4); - stbtt_uint8 *classDef1ValueArray = classDefTable + 6; - - if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount) - return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID)); - - // [DEAR IMGUI] Commented to fix static analyzer warning - //classDefTable = classDef1ValueArray + 2 * glyphCount; - } break; - - case 2: { - stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2); - stbtt_uint8 *classRangeRecords = classDefTable + 4; - - // Binary search. - stbtt_int32 l=0, r=classRangeCount-1, m; - int strawStart, strawEnd, needle=glyph; - while (l <= r) { - stbtt_uint8 *classRangeRecord; - m = (l + r) >> 1; - classRangeRecord = classRangeRecords + 6 * m; - strawStart = ttUSHORT(classRangeRecord); - strawEnd = ttUSHORT(classRangeRecord + 2); - if (needle < strawStart) - r = m - 1; - else if (needle > strawEnd) - l = m + 1; - else - return (stbtt_int32)ttUSHORT(classRangeRecord + 4); - } - - // [DEAR IMGUI] Commented to fix static analyzer warning - //classDefTable = classRangeRecords + 6 * classRangeCount; - } break; - - default: { - // There are no other cases. - STBTT_assert(0); - } break; - } - - return -1; -} - -// Define to STBTT_assert(x) if you want to break on unimplemented formats. -#define STBTT_GPOS_TODO_assert(x) - -static stbtt_int32 stbtt__GetGlyphGPOSInfoAdvance(const stbtt_fontinfo *info, int glyph1, int glyph2) -{ - stbtt_uint16 lookupListOffset; - stbtt_uint8 *lookupList; - stbtt_uint16 lookupCount; - stbtt_uint8 *data; - stbtt_int32 i; - - if (!info->gpos) return 0; - - data = info->data + info->gpos; - - if (ttUSHORT(data+0) != 1) return 0; // Major version 1 - if (ttUSHORT(data+2) != 0) return 0; // Minor version 0 - - lookupListOffset = ttUSHORT(data+8); - lookupList = data + lookupListOffset; - lookupCount = ttUSHORT(lookupList); - - for (i=0; i> 1; - pairValue = pairValueArray + (2 + valueRecordPairSizeInBytes) * m; - secondGlyph = ttUSHORT(pairValue); - straw = secondGlyph; - if (needle < straw) - r = m - 1; - else if (needle > straw) - l = m + 1; - else { - stbtt_int16 xAdvance = ttSHORT(pairValue + 2); - return xAdvance; - } - } - } break; - - case 2: { - stbtt_uint16 valueFormat1 = ttUSHORT(table + 4); - stbtt_uint16 valueFormat2 = ttUSHORT(table + 6); - - stbtt_uint16 classDef1Offset = ttUSHORT(table + 8); - stbtt_uint16 classDef2Offset = ttUSHORT(table + 10); - int glyph1class = stbtt__GetGlyphClass(table + classDef1Offset, glyph1); - int glyph2class = stbtt__GetGlyphClass(table + classDef2Offset, glyph2); - - stbtt_uint16 class1Count = ttUSHORT(table + 12); - stbtt_uint16 class2Count = ttUSHORT(table + 14); - STBTT_assert(glyph1class < class1Count); - STBTT_assert(glyph2class < class2Count); - - // TODO: Support more formats. - STBTT_GPOS_TODO_assert(valueFormat1 == 4); - if (valueFormat1 != 4) return 0; - STBTT_GPOS_TODO_assert(valueFormat2 == 0); - if (valueFormat2 != 0) return 0; - - if (glyph1class >= 0 && glyph1class < class1Count && glyph2class >= 0 && glyph2class < class2Count) { - stbtt_uint8 *class1Records = table + 16; - stbtt_uint8 *class2Records = class1Records + 2 * (glyph1class * class2Count); - stbtt_int16 xAdvance = ttSHORT(class2Records + 2 * glyph2class); - return xAdvance; - } - } break; - - default: { - // There are no other cases. - STBTT_assert(0); - break; - } // [DEAR IMGUI] removed ; - } - } - break; - } // [DEAR IMGUI] removed ; - - default: - // TODO: Implement other stuff. - break; - } - } - - return 0; -} - -STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int g2) -{ - int xAdvance = 0; - - if (info->gpos) - xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2); - - if (info->kern) - xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2); - - return xAdvance; -} - -STBTT_DEF int stbtt_GetCodepointKernAdvance(const stbtt_fontinfo *info, int ch1, int ch2) -{ - if (!info->kern && !info->gpos) // if no kerning table, don't waste time looking up both codepoint->glyphs - return 0; - return stbtt_GetGlyphKernAdvance(info, stbtt_FindGlyphIndex(info,ch1), stbtt_FindGlyphIndex(info,ch2)); -} - -STBTT_DEF void stbtt_GetCodepointHMetrics(const stbtt_fontinfo *info, int codepoint, int *advanceWidth, int *leftSideBearing) -{ - stbtt_GetGlyphHMetrics(info, stbtt_FindGlyphIndex(info,codepoint), advanceWidth, leftSideBearing); -} - -STBTT_DEF void stbtt_GetFontVMetrics(const stbtt_fontinfo *info, int *ascent, int *descent, int *lineGap) -{ - if (ascent ) *ascent = ttSHORT(info->data+info->hhea + 4); - if (descent) *descent = ttSHORT(info->data+info->hhea + 6); - if (lineGap) *lineGap = ttSHORT(info->data+info->hhea + 8); -} - -STBTT_DEF int stbtt_GetFontVMetricsOS2(const stbtt_fontinfo *info, int *typoAscent, int *typoDescent, int *typoLineGap) -{ - int tab = stbtt__find_table(info->data, info->fontstart, "OS/2"); - if (!tab) - return 0; - if (typoAscent ) *typoAscent = ttSHORT(info->data+tab + 68); - if (typoDescent) *typoDescent = ttSHORT(info->data+tab + 70); - if (typoLineGap) *typoLineGap = ttSHORT(info->data+tab + 72); - return 1; -} - -STBTT_DEF void stbtt_GetFontBoundingBox(const stbtt_fontinfo *info, int *x0, int *y0, int *x1, int *y1) -{ - *x0 = ttSHORT(info->data + info->head + 36); - *y0 = ttSHORT(info->data + info->head + 38); - *x1 = ttSHORT(info->data + info->head + 40); - *y1 = ttSHORT(info->data + info->head + 42); -} - -STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float height) -{ - int fheight = ttSHORT(info->data + info->hhea + 4) - ttSHORT(info->data + info->hhea + 6); - return (float) height / fheight; -} - -STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels) -{ - int unitsPerEm = ttUSHORT(info->data + info->head + 18); - return pixels / unitsPerEm; -} - -STBTT_DEF void stbtt_FreeShape(const stbtt_fontinfo *info, stbtt_vertex *v) -{ - STBTT_free(v, info->userdata); -} - -////////////////////////////////////////////////////////////////////////////// -// -// antialiasing software rasterizer -// - -STBTT_DEF void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y,float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) -{ - int x0=0,y0=0,x1,y1; // =0 suppresses compiler warning - if (!stbtt_GetGlyphBox(font, glyph, &x0,&y0,&x1,&y1)) { - // e.g. space character - if (ix0) *ix0 = 0; - if (iy0) *iy0 = 0; - if (ix1) *ix1 = 0; - if (iy1) *iy1 = 0; - } else { - // move to integral bboxes (treating pixels as little squares, what pixels get touched)? - if (ix0) *ix0 = STBTT_ifloor( x0 * scale_x + shift_x); - if (iy0) *iy0 = STBTT_ifloor(-y1 * scale_y + shift_y); - if (ix1) *ix1 = STBTT_iceil ( x1 * scale_x + shift_x); - if (iy1) *iy1 = STBTT_iceil (-y0 * scale_y + shift_y); - } -} - -STBTT_DEF void stbtt_GetGlyphBitmapBox(const stbtt_fontinfo *font, int glyph, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) -{ - stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y,0.0f,0.0f, ix0, iy0, ix1, iy1); -} - -STBTT_DEF void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, float shift_x, float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) -{ - stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font,codepoint), scale_x, scale_y,shift_x,shift_y, ix0,iy0,ix1,iy1); -} - -STBTT_DEF void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo *font, int codepoint, float scale_x, float scale_y, int *ix0, int *iy0, int *ix1, int *iy1) -{ - stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y,0.0f,0.0f, ix0,iy0,ix1,iy1); -} - -////////////////////////////////////////////////////////////////////////////// -// -// Rasterizer - -typedef struct stbtt__hheap_chunk -{ - struct stbtt__hheap_chunk *next; -} stbtt__hheap_chunk; - -typedef struct stbtt__hheap -{ - struct stbtt__hheap_chunk *head; - void *first_free; - int num_remaining_in_head_chunk; -} stbtt__hheap; - -static void *stbtt__hheap_alloc(stbtt__hheap *hh, size_t size, void *userdata) -{ - if (hh->first_free) { - void *p = hh->first_free; - hh->first_free = * (void **) p; - return p; - } else { - if (hh->num_remaining_in_head_chunk == 0) { - int count = (size < 32 ? 2000 : size < 128 ? 800 : 100); - stbtt__hheap_chunk *c = (stbtt__hheap_chunk *) STBTT_malloc(sizeof(stbtt__hheap_chunk) + size * count, userdata); - if (c == NULL) - return NULL; - c->next = hh->head; - hh->head = c; - hh->num_remaining_in_head_chunk = count; - } - --hh->num_remaining_in_head_chunk; - return (char *) (hh->head) + sizeof(stbtt__hheap_chunk) + size * hh->num_remaining_in_head_chunk; - } -} - -static void stbtt__hheap_free(stbtt__hheap *hh, void *p) -{ - *(void **) p = hh->first_free; - hh->first_free = p; -} - -static void stbtt__hheap_cleanup(stbtt__hheap *hh, void *userdata) -{ - stbtt__hheap_chunk *c = hh->head; - while (c) { - stbtt__hheap_chunk *n = c->next; - STBTT_free(c, userdata); - c = n; - } -} - -typedef struct stbtt__edge { - float x0,y0, x1,y1; - int invert; -} stbtt__edge; - - -typedef struct stbtt__active_edge -{ - struct stbtt__active_edge *next; - #if STBTT_RASTERIZER_VERSION==1 - int x,dx; - float ey; - int direction; - #elif STBTT_RASTERIZER_VERSION==2 - float fx,fdx,fdy; - float direction; - float sy; - float ey; - #else - #error "Unrecognized value of STBTT_RASTERIZER_VERSION" - #endif -} stbtt__active_edge; - -#if STBTT_RASTERIZER_VERSION == 1 -#define STBTT_FIXSHIFT 10 -#define STBTT_FIX (1 << STBTT_FIXSHIFT) -#define STBTT_FIXMASK (STBTT_FIX-1) - -static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) -{ - stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); - float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); - STBTT_assert(z != NULL); - if (!z) return z; - - // round dx down to avoid overshooting - if (dxdy < 0) - z->dx = -STBTT_ifloor(STBTT_FIX * -dxdy); - else - z->dx = STBTT_ifloor(STBTT_FIX * dxdy); - - z->x = STBTT_ifloor(STBTT_FIX * e->x0 + z->dx * (start_point - e->y0)); // use z->dx so when we offset later it's by the same amount - z->x -= off_x * STBTT_FIX; - - z->ey = e->y1; - z->next = 0; - z->direction = e->invert ? 1 : -1; - return z; -} -#elif STBTT_RASTERIZER_VERSION == 2 -static stbtt__active_edge *stbtt__new_active(stbtt__hheap *hh, stbtt__edge *e, int off_x, float start_point, void *userdata) -{ - stbtt__active_edge *z = (stbtt__active_edge *) stbtt__hheap_alloc(hh, sizeof(*z), userdata); - float dxdy = (e->x1 - e->x0) / (e->y1 - e->y0); - STBTT_assert(z != NULL); - //STBTT_assert(e->y0 <= start_point); - if (!z) return z; - z->fdx = dxdy; - z->fdy = dxdy != 0.0f ? (1.0f/dxdy) : 0.0f; - z->fx = e->x0 + dxdy * (start_point - e->y0); - z->fx -= off_x; - z->direction = e->invert ? 1.0f : -1.0f; - z->sy = e->y0; - z->ey = e->y1; - z->next = 0; - return z; -} -#else -#error "Unrecognized value of STBTT_RASTERIZER_VERSION" -#endif - -#if STBTT_RASTERIZER_VERSION == 1 -// note: this routine clips fills that extend off the edges... ideally this -// wouldn't happen, but it could happen if the truetype glyph bounding boxes -// are wrong, or if the user supplies a too-small bitmap -static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int max_weight) -{ - // non-zero winding fill - int x0=0, w=0; - - while (e) { - if (w == 0) { - // if we're currently at zero, we need to record the edge start point - x0 = e->x; w += e->direction; - } else { - int x1 = e->x; w += e->direction; - // if we went to zero, we need to draw - if (w == 0) { - int i = x0 >> STBTT_FIXSHIFT; - int j = x1 >> STBTT_FIXSHIFT; - - if (i < len && j >= 0) { - if (i == j) { - // x0,x1 are the same pixel, so compute combined coverage - scanline[i] = scanline[i] + (stbtt_uint8) ((x1 - x0) * max_weight >> STBTT_FIXSHIFT); - } else { - if (i >= 0) // add antialiasing for x0 - scanline[i] = scanline[i] + (stbtt_uint8) (((STBTT_FIX - (x0 & STBTT_FIXMASK)) * max_weight) >> STBTT_FIXSHIFT); - else - i = -1; // clip - - if (j < len) // add antialiasing for x1 - scanline[j] = scanline[j] + (stbtt_uint8) (((x1 & STBTT_FIXMASK) * max_weight) >> STBTT_FIXSHIFT); - else - j = len; // clip - - for (++i; i < j; ++i) // fill pixels between x0 and x1 - scanline[i] = scanline[i] + (stbtt_uint8) max_weight; - } - } - } - } - - e = e->next; - } -} - -static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) -{ - stbtt__hheap hh = { 0, 0, 0 }; - stbtt__active_edge *active = NULL; - int y,j=0; - int max_weight = (255 / vsubsample); // weight per vertical scanline - int s; // vertical subsample index - unsigned char scanline_data[512], *scanline; - - if (result->w > 512) - scanline = (unsigned char *) STBTT_malloc(result->w, userdata); - else - scanline = scanline_data; - - y = off_y * vsubsample; - e[n].y0 = (off_y + result->h) * (float) vsubsample + 1; - - while (j < result->h) { - STBTT_memset(scanline, 0, result->w); - for (s=0; s < vsubsample; ++s) { - // find center of pixel for this scanline - float scan_y = y + 0.5f; - stbtt__active_edge **step = &active; - - // update all active edges; - // remove all active edges that terminate before the center of this scanline - while (*step) { - stbtt__active_edge * z = *step; - if (z->ey <= scan_y) { - *step = z->next; // delete from list - STBTT_assert(z->direction); - z->direction = 0; - stbtt__hheap_free(&hh, z); - } else { - z->x += z->dx; // advance to position for current scanline - step = &((*step)->next); // advance through list - } - } - - // resort the list if needed - for(;;) { - int changed=0; - step = &active; - while (*step && (*step)->next) { - if ((*step)->x > (*step)->next->x) { - stbtt__active_edge *t = *step; - stbtt__active_edge *q = t->next; - - t->next = q->next; - q->next = t; - *step = q; - changed = 1; - } - step = &(*step)->next; - } - if (!changed) break; - } - - // insert all edges that start before the center of this scanline -- omit ones that also end on this scanline - while (e->y0 <= scan_y) { - if (e->y1 > scan_y) { - stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y, userdata); - if (z != NULL) { - // find insertion point - if (active == NULL) - active = z; - else if (z->x < active->x) { - // insert at front - z->next = active; - active = z; - } else { - // find thing to insert AFTER - stbtt__active_edge *p = active; - while (p->next && p->next->x < z->x) - p = p->next; - // at this point, p->next->x is NOT < z->x - z->next = p->next; - p->next = z; - } - } - } - ++e; - } - - // now process all active edges in XOR fashion - if (active) - stbtt__fill_active_edges(scanline, result->w, active, max_weight); - - ++y; - } - STBTT_memcpy(result->pixels + j * result->stride, scanline, result->w); - ++j; - } - - stbtt__hheap_cleanup(&hh, userdata); - - if (scanline != scanline_data) - STBTT_free(scanline, userdata); -} - -#elif STBTT_RASTERIZER_VERSION == 2 - -// the edge passed in here does not cross the vertical line at x or the vertical line at x+1 -// (i.e. it has already been clipped to those) -static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1) -{ - if (y0 == y1) return; - STBTT_assert(y0 < y1); - STBTT_assert(e->sy <= e->ey); - if (y0 > e->ey) return; - if (y1 < e->sy) return; - if (y0 < e->sy) { - x0 += (x1-x0) * (e->sy - y0) / (y1-y0); - y0 = e->sy; - } - if (y1 > e->ey) { - x1 += (x1-x0) * (e->ey - y1) / (y1-y0); - y1 = e->ey; - } - - if (x0 == x) - STBTT_assert(x1 <= x+1); - else if (x0 == x+1) - STBTT_assert(x1 >= x); - else if (x0 <= x) - STBTT_assert(x1 <= x); - else if (x0 >= x+1) - STBTT_assert(x1 >= x+1); - else - STBTT_assert(x1 >= x && x1 <= x+1); - - if (x0 <= x && x1 <= x) - scanline[x] += e->direction * (y1-y0); - else if (x0 >= x+1 && x1 >= x+1) - ; - else { - STBTT_assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1); - scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); // coverage = 1 - average x position - } -} - -static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__active_edge *e, float y_top) -{ - float y_bottom = y_top+1; - - while (e) { - // brute force every pixel - - // compute intersection points with top & bottom - STBTT_assert(e->ey >= y_top); - - if (e->fdx == 0) { - float x0 = e->fx; - if (x0 < len) { - if (x0 >= 0) { - stbtt__handle_clipped_edge(scanline,(int) x0,e, x0,y_top, x0,y_bottom); - stbtt__handle_clipped_edge(scanline_fill-1,(int) x0+1,e, x0,y_top, x0,y_bottom); - } else { - stbtt__handle_clipped_edge(scanline_fill-1,0,e, x0,y_top, x0,y_bottom); - } - } - } else { - float x0 = e->fx; - float dx = e->fdx; - float xb = x0 + dx; - float x_top, x_bottom; - float sy0,sy1; - float dy = e->fdy; - STBTT_assert(e->sy <= y_bottom && e->ey >= y_top); - - // compute endpoints of line segment clipped to this scanline (if the - // line segment starts on this scanline. x0 is the intersection of the - // line with y_top, but that may be off the line segment. - if (e->sy > y_top) { - x_top = x0 + dx * (e->sy - y_top); - sy0 = e->sy; - } else { - x_top = x0; - sy0 = y_top; - } - if (e->ey < y_bottom) { - x_bottom = x0 + dx * (e->ey - y_top); - sy1 = e->ey; - } else { - x_bottom = xb; - sy1 = y_bottom; - } - - if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { - // from here on, we don't have to range check x values - - if ((int) x_top == (int) x_bottom) { - float height; - // simple case, only spans one pixel - int x = (int) x_top; - height = sy1 - sy0; - STBTT_assert(x >= 0 && x < len); - scanline[x] += e->direction * (1-((x_top - x) + (x_bottom-x))/2) * height; - scanline_fill[x] += e->direction * height; // everything right of this pixel is filled - } else { - int x,x1,x2; - float y_crossing, step, sign, area; - // covers 2+ pixels - if (x_top > x_bottom) { - // flip scanline vertically; signed area is the same - float t; - sy0 = y_bottom - (sy0 - y_top); - sy1 = y_bottom - (sy1 - y_top); - t = sy0, sy0 = sy1, sy1 = t; - t = x_bottom, x_bottom = x_top, x_top = t; - dx = -dx; - dy = -dy; - t = x0, x0 = xb, xb = t; - // [DEAR IMGUI] Fix static analyzer warning - (void)dx; // [ImGui: fix static analyzer warning] - } - - x1 = (int) x_top; - x2 = (int) x_bottom; - // compute intersection with y axis at x1+1 - y_crossing = (x1+1 - x0) * dy + y_top; - - sign = e->direction; - // area of the rectangle covered from y0..y_crossing - area = sign * (y_crossing-sy0); - // area of the triangle (x_top,y0), (x+1,y0), (x+1,y_crossing) - scanline[x1] += area * (1-((x_top - x1)+(x1+1-x1))/2); - - step = sign * dy; - for (x = x1+1; x < x2; ++x) { - scanline[x] += area + step/2; - area += step; - } - y_crossing += dy * (x2 - (x1+1)); - - STBTT_assert(STBTT_fabs(area) <= 1.01f); - - scanline[x2] += area + sign * (1-((x2-x2)+(x_bottom-x2))/2) * (sy1-y_crossing); - - scanline_fill[x2] += sign * (sy1-sy0); - } - } else { - // if edge goes outside of box we're drawing, we require - // clipping logic. since this does not match the intended use - // of this library, we use a different, very slow brute - // force implementation - int x; - for (x=0; x < len; ++x) { - // cases: - // - // there can be up to two intersections with the pixel. any intersection - // with left or right edges can be handled by splitting into two (or three) - // regions. intersections with top & bottom do not necessitate case-wise logic. - // - // the old way of doing this found the intersections with the left & right edges, - // then used some simple logic to produce up to three segments in sorted order - // from top-to-bottom. however, this had a problem: if an x edge was epsilon - // across the x border, then the corresponding y position might not be distinct - // from the other y segment, and it might ignored as an empty segment. to avoid - // that, we need to explicitly produce segments based on x positions. - - // rename variables to clearly-defined pairs - float y0 = y_top; - float x1 = (float) (x); - float x2 = (float) (x+1); - float x3 = xb; - float y3 = y_bottom; - - // x = e->x + e->dx * (y-y_top) - // (y-y_top) = (x - e->x) / e->dx - // y = (x - e->x) / e->dx + y_top - float y1 = (x - x0) / dx + y_top; - float y2 = (x+1 - x0) / dx + y_top; - - if (x0 < x1 && x3 > x2) { // three segments descending down-right - stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); - stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x2,y2); - stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); - } else if (x3 < x1 && x0 > x2) { // three segments descending down-left - stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); - stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x1,y1); - stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); - } else if (x0 < x1 && x3 > x1) { // two segments across x, down-right - stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); - stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); - } else if (x3 < x1 && x0 > x1) { // two segments across x, down-left - stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); - stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); - } else if (x0 < x2 && x3 > x2) { // two segments across x+1, down-right - stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); - stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); - } else if (x3 < x2 && x0 > x2) { // two segments across x+1, down-left - stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); - stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); - } else { // one segment - stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x3,y3); - } - } - } - } - e = e->next; - } -} - -// directly AA rasterize edges w/o supersampling -static void stbtt__rasterize_sorted_edges(stbtt__bitmap *result, stbtt__edge *e, int n, int vsubsample, int off_x, int off_y, void *userdata) -{ - stbtt__hheap hh = { 0, 0, 0 }; - stbtt__active_edge *active = NULL; - int y,j=0, i; - float scanline_data[129], *scanline, *scanline2; - - STBTT__NOTUSED(vsubsample); - - if (result->w > 64) - scanline = (float *) STBTT_malloc((result->w*2+1) * sizeof(float), userdata); - else - scanline = scanline_data; - - scanline2 = scanline + result->w; - - y = off_y; - e[n].y0 = (float) (off_y + result->h) + 1; - - while (j < result->h) { - // find center of pixel for this scanline - float scan_y_top = y + 0.0f; - float scan_y_bottom = y + 1.0f; - stbtt__active_edge **step = &active; - - STBTT_memset(scanline , 0, result->w*sizeof(scanline[0])); - STBTT_memset(scanline2, 0, (result->w+1)*sizeof(scanline[0])); - - // update all active edges; - // remove all active edges that terminate before the top of this scanline - while (*step) { - stbtt__active_edge * z = *step; - if (z->ey <= scan_y_top) { - *step = z->next; // delete from list - STBTT_assert(z->direction); - z->direction = 0; - stbtt__hheap_free(&hh, z); - } else { - step = &((*step)->next); // advance through list - } - } - - // insert all edges that start before the bottom of this scanline - while (e->y0 <= scan_y_bottom) { - if (e->y0 != e->y1) { - stbtt__active_edge *z = stbtt__new_active(&hh, e, off_x, scan_y_top, userdata); - if (z != NULL) { - if (j == 0 && off_y != 0) { - if (z->ey < scan_y_top) { - // this can happen due to subpixel positioning and some kind of fp rounding error i think - z->ey = scan_y_top; - } - } - STBTT_assert(z->ey >= scan_y_top); // if we get really unlucky a tiny bit of an edge can be out of bounds - // insert at front - z->next = active; - active = z; - } - } - ++e; - } - - // now process all active edges - if (active) - stbtt__fill_active_edges_new(scanline, scanline2+1, result->w, active, scan_y_top); - - { - float sum = 0; - for (i=0; i < result->w; ++i) { - float k; - int m; - sum += scanline2[i]; - k = scanline[i] + sum; - k = (float) STBTT_fabs(k)*255 + 0.5f; - m = (int) k; - if (m > 255) m = 255; - result->pixels[j*result->stride + i] = (unsigned char) m; - } - } - // advance all the edges - step = &active; - while (*step) { - stbtt__active_edge *z = *step; - z->fx += z->fdx; // advance to position for current scanline - step = &((*step)->next); // advance through list - } - - ++y; - ++j; - } - - stbtt__hheap_cleanup(&hh, userdata); - - if (scanline != scanline_data) - STBTT_free(scanline, userdata); -} -#else -#error "Unrecognized value of STBTT_RASTERIZER_VERSION" -#endif - -#define STBTT__COMPARE(a,b) ((a)->y0 < (b)->y0) - -static void stbtt__sort_edges_ins_sort(stbtt__edge *p, int n) -{ - int i,j; - for (i=1; i < n; ++i) { - stbtt__edge t = p[i], *a = &t; - j = i; - while (j > 0) { - stbtt__edge *b = &p[j-1]; - int c = STBTT__COMPARE(a,b); - if (!c) break; - p[j] = p[j-1]; - --j; - } - if (i != j) - p[j] = t; - } -} - -static void stbtt__sort_edges_quicksort(stbtt__edge *p, int n) -{ - /* threshold for transitioning to insertion sort */ - while (n > 12) { - stbtt__edge t; - int c01,c12,c,m,i,j; - - /* compute median of three */ - m = n >> 1; - c01 = STBTT__COMPARE(&p[0],&p[m]); - c12 = STBTT__COMPARE(&p[m],&p[n-1]); - /* if 0 >= mid >= end, or 0 < mid < end, then use mid */ - if (c01 != c12) { - /* otherwise, we'll need to swap something else to middle */ - int z; - c = STBTT__COMPARE(&p[0],&p[n-1]); - /* 0>mid && midn => n; 0 0 */ - /* 0n: 0>n => 0; 0 n */ - z = (c == c12) ? 0 : n-1; - t = p[z]; - p[z] = p[m]; - p[m] = t; - } - /* now p[m] is the median-of-three */ - /* swap it to the beginning so it won't move around */ - t = p[0]; - p[0] = p[m]; - p[m] = t; - - /* partition loop */ - i=1; - j=n-1; - for(;;) { - /* handling of equality is crucial here */ - /* for sentinels & efficiency with duplicates */ - for (;;++i) { - if (!STBTT__COMPARE(&p[i], &p[0])) break; - } - for (;;--j) { - if (!STBTT__COMPARE(&p[0], &p[j])) break; - } - /* make sure we haven't crossed */ - if (i >= j) break; - t = p[i]; - p[i] = p[j]; - p[j] = t; - - ++i; - --j; - } - /* recurse on smaller side, iterate on larger */ - if (j < (n-i)) { - stbtt__sort_edges_quicksort(p,j); - p = p+i; - n = n-i; - } else { - stbtt__sort_edges_quicksort(p+i, n-i); - n = j; - } - } -} - -static void stbtt__sort_edges(stbtt__edge *p, int n) -{ - stbtt__sort_edges_quicksort(p, n); - stbtt__sort_edges_ins_sort(p, n); -} - -typedef struct -{ - float x,y; -} stbtt__point; - -static void stbtt__rasterize(stbtt__bitmap *result, stbtt__point *pts, int *wcount, int windings, float scale_x, float scale_y, float shift_x, float shift_y, int off_x, int off_y, int invert, void *userdata) -{ - float y_scale_inv = invert ? -scale_y : scale_y; - stbtt__edge *e; - int n,i,j,k,m; -#if STBTT_RASTERIZER_VERSION == 1 - int vsubsample = result->h < 8 ? 15 : 5; -#elif STBTT_RASTERIZER_VERSION == 2 - int vsubsample = 1; -#else - #error "Unrecognized value of STBTT_RASTERIZER_VERSION" -#endif - // vsubsample should divide 255 evenly; otherwise we won't reach full opacity - - // now we have to blow out the windings into explicit edge lists - n = 0; - for (i=0; i < windings; ++i) - n += wcount[i]; - - e = (stbtt__edge *) STBTT_malloc(sizeof(*e) * (n+1), userdata); // add an extra one as a sentinel - if (e == 0) return; - n = 0; - - m=0; - for (i=0; i < windings; ++i) { - stbtt__point *p = pts + m; - m += wcount[i]; - j = wcount[i]-1; - for (k=0; k < wcount[i]; j=k++) { - int a=k,b=j; - // skip the edge if horizontal - if (p[j].y == p[k].y) - continue; - // add edge from j to k to the list - e[n].invert = 0; - if (invert ? p[j].y > p[k].y : p[j].y < p[k].y) { - e[n].invert = 1; - a=j,b=k; - } - e[n].x0 = p[a].x * scale_x + shift_x; - e[n].y0 = (p[a].y * y_scale_inv + shift_y) * vsubsample; - e[n].x1 = p[b].x * scale_x + shift_x; - e[n].y1 = (p[b].y * y_scale_inv + shift_y) * vsubsample; - ++n; - } - } - - // now sort the edges by their highest point (should snap to integer, and then by x) - //STBTT_sort(e, n, sizeof(e[0]), stbtt__edge_compare); - stbtt__sort_edges(e, n); - - // now, traverse the scanlines and find the intersections on each scanline, use xor winding rule - stbtt__rasterize_sorted_edges(result, e, n, vsubsample, off_x, off_y, userdata); - - STBTT_free(e, userdata); -} - -static void stbtt__add_point(stbtt__point *points, int n, float x, float y) -{ - if (!points) return; // during first pass, it's unallocated - points[n].x = x; - points[n].y = y; -} - -// tessellate until threshold p is happy... @TODO warped to compensate for non-linear stretching -static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n) -{ - // midpoint - float mx = (x0 + 2*x1 + x2)/4; - float my = (y0 + 2*y1 + y2)/4; - // versus directly drawn line - float dx = (x0+x2)/2 - mx; - float dy = (y0+y2)/2 - my; - if (n > 16) // 65536 segments on one curve better be enough! - return 1; - if (dx*dx+dy*dy > objspace_flatness_squared) { // half-pixel error allowed... need to be smaller if AA - stbtt__tesselate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1); - stbtt__tesselate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1); - } else { - stbtt__add_point(points, *num_points,x2,y2); - *num_points = *num_points+1; - } - return 1; -} - -static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n) -{ - // @TODO this "flatness" calculation is just made-up nonsense that seems to work well enough - float dx0 = x1-x0; - float dy0 = y1-y0; - float dx1 = x2-x1; - float dy1 = y2-y1; - float dx2 = x3-x2; - float dy2 = y3-y2; - float dx = x3-x0; - float dy = y3-y0; - float longlen = (float) (STBTT_sqrt(dx0*dx0+dy0*dy0)+STBTT_sqrt(dx1*dx1+dy1*dy1)+STBTT_sqrt(dx2*dx2+dy2*dy2)); - float shortlen = (float) STBTT_sqrt(dx*dx+dy*dy); - float flatness_squared = longlen*longlen-shortlen*shortlen; - - if (n > 16) // 65536 segments on one curve better be enough! - return; - - if (flatness_squared > objspace_flatness_squared) { - float x01 = (x0+x1)/2; - float y01 = (y0+y1)/2; - float x12 = (x1+x2)/2; - float y12 = (y1+y2)/2; - float x23 = (x2+x3)/2; - float y23 = (y2+y3)/2; - - float xa = (x01+x12)/2; - float ya = (y01+y12)/2; - float xb = (x12+x23)/2; - float yb = (y12+y23)/2; - - float mx = (xa+xb)/2; - float my = (ya+yb)/2; - - stbtt__tesselate_cubic(points, num_points, x0,y0, x01,y01, xa,ya, mx,my, objspace_flatness_squared,n+1); - stbtt__tesselate_cubic(points, num_points, mx,my, xb,yb, x23,y23, x3,y3, objspace_flatness_squared,n+1); - } else { - stbtt__add_point(points, *num_points,x3,y3); - *num_points = *num_points+1; - } -} - -// returns number of contours -static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) -{ - stbtt__point *points=0; - int num_points=0; - - float objspace_flatness_squared = objspace_flatness * objspace_flatness; - int i,n=0,start=0, pass; - - // count how many "moves" there are to get the contour count - for (i=0; i < num_verts; ++i) - if (vertices[i].type == STBTT_vmove) - ++n; - - *num_contours = n; - if (n == 0) return 0; - - *contour_lengths = (int *) STBTT_malloc(sizeof(**contour_lengths) * n, userdata); - - if (*contour_lengths == 0) { - *num_contours = 0; - return 0; - } - - // make two passes through the points so we don't need to realloc - for (pass=0; pass < 2; ++pass) { - float x=0,y=0; - if (pass == 1) { - points = (stbtt__point *) STBTT_malloc(num_points * sizeof(points[0]), userdata); - if (points == NULL) goto error; - } - num_points = 0; - n= -1; - for (i=0; i < num_verts; ++i) { - switch (vertices[i].type) { - case STBTT_vmove: - // start the next contour - if (n >= 0) - (*contour_lengths)[n] = num_points - start; - ++n; - start = num_points; - - x = vertices[i].x, y = vertices[i].y; - stbtt__add_point(points, num_points++, x,y); - break; - case STBTT_vline: - x = vertices[i].x, y = vertices[i].y; - stbtt__add_point(points, num_points++, x, y); - break; - case STBTT_vcurve: - stbtt__tesselate_curve(points, &num_points, x,y, - vertices[i].cx, vertices[i].cy, - vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - case STBTT_vcubic: - stbtt__tesselate_cubic(points, &num_points, x,y, - vertices[i].cx, vertices[i].cy, - vertices[i].cx1, vertices[i].cy1, - vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - } - } - (*contour_lengths)[n] = num_points - start; - } - - return points; -error: - STBTT_free(points, userdata); - STBTT_free(*contour_lengths, userdata); - *contour_lengths = 0; - *num_contours = 0; - return NULL; -} - -STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels, stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y, float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata) -{ - float scale = scale_x > scale_y ? scale_y : scale_x; - int winding_count = 0; - int *winding_lengths = NULL; - stbtt__point *windings = stbtt_FlattenCurves(vertices, num_verts, flatness_in_pixels / scale, &winding_lengths, &winding_count, userdata); - if (windings) { - stbtt__rasterize(result, windings, winding_lengths, winding_count, scale_x, scale_y, shift_x, shift_y, x_off, y_off, invert, userdata); - STBTT_free(winding_lengths, userdata); - STBTT_free(windings, userdata); - } -} - -STBTT_DEF void stbtt_FreeBitmap(unsigned char *bitmap, void *userdata) -{ - STBTT_free(bitmap, userdata); -} - -STBTT_DEF unsigned char *stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int glyph, int *width, int *height, int *xoff, int *yoff) -{ - int ix0,iy0,ix1,iy1; - stbtt__bitmap gbm; - stbtt_vertex *vertices; - int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); - - if (scale_x == 0) scale_x = scale_y; - if (scale_y == 0) { - if (scale_x == 0) { - STBTT_free(vertices, info->userdata); - return NULL; - } - scale_y = scale_x; - } - - stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,&ix1,&iy1); - - // now we get the size - gbm.w = (ix1 - ix0); - gbm.h = (iy1 - iy0); - gbm.pixels = NULL; // in case we error - - if (width ) *width = gbm.w; - if (height) *height = gbm.h; - if (xoff ) *xoff = ix0; - if (yoff ) *yoff = iy0; - - if (gbm.w && gbm.h) { - gbm.pixels = (unsigned char *) STBTT_malloc(gbm.w * gbm.h, info->userdata); - if (gbm.pixels) { - gbm.stride = gbm.w; - - stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0, iy0, 1, info->userdata); - } - } - STBTT_free(vertices, info->userdata); - return gbm.pixels; -} - -STBTT_DEF unsigned char *stbtt_GetGlyphBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int glyph, int *width, int *height, int *xoff, int *yoff) -{ - return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y, 0.0f, 0.0f, glyph, width, height, xoff, yoff); -} - -STBTT_DEF void stbtt_MakeGlyphBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int glyph) -{ - int ix0,iy0; - stbtt_vertex *vertices; - int num_verts = stbtt_GetGlyphShape(info, glyph, &vertices); - stbtt__bitmap gbm; - - stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y, &ix0,&iy0,0,0); - gbm.pixels = output; - gbm.w = out_w; - gbm.h = out_h; - gbm.stride = out_stride; - - if (gbm.w && gbm.h) - stbtt_Rasterize(&gbm, 0.35f, vertices, num_verts, scale_x, scale_y, shift_x, shift_y, ix0,iy0, 1, info->userdata); - - STBTT_free(vertices, info->userdata); -} - -STBTT_DEF void stbtt_MakeGlyphBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int glyph) -{ - stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, glyph); -} - -STBTT_DEF unsigned char *stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo *info, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint, int *width, int *height, int *xoff, int *yoff) -{ - return stbtt_GetGlyphBitmapSubpixel(info, scale_x, scale_y,shift_x,shift_y, stbtt_FindGlyphIndex(info,codepoint), width,height,xoff,yoff); -} - -STBTT_DEF void stbtt_MakeCodepointBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, float *sub_x, float *sub_y, int codepoint) -{ - stbtt_MakeGlyphBitmapSubpixelPrefilter(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, oversample_x, oversample_y, sub_x, sub_y, stbtt_FindGlyphIndex(info,codepoint)); -} - -STBTT_DEF void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoint) -{ - stbtt_MakeGlyphBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info,codepoint)); -} - -STBTT_DEF unsigned char *stbtt_GetCodepointBitmap(const stbtt_fontinfo *info, float scale_x, float scale_y, int codepoint, int *width, int *height, int *xoff, int *yoff) -{ - return stbtt_GetCodepointBitmapSubpixel(info, scale_x, scale_y, 0.0f,0.0f, codepoint, width,height,xoff,yoff); -} - -STBTT_DEF void stbtt_MakeCodepointBitmap(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, int codepoint) -{ - stbtt_MakeCodepointBitmapSubpixel(info, output, out_w, out_h, out_stride, scale_x, scale_y, 0.0f,0.0f, codepoint); -} - -////////////////////////////////////////////////////////////////////////////// -// -// bitmap baking -// -// This is SUPER-CRAPPY packing to keep source code small - -static int stbtt_BakeFontBitmap_internal(unsigned char *data, int offset, // font location (use offset=0 for plain .ttf) - float pixel_height, // height of font in pixels - unsigned char *pixels, int pw, int ph, // bitmap to be filled in - int first_char, int num_chars, // characters to bake - stbtt_bakedchar *chardata) -{ - float scale; - int x,y,bottom_y, i; - stbtt_fontinfo f; - f.userdata = NULL; - if (!stbtt_InitFont(&f, data, offset)) - return -1; - STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels - x=y=1; - bottom_y = 1; - - scale = stbtt_ScaleForPixelHeight(&f, pixel_height); - - for (i=0; i < num_chars; ++i) { - int advance, lsb, x0,y0,x1,y1,gw,gh; - int g = stbtt_FindGlyphIndex(&f, first_char + i); - stbtt_GetGlyphHMetrics(&f, g, &advance, &lsb); - stbtt_GetGlyphBitmapBox(&f, g, scale,scale, &x0,&y0,&x1,&y1); - gw = x1-x0; - gh = y1-y0; - if (x + gw + 1 >= pw) - y = bottom_y, x = 1; // advance to next row - if (y + gh + 1 >= ph) // check if it fits vertically AFTER potentially moving to next row - return -i; - STBTT_assert(x+gw < pw); - STBTT_assert(y+gh < ph); - stbtt_MakeGlyphBitmap(&f, pixels+x+y*pw, gw,gh,pw, scale,scale, g); - chardata[i].x0 = (stbtt_int16) x; - chardata[i].y0 = (stbtt_int16) y; - chardata[i].x1 = (stbtt_int16) (x + gw); - chardata[i].y1 = (stbtt_int16) (y + gh); - chardata[i].xadvance = scale * advance; - chardata[i].xoff = (float) x0; - chardata[i].yoff = (float) y0; - x = x + gw + 1; - if (y+gh+1 > bottom_y) - bottom_y = y+gh+1; - } - return bottom_y; -} - -STBTT_DEF void stbtt_GetBakedQuad(const stbtt_bakedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int opengl_fillrule) -{ - float d3d_bias = opengl_fillrule ? 0 : -0.5f; - float ipw = 1.0f / pw, iph = 1.0f / ph; - const stbtt_bakedchar *b = chardata + char_index; - int round_x = STBTT_ifloor((*xpos + b->xoff) + 0.5f); - int round_y = STBTT_ifloor((*ypos + b->yoff) + 0.5f); - - q->x0 = round_x + d3d_bias; - q->y0 = round_y + d3d_bias; - q->x1 = round_x + b->x1 - b->x0 + d3d_bias; - q->y1 = round_y + b->y1 - b->y0 + d3d_bias; - - q->s0 = b->x0 * ipw; - q->t0 = b->y0 * iph; - q->s1 = b->x1 * ipw; - q->t1 = b->y1 * iph; - - *xpos += b->xadvance; -} - -////////////////////////////////////////////////////////////////////////////// -// -// rectangle packing replacement routines if you don't have stb_rect_pack.h -// - -#ifndef STB_RECT_PACK_VERSION - -typedef int stbrp_coord; - -//////////////////////////////////////////////////////////////////////////////////// -// // -// // -// COMPILER WARNING ?!?!? // -// // -// // -// if you get a compile warning due to these symbols being defined more than // -// once, move #include "stb_rect_pack.h" before #include "stb_truetype.h" // -// // -//////////////////////////////////////////////////////////////////////////////////// - -typedef struct -{ - int width,height; - int x,y,bottom_y; -} stbrp_context; - -typedef struct -{ - unsigned char x; -} stbrp_node; - -struct stbrp_rect -{ - stbrp_coord x,y; - int id,w,h,was_packed; -}; - -static void stbrp_init_target(stbrp_context *con, int pw, int ph, stbrp_node *nodes, int num_nodes) -{ - con->width = pw; - con->height = ph; - con->x = 0; - con->y = 0; - con->bottom_y = 0; - STBTT__NOTUSED(nodes); - STBTT__NOTUSED(num_nodes); -} - -static void stbrp_pack_rects(stbrp_context *con, stbrp_rect *rects, int num_rects) -{ - int i; - for (i=0; i < num_rects; ++i) { - if (con->x + rects[i].w > con->width) { - con->x = 0; - con->y = con->bottom_y; - } - if (con->y + rects[i].h > con->height) - break; - rects[i].x = con->x; - rects[i].y = con->y; - rects[i].was_packed = 1; - con->x += rects[i].w; - if (con->y + rects[i].h > con->bottom_y) - con->bottom_y = con->y + rects[i].h; - } - for ( ; i < num_rects; ++i) - rects[i].was_packed = 0; -} -#endif - -////////////////////////////////////////////////////////////////////////////// -// -// bitmap baking -// -// This is SUPER-AWESOME (tm Ryan Gordon) packing using stb_rect_pack.h. If -// stb_rect_pack.h isn't available, it uses the BakeFontBitmap strategy. - -STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int stride_in_bytes, int padding, void *alloc_context) -{ - stbrp_context *context = (stbrp_context *) STBTT_malloc(sizeof(*context) ,alloc_context); - int num_nodes = pw - padding; - stbrp_node *nodes = (stbrp_node *) STBTT_malloc(sizeof(*nodes ) * num_nodes,alloc_context); - - if (context == NULL || nodes == NULL) { - if (context != NULL) STBTT_free(context, alloc_context); - if (nodes != NULL) STBTT_free(nodes , alloc_context); - return 0; - } - - spc->user_allocator_context = alloc_context; - spc->width = pw; - spc->height = ph; - spc->pixels = pixels; - spc->pack_info = context; - spc->nodes = nodes; - spc->padding = padding; - spc->stride_in_bytes = stride_in_bytes != 0 ? stride_in_bytes : pw; - spc->h_oversample = 1; - spc->v_oversample = 1; - spc->skip_missing = 0; - - stbrp_init_target(context, pw-padding, ph-padding, nodes, num_nodes); - - if (pixels) - STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels - - return 1; -} - -STBTT_DEF void stbtt_PackEnd (stbtt_pack_context *spc) -{ - STBTT_free(spc->nodes , spc->user_allocator_context); - STBTT_free(spc->pack_info, spc->user_allocator_context); -} - -STBTT_DEF void stbtt_PackSetOversampling(stbtt_pack_context *spc, unsigned int h_oversample, unsigned int v_oversample) -{ - STBTT_assert(h_oversample <= STBTT_MAX_OVERSAMPLE); - STBTT_assert(v_oversample <= STBTT_MAX_OVERSAMPLE); - if (h_oversample <= STBTT_MAX_OVERSAMPLE) - spc->h_oversample = h_oversample; - if (v_oversample <= STBTT_MAX_OVERSAMPLE) - spc->v_oversample = v_oversample; -} - -STBTT_DEF void stbtt_PackSetSkipMissingCodepoints(stbtt_pack_context *spc, int skip) -{ - spc->skip_missing = skip; -} - -#define STBTT__OVER_MASK (STBTT_MAX_OVERSAMPLE-1) - -static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) -{ - unsigned char buffer[STBTT_MAX_OVERSAMPLE]; - int safe_w = w - kernel_width; - int j; - STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze - for (j=0; j < h; ++j) { - int i; - unsigned int total; - STBTT_memset(buffer, 0, kernel_width); - - total = 0; - - // make kernel_width a constant in common cases so compiler can optimize out the divide - switch (kernel_width) { - case 2: - for (i=0; i <= safe_w; ++i) { - total += pixels[i] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; - pixels[i] = (unsigned char) (total / 2); - } - break; - case 3: - for (i=0; i <= safe_w; ++i) { - total += pixels[i] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; - pixels[i] = (unsigned char) (total / 3); - } - break; - case 4: - for (i=0; i <= safe_w; ++i) { - total += pixels[i] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; - pixels[i] = (unsigned char) (total / 4); - } - break; - case 5: - for (i=0; i <= safe_w; ++i) { - total += pixels[i] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; - pixels[i] = (unsigned char) (total / 5); - } - break; - default: - for (i=0; i <= safe_w; ++i) { - total += pixels[i] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; - pixels[i] = (unsigned char) (total / kernel_width); - } - break; - } - - for (; i < w; ++i) { - STBTT_assert(pixels[i] == 0); - total -= buffer[i & STBTT__OVER_MASK]; - pixels[i] = (unsigned char) (total / kernel_width); - } - - pixels += stride_in_bytes; - } -} - -static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width) -{ - unsigned char buffer[STBTT_MAX_OVERSAMPLE]; - int safe_h = h - kernel_width; - int j; - STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze - for (j=0; j < w; ++j) { - int i; - unsigned int total; - STBTT_memset(buffer, 0, kernel_width); - - total = 0; - - // make kernel_width a constant in common cases so compiler can optimize out the divide - switch (kernel_width) { - case 2: - for (i=0; i <= safe_h; ++i) { - total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; - pixels[i*stride_in_bytes] = (unsigned char) (total / 2); - } - break; - case 3: - for (i=0; i <= safe_h; ++i) { - total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; - pixels[i*stride_in_bytes] = (unsigned char) (total / 3); - } - break; - case 4: - for (i=0; i <= safe_h; ++i) { - total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; - pixels[i*stride_in_bytes] = (unsigned char) (total / 4); - } - break; - case 5: - for (i=0; i <= safe_h; ++i) { - total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; - pixels[i*stride_in_bytes] = (unsigned char) (total / 5); - } - break; - default: - for (i=0; i <= safe_h; ++i) { - total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; - buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; - pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); - } - break; - } - - for (; i < h; ++i) { - STBTT_assert(pixels[i*stride_in_bytes] == 0); - total -= buffer[i & STBTT__OVER_MASK]; - pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); - } - - pixels += 1; - } -} - -static float stbtt__oversample_shift(int oversample) -{ - if (!oversample) - return 0.0f; - - // The prefilter is a box filter of width "oversample", - // which shifts phase by (oversample - 1)/2 pixels in - // oversampled space. We want to shift in the opposite - // direction to counter this. - return (float)-(oversample - 1) / (2.0f * (float)oversample); -} - -// rects array must be big enough to accommodate all characters in the given ranges -STBTT_DEF int stbtt_PackFontRangesGatherRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) -{ - int i,j,k; - - k=0; - for (i=0; i < num_ranges; ++i) { - float fh = ranges[i].font_size; - float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); - ranges[i].h_oversample = (unsigned char) spc->h_oversample; - ranges[i].v_oversample = (unsigned char) spc->v_oversample; - for (j=0; j < ranges[i].num_chars; ++j) { - int x0,y0,x1,y1; - int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; - int glyph = stbtt_FindGlyphIndex(info, codepoint); - if (glyph == 0 && spc->skip_missing) { - rects[k].w = rects[k].h = 0; - } else { - stbtt_GetGlyphBitmapBoxSubpixel(info,glyph, - scale * spc->h_oversample, - scale * spc->v_oversample, - 0,0, - &x0,&y0,&x1,&y1); - rects[k].w = (stbrp_coord) (x1-x0 + spc->padding + spc->h_oversample-1); - rects[k].h = (stbrp_coord) (y1-y0 + spc->padding + spc->v_oversample-1); - } - ++k; - } - } - - return k; -} - -STBTT_DEF void stbtt_MakeGlyphBitmapSubpixelPrefilter(const stbtt_fontinfo *info, unsigned char *output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int prefilter_x, int prefilter_y, float *sub_x, float *sub_y, int glyph) -{ - stbtt_MakeGlyphBitmapSubpixel(info, - output, - out_w - (prefilter_x - 1), - out_h - (prefilter_y - 1), - out_stride, - scale_x, - scale_y, - shift_x, - shift_y, - glyph); - - if (prefilter_x > 1) - stbtt__h_prefilter(output, out_w, out_h, out_stride, prefilter_x); - - if (prefilter_y > 1) - stbtt__v_prefilter(output, out_w, out_h, out_stride, prefilter_y); - - *sub_x = stbtt__oversample_shift(prefilter_x); - *sub_y = stbtt__oversample_shift(prefilter_y); -} - -// rects array must be big enough to accommodate all characters in the given ranges -STBTT_DEF int stbtt_PackFontRangesRenderIntoRects(stbtt_pack_context *spc, const stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rects) -{ - int i,j,k, return_value = 1; - - // save current values - int old_h_over = spc->h_oversample; - int old_v_over = spc->v_oversample; - - k = 0; - for (i=0; i < num_ranges; ++i) { - float fh = ranges[i].font_size; - float scale = fh > 0 ? stbtt_ScaleForPixelHeight(info, fh) : stbtt_ScaleForMappingEmToPixels(info, -fh); - float recip_h,recip_v,sub_x,sub_y; - spc->h_oversample = ranges[i].h_oversample; - spc->v_oversample = ranges[i].v_oversample; - recip_h = 1.0f / spc->h_oversample; - recip_v = 1.0f / spc->v_oversample; - sub_x = stbtt__oversample_shift(spc->h_oversample); - sub_y = stbtt__oversample_shift(spc->v_oversample); - for (j=0; j < ranges[i].num_chars; ++j) { - stbrp_rect *r = &rects[k]; - if (r->was_packed && r->w != 0 && r->h != 0) { - stbtt_packedchar *bc = &ranges[i].chardata_for_range[j]; - int advance, lsb, x0,y0,x1,y1; - int codepoint = ranges[i].array_of_unicode_codepoints == NULL ? ranges[i].first_unicode_codepoint_in_range + j : ranges[i].array_of_unicode_codepoints[j]; - int glyph = stbtt_FindGlyphIndex(info, codepoint); - stbrp_coord pad = (stbrp_coord) spc->padding; - - // pad on left and top - r->x += pad; - r->y += pad; - r->w -= pad; - r->h -= pad; - stbtt_GetGlyphHMetrics(info, glyph, &advance, &lsb); - stbtt_GetGlyphBitmapBox(info, glyph, - scale * spc->h_oversample, - scale * spc->v_oversample, - &x0,&y0,&x1,&y1); - stbtt_MakeGlyphBitmapSubpixel(info, - spc->pixels + r->x + r->y*spc->stride_in_bytes, - r->w - spc->h_oversample+1, - r->h - spc->v_oversample+1, - spc->stride_in_bytes, - scale * spc->h_oversample, - scale * spc->v_oversample, - 0,0, - glyph); - - if (spc->h_oversample > 1) - stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, - r->w, r->h, spc->stride_in_bytes, - spc->h_oversample); - - if (spc->v_oversample > 1) - stbtt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, - r->w, r->h, spc->stride_in_bytes, - spc->v_oversample); - - bc->x0 = (stbtt_int16) r->x; - bc->y0 = (stbtt_int16) r->y; - bc->x1 = (stbtt_int16) (r->x + r->w); - bc->y1 = (stbtt_int16) (r->y + r->h); - bc->xadvance = scale * advance; - bc->xoff = (float) x0 * recip_h + sub_x; - bc->yoff = (float) y0 * recip_v + sub_y; - bc->xoff2 = (x0 + r->w) * recip_h + sub_x; - bc->yoff2 = (y0 + r->h) * recip_v + sub_y; - } else { - return_value = 0; // if any fail, report failure - } - - ++k; - } - } - - // restore original values - spc->h_oversample = old_h_over; - spc->v_oversample = old_v_over; - - return return_value; -} - -STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context *spc, stbrp_rect *rects, int num_rects) -{ - stbrp_pack_rects((stbrp_context *) spc->pack_info, rects, num_rects); -} - -STBTT_DEF int stbtt_PackFontRanges(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) -{ - stbtt_fontinfo info; - int i,j,n, return_value; // [DEAR IMGUI] removed = 1 - //stbrp_context *context = (stbrp_context *) spc->pack_info; - stbrp_rect *rects; - - // flag all characters as NOT packed - for (i=0; i < num_ranges; ++i) - for (j=0; j < ranges[i].num_chars; ++j) - ranges[i].chardata_for_range[j].x0 = - ranges[i].chardata_for_range[j].y0 = - ranges[i].chardata_for_range[j].x1 = - ranges[i].chardata_for_range[j].y1 = 0; - - n = 0; - for (i=0; i < num_ranges; ++i) - n += ranges[i].num_chars; - - rects = (stbrp_rect *) STBTT_malloc(sizeof(*rects) * n, spc->user_allocator_context); - if (rects == NULL) - return 0; - - info.userdata = spc->user_allocator_context; - stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata,font_index)); - - n = stbtt_PackFontRangesGatherRects(spc, &info, ranges, num_ranges, rects); - - stbtt_PackFontRangesPackRects(spc, rects, n); - - return_value = stbtt_PackFontRangesRenderIntoRects(spc, &info, ranges, num_ranges, rects); - - STBTT_free(rects, spc->user_allocator_context); - return return_value; -} - -STBTT_DEF int stbtt_PackFontRange(stbtt_pack_context *spc, const unsigned char *fontdata, int font_index, float font_size, - int first_unicode_codepoint_in_range, int num_chars_in_range, stbtt_packedchar *chardata_for_range) -{ - stbtt_pack_range range; - range.first_unicode_codepoint_in_range = first_unicode_codepoint_in_range; - range.array_of_unicode_codepoints = NULL; - range.num_chars = num_chars_in_range; - range.chardata_for_range = chardata_for_range; - range.font_size = font_size; - return stbtt_PackFontRanges(spc, fontdata, font_index, &range, 1); -} - -STBTT_DEF void stbtt_GetScaledFontVMetrics(const unsigned char *fontdata, int index, float size, float *ascent, float *descent, float *lineGap) -{ - int i_ascent, i_descent, i_lineGap; - float scale; - stbtt_fontinfo info; - stbtt_InitFont(&info, fontdata, stbtt_GetFontOffsetForIndex(fontdata, index)); - scale = size > 0 ? stbtt_ScaleForPixelHeight(&info, size) : stbtt_ScaleForMappingEmToPixels(&info, -size); - stbtt_GetFontVMetrics(&info, &i_ascent, &i_descent, &i_lineGap); - *ascent = (float) i_ascent * scale; - *descent = (float) i_descent * scale; - *lineGap = (float) i_lineGap * scale; -} - -STBTT_DEF void stbtt_GetPackedQuad(const stbtt_packedchar *chardata, int pw, int ph, int char_index, float *xpos, float *ypos, stbtt_aligned_quad *q, int align_to_integer) -{ - float ipw = 1.0f / pw, iph = 1.0f / ph; - const stbtt_packedchar *b = chardata + char_index; - - if (align_to_integer) { - float x = (float) STBTT_ifloor((*xpos + b->xoff) + 0.5f); - float y = (float) STBTT_ifloor((*ypos + b->yoff) + 0.5f); - q->x0 = x; - q->y0 = y; - q->x1 = x + b->xoff2 - b->xoff; - q->y1 = y + b->yoff2 - b->yoff; - } else { - q->x0 = *xpos + b->xoff; - q->y0 = *ypos + b->yoff; - q->x1 = *xpos + b->xoff2; - q->y1 = *ypos + b->yoff2; - } - - q->s0 = b->x0 * ipw; - q->t0 = b->y0 * iph; - q->s1 = b->x1 * ipw; - q->t1 = b->y1 * iph; - - *xpos += b->xadvance; -} - -////////////////////////////////////////////////////////////////////////////// -// -// sdf computation -// - -#define STBTT_min(a,b) ((a) < (b) ? (a) : (b)) -#define STBTT_max(a,b) ((a) < (b) ? (b) : (a)) - -static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], float q1[2], float q2[2], float hits[2][2]) -{ - float q0perp = q0[1]*ray[0] - q0[0]*ray[1]; - float q1perp = q1[1]*ray[0] - q1[0]*ray[1]; - float q2perp = q2[1]*ray[0] - q2[0]*ray[1]; - float roperp = orig[1]*ray[0] - orig[0]*ray[1]; - - float a = q0perp - 2*q1perp + q2perp; - float b = q1perp - q0perp; - float c = q0perp - roperp; - - float s0 = 0., s1 = 0.; - int num_s = 0; - - if (a != 0.0) { - float discr = b*b - a*c; - if (discr > 0.0) { - float rcpna = -1 / a; - float d = (float) STBTT_sqrt(discr); - s0 = (b+d) * rcpna; - s1 = (b-d) * rcpna; - if (s0 >= 0.0 && s0 <= 1.0) - num_s = 1; - if (d > 0.0 && s1 >= 0.0 && s1 <= 1.0) { - if (num_s == 0) s0 = s1; - ++num_s; - } - } - } else { - // 2*b*s + c = 0 - // s = -c / (2*b) - s0 = c / (-2 * b); - if (s0 >= 0.0 && s0 <= 1.0) - num_s = 1; - } - - if (num_s == 0) - return 0; - else { - float rcp_len2 = 1 / (ray[0]*ray[0] + ray[1]*ray[1]); - float rayn_x = ray[0] * rcp_len2, rayn_y = ray[1] * rcp_len2; - - float q0d = q0[0]*rayn_x + q0[1]*rayn_y; - float q1d = q1[0]*rayn_x + q1[1]*rayn_y; - float q2d = q2[0]*rayn_x + q2[1]*rayn_y; - float rod = orig[0]*rayn_x + orig[1]*rayn_y; - - float q10d = q1d - q0d; - float q20d = q2d - q0d; - float q0rd = q0d - rod; - - hits[0][0] = q0rd + s0*(2.0f - 2.0f*s0)*q10d + s0*s0*q20d; - hits[0][1] = a*s0+b; - - if (num_s > 1) { - hits[1][0] = q0rd + s1*(2.0f - 2.0f*s1)*q10d + s1*s1*q20d; - hits[1][1] = a*s1+b; - return 2; - } else { - return 1; - } - } -} - -static int equal(float *a, float *b) -{ - return (a[0] == b[0] && a[1] == b[1]); -} - -static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex *verts) -{ - int i; - float orig[2], ray[2] = { 1, 0 }; - float y_frac; - int winding = 0; - - orig[0] = x; - //orig[1] = y; // [DEAR IMGUI] commented double assignment - - // make sure y never passes through a vertex of the shape - y_frac = (float) STBTT_fmod(y, 1.0f); - if (y_frac < 0.01f) - y += 0.01f; - else if (y_frac > 0.99f) - y -= 0.01f; - orig[1] = y; - - // test a ray from (-infinity,y) to (x,y) - for (i=0; i < nverts; ++i) { - if (verts[i].type == STBTT_vline) { - int x0 = (int) verts[i-1].x, y0 = (int) verts[i-1].y; - int x1 = (int) verts[i ].x, y1 = (int) verts[i ].y; - if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { - float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; - if (x_inter < x) - winding += (y0 < y1) ? 1 : -1; - } - } - if (verts[i].type == STBTT_vcurve) { - int x0 = (int) verts[i-1].x , y0 = (int) verts[i-1].y ; - int x1 = (int) verts[i ].cx, y1 = (int) verts[i ].cy; - int x2 = (int) verts[i ].x , y2 = (int) verts[i ].y ; - int ax = STBTT_min(x0,STBTT_min(x1,x2)), ay = STBTT_min(y0,STBTT_min(y1,y2)); - int by = STBTT_max(y0,STBTT_max(y1,y2)); - if (y > ay && y < by && x > ax) { - float q0[2],q1[2],q2[2]; - float hits[2][2]; - q0[0] = (float)x0; - q0[1] = (float)y0; - q1[0] = (float)x1; - q1[1] = (float)y1; - q2[0] = (float)x2; - q2[1] = (float)y2; - if (equal(q0,q1) || equal(q1,q2)) { - x0 = (int)verts[i-1].x; - y0 = (int)verts[i-1].y; - x1 = (int)verts[i ].x; - y1 = (int)verts[i ].y; - if (y > STBTT_min(y0,y1) && y < STBTT_max(y0,y1) && x > STBTT_min(x0,x1)) { - float x_inter = (y - y0) / (y1 - y0) * (x1-x0) + x0; - if (x_inter < x) - winding += (y0 < y1) ? 1 : -1; - } - } else { - int num_hits = stbtt__ray_intersect_bezier(orig, ray, q0, q1, q2, hits); - if (num_hits >= 1) - if (hits[0][0] < 0) - winding += (hits[0][1] < 0 ? -1 : 1); - if (num_hits >= 2) - if (hits[1][0] < 0) - winding += (hits[1][1] < 0 ? -1 : 1); - } - } - } - } - return winding; -} - -static float stbtt__cuberoot( float x ) -{ - if (x<0) - return -(float) STBTT_pow(-x,1.0f/3.0f); - else - return (float) STBTT_pow( x,1.0f/3.0f); -} - -// x^3 + c*x^2 + b*x + a = 0 -static int stbtt__solve_cubic(float a, float b, float c, float* r) -{ - float s = -a / 3; - float p = b - a*a / 3; - float q = a * (2*a*a - 9*b) / 27 + c; - float p3 = p*p*p; - float d = q*q + 4*p3 / 27; - if (d >= 0) { - float z = (float) STBTT_sqrt(d); - float u = (-q + z) / 2; - float v = (-q - z) / 2; - u = stbtt__cuberoot(u); - v = stbtt__cuberoot(v); - r[0] = s + u + v; - return 1; - } else { - float u = (float) STBTT_sqrt(-p/3); - float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative - float m = (float) STBTT_cos(v); - float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; - r[0] = s + u * 2 * m; - r[1] = s - u * (m + n); - r[2] = s - u * (m - n); - - //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? - //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); - //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); - return 3; - } -} - -STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, int glyph, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) -{ - float scale_x = scale, scale_y = scale; - int ix0,iy0,ix1,iy1; - int w,h; - unsigned char *data; - - // if one scale is 0, use same scale for both - if (scale_x == 0) scale_x = scale_y; - if (scale_y == 0) { - if (scale_x == 0) return NULL; // if both scales are 0, return NULL - scale_y = scale_x; - } - - stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale, scale, 0.0f,0.0f, &ix0,&iy0,&ix1,&iy1); - - // if empty, return NULL - if (ix0 == ix1 || iy0 == iy1) - return NULL; - - ix0 -= padding; - iy0 -= padding; - ix1 += padding; - iy1 += padding; - - w = (ix1 - ix0); - h = (iy1 - iy0); - - if (width ) *width = w; - if (height) *height = h; - if (xoff ) *xoff = ix0; - if (yoff ) *yoff = iy0; - - // invert for y-downwards bitmaps - scale_y = -scale_y; - - { - int x,y,i,j; - float *precompute; - stbtt_vertex *verts; - int num_verts = stbtt_GetGlyphShape(info, glyph, &verts); - data = (unsigned char *) STBTT_malloc(w * h, info->userdata); - precompute = (float *) STBTT_malloc(num_verts * sizeof(float), info->userdata); - - for (i=0,j=num_verts-1; i < num_verts; j=i++) { - if (verts[i].type == STBTT_vline) { - float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; - float x1 = verts[j].x*scale_x, y1 = verts[j].y*scale_y; - float dist = (float) STBTT_sqrt((x1-x0)*(x1-x0) + (y1-y0)*(y1-y0)); - precompute[i] = (dist == 0) ? 0.0f : 1.0f / dist; - } else if (verts[i].type == STBTT_vcurve) { - float x2 = verts[j].x *scale_x, y2 = verts[j].y *scale_y; - float x1 = verts[i].cx*scale_x, y1 = verts[i].cy*scale_y; - float x0 = verts[i].x *scale_x, y0 = verts[i].y *scale_y; - float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; - float len2 = bx*bx + by*by; - if (len2 != 0.0f) - precompute[i] = 1.0f / (bx*bx + by*by); - else - precompute[i] = 0.0f; - } else - precompute[i] = 0.0f; - } - - for (y=iy0; y < iy1; ++y) { - for (x=ix0; x < ix1; ++x) { - float val; - float min_dist = 999999.0f; - float sx = (float) x + 0.5f; - float sy = (float) y + 0.5f; - float x_gspace = (sx / scale_x); - float y_gspace = (sy / scale_y); - - int winding = stbtt__compute_crossings_x(x_gspace, y_gspace, num_verts, verts); // @OPTIMIZE: this could just be a rasterization, but needs to be line vs. non-tesselated curves so a new path - - for (i=0; i < num_verts; ++i) { - float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; - - // check against every point here rather than inside line/curve primitives -- @TODO: wrong if multiple 'moves' in a row produce a garbage point, and given culling, probably more efficient to do within line/curve - float dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); - if (dist2 < min_dist*min_dist) - min_dist = (float) STBTT_sqrt(dist2); - - if (verts[i].type == STBTT_vline) { - float x1 = verts[i-1].x*scale_x, y1 = verts[i-1].y*scale_y; - - // coarse culling against bbox - //if (sx > STBTT_min(x0,x1)-min_dist && sx < STBTT_max(x0,x1)+min_dist && - // sy > STBTT_min(y0,y1)-min_dist && sy < STBTT_max(y0,y1)+min_dist) - float dist = (float) STBTT_fabs((x1-x0)*(y0-sy) - (y1-y0)*(x0-sx)) * precompute[i]; - STBTT_assert(i != 0); - if (dist < min_dist) { - // check position along line - // x' = x0 + t*(x1-x0), y' = y0 + t*(y1-y0) - // minimize (x'-sx)*(x'-sx)+(y'-sy)*(y'-sy) - float dx = x1-x0, dy = y1-y0; - float px = x0-sx, py = y0-sy; - // minimize (px+t*dx)^2 + (py+t*dy)^2 = px*px + 2*px*dx*t + t^2*dx*dx + py*py + 2*py*dy*t + t^2*dy*dy - // derivative: 2*px*dx + 2*py*dy + (2*dx*dx+2*dy*dy)*t, set to 0 and solve - float t = -(px*dx + py*dy) / (dx*dx + dy*dy); - if (t >= 0.0f && t <= 1.0f) - min_dist = dist; - } - } else if (verts[i].type == STBTT_vcurve) { - float x2 = verts[i-1].x *scale_x, y2 = verts[i-1].y *scale_y; - float x1 = verts[i ].cx*scale_x, y1 = verts[i ].cy*scale_y; - float box_x0 = STBTT_min(STBTT_min(x0,x1),x2); - float box_y0 = STBTT_min(STBTT_min(y0,y1),y2); - float box_x1 = STBTT_max(STBTT_max(x0,x1),x2); - float box_y1 = STBTT_max(STBTT_max(y0,y1),y2); - // coarse culling against bbox to avoid computing cubic unnecessarily - if (sx > box_x0-min_dist && sx < box_x1+min_dist && sy > box_y0-min_dist && sy < box_y1+min_dist) { - int num=0; - float ax = x1-x0, ay = y1-y0; - float bx = x0 - 2*x1 + x2, by = y0 - 2*y1 + y2; - float mx = x0 - sx, my = y0 - sy; - float res[3],px,py,t,it; - float a_inv = precompute[i]; - if (a_inv == 0.0) { // if a_inv is 0, it's 2nd degree so use quadratic formula - float a = 3*(ax*bx + ay*by); - float b = 2*(ax*ax + ay*ay) + (mx*bx+my*by); - float c = mx*ax+my*ay; - if (a == 0.0) { // if a is 0, it's linear - if (b != 0.0) { - res[num++] = -c/b; - } - } else { - float discriminant = b*b - 4*a*c; - if (discriminant < 0) - num = 0; - else { - float root = (float) STBTT_sqrt(discriminant); - res[0] = (-b - root)/(2*a); - res[1] = (-b + root)/(2*a); - num = 2; // don't bother distinguishing 1-solution case, as code below will still work - } - } - } else { - float b = 3*(ax*bx + ay*by) * a_inv; // could precompute this as it doesn't depend on sample point - float c = (2*(ax*ax + ay*ay) + (mx*bx+my*by)) * a_inv; - float d = (mx*ax+my*ay) * a_inv; - num = stbtt__solve_cubic(b, c, d, res); - } - if (num >= 1 && res[0] >= 0.0f && res[0] <= 1.0f) { - t = res[0], it = 1.0f - t; - px = it*it*x0 + 2*t*it*x1 + t*t*x2; - py = it*it*y0 + 2*t*it*y1 + t*t*y2; - dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); - if (dist2 < min_dist * min_dist) - min_dist = (float) STBTT_sqrt(dist2); - } - if (num >= 2 && res[1] >= 0.0f && res[1] <= 1.0f) { - t = res[1], it = 1.0f - t; - px = it*it*x0 + 2*t*it*x1 + t*t*x2; - py = it*it*y0 + 2*t*it*y1 + t*t*y2; - dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); - if (dist2 < min_dist * min_dist) - min_dist = (float) STBTT_sqrt(dist2); - } - if (num >= 3 && res[2] >= 0.0f && res[2] <= 1.0f) { - t = res[2], it = 1.0f - t; - px = it*it*x0 + 2*t*it*x1 + t*t*x2; - py = it*it*y0 + 2*t*it*y1 + t*t*y2; - dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); - if (dist2 < min_dist * min_dist) - min_dist = (float) STBTT_sqrt(dist2); - } - } - } - } - if (winding == 0) - min_dist = -min_dist; // if outside the shape, value is negative - val = onedge_value + pixel_dist_scale * min_dist; - if (val < 0) - val = 0; - else if (val > 255) - val = 255; - data[(y-iy0)*w+(x-ix0)] = (unsigned char) val; - } - } - STBTT_free(precompute, info->userdata); - STBTT_free(verts, info->userdata); - } - return data; -} - -STBTT_DEF unsigned char * stbtt_GetCodepointSDF(const stbtt_fontinfo *info, float scale, int codepoint, int padding, unsigned char onedge_value, float pixel_dist_scale, int *width, int *height, int *xoff, int *yoff) -{ - return stbtt_GetGlyphSDF(info, scale, stbtt_FindGlyphIndex(info, codepoint), padding, onedge_value, pixel_dist_scale, width, height, xoff, yoff); -} - -STBTT_DEF void stbtt_FreeSDF(unsigned char *bitmap, void *userdata) -{ - STBTT_free(bitmap, userdata); -} - -////////////////////////////////////////////////////////////////////////////// -// -// font name matching -- recommended not to use this -// - -// check if a utf8 string contains a prefix which is the utf16 string; if so return length of matching utf8 string -static stbtt_int32 stbtt__CompareUTF8toUTF16_bigendian_prefix(stbtt_uint8 *s1, stbtt_int32 len1, stbtt_uint8 *s2, stbtt_int32 len2) -{ - stbtt_int32 i=0; - - // convert utf16 to utf8 and compare the results while converting - while (len2) { - stbtt_uint16 ch = s2[0]*256 + s2[1]; - if (ch < 0x80) { - if (i >= len1) return -1; - if (s1[i++] != ch) return -1; - } else if (ch < 0x800) { - if (i+1 >= len1) return -1; - if (s1[i++] != 0xc0 + (ch >> 6)) return -1; - if (s1[i++] != 0x80 + (ch & 0x3f)) return -1; - } else if (ch >= 0xd800 && ch < 0xdc00) { - stbtt_uint32 c; - stbtt_uint16 ch2 = s2[2]*256 + s2[3]; - if (i+3 >= len1) return -1; - c = ((ch - 0xd800) << 10) + (ch2 - 0xdc00) + 0x10000; - if (s1[i++] != 0xf0 + (c >> 18)) return -1; - if (s1[i++] != 0x80 + ((c >> 12) & 0x3f)) return -1; - if (s1[i++] != 0x80 + ((c >> 6) & 0x3f)) return -1; - if (s1[i++] != 0x80 + ((c ) & 0x3f)) return -1; - s2 += 2; // plus another 2 below - len2 -= 2; - } else if (ch >= 0xdc00 && ch < 0xe000) { - return -1; - } else { - if (i+2 >= len1) return -1; - if (s1[i++] != 0xe0 + (ch >> 12)) return -1; - if (s1[i++] != 0x80 + ((ch >> 6) & 0x3f)) return -1; - if (s1[i++] != 0x80 + ((ch ) & 0x3f)) return -1; - } - s2 += 2; - len2 -= 2; - } - return i; -} - -static int stbtt_CompareUTF8toUTF16_bigendian_internal(char *s1, int len1, char *s2, int len2) -{ - return len1 == stbtt__CompareUTF8toUTF16_bigendian_prefix((stbtt_uint8*) s1, len1, (stbtt_uint8*) s2, len2); -} - -// returns results in whatever encoding you request... but note that 2-byte encodings -// will be BIG-ENDIAN... use stbtt_CompareUTF8toUTF16_bigendian() to compare -STBTT_DEF const char *stbtt_GetFontNameString(const stbtt_fontinfo *font, int *length, int platformID, int encodingID, int languageID, int nameID) -{ - stbtt_int32 i,count,stringOffset; - stbtt_uint8 *fc = font->data; - stbtt_uint32 offset = font->fontstart; - stbtt_uint32 nm = stbtt__find_table(fc, offset, "name"); - if (!nm) return NULL; - - count = ttUSHORT(fc+nm+2); - stringOffset = nm + ttUSHORT(fc+nm+4); - for (i=0; i < count; ++i) { - stbtt_uint32 loc = nm + 6 + 12 * i; - if (platformID == ttUSHORT(fc+loc+0) && encodingID == ttUSHORT(fc+loc+2) - && languageID == ttUSHORT(fc+loc+4) && nameID == ttUSHORT(fc+loc+6)) { - *length = ttUSHORT(fc+loc+8); - return (const char *) (fc+stringOffset+ttUSHORT(fc+loc+10)); - } - } - return NULL; -} - -static int stbtt__matchpair(stbtt_uint8 *fc, stbtt_uint32 nm, stbtt_uint8 *name, stbtt_int32 nlen, stbtt_int32 target_id, stbtt_int32 next_id) -{ - stbtt_int32 i; - stbtt_int32 count = ttUSHORT(fc+nm+2); - stbtt_int32 stringOffset = nm + ttUSHORT(fc+nm+4); - - for (i=0; i < count; ++i) { - stbtt_uint32 loc = nm + 6 + 12 * i; - stbtt_int32 id = ttUSHORT(fc+loc+6); - if (id == target_id) { - // find the encoding - stbtt_int32 platform = ttUSHORT(fc+loc+0), encoding = ttUSHORT(fc+loc+2), language = ttUSHORT(fc+loc+4); - - // is this a Unicode encoding? - if (platform == 0 || (platform == 3 && encoding == 1) || (platform == 3 && encoding == 10)) { - stbtt_int32 slen = ttUSHORT(fc+loc+8); - stbtt_int32 off = ttUSHORT(fc+loc+10); - - // check if there's a prefix match - stbtt_int32 matchlen = stbtt__CompareUTF8toUTF16_bigendian_prefix(name, nlen, fc+stringOffset+off,slen); - if (matchlen >= 0) { - // check for target_id+1 immediately following, with same encoding & language - if (i+1 < count && ttUSHORT(fc+loc+12+6) == next_id && ttUSHORT(fc+loc+12) == platform && ttUSHORT(fc+loc+12+2) == encoding && ttUSHORT(fc+loc+12+4) == language) { - slen = ttUSHORT(fc+loc+12+8); - off = ttUSHORT(fc+loc+12+10); - if (slen == 0) { - if (matchlen == nlen) - return 1; - } else if (matchlen < nlen && name[matchlen] == ' ') { - ++matchlen; - if (stbtt_CompareUTF8toUTF16_bigendian_internal((char*) (name+matchlen), nlen-matchlen, (char*)(fc+stringOffset+off),slen)) - return 1; - } - } else { - // if nothing immediately following - if (matchlen == nlen) - return 1; - } - } - } - - // @TODO handle other encodings - } - } - return 0; -} - -static int stbtt__matches(stbtt_uint8 *fc, stbtt_uint32 offset, stbtt_uint8 *name, stbtt_int32 flags) -{ - stbtt_int32 nlen = (stbtt_int32) STBTT_strlen((char *) name); - stbtt_uint32 nm,hd; - if (!stbtt__isfont(fc+offset)) return 0; - - // check italics/bold/underline flags in macStyle... - if (flags) { - hd = stbtt__find_table(fc, offset, "head"); - if ((ttUSHORT(fc+hd+44) & 7) != (flags & 7)) return 0; - } - - nm = stbtt__find_table(fc, offset, "name"); - if (!nm) return 0; - - if (flags) { - // if we checked the macStyle flags, then just check the family and ignore the subfamily - if (stbtt__matchpair(fc, nm, name, nlen, 16, -1)) return 1; - if (stbtt__matchpair(fc, nm, name, nlen, 1, -1)) return 1; - if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; - } else { - if (stbtt__matchpair(fc, nm, name, nlen, 16, 17)) return 1; - if (stbtt__matchpair(fc, nm, name, nlen, 1, 2)) return 1; - if (stbtt__matchpair(fc, nm, name, nlen, 3, -1)) return 1; - } - - return 0; -} - -static int stbtt_FindMatchingFont_internal(unsigned char *font_collection, char *name_utf8, stbtt_int32 flags) -{ - stbtt_int32 i; - for (i=0;;++i) { - stbtt_int32 off = stbtt_GetFontOffsetForIndex(font_collection, i); - if (off < 0) return off; - if (stbtt__matches((stbtt_uint8 *) font_collection, off, (stbtt_uint8*) name_utf8, flags)) - return off; - } -} - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wcast-qual" -#endif - -STBTT_DEF int stbtt_BakeFontBitmap(const unsigned char *data, int offset, - float pixel_height, unsigned char *pixels, int pw, int ph, - int first_char, int num_chars, stbtt_bakedchar *chardata) -{ - return stbtt_BakeFontBitmap_internal((unsigned char *) data, offset, pixel_height, pixels, pw, ph, first_char, num_chars, chardata); -} - -STBTT_DEF int stbtt_GetFontOffsetForIndex(const unsigned char *data, int index) -{ - return stbtt_GetFontOffsetForIndex_internal((unsigned char *) data, index); -} - -STBTT_DEF int stbtt_GetNumberOfFonts(const unsigned char *data) -{ - return stbtt_GetNumberOfFonts_internal((unsigned char *) data); -} - -STBTT_DEF int stbtt_InitFont(stbtt_fontinfo *info, const unsigned char *data, int offset) -{ - return stbtt_InitFont_internal(info, (unsigned char *) data, offset); -} - -STBTT_DEF int stbtt_FindMatchingFont(const unsigned char *fontdata, const char *name, int flags) -{ - return stbtt_FindMatchingFont_internal((unsigned char *) fontdata, (char *) name, flags); -} - -STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2) -{ - return stbtt_CompareUTF8toUTF16_bigendian_internal((char *) s1, len1, (char *) s2, len2); -} - -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif - -#endif // STB_TRUETYPE_IMPLEMENTATION - - -// FULL VERSION HISTORY -// -// 1.19 (2018-02-11) OpenType GPOS kerning (horizontal only), STBTT_fmod -// 1.18 (2018-01-29) add missing function -// 1.17 (2017-07-23) make more arguments const; doc fix -// 1.16 (2017-07-12) SDF support -// 1.15 (2017-03-03) make more arguments const -// 1.14 (2017-01-16) num-fonts-in-TTC function -// 1.13 (2017-01-02) support OpenType fonts, certain Apple fonts -// 1.12 (2016-10-25) suppress warnings about casting away const with -Wcast-qual -// 1.11 (2016-04-02) fix unused-variable warning -// 1.10 (2016-04-02) allow user-defined fabs() replacement -// fix memory leak if fontsize=0.0 -// fix warning from duplicate typedef -// 1.09 (2016-01-16) warning fix; avoid crash on outofmem; use alloc userdata for PackFontRanges -// 1.08 (2015-09-13) document stbtt_Rasterize(); fixes for vertical & horizontal edges -// 1.07 (2015-08-01) allow PackFontRanges to accept arrays of sparse codepoints; -// allow PackFontRanges to pack and render in separate phases; -// fix stbtt_GetFontOFfsetForIndex (never worked for non-0 input?); -// fixed an assert() bug in the new rasterizer -// replace assert() with STBTT_assert() in new rasterizer -// 1.06 (2015-07-14) performance improvements (~35% faster on x86 and x64 on test machine) -// also more precise AA rasterizer, except if shapes overlap -// remove need for STBTT_sort -// 1.05 (2015-04-15) fix misplaced definitions for STBTT_STATIC -// 1.04 (2015-04-15) typo in example -// 1.03 (2015-04-12) STBTT_STATIC, fix memory leak in new packing, various fixes -// 1.02 (2014-12-10) fix various warnings & compile issues w/ stb_rect_pack, C++ -// 1.01 (2014-12-08) fix subpixel position when oversampling to exactly match -// non-oversampled; STBTT_POINT_SIZE for packed case only -// 1.00 (2014-12-06) add new PackBegin etc. API, w/ support for oversampling -// 0.99 (2014-09-18) fix multiple bugs with subpixel rendering (ryg) -// 0.9 (2014-08-07) support certain mac/iOS fonts without an MS platformID -// 0.8b (2014-07-07) fix a warning -// 0.8 (2014-05-25) fix a few more warnings -// 0.7 (2013-09-25) bugfix: subpixel glyph bug fixed in 0.5 had come back -// 0.6c (2012-07-24) improve documentation -// 0.6b (2012-07-20) fix a few more warnings -// 0.6 (2012-07-17) fix warnings; added stbtt_ScaleForMappingEmToPixels, -// stbtt_GetFontBoundingBox, stbtt_IsGlyphEmpty -// 0.5 (2011-12-09) bugfixes: -// subpixel glyph renderer computed wrong bounding box -// first vertex of shape can be off-curve (FreeSans) -// 0.4b (2011-12-03) fixed an error in the font baking example -// 0.4 (2011-12-01) kerning, subpixel rendering (tor) -// bugfixes for: -// codepoint-to-glyph conversion using table fmt=12 -// codepoint-to-glyph conversion using table fmt=4 -// stbtt_GetBakedQuad with non-square texture (Zer) -// updated Hello World! sample to use kerning and subpixel -// fixed some warnings -// 0.3 (2009-06-24) cmap fmt=12, compound shapes (MM) -// userdata, malloc-from-userdata, non-zero fill (stb) -// 0.2 (2009-03-11) Fix unsigned/signed char warnings -// 0.1 (2009-03-09) First public release -// - -/* ------------------------------------------------------------------------------- -This software is available under 2 licenses -- choose whichever you prefer. ------------------------------------------------------------------------------- -ALTERNATIVE A - MIT License -Copyright (c) 2017 Sean Barrett -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is 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 Software. -THE SOFTWARE IS 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. ------------------------------------------------------------------------------- -ALTERNATIVE B - Public Domain (www.unlicense.org) -This is free and unencumbered software released into the public domain. -Anyone is free to copy, modify, publish, use, compile, sell, or distribute this -software, either in source code form or as a compiled binary, for any purpose, -commercial or non-commercial, and by any means. -In jurisdictions that recognize copyright laws, the author or authors of this -software dedicate any and all copyright interest in the software to the public -domain. We make this dedication for the benefit of the public at large and to -the detriment of our heirs and successors. We intend this dedication to be an -overt act of relinquishment in perpetuity of all present and future rights to -this software under copyright law. -THE SOFTWARE IS 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 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 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------- -*/ diff --git a/third_party/imgui/misc/README.txt b/third_party/imgui/misc/README.txt deleted file mode 100644 index 86900089..00000000 --- a/third_party/imgui/misc/README.txt +++ /dev/null @@ -1,24 +0,0 @@ - -misc/cpp/ - InputText() wrappers for C++ standard library (STL) type: std::string. - This is also an example of how you may wrap your own similar types. - -misc/fonts/ - Fonts loading/merging instructions (e.g. How to handle glyph ranges, how to merge icons fonts). - Command line tool "binary_to_compressed_c" to create compressed arrays to embed data in source code. - Suggested fonts and links. - -misc/freetype/ - Font atlas builder/rasterizer using FreeType instead of stb_truetype. - Benefit from better FreeType rasterization, in particular for small fonts. - -misc/natvis/ - Natvis file to describe dear imgui types in the Visual Studio debugger. - With this, types like ImVector<> will be displayed nicely in the debugger. - You can include this file a Visual Studio project file, or install it in Visual Studio folder. - -misc/single_file/ - Single-file header stub. - We use this to validate compiling all *.cpp files in a same compilation unit. - Users of that technique (also called "Unity builds") can generally provide this themselves, - so we don't really recommend you use this in your projects. diff --git a/third_party/imgui/misc/cpp/README.txt b/third_party/imgui/misc/cpp/README.txt deleted file mode 100644 index 8d5982e0..00000000 --- a/third_party/imgui/misc/cpp/README.txt +++ /dev/null @@ -1,10 +0,0 @@ - -imgui_stdlib.h + imgui_stdlib.cpp - InputText() wrappers for C++ standard library (STL) type: std::string. - This is also an example of how you may wrap your own similar types. - -imgui_scoped.h - [Experimental, not currently in main repository] - Additional header file with some RAII-style wrappers for common Dear ImGui functions. - Try by merging: https://github.com/ocornut/imgui/pull/2197 - Discuss at: https://github.com/ocornut/imgui/issues/2096 diff --git a/third_party/imgui/misc/cpp/imgui_stdlib.cpp b/third_party/imgui/misc/cpp/imgui_stdlib.cpp deleted file mode 100644 index cb1fe174..00000000 --- a/third_party/imgui/misc/cpp/imgui_stdlib.cpp +++ /dev/null @@ -1,76 +0,0 @@ -// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) -// This is also an example of how you may wrap your own similar types. - -// Compatibility: -// - std::string support is only guaranteed to work from C++11. -// If you try to use it pre-C++11, please share your findings (w/ info about compiler/architecture) - -// Changelog: -// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string - -#include "imgui.h" -#include "imgui_stdlib.h" - -struct InputTextCallback_UserData -{ - std::string* Str; - ImGuiInputTextCallback ChainCallback; - void* ChainCallbackUserData; -}; - -static int InputTextCallback(ImGuiInputTextCallbackData* data) -{ - InputTextCallback_UserData* user_data = (InputTextCallback_UserData*)data->UserData; - if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) - { - // Resize string callback - // If for some reason we refuse the new length (BufTextLen) and/or capacity (BufSize) we need to set them back to what we want. - std::string* str = user_data->Str; - IM_ASSERT(data->Buf == str->c_str()); - str->resize(data->BufTextLen); - data->Buf = (char*)str->c_str(); - } - else if (user_data->ChainCallback) - { - // Forward to user callback, if any - data->UserData = user_data->ChainCallbackUserData; - return user_data->ChainCallback(data); - } - return 0; -} - -bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); - flags |= ImGuiInputTextFlags_CallbackResize; - - InputTextCallback_UserData cb_user_data; - cb_user_data.Str = str; - cb_user_data.ChainCallback = callback; - cb_user_data.ChainCallbackUserData = user_data; - return InputText(label, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data); -} - -bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); - flags |= ImGuiInputTextFlags_CallbackResize; - - InputTextCallback_UserData cb_user_data; - cb_user_data.Str = str; - cb_user_data.ChainCallback = callback; - cb_user_data.ChainCallbackUserData = user_data; - return InputTextMultiline(label, (char*)str->c_str(), str->capacity() + 1, size, flags, InputTextCallback, &cb_user_data); -} - -bool ImGui::InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); - flags |= ImGuiInputTextFlags_CallbackResize; - - InputTextCallback_UserData cb_user_data; - cb_user_data.Str = str; - cb_user_data.ChainCallback = callback; - cb_user_data.ChainCallbackUserData = user_data; - return InputTextWithHint(label, hint, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data); -} diff --git a/third_party/imgui/misc/cpp/imgui_stdlib.h b/third_party/imgui/misc/cpp/imgui_stdlib.h deleted file mode 100644 index f860b0c7..00000000 --- a/third_party/imgui/misc/cpp/imgui_stdlib.h +++ /dev/null @@ -1,22 +0,0 @@ -// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) -// This is also an example of how you may wrap your own similar types. - -// Compatibility: -// - std::string support is only guaranteed to work from C++11. -// If you try to use it pre-C++11, please share your findings (w/ info about compiler/architecture) - -// Changelog: -// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string - -#pragma once - -#include - -namespace ImGui -{ - // ImGui::InputText() with std::string - // Because text input needs dynamic resizing, we need to setup a callback to grow the capacity - IMGUI_API bool InputText(const char* label, std::string* str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); - IMGUI_API bool InputTextMultiline(const char* label, std::string* str, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); - IMGUI_API bool InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); -} diff --git a/third_party/imgui/misc/fonts/Cousine-Regular.ttf b/third_party/imgui/misc/fonts/Cousine-Regular.ttf deleted file mode 100644 index 70a0bf90..00000000 Binary files a/third_party/imgui/misc/fonts/Cousine-Regular.ttf and /dev/null differ diff --git a/third_party/imgui/misc/fonts/DroidSans.ttf b/third_party/imgui/misc/fonts/DroidSans.ttf deleted file mode 100644 index 767c63ad..00000000 Binary files a/third_party/imgui/misc/fonts/DroidSans.ttf and /dev/null differ diff --git a/third_party/imgui/misc/fonts/Karla-Regular.ttf b/third_party/imgui/misc/fonts/Karla-Regular.ttf deleted file mode 100644 index 81b3de6e..00000000 Binary files a/third_party/imgui/misc/fonts/Karla-Regular.ttf and /dev/null differ diff --git a/third_party/imgui/misc/fonts/ProggyClean.ttf b/third_party/imgui/misc/fonts/ProggyClean.ttf deleted file mode 100644 index 0270cdfe..00000000 Binary files a/third_party/imgui/misc/fonts/ProggyClean.ttf and /dev/null differ diff --git a/third_party/imgui/misc/fonts/ProggyTiny.ttf b/third_party/imgui/misc/fonts/ProggyTiny.ttf deleted file mode 100644 index 1c4312c3..00000000 Binary files a/third_party/imgui/misc/fonts/ProggyTiny.ttf and /dev/null differ diff --git a/third_party/imgui/misc/fonts/Roboto-Medium.ttf b/third_party/imgui/misc/fonts/Roboto-Medium.ttf deleted file mode 100644 index 39c63d74..00000000 Binary files a/third_party/imgui/misc/fonts/Roboto-Medium.ttf and /dev/null differ diff --git a/third_party/imgui/misc/fonts/binary_to_compressed_c.cpp b/third_party/imgui/misc/fonts/binary_to_compressed_c.cpp deleted file mode 100644 index 441c8f67..00000000 --- a/third_party/imgui/misc/fonts/binary_to_compressed_c.cpp +++ /dev/null @@ -1,385 +0,0 @@ -// dear imgui -// (binary_to_compressed_c.cpp) -// Helper tool to turn a file into a C array, if you want to embed font data in your source code. - -// The data is first compressed with stb_compress() to reduce source code size, -// then encoded in Base85 to fit in a string so we can fit roughly 4 bytes of compressed data into 5 bytes of source code (suggested by @mmalex) -// (If we used 32-bit constants it would require take 11 bytes of source code to encode 4 bytes, and be endianness dependent) -// Note that even with compression, the output array is likely to be bigger than the binary file.. -// Load compressed TTF fonts with ImGui::GetIO().Fonts->AddFontFromMemoryCompressedTTF() - -// Build with, e.g: -// # cl.exe binary_to_compressed_c.cpp -// # g++ binary_to_compressed_c.cpp -// # clang++ binary_to_compressed_c.cpp -// You can also find a precompiled Windows binary in the binary/demo package available from https://github.com/ocornut/imgui - -// Usage: -// binary_to_compressed_c.exe [-base85] [-nocompress] -// Usage example: -// # binary_to_compressed_c.exe myfont.ttf MyFont > myfont.cpp -// # binary_to_compressed_c.exe -base85 myfont.ttf MyFont > myfont.cpp - -#define _CRT_SECURE_NO_WARNINGS -#include -#include -#include -#include - -// stb_compress* from stb.h - declaration -typedef unsigned int stb_uint; -typedef unsigned char stb_uchar; -stb_uint stb_compress(stb_uchar* out, stb_uchar* in, stb_uint len); - -static bool binary_to_compressed_c(const char* filename, const char* symbol, bool use_base85_encoding, bool use_compression); - -int main(int argc, char** argv) -{ - if (argc < 3) - { - printf("Syntax: %s [-base85] [-nocompress] \n", argv[0]); - return 0; - } - - int argn = 1; - bool use_base85_encoding = false; - bool use_compression = true; - if (argv[argn][0] == '-') - { - if (strcmp(argv[argn], "-base85") == 0) { use_base85_encoding = true; argn++; } - else if (strcmp(argv[argn], "-nocompress") == 0) { use_compression = false; argn++; } - else - { - fprintf(stderr, "Unknown argument: '%s'\n", argv[argn]); - return 1; - } - } - - bool ret = binary_to_compressed_c(argv[argn], argv[argn + 1], use_base85_encoding, use_compression); - if (!ret) - fprintf(stderr, "Error opening or reading file: '%s'\n", argv[argn]); - return ret ? 0 : 1; -} - -char Encode85Byte(unsigned int x) -{ - x = (x % 85) + 35; - return (x >= '\\') ? x + 1 : x; -} - -bool binary_to_compressed_c(const char* filename, const char* symbol, bool use_base85_encoding, bool use_compression) -{ - // Read file - FILE* f = fopen(filename, "rb"); - if (!f) return false; - int data_sz; - if (fseek(f, 0, SEEK_END) || (data_sz = (int)ftell(f)) == -1 || fseek(f, 0, SEEK_SET)) { fclose(f); return false; } - char* data = new char[data_sz + 4]; - if (fread(data, 1, data_sz, f) != (size_t)data_sz) { fclose(f); delete[] data; return false; } - memset((void*)(((char*)data) + data_sz), 0, 4); - fclose(f); - - // Compress - int maxlen = data_sz + 512 + (data_sz >> 2) + sizeof(int); // total guess - char* compressed = use_compression ? new char[maxlen] : data; - int compressed_sz = use_compression ? stb_compress((stb_uchar*)compressed, (stb_uchar*)data, data_sz) : data_sz; - if (use_compression) - memset(compressed + compressed_sz, 0, maxlen - compressed_sz); - - // Output as Base85 encoded - FILE* out = stdout; - fprintf(out, "// File: '%s' (%d bytes)\n", filename, (int)data_sz); - fprintf(out, "// Exported using binary_to_compressed_c.cpp\n"); - const char* compressed_str = use_compression ? "compressed_" : ""; - if (use_base85_encoding) - { - fprintf(out, "static const char %s_%sdata_base85[%d+1] =\n \"", symbol, compressed_str, (int)((compressed_sz + 3) / 4)*5); - char prev_c = 0; - for (int src_i = 0; src_i < compressed_sz; src_i += 4) - { - // This is made a little more complicated by the fact that ??X sequences are interpreted as trigraphs by old C/C++ compilers. So we need to escape pairs of ??. - unsigned int d = *(unsigned int*)(compressed + src_i); - for (unsigned int n5 = 0; n5 < 5; n5++, d /= 85) - { - char c = Encode85Byte(d); - fprintf(out, (c == '?' && prev_c == '?') ? "\\%c" : "%c", c); - prev_c = c; - } - if ((src_i % 112) == 112 - 4) - fprintf(out, "\"\n \""); - } - fprintf(out, "\";\n\n"); - } - else - { - fprintf(out, "static const unsigned int %s_%ssize = %d;\n", symbol, compressed_str, (int)compressed_sz); - fprintf(out, "static const unsigned int %s_%sdata[%d/4] =\n{", symbol, compressed_str, (int)((compressed_sz + 3) / 4)*4); - int column = 0; - for (int i = 0; i < compressed_sz; i += 4) - { - unsigned int d = *(unsigned int*)(compressed + i); - if ((column++ % 12) == 0) - fprintf(out, "\n 0x%08x, ", d); - else - fprintf(out, "0x%08x, ", d); - } - fprintf(out, "\n};\n\n"); - } - - // Cleanup - delete[] data; - if (use_compression) - delete[] compressed; - return true; -} - -// stb_compress* from stb.h - definition - -//////////////////// compressor /////////////////////// - -static stb_uint stb_adler32(stb_uint adler32, stb_uchar *buffer, stb_uint buflen) -{ - const unsigned long ADLER_MOD = 65521; - unsigned long s1 = adler32 & 0xffff, s2 = adler32 >> 16; - unsigned long blocklen, i; - - blocklen = buflen % 5552; - while (buflen) { - for (i=0; i + 7 < blocklen; i += 8) { - s1 += buffer[0], s2 += s1; - s1 += buffer[1], s2 += s1; - s1 += buffer[2], s2 += s1; - s1 += buffer[3], s2 += s1; - s1 += buffer[4], s2 += s1; - s1 += buffer[5], s2 += s1; - s1 += buffer[6], s2 += s1; - s1 += buffer[7], s2 += s1; - - buffer += 8; - } - - for (; i < blocklen; ++i) - s1 += *buffer++, s2 += s1; - - s1 %= ADLER_MOD, s2 %= ADLER_MOD; - buflen -= blocklen; - blocklen = 5552; - } - return (s2 << 16) + s1; -} - -static unsigned int stb_matchlen(stb_uchar *m1, stb_uchar *m2, stb_uint maxlen) -{ - stb_uint i; - for (i=0; i < maxlen; ++i) - if (m1[i] != m2[i]) return i; - return i; -} - -// simple implementation that just takes the source data in a big block - -static stb_uchar *stb__out; -static FILE *stb__outfile; -static stb_uint stb__outbytes; - -static void stb__write(unsigned char v) -{ - fputc(v, stb__outfile); - ++stb__outbytes; -} - -//#define stb_out(v) (stb__out ? *stb__out++ = (stb_uchar) (v) : stb__write((stb_uchar) (v))) -#define stb_out(v) do { if (stb__out) *stb__out++ = (stb_uchar) (v); else stb__write((stb_uchar) (v)); } while (0) - -static void stb_out2(stb_uint v) { stb_out(v >> 8); stb_out(v); } -static void stb_out3(stb_uint v) { stb_out(v >> 16); stb_out(v >> 8); stb_out(v); } -static void stb_out4(stb_uint v) { stb_out(v >> 24); stb_out(v >> 16); stb_out(v >> 8 ); stb_out(v); } - -static void outliterals(stb_uchar *in, int numlit) -{ - while (numlit > 65536) { - outliterals(in,65536); - in += 65536; - numlit -= 65536; - } - - if (numlit == 0) ; - else if (numlit <= 32) stb_out (0x000020 + numlit-1); - else if (numlit <= 2048) stb_out2(0x000800 + numlit-1); - else /* numlit <= 65536) */ stb_out3(0x070000 + numlit-1); - - if (stb__out) { - memcpy(stb__out,in,numlit); - stb__out += numlit; - } else - fwrite(in, 1, numlit, stb__outfile); -} - -static int stb__window = 0x40000; // 256K - -static int stb_not_crap(int best, int dist) -{ - return ((best > 2 && dist <= 0x00100) - || (best > 5 && dist <= 0x04000) - || (best > 7 && dist <= 0x80000)); -} - -static stb_uint stb__hashsize = 32768; - -// note that you can play with the hashing functions all you -// want without needing to change the decompressor -#define stb__hc(q,h,c) (((h) << 7) + ((h) >> 25) + q[c]) -#define stb__hc2(q,h,c,d) (((h) << 14) + ((h) >> 18) + (q[c] << 7) + q[d]) -#define stb__hc3(q,c,d,e) ((q[c] << 14) + (q[d] << 7) + q[e]) - -static unsigned int stb__running_adler; - -static int stb_compress_chunk(stb_uchar *history, - stb_uchar *start, - stb_uchar *end, - int length, - int *pending_literals, - stb_uchar **chash, - stb_uint mask) -{ - (void)history; - int window = stb__window; - stb_uint match_max; - stb_uchar *lit_start = start - *pending_literals; - stb_uchar *q = start; - -#define STB__SCRAMBLE(h) (((h) + ((h) >> 16)) & mask) - - // stop short of the end so we don't scan off the end doing - // the hashing; this means we won't compress the last few bytes - // unless they were part of something longer - while (q < start+length && q+12 < end) { - int m; - stb_uint h1,h2,h3,h4, h; - stb_uchar *t; - int best = 2, dist=0; - - if (q+65536 > end) - match_max = end-q; - else - match_max = 65536; - -#define stb__nc(b,d) ((d) <= window && ((b) > 9 || stb_not_crap(b,d))) - -#define STB__TRY(t,p) /* avoid retrying a match we already tried */ \ - if (p ? dist != q-t : 1) \ - if ((m = stb_matchlen(t, q, match_max)) > best) \ - if (stb__nc(m,q-(t))) \ - best = m, dist = q - (t) - - // rather than search for all matches, only try 4 candidate locations, - // chosen based on 4 different hash functions of different lengths. - // this strategy is inspired by LZO; hashing is unrolled here using the - // 'hc' macro - h = stb__hc3(q,0, 1, 2); h1 = STB__SCRAMBLE(h); - t = chash[h1]; if (t) STB__TRY(t,0); - h = stb__hc2(q,h, 3, 4); h2 = STB__SCRAMBLE(h); - h = stb__hc2(q,h, 5, 6); t = chash[h2]; if (t) STB__TRY(t,1); - h = stb__hc2(q,h, 7, 8); h3 = STB__SCRAMBLE(h); - h = stb__hc2(q,h, 9,10); t = chash[h3]; if (t) STB__TRY(t,1); - h = stb__hc2(q,h,11,12); h4 = STB__SCRAMBLE(h); - t = chash[h4]; if (t) STB__TRY(t,1); - - // because we use a shared hash table, can only update it - // _after_ we've probed all of them - chash[h1] = chash[h2] = chash[h3] = chash[h4] = q; - - if (best > 2) - assert(dist > 0); - - // see if our best match qualifies - if (best < 3) { // fast path literals - ++q; - } else if (best > 2 && best <= 0x80 && dist <= 0x100) { - outliterals(lit_start, q-lit_start); lit_start = (q += best); - stb_out(0x80 + best-1); - stb_out(dist-1); - } else if (best > 5 && best <= 0x100 && dist <= 0x4000) { - outliterals(lit_start, q-lit_start); lit_start = (q += best); - stb_out2(0x4000 + dist-1); - stb_out(best-1); - } else if (best > 7 && best <= 0x100 && dist <= 0x80000) { - outliterals(lit_start, q-lit_start); lit_start = (q += best); - stb_out3(0x180000 + dist-1); - stb_out(best-1); - } else if (best > 8 && best <= 0x10000 && dist <= 0x80000) { - outliterals(lit_start, q-lit_start); lit_start = (q += best); - stb_out3(0x100000 + dist-1); - stb_out2(best-1); - } else if (best > 9 && dist <= 0x1000000) { - if (best > 65536) best = 65536; - outliterals(lit_start, q-lit_start); lit_start = (q += best); - if (best <= 0x100) { - stb_out(0x06); - stb_out3(dist-1); - stb_out(best-1); - } else { - stb_out(0x04); - stb_out3(dist-1); - stb_out2(best-1); - } - } else { // fallback literals if no match was a balanced tradeoff - ++q; - } - } - - // if we didn't get all the way, add the rest to literals - if (q-start < length) - q = start+length; - - // the literals are everything from lit_start to q - *pending_literals = (q - lit_start); - - stb__running_adler = stb_adler32(stb__running_adler, start, q - start); - return q - start; -} - -static int stb_compress_inner(stb_uchar *input, stb_uint length) -{ - int literals = 0; - stb_uint len,i; - - stb_uchar **chash; - chash = (stb_uchar**) malloc(stb__hashsize * sizeof(stb_uchar*)); - if (chash == NULL) return 0; // failure - for (i=0; i < stb__hashsize; ++i) - chash[i] = NULL; - - // stream signature - stb_out(0x57); stb_out(0xbc); - stb_out2(0); - - stb_out4(0); // 64-bit length requires 32-bit leading 0 - stb_out4(length); - stb_out4(stb__window); - - stb__running_adler = 1; - - len = stb_compress_chunk(input, input, input+length, length, &literals, chash, stb__hashsize-1); - assert(len == length); - - outliterals(input+length - literals, literals); - - free(chash); - - stb_out2(0x05fa); // end opcode - - stb_out4(stb__running_adler); - - return 1; // success -} - -stb_uint stb_compress(stb_uchar *out, stb_uchar *input, stb_uint length) -{ - stb__out = out; - stb__outfile = NULL; - - stb_compress_inner(input, length); - - return stb__out - out; -} diff --git a/third_party/imgui/misc/freetype/README.md b/third_party/imgui/misc/freetype/README.md deleted file mode 100644 index a3db3534..00000000 --- a/third_party/imgui/misc/freetype/README.md +++ /dev/null @@ -1,30 +0,0 @@ -# imgui_freetype - -Build font atlases using FreeType instead of stb_truetype (which is the default font rasterizer). -
by @vuhdo, @mikesart, @ocornut. - -### Usage - -1. Get latest FreeType binaries or build yourself (under Windows you may use vcpkg with `vcpkg install freetype`, `vcpkg integrate install`). -2. Add imgui_freetype.h/cpp alongside your project files. -3. Add `#define IMGUI_ENABLE_FREETYPE` in your [imconfig.h](https://github.com/ocornut/imgui/blob/master/imconfig.h) file - -### About Gamma Correct Blending - -FreeType assumes blending in linear space rather than gamma space. -See FreeType note for [FT_Render_Glyph](https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Glyph). -For correct results you need to be using sRGB and convert to linear space in the pixel shader output. -The default Dear ImGui styles will be impacted by this change (alpha values will need tweaking). - -### Testbed for toying with settings (for developers) - -See https://gist.github.com/ocornut/b3a9ecf13502fd818799a452969649ad - -### Known issues - -- Oversampling settins are ignored but also not so much necessary with the higher quality rendering. - -### Comparaison - -Small, thin anti-aliased fonts are typically benefiting a lots from Freetype's hinting: -![comparing_font_rasterizers](https://user-images.githubusercontent.com/8225057/107550178-fef87f00-6bd0-11eb-8d09-e2edb2f0ccfc.gif) diff --git a/third_party/imgui/misc/freetype/imgui_freetype.cpp b/third_party/imgui/misc/freetype/imgui_freetype.cpp deleted file mode 100644 index c4120778..00000000 --- a/third_party/imgui/misc/freetype/imgui_freetype.cpp +++ /dev/null @@ -1,769 +0,0 @@ -// dear imgui: FreeType font builder (used as a replacement for the stb_truetype builder) -// (code) - -// Get latest version at https://github.com/ocornut/imgui/tree/master/misc/freetype -// Original code by @vuhdo (Aleksei Skriabin). Improvements by @mikesart. Maintained since 2019 by @ocornut. - -// CHANGELOG -// (minor and older changes stripped away, please see git history for details) -// 2021/03/05: added ImGuiFreeTypeBuilderFlags_Bitmap to load bitmap glyphs. -// 2021/03/02: set 'atlas->TexPixelsUseColors = true' to help some backends with deciding of a prefered texture format. -// 2021/01/28: added support for color-layered glyphs via ImGuiFreeTypeBuilderFlags_LoadColor (require Freetype 2.10+). -// 2021/01/26: simplified integration by using '#define IMGUI_ENABLE_FREETYPE'. -// renamed ImGuiFreeType::XXX flags to ImGuiFreeTypeBuilderFlags_XXX for consistency with other API. removed ImGuiFreeType::BuildFontAtlas(). -// 2020/06/04: fix for rare case where FT_Get_Char_Index() succeed but FT_Load_Glyph() fails. -// 2019/02/09: added RasterizerFlags::Monochrome flag to disable font anti-aliasing (combine with ::MonoHinting for best results!) -// 2019/01/15: added support for imgui allocators + added FreeType only override function SetAllocatorFunctions(). -// 2019/01/10: re-factored to match big update in STB builder. fixed texture height waste. fixed redundant glyphs when merging. support for glyph padding. -// 2018/06/08: added support for ImFontConfig::GlyphMinAdvanceX, GlyphMaxAdvanceX. -// 2018/02/04: moved to main imgui repository (away from http://www.github.com/ocornut/imgui_club) -// 2018/01/22: fix for addition of ImFontAtlas::TexUvscale member. -// 2017/10/22: minor inconsequential change to match change in master (removed an unnecessary statement). -// 2017/09/26: fixes for imgui internal changes. -// 2017/08/26: cleanup, optimizations, support for ImFontConfig::RasterizerFlags, ImFontConfig::RasterizerMultiply. -// 2017/08/16: imported from https://github.com/Vuhdo/imgui_freetype into http://www.github.com/ocornut/imgui_club, updated for latest changes in ImFontAtlas, minor tweaks. - -// About Gamma Correct Blending: -// - FreeType assumes blending in linear space rather than gamma space. -// - See https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Glyph -// - For correct results you need to be using sRGB and convert to linear space in the pixel shader output. -// - The default dear imgui styles will be impacted by this change (alpha values will need tweaking). - -// FIXME: cfg.OversampleH, OversampleV are not supported (but perhaps not so necessary with this rasterizer). - -#include "imgui_freetype.h" -#include "imgui_internal.h" // ImMin,ImMax,ImFontAtlasBuild*, -#include -#include -#include FT_FREETYPE_H // -#include FT_MODULE_H // -#include FT_GLYPH_H // -#include FT_SYNTHESIS_H // - -#ifdef _MSC_VER -#pragma warning (disable: 4505) // unreferenced local function has been removed (stb stuff) -#endif - -#if defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used -#endif - -//------------------------------------------------------------------------- -// Data -//------------------------------------------------------------------------- - -// Default memory allocators -static void* ImGuiFreeTypeDefaultAllocFunc(size_t size, void* user_data) { IM_UNUSED(user_data); return IM_ALLOC(size); } -static void ImGuiFreeTypeDefaultFreeFunc(void* ptr, void* user_data) { IM_UNUSED(user_data); IM_FREE(ptr); } - -// Current memory allocators -static void* (*GImGuiFreeTypeAllocFunc)(size_t size, void* user_data) = ImGuiFreeTypeDefaultAllocFunc; -static void (*GImGuiFreeTypeFreeFunc)(void* ptr, void* user_data) = ImGuiFreeTypeDefaultFreeFunc; -static void* GImGuiFreeTypeAllocatorUserData = NULL; - -//------------------------------------------------------------------------- -// Code -//------------------------------------------------------------------------- - -namespace -{ - // Glyph metrics: - // -------------- - // - // xmin xmax - // | | - // |<-------- width -------->| - // | | - // | +-------------------------+----------------- ymax - // | | ggggggggg ggggg | ^ ^ - // | | g:::::::::ggg::::g | | | - // | | g:::::::::::::::::g | | | - // | | g::::::ggggg::::::gg | | | - // | | g:::::g g:::::g | | | - // offsetX -|-------->| g:::::g g:::::g | offsetY | - // | | g:::::g g:::::g | | | - // | | g::::::g g:::::g | | | - // | | g:::::::ggggg:::::g | | | - // | | g::::::::::::::::g | | height - // | | gg::::::::::::::g | | | - // baseline ---*---------|---- gggggggg::::::g-----*-------- | - // / | | g:::::g | | - // origin | | gggggg g:::::g | | - // | | g:::::gg gg:::::g | | - // | | g::::::ggg:::::::g | | - // | | gg:::::::::::::g | | - // | | ggg::::::ggg | | - // | | gggggg | v - // | +-------------------------+----------------- ymin - // | | - // |------------- advanceX ----------->| - - // A structure that describe a glyph. - struct GlyphInfo - { - int Width; // Glyph's width in pixels. - int Height; // Glyph's height in pixels. - FT_Int OffsetX; // The distance from the origin ("pen position") to the left of the glyph. - FT_Int OffsetY; // The distance from the origin to the top of the glyph. This is usually a value < 0. - float AdvanceX; // The distance from the origin to the origin of the next glyph. This is usually a value > 0. - bool IsColored; // The glyph is colored - }; - - // Font parameters and metrics. - struct FontInfo - { - uint32_t PixelHeight; // Size this font was generated with. - float Ascender; // The pixel extents above the baseline in pixels (typically positive). - float Descender; // The extents below the baseline in pixels (typically negative). - float LineSpacing; // The baseline-to-baseline distance. Note that it usually is larger than the sum of the ascender and descender taken as absolute values. There is also no guarantee that no glyphs extend above or below subsequent baselines when using this distance. Think of it as a value the designer of the font finds appropriate. - float LineGap; // The spacing in pixels between one row's descent and the next row's ascent. - float MaxAdvanceWidth; // This field gives the maximum horizontal cursor advance for all glyphs in the font. - }; - - // FreeType glyph rasterizer. - // NB: No ctor/dtor, explicitly call Init()/Shutdown() - struct FreeTypeFont - { - bool InitFont(FT_Library ft_library, const ImFontConfig& cfg, unsigned int extra_user_flags); // Initialize from an external data buffer. Doesn't copy data, and you must ensure it stays valid up to this object lifetime. - void CloseFont(); - void SetPixelHeight(int pixel_height); // Change font pixel size. All following calls to RasterizeGlyph() will use this size - const FT_Glyph_Metrics* LoadGlyph(uint32_t in_codepoint); - const FT_Bitmap* RenderGlyphAndGetInfo(GlyphInfo* out_glyph_info); - void BlitGlyph(const FT_Bitmap* ft_bitmap, uint32_t* dst, uint32_t dst_pitch, unsigned char* multiply_table = NULL); - ~FreeTypeFont() { CloseFont(); } - - // [Internals] - FontInfo Info; // Font descriptor of the current font. - FT_Face Face; - unsigned int UserFlags; // = ImFontConfig::RasterizerFlags - FT_Int32 LoadFlags; - FT_Render_Mode RenderMode; - }; - - // From SDL_ttf: Handy routines for converting from fixed point - #define FT_CEIL(X) (((X + 63) & -64) / 64) - - bool FreeTypeFont::InitFont(FT_Library ft_library, const ImFontConfig& cfg, unsigned int extra_font_builder_flags) - { - FT_Error error = FT_New_Memory_Face(ft_library, (uint8_t*)cfg.FontData, (uint32_t)cfg.FontDataSize, (uint32_t)cfg.FontNo, &Face); - if (error != 0) - return false; - error = FT_Select_Charmap(Face, FT_ENCODING_UNICODE); - if (error != 0) - return false; - - // Convert to FreeType flags (NB: Bold and Oblique are processed separately) - UserFlags = cfg.FontBuilderFlags | extra_font_builder_flags; - - LoadFlags = 0; - if ((UserFlags & ImGuiFreeTypeBuilderFlags_Bitmap) == 0) - LoadFlags |= FT_LOAD_NO_BITMAP; - - if (UserFlags & ImGuiFreeTypeBuilderFlags_NoHinting) - LoadFlags |= FT_LOAD_NO_HINTING; - if (UserFlags & ImGuiFreeTypeBuilderFlags_NoAutoHint) - LoadFlags |= FT_LOAD_NO_AUTOHINT; - if (UserFlags & ImGuiFreeTypeBuilderFlags_ForceAutoHint) - LoadFlags |= FT_LOAD_FORCE_AUTOHINT; - if (UserFlags & ImGuiFreeTypeBuilderFlags_LightHinting) - LoadFlags |= FT_LOAD_TARGET_LIGHT; - else if (UserFlags & ImGuiFreeTypeBuilderFlags_MonoHinting) - LoadFlags |= FT_LOAD_TARGET_MONO; - else - LoadFlags |= FT_LOAD_TARGET_NORMAL; - - if (UserFlags & ImGuiFreeTypeBuilderFlags_Monochrome) - RenderMode = FT_RENDER_MODE_MONO; - else - RenderMode = FT_RENDER_MODE_NORMAL; - - if (UserFlags & ImGuiFreeTypeBuilderFlags_LoadColor) - LoadFlags |= FT_LOAD_COLOR; - - memset(&Info, 0, sizeof(Info)); - SetPixelHeight((uint32_t)cfg.SizePixels); - - return true; - } - - void FreeTypeFont::CloseFont() - { - if (Face) - { - FT_Done_Face(Face); - Face = NULL; - } - } - - void FreeTypeFont::SetPixelHeight(int pixel_height) - { - // Vuhdo: I'm not sure how to deal with font sizes properly. As far as I understand, currently ImGui assumes that the 'pixel_height' - // is a maximum height of an any given glyph, i.e. it's the sum of font's ascender and descender. Seems strange to me. - // NB: FT_Set_Pixel_Sizes() doesn't seem to get us the same result. - FT_Size_RequestRec req; - req.type = (UserFlags & ImGuiFreeTypeBuilderFlags_Bitmap) ? FT_SIZE_REQUEST_TYPE_NOMINAL : FT_SIZE_REQUEST_TYPE_REAL_DIM; - req.width = 0; - req.height = (uint32_t)pixel_height * 64; - req.horiResolution = 0; - req.vertResolution = 0; - FT_Request_Size(Face, &req); - - // Update font info - FT_Size_Metrics metrics = Face->size->metrics; - Info.PixelHeight = (uint32_t)pixel_height; - Info.Ascender = (float)FT_CEIL(metrics.ascender); - Info.Descender = (float)FT_CEIL(metrics.descender); - Info.LineSpacing = (float)FT_CEIL(metrics.height); - Info.LineGap = (float)FT_CEIL(metrics.height - metrics.ascender + metrics.descender); - Info.MaxAdvanceWidth = (float)FT_CEIL(metrics.max_advance); - } - - const FT_Glyph_Metrics* FreeTypeFont::LoadGlyph(uint32_t codepoint) - { - uint32_t glyph_index = FT_Get_Char_Index(Face, codepoint); - if (glyph_index == 0) - return NULL; - FT_Error error = FT_Load_Glyph(Face, glyph_index, LoadFlags); - if (error) - return NULL; - - // Need an outline for this to work - FT_GlyphSlot slot = Face->glyph; - IM_ASSERT(slot->format == FT_GLYPH_FORMAT_OUTLINE || slot->format == FT_GLYPH_FORMAT_BITMAP); - - // Apply convenience transform (this is not picking from real "Bold"/"Italic" fonts! Merely applying FreeType helper transform. Oblique == Slanting) - if (UserFlags & ImGuiFreeTypeBuilderFlags_Bold) - FT_GlyphSlot_Embolden(slot); - if (UserFlags & ImGuiFreeTypeBuilderFlags_Oblique) - { - FT_GlyphSlot_Oblique(slot); - //FT_BBox bbox; - //FT_Outline_Get_BBox(&slot->outline, &bbox); - //slot->metrics.width = bbox.xMax - bbox.xMin; - //slot->metrics.height = bbox.yMax - bbox.yMin; - } - - return &slot->metrics; - } - - const FT_Bitmap* FreeTypeFont::RenderGlyphAndGetInfo(GlyphInfo* out_glyph_info) - { - FT_GlyphSlot slot = Face->glyph; - FT_Error error = FT_Render_Glyph(slot, RenderMode); - if (error != 0) - return NULL; - - FT_Bitmap* ft_bitmap = &Face->glyph->bitmap; - out_glyph_info->Width = (int)ft_bitmap->width; - out_glyph_info->Height = (int)ft_bitmap->rows; - out_glyph_info->OffsetX = Face->glyph->bitmap_left; - out_glyph_info->OffsetY = -Face->glyph->bitmap_top; - out_glyph_info->AdvanceX = (float)FT_CEIL(slot->advance.x); - out_glyph_info->IsColored = (ft_bitmap->pixel_mode == FT_PIXEL_MODE_BGRA); - - return ft_bitmap; - } - - void FreeTypeFont::BlitGlyph(const FT_Bitmap* ft_bitmap, uint32_t* dst, uint32_t dst_pitch, unsigned char* multiply_table) - { - IM_ASSERT(ft_bitmap != NULL); - const uint32_t w = ft_bitmap->width; - const uint32_t h = ft_bitmap->rows; - const uint8_t* src = ft_bitmap->buffer; - const uint32_t src_pitch = ft_bitmap->pitch; - - switch (ft_bitmap->pixel_mode) - { - case FT_PIXEL_MODE_GRAY: // Grayscale image, 1 byte per pixel. - { - if (multiply_table == NULL) - { - for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) - for (uint32_t x = 0; x < w; x++) - dst[x] = IM_COL32(255, 255, 255, src[x]); - } - else - { - for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) - for (uint32_t x = 0; x < w; x++) - dst[x] = IM_COL32(255, 255, 255, multiply_table[src[x]]); - } - break; - } - case FT_PIXEL_MODE_MONO: // Monochrome image, 1 bit per pixel. The bits in each byte are ordered from MSB to LSB. - { - uint8_t color0 = multiply_table ? multiply_table[0] : 0; - uint8_t color1 = multiply_table ? multiply_table[255] : 255; - for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) - { - uint8_t bits = 0; - const uint8_t* bits_ptr = src; - for (uint32_t x = 0; x < w; x++, bits <<= 1) - { - if ((x & 7) == 0) - bits = *bits_ptr++; - dst[x] = IM_COL32(255, 255, 255, (bits & 0x80) ? color1 : color0); - } - } - break; - } - case FT_PIXEL_MODE_BGRA: - { - // FIXME: Converting pre-multiplied alpha to straight. Doesn't smell good. - #define DE_MULTIPLY(color, alpha) (ImU32)(255.0f * (float)color / (float)alpha + 0.5f) - if (multiply_table == NULL) - { - for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) - for (uint32_t x = 0; x < w; x++) - { - uint8_t r = src[x * 4 + 2], g = src[x * 4 + 1], b = src[x * 4], a = src[x * 4 + 3]; - dst[x] = IM_COL32(DE_MULTIPLY(r, a), DE_MULTIPLY(g, a), DE_MULTIPLY(b, a), a); - } - } - else - { - for (uint32_t y = 0; y < h; y++, src += src_pitch, dst += dst_pitch) - { - for (uint32_t x = 0; x < w; x++) - { - uint8_t r = src[x * 4 + 2], g = src[x * 4 + 1], b = src[x * 4], a = src[x * 4 + 3]; - dst[x] = IM_COL32(multiply_table[DE_MULTIPLY(r, a)], multiply_table[DE_MULTIPLY(g, a)], multiply_table[DE_MULTIPLY(b, a)], multiply_table[a]); - } - } - } - #undef DE_MULTIPLY - break; - } - default: - IM_ASSERT(0 && "FreeTypeFont::BlitGlyph(): Unknown bitmap pixel mode!"); - } - } -} - -#ifndef STB_RECT_PACK_IMPLEMENTATION // in case the user already have an implementation in the _same_ compilation unit (e.g. unity builds) -#ifndef IMGUI_DISABLE_STB_RECT_PACK_IMPLEMENTATION -#define STBRP_ASSERT(x) do { IM_ASSERT(x); } while (0) -#define STBRP_STATIC -#define STB_RECT_PACK_IMPLEMENTATION -#endif -#ifdef IMGUI_STB_RECT_PACK_FILENAME -#include IMGUI_STB_RECT_PACK_FILENAME -#else -#include "imstb_rectpack.h" -#endif -#endif - -struct ImFontBuildSrcGlyphFT -{ - GlyphInfo Info; - uint32_t Codepoint; - unsigned int* BitmapData; // Point within one of the dst_tmp_bitmap_buffers[] array - - ImFontBuildSrcGlyphFT() { memset(this, 0, sizeof(*this)); } -}; - -struct ImFontBuildSrcDataFT -{ - FreeTypeFont Font; - stbrp_rect* Rects; // Rectangle to pack. We first fill in their size and the packer will give us their position. - const ImWchar* SrcRanges; // Ranges as requested by user (user is allowed to request too much, e.g. 0x0020..0xFFFF) - int DstIndex; // Index into atlas->Fonts[] and dst_tmp_array[] - int GlyphsHighest; // Highest requested codepoint - int GlyphsCount; // Glyph count (excluding missing glyphs and glyphs already set by an earlier source font) - ImBitVector GlyphsSet; // Glyph bit map (random access, 1-bit per codepoint. This will be a maximum of 8KB) - ImVector GlyphsList; -}; - -// Temporary data for one destination ImFont* (multiple source fonts can be merged into one destination ImFont) -struct ImFontBuildDstDataFT -{ - int SrcCount; // Number of source fonts targeting this destination font. - int GlyphsHighest; - int GlyphsCount; - ImBitVector GlyphsSet; // This is used to resolve collision when multiple sources are merged into a same destination font. -}; - -bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, unsigned int extra_flags) -{ - IM_ASSERT(atlas->ConfigData.Size > 0); - - ImFontAtlasBuildInit(atlas); - - // Clear atlas - atlas->TexID = (ImTextureID)NULL; - atlas->TexWidth = atlas->TexHeight = 0; - atlas->TexUvScale = ImVec2(0.0f, 0.0f); - atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); - atlas->ClearTexData(); - - // Temporary storage for building - bool src_load_color = false; - ImVector src_tmp_array; - ImVector dst_tmp_array; - src_tmp_array.resize(atlas->ConfigData.Size); - dst_tmp_array.resize(atlas->Fonts.Size); - memset((void*)src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes()); - memset((void*)dst_tmp_array.Data, 0, (size_t)dst_tmp_array.size_in_bytes()); - - // 1. Initialize font loading structure, check font data validity - for (int src_i = 0; src_i < atlas->ConfigData.Size; src_i++) - { - ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; - ImFontConfig& cfg = atlas->ConfigData[src_i]; - FreeTypeFont& font_face = src_tmp.Font; - IM_ASSERT(cfg.DstFont && (!cfg.DstFont->IsLoaded() || cfg.DstFont->ContainerAtlas == atlas)); - - // Find index from cfg.DstFont (we allow the user to set cfg.DstFont. Also it makes casual debugging nicer than when storing indices) - src_tmp.DstIndex = -1; - for (int output_i = 0; output_i < atlas->Fonts.Size && src_tmp.DstIndex == -1; output_i++) - if (cfg.DstFont == atlas->Fonts[output_i]) - src_tmp.DstIndex = output_i; - IM_ASSERT(src_tmp.DstIndex != -1); // cfg.DstFont not pointing within atlas->Fonts[] array? - if (src_tmp.DstIndex == -1) - return false; - - // Load font - if (!font_face.InitFont(ft_library, cfg, extra_flags)) - return false; - - // Measure highest codepoints - src_load_color |= (cfg.FontBuilderFlags & ImGuiFreeTypeBuilderFlags_LoadColor) != 0; - ImFontBuildDstDataFT& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; - src_tmp.SrcRanges = cfg.GlyphRanges ? cfg.GlyphRanges : atlas->GetGlyphRangesDefault(); - for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) - src_tmp.GlyphsHighest = ImMax(src_tmp.GlyphsHighest, (int)src_range[1]); - dst_tmp.SrcCount++; - dst_tmp.GlyphsHighest = ImMax(dst_tmp.GlyphsHighest, src_tmp.GlyphsHighest); - } - - // 2. For every requested codepoint, check for their presence in the font data, and handle redundancy or overlaps between source fonts to avoid unused glyphs. - int total_glyphs_count = 0; - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; - ImFontBuildDstDataFT& dst_tmp = dst_tmp_array[src_tmp.DstIndex]; - src_tmp.GlyphsSet.Create(src_tmp.GlyphsHighest + 1); - if (dst_tmp.GlyphsSet.Storage.empty()) - dst_tmp.GlyphsSet.Create(dst_tmp.GlyphsHighest + 1); - - for (const ImWchar* src_range = src_tmp.SrcRanges; src_range[0] && src_range[1]; src_range += 2) - for (int codepoint = src_range[0]; codepoint <= (int)src_range[1]; codepoint++) - { - if (dst_tmp.GlyphsSet.TestBit(codepoint)) // Don't overwrite existing glyphs. We could make this an option (e.g. MergeOverwrite) - continue; - uint32_t glyph_index = FT_Get_Char_Index(src_tmp.Font.Face, codepoint); // It is actually in the font? (FIXME-OPT: We are not storing the glyph_index..) - if (glyph_index == 0) - continue; - - // Add to avail set/counters - src_tmp.GlyphsCount++; - dst_tmp.GlyphsCount++; - src_tmp.GlyphsSet.SetBit(codepoint); - dst_tmp.GlyphsSet.SetBit(codepoint); - total_glyphs_count++; - } - } - - // 3. Unpack our bit map into a flat list (we now have all the Unicode points that we know are requested _and_ available _and_ not overlapping another) - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; - src_tmp.GlyphsList.reserve(src_tmp.GlyphsCount); - - IM_ASSERT(sizeof(src_tmp.GlyphsSet.Storage.Data[0]) == sizeof(ImU32)); - const ImU32* it_begin = src_tmp.GlyphsSet.Storage.begin(); - const ImU32* it_end = src_tmp.GlyphsSet.Storage.end(); - for (const ImU32* it = it_begin; it < it_end; it++) - if (ImU32 entries_32 = *it) - for (ImU32 bit_n = 0; bit_n < 32; bit_n++) - if (entries_32 & ((ImU32)1 << bit_n)) - { - ImFontBuildSrcGlyphFT src_glyph; - src_glyph.Codepoint = (ImWchar)(((it - it_begin) << 5) + bit_n); - //src_glyph.GlyphIndex = 0; // FIXME-OPT: We had this info in the previous step and lost it.. - src_tmp.GlyphsList.push_back(src_glyph); - } - src_tmp.GlyphsSet.Clear(); - IM_ASSERT(src_tmp.GlyphsList.Size == src_tmp.GlyphsCount); - } - for (int dst_i = 0; dst_i < dst_tmp_array.Size; dst_i++) - dst_tmp_array[dst_i].GlyphsSet.Clear(); - dst_tmp_array.clear(); - - // Allocate packing character data and flag packed characters buffer as non-packed (x0=y0=x1=y1=0) - // (We technically don't need to zero-clear buf_rects, but let's do it for the sake of sanity) - ImVector buf_rects; - buf_rects.resize(total_glyphs_count); - memset(buf_rects.Data, 0, (size_t)buf_rects.size_in_bytes()); - - // Allocate temporary rasterization data buffers. - // We could not find a way to retrieve accurate glyph size without rendering them. - // (e.g. slot->metrics->width not always matching bitmap->width, especially considering the Oblique transform) - // We allocate in chunks of 256 KB to not waste too much extra memory ahead. Hopefully users of FreeType won't find the temporary allocations. - const int BITMAP_BUFFERS_CHUNK_SIZE = 256 * 1024; - int buf_bitmap_current_used_bytes = 0; - ImVector buf_bitmap_buffers; - buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); - - // 4. Gather glyphs sizes so we can pack them in our virtual canvas. - // 8. Render/rasterize font characters into the texture - int total_surface = 0; - int buf_rects_out_n = 0; - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; - ImFontConfig& cfg = atlas->ConfigData[src_i]; - if (src_tmp.GlyphsCount == 0) - continue; - - src_tmp.Rects = &buf_rects[buf_rects_out_n]; - buf_rects_out_n += src_tmp.GlyphsCount; - - // Compute multiply table if requested - const bool multiply_enabled = (cfg.RasterizerMultiply != 1.0f); - unsigned char multiply_table[256]; - if (multiply_enabled) - ImFontAtlasBuildMultiplyCalcLookupTable(multiply_table, cfg.RasterizerMultiply); - - // Gather the sizes of all rectangles we will need to pack - const int padding = atlas->TexGlyphPadding; - for (int glyph_i = 0; glyph_i < src_tmp.GlyphsList.Size; glyph_i++) - { - ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; - - const FT_Glyph_Metrics* metrics = src_tmp.Font.LoadGlyph(src_glyph.Codepoint); - if (metrics == NULL) - continue; - - // Render glyph into a bitmap (currently held by FreeType) - const FT_Bitmap* ft_bitmap = src_tmp.Font.RenderGlyphAndGetInfo(&src_glyph.Info); - IM_ASSERT(ft_bitmap); - - // Allocate new temporary chunk if needed - const int bitmap_size_in_bytes = src_glyph.Info.Width * src_glyph.Info.Height * 4; - if (buf_bitmap_current_used_bytes + bitmap_size_in_bytes > BITMAP_BUFFERS_CHUNK_SIZE) - { - buf_bitmap_current_used_bytes = 0; - buf_bitmap_buffers.push_back((unsigned char*)IM_ALLOC(BITMAP_BUFFERS_CHUNK_SIZE)); - } - - // Blit rasterized pixels to our temporary buffer and keep a pointer to it. - src_glyph.BitmapData = (unsigned int*)(buf_bitmap_buffers.back() + buf_bitmap_current_used_bytes); - buf_bitmap_current_used_bytes += bitmap_size_in_bytes; - src_tmp.Font.BlitGlyph(ft_bitmap, src_glyph.BitmapData, src_glyph.Info.Width, multiply_enabled ? multiply_table : NULL); - - src_tmp.Rects[glyph_i].w = (stbrp_coord)(src_glyph.Info.Width + padding); - src_tmp.Rects[glyph_i].h = (stbrp_coord)(src_glyph.Info.Height + padding); - total_surface += src_tmp.Rects[glyph_i].w * src_tmp.Rects[glyph_i].h; - } - } - - // We need a width for the skyline algorithm, any width! - // The exact width doesn't really matter much, but some API/GPU have texture size limitations and increasing width can decrease height. - // User can override TexDesiredWidth and TexGlyphPadding if they wish, otherwise we use a simple heuristic to select the width based on expected surface. - const int surface_sqrt = (int)ImSqrt((float)total_surface) + 1; - atlas->TexHeight = 0; - if (atlas->TexDesiredWidth > 0) - atlas->TexWidth = atlas->TexDesiredWidth; - else - atlas->TexWidth = (surface_sqrt >= 4096 * 0.7f) ? 4096 : (surface_sqrt >= 2048 * 0.7f) ? 2048 : (surface_sqrt >= 1024 * 0.7f) ? 1024 : 512; - - // 5. Start packing - // Pack our extra data rectangles first, so it will be on the upper-left corner of our texture (UV will have small values). - const int TEX_HEIGHT_MAX = 1024 * 32; - const int num_nodes_for_packing_algorithm = atlas->TexWidth - atlas->TexGlyphPadding; - ImVector pack_nodes; - pack_nodes.resize(num_nodes_for_packing_algorithm); - stbrp_context pack_context; - stbrp_init_target(&pack_context, atlas->TexWidth, TEX_HEIGHT_MAX, pack_nodes.Data, pack_nodes.Size); - ImFontAtlasBuildPackCustomRects(atlas, &pack_context); - - // 6. Pack each source font. No rendering yet, we are working with rectangles in an infinitely tall texture at this point. - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; - if (src_tmp.GlyphsCount == 0) - continue; - - stbrp_pack_rects(&pack_context, src_tmp.Rects, src_tmp.GlyphsCount); - - // Extend texture height and mark missing glyphs as non-packed so we won't render them. - // FIXME: We are not handling packing failure here (would happen if we got off TEX_HEIGHT_MAX or if a single if larger than TexWidth?) - for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) - if (src_tmp.Rects[glyph_i].was_packed) - atlas->TexHeight = ImMax(atlas->TexHeight, src_tmp.Rects[glyph_i].y + src_tmp.Rects[glyph_i].h); - } - - // 7. Allocate texture - atlas->TexHeight = (atlas->Flags & ImFontAtlasFlags_NoPowerOfTwoHeight) ? (atlas->TexHeight + 1) : ImUpperPowerOfTwo(atlas->TexHeight); - atlas->TexUvScale = ImVec2(1.0f / atlas->TexWidth, 1.0f / atlas->TexHeight); - if (src_load_color) - { - atlas->TexPixelsRGBA32 = (unsigned int*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight * 4); - memset(atlas->TexPixelsRGBA32, 0, atlas->TexWidth * atlas->TexHeight * 4); - } - else - { - atlas->TexPixelsAlpha8 = (unsigned char*)IM_ALLOC(atlas->TexWidth * atlas->TexHeight); - memset(atlas->TexPixelsAlpha8, 0, atlas->TexWidth * atlas->TexHeight); - } - - // 8. Copy rasterized font characters back into the main texture - // 9. Setup ImFont and glyphs for runtime - bool tex_use_colors = false; - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - { - ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i]; - if (src_tmp.GlyphsCount == 0) - continue; - - // When merging fonts with MergeMode=true: - // - We can have multiple input fonts writing into a same destination font. - // - dst_font->ConfigData is != from cfg which is our source configuration. - ImFontConfig& cfg = atlas->ConfigData[src_i]; - ImFont* dst_font = cfg.DstFont; - - const float ascent = src_tmp.Font.Info.Ascender; - const float descent = src_tmp.Font.Info.Descender; - ImFontAtlasBuildSetupFont(atlas, dst_font, &cfg, ascent, descent); - const float font_off_x = cfg.GlyphOffset.x; - const float font_off_y = cfg.GlyphOffset.y + IM_ROUND(dst_font->Ascent); - - const int padding = atlas->TexGlyphPadding; - for (int glyph_i = 0; glyph_i < src_tmp.GlyphsCount; glyph_i++) - { - ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; - stbrp_rect& pack_rect = src_tmp.Rects[glyph_i]; - IM_ASSERT(pack_rect.was_packed); - if (pack_rect.w == 0 && pack_rect.h == 0) - continue; - - GlyphInfo& info = src_glyph.Info; - IM_ASSERT(info.Width + padding <= pack_rect.w); - IM_ASSERT(info.Height + padding <= pack_rect.h); - const int tx = pack_rect.x + padding; - const int ty = pack_rect.y + padding; - - // Blit from temporary buffer to final texture - size_t blit_src_stride = (size_t)src_glyph.Info.Width; - size_t blit_dst_stride = (size_t)atlas->TexWidth; - unsigned int* blit_src = src_glyph.BitmapData; - if (atlas->TexPixelsAlpha8 != NULL) - { - unsigned char* blit_dst = atlas->TexPixelsAlpha8 + (ty * blit_dst_stride) + tx; - for (int y = 0; y < info.Height; y++, blit_dst += blit_dst_stride, blit_src += blit_src_stride) - for (int x = 0; x < info.Width; x++) - blit_dst[x] = (unsigned char)((blit_src[x] >> IM_COL32_A_SHIFT) & 0xFF); - } - else - { - unsigned int* blit_dst = atlas->TexPixelsRGBA32 + (ty * blit_dst_stride) + tx; - for (int y = 0; y < info.Height; y++, blit_dst += blit_dst_stride, blit_src += blit_src_stride) - for (int x = 0; x < info.Width; x++) - blit_dst[x] = blit_src[x]; - } - - // Register glyph - float x0 = info.OffsetX + font_off_x; - float y0 = info.OffsetY + font_off_y; - float x1 = x0 + info.Width; - float y1 = y0 + info.Height; - float u0 = (tx) / (float)atlas->TexWidth; - float v0 = (ty) / (float)atlas->TexHeight; - float u1 = (tx + info.Width) / (float)atlas->TexWidth; - float v1 = (ty + info.Height) / (float)atlas->TexHeight; - dst_font->AddGlyph(&cfg, (ImWchar)src_glyph.Codepoint, x0, y0, x1, y1, u0, v0, u1, v1, info.AdvanceX); - - ImFontGlyph* dst_glyph = &dst_font->Glyphs.back(); - IM_ASSERT(dst_glyph->Codepoint == src_glyph.Codepoint); - if (src_glyph.Info.IsColored) - dst_glyph->Colored = tex_use_colors = true; - } - - src_tmp.Rects = NULL; - } - atlas->TexPixelsUseColors = tex_use_colors; - - // Cleanup - for (int buf_i = 0; buf_i < buf_bitmap_buffers.Size; buf_i++) - IM_FREE(buf_bitmap_buffers[buf_i]); - for (int src_i = 0; src_i < src_tmp_array.Size; src_i++) - src_tmp_array[src_i].~ImFontBuildSrcDataFT(); - - ImFontAtlasBuildFinish(atlas); - - return true; -} - -// FreeType memory allocation callbacks -static void* FreeType_Alloc(FT_Memory /*memory*/, long size) -{ - return GImGuiFreeTypeAllocFunc((size_t)size, GImGuiFreeTypeAllocatorUserData); -} - -static void FreeType_Free(FT_Memory /*memory*/, void* block) -{ - GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); -} - -static void* FreeType_Realloc(FT_Memory /*memory*/, long cur_size, long new_size, void* block) -{ - // Implement realloc() as we don't ask user to provide it. - if (block == NULL) - return GImGuiFreeTypeAllocFunc((size_t)new_size, GImGuiFreeTypeAllocatorUserData); - - if (new_size == 0) - { - GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); - return NULL; - } - - if (new_size > cur_size) - { - void* new_block = GImGuiFreeTypeAllocFunc((size_t)new_size, GImGuiFreeTypeAllocatorUserData); - memcpy(new_block, block, (size_t)cur_size); - GImGuiFreeTypeFreeFunc(block, GImGuiFreeTypeAllocatorUserData); - return new_block; - } - - return block; -} - -static bool ImFontAtlasBuildWithFreeType(ImFontAtlas* atlas) -{ - // FreeType memory management: https://www.freetype.org/freetype2/docs/design/design-4.html - FT_MemoryRec_ memory_rec = {}; - memory_rec.user = NULL; - memory_rec.alloc = &FreeType_Alloc; - memory_rec.free = &FreeType_Free; - memory_rec.realloc = &FreeType_Realloc; - - // https://www.freetype.org/freetype2/docs/reference/ft2-module_management.html#FT_New_Library - FT_Library ft_library; - FT_Error error = FT_New_Library(&memory_rec, &ft_library); - if (error != 0) - return false; - - // If you don't call FT_Add_Default_Modules() the rest of code may work, but FreeType won't use our custom allocator. - FT_Add_Default_Modules(ft_library); - - bool ret = ImFontAtlasBuildWithFreeTypeEx(ft_library, atlas, atlas->FontBuilderFlags); - FT_Done_Library(ft_library); - - return ret; -} - -const ImFontBuilderIO* ImGuiFreeType::GetBuilderForFreeType() -{ - static ImFontBuilderIO io; - io.FontBuilder_Build = ImFontAtlasBuildWithFreeType; - return &io; -} - -void ImGuiFreeType::SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data) -{ - GImGuiFreeTypeAllocFunc = alloc_func; - GImGuiFreeTypeFreeFunc = free_func; - GImGuiFreeTypeAllocatorUserData = user_data; -} diff --git a/third_party/imgui/misc/freetype/imgui_freetype.h b/third_party/imgui/misc/freetype/imgui_freetype.h deleted file mode 100644 index 713e4639..00000000 --- a/third_party/imgui/misc/freetype/imgui_freetype.h +++ /dev/null @@ -1,50 +0,0 @@ -// dear imgui: FreeType font builder (used as a replacement for the stb_truetype builder) -// (headers) - -#pragma once - -#include "imgui.h" // IMGUI_API - -// Forward declarations -struct ImFontAtlas; -struct ImFontBuilderIO; - -// Hinting greatly impacts visuals (and glyph sizes). -// - By default, hinting is enabled and the font's native hinter is preferred over the auto-hinter. -// - When disabled, FreeType generates blurrier glyphs, more or less matches the stb_truetype.h -// - The Default hinting mode usually looks good, but may distort glyphs in an unusual way. -// - The Light hinting mode generates fuzzier glyphs but better matches Microsoft's rasterizer. -// You can set those flags globaly in ImFontAtlas::FontBuilderFlags -// You can set those flags on a per font basis in ImFontConfig::FontBuilderFlags -enum ImGuiFreeTypeBuilderFlags -{ - ImGuiFreeTypeBuilderFlags_NoHinting = 1 << 0, // Disable hinting. This generally generates 'blurrier' bitmap glyphs when the glyph are rendered in any of the anti-aliased modes. - ImGuiFreeTypeBuilderFlags_NoAutoHint = 1 << 1, // Disable auto-hinter. - ImGuiFreeTypeBuilderFlags_ForceAutoHint = 1 << 2, // Indicates that the auto-hinter is preferred over the font's native hinter. - ImGuiFreeTypeBuilderFlags_LightHinting = 1 << 3, // A lighter hinting algorithm for gray-level modes. Many generated glyphs are fuzzier but better resemble their original shape. This is achieved by snapping glyphs to the pixel grid only vertically (Y-axis), as is done by Microsoft's ClearType and Adobe's proprietary font renderer. This preserves inter-glyph spacing in horizontal text. - ImGuiFreeTypeBuilderFlags_MonoHinting = 1 << 4, // Strong hinting algorithm that should only be used for monochrome output. - ImGuiFreeTypeBuilderFlags_Bold = 1 << 5, // Styling: Should we artificially embolden the font? - ImGuiFreeTypeBuilderFlags_Oblique = 1 << 6, // Styling: Should we slant the font, emulating italic style? - ImGuiFreeTypeBuilderFlags_Monochrome = 1 << 7, // Disable anti-aliasing. Combine this with MonoHinting for best results! - ImGuiFreeTypeBuilderFlags_LoadColor = 1 << 8, // Enable FreeType color-layered glyphs - ImGuiFreeTypeBuilderFlags_Bitmap = 1 << 9 // Enable FreeType bitmap glyphs -}; - -namespace ImGuiFreeType -{ - // This is automatically assigned when using '#define IMGUI_ENABLE_FREETYPE'. - // If you need to dynamically select between multiple builders: - // - you can manually assign this builder with 'atlas->FontBuilderIO = ImGuiFreeType::GetBuilderForFreeType()' - // - prefer deep-copying this into your own ImFontBuilderIO instance if you use hot-reloading that messes up static data. - IMGUI_API const ImFontBuilderIO* GetBuilderForFreeType(); - - // Override allocators. By default ImGuiFreeType will use IM_ALLOC()/IM_FREE() - // However, as FreeType does lots of allocations we provide a way for the user to redirect it to a separate memory heap if desired. - IMGUI_API void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), void (*free_func)(void* ptr, void* user_data), void* user_data = NULL); - - // Obsolete names (will be removed soon) - // Prefer using '#define IMGUI_ENABLE_FREETYPE' -#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - static inline bool BuildFontAtlas(ImFontAtlas* atlas, unsigned int flags = 0) { atlas->FontBuilderIO = GetBuilderForFreeType(); atlas->FontBuilderFlags = flags; return atlas->Build(); } -#endif -} diff --git a/third_party/imgui/misc/natvis/README.txt b/third_party/imgui/misc/natvis/README.txt deleted file mode 100644 index 1219db45..00000000 --- a/third_party/imgui/misc/natvis/README.txt +++ /dev/null @@ -1,4 +0,0 @@ - -Natvis file to describe dear imgui types in the Visual Studio debugger. -With this, types like ImVector<> will be displayed nicely in the debugger. -You can include this file a Visual Studio project file, or install it in Visual Studio folder. diff --git a/third_party/imgui/misc/natvis/imgui.natvis b/third_party/imgui/misc/natvis/imgui.natvis deleted file mode 100644 index 25d72fb6..00000000 --- a/third_party/imgui/misc/natvis/imgui.natvis +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - {{Size={Size} Capacity={Capacity}}} - - - Size - Data - - - - - - {{Size={DataEnd-Data} }} - - - DataEnd-Data - Data - - - - - - {{x={x,g} y={y,g}}} - - - - {{x={x,g} y={y,g} z={z,g} w={w,g}}} - - - - {{Min=({Min.x,g} {Min.y,g}) Max=({Max.x,g} {Max.y,g}) Size=({Max.x-Min.x,g} {Max.y-Min.y,g})}} - - Min - Max - Max.x - Min.x - Max.y - Min.y - - - - - {{Name {Name,s} Active {(Active||WasActive)?1:0,d} Child {(Flags & 0x01000000)?1:0,d} Popup {(Flags & 0x04000000)?1:0,d} Hidden {(Hidden)?1:0,d}} - - - \ No newline at end of file diff --git a/third_party/imgui/misc/single_file/imgui_single_file.h b/third_party/imgui/misc/single_file/imgui_single_file.h deleted file mode 100644 index 6c1fb369..00000000 --- a/third_party/imgui/misc/single_file/imgui_single_file.h +++ /dev/null @@ -1,18 +0,0 @@ -// dear imgui: single-file wrapper include -// We use this to validate compiling all *.cpp files in a same compilation unit. -// Users of that technique (also called "Unity builds") can generally provide this themselves, -// so we don't really recommend you use this in your projects. - -// Do this: -// #define IMGUI_IMPLEMENTATION -// Before you include this file in *one* C++ file to create the implementation. -// Using this in your project will leak the contents of imgui_internal.h and ImVec2 operators in this compilation unit. -#include "../../imgui.h" - -#ifdef IMGUI_IMPLEMENTATION -#include "../../imgui.cpp" -#include "../../imgui_demo.cpp" -#include "../../imgui_draw.cpp" -#include "../../imgui_tables.cpp" -#include "../../imgui_widgets.cpp" -#endif diff --git a/third_party/libuv b/third_party/libuv deleted file mode 160000 index b8368a14..00000000 --- a/third_party/libuv +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b8368a1441fd4ebdaaae70b67136c80b1a98be32 diff --git a/third_party/luv b/third_party/luv deleted file mode 160000 index 3e55ac43..00000000 --- a/third_party/luv +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3e55ac4331d06aa5f43016a142aa2aaa23264105 diff --git a/third_party/miniaudio b/third_party/miniaudio deleted file mode 160000 index 4a5b74be..00000000 --- a/third_party/miniaudio +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4a5b74bef029b3592c54b6048650ee5f972c1a48 diff --git a/third_party/mio b/third_party/mio deleted file mode 160000 index 8b6b7d87..00000000 --- a/third_party/mio +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8b6b7d878c89e81614d05edca7936de41ccdd2da diff --git a/third_party/oaknut b/third_party/oaknut deleted file mode 160000 index 94c726ce..00000000 --- a/third_party/oaknut +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 94c726ce0338b054eb8cb5ea91de8fe6c19f4392 diff --git a/third_party/opengl/opengl.hpp b/third_party/opengl/opengl.hpp deleted file mode 100644 index f368f573..00000000 --- a/third_party/opengl/opengl.hpp +++ /dev/null @@ -1,696 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2022 PCSX-Redux & Panda3DS authors * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - ***************************************************************************/ - -#pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -// Check if we have C++20. If yes, we can add C++20 std::span support -#ifdef _MSVC_LANG // MSVC does not properly define __cplusplus without a compiler flag... -#if _MSVC_LANG >= 202002L -#define OPENGL_HAVE_CPP20 -#endif -#elif __cplusplus >= 202002L -#define OPENGL_HAVE_CPP20 -#endif // MSVC_LANG - -#ifdef OPENGL_HAVE_CPP20 -#include -#endif - -#if defined(GPU_DEBUG_INFO) -#define OPENGL_DEBUG_INFO -#endif - -#ifdef _MSC_VER -#include -#define OPENGL_PRINTF_FORMAT _Printf_format_string_ -#define OPENGL_PRINTF_FORMAT_ATTR(format_arg_index, dots_arg_index) -#else -#define OPENGL_PRINTF_FORMAT -#define OPENGL_PRINTF_FORMAT_ATTR(format_arg_index, dots_arg_index) __attribute__((__format__(__printf__, format_arg_index, dots_arg_index))) -#endif - -// Uncomment the following define if you want GL objects to automatically free themselves when their lifetime ends -// #define OPENGL_DESTRUCTORS - -namespace OpenGL { - - // Workaround for using static_assert inside constexpr if - // https://stackoverflow.com/questions/53945490/how-to-assert-that-a-constexpr-if-else-clause-never-happen - template - constexpr std::false_type AlwaysFalse{}; - - OPENGL_PRINTF_FORMAT_ATTR(3, 4) - static void setObjectLabel(GLenum identifier, GLuint name, OPENGL_PRINTF_FORMAT const char* format, ...) { -#if defined(OPENGL_DEBUG_INFO) - GLchar label[256] = {}; - va_list args; - va_start(args, format); - const GLsizei length = vsnprintf(label, std::size(label), format, args); - va_end(args); - glObjectLabel(identifier, name, length, label); -#endif - } - - class DebugScope { -#if defined(OPENGL_DEBUG_INFO) - inline static GLuint scopeDepth = 0; - const GLuint m_scope_depth; -#endif - - public: - OPENGL_PRINTF_FORMAT_ATTR(2, 3) - DebugScope(OPENGL_PRINTF_FORMAT const char* format, ...) -#if defined(OPENGL_DEBUG_INFO) - : m_scope_depth(scopeDepth++) { - GLchar message[256] = {}; - va_list args; - va_start(args, format); - const GLsizei length = vsnprintf(message, std::size(message), format, args); - va_end(args); - glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, m_scope_depth, length, message); - } -#else - { - } -#endif - - ~DebugScope() { -#if defined(OPENGL_DEBUG_INFO) - glPopDebugGroup(); - scopeDepth--; -#endif - } - }; - - struct VertexArray { - GLuint m_handle = 0; - - void create() { - if (m_handle == 0) { - glGenVertexArrays(1, &m_handle); - } - } - VertexArray(bool shouldCreate = false) { - if (shouldCreate) { - create(); - } - } - -#ifdef OPENGL_DESTRUCTORS - ~VertexArray() { free(); } -#endif - GLuint handle() const { return m_handle; } - bool exists() const { return m_handle != 0; } - void bind() const { glBindVertexArray(m_handle); } - - template - void setAttributeFloat(GLuint index, GLint size, GLsizei stride, const void* offset, bool normalized = GL_FALSE) { - if constexpr (std::is_same()) { - glVertexAttribPointer(index, size, GL_FLOAT, normalized, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribPointer(index, size, GL_BYTE, normalized, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribPointer(index, size, GL_UNSIGNED_BYTE, normalized, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribPointer(index, size, GL_SHORT, normalized, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribPointer(index, size, GL_UNSIGNED_SHORT, normalized, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribPointer(index, size, GL_INT, normalized, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribPointer(index, size, GL_UNSIGNED_INT, normalized, stride, offset); - } - else { - static_assert(AlwaysFalse, "Unimplemented type for OpenGL::setAttributeFloat"); - } - } - - template - void setAttributeInt(GLuint index, GLint size, GLsizei stride, const void* offset) { - if constexpr (std::is_same()) { - glVertexAttribIPointer(index, size, GL_BYTE, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribIPointer(index, size, GL_UNSIGNED_BYTE, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribIPointer(index, size, GL_SHORT, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribIPointer(index, size, GL_UNSIGNED_SHORT, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribIPointer(index, size, GL_INT, stride, offset); - } - else if constexpr (std::is_same()) { - glVertexAttribIPointer(index, size, GL_UNSIGNED_INT, stride, offset); - } - else { - static_assert(AlwaysFalse, "Unimplemented type for OpenGL::setAttributeInt"); - } - } - - template - void setAttributeFloat(GLuint index, GLint size, GLsizei stride, size_t offset, bool normalized = false) { - setAttributeFloat(index, size, stride, reinterpret_cast(offset), normalized); - } - - template - void setAttributeInt(GLuint index, GLint size, GLsizei stride, size_t offset) { - setAttributeInt(index, size, stride, reinterpret_cast(offset)); - } - - void enableAttribute(GLuint index) { glEnableVertexAttribArray(index); } - void disableAttribute(GLuint index) { glDisableVertexAttribArray(index); } - - void free() { - glDeleteVertexArrays(1, &m_handle); - } - }; - - enum FramebufferTypes { - DrawFramebuffer = GL_DRAW_FRAMEBUFFER, - ReadFramebuffer = GL_READ_FRAMEBUFFER, - DrawAndReadFramebuffer = GL_FRAMEBUFFER - }; - - // Texture filters - enum Filters { - Nearest = GL_NEAREST, - Linear = GL_LINEAR, - NearestMipmapNearest = GL_NEAREST_MIPMAP_NEAREST, - NearestMipmapLinear = GL_NEAREST_MIPMAP_LINEAR, - LinearMipmapNearest = GL_LINEAR_MIPMAP_NEAREST, - LinearMipmapLinear = GL_LINEAR_MIPMAP_LINEAR - }; - - // Wrapping mode for texture UVs - enum WrappingMode { - ClampToEdge = GL_CLAMP_TO_EDGE, - ClampToBorder = GL_CLAMP_TO_BORDER, - RepeatMirrored = GL_MIRRORED_REPEAT, - Repeat = GL_REPEAT, - MirrorClampToEdge = GL_MIRROR_CLAMP_TO_EDGE - }; - - struct Texture { - GLuint m_handle = 0; - int m_width, m_height; - GLenum m_binding; - int m_samples = 1; // For MSAA - - void create(int width, int height, GLint internalFormat, GLenum binding = GL_TEXTURE_2D, int samples = 1) { - m_width = width; - m_height = height; - m_binding = binding; - - glGenTextures(1, &m_handle); - bind(); - - if (binding == GL_TEXTURE_2D_MULTISAMPLE) { - if (!glTexStorage2DMultisample) { // Assert that glTexStorage2DMultisample has been loaded - throw std::runtime_error("MSAA is not supported on this platform"); - } - - int maxSampleCount; - glGetIntegerv(GL_MAX_INTEGER_SAMPLES, &maxSampleCount); - if (samples > maxSampleCount) { - samples = maxSampleCount; - } - - glTexStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, samples, internalFormat, width, height, GL_TRUE); - } - else { - glTexStorage2D(binding, 1, internalFormat, width, height); - } - } - - void createMSAA(int width, int height, GLint internalFormat, int samples) { - create(width, height, internalFormat, GL_TEXTURE_2D_MULTISAMPLE, samples); - } - - // Creates a depth, stencil or depth-stencil texture - void createDSTexture(int width, int height, GLenum internalFormat, GLenum format, const void* data = nullptr, - GLenum type = GL_FLOAT, GLenum binding = GL_TEXTURE_2D) { - m_width = width; - m_height = height; - m_binding = binding; - - glGenTextures(1, &m_handle); - bind(); - glTexImage2D(binding, 0, internalFormat, width, height, 0, format, type, data); - } - - void setWrapS(WrappingMode mode) { - glTexParameteri(m_binding, GL_TEXTURE_WRAP_S, static_cast(mode)); - } - - void setWrapT(WrappingMode mode) { - glTexParameteri(m_binding, GL_TEXTURE_WRAP_T, static_cast(mode)); - } - - void setWrapR(WrappingMode mode) { - glTexParameteri(m_binding, GL_TEXTURE_WRAP_R, static_cast(mode)); - } - - void setMinFilter(Filters filter) { - glTexParameteri(m_binding, GL_TEXTURE_MIN_FILTER, static_cast(filter)); - } - - void setMagFilter(Filters filter) { - glTexParameteri(m_binding, GL_TEXTURE_MAG_FILTER, static_cast(filter)); - } - -#ifdef OPENGL_DESTRUCTORS - ~Texture() { free(); } -#endif - GLuint handle() const { return m_handle; } - bool exists() const { return m_handle != 0; } - void bind() const { glBindTexture(m_binding, m_handle); } - int width() const { return m_width; } - int height() const { return m_height; } - - void free() { glDeleteTextures(1, &m_handle); } - }; - - struct Framebuffer { - GLuint m_handle = 0; - GLenum m_textureType; // GL_TEXTURE_2D or GL_TEXTURE_2D_MULTISAMPLE - - void create() { - if (m_handle == 0) { - glGenFramebuffers(1, &m_handle); - } - } - - Framebuffer(bool shouldCreate = false) { - if (shouldCreate) { - create(); - } - } - -#ifdef OPENGL_DESTRUCTORS - ~Framebuffer() { free(); } -#endif - GLuint handle() const { return m_handle; } - bool exists() const { return m_handle != 0; } - void bind(GLenum target) const { glBindFramebuffer(target, m_handle); } - void bind(FramebufferTypes target) const { bind(static_cast(target)); } - void free() { glDeleteFramebuffers(1, &m_handle); } - - void createWithTexture(Texture& tex, GLenum mode = GL_FRAMEBUFFER, GLenum attachment = GL_COLOR_ATTACHMENT0, GLenum textureType = GL_TEXTURE_2D) { - m_textureType = textureType; - create(); - bind(mode); - glFramebufferTexture2D(mode, attachment, textureType, tex.handle(), 0); - } - - void createWithReadTexture(Texture& tex, GLenum attachment = GL_COLOR_ATTACHMENT0, GLenum textureType = GL_TEXTURE_2D) { - createWithTexture(tex, GL_READ_FRAMEBUFFER, attachment, textureType); - } - void createWithDrawTexture(Texture& tex, GLenum attachment = GL_COLOR_ATTACHMENT0, GLenum textureType = GL_TEXTURE_2D) { - createWithTexture(tex, GL_DRAW_FRAMEBUFFER, attachment, textureType); - } - - void createWithTextureMSAA(Texture& tex, GLenum mode = GL_FRAMEBUFFER) { - m_textureType = GL_TEXTURE_2D_MULTISAMPLE; - create(); - bind(mode); - glFramebufferTexture2D(mode, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, tex.handle(), 0); - } - }; - - enum ShaderType { - Fragment = GL_FRAGMENT_SHADER, - Vertex = GL_VERTEX_SHADER, - Geometry = GL_GEOMETRY_SHADER, - Compute = GL_COMPUTE_SHADER, - TessControl = GL_TESS_CONTROL_SHADER, - TessEvaluation = GL_TESS_EVALUATION_SHADER - }; - - struct Shader { - GLuint m_handle = 0; - - Shader() {} - Shader(const std::string_view source, ShaderType type) { create(source, static_cast(type)); } - - // Returns whether compilation failed or not - bool create(const std::string_view source, GLenum type) { - m_handle = glCreateShader(type); - const GLchar* const sources[1] = { source.data() }; - - glShaderSource(m_handle, 1, sources, nullptr); - glCompileShader(m_handle); - - GLint success; - glGetShaderiv(m_handle, GL_COMPILE_STATUS, &success); - if (success == GL_FALSE) { - char buf[4096]; - glGetShaderInfoLog(m_handle, 4096, nullptr, buf); - fprintf(stderr, "Failed to compile shader\nError: %s\n", buf); - glDeleteShader(m_handle); - - m_handle = 0; - } - - return m_handle != 0; - } - - GLuint handle() const { return m_handle; } - bool exists() const { return m_handle != 0; } - }; - - struct Program { - GLuint m_handle = 0; - - bool create(std::initializer_list> shaders) { - m_handle = glCreateProgram(); - for (const auto& shader : shaders) { - glAttachShader(m_handle, shader.get().handle()); - } - - glLinkProgram(m_handle); - GLint success; - glGetProgramiv(m_handle, GL_LINK_STATUS, &success); - - if (!success) { - char buf[4096]; - glGetProgramInfoLog(m_handle, 4096, nullptr, buf); - fprintf(stderr, "Failed to link program\nError: %s\n", buf); - glDeleteProgram(m_handle); - - m_handle = 0; - } - - return m_handle != 0; - } - - GLuint handle() const { return m_handle; } - bool exists() const { return m_handle != 0; } - void use() const { glUseProgram(m_handle); } - }; - - static void dispatchCompute(GLuint groupsX = 1, GLuint groupsY = 1, GLuint groupsZ = 1) { - glDispatchCompute(groupsX, groupsY, groupsZ); - } - - struct VertexBuffer { - GLuint m_handle = 0; - - void create() { - if (m_handle == 0) { - glGenBuffers(1, &m_handle); - } - } - - void createFixedSize(GLsizei size, GLenum usage = GL_DYNAMIC_DRAW) { - create(); - bind(); - glBufferData(GL_ARRAY_BUFFER, size, nullptr, usage); - } - - VertexBuffer(bool shouldCreate = false) { - if (shouldCreate) { - create(); - } - } - -#ifdef OPENGL_DESTRUCTORS - ~VertexBuffer() { free(); } -#endif - GLuint handle() const { return m_handle; } - bool exists() const { return m_handle != 0; } - void bind() const { glBindBuffer(GL_ARRAY_BUFFER, m_handle); } - void free() { glDeleteBuffers(1, &m_handle); } - - // Reallocates the buffer on every call. Prefer the sub version if possible. - template - void bufferVerts(VertType* vertices, int vertCount, GLenum usage = GL_DYNAMIC_DRAW) { - glBufferData(GL_ARRAY_BUFFER, sizeof(VertType) * vertCount, vertices, usage); - } - - // Only use if you used createFixedSize - template - void bufferVertsSub(VertType* vertices, int vertCount, GLintptr offset = 0) { - glBufferSubData(GL_ARRAY_BUFFER, offset, sizeof(VertType) * vertCount, vertices); - } - - // If C++20 is available, add overloads that take std::span instead of raw pointers -#ifdef OPENGL_HAVE_CPP20 - template - void bufferVerts(std::span vertices, GLenum usage = GL_DYNAMIC_DRAW) { - glBufferData(GL_ARRAY_BUFFER, sizeof(VertType) * vertices.size(), vertices.data(), usage); - } - - template - void bufferVertsSub(std::span vertices, GLintptr offset = 0) { - glBufferSubData(GL_ARRAY_BUFFER, offset, sizeof(VertType) * vertices.size(), vertices.data()); - } -#endif - }; - - enum DepthFunc { - Never = GL_NEVER, // Depth test never passes - Always = GL_ALWAYS, // Depth test always passes - Equal = GL_EQUAL, // Depth test passes if frag z == depth buffer z - NotEqual = GL_NOTEQUAL, // Depth test passes if frag z != depth buffer z - Less = GL_LESS, // Depth test passes if frag z < depth buffer z - Lequal = GL_LEQUAL, // Depth test passes if frag z <= depth buffer z - Greater = GL_GREATER, // Depth test passes if frag z > depth buffer z - Gequal = GL_GEQUAL, // Depth test passes if frag z >= depth buffer z - }; - - static void setClearColor(float val) { glClearColor(val, val, val, val); } - static void setClearColor(float r, float g, float b, float a) { glClearColor(r, g, b, a); } - static void setClearDepth(float depth) { glClearDepthf(depth); } - static void setClearStencil(GLint stencil) { glClearStencil(stencil); } - static void clearColor() { glClear(GL_COLOR_BUFFER_BIT); } - static void clearDepth() { glClear(GL_DEPTH_BUFFER_BIT); } - static void clearStencil() { glClear(GL_STENCIL_BUFFER_BIT); } - static void clearColorAndDepth() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); } - static void clearColorAndStencil() { glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); } - static void clearDepthAndStencil() { glClear(GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); } - static void clearAll() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); } - - static void setViewport(GLsizei width, GLsizei height) { glViewport(0, 0, width, height); } - static void setViewport(GLsizei x, GLsizei y, GLsizei width, GLsizei height) { glViewport(x, y, width, height); } - static void setScissor(GLsizei width, GLsizei height) { glScissor(0, 0, width, height); } - static void setScissor(GLsizei x, GLsizei y, GLsizei width, GLsizei height) { glScissor(x, y, width, height); } - static void setStencilMask(GLuint mask) { glStencilMask(mask); } - - static void bindScreenFramebuffer() { glBindFramebuffer(GL_FRAMEBUFFER, 0); } - static void enableScissor() { glEnable(GL_SCISSOR_TEST); } - static void disableScissor() { glDisable(GL_SCISSOR_TEST); } - static void enableBlend() { glEnable(GL_BLEND); } - static void disableBlend() { glDisable(GL_BLEND); } - static void enableLogicOp() { glEnable(GL_COLOR_LOGIC_OP); } - static void disableLogicOp() { glDisable(GL_COLOR_LOGIC_OP); } - static void enableDepth() { glEnable(GL_DEPTH_TEST); } - static void disableDepth() { glDisable(GL_DEPTH_TEST); } - static void enableStencil() { glEnable(GL_STENCIL_TEST); } - static void disableStencil() { glDisable(GL_STENCIL_TEST); } - - static void enableClipPlane(GLuint index) { glEnable(GL_CLIP_DISTANCE0 + index); } - static void disableClipPlane(GLuint index) { glDisable(GL_CLIP_DISTANCE0 + index); } - - static void setDepthFunc(DepthFunc func) { glDepthFunc(static_cast(func)); } - static void setColourMask(GLboolean r, GLboolean g, GLboolean b, GLboolean a) { glColorMask(r, g, b, a); } - static void setDepthMask(GLboolean mask) { glDepthMask(mask); } - - // TODO: Add a proper enum for this - static void setLogicOp(GLenum op) { glLogicOp(op); } - - enum Primitives { - Triangle = GL_TRIANGLES, - Triangles = Triangle, - Tri = Triangle, - Tris = Triangle, - TriangleStrip = GL_TRIANGLE_STRIP, - TriangleFan = GL_TRIANGLE_FAN, - Line = GL_LINES, - Lines = Line, - LineStrip = GL_LINE_STRIP, - Point = GL_POINTS, - Points = Point - }; - - static void draw(Primitives prim, GLsizei vertexCount) { glDrawArrays(static_cast(prim), 0, vertexCount); } - static void draw(Primitives prim, GLint first, GLsizei vertexCount) { - glDrawArrays(static_cast(prim), first, vertexCount); - } - - enum FillMode { DrawPoints = GL_POINT, DrawWire = GL_LINE, FillPoly = GL_FILL }; - - static void setFillMode(GLenum mode) { glPolygonMode(GL_FRONT_AND_BACK, mode); } - static void setFillMode(FillMode mode) { glPolygonMode(GL_FRONT_AND_BACK, static_cast(mode)); } - static void drawWireframe() { setFillMode(DrawWire); } - - template - T get(GLenum query) { - T ret{}; - if constexpr (std::is_same()) { - glGetIntegerv(query, &ret); - } - else if constexpr (std::is_same()) { - glGetFloatv(query, &ret); - } - else if constexpr (std::is_same()) { - glGetDoublev(query, &ret); - } - else if constexpr (std::is_same()) { - glGetBooleanv(query, &ret); - } - else { - static_assert(AlwaysFalse, "Invalid type for OpenGL::get"); - } - - return ret; - } - - static bool isEnabled(GLenum query) { return glIsEnabled(query) != GL_FALSE; } - - static GLint getDrawFramebuffer() { return get(GL_DRAW_FRAMEBUFFER_BINDING); } - static GLint maxSamples() { return get(GL_MAX_INTEGER_SAMPLES); } - static GLint getTex2D() { return get(GL_TEXTURE_BINDING_2D); } - static GLint getProgram() { return get(GL_CURRENT_PROGRAM); } - static bool scissorEnabled() { return isEnabled(GL_SCISSOR_TEST); } - - [[nodiscard]] static GLint uniformLocation(GLuint program, const char* name) { - return glGetUniformLocation(program, name); - } - [[nodiscard]] static GLint uniformLocation(Program& program, const char* name) { - return glGetUniformLocation(program.handle(), name); - } - - enum BlendEquation { - Add = GL_FUNC_ADD, - Sub = GL_FUNC_SUBTRACT, - ReverseSub = GL_FUNC_REVERSE_SUBTRACT, - Min = GL_MIN, - Max = GL_MAX - }; - - static void setBlendColor(float r, float g, float b, float a = 1.0) { glBlendColor(r, g, b, a); } - static void setBlendEquation(BlendEquation eq) { glBlendEquation(eq); } - static void setBlendEquation(BlendEquation eq1, BlendEquation eq2) { glBlendEquationSeparate(eq1, eq2); } - - static void setBlendFactor(GLenum fac1, GLenum fac2) { glBlendFunc(fac1, fac2); } - static void setBlendFactor(GLenum fac1, GLenum fac2, GLenum fac3, GLenum fac4) { - glBlendFuncSeparate(fac1, fac2, fac3, fac4); - } - - // Abstraction for GLSL vectors - template - class Vector { - // A GLSL vector can only have 2, 3 or 4 elements - static_assert(size == 2 || size == 3 || size == 4); - T m_storage[size]; - - public: - T& r() { return m_storage[0]; } - T& g() { return m_storage[1]; } - T& b() { - static_assert(size >= 3, "Out of bounds OpenGL::Vector access"); - return m_storage[2]; - } - T& a() { - static_assert(size >= 4, "Out of bounds OpenGL::Vector access"); - return m_storage[3]; - } - - T& x() { return r(); } - T& y() { return g(); } - T& z() { return b(); } - T& w() { return a(); } - T& operator[](size_t index) { return m_storage[index]; } - const T& operator[](size_t index) const { return m_storage[index]; } - - T& u() { return r(); } - T& v() { return g(); } - - T& s() { return r(); } - T& t() { return g(); } - T& p() { return b(); } - T& q() { return a(); } - - Vector(std::array list) { std::copy(list.begin(), list.end(), &m_storage[0]); } - - Vector() {} - }; - - using vec2 = Vector; - using vec3 = Vector; - using vec4 = Vector; - - using dvec2 = Vector; - using dvec3 = Vector; - using dvec4 = Vector; - - using ivec2 = Vector; - using ivec3 = Vector; - using ivec4 = Vector; - - using uvec2 = Vector; - using uvec3 = Vector; - using uvec4 = Vector; - - // A 2D rectangle, meant to be used for stuff like scissor rects or viewport rects - // We're never supporting 3D rectangles, because rectangles were never meant to be 3D in the first place - // x, y: Coords of the top left vertex - // width, height: Dimensions of the rectangle. Initialized to 0 if not specified. - template - struct Rectangle { - T x, y, width, height; - - std::pair topLeft() const { return std::make_pair(x, y); } - std::pair topRight() const { return std::make_pair(x + width, y); } - std::pair bottomLeft() const { return std::make_pair(x, y + height); } - std::pair bottomRight() const { return std::make_pair(x + width, y + height); } - - Rectangle() : x(0), y(0), width(0), height(0) {} - Rectangle(T x, T y, T width, T height) : x(x), y(y), width(width), height(height) {} - - bool isEmpty() const { return width == 0 && height == 0; } - - void setEmpty() { x = y = width = height = 0; } - }; - - using Rect = Rectangle; - -} // end namespace OpenGL \ No newline at end of file diff --git a/third_party/result/LICENSE b/third_party/result/LICENSE deleted file mode 100644 index 6f4e91e3..00000000 --- a/third_party/result/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {2016} {Mathieu Stefani} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/third_party/result/README.md b/third_party/result/README.md deleted file mode 100644 index 7f588045..00000000 --- a/third_party/result/README.md +++ /dev/null @@ -1,132 +0,0 @@ -# Result -This is an adaption of [https://github.com/oktal/result](https://github.com/oktal/result). Make sure to support the original library! - -## Overview - -`Result` is a template type that can be used to return and propage errors. It can be used to replace -exceptions in context where they are not allowed or too slow to be used. `Result` is an algebraic data -type of `Ok(T)` that represents success and `Err(E)` representing an error. - -Design of this class has been mainly inspired by Rust's [std::result](https://doc.rust-lang.org/std/result/) - -``` - -struct Request { -}; - -struct Error { - - enum class Kind { - Timeout, - Invalid, - TooLong - } - - Error(Kind kind, std::string text); - - Kind kind; - std::string text; -}; - -Result parseRequest(const std::string& payload) { - if (payload.size() > 512) return Err(Error(Kind::TooLong, "Request exceeded maximum allowed size (512 bytes)")); - - Request request; - return Ok(request); -} - -std::string payload = receivePayload(); -auto request = parseRequest(payload).expect("Failed to parse request"); -``` - -To return a successfull `Result`, use the `Ok()` function. To return an error one, use the `Err()` function. - -## Extract and unwrap - -To extract the value from a `Result` type, you can use the `expect()` function that will yield the value -of an `Ok(T)` or terminate the program with an error message passed as a parameter. - -``` -Result r1 = Ok(3u); - -auto val = r1.expect("Failed to retrieve the value"); -assert(val == 3); -``` - -`unwrap()` can also be used to extract the value of a `Result`, yielding the value of an `Ok(T)` value or terminating -the program otherwise: - -``` -Result r1 = Ok(3u); - -auto val = r1.unwrap(); -assert(val == 3); -``` - -Instead a terminating the program, `unwrapOr` can be used to return a default value for an `Err(E)` Result: - -``` -Result r1 = Err(9u); - -auto val = r1.unwrapOr(0); -assert(val == 0); -``` - -## Map and bind - -To transform (or map) a `Result` to a `Result`, `Result` provides a `map` member function. -`map` will apply a function to a contained `Ok(T)` value and will return the result of the transformation, -and will leave an `Err(E)` untouched: - -``` -std::string stringify(int val) { return std::to_string(val); } - -Result r1 = Ok(2u); -auto r2 = r1.map(stringify); // Maps a Result to Result - -assert(r2.unwrap(), "2"); -``` - -Note that `map` should return a simple value and not a `Result`. A function returning nothing (`void`) -applied to a `Result` will yield a `Result`. - -To map a function to a contained `Err(E)` value, use the `mapError` function. - -To *bind* a `Result` to a `Result`, you can use the `andThen` member function: - -``` -Result square(uint32_t val) { return Ok(val * val); } - -Result r1 = Ok(3u); -auto r2 = r1.andThen(square); - -assert(r2.unwrap(), 9); -``` - -Use `orElse` to apply a function to a contained `Err(E)` value: - -``` -Result identity(uint32_t val) { return Ok(val); } - -Result r1 = Err(3u); -assert(r1.andThen(identity).orElse(square).unwrap(), 9); -``` - -## The TRY macro - -Like Rust, a `TRY` macro is also provided that comes in handy when writing code that calls a lot of functions returning a `Result`. - -the `TRY` macro will simply call its argument and short-cirtcuit the function returning an `Err(E)` if the operation returned an error `Result`: - -``` -Result copy(int srcFd, const char* dstFile) { - - auto fd = TRY(open(dstFile)); - auto data = TRY(read(srcFd)); - TRY(write(fd, data)); - - return Ok(); -} -``` - -Note that this macro uses a special extension called *compound statement* only supported by gcc and clang diff --git a/third_party/result/include/result.hpp b/third_party/result/include/result.hpp deleted file mode 100644 index b75dee90..00000000 --- a/third_party/result/include/result.hpp +++ /dev/null @@ -1,910 +0,0 @@ -/* - Mathieu Stefani, 03 mai 2016 - - This header provides a Result type that can be used to replace exceptions in code - that has to handle error. - - Result can be used to return and propagate an error to the caller. Result is an algebraic - data type that can either Ok(T) to represent success or Err(E) to represent an error. -*/ - -#pragma once - -#include -#include -#include - -namespace types { - template - struct Ok { - Ok(const T& val) : val(val) { } - Ok(T&& val) : val(std::move(val)) { } - - T val; - }; - - template<> - struct Ok { }; - - template - struct Err { - Err(const E& val) : val(val) { } - Err(E&& val) : val(std::move(val)) { } - - E val; - }; -} - -template::type> -types::Ok Ok(T&& val) { - return types::Ok(std::forward(val)); -} - -inline types::Ok Ok() { - return types::Ok(); -} - -template::type> -types::Err Err(E&& val) { - return types::Err(std::forward(val)); -} - -namespace Rust { -template struct Result; -} - -namespace details { - -template struct void_t { typedef void type; }; - -namespace impl { - template struct result_of; - - template - struct result_of : public result_of { }; - - template - struct result_of { - typedef Ret type; - }; -} - -template -struct result_of : public impl::result_of { }; - -template -struct result_of { - typedef Ret type; -}; - -template -struct result_of { - typedef Ret type; -}; - -template -struct ResultOkType { typedef typename std::decay::type type; }; - -template -struct ResultOkType> { - typedef T type; -}; - -template -struct ResultErrType { typedef R type; }; - -template -struct ResultErrType> { - typedef typename std::remove_reference::type type; -}; - -template struct IsResult : public std::false_type { }; -template -struct IsResult> : public std::true_type { }; - -namespace ok { - -namespace impl { - -template struct Map; - -template -struct Map : public Map { }; - -template -struct Map : public Map { }; - -// General implementation -template -struct Map { - - static_assert(!IsResult::value, - "Can not map a callback returning a Result, use andThen instead"); - - template - static Rust::Result map(const Rust::Result& result, Func func) { - - static_assert( - std::is_same::value || - std::is_convertible::value, - "Incompatible types detected"); - - if (result.isOk()) { - auto res = func(result.storage().template get()); - return types::Ok(std::move(res)); - } - - return types::Err(result.storage().template get()); - } -}; - -// Specialization for callback returning void -template -struct Map { - - template - static Rust::Result map(const Rust::Result& result, Func func) { - - if (result.isOk()) { - func(result.storage().template get()); - return types::Ok(); - } - - return types::Err(result.storage().template get()); - } -}; - -// Specialization for a void Result -template -struct Map { - - template - static Rust::Result map(const Rust::Result& result, Func func) { - static_assert(std::is_same::value, - "Can not map a void callback on a non-void Result"); - - if (result.isOk()) { - auto ret = func(); - return types::Ok(std::move(ret)); - } - - return types::Err(result.storage().template get()); - } -}; - -// Specialization for callback returning void on a void Result -template<> -struct Map { - - template - static Rust::Result map(const Rust::Result& result, Func func) { - static_assert(std::is_same::value, - "Can not map a void callback on a non-void Result"); - - if (result.isOk()) { - func(); - return types::Ok(); - } - - return types::Err(result.storage().template get()); - } -}; - -// General specialization for a callback returning a Result -template -struct Map (Arg)> { - - template - static Rust::Result map(const Rust::Result& result, Func func) { - static_assert( - std::is_same::value || - std::is_convertible::value, - "Incompatible types detected"); - - if (result.isOk()) { - auto res = func(result.storage().template get()); - return res; - } - - return types::Err(result.storage().template get()); - } -}; - -// Specialization for a void callback returning a Result -template -struct Map (void)> { - - template - static Rust::Result map(const Rust::Result& result, Func func) { - static_assert(std::is_same::value, "Can not call a void-callback on a non-void Result"); - - if (result.isOk()) { - auto res = func(); - return res; - } - - return types::Err(result.storage().template get()); - } - -}; - -} // namespace impl - -template struct Map : public impl::Map { }; - -template -struct Map : public impl::Map { }; - -template -struct Map : public impl::Map { }; - -template -struct Map : public impl::Map { }; - -template -struct Map> : public impl::Map { }; - -} // namespace ok - - -namespace err { - -namespace impl { - -template struct Map; - -template -struct Map { - - static_assert(!IsResult::value, - "Can not map a callback returning a Result, use orElse instead"); - - template - static Rust::Result map(const Rust::Result& result, Func func) { - if (result.isErr()) { - auto res = func(result.storage().template get()); - return types::Err(res); - } - - return types::Ok(result.storage().template get()); - } - - template - static Rust::Result map(const Rust::Result& result, Func func) { - if (result.isErr()) { - auto res = func(result.storage().template get()); - return types::Err(res); - } - - return types::Ok(); - } - - -}; - -} // namespace impl - -template struct Map : public impl::Map { }; - -} // namespace err; - -namespace And { - -namespace impl { - - template struct Then; - - template - struct Then : public Then { }; - - template - struct Then : public Then { }; - - template - struct Then : public Then { }; - - template - struct Then { - static_assert(std::is_same::value, - "then() should not return anything, use map() instead"); - - template - static Rust::Result then(const Rust::Result& result, Func func) { - if (result.isOk()) { - func(result.storage().template get()); - } - return result; - } - }; - - template - struct Then { - static_assert(std::is_same::value, - "then() should not return anything, use map() instead"); - - template - static Rust::Result then(const Rust::Result& result, Func func) { - static_assert(std::is_same::value, "Can not call a void-callback on a non-void Result"); - - if (result.isOk()) { - func(); - } - - return result; - } - }; - - -} // namespace impl - -template -struct Then : public impl::Then { }; - -template -struct Then : public impl::Then { }; - -template -struct Then : public impl::Then { }; - -template -struct Then : public impl::Then { }; - -} // namespace And - -namespace Or { - -namespace impl { - - template struct Else; - - template - struct Else : public Else { }; - - template - struct Else : public Else { }; - - template - struct Else : public Else { }; - - template - struct Else (Arg)> { - - template - static Rust::Result orElse(const Rust::Result& result, Func func) { - static_assert( - std::is_same::value || - std::is_convertible::value, - "Incompatible types detected"); - - if (result.isErr()) { - auto res = func(result.storage().template get()); - return res; - } - - return types::Ok(result.storage().template get()); - } - - template - static Rust::Result orElse(const Rust::Result& result, Func func) { - if (result.isErr()) { - auto res = func(result.storage().template get()); - return res; - } - - return types::Ok(); - } - - }; - - template - struct Else (void)> { - - template - static Rust::Result orElse(const Rust::Result& result, Func func) { - static_assert(std::is_same::value, - "Can not call a void-callback on a non-void Result"); - - if (result.isErr()) { - auto res = func(); - return res; - } - - return types::Ok(result.storage().template get()); - } - - template - static Rust::Result orElse(const Rust::Result& result, Func func) { - if (result.isErr()) { - auto res = func(); - return res; - } - - return types::Ok(); - } - - }; - -} // namespace impl - -template -struct Else : public impl::Else { }; - -template -struct Else : public impl::Else { }; - -template -struct Else : public impl::Else { }; - -template -struct Else : public impl::Else { }; - -} // namespace Or - -namespace Other { - -namespace impl { - - template struct Wise; - - template - struct Wise : public Wise { }; - - template - struct Wise : public Wise { }; - - template - struct Wise : public Wise { }; - - template - struct Wise { - - template - static Rust::Result otherwise(const Rust::Result& result, Func func) { - static_assert( - std::is_same::value || - std::is_convertible::value, - "Incompatible types detected"); - - static_assert(std::is_same::value, - "callback should not return anything, use mapError() for that"); - - if (result.isErr()) { - func(result.storage().template get()); - } - return result; - } - - }; - -} // namespace impl - -template -struct Wise : public impl::Wise { }; - -template -struct Wise : public impl::Wise { }; - -template -struct Wise : public impl::Wise { }; - -template -struct Wise : public impl::Wise { }; - -} // namespace Other - -template::type - >::type, - E> - > -Ret map(const Rust::Result& result, Func func) { - return ok::Map::map(result, func); -} - -template::type - >::type - > - > -Ret mapError(const Rust::Result& result, Func func) { - return err::Map::map(result, func); -} - -template -Rust::Result then(const Rust::Result& result, Func func) { - return And::Then::then(result, func); -} - -template -Rust::Result otherwise(const Rust::Result& result, Func func) { - return Other::Wise::otherwise(result, func); -} - -template::type - >::type - > -> -Ret orElse(const Rust::Result& result, Func func) { - return Or::Else::orElse(result, func); -} - -struct ok_tag { }; -struct err_tag { }; - -template -struct Storage { - static constexpr size_t Size = sizeof(T) > sizeof(E) ? sizeof(T) : sizeof(E); - static constexpr size_t Align = sizeof(T) > sizeof(E) ? alignof(T) : alignof(E); - - typedef typename std::aligned_storage::type type; - - Storage() - : initialized_(false) - { } - - void construct(types::Ok ok) - { - new (&storage_) T(ok.val); - initialized_ = true; - } - void construct(types::Err err) - { - new (&storage_) E(err.val); - initialized_ = true; - } - - template - void rawConstruct(U&& val) { - typedef typename std::decay::type CleanU; - - new (&storage_) CleanU(std::forward(val)); - initialized_ = true; - } - - template - const U& get() const { - return *reinterpret_cast(&storage_); - } - - template - U& get() { - return *reinterpret_cast(&storage_); - } - - void destroy(ok_tag) { - if (initialized_) { - get().~T(); - initialized_ = false; - } - } - - void destroy(err_tag) { - if (initialized_) { - get().~E(); - initialized_ = false; - } - } - - type storage_; - bool initialized_; -}; - -template -struct Storage { - typedef typename std::aligned_storage::type type; - - void construct(types::Ok) - { - initialized_ = true; - } - - void construct(types::Err err) - { - new (&storage_) E(err.val); - initialized_ = true; - } - - template - void rawConstruct(U&& val) { - typedef typename std::decay::type CleanU; - - new (&storage_) CleanU(std::forward(val)); - initialized_ = true; - } - - void destroy(ok_tag) { initialized_ = false; } - void destroy(err_tag) { - if (initialized_) { - get().~E(); initialized_ = false; - } - } - - template - const U& get() const { - return *reinterpret_cast(&storage_); - } - - template - U& get() { - return *reinterpret_cast(&storage_); - } - - type storage_; - bool initialized_; -}; - -template -struct Constructor { - - static void move(Storage&& src, Storage& dst, ok_tag) { - dst.rawConstruct(std::move(src.template get())); - src.destroy(ok_tag()); - } - - static void copy(const Storage& src, Storage& dst, ok_tag) { - dst.rawConstruct(src.template get()); - } - - static void move(Storage&& src, Storage& dst, err_tag) { - dst.rawConstruct(std::move(src.template get())); - src.destroy(err_tag()); - } - - static void copy(const Storage& src, Storage& dst, err_tag) { - dst.rawConstruct(src.template get()); - } -}; - -template -struct Constructor { - static void move(Storage&& src, Storage& dst, ok_tag) { - } - - static void copy(const Storage& src, Storage& dst, ok_tag) { - } - - static void move(Storage&& src, Storage& dst, err_tag) { - dst.rawConstruct(std::move(src.template get())); - src.destroy(err_tag()); - } - - static void copy(const Storage& src, Storage& dst, err_tag) { - dst.rawConstruct(src.template get()); - } -}; - -} // namespace details - -namespace rpog { - -template struct EqualityComparable : std::false_type { }; - -template -struct EqualityComparable() == std::declval())>::type - >::type -> : std::true_type -{ -}; - - -} // namespace rpog - -namespace Rust { -template -struct Result { - - static_assert(!std::is_same::value, "void error type is not allowed"); - - typedef details::Storage storage_type; - - Result(types::Ok ok) - : ok_(true) - { - storage_.construct(std::move(ok)); - } - - Result(types::Err err) - : ok_(false) - { - storage_.construct(std::move(err)); - } - - Result(Result&& other) { - if (other.isOk()) { - details::Constructor::move(std::move(other.storage_), storage_, details::ok_tag()); - ok_ = true; - } else { - details::Constructor::move(std::move(other.storage_), storage_, details::err_tag()); - ok_ = false; - } - } - - Result(const Result& other) { - if (other.isOk()) { - details::Constructor::copy(other.storage_, storage_, details::ok_tag()); - ok_ = true; - } else { - details::Constructor::copy(other.storage_, storage_, details::err_tag()); - ok_ = false; - } - } - - ~Result() { - if (ok_) - storage_.destroy(details::ok_tag()); - else - storage_.destroy(details::err_tag()); - } - - bool isOk() const { - return ok_; - } - - bool isErr() const { - return !ok_; - } - - T expect(const char* str) const { - if (!isOk()) { - std::fprintf(stderr, "%s\n", str); - std::terminate(); - } - return expect_impl(std::is_same()); - } - - template::type - >::type, - E> - > - Ret map(Func func) const { - return details::map(*this, func); - } - - template::type - >::type - > - > - Ret mapError(Func func) const { - return details::mapError(*this, func); - } - - template - Result then(Func func) const { - return details::then(*this, func); - } - - template - Result otherwise(Func func) const { - return details::otherwise(*this, func); - } - - template::type - >::type - > - > - Ret orElse(Func func) const { - return details::orElse(*this, func); - } - - storage_type& storage() { - return storage_; - } - - const storage_type& storage() const { - return storage_; - } - - template - typename std::enable_if< - !std::is_same::value, - U - >::type - unwrapOr(const U& defaultValue) const { - if (isOk()) { - return storage().template get(); - } - return defaultValue; - } - - template - typename std::enable_if< - !std::is_same::value, - U - >::type - unwrap() const { - if (isOk()) { - return storage().template get(); - } - - std::fprintf(stderr, "Attempting to unwrap an error Result\n"); - std::terminate(); - } - - E unwrapErr() const { - if (isErr()) { - return storage().template get(); - } - - std::fprintf(stderr, "Attempting to unwrapErr an ok Result\n"); - std::terminate(); - } - -private: - T expect_impl(std::true_type) const { } - T expect_impl(std::false_type) const { return storage_.template get(); } - - bool ok_; - storage_type storage_; -}; - -template -bool operator==(const Rust::Result& lhs, const Rust::Result& rhs) { - static_assert(rpog::EqualityComparable::value, "T must be EqualityComparable for Result to be comparable"); - static_assert(rpog::EqualityComparable::value, "E must be EqualityComparable for Result to be comparable"); - - if (lhs.isOk() && rhs.isOk()) { - return lhs.storage().template get() == rhs.storage().template get(); - } - if (lhs.isErr() && rhs.isErr()) { - return lhs.storage().template get() == rhs.storage().template get(); - } -} - -template -bool operator==(const Rust::Result& lhs, types::Ok ok) { - static_assert(rpog::EqualityComparable::value, "T must be EqualityComparable for Result to be comparable"); - - if (!lhs.isOk()) return false; - - return lhs.storage().template get() == ok.val; -} - -template -bool operator==(const Rust::Result& lhs, types::Ok) { - return lhs.isOk(); -} - -template -bool operator==(const Rust::Result& lhs, types::Err err) { - static_assert(rpog::EqualityComparable::value, "E must be EqualityComparable for Result to be comparable"); - if (!lhs.isErr()) return false; - - return lhs.storage().template get() == err.val; -} -} // end namespace Rust - -#define TRY(...) \ - ({ \ - auto res = __VA_ARGS__; \ - if (!res.isOk()) { \ - typedef details::ResultErrType::type E; \ - return types::Err(res.storage().get()); \ - } \ - typedef details::ResultOkType::type T; \ - res.storage().get(); \ - }) diff --git a/third_party/stb b/third_party/stb deleted file mode 160000 index 5736b15f..00000000 --- a/third_party/stb +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5736b15f7ea0ffb08dd38af21067c314d6a3aae9 diff --git a/third_party/teakra b/third_party/teakra deleted file mode 160000 index 01db7cdd..00000000 --- a/third_party/teakra +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 01db7cdd00aabcce559a8dddce8798dabb71949b diff --git a/third_party/toml11 b/third_party/toml11 deleted file mode 160000 index 13406924..00000000 --- a/third_party/toml11 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1340692442b530ada93a63f4b76a1421b3c139fe diff --git a/third_party/xbyak b/third_party/xbyak deleted file mode 160000 index ad5276fa..00000000 --- a/third_party/xbyak +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ad5276fa4d86d9579ff626719cea43c809a6cab8 diff --git a/third_party/xxhash/.gitattributes b/third_party/xxhash/.gitattributes deleted file mode 100644 index fbcf75b5..00000000 --- a/third_party/xxhash/.gitattributes +++ /dev/null @@ -1,10 +0,0 @@ -# Set the default behavior -* text eol=lf - -# Explicitly declare source files -*.c text eol=lf -*.h text eol=lf - -# Denote files that should not be modified. -*.odt binary - diff --git a/third_party/xxhash/.github/dependabot.yml b/third_party/xxhash/.github/dependabot.yml deleted file mode 100644 index 7bb4cf76..00000000 --- a/third_party/xxhash/.github/dependabot.yml +++ /dev/null @@ -1,7 +0,0 @@ -# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" diff --git a/third_party/xxhash/.github/workflows/ci.yml b/third_party/xxhash/.github/workflows/ci.yml deleted file mode 100644 index 9a21b5a6..00000000 --- a/third_party/xxhash/.github/workflows/ci.yml +++ /dev/null @@ -1,589 +0,0 @@ -# Known critical issues: -# - AVX512 related tests are incomplete. Because default environment of -# GitHub Actions doesn't guarantee to support AVX512. -# As of May 2021, they're using Xeon E5-2673 (which doesn't support -# AVX512) and Xeon Platinum 8171M (which supports AVX512). -# See also https://github.com/actions/runner/issues/1069 -# -# In this CI script, it always run `make default` which compiles xxHash -# with AVX512 intrinsics. But if test runner doesn't support AVX512, -# it doesn't run `make check` which tests runtime error/consistency. -# It means that this test stochastically detects a failure in AVX512 -# code path. -# -# Known issues: -# - This test script ignores exit code of cppcheck which can see under -# Job:Linux x64 misc tests > cppcheck in the GitHub Actions report. -# Because xxHash project doesn't 100% follow their recommendation. -# Also sometimes it reports false positives. -# -# - GitHub Actions doesn't support Visual Studio 2015 and 2013. -# https://github.com/actions/virtual-environments/issues/387 -# -# - Setup procedure for msys2 environment is painfully slow. It takes -# 3..5 minutes. -# -# Notes: -# - You can investigate various information at the right pane of GitHub -# Actions report page. -# -# | Item | Section in the right pane | -# | ------------------------- | ------------------------------------- | -# | OS, VM | Set up job | -# | git repo, commit hash | Run actions/checkout@v3 | -# | gcc, tools | Environment info | -# -# - To fail earlier, order of tests in the same job are roughly sorted by -# elapsed time. -# -# Todos: -# - [ ] Linux: Add native ARM runner. -# - [ ] Linux: Add native ARM64 runner. -# - [ ] Linux: Add native PPC64LE runner. -# - [ ] Linux: Add native S390X runner. -# - [ ] Windows: Add VS2013. -# - [ ] Windows: Add VS2015. -# - [ ] Windows: Add clang for msys2. -# - [ ] Windows: Add native or emulated ARM runner. -# - [ ] Windows: Add native or emulated ARM64 runner. - - -# Name of the workflow is also displayed as a SVG badge -name: xxHash CI tests - -on: [push, pull_request] - -concurrency: - group: fast-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: read - -jobs: - xxhash-c-compilers: - name: CC=${{ matrix.cc }}, ${{ matrix.os }} - strategy: - fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix entry fails. - matrix: - include: [ - # You can access the following values via ${{ matrix.??? }} - # - # pkgs : apt-get package names. It can include multiple package names which are delimited by space. - # cc : C compiler executable. - # cxx : C++ compiler executable for `make ctocpptest`. - # avx512 : Set 'true' if compiler supports avx512. Otherwise, set 'false'. - # os : GitHub Actions YAML workflow label. See https://github.com/actions/virtual-environments#available-environments - - # cc - { pkgs: '', cc: cc, cxx: c++, avx512: 'true', os: ubuntu-latest, }, - - # gcc - { pkgs: '', cc: gcc, cxx: g++, avx512: 'true', os: ubuntu-latest, }, - { pkgs: 'gcc-12 g++-12 lib32gcc-12-dev', cc: gcc-12, cxx: g++-12, avx512: 'true', os: ubuntu-22.04, }, - { pkgs: 'gcc-11 g++-11 lib32gcc-11-dev', cc: gcc-11, cxx: g++-11, avx512: 'true', os: ubuntu-22.04, }, - { pkgs: 'gcc-10 g++-10 lib32gcc-10-dev', cc: gcc-10, cxx: g++-10, avx512: 'true', os: ubuntu-22.04, }, - { pkgs: 'gcc-9 g++-9 lib32gcc-9-dev', cc: gcc-9, cxx: g++-9, avx512: 'true', os: ubuntu-22.04, }, - { pkgs: 'gcc-8 g++-8 lib32gcc-8-dev', cc: gcc-8, cxx: g++-8, avx512: 'true', os: ubuntu-20.04, }, - { pkgs: 'gcc-7 g++-7 lib32gcc-7-dev', cc: gcc-7, cxx: g++-7, avx512: 'true', os: ubuntu-20.04, }, - - # clang - { pkgs: '', cc: clang, cxx: clang++, avx512: 'true', os: ubuntu-latest, }, - { pkgs: 'clang-12', cc: clang-12, cxx: clang++-12, avx512: 'true', os: ubuntu-22.04, }, - { pkgs: 'clang-11', cc: clang-11, cxx: clang++-11, avx512: 'true', os: ubuntu-22.04, }, - { pkgs: 'clang-10', cc: clang-10, cxx: clang++-10, avx512: 'true', os: ubuntu-20.04, }, - { pkgs: 'clang-9', cc: clang-9, cxx: clang++-9, avx512: 'true', os: ubuntu-20.04, }, - { pkgs: 'clang-8', cc: clang-8, cxx: clang++-8, avx512: 'true', os: ubuntu-20.04, }, - { pkgs: 'clang-7', cc: clang-7, cxx: clang++-7, avx512: 'true', os: ubuntu-20.04, }, - { pkgs: 'clang-6.0', cc: clang-6.0, cxx: clang++-6.0, avx512: 'true', os: ubuntu-20.04, }, - ] - - runs-on: ${{ matrix.os }} - env: # Set environment variables - # We globally set CC and CXX to improve compatibility with .travis.yml - CC: ${{ matrix.cc }} - CXX: ${{ matrix.cxx }} - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - - name: apt-get install - run: | - sudo apt-get update - sudo apt-get install gcc-multilib - sudo apt-get install ${{ matrix.pkgs }} - - - name: Environment info - run: | - echo && type $CC && which $CC && $CC --version - echo && type $CXX && which $CXX && $CXX --version - echo && type make && make -v - echo && cat /proc/cpuinfo || echo /proc/cpuinfo is not present - - - name: C90 + no-long-long compliance - if: always() - run: | - CFLAGS="-std=c90 -pedantic -Wno-long-long -Werror" make clean xxhsum - - - name: C90 + XXH_NO_LONG_LONG - if: always() - run: | - # strict c90, with no long long support; resulting in no XXH64_* symbol - make clean c90test - - - name: dispatch - if: always() - run: | - # removing sign conversion warnings due to a bug in gcc-5's definition of some AVX512 intrinsics - CFLAGS="-Werror" MOREFLAGS="-Wno-sign-conversion" make clean dispatch - - - name: DISPATCH=1 - if: always() - run: | - CFLAGS="-Wall -Wextra -Werror" make DISPATCH=1 clean default - - - name: XXH_SIZE_OPT == 2 - if: always() - run: | - CFLAGS="-Os -DXXH_SIZE_OPT=2 -Wall -Wextra -Werror" make clean xxhsum - - - name: noxxh3test - if: always() - run: | - # check library can be compiled with XXH_NO_XXH3, resulting in no XXH3_* symbol - make clean noxxh3test - - - name: nostreamtest - if: always() - run: | - # check library can be compiled with XXH_NO_STREAM, resulting in no streaming symbols - make clean noxxh3test - - - name: make avx512f - if: ${{ matrix.avx512 == 'true' }} - run: | - CFLAGS="-O1 -mavx512f -Werror" make clean default - - - name: test-all - if: always() - run: | - make clean test-all - - - ubuntu-consistency: - name: Linux x64 check results consistency - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - - name: Environment info - run: | - echo && gcc --version - echo && make -v - echo && cat /proc/cpuinfo || echo /proc/cpuinfo is not present - - - name: Scalar code path - run: | - CPPFLAGS=-DXXH_VECTOR=XXH_SCALAR make clean check - - - name: SSE2 code path - run: | - CPPFLAGS=-DXXH_VECTOR=XXH_SSE2 make clean check - - - name: AVX2 code path - run: | - CPPFLAGS="-mavx2 -DXXH_VECTOR=XXH_AVX2" make clean check - - # As for AVX512, see "Known critical issues" at the top of this file - - name: AVX512 code path - run: | - # Run "make check" if /proc/cpuinfo has flags for avx512. - grep -q "^flags.*\bavx512\b" /proc/cpuinfo && CPPFLAGS="-mavx512f -DXXH_VECTOR=XXH_AVX512" make clean check || (echo This test runner does not support AVX512. && $(exit 0)) - - - name: reroll code path (#240) - run: | - CPPFLAGS=-DXXH_REROLL=1 make clean check - - - name: tests/bench - run: | - make -C tests/bench - - - ubuntu-misc: - name: Linux x64 misc tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - - name: apt-get install - run: | - sudo apt-get update - sudo apt-get install valgrind cppcheck - - - name: Environment info - run: | - echo && gcc --version - echo && clang --version - echo && valgrind --version - echo && cppcheck --version - echo && make -v - echo && cat /proc/cpuinfo || echo /proc/cpuinfo is not present - - - name: cppcheck - run: | - # This test script ignores exit code of cppcheck. See knowin issues - # at the top of this file. - make clean cppcheck || echo There are some cppcheck reports - - - name: test-mem (valgrind) - run: | - make clean test-mem - - - name: usan - run: | - make clean usan - - - name: Lint Unicode in root-dir, cli/, tests/, tests/bench/, tests/collisions/. - run: | - make lint-unicode - - - name: test-filename-escape - # See also issue #695 - https://github.com/Cyan4973/xxHash/issues/695 - run: | - make clean test-filename-escape - - ubuntu-cmake-unofficial: - name: Linux x64 cmake unofficial build test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - - name: Environment info - run: | - echo && gcc --version - echo && cmake --version - echo && make -v - echo && cat /proc/cpuinfo || echo /proc/cpuinfo is not present - - - name: cmake - run: | - cd cmake_unofficial - mkdir build - cd build - cmake .. - CFLAGS=-Werror make - mkdir test_install_dir - DESTDIR=test_install_dir cmake --install . - - - name: cmake minimum version v2.8.12 test - run: | - mkdir -p cmake_bins - cd cmake_bins - wget https://cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.tar.gz - tar xzf cmake-2.8.12.2-Linux-i386.tar.gz - cd ../cmake_unofficial - mkdir -p build - cd build - ../../cmake_bins/cmake-2.8.12.2-Linux-i386/bin/cmake --version - ../../cmake_bins/cmake-2.8.12.2-Linux-i386/bin/cmake .. - ../../cmake_bins/cmake-2.8.12.2-Linux-i386/bin/cmake --build . - mkdir -p test_install_dir - DESTDIR=test_install_dir ../../cmake_bins/cmake-2.8.12.2-Linux-i386/bin/cmake --install . - rm -rf * - ../../cmake_bins/cmake-2.8.12.2-Linux-i386/bin/cmake -DCMAKE_BUILD_TYPE=Debug .. - ../../cmake_bins/cmake-2.8.12.2-Linux-i386/bin/cmake --build . - - - - # Linux, { ARM, ARM64, PPC64LE, PPC64, S390X } - # All tests are using QEMU and gcc cross compiler. - - qemu-consistency: - name: QEMU ${{ matrix.name }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix failed. - matrix: - include: [ - { name: 'ARM', xcc_pkg: gcc-arm-linux-gnueabi, xcc: arm-linux-gnueabi-gcc, xemu_pkg: qemu-system-arm, xemu: qemu-arm-static, os: ubuntu-latest, }, - { name: 'AARCH64', xcc_pkg: gcc-aarch64-linux-gnu, xcc: aarch64-linux-gnu-gcc, xemu_pkg: qemu-system-arm, xemu: qemu-aarch64-static, os: ubuntu-latest, }, - { name: 'PPC64LE', xcc_pkg: gcc-powerpc64le-linux-gnu, xcc: powerpc64le-linux-gnu-gcc, xemu_pkg: qemu-system-ppc, xemu: qemu-ppc64le-static, os: ubuntu-latest, }, - { name: 'PPC64', xcc_pkg: gcc-powerpc64-linux-gnu, xcc: powerpc64-linux-gnu-gcc, xemu_pkg: qemu-system-ppc, xemu: qemu-ppc64-static, os: ubuntu-latest, }, - { name: 'S390X', xcc_pkg: gcc-s390x-linux-gnu, xcc: s390x-linux-gnu-gcc, xemu_pkg: qemu-system-s390x, xemu: qemu-s390x-static, os: ubuntu-latest, }, - { name: 'MIPS', xcc_pkg: gcc-mips-linux-gnu, xcc: mips-linux-gnu-gcc, xemu_pkg: qemu-system-mips, xemu: qemu-mips-static, os: ubuntu-latest, }, - { name: 'M68K', xcc_pkg: gcc-m68k-linux-gnu, xcc: m68k-linux-gnu-gcc, xemu_pkg: qemu-system-m68k, xemu: qemu-m68k-static, os: ubuntu-latest, }, - - { name: 'ARM, gcc-10', xcc_pkg: gcc-10-arm-linux-gnueabi, xcc: arm-linux-gnueabi-gcc-10, xemu_pkg: qemu-system-arm, xemu: qemu-arm-static, os: ubuntu-20.04, }, - { name: 'AARCH64, gcc-10', xcc_pkg: gcc-10-aarch64-linux-gnu, xcc: aarch64-linux-gnu-gcc-10, xemu_pkg: qemu-system-arm, xemu: qemu-aarch64-static, os: ubuntu-20.04, }, - { name: 'PPC64LE, gcc-10', xcc_pkg: gcc-10-powerpc64le-linux-gnu, xcc: powerpc64le-linux-gnu-gcc-10, xemu_pkg: qemu-system-ppc, xemu: qemu-ppc64le-static, os: ubuntu-20.04, }, - { name: 'PPC64, gcc-10', xcc_pkg: gcc-10-powerpc64-linux-gnu, xcc: powerpc64-linux-gnu-gcc-10, xemu_pkg: qemu-system-ppc, xemu: qemu-ppc64-static, os: ubuntu-20.04, }, - { name: 'S390X, gcc-10', xcc_pkg: gcc-10-s390x-linux-gnu, xcc: s390x-linux-gnu-gcc-10, xemu_pkg: qemu-system-s390x, xemu: qemu-s390x-static, os: ubuntu-20.04, }, - { name: 'MIPS, gcc-10', xcc_pkg: gcc-10-mips-linux-gnu, xcc: mips-linux-gnu-gcc-10, xemu_pkg: qemu-system-mips, xemu: qemu-mips-static, os: ubuntu-20.04, }, - - { name: 'ARM, gcc-9', xcc_pkg: gcc-9-arm-linux-gnueabi, xcc: arm-linux-gnueabi-gcc-9, xemu_pkg: qemu-system-arm, xemu: qemu-arm-static, os: ubuntu-20.04, }, - { name: 'AARCH64, gcc-9', xcc_pkg: gcc-9-aarch64-linux-gnu, xcc: aarch64-linux-gnu-gcc-9, xemu_pkg: qemu-system-arm, xemu: qemu-aarch64-static, os: ubuntu-20.04, }, - { name: 'PPC64LE, gcc-9', xcc_pkg: gcc-9-powerpc64le-linux-gnu, xcc: powerpc64le-linux-gnu-gcc-9, xemu_pkg: qemu-system-ppc, xemu: qemu-ppc64le-static, os: ubuntu-20.04, }, - { name: 'PPC64, gcc-9', xcc_pkg: gcc-9-powerpc64-linux-gnu, xcc: powerpc64-linux-gnu-gcc-9, xemu_pkg: qemu-system-ppc, xemu: qemu-ppc64-static, os: ubuntu-20.04, }, - { name: 'S390X, gcc-9', xcc_pkg: gcc-9-s390x-linux-gnu, xcc: s390x-linux-gnu-gcc-9, xemu_pkg: qemu-system-s390x, xemu: qemu-s390x-static, os: ubuntu-20.04, }, - { name: 'MIPS, gcc-9', xcc_pkg: gcc-9-mips-linux-gnu, xcc: mips-linux-gnu-gcc-9, xemu_pkg: qemu-system-mips, xemu: qemu-mips-static, os: ubuntu-20.04, }, - - { name: 'ARM, gcc-8', xcc_pkg: gcc-8-arm-linux-gnueabi, xcc: arm-linux-gnueabi-gcc-8, xemu_pkg: qemu-system-arm, xemu: qemu-arm-static, os: ubuntu-20.04, }, - # aarch64-linux-gnu-gcc-8 linker has an issue for LDFLAGS="-static" - # { name: 'AARCH64, gcc-8', xcc_pkg: gcc-8-aarch64-linux-gnu, xcc: aarch64-linux-gnu-gcc-8, xemu_pkg: qemu-system-arm, xemu: qemu-aarch64-static, os: ubuntu-20.04, }, - { name: 'PPC64LE, gcc-8', xcc_pkg: gcc-8-powerpc64le-linux-gnu, xcc: powerpc64le-linux-gnu-gcc-8, xemu_pkg: qemu-system-ppc, xemu: qemu-ppc64le-static, os: ubuntu-20.04, }, - { name: 'PPC64, gcc-8', xcc_pkg: gcc-8-powerpc64-linux-gnu, xcc: powerpc64-linux-gnu-gcc-8, xemu_pkg: qemu-system-ppc, xemu: qemu-ppc64-static, os: ubuntu-20.04, }, - { name: 'S390X, gcc-8', xcc_pkg: gcc-8-s390x-linux-gnu, xcc: s390x-linux-gnu-gcc-8, xemu_pkg: qemu-system-s390x, xemu: qemu-s390x-static, os: ubuntu-20.04, }, - # ubuntu-20.04 fails to retrieve gcc-8-mips-linux-gnu for some reason. - # { name: 'MIPS, gcc-8', xcc_pkg: gcc-8-mips-linux-gnu, xcc: mips-linux-gnu-gcc-8, xemu_pkg: qemu-system-mips, xemu: qemu-mips-static, os: ubuntu-20.04, }, - ] - env: # Set environment variables - XCC: ${{ matrix.xcc }} - XEMU: ${{ matrix.xemu }} - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - name: apt update & install (1) - run: | - sudo apt-get update - sudo apt-get install gcc-multilib g++-multilib qemu-utils qemu-user-static - - - name: Environment info (1) - run: | - echo && apt-cache search "^gcc-" | grep "linux" | sort - - - name: apt update & install (2) - run: | - sudo apt-get install ${{ matrix.xcc_pkg }} ${{ matrix.xemu_pkg }} - - - name: Environment info (2) - run: | - echo && which $XCC - echo && $XCC --version - echo && $XCC -v # Show built-in specs - echo && which $XEMU - echo && $XEMU --version - - - name: ARM (XXH_VECTOR=[ scalar, NEON ]) - if: ${{ startsWith(matrix.name, 'ARM') }} - run: | - CPPFLAGS="-DXXH_VECTOR=XXH_SCALAR" LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - CPPFLAGS="-DXXH_VECTOR=XXH_NEON" CFLAGS="-O3 -march=armv7-a -fPIC -mfloat-abi=softfp -mfpu=neon-vfpv4" LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - - - name: AARCH64 (XXH_VECTOR=[ scalar, NEON, SVE ]) - if: ${{ startsWith(matrix.name, 'AARCH64') }} - run: | - CPPFLAGS="-DXXH_VECTOR=XXH_SCALAR" LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - CPPFLAGS="-DXXH_VECTOR=XXH_NEON" LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - CPPFLAGS="-DXXH_VECTOR=XXH_SVE" LDFLAGS="-static" CC=$XCC RUN_ENV="$XEMU -cpu max,sve128=on,sve256=off,sve512=off,sve1024=off,sve2048=off" make clean check - CPPFLAGS="-DXXH_VECTOR=XXH_SVE" LDFLAGS="-static" CC=$XCC RUN_ENV="$XEMU -cpu max,sve128=on,sve256=on,sve512=off,sve1024=off,sve2048=off" make clean check - CPPFLAGS="-DXXH_VECTOR=XXH_SVE" LDFLAGS="-static" CC=$XCC RUN_ENV="$XEMU -cpu max,sve128=on,sve256=on,sve512=on,sve1024=off,sve2048=off" make clean check - CPPFLAGS="-DXXH_VECTOR=XXH_SVE" LDFLAGS="-static" CC=$XCC RUN_ENV="$XEMU -cpu max,sve128=on,sve256=on,sve512=on,sve1024=on,sve2048=off" make clean check - CPPFLAGS="-DXXH_VECTOR=XXH_SVE" LDFLAGS="-static" CC=$XCC RUN_ENV="$XEMU -cpu max,sve128=on,sve256=on,sve512=on,sve1024=on,sve2048=on" make clean check - - - name: PPC64(LE) (XXH_VECTOR=[ scalar, VSX ]) - if: ${{ startsWith(matrix.name, 'PPC64') }} - run: | - CPPFLAGS="-DXXH_VECTOR=XXH_SCALAR" LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - CPPFLAGS="-DXXH_VECTOR=XXH_VSX" CFLAGS="-O3 -maltivec -mvsx -mpower8-vector -mcpu=power8" LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - - - name: S390X (XXH_VECTOR=[ scalar, VSX ]) - if: ${{ startsWith(matrix.name, 'S390X') }} - run: | - CPPFLAGS="-DXXH_VECTOR=XXH_SCALAR" LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - CPPFLAGS=-DXXH_VECTOR=XXH_VSX CFLAGS="-O3 -march=arch11 -mzvector" LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - - - name: MIPS (XXH_VECTOR=[ scalar ]) - if: ${{ startsWith(matrix.name, 'MIPS') }} - run: | - LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - - - name: M68K (XXH_VECTOR=[ scalar ]) - if: ${{ startsWith(matrix.name, 'M68K') }} - run: | - LDFLAGS="-static" CC=$XCC RUN_ENV=$XEMU make clean check - - - # macOS, { 11 } - - macos-general: - name: ${{ matrix.system.os }} - runs-on: ${{ matrix.system.os }} - strategy: - fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix failed. - matrix: - system: [ - { os: macos-11 }, - { os: macos-12 }, - ] - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - - name: Environment info - run: | - echo && clang --version - echo && sysctl -a | grep machdep.cpu # cpuinfo - - - name: make - run: | - CFLAGS="-Werror" make clean default - - - name: make test - run: | - # test scenario where "stdout" is not the console - make clean test MOREFLAGS='-Werror' | tee - - - # Windows, { VC++2022, VC++2019, VC++2017 } x { x64, Win32, ARM, ARM64 } - # - # - Default shell for Windows environment is PowerShell Core. - # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell - # - # - "windows-2022" uses Visual Studio 2022. - # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md#visual-studio-enterprise-2022 - # - # - "windows-2019" uses Visual Studio 2019. - # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#visual-studio-enterprise-2019 - - windows-visualc-general: - name: ${{ matrix.system.vc }}, ${{ matrix.arch }} - runs-on: ${{ matrix.system.os }} # Runs-on foreach value of strategy.matrix.system.os - strategy: - fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix failed. - matrix: - system: [ - { os: windows-2022, vc: "VC++ 2022", clangcl: 'false', }, # CMake failed to configure clang-cl with VC++2022. - { os: windows-2019, vc: "VC++ 2019", clangcl: 'true', }, - ] - arch: [ x64, Win32, ARM, ARM64 ] - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - - name: Build ${{ matrix.system.os }}, ${{ matrix.arch }} - run: | - cd cmake_unofficial - mkdir build - cd build - cmake .. -DCMAKE_BUILD_TYPE=Release -A ${{ matrix.arch }} -DXXHASH_C_FLAGS="/WX" - cmake --build . --config Release - - - name: Test - # Run benchmark for testing only if target arch is x64 or Win32. - if: ${{ matrix.arch == 'x64' || matrix.arch == 'Win32' }} - run: | - .\cmake_unofficial\build\Release\xxhsum.exe -bi1 - - - name: Build ${{ matrix.system.os }}, clang-cl, ${{ matrix.arch }} - if: ${{ matrix.system.clangcl == 'true' }} - run: | - cd cmake_unofficial - mkdir build-clang-cl - cd build-clang-cl - cmake .. -DCMAKE_BUILD_TYPE=Release -A x64 -DCMAKE_GENERATOR_TOOLSET=ClangCL - cmake --build . --config Release - - - name: Test (clang-cl) - # Run benchmark for testing only if target arch is x64 or Win32. - if: ${{ matrix.system.clangcl == 'true' && ( matrix.arch == 'x64' || matrix.arch == 'Win32' ) }} - run: | - .\cmake_unofficial\build-clang-cl\Release\xxhsum.exe -bi1 - - - # Windows, { mingw64, mingw32 } - # - # - Shell for msys2 is sh (msys2). defaults.run.shell is for this setting. - # - # https://github.com/msys2/MINGW-packages/blob/master/.github/workflows/main.yml - # https://github.com/actions/starter-workflows/issues/95 - - windows-msys2-general: - name: Windows ${{ matrix.msystem }} - runs-on: windows-latest - strategy: - fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix failed. - matrix: - include: [ - { msystem: mingw64, toolchain: mingw-w64-x86_64-toolchain }, - { msystem: mingw32, toolchain: mingw-w64-i686-toolchain }, - ] - defaults: - run: - shell: msys2 {0} - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - uses: msys2/setup-msys2@7efe20baefed56359985e327d329042cde2434ff # v2 - with: - msystem: MSYS - install: mingw-w64-i686-make ${{ matrix.toolchain }} - update: true - - - name: Update - run: | - pacman --noconfirm -Suuy - pacman --noconfirm -Suu - - - name: mingw64 - if: ${{ matrix.msystem == 'mingw64' }} - run: | - PATH=/mingw64/bin:$PATH /mingw32/bin/mingw32-make clean test MOREFLAGS=-Werror - PATH=/mingw64/bin:$PATH /mingw32/bin/mingw32-make -C tests/bench - # Abort if result of "file ./xxhsum.exe" doesn't contain 'x86-64'. - # Expected output is "./xxhsum.exe: PE32+ executable (console) x86-64, for MS Windows" - file ./xxhsum.exe | grep -q 'x86-64' || $(exit 1) - ./xxhsum.exe --version - - - name: mingw32 - if: ${{ matrix.msystem == 'mingw32' }} - run: | - PATH=/mingw32/bin:$PATH /mingw32/bin/mingw32-make.exe clean test MOREFLAGS=-Werror - PATH=/mingw32/bin:$PATH /mingw32/bin/mingw32-make.exe -C tests/bench - # Abort if result of "file ./xxhsum.exe" doesn't contain '80386'. - # Expected output is "./xxhsum.exe: PE32 executable (console) Intel 80386, for MS Windows" - file ./xxhsum.exe | grep -q '80386' || $(exit 1) - ./xxhsum.exe --version - - tipi-build-linux: - name: tipi.build project build and dependency resolution - runs-on: ubuntu-latest - container: tipibuild/tipi-ubuntu - - env: - HOME: /root - - steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - # FIX: we currently need a full clone - with: - fetch-depth: '0' - - run: | - mkdir -p /usr/local/share/.tipi - # FIX: Hack for github action - git config --global --add safe.directory /usr/local/share/.tipi - git config --global --add safe.directory /__w/xxHash/xxHash/ - - # checking if the xxHash project builds and passes tests - - name: Build as project target linux-cxx17 (run test multiInclude) - run: tipi . --dont-upgrade --verbose --test multiInclude -t linux-cxx17 - - - name: Build as project target linux-cxx20 (run test multiInclude) - run: tipi . --dont-upgrade --verbose --test multiInclude -t linux-cxx20 - - - name: Cleanup project builds - run: rm -r ./build - - # trying if pulling the dependency with tipi works properly - # - # note: the xxhashsum sources include xxhash using a #include "../xxhash.h" - # this defeats the purpose of this test AND because a bug post tipi v0.0.35 - # because of source mirroring (not) supporting relative include to locations - # outside of the project tree. - # - # because of this we create a copy of the ./cli and apply some sed magic - # to make the includes proper 'library' includes to simulate what someone - # consuming xxHash would do - # - # e.g. turning #include "../xxhash.h" => #include - - name: Build as dependency - run: | - cp -a ./cli ./cli-tipi - cd ./cli-tipi - find ./ -type f -iname "*.c" | xargs sed -i 's;"../xxhash.h";;g' - tipi . --dont-upgrade --verbose -t linux-cxx17 - ./build/linux-cxx17/bin/xsum_os_specific diff --git a/third_party/xxhash/.gitignore b/third_party/xxhash/.gitignore deleted file mode 100644 index 797f2d2a..00000000 --- a/third_party/xxhash/.gitignore +++ /dev/null @@ -1,49 +0,0 @@ -# objects -*.o -*.obj -*.s - -# libraries -libxxhash.* -!libxxhash.pc.in - -# Executables -*.exe -xxh32sum -xxh64sum -xxh128sum -xxhsum -xxhsum32 -xxhsum_privateXXH -xxhsum_inlinedXXH -dispatch -tests/generate_unicode_test -tests/sanity_test -tests/sanity_test_vectors_generator - -# local conf -.clang_complete - -# Mac OS-X artefacts -*.dSYM -.DS_Store - -# Wasm / emcc / emscripten artefacts -*.html -*.wasm -*.js - -# CMake build directories -build*/ - -# project managers artifacts -.projectile - -# analyzer artifacts -infer-out - -# test artifacts -.test* -tmp* -tests/*.unicode -tests/unicode_test* diff --git a/third_party/xxhash/.tipi/deps b/third_party/xxhash/.tipi/deps deleted file mode 100644 index 6f31cf5a..00000000 --- a/third_party/xxhash/.tipi/deps +++ /dev/null @@ -1 +0,0 @@ -{ } \ No newline at end of file diff --git a/third_party/xxhash/.tipi/opts b/third_party/xxhash/.tipi/opts deleted file mode 100644 index e69de29b..00000000 diff --git a/third_party/xxhash/.travis.yml b/third_party/xxhash/.travis.yml deleted file mode 100644 index 9f9e42ca..00000000 --- a/third_party/xxhash/.travis.yml +++ /dev/null @@ -1,142 +0,0 @@ -language: c - -# Dump CPU info before start -before_install: - - cat /proc/cpuinfo || echo /proc/cpuinfo is not present - -matrix: - fast_finish: true - include: - - - name: General linux x64 tests - arch: amd64 - addons: - apt: - packages: - - g++-multilib - - gcc-multilib - - cppcheck - script: - - make -B test-all - - make clean - - CFLAGS="-Werror" MOREFLAGS="-Wno-sign-conversion" make dispatch # removing sign conversion warnings due to a bug in gcc-5's definition of some AVX512 intrinsics - - make clean - - CFLAGS="-O1 -mavx512f -Werror" make - - make clean - - CFLAGS="-Wall -Wextra -Werror" make DISPATCH=1 - - make clean - - CFLAGS="-std=c90 -pedantic -Wno-long-long -Werror" make xxhsum # check C90 + long long compliance - - make c90test # strict c90, with no long long support; resulting in no XXH64_* symbol - - make noxxh3test # check library can be compiled with XXH_NO_XXH3, resulting in no XXH3_* symbol - - - - name: Check results consistency on x64 - arch: amd64 - script: - - CPPFLAGS=-DXXH_VECTOR=XXH_SCALAR make check # Scalar code path - - make clean - - CPPFLAGS=-DXXH_VECTOR=XXH_SSE2 make check # SSE2 code path - - make clean - - CPPFLAGS="-mavx2 -DXXH_VECTOR=XXH_AVX2" make check # AVX2 code path - - make clean - - CPPFLAGS="-mavx512f -DXXH_VECTOR=XXH_AVX512" make check # AVX512 code path - - make clean - - CPPFLAGS=-DXXH_REROLL=1 make check # reroll code path (#240) - - make -C tests/bench - - - name: macOS General Test - os: osx - compiler: clang - script: - - CFLAGS="-Werror" make # test library build - - make clean - - make test MOREFLAGS='-Werror' | tee # test scenario where `stdout` is not the console - - - name: ARM compilation and consistency checks (Qemu) - dist: xenial - arch: amd64 - addons: - apt: - packages: - - qemu-system-arm - - qemu-user-static - - gcc-arm-linux-gnueabi - - libc6-dev-armel-cross - script: - # arm (32-bit) - - CC=arm-linux-gnueabi-gcc CPPFLAGS=-DXXH_VECTOR=XXH_SCALAR LDFLAGS=-static RUN_ENV=qemu-arm-static make check # Scalar code path - - make clean - # NEON (32-bit) - - CC=arm-linux-gnueabi-gcc CPPFLAGS=-DXXH_VECTOR=XXH_NEON CFLAGS="-O3 -march=armv7-a -fPIC -mfloat-abi=softfp -mfpu=neon-vfpv4" LDFLAGS=-static RUN_ENV=qemu-arm-static make check # NEON code path - - - name: aarch64 compilation and consistency checks - dist: xenial - arch: arm64 - script: - # aarch64 - - CPPFLAGS=-DXXH_VECTOR=XXH_SCALAR make check # Scalar code path - # NEON (64-bit) - - make clean - - CPPFLAGS=-DXXH_VECTOR=XXH_NEON make check # NEON code path - # clang - - make clean - - CC=clang CPPFLAGS=-DXXH_VECTOR=XXH_SCALAR make check # Scalar code path - # clang + NEON - - make clean - - CC=clang CPPFLAGS=-DXXH_VECTOR=XXH_NEON make check # NEON code path - - # We need Bionic here because the QEMU versions shipped in the older repos - # do not support POWER8 emulation, and compiling QEMU from source is a pain. - - name: PowerPC + PPC64 compilation and consistency checks (Qemu on Bionic) - dist: bionic - arch: amd64 - addons: - apt: - packages: - - qemu-system-ppc - - qemu-user-static - - gcc-powerpc-linux-gnu - - gcc-powerpc64-linux-gnu - - libc6-dev-powerpc-cross - - libc6-dev-ppc64-cross - script: - - CC=powerpc-linux-gnu-gcc RUN_ENV=qemu-ppc-static LDFLAGS=-static make check # Scalar code path - - make clean - - CC=powerpc64-linux-gnu-gcc RUN_ENV=qemu-ppc64-static CPPFLAGS=-DXXH_VECTOR=XXH_SCALAR CFLAGS="-O3" LDFLAGS="-static -m64" make check # Scalar code path - # VSX code - - make clean - - CC=powerpc64-linux-gnu-gcc RUN_ENV="qemu-ppc64-static -cpu power8" CPPFLAGS=-DXXH_VECTOR=XXH_VSX CFLAGS="-O3 -maltivec -mvsx -mcpu=power8 -mpower8-vector" LDFLAGS="-static -m64" make check # VSX code path - # altivec.h redefinition issue #426 - - make clean - - CC=powerpc64-linux-gnu-gcc CPPFLAGS=-DXXH_VECTOR=XXH_VSX CFLAGS="-maltivec -mvsx -mcpu=power8 -mpower8-vector" make -C tests test_ppc_redefine - - - name: PPC64LE compilation and consistency checks - dist: xenial - arch: ppc64le - script: - # Scalar (universal) code path - - CPPFLAGS=-DXXH_VECTOR=XXH_SCALAR LDFLAGS=-static make check - # VSX code path (64-bit) - - make clean - - CPPFLAGS=-DXXH_VECTOR=XXH_VSX CFLAGS="-O3 -maltivec -mvsx -mpower8-vector -mcpu=power8" LDFLAGS="-static" make check - # altivec.h redefinition issue #426 - - make clean - - CPPFLAGS=-DXXH_VECTOR=XXH_VSX CFLAGS="-maltivec -mvsx -mcpu=power8 -mpower8-vector" make -C tests test_ppc_redefine - - - name: IBM s390x compilation and consistency checks - dist: bionic - arch: s390x - script: - # Scalar (universal) code path - - CPPFLAGS=-DXXH_VECTOR=XXH_SCALAR LDFLAGS=-static make check - # s390x code path (64-bit) - - make clean - - CPPFLAGS=-DXXH_VECTOR=XXH_VSX CFLAGS="-O3 -march=arch11 -mzvector" LDFLAGS="-static" make check - - - name: cmake build test - script: - - cd cmake_unofficial - - mkdir build - - cd build - - cmake .. - - CFLAGS=-Werror make diff --git a/third_party/xxhash/CHANGELOG b/third_party/xxhash/CHANGELOG deleted file mode 100644 index ff59d8bb..00000000 --- a/third_party/xxhash/CHANGELOG +++ /dev/null @@ -1,71 +0,0 @@ -v0.8.1 -- perf : much improved performance for XXH3 streaming variants, notably on gcc and msvc -- perf : improved XXH64 speed and latency on small inputs -- perf : small XXH32 speed and latency improvement on small inputs of random size -- perf : minor stack usage improvement for XXH32 and XXH64 -- api : new experimental variants XXH3_*_withSecretandSeed() -- api : update XXH3_generateSecret(), can no generate secret of any size (>= XXH3_SECRET_SIZE_MIN) -- cli : xxhsum can now generate and check XXH3 checksums, using command `-H3` -- build: can build xxhash without XXH3, with new build macro XXH_NO_XXH3 -- build: fix xxh_x86dispatch build with MSVC, by @apankrat -- build: XXH_INLINE_ALL can always be used safely, even after XXH_NAMESPACE or a previous XXH_INLINE_ALL -- build: improved PPC64LE vector support, by @mpe -- install: fix pkgconfig, by @ellert -- install: compatibility with Haiku, by @Begasus -- doc : code comments made compatible with doxygen, by @easyaspi314 -- misc : XXH_ACCEPT_NULL_INPUT_POINTER is no longer necessary, all functions can accept NULL input pointers, as long as size == 0 -- misc : complete refactor of CI tests on Github Actions, offering much larger coverage, by @t-mat -- misc : xxhsum code base split into multiple specialized units, within directory cli/, by @easyaspi314 - -v0.8.0 -- api : stabilize XXH3 -- cli : xxhsum can parse BSD-style --check lines, by @WayneD -- cli : `xxhsum -` accepts console input, requested by @jaki -- cli : xxhsum accepts -- separator, by @jaki -- cli : fix : print correct default algo for symlinked helpers, by @martinetd -- install: improved pkgconfig script, allowing custom install locations, requested by @ellert - -v0.7.4 -- perf: automatic vector detection and selection at runtime (`xxh_x86dispatch.h`), initiated by @easyaspi314 -- perf: added AVX512 support, by @gzm55 -- api : new: secret generator `XXH_generateSecret()`, suggested by @koraa -- api : fix: XXH3_state_t is movable, identified by @koraa -- api : fix: state is correctly aligned in AVX mode (unlike `malloc()`), by @easyaspi314 -- api : fix: streaming generated wrong values in some combination of random ingestion lengths, reported by @WayneD -- cli : fix unicode print on Windows, by @easyaspi314 -- cli : can `-c` check file generated by sfv -- build: `make DISPATCH=1` generates `xxhsum` and `libxxhash` with runtime vector detection (x86/x64 only) -- install: cygwin installation support -- doc : Cryptol specification of XXH32 and XXH64, by @weaversa - -v0.7.3 -- perf: improved speed for large inputs (~+20%) -- perf: improved latency for small inputs (~10%) -- perf: s390x Vectorial code, by @easyaspi314 -- cli: improved support for Unicode filenames on Windows, thanks to @easyaspi314 and @t-mat -- api: `xxhash.h` can now be included in any order, with and without `XXH_STATIC_LINKING_ONLY` and `XXH_INLINE_ALL` -- build: xxHash's implementation transferred into `xxhash.h`. No more need to have `xxhash.c` in the `/include` directory for `XXH_INLINE_ALL` to work -- install: created pkg-config file, by @bket -- install: VCpkg installation instructions, by @LilyWangL -- doc: Highly improved code documentation, by @easyaspi314 -- misc: New test tool in `/tests/collisions`: brute force collision tester for 64-bit hashes - -v0.7.2 -- Fixed collision ratio of `XXH128` for some specific input lengths, reported by @svpv -- Improved `VSX` and `NEON` variants, by @easyaspi314 -- Improved performance of scalar code path (`XXH_VECTOR=0`), by @easyaspi314 -- `xxhsum`: can generate 128-bit hashes with the `-H2` option (note: for experimental purposes only! `XXH128` is not yet frozen) -- `xxhsum`: option `-q` removes status notifications - -v0.7.1 -- Secret first: the algorithm computation can be altered by providing a "secret", which is any blob of bytes, of size >= `XXH3_SECRET_SIZE_MIN`. -- `seed` is still available, and acts as a secret generator -- updated `ARM NEON` variant by @easyaspi314 -- Streaming implementation is available -- Improve compatibility and performance with Visual Studio, with help from @aras-p -- Better integration when using `XXH_INLINE_ALL`: do not pollute host namespace, use its own macros, such as `XXH_ASSERT()`, `XXH_ALIGN`, etc. -- 128-bit variant provides helper functions for comparison of hashes. -- Better `clang` generation of `rotl` instruction, thanks to @easyaspi314 -- `XXH_REROLL` build macro to reduce binary size, by @easyaspi314 -- Improved `cmake` script, by @Mezozoysky -- Full benchmark program provided in `/tests/bench` diff --git a/third_party/xxhash/Doxyfile b/third_party/xxhash/Doxyfile deleted file mode 100644 index f1f8512a..00000000 --- a/third_party/xxhash/Doxyfile +++ /dev/null @@ -1,61 +0,0 @@ -# Doxygen config for xxHash -DOXYFILE_ENCODING = UTF-8 - -PROJECT_NAME = "xxHash" -PROJECT_NUMBER = "0.8.1" -PROJECT_BRIEF = "Extremely fast non-cryptographic hash function" -OUTPUT_DIRECTORY = doxygen -OUTPUT_LANGUAGE = English - -# We already separate the internal docs. -INTERNAL_DOCS = YES -# Consistency -SORT_MEMBER_DOCS = NO -BRIEF_MEMBER_DESC = YES -REPEAT_BRIEF = YES - -# Warnings -QUIET = YES -# Until we document everything -WARN_IF_UNDOCUMENTED = NO - -# TODO: Add the other files. It is just xxhash.h for now. -FILE_PATTERNS = xxhash.h xxh_x86dispatch.c -# Note: xxHash's source files are technically ASCII only. -INPUT_ENCODING = UTF-8 -TAB_SIZE = 4 -MARKDOWN_SUPPORT = YES - -# xxHash is a C library -OPTIMIZE_OUTPUT_FOR_C = YES -# So we can document the internals -EXTRACT_STATIC = YES -# Document the macros -MACRO_EXPANSION = YES -EXPAND_ONLY_PREDEF = YES -# Predefine some macros to clean up the output. -PREDEFINED = "XXH_DOXYGEN=" \ - "XXH_PUBLIC_API=" \ - "XXH_FORCE_INLINE=static inline" \ - "XXH_NO_INLINE=static" \ - "XXH_RESTRICT=restrict" \ - "XSUM_API=" \ - "XXH_STATIC_LINKING_ONLY" \ - "XXH_IMPLEMENTATION" \ - "XXH_PUREF=[[gnu::pure]]" \ - "XXH_CONSTF=[[gnu::const]]" \ - "XXH_MALLOCF=[[gnu::malloc]]" \ - "XXH_ALIGN(N)=alignas(N)" \ - "XXH_ALIGN_MEMBER(align,type)=alignas(align) type" - -# We want HTML docs -GENERATE_HTML = YES -HTML_OUTPUT = html -HTML_FILE_EXTENSION = .html -# Tweak the colors a bit -HTML_COLORSTYLE_HUE = 220 -HTML_COLORSTYLE_GAMMA = 100 -HTML_COLORSTYLE_SAT = 100 - -# We don't want LaTeX. -GENERATE_LATEX = NO diff --git a/third_party/xxhash/LICENSE b/third_party/xxhash/LICENSE deleted file mode 100644 index e4c5da72..00000000 --- a/third_party/xxhash/LICENSE +++ /dev/null @@ -1,26 +0,0 @@ -xxHash Library -Copyright (c) 2012-2021 Yann Collet -All rights reserved. - -BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, this - list of conditions and the following disclaimer in the documentation and/or - other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/third_party/xxhash/Makefile b/third_party/xxhash/Makefile deleted file mode 100644 index 3b4e45eb..00000000 --- a/third_party/xxhash/Makefile +++ /dev/null @@ -1,623 +0,0 @@ -# ################################################################ -# xxHash Makefile -# Copyright (C) 2012-2021 Yann Collet -# -# GPL v2 License -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# You can contact the author at: -# - xxHash homepage: https://www.xxhash.com -# - xxHash source repository: https://github.com/Cyan4973/xxHash -# ################################################################ -# xxhsum: provides 32/64 bits hash of one or multiple files, or stdin -# ################################################################ -Q = $(if $(filter 1,$(V) $(VERBOSE)),,@) - -# Version numbers -SED ?= sed -SED_ERE_OPT ?= -E -LIBVER_MAJOR_SCRIPT:=`$(SED) -n '/define XXH_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < xxhash.h` -LIBVER_MINOR_SCRIPT:=`$(SED) -n '/define XXH_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < xxhash.h` -LIBVER_PATCH_SCRIPT:=`$(SED) -n '/define XXH_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < xxhash.h` -LIBVER_MAJOR := $(shell echo $(LIBVER_MAJOR_SCRIPT)) -LIBVER_MINOR := $(shell echo $(LIBVER_MINOR_SCRIPT)) -LIBVER_PATCH := $(shell echo $(LIBVER_PATCH_SCRIPT)) -LIBVER := $(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH) - -CFLAGS ?= -O3 -DEBUGFLAGS+=-Wall -Wextra -Wconversion -Wcast-qual -Wcast-align -Wshadow \ - -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \ - -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security \ - -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \ - -Wredundant-decls -Wstrict-overflow=2 -CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) -FLAGS = $(CFLAGS) $(CPPFLAGS) -XXHSUM_VERSION = $(LIBVER) -UNAME := $(shell uname) - -# Define *.exe as extension for Windows systems -ifneq (,$(filter Windows%,$(OS))) -EXT =.exe -else -EXT = -endif - -# OS X linker doesn't support -soname, and use different extension -# see: https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html -ifeq ($(UNAME), Darwin) - SHARED_EXT = dylib - SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT) - SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT) - SONAME_FLAGS = -install_name $(LIBDIR)/libxxhash.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER) -else - SONAME_FLAGS = -Wl,-soname=libxxhash.$(SHARED_EXT).$(LIBVER_MAJOR) - SHARED_EXT = so - SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR) - SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER) -endif - -LIBXXH = libxxhash.$(SHARED_EXT_VER) - -XXHSUM_SRC_DIR = cli -XXHSUM_SPLIT_SRCS = $(XXHSUM_SRC_DIR)/xxhsum.c \ - $(XXHSUM_SRC_DIR)/xsum_os_specific.c \ - $(XXHSUM_SRC_DIR)/xsum_output.c \ - $(XXHSUM_SRC_DIR)/xsum_sanity_check.c \ - $(XXHSUM_SRC_DIR)/xsum_bench.c -XXHSUM_SPLIT_OBJS = $(XXHSUM_SPLIT_SRCS:.c=.o) -XXHSUM_HEADERS = $(XXHSUM_SRC_DIR)/xsum_config.h \ - $(XXHSUM_SRC_DIR)/xsum_arch.h \ - $(XXHSUM_SRC_DIR)/xsum_os_specific.h \ - $(XXHSUM_SRC_DIR)/xsum_output.h \ - $(XXHSUM_SRC_DIR)/xsum_sanity_check.h \ - $(XXHSUM_SRC_DIR)/xsum_bench.h - -## generate CLI and libraries in release mode (default for `make`) -.PHONY: default -default: DEBUGFLAGS= -default: lib xxhsum_and_links - -.PHONY: all -all: lib xxhsum xxhsum_inlinedXXH - -## xxhsum is the command line interface (CLI) -ifeq ($(DISPATCH),1) -xxhsum: CPPFLAGS += -DXXHSUM_DISPATCH=1 -xxhsum: xxh_x86dispatch.o -endif -xxhsum: xxhash.o $(XXHSUM_SPLIT_OBJS) - $(CC) $(FLAGS) $^ $(LDFLAGS) -o $@$(EXT) - -xxhsum32: CFLAGS += -m32 ## generate CLI in 32-bits mode -xxhsum32: xxhash.c $(XXHSUM_SPLIT_SRCS) ## do not generate object (avoid mixing different ABI) - $(CC) $(FLAGS) $^ $(LDFLAGS) -o $@$(EXT) - -## dispatch only works for x86/x64 systems -dispatch: CPPFLAGS += -DXXHSUM_DISPATCH=1 -dispatch: xxhash.o xxh_x86dispatch.o $(XXHSUM_SPLIT_SRCS) - $(CC) $(FLAGS) $^ $(LDFLAGS) -o $@$(EXT) - -xxhash.o: xxhash.c xxhash.h -xxhsum.o: $(XXHSUM_SRC_DIR)/xxhsum.c $(XXHSUM_HEADERS) \ - xxhash.h xxh_x86dispatch.h -xxh_x86dispatch.o: xxh_x86dispatch.c xxh_x86dispatch.h xxhash.h - -.PHONY: xxhsum_and_links -xxhsum_and_links: xxhsum xxh32sum xxh64sum xxh128sum - -xxh32sum xxh64sum xxh128sum: xxhsum - ln -sf $<$(EXT) $@$(EXT) - -xxhsum_inlinedXXH: CPPFLAGS += -DXXH_INLINE_ALL -xxhsum_inlinedXXH: $(XXHSUM_SPLIT_SRCS) - $(CC) $(FLAGS) $< -o $@$(EXT) - - -# library - -libxxhash.a: ARFLAGS = rcs -libxxhash.a: xxhash.o - $(AR) $(ARFLAGS) $@ $^ - -$(LIBXXH): LDFLAGS += -shared -ifeq (,$(filter Windows%,$(OS))) -$(LIBXXH): CFLAGS += -fPIC -endif -ifeq ($(DISPATCH),1) -$(LIBXXH): xxh_x86dispatch.c -endif -$(LIBXXH): xxhash.c - $(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@ - ln -sf $@ libxxhash.$(SHARED_EXT_MAJOR) - ln -sf $@ libxxhash.$(SHARED_EXT) - -.PHONY: libxxhash -libxxhash: ## generate dynamic xxhash library -libxxhash: $(LIBXXH) - -.PHONY: lib -lib: ## generate static and dynamic xxhash libraries -lib: libxxhash.a libxxhash - -# helper targets - -AWK = awk -GREP = grep -SORT = sort -NM = nm - -.PHONY: list -list: ## list all Makefile targets - $(Q)$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | $(AWK) -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | $(SORT) | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs - -.PHONY: help -help: ## list documented targets - $(Q)$(GREP) -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \ - $(SORT) | \ - $(AWK) 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' - -.PHONY: clean -clean: ## remove all build artifacts - $(Q)$(RM) -r *.dSYM # Mac OS-X specific - $(Q)$(RM) core *.o *.obj *.$(SHARED_EXT) *.$(SHARED_EXT).* *.a libxxhash.pc - $(Q)$(RM) xxhsum$(EXT) xxhsum32$(EXT) xxhsum_inlinedXXH$(EXT) dispatch$(EXT) - $(Q)$(RM) xxh32sum$(EXT) xxh64sum$(EXT) xxh128sum$(EXT) - $(Q)$(RM) $(XXHSUM_SRC_DIR)/*.o $(XXHSUM_SRC_DIR)/*.obj - $(MAKE) -C tests clean - $(MAKE) -C tests/bench clean - $(MAKE) -C tests/collisions clean - @echo cleaning completed - - -# ================================================= -# tests -# ================================================= - -# make check can be run with cross-compiled binaries on emulated environments (qemu user mode) -# by setting $(RUN_ENV) to the target emulation environment -.PHONY: check -check: xxhsum test_sanity ## basic tests for xxhsum CLI, set RUN_ENV for emulated environments - # stdin - $(RUN_ENV) ./xxhsum$(EXT) < xxhash.c - # multiple files - $(RUN_ENV) ./xxhsum$(EXT) xxhash.* - # internal bench - $(RUN_ENV) ./xxhsum$(EXT) -bi0 - # long bench command - $(RUN_ENV) ./xxhsum$(EXT) --benchmark-all -i0 - # bench multiple variants - $(RUN_ENV) ./xxhsum$(EXT) -b1,2,3 -i0 - # file bench - $(RUN_ENV) ./xxhsum$(EXT) -bi0 xxhash.c - # 32-bit - $(RUN_ENV) ./xxhsum$(EXT) -H0 xxhash.c - # 128-bit - $(RUN_ENV) ./xxhsum$(EXT) -H2 xxhash.c - # XXH3 (enforce BSD style) - $(RUN_ENV) ./xxhsum$(EXT) -H3 xxhash.c | grep "XXH3" - # request incorrect variant - $(RUN_ENV) ./xxhsum$(EXT) -H9 xxhash.c ; test $$? -eq 1 - @printf "\n ....... checks completed successfully ....... \n" - -.PHONY: test-unicode -test-unicode: - $(MAKE) -C tests test_unicode - -.PHONY: test_sanity -test_sanity: - $(MAKE) -C tests test_sanity - -.PHONY: test-mem -VALGRIND = valgrind --leak-check=yes --error-exitcode=1 -test-mem: RUN_ENV = $(VALGRIND) -test-mem: xxhsum check - -.PHONY: test32 -test32: xxhsum32 - @echo ---- test 32-bit ---- - ./xxhsum32 -bi0 xxhash.c - -TEST_FILES = xxhsum$(EXT) xxhash.c xxhash.h -.PHONY: test-xxhsum-c -test-xxhsum-c: xxhsum - # xxhsum to/from pipe - ./xxhsum $(TEST_FILES) | ./xxhsum -c - - ./xxhsum -H0 $(TEST_FILES) | ./xxhsum -c - - # xxhsum -c is unable to verify checksum of file from STDIN (#470) - ./xxhsum < README.md > .test.README.md.xxh - ./xxhsum -c .test.README.md.xxh < README.md - # xxhsum -q does not display "Loading" message into stderr (#251) - ! ./xxhsum -q $(TEST_FILES) 2>&1 | grep Loading - # xxhsum does not display "Loading" message into stderr either - ! ./xxhsum $(TEST_FILES) 2>&1 | grep Loading - # Check that xxhsum do display filename that it failed to open. - LC_ALL=C ./xxhsum nonexistent 2>&1 | grep "Error: Could not open 'nonexistent'" - # xxhsum to/from file, shell redirection - ./xxhsum $(TEST_FILES) > .test.xxh64 - ./xxhsum --tag $(TEST_FILES) > .test.xxh64_tag - ./xxhsum --little-endian $(TEST_FILES) > .test.le_xxh64 - ./xxhsum --tag --little-endian $(TEST_FILES) > .test.le_xxh64_tag - ./xxhsum -H0 $(TEST_FILES) > .test.xxh32 - ./xxhsum -H0 --tag $(TEST_FILES) > .test.xxh32_tag - ./xxhsum -H0 --little-endian $(TEST_FILES) > .test.le_xxh32 - ./xxhsum -H0 --tag --little-endian $(TEST_FILES) > .test.le_xxh32_tag - ./xxhsum -H2 $(TEST_FILES) > .test.xxh128 - ./xxhsum -H2 --tag $(TEST_FILES) > .test.xxh128_tag - ./xxhsum -H2 --little-endian $(TEST_FILES) > .test.le_xxh128 - ./xxhsum -H2 --tag --little-endian $(TEST_FILES) > .test.le_xxh128_tag - ./xxhsum -H3 $(TEST_FILES) > .test.xxh3 - ./xxhsum -H3 --tag $(TEST_FILES) > .test.xxh3_tag - ./xxhsum -H3 --little-endian $(TEST_FILES) > .test.le_xxh3 - ./xxhsum -H3 --tag --little-endian $(TEST_FILES) > .test.le_xxh3_tag - ./xxhsum -c .test.xxh* - ./xxhsum -c --little-endian .test.le_xxh* - ./xxhsum -c .test.*_tag - # read list of files from stdin - ./xxhsum -c < .test.xxh32 - ./xxhsum -c < .test.xxh64 - ./xxhsum -c < .test.xxh128 - ./xxhsum -c < .test.xxh3 - cat .test.xxh* | ./xxhsum -c - - # check variant with '*' marker as second separator - $(SED) 's/ / \*/' .test.xxh32 | ./xxhsum -c - # bsd-style output - ./xxhsum --tag xxhsum* | $(GREP) XXH64 - ./xxhsum --tag -H0 xxhsum* | $(GREP) XXH32 - ./xxhsum --tag -H1 xxhsum* | $(GREP) XXH64 - ./xxhsum --tag -H2 xxhsum* | $(GREP) XXH128 - ./xxhsum --tag -H3 xxhsum* | $(GREP) XXH3 - ./xxhsum -H3 xxhsum* | $(GREP) XXH3 # --tag is implicit for H3 - ./xxhsum --tag -H32 xxhsum* | $(GREP) XXH32 - ./xxhsum --tag -H64 xxhsum* | $(GREP) XXH64 - ./xxhsum --tag -H128 xxhsum* | $(GREP) XXH128 - ./xxhsum --tag -H0 --little-endian xxhsum* | $(GREP) XXH32_LE - ./xxhsum --tag -H1 --little-endian xxhsum* | $(GREP) XXH64_LE - ./xxhsum --tag -H2 --little-endian xxhsum* | $(GREP) XXH128_LE - ./xxhsum -H3 --little-endian xxhsum* | $(GREP) XXH3_LE - ./xxhsum --tag -H32 --little-endian xxhsum* | $(GREP) XXH32_LE - ./xxhsum --tag -H64 --little-endian xxhsum* | $(GREP) XXH64_LE - ./xxhsum --tag -H128 --little-endian xxhsum* | $(GREP) XXH128_LE - # check bsd-style - ./xxhsum --tag xxhsum* | ./xxhsum -c - ./xxhsum --tag -H32 --little-endian xxhsum* | ./xxhsum -c - # xxhsum -c warns improperly format lines. - echo '12345678 ' >>.test.xxh32 - ./xxhsum -c .test.xxh32 | $(GREP) improperly - echo '123456789 file' >>.test.xxh64 - ./xxhsum -c .test.xxh64 | $(GREP) improperly - # Expects "FAILED" - echo "0000000000000000 LICENSE" | ./xxhsum -c -; test $$? -eq 1 - echo "00000000 LICENSE" | ./xxhsum -c -; test $$? -eq 1 - # Expects "FAILED open or read" - echo "0000000000000000 test-expects-file-not-found" | ./xxhsum -c -; test $$? -eq 1 - echo "00000000 test-expects-file-not-found" | ./xxhsum -c -; test $$? -eq 1 - @$(RM) .test.* - -.PHONY: test-filename-escape -test-filename-escape: - $(MAKE) -C tests test_filename_escape - -.PHONY: armtest -armtest: clean - @echo ---- test ARM compilation ---- - CC=arm-linux-gnueabi-gcc MOREFLAGS="-Werror -static" $(MAKE) xxhsum - -.PHONY: clangtest -clangtest: clean - @echo ---- test clang compilation ---- - CC=clang MOREFLAGS="-Werror -Wconversion -Wno-sign-conversion" $(MAKE) all - -.PHONY: gcc-og-test -gcc-og-test: clean - @echo ---- test gcc -Og compilation ---- - CFLAGS="-Og -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror -fPIC" MOREFLAGS="-Werror" $(MAKE) all - -.PHONY: cxxtest -cxxtest: clean - @echo ---- test C++ compilation ---- - CC="$(CXX) -Wno-deprecated" $(MAKE) all CFLAGS="-O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror -fPIC" - -.PHONY: c90test -ifeq ($(NO_C90_TEST),true) -c90test: - @echo no c90 compatibility test -else -c90test: CPPFLAGS += -DXXH_NO_LONG_LONG -c90test: CFLAGS += -std=c90 -Werror -pedantic -c90test: xxhash.c - @echo ---- test strict C90 compilation [xxh32 only] ---- - $(RM) xxhash.o - $(CC) $(FLAGS) $^ -c - $(NM) xxhash.o | $(GREP) XXH64 ; test $$? -eq 1 - $(RM) xxhash.o -endif - -.PHONY: noxxh3test -noxxh3test: CPPFLAGS += -DXXH_NO_XXH3 -noxxh3test: CFLAGS += -Werror -pedantic -Wno-long-long # XXH64 requires long long support -noxxh3test: OFILE = xxh_noxxh3.o -noxxh3test: xxhash.c - @echo ---- test compilation without XXH3 ---- - $(CC) $(FLAGS) -c $^ -o $(OFILE) - $(NM) $(OFILE) | $(GREP) XXH3_ ; test $$? -eq 1 - $(RM) $(OFILE) - -.PHONY: nostreamtest -nostreamtest: CPPFLAGS += -DXXH_NO_STREAM -nostreamtest: CFLAGS += -Werror -pedantic -Wno-long-long # XXH64 requires long long support -nostreamtest: OFILE = xxh_nostream.o -nostreamtest: xxhash.c - @echo ---- test compilation without streaming ---- - $(CC) $(FLAGS) -c $^ -o $(OFILE) - $(NM) $(OFILE) | $(GREP) update ; test $$? -eq 1 - $(RM) $(OFILE) - -.PHONY: nostdlibtest -nostdlibtest: CPPFLAGS += -DXXH_NO_STDLIB -nostdlibtest: CFLAGS += -Werror -pedantic -Wno-long-long # XXH64 requires long long support -nostdlibtest: OFILE = xxh_nostdlib.o -nostdlibtest: xxhash.c - @echo ---- test compilation without \ ---- - $(CC) $(FLAGS) -c $^ -o $(OFILE) - $(NM) $(OFILE) | $(GREP) "U _free\|U free" ; test $$? -eq 1 - $(RM) $(OFILE) - -.PHONY: usan -usan: CC=clang -usan: CXX=clang++ -usan: ## check CLI runtime for undefined behavior, using clang's sanitizer - @echo ---- check undefined behavior - sanitize ---- - $(MAKE) clean - $(MAKE) test CC=$(CC) CXX=$(CXX) MOREFLAGS="-g -fsanitize=undefined -fno-sanitize-recover=all" - -.PHONY: staticAnalyze -SCANBUILD ?= scan-build -staticAnalyze: clean ## check C source files using $(SCANBUILD) static analyzer - @echo ---- static analyzer - $(SCANBUILD) ---- - CFLAGS="-g -Werror" $(SCANBUILD) --status-bugs -v $(MAKE) all - -CPPCHECK ?= cppcheck -.PHONY: cppcheck -cppcheck: ## check C source files using $(CPPCHECK) static analyzer - @echo ---- static analyzer - $(CPPCHECK) ---- - $(CPPCHECK) . --force --enable=warning,portability,performance,style --error-exitcode=1 > /dev/null - -.PHONY: namespaceTest -namespaceTest: ## ensure XXH_NAMESPACE redefines all public symbols - $(CC) -c xxhash.c - $(CC) -DXXH_NAMESPACE=TEST_ -c xxhash.c -o xxhash2.o - $(CC) xxhash.o xxhash2.o $(XXHSUM_SPLIT_SRCS) -o xxhsum2 # will fail if one namespace missing (symbol collision) - $(RM) *.o xxhsum2 # clean - -MAN = $(XXHSUM_SRC_DIR)/xxhsum.1 -MD2ROFF ?= ronn -MD2ROFF_FLAGS ?= --roff --warnings --manual="User Commands" --organization="xxhsum $(XXHSUM_VERSION)" -$(MAN): $(XXHSUM_SRC_DIR)/xxhsum.1.md xxhash.h - cat $< | $(MD2ROFF) $(MD2ROFF_FLAGS) | $(SED) -n '/^\.\\\".*/!p' > $@ - -.PHONY: man -man: $(MAN) ## generate man page from markdown source - -.PHONY: clean-man -clean-man: - $(RM) xxhsum.1 - -.PHONY: preview-man -preview-man: man - man ./xxhsum.1 - -.PHONY: test -test: DEBUGFLAGS += -DXXH_DEBUGLEVEL=1 -test: all namespaceTest check test-xxhsum-c c90test test-tools noxxh3test nostdlibtest - -.PHONY: test-inline -test-inline: - $(MAKE) -C tests test_multiInclude - -.PHONY: test-all -test-all: CFLAGS += -Werror -test-all: test test32 test-unicode clangtest gcc-og-test cxxtest usan test-inline listL120 trailingWhitespace test-xxh-nnn-sums - -.PHONY: test-tools -test-tools: - CFLAGS=-Werror $(MAKE) -C tests/bench - CFLAGS=-Werror $(MAKE) -C tests/collisions - -.PHONY: test-xxh-nnn-sums -test-xxh-nnn-sums: xxhsum_and_links - ./xxhsum README.md > tmp.xxhsum.out # xxhsum outputs xxh64 - ./xxh32sum README.md > tmp.xxh32sum.out - ./xxh64sum README.md > tmp.xxh64sum.out - ./xxh128sum README.md > tmp.xxh128sum.out - cat tmp.xxhsum.out - cat tmp.xxh32sum.out - cat tmp.xxh64sum.out - cat tmp.xxh128sum.out - ./xxhsum -c tmp.xxhsum.out - ./xxhsum -c tmp.xxh32sum.out - ./xxhsum -c tmp.xxh64sum.out - ./xxhsum -c tmp.xxh128sum.out - ./xxh32sum -c tmp.xxhsum.out ; test $$? -eq 1 # expects "no properly formatted" - ./xxh32sum -c tmp.xxh32sum.out - ./xxh32sum -c tmp.xxh64sum.out ; test $$? -eq 1 # expects "no properly formatted" - ./xxh32sum -c tmp.xxh128sum.out ; test $$? -eq 1 # expects "no properly formatted" - ./xxh64sum -c tmp.xxhsum.out - ./xxh64sum -c tmp.xxh32sum.out ; test $$? -eq 1 # expects "no properly formatted" - ./xxh64sum -c tmp.xxh64sum.out - ./xxh64sum -c tmp.xxh128sum.out ; test $$? -eq 1 # expects "no properly formatted" - ./xxh128sum -c tmp.xxhsum.out ; test $$? -eq 1 # expects "no properly formatted" - ./xxh128sum -c tmp.xxh32sum.out ; test $$? -eq 1 # expects "no properly formatted" - ./xxh128sum -c tmp.xxh64sum.out ; test $$? -eq 1 # expects "no properly formatted" - ./xxh128sum -c tmp.xxh128sum.out - -.PHONY: listL120 -listL120: # extract lines >= 120 characters in *.{c,h}, by Takayuki Matsuoka (note: $$, for Makefile compatibility) - find . -type f -name '*.c' -o -name '*.h' | while read -r filename; do awk 'length > 120 {print FILENAME "(" FNR "): " $$0}' $$filename; done - -.PHONY: trailingWhitespace -trailingWhitespace: - ! $(GREP) -E "`printf '[ \\t]$$'`" cli/*.c cli/*.h cli/*.1 *.c *.h LICENSE Makefile cmake_unofficial/CMakeLists.txt - -.PHONY: lint-unicode -lint-unicode: - ./tests/unicode_lint.sh - -# ========================================================= -# make install is validated only for the following targets -# ========================================================= -ifneq (,$(filter Linux Darwin GNU/kFreeBSD GNU Haiku OpenBSD FreeBSD NetBSD DragonFly SunOS CYGWIN% , $(UNAME))) - -DESTDIR ?= -# directory variables: GNU conventions prefer lowercase -# see https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html -# support both lower and uppercase (BSD), use uppercase in script -prefix ?= /usr/local -PREFIX ?= $(prefix) -exec_prefix ?= $(PREFIX) -EXEC_PREFIX ?= $(exec_prefix) -libdir ?= $(EXEC_PREFIX)/lib -LIBDIR ?= $(libdir) -includedir ?= $(PREFIX)/include -INCLUDEDIR ?= $(includedir) -bindir ?= $(EXEC_PREFIX)/bin -BINDIR ?= $(bindir) -datarootdir ?= $(PREFIX)/share -mandir ?= $(datarootdir)/man -man1dir ?= $(mandir)/man1 - -ifneq (,$(filter $(UNAME),FreeBSD NetBSD DragonFly)) -PKGCONFIGDIR ?= $(PREFIX)/libdata/pkgconfig -else -PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig -endif - -ifneq (,$(filter $(UNAME),OpenBSD FreeBSD NetBSD DragonFly SunOS)) -MANDIR ?= $(PREFIX)/man/man1 -else -MANDIR ?= $(man1dir) -endif - -ifneq (,$(filter $(UNAME),SunOS)) -INSTALL ?= ginstall -else -INSTALL ?= install -endif - -INSTALL_PROGRAM ?= $(INSTALL) -INSTALL_DATA ?= $(INSTALL) -m 644 -INSTALL_DIR ?= $(INSTALL) -d -m 755 - - -# Escape special symbols by putting each character into its separate class -EXEC_PREFIX_REGEX ?= $(shell echo "$(EXEC_PREFIX)" | $(SED) $(SED_ERE_OPT) -e "s/([^^])/[\1]/g" -e "s/\\^/\\\\^/g") -PREFIX_REGEX ?= $(shell echo "$(PREFIX)" | $(SED) $(SED_ERE_OPT) -e "s/([^^])/[\1]/g" -e "s/\\^/\\\\^/g") - -PCLIBDIR ?= $(shell echo "$(LIBDIR)" | $(SED) -n $(SED_ERE_OPT) -e "s@^$(EXEC_PREFIX_REGEX)(/|$$)@@p") -PCINCDIR ?= $(shell echo "$(INCLUDEDIR)" | $(SED) -n $(SED_ERE_OPT) -e "s@^$(PREFIX_REGEX)(/|$$)@@p") -PCEXECDIR?= $(if $(filter $(PREFIX),$(EXEC_PREFIX)),$$\{prefix\},$(EXEC_PREFIX)) - -ifeq (,$(PCLIBDIR)) -# Additional prefix check is required, since the empty string is technically a -# valid PCLIBDIR -ifeq (,$(shell echo "$(LIBDIR)" | $(SED) -n $(SED_ERE_OPT) -e "\\@^$(EXEC_PREFIX_REGEX)(/|$$)@ p")) -$(error configured libdir ($(LIBDIR)) is outside of exec_prefix ($(EXEC_PREFIX)), can't generate pkg-config file) -endif -endif - -ifeq (,$(PCINCDIR)) -# Additional prefix check is required, since the empty string is technically a -# valid PCINCDIR -ifeq (,$(shell echo "$(INCLUDEDIR)" | $(SED) -n $(SED_ERE_OPT) -e "\\@^$(PREFIX_REGEX)(/|$$)@ p")) -$(error configured includedir ($(INCLUDEDIR)) is outside of prefix ($(PREFIX)), can't generate pkg-config file) -endif -endif - -libxxhash.pc: libxxhash.pc.in - @echo creating pkgconfig - $(Q)$(SED) $(SED_ERE_OPT) -e 's|@PREFIX@|$(PREFIX)|' \ - -e 's|@EXECPREFIX@|$(PCEXECDIR)|' \ - -e 's|@LIBDIR@|$(PCLIBDIR)|' \ - -e 's|@INCLUDEDIR@|$(PCINCDIR)|' \ - -e 's|@VERSION@|$(LIBVER)|' \ - $< > $@ - - -install_libxxhash.a: libxxhash.a - @echo Installing libxxhash.a - $(Q)$(INSTALL_DIR) $(DESTDIR)$(LIBDIR) - $(Q)$(INSTALL_DATA) libxxhash.a $(DESTDIR)$(LIBDIR) - -install_libxxhash: libxxhash - @echo Installing libxxhash - $(Q)$(INSTALL_DIR) $(DESTDIR)$(LIBDIR) - $(Q)$(INSTALL_PROGRAM) $(LIBXXH) $(DESTDIR)$(LIBDIR) - $(Q)ln -sf $(LIBXXH) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT_MAJOR) - $(Q)ln -sf $(LIBXXH) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT) - -install_libxxhash.includes: - $(Q)$(INSTALL) -d -m 755 $(DESTDIR)$(INCLUDEDIR) # includes - $(Q)$(INSTALL_DATA) xxhash.h $(DESTDIR)$(INCLUDEDIR) - $(Q)$(INSTALL_DATA) xxh3.h $(DESTDIR)$(INCLUDEDIR) # for compatibility, will be removed in v0.9.0 -ifeq ($(DISPATCH),1) - $(Q)$(INSTALL_DATA) xxh_x86dispatch.h $(DESTDIR)$(INCLUDEDIR) -endif - -install_libxxhash.pc: libxxhash.pc - @echo Installing pkgconfig - $(Q)$(INSTALL_DIR) $(DESTDIR)$(PKGCONFIGDIR)/ - $(Q)$(INSTALL_DATA) libxxhash.pc $(DESTDIR)$(PKGCONFIGDIR)/ - -install_xxhsum: xxhsum - @echo Installing xxhsum - $(Q)$(INSTALL_DIR) $(DESTDIR)$(BINDIR)/ - $(Q)$(INSTALL_PROGRAM) xxhsum $(DESTDIR)$(BINDIR)/xxhsum - $(Q)ln -sf xxhsum $(DESTDIR)$(BINDIR)/xxh32sum - $(Q)ln -sf xxhsum $(DESTDIR)$(BINDIR)/xxh64sum - $(Q)ln -sf xxhsum $(DESTDIR)$(BINDIR)/xxh128sum - -install_man: - @echo Installing man pages - $(Q)$(INSTALL_DIR) $(DESTDIR)$(MANDIR)/ - $(Q)$(INSTALL_DATA) $(MAN) $(DESTDIR)$(MANDIR)/xxhsum.1 - $(Q)ln -sf xxhsum.1 $(DESTDIR)$(MANDIR)/xxh32sum.1 - $(Q)ln -sf xxhsum.1 $(DESTDIR)$(MANDIR)/xxh64sum.1 - $(Q)ln -sf xxhsum.1 $(DESTDIR)$(MANDIR)/xxh128sum.1 - -.PHONY: install -install: install_libxxhash.a install_libxxhash install_libxxhash.includes install_libxxhash.pc install_xxhsum install_man ## install libraries, CLI, links and man page - @echo xxhash installation completed - -.PHONY: uninstall -uninstall: ## uninstall libraries, CLI, links and man page - $(Q)$(RM) $(DESTDIR)$(LIBDIR)/libxxhash.a - $(Q)$(RM) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT) - $(Q)$(RM) $(DESTDIR)$(LIBDIR)/libxxhash.$(SHARED_EXT_MAJOR) - $(Q)$(RM) $(DESTDIR)$(LIBDIR)/$(LIBXXH) - $(Q)$(RM) $(DESTDIR)$(INCLUDEDIR)/xxhash.h - $(Q)$(RM) $(DESTDIR)$(INCLUDEDIR)/xxh3.h - $(Q)$(RM) $(DESTDIR)$(INCLUDEDIR)/xxh_x86dispatch.h - $(Q)$(RM) $(DESTDIR)$(PKGCONFIGDIR)/libxxhash.pc - $(Q)$(RM) $(DESTDIR)$(BINDIR)/xxh32sum - $(Q)$(RM) $(DESTDIR)$(BINDIR)/xxh64sum - $(Q)$(RM) $(DESTDIR)$(BINDIR)/xxh128sum - $(Q)$(RM) $(DESTDIR)$(BINDIR)/xxhsum - $(Q)$(RM) $(DESTDIR)$(MANDIR)/xxh32sum.1 - $(Q)$(RM) $(DESTDIR)$(MANDIR)/xxh64sum.1 - $(Q)$(RM) $(DESTDIR)$(MANDIR)/xxh128sum.1 - $(Q)$(RM) $(DESTDIR)$(MANDIR)/xxhsum.1 - @echo xxhsum successfully uninstalled - -endif diff --git a/third_party/xxhash/README.md b/third_party/xxhash/README.md deleted file mode 100644 index c5760125..00000000 --- a/third_party/xxhash/README.md +++ /dev/null @@ -1,271 +0,0 @@ - -xxHash - Extremely fast hash algorithm -====================================== - -xxHash is an Extremely fast Hash algorithm, processing at RAM speed limits. -Code is highly portable, and produces hashes identical across all platforms (little / big endian). -The library includes the following algorithms : -- XXH32 : generates 32-bit hashes, using 32-bit arithmetic -- XXH64 : generates 64-bit hashes, using 64-bit arithmetic -- XXH3 (since `v0.8.0`): generates 64 or 128-bit hashes, using vectorized arithmetic. - The 128-bit variant is called XXH128. - -All variants successfully complete the [SMHasher](https://code.google.com/p/smhasher/wiki/SMHasher) test suite -which evaluates the quality of hash functions (collision, dispersion and randomness). -Additional tests, which evaluate more thoroughly speed and collision properties of 64-bit hashes, [are also provided](https://github.com/Cyan4973/xxHash/tree/dev/tests). - -|Branch |Status | -|------------|---------| -|release | [![Build Status](https://github.com/Cyan4973/xxHash/actions/workflows/ci.yml/badge.svg?branch=release)](https://github.com/Cyan4973/xxHash/actions?query=branch%3Arelease+) | -|dev | [![Build Status](https://github.com/Cyan4973/xxHash/actions/workflows/ci.yml/badge.svg?branch=dev)](https://github.com/Cyan4973/xxHash/actions?query=branch%3Adev+) | - - -Benchmarks -------------------------- - -The benchmarked reference system uses an Intel i7-9700K cpu, and runs Ubuntu x64 20.04. -The [open source benchmark program] is compiled with `clang` v10.0 using `-O3` flag. - -| Hash Name | Width | Bandwidth (GB/s) | Small Data Velocity | Quality | Comment | -| --------- | ----- | ---------------- | ----- | --- | --- | -| __XXH3__ (SSE2) | 64 | 31.5 GB/s | 133.1 | 10 -| __XXH128__ (SSE2) | 128 | 29.6 GB/s | 118.1 | 10 -| _RAM sequential read_ | N/A | 28.0 GB/s | N/A | N/A | _for reference_ -| City64 | 64 | 22.0 GB/s | 76.6 | 10 -| T1ha2 | 64 | 22.0 GB/s | 99.0 | 9 | Slightly worse [collisions] -| City128 | 128 | 21.7 GB/s | 57.7 | 10 -| __XXH64__ | 64 | 19.4 GB/s | 71.0 | 10 -| SpookyHash | 64 | 19.3 GB/s | 53.2 | 10 -| Mum | 64 | 18.0 GB/s | 67.0 | 9 | Slightly worse [collisions] -| __XXH32__ | 32 | 9.7 GB/s | 71.9 | 10 -| City32 | 32 | 9.1 GB/s | 66.0 | 10 -| Murmur3 | 32 | 3.9 GB/s | 56.1 | 10 -| SipHash | 64 | 3.0 GB/s | 43.2 | 10 -| FNV64 | 64 | 1.2 GB/s | 62.7 | 5 | Poor avalanche properties -| Blake2 | 256 | 1.1 GB/s | 5.1 | 10 | Cryptographic -| SHA1 | 160 | 0.8 GB/s | 5.6 | 10 | Cryptographic but broken -| MD5 | 128 | 0.6 GB/s | 7.8 | 10 | Cryptographic but broken - -[open source benchmark program]: https://github.com/Cyan4973/xxHash/tree/release/tests/bench -[collisions]: https://github.com/Cyan4973/xxHash/wiki/Collision-ratio-comparison#collision-study - -note 1: Small data velocity is a _rough_ evaluation of algorithm's efficiency on small data. For more detailed analysis, please refer to next paragraph. - -note 2: some algorithms feature _faster than RAM_ speed. In which case, they can only reach their full speed potential when input is already in CPU cache (L3 or better). Otherwise, they max out on RAM speed limit. - -### Small data - -Performance on large data is only one part of the picture. -Hashing is also very useful in constructions like hash tables and bloom filters. -In these use cases, it's frequent to hash a lot of small data (starting at a few bytes). -Algorithm's performance can be very different for such scenarios, since parts of the algorithm, -such as initialization or finalization, become fixed cost. -The impact of branch mis-prediction also becomes much more present. - -XXH3 has been designed for excellent performance on both long and small inputs, -which can be observed in the following graph: - -![XXH3, latency, random size](https://user-images.githubusercontent.com/750081/61976089-aedeab00-af9f-11e9-9239-e5375d6c080f.png) - -For a more detailed analysis, please visit the wiki : -https://github.com/Cyan4973/xxHash/wiki/Performance-comparison#benchmarks-concentrating-on-small-data- - -Quality -------------------------- - -Speed is not the only property that matters. -Produced hash values must respect excellent dispersion and randomness properties, -so that any sub-section of it can be used to maximally spread out a table or index, -as well as reduce the amount of collisions to the minimal theoretical level, following the [birthday paradox]. - -`xxHash` has been tested with Austin Appleby's excellent SMHasher test suite, -and passes all tests, ensuring reasonable quality levels. -It also passes extended tests from [newer forks of SMHasher], featuring additional scenarios and conditions. - -Finally, xxHash provides its own [massive collision tester](https://github.com/Cyan4973/xxHash/tree/dev/tests/collisions), -able to generate and compare billions of hashes to test the limits of 64-bit hash algorithms. -On this front too, xxHash features good results, in line with the [birthday paradox]. -A more detailed analysis is documented [in the wiki](https://github.com/Cyan4973/xxHash/wiki/Collision-ratio-comparison). - -[birthday paradox]: https://en.wikipedia.org/wiki/Birthday_problem -[newer forks of SMHasher]: https://github.com/rurban/smhasher - - -### Build modifiers - -The following macros can be set at compilation time to modify libxxhash's behavior. They are generally disabled by default. - -- `XXH_INLINE_ALL`: Make all functions `inline`, with implementations being directly included within `xxhash.h`. - Inlining functions is beneficial for speed on small keys. - It's _extremely effective_ when key length is expressed as _a compile time constant_, - with performance improvements observed in the +200% range . - See [this article](https://fastcompression.blogspot.com/2018/03/xxhash-for-small-keys-impressive-power.html) for details. -- `XXH_PRIVATE_API`: same outcome as `XXH_INLINE_ALL`. Still available for legacy support. - The name underlines that `XXH_*` symbol names will not be exported. -- `XXH_NAMESPACE`: Prefixes all symbols with the value of `XXH_NAMESPACE`. - This macro can only use compilable character set. - Useful to evade symbol naming collisions, - in case of multiple inclusions of xxHash's source code. - Client applications still use the regular function names, - as symbols are automatically translated through `xxhash.h`. -- `XXH_FORCE_ALIGN_CHECK`: Use a faster direct read path when input is aligned. - This option can result in dramatic performance improvement when input to hash is aligned on 32 or 64-bit boundaries, - when running on architectures unable to load memory from unaligned addresses, or suffering a performance penalty from it. - It is (slightly) detrimental on platform with good unaligned memory access performance (same instruction for both aligned and unaligned accesses). - This option is automatically disabled on `x86`, `x64` and `aarch64`, and enabled on all other platforms. -- `XXH_FORCE_MEMORY_ACCESS`: The default method `0` uses a portable `memcpy()` notation. - Method `1` uses a gcc-specific `packed` attribute, which can provide better performance for some targets. - Method `2` forces unaligned reads, which is not standard compliant, but might sometimes be the only way to extract better read performance. - Method `3` uses a byteshift operation, which is best for old compilers which don't inline `memcpy()` or big-endian systems without a byteswap instruction. -- `XXH_VECTOR` : manually select a vector instruction set (default: auto-selected at compilation time). Available instruction sets are `XXH_SCALAR`, `XXH_SSE2`, `XXH_AVX2`, `XXH_AVX512`, `XXH_NEON` and `XXH_VSX`. Compiler may require additional flags to ensure proper support (for example, `gcc` on linux will require `-mavx2` for `AVX2`, and `-mavx512f` for `AVX512`). -- `XXH_NO_PREFETCH` : disable prefetching. Some platforms or situations may perform better without prefetching. XXH3 only. -- `XXH_PREFETCH_DIST` : select prefetching distance. For close-to-metal adaptation to specific hardware platforms. XXH3 only. -- `XXH_NO_STREAM`: Disables the streaming API, limiting it to single shot variants only. -- `XXH_SIZE_OPT`: `0`: default, optimize for speed - `1`: default for `-Os` and `-Oz`: disables some speed hacks for size optimization - `2`: makes code as small as possible, performance may cry -- `XXH_NO_INLINE_HINTS`: By default, xxHash uses `__attribute__((always_inline))` and `__forceinline` to improve performance at the cost of code size. - Defining this macro to 1 will mark all internal functions as `static`, allowing the compiler to decide whether to inline a function or not. - This is very useful when optimizing for smallest binary size, - and is automatically defined when compiling with `-O0`, `-Os`, `-Oz`, or `-fno-inline` on GCC and Clang. - This may also increase performance depending on compiler and architecture. -- `XXH32_ENDJMP`: Switch multi-branch finalization stage of XXH32 by a single jump. - This is generally undesirable for performance, especially when hashing inputs of random sizes. - But depending on exact architecture and compiler, a jump might provide slightly better performance on small inputs. Disabled by default. -- `XXH_NO_STDLIB`: Disable invocation of `` functions, notably `malloc()` and `free()`. - `libxxhash`'s `XXH*_createState()` will always fail and return `NULL`. - But one-shot hashing (like `XXH32()`) or streaming using statically allocated states - still work as expected. - This build flag is useful for embedded environments without dynamic allocation. -- `XXH_STATIC_LINKING_ONLY`: gives access to internal state declaration, required for static allocation. - Incompatible with dynamic linking, due to risks of ABI changes. -- `XXH_NO_XXH3` : removes symbols related to `XXH3` (both 64 & 128 bits) from generated binary. - Useful to reduce binary size, notably for applications which do not employ `XXH3`. -- `XXH_NO_LONG_LONG`: removes compilation of algorithms relying on 64-bit types (`XXH3` and `XXH64`). Only `XXH32` will be compiled. - Useful for targets (architectures and compilers) without 64-bit support. -- `XXH_IMPORT`: MSVC specific: should only be defined for dynamic linking, as it prevents linkage errors. -- `XXH_CPU_LITTLE_ENDIAN`: By default, endianness is determined by a runtime test resolved at compile time. - If, for some reason, the compiler cannot simplify the runtime test, it can cost performance. - It's possible to skip auto-detection and simply state that the architecture is little-endian by setting this macro to 1. - Setting it to 0 states big-endian. -- `XXH_DEBUGLEVEL` : When set to any value >= 1, enables `assert()` statements. - This (slightly) slows down execution, but may help finding bugs during debugging sessions. - -When compiling the Command Line Interface `xxhsum` using `make`, the following environment variables can also be set : -- `DISPATCH=1` : use `xxh_x86dispatch.c`, to automatically select between `scalar`, `sse2`, `avx2` or `avx512` instruction set at runtime, depending on local host. This option is only valid for `x86`/`x64` systems. -- `XXH_1ST_SPEED_TARGET` : select an initial speed target, expressed in MB/s, for the first speed test in benchmark mode. Benchmark will adjust the target at subsequent iterations, but the first test is made "blindly" by targeting this speed. Currently conservatively set to 10 MB/s, to support very slow (emulated) platforms. - -### Building xxHash - Using vcpkg - -You can download and install xxHash using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager: - - git clone https://github.com/Microsoft/vcpkg.git - cd vcpkg - ./bootstrap-vcpkg.sh - ./vcpkg integrate install - ./vcpkg install xxhash - -The xxHash port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. - -### Building and Using xxHash - tipi.build - -You can work on xxHash and depend on it in your [tipi.build](https://tipi.build) projects by adding the following entry to your `.tipi/deps`: - -```json -{ - "Cyan4973/xxHash": { "@": "v0.8.1" } -} -``` - -An example of such usage can be found in the `/cli` folder of this project which, if built as root project will depend on the release `v0.8.1` of xxHash - - -To contribute to xxHash itself use tipi.build on this repository (change the target name appropriately to `linux` or `macos` or `windows`): - -```bash -tipi . -t --test all -``` - -### Example - -The simplest example calls xxhash 64-bit variant as a one-shot function -generating a hash value from a single buffer, and invoked from a C/C++ program: - -```C -#include "xxhash.h" - - (...) - XXH64_hash_t hash = XXH64(buffer, size, seed); -} -``` - -Streaming variant is more involved, but makes it possible to provide data incrementally: - -```C -#include "stdlib.h" /* abort() */ -#include "xxhash.h" - - -XXH64_hash_t calcul_hash_streaming(FileHandler fh) -{ - /* create a hash state */ - XXH64_state_t* const state = XXH64_createState(); - if (state==NULL) abort(); - - size_t const bufferSize = SOME_SIZE; - void* const buffer = malloc(bufferSize); - if (buffer==NULL) abort(); - - /* Initialize state with selected seed */ - XXH64_hash_t const seed = 0; /* or any other value */ - if (XXH64_reset(state, seed) == XXH_ERROR) abort(); - - /* Feed the state with input data, any size, any number of times */ - (...) - while ( /* some data left */ ) { - size_t const length = get_more_data(buffer, bufferSize, fh); - if (XXH64_update(state, buffer, length) == XXH_ERROR) abort(); - (...) - } - (...) - - /* Produce the final hash value */ - XXH64_hash_t const hash = XXH64_digest(state); - - /* State could be re-used; but in this example, it is simply freed */ - free(buffer); - XXH64_freeState(state); - - return hash; -} -``` - - -### License - -The library files `xxhash.c` and `xxhash.h` are BSD licensed. -The utility `xxhsum` is GPL licensed. - - -### Other programming languages - -Beyond the C reference version, -xxHash is also available from many different programming languages, -thanks to great contributors. -They are [listed here](http://www.xxhash.com/#other-languages). - - -### Packaging status - -Many distributions bundle a package manager -which allows easy xxhash installation as both a `libxxhash` library -and `xxhsum` command line interface. - -[![Packaging status](https://repology.org/badge/vertical-allrepos/xxhash.svg)](https://repology.org/project/xxhash/versions) - - -### Special Thanks - -- Takayuki Matsuoka, aka @t-mat, for creating `xxhsum -c` and great support during early xxh releases -- Mathias Westerdahl, aka @JCash, for introducing the first version of `XXH64` -- Devin Hussey, aka @easyaspi314, for incredible low-level optimizations on `XXH3` and `XXH128` diff --git a/third_party/xxhash/SECURITY.md b/third_party/xxhash/SECURITY.md deleted file mode 100644 index 2a8b4c8e..00000000 --- a/third_party/xxhash/SECURITY.md +++ /dev/null @@ -1,13 +0,0 @@ -# Security Policy - -## Supported Versions - -Security updates are applied only to the latest release. - -## Reporting a Vulnerability - -If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released. - -Please disclose it at [security advisory](https://github.com/Cyan4973/xxHash/security/advisories/new). - -This project is maintained by a team of volunteers on a reasonable-effort basis. As such, please give us at least 90 days to work on a fix before public exposure. diff --git a/third_party/xxhash/appveyor.yml b/third_party/xxhash/appveyor.yml deleted file mode 100644 index 7aef900f..00000000 --- a/third_party/xxhash/appveyor.yml +++ /dev/null @@ -1,115 +0,0 @@ -#---------------------------------# -# general configuration # -#---------------------------------# -version: 1.0.{build} -max_jobs: 2 - -#---------------------------------# -# environment configuration # -#---------------------------------# -clone_depth: 2 -environment: - matrix: - - COMPILER: "visual" - ARCH: "x64" - TEST_XXHSUM: "true" - - COMPILER: "visual" - ARCH: "Win32" - TEST_XXHSUM: "true" - - COMPILER: "visual" - ARCH: "Win32" - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 - TEST_XXHSUM: "true" - - COMPILER: "visual" - ARCH: "ARM" -# Below tests are now disabled due to redundancy. -# Their equivalent already runs correctly on Github Actions. -# - COMPILER: "visual" -# ARCH: "x64" -# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 -# TEST_XXHSUM: "true" -# - COMPILER: "visual" -# ARCH: "ARM64" -# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 -# # note: ARM64 is not available with Visual Studio 14 2015, which is default for Appveyor - -# The following tests were also flacky on Appveyor, for various reasons. -# - COMPILER: "gcc" -# PLATFORM: "mingw64" -# - COMPILER: "gcc" -# PLATFORM: "mingw32" -# - COMPILER: "gcc" -# PLATFORM: "clang" - -install: - - ECHO Installing %COMPILER% %PLATFORM% %ARCH% - - MKDIR bin - - if [%COMPILER%]==[gcc] SET PATH_ORIGINAL=%PATH% - - if [%COMPILER%]==[gcc] ( - SET "PATH_MINGW32=c:\MinGW\bin;c:\MinGW\usr\bin" && - SET "PATH_MINGW64=c:\msys64\mingw64\bin;c:\msys64\usr\bin" && - COPY C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe && - COPY C:\MinGW\bin\gcc.exe C:\MinGW\bin\cc.exe - ) - -#---------------------------------# -# build configuration # -#---------------------------------# -build_script: - - if [%PLATFORM%]==[mingw32] SET PATH=%PATH_MINGW32%;%PATH_ORIGINAL% - - if [%PLATFORM%]==[mingw64] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL% - - if [%PLATFORM%]==[clang] SET PATH=%PATH_MINGW64%;%PATH_ORIGINAL% - - ECHO *** - - ECHO Building %COMPILER% %PLATFORM% %ARCH% - - ECHO *** - - - if [%COMPILER%]==[gcc] ( - if [%PLATFORM%]==[clang] ( - clang -v - ) ELSE ( - gcc -v - ) - ) - - if [%COMPILER%]==[gcc] ( - echo ----- && - make -v && - echo ----- && - if not [%PLATFORM%]==[clang] ( - if [%PLATFORM%]==[mingw32] ( SET CPPFLAGS=-DPOOL_MT=0 ) && - make -B clean test MOREFLAGS=-Werror - ) ELSE ( - SET CXXFLAGS=--std=c++14 && - make -B clean test CC=clang CXX=clang++ MOREFLAGS="--target=x86_64-w64-mingw32 -Werror -Wno-pass-failed" NO_C90_TEST=true - ) && - make -C tests/bench - ) - # note 1: strict c90 tests with clang fail, due to (erroneous) presence on `inline` keyword in some included system file - # note 2: multi-threading code doesn't work with mingw32, disabled through POOL_MT=0 - # note 3: clang requires C++14 to compile sort because its own code contains c++14-only code - - - if [%COMPILER%]==[visual] ( - cd cmake_unofficial && - cmake . -DCMAKE_BUILD_TYPE=Release -A %ARCH% -DXXHASH_C_FLAGS="/WX" && - cmake --build . --config Release - ) - -#---------------------------------# -# tests configuration # -#---------------------------------# -test_script: - # note: can only run x86 and x64 binaries on Appveyor - # note: if %COMPILER%==gcc, xxhsum was already tested within `make test` - - if [%TEST_XXHSUM%]==[true] ( - ECHO *** && - ECHO Testing %COMPILER% %PLATFORM% %ARCH% && - ECHO *** && - cd Release && - xxhsum.exe -bi1 && - ECHO ------- xxhsum tested ------- - ) - - -#---------------------------------# -# artifacts configuration # -#---------------------------------# -# none yet diff --git a/third_party/xxhash/cli/.tipi/deps b/third_party/xxhash/cli/.tipi/deps deleted file mode 100644 index 653dbe10..00000000 --- a/third_party/xxhash/cli/.tipi/deps +++ /dev/null @@ -1,3 +0,0 @@ -{ - "Cyan4973/xxHash": { } -} \ No newline at end of file diff --git a/third_party/xxhash/cli/.tipi/opts b/third_party/xxhash/cli/.tipi/opts deleted file mode 100644 index e69de29b..00000000 diff --git a/third_party/xxhash/cli/COPYING b/third_party/xxhash/cli/COPYING deleted file mode 100644 index d159169d..00000000 --- a/third_party/xxhash/cli/COPYING +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/third_party/xxhash/cli/README.md b/third_party/xxhash/cli/README.md deleted file mode 100644 index a60a945f..00000000 --- a/third_party/xxhash/cli/README.md +++ /dev/null @@ -1,4 +0,0 @@ -This directory contains source code dedicated to the `xxhsum` command line utility, -which is a user program of `libxxhash`. - -Note that, in contrast with the library `libxxhash`, the command line utility `xxhsum` ships with GPLv2 license. diff --git a/third_party/xxhash/cli/xsum_arch.h b/third_party/xxhash/cli/xsum_arch.h deleted file mode 100644 index 17d332cb..00000000 --- a/third_party/xxhash/cli/xsum_arch.h +++ /dev/null @@ -1,159 +0,0 @@ -/* - * xxhsum - Command line interface for xxhash algorithms - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -/* - * Checks for predefined macros by the compiler to try and get both the arch - * and the compiler version. - */ -#ifndef XSUM_ARCH_H -#define XSUM_ARCH_H - -#include "xsum_config.h" - -#define XSUM_LIB_VERSION XXH_VERSION_MAJOR.XXH_VERSION_MINOR.XXH_VERSION_RELEASE -#define XSUM_QUOTE(str) #str -#define XSUM_EXPAND_AND_QUOTE(str) XSUM_QUOTE(str) -#define XSUM_PROGRAM_VERSION XSUM_EXPAND_AND_QUOTE(XSUM_LIB_VERSION) - - -/* Show compiler versions in WELCOME_MESSAGE. XSUM_CC_VERSION_FMT will return the printf specifiers, - * and VERSION will contain the comma separated list of arguments to the XSUM_CC_VERSION_FMT string. */ -#if defined(__clang_version__) -/* Clang does its own thing. */ -# ifdef __apple_build_version__ -# define XSUM_CC_VERSION_FMT "Apple Clang %s" -# else -# define XSUM_CC_VERSION_FMT "Clang %s" -# endif -# define XSUM_CC_VERSION __clang_version__ -#elif defined(__VERSION__) -/* GCC and ICC */ -# define XSUM_CC_VERSION_FMT "%s" -# ifdef __INTEL_COMPILER /* icc adds its prefix */ -# define XSUM_CC_VERSION __VERSION__ -# else /* assume GCC */ -# define XSUM_CC_VERSION "GCC " __VERSION__ -# endif -#elif defined(_MSC_FULL_VER) && defined(_MSC_BUILD) -/* - * MSVC - * "For example, if the version number of the Visual C++ compiler is - * 15.00.20706.01, the _MSC_FULL_VER macro evaluates to 150020706." - * - * https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2017 - */ -# define XSUM_CC_VERSION_FMT "MSVC %02i.%02i.%05i.%02i" -# define XSUM_CC_VERSION _MSC_FULL_VER / 10000000 % 100, _MSC_FULL_VER / 100000 % 100, _MSC_FULL_VER % 100000, _MSC_BUILD -#elif defined(_MSC_VER) /* old MSVC */ -# define XSUM_CC_VERSION_FMT "MSVC %02i.%02i" -# define XSUM_CC_VERSION _MSC_VER / 100, _MSC_VER % 100 -#elif defined(__TINYC__) -/* tcc stores its version in the __TINYC__ macro. */ -# define XSUM_CC_VERSION_FMT "tcc %i.%i.%i" -# define XSUM_CC_VERSION __TINYC__ / 10000 % 100, __TINYC__ / 100 % 100, __TINYC__ % 100 -#else -# define XSUM_CC_VERSION_FMT "%s" -# define XSUM_CC_VERSION "unknown compiler" -#endif - -/* makes the next part easier */ -#if (defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64)) && !defined(_M_ARM64EC) -# define XSUM_ARCH_X64 1 -# define XSUM_ARCH_X86 "x86_64" -#elif defined(__i386__) || defined(_M_IX86) || defined(_M_IX86_FP) -# define XSUM_ARCH_X86 "i386" -#endif - -/* Try to detect the architecture. */ -#if defined(XSUM_ARCH_X86) -# if defined(XXHSUM_DISPATCH) -# define XSUM_ARCH XSUM_ARCH_X86 " autoVec" -# elif defined(__AVX512F__) -# define XSUM_ARCH XSUM_ARCH_X86 " + AVX512" -# elif defined(__AVX2__) -# define XSUM_ARCH XSUM_ARCH_X86 " + AVX2" -# elif defined(__AVX__) -# define XSUM_ARCH XSUM_ARCH_X86 " + AVX" -# elif defined(_M_X64) || defined(_M_AMD64) || defined(__x86_64__) \ - || defined(__SSE2__) || (defined(_M_IX86_FP) && _M_IX86_FP == 2) -# define XSUM_ARCH XSUM_ARCH_X86 " + SSE2" -# else -# define XSUM_ARCH XSUM_ARCH_X86 -# endif -#elif defined(__aarch64__) || defined(__arm64__) || defined(_M_ARM64) || defined(_M_ARM64EC) -# define XSUM_ARCH "aarch64 + NEON" -#elif defined(__arm__) || defined(__thumb__) || defined(__thumb2__) || defined(_M_ARM) -/* ARM has a lot of different features that can change xxHash significantly. */ -# ifdef __ARM_ARCH -# define XSUM_ARCH_ARM_VER XSUM_EXPAND_AND_QUOTE(__ARM_ARCH) -# else -# define XSUM_ARCH_ARM_VER XSUM_EXPAND_AND_QUOTE(_M_ARM) -# endif -# if defined(_M_ARM) /* windows arm is always thumb-2 */ \ - || defined(__thumb2__) || (defined(__thumb__) && (__thumb__ == 2 || __ARM_ARCH >= 7)) -# define XSUM_ARCH_THUMB " Thumb-2" -# elif defined(__thumb__) -# define XSUM_ARCH_THUMB " Thumb-1" -# else -# define XSUM_ARCH_THUMB "" -# endif -/* ARMv7 has unaligned by default */ -# if defined(__ARM_FEATURE_UNALIGNED) || __ARM_ARCH >= 7 || defined(_M_ARM) -# define XSUM_ARCH_UNALIGNED " + unaligned" -# else -# define XSUM_ARCH_UNALIGNED "" -# endif -# if defined(__ARM_NEON) || defined(__ARM_NEON__) || defined(_M_ARM) -# define XSUM_ARCH_NEON " + NEON" -# else -# define XSUM_ARCH_NEON "" -# endif -# define XSUM_ARCH "ARMv" XSUM_ARCH_ARM_VER XSUM_ARCH_THUMB XSUM_ARCH_NEON XSUM_ARCH_UNALIGNED -#elif defined(__powerpc64__) || defined(__ppc64__) || defined(__PPC64__) -# if defined(__GNUC__) && defined(__POWER9_VECTOR__) -# define XSUM_ARCH "ppc64 + POWER9 vector" -# elif defined(__GNUC__) && defined(__POWER8_VECTOR__) -# define XSUM_ARCH "ppc64 + POWER8 vector" -# else -# define XSUM_ARCH "ppc64" -# endif -#elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) -# define XSUM_ARCH "ppc" -#elif defined(__AVR) -# define XSUM_ARCH "AVR" -#elif defined(__mips64) -# define XSUM_ARCH "mips64" -#elif defined(__mips) -# define XSUM_ARCH "mips" -#elif defined(__s390x__) -# define XSUM_ARCH "s390x" -#elif defined(__s390__) -# define XSUM_ARCH "s390" -#else -# define XSUM_ARCH "unknown" -#endif - - -#endif /* XSUM_ARCH_H */ diff --git a/third_party/xxhash/cli/xsum_bench.c b/third_party/xxhash/cli/xsum_bench.c deleted file mode 100644 index dfea66b7..00000000 --- a/third_party/xxhash/cli/xsum_bench.c +++ /dev/null @@ -1,448 +0,0 @@ -/* - * xsum_bench - Benchmark functions for xxhsum - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -#include "xsum_output.h" /* XSUM_logLevel */ -#include "xsum_bench.h" -#include "xsum_sanity_check.h" /* XSUM_fillTestBuffer */ -#include "xsum_os_specific.h" /* XSUM_getFileSize */ -#ifndef XXH_STATIC_LINKING_ONLY -# define XXH_STATIC_LINKING_ONLY -#endif -#include "../xxhash.h" -#ifdef XXHSUM_DISPATCH -# include "../xxh_x86dispatch.h" /* activate _dispatch() redirectors */ -#endif - -#include /* malloc, free */ -#include -#include /* strlen, memcpy */ -#include /* clock_t, clock, CLOCKS_PER_SEC */ -#include /* errno */ - -#define TIMELOOP_S 1 -#define TIMELOOP (TIMELOOP_S * CLOCKS_PER_SEC) /* target timing per iteration */ -#define TIMELOOP_MIN (TIMELOOP / 2) /* minimum timing to validate a result */ - -/* Each benchmark iteration attempts to match TIMELOOP (1 second). - * The nb of loops is adjusted at each iteration to reach that target. - * However, initially, there is no information, so 1st iteration blindly targets an arbitrary speed. - * If it's too small, it will be adjusted, and a new attempt will be made. - * But if it's too large, the first iteration can be very long, - * before being fixed at second attempt. - * So prefer starting with small speed targets. - * XXH_1ST_SPEED_TARGET is defined in MB/s */ -#ifndef XXH_1ST_SPEED_TARGET -# define XXH_1ST_SPEED_TARGET 10 -#endif - -#define MAX_MEM (2 GB - 64 MB) - -static clock_t XSUM_clockSpan( clock_t start ) -{ - return clock() - start; /* works even if overflow; Typical max span ~ 30 mn */ -} - -static size_t XSUM_findMaxMem(XSUM_U64 requiredMem) -{ - size_t const step = 64 MB; - void* testmem = NULL; - - requiredMem = (((requiredMem >> 26) + 1) << 26); - requiredMem += 2*step; - if (requiredMem > MAX_MEM) requiredMem = MAX_MEM; - - while (!testmem) { - if (requiredMem > step) requiredMem -= step; - else requiredMem >>= 1; - testmem = malloc ((size_t)requiredMem); - } - free (testmem); - - /* keep some space available */ - if (requiredMem > step) requiredMem -= step; - else requiredMem >>= 1; - - return (size_t)requiredMem; -} - -/* - * A secret buffer used for benchmarking XXH3's withSecret variants. - * - * In order for the bench to be realistic, the secret buffer would need to be - * pre-generated. - * - * Adding a pointer to the parameter list would be messy. - */ -static XSUM_U8 g_benchSecretBuf[XXH3_SECRET_SIZE_MIN]; - -/* - * Wrappers for the benchmark. - * - * If you would like to add other hashes to the bench, create a wrapper and add - * it to the g_hashesToBench table. It will automatically be added. - */ -typedef XSUM_U32 (*hashFunction)(const void* buffer, size_t bufferSize, XSUM_U32 seed); - -static XSUM_U32 localXXH32(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - return XXH32(buffer, bufferSize, seed); -} -static XSUM_U32 localXXH32_stream(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - XXH32_state_t state; - (void)seed; - XXH32_reset(&state, seed); - XXH32_update(&state, buffer, bufferSize); - return (XSUM_U32)XXH32_digest(&state); -} -static XSUM_U32 localXXH64(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - return (XSUM_U32)XXH64(buffer, bufferSize, seed); -} -static XSUM_U32 localXXH64_stream(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - XXH64_state_t state; - (void)seed; - XXH64_reset(&state, seed); - XXH64_update(&state, buffer, bufferSize); - return (XSUM_U32)XXH64_digest(&state); -} -static XSUM_U32 localXXH3_64b(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - (void)seed; - return (XSUM_U32)XXH3_64bits(buffer, bufferSize); -} -static XSUM_U32 localXXH3_64b_seeded(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - return (XSUM_U32)XXH3_64bits_withSeed(buffer, bufferSize, seed); -} -static XSUM_U32 localXXH3_64b_secret(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - (void)seed; - return (XSUM_U32)XXH3_64bits_withSecret(buffer, bufferSize, g_benchSecretBuf, sizeof(g_benchSecretBuf)); -} -static XSUM_U32 localXXH3_128b(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - (void)seed; - return (XSUM_U32)(XXH3_128bits(buffer, bufferSize).low64); -} -static XSUM_U32 localXXH3_128b_seeded(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - return (XSUM_U32)(XXH3_128bits_withSeed(buffer, bufferSize, seed).low64); -} -static XSUM_U32 localXXH3_128b_secret(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - (void)seed; - return (XSUM_U32)(XXH3_128bits_withSecret(buffer, bufferSize, g_benchSecretBuf, sizeof(g_benchSecretBuf)).low64); -} -static XSUM_U32 localXXH3_stream(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - XXH3_state_t state; - (void)seed; - XXH3_64bits_reset(&state); - XXH3_64bits_update(&state, buffer, bufferSize); - return (XSUM_U32)XXH3_64bits_digest(&state); -} -static XSUM_U32 localXXH3_stream_seeded(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - XXH3_state_t state; - XXH3_INITSTATE(&state); - XXH3_64bits_reset_withSeed(&state, (XXH64_hash_t)seed); - XXH3_64bits_update(&state, buffer, bufferSize); - return (XSUM_U32)XXH3_64bits_digest(&state); -} -static XSUM_U32 localXXH128_stream(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - XXH3_state_t state; - (void)seed; - XXH3_128bits_reset(&state); - XXH3_128bits_update(&state, buffer, bufferSize); - return (XSUM_U32)(XXH3_128bits_digest(&state).low64); -} -static XSUM_U32 localXXH128_stream_seeded(const void* buffer, size_t bufferSize, XSUM_U32 seed) -{ - XXH3_state_t state; - XXH3_INITSTATE(&state); - XXH3_128bits_reset_withSeed(&state, (XXH64_hash_t)seed); - XXH3_128bits_update(&state, buffer, bufferSize); - return (XSUM_U32)(XXH3_128bits_digest(&state).low64); -} - - -typedef struct { - const char* name; - hashFunction func; -} hashInfo; - -static const hashInfo g_hashesToBench[] = { - { "XXH32", &localXXH32 }, - { "XXH64", &localXXH64 }, - { "XXH3_64b", &localXXH3_64b }, - { "XXH3_64b w/seed", &localXXH3_64b_seeded }, - { "XXH3_64b w/secret", &localXXH3_64b_secret }, - { "XXH128", &localXXH3_128b }, - { "XXH128 w/seed", &localXXH3_128b_seeded }, - { "XXH128 w/secret", &localXXH3_128b_secret }, - { "XXH32_stream", &localXXH32_stream }, - { "XXH64_stream", &localXXH64_stream }, - { "XXH3_stream", &localXXH3_stream }, - { "XXH3_stream w/seed",&localXXH3_stream_seeded }, - { "XXH128_stream", &localXXH128_stream }, - { "XXH128_stream w/seed",&localXXH128_stream_seeded }, -}; -#define NB_HASHFUNC (sizeof(g_hashesToBench) / sizeof(*g_hashesToBench)) - -#define NB_TESTFUNC (1 + 2 * NB_HASHFUNC) -int const g_nbTestFunctions = NB_TESTFUNC; -char g_testIDs[NB_TESTFUNC] = { 0 }; -const char k_testIDs_default[NB_TESTFUNC] = { 0, - 1 /*XXH32*/, 0, - 1 /*XXH64*/, 0, - 1 /*XXH3*/, 0, 0, 0, 0, 0, - 1 /*XXH128*/ }; - -int g_nbIterations = NBLOOPS_DEFAULT; -#define HASHNAME_MAX 29 -static void XSUM_benchHash(hashFunction h, const char* hName, int testID, - const void* buffer, size_t bufferSize) -{ - XSUM_U32 nbh_perIteration = (XSUM_U32)((XXH_1ST_SPEED_TARGET MB) / (bufferSize+1)) + 1; - int iterationNb, nbIterations = g_nbIterations + !g_nbIterations /* min 1 */; - double fastestH = 100000000.; - assert(HASHNAME_MAX > 2); - XSUM_logVerbose(2, "\r%80s\r", ""); /* Clean display line */ - - for (iterationNb = 1; iterationNb <= nbIterations; iterationNb++) { - XSUM_U32 r=0; - clock_t cStart; - - XSUM_logVerbose(2, "%2i-%-*.*s : %10u ->\r", - iterationNb, - HASHNAME_MAX, HASHNAME_MAX, hName, - (unsigned)bufferSize); - cStart = clock(); - while (clock() == cStart); /* starts clock() at its exact beginning */ - cStart = clock(); - - { XSUM_U32 u; - for (u=0; u (double)(4000U<<20)) nbh_perSecond = (double)(4000U<<20); /* avoid overflow */ - nbh_perIteration = (XSUM_U32)nbh_perSecond; - } - /* g_nbIterations==0 => quick evaluation, no claim of accuracy */ - if (g_nbIterations>0) { - iterationNb--; /* new round for a more accurate speed evaluation */ - continue; - } - } - if (ticksPerHash < fastestH) fastestH = ticksPerHash; - if (fastestH>0.) { /* avoid div by zero */ - XSUM_logVerbose(2, "%2i-%-*.*s : %10u -> %8.0f it/s (%7.1f MB/s) \r", - iterationNb, - HASHNAME_MAX, HASHNAME_MAX, hName, - (unsigned)bufferSize, - (double)1 / fastestH, - ((double)bufferSize / (1 MB)) / fastestH); - } } - { double nbh_perSecond = (1 / fastestH) + 1; - if (nbh_perSecond > (double)(4000U<<20)) nbh_perSecond = (double)(4000U<<20); /* avoid overflow */ - nbh_perIteration = (XSUM_U32)nbh_perSecond; - } - } - XSUM_logVerbose(1, "%2i#%-*.*s : %10u -> %8.0f it/s (%7.1f MB/s) \n", - testID, - HASHNAME_MAX, HASHNAME_MAX, hName, - (unsigned)bufferSize, - (double)1 / fastestH, - ((double)bufferSize / (1 MB)) / fastestH); - if (XSUM_logLevel<1) - XSUM_logVerbose(0, "%u, ", (unsigned)((double)1 / fastestH)); -} - - -/* - * Allocates a string containing s1 and s2 concatenated. Acts like strdup. - * The result must be freed. - */ -static char* XSUM_strcatDup(const char* s1, const char* s2) -{ - assert(s1 != NULL); - assert(s2 != NULL); - { size_t len1 = strlen(s1); - size_t len2 = strlen(s2); - char* buf = (char*)malloc(len1 + len2 + 1); - if (buf != NULL) { - /* strcpy(buf, s1) */ - memcpy(buf, s1, len1); - /* strcat(buf, s2) */ - memcpy(buf + len1, s2, len2 + 1); - } - return buf; - } -} - - -/*! - * XSUM_benchMem(): - * buffer: Must be 16-byte aligned. - * The real allocated size of buffer is supposed to be >= (bufferSize+3). - * returns: 0 on success, 1 if error (invalid mode selected) - */ -static void XSUM_benchMem(const void* buffer, size_t bufferSize) -{ - assert((((size_t)buffer) & 15) == 0); /* ensure alignment */ - XSUM_fillTestBuffer(g_benchSecretBuf, sizeof(g_benchSecretBuf)); - { int i; - for (i = 1; i < (int)NB_TESTFUNC; i++) { - int const hashFuncID = (i-1) / 2; - assert(g_hashesToBench[hashFuncID].name != NULL); - if (g_testIDs[i] == 0) continue; - /* aligned */ - if ((i % 2) == 1) { - XSUM_benchHash(g_hashesToBench[hashFuncID].func, g_hashesToBench[hashFuncID].name, i, buffer, bufferSize); - } - /* unaligned */ - if ((i % 2) == 0) { - /* Append "unaligned". */ - char* const hashNameBuf = XSUM_strcatDup(g_hashesToBench[hashFuncID].name, " unaligned"); - assert(hashNameBuf != NULL); - XSUM_benchHash(g_hashesToBench[hashFuncID].func, hashNameBuf, i, ((const char*)buffer)+3, bufferSize); - free(hashNameBuf); - } - } } -} - -static size_t XSUM_selectBenchedSize(const char* fileName) -{ - XSUM_U64 const inFileSize = XSUM_getFileSize(fileName); - size_t benchedSize = (size_t) XSUM_findMaxMem(inFileSize); - if ((XSUM_U64)benchedSize > inFileSize) benchedSize = (size_t)inFileSize; - if (benchedSize < inFileSize) { - XSUM_log("Not enough memory for '%s' full size; testing %i MB only...\n", fileName, (int)(benchedSize>>20)); - } - return benchedSize; -} - - -int XSUM_benchFiles(const char* fileNamesTable[], int nbFiles) -{ - int fileIdx; - for (fileIdx=0; fileIdx 10 KB) { - XSUM_logVerbose(1, "%u KB", (unsigned)(keySize >> 10)); - } else { - XSUM_logVerbose(1, "%u bytes", (unsigned)keySize); - } - XSUM_logVerbose(1, "... \n"); - - XSUM_benchMem(alignedBuffer, keySize); - free(buffer); - } - return 0; -} diff --git a/third_party/xxhash/cli/xsum_bench.h b/third_party/xxhash/cli/xsum_bench.h deleted file mode 100644 index 6faaec8c..00000000 --- a/third_party/xxhash/cli/xsum_bench.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * xsum_bench - Benchmark functions for xxhsum - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -#ifndef XSUM_BENCH_H -#define XSUM_BENCH_H - -#include /* size_t */ - -#define NBLOOPS_DEFAULT 3 /* Default number of benchmark iterations */ - -extern int const g_nbTestFunctions; -extern char g_testIDs[]; /* size : g_nbTestFunctions */ -extern const char k_testIDs_default[]; -extern int g_nbIterations; - -int XSUM_benchInternal(size_t keySize); -int XSUM_benchFiles(const char* fileNamesTable[], int nbFiles); - - -#ifdef __cplusplus -extern "C" { -#endif - - -#ifdef __cplusplus -} -#endif - -#endif /* XSUM_BENCH_H */ diff --git a/third_party/xxhash/cli/xsum_config.h b/third_party/xxhash/cli/xsum_config.h deleted file mode 100644 index eec5528d..00000000 --- a/third_party/xxhash/cli/xsum_config.h +++ /dev/null @@ -1,214 +0,0 @@ -/* - * xxhsum - Command line interface for xxhash algorithms - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -/* - * This contains various configuration parameters and feature detection for - * xxhsum. - * - * Similar to config.h in Autotools, this should be the first header included. - */ - -#ifndef XSUM_CONFIG_H -#define XSUM_CONFIG_H - - -/* ************************************ - * Compiler Options - **************************************/ -/* - * Disable Visual C's warnings when using the "insecure" CRT functions instead - * of the "secure" _s functions. - * - * These functions are not portable, and aren't necessary if you are using the - * original functions properly. - */ -#if defined(_MSC_VER) || defined(_WIN32) -# ifndef _CRT_SECURE_NO_WARNINGS -# define _CRT_SECURE_NO_WARNINGS -# endif -#endif - -/* Under Linux at least, pull in the *64 commands */ -#ifndef _LARGEFILE64_SOURCE -# define _LARGEFILE64_SOURCE -#endif -#ifndef _FILE_OFFSET_BITS -# define _FILE_OFFSET_BITS 64 -#endif - -/* - * So we can use __attribute__((__format__)) - */ -#ifdef __GNUC__ -# define XSUM_ATTRIBUTE(x) __attribute__(x) -#else -# define XSUM_ATTRIBUTE(x) -#endif - -#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)) /* UNIX-like OS */ \ - || defined(__midipix__) || defined(__VMS)) -# if (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || defined(_AIX) || defined(__hpux) /* POSIX.1-2001 (SUSv3) conformant */ \ - || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) /* BSD distros */ -# define XSUM_PLATFORM_POSIX_VERSION 200112L -# else -# if defined(__linux__) || defined(__linux) -# ifndef _POSIX_C_SOURCE -# define _POSIX_C_SOURCE 200112L /* use feature test macro */ -# endif -# endif -# include /* declares _POSIX_VERSION */ -# if defined(_POSIX_VERSION) /* POSIX compliant */ -# define XSUM_PLATFORM_POSIX_VERSION _POSIX_VERSION -# else -# define XSUM_PLATFORM_POSIX_VERSION 0 -# endif -# endif -#endif -#if !defined(XSUM_PLATFORM_POSIX_VERSION) -# define XSUM_PLATFORM_POSIX_VERSION -1 -#endif - -#if !defined(S_ISREG) -# define S_ISREG(x) (((x) & S_IFMT) == S_IFREG) -#endif - - -/* ************************************ - * Windows helpers - **************************************/ - -/* - * Whether to use the Windows UTF-16 APIs instead of the portable libc 8-bit - * ("ANSI") APIs. - * - * Windows is not UTF-8 clean by default, and the only way to access every file - * on the OS is to use UTF-16. - * - * Do note that xxhsum uses UTF-8 internally and only uses UTF-16 for command - * line arguments, console I/O, and opening files. - * - * Additionally, this guarantees all piped output is UTF-8. - */ -#if defined(XSUM_WIN32_USE_WCHAR) && !defined(_WIN32) -/* We use Windows APIs, only use this on Windows. */ -# undef XSUM_WIN32_USE_WCHAR -#endif - -#ifndef XSUM_WIN32_USE_WCHAR -# if defined(_WIN32) -# include -# if WCHAR_MAX == 0xFFFFU /* UTF-16 wchar_t */ -# define XSUM_WIN32_USE_WCHAR 1 -# else -# define XSUM_WIN32_USE_WCHAR 0 -# endif -# else -# define XSUM_WIN32_USE_WCHAR 0 -# endif -#endif - -#if !XSUM_WIN32_USE_WCHAR -/* - * It doesn't make sense to have one without the other. - * Due to XSUM_WIN32_USE_WCHAR being undef'd, this also handles - * non-WIN32 platforms. - */ -# undef XSUM_WIN32_USE_WMAIN -# define XSUM_WIN32_USE_WMAIN 0 -#else -/* - * Whether to use wmain() or main(). - * - * wmain() is preferred because we don't have to mess with internal hidden - * APIs. - * - * It always works on MSVC, but in MinGW, it only works on MinGW-w64 with the - * -municode flag. - * - * Therefore we have to use main() -- there is no better option. - */ -# ifndef XSUM_WIN32_USE_WMAIN -# if defined(_UNICODE) || defined(UNICODE) /* MinGW -municode */ \ - || defined(_MSC_VER) /* MSVC */ -# define XSUM_WIN32_USE_WMAIN 1 -# else -# define XSUM_WIN32_USE_WMAIN 0 -# endif -# endif -/* - * It is always good practice to define these to prevent accidental use of the - * ANSI APIs, even if the program primarily uses UTF-8. - */ -# ifndef _UNICODE -# define _UNICODE -# endif -# ifndef UNICODE -# define UNICODE -# endif -#endif /* XSUM_WIN32_USE_WCHAR */ - -#ifndef XSUM_API -# ifdef XXH_INLINE_ALL -# define XSUM_API static -# else -# define XSUM_API -# endif -#endif - -#ifndef XSUM_NO_TESTS -# define XSUM_NO_TESTS 0 -#endif - -/* *************************** - * Basic types - * ***************************/ - -#if defined(__cplusplus) /* C++ */ \ - || (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) /* C99 */ -# include - typedef uint8_t XSUM_U8; - typedef uint32_t XSUM_U32; - typedef uint64_t XSUM_U64; -# else -# include - typedef unsigned char XSUM_U8; -# if UINT_MAX == 0xFFFFFFFFUL - typedef unsigned int XSUM_U32; -# else - typedef unsigned long XSUM_U32; -# endif - typedef unsigned long long XSUM_U64; -#endif /* not C++/C99 */ - -/* *************************** - * Common constants - * ***************************/ - -#define KB *( 1<<10) -#define MB *( 1<<20) -#define GB *(1U<<30) - - -#endif /* XSUM_CONFIG_H */ diff --git a/third_party/xxhash/cli/xsum_os_specific.c b/third_party/xxhash/cli/xsum_os_specific.c deleted file mode 100644 index 7c52265d..00000000 --- a/third_party/xxhash/cli/xsum_os_specific.c +++ /dev/null @@ -1,483 +0,0 @@ -/* - * xxhsum - Command line interface for xxhash algorithms - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -#include "xsum_os_specific.h" /* XSUM_API */ -#include /* stat() / _stat64() */ - -/* - * This file contains all of the ugly boilerplate to make xxhsum work across - * platforms. - */ -#if defined(_MSC_VER) || XSUM_WIN32_USE_WCHAR - typedef struct __stat64 XSUM_stat_t; -# if defined(_MSC_VER) - typedef int mode_t; -# endif -#else - typedef struct stat XSUM_stat_t; -#endif - -#if (defined(__linux__) && (XSUM_PLATFORM_POSIX_VERSION >= 1)) \ - || (XSUM_PLATFORM_POSIX_VERSION >= 200112L) \ - || defined(__DJGPP__) \ - || defined(__MSYS__) \ - || defined(__HAIKU__) -# include /* isatty */ -# define XSUM_IS_CONSOLE(stdStream) isatty(fileno(stdStream)) -#elif defined(MSDOS) || defined(OS2) -# include /* _isatty */ -# define XSUM_IS_CONSOLE(stdStream) _isatty(_fileno(stdStream)) -#elif defined(WIN32) || defined(_WIN32) -# include /* _isatty */ -# include /* DeviceIoControl, HANDLE, FSCTL_SET_SPARSE */ -# include /* FILE */ -static __inline int XSUM_IS_CONSOLE(FILE* stdStream) -{ - DWORD dummy; - return _isatty(_fileno(stdStream)) && GetConsoleMode((HANDLE)_get_osfhandle(_fileno(stdStream)), &dummy); -} -#else -# define XSUM_IS_CONSOLE(stdStream) 0 -#endif - -#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(_WIN32) -# include /* _O_BINARY */ -# include /* _setmode, _fileno, _get_osfhandle */ -# if !defined(__DJGPP__) -# include /* DeviceIoControl, HANDLE, FSCTL_SET_SPARSE */ -# include /* FSCTL_SET_SPARSE */ -# define XSUM_SET_BINARY_MODE(file) { int const unused=_setmode(_fileno(file), _O_BINARY); (void)unused; } -# else -# define XSUM_SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) -# endif -#else -# define XSUM_SET_BINARY_MODE(file) ((void)file) -#endif - -XSUM_API int XSUM_isConsole(FILE* stream) -{ - return XSUM_IS_CONSOLE(stream); -} - -XSUM_API void XSUM_setBinaryMode(FILE* stream) -{ - XSUM_SET_BINARY_MODE(stream); -} - -#if !XSUM_WIN32_USE_WCHAR - -XSUM_API FILE* XSUM_fopen(const char* filename, const char* mode) -{ - return fopen(filename, mode); -} -XSUM_ATTRIBUTE((__format__(__printf__, 2, 0))) -XSUM_API int XSUM_vfprintf(FILE* stream, const char* format, va_list ap) -{ - return vfprintf(stream, format, ap); -} - -static int XSUM_stat(const char* infilename, XSUM_stat_t* statbuf) -{ -#if defined(_MSC_VER) - return _stat64(infilename, statbuf); -#else - return stat(infilename, statbuf); -#endif -} - -#ifndef XSUM_NO_MAIN -int main(int argc, const char* argv[]) -{ - return XSUM_main(argc, argv); -} -#endif - -/* Unicode helpers for Windows to make UTF-8 act as it should. */ -#else -# include -# include - -/***************************************************************************** - * Unicode conversion tools - *****************************************************************************/ - -/* - * Converts a UTF-8 string to UTF-16. Acts like strdup. The string must be freed afterwards. - * This version allows keeping the output length. - */ -static wchar_t* XSUM_widenString(const char* str, int* lenOut) -{ - int const len = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0); - if (lenOut != NULL) *lenOut = len; - if (len == 0) return NULL; - { wchar_t* buf = (wchar_t*)malloc((size_t)len * sizeof(wchar_t)); - if (buf != NULL) { - if (MultiByteToWideChar(CP_UTF8, 0, str, -1, buf, len) == 0) { - free(buf); - return NULL; - } } - return buf; - } -} - -/* - * Converts a UTF-16 string to UTF-8. Acts like strdup. The string must be freed afterwards. - * This version allows keeping the output length. - */ -static char* XSUM_narrowString(const wchar_t *str, int *lenOut) -{ - int len = WideCharToMultiByte(CP_UTF8, 0, str, -1, NULL, 0, NULL, NULL); - if (lenOut != NULL) *lenOut = len; - if (len == 0) return NULL; - { char* const buf = (char*)malloc((size_t)len * sizeof(char)); - if (buf != NULL) { - if (WideCharToMultiByte(CP_UTF8, 0, str, -1, buf, len, NULL, NULL) == 0) { - free(buf); - return NULL; - } } - return buf; - } -} - - - -/***************************************************************************** - * File helpers - *****************************************************************************/ -/* - * fopen wrapper that supports UTF-8 - * - * fopen will only accept ANSI filenames, which means that we can't open Unicode filenames. - * - * In order to open a Unicode filename, we need to convert filenames to UTF-16 and use _wfopen. - */ -XSUM_API FILE* XSUM_fopen(const char* filename, const char* mode) -{ - FILE* f = NULL; - wchar_t* const wide_filename = XSUM_widenString(filename, NULL); - if (wide_filename != NULL) { - wchar_t* const wide_mode = XSUM_widenString(mode, NULL); - if (wide_mode != NULL) { - f = _wfopen(wide_filename, wide_mode); - free(wide_mode); - } - free(wide_filename); - } - return f; -} - -/* - * stat() wrapper which supports UTF-8 filenames. - */ -static int XSUM_stat(const char* infilename, XSUM_stat_t* statbuf) -{ - int r = -1; - wchar_t* const wide_filename = XSUM_widenString(infilename, NULL); - if (wide_filename != NULL) { - r = _wstat64(wide_filename, statbuf); - free(wide_filename); - } - return r; -} - -/* - * In case it isn't available, this is what MSVC 2019 defines in stdarg.h. - */ -#if defined(_MSC_VER) && !defined(__clang__) && !defined(va_copy) -# define XSUM_va_copy(destination, source) ((destination) = (source)) -#else -# define XSUM_va_copy(destination, source) va_copy(destination, source) -#endif - -/* - * vasprintf for Windows. - */ -XSUM_ATTRIBUTE((__format__(__printf__, 2, 0))) -static int XSUM_vasprintf(char** strp, const char* format, va_list ap) -{ - int size; - va_list copy; - /* - * To be safe, make a va_copy. - * - * Note that Microsoft doesn't use va_copy in its sample code: - * https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/vsprintf-vsprintf-l-vswprintf-vswprintf-l-vswprintf-l?view=vs-2019 - */ - XSUM_va_copy(copy, ap); - /* Calculate how many characters we need */ - size = _vscprintf(format, ap); - va_end(copy); - - if (size < 0) { - *strp = NULL; - return size; - } else { - int ret; - *strp = (char*) malloc((size_t)size + 1); - if (*strp == NULL) { - return -1; - } - /* vsprintf into the new buffer */ - ret = vsprintf(*strp, format, ap); - if (ret < 0) { - free(*strp); - *strp = NULL; - } - return ret; - } -} - -/* - * fprintf wrapper that supports UTF-8. - * - * fprintf doesn't properly handle Unicode on Windows. - * - * Additionally, it is codepage sensitive on console and may crash the program. - * - * Instead, we use vsnprintf, and either print with fwrite or convert to UTF-16 - * for console output and use the codepage-independent WriteConsoleW. - * - * Credit to t-mat: https://github.com/t-mat/xxHash/commit/5691423 - */ -XSUM_ATTRIBUTE((__format__(__printf__, 2, 0))) -XSUM_API int XSUM_vfprintf(FILE *stream, const char *format, va_list ap) -{ - int result; - char* u8_str = NULL; - - /* - * Generate the UTF-8 output string with vasprintf. - */ - result = XSUM_vasprintf(&u8_str, format, ap); - - if (result >= 0) { - const size_t nchar = (size_t)result + 1; - - /* - * Check if we are outputting to a console. Don't use XSUM_isConsole - * directly -- we don't need to call _get_osfhandle twice. - */ - int fileNb = _fileno(stream); - intptr_t handle_raw = _get_osfhandle(fileNb); - HANDLE handle = (HANDLE)handle_raw; - DWORD dwTemp; - - if (handle_raw < 0) { - result = -1; - } else if (_isatty(fileNb) && GetConsoleMode(handle, &dwTemp)) { - /* - * Convert to UTF-16 and output with WriteConsoleW. - * - * This is codepage independent and works on Windows XP's default - * msvcrt.dll. - */ - int len; - wchar_t* const u16_buf = XSUM_widenString(u8_str, &len); - if (u16_buf == NULL) { - result = -1; - } else { - if (WriteConsoleW(handle, u16_buf, (DWORD)len - 1, &dwTemp, NULL)) { - result = (int)dwTemp; - } else { - result = -1; - } - free(u16_buf); - } - } else { - /* fwrite the UTF-8 string if we are printing to a file */ - result = (int)fwrite(u8_str, 1, nchar - 1, stream); - if (result == 0) { - result = -1; - } - } - free(u8_str); - } - return result; -} - -#ifndef XSUM_NO_MAIN -/***************************************************************************** - * Command Line argument parsing - *****************************************************************************/ - -/* Converts a UTF-16 argv to UTF-8. */ -static char** XSUM_convertArgv(int argc, wchar_t* utf16_argv[]) -{ - char** const utf8_argv = (char**)malloc((size_t)(argc + 1) * sizeof(char*)); - if (utf8_argv != NULL) { - int i; - for (i = 0; i < argc; i++) { - utf8_argv[i] = XSUM_narrowString(utf16_argv[i], NULL); - if (utf8_argv[i] == NULL) { - /* Out of memory, whoops. */ - while (i-- > 0) { - free(utf8_argv[i]); - } - free(utf8_argv); - return NULL; - } - } - utf8_argv[argc] = NULL; - } - return utf8_argv; -} -/* Frees arguments returned by XSUM_convertArgv */ -static void XSUM_freeArgv(int argc, char** argv) -{ - int i; - if (argv == NULL) { - return; - } - for (i = 0; i < argc; i++) { - free(argv[i]); - } - free(argv); -} - -static int XSUM_wmain(int argc, wchar_t* utf16_argv[]) -{ - /* Convert the UTF-16 arguments to UTF-8. */ - char** utf8_argv = XSUM_convertArgv(argc, utf16_argv); - - if (utf8_argv == NULL) { - /* An unfortunate but incredibly unlikely error. */ - fprintf(stderr, "xxhsum: error converting command line arguments!\n"); - abort(); - } else { - int ret; - - /* - * MinGW's terminal uses full block buffering for stderr. - * - * This is nonstandard behavior and causes text to not display until - * the buffer fills. - * - * `setvbuf()` can easily correct this to make text display instantly. - */ - setvbuf(stderr, NULL, _IONBF, 0); - - /* Call our real main function */ - ret = XSUM_main(argc, (void*)utf8_argv); - - /* Cleanup */ - XSUM_freeArgv(argc, utf8_argv); - return ret; - } -} - -#if XSUM_WIN32_USE_WMAIN - -/* - * The preferred method of obtaining the real UTF-16 arguments. Always works - * on MSVC, sometimes works on MinGW-w64 depending on the compiler flags. - */ -#ifdef __cplusplus -extern "C" -#endif -int __cdecl wmain(int argc, wchar_t* utf16_argv[]) -{ - return XSUM_wmain(argc, utf16_argv); -} -#else /* !XSUM_WIN32_USE_WMAIN */ - -/* - * Wrap `XSUM_wmain()` using `main()` and `__wgetmainargs()` on MinGW without - * Unicode support. - * - * `__wgetmainargs()` is used in the CRT startup to retrieve the arguments for - * `wmain()`, so we use it on MinGW to emulate `wmain()`. - * - * It is an internal function and not declared in any public headers, so we - * have to declare it manually. - * - * An alternative that doesn't mess with internal APIs is `GetCommandLineW()` - * with `CommandLineToArgvW()`, but the former doesn't expand wildcards and the - * latter requires linking to Shell32.dll and its numerous dependencies. - * - * This method keeps our dependencies to kernel32.dll and the CRT. - * - * https://docs.microsoft.com/en-us/cpp/c-runtime-library/getmainargs-wgetmainargs?view=vs-2019 - */ -typedef struct { - int newmode; -} _startupinfo; - -#ifdef __cplusplus -extern "C" -#endif -int __cdecl __wgetmainargs( - int* Argc, - wchar_t*** Argv, - wchar_t*** Env, - int DoWildCard, - _startupinfo* StartInfo -); - -int main(int ansi_argc, const char* ansi_argv[]) -{ - int utf16_argc; - wchar_t** utf16_argv; - wchar_t** utf16_envp; /* Unused but required */ - _startupinfo startinfo = {0}; /* 0 == don't change new mode */ - - /* Get wmain's UTF-16 arguments. Make sure we expand wildcards. */ - if (__wgetmainargs(&utf16_argc, &utf16_argv, &utf16_envp, 1, &startinfo) < 0) - /* In the very unlikely case of an error, use the ANSI arguments. */ - return XSUM_main(ansi_argc, ansi_argv); - - /* Call XSUM_wmain with our UTF-16 arguments */ - return XSUM_wmain(utf16_argc, utf16_argv); -} - -#endif /* !XSUM_WIN32_USE_WMAIN */ -#endif /* !XSUM_NO_MAIN */ -#endif /* XSUM_WIN32_USE_WCHAR */ - - -/* - * Determines whether the file at filename is a directory. - */ -XSUM_API int XSUM_isDirectory(const char* filename) -{ - XSUM_stat_t statbuf; - int r = XSUM_stat(filename, &statbuf); -#ifdef _MSC_VER - if (!r && (statbuf.st_mode & _S_IFDIR)) return 1; -#else - if (!r && S_ISDIR(statbuf.st_mode)) return 1; -#endif - return 0; -} - -/* - * Returns the filesize of the file at filename. - */ -XSUM_API XSUM_U64 XSUM_getFileSize(const char* filename) -{ - XSUM_stat_t statbuf; - int r = XSUM_stat(filename, &statbuf); - if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */ - return (XSUM_U64)statbuf.st_size; -} diff --git a/third_party/xxhash/cli/xsum_os_specific.h b/third_party/xxhash/cli/xsum_os_specific.h deleted file mode 100644 index e1e080a4..00000000 --- a/third_party/xxhash/cli/xsum_os_specific.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * xxhsum - Command line interface for xxhash algorithms - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -#ifndef XSUM_OS_SPECIFIC_H -#define XSUM_OS_SPECIFIC_H - -#include "xsum_config.h" -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Declared here to be implemented in user code. - * - * Functions like main(), but is passed UTF-8 arguments even on Windows. - */ -XSUM_API int XSUM_main(int argc, const char* argv[]); - -/* - * Returns whether stream is a console. - * - * Functionally equivalent to isatty(fileno(stream)). - */ -XSUM_API int XSUM_isConsole(FILE* stream); - -/* - * Sets stream to pure binary mode (a.k.a. no CRLF conversions). - */ -XSUM_API void XSUM_setBinaryMode(FILE* stream); - -/* - * Returns whether the file at filename is a directory. - */ -XSUM_API int XSUM_isDirectory(const char* filename); - -/* - * Returns the file size of the file at filename. - */ -XSUM_API XSUM_U64 XSUM_getFileSize(const char* filename); - -/* - * UTF-8 stdio wrappers primarily for Windows - */ - -/* - * fopen() wrapper. Accepts UTF-8 filenames on Windows. - * - * Specifically, on Windows, the arguments will be converted to UTF-16 - * and passed to _wfopen(). - */ -XSUM_API FILE* XSUM_fopen(const char* filename, const char* mode); - -/* - * vfprintf() wrapper which prints UTF-8 strings to Windows consoles - * if applicable. - */ -XSUM_ATTRIBUTE((__format__(__printf__, 2, 0))) -XSUM_API int XSUM_vfprintf(FILE* stream, const char* format, va_list ap); - -#ifdef __cplusplus -} -#endif - -#endif /* XSUM_OS_SPECIFIC_H */ diff --git a/third_party/xxhash/cli/xsum_output.c b/third_party/xxhash/cli/xsum_output.c deleted file mode 100644 index ee7002bd..00000000 --- a/third_party/xxhash/cli/xsum_output.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * xxhsum - Command line interface for xxhash algorithms - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -#include "xsum_output.h" -#include "xsum_os_specific.h" /* XSUM_API */ - -int XSUM_logLevel = 2; - -XSUM_ATTRIBUTE((__format__(__printf__, 1, 2))) -XSUM_API int XSUM_log(const char* format, ...) -{ - int ret; - va_list ap; - va_start(ap, format); - ret = XSUM_vfprintf(stderr, format, ap); - va_end(ap); - return ret; -} - - -XSUM_ATTRIBUTE((__format__(__printf__, 1, 2))) -XSUM_API int XSUM_output(const char* format, ...) -{ - int ret; - va_list ap; - va_start(ap, format); - ret = XSUM_vfprintf(stdout, format, ap); - va_end(ap); - return ret; -} - -XSUM_ATTRIBUTE((__format__(__printf__, 2, 3))) -XSUM_API int XSUM_logVerbose(int minLevel, const char* format, ...) -{ - if (XSUM_logLevel >= minLevel) { - int ret; - va_list ap; - va_start(ap, format); - ret = XSUM_vfprintf(stderr, format, ap); - va_end(ap); - return ret; - } - return 0; -} diff --git a/third_party/xxhash/cli/xsum_output.h b/third_party/xxhash/cli/xsum_output.h deleted file mode 100644 index 9a7926df..00000000 --- a/third_party/xxhash/cli/xsum_output.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * xxhsum - Command line interface for xxhash algorithms - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -#ifndef XSUM_OUTPUT_H -#define XSUM_OUTPUT_H - -#include "xsum_config.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * How verbose the output is. - */ -extern int XSUM_logLevel; - -/* - * Same as fprintf(stderr, format, ...) - */ -XSUM_ATTRIBUTE((__format__(__printf__, 1, 2))) -XSUM_API int XSUM_log(const char *format, ...); - -/* - * Like XSUM_log, but only outputs if XSUM_logLevel >= minLevel. - */ -XSUM_ATTRIBUTE((__format__(__printf__, 2, 3))) -XSUM_API int XSUM_logVerbose(int minLevel, const char *format, ...); - -/* - * Same as printf(format, ...) - */ -XSUM_ATTRIBUTE((__format__(__printf__, 1, 2))) -XSUM_API int XSUM_output(const char *format, ...); - -#ifdef __cplusplus -} -#endif - -#endif /* XSUM_OUTPUT_H */ diff --git a/third_party/xxhash/cli/xsum_sanity_check.c b/third_party/xxhash/cli/xsum_sanity_check.c deleted file mode 100644 index 624b93a4..00000000 --- a/third_party/xxhash/cli/xsum_sanity_check.c +++ /dev/null @@ -1,694 +0,0 @@ -/* - * xxhsum - Command line interface for xxhash algorithms - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -#include "xsum_sanity_check.h" -#include "xsum_output.h" /* XSUM_log */ -#ifndef XXH_STATIC_LINKING_ONLY -# define XXH_STATIC_LINKING_ONLY -#endif -#include "../xxhash.h" - -#include /* exit */ -#include -#include /* memcmp */ - -/* use #define to make them constant, required for initialization */ -#define PRIME32 2654435761U -#define PRIME64 11400714785074694797ULL - -/* - * Fills a test buffer with pseudorandom data. - * - * This is used in the sanity check - its values must not be changed. - */ -XSUM_API void XSUM_fillTestBuffer(XSUM_U8* buffer, size_t len) -{ - XSUM_U64 byteGen = PRIME32; - size_t i; - - assert(buffer != NULL); - - for (i=0; i>56); - byteGen *= PRIME64; - } -} - - - -/* ************************************************ - * Self-test: - * ensure results consistency across platforms - *********************************************** */ -#if XSUM_NO_TESTS -XSUM_API void XSUM_sanityCheck(void) -{ - XSUM_log("This version of xxhsum is not verified.\n"); -} -#else - -/* - * Test data vectors - */ -typedef struct { - XSUM_U32 len; - XSUM_U32 seed; - XSUM_U32 Nresult; -} XSUM_testdata32_t; - -typedef struct { - XSUM_U32 len; - XSUM_U64 seed; - XSUM_U64 Nresult; -} XSUM_testdata64_t; - -typedef struct { - XSUM_U32 len; - XSUM_U64 seed; - XXH128_hash_t Nresult; -} XSUM_testdata128_t; - -#define SECRET_SAMPLE_NBBYTES 5 -typedef struct { - XSUM_U32 seedLen; - XSUM_U32 secretLen; - XSUM_U8 byte[SECRET_SAMPLE_NBBYTES]; -} XSUM_testdata_sample_t; - -/* XXH32 */ -static const XSUM_testdata32_t XSUM_XXH32_testdata[] = { - { 0, 0, 0x02CC5D05U }, - { 0, PRIME32, 0x36B78AE7U }, - { 1, 0, 0xCF65B03EU }, - { 1, PRIME32, 0xB4545AA4U }, - { 14, 0, 0x1208E7E2U }, - { 14, PRIME32, 0x6AF1D1FEU }, - { 222, 0, 0x5BD11DBDU }, - { 222, PRIME32, 0x58803C5FU } -}; - -/* XXH64 */ -static const XSUM_testdata64_t XSUM_XXH64_testdata[] = { - { 0, 0, 0xEF46DB3751D8E999ULL }, - { 0, PRIME32, 0xAC75FDA2929B17EFULL }, - { 1, 0, 0xE934A84ADB052768ULL }, - { 1, PRIME32, 0x5014607643A9B4C3ULL }, - { 4, 0, 0x9136A0DCA57457EEULL }, - { 14, 0, 0x8282DCC4994E35C8ULL }, - { 14, PRIME32, 0xC3BD6BF63DEB6DF0ULL }, - { 222, 0, 0xB641AE8CB691C174ULL }, - { 222, PRIME32, 0x20CB8AB7AE10C14AULL } -}; -/* - * XXH3: - * Due to being a more complex hash function with specializations for certain - * lengths, a more extensive test is used for XXH3. - */ - -/* XXH3_64bits, seeded */ -static const XSUM_testdata64_t XSUM_XXH3_testdata[] = { - { 0, 0, 0x2D06800538D394C2ULL }, /* empty string */ - { 0, PRIME64, 0xA8A6B918B2F0364AULL }, - { 1, 0, 0xC44BDFF4074EECDBULL }, /* 1 - 3 */ - { 1, PRIME64, 0x032BE332DD766EF8ULL }, - { 6, 0, 0x27B56A84CD2D7325ULL }, /* 4 - 8 */ - { 6, PRIME64, 0x84589C116AB59AB9ULL }, - { 12, 0, 0xA713DAF0DFBB77E7ULL }, /* 9 - 16 */ - { 12, PRIME64, 0xE7303E1B2336DE0EULL }, - { 24, 0, 0xA3FE70BF9D3510EBULL }, /* 17 - 32 */ - { 24, PRIME64, 0x850E80FC35BDD690ULL }, - { 48, 0, 0x397DA259ECBA1F11ULL }, /* 33 - 64 */ - { 48, PRIME64, 0xADC2CBAA44ACC616ULL }, - { 80, 0, 0xBCDEFBBB2C47C90AULL }, /* 65 - 96 */ - { 80, PRIME64, 0xC6DD0CB699532E73ULL }, - { 195, 0, 0xCD94217EE362EC3AULL }, /* 129-240 */ - { 195, PRIME64, 0xBA68003D370CB3D9ULL }, - - { 403, 0, 0xCDEB804D65C6DEA4ULL }, /* one block, last stripe is overlapping */ - { 403, PRIME64, 0x6259F6ECFD6443FDULL }, - { 512, 0, 0x617E49599013CB6BULL }, /* one block, finishing at stripe boundary */ - { 512, PRIME64, 0x3CE457DE14C27708ULL }, - { 2048, 0, 0xDD59E2C3A5F038E0ULL }, /* 2 blocks, finishing at block boundary */ - { 2048, PRIME64, 0x66F81670669ABABCULL }, - { 2099, 0, 0xC6B9D9B3FC9AC765ULL }, /* 2 blocks + 1 partial block, to detect off-by-one scrambling issues, like #816 */ - { 2099, PRIME64, 0x184F316843663974ULL }, - { 2240, 0, 0x6E73A90539CF2948ULL }, /* 3 blocks, finishing at stripe boundary */ - { 2240, PRIME64, 0x757BA8487D1B5247ULL }, - { 2367, 0, 0xCB37AEB9E5D361EDULL }, /* 3 blocks, last stripe is overlapping */ - { 2367, PRIME64, 0xD2DB3415B942B42AULL } -}; -/* XXH3_64bits, custom secret */ -static const XSUM_testdata64_t XSUM_XXH3_withSecret_testdata[] = { - { 0, 0, 0x3559D64878C5C66CULL }, /* empty string */ - { 1, 0, 0x8A52451418B2DA4DULL }, /* 1 - 3 */ - { 6, 0, 0x82C90AB0519369ADULL }, /* 4 - 8 */ - { 12, 0, 0x14631E773B78EC57ULL }, /* 9 - 16 */ - { 24, 0, 0xCDD5542E4A9D9FE8ULL }, /* 17 - 32 */ - { 48, 0, 0x33ABD54D094B2534ULL }, /* 33 - 64 */ - { 80, 0, 0xE687BA1684965297ULL }, /* 65 - 96 */ - { 195, 0, 0xA057273F5EECFB20ULL }, /* 129-240 */ - - { 403, 0, 0x14546019124D43B8ULL }, /* one block, last stripe is overlapping */ - { 512, 0, 0x7564693DD526E28DULL }, /* one block, finishing at stripe boundary */ - { 2048, 0, 0xD32E975821D6519FULL }, /* >= 2 blodcks, at least one scrambling */ - { 2367, 0, 0x293FA8E5173BB5E7ULL }, /* >= 2 blocks, at least one scrambling, last stripe unaligned */ - - { 64*10*3, 0, 0x751D2EC54BC6038BULL } /* exactly 3 full blocks, not a multiple of 256 */ -}; -/* XXH3_128bits, seeded */ -static const XSUM_testdata128_t XSUM_XXH128_testdata[] = { - { 0, 0, { 0x6001C324468D497FULL, 0x99AA06D3014798D8ULL } }, /* empty string */ - { 0, PRIME32, { 0x5444F7869C671AB0ULL, 0x92220AE55E14AB50ULL } }, - { 1, 0, { 0xC44BDFF4074EECDBULL, 0xA6CD5E9392000F6AULL } }, /* 1 - 3 */ - { 1, PRIME32, { 0xB53D5557E7F76F8DULL, 0x89B99554BA22467CULL } }, - { 6, 0, { 0x3E7039BDDA43CFC6ULL, 0x082AFE0B8162D12AULL } }, /* 4 - 8 */ - { 6, PRIME32, { 0x269D8F70BE98856EULL, 0x5A865B5389ABD2B1ULL } }, - { 12, 0, { 0x061A192713F69AD9ULL, 0x6E3EFD8FC7802B18ULL } }, /* 9 - 16 */ - { 12, PRIME32, { 0x9BE9F9A67F3C7DFBULL, 0xD7E09D518A3405D3ULL } }, - { 24, 0, { 0x1E7044D28B1B901DULL, 0x0CE966E4678D3761ULL } }, /* 17 - 32 */ - { 24, PRIME32, { 0xD7304C54EBAD40A9ULL, 0x3162026714A6A243ULL } }, - { 48, 0, { 0xF942219AED80F67BULL, 0xA002AC4E5478227EULL } }, /* 33 - 64 */ - { 48, PRIME32, { 0x7BA3C3E453A1934EULL, 0x163ADDE36C072295ULL } }, - { 81, 0, { 0x5E8BAFB9F95FB803ULL, 0x4952F58181AB0042ULL } }, /* 65 - 96 */ - { 81, PRIME32, { 0x703FBB3D7A5F755CULL, 0x2724EC7ADC750FB6ULL } }, - { 222, 0, { 0xF1AEBD597CEC6B3AULL, 0x337E09641B948717ULL } }, /* 129-240 */ - { 222, PRIME32, { 0xAE995BB8AF917A8DULL, 0x91820016621E97F1ULL } }, - - { 403, 0, { 0xCDEB804D65C6DEA4ULL, 0x1B6DE21E332DD73DULL } }, /* one block, last stripe is overlapping */ - { 403, PRIME64, { 0x6259F6ECFD6443FDULL, 0xBED311971E0BE8F2ULL } }, - { 512, 0, { 0x617E49599013CB6BULL, 0x18D2D110DCC9BCA1ULL } }, /* one block, finishing at stripe boundary */ - { 512, PRIME64, { 0x3CE457DE14C27708ULL, 0x925D06B8EC5B8040ULL } }, - { 2048, 0, { 0xDD59E2C3A5F038E0ULL, 0xF736557FD47073A5ULL } }, /* 2 blocks, finishing at block boundary */ - { 2048, PRIME32, { 0x230D43F30206260BULL, 0x7FB03F7E7186C3EAULL } }, - { 2240, 0, { 0x6E73A90539CF2948ULL, 0xCCB134FBFA7CE49DULL } }, /* 3 blocks, finishing at stripe boundary */ - { 2240, PRIME32, { 0xED385111126FBA6FULL, 0x50A1FE17B338995FULL } }, - { 2367, 0, { 0xCB37AEB9E5D361EDULL, 0xE89C0F6FF369B427ULL } }, /* 3 blocks, last stripe is overlapping */ - { 2367, PRIME32, { 0x6F5360AE69C2F406ULL, 0xD23AAE4B76C31ECBULL } } -}; - -/* XXH128, custom secret */ -static const XSUM_testdata128_t XSUM_XXH128_withSecret_testdata[] = { - { 0, 0, { 0x005923CCEECBE8AEULL, 0x5F70F4EA232F1D38ULL } }, /* empty string */ - { 1, 0, { 0x8A52451418B2DA4DULL, 0x3A66AF5A9819198EULL } }, /* 1 - 3 */ - { 6, 0, { 0x0B61C8ACA7D4778FULL, 0x376BD91B6432F36DULL } }, /* 4 - 8 */ - { 12, 0, { 0xAF82F6EBA263D7D8ULL, 0x90A3C2D839F57D0FULL } } /* 9 - 16 */ -}; - -#define SECRET_SIZE_MAX 9867 -static const XSUM_testdata_sample_t XSUM_XXH3_generateSecret_testdata[] = { - { 0, 192, { 0xE7, 0x8C, 0x77, 0x77, 0x00 } }, - { 1, 240, { 0x2B, 0x3E, 0xDE, 0xC1, 0x00 } }, - { XXH3_SECRET_SIZE_MIN - 1, 277, { 0xE8, 0x39, 0x6C, 0xCC, 0x7B } }, - { XXH3_SECRET_DEFAULT_SIZE + 500, SECRET_SIZE_MAX, { 0xD6, 0x1C, 0x41, 0x17, 0xB3 } } -}; - -static void XSUM_checkResult32(XXH32_hash_t r1, XXH32_hash_t r2) -{ - static int nbTests = 1; - if (r1!=r2) { - XSUM_log("\rError: 32-bit hash test %i: Internal sanity check failed!\n", nbTests); - XSUM_log("\rGot 0x%08X, expected 0x%08X.\n", (unsigned)r1, (unsigned)r2); - XSUM_log("\rNote: If you modified the hash functions, make sure to either update the values\n" - "or temporarily recompile with XSUM_NO_TESTS=1.\n"); - exit(1); - } - nbTests++; -} - -static void XSUM_checkResult64(XXH64_hash_t r1, XXH64_hash_t r2) -{ - static int nbTests = 1; - if (r1!=r2) { - XSUM_log("\rError: 64-bit hash test %i: Internal sanity check failed!\n", nbTests); - XSUM_log("\rGot 0x%08X%08XULL, expected 0x%08X%08XULL.\n", - (unsigned)(r1>>32), (unsigned)r1, (unsigned)(r2>>32), (unsigned)r2); - XSUM_log("\rNote: If you modified the hash functions, make sure to either update the values\n" - "or temporarily recompile with XSUM_NO_TESTS=1.\n"); - exit(1); - } - nbTests++; -} - -static void XSUM_checkResult128(XXH128_hash_t r1, XXH128_hash_t r2) -{ - static int nbTests = 1; - if ((r1.low64 != r2.low64) || (r1.high64 != r2.high64)) { - XSUM_log("\rError: 128-bit hash test %i: Internal sanity check failed.\n", nbTests); - XSUM_log("\rGot { 0x%08X%08XULL, 0x%08X%08XULL }, expected { 0x%08X%08XULL, 0x%08X%08XULL } \n", - (unsigned)(r1.low64>>32), (unsigned)r1.low64, (unsigned)(r1.high64>>32), (unsigned)r1.high64, - (unsigned)(r2.low64>>32), (unsigned)r2.low64, (unsigned)(r2.high64>>32), (unsigned)r2.high64 ); - XSUM_log("\rNote: If you modified the hash functions, make sure to either update the values\n" - "or temporarily recompile with XSUM_NO_TESTS=1.\n"); - exit(1); - } - nbTests++; -} - - -static void XSUM_testXXH32(const void* data, const XSUM_testdata32_t* testData) -{ - XXH32_state_t *state = XXH32_createState(); - size_t pos; - - size_t len = testData->len; - XSUM_U32 seed = testData->seed; - XSUM_U32 Nresult = testData->Nresult; - - if (len == 0) { - data = NULL; - } else { - assert(data != NULL); - } - - assert(state != NULL); - - XSUM_checkResult32(XXH32(data, len, seed), Nresult); - - (void)XXH32_reset(state, seed); - (void)XXH32_update(state, data, len); - XSUM_checkResult32(XXH32_digest(state), Nresult); - - (void)XXH32_reset(state, seed); - for (pos=0; poslen; - XSUM_U64 seed = testData->seed; - XSUM_U64 Nresult = testData->Nresult; - - if (len == 0) { - data = NULL; - } else { - assert(data != NULL); - } - - assert(state != NULL); - - XSUM_checkResult64(XXH64(data, len, seed), Nresult); - - (void)XXH64_reset(state, seed); - (void)XXH64_update(state, data, len); - XSUM_checkResult64(XXH64_digest(state), Nresult); - - (void)XXH64_reset(state, seed); - for (pos=0; pos> 40); -} - -/* - * Technically, XXH3_64bits_update is identical to XXH3_128bits_update as of - * v0.8.0, but we treat them as separate. - */ -typedef XXH_errorcode (*XSUM_XXH3_update_t)(XXH3_state_t* state, const void* input, size_t length); - -/* - * Runs the passed XXH3_update variant on random lengths. This is to test the - * more complex logic of the update function, catching bugs like this one: - * https://github.com/Cyan4973/xxHash/issues/378 - */ -static void XSUM_XXH3_randomUpdate(XXH3_state_t* state, const void* data, - size_t len, XSUM_XXH3_update_t update_fn) -{ - size_t p = 0; - while (p < len) { - size_t const modulo = len > 2 ? len : 2; - size_t l = (size_t)(XSUM_rand()) % modulo; - if (p + l > len) l = len - p; - (void)update_fn(state, (const char*)data+p, l); - p += l; - } -} - -static void XSUM_testXXH3(const void* data, const XSUM_testdata64_t* testData) -{ - size_t len = testData->len; - XSUM_U64 seed = testData->seed; - XSUM_U64 Nresult = testData->Nresult; - if (len == 0) { - data = NULL; - } else { - assert(data != NULL); - } - { XSUM_U64 const Dresult = XXH3_64bits_withSeed(data, len, seed); - XSUM_checkResult64(Dresult, Nresult); - } - - /* check that the no-seed variant produces same result as seed==0 */ - if (seed == 0) { - XSUM_U64 const Dresult = XXH3_64bits(data, len); - XSUM_checkResult64(Dresult, Nresult); - } - - /* check that the combination of - * XXH3_generateSecret_fromSeed() and XXH3_64bits_withSecretandSeed() - * results in exactly the same hash generation as XXH3_64bits_withSeed() */ - { char secretBuffer[XXH3_SECRET_DEFAULT_SIZE+1]; - char* const secret = secretBuffer + 1; /* intentional unalignment */ - XXH3_generateSecret_fromSeed(secret, seed); - { XSUM_U64 const Dresult = XXH3_64bits_withSecretandSeed(data, len, secret, XXH3_SECRET_DEFAULT_SIZE, seed); - XSUM_checkResult64(Dresult, Nresult); - } } - - /* streaming API test */ - { XXH3_state_t* const state = XXH3_createState(); - assert(state != NULL); - /* single ingestion */ - (void)XXH3_64bits_reset_withSeed(state, seed); - (void)XXH3_64bits_update(state, data, len); - XSUM_checkResult64(XXH3_64bits_digest(state), Nresult); - - /* random ingestion */ - (void)XXH3_64bits_reset_withSeed(state, seed); - XSUM_XXH3_randomUpdate(state, data, len, &XXH3_64bits_update); - XSUM_checkResult64(XXH3_64bits_digest(state), Nresult); - - /* byte by byte ingestion */ - { size_t pos; - (void)XXH3_64bits_reset_withSeed(state, seed); - for (pos=0; poslen; - XSUM_U64 Nresult = testData->Nresult; - - if (len == 0) { - data = NULL; - } else { - assert(data != NULL); - } - { XSUM_U64 const Dresult = XXH3_64bits_withSecret(data, len, secret, secretSize); - XSUM_checkResult64(Dresult, Nresult); - } - - /* check that XXH3_64bits_withSecretandSeed() - * results in exactly the same return value as XXH3_64bits_withSecret() */ - if (len > XXH3_MIDSIZE_MAX) - { XSUM_U64 const Dresult = XXH3_64bits_withSecretandSeed(data, len, secret, secretSize, 0); - XSUM_checkResult64(Dresult, Nresult); - } - - /* streaming API test */ - { XXH3_state_t *state = XXH3_createState(); - assert(state != NULL); - (void)XXH3_64bits_reset_withSecret(state, secret, secretSize); - (void)XXH3_64bits_update(state, data, len); - XSUM_checkResult64(XXH3_64bits_digest(state), Nresult); - - /* random ingestion */ - (void)XXH3_64bits_reset_withSecret(state, secret, secretSize); - XSUM_XXH3_randomUpdate(state, data, len, &XXH3_64bits_update); - XSUM_checkResult64(XXH3_64bits_digest(state), Nresult); - - /* byte by byte ingestion */ - { size_t pos; - (void)XXH3_64bits_reset_withSecret(state, secret, secretSize); - for (pos=0; pos XXH3_MIDSIZE_MAX) { - /* single ingestion */ - (void)XXH3_64bits_reset_withSecretandSeed(state, secret, secretSize, 0); - (void)XXH3_64bits_update(state, data, len); - XSUM_checkResult64(XXH3_64bits_digest(state), Nresult); - } - - XXH3_freeState(state); - } -} - -static void XSUM_testXXH128(const void* data, const XSUM_testdata128_t* testData) -{ - size_t len = (size_t)testData->len; - XSUM_U64 seed = testData->seed; - XXH128_hash_t const Nresult = testData->Nresult; - if (len == 0) { - data = NULL; - } else { - assert(data != NULL); - } - - { XXH128_hash_t const Dresult = XXH3_128bits_withSeed(data, len, seed); - XSUM_checkResult128(Dresult, Nresult); - } - - /* check that XXH128() is identical to XXH3_128bits_withSeed() */ - { XXH128_hash_t const Dresult2 = XXH128(data, len, seed); - XSUM_checkResult128(Dresult2, Nresult); - } - - /* check that the no-seed variant produces same result as seed==0 */ - if (seed == 0) { - XXH128_hash_t const Dresult = XXH3_128bits(data, len); - XSUM_checkResult128(Dresult, Nresult); - } - - /* check that the combination of - * XXH3_generateSecret_fromSeed() and XXH3_128bits_withSecretandSeed() - * results in exactly the same hash generation as XXH3_64bits_withSeed() */ - { char secretBuffer[XXH3_SECRET_DEFAULT_SIZE+1]; - char* const secret = secretBuffer + 1; /* intentional unalignment */ - XXH3_generateSecret_fromSeed(secret, seed); - { XXH128_hash_t const Dresult = XXH3_128bits_withSecretandSeed(data, len, secret, XXH3_SECRET_DEFAULT_SIZE, seed); - XSUM_checkResult128(Dresult, Nresult); - } } - - /* streaming API test */ - { XXH3_state_t *state = XXH3_createState(); - assert(state != NULL); - - /* single ingestion */ - (void)XXH3_128bits_reset_withSeed(state, seed); - (void)XXH3_128bits_update(state, data, len); - XSUM_checkResult128(XXH3_128bits_digest(state), Nresult); - - /* random ingestion */ - (void)XXH3_128bits_reset_withSeed(state, seed); - XSUM_XXH3_randomUpdate(state, data, len, &XXH3_128bits_update); - XSUM_checkResult128(XXH3_128bits_digest(state), Nresult); - - /* byte by byte ingestion */ - { size_t pos; - (void)XXH3_128bits_reset_withSeed(state, seed); - for (pos=0; poslen; - XXH128_hash_t Nresult = testData->Nresult; - if (len == 0) { - data = NULL; - } else { - assert(data != NULL); - } - { XXH128_hash_t const Dresult = XXH3_128bits_withSecret(data, len, secret, secretSize); - XSUM_checkResult128(Dresult, Nresult); - } - - /* check that XXH3_128bits_withSecretandSeed() - * results in exactly the same return value as XXH3_128bits_withSecret() */ - if (len > XXH3_MIDSIZE_MAX) - { XXH128_hash_t const Dresult = XXH3_128bits_withSecretandSeed(data, len, secret, secretSize, 0); - XSUM_checkResult128(Dresult, Nresult); - } - - /* streaming API test */ - { XXH3_state_t* const state = XXH3_createState(); - assert(state != NULL); - (void)XXH3_128bits_reset_withSecret(state, secret, secretSize); - (void)XXH3_128bits_update(state, data, len); - XSUM_checkResult128(XXH3_128bits_digest(state), Nresult); - - /* random ingestion */ - (void)XXH3_128bits_reset_withSecret(state, secret, secretSize); - XSUM_XXH3_randomUpdate(state, data, len, &XXH3_128bits_update); - XSUM_checkResult128(XXH3_128bits_digest(state), Nresult); - - /* byte by byte ingestion */ - { size_t pos; - (void)XXH3_128bits_reset_withSecret(state, secret, secretSize); - for (pos=0; pos XXH3_MIDSIZE_MAX) { - /* single ingestion */ - (void)XXH3_128bits_reset_withSecretandSeed(state, secret, secretSize, 0); - (void)XXH3_128bits_update(state, data, len); - XSUM_checkResult128(XXH3_128bits_digest(state), Nresult); - } - - XXH3_freeState(state); - } -} - -static void XSUM_testSecretGenerator(const void* customSeed, const XSUM_testdata_sample_t* testData) -{ - static int nbTests = 1; - const int sampleIndex[SECRET_SAMPLE_NBBYTES] = { 0, 62, 131, 191, 241 }; /* position of sampled bytes */ - XSUM_U8 secretBuffer[SECRET_SIZE_MAX] = {0}; - XSUM_U8 samples[SECRET_SAMPLE_NBBYTES]; - int i; - - assert(testData->secretLen <= SECRET_SIZE_MAX); - XXH3_generateSecret(secretBuffer, testData->secretLen, customSeed, testData->seedLen); - for (i=0; ibyte, sizeof(testData->byte))) { - XSUM_log("\rError: Secret generation test %i: Internal sanity check failed. \n", nbTests); - XSUM_log("\rGot { 0x%02X, 0x%02X, 0x%02X, 0x%02X, 0x%02X }, expected { 0x%02X, 0x%02X, 0x%02X, 0x%02X, 0x%02X } \n", - samples[0], samples[1], samples[2], samples[3], samples[4], - testData->byte[0], testData->byte[1], testData->byte[2], testData->byte[3], testData->byte[4] ); - exit(1); - } - nbTests++; -} - -/*! - * XSUM_sanityCheck(): - * Runs a sanity check before the benchmark. - * - * Exits on an incorrect output. - */ -XSUM_API void XSUM_sanityCheck(void) -{ - size_t i; -#define SANITY_BUFFER_SIZE 2367 - XSUM_U8 sanityBuffer[SANITY_BUFFER_SIZE]; - const void* const secret = sanityBuffer + 7; - const size_t secretSize = XXH3_SECRET_SIZE_MIN + 11; - assert(sizeof(sanityBuffer) >= 7 + secretSize); - - XSUM_fillTestBuffer(sanityBuffer, sizeof(sanityBuffer)); - - /* XXH32 */ - for (i = 0; i < (sizeof(XSUM_XXH32_testdata)/sizeof(XSUM_XXH32_testdata[0])); i++) { - XSUM_testXXH32(sanityBuffer, &XSUM_XXH32_testdata[i]); - } - /* XXH64 */ - for (i = 0; i < (sizeof(XSUM_XXH64_testdata)/sizeof(XSUM_XXH64_testdata[0])); i++) { - XSUM_testXXH64(sanityBuffer, &XSUM_XXH64_testdata[i]); - } - /* XXH3_64bits, seeded */ - for (i = 0; i < (sizeof(XSUM_XXH3_testdata)/sizeof(XSUM_XXH3_testdata[0])); i++) { - XSUM_testXXH3(sanityBuffer, &XSUM_XXH3_testdata[i]); - } - /* XXH3_64bits, custom secret */ - for (i = 0; i < (sizeof(XSUM_XXH3_withSecret_testdata)/sizeof(XSUM_XXH3_withSecret_testdata[0])); i++) { - XSUM_testXXH3_withSecret(sanityBuffer, secret, secretSize, &XSUM_XXH3_withSecret_testdata[i]); - } - /* XXH128 */ - for (i = 0; i < (sizeof(XSUM_XXH128_testdata)/sizeof(XSUM_XXH128_testdata[0])); i++) { - XSUM_testXXH128(sanityBuffer, &XSUM_XXH128_testdata[i]); - } - /* XXH128 with custom Secret */ - for (i = 0; i < (sizeof(XSUM_XXH128_withSecret_testdata)/sizeof(XSUM_XXH128_withSecret_testdata[0])); i++) { - XSUM_testXXH128_withSecret(sanityBuffer, secret, secretSize, &XSUM_XXH128_withSecret_testdata[i]); - } - /* secret generator */ - for (i = 0; i < (sizeof(XSUM_XXH3_generateSecret_testdata)/sizeof(XSUM_XXH3_generateSecret_testdata[0])); i++) { - assert(XSUM_XXH3_generateSecret_testdata[i].seedLen <= SANITY_BUFFER_SIZE); - XSUM_testSecretGenerator(sanityBuffer, &XSUM_XXH3_generateSecret_testdata[i]); - } - - XSUM_logVerbose(3, "\r%70s\r", ""); /* Clean display line */ - XSUM_logVerbose(3, "Sanity check -- all tests ok\n"); -} - -#endif /* !XSUM_NO_TESTS */ diff --git a/third_party/xxhash/cli/xsum_sanity_check.h b/third_party/xxhash/cli/xsum_sanity_check.h deleted file mode 100644 index af766dfa..00000000 --- a/third_party/xxhash/cli/xsum_sanity_check.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * xxhsum - Command line interface for xxhash algorithms - * Copyright (C) 2013-2021 Yann Collet - * - * GPL v2 License - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * You can contact the author at: - * - xxHash homepage: https://www.xxhash.com - * - xxHash source repository: https://github.com/Cyan4973/xxHash - */ - -#ifndef XSUM_SANITY_CHECK_H -#define XSUM_SANITY_CHECK_H - -#include "xsum_config.h" /* XSUM_API, XSUM_U8 */ - -#include /* size_t */ - - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Runs a series of self-tests. - * - * Exits if any of these tests fail, printing a message to stderr. - * - * If XSUM_NO_TESTS is defined to non-zero, - * this will instead print a warning if this is called (e.g. via xxhsum -b). - */ -XSUM_API void XSUM_sanityCheck(void); - -/* - * Fills a test buffer with pseudorandom data. - * - * This is used in the sanity check and the benchmarks. - * Its values must not be changed. - */ -XSUM_API void XSUM_fillTestBuffer(XSUM_U8* buffer, size_t len); - -#ifdef __cplusplus -} -#endif - -#endif /* XSUM_SANITY_CHECK_H */ diff --git a/third_party/xxhash/cli/xxhsum.1 b/third_party/xxhash/cli/xxhsum.1 deleted file mode 100644 index 715fc4be..00000000 --- a/third_party/xxhash/cli/xxhsum.1 +++ /dev/null @@ -1,106 +0,0 @@ -.TH "XXHSUM" "1" "December 2021" "xxhsum 0.8.1" "User Commands" -.SH "NAME" -\fBxxhsum\fR \- print or check xxHash non\-cryptographic checksums -.SH "SYNOPSIS" -\fBxxhsum [